text
stringlengths
3
1.05M
module.exports = { presets: ["@babel/preset-env"], plugins: [ "@babel/plugin-proposal-class-properties", "@babel/plugin-proposal-object-rest-spread", [ "transform-inline-environment-variables", { include: ["NODE_ENV"] } ] ] };
'use strict'; const assert = require("assert") // case 1 try { const MarkdownIt = require("markdown-it") const MarkdownItMetaHeader = require("./index") const md = new MarkdownIt() md.use(MarkdownItMetaHeader) const input = "---\n1: 2\n3: 4\n5:\n - 6\n - 7\n8:\n - 9: 10\n - [ 11, 12, 13 ]\n---\n" const...
/** * 这个应该是把公共的部分提供给webpack.dev.config.js和webpack.prod.config.js使用 */ const path = require('path') // const webpack = require('webpack') const HtmlWebpackPlugin = require('html-webpack-plugin') const CleanWebpackPlugin = require('clean-webpack-plugin') // https://www.npmjs.com/package/mini-css-extract-plugin const Mi...
import React from 'react'; import { Text } from 'react-native'; const NameContext = React.createContext('Unknown'); const NameProvider = ({ children, first, last }) => { const fullName = `${first} ${last}`; return ( <NameContext.Provider value={fullName}> <Text>{children}</Text> </NameContext.Provid...
from __future__ import absolute_import, division, print_function from _echopype_version import version as __version__ # noqa from . import calibrate from .convert.api import open_raw from .echodata.api import open_converted from .process import Process # noqa __all__ = ["open_raw", "open_converted", "calibrate"]
$(document).ready(function() { $('.switch').each(function() { if($(this).attr('switch-on') != '' && $(this).attr('switch-off') != ''){ $(this).prepend('<span class="sw-e">'+$(this).attr('switch-on')+'</span><span class="sw-d">'+$(this).attr('switch-off')+'</span>'); }else{ $(this).prepend('<span class="sw-...
;(function(window) { 'use strict'; var Waves = Waves || {}; var $$ = document.querySelectorAll.bind(document); // Find exact position of element function isWindow(obj) { return obj !== null && obj === obj.window; } function getWindow(elem) { return isWindow(elem) ? elem ...
import datetime import warnings import matplotlib.pyplot as plt import numpy as np import pandas as pd from sklearn.metrics import mean_absolute_error, mean_squared_error from fedot.core.composer.gp_composer.gp_composer import \ GPComposerBuilder, GPComposerRequirements from fedot.core.composer.gp_composer.specif...
module.exports.UserRoutes = require('./Users') module.exports.CourseRoutes = require('./Courses') module.exports.ProjectRoutes = require('./Projects') module.exports.OrderCartRoutes = require('./OrderCart') module.exports.MoviesRoutes = require('./Movies') module.exports.CategoryRoutes = require('./Category') module.ex...
'use strict'; /** * Serverless Module: Lambda Handler * - Your lambda functions should be a thin wrapper around your own separate * modules, to keep your code testable, reusable and AWS independent * - 'serverless-helpers-js' module is required for Serverless ENV var support. Hopefully, AWS will add ENV support t...
const path = require('path'); const fse = require('fs-extra'); const { Proskomma } = require('proskomma'); const pkWithDocs = (contentSpecs) => { const pk = new Proskomma(); for (const [fp, selectors] of contentSpecs) { const content = fse.readFileSync(path.resolve(__dirname, fp)); let contentType = fp.s...
import { displayFile, stopDisplayingFile } from './org'; import raw from 'raw.macro'; export const setLoadingMessage = loadingMessage => ({ type: 'SET_LOADING_MESSAGE', loadingMessage, }); export const hideLoadingMessage = () => ({ type: 'HIDE_LOADING_MESSAGE', }); export const setIsLoading = isLoading => ({ ...
#(C) Copyright GitHub.com/tanujdey7 num = 0 for i in range(1,100): num = num + i print(num)
const {Transform} = require('stream'); const babel = require('gulp-babel'); const gulp = require('gulp'); const path = require('path'); const rimraf = require('rimraf'); const babelConfig = require('./babel.config.json'); const IGNORED_PACKAGES = [ '!packages/examples/**', '!packages/core/integration-tests/**', ...
import React from "react"; import { Canvas } from "@react-three/fiber"; import { Stars, Plane } from "@react-three/drei"; import Mars from "../components/mars"; import "../style/canvas.css"; import { Suspense } from "react"; function Landing() { return ( <div id="canvas-container" data-testid="landing-test"> ...
{ "name": "cleave.js", "url": "https://github.com/nosir/cleave.js.git" }
(function (definition) { if (typeof exports === "object") { var moment = require("moment"); module.exports = definition(moment); } else if (typeof define === "function" && define.amd) { define(['moment'], definition); } })(function (moment) { var scope = this.Common = {}; ...
/** * check email format * * @param String email */ function checkEmailFormat(email) { var re = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; return re.test(email); } /** * ajax upload image to serve...
const Contract = require('./contract'); const abiMapToken = require('../../abi/abi.MappingToken.json'); class MapToken extends Contract { constructor(chain, address, ownerPV, ownerAddress, abi) { super(chain, abi ? abi : abiMapToken, address, ownerPV, ownerAddress); } async mint(addr, amount) { const da...
Selectize.define('no_results_text', function (options) { var self = this; options = $.extend({ noResultsTextClass: 'selectize-no-results-text', noResultsText: self.settings.no_results_text, html: function (data) { return ( '<div class="' + data.noResu...
import mongoose from "mongoose" import { GraphQLObjectType, GraphQLNonNull, GraphQLString, GraphQLID, GraphQLList, GraphQLInputObjectType } from "graphql" import Action from "./Action" const customTestSchema = mongoose.Schema({ owner: { type: mongoose.Schema.Types.ObjectId, ref: "Page", ...
 InitTree(); function InitTree() { var id = $(".trace_id").val(); $.ajax({ url: "/HttpReportsData/GetTraceList/", type: "POST", contentType: "application/json; charset=utf-8", data: JSON.stringify({ Id: id }), success: function (result) { var tr...
""" This module handles the import of mitmproxy flows generated by old versions. The flow file version is decoupled from the mitmproxy release cycle (since v3.0.0dev) and versioning. Every change or migration gets a new flow file version number, this prevents issues with developer builds and snapshots. """ import uuid...
const merge = require('deepmerge') const request = require('request-promise-native') const CloudflareBypasser = require('cloudflare-bypasser') const promiseRetryOrigin = require('promise-retry') const { ResponseError, NotRetryableError } = require('./errors') const { STAGE_DESCRIPTION, STAGES_CONSTANTS, RETRY_OPTIONS }...
a = 1 || 2;
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = tslib_1.__importStar(require("react")); var styled_icon_1 = require("@styled-icons/styled-icon"); exports.ImageAlt = React.forwardRef(function (props, ref) { var attrs = { "fill": "curren...
import React, { useState } from "react"; import ColorButtons from "./ColorButtons"; import PositionedCircle from "./PositionedCircle"; function getRandom(min = 0, max = 100) { return Math.random() * (max - min) + min; } function ColorfulCircles() { const [colors, setColors] = useState([]); const addColor = new...
import { AmbientLight, BoxGeometry, DirectionalLight, Group, Mesh, MeshStandardMaterial, PlaneGeometry, PointLight, SphereGeometry } from "three"; /** * Creates lights. * * @return {Group} The lights. */ export function createLights() { const ambientLight = new AmbientLight(0x160D03); const lightCeil...
import '../npm/remax/esm/render.js'; import { createElement } from 'react'; import '../npm/remax/esm/createAppConfig.js'; import createPageConfig from '../npm/remax/esm/createPageConfig.js'; import '../npm/remax/esm/index.js'; import '../npm/remax/esm/adapters/alipay/components/propsAlias.js'; import View from '../npm/...
/* * Copyright (c) 2014 Juniper Networks, Inc. All rights reserved. */ /** * @virtualdnsconfig.api.js * - Handlers for Virtual DNS Configuration * - Interfaces with config api server */ var ctrlerConfig = require('../../../common/js/controller.config.global'); var rest = require(ctrlerConfig.core...
/* * The copyright in this software is being made available under MIT License * MIT License, included below. This software may be subject to other third * party and contributor rights, including patent rights, and no such rights * are granted under this license. * * Copyright (c) 2014-2016, Universite catholiqu...
Util.Modules["bulkremove"] = new function() { this.init = function(form) { console.log("bulkremove") u.f.init(form); form.p_response = u.ae(form, "p", {"class":"response"}); form.submitted = function() { this.response = function(response) { form.p_response.innerHTML = response.cms_object.message;...
import { templateToName } from '../../tools/helper'; import { evalExpress } from '@hai2007/algorithm/value'; import { replaceDom } from '../../tools/xhtml'; // 挂载结点的任务主要有以下内容: // 1.生成真实dom并挂载好 // 2.收集指令,过滤器和组件信息(根据全局和局部的,进行抽取和校验),在数据更新的时候启动更新 // 3.当前组件和父亲组件,包括子组件,还有事件等,在必要的时候挂载或启动,还有什么时候应该销毁等信息的登记 function mountDom(...
import React from "react"; const NotFoundPage = () => ( <div> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist....</p> </div> ); export default NotFoundPage;
deepmacDetailCallback("0040bc000000/24",[{"d":"2000-09-08","t":"add","a":"3 DRAYTON PARK\nLONDON N5 1NU\n\n","c":"ENGLAND","o":"ALGORITHMICS LTD."},{"d":"2005-07-21","t":"change","a":"3 DRAYTON PARK\nLONDON N5 1NU\nENGLAND\n","c":"UNITED KINGDOM","o":"ALGORITHMICS LTD."},{"d":"2015-08-27","t":"change","a":"3 DRAYTON PA...
const ExtractTextPlugin = require('extract-text-webpack-plugin'); process.env.BABEL_ENV = 'production'; process.env.NODE_ENV = 'production'; const autoprefixer = require('autoprefixer'); const webpack = require('webpack'); const paths = require('./paths'); const shouldUseSourceMap = false; module.exports = { // D...
/** * @file Weixn optimized request * @author sparklewhy@gmail.com */ 'use strict'; import naRequest from '../na/request'; const rawRequest = naRequest.request; /** * The waiting to request queues * * @type {Array} */ const waitingQueues = []; /** * The max allow parallel request number * * @type {number...
import { Component } from 'inferno'; export default class DecisionPropertiesComponent extends Component { constructor(props, context) { super(props, context); this._viewer = context.injector.get('viewer'); } render() { // there is only one single element const { name, id } = this._viewer.getD...
import React from "react"; import { BrowserRouter, Routes, Route } from "react-router-dom"; import ReactDOM from "react-dom"; import "./index.css"; import App from "./App"; import Form from "./routes/Form"; import DeleteForm from "./routes/forms/DeleteForm"; import UpdateForm from "./routes/forms/UpdateForm"; import Us...
from setuptools import find_packages, setup from horn import __version__ with open('README.md', 'r') as f: readme = f.read() setup( name='horn-py', version=__version__, url='https://bigfang.github.io/horn-py', author='bigfang', author_email='bitair@gmail.com', description='A Flask scaff...
/* * Copyright (C) 2012 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
var commonCityData = require('../../utils/city.js') //获取应用实例 var app = getApp() Page({ data: { provinces:[], citys:[], districts:[], selProvince:'请选择', selCity:'请选择', selDistrict:'请选择', selProvinceIndex:0, selCityIndex:0, selDistrictIndex:0 }, bindCancel:function () { wx.na...
import './TreeHierarchyComponent.css'; export default class TreeHierarchyComponent { constructor () { console.log('in TreeHierarchyComponent constructor'); } readyButton1(event) { var cmp = event.detail.cmp; this.button1Cmp = event.detail.cmp; } tapButton1(event) { this.button1Cmp.setText(...
/** @module @ember-data/store */ import ArrayProxy from '@ember/array/proxy'; import { computed, get, set } from '@ember/object'; import { DEBUG } from '@glimmer/env'; import { Promise } from 'rsvp'; import { RECORD_ARRAY_MANAGER_IDENTIFIERS } from '@ember-data/canary-features'; import DeprecatedEvented from '../d...
/*! * inputmask.min.js * http://github.com/RobinHerbots/jquery.inputmask * Copyright (c) 2010 - 2016 Robin Herbots * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) * Version: 3.2.7 */ !function(a){"function"==typeof define&&define.amd?define(["inputmask.dependencyLib"],a):"ob...
/* Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license/ */ CKEDITOR.lang['bn']={"editor":"Rich Text Editor","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"Press ALT 0 for help","browseServer":"ব্রাউজ ...
initSidebarItems({"enum":[["ConnectionError","The various error cases a connection may encounter."],["FrameDecodeError","Possible errors while decoding a message frame."],["HeaderDecodeError","Possible errors while decoding a message frame header."],["Mode","How the connection is used."],["WindowUpdateMode","Specifies ...
var express = require('express'), formidable = require('formidable'), cookieParser = require('cookie-parser'), util = require('util'), fs = require("fs"), async = require('async'); // Load environment variables from .env file require('dotenv').config({ path: 'credentials.env' }); // Initialize Cloudant va...
macDetailCallback("c86314500000/28",[{"d":"2019-01-15","t":"add","s":"ieee-mam.csv","a":"382 Kwun Tong Road Hong Kong HK 0000","c":"HK","o":"Meyer Electronics Limited"}]);
value = int(input("Enter a (integer) value: ")) values = [ 82, 36, 37, 17, 19, 80, 59, 31, 2, 42 ] found = False for x in values: if x == value: found = True
/*! jQuery UI - v1.9.2 - 2015-07-19 * http://jqueryui.com * Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */ jQuery(function(e){e.datepicker.regional.lb={closeText:"Fäerdeg",prevText:"Zréck",nextText:"Weider",currentText:"Haut",monthNames:["Januar","Februar","Mäerz","Abrëll","Mee","Juni","Juli"...
import React from "react"; import { Container } from "../../utils/Container/styles"; import * as S from "../../styles/styles"; import login from "../../../Assets/login.png"; const Create = () => { return ( <Container> <S.Image src={login} alt="Image da tela de login do aplicado" /> <S.Wrapper> ...
#!/usr/bin/env python2 ## -*- coding: utf-8 -*- ## ## The binary read_from_file opens the file /etc/passwd and checks if it's a binary. ## This script symbolizes the file /etc/passwd and returns a model which satisfies the ## condition "is a binary". Basically, it returns the .ELF magic which must be present ## in the ...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = parse; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _split = require('split'); var _split2 = _interopRequireDefault(_split); var _fs = require('fs'); var _fs...
from typing import Set, List, Tuple, FrozenSet, AbstractSet from npsem.model import CausalDiagram from npsem.utils import pop, only, combinations def CC(G: CausalDiagram, X: str): """ an X containing c-component of G """ return G.c_component(X) def MISs(G: CausalDiagram, Y: str) -> FrozenSet[FrozenSet[str...
import { get, remove } from "../data/crud"; import { post } from "axios"; import BaseService from './base-service'; class GiveawayService extends BaseService { constructor() { super('giveaways') } save(giveaway) { let formData = new FormData(); for (var key in giveaway) { formData.append(key, ...
#!/usr/bin/env python3 # # Docker controlling module # # Copyright (c) 2016 Red Hat Inc. # # Authors: # Fam Zheng <famz@redhat.com> # # This work is licensed under the terms of the GNU GPL, version 2 # or (at your option) any later version. See the COPYING file in # the top-level directory. import os import sys impor...
/* eslint-disable import/prefer-default-export */ const admin = require('firebase-admin'); // Save base references to save on duplicate code const datematchref = admin.database().ref(`/datematch`); const userref = admin.database().ref(`/users`); const fetchMatch = (req, res) => { try { datematchref.once('value'...
import { moment } from 'meteor/momentjs:moment'; import { OHIF } from 'meteor/ohif:core'; import DIMSE from 'dimse'; /** * Parses resulting data from a QIDO call into a set of Study MetaData * * @param resultData * @returns {Array} An array of Study MetaData objects */ function resultDataToStudies(resultData) { ...
var classHelix_1_1Logic_1_1dev_1_1Screen = [ [ "Screen", "classHelix_1_1Logic_1_1dev_1_1Screen.html#ae7576476fc6e6a6eaa66389fdc41fe72", null ], [ "Screen", "classHelix_1_1Logic_1_1dev_1_1Screen.html#a29561d1cc7fd4937bdf9f9cee42c4fda", null ], [ "~Screen", "classHelix_1_1Logic_1_1dev_1_1Screen.html#a4243bc17...
import { Router } from 'express' import { Index, Show, Create, Update, Remove } from '../controllers/commentController' const router = Router({ mergeParams: true }) // get all Comments // router.get('/', Index) //Show a Comment router.get('/:id/', Show) //Create Comments router.post('/', Create) //Upload...
/* * Copyright 2016 Nate Yolles * * 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 i...
const path = require('path'); const fs = require('fs'); const { execSync } = require('child_process'); const PKG_JSON_PATH = path.join(__dirname, '..', '..', 'package.json'); const pkgJson = require(PKG_JSON_PATH); const PACKAGE_NAME = pkgJson.name; const VERSION = pkgJson.version; const nextVersion = getNextVersio...
var totalDaysInMonth = require('./totalDaysInMonth'); var totalDaysInYear = require('./totalDaysInYear'); var convert = require('../time/convert'); /** * calculate the difference between dates (range) */ function diff(start, end, unitName) { // sort the dates to make it easier to process (specially year/month) ...
/** * @module ProjectManager */ /** * I am the ProjectsModel. I hold the data of all projects stored on the server. * * @class ProjectsModel * @static * @main */ FrameTrail.defineModule('ProjectsModel', function(){ var projectsIndex = {}, projects = {}, defaultConfig = {}; /** * I l...
import { ParallaxImage } from "./parallax-image.js"; import { StorybookUtilities } from "@lrnwebcomponents/storybook-utilities/storybook-utilities.js"; window.StorybookUtilities.requestAvailability(); /** * add to the pattern library */ /*const Pattern = { "of": "Pattern Library/Molecules/Layout", //Pattern...
(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[10],{529:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return A}));var o=r(0),c=r(1),a=r.n(c),n=r(581),d=r(2),l=r(7),m=r(3),i=r(9),s=r.n(i),u=r(23),b=r(12),_=r(139),p=r(17),w=r(11),O=r(21),j=r(550),f=r(545);class y extends o.Comp...
/* * bootstrap-table - v1.9.0 - 2015-09-30 * https://github.com/wenzhixin/bootstrap-table * Copyright (c) 2015 zhixin wen * Licensed MIT License */ !function(a){"use strict";var b=function(b,c){b.options.columnsHidden.length>0&&a.each(b.columns,function(d,e){-1!==b.options.columnsHidden.indexOf(e.field)&&e.visibl...
/* Copyright (c) 2006-2013 by OpenLayers Contributors (see authors.txt for * full list of contributors). Published under the 2-clause BSD license. * See license.txt in the OpenLayers distribution or repository for the * full text of the license. */ OpenLayers.Layer.HTTPRequest=OpenLayers.Class(OpenLayers.Layer,{URL...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WrappedNodeRedisMultiImpl = void 0; const nodeRedis = require("redis"); const flatten_1 = require("../flatten"); const util_1 = require("util"); const WrappedNodeRedisMultiImpl = class _WrappedNodeRedisMulti { constructor(multi) { ...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ :mod:`bankid.client` -- BankID Client ===================================== Created on 2014-09-09 by hbldh """ from __future__ import division from __future__ import print_function from __future__ import unicode_literals from __future__ import absolute_import import...
const Discord = require("discord.js"); module.exports.run = async (bot, message, args) => { //guild role info embed let roleembed = new Discord.RichEmbed() .setColor("#FFD700") .addField("Roles", message.guild.roles.size) .addField(`List of roles in ${message.guild.name}`, message.guil...
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||...
# -*- coding: utf-8 -*- import re if __name__ == '__main__': d = {'a':1 , 'b':2} print(sum(d.values())) a = sorted(d.items(), key=lambda x: x[1], reverse=False) c = {i[0]:i[1] for i in a} print(c) before_string = 'aaccd' translate_dict = {'aa':'b','cc':'e'} translate_dict ...
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import store from './store'; import AppRouter from './routers/AppRouter'; ReactDOM.render( <Provider store={store}> <AppRouter /> </Provider>, document.getElementById('app') ); module....
# -*- coding: utf-8 -*- """ Return salt data via slack This version of the returner is designed to be used with hubblestack pulsar, as it expects the limited data which pulsar provides. The following fields can be set in the minion conf file:: .. code-block:: yaml slack_pulsar.channel (required) slack_pulsa...
from __future__ import print_function from __future__ import division import torch import torch.nn as nn import torch.optim as optim import numpy as np import torchvision from torchvision import datasets, models, transforms import matplotlib.pyplot as plt from PIL import Image import time import os import c...
/** * @param {number} n - a positive integer * @return {number} */ var hammingWeight = function(n) { var numOfZero = 0; while(n){ numOfZero += n%2; n >>=1; } return numOfZero; };
import { db } from 'src/lib/db'; export const blogPosts = () => { return db.blogPost.findMany(); }; export const postBySlug = ({ slug }) => { return db.blogPost.findUnique({ where: { slug }, }); };
var password = document.getElementById("inputPassword") , confirm_password = document.getElementById("inputConfirmPassword"); function validatePassword(){ if(password.value != confirm_password.value) { confirm_password.setCustomValidity("Passwords Don't Match"); } else { confirm_password.setCustomValidit...
import os import sys sys.path.append("../../../../monk_v1"); sys.path.append("../../../monk/"); import psutil from gluon_prototype import prototype from compare_prototype import compare from common import print_start from common import print_status import mxnet as mx import numpy as np from gluon.losses.return_loss i...
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- """Module ...
var searchData= [ ['cache_5fmodified_5finput_5fiterator_2ecuh',['cache_modified_input_iterator.cuh',['../cache__modified__input__iterator_8cuh.html',1,'']]], ['cache_5fmodified_5foutput_5fiterator_2ecuh',['cache_modified_output_iterator.cuh',['../cache__modified__output__iterator_8cuh.html',1,'']]], ['cacheloadmo...
import * as React from 'react'; import { TOOLBAR_PLUGIN_PROP_TYPES } from '../shared/PluginApi'; import EditList from './EditListWrapper'; const applyChange = (editor, type, logAction) => { const { utils, changes: { unwrapList, wrapInList } } = EditList(); if (utils.isSelectionInList(editor.value)) { ...
//Nothing really to see here, no template
import { setData } from '@progress/kendo-angular-intl'; setData({ name: "fr-ML", likelySubtags: { fr: "fr-Latn-FR" }, identity: { language: "fr", territory: "ML" }, territory: "ML", calendar: { patterns: { d: "dd/MM/y", D: "EEEE d MMMM ...
/* * 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...
module.exports = { extends: ['prettier-airbnb'], // globals for jest globals: { afterEach: false, beforeEach: false, describe: false, expect: false, it: false, jest: false, }, rules: { 'arrow-parens': 'off', // conflicts with prettier 'comma-dangle': ['error', 'only-multiline...
from typing import Optional, List, Tuple, Dict, Any from networkx.classes.digraph import DiGraph from checkov.common.graph.checks_infra.enums import Operators from checkov.common.graph.checks_infra.solvers.base_solver import BaseSolver from checkov.common.checks_infra.solvers.connections_solvers.complex_connection_so...
define(function(require) { 'use strict'; const d3Format = require('d3-format'); let idCounter = 0; const integerValueFormats = { small: { limit: 10, format: d3Format.format('') }, medium: { limit: 1000, format: d3Format.format(''...
""" Copyright (c) Facebook, Inc. and its affiliates. """ import unittest import droidlet.base_util import droidlet.lowlevel.minecraft.shape_util import droidlet.lowlevel.minecraft.shapes from droidlet.memory.craftassist.mc_memory import MCAgentMemory from droidlet.shared_data_struct.craftassist_shared_utils import MO...
module.exports = { "env": { "node": true, "es6": true, }, "parserOptions": { "ecmaVersion": 6, "sourceType": 'module', "ecmaFeatures": { "jsx": true, "experimentalObjectRestSpread": true }, }, 'plugins': [ 'react-hooks', ], rules: { semi: 'off',...
import React from 'react'; import ListItem from '@material-ui/core/ListItem'; import ListItemIcon from '@material-ui/core/ListItemIcon'; import ListItemText from '@material-ui/core/ListItemText'; import HomeWorkIcon from '@material-ui/icons/HomeWork'; import AccountCircleIcon from '@material-ui/icons/AccountCircle'; im...
export class Index { static Name() { return 'Index'; } }
/** * @author Brandon Alexander - baalexander@gmail.com */ /** * Publish and/or subscribe to a topic in ROS. * * Emits the following events: * * 'warning' - if there are any warning during the Topic creation * * 'message' - the message data from rosbridge * * @constructor * @param options - object with fol...
// Model Ticket.js module.exports = mongoose => { // Schema Ticket /** * Questo metodo crea uno schema Mongoose per il ticket * @param {Object} - mongoose * @returns {Object} - restituisce lo schema del ticket */ const schema = mongoose.Schema( { titolo: String, problema: String, sol...
import { Link } from 'react-router-dom' /** * About Component. */ const About = () => { return ( <div> <span> <p>Version 0.1</p> <Link to ="/">Go Back</Link> </span> </div> ); } export default About;
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M7 7h14v9H7z" opacity=".3" /><path d="M3 9H1v11c0 1.11.89 2 2 2h17v-2H3V9z" /><path d="M18 5V3c0-1.1-.9-2-2-2h-4c-1.1 0-2 .9-2 2v2H5v11c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5h-5zm-6-2h...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.Context = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || ...
from strategy.base_ccp import BaseCaptain from gosling.utils import * from physics.math import Vec3 from strategy.drone import Drone from strategy.players import * import numpy as np class DefenderState: """" In shadowing, the keeper goes to the goal and focuses on strategic positioning. Once the correct ...