text
stringlengths
3
1.05M
extern void exit (int); int k = 0; main() { int i; int j; for (i = 0; i < 2; i++) { if (k) { if (j != 2) abort (); } else { j = 2; k++; } } exit (0); }
/* Copyright (C) 2012-2019 IBM Corp. * This program is 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...
import pygame from network import Network class Player(): width = height = 50 def __init__(self, startx, starty, color=(255,0,0)): self.x = startx self.y = starty self.velocity = 2 self.color = color def draw(self, g): pygame.draw.rect(g, self.color ...
# Classifier import torch from models.blocks import MLPClassifier from models.blocks import assemble_block class KPCNN(torch.nn.Module): """ classifier it contains two main parts: an encoder part (using kernel point convolution) that performs embedding. classifier : an classical MLP """ d...
function sleep(ms) { const date = Date.now(); let currentDate = null; do { currentDate = Date.now(); } while (currentDate - date < ms); } function send(key,pos){ if(typeof key == "string"){ if(key == key.toUpperCase()){ log("YAY! UPPERCASE!"); window.joyconJS["onLeftJoystickPressed"](true...
def iterate_stupidly_x3(expenses): """ Stupidly iterate three times through the given list and check for the correct sum of 2020 """ for i1, n1 in enumerate(expenses): for i2, n2 in enumerate(expenses[i1:]): for i3, n3 in enumerate(expenses[i2:]): if (int(n1)+int(n2)+...
from turkey.models import Goal, Task, CompletedTask, SiteAdmin, TaskBreak from turkey.version import current_version from sqlalchemy.orm.exc import NoResultFound import datetime import calendar from flask import render_template from flask.ext.login import current_user def int_or_null(data): if data == 'None': ...
""" Not pulled like a normal person. Copy-pasted from D2 repo. """ # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved """ Detectron2 training script with a plain training loop. This scripts reads a given config file and runs the training or evaluation. It is an entry point that is able to train sta...
# -*- coding: utf-8 -*- # Copyright 2015 Telefonica Investigación y Desarrollo, S.A.U # # This file is part of FIWARE project. # # 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://w...
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** 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 ...
/* * This header is generated by classdump-dyld 1.5 * on Wednesday, October 27, 2021 at 3:23:31 PM Mountain Standard Time * Operating System: Version 13.5.1 (Build 17F80) * Image Source: /System/Library/PrivateFrameworks/NanoAud...
r""" PicoSAT Solver This solver relies on the ``pycosat`` Python bindings to ``PicoSAT``. The ``pycosat`` package should be installed on your Sage installation. AUTHORS: - Thierry Monteil (2018): initial version. """ #***************************************************************************** # Copyright (...
import bundles from './bundles'; import resultList from './components/resultList'; import resultSummary from './components/resultSummary'; import suggestions from './components/suggestions'; import {Status, Filters, Results, Views} from './components/geneSearchUI'; export { bundles, resultList, resultSummary, suggesti...
#!/usr/bin/env python3 from __future__ import annotations import argparse import datetime import os import subprocess from collections import Counter from collections.abc import Sequence from typing import Any from typing import Dict from typing import NamedTuple from typing import Tuple from typing import Union impo...
from django.contrib import admin from .models import TaskerSkill, BusinessPhoto, Timeslot, TaskerAvailability admin.site.register(BusinessPhoto) admin.site.register(Timeslot) admin.site.register(TaskerSkill) admin.site.register(TaskerAvailability) # Register your models here.
'use strict'; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeMax = Math.max, nativeMin = Math.min; /** * Gets the view, applying any `transforms` to the `start` and `end` positions. * * @private * @param {number} start The start of the view. * @param {numb...
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.lang['vi']={"editor":"Bộ soạn thảo văn bản có định dạng","editorPanel":"Bảng điều khiển Rich Text Editor","common":{"editorHelp":"Nhấn ALT + 0 để được giúp đỡ",...
from time import sleep import pywinusb.hid as hid from collections import namedtuple import timeit import copy from pywinusb.hid import usage_pages, helpers, winapi # current version number __version__ = "0.2.2" # clock for timing high_acc_clock = timeit.default_timer GENERIC_PAGE = 0x1 BUTTON_PAGE = 0x9 LED_PAGE = ...
module.exports = { env: { node: true, }, extends: [ 'eslint:recommended', 'plugin:@typescript-eslint/recommended', 'airbnb-base', 'airbnb-typescript/base', 'plugin:import/errors', 'plugin:import/warnings', 'plugin:import/typescript', 'prettier', ], plugins: ['import', '@typ...
// // DelayAPO.h -- Copyright (c) Microsoft Corporation. All rights reserved. // // Description: // // Declaration of the CDelayAPO class. // #pragma once #include <audioenginebaseapo.h> #include <BaseAudioProcessingObject.h> #include <DelayAPOInterface.h> #include <DelayAPODll.h> #include <commonma...
/* This is free and unencumbered software released into the public domain. */ import { AccountID } from './account.js'; import { existsSync, readFileSync } from 'fs'; import * as NEAR from 'near-api-js'; export const KeyPair = NEAR.KeyPair; const InMemoryKeyStore = NEAR.keyStores.InMemoryKeyStore; const MergeKeyStore =...
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["vuex-orm-axios"]=e():t["vuex-orm-axios"]=e()}(global,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l...
import pandas as pd from ml.preprocessing.normalization import Normalizer from sklearn.preprocessing import OneHotEncoder from sklearn.model_selection import train_test_split from category_encoders import * import logging logging.getLogger().setLevel(logging.INFO) class Preprocessing: """ Class to perform da...
# Copyright 2020 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...
# Copyright (c) 2020 by Fraunhofer Institute for Energy Economics # and Energy System Technology (IEE), Kassel. All rights reserved. # Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. import copy import pandas as pd from numpy import dtype from pandapower import pandap...
#!/usr/bin/env python #~ Copyright 2015 Wieger Wesselink. #~ Distributed under the Boost Software License, Version 1.0. #~ (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) import os import re import sys sys.path += [os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'python')...
# 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 from...
import Jimp from "jimp" import renderDeadByDaylightBuild from "render-dead-by-daylight-build" export default async (perkIds, backgroundBuffer) => { const foregroundBuffer = await renderDeadByDaylightBuild(perkIds) const foregroundJimp = await Jimp.create(foregroundBuffer) const backgroundJimp = await Jimp.create...
const Joi = require('joi'); const schema = Joi.object({ _id: Joi.string(), createdOn: Joi.date(), updatedOn: Joi.date(), startTime: Joi.date() .required(), finishTime: Joi.date(), status: Joi.string() .required(), error: Joi.string(), errorStack: Joi.string(), duration: Joi.string(), migrat...
# Copyright (c) 2021, NVIDIA CORPORATION. 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 appli...
const { execSync } = require('child_process'); const path = require('path'); const parse = require('./utils/parse-argv'); const error = require('./utils/error'); // Debug util const exec = process.env.DEBUG ? cmd => { console.log(`[DEBUG] ${cmd}`); } : execSync; // Append --team space-program to all now ...
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange from ccxt.base.errors import ExchangeError from ccxt.base.errors import ArgumentsRequired from ccxt...
import request from '@/utils/request' import { getToken } from '@/utils/auth' import { ROAST_CONFIG } from '../config.js' let token = getToken() export function getCustomerTypeList(query) { return request({ // url: '/customerType/list', url: ROAST_CONFIG.API_URL + '/customerTypeList', method: 'get', ...
// Clinton Garwood // Created by ncc306 on 2/28/22. // Bird header file Bird.h #include <string> using namespace std; #ifndef GIT_DEMO_BIRD_H #define GIT_DEMO_BIRD_H class Bird { public: Bird(std::string); int get_seeds(); private: int seeds = 10; int nuts = 2; std::string bird_type; }; #endi...
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="bigfastapi", # This is the name of the package version="0.5.7", # The initial release version author="BigFastAPI Team", # Full name o...
// This file is part of EH-WebComponents, Copyright (C) Todd D. Esposito 2021. // Distributed under the MIT License (see https://opensource.org/licenses/MIT). window.customElements.define("eh-notification",class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.onClick=this.onClick.bind(th...
from __future__ import absolute_import from utils import queryBuilder as qb from .UrlUtils import UrlUtils as UU import sys import os import json from lxml.etree import parse from utils.createImage import createImage uu = UU() def get_list(version,sensor): meta = {'system_version':version,'dataset':'interferogra...
const constants = require('../../../../constants'); function isBackbeatUser(canonicalID) { const canonicalIDArray = canonicalID.split('/'); const serviceName = canonicalIDArray[canonicalIDArray.length - 1]; return ['replication', 'lifecycle', 'gc'].includes(serviceName); } function isBucketAuthorized(buck...
from pprint import pprint from cloudmesh.common.util import banner from cloudmesh.common.util import readfile from cloudmesh.common.util import writefile from cloudmesh.common.util import yn_choice from cloudmesh.sbatch.sbatch import SBatch from cloudmesh.sbatch.slurm import Slurm from cloudmesh.shell.command import P...
( function () { 'use strict' angular.module( 'daxude.config', [] ); } )();
(function () { 'use strict'; angular .module('users.admin') .controller('UserListController', UserListController); UserListController.$inject = ['$scope', '$filter', 'AdminService']; function UserListController($scope, $filter, AdminService) { var vm = this; vm.buildPager = buildPager; vm...
class Card: __cards_counter = 0 def get_counter(): return Card.__cards_counter get_counter = staticmethod(get_counter) def __init__(self, cards_title, cards_description, cards_labels, cards_members, board_address): self.__cards_title = cards_title self.__cards_description = car...
""" DZIENDOBRY is a simple, yet powerful, robuse and extensible service discovery protocol. The server is only a single script in size, and configuration is inline. See README for protocol specification, COPYING for license. """ services = { '0ababec8-0851-4818-9c62-5bbd82cd3687': '' # SMOK Z } import uuid,...
/** * jQuery asScrollable v0.4.10 * https://github.com/amazingSurge/jquery-asScrollable * * Copyright (c) amazingSurge * Released under the LGPL-3.0 license */ import $ from 'jquery'; var DEFAULTS = { namespace: 'asScrollable', skin: null, contentSelector: null, containerSelector: null, enabledClass: 'is-...
import unittest from environments.spe_ed import Cells, SavedGame from tests.heuristic_test import default_round1_board class TestCells(unittest.TestCase): def test_dimension(self): """Check proper width and height.""" cells = Cells(default_round1_board()[0]) self.assertEqual(c...
/* * This header is generated by classdump-dyld 1.5 * on Wednesday, October 27, 2021 at 3:17:41 PM Mountain Standard Time * Operating System: Version 13.5.1 (Build 17F80) * Image Source: /System/Library/PrivateFrameworks/Running...
/** * @license * Copyright 2012 Google LLC * SPDX-License-Identifier: Apache-2.0 */ /** * @fileoverview Blocks for Blockly's Block Factory application. */ 'use strict'; Blockly.Blocks['factory_base'] = { // Base of new block. init: function() { this.setColour(120); this.appendDummyInput() .a...
var searchData= [ ['beep_5ftypedef_3620',['BEEP_TypeDef',['../d4/d67/stm8s_8h.html#a6e136dd2cc6651f2080114f9df1470c3',1,'BEEP_TypeDef():&#160;stm8s.h'],['../d3/d3b/inline_2stm8s_8h.html#a6e136dd2cc6651f2080114f9df1470c3',1,'BEEP_TypeDef():&#160;stm8s.h']]] ];
import carrinho from "../componentes/carrinho.js"; import mensagem from "../componentes/mensagem.js"; let listaDeCompras = []; const adicionarProdutoNaLista = ( codigo, imagem, descricao, quantidade, valorTotalProduto ) => { const isItemLista = listaDeCompras.some( (carrinho) => carrinho.codigo === cod...
// Karma configuration module.exports = function(config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: './lib/client/', // frameworks to use // available frameworks: https://npmjs.org/browse/keyword/karma-adapter frameworks: ['systemjs', '...
import random from rl.action import Action from rl.agent.agent import Agent from rl.domain import Domain from rl.state import State from rl.task import Task from rl.valuefunction.tabular import StateActionValueTable class QLearning(Agent): def __init__(self, domain: Domain, task: Task, epsilon=0.1, alpha=0.6, ga...
""" Test Message """ import copy import time from typing import Any, Dict, Optional import pytest from alsek._utils.temporal import utcnow_timestamp_ms from alsek.core.backoff import ConstantBackoff from alsek.core.concurrency import Lock from alsek.core.message import Message from alsek.storage.backends import...
# -*- coding: utf8 -*- # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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...
# MINLP written by GAMS Convert at 04/21/18 13:52:43 # # Equation counts # Total E G L N X C B # 9 1 8 0 0 0 0 0 # # Variable counts # x b i s1s s2s sc ...
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M5 9l1.41 1.41L11 5.83V22h2V5.83l4.59 4.59L19 9l-7-7-7 7z" }), 'NorthTwoTone');
import json import os from typing import Any, Dict import pytest import torch import torch.nn.functional as F from torch import nn, Tensor from torch.optim import Optimizer from torch.utils.data import DataLoader from pytorch_lightning import LightningModule, seed_everything, Trainer from pytorch_lightning.callbacks ...
# 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"); you may not u...
""" Utility functions for dealing with KBase services, etc. """ __author__ = 'Dan Gunter <dkgunter@lbl.gov>' __date__ = '1/6/14' import json import os import re import requests from setuptools import Command import time from .kvp import KVP_EXPR, parse_kvp from biokbase.workspace.client import Workspace as WS2 from bi...
/** * This file contains the handling of RX in wlan driver. */ #include <linux/etherdevice.h> #include <linux/types.h> #include "hostcmd.h" #include "radiotap.h" #include "decl.h" #include "dev.h" #include "wext.h" struct eth803hdr { u8 dest_addr[6]; u8 src_addr[6]; u16 h803_len; } __attribute__ ((packed)); s...
//# sourceMappingURL=ContensisQueryFactory.js.map
/* * addresses.c * * Created on: 24 Jul 2019 * Author: me */ #include "addresses.h" extern SPI_HandleTypeDef hspi1; extern I2C_HandleTypeDef hi2c1; uint8_t lastSeenAddress=0; void AddressHeader(){ globalVals.addressSubMode = (*bufferSPI_RX>>4) & 0x3; if(!globalVals.touchRunning){ InitTouch_ADC(); } i...
#!/usr/bin/python #coding=utf-8 import sys from openstack import connection from openstack import utils import time utils.enable_logging(debug = True, stream = sys.stdout) username = "***" password = "***" projectId = "128a7bf965154373a7b73c89eb6b65aa" userDomainId = "3b011b89b2f64fb68782a43380e2a78f" auth_url = "htt...
import os import sys conan_profile_path = "" python_exe = "" conan_exe = "" conan_user_path = "" def compute_globals(): global conan_profile_path global python_exe global conan_exe global conan_user_path if os.getenv('PYTHON_EXE'): python_exe = os.getenv('PYTHON_EXE') else: p...
import React from 'react'; import { render } from 'react-dom'; import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; // Puts Redux DevTools into a separate window. // Based on https://gist.github.com/tlrobinson/1e63d15d3e5f33410ef7#gistcomment-1560218. export default function createDevToolsWind...
from core.game import Game, GameField, PlayerField from core.profile import PlayerProfile, DeckList from core.components import TokenGroup import core.exceptions import json import pytest class TestBoard: def test_profile_smoke(self): test_profile = PlayerProfile() def test_player_field_smoke(self):...
# Generated by Django 3.2.7 on 2021-09-28 13:56 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
#!/usr/bin/env python3 # Copyright (c) 2014-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. """ ZMQ example using python3's asyncio bitcoinR should be started with the command line argumen...
BX.CrmConfigStatusClass=function(){var t=function(t){this.randomString=t.randomString;this.tabs=t.tabs;this.ajaxUrl=t.ajaxUrl;this.data=t.data;this.oldData=BX.clone(this.data);this.max_sort={};this.requestIsRunning=false;this.totalNumberFields=t.totalNumberFields;this.checkSubmit=false;this.defaultColors=["#39A8EF","#2...
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # 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,...
/*! * OpenUI5 * (c) Copyright 2009-2019 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(["sap/ui/core/library"],function(e){"use strict";var n=e.TextDirection;var t={apiVersion:2};t.render=function(e,n){this.startOpeningDiv(e,n);this.renderHea...
import React from "react"; import Link from "next/link"; import PageTitle from "../components/PageTitle"; const Contato = () => { return ( <div> <PageTitle title="Contato" /> <h1>Contato</h1> <div> <Link href="/"> <a>Home</a> </Link> </div> </div> ); }; exp...
/* * Copyright (c) 2018 Yubico AB. All rights reserved. * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE file. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "extern.h" void usage(void) { fprintf(stderr, "usage: fido2-token [-CIRS] [-d] devi...
''' Scenario discovery utilities used by both :mod:`cart` and :mod:`prim` ''' import abc import enum import itertools import matplotlib as mpl import matplotlib.pyplot as plt import matplotlib.patches as patches from mpl_toolkits.axes_grid1 import host_subplot # @UnresolvedImports import numpy as np import pandas as p...
import CoreRouteBase from 'ember-core/routes/base'; export default CoreRouteBase.extend();
#!/usr/bin/env python3.4 # # Copyright 2016 - The Android Open Source Project # # 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 # # ...
#ifndef ANGEL_H #define ANGEL_H #include <module.h> class AngelSystem; class Angel : public Module { public: Angel (Engine *engine); ~Angel (); const char *description () const; const char *version ...
# -*- coding: utf-8 -*- # # Copyright 2018 Google 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 requir...
from opensfm import reconstruction from opensfm.synthetic_data import synthetic_dataset, synthetic_scene def test_reconstruction_incremental( scene_synthetic: synthetic_scene.SyntheticInputData, ): reference = scene_synthetic.reconstruction dataset = synthetic_dataset.SyntheticDataSet( reference, ...
"use strict"; (self["webpackChunk"] = self["webpackChunk"] || []).push([["resources_js_components_backend_pages_user_edit_vue"],{ /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/backend/pages/user/e...
/* jBar v2.0.0 by Todd Motto: http://toddmotto.com Latest version: https://github.com/toddmotto/jBar Copyright 2013 Todd Motto Licensed under the MIT license http://www.opensource.org/licenses/mit-license.php The jBar plugin, a simple and lightweight notification banner. */ !function(e,t,n){"use strict";var...
import Webpack from 'webpack' import WebpackDevServer from 'webpack-dev-server' import webpackConfig from './webpack.config.js' const compiler = Webpack(webpackConfig) const server = new WebpackDevServer(compiler, { stats: { colors: true } }) const port = 8080 server.listen(port, '0.0.0.0', function() { co...
class AsdfWarning(Warning): """ The base warning class from which all ASDF warnings should inherit. """ class AsdfDeprecationWarning(AsdfWarning, DeprecationWarning): """ A warning class to indicate a deprecated feature. """ class AsdfConversionWarning(AsdfWarning): """ Warning class u...
import functools import threading import time import lru from vns_web3.utils.caching import ( generate_cache_key, ) SIMPLE_CACHE_RPC_WHITELIST = { 'web3_clientVersion', 'web3_sha3', 'net_version', # 'net_peerCount', # 'net_listening', 'eth_protocolVersion', # 'eth_syncing', # 'eth...
import Mark from './mark' import { List, Record, Set } from 'immutable' /** * Record. */ const CharacterRecord = new Record({ marks: new Set(), text: '' }) /** * Character. */ class Character extends CharacterRecord { /** * Create a character record with `properties`. * * @param {Object} proper...
from django.conf.urls import url from apps.api import views urlpatterns = [ url(r'^logout', views.logout, name='api-logout'), url(r'^login', views.login, name='api-login'), url(r'^signup', views.signup, name='api-signup'), url(r'^add_site_load_script/(?P<token>\w+)', views.add_site_load_script, name='a...
const checker = require("license-checker"); const path = require("path"); const { promisify } = require("util"); const { version } = require("../package.json"); /** * A list of all the allowed licenses that production dependencies can have. */ const ALLOWED_LICENSES = [ "(Apache-2.0 OR MPL-1.1)", "(AFL-2.1 OR BS...
/** * Copyright (c) 2006-2020 LOVE Development Team * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, * ...
"""Numeric integration of data coming from a source sensor over time.""" from decimal import Decimal, DecimalException import logging import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import ( ATTR_UNIT_OF_MEASUREMENT, CONF_NAME, STATE_UNAVAILABL...
const express = require('express') const routes = express.Router() const multer = require('../app/middlewares/multer') const { ownerOfRecipeOrAdmin } = require('../app/middlewares/session') const RecipeValidator = require('../app/validators/recipe') const RecipeController = require('../app/controllers/RecipeCont...
/* Copyright (C) Federico Zivolo 2017 Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT). */ (function (e, t) { 'object' == typeof exports && 'undefined' != typeof module ? module.exports = t() : 'function' == typeof define && define.amd ? define(t) : e.Popper = t() })(th...
# coding: utf-8 """ NiFi Rest Api The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, ...
var div_banner1, div_banner2; function CreateTranslateWaitBanner(oPatentObject, sMessage) { var iframes = document.getElementsByTagName('iframe'); if (iframes.length > 0) { for (var i = 0; i < iframes.length; i++) { iframes[i].style.visibility = "hidden"; } } CreateWaitBanne...
; (function ($, window, document, undefined) { 'use strict'; Foundation.libs.alert = { name: 'alert', version: '5.2.2', settings: { callback: function () { } }, init: function (scope, method, options) { this.bindings(method, options...
# model settings norm_cfg = dict(type='BN', requires_grad=True) model = dict( type='EncoderDecoder', pretrained='open-mmlab://resnet50_v1c', backbone=dict( type='ResNetV1c', depth=50, num_stages=4, out_indices=(0, 1, 2, 3), dilations=(1, 1, 2, 4), strides=(1, ...
const request = require("supertest"); const server = require("./server.js"); const db = require("./data/db-config"); const Item = require("./items/items-model"); const item1 = { item_name: "peace", source: "tia", ingredients: "beans rice", instructions: "cook with patience", category: "dinner", user_id: 1,...
import tempfile import unittest from pyalink.alink import * class TestPipeline(unittest.TestCase): def setUp(self) -> None: self.source = CsvSourceBatchOp() \ .setSchemaStr( "sepal_length double, sepal_width double, petal_length double, petal_width double, category string") \ ...
/* * 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"); you may ...
import React, {Component} from 'react'; import { CoinSearch } from "../components"; import PropTypes from 'prop-types'; import { Icon, Tabs, Tab } from "@blueprintjs/core"; import { getObjectFromProperty } from "../utils/services"; class CoinSearchContainer extends React.Component { constructor(props) { su...
from unittest import TestCase import numpy as np from diffprivlib.tools.utils import var from diffprivlib.utils import PrivacyLeakWarning, BudgetError class TestVar(TestCase): def test_not_none(self): mech = var self.assertIsNotNone(mech) def test_no_params(self): a = np.array([1, 2...
// // RKDeviceMessageDecoder.h // RobotKit // // Created by Brian Smith on 11/5/12. // Copyright (c) 2012 Orbotix Inc. All rights reserved. // #import <Foundation/Foundation.h> @interface RKDeviceMessageDecoder : NSObject { @private NSDictionary *keyedRepresentation; id rootObject; } @property ( nonatomic,...