text stringlengths 3 1.05M |
|---|
/*
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.dialog.add("mathjax",function(d){var c,b=d.lang.mathjax;return{title:b.title,minWidth:350,minHeight:100,contents:[{id:"info",elements:[{id:"eq... |
// # **setAPIPrefilter**
// a utility function to set up
// ajax calls to api.lincscloud.org to pass Barista.user_key as a parameter
// arguments
//
// 1. {string} **api_endpoint** The location of the API endpoint to prefilter call from. defaults to *"api.lincscloud.org"*
Barista.setAPIPrefilter = function(api_end... |
exports.hello = "Hello";
console.log(require("./world"))
exports.doneLoading = true;
if(require.main === module) {
console.log("hello module is main!!!!");
}
console.log("hello's filename is", __filename);
|
import React, { useContext, useEffect, useState } from "react";
import { BreadcrumbContext } from '../../../../components/Breadcrumb';
import { AuthContext } from "../../../../components/FirebaseAuth";
import { CloudFunctions } from "../../../../components/FirebaseAuth/firebase";
import Alert from "../../../../componen... |
import axios from 'axios'
import { TOKEN } from '../../util/setting';
export const layThongTinLichChieuAction = (maLichChieu) => {
// fetch
return async dispatch => {
try {
const result = await axios({
url: `https://movie0706.cybersoft.edu.vn/api/QuanLyDatVe/LayDanhSachPhon... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var system = require('@chakra-ui/system');
var utils = require('@chakra-ui/utils');
var React = require('react');
var clickable = require('@chakra-ui/clickable');
var descendant = require('@chakra-ui/descendant');
var hooks = require('@chakr... |
#!/usr/bin/python3
"""Tests for the user interface."""
#
# (C) Pywikibot team, 2008-2022
#
# Distributed under the terms of the MIT license.
#
import io
import logging
import os
import unittest
from contextlib import redirect_stdout, suppress
from unittest.mock import patch
import pywikibot
from pywikibot.bot import (... |
from cv2 import phase
from datasets.nyuv2.pytorch_dataset import NYUv2
from datasets.sunrgbd.pytorch_dataset import SUNRGBD
from preprocessing import get_preprocessor
from torch.utils.data import DataLoader
def get_nyuv2(data_dir: str, config: dict, batch_size: int, num_workers: int, debug: bool, **kwargs):
train... |
n = 5 # size
for x in range(n, 0, -1):
for s in range(n - 1, x - 1, -1):
print(" ", end="")
for y in range(1, x + 1):
if (x % 2 != 0):
print(chr(x + 64), end="") # for char
else:
print(x, end="")
print() |
import pytest
import numpy as np
from dae.backends.impala.parquet_io import ParquetPartitionDescriptor, \
NoPartitionDescriptor
from dae.variants.family_variant import FamilyVariant
from dae.variants.variant import SummaryAllele, SummaryVariant
summary_alleles_chr1 = [
SummaryAllele("1", 11539, "T", None, 0, 0... |
import request from 'supertest';
import app from "../src";
describe('Health Checks', () => {
test('ehlo returns ok', async () => {
await request(app)
.get('/v1/checks/ehlo')
.expect(200);
});
})
|
# source: http://stackoverflow.com/questions/2758159/how-to-embed-a-python-interpreter-in-a-pyqt-widget
import sys, os, re
import traceback, platform
from PyQt5 import QtCore
from PyQt5 import QtGui
from PyQt5 import QtWidgets
from electrum_dnotes import util
if platform.system() == 'Windows':
MONOSPACE_FONT = ... |
import genSchema from '../genSchema.js';
const viewSchema = {
title: '是否选择(Radio)',
type: 'boolean',
'ui:widget': 'RadioWidget'
};
export default {
viewSchema,
propsSchema: genSchema({
options: {
type: 'object',
title: '选项',
properties: {
... |
(function() {
var fn = function() {
(function(root) {
function now() {
return new Date();
}
var force = false;
if (typeof (root._bokeh_onload_callbacks) === "undefined" || force === true) {
root._bokeh_onload_callbacks = [];
root._bokeh_is_loading = u... |
# Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "LICENSE.txt" file accom... |
// Modules
const express = require('express');
const bodyParser = require('body-parser');
const cors = require('cors');
const mongoose = require('mongoose');
// Config
const config = require('./config');
// App
const app = express();
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
app.... |
(function() {
var File, SelectList, buildAstDumpArgs, getFirstScopes, getScopeLang, path, ref, ref1, spawnClang;
File = require('atom').File;
path = require('path');
SelectList = require('atom-select-list');
ref = require('./common-util'), getFirstScopes = ref.getFirstScopes, getScopeLang = ref.getScopeLa... |
/*
* $Id: rdf.js,v 1.13 2009/01/06 22:18:45 source Exp $
*
* This file is part of the OpenLink Software Ajax Toolkit (OAT) project.
*
* Copyright (C) 2005-2009 OpenLink Software
*
* See LICENSE file for details.
*/
/*
OAT.RDF.toTriples(xmlDoc)
*/
OAT.RDFData = {
DISABLE_HTML:1,
DISABLE_DEREFERENCE:2,
... |
import cors from 'cors';
import path from 'path';
import morgan from 'morgan'
import express from 'express';
import routes from './routes/routes';
const app = express();
app.use(express.static(path.join(__dirname,'./public')))
app.use(cors())
app.use(morgan('dev'))
app.use(express.json());
app.use(express.urlencoded... |
import cv2
import metrics.DeltaE_ITP
im1 = cv2.imread('/tmp/HDRTVNET_ubuntu/dataset/dataset/test_set/test_hdr/001.png');
im2 = cv2.imread('/tmp/HDRTVNET_ubuntu/dataset/dataset/test_set/test_hdr/002.png');
out = metrics.DeltaE_ITP.calculate_hdr_deltaITP(im1, im2)
print(out)
|
import React from "react";
import PropTypes from "prop-types";
const SvgComponent = ({ size, width, height, ...otherProps }) => {
if (size !== height) {
width = width * (size / height);
height = height * (size / height);
}
return (
<svg
width={width}
height={height}
viewBox="0 0 37... |
import '../testSetup';
import React from 'react';
import { mount } from 'enzyme';
import { act } from 'react-dom/test-utils';
import { CcFragment, run, getState } from '../../src/index';
import { getTestModels } from '../util';
const models = getTestModels();
run(models, { log: false, act });
describe('test CcFragmen... |
countries = input().split(", ")
capitals = input().split(", ")
countries_and_capitals = {country: capital for country, capital in zip(countries, capitals)}
[print(f"{country} -> {capital}") for country, capital in countries_and_capitals.items()]
|
(function() {
try {
throw "a";
} catch (b) {}
c(); // This must not be removed.
}());
|
import React from 'react'
import * as assert from 'assert'
import { Audio } from '../h5/react'
import { mount } from './test-tools'
import { delay, waitForChange } from './utils'
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const h = React.createElement
describe('Audio', () => {
/**
* @type {HTM... |
import React, { Component } from 'react';
import PrivateRouteQuestionPage from './Components/PriviteRoutse/questionPage';
import './App.css';
import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
//Components
import MainPage from './MainPage'
import Questions from './Questions.js'
import WaitingRo... |
"use strict";
const print = require('../extensions/amplify-helpers/print');
const util = require('util');
function run(e) {
print.error('Error occured during configuration.');
print.info(util.inspect(e));
}
module.exports = {
run,
};
//# sourceMappingURL=c9-onFailure.js.map |
d2hStoreMenuItems("TX__239", [["Documents/disclosedprojectsgroupedbyprojects.htm", "right", "Disclosed Projects (Grouped by Projects)"],["Documents/disclosedprojectsgroupedbyprojects1.htm", "right", "Disclosed Projects (Grouped by Projects)"],["Documents/disclosedprojectsgroupedbyprojects2.htm", "right", "Disclosed Pr... |
'use strict'
import ActionVendor from './ActionVendor';
type actionConfig = {
key: string,
provider?:Array,
persist?:Array,
controller?:Function
}
function createAction(config: actionConfig, controller) {
/**
* todo:需要优化
*/
config.controller = config.controller || controller;
if (ty... |
import 'whatwg-fetch';
export default function fetchMatches(country) {
const url = `http://worldcup.sfg.io/matches/country?fifa_code=${country.toUpperCase()}`;
return (dispatch) => {
dispatch({ type: 'FETCH_LOADING', status: true });
fetch(url)
.then(checkStatus)
.then(p... |
// function isPasswordValid(password) {
// if (password.length > 5) {
// return true;
// }
// return false
// }
// function fieldValidation(field, validationFunction) {
// if (field == null) return false;
// let isFieldValid = validationFunction(field.value)
// if (!isFieldValid) {
/... |
# -*- coding: utf-8 -*-
"""3.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1hbi1u8wgdZPMFCJGIEOIqbYh4fn01BdB
"""
number_list = input("Enter number with comma: ")
#print(type(number_list))
li=list(number_list.split(","))
list_num=list(map(int, l... |
'use strict'
// Template version: 1.2.5
// see http://vuejs-templates.github.io/webpack for documentation.
const path = require('path')
const devEnv = require('./dev.env')
module.exports = {
dev: {
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
// 代理列表, 是否开启代理通过[./dev.env.js]配置
p... |
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview A Blockly plugin that allows you to create more advanced
* connection checks.
*/
import * as Blockly from 'blockly/core';
import {TypeHierarchy} from './type_hierarchy';
import {parseType, structureToString,... |
import axios from '@/libs/api.request'
/**
* @param data 数据
* @desc 获取项目列表
*/
export const getPageCus = (data) => {
let params = new URLSearchParams()
params.append('pageNum', 1)
return axios.request({
url: 'getPageCus',
data: params,
method: 'post'
})
}
/**
* 查询与改顾客订单有关的所有项目
* @param cusId 顾... |
/**
* The Url Utility.
*
* @module aui-url
*/
var QS = A.QueryString,
_SCHEME_SEPARATOR = '://',
URL_SOURCE = 0,
URL_PROTOCOL = 1,
URL_AUTHORITY = 2,
URL_USER_INFO = 3,
URL_USER = 4,
URL_PASSWORD = 5,
URL_HOST = 6,
URL_PORT = 7,
URL_RELATIVE = 8,
URL_PATH = 9,
URL_D... |
import { firestore } from '../firebase';
async function updateHabit({ id, habit }) {
const habitRef = firestore.collection('habits').doc(id);
const newData = {
...habit,
};
return await habitRef.set(newData, { merge: true });
}
export default updateHabit;
|
__NUXT_JSONP__("/23/14", (function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){return {data:[{metaTitle:c,metaDesc:d,verseId:14,surahId:23,currentSurah:{number:"23",name:"المؤمنون",name_latin:"Al-Mu'minun",number_of_ayah:"118",text:{"1":" قَدْ اَفْلَحَ الْمُؤْمِنُوْنَ ۙ","2":" الَّذِيْنَ هُمْ فِيْ صَلٰو تِهِمْ خَاشِعُوْنَ","3":"و... |
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
var Controller = {
index: function () {
// 初始化表格参数配置
Table.api.init({
extend: {
index_url: 'cof_issue/index' + location.search,
... |
#
# Copyright 2019 Xilinx 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... |
// This file was procedurally generated from the following sources:
// - src/dstr-binding/obj-ptrn-rest-getter.case
// - src/dstr-binding/default/meth.template
/*---
description: Getter is called when obj is being deconstructed to a rest Object (method)
esid: sec-runtime-semantics-definemethod
es6id: 14.3.8
features: [... |
#!/usr/bin/env python3
"""
Write a function that can sum up numbers. It should receive a list of n numbers.
If no argument is provided, return sum of numbers 1..100.
"""
def sum_numbers(numbers=None):
if numbers is None:
sum_of_num = 0
for i in range(1, 101):
sum_of_num += i
r... |
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import isEmpty from 'lodash/isEmpty';
export default class TableContent extends React.Component {
static propTypes = {
actions: PropTypes.object,
columns: PropTypes.array,
filteredData: PropTypes.array,
... |
function(arg){try{let _exit=false;const _temp=_catch(function(){return Promise.resolve(arg).then(function(value){const _value$missing=value.missing;_exit=true;return _value$missing;});},function(){});return Promise.resolve(_temp&&_temp.then?_temp.then(function(_result){return _exit?_result:"fallback";}):_exit?_temp:"fa... |
exports.ids=[41],exports.modules={"./node_modules/@elastic/eui/es/components/icon/assets/app_spaces.js":function(e,t,n){"use strict";n.r(t),n.d(t,"icon",(function(){return c}));var r=n("./node_modules/react/index.js"),a=n.n(r);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=ar... |
(self.webpackChunkdocusaurus_template=self.webpackChunkdocusaurus_template||[]).push([[69647],{3905:function(e,t,n){"use strict";n.d(t,{Zo:function(){return c},kt:function(){return m}});var r=n(67294);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = Network;
var _dgram = require('dgram');
var dgram = _interopRequireWildcard(_dgram);
var _crypto = require('crypto');
var crypto = _interopRequireWildcard(_crypto);
var _os = require('os');
var os = _interopRequireWi... |
from django.core.management import BaseCommand
from elections.models import (
Election,
ElectionType,
ModerationHistory,
ModerationStatuses,
VotingSystem,
)
from organisations.models.organisations import Organisation
class Command(BaseCommand):
help = """
Adds an election with an election... |
/**
* Kendo UI v2021.1.330 (http://www.telerik.com/kendo-ui)
* Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.... |
import image from 'assets/img/bghome.jpg';
const tileData = [
{
img: image,
title: 'Image',
author: 'author',
cols: 1,
},
{
img: image,
title: 'Image',
author: 'author',
cols: 1,
},
{
img: image,
title: 'Image',
author: 'author',
cols: 1,
},
{
i... |
import './App.css';
import React from 'react';
import { Route } from 'react-router-dom';
import styled from 'styled-components'
import Home from './components/Home';
import About from './components/about';
import { Switch } from 'react-router-dom';
import Nav from './components/nav';
import Footer from "./component... |
const { v4: uuidv4 } = require('uuid');
const { CustomError, errorLogger } = require('../../../helpers');
const {
getQuestions: getQuestionsQuery,
getUserLanguages,
} = require('../../../db');
const { defaultLanguages, getQuestionsError } = require('./constants');
const getQuestions = async ({ category }, { authE... |
/*! Bootstrap 4 integration for DataTables' Responsive
* ©2016 SpryMedia Ltd - datatables.net/license
*/
(function( factory ){
if ( typeof define === 'function' && define.amd ) {
// AMD
define( ['jquery', 'datatables.net-bs4', 'datatables.net-responsive'], function ( $ ) {
return factory( $, window, document... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _react = _interopRequireWildcard(require("react"));
var _history = require("history");
var _propTypes = _interopRequireDefault(require("prop-types"));
var _actions = require("../actions");
var _slides =... |
const { Given, When, Then } = require('cucumber');
const Role = require('testcafe').Role;
const commPage = require('../support/pages/url');
// const Page = require('../support/pages/loginPage');
const wait = require('util').promisify(setTimeout);
const {email} = require('../support/pages/loginPage')
Given(/^I am on ... |
import request from '@/utils/request'
// 分页获取用户列表
export function getUserList(query) {
return request({
url: '/upms/user/listPage',
method: 'get',
params: query
})
}
// 根据用户名获取用户
export function getByUsername(data) {
return request({
url: '/upms/user/getByUsername',
method: 'post',
data
... |
import Mixin from '../../../src/mixin/Mixin'
import store from '../../../src/mixin/store'
const storeDelete = store.delete
describe('Mixin.remove', () => {
beforeEach(() => {
store.delete = jest.fn(storeDelete)
})
afterEach(() => {
document.body.innerHTML = ''
store.delete = storeDelete
})
it(... |
/* global browser, Terra */
const viewports = Terra.viewports('tiny', 'medium');
describe('Badge', () => {
describe('Default', () => {
beforeEach(() => browser.url('/#/raw/tests/terra-badge/badge/badge-default'));
Terra.should.beAccessible({ viewports });
Terra.should.matchScreenshot({ viewports, select... |
const CustomError = require("../extensions/custom-error");
let str;
const chainMaker = {
array: [],
getLength() {
str = this.array.join("");
str = str.slice(1, str.length - 1)
return str.length;
},
addLink(value) {
this.array.push(`~( ${value} )~`)
return this;
},
removeLink(position) {... |
class DataGridViewSelectedCellCollection(BaseCollection,ICollection,IEnumerable,IList):
""" Represents a collection of cells that are selected in a System.Windows.Forms.DataGridView. """
def Instance(self):
""" This function has been arbitrarily put into the stubs"""
return DataGridViewSelectedCellCollection(... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "m2 19.99 7.5-7.51 4 4 7.09-7.97L22 9.92l-8.5 9.56-4-4-6 6.01-1.5-1.5zm1.5-4.5 6-6.01 4 4L22 3.92l-1.41-1.41-7.09 7.97-4-4L2 13.99l1.5 1.5z"
}), 'StackedLine... |
const { paginateResults } = require("./utils");
module.exports = {
Query: {
launches: async (_, { pageSize = 20, after }, { dataSources }) => {
const allLaunches = await dataSources.launchAPI.getAllLaunches();
// we want these in reverse chronological order
allLaunches.reverse();
const la... |
const { Extra, Markup } = require('telegraf')
const config = require('../../config.js')
module.exports = (ctx, app) => {
let data = ctx.state.payload
switch (data.length) {
case 0: {
let opt = Extra.HTML().webPreview(false).markup(m => (
m.inlineKeyboard([
[
m.call... |
import React from 'react';
import _ from 'lodash';
import {Sparklines, SparklinesLine, SparklinesReferenceLine} from 'react-sparklines';
function average(data) {
return _.round(_.sum(data) / data.length);
}
export default (props) => {
return (
<div>
<Sparklines
width={180}
... |
const crypto = require('crypto');
const constants = {
/*
* Splitter is used to build the object name for the overview of a
* multipart upload and to build the object names for each part of a
* multipart upload. These objects with large names are then stored in
* metadata in a "shadow bucket" t... |
define("ace/snippets/yaml",["require","exports","module"], function(require, exports, module) {
"use strict";
exports.snippetText =undefined;
exports.scope = "yaml";
});
|
/*!
* @package yii2-export
* @author Kartik Visweswaran <kartikv2@gmail.com>
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2015 - 2018
* @version 1.3.7
*
* Export Data Validation Module.
*
*/
!function(e){"use strict";var t,o;t={DIALOG:"kvExportDialog",IFRAME:"kvExportIframe",TARGET_POPUP... |
function set_dark_mode() {
document.querySelector('body').classList.add('dark-mode');
document.getElementById('mode-toggle').classList.replace('fa-moon-o', 'fa-sun-o');
Array.from(document.getElementsByClassName('bg-light')).forEach(x => x.classList.replace('bg-light', 'bg-dark'))
}
function set_light_mo... |
import React from 'react';
import {AppBar, Hidden, Icon, withStyles} from '@material-ui/core';
import {FuseScrollbars} from '@fuse';
import classNames from 'classnames';
import UserNavbarHeader from 'app/fuse-layouts/shared-components/UserNavbarHeader';
import Logo from 'app/fuse-layouts/shared-components/Logo';
import... |
from django.test import TransactionTestCase
from .utils import RevertTool
from .models import SimpleTrackedModel, SimpleUntrackedModel, \
Snapshot, SimpleParentModel, ComplexTrackedModel, SimpleChildModel
import json
class GitPratTest(TransactionTestCase):
@staticmethod
def get_simple_untracked_model_ob... |
/*
YUI 3.15.0 (build 834026e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add("text-data-accentfold",function(e,t){e.namespace("Text.Data").AccentFold={0:/[\u2070\u2080\u24EA\uFF10]/gi,1:/[\u00B9\u2081\u2460\uFF11]/gi,2:/[\u00B2\u2082\u2461\uFF1... |
export { default as WelcomeSection } from './WelcomeSection';
export { default as DisplayArea } from './DisplayArea';
export { default as Select } from './Select';
export { default as Arrow } from './Arrow';
export { default as Slider } from './Slider';
|
"""
Profile the code with:
> make profile
"""
from .test import *
if __name__ == "__main__":
test_signature(1024, 100)
# test_ntrugen(1024, 10)
# test_samplerz(10, 10, 10000)
# test_compress(1024, 10000)
|
const getTimestamp = () => {
const d = new Date();
return d.getTime();
};
export default getTimestamp;
|
// presentational
var React = require('react');
var { Container, Grid, Segment, Header, Label, Divider, Image, Icon, List, Message } = require('semantic-ui-react');
var About = (props) => {
return (
<Container id="topDiv" text>
<Header as="h1">About Me</Header>
<Divider />
<p>Since 1999, I've ... |
const { dasherize, camelize } = require('ember-cli-string-utils');
module.exports = {
description: 'Generates a new custom assertion into tests/assertions/',
locals: function (options) {
var entity = options.entity;
var rawName = entity.name;
var name = dasherize(rawName);
var camelName = camelize... |
/**
* @athenna/http
*
* (c) João Lenon <lenon@athenna.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import { Http } from '#src/index'
import { ServiceProvider } from '@athenna/ioc'
export class HttpServerProvider extends Se... |
import _ from 'lodash';
/**
* This class contains custom search
* algorithms
* @class Find
*/
class Find {
constructor(object) {
this.object = object;
}
static find(obj, path) {
if (!obj || !path)
return undefined;
else {
var i, keys;
if (path.indexOf('.') !== -1) {
... |
import requests
import json
from dateutil.parser import parse
from dateutil.relativedelta import *
from datetime import datetime
start_date = parse("2020-12-27")
start_date2 = parse("2020-12-28")
# a = relativedelta(parse("2020-12-20"), parse("2020-12-21"))
# dt = parse("2020-01-27")
# print(a.days > 0)
url = 'https... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
"use strict"
const CoreHooks = require("serverless-core-hooks");
class CoreHooksInheritance extends CoreHooks {
constructor(sls) {
super(sls);
}
configure() {
super.configure();
Object.assign(this.hooks, {
"before:serverless:init": this.hook.bind(this),
"after:serverless:init": this.hoo... |
'use strict';
const Joi = require('joi');
const Code = require('code');
const Lab = require('lab');
const {createServer} = require('./helpers/server');
const lab = exports.lab = Lab.script();
const experiment = lab.experiment;
const test = lab.test;
const before = lab.before;
const expect = Code.expect;
/**
* Rule... |
(self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[29389],{604206:(e,t,r)=>{"use strict";r.d(t,{hZ:()=>n,pb:()=>o,kD:()=>i,DI:()=>u,IC:()=>c,iU:()=>a,W7:()=>f,uB:()=>l,Rh:()=>p,G_:()=>s,vU:()=>y,Vw:()=>b,KD:()=>d,uj:()=>O,lo:()=>g,Yf:()=>v,fo:()=>h,PY:()=>m,bp:()=>j,oJ:()=>w,... |
define(function(require) {
'use strict';
const BaseView = require('oroui/js/app/views/base/view');
const _ = require('underscore');
const __ = require('orotranslation/js/translator');
const $ = require('jquery');
const routing = require('routing');
const DialogWidget = require('oro/dialog-w... |
/*
Copyright 2016 Aviral Dasgupta
Copyright 2017 Vector Creations Ltd
Copyright 2017, 2018 New Vector Ltd
Copyright 2019 The Matrix.org Foundation C.I.C.
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... |
# ------------------------------------------------------------------------------
# CodeHawk Binary Analyzer
# Author: Henny Sipma
# ------------------------------------------------------------------------------
# The MIT License (MIT)
#
# Copyright (c) 2021 Aarno Labs LLC
#
# Permission is hereby granted, free of charg... |
import csv
import os
import pickle
import numpy as np
import torch
from torch.autograd import Variable
from tqdm import tqdm
import torch.nn.functional as F
from datasets_natasha.masks_dataset import resize_image, flip_h_w, flip
from utils.crf import dense_crf
from utils.util import rle_encode, RLenc
def outputs_fo... |
module.exports = {
clearMocks: true,
coverageDirectory: 'coverage',
roots: ['src'],
coverageProvider: 'v8',
testEnvironment: 'jsdom',
setupFilesAfterEnv: ['./jest.setup.ts'],
moduleFileExtensions: ['ts', 'tsx', 'js'],
testPathIgnorePatterns: ['node_modules/'],
transform: {
'^.+\\.tsx?$': 'ts-jest'... |
// List of all actions that can be dispatched to redux store
export const TYPES = {
SET_TRON_ADDRESS: "SET_TRON_ADDRESS",
SET_TRON_BALANCE: "SET_TRON_BALANCE",
CONCAT_PENDING_MINTS_TRON: "CONCAT_PENDING_MINTS_TRON",
CONCAT_PENDING_BURNS_TRON: "CONCAT_PENDING_BURNS_TRON",
CONCAT_PENDING_TRANSFERS_TRO... |
# coding: utf-8
"""
Copyright 2016 SmartBear Software
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 applica... |
# -*- coding: utf-8 -*-
"""
Created on Mon Dec 2 14:28:44 2019
@author: aaussel
"""
from brian2 import *
from scipy import signal
from cells.RS_FEF import *
from cells.FS_FEF import *
from cells.SI_FEF import *
from cells.VIP_FEF import *
def generate_deepSI_and_gran_layers(theta_phase,N_SI,N_RS_gran,N_SI_gran,f_m... |
const Manager = require("./lib/Manager");
const Engineer = require("./lib/Engineer");
const Intern = require("./lib/Intern");
const inquirer = require("inquirer");
const path = require("path");
const fs = require("fs");
const OUTPUT_DIR = path.resolve(__dirname, "output");
const outputPath = path.join(OUTPUT_DIR, "tea... |
import requests
from datetime import datetime,timedelta
cur = datetime.now()
def codeforces():
output = requests.get("http://codeforces.com/api/contest.list?gym=false").json()['result']
future_contests = []
for i in range(len(output)):
if output[i]['phase'] != "BEFORE":
break
... |
import React from "react";
export default function withTimer(WrappedComponent) {
return class extends React.Component {
state = { time: new Date() };
componentDidMount() {
this.timerID = setInterval(() => this.tick(), 1000);
}
componentWillUnmount() {
clearInterval(this.timerID);
}
... |
import '../../css/room/show.css'; |
import styled from 'styled-components';
export const Container = styled.div`
display: flex;
align-items: center;
label {
span {
margin-left: 8px;
}
}
`;
export const Input = styled.input``;
|
dojo.provide("dijit.nls.dijit-all_no");dojo.provide("dojo.nls.colors");dojo.nls.colors._built=true;dojo.provide("dojo.nls.colors.no");dojo.nls.colors.no={"lightsteelblue":"light steel blue","orangered":"orange red","midnightblue":"midnight blue","cadetblue":"cadet blue","seashell":"seashell","slategrey":"slate gray","c... |
console.log(typeof Object)
class Produto{}
console.log(typeof Produto) |
# Copyright 2015 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/LICENSE-2.0
#
# Unless required by applica... |
var Components = require('../../components.json');
var fs = require('fs');
var render = require('json-templater/string');
var uppercamelcase = require('uppercamelcase');
var path = require('path');
var endOfLine = require('os').EOL; // os.EOL属性是一个常量,返回当前操作系统的换行符(Windows系统是\r\n,其他系统是\n)
var OUTPUT_PATH = path.join(__di... |