text stringlengths 3 1.05M |
|---|
/**
* Renders a given attributes object into a format suitable for adding to an
* HTML element.
*/
const nunjucks = require('nunjucks');
/**
* Attribute values will be HTML/attribute escaped.
*
* Example:
* Given: {class: 'basic', 'data-ga': 3}
* Output: class="basic" data-ga="3"
*
* @param {object} at... |
define([
'exports',
'module',
'./config/config',
'./model/CssRule',
'./model/CssRules',
'./view/CssRulesView',
'../selector_manager/model/Selectors',
'../selector_manager/model/Selector'
], function(exports, module, defaults, CssRule, CssRules, CssRulesView, Selectors, Selector) {
... |
"""
Test module for pibackbone.
@author: Charlie Lewis
"""
from pibackbone.main import PiBackbone
def test_initial_question():
instance = PiBackbone()
instance.initial_question()
|
"""Module with all ImageNet models."""
import torch.nn as nn
# simply import all torchvision models here
from torchvision.models import * # noqa: F401, F403
# also import torchvision models with name
import torchvision.models as models
# below we overwrite the torchvision.models.vgg models since we have to wrap
# t... |
/*
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/lice... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[2],{"8IMR":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.... |
var express = require('express');
var mysql = require('mysql');
var app = express();
var readline = require('readline-sync');
app.use(express.static("../"));
var bodyParser = require('body-parser');
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
var request = require('request');
var re... |
import IMLearn.learners.regressors.linear_regression
from IMLearn.learners.regressors import PolynomialFitting
from IMLearn.utils import split_train_test
import numpy as np
import pandas as pd
import plotly.express as px
import plotly.io as pio
pio.templates.default = "simple_white"
pio.renderers.default = "browser"
... |
var categories = [
["Action", 2.0],
["Action Adventure", 2.0],
["Action Platform", 2.0],
["Action RPG", 1.7],
["Action Shooter", 2.2],
["Action Stealth", 2.5],
["Action Survival Horror", 2.5],
["Beat'em Up", 1.0],
["Board Game", 0.5],
["Card Game", 0.5],
["Fighting", 0.7],
["Graphic Adventure", 2.5],
["Int... |
var DOMPurify=require('../ThirdParty/purify');
var defaultValue=require('./defaultValue');
var defined=require('./defined');
var defineProperties=require('./defineProperties');
var Check=require('./Check');
'use strict';
var nextCreditId = 0;
var creditToId = {};
/**
* A credit contains dat... |
import os
import time
import pandas as pd
import tsib
def test_parallel():
starttime = time.time()
res = tsib.simHouseholdsParallel(3, 2010, 2, cores=2, get_hot_water=True)
print("Profile generation took " + str(time.time() - starttime))
if __name__ == "__main__":
test_parallel()
|
#define EXECUTIVE_MODE_ENABLED
#include "e.h"
#include <scaler-server-protocol.h>
#include <transform-server-protocol.h>
static void
_e_viewport_destroy(struct wl_resource *resource)
{
E_Client *ec = wl_resource_get_user_data(resource);
if (!ec->comp_data) return;
if (!ec->comp_data->scaler.viewport) return;... |
/**
* @class Ext.chart.series.Radar
*
* Creates a Radar Chart. A Radar Chart is a useful visualization technique for comparing different quantitative values for
* a constrained number of categories.
*
* As with all other series, the Radar series must be appended in the *series* Chart array configuration. See the ... |
import React, {useState, useEffect, useContext } from 'react'
import Fom from '../../svg/fom.svg'
import { navigate } from 'gatsby'
import { sha256, sha224 } from 'js-sha256';
import { Form, Button, Tabs, Tab, Modal, OverlayTrigger, Tooltip } from 'react-bootstrap'
import { Input } from 'reactstrap'
import Tips from '.... |
from argparse import ArgumentParser
from typing import Any
from django.conf import settings
from django.core.management.base import CommandError
from zerver.lib.management import ZulipBaseCommand
from zerver.lib.send_email import send_custom_email
from zerver.models import Realm, UserProfile
class Command(ZulipBase... |
const express = require('express');
const { errors } = require('celebrate');
const cors = require('cors');
const routes = require('./routes');
const app = express();
app.use(cors());
app.use(express.json());
app.use(routes);
app.use(errors());
module.exports = app;
|
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX_BUF 512
int factorial(int max) {
if(max <= 0) {
return 0;
} else if (max == 1) {
return 1;
} else {
return max * factorial(max - 1);
}
}
int main() {
int max;
printf("Plea... |
ResourceLoader.pushRelativePaths([
"Animation.js",
"LineAnimation.js",
"AltAnimation.js",
"Animation.js",
"DiagonalAnimation.js",
"LineDownAnimation.js",
"LineLeftAnimation.js",
"LineRightAnimation.js",
"LineUpAnimation.js",
"RandomAnimation.js",
"Tree/_imports.js"
]);
|
// userAuthentication.js
// ------------------------------------------------------------------
//
// A module to do user authentication. It supports three different mechanisms,
// currently: fake, and local.
//
// This module could be extended by adding new functions and expanding the list of
// exports. Good candidate... |
//>>built
define("dijit/_editor/nls/th/commands",({"bold":"ตัวหนา","copy":"คัดลอก","cut":"ตัด","delete":"ลบ","indent":"เพิ่มการเยื้อง","insertHorizontalRule":"ไม้บรรทัดแนวนอน","insertOrderedList":"ลำดับเลข","insertUnorderedList":"หัวข้อย่อย","italic":"ตัวเอียง","justifyCenter":"จัดแนวกึ่งกลาง","justifyFull":"ชิดขอบ","... |
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] =... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
# Copyright (C) 2022, Arijit Das.
# Code adapted from doctr and huggingface
# This program is licensed under the Apache License version 2.
# See LICENSE or go to <https://www.apache.org/licenses/LICENSE-2.0.txt> for full license details.
from typing import Any, List, Union
import numpy as np
import torch
from torch i... |
/*
* Arm SCP/MCP Software
* Copyright (c) 2020, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
* Description:
* ROM firmware memory layout for the linker script.
*/
#ifndef FMW_MEMORY_H
#define FMW_MEMORY_H
#include "scp_mmap.h"
#include "scp_software_mmap.h... |
//
// UIColor+LNHexString.h
// LNCategories
//
// Created by 童玉龙 on 2017/7/19.
// Copyright © 2017年 Lengain. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIColor (LNHexString)
+ (UIColor *)ln_colorWithHexString:(NSString *)color;
+ (UIColor *)ln_colorWithHexString:(NSString *)color alpha:(CGFloat)a... |
'use strict'
const path = require('path')
const utils = require('./utils')
const webpack = require('webpack')
const config = require('../config')
const merge = require('webpack-merge')
const baseWebpackConfig = require('./webpack.base.conf')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const HtmlWebpackPlug... |
from functools import lru_cache
from host.models import PkeyModel
class AppSetting():
keys = ('public_key', 'private_key')
@classmethod
@lru_cache(maxsize=64)
def get(cls, name):
"""获取秘钥对"""
info = PkeyModel.objects.filter(name=name).first()
if not info:
raise Key... |
#!/usr/bin/env python3
# @generated AUTOGENERATED file. Do not Change!
from dataclasses import dataclass
from datetime import datetime
from gql.gql.datetime_utils import DATETIME_FIELD
from gql.gql.graphql_client import GraphqlClient
from gql.gql.client import OperationException
from gql.gql.reporter import FailedOper... |
# coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: release-1.20
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import si... |
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
const RobustCalculator = require("./calculators/RobustCalculator");
const SimpleRateCalculator_1 = require("./calculators/SimpleRateCalculator");
... |
import { APP_SETTING } from "../../achievementsApp/config";
import {
DISPLAY_NAME_UPDATE_REQUEST,
EXTERNAL_PROFILE_REFRESH_REQUEST,
EXTERNAL_PROFILE_REMOVE_REQUEST,
EXTERNAL_PROFILE_UPDATE_REQUEST,
displayNameEditToggle,
displayNameUpdateFail,
displayNameUpdateSuccess,
externalProfileDialogHide,
exter... |
# coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.14.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
i... |
//
// FKFlickrGroupsJoin.h
// FlickrKit
//
// Generated by FKAPIBuilder.
// Copyright (c) 2013 DevedUp Ltd. All rights reserved. http://www.devedup.com
//
// DO NOT MODIFY THIS FILE - IT IS MACHINE GENERATED
#import "FKFlickrAPIMethod.h"
typedef NS_ENUM(NSInteger, FKFlickrGroupsJoinError) {
FKFlickrGroupsJoinE... |
from __future__ import division, absolute_import, print_function
import collections
import tempfile
import sys
import shutil
import warnings
import operator
import io
import itertools
import ctypes
import os
if sys.version_info[0] >= 3:
import builtins
else:
import __builtin__ as builtins
from decimal import D... |
import events from '../events';
import { createElement } from '../utils/elements';
const UzPause = {
begin: false,
timeStart: 0,
timeEnd: 5000,
isPlaying: false,
trackingTimer: null,
timeTemp: 0,
setup() {
UzPause.ready.call(this);
},
ready() {
const player = this;
// Listen fragment bu... |
/* eslint-env jest */
test('test', () => {})
|
import React from "react";
import PropTypes from "prop-types";
import { AboutPageTemplate } from "../../templates/about-page";
const AboutPagePreview = ({ entry, widgetFor }) => (
<AboutPageTemplate
title={entry.getIn(["data", "title"])}
content={widgetFor("body")}
/>
);
AboutPagePreview.propTypes = {
e... |
/*jshint maxlen:10000000 */
export default {"faq.html": "\u003Cul class=\"nav-pills\"\u003E\n \u003Cli\u003E\u003Ca class=\"active\" href=\"/faq\"\u003EFAQ\u003C/a\u003E\u003C/li\u003E\n \u003Cli\u003E\u003Ca href=\"/tos\"\u003ETerms of Service\u003C/a\u003E\u003C/li\u003E\n \u003Cli\u003E\u003Ca href=\"/privacy\"\u... |
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export class ListBoxItem extends Component {
static defaultProps = {
option: null,
label: null,
selected: false,
onClick: null,
onTouchEnd: null,
tem... |
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
* Version 2.0; y... |
from apps.configuration.editions.technologies_2018 import Technologies
from apps.configuration.models import Configuration, Translation, Value, Key, \
Questiongroup, Category
def run():
Technologies(
key=Key, value=Value, questiongroup=Questiongroup,
category=Category, configuration=Configurat... |
var gulp = require('gulp');
var cssnano = require('gulp-cssnano');
var imagemin = require('gulp-imagemin');
var rev = require('gulp-rev');
var revCollector = require('gulp-rev-collector');
var revDel = require('gulp-rev-delete-original');
var jsonmin = require('gulp-jsonminify');
var watch = require('gulp-watch');
var ... |
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2019-Present Datadog, Inc.
from datadog_api_client.v2.model_utils import ( # noqa: F401
ApiTypeError,
Mo... |
import {html, PolymerElement} from '@polymer/polymer/polymer-element.js';
/**
* `ipfs-response`
* A web component that records the response time from multiple IPFS endpoints
*
* @customElement
* @polymer
* @demo demo/index.html
*/
class IpfsResponse extends PolymerElement {
static get template() {
return ... |
import time
def test_flow_tracking_stats(api, utils):
config = api.config()
api._enable_flow_tracking(True)
# ports
config.ports.port(name="p1", location=utils.settings.ports[0])
config.ports.port(name="p2", location=utils.settings.ports[1])
config.ports.port(name="p3", location=utils.settings... |
"""
eZmax API Definition (Full)
This API expose all the functionnalities for the eZmax and eZsign applications. # noqa: E501
The version of the OpenAPI document: 1.1.7
Contact: support-api@ezmax.ca
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import eZmaxApi
from... |
webpackJsonp([3],Array(46).concat([function(e,o,a){"use strict";var t=a(51),r=a.n(t),i=a(128),n=a(70),s="",d={file:{},download:{}},u=i.a,l=function(){p(),f(),window.plugins&&(window.plugins.file=d.file,window.plugins.downloads=d.download)},c=function(){document.addEventListener("deviceready",l,!1)},p=function(){d.file.... |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Profile(models.Model):
profile_photo = models.ImageField(upload_to = 'profile/', null=True)
editor = models.ForeignKey(User,on_delete=models.... |
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'codesnippet', 'zh-cn', {
button: '插入代码段',
codeContents: '代码内容',
emptySnippetError: '插入的代码不能为空。',
language: '... |
/* eslint-env node */
/* eslint-disable func-style */
'use strict';
const gulp = require('gulp');
const $ = require('gulp-load-plugins')();
const del = require('del');
const rollup = require('rollup').rollup;
const composer = require('gulp-uglify/composer');
const uglify = composer(require('terser'), console);
con... |
function my_function316(){
//38071484443691339429956102913721cmiqQvciVfEHICSAxxTifeeyxXoUvdmy
}
function my_function030(){
//22318346551079441304681658449989kWfZTsoiucrTtfElGTuZxMwyGXkwndSs
}
function my_function853(){
//87026069060937759004129989496364ufKPhWjTkfjVlBjaImyybVSEyiWaOQyM
}
function my_function359(){
/... |
import csv
import os
import cv2
import numpy as np
from keras.models import Sequential
from keras.layers import Flatten, Dense, Lambda, Conv2D, Cropping2D
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
from math import ceil
import random
import sklearn
DATA_LOCATION = '../udacity_... |
import {Area} from '../../path.ux/scripts/screen/ScreenArea.js';
import {STRUCT} from '../../core/struct.js';
import {Container} from '../../path.ux/scripts/core/ui.js';
import {Editor} from '../editor_base.js';
import {PackFlags, UIBase, saveUIData, loadUIData} from '../../path.ux/scripts/core/ui_base.js';
impo... |
##############################################################################
#
# Copyright (c) 2001, 2002 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# TH... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.locationSchema = exports.jobcategorySchema = void 0;
const mongoose = require("mongoose");
var autoIncrement = require('mongoose-auto-increment');
exports.jobcategorySchema = new mongoose.Schema({
jobcateoryId: String,
jobcateo... |
class ListViewItemMouseHoverEventArgs(EventArgs):
"""
Provides data for the System.Windows.Forms.ListView.ItemMouseHover event.
ListViewItemMouseHoverEventArgs(item: ListViewItem)
"""
def __getitem__(self, *args):
""" x.__getitem__(y) <==> x[y] """
pass
@staticmethod
... |
$(document).ready(function(){adminInit("Nuova tratta","Modifica tratta","xhr_tratte","xhr_elimina_tratte","Tratte eliminate");$("#a_partenza,#a_arrivo").select2({dropdownParent:$("#exampleModal"),ajax:{url:__site_url+"/"+__xhr_controller+"/xhr_search_aeroporto",dataType:"json",delay:250,data:function(a){return{q:a.ter... |
import os
import pathlib
from pprint import pprint
import numpy as np
from scipy import stats
from scipy.spatial import distance
import matplotlib.pyplot as plt
from matplotlib.pyplot import figure
import trajectorytools as tt
import trajectorytools.plot as ttplot
import trajectorytools.socialcontext as ttsocial
fro... |
//
// WellCollectionView.h
// yuyan
//
// Created by tangfeimu on 2019/4/10.
// Copyright © 2019 tangfeimu. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol WellDelegate <NSObject>
- (void)send:(NSString *)ID;
@end
@interface WellCollectionView : UICollectionView
@property (nonatomic,strong)NSArray *... |
import React from "react";
import "antd/dist/antd.css";
import "./styles.css";
import { Modal, Descriptions, Divider, Spin } from "antd";
import LoadingBee from "../LoadingBee";
class ModalDetalhesMap extends React.Component {
state = {
modalVisible: false
};
setModalVisible(modalVisible) {
this.setStat... |
#!/usr/bin/env python3
# Copyright 2014 The Emscripten Authors. All rights reserved.
# Emscripten is available under two separate licenses, the MIT license and the
# University of Illinois/NCSA Open Source License. Both these licenses can be
# found in the LICENSE file.
"""Tool to manage building of system libraries... |
# -*- coding: utf-8 -*-
# Copyright 2017, IBM.
#
# This source code is licensed under the Apache License, Version 2.0 found in
# the LICENSE.txt file in the root directory of this source tree.
"""Quantum circuit object."""
from copy import deepcopy
import itertools
import sys
import multiprocessing as mp
import symp... |
from transiter.db import models
import pytest
import datetime
from transiter.services import views
SYSTEM_ID = "1"
ROUTE_ONE_PK = 2
ROUTE_ONE_ID = "3"
ROUTE_TWO_PK = 4
ROUTE_TWO_ID = "5"
ALERT_ID = "6"
ALERT_HEADER = "Header"
ALERT_DESCRIPTION = "Description"
TRIP_ONE_ID = "3"
TRIP_ONE_PK = 4
TRIP_TWO_ID = "5"
TRIP_TW... |
# coding=utf-8
# Copyright 2020 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... |
# include <stdio.h>
#define NUMEROLIVROS 100
#define MAXTITULO 40
#define MAXNOME 20
typedef struct {
int dia;
int mes;
int ano;
} Data;
typedef struct {
char titulo[MAXTITULO+1];
char autor[MAXNOME+1];
long int isbn;
int anoPublicacao;
int numeroDaCopia;
Data dataEmprestimo;
Data dataRetorno;
} Livro;
... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M20 6.83V20H6.83L20 6.83M22 2L2 22h20V2z" />
, 'SignalCellularNull');
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
def main():
print('helloka')
|
var express = require('express');
var usersController = require('../controllers/users');
var categoriesController = require('../controllers/categories');
var challengesController = require('../controllers/challenges');
var awardsController = require('../controllers/awards');
module.exports = function () {
var router... |
// @file endcall.js
class EndCall {
constructor() {
this.container = document.querySelector("#webrtcendcall");
this.xhrLog = new XHRLog(this.container);
this.status = new Status(this.container.querySelector(".status"));
}
set proceedTo(fn) {
this.proceed = fn;
}
set s... |
import sublime, sublime_plugin
import re
def match(rex, str):
m = rex.match(str)
if m:
return m.group(0)
else:
return None
def make_completion(tag):
# make it look like
# ("table\tTag", "table>$1</table>"),
return (tag + '\tTag', tag + '>$0</' + tag + '>')
def get_tag_to_attr... |
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be use... |
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol... |
# -*- coding: utf-8 -*-
'''
Copyright (c) 2018 by Tobias Houska
This file is part of Statistical Parameter Optimization Tool for Python(SPOTPY).
:author: Tobias Houska and Motjaba Sadegh
'''
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ imp... |
import logging
from stream.data import generate_id
from stream.service import StreamingService
class YouTubeStreamingService(StreamingService):
def start_stream(self) -> str:
stream_reference = generate_id()
logging.info(f"Starting YouTube stream with reference {stream_reference}.")
retur... |
# Copyright 2021 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... |
from .paginator import Paginator
__version__ = "0.0.1"
|
/*
* This header is generated by classdump-dyld 1.0
* on Saturday, June 1, 2019 at 6:44:38 PM Mountain Standard Time
* Operating System: Version 12.1.1 (Build 16C5050a)
* Image Source: /System/Library/PrivateFrameworks/CloudPhotoLibrary.framework/CloudPhotoLibrary
* classdump-dyld is licensed under GPLv3, Copyright © 2... |
// Custom scripts for the Spyder docs site
;(function () {
'use strict'
/* Top-level variables */
// Name of the dropdown class to check for
const dropdownClassName = 'dropdown'
// Interactive tour driver options
var quickstartDriverOptions = {
animate: false,
opacity: 0.1,
padding: 0,
a... |
'use strict';
var VError = require('verror')
, xtend = require('xtend')
, log = require('./log');
module.exports = function genUpdateFn (opts) {
return function mySqlUpdate (connection, params, callback) {
var sql = opts.stmt.update(params);
log.debug('perform update with sql, "%s"', sql);
connect... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["polyfills"],{
/***/ "0TWp":
/*!*******************************************!*\
!*** ./node_modules/zone.js/dist/zone.js ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require... |
const mongoose = require("mongoose");
const { Schema } = mongoose;
const authorSchema = new Schema(
{
name: {
type: String,
required: true,
},
email: {
type: String,
required: true,
},
},
{
timestamps: true,
versioKey: false,
}
);
const Author = mongoose.model("... |
var searchData=
[
['debug_517',['debug',['../classredland_1_1Logger.html#a8e48332423e589a5e11c8e6ecdd16bf1',1,'redland::Logger']]],
['deleteresultsmap_518',['deleteResultsMap',['../namespaceomexmeta.html#aac58f146c00ed4c492efebb1e239c90b',1,'omexmeta']]],
['disablebacktrace_519',['disableBacktrace',['../classredl... |
#ifndef MTF_XVSSD_SE2
#define MTF_XVSSD_SE2
#include "xvSSDMain.h"
class XVSSDSE2: public XVSSDMain {
typedef XVSE2Stepper< IMAGE_TYPE > STEPPER_TYPE;
typedef XVSSD< IMAGE_TYPE, STEPPER_TYPE > TRACKER_TYPE;
typedef TRACKER_TYPE::SP STATE_PAIR_TYPE;
typedef STEPPER_TYPE::STATE_TYPE STATE_TYPE;... |
import React from "react";
import * as TaskActions from "../actions/TaskActions";
export default class TaskCompleteButton extends React.Component {
constructor(props) {
super();
}
completeTask(id) {
TaskActions.completeTask(id);
}
render() {
const id = this.props.id;
return(
<button t... |
#!/usr/bin/env python
'''
===============================================================================
Interactive Image Segmentation using GrabCut algorithm.
===============================================================================
'''
# Python 2/3 compatibility
from __future__ import print_function
import ... |
import { Link } from "gatsby"
import { useStaticQuery, graphql } from "gatsby"
import React, { useState, useEffect } from "react"
// import { parse } from 'fast-xml-parser';
const RssPage = () => {
const rssUrl = `https://api.rss2json.com/v1/api.json?rss_url=https%3A%2F%2Fnews.ycombinator.com%2Frss`;
const [newsT... |
# -*- coding: utf-8 -*-
#
# Electrum - lightweight Bitcoin client
# Copyright (C) 2016 Thomas Voegtlin
#
# 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 witho... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_CONSENSUS_PARAMS_H
#define BITCOIN_CONSENSUS_PARAMS_H
#include <... |
/**
@license
The MIT License
Copyright (c) 2016 Google, Inc.
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, me... |
"""Contains definition for ResNeSt."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from absl import logging
import numpy as np
import tensorflow.compat.v1 as tf
from dropblock import DropBlock2D
from splat import SplAtConv2D
from utils import TpuBatch... |
!function(t){var s;window.UIkit2&&(s=t(UIkit2)),"function"==typeof define&&define.amd&&define("uikit-nestable",["uikit"],function(){return s||t(UIkit2)})}(function(v){"use strict";var o,a="ontouchstart"in window,h=v.$html,E=[],i=v.$win,n=a?"touchstart":"mousedown",r=a?"touchmove":"mousemove",d=a?"touchend":"mouseup",p=... |
#!/usr/bin/env python3
from fnmatch import fnmatch
from os import path
import argparse
import json
import os
import stat
import re
import subprocess
import sys
import time
from urllib import request
import zipfile
import shutil
import ntpath
# Configuration
## Where do we fetch the list of releases from?
## Get the ... |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... |
const { describe, it, beforeEach, afterEach } = require('mocha')
const action = require('../')
const assert = require('assert')
const core = require('@actions/core')
const sinon = require('sinon')
const { factory, GitHubRelease } = require('release-please/build/src')
const { Node } = require('release-please/build/src/r... |
# Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... |
const jwt = require('jsonwebtoken')
const { matchesId } = require('@kansa/common/auth-user')
const { AuthError, InputError } = require('@kansa/common/errors')
const { sendMail } = require('@kansa/common/mail')
class Vote {
constructor(pgp, db) {
this.db = db
this.getFinalists = this.getFinalists.bind(this)
... |
"""Sound Field Analysis Toolbox.
"""
__version__ = "0.0.1"
from . import modal
from . import util
|
const assert = require("assert");
const analyzer = require("../analyzer.js");
const babelParser = require("@babel/parser");
const AnalyzerError = analyzer.AnalyzerError;
describe("Analyzer", function() {
describe("findImports()", function() {
it("Works with default ES6 import", function() {
... |
var newBlock = require('./new-block.js');
/**
* lost-align: Align nested elements. Apply this to a parent container.
*
* @param {string} [reset|horizontal|vertical|top-left|top-center|top|
* top-right|middle-left|left|middle-center|center|middle-right|right|
* bottom-left|bottom-center|bottom|bottom-right] - The ... |
"""
Dummy Nuqql Backend
"""
import logging
from pathlib import Path
from typing import Callable, List
import nuqql.config
from .backend import Backend
logger = logging.getLogger(__name__)
class NuqqlBackend(Backend):
"""
Class for the nuqql dummy backend
"""
def __init__(self, name: str) -> None:... |