answer stringlengths 15 1.25M |
|---|
/** @file ai_order.cpp Implementation of AIOrder. */
#include "../../stdafx.h"
#include "ai_order.hpp"
#include "ai_vehicle.hpp"
#include "../ai_instance.hpp"
#include "../../debug.h"
#include "../../vehicle_base.h"
#include "../../roadstop_base.h"
#include "../../depot_base.h"
#include "../../station_base.h"
#include ... |
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "imp.h"
#include <helper/binarybuffer.h>
#include <target/algorithm.h>
#include <target/armv7m.h>
/* Regarding performance:
*
* Short story - it might be best to leave the performance at
* current levels.
*
* You may see a jump in speed if you change to usin... |
#!/bin/bash
# TrinityX
# This program is free software; you can redistribute it and/or modify
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# details.
display_var TRIX_CTRL_HOSTNAME
echo_info 'Confi... |
#controls {
padding-left: 1em;
} |
#ifdef WAF_BUILD
#include "gtk2ardour-config.h"
#endif
#include <cstdlib>
#include <cmath>
#include <gtkmm2ext/gtk_ui.h>
#include "ardour/route_group.h"
#include "editor.h"
#include "keyboard.h"
#include "marker.h"
#include "time_axis_view.h"
#include "prompter.h"
#include "gui_thread.h"
#include "editor_group_tabs.h"
... |
#ifndef _I915_REG_H_
#define _I915_REG_H_
#define _PIPE(pipe, a, b) ((a) + (pipe)*((b)-(a)))
#define _MASKED_BIT_ENABLE(a) (((a) << 16) | (a))
/*
* The Bridge device's PCI config space has information about the
* fb aperture size and the amount of pre-reserved memory.
* This is all handled in the intel-gtt.ko module... |
import {AjxCallback} from "../../ajax/boot/AjxCallback";
import {DwtKeyMapMgr} from "../../ajax/dwt/keyboard/DwtKeyMapMgr";
import {DwtToolBarButton} from "../../ajax/dwt/widgets/DwtToolBar";
import {AjxSoapDoc} from "../../ajax/soap/AjxSoapDoc";
import {ZmCsfeResult} from "../../zimbra/csfe/ZmCsfeResult";
import {ZmCo... |
package ie.ucd.srg.logica.eplatform.eventhandling;
/**
* @author Alan Morkan
*/
public class DefaultEvent extends Event{
/**
*
* @param s
* @param i
*/
//@ requires s != null;
//@ requires i > 0;
public DefaultEvent(String s, int i){
//@ assert false;
super(s,i);
... |
<?php
/*
Template Name: Category Temples
*/
@session_start();
global $wpdb,$post;
$prefix=$wpdb->base_prefix;
get_header();
$category_id='';
$title='';
if(isset($_REQUEST['cid']) && trim($_REQUEST['cid'])!='' && trim($_REQUEST['cid'])>0)
{
$category_id=$_REQUEST['cid'];
$category=Categorydetail($category_id);
... |
<?php
/**
* Pay for order form
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.6.4
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
?>
<form id="order_review" method="post">
<table class="shop_table">
<thead>
<tr>
<th c... |
package com.caucho.vfs.memory;
import com.caucho.vfs.Vfs;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.URL;
import java.net.URLConnection;
/**
* URL memory handler.
*/
class MemoryURLConnection extends URLConnection {
MemoryURLConnection(URL url)
{
super... |
package io.github.mzmine.modules.dataprocessing.<API key>.lipidutils;
import io.github.mzmine.modules.dataprocessing.<API key>.<API key>.<API key>;
import io.github.mzmine.modules.dataprocessing.<API key>.lipids.<API key>;
import io.github.mzmine.modules.dataprocessing.<API key>.lipids.LipidCategories;
import io.github... |
var _globalSpeed = null;
function initParallax() {
//duplicate and place an image tag
var _targetContainer = $(".parallax");
var _bgImg = _targetContainer.css("background-image");
//var _bgURL = _bgImg.substring(_bgImg.indexOf("(")+1,_bgImg.lastIndexOf(")"));
var _parallaxImg = "<div class='<API key... |
// Disassembler
int next; // Next instruction word value, for 2 word instructions.
AVR disassembly
// 0000 0000 0000 0000 N0P
// 0000 0001 dddd rrrr M0VW
// 0000 0010 dddd rrrr MULS
// 0000 0011 0ddd 0rrr MULSU
// 0000 0011 0ddd 1rrr FMUL
// 0000 0011 1ddd 0rrr FMULS
// 0000 0011 1ddd 1rrr FMULSU
// 0000... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <syslog.h>
#include <fcntl.h>
#include <net/if_arp.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <string.h>
#include <errno.h>
#include <time.h>
#include <sys/uio.h>
#include "libnetlink.h"
int rcvbuf = 1024 * 1024;
void rtnl_close(struct... |
#ifndef UMLFORKJOINVITEM_H
#define UMLFORKJOINVITEM_H
#include "projectbase/shapes/PolygonElement.h"
#include "interfaces/Defs.h"
class WXDLLIMPEXP_CD umlForkJoinVItem : public uddPolygonElement
{
public:
<API key>(umlForkJoinVItem);
umlForkJoinVItem();
umlForkJoinVItem(const umlForkJoinVItem &obj);
vir... |
package edu.ucdenver.bios.powersvc.resource.test; |
#include "config.h"
#include "vm/types.h"
#include "vm/jit/s390/codegen.h"
#include "vm/jit/s390/md-abi.h"
#include "mm/memory.h"
#include "native/native.h"
#include "vm/builtin.h"
#include "vmcore/class.h"
#include "vm/exceptions.h"
#include "vmcore/field.h"
#include "vm/initialize.h"
#include "vmcore/options.h"
#incl... |
// <API key>: GPL-2.0-or-later
// GiiBiiAdvance - GBA/GB emulator
#include "../build_options.h"
#include "../debug_utils.h"
#include "cpu.h"
#include "gameboy.h"
#include "gb_main.h"
#include "general.h"
#include "interrupts.h"
#include "memory.h"
#include "ppu.h"
#include "video.h"
extern _GB_CONTEXT_ GameBoy;
void GB... |
package org.xbrlapi.data.dom.tests;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.Test;
import org.testng.annotations.BeforeMethod;
import org.testng.Assert;
import org.testng.AssertJUnit;
import java.net.URI;
import org.xbrlapi.utilities.XBRLException;
/**
* Test the XML DOM XBRLAPI Store i... |
// main.c
// 20150518-58
#include <stdio.h>
int main()
{
float p(int,int);
int n,x;
printf("input n & x:");
scanf("%d %d",&n,&x);
printf("n=%d,x=%d\n",n,x);
printf("p%d(%d) = %f\n",n,x,p(n,x));
return 0;
}
float p(int n,int x)
{
if(n == 0)
return(1);
else if(n == 1)
... |
package org.n52.sos.i18n;
import org.hamcrest.Matchers;
import java.util.Locale;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ErrorCollector;
import org.n52.iceland.i18n.I18NSerializer;
import org.n52.janmayen.i18n.MultilingualString;
/**
* TODO JavaDoc
*
* @author Christian Autermann
*/
pub... |
#include "proslic.h"
#include "si3226.h"
Si3226_General_Cfg <API key> = {
BO_DCDC_QCUK,
0x8720000L, /* VBATR_EXPECT */
0x3D70000L, /* VBATH_EXPECT */
0x0L, /* DCDC_FSW_VTHLO */
0x0L, /* DCDC_FSW_VHYST */
0x1300000L, /* DCDC_VREF_MIN */
0x5A00000L, /* DCDC_VREF_MIN_RING */
0x200000L, /* DCD... |
$wnd.showcase.runAsyncCallback26("fLb(718,1,a7c);_.xc=function L0b(){var a,b,c;LNb(this.b,(a=new FPc,Vs(a.f,ydd,10),CPc(a,new Qzc('Without a direction estimator, the widget\\'s direction is unaffected by the value the user types in. This makes the entry of opposite-direction text confusing and inconvenient.<br><b>Try t... |
#include "src/sview/sview.h"
#define _DEBUG 0
#define ECLIPSE_RT 0
int cpus_per_node = 1;
int g_node_scaling = 1;
//static int _l_topo_color_ndx = MAKE_TOPO_1;
//static int _l_sw_color_ndx = 0;
/* These need to be in alpha order (except POS and CNT) */
enum {
SORTID_POS = POS_LOC,
SORTID_ARCH,
SORTID_BASE_W... |
package BimBimWS;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;
/**
*
* @author depit
*/
@Entity
@Table(name = ... |
<?php
defined( '_JEXEC' ) or die;
$bar = ( $this->uix == 'full' ) ? 'on' : 'off';
$data = Helper_Workshop::getParams( 'type', $this->item->master, $this->item->client );
$clone = '';
$positions = array();
if ( JCck::on() ) {
$attr = array( 'class'=>' b', 'span'=>'<span class=... |
#ifndef DIRECTION_HPP
#define DIRECTION_HPP
enum class DirectionType
{
NORTH = 0,
WEST = 1,
SOUTH = 2,
EAST = 3
};
struct Direction
{
Direction( DirectionType type ) noexcept : type( type ) { }
virtual operator DirectionType( void ) const noexcept;
virtual void rotateClockwise( void ) noexce... |
/*!
* \file AIsEven.hpp Contains general template implementation of the even
* number check algorithm.
* \brief Even number check algorithm.
* \author Ivan Shynkarenka aka 4ekucT
* \version 1.0
* \date 25.01.2007
*/
/*
FILE ID: $Id$
CHANGE LOG:
$Log$
*/
#ifndef __AISEVEN_HPP__... |
var jqplotOptions;
var placeHolderCount = 0;
var indicatorPanels = [];
$(document).ready( function() {
jqplotOptions = {
title: ' ',
seriesDefaults: {
shadow: false,
renderer: $.jqplot.PieRenderer,
rendererOptions: {
startAn... |
#include <linux/crc32.h>
#include "qxl_drv.h"
#include "qxl_object.h"
#include "drm_crtc_helper.h"
#include <drm/drm_plane_helper.h>
static bool qxl_head_enabled(struct qxl_head *head)
{
return head->width && head->height;
}
void <API key>(struct qxl_device *qdev, unsigned count)
{
if (qdev-><API key> &&
... |
#ifndef HireUnitH
#define HireUnitH
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "SHDocVw_OCX.h"
#include <ExtCtrls.hpp>
#include <Graphics.hpp>
#include <OleCtrls.hpp>
class THireForm : public TForm
{
__published: // IDE-managed Components
TCppWebBrowser *... |
#include "variantsanitizer.h"
#include "Utils.h"
#include "checkmanager.h"
using namespace std;
using namespace clang;
VariantSanitizer::VariantSanitizer(const std::string &name)
: CheckBase(name)
{
}
static bool isMatchingClass(const std::string &name)
{
static const vector<string> classes = {"QBitArray", "QBy... |
#include "logic/<API key>.h"
#include <cstdlib>
#include "ai/computer_player.h"
#include "base/i18n.h"
#include "base/random.h"
#include "base/wexception.h"
#include "graphic/playercolor.h"
#include "logic/map_objects/tribes/tribe_basic_info.h"
<API key>::<API key>() {
s.tribes = Widelands::get_all_tribeinfos(nullp... |
#class PageSweeper < ActionController::Caching::Sweeper
# observe CmpPage # This sweeper is going to keep an eye on the CmpPage model
# # If our sweeper detects that a CmpPage was created call this
# def after_create(page)
# expire_cache_for(page)
# end
# # If our sweeper detects that a CmpPage was updated ca... |
// <API key>.h
// Adium
/*!
* @category NSAppleScript(<API key>)
* @brief Provides methods for executing functions in an NSAppleScript
*
* These methods allow functions to be executed within an NSApplescript and arguments to be passed to those functions
*/
@interface NSAppleScript (<API key>)
/*!
* @brief Execu... |
<?php
class <API key> {
public $is_mm_active = false;
private $version = '1.0.0';
/**
* Class constructor used to run actions.
*/
public function __construct() {
add_action( 'init', array( $this, 'init' ) );
//<API key>( __FILE__, array( $this, 'activate' ) );
add_actio... |
# -*- python-mode -*-
# -*- coding: UTF-8 -*-
## This program is free software; you can redistribute it and/or modify
## (at your option) any later version.
## This program is distributed in the hope that it will be useful,
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## with this program; if not, w... |
/**
* The CSS in here controls the appearance of the media manager
*/
#media__manager {
height: 100%;
overflow: hidden;
}
#media__left {
width: 30%;
border-right: solid 1px __border__;
height: 100%;
overflow: auto;
position: absolute;
left: 0;
}
#media__right {
width: 69.7%;
he... |
/* from /lib/modules/2.6.27.5-117.fc10.i686/build/include/linux/cn_proc.h */
#ifndef CN_PROC_H
#if defined(__cplusplus) && !CLICK_CXX_PROTECTED
# error "missing #include <click/cxxprotect.h>"
#endif
#define CN_PROC_H
#include <linux/types.h>
/*
* Userspace sends this enum to register with the kernel that it is listeni... |
<h3 class="<API key>" id="artist-<?php echo $showdata['artist_id']; ?>"><?php echo $showdata['artist']; ?>
<?php if($gpo['<API key>'] == 1) : ?>
<span class="<API key>">
<a href="<?php echo GIGPRESS_RSS; ?>&artist=<?php echo $showdata['artist_id']; ?>" title="<?php echo $showdata['artist']; ?> RSS"><img... |
using System.IO;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
namespace Tsc.WebApi
{
public class Program
{
public static void Main(string[] args)
{
var config = new <API key>()
.AddCommandLine(args)
.<API key>(prefix: ... |
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Database.DatabaseModels;
using Database.Repositories.Declarations;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using Models.Users;
using Models.Users.Authorization;
using Models.Utilities;
name... |
/*<![CDATA[*/
/* Utilized for messaging the user */
.<API key> {
display: none;
position: absolute;
z-index: 1000;
border: 1px solid orange;
background-color: #eeeeee; }
.<API key> .title {
font-weight: bold;
font-size: 10pt; }
.<API key> .message {
font-size: 8pt; }
.<API key> {
padding: 5p... |
/**
* \file timer-low_pc.c
* \brief Timer und Counter
* \author Benjamin Benz (bbe@heise.de)
* \date 26.12.2005
*/
#ifdef PC
#include "ct-Bot.h"
#include "timer.h"
#include "sensor.h"
/**
* initialisiert Timer 2 und startet ihn
*/
void timer_2_init(void) {
// Dummy
}
/**
* Funktion, die die ... |
<?php
class <API key>
{
function __construct() {
$this->label = __( 'Number Range', 'fwp' );
}
/**
* Generate the facet HTML
*/
function render( $params ) {
$output = '';
$value = $params['selected_values'];
$value = empty( $value ) ? array( '', '', ) : $value;
... |
<?php
/* Register nav menus. */
add_action( 'init', '<API key>' );
function <API key>() {
/* Get theme-supported menus. */
$menus = get_theme_support( 'hybrid-core-menus' );
/* If there is no array of menus IDs, return. */
if ( !is_array( $menus[0] ) )
return;
/* Register the 'primary' menu.... |
// $HeadURL$
// Screensaver is an open-source project developed by the ICCB-L and NSRB labs
// at Harvard Medical School. This software is distributed under the terms of
package edu.harvard.med.screensaver.db.datafetcher;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java... |
<tr>
<form action="?phpmussel-page=quarantine" method="POST"><input name="qfu" type="hidden" value="{QFU-Name}" />
<td class="h3">
<span class="s">{QFU-Name}</span><br />
{label_upload_date}{Upload-Date}<br />
{label_upload_origin}{Upload-Origin}<br />
{label_upload_size}{Upload-Size}<br /... |
#ifndef <API key>
#define <API key>
#include <KDialog>
#include <<API key>.h>
class SCDocument;
class <API key> : public KDialog
{
Q_OBJECT
public:
explicit <API key>(SCDocument *document, QWidget *parent=0);
QString <API key>() const;
private slots:
void editCustomSlideShow();
private:
Ui::<API key... |
/*
* \brief RAM dataspace utility
* \author Norman Feske
* \date 2008-03-22
*
* The combination of RAM allocation and a local RM attachment
* is a frequent use case. Each function may fail, which makes
* error handling inevitable. This utility class encapsulates
* this functionality to handle both operations... |
<?php
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
namespace Twilio\Tests\Integration\Conversations\V1\Conversation;
use Twilio\Exceptions\<API key>;
use Twilio\Exceptions\TwilioException;
use Twilio\Http\Response;
use Twilio\Tests\HolodeckTestCase;
use Tw... |
<div style="position: relative; top: 10px;">
<div style="top: 10px; left: 372px;" class="MollusqueLabel"><a href="#mollusques" title="La Galerie des Mollusques" class="btn btn-small" id="all">Mollusques</a></div>
<div style="top: 38px; left: 422px; width: 4px; height: 15px;" class="TreeBranch"> </div>
<div style="... |
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.4"/>
<title>rml Namespace Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<sc... |
<?php
?>
<section class="root content has-cows featured woocommerce">
<section class="row box">
<div class="tb-line clearfix">
<article>
<ul class="products small-block-grid-1 large-block-grid-3">
<?php
?>
</ul>
... |
package ome.metakit;
import java.io.IOException;
import loci.common.DataTools;
import loci.common.<API key>;
public class MetakitReader {
// -- Fields --
private <API key> stream;
private String[] tableNames;
private Column[][] columns;
private int[] rowCount;
private Object[][][] data;
private boolean li... |
KBUILD_CFLAGS := $(filter-out -O%,$(KBUILD_CFLAGS)) -O3
obj-$(CONFIG_CFG80211) += cfg80211.o
obj-$(CONFIG_LIB80211) += lib80211.o
obj-$(<API key>) += lib80211_crypt_wep.o
obj-$(<API key>) += lib80211_crypt_ccmp.o
obj-$(<API key>) += lib80211_crypt_tkip.o
obj-$(CONFIG_WEXT_CORE) += wext-core.o
obj-$(CONFIG_WEXT_PROC) +=... |
# Makefile for kernel SPI drivers.
ccflags-$(CONFIG_SPI_DEBUG) := -DDEBUG
# small core, mostly translating board-specific
# config declarations into driver model code
obj-$(CONFIG_SPI_MASTER) += spi.o
obj-$(CONFIG_SPI_SPIDEV) += spidev.o
# SPI master controller drivers (bus)
obj-$(CONFIG_SPI_ALTERA) ... |
/** @var Root URI for theme files */
var <API key> = "";
/** @var The AJAX proxy URL */
var akeeba_ajax_url = "";
/** @var Current backup job's tag */
var akeeba_backup_tag = 'backend';
/** @var The callback function to call on error */
var <API key> = dummy_error_handler;
/** @var A URL to return to upon successful ba... |
#include <stdio.h>
#include <stdlib.h>
#include "rbtree.h"
static void __rb_rotate_left(struct rb_node *node, struct rb_root *root)
{
struct rb_node *right = node->rb_right;
struct rb_node *parent = rb_parent(node);
if ((node->rb_right = right->rb_left))
rb_set_parent(right->rb_left, node);
righ... |
<?php
/**
* WordPress Post Thumbnail Template Functions.
*
* Support for post thumbnails.
* Theme's functions.php must call add_theme_support( 'post-thumbnails' ) to use these.
*
* @package WordPress
* @subpackage Template
*/
/**
* Check if post has an image attached.
*
* @since 2.9.0
*
* @param int $post_... |
<?php
// Module/Plug-in Social Plugins frontend_render script
// use it as when it is located under "template/inc_script/frontend_render"
// most times it is used to register custom function
// or make a very early redirection...
?> |
using System;
using System.Reflection;
namespace JR.Cms.Cache.CacheCompoment
{
<summary>
Description of CmsCacheUtility.
</summary>
public class CmsCacheUtility
{
public static void EvalCacheUpdate<T>(MethodInfo method) where T:Attribute,ICacheUpdatePolicy
{
object[] attr... |
#ifndef _CACHE_H__
#define _CACHE_H__
#include <shogun/lib/common.h>
#include <shogun/io/SGIO.h>
#include <shogun/mathematics/Math.h>
#include <shogun/base/SGObject.h>
#include <stdlib.h>
namespace shogun
{
/** @brief Template class Cache implements a simple cache.
*
* When the cache is full -- elements that are leas... |
<?php
// Locale
$_['code'] = 'zh-TW';
$_['direction'] = 'ltr';
$_['date_format_short'] = 'Y/m/d';
$_['date_format_long'] = 'l dS F Y';
$_['time_format'] = 'h:i:s A';
$_['datetime_format'] = 'Y/m/d H:i:s';
$_['decimal_p... |
// For information as to what this class does, see the Javadoc, below. //
// 2007, 2008, 2009, 2010, 2014, 2015 by Peter Spirtes, Richard Scheines, Joseph //
// Ramsey, and Clark Glymour. //
// This program is free software; you can redistribute it and/or modify ... |
#include <common.h>
#include <asm/io.h>
#include <netdev.h>
#include <asm/arch/cpu.h>
#include <asm/arch/power.h>
#include <asm/arch/gpio.h>
#include <asm/arch/pinmux.h>
#include <asm/arch/mmc.h>
#include <asm/arch/sromc.h>
#include <asm/arch/clk.h>
#ifdef <API key>
#include <asm/arch/pwm.h>
#endif
<API key>;
struct ex... |
<?php
$root =dirname(dirname(dirname(dirname(dirname(__FILE__)))));
//echo $root;
if ( file_exists( $root.'/wp-load.php' ) ) {
require_once( $root.'/wp-load.php' );
} elseif ( file_exists( $root.'/wp-config.php' ) ) {
require_once( $root.'/wp-config.php' );
}
header("Content-type: text/css; charset=utf-8");
glo... |
#ifndef __VIDC_HFI_API_H__
#define __VIDC_HFI_API_H__
#include <linux/log2.h>
#include <linux/platform_device.h>
#include <linux/types.h>
#include <media/msm_vidc.h>
#include "msm_vidc_resources.h"
#define CONTAINS(__a, __sz, __t) ({\
int __rc = __t >= __a && \
__t < __a + __sz; \
__rc; \
})
#define... |
starbound-templates
================
A collection of templates for various Starbound asset files. |
body {
margin: 10px;
font: 84% Arial, sans-serif
}
h1 {
font-size: 156%
}
h2 {
border-top: 1px solid #9cc2ef;
background-color: #ebeff9;
padding: 3px 5px;
font-size: 100%
}
#note {
font-size: 75%;
padding: 3px 0px;
} |
import wpilib
from wpilib.command.commandgroup import CommandGroup
class Autonomous(CommandGroup):
def __init__(self, drive, grabber_lift):
super().__init__()
self.drive = drive
self.grabber_lift = grabber_lift
self.addSequential(ClawGrab(grabber_lift))
self.addSequential(Mov... |
<?php
/**
* @file
* Default simple view template to display a list of rows.
*
* @ingroup views_templates
*/
?>
<?php if (!empty($title)): ?>
<h3><?php print $title; ?></h3>
<?php endif; ?>
<?php $i = 0; $len = count($rows); ?>
<?php foreach ($rows as $id => $row): ?>
<?php if($i % $items_per_row == 0): ?>
... |
<?php
require_once <API key> . '/services/Optimization/Filter/Abstract/Base.php';
abstract class <API key>
extends <API key>
{
protected $_filterType = 'head';
} |
package org.openmrs.module.billing.web.controller.company;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.openmrs.api.context.Context;
import... |
package com.hmsphr.jdj.Components.Players;
import android.app.Activity;
import android.content.pm.ActivityInfo;
import android.graphics.Color;
import android.graphics.PixelFormat;
import android.media.MediaPlayer;
import android.net.Uri;
import android.os.Handler;
import android.os.SystemClock;
import android.util.Log;... |
package com.hong.japarser;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.regex.Pattern;
@Documented
@Target(ElementType.FIELD)
@Retention(RetentionP... |
<?php
namespace Joomla\Component\Csp\Administrator\Helper;
defined('_JEXEC') or die;
use Joomla\CMS\Factory;
/**
* Reporter component helper.
*
* @since 4.0.0
*/
class ReporterHelper
{
/**
* Gets the httpheaders system plugin extension id.
*
* @return integer The httpheaders system plugin exte... |
package org.weymouth.sqltools;
public class Header {
//-- Name: i2b2demodata; Type: SCHEMA; Schema: -; Owner: weymouth
final private String text;
final private String name;
final private HeaderType type;
private String schema;
private String owner;
public Header(String text, String name, Hea... |
#ifndef FrameWin_h
#define FrameWin_h
#include <wtf/Vector.h>
#include <wtf/win/GDIObject.h>
namespace WebCore {
class Frame;
class IntRect;
GDIObject<HBITMAP> imageFromRect(const Frame*, IntRect&);
GDIObject<HBITMAP> imageFromSelection(Frame*, bool forceBlackText);
void <API key>(Frame*, const IntRect& printRect, floa... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_25) on Mon Jan 19 00:16:43 EST 2015 -->
<title>Uses of Class Launcher</title>
<meta name="date" content="2015-01-19">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
<script type="text/javas... |
/* Pragmas */
#pragma GCC diagnostic ignored "-Wunused-result" /* Don't care about system() */
/* Headers */
#include <stdlib.h>
#include "prototypes.h"
/* Instantiate externals */
double visbel_interval = 0.15;
/* Static Variables */
static double time_last = 0;
void
visbel()
{
double t;
if ((t = time_now()) - tim... |
#!/usr/bin/python3
import grp,os,pwd
class ROOT_CHOWN(object):
def __init__(self,parent):
parent.declare_option( 'mapping_file' )
self.mapping = {}
def on_start(self,parent):
logger = parent.logger
if not hasattr( parent, "mapping_file" ):
parent.mapping_file = [ None ]
... |
package org.adempierelbr.apps.form;
import java.awt.BorderLayout;
import java.awt.Cursor;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.print.PrinterException;... |
package info.jbcs.minecraft.vending.proxy;
import info.jbcs.minecraft.vending.Vending;
import info.jbcs.minecraft.vending.block.BlockVendingMachine;
import info.jbcs.minecraft.vending.block.EnumSupports;
import info.jbcs.minecraft.vending.gui.HintGui;
import info.jbcs.minecraft.vending.renderer.<API key>;
import info.j... |
#ifndef __MUL_ROUTE_H__
#define __MUL_ROUTE_H__
#define RT_HB_INTVL_SEC 2
#define RT_HB_INTVL_INITSEC 6
#define RT_HB_INTVL_USEC 0
#define RT_MAX_GET_RETRIES 100
#define NEIGH_NO_PATH (INT_MAX)
#define NEIGH_NO_LINK (uint16_t)(-1)
struct lweight_pair_
{
uint16_t la;
uint16_t lb;
#define NEIGH_DFL_WEIGHT (100)
... |
#include <stdio.h>
#include <stdlib.h>
#include "Stroke.h"
//#include "main.h"
#define MAX(a,b) ((a)>(b) ? (a) : (b))
#define MIN(a,b) ((a)<(b) ? (a) : (b))
GLUquadricObj * Stroke::qobj = NULL;
const double Stroke::MEAN_FILTER[3] = { 0.33, 0.34, 0.33 } ;
Stroke::Stroke()
{
_limit = _temp = NULL;
_computed = false;
... |
<?php
namespace app\models;
use Yii;
use yii\base\Model;
/**
* ContactForm is the model behind the contact form.
*/
class PublishForm extends Model
{
public $title;
public $preview;
public $embed;
public $description;
public $category;
public $featured;
/**
* @return array the validat... |
/*
* POSIX Standard: 2.9.2 Minimum Values Added to <limits.h>
*
* Never include this file directly; use <limits.h> instead.
*/
#ifndef _BITS_POSIX1_LIM_H
#define _BITS_POSIX1_LIM_H 1
/* Minimum sizes required by the POSIX P1003.1 standard (Table 2-3). */
#define _POSIX_ARG_MAX 4096 /* exec... |
<?php
namespace Sumo;
class <API key> extends Controller
{
public function index()
{
if (!$this->customer->isLogged()) {
$this->session->data['redirect'] = $this->url->link('account/transaction', '', 'SSL');
$this->redirect($this->url->link('account/login', '', 'SSL'));
}... |
<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
$id = (int) JRequest::getVar('id');
$db = PFdatabase::GetInstance();
$load = PFdatabase::GetInstance();
$load = PFload::GetInstance();
$form = new PFform();
$users = "";
require_once( PFobject::GetHelper('tasks') );
if($id) {
// Include task class
... |
#include "kexiscripteditor.h"
#include <Kross/Action>
\internal d-pointer class
class KexiScriptEditor::Private
{
public:
Kross::Action* scriptaction;
Private() : scriptaction(0) {}
};
KexiScriptEditor::KexiScriptEditor(QWidget *parent)
: KexiEditor(parent)
, d(new Private())
{
}
KexiScriptEdito... |
#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "tm.h"
#include "rtl.h"
#include "tm_p.h"
#include "hard-reg-set.h"
#include "regs.h"
#include "basic-block.h"
#include "flags.h"
#include "insn-config.h"
#include "recog.h"
#include "function.h"
#include "expr.h"
#include "diagnostic-core.h"
#incl... |
<?php
?>
<section class="no-results not-found">
<div class="inside-article">
<?php do_action( '<API key>'); ?>
<header class="entry-header">
<n1 class="entry-title"><?php _e( 'Nothing Found', 'generate' ); ?></n1>
</header><!-- .entry-header -->
<?php do_action( '<API key... |
"""
This module handles the Google Signup for a new user
"""
from oauth2client import client
from django.contrib.auth.models import User
from django.shortcuts import redirect
from django.shortcuts import render
from rest_framework.decorators import api_view, permission_classes
from rest_framework.views import APIView
f... |
<?php
$menu_section='menu_misc';
include ("../lib/defines.php");
include ("../lib/module.access.php");
include ("../lib/Form/Class.FormHandler.inc.php");
include ("./form_data/FG_var_prefix.inc");
if (! has_rights (ACX_MISC)){
Header ("HTTP/1.0 401 Unauthorized");
Header ("Location: PP_error.php?c=accessdenied"... |
using System;
using System.Web.Mvc;
using System.Web.Mvc.Html;
using MrCMS.Entities.Documents.Web;
using MrCMS.Web.Areas.Admin.Models.WebpageEdit;
namespace MrCMS.Web.Apps.Commenting.Areas.Admin.Models
{
public class <API key> : WebpageTab
{
public override int Order
{
get { return 1... |
#import <Foundation/Foundation.h>
@interface PJUser : NSObject
+ (PJUser *)currentUser;
+ (PJUser *)defaultManager;
@property (nonatomic, strong) NSString *name;
@property (nonatomic, strong) NSString *first_name;
@property (nonatomic, strong) NSString *last_name;//==@"@"CAS
@property (nonatomic, strong) NSString *emai... |
package org.eclipse.jgit.internal.storage.file;
import java.text.MessageFormat;
import java.util.Iterator;
import java.util.<API key>;
import com.googlecode.javaewah.<API key>;
import com.googlecode.javaewah.IntIterator;
import org.eclipse.jgit.internal.JGitText;
import org.eclipse.jgit.lib.AnyObjectId;
import org.ecli... |
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
#include "utf8.h"
#include "util.h"
#include "strv.h"
#include "unaligned.h"
#include "dns-domain.h"
#include "resolved-dns-packet.h"
int dns_packet_new(DnsPacket **ret, DnsProtocol protocol, size_t mtu) {
DnsPacket *p;
size_t a;
asse... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.