text stringlengths 3 1.05M |
|---|
// ----------------------------------------------------------------------------------
//
// 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... |
import json
import logging
from bs4 import BeautifulSoup
from datafeeds.parser_base import ParserBase
class UsfirstMatchesParser(ParserBase):
@classmethod
def parse(self, html):
"""
Parse the table that contains match results.
"""
matches = []
soup = BeautifulSoup(htm... |
Twitter Bootstrap Wizard
============================
This Twitter Bootstrap plugin builds a wizard using a formatted tabbable structure. It allows to build a wizard functionality using buttons to go through the different wizard steps and using events allows to hook into each step individually.
##### Note
We will no... |
var lang_1 = require('angular2/src/core/facade/lang');
var exceptions_1 = require('angular2/src/core/facade/exceptions');
var http_utils_1 = require('./http_utils');
/**
* Creates `Response` instances from provided values.
*
* Though this object isn't
* usually instantiated by end-users, it is the primary object in... |
FROM balenalib/odroid-xu4-alpine:3.11-run
# Default to UTF-8 file.encoding
ENV LANG C.UTF-8
# add a simple script that can auto-detect the appropriate JAVA_HOME value
# based on whether the JDK or only the JRE is installed
RUN { \
echo '#!/bin/sh'; \
echo 'set -e'; \
echo; \
echo 'dirname "$(dirname "$(readli... |
&& !defined(BOOST_MPL_PREPROCESSING_MODE)
# define BOOST_MPL_PREPROCESSED_HEADER map10.hpp
# include <boost/mpl/map/aux_/include_preprocessed.hpp>
#else
# include <boost/preprocessor/iterate.hpp>
namespace boost { namespace mpl {
# define BOOST_PP_ITERATION_PARAMS_1 \
(3,(1, 10, <boost/mpl/map/aux_... |
package br.com.caelum.vraptor.serialization;
import br.com.caelum.vraptor.ioc.Container;
/**
* @author Lucas Cavalcanti, Cecilia Fernandes
* @since 3.0.2
*/
public interface Deserializers {
Deserializer deserializerFor(String contentType, Container container);
void register(Class<? extends Deserializer> type)... |
/*
* This file will not contain actual query processing code but instead only
* the code to
* a) Interact with external interfaces like REDIS etc.
* b) Parse JSON strings passed to populate the query structures
*/
#include "rapidjson/document.h"
#include "base/logging.h"
#include "query.h"
#include <boost/assi... |
define("dojox/charting/action2d/TouchZoomAndPan",["dojo/_base/lang","dojo/_base/declare","dojo/_base/event","dojo/_base/sniff","./ChartAction","../Element","dojox/gesture/tap","../plot2d/common"],function(_1,_2,_3,_4,_5,_6,_7,_8){
var _9=_2(_6,{constructor:function(_a){
},render:function(){
if(!this.isDirty()){
return;... |
**1.2.2 (current stable)**
- added `data-parsley-validate` W3C compliant support
- removeConstraint does not destroy anymore ParsleyField instance on last
error removal. It just reset UI (#259)
- fixed IE9 `null` attribute in `domApi` (#439)
- fixed IE `prop()` for checking required attribute (#447)
- al... |
Allows generation of multiple document based on DOCX template
## API Documentation
API documentation can be found on Apiary: http://docs.docgen.apiary.io/
## Requirements
PHP >= 5.4
MySQL
Composer
Libreoffice (for PDF support)
PHPUnit (for test only)
## Installation
1. Make sure you have both PHP and Composer in... |
import re
import sys
import threading
import pytest
import ray
from ray.exceptions import RayTaskError, RayActorError
"""This module tests stacktrace of Ray.
There are total 3 different stacktrace types in Ray.
1. Not nested task (including actor creation) or actor task failure.
2. Chained task + actor task failur... |
#ifndef __RADEON_PROGRAM_TEX_H_
#define __RADEON_PROGRAM_TEX_H_
#include "radeon_compiler.h"
#include "radeon_program.h"
int radeonTransformTEX(
struct radeon_compiler * c,
struct rc_instruction * inst,
void* data);
#endif /* __RADEON_PROGRAM_TEX_H_ */
|
package org.apache.hadoop.hbase.ipc;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import o... |
package model
import scala.slick.driver.H2Driver.simple._
object IssueId extends Table[(String, String, Int)]("ISSUE_ID") with IssueTemplate {
def * = userName ~ repositoryName ~ issueId
def byPrimaryKey(owner: String, repository: String) = byRepository(owner, repository)
}
object IssueOutline extends T... |
<?php
namespace Symfony\Component\Intl\ResourceBundle\Transformer;
use Symfony\Component\Filesystem\Filesystem;
/**
* @author Bernhard Schussek <bschussek@gmail.com>
*/
class StubbingContext implements StubbingContextInterface
{
/**
* @var string
*/
private $binaryDir;
/**
* @var stri... |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>The source code</title>
<link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../resources/prettify/prettify.js"></script>
</head>
<body onload="p... |
from .antlia import Antlia
|
require File.dirname(__FILE__) + "/../../spec_helper"
describe Radiant::Configuration do
before :each do
@configuration = Radiant::Configuration.new
end
it "should be a Rails configuration" do
@configuration.should be_kind_of(Rails::Configuration)
end
it "should have view_paths, extensions and ... |
CKEDITOR.plugins.setLang("print","vi",{toolbar:"In"}); |
<html>
<head>
<script src="../OLLoader.js"></script>
<script type="text/javascript">
var map, layer;
var layerType = 'Aerial';
var key = "AqTGBsziZHIJYYxgivLBf0hVdrAk9mWO5cQcb8Yux8sW5M8c8opEC2lZqKR1ZZXf";
var options = {
type: layerType,
key: key
};
function test_cons... |
//-----------------------------------------------------------------------
// <copyright file="ActorBase.Lifecycle.cs" company="Akka.NET Project">
// Copyright (C) 2009-2015 Typesafe Inc. <http://www.typesafe.com>
// Copyright (C) 2013-2015 Akka.NET project <https://github.com/akkadotnet/akka.net>
// </copyrigh... |
package com.google.common.collect;
import com.google.common.collect.Multisets.UnmodifiableMultiset;
import java.util.Collections;
import java.util.Comparator;
import java.util.SortedSet;
/**
* Implementation of {@link Multisets#unmodifiableSortedMultiset(SortedMultiset)}
* for GWT.
*
* @author Louis Wasserman... |
FormulaConflict = Struct.new(:name, :reason)
# Used to annotate formulae that duplicate macOS provided software
# or cause conflicts when linked in.
class KegOnlyReason
attr_reader :reason
def initialize(reason, explanation)
@reason = reason
@explanation = explanation
end
def valid?
case @reason
... |
package org.apache.camel.component.jms;
/**
* With the passthrough option
*
* @version
*/
public class JmsRouteWithPassThroughKeyFormatStrategyTest extends JmsRouteWithDefaultKeyFormatStrategyTest {
@Override
protected String getUri() {
return "activemq:queue:foo?jmsKeyFormatStrategy=passthrough... |
package generic
import (
"errors"
"testing"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/client-go/tools/cache"
)
func TestCachedHasSynced(t *testing.T) {
called := 0
result := false
cachedFunc := cachedHasSynced(func() bool {
called++
return result
})
if cachedFunc() ... |
@interface UITouch (KIFAdditions)
- (id)initInView:(UIView *)view;
- (id)initAtPoint:(CGPoint)point inView:(UIView *)view;
- (void)setLocationInWindow:(CGPoint)location;
- (void)setPhaseAndUpdateTimestamp:(UITouchPhase)phase;
@end
|
"""
Copyright (c) 2010 The Echo Nest. All rights reserved.
Created by Tyler Williams on 2010-04-25.
Global configuration variables for accessing the Echo Nest web API.
"""
import pkg_resources
try:
__version__ = pkg_resources.require("pyechonest")[0].version
except pkg_resources.DistributionNotFound:
__versi... |
using System;
using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
using Orchard.ContentManagement;
using Orchard.Core.Navigation.Models;
using Orchard.Core.Title.Models;
namespace Orchard.Core.Navigation.Services {
[UsedImplicitly]
public class MainMenuService : IMenuService {
... |
I am a <em>static HTML</em> file.
There should be {{braces}} here.
|
#!/usr/bin/env bash
wait_on_pids()
{
# Wait on the last processes
for job in $1
do
wait $job
if [ "$?" -ne 0 ]
then
TestsFailed=$(($TestsFailed+1))
fi
done
}
usage()
{
echo "Runs .NET CoreFX tests on FreeBSD, Linux or OSX"
echo "usage: run-test [options]"
echo
echo "Input... |
package com.amazonaws.services.medialive.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
* Placeholder documentation for ChannelSummary
*
* @see <a href="http://docs.aws.amazon.com/goto/WebA... |
//
// UIResponder+JKChain.m
// JKCategories (https://github.com/shaojiankui/JKCategories)
//
// Created by Jakey on 14/12/30.
// Copyright (c) 2014年 www.skyfox.org. All rights reserved.
//
#import "UIResponder+JKChain.h"
@implementation UIResponder (JKChain)
/**
* @brief 响应者链
*
* @return 响应者链
*/
- (NSStri... |
#include "CAStreamBasicDescription.h"
#include "CAMath.h"
#if !defined(__COREAUDIO_USE_FLAT_INCLUDES__)
#include <CoreFoundation/CFByteOrder.h>
#else
#include <CFByteOrder.h>
#endif
#pragma mark This file needs to compile on earlier versions of the OS, so please keep that in mind when editing it
char *CAStringFor... |
using CudaAlgorithmsLib = lib_cuda_algorithms::CudaAlgorithmsInterface; |
#pragma once
namespace SlimDX
{
namespace DirectSound
{
/// <summary>
/// Describes the capabilities of the capture device.
/// </summary>
/// <unmanaged>DSCCAPS</unmanaged>
public value class CaptureCapabilities : System::IEquatable<CaptureCapabilities>
{
internal:
CaptureCapabilitie... |
package org.apache.hadoop.io.file.tfile;
import java.io.IOException;
/**
*
* Byte arrays test case class using GZ compression codec, base class of none
* and LZO compression classes.
*
*/
public class TestTFileNoneCodecsJClassComparatorByteArrays extends TestTFileByteArrays {
/**
* Test non-compression... |
package org.apache.ignite.internal.visor.cache;
import org.apache.ignite.IgniteCache;
import org.apache.ignite.internal.processors.task.GridInternal;
import org.apache.ignite.internal.util.typedef.internal.S;
import org.apache.ignite.internal.visor.VisorJob;
import org.apache.ignite.internal.visor.VisorOneNodeTask;
... |
#if !defined(FUSION_SEQUENCE_VIEW_JOINT_VIEW_10022005_0610)
#define FUSION_SEQUENCE_VIEW_JOINT_VIEW_10022005_0610
#include <boost/fusion/support/config.hpp>
#include <boost/fusion/view/joint_view/joint_view.hpp>
#include <boost/fusion/view/joint_view/joint_view_iterator.hpp>
#endif
|
<!DOCTYPE html>
<html>
<head>
<title>Javascript Finite State Machine</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link href="demo/demo.css" media="screen, print" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="demo" class='green'>
<h1> Finite State Machi... |
using JetBrains.Annotations;
using Orchard.ContentManagement;
using Orchard.ContentManagement.Handlers;
using Orchard.Data;
using Orchard.Widgets.Models;
namespace Orchard.Widgets.Handlers {
[UsedImplicitly]
public class LayerPartHandler : ContentHandler {
public LayerPartHandler(IRepository<LayerPart... |
// AttributesImpl.java - default implementation of Attributes.
// http://www.saxproject.org
// Written by David Megginson
// NO WARRANTY! This class is in the public domain.
// $Id: AttributesImpl.java,v 1.9 2002/01/30 20:52:24 dbrownell Exp $
package org.xml.sax.helpers;
import org.xml.sax.Attributes;
/**
* Defa... |
from fabric.api import run, cd, prefix
def restart():
"""Restart the development env"""
with cd('/www/finepy'):
with prefix('source venv/bin/activate'):
run('sudo venv/bin/supervisorctl restart finepy')
def restart_local():
"""Restart the development env"""
with cd('/opt/www/finep... |
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
... |
/*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
... |
package com.intellij.openapi.vcs.history;
import com.intellij.util.TreeItem;
import java.util.List;
public interface HistoryAsTreeProvider {
List<TreeItem<VcsFileRevision>> createTreeOn(List<VcsFileRevision> allRevisions);
}
|
'use strict';
var gulp = require('gulp');
var gulpconfig = require('./gulp-config');
/**
* This function searches in the gulpconfig.taskpath-folder a '.js'-file named as the param
* given on function-call.
*
* @param taskname
* @param gulpDeps
* @returns A Method-Object with the params: gulp, gulpconfig and gulp... |
<!DOCTYPE html>
<html lang="en">
<!--
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... |
'use strict';
const log = require('npmlog');
const execa = require('execa');
const Bluebird = require('bluebird');
const util = require('util');
const EventEmitter = require('events').EventEmitter;
const spawnargs = require('spawn-args');
const extend = require('lodash.assignin');
const envWithLocalPath = require('./... |
package container
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"path"
"regexp"
"strconv"
"strings"
"time"
"github.com/Sirupsen/logrus"
"github.com/docker/docker/api/types/container"
networktypes "github.com/docker/docker/api/types/network"
"github.com/docker/docker/api/types/strslice"
"github.com/... |
using System;
using Com.Aspose.PDF.Api;
using Com.Aspose.PDF.Model;
using Com.Aspose.Storage.Api;
namespace Document
{
class SplitPdfFiles
{
public static void Run()
{
// ExStart:1
PdfApi pdfApi = new PdfApi(Common.APP_KEY, Common.APP_SID, Common.BASEPATH);
... |
/* @flow */
import { PropTypes, Component } from 'react';
import invariant from 'invariant';
import {
createRouteFromReactElement as _createRouteFromReactElement,
RouteTypes,
} from './RouteUtils';
import { defaultRouteReducer } from './ReducerUtils';
import { notImplemented, component } from './PropTypes';
type ... |
<?php defined('SYSPATH') OR die('No direct script access.');
class HTTP_Exception_413 extends Kohana_HTTP_Exception_413 {} |
package org.elasticsearch.index.query;
import com.google.common.collect.Lists;
import org.elasticsearch.common.xcontent.XContentBuilder;
import java.io.IOException;
import java.util.ArrayList;
/**
* A filter that matches documents matching boolean combinations of other filters.
*
*
*/
public class OrFilterBuil... |
NSString *ReporterMessageLevelToString(ReporterMessageLevel level) {
switch (level) {
case REPORTER_MESSAGE_DEBUG:
return @"Debug";
case REPORTER_MESSAGE_VERBOSE:
return @"Verbose";
case REPORTER_MESSAGE_INFO:
return @"Info";
case REPORTER_MESSAGE_WARNING:
return @"Warning";
... |
#ifndef ROCCOUNTERS_HPP_
#define ROCCOUNTERS_HPP_
#include "top.hpp"
#include "device/device.hpp"
#include "device/rocm/rocdevice.hpp"
#include "hsa/hsa_ven_amd_aqlprofile.h"
namespace roc {
class VirtualGPU;
class PerfCounterProfile;
//! Performance counter implementation on GPU
class PerfCounter : public device... |
import time
from coherence.extern.simple_plugin import Plugin
from coherence import log
import coherence.extern.louie as louie
from coherence.upnp.core.utils import getPage
from coherence.extern.et import parse_xml
from coherence.upnp.core import DIDLLite
from twisted.internet import defer, reactor
class Backend(l... |
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
import os
from pants.base.build_environment import get_buildroot
from pants.base.workunit import WorkUnitLabel
from pants.contrib.cpp.tasks.cpp_task import CppTask
... |
/**
* Module dependencies
*/
var nodeunit = require('../nodeunit'),
utils = require('../utils'),
fs = require('fs'),
path = require('path'),
async = require('../../deps/async'),
AssertionError = require('../assert').AssertionError,
child_process = require('child_process'),
ejs = require... |
Dummy::Application.routes.draw do
devise_for :users, :controllers => {:omniauth_callbacks => 'omniauth_callbacks'}
match 'dummy' => 'dummy#index'
# The priority is based upon order of creation:
# first created -> highest priority.
# Sample of regular route:
# match 'products/:id' => 'catalog#view'
# ... |
<?php
require_once dirname(__FILE__) . "/../vendor/autoload.php";
$application = new \Symfony\Component\Console\Application();
$application->add(new \ImageResizer\Console\ResizeToDimensionCommand());
$application->add(new \ImageResizer\Console\ResizeToWidthCommand());
$application->add(new \ImageResizer\Console\Resiz... |
include_recipe "yum::yum"
|
//=================================================================================================
//=================================================================================================
#ifndef _BLAZEMARK_ARMADILLO_INIT_MAT_H_
#define _BLAZEMARK_ARMADILLO_INIT_MAT_H_
//********************************... |
// Copyright (c) 2014 The Chromium Embedded Framework 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 org.cef.callback;
/**
* Class that manages custom scheme registrations.
*/
public interface CefSchemeRegistrar {
/*... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
package org.apache.camel.processor.jpa;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
import org.apache.camel.examples.SendEmail;
import org.apache.camel.spring.SpringRouteBuilder;
import org.junit.Test;
/**
* @version
*/
public class JpaPreConsumedTest extends... |
<!doctype html>
<html class="theme-next mist use-motion" lang="zh-Hans">
<head>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta http-equiv="Cache-Control" content="no-transform" />
<... |
package org.visallo.core.model.longRunningProcess;
import com.google.inject.Injector;
import org.json.JSONObject;
import org.mockito.Mock;
import org.vertexium.Authorizations;
import org.vertexium.Graph;
import org.vertexium.inmemory.InMemoryGraph;
import org.visallo.core.model.graph.GraphRepository;
import org.visall... |
var fs = require('fs'),
minimatch = require('minimatch'),
path = require('path'),
jshint = require('./../packages/jshint/jshint.js'),
_reporter = require('./reporters/default').reporter,
_cache = {
directories: {}
};
function _lint(file, results, config, data) {
var buffer,
... |
cask 'gameranger' do
version :latest
sha256 :no_check
url 'https://gameranger.com/download/GameRanger.dmg'
name 'GameRanger'
homepage 'https://gameranger.com/'
app 'GameRanger.app'
zap trash: [
'~/Library/Caches/com.gameranger.GameRanger',
'~/Library/Preferences/com.gamera... |
package org.cloudfoundry.community.servicebroker.vrealize.adapter;
import org.cloudfoundry.community.servicebroker.vrealize.persistance.VrServiceInstance;
import org.springframework.cloud.servicebroker.exception.ServiceBrokerException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
public... |
<!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.6.0_13) on Tue Jun 30 12:41:35 EDT 2009 -->
<TITLE>
Uses of Class org.apache.hadoop.mapred.JobClient (Hadoop 0.19.2 API)
</TITLE>
<META NAME="date" CONT... |
@import url("jquery.ui.core.css");
@import url("jquery.ui.datepicker.css"); |
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example - example-example82-debug</title>
<script src="../../../angular.js"></script>
</head>
<body ng-app="">
<input ng-paste="paste=true" ng-init="paste=false" placeholder='paste here'>
pasted: {{paste}}
</body>
</html> |
date: 2015-12-16T09:24:56-07:00
title: "hugo import"
slug: hugo_import
url: /commands/hugo_import/
---
## hugo import
Import your site from others.
### Synopsis
Import your site from other web site generators like Jekyll.
Import requires a subcommand, e.g. `hugo import jekyll jekyll_root_path target_path`.
### Op... |
package com.thoughtworks.go.matchers;
import java.io.File;
import java.io.IOException;
import java.util.List;
import com.thoughtworks.go.util.GoConstants;
import org.apache.commons.lang.StringUtils;
import org.hamcrest.Description;
import org.hamcrest.TypeSafeMatcher;
import static java.lang.String.format;
public... |
//sectionManager
var db = require('../db/db');
var manager = require('../managers/manager');
/**
*
* @param json
*
*/
exports.create = function(json, callback) {
var returnVal = {
success: false,
message: ""
};
var isOk = manager.securityCheck(json);
if (isOk) {
man... |
from django.contrib import admin
from .models import Story
admin.site.register(Story)
raise Exception("Bad admin module")
|
<!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 (1.8.0_25) on Tue Apr 28 18:49:25 EEST 2015 -->
<title>R.color</title>
<meta name="date" content="2015-04-28">
<link rel="stylesheet" type="text/css" ... |
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>distribution</id>
<fo... |
#pragma once
#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
names... |
<?php
/**
* Context specific methods for use in secure output escaping
*/
class Escaper
{
/**
* Entity Map mapping Unicode codepoints to any available named HTML entities.
*
* While HTML supports far more named entities, the lowest common denominator
* has become HTML5's XML Serialisation wh... |
/*jslint browser:true, node:true*/
/*global define, Event, Node*/
/**
* Instantiate fast-clicking listeners on the specificed layer.
*
* @constructor
* @param {Element} layer The layer to listen on
*/
function FastClick(layer) {
'use strict';
var oldOnClick;
/**
* Whether a click is currently being trac... |
exports.config = {
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: ['chrome/**/*.js', '../components/**/protractor/*.js']
};
|
class CommandPluginWithArgs : public MPxCommand {
public:
static double sparse;
CommandPluginWithArgs();
virtual ~CommandPluginWithArgs();
MStatus doIt(const MArgList& argList);
MStatus redoIt();
MStatus undoIt();
bool isUndoable() const;
static void* creator();
static MSyntax newSyntax();
MSt... |
<!---
Copyright 2018 The AMP HTML Authors. All Rights Reserved.
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 o... |
'use strict';
var fork = require('child_process').fork;
var test = require('tap').test;
test("parent listener", function (t) {
var server = require('net').createServer();
this.tearDown(function () {
server.close();
});
server.listen(8585, function () {
t.ok(server, "parent listening on port 8585");
... |
<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Identifier Index</title>
<link rel="stylesheet" href="epydoc.css" type="text/css" />
<scr... |
package com.thoughtworks.go.server.service.plugins.processor.pluginsettings;
import com.thoughtworks.go.domain.NullPlugin;
import com.thoughtworks.go.domain.Plugin;
import com.thoughtworks.go.plugin.api.request.GoApiRequest;
import com.thoughtworks.go.plugin.api.response.DefaultGoApiResponse;
import com.thoughtworks... |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v4.2.0
* @link http://www.ag-grid.com/
* @license MIT
*/
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : ... |
module.exports = { "default": require("core-js/library/fn/math/log1p"), __esModule: true }; |
"""Some primitive movement definitions"""
import Robot
def go_straight(speed=50, distance=0):
"""
Travel forwards or backwards in a straight line.
:param speed: Speed to travel, as % of maximum
:param distance: Distance to travel, in millimetres. +ve for forwards, -ve for backwards
:return: 0 for ... |
from __future__ import absolute_import, division, print_function
from requests.auth import AuthBase
from six.moves import urllib_parse
from fastly.constants import API_DOMAIN
__all__ = ["KeyAuth"]
class KeyAuth(AuthBase):
def __init__(self, key):
self.key = key
def __call__(self, request):
... |
require('../../modules/es6.string.iterator');
require('../../modules/web.dom.iterable');
module.exports = require('../../modules/_wks-ext').f('iterator'); |
//<editor-fold desc="static scroll utils">
import {DragImageTranslateOverrideFn, Point} from "./index";
interface ScrollIntentions {
horizontal: ScrollIntention;
vertical: ScrollIntention;
}
interface IScrollBounds {
x: number;
y: number;
width: number;
height: number;
scrollX: number;
... |
from django.conf.urls import include, url
from django.conf.urls.i18n import i18n_patterns
from django.utils.translation import ugettext_lazy as _
urlpatterns = i18n_patterns(
url(_(r'^account/'), include('i18n.patterns.urls.wrong_namespace', namespace='account')),
)
|
require File.expand_path('../../../spec_helper', __FILE__)
require 'matrix'
describe "Matrix#column_vectors" do
before :each do
@vectors = Matrix[ [1,2], [3,4] ].column_vectors
end
it "returns an Array" do
Matrix[ [1,2], [3,4] ].column_vectors.should be_an_instance_of(Array)
end
it "returns an Arr... |
"""Various TensorFlow Ops."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# pylint: disable=wildcard-import
from tensorflow.contrib.learn.python.learn.ops.embeddings_ops import *
from tensorflow.contrib.learn.python.learn.ops.losses_ops import *
from te... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package mr_kitten;
/**
*
* @author Arya
*/
import java.util.*;
/**
* Class Room - a room in an adventure game.
... |