answer
stringlengths
15
1.25M
#include "chrome/browser/chromeos/bluetooth/bluetooth_adapter.h" #include "base/bind.h" #include "base/lazy_instance.h" #include "base/logging.h" #include "base/stl_util.h" #include "base/values.h" #include "chrome/browser/chromeos/bluetooth/bluetooth_device.h" #include "chromeos/dbus/<API key>.h" #include "chromeos/db...
/* this ALWAYS GENERATED file contains the IIDs and CLSIDs */ /* link this file in with the server and any clients */ /* at Mon Dec 01 09:02:10 2008 */ //@@MIDL_FILE_HEADING( ) #pragma warning( disable: 4049 ) /* more than 64k source lines */ #ifdef __cplusplus extern "C"{ #endif #include <rpc.h> #include <rpcndr.h>...
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; namespace Inbox2.Platform.Channels.Entities { [Serializable] [DataContract] public enum ProfileType { [EnumMember(Value = "1")] Default = 0, [EnumMember(Value...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Class Simpletools\Page\Layout</title> <link rel="stylesheet" href="resources/style.css?<SHA1-like>"> </head> <body> <div id="left"> <div id="menu"> <a href="index.html" title="Overview"><span>Overview</span></a> <div id="groups"...
#ifndef <API key> #define <API key> #include <nt2/gallery/functions/parter.hpp> #endif
// Use of this source code is governed by a BSD-style package ppc64 import ( "cmd/compile/internal/gc" "cmd/internal/obj" "cmd/internal/obj/ppc64" ) const ( LeftRdwr uint32 = gc.LeftRead | gc.LeftWrite RightRdwr uint32 = gc.RightRead | gc.RightWrite ) // This table gives the basic information about...
/* TEMPLATE GENERATED TESTCASE FILE Filename: <API key>.cpp Label Definition File: <API key>.label.xml Template File: sources-sink-04.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Allocate using new[] and set data pointer to a small buffer * GoodSource: Allocate using new[] and s...
using System; using System.Collections; namespace MyGeneration.CodeSmithConversion.Template { public enum CstTokenType { Code = 0, <API key>, RunAtServerCode, Literal, Comment, EscapedStartTag, EscapedEndTag } <summary> Summary description for ...
<div> <a href="#" title="Click or press enter to display help" class="dropdown standalone-help" data-toggle="reset-page-help" tab-index="0"> <span class="icon-circle"><i class="fa fa-info"></i></span> </a> </div> <div class="dropdown-pane" id="reset-page-help" data-dropdown data-ho...
/* * @description Expression is always true via if (unsigned int >= 0) * * */ #include "std_testcase.h" #ifndef OMITBAD void <API key>() { /* Ensure (0 <= intBad < UINT_MAX) and that uIntBad is pseudo-random */ unsigned int uIntBad = (unsigned int)(rand() * 2); /* FLAW: This expression is always true */ ...
#ifndef <API key> #define <API key> #pragma once #include "base/compiler_specific.h" #include "chrome/browser/ui/webui/options/options_ui.h" namespace chromeos { // ChromeOS handler for "Stats/crash reporting to Google" option of the Advanced // settings page. This handler does only ChromeOS-specific actions while defa...
ENV['RAILS_ENV'] ||= 'test' if ENV['TRAVIS'] require 'coveralls' Coveralls.wear!('rails') SimpleCov.start do add_filter '.bundle' add_filter 'spec' end end require 'spec_helper' require File.expand_path('../../config/environment', __FILE__) require 'rspec/rails' require 'rspec/its' require 'shoulda/matc...
'use strict'; jest.unmock('everyObject'); var everyObject = require('everyObject'); describe('everyObject', function() { var mockObject; var mockCallback; beforeEach(() => { mockObject = {foo: 1, bar: 2, baz: 3}; mockCallback = jest.fn(); }); it('handles null', () => { everyObject(null, mockCallba...
#ifndef <API key> #define <API key> #include <stddef.h> #include "base/memory/weak_ptr.h" #include "components/omnibox/browser/<API key>.h" #include "components/omnibox/browser/omnibox_popup_view.h" #include "components/prefs/<API key>.h" #include "ui/base/metadata/<API key>.h" #include "ui/base/<API key>.h" #include "...
<!DOCTYPE html> <html dir="ltr" lang="pl"> <head> <title>Foreign Function Interface - Rubinius</title> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta content='pl' http-equiv='content-language'> <meta content='Rubinius is an implementation of the Rub...
#include "UmbrellaProtocol.h" #include <folly/Bits.h> #include "mcrouter/lib/McReply.h" #include "mcrouter/lib/McRequest.h" #include "mcrouter/lib/mc/umbrella.h" #ifndef <API key> #include "mcrouter/lib/mc/mc_fbtrace_info.h" #endif static_assert( mc_nops == 27, "If you add a new mc_op, make sure to update lib/mc/um...
// This software is a modification of: /*! @file priority_deque.h // priority_deque.hpp provides the class priority_deque as a thin wrapper // around the functions provided by interval_heap.hpp. // @remark Exception-safety: If the means of movement -- move, copy, or swap, // depending on exception specifications ...
<?php /** * @namespace */ namespace Zend\Mail; use Zend\Validator\Hostname as HostnameValidator, Zend\Validator, Zend\Mail\Protocol; abstract class AbstractProtocol { /** * Mail default EOL string */ const EOL = "\r\n"; /** * Default timeout in seconds for initiating session */...
package com.groupon.mapreduce.mongo.in; import com.groupon.mapreduce.mongo.WritableBSONObject; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.InputSplit; import org.apache.hadoop.mapreduce.RecordReader; import org.apache.hadoop.mapreduce.TaskAttemptContext; ...
import numpy as np from Coupling import Coupling class <API key>(Coupling): """ Coupling for cavity2D to cavity transmission. """ @property def impedance_from(self): """ Choses the right impedance of subsystem_from. Applies boundary conditions correction as well. """ ...
@font-face { font-family: 'OpenSans'; src: url('<API key>.eot'); src: url('<API key>.eot?#iefix') format('embedded-opentype'), url('<API key>.woff') format('woff'), url('<API key>.ttf') format('truetype'), url('<API key>.svg#OpenSansLight') format('svg'); font-weight: lighter;...
#include "Stencil1D.h" int cncMain(int argc, char *argv[]) { CNC_REQUIRE(argc == 4, "Usage: %s NUM_TILES TILE_SIZE NUM_TIMESTEPS\n", argv[0]); // Create a new graph context Stencil1DCtx *context = Stencil1D_create(); // initialize graph context parameters context->numTiles = atoi(argv[1]); conte...
#include "ui/base/clipboard/test/test_clipboard.h" #include <stddef.h> #include <memory> #include <utility> #include "base/containers/contains.h" #include "base/memory/ptr_util.h" #include "base/notreached.h" #include "base/numerics/safe_conversions.h" #include "base/strings/<API key>.h" #include "build/build_config.h"...
''' The `Filter` hierarchy contains Transformer classes that take a `Stim` of one type as input and return a `Stim` of the same type as output (but with some changes to its data). ''' from .audio import (AudioTrimmingFilter, <API key>) from .base import <API key> from .image import (ImageCroppingFil...
package ch.epfl.yinyang package transformers import ch.epfl.yinyang._ import ch.epfl.yinyang.transformers._ import scala.reflect.macros.blackbox.Context import language.experimental.macros import scala.collection.mutable import scala.collection.mutable.ArrayBuffer /** * Converts captured variables to holes, which will...
# Makefile for Sphinx documentation # You can set these variables from the command line. SPHINXOPTS = SPHINXBUILD = sphinx-build PAPER = BUILDDIR = build # Internal variables. PAPEROPT_a4 = -D latex_paper_size=a4 PAPEROPT_letter = -D latex_paper_size=letter ALLSPHINXOPTS = -d $(BUILDDIR)/doctree...
<?php /** * @namespace */ namespace Zend\Tool\Project\Provider; class Application extends AbstractProvider implements \Zend\Tool\Framework\Provider\Pretendable { protected $_specialties = array('ClassNamePrefix'); /** * * @param $classNamePrefix Prefix of classes * @param $force */...
#include "vp9/common/vp9_convolve.h" #include <assert.h> #include "./vpx_config.h" #include "./vp9_rtcd.h" #include "vp9/common/vp9_common.h" #include "vpx/vpx_integer.h" #include "vpx_ports/mem.h" #define VP9_FILTER_WEIGHT 128 #define VP9_FILTER_SHIFT 7 /* Assume a bank of 16 filters to choose from. There are two imp...
#!/usr/bin/env python from setuptools import setup, find_packages setup(name='reddit_gold', description='reddit gold', version='0.1', author='Chad Birch', author_email='chad@reddit.com', packages=find_packages(), install_requires=[ 'r2', ], entry_points={ 'r2.plugin': ...
<?php if (!($chan = $this->getChannel($chan_name))) { $bot->noticef($user, "Nobody is on channel %s.", $chan_name); return false; } if (!$chan->isOn($bot->getNumeric())) { $bot->noticef($user, 'I am not on %s.', $chan->getName()); return false; } $reason = assemble($p...
# -*- coding: utf-8 -*- from django.contrib import admin from ionyweb.plugin_app.plugin_video.models import Plugin_Video admin.site.register(Plugin_Video)
// FnEncode.h // Character transcoding functions for filenames #ifndef EAIO_FNENCODE_H #define EAIO_FNENCODE_H #ifndef INCLUDED_eabase_H #include <EABase/eabase.h> #endif #include <EAIO/internal/Config.h> #ifndef EAIO_EASTREAM_H #include <EAIO/EAStream.h> // for kLengthNull #endif #ifndef EAIO_PATHSTRING_H...
package gov.hhs.fha.nhinc.docquery.nhin.proxy; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.never; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.any; import gov.hhs.fha.n...
#ifndef <API key> #define <API key> #include "chrome/browser/views/tabs/<API key>.h" class <API key> : public <API key> { public: explicit <API key>(gfx::NativeView new_view); // Destroys the photo booth window. virtual ~<API key>(); // Replaces the view in the photo booth with the specified one. virtual voi...
<?php namespace Zend\Form\Element; use Traversable; use Zend\Form\Element; use Zend\Form\ElementInterface; use Zend\Form\Exception; use Zend\Form\Fieldset; use Zend\Form\FieldsetInterface; use Zend\Form\FormInterface; use Zend\Stdlib\ArrayUtils; class Collection extends Fieldset { /** * Default template placeh...
/* TEMPLATE GENERATED TESTCASE FILE Filename: <API key>.h Label Definition File: <API key>.label.xml Template File: sources-sinks-83.tmpl.h */ /* * @description * CWE: 415 Double Free * BadSource: Allocate data using new and Deallocae data using delete * GoodSource: Allocate data using new * Sinks: * GoodSink...
*> \brief <b> ZCPOSV computes the solution to system of linear equations A * X = B for PO matrices</b> * * =========== DOCUMENTATION =========== * * Online html documentation available at * http: * *> \htmlonly *> Download ZCPOSV + dependencies *> <a href="http: *> [TGZ]</a> *> <a href="http: *> [ZIP]</a> *...
/* The <sys/stat.h> header defines a struct that is used in the stat() and * fstat functions. The information in this struct comes from the i-node of * some file. These calls are the only approved way to inspect i-nodes. */ #ifndef _STAT_H #define _STAT_H struct stat { dev_t st_dev; /* major/minor dev...
using System; namespace CoAP { <summary> Represents an event when a response arrives for a request. </summary> public class ResponseEventArgs : EventArgs { private Response _response; <summary> </summary> public ResponseEventArgs(Response response) { ...
#ifndef <API key> #define <API key> #include "base/memory/scoped_ptr.h" #include "base/message_loop/message_loop.h" #include "base/threading/<API key>.h" #include "base/timer/timer.h" #include "cc/blink/<API key>.h" #include "mojo/services/html_viewer/blink_resource_map.h" #include "mojo/services/html_viewer/<API key>....
// This file contains the definition of DrawElement. #include "core/cross/precompile.h" #include "core/cross/draw_element.h" #include "core/cross/renderer.h" #include "core/cross/error.h" namespace o3d { O3D_DEFN_CLASS(DrawElement, ParamObject); const char* DrawElement::kMaterialParamName = O3D_STRING_CONSTANT("mat...
#include "content/browser/download/<API key>.h" #include <map> #include <queue> #include <utility> #include "base/bind.h" #include "base/files/file.h" #include "base/guid.h" #include "base/macros.h" #include "base/scoped_observer.h" #include "base/stl_util.h" #include "base/strings/stringprintf.h" #include "content/bro...
package com.skcraft.plume.event.block; import com.google.common.base.Functions; import com.google.common.base.Predicate; import com.skcraft.plume.event.BulkEvent; import com.skcraft.plume.event.Cause; import com.skcraft.plume.event.DelegateEvent; import com.skcraft.plume.event.Result; import com.skcraft.plume.util.Loca...
class Blog < ActiveRecord::Base has_many :posts has_many :comments, :through => :posts attr_accessible :name, :subdomain searchable :include => { :posts => :author } do string :subdomain text :name end # Make sure that includes are added to with multiple searchable calls searchable(:include => :co...
<!doctype html> <html> <title>shrinkwrap</title> <meta http-equiv="content-type" value="text/html;utf-8"> <link rel="stylesheet" type="text/css" href="../static/style.css"> <body> <div id="wrapper"> <h1><a href="../doc/shrinkwrap.html">shrinkwrap</a></h1> <p>Lock down dependency versions</p> <h2 id="SYNOPSI...
from __future__ import unicode_literals __all__ = ( 'Key', 'Keys', ) class Key(object): def __init__(self, name): #: Descriptive way of writing keys in configuration files. e.g. <C-A> #: for ``Control-A``. self.name = name def __repr__(self): return '%s(%r)' % (self.__cla...
package org.hisp.dhis.expression; import java.util.Collection; import java.util.List; import java.util.Map; import java.util.Set; import org.hisp.dhis.analytics.DataType; import org.hisp.dhis.common.DimensionalItemId; import org.hisp.dhis.common.<API key>; import org.hisp.dhis.constant.Constant; import org.hisp.dhis.da...
{% extends "email/_notification.html" %} {% set replied_comment = notification.comment.parent_comment %} {% set replied_content = notification.comment.parent_comment.reply_content %} {% block headline %} <span><strong>Your thread</strong> received a <strong>reply</strong> from {% endblock %} {% block email_type %}t...
#include "<API key>.h" #include "<API key>.h" #include "../<API key>/<API key>.h" #include "../SettingsWidgets/<API key>.h" #include "mitkDataNode.h" #include "<API key>.h" #include <QTimer> #include <QSignalMapper> #include <QShortcut> <API key>::<API key>(QWidget* parent) : QWidget(parent), m_SettingsWidget(0), ...
#include "chrome/browser/image_editor/screenshot_flow.h" #include <memory> #include "base/logging.h" #include "build/build_config.h" #include "content/public/browser/render_widget_host.h" #include "content/public/browser/web_contents.h" #include "content/public/browser/<API key>.h" #include "third_party/skia/include/co...
#ifndef <API key> #define <API key> #pragma once #include "base/compiler_specific.h" #include "content/public/common/content_client.h" namespace chrome { class ChromeContentClient : public content::ContentClient { public: static const char* const kPDFPluginName; static const char* const kNaClPluginName; static c...
#ifndef <API key> #define <API key> #include <memory> #include "base/callback.h" #include "base/macros.h" #include "third_party/blink/renderer/modules/modules_export.h" #include "third_party/blink/renderer/modules/webdatabase/database_error.h" #include "third_party/blink/renderer/platform/heap/persistent.h" #include "t...
/* TEMPLATE GENERATED TESTCASE FILE Filename: <API key>.c Label Definition File: <API key>.c.label.xml Template File: sources-sinks-64b.tmpl.c */ /* * @description * CWE: 457 Use of Uninitialized Variable * BadSource: no_init Don't initialize data * GoodSource: Initialize data * Sinks: use * GoodSink: Initiali...
#include "content/common/<API key>.h" #include <ctype.h> #include "base/bind.h" #include "base/message_loop.h" #include "base/metrics/statistics_recorder.h" #include "base/pickle.h" #include "content/common/child_process.h" #include "content/common/<API key>.h" #include "content/common/child_thread.h" namespace content...
#include <jni.h> #include <stdio.h> #include <stdlib.h> #include "torchandroid.h" #include <assert.h> extern "C" { JNIEXPORT jstring JNICALL <API key>( JNIEnv* env, jobject thiz, jobject assetManager, jstring nativeLi...
<?php use yii\helpers\Html; ?> <?php foreach ($_model as $photo): ?> <div class="thumb" style="float:left;padding: 2px" data-name="<?= $photo->name ?>" onclick="ShowFullImage('<?= $photo->name ?>')" > <div> <?= Html::img('/upload/mu...
package io.flutter.embedding.engine.mutatorsstack; import static junit.framework.TestCase.*; import static org.mockito.Mockito.*; import android.graphics.Matrix; import android.view.MotionEvent; import io.flutter.embedding.android.<API key>; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Arg...
package org.hisp.dhis.dxf2.adx; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; import org.apache.xerces.util.XMLChar; import org.hisp.dhis.dataelement.DataElementCategory; import org.hisp.dhis.dataelement.<API key>; import org.hisp.dhis.dataelement.<API key>; import org....
<?php namespace backend\models; use common\helpers\CommonUtils; use common\helpers\CVietnameseTools; use common\helpers\MediaToolBoxHelper; use common\helpers\MyCurl; use common\models\Content; use common\models\News; use garyjl\simplehtmldom\SimpleHtmlDom; use Imagine\Image\Box; use Imagine\Image\<API key>; use Yii; u...
Ext.define('Ozone.data.Dashboard', { extend: 'Ext.data.Model', idProperty: 'guid', fields:[ 'alteredByAdmin', 'guid', {name:'id', mapping: 'guid'}, { name: 'isdefault', type: 'boolean', defaultValue: false }, { name: 'dashboardPosition', type: 'int' }, '<API k...
/* TEMPLATE GENERATED TESTCASE FILE Filename: <API key>.cpp Label Definition File: <API key>.label.xml Template File: sources-sink-45.tmpl.cpp */ /* * @description * CWE: 36 Absolute Path Traversal * BadSource: file Read input from a file * GoodSource: Full path and file name * Sinks: fopen * BadSink : Open th...
/* TEMPLATE GENERATED TESTCASE FILE Filename: <API key>.cpp Label Definition File: <API key>.label.xml Template File: sources-sinks-52b.tmpl.cpp */ /* * @description * CWE: 401 Memory Leak * BadSource: Allocate data using new * GoodSource: Allocate data on the stack * Sinks: * GoodSink: call delete on data *...
#include <config.h> #include <roken.h> #include <strsafe.h> #ifndef _WIN32 #error This implementation is Windows specific. #endif /** * <API key> waits for a process to terminate or until a * specified timeout occurs. * * @param[in] pid Process id for the monitored process * @param[in] func Timeout callback functi...
#ifndef <API key> #ifndef _LIBLINEAR_H #define _LIBLINEAR_H #include <shogun/lib/config.h> #include <shogun/optimization/liblinear/tron.h> #include <shogun/features/DotFeatures.h> namespace shogun { #undef I #ifdef __cplusplus extern "C" { #endif /** problem */ struct liblinear_problem { int32_t l; int32_t n; ...
/* TEMPLATE GENERATED TESTCASE FILE Filename: <API key>.c Label Definition File: <API key>.label.xml Template File: sources-sink-22a.tmpl.c */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Allocate using malloc() and set data pointer to a small buffer * GoodSource: Allocate using malloc() an...
#include "chrome/browser/chromeos/login/users/<API key>.h" #include <cstddef> #include <set> #include "ash/multi_profile_uma.h" #include "base/bind.h" #include "base/bind_helpers.h" #include "base/command_line.h" #include "base/compiler_specific.h" #include "base/format_macros.h" #include "base/logging.h" #include "bas...
#include <pcl_conversions/pcl_conversions.h> #include <ros/ros.h> #include <sensor_msgs/PointCloud2.h> #include "grid_map_pcl/helpers.hpp" namespace gm = ::grid_map::grid_map_pcl; using Point = ::pcl::PointXYZ; using PointCloud = ::pcl::PointCloud<Point>; void publishCloud(const std::string& filename, const ros::Publis...
#ifndef <API key> #define <API key> #include "base/memory/weak_ptr.h" #include "chrome/browser/metrics/<API key>.h" #include "components/metrics/metrics_provider.h" namespace device { class BluetoothAdapter; } namespace metrics { class <API key>; } class PrefRegistrySimple; class PrefService; // Performs ChromeOS speci...
#ifndef <API key> #define <API key> #include <stdint.h> #include <memory> #include "base/macros.h" #include "media/gpu/vaapi/vaapi_image_decoder.h" namespace media { namespace fuzzing { class <API key>; } // namespace fuzzing struct JpegFrameHeader; struct JpegParseResult; class ScopedVAImage; // Returns the internal ...
using System; using Inbox2.Framework; namespace Inbox2.Core.Configuration { public static class CloudApi { public static string ApiBaseUrl { get { return String.Format("http://api{0}.inbox2.com/", String.IsNullOrEmpty(CommandLine.Current...
#include "content/browser/payments/<API key>.h" #include <limits> #include <utility> #include "base/base64.h" #include "base/bind.h" #include "base/callback_helpers.h" #include "components/payments/content/icon/icon_size.h" #include "content/browser/renderer_host/<API key>.h" #include "content/browser/service_worker/<A...
#ifndef <API key> #define <API key> #include "net/third_party/quic/core/<API key>.h" namespace quic { namespace test { class <API key> { public: explicit <API key>(<API key>* buffer); <API key>(const <API key>&) = delete; <API key>& operator=( const <API key>&) = delete; // Read from this buffer_ into th...
/** * @fileoverview A command is an abstraction of an action a user can do in the * UI. * * When the focus changes in the document for each command a canExecute event * is dispatched on the active element. By listening to this event you can * enable and disable the command by setting the event.canExecute property...
#ifndef <API key> #define <API key> #include <memory> #include <string> #include "base/values.h" #include "url/gurl.h" namespace base { class DictionaryValue; } namespace error_page { class LocalizedError { public: // Information about elements shown on the error page. struct PageState { PageState(); ~Page...
using System.Linq.Expressions; using NHibernate.Metadata; namespace NHibernate.Linq.Expressions { public class EntityExpression : <API key> { private readonly string _alias; private readonly string _associationPath; private readonly IClassMetadata _metaData; private readonly Expr...
#ifndef HTTPParsers_h #define HTTPParsers_h #include "platform/PlatformExport.h" #include "wtf/Allocator.h" #include "wtf/Forward.h" #include "wtf/HashSet.h" #include "wtf/Vector.h" #include "wtf/text/StringHash.h" namespace blink { typedef enum { <API key>, <API key>, <API key>, <API key> } <API key>; ...
#ifndef <API key> #define <API key> #include <stdio.h> #include <stdlib.h> #include <string.h> #ifdef MAXFLOW #include <taskQMaxflow.h> #else #include "../include/taskQ.h" #endif #ifdef USE_ATHREADS // Alamere threads #include "taskQAThread.h" #endif #define CACHE_LINE_SIZE 256 /*...
#include "src/core/lib/surface/completion_queue.h" #include <stdio.h> #include <string.h> #include <grpc/support/alloc.h> #include <grpc/support/atm.h> #include <grpc/support/log.h> #include <grpc/support/time.h> #include "src/core/lib/iomgr/pollset.h" #include "src/core/lib/iomgr/timer.h" #include "src/core/lib/profil...
import shutil from nose.tools import * from holland.lib.lvm import LogicalVolume from holland.lib.lvm.snapshot import * from tests.constants import * class TestSnapshot(object): def setup(self): self.tmpdir = tempfile.mkdtemp() def teardown(self): shutil.rmtree(self.tmpdir) def test_snapshot...
package com.mitchellbosecke.pebble.extension; import com.mitchellbosecke.pebble.attributes.AttributeResolver; import com.mitchellbosecke.pebble.operator.BinaryOperator; import com.mitchellbosecke.pebble.operator.UnaryOperator; import com.mitchellbosecke.pebble.tokenParser.TokenParser; import java.util.List; import java...
<!DOCTYPE html> <! Copyright (c) 2013 The Chromium Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. <link rel="import" href="/core/analysis/analysis_sub_view.html"> <link rel="import" href="/core/analysis/util.html"> <link rel="import" href=...
.editable:hover { background-color: #FDFDFF; box-shadow: 0 0 20px #D5E3ED; -<API key>: padding-box; -<API key>: 5px; -moz-border-radius: 5px; border-radius: 5px; } #wysihtml5-toolbar { box-shadow: 0 0 5px #999; position: fixed; top: 10px; left: 10px; width: 50px; ...
package net.sourceforge.pmd.rules.design; import net.sourceforge.pmd.AbstractRule; import net.sourceforge.pmd.ast.<API key>; import net.sourceforge.pmd.ast.<API key>; import net.sourceforge.pmd.ast.<API key>; import net.sourceforge.pmd.ast.ASTExpression; import net.sourceforge.pmd.ast.ASTName; import net.sourceforge.pm...
'use strict'; jest.disableAutomock(); const React = require('React'); const ReactTestRenderer = require('react-test-renderer'); const VirtualizedList = require('VirtualizedList'); describe('VirtualizedList', () => { it('renders simple list', () => { const component = ReactTestRenderer.create( <VirtualizedLi...
#include "config.h" #include <stddef.h> #include <stdint.h> #include <string.h> #include "common/attributes.h" #include "common/intops.h" #include "src/itx.h" #include "src/itx_1d.h" static NOINLINE void inv_txfm_add_c(pixel *dst, const ptrdiff_t stride, coef *const coeff, const int eob, const int w, con...
#include <limits.h> #include <stddef.h> #include <stdint.h> #include "base/files/file_path.h" #include "base/files/memory_mapped_file.h" #include "base/logging.h" #include "base/macros.h" #include "base/memory/ptr_util.h" #include "base/strings/string_piece.h" #include "ipc/ipc_message.h" #include "tools/ipc_fuzzer/mes...
#include "chrome/browser/renderer_host/<API key>.h" namespace { const char* const kKeyName = "<API key>"; } // namespace <API key>::<API key>() : is_prerender_(false) { } // static <API key>* <API key>::Get( const net::URLRequest* request) { DCHECK(request); return static_cast<<API key>*>(request->GetUserD...
#ifndef <API key> #define <API key> #pragma once #include <set> #include "base/id_map.h" #include "base/memory/scoped_ptr.h" #include "base/process.h" #include "base/process_util.h" #include "base/time.h" #include "chrome/common/visitedlink_common.h" #include "ipc/ipc_sync_channel.h" #include "ui/gfx/surface/transport_...
package org.scalameter import org.scalameter.examples.BoxingCountBench import org.scalameter.examples.<API key> class <API key> extends <API key> { test("BoxingCountTest.all should be deterministic") { <API key>(new BoxingCountBench) } } class <API key> extends <API key> { test("<API key>.allocations should b...
define(["require"], function (require) { function boot(ev) { ev.target.removeEventListener("click", boot); require(["demos/water/water"]); } const start = document.querySelector(".code-demo.water [data-trigger='water.start']"); start.addEventListener("click", boot); start.disabled = ...
#locale-settings { margin-top: 30px; } #preferred-locale { margin-top: 10px; } #locale-settings .label { color: #aaa; display: inline-block; font-size: 16px; font-weight: 300; margin: 6px 10px 0 0; text-align: right; width: 280px; vertical-align: top; } #locale-settings .locale-selector { display:...
/* TEMPLATE GENERATED TESTCASE FILE Filename: <API key>.cpp Label Definition File: <API key>.label.xml Template File: sources-sink-66a.tmpl.cpp */ /* * @description * CWE: 23 Relative Path Traversal * BadSource: connect_socket Read data using a connect socket (client side) * GoodSource: Use a fixed file name * Sin...
#include "debug/VIOPci.hh" #include "dev/virtio/pci.hh" #include "mem/packet_access.hh" #include "params/PciVirtIO.hh" PciVirtIO::PciVirtIO(const Params *params) : PciDevice(params), queueNotify(0), <API key>(false), vio(*params->vio), callbackKick(this) { // Override the subsystem ID with the device ID f...
/* $NetBSD: ecoff_machdep.h,v 1.1 2002/03/13 05:03:18 simonb Exp $ */ #include <mips/ecoff_machdep.h>
\documentclass{jarticle} \usepackage{plext} \usepackage{calc} \begin{document} %% cf. latex.ltx macros (from ltboxes) \makebox[60pt]{}\par \makebox[-30pt]{}\par % calc extension check \makebox[60pt+10pt]{}\par \makebox[-30pt/2*3]{}\par % robustness \section{\makebox[60pt]{}} \section{\makebox[-30pt]{}} %% plext.sty mac...
/* TEMPLATE GENERATED TESTCASE FILE Filename: <API key>.cpp Label Definition File: <API key>.label.xml Template File: <API key>.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Management Routines * BadSource: Allocate data using new * GoodSource: Allocate data using malloc() * Sinks: * GoodSink: De...
'use strict'; angular.module("ngLocale", [], ["$provide", function ($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; ...
#ifndef <API key> #define <API key> #include <FL/gl.h> /* GLfloat GLubyte GLuint GLenum */ #include <FL/Fl.H> #include <FL/Fl_Gl_Window.H> #include <FL/Fl_Value_Input.H> #include <FL/Fl_Check_Button.H> class <API key> : public Fl_Gl_Window { public: <API key>(int x,int y ,int w,int h ,const char*l=0); void i...
from django.apps import AppConfig class <API key>(AppConfig): name = "contentstore" def ready(self): import contentstore.signals contentstore.signals
#include "base/prefs/json_pref_store.h" #include <algorithm> #include "base/bind.h" #include "base/callback.h" #include "base/file_util.h" #include "base/json/<API key>.h" #include "base/json/<API key>.h" #include "base/memory/ref_counted.h" #include "base/message_loop/message_loop_proxy.h" #include "base/<API key>.h" ...