text
stringlengths
3
1.05M
!function(e){function r(r){for(var n,u,i=r[0],l=r[1],p=r[2],c=0,s=[];c<i.length;c++)u=i[c],Object.prototype.hasOwnProperty.call(o,u)&&o[u]&&s.push(o[u][0]),o[u]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(f&&f(r);s.length;)s.shift()();return a.push.apply(a,p||[]),t()}function t(){for(var e,r...
const debug = require('debug')('eqws-router'); const error = require('debug')('eqws-router:error'); const compose = require('koa-compose'); const Protocol = require('eqws-protocol'); const C = Protocol.C; const ApiError = Protocol.ApiError; const Context = require('./Context'); class Router { constructor(opts = {}) ...
const { NotImplementedError } = require("../extensions/index.js"); const { Node } = require("../extensions/list-tree.js"); /** * Implement simple binary search tree according to task description * using Node from extensions */ module.exports = class BinarySearchTree { constructor() { this.binRoot =...
var connect = function(root) { if (!root) return null let q = [root] while (q.length) { let next = [] for (let i = 0; i < q.length; i++) { let node = q[i] if (node.left) next.push(node.left) if (node.right) next.push(node.right) if (q[i+1]) nod...
/*! * FileInput Indonesian Translations * * This file must be loaded after 'fileinput.js'. Patterns in braces '{}', or * any HTML markup tags in the messages must not be converted or translated. * * @see http://github.com/kartik-v/bootstrap-fileinput * @author Bambang Riswanto <bamz3r@gmail.com> * * NOTE: this...
import React from 'react' import Helmet from 'react-helmet' import { StaticQuery, graphql } from 'gatsby' import Header from '../components/header' const Layout = ({children}) => ( <StaticQuery query={graphql` query SiteTitleQuery { site { siteMetadata { title des...
const webpack = require('webpack'); const path = require('path'); const WebpackPwaManifest = require('webpack-pwa-manifest'); const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin"); const HtmlWebpackPlugin = require('html-webpack-plugin'); const { CleanWebpackPlugin } = require('clean-webpack-plu...
Prism.languages.yaml = { 'scalar': { pattern: /([\-:]\s*(![^\s]+)?[ \t]*[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)[^\r\n]+(?:\3[^\r\n]+)*)/, lookbehind: true, alias: 'string' }, 'comment': /#.*/, 'key': { pattern: /(\s*(?:^|[:\-,[{\r\n?])[ \t]*(![^\s]+)?[ \t]*)[^\r\n{[\]},#\s]+?(?=\s*:\s)/, lookbehind: true, al...
$(document).ready(function(){ // Add smooth scrolling to all links $("a").on('click', function(event) { // Make sure this.hash has a value before overriding default behavior if (this.hash !== "") { // Prevent default anchor click behavior event.preventDefault(); /...
from django import template register = template.Library() class RepeatNode(template.Node): def __init__(self, nodelist, count): self.nodelist = nodelist self.count = template.Variable(count) def render(self, context): output = self.nodelist.render(context) ret...
import BaseAPI from '../baseApi'; import axios from '../../plugins/axios'; class TextAPI extends BaseAPI { constructor() { super('writing/texts'); } create(item, originalId) { return axios.post(`${this.endpoint}${originalId ? '?copy=' + originalId : ''}`, item); } } export default new TextAPI();
/** * @file themes tool. * * @author <a href='http://vanessa.b3log.org'>Liyuan Li</a> * @version 1.0.0.1, May 28, 2019 */ const gulp = require('gulp') const sass = require('gulp-sass') const rename = require('gulp-rename') var uglify = require('gulp-uglify') const fs = require('fs') const browserify = require('br...
/*! * jQuery JavaScript Library v1.9.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-2-4 */ (function (window, undefined) { ...
""" pygments.lexers.usd ~~~~~~~~~~~~~~~~~~~ The module that parses Pixar's Universal Scene Description file format. :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ from pygments.lexer import RegexLexer, bygroups from pygments.lexer im...
export default xs => [].concat(...xs);
/* * Kendo UI Complete v2013.2.918 (http://kendoui.com) * Copyright 2013 Telerik AD. All rights reserved. * * Kendo UI Complete commercial licenses may be obtained at * https://www.kendoui.com/purchase/license-agreement/kendo-ui-complete-commercial.aspx * If you do not own a commercial license, this file shall be gover...
import extend from 'lodash/extend'; export default function tableReducer(state={rows: []}, action) { switch (action.type) { case 'TABLE_ADD_ROW': return extend({}, state, {rows: state.rows.concat([action.fields])}); default: return state; } }
module.exports = { parser: 'babel-eslint', parserOptions: { ecmaVersion: 6, ecmaFeatures: { jsx: true, }, }, plugins: ['import', 'jsx-a11y', 'meteor', 'react', 'flowtype'], extends: [ 'eslint:recommended', 'plugin:meteor/recommended', 'plugin:react/recommended', 'plugin:flowt...
/** * Copyright 2015 The AMP HTML Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
# Copyright 2012 by Wibowo Arindrarto. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Tests for SearchIO BlastIO parsers.""" import os import unittest from Bio.SearchIO im...
"""Saver for eager mode TensorFlow.""" # Copyright 2017 The TensorFlow 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/LIC...
from __future__ import division, absolute_import, print_function import os from distutils.core import Command from distutils.ccompiler import new_compiler from numpy.distutils.misc_util import get_cmd class install_clib(Command): description = "Command to install installable C libraries" user_options = [] ...
#!/usr/bin/python # -*- coding: utf-8 -*- from ansible.module_utils.openshift_common import OpenShiftAnsibleModule, OpenShiftAnsibleException DOCUMENTATION = ''' module: openshift_v1_user_identity_mapping short_description: OpenShift UserIdentityMapping description: - Manage the lifecycle of a user_identity_mapping o...
'use strict'; module.exports = function strnatcasecmp(a, b) { // discuss at: http://locutus.io/php/strnatcasecmp/ // original by: Martin Pool // reimplemented by: Pierre-Luc Paour // reimplemented by: Kristof Coomans (SCK-CEN (Belgian Nucleair Research Centre)) // reimplemented by: Brett Zamir (ht...
import info class subinfo(info.infoclass): def setTargets(self): self.versionInfo.setDefaultValues() self.description = 'a desktop planetarium' for ver in ['3.4.3']: self.targets[ver] = 'http://download.kde.org/stable/kstars/kstars-%s.tar.xz' % ver self.targ...
const Engine = Matter.Engine; const World = Matter.World; const Bodies = Matter.Bodies; const Constraint = Matter.Constraint; var engine, world, backgroundImg; var canvas, angle, tower, ground, cannon; var balls = []; var boats = []; function preload() { backgroundImg = loadImage("./assets/background.gif...
'use strict' const path = require('path') const defaultSettings = require('./src/settings.js') const baseApi = process.env.VUE_APP_BASE_API const baseUrl = process.env.VUE_APP_BASE_URL function resolve(dir) { return path.join(__dirname, dir) } const name = defaultSettings.title // page title // If your port is set...
const speechRecognition = window.webkitSpeechRecognition || window.SpeechRecognition; function startListening(){ const recog=new speechRecognition(); recog.start(); recog.onstart=console.log("Started Listening..."); recog.onresult=function(data){ handleResults(data); }; } function handleResults(data){ let text=data.r...
//@ sourceURL=pages/customize.queryview.js //闭包执行一个立即定义的匿名函数 !function (factory) { //factory是一个函数,下面的koExports就是他的参数 // Support three module loading scenarios if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') { // [1] CommonJS/Node.js // [1] 支持...
/** * Cesium - https://github.com/CesiumGS/cesium * * Copyright 2011-2020 Cesium Contributors * * 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/LICEN...
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C8A', ['BidU', 'C3pro']) Monomer('SmacM', ['BaxA']) Monomer('BaxM', ['BidM', '...
// requiring dependencies, models and middlewares const express = require('express'); const bcrypt = require('bcryptjs'); const jwt = require('jsonwebtoken'); const multer = require('multer'); const User = require('../models/User.model'); const auth = require('../middlewares/auth'); const { signupValidation, updateVa...
/* @flow */ import { no, noop, identity } from 'shared/util' import { LIFECYCLE_HOOKS } from 'shared/constants' export type Config = { // user optionMergeStrategies: { [key: string]: Function }, silent: boolean, productionTip: boolean, performance: boolean, devtools: boolean, errorHandler: ?(err: Error...
/* * Swagger 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: \" \\ * * OpenAPI spec version: 1.0.0 * Contact: apiteam@swagger.io * * NOTE: This class is auto generated by the swagger code generator p...
/** * convertapi * Convert API lets you effortlessly convert file formats and types. * * OpenAPI spec version: v1 * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * * Swagger Codegen version: 2.4.5 * * Do not edit the class man...
const patternMethods = ({ backend, mergeData, subMergeData, token, setLoading, persist, navigate, setNotification, translate, showError, account, people, patterns, setAccount, setPatterns, setPeople }) => { const createPattern = (data) => { setLoading(true) return backend ...
import * as swcHelpers from "@swc/helpers"; // @filename: file.tsx // @jsx: preserve // @module: amd // @noLib: true // @skipLibCheck: true // @libFiles: react.d.ts,lib.d.ts var React = require("react"); // Error function Baz(arg1, arg2) { var a0 = /*#__PURE__*/ React.createElement(OverloadComponent, { a: a...
// THIS FILE IS AUTO GENERATED var GenIcon = require('../lib').GenIcon module.exports.FaRandom = function FaRandom (props) { return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M504.971 359.029c9.373 9.373 9.373 24.569 0 33.941l-80 79.984c-15.01 15.01-40.971 4.49-40.971-16...
# import the definition of the steps and input files: from Configuration.PyReleaseValidation.relval_steps import * # here only define the workflows as a combination of the steps defined above: workflows = Matrix() overridesEv5={'-n':'5'} # each workflow defines a name and a list of steps to be done. # if no expli...
# # print("What's your name?") # name = input("> ") # # print("Hi " + name) a = 60 b = 7 c = 500 if a > b: if a > c: print(a) else: print(c) else: if b > c: print(b) else: print(c)
export * from './ContainerElements' export * from './NavElements' export * from './FooterElements'
import socket import sys if __name__=='__main__': if len(sys.argv)<4: print("{0} <Bind IP> <Server IP> <Message>".format(sys.argv[0])) sys.exit() bindIP=sys.argv[1] serverIP=sys.argv[2] message=sys.argv[3] sock=socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.bind((bind...
# Import python libs import os import tempfile # Import pop libs import pop.hub import idem.conf import rend.exc # Import third party libs import pytest def run_sls(sls, runtime='parallel', test=False): ''' Pass in an sls list and run it! ''' name = 'test' hub = pop.hub.Hub() hub.pop.sub.add...
module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId])...
import React from 'react'; import ReactDOM from 'react-dom'; import App from '../Components/App'; import appInit from '../app-init'; import { configure } from 'enzyme'; import Adapter from 'enzyme-adapter-react-16/build/index'; import MuiThemeProvider from '@material-ui/core/styles/MuiThemeProvider'; import { BrowserRo...
import { Meteor } from 'meteor/meteor'; import { HTTP } from 'meteor/http'; import { Validators } from '/imports/api/validators/validators.js'; import { LCD } from '../../../../server/main' const fetchFromUrl = (url) => { try{ let res = HTTP.get(LCD + url); if (res.statusCode == 200){ re...
import React from 'react'; import { Router, Route, Switch } from 'react-router-dom'; import createHistory from 'history/createBrowserHistory'; import PrivateRoute from './PrivateRoute'; import PublicRoute from './PublicRoute'; import Login from 'features/auth/components/Login'; import Register from 'features/auth/com...
/** * @fileoverview added by tsickle * @suppress {checkTypes} checked by tsc */ import * as tslib_1 from "tslib"; import CalendarLocale from '../calendar/bg_BG'; import TimePickerLocale from '../time-picker/bg_BG'; // Merge into a locale object var /** @type {?} */ locale = { lang: tslib_1.__assign({ placeholder...
from datetime import (time, datetime) from typing import Iterator from hypothesis import strategies from tests.utils import example from .api import (api_base_urls, api_keys) from .utils import (TMDB_FOUNDATION_DATE, load_max_movie_id) MIN_MOVIE_ID = 2 MAX_...
/** * @param {string} prefix * @constructor */ function Quizz() { this.items = [ { "type": "capital", "options": ["Mali", "Ghana", "Ouganda", "Burundi"], "question": "Accra", "answer": 1 }, { "type": "capital", "optio...
const path = require("path"); const process = require("process"); const { spawnSync } = require("child_process"); const { getRushSpec } = require("./index"); const parseArgs = () => { if (process.argv.some((a) => ["-h", "--help"].includes(a.toLowerCase())) || process.argv.length < 3) { console.error("Usage: nod...
#! /usr/bin/env python3 import os import sys from subprocess import check_output #nosec # add .. to PYTHONPATH path = os.path.realpath(__file__) basedir = os.path.dirname(os.path.dirname(path)) sys.path.append(basedir) # add ../solver and ../util and ../plot to PATH os.environ['PATH'] += ':' + os.path.join(basedir, ...
let clientIP = null; // I don't use it for evil purposes, pinky promise let prepods = null; async function getIP() { const ip = await fetch("https://api.ipify.org", { method: "GET", headers: { "Accept": "application/text" } }); if (ip.ok) { clientIP = await ip.text(); } } async function putRating(pre...
// Fill out generic/dispatch methods for NNTP server // 'use strict'; const _ = require('lodash'); const mongoose = require('mongoose'); const url = require('url'); const render = require('nodeca.core/lib/system/render/common'); const userInfo = require('nodeca.users/lib/user_info'); module.expo...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.tag = void 0; var tag = { "viewBox": "0 0 24 24", "children": [{ "name": "path", "attribs": { "d": "M9 4c1.279 0 2.559.488 3.535 1.465l3.465 3.535 5 5-7 7-5.498-5.498c-.037.033-3.037-2.967-3.037-2.967-1.953-1.953-1...
import Endpoints, { globalCookiePolicy } from '../../../Endpoints'; import requestAction from '../../Common/Actions/requestAction'; import { REQUEST_SUCCESS, COUNT_FETCHED, REQUEST_ERROR, } from '../../Common/Actions/Actions'; import beginFilter from '../../Common/SearchComponentGen/GenerateFilter'; /* Fetch ...
import React from 'react' import { graphql } from 'gatsby' import Layout from '../components/Layout' import Hero from '../components/Hero' import Container from '../components/Container' import PageBody from '../components/PageBody' import TagList from '../components/TagList' import PostLinks from '../components/PostLi...
//给定一个包含n个整数的数组,找出其中所有的三元数组,三元数组需要 //使其中的三个元素符合a+b+c=0的条件 /** * @param {number[]} nums * @return {number[][]} */ var threeSum = function (nums) { var ret = []; if (nums === null || nums.length < 3) return ret; function compare(value1, value2) { if (value1 > value2) { return 1; ...
// 配置文件 module.exports = { // 每日说配置项(必填项) NAME: 'A兔子', //女朋友备注姓名 NICKNAME: '嗯哼', //女朋友昵称 MEMORIAL_DAY: '2015/04/18', //你和女朋友的纪念日 CITY: '上海', //女朋友所在城市(城市名称,不要带“市”) SENDDATE: '0 09 19 * * *', //定时发送时间 每天8点06分0秒发送,规则见 /schedule/index.js //高级功能配置项(非必填项) AUTOREPLY: false, //自动聊天功能 默认关闭 ...
import { combineReducers } from 'redux'; import about from './about/reducer'; export default combineReducers({ about, });
_base_ = '../faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py' model = dict( neck=dict( type='PAFPN', in_channels=[256, 512, 1024, 2048], out_channels=256, num_outs=5) )
#!/usr/bin/env python import os from setuptools import setup, find_packages import registrasion def read_file(filename): """Read a file into a string.""" path = os.path.abspath(os.path.dirname(__file__)) filepath = os.path.join(path, filename) try: return open(filepath).read() except IOEr...
export const provide = (lang) => { switch (lang) { case 'en': return { //the first part of the snake_case key should be the name of the related module map_rotationButton_title: 'Reset rotation to north' }; case 'de': return { //the first part of the snake_case key should be the name of the r...
// 表单校验规则由 schema2code 生成,不建议直接修改校验规则,而建议通过 schema2code 生成, 详情: https://uniapp.dcloud.net.cn/uniCloud/schema const validator = { "content": { "rules": [ { "required": true }, { "format": "string" } ], "label": "留言内容/回复内容" }, "imgs": { "rules": [ { ...
/** * @module rollup.es5 * @license MIT * @author nuintun */ import configure from './configure'; export default configure();
import { createIcon } from '../createIcon'; export const CriticalRoleIconConfig = { name: 'CriticalRoleIcon', height: 512, width: 448, svgPath: 'M225.82 0c.26.15 216.57 124.51 217.12 124.72 3 1.18 3.7 3.46 3.7 6.56q-.11 125.17 0 250.36a5.88 5.88 0 0 1-3.38 5.78c-21.37 12-207.86 118.29-218.93 124.58h-3C142 466....
/** * Copyright 2015 The AMP HTML Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
import React, { useState } from "react" import Head from "../components/head" import Layout from "../components/layout/layout" import TimelineEvent from "../components/timelineEvent/timelineEvent" import timelineStyles from "../styles/timeline.module.css" import timelineData from "../data.json" import birth from ".....
const RoleCard = require('../../rolecard.js'); class KeeperOfEarth extends RoleCard { setupCardAbilities(ability) { this.reaction({ title: 'Gain 1 fate', when: { afterConflict: (event, context) => event.conflict.elements.some(element => this.hasTrait(element)) && ...
import React from "react"; export default ({ text }) => ( <header className="todo-app__header"> <h1 className="todo-app__title">{text}</h1> </header> )
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.24/esri/copyright.txt for details. //>>built define("esri/tasks/GeometryService","dojo/_base/declare dojo/_base/lang dojo/_base/array dojo/_base/json dojo/_base/Deferred dojo/has ../kernel ../request ../deferr...
/* * Copyright 2015 Palantir Technologies, 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 req...
import React from "react"; import axios from "axios"; import DropzoneComponent from "react-dropzone-component"; import RichTextEditor from "../forms/rich-text-editor"; export default class BlogForm extends React.Component { constructor(props) { super(props); this.state = { id: "", title: "", ...
var callbackArguments = []; var base_0 = [0,59,627,893] var r_0= undefined try { r_0 = base_0.filter() } catch(e) { r_0= "Error" } function serialize(array){ return array.map(function(a){ if (a === null || a == undefined) return a; var name = a.constructor.name; if (name==='Object' || name=='Boolean'|| name=='Arr...
module.exports = { rules: { 'no-css-tags': require('./rules/no-css-tags'), 'no-sync-scripts': require('./rules/no-sync-scripts'), 'no-html-link-for-pages': require('./rules/no-html-link-for-pages'), 'no-img-element': require('./rules/no-img-element'), 'no-unwanted-polyfillio': require('./rules/no-...
# Copyright 2019 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...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Visualization ================== This is module contains a simple visualizer to show event lists along with the audio. The visualizer can show multiple event lists for the same reference audio allowing the comparison of the reference and estimated event lists. .. imag...
// Copyright (c) WarnerMedia Direct, LLC. All rights reserved. Licensed under the MIT license. // See the LICENSE file for license information. // // Copyright 2012-2015, Yahoo Inc. // Copyrights licensed under the New BSD License. See the accompanying ThirdPartyNotices.txt file for terms. const coverage = require('is...
from django.conf import settings from django.contrib.auth import get_user_model from django.contrib.auth import ( login as django_login, logout as django_logout ) from django.core.exceptions import ObjectDoesNotExist from django.utils.decorators import method_decorator from django.utils.translation import ugett...
from floodsystem.stationdata import build_station_list import floodsystem.geo as geo from floodsystem.station import MonitoringStation from haversine import haversine, Unit def test_stations_by_distance(): stations = build_station_list() centre=(0,0) StationDistance = geo.stations_by_distance(stations, cen...
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
const path = require('path') const HtmlWebpackPlugin = require('html-webpack-plugin') module.exports = { mode: process.env.NODE_ENV, entry: { index: './lib/index.tsx' }, resolve: { extensions: ['.ts', '.tsx', '.js', '.jsx'] }, output: { path: path.resolve(__dirname, 'dis...
const bleno = require('@abandonware/bleno') class HeartrateCharacteristic extends bleno.Characteristic { constructor() { super({ uuid: '2A37', properties: ['read', 'notify'], }) this.buffer = Buffer.alloc(2, 0) } update(heartRate) { this.buffer[1] = heartRate } onReadRequest(off...
var Clay = require('pebble-clay'); var clayConfig = require('./config'); var clay = new Clay(clayConfig); /*Pebble.addEventListener('ready', function() { console.log('PebbleKit JS ready!'); }); Pebble.addEventListener('showConfiguration', function() { var url = 'https://torerikk.github.io/simple_analog_pebbleface...
# Copyright 2021 StreamSets 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 agreed to in writi...
import os import re from setuptools import setup base_dir = os.path.dirname(__file__) DUNDER_ASSIGN_RE = re.compile(r"""^__\w+__\s*=\s*['"].+['"]$""") about = {} with open(os.path.join(base_dir, 'pypercard', '__init__.py'), encoding='utf8') as f: for line in f: if DUNDER_ASSIGN_RE.search(line)...
import Router from "./Router"; function App() { return Router; } export default App;
#!/usr/bin/env node const commander = require('commander'); commander .command('query', 'run a query against all datatypes') .command('run', 'run a brainlife app') .command('wait', 'wait for a running app task to finish'); commander.parse(process.argv);
Search.setIndex({docnames:["about","auth","basic_usage","changelog","conversations","faq","index","metadata","real_time_messaging"],envversion:{"sphinx.domains.c":1,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":1,"sphinx.domains.javascript":1,"sphinx.domains.math":2,"sphinx.domains.pytho...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnPrope...
import React, { Component } from 'react' import { Button, StyleSheet, View, TextInput, Text, Image } from 'react-native' //import { getPixels } from './mnist' import { SketchCanvas } from '@terrylinla/react-native-sketch-canvas' //import ImageResizer from 'react-native-image-resizer' var net = require('react-native-tc...
import { DCFUtility } from './dcf-utility'; const overlayMatch = 'dcf-notice-overlay'; const overlayHeader = 'dcf-header'; const overlayMaincontent = 'dcf-main'; const typeInfo = 'dcf-notice-info'; const typeSuccess = 'dcf-notice-success'; const typeWarning = 'dcf-notice-warning'; const typeDanger = 'dcf-notice-danger...
/** * FilterContent.js * * Released under LGPL License. * Copyright (c) 1999-2017 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ define( 'tinymce.plugins.image.core.FilterContent', [ 'tinymce.core.util.Tools' ], fun...
const Discord = require('discord.js'); const client = new Discord.Client(); const ytdl = require('ytdl-core'); const request = require('request'); const fs = require('fs'); require('dotenv').config(); let config = require('./settings.json'); const botToken = process.env.BOT_TOKEN; const youtubeAPIKey = process.env.YO...
# onnx_to_tensorrt.py # # Copyright 1993-2019 NVIDIA Corporation. All rights reserved. # # NOTICE TO LICENSEE: # # This source code and/or documentation ("Licensed Deliverables") are # subject to NVIDIA intellectual property rights under U.S. and # international Copyright laws. # # These Licensed Deliverables containe...
/** * @ngdoc service * @name app.modal.alertModalFactory * @description < description placeholder > */ (function(){ 'use strict'; angular .module('app.modal') .factory('modalFactory', modalFactory); /* @ngInject */ function modalFactory($uibModal){ return { alertModal: alertModal, ...
'use strict'; var $ = require('jquery'); var { API_URL } = require('ozp-react-commons/OzoneConfig'); var ProfileApi = { getStewards: function() { return $.getJSON(API_URL + '/api/profile?role=ORG_STEWARD'); } }; module.exports = ProfileApi;
const path = require('path'); const host = require('./host'); const faker = require('faker'); const firstName = faker.name.findName(); const lastName = faker.name.findName(); const newLastName = faker.name.findName(); const email = faker.internet.email(); const newEmail = faker.internet.email(); const text = faker.lor...
// Copyright (c) 2012 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. 'use strict'; lib.rtdep('lib.f'); /** * This file contains the support required to make connections to Google's * HTTP-to-SSH relay. * * See ...