text stringlengths 3 1.05M |
|---|
"""Hosts an interface for the BIG-IP Monitor Resource.
This module references and holds items relevant to the orchestration of the F5
BIG-IP for purposes of abstracting the F5-SDK library.
"""
# coding=utf-8
#
# Copyright (c) 2017-2021 F5 Networks, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"... |
import React from 'react';
import {View} from 'react-native';
import SkeletonPlaceholder from 'react-native-skeleton-placeholder-2';
const SecondExample = ({}) =>
Array.from({length: 3}).map((_, index) => (
<View key={index} style={{marginBottom: 12}}>
<SkeletonPlaceholder>
<SkeletonPlaceholder.Ite... |
import axios from 'axios';
import httpAdapter from 'axios/lib/adapters/http';
import { resetUserContext } from '../components/UserContext';
const { REACT_APP_BACK_HOST: BACK_HOST } = process.env;
axios.defaults.adapter = httpAdapter;
axios.interceptors.request.use(config => {
if (new URL(config.url).origin === BAC... |
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import React, { useContext } from 'react';
import { LocalizationContext } from '../contexts/LocalizationContext';
import LoginScreen from '../screens/Login/LoginScreen';
const Stack = createNativeStackNavigator();
export default function Aut... |
/* eslint-env node */
"use strict";
const getConfig = require("@wildpeaks/webpack-config-web");
module.exports = function() {
return getConfig({
mode: "development",
polyfills: [],
webworkerPolyfills: [],
sourcemaps: false,
rawExtensions: ["md"],
entry: {
"app-raw-require": "./src/application.ts"
},
... |
define(['../../../services/greetings/provider', 'module'], function (original, module) {
'use strict';
var GreetingsProviderExtension = function ($provide) {
var decorator = function($delegate, $q) {
$delegate.get = function() {
var defer = $q.defer();
defer... |
from sqlalchemy import Column, Integer, String
from .base import Base
class Department(Base):
__tablename__ = "ems_department"
id = Column(Integer, primary_key=True)
name = Column(String(32), unique=True, nullable=False, comment="组名称")
parent_id = Column(Integer, comment="上级部门ID")
def __init__(s... |
import "core-js/modules/web.url.to-json";
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
import _createClass from "@babel/runtime/helpers/createClass";
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
import _getPrototypeOf from "@babel/runtime/helpers/get... |
const CustomError = require("../extensions/custom-error");
module.exports = function getSeason(date) {
if (date === undefined) {
return 'Unable to determine the time of year!';
};
if (Object.prototype.toString.call(date) !== '[object Date]') {
throw new Error();
}
let n = date.ge... |
import React from 'React';
import { PowerSheet, SheetColumn } from 'syntec-apollo-11';
const dadosRecebidos = [
{
id: 1,
responsavel: 'Rafaela_Braga@gmail.com',
obrigacao: 'PIS',
estado: 'RR',
papel: 'user',
valor: 11.21,
},
//...
];
class PowerSheetComColunasSimples extends React.Comp... |
function asmFunc(global, env, buffer) {
"use asm";
var HEAP8 = new global.Int8Array(buffer);
var HEAP16 = new global.Int16Array(buffer);
var HEAP32 = new global.Int32Array(buffer);
var HEAPU8 = new global.Uint8Array(buffer);
var HEAPU16 = new global.Uint16Array(buffer);
var HEAPU32 = new global.Uint32Array(buffe... |
import * as Preact from '#preact';
import {ContainWrapper} from '#preact/component';
import {
useCallback,
useEffect,
useLayoutEffect,
useMemo,
useRef,
useState,
} from '#preact';
__jss_import_use_styles__;
/**
* @param {!Bento__component_name_pascal_case__.Props} props
* @return {PreactDef.Renderable}
... |
'use strict'
exports.__esModule = true
exports.default = _default
exports.formats = void 0
var _localizer = require('../localizer')
var dateRangeFormat = function dateRangeFormat(_ref, culture, local) {
var start = _ref.start,
end = _ref.end
return (
local.format(start, 'd', culture) + ' – ' + local.form... |
/**
* Created by Moiz.Kachwala on 16-06-2016.
*/
"use strict";
//# sourceMappingURL=Read.js.map |
import { test } from 'uvu'
import * as assert from 'uvu/assert'
import * as ENV from './setup/env'
import Header from '../src/components/Header.jsx'
test.before(ENV.setup)
test.before.each(ENV.reset)
test('should render the header with the correct title', () => {
const { container } = ENV.render(Header, { title: '... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.tailwindExtractor = tailwindExtractor;
exports.default = purgeUnusedUtilities;
var _lodash = _interopRequireDefault(require("lodash"));
var _postcss = _interopRequireDefault(require("postcss"));
var _postcssPurgecss = _interopReq... |
import { getEntityId } from '@/util/utils'
export function makeReqWorkGroupServices(axios) {
return {
create() {
return axios.post('/api/req-work-groups', {})
},
update(cell) {
const id = getEntityId(cell.id)
const theNormal = {
id: getEntityId(cell.edges[0].target.id)
}
... |
/* eslint-disable import/no-commonjs, import/no-extraneous-dependencies */
const autoprefixer = require("autoprefixer");
const tailwindcss = require("tailwindcss");
module.exports = iP => [
{
loader: "css-loader",
options: {
sourceMap: !iP,
},
}, {
loader: "postcss-loader",
options: {
... |
import React from "react"
const Header = () =>
<header role="banner" className="ma0 pa0">
<a href="/">
<img className="w-100 ma0 pa0" src="/img/banner_web.png" alt="" />
</a>
</header>
export default Header
|
/**
* This module takes care of dealing with all
* settings and responding to changes to it.
* @module ModuleSettings
*/
const Module = require('../lib/module')
/**
* Main entrypoint for Settings.
* @memberof AppBackground.modules
*/
class ModuleSettings extends Module {
/**
* Initializes the module's store.
... |
export function getFromStorage(key) {
//everytime we save to storage, there will be a key//
if (!key) {
return null;
}
try {
const valueStr = localStorage.getItem(key);
if (valueStr) {
return JSON.parse(valueStr);
}
return null;
} catch (err) {
return null;
}
}
export function setInStorage(key, o... |
angular
.module('inputIconDemo', ['ngMaterial', 'ngMessages'])
.controller('DemoCtrl', function($scope) {
$scope.user = {
name: 'John Doe',
email: '',
phone: '',
address: 'Mountain View, CA',
donation: 19.99
};
});
|
import chai from 'chai';
import chaiAsPromised from 'chai-as-promised';
import { APIDEMOS_CAPS } from '../desired';
import { initDriver } from '../helpers/session';
chai.should();
chai.use(chaiAsPromised);
const unicodeImeId = 'io.appium.android.ime/.UnicodeIME';
describe('apidemo - IME', function () {
let driver... |
from designer import *
@starting
def create_car():
return emoji("car", flip_x=True, x=64, scale=3)
@updating
def move_car(car):
if car['x'] + car['width']/2 > get_width():
car['flip_x'] = False
elif car['x'] - car['width']/2 < 0:
car['flip_x'] = True
if car['flip_x']:
car['x'... |
# -*- coding: utf-8 -*-
# encoding: utf-8
__author__ = 'pkf'
from selenium import webdriver
from time import sleep
global browser
browser = webdriver.Chrome()
browser.maximize_window()
def cnaidaiLogin(username, password, valicode):
browser.get('http://a.cnaidai.com/webjr/login.htm')
sleep(2)
browser.fin... |
define(["FS"],function (FS){return FS.zip;});
|
import pytest, sys, os
import datetime
# include ../src in the path search
mypath = os.path.dirname( os.path.realpath(__file__) )
sys.path.insert(0, os.path.join( os.path.dirname(mypath), 'src' ) )
import semsched as lib
def test_overall():
f = lib.DateIntervalSpec.from_phrase
# try with nothing... |
import { AnimatedSprite as PixiAnimatedSprite } from 'pixi.js'
import { getTextureFromProps, applyDefaultProps } from '../utils/props'
const AnimatedSprite = (root, props) => {
const { textures, images, isPlaying = true, initialFrame } = props
const makeTexture = textures => textures.map(texture => getTextureFromP... |
print 'The first line\nA quick brown fox jumps over the lazy dog\r\033[0P', |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[76],{"2e25":function(e,r,n){"use strict";n.r(r),r["default"]="<template>\n <div style=\"max-width: 800px; width: 100%; overflow: hidden;\">\n <div class=\"q-pa-md\">\n <q-select\n outlined\n dense\n emit-value\n map-options\... |
from __future__ import division, print_function
import numpy as np
def zeropadtimeseries(x, T):
'''
zero pad the time-series x by duration T
to nearest power of 2
'''
######################
# special case: no zero-padding if T=0
if T==0:
y = x
return y
###############... |
const { Client, Message, MessageEmbed} = require("discord.js");
const acar = require("../Reference/acarGet");
const acarDatabase = require("../Reference/acarDatabase");
module.exports = {
Isim: "rolsuzver",
Komut: ["rolsüzver"],
Kullanim: "",
Aciklama: "",
Kategori: "",
/**
* @param {Clie... |
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
aM = null;
function moduleLoad() {
hideStatus();
init();
animate();
NaClAMBulletInit();
loadJenga20();
}
function moduleLoadError() {
up... |
# MIT License
# Copyright (c) 2017-2019 Arkrissym
# 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,... |
import axios from 'axios'
const railsAdmin = {
namespaced: true,
state: {
inputId: ''
},
mutations: {
SET_INPUT_ID (state, id) {
state.inputId = id
}
},
actions: {
setInputId ({ commit}, id) {
commit('SET_INPUT_ID', id)
},
insertImage ({commit, state, dispatch}, idImage) ... |
# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... |
module.exports = {
overrides: [
{
files: [
'**/*.spec.js',
'**/*.spec.jsx',
'**/*.test.js',
'**/*.test.jsx',
'**/__tests__/**/*.js',
'**/__tests__/**/*.jsx'
],
env: {
jest: true
}
}
]
}
|
import angular from 'angular';
import 'angular-translate';
import '@ovh-ux/ui-kit';
import ngTranslateAsyncLoader from '@ovh-ux/ng-translate-async-loader';
import routing from './task.routing';
const moduleName = 'ovhManagerSharepointDashboardTask';
angular
.module(moduleName, [ngTranslateAsyncLoader, 'oui', 'pasc... |
# Copyright 2017 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";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
__export(require("./name-list.state"));
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFwcC9zaGFyZWQvY29wYS13Y2kvc3RhdGVzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwc... |
import copy
from flaskext.mysql import MySQL
#mex of a list: returns the minimum value not in the list
def mex(alist):
current = 0
mylist = sorted(alist)
for i in range(len(mylist)):
if mylist[i]==current:
current+=1
if mylist[i]>current:
return current
return current
def arrayToString(anarray):
newst... |
(function() { const icons = { "linear/ecommerce/basket-plus": "M50.4 23.8l-7.6-19-2.7 1.1 7.2 17.9H16.7L23.8 6l-2.7-1.1-7.5 18.9H0l11.6 35.8h40.8L64 23.8H50.4zm-8.9 20.7h-8v8h-3v-8h-8v-3h8v-8h3v8h8v3z" };
if (JSC) {
JSC.internal.registerIcons(icons);
}
})(); |
import logging
import os
import json
from unittest import mock
import numpy as np
import pandas as pd
import pyspark
from pyspark.ml.classification import LogisticRegression
from pyspark.ml.feature import VectorAssembler
from pyspark.ml.pipeline import Pipeline
from pyspark.ml.wrapper import JavaModel
import pytest
fr... |
// only for jest
module.exports = {
presets: [
['@babel/preset-env', { targets: { node: 'current' } }],
'@babel/preset-typescript',
],
};
|
/*
* Copyright © 2017-2018 Cask Data, 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 agr... |
'use strict';
/**
* Builds an adwords user, or false if it is unable to get all the required fields
*/
var developerToken = process.env.ADWORDS_API_TEST_DEVTOKEN;
var refreshToken = process.env.ADWORDS_API_TEST_REFRESHTOKEN;
var clientId = process.env.ADWORDS_API_TEST_CLIENT_ID;
var clientSecret = process.env.ADWORD... |
var searchData=
[
['oncommandexecute',['OnCommandExecute',['../classfrc2_1_1_command_scheduler.html#a93c3b1ddfbf06ce326effd1799555552',1,'frc2::CommandScheduler']]],
['oncommandfinish',['OnCommandFinish',['../classfrc2_1_1_command_scheduler.html#a927bf926514702f73376237249a0df1c',1,'frc2::CommandScheduler']]],
['... |
(function(){(function($){$.easyPieChart=function(el,options){var addScaleLine,animateLine,drawLine,easeInOutQuad,renderBackground,renderScale,renderTrack,_this=this;this.el=el;this.$el=$(el);this.$el.data("easyPieChart",this);this.init=function(){var percent;_this.options=$.extend({},$.easyPieChart.defaultOptions,optio... |
webpackJsonp([3],[/*!**********************!*\
!*** multi guideApp ***!
\**********************/
function(e,t,n){e.exports=n(/*! ./client/common/StyleGuideApp.js */1016)},,/*!***************************************************!*\
!*** ./~/babel-runtime/helpers/classCallCheck.js ***!
\***************************... |
import unittest
import time
import isotp
from test.ThreadableTest import ThreadableTest
from . import unittest_logging
from . import tools
import math
@unittest.skipIf(tools.check_isotp_socket_possible() == False, 'Cannot test stack against IsoTP socket. %s' % tools.isotp_socket_impossible_reason())
class T... |
# Generated by Django 2.2.6 on 2021-01-15 22:45
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('posts', '0003_auto_20201224_2237'),
]
operations = [
migrations.AlterModelOptions(
name='post',
options={'ordering': ['-pub_... |
var $ = require('jquery');
var inherit = require('../inherit');
var BasicButton = require('./basic-button');
function FillButton(options, ui, drawingTool) {
BasicButton.call(this, options, ui, drawingTool);
this.$element
.addClass('dt-fill-color');
$('<div>')
.addClass('dt-color')
.app... |
global.options = {
cors: false
}
const { req } = require('./common')
const test = require('tap').test
test('without CORS headers', function (t) {
req('/test/st.js', function (er, res) {
t.error(er)
t.notOk(res.headers['access-control-allow-origin'])
t.end()
})
})
|
# coding: utf-8
"""
App Center Client
Microsoft Visual Studio App Center API # noqa: E501
OpenAPI spec version: preview
Contact: benedetto.abbenanti@gmail.com
Project Repository: https://github.com/b3nab/appcenter-sdks
"""
from __future__ import absolute_import
import unittest
import appcente... |
/**
* 封装一些公共方法
*/
export default {
/**
* 存储localStorage
*/
setStore(content, name = 'hopoBoost') {
if (typeof content !== 'string') {
content = JSON.stringify(content)
}
window.localStorage.setItem(name, content)
},
/**
* 获取localStorage
*/
getStore(name = 'hopoBoost') {
r... |
/* global describe it cy Cypress require afterEach */
var helper = require('../../common/helper');
var impressHelper = require('../../common/impress_helper');
var mobileHelper = require('../../common/mobile_helper');
describe('Trigger hamburger menu options.', function() {
var testFileName = '';
function before(te... |
import tensorflow as tf
import detect_face
import facenet
import cv2
import numpy as np
import glob
import pickle
import collections
import os
from pytube import YouTube
# import ffmpeg
def rescale_video_img(frame1,scale=0.75):
width = int(frame1.shape[1] * scale)
height = int(frame1.shape[0] * scale)
dim ... |
var pollIntervalMin = 1000 * 60 * 2;
var pollIntervalMax = 1000 * 60 * 10;
var chartsInterval = 1000 * 60 * 15;
var requestFailureCount = 0; // used for exponential backoff
var requestTimeout = 1000 * 60;
var options = {};
var data = {}; // current data
var prices = [];
var ts; // timestamp
var scheduled = false;
v... |
import bilby.core.prior
import numpy as np
import os
from typing import Union
import warnings
import matplotlib
import pandas as pd
from bilby.core.result import Result
from bilby.core.result import _determine_file_name # noqa
import redback.transient.transient
from redback import model_library
from redback.transient... |
# The code in this file is based on https://github.com/una-dinosauria/3d-pose-baseline
"""Utility functions for dealing with human3.6m data."""
from __future__ import division
import os
import numpy as np
from data_sources import cameras
import h5py
import glob
import copy
# Human3.6m IDs for training and testing
T... |
import React, { Component } from 'react';
import {Switch,Route} from 'react-router-dom';
import pagemap from './pages/map';
import './app.css';
import Header from './header';
const pages = pagemap.map((page)=>{return (<Route exact path={page[1]} component={page[0]}/>)})
class App extends Component {
render() {
... |
import axios from "axios";
export default class FormaLegislacaoService {
getLegislacoesFromParent(idArquivo, idRelacao = 0) {
return axios
.get(
process.env.VUE_APP_ROOT_API +
"/forma_legislacao/list_with_parent/?id_arquivo=" +
idArquivo +
"&id_relacao=" +
id... |
# Copyright 2018 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 in writing, ... |
# Python module to import
print("File two __name__ is set to: {}" .format(__name__)) |
import _plotly_utils.basevalidators
class NotchspanValidator(_plotly_utils.basevalidators.DataArrayValidator):
def __init__(self, plotly_name="notchspan", parent_name="box", **kwargs):
super(NotchspanValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... |
export function get(belowFn) {
const oldLimit = Error.stackTraceLimit;
Error.stackTraceLimit = Infinity;
const dummyObject = {};
const v8Handler = Error.prepareStackTrace;
Error.prepareStackTrace = function(dummyObject, v8StackTrace) {
return v8StackTrace;
};
Error.captureStackTrace(dummyObject, bel... |
import { app, BrowserWindow } from 'electron';
// Handle creating/removing shortcuts on Windows when installing/uninstalling.
if (require('electron-squirrel-startup')) { // eslint-disable-line global-require
app.quit();
}
// Keep a global reference of the window object, if you don't, the window will
// be closed aut... |
# coding=utf-8
# switch.py
# Author: David Kit
import random
from .device import Device
from .errors import InvalidParameterException, WorkflowException
from .msgtypes import SetRPower, GetRPower, StateRPower
class Switch(Device):
def __init__(self, mac_addr, ip_addr, service=1, port=56700, source_id=random.randr... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.POSITIONS = undefined;
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _... |
# (C) Datadog, Inc. 2019
# All rights reserved
# Licensed under Simplified BSD License (see LICENSE)
import pytest
from . import common
@pytest.mark.e2e
def test_check(dd_agent_check):
aggregator = dd_agent_check()
for metric in common.DEFAULT_METRICS:
aggregator.assert_metric(metric)
aggregator... |
import Helper from '../../../../api/helper';
export const getUserById = async ({id}) => {
const response = await Helper.callMoodleWebService(
'core_user_get_users_by_field',
{
field: 'id',
values: [id],
},
);
return response[0];
};
export default {getUserById};
|
import { useStaticQuery, graphql } from "gatsby"
export const useSkills = () => {
const skills = useStaticQuery(
graphql`query MySkills {
allSkillsJson {
nodes {
characteristic
isCombat
key
name
}
}
}`)
return skills.allSkillsJson.nodes
} |
webpackJsonp([51],{743:function(e,n,t){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function r(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function o(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"obje... |
/* ------------------------------------------------------------------------------
*
* # D3.js - arc tween animation
*
* Demo d3.js demonstration of arc tween animation
*
* ---------------------------------------------------------------------------- */
// Setup module
// -----------------------------... |
const {app, Menu, Tray, BrowserWindow, nativeImage, ipcMain} = require('electron')
const path = require('path')
const fs = require('fs')
const url = require('url')
const child_process = require('child_process')
const _ = require('underscore')
const DEBUG = false
const CWD = process.cwd()
const execOpts = { cwd: CW... |
export default { "type": "FeatureCollection", "features": [
{ "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[179.2223, -8.5541], [179.2023, -8.4653], [179.2307, -8.5048], [179.2223, -8.5541]]] }, "properties": { "name": "Tuvalu", "id": "TV", "Continent": "Oceania" }, "id": "TV" },
... |
/*
* Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
* http://paperjs.org/
*
* Copyright (c) 2011 - 2016, Juerg Lehni & Jonathan Puckey
* http://scratchdisk.com/ & http://jonathanpuckey.com/
*
* Distributed under the MIT license. See LICENSE file for details.
*
* All rights reserved.
*/
/**
* ... |
/**
* The MIT License
* Copyright (c) 2016 Population Register Centre (VRK)
*
* 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... |
function doAntiPattern(roopNum) {
var stopwatch = new Stopwatch();
stopwatch.start();
function square(n) {
return n * n;
}
var sum = 0;
for (var i = 0; i < roopNum; i++) {
sum += square(i);
}
stopwatch.stop();
return stopwatch.getDiff();
}
function doPattern(roopNum) {
var stopwatch = new Stopwatch()... |
const net = require('net');
const RtmpSession = require('../session/rtmp');
const context = require('../context');
const Logger = require('../utils/logger');
class RtmpServer {
constructor(config) {
this.port = 1935;
this.tcpServer = net.createServer((socket) => {
const session = new RtmpSession(confi... |
if(typeof __JLM_GWT_FONTS__==="undefined"){__JLM_GWT_FONTS__={}}__JLM_GWT_FONTS__["jlm_jlmi10"]="AAEAAAAOAIAAAwBgRkZUTVqBaMEAAAysAAAAHEdERUYADwAeAAAMjAAAAB5PUy8yVbBf+wAAAWgAAABWY21hcAwUCdsAAAHkAAABQmN2dCAAIQJ5AAADKAAAAARnYXNw//8AAwAADIQAAAAIZ2x5ZrnKKEsAAANAAAAGdGhlYWT3PgynAAAA7AAAADZoaGVhCMUFQgAAASQAAAAkaG10eBSWA4UAAAH... |
import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js";
var dateFormats = {
full: 'EEEE d MMMM y',
long: 'd MMMM y',
medium: 'd MMM y',
short: 'dd/MM/y'
};
var timeFormats = {
full: 'HH:mm:ss zzzz',
long: 'HH:mm:ss z',
medium: 'HH:mm:ss',
short: 'HH:mm'
};
var dateTimeFormats = {
ful... |
export default {
key: "editor.layout.mode",
defaultValue: "all",
title: "Editor Layout Mode ",
description: "Set editor's layout mode",
type: "string"
} |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { Index } from 'elasticlunr'
import { withStyles } from '@material-ui/core/styles'
import { graphql, StaticQuery, navigate } from 'gatsby'
import {
Typography,
TextField,
Container,
InputAdornment,
} from '@material-ui/core'
impo... |
import uuid
from django.db import models
from django.contrib.auth import get_user_model
from .model_mixins import BaseBoard
class Board(BaseBoard):
participants = models.ManyToManyField(get_user_model(), related_name='all_boards')
def save(self, *args, **kwargs):
super().save(*args, **kwargs)
... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b)... |
import React, { useState, useEffect } from 'react'
import { useHistory } from 'react-router';
import { Link } from 'react-router-dom';
import axios from 'axios';
import * as yup from 'yup';
import schema from '../validation/loginSchema'
const initialLoginValues= {
username: "",
password: "",
}
const initialE... |
# Copyright (c) 2014 The Bitcoin Core developers
# Copyright (c) 2014-2015 The Dash developers
# Copyright (c) 2015-2017 The YEN developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Helpful routines for regression tes... |
var classarmnn_1_1_test_fully_connected_layer_vistor =
[
[ "TestFullyConnectedLayerVistor", "classarmnn_1_1_test_fully_connected_layer_vistor.xhtml#aaae8730f2764c51d1dc27de5326f6aed", null ],
[ "~TestFullyConnectedLayerVistor", "classarmnn_1_1_test_fully_connected_layer_vistor.xhtml#a02ff0e9c7746d68985fae379fd6... |
#!/usr/bin/env python
#
# Copyright 2017 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Create the asset."""
import argparse
import os
import subprocess
import sys
FILE_DIR = os.path.dirname(os.path.abspath(__file__))
INFRA_BOTS_DIR = os.path.r... |
import { Button } from 'bootstrap';
import React from 'react'
import { toast } from 'react-toastify';
function Square({ onClick: onSquareClick, value }) {
return (
<button className="square" onClick={onSquareClick} >
{value}
</button>
);
}
class Board extends React.Component {
constructor(props... |
function loop(f) {
var p;
for (var i = 0; i < 10; ++i) {
p = f();
}
return p;
}
function f(j, k) {
var g = function () {
return k;
};
var ans = '';
for (k = 0; k < 5; ++k) {
var __es_v0 = new Array(2048);
}
return ans;
}
var t0 = new Date();
var actual = f(1);
actual;
'01234';
|
import _ from 'lodash-es';
import angular from 'angular';
import { ResourceControlOwnership as RCO } from 'Portainer/models/resourceControl/resourceControlOwnership';
import { ResourceControlOwnershipParameters } from '../models/resourceControl/resourceControlOwnershipParameters';
class ResourceControlHelper {
/**
... |
'use strict';
const globalStore = require('../lib/store');
const tuya = require('../lib/tuya');
const utils = require('../lib/utils');
const herdsman = require('zigbee-herdsman');
const legacy = require('../lib/legacy');
const constants = require('../lib/constants');
const manufacturerOptions = {
xiaomi: {manufac... |
// 'use strict';
const npmCheck = require('./in.js');
const createState = require('./state/state.js');
function init(userOptions) {
return createState(userOptions)
.then(currentState => npmCheck(currentState));
}
module.exports = init;
|
import argparse
import socket # for connecting
from colorama import init, Fore
from threading import Thread, Lock
from queue import Queue
# some colors
init()
GREEN = Fore.GREEN
RESET = Fore.RESET
GRAY = Fore.LIGHTBLACK_EX
# number of threads, feel free to tune this parameter as you wish
N_THREADS = 20... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.parseRelativeUrl = parseRelativeUrl;
var _utils = require("../../utils");
var _querystring = require("./querystring");
function parseRelativeUrl(url, base) {
const globalBase = new URL(typeof window === 'undefined' ? 'http://n'... |
/*
Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["dojox.widget.rotator.Pan"]){ //_hasResource checks added by build. Do not use _hasResource directly ... |
import React, { Component } from 'react';
import './App.css';
import {BrowserRouter as Router, Link, Redirect, Route} from 'react-router-dom';
import Auth from './modules/Auth'
import ToggleDisplay from 'react-toggle-display';
import PostList from './components/PostList';
import RegisterForm from './components/Regist... |
# -*- coding: utf-8 -*-
import os
import torch
from aw_nas.final.base import FinalModel
from aw_nas.objective.base import BaseObjective
from aw_nas.objective.detection_utils import (
Losses, AnchorsGenerator, Matcher, PostProcessing, Metrics)
from aw_nas.utils.torch_utils import accuracy
class DetectionObjective... |