answer stringlengths 15 1.25M |
|---|
/*!
@file asfvideo.hpp
@brief An Image subclass to support ASF video files
@version $Rev$
@author Abhinav Badola for GSoC 2012
<a href="mailto:mail.abu.to@gmail.com">mail.abu.to@gmail.com</a>
@date 08-Aug-12, AB: created
*/
#ifndef ASFVIDEO_HPP
#define ASFVIDEO_HPP
// included header file... |
"""
Tools and data structures for working with genomic intervals (or sets of
regions on a line in general) efficiently.
"""
# For compatiblity with existing stuff
from bx.intervals.intersection import * |
# -*- coding: utf-8 -*-
from ..internal.DeadCrypter import DeadCrypter
class Movie2KTo(DeadCrypter):
__name__ = "Movie2KTo"
__type__ = "crypter"
__version__ = "0.56"
__status__ = "stable"
__pattern__ = r'http://(?:www\.)?movie2k\.to/(.+)\.html'
__config__ = [("activated", "bool", "Activated", Tr... |
<?php
namespace Mautic\EmailBundle\EventListener;
use Mautic\ConfigBundle\ConfigEvents;
use Mautic\ConfigBundle\Event\ConfigEvent;
use Mautic\ConfigBundle\Event\ConfigBuilderEvent;
use Mautic\CoreBundle\EventListener\CommonSubscriber;
/**
* Class ConfigSubscriber
*
* @package Mautic\CoreBundle\EventListener
*/
clas... |
#ifndef GNUPG_KEYDB_H
#define GNUPG_KEYDB_H
#include <ksba.h>
#include "../kbx/keybox-search-desc.h"
typedef struct keydb_handle *KEYDB_HANDLE;
/* Flag value used with <API key>. */
#define VALIDITY_REVOKED (1<<5)
/*-- keydb.c --*/
int keydb_add_resource (const char *url, int force, int secret,
... |
/* refchg.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static integer c__2 = 2;
/* $Procedure REFCHG (Reference frame Change) */
/* Subroutine */ int refchg_(integer *fram... |
define( [], function() {
var model = Backbone.Model.extend( {
defaults: {
objectType: 'template',
id: 'none',
title: 'unknown'
},
initialize: function() {
this.set( 'desc', this.get( 'template-desc' ) );
}
} );
return model;
} )... |
package org.thoughtcrime.securesms.video;
import android.media.MediaDataSource;
import androidx.annotation.NonNull;
import androidx.annotation.RequiresApi;
import org.thoughtcrime.securesms.crypto.AttachmentSecret;
import org.thoughtcrime.securesms.crypto.<API key>;
import org.thoughtcrime.securesms.util.Util;
import j... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'certified'}
EXAMPLES = r'''
- name: Create a ...
bigip_ike_peer... |
package com.vividsolutions.jts.index.chain;
import java.util.*;
import com.vividsolutions.jts.geom.Coordinate;
import com.vividsolutions.jts.geomgraph.Quadrant;
/**
* Constructs {@link MonotoneChain}s
* for sequences of {@link Coordinate}s.
*
* @version 1.7
*/
public class <API key> {
public static int[] toIntAr... |
#pragma once
#include <QtGlobal>
namespace QmlDesigner {
inline double round(double value, int digits)
{
double factor = digits * 10.;
return double(qRound64(value * factor)) / factor;
}
} |
#include "writeFuns.H"
#include "<API key>.H"
// Store List in dest
template<class Type>
void Foam::writeFuns::insert
(
const List<Type>& source,
DynamicList<floatScalar>& dest
)
{
forAll(source, i)
{
insert(source[i], dest);
}
}
/ Store List (indexed through map) in dest
//template<class Ty... |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('contenttypes', '<API key>'),
migrations.<API key>(settings.AUTH_USER_MODEL),
('sites', '0001_ini... |
class <API key> < ActiveRecord::Migration
def change
add_column :userfiles, :immutable, :boolean, :default => false
end
end |
# $HeadURL$
# File: ReqProxyHandler.py
__RCSID__ = "$Id$"
# @file RequestProxyHandler.py
# @author Krzysztof.Ciba@NOSPAMgmail.com
# @date 2012/07/20 13:18:58
# @brief Definition of RequestProxyHandler class.
# # imports
import os
from types import DictType
try:
from hashlib import md5
except ImportError:
from md5 i... |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.<API key>(settings.AUTH_USER_MODEL),
('trans', '<API key>'),
]
operations = [
m... |
package com.aptana.ide.ui.io.navigator;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.<API key>;
import org.eclipse.core.resources.<API key>;
import org.eclipse.core.resources.IResourceDelta;
import org.eclipse.core.resources.IWorkspace... |
<pre class="<API key>"><code>util.uuid()</code></pre><p>Return a pseudo-<a href="http://en.wikipedia.org/wiki/<API key>">UUID</a>.</p> |
require_relative "../client"
require_relative "../request"
require_relative "../response"
module Vault
class Client
# A proxy to the {Sys} methods.
# @return [Sys]
def sys
@sys ||= Sys.new(self)
end
end
class Sys < Request; end
end
require_relative "sys/audit"
require_relative "sys/<API key>... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/language/v1beta2/language_service.proto
namespace Google\Cloud\Language\V1beta2;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* The entity analysis requ... |
package org.voltdb.groovy;
import static java.lang.Character.toLowerCase;
import static java.lang.Character.toUpperCase;
import groovy.lang.Closure;
import groovy.lang.GString;
import groovy.lang.GroovyObjectSupport;
import java.util.NavigableMap;
import org.voltdb.VoltTable;
import org.voltdb.VoltType;
import com.goog... |
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
function <API key>($fields) {
static $mod_strings;
if(empty($mod_strings)) {
global $current_language;
$mod_strings = <API key>($current_language, 'Campaigns');
}
$overlib_string = '';
if(!empty($fields['... |
/**
* abstract class SlimeyAction - Actions on the editor
* name: name of the action
*/
var SlimeyAction = function(name, slimey) {
this.name = name;
this.slimey = slimey;
}
/**
* returns the action's name.
*/
SlimeyAction.prototype.getName = function() {
return this.name;
}
/**
* base perform... |
# 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__) + '/api_spec_helper')
require 'nokogiri'
describe UserContent, type: :request do... |
#include "bench_framework.hpp"
#include <mapnik/image_util.hpp>
class test : public benchmark::test_case
{
mapnik::image_rgba8 im_;
public:
test(mapnik::parameters const& params)
: test_case(params),
im_(256,256) {}
bool validate() const
{
return true;
}
bool operator()() con... |
#ifndef FMULTIMAP_H
#define FMULTIMAP_H
#ifdef MULTIMAP_H
#undef MULTIMAP_H
#undef TREE_H
#define <API key>
#endif
#define Allocator far_allocator
#define multimap far_multimap
#define rb_tree far_rb_tree
#include <faralloc.h>
#include <multimap.h>
#undef MULTIMAP_H
#undef TREE_H
#ifdef <API key>
#define MULTIMAP_H
#de... |
package dr.app.beauti.types;
/**
* @author Marc A. Suchard
*/
public enum <API key> {
NORMAL_HPM,
LOGNORMAL_HPM;
public String toString() {
switch (this) {
case NORMAL_HPM:
return "Normal";
case LOGNORMAL_HPM:
return "Lognormal";
... |
#ifndef CS_HTTPCONNECT_H
#define CS_HTTPCONNECT_H
#include "bytestream.h"
// CS_NAMESPACE_BEGIN
class HttpConnect : public ByteStream
{
Q_OBJECT
public:
enum Error { <API key> = ErrCustom, ErrHostNotFound, ErrProxyConnect, ErrProxyNeg, ErrProxyAuth };
HttpConnect(QObject *parent=0);
~HttpConnect();
... |
using System;
namespace AutoTest.VM
{
class LaunchArguments
{
public Guid CorrelationId { get; private set; }
public int Port { get; private set; }
public string WatchPath { get; private set; }
public bool Debug { get; private set; }
public int OwnerPort { get; private se... |
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{ margin:0;padding:0;border:0;outline:... |
#include "config.h"
#include "KURL.h"
#include <wtf/RetainPtr.h>
#include <CoreFoundation/CFURL.h>
using namespace std;
namespace WebCore {
typedef Vector<char, 512> CharBuffer;
CFURLRef <API key>(const CharBuffer&);
KURL::KURL(CFURLRef url)
{
if (!url) {
invalidate();
return;
}
CFIndex byte... |
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..utils import (
HEADRequest,
sanitized_Request,
urlencode_postdata,
)
class GDCVaultIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?gdcvault\.com/play/(?P<id>\d+)/(?P<name>(\w|-)+)?'
_NETRC_MACHINE = 'gdcv... |
// Code generated by protoc-gen-gogo.
// source: uuid.proto
// DO NOT EDIT!
package events
import proto "github.com/gogo/protobuf/proto"
import math "math"
// discarding unused import gogoproto "github.com/gogo/protobuf/gogoproto/gogo.pb"
import io "io"
import fmt "fmt"
import <API key> "github.com/gogo/protobuf/proto"... |
(function(modules) { // webpackBootstrap
// The module cache
var installedModules = {};
// The require function
function __webpack_require__(moduleId) {
// Check if module is in cache
if(installedModules[moduleId])
return installedModules[moduleId].exports;
// Create a new module (and put it into the cache)
var module ... |
<HTML><style type="text/css"> ul.inheritance {
margin:0;
padding:0;
}
ul.inheritance li {
display:inline;
list-style-type:none;
}
ul.inheritance li ul.inheritance {
margin-left:15px;
padding-left:15px;
padding-top:1px;
}
</style> <section class="detail" ... |
#!/usr/bin/python2
# tree. An additional intellectual property rights grant can be found
# in the file PATENTS. All contributing project authors may
# be found in the AUTHORS file in the root of the source tree.
# To run this script please copy "out/<build_name>//pyproto/webrtc/modules/
# audio_coding/<API key>/d... |
"""Support for Verisure Smartplugs."""
import logging
from time import monotonic
from homeassistant.components.switch import SwitchEntity
from . import CONF_SMARTPLUGS, HUB as hub
_LOGGER = logging.getLogger(__name__)
def setup_platform(hass, config, add_entities, discovery_info=None):
"""Set up the Verisure switch... |
package com.intellij.codeInsight.template.impl;
import com.intellij.codeInsight.CodeInsightBundle;
import com.intellij.codeInsight.lookup.Lookup;
import com.intellij.codeInsight.lookup.<API key>;
import com.intellij.codeInsight.lookup.LookupElement;
import com.intellij.codeInsight.lookup.LookupElementAction;
import com... |
using System;
using Android.App;
using Android.Content;
using Android.Content.PM;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
using Robotics.Mobile.Core.Bluetooth.LE;
using Xamarin.Forms.Platform.Android;
namespace HeadLights.Android
{
[Activity (Label = "HeadLights.Android.A... |
// +build linux freebsd
package daemon
import (
"context"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"strconv"
"time"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/links"
"github.com/docker/docker/pkg/idtools"
"github.com/docker/docker/pkg/mount"
"gith... |
// This file was automatically generated. Do not modify.
'use strict';
goog.provide('Blockly.Msg.az');
goog.require('Blockly.Msg');
Blockly.Msg.ADD_COMMENT = "Şərh əlavə et";
Blockly.Msg.CHANGE_VALUE_TITLE = "Qiyməti dəyiş:";
Blockly.Msg.CHAT = "Chat with your collaborator by typing in this box!"; // untranslated
Blo... |
// +build dfssh
package dockerfile2llb
import (
"github.com/moby/buildkit/client/llb"
"github.com/moby/buildkit/frontend/dockerfile/instructions"
"github.com/pkg/errors"
)
func dispatchSSH(m *instructions.Mount) (llb.RunOption, error) {
if m.Source != "" {
return nil, errors.Errorf("ssh does not... |
package org.python.util.install.driver;
import java.io.<API key>;
import java.io.File;
import java.io.IOException;
import java.io.PrintStream;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.List;
import java.util.StringTokenizer;
import org.python.util.install.ChildProcess;
import org.python.util... |
package org.wso2.carbon.apimgt.rest.integration.tests.model;
import java.util.Objects;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* CORS configuration for the API
*/
@... |
#if !defined(<API key>)
#define <API key>
#if defined(_WIN32)
#if defined(ALIZE_EXPORTS)
#define ALIZE_API __declspec(dllexport)
#else
#define ALIZE_API __declspec(dllimport)
#endif
#else
#define ALIZE_API
#endif
#include "FileWriter.h"
namespace alize
{
class Mixture;
class MixtureGD;
class Config;
class Mixtu... |
<!--[metadata]>
+++
title = "service tasks"
description = "The service tasks command description and usage"
keywords = ["service, tasks"]
advisory = "rc"
[menu.main]
parent = "smn_cli"
+++
<![end-metadata]
# service tasks
Markdown
Usage: docker service tasks [OPTIONS] SERVICE
List the tasks of a service
Options:
-... |
#pragma once
#include <string>
#include <vector>
#include "rocksdb/rocksdb_namespace.h"
#include "rocksdb/slice.h"
#include "rocksdb/status.h"
#include "rocksdb/trace_record.h"
namespace ROCKSDB_NAMESPACE {
class <API key>;
class <API key>;
class <API key>;
class <API key>;
// Base class for the results of all types of... |
#!/usr/bin/env bash
set -e
cd "$(dirname "$BASH_SOURCE")/.."
rm -rf vendor/
source 'hack/.vendor-helpers.sh'
# the following lines are in sorted order, FYI
clone git github.com/Azure/go-ansiterm <SHA1-like>
clone git github.com/Sirupsen/logrus v0.8.2 # logrus is a common dependency among multiple deps
clone git github.... |
"""Abstract Base Classes (ABCs) for collections, according to PEP 3119.
DON'T USE THIS MODULE DIRECTLY! The classes here should be imported
via collections; they are defined here only to alleviate certain
bootstrapping issues. Unit tests are in test_collections.
"""
from abc import ABCMeta, abstractmethod
import sys
... |
#ifndef <API key>
#define <API key>
#ifdef _WIN32
#pragma once
#endif
#include <vgui_controls/Frame.h>
class CampaignPanel;
// frame used to hold the campaign screen panels
class CampaignFrame : public vgui::Frame
{
<API key>( CampaignFrame, vgui::Frame );
CampaignFrame(Panel *parent, const char *panelName, boo... |
#import "MWMButton.h"
#import "MWMCircularProgress.h"
@interface <API key> : UIView
@property(nonatomic, readonly) BOOL animating;
@property(nonatomic) <API key> state;
@property(nonatomic) BOOL isInvertColor;
- (nonnull instancetype)initWithFrame:(CGRect)frame
__attribute__((unavailable("initWithFrame is not avail... |
class AddSolutionToLevels < ActiveRecord::Migration
def change
add_column :levels, :<API key>, :integer
end
end |
/* ftvalid.h */
/* FreeType validation support (specification). */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* This file is part of the FreeType project, and may only be used, */
/* modi... |
#!/usr/bin/env python
# example setselection.py
import pygtk
pygtk.require('2.0')
import gtk
import time
class SetSelectionExample:
# Callback when the user toggles the selection
def selection_toggled(self, widget, window):
if widget.get_active():
self.have_selection = window.selection_owner... |
@charset "UTF-8";
/**
* 1. Set default font family to sans-serif.
* 2. Prevent iOS and IE text size adjust after device orientation change,
* without disabling user zoom.
*/
html {
font-family: sans-serif;
-ms-text-size-adjust: 100%;
-<API key>: 100%;
}
/**
* Remove default margin.
*/
body ... |
using System.Collections.Generic;
using System.Net.Http;
using InstaSharp.Extensions;
using InstaSharp.Models.Responses;
using System.Threading.Tasks;
namespace InstaSharp.Endpoints
{
<summary>
Comments Endpoint
</summary>
public class Comments : InstagramApi
{
<summary>
Comments End... |
"use strict";
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
_Object$defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var noteRole = {
abstract: false,
<API key>: false,
baseConcepts: [],
<API key>: false,
nameFrom: ['au... |
#define SIZEOF_CHAR 1
#define SIZEOF_SHORT 2
#define SIZEOF_INT 4
#ifndef _MSC_EXTENSIONS
#define SIZEOF_LONG_LONG 8
#endif
/*
* Avoids a compiler warning in case this was already defined
* (someone defined _WINSOCKAPI_ when including 'windows.h', in order
* to prevent it from including 'winsock.h')
*/
#ifdef _WINS... |
<<API key> class-icon="icon-cog">{{"<API key>" | translate}}</<API key>> |
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Namespace Microsoft.CodeAnalysis.PasteTracking
<UseExportProvider>
Public Class <API key>
Private Const Project1Name = "Proj1"
Private C... |
#include "RPC/OpaqueServerRPC.h"
#include "RPC/Server.h"
#include "RPC/ServerRPC.h"
#include "RPC/<API key>.h"
namespace LogCabin {
namespace RPC {
/////// Server::RPCHandler //////////
Server::RPCHandler::RPCHandler(Server& server)
: server(server)
{
}
Server::RPCHandler::~RPCHandler()
{
}
void
Server::RPCHandler:... |
package Mojo::URL;
use Mojo::Base -base;
use overload bool => sub {1}, '""' => sub { shift->to_string }, fallback => 1;
use Mojo::Parameters;
use Mojo::Path;
use Mojo::Util
qw(decode encode punycode_decode punycode_encode url_escape url_unescape);
has base => sub { Mojo::URL->new };
has [qw(fragment host port scheme ... |
# typed: false
# <API key>: true
require "rubocops/bottle"
describe RuboCop::Cop::FormulaAudit::<API key> do
subject(:cop) { described_class.new }
it "reports no offenses for `bottle :uneeded`" do
expect_no_offenses(<<~RUBY)
class Foo < Formula
url "https://brew.sh/foo-1.0.tgz"
bottle :unn... |
<?php
class <API key> extends Kwc_Abstract
{
public static function getSettings()
{
$ret = parent::getSettings();
$ret['viewCache'] = false;
return $ret;
}
public function getTemplateVars()
{
$ret = parent::getTemplateVars();
$ret['order'] = $this->_getOrder()... |
<?php
class <API key> extends <API key>
{
protected function _getConfig()
{
$ret = parent::_getConfig();
$ret['list']['listWidth'] = 120;
return $ret;
}
} |
#ifndef <API key>
#define <API key>
#include "base/containers/flat_map.h"
#include "components/exo/surface_observer.h"
#include "ui/events/event_handler.h"
#include "ui/gfx/geometry/point_f.h"
namespace ui {
class LocatedEvent;
class TouchEvent;
}
namespace exo {
class Seat;
class TouchDelegate;
class TouchStylusDelega... |
#include <time.h>
#include <stdarg.h>
#include "avformat.h"
#include "internal.h"
#include "libavcodec/dv_profile.h"
#include "libavcodec/dvdata.h"
#include "dv.h"
#include "libavutil/fifo.h"
#include "libavutil/mathematics.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.h"
#include "libavutil/timecode.h... |
package org.motechproject.mds.builder.impl;
import javassist.<API key>;
import javassist.ClassPool;
import javassist.CtClass;
import javassist.CtField;
import javassist.NotFoundException;
import org.apache.commons.lang.reflect.FieldUtils;
import org.joda.time.DateTime;
import org.junit.Before;
import org.junit.Test;
im... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Variable = void 0;
const VariableBase_1 = require("./VariableBase");
/**
* A Variable represents a locally scoped identifier. These include arguments to functions.
*/
class Variable extends VariableBase_1.VariableBase {
/**
... |
#ifndef CanvasGradient_h
#define CanvasGradient_h
#include "bindings/core/v8/ScriptWrappable.h"
#include "platform/graphics/Gradient.h"
#include "platform/heap/Handle.h"
#include "wtf/Forward.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
namespace blink {
class ExceptionState;
class CanvasGradient final : ... |
#include "test_utils/ANGLETest.h"
using namespace angle;
class MaxTextureSizeTest : public ANGLETest
{
protected:
MaxTextureSizeTest()
{
setWindowWidth(512);
setWindowHeight(512);
setConfigRedBits(8);
setConfigGreenBits(8);
setConfigBlueBits(8);
setConfigAlphaBi... |
#pragma once
namespace stm32plus {
namespace usb {
/**
* Template base class for USB CDC devices. The usual control endpoint 0 is inherited
* as is the mandatory IN interrupt endpoint for notifications to the host at address 1.
* Subclasses should provide the endpoints they require in the features ... |
#ifndef TextCodec_h
#define TextCodec_h
#include "wtf/Forward.h"
#include "wtf/Noncopyable.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/text/WTFString.h"
#include "wtf/unicode/Unicode.h"
namespace WTF {
class TextEncoding;
// Specifies what will happen when a character is encountered that is
// not encodable in the cha... |
module StrategoAST2(module AST) where
import StrategoPattern as AST
import StrategoTerm as AST
import StrategoType as AST
import StrategoProp as AST
import StrategoDecl as AST |
# class generated by DeVIDE::<API key>
from module_kits.vtk_kit.mixins import <API key>
import vtk
class <API key>(<API key>):
def __init__(self, module_manager):
<API key>.__init__(
self, module_manager,
vtk.<API key>(), 'Processing.',
('vtkPolyData',), ('vtkPolyData',),... |
from telemetry.internal.app import possible_app
class PossibleBrowser(possible_app.PossibleApp):
"""A browser that can be controlled.
Call Create() to launch the browser and begin manipulating it..
"""
def __init__(self, browser_type, target_os, <API key>):
super(PossibleBrowser, self).__init__(app_type=bro... |
#ifndef <API key>
#define <API key>
#include <string>
#include <vector>
#include "base/macros.h"
#include "base/memory/linked_ptr.h"
namespace gfx {
class Display;
class Screen;
}
namespace extensions {
namespace api {
namespace system_display {
struct DisplayProperties;
struct DisplayUnitInfo;
}
}
typedef std::vector<... |
#!/usr/bin/env python
"""Implements a standard mechanism for Chrome Infra Python environment setup.
This library provides a central location to define Chrome Infra environment
setup. It also provides several faculties to install this environment.
Within a cooperating script, the environment can be setup by importing th... |
#!/usr/bin/env python
from translate.convert import xliff2po
from translate.misc import wStringIO
from translate.storage.test_base import headerless_len, first_translatable
class TestXLIFF2PO:
xliffskeleton = '''<?xml version="1.0" ?>
<xliff version="1.1" xmlns="urn:oasis:names:tc:xliff:document:1.1">
<file origi... |
// GENERATED CODE: DO NOT EDIT. See scala.Function0 for timestamp.
package scala
object Product17 {
def unapply[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17](x: Product17[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17]): Option[Product17[T1, T2, T3, T4, T5, T6... |
<!DOCTYPE html>
<!
- http://creativecommons.org/publicdomain/zero/1.0/ -->
<html>
<meta charset="utf-8">
<title>CSS Shape Test: sideways-lr, float left, circle(50% at right 40px bottom 40px)</title>
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
<link rel="author" title="Mozilla" href... |
<!
Copyright (c) 2015 The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
... |
<!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.5"/>
<title>Core Plot (iOS): Source/<API key>+TypeConversion.h Source File</title>
<link href="tabs.css"... |
#include "third_party/blink/renderer/modules/presentation/<API key>.h"
#include "third_party/blink/renderer/modules/presentation/<API key>.h"
#include "third_party/blink/renderer/platform/scheduler/public/thread.h"
namespace blink {
<API key>::<API key>(
mojom::blink::PresentationService* <API key>)
: <API key>... |
#include "chrome_frame/http_negotiate.h"
#include <atlbase.h>
#include <atlcom.h>
#include <htiframe.h>
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "base/string_util.h"
#include "base/stringprintf.h"
#include "base/<API key>.h"
#include "chrome_frame/bho.h"
#include "chrome_frame/exception_ba... |
#include "flutter/sky/engine/wtf/PartitionAlloc.h"
#include <string.h>
#ifndef NDEBUG
#include <stdio.h>
#endif
// Two partition pages are used as guard / metadata page so make sure the super
// page size is bigger.
COMPILE_ASSERT(WTF::kPartitionPageSize * 4 <= WTF::kSuperPageSize, ok_super_page_size);
COMPILE_ASSERT(!... |
(async function() {
TestRunner.addResult(`Tests scripts panel file selectors.\n`);
await TestRunner.loadLegacyModule('sources'); await TestRunner.loadTestModule('sources_test_runner');
await TestRunner.loadTestModule('sdk_test_runner');
await TestRunner.showPanel('sources');
await TestRunner.addIframe(
... |
function waitUntilIdle() {
return new Promise(resolve=>{
window.requestIdleCallback(()=>resolve());
});
}
(async function() {
TestRunner.addResult(`Tests V8 code cache for javascript resources\n`);
await TestRunner.loadLegacyModule('timeline'); await TestRunner.loadTestModule('<API key>');
await TestRunne... |
// are permitted provided that the following conditions are met:
// and/or other materials provided with the distribution.
// - Neither the name of the Outercurve Foundation nor the names of its
// contributors may be used to endorse or promote products derived from this
// ANY EXPRESS OR IMPLIED W... |
<?php
/**
* base class
*/
require_once 'PEAR/Command/Channels.php';
class PEAR_Command_Auth extends <API key>
{
var $commands = array(
'login' => array(
'summary' => 'Connects and authenticates to remote server [Deprecated in favor of channel-login]',
'shortcut' => 'li',
... |
<?php
// Call <API key>::main() if this source file is executed directly.
if (!defined("PHPUnit_MAIN_METHOD")) {
define("PHPUnit_MAIN_METHOD", "<API key>::main");
}
require_once 'Zend/Json/Server/Response.php';
require_once 'Zend/Json/Server/Error.php';
require_once 'Zend/Json.php';
class <API key> extends <API key... |
namespace Microsoft.Azure.ServiceBus.Amqp
{
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Azure.Amqp;
using Azure.Amqp.Encoding;
using Core;
using Framing;
using Primitives;
internal sealed class <API key> : <API key>
{
int prefetchCo... |
-- Function to test: Receive
-- Test against: Sending network card rate.
local luaunit = require "luaunit"
local dpdk = require "dpdk"
local memory = require "memory"
local device = require "device"
local timer = require "timer"
local stats = require "stats"
local log = require "testlog"
local tes... |
require 'support/doubled_classes'
module RSpec
module Mocks
RSpec.describe 'An instance double with the doubled class loaded' do
include_context "with isolated configuration"
before do
RSpec::Mocks.configuration.<API key> = true
end
it 'only allows instance methods that exist to be... |
#!/bin/bash
wget -N https://berlintemplates.blob.core.windows.net/arm-templates/<API key>/scripts/configure-geth.sh
wget -N https://berlintemplates.blob.core.windows.net/arm-templates/<API key>/scripts/<API key>.sh
wget -N https://berlintemplates.blob.core.windows.net/arm-templates/<API key>/scripts/helpers/attach-geth... |
# encoding: utf-8
require 'test_helper'
class Filters
include Liquid::StandardFilters
end
class TestThing
attr_reader :foo
def initialize
@foo = 0
end
def to_s
"woot: #{@foo}"
end
def [](whatever)
to_s
end
def to_liquid
@foo += 1
self
end
end
class TestDrop < Liquid::Drop
def t... |
# The Original Code is mozilla.org code.
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Contributor(s):
# Mark Pilgrim - port to Python
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# This library ... |
// This is not the set of all possible signals.
// It IS, however, the set of all signals that trigger
// an exit on either Linux or BSD systems. Linux is a
// superset of the signal names supported on BSD, and
// the unknown signals just fail to register, so we can
// catch that easily enough.
// Don't bother with SI... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml... |
import { css, StyleSheet } from 'aphrodite/no-important';
import React, { PropTypes } from 'react';
import octicons from './octicons';
import colors from './colors';
import sizes from './sizes';
import styles from './styles';
const classes = StyleSheet.create(styles);
// FIXME static octicon classes leaning on Elementa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.