answer stringlengths 15 1.25M |
|---|
package com.github.dandelion.gua.core.field;
public enum EventTrackingField implements AnalyticsField, <API key> {
@<API key>(<API key>.Policy.TEXT) eventCategory,
@<API key>(<API key>.Policy.TEXT) eventAction,
@<API key>(<API key>.Policy.TEXT) eventLabel,
@<API key>(<API key>.Policy.INTEGER) eventValue... |
package edu.wustl.cab2b.server.analyticalservice;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;
import edu.common.dynam... |
package com.jtex.plot;
/**
*
* @author hios
*/
public interface ScatterCanvas {
public ScatterOptions getScatterOptions();
public void setScatterOptions(ScatterOptions options);
} |
/* $NetBSD: rpc_soc.c,v 1.6 2000/07/06 03:10:35 christos Exp $ */
/* #ident "@(#)rpc_soc.c 1.17 94/04/24 SMI" */
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)rpc_soc.c 1.41 89/05/02 Copyr 1988 Sun Micro";
#endif
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#ifdef PORTMAP
/*
* rp... |
#ifndef _LOGGER_H
#define _LOGGER_H
void logmsg(const char* message, ...);
#endif // _LOGGER_H |
<?php
namespace osCommerce\OM\Core\Site\Website\SQL\Partner;
use osCommerce\OM\Core\Registry;
class GetCategories
{
public static function execute(array $data): array
{
$OSCOM_PDO = Registry::get('PDO');
if (isset($data['language_id'])) {
$sql = <<<EOD
select
coalesce(lang_user.tit... |
#pragma once
#include <agency/detail/config.hpp>
#include <agency/detail/requires.hpp>
#include <agency/future.hpp>
#include <agency/execution/executor/executor_traits/executor_future.hpp>
#include <agency/execution/executor/executor_traits/is_executor.hpp>
#include <utility>
#include <type_traits>
namespace agency
{
n... |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE <API key> #-}
{-# LANGUAGE <API key> #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE TypeFamilies... |
<!DOCTYPE html>
<html xmlns="http:
<head>
<meta charset="utf-8" />
<title>statsmodels.sandbox.stats.multicomp.set_remove_subs — statsmodels v0.10.1 documentation</title>
<link rel="stylesheet" href="../_static/nature.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" t... |
#include <ctype.h>
#include <errno.h>
#include <limits.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <unicode/ustring.h>
#include <unicode/utypes.h>
#include <unicode/uchar.h>
#include "string.h"
#define FAST_COUNT 0
#define FAST_SEARCH 1
#define <API key> sizeof(UChar)... |
#include "server.h"
#include "../util/strings.h"
#include "../util/file.h"
#include "../util/config.h"
#include "../util/log.h"
#include "../util/ip_filter.h"
#include "link.h"
#include <vector>
static DEF_PROC(ping);
static DEF_PROC(info);
static DEF_PROC(auth);
#define TICK_INTERVAL 100
#define STATUS_REPORT... |
import { Page } from 'puppeteer';
import Textbox from 'app/element/textbox';
import AuthenticatedPage from 'app/page/authenticated-page';
import { <API key>, waitForUrl, waitWhileLoading } from 'utils/waits-utils';
import Button from 'app/element/button';
import Textarea from 'app/element/textarea';
import { PageUrl } ... |
// This program sends logging records directly to the server, rather
// than going through the client logging daemon.
#include "ace/SOCK_Connector.h"
#include "ace/Log_Record.h"
#include "ace/Log_Msg.h"
#include "ace/OS_NS_time.h"
#include "ace/OS_NS_stdlib.h"
#include "ace/OS_NS_unistd.h"
#include "ace/CDR_Stream.h"
s... |
#ifndef SOURCE_HPP
#define SOURCE_HPP
#include <QSpinBox>
#include <QProgressBar>
#include "entity.hpp"
#include "mainwindow.hpp"
class source : virtual public entity {
public:
source(environment* env, QWidget* parent, QString name);
~source() override;
void start() override;
void add_consumer(caf::actor consum... |
<?php
namespace app\controllers;
use app\models\User;
use Yii;
use yii\base\<API key>;
use yii\web\<API key>;
use yii\web\Controller;
use yii\filters\VerbFilter;
use yii\filters\AccessControl;
use app\models\LoginForm;
use app\models\<API key>;
use app\models\ResetPasswordForm;
use app\models\SignupForm;
use app\models... |
var $ = require('jquery');
var CoreView = require('backbone/core-view');
var checkAndBuildOpts = require('builder/helpers/required-opts');
var REQUIRED_OPTS = [
'el'
];
module.exports = CoreView.extend({
events: {
'click .js-foo': '_fooHandler'
},
initialize: function (opts) {
checkAndBuildOpts(opts, RE... |
import os
import os.path as op
import pytest
import numpy as np
from numpy.testing import (assert_array_equal, assert_equal, assert_allclose,
assert_array_less, assert_almost_equal)
import itertools
import mne
from mne.datasets import testing
from mne.fixes import _get_img_fdata
from mne impo... |
package cartago;
/**
* Unique identifier of an operation (instance)
* executed by an artifact
*
* @author aricci
*
*/
public class OpId implements java.io.Serializable {
private int id;
private ArtifactId aid;
private AgentId agentId;
private String opName;
OpId(ArtifactId aid, String opName, ... |
<!DOCTYPE html>
<html lang="en" itemscope itemtype="https://schema.org/WebPage">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Vitess / GitHub Workflow</title>
<!-- Webfont -->
... |
# encoding: UTF-8
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
# Note that this schema.rb definition is the authoritative sourc... |
package team.gif;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.buttons.Button;
import edu.wpi.first.wpilibj.buttons.DigitalIOButton;
import edu.wpi.first.wpilibj.buttons.JoystickButton;
import team.gif.commands.*;
public class OI {
public static final Joystick leftStick = new Joystick(1);
... |
<?php
namespace app\modules\currency\models\ar;
/**
* This is the model class for table "currency".
*
* @property integer $id
* @property string $code
* @property string $short_name
* @property string $sign
*/
class Currency extends \app\modules\core\db\ActiveRecord
{
const EUR = 'EUR';
const RUB = 'RUB'... |
from optparse import make_option
from django.core.management.base import BaseCommand, CommandError
from brambling.utils.payment import <API key>
class Command(BaseCommand):
option_list = BaseCommand.option_list + (
make_option(
'--days',
action='store',
dest='days',
... |
# -*- coding: utf-8 -*-
import os
import mne
sample_data_folder = mne.datasets.sample.data_path()
<API key> = os.path.join(sample_data_folder, 'MEG', 'sample',
'sample_audvis_raw.fif')
raw = mne.io.read_raw_fif(<API key>, verbose=False)
raw.crop(tmax=60).load_data()
raw.pick(['EEG 0{... |
// modification, are permitted provided that the following conditions are met:
// documentation and/or other materials provided with the distribution.
// * Neither the name of hiDOF, Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// AND ANY EXPRESS OR IMPLIED... |
package gov.nih.nci.cdmsconnector.c3d.service.globus.resource;
import gov.nih.nci.cdmsconnector.c3d.common.<API key>;
import gov.nih.nci.cdmsconnector.c3d.stubs.<API key>;
import org.apache.axis.components.uuid.UUIDGen;
import org.apache.axis.components.uuid.UUIDGenFactory;
import org.apache.commons.logging.Log;
import... |
// Use of this source code is governed by a BSD-style
(function() {
"use strict";
var runFunc;
var count = 0;
function getId() {
return "code" + (count++);
}
function text(node) {
var s = "";
for (var i = 0; i < node.childNodes.length; i++) {
var n = node.childNodes[i];
if (n.nodeTyp... |
#define _PAS2_MIXER_C_
#include <i386/isa/sound/sound_config.h>
#if defined(CONFIG_PAS)
#include <i386/isa/sound/pas_hw.h>
#define TRACE(what) /* (what) */
extern int translat_code;
extern char pas_model;
extern sound_os_info *pas_osp;
static int rec_devices = (SOUND_MASK_MIC); /* Default record... |
<?php
namespace tests\models;
use yii\db\ActiveRecord;
/**
* Post
*
* @property integer $id
* @property string $title
* @property string $body
*
* @property string $tagNames
* @property array $imageNames
*
* @property Tag[] $tags
* @property Image[] $images
*/
class Post extends ActiveRecord
{
/**
... |
package org.caleydo.view.<API key>.ui.collection;
import java.util.HashSet;
import java.util.Set;
import org.caleydo.core.data.datadomain.<API key>;
import org.caleydo.core.data.perspective.table.TablePerspective;
import org.caleydo.core.data.perspective.variable.Perspective;
import org.caleydo.core.data.virtualarray.V... |
<?php
namespace backend\models\base;
use Yii;
/**
* This is the base model class for table "auth_item_child".
*
* @property string $parent
* @property string $child
*
* @property \backend\models\AuthItem $parent0
* @property \backend\models\AuthItem $child0
*/
class AuthItemChild extends \yii\db\ActiveRecord
{
... |
var PgQuery = require('bindings')('pg-query');
module.exports = {
parse: function(query) {
var result = PgQuery.parse(query);
if (result.query) {
result.query = JSON.parse(result.query);
}
if (result.error) {
var err = new Error(result.error.message);
err.fileName = result.error.file... |
// Replacement for jquery.ui.accordion to avoid dealing with
// jquery.ui theming.
// Usage: $('#container').squeezebox(options);
// where the direct child elements of '#container' are
// sequential pairs of header/panel elements, and options
// is an optional object with any of the following properties:
// activeHeade... |
<?php
namespace console\controllers;
use Yii;
use yii\console\Controller;
class RbacController extends Controller
{
public function actionInit()
{
$auth = Yii::$app->authManager;
$org = $auth->createRole('org');
$auth->add($org);
$adviser = $auth->createRole('adviser');
$... |
import base64
import json
from twisted.internet.defer import inlineCallbacks, DeferredQueue, returnValue
from twisted.web.http_headers import Headers
from twisted.web import http
from twisted.web.server import NOT_DONE_YET
from vumi.config import ConfigContext
from vumi.message import <API key>, TransportEvent
from vum... |
from flask import request, current_app, url_for
from flask_jsonschema import validate
from .. import db
from ..models import AHBot as Bot
from .decorators import json_response
from . import api
@api.route('/abusehelper', methods=['GET'])
@json_response
def get_abusehelper():
bots = Bot.query.filter().all()
retu... |
package gov.hhs.fha.nhinc.common.dda;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "<API key>", propOrder = {
"userId",
... |
use actix::Addr;
use actix_web::{http, middleware};
use actix_web::{web, App, HttpServer};
use diesel::r2d2::{self, ConnectionManager};
use diesel::PgConnection;
use crate::database::DbExecutor;
use badge::handlers::badge_handler;
// use run::handlers::run_handler;
use status::handlers::status_handler;
pub type Pool = ... |
from django.contrib import admin
# Register your models here.
from .models import Photos
admin.site.register(Photos) |
#include "Ht.h"
#include "PersBug.h"
void
CPersBug::PersBug()
{
if (PR_htValid) {
switch (PR_htInst) {
case BUG_RTN: {
if (<API key>()) {
HtRetry();
break;
}
SendReturn_htmain();
}
break;
default:
... |
# Thanks for using Enthought open source!
""" Tests for the BetterZoom Chaco tool """
import unittest
import numpy
from chaco.api import create_line_plot
from chaco.tools.api import BetterZoom
from enable.testing import EnableTestAssistant
class TestBetterZoomTool(EnableTestAssistant, unittest.TestCase):
""" Tests ... |
package org.mini2Dx.core.di.exception;
/**
* A base class for bean exceptions
*/
public class BeanException extends Exception {
private static final long serialVersionUID = <API key>;
public BeanException(String message) {
super(message);
}
} |
<?php
namespace Ordemservico\Form\View\Helper;
use Zend\Form\ElementInterface;
use Zend\Form\View\Helper\FormElementErrors;
class FormElementErros extends FormElementErrors {
public function render(ElementInterface $element, array $attributes = array()){
//Associando menssagem com varivel
$messages ... |
<?php
use yii\helpers\Html;
use yii\bootstrap\Modal;
use yii\bootstrap\ButtonGroup;
use yii\widgets\Menu;
use yii\widgets\Pjax;
use kartik\export\ExportMenu;
use kartik\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel app\models\<API key> */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->t... |
# Minimal makefile for Sphinx documentation
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXPROJ = DjangoCorrelationId
SOURCEDIR = .
BUILDDIR = ../build/sphinx
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_75) on Sun Mar 01 12:04:16 AEDT 2015 -->
<title><API key> (Bouncy Castle Library 1.52 API Specification)</title>
<meta name="date" content="2015-03-01">
<link rel="stylesheet" type="text/css" href="../../../../sty... |
.icheckbox_square,
.iradio_square {
display: inline-block;
*display: inline;
vertical-align: middle;
margin: 0;
padding: 0;
width: 22px;
height: 22px;
background: url(square.png) no-repeat;
border: none;
cursor: pointer;
}
.icheckbox_square {
background-position: 0 0;
}
.... |
import pytest
from py4jdbc.dbapi2 import connect, Connection
from py4jdbc.resultset import ResultSet
from py4jdbc.exceptions.dbapi2 import Error
def test_connect(gateway):
url = "jdbc:derby:memory:testdb;create=true"
conn = connect(url, gateway=gateway)
cur = conn.cursor()
rs = cur.execute("select * fro... |
## How to be a contributor to this project
Are you submitting a pull request?
* Make sure to fill out an issue for your PR, so that we have traceability as to what you are trying to fix,
versus how you fixed it.
* Spaces (not tabs), and 2 of them, that's what we like. Set your code style :)
* Sign the [Sonatype CLA](ht... |
"""Unit-tests for `tree.visitors`
"""
from py2c import tree
from py2c.tree import visitors
from py2c.tests import Test, data_driven_test
from nose.tools import assert_equal
# TEST:: Add non-node fields
# Helper classes
class BasicNode(tree.Node):
_fields = []
class <API key>(tree.Node):
_fields = []
class <API ... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\WindowSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="window-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
<?= $form-... |
from importlib import import_module
from inspect import getdoc
def attribs(name):
mod = import_module(name)
print name
print 'Has __all__?', hasattr(mod, '__all__')
print 'Has __doc__?', hasattr(mod, '__doc__')
print 'doc: ', getdoc(mod)
if __name__=='__main__':
attribs('cairo')
attribs('zop... |
#include "Statistics.hpp"
#include "CaptureInstance.hpp"
#include "MainWindow.hpp"
#include "ui_Statistics.h"
using namespace EPL_Viz;
using namespace EPL_DataCollect;
Statistics::Statistics(MainWindow *parent) : QDialog(parent), ui(new Ui::Statistics), mw(parent) {
ui->setupUi(this);
refresh();
}
Statistics::~Stat... |
layout: organization
category: national
title: Sereolipi Nomadic Education Foundation Inc.
impact_area: Children
keywords:
location_services:
location_offices:
website: www.thorntreeproject.org
description:
mission: |
Our mission is to help educate the children of traditional nomadic families in Northern Samburu. We ... |
using JustLogic.Core;
using System.Collections.Generic;
using UnityEngine;
[UnitMenu("Vectors/Sqr Magnitude (Vector4)")]
[UnitFriendlyName("Sqr Magnitude")]
[UnitUsage(typeof(System.Single), <API key> = true)]
public class <API key> : JLExpression
{
[Parameter(ExpressionType = typeof(Vector4))]
public JLExpress... |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_20) on Sat Oct 20 16:08:50 CDT 2012 -->
<TITLE>
I-Index
</TITLE>
<META NAME="date" CONTENT="2012-10-20">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function wind... |
class Requirement(object):
"""
Requirements are the basis for Dominion. They define
what needs to exist on a host/role, or perhaps what *mustn't* exist.
Requirements are defined on Roles.
"""
creation_counter = 0
"The base class for requirements."
def __init__(self, required=True, ensure... |
<?php
use app\components\Formatter;
use yii\helpers\Html;
?>
<div class="rep-wrapper">
<div id="stats">
<div id="rep-page-container">
<table class="rep-table">
<tbody>
<?php foreach ($reputes as $date => $repute): ?>
<tr class="rep-tabl... |
include ../../Library/GNU.mk
Title= libzip
Name= libzip
Version= 0.12.2
Revision= 0
Site= http://nih.at/libzip/
Source= http://nih.at/libzip//$(Name)-$(Version).tar.bz2
License= BSD
LicenseFile= $(SourceDir)/LICENSE
define test_inner_hook
/usr/local/bin/zipcmp -h
/usr/local/bin/z... |
package registry
import (
"crypto/tls"
"fmt"
"log"
"net/http"
"strings"
)
type LogfCallback func(format string, args ...interface{})
/*
* Discard log messages silently.
*/
func Quiet(format string, args ...interface{}) {
/* discard logs */
}
/*
* Pass log messages along to Go's "log" module.
... |
package com.sap.coap;
import com.ibm.saguaro.system.*;
import com.ibm.iris.*;
import com.ibm.saguaro.mrv6.*;
//##if LOGGING
import com.ibm.saguaro.logger.*;
//##endif
public class Message {
public byte[] header = new byte[4];
public byte[] token = null;
public byte[] payload = null;
public int payloadLe... |
// #include "StdAfx.h"
#include "OLPreloadArchive.h"
#include "OgreFileSystem.h"
#include "LookingGlassOgre.h"
#include "RendererOgre.h"
namespace LG {
OLPreloadArchive::OLPreloadArchive( const Ogre::String& name, const Ogre::String& archType )
: Ogre::Archive(name, archType) {
LG::Log("OLPreloadArchive... |
import py
try:
from pypy.rpython.test.test_llinterp import interpret
except ImportError:
py.test.skip('Needs PyPy to be on the PYTHONPATH')
from rply import ParserGenerator, Token
from rply.errors import <API key>
from .base import BaseTests
from .utils import FakeLexer, BoxInt, ParserState
class TestTranslatio... |
<!DOCTYPE html><html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<meta charset="utf-8">
<title>SLS_PHP_SDK » \<API key></title>
<meta name="author" content="Mike van Riel... |
package it.inaf.android;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Locale;
public class DateFormatter {
public static String formatType1(String date)
{
SimpleDateFormat format = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss Z", Locale.UK);
java.util.D... |
#ifndef <API key>
#define <API key>
#include <stdint.h>
#include <map>
#include <memory>
#include "base/containers/lru_cache.h"
#include "base/macros.h"
#include "base/sequence_checker.h"
#include "gpu/ipc/service/<API key>.h"
#include "media/base/video_decoder.h"
#include "media/gpu/test/video_player/<API key>.h"
#inc... |
extract:
${tooldir}/ecore2bgf BIBTEXML.ecore grammar.bgf
include ../../Makefile.grammar |
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the blocks indicating autogenerated code o... |
#include<iostream>
using namespace std;
int n,k;
const int maxn=100010;
bool b[2*maxn];
struct
{
int num,cn;
}queue[2*maxn];
int head,tail;
void bfs()
{
b[n]=1;
queue[0].num=n;
queue[0].cn=1;
while(head<=tail)
{
if(queue[head].num==k)
{
printf("%d\n",queue[head].cn);
... |
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "contact".
*
* @property integer $id
* @property string $type
* @property string $name
* @property string $lastname
* @property string $email
* @property string $cellphone
* @property string $message
* @property string $identity
* @... |
#include <iostream>
#include <type_traits>
#include <vector>
#include <cassert>
#include <agency/execution/executor/sequenced_executor.hpp>
#include <agency/execution/executor/executor_traits.hpp>
int main()
{
using namespace agency;
static_assert(<API key><sequenced_executor>::value,
"sequenced_executor should... |
// .NAME vtkBitArray - dynamic, self-adjusting array of bits
// .SECTION Description
// vtkBitArray is an array of bits (0/1 data value). The array is packed
// so that each byte stores eight bits. vtkBitArray provides methods
// for insertion and retrieval of bits, and will automatically resize
// itself to hold new d... |
#ifndef <API key>
#define <API key>
#include <iostream>
#include "mem/gems_common/Map.hh"
#include "mem/protocol/AccessType.hh"
#include "mem/ruby/common/Address.hh"
#include "mem/ruby/common/Global.hh"
#include "mem/ruby/common/NetDest.hh"
#include "mem/ruby/system/MachineID.hh"
class <API key>
{
public:
void pr... |
package uk.ac.manchester.cs.owl.semspreadsheets.model;
public interface NamedRange {
String getName();
Range getRange();
} |
package gov.nih.nci.caadapter.sdtm.util;
public class Entity {
private String schema = null;
private String entityName = null;
/**
* Creates a new instance of Entity
*/
public Entity(String schema, String entityName) {
this.setSchema(schema);
this.setEntityName(entityName);
... |
define(function () {
return [
{
"default": {
name: 'form1',
label: 'Form 1',
"_elements": [
{
"default": {
"name": "id",
"type": "hidden"
}
},
{
"default": {
"name": "test1",
... |
#include <stdio.h>
#include <stdlib.h>
static void foo()
{
throw 123;
}
int main(int argc, char *argv[])
{
int count = argc == 1 ? 10000 : atoi(argv[ 1 ]);
int n = 0;
for(int i = 0; i < count; ++i) {
try {
foo();
}
catch(...) {
++n;
}
}
printf("%d\n", n);
return 0;
} |
# Boilerplate
import logging # isort:skip
log = logging.getLogger(__name__)
# Imports
# Bokeh imports
from .notebook import run_notebook_hook
from .state import curstate
# Globals and constants
__all__ = (
'output_file',
'output_notebook',
'reset_output',
)
# General API
def output_file(filename, title="Bok... |
module Main where
import Build_doctests (flags, pkgs, module_sources)
import Data.Foldable (traverse_)
import Test.DocTest (doctest)
main :: IO ()
main = do
traverse_ putStrLn args
doctest args
where
args = ["-XOverloadedStrings"] ++ flags ++ pkgs ++ module_sources |
require './test_common.rb'
require '../lib/crocus/minibloom'
class TestMiniBloom < Test::Unit::TestCase
def test_single_push
results = []
mb = MiniBloom.new
mb.source('p1',1)
mb.p1.pro {|i| results << [2*i[0]]}
mb.p1 << [2]
assert_equal([4], results.pop)
end
def test_single_table
resul... |
#include "media/audio/mac/<API key>.h"
#include <CoreServices/CoreServices.h>
#include "base/basictypes.h"
#include "base/command_line.h"
#include "base/logging.h"
#include "base/mac/mac_logging.h"
#include "media/audio/audio_util.h"
#include "media/audio/mac/audio_manager_mac.h"
#include "media/base/media_switches.h"
... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\ComputerVih */
$this->title = Yii::t('app', 'Create Computer Vih');
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Computer Vihs'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="compu... |
<?php
class CmsModule extends CWebModule
{
/**
* @var string the name of the default controller
*/
public $defaultController = 'admin';
/**
* Initializes the module.
*/
public function init()
{
// Register module imports.
$this->setImport(array(
'cms.c... |
// <API key>.h
#import "SDLRPCRequest.h"
#import "SDLAppHMIType.h"
#import "SDLLanguage.h"
@class SDLAppInfo;
@class SDLDeviceInfo;
@class <API key>;
@class SDLSyncMsgVersion;
@class <API key>;
@class SDLTTSChunk;
<API key>
@interface <API key> : SDLRPCRequest
/**
* Convenience init for registering the application wi... |
<style>
.buy-tickets__title{margin: 10px; width: 6%; margin-left: 0px;}
.buy-tickets__title.ticket-title{width: 50%;}
.buy-tickets__title.flash{width: 15%;}
.buy-tickets__title.flash-price{width: 11%;}
.form .input__number .<API key>.sold-out{ width: 80px;height: 10px;margin: 5px;}
p.error{displ... |
// These tests check that Torque-generated verifier functions crash the process
// when encountering data that doesn't fit the Torque type definitions.
#include "src/api/api-inl.h"
#include "src/objects/descriptor-array.h"
#include "src/objects/map-inl.h"
#include "test/cctest/cctest.h"
#include "torque-generated/class... |
from django import template
from django.utils.safestring import mark_safe
from mezzanine.conf import settings
from <API key>.utils import refactor_html
register = template.Library()
# Checking settings.TEMPLATE_STYLE.
# Possible values are:
# - <API key>.styles.macos
# - <API key>.styles.ubuntu
# - <API key>.styl... |
#pragma once
#include "common/vect.h"
#include "M120AN/system.hpp"
#include "M120AN/intr.hpp"
#include "M120AN/comp.hpp"
namespace device {
/*!
@brief
*/
enum class comp_filter {
none,
f1,
f8,
f32
};
/*!
@brief
*/
enum class comp_edge {
... |
To update Mongo to Version 4.0 you must first upgrade to 3.6 then to version 4.0 as follows
1. Install 3.6 Binary
2. Close mongo and mongod
3. Start mongo and mongod in 3.6 bin folder
4. run command db.adminCommand({<API key>: "3.6"})
1. Install 4.0 Binary
2. Close mongo and mongod
3. Start mongo and mongod in 3.6 bin ... |
#include <vector>
#include <list>
#include <cctype>
#include <algorithm>
#include "libtorrent/config.hpp"
#include "libtorrent/gzip.hpp"
#include "libtorrent/socket_io.hpp"
#ifdef _MSC_VER
#pragma warning(push, 1)
#endif
#include <boost/bind.hpp>
#ifdef _MSC_VER
#pragma warning(pop)
#endif
#include "libtorrent/tracker_... |
<?php
use yii\helpers\Url;
?>
<div class="bjui-pageContent">
<form action="<?= Url::toRoute([$model?'update':'create','name'=>$model?$model->name:'']) ?>" id="user_form" data-toggle="validate" data-alertmsg="false">
<input name="_csrf" type="hidden" id="_csrf" value="<?= Yii::$app->request->csrfToken ?>">
... |
// <API key>.h
// SeafloorExplore
// Modified from Brad Larson's Molecules Project in 2011-2012 for use in The SeafloorExplore Project
// Molecules
#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
@interface <API key> : UITableViewCell
{
CAGradientLayer *<API key>;
BOOL isSelected;
}
@property(assi... |
# Migration Guide 2.x to 3.0
## General
Removed ui object
The `ui` object (`tabris.ui`) and `Ui` class no longer exist. All properties formerly hosted by `ui` are now directly attached to the `tabris` object/namespace. Example:
Tabris 2.x
js
import {ui} from 'tabris';
ui.contentView.background = 'red';
ui.drawer.backgr... |
#include "main.h"
#include "User.h"
#include "Nick.h"
#include "Modules.h"
#include "Chan.h"
#include "FileUtils.h"
#include <pthread.h>
#include <climits>
#define MAX_EXTS 6
#define MAX_CHARS 16
class CUrlBufferModule : public CModule
{
private:
VCString lastUrls, nicks;
unsigned int linkNum;
CString targe... |
@extends('layout.master')
@section('title','Administração')
@section('content')
@include('layout.topo')
<div class="row">
@include('layout.menu')
<div class="col-md-9">
<div class="row">
<div class="col-md-12">
<h1>Cadastro de Textos</h1>
... |
from datetime import datetime
from pymongo.connection import Connection
from django.db import models
from eventtracker.conf import settings
def <API key>():
"Open a connection to MongoDB and return the collection to use."
if settings.RIGHT_MONGODB_HOST:
connection = Connection.paired(
le... |
#include "ash/display/display_controller.h"
#include <algorithm>
#include "ash/ash_switches.h"
#include "ash/display/display_manager.h"
#include "ash/<API key>.h"
#include "ash/screen_ash.h"
#include "ash/shell.h"
#include "ash/wm/<API key>.h"
#include "ash/wm/property_util.h"
#include "ash/wm/window_util.h"
#include "... |
package gov.nih.nci.caintegrator.web.action.study.management;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import gov.nih.nci.caintegrator.application.study.LogEntry;
import gov.nih.nci.caintegrator.application.study.StudyConfigurati... |
# AWS SDK for JavaScript
[. Prior to v2.4.8, release notes can be found at http://aws.amazon.com/releasenotes/SD... |
# encoding: utf-8
import sys
sys.path.append(sys.path.insert(0,"../src"))
def urlopen(*args, **kwargs):
# Only parse one arg: the url
return Urls[args[0]]
# Provide a simple hashtable to contain the content of the urls and
# provide a mock object similar to what will be returned from the
# real urlopen() functi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.