text
stringlengths
3
1.05M
import torch from torchvision import datasets import argparse import os ###################################################################### parser = argparse.ArgumentParser(description='DLC prologue file for practical sessions.') parser.add_argument('--full', action='store_true', default=Fals...
/* 4.6 Users Command: USERS Parameters: [ <target> ] The USERS command returns a list of users logged into the server in a format similar to the UNIX commands who(1), rusers(1) and finger(1). If disabled, the correct numeric MUST be returned to indicate this. Because of the security implications...
%matplotlib inline from matplotlib import pyplot as plt import numpy as np # define activation function and its derivative def sigmoid(x): return 1/(1+np.exp(-x)) def sigmoid_p(x): return sigmoid(x)*(1-sigmoid(x)) T = np.linspace(-5,5,100) plt.plot(T,sigmoid(T),c='r') plt.plot(T,sigmoid_p(T),c='b') ## Assi...
import pytest import csv import ipaddr as ipaddress class TestbedInfo(): ''' Parse the CSV file used to describe whole testbed info Please refer to the example of the CSV file format CSV file first line is title The topology name in title is using uniq-name | conf-name ''' def __init__(self...
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ 'use strict...
m=raw_input("enter the number of numbers\n") a=[] for i in range(int(m)): a.append(raw_input()) co=[] for i in a: co.append(i) val=[] for i in a: val.append(-1) def check(num): if num==0: return 1 elif num in co and val[co.index(num)]!=-1: return val[co.index(num)] else: found=False z=0 total=0 for j ...
from unittest.case import skip from test.deploy.deploy_test_case import DeployTestCase class DeployToDebian11Test(DeployTestCase): @skip def test_debian11(self): host_ipv4 = self.create_or_get_server('debian11') self.upload_deb_and_run_tests(host_ipv4) @skip def test_delete_debian11...
from unittest.case import TestCase from forcetype import forcetype class Point: """ Point class """ def __init__(self, x=None, y=None): """ Constructor :param x: :param y: """ self.x = x self.y = y def __add__(self, other): """ Operator+ :param other: :return: """ point = Point() po...
'use strict'; const extract = require('./src/extract'); module.exports = extract;
from nadine.models.core import * from nadine.models.usage import * from nadine.models.payment import * from nadine.models.resource import * from nadine.models.alerts import * # User too for good measure from django.contrib.auth.models import User
# This file is not meant for public use and will be removed in SciPy v2.0.0. import warnings from . import _doccer __all__ = [ # noqa: F822 'docformat', 'inherit_docstring_from', 'indentcount_lines', 'filldoc', 'unindent_dict', 'unindent_string' ] def __dir__(): return __all__ def __getattr__(name)...
const os = require('os') const path = require('path') const pkg = require(path.resolve(process.env.PWD, 'package.json')) module.exports = { javascripts: { extensions: ['js', 'jsx'], hot: { reload: true, noInfo: false, quiet: true, react: false }, devtool: 'eval-cheap-module...
import React, { useEffect } from 'react'; import { FiMessageCircle, FiUsers, FiDownload, FiFolder, } from 'react-icons/fi'; import { AiOutlineEye } from 'react-icons/ai'; import moment from 'moment'; import ReactTooltip from 'react-tooltip'; import { useHistory } from 'react-router-dom'; import ReactPaginate from...
# Copyright (c) 2022 PaddlePaddle 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 app...
#!/usr/bin/env python # coding: utf-8 from __future__ import print_function, unicode_literals, with_statement import argparse import contextlib import requests import sys import csv import matplotlib # Anti-Grain Geometry (AGG) backend so PyGeoIpMap can be used 'headless' matplotlib.use('Agg') import matplotlib.pyplot...
// @flow import React from 'react'; import cx from 'classnames'; import momentPropTypes from 'react-moment-proptypes'; import moment from 'moment'; import css from './CalendarItem.css'; const defaultDate = moment(); type Props = { day: momentPropTypes.momentObj, format: string, dayClassName: string, classNam...
import { JsonApiRouter } from '@/route/JsonApiRouter' import { JsonApiRoute } from '@/route/JsonApiRoute' import fetchMock from 'fetch-mock' fetchMock.config.sendAsJson = false fetchMock.get('http://routes/route', { body: JSON.stringify({ data: [ { type: 'VuexJsonApiRoute', id: 1, a...
# Import libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd # Import dataset dataset = pd.read_csv('Data.csv') X = dataset.iloc[:, :-1].values Y = dataset.iloc[:, -1].values print(f"X = {X}") print(f"Y = {Y}") print() # Imputation: Replacing unknown independent values. ## Use the mean t...
#include <stdlib.h> #include <stdio.h> void shell_sort(int *arr, int n) { int tmp=0; int d=n/2; int j=0; while (d>0) { for (int i=0; i+d<=n;i++) { tmp=arr[i+d]; for (j=i;j>=0;j-=d) { if (tmp<arr[j]) arr[j+d]=arr[j]; else break; } arr[j+d]=tmp; } for (int i=0;i<n;i++) ...
/*************************************************************************************************** * Copyright (c) 2017 - 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: BSD-3-Clause * * Redistribution and use in source and binary forms, with or without * modification, are p...
//adsk.strings.js // Localizable strings used by adsk.common.js // Referenced directly from the HTML or from various JavaScript files var hh_classid = "clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"; var hh_codebase = "hhctrl.ocx#Version=4,74,8793,0"; // Used by topics with collapse-all/expand-al...
define({"topics" : [{"title":"Tips for Expression Completion","shortdesc":"\n <p class=\"shortdesc\">Use the following information and tips when you invoke expression completion:</p>\n ","href":"datacollector\/UserGuide\/Expression_Language\/ExpressionLanguage_overview.html#concept_fwj_...
import requests # -------------- Test Environment ------------------ # import json # import urllib3 # urllib3.disable_warnings() # user_network_answer = 'yes' # project_name = 'default' # authorization = 'Basic YWRtaW46bngyVGVjaDkxMSE=' # url = 'https://10.38.2.9:9440/api/nutanix/v3/{}' # -------------- Calm Environm...
from . import core def _tiledb_to_chunks(tiledb_array): schema = tiledb_array.schema return list(schema.domain.dim(i).tile for i in range(schema.ndim)) def from_tiledb(uri, attribute=None, chunks=None, storage_options=None, **kwargs): """Load array from the TileDB storage format See https://docs.ti...
// eslint-disable-next-line import { UserLayout, BasicLayout, RouteView, BlankLayout, PageView } from '@/components/layouts' import { bxAnaalyse } from '@/core/icons' export const asyncRouterMap = [ { path: '/', name: 'index', component: BasicLayout, meta: { title: '首页' }, redirect: '/dashboard/...
import sys import os import glob import h5py import numpy as np import tifffile as tiff import sima from functools import partial from PyQt4 import QtGui, QtCore from PyQt4.QtCore import * from PyQt4.QtGui import * from PyQt4.uic import loadUi # imports for interfacing matplotlib to pyqt from matplotlib.backends.backen...
# Natural Language Toolkit: GUI Demo for Glue Semantics with Discourse # Representation Theory (DRT) as meaning language # # Author: Dan Garrette <dhgarrette@gmail.com> # # Copyright (C) 2001-2016 NLTK Project # URL: <http://nltk.org/> # For license information, see LICENSE.TXT from nltk imp...
var searchData= [ ['readbuf',['readBuf',['../espenc_8c.html#a89cd52367e9b45f6d73b2b562b5be92d',1,'espenc.c']]], ['readop',['readOp',['../espenc_8c.html#a655fbec696cb6a8e30069f066615d830',1,'espenc.c']]], ['readphybyte',['readPhyByte',['../espenc_8c.html#a6a6cf6fd5a57804e5c5f005babafbafd',1,'espenc.c']]], ['read...
import { l as log } from '../../../../../../_virtual/log.js'; (function (module, exports) { exports.__esModule = true; exports['default'] = function (instance) { instance.registerHelper('log', function () /* message, options */ { var args = [undefined], options = arguments[arguments.length - 1]; ...
#!/usr/bin/python # -*- encoding: utf-8; py-indent-offset: 4 -*- # +------------------------------------------------------------------+ # | ____ _ _ __ __ _ __ | # | / ___| |__ ___ ___| | __ | \/ | |/ / | # | | | | '_ \ / _ \/ __| |/ /...
'use strict'; var api = require('../lib/Level3MediaPortalAPI.js'); /* ======== A Handy Little Nodeunit Reference ======== https://github.com/caolan/nodeunit Test methods: test.expect(numAssertions) test.done() Test assertions: test.ok(value, [message]) test.equal(actual, expected, [message]) ...
/* * Copyright (c) 2015-2016 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the * above copyright notice and this permission notice appear in all * copies. * * THE SOFTWARE IS ...
import logging from mpi4py import MPI from .FedSegAggregator import FedSegAggregator from .FedSegTrainer import FedSegTrainer from .FedSegClientManager import FedSegClientManager from .FedSegServerManager import FedSegServerManager from .MyModelTrainer import MyModelTrainer def FedML_init(): comm = MPI.COMM_WOR...
const moment = require("moment-timezone") moment.tz.setDefault('Europe/Madrid') require('dotenv').config() const { create, Client } = require('@open-wa/wa-automate') const {criarArquivosNecessarios, criarTexto, consoleErro, corTexto} = require('./lib/util') const {verificacaoListaNegraGeral} = require(`./lib/listaNegra...
({ host: '127.0.0.1', balancer: 8000, protocol: 'http', ports: [8001, 8002], timeout: 5000, concurrency: 1000, queue: { size: 2000, timeout: 3000, }, workers: { pool: 2, timeout: 3000, } });
const _ = require('lodash/fp') const db = require('./db') const pgp = require('pg-promise')() const getMachineName = require('./machine-loader').getMachineName const NUM_RESULTS = 500 /** * Get the latest log's timestamp * * @name getLastSeen * @function * @async * * @param {string} deviceId Machine id to get...
import NTask from "../ntask.js"; import Template from "../templates/parents.js"; class Parent extends NTask { constructor(body) { super(); this.body = body; } render() { this.renderParentList(); } renderParentList() { const opts = { method: "GET", ...
import os import subprocess import sys from decimal import Decimal from reportlab.lib.pagesizes import A4 from reportlab.lib.styles import ParagraphStyle from reportlab.lib.units import cm from reportlab.pdfbase import pdfmetrics from reportlab.pdfbase.pdfmetrics import registerFontFamily from reportlab.pdfbase.ttfont...
import numpy as np import tensorflow as tf import tensorflow.keras.backend as K from tensorflow import keras from tqdm import tqdm from nets.frcnn import get_model from nets.frcnn_training import (Generator, LossHistory, class_loss_cls, class_loss_regr, cls_loss, ...
# Copyright 2020 Makani Technologies 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
/** Author and Copyright 2017 Johannes Bernhard Steffens * * 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 app...
# Copyright (c) 2012, 2019 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of the function...
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. #pragma once #include "CoreTypes.h" #include "Containers/Array.h" #include "Containers/UnrealString.h" #include "Containers/Map.h" #include "Misc/Parse.h" #include "Containers/StringConv.h" #include "Misc/DateTime.h" #include "GenericPlatform/GenericPlatfor...
from __future__ import absolute_import from __future__ import print_function import os import veriloggen import thread_stream_rand def test(request): veriloggen.reset() simtype = request.config.getoption('--sim') rslt = thread_stream_rand.run(filename=None, simtype=simtype, ...
import React from 'react' import Header from '../../containers/HeaderContainer' import './BaseLayout.scss' import '../../styles/core.scss' export const BaseLayout = ({ children }) => ( <div> <Header /> <div className='container-fluid base-layout'> <div className='content'> {children} </di...
/* Oxygen WebHelp Plugin Copyright (c) 1998-2016 Syncro Soft SRL, Romania. All rights reserved. */ /** * @description If Chrome and page is local redirect to index_frames.html */ $(document).ready(function () { debug("document ready ..."); // Add @title to page title element (used to rewrite page title to...
const protocolHelper = require("../utils/protocolHelper"); const expect = require("chai").expect; const ganache = require("../utils/ganache"); const App = require("../../src/app"); const AGENT_ACCOUNT = "0x868D9F52f84d33261c03C8B77999f83501cF5A99"; let app, accounts, snapId, protocolVars, web3; // eslint-disable-nex...
// // ORKeyboardReactingApplication.h // // Created by orta therox on 08/04/2013. // Copyright (c) 2013 Orta Therox. All rights reserved. #import <UIKit/UIKit.h> /** @abstract Set this to be the default UIApplication class in your main.m - when you use your app within the simulator you will have the ability t...
// Copyright (c) 2011-2013 The Bitcoin developers // Copyright (c) 2017-2019 The OPALCOIN developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_QT_CSVMODELWRITER_H #define BITCOIN_QT_CSVMODELWRITER_H #i...
(function (factory) { if (typeof define === 'function' && define.amd) { define(['taucharts'], function (tauPlugins) { return factory(tauPlugins); }); } else if (typeof module === 'object' && module.exports) { var tauPlugins = require('taucharts'); module.exports = fac...
from featuretools.primitives import AggregationPrimitive from featuretools.variable_types import Numeric from tsfresh.feature_extraction.feature_calculators import \ augmented_dickey_fuller class AugmentedDickeyFuller(AggregationPrimitive): """The Augmented Dickey-Fuller test is a hypothesis test which checks...
# Generated by Django 3.1 on 2021-03-23 04:10 from django.conf import settings import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import uuid class Migration(migrations.Migration): initial...
const DateScalar = require('../scalars/date.scalar'); const { GraphQLObjectType } = require('graphql'); const { extendSchema } = require('../../../utils/schema.utils'); /** * @name exports * @summary Goal.target Schema */ module.exports = new GraphQLObjectType({ name: 'GoalTarget', description: 'Indicates what...
import React, { Fragment } from 'react'; import clsx from 'clsx'; import { withStyles } from '@material-ui/core/styles'; import Typography from '@material-ui/core/Typography'; import Paper from '@material-ui/core/Paper'; const styles = theme => ({ paper: { minWidth: 300, padding: theme.spacing(2), margi...
# Convert numeric features to bins # Bin the continuous variable ConvertedSalary into 5 bins so_survey_df['equal_binned'] = pd.cut(so_survey_df['ConvertedSalary'], 5) # Print the first 5 rows of the equal_binned column print(so_survey_df[['equal_binned', 'ConvertedSalary']].head()) # Creating customised bins # Impor...
import pyconnect6 import numpy as np class RandomPolicy: def __init__(self): self.board_size = pyconnect6.board_size() def __call__(self, turn, board): size = len(board) value = np.random.rand(size) rand_policy = np.random.rand(size, self.board_size * self.board_size) ...
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
# Copyright 2020 The Flax 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 applicable law or agreed to in wri...
/* eslint-disable */module.exports={languageData:{"plurals":function(n,ord){var s=String(n).split("."),i=s[0],f=s[1]||"",v0=!s[1],i10=i.slice(-1),i100=i.slice(-2),f10=f.slice(-1),f100=f.slice(-2);if(ord)return"other";return v0&&i10==1&&i100!=11||f10==1&&f100!=11?"one":v0&&i10>=2&&i10<=4&&(i100<12||i100>14)||f10>=2&&f10...
const mix = require("laravel-mix"); /* |-------------------------------------------------------------------------- | Mix Asset Management |-------------------------------------------------------------------------- | | Mix provides a clean, fluent API for defining some Webpack build steps | for your Laravel appli...
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
"""Unit tests for enrich class. See Also: :class:`..enrich`: Author: Joey Estabrook <estabroj@ohsu.edu> """ import os import sys base_dir = os.path.dirname(__file__) data_dir = os.path.join(base_dir, "resources") sys.path.extend([os.path.join(base_dir, '../..')]) from sklearn.utils.validation import check_arra...
#! /usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import os import sys import argparse import re import hashlib import json from collections import defaultdict from urlparse import urlparse import requests import boto3 from botocore.exceptions import ClientError from solr import Solr,...
var express = require('express'); var path = require('path'); var cookieParser = require('cookie-parser'); var logger = require('morgan'); const DB = require('./modules/DBhelper'); var indexRouter = require('./routes/index'); var usersRouter = require('./routes/users'); var app = express(); app.use(logger('dev')); a...
const server = require('../src/server.js'); const supertest = require('supertest'); const request = supertest(server.app); describe('Testing Server', () => { it('Should 404 for bad routes', async () => { const response = await request.get('/'); expect(response.status).toEqual(404); }); it('S...
/** * Cesium - https://github.com/AnalyticalGraphicsInc/cesium * * Copyright 2011-2017 Cesium Contributors * * 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/l...
import os import SimpleITK as sitk def list_files(dataset_path): """List files in a dataset directory with the format of the Medical Segmentation Decathlon. Parameters: dataset_path (str): path to a dataset Returns: lst(str): full file names """ train_img_path = os.path.join(dataset_p...
import { ADD, MINUS, LOADING, STOP_LOADING } from '../constants/counter' const INITIAL_STATE = { num: 0, loading: false } export default function counter (state = INITIAL_STATE, action) { switch (action.type) { case ADD: return { ...state, num: state.num + 1 } case MINUS: ...
#ifndef sprite_block_interaction_h #define sprite_block_interaction_h #include <stdint.h> #include <stdbool.h> #include "sprite_block_interaction_types.h" #include "sprite_actor.h" #include "block.h" struct SpriteBlockPositionedInteraction { uint32_t x, y; BlockInteractionAttributes attributes; }; struct Sp...
function fillGalleryUploader(rid) { document.getElementById('gallery-upload-address-input').value = document.querySelector(`[data-rid="${rid}"]`).getAttribute('data-address'); document.getElementById('gallery-upload-descript-input').value = document.querySelector(`[data-rid="${rid}"]`).getAttribute('data-descri...
import React from "react" import PropTypes from "prop-types" import "./ToggleButtons.scss" class ToggleButtons extends React.Component { state = { active: this.props.active, } buttonFn = e => { this.setState({ active: e.target.name, }) this.props.changeFn(e) } render() { ...
import React, { useContext } from "react"; import { useParams } from "react-router-dom"; import styled from "styled-components"; import { UserContext } from "../../contexts/UserContext"; import ListedCard from "./ListedCard"; const List = () => { // List can be for when you visit a list url like /mylist or /wishlist ...
const Footer = () => { const today = new Date(); return ( <footer> <p>Copyright &copy; {today.getFullYear()}</p> </footer> ) } export default Footer
'use strict'; const createContent = (m => /* c8 ignore start */ m.__esModule ? m.default : m /* c8 ignore stop */)(require('@ungap/create-content')); const {indexOf} = require('uarray'); // from a generic path, retrieves the exact targeted node const reducePath = ({childNodes}, i) => childNodes[i]; exports.reducePath ...
var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { var myObj = JSON.parse(this.responseText); var myDis = myObj.districtsDaily.Bihar["Madhepura"]; var len = myDis.length; var x ; var date = [] ; var active = [] ; var con...
from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives.asymmetric import rsa from hybrid_rsa_aes import HybridCipher def test_encrypt_decrypt(): rsa_private_key = rsa.generate_private_key( public_exponent=65537, key_size=2048, backend=default_backend() ) rsa...
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License,...
"""Tests for the VCS archive module.""" from typing import AsyncGenerator from typing import cast from unittest.mock import MagicMock import pytest import pytest_asyncio from lxml import etree # noqa: S410 from pytest_mock import MockerFixture from afesta_tools.vcs import GoodsType from afesta_tools.vcs import VCZAr...
"""\ ------------------------------------------------------------ USE: python <PROGNAME> (options) file1...fileN OPTIONS: -h : print this help message -b : use BINARY weights (default: count weighting) -s FILE : use stoplist file FILE -I PATT : identify input files using pattern PATT, (ot...
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. /** * * This thumbnail renderer displays a given AnimBlueprint */ #pragma once #include "AnimBlueprintThumbnailRenderer.generated.h" UCLASS(config=Editor, MinimalAPI) class UAnimBlueprintThumbnailRenderer : public UDefaultSizedThumbnailRenderer { GENER...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__char_listen_socket_execl_64b.c Label Definition File: CWE78_OS_Command_Injection.no_path.label.xml Template File: sources-sink-64b.tmpl.c */ /* * @description * CWE: 78 OS Command Injection * BadSource: listen_socket Read data using a ...
/** * Created by jrpikong on 14/03/17. */ export const clientId ='2' export const clientSecret = 'jDFmLYsT5pEUxSaErG48uDNzHDdq0tVZQkoGwYcj' export const getHeader = function () { const tokenData = JSON.parse(window.localStorage.getItem('authUser')) const headers = { 'Accept' : 'application/json', ...
/** * @fileOverview Kickass library to create and place poppers near their reference elements. * @version {{version}} * @license * Copyright (c) 2016 Federico Zivolo and contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation f...
#ifndef PIDCONTROLLER_H #define PIDCONTROLLER_H #include <geometry_msgs/Pose2D.h> /** * This class implements a PID controller for the rovers. The code * here should not be modified. */ class PIDController { public: PIDController(); float calculateTranslationalVelocity(geometry_msgs::Pose2D currentLocati...
const randomInt = require('random-int') const logger = require('./../module/logger')('Importer: Main') const config = require('./../module/config') const stack = require('./../module/stack') const GDImporter = require('./driver/googleDrive') const startProcess = async (importerClass, doFull) => { try { awa...
/***************************************************************************//** * @file * @brief Communication component implementing BLE Apploader OTA DFU protocol ******************************************************************************* * # License * <b>Copyright 2022 Silicon Laboratories Inc. www.silabs....
const path = require('path'); const { tests } = require('@iobroker/testing'); // Run unit tests - See https://github.com/ioBroker/testing for a detailed explanation and further options tests.unit(path.join(__dirname, '..'));
# Copyright Hybrid Logic Ltd. See LICENSE file for details. from eliot import Field, ActionType from eliot._validation import ValidationError from ipaddr import IPv4Address def _system(name): return u"flocker:route:" + name def validate_ipv4_address(value): if not isinstance(value, IPv4Address): ...
# -*- coding: utf-8 -*- from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.ui import Select from selenium.common.exceptions import NoSuchElementException from selenium.common.exceptions import NoAlertPresentException...
import {Program} from "../../Program.js"; export class sqc extends Program { website = "https://www.speedproject.com/download/old/"; loc = "win2k"; bin = "c:\\Program Files\\SpeedProject\\Squeez 5\\sqc.exe"; args = r => ["x", r.inFile()]; qemuData = ({cwd : "c:\\out"}); renameOut = false; }
import React from 'react' import { Link } from 'gatsby' import styled from 'styled-components'; import logo from '../images/logo.svg' const HeaderWrapper = styled.div` background: #524763; margin-bottom: 1.45rem; img { margin-bottom: 0; } `; const HeaderContainer = styled.div` margin: 0 auto; max-wid...
import{j as a,b3 as e,r,K as o,o as n,m as d,Q as i,n as s}from"./vendor.686fd1d4.js";/* empty css *//* empty css *//* empty css */import{P as t}from"./index.c1dc3b6b.js";import l from"./WorkbenchHeader.4b367831.js";import c from"./ProjectCard.8106b273.js";import m from"./QuickNav...
# # 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 writing, software # ...
import path from "path"; import webpack from "webpack"; export default { entry: ["babel-polyfill", "./src/index.js"], output: { path: path.resolve(__dirname, "../dist"), publicPath: "/", filename: "game.js" }, node: { fs: "empty" }, resolve: { root: [ ...
// This file is automatically compiled by Webpack, along with any other files // present in this directory. You're encouraged to place your actual application logic in // a relevant structure within app/javascript and only use these pack files to reference // that code so it'll be compiled. import "@hotwired/turbo-rai...
/* @license Copyright (c) 2021 Paul H Mason. All rights reserved. */ import { html, fixture, expect, nextFrame } from '@open-wc/testing'; import '../src/obap-scroll-container/obap-scroll-container.js'; import './test-element.js'; describe('obap-scroll-container', () => { /* it('passes the a11y audit', async ()...
module.exports = function(RED) { var ET_Client = require('fuelsdk-node'); function TriggeredSend(config) { RED.nodes.createNode(this,config); var etConfig = RED.nodes.getNode(config.etConfig); var node = this; this.on('input', function(msg) { var createAttributes = function(attributes) { ...
# File generated from python blocks in "doc/atomic-ops.tex" >>> import sys >>> HOST = sys.argv[2] >>> PORT = int(sys.argv[3]) >>> import hyperdex.admin >>> a = hyperdex.admin.Admin(HOST, PORT) >>> a.add_space(''' ... space friendlists ... key username ... attributes ... string first, ... string last, ... set(s...
/* ftest.c -- OpenLDAP Filter API Test */ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software <http://www.openldap.org/>. * * Copyright 1998-2016 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted only as auth...
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # # Code generated. DO NOT EDIT! # template file: justice_py_sdk_codegen/__main__.py # justice-dsm-controller-service (3.2.1) # pylint: d...