answer stringlengths 15 1.25M |
|---|
# -*- encoding: utf-8 -*-
# OpenERP, Open Source Management Solution
# This program is free software: you can redistribute it and/or modify
# published by the Free Software Foundation, either version 3 of the
# This program is distributed in the hope that it will be useful,
# MERCHANTABILITY or FITNESS F... |
# -*- coding: utf-8 -*-
from odoo.tests.common import HttpCase
from odoo.exceptions import ValidationError
class AccountingTestCase(HttpCase):
""" This class extends the base TransactionCase, in order to test the
accounting with localization setups. It is configured to run the tests after
the installation o... |
#ifdef __cplusplus
extern "C" {
#endif
#include "v3p_netlib.h"
/* Table of constant values */
static integer c__1 = 1;
static complex c_b8 = {(float)1.,(float)0.};
static complex c_b53 = {(float)-1.,(float)0.};
/*< subroutine csvdc(x,ldx,n,p,s,e,u,ldu,v,ldv,work,job,info) >*/
/* Subroutine */ int csvdc_(complex *... |
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports Microsoft.CodeAnalysis.Editor.VisualBasic.KeywordHighlighting
Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.KeywordHighlighting
Publ... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=constant.LC_PAPER.html">
</head>
<body>
<p>Redirecting to <a href="constant.LC_PAPER.html">constant.LC_PAPER.html</a>...</p>
<script>location.replace("constant.LC_PAPER.html" + location.search + location.hash);</script>
</body... |
var RokIEWarn=new Class({site:"sitename",initialize:function(f){var d=f;this.box=new Element("div",{id:"iewarn"}).inject(document.body,"top");var g=new Element("div").inject(this.box).set("html",d);
var e=this.toggle.bind(this);var c=new Element("a",{id:"iewarn_close"}).addEvents({mouseover:function(){this.addClass("cH... |
from sentry.testutils.cases import RuleTestCase
from sentry.rules.conditions.first_seen_event import <API key>
class <API key>(RuleTestCase):
rule_cls = <API key>
def <API key>(self):
rule = self.get_rule()
self.assertPasses(rule, self.event, is_new=True)
self.assertDoesNotPass(rule, sel... |
<?php
namespace lithium\tests\cases\console\command\create;
use lithium\console\command\create\Model;
use lithium\console\Request;
use lithium\core\Libraries;
class ModelTest extends \lithium\test\Unit {
public $request;
protected $_backup = array();
protected $_testPath = null;
public function skip() {... |
// <auto-generated>
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
#region Designer generated code
#pragma warning disable
namespace Orchard.Specs
{
using TechTalk.SpecFlow;
[System.CodeDom.Compiler.<API key>("TechTalk.SpecFl... |
require "helper"
describe Octokit::<API key>::Orgs do
before do
Octokit.reset!
@admin_client = <API key>
end
describe ".create_organization", :vcr do
it "creates a new organization" do
@admin_client.create_organization('SuchAGreatOrg', 'gjtorikian')
expect(@admin_client.last_response.statu... |
// Type definitions for es6-promise
interface Thenable<T> {
then<U>(onFulfilled?: (value: T) => U | Thenable<U>, onRejected?: (error: any) => U | Thenable<U>): Thenable<U>;
then<U>(onFulfilled?: (value: T) => U | Thenable<U>, onRejected?: (error: any) => void): Thenable<U>;
}
declare class Promise<T> implements... |
<?php
namespace Kunstmaan\GeneratorBundle\Generator;
use Symfony\Component\HttpKernel\Bundle\BundleInterface;
/**
* Generates all classes/files for a new page
*/
class PageGenerator extends KunstmaanGenerator
{
/**
* @var BundleInterface
*/
private $bundle;
/**
* @var string
*/
pri... |
var obj = {
num: 123,
str: 'hello',
};
obj. |
function error_log(message, message_type, destination, extra_headers) {
// % note 1: The dependencies, mail(), syslog(), and file_put_contents()
// % note 1: are either not fullly implemented or implemented at all
// - depends on: mail
// - depends on: syslog
// - depends on: file_p... |
namespace Nancy.Tests.Unit.Json
{
using System;
public class <API key> : IEquatable<<API key>>
{
public int Data;
public bool Equals(<API key> other)
{
if (other == null)
return false;
return (this.Data == other.Data);
}
public ... |
# <API key>: GPL-2.0
# Makefile for the Linux kernel device drivers.
# 15 Sep 2000, Christoph Hellwig <hch@infradead.org>
# Rewritten to use lists instead of if-statements.
obj-y += irqchip/
obj-y += bus/
obj-$(CONFIG_GENERIC_PHY) += phy/
# GPIO must come after pinctrl as gpios may need... |
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/miscdevice.h>
#include <linux/uaccess.h>
#include <linux/sched.h>
#include <linux/wait.h>
#include <linux/dma-mapping.h>
#include <linux/msm_audio_7X30.h>
#include <linux/msm_audio_amrnb.h>
#include <asm/atomic.h>
#include <asm/ioctls.h>
#include <mach/msm... |
#include "chrome/browser/extensions/api/content_settings/<API key>.h"
#include <set>
#include "base/debug/alias.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
#include "base/stl_util.h"
#include "base/strings/string_util.h"
#include "base/values.h"
#include "chro... |
#ifndef <API key>
#define <API key>
#include <libopencm3/cm3/memorymap.h>
/* Memory map for all buses */
#define FLASH_BASE (0x08000000U)
#define PERIPH_BASE (0x40000000U)
#define INFO_BASE (0x1ffff000U)
#define PERIPH_BASE_APB1 (PERIPH_BASE + 0x00000)
#define PERIPH_BASE_APB2 ... |
<?php
class <API key> extends Controller {
public function index() {
$this->load->language('report/customer_activity');
$this->document->setTitle($this->language->get('heading_title'));
if (isset($this->request->get['filter_customer'])) {
$filter_customer = $this->request->get['f... |
<?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;
$plugin->version = 2017051500;
$plugin->requir... |
<!DOCTYPE html>
<html>
<!-- Submitted from TestTWF Paris -->
<head>
<title>CSS Values and Units Test: vh-based dimension doesn't change when the element other dimension doesn't change.</title>
<style type="text/css">
* { margin: 0; padding: 0; font-family: Arial, Helvetica, sans-serif; font-size: 13px; ... |
'use strict'
const Buffer = require('safe-buffer').Buffer
const crypto = require('crypto')
const Transform = require('stream').Transform
const SPEC_ALGORITHMS = ['sha256', 'sha384', 'sha512']
const BASE64_REGEX = /^[a-z0-9+/]+(?:=?=?)$/i
const SRI_REGEX = /^([^-]+)-([^?]+)([?\S*]*)$/
const STRICT_SRI_REGEX = /^([^-]+)-... |
<reference path="fourslash.ts" />
// @<API key>: true
// @Filename: file.js
/ /**
/ * @param {number} a
/ * @param {string} b
/ */
/ exports.foo = function(a, b) {
/ a;
/ b
/ };
goTo.marker('a');
edit.insert('.');
verify.<API key>('toFixed', undefined, undefined, 'method');
goTo.marker('b');
edit.insert('.'... |
// The LLVM Compiler Infrastructure
// This file is distributed under the University of Illinois Open Source
// This file implements the ScratchBuffer interface.
#include "clang/Lex/ScratchBuffer.h"
#include "clang/Basic/SourceManager.h"
#include "llvm/Support/MemoryBuffer.h"
#include <cstring>
usi... |
<?php
/**
* Validates an integer representation of pixels according to the HTML spec.
*/
class <API key> extends <API key>
{
protected $max;
public function __construct($max = null) {
$this->max = $max;
}
public function validate($string, $config, $context) {
$string = trim($string);
... |
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<link href='../fullcalendar.css' rel='stylesheet' />
<link href='../fullcalendar.print.css' rel='stylesheet' media='print' />
<script src='../lib/moment.min.js'></script>
<script src='../lib/jquery.min.js'></script>
<script src='../lib/jquery-ui.custom.min.js'></sc... |
cask '<API key>' do
version '10.1'
sha256 '<SHA256-like>'
url "http://www.d-rats.com/download/OSX_Runtime/<API key>#{version.major}.pkg"
name 'KK7DS Python Runtime'
homepage 'http:
pkg "<API key>#{version.major}.pkg"
uninstall pkgutil: 'com.danplanet.python_runtime',
delete: '/opt/kk7ds'
end |
<!doctype html>
<title>
legend and float and position: absolute/fixed when the display type of
the fieldset is flex.
</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<style>
body { margin: 0; }
fieldset {
border: 10px solid;
display: flex;
mar... |
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/rtc.h>
#include <linux/mfd/abx500.h>
#include <linux/mfd/abx500/ab8500.h>
#include <linux/delay.h>
#define <API key> 0x00
#define <API key> 0x01
#define <API key> 0x02
#define ... |
# == Schema Information
# Table name: runner_projects
# id :integer not null, primary key
# runner_id :integer not null
# project_id :integer not null
# created_at :datetime
# updated_at :datetime
module Ci
class RunnerProject < ActiveRecord::Base
extend Ci::Model
belo... |
extern void simplerng_setstate(unsigned int u, unsigned int v);
extern void simplerng_getstate(unsigned int *u, unsigned int *v);
extern void simplerng_srand(unsigned int seed);
extern double <API key>(void);
extern double simplerng_getnorm(void);
extern int <API key>(double lambda);
extern double <API key>(int n); |
// RTLabel.h
// RTLabelProject
#import <UIKit/UIKit.h>
#import <CoreText/CoreText.h>
typedef enum
{
<API key> = <API key>,
RTTextAlignmentLeft = <API key>,
<API key> = <API key>,
<API key> = <API key>
} RTTextAlignment;
typedef enum
{
<API key> = <API key>,
<API key> = <API key>,
<API key>... |
<!-- Generated by Rakefile:build -->
<strong>
TeMc
</strong>
on 2012-04-06 21:31:15 <br />
@Jean Marie:
1) Maybe it should be limited to arrays, like PHP does
2) No, because the purpose of this website is to re-create php functions in javascript. Feature requests are not accepted here by design.
<hr />
<strong>
<a href... |
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example - example-example92</title>
<script src="../../../angular.min.js"></script>
<script src="script.js"></script>
</head>
<body ng-app="eventExampleApp">
<div ng-controller="EventController">
<button ng-click="clickMe($event)">Eve... |
// { dg-options "-std=c++0x" }
// { dg-require-cstdint "" }
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net>
// 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
// Free Software Foundation; either version 3, or (at your option... |
// { dg-options "-std=gnu++0x" }
// 2010-03-23 Paolo Carlini <paolo.carlini@oracle.com>
// 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
// Free Software Foundation; either version 3, or (at your option)
// any later version.
// Thi... |
// 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
// Free Software Foundation; either version 3, or (at your option)
// any later version.
// This library is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS... |
// 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
// Free Software Foundation; either version 3, or (at your option)
// any later version.
// This library is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS... |
package ONVIF::PTZ::Types::IPv6Configuration;
use strict;
use warnings;
__PACKAGE__-><API key>(1);
sub get_xmlns { 'http:
our $XML_ATTRIBUTE_CLASS;
undef $XML_ATTRIBUTE_CLASS;
sub __get_attr_class {
return $XML_ATTRIBUTE_CLASS;
}
use Class::Std::Fast::Storable constructor => 'none';
use base qw(SOAP::WSDL::XSD::Typ... |
// { dg-do compile }
// { dg-options "-std=gnu++0x" }
// 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
// Free Software Foundation; either version 3, or (at your option)
// any later version.
// This library is distributed in the hope... |
(function (_, $, Backbone, Drupal) {
Drupal.quickedit.EntityModel = Drupal.quickedit.BaseModel.extend({
defaults: {
el: null,
entityID: null,
entityInstanceID: null,
id: null,
label: null,
fields: null,
isActive: false,
inTempStore: false,
isDirty: false,
... |
#include QMK_KEYBOARD_H
#include "debug.h"
#include "action_layer.h"
#define BASE 0 // default layer
#define FN1 1 // media layer
#define CAPS_CTL CTL_T(KC_CAPS) // Caps on tap, Ctrl on hold.
#define COPY LCTL(KC_V) // C-c Copy
#define PASTE LCTL(KC_V) // C-v Paste
#define ZM_NRM LCTL(KC_0) //... |
! { dg-do compile }
! Test the patch for PR36374 in which the different
! symbols for 'foobar' would be incorrectly flagged as
! ambiguous in foo_mod.
!
! Contributed by Salvatore Filippone <sfilippone@uniroma2.it>
!
module s_foo_mod
type s_foo_type
real(kind(1.e0)) :: v
end type s_foo_type
interface foobar
... |
/** @file base_media_base.h Generic functions for replacing base data (graphics, sounds). */
#ifndef BASE_MEDIA_BASE_H
#define BASE_MEDIA_BASE_H
#include "fileio_func.h"
#include "core/smallmap_type.hpp"
#include "gfx_type.h"
#include "textfile_type.h"
#include "textfile_gui.h"
/* Forward declare these; can't do 'struc... |
#ifndef _IFADDRS_H
#include <inet/ifaddrs.h>
#include <stdbool.h>
#include <stdint.h>
libc_hidden_proto (getifaddrs)
libc_hidden_proto (freeifaddrs)
struct in6addrinfo
{
enum {
in6ai_deprecated = 1,
in6ai_homeaddress = 2
} flags:8;
uint8_t prefixlen;
uint16_t :16;
uint32_t index;
uint32_t addr[4];
}... |
#include "chrome/browser/extensions/api/file_system/<API key>.h"
#include "chrome/browser/extensions/api/file_system/<API key>.h"
#include "chrome/browser/profiles/profile.h"
#include "components/keyed_service/content/<API key>.h"
#include "content/public/browser/browser_context.h"
namespace extensions {
<API key>* <AP... |
<?php
use LibreNMS\Exceptions\InvalidIpException;
use LibreNMS\Util\IP;
echo '<div class="container-fluid">';
echo "<div class='row'>
<div class='col-md-12'>
<div class='panel panel-default panel-condensed'>
<div class='panel-heading'>";
if ($config['<API key>']) {
echo '<i class="fa fa-... |
/**
* @ingroup tests
* @{
*
* @file
* @brief Application for testing low-level SPI driver implementations
*
* This implementation covers both, master and slave configurations.
*
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*
* @}
*/
#include <stdio.h>
#include <string.h>
#include <stdli... |
#ifndef <API key>
#define <API key>
#include <gst/gst.h>
#include <gst/base/gstbasetransform.h>
#include <gst/audio/audio.h>
#include <gst/audio/gstaudiofilter.h>
#include "<API key>.h"
G_BEGIN_DECLS
#define <API key> (<API key>())
#define <API key>(obj) (<API key>((obj),<API key>,GstAudioChebLimi... |
/// <reference path='fourslash.ts' />
// @Filename: foo.ts
/ export function /*Destination*/bar() { return "bar"; }
/ import('./foo').then(({ [|bar|] }) => undefined);
verify.goToDefinition("1", "Destination"); |
// file at the top-level directory of this distribution and at
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// Test that Cell is considered invariant with respect to its
// type.
use std::cell::Cell;
struct Foo<'a> {
x: Cell<Option<&'a int>>,
}
fn use_<'short,... |
// file at the top-level directory of this distribution and at
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(intrinsics)]
use std::ptr;
struct Point {
x: f32,
y: f32,
z: f32,
}
extern "rust-intrinsic" {
fn return_address() -> *const u8;
}... |
var $ = require('common:widget/ui/jquery/jquery.js');
var UT = require('common:widget/ui/ut/ut.js');
var FBClient = {};
var TPL_CONF = require('home:widget/ui/facebook/fbclient-tpl.js');
/**
* Fackbook module init function
* @return {object} [description]
*/
var WIN = window,
DOC = document,
conf = WIN.conf.... |
"""
Contains CheesePreprocessor
"""
# Imports
from ...preprocessors.base import Preprocessor
# Classes
class CheesePreprocessor(Preprocessor):
"""
Adds a cheese tag to the resources object
"""
def __init__(self, **kw):
"""
Public constructor
"""
super(CheesePreprocessor, ... |
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
package com.jcraft.jorbis;
// psychoacoustic setup
class PsyInfo{
int athp;
int decayp;
int smoothp;
int noisefitp;
int noisefit_subblock;
float noisefit_threshdB;
float ath_att;
int tonemaskp;
float[] toneatt_125Hz=new float[5];
float[]... |
/**
* @file
* Progress behavior.
*
* @see progress.js
*/
.progress {
position: relative;
}
.progress__track {
background-color: #fff;
border: 1px solid;
margin-top: 5px;
max-width: 100%;
min-width: 100px;
height: 16px;
}
.progress__bar {
background-color: #000;
height: 1.5em;
width: 3%;
min-w... |
#ifndef __ASMPARISC_ELF_H
#define __ASMPARISC_ELF_H
/*
* ELF register definitions..
*/
#include <asm/ptrace.h>
#define EM_PARISC 15
/* HPPA specific definitions. */
#define EF_PARISC_TRAPNIL 0x00010000 /* Trap nil pointer dereference. */
#define EF_PARISC_EXT 0x00020000 /* Program uses arch. extensions. *... |
/**
* 404 (Not Found) Handler
*
* Usage:
* return res.notFound();
* return res.notFound(err);
* return res.notFound(err, 'some/specific/notfound/view');
*
* e.g.:
* ```
* return res.notFound();
* ```
*
* NOTE:
* If a request doesn't match any explicit routes (i.e. `config/routes.js`)
* or route blueprint... |
package org.chromium.base;
import android.os.Looper;
import android.os.MessageQueue;
import android.os.SystemClock;
import android.util.Log;
import android.util.Printer;
import org.chromium.base.annotations.CalledByNative;
import org.chromium.base.annotations.JNINamespace;
/**
* Java mirror of Chrome trace event API. ... |
(function(){var e=window.AmCharts;e.AmRectangularChart=e.Class({inherits:e.AmCoordinateChart,construct:function(a){e.AmRectangularChart.base.construct.call(this,a);this.theme=a;this.createEvents("zoomed","changed");this.marginRight=this.marginBottom=this.marginTop=this.marginLeft=20;this.depth3D=this.angle=0;this.plotA... |
#pragma once
#include "../dxgi/Enums.h"
#include "Enums11.h"
namespace SlimDX
{
namespace Direct3D11
{
<summary>
Contains the description of the contents of an image file.
</summary>
<unmanaged><API key></unmanaged>
[System::Runtime::InteropServices::StructLayout( System:... |
package build.tools.jdwpgen;
import java.util.*;
import java.io.*;
class AltNode extends AbstractGroupNode implements TypeNode {
SelectNode select = null;
void constrain(Context ctx) {
super.constrain(ctx);
if (!(nameNode instanceof NameValueNode)) {
error("Alt name must have value: ... |
#include "DRMEncoder.h"
#include <cstring>
#include <errno.h>
#include <stdexcept>
#include <string>
using namespace KODI::WINDOWING::GBM;
CDRMEncoder::CDRMEncoder(int fd, uint32_t encoder)
: CDRMObject(fd), m_encoder(drmModeGetEncoder(m_fd, encoder))
{
if (!m_encoder)
throw std::runtime_error("drmModeGetEncode... |
#pragma once
#include "IDirectory.h"
#include "addons/AddonManager.h"
class CURL;
typedef std::shared_ptr<CFileItem> CFileItemPtr;
namespace XFILE
{
/*!
\ingroup windows
\brief Get access to shares and it's directories.
*/
class CAddonsDirectory : public IDirectory
{
public:
CAddonsDirectory(void);
... |
# This file is part of Canvas.
# Canvas is free software: you can redistribute it and/or modify it under
# Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
# details.
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper.rb')
require 'db/migrate/<API key>'
describe '<API key>' do
... |
#include "test_db_base.h"
#include <cppcms/json.h>
test_db_base::test_db_base(cppcms::service &srv) : cppcms::application(srv) {
db_connection_str = settings().get<std::string>("app.<API key>");
}
void test_db_base::init() {
sql.open(db_connection_str);
}
void test_db_base::clear() {
sql.close();
} |
<?php
/*
* Autoloader and dependency injection initialization for Swift Mailer.
*/
//Load Swift utility class
require_once dirname(__FILE__) . '/Swift.php';
//Start the autoloader
Swift::registerAutoload();
//Load the init script to set up dependency injection
require_once dirname(__FILE__) . '/swift_init.php'; |
using System;
namespace fizz_buzz
{
class Program
{
static void Main(string[] args)
{
for (int i = 1; i < 101; i++)
{
if (i % 3 < 1)
Console.Write("fizz");
if (i % 5 < 1)
Console.Write("buzz");
... |
# config.rb
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
# ... |
require "rack/chunked"
module ActionController #:nodoc:
# Allows views to be streamed back to the client as they are rendered.
# By default, Rails renders views by first rendering the template
# and then the layout. The response is sent to the client after the whole
# template is rendered, all queries are made,... |
using System.Buffers;
using System.Collections;
using System.Diagnostics;
using System.Runtime.InteropServices;
namespace System
{
public static partial class Environment
{
private static string? <API key>(string variable)
{
Span<char> buffer = stackalloc char[128]; // a somewhat rea... |
export { Moon16 as default } from "../../"; |
/* area_2d.h */
/* This file is part of: */
/* GODOT ENGINE */
/* a copy of this software and associated documentation files (the */
/* "Software"), ... |
export { Mpeg16 as default } from "../../"; |
<!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"/>
<title>RakNet: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>... |
<?php
namespace Illuminate\Mail\Transport;
use Swift_Mime_Message;
use Illuminate\Support\Collection;
class ArrayTransport extends Transport
{
/**
* The collection of Swift Messages.
*
* @var \Illuminate\Support\Collection
*/
protected $messages;
/**
* Create a new array transport i... |
/*
* Authors: Dave Airlie <airlied@redhat.com>
* Michael Thayer <michael.thayer@oracle.com,
* Hans de Goede <hdegoede@redhat.com>
*/
#include <linux/export.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_plane_helper.h>
#include "vbox_drv.h"
#include "vboxvideo.h"
#include "hgsmi_channels.h"... |
<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html xmlns="http:
<head>
<title>lxml.html</title>
<link rel="stylesheet" href="epydoc.css" type="text/css" />
<script type="text/javascript" src="epydoc.js"></script>
</h... |
#ifndef <API key>
#define <API key> 1
#include <sys/types.h>
#include <arpa/inet.h>
#include <pthread.h>
/* useful stuff for child processes. most of this is hidden in
* server_child.c to ease changes in implementation */
#define CHILD_HASHSIZE 32
/* One AFP session child process */
typedef struct afp_child {
pid_... |
#ifndef __GST_DMABUF_H__
#define __GST_DMABUF_H__
#include <gst/gst.h>
G_BEGIN_DECLS
#define <API key> "dmabuf"
GstAllocator * <API key> (void);
GstMemory * <API key> (GstAllocator * allocator, gint fd, gsize size);
gint <API key> (GstMemory * mem);
gboolean <API key> (GstMemory * mem);
G_END_DECLS
#... |
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <unistd.h>
#include "posixtest.h"
void handler(int signo)
{
}
int main(void)
{
struct sigaction act;
act.sa_handler = handler;
act.sa_flags = 0;
sigemptyset(&act.sa_mask);
sigaddset(&act.sa_mask, SIGSTOP);
... |
#include <common.h>
#include <command.h>
#include <hwconfig.h>
#include <pci.h>
#include <i2c.h>
#include <asm/processor.h>
#include <asm/mmu.h>
#include <asm/cache.h>
#include <asm/immap_85xx.h>
#include <asm/fsl_pci.h>
#include <asm/fsl_ddr_sdram.h>
#include <asm/io.h>
#include <asm/fsl_law.h>
#include <asm/fsl_lbc.h... |
#ifndef _GST_CMS_H_
#define _GST_CMS_H_
#include <gst/gst.h>
G_BEGIN_DECLS
typedef struct _Color Color;
typedef struct _ColorMatrix ColorMatrix;
struct _Color
{
double v[3];
};
struct _ColorMatrix
{
double m[4][4];
};
void color_xyY_to_XYZ (Color * c);
void color_XYZ_to_xyY (Color * c);
void color_set (Color * c, d... |
<?php
/**
* @see <API key>
*/
#require_once 'Zend/Gdata/Extension.php';
class <API key> extends <API key>
{
protected $_rootNamespace = 'yt';
protected $_rootElement = 'statistics';
/**
* The videoWatchCount attribute specifies the number of videos
* that a user has watched on YouTube. The video... |
#ifndef __TASKPARA_H
#define __TASKPARA_H
#include "<API key>.h"
#include "vtkRTAnalyticSource.h"
#include "<API key>.h"
#include "<API key>.h"
#include "vtkImageShrink3D.h"
#include "vtkGlyph3D.h"
#include "vtkGlyphSource2D.h"
#include "vtkImageGradient.h"
#include "<API key>.h"
#include "<API key>.h"
#include "vtkPro... |
.mblTextArea {overflow: auto;}.dj_ff3 .mblTextArea {-moz-border-radius: 0;} |
<?php
final class <API key>
extends <API key> {
public function testLinter() {
$this-><API key>(dirname(__FILE__).'/puppet-lint/');
}
} |
`tf.sigmoid(x, name=None)` {#sigmoid}
Computes sigmoid of `x` element-wise.
Specifically, `y = 1 / (1 + exp(-x))`.
## Args:
* <b>`x`</b>: A Tensor with type `float32`, `float64`, `int32`, `complex64`, `int64`,
or `qint32`.
* <b>`name`</b>: A name for the operation (optional).
## Returns:
A Tensor with the same ... |
// Random number generator - requires a PRNG backend, e.g. prng4.js
// For best results, put code like
// <body onClick='rng_seed_time();' onKeyPress='rng_seed_time();'>
// in your main HTML document.
var rng_state;
var rng_pool;
var rng_pptr;
// Mix in a 32-bit integer into the pool
function rng_seed_int(x) {
rng_po... |
#include "uint.hpp"
int
main()
{
using spirit_test::test;
using spirit_test::test_attr;
// unsigned tests
{
using boost::spirit::qi::uint_;
unsigned u;
BOOST_TEST(test("123456", uint_));
BOOST_TEST(test_attr("123456", uint_, u));
BOOST_TEST(u == 123456);
... |
<!DOCTYPE html>
<html lang="en">
<head>
<!-- head -->
<meta charset="utf-8">
<meta name="<API key>" content="no" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Owl Carousel Documentation">
<meta name="author" content="David Deutsch... |
/*before*/"use strict";
/*after*/foo(); |
package com.sun.xml.internal.xsom.impl.parser;
import com.sun.xml.internal.xsom.XSSchemaSet;
import com.sun.xml.internal.xsom.impl.ElementDecl;
import com.sun.xml.internal.xsom.impl.SchemaImpl;
import com.sun.xml.internal.xsom.impl.SchemaSetImpl;
import com.sun.xml.internal.xsom.parser.<API key>;
import com.sun.xml.int... |
using System.Collections.Generic;
using System.Reflection;
using Xunit;
namespace System.Globalization.Tests
{
public class <API key>
{
public static IEnumerable<object[]> <API key>()
{
yield return new object[] { "ar" , DigitShapes.Context };
yield return new obje... |
/* <API key> includes */
@-ms-viewport {
width: device-width; }
@-o-viewport {
width: device-width; }
@font-face {
font-family: GDS-Logo;
src: local("HelveticaNeue"), local("Helvetica Neue"), local("Arial"), local("Helvetica"); }
@-ms-viewport {
width: device-width; }
@-o-viewport {
width: device-width; }
@... |
using System.Collections.Generic;
using Xunit;
namespace System.Globalization.Tests
{
public class <API key>
{
public static IEnumerable<object[]> <API key>()
{
yield return new object[] { "", 0, new string[0] }; // Empty string
yield return new object[] { "Hello", 5, new... |
#include "graphics/surface.h"
#include "graphics/thumbnail.h"
#include "dm/inventory.h"
#include "dm/dungeonman.h"
#include "dm/eventman.h"
#include "dm/group.h"
#include "dm/menus.h"
#include "dm/gfx.h"
#include "dm/text.h"
#include "dm/objectman.h"
#include "dm/timeline.h"
#include "dm/projexpl.h"
#include "dm/sounds... |
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <assert.h>
#include <gelf.h>
#include <stdlib.h>
#include "libelfP.h"
int
gelf_update_syminfo (data, ndx, src)
Elf_Data *data;
int ndx;
GElf_Syminfo *src;
{
Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
Elf_Scn *scn;
int result = 0;
if (... |
// The LLVM Compiler Infrastructure
// This file is distributed under the University of Illinois Open Source
#ifndef <API key>
#define <API key>
#include "llvm/DebugInfo/DWARF/DWARFUnit.h"
namespace llvm {
class DWARFCompileUnit : public DWARFUnit {
public:
DWARFCompileUnit(DWARFContext &Context, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.