text stringlengths 3 1.05M |
|---|
if !defined?( BlueCloth ) || !defined?( BlueCloth::TestCase )
basedir = File::dirname( __FILE__ )
require File::join( basedir, 'bctestcase' )
end
### This test case tests ...
class SubfunctionsTestCase < BlueCloth::TestCase
### Test email address output
Emails = %w[
address@example.com
foo-list-admin@bar.com... |
<div class="validationErrorsComponent">
<div *ngIf="validationErrorMessages && validationErrorMessages.length">
<h4>Validation Messages:</h4>
<ul>
<li *ngFor="let validationErrorMessage of validationErrorMessages">{{ validationErrorMessage }}</li>
</ul>
</div>
</div>
|
package test
type typeForTest map[int8]string
|
function model = mlpFit(X, y, varargin)
% Multi-layer perceptron for classification and regression
%% INPUTS: (specified as name value pairs)
% nHidden ... Number of hidden units. Can be a vector.
% regType ... 'L1' or 'L2' or 'none'
% nclasses ... the number of output classes
% lambda ... regul... |
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2016 The Android Open Source Project
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/li... |
FROM node:5
MAINTAINER Andrew Heuermann
RUN apt-get update &&\
apt-get install -y libgtk2.0-0 libgconf-2-4 \
libasound2 libxtst6 libxss1 libnss3 xvfb
|
using System;
using System.Collections.Generic;
using System.Linq;
using Hyak.Common;
using Microsoft.Azure;
using Microsoft.AzureStack.Management.Models;
namespace Microsoft.AzureStack.Management.Models
{
/// <summary>
/// Your documentation here.
/// </summary>
public partial class ManagedSubscriptio... |
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProp... |
var test = require('tape')
var through = require('../')
// must emit end before close.
test('buffering', function(assert) {
var ts = through(function (data) {
this.queue(data)
}, function () {
this.queue(null)
})
var ended = false, actual = []
ts.on('data', actual.push.bind(actual))
ts.on('end'... |
Codo is a [CoffeeScript](http://coffeescript.org/) API documentation generator, similar to [YARD](http://yardoc.org/).
Its generated documentation is focused on CoffeeScript class syntax for classical inheritance.
## Features
* Detects classes, methods, constants, mixins & concerns.
* Many tags to add semantics to yo... |
package fsnotify
import "fmt"
const (
FSN_CREATE = 1
FSN_MODIFY = 2
FSN_DELETE = 4
FSN_RENAME = 8
FSN_ALL = FSN_MODIFY | FSN_DELETE | FSN_RENAME | FSN_CREATE
)
// Purge events from interal chan to external chan if passes filter
func (w *Watcher) purgeEvents() {
for ev := range w.internalEvent {
sendEvent :=... |
<?php
namespace TestBundle\FooBundle\Controller\Test;
/**
* DefaultController.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class DefaultController
{
}
|
var each = require("./");
var arr = ["first", "second", "third"];
var obj = {a:"first", b:"second", c:"third"};
var iterator = function(value,key){
console.log({value:value, key:key});
if ( value === "second" ) {
console.log("break");
return false;
}
};
// Cycle Array
each(arr, iterator);
// {"value":"first", ... |
package org.hisp.dhis.common;
/**
* @author Lars Helge Overland
*/
public enum QueryOperator
{
EQ( "=" ), GT( ">" ), GE( ">=" ), LT( "<" ), LE( "<=" ), NE( "!=" ), LIKE( "like" ), IN( "in" );
private final String value;
QueryOperator( String value )
{
this.value = value;
}
public... |
#ifndef _list_h_
#define _list_h_
/**
@file include/my_list.h
*/
typedef struct LIST {
#if defined(__cplusplus) && __cplusplus >= 201103L
struct LIST *prev{nullptr}, *next{nullptr};
void *data{nullptr};
#else
struct LIST *prev, *next;
void *data;
#endif
} LIST;
typedef int (*list_walk_action)(void *, voi... |
<?php
final class ArcanistUnitConsoleRenderer extends ArcanistUnitRenderer {
public function renderUnitResult(ArcanistUnitTestResult $result) {
$result_code = $result->getResult();
$duration = '';
if ($result_code == ArcanistUnitTestResult::RESULT_PASS) {
$duration = ' '.$this->formatTestDuration... |
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Reserved Names — CodeIgniter 3.0-dev docume... |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="lang:clipboard.copy" content="Copy to clipboard">
<meta name="lang... |
/*!
* Motio 2.2.1 - 18th Apr 2013
* https://github.com/Darsain/motio
*
* Licensed under the MIT license.
* http://opensource.org/licenses/MIT
*/
;(function(w, undefined){
'use strict';
var className = 'Motio';
// Local WindowAnimationTiming interface polyfill
var cAF = w.cancelAnimationFrame || w.cancelReq... |
package ru.stqa.pft.addressbook.model;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamOmitField;
@XStreamAlias("group")
public class GroupData {
@XStreamOmitField
private int id = Integer.MAX_VALUE;
private String name;
private String heade... |
<?php
class PHPCS_Sniffs_Whitespace_ConcatenationSpacingSniff implements PHP_CodeSniffer_Sniff
{
public function register()
{
return array(T_STRING_CONCAT);
}
public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
{
$tokens = $phpcsFile->getTokens();
if ($token... |
using System;
using System.Linq;
using System.Text;
using System.ComponentModel;
using DevExpress.ExpressApp;
using DevExpress.ExpressApp.DC;
using System.Collections.Generic;
using DevExpress.ExpressApp.Model;
using DevExpress.ExpressApp.Editors;
using DevExpress.ExpressApp.Actions;
using DevExpress.ExpressApp.Updatin... |
package org.apache.camel.builder.component.dsl;
import javax.annotation.Generated;
import org.apache.camel.Component;
import org.apache.camel.builder.component.AbstractComponentBuilder;
import org.apache.camel.builder.component.ComponentBuilder;
import org.apache.camel.component.platform.http.PlatformHttpComponent;
... |
class HttpResource(object):
pass
|
title: Img Src Attribute
localeTitle: Atributo Img Src
---
## Atributo Img Src
El atributo `<img src>` refiere a la fuente de la imagen que desea mostrar. La etiqueta `img` no mostrará una imagen sin el atributo `src` . Sin embargo, si configura la fuente en la ubicación de la imagen, puede mostrar cualquier imagen.
... |
package images
import (
"fmt"
"runtime"
"k8s.io/kubernetes/cmd/kubeadm/app/constants"
kubeadmutil "k8s.io/kubernetes/cmd/kubeadm/app/util"
)
// GetCoreImage generates and returns the image for the core Kubernetes components or returns overrideImage if specified
func GetCoreImage(image, repoPrefix, k8sVersion, ... |
object Test {
def main(args: Array[String]): Unit = {
import collection.mutable.LinkedList
val l = new LinkedList[Int]() ++ (0 until 10000)
assert(l.length == 10000)
}
}
|
import collections
import yaml
from ansible.constants import DEFAULTS, get_config, load_config_file
import ansible.errors as errors
import ansible.inventory as inventory
import ansible.utils as utils
def deep_update_dict(d, u):
for k, v in u.iteritems():
if isinstance(v, collections.Mapping):
... |
> [Strip redundant indentation](https://github.com/sindresorhus/strip-indent) and [indent the string](https://github.com/sindresorhus/indent-string)
## Install
```
$ npm install --save redent
```
## Usage
```js
const redent = require('redent');
redent('\n foo\n bar\n', 1);
//=> '\n foo\n bar\n'
```
## AP... |
package org.apache.camel.management.event;
import java.util.EventObject;
import org.apache.camel.CamelContext;
import org.apache.camel.DelegateProcessor;
import org.apache.camel.Endpoint;
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.apache.camel.Route;
import org.apache.camel.spi.E... |
namespace chrono {
namespace vehicle {
// -----------------------------------------------------------------------------
// Get the complete state for the specified track shoe.
// -----------------------------------------------------------------------------
BodyState ChTrackAssembly::GetTrackShoeState(size_t id) const ... |
<!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_22) on Wed Sep 14 22:21:32 CEST 2011 -->
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<TITLE>
net.sourceforge.pmd.util.vi... |
Let's say that you have some kind of complicated document type that represents the single source of truth for that
information within your system, but you frequently need to fetch only a subset of that document. In that
particular case you can opt into Marten's (limited) support for [structural typing](https://en.wikip... |
<h2><span class="pref">grid.events.</span>remoteloaded</h2>
<p>Fired when a remote data source has finished fetching, processing and rendering data.</p>
<h5>Parameters</h5>
<blockquote>
<p><code class="pill strong">event</code> <code class="pill green">(object)</code> - Javascript event object</p>
<p><code class="... |
"""Script for testing ganeti.hypervisor.hv_xen"""
import string # pylint: disable=W0402
import unittest
import tempfile
import shutil
import random
import os
import mock
from ganeti import constants
from ganeti import objects
from ganeti import pathutils
from ganeti import hypervisor
from ganeti import utils
from gan... |
/*************************************************/
/* default_theme.cpp */
/*************************************************/
/* This file is part of: */
/* GODOT ENGINE */
/*************************************************/
/* ... |
// scoped_enum.hpp ---------------------------------------------------------//
// Copyright Beman Dawes, 2009
// Copyright (C) 2011-2012 Vicente J. Botet Escriba
// Copyright (C) 2012 Anthony Williams
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
#if... |
{% extends "results/finder/_item.html" %}
{% block columns %}
<span class="title" title="{{ object.version }}" data-product="{{ object.product }}" data-order="{{ object.order }}">{{ object.version }}</span>
{% endblock %}
|
module Opendata::Resource::Previewable
extend ActiveSupport::Concern
include Opendata::TsvParseable
include Opendata::PdfParseable
included do
field :map_resources, type: Array, default: []
before_save :save_map_resources
end
private
def save_map_resources
self.map_resources = []
retur... |
<?php
/**
* MIME Message Signer used to apply S/MIME Signature/Encryption to a message.
*
*
* @author Romain-Geissler
* @author Sebastiaan Stok <s.stok@rollerscapes.net>
*/
class Swift_Signers_SMimeSigner implements Swift_Signers_BodySigner
{
protected $signCertificate;
protected $signPrivateKey;
p... |
/* */
define(['exports'], function (exports) {
'use strict';
exports.__esModule = true;
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
var BrowserMutationObserver = window.MutationObserver || window.We... |
<?php
/**
* PHPMailer - PHP email creation and transport class.
* @package PHPMailer
* @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
* @author Jim Jagielski (jimjag) <jimjag@gmail.com>
* @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net>
* @author Brent R. Matzell... |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Immutable;
using Microsoft.CodeAnalysis.CSharp.Symbols;
using Microsoft.CodeAnalysis.Emit;
using System;
using System.Collections.Ge... |
;(function() {
/** Used as a safe reference for `undefined` in pre-ES5 environments. */
var undefined;
/** Used as the semantic version number. */
var VERSION = '4.2.1';
/** Used to compose bitmasks for wrapper metadata. */
var BIND_FLAG = 1,
BIND_KEY_FLAG = 2,
CURRY_BOUND_FLAG = 4,
CU... |
package com.intellij.uiDesigner;
import com.intellij.codeHighlighting.HighlightDisplayLevel;
import com.intellij.codeInsight.daemon.impl.SeverityRegistrar;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.extensions.Extensions;
import com.intellij.openapi.module.Module;
import com.intellij.o... |
// +build linux
package rlimit
import (
"syscall"
)
func RlimitNumFiles(maxOpenFiles uint64) {
syscall.Setrlimit(syscall.RLIMIT_NOFILE, &syscall.Rlimit{Max: maxOpenFiles, Cur: maxOpenFiles})
}
|
/**
* Created by cghislai on 07/08/15.
*/
import {Component, View, EventEmitter, NgIf, Attribute} from 'angular2/angular2';
@Component({
selector: 'dialogview',
properties: ['modal', 'closable', 'title'],
events: ['close']
})
@View({
templateUrl: './components/utils/dialog/dialog.html',
styleUrls... |
define(['views/views-loader'], function(viewsLoader) {
function init() {
return viewsLoader.loadView('home')
.then(function (responseHTML) {
var model = {
title: 'Welcome to our recipes site',
content: 'Give us your comments (or money)',
... |
/**************************************************************************
* jquery.themepunch.revolution.js - jQuery Plugin for Revolution Slider
* @version: 4.6.4 (26.11.2014)
* @requires jQuery v1.7 or later (tested on 1.9)
* @author ThemePunch
*******************************************************************... |
package org.docksidestage.dbflute.exentity;
import org.docksidestage.dbflute.bsentity.BsPurchasePayment;
/**
* The entity of purchase_payment.
* <p>
* You can implement your original methods here.
* This class remains when re-generating.
* </p>
* @author DBFlute(AutoGenerator)
*/
public class PurchasePayment ... |
#include <stddef.h>
#include "us_ticker_api.h"
#include "PeripheralNames.h"
//New, using MRT instead of SCT, needed to free up SCT for PWM
//Ported from LPC824 libs
static int us_ticker_inited = 0;
static int us_ticker_interrupt_inited = 0;
unsigned int ticker_fullcount_us;
unsigned long int ticker_expired_count_us =... |
function euv_img_cal = calibrate_euv_image(euv_img, euv_img_datenum)
% euv_cal = calibrate_euv_image(euv_img, euv_img_datenum)
% Return calibrated EUV image from uncalibrated image
% Formulas from personal correspondence with M. Spasojevic, May 2008
% By Daniel Golden (dgolden1 at stanford dot edu) May 2008
% $Id$
pe... |
import { Alert } from 'react-native';
export default function prompt(title, message, callbackOrButtons, options) {
Alert.prompt(title, message, callbackOrButtons, options.type, options.defaultValue, options.keyboardType);
}
|
package common
import (
"strings"
"time"
"github.com/golang/glog"
. "github.com/onsi/ginkgo"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/kubernetes/pkg/api/v1"
"k8s.io/kubernetes/test/e2e/framework"
)
const (
etcHostsImageName = "gcr.io/google_containers/netexec:1.7"
etcHostsPodName ... |
module AI
{
"use strict";
export class AjaxCallData extends AI.PageViewData
{
public ver: number;
public url: string;
public ajaxUrl: string;
public name: string;
public duration: string;
public requestSize: number;
public responseSize: number;
pub... |
package main
import (
"fmt"
"os/exec"
"runtime"
"strings"
"unicode"
"github.com/docker/docker/pkg/homedir"
"github.com/docker/docker/pkg/integration/checker"
"github.com/go-check/check"
)
func (s *DockerSuite) TestHelpTextVerify(c *check.C) {
testRequires(c, DaemonIsLinux)
// Make sure main help text fits... |
#include "tensorflow/compiler/xla/service/while_loop_concat_code_motion.h"
#include <map>
#include <vector>
#include "absl/algorithm/container.h"
#include "absl/container/flat_hash_map.h"
#include "absl/container/flat_hash_set.h"
#include "absl/types/optional.h"
#include "absl/types/span.h"
#include "tensorflow/com... |
<!doctype html>
<html lang="en">
<head>
<link href="../../../../static/css/course.28f76.css" rel="stylesheet">
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l... |
<?xml version="1.0" encoding="UTF-8"?>
<ti:module xmlns:ti="http://ti.appcelerator.org" xmlns:android="http://schemas.android.com/apk/res/android">
<!--
Similar to tiapp.xml, but contains module/platform specific
configuration in <iphone>, <android>, and <mobileweb> sections
-->
<iphone>
</iphone>
<android xml... |
module.exports = function(arg) {
var muReqClass = require('./index.js');
return new muReqClass(arg);
}
|
package com.example.android.waitlist;
import android.content.Context;
import android.database.Cursor;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.example.android.waitlist.data.Wai... |
require 'oauth2'
require 'http_accept_language'
class Garage::Docs::ResourcesController < Garage::ApplicationController
layout 'garage/application'
before_filter :require_authentication
before_filter :require_docs_application
before_filter :require_console_application
before_filter :set_locale
before_filt... |
<?php
namespace Codeception\Util;
class HttpCodeTest extends \Codeception\Test\Unit
{
public function testHttpCodeConstants()
{
$this->assertEquals(200, HttpCode::OK);
$this->assertEquals(404, HttpCode::NOT_FOUND);
}
public function testHttpCodeWithDescription()
{
$this->as... |
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../../../shared/file/setgid', __FILE__)
describe "FileTest.setgid?" do
it_behaves_like :file_setgid, :setgid?, FileTest
end
describe "FileTest.setgid?" do
it "needs to be reviewed for spec completeness"
end
|
/*!
{
"name": "Notification",
"property": "notification",
"caniuse": "notifications",
"authors": ["Theodoor van Donge", "Hendrik Beskow"],
"notes": [{
"name": "HTML5 Rocks tutorial",
"href": "http://www.html5rocks.com/en/tutorials/notifications/quick/"
},{
"name": "W3C spec",
"href": "www.w3... |
"use strict";
function bytes(input) {
if (typeof input === "number") {
return input;
} else if (typeof input !== "string") {
return null;
}
let unit = 1;
if (input.toLowerCase().includes("kb")) {
unit = 1024;
} else if (input.toLowerCase().includes("mb")) {
unit = 1024 ** 2;
} else if (i... |
package org.apache.sis.referencing.operation.builder;
import java.util.Map;
import java.util.HashMap;
import java.util.Random;
import java.awt.geom.AffineTransform;
import org.opengis.util.FactoryException;
import org.opengis.referencing.operation.Matrix;
import org.apache.sis.geometry.DirectPosition1D;
import org.ap... |
pbwatcher
=========
An iOS command line utility to watch changes to UIPasteboards
Requires http://www.iosopendev.com/ to compile. Tested with iOS 6 and 7!
A pre-compiled binary is in the `bin` directory.
|
var CordovaFacebook = (function() {
var SERVICE = "CordovaFacebook";
var EVENT = "event";
var PURCHASE = "purchase";
var LOGIN = "login";
var LOGOUT = "logout";
var PROFILE = "profile";
var GRAPH_REQUEST = "graphRequest";
var eventsSent = 0;
var exec = function() { cordova.exec.app... |
package org.apache.flink.streaming.api.invokable.operator.co;
import java.util.HashMap;
import java.util.Map;
import org.apache.flink.streaming.api.function.co.CoReduceFunction;
import org.apache.flink.streaming.api.invokable.util.TimeStamp;
import org.apache.flink.streaming.api.streamrecord.StreamRecord;
public c... |
import '@angular/platform-browser';
import '@angular/platform-browser-dynamic';
import '@angular/core';
import '@angular/common';
import '@angular/forms';
import '@angular/router';
import '@angular/http';
import 'rxjs';
import 'bootstrap/dist/js/bootstrap';
|
module Gem
module Deprecate
def self.skip # :nodoc:
@skip ||= false
end
def self.skip= v # :nodoc:
@skip = v
end
##
# Temporarily turn off warnings. Intended for tests only.
def skip_during
Gem::Deprecate.skip, original = true, Gem::Deprecate.skip
yield
ensu... |
import subprocess
import os
import os.path
import time
import traceback
import sys
import glob
import logging
import setup_util
from benchmark.utils import gather_tests
class Installer:
############################################################
# install_software
#############################################... |
#include "config.h"
#include "InjectedBundle.h"
#include "WKBundleAPICast.h"
#include "WKBundleInitialize.h"
#include <WebCore/NotImplemented.h>
using namespace WebCore;
namespace WebKit {
bool InjectedBundle::load(APIObject*)
{
return false;
}
void InjectedBundle::activateMacFontAscentHack()
{
notImplem... |
// Type definitions for Bootstrap 3 Datepicker 4.17
// Project: http://eonasdan.github.io/bootstrap-datetimepicker
// Definitions by: Katona Péter <https://github.com/katonap>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
// based on the previous version created by Jesica... |
package paulfife.javameetup.cassandra;
import java.text.DateFormat;
import java.util.Date;
import java.util.Iterator;
import java.util.UUID;
import java.util.stream.Collectors;
import com.datastax.driver.core.ResultSet;
import com.datastax.driver.core.Row;
import com.datastax.driver.core.Session;
import com.datastax.... |
/*
* # Semantic - Site
* http://github.com/semantic-org/semantic-ui/
*
*
* Copyright 2014 Contributor
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
;(function ( $, window, document, undefined ) {
$.site = $.fn.site = function(parameters) {
var
time = new Date().g... |
@interface ViewController ()
@property (nonatomic, strong) SJJSONTableView *tableView;
@property (nonatomic, strong) NSArray *items;
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
self.title = @... |
/*
* Author: Scott Goodrow
* http://www.thewildeternal.com/2015/08/31/devlog-force-component-order/
* Modified by Soullesswaffle (L77, L96)
*/
using UnityEngine;
using UnityEditor;
using System.Linq;
using System.Collections.Generic;
[InitializeOnLoad]
public static class ForceComponentOrder
{
#region Private... |
import unittest
if __name__ == '__main__':
unittest.main()
|
package org.kaaproject.kaa.server.node.service.config;
/**
* The Class KaaNodeServerConfig.
*/
public class KaaNodeServerConfig {
/** Enable control server parameter. */
private boolean controlServerEnabled;
/** Enable bootstrap server parameter. */
private boolean bootstrapServerEnabled;
... |
IC CALifeMonsterBrain::object_type &CALifeMonsterBrain::object () const
{
VERIFY (m_object);
return (*m_object);
}
IC CALifeMonsterBrain::movement_manager_type &CALifeMonsterBrain::movement () const
{
VERIFY (m_movement_manager);
return (*m_movement_manager);
}
|
Clazz.declarePackage ("JU");
Clazz.load (["java.io.IOException"], "JU.GZIPException", null, function () {
c$ = Clazz.declareType (JU, "GZIPException", java.io.IOException);
});
|
import * as assert from 'assert'
import * as mocha from 'mocha'
import * as datatype from 'oma/datatype'
const { parseDefinitions, parseType } = datatype
import Typespace from 'oma/data/typespace'
describe('typespace with definitions', function () {
const typespace = new Typespace(parseDefinitions({
Any: '?*'... |
"""Accesses the google.iam.credentials.v1 IAMCredentials API."""
import pkg_resources
import warnings
from google.oauth2 import service_account
import google.api_core.client_options
import google.api_core.gapic_v1.client_info
import google.api_core.gapic_v1.config
import google.api_core.gapic_v1.method
import google.... |
package org.apache.metron.enrichment.parallel;
import com.github.benmanes.caffeine.cache.Cache;
import com.github.benmanes.caffeine.cache.Caffeine;
import org.apache.metron.enrichment.cache.CacheKey;
import org.json.simple.JSONObject;
import org.slf4j.Logger;
import java.util.EnumMap;
import java.util.concurrent.Exe... |
package com.borax12.materialdaterangepicker;
import android.content.Context;
import android.util.AttributeSet;
import android.view.accessibility.AccessibilityEvent;
import android.view.accessibility.AccessibilityNodeInfo;
import android.widget.Button;
import android.widget.LinearLayout;
/**
* Fake Button class, us... |
<?php
/**
* Implements the OpenID attribute exchange specification, version 1.0
* as of svn revision 370 from openid.net svn.
*
* @package OpenID
*/
/**
* Require utility classes and functions for the consumer.
*/
require_once "Auth/OpenID/Extension.php";
require_once "Auth/OpenID/Message.php";
require_once "A... |
package openstack
import (
"os"
"testing"
"time"
"github.com/gophercloud/gophercloud"
"github.com/gophercloud/gophercloud/openstack"
)
func TestAuthenticatedClient(t *testing.T) {
// Obtain credentials from the environment.
ao, err := openstack.AuthOptionsFromEnv()
if err != nil {
t.Fatalf("Unable to acqui... |
namespace OctoTorrent.Client
{
using System;
using System.Text;
using System.IO;
using Microsoft.Win32.SafeHandles;
using System.Runtime.InteropServices;
internal static class SparseFile
{
[StructLayout(LayoutKind.Sequential)]
struct FILE_ZERO_DATA_INFORMATION
{
... |
using std::string;
namespace net {
MockCryptoClientStreamFactory::MockCryptoClientStreamFactory()
: handshake_mode_(MockCryptoClientStream::CONFIRM_HANDSHAKE),
last_stream_(NULL) {
}
QuicCryptoClientStream*
MockCryptoClientStreamFactory::CreateQuicCryptoClientStream(
const string& server_hostname,
... |
#ifndef Expat_External_INCLUDED
#define Expat_External_INCLUDED 1
/* External API definitions */
#if defined(_MSC_EXTENSIONS) && !defined(__BEOS__) && !defined(__CYGWIN__)
#define XML_USE_MSC_EXTENSIONS 1
#endif
/* Expat tries very hard to make the API boundary very specifically
defined. There are two macros d... |
package com.intellij.ide.hierarchy;
import com.intellij.icons.AllIcons;
import com.intellij.ide.IdeBundle;
import com.intellij.openapi.actionSystem.*;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.ui.MultiLineLabelUI;
import com.i... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication_Acme_Soap
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThrea... |
<?php
namespace spec\Phpro\SoapClient\Event\Subscriber;
use Phpro\SoapClient\Event\Subscriber\LogSubscriber;
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
use Psr\Log\LoggerInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class LogSubscriberSpec extends ObjectBehavior
{
function le... |
package nineChap6_LL;
import misc.ListNode;
/**
* Remove the N-th node from the end.
* Using slow/fast pointer, or precisely speaking, just two-pointers method
* @author tzhang
*
*/
public class Nth2EndNode {
private ListNode head;
public Nth2EndNode(){
int[] a = new int[]{1,2,3,4,5,6,7,8};
head = Li... |
#import <UIKit/UIKit.h>
#import <ResearchKit/ResearchKit.h>
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger, ORKSpatialSpanTargetState) {
ORKSpatialSpanTargetStateQuiescent,
ORKSpatialSpanTargetStateActive,
ORKSpatialSpanTargetStateCorrect,
ORKSpatialSpanTargetStateIncorrect
};
@class ORKSpatia... |
<?php
namespace Symfony\Bundle\SecurityBundle\Templating\Helper;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\Form\Extension\Csrf\CsrfProvider\CsrfProviderInterface;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
use Symfony\Component\Templating\Helper\Helper;
... |
<!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*... |
img.png {
background-image: expression(
this.runtimeStyle.backgroundImage = "none",
this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.src + "', sizingMethod='image')",
this.src = "images/blank.gif"
);
}
.hidden {
display:none
}
div.login... |