text
stringlengths
3
1.05M
import calendar import datetime import warnings import numpy as np import pandas as pd from .conftest import assert_frame_equal, assert_series_equal from numpy.testing import assert_allclose import pytest from pvlib.location import Location from pvlib import solarposition, spa from .conftest import requires_ephem, ...
#!/usr/bin/env node var pkg = require('./package.json'); var fs = require('fs'); var hint = require("jshint").JSHINT; var uglify = require('uglify-js'); var banner = '/*! iScroll v' + pkg.version + ' ~ (c) 2008-' + (new Date().getFullYear()) + ' Matteo Spinelli ~ http://cubiq.org/license */\n'; var releases = { lit...
package uq.deco2800.coaster.game.entities.npcs; import java.util.Random; import uq.deco2800.coaster.game.entities.AABB; import uq.deco2800.coaster.game.entities.EntityState; import uq.deco2800.coaster.game.entities.Landmine; import uq.deco2800.coaster.game.entities.Player; import uq.deco2800.coaster.game.entities.Tre...
Backbone.Marionette = (function(Backbone, _, $){ var Marionette = {}; // EventBinder // ----------- // The event binder facilitates the binding and unbinding of events // from objects that extend `Backbone.Events`. It makes // unbinding events, even with anonymous callback functions, // easy. // // Inspired by [Jo...
using System; using umbraco.interfaces; using umbraco.BasePages; namespace umbraco.BusinessLogic.Actions { /// <summary> /// This action is invoked when a document is protected or unprotected /// </summary> public class ActionProtect : IAction { //create singleton #pragma warning disable 612,618 ...
package org.ovirt.engine.core.vdsbroker; import java.util.concurrent.TimeUnit; import javax.inject.Inject; import org.ovirt.engine.core.common.config.Config; import org.ovirt.engine.core.common.config.ConfigValues; import org.ovirt.engine.core.utils.timer.OnTimerMethodAnnotation; import org.ovirt.engine.core.utils.t...
(function($) { var queues = {}; var activeReqs = {}; // Register an $.ajaxq function, which follows the $.ajax interface, but allows a queue name which will force only one request per queue to fire. $.ajaxq = function(qname, opts) { if (typeof opts === "undefined") { throw ("AjaxQ...
package com.novoda.downloadmanager; import android.support.annotation.NonNull; import com.evernote.android.job.Job; class LiteJobDownload extends Job { private final LiteDownloadManager liteDownloadManager; LiteJobDownload(LiteDownloadManager liteDownloadManager) { this.liteDownloadManager = liteDo...
VS_TOOL_OVERRIDE ---------------- Override the default Visual Studio tool that will be applied to the source file with a new tool not based on the extension of the file.
"""Tests for division with division imported from __future__. This file should be exactly the same as division_past_test.py except for the __future__ division line. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np from tensorflow.pyt...
CKEDITOR.plugins.setLang("preview","en-gb",{preview:"Preview"});
<?php require_once 'Zend/Loader/PluginLoader.php'; /** * @category Zend * @package Zend_Http_UserAgent * @subpackage UnitTests * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ class Zend_Ht...
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright 2005 Sakai Foundation Licensed under the Educational Community License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.osedu.org/licenses/ECL-2.0 ...
#include <mitkIOUtil.h> #include <mitkImageStatisticsHolder.h> #include <mitkLabelSetImage.h> #include <mitkTestFixture.h> #include <mitkTestingMacros.h> class mitkLabelSetImageTestSuite : public mitk::TestFixture { CPPUNIT_TEST_SUITE(mitkLabelSetImageTestSuite); MITK_TEST(TestInitialize); MITK_TEST(TestAddLay...
package org.chromium.third_party.android.media; import android.content.Context; import android.support.v4.media.TransportController; import android.support.v4.media.TransportMediator; import android.support.v4.media.TransportStateListener; import android.util.AttributeSet; import android.view.LayoutInflater; import ...
APPLICATION_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/.. TEMP_FOLDER_NAME=".mamute-build" TEMP_FOLDER="${APPLICATION_DIR}/${TEMP_FOLDER_NAME}" cd ${APPLICATION_DIR} mvn clean rsync -av --delete --exclude=${TEMP_FOLDER_NAME} --exclude=.git . ${TEMP_FOLDER} cd ${TEMP_FOLDER} mvn package -DskipTests mv target...
// Use, modification and distribution are subject to the Boost Software License, // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt). #ifndef BOOST_CONFIG_ABI_PREFIX_HPP # define BOOST_CONFIG_ABI_PREFIX_HPP #else # error double inclusion of header boost/config...
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
class AddAttachmentImageToPictures < ActiveRecord::Migration def self.up change_table :pictures do |t| t.attachment :image end end def self.down remove_attachment :pictures, :image end end
class PartnerDealsController < ApplicationController before_action :authenticate_user!, only: [:update] def index deals = PartnerDeal.where(active: true).available_in(get_request_country) render json: deals, each_serializer: PartnerDealSerializer end # redeem a code def update unless current_use...
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
/*! UIkit 2.19.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ (function(UI) { "use strict"; var grids = []; UI.component('gridMatchHeight', { defaults: { "target" : false, "row" : true }, boot: function() { // init code ...
ACCEPTED #### According to International Plant Names Index #### Published in null #### Original name null ### Remarks null
namespace boost { namespace python { namespace objects { bool function_doc_signature_generator::arity_cmp( function const *f1, function const *f2 ) { return f1->m_fn.max_arity() < f2->m_fn.max_arity(); } bool function_doc_signature_generator::are_seq_overloads( function const *f1, function con...
import Button from './Button'; import { action } from '@storybook/addon-actions'; import { Meta, Story } from '@storybook/addon-docs'; <Meta title='Button' /> <Story name='story1'><Button label='Story 1' /></Story> <Story name='second story'><Button label='Story 2' onClick={action('click')} /></Story> <Story name='...
package org.axonframework.spring.trial; import org.axonframework.spring.stereotype.Saga; @Saga public class MyOtherSaga { }
.. Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may...
[Connect command](typescript/connectExample.md) [Bind command](typescript/bindExample.md) [Associate command](typescript/associateExample.md) ## JavaScript Examples [Connect command](javascript/connectExample.md) [Bind command](javascript/bindExample.md) [Associate command](javascript/associateExample.md)
require 'test_helper' class SavedSearchesTest < ActiveSupport::TestCase test "truth" do assert_kind_of Module, SavedSearches end end
package org.apache.hadoop.yarn.api.records; import org.apache.hadoop.classification.InterfaceAudience.Private; import org.apache.hadoop.classification.InterfaceAudience.Public; import org.apache.hadoop.classification.InterfaceStability.Stable; import org.apache.hadoop.classification.InterfaceStability.Unstable; impo...
import PIL.Image # check for JPEG support. try: PIL.Image._getdecoder("rgb", "jpeg", None) except IOError as e: if str(e).startswith("decoder jpeg not available"): raise Exception( "FATAL: jpeg codec not supported. Install pillow correctly! " " 'sudo apt-get install libjpeg-dev'...
class C(object): def __enter__(self): return self def __exit__(self, exc, value, traceback): return True def f(): with C(): raise Exception() x = 1 #pass
var fs = require('fs'); var path = require('path'); var HERE = __dirname; var typings = path.resolve(HERE, '..', 'dist', 'ansi_up.d.ts'); var content = fs.readFileSync(typings, 'utf-8'); var new_content = content.replace(/^interface /mg, 'export interface '); new_content = new_content.replace(/^declare class AnsiUp/...
<?php namespace Application; return array( 'router' => array( 'routes' => array( 'home' => array( 'type' => 'Zend\Mvc\Router\Http\Literal', 'options' => array( 'route' => '/', 'defaults' => array( ...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" con...
namespace android_webview { bool RegisterCookieManager(JNIEnv* env); } // namespace android_webview #endif // ANDROID_WEBVIEW_NATIVE_COOKIE_MANAGER_H_
const { GraphQLNonNull } = require('graphql') const mongoose = require('mongoose') const { inputType, outputType } = require('../../types/UserGroups') const UserGroup = mongoose.model('UserGroup') module.exports = { type: new GraphQLNonNull(outputType), args: { data: { name: 'data', type: new Grap...
""" Australian-specific Form helpers """ from django.core.validators import EMPTY_VALUES from django.forms import ValidationError from django.forms.fields import Field, RegexField, Select from django.utils.encoding import smart_unicode from django.utils.translation import ugettext_lazy as _ import re PHONE...
var toInteger = require('./_to-integer'); var max = Math.max; var min = Math.min; module.exports = function (index, length) { index = toInteger(index); return index < 0 ? max(index + length, 0) : min(index, length); };
package org.keycloak.services.resources.admin; import static javax.ws.rs.core.Response.Status.BAD_REQUEST; import com.google.common.collect.Streams; import org.jboss.logging.Logger; import org.jboss.resteasy.annotations.cache.NoCache; import javax.ws.rs.NotFoundException; import org.keycloak.broker.provider.Identity...
/*! angular-onsenui.js for onsenui - v2.0.0-alpha.2 - 2015-10-15 */ (function(module) { try { module = angular.module('templates-main'); } catch(err) { module = angular.module('templates-main', []); } module.run(['$templateCache', function($templateCache) { 'use strict'; $templateCache.put('templates/sliding_menu.t...
module ActiveRecord class Relation class WhereClauseFactory # :nodoc: def initialize(klass, predicate_builder) @klass = klass @predicate_builder = predicate_builder end def build(opts, other) case opts when String, Array parts = [klass.send(:sanitize_sq...
namespace DLaB.Xrm.Entities { [System.Runtime.Serialization.DataContractAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("CrmSvcUtil", "9.0.0.9154")] public enum Organization_DefaultRecurrenceEndRangeType { [System.Runtime.Serialization.EnumMemberAttribute()] EndByDate = 3, [System.Runtime...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (version 1.7.0-google-v5) on Thu Dec 19 17:42:22 EST 2013 --> <title>ContentPartnerErrorReason</title> <meta name="date" content="2013-12-19"> <link r...
package conf import ( "io/ioutil" "path/filepath" ) const ConfigFileName = "hroot.toml" //A generic interface for loading configuration. //Our implementation reads TOML files; roll your own! type ConfigParser interface { //Parses a new configuration string. //Each call should override configuration added before...
"""fuse_gtest_files.py v0.2.0 Fuses Google Test source code into a .h file and a .cc file. SYNOPSIS fuse_gtest_files.py [GTEST_ROOT_DIR] OUTPUT_DIR Scans GTEST_ROOT_DIR for Google Test source code, and generates two files: OUTPUT_DIR/gtest/gtest.h and OUTPUT_DIR/gtest/gtest-all.cc. Then yo...
<?php namespace Guzzle\Tests\Service; use Guzzle\Inflection\Inflector; use Guzzle\Http\Message\Response; use Guzzle\Plugin\Mock\MockPlugin; use Guzzle\Service\Description\Operation; use Guzzle\Service\Client; use Guzzle\Service\Exception\CommandTransferException; use Guzzle\Service\Description\ServiceDescription; use...
package org.apache.flink.test.recovery; import akka.actor.ActorRef; import akka.actor.ActorSystem; import org.apache.commons.io.FileUtils; import org.apache.flink.configuration.ConfigConstants; import org.apache.flink.configuration.Configuration; import org.apache.flink.runtime.akka.AkkaUtils; import org.apache.flin...
var context = require('../context'); describe('ctx.path', function(){ it('should return the pathname', function(){ var ctx = context(); ctx.url = '/login?next=/dashboard'; ctx.path.should.equal('/login'); }) }) describe('ctx.path=', function(){ it('should set the pathname', function(){ var ctx =...
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ /* Copyright 2012 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Licen...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.5.0_22) on Mon Dec 20 13:46:18 EST 2010 --> <TITLE> JUnitTaskMirror.JUnitTestRunnerMirror (Apache Ant API) </TITLE> <META NAME="keywords" CONTENT="org.a...
import io import os import setuptools # Package metadata. name = 'google-cloud-speech' description = 'Google Cloud Speech API client library' version = '0.36.0' # Should be one of: # 'Development Status :: 3 - Alpha' # 'Development Status :: 4 - Beta' # 'Development Status :: 5 - Production/Stable' release_status =...
<?php namespace Psy\Test\Reflection; use Psy\Reflection\ReflectionConstant; class ReflectionConstantTest extends \PHPUnit_Framework_TestCase { const CONSTANT_ONE = 'one'; public function testConstruction() { $refl = new ReflectionConstant($this, 'CONSTANT_ONE'); $class = $refl->getDec...
require "formula" class Mongodb < Formula homepage "https://www.mongodb.org/" stable do url "https://fastdl.mongodb.org/src/mongodb-src-r2.6.5.tar.gz" sha1 "f5a68505a0de1152b534d62a8f0147d258d503a0" # Review this patch with the next stable release. # Note it is a different patch to the one applie...
class test_dm : public std::back_insert_iterator<std::list<int> > { container_type l; container_type* p; public: test_dm(): std::back_insert_iterator<std::list<int> >(l), p(container) { } };
package org.jetbrains.plugins.groovy.lang.psi.api.types; import com.intellij.psi.PsiType; import org.jetbrains.annotations.Nullable; import org.jetbrains.plugins.groovy.lang.psi.api.statements.expressions.GrExpression; /** * @author Maxim.Medvedev */ public interface GrClosureParameter { @Nullable PsiType get...
using System; using System.Collections.Generic; // Error allocation: the errors are listed (and documented) in $(TOP)/docs/errors.md namespace Embeddinator.ObjC { public class EmbeddinatorException : Exception { internal const string PREFIX = "EM"; public EmbeddinatorException (int code, string message, params...
package org.coderthoughts.servicejockey; import static org.mockito.Matchers.any; import static org.mockito.Matchers.anyObject; import static org.mockito.Matchers.anyString; import static org.mockito.Matchers.eq; import static org.mockito.Matchers.isA; import static org.mockito.Mockito.mock; import static org.m...
"use strict"; var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var async_1 = require('../scheduler/async'); var...
#include <Box2D/Dynamics/Contacts/b2PolygonContact.h> #include <Box2D/Common/b2BlockAllocator.h> #include <Box2D/Collision/b2TimeOfImpact.h> #include <Box2D/Dynamics/b2Body.h> #include <Box2D/Dynamics/b2Fixture.h> #include <Box2D/Dynamics/b2WorldCallbacks.h> #include <new> b2Contact* b2PolygonContact::Create(b2Fixt...
/** * @author bhouston / http://exocortex.com */ THREE.Line3 = function ( start, end ) { this.start = ( start !== undefined ) ? start : new THREE.Vector3(); this.end = ( end !== undefined ) ? end : new THREE.Vector3(); }; THREE.Line3.prototype = { constructor: THREE.Line3, set: function ( start, end ) { ...
/** * @author: @AngularClass */ const helpers = require('./helpers'); /** * Used to merge webpack configs */ const webpackMerge = require('webpack-merge'); /** * The settings that are common to prod and dev */ const commonConfig = require('./webpack.common.js'); /** * Webpack Plugins */ const DefinePlugin = req...
package org.afree.chart.axis; import java.io.Serializable; import org.afree.util.ObjectUtilities; import org.afree.ui.TextAnchor; /** * The base class used to represent labelled ticks along an axis. */ public abstract class Tick implements Serializable, Cloneable { /** For serialization. */ private sta...
layout: example.html title: Drag-and-Drop shortdesc: Example of using the drag-and-drop interaction. docs: > Example of using the drag-and-drop interaction. Drag and drop GPX, GeoJSON, IGC, KML, or TopoJSON files on to the map. There is no projection transform support, so this will only work with data in EPSG:4326 an...
var http = require('http'), faye = require('faye'); var server = http.createServer(), bayeux = new faye.NodeAdapter({mount: '/', timeout: 45}); bayeux.attach(server); server.listen(3000);
package org.knowm.xchange.paymium.service; import java.io.IOException; import java.util.Arrays; import java.util.List; import org.knowm.xchange.Exchange; import org.knowm.xchange.client.ExchangeRestProxyBuilder; import org.knowm.xchange.paymium.PaymiumAuthenticated; import org.knowm.xchange.paymium.dto.account.Paymium...
/*! formstone v0.8.30 [background.css] 2015-12-07 | MIT License | formstone.it */ /** * @class * @name .fs-background-element * @type element * @description Target elmement */ /** * @class * @name .fs-background * @type element * @description Base widget class */ .fs-background { overflow: hidden...
#!/usr/bin/env node var path = require('path'), build = require('./build'), emulator = require('./emulator'), device = require('./device'), Q = require('q'); /* * Runs the application on a device if available. * If not device is found, it will use a started emulator. * If no started emulators ...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using StackifyLib.Utils; namespace StackifyLib.Models { public enum MetricType : short { MetricLast = 134, Counter = 129, MetricAverage = 132, CounterTime = 131 }...
using System; using System.Text; using System.Collections.Generic; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Nucleo.Web.ValidationControls.Categories { [TestClass] public class WarningValidatorCategoryTest { [TestMethod] public void GettingValuesWorksOK() { var cat =...
version: "0.13" category: "Installation" title: "Guide" next: url: adding_a_check text: "Adding a check" --- # Guide {#guide} This guide provides instructions on how to manually install and configure Sensu and its dependencies on Linux. Sensu is typically (and best!) deployed by a configuration management tool, ...
inline void add_tags(osmium::memory::Buffer& buffer, osmium::builder::Builder& builder, const std::vector<std::pair<const char*, const char*>>& tags) { osmium::builder::TagListBuilder tl_builder(buffer, &builder); for (auto& tag : tags) { tl_builder.add_tag(tag.first, tag.second); } } inline osmium...
namespace gfx { class Point; } namespace aura { class Window; namespace client { enum WindowMoveResult { MOVE_SUCCESSFUL, // Moving window was successful. MOVE_CANCELED // Moving window was canceled. }; enum WindowMoveSource { WINDOW_MOVE_SOURCE_MOUSE, WINDOW_MOVE_SOURCE_TOUCH, }; // An interface implem...
<template> <a route-href="route: online"><button>Online</button></a> <a route-href="route: local"><button>Local</button></a> <a route-href="route: adventure"><button>Adventure!!!!</button></a> <a route-href="route: skynet"><button>Battle Skynet</button></a> </template>
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery UI Autocomplete Test Suite</title> <script src="../../../jquery-1.7.2.js"></script> <link rel="stylesheet" href="../../../external/qunit.css"> <link rel="stylesheet" href="../qunit-composite.css"> <script src="../../../external/qunit.j...
<?php namespace Doctrine\DBAL\Driver\PDOSqlsrv; /** * Sqlsrv Connection implementation. * * @since 2.0 */ class Connection extends \Doctrine\DBAL\Driver\PDOConnection implements \Doctrine\DBAL\Driver\Connection { /** * @override */ public function quote($value, $type=\PDO::PARAM_STR) { ...
package org.apache.cassandra.index.sasi.utils.trie; import java.util.Map; import java.util.SortedMap; import org.apache.cassandra.index.sasi.utils.trie.Cursor.Decision; /** * This class is taken from https://github.com/rkapsi/patricia-trie (v0.6), and slightly modified * to correspond to Cassandra code style, as...
/** * @license Highcharts JS v6.0.6 (2018-02-05) * Highstock as a plugin for Highcharts * * (c) 2017 Torstein Honsi * * License: www.highcharts.com/license */ 'use strict'; (function(factory) { if (typeof module === 'object' && module.exports) { module.exports = factory; } else { factory(...
<?php $this->pageTitle = Yii::app()->getModule('yupe')->siteDescription; ?> <?php $this->widget('zii.widgets.CListView', array( 'dataProvider' => $dataProvider, 'itemView' => '_view', 'template' => "{items}\n{pager}", )); ?> <?php $this->widget('application.modules.social.widgets.ysc.yandex.Yandex...
<?xml version="1.0" ?> <container xmlns="http://symfony.com/schema/dic/services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"> <parameters> <parameter key="assetic.filter.cssrewrite.class"...
package tokentest import ( "context" "k8s.io/apiserver/pkg/authentication/authenticator" "k8s.io/apiserver/pkg/authentication/user" ) type TokenAuthenticator struct { Tokens map[string]*user.DefaultInfo } func New() *TokenAuthenticator { return &TokenAuthenticator{ Tokens: make(map[string]*user.DefaultInfo...
package org.apache.camel.component.pdf.text; import java.io.IOException; import org.apache.pdfbox.pdmodel.font.PDFont; import static org.apache.camel.component.pdf.PdfConstants.PDF_PIXEL_SIZE; public final class PdfUtils { private PdfUtils() { } public static float getAverageFontHeight(PDFont font, float ...
/* ////////////////////////////////////////////////////////////////////////////////////// * includes */ #include "../demo.h" /* ////////////////////////////////////////////////////////////////////////////////////// * demo */ tb_void_t tb_demo_default_allocator_leak(tb_noarg_t); tb_void_t tb_demo_default_allocator_...
// Copyright 2011 Google Inc. All Rights Reserved. // // Use of this source code is governed by a BSD-style license // that can be found in the COPYING file in the root of the source // tree. An additional intellectual property rights grant can be found // in the file PATENTS. All contributing project authors may // be...
$window.alert('Hello world!'); // example - valid: false, errorMessage: "You should use the $window service instead of the default window object" window.alert('Hello world!');
/** * @provides javelin-behavior-day-view */ JX.behavior('day-view', function(config) { function findTodayClusters() { var events = today_events.sort(function(x, y){ return (x.eventStartEpoch - y.eventStartEpoch); }); var clusters = []; for (var i=0; i < events.length; i++) { var to...
<?xml version="1.0" encoding="utf-8"?> <resources> <string name="app_name">Checklist Demo</string> </resources>
package org.apache.camel.component.atmos.dto; import org.apache.camel.Exchange; public abstract class AtmosResult { protected Object resultEntries; /** * Populate the camel exchange with the results from atmos method invocations. * @param exchange */ public abstract void populateExchang...
When installing opsdroid a command line utility is created for starting the bot and managing the bot configuration. ``` $ opsdroid start ``` ## Reference ```eval_rst .. click:: opsdroid.cli:cli :prog: opsdroid :show-nested: ```
/// <reference path='fourslash.ts' /> //// function f(templateStrings, x, y, z) { return 10; } //// function g(templateStrings, x, y, z) { return ""; } //// //// f `/*1*/ \\\/*2*/`/*3*/ /*4*/ verify.signatureHelp({ marker: test.markerNames(), text: "f(templateStrings: any, x: any, y: any, z: any): n...
from OpenGL.GL import * from OpenGL.arrays import vbo from .. GLGraphicsItem import GLGraphicsItem from .. import shaders from ... import QtGui import numpy as np __all__ = ['GLScatterPlotItem'] class GLScatterPlotItem(GLGraphicsItem): """Draws points at a list of 3D positions.""" def __init__(self, **kw...
'use strict'; const Glue = require('glue'); const Manifest = require('./manifest'); const composeOptions = { relativeTo: __dirname }; module.exports = Glue.compose.bind(Glue, Manifest.get('/'), composeOptions);
using namespace test::api::crossref; namespace { static scoped_ptr<DictionaryValue> CreateTestTypeDictionary() { DictionaryValue* value(new DictionaryValue()); value->SetWithoutPathExpansion("number", Value::CreateDoubleValue(1.1)); value->SetWithoutPathExpansion("integer", Value::CreateIntegerValue(4)); valu...
require 'rubygems' require 'nokogiri' module ActiveMerchant #:nodoc: module Billing #:nodoc: class CheckoutGateway < Gateway self.default_currency = 'USD' self.money_format = :cents self.supported_countries = %w[AD AT BE BG CH CY CZ DE DK EE ES FO FI FR GB GI GL GR HR HU IE IS IL IT LI LT LU L...
package io.prometheus.client; import java.util.Arrays; import java.util.List; import java.util.Vector; /** * A collector for a set of metrics. * <p> * Normal users should use {@link Gauge}, {@link Counter} and {@link Summary}. * Subclasssing Collector is for advanced uses, such as proxying metrics from another m...
require File.expand_path('../../../../spec_helper', __FILE__) require 'net/ftp' require File.expand_path('../fixtures/server', __FILE__) describe "Net::FTP#retrbinary" do before(:each) do @server = NetFTPSpecs::DummyFTP.new @server.serve_once @ftp = Net::FTP.new @ftp.connect("127.0.0.1", 9876) end...
#ifndef ARRAYTYPE_H #define ARRAYTYPE_H #include "Type.h" /** <summary> An array type. </summary> */ class ArrayType : public Type { public: /** <summary> Defines an alias representing the pointer. </summary> */ typedef std::shared_ptr<ArrayType> sPtr; /** * <summary> Constructor. </summary> * * <p...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.5.0_22) on Wed Apr 03 10:00:59 GMT-03:00 2013 --> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <TITLE> EventCollector (Apache Open...
template "nginx.conf" do path "#{node['nginx']['dir']}/nginx.conf" source "nginx.conf.erb" owner "root" group "root" mode 00644 notifies :reload, 'service[nginx]' end template "#{node['nginx']['dir']}/sites-available/default" do source "default-site.erb" owner "root" group "root" mode 00644 notif...
package ua.windriver.model.request; import com.fasterxml.jackson.annotation.JsonProperty; import ua.windriver.model.automation.StartMethodNameOption; public class AttachOrLaunchByProcessNameRequest extends ApplicationControlRequest { @JsonProperty private String processName; public AttachOrLaunchByProce...