text stringlengths 3 1.05M |
|---|
package com.planet_ink.coffee_web.interfaces;
/**
* Interface for session managers for the web server. Maintains a cache
* of sessionID->session object map, and includes a method for periodic
* timeout/cleanup which should be called from time to time for memory
* purposes.
* @author Bo Zimmerman
... |
package org.wso2.siddhi.core.query.selector.attribute.aggregator.incremental;
import org.wso2.siddhi.core.event.stream.StreamEvent;
import org.wso2.siddhi.core.event.stream.StreamEventPool;
import org.wso2.siddhi.core.executor.ExpressionExecutor;
import java.util.ArrayList;
import java.util.List;
/**
* Store for ... |
module Puppet::Parser::Functions
newfunction(:lstrip, :type => :rvalue, :doc => <<-EOS
Strips leading spaces to the left of a string.
EOS
) do |arguments|
raise(Puppet::ParseError, "lstrip(): Wrong number of arguments " +
"given (#{arguments.size} for 1)") if arguments.size < 1
value = arguments... |
/* For UK phone functions, do the following server side processing:
* Compare original input with this RegEx pattern:
* ^\(?(?:(?:00\)?[\s\-]?\(?|\+)(44)\)?[\s\-]?\(?(?:0\)?[\s\-]?\(?)?|0)([1-9]\d{1,4}\)?[\s\d\-]+)$
* Extract $1 and set $prefix to '+44<space>' if $1 is '44', otherwise set $prefix to '0'
* Extract $... |
package ca.uhn.fhir.testmindeps;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import java.util.concurrent.TimeUnit;
import org.apache.commons.io.IOUtils;
import org.apache.http.Header;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpGet;
im... |
require 'rails_helper'
RSpec.describe AppointmentForm do
let(:hackney) do
BookingLocations.find('ac7112c3-e3cf-45cd-a8ff-9ba827b8e7ef')
end
let(:booking_request) do
LocationAwareEntity.new(
entity: create(:hackney_booking_request),
booking_location: hackney
)
end
let(:params) { Hash.n... |
package com.intellij.openapi.ui;
import com.intellij.icons.AllIcons;
import com.intellij.notification.NotificationType;
import com.intellij.ui.JBColor;
import com.intellij.util.ui.UIUtil;
import org.jetbrains.annotations.NotNull;
import javax.swing.*;
import java.awt.*;
public class MessageType {
public static f... |
<?php
namespace Symfony\Component\Debug\Exception;
/**
* Error Exception with Variable Context.
*
* @author Christian Sciberras <uuf6429@gmail.com>
*/
class ContextErrorException extends \ErrorException
{
private $context = array();
public function __construct($message, $code, $severity, $filename, $li... |
package jk_5.nailed.server.map.gamerule;
import jk_5.nailed.api.gamerule.EditableGameRule;
import jk_5.nailed.api.gamerule.GameRuleKey;
import jk_5.nailed.api.util.Checks;
import javax.annotation.Nonnull;
/**
* No description given
*
* @author jk-5
*/
public class DefaultEditableGameRule<T> implements EditableGa... |
from allauth.socialaccount.tests import OAuth2TestsMixin
from allauth.tests import MockedResponse, TestCase
from .provider import JupyterHubProvider
class JupyterHubTests(OAuth2TestsMixin, TestCase):
provider_id = JupyterHubProvider.id
def get_mocked_response(self):
return MockedResponse(200, """
... |
package com.example.whuassist.score;
public class Scoremodel {
//private String id;
public static int COURSE_GONGBI=0;
public static int COURSE_ZHUANBI=1;
public static int COURSE_ZHUANXUAN=2;
public static int COURSE_GONGXUAN=3;
public String id;
public String name;
public int type;
public float credit=0;
/... |
package org.apache.spark.scheduler.cluster.k8s
import io.fabric8.kubernetes.api.model.Pod
import org.apache.spark.SparkFunSuite
import org.apache.spark.scheduler.cluster.k8s.ExecutorLifecycleTestUtils._
class ExecutorPodsSnapshotSuite extends SparkFunSuite {
def testCase(pod: Pod, state: Pod => ExecutorPodState)... |
package com.intellij.openapi.extensions.impl;
import com.intellij.openapi.extensions.*;
import com.intellij.util.containers.ContainerUtil;
import com.intellij.util.containers.MultiMap;
import com.intellij.util.pico.ConstructorInjectionComponentAdapter;
import com.intellij.util.pico.DefaultPicoContainer;
import gnu.tr... |
def browser_goto(website)
website.object_id # => 2151945040, 2151945040
"Direct your browser towards #{website}"
end
# the same object id means they are the same object
website = "ruby-kickstart.com"
website.object_id # => 2151945040
browser_goto(website) # => "Direct your browser towards ruby-kickstar... |
<!DOCTYPE html>
<!--
~ Copyright (c) 2017. tom@axisj.com
~ - github.com/thomasjang
~ - www.axisj.com
-->
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, user-scalable=no">
<title>GRID</title... |
/*
* linux/fs/ext4/page-io.c
*
* This contains the new page_io functions for ext4
*
* Written by Theodore Ts'o, 2010.
*/
#include <linux/fs.h>
#include <linux/time.h>
#include <linux/jbd2.h>
#include <linux/highuid.h>
#include <linux/pagemap.h>
#include <linux/quotaops.h>
#include <linux/string.h>
#include <linu... |
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// 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.apa... |
package tourguide.tourguidedemo;
import android.app.Activity;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.Gravity;
import android.view.View;
import android.widget.Button;
import tourguide.tourguide.Pointer;
import tourguide.tourguide.ToolTip;
import tourguide.tourgui... |
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example - example-example35-production</title>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.5.0-rc.2/angular.min.js"></script>
<script src="script.js"></script>
</head>
<body ng-app="formExample">
<div ng-controller="... |
<?php
declare(strict_types=1);
namespace spec\Sylius\Bundle\FixturesBundle\Suite;
use PhpSpec\ObjectBehavior;
use PhpSpec\Wrapper\Collaborator;
use Sylius\Bundle\FixturesBundle\Fixture\FixtureInterface;
use Sylius\Bundle\FixturesBundle\Fixture\FixtureRegistryInterface;
use Sylius\Bundle\FixturesBundle\Listener\Lis... |
NelmioApiDocBundle
==================
The **NelmioApiDocBundle** bundle allows you to generate a decent documentation
for your APIs.
Installation
------------
Require the `nelmio/api-doc-bundle` package in your composer.json and update your dependencies.
$ composer require nelmio/api-doc-bundle
Register the b... |
module ChunkyPNG
class Canvas
# Methods to export a canvas to a PNG data URL.
module DataUrlExporting
# Exports the canvas as a data url (e.g. data:image/png;base64,<data>) that can
# easily be used inline in CSS or HTML.
# @return [String] The canvas formatted as a data URL string.
... |
require('./angular-locale_ff-mr');
module.exports = 'ngLocale';
|
package org.wso2.developerstudio.eclipse.gmf.esb;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Local Entry</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link org.wso2.developerstudio.eclipse.gmf.esb.LocalEntry#getEn... |
package com.amazonaws.services.simpleworkflow.model;
/**
* Cancel Timer Failed Cause
*/
public enum CancelTimerFailedCause {
TIMER_ID_UNKNOWN("TIMER_ID_UNKNOWN"),
OPERATION_NOT_PERMITTED("OPERATION_NOT_PERMITTED");
private String value;
private CancelTimerFailedCause(String value) {
t... |
package testutil
import (
"io/ioutil"
"log"
"os"
"golang.org/x/net/context"
"golang.org/x/oauth2"
"golang.org/x/oauth2/google"
)
const (
envProjID = "GCLOUD_TESTS_GOLANG_PROJECT_ID"
envPrivateKey = "GCLOUD_TESTS_GOLANG_KEY"
)
// ProjID returns the project ID to use in integration tests, or the empty
// ... |
package org.keycloak.subsystem.adapter.saml.extension;
import java.util.List;
import org.jboss.as.controller.OperationFailedException;
import org.jboss.as.server.deployment.DeploymentUnit;
import org.jboss.as.web.common.WarMetaData;
import org.jboss.dmr.ModelNode;
import org.jboss.dmr.Property;
import org.jboss.meta... |
describe("Ext.util.KeyMap", function(){
var el, map, createMap, defaultFn, fireKey, origProcessEvent, KEYS = {
A: 65,
B: 66,
C: 67,
X: 88,
Y: 89,
Z: 90
};
beforeEach(function(){
el = Ext.getBody().createChild({
id: 'test-keyMap-el'
... |
package com.assemblade.opendj.model.authentication.validation;
import com.assemblade.opendj.model.ConfigurationDecorator;
import org.opends.server.types.Entry;
public class UniqueCharactersPasswordValidator extends PasswordValidator {
@Override
public String getJavaClass() {
return "org.opends.serve... |
;
EXTERN vTaskSwitchContext
EXTERN ulCriticalNesting
EXTERN pxCurrentTCB
EXTERN ulPortTaskHasFPUContext
EXTERN ulAsmAPIPriorityMask
portSAVE_CONTEXT macro
; Save the LR and SPSR onto the system mode stack before switching to
; system mode to save the remaining system mode registers
SRSDB sp!, #SYS_MODE
CP... |
package com.cisco.axl.api._8;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for RMohServer complex type... |
#include <aws/ce/model/ReservationUtilizationGroup.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace CostExplorer
{
namespace Model
{
ReservationUtilizationGroup::ReservationUtilizationGroup() :
m_key... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
using Orchard.JobsQueue.Models;
namespace Orchard.JobsQueue.ViewModels {
public class JobsQueueSettingsPartViewModel {
public JobsQueueSettingsPart JobsQueueSettings { get; set; }
}
}
|
package kubelet
import (
"fmt"
"net"
"path"
"github.com/golang/glog"
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/kubelet/cm"
kubecontainer "k8s.io/kubernetes/pkg/kubelet/container"
"k8s.io/kubernetes/pkg/types"
nodeutil "k8s.io/kubernetes/pkg/util/node"
)
// getRootDir returns the full path to the ... |
namespace PR6631 {
struct A {
virtual void f() = 0;
};
struct B : virtual A { };
struct C : virtual A {
virtual void f();
};
struct D : public B, public C {
virtual void f();
};
void f() {
(void)new D; // okay
}
}
// Check cases where we have a virtual function that is pure in ... |
<dc:language>en-US</dc:language>
<dc:creator opf:file-as="Supreme Court of the United States" opf:role="aut">Supreme Court of the United States</dc:creator>
<dc:publisher>Supreme Court of the United States republished via Cornell Internet Law</dc:publisher>
<dc:rights>Creative Commons</dc:rights>
<dc:title>IBP, INC. v.... |
/**
* Forces a triangle edge between two points p and q
* when triangulating. For example used to enforce
* Polygon Edges during a polygon triangulation.
*
* @author Thomas Åhlén, thahlen@gmail.com
*/
namespace Poly2Tri {
public class TriangulationConstraint {
public TriangulationPoint P;
public Triangul... |
// Copyright (c) 2011-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_QT_ASKPASSPHRASEDIALOG_H
#define BITCOIN_QT_ASKPASSPHRASEDIALOG_H
#include <QDialog>
class WalletModel;
nam... |
require 'formula'
class EnginePkcs11 < Formula
homepage 'https://github.com/OpenSC/OpenSC/wiki/OpenSSL-engine-for-PKCS%2311-modules'
url 'https://downloads.sourceforge.net/project/opensc/engine_pkcs11/engine_pkcs11-0.1.8.tar.gz'
sha1 '25f3c29c7f47da5f2c0bec1534aceec9651cfed3'
head do
url 'https://github.c... |
"""
The MemoryCgroupCollector collects memory metric for cgroups
Example config:
```
memory_path=/sys/fs/cgroup/memory/
skip=group\d+,mygroup\d\d
enabled=True
```
memory_path -- path to CGroups memory stat
skip -- comma-separated list of regexps, which paths should we skip
Stats that we are interested in tracking:
... |
/* Widget: reflow - updated 2/7/2015 (v2.19.0) */
/*
* Requires tablesorter v2.8+ and jQuery 1.7+
* Also, this widget requires the following default css (modify as desired)
/ * REQUIRED CSS: change your reflow breakpoint here (35em below) * /
@media ( max-width: 35em ) {
.ui-table-reflow td,
.ui-table-re... |
package storm
import (
"github.com/asdine/storm/codec"
"github.com/boltdb/bolt"
)
// A Node in Storm represents the API to a BoltDB bucket.
type Node interface {
Tx
TypeStore
KeyValueStore
BucketScanner
// From returns a new Storm node with a new bucket root below the current.
// All DB operations on the new ... |
description("Test to make sure we preserve styles when removing links")
var testContainer = document.createElement("div");
testContainer.contentEditable = true;
document.body.appendChild(testContainer);
function testSingleToggle(toggleCommand, initialContents, selector, expectedContents)
{
testContainer.innerHTML... |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orien... |
class PolicyEventContent < ApplicationRecord
belongs_to :resource, :polymorphic => true
belongs_to :policy_event
end
|
package de.outstare.kinosim.guests;
import static org.junit.Assert.*;
import static org.mockito.Mockito.*;
import java.time.LocalDate;
import java.time.LocalTime;
import java.util.Collections;
import org.junit.Test;
import de.outstare.kinosim.cinema.CinemaHall;
import de.outstare.kinosim.cinema.FixedSizeCinemaHall;... |
PHPUnit_Framework_MockObject_Generator::generate('NS\Foo', array(), 'MockFoo', TRUE)
--FILE--
<?php
namespace NS;
interface IFoo
{
public function __construct($bar);
}
class Foo implements IFoo
{
public function __construct($bar)
{
}
}
require_once 'PHPUnit/Autoload.php';
require_once 'Text/Template.... |
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import *
class SignMessagesTest(BitcoinTestFramework):
"""Tests RPC commands for signing and verifying messages."""
def __init__(self):
super().__init__()
self.setup_clean_chain = True
self.num_nod... |
.class public interface abstract Landroid/bluetooth/IBluetoothPan;
.super Ljava/lang/Object;
.source "IBluetoothPan.java"
# interfaces
.implements Landroid/os/IInterface;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroid/bluetooth/IBluetoothPan$Stub;
}
.end annotat... |
(function() {
var Declaration, GridTemplate, parser,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.proto... |
lychee.define('lychee.net.Server').tags({
platform: 'nodejs'
}).requires([
'lychee.net.Remote'
]).includes([
'lychee.event.Emitter'
]).supports(function(lychee, global) {
if (typeof process !== 'undefined') {
return true;
}
return false;
}).exports(function(lychee, global) {
var http = require('http');... |
define(function () {
'use strict';
var grid = {};
// Add a grid overlay with lines spaced by subcellSize, for visual
// debugging. This is useful while doing the activity layout or
// while developing widgets.
grid.addGrid = function (subcellSize) {
var canvas = document.createElemen... |
import Vue from 'vue';
import mrWidgetOptions from '~/vue_merge_request_widget/mr_widget_options.vue';
import eventHub from '~/vue_merge_request_widget/event_hub';
import notify from '~/lib/utils/notify';
import { stateKey } from '~/vue_merge_request_widget/stores/state_maps';
import mountComponent from 'spec/helpers/v... |
/**
@module ember-metal
*/
import {
removeChainWatcher,
flushPendingChains
} from 'ember-metal/chains';
import {
watchKey,
unwatchKey
} from 'ember-metal/watch_key';
import {
watchPath,
unwatchPath
} from 'ember-metal/watch_path';
import {
isPath
} from 'ember-metal/path_cache';
/**
Starts watching a ... |
<?php
namespace lithium\template;
use lithium\core\Libraries;
use lithium\template\TemplateException;
/**
* As one of the three pillars of the Model-View-Controller design pattern, the `View` class
* (along with other supporting classes) is responsible for taking the data passed from the
* request and/or control... |
"""phy_att_point
Revision ID: 351c4f5710e7
Revises: 1be40493866d
Create Date: 2015-12-14 07:01:48.954910
"""
# revision identifiers, used by Alembic.
revision = '351c4f5710e7'
down_revision = '1be40493866d'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.create_table(
'pg_transit_doma... |
var colors = require('colors');
var async = require('async');
var neo4j = require('neo4j-driver').v1;
var _ = require('underscore');
var moment = require('moment');
var driver = require('../../server.js').driver;
var fs = require("fs");
var query_get_scenario = fs.readFileSync(__dirname + '/../../queries/scenarios/get.... |
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports System.ComponentModel.Composition
Imports System.Threading
Imports Microsoft.CodeAnalysis.Editor.Implementatio... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* MS SQL Database Adapter Class
*
* Note: _DB is an extender class that the app controller
* creates dynamically based on whether the query builder
* class is being used or not.
*
* @package CodeIgniter
* @subpackage Drivers
* @catego... |
package set
import (
"fmt"
"io"
"github.com/spf13/cobra"
"k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/meta"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/types"
"k8s.io/apimachinery/pkg/util/validation"
"k8s.io/kubernetes/pkg/kubectl/cmd/temp... |
EPHEMERAL_HDFS=/root/ephemeral-hdfs
# Set hdfs url to make it easier
HDFS_URL="hdfs://$PUBLIC_DNS:9000"
echo "export HDFS_URL=$HDFS_URL" >> ~/.bash_profile
pushd /root/spark-ec2/ephemeral-hdfs > /dev/null
source ./setup-slave.sh
for node in $SLAVES $OTHER_MASTERS; do
echo $node
ssh -t -t $SSH_OPTS root@$node "/r... |
class EditorFileServer : public Object {
OBJ_TYPE(EditorFileServer,Object);
enum Command {
CMD_NONE,
CMD_ACTIVATE,
CMD_STOP,
};
struct ClientData {
Thread *thread;
Ref<StreamPeerTCP> connection;
Map<int,FileAccess*> files;
EditorFileServer *efs;
bool quit;
};
Ref<TCP_Server> server;
Set<Th... |
using System;
using System.Collections.Generic;
///<summary>
///System.EventHandler.BeginInvoke(System.Object,TEventArgs,System.AsyncCallback,System.Object)
///</summary>
public class EventHandlerBeginInvoke
{
//create a instance of HelperArgs that the event effected.
public HelperArgs helperArgs = new Helper... |
"use strict";
var _ = require("lodash");
var args = require("minimist")(process.argv.slice(2));
module.exports.getArgs = function () {
return args;
};
module.exports.merge = function merge(defaults, config, simple, callbacks) {
simple = simple || false;
var toMerge;
var commandLineArgs = exports... |
**Is this in reference to an existing issue?**
#### General
- [ ] Update Changelog following the conventions laid out on [Keep A Changelog](http://keepachangelog.com/)
- [ ] Update README with any necessary configuration snippets
- [ ] Binstubs are created if needed
- [ ] RuboCop passes
- [ ] Existing tests pass ... |
// Template Source: BaseMethodRequest.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------... |
namespace generator
{
bool BuildUgcMwmSection(std::string const & srcDbFilename, std::string const & mwmFile,
std::string const & osmToFeatureFilename)
{
using ugc::binary::IndexUGC;
LOG(LINFO, ("Build UGC section"));
std::unordered_map<uint32_t, base::GeoObjectId> featureToOsmId;
if (... |
/* crypto/evp/m_ripemd.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and no... |
package net.sf.antcontrib.cpptasks.gcc;
import net.sf.antcontrib.cpptasks.compiler.LinkType;
import net.sf.antcontrib.cpptasks.compiler.Linker;
/**
* Adapter for the 'ar' archiver
*
* @author Adam Murdoch
*/
public final class GccLibrarian extends AbstractArLibrarian {
private static String[] objFileExtension... |
using base::win::ScopedCoMem;
using base::win::ScopedComPtr;
using base::win::ScopedVariant;
namespace media {
namespace {
// Finds and creates a DirectShow Video Capture filter matching the device_name.
HRESULT GetDeviceFilter(const VideoCaptureDevice::Name& device_name,
IBaseFilter** filter)... |
/* crypto/des/ofb_enc.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non... |
namespace media {
JpegDecodeAccelerator::~JpegDecodeAccelerator() {
}
} // namespace media
|
package com.pivotal.gemfirexd.tools;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;
import com.gemstone.gemfire.SystemFailure;
import com.gemstone.gemfire.admin.jmx... |
/** @jsx jsx */
import { Node } from 'slate'
import { jsx } from 'slate-hyperscript'
import { cloneDeep } from 'lodash'
export const input = (
<editor>
<element>
<text />
</element>
</editor>
)
export const test = value => {
return Node.get(value, [])
}
export const skip = true // TODO: see https:... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GW2PAO.Modules.Events.Interfaces
{
public interface IEventsViewController
{
void Initialize();
void Shutdown();
void DisplayEventsTracker();
bool CanDi... |
package com.devoxx.android.temperatureconverter.conversion;
public class TemperatureConversionException extends RuntimeException {
public TemperatureConversionException(final String message) {
super(message);
}
}
|
package redis.clients.jedis.tests.utils;
import java.util.concurrent.atomic.AtomicReference;
import redis.clients.jedis.HostAndPort;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPubSub;
public class JedisSentinelTestUtil {
public static HostAndPort waitForNewPromotedMaster(final String masterN... |
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using Abp.MultiTenancy;
using Abp.Timing;
namespace Abp.Authorization.Users
{
/// <summary>
/// Used to save a login attempt of a user.
... |
/*
* 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... |
#include "common.h"
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
void Java_com_googlecode_leptonica_android_Boxa_nativeDestroy(JNIEnv *env, jclass clazz, jlong nativeBoxa) {
BOXA *boxa = (BOXA *) nativeBoxa;
boxaDestroy(&boxa);
}
jboolean Java_com_googlecode_leptonica_android_Boxa_nativeGetGeomet... |
'use strict';
var fs = require('fs');
var path = require('path');
var yaml = require('js-yaml');
var out = require('./out');
var args = require('./args');
var options = [{
name: 'admin',
flag: 'a',
param: 'port',
default: 8889,
description: 'Port for admin portal. Defaults to 8889.'
}, {
name: 'cert',
f... |
import * as React from 'react';
import { createDragDropManager } from 'dnd-core';
import MultiBackend, { createTransition, TouchTransition, Backends, Preview } from 'react-dnd-multi-backend';
import HTML5ToTouch from 'react-dnd-multi-backend/lib/HTML5toTouch';
import TouchBackend from 'react-dnd-touch-backend';
const ... |
package gov.hhs.onc.dcdt.utils;
import gov.hhs.onc.dcdt.test.impl.AbstractToolUnitTests;
import org.testng.Assert;
import org.testng.annotations.Test;
@Test(groups = { "dcdt.test.unit.utils.all", "dcdt.test.unit.utils.msgs" })
public class ToolMessageUtilsUnitTests extends AbstractToolUnitTests {
private final st... |
package org.codehaus.groovy.ast.stmt;
import org.codehaus.groovy.ast.GroovyCodeVisitor;
import org.codehaus.groovy.ast.expr.BooleanExpression;
import org.codehaus.groovy.ast.expr.ConstantExpression;
import org.codehaus.groovy.ast.expr.Expression;
/**
* Represents an assert statement.
* E.g.:
* <code>
* assert i ... |
package org.springframework.security.config.annotation.web.configurers;
import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.List;
import org.springframework.security.access.ConfigAttribute;
import org.springframework.security.config.annotation.web.AbstractRequest... |
defineSuite([
'Core/Rectangle',
'Core/Cartesian3',
'Core/Cartographic',
'Core/Ellipsoid',
'Core/Math',
'Specs/createPackableSpecs'
], function(
Rectangle,
Cartesian3,
Cartographic,
Ellipsoid,
CesiumMath,
createPackableSp... |
var add = require('./add');
var reduce = require('./reduce');
/**
* Adds together all the elements of a list.
*
* @func
* @memberOf R
* @category Math
* @sig [Number] -> Number
* @param {Array} list An array of numbers
* @return {Number} The sum of all the numbers in the list.
* @see R.reduce
* @example
*
... |
.. EN-Revision: 3728e7b
.. _zend.db.row-gateway:
Zend\\Db\\RowGateway
====================
``Zend\Db\RowGateway`` - это подкомпонент Zend\\Db, реализующий паттерн Row Gateway из PoEAA. Это фактически
означает, что объекты Row Gateway прежде всего моделируют строку в базе данных и имеют такие методы, как save()
и dele... |
package com.intellij.xdebugger.impl.actions;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.CommonDataKeys;
import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.editor.ex.EditorEx;
import com.inte... |
namespace content {
viz::FrameSinkId AllocateFrameSinkId() {
#if defined(OS_ANDROID)
return CompositorDependenciesAndroid::Get().AllocateFrameSinkId();
#else
ImageTransportFactory* factory = ImageTransportFactory::GetInstance();
return factory->GetContextFactory()->AllocateFrameSinkId();
#endif
}
viz::HostFrame... |
define(
"dojo/cldr/nls/fr/japanese", //begin v1.x content
{
"dateFormat-medium": "d MMM y G",
"field-second": "seconde",
"field-year-relative+-1": "l’année dernière",
"field-week": "semaine",
"field-month-relative+-1": "le mois dernier",
"field-day-relative+-1": "hier",
"field-day-relative+-2": "avant-hier",
"f... |
<?php
namespace BackBundle\Form;
use BackBundle\Entity\JMDElement;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\Exten... |
/**
* @fileOverview Plugin for making iframe based dialogs.
*/
CKEDITOR.plugins.add( 'iframedialog',
{
requires : [ 'dialog' ],
onLoad : function()
{
CKEDITOR.dialog.addIframe = function( name, title, src, width, height, onContentLoad )
{
var element =
{
type : 'iframe',
src :... |
// auto-generated header by CodeFromTemplate - Connected Vision - https://github.com/ConnectedVision
// CodeFromTemplate Version: 0.3 alpha
// stubs/Stub_DummyBoundingBoxes_params.h
// NEVER TOUCH this file!
#include <stdint.h>
#include <string>
#include <vector>
#include <boost/shared_ptr.hpp>
#include <boost/thread.... |
<?php
/**
* Tests the functionality for previewing the future state of the site.
*/
class SiteTreeFutureStateTest extends SapphireTest
{
public static $fixture_file = 'cmsworkflow/tests/SiteTreeFutureStateTest.yml';
protected $illegalExtensions = array(
'SiteTree' => array('SiteTreeCMSTwoStepWorkflo... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Newtonsoft.Json;
using Sdl.Tridion.Api.Client;
using Sdl.Tridion.Api.Client.ContentModel;
using Sdl.Web.Common;
using Sdl.Web.Common.Configuration;
using Sdl.Web.Common.Logging;
using Sdl.Web.Common.Models;
using Sdl.Web.DataMod... |
<?php
namespace ClassesWithParents;
class B implements CInterface {}
|
Example: an interval type
=========================
We will extend the Numba frontend to support a class that it does not
currently support so as to allow:
* Passing an instance of the class to a Numba function
* Accessing attributes of the class in a Numba function
* Constructing and returning a new instance of the ... |
package org.springframework.boot.autoconfigure.redis;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* Configuration properties for Redis.
*
* @author Dave Syer
* @author Christoph Strobl
* @author Eddú Meléndez
*/
@ConfigurationProperties(prefix = "spring.redis")
public class... |