text
stringlengths
3
1.05M
(function (global) { SystemJS.typescriptOptions = { "target": "es5", "module": "system", "moduleResolution": "node", "sourceMap": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, "noImplicitAny": true, "suppressImplicitAnyIndexErrors": true }; System.config({ ...
class Solution(object): def twoSum(self, nums, target): """ :type nums: List[int] :type target: int :rtype: List[int] """ for i in range(len(nums)): x = target - nums[i] for j in range(i+1, len(nums)): if nums[j] == x: ...
const au = require('../utils/appUtils'); describe('the appUtils', () => { it('checks for an authenticated user but has error on get token payload on checkUser', async () => { try { const cb = await au.checkUser({ logout() {}, auth: { isAuthenticated() { return true; ...
import { NAME_TABLE } from '../../../constants/components'; import { makePropsConfigurable } from '../../../utils/config'; import { htmlOrText } from '../../../utils/html'; export default { props: makePropsConfigurable({ // `caption-top` is part of table-render mixin (styling) // captionTop: { // type: ...
'use strict'; describe('myApp.view1 module', function() { beforeEach(module('myApp.view1')); var scope, view1Ctrl, AgeFactory, Funfactory; beforeEach(inject(function($controller, $rootScope) { scope = $rootScope.$new(); view1Ctrl = $controller('View1Ctrl', { $scope: scope ...
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("language","fr",{button:"Définir la langue",remove:"Supprimer la langue"});
// Processes the emscripten output to remove node.js detection stuff and other things that screw up packaging const fs = require("fs"); function processStuff(t) { return t .replace(`require('fs')`, "(undefined)") .replace(`require('path')`, "(undefined)") .replace(`require('crypto')`, "(undefined)") .replace(...
const Adoption = artifacts.require("Adoption") contract("Adoption", (accounts) => { let adoption; let expectedAdopter; before(async () => { adoption = await Adoption.deployed(); }) describe("adopting a pet and retrieving account addresses", async () => { before("adopt a pet using ...
var gulp = require('gulp'); var browserify = require('browserify'); var transform = require('vinyl-transform'); var uglify = require('gulp-uglify'); var reactify = require('reactify'); gulp.task('browserify', function () { var browserified = transform(function (filename) { var b = browserify(filename); retur...
export default { "query": { "from_time": "2018-11-16T13:30:34.497-05:00", "limit": 20, "text": "read", "grade": null, "house": null, "event_note_type_id": null, "scope_key": "SCOPE_ALL_STUDENTS" }, "event_note_cards": [ { "type": "event_note_card", "timestamp": "2018-11...
!function(n){function e(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return n[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var t={};e.m=n,e.c=t,e.i=function(n){return n},e.d=function(n,t,r){e.o(n,t)||Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:r})},e.n=function(n){var t=n&&n.__e...
import React, { Component } from 'react'; import { DragDropContext } from 'react-dnd'; import CustomDragLayer from './CustomDragLayer'; import HTML5Backend from 'react-dnd-html5-backend'; import Container from './Container'; class App extends Component { render() { const style = { display: "flex", ...
'use strict'; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _powerAssert = require('power-assert'); var _powerAssert2 = _interopRequireDefault(_powerAssert); var _validator = require('validator'); var _validator2 = _interopRequireDefault(_validator); var _mo...
/** * External dependencies */ import { __ } from '@wordpress/i18n'; import { ToggleControl, SelectControl } from '@wordpress/components'; /** * Internal dependencies */ import './editor.scss'; export const getSharedContentControls = ( attributes, setAttributes ) => { const { contentVisibility } = attributes; r...
import logging import azure.functions as func def main(msg: func.QueueMessage) -> None: value = msg.get_body().decode('utf-8') logging.info('Python queue trigger function processed a queue item: %s', value)
/** * Kendo UI v2016.2.909 (http://www.telerik.com/kendo-ui) * Copyright 2016 Telerik AD. All rights reserved. ...
import fetchDataOnDate from "src/data/fetchDataOnDate"; import fetchLatestEntry from "src/data/fetchLatestEntry"; import Head from "next/head"; import Layout from "components/layout"; import LatestData from "components/LatestData"; const LatestPage = ({ data, date }) => { return ( <> <Head> <title>...
# programmers L2 : 프린터 # solved by JY # DATE : 2021.03.05 # deque를 활용한 Queue 구조 사용 import collections def solution(priorities, location): answer = 0 idx, queue = collections.deque(), collections.deque() for i, p in enumerate(priorities): queue.append(p) idx.append(i) while len(queue) ...
import React, { Component ,Fragment} from 'react' import compose from 'recompose/compose' import TextInput from '../../../others/input/text' import { FadeIn } from 'animate-components' export class CommentDone extends Component { render() { return ( <Fragment> <ul class="timeline"> <...
// 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...
webpackJsonp([61],{"+JRK":function(e,t,n){"use strict";n("Gj5u")("blink",function(e){return function(){return e(this,"blink","","")}})},"+L7a":function(e,t,n){var i,r,o,s=n("dnDa"),a=n("Im1c"),l=n("La8i"),u=n("Eyvj"),c=n("VgcW"),d=c.process,f=c.setImmediate,h=c.clearImmediate,p=c.MessageChannel,m=c.Dispatch,v=0,g={},y=...
(function() { var floatingLabel; floatingLabel = class floatingLabel { constructor(form, options = {}) { var event, i, input, j, label, len, len1, ref, ref1; if (!form) { return; } options.focusClass || (options.focusClass = "focus"); options.activeClass || (options.active...
!function(e){function r(r){for(var n,l,a=r[0],p=r[1],f=r[2],c=0,s=[];c<a.length;c++)l=a[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in p)Object.prototype.hasOwnProperty.call(p,n)&&(e[n]=p[n]);for(i&&i(r);s.length;)s.shift()();return u.push.apply(u,f||[]),t()}function t(){for(var e,r...
import valueParser from "postcss-value-parser" import { vendor } from "postcss" import { isStandardSyntaxDeclaration, isStandardSyntaxProperty, report, ruleMessages, validateOptions, } from "../../utils" import shorthandData from "../../reference/shorthandData" export const ruleName = "shorthand-property-no-...
# -*- coding: utf-8 -*- """Tests for ipaddr generator.""" from sys import version_info from fauxfactory import gen_ipaddr if version_info[0:2] == (2, 6): import unittest2 as unittest else: import unittest class TestIpaddr(unittest.TestCase): """Test ipaddr generator.""" def test_gen_ipv4_1(self): ...
import NextAuth from "next-auth" import CredentialsProvider from "next-auth/providers/credentials"; import('next').NextConfig import EventEmitter from "../../../utils/EventEmitter"; let newUserData = null EventEmitter.addListener('reloadSession',(data)=>{ console.log('got event') newUserData.email = data.email ...
import Sidebar from '@Components/Sidebar'; import Head from 'next/head'; import { useQueryClient, useQuery } from 'react-query'; import { handshake } from '@Utils/defaultQueries'; export default function Layout({ children, title }) { const client = useQueryClient() client.setQueryDefaults('handshake', { queryFn: ...
const execSync = require('child_process').execSync; function RsyncPlugin(source, destination) { this.source = source; this.destination = destination; } /* eslint-disable no-console */ RsyncPlugin.prototype.apply = function rsync(compiler) { compiler.plugin('done', () => { console.log(''); ...
import pytest from PySide2.QtWidgets import QMainWindow from nodedge.editor_widget import EditorWidget from nodedge.node import Node from nodedge.scene import Scene @pytest.fixture def emptyScene(qtbot): window = QMainWindow() editor = EditorWidget(window) qtbot.addWidget(editor) yield editor.scene ...
import os import sys from lessweb import Application, Context, ResponseStatus def f(ctx: Context): ctx.response.set_status(ResponseStatus(code=201, reason="FOUND")) return '\n'.join([ ctx.request.host, ctx.request.protocol, ctx.request.homedomain, ctx.request.homepath, ...
function load() { var feedback = document.getElementById('feedback').value; console.log(feedback); window.open("mailto:encyclopediasphurthy@gmail.com?bcc=jakkipally@gmail.com&subject=Feedback to Sphurthy Encyclopedia&body=" + feedback); }
export const CALL_RESULT = { SUCCESS: 'SUCCESS', FAIL: 'FAIL' }; export const isTypeFromCall = (type, call) => type === call || type === createSuccessForCall(call) || type === createFailForCall(call); export const extractCallFromType = (type, CALLS) => { const callName = Object.getOwnPropertyNames(CAL...
/* * 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 ...
function showGameAsHost(model) { $("#host-game-id").text(model.game.gameId); $("#host-number-container").text(model.gameNumber); $("#host-max-tries").val(model.game.maxTries); $("#host-number").text("• ".repeat(model.game.digits).trim()); $("dropdown-invite").toggle(model.game.status === 0); $(...
/** * @name exports * @static * @summary Arguments for the device query */ module.exports = { identifier: { type: 'token', fhirtype: 'token', xpath: 'Device.identifier', definition: 'http://hl7.org/fhir/SearchParameter/Device-identifier', description: 'Instance id from manufacturer, owner, and...
// @flow import type { Position, LineString } from '@nebula.gl/edit-modes'; import type { ClickEvent, PointerMoveEvent } from '../event-types.js'; import type { EditAction } from './mode-handler.js'; import { ModeHandler } from './mode-handler.js'; // TODO edit-modes: delete handlers once EditMode fully implemented e...
/** * Copyright (c) 2018 Public Library of Science * * 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 without limitation * the rights to use, copy, modify,...
import aerokit.instance.riemann as riem import aerokit.aero.unsteady1D as uq import numpy as np import pytest def test_expansion_shock(): qL = uq.unsteady_state(rho=2., u=0., p=10.) qR = uq.unsteady_state(rho=1., u=0., p=1.) pb = riem.riemann_pb(qL, qR) assert pb.left_fastest() == pytest.approx(qL.left...
import React, {Component} from 'react'; import {Card, CardSection, Button, Input, Spinner} from './common'; import {Text, View} from 'react-native'; import firebase from 'react-native-firebase'; class LoginForm extends Component { state = { email: '', password : '', error : '', loading: false }; onButton...
define(['exports', 'x'], function (exports, x) { 'use strict'; function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } var x__default = /*#__PURE__*/_interopDefaultLegacy(x); Object.defineProperty(exports, 'x', { enumerable: true, get: function () {...
"use strict"; function $__interopRequire(id) { id = require(id); return id && id.__esModule && id || {default: id}; } Object.defineProperties(module.exports, { __esModule: {value: true}, SourceRange: { enumerable: true, get: function() { return SourceRange; } } }); var $__createClass = $__in...
import yaml from gate_api import ApiClient, Configuration, Order, SpotApi def load_gateio_creds(file): with open(file) as file: auth = yaml.load(file, Loader=yaml.FullLoader) return Configuration(key=auth['gateio_api'], secret=auth['gateio_secret'])
export const intro = [ 'Come in and take a look around! On this site you will learn a little bit about me and see sample projects. Seeing ideas come to life once a project is completed fuels my desire and passion to continuously learn more.', 'Some of the tech I utilize currently are the following: HTML, CSS, Java...
// @flow // Used for configuring a video parsing implementation. export type VideoParsingParameters = {| videoElement: HTMLVideoElement, secondsBetweenFrames?: number, |}; // VideoParsingParameters object in which the properties have been validated. export type ValidatedVideoParsingParameters = {| videoElement:...
/*! * Font Awesome Free 5.4.2 by @fontawesome - https://fontawesome.com * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) */ !function(){"use strict";var c={};try{"undefined"!=typeof window&&(c=window)}catch(c){}var z=(c.navigator||{}).userAgent,l=void 0===z?"...
"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]; })...
const { Client } = require('./client') const { RakClient } = require('./rak')(true) const assert = require('assert') const advertisement = require('./server/advertisement') const { sleep } = require('./datatypes/util') /** @param {{ version?: number, host: string, port?: number, connectTimeout?: number, skipPing?: boo...
import { defineMessages } from 'react-intl' const component = 'app.component.MaterialConditions' export default defineMessages({ materialPublication: { id: `${component}.materialPublication`, defaultMessage: 'Publication of materials', }, intro: { id: `${component}.intro`, defaultMessage: 'W...
Excel.run(function (ctx) { var chart = ctx.workbook.worksheets.getActiveWorksheet().charts.getItemAt(0); chart.format.fill.setSolidColor("#FF0000"); return ctx.sync(); }).catch(function (error) { console.log(error); });
export default { route: { dashboard: 'Dashboard', documentation: 'Documentation', guide: 'Guide', permission: 'Permission', pagePermission: 'Page Permission', rolePermission: 'Role Permission', directivePermission: 'Directive Permission', icons: 'Icons', components: 'Components', ...
(window.webpackJsonp=window.webpackJsonp||[]).push([[101],{1585:function(e,t,a){"use strict";a.r(t);var n=a(0),r=a.n(n),o=a(24),s=a.n(o),l=a(25),i=a.n(l),c=a(22),u=a.n(c),d=a(26),m=a.n(d),p=a(27),f=a.n(p),g=a(16),v=a.n(g),b=a(6),h=a.n(b),y=a(32),C=a(14),N=a(4),E=a(706),D=a.n(E),w=a(7),O=a.n(w),A=a(703),S=a(702),k=a(700...
const { Message, RichEmbed } = require('discord.js'); module.exports = (message = new Message) => { if (!message.member.voiceChannel) return false; if (message.client.voiceConnections.has(message.guild.id)) { const voiceChannel = message.client.voiceConnections.get(message.guild.id); if (voiceChannel.chann...
'use strict'; angular.module('booklists.admin').controller('BooklistAdminController', ['$scope', '$state', '$http', 'Authentication', 'booklistResolve', function ($scope, $state, $http, Authentication, booklistResolve) { $scope.authentication = Authentication; $scope.booklist = booklistResolve; $sco...
""" Fixed cell analysis All necessary functions for basic fixed cell image analysis. Part of my master thesis in molecular biology. Licensed under the MIT License (see LICENSE for details) Written by Bastian Eichenberger """ # TODO – make function (img coords to seg) import math import czifile import interaction_fac...
"""Temy: TemTem Assistant Usage: temy.py -h | --help temy.py -v | --version temy.py --espeak=<str> [--debug] [--windowed] Options: -h, --help Show this screen. -v, --version Show version. phone. --espeak=<str> Location of Espeak CLI executable. --debug Start program in debug mode...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import pandas as pd from common.PandasGoogleSpreadsheetWrapper import PandasGoogleSpreadsheetWrapper class LakshmiCharactersSheet(PandasGoogleSpreadsheetWrapper): SHEET_NAME = "Characters" def __init__(self, credentialsManager, spreadsheetId,...
import Colors from '../../constants/styles/colors' let styles = { container: { color: Colors.blue.extremely_light, display: 'flex', alignItems: 'center', flexDirection: 'column', textAlign: 'center', paddingTop: 50, '@media (max-device-width: 992px)': { paddingTop: 35, padding...
# Copyright 2021 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...
'use strict'; /* Controllers */ angular.module('mmsApp') .controller('TreeCtrl', ['$anchorScroll' , '$q', '$filter', '$location', '$uibModal', '$scope', '$rootScope', '$state','$timeout', 'growl', 'UxService', 'ElementService', 'UtilsService', 'ViewService', 'ProjectService', 'MmsAppUtils', ...
import numpy as np from kmn.util import trans_to_xya, trans_xya def trans_to_param(T): """ :param T: transformation matrix :return param: parameter of the scene """ x, y, theta = trans_to_xya(T) param = np.array([x, y, theta]) return param def param_to_trans(param): """ :param p...
/* eslint no-restricted-globals: 1 */ /* eslint no-undef: 1 */ // TODO: https://github.com/airbnb/javascript/issues/1632 const ctx = self ctx.onmessage = ({ data: { message } }) => { setTimeout(() => ctx.postMessage({ message: `Received a ${message} and sending a Pong!` }), 1550) };
var jshint = require('../../src'); var should = require('should'); var gutil = require('gulp-util'); var path = require('path'); require('mocha'); describe('gulp-jshint', function() { require('../util').requireDir(__dirname).forEach(function (loadTests) { loadTests(); }); });
import React from "react"; import { Component } from "react"; import banner from "./profile.jpg"; //for animated svgs use json file /*export default function BannerImg(){ const container = useRef(null) useEffect(() => { lottie.loadAnimation({ container: container.current, renderer: 'svg',...
import React from 'react'; import { Icon, List, Checkbox, Header, Menu } from 'semantic-ui-react'; import { setAlertDesign, setEntityDesign, cleanNodeId } from '../../lib/helper'; import { DataConsumer } from '../../context/data'; const domains = [ 'APM', 'INFRA', 'BROWSER', 'MOBILE', 'SYNTH', 'OTHER', '...
/* * Copyright 2017-2020 The ShadowEditor Authors. All rights reserved. * * Use of this source code is governed by a MIT-style * license that can be found in the LICENSE file. * * For more information, please visit: https://github.com/tengge1/ShadowEditor * You can also visit: https://gitee.com/tengge1/ShadowEd...
import React from "react" import { Link, graphql, useStaticQuery } from "gatsby" export default function Navbar() { const data = useStaticQuery(graphql` { site { siteMetadata { description title copyright } } } `) const { title } = data.site.sit...
var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; define(["require", "exports", "./AbstractElementManager", "./d...
var assert = require('assert'); var name = 'testmodule'; exports.modulename = 'testmodule'; exports.modulefunc = function() { return 'testmodule.modulefunc'; } exports.geterrno = function() { return errno; } exports.seterrno = function(e) { errno = e; } assert.equal(process.argv.length, 2);
import { describe, it } from '../../utils/mochaw' import { localhostUrl, testDeviceMobileNumber } from '../../config.json' import { goToPassportUploadScreen, uploadFileAndClickConfirmButton, } from './sharedFlows.js' import { runAccessibilityTest } from '../../utils/accessibility' import { until } from 'selenium-we...
import { Link } from 'react-router-dom' export default function Unauthorized({ resetDropDown = null, styles }) { const [navClassName, linkClassName] = styles return ( <nav className={navClassName} > <Link to="/login" className={linkClassName} onClick={resetDropDown} > <span className="thras...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z" /> , 'AirplanemodeActiveTwoTone');
_author__ = "moiSentinel" __license__ = "Apache License 2.0" __version__ = "1.0.1" __maintainer__ = "moiSentinel" __status__ = "In Progress" from pytube import * import os print("\nmoiSentineL's Youtube Bulk Video Downloader\nStable 1.0.1 / YDT 2.1.1") print("This program will download playlists from Yout...
const chai = require('chai') const dirtyChai = require('dirty-chai') const { ipcRenderer, remote } = require('electron') const { BrowserWindow, globalShortcut, Menu, MenuItem } = remote const { sortMenuItems } = require('../lib/browser/api/menu-utils') const { closeWindow } = require('./window-helpers') const { expec...
const BN = require("bn.js"); const fs = require("fs"); const XRegExp = require('xregexp'); const { sha3, soliditySha3, padLeft } = require("web3-utils"); var text = fs.readFileSync("./allowedAccountsAndValidators.txt", "utf-8"); var lines = text.split("\n") var writeStream = fs.createWriteStream("Storage.txt"); var re...
/*global define*/ /*jslint white:true,browser:true*/ define([ 'bluebird', 'kb_common/html', '../validators/text', 'common/events', 'common/ui', 'common/props', '../inputUtils', 'bootstrap', 'css!font-awesome' ], function( Promise, html, Validation, Events, UI, ...
/*! * JavaScript Cookie v2.1.1 * https://github.com/js-cookie/js-cookie * * Copyright 2006, 2015 Klaus Hartl & Fagner Brack * Released under the MIT license */ ;(function (factory) { if (typeof define === 'function' && define.amd) { define(factory); } else if (typeof exports === 'object') { module.exports =...
(function($) { iCMS.user = { OPENID:{}, info:{}, data: function(param) { $.get(iCMS.api('user', '&do=data'), param, function(c) { if(!c.code) { window.top.location.href = c.forward return false ...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["main"],{ /***/ "./$$_lazy_route_resource lazy recursive": /*!******************************************************!*\ !*** ./$$_lazy_route_resource lazy namespace object ***! \******************************************************/ /*! no static expo...
const express = require('express'); const mongoose = require('mongoose'); const User = require('../DB/User'); const route = express.Router(); // route.post('/', async(req,res, next) => { // const{firstName, lastName, emailId, password, loggedInStatus} = req.body; // let user = {}; // user.firstName = first...
/* This file is intended as sample input for "reversible-preproc". The contents are not intended for execution. */ /* The "reversible-preproc" program passes in a "defines" object variable containing properties which may be accessed by be proprocessor commands. The defines object variable is passed in by the calling...
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Building() result.template = "object/building/poi/shared_corellia_beldonna_large1.iff" result.attribute_template_...
// Protractor configuration file, see link for more information // https://github.com/angular/protractor/blob/master/lib/config.ts const { SpecReporter } = require('jasmine-spec-reporter'); const JasmineReporter = require('jasmine-reporters'); exports.config = { allScriptsTimeout: 11000, specs: [ './e2e/**/*....
"""A universe of graph terms with full sharing. Graphs are constructed much like terms in reducer.syntax, but with an extra level of indirection 'Ob' so as to allow building of cyclic terms. Unlike pomagma.cartographer and pomagma.analyst, each Ob has a unique parse, i.e. the database here is not quotiented. """ fro...
(function () { "use strict"; window.FourthWall = window.FourthWall || {}; FourthWall.GitLabPulls = Backbone.Collection.extend({ model: FourthWall.GitLabPull, initialize: function (models, options) { this.baseUrl = options.baseUrl; this.repo = options.repo; }, url: function () { ...
/** * Copyright 2004-present Facebook. All Rights Reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. * * @flow * @format */ import type {InventoryTreeNodeWithChildrenQuery} from './__generated__/InventoryTreeNodeWithChil...
import ast import importlib.util import os from typing import Dict, List, Optional from boa3 import constants from boa3.analyser.astanalyser import IAstAnalyser from boa3.model import imports from boa3.model.symbol import ISymbol from boa3.model.type.type import Type class ImportAnalyser(IAstAnalyser): def __in...
import time from typing import Dict import jwt from decouple import config JWT_SECRET = config("SECRET") JWT_ALGORITHM = config("ALGORITHM") def token_response(token: str): return { "access_token": token } def signJWT(user_id: str) -> Dict[str, str]: payload = { "user_id": user_id, ...
require('./bootstrap'); // import the App Router import router from './routes/Router'; import { createApp } from 'vue'; // import { useRoute } from 'vue-router'; import AppNavigation from './vue/layouts/AppNavigation.vue'; import AppSearchUserMenu from './vue/layouts/AppSearchUserMenu.vue'; import store from './st...
from unittest.mock import patch from posthog.models import Team, User from .base import BaseTest class TestUser(BaseTest): TESTS_API = True def test_redirect_to_site(self): self.team.app_urls = ["http://somewebsite.com"] self.team.save() response = self.client.get("/api/user/redirec...
/* # Copyright IBM Corp. All Rights Reserved. # # SPDX-License-Identifier: Apache-2.0 */ "use strict"; const shim = require("fabric-shim"); const ClientIdentity = require("fabric-shim").ClientIdentity; const Stub = require("fabric-shim").Stub; async function allowAppAccess(stub) { let cid = new ClientIdentity(stub...
(function(a){var b={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},c=b[typeof window]&&window||this,d=b[typeof exports]&&exports&&!exports.nodeType&&exports,e=b[typeof module]&&module&&!module.nodeType&&module,f=(e&&e.exports===d&&d,b[typeof global]&&global);!f||f.global!==f&&f.window!==f||(c=f)...
/* OpenLayers.js -- OpenLayers Map Viewer Library Copyright (c) 2006-2013 by OpenLayers Contributors Published under the 2-clause BSD license. See https://openlayers.org/dev/license.txt for the full text of the license, and https://openlayers.org/dev/authors.txt for full list of contributors. Includes comp...
import Vue from 'vue' function initComponent(componentMap) { for(let key in componentMap){ if(componentMap.hasOwnProperty(key)){ let url = componentMap[key]; Vue.component(key, ()=>import(`@/components/${url}`)) } } } let componentMap= { // 侧边主菜单 myAsideMenu:'basic/myAsideMenu.vue', // 下弹...
# 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...
import React from "react" import getThemeColor from "../../utils/getThemeColor" import LogoSite from "./desertologo.svg" import AniLink from "gatsby-plugin-transition-link/AniLink" import * as S from'./styled'; const Logo = () => ( <AniLink to="/" cover direction="left" duration={0.5} bg={getThemeColor()}> <S.L...
/** * @Author: Tony * @Date: 2019-09-18 15:55:41 * @Description: area source data */ export default [ { "value": "110000", "label": "北京市", "children": [ { "value": "110100", "label": "北京市", "children": [ { ...
import elasticsearch from "elasticsearch"; import * as xrayWrapper from "./xray-capture-wrapper"; const client = new elasticsearch.Client({ host: process.env.ELASTICSEARCH_HOST, log: "error" }); export function bulk(params) { return new Promise((resolve, reject) => { xrayWrapper.captureAsyncFunc("es bulk up...
import os import openpyxl as xl import pandas as pd import xlrd import xlwt import xlsxwriter import pathlib rootpath = 'E:\\College\\Semester 6\\Files\\python\\files iterate\\Test Data' header = [] folders = [] files =[] for r, d, f in os.walk(rootpath): for folder in d: folders.append(os.path.join(r,folder)) ...
# Copyright 2014-2016 F5 Networks 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 ...
// 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...