answer stringlengths 15 1.25M |
|---|
require 'spec_helper'
describe Hbc::CLI do
it "lists the taps for Casks that show up in two taps" do
listing = Hbc::CLI.nice_listing(%w[
caskroom/cask/adium
caskroom/cask/google-chrome
passcod/homebrew-cask/adium
])
expect(listing).to eq(%w[
caskroom/cask/adium
google-chrome
... |
# $FreeBSD: soc2013/dpl/head/lib/libiconv_modules/UTF1632/Makefile 219062 2011-02-25 00:04:39Z gabor $
SHLIB= UTF1632
SRCS+= citrus_utf1632.c
CFLAGS+= --param <API key>=32
.include <bsd.lib.mk> |
class Fio < Formula
desc "I/O benchmark and stress test"
homepage "https://github.com/axboe/fio"
url "https://github.com/axboe/fio/archive/fio-3.19.tar.gz"
sha256 "<SHA256-like>"
license "GPL-2.0"
bottle do
cellar :any_skip_relocation
sha256 "<SHA256-like>" => :catalina
sha256 "<SHA256-like>" =>... |
<!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.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SFMT: Globals</title>... |
#include <nuttx/config.h>
#include <stdint.h>
#include <assert.h>
#include <debug.h>
#include <arch/board/board.h>
#include "up_arch.h"
#include "chip.h"
#include "nuc_config.h"
#include "chip/chip/nuc_clk.h"
#include "chip/chip/nuc_uart.h"
#include "chip/nuc_gcr.h"
#include "nuc_lowputc.h"
/* Get the serial console UA... |
require "language/haskell"
class Purescript < Formula
include Language::Haskell::Cabal
desc "Strongly typed programming language that compiles to JavaScript"
homepage "http:
url "https://github.com/purescript/purescript/archive/v0.11.7.tar.gz"
sha256 "<SHA256-like>"
head "https://github.com/purescript/pures... |
#ifndef HTMLButtonElement_h
#define HTMLButtonElement_h
#include "<API key>.h"
namespace WebCore {
class HTMLButtonElement : public <API key> {
public:
static PassRefPtr<HTMLButtonElement> create(const QualifiedName&, Document*, HTMLFormElement*);
void setType(const AtomicString&);
String value() const;
... |
package de.matthiasmann.twl;
import de.matthiasmann.twl.model.IntegerModel;
import de.matthiasmann.twl.model.ListModel;
import de.matthiasmann.twl.renderer.Image;
import de.matthiasmann.twl.utils.TypeMapping;
/**
* A wheel widget.
*
* @param <T> The data type for the wheel items
*
* @author Matthias Mann
*/
publi... |
#include <sys/cdefs.h>
#include <stdlib.h>
#include "rtld_lock.h"
#include "thr_private.h"
static int _thr_rtld_clr_flag(int);
static void *<API key>(void);
static void <API key>(void *);
static void <API key>(void *);
static void <API key>(void *);
static int _thr_rtld_set_flag(int);
static void <... |
<!DOCTYPE HTML PUBLIC "-
<!--Rendered using the Haskell Html Library v0.2
<HTML
><HEAD
><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"
><TITLE
>Qtc.Classes.Types</TITLE
><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"
><SCRIPT SRC="haddock-util.js" TYPE="text/javascript"
></SCRIPT
><SCRIPT... |
using System;
using System.Collections.Generic;
namespace NMaier.SimpleDlna.Utilities
{
public abstract class Repository<TInterface>
where TInterface : class, IRepositoryItem
{
private static readonly Dictionary<string, TInterface> items =
BuildRepository();
private static Dictionary<string, TInte... |
namespace XenAdmin.Dialogs
{
partial class AboutDialog
{
<summary>
Required designer variable.
</summary>
private System.ComponentModel.IContainer components = null;
<summary>
Clean up any resources being used.
</summary>
<param name="disposing">tr... |
class Cpm < Formula
desc "Fast CPAN module installer"
homepage "https://metacpan.org/pod/cpm"
url "https://cpan.metacpan.org/authors/id/S/SK/SKAJI/App-cpm-0.997002.tar.gz"
sha256 "<SHA256-like>"
license any_of: ["Artistic-1.0-Perl", "GPL-1.0-or-later"]
head "https://github.com/skaji/cpm.git"
bottle do
... |
package tcp
import (
"expvar"
"fmt"
"time"
"github.com/elastic/beats/libbeat/common"
"github.com/elastic/beats/libbeat/logp"
"github.com/elastic/beats/packetbeat/flows"
"github.com/elastic/beats/packetbeat/protos"
"github.com/tsg/gopacket/layers"
)
const <API key> = 10 * (1 << 20)
const ... |
import batoid
import numpy as np
from test_helpers import timer, do_pickle, all_obj_diff, init_gpu, rays_allclose
@timer
def test_properties():
rng = np.random.default_rng(5)
for i in range(100):
R = rng.normal(0.0, 0.3) # negative allowed
sphere = batoid.Sphere(R)
assert sphere.R == R
... |
#include "platform.h"
#include "di_defs.h"
#include "pc.h"
#include "dqueue.h"
#include "adapter.h"
#include "entity.h"
#include "um_xdi.h"
#include "um_idi.h"
#include "debuglib.h"
#include "divasync.h"
#define <API key> 64
extern void diva_os_wakeup_read(void *os_context);
extern void <API key>(void *os_context);
... |
cask 'mpv' do
version '0.23.0'
sha256 '<SHA256-like>'
# laboratory.stolendata.net/~djinn/mpv_osx was verified as official when first introduced to the cask
url "https://laboratory.stolendata.net/~djinn/mpv_osx/mpv-#{version}.tar.gz"
appcast 'https://laboratory.stolendata.net/~djinn/mpv_osx/',
checkp... |
title: News
{% include header.html %}
<div class="hmargin" style="float: right"><a class="groups_link" style="color: #fff"
href="https://groups.google.com/group/capnproto-announce">Stay Updated</a></div>
<h1>News</h1>
{% for post in site.posts %}
<h2><a href="{{ site.baseurl }}.{{ post.url }}">{{ post.title }}</a></h2>... |
#ifndef <API key>
#define <API key>
#include <shogun/lib/config.h>
#include <shogun/io/streaming/StreamingFile.h>
#include <shogun/lib/v_array.h>
namespace shogun
{
struct substring;
template <class ST> struct SGSparseVectorEntry;
/** @brief Class StreamingAsciiFile to read vector-by-vector from ASCII files.
*
* The ... |
#!/bin/bash
exec newrelic-admin run-program python manage.py celeryd --maxtasksperchild=${<API key>:-100} |
#!/usr/bin/env python3
import sys
import re
import mpmath as mp
mp.dps=250
mp.mp.dps = 250
if len(sys.argv) != 2:
print("Usage: format_CIAAW.py ciaawfile")
quit(1)
path = sys.argv[1]
atomre = re.compile(r'^(\d+) +(\w\w*) +(\w+) +\[?(\d+)\]?\*? +(.*) *$')
isore = re.compile(r'^(\d+)\*? +(\[?\d.*.*\]?) *$')
brange ... |
#include "webrtc/modules/audio_processing/audio_buffer.h"
#include "webrtc/common_audio/include/audio_util.h"
#include "webrtc/common_audio/resampler/push_sinc_resampler.h"
#include "webrtc/common_audio/signal_processing/include/<API key>.h"
namespace webrtc {
namespace {
enum {
<API key> = 80,
<API key> = 160,
<... |
<?php
namespace common\models;
use common\modules\i18n\Module;
/**
* This is the model class for table "magazine_item".
*
* @property integer $id
* @property integer $magazine_id
* @property string $image
* @property integer $sort
*
* @property Magazine $magazine
*/
class MagazineItem extends Bean
{
/**
... |
import warnings
import unittest
import sys
from nose.tools import assert_raises
from gplearn.skutils.testing import (
_assert_less,
_assert_greater,
assert_less_equal,
<API key>,
assert_warns,
assert_no_warnings,
assert_equal,
set_random_state,
<API key>)
from sklearn.tree import <AP... |
#include "media/filters/<API key>.h"
#include <math.h>
#include "base/bind.h"
#include "base/synchronization/waitable_event.h"
namespace media {
<API key>::<API key>(AudioManager* audio_manager)
: AudioRendererBase(),
audio_manager_(audio_manager),
bytes_per_second_(0),
has_buffered_data_(true),
... |
<?php
namespace ValuSoTest\TestAsset;
use ValuSo\Annotation;
/**
* @Annotation\Exclude
*/
abstract class <API key>
{
public function excluded()
{
return true;
}
} |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="tr">
<context>
<name>BMMDialog</name>
<message>
<location filename="../BMMDialog.ui" line="14"/>
<source>Manage Bookmarks</source>
<translation>Yer İmlerini Yönet</translation>
</message>
<message>
... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: <API key>.cpp
Label Definition File: <API key>.stack.label.xml
Template File: sources-sink-73a.tmpl.cpp
*/
/*
* @description
* CWE: 124 Buffer Underwrite
* BadSource: Set data pointer to before the allocated memory buffer
* GoodSource: Set data pointer to the allocated... |
import React from 'react';
import { shallow } from 'enzyme';
import sinon from 'sinon';
import AddComment from './AddComment';
const USER = {
user: {
user: 'RSwanson',
username: 'Ron_Swanson',
imageURL: '',
users: [
{
name: 'April Ludwig',
url: 'aprilL@parksdept.com',
dis... |
#include "f2c.h"
/* Table of constant values */
static doublecomplex c_b1 = {1.,0.};
static blasint c__1 = 1;
/** ZSYTRF_REC2 computes a partial factorization of a complex symmetric matrix using the Bunch-Kaufman diagon al pivoting method.
*
* This routine is a minor modification of LAPACK's zlasyf.
* It serves as a... |
--pass out-of-range data of string type to the parameter
--1. [error] out-of-range argument: timestamptz type
select last_day(timestamptz'23:00:00 13/01');
select last_day(timestamptz'04:14:07 1/19/2038');
select last_day(timestamptz'03:15:07 1/19/2038');
select last_day(timestamptz'03:14:08 1/19/2038');
select last_da... |
using NetCoreCMS.Framework.Core.Data;
using NetCoreCMS.Framework.Core.Models;
using NetCoreCMS.Framework.Core.Mvc.Repository;
namespace NetCoreCMS.Framework.Core.Repository
{
public class <API key> : BaseRepository<NccWebSite, long>
{
public <API key>(NccDbContext context) : base(context)
{
... |
# -*- coding: utf-8 -*-
import numberlink
from datastore import *
from hashlib import sha1, sha256
from flask import make_response, render_template
import random
import datetime
from tz import gae_datetime_JST
from define import DEFAULT_YEAR
def adc_response(msg, isjson, code=200, json_encoded=False):
if json_encod... |
{% extends "hub/base.html" %}
{% load staticfiles %}
{% block pagetitle %}Users{% endblock %}
{% block content %}
<div class="dashhead">
<div class="dashhead-titles">
<h6 class="dashhead-subtitle">UoP Botswana MoH / TB Training</h6>
<h2 class="dashhead-title">Users</h2>
</div>
</div>
<hr class="m-t">
<div c... |
#include "mex.h"
#include <iostream>
#include "drakeMexUtil.h"
#include "<API key>.h"
#include "math.h"
using namespace Eigen;
using namespace std;
/*
* mex interface for bullet collision detection
* closest-distance for each body to all other bodies (~(NB^2-NB)/2 points)
*
* MATLAB signature:
*
* [xA,xB,normal,d... |
#include "<API key>.h"
#include <jsi/jsi.h>
#include "MutableValue.h"
#include "SharedParent.h"
using namespace facebook;
namespace reanimated {
void <API key>::set(
jsi::Runtime &rt,
const jsi::PropNameID &name,
const jsi::Value &newValue) {
auto propName = name.utf8(rt);
if (propName == "_value") {
... |
#ifndef <API key>
#define <API key>
#include <gmock/gmock.h>
#include <string>
#include "transport_manager/transport_manager.h"
#include "transport_manager/transport_adapter/<API key>.h"
namespace test {
namespace components {
namespace <API key> {
using ::transport_manager::DeviceHandle;
using ::transport_manager::Con... |
<!DOCTYPE html>
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>colour.models.cie_xyy Module — Colour 0.3.4 documentation</title>
<link rel="stylesheet" href="_static/basic.css" type="text/css" />
<link rel="stylesheet" href="_static/pygment... |
Because the ```<API key>``` directory is based on parts of Chromium's ```gpu/config``
directory, we want to keep a patch of the changes added to make it compile with ANGLE. This
will allow us to merge Chromium changes easily in our ```<API key>```.
In order to make a change to this directory, do the following:
* copy ... |
from constance.admin import ConstanceForm
from django.forms import fields
from django.test import TestCase
class TestForm(TestCase):
def <API key>(self):
f = ConstanceForm({})
self.assertIsInstance(f.fields['INT_VALUE'], fields.IntegerField)
self.assertIsInstance(f.fields['BOOL_VALUE'], fiel... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: <API key>.cpp
Label Definition File: <API key>.label.xml
Template File: sources-sinks-54b.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory Management Routines
* BadSource: Allocate data using new
* GoodSource: Allocate data using malloc()
* Sinks:
* Good... |
<script>
var xx = [];
var x = ["aa", "bb"];
var j=Math.random();
for(var i=0; i <2; i++){
for(var k=0; k<2; k++) {
if(i==k)
xx[i] = x[k];
}
}
// xx = ["aa", "bb"]
</script> |
// permitted provided that the following conditions are met:
// materials provided with the distribution.
// used to endorse or promote products derived from this software without specific
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR... |
<?php
namespace app\models;
use Yii;
use app\models\general\GeneralLabel;
use app\models\general\GeneralMessage;
/**
* This is the model class for table "<API key>".
*
* @property integer $id
* @property string $desc
* @property integer $aktif
* @property integer $created_by
* @property integer $updated_by
* @p... |
package sbt
package compiler
import scala.util
import java.io.File
import CompilerArguments.{abs, absString, BootClasspathOption}
/** Forms the list of options that is passed to the compiler from the required inputs and other options.
* The directory containing scala-library.jar and scala-compiler.jar (scal... |
#include "chrome/browser/chromeos/login/<API key>.h"
#include <vector>
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/chromeos/chromeos_version.h"
#include "base/string_util.h"
#include "base/stringprintf.h"
#include "base/<API key>.h"
#include "chrome/browser/browser_process.h"
#include "chrome/b... |
// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
#include "config.h"
#include "<API key>.h"
#include "bindings/core/v8/ExceptionState.h"
#include "bindings/core/v8/UnionTypesCore.h"
#include "bindings/core/v8/V8DOMConfiguration.h"
#include "bindings/core/v8/V8HiddenValue.h"
#include "binding... |
#include <Python.h>
#include "ZTypes.h"
#include "ZGlobals.h"
extern void <API key>(PyObject *m);
extern void initialize_zsp_auth(PyObject *m);
extern void <API key>(PyObject *m);
extern void <API key>(PyObject *m);
extern void <API key>(PyObject *m);
extern void initialize_zsp_flag(PyObject *m);
extern void <API key>(... |
package org.lockss.mail;
import java.io.*;
import java.util.*;
import java.net.*;
import org.apache.oro.text.regex.*;
import javax.mail.*;
import javax.mail.internet.*;
// import javax.activation.*;
import org.lockss.test.*;
import org.lockss.mail.*;
import org.lockss.util.*;
import org.lockss.daemon.*;
import org.lock... |
# - Find LevelDB
# <API key> - List of LevelDB includes.
# LEVELDB_LIBRARIES - List of libraries when using LevelDB.
# LEVELDB_FOUND - True if LevelDB found
# Look for the header of file.
find_path(LEVELDB_INCLUDE NAMES leveldb/db.h
PATHS $ENV{LEVELDB_ROOT}/include /opt/local/incl... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: <API key>.c
Label Definition File: <API key>.label.xml
Template File: sources-sink-31.tmpl.c
*/
/*
* @description
* CWE: 90 LDAP Injection
* BadSource: connect_socket Read data using a connect socket (client side)
* GoodSource: Use a fixed string
* Sinks:
* BadSink... |
#ifndef <API key>
#define <API key>
#include "ariaTypedefs.h"
#include "ariaUtil.h"
#include "ArAction.h"
This action goes to a given ArPose very naively
/**
This action naively drives straight towards a given ArPose. The
action stops the robot when it has travelled the distance that that
pose is away. It trav... |
#ifndef <API key>
#define <API key>
#include "base/callback.h"
#include "content/public/browser/<API key>.h"
#include "url/gurl.h"
namespace content {
class WebContents;
}
// This observer class will trigger the provided callback whenever the observed
// WebContents's origin either now or no longer matches the provided... |
package org.lemurproject.galago.core.util;
import org.lemurproject.galago.core.retrieval.iterator.BaseIterator;
import org.lemurproject.galago.core.retrieval.traversal.Traversal;
import org.lemurproject.galago.utility.Parameters;
import java.util.ArrayList;
import java.util.List;
/**
* @author jfoley.
*/
public class... |
from pybrain.rl.environments.timeseries.maximizereturntask import <API key>
from pybrain.rl.environments.timeseries.timeseries import AR1Environment, SnPEnvironment
from pybrain.rl.learners.valuebased.linearfa import Q_LinFA
from pybrain.rl.agents.linearfa import LinearFA_Agent
from pybrain.rl.experiments import <API k... |
using Basic.Azure.Storage.Communications.Core;
using Basic.Azure.Storage.Communications.Core.Interfaces;
using Basic.Azure.Storage.Communications.TableService.Interfaces;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading... |
/* 1. BACKGROUND AND TEXT COLOURS */
/* 1.1 Default background colour and text colour */
body{text-align:center;background : url(../img/back.gif);}
.djangobb {COLOR: #333}
DIV.box, #adminconsole FIELDSET TH, .rowodd, .roweven {BACKGROUND-COLOR: #f8f8f8}
.djangobb BLOCKQUOTE, DIV.code {BACKGROUND-COLOR: #f1f1f1}
#adminc... |
#pragma once
#include <deque>
#include <functional>
#include <pthread.h>
#include "basetypes.h"
#include "misc.h"
#define Pthread_spin_init(l, pshared) verify(pthread_spin_init(l, (pshared)) == 0)
#define Pthread_spin_lock(l) verify(pthread_spin_lock(l) == 0)
#define Pthread_spin_unlock(l) verify(pthread_spin_unlock(l)... |
<!
@license
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http:
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.t... |
require 'rubygems'
# The helper class exists to do string manipulation and heavy lifting
def url_escape_hash(hash)
hash.each do |k,v|
v = CGI::escapeHTML(v)
if v
# convert bullets
v = v.gsub("*-","<bullet>")
v = v.gsub("-*","</bullet>")
#convert h4
... |
#include "config.h"
#include "core/svg/<API key>.h"
#include "SVGNames.h"
#include "core/rendering/style/RenderStyle.h"
#include "core/rendering/style/SVGRenderStyle.h"
#include "core/svg/SVGElementInstance.h"
#include "core/svg/SVGParserUtilities.h"
#include "core/svg/graphics/filters/SVGFilterBuilder.h"
namespace Web... |
<?php
namespace modules\translations\controllers\console;
use modules\lang\models\Lang;
use modules\translations\models\MessageCategory;
use Yii;
use yii\console\Controller;
use yii\console\Exception;
use yii\helpers\FileHelper;
use modules\translations\models\Message;
use modules\translations\models\SourceMessage;
cla... |
#include <CGAL/Epick_d.h>
#include <CGAL/point_generators_d.h>
#include <CGAL/<API key>.h>
#include <CGAL/K_neighbor_search.h>
#include <CGAL/Search_traits_d.h>
typedef CGAL::Epick_d<CGAL::Dimension_tag<4> > Kernel;
typedef Kernel::Point_d Point_d;
typedef CGAL::<API key><Point_d> <API key>;
typedef Kernel::Iso_box_d I... |
package org.rti.webgenome.webui.struts.upload;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.rti.webgenome.util.SystemUtils;
import org.rti.webgenome.webui.struts.BaseForm... |
// UWH Timer
#ifndef STATUS_H
#define STATUS_H
class UWHDCanvas;
void renderStatus(UWHDCanvas *C);
#endif |
from datetime import datetime, timedelta
from django import http
from django.conf import settings
from django.core.exceptions import PermissionDenied
import mock
import pytest
from olympia.amo.tests import BaseTestCase, TestCase
from olympia.amo import decorators, get_user, set_user
from olympia.amo.urlresolvers import... |
package main
import (
"github.com/kataras/iris/v12"
"github.com/kataras/iris/v12/middleware/requestid"
"github.com/kataras/golog"
)
func main() {
app := iris.New()
app.Logger().SetLevel("debug")
app.Logger().SetFormat("json", " ")
// to register a custom Formatter:
// app.Logger().Reg... |
from django.core.management.base import BaseCommand
import amo
from mkt.webapps.models import AddonPremium
class Command(BaseCommand):
help = 'Clean up existing AddonPremium objects for free apps.'
def handle(self, *args, **options):
(AddonPremium.objects.filter(<API key>=amo.ADDON_FREES)
... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: <API key>.cpp
Label Definition File: <API key>.label.xml
Template File: sources-sink-08.tmpl.cpp
*/
/*
* @description
* CWE: 23 Relative Path Traversal
* BadSource: file Read input from a file
* GoodSource: Use a fixed file name
* Sink: ifstream
* BadSink : Open th... |
% diagram A1-2
\verbatimlines
% inc
Incorporating new mail into inbox...
1+E02/28 0227-EST mrose test message <<ENCRYPTED MESSAGE: TTI
Incorporating encrypted mail into inbox...
1+ 02/28 0227-EST mrose test message <<mumble, mumble. >>
?endverbatim |
package org.hisp.dhis.sms.listener;
import java.util.*;
import org.apache.commons.lang3.StringUtils;
import org.hisp.dhis.organisationunit.OrganisationUnit;
import org.hisp.dhis.program.Program;
import org.hisp.dhis.program.<API key>;
import org.hisp.dhis.sms.command.SMSCommand;
import org.hisp.dhis.sms.command.SMSComm... |
# Support
## Timer
A timer class that can be called static or dynamically.
Source code: [support/blob/master/src/Timer.php](https://github.com/antonioribeiro/support/blob/master/src/Timer.php)
Methods
Those are the methods:
Timer::start();
Timer::stop();
Timer::isStarted();
Timer::isStopped();
Timer... |
# <API key>: true
module Stupidedi
using Refinements
module Schema
# The 5010 X12 "data segment requirement designator"s include
# M - Mandatory
# O - Optional
# @see X222 B.1.3.12.6 Data Segment Requirement Designators
# The HIPAA implementation guides "industry usage" include
# SITUA... |
// modification, are permitted provided that the following conditions are
// met:
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// "AS IS" AND ANY EXP... |
// The LLVM Compiler Infrastructure
// This file is distributed under the University of Illinois Open Source
#ifndef <API key>
#define <API key>
#include "lldb/Host/posix/HostThreadPosix.h"
namespace lldb_private {
class HostThreadMacOSX : public HostThreadPosix {
friend class ThreadLauncher;
publ... |
'use strict';
angular.module('shopnxApp')
.config(function ($stateProvider) {
$stateProvider
.state('checkout', {
title: 'Checkout with the items you selected',
url: '/checkout',
templateUrl: 'app/checkout/checkout.html',
controller: 'CheckoutCtrl',
authenticate: true... |
package org.hisp.dhis.email;
/**
* @author Zubair <rajazubair.asghar@gmail.com>
*/
public enum EmailResponse
{
SENT( "success" ),
FAILED( "failed" ),
ABORTED( "aborted" ),
NOT_CONFIGURED( "no configuration found" );
private String responseMessage;
EmailResponse( String responseMessage )
{
... |
package cromwell.core.callcaching
import org.scalatest.{FlatSpec, Matchers}
class HashKeySpec extends FlatSpec with Matchers {
"HashKey" should "produce consistent key value" in {
val keys = Set(
HashKey("command template"),
HashKey("backend name"),
HashKey("input count"),
HashKey("output ... |
package au.edu.uts.eng.remotelabs.schedserver.reports.intf.types;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Calendar;
import javax.xml.namespace.QName;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamReader;
import javax.xml.stream.XMLStreamWriter;
import org... |
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1-b02-fcs
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2010.03.22 at 11:40:59 AM GMT
package uk.gov.nationalarchives.droid.report.planets.domain;
import ja... |
package uk.gov.nationalarchives.droid.command.action;
import java.io.PrintWriter;
import java.util.Map;
import uk.gov.nationalarchives.droid.command.i18n.I18N;
import uk.gov.nationalarchives.droid.core.interfaces.signature.<API key>;
import uk.gov.nationalarchives.droid.core.interfaces.signature.SignatureFileInfo;
impo... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: <API key>.cpp
Label Definition File: <API key>.label.xml
Template File: sources-sinks-52c.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory Management Routines
* BadSource: calloc Allocate data using calloc()
* GoodSource: Allocate data using new
* Sinks:
* ... |
package com.restfb;
import static com.restfb.json.JsonObject.NULL;
import static com.restfb.util.ReflectionUtils.<API key>;
import static com.restfb.util.ReflectionUtils.<API key>;
import static com.restfb.util.ReflectionUtils.isPrimitive;
import static com.restfb.util.StringUtils.isBlank;
import static com.restfb.util... |
#ifndef <API key>
#define <API key>
#pragma once
namespace content {
// This enum is also used by histograms. Do not change the ordering or remove
// items.
enum DownloadDangerType {
// The download is safe.
<API key> = 0,
// A dangerous file to the system (e.g.: a pdf or extension from
// places other than ga... |
// modification, are permitted provided that the following conditions
// are met:
// documentation and/or other materials provided with the distribution.
// * Neither the name of NVIDIA CORPORATION nor the names of its
// contributors may be used to endorse or promote products derived
// EXPRESS OR IMPLIED WARRA... |
import PromiseRouter from '../PromiseRouter';
import * as middleware from "../middlewares";
import { Parse } from "parse/node";
export class PushRouter extends PromiseRouter {
mountRoutes() {
this.route("POST", "/push", middleware.<API key>, PushRouter.handlePOST);
}
static handlePOST(req) {
const pushCon... |
// Enumerate the various item subtypes that are supported by sync.
// Each sync object is expected to have an immutable object type.
// An object's type is inferred from the type of data it holds.
#ifndef <API key>
#define <API key>
#include <map>
#include <set>
#include <string>
#include "base/logging.h"
#include "bas... |
<?php
namespace ZendTest\Di\TestAsset;
class A
{
} |
module Verifier.SAW.SATQuery
( SATQuery(..)
, SATResult(..)
, satQueryAsTerm
) where
import Control.Monad (foldM)
import Data.Map (Map)
import Data.Set (Set)
import Verifier.SAW.Name
import Verifier.SAW.FiniteValue
import Verifier.SAW.SharedTerm
-- | This datatype represents a satisfiability query that might
-- be di... |
// detail/<API key>.hpp
#ifndef <API key>
#define <API key>
#if defined(_MSC_VER) && (_MSC_VER >= 1200)
# pragma once
#endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
#include <boost/asio/detail/config.hpp>
#if !defined(BOOST_WINDOWS)
#if !defined(__CYGWIN__)
#if !defined(__SYMBIAN32__)
#if !defined(<API key>)
#includ... |
from lib.common import helpers
class Module:
def __init__(self, mainMenu, params=[]):
self.info = {
'Name': '<API key>',
'Author': ['@harmj0y'],
'Description': ("Locks the workstation's display."),
'Background' : False,
'OutputExtension' : None,
... |
/* MT SCP RV32i configuration */
#include "cache.h"
#include "csr.h"
#include "hooks.h"
#include "registers.h"
#define SCP_SRAM_END (<API key> & (~(0x400 - 1)))
struct mpu_entry mpu_entries[NR_MPU_ENTRIES] = {
/* SRAM (for most code, data) */
{0, SCP_SRAM_END, MPU_ATTR_C | MPU_ATTR_W | MPU_ATTR_R},
/* SRAM ... |
#ifndef CSSSupportsRule_h
#define CSSSupportsRule_h
#include "core/css/CSSGroupingRule.h"
namespace blink {
class CSSRule;
class StyleRuleSupports;
class CSSSupportsRule FINAL : public CSSGroupingRule {
public:
static <API key><CSSSupportsRule> create(StyleRuleSupports* rule, CSSStyleSheet* sheet)
{
ret... |
define(function(require, exports, module) {
"use strict";
var keys = require("./keys");
var useragent = require("./useragent");
exports.addListener = function(elem, type, callback) {
if (elem.addEventListener) {
return elem.addEventListener(type, callback, false);
}
if (elem.attachEvent) {
v... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: <API key>.cpp
Label Definition File: <API key>.label.xml
Template File: sources-sinks-82a.tmpl.cpp
*/
/*
* @description
* CWE: 134 Uncontrolled Format String
* BadSource: connect_socket Read data using a connect socket (client side)
* GoodSource: Copy a fixed string int... |
#include <stdio.h>
#include <string>
#include "talk/p2p/base/sessionmessages.h"
#include "talk/base/logging.h"
#include "talk/base/scoped_ptr.h"
#include "talk/base/stringutils.h"
#include "talk/p2p/base/constants.h"
#include "talk/p2p/base/p2ptransport.h"
#include "talk/p2p/base/parsing.h"
#include "talk/p2p/base/sess... |
autocommit off;
create table t (a int);
create view v1 as select * from t where a > 10 with check option;
create view v as select * from v1 where a > 5 with cascaded check option;
insert into v values (7);
rollback; |
#ifndef <API key>
#define <API key>
#include "mitkBaseRenderer.h"
#include <MitkCoreExports.h>
#include <itkCommand.h>
#include <mitkDataStorage.h>
#include <<API key>.h>
#include <map>
#include <utility>
class vtkRenderWindow;
class vtkLight;
class vtkLightKit;
class vtkWorldPointPicker;
class vtkPointPicker;
class vt... |
import urllib
from canvas import util
def make_cookie_key(key):
return 'after_signup_' + str(key)
def _get(request, key):
key = make_cookie_key(key)
val = request.COOKIES.get(key)
if val is not None:
val = util.loads(urllib.unquote(val))
return (key, val,)
def get_posted_comment(request):
... |
/*
-- MAGMA (version 1.6.1) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date January 2015
@author Mark Gates
@generated from testing_zunmqr.cpp normal z -> s, Fri Jan 30 19:00:25 2015
*/
// includes, system
#include <stdlib.h>
#... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.