text
stringlengths
3
1.05M
import AccessMethodsRequest from '../accessMethodsRequest' beforeEach(() => { jest.restoreAllMocks() jest.clearAllMocks() }) describe('AccessMethodsRequest#constructor', () => { test('sets the default values when authenticated', () => { const token = '123' const request = new AccessMethodsRequest(token)...
import React, { useEffect, useRef, useState } from 'react'; import { useId } from '../utils/autoId'; import getFocusableElements from '../utils/getFocusableElements'; import { MenuContextProvider } from './context'; import usePrevious from '../utils/usePrevious'; import Box from '../Box'; const Menu = ({ anchorEl, ...
/* * angular-ui-bootstrap * http://angular-ui.github.io/bootstrap/ * Version: 0.12.0-SNAPSHOT - 2014-10-06 * License: MIT */ angular.module("ui.bootstrap", ["ui.bootstrap.tpls", "ui.bootstrap.transition","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.bindHtml","ui.bootstrap.bu...
import Turndown from 'turndown' export const fetchRole = async function ({ commit, state }, id) { const result = await this.$api.getTableRows({ code: this.$config.contracts.dao, scope: 'role', table: 'objects', lower_bound: parseInt(id), upper_bound: parseInt(id), limit: 1 }) if (result ...
""" Created on 2/9/2014 @author: victor """ from pyproct.data.handler.dataSource import DataSource from pyproct.data.handler.sourceGenerator import SourceGenerator from pyproct.tools.plugins import PluginHandler from pyproct.data.handler.elementRange import ElementRange class DataHandler(object): """ Loads th...
/*! jQuery v3.2.1 | (c) JS Foundation and other contributors | jquery.org/license */ !function(a,b){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined...
'use strict' const EventEmitter = require('events') const request = require('request-promise') const Op = require('sequelize').Op const VError = require('verror') const callSchema = require('./call-schema') const rabbitmq = require('../rabbitmq') class Notifier extends EventEmitter { constructor(db, uri, queue, pre...
from .parallel_sentence import ParallelSentenceModel from .app_response import CustomResponse from .app_status import Status
import React from 'react'; import { PropTypes } from 'prop-types'; import { Card, Button, Form, Col } from 'react-bootstrap'; import * as yup from 'yup'; import axios from 'axios'; import libphonenumber from 'google-libphonenumber'; import InfoTooltip from '../../util/InfoTooltip'; import PhoneInput from '../../util/P...
(window.webpackJsonp=window.webpackJsonp||[]).push([[154],{"29d2":function(module,exports){module.exports=function(hljs){return{aliases:["do","ado"],case_insensitive:!0,keywords:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 ad...
# coding: utf-8 # /*########################################################################## # Copyright (C) 2016 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # i...
const jira = require('../src/jira')() describe('Jira', () => { test('plugin does build a link and return a zazu object', () => { return jira('ISSUE-123', {jiraBaseUrl: 'http://jira.company.de'}).then((results) => { expect(results[0].title).toBe('Issue ISSUE-123') expect(results[0].subtitle).toBe('htt...
import numpy as np import torch import torch.nn as nn from torch.autograd import Variable from onnx2keras import onnx_to_keras, check_torch_keras_error import onnx import pytest from test.utils import convert_and_test class FDiv(nn.Module): def __init__(self): super(FDiv, self).__init__() def forwar...
# Copyright 2021, The TensorFlow Federated 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 o...
"""password Migration Revision ID: ada22baae3f5 Revises: 662abc1887d9 Create Date: 2020-10-24 16:16:30.323196 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'ada22baae3f5' down_revision = '662abc1887d9' branch_labels = None depends_on = None def upgrade(): ...
import chai from "chai"; const expect = chai.expect; import { Sessions } from "../src/Session.js"; import { makeClients, waitForClientDisconnects, enableLogs, disableLogs } from "./src/common.js"; describe("Brackets", function() { let clients = []; let sessionID = "SessionID"; let ownerIdx = null; beforeEach(func...
const { AppStartConfig } = require('hexin-core'); const Seeder = require('hexin-core/helpers/Seeder'); const Database = require('hexin-core/helpers/Database'); // plugin models // const Plugin_PageModel = require('hexin-core-plugins/hexin-plugin-page-node/models/Page'); module.exports = class SeedConfig extends AppSta...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Log { blue(str) { console.log(`\x1b[34m${str}\x1b[0m`); } green(str) { console.log(`\x1b[32m${str}\x1b[0m`); } error(str) { console.log(`[\x1b[31m Error \x1b[0m]:\x1b[31m ${str}\x1b[0m`); }...
/* -*- mode: js; js-indent-level: 2; indent-tabs-mode: nil -*- Copyright 2013 Jens Lindström, Opera Software ASA 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/licen...
const sg = require('sendgrid')(process.env.SG_API_KEY); sg.globalRequest.headers['User-Agent'] = 'subscription-widget/1.0.0'; const path = require('path'); const Settings = require('../../settings'); const optIn = 'opt-in'; function prepareConfirmationEmail(reqBody) { const subject = "Please Confirm Your Email Addre...
// Matches a whole line break (where CRLF is considered a single // line break). Used to count lines. export const lineBreak = /\r\n?|\n|\u2028|\u2029/; export const lineBreakG = new RegExp(lineBreak.source, 'g'); export function isNewLine(code) { return code === 10 || code === 13 || code === 0x2028 || code == 0x...
define("ace/mode/twig",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/tokenizer","ace/mode/twig_highlight_rules","ace/mode/behaviour/html","ace/mode/folding/html","ace/mode/matching_brace_outdent"],function(e,t,n){var r=e("../lib/oop"),i=e("./text").Mode,s=e("./jav...
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the LICENSE // file in the root directory of this source tree. // // RUN: LC_ALL=C.UTF-8 %hermes -O -serialize-file=%t.sd.dat -target=HBC %s | %FileCheck --match-full-lines %s // RUN: LC_ALL=C.UTF-8 %he...
export { default as TicketsPaymentPage } from './TicketsPaymentPage';
'use strict'; var mongoose = require('mongoose'), Promise = require('bluebird'), Schema = mongoose.Schema, Captcha = new Schema({ code: {type: Number, unique: true}, created: Date }, { autoindex: process.env.NODE_ENV !== 'production', id: false }), SwaggerSpec ...
import React, { useEffect, useState } from 'react'; import { Button } from 'react-bootstrap'; import Chat from './Chat/Chat'; import ChatIcon from './Chat/chat-icon-white.png'; import CloseIcon from './Chat/Close-icon.png'; import MisterX from './MisterX'; import Player from './Player'; import QuitButton from './QuitBu...
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: embedding.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.proto...
OpenLayers.Lang["zh-TW"]={unhandledRequest:"未處理的請求,傳回值為 ${statusText}。",Permalink:"永久連結",Overlays:"額外圖層","Base Layer":"基礎圖層",readNotImplemented:"沒有實作讀取的功能。",writeNotImplemented:"沒有實作寫入的功能。",noFID:"因為沒有 FID 所以無法更新 feature。",errorLoadingGML:"讀取GML檔案 ${url} 錯誤。",browserNotSupported:"您的瀏覽器未支援向量渲染. 目前支援的渲染方式是:\n${renderers}...
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy class FehdLicenseItem(scrapy.Item): updatedAt = scrapy.Field() department = scrapy.Field() licenseType = scrapy.Field() district = scrap...
//Not used yet. export default function authHeader() { const user = JSON.parse(localStorage.getItem('user')); if (user && user.accessToken) { // for Node.js Express back-end return { 'x-access-token': user.accessToken }; } else { return {}; } }
var namespace_l_d_a_p___library___unit_test = [ [ "localhost", "namespace_l_d_a_p___library___unit_test_1_1localhost.html", "namespace_l_d_a_p___library___unit_test_1_1localhost" ], [ "LoggerUnitTests", "namespace_l_d_a_p___library___unit_test_1_1_logger_unit_tests.html", "namespace_l_d_a_p___library___unit_tes...
/* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.lang['zh-cn']={"editor":"所见即所得编辑器","editorPanel":"所见即所得编辑器面板","common":{"editorHelp":"按 ALT+0 获得帮助","browseServer":"浏览服务器","url":"URL","protocol":"协议","upload":"上传",...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); let _ = require('lodash'); const pip_services3_commons_node_1 = require("pip-services3-commons-node"); const pip_services3_aws_node_1 = require("pip-services3-aws-node"); class CorrectionsLambdaClientV1 extends pip_services3_aws_node_1.Command...
'use strict'; // --------------------------------------------------------------------------- const Exchange = require ('./base/Exchange'); const { ExchangeError, ArgumentsRequired, ExchangeNotAvailable, PermissionDenied, InvalidOrder, AuthenticationError, InsufficientFunds, OrderNotFound, DDoSProtection } = require ...
import React from 'react'; import { Field, FieldArray, reduxForm } from 'redux-form'; import Personal from '../oldMasterForm/Personal'; class ClientEdit extends React.Component { constructor(props){ super(props); this.sendPatch = this.sendPatch.bind(this); }; sendPatch(formData) { formData.id = this...
import { container, title } from "assets/jss/material-kit-react.js"; const landingPageStyle = { container: { zIndex: "12", color: "#FFFFFF", ...container }, title: { ...title, display: "inline-block", position: "relative", marginTop: "30px", minHeight: "32px", color: "#FFFFFF"...
(this.webpackJsonpmelectmon=this.webpackJsonpmelectmon||[]).push([[48],{483:function(e,n,t){"use strict";t.r(n),t.d(n,"conf",(function(){return r})),t.d(n,"language",(function(){return i}));var s=t(192),r={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{...
// Regular expression that matches all symbols in the Kana Supplement block as per Unicode v6.1.0: /\uD82C[\uDC00-\uDCFF]/;
import commonjs from "rollup-plugin-commonjs"; export default [ { input: "src/cli-index.js", output: { file: "dist/cli-index.js", format: "cjs" }, external: ["shelljs", "yargs"] }, { input: "src/index.js", output: { file: "dist/index.js", format: "cjs" }, p...
var helper = require("node-red-node-test-helper"); var testNode = require("../nodes/find-user.js"); helper.init(require.resolve('node-red')); describe('find-user node', function () { beforeEach(function (done) { helper.startServer(done); }); afterEach(function (done) { helper.unload(); hel...
import * as PIXI from 'pixi.js'; let x = 0 console.log(x); num() const app = new PIXI.Application({ backgroundColor: 0x1099bb, width: 700, height: 700, }); app.stop(); document.body.appendChild(app.view); function num(x, y) { console.log(x + y) } num("num ", 10 + 10) function nums(x, y) { console...
/*! jQuery v1.12.2 | (c) jQuery Foundation | jquery.org/license */ ! function(a, b) { "object" == typeof module && "object" == typeof module.exports ? module.exports = a.document ? b(a, !0) : function(a) { if (!a.document) throw new Error("jQuery requires a window with a document"); return b(a) ...
// @flow import "lodash.product"; import { product } from "lodash"; import uniq from "lodash/uniq"; import { BigNumber } from "bignumber.js"; import asciichart from "asciichart"; import invariant from "invariant"; import { Observable } from "rxjs"; import { toBalanceHistoryRaw } from "@ledgerhq/live-common/lib/account...
var searchData= [ ['voicepermissiondialogfragment_128',['VoicePermissionDialogFragment',['../classcom_1_1harsh_1_1searchwidget_1_1_fragments_1_1_voice_permission_dialog_fragment.html',1,'com::harsh::searchwidget::Fragments']]] ];
""" Role tests """ import os import pytest from testinfra.utils.ansible_runner import AnsibleRunner testinfra_hosts = AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') def test_packages(host): """ Check if packages are installed """ packages = [ 'libmaxminddb0'...
import React from "react"; function Title({ text }) { console.log("title component"); return <>{text && <h1>{text}</h1>}</>; } export default Title;
# flake8: noqa # import all models into this package # if you have many models here with many references from one model to another this may # raise a RecursionError # to avoid this, import only the models that you directly need like: # from from com.precisely.apis.model.pet import Pet # or import this package, but bef...
import Random from '@/lib/Random'; import { toBeValidCountData, toBeValidIndexRangeFor } from '@/lib/test/ExpectMatchers'; import { generateAtrSpeedVolume, generateAtrVolume, generateHourOfDayRange, generateIndexRange, generateRandomCountData, generateTmc, generateTmc14Hour, generateWithMissing, } from ...
/*! Filter widget select2 formatter function - updated 2/7/2015 (v2.19.0) * requires: jQuery 1.7.2+, tableSorter (FORK) 2.16+, filter widget 2.16+ and select2 v3.4.6+ plugin */ /*jshint browser:true, jquery:true, unused:false */ /*global jQuery: false */ ;(function($){ "use strict"; var ts = $.tablesorter || {}; ts....
require('app/JsHilite.js'); function publish (fileGroup, context) { if (!context.d) { return; } var files = fileGroup.files; var names = []; for (var i = 0, ix = files.length; i < ix; i++) { names.push(files[i].overview.name || files[i].filename); } names.sort(); var mad = isset(context.mad) ? conte...
from django.db import models # Create your models here. class Stock(models.Model): name = models.CharField(max_length=150) file = models.CharField(max_length=100)
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- import os from datasets.imdb import imdb import datasets.ds_utils as ds...
/* eslint no-alert: 0 */ /* eslint max-len: 0 */ import React, { Component, PropTypes } from 'react'; import Const from './Const'; import TableHeader from './TableHeader'; import TableBody from './TableBody'; import PaginationList from './pagination/PaginationList'; import ToolBar from './toolbar/ToolBar'; import Table...
const { filter, orderBy, values } = require('lodash') const Pizza = require('../models/pizza') const ImageStore = require('../lib/imageStore') // const PizzaStore = require('./pizzaStore') const pizzas = {} async function init () { // await PizzaStore.initialize() } async function create (name, toppings, img, use...
/** * @author mrdoob / http://mrdoob.com/ */ THREE.OBJExporter = function () {}; THREE.OBJExporter.prototype = { constructor: THREE.OBJExporter, parse: function ( object ) { var output = ''; var indexVertex = 0; var indexVertexUvs = 0; var indexNormals = 0; var faceVertexKeys = [ ...
J$.iids = {"9":[2,1,2,7],"10":[3,10,3,84],"17":[2,19,2,26],"18":[2,18,4,3],"25":[2,27,2,37],"33":[2,19,2,38],"41":[3,10,3,16],"49":[3,32,3,34],"57":[3,36,3,39],"65":[3,71,3,72],"73":[3,71,3,72],"81":[3,64,3,73],"89":[3,48,3,74],"97":[3,48,3,74],"105":[3,48,3,74],"113":[3,48,3,74],"121":[3,41,3,76],"129":[3,10,3,77],"13...
import boto3 from pprint import pprint aws_mag_con=boto3.session.Session(profile_name="ec2_developer") ec2_con_cli=aws_mag_con.client(service_name="ec2",region_name="us-east-1") ''' response=ec2_con_cli.describe_instances()['Reservations'] for each_item in response: for each in each_item['Instances']: print(...
import { combineReducers } from 'redux'; import auth from './auth'; import alert from './alert'; import profile from './profile'; export default combineReducers({ alert, auth, profile });
/*! ocean-markdown-it 2.0.0 @license MIT */!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).oceanMarkdownIt=e()...
const workoutTypeSelect = document.querySelector("#type"); const cardioForm = document.querySelector(".cardio-form"); const resistanceForm = document.querySelector(".resistance-form"); const cardioNameInput = document.querySelector("#cardio-name"); const nameInput = document.querySelector("#name"); const weightInput = ...
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/stable/config # -- Path setup ------------------------------------------------------------...
var supertest = require('supertest'); var _app = require('./../lib/express_app'); var app = supertest(_app); var assert = require('assert'); var ws = require('ws'); var route = new (require('events').EventEmitter); var fixtures = require('./fixtures')._payments; var...
# https://leetcode.com/problems/partition-equal-subset-sum/ # # algorithms # Medium (41.3%) # Total Accepted: 100,478 # Total Submissions: 243,238 class Solution(object): def canPartition(self, nums): """ :type nums: List[int] :rtype: bool """ length = len(nums) ...
/* ==[ PostImages.js ]======================================================================================== IMAGES images expanding (in post / by center), navigate buttons, image-links embedding =======================================================...
import React from 'react'; export default React.createClass({ propTypes: { name: React.PropTypes.string.isRequired, changeAddressee: React.PropTypes.func.isRequired }, render: function () { return ( <div className="greeting"> <h3> H...
(function(self) { self.stop = function() { } var varnish = function() { } varnish.prototype = self; return varnish; })(window.Varnish = {});
import React, { useEffect, useRef } from "react"; import { TweenMax, Power2 } from "gsap"; const PostRegister = () => { const slider2 = useRef(null); useEffect(() => { TweenMax.fromTo( slider2.current, 1, { height: "0%" }, { height: "100vh", ease: Power2.easeInOut } ); }, []); ...
/* * 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 ...
__NUXT_JSONP__("/amp/44/30", (function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){return {data:[{metaTitle:e,metaDesc:f,verseId:30,surahId:44,currentSurah:{number:"44",name:"الدخان",name_latin:"Ad-Dukhan",number_of_ayah:"59",text:{"1":"حٰمۤ ۚ ","2":"وَالْكِتٰبِ الْمُبِيْنِۙ ","3":"اِنَّآ اَنْزَلْنٰهُ فِيْ لَيْلَةٍ مُّبٰرَكَةٍ ...
# https://github.com/spro/char-rnn.pytorch import string import random import time import math import torch def read_file(filename): file = open(filename).read() all_characters = list(set(file)) return file, len(file), all_characters, len(all_characters) # Turning a string into a tensor def char_tensor...
'use strict' module.exports = function () { this.Given(/^I am a logged in user$/, function () { if (this.globals.auth_required === false) { return true } this .url(this.globals.backend_url) this.page.login().dologin(process.env.KEYCLOAK_USER, process.env.KEYCLOAK_PASS) }) this.Given...
#!/usr/bin/env python3 # Copyright (c) 2015-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Utilities for manipulating blocks and transactions.""" from .address import ( key_to_p2sh_p2wpkh, ...
import expect from 'expect.js'; import * as geoPolygon from '../geo_polygon'; import { nodeTypes } from '../../node_types'; import indexPatternResponse from '../../__tests__/index_pattern_response.json'; let indexPattern; const points = [ { lat: 69.77, lon: -171.56 }, { lat: 50.06, lon: -169.10 ...
# Copyright 2017-present Kensho Technologies, LLC. """Helper functions for dealing with the frontend "context" object.""" from ..exceptions import GraphQLCompilationError def is_in_fold_innermost_scope_scope(context): """Return True if the current context is within a scope marked @fold.""" return 'fold_inner...
/** * @license Copyright 2016 Google Inc. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or a...
'use strict'; /* lead form support code * resources/views/site/form/createoredit.blade.php * this file requires processing via babel (see gulp) */ /* jshint esversion: 6 */ $('.sortable').sortable(); $('#editFormName').val(''); $('#managerAllUsers').click(function () { if ($(this).is(":checked")) { $(".manage...
import template from './sw-sales-channel-detail-product-comparison.html.twig'; import './sw-sales-channel-detail-product-comparison.scss'; const { Component, Mixin } = Shopware; const { Criteria } = Shopware.Data; const { warn } = Shopware.Utils.debug; Component.register('sw-sales-channel-detail-product-comparison', ...
import React from 'react'; import {Decorator as Cerebral} from 'cerebral-view-react'; import styles from '../styles.css'; import currentLoader from '../../../computed/currentLoader'; @Cerebral({ loader: currentLoader }) class VueConfig extends React.Component { render() { const loader = this.props.loader; ...
import React, { Component } from 'react' import { observer, inject } from 'mobx-react' import { Layout, Button, Table, Input, Tag, Select } from 'antd' import axios from 'axios' import mobx from 'mobx' import {observable, action, computed, runInAction} from "mobx" import DropOption from '../../components/Layout/DropOpt...
from multiprocessing import Process, Value, Array # def f(n): # flag = True # while flag : # if n.value == 0 : # flag = False # print (1) # print (2) # if __name__ == '__main__': # num = Value('i', 1) # p = Process(target=f, args=(num)) # p.start() # # p.jo...
! function(n, t) { var e = function(n, t, e) { var o; return function() { function i() { e || n.apply(a, s), o = null } var a = this, s = arguments; o ? clearTimeout(o) : e && n.apply(a, s), o = setTimeout(i, t || 100) ...
$(document).ready(function(){ calcLoan() }) function calcLoan(){ let choosenProducts = [] $('.loan-product .loan-result').each(function (index) { let id = $(this).attr('data-id'); let color = $(this).attr('data-color'); let capacity = $(this).attr('data-capacity'); let module...
import * as Actions from '../actions' const initialState = { newsSource: 'abc-news', isLoading: true, activeNewsSource: [], tabData: [], tabDataClone: [], url: 'sources', api_key: process.env.REACT_APP_API_KEY, proxy_url: process.env.REACT_APP_PROXY_URL, } const newsSourceReducer = (state = initialSta...
import React from "react" class PureCanvas extends React.Component { shouldComponentUpdate() { return false } render() { return ( <canvas width="300" height="300" ref={node => node ? this.props.contextRef(node.getContext("2d")) : null } /> ) } ...
"use strict"; var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; }; var __importDefault = (this && this.__importDefault) || function (mod) { ...
import React from 'react' import styles from '../assets/styles' import { Text, View, Image, Dimensions, TouchableOpacity } from 'react-native' import Icon from './Icon' const CardItem = ({ actions, description, image, matches, name, onPressLeft, onPressRight, status, variant }) => { // Custom styl...
#!/usr/bin/env ambari-python-wrap """ 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...
'use strict' const { Command } = require('@adonisjs/ace') const Rbac = use('Rbac') class AddChild extends Command { static get signature () { return ` rbac:add-child { parentId: RBAC parent ID } { childId: RBAC child ID } ` } static get description () { return 'Add a child to a pa...
import Vue from 'vue'; import { Row, Col, Card, } from 'element-ui'; import 'element-ui/lib/theme-chalk/index.css'; import axios from 'axios'; import VueAxios from 'vue-axios'; import App from './App.vue'; Vue.config.productionTip = false; Vue.use(Row); Vue.use(Col); Vue.use(Card); Vue.use(VueAxios, axios); new V...
import componentCss from './my-child.wxss' import { h, WeElement, rpx } from 'omi' import { setData, fixProps } from '../../../utils/helper' // components/my-child/my-child.js const mpOption = function () { return ({ /** * 组件的属性列表 */ properties: { }, /** * 组件的初始数据 */ data: { },...
"""TipTap Editor in Django 🚀""" __version__ = "0.0.7"
const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); module.exports = { watch: true, entry: './index.js', mode: 'development', module: { rules: [ { test: /\.m?js$/, exclude: /(node_modules|bower_components)/, use: { loader: 'babel-l...
import React, { Component } from "react"; import moment from 'moment-timezone'; class Room extends Component { componentDidMount() { function createFrameAndJoinRoom(room) { let roomName = "meet-" + room; window.callFrame = window.DailyIframe.createFrame( document.ge...
var readYaml = require('read-yaml'); var shelljs = require('shelljs'); var shelljs_global = require('shelljs/global'); var Web3 = require('web3'); var commander = require('commander'); var wrench = require('wrench'); var grunt = require('grunt'); //var Tests = require('./test.js'); var Blockchain = require('./blockcha...
import { createApp } from './main'; // This exported function will be called by `bundleRenderer`. // This is where we perform data-prefetching to determine the // state of our application before actually rendering it. // Since data fetching is async, this function is expected to // return a Promise that resolves to th...
/* 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")...
module.exports = { printWidth: 100, tabWidth: 2, useTabs: false, semi: false, singleQuote: true, quoteProps: 'as-needed', jsxSingleQuote: true, trailingComma: 'es5', bracketSpacing: true, bracketSameLine: false, jsxBracketSameLine: false, // Deprecated arrowParens: 'always', proseWrap: 'always...
import json import mlflow import os import hydra from omegaconf import DictConfig, OmegaConf # This automatically reads in the configuration @hydra.main(config_name='config') def go(config: DictConfig): # Setup the wandb experiment. All runs will be grouped under this name os.environ["WANDB_PROJECT"] = conf...
# coding=utf-8 # Copyright 2020 The Google AI Language Team Authors, The HuggingFace Inc. team and Microsoft Corporation. # Copyright (c) 2018, NVIDIA CORPORATION. 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....
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...