text
stringlengths
3
1.05M
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose" file="get_borders_request.py"> # Copyright (c) 2021 Aspose.Words for Cloud # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a copy # ...
/**** Start of imports. If edited, may not auto-convert in the playground. ****/ var Cropclass = /* color: #009999 */ee.FeatureCollection( [ee.Feature( ee.Geometry.Point([-90.0442886352539, 13.761576614894647]), { "class": 1, "system:index": "0" })...
""" Execute an external process to set_meta() on a provided list of pickled datasets. This was formerly scripts/set_metadata.py and expects these arguments: %prog datatypes_conf.xml job_metadata_file metadata_in,metadata_kwds,metadata_out,metadata_results_code,output_filename_override,metadata_override... max_met...
import React from 'react' import {Helmet} from 'react-helmet' import {graphql, useStaticQuery} from 'gatsby' import {MDXProvider} from '@mdx-js/react' import {Global, css} from '@emotion/core' import styled from '@emotion/styled' import {ThemeProvider} from 'emotion-theming' import {QueryParamNotificationMessage} from ...
var searchData= [ ['l_42319',['L',['../stb__vorbis_8c.html#aa73214aa5f2f94f63d90bb4e3d99fe53',1,'stb_vorbis.c']]], ['len_5flimit_42320',['LEN_LIMIT',['../easy__font__maker_8c.html#a6d21a7b5e31e6e39d914f1aa9766da7d',1,'easy_font_maker.c']]], ['lerp_42321',['LERP',['../math_8h.html#a73bcece6f75a3ca7961c4d29d6ce676d...
# -*- coding: utf-8 -*- # generated from catkin/cmake/template/__init__.py.in # keep symbol table as clean as possible by deleting all unnecessary symbols from os import path as os_path from sys import path as sys_path from pkgutil import extend_path __extended_path = "/root/catkin_ws/src/turtlebot3/turtlebot3_examp...
# coding: utf-8 """ Octopus Server API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 2019.6.7+Branch.tags-2019.6.7.Sha.aa18dc6809953218c66f57eff7d26481d9b23d6a Generated by: https://github.com/swagger-api...
// This file is part of InvenioRDM // Copyright (C) 2020-2021 CERN. // Copyright (C) 2020-2021 Northwestern University. // Copyright (C) 2021 Graz University of Technology. // Copyright (C) 2021 New York University. // // Invenio App RDM is free software; you can redistribute it and/or modify it // under the terms of t...
/******/ (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...
/** * @license RequireJS text 2.0.9 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved. * Available via the MIT or new BSD license. * see: http://github.com/requirejs/text for details */ /*jslint regexp: true */ /*global require, XMLHttpRequest, ActiveXObject, define, window, process, Packages, ja...
import React from 'react' import { Route, Redirect } from 'react-router-dom' import { useSelector } from 'react-redux' function AuthorizedRoute({ children, component: Component, ...rest }) { const user = useSelector(state => state.auth.user) return user ? (<Route {...rest} component={Component} />) : (<R...
# -*- coding: utf-8 -*- # Copyright 2020 Google 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 applicable law or...
const { app, BrowserWindow, Menu, ipcMain, autoUpdater, dialog } = require('electron') const logger = require('electron-log') const { join } = require('path') if (require('electron-squirrel-startup')) { require("./install.js").handleSquirrelEvent(app) app.quit() return } const minecraft = require('./minecra...
from __future__ import (absolute_import, division, print_function) import numpy as np from .constants import Constants, default_fill from wrf._wrffortran import (dcomputetk, dinterp3dz, dinterp2dxy, dinterp1d, dcomputeseaprs, dfilter2d, dcomputerh, dcomputeuv...
module.exports = { "version": "0.24.0" };
import angular from 'angular' import Vue from 'vue' import ngHtmlCompiler from './utils/ngHtmlCompiler' import HelloComponent from './fixtures/HelloComponent' import HelloWrappedComponent from './fixtures/HelloWrappedComponent' import PersonsComponent from './fixtures/PersonsComponent' import ButtonComponent from './...
/* * Radix sorts an integer array without comparing the integers. * It groups the integers by their digits which share the same * significant position. * For more information see: https://en.wikipedia.org/wiki/Radix_sort */ function radixSort (items, RADIX) { // default radix is then because we usually count to base ...
const express = require('express') const app = express() const PORT = 8888 const bodyParser = require('body-parser') const cors = require('cors') const fs = require('fs') const nodemailer = require('nodemailer') // const { google } = require('googleapis') // const OAuth2 = google.auth.OAuth2 // const OAuth2Client = ne...
import numpy as np import pandas as pd import cv2 import torch import torch.nn as nn import torchvision from torchvision import transforms import math class Rescale(object): """Rescale the image in a sample to a given size. Args: output_size (tuple or int): Desired output size. If tuple, output is ...
// Karma configuration file, see link for more information // https://karma-runner.github.io/1.0/config/configuration-file.html module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine', '@angular-devkit/build-angular'], plugins: [ require('karma-jasmine'), requir...
#!/usr/bin/env node var nomnom = require("nomnom"), envInjectFile = require("../env-inject-file"); var options = { in: { position: 1, help: "Input file", type: "string", required: true }, out: { position: 2, help: "Output file", type: "string", ...
import { Class } from 'meteor/jagi:astronomy'; Tinytest.add('Modules - Storage - Document insert', function(test) { const Storage = Class.get('Storage'); const id = '6tMS79Kx6WhqTEwaC'; const storage = new Storage({ '_id': id, 'one': { 'string': 'abc', 'transient': 'transient', 'immuta...
var passport = require('passport'); var LocalStrategy = require('passport-local').Strategy; var AccountManager = require('dl-module').managers.auth.AccountManager; var db = require('../db'); passport.use(new LocalStrategy(function(username, password, done) { db.get() .then(db => { var manager =...
/** * Kendo UI v2021.1.224 (http://www.telerik.com/kendo-ui) * Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved....
# # Copyright 2018 the original author or 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 agre...
import { useState } from 'react'; import { func, shape, string } from 'prop-types'; import { Formik, Field } from 'formik'; import * as Yup from 'yup'; import { getServerErrorMessage } from 'common/utils/api-utils'; import { validationErrorMessages } from 'common/constants/messages'; import { LOGIN_BUTTON, LOGIN_FORM }...
'use strict'; var assert = require('assert'); var _ = require('lodash'); var util = require('../util'); var ad = require('../ad'); var dists = require('../dists'); var CountAggregator = function(onlyMAP) { this.onlyMAP = onlyMAP; this.max = {value: undefined, score: -Infinity}; this.samples = []; }; CountAggre...
!function(){"use strict";angular.module("gantt",["gantt.templates","angularMoment"]).directive("gantt",["Gantt","ganttOptions","GanttCalendar","moment","ganttMouseOffset","ganttDebounce","ganttEnableNgAnimate",function(t,e,n,i,a,r,s){return{restrict:"EA",transclude:!0,templateUrl:function(t,e){return void 0===e.templat...
/* countdown */ !function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?t(require("jquery")):t(jQuery)}(function(s){var r=function(t,e){this.$element=s(t),this.options=s.extend({},r.DEFAULTS,this.dataOptions(),e),this.init()};r.DEFAULTS={from:0,to:0,speed:1e3,refreshInterval:100...
import Renderable from "./renderable.js"; import collision from "./../physics/collision.js"; import Body from "./../physics/body.js"; import Rect from "./../shapes/rectangle.js"; import level from "./../level/level.js"; import { world, viewport } from "./../game.js"; /** * @classdesc * trigger an event when collidin...
import React from 'react'; import { Link } from '@mui/material'; import CallMade from '@mui/icons-material/CallMade'; import styles from '../styles'; export default function GotchiName({ gotchi }) { const classes = styles(); return ( <Link className={classes.gotchiName} href={...
Oskari.registerLocalization( { "lang": "fi", "key": "MapModule", "value": { "status_update_map": "Päivitetään karttaa", "zoombar_tooltip": { "zoomLvl-0": "Taustakartta", "zoomLvl-1": "Koko maa", "zoomLvl-2": "Maakunta", "zoomLvl-3": "", ...
/* eslint-disable no-console */ /* global firebase importScripts */ // Import and configure the Firebase SDK // These scripts are made available when the app is served or deployed on Firebase Hosting // If you do not serve/host your project using Firebase Hosting see https://firebase.google.com/docs/web/setup importScr...
var express = require('express'); var favicon = require('static-favicon'); var http = require('http'); var morgan = require('morgan'); var path = require('path'); var app = express(); var port = process.env.PORT || 3000; var host = process.env.HOST || 'localhost'; // app.set('name', ''); app.set('port', port); app....
const express = require("express"); const mongoose = require("mongoose"); require("dotenv").config(); const morgan = require("morgan"); const cors = require("cors"); const cookieParser = require("cookie-parser"); const expressValidator = require("express-validator"); const helmet = require("helmet"); const path = requi...
var _ = require( 'underscore' ); var chai = require( 'chai' ); var sinon = require( 'sinon' ); var sinonChai = require( 'sinon-chai' ); var should = chai.should(); var expect = chai.expect; chai.use( sinonChai ); var quiddities = require( '../../fixtures/quiddities' ); describe( 'Invoke Metho...
// @flow import * as React from 'react' import { Text, TouchableOpacity, View } from 'react-native' import styled from 'styled-components/native' import { type StyledComponent } from 'styled-components' import type { ThemeType } from '../../theme/constants' import type { TFunction } from 'react-i18next' import happyIc...
module.exports = { publicPath: '/vue-polygon-cropper/' };
(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[21],{155:function(t,e,s){"use strict";var a=s(18),n=s.n(a),c=s(0),o=s(5),l=s.n(o);const i=t=>"wc-block-components-payment-method-icon wc-block-components-payment-method-icon--"+t;var r=t=>{let{id:e,src:s=null,alt:a=""}=t;return s?Object(c.createElemen...
require("dotenv").config(); const agent = require("supertest").agent(require("../../app")); const languages = process.env.languages || ["en", "he"]; const User = require("../../models/user").User; const testUser = { email: "test_admin", password:"123456", roles: "admin", validated: true }; (async () =>...
const { Command } = require('klasa'); module.exports = class extends Command { constructor(...args) { super(...args, { name: 'memberlist', enabled: true, runIn: ['text'], cooldown: 2, bucket: 1, aliases: [], permLevel: 5, botPerms: [], requiredConfigs: [], ...
import { createAction } from 'redux-actions' export const ADD_USERS = 'ADD_USERS' export default createAction(ADD_USERS)
from sklearn.metrics import get_scorer from sklearn.model_selection import train_test_split from experiment_notebook_widget import JupyterHyperModelCallback, JupyterWidgetExperimentCallback from hypergbm import HyperGBM from hypergbm.search_space import search_space_general from hypergbm.tests import test_output_dir f...
/** * @fileoverview start webpack-dev-server */ 'use strict' const chalk = require('chalk') const electron = require('electron') const path = require('path') const { say } = require('cfonts') const { spawn } = require('child_process') const webpack = require('webpack') const WebpackDevServer = require('webpack-dev...
zipdata({ "2480000":[[14,14204,"鎌倉市","カマクラシ",142040000,""," ",""]], "2480001":[[14,14204,"鎌倉市","カマクラシ",142040024,"十二所","ジュウニソ",""]], "2480002":[[14,14204,"鎌倉市","カマクラシ",142040036,"二階堂","ニカイドウ",""]], "2480003":[[14,14204,"鎌倉市","カマクラシ",142040025,"浄明寺","ジョウミョウジ",""]], "2480004":[[14,14204,"鎌倉市","カマクラシ",142040038,"西御門"...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################# # _____ __________ ___ __ # # / ___// ____/ __ \/ | / / # # \__ \/ / / /_/ / /| | / / ...
/// <reference types="cypress"/> /// <reference types="../../../support"/> import { addShippingMethod, completeCheckout, createCheckout } from "../../../support/api/requests/Checkout"; import { getOrder } from "../../../support/api/requests/Order"; import { confirmThreeDSecure } from "../../../support/api/reques...
var SIR_model_data = { // SIR model data // options model_name: 'SIR model', myChart: Object, // chart line name s_name: 'susceptible', i_name: 'infective', r_name: 'recovery_remove', // hyperparameters r : 0.00001, // get infected ratio a : 1/50, // recovered or dead ratio ...
var fs = require("fs"), tape = require("tape"), d3_queue = require("d3-queue"), d3_dsv = require("d3-dsv"), d3_hierarchy = require("../../"); tape("pack(flare) produces the expected result", test( "test/data/flare.csv", "test/data/flare-pack.json" )); function test(input, expected) { return func...
const assert = require('assert') const app = require('../../server') describe("'users' service", () => { it('registered the service', () => { const service = app.service('api/users') assert.ok(service, 'Registered the service') }) })
"use strict"; const Busboy = require("busboy"); const crypto = require("crypto"); const events = require("events"); const fs = require("fs-extra"); const JSZip = require("jszip"); const jwt = require("jsonwebtoken"); const path = require("path"); const util = require("util"); const libHelpers = require("@clusterio/lib...
const expect = chai.expect; import Vue from 'vue' import Tabs from '../src/tabs' import TabsHead from '../src/tabs-head' import TabsItem from '../src/tabs-item' import TabsPane from '../src/tabs-pane' import TabsBody from '../src/tabs-body' Vue.component('l-tabs-head', TabsHead) Vue.component('l-tabs-item', TabsItem) V...
require('../modules/es6.symbol'); module.exports = require('../modules/$.core').Symbol;
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var React = _interopRequireWildcard(r...
// For a detailed explanation regarding each configuration property, visit: // https://jestjs.io/docs/en/configuration.html // const { pathsToModuleNameMapper } = require('ts-jest/utils') // const { compilerOptions } = require('./tsconfig') module.exports = { // All imported modules in your tests should be mocked au...
//绘制虚线直线 function DyDrawMyline() { //清空当前显示内容 mxOcx.NewFile(); // 创建一个与用户交互取点的对象。 var point1 = mxOcx.GetPoint(false,0,0,"\n 点取开始点:"); if(point1 == null) { return; } var getSecondPt = mxOcx.NewComObject("IMxDrawUiPrPoint"); getSecondPt.message = "第二点"; getSecondPt.basePoin...
"""potato URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-base...
/* Copyright (c) 2004-2016, The JS Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ //>>built define("dojo/cldr/nls/fi/roc",{"field-quarter-short-relative+0":"tänä neljänneksenä","field-quarter-short-relative+1...
# Copyright 2020 Google 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
//Promedio function calcularMediaArimtetica(lista) { // let sumaLista = 0; // for (let i = 0; i < lista.length; i++){ // sumaLista = sumaLista + lista[i]; // } const sumaLista = lista.reduce( function (valorAcumulado = 0, nuevoElemento) { return valorAcumulado + nuevoElemento; } ); const ...
const vite = require('vite'); const fse = require('fs-extra'); const path = require('path'); const viteConf = require('../vite.config'); const usPrefixGenerate = require('./prefix-mix'); const conf = require('../config/tamper'); const distPath = path.resolve(__dirname, '../dist'); fse.ensureDirSync(distPath); vite....
window.peopleAlsoBoughtJSON = [{"asin":"B084SPNJ5N","authors":"Paul Antony Jones","cover":"61M3TdNtl7L","length":"8 hrs and 59 mins","narrators":"Kate Reading","subHeading":"This Alien Earth, Book 2","title":"A Memory of Mankind"},{"asin":"1774248158","authors":"James Rosone","cover":"51pV+vOgUnL","length":"11 hrs and ...
import { mount } from 'enzyme'; import LoggedOutMessage from '../LoggedOutMessage'; import { $imports } from '../LoggedOutMessage'; import { checkAccessibility } from '../../../test-util/accessibility'; import mockImportedComponents from '../../../test-util/mock-imported-components'; describe('LoggedOutMessage', () ...
import axios from 'axios'; import router from '../router'; import Vue from 'vue'; import store from "@vue/cli-service/generator/vuex/template/src/store"; // 根据 NODE_ENV 来判断是否跨域 const service = axios.create({ baseURL: process.env.NODE_ENV === 'production'? process.env.VUE_APP_SERVICE_URL: process.env.VUE_APP_SERVIC...
import numpy as np from scipy import integrate import matplotlib.pyplot as plt from UTILS.Calculus import Calculus from UTILS.SetAxisLimit import SetAxisLimit from UTILS.Tools import Tools from UTILS.Errors import Errors import sys # Theoretical background https://arxiv.org/abs/1401.5176 # Mocak, Meakin, Viallet, Arn...
(function(){ function float_to_hours_minutes(inp){ var hours = Number($.trim(inp)); if ( isNaN(hours) ) return inp; var whole_hours, mins, str, neg = false; if(hours < 0){ neg = true; hours *= -1; } whole_hours = Math.floor(hours); mins = Math.floor((hours - whole_hours) * 60); str = neg ? '-' :...
export default function intersectionOf(arg0, ...args) { return args.reduce( (interim, arg) => interim.reduce((intersection, item) => { arg.includes(item) && intersection.push(item); return intersection; }, []), arg0 ); }
import { assign } from 'lodash' import users from './users/es_ES' import things from './things/es_ES' const common = { el: { select: { noData: 'Sin datos coincidentes' } }, config: { title: 'Login admin', description: 'Description' }, message: { save: { ok: 'Ok!', err: '...
import { StringHelper } from '../helpers/string-helper'; export let Query = class Query { constructor() {} cacheKey() { return Math.abs(StringHelper.hashCode((this.filter ? JSON.stringify(this.filter) : "") + (this.fields ? this.fields.join("") : "") + (this.sort ? this.sort : "") + (this.sortDir ? this.sortD...
import React, { useState, useEffect } from 'react'; import { Table } from './table' import { useListManager } from '@/Context/ListManager'; import { useFieldValues } from '@karsegard/react-hooks'; import { LayoutFlex, ModalComponent, Container, LayoutFlexColumn, Grid } from '@karsegard/react-core-layout' import ErrorBo...
'use strict'; /** * @ngdoc function * @name frontendMark2App.controller:SearchpatientsCtrl * @description * # SearchpatientsCtrl * Controller of the frontendMark2App */ angular.module('frontendMark2App') <<<<<<< HEAD .controller('SurveyCtrl',['$scope', 'Surveys', 'Patients', function ($scope, Surveys, Patients...
// import { createFetchAction, createFetchSaga } from '@thorgate/spa-entities'; // import { createPaginationSuccessHook } from '@thorgate/spa-pagination'; // import { takeLatest } from 'redux-saga/effects'; // // import { forumSchema } from 'ducks/forums'; // import api from 'services/api'; // import { serializeData } ...
const {listar} = require('../agendamentos/TabelaAgendamento') const modeloUsuario = require('./ModeloTabelaUsuario') module.exports = { async listar() { try { return await modeloUsuario.findAll({ raw: true }) } catch(error) { return error } }, async adicionar(usuario) { try {...
import React from 'react'; import { Box } from '@material-ui/core'; import { view, store } from '@risingstack/react-easy-state'; import { Radio, Tooltip, Button } from 'antd'; import { Store_ToolsEditor } from '../../stores/Store_ToolsEditor'; function buildTool_buttonRadio(i) { const data = Store_ToolsEditor.getByIn...
tinymce.PluginManager.add("filemanager",function(e){function n(t){0===e.settings.external_filemanager_path.toLowerCase().indexOf(t.origin.toLowerCase())&&"responsivefilemanager"===t.data.sender&&(tinymce.activeEditor.windowManager.getParams().setUrl(t.data.url),tinymce.activeEditor.windowManager.close(),window.removeEv...
// @flow import type { STORE_STATE } from "../../../redux/store"; import type { CommitmentType, LocaleType, PROFILE_TYPE, ReportType, OperationType, NotificationType } from "../../../constants/types"; import React, { Component, Fragment } from "react"; import { withRouter } from "react-router-dom"; import...
macDetailCallback("00908b000000/24",[{"d":"1998-04-22","t":"add","a":"2099 GATEWAY PLACE - #750\nSAN JOSE CA 95110\n\n","c":"UNITED STATES","o":"CELL COMPUTING, INC."},{"d":"2001-10-24","t":"change","a":"2099 GATEWAY PLACE - #750\nSAN JOSE CA 95110\n\n","c":"UNITED STATES","o":"CELL COMPUTING, INC."},{"d":"2005-10-01...
"use strict" function task5() { let avarage = prompt('Оформить доставку товара к себе в страну'); let amountPrice if (avarage !== null) { avarage = avarage.toLowerCase(); switch (avarage) { case `китай`: amountPrice = 100; break; case `чили`: ...
#!/usr/bin/env node /* * Copyright 2020 American Express Travel Related Services Company, 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/LICEN...
var loader=(function(){ var imageurl="mosacycle.png"; var idd=0; var ends=false; var imagess = document.createElement("img"); var imagessab = document.createElement("img"); document.getElementById('load').appendChild(imagess); document.getElementById('load').appendChild(imagessab); imagess.src=i...
"use strict"; /* * Copyright (C) 2017 TypeFox and others. * * 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 */ Object.defineProperty(exports, "__es...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _toConsumableArray2 = require('babel-runtime/helpers/toConsumableArray'); var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2); var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequi...
ace.define("ace/mode/markdown",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript","ace/mode/xml","ace/mode/html","ace/tokenizer","ace/mode/markdown_highlight_rules","ace/mode/folding/markdown"],function(e,t,n){var r=e("../lib/oop"),i=e("./text").Mode,s=e("./javascript").Mode,o=e("./xml")....
const express = require('express') const app = express() const cors = require('cors') const mongoose = require('mongoose') const chalk = require('chalk'); // db const db = require('../database/Mongo'); //auth const session = require('express-session'); const passport = require('passport'); const discordAuthStrat = ...
'use strict'; const { isUserType, isType } = require('lib/util'); const Metadata = require('internal/meta'); const symbols = require('internal/symbols'); module.exports = { encodingLength, encodingLengthCommon, }; /** * Get the number of bytes to encode `obj` using `schema`. * @param {*} obj Any valid js objec...
from ro.webdata.oniq.common.constants \ import COMPARISON_OPERATORS, LOGICAL_OPERATORS, PREFIX, SEPARATOR class Pill: def __init__(self, logical_operation=None, key: str = None, negation: str = None, operator=None, values: str = None): self.key = key self.operator = operator self.value...
import React from 'react' import { Link } from 'gatsby' import Helmet from 'react-helmet' import Layout from '../components/layout' import BannerLanding from '../components/BannerLanding' import pic08 from '../assets/images/pic08.jpg' import pic09 from '../assets/images/pic09.jpg' import pic10 from '../assets/images/p...
import { handleBackgroundOptionFor } from '../../../../static/js/customizer/sync/variables/background' import ctEvents from 'ct-events' import { typographyOption } from '../../../../static/js/customizer/sync/variables/typography' import { getRootSelectorFor, assembleSelector, mutateSelector, responsiveClassesFor, ...
import React from "react" import PropTypes from "prop-types" // import { StaticQuery, graphql } from "gatsby"; import Header from "./header" import Footer from "./footer" import "./layout.css" const Layout = ({ children, classNames }) => ( <div id="page" className={`site ${classNames}`}> <a className="skip-link ...
const _ = require('lodash'); const path = require('path'); const fs = require('fs'); const nonce = require('nonce')(); const crypto = require('crypto'); const qs = require('querystring'); const jwt = require('jsonwebtoken'); // const jose = require('jose'); const jose = require('node-jose'); const URLSafeBase64 = requi...
# Copyright 2017 DataCentred 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 ag...
let cycleTimer; let remainingSecondsLocal = 0; const setStorageSyncData = (key, value) => { chrome.storage.local.set({ [key]: value }); }; const stopTimer = () => { if (cycleTimer) { clearInterval(cycleTimer); cycleTimer = null; chrome.browserAction.setBadgeText({ text: "" }); } }; const startTimer...
"use strict"; /* * ATTENTION: An "eval-source-map" devtool has been used. * This devtool is neither made for production nor for readable output files. * It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools. * If you are trying to read the output file, select a dif...
/** * Created by Volodymyr on 3/18/2015. */ "use strict"; import Controller, {ActionResult, Inject, SessionBind, Action, Context} from '../../../../src/framework/mvc/Controller'; import NotesService from '../services/NotesService'; import NotesActivity from '../activities/NotesActivity'; import Promise from '../../....
/** * 两个大字符串相加 * @param {*} str1 * @param {*} str2 */ var bigStringAdd = function (str1, str2) { if (!str1) { return str2; } else if (!str2) { return str1; } str1 = str1.split("").reverse().join(""); str2 = str2.split("").reverse().join(""); let n = Math.max(str1.length, str2.length); let carr...
"use strict"; // Express server const express = require('express'); const bodyParser = require('body-parser'); const https = require('https'); const helmet = require('helmet'); const cookieParser = require('cookie-parser'); const cors = require('cors'); const provAuthDebug = require('debug')('provider:auth'); c...
/** @jsx jsx **/ import { jsx } from '@emotion/core' import { Icon } from '@chakra-ui/core' import { LinkButton } from '../link' import PropTypes from 'prop-types' import { Route } from 'react-router-dom' import { Trans } from '@lingui/macro' export const BackButton = ({ variant, variants, variantColor, ...props }) =>...
if (self.CavalryLogger) { CavalryLogger.start_js(["IB9BtNc"]); } __d("EventListenerImplForBlue",["Event","TimeSlice","emptyFunction","setImmediateAcrossTransitions"],(function(a,b,c,d,e,f){function g(a,c,d,e){var f=b("TimeSlice").guard(d,"EventListener capture "+c);if(a.addEventListener){a.addEventListener(c,f,e);retu...
/* * Copyright 2020 Google 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
import torch from torch import autograd from model import ClfModel import argparse from data import get_loader from config import CLF_CONFIG import numpy as np from sklearn.metrics import f1_score parser = argparse.ArgumentParser(description='Text Classification By Nert') parser.add_argument('--model_path', default='we...