text stringlengths 3 1.05M |
|---|
:mod:`corpora.lowcorpus` -- Corpus in List-of-Words format
===========================================================
.. automodule:: gensim.corpora.lowcorpus
:synopsis: Corpus in List-of-Words format
:members:
:inherited-members:
|
//=======================================================================
// Copyright (c) 2014-2020 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//==================================================================... |
package checkpoint
import (
"encoding/json"
"k8s.io/kubernetes/pkg/kubelet/checkpointmanager"
"k8s.io/kubernetes/pkg/kubelet/checkpointmanager/checksum"
)
type DeviceManagerCheckpoint interface {
checkpointmanager.Checkpoint
GetData() ([]PodDevicesEntry, map[string][]string)
}
type PodDevicesEntry struct {
... |
id: maximum-number-of-jsx-root-nodes
title: Maximum Number of JSX Root Nodes
layout: tips
permalink: maximum-number-of-jsx-root-nodes.html
prev: self-closing-tag.html
next: style-props-value-px.html
---
Currently, in a component's `render`, you can only return one node; if you have, say, a list of `div`s to return, yo... |
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/android-navigationview-material-design.iml" filepath="$PROJECT_DIR$/android-navigationview-material-design.iml" />
<module fileurl="file://$PROJECT_DIR$/... |
package org.apache.sling.commons.messaging.mail.internal;
import java.util.Collections;
import java.util.Map;
import javax.annotation.Nonnull;
import org.apache.commons.mail.Email;
import org.apache.commons.mail.EmailException;
import org.apache.commons.mail.SimpleEmail;
import org.apache.sling.commons.messaging.ma... |
// Uses AMD or browser globals to create a jQuery plugin.
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else {
// Browser globals
factory(jQuery);
}
} (function (jQuery) {
var module = { e... |
package org.apache.hadoop.yarn.server.resourcemanager.volume.csi.event;
/**
* Volume events.
*/
public enum VolumeEventType {
VALIDATE_VOLUME_EVENT,
CREATE_VOLUME_EVENT,
CONTROLLER_PUBLISH_VOLUME_EVENT,
CONTROLLER_UNPUBLISH_VOLUME_EVENT,
DELETE_VOLUME
}
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>Thelia\Files | </title>
<link rel="stylesheet" type="text/css" href="../stylesheet.css">
</head>
<body id="overv... |
<?php
namespace Symfony\Bridge\Doctrine\Tests\Form\Type;
use Symfony\Bridge\Doctrine\Test\DoctrineTestHelper;
use Symfony\Component\Form\Test\TypeTestCase;
use Symfony\Bridge\Doctrine\Tests\Fixtures\GroupableEntity;
use Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIntIdEntity;
use Symfony\Bridge\Doctrine\Tests\Fixt... |
import asyncio
import collections
from typing import Callable
class Pool:
def __init__(self, factory: Callable, minsize: int = 1, maxsize: int = 10):
self.factory = factory
self.minsize = minsize
self.maxsize = maxsize
self._pool = collections.deque(maxlen=maxsize)
self._co... |
define("route-recognizer",
[],
function() {
"use strict";
var specials = [
'/', '.', '*', '+', '?', '|',
'(', ')', '[', ']', '{', '}', '\\'
];
var escapeRegex = new RegExp('(\\' + specials.join('|\\') + ')', 'g');
// A Segment represents a segment in the original route description.... |
.oo-ui-icon-logoCC {
background-image: url('themes/wikimediaui/images/icons/logo-cc.png');
background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/logo-cc.svg');
background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wi... |
<?php
namespace Detail\Mail\Factory\Message;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
use Detail\Mail\Message\MessageFactory;
class MessageFactoryFactory implements FactoryInterface
{
/**
* {@inheritDoc}
* @return MessageFactory
*/
public func... |
<html>
<head>
<script src="resources/cross-frame-access.js"></script>
<script>
var windowConstructorPropertiesNotAllowed = [
"Attr",
"Audio",
"CDATASection",
"CSSRule",
"CSSStyleDeclaration",
"CharacterData",
"Comme... |
package watch
import (
"fmt"
"log"
"os"
"path/filepath"
"time"
"github.com/masahide/tail/util"
"gopkg.in/fsnotify.v0"
"gopkg.in/tomb.v1"
)
const (
headerSize = 4 * 1024
logrotateTime = 24*time.Hour - 5*time.Minute
)
// InotifyFileWatcher uses inotify to monitor file changes.
type InotifyFileWatcher str... |
set -e
#Initialize gerrit if gerrit site dir is empty.
#This is necessary when gerrit site is in a volume.
if [ "$1" = '/var/gerrit/gerrit-start.sh' ]; then
if [ -z "$(ls -A "$GERRIT_SITE")" ]; then
echo "First time initialize gerrit..."
java -jar "${GERRIT_WAR}" init --batch --no-auto-start -d "${GERRIT_SITE... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Coq bench</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet... |
BlueButton.js helps developers parse and generate complex health data formats like C-CDA with ease, so you can empower patients with access to their health records. [Try the demo.](http://www.bluebuttonjs.com/sandbox/)
## Quick Start
BlueButton.js supports a few different health data types, like C32 and CCDA. To pars... |
require_lib 'reek/cli/silencer'
Reek::CLI::Silencer.silently do
require 'parser/ruby22'
end
require_relative '../spec_helper'
require_lib 'reek/tree_dresser'
RSpec.describe Reek::TreeDresser do
let(:dresser) { described_class.new }
let(:sexp) do
Parser::Ruby22.parse('class Klazz; def meth(argument); argumen... |
// 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.
using System.Collections.Generic;
using System.Security.Cryptography.Rsa.Tests;
using Test.IO.Streams;
using Xunit;... |
package org.drools.verifier.components;
import org.drools.compiler.lang.descr.BaseDescr;
public abstract class RuleComponent<D extends BaseDescr> extends PackageComponent<D>
implements
ChildComponent {
private String ruleName;
private VerifierComponentType parentType;
private St... |
using System;
using Novell.IceDesktop;
namespace Tasque.Backends.IceCore
{
public class IceCategory : ICategory
{
private Teamspace team;
private TaskFolder folder;
private string id;
public IceCategory(Teamspace iceTeam, TaskFolder iceFolder)
{
team = iceTeam;
folder = iceFolder;
// Constr... |
function init(){
var bootSimply = new BootSimply("LINKEDIN");
bootSimply.oauthFlow();
document.querySelector('#greeting').innerText = 'chrome-linkedin-oauth sample';
}
window.onload = init;
|
require 'test_helper'
class I18nTest < ActiveSupport::TestCase
def test_uses_authlogic_as_scope_by_default
assert_equal :authlogic, Authlogic::I18n.scope
end
def test_can_set_scope
assert_nothing_raised { Authlogic::I18n.scope = [:a, :b] }
assert_equal [:a, :b], Authlogic::I18n.scope
Authlogic... |
/*
* This code is loosely based on ppmtogif from the PBMPLUS distribution
* of Feb. 1991. That file contains the following copyright notice:
* Based on GIFENCODE by David Rowley <mgardi@watdscu.waterloo.edu>.
* Lempel-Ziv compression based on "compress" by Spencer W. Thomas et al.
* Copyright (C) 1989 ... |
<div>
Veel aspecten van een bouwpoging zijn tijdsafhankelijk. Daarom kan een afwijking van de systeemklok
tussen Jenkins en de slaafnodes, eigenaardige problemen veroorzaken.
Het valt te overwegen om te zorgen voor een synchronisatie van de systeemklokken via NTP.
</div>
|
using System;
using UnityEngine;
namespace UnityStandardAssets.Utility
{
public class TimedObjectDestructor : MonoBehaviour
{
[SerializeField] private float m_TimeOut = 1.0f;
[SerializeField] private bool m_DetachChildren = false;
private void Awake()
{
... |
import { HelpMenu } from '@jupyterlab/mainmenu';
import { CommandRegistry } from '@lumino/commands';
describe('@jupyterlab/mainmenu', () => {
describe('HelpMenu', () => {
let commands: CommandRegistry;
let menu: HelpMenu;
beforeAll(() => {
commands = new CommandRegistry();
});
beforeEach(... |
package org.elasticsearch.index.query.functionscore;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
import org.apache.lucene.document.TextField;
import org.apache.lucene.index.DirectoryReader;
import org.apache.lucene.... |
package org.lwjgl.util.generator;
/**
* Use this annotation on extensions with deprecated functionality.
* Functions in such extensions marked with this annotation will not be loaded in a forward compatible context.
*
* @author spasi <spasi@users.sourceforge.net>
*/
import java.lang.annotation.Element... |
"""Tests for the ipdoctest machinery itself.
Note: in a file named test_X, functions whose only test is their docstring (as
a doctest) and which have no test functionality of their own, should be called
'doctest_foo' instead of 'test_foo', otherwise they get double-counted (the
empty function call is counted as a test... |
using System;
using System.Security.Cryptography.X509Certificates;
namespace Internal.Cryptography.Pal
{
internal interface IStorePal : IDisposable
{
byte[] Export(X509ContentType contentType, string password);
void CopyTo(X509Certificate2Collection collection);
void Add(ICertificatePal... |
// This file contains style definitions that can be used by CKEditor plugins.
//
// The most common use for it is the "stylescombo" plugin, which shows a combo
// in the editor toolbar, containing all styles. Other plugins instead, like
// the div plugin, use a subset of the styles on their feature.
//
// If... |
<?php
require_once dirname(__FILE__) . '/../../../bootstrap.php';
class Elastica_Query_BoolTest extends PHPUnit_Framework_TestCase
{
public function testToArray()
{
$query = new Elastica_Query_Bool();
$idsQuery1 = new Elastica_Query_Ids();
$idsQuery1->setIds(1);
$idsQuery2 = n... |
<?php
/**
* Import WordPress Administration Screen
*
* @package WordPress
* @subpackage Administration
*/
define('WP_LOAD_IMPORTERS', true);
/** Load WordPress Bootstrap */
require_once( dirname( __FILE__ ) . '/admin.php' );
if ( !current_user_can('import') )
wp_die(__('You do not have sufficient permissions t... |
import { tryInvoke } from 'ember-metal/utils';
var obj;
QUnit.module("Ember.tryInvoke", {
setup: function() {
obj = {
aMethodThatExists: function() { return true; },
aMethodThatTakesArguments: function(arg1, arg2) { return arg1 === arg2; }
};
},
teardown: function() {
obj = undefined;
... |
package org.pentaho.di.trans.steps.csvinput;
import java.nio.charset.StandardCharsets;
import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.ClassRule;
import org.mockito.Matchers;
import org.mockito.Mockito;
import org.junit.BeforeClass;
import org.junit.Test;
import org.pentaho.di.core.exception... |
package ammonite.shell
import ammonite.ops._
/**
* Convenience entry-point useful to kick off a shell with
*/
object TestMain {
val examplePredef = "shell/src/main/resources/ammonite/shell/example-predef-bare.sc"
def main(args: Array[String]): Unit = {
System.setProperty("ammonite-sbt-build", "true")
amm... |
public class ATest extends LightCodeInsightFixtureTestCase {
public void testFixtureConfigureByFile() throws Exception {
doFileTest("before", "after");
}
private void doFileTest(@com.intellij.testFramework.TestDataFile String before,
@com.intellij.testFramework.TestDataFile String ... |
using System.Linq;
using System.Runtime.Versioning;
namespace DotNetApis.Nuget
{
/// <summary>
/// A normalized form of <see cref="FrameworkName"/>.
/// </summary>
public sealed class PlatformTarget
{
private readonly string _shortName;
public PlatformTarget(FrameworkName framewor... |
/**
* @private
*/
Ext.define('Ext.device.device.Sencha', {
extend: 'Ext.device.device.Abstract',
constructor: function() {
this.name = device.name;
this.uuid = device.uuid;
this.platform = device.platformName || Ext.os.name;
this.scheme = Ext.device.Communicator.send({
... |
/**
* @file
* Network buffer management
*
*/
/*
* Copyright (c) 2001-2004 Swedish Institute of Computer Science.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1.... |
<h1>External Content</h1>
<p>
The <a href="app_architecture.html#security">Chrome Apps security model</a> disallows
external content in iframes and
the use of inline scripting and <code>eval()</code>.
You can override these restrictions,
but your external content must be isolated from the app.
</p>
<p>
Isolated cont... |
<?php
class Twig_Node_Expression_Binary_FloorDiv extends Twig_Node_Expression_Binary
{
/**
* Compiles the node to PHP.
*
* @param Twig_Compiler $compiler A Twig_Compiler instance
*/
public function compile(Twig_Compiler $compiler)
{
$compiler->raw('intval(floor(');
pare... |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v12.0.2
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __prot... |
from boto.exception import BotoServerError
class InvalidDeploymentIdException(BotoServerError):
pass
class InvalidDeploymentGroupNameException(BotoServerError):
pass
class DeploymentConfigAlreadyExistsException(BotoServerError):
pass
class InvalidRoleException(BotoServerError):
pass
class Role... |
const test = require('tape');
const TheAwesomeBot = require('../TheAwesomeBot');
const token = process.env.DISCORD_TOKEN || require('../tokens.json').discord; // eslint-disable-line global-require
test('connect & disconnect', (t) => {
t.timeoutAfter(15000);
t.ok(token, 'discord token should be set');
const bot... |
#ifndef ERL_ASYNC_H__
#define ERL_ASYNC_H__
#define ERTS_MAX_NO_OF_ASYNC_THREADS 1024
extern int erts_async_max_threads;
#define ERTS_ASYNC_THREAD_MIN_STACK_SIZE 16 /* Kilo words */
#define ERTS_ASYNC_THREAD_MAX_STACK_SIZE 8192 /* Kilo words */
extern int erts_async_thread_suggested_stack_size;
#ifdef USE_THREADS
... |
namespace base {
// A simple thread abstraction that establishes a MessageLoop on a new thread.
// The consumer uses the MessageLoop of the thread to cause code to execute on
// the thread. When this object is destroyed the thread is terminated. All
// pending tasks queued on the thread's message loop will run to co... |
import smartbot.storage
class Storage(smartbot.storage.Storage):
def __init__(self):
self.data = {}
def get(self, key, default=None):
return self.data.get(key, default)
def setdefault(self, key, default=None):
if key not in self.data:
self[key] = default
retur... |
#include <aws/ecs/model/ListAttributesResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ECS::Model;
using namespace Aws::Utils::Json;
us... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace OpenSim.Region.Physics.Manager.Vehicle
{
/// <summary>
/// Enum containing all the lsl vehicle rotation parameters ( http://wiki.secondlife.com/wiki/LlSetVehicleType )
///
/// Please note if you update th... |
Setting Up the Browser
=======================
Protractor works with [Selenium WebDriver](http://docs.seleniumhq.org/docs/03_webdriver.jsp), a browser automation framework. Selenium WebDriver supports several browser implementations or [drivers](http://docs.seleniumhq.org/docs/03_webdriver.jsp#selenium-webdriver-s-dri... |
package org.apache.reef.io.network.impl;
import org.apache.reef.io.network.Message;
import org.apache.reef.wake.Identifier;
import java.net.SocketAddress;
import java.util.List;
/**
* NetworkConnectionServiceMessage implementation.
* This is a wrapper message of message type <T>.
*/
final class NetworkConnectio... |
declare class AppRate {
static locales:Locales;
static preferences:AppRatePreferences;
static init():AppRate;
static promptForRating(immediately?:boolean):AppRate;
static navigateToAppStore():AppRate;
}
declare class AppRatePreferences {
useLanguage:string;
displayAppName:string;
promptAgainForEachNewVersio... |
/* Includes ------------------------------------------------------------------*/
#if !defined(STM32L011xx) && !defined(STM32L021xx) && !defined (STM32L031xx) && !defined (STM32L041xx) && !defined (STM32L051xx) && !defined (STM32L061xx) && !defined (STM32L071xx) && !defined (STM32L081xx)
#include "stm32l0xx_hal.h"
#i... |
if(NOT WITH_PYTHON)
add_definitions(-DPADDLE_NO_PYTHON)
endif(NOT WITH_PYTHON)
if(WITH_DSO)
add_definitions(-DPADDLE_USE_DSO)
endif(WITH_DSO)
if(WITH_TESTING)
add_definitions(-DPADDLE_WITH_TESTING)
endif(WITH_TESTING)
if(NOT WITH_PROFILER)
add_definitions(-DPADDLE_DISABLE_PROFILER)
endif(NOT WITH_PRO... |
\documentclass[aspectratio=169]{beamer}
% because we need to claim weird things
\newtheorem{claim}{Claim}
\newtheorem{defn}{Definition}
%\newtheorem{lemma}{Lemma}
\newtheorem{thm}{Theorem}
\newtheorem{vita}{Vit\ae}
\newtheorem{qotd}{Quote of the Day}
\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage{listi... |
describe Fastlane do
describe Fastlane::FastFile do
before do
allow(FastlaneCore::FastlaneFolder).to receive(:path).and_return(nil)
@path = "./fastlane/spec/fixtures/actions/archive.rb"
@output_path_with_zip = "./fastlane/spec/fixtures/actions/archive_file.zip"
@output_path_without_zip = "... |
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WebsitePanel.Providers.Virtualization;
using WebsitePanel.WebPortal;
using WebsitePanel.EnterpriseServer;
using System.Text;
namespace WebsitePanel.Portal.VPS2012
{
public pa... |
/*************************************************
* Perl-Compatible Regular Expressions *
*************************************************/
/* PCRE is a library of functions to support regular expressions whose syntax
and semantics are as close as possible to those of the Perl 5 language.
... |
using System;
using System.Timers;
using Sensus.Context;
using Xamarin.Forms;
namespace Sensus.UI
{
public class ParticipationReportPage : ContentPage
{
public ParticipationReportPage(Protocol protocol, ParticipationRewardDatum participationRewardDatum, bool displayDatumQrCode)
{
Ti... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ 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... |
/*!
* Qoopido.js library v3.6.6, 2015-7-7
* https://github.com/dlueth/qoopido.js
* (c) 2015 Dirk Lueth
* Dual licensed under MIT and GPL
*/
!function(o){window.qoopido.register("support/css/boxshadow",o,["../../support"])}(function(o){"use strict";return o.support.addTest("/css/boxshadow",function(s){o.support.supports... |
// Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __I_SCENE_NODE_ANIMATOR_CAMERA_FPS_H_INCLUDED__
#define __I_SCENE_NODE_ANIMATOR_CAMERA_FPS_H_INCLUDED__
#include "ISceneNodeAnimator.... |
using System;
using System.Threading;
namespace SupaCharge.Core.ThreadingAbstractions {
public class ResultFuture<T> : IDisposable {
public void Dispose() {
Dispose(true);
GC.SuppressFinalize(this);
}
public void Set(T value) {
lock (mLock) {
mValue = value;
... |
namespace KelpNet
{
public class LinearShift : Scheduler
{
private Real[] ValueRange;
private int[] TimeRange;
private int t = 0;
LinearShift(Real[] valueRange, int[] timeRange, int lastEpoch = 0) : base(lastEpoch)
{
ValueRange = valueRange;
Time... |
<?php
namespace Monolog\Formatter;
class ScalarFormatterTest extends \PHPUnit_Framework_TestCase
{
public function setUp()
{
$this->formatter = new ScalarFormatter();
}
public function buildTrace(\Exception $e)
{
$data = array();
$trace = $e->getTrace();
foreach ($t... |
var wysihtml5 = {
version: "0.3.0",
// namespaces
commands: {},
dom: {},
quirks: {},
toolbar: {},
lang: {},
selection: {},
views: {},
INVISIBLE_SPACE: "\uFEFF",
EMPTY_FUNCTION: function() {},
ELEMENT_NODE: 1,
TEXT_NODE: 3,
BACKSPACE_KEY: 8,
E... |
<?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>
<groupId>org.deeplearning... |
package test
type typeForTest struct {
F map[string]string
}
|
"""Tests for Vizio config flow."""
import dataclasses
import pytest
import voluptuous as vol
from homeassistant import data_entry_flow
from homeassistant.components.media_player import MediaPlayerDeviceClass
from homeassistant.components.vizio.config_flow import _get_config_schema
from homeassistant.components.vizio.... |
/* Include margin and padding in the width calculation of input and textarea. */
input,
textarea {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
input[type="text"],
input[type="password"],
input[type="checkbox"],
input[type="color"],
input[type="date"],
input[type="datetime"... |
class ProjectsController < ApplicationController
prepend_before_filter :render_go_import, only: [:show]
skip_before_action :authenticate_user!, only: [:show]
before_action :project, except: [:new, :create]
before_action :repository, except: [:new, :create]
# Authorize
before_action :authorize_admin_project... |
module Azure::Network::Mgmt::V2016_12_01
module Models
#
# Parameters that define the VM to check security groups for.
#
class SecurityGroupViewParameters
include MsRestAzure
# @return [String] ID of the target VM.
attr_accessor :target_resource_id
#
# Mapper for Secu... |
<?php
namespace Steppie\Bundle\AppBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class SteppieAppBundle extends Bundle
{
}
|
var createWrapper = require('../internals/createWrapper'),
slice = require('../internals/slice');
/**
* Creates a function that, when called, invokes `func` with any additional
* `partial` arguments prepended to those provided to the new function. This
* method is similar to `_.bind` except it does **not** alt... |
// Conformance for emitting ES6
// @target: es6
// A parameter declaration may specify either an identifier or a binding pattern.
// The identifiers specified in parameter declarations and binding patterns
// in a parameter list must be unique within that parameter list.
// If the declaration includes a type ... |
module RuboCop
module Cop
module Style
# This cop checks for the presence of `method_missing` without also
# defining `respond_to_missing?` and falling back on `super`.
#
# @example
# #bad
# def method_missing(...)
# ...
# end
#
# #good
... |
var jsdoc = require('../../jsdoc');
module.exports = validateTypesInTags;
module.exports.scopes = ['file'];
module.exports.options = {
checkTypes: {allowedValues: [true, 'strictNativeCase', 'capitalizedNativeCase']}
};
var allowedTags = {
// common
typedef: true,
type: true,
param: true,
'retu... |
package alex.mojaki.boxes.test;
import alex.mojaki.boxes.BoxFamily;
import alex.mojaki.boxes.CommonBox;
public class ExposedCommonBox<T> extends CommonBox<T> {
public ExposedCommonBox(BoxFamily family) {
super(family);
}
public ExposedCommonBox(Class<?> clazz, String name) {
super(clazz,... |
#include <QMdiArea>
#include <QScrollBar>
#include <QLayout>
#include <QPainter>
#include <QGraphicsView>
#include <QGraphicsScene>
#include <QGraphicsRectItem>
#include <QTime>
#include <ossim/imaging/ossimScalarRemapper.h>
#include <ossim/imaging/ossimCacheTileSource.h>
#include <ossimGui/ImageWidget.h>
#include <oss... |
package demo.org.powermock.examples.tutorial.hellopower;
import org.junit.Test;
/**
* The purpose of this test is to get 100% coverage of the {@link HelloWorld}
* class without any code changes to that class. To achieve this you need learn
* how to mock static methods.
* <p>
* While doing this tutorial please r... |
<?xml version="1.0"?>
<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>
<artifactId>message</artifactId>
... |
<?php
$html = '
<h1>mPDF</h1>
<h2>Justification</h2>
<h4>Tables</h4>
<p>Text can be justified in table cells using in-line or stylesheet CSS. (Note that <p> tags are removed within cells along with any style definition or attributes.)</p>
<table class="bpmTopnTailC"><thead>
<tr class="headerrow"><th>Col/Row He... |
using System;
using System.Configuration;
using System.Dynamic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using NUnit.Framework;
using Salesforce.Common;
using Salesforce.Common.Models;
using Salesforce.Force.FunctionalTests.Models;
using WadeWegner.Salesforce.SOAPHelpers;
namespace Sal... |
package org.wso2.carbon.apimgt.impl.utils;
import org.apache.axis2.clustering.ClusteringCommand;
import org.apache.axis2.clustering.ClusteringFault;
import org.apache.axis2.clustering.ClusteringMessage;
import org.apache.axis2.context.ConfigurationContext;
import org.apache.commons.logging.Log;
import org.apache.com... |
FOUNDATION_EXPORT const NSString *kSBStagingResolverURL;
@interface SBTestCase : XCTestCase
@end |
/**
* helper function to output debugging data to the console
*
* @param {String} msg text to output
*/
function logit(msg) {
if (typeof (console) !== 'undefined') {
console.log((new Date()).getTime() + '-' + msg);
}
}
/**
* helper function to output test data to reporting window
*
* @param {String} msg t... |
The actions folder contains action scripts and metadata files. See [Actions](http://docs.stackstorm.com/actions.html)
and [Workflows](http://docs.stackstorm.com/workflows.html) for specifics on writing actions. Note that the lib sub-folder
is always available for access for an action script.
|
import { ISpecification, IConcreteEntity } from "@poseidon/core-models";
export abstract class Specification<T extends IConcreteEntity = IConcreteEntity>
implements ISpecification<T> {
abstract async eval(fact: T): Promise<boolean>;
constructor(
public discriminator: string,
publ... |
using Cake.Core;
using Cake.Core.Diagnostics;
using Cake.Core.Scripting;
namespace Cake.Scripting
{
/// <summary>
/// The script host used to execute Cake scripts.
/// </summary>
public sealed class BuildScriptHost : ScriptHost
{
private readonly ICakeReportPrinter _reportPrinter;
... |
// 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.
#include "transactiontablemodel.h"
#include "guiutil.h"
#include "transactionrecord.h"
#include "guiconstants.h"
#include "tr... |
var events = require("events");
var request = require("request");
var mocha = require("mocha");
var should = require("should");
var Trello = require("../index");
var Stream = require("stream");
var behavesLike = require("./trello-behaviors");
describe("Trello", function () {
describe("#constructor()", function () ... |
/*
Angular File Upload v0.3.3.1
https://github.com/nervgh/angular-file-upload
*/
(function(angular, factory) {
if (typeof define === 'function' && define.amd) {
define('angular-file-upload', ['angular'], function(angular) {
return factory(angular);
});
} else {
return facto... |
from django.template.defaultfilters import truncatechars_html
from django.test import SimpleTestCase
class FunctionTests(SimpleTestCase):
def test_truncate_zero(self):
self.assertEqual(truncatechars_html('<p>one <a href="#">two - three <br>four</a> five</p>', 0), '...')
def test_truncate(self):
... |
// mxj - A collection of map[string]interface{} and associated XML and JSON utilities.
// Copyright 2012-2014 Charles Banning. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file
/*
Marshal/Unmarshal XML to/from JSON and map[string]interface{} val... |
<?php
/* CAT:Labels */
/* pChart library inclusions */
include("../class/pData.class.php");
include("../class/pDraw.class.php");
include("../class/pImage.class.php");
include("../class/pBubble.class.php");
/* Create and populate the pData object */
$MyData = new pData();
$MyData->loadPalette("../p... |
#include "config.h"
#include "WKNetworkInfoManager.h"
#include "WKAPICast.h"
#include "WebNetworkInfoManagerProxy.h"
using namespace WebKit;
WKTypeID WKNetworkInfoManagerGetTypeID()
{
#if ENABLE(NETWORK_INFO)
return toAPI(WebNetworkInfoManagerProxy::APIType);
#else
return 0;
#endif
}
void WKNetworkInfoMan... |