text
stringlengths
3
1.05M
#!/bin/python # # USAGE: json-test-v2.py <jsonfilename> # # checks JSON file format for correctness against the mercury JSON schema # # RETURN: 0 on success, nonzero otherwise import jsonschema import json import sys mercury_schema = { 'type': 'object', 'properties': { 'src_ip': {'type': ...
#!/usr/bin/env python """Backup ZFS filesystems to a remote host""" import logging import sys from optparse import OptionParser from zfs import * from zfs.backup import MbufferedSSHBackup class App(object): """The ZFS backup application Usage: myapp = App(options) app.run() """ def ...
/* * Copyright (C) 2007 Rob Buis <buis@kde.org> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * Th...
#include "tommath.h" #ifdef BN_FAST_MP_MONTGOMERY_REDUCE_C /* LibTomMath, multiple-precision integer library -- Tom St Denis * * LibTomMath is a library that provides multiple-precision * integer arithmetic as well as number theoretic functionality. * * The library was designed directly after the MPI library by *...
const nfetch = require('node-fetch') const JobAction = require('../JobAction').AbstractJobAction class PDFFileRetrieverAction extends JobAction { constructor (partialFp, bill) { super() this.fp = partialFp this.send = nfetch this.bill = bill } perform () { return new Promise((resolve, reject...
""" External simulators =================== This module can be used to easily interface pyABC with model simulations, summary statistics calculators and distance functions written in arbitrary programming languages, only requiring a specified command line interface and file input and output. It has been successfully u...
// Copyright (c) 2017, Compiler Explorer Authors // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // thi...
// Creates a mock interface for the Jitsi Meet client, to // be able to test the UI without having to connect to a // meeting. import { init } from "../../src/init.js"; import { MockJitsiClient as JitsiClient } from "./MockJitsiClient.js"; import { MockUser } from "./MockUser.js"; import { Video } from "../../src/htm...
import Users from 'meteor/vulcan:users'; import { addCallback } from 'meteor/vulcan:core'; import { Comments } from '../../../modules/comments/index.js'; import { performVoteServer } from 'meteor/vulcan:voting'; /** * @summary Make users upvote their own new comments */ function CommentsNewUpvoteOwnComment(comment)...
import { StyleSheet } from "react-native"; export const globalOptions = { name: "womens_travel_colle_34316", url: "https://womens_travel_colle_34316.botics.co", api: "https://womens_travel_colle_34316.botics.co/api/v1" } export const modulesOptions = { "@modules/app-menu": { "copy": "Routes available!" }...
"use strict"; const LIB_INFO_PARSE = require( '../src/lib-info-parse.js' ); const LIB_ASSERT = require( 'assert' ); //--------------------------------------------------------------------- describe( `11) Person Name Tests`, function () { //--------------------------------------------------------------------- ...
# -*- coding: utf-8 -*- from __future__ import unicode_literals import sqlalchemy as sa from sqlalchemy.ext.declarative import declared_attr from ziggurat_foundations.models.base import BaseModel __all__ = ["GroupMixin"] class GroupMixin(BaseModel): """ Mixin for Group model """ __table_args__ = {"mysql_...
from selenium import webdriver import unittest class NewVisitorTest(unittest.TestCase): def setUp(self): self.browser = webdriver.Firefox() def tearDown(self): self.browser.quit() def test_can_start_a_list_and_retrieve_it_later(self): self.browser.get('http://localhost:8000') ...
import React from "react"; import { FooterContainer, FooterSubFill, FooterFill } from "./FooterElements"; import { FaInstagram } from "react-icons/fa"; const Footer = () => { return ( <FooterContainer> <FooterFill> Unete a la Comunidad <FooterSubFill>Entra a nuestro DC</FooterSubFill> ...
from django import forms from .models import Subject, ExternalResource from django.utils.translation import ugettext_lazy as _ class ExternalResourceForm(forms.ModelForm): rsrc_subject = forms.ModelChoiceField(queryset=Subject.objects.all(), empty_label="-------", label=_("Subject")) rsrc_subject.widget.attrs....
import claripy from . import JavaSimProcedure from ...engines.soot.values import SimSootValue_ThisRef, SimSootValue_StringRef from ...engines.soot.expressions import SimSootExpr_NewArray from ... import sim_options as options class UnconstrainedMethod(JavaSimProcedure): __provides__ = ( ('angr.unconstra...
/*! For license information please see 2.9949708f.chunk.js.LICENSE.txt */ (this.webpackJsonpclient=this.webpackJsonpclient||[]).push([[2],Array(162).concat([function(t,e,r){"use strict";r.r(e),function(t){r.d(e,"AElement",(function(){return cn})),r.d(e,"AnimateColorElement",(function(){return qr})),r.d(e,"AnimateElemen...
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M21 13c0-4.97-4.03-9-9-9-1.5 0-2.91.37-4.15 1.02l12.13 12.13C20.63 15.91 21 14.5 21 13zm.95-7.12l-2.83-2.83a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l2.83 2.83c.39.39 1.02.39 1.41 0 .39-.39...
// Licensed to Cloudera, Inc. under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. Cloudera, Inc. licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this f...
const got = require('@/utils/got'); const cheerio = require('cheerio'); const resolve_url = require('url').resolve; const base_url = 'https://jsjxy.hbut.edu.cn'; const map = { xwdt: '/index/xwdt.htm', tzgg: '/index/tzgg.htm', jxxx: '/jxxx.htm', kydt: '/kxyj/kydt.htm', djhd: '/djhd/djhd.htm', }; m...
# -*- coding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "...
import csv import camelot IN_PATH = 'student_attendance.pdf' OUT_PATH = f'{IN_PATH[:-3]}csv' class Converter: def __init__(self, input_path, output_path): self.in_path = input_path self.out_path = output_path def table_to_csv(self, tables): with open(self.out_path, 'w', newline='') ...
console.log('load _drum_79_2_SBLive_sf2'); var _drum_79_2_SBLive_sf2={ zones:[ { midi:128 ,loopStart:0 ,loopEnd:0 ,keyRangeLow:79 ,keyRangeHigh:79 ,sampleRate:44100 ,coarseTune:0 ,fineTune:-48 ,originalPitch:9400 ,sample:'MwAcAuQDgwVBB6gI8QkFCxAMvQxcDb0N1A3VDcYNdA3wDEwMfAuOCo8JdAhHBxwG8...
# Copyright (c) 2017-2019 Uber Technologies, Inc. # SPDX-License-Identifier: Apache-2.0 import math import torch import torch.nn as nn from torch.distributions import MultivariateNormal, constraints import pyro.distributions as dist from pyro.contrib.timeseries.base import TimeSeriesModel from pyro.nn import PyroPar...
# Copyright 2014 NeuroData (http://neurodata.io) # Copyright 2016 The Johns Hopkins University Applied Physics Laboratory # # 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.ap...
Input:: //// [/user/username/projects/myProject/plugin-two/index.d.ts] declare const _default: { features: { featureOne: { actions: { featureOne: { (payload: { name: string; order: number; }...
/* * arch/arm/mach-spear13xx/include/mach/spear.h * * spear13xx Machine family specific definition * * Copyright (C) 2012 ST Microelectronics * Viresh Kumar <viresh.linux@gmail.com> * * This file is licensed under the terms of the GNU General Public * License version 2. This program is licensed "as is" without...
#ifndef CLICKLABEL_H #define CLICKLABEL_H #include <QLabel> class ClickLabel:public QLabel { Q_OBJECT public: explicit ClickLabel(QWidget *parent = 0); ClickLabel(const QString &text, QWidget *parent=0); signals: // 鼠标单击信号 void clicked();//IMClickLabel* label); protected: // 鼠标单击事件 void mo...
module.exports = function (config) { var module = {}; var helper = require(config.HELPER_PATH); /** * This API is used to retrieve the email body which is recieved in given email * @param {email} created email address * @return Response containing Definition for Complete profile data */ module.getInb...
/* (C) 2013-2015, The Regents of The University of Michigan All rights reserved. This software may be available under alternative licensing terms. Contact Edwin Olson, ebolson@umich.edu, for more information. Redistribution and use in source and binary forms, with or without modification, are permitted provided th...
from pytest import raises from gsea_api.gsea.java import GSEADesktop def test_gsea_java(): with raises(Exception, match='Could not find GSEADesktop installation in'): GSEADesktop()
from pollirio.modules import expose from pollirio import choose_dest @expose('version') def version(bot, ievent): bot.msg(choose_dest(ievent), '%s: this is Pollirio, version 0.1' % ievent.nick)
// -*- C++ -*- // Copyright (C) 2007-2014 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library 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 3...
/* * GAMS - General Algebraic Modeling System C++ API * * Copyright (c) 2017-2021 GAMS Software GmbH <support@gams.com> * Copyright (c) 2017-2021 GAMS Development Corp. <support@gams.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentat...
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
/* SPDX-License-Identifier: MIT */ /* SnippetCopyrightText: Copyright © 2022 peanut inventory, muchirijohn */ const { app, BrowserWindow } = require('electron'); const path = require('path'); function createWindow() { const remoteMain = require("@electron/remote/main") remoteMain.initialize() // Create the br...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # (c) @NickxFury from pyrogram import filters, Client from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup, CallbackQuery from bot.translation import Translation # pylint: disable=import-error @Client.on_message(filters.command("start") & filters...
from numpy import array def scigrid_2011_01_06_03(): ppc = {"version": '2'} ppc["baseMVA"] = 100.0 ppc["bus"] = array([ [586, 3, 0, 0, 0, 0, 0, 1.0, 0, 220.0, 0, 1.1, 0.9 ], [589, 2, 0, 0, 0, 0, 0, 1.0, 0, 380.0, 0, 1.1, 0.9 ], [590, 2, 0, 0, 0, 0, 0, 1.0, 0, 380.0, 0, 1.1,...
# Copyright 2012 Viewfinder Inc. All Rights Reserved. """Tests for Health Report system. """ __author__ = 'matt@emailscrubbed.com (Matt Tracy)' import json import time from functools import partial from base_test import DBBaseTestCase from viewfinder.backend.base import counters, util from viewfinder.backend.base.t...
exports.capabilities = { } var html = null var runtime = null var rootItem = null var canvas = null var proxy = [ 'requestAnimationFrame', 'cancelAnimationFrame', 'enterFullscreenMode', 'exitFullscreenMode', 'inFullscreenMode', 'loadImage', //'initText', 'layoutText', //this should not be proxy, implement this ba...
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ Run Regression Test Suite This module calls down into individual test cases via subprocess. It will ...
''' Attribute Based Clustering / K-Means Algorithm Mckenzie Ebert ''' from ..bobs import * from ..primitives import * from ..engines import * from .Pattern import * import random import scipy.spatial as sp class centerInit(Primitive): def __call__(self, points, others): k = others[0] filePath ...
///////////////////////////////////////////////////////// // Viewing.Extension.BarChart // by Philippe Leefsma, March 2017 // ///////////////////////////////////////////////////////// import MultiModelExtensionBase from 'Viewer.MultiModelExtensionBase' import { DropdownButton, MenuItem } from 'react-bootstrap' import W...
/* * Copyright (C) 2008-2019 Ole André Vadla Ravnås <oleavr@nowsecure.com> * Copyright (C) 2008 Christian Berentsen <jc.berentsen@gmail.com> * Copyright (C) 2015 Asger Hautop Drewsen <asgerdrewsen@gmail.com> * * Licence: wxWindows Library Licence, Version 3.1 */ #include "testutil.h" #include "valgrind.h" #ifn...
/* * Copyright 2018 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
import React from 'react' import Form from 'react-bootstrap/Form' import Row from 'react-bootstrap/Row' import InputGroup from 'react-bootstrap/InputGroup' import Button from 'react-bootstrap/Button' import Spinner from 'react-bootstrap/Spinner' export default function AddUrl({ handleChange, scrape, newRecipeId,...
# Copyright 2021 Ross Wightman and Zilliz. 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...
#!/usr/bin/env python3 # Copyright (c) 2015-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test decoding scripts via decodescript RPC command.""" from test_framework.test_framework import OroTe...
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import azure.functions as azf def main(req: azf.HttpRequest): return azf.HttpResponse('bye', status_code=404)
# Copyright (C) 2020, 2022 GreenWaves Technologies, SAS # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # This...
/* * Copyright 2022 HEAVY.AI, Inc. * * 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 ...
#!/usr/bin/env python #----------------------------------------------------------------------------- # Imports #----------------------------------------------------------------------------- import os import sys import glob import shutil import re import subprocess from subprocess import Popen, PIPE from ctypes.util...
#include <stdlib.h> #include <stdio.h> int main() { int a,c; scanf("%d%d",&a,&b); printf("%d\n",a+b); return 0; }
import unittest import pandas as pd import numpy as np import threading import functools import inspect import math import warnings import traceback from parameterized import parameterized from scipy.io.arff import loadarff from scipy.stats import ttest_1samp, ks_2samp from sklearn.cluster import Birch class TestTim...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _svgIcon = require('../../svg-icon'); var _svgIcon2 = _interopRequireD...
import csv from django.http import HttpResponse from frontend.models import Practice, Section def convert_get_param_to_list(param_string): params = [] if param_string: params = param_string.split(",") params = [_f for _f in params if _f] return params def get_practice_ids_from_org(org_st...
// Encoding.convert() and Encoding.urlEncode() are functions by // encoding.js // Copyright (c) 2014-2019 Polygon Planet // https://github.com/polygonplanet/encoding.js // MIT License // https://github.com/polygonplanet/encoding.js/blob/master/LICENSE const queryinfo = { active: true, currentWindow: true } ...
let createStatus = false; export function lightApp() { if (!createStatus) { if (25 > lampAcount.value > 0) { for (let i = 0; i < lampAcount.value; i++) { addLamp(); } } createStatus = !createStatus; } } function addLamp() { let place = docume...
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Intangible() result.template = "object/draft_schematic/weapon/shared_rifle_bowcaster.iff" result.attribute_templa...
from .common import EWSAccountService, to_item_id from ..items import Persona from ..properties import PersonaId from ..util import create_element, set_xml_value, MNS class GetPersona(EWSAccountService): """MSDN: https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/getpersona-operation...
import heapq import json import os import threading import six # Import all of the modules defining section types, so that all subclasses of # ConfigObject are known. These are imported only for their side effects. from . import dhcp from . import firewall from . import network from . import parprouted from . import ...
import os import ConfigParser config = None def read_config(conf_file = None): global config if not conf_file: # Set default conf file to be "./util.cfg" curr_dir = os.path.dirname(os.path.realpath(__file__)) conf_file = "%s/util.cfg" % curr_dir print("Reading config file %s" % conf_fil...
define(['GrapesJS', 'PluginManager', 'chai'], function(GrapesJS, PluginManager, chai) { describe('GrapesJS', function() { describe('Main', function() { var obj; var fixtures; var fixture; var editorName; var htmlString; var config; var storage; var storageId = ...
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2019-08-15 12:02 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('store', '0002_remove_books_book_name'), ] operations = [ migrations.AddField(...
########################################################################## # If not stated otherwise in this file or this component's Licenses.txt # file the following copyright and licenses apply: # # Copyright 2019 RDK Management # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use th...
# 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 use ...
"""services URL Configuration.""" from django.urls import path from . import views urlpatterns = [ path("", views.ServiceList.as_view(), name="service_list"), path( "<str:owner_slug>/<str:name_slug>", views.ServiceDetail.as_view(), name="service_detail", ), path( "<str:...
# -*- coding: utf-8 -*- # Copyright 2019 Tomoki Hayashi # MIT License (https://opensource.org/licenses/MIT) """Parallel WaveGAN Modules.""" import logging import math import torch from .layers import Conv1d from .layers import Conv1d1x1 from .layers import ResidualBlock from .layers import upsample class Parall...
/////////////////////////////////////////////////////////////////////////////// // // File: bsHekMsgs.h // /*! * \file * * \brief \h_botsense Server/Client Hekateros NetMsgs XML Definitions. * * \warning This file was auto-generated on 2018.04.06 10:24:24 from the NetMsgs * XML specification bsHekMsgs.xml. * * ...
# vim:fileencoding=utf-8:noet from __future__ import (unicode_literals, division, absolute_import, print_function) import sys import re from powerline.lib.shell import asrun, run_cmd from powerline.lib.unicode import out_u from powerline.segments import Segment, with_docstring STATE_SYMBOLS = { 'fallback': '', 'p...
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard. */ #import <Cocoa/Cocoa.h> /*#import <IDEKit/IDEViewController.h> #import "DVTEditor-Protocol.h" #import "DVTReplacementViewDelegate-Protocol.h" #import "DVTStatefulObject-Protoco...
export default class Notification { constructor(title, options = {}) { this.title = title; this.dir = options.dir || 'auto'; this.body = options.body || ''; this.icon = options.icon || ''; this.lang = options.lang || ''; this.tag = options.tag || ''; this.sticky = options.stick || false; if ('mozNotifi...
/* * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to You under * the OAI Public Lic...
// This file is required by the index.html file and will // be executed in the renderer process for that window. // All of the Node.js APIs are available in this process. // Initialize Firebase require('./firebase/firebase.js') var signUpBtn = document.getElementById('signUpBtn'); var signInBtn = document.ge...
"""SSD default config""" # pylint: disable=unused-variable,missing-function-docstring,bad-whitespace,missing-class-docstring from typing import Union, Tuple from autocfg import dataclass, field @dataclass class SSD: # Backbone network. backbone : str = 'vgg16_atrous' # base feature network # Input data s...
/* YUI 3.13.0 (build 508226d) Copyright 2013 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('base-core', function (Y, NAME) { /** * The base module provides the Base class, which objects requiring attribute and custom event support can extend. ...
from django.db import models from articles.models import Article from django.conf import settings from django.urls import reverse class Comment(models.Model): article = models.ForeignKey( Article, on_delete=models.CASCADE, related_name='comments' ) comments = models.CharField(max...
from datetime import datetime from email.policy import default from tkinter import N from flask import Flask, jsonify, redirect, render_template, request, url_for, flash from flask_sqlalchemy import SQLAlchemy from importlib_metadata import os import requests import json import datetime from flask_migrate import Migrat...
dic = {} for i in range(10): c = 0 n = int(input()) for i in range(2,n + 1): if n % i == 0: count = 1 for j in range(2,(i//2 + 1)): if(i % j == 0): count = 0 break if(count == 1): ...
/* * Universal Interface for Intel High Definition Audio Codec * * HD audio interface patch for Realtek ALC codecs * * Copyright (c) 2004 Kailang Yang <kailang@realtek.com.tw> * PeiSen Hou <pshou@realtek.com.tw> * Takashi Iwai <tiwai@suse.de> * Jonathan W...
# -*- coding: utf-8 -*- __author__ = 'bars' import os import sys import json import urllib import pandas as pd from pandas.io.json import json_normalize def chunks(l, n): '''Yield successive n-size chunks from l.''' for i in range(0, len(l), n): yield l[i:i + n] class OmimApi(): """Docstring f...
$(document).ready(function() { function roleRequired() { if ($('.role:checked').length > 0) { $('.role').attr('required', false); } else { $('.role').attr('required', true); } } roleRequired(); $('.role').on('change', function() { ...
import pytest def pytest_addoption(parser): parser.addoption( "--app_path", action="store", default="", help="Path where the KF application should be stored") parser.addoption( "--app_name", action="store", default="", help="Name of the KF application") parser.addoption( "--kfct...
""" Convert Coco to TFRecords """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from os.path import join, exists from os import makedirs import numpy as np import tensorflow as tf from pycocotools.coco import COCO from .common import convert_to_example...
__all__ = ["Parser"] from sys import exit try: from ast import addOPTree, assignTree, blockTree, callTree, declrTree, endTree, funcDeclTree, funcHeadTree, idTree, \ ifTree, multOPTree, numberTree, programTree, relOPTree, returnTree, stringTree, typeTree, whileTree import mapper as _mapper except Impor...
# # Copyright (c), 2018-2020, SISSA (International School for Advanced Studies). # All rights reserved. # This file is distributed under the terms of the MIT License. # See the file 'LICENSE' in the root directory of the present # distribution, or http://opensource.org/licenses/MIT. # # @author Davide Brunato <brunato@...
"""This module contains the general information for FabricPoolableVlan ManagedObject.""" from ...ucsmo import ManagedObject from ...ucscoremeta import MoPropertyMeta, MoMeta from ...ucsmeta import VersionMeta class FabricPoolableVlanConsts: pass class FabricPoolableVlan(ManagedObject): """This is FabricPoo...
#!/usr/bin/env python3 import unittest import numpy as np from panda import Panda from panda.tests.safety import libpandasafety_py import panda.tests.safety.common as common from panda.tests.safety.common import CANPackerPanda, MAX_WRONG_COUNTERS MAX_RATE_UP = 4 MAX_RATE_DOWN = 10 MAX_STEER = 300 MAX_RT_DELTA = 75 RT_...
## @ingroup Input_Output-SUAVE # archive.py # # Created: Jan 2015, T. Lukaczyk # Modified: Nov 2016, T. MacDonald # ---------------------------------------------------------------------- # Imports # ---------------------------------------------------------------------- from SUAVE.Core import Data import numpy as np...
# 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 from ... import _utilities, _tables from...
const products = require('../products'); const APIError = require('../rest').APIError; module.exports = { 'GET /api/products': async (ctx, next) => { ctx.rest({ products: products.getProducts() }); }, 'POST /api/products': async (ctx, next) => { var name = ctx.request....
/* * MinGW wrapper: makes gcc behave like MinGW. * * Copyright 2000 Manuel Novoa III * Copyright 2000 Francois Gouget * Copyright 2002 Dimitrie O. Paun * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Fr...
# Copyright 2021 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "LICENSE.txt" file accom...
from __future__ import annotations from collections import defaultdict from typing import DefaultDict class Image: def __init__(self, enh: str, inp: list[list[str]]): self.enh = enh self.width, self.height, self.border = len(inp[0]), len(inp), 50 self.grid = self._new_grid() sel...
# coding: utf-8 """ Yapily API To access endpoints that require authentication, use your application key and secret created in the Dashboard (https://dashboard.yapily.com) # noqa: E501 OpenAPI spec version: 0.0.155 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pp...
# 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...
"""Simple-Salesforce Package Setup""" from setuptools import setup import textwrap import sys pyver_install_requires = [] pyver_tests_require = [] if sys.version_info < (2, 7): pyver_install_requires.append('ordereddict>=1.1') pyver_tests_require.append('unittest2>=0.5.1') if sys.version_info < (3, 0): p...
;(function($){ /** * jqGrid Swedish Translation * Anders Nyberg anders.nyberg@alecta.com * http://wwww.alecta.com * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid = {}; $.jgrid.defaults = { recordtext: "post...
# -*- coding: utf-8 -*- """ Base classes for datasets from different sources: Physionet NSRR Image databases Audio databases Other databases Remarks: 1. for whole-dataset visualizing: http://zzz.bwh.harvard.edu/luna/vignettes/dataplots/ 2. visualizing using UMAP: http://zzz.bwh.harvard.edu/luna/vig...
#!/usr/bin/env python3 # from flask import Flask, request, render_template, jsonify, redirect, g, flash from core.config import * from core.view import head from core.scansf import nScan from core.clonesf import clone from core.dbsf import initDB from core.genToken import genToken, genQRCode from core.sendMail import s...