text stringlengths 3 1.05M |
|---|
const proxyquire = require('proxyquire').noCallThru();
import { List } from 'immutable';
describe('app/features/main/challenges ChallengeScreenContainer', () => {
let sut,
reactRedux,
state,
dispatch,
wrapWithConnect,
challengesActionCreators,
ChallengeScreen,
... |
extern crate inner;
|
package cloudstack
import (
"context"
"os"
"strconv"
"strings"
"testing"
"k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
const testClusterName = "testCluster"
func TestReadConfig(t *testing.T) {
_, err := readConfig(nil)
if err != nil {
t.Fatalf("Should not return an error when no ... |
#ifndef _FSL_CARD_H_
#define _FSL_CARD_H_
#include "fsl_common.h"
#include "fsl_specification.h"
#include "fsl_host.h"
#include "stdlib.h"
/*!
* @addtogroup CARD
* @{
*/
/*******************************************************************************
* Definitions
**********************************************... |
require File.expand_path('../../../spec_helper', __FILE__)
ruby_version_is "".."1.9" do
require 'thread'
describe "Thread.exclusive" do
before :each do
ScratchPad.clear
end
it "sets Thread.critical to true and yields" do
Thread.exclusive { ScratchPad.record Thread.critical }
Scratch... |
'use strict';
var is = require( '../is' );
var Collection = require( '../collection' );
var corefn = ({
// get a collection
// - empty collection on no args
// - collection of elements in the graph on selector arg
// - guarantee a returned collection when elements or collection specified
collection: functi... |
namespace Reader.Migrations
{
using System.CodeDom.Compiler;
using System.Data.Entity.Migrations;
using System.Data.Entity.Migrations.Infrastructure;
using System.Resources;
[GeneratedCode("EntityFramework.Migrations", "6.1.1-30610")]
public sealed partial class NullabeDates : IMigrationMet... |
'use strict';
var fs = require('fs');
var RSVP = require('rsvp');
var api = require('../../api');
var utils = require('../../utils');
var chalk = require('chalk');
module.exports = function(context, options, payload) {
var rulesPath = options.config.get('storage.rules');
if (rulesPath) {
rulesPath = options.c... |
package gophercloud
import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"
"reflect"
"strconv"
"time"
)
/*
Result is an internal type to be used by individual resource packages, but its
methods will be available on a wide variety of user-facing embedding types.
It acts as a base struct that other Result type... |
#ifndef __ARCH_ARM_MMAPPED_IPR_HH__
#define __ARCH_ARM_MMAPPED_IPR_HH__
/**
* @file
*
* ISA-specific helper functions for memory mapped IPR accesses.
*/
#include "arch/generic/mmapped_ipr.hh"
class ThreadContext;
namespace ArmISA
{
using GenericISA::handleIprRead;
using GenericISA::handleIprWrite;
} /... |
import os
import shutil
from Axon.AdaptiveCommsComponent import AdaptiveCommsComponent
from binascii import hexlify, unhexlify
class DeliveryQueueOne(AdaptiveCommsComponent):
def makeRecipientLink(self, filename, recipient):
# we no longer use hard links because some backward operating systems don't support... |
class Arranger < Cask
version '1.5'
sha256 'dff93bacfa3f0a00ecde23c55abd7124efe7bcf7f5980bb347f87b9c9f6b62b6'
url 'http://bucketomac.de/wp-content/plugins/download-monitor/download.php?id=5'
appcast 'http://bucketomac.de/appcast/arrangercast.xml'
homepage 'http://bucketomac.de/arranger/arranger/'
link 'Ar... |
require 'stringex'
module Spree
module Core
module Permalinks
extend ActiveSupport::Concern
included do
class_attribute :permalink_options
end
module ClassMethods
def make_permalink(options = {})
options[:field] ||= :permalink
self.permalink_options =... |
<?php
namespace Symfony\Component\DependencyInjection\Tests\Fixtures\CheckTypeDeclarationsPass;
class IntersectionConstructor
{
public function __construct(Foo&WaldoInterface $arg)
{
}
}
|
import { Material } from './Material.js';
import { Color } from '../math/Color.js';
class PointsMaterial extends Material {
constructor( parameters ) {
super();
this.isPointsMaterial = true;
this.type = 'PointsMaterial';
this.color = new Color( 0xffffff );
this.map = null;
this.alphaMap = null;
... |
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE helpset PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 2.0//EN" "http://java.sun.com/products/javahelp/helpset_2_0.dtd">
<helpset version="2.0" xml:lang="sr-SP">
<title>Form Handler | ZAP Extension</title>
<maps>
<homeID>top</homeID>
<mapref... |
@implementation AutoConnectService
Reachability *reach = NULL;
ConnectionService* _connectionService;
- (id) initWithConnectionService:(ConnectionService*) connectionService
{
self = [super init];
[[NSNotificationCenter defaultCenter] addObserver: self
selecto... |
//
// AppDelegate_Shared.h
// IgniteTools
//
// Created by Joseph Flasher on 6/2/11.
// Copyright 2011 n/a. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>
#import "UAPush.h"
#import "UAirship.h"
/**
* The Application Delegate which takes care of most Core Data functions.
*/
@inter... |
package org.apache.camel.component.file;
import org.apache.camel.ContextTestSupport;
import org.apache.camel.Exchange;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
/**
* @version
*/
public class FileProducerFileExistTryRenameTest extends ContextTestSupport {
... |
<!--
Copyright (C) 2015 The Gravitee team (http://gravitee.io)
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 re... |
require "mongoid/atomic/modifiers"
require "mongoid/atomic/paths"
module Mongoid
# This module contains the logic for supporting atomic operations against the
# database.
module Atomic
extend ActiveSupport::Concern
UPDATES = [
:atomic_array_pushes,
:atomic_array_pulls,
:atomic_array_a... |
XamlFloatLabel
==============
An implementation of Matt D. Smith's "float label" pattern: http://mattdsmith.com/float-label-pattern/ for XAML platforms
Original design from @mds:

|
import Ember from 'ember';
import TransitionMonitoringSupport from 'ember-vcl-transition-monitoring-support';
import BasicSelectionSupport from 'ember-vcl-basic-item-selection-support';
import navMediator from './navMediator';
import { NavControlMixin } from './navMediator';
import NavButton from './navButton';
import ... |
All notable changes to the Zulip server are documented in this file.
### Unreleased
- Added support for (optionally) using PGRoonga to support full-text
search in all languages (not just English).
- Added GitLab and Sentry integrations.
- Added support for VMWare Fusion Vagrant provider for faster OSX
development... |
<?php
interface demo1 { }
class demo2 implements demo1 { }
?> |
namespace browser {
struct AcceleratorMapping {
ui::KeyboardCode keycode;
bool shift_pressed;
bool ctrl_pressed;
bool alt_pressed;
int command_id;
};
// The list of accelerators.
extern const AcceleratorMapping kAcceleratorMap[];
// The numbers of elements in kAcceleratorMap.
extern c... |
export function f() { }
export default f;
//// [es5ExportDefaultIdentifier.js]
function f() { }
exports.f = f;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = f;
//// [es5ExportDefaultIdentifier.d.ts]
export declare function f(): void;
export default f;
|
#ifndef BOOST_BRIGAND_TYPES_HAS_TYPE_HPP
#define BOOST_BRIGAND_TYPES_HAS_TYPE_HPP
namespace brigand
{
template<typename T, typename R = void > struct has_type
{
using type = R;
};
}
#endif
|
date: 2019-02-07 21:15:00 -0500
layout: meeting
published: true
title: "Python Internals and Web"
credit: "Ian Klatzco"
slides: https://docs.google.com/presentation/d/10Js9oLXau97rVzakcFZe_9XHBzK3FD8Qnur38q_oDHw/edit#slide=id.p
link-to-assets: ""
goal: "Learn about dir() in Python and the JS debugger in Chrome/Fire... |
"""
Tamactiluya
~~~~~~~~~~~
A file-based wiki engine, using YAML front matter-ed Markdown with some minor wiki-related extensions.
"""
import os
from flask import Flask
__version__ = "0.0.1a.dev1"
__license__ = "MIT/WTFPL"
__author__ = "Carlos Killpack"
__copyright__ = "Copyright 2014, Carlos Killpack"
__email__ = ... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/basictypes.h"
#include "chrome/browser/ui/views/ash/key_rewriter.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/aura/ev... |
"""JSON Web Tokens
Provides support for creating (encoding) and verifying (decoding) JWTs,
especially JWTs generated and consumed by Google infrastructure.
See `rfc7519`_ for more details on JWTs.
To encode a JWT use :func:`encode`::
from google.auth import crypt
from google.auth import jwt_async
signe... |
from __future__ import print_function, division
import collections
from sympy.core.add import Add
from sympy.core.basic import Basic, Atom
from sympy.core.expr import Expr
from sympy.core.function import count_ops
from sympy.core.logic import fuzzy_and
from sympy.core.power import Pow
from sympy.core.symbol import Sym... |
/
#ifndef RCS_DISCOVERYMANAGER_H_
#define RCS_DISCOVERYMANAGER_H_
#include <memory>
#include <functional>
#include <vector>
namespace OIC
{
namespace Service
{
class RCSAddress;
class RCSRemoteResourceObject;
/**
* This class contains the resource discovery methods.
... |
package com.aspose.email.examples.asposefeatures.appointments.getattachmentsfromcalender;
import com.aspose.email.Appointment;
import com.aspose.email.Attachment;
import com.aspose.email.examples.Utils;
public class AsposeGetAttachmentsFromCalender
{
public static void main(String[] args)
{
// The pat... |
'use strict';
// NOTE: ADVANCED_OPTIMIZATIONS mode.
//
// This file is compiled with Closure compiler's ADVANCED_OPTIMIZATIONS flag! Be wary of using
// constructs incompatible with that mode.
/* global $interpolateMinErr: false */
/* global isFunction: false */
/* global parseTextLiteral: false */
/**
* @construct... |
package org.encuestame.mvc.controller.security;
import org.encuestame.core.service.imp.SecurityOperations;
import org.encuestame.mvc.controller.AbstractBaseOperations;
import org.springframework.beans.factory.annotation.Autowired;
/**
* Abstract security controller.
* @author Picado, Juan juanATencuestame.org
* @... |
using System;
using System.Collections.Generic;
using System.Security.Principal;
using Xunit;
namespace System.Security.AccessControl.Tests
{
public partial class SystemAcl_Purge
{
[Fact]
public static void BasicValidationTestCases()
{
bool isContainer = false;
b... |
// Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you m... |
package com.iluwatar.composite;
public class Letter extends LetterComposite {
private char c;
public Letter(char c) {
this.c = c;
}
@Override
protected void printThisBefore() {
System.out.print(c);
}
@Override
protected void printThisAfter() {
// nop
}
}
|
package com.opengamma.financial.analytics.model.trs;
import org.threeten.bp.LocalDate;
import org.threeten.bp.ZoneId;
import org.threeten.bp.ZonedDateTime;
import com.opengamma.core.historicaltimeseries.HistoricalTimeSeries;
import com.opengamma.core.value.MarketDataRequirementNames;
import com.opengamma.financial.a... |
using System.Collections.Generic;
using System.Runtime.InteropServices;
using Xunit;
namespace System.Reflection.Emit.Tests
{
public class TypeBuilderDefineFieldTests
{
public static IEnumerable<object[]> TestData()
{
yield return new object[] { "TestName", typeof(object), FieldAttr... |
namespace leveldb {
struct Options;
struct FileMetaData;
class Env;
class Iterator;
class TableCache;
class VersionEdit;
// Build a Table file from the contents of *iter. The generated file
// will be named according to meta->number. On success, the rest of
// *meta will be filled with metadata about the generated... |
package org.spongepowered.common.world.biome;
import com.google.common.collect.Lists;
import org.spongepowered.api.world.biome.BiomeGenerationSettings;
import org.spongepowered.api.world.biome.GroundCoverLayer;
import org.spongepowered.api.world.gen.GenerationPopulator;
import org.spongepowered.api.world.gen.Populato... |
package tlc2.tool;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.util.List;
import java.util.Map;
import org.junit.Test;
import tlc2.output.EC;
import tlc2.output.EC.ExitStatus;
import tlc2.tool.liveness.TTraceModelCh... |
using System;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OpenProtocolInterpreter.Job.Advanced;
namespace MIDTesters.Job.Advanced
{
[TestClass]
public class TestMid0125 : MidTester
{
[TestMethod]
public void Mid0125Revision1()
{
string p... |
@class BSBserValues;
@class BSBserWriter;
@protocol JavaUtilList;
@interface APObjectPatch : BSBserObject
#pragma mark Public
- (instancetype)init;
- (instancetype)initWithJavaUtilList:(id<JavaUtilList>)rules;
- (id<JavaUtilList>)getRules;
- (void)parseWithBSBserValues:(BSBserValues *)values;
- (void)serializeWi... |
"""
SSL Middleware
Stephen Zabel
This middleware answers the problem of redirecting to (and from) a SSL secured path
by stating what paths should be secured in urls.py file. To secure a path, add the
additional view_kwarg 'SSL':True to the view_kwargs.
For example
urlpatterns = patterns('some_site.some_app.views',
... |
#include <ruby/ruby.h>
#include "rb_grpc_imports.generated.h"
#include "rb_byte_buffer.h"
#include <ruby/ruby.h>
#include <grpc/grpc.h>
#include <grpc/byte_buffer_reader.h>
#include <grpc/support/slice.h>
#include "rb_grpc.h"
grpc_byte_buffer* grpc_rb_s_to_byte_buffer(char *string, size_t length) {
gpr_slice sli... |
/*!
@package noty - jQuery Notification Plugin
@version version: 2.3.5
@contributors https://github.com/needim/noty/graphs/contributors
@documentation Examples and Documentation - http://needim.github.com/noty/
@license Licensed under the MIT licenses: http://www.opensource.org/licenses/mit-license.php
*/
... |
'use strict';
var CallbackQueue = require('CallbackQueue');
var PooledClass = require('PooledClass');
var ReactBrowserEventEmitter = require('ReactBrowserEventEmitter');
var ReactDOMFeatureFlags = require('ReactDOMFeatureFlags');
var ReactInputSelection = require('ReactInputSelection');
var Transaction = require('Tr... |
package com.dianping.cat.message.internal;
import java.util.ArrayList;
import java.util.List;
import java.util.Stack;
import com.dianping.cat.message.Event;
import com.dianping.cat.message.Heartbeat;
import com.dianping.cat.message.Message;
import com.dianping.cat.message.Metric;
import com.dianping.cat.message.Trans... |
<?php
/**
* @uses Zend_Service_DeveloperGarden_Response_VoiceButler_CallStatusResponse
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framewo... |
#ifndef _MSC_VER
# include <stdint.h>
# include <stdbool.h>
#else
# include "win32/stdint.h"
# include "win32/stdbool.h"
#endif
#include <limits.h>
#include <ruby.h>
#include "rbffi.h"
#include "rbffi_endian.h"
#include "AbstractMemory.h"
#include "Pointer.h"
#define POINTER(obj) rbffi_AbstractMemory_Cast((obj), rbf... |
/*! Lazy Load XT v1.0.5 2014-06-05
* http://ressio.github.io/lazy-load-xt
* (C) 2014 RESS.io
* Licensed under MIT */
(function ($, window, document) {
var options = $.lazyLoadXT,
dataLazyTag = options.dataLazyTag || 'data-lazy-tag';
window.L = function (tag) {
document.write('<br ' + dataLa... |
/* 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
* distributed... |
//
var imgLiquid = imgLiquid || {VER: '0.9.92'};
(function ($) {
imgLiquid.isIE = /*@cc_on!@*/ false;
imgLiquid.BSizeAvaiable = false;
imgLiquid.BSizeAvaiableRun = false;
//___________________________________________________________________
//CheckbackgroundSize
function checkBSizeAvaiable (){
if... |
"""ID-specific Form helpers."""
import re
import time
from django.core.exceptions import ImproperlyConfigured
from django.forms import ValidationError
from django.forms.fields import CharField, Select
from django.utils.translation import gettext_lazy as _
postcode_re = re.compile(r'^[1-9]\d{4}$')
plate_re = re.compi... |
<?php
/** @see Zend_Barcode_Object_ObjectAbstract */
// require_once 'Zend/Barcode/Object/ObjectAbstract.php';
/**
* Class for generate Barcode
*
* @category Zend
* @package Zend_Barcode
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.z... |
<?php
if (!defined('ENT_SUBSTITUTE')) {
// use 0 as hhvm does not support several flags yet
define('ENT_SUBSTITUTE', 0);
}
class Twig_Extension_Core extends Twig_Extension
{
protected $dateFormats = array('F j, Y H:i', '%d days');
protected $numberFormat = array(0, '.', ',');
protected $timezone ... |
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports System.Collections.Immutable
Imports System.Runtime.InteropServices
Imports Microsoft.CodeAnalysis.PooledObjects
Imports Microsoft.CodeAnalysis.Visual... |
Vex.Flow.Test.Accidental = {}
Vex.Flow.Test.Accidental.Start = function() {
module("Accidental");
Vex.Flow.Test.runTests("Basic", Vex.Flow.Test.Accidental.basic);
Vex.Flow.Test.runTests("Stem Down", Vex.Flow.Test.Accidental.basicStemDown);
Vex.Flow.Test.runTests("Accidental Arrangement Special Cases", Vex.Fl... |
<?xml version="1.0" ?>
<workspace basedir="/srv/gump/public/workspace"
pkgdir="/srv/gump/packages"
version="0.4" name="vmgump-test">
<sysproperty name="build.sysclasspath" value="only"/>
<sysproperty name="java.awt.headless" value="true"/>
<profile href="testbase/profile.xml"/>
</workspace>
|
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
~
~ WSO2 Inc. licenses this file to you 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 Licens... |
import { JwtService } from '@nestjs/jwt';
import { Injectable } from '@nestjs/common';
import { JwtPayload } from './dto/jwt-payload.dto';
import { UserService } from '../../graph/user/user.service';
import { Config } from '../config';
import { User } from '../../graph/user/user.model';
import { TokenUserDto } from '..... |
import { IPositionFunction } from '../position-function';
import { prefix } from './prefix';
/**
* ---------
* |popover|
* ----------------
* | anchor |
* | |
* ----------------
*/
export const TopLeft: IPositionFunction = ({
contentRect,
relativeRect,
cushion,
}) => {
const { left, t... |
SELECT name, setting FROM pg_settings WHERE name LIKE 'enable%';
DROP TABLE IF EXISTS foo;
CREATE TABLE foo(
fooid int, foosubid int, fooname text, primary key(fooid,foosubid)
) DISTRIBUTED BY (fooid, foosubid);
INSERT INTO foo VALUES
(1,1,'Joe'),
(1,2,'Ed'),
(2,1,'Mary');
CREATE TABLE foo2(fooid int, f2 i... |
/*
* angular-ui-bootstrap
* http://angular-ui.github.io/bootstrap/
* Version: 0.11.0 - 2014-05-01
* License: MIT
*/
angular.module("ui.bootstrap", ["ui.bootstrap.tpls", "ui.bootstrap.transition","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.bindHtml","ui.bootstrap.buttons","u... |
package org.cactoos.proc;
import java.util.concurrent.atomic.AtomicReference;
import org.cactoos.func.FuncOf;
import org.junit.jupiter.api.Test;
import org.llorllale.cactoos.matchers.Assertion;
import org.llorllale.cactoos.matchers.Satisfies;
/**
* Test case for {@link ProcOf}.
*
* @since 0.3
*/
final class Proc... |
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>hdfs-backup</groupId>... |
{% extends 'base.html' %}
{% load staticfiles %}
{% load i18n %}
{% block head %}
<script src="{% static 'js/articles.js' %}"></script>
{% endblock head %}
{% block main %}
<ol class="breadcrumb">
<li><a href="{% url 'articles' %}">{% trans 'Articles' %}</a></li>
<li class="active">{% trans 'Write Article... |
class CustomThemeSupplier;
class BrowserThemePack;
class ThemeSyncableService;
class Profile;
namespace base {
class FilePath;
}
namespace color_utils {
struct HSL;
}
namespace extensions {
class Extension;
}
namespace gfx {
class Image;
}
namespace theme_service_internal {
class ThemeServiceTest;
}
namespace ui ... |
import { Injectable, NgZone } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/observable/fromEvent';
import 'rxjs/add/observable/merge';
import 'rxjs/add/operator/auditTime';
import { DOMService } from './dom.service';
import { FRAME_DURATION, isDocumentAvailable } from '../util';
/... |
namespace FileHelpers.DataLink
{
/// <summary>
/// Define the different Modes of Transaction that are
/// used by the <see cref="DatabaseStorage" />
/// </summary>
public enum TransactionMode
{
/// <summary>No transaction used.</summary>
NoTransaction = 0,
///... |
seajs.config({
base: './override'
})
define(function(require) {
var test = require('../../../test')
var a = require('a')
test.assert(a.name === 'a', 'do NOT override existed module')
test.next()
});
|
/**
* requires GeoExt/widgets/grid/FeatureSelectionModel.js
* requires GeoExt/data/FeatureStore.js
*/
/** api: (define)
* module = gxp.grid
* class = FeatureGrid
* base_link = `Ext.grid.GridPanel <http://extjs.com/deploy/dev/docs/?class=Ext.grid.GridPanel>`_
*/
Ext.namespace("gxp.grid");
/**... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<TITLE>
FormulaParsingWorkbook (POI API Documentation)
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text... |
package org.apache.hadoop.yarn.server.applicationhistoryservice.webapp;
import static org.apache.hadoop.yarn.webapp.Params.TITLE;
import static org.mockito.Mockito.mock;
import org.junit.Assert;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.yarn.api.ApplicationBaseProtocol;
import org.apache... |
//= require vendor/knockout.min
//= require vendor/knockout-mapping
/**
* Created with IntelliJ IDEA.
* User: greg
* Date: 9/17/14
* Time: 12:01 PM
* To change this template use File | Settings | File Templates.
*/
/**
* Manages editing script step entries, using a unique key for each entry
* @constructor
*... |
steal('jquery', 'jquerypp/event/drag/core', 'jquerypp/dom/within', 'jquerypp/dom/compare', function($){
var event = $.event;
/**
* @add jQuery.event.special
*/
var eventNames = [
/**
* @function jQuery.event.special.dropover dropover
* @parent jQuery.event.drop
*
* @body
*
* `dropover` is triggered... |
#ifndef PluginQuirks_h
#define PluginQuirks_h
namespace WebKit {
class PluginQuirks {
public:
enum PluginQuirk {
// Mac specific quirks:
#if PLUGIN_ARCHITECTURE(MAC)
// The plug-in wants the call to getprogname() to return "WebKitPluginHost".
// Adobe Flash Will not handle key down event... |
// Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
/*
#include <sys/mman.h>
#include <pthread.h>
#include <unistd.h>
void ctor(void) __attribute__((constructor));
static void* thread(void*);
void... |
<html dir="LTR" xmlns:ndoc="urn:ndoc-schema">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta content="history" name="save" />
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
<title>EncodingFinder.AddMapping Method</title>
... |
/*
To get this list of colors inject jQuery at http://www.google.com/design/spec/style/color.html#color-color-palette
Then, run this script to get the list.
(function() {
var colors = {}, main = {};
$(".color-group").each(function() {
var color = $(this).find(".name").text().trim().toLowerCase().replace(" "... |
/* Includes ------------------------------------------------------------------*/
#include "stm32f4xx_hal.h"
/** @addtogroup STM32F4xx_HAL_Driver
* @{
*/
/** @addtogroup DSI
* @{
*/
#ifdef HAL_DSI_MODULE_ENABLED
#if defined(STM32F469xx) || defined(STM32F479xx)
/* Private types ----------------------------... |
category: overview
---
Example
-------
mydoc = {
"baz": "qux",
"foo": "bar"
};
thepatch = [
{ "op": "replace", "path": "/baz", "value": "boo" }
]
patcheddoc = jsonpatch.apply_patch(mydoc, thepatch);
// patcheddoc now equals {"baz": "boo", "foo": "bar"}}
And that's all you ne... |
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2009 Daniel Himmelein
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... |
var compareAscending = require('./_compareAscending');
/**
* Used by `_.orderBy` to compare multiple properties of a value to another
* and stable sort them.
*
* If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
* specify an order of "desc" for descending or "asc" for ascending sort... |
class HostedZone(object):
def __init__(self, id=None, name=None, owner=None, version=None,
caller_reference=None):
self.id = id
self.name = name
self.owner = owner
self.version = version
self.caller_reference = caller_reference
def startElement(self, na... |
<?xml version="1.0" encoding="utf-8" ?>
<Recipe Name="SPCmdLetWithPipeBind"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://schemas.microsoft.com/pag/gax-core"
Bound="false">
<DocumentationLinks>
<Link Caption="MSDN: Windows PowerShell ... |
<header>Gestore dei processi - Esegui comando</header>
Questo modulo ti permette di eseguire un comando e, opzionalmente, visualizzarne l'output.<br>
E' possibile anche specificare del testo da passare come input standard al programma.
<hr>
|
package com.seatgeek.placesautocomplete;
public class Constants {
public static final String LOG_TAG = "MapsPlacesAutoComplete";
public static final String MAGIC_HISTORY_VALUE_PRE = "____history____=";
}
|
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is dis... |
(function () {
function handleExternalScript() {
var container = Docsify.dom.getNode('#main');
var scripts = Docsify.dom.findAll(container, 'script');
for (var i = scripts.length; i--;) {
var script = scripts[i];
if (script && script.src) {
var newScript = document.createElement('script');
... |
package com.thoughtworks.go.config;
import org.junit.jupiter.api.Test;
import java.util.List;
import static java.util.Arrays.asList;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsInAnyOrder;
import static org.hamcrest.Matchers.hasSize;
import static org.hamcrest.Ma... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/media/images/favicon.ico" />
<title>DataTables example</titl... |
<?php
##|+PRIV
##|*IDENT=page-firewall-trafficshaper-wizard
##|*NAME=Firewall: Traffic Shaper: Wizard
##|*DESCR=Allow access to the 'Firewall: Traffic Shaper: Wizard' page.
##|*MATCH=firewall_shaper_wizards.php*
##|-PRIV
require_once("guiconfig.inc");
require_once("functions.inc");
require_once("filter.inc");
requir... |
using Xunit;
using System.Collections.Generic;
namespace StringTokenFormatter.Tests {
public abstract class TokenMarkerTestsBase {
protected static void SingleInternal(IInterpolationSettings settings, string original, string expected) {
var tokenValues = new Dictionary<string, object> { { "tw... |
<?php
class Kwf_Controller_Action_User_LogoutController extends Kwf_Controller_Action
{
public function indexAction()
{
Kwf_Auth::getInstance()->clearIdentity();
setcookie('feAutologin', '', time() - 3600, '/', null, Kwf_Util_Https::supportsHttps(), true);
setcookie('hasFeAutologin', '',... |
#pragma warning disable 1587 // invalid XML comment
/// <summary>
/// Ignite cache LINQ provider.
/// </summary>
namespace Apache.Ignite.Linq
{
// No-op.
}
|