answer stringlengths 15 1.25M |
|---|
//!if outputMode == ECMAScript51Global
var ScalaJS = {};
//!endif
// Get the environment info
ScalaJS.env = (typeof __ScalaJSEnv === "object" && __ScalaJSEnv) ? __ScalaJSEnv : {};
// Global scope
ScalaJS.g =
(typeof ScalaJS.env["global"] === "object" && ScalaJS.env["global"])
? ScalaJS.env["global"]
: ((typeo... |
#include "chrome/browser/ui/panels/<API key>.h"
#include "base/logging.h"
#include "chrome/browser/ui/panels/panel.h"
#include "chrome/browser/ui/panels/panel_manager.h"
namespace {
static bool ResizingLeft(panel::ResizingSides sides) {
return sides == panel::RESIZE_TOP_LEFT ||
sides == panel::RESIZE_L... |
/* $OpenBSD: limits.h,v 1.5 1998/03/22 21:15:24 millert Exp $ */
/* $NetBSD: limits.h,v 1.7 1996/01/05 18:10:57 pk Exp $ */
#define CHAR_BIT 8 /* number of bits in a char */
#define MB_LEN_MAX 1 /* no multibyte characters */
#define SCHAR_MIN (-0x7f-1) /* max value for a sign... |
package com.percolate.sdk.dto;
import com.fasterxml.jackson.annotation.*;
import com.percolate.sdk.interfaces.HasExtraFields;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;... |
<?php
use yii\helpers\Html;
use kartik\grid\GridView;
use yii\helpers\ArrayHelper;
use backend\modules\qtn\models\Survey;
/* @var $this yii\web\View */
/* @var $searchModel backend\modules\qtn\Models\SurveySearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Qtn Surveys';
$this->params['breadc... |
@echo off
rem
rem Collective Knowledge
rem
rem See CK LICENSE.txt for licensing details.
rem See CK Copyright.txt for copyright details.
rem
rem Developer: Grigori Fursin
rem
rem CK entry point
rem Set default path by detecting the path to this script
set ck_path=%~dp0\..
rem Check if CK_ROOT is defined and used it, ot... |
Bool_t <API key> = kFALSE;
Bool_t <API key> = kFALSE;
std::string centralityFilename = "";
std::string <API key> = "/alice/cern.ch/user/a/acapon/.root";
const Int_t triggerNames = AliVEvent::kINT7;
const Int_t nMCSignal = 0;
const Int_t nCutsetting = 0;
const Double_t minGenPt = 0.05;
const Double_t maxGenPt = 20;
... |
<?php
$list_def_file = "list/web_aliasdomain.list.php";
$tform_def_file = "form/web_aliasdomain.tform.php";
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php'); |
#include "chrome/browser/<API key>.h"
#include <stdint.h>
#include <string>
#include <vector>
#include "base/macros.h"
#include "base/strings/<API key>.h"
#include "base/strings/string_util.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/browser_process.h"
#include "ch... |
package net.minidev.ovh.api.price.dedicatedcloud._2014v1.sbg1a.infrastructure.filer;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Enum of Hourlys
*/
public enum OvhHourlyEnum {
@JsonProperty("iscsi-1200-GB")
iscsi_1200_GB("iscsi-1200-GB"),
@JsonProperty("iscsi-13200g-GB")
iscsi_13200g_G... |
<?php
class <API key> implements SmartyLint_Rule {
/**
* Returns an array of tokens this test wants to listen for.
*
* @return array
*/
public function register() {
return array('NEW_LINE');
}
/**
* Processes this rule, when one of its tokens is encountered.
*
... |
<?php
App::uses('CloggyAppModel', 'Cloggy.Model');
class <API key> extends CloggyAppModel {
public $name = '<API key>';
public $useTable = 'search_fulltext';
public $actsAs = array('<API key>','<API key>');
public function getTotal() {
return $this->find('count');
}
public function searc... |
<!DOCTYPE html>
<html>
<head>
<title>{title} - Montage Docs</title>
<link rel="stylesheet" href="/mdl/material.min.css">
<link rel="stylesheet" href="/mdl/styles.css">
<script src="/mdl/material.min.js"></script>
<link rel="stylesheet" href="https://tools-static.wmflabs.org/fontcdn/css?family=Robo... |
package org.usfirst.frc369.Robot2017Code.subsystems;
import org.usfirst.frc369.Robot2017Code.Robot;
import edu.wpi.first.wpilibj.Relay;
import edu.wpi.first.wpilibj.command.Subsystem;
public class LED extends Subsystem {
// Put methods for controlling this subsystem
// here. Call these from Commands.
public... |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content="Javadoc API documentation for Fresco." />
<link rel="shortcut icon" type="image/x-icon" href="../../../../favicon.ico" />
<title>
com.facebook.imagepipeline.nativecode Details - Fresco... |
var NETKI_PUBAPI_HOST = 'https://pubapi.netki.com';
var NETKI_API_HOST = 'https://api.netki.com';
var SHORTCODES = {
'btc': 'Bitcoin',
'tbtc': 'Bitcoin Testnet',
'ltc': 'Litecoin',
'dgc': 'Dogecoin',
'nmc': 'Namecoin',
'tusd': 'tetherUSD',
'teur': 'tetherEUR',
'tjpy': 'tetherJPY',
'oap': 'Open Asset',... |
#!/bin/bash
set -x
# configure tweaks
mv /tmp/docker-* /etc/apt/apt.conf.d
chown root:root /etc/apt/apt.conf.d/docker-*
chmod 644 /etc/apt/apt.conf.d/docker-*
# make sure we're fully up-to-date
apt-get update && apt-get dist-upgrade -y
reboot |
package gov.nih.nci.system.webservice;
import gov.nih.nci.system.applicationservice.ApplicationService;
import gov.nih.nci.system.client.proxy.ListProxy;
import gov.nih.nci.system.query.hibernate.HQLCriteria;
import gov.nih.nci.system.query.nestedcriteria.NestedCriteriaPath;
import gov.nih.nci.system.util.ClassCache;
i... |
ls | `cat` | wc -l | wc -c |
package au.gov.ga.geodesy.sitelog.domain.model;
import javax.validation.constraints.Size;
public class Contact {
private Integer id;
@Size(max = 200)
protected String name;
@Size(max = 200)
protected String telephonePrimary;
@Size(max = 200)
protected String telephoneSecondary;
@Size(max = 200)
... |
#endregion
namespace ProCenter.Mvc.Infrastructure.Service.Completeness
{
#region Using Statements
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
using Domain.AssessmentModule.Lookups;
using ProCenter.Domain.AssessmentModule.Metadata;
using ProCen... |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_14) on Fri Sep 18 14:09:15 BST 2009 -->
<TITLE>
uk.org.mygrid.cagrid.servicewrapper.service.interproscan.stubs
</TITLE>
<META NAME="date" CONTENT="2009-09-18">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../../../... |
package edu.cmu.minorthird.text.gui;
import edu.cmu.minorthird.text.FancyLoader;
import edu.cmu.minorthird.text.TextLabels;
import edu.cmu.minorthird.util.gui.ControlledViewer;
import edu.cmu.minorthird.util.gui.VanillaViewer;
import edu.cmu.minorthird.util.gui.Viewer;
import edu.cmu.minorthird.util.gui.ViewerFrame;
im... |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE <API key> #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE TupleSections #-}
{-# OPTIONS_GHC -f... |
<?php
$modules["recurringinvoices"]["name"] = "Recurring Invoices";
$modules["recurringinvoices"]["version"] = "1.01";
$modules["recurringinvoices"]["description"] =
"This module adds the ability to repeat invoices on a scheduled basis.";
$modules["recurringinvoices"]["requirements"] =
"phpBMS C... |
/* eslint-disable <API key> */
export default function ({
client,
filterQuery,
mustContain,
busy,
encodeQueryAsString,
}) {
return {
listUsers(query) {
const params = filterQuery(
query,
'text',
'limit',
'offset',
'sort',
'sortdir'
);
ret... |
<!DOCTYPE HTML>
<html>
<head>
<style>
body {
margin: 0px;
padding: 0px;
}
</style>
</head>
<body>
<div id="container"></div>
<script src="KineticJS/kinetic.js"></script>
<script src="kiigame.js"></script>
<script src="latkazombit.js"></script>
</body>
</html> |
module.exports = (function () {
var TypeChecker = Cactus.Util.TypeChecker;
var JSON = Cactus.Util.JSON;
var stringify = JSON.stringify;
var object = Cactus.Addon.Object;
var collection = Cactus.Data.Collection;
var gettype = TypeChecker.gettype.bind(TypeChecker);
return {
"null and undefined" : functi... |
<?php
namespace common\models;
use Yii;
/**
* This is the model class for table "mcp_accesslogs".
*
* @property integer $user_id
* @property string $browser
* @property string $ip
* @property string $session
* @property string $intime
* @property string $outtime
*/
class McpAccesslogs extends \yii\db\ActiveRec... |
/**
* Swedish translation for bootstrap-wysihtml5
*/
(function($){
$.fn.wysihtml5.locale["sv-SE"] = {
font_styles: {
normal: "Normal Text",
h1: "Rubrik 1",
h2: "Rubrik 2",
h3: "Rubrik 3"
},
emphasis: {
bold: "Fet",
ita... |
<?php
namespace Tests\Unit;
use Tests\TestCase;
use Illuminate\Foundation\Testing\RefreshDatabase;
class TextPostTest extends TestCase
{
use RefreshDatabase;
protected $textPost;
public function setup()
{
parent::setUp();
$this->authenticate();
$this->textPost = create('Knot\Mode... |
// This example code is from the book:
// Object-Oriented Programming with C++ and OSF/Motif
// Douglas Young
// Prentice Hall, 1992
// ISBN 0-13-630252-1
// any purpose except publication and without fee is hereby granted, provided
// DialogManager.h: A base class for c... |
<?php
namespace Users;
use Zend\EventManager\EventInterface as Event;
use Users\Model\AuthorisationClass as AuthorisationClass;
class Module
{
public function onBootstrap(Event $e)
{
// This method is called once the MVC bootstrapping is complete
$application = $e->getApplication();
$ser... |
// RUN: %clang_builtins %s %librt -o %t && %run %t
// The LLVM Compiler Infrastructure
// This file tests __ctzti2 for the compiler_rt library.
#include "int_lib.h"
#include <stdio.h>
#ifdef CRT_HAS_128BIT
// Returns: the number of trailing 0-bits
// Precondition: a != 0
COMPILER_RT_ABI si_int __ctz... |
CREATE TABLE test_table(column_integer INTEGER,
column_smallint SMALLINT,
column_numeric_9_2 NUMERIC(9,2),
column_char_9 CHAR(9),
column_varchar_92 VARCHAR(92),
column_date DATE,
column_bit BIT(4),
column_time TIME,
column_timestamp TIMESTAMP,
column_datetime datetime,
monet monetary,
big bigint,
float_num float,
doubl... |
<?php
/* @var $this yii\web\View */
$this->title = 'My Yii Application';
?>
<div class="bodyParser">
<?=$this->render('table', [
'dataHistory' => $dataHistory
])?>
</div> |
/*
* from: FreeBSD: src/sys/tools/fw_stub.awk,v 1.6 2007/03/02 11:42:53 flz
*/
#include <sys/cdefs.h>
__FBSDID("$FreeBSD: releng/9.3/sys/dev/cxgb/cxgb_t3fw.c 189643 2009-03-10 19:22:45Z gnn $");
#include <sys/param.h>
#include <sys/errno.h>
#include <sys/kernel.h>
#include <sys/module.h>
#include <sys/linker.h>
#incl... |
#!/usr/bin/python
import json
import os
import subprocess
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
import pynacl.platform
python = sys.executable
bash = '/bin/bash'
echo = 'echo'
BOT_ASSIGNMENT = {
# Buildbots.
'xp-newlib-opt':
python + ' buildbot\\buildbot_standard.py o... |
from contextlib import contextmanager
from _pytest.python import FixtureRequest
import mock
from mock import Mock
import pyramid.testing
from webob.multidict import MultiDict
import pyramid_swagger
import pyramid_swagger.tween
import pytest
import simplejson
from pyramid.config import Configurator
from pyramid.interfac... |
// Benchpress: A collection of micro-benchmarks.
var allResults = [ ];
// F r a m e w o r k
function Benchmark(string, run) {
this.string = string;
this.run = run;
}
// Run each benchmark for two seconds and count number of iterations.
function time(benchmark) {
var elapsed = 0;
var start = new Date();
for (v... |
#!/usr/bin/perl
# start in the directory with all the files
$argc = @ARGV; # get the number of arguments
if ($argc == 0 ) {
print "<API key>.pl dir multi vic2odl_xsl odl2pds_xsl max \n";
print "prints a set of transcoder (jConvertIIO) commands to test .DAT and .VIC files \n";
print "Output goes to... |
#include <stdio.h>
#include <stdlib.h>
int GO_fputc(int c, GO_FILE *stream)
{
if (stream->p >= stream->p1)
abort();
*stream->p++ = c;
/* GOL_debuglog(1, &c); */
return (unsigned char) c;
} |
import ghcnpy
# Provide introduction
ghcnpy.intro()
# Print Latest Version
ghcnpy.get_ghcnd_version()
# Testing Search Capabilities
print("\nTESTING SEARCH CAPABILITIES")
ghcnpy.find_station("Asheville")
# Testing Search Capabilities
print("\nTESTING PULL CAPABILITIES")
outfile=ghcnpy.get_data_station("USW00003812")
pr... |
{% extends 'magicflatpages/base_content.html' %}
{% load floppyforms %}
{% block js_top %}
{{ block.super }}
{{ form.media }}
{% endblock %}
{% block navbar %}
{% endblock navbar %}
{% block footer_area %}
{% endblock footer_area %}
{% block content %}
<div class="popup-content">
<div class="row">
<div class=... |
#ifndef XML_DO_READ_H
#define XML_DO_READ_H
class TranslationUnit;
class StringTable;
TranslationUnit *xmlDoRead(StringTable &strTable, char const *inputFname);
#endif // XML_DO_READ_H |
'use strict';
myApp.controller('<API key>', ['$scope', '$state', 'loadingMaskService', 'CONSTANTS', '$uibModal', '$log', '$rootScope', '$http', function ($scope, $state, loadingMaskService, CONSTANTS, $uibModal, $log, $rootScope, $http) {
var userInfo = JSON.parse(localStorage.getItem(CONSTANTS.LOCAL_STORAGE_KEY));... |
<?php $deleteStyle = isset($this->existing) ? 'inline' : 'none' ?>
<?php $addStyle = $deleteStyle == 'inline' ? 'none' : 'inline' ?>
<div id="watch-controls">
</div>
<h2><?php $this->o($this->notes[0]->title);?></h2>
<?php $note = null; ?>
<?php foreach ($this->notes as $note): ?>
<div class="note">
<div class="not... |
YUI.add('master', function(Y, NAME) {
/**
* The master module.
*
* @module master
*/
var DIMENSIONS = {
device: 'smartphone',
region: 'CA',
skin : 'grey'
};
/**
* Constructor for the Controller class.
*
* @class Controller
* @constructor
*/
Y.mojito.controllers[NAME] = ... |
/**
* \file PancakeNode.hpp
*
*
*
* \author eaburns
* \date 18-01-2010
*/
#include "search/Node.hpp"
#include "pancake/PancakeTypes.hpp"
#include "pancake/PancakeState.hpp"
#if !defined(_PANCAKE_NODE_H_)
#define _PANCAKE_NODE_H_
typedef Node<PancakeState14, PancakeCost> PancakeNode14;
#endif // !_PANCAKE_NODE_H_ |
//Cortex
//modification, are permitted provided that the following conditions are met:
// documentation and/or other materials provided with the distribution.
// * Neither the name of Cortex nor the
// names of its contributors may be used to endorse or promote products
//ANY EXPRESS OR IMPLIED WARRANTIES,... |
#include "mitkPluginActivator.h"
#include "DicomEventHandler.h"
#include <service/event/ctkEventConstants.h>
#include <ctkDictionary.h>
#include <mitkLogMacros.h>
#include <mitkDataNode.h>
#include <<API key>.h>
#include <service/event/ctkEventAdmin.h>
#include <ctkServiceReference.h>
#include <<API key>.h>
#include <Q... |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<meta name="robots" content="noindex" />
<title>File widgets/fineuploader/WhFineUploader.php | YiiWheels</title>
<script type="text/javascript" src="re... |
// Use of this source code is governed by a BSD-style
// godoc: Go Documentation Server
// Web server tree:
// (idea is if you say import "compress/zlib", you go to
// Command-line interface:
// godoc packagepath [name ...]
// godoc compress/zlib
// - prints doc for package compress/zlib
// ... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http:
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>QGeoCodingManager — PyQt 5.5.1 Reference Guide</title>
<link rel="stylesheet" href="../_static/classic.css" type="text/css" /... |
{-# LANGUAGE OverloadedStrings #-}
module WildBind.SeqSpec (main,spec) where
import Control.Applicative ((<*>))
import Control.Monad (forM_)
import Control.Monad.IO.Class (liftIO)
import qualified Control.Monad.Trans.State as State
import Data.Monoid ((<>))
import Data.IORef (modifyIORef, newIORef, readIORef)
import Te... |
.filebrowser table td { font-size: 10px; }
.filebrowser table a { font-size: 11px; }
.filebrowser thead th.sorted a { padding-right: 13px; }
.filebrowser td { padding: 9px 10px 7px 10px !important; }
.filebrowser td.fb_icon { padding: 6px 5px 5px 5px !important; }
table a.fb_deletelink, table a.fb_renamelink, table a.f... |
<?php
return array(
'Status\\V1\\Rpc\\Ping\\Controller' => array(
'GET' => array(
'description' => 'Ping the API for availability and receive a timestamp for acknowledgement.',
'request' => null,
'response' => '{
"ack": "Acknowledge the request with a timestamp"
}',
... |
#include <pulsar/testing/CppTester.hpp>
#include <pulsar/system/Atom.hpp>
using namespace pulsar;
TEST_SIMPLE(TestAtom){
CppTester tester("Testing the Atom class");
Atom H=create_atom({0.0,0.0,0.0},1);
Atom H2=create_atom({0.0,0.0,0.0},1,1);
tester.test_equal("create_atom works",H,H2);
tester.test_e... |
<?php
namespace app\tests\codeception\unit\modules\mobile\models;
use app\modules\mobile\models\Trip;
use app\tests\codeception\unit\fixtures\TripFixture;
use Codeception\Specify;
use yii\codeception\TestCase;
use MongoDate;
class TripTest extends TestCase{
use Specify;
/**
* @var \UnitTester
*/
p... |
<?php
class ReCopyWidget extends CWidget {
public $targetClass='clone'; //Target CSS class target for duplicate
public $limit=0; //The number of allowed copies. Default: 0 is unlimited
public $addButtonId; // Add button id. Set id differently if this widget is called multiple times per page.
public $add... |
<?php
namespace PayrollCalculator;
use Zend\ModuleManager\Feature\<API key>;
use Zend\Console\Adapter\AdapterInterface as Console;
class Module
{
public function getConfig()
{
return include __DIR__ . '/config/module.config.php';
}
public function getAutoloaderConfig()
{
return array... |
from django.utils.translation import ugettext as _
from django.db import models
from jmbo.models import ModelBase
class Superhero(ModelBase):
name = models.CharField(max_length=256, editable=False)
class Meta:
verbose_name_plural = _("Superheroes") |
export default {"viewBox":"0 0 100 100","xmlns":"http: |
<?php
namespace common\widgets;
use yii\helpers\VarDumper;
class PredictionAsset extends \yii\web\AssetBundle
{
public $depends = [
'yii\web\JqueryAsset',
];
public $css = [
];
public $js = [
];
public function init()
{
$this->setSourcePath(__DIR__ . '/assets/prediction')... |
/*@author gihan tharanga*/
#include <iostream>
#include <string>
//video capturing methods
int videoCapturing();
int videoCapOriginal();
/*detect the faces display the frames and number of face*/
int FaceDetector(std::string&); |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: <API key>.c
Label Definition File: <API key>.label.xml
Template File: sources-sinks-07.tmpl.c
*/
/*
* @description
* CWE: 191 Integer Underflow
* BadSource: rand Set data to result of rand()
* GoodSource: Set data to a small, non-zero number (negative two)
* Sinks: dec... |
<?php
namespace VKBansal\Test\Spectrum\Plugin;
class PlugTest extends \<API key>{
protected $plugin;
protected $plug;
public function setUp()
{
$this->plugin = $this-><API key>('VKBansal\Spectrum\Plugin\AbstractPlugin');
$this->plugin
->method('getName')->will($this->returnVa... |
<div>
<div class="os-page-commands">
<div class="left" os-imaging>
<button show-if-allowed="specimenResource.updateOpts" class="default" ui-sref="specimen-addedit"
ng-if="!!visit.id && !specimen.reserved && (!specimen.activityStatus || specimen.activityStatus == 'Active')"
ng-switch on="!!sp... |
#include "config.h"
#include "ewk_history.h"
#include "BackForwardList.h"
#include "CairoUtilitiesEfl.h"
#include "HistoryItem.h"
#include "IconDatabaseBase.h"
#include "Image.h"
#include "IntSize.h"
#include "Page.h"
#include "PageGroup.h"
#include "ewk_history_private.h"
#include "ewk_private.h"
#include <Eina.h>
#in... |
<?php
class Yasc_App_Config {
/**
*
* @var array
*/
protected $_options = array();
/**
*
* @var bool
*/
protected $_useViewStream = false;
/**
* Layout.
*
* @var string
*/
protected $_layoutScript = null;
public function __construct() {
... |
// <API key>: Apache-2.0 WITH LLVM-exception
#include "fold-implementation.h"
namespace Fortran::evaluate {
template <int KIND>
Expr<Type<TypeCategory::Real, KIND>> <API key>(
FoldingContext &context,
FunctionRef<Type<TypeCategory::Real, KIND>> &&funcRef) {
using T = Type<TypeCategory::Real, KIND>;
using Co... |
<?php
namespace app\models;
use Yii;
use yii\base\Model;
/**
* LoginForm is the model behind the login form.
*/
class LoginForm extends Model
{
public $login;
public $password;
public $rememberMe = true;
private $_user = false;
/**
* @return array the validation rules.
*/
public func... |
#include "Test.h"
#if SK_SUPPORT_GPU
#include "GrReducedClip.h"
#endif
#include "SkClipStack.h"
#include "SkPath.h"
#include "SkRandom.h"
#include "SkRect.h"
#include "SkRegion.h"
static void <API key>(skiatest::Reporter* reporter) {
SkClipStack s;
bool doAA = false;
REPORTER_ASSERT(reporter, 0 == s.get... |
<?php
namespace app\models;
use Yii;
use app\models\general\GeneralLabel;
use app\models\general\GeneralMessage;
/**
* This is the model class for table "tbl_six_step".
*
* @property integer $six_step_id
* @property integer $atlet_id
* @property string $stage
* @property string $status
*/
class SixStepBiomekanik... |
from qiime2.plugin import SemanticType
from ..plugin_setup import plugin
from . import <API key>
SampleData = SemanticType('SampleData', field_names='type')
AlphaDiversity = SemanticType('AlphaDiversity',
variant_of=SampleData.field['type'])
plugin.<API key>(SampleData, AlphaDiversity)
plu... |
using System;
using System.Data;
using System.Data.SqlClient;
using System.IO;
using System.Xml.Serialization;
using JetBat.Client.Entities;
using JetBat.Client.Metadata.Abstract;
using JetBat.Client.Metadata.Definitions;
using JetBat.Client.Metadata.Misc;
using JetBat.Client.Metadata.Simple;
namespace JetBat.Client.Sq... |
from ..base import BaseTopazTest
class TestMarshal(BaseTopazTest):
def <API key>(self, space):
w_res = space.execute("return Marshal::MAJOR_VERSION")
assert space.int_w(w_res) == 4
w_res = space.execute("return Marshal::MINOR_VERSION")
assert space.int_w(w_res) == 8
w_res = s... |
package org.openquark.gems.client;
import java.awt.Container;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.event.MouseEvent;
import javax.swing.JList;
import javax.swing.JViewport;
import javax.swing.ListSelectionModel;
import org.openquark.gems.client.IntellicutListModel.FilterLevel;
import org.op... |
# modification, are permitted provided that the following conditions are
# met:
# the distribution.
# * Neither the name of John Haddon nor the names of
# any other contributors to this software may be used to endorse or
# promote products derived from this software without specific prior
# ... |
import React from 'react';
import 'isomorphic-fetch';
import {RouteHandler} from 'react-router';
import Transmit from 'react-transmit';
import {createStore, combineReducers} from 'redux';
import {Provider} from 'react-redux';
import * as reducers from '../reducers/index';
class AppContainer extends React.Component {
... |
require("../pc.v0");
require("util").puts(JSON.stringify({
"name": "pc",
"version": pc.version,
"description": "property creation for reusable d3.js code.",
"keywords": ["d3", "visualization"],
"homepage": "http://milroc.github.com/pc/",
"author": {"name": "Miles McCrocklin", "url": "http:
"... |
.title {
margin-top: 30px;
vertical-align: top;
}
.title button {
margin-top: 20px;
}
.contents {
margin-top: 100px;
}
.contetns span {
margin-top: 20px;
} |
package immortal
import (
"os/exec"
"syscall"
"testing"
"time"
)
func TestWatchPidGetpid(t *testing.T) {
ch := make(chan error, 1)
d := &Daemon{}
cmd := exec.Command("go", "version")
cmd.Start()
pid := cmd.Process.Pid
go func() {
d.WatchPid(pid, ch)
ch <- cmd.Wait... |
#include "Utilities.h"
#include <string.h>
char
Utilities::toHEX (char code) {
return m_hex[code & 15];
}
long
Utilities::Escaping (char * src, char * dest) {
char *pstr = src;
char *pbuf = dest;
long count = 0;
while (*pstr) {
if (isalnum(*pstr) || *pstr == '-' || *pstr == '_' || *pstr == '... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_51) on Tue May 19 11:04:42 CEST 2015 -->
<title>Uses of Interface com.mxgraph.util.svg.ShapeProducer (JGraph X 3.3.0.1 API Specification)</title>
<meta name="date" content="2015-05-19">
<link rel="stylesheet" type... |
SEEK::Application.configure do
#This holds a secret phrase, used for encrypting private information in the database
#GLOBAL_PASSPHRASE=""
Seek::Config.default :solr_enabled, true
end |
#pragma once
#include "boxFilter.hpp"
class <API key> : public cp::BoxFilterBase
{
protected:
int ksize;
void filter_naive_impl() override;
void filter_omp_impl() override;
void operator()(const cv::Range& range) const override;
public:
<API key>(cv::Mat& _src, cv::Mat& _dest, int _r, int _parallelT... |
package com.tubros.constraints.core.spi.solver
package runtime
import org.junit.runner.RunWith
import org.scalamock.scalatest.MockFactory
import org.scalatest._
import org.scalatest.junit.JUnitRunner
import com.tubros.constraints.api._
* The '''SymbolTableSpec''' type defines the unit tests responsible for
/**
* cert... |
#include "synchronization/Communicator.hpp"
namespace Synchronization
{
Communicator::Communicator()
: _numManagedCons(0),
_numManagedFmus(0)
{
}
size_type Synchronization::Communicator::addFmu(FMI::AbstractFmu* in, vector<FMI::InputMapping> & valuePacking)
{
vector... |
{% load url from future %}
<div class="well">
<h3 class="title">Violence</h3>
<table class="table tabulated-data">
<thead>
<tr>
<th>Group</th>
<th>Monthly Numbers</th>
</tr>
</thead>
<tbody>
<tr>
<td>Girl... |
#!/usr/bin/env python2
from __future__ import print_function
import sys
import os
import urllib
import argparse
import xml.etree.ElementTree as ET
def warn(*msgs):
for x in msgs: print('[WARNING]:', x, file=sys.stderr)
class PDBTM:
def __init__(self, filename):
#self.tree = ET.parse(filename)
#s... |
{-# LANGUAGE TemplateHaskell #-}
module Data.Comp.Trans.DeriveUntrans (
deriveUntrans
) where
import Control.Lens ( view ,(^.))
import Control.Monad ( liftM )
import Control.Monad.Trans ( lift )
import Data.Comp.Multi ( Alg, cata, (:&:)(..) )
import Language.Haskell.TH
import Data.Comp.Trans.Util
-- Creates an @u... |
from django.template import Library, Node, resolve_variable, TemplateSyntaxError
from django.core.urlresolvers import reverse
register = Library()
@register.simple_tag
def active(request, pattern):
import re
if re.search(pattern, request.get_full_path()):
return 'active'
return '' |
#include <memory>
#include <utility>
#include <vector>
#include "base/feature_list.h"
#include "base/macros.h"
#include "base/optional.h"
#include "base/strings/string_util.h"
#include "base/strings/<API key>.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/metrics/user_action_tester.h"
#include "... |
# VIVO: Connect, Share, Discover
[
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
namespace Newtonsoft.Json.Utilities
{
internal sealed class <API key><T> : DynamicMetaObject
{
private readonly DynamicProxy<T> ... |
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.in by autoheader. */
/* Whether to build xhprof as dynamic module */
#define COMPILE_DL_XHPROF 1
/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1
/* Define to 1 if you have the <inttypes.... |
'''
Given a number, find the next higher number using only the digits in the given number.
For example if the given number is 1234, next higher number with same digits is 1243
'''
def FindNext(num):
number = str(num)
length = len(number)
for i in range(length-2,-1,-1):
current = number[i]
ri... |
package manifest
import (
"encoding/json"
"fmt"
"log"
"reflect"
"regexp"
"strconv"
"strings"
"github.com/fatih/color"
"github.com/servehub/serve/manifest/processor"
"github.com/servehub/utils"
"github.com/servehub/utils/gabs"
)
type Manifest struct {
tree *gabs.Container
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.