text
stringlengths
3
1.05M
# Copyright (C) 2018-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import os import numpy as np import pytest import torch from common.layer_test_class import CommonLayerTest from common.onnx_layer_test_class import OnnxRuntimeLayerTest class TestGemm(OnnxRuntimeLayerTest): def _prepare_input(sel...
(function () { var preview = (function () { 'use strict'; var global = tinymce.util.Tools.resolve('tinymce.PluginManager'); var global$1 = tinymce.util.Tools.resolve('tinymce.Env'); var getPreviewDialogWidth = function (editor) { return parseInt(editor.getParam('plugin_preview_width', '650'), 10); }; ...
import React from 'react'; import { Ionicons } from '@expo/vector-icons'; import Colors from '../constants/Colors'; export default function TabBarIconicon(props) { return ( <Ionicons name={props.name} size={props.size} style={{ marginBottom: -3 }} color={props.focused ? Colors.tabIconSel...
/** * Copyright (c) 2007-2015 Ariel Flesler - aflesler<a>gmail<d>com | http://flesler.blogspot.com * Licensed under MIT * @author Ariel Flesler * @version 2.1.1 */ ;(function(f){"use strict";"function"===typeof define&&define.amd?define(["jquery"],f):"undefined"!==typeof module&&module.exports?module.e...
const bluebird = require('bluebird'); const events = require('events'); const eventEmitter = new events.EventEmitter(); const shortid = require('shortid'); const EVENTS_TO_EMIT_COUNT = 1000; suite('Eventstore subscribe benchmark - on growing subscribers', () => { set('iterations', EVENTS_TO_EMIT_COUNT); set('...
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2020/1/10 下午6:18 # @Title : 203. 移除链表元素 # @Link : https://leetcode-cn.com/problems/remove-linked-list-elements/ QUESTION = """ 删除链表中等于给定值 val 的所有节点。 示例: 输入: 1->2->6->3->4->5->6, val = 6 输出: 1->2->3->4->5 """ THINKING = """ 如果要删除的节点是中间节点的话,那没什么可说的 主要就是...
""" Parametric Thread Examples name: thread_examples.py by: Gumyr date: November 17th 2021 desc: Examples of the IsoThread, AcmeThread and MetricTrapezoidalThread classes. license: Copyright 2021 Gumyr Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except i...
import numpy import chainer from chainer.backends import cuda from chainer.backends import intel64 from chainer import configuration from chainer import function_node import chainer.functions from chainer.functions.connection import convolution_2d from chainer.utils import argument from chainer.utils import conv from ...
module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId])...
import {normal} from 'jStat'; export default function randomData(arg) { var options = arg || {}, random = {}, parser = {}, size = options.size || 0, props = options.props || []; var data = new Array(size); function boundedRandom(p) { var value = p.min - 1; ...
# (C) Datadog, Inc. 2020-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from typing import List, Optional from datadog_checks.base import ConfigurationError, is_affirmative class Config(object): """ Hold instance configuration for a Snowflake check. Encapsulates...
import { debounce } from './utils.js' import BackTop from 'components/content/backTop/BackTop.vue' export const itemListenerMixin = { data() { return { itemImgListenr: null } }, mounted () { //3.监听item中图片加载完成 const refresh = debounce(this.$refs.scroll.refresh, 200) this.itemImgListenr =...
import { commonParams,options } from "./config" import axios from "axios" import jsonp from '../common/js/jsonp' // export function getRecSongList(){ // const url = 'https://c.y.qq.com/qzone/fcg-bin/fcg_ucc_getcdinfo_byids_cp.fcg?type=1&json=1&utf8=1&onlysong=0&new_format=1&disstid=6844821851&g_tk=5381&loginUin=5...
# MIT License # # Copyright (c) 2020 Airbyte # # 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, merge, publ...
//// [incrementOperatorWithAnyOtherTypeInvalidOperations.ts] // ++ operator on any type var ANY1: any; var ANY2: any[] = [1, 2]; var obj: () => {} var obj1 = { x: "", y: () => { } }; function foo(): any { var a; return a; } class A { public a: any; static foo(): any { var a; return a; ...
/** layui-v2.4.1 MIT License By https://www.layui.com */ ;layui.define("layer",function(e){"use strict";var i=layui.$,t=layui.layer,n=layui.hint(),a=layui.device(),o={config:{},set:function(e){var t=this;return t.config=i.extend({},t.config,e),t},on:function(e,i){return layui.onevent.call(this,r,e,i)}},l=function(){va...
import app from '~/app'; //============================================================ // // //============================================================ var tabDirective = function($timeout) { return { restrict: 'A', link: function($scope, $elem...
/* eslint-disable no-console */ // FIXME: export public API for testing const { run } = require('bottender/dist/bot/Bot'); const parallel = require('../parallel'); let log; let info; let warn; let error; let createLogger; beforeEach(() => { console.log = jest.fn(); console.info = jest.fn(); console.warn = jest...
let db; let dbVersion; const request = window.indexedDB.open("BudgetDB", dbVersion || 1); //creating an object store and setting auto increment to allow for future files/information to be stored within request.onupgradeneeded = function (e) { console.log("offline - indexDB"); db = e.target.result; if (db.object...
import parseConfigFile from './zuliprc'; const api = require('./api'); const accounts = require('./resources/accounts'); const streams = require('./resources/streams'); const messages = require('./resources/messages'); const queues = require('./resources/queues'); const events = require('./resources/events'); const u...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var Session_1 = require("./Session"); Object.defineProperty(exports, "Session", { enumerable: true, get: function() { return Session_1.Session; } }); var SessionManager_1 = require("./SessionManager"); Object.defineProperty(exports, ...
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib 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 a...
'use strict'; const fs = require('fs'); const path = require('path'); const glob = require('glob'); const camelCase = require('camelcase'); const ngc = require('@angular/compiler-cli/src/main').main; const rollup = require('rollup'); const uglify = require('rollup-plugin-uglify'); const sourcemaps = require('rollup-pl...
//https://github.com/Azure/azure-storage-node/blob/master/examples/samples/sassample.js const storage = require('../storageService/storageClient'); module.exports = async function (context) { context.log('@@@ Activity 1 @@@'); const blobService = await storage.client(); const BlobUtilities = await storage...
// COPYRIGHT © 2017 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { loadData } from '../actions'; import { Helmet } from 'react-helmet'; import ListingItem from './ListingItem'; import styled from 'styled-components'; const mapStateToProps = (state, ownProps) => ({ ...ownProps, jobs: stat...
import React from 'react'; import { Provider } from 'react-redux'; import { IntlProvider } from 'react-intl'; import { MemoryRouter } from 'react-router-dom'; import locales from 'locales'; const messages = locales.en; export const withStore = (WrappedComponent, store) => ( <MemoryRouter> <IntlProvider locale=...
app.service('programmingLandingService', function ($http) { //get user profile information this.getGymObj = function (gymId) { return $http({ method: 'GET', url: 'http://localhost:8555/api/gym-pathway/' + gymId, }) .then(function (response) { ...
module.exports = addCoc; const { readFileSync } = require("fs"); const { join } = require("path"); /** * Create a CODE_OF_CONDUCT.md file unless it already exists. * Ignores forks and archived repositories * * @param {import('@octokit/core').Octokit} octokit * @param {import('@octokit/types').Endpoints["GET /rep...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; class Collection extends Component { constructor (props) { super(props); this.renderHeader = this.renderHeader.bind(this); } render () { const { children, header } = this.props;...
from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck from checkov.common.models.enums import CheckCategories class PrivateRepo(BaseResourceValueCheck): def __init__(self): name = "Ensure Repository is Private" id = "CKV_GIT_1" supported_resources = ...
/* @flow */ import { Emitter } from "atom"; import { observable, action, computed } from "mobx"; import { isEqual } from "lodash"; import { log, focus, msgSpecToNotebookFormat, msgSpecV4toV5, INSPECTOR_URI } from "./utils"; import store from "./store"; import WatchesStore from "./store/watches"; import Out...
'use strict'; /*eslint no-invalid-this:0*/ import crypto from 'crypto'; mongoose.Promise = require('bluebird'); import mongoose, {Schema} from 'mongoose'; var UserSchema = new Schema({ name: String, email: { type: String, lowercase: true, required: true }, role: { type: String, default: 'us...
require( '../setup' ); var requestor = require( 'request' ).defaults( { jar: false } ); var port = 8988; var config = { port: port, socketio: true, websocket: true, defaultUser: true, anonymous: [ '/api/test/proxy' ], parseAhead: true, handleRouteErrors: true, noAuth: true }; var get, post; var harnessFn = requ...
import siteMetadata from '@/data/siteMetadata' import SocialIcon from '@/components/social-icons' export default function Footer() { return ( <footer> <div className="flex flex-col items-center mt-16"> <div className="flex mb-3 space-x-4"> <SocialIcon kind="mail" href={`mailto:${siteMetad...
"use strict"; /* * ATTENTION: An "eval-source-map" devtool has been used. * This devtool is neither made for production nor for readable output files. * It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools. * If you are trying to read the output file, select a dif...
// 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...
module.exports = function reverse(n) { const str = n.toString().split('').reverse().join('').replace('-', ''); return Number(str); }
global.webpackJsonp([2],{0:function(t,e){t.exports=function(t,e,n,r,o){var i,a=t=t||{},s=typeof t.default;"object"!==s&&"function"!==s||(i=t,a=t.default);var c,u="function"==typeof a?a.options:a;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns),r&&(u._scopeId=r),o?(c=function(t){(t=t||this.$vnode&&this.$vno...
import React from 'react'; import Header from '../Header' import KyloRen from './KyloRen' export default function Home() { return ( <div> <Header/> <KyloRen/> </div> ) }
# Generated by Django 2.0.3 on 2018-03-12 21:39 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('enrolled_scans', '0007_enrolledscansentrancestep'), ] operations = [ migrations.AlterModelOptions( name='enrolledscanrequirementconditio...
var runtimePort = chrome.runtime.connect({ name: location.href.replace(/\/|:|#|\?|\$|\^|%|\.|`|~|!|\+|@|\[|\||]|\|*. /g, '').split('\n').join('').split('\r').join('') }); runtimePort.onMessage.addListener(function(message) { if (!message || !message.messageFromContentScript1234) { return; } }); document.g...
'use strict'; var Joi = require('joi'); var _ = require('lodash'); var vm = require('vm'); var util = require('../util/util'); var async = require('async'); var debug = { validator: require('debug')('formio:validator'), error: require('debug')('formio:error') }; /** * @TODO: Add description. * * @param form *...
from typing import Any from typing import Dict from typing import Optional from omegaconf import DictConfig def instantiate_if_needed(value: Any) -> Any: if isinstance(value, (dict, DictConfig)): if '_target_' in value: import hydra return hydra.utils.instantiate(value) return...
"use strict"; require("core-js/modules/es.object.define-property"); Object.defineProperty(exports, "__esModule", { value: true }); exports.STORY_EVENT_ID = exports.ADDON_ID = void 0; var ADDON_ID = 'storybook/source-loader'; exports.ADDON_ID = ADDON_ID; var STORY_EVENT_ID = "".concat(ADDON_ID, "/set"); exports.STOR...
(function() { "use strict"; describe('Mouse controls - Single Horizontal', function() { var helper, RzSliderOptions, $rootScope, $timeout; beforeEach(module('test-helper')); beforeEach(inject(function (TestHelper, _RzSliderOptions_, _$rootScope_, _$timeout_) { helper = TestHel...
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="proqueryote", # Replace with your own username version="0.0.1", author="Stephen Wissow", author_email="sjw1000@wildcats.unh.edu", description="Get prokaryote sequences from NCBI.", lon...
import axios from 'axios'; import { updateCrudStatus, crudStatus, httpThunk } from '../utils'; export const FETCH_ARTICLES = 'articles/FETCH_ARTICLES'; export const UPDATE_ARTICLE = 'articles/UPDATE_ARTICLE'; export const DELETE_ARTICLES = 'articles/DELETE_SOURCE'; const initialState = { articles: [], totalCount:...
import CoreUtils from './CoreUtils' import Dimensions from './Dimensions' import Graphics from './Graphics' import Pie from '../charts/Pie' import Series from './Series' import Utils from '../utils/Utils' /** * ApexCharts Legend Class to draw legend. * * @module Legend **/ class Legend { constructor(ctx, opts) ...
import React from 'react'; import DocPage2 from '../../utils/DocPage2'; // const requireRaw2 = require.context('./samples', true, /.js$/); const requireMd = require.context('!raw-loader!./md', false, /.md$/); const requireCode = require.context('!raw-loader!./samples', false, /.js$/); const requireJs = require.context...
jQuery( document ).ready( function () { var $container = jQuery( '#wpcontent' ); $container.on( 'click', '#itsec-backup-reset_backup_location', function( e ) { e.preventDefault(); jQuery( '#itsec-backup-location' ).val( itsec_backup.default_backup_location ); } ); $container.on( 'change', '#itsec-backup-met...
from django.contrib import admin from .models import MarketingPreference class MarketingPreferenceAdmin(admin.ModelAdmin): list_display = ["__str__","subscribed","updated"] readonly_fields = ['mailchimp_msg','mailchimp_subscribed','timestamp','updated'] class Meta(): model = MarketingPreference ...
import { Tooltip } from "iview"; import { AddModal } from './popup/add.vue'; export default { data() { const { query = {} } = this.$route; return { columns: { '1': [], '2': [], '3': [], } }; }, methods: { handleAddModal(params) { AddModal.popup({ pk_id: params.row.pk_id,...
"""T-test with permutations.""" # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # # License: Simplified BSD from math import sqrt import numpy as np from ..utils import check_random_state, verbose, logger from ..parallel import parallel_func def _max_stat(X, X2, perms, dof_scaling): """Aux function...
import dateutil.parser import datetime import pytz def newsfeedIngest(uniqueEvent, cursor, connection): # These are all temporary objects used to store the values of the fields in the JSON files. # Some fields may not always exist. We were getting errors when we didn't have some fields initialized so we decid...
import PropTypes from 'prop-types'; import React from 'react'; import {ViewPropTypes} from 'react-native'; import decorateMapComponent, { USES_DEFAULT_IMPLEMENTATION, SUPPORTED, } from './decorateMapComponent'; const propTypes = { ...ViewPropTypes, /** * The coordinate of the center of the circle */ center: ...
module.exports = { // Include common functions cartridgeAdd: require('./_cartridgeAdd'), cartridgeRemove: require('./_cartridgeRemove'), getDetail: require('./_getDetail') };
mycallback( {"CONTRIBUTOR OCCUPATION": "Banker", "CONTRIBUTION AMOUNT (F3L Bundled)": "250.00", "ELECTION CODE": "", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "Southside Bank", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "16350 Beacons Jet Ct", "CONTRIBUTOR MIDDLE NAME": "E.", "DONOR CANDIDATE FEC ID": "", "DON...
import {colors, fonts} from "./constants.js"; export default function drawCircle(canvas, {canvasWidth, canvasHeight, origin, radius}) { const x = origin.x; const y = origin.y; const axisArrowSize = 6; const axisLabelOffset = 10; const axisNumberOffset = 7; canvas.strokeStyle = colors.default; canvas.lin...
/*! * jQuery UI Widget @VERSION * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/jQuery.widget/ */ (function( $, undefined ) { var uuid = 0, slice = Array.prototype.slice, _cleanData = ...
#!/usr/bin/env python3 import importlib import inspect import json import os import re import shutil import subprocess import sys import textwrap import traceback from pathlib import Path from typing import Any, List from unittest.mock import patch from ansi2html import Ansi2HTMLConverter from devtools import PrettyFo...
describe("questionnaire library", function () { beforeEach(function () { jasmine.getFixtures().fixturesPath = "base/"; loadFixtures("modules/questionnaire/javascript_tests/fixture.html"); this.payload = JSON.parse(readFixtures( "modules/questionnaire/javascript_tests/form_data.json")); this.b...
/** * DocuSign REST API * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. * * OpenAPI spec version: v2.1 * Contact: devcenter@docusign.com * * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue inste...
import buildMatchPatternFn from '../../../_lib/buildMatchPatternFn/index.ts' import buildMatchFn from '../../../_lib/buildMatchFn/index.ts' var matchOrdinalNumberPattern = /^(\d+)?/i var parseOrdinalNumberPattern = /\d+/i var matchEraPatterns = { narrow: /^(Î|D)/i, abbreviated: /^(Î\.?\s?d\.?\s?C\.?|Î\.?\s?e\.?\s...
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";function g(e){return null!=e&...
/*! * jquery.inputmask.bundle.js * https://github.com/RobinHerbots/Inputmask * Copyright (c) 2010 - 2018 Robin Herbots * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) * Version: 4.0.1-beta.12 */ !function(modules) { var installedModules = {}; function __webpack_require__(...
$form = $('#form').calx(); /*Array para armazenar temporariamente os serviços adicionados à os*/ var servicos_adicionados = []; /*Armazenará o resultado da verificação*/ var result_add = false; /*Recupera o número de linhas (serviços) na tabela*/ $counter = $('table.table').find('tbody').children().length; /*Bloc...
import { Reactiver } from "./model/Reactiver" import { Listener } from "./model/Listener" window.bindRx = { Listener, Reactiver }
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
const awsXRay = require('aws-xray-sdk'); const AWS = awsXRay.captureAWS(require('aws-sdk')); const client = new AWS.DynamoDB.DocumentClient({}); exports.exec = async (event) => { const unixTimestamp = new Date().getTime(); const { id, yearMonth, value } = event.detail; await client.update({ TableName: pr...
import getClientRect from '../utils/getClientRect'; import getOuterSizes from '../utils/getOuterSizes'; import isModifierRequired from '../utils/isModifierRequired'; import getStyleComputedProperty from '../utils/getStyleComputedProperty'; /** * @function * @memberof Modifiers * @argument {Object} data - The data o...
var amount = 0; var parkFee = 0; var parkFeeRate = 100; var discount01 = 0; var discountRate01 = -100; var discount02 = 0; var discountRate02 = -100; var id; function paymentInit(){ car.inPark = false; $('#status').text("入庫前"); $('#status').css('background-color', '#FFD8BC'); clearInt...
# Generated by Django 2.0.7 on 2018-07-16 16:32 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('chigre', '0023_auto_20180716_1551'), ] operations = [ migrations.RemoveField( model_name='pub', name='updated', ), ...
const fs = require("fs"); const assert = require("assert"); const { TestContext } = require("./utils/exec"); describe('Test environment', () => { let ctx = new TestContext(); it('should have tmp foldier', () => { assert(fs.existsSync(ctx.root), 'test/tmp/ exists'); }); it('should have ledg binary', () => ...
import defaultView from "../window"; function styleRemove(name) { return function() { this.style.removeProperty(name); }; } function styleConstant(name, value, priority) { return function() { this.style.setProperty(name, value, priority); }; } function styleFunction(name, value, priorit...
import datetime from app.constants import WINWIDTH from app.engine.sprites import SPRITES from app.engine.fonts import FONT from app.engine.sound import SOUNDTHREAD from app.engine.state import State from app.engine import engine, background, base_surf, text_funcs, evaluate from app.engine.game_state import game clas...
from django.shortcuts import render from django.contrib.auth.models import User, Group from rest_framework import viewsets from products.models import Products, Images from main.serializers import UserSerializer, GroupSserializer class UserViewSet(viewsets.ModelViewSet): queryset = User.objects.all().order_by('...
import AbstractEditRoute from 'hospitalrun/routes/abstract-edit-route'; import { t } from 'hospitalrun/macro'; export default AbstractEditRoute.extend({ hideNewButton: true, newTitle: t('admin.userRoles'), editTitle: t('admin.userRoles'), model() { return this.get('store').findAll('user-role'); } });
// Algunas cartas. Aun no se utiliza, primero debe andar el cliente-servidor... var cartaInvocacionMiyamoto = { _id: null, nombre: "Miyamoto Musashi", tipo: "Espiritu Heroico" ,// subtipo: "Espadachin", stats: Stats(7,0,8), poderInvocacion: "Normal", habilidades: { //"rapidez, atravesar, furia" }, } func...
import numpy import scipy.stats from tabulate import tabulate import sklearn.cluster import sklearn.metrics import scipy.special import scipy.linalg def createFullX(p, allX): X = numpy.asmatrix(numpy.zeros((p,p))) startId = 0 for j in range(len(allX)): endId = startId + allX[j].shape[0] ...
#!/usr/bin/env node import { ArgumentParser } from "argparse"; import figlet from 'figlet'; import gradient from "gradient-string"; import { createSpinner } from "nanospinner"; import { stringify } from "csv-stringify"; import { Builder, By, until } from "selenium-webdriver"; import fs from 'fs'; import { exit } fro...
var botao = document.getElementById("btn"); var medida = ""; botao.addEventListener("click",converter); function converter (){ medida = parseFloat(prompt("Digite uma distância em metros :")); console.log(medida); var km = medida/1000; var hm = medida/100; var Dam = medida/10; var dm = medida*10; var cm = medida*...
/*! * ui-grid - v4.4.11 - 2018-05-16 * Copyright (c) 2018 ; License: MIT */ angular.module("ui.grid").config(["$provide",function(e){e.decorator("i18nService",["$delegate",function(e){return e.add("pl",{headerCell:{aria:{defaultFilterLabel:"Filtr dla kolumny",removeFilter:"Usuń filtr",columnMenuButtonLabel:"Opcje...
import os res = (['32', '64', '128', '256', '512']) modes = (['100', '1000', '5000', '10000', '20000', '50000', '100000']) for r in res: for m in modes: os.system('python example.py -n ' + r + ' -m ' + m + '-gpu')
import { Block, View, Image, Text } from '@tarojs/components' import Taro from '@tarojs/taro' import withWeapp from '@tarojs/with-weapp' import fa from '../../../../utils/fa.js' import AddressModel from '../../../../models/address.js' import AreaModel from '../../../../models/area.js' import regeneratorRuntime from '.....
#!/usr/bin/env python2 # Copyright (c) 2014-2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.test_framework import MashhadbitTestFramework from test_framework.util import * cla...
/*global fablab _config*/ var fablab = window.fablab || {}; //Wrapper includes authorization-restriction for fab-lab staff users only //for sites that allow non-staff access, I've commented the lines to remove // lines 48-51 are the lines to display the welcome banner (function tableScopeWrapper($) { var authToken...
import React from 'react'; import { makeStyles } from '@material-ui/styles'; import { connect } from 'react-redux'; import { Fab, Typography } from '@material-ui/core'; import CloseIcon from '@material-ui/icons/Close'; import { selectAllErrors, requestClearAllErrors } from '../../redux/genericReduxCreators'; const use...
"""Calibration of predicted probabilities.""" # Author: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Balazs Kegl <balazs.kegl@gmail.com> # Jan Hendrik Metzen <jhm@informatik.uni-bremen.de> # Mathieu Blondel <mathieu@mblondel.org> # # License: BSD 3 clause from __future__ impo...
const express = require("express"); const app = express(); const PaymentClient = require("payment-client-lib"); const waitForPort = require('wait-for-port'); const paymentActivated = !process.env.PAYMENT_INACTIVE; if(paymentActivated) { console.log("Payment active."); let client = new PaymentClient({ paymentS...
/** * const prefixCls = 'style-149710'; * const images = '/static/images'; * @Author: lyz0720 * @Date: 2018-11-09 13:52:33 * @Last Modified by: lyz0720 * @Last Modified time: 2018-11-09 13:52:33 * @Path bt_mb_new \src\person\welfare\Upgrade\_Header.js.git */ import React from 'react'; import { observer } from...
import re import sys from collections import namedtuple from .connection import connect, Connection, TIMEOUT as DEFAULT_TIMEOUT from .cursor import Cursor from .pool import create_pool, Pool __all__ = ('connect', 'create_pool', 'Connection', 'Cursor', 'Pool', 'version', 'version_info', 'DEFAULT_TIMEOUT') ...
# -*- encoding: utf-8 -*- import time from openerp import tools from datetime import datetime, timedelta from openerp.tools.translate import _ from openerp.osv import fields,osv import os import re from top import setDefaultAppInfo from top.api.rest import ItemsOnsaleGetRequest from top.api.rest import TradesSoldIncre...
import React, { Component } from 'react'; class Gradient extends Component { render() { return <div className='gradient'></div> } } export default Gradient;
// jQuery Alert Dialogs Plugin // // Version 1.1 // // Cory S.N. LaViska // A Beautiful Site (http://abeautifulsite.net/) // 14 May 2009 // // Visit http://abeautifulsite.net/notebook/87 for more information // // Usage: // jAlert( message, [title, callback] ) // jConfirm( message, [title, callback] ) //...
module.exports = { name: 'test', minArgs: 0, maxArgs: 0, description: "See if the bot works.", category: "Information", run: async (message, args, text, client, prefix, instance) => { message.reply("Ready to execute commands.") } }
import requests import datetime import dateutil.parser as d from bs4 import BeautifulSoup from itertools import takewhile, dropwhile from .jobcontainer import JobContainer def parse_brainhunter_job_table(soup): ret = [] job_table = soup.find("table", "job_list_table") rows = job_table.find_all('tr')[1:] ...
import { call, put } from 'redux-saga/effects'; import { ToastActionsCreators } from 'react-native-redux-toast'; import api from '../../services/api'; import MembersActions from '../ducks/members'; export function* getMembers() { const response = yield call(api.get, 'members'); yield put(MembersActions.getMember...
import '../../css/main.css' const Navbar = () => { return( <nav> <ul> <li><a className="nav__link" href="/">Home</a></li> <li><a className="nav__link" href="/docs" >Documentation</a></li> </ul> </nav> ) } export default Navbar
import time import cirq import numpy as np from functools import reduce def u1(p_lambda): return cirq.MatrixGate(np.array([[1, 0], [0, np.exp(1j*p_lambda)]])) q = [cirq.NamedQubit('q' + str(i)) for i in range(15)] circuit = cirq.Circuit( cirq.H(q[0]), u1(0.785398163397448)(q[1]), u1(0.392699081698724)(q...