answer stringlengths 15 1.25M |
|---|
#nullable disable
using System;
using System.ComponentModel.Composition;
using Microsoft.CodeAnalysis.Editor;
using Microsoft.CodeAnalysis.Editor.Host;
using Microsoft.CodeAnalysis.Host.Mef;
using Microsoft.CodeAnalysis.Interactive;
using Microsoft.VisualStudio.InteractiveWindow;
using Microsoft.VisualStudio.Text.Edito... |
module.exports = {
getMeta: function(meta) {
var d = meta.metaDescription || meta.description || meta.Description;
if (d && d instanceof Array) {
d = d[0];
}
return {
description: d
}
}
}; |

Long Haul is a minimal jekyll theme built with COMPASS / SASS / SUSY and focuses on long form blog plosts. It is meant to used as a starting point for a jekyll blog/website.
If you really enjoy Long Haul and want to give me credit somewhere on the send or tweet out your experience wit... |
#ifndef _BMP_IO_H
#define _BMP_IO_H
#include <stdio.h>
#include "<API key>.h"
int <API key>(FILE *fp, bmp_file_t *ptrbmp);
void free_bmp(bmp_file_t *ptrbmp);
int output_bmp(FILE *fp, bmp_file_t *ptrbmp);
#endif |
;(function($) {
// TODO rewrite as a widget, removing all the extra plugins
$.extend($.fn, {
swapClass: function(c1, c2) {
var c1Elements = this.filter('.' + c1);
this.filter('.' + c2).removeClass(c2).addClass(c1);
c1Elements.removeClass(c1).addClass(c2);
... |
<?php
namespace PhpFlo\Fbp\Loader\Tests;
use org\bovigo\vfs\vfsStream;
use org\bovigo\vfs\vfsStreamFile;
use PhpFlo\Common\Exception\LoaderException;
use PhpFlo\Fbp\Loader\Loader;
use PhpFlo\Fbp\Test\TestCase;
class LoaderTest extends TestCase
{
/**
* @var vfsStreamFile
*/
private $file;
/**
... |
!((document, $) => {
var clip = new Clipboard('.copy-button');
clip.on('success', function(e) {
$('.copied').show();
$('.copied').fadeOut(2000);
});
})(document, jQuery); |
.yui-h-slider, .yui-v-slider {
position: relative;
}
.yui-h-slider .yui-slider-thumb, .yui-v-slider .yui-slider-thumb {
position: absolute;
cursor: default;
}
.yui-skin-sam .yui-h-slider {
background: url(bg-h.gif) no-repeat 5px 0;
height: 28px;
width: 228px;
}
.yui-skin-sam .yui-h-slider .yui-slider-thumb ... |
<!DOCTYPE html>
<html>
<head>
<title>Centering grid content</title>
<meta content="text/html; charset=utf-8" http-equiv="content-type">
<meta name="description" content="Centering grid content" />
<meta name="keywords" content="javascript, dynamic, grid, layout, jquery plugin, flex l... |
var binary = require('node-pre-gyp');
var path = require('path');
var binding_path = binary.find(path.resolve(path.join(__dirname,'./package.json')));
var binding = require(binding_path);
var Stream = require('stream').Stream,
inherits = require('util').inherits;
function Snapshot() {}
Snapshot.prototype.getHeader ... |
/**
* Server/client environment: argument handling, config file parsing,
* thread wrappers, startup time
*/
#ifndef <API key>
#define <API key>
#if defined(HAVE_CONFIG_H)
#include <config/bitcoin-config.h>
#endif
#include <attributes.h>
#include <compat.h>
#include <compat/assumptions.h>
#include <fs.h>
#include <lo... |
<?php
namespace Sonata\AdminBundle\DependencyInjection;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
/**
* Class <API key>.
*
* @author Thomas Rabaix <thomas.rabaix@sonata-project.org>
*/
abstract class <API key> extends Extension
{
... |
<?php
namespace Druidfi;
class Envs
{
const ENV_DEVELOPMENT = 'development';
const ENV_TESTING = 'testing';
const ENV_STAGING = 'staging';
const ENV_PRODUCTION = 'production';
const ERROR_NOT_VALID = 'Error: env "%s" is not valid! Please use one of the following: %s';
/**
* Get error messag... |
// This file was generated based on 'C:\ProgramData\Uno\Packages\Fuse.Reactive\0.18.8\$.uno'.
// WARNING: Changes might be lost if you edit this file directly.
#pragma once
#include <Fuse.Behavior.h>
namespace g{namespace Fuse{namespace Reactive{struct Binding;}}}
namespace g{namespace Fuse{struct Node;}}
namespace g{
... |
from itertools import imap, chain
def set_name(name, f):
try:
f.__pipetools__name__ = name
except (AttributeError, UnicodeEncodeError):
pass
return f
def get_name(f):
from pipetools.main import Pipe
pipetools_name = getattr(f, '__pipetools__name__', None)
if pipetools_name:
... |
A flexible wrapper for [gl-vao](http://github.com/mikolalysenko/gl-vao)
and [gl-buffer](http://github.com/mikolalysenko/gl-buffer) that you can use to
set up renderable WebGL geometries from a variety of different formats.
## Usage ##
[
Creates a new geometry attached to the WebGL... |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/><!-- using block title in layout.dt--><!-- using block ddox.defs in ddox.layout.dt--><!-- using block ddox.title in ddox.layout.dt-->
<title>Class FilePath</title>
<link rel="stylesheet" type="text/css" href="../../styles/ddox.css"/>
... |
{% if page.meta_description %} {% assign meta_description = page.meta_description %} {% else %} {%
assign meta_description = page.content | strip_html | strip_newlines | truncate: 150 %} {% endif %}
<head prefix="og: http://ogp.me/ns
<title>{{ page.meta_title }}</title>
<meta charset="utf-8" />
<meta name="keywor... |
layout: media
title: "In front of book shelves"
excerpt: "PaperFaces portrait of @mr_craig drawn with Paper by 53 on an iPad."
image:
feature: <API key>.jpg
thumb: <API key>.jpg
category: paperfaces
tags: [portrait, illustration, paper by 53]
PaperFaces portrait of [@mr_craig](http://twitter.com/mr_craig).
{% inclu... |
using System;
using NPoco;
using Umbraco.Cms.Infrastructure.Persistence.DatabaseAnnotations;
namespace Umbraco.Cms.Infrastructure.Persistence.Dtos
{
[TableName(TableName)]
[ExplicitColumns]
[PrimaryKey("Id")]
internal class TwoFactorLoginDto
{
public const string TableName = Cms.Core.Constan... |
import WebdriverIO from './lib/webdriverio'
import Multibrowser from './lib/multibrowser'
import ErrorHandler from './lib/utils/ErrorHandler'
import <API key> from './lib/helpers/<API key>'
import pkg from './package.json'
const <API key> = <API key>()
const VERSION = pkg.version
let remote = function (options = {}, mo... |
<?php
namespace Elcodi\Component\Currency\Adapter\<API key>;
use GuzzleHttp\Client;
use Elcodi\Component\Currency\Adapter\<API key>\Interfaces\<API key>;
/**
* Class <API key>
*/
class <API key> implements <API key>
{
/**
* @var Client
*
* Client
*/
private $client;
/**
* Service ... |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Unicode Manipulation: GLib Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="GLib Re... |
package org.telegram.android.views.dialog;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.os.SystemClock... |
#pragma once
#include <GLUL/Config.h>
#include <GLUL/Input/Event.h>
#include <GLUL/Input/Types.h>
#include <glm/vec2.hpp>
namespace GLUL {
namespace Input {
class GLUL_API MouseButtonEvent : public Event {
public:
MouseButtonEvent();
MouseButtonEvent(MouseButton b... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>FreeType-2.5.0 API Reference</title>
<style type="text/css">
body { font-family: Verdana, Geneva, Arial, Helvetica, serif;
color: #000000;
ba... |
(function(b){"object"===typeof module&&module.exports?(b["default"]=b,module.exports=b):"function"===typeof define&&define.amd?define("highcharts/modules/sunburst",["highcharts"],function(q){b(q);b.Highcharts=q;return b}):b("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(b){function q(b,d,p,D){b.hasOwnPro... |
import _extends from "@babel/runtime/helpers/esm/extends";
import <API key> from "@babel/runtime/helpers/esm/<API key>";
import * as React from 'react';
import PropTypes from 'prop-types';
import { Transition } from '<API key>';
import useTheme from '../styles/useTheme';
import { reflow, getTransitionProps } from '../t... |
import * as React from 'react';
declare class JqxGrid extends React.PureComponent<IGridProps, IState> {
protected static <API key>(props: IGridProps, state: IState): null | IState;
private _jqx;
private _id;
private _componentSelector;
constructor(props: IGridProps);
componentDidMount(): void;
... |
"use strict";
exports.__esModule = true;
exports.default = void 0;
var React = <API key>(require("react"));
var _createElement = <API key>(require("../createElement"));
var _css = <API key>(require("../StyleSheet/css"));
var _pick = <API key>(require("../../modules/pick"));
var _useElementLayout = <API key>(require("..... |
package org.eclipse.kura.net;
import java.util.Map;
import org.osgi.annotation.versioning.ProviderType;
import org.osgi.service.event.Event;
/**
* An event raised when a network interface has been removed from the system.
*
* @noextend This class is not intended to be subclassed by clients.
*/
@ProviderType
public ... |
package invalid;
public class <API key> {
private Object field= foo();
public Object foo() {
return field;
}
} |
#ifndef LANGUAGE_EXTERN_H
#define LANGUAGE_EXTERN_H
#include "<API key>.h"
#include <stdexcept>
#include <fstream>
#include <sstream>
#include "termprinter.h"
#include "termreader.h"
template <typename a>
tosca::StringTerm& PrintTerm(tosca::Context& ctx, tosca::StringTerm& category, a& term)
{
tosca::Term& t = dyna... |
package org.rssowl.core.internal.persist.service;
import org.rssowl.core.persist.IEntity;
import org.rssowl.core.persist.event.ModelEvent;
import org.rssowl.core.persist.event.runnable.EventRunnable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.IdentityHashMap;
im... |
package org.eclipse.kura.web.shared.model;
import java.io.Serializable;
import java.util.Date;
import org.eclipse.kura.web.shared.DateUtils;
public class GwtDeviceConfig extends GwtBaseModel implements Serializable {
private static final long serialVersionUID = <API key>;
public GwtDeviceConfig() {
}
@O... |
package org.opendaylight.controller.sal.connector.remoterpc;
import com.google.common.base.Optional;
import junit.framework.Assert;
import org.junit.*;
import org.opendaylight.controller.sal.connector.api.RpcRouter;
import org.opendaylight.controller.sal.connector.remoterpc.api.RoutingTable;
import org.opendaylight.con... |
package com.vogella.e4.appmodel.app.handlers;
import org.eclipse.e4.core.di.annotations.Execute;
import org.eclipse.e4.ui.workbench.IWorkbench;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.swt.widgets.Shell;
public class QuitHandler {
@Execute
public void execute(IWorkbench workbench, Shel... |
package org.eclipse.che.ide.ext.git.client.compare;
import org.eclipse.che.ide.api.resources.Project;
import org.eclipse.che.ide.ext.git.client.compare.FileStatus.Status;
/**
* Describes changed in any way project files. Supports adding and removing items dynamically.
*
* @author Mykola Morhun
*/
public class Mutab... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_25) on Thu Sep 12 10:51:18 BST 2013 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>Uses of Interface com.hp.hpl.jena.rdf.model.ModelGraphInterface (Apache Jena)</title>
<meta name=... |
package org.csstudio.trends.databrowser2.propsheet;
import org.csstudio.swt.rtplot.undo.<API key>;
import org.csstudio.trends.databrowser2.Activator;
import org.csstudio.trends.databrowser2.Messages;
import org.csstudio.trends.databrowser2.model.PVItem;
import org.csstudio.trends.databrowser2.preferences.Preferences;
i... |
package MWC.GUI.Properties.Swing;
// $RCSfile: <API key>.java,v $
// @version $Revision: 1.3 $
// $Log: <API key>.java,v $
// Revision 1.3 2004/11/26 11:32:48 Ian.Mayo
// Moving closer, supporting checking for time resolution
// Revision 1.2 2004/05/25 15:29:37 Ian.Mayo
// Commit updates from home
// Revision 1.1.1... |
@defgroup cpPinJoint cpPinJoint
@{
const cpConstraintClass *cpPinJointGetClass(void);
@private
typedef struct cpPinJoint {
cpConstraint constraint;
cpVect anchr1, anchr2;
cpFloat dist;
cpVect r1, r2;
cpVect n;
cpFloat nMass;
cpFloat jnAcc;
cpFloat bias;
} cpPinJoint;
Allocate a pin joint... |
#include "Polar/Polar.hpp"
#include "Engine/GlideSolvers/PolarCoefficients.hpp"
#include "Units/System.hpp"
#include <stdlib.h>
#include <cstdio>
PolarCoefficients
PolarInfo::<API key>() const
{
return PolarCoefficients::From3VW(v1, v2, v3, w1, w2, w3);
}
bool
PolarInfo::IsValid() const
{
return <API key>().IsValid... |
package io.mycat.backend.postgresql;
import java.io.IOException;
import java.io.<API key>;
import java.nio.ByteBuffer;
import java.nio.channels.NetworkChannel;
import java.nio.channels.SocketChannel;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;
import io.mycat.back... |
#include <linux/version.h>
#if (LINUX_VERSION_CODE < 0x020612)
#include <linux/config.h>
#endif
#if (LINUX_VERSION_CODE < 0x020500)
#if defined(CONFIG_MODVERSIONS) && defined(MODULE) && ! defined(MODVERSIONS)
#define MODVERSIONS
#include <linux/modversions.h>
#endif
#endif
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#i... |
#ifndef FEATURE_H
#define FEATURE_H
#define SIP_NO_FILE
#include "qgis_core.h"
#include "pointset.h"
#include "labelposition.h" // for LabelPosition enum
#include "qgslabelfeature.h"
#include <iostream>
#include <fstream>
#include <cmath>
#include <QString>
/**
* \ingroup core
* \class pal::LabelInfo
* \note not ava... |
<?php
// @<API key>
namespace Drupal\Tests\Component\Annotation\Doctrine;
use Drupal\Component\Annotation\Doctrine\DocParser;
use Doctrine\Common\Annotations\AnnotationRegistry;
use Doctrine\Common\Annotations\Annotation\Target;
use Drupal\Tests\Component\Annotation\Doctrine\Fixtures\<API key>;
use Drupal\Tests\Compone... |
#include "<API key>.h"
#include "MoveSpline.h"
#include "ByteBuffer.h"
namespace Movement
{
inline void operator << (ByteBuffer& b, const Vector3& v)
{
b << v.x << v.y << v.z;
}
inline void operator >> (ByteBuffer& b, Vector3& v)
{
b >> v.x >> v.y >> v.z;
}
enum MonsterMoveTy... |
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <asm/io.h>
#include <asm/setup.h>
#include <asm/mach/time.h>
#include <asm/mach/arch.h>
#include <asm/mach-types.h>
#include <asm/hardware/gic.h>
#include <asm/hardware/cache-l2x0.h>
#include <asm/localtimer.h>
#include <mach/... |
#include <linux/init.h>
#include <linux/export.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/platform_device.h>
#include <linux/ioport.h>
#include <linux/io.h>
#include <linux/dma-mapping.h>
#include <linux/compiler.h>
#include <linux/stddef.h>
#include <linux/bitops.h>
#include <linux/types.h>... |
<?php
/**
* @file
* Contains \Drupal\commerce\<API key>.
*/
namespace Drupal\commerce;
/**
* Defines the interface for availability checkers.
*/
interface <API key> {
/**
* Determines whether the checker applies to the given purchasable entity.
*
* @param \Drupal\commerce\<API key> $entity
* The pu... |
<?php
/**
* Class that holds processed (created and updated) host and template IDs during the current import.
*/
class <API key> {
/**
* @var array with created and updated hosts.
*/
protected $hostIds = array();
/**
* @var array with created and updated templates.
*/
protected $te... |
// <API key>: GPL-2.0-or-later
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <stdbool.h>
#include <glib.h>
#include "lib/bluetooth.h"
#include "lib/sco.h"
#include "lib/mgmt.h"
#include "monitor/bt.h"
#include "emulator/bthost.h"
#include "emulator/h... |
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>DB_ENV->rep_get_clockskew()</title>
<link rel="stylesheet" href="apiReference.css" type="text/css" />
<meta name="ge... |
/* global include */
#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>
/* local include */
#include "check_api.h"
#include... |
using System;
using System.Collections.Generic;
using System.Text;
namespace BarcodeLib.Symbologies
{
class ISBN : BarcodeCommon, IBarcode
{
public ISBN(string input)
{
Raw_Data = input;
}
<summary>
Encode the raw data using the Bookland/ISBN algorithm.
... |
CKEDITOR.plugins.setLang( 'basicstyles', 'en-gb', {
bold: 'Bold',
italic: 'Italic',
strike: 'Strike Through',
subscript: 'Subscript',
superscript: 'Superscript',
underline: 'Underline'
} ); |
/*
* Note: this file originally auto-generated by mib2c using
* : mib2c.int_watch.conf 13957 2005-12-20 15:33:08Z tanders $
*/
#include <net-snmp/net-snmp-config.h>
#include <net-snmp/net-snmp-includes.h>
#include <net-snmp/agent/<API key>.h>
#include "statPPTP.h"
#include "triton.h"
/*
* The variables we wa... |
.ultb3-box {
width: 100%;
display: block;
position: relative;
background: #f2f2f2;
overflow: hidden
}
img.ultb3-img {
border: 0;
-webkit-box-shadow: none;
box-shadow: none;
max-width: none;
width: auto !important;
float: none;
margin: 0 auto;
display: block;
posit... |
package mdbtools.libmdb06util;
/**
* @author calvin
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class mdbver
{
public static void main(String[] args)
{
}
} |
class Optimizer <API key> {
private:
IR* _ir;
public:
Optimizer(IR* ir);
IR* ir() const { return _ir; }
// optimizations
void <API key>();
void eliminate_blocks();
void <API key>();
}; |
namespace Server.Items
{
public class DestroyingAngel : BaseReagent, ICommodity
{
int ICommodity.DescriptionNumber { get { return LabelNumber; } }
bool ICommodity.IsDeedable { get { return true; } }
[Constructable]
public DestroyingAngel() : this( 1 )
{
}
... |
/**
* Drupal-specific JS helper functions and utils. Not to be confused with the
* Recline library, which should live in your libraries directory.
*/
;(function ($) {
// Constants.
var MAX_LABEL_WIDTH = 77;
var LABEL_MARGIN = 5;
// Undefined variables.
var dataset, views, datasetOptions, fileSize... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http:
<html xmlns="http:
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="refresh" content="0;url=help.php?module=questionnaire&file=fieldlength.html" />
<title>redirect</title>
</head>
<body>... |
#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/ctype.h>
#include <linux/types.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/clk.h>
#include <linux/i2c.h>
#include <linux/mfd/syscon.h>
#include <linux/mfd/syscon/imx6q-iomuxc-gpr.h>
#include <linux/of_gpi... |
<?php
if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
exit("Do not access this file directly.");
if (!class_exists ("<API key>"))
{
/**
* AliPay IPN Handler.
*
* @package s2Member\AliPay
* @since 1.5
*/
class <API key>
{
... |
<?php
class WPForms_Preview {
/**
* Primary class constructor.
*
* @since 1.1.5
*/
public function __construct() {
// Maybe load a preview page
add_action( 'init', array( $this, 'init' ) );
// Hide preview page from admin
add_action( 'pre_get_posts', array( $t... |
package raw
import (
"fmt"
"../../platforms/common"
)
type FieldMacros struct {}
func (FieldMacros) DecodeDW0() {
macro := common.GetMacro()
// Do not decode, print as is.
macro.Add(fmt.Sprintf("0x%0.8x", macro.Register(common.PAD_CFG_DW0).ValueGet()))
}
func (FieldMacros) DecodeDW1() {
macro :=... |
#ifndef __SOUND_PCM_H
#define __SOUND_PCM_H
#include <sound/asound.h>
#include <sound/memalloc.h>
#include <sound/minors.h>
#include <linux/poll.h>
#include <linux/mm.h>
#include <linux/bitops.h>
#include <linux/pm_qos.h>
#define <API key>(substream) ((substream)->private_data)
#define snd_pcm_chip(pcm) ((pcm)->private... |
<?php
/**
* Tax rate resource model
*
* @category Mage
* @package Mage_Tax
* @author Magento Core Team <core@magentocommerce.com>
*/
class <API key> extends <API key>
{
} |
package java.util.logging;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.<API key>;
import java.io.Writer;
/**
* A <code>StreamHandler</code> publishes <code>LogRecords</code> to
* a instances of <code>java.io.OutputStream</code>.
*
* @author Sascha Brawer (brawer@acm.org)
*/
publi... |
.njg-tooltip{
background: rgba(0, 0, 0, 0.5);
border-radius: 3px;
color: #fff;
font-family: sans-serif;
font-size: 13px;
padding: 5px 10px;
padding: 5px 10px;
position: absolute;
top: -2000px;
}
.njg-overlay{
background: #fbfbfb;
border-radius: 2px;
border: 1px solid #ccc... |
package test.css.controls.api;
import org.junit.Test;
import client.test.Keywords;
import client.test.Smoke;
import org.junit.BeforeClass;
import org.junit.Before;
import test.javaclient.shared.TestBase;
import static test.css.controls.ControlPage.ScrollPanes;
import test.javaclient.shared.screenshots.ScreenshotUtils;
... |
<?php
/**
* @file
* Contains \Drupal\Console\Command\Debug\UpdateCommand.
*/
namespace Drupal\Console\Command\Debug;
use Drupal\Console\Command\Shared\UpdateTrait;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Drupal\Console\Core\Command\Command;
use Dr... |
/* This file is automatically generated. DO NOT EDIT! */
#ifndef _newfile_h
#define _newfile_h
off_t sf_byte (sf_file file);
/*< Count the file data size (in bytes) >*/
sf_file sf_tmpfile(char *format);
/*< Create an temporary (rw mode) file structure. Lives within the program >*/
void sf_filefresh(sf_file file);
/*< u... |
<?php
//no direct accees
defined ('_JEXEC') or die ('restricted aceess');
class <API key> extends SppagebuilderAddons{
public function render() {
$class = (isset($this->addon->settings->class) && $this->addon->settings->class) ? $this->addon->settings->class : '';
return '<div class="sppb-empty-spa... |
<?
require_once("../../lib/bd/basedatosAdo.php");
class mysreportes
{
var $rep;
var $bd;
function mysreportes()
{
$this->rep="";
$this->bd=new basedatosAdo();
}
function sqlreporte()
{
$sql="select refcom as referencia, codpre as <API key>, monimp as monto from cpimpc... |
const express = require('express');
const path = require('path');
const compression = require('compression');
const <API key> = require('<API key>');
const <API key> = require('<API key>');
const webpack = require('webpack');
// Dev middleware
const addDevMiddlewares = (app, options) => {
const compiler = webpack(o... |
import unittest
from PyFoam.Basics.MatplotlibTimelines import MatplotlibTimelines
theSuite=unittest.TestSuite() |
/* $Id: VBoxUsbRt.cpp $ */
/** @file
* VBox USB R0 runtime
*/
#include "VBoxUsbCmn.h"
#include "../cmn/VBoxUsbIdc.h"
#include "../cmn/VBoxUsbTool.h"
#include <VBox/usblib-win.h>
#include <iprt/assert.h>
#include <VBox/log.h>
#define _USBD_
#define <API key> 0x00000008
#define VBOXUSB_MAGIC 0xABCF1423
typedef struct ... |
#ifndef _ASM_X86_ELF_H
#define _ASM_X86_ELF_H
/*
* ELF register definitions..
*/
#include <asm/ptrace.h>
#include <asm/user.h>
#include <asm/auxvec.h>
typedef unsigned long elf_greg_t;
#define ELF_NGREG (sizeof(struct user_regs_struct) / sizeof(elf_greg_t))
typedef elf_greg_t elf_gregset_t[ELF_NGREG];
typedef struct ... |
// Vampire - A code for atomistic simulation of magnetic materials
// Email:richard.evans@york.ac.uk
// 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, but
// MERCHANTABILITY or FITNESS F... |
--DDD
function c47198668.initial_effect(c)
--pendulum summon
aux.<API key>(c)
--atk up
local e2=Effect.CreateEffect(c)
e2:SetType(<API key>)
e2:SetRange(LOCATION_PZONE)
e2:SetProperty(<API key>)
e2:SetCountLimit(1)
e2:SetTarget(c47198668.atktg1)
e2:SetOperation(c47198668.atkop1)
... |
#ifndef __iLBC_LPC_DECODE_H
#define __iLBC_LPC_DECODE_H
void <API key>(
float *a, /* (o) lpc coefficients for a sub-frame */
float *lsf1, /* (i) first lsf coefficient vector */
float *lsf2, /* (i) second lsf coefficient vector */
float coef, /* (i) interpolation... |
(function( $ ) {
wp.customize( 'blogname', function( value ) {
value.bind( function( to ) {
$( '.site-title a' ).text( to );
} );
} );
wp.customize( 'blogdescription', function( value ) {
value.bind( function( to ) {
$( '.site-description' ).text( to );
... |
#!/bin/python
import os, subprocess
import logging
from autotest.client import test
from autotest.client.shared import error, software_manager
sm = software_manager.SoftwareManager()
class sblim_sfcb(test.test):
"""
Autotest module for testing basic functionality
of sblim_sfcb
@author Wang Tao <wangttao... |
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "ScriptedGossip.h"
#include "halls_of_reflection.h"
#include "Player.h"
enum Yells
{
SAY_JAINA_INTRO_1 = 0,
SAY_JAINA_INTRO_2 = 1,
SAY_JAINA_INTRO_3 = 2,
SAY_JAINA_INTRO_4 ... |
"""
Test cases adapted from the test_bsddb.py module in Python's
regression test suite.
"""
import sys, os, string
import unittest
import tempfile
from test_all import verbose
try:
# For Python 2.3
from bsddb import db, hashopen, btopen, rnopen
except ImportError:
# For earlier Pythons w/distutils pybsddb
... |
<?php
// no direct access
defined('_JEXEC') or die('Restricted access');
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
jimport('joomla.application.component.view');
/**
* Description of <API key>
*
* @author stuart
*/
class <API key> extends JView {
function... |
/* Delay between tap_code register and unregister to fix flaky media keys. */
#undef TAP_CODE_DELAY
#define TAP_CODE_DELAY 10
/* Turn off RGB lighting when the host goes to sleep. */
#define RGBLIGHT_SLEEP
/* Keep backlight and RGB level increments consistent across keyboards. */
#undef BACKLIGHT_LEVELS
#undef RGBLIGHT... |
#ifndef _CAPI2_CC_DS_H_
#define _CAPI2_CC_DS_H_
/**
* @addtogroup CAPI2_CCAPIGroup
* @{
*/
// Data Definitions used by CAPI2 only
#define PHONE_NUMBER_LEN 82
/**
Phone number dial string
**/
typedef struct
{
char phone_number[PHONE_NUMBER_LEN]; ///< NULL terminated dial string
} PHONE_NUMBER_STR_t;
/**... |
#include "qemu/osdep.h"
#include <linux/vhost.h>
#include <linux/vfio.h>
#include <sys/eventfd.h>
#include <sys/ioctl.h>
#include "hw/virtio/vhost.h"
#include "hw/virtio/vhost-backend.h"
#include "hw/virtio/virtio-net.h"
#include "hw/virtio/vhost-vdpa.h"
#include "qemu/main-loop.h"
#include "cpu.h"
static bool <API key... |
#include "<API key>.h"
#include "kis_debug.h"
#include <KoIcon.h>
#include <KoColor.h>
#include <KoColorSpace.h>
#include <<API key>.h>
#include "kis_paint_device.h"
#include "kis_painter.h"
#include "kis_node_visitor.h"
#include "<API key>.h"
KisTransparencyMask::KisTransparencyMask()
: KisEffectMask()
{
}
Kis... |
<?php
namespace eZ\Publish\Core\Limitation\Tests;
use eZ\Publish\API\Repository\Values\ValueObject;
use eZ\Publish\API\Repository\Values\Content\ContentInfo;
use eZ\Publish\API\Repository\Values\Content\<API key>;
use eZ\Publish\API\Repository\Values\Content\Query\Criterion\Operator;
use eZ\Publish\API\Repository\Value... |
package Lacuna::DB::Result::Building::SSLa;
use Moose;
use utf8;
no warnings qw(uninitialized);
extends 'Lacuna::DB::Result::Building';
use Lacuna::Constants qw(ORE_TYPES INFLATION);
around 'build_tags' => sub {
my ($orig, $class) = @_;
return ($orig->($class), qw(Construction Ships));
};
use constant universit... |
<?php
defined('_JEXEC') or die('Restricted access');
require_once(JCE_LIBRARIES .DS. 'classes' .DS. 'manager.php');
class ImageManager extends Manager
{
var $_ext = 'image=jpg,jpeg,gif,png';
/**
* @access protected
*/
function __construct()
{
parent::__construct();
// Set the ... |
/* $Id: fileaio.h $ */
/** @file
* IPRT - Internal RTFileAio header.
*/
#ifndef <API key>
#define <API key>
#include <iprt/file.h>
#include "internal/magics.h"
/**
* Defined request states.
*/
typedef enum RTFILEAIOREQSTATE
{
/** Prepared. */
<API key> = 0,
/** Submitted. */
<API key>,
/** Compl... |
/*
EventON Generate Google maps function
*/
(function($){
$.fn.evoGenmaps = function(opt){
var defaults = {
delay: 0,
fnt: 1,
cal: '',
mapSpotId: '',
_action:''
};
var options = $.extend({}, defaults, opt);
v... |
<?php
require_once dirname(__FILE__) . '/../../prepend.inc.php';
require_once 'PEAR.php';
require_once 'sys/authn/<API key>.php';
class <API key> extends <API key>
{
/**
* Standard setup method.
*
* @return void
* @access public
*/
public function setUp()
{
$this-><API key> ... |
#include "StdAfx.h"
#include "StringUtil.h"
namespace {
// Is the character a end of sentence punctuation character?
// English only?
bool IsEOSPunct(wchar_t ch)
{
return ch == '?' || ch == '!' || ch == '.';
}
}
namespace StringUtil {
std::string Narrow(const WCHAR* str, int strLen, int cp)
{
std::string narrow... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.