text stringlengths 3 1.05M |
|---|
function MotdViewModel(data) {
this.Title = data.Title;
this.Message = data.Message;
this.Hash = data.Hash;
}
|
var should = require('should'),
assert = require('assert'),
Iyzipay = require('../lib/Iyzipay'),
options = require('./data/options');
describe('Iyzipay API Test', function () {
var iyzipay;
before(function (done) {
iyzipay = new Iyzipay(options);
done();
});
describe(... |
import os
import tensorflow
import util.config as config
import recognition.ml_util
import numpy as np
import jsonpickle
from unittest import TestCase
from recognition import ml_util
from recognition.ml_data import MlData
class TestMlUtil(TestCase):
def setUp(self):
self.ml_data = MlData([],[],[],[], {... |
# -*- coding: utf-8 -*-
#
# Copyright (c) 2018 Leland Stanford Junior University
# Copyright (c) 2018 The Regents of the University of California
#
# This file is part of pelicun.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following condition... |
import React from "react"
import { Link } from "gatsby"
import { graphql } from "gatsby"
import Layout from "../components/layout"
import SEO from "../components/seo"
export default ({data}) => {
return (
<Layout>
<SEO title="Home" />
<h1>Blog</h1>
{data.allMarkdownRemark.edges.map(({ node }) => (
... |
Dagaz.Controller.persistense = "none";
ZRF = {
JUMP: 0,
IF: 1,
FORK: 2,
FUNCTION: 3,
IN_ZONE: 4,
FLAG: 5,
SET_FLAG: 6,
POS_FLAG: 7,
SET_POS_FLAG: 8,
ATTR: 9,
SET_ATTR: 10,
PROMOTE: ... |
(function(d){d['tt']=Object.assign(d['tt']||{},{a:"Image toolbar",b:"Cannot upload file:",c:"Table toolbar",d:"Subscript",e:"Калын",f:"Underline",g:"Strikethrough",h:"Block quote",i:"Superscript",j:"Choose heading",k:"Heading",l:"Increase indent",m:"Decrease indent",n:"Full size image",o:"Side image",p:"Left aligned im... |
const { Model, DataTypes } = require('sequelize');
const sequelize = require('../config/connection');
class PaymentMethod extends Model {}
PaymentMethod.init(
{
id: {
type: DataTypes.UUID,
defaultValue: DataTypes.UUIDV4,
allowNull: false,
primaryKey: true,
},
stripe_customer_id: ... |
import client from 'shared/client';
import { NOVALUE, ChannelListTypes } from 'shared/constants';
import { Channel, SavedSearch } from 'shared/data/resources';
export function fetchResourceSearchResults(context, params) {
params = { ...params };
delete params['last'];
params.page_size = params.page_size || 25;
... |
'use strict';
/**
* The ozp toolbar component shown in the Webtop.
*
* @module ozpWebtop.ozpToolbar
* @requires ozp.common.windowSizeWatcher
* @requires ozpWebtop.models
*/
angular.module('ozpWebtop.ozpToolbar', [
'ozp.common.windowSizeWatcher',
'ozpWebtop.models',
'ozpWebtop.filters',
'ozpWebtop.service... |
define(["exports", "./node_modules/@polymer/polymer/polymer-legacy.js", "./node_modules/@lrnwebcomponents/simple-timer/simple-timer.js", "./node_modules/@lrnwebcomponents/simple-modal/simple-modal.js", "./node_modules/@lrnwebcomponents/to-do/to-do.js", "./node_modules/@polymer/paper-card/paper-card.js", "./node_modules... |
const path = require('path');
const { createFilePath } = require('gatsby-source-filesystem');
exports.onCreateNode = ({ node, getNode, actions }) => {
const { createNodeField } = actions;
if (node.internal.type === 'JavascriptFrontmatter') {
const slug = createFilePath({ node, getNode, basePath: 'pages' });
... |
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-function-definitions-static-semantics-early-errors
description: >
A SyntaxError is thrown if a function contains a non-simple parameter list and a UseStrict directive.
info... |
import inspect
import os
import jug.task
from .task_reset import task_reset_at_exit, task_reset
from .utils import simple_execute
_jugdir = os.path.abspath(inspect.getfile(inspect.currentframe()))
_jugdir = os.path.join(os.path.dirname(_jugdir), 'jugfiles')
Task = jug.task.Task
def add1(x):
return x + 1
def a... |
"""
Django settings for Jagrati project.
Generated by 'django-admin startproject' using Django 2.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
fr... |
//begin jquery begin jquery begin jquery begin jquery begin jquery begin jquery begin jquery begin jquery begin jquery begin jquery begin jquery begin jquery begin jquery begin jquery begin jquery begin jquery begin jquery begin jquery begin jquery
//begin jquery begin jquery begin jquery begin... |
#! /usr/bin/env node
const path = require('path');
const lib = require(path.join(__dirname, '..', 'lib'));
if (process.argv[2] == 'market') {
lib.get_market_data((error,json) => {
if (error) console.err(error); else console.log(json);
});
} else {
lib.do_for_symbol(process.argv[2], process.argv[3], (error, ... |
'use strict'
/**
* @param {Fastify} - fastify instance
*/
const cors = function (fastify, settings) {
fastify.register(require('fastify-cors'), settings.cors)
}
module.exports = cors
|
# Copyright 2019-2020 Spotify AB
#
# 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 writin... |
"""A document represents the state of an editing document."""
from .selection import Selection, Interval
from .event import Event
from . import commands
from .userinterface import UserInterface
from . import pointer
from .navigation import center_around_selection
import logging
documentlist = []
activedocument = None... |
const { Reply } = require("yandex-dialogs-sdk");
const { createSession } = require("../lib/helpers");
const { SAY_DISH_AND_COST_TO_ADD } = require("../lib/texts");
const { hasOpenedReceipt } = require("../lib/utils");
module.exports = async ctx => {
const { userId, sessionId } = ctx;
if (hasOpenedReceipt(ctx)) {... |
# Online Bayesian linear regression in 1d using Kalman Filter
# Based on: https://github.com/probml/pmtk3/blob/master/demos/linregOnlineDemoKalman.m
# The latent state corresponds to the current estimate of the regression weights w.
# The observation model has the form
# p(y(t) | w(t), x(t)) = Gauss( C(t) * w(t), R(t... |
/// Copyright (c) 2009 Microsoft Corporation
///
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
/// that the following conditions are met:
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
/// ... |
'use strict';
const Review = require('../../models/review');
exports.readAllReviews = async ctx => {
if (ctx.isAuthenticated()) {
try {
// found section
const response = await Review.find();
if (response && response.length > 0) {
ctx.status = 200;
return ctx.body = response;
... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Python wrapper around the SoX library.
This module requires that SoX is installed.
'''
from __future__ import print_function
from pathlib import Path
from typing import Union, Optional, List
from typing_extensions import Literal
from . import core
from . import file... |
//// [ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts]
module A {
export class Point {
x: number;
y: number;
}
export var Origin: Point = { x: 0, y: 0 };
export class Point3d extends Point {
z: number;
}
export var Or... |
import structlog
from eth_utils import to_hex
from gevent import joinall
from gevent.pool import Pool
from raiden import routing
from raiden.constants import ABSENT_SECRET, BLOCK_ID_LATEST
from raiden.messages.abstract import Message
from raiden.messages.decode import balanceproof_from_envelope, lockedtransfersigned_f... |
function _typeof(obj) {
"@babel/helpers - typeof";
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
_typeof = function _typeof(obj) {
return typeof obj;
};
} else {
_typeof = function _typeof(obj) {
return obj && typeof Symbol === "function" && obj.constructor ==... |
/* eslint-disable no-console */
import axios from 'axios'
const findInternalRating = require('../services/findRating')
const ratingPrefix = process.env.RATING_API_PREFIX
const ratingSuffix = process.env.RATING_API_SUFFIX
module.exports = async (professor) => {
// Searches database for professor's rating
const... |
import transformCss from '..'
it('transforms shadow offsets', () => {
expect(transformCss([['shadow-offset', '10px 5px']])).toEqual({
shadowOffset: { width: 10, height: 5 },
})
})
it('transforms text shadow offsets', () => {
expect(transformCss([['text-shadow-offset', '10px 5px']])).toEqual({
textShadow... |
"""
===============================
Extrema
===============================
We detect local maxima in a galaxy image. The image is corrupted by noise,
generating many local maxima. To keep only those maxima with sufficient
local contrast, we use h-maxima.
"""
import numpy as np
import matplotlib.pyplot as plt
from s... |
#!/usr/bin/env python
import rospy
from random import randint
#from time import time
from geometry_msgs.msg import Twist, Vector3, Point, Quaternion, Pose2D
from sensor_msgs.msg import LaserScan
from std_msgs.msg import String, Int32MultiArray, Bool
from nav_msgs.msg import Odometry
from scipy.spatial.transform import... |
/*
* Copyright 2016 Red Hat Inc. 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 applic... |
import list from "./ordersListReducers";
import form from "./ordersFormReducers";
import { combineReducers } from "redux";
export default combineReducers({
list,
form,
});
|
import React from "react";
import ReactDOM from "react-dom";
import Header from '../components/login/header.js'
import Video from '../components/login/video.js'
export default function App() {
return (
<div>
< Header />
< Video />
</div>
);
}
if (document.getElementById("login")) {
React... |
# coding: utf-8
from __future__ import division, print_function, unicode_literals, absolute_import
from atomate.qchem.firetasks.run_calc import RunQChemFake
__author__ = "Brandon Wood"
__email__ = "b.wood@berkeley.edu"
def use_fake_qchem(original_wf, ref_dirs):
"""
Replaces all RunQChem commands (i.e. ... |
'use strict';
/* globals describe, it, before, after */
import app from '../..';
import CandidateQuestion from '../../model/candidatequestions';
import User from '../user/user.model';
import request from 'supertest';
describe('Candidate Question API:', function() {
var user, q1, q2, q3;
// Clear users before te... |
parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot... |
import React, {useEffect, useState, useContext} from 'react';
import {
Text,
Image,
View,
ScrollView,
SafeAreaView,
Button,
StyleSheet
} from 'react-native';
import { getProduct } from '../services/ProductsService.js';
import { CartContext } from '../CartContext';
export function ProductDetails(... |
import React from 'react';
import Layout from '../components/layout';
import { graphql } from 'gatsby';
import { useForm } from 'react-hook-form';
import {
useNetlifyForm,
NetlifyFormProvider,
NetlifyFormComponent,
Honeypot,
} from 'react-netlify-forms';
import styled from 'styled-components';
const ContactTem... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.getEditorPreview = void 0;
var _react = _interopRequireWildcard(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _netlifyCmsUiDefault = require("netlify-cms-ui-default");
v... |
import React from 'react'
import { addStoriesFromModule } from '../helpers'
import ProgressBar from 'core/components/progress/ProgressBar'
const addStories = addStoriesFromModule(module)
addStories('Common Components/ProgressBar', {
'Progress bar': () => (
<ProgressBar percent={40} label={progress => `${progres... |
import { connect } from 'react-redux'
import Container from './container';
import { actionCreators as userActions } from '../../redux/modules/user';
const mapDispatchToProps = (dispatch, ownProps) => {
return {
login: (username, password) => {
return dispatch(userActions.login(username, passwor... |
import jsonpickle
from .sym_session import Session
class APIBase:
def __init__(self, current_session: Session):
self.session = current_session
self.api_base_url = self.session.config['api_host'] + ':' + self.session.config['api_port'] + '/'
def get_endpoint(self, symphony_endpoint: str):
... |
const express = require('express');
const http = require('http').Server(express);
const path = require('path');
const expressHandlebars = require('express-handlebars');
const swim = require('@swim/client');
// const swim = new client.Client({sendBufferSize: 1024*1024});
class HttpServer {
constructor(httpConfig, d... |
/*!
* tcd-advanced-searchbox v1.2.5
* https://github.com/TheCodeDestroyer/tcd-advanced-searchbox
* Copyright (c) 2015 Nace Logar http://thecodedestroyer.com/
* License: MIT
*/
!function(){"use strict";angular.module("tcd-advanced-searchbox",[]).directive("tcdAdvancedSearchbox",function(){return{restrict:"E",scope... |
const form = document.querySelector("form");
const name = document.querySelector("#name");
const cost = document.querySelector("#cost");
const error = document.querySelector("#error");
form.addEventListener("submit", (e) => {
e.preventDefault();
if (name.value && cost.value) {
const item = {
name: name.... |
# Copyright 2014 Cognitect. 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 applicable law or a... |
'use strict';
/* Filters */
//angular.module('checkSysFilters', [])
// .filter('underGrade', function(grade) {
// return function(inputs) {
// return inputs.filter(function(e) {
// return e.id.length <= newValue * 2 + 1; }
// );
// }
// });
/////////////////... |
import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/integration/react';
import store, { persistor } from '../src/store/index';
import AppRouter from './router';
import LoadingView from './base_components/LoadingView';
export default class App e... |
/**
* Copyright 2018 The AMP HTML 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 require... |
const eye = x => x;
export default {
eye,
};
|
# coding=utf-8
'''
作者:Jairus Chan
程序:多项式曲线拟合算法
'''
import matplotlib.pyplot as plt
import math
import numpy
import random
#阶数为9阶
order=9
#进行曲线拟合
def getMatA(xa):
matA=[]
for i in range(0,order+1):
matA1=[]
for j in range(0,order+1):
tx=0.0
for k in range(0,len(xa)):
... |
/*
Copyright 2019 Nikita Stepochkin
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 ... |
#
# python_grabber
#
# Authors:
# Andrea Schiavinato <andrea.schiavinato84@gmail.com>
#
# Copyright (C) 2019 Andrea Schiavinato
#
# 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 rest... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Buy = mongoose.model('Buy'),
_ = require('lodash');
/**
* Get the error message from error object
*/
var getErrorMessage = function(err) {
var message = '';
if (err.code) {
switch (err.code) {
case 11000:
case 11001:
... |
import pathlib
import pkg_resources
from mopidy import config, ext
__version__ = pkg_resources.get_distribution("Mopidy-MPD").version
class Extension(ext.Extension):
dist_name = "Mopidy-MPD"
ext_name = "mpd"
version = __version__
def get_default_config(self):
return config.read(pathlib.Pa... |
"""Generates a weekly bullet-point list of all the work done by ASF's Tools Team"""
from importlib.metadata import PackageNotFoundError, version
from bullets.generate import generate_bullets
try:
__version__ = version(__name__)
except PackageNotFoundError:
print(f'{__name__} package is not installed!\n'
... |
import { createStyleSystem, get as getConfig } from '@wp-g2/create-styles';
import {
config,
darkHighContrastModeConfig,
darkModeConfig,
highContrastModeConfig,
} from './theme';
const systemConfig = {
baseStyles: {
MozOsxFontSmoothing: 'grayscale',
WebkitFontSmoothing: 'antialiased',
fontFamily: getConfig... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import isEmpty from 'lodash/isEmpty';
import {
Col,
CardTitle,
CardBody,
EmptyStateAction,
EmptyStateInfo,
Button,
Card,
CardHeading,
DropdownKebab,
MenuItem,
FieldLevelHelp,
Me... |
# coding=utf-8
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
import hashlib
impor... |
var MaterialRequestWiseListing = function () {
var projectSiteId = $("#globalProjectSite").val();
if(typeof projectSiteId == 'undefined' || projectSiteId == ''){
projectSiteId = 0;
}
var handleOrders = function () {
var grid = new Datatable();
grid.init({
src: $("#mat... |
/**
* 全局配置文件
*/
let baseURL;
let imgUrl = '//elm.cangdu.org/img/';
if(process.env.NODE_ENV === 'development'){
baseURL = '//api.cangdu.org';
}else{
baseURL = '//api.cangdu.org';
}
export default {imgUrl, baseURL} |
__all__ = ('CommandProcessor', )
from ...backend.utils import WeakReferer
from ...discord.events.handling_helpers import EventWaitforBase
from ...discord.preconverters import preconvert_bool
from ...discord.utils import USER_MENTION_RP
from ...discord.events.handling_helpers import Router, compare_converted
from .com... |
/**
* Copyright (c) 2017-present, Dash Core Team
*
* This source code is licensed under the MIT license found in the
* COPYING file in the root directory of this source tree.
*/
'use strict';
let VMN = require('../../index.js');
let expect = require('chai').expect;
describe('Stack: Unit\n ---------------------'... |
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'CutieEMG.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtG... |
import Immutable from 'immutable';
//
import { getNavigationItem } from './actions';
import { Actions, Properties } from './constants';
const INITIAL_STATE = new Immutable.Map({
[Properties.PROPERTIES]: null, // configuration propereties
[Properties.NAVIGATION]: null, // all navigation items from enabled modules a... |
import * as ActionTypes from "../constants/actionTypes";
/* eslint-disable import/prefer-default-export */
export const storeEpicInfo = (payload) => ({
type: ActionTypes.STORE_MINE_EPIC_INFO,
payload,
});
|
import React, { useEffect } from 'react';
import { useQuery } from '@apollo/react-hooks';
//import { useStoreContext } from '../../utils/GlobalState';
import { useDispatch, useSelector } from 'react-redux';
import {
UPDATE_CATEGORIES,
UPDATE_CURRENT_CATEGORY,
} from '../../utils/actions';
import { QUERY_CATEGORIES ... |
"""This module holds a ConnectionWrapper that is used with a
JDBC Connection. The module should only be used when running Jython.
"""
# Copyright (c) 2009-2011, Christian Thomsen (chr@cs.aau.dk)
# All rights reserved.
# Redistribution and use in source anqd binary forms, with or without
# modification, are permit... |
"use strict";
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "sym... |
'use strict';
/* eslint-disable quote-props, quotes */
module.exports = {
"extends": [
"./client-common",
"./language/es5",
"./vue2-es5"
],
"rules": {
"no-restricted-properties": [
"error",
{
"property": "parentElement",
"message": "Prefer parentNode to parentElement as Node.parentElement is n... |
"use strict";
function Tile(x, y, row, col, type, context)
{
this.isClickable = true;
this.x = x;
this.y = y;
this.row = row;
this.col = col;
this.type = type;
this.context = context;
this.color = COLORS[type];
this.radius = CONFIG.shape.radius;
this.sAngle = 0;
this.eAngle = 1.2*Math.PI... |
# coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# 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 applicab... |
class Region(object):
def __init__(self):
self.x = 0
self.y = 0
self.width = 0
self.height = 0
def __iter__(self):
yield self.left
yield self.top
yield self.right
yield self.bottom
def __getitem__(self, key):
if key == 0:
return self.left
elif key == 1:
return self.top
elif key == 2:
... |
export { default } from 'ember-date-components/components/time-picker-input';
|
from django import forms
from django.contrib import admin, messages
from django.contrib.auth.admin import UserAdmin as AuthUserAdmin
from django.contrib.auth.forms import UserChangeForm, UserCreationForm
from django.utils.translation import ugettext as _
from .models import User
class MyUserChangeForm(UserChangeForm... |
import React from "react"
import PropTypes from "prop-types"
import "./styles/bootstrap.min.css"
import "./styles/styles.css"
const Layout = ({ children }) => {
return (
<div>
<div className="container" id="">
<h1>
Number Conversion
<span className="badge">beta Version</span>
... |
import pytest
from pydantic import BaseModel, ValidationError
from server.forms.validators import unique_conlist
def test_constrained_list_good():
class UniqueConListModel(BaseModel):
v: unique_conlist(int, unique_items=True) = []
m = UniqueConListModel(v=[1, 2, 3])
assert m.v == [1, 2, 3]
def... |
module.exports = function(ctx) {
var fs = ctx.requireCordovaModule('fs'),
path = ctx.requireCordovaModule('path'),
shell = ctx.requireCordovaModule("shelljs"),
UglifyJS = require('uglify-js'),
CleanCSS = require('clean-css'),
htmlMinify = require('html-minifier').minify,
... |
/**
* @author A.Lagresta
* @name User Data Model
* created on 21.8.2017
* @description database model for User entity
*/
var mysql = require('mysql');
var config = require('../config.sample');
connection = mysql.createConnection(config.connectionData);
var userModel = {};
// All users
userModel.get... |
# test file for the integer prime factorization
import abstract_binary.base as abs_bin_base
from abstract_binary.binary_number import bin_num
from abstract_binary.abstract_binary_number import abstract_bin_num
import abstract_binary.multiply
from abstract_binary.multiply import multiplication_table
import compose_BQM.... |
import * as React from 'react'
import Photo from './Photo'
import styled from 'styled-components'
const DisplaySearch = ({loading, photos})=>{
return(
<DisplaySearchWrapper>
<h2>Download high quality images for your next website or social media post.</h2>
<div className="photos-center">
{
... |
{
"targets": [
{
"target_name": "moncoin-crypto",
"defines": [
"NDEBUG",
"NO_CRYPTO_EXPORTS",
"FORCE_USE_HEAP",
"NO_AES"
],
"include_dirs": [
"include",
"<!(node -e \"require('nan')\")",
"external/argon2/include",
"external/ar... |
# encoding: 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 "License")... |
(this["webpackJsonpmicrofrontends-demo-container"]=this["webpackJsonpmicrofrontends-demo-container"]||[]).push([[0],{35:function(n,e,t){},61:function(n,e,t){"use strict";t.r(e);var o,r,c,a,i,d,b,s,j,l,p,x,u,O,h,g,f,m,v=t(2),w=t.n(v),y=t(24),k=t.n(y),S=t(25),z=(t(62),t(35),t(12)),L=t(29),I=t.n(L),B=(t(36),t(30),t(9)),P=... |
import { formatRecordToString } from 'nightingale-formatter';
export function style(styles, string) {
return string;
}
/**
* @param {Object} record
* @returns {string}
*/
export default function format(record) {
return formatRecordToString(record, style);
}
// export style function
format.style = style;
|
import {requestDb} from '../../shared/utils/db'
export function createProfileDb(epoch) {
const requestProfileDb = () => global.sub(requestDb(), 'profile')
const planNextValidationkey = `didPlanNextValidation!!${epoch?.epoch ?? -1}`
return {
getDidPlanNextValidation() {
return requestProfileDb().get(p... |
import routes from "./../../../routes"
import { combinePathRoutes } from "./../../../../../helpers"
import * as dialogRoute from "./dialog"
export const basePath = routes.aptitudeSkillList.path
export const dialogRoutes = combinePathRoutes({ path: basePath }, dialogRoute)
|
var _marked =
/*#__PURE__*/
regeneratorRuntime.mark(test1),
_marked2 =
/*#__PURE__*/
regeneratorRuntime.mark(test2);
function test1() {
return regeneratorRuntime.wrap(function test1$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
... |
import styled from "styled-components";
import Link from "next/link";
const HeaderWrap = styled.header`
margin-bottom: 10rem;
`;
const HeaderLink = styled.div`
float: left;
position: relative;
z-index: 1;
margin-right: 2.5rem;
&:hover .pt {
transform: translateY(0.6rem);
}
&:hover .pb {
transf... |
'use strict'
const getURL = '/https/example.com/example.json.json'
const apiURL = 'http://online.swagger.io'
const apiGetURL = '/validator/debug'
const apiGetQueryParams = { url: 'https://example.com/example.json' }
const t = (module.exports = require('../tester').createServiceTester())
t.create('Valid (mocked)')
... |
const { version } = require('../package.json');
const filterQueryParser = (filterQuery) => {
const conditions = filterQuery.match(/\(([^\(\)]*?)\)/g);
let filter = {};
conditions.map((c) => {
const m = c.match(/\(type=="(.*?)"(&&|\|\|)(.*?)(<|>)(.*)\)/);
if (m) {
const type = m[1];
const ope... |
/**
* Core UI functions are initialized in this file. This prevents
* unexpected errors from breaking the core features. Specifically,
* actions in this file should not require the usage of any internal
* modules, excluding dependencies.
*/
// Requirements
const $ = require('jquery')
c... |
var Properties = {
"modem.js" : {
device : { type : String, label : "Device"},
number : { type : String, label : "Number"}
},
"kannel.js":{
host : { type : String, label : "Kannel Host", help : "Defaut : 127.0.0.1", default : "127.0.0.1" },
port : { type: String , label : "Kannel Port", help : "Defaut : 1... |
const initStateDashboard = {
data: null,
loading: false,
error: null,
};
export default initStateDashboard;
|
'''
zstack snapshot test class
@author: Youyk
'''
import zstackwoodpecker.header.snapshot as sp_header
import zstackwoodpecker.header.vm as vm_header
import zstackwoodpecker.header.volume as volume_header
import zstackwoodpecker.header.image as image_header
import zstackwoodpecker.operations.volume_operations as vol_o... |
module.exports = {
checksum(input) {
const string = input.toString();
let sum = 0;
let parity = 2;
for (let i = string.length - 1; i >= 0; i--) {
const digit = Math.max(parity, 1) * string[i];
sum += digit > 9 ? digit.toString().split('').map(Number).reduce((a, b) => a + b, 0) : digit;
... |
/**
* Create self executing function to avoid global scope creation
*/
(function (angular, tinymce) {
'use strict';
angular
.module('mediaCenterContent')
/**
* Inject dependency
*/
.controller('ContentCategoryCtrl', ['$scope', 'Buildfire', 'SearchEngine', 'DB', 'COLLECTIONS', 'Location', 'ca... |