text stringlengths 3 1.05M |
|---|
# Copyright (c) 2021 Qualcomm Technologies, Inc.
# All Rights Reserved.
from quantization.adaround.adaround import apply_adaround_to_layer
from quantization.adaround.utils import (
AdaRoundInitMode,
AdaRoundMode,
AdaRoundActQuantMode,
AdaRoundLossType,
AdaRoundTempDecayType,
)
|
(function(root,factory){if(typeof exports==="object"&&exports){factory(exports);}else{var mustache={};factory(mustache);if(typeof define==="function"&&define.amd){define(mustache);}else{root.Mustache=mustache;}}}(this,function(mustache){var whiteRe=/\s*/;var spaceRe=/\s+/;var nonSpaceRe=/\S/;var eqRe=/\s*=/;var curlyRe... |
from typing import Dict, Optional
from sharpy.managers.combat2 import MicroStep, Action, MoveType
from sc2 import UnitTypeId, AbilityId
from sc2.ids.buff_id import BuffId
from sc2.position import Point2
from sc2.unit import Unit
from sc2.units import Units
GRAVITON_BEAM_ENERGY = 50
class MicroPhoenixes(MicroStep):
... |
import { h } from 'omi';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(h("path", {
d: "M20 18v-1c1.1 0 1.99-.9 1.99-2L22 5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2v1H0v2h24v-2h-4zM4 5h16v10H4V5z"
}), 'LaptopWindows'); |
import { ErrorFactory, contains, deepExtend, createSubscribe, isBrowser } from '@firebase/util';
import { __assign } from 'tslib';
import { Component } from '@firebase/component';
import * as modularAPIs from '@firebase/app';
import { deleteApp, _addComponent, _addOrOverwriteComponent, _DEFAULT_ENTRY_NAME, registerVers... |
/*##############################################################################
# HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems.
#
# 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 Lice... |
(function(root) {
var toString = Function.prototype.toString;
function fnBody(fn) {
return toString.call(fn).replace(/^[^{]*{\s*/,'').replace(/\s*}[^}]*$/,'');
}
function isClass(fn) {
return (typeof fn === 'function' &&
(/^class(?:\s|{)/.test(toString.call(fn)) ||
(/^.*class... |
/**
* @license Copyright (c) 2003-2022, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/* globals ClassicEditor, console, window, document */
import { CS_CONFIG } from '@ckeditor/ckeditor5-cloud-services/tests/_utils/cloud-se... |
import React from "react"
import styled from "styled-components"
import { Link } from "gatsby"
const FooterContainer = styled.div`
display: flex;
align-items: center;
justify-content: center;
margin-top: 70px;
font-weight: 700;
font-size: 16px;
@media (min-width: 600px) {
height: 100px;
}
`
cons... |
/*
Copyright 2019 Gravitational, 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 agreed to in writing, soft... |
#!/usr/bin/env python
import io
import os
import sys
from setuptools import find_packages, setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
os.system('python setup.py bdist_wheel upload')
sys.exit()
readme = io.open('README.rst', 'r', encoding='utf-8').read()
setup(
na... |
(function() { const icons = { "material/editor/format-bold": "M31.2 21.58c1.93-1.35 3.3-3.53 3.3-5.58 0-4.51-3.49-8-8-8H14v28h14.08c4.19 0 7.42-3.4 7.42-7.58 0-3.04-1.73-5.63-4.3-6.84zM20 13h6c1.66 0 3 1.34 3 3s-1.34 3-3 3h-6v-6zm7 18h-7v-6h7c1.66 0 3 1.34 3 3s-1.34 3-3 3z" };
if (JSC) {
JSC.internal.registerIcons(ico... |
"""
Django settings for purnkleen project.
Generated by 'django-admin startproject' using Django 1.11.7.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import ... |
from imutils.perspective import four_point_transform
import cv2
import numpy as np
import argparse
import imutils
ap = argparse.ArgumentParser()
ap.add_argument("-i", "--image", required = True,
help = "Path to the image to be scanned")
args = vars(ap.parse_args())
# Load image, grayscale, Gaussian blur, Otsu's thre... |
import Axios from 'axios';
import config from 'config';
const axios = Axios.create({
baseURL: config.api.baseURL,
timeout: config.api.timeout
});
async function wrapError(asyncFunc, ...args) {
try {
const response = await asyncFunc(...args);
// check for server success indication or colle... |
Meteor.startup(function () {
// code to run on server at startup
//UXLab.data.devices.insert({name: "testi-ipad", deviceid: "q3hv7gnoifyhi", live: true});
});
Meteor.methods({
createDevice:function(_deviceid){
UXLab.data.devices.insert({name: "unknown", deviceid: _deviceid, running: 0, description: "Unknown... |
import tensorflow as tf
import numpy as np
from models import num_of_classes
if tf.__version__ == '1.13.1' or tf.__version__ == '1.15.0':
from keras.layers.merge import concatenate
from keras.layers import Activation
import keras.backend as K
if tf.__version__ == '2.2.0' or tf.__version__ == '2.0.0' or tf.... |
import unittest
from importlib import resources
from . import data01
from .resources import util
class ContentsTests:
expected = {
'__init__.py',
'binary.file',
'subdirectory',
'utf-16.file',
'utf-8.file',
}
def test_contents(self):
with util.suppress_know... |
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads_v1/proto/enums/criterion_category_channel_availability_mode.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf im... |
import random
from sqlalchemy import exc
from sqlalchemy.sql import func
from flask import url_for, request, jsonify, Blueprint, current_app
from src import db
from src.lib import urlsafe_base64
from src.lib.auth import authenticate
from src.blueprints.errors import server_error, bad_request, \
not_found, error_re... |
const model = require('../../models-modular/categories/categories.js');
const supergoose = require('../supergoose.js');
describe('Categories Model (Modular)', () => {
// How will you handle both the happy path and edge cases in these tests?
it('can create() a new category', () => {
let test = { name : 'tes... |
import {NameModel} from "../name.model.js";
class ShipSeasonalCgTypeModel {
constructor({time, name, id} = {time: {}}) {
this.id = id;
this.name = NameModel.build(name);
this.time = {};
if (time) {
this.time.ja_jp = time.ja_jp || '';
this.time.en_us = time.en... |
import _ from 'underscore';
import doctrine from 'doctrine-standalone';
import replaceSynonyms from './synonymService';
/**
* Parse the JSDoc and turn them into pretty object, if received a "final-form" object - we will just pass it
* @param {Object} libraryDocs mapping between component name
*/
export function p... |
/**
* Originally copied from https://github.com/cucumber/bool/tree/master/javascript
* and modified for this project needs.
*
* A node visitor to traverse and process AST. This is mainly used to test
* validity of expressions and TOKEN_VARs visited.
*/
if(typeof LForms === 'undefined') {
window.LForms = {};
}
... |
#!/usr/bin/env python
"""The setup script."""
from setuptools import setup, find_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = []
test_requirements = ['pytest>=3']
{%- set license_classif... |
import React from "react"
// import '../assets/scss/components/product-hero.module.scss'
import { graphql } from 'gatsby';
import Layout from "../components/layout"
import SearchResult from "../components/search-results"
import SEO from '../components/seo';
const products = ({ data, nodeType }) => (
<Layout m... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""A class representing a window for displaying one or more stimuli"""
# Part of the PsychoPy library
# Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2021 Open Science Tools Ltd.
# Distributed under the terms of the GNU General Public License (GPL).
from __future__ im... |
/**
* Defines standardized shims for the intrinsic `Object`.
* @see {external:Object}
* @module montage/core/shim/object
*/
/**
* @external Object
*/
/**
* Creates a new object that inherits prototypically directly from a given
* prototype, optionally defining some properties.
* @function extern... |
export const handler = async () => {
return {
statusCode: 200,
headers: {
'Content-Type': 'text/html; charset=utf-8',
},
body: `<p>Hello world!</p>`,
};
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIi... |
import React from "react";
import { connect } from "react-redux";
import PropTypes from "prop-types";
import styled, { css } from "styled-components";
import AsideSlider from "components/AsideSlider";
import useClearTimeout from "utils/hooks/useClearTimeout";
import {
showModal,
closeModal,
closeMenu,
showCh... |
import Dropdown from '../../../../Dropdown';
const DropdownTests = [
<Dropdown title="Select your option">{['Option 1', 'Option 2', 'Option 3']}</Dropdown>,
<Dropdown defaultSelected={1}>{['Option 1', 'Option 2', 'Option 3']}</Dropdown>,
<Dropdown disabled title="Select your option">{['Option 1', 'Option 2', 'Optio... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OpnizServer = void 0;
var OpnizServer_1 = require("./OpnizServer");
Object.defineProperty(exports, "OpnizServer", { enumerable: true, get: function () { return OpnizServer_1.OpnizServer; } });
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{"0SW5":function(e,t,a){"use strict";var n=a("q1tI"),l=a.n(n),o=a("bHgC"),r=a.n(o);t.a=function(){var e=Object(n.useState)(""),t=e[0],a=e[1],o=Object(n.useState)(""),i=o[0],s=o[1],m=Object(n.useState)(""),u=m[0],c=m[1],d=Object(n.useState)(""),p=d[0],h=d[1];retur... |
/*
* HomePage Messages
*
* This contains all the text for the HomePage container.
*/
import { defineMessages } from 'react-intl';
export const scope = 'app.component.Header';
export default defineMessages({
header: {
id: `${scope}.header`,
defaultMessage: 'Demo-react',
},
home: {
id: `${scope}.h... |
import os
import random
import string
import sys
import time
from collections import defaultdict
from contextlib import contextmanager
import pendulum
import pytest
from dagster import Any, Field, daily_partitioned_config, graph, pipeline, repository, solid
from dagster.core.definitions import Partition, PartitionSetD... |
(this.webpackJsonpenterprise=this.webpackJsonpenterprise||[]).push([[15],{108:function(t,r,n){"use strict";n.r(r),n.d(r,"ion_card",(function(){return d})),n.d(r,"ion_card_content",(function(){return l})),n.d(r,"ion_card_header",(function(){return p})),n.d(r,"ion_card_subtitle",(function(){return g})),n.d(r,"ion_card_ti... |
import React from "react"
import { graphql } from "gatsby"
import Layout from "../components/layout"
import SEO from "../components/seo"
export default ({ data }) => {
const post = data.markdownRemark
return (
<Layout>
<SEO title={post.frontmatter.title} description={post.excerpt} />
<div>
... |
const ws = require('./../ws');
const ready = require('./../ready');
const timing = require('./../timing');
// TODO: Salakar: all of this will go in first release
// TODO: Salakar: jet global will provide it's own methods that internally call these
let detox;
try {
// eslint-disable-next-line global-require
detox ... |
from torch_ac.algos import A2CAlgo, PPOAlgo, MultiQAlgo, WeightedPPOAlgo
from torch_ac.model import ACModel, RecurrentACModel
from torch_ac.utils import DictList |
/*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: MIT-0
*/
const AWS = require('aws-sdk')
AWS.config.region = process.env.AWS_REGION || 'us-east-1'
const eventbridge = new AWS.EventBridge()
exports.handler = async (event) => {
console.log(JSON.stringify(event, 0, n... |
import functools
import random
import string
import unittest
import msgpack
import mock
import responses
from ably.http.http import Http
class BaseTestCase(unittest.TestCase):
def responses_add_empty_msg_pack(self, url, method=responses.GET):
responses.add(responses.GET, url, body=msgpack.packb({}),
... |
import { graphql } from "gatsby"
import { arrayOf, bool, shape, string, object} from "prop-types"
export const ProfileType = {
name: string.isRequired,
profession: string.isRequired,
relocation: bool.isRequired,
about: string.isRequired,
location: string.isRequied,
workingOn: string.isRequired... |
import RecordingField from '../../recordingfield'
import OptionsField from '../../optionsfield'
import SpeakField from '../../speakfield'
import PropTypes from 'prop-types'
import { Form } from '@admin'
import React from 'react'
import _ from 'lodash'
class Menu extends React.PureComponent {
static propTypes = {
... |
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.backends import cudnn
cudnn.benchmark = True
import os
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
class LossFunctions:
def __init__(self, num_classes):
super(LossFunctions, self).__init__()
self.num_classes = int(num_class... |
# qubit number=4
# total number=10
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(1) # number=2
pr... |
'''
copy from mmaction2
https://github.com/open-mmlab/mmaction2
'''
import argparse
import glob
import os
import os.path as osp
import sys
import warnings
from multiprocessing import Pool
import mmcv
import numpy as np
img_process_fn = None
'''def img_process_fn(img):
H,W,_ = img.shape
return img[:,W//2:]'''
... |
const fs = require('fs');
const path = require('path');
const yaml = require('js-yaml');
const NavigationPlugin = require('@11ty/eleventy-navigation');
const filters = require('./utils/filters');
const markdown = require('./utils/markdown');
const shortcodes = require('./utils/shortcodes');
const transforms = require(... |
# 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... |
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.org/docs/gatsby-config/
*/
module.exports = {
/* Your site config here */
siteMetadata: require("./site-meta-data.json"),
plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
name: `markdown-pages`,... |
import {$, apply, isString, mergeOptions, toNode} from 'uikit-util';
export default function (UIkit) {
const DATA = UIkit.data;
UIkit.use = function (plugin) {
if (plugin.installed) {
return;
}
plugin.call(null, this);
plugin.installed = true;
return thi... |
import React from 'react';
import { storiesOf } from '@storybook/react';
import { withKnobs, text } from '@storybook/addon-knobs';
import Theme from '@quarkly/theme';
import getKnobs from './knobs';
import Wrapper from '../../modules/wrapper';
import U from './index';
const stories = storiesOf('Wysiwyg/Underline', mo... |
function do_submit(flg, kind, product_id)
{
if( flg == 1 ) {
if( kind == 'add' ) {
$('#frm_product_confirm').prop('action', SITE_URL + 'admin/product/add');
}
else {
$('#frm_product_confirm').prop('action', SITE_URL + 'admin/product/modify/' + product_id);
}
}
else {
$('#frm_product_confirm').prop('a... |
from __future__ import absolute_import
from __future__ import print_function
import sys
import os
# the next line can be removed after installation
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))))
from veriloggen import *
import ve... |
import * as React from "react"
import { Container, Jumbotron, Carousel, Col, Row, Card } from "react-bootstrap"
import { useEffect, useState } from "react"
import { GatsbyImage } from "gatsby-plugin-image"
import Layout from "../../components/Layout/Layout.js"
import Seo from "../../components/seo"
import { graphql }... |
import passport from 'passport';
module.exports = passport.authenticate('jwt', {
session: false
}); |
'''
v.0.0.9
LDSReplicate - LDSDataStore_Test
Copyright 2011 Crown copyright (c)
Land Information New Zealand and the New Zealand Government.
All rights reserved
This program is released under the terms of the new BSD license. See the
LICENSE file for more information.
Tests for command line URLs
Created on 03/10... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
const { expect } = require('chai');
const csvParse = require('../../../../src/data/import/parse/csvParser');
const StreamTest = require('streamtest');
describe('CSV Parser', function(){
const importFilePath = __dirname + '/files/data.csv';
it('should parse the file', function(done){
const outStream = Stream... |
import React from 'react';
import ReactDOM from 'react-dom';
import App from './containers/App'
ReactDOM.render(<App /> , document.getElementById('app')); |
import styled from '@emotion/styled'
import { FormHelperText as ChakraFormHelperText } from '@chakra-ui/core'
export const FormHelperText = styled(ChakraFormHelperText)()
FormHelperText.defaultProps = {
as: 'p',
mt: 1,
mb: 0,
fontSize: 'md',
color: 'black',
fontFamily: 'body',
lineHeight: 1.25,
maxW: ... |
#!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... |
import { shell } from 'electron'
import isElectronRenderer from 'is-electron-renderer'
export default function electronBrowserLink(url) {
if (isElectronRenderer) {
shell.openExternal(url)
} else {
window.location.href = url
}
}
|
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { PanelHeader } from './panel_header';
import { PanelOptionsMenuContainer } from './panel_options_menu_container';
import { PanelMaximizeIcon } from './panel_maximize_icon';
import { PanelMinimizeIcon } from '.... |
export default {
params: {
w: { // width in meters
type: 'number',
defaultValue: 0.6,
optional: false,
min: 0.01 // 1cm
},
h: { // height in meters
type: 'number',
defaultValue: 2.4,
optional: false,
min: 0.01 // 1cm
},
l: { // length in meters
... |
import execa from 'execa'
import { getPaths } from 'src/lib'
export const command = 'lint'
export const desc = 'Lint your files.'
export const builder = {
fix: { type: 'boolean', default: false },
}
export const handler = ({ fix }) => {
execa('yarn eslint', [fix && '--fix', 'web/src', 'api/src'].filter(Boolean),... |
'use strict'
const Datastore = require('nedb')
const tickers = new Datastore({
filename: 'tickers.db',
autoload: true
})
function find(query) {
return new Promise((resolve, reject) => {
tickers.find(query, (err, docs) => {
if (err) reject(err)
resolve(docs)
})
})
}
function findByPair(pair) {
return fi... |
(function() {
"use strict";
angular
.module('insurance-app.core', ['ui.router','smoothScroll','ui.bootstrap']);
})();
|
import Vue from 'vue';
import Vuex from 'vuex';
Vue.use(Vuex);
import * as mutations from './mutations';
import * as actions from './actions';
const store = new Vuex.Store({
state: {
navStatus: false,
scrollPos: {
list: 0,
cream: 0,
issue: 0
},
navList: [{
name: '推荐',
r... |
import Router from "express";
import {
updateUser,
deleteUser,
getUser,
getList,
getStats,
} from "../controllers/users.js";
import { verifyToken } from "../utils/jwt.js";
const router = Router();
// GET
router.get("/find", getUser);
router.get("/", verifyToken, getList);
router.get("/stats", verifyToken, g... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '@theme/Layout';
import useDocusaurusContext from '@docusaurus/useDocusaurusContex... |
# -*- coding: utf-8 -*-
#
# Copyright (C) 2019 Chris Caron <lead2gold@gmail.com>
# All rights reserved.
#
# This code is licensed under the MIT License.
#
# 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 th... |
from numpy import cos
from numpy.random import randint
from OpenGL.GL import *
from data.mydata import d
import lib.basic_shapes as bs
import lib.easy_shaders as es
import lib.scene_graph as sg
import lib.transformations as tr
class Apple():
def __init__(self):
gpu_stem = es.toGPUShape(bs.cr... |
/* jslint node: true, esversion: 6 */
"use strict";
const express = require("express");
const path = require("path");
const bodyParser = require("body-parser");
const minimist = require("minimist");
var config = {
"firmware": "-",
"protocol": "-",
"espflash": 4194304,
"version": "DEMO",
"diodet": 0,
"gf... |
// json2.js
// 2017-06-12
// Public Domain.
const rx_one = /^[\],:{}\s]*$/
const rx_two = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g
const rx_three = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g
const rx_four = /(?:^|:|,)(?:\s*\[)+/g
const rx_escapable = /[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getAlerts = getAlerts;
exports.getLatestAlert = getLatestAlert;
exports.getLatestErrorAlert = exports.getLatestDeveloperAlert = exports.getLatestNotificationAlert = void 0;
require("core-js/modules/es6.array.find");
var _reselect ... |
import {
VALID_ANNOTATION_FILES_ARRAY, IMAGE_FILES_OBJECT, IMAGE_FILE_INDICATOR,
ONE_ANNOTATION_FILE_ALLOWED_ERROR_MESSAGE, ACTIVE_ANNOTATION_FILE, ANNOTATION_FILE_INDICATOR,
} from '../../../../consts.js';
import {
insertRowToImagesTable, enableFinishButton,
disableFinishButton, changeAllImagesTableRowsToDefau... |
var router = require('express').Router();
router.use('/', require('./users'))
router.use('/articles', require('./articles'))
router.use('/collections', require('./collections'))
router.use('/about', require('./about'))
router.use(function(err, req, res, next){
if(err.name === 'ValidationError'){
return res.stat... |
/*
* @Author: zsj
* @Date: 2018-02-12 15:58:08
* @Last Modified by: wangweixin
* @Last Modified time: 2019-04-10 14:22:09
*/
import React, { Component } from "react";
import { any } from "prop-types";
import classNames from "classnames";
/**
* 页面头部标题
*/
class PageTitle extends Component {
render() {
con... |
define([
], function(
) {
return {
"NAME": "tool"
};
});
|
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.cyrToLatTransl... |
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var iconHelpers = require('@carbon/icon-helpers');
var PropTypes = _interopDefault(require('prop-types'));
var React = _interopDefault(require('react'));
function _typeof(obj) { if (typeof... |
/*!
* jQuery JavaScript Library v1.12.4
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2016-05-20T17:17Z
*/
(function( global, factory ) {
if ( typeof module =... |
module.exports = {
serverSchema: require('./server.schema')
}
|
/***
* The main menu wrapper which takes your project as a child
* @patr -- patrick@quantfive.org
*/
import React from 'react';
// Components
import Nav from './components/Nav';
// NPM Modules
import { StyleSheet, css } from 'aphrodite/no-important';
export default class Menu extends React.Component {
/***
... |
(function(a) {
a.fn.smartWizard = function(m) {
var c = a.extend({}, a.fn.smartWizard.defaults, m),
x = arguments;
return this.each(function() {
function C() {
var e = b.children("div");
b.children("ul").addClass("anchor");
... |
var transform = require('sdp-transform');
exports.write = function(session, opts) {
if (typeof session !== 'undefined' &&
typeof session.media !== 'undefined' &&
Array.isArray(session.media)) {
session.media.forEach(function (mLine) {
// expand sources to ssrcs
if ... |
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
from __future__ import division # Standardmäßig float division - Ganzzahldivision kann man explizit mit '//' durchführen
from __future__ import absolute_import
from pyecs import *
# from pyecs.components import *
from time import time
class Selectable(Component):
... |
const Base = require('./base.js');
const Sequelize = require('sequelize');
const mapper = require('object-mapper');
module.exports = class Member extends Base {
constructor(githubClient, databaseClient) {
super(githubClient, databaseClient);
this.schema = {
id: {
type: Sequelize.BIGINT,
... |
import Ember from 'ember';
const {Mixin} = Ember;
export default Mixin.create({
/**
* Get Value
*
* Get the full contents of the textarea
*
* @returns {String}
*/
getValue() {
return this.$().val();
},
/**
* Get Selection
*
* Return the currently s... |
var Employee = require("./Employee.js")
class Manager extends Employee {
constructor (name, id, email, officeNumber){
super(name,id,email)
this.officeNumber = officeNumber;
}
getRole(){
return "Manager"
}
getOfficeNumber(){
return this.officeNumber
}
}
module.exp... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @param {?} target
* @param {?} prop
* @return {?}
*/
export default function locale(target, prop) {
/** @type {?} */
var validLocales = ['en', ... |
import logging
import pytest
import salt.modules.etcd_mod as etcd_mod
import salt.states.etcd_mod as etcd_state
from salt.utils.etcd_util import get_conn
from tests.support.pytest.etcd import * # pylint: disable=wildcard-import,unused-wildcard-import
docker = pytest.importorskip("docker")
log = logging.getLogger(__... |
(function($) {
$(document).ready(function() {
$('.modal-backdrop').remove();
/*********************
* Category Insert *
*********************/
$(document).on('submit', 'form#category_form', function(event) {
event.preventDefault();
$('#... |
import requests
r = requests.get('http://webconcepts.info/concepts/http-status-code.json')
json = r.json()
template = "response-template.html"
for i in json["values"]:
with open(template) as f:
content = f.read()
new_content = content
error_code = int(i["value"])
#print("Error Cod... |
"""Apps for DBBackup"""
from django.apps import AppConfig
from django.utils.translation import gettext_lazy
from dbbackup import log
class DbbackupConfig(AppConfig):
"""
Config for DBBackup application.
"""
name = 'dbbackup'
label = 'dbbackup'
verbose_name = gettext_lazy('Backup and restore'... |
/*
* testlistfmtasync.js - test the list formatter object
*
* Copyright © 2018, JEDLSoft
*
* 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/LICENS... |
/* config-overrides.js */
const path = require("path");
const ModuleScopePlugin = require("react-dev-utils/ModuleScopePlugin");
module.exports = {
// The function to use to create a webpack dev server configuration when running the development
// server with 'npm run start' or 'yarn start'.
// Example: set the d... |
#
# Copyright (c) 2019, Neptune Labs Sp. z o.o.
#
# 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... |
!function(i,c){var r,a,l="createElement",g="getElementsByTagName",b="length",E="style",s="title",h="undefined",k="setAttribute",w="getAttribute",x=null,y="__svgInject",A="--inject-",C=new RegExp(A+"\\d+","g"),S="LOAD_FAIL",t="SVG_NOT_SUPPORTED",I="SVG_INVALID",d=["src","alt","onload","onerror"],L=c[l]("a"),j=typeof SVG... |
/**
* @name views.customizePlayer
* @namespace Create a new custom player or customize an existing one.
*/
define(["dao", "globals", "ui", "core/finances", "core/league", "core/player", "core/team", "lib/faces", "lib/knockout", "lib/knockout.mapping", "util/bbgmView", "util/helpers"], function (dao, g, ui, finances,... |