text stringlengths 3 1.05M |
|---|
tinyMCE.addI18n('ms.advanced',{underline_desc:"Garis bawah (Ctrl+U)",italic_desc:"Condong (Ctrl+I)",bold_desc:"Tebal (Ctrl+B)",dd:"Maksud huraian",dt:"Maksud terma",samp:"Contoh kod",code:"Kod",blockquote:"Petikan blok",h6:"Tajuk 6",h5:"Tajuk 5",h4:"Tajuk 4",h3:"Tajuk 3",h2:"Tajuk 2",h1:"Tajuk 1",pre:"Telah diformatkan... |
/**
* @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... |
/* eslint-disable import/prefer-default-export */
import { SET_RUNTIME_VARIABLE, SET_TEST_VARIABLE } from '../constants';
export function setRuntimeVariable({ name, value }) {
return {
type: SET_RUNTIME_VARIABLE,
payload: {
name,
value,
},
};
}
export function testActionCreator(data) {
... |
/* eslint-env node, browser */
import Hash from 'sha.js/sha1'
import { toHex } from './toHex.js'
let supportsSubtleSHA1 = null
export async function shasum (buffer) {
if (supportsSubtleSHA1 === null) {
supportsSubtleSHA1 = await testSubtleSHA1()
}
return supportsSubtleSHA1 ? subtleSHA1(buffer) : shasumSync... |
'use strict';
angular.module('confusionApp')
.controller('MenuController', ['$scope', 'menuFactory', function($scope, menuFactory) {
$scope.showMenu = false;
$scope.message = "Loading ...";
menuFactory.getDishes().query(
function(response) {
$scope.dishes = response;
... |
export default (board, cage) => {
const cells = selectCage(board, cage);
const found = [];
return cells.reduce((acc, cell) => {
if (!acc) return acc;
if (cell.value === 0) return true;
if (!found[cell.value]) {
found[cell.value] = true;
return true;
}
return false;
}, true);
};
... |
print("import: 'pip'")
import pip
|
import React from 'react';
import { Helmet } from 'react-helmet';
import HeaderContainer from '../HeaderContainer';
import DivWithBackground from '../../componests/image/background-image';
import background from '../../images/background-1.png';
import FormCard from '../../componests/FormCard';
import Form from '../../c... |
import React, { useState, useEffect } from "react";
import "../css/MemberDisplay.scss";
import MemberCard from "./MemberCard";
import { useEmblaCarousel } from "embla-carousel/react";
// import four from "../dataAll/MemberData4.json";
import four from "../dataAll/MemberData4.json";
import Snowfall from "react-snowfall"... |
import React from 'react';
import { AuthenticationContext } from '@3rdparty/react-oidc-context';
import { Link } from 'react-router-dom';
const headerStyle = {
display: 'flex',
backgroundColor: '#26c6da',
justifyContent: 'space-between',
padding: 10,
};
const linkStyle = {
color: 'white',
textDecoration: ... |
import numpy as np
class ComputationalGrid(object):
def __init__(self):
self.nx = 500
self.x = (np.arange(0, self.nx) * 1.0 / self.nx) - .5
|
/*! Nanobar 0.4.2 */
(function(root){"use strict";var css=".nanobar{width:100%;height:4px;z-index:9999;top:0}.bar{width:0;height:100%;transition:height .3s;background:#000}";function addCss(){var s=document.getElementById("nanobarcss");if(s===null){s=document.createElement("style");s.type="text/css";s.id="nanobarcss";d... |
"""
Macro to define a virtual rotation axis of the sr motor by following with
sx+basex, sy+basey and sz+basez.
"""
import os
import datetime
import numpy as np
from scipy.optimize import curve_fit
import matplotlib.pyplot as plt
from contrast.environment import env, macro, register_shortcut, runCommand
@macro
class ... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[79],{595:function(n,t,e){"use strict";e.r(t),t.default="const {Scene} = spritejs;\nconst {Mesh3d, shaders} = spritejs.ext3d;\nconst container = document.getElementById('container');\nconst scene = new Scene({\n container,\n width: 600,\n height: 600,\n});\nconst l... |
// Copyright 2017-2022 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { Enum } from '@polkadot/types-codec';
import { isBn, isNumber, isString, isU8a } from '@polkadot/util';
import { decodeAddress } from '@polkadot/util-crypto';
import { GenericAccountId } from "./AccountId.js";
i... |
// @flow
import React from 'react';
import {shallow} from 'enzyme';
import fieldTypeDefaultProps from '../../../../utils/TestHelper/fieldTypeDefaultProps';
import ResourceStore from '../../../../stores/ResourceStore';
import FormInspector from '../../FormInspector';
import ResourceFormStore from '../../stores/ResourceF... |
class Solution:
def canJump(self, nums: List[int]) -> bool:
cur_max = float('-inf')
for index in range(len(nums)):
cur_max = max(index+nums[index], cur_max)
if cur_max<=index and index<len(nums)-1:
return False
if cur_max>=len(nums)-1:
... |
const { NotImplementedError } = require('../extensions/index.js');
/**
* Implement class DepthCalculator with method calculateDepth
* that calculates deoth of nested array
*
* @example
*
* const depthCalc = new DepthCalculator();
* depthCalc.calculateDepth([1, 2, 3, 4, 5]) => 1
* depthCalc.calculateDepth([1,... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _createIcon = _interopRequireDefault(require("./util/createIcon"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var _default = (0, _createIcon["defaul... |
/*!
* jQuery UI Effects Highlight 1.11.3
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/highlight-effect/
*/
(function (factory) {
if (typeof define === "function" && define.amd) {
... |
self["webpackHotUpdate_N_E"]("webpack",{},
/******/ function(__webpack_require__) { // webpackRuntimeModules
/******/ "use strict";
/******/
/******/ /* webpack/runtime/getFullHash */
/******/ !function() {
/******/ __webpack_require__.h = function() { return "6c6217bd967b906e976a"; }
/******/ }();
/******/
/******/... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*------------------------------------------------------------... |
/*jQuery(document).ready(function(){jQuery(".ult_exp_content").hide(),jQuery(".ult_exp_section").click(function(){var e=jQuery(this).data("effect");if(jQuery(this).toggleClass("ult_active_section"),jQuery(this).next(".ult_exp_content").toggleClass("ult_active_section"),"slideToggle"==e&&jQuery(this).next(".ult_exp_cont... |
function btnSubmit_click() {
AddGuests();
}
function btnClearDB_click() {
clearDatabase();
}
function btnDelete_click() {
DeleteBooking();
}
function COViewEventsPage_show(){
showAllGuests();
}
function COSettingsPage_show() {
$("#RegisterEmail").val(localStorage.getItem("DefaultEmail"));
}
function btnUpdate_... |
var searchData=
[
['s',['S',['../namespacelib_c_z_i.html#a55049658acf59d0eddfaebcad16df424a5dbc98dcc983a70728bd082d1a47546e',1,'libCZI']]],
['scalex',['scaleX',['../structlib_c_z_i_1_1_scaling_info.html#ad78c8dd0c50767ea6004f513379744a3',1,'libCZI::ScalingInfo']]],
['scaley',['scaleY',['../structlib_c_z_i_1_1_sca... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[281],{3765:function(t,e,r){"use strict";r.r(e),r.d(e,"icon",(function(){return l}));r(2),r(15),r(16),r(12);var n=r(0);function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnPropert... |
module.exports = {
CHOOSE_ONE: 'chooseOne',
MEETING_TIME: 'meetingTime',
ERROR_POSITION_TYPE: 'ERROR_POSITION_TYPE',
ERROR_POSITION_LATE: 'ERROR_POSITION_LATE',
ERROR_POSITION_CHOICE: 'ERROR_POSITION_CHOICE',
SCHEMA_VERSION: 'v1'
}
|
import yargs from 'yargs'
import { generateSecret, handler, builder } from './../secret.js'
describe('generateSecret', () => {
it('contains only uppercase letters, lowercase letters, and digits', () => {
const secret = generateSecret()
expect(secret).toMatch(/^[A-Za-z0-9]{64}$/)
})
it('can optionally ... |
# Generated by Django 3.2.10 on 2022-01-09 18:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('account', '0009_alter_customer_profile_pic'),
]
operations = [
migrations.AlterField(
model_name='customer',
name='... |
const path = require('path')
const resolve = file => path.resolve(__dirname, file)
const locales = require(resolve('../util/locales.js'))
const iconfonts = require(resolve('../util/iconfonts.js'))
module.exports = api => {
api.describeConfig({
id: 'com.vuetify',
name: 'Vuetify configuration (in dev)',
d... |
const loadDb = global.prepareDb || {}
export function loadPersistentState(dbName) {
try {
const value = loadDb(dbName).getState()
return Object.keys(value).length === 0 ? null : value || null
} catch (error) {
return null
}
}
export function loadPersistentStateValue(dbName, key) {
if (!key) {
... |
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-714a"],{"9rC1":function(t,n,e){"use strict";e.d(n,"d",function(){return s}),e.d(n,"b",function(){return o}),e.d(n,"a",function(){return r}),e.d(n,"f",function(){return a}),e.d(n,"g",function(){return c}),e.d(n,"c",function(){return f}),e.d(n,"e",function(){ret... |
import unittest
from overtime.components import Graph, TemporalGraph
from overtime.inputs import CsvInput
class GraphBuildTest(unittest.TestCase):
"""
Standalone test for the Graph build method.
"""
def test_build(self):
"""
Test that a graph can be built from an input csv.... |
"use strict";
const fs = require("file-system");
const path = require("path");
module.exports = bundler => {
bundler.on("bundled", bundle => {
let pkgFile;
if(typeof bundler.mainBundle.entryAsset.getPackage === 'function') {
// for parcel-bundler@>=1.9
pkgFile = Promise.reso... |
const express = require('express')
const Vue = require('vue')
const serverRender = require('vue-server-renderer')
const server = express()
// 将Vue实例转化为html字符串(vue-server-renderer)
const render = serverRender.createRenderer()
server.get('*', (req, res) => {
// res.send(req.url)
const vm = new Vue({
data(... |
import { isLeaningForward } from './utils';
export const lateralRaise = {
type: 'core',
exercise: 'Lateral raises',
meetsRestrictions: coords => {
const mhands =
(coords[15].y - coords[16].y) / (coords[15].x - coords[16].x);
const melbows =
(coords[13].y - coords[14].y) / (coords[13].x - coor... |
const FILES_TO_CACHE = [
"/",
"./index.html",
"./styles.css",
"./index.js",
"./db.js",
"./icons/icon-192x192.png",
"./icons/icon-512x512.png",
"/manifest.webmanifest",
];
const CACHE_NAME = "static-cache-v2";
const DATA_CACHE_NAME = "data-cache-v1";
// install
self.addEventListener("install", function... |
import React from 'react';
import {Icon} from 'antd';
// 定义某个表的querySchema
// schema的结构和含义参考下面的例子
// 注意: 所有的key不能重复
module.exports = [
{
key: 'name', // 传递给后端的字段名
title: '用户名', // 前端显示的名称
placeholder: '请输入用户名', // 提示语, 可选
// 数据类型, 前端会根据数据类型展示不同的输入框
// 目前可用的dataType: int/float/varchar/datetim... |
from .utils import stylize_text
# Health bar class
class HealthBar(object):
bar_chars = [" ", "▏", "▎", "▍", "█", "▋", "▊", "▉", "██"]
def __init__(
self,
entity,
width,
*,
align="left",
bright_bar=False,
bar_color="default",
bright_bar_back=Fal... |
/*globals $:false */
$(document).ready(function() {
"use strict";
$('#year').change(function (e) {
e.preventDefault();
var year = $('#year').val();
$.ajax({
url: '../addprosub/js-year',
data: {
'year': year
},
type: "get",
... |
#!/usr/bin/python3.7
import asyncio
import time
import json
import argparse
import sys
import pprint
class AmicableServer(asyncio.Protocol):
_amicableProgram = './amicable.py'
def __init__(self):
self.transport = self._peer = ''
self.end_time = self.start_time = ''
self._from = self.... |
option = {
xAxis: {
type: 'category',
axisLabel: {
interval: 0,
rotate: 30
},
data: ['bahdanau','luong', 'multinomial',
'self-attention', 'xgboost', 'bert-multilanguage', 'bert-base',
'bert-small']
},
yAxis: {
type: 'value',
... |
$(document).ready(function(){
$('#date_of_birth').on('input', function() {
var datestr = $('#date_of_birth').val();
var dob = +new Date(datestr);
var age = (Date.now() - dob)/ (31557600000);
age = Math.floor(age);
$('#age').val(age);
$('#age').trigger('input');
});
$('#height, #weight').on('inp... |
##############################################################################
# Copyright 2016 IBM Corp.
#
# 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/lice... |
const mongoose = require('mongoose');
mongoose.Promise = global.Promise;
const exampleSchema = new mongoose.Schema({
name: {
type: String,
trim: true,
required: 'Please enter a name!'
}
})
module.exports = mongoose.model('Example', exampleSchema);
|
import { FETCH_DATA, FILL_FORM } from '../../constants';
import { log } from './modules/print';
log('The extension has been loaded successfully!');
const port = chrome.runtime.connect({ name: "my-extension" });
const onMessageReceived = ({ type, payload }) => {
switch (type) {
case FILL_FORM: {
document.... |
export default class TagDriver
{
constructor( wrapper )
{
this.wrapper = wrapper;
}
clickClose()
{
this.wrapper.find( 'IconButton' ).first().driver().click();
return this;
}
}
|
'use strict';
var CSSLint = require('../../lib/csslint').CSSLint;
module.exports = function (t, a) {
var tpl = '\nbody div { margin-right: 21px;}\ndiv { margin: 20px; }';
CSSLint.addRule(t);
a.deep(CSSLint.verify(tpl).messages, [{
type: 'warning',
line: 3,
col: 21,
message: t.desc,
evidence: 'div { marg... |
/**
* @license
* Copyright 2019 Google LLC. 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 a... |
'use strict';
var slugify = require('transliteration').slugify;
var hexo = hexo || {};
var config = hexo.config || {};
var pluginConfig = config.permalink_pinyin || {};
hexo.extend.filter.register('post_permalink', function (data) {
if (pluginConfig.enable) {
if (pluginConfig.exclude) {
const exclude = n... |
import numpy as np
import torch
from torch.autograd import Variable, Function
from .. import sparsemap
from ..utils import S_from_Ainv
class _BaseSparseMarginals(Function):
def __init__(self, max_iter=10, verbose=0):
self.max_iter = max_iter
self.verbose = verbose
def forward(self, unaries... |
/* jquery.nicescroll 3.6.0 InuYaksa*2014 MIT http://nicescroll.areaaperta.com */(function(f){"function"===typeof define&&define.amd?define(["jquery"],f):f(jQuery)})(function(f){var y=!1,D=!1,N=0,O=2E3,x=0,H=["webkit","ms","moz","o"],s=window.requestAnimationFrame||!1,t=window.cancelAnimationFrame||!1;if(!s)for(var P in... |
const Discord = require('discord.js')
const fs = require('fs');
var ayarlar = require('../ayarlar.json');
let kanal = JSON.parse(fs.readFileSync("././jsonlar/mLog.json", "utf8"));
exports.run = async (client, message, args) => {
if (!message.member.hasPermission("ADMINISTRATOR")) return message.reply(`Bu komutu kullan... |
"use strict";
// Monoids are an extension of a Semigroup.
exports.__esModule = true;
// Number Monoid under addition
var MonoidSum = {
concat: function (first, second) { return first + second; },
empty: 0
};
// Number Monoid under multiplication
var MonoidProduct = {
concat: function (first, second) { retur... |
// https://jsbin.com/yiboxe/edit?js,output
import React from 'react';
import ReactDOM from 'react-dom';
class App extends React.Component {
constructor(){
super();
this.state = {
red: 0
}
this.update = this.update.bind(this)
}
update(e){
this.setState({
red: ReactDOM.findDOMNode(t... |
from .utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH
class SlmClient(NamespacedClient):
@query_params()
def delete_lifecycle(self, policy_id, params=None, headers=None):
"""
Deletes an existing snapshot lifecycle policy.
`<https://www.elastic.co/guide/en/elastics... |
#!/usr/bin/env python
# Copyright (c) 2018, Michael Boyle
# See LICENSE file for details: <https://github.com/moble/quaternion/blob/master/LICENSE>
# Construct the version number from the date and time this python version was created.
from os import environ
from sys import platform
on_windows = ('win' in platform.low... |
module.exports = Texture;
/**
* Single texture in the webglAtlas.
*/
function Texture(size) {
this.canvas = window.document.createElement("canvas");
this.ctx = this.canvas.getContext("2d");
this.isDirty = false;
this.canvas.width = this.canvas.height = size;
}
|
import Vue from 'vue'
import UploaderBaseMixin from './uploader-base-mixin.js'
import UploaderXHRMixin from './uploader-xhr-mixin.js'
export default Vue.extend({
name: 'QUploader',
mixins: [ UploaderBaseMixin, UploaderXHRMixin ]
})
|
/*jshint eqeqeq:false */
/*global jQuery, define */
(function( factory ) {
"use strict";
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
define([
"jquery",
"./grid.base",
"./grid.grouping"
], factory );
} else {
// Browser globals
factory( jQuery );
}
... |
# -*- coding: utf-8 -*-
'''
unit tests for the sqs_events engine
'''
# Import Python libs
from __future__ import absolute_import
# Import Salt Testing Libs
from tests.support.unit import skipIf, TestCase
from tests.support.mock import (
NO_MOCK,
NO_MOCK_REASON,
MagicMock,
patch)
# Import Salt Libs
fro... |
def has_magnet(self):
"""Return if the Hole has magnets
Parameters
----------
self : HoleM50
A HoleM50 object
Returns
-------
has_magnet : bool
True if the magnets are not None
"""
return self.magnet_0 is not None or self.magnet_1 is not None
|
"""PcrdWiki URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... |
import of from "../../src/list/of";
test("of", () => {
const res = of(42);
expect(res).toEqual([42]);
});
|
# GENERATED BY KOMAND SDK - DO NOT EDIT
from .get_all_threats.action import GetAllThreats
from .get_blocked_clicks.action import GetBlockedClicks
from .get_blocked_messages.action import GetBlockedMessages
from .get_delivered_threats.action import GetDeliveredThreats
from .get_permitted_clicks.action import GetPermitte... |
import React from 'react';
import './index.scss';
const DropdownMenuItem = (props) => (
<button
{...props}
className={`btn-unstyled sho-dropdown-menu__item ${props.className ? props.className : ''}`}
>
{props.children}
</button>
);
export default DropdownMenuItem; |
// Copyright 2014 The Oppia 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 ap... |
(function(d){ const l = d['el'] = d['el'] || {}; l.dictionary=Object.assign( l.dictionary||{}, {"%0 of %1":"","Block quote":"Περιοχή παράθεσης",Bold:"Έντονη","Bulleted List":"Λίστα κουκκίδων",Cancel:"Ακύρωση","Centered image":"","Change image text alternative":"Αλλαγή εναλλακτικού κείμενου","Choose heading":"Επιλέξτε... |
import os
from sqlalchemy.ext.declarative import declarative_base
from metric.src import ROOTPATH
from metric.src.path import auto
Model = declarative_base()
class Schemas:
def __init__(self):
"""
____Schemas is used to gather all the models registered in package models,
and set it as a... |
define({"topics" : [{"title":"Configuring an Alert Webhook","shortdesc":"\n <p class=\"shortdesc\"></p>\n ","href":"datacollector\/UserGuide\/Alerts\/RulesAlerts_title.html#task_l2p_53t_rz","attributes": {"data-id":"task_l2p_53t_rz",},"menu": {"hasChildren":false,},"tocID":"task_l2p_53t_rz-d46e... |
'use strict';
/**
* Copyright 2018 Universal Health Coin
*
* 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, modi... |
import * as React from "react";
import createSvgIcon from "../../utils/createSvgIcon";
const ChevronRight = createSvgIcon(
<path d="M15.3037 11.2912L10.7237 6.71122C10.3317 6.32022 9.6977 6.32022 9.3057 6.71122C8.9137 7.10422 8.9137 7.73822 9.3057 8.13022L13.1767 12.0002L9.3057 15.8702C8.9137 16.2622 8.9137 16.8962 ... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Redirect } from 'react-router-dom';
import { getProductsPrices } from '../actions/productsPrices';
import Round from '../components/round';
class RoundContainer extends Component {
render() {
const {
round... |
/*
*
* Form actions
*
*/
import {
CHANGE_INPUT,
ADD_NEW_STRING,
LOAD_STRINGS_SUCCESS,
ADD_STRINGS_SUCCESS,
ADD_STRINGS_FAIL,
} from './constants';
export function changeInput(newString) {
return {
type: CHANGE_INPUT,
newString,
};
}
export function addNewString(newString) {
return {
t... |
function string_to_number( string ) {
if ( typeof string === 'number' ) {
return string;
}
if ( typeof string === 'string' ) {
var n = string.match(/[^\d\.]+$/);
if ( ! n ) {
n = string.match(/[\d\.]+$/);
}
if (n) {
return parseFloat(n[0]);
} else {
return 0;
}
}
return ... |
import sys
from rastervision.v2.core.main import main
# Code taken from unittest
if sys.argv[0].endswith('__main__.py'):
import os.path
# We change sys.argv[0] to make help message more useful
# use executable without path, unquoted
# (it's just a hint anyway)
# (if you have spaces in your executa... |
import React, { useEffect } from 'react';
import { connect } from 'react-redux'
import _ from 'lodash'
import RoomListView from './RoomList-View'
import {
fetchPublicRooms,
updateTotalPublicRoomsCount
} from '../../redux/actions/room-actions'
const RoomListRedux = ({
updateTotalPublicRoomsCount,
fetc... |
// Copyright 2019 Esri
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
//... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var React = _interopRequireWildcard(r... |
import baseClone from './_baseClone';
import baseConforms from './_baseConforms';
/** Used to compose bitmasks for cloning. */
const CLONE_DEEP_FLAG = 1;
/**
* Creates a function that invokes the predicate properties of `source` with
* the corresponding property values of a given object, returning `true` if
* all ... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
import * as React from 'react'
import AsyncStorage from 'react-native'
import {createStackNavigator} from 'react-navigation-stack'
import {createBottomTabNavigator} from 'react-navigation-tabs'
import {createAppContainer, createSwitchNavigator} from 'react-navigation'
import i18n from 'i18n-js'
import {AppLoading} from... |
import Shape from './Shape.js';
import ObjectFactory from '../ObjectFactory.js';
import SetValue from '../../utils/object/SetValue.js';
ObjectFactory.register('shape', function (board, tileX, tileY, tileZ, fillColor, fillAlpha, addToBoard) {
var gameObject = new Shape(board, tileX, tileY, tileZ, fillColor, fi... |
import numpy as np
import pandas as pd
import xarray as xr
import matplotlib
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
import os
import itertools
from scipy.interpolate import griddata
if __name__ == "__main__":
# # Initialization
# matplotlib.rcParams.update({'font.size'... |
import sys
import json
j = json.load(sys.stdin)
include = j[sys.argv[1]]
# 1st arg = set to include
# if 2nd arg = filter out these from the set into include before generating the inventory
if len(sys.argv) == 3:
res = ','.join(set(include) - set(j[sys.argv[2].replace('-', '_')]))
print res + ',' if res else... |
'use strict';
const request = require('request');
const Readability = require("readability");
const jsdom = require('jsdom');
const tidy = require('htmltidy2').tidy;
const { JSDOM } = jsdom;
const Iconv = require('iconv').Iconv;
const url = require("url");
var tidyopts = {
doctype: 'html5',
hideComments: true, /... |
/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Methods for graphically rendering a marker as SVG.
* @author samelh@microsoft.com (Sam El-Husseini)
*/
'use strict';
goog.provide('Blockly.zelos.MarkerSvg');
goog.require('Blockly.blockRenderi... |
let actionValue = this.action.value;
let actionMame = this.action.name;
let categories = actionValue.category || [];
const spectrumCategories = [
{
label: 'reference',
description: 'Reference data'
},
{
label: 'nonRepresentative',
description: 'Non representative data'
},
{
label: 'supple... |
import pytest
import copy
import os
import mlagents.trainers.tests.mock_brain as mb
from mlagents.trainers.policy.tf_policy import TFPolicy
from mlagents.trainers.sac.optimizer_tf import SACOptimizer
from mlagents.trainers.ppo.optimizer_tf import PPOOptimizer
from mlagents.trainers.tests.test_simple_rl import PPO_CONFI... |
"""
:Copyright: 2014-2022 Jochen Kupperschmidt
:License: Revised BSD (see `LICENSE` file for details)
"""
from byceps.services.user import (
log_service as user_log_service,
service as user_service,
)
def test_invalidation_of_initialized_user(
api_client, api_client_authz_header, make_user
):
email_a... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{103:function(e,n,o){},105:function(e,n,o){},110:function(e,n,o){},123:function(e,n,o){},127:function(e,n,o){e.exports={footerLogoLink:"footerLogoLink_3L_r"}},129:function(e,n,o){e.exports={docTitle:"docTitle_1vWb",docItemContainer:"docItemContainer_2cwg",docItemC... |
import { combineReducers } from 'redux';
import { imageList } from './Gallery/reducer';
import { auth } from './Auth/reducer';
export default combineReducers({
auth,
imageList,
}) |
'use strict';
angular.module('mean.system').controller('CommentsController', ['$rootScope', '$scope', '$stateParams', '$location', 'Global', 'Comments',
function($rootScope, $scope, $stateParams, $location, Global, Comments) {
$scope.global = Global;
$rootScope.$on('loggedin', function() {
$scope.... |
import axios from 'axios'
let getPeople = function()
{
return axios.get('http://swapi.co/api/people/')
}
let getPerson = function(id) {
return axios.get('http://swapi.co/api/people/' + id)
}
let getMoviesList = function(id) {
return axios.get('http://swapi.co/api/films/' )
}
let getMovies = functi... |
_N_E =
(window["webpackJsonp_N_E"] = window["webpackJsonp_N_E"] || []).push([["pages/next/dist/pages/_error"],{
/***/ "./node_modules/next/dist/build/polyfills/object-assign.js":
/*!*****************************************************************!*\
!*** ./node_modules/next/dist/build/polyfills/object-assign.js ***... |
/* Déclenche la lecture ou l'arrêt du défilement des images de webcam
* Les images de webcam défilent automatiquement pendant un cycle de rotation de 12 images
* Le bouton "Activer / Désactiver"
*
* */
let nbSecond = 3;
let maxCountImage = 5;
let imageCount = 0;
let isWebcamOn = false;
document.querySelectorAll('... |
import numpy
import pandas
import pyarrow
import click
if __name__ == "__main__":
print("This is app_a running!") |
import score from '../img/score.png';
import skillsTree from '../img/skills.png';
const loadImage = () => {
const imgGenerator = (id, img, alt) => {
return (id.innerHTML = `<img src="${img}" alt=${alt} >`);
};
let music = document.getElementById('music-box');
imgGenerator(music, score, 'music score');
... |
export { default as createCurrentLessonObjectStatus } from './createCurrentLessonObjectStatus';
export { default as getActiveLessonObjectStatuses } from './getActiveLessonObjectStatuses';
export { default as getOrCreateLessonObjectStatus } from './getOrCreateLessonObjectStatus';
export { default as setDateTimeFinishedO... |
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?t(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],t):t(e.moment)}(this,function(e){"use strict";var t=e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abu... |