text stringlengths 3 1.05M |
|---|
'use strict'
// Template version: 1.3.1
// see http://vuejs-templates.github.io/webpack for documentation.
const path = require('path')
module.exports = {
dev: {
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {},
// Various Dev Server settings
host: 'localhost', ... |
#
# ============LICENSE_START==========================================
# org.onap.vvp/engagementmgr
# ===================================================================
# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
# ===================================================================
#
# Unless ... |
/*
This file is part of Ext JS 4
Copyright (c) 2011 Sencha Inc
Contact: http://www.sencha.com/contact
Commercial Usage
Licensees holding valid commercial licenses may use this file in accordance with the Commercial Software License Agreement provided with the Software or, alternatively, in accordance with the term... |
/**
* Bio component that queries for data
* with Gatsby's StaticQuery component
*
* See: https://www.gatsbyjs.org/docs/static-query/
*/
import React from "react"
import { StaticQuery, graphql } from "gatsby"
import Image from "gatsby-image"
import { rhythm } from "../utils/typography"
function Bio() {
return ... |
//--- ACTIVA O DESACTIVA PERMISOS
function activaDesactivaPermisos(id, opcion) {
var perf_id = $('#perf_id').val();
//opcion = (opcion) ? 'deny' : 'allow';
var op = '';
op = (opcion == 'allow') ? 'deny' : 'allow';
//alert(`${id} ${opcion} ${op}`)
var dir = $('#dir').val();
$.ajax(
{
... |
a = 23
b = 9
while (True):
c = int(input("Guess the number:\n"))
if c <23:
print("your number is small then the real number")
b = b - 1
print("you have only", b ,"Guesses left")
if b==0:
print("Game Over")
break
d = int(input("Press 1 if... |
from __future__ import with_statement
from alembic import context
from sqlalchemy import engine_from_config, pool
from logging.config import fileConfig
import logging
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.config
# Interpret the config ... |
'use strict';
const {
util: { checkType }
} = require('../../core');
const PipelineAggregationBase = require('./pipeline-aggregation-base');
const ES_REF_URL =
'https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-percentiles-bucket-aggregation.html';
/**
* A sibling... |
import { Bullet } from "./Bullet.js"
import { ExtraHealth } from "../powerups/ExtraHealth.js";
import { TripleShot } from "../powerups/TripleShot.js";
export class Enemy extends Phaser.Physics.Matter.Sprite {
constructor(scene, x, y, key, health, scale, sensew, senseh) {
super(scene.matter.world, x, y, key... |
const { WebhookClient } = require('discord.js');
const { logEmbed } = require('../../modules/embeds.js');
const { getLogChannel } = require('../../modules/utils.js');
module.exports = async (client, member, reason) => {
const logChannel = await getLogChannel(client);
if (logChannel) {
const webhookClien... |
$(document).ready(function() {
$(window).load(function () {
var countryshort = $('.editCountry').val();
$('#flag').attr('src','/uploads/photos/'+ countryshort +'.png');
$('.title_description').hide();
$('.title_description:first-child').show();
})
$( ".editCountry" ).change(function() {
... |
/* eslint-disable no-unused-expressions */
import PreviewErrorViewer from '../PreviewErrorViewer';
import BaseViewer from '../../BaseViewer';
import Browser from '../../../Browser';
import * as file from '../../../file';
import { PERMISSION_DOWNLOAD } from '../../../constants';
import { ICON_FILE_DEFAULT, ICON_FILE_ZIP... |
# -*- coding: utf-8 -*-
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... |
import { StructureCommand } from '../../../../core/domain/structure.command';
export class SetConfigQuickFilterCommand extends StructureCommand {
constructor(structureId, quickFiltersConfig) {
super(structureId, 'SetConfigQuickFilterCommand');
this.quickFiltersConfig = quickFiltersConfig;
}
... |
import React from 'react'; //importando o react dentro do meu arquivo
import ReactDOM from 'react-dom'; // importando reactDOM pra dentro do arquivo
import App from "./components/App"; // importando meu App que e o meu componente
//render e um metodo do react-dom que recebe dois paramentros que e a tag que ele vai... |
import allure
from hamcrest import assert_that
from allure_commons_test.report import has_test_case
from allure_commons_test.result import with_status
@allure.issue("352")
def test_pytest_flakes(allured_testdir):
"""
>>> from os.path import *
>>> def test_pytest_flakes_example():
... assert True
... |
import os
import stat
import sys
from ects.util.config import load_config, traverse_dict
from ects.util.permissions import octal_mode_string, verify_file_permissions
from logging import Logger
from pathlib import Path
from typing import Dict, List, Optional, Set, Tuple
DEFAULT_PERMISSIONS_CERT_FILE: int = 0o644
DEFAUL... |
export const sortAlphaUp = ["512 512"," <path fill='currentColor' d='M97.529 40h-.333v.333L16.089 121.44V128h81.107v368h48V128H226v-7.529L121.529 16l-24 24z' opacity='.25'/> <path fill='currentColor' d='M423 329.456V279H274v42h96.259L269 414.544V465h157v-42H321.741L423 329.456zM318.47 193h63.06l11.668 35h44.271L377.1... |
import re
import json
from src.utils.xlsGetter import get_xls, clear_xls
template = {}
footer_match_list = [
'(博雅课程).+?◇(.+?)◇(\d+-\d+)',
'(实践与展示).+?◇(.+?)◇(\d+-\d+)'
]
course_name_format_list = [
'体育\(\d+\)\((.+?)\d*?\)'
]
place_lesson_format_list = [
'计算机教学实验中心\(新主楼([a-zA-Z0-9]+)\)'
]
def init_t... |
var express = require('express');
var path = require('path');
var logger = require('morgan');
var compression = require('compression');
var methodOverride = require('method-override');
var session = require('express-session');
var flash = require('express-flash');
var bodyParser = require('body-parser');
var expressVal... |
/*
If the user clicks on an element which has the class "ua-choice":
* fetch the element's textContent: for example, "IE 11"
* pass it into the background page's setUaString() function
*/
document.addEventListener("click", (e) => {
if (!e.target.classList.contains("ua-choice")) {
return;
}
var ch... |
import time
import hmac
from hashlib import sha256
try:
import simplejson as json
except ImportError:
import json
import re
from contextlib import contextmanager
from six.moves import urllib
import six
class ValidationException(Exception):
pass
class Session(object):
api_key = None
secret = None
... |
import {call, put, select, takeLatest} from 'redux-saga/effects';
import {
CHECK_AUTH_END,
CHECK_AUTH_START,
USER_AUTH_UPDATED,
USER_LOGIN_FAIL,
USER_LOGIN_START,
USER_LOGIN_SUCCESS, USER_LOGOUT_START, USER_LOGOUT_SUCCESS
} from '../actionTypes';
import {getAuthState} from '../selectors'
import ... |
/*
*
* Backpack - Skyscanner's Design System
*
* Copyright 2016-2020 Skyscanner Ltd
*
* 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-... |
#!/usr/bin/env python3
from pre_processing import *
# Better
choice = 2
if choice == 1:
X_train, Y_train = generate_data_flatten()
else:
X_train, Y_train = generate_fix_sequence()
token = Tokenizer()
token.fit_on_texts(X_train)
token.fit_on_texts(Y_train)
x_train = token.texts_to_sequences(X_train)
y_train =... |
// flow-typed signature: 497c86e3840680f6d31aabc86a1265a4
// flow-typed version: <<STUB>>/autoprefixer_v9.6.1/flow_v0.102.0
/**
* This is an autogenerated libdef stub for:
*
* 'autoprefixer'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with ... |
'use strict';
/*
* This program is distributed under the terms of the MIT license:
* <https://github.com/v0lkan/talks/blob/master/LICENSE.md>
* Send your comments and suggestions to <me@volkan.io>.
*/
import { inform } from '../repl';
import { graphql } from 'graphql';
import { trace, start } from 'kiraz';
import... |
/**
* 动画方法, 将动画css加入到元素上,返回promise提供执行后续操作(将动画重置)
* @param $el 当前被执行动画的元素
* @param animationList 动画列表
* @param isDebugger 动画列表
* @returns {Promise<void>}
*/
export default async function runAnimation($el, animationList = [], isDebug, callback) {
const playFn = function(animation) {
return new Promise(resolv... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = StatusIndicator;
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d... |
# Generated by Django 3.1.8 on 2021-04-26 11:18
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('events', '0003_auto_20210426_0508'),
]
operations = [
migrations.RemoveField(
model_name='event',
name='registration',
... |
/**
* Copyright (c) 2008-2010 The Open Source Geospatial Foundation
*
* Published under the BSD license.
* See http://svn.geoext.org/core/trunk/geoext/license.txt for the full text
* of the license.
*/
/** api: (define)
* module = GeoExt.grid
* class = FeatureSelectionModel
* base_link = `Ext.grid.RowSele... |
/**
* Created by awayisblue on 2017/3/18.
*/
const sequelize = require('./sequelize')
const Sequelize = require('sequelize')
module.exports = sequelize.define('crMessageCursor', {
chatRoomId: {
type: Sequelize.INTEGER(11),
allowNull:false,
unique:'composite',
},
userId: {
... |
/*!
* OpenUI5
* (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides class sap.ui.core.util.ExportTypeCSV
sap.ui.define(['./ExportType'],
function(ExportType) {
'use strict';
// Matches CR, LF, double quote and common sep... |
//>>built
define("dijit/form/HorizontalRuleLabels", [
"dojo/_base/declare", // declare
"dojo/number", // number.format
"dojo/query", // query
"./HorizontalRule"
], function(declare, number, query, HorizontalRule){
/*=====
var HorizontalRule = dijit.form.HorizontalRule;
=====*/
// module:
// dijit/form/Horizonta... |
import game from 'assets/image/game.jpg';
import alpha from 'assets/image/alpha.png';
import raffle from 'assets/image/image.png';
import premia from 'assets/image/premia.jpg';
import premium from 'assets/image/premium.png';
import discount from 'assets/image/discount.jpg';
import { routes } from 'routes';
export con... |
const maxNonAdjacentSubsetSum = require("./maxNonAdjacentSubsetSum");
function logResult(value, expected) {
console.log(`${value === expected ? "SUCCESS" : "FAILURE"}, Output: ${value}`);
}
function main() {
console.log("maxNonAdjacentSubsetSums tests");
process.stdout.write("TEST 1: ");
const result... |
/* eslint-disable no-await-in-loop */
import $ from "jquery";
import { registerProcess } from "../../../main/processes";
import { exit, out, err } from "../../../web/webBackend";
import { PS1, PS2 } from "../constants/prompts";
import extractLarkTests from "./extractLarkTests";
export default class LarkClient {
con... |
/*
countUp.js
by @inorganik
*/
// target = id of html element or var of previously selected html element where counting occurs
// startVal = the value you want to begin at
// endVal = the value you want to arrive at
// decimals = number of decimal places, default 0
// duration = duration of animation in seco... |
'use strict';
import * as types from './actionTypes';
import Passage from '../lib/passage_client';
// TODO: Figure out a way to make the test suite know about our standard
// 'window.config' object. Or change the way these config params are passed
// in. Or change the way these components get at these supporting libr... |
#!/usr/bin/env python
# Copyright (c) 2015 IBM. 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 ... |
import React, { useState } from 'react';
import Grid from '@material-ui/core/Grid';
import Paper from '@material-ui/core/Paper';
import { makeStyles } from '@material-ui/core/styles'
import CardMedia from '@material-ui/core/CardMedia';
import Typography from '@material-ui/core/Typography';
import IconButton from '@mate... |
"use strict";
/**
* @packageDocumentation
* @module harmony-transaction
* @hidden
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.TransactionBase = void 0;
var tslib_1 = require("tslib");
var crypto_1 = require("@harmony-js/crypto");
var utils_1 = require("@harmony-js/utils");
var network_... |
let numbers = [5, 9, 3, 19, 70, 8, 100, 2, 35, 27];
for(let index=0;index<numbers.length;index++){
console.log(numbers[index]);
} |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const lodash_1 = require("../utils/lodash");
const util_1 = require("util");
const events_1 = require("events");
const Deque = require("denque");
const command_1 = require("../command");
const commander_1 = require("../commander");
const utils... |
import { useState, useEffect } from "react"
const useForm = (callback, validate) => {
const [values, setValues] = useState({})
const [errors, setErrors] = useState({})
const [target, setTarget] = useState({})
const [isSubmitting, setIsSubmitting] = useState(false)
useEffect(() => {
// Checks to make sure... |
'use strict';
// react
import React, { Component } from 'react';
import { StyleSheet, Dimensions, View, Text, Vibration } from 'react-native';
import { RNCamera } from 'react-native-camera';
export default class BarcodeScannerScreen extends React.Component {
static navigationOptions = {
title: 'Barcode Scanner... |
function handleSaveLayout()
{
var e = $(".demo").html();
if (e != window.demoHtml)
{
saveLayout();
window.demoHtml = e
}
}
function handleJsIds()
{
handleModalIds();
handleAccordionIds();
handleCarouselIds();
handleTabsIds()
}
function handleAccordionIds()
{
var e = $(".demo #myAccordion");
var t = random... |
import createMatrix from '../createMatrix';
import {unrollMatrixOperation} from '../compiler';
import {timesToString} from '../../../../utils';
/**
* Creates scale matrix
*
* @param {Number} w Output row/col matrix width
* @param {Number[]} vec
*
* @returns {Matrix}
*
* @example
* [sX, 0, 0, 0]
* [0, sY, 0... |
class ParserEnd(Exception):
pass
class Parser(object):
def __init__(self):
self._gen = None
self._expecting = None
self._buffer = []
self._closed = False
self.reset()
def reset(self):
self._gen = self.parse()
self._expecting = self._gen.next()
... |
from ms_cfbf import CFBF
from pdf import PDF
from ms_ooxml import OOXML
#from datetime import datetime
import inspect
import os
#import jarray
#import csv
#import time
from java.util.logging import Level
from java.io import File
from org.sleuthkit.datamodel import SleuthkitCase
from org.sleuthkit.datamodel import Abs... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may no... |
# -*- coding: utf-8 -*-
#
# 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
#... |
import React, { Fragment } from 'react'
// import Helmet from 'react-helmet'
import { stringify } from 'qs'
import { serialize } from 'dom-form-serializer'
import './Form.css'
class Form extends React.Component {
static defaultProps = {
name: 'Flyttstädning-Helsingborg',
subject: 'Flyttstädning-Helsingborg ... |
r"""
File required to relese on PyPI. More info here:
https://packaging.python.org/distributing/#packaging-your-project
To push a new release, assuming running on Windows:
1. Increment the `VERSION` below appropriately.
2. Delete old distributions:
del dist
3. Build the `source` and `wheel` distributions with:
... |
"use strict";
cc._RF.push(module, 'b13b4P0d89MAICksU5jaR59', 'shopNomalPanel');
// modules/public/script/shop/shopNomalPanel.js
"use strict";
var SHOPTYPE = {
BANK: 1,
ALIPAY: 2,
WECHAT: 3
}; //公司入款的支付类型
glGame.baseclass.extend({
properties: {
RowItem: cc.Node,
Rowcontent: cc.Node,
RechargeItem: ... |
import React, { Component } from 'react';
import { Text, View } from 'react-native';
import CalculatorButton from './Components/Calculator/CalculatorButton';
import OperationsButton from './Components/Calculator/OperationsButton';
import styles from './styles';
export class App extends Component {
static initialStat... |
const webpackConfig = require('./webpack.config.js');
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['jquery-3.2.1', 'jasmine'],
files: [
'src/*.js',
'spec/*spec.js'
],
webpack: webpackConfig,
exclude: [
],
preprocessors: {
'src/*.js': [... |
;(function()
{
// CommonJS
typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
function Brush()
{
// Contributed by Yegor Jbanov and David Bernard.
var keywords = 'val sealed case def true trait implicit forSome import match object null finally super ' +
'ov... |
//Core
import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
//Router
import router from 'router';
//Style
import styles from './MenuListItem.module.css';
const MenuListItem = ({ menuItem = {}, onAddToCart }) => {
const { id, title, price, url, category } = menuItem;
... |
export const colors = {
brand01: '#00c9c9', // Primary brand, Interactive text, Primary icon color, Border highlight, Emphasis background
brand02: '#00d2b4', // Supporting brand, brand01 hover
brand03: '#00b4a0', // Secondary brand, Loading
ui01: '##f9f9f9!important', // Primary background, Layer 1 background
... |
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../I... |
# -*- coding: utf-8 -*-
# Author: David Goodger
# Contact: goodger@users.sourceforge.net
# Revision: $Revision: 4229 $
# Date: $Date: 2005-12-23 00:46:16 +0100 (Fri, 23 Dec 2005) $
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, pleas... |
#
# OtterTune - test_views.py
#
# Copyright (c) 2017-18, Carnegie Mellon University Database Group
#
'''
Created on Dec 13, 2017
@author: dvanaken
'''
from django.contrib.auth import get_user
from django.core.urlresolvers import reverse
from django.test import TestCase
from .utils import (TEST_BASIC_SESSION_ID, TEST... |
import { ButtonReg } from "./general";
import imgLogin from "../images/joinus.jpg"
export default function FormCliente({
value,
actualizarInput,
manejarSubmit
}) {
return (
<div className="row" style={{height:'calc(100vh - 60px)'}}>
<div className="col-sm-10 col-md-4" style={{ height:... |
console.log('hello from background script');
var response_dict = {}
var params = {
active : true,
currentWindow: true
}
$('#generate_form_fields').on('click', (event)=>{
$('#generate_form_fields').html('fetching the form fields ...')
console.log('clicked on generate_form_fields')
// querying... |
/**
* node-analytics app route
*
*/
var express = require('express');
var config = require('config');
var appRoot = require('app-root-path');
var router = express.Router();
/**
* entry point route for node-analytics
*/
router.get('/na-node-history-analytics', function (req, res, next){
res.render('node-ana... |
import React from 'react'
import { Link, graphql, useStaticQuery } from 'gatsby'
import headerStyles from './header.module.scss'
const Header = () => {
const data = useStaticQuery(graphql`
query {
site {
siteMetadata {
title
}
}
}
`)
return (
<div>
<header... |
import React, { useContext, useEffect } from 'react';
import { Link } from 'react-router-dom';
import switchOn from '../../audio/switch-on.mp3';
import { useDarkMode } from '../../hooks/useDarkMode';
// Context
import AuthContext from '../../context/auth/authContext';
const Navigation = () => {
const authContext = ... |
'use strict';
/**
* @name keta.directives.Sidebar
* @author Marco Lehmann <marco.lehmann@kiwigrid.com>
* @copyright Kiwigrid GmbH 2014-2015
* @module keta.directives.Sidebar
* @description
* <p>
* Sidebar with expand/fold functionality, configurable position and toggle area label.
* </p>
* @example
* <d... |
/**
* @license Apache-2.0
*
* Copyright (c) 2020 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... |
import taichi as ti
import matplotlib.pyplot as plt
ti.set_gdb_trigger(True)
N = 2048
x, y = ti.var(ti.f32), ti.var(ti.f32)
@ti.layout
def xy():
ti.root.dense(ti.i, N).place(x, x.grad, y, y.grad)
@ti.kernel
def poly():
for i in x:
v = x[i]
ret = 0.0
guard = 0.2
if v < -guard or v > guard:
... |
import path from 'path'
const markupRow = require('components/snippets/components/markup-row').default
const indentString = require('indent-string')
const filename = __filename.replace(/\\/g, '/')
const dirs = path.dirname(filename).split('/')
export const demo = {
name: path.basename(filename, '.js'),
dirs: dirs,... |
/*
* Ext JS Library 2.0
* Copyright(c) 2006-2007, Ext JS, LLC.
* licensing@extjs.com
*
* http://extjs.com/license
*/
// private
// This is a support class used internally by the Grid components
Ext.grid.HeaderDragZone = function(grid, hd, hd2){
this.grid = grid;
this.view = grid.getView();
... |
#!/usr/bin/env python
# coding: utf-8
import csv
import importlib
import io
import os
import tempfile
from textwrap import dedent as twdd
import unittest
import clark_biom as cb
def prep_clark_input(data):
cdr = csv.DictReader(data, fieldnames=cb.field_names, delimiter=",")
return [entry for entry in cdr][1:... |
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.rrule=e():t.rrule=e()}("undefined"!=typeof self?self:this,function(){return r={},i.m=n=[function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.len... |
/* Modernizr 2.8.3 (Custom Build) | MIT & BSD
* Build: //modernizr.com/download/#-fontface-backgroundsize-borderimage-borderradius-boxshadow-flexbox-hsla-multiplebgs-opacity-rgba-textshadow-cssanimations-csscolumns-generatedcontent-cssgradients-cssreflections-csstransforms-csstransforms3d-csstransitions-applicationcac... |
$("#contactForm").validator().on("submit", function (event) {
if (event.isDefaultPrevented()) {
// handle the invalid form...
formError();
submitMSG(false, "Did you fill in the form properly?");
} else {
// everything looks good!
event.preventDefault();
submitForm... |
import random
# Scrapy settings for xjtu_news project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org/en/latest/topics/downl... |
#!/usr/bin/python3
"""Generate a class containing all resources from a given directory.
Usage:
makeresfile [-v --verbose] <directory> [--ext=<ext>] [-o --output=<output>]
makeresfile -h | --help
makeresfile --version
Arguments:
<directory> Directory containing your resources.
Options:
... |
# exported from PySB model 'model'
from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD
Model()
Monomer('C6A', ['C8pro'])
Monomer('BaxA', ['BaxM', 'BaxA_1', 'BaxA_2', 'SmacM'])
Monomer('Ligand', ['Receptor'])
Monomer('C6pro', ['C3A'])
Monome... |
angular.module('app')
.directive('uiButterbar', function ($rootScope, $anchorScroll) {
return {
restrict: 'AC',
template: '<span class="bar"></span>',
link: function (scope, el, attrs) {
el.addClass('butterbar hide');
scope.$on('$stateChang... |
/**
* Created by pc on 2020/4/3.
*/
/*!
* VERSION: 1.13.1
* DATE: 2014-07-22
* UPDATES AND DOCS AT: http://www.greensock.com
*
* @license Copyright (c) 2008-2014, GreenSock. All rights reserved.
* This work is subject to the terms at http://www.greensock.com/terms_of_use.html or for
* Club GreenSock members, t... |
const { expect } = require('chai');
const { deploy, writeDepositPubdata } = require('./utils');
const {parseEther} = require("ethers/lib/utils");
describe('ZkLink exodus unit tests', function () {
let deployedInfo;
let zkLink, periphery, verifier, ethId, token2, token2Id, token3, token3Id, defaultSender, alice... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ImageRotateRightIcon = void 0;
var _extends2 = _interop... |
/**
* External dependencies
*/
import classnames from 'classnames';
/**
* WordPress dependencies
*/
const { __ } = wp.i18n;
const { registerBlockType } = wp.blocks;
const {
ColorPalette,
InnerBlocks,
InspectorControls,
MediaPlaceholder
} = wp.blockEditor || wp.editor;
const {
Button,
ToggleControl,
Sele... |
const namingConventionOptions = ['error',
// Default format for all selectors - camelCase
{
selector: 'default',
format: ['camelCase'],
},
// Variables (rule also includes function variables such as React function components)
{
selector: 'variable',
format: ['camelCase', 'UPPER_CASE', 'Pascal... |
import "./bootstrap";
import "./bootstrap.less";
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{568:function(t,e,r){"use strict";r.r(e);var n={props:{text:{default:""},ctas:{default:function(){return[]},type:Array}},watch:{$props:{deep:!0,handler:function(t){this.props=JSON.parse(JSON.stringify(t))}}},data:function(){return{props:JSON.parse(JSON.stringify(... |
/**
* Test sagas
*/
/* eslint-disable redux-saga/yield-effects */
// import { take, call, put, select } from 'redux-saga/effects';
// import allNoticeSaga from '../saga';
// const generator = allNoticeSaga();
describe('allNoticeSaga Saga', () => {
it('Expect to have unit tests specified', () => {
expect(true... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-bc200b94"],{"1c4c":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:["step-item",t.link?"linkable":null],on:{click:t.go}},[a("span",{style:t.titleStyle},[t._v(t._s(t.title))]),t.icon?a("a-i... |
import {
ORDER_CREATE_FAIL,
ORDER_CREATE_REQUEST,
ORDER_CREATE_RESET,
ORDER_CREATE_SUCCESS,
ORDER_DETAILS_FAIL,
ORDER_DETAILS_REQUEST,
ORDER_DETAILS_SUCCESS
} from "../constants/orderConstants";
export const orderCreateReducer = ( state = {}, action ) => {
switch (action.type) ... |
var isFunction = require('./isFunction.js');
var isArray = require('./isArray.js');
var _deepGet = require('./_deepGet.js');
var restArguments = require('./restArguments.js');
var map = require('./map.js');
// Invoke a method (with arguments) on every item in a collection.
var invoke = restArguments(function(obj, path... |
import React , { useState, useEffect} from 'react'
import { useHistory } from 'react-router-dom';
import "bootstrap/dist/css/bootstrap.min.css";
import Dropdown from "react-bootstrap/Dropdown";
import DropdownButton from "react-bootstrap/DropdownButton";
import ButtonGroup from "react-bootstrap/ButtonGroup";
import axi... |
import test from 'ava'
import {flatten} from '../src'
test('flattens an array of arrays', t => {
const original = [[1, 2], 3, [4, 5]]
const expected = [1, 2, 3, 4, 5]
const actual = flatten(original)
t.deepEqual(actual, expected)
})
test('flattens multiple arrays', t => {
const original1 = [[1, 2], 3, [4, 5... |
# Janssen Project software is available under the Apache License (2004). See http://www.apache.org/licenses/ for full text.
# Copyright (c) 2020, Janssen Project
#
# Author: Jose Gonzalez
# Author: Yuriy Movchan
# Author: Christian Eland
#
from io.jans.jsf2.service import FacesService
from io.jans.jsf2.message import ... |
# # Unity ML-Agents Toolkit
# ## ML-Agent Learning (PPO)
# Contains an implementation of PPO as described in: https://arxiv.org/abs/1707.06347
import logging
from collections import defaultdict
import numpy as np
from mlagents.trainers.policy.nn_policy import NNPolicy
from mlagents.trainers.trainer.rl_trainer import... |
var index = {
isFristLoad: true,
todayPower: '',//今日发电
powerArrayLen: '',//发电趋势数组长度
powerType: '',//发电趋势类型 //日 月 年
fault_totalNum: '',//故障总数
fault_waitNum: '',//故障处理数量
work_totalNum: '',//工单总数
work_waitNum: '',//工单处理数量
powerunit: '',
powerunit2: '',
powerunit3: ''... |
#!/usr/bin/env python
import sys
import pathlib
from setuptools import setup, find_namespace_packages
if sys.version_info < (3, 7):
print("Error: Soda SQL requires at least Python 3.7")
print("Error: Please upgrade your Python version to 3.7 or later")
sys.exit(1)
package_name = "soda-sql-core"
# Managed ... |
const axios = require("axios");
const BASE_URL = "https://api.daily.co/v1/";
const API_AUTH = process.env.DAILY_API_KEY;
// create an axios instance that includes the BASE_URL and your auth token
// this may be useful to put in an external file to it can be referenced
// elsewhere once your application grows
const ap... |
(function (app, $, undefined) {
"use strict";
var start = new Date(2013, 0, 1),
end = new Date(2013, 11, 31),
range = [0, 1200],
time = d3.time.scale().domain([start, end])
.rangeRound(range),
max = 12,
data = [];
for (var i = 0; i < max; ++i){
va... |