answer stringlengths 15 1.25M |
|---|
require('ember-runtime/core');
require('ember-runtime/system/core_object');
require('ember-runtime/mixins/mutable_enumerable');
require('ember-runtime/mixins/copyable');
require('ember-runtime/mixins/freezable');
/**
@module ember
@submodule ember-runtime
*/
var get = Ember.get, set = Ember.set, guidFor = Ember.guidFor... |
// <summary>
// A visual element that shows a wireframe for the specified bounding box.
// </summary>
namespace HelixToolkit.Wpf
{
using System;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Media.Media3D;
<summary>
A visual element that shows a wireframe for the... |
using UnityEngine;
using System;
using System.Collections.Generic;
namespace HUX.Utility
{
public class AABBTree<T> where T : class
{
#region Private Classes
<summary>
Node class for the tree. CAn be either a branch or a leaf.
</summary>
private class AABBNode
{
... |
(function (root, factory) {
if (root === undefined && window !== undefined) root = window;
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module unless amdModuleId is set
define(["jquery"], function (a0) {
return (factory(a0));
});
} else if (typeof module ===... |
<?php
declare(strict_types=1);
namespace Sylius\Component\Core\Promotion\Checker\Rule;
use Sylius\Component\Core\Model\OrderInterface;
use Sylius\Component\Core\Model\OrderItemInterface;
use Sylius\Component\Core\Model\ProductInterface;
use Sylius\Component\Promotion\Checker\Rule\<API key>;
use Sylius\Component\Promoti... |
require 'faraday'
require 'json'
module Twitter
module REST
module Response
class ParseJson < Faraday::Response::Middleware
WHITESPACE_REGEX = /\A^\s*$\z/
def parse(body)
case body
when WHITESPACE_REGEX, nil
nil
else
JSON.parse(body, :sym... |
package org.spongepowered.api.event.item.inventory;
import org.spongepowered.api.entity.living.Living;
import org.spongepowered.api.event.Cancellable;
import org.spongepowered.api.item.inventory.ItemStack;
public interface <API key> extends <API key>, AffectSlotEvent, Cancellable {
/**
* Fired when a {@link Li... |
<h2></h2>
<p>
() <span class="filename">include/config_default.inc.php</span></p>
<p></p>
<h3></h3>
<ul>
<li><strong></strong>: RSS</li>
<li><strong></strong>: </li>
<li><strong>URI</strong>: RSS</li>
<li><strong></strong>:
</li>
<li><strong></strong>: </li>
<li><strong></strong>: </li>
<li><strong></s... |
table.tablesaw {
empty-cells: show;
max-width: 100%;
width: 100%;
}
.tablesaw {
border-collapse: collapse;
width: 100%;
}
/* Structure */
.tablesaw {
border: 0;
padding: 0;
}
.tablesaw th,
.tablesaw td {
box-sizing: border-box;
padding: .5em .7em;
}
.tablesaw thead tr:first-child th {
padding-top: .... |
package org.eclipse.persistence.tools.workbench.framework.context;
import org.eclipse.persistence.tools.workbench.framework.resources.<API key>;
import org.eclipse.persistence.tools.workbench.framework.resources.ResourceRepository;
import org.eclipse.persistence.tools.workbench.framework.resources.<API key>;
/**
* Wra... |
package org.eclipse.persistence.mappings.transformers;
import org.eclipse.persistence.sessions.Session;
import org.eclipse.persistence.core.mappings.transformers.<API key>;
import org.eclipse.persistence.mappings.foundation.<API key>;
/**
* PUBLIC:
* This interface is used by the Transformation Mapping to build the v... |
package org.eclipse.persistence.testing.tests.writing;
import org.eclipse.persistence.testing.framework.*;
import org.eclipse.persistence.descriptors.ClassDescriptor;
import org.eclipse.persistence.sessions.*;
import org.eclipse.persistence.sessions.server.ClientSession;
import org.eclipse.persistence.testing.framework... |
package org.eclipse.persistence.testing.tests.jpa.advanced;
import org.eclipse.persistence.testing.models.jpa.advanced.Project;
/**
* Tests the @PostUpdate events from an Entity.
*
* @author Guy Pelletier
*/
public class <API key> extends CallbackEventTest {
public void test() throws Exception {
m_befor... |
<?php
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Main plugin class
*
* @package <API key>
* @since 2.0.0
*/
if ( ! class_exists( '<API key>' ) ) {
final class <API key> {
/**
* Plugin version
*
* @var string
* @since 2.0.0
... |
/*global window:false */
/*global document:false */
/*global wp:false */
/*global wpmUi:false */
/*global ace:false */
/**
* Admin Javascript functions for PopUp
*/
jQuery(function init_admin() {
// Disables dragging of metaboxes: Users cannot change the metabox order.
function <API key>() {
var boxes... |
goog.provide('ol.source.ImageVector');
goog.require('goog.asserts');
goog.require('goog.events');
goog.require('goog.events.EventType');
goog.require('goog.vec.Mat4');
goog.require('ol.dom');
goog.require('ol.extent');
goog.require('ol.render.canvas.ReplayGroup');
goog.require('ol.renderer.vector');
goog.require('ol.so... |
package manuylov.maxim.ocaml.lang.parser.psi.element.impl;
import com.intellij.lang.ASTNode;
import manuylov.maxim.ocaml.lang.parser.psi.OCamlElementVisitor;
import manuylov.maxim.ocaml.lang.parser.psi.element.<API key>;
import org.jetbrains.annotations.NotNull;
public class <API key> extends <API key> implements <API ... |
#define FTDI_VID 0x0403 /* Vendor Id */
/*** "original" FTDI device PIDs ***/
#define FTDI_8U232AM_PID 0x6001 /* Similar device to SIO above */
#define <API key> 0x6006 /* FTDI's alternate PID for above */
#define FTDI_8U2232C_PID 0x6010 /* Dual channel device */
#define FTDI_4232H_PID 0x6011 /* Quad channel hi-s... |
// modification, are permitted provided that the following conditions
// are met:
// and/or other materials provided with the distribution.
// * Neither the name of Jaroslaw Kowalski nor the names of its
// contributors may be used to endorse or promote products derived from this
// AND ANY EXPRESS OR IMPLIED WARRA... |
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=mac80211
PKG_VERSION:=2014-11-04
PKG_RELEASE:=1
PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
<API key>:=
PKG_MD5SUM:=<API key>
PKG_SOURCE:=compat-wireless-$(PKG_VERSION)$(<API key>).tar.bz2
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/compat-wireless-$(P... |
#include <linux/moduleparam.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/slab.h>
#include <linux/errno.h>
#include <linux/hdreg.h>
#include <linux/kdev_t.h>
#include <linux/blkdev.h>
#include <linux/mutex.h>
#include <linux/scatterlist.h>
#include ... |
#ifndef <API key>
#define <API key>
#ifdef CONFIG_VMSPLIT_2G
#define VMALLOC_END (PAGE_OFFSET + 0x7A000000)
#else
#if defined (CONFIG_LGE_4G_DDR)
/* 2010-06-29 [junyeong.han@lge.com] Support 512MB SDRAM */
/* To support 512MB SDRAM in VMSPLIT_3G */
#define VMALLOC_END (PAGE_OFFSET + 0x3A000000)
#else /* original... |
//# LCExtension.cc: Extend an LCRegion along straight lines to other dimensions
//
//# Associated Universities, Inc. Washington DC, USA.
//
//# This library is free software; you can redistribute it and/or modify it
//
//
//# option) any later version.
//
//# This library is distributed in the hope that it will be usef... |
<?php
namespace Composer\Command;
use Composer\Composer;
use Composer\Factory;
use Composer\Config;
use Composer\Downloader\TransportException;
use Composer\Repository\PlatformRepository;
use Composer\Plugin\CommandEvent;
use Composer\Plugin\PluginEvents;
use Composer\Util\ConfigValidator;
use Composer\Util\IniHelper;
... |
#include <linux/delay.h>
#include <linux/types.h>
#include <linux/i2c.h>
#include <linux/uaccess.h>
#include <linux/miscdevice.h>
#include <media/msm_camera.h>
#include <mach/gpio.h>
#include "mt9d113.h"
#define <API key>
#ifdef <API key>
#define <API key>
#endif
#if defined(<API key>)
#include <linux/workqueue.h>
stat... |
#include <bsp.h>
#include <libchip/rtc.h>
#include <ds1307.h>
/* Forward function declaration */
bool <API key>(int minor);
extern rtc_fns ds1307_fns;
/* The following table configures the RTC drivers used in this BSP */
rtc_tbl RTC_Table[] = {
{
"/dev/rtc", /* sDeviceName */
RTC_CUST... |
/* { dg-do compile } */
/* { dg-options "-O2 -<API key>" } */
/* LLVM LOCAL test not applicable */
/* { dg-require-fdump "" } */
class YY { public:
YY(const YY &v) { e[0] = v.e[0]; e[1] = v.e[1]; e[2] = v.e[2]; }
double &y() { return e[1]; }
double e[3]; };
class XX { public:
YY direction() const { return v; }... |
*//**
/** @addtogroup QEI
* @{
*/
#include "lpc18xx_qei.h"
#include "lpc18xx_cgu.h"
/* If this source file built with example, the LPC18xx FW library configuration
* file in each example directory ("lpc18xx_libcfg.h") must be included,
* otherwise the default FW library configuration file must be included instead
... |
#ifndef __SDCPP_H
#define __SDCPP_H
#ifdef _WIN32
/* declaration of alloca */
#include <malloc.h>
#include <string.h>
#ifdef __BORLANDC__
#define strcasecmp stricmp
#else
#define strcasecmp _stricmp
#endif
#endif
#define BYTES_BIG_ENDIAN 0
/*
* From defaults.h
*/
#ifndef GET_ENVIRONMENT
#define GET_ENVIRONMENT(VAL... |
#ifndef <API key>
#define <API key>
#include "LETypes.h"
#include "LEGlyphFilter.h"
#include "LEFontInstance.h"
#include "LayoutEngine.h"
#include "LETableReference.h"
#include "<API key>.h"
#include "<API key>.h"
#include "<API key>.h"
U_NAMESPACE_BEGIN
/**
* <API key> implements complex text layout for OpenType font... |
// methods (functions of objects)
// http://www.ecma-international.org/ecma-262/6.0/#<API key>
var Obj = {
myMethod(a, b) {
},
*myGenerator(a, b) {
}
} |
#define pr_fmt(fmt) "%s: " fmt, __func__
#include <linux/iopoll.h>
#include <linux/delay.h>
#include <linux/dma-mapping.h>
#include "mdss_fb.h"
#include "mdss_mdp.h"
#include "mdss_timeout.h"
/* wait for at least 2 vsyncs for lowest refresh rate (24hz) */
#define VSYNC_TIMEOUT_US 100000
#define <API key>(intf_num) \... |
package org.openmicroscopy.shoola.keywords;
import java.awt.Component;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.awt.image.Raster;
import java.awt.image.RenderedImage;
import java.util.<API key>;
import javax.swing.JPanel;
import org.robotframework.abbot.finder.BasicFinder;
import org... |
<?php
// Protection against direct access
defined('AKEEBAENGINE') or die();
/**
* Database interface class.
*
* Based on Joomla! Platform 11.2
*/
interface <API key>
{
/**
* Test to see if the connector is available.
*
* @return boolean True on success, false otherwise.
*/
public stati... |
using System;
using System.Drawing;
using System.Windows.Forms;
namespace Proyecto
{
<summary>
Description of MenuConsulta.
</summary>
public partial class MenuConsulta : Form
{
public MenuConsulta()
{
// The InitializeComponent() call is required for Windows Forms design... |
/* GENERAL FIXME/TODO: check that the assumptions about what is written to
mac-io is valid for DACA & Tumbler.
This driver is in bad need of a rewrite. The dbdma code has to be split,
some proper device-tree parsing code has to be written, etc...
*/
#include <linux/types.h>
#include <linux/module.h>
#include <... |
// boost-libs variant/test/test8.cpp header file
// Eric Friedman, Itay Maman
#include "boost/test/minimal.hpp"
#include "boost/variant.hpp"
#include <iostream>
#include <vector>
#include <string>
using namespace std;
using namespace boost;
typedef variant<float, std::string, int, std::vector<std::string> > t_var1;
str... |
#include "iaf_psc_alpha_presc.h"
#include "exceptions.h"
#include "network.h"
#include "dict.h"
#include "integerdatum.h"
#include "doubledatum.h"
#include "dictutils.h"
#include "numerics.h"
#include "<API key>.h"
#include <limits>
nest::RecordablesMap<nest::iaf_psc_alpha_presc> nest::iaf_psc_alpha_presc::recordablesM... |
#include "vcardupdate.h"
#include "tag.h"
namespace gloox
{
VCardUpdate::VCardUpdate()
: StanzaExtension( ExtVCardUpdate ),
m_notReady( true ), m_noImage( true ), m_valid( true )
{
}
VCardUpdate::VCardUpdate( const std::string& hash )
: StanzaExtension( ExtVCardUpdate ),
m_hash( hash ), m_no... |
<?php
require_once('../../config.inc.php');
require_once('common.php');
require_once('charts.inc.php');
testlinkInitPage($db,true,false,"checkRights");
$cfg = new stdClass();
$cfg->scale = new stdClass();
$chart_cfg = config_get('results');
$chart_cfg = $chart_cfg['charts']['dimensions']['keywordBarChart'];
$cfg->chart... |
#include <linux/i2c.h>
#include <linux/gpio.h>
#include <asm/mach-types.h>
#include <mach/camera.h>
#include <mach/msm_bus_board.h>
#include <mach/gpiomux.h>
#include <mach/socinfo.h>
#include "../devices.h"
#include "../board-8064.h"
#ifdef CONFIG_MSM_CAMERA
static struct gpiomux_setting cam_settings[] = {
{
... |
/* vsprintf.c -- Lars Wirzenius & Linus Torvalds. */
/*
* Wirzenius wrote this portably, Torvalds fucked it up :-)
*
* from hush: simple_itoa() was lifted from boa-0.93.15
*/
#include <common.h>
#include <charset.h>
#include <efi_loader.h>
#include <div64.h>
#include <hexdump.h>
#include <stdarg.h>
#include <uuid.h... |
require 'migrate'
class RenameBugsToNotes < ActiveRecord::Migration
def self.up
rename_enumeration "map_bug_status_enum", "note_status_enum"
rename_enumeration "map_bug_event_enum", "note_event_enum"
rename_table :map_bugs, :notes
rename_index :notes, "map_bugs_pkey", "notes_pkey"
rename_index :no... |
extern void gen_model_h (lf *file, insn_table *isa);
extern void gen_model_c (lf *file, insn_table *isa); |
#if TARGET_OS_IPHONE
#import <CoreGraphics/CoreGraphics.h>
#import <Foundation/Foundation.h>
#import <WebKitLegacy/WebFrameIOS.h>
@interface WebSelectionRect : NSObject <NSCopying> {
CGRect m_rect;
WKWritingDirection m_writingDirection;
BOOL m_isLineBreak;
BOOL m_isFirstOnLine;
BOOL m_isLastOnLine;
... |
<?php
// security - hide paths
if (!defined('ADODB_DIR')) die();
/*
MSSQL has moved most performance info to Performance Monitor
*/
class perf_mssql extends adodb_perf{
var $sql1 = 'cast(sql1 as text)';
var $createTableSQL = "CREATE TABLE adodb_logsql (
created datetime NOT NULL,
sql0 va... |
#include <linux/fs.h>
#include <linux/mm.h>
#include <linux/slab.h>
#include <asm/spu.h>
#include <asm/spu_csa.h>
#include "spufs.h"
struct spu_context *alloc_spu_context(void)
{
struct spu_context *ctx;
ctx = kzalloc(sizeof *ctx, GFP_KERNEL);
if (!ctx)
goto out;
/* Binding to physical processor... |
#include "ScriptMgr.h"
#include "Chat.h"
#include "DatabaseEnv.h"
#include "Item.h"
#include "Language.h"
#include "Mail.h"
#include "ObjectMgr.h"
#include "Pet.h"
#include "Player.h"
#include "RBAC.h"
#include "WorldSession.h"
class send_commandscript : public CommandScript
{
public:
send_commandscript() : Command... |
## This file is part of Invenio.
## Invenio is free software; you can redistribute it and/or
## published by the Free Software Foundation; either version 2 of the
## Invenio is distributed in the hope that it will be useful, but
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
## along with Invenio;... |
<?php
namespace TYPO3\CMS\Workspaces\Tests\Unit\Controller\Remote;
use Prophecy\Argument;
use Prophecy\Prophecy\ObjectProphecy;
use TYPO3\CMS\Core\Resource\File;
use TYPO3\CMS\Core\Resource\FileReference;
use TYPO3\CMS\Core\Resource\ProcessedFile;
use TYPO3\CMS\Core\Utility\GeneralUtility;
/**
* RemoteServer test
*/
... |
<?php
namespace VuFind\Record\FallbackLoader;
use SerialsSolutions\Summon\Zend2 as Connector;
use VuFind\Db\Table\Resource;
use VuFindSearch\Backend\Summon\Backend;
use VuFindSearch\ParamBag;
class Summon implements <API key>
{
/**
* Resource table
*
* @var Resource
*/
protected $table;
... |
<?php
$content = "";
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";
$content .= '<ul class="list-links orderHistList">' . "\n" ;
foreach ($customer_orders as $row) {
$content .= '
<li>
<a href="' . zen_href_link(zen_get_info_page($row['id']), 'products_id=' ... |
#include "expire-tiles.hpp"
#include "options.hpp"
#include <iterator>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdexcept>
#include <boost/format.hpp>
#include <set>
#define EARTH_CIRCUMFERENCE (40075016.68)
namespace {
void run_test(const char* test_name, void (*testfunc... |
#if defined HAVE_FMA4_SUPPORT || defined HAVE_AVX_SUPPORT
# include <init-arch.h>
# include <math.h>
# include <math_private.h>
extern double <API key> (double, double);
extern double __ieee754_atan2_avx (double, double);
# ifdef HAVE_FMA4_SUPPORT
extern double <API key> (double, double);
# else
# undef HAS_FMA4
# de... |
#!/bin/bash
# Test the init code
source "$REG_DIR/scaffold"
function opts
{
cat << DONE
-a
-n
DONE
}
cmd setup_git_repo
opts | while read opt ; do
cmd reset_git_repo
cmd guilt init $opt
cmd list_files
shouldfail guilt init $opt
cmd list_files
done
cmd git branch other
cmd git checkout other
cmd ... |
<?php
/**
* Customizer settings for this theme.
*
* @package WordPress
* @subpackage Twenty_Twenty
* @since Twenty Twenty 1.0
*/
if ( ! class_exists( '<API key>' ) ) {
/**
* CUSTOMIZER SETTINGS
*
* @since Twenty Twenty 1.0
*/
class <API key> {
/**
* Register customizer... |
#ifndef DECLINFO_H
#define DECLINFO_H
#include <stdio.h>
#include <qcstring.h>
extern void parseFuncDecl(const QCString &decl,
bool objC,
QCString &clName,
QCString &type,
QCString &name,
QC... |
class CreateArticlePage
include PageObject
page_url '<%=params[:article_name]%>'
a(:doesnotexist_msg, text: 'Look for pages within Wikipedia that link to this title')
end |
#include <linux/bitops.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/i2c.h>
#include "dmxdev.h"
#include "dvbdev.h"
#include "dvb_demux.h"
#include "dvb_frontend.h"
#include "dvb-bt8xx.h"
#in... |
/** @internal
** @file <API key>.cpp
** @author Andrea Vedaldi
** @author Mikael Rousson (Python wrapping)
** @brief SIFT descriptor - MEX
**/
#include "../py_vlfeat.h"
extern "C" {
#include <vl/mathop.h>
#include <vl/sift.h>
}
#include <math.h>
#include <assert.h>
#include <iostream>
/* option codes */... |
/*global ActiveXObject */
;(function($) {
"use strict";
/**
* Feature detection
*/
var feature = {};
feature.fileapi = $("<input type='file'/>").get(0).files !== undefined;
feature.formdata = window.FormData !== undefined;
var hasProp = !!$.fn.prop;
// attr2 uses prop when it can but checks the return type for
// an ... |
<?php
if (isset($_POST['gdsr_action']) && $_POST['gdsr_action'] == 'save') {
$gdsr_options["bot_message"] = $_POST['gdsr_bot_message'];
$gdsr_options["no_votes_percentage"] = $_POST['<API key>'];
$gdsr_options["cached_loading"] = isset($_POST['gdsr_cached_loading']) ? 1 : 0;
$gdsr_options["include_opaci... |
#define pr_fmt(fmt) "%s:%d " fmt, __func__, __LINE__
#include <linux/bug.h>
#include <linux/clk.h>
#include <linux/device.h>
#include <linux/errno.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/types.h>
#include <linux/pl... |
#include "ntoskrnl.h"
#define NDEBUG
#include "debug.h"
ULONG
NTAPI
CmCheckRegistry(IN PCMHIVE RegistryHive,
IN ULONG Flags)
{
/* FIXME: HACK! */
DPRINT1("CmCheckRegistry(0x%p, %lu) is UNIMPLEMENTED!\n", RegistryHive, Flags);
return 0;
} |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
#include "config.h"
#include <string.h>
#include <gconf/gconf-client.h>
#include <libempathy/empathy-utils.h>
#include "empathy-conf.h"
#define DEBUG_FLAG EMPATHY_DEBUG_OTHER
#include <libempathy/empathy-debug.h>
#define EMPATHY_CONF_ROOT ... |
<?php
require_once('../conexiones/conexione.php');
mysql_select_db($base_datos, $conectar);
<API key>("America/Bogota");
include ("../<API key>/<API key>.php");
//$cod_factura = $_GET['cod_factura'];
$fecha_ini = $_GET['fecha_ini'];
$fecha_fin = $_GET['fecha_fin'];
$tabla = $_GET['tabla'];
$tipo = $_GET['tipo'];
$fecha... |
<html lang="en">
<head>
<title>GDB/MI Ada Tasking Commands - Debugging with GDB</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Debugging with GDB">
<meta name="generator" content="makeinfo 4.11">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="GD... |
<html lang="en">
<head>
<title>sin - Untitled</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Untitled">
<meta name="generator" content="makeinfo 4.11">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Math.html#Math" title="Math">
<link rel="prev"... |
#include "config.h"
#include <gegl.h>
#include "core-types.h"
#include "gimp.h"
#include "gimp-gradients.h"
#include "gimpcontext.h"
#include "gimpcontainer.h"
#include "gimpdatafactory.h"
#include "gimpgradient.h"
#include "gimp-intl.h"
#define FG_BG_RGB_KEY "<API key>"
#define FG_BG_HARDEDGE_KEY "<API key>"
#def... |
obj-$(CONFIG_ECS_DRIVER) += ecs-core.o
obj-$(<API key>) += ecs-subdev.o ecs-helper.o
obj-$(<API key>) += ov5640.o
obj-$(<API key>) += sp0a20.o |
# functions to use with HP Hardware RAID (Smart Array and compatible)
function define_HPSSACLI() {
# HP Smart Storage Administrator CLI is either hpacucli, hpssacli or ssacli
if has_binary hpacucli ; then
HPSSACLI=hpacucli
elif has_binary hpssacli ; then
HPSSACLI=hpssacli
elif has_binary... |
# This file is part of Iris.
# Iris is free software: you can redistribute it and/or modify it under
# (at your option) any later version.
# Iris is distributed in the hope that it will be useful,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
"""Unit tests for the `iris.quickplot.points` function."""
... |
package com.laytonsmith.abstraction;
import com.laytonsmith.abstraction.enums.MCDisplaySlot;
import java.util.Set;
public interface MCScoreboard {
public void clearSlot(MCDisplaySlot slot);
public MCObjective getObjective(MCDisplaySlot slot);
public MCObjective getObjective(String name);
/**
*
... |
#pragma once
#include <wrl.h>
namespace DX
{
// Helper class for animation and simulation timing.
class StepTimer
{
public:
StepTimer() :
m_elapsedTicks(0),
m_totalTicks(0),
m_leftOverTicks(0),
m_frameCount(0),
m_framesPerSecond(0),
... |
/**
* @author Christian <c@ethdev.com>
* @date 2014
* Solidity AST to EVM bytecode compiler.
*/
#pragma once
#include <ostream>
#include <functional>
#include <libsolidity/ASTVisitor.h>
#include <libsolidity/CompilerContext.h>
#include <libevmasm/Assembly.h>
namespace dev {
namespace solidity {
class Compiler: priv... |
SET(CTEST_PROJECT_NAME "hikob-git-${PLATFORM}")
SET(<API key> "00:00:00 EST")
IF(NOT DEFINED CTEST_DROP_METHOD)
SET(CTEST_DROP_METHOD "http")
ENDIF(NOT DEFINED CTEST_DROP_METHOD)
IF(CTEST_DROP_METHOD STREQUAL "http")
SET(CTEST_DROP_SITE "tools.vpn.hikob.com")
SET(CTEST_DROP_LOCATION "/cdash/submit.php?project=hik... |
package cn.nukkit.block;
import cn.nukkit.Player;
import cn.nukkit.item.Item;
import cn.nukkit.item.ItemTool;
import cn.nukkit.level.Level;
import cn.nukkit.level.sound.NoteBoxSound;
import cn.nukkit.network.protocol.BlockEventPacket;
public class BlockNoteblock extends BlockSolid {
public BlockNoteblock() {
... |
#!/usr/bin/perl
use strict;
use warnings;
use Test::More tests => 34;
BEGIN { use_ok('li_carrays') }
require_ok('li_carrays');
# array_class
{
my $length = 5;
my $xyArray = new li_carrays::XYArray($length);
for (my $i=0; $i<$length; $i++) {
my $xy = $xyArray->getitem($i);
$xy->{x} = $i*10;
$xy->{y} = ... |
package org.hsqldb.util;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;
/* $Id: SqlTool.java,v 1.72 2007/06/29 12... |
package App::Prove::State;
use strict;
use warnings;
use File::Find;
use File::Spec;
use Carp;
use App::Prove::State::Result;
use TAP::Parser::YAMLish::Reader ();
use TAP::Parser::YAMLish::Writer ();
use base 'TAP::Base';
BEGIN {
__PACKAGE__->mk_methods('result_class');
}
use constant IS_WIN32 => ( $^O =~ /^(MS)?Wi... |
<?php
namespace Drupal\language\Form;
use Drupal\Core\Block\<API key>;
use Drupal\Component\Utility\Unicode;
use Drupal\Core\Config\<API key>;
use Drupal\Core\Entity\<API key>;
use Drupal\Core\Extension\<API key>;
use Drupal\Core\Form\ConfigFormBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Url;
use Dru... |
<?php
class Appconfig extends CI_Model
{
public function exists($key)
{
$this->db->from('app_config');
$this->db->where('app_config.key', $key);
return ($this->db->get()->num_rows() == 1);
}
public function get_all()
{
$this->db->from('app_config');
$this->db-... |
/*! \file <API key>.hpp
\brief <API key>.hpp contains algorithms for string matching like backward_search, ...
\author Simon Gog
*/
#ifndef <API key>
#define <API key>
#include "int_vector.hpp"
#include <stdexcept> // for exceptions
#include <iostream>
#include <cassert>
#include <stack>
#include <utility>
name... |
#endregion
using System;
using OpenRA.Network;
using OpenRA.Widgets;
namespace OpenRA.Mods.Common.Widgets.Logic
{
public class GameTimerLogic
{
[ObjectCreator.UseCtor]
public GameTimerLogic(Widget widget, OrderManager orderManager, World world)
{
var timer = widget.GetOrNull<... |
# This file is part of GNU Radio
# GNU Radio is free software; you can redistribute it and/or modify
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
# GNU Radio is distributed in the hope that it will be useful,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#... |
<?php
// Moodle is free software: you can redistribute it and/or modify
// (at your option) any later version.
// Moodle is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
defined('MOODLE_INTERNAL') || die();
class qformat_default {
public $displayerr... |
=pod
=head1 NAME
Locale::Currency - standard codes for currency identification
=head1 SYNOPSIS
use Locale::Currency;
$curr = code2currency('usd'); # $curr gets 'US Dollar'
$code = currency2code('Euro'); # $code gets 'eur'
@codes = all_currency_codes();
@names = all_currency_names();
=head... |
Copyright (c) 2008-2021 Emil Dotchevski and Reverge Studios, Inc.
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http:
#include <boost/qvm/gen/vec_mat_operations2.hpp> |
"use strict";
tutao.provide('tutao.entity.base.<API key>');
/**
* @constructor
* @param {Object=} data The json data to store in this entity.
*/
tutao.entity.base.<API key> = function(data) {
if (data) {
this.updateData(data);
} else {
this.__format = "0";
this._generatedId = null;
this._permissi... |
package net.minecraftforge.event.terraingen;
import java.util.Random;
import net.minecraft.block.BlockSapling;
import net.minecraft.block.state.IBlockState;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.common.eventhandler.Cancelable;
import net.minecraftforge.fml.common.eventhandler.Ev... |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.utils import flt, add_months, cint, nowdate, getdate
from frappe.model.document import Document
from erpnext.accounts.doctype.purchase_invoice.purchase_invoice import <API key>
from erpnext.accounts.doctype.as... |
/* Written by Paul Eggert. */
#include <config.h>
#include "physmem.h"
#include <unistd.h>
#if HAVE_SYS_PSTAT_H
# include <sys/pstat.h>
#endif
#if HAVE_SYS_SYSMP_H
# include <sys/sysmp.h>
#endif
#if HAVE_SYS_SYSINFO_H && <API key>
# include <sys/sysinfo.h>
# include <machine/hal_sysinfo.h>
#endif
#if HAVE_SYS_TABLE_H
... |
#ifndef IMPORTDIALOG_H
#define IMPORTDIALOG_H
#include "../guisubautomata.h"
// Definition of this class
class ImportDialog {
public:
// Constructor
ImportDialog ( GuiSubautomata* gsubautomata );
// Destructor
virtual ~ImportDialog ();
// Popup initializer
void init ();
protected:
// Data st... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# This is a virtual module that is entirely implemented as an action plugin and runs on the controller
from __future__ import absolute_import, division, print_function
__metaclass__ = type
EXAMPLES = r'''
- name: Store file into /tmp/fetched/host.example.com/tmp/somefile
fetc... |
/* Written by Bruno Haible, 2010. */
#include <config.h>
/* Specification. */
#include <unistd.h>
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
# define WIN32_LEAN_AND_MEAN
# include <windows.h>
#endif
char *
getlogin (void)
{
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
sta... |
// |jit-test| error: TestComplete
// onPop can change a normal return into a throw.
load(libdir + "asserts.js");
var g = newGlobal('new-compartment');
var dbg = new Debugger(g);
function test(type, provocation) {
var log;
// Help people figure out which 'test' call failed.
print("type: " + uneval(typ... |
<!DOCTYPE html>
<!
Distributed under both the W3C Test Suite License [1] and the W3C
3-clause BSD License [2]. To contribute to a W3C Test Suite, see the
policies and contribution forms [3].
[1] http:
[2] http:
[3] http:
<html>
<head>
<title>Shadow DOM Test: A_05_01_01</title>
<link rel="author" title="Sergey G. Grekho... |
# encoding: utf-8
# This Source Code Form is subject to the terms of the Mozilla Public
from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import
import smtplib
import sys
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from mo_log... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>external.argparse — IPython v0.10 documentation</title>
<link rel="stylesheet" href="../../_static/default.css" type="text/css" />
<link rel... |
# -*- coding: utf-8 -*-
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('catalog', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='catalogintegration',
name='service_username',
field=mode... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.