text stringlengths 3 1.05M |
|---|
import React from 'react';
import PropTypes from 'prop-types';
import { getNoteTitle } from './notes.utils';
function NoteTitle(props) {
const { note, isActive, onClick } = props;
const title = React.useMemo(() => getNoteTitle(note), [note]);
let className = 'notes__list-item';
if (isActive) {
className... |
/* eslint-disable react/prop-types */
import isEmpty from 'lodash/isEmpty'
import isObject from 'lodash/isObject'
import trim from 'lodash/trim'
import serialize from '@jqcode/functions/src/serialize'
import download from 'downloadjs'
import getLodash from 'lodash/get'
function getUrl({
domain, endpoint, protocol, p... |
##########################################################################
# Copyright 2018 Kata.ai
#
# 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/LICEN... |
const companyName = 'Scuber';
let mostProfitableNeighborhood = 'Chelsea';
let companyCeo = 'Susan Smith';
|
from typing import FrozenSet
from collections import Iterable
from math import log, ceil
from mathsat import msat_term, msat_env
from mathsat import msat_make_constant, msat_declare_function
from mathsat import msat_get_integer_type, msat_get_rational_type, msat_get_bool_type
from mathsat import msat_make_and, msa... |
// Debug.Object.prototype.defineProperties.
var g = newGlobal('new-compartment');
var dbg = new Debugger;
var gw = dbg.addDebuggee(g);
var descProps = ['configurable', 'enumerable', 'writable', 'value', 'get', 'set'];
function test(objexpr, descs) {
g.eval("obj = (" + objexpr + ");");
var gobjw = gw.getOwnPro... |
import React from 'react'
import { Stack, DefaultButton } from '@fluentui/react/lib-commonjs'
import {
Text,
SearchBox,
ComboBox,
Dropdown,
} from '@fluentui/react/lib-commonjs'
// need a dummy menu item for search etc dropdowns to render on click
const menuItems = [{ key: 'blank', text: '' }]
const stackToke... |
var app = require('../index.js'),
request = require('supertest');
function getPartnersOfEvents() {
describe('GET /events/:eventId', function() {
it('Get partners of event', function(done) {
request(app)
.get('/partners/events/2')
.send()
.set('Accept', 'application/json')
... |
'use strict'
const POSTGRES_URL = process.env.NODE_ENV ? 'Sqlite:memory:' : process.env.DATABASE_URL
const { sequelize, DataTypes } = require('sequelize')
let sequelizeOptions = process.env.NODE_ENV === 'production' ? {
dialectOptions: {
ssl: {
require: true,
rejectUnauthorized: f... |
import './index.scss';
import { Drawer, Form, Button, Col, Row, Input, Select, DatePicker, Icon, Tabs } from 'ant-design-vue';
const { TabPane } = Tabs;
const { Option } = Select;
import LoginPage from "./login";
import RegisterPage from "./register";
const Index = {
data() {
return {
login: fal... |
'use strict'
// User
module.exports = function(sequelize, DataTypes) {
let User = sequelize.define('users', {
name: {
type: DataTypes.STRING
},
email: {
type: DataTypes.TEXT
},
password: {
type: DataTypes.TEXT
},
role: {
type: DataTypes.TEXT
},
stylePrefere... |
var Config = require("webpack-config").Config;
module.exports = new Config().extend("conf/webpack.base.config.js").merge({
devtool: "#inline-source-map",
output: {
pathinfo: true
},
devServer: {
stats: {
chunks: false
}
}
});
|
import{_ as i,c as l,o as e,a}from"./app.0c9aa2df.js";const x='{"title":"3_1 Linux \u5165\u95E8","description":"","frontmatter":{},"headers":[{"level":2,"title":"\u4EC0\u4E48\u662FLinux\uFF1F","slug":"\u4EC0\u4E48\u662Flinux\uFF1F"},{"level":2,"title":"\u4EC0\u4E48\u662F\u7EC8\u7AEF\uFF1F","slug":"\u4EC0\u4E48\u662F\u7... |
angular.module('galeriaModule', [])
.controller('galeriaController', ['$scope', '$http', '$rootScope', 'sysServicos', '$stateParams', '$timeout','$state',
function ($scope, $http, $rootScope, sysServicos, $stateParams, $timeout,$state) {
}
])
.controller('galeriaDetController', ['$scop... |
import { injectReducer } from '../../store/reducers'
export default (store) => ({
path : 'news',
/* Async getComponent is only invoked when route matches */
getComponent (nextState, cb) {
/* Webpack - use 'require.ensure' to create a split point
and embed an async module loader (jsonp) when bundl... |
/*
* Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
*
* 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 ri... |
"use strict";
//# sourceMappingURL=speakap-icon.d.js.map |
import axios from 'axios'
import { defineStore } from 'pinia'
import { useGlobalStore } from '@/scripts/admin/stores/global'
import { handleError } from '@/scripts/helpers/error-handling'
export const useDashboardStore = (useWindow = false) => {
const defineStoreFunc = useWindow ? window.pinia.defineStore : defineSt... |
'use strict';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactNative, {
StyleSheet,
View,
Text,
NativeModules,
} from 'react-native';
const { UIManager } = NativeModules;
const noop = () => {};
const returnTrue = () => true;
export default class SectionList extends ... |
/*!
* froala_editor v1.2.3 (http://editor.froala.com)
* Copyright 2014-2014 Froala
*/
/**
* Spanish
*/
$.Editable.LANGS['es'] = {
translation: {
"Bold": "Negrita",
"Italic": "It\u00e1lica",
"Underline": "Subrayado",
"Strikethrough": "Tachado",
"Font Size": "Tama\u00f1o de fuente",
"Colo... |
module.exports = {
models: [
{
name: 'Worker',
displayField: 'name',
searchField: 'name',
rowDetailFields: ['skill'],
collections: ['assigned', 'watching'] // this is to tell the controller to populate collections
},
{
... |
import {error} from 'explanation';
import Chunk, {StarChunk, Empty, Star} from './chunk';
import Chunks, {StarChunks, MixedChunks} from './chunks';
export default class ChunkFactory {
constructor (chunk) {
if (typeof chunk !== 'string' || chunk === '') {
return new Empty();
}
if (chunk.includes(',... |
"use strict";
const path = require("path");
const gulp = require("gulp");
const newer = require("gulp-newer");
const imagemin = require("gulp-imagemin");
const sass = require("gulp-dart-sass");
const postcss = require("gulp-postcss");
const gutil = require('gulp-util');
const webpack = require('webpack-stream');
const... |
# coding: utf-8
"""
Isilon SDK
Isilon SDK - Language bindings for the OneFS API # noqa: E501
OpenAPI spec version: 3
Contact: sdk@isilon.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and pyth... |
import React, { Component } from 'react';
import {
View,
} from 'react-native';
import PropTypes from 'prop-types';
import ControlGroup from './ControlGroup'
import { makeStyles } from './util'
import { Play } from './Controls'
import { connectVideo } from './connectVideo'
import layout from './layout'
import styles... |
import Vue from 'vue';
import VueImagePreview from './ImagePreview';
import { isServer } from '../utils';
let instance;
const defaultConfig = {
loop: true,
images: [],
value: true,
minZoom: 1 / 3,
maxZoom: 3,
className: '',
onClose: null,
onChange: null,
lazyLoad: false,
showIndex: true,
asyncCl... |
import imageEmail from "assets/icons/socials/email.png";
import imageGithub from "assets/icons/socials/github.png";
import imageWebsite from "assets/icons/socials/globe.png";
import imageLinkedin from "assets/icons/socials/linkedin.png";
import imagePhone from "assets/icons/socials/phone.png";
import Section from "comp... |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'font', 'lv', {
fontSize: {
label: 'Izmērs',
voiceLabel: 'Fonta izmeŗs',
panelTitle: 'Izmērs'
},
label: 'Šrifts',
panelTitle: 'Šrifts',
voi... |
'use strict'
/**
* Module dependencies
*/
var xtend = require('xtend')
var Readable = require('readable-stream').Readable
var streamsOpts = { objectMode: true }
var defaultStoreOptions = {
clean: true
}
/**
* es6-map can preserve insertion order even if ES version is older.
*
* https://developer.mozilla.org/e... |
webpackJsonp([1],{
/***/ 756:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SellerMyAccountPageModule", function() { return S... |
import React, { useEffect } from "react";
import { useDispatch, useSelector } from "react-redux";
import { Link } from "react-router-dom";
import TrendingCard from "../components/TrendingCard";
import { StyledTrending } from "./Trending";
import Skeleton from "../skeletons/TrendingSkeleton";
import { getLikedVideos, cl... |
from functools import reduce
import numpy as np
def accuracy(task_preds, task_targets):
"""Computes the accuracy of a given task.
:param task_preds: Predicted labels.
:param task_targets: Ground-truth targets.
:return: a float metric between 0 and 1.
"""
assert task_preds.size > 0
asser... |
import Transformer from "src/remoting/transformer"
import Dates from "src/utils/dates"
import CustomMatchers from "../../utils/custom-matchers"
describe("Transformer", () => {
beforeEach(() => jasmine.addMatchers(CustomMatchers) );
it("transformResponse", () => {
const t = new Transformer();
... |
from os import system,path,makedirs,walk
from ..cpf.cpf_interpolate import cpf_interp_azalt,cpf_interp_xyz,next_pass_horizon
from ..cpf.cpf_read import read_cpf
class CPF(object):
"""
class CPF
"""
def __init__(self,data,cpf_dir):
version = []
eph_source,time_eph,start_end_eph = ... |
// This event executes when a guild (server) is left.
const Discord = require("discord.js");
var rootDir = __dirname.replace("events", "");
const settings = require(rootDir + "./config.js");
module.exports = (client, guild) => {
// Well they're gone. Let's remove them from the settings!
client.settings.delete(guil... |
import { graphql, Link } from "gatsby"
import React from "react"
import Layout from '../components/Layout'
import * as styles from '../styles/home.module.css'
import { GatsbyImage } from 'gatsby-plugin-image'
export default function Home( { data } ) {
return (
<Layout>
<section className={ styles.header ... |
# coding: utf-8
from __future__ import absolute_import, division, print_function, unicode_literals
import os
from datetime import datetime
from pymongo import ReturnDocument
from tqdm import tqdm
from atomate.utils.utils import get_mongolike, get_logger
from atomate.vasp.builders.base import AbstractBuilder
from at... |
import Vue from 'vue'
import store from './store'
import router from './router'
import App from './App'
//注册插件
import loading from './plugins/loading'
import imgBox from './plugins/imgBox'
import toast from './plugins/toast/toast.js'
import validator from './plugins/validator/validator.js'
import message from './plugi... |
var Events = function(){
var self = this;
self.formatCountdown = function(secs){
secs = Math.max(0, secs);
var p = function(a){return(a<10)?"0"+a:a;};
var s = Math.floor(secs/1) % 60;
var m = Math.floor(secs/60) % 60;
var h = Math.floor(secs/(60*60)) % 24;
var d ... |
module.exports = {
protocolHandlerName: 'TheThingsNetwork',
version:
{
versionText: 'Version 2.0',
versionValue: '2.0'
},
networkType: 'Lora',
oauthUrl: 'https://account.thethingsnetwork.org/users/authorize',
protocolHandlerNetworkFields: [
{
name: 'clientId',
description: ... |
!function(e){const a=e.cs=e.cs||{};a.dictionary=Object.assign(a.dictionary||{},{"%0 of %1":"%0 z %1","Align center":"Zarovnat na střed","Align left":"Zarovnat vlevo","Align right":"Zarovnat vpravo",Aquamarine:"Akvamarínová",Black:"Černá","Block quote":"Citace",Blue:"Modrá",Bold:"Tučné","Bulleted List":"Odrážky",Cancel:... |
/**
* Created by Administrator on 2016/6/8.
*/
define('ywj/async', function(require){
var Net = require('ywj/net');
var Util = require('ywj/util');
var MSG_SUCCESS_SHOW_TIME = window.MSG_SUCCESS_SHOW_TIME || 1; //成功信息显示时间(秒)
var MSG_ERROR_SHOW_TIME =window.MSG_ERROR_SHOW_TIME || 2; //错误信息显示时间(秒)
var MSG_LOAD_TIM... |
// @flow
//
// Copyright (c) 2018-present, GM Cruise LLC
//
// This source code is licensed under the Apache License, Version 2.0,
// found in the LICENSE file in the root directory of this source tree.
// You may not use this file except in compliance with the License.
// Copyright (c) 2018-present, GM Cruise LL... |
webpackJsonp([5],{MnyY:function(t,e){},hfsx:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={render:function(){this.$createElement;this._self._c;return this._m(0)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"error-page"},[e("d... |
var app = {
init: function (routes) {
enrutador.setRoutes(routes);
$("#catLink").off().click(function () {
//the only required parameter must be the one of the routeNames in the routes array
let routeTo = 'cat';
//optional replaceBool used internally by enrutado... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{487:function(t,s,a){"use strict";a.r(s);var n=a(13),v=Object(n.a)({},(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"java-开发手册-黄山版"}},[a("a",{staticClass:"hea... |
/**
* jqPlot
* Pure JavaScript plotting plugin using jQuery
*
* Version: 1.0.0b2_r1012
*
* Copyright (c) 2009-2011 Chris Leonello
* jqPlot is currently available for use in all personal or commercial projects
* under both the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL
... |
# -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-12-04 15:47
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('django_mc2p', '0001_initial'),
]
operations = [
migrations.AlterField(
... |
import React from 'react';
import { render } from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect';
import renderer from 'react-test-renderer';
import Display from '../Display';
describe('The Display Appearance', () => {
it('Matches the Snapshot', () => {
const tree = renderer.create(<D... |
import unittest
import logging
import tomodapi as models
TEST_SENTENCE = 'In the time since the industrial revolution the climate has increasingly been affected by human ' \
'activities that are causing global warming and climate change.'
TEST_CORPUS = './data/test.txt'
TEST_LABELS = './data/test_label... |
/*
* Copyright 2022 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
define([], function()
{
return function(id)
{
this.id = id;
this.getClients = function()
{
return jsDriverSelf.getTopContext().getProperty(this.id, "clients");
}
this.getUserNameForConnectionID = function(id)
{
var clients = this.getClients();
if (!clients || !clients[id]) return null... |
/* eslint-env mocha */
const chai = require('chai')
const parse = require('../../../src/utils/add-plugin/parse-plugin-name')
const expect = chai.expect
describe('utils/add-plugin/parse-plugin-name', function () {
it('should parse a module name', async () => {
const results = parse('@org/test-provider@^1.1.0')
... |
function clusterExtractedEntities(data) {
const clusteredExtractedEntities = {};
const addEntity = (entity, fileName) => {
// console.log(entity);
const { title } = entity;
const hasEntity = !!clusteredExtractedEntities[title];
if (!hasEntity) {
clusteredExtractedEntities[title] = [fileName];
} else {
... |
define(['angular'],function(angular){
angular.module('app.services.custom.game_engine', [] )
.service('GameEngine', [
'$q', '$http', '$rootScope','$cookies',
function ($q, $http, $rootScope,$cookies)
{
// AngularJS will instantiate a singleton by calling "new" on this function
var service... |
#!/usr/bin/env python
import configparser
import os
import re
import requests
import shutil
import subprocess
import sys
import tarfile
def is_tag(ref):
regex = re.compile('v[0-9]+\.[0-9]+\..*')
return regex.match(ref)
def get_commit_for_branch(branch):
commit = None
r = requests.get('https://api.gi... |
//REPLACED PATH WITH HANDLEBARS
// var path = require("path");
var db = require("../models");
// Requiring our custom middleware for checking if a user is logged in
var isAuthenticated = require("../config/middleware/isAuthenticated");
module.exports = function(app) {
app.get("/signup", function(req,res){
if... |
export default {
el: {
colorpicker: {
confirm: 'Bevestig',
clear: 'Legen'
},
datepicker: {
now: 'Nu',
today: 'Vandaag',
cancel: 'Annuleren',
clear: 'Legen',
confirm: 'Bevestig',
selectDate: 'Selecteer datum',
selectTime: 'Selecteer tijd',
startDa... |
# -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... |
/* Copyright© 2000 - 2022 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
import L from "leaflet"
import './Base';
impor... |
'use strict'
const db = require('../server/db')
const {User, Wine, Order} = require('../server/db/models')
const userData = [
{name: 'Cody', email: 'cody@email.com', password: '123'},
{name: 'Murphy', email: 'murphy@email.com', password: '123'}
]
const orderData = [
{
status: 'open'
},
{
status: 'c... |
/*
* grunt-awp
* https://github.com/bondli/grunt-awp
*
* Copyright (c) 2015 pixi
* Licensed under the MIT license.
*/
'use strict';
var fs = require('fs');
var path = require('path');
var http = require('http');
var clc = require('cli-color');
var success = clc.green;
var error = clc.red.bold;
var warn = clc.y... |
//
import sleep from './sleep';
function createPollingFn (
future ,
sleepTime
) {
return async function*(...args ) {
while (true) {
yield await future(...args);
await sleep(sleepTime);
}
... |
def update_sale_price(bike, sale_price):
if bike['sold'] is True:
raise Exception("Action not allowed. Bike has already been sold")
bike['sale_price'] = sale_price
def create_bike(description, cost, sale_price, condition):
return {
'description': description,
'cost': cost,
... |
// Copyright 2008 The Closure Library 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 requ... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
import { jsxs as _jsxs } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsxs(React.Fragment, {
children: [/*#__PURE__*/_jsx("path", {
d: "M15.05 12.81L6.56 4.3... |
(function(){define(["jquery","render"],function($,e){var n;return n=function(n){return e(n.node,n.template,n,function(){})()},{header:n};return page})}).call(this); |
"""Test module for classes and functions found in the entryscript module."""
import entryscript as es
from unittest import mock
def mock_repo_response():
"""Generate data for repo response."""
x = {
"result": {
"data": [
{
"repo_url": ["xyz/xyz"]
... |
const moduleName = 'clean-directory';
const fs = require('fs');
const { resolve, join } = require('path');
const util = require('util');
const unlink = util.promisify(fs.unlink);
const readdir = util.promisify(fs.readdir);
const rmDir = util.promisify(fs.rmdir);
const stat = util.promisify(fs.stat);
async function c... |
function Suite(t,e){this.title=t;var i=function(){};i.prototype=e,this.ctx=new i,this.suites=[],this.tests=[],this.pending=!1,this._beforeEach=[],this._beforeAll=[],this._afterEach=[],this._afterAll=[],this.root=!t,this._timeout=2e3,this._slow=75,this._bail=!1}var EventEmitter=require("events").EventEmitter,debug=requi... |
const greeting = 'Hello World';
console.log(greeting);
|
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { selector, searchSubdistrict } from 'api/searchDistrict';
import Component from './areaEditorDialog';
export default connect(
(state) => ({
searchDistrictState: selector(state),
}),
(dispatch) => ({ actions: bindAction... |
import React from "react"
import Navbar from "./Navbar"
import "../styles/global.css"
import "../sass/main.scss"
function Layout(props) {
return (
<div className="layout">
<Navbar />
<main className="content">
{/* Content of each page */}
{props.children}
</main>
<footer>
... |
# Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
#
# This file has been automatically generated. Please do not edit it manually.
# To regenerate the file, ... |
/**
* 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.
*
* @flow
*/
import {copy} from 'clipboard-js';
import * as React from 'react';
import {useCallback, useContext, useRef, useState} ... |
/**
* @fileoverview
* Minimal implementation of JSX that outputs DOM nodes.
*
* Usage:
* import * as Preact from '#core/dom/jsx';
*
* This library is nicer than templates in bundles that do not include Preact,
* but it does not attempt to implement JSX fully.
*
* These features are omitted for the sake of b... |
macDetailCallback("70879e000000/24",[{"d":"2019-05-31","t":"add","s":"ieee-oui.csv","a":"Building 41, Capital of Tech Leaders, 1387 Zhangdong Road, Zhangjiang High-Tech Park, Pudong New District Shanghai CN 201203","c":"CN","o":"Beken Corporation"}]);
|
'use strict';
module.exports = function(models) {
const dataUtils = require('./utils/data-utils'),
mapper = require('../utils/mapper'),
Event = models.Event,
User = models.User,
City = models.City,
Country = models.Country,
EventType = models.EventType;
return {... |
module.exports = rsaPublicKeyPem;
//http://stackoverflow.com/questions/18835132/xml-to-pem-in-node-js
function rsaPublicKeyPem(modulus_b64, exponent_b64) {
var modulus = new Buffer(modulus_b64, 'base64');
var exponent = new Buffer(exponent_b64, 'base64');
var modulus_hex = modulus.toString('hex')
v... |
# encoding: UTF-8
from datetime import datetime
from pymongo import Connection
from pymongo.errors import *
from eventEngine import *
# 常量定义
OFFSET_OPEN = '0' # 开仓
OFFSET_CLOSE = '1' # 平仓
DIRECTION_BUY = '0' # 买入
DIRECTION_SELL = '1' # 卖出
PRICETYPE_LIMIT = '2' ... |
var locale={moduleType:"locale",name:"pt-PT",dictionary:{Autoscale:"Escala autom\xe1tica","Box Select":"Sele\xe7\xe3o retangular","Click to enter Colorscale title":"Clique para editar o t\xedtulo da escala de cor","Click to enter Component A title":"Clique para editar o t\xedtulo do Componente A","Click to enter Compon... |
IntlRelativeFormat.__addLocaleData({"locale":"ast","pluralRuleFunction":function (n,ord){var s=String(n).split("."),v0=!s[1];if(ord)return"other";return n==1&&v0?"one":"other"},"fields":{"year":{"displayName":"añu","relative":{"0":"esti añu","1":"l’añu viniente","-1":"l’añu pasáu"},"relativeTime":{"future":{"one":"en {... |
export default _module
export const {
Module,
builtinModules,
runMain,
wrap,
} = _module |
RELATION_DOES_NOT_EXIST = "Selected relation does not exist."
MODEL_DOES_NOT_EXIST = "Selected {model} does not exist."
ITEM_DOES_NOT_EXIST = "The requested item or relation does not exist."
INVALID_ORDER_PROPERTY = "Selected property for ordering is invalid."
NO_ITEM_EXISTS = "No {model} exists."
ITEM_EXISTS = "{... |
module.exports = {
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
extends: [
'airbnb-typescript',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
'plugin:prettier/recommended',
'plugin:import... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Download = void 0;
var _path = _interopRequireDefault(require("path"));
var _page = require("./page");
var _utils = require("../utils/utils");
var _artifact = require("./artifact");
function _interopRequireDefault(obj) { return... |
import React, { useContext } from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import { AppNavigator } from './AppNavigator';
import { AccountNavigator } from './AccountNavigator';
import { AuthenticationContext } from '../../... |
/*
* L.DomEvent contains functions for working with DOM events.
*/
L.DomEvent = {
/* inspired by John Resig, Dean Edwards and YUI addEvent implementations */
addListener: function (obj, type, fn, context) { // (HTMLElement, String, Function[, Object])
var id = L.stamp(fn),
key = '_leaflet_' + typ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const _ = require("lodash");
const RedisInst = require("redis");
const EventEmitter = require("events").EventEmitter;
class RedisSMQ extends EventEmitter {
constructor(options = {}) {
super(options);
this.asyncify = (method... |
"""
Collection of passes for the declaration, allocation, movement and deallocation
of symbols and data.
"""
from collections import OrderedDict, namedtuple
from operator import itemgetter
import cgen as c
from devito.ir import (List, LocalExpression, PointerCast, FindSymbols,
MapExprStmts, Tr... |
# 自动化测试 - 利用OpenCV进行图像识别与定位
import cv2
#读取图片,以1.png为例
img = cv2.imread('MyPic.jpg')
sift = cv2.xfeatures2d.SIFT_create() #检测关键点并计算描述
|
//using mongoose to connect mongodb
var mongoose = require('mongoose');
var bcrypt = require('bcryptjs');
//mongoose.connect('mongodb://andythebreaker:iuhihcuw@140.116.132.223:27017/petdatabase_dev', { useNewUrlParser: true, useUnifiedTopology: true, useFindAndModify: false, useCreateIndex: true });
//var db = mongoose... |
var onRun = function(context) {
var ga = require("../modules/Google_Analytics");
ga("Guide");
var preferences = require("../modules/Preferences");
var Dialog = require("../modules/Dialog").dialog;
var ui = require("../modules/Dialog").ui;
var sketch = require("sketch");
var document = sket... |
# pdfutils.py - everything to do with images, streams,
# compression, and some constants
import os
from io import StringIO
import glob
LINEEND = '\015\012'
##########################################################
#
# image compression helpers. Preprocessing a directory
# of images will offer a vast speedup.
#
... |
# Copyright 2020, Kay Hayen, mailto:kay.hayen@gmail.com
#
# Python tests originally created or extracted from other peoples work. The
# parts were too small to be protected.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the ... |
const gulp = require('gulp');
const cache = require('gulp-cached');
const color = require('ansi-colors');
const log = require('fancy-log');
const remember = require('gulp-remember');
const watch = require('gulp-watch');
const chokidar = require('chokidar');
const path = require('path');
const fs = require('fs');
const ... |
// User Test Cases
// -----------------------------
// Modules Dependencies:
// - Assert (http://nodejs.org/api/assert.html)
var assert = require('assert');
var fixtures = require('mongoose-fixtures');
var async = require('async')
// Require basic config files and DB connection
require('../../../utils/dbconnect');
... |
'use strict'
/**
* mux.js
*
* Copyright (c) Brightcove
* Licensed Apache-2.0 https://github.com/videojs/mux.js/blob/master/LICENSE
*
* A stream-based mp2t to mp4 converter. This utility can be used to
* deliver mp4s to a SourceBuffer on platforms that support native
* Media Source Extensions.
*/
var Stream =... |
const letters = ["a", "b", "c", "d", "e", "f", "g", "i", "j"];
const routes = ["index.html", ...letters];
export default {
*[Symbol.asyncIterator]() {
yield* routes;
},
"index.html": letters
.map((letter) => `<li><a href="${letter}">${letter}</a></li>`)
.join(""),
secret: "You have found the secr... |
import { toPromise } from '../utils';
import { convertBlockNumberToDate } from '../utils/web3';
export default {
crowdSaleTokenContract: '0xa74476443119a942de498590fe1f2454d7d4ac0d',
information: {
name: 'Golem',
website: 'https://golem.network/',
logo: 'https://golem.network/icons/apple-touch-icon.png... |