text stringlengths 3 1.05M |
|---|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.messages = exports.ruleName = undefined;
exports.default = function (expectation) {
var checker = (0, _utils.whitespaceChecker)("space", expectation, messages);
return function (root, result) {
var validOptions = (0, _utils... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# EXTRA CREDIT:
#
# Create a program that will play the Greed Game.
# Rules for the game are in GREED_RULES.TXT.
#
# You already have a DiceSet class and score function you can use.
# Write a player class and a Game class to complete the project. This
# is a free form ass... |
// This file was automatically generated. Do not modify.
'use strict';
goog.provide('Blockly.Msg.oc');
goog.require('Blockly.Msg');
Blockly.Msg.ABOUT = "about"; // untranslated
Blockly.Msg.ACCELERATION_TOOLTIP = "Get the acceleration value in milli-gravitys."; // untranslated
Blockly.Msg.ACCELEROMETER_ROTATION_T... |
'use strict'
module.exports = (sequelize, DataTypes) => {
var Todo = sequelize.define('Todo', {
title: {
type: DataTypes.STRING,
allowNull: false
},
completed: {
type: DataTypes.BOOLEAN,
defaultValue: false
}
})
return Todo
} |
import sys
from MI_Classes import EnsemblesPredictions
# Options
regenerate_models = False # False = Only compute ensemble model if it was not already computed
# Default parameters
if len(sys.argv) != 3:
print('WRONG NUMBER OF INPUT PARAMETERS! RUNNING WITH DEFAULT SETTINGS!\n')
sys.argv = ['']
sys.argv.... |
import os
import sys
import json
import re
import string
from functools import reduce
from tqdm import tqdm
from nltk import pos_tag
from linguistics_utils import get_tokens
causal_words = "because why therefore cause reason as since due owing consequence consequent consequently thus hence account".split()
def main... |
'use strict';
App.factory('IPageState', function() {
return function(pagePointer) {
this.getPointer = function() {
return pagePointer;
};
};
}); |
import React from 'react'
import { Link } from 'react-router-dom'
import Logo from './Logo'
import './index.css'
export default ({score=1000}) => {
return (
<div className="Header">
<div className="rank-container">
<label>Elo</label>
<div className="value">{score}</div>
</di... |
import React, {Component} from 'react';
import { connect } from 'react-redux';
import { deleteRoomAction, fetchRoomsAction } from '../../store/actions/RoomsActions'
import RoomsList from './RoomsList';
import DeleteConfirmationModal from './DeleteConfirmationModal';
class Rooms extends Component{
state = {
... |
from csympy import Symbol, symbols
from csympy.utilities import raises
def test_symbol():
x = Symbol("x")
assert str(x) == "x"
assert str(x) != "y"
assert repr(x) == str(x)
def test_symbols():
x = Symbol('x')
y = Symbol('y')
z = Symbol('z')
assert symbols('x') == x
assert symbol... |
$(document).ready(function() {
var calendar = $('#calendar').fullCalendar({
editable:true,
header:{
left:'prev,next today',
center:'title',
right:'month,agendaWeek,agendaDay'
},
events: window.location + '/appointments',
selectable:true,
selectHelper:true,
select... |
import Typography from "typography"
import Sutro from "typography-theme-sutro"
Sutro.overrideThemeStyles = () => {
return {
"a.gatsby-resp-image-link": {
boxShadow: `none`,
},
}
}
delete Sutro.googleFonts
const typography = new Typography(Sutro)
// Hot reload typography in development.
if (process... |
import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import GameForm from './GameForm';
describe('GameForm', () => {
let gameForm;
let game;
let newGame;
let actionName;
let onSubmit;
let onCancel;
beforeEach(() => {
onSubmit = sandbox.spy();
onCancel = san... |
export * from './bounding-box'
export * from './geometry'
export * from './context'
export * from './size'
|
import{aw as e,b3 as t,aR as a}from"./index.04486bdf.js";var r,s;(s=r||(r={})).GetCategories="/flow/base/category/getCategories",s.SaveOrUpdate="/flow/base/category/saveOrUpdate",s.Delete="/flow/base/category/delete",s.CheckEntityExist="/flow/base/category/checkEntityExist";const i=s=>{const i=e.post({url:r.GetCategori... |
!function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function e(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(t,e){if(!(t instanceof ... |
var SmartBuffer = require('../lib/smart-buffer.js');
var assert = require('chai').assert;
describe("Constructing an SmartBuffer", function () {
describe("Constructing with an existing Buffer", function () {
var buff = new Buffer([ 0xAA, 0xBB, 0xCC, 0xDD, 0xFF, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x7... |
# Generated by Django 3.1.7 on 2021-03-24 16:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('roza', '0004_auto_20210324_1306'),
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
... |
import pandas as pd
import numpy as np
import succolib as sl
import inspect
###############################################################################
###############################################################################
def peakedDistMode(series):
if len(series.unique()) <= 1:
centre = 0
... |
var class_x_f_1_1_entity_1_1_attachment =
[
[ "_preSave", "d0/dc8/class_x_f_1_1_entity_1_1_attachment.html#afe23830269d783eebc97de635fdebd10", null ],
[ "getAttachmentRepo", "d0/dc8/class_x_f_1_1_entity_1_1_attachment.html#a059d6a50407892891fb4c57599db6157", null ],
[ "getContainer", "d0/dc8/class_x_f_1_1_e... |
import {screen, fireEvent, getByText} from '@testing-library/dom'
import {SidePanels} from "../../src/js/elements/side_panels.js";
import {Component} from '../../src/js/utils';
import Controller from "../../src/js/controller";
import {MapDownload} from "../../src/js/map/map_download";
import {configureMapDownloadEvent... |
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1869],{2919:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(5893),i=n(6156),o=(n(7294),n(2465)),l=n(9163);function a(){var e=(0,o.Z)(["\n display: table-cell;\n"]);return a=function(){return e},e}function s(){var e=(0,o.Z)(["\n display: tab... |
from pigpio_dht import DHT22
import RPi.GPIO as GPIO
import time
import os
os.system("sudo pigpiod")
relayStatus = False
def gpioSetup():
GPIO.setmode(GPIO.BCM)
GPIO.setup(27, GPIO.OUT)
GPIO.output(27,GPIO.LOW)
def relayON(gpioNumber, relayStatus):
GPIO.output(gpioNumber, GPIO.HIGH)
relayStatus ... |
let ParameterDelete = class Parameter {
constructor(parameterKey) {
this.parameterKey = parameterKey
}
toJSON() {
return {
parameterKey: this.parameterKey,
}
}
}
export default ParameterDelete |
import pyglet
def center_image(image):
"""Sets an image's anchor point to its center"""
image.anchor_x = image.width / 2
image.anchor_y = image.height / 2
pyglet.resource.path = ['../resources', '../resources/audio', '../resources/sprites', '../resources/sprites/ships',
'../resou... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
import csv
import time
import copy
from collections import deque
import cv2 as cv
import numpy as np
import tensorflow as tf
from utils import CvFpsCalc
from utils import CvDrawText
def get_args():
parser = argparse.ArgumentParser()
parser.add_... |
'use strict';
module.exports = (req, res, next) => {
console.log(`METHOD: ${req.method}, PATH: ${req.path}`);
next();
}; |
var express = require('express'),
passport = require('passport'),
FacebookStrategy = require('passport-facebook').Strategy,
GoogleStrategy = require('passport-google-oauth').OAuth2Strategy,
LinkedInStrategy = require('passport-linkedin').Strategy,
LocalStrategy = require('passport-local').Strategy,
mongoose = req... |
import React from "react";
import { Route, Redirect } from "react-router-dom";
import { connect } from "react-redux";
import PropTypes from "prop-types";
const PrivateRoute = ({ component: Component, auth, ...rest }) => (
<Route
{...rest}
render={props =>
auth.isAuthenticated === true ? (
<Compo... |
import HeaderComp from '../HeaderComp/HeaderComp';
import './SettingsPage.css';
import '../LandingPage/LandingPage.css'
import {useEffect, useState, useRef} from 'react'
import { useNavigate } from 'react-router-dom';
import $ from 'jquery';
import coockiecheck from '../../cookiecheck';
import Settings from '../Setting... |
from .templates import System, random_slice
from . import data as data_pkg
import rescomp as rc
import numpy as np
import dill as pkl
from scipy.io import loadmat
from importlib import import_module
try:
import importlib.resources as il_resources
except ImportError:
import importlib_resources as il_resource... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _createClass2 = require('babel-runtime/helpers/createClass');
var _createClass3 = _interopRequi... |
module.exports = {
database: 'mongodb://localhost:27017/employeedb',
secret: 'yoursecret'
} |
module.exports = {
publicPath: process.env.NODE_ENV === 'production'
? './'
: '/'
} |
/**
* @description blog servers
* @author cy
*/
const Blog = require('../db/model/Blog')
const User = require('../db/model/User')
const UserRelation = require('../db/model/UserRelation')
const {formatUser, formatBlog} = require('./_format')
/**
* 创建微博
* @param {Object} param0
*/
async function createBlog({ us... |
import validator from 'validator';
class FormValidator {
constructor(validations) {
this.validations = validations;
}
validate(state) {
let validation = this.valid();
this.validations.forEach(rule => {
if (!validation[rule.field].isInvalid) {
const field... |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import contextlib
import subprocess
import uuid
import time
from hh_paths import hh_client
from jsonrpc_stream import JsonRpcStreamReader
from jsonrpc_stream import JsonRp... |
import {
Box,
Button,
Card,
CardContent,
TextField,
InputAdornment,
SvgIcon
} from '@material-ui/core';
import { Search as SearchIcon } from 'react-feather';
const CustomerListToolbar = (props) => (
<Box {...props}>
<Box
sx={{
display: 'flex',
justifyContent: '... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _createIcon = require('./util/createIcon');
var _createIcon2 = _interopRequireDefault(_createIcon);
function _interopRequireDefault(obj) { return obj && o... |
// Convert a date string (eg. "2020-01-01") to a UNIX timestamp (eg. 1577836800)
export function convertDateToTimestamp(date) {
date = new Date(date);
date.setHours(date.getHours() + 1); // Add 1 hour to ensure we get some data
return Math.floor(date.getTime() / 1000);
}
// Convert a UNIX timestamp (eg. 15778368... |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
var fragmentPrototype = CKEDITOR.htmlParser.fragment.prototype,
elementPrototype = CKEDITOR.htmlParser.element.prototype;
fragmentPrototype.onlyChild ... |
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2271],{46700:function(s,e,t){var n={"./af":42786,"./af.js":42786,"./ar":30867,"./ar-dz":14130,"./ar-dz.js":14130,"./ar-kw":96135,"./ar-kw.js":96135,"./ar-ly":56440,"./ar-ly.js":56440,"./ar-ma":47702,"./ar-ma.js":47702,"./ar-sa":16040,"./ar-sa.js":16040,"./ar-tn":... |
//import { FaArrowRight } from "react-icons/fa/";
import { FaCalendar } from "react-icons/fa/";
import { FaTag } from "react-icons/fa/";
import { FaUser } from "react-icons/fa/";
import Picture from "gatsby-image";
import { Link } from "gatsby";
import PropTypes from "prop-types";
import React from "react";
const Teas... |
"""
Serialization for regular panel data (audio, regular-tick time-series, etc.).
"""
import numpy as np
import soundfile as sf
from io import BytesIO
class WrongSampleRate(ValueError):
""" To be raised when the sample rate is not the one that's expected. """
pass
class WrongSerializationParams(ValueError... |
const { KNEX: knex } = require("../constants");
const { bcrypt } = require("../utils");
const { sign } = require("jsonwebtoken");
const accessTokenSecret = "youraccesstokensecret";
exports.logout = (req, res, next) => {
res.json({ function: "loutout" });
};
exports.login = async (req, res, next) => {
// Read user... |
import Client from './client';
export default class FraudEmailRules extends Client {
constructor(opts) {
let options = opts;
if (typeof opts === 'string') {
options = { host: opts }; // convert host string to options object
}
options.serviceName = 'API';
super(options);
}
get(organi... |
import React from 'react';
import logo from './logo.svg';
import { usePaystackPayment, PaystackButton, PaystackConsumer } from './dist/index.es';
import './App.css';
const config = {
reference: (new Date()).getTime(),
email: "user@example.com",
amount: 20000,
publicKey: 'pk_live_sfdrfdeszzdftt42sdtr2f0... |
// REQUIREMENTS
// *****************************
var express = require("express");
var router = express.Router();
var burger = require("../models/burger.js");
// *****************************
// Routes:
// *****************************
// Select All
router.get('/', function (req, res) {
burger.selectAll(function ... |
import React from "react";
function App() {
return (
<div className="container">
<div className="row justify-content-center">
<div className="col-md-8">
<div className="card">
<div className="card-header">App Component</div>
... |
'use strict';
/* dependencies */
const _ = require('lodash');
const { expect } = require('@lykmapipo/mongoose-test-helpers');
const { Permission } = require('../..');
describe('Permission Static Patch', () => {
before((done) => {
Permission.deleteMany(done);
});
let permission = Permission.fake();
befor... |
import logging
from .letter import Letter
from .slipnet import slipnet
class WorkspaceString(object):
def __init__(self, s):
self.string = s
self.bonds = []
self.objects = []
self.letters = []
self.length = len(s)
self.intra_string_unhappiness = 0.0
if not ... |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat... |
from dash import Dash, dcc, html, Input, Output
import dash_bootstrap_components as dbc
app = Dash(__name__, external_stylesheets=[dbc.themes.COSMO], title="Dash 之 链式回调")
选项 = {
"广西壮族自治区": ["南宁市", "桂林市", "北海市"],
"山东省": ["青岛市", "济南市", "日照市"],
}
app.layout = html.Div(
[
html.P(),
html.H1("链式... |
# -*- coding: utf-8 -*-
import json
import urllib
import urllib2
from flask import (
render_template, request, flash,
current_app, abort, url_for, redirect
)
from flask.ext.login import current_user, login_user, logout_user, login_required
from purchasing.database import db
from purchasing.users.forms import... |
'use strict';
var Message = require('../message');
var inherits = require('util').inherits;
var bitcore = require('bitcore-lib-dvt');
var BufferUtil = bitcore.util.buffer;
var $ = bitcore.util.preconditions;
var _ = bitcore.deps._;
/**
* Contains information about a MerkleBlock
* @see https://en.bitcoin.it/wiki/Pro... |
/*
* Copyright (c) 2015 Demian Holderegger
* Licensed under the MIT license.
*/
/**
* Tab Navigation Clicks Controller
*/
app.controller('StatisticsTabsCtrl', function($scope, $http) {
$scope.data = {};
$scope.chartConfig = {};
$http.get('/api/tabClicks').
success(function(data, status, headers, config) {... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[252],{3083:function(t,e,n){"use strict";n.r(e),n.d(e,"icon",(function(){return c}));n(10),n(2),n(6),n(8),n(5),n(9);var r=n(0),a=n.n(r);function i(){return(i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.protot... |
var searchData=
[
['check',['CHECK',['../check__macros_8h.html#a76bb1ed1c7c2e0e58db57d181d5afbf8',1,'check_macros.h']]],
['check_5farray2d_5fclose',['CHECK_ARRAY2D_CLOSE',['../check__macros_8h.html#aa221a99c264579731650cb05888f4819',1,'check_macros.h']]],
['check_5farray_5fclose',['CHECK_ARRAY_CLOSE',['../check__... |
/**
* Copyright (c) 2013, 2021 Claudio Procida
*
* 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... |
import React from "react";
import { Container } from "@material-ui/core";
import CardSyP from "../Cards/CardSyP";
import { makeStyles } from "@material-ui/core";
const useStyles = makeStyles((theme) => ({
cards: {
display: "flex",
flexDirection: "row",
width: "30%",
[theme.breakpoints.down("md")]: {
... |
export default function (G6) {
G6.registerBehavior('clickSelected', {
getDefaultCfg () {
return {
multiple: false
}
},
getEvents () {
return {
'node:click': 'onClick',
'edge:click': 'onClick',
'edge:mouseover': 'onEdgeMouseOver',
'edge:mouseleave':... |
!function(b,c){"object"==typeof exports&&"object"==typeof module?module.exports=c():"function"==typeof define&&define.amd?define([],c):"object"==typeof exports?exports.Handlebars=c():b.Handlebars=c()}(this,function(){return function(a){function c(d){if(b[d])return b[d].exports;var e=b[d]={exports:{},id:d,loaded:!1};ret... |
import React, { PropTypes } from 'react';
import MainHeading from './MainHeading';
import Project from './Project';
import Section from '../ui/Section';
import * as Constant from '../constant';
import Identity from './Identity';
// http://paletton.com/#uid=13I0u0kllllaFw0g0qFqFg0w0aF
const Main = ({ companies, project... |
import pandas as pd
from sklearn import metrics
def analyze(df):
score = metrics.accuracy_score(df['Test'], df['Prediction'])
confMatrix = metrics.confusion_matrix(df['Test'], df['Prediction'])
# Verifying if predicts one class, in this case points = 0
if confMatrix[0][0] == 0 or confMatrix[1][1] =... |
# Proszę zaimplementować algorytm Dijkstry.
from queue import PriorityQueue
from math import inf
def relax(graph, u, v, distance, parent):
if distance[v] > distance[u] + graph[u][v]:
distance[v] = distance[u] + graph[u][v]
parent[v] = u
return True
return False
def dijkstra_algorithm... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
class Preload extends Phaser.State {
preload() {
/* Preload required assets */
this.game.load.image('mountains-back', 'assets/mountains-back.png');
this.game.load.image('mountains-mid1', 'assets/mountains-mid1.png');
this.game.load.image('mountains-mid2', 'assets/mountains-mid2.png');
this.game.load.ima... |
# coding: utf-8
"""
UCS Starship API
This is the UCS Starship REST API
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class BootUsb(object):
"""
NOTE: This class is auto g... |
// promisify:将obj包装成promise
let {promisify} = require('util')
//callback版本
let figlet = require('figlet');
//promise版本
let asyncFiglet = promisify(require('figlet'))
//第一种callback写法
figlet('Hello World!!', function(err, data) {
if (err) {
console.log('Something went wrong...');
console.dir(err);
... |
import Command from "../../classes/command.js";
import imageDetect from "../../utils/imagedetect.js";
class RawCommand extends Command {
async run() {
this.acknowledge();
const image = await imageDetect(this.client, this.message, this.interaction, this.options);
if (image === undefined) return "You need ... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(React.createElement(React.Fragment, null, React.createElement("path", {
fill: "none",
d: "M0 0h24v24H0V0z"
}), React.createElement("g", null, React.createElement("path", {
d: "M21 16v-2l-8-5V3.5c0-.83-.67-1.... |
function xForY(item, params){
if(item.qty < params.requiredMinimumQty)
return item.qty * item.price
else{
let itemsToPay = Math.ceil(item.qty * params.qtyToPay / params.requiredMinimumQty)
return item.price * itemsToPay
}
}
function fixedDiscount(item, params){
return item.qty * params.specialPrice... |
(function(a,b){a.MixItUp=function(){var c=this;c._execAction("_constructor",0);a.extend(c,{selectors:{target:".mix",filter:".filter",sort:".sort"},animation:{enable:true,effects:"fade scale",duration:600,easing:"ease",perspectiveDistance:"3000",perspectiveOrigin:"50% 50%",queue:true,queueLimit:1,animateChangeLayout:fal... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","tr",{euro:"Euro işareti",lsquo:"Sol tek tırnak işareti",rsquo:"Sağ tek tırnak işareti",ldquo:"Sol çift tırnak işareti",rdquo:"Sağ çi... |
import React from 'react'
import Card from 'react-bootstrap/Card'
import CardGroup from 'react-bootstrap/CardGroup'
import './Cards.css'
import { FaBookReader } from "react-icons/fa";
const myURL = "https://longform.org/random"
export default function ResearchCards() {
return (
<div id="resear... |
import os
from pathlib import Path
import pytest
from pipenv.utils.processes import subprocess_run
# This module is run only on Windows.
pytestmark = pytest.mark.skipif(os.name != 'nt', reason="only relevant on windows")
@pytest.mark.project
def test_case_changes_windows(PipenvInstance):
"""Test project matchi... |
// create the team
const generateEmployees = employeeList => {
// create the manager html
const generateManager = manager => {
return `
<div class="card employee-card">
<div class="card-header">
<h2 class="card-title">${manager.getName()}</h2>
<h3 class="card-tit... |
from django.db import models
from django.contrib.auth.models import User
from django.contrib import admin
from WeatherRangerProject.tempertaure import calculate_five_day_upper_lower, calculate_sixteen_day_upper_lower
import requests
import json
API_KEY = '8e662200ba6ef23c0cc1c12a3aeaf9e3'
URL_TEMPLATE = "http://api.o... |
(function(e){"function"==typeof define&&define.amd?define(["jquery","moment"],e):e(jQuery,moment)})(function(e,t){var n={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},r={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};(t.defineLocale||t.lang).call(t,"hi",{months:"जनवरी_फ़... |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'clipboard', 'ka', {
copy: 'ასლი',
copyError: 'თქვენი ბროუზერის უსაფრთხოების პარამეტრები არ იძლევა ასლის ოპერაციის ავტომატურად განხორციელების საშუალ... |
/**
* @author: @AngularClass
*/
const helpers = require('./helpers');
const buildUtils = require('./build-utils');
/**
* Used to merge webpack configs
*/
const webpackMerge = require('webpack-merge');
/**
* The settings that are common to prod and dev
*/
const commonConfig = require('./webpack.common.js');
/**
*... |
"""Contains the base class for flippers."""
from typing import List
from typing import Optional
from mpf.core.events import event_handler
from mpf.core.platform_controller import HardwareRule, EosRuleSettings
from mpf.core.device_monitor import DeviceMonitor
from mpf.core.platform_controller import SwitchRuleSettings... |
app.controller('settingWidget', function($scope, $http, $rootScope,$state,$timeout,$compile) {
$scope.data = {}
oTable = $('#datatable').DataTable({
processing: true,
serverSide: true,
ajax: {
headers : {'Authorization' : 'Bearer '+authUser.api_token},
url : baseUrl+'/api/... |
Type.registerNamespace("Strings");Strings.OfficeOM=function(){};Strings.OfficeOM.registerClass("Strings.OfficeOM");Strings.OfficeOM.L_NotImplemented="Funktionen {0} är inte implementerad.";Strings.OfficeOM.L_ActivityLimitReached="Aktivitetsgränsen har nåtts.";Strings.OfficeOM.L_InvalidBinding="Ogiltig bindning";String... |
var knownTags = require('./knownTags');
var recast = require('recast');
var b = recast.types.builders;
var jsxAnnotationRegexp = /@jsx\s+([^\s]+)/;
function createNameExpression(jsx, name) {
var members = jsx.split('.').concat([name]);
var jsxExpression = b.identifier(members.shift());
members.forEach(functio... |
import React from 'react';
import {
describe,
beforeEach,
it,
} from '@bigtest/mocha';
import { expect } from 'chai';
import { mount } from '../../../../test/bigtest/helpers';
import { Job } from '../Job';
import { JobInteractor } from './interactor';
describe('Job', () => {
const job = new JobInteractor();
... |
import {
apiFileUploadDefalut
} from '@/api/apiFile'
const state = {
}
const getters = {
}
const mutations = {
}
const actions = {
async FILE_UPLOAD_DEFAULT (context, payload) {
const { data } = await apiFileUploadDefalut(payload.fdata)
return data
}
}
export default {
namespaced: true,
state,... |
import React from 'react';
import PropTypes from 'prop-types';
import { isAbsoluteUrl } from '@availity/resolve-url';
// if absolute or loadApp is disabled, return url. otherwise loadappify the url
export const getUrl = (url = '', loadApp, absolute) => {
if (absolute || !loadApp) return url;
return `/public/apps/... |
# -*- coding: utf-8 -*-
#!/usr/bin/Python2.7
#
#Author:- Anurag Shivaprasad
#Date:- October 2016
#Objective:- Obtain pinyin for given word.
from xpinyin import Pinyin
import pandas as pd
#roman_gs = goslate.Goslate(writing=goslate.WRITING_ROMAN)
def fetchPinyin(keyword):
'''Fetches pinyin for the given word using x... |
import axios from 'axios';
import Vue from 'vue';
import VueRouter from 'vue-router';
import store from './store';
import HomePage from '../components/HomePage.vue';
import ListingPage from '../components/ListingPage.vue';
import LoginPage from '../components/LoginPage.vue';
import SavedPage from '../components/SavedPa... |
import View from './View.js'
import icons from "url:../../img/icons.svg";
class PreviewView extends View{
_parentElement = '';
_generateMarkup() {
const id = window.location.hash.slice(1);
return `
<li class="preview">
<a class="preview__link ${this._data.id === id ? 'preview__link--active'... |
# -*- coding: utf-8 -*- #
# Copyright 2018 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 requir... |
import abc
import six
import os
import time
import torch
from zerovl.utils.collections import AttrDict
from zerovl.core import (
Hook,
HookMode,
get_priority,
get_hook_mode
)
from zerovl.utils import is_list_of, logger, ENV
__all__ = ['BaseRunner']
@six.add_metaclass(abc.ABCMeta)
class BaseRunner:
... |
import React, { Component } from "react";
import { Button, Modal, Icon } from "semantic-ui-react";
class WidgetBumper extends Component {
state = { open: false };
closeConfigShow = (closeOnEscape, closeOnDimmerClick) => () => {
this.setState({ closeOnEscape, closeOnDimmerClick, open: true });
};
close = ... |
module.exports={A:{A:{"1":"F A B","2":"J D E hB"},B:{"1":"C K L G M N O R S T U V W X Y Z P a H b"},C:{"1":"0 1 2 3 4 5 6 7 8 9 iB ZB I c J D E F A B C K L G M N O d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB aB HB bB Q IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB cB R S T jB U V W X Y Z P a H b k... |
from __future__ import absolute_import
from rest_framework import status
from rest_framework.exceptions import PermissionDenied
from rest_framework.response import Response
from sentry.api.bases.group import GroupEndpoint
from sentry.api.exceptions import ResourceDoesNotExist
from sentry.api.serializers import serial... |
var winston = require("winston"),
morgan = require("morgan");
winston.setLevels({ error: 0, info: 1, debug: 2, web: 3 });
winston.level = process.env.DEBUG ? "debug" : "info";
function log(msg, level) {
if (!level) {
level = "info";
}
// TODO Add timestamp
winston.log(level, msg);
}
function deb... |
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
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] =... |
import React, {Component, Fragment} from 'react';
import loadingImg from '../../images/loading.svg';
import {Col, Container, Row} from "react-bootstrap";
class LoadingDiv extends Component {
render() {
return (
<Fragment>
<Container>
<Row className="d-flex mt-... |
!(function (t, e) {
"object" == typeof exports && "undefined" != typeof module
? (module.exports = e())
: "function" == typeof define && define.amd
? define(e)
: (t.ES6Promise = e());
})(this, function () {
"use strict";
function t(t) {
var e = typeof t;
retur... |