text stringlengths 3 1.05M |
|---|
'use strict';
/**
* Module dependencies.
* @private
*/
var etag = require('etag');
var fresh = require('fresh');
var fs = require('fs');
var ms = require('ms');
var parseUrl = require('parseurl');
var path = require('path');
var resolve = path.resolve;
/**
* Module exports.
* @public
*/
module.exports = fav... |
package com.intellij.codeInspection;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.project.Project;
import com.intellij.psi.*;
import com.intellij.psi.util.PsiTreeUtil;
import com.intellij.refactoring.util.RefactoringUtil;
import com.intellij.util.IncorrectOperationException;
import org.j... |
// @currentDirectory: /
// @filename: /types/lib/index.d.ts
interface Lib { x }
// @filename: /main.ts
export class Cls {
x
}
// @filename: /mod1.ts
/// <reference types="lib" />
import {Cls} from "./main";
Cls.prototype.foo = function() { return undefined; }
declare module "./main" {
... |
// -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*-
#if !defined(_BASE_LOW_LEVEL_ALLOC_H_)
#define _BASE_LOW_LEVEL_ALLOC_H_
// A simple thread-safe memory allocator that does not depend on
// mutexes or thread-specific data. It is intended to be used
// sparingly, and only when malloc() would introduce a... |
// 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.0 (the
// "License"); you may... |
package io.yawp.repository.shields.basic;
import static io.yawp.repository.query.condition.Condition.c;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import io.yawp.commons.utils.EndpointTestCase;
import io.yawp.repository.IdRef;
import io.yawp.repository.models.basic.BasicObj... |
class WalletInit : public WalletInitInterface
{
public:
//! Was the wallet component compiled in.
bool HasWalletSupport() const override {return true;}
//! Return the wallets help message.
void AddWalletOptions(ArgsManager& argsman) const override;
//! Wallets parameter interaction
bool Parame... |
var Q = require('q');
var chalk = require('chalk');
var PackageRepository = require('../core/PackageRepository');
var createError = require('../util/createError');
var defaultConfig = require('../config');
function register(logger, name, source, config) {
var repository;
var registryClient;
var force;
... |
package com.intellij.openapi.wm.impl;
import com.intellij.ProjectTopics;
import com.intellij.openapi.application.Application;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.application.ModalityState;
import com.intellij.openapi.application.ReadAction;
import com.intellij.opena... |
CREATE SEQUENCE seq_id;
|
<!--
! 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.0
! (the "License"); you ma... |
import {Namespaces} from '../shared/DOMNamespaces';
import createMicrosoftUnsafeLocalFunction
from '../shared/createMicrosoftUnsafeLocalFunction';
// SVG temp container for IE lacking innerHTML
var reusableSVGContainer;
/**
* Set the innerHTML property of a node
*
* @param {DOMElement} node
* @param {string} ... |
/*----------------------------------------------
Programmer: Alberto Bobadilla (labigm@gmail.com)
Date: 2017/07
----------------------------------------------*/
#ifndef __MYENTITY_H_
#define __MYENTITY_H_
#include "MyRigidBody.h"
namespace Simplex
{
//System Class
class MyEntity
{
bool m_bInMemory = false; //loaded... |
#ifndef QGLOBAL_H
#define QGLOBAL_H
#ifdef __cplusplus
# include <cstddef>
#endif
#include <stddef.h>
/*
QT_VERSION is (major << 16) + (minor << 8) + patch.
*/
#define QT_VERSION QT_VERSION_CHECK(QT_VERSION_MAJOR, QT_VERSION_MINOR, QT_VERSION_PATCH)
/*
can be used like #if (QT_VERSION >= QT_VERSION_CHE... |
(function($) {
// Making elements equal height
var equalheight = function(container){
var currentTallest = 0,
currentRowStart = 0,
rowDivs = new Array(),
$el,
topPosition = 0;
$(container).find('.equal').each(function() {
$el = $(this);
$($el).height... |
@protocol GADCustomEventBanner<NSObject>
/// This method is called by mediation when your Custom Event is scheduled to be executed. Results
/// of the execution should be reported back via the delegate. |adSize| is the size of the ad as
/// configured in the mediation UI for the mediation placement. |serverParameter| ... |
/*
* metismenu - v1.1.1
* Easy menu jQuery plugin for Twitter Bootstrap 3
* https://github.com/onokumus/metisMenu
*
* Made by Osman Nuri Okumus
* Under MIT License
*/
.arrow {
float: right;
line-height: 1.42857; //twitter bootstrap body element line-height
}
.glyphicon.arrow:before {
content: "\e079... |
class QiratType < ApplicationRecord
end
|
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.xstream = f()}... |
package com.intellij.pom.xml.impl.events;
import com.intellij.pom.PomModel;
import com.intellij.pom.event.PomModelEvent;
import com.intellij.pom.xml.XmlAspect;
import com.intellij.pom.xml.events.XmlAttributeSet;
import com.intellij.pom.xml.impl.XmlAspectChangeSetImpl;
import com.intellij.psi.util.PsiTreeUtil;
import ... |
module Echochamber
class Client
# Creates an agreement
#
# @param agreement [Echochamber::Agreement]
# @return [String] Agreement ID
def create_agreement(agreement)
agreement_response = Echochamber::Request.create_agreement(agreement, token, agreement.user_id, agreement.user_email)
agreemen... |
from swgpy.object import *
def create(kernel):
result = Tangible()
result.template = "object/tangible/wearables/skirt/shared_skirt_s05.iff"
result.attribute_template_id = 11
result.stfName("wearables_name","skirt_s05")
#### BEGIN MODIFICATIONS ####
#### END MODIFICATIONS ####
return result |
struct S {
constexpr int &f(); // expected-warning {{'constexpr' non-static member function will not be implicitly 'const' in C++14; add 'const' to avoid a change in behavior}}
int &f();
};
|
using System.Text;
using Xunit;
namespace System.Net.Primitives.PalTests
{
public class IPAddressPalTests
{
[Fact]
public void IPv4StringToAddress_Valid()
{
const string AddressString = "127.0.64.255";
var bytes = new byte[IPAddressParserStatics.IPv4AddressByte... |
// Copyright 2012 The Closure Library 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 requ... |
<?php
namespace Symfony\Component\DomCrawler\Tests;
use Symfony\Component\DomCrawler\Form;
use Symfony\Component\DomCrawler\FormFieldRegistry;
use Symfony\Component\DomCrawler\Field;
class FormTest extends \PHPUnit_Framework_TestCase
{
public static function setUpBeforeClass()
{
// Ensure that the ... |
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using Autofac;
using Moq;
using NUnit.Framework;
using Orchard.Caching;
using Orchard.ContentManagement.MetaData;
using Orchard.ContentManagement.MetaData.Services;
using Orchard.Core.Settings.Metadata;
us... |
> Instructions for creating a new repo.
## Create local repo to track initial changes
1. Create project directory with `mkdir <path>`.
2. If you haven't already, configure default NPM fields with `npm config edit`.
3. Initialize a new NPM Project with `npmproject`. This script runs the following:
```sh
# I... |
using System;
using Server;
namespace Server.Items
{
public class KillerFrog : BaseFish
{
public override int LabelNumber{ get{ return 1073825; } } // A Killer Frog
[Constructable]
public KillerFrog() : base( 0x3B0D )
{
}
public KillerFrog( Serial serial ) : base( serial )
{
}
public over... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
.tree {
padding-left: 14px;
overflow:auto;
position:relative;
}
.tree-solid-line {
padding-left: 12px;
}
.tree.tree-no-line {
padding-left: 0;
}
.tree:before{
width: 1px;
z-index:1;
display:block;
content:"";
position:absolute;
top:-21px;
bottom:16... |
import json
from .. import constants
ROUND = constants.DEFAULT_PRECISION
## THREE override function
def _json_floatstr(o):
if ROUND is not None:
o = round(o, ROUND)
return '%g' % o
def _make_iterencode(markers, _default, _encoder, _indent, _floatstr,
_key_separator, _item_separator,... |
class DoWhileDemo {
public static void main(String[] args) {
int count = 1;
do {
System.out.println("Count is: " + count);
count++;
}
while (count < 11);
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
using Orchard.ContentManagement;
using Orchard.Core.XmlRpc;
using Orchard.Core.XmlRpc.Models;
using Orchard.Security;
using Orchard.Tags.Helpers;
using Orchard.Tags.Models;
namespace Orchard.Tags.Services {
public class XmlR... |
#import <Foundation/Foundation.h>
#import <Parse/PFConstants.h>
#import "PFMacros.h"
@class BFTask<__covariant BFGenericType>;
@class PFFileManager;
@class PFObject;
@class PFPin;
@class PFQueryState;
@class PFSQLiteDatabase;
@class PFUser;
typedef NS_OPTIONS(uint8_t, PFOfflineStoreOptions) {
PFOfflineStoreOp... |
0.4.0 / 2015-12-03
==================
* package: bump `debug`
* use a `Room` class to efficiently track room size
* allow `clients(fn)`
* call the callback on `delAll`
0.3.1 / 2014-10-27
==================
* bump parser version
* fix room autopruning
* add autoprunning of empty rooms
* rooms are now crea... |
<!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 (version 1.7.0_101) on Mon Apr 03 09:58:08 UTC 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Interface o... |
<?php
/**
* Multisite administration panel.
*
* @package WordPress
* @subpackage Multisite
* @since 3.0.0
*/
require_once( dirname( __FILE__ ) . '/admin.php' );
wp_redirect( network_admin_url() );
exit;
|
write-file-atomic
-----------------
This is an extension for node's `fs.writeFile` that makes its operation
atomic and allows you set ownership (uid/gid of the file).
### var writeFileAtomic = require('write-file-atomic')<br>writeFileAtomic(filename, data, [options], callback)
* filename **String**
* data **String**... |
//
// SJLabelSlider.h
// SJSlider
//
// Created by BlueDancer on 2017/11/20.
// Copyright © 2017年 SanJiang. All rights reserved.
//
#import "SJCommonSlider.h"
/*!
* two label each on the left and right.
* You can adjust the spacing by setting `spacing`.
*
* 两个标签, 分别在左边和右边.
* 你可以设置父类中的`spacing`, 来调整他们之间的间... |
using namespace std;
class EDGETABLE
{
public:
vector<float> EdgeValue;
EDGETABLE(){};
void setEdgeValue(float ymax, float xstart, float X_slope,
float Z_start, float Z_slope, float Nx_start, float Nx_slope,
float Ny_start, float Ny_s... |
<!--
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http:/... |
//
// IntroScene.h
// ___PROJECTNAME___
//
// Created by ___FULLUSERNAME___ on ___DATE___.
// Copyright ___ORGANIZATIONNAME___ ___YEAR___. All rights reserved.
//
// -----------------------------------------------------------------------
// Importing cocos2d.h and cocos2d-ui.h, will import anything you need to sta... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("React"));
else if(typeof define === 'function' && define.amd)
define(["React"], factory);
else if(typeof exports === 'object')
exports["ReactDisqusThread"]... |
/**
* Gumby Fixed
*/
!function($) {
'use strict';
function Fixed($el) {
Gumby.debug('Initializing Fixed Position', $el);
this.$el = $el;
this.fixedPoint = '';
this.pinPoint = false;
this.offset = 0;
this.pinOffset = 0;
this.top = 0;
this.constrainEl = true;
this.state = false;
this.measuremen... |
var fs = require('fs'); //Always required to read from files
var path = fs.absolute('.');
//Read files from filesystem
var expected = fs.read(path + '/blocklyeditor/tests/com/google/appinventor/blocklyeditor/data/underscore/underscoreExpected.yail');
var formJson = fs.read(path + '/blocklyeditor/tests/com/google/appi... |
<document>
<!-- see http://maven.apache.org/reference/plugins/changes/ for documentation -->
<!-- There are four valid values for action type: add, fix, remove, update. -->
<properties>
<title>Changes to ppw-value</title>
<author email="David_Van_Keer@peopleware.be">David Van Keer</author>
<author ... |
/* Some code copy from Bootstrap v3.0.0 by @fat and @mdo. (Copyright 2013 Twitter, Inc. Licensed under http://www.apache.org/licenses/)*/
/* ========================================================================
* ZUI: jquery.extensions.js
* http://zui.sexy
* ====================================================... |
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,
ENTER_K... |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Class template null_index</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="g... |
layout: post
title: 'The Equal Distribution of Wealth: Moral Perspectives'
date: '2010-01-28 22:15:32 -0700'
mt_id: 1438
blog_id: 1
post_id: 1438
basename: the-equal-distribution-of-wealth
categories:
- essays
---
<p>
The issue of income inequality has been a pernicious social problem in
every country, except for the U... |
@interface CourseViewController ()
@end
@implementation CourseViewController
- (void)viewDidLoad {
[super viewDidLoad];
self.view.backgroundColor = [[UIColor clearColor] colorWithAlphaComponent:0.5];
}
- (IBAction)gotoScan:(id)sender {
if (self.callBackBlock) {
self.callBackBlock();
}
... |
**What git concepts were you struggling with prior to the GPS session?**
I wasn't struggling very much with git, but I had a little trouble keeping track of which branch I was making changes on.
**What concepts were clarified during the GPS?**
Merging using "git merge" was something I didn't quite understand until t... |
#include "clar_libgit2.h"
#include "odb.h"
#include "filebuf.h"
static git_buf destpath, filepath;
static const char *paths[] = {
"A.git", "B.git", "C.git", "D.git", "E.git", "F.git", "G.git"
};
static git_filebuf file;
static git_repository *repo;
void test_odb_alternates__cleanup(void)
{
size_t i;
git_buf_free(... |
@interface EYCNCityPicker () <UIPickerViewDelegate, UIPickerViewDataSource>
@property (nonatomic, strong) UIView *maskView;
@property (nonatomic, copy) NSString *selectProvinceValue;
@property (nonatomic, copy) NSString *selectCityValue;
@property (nonatomic, copy) NSString *selectDistrictValue;
@property (nonatomic... |
package org.zstack.test.virtualrouter.vyos;
import junit.framework.Assert;
import org.junit.Before;
import org.junit.Test;
import org.zstack.core.cloudbus.CloudBus;
import org.zstack.core.componentloader.ComponentLoader;
import org.zstack.core.db.DatabaseFacade;
import org.zstack.header.configuration.InstanceOfferingI... |
<?php
include_once 'phing/filters/BaseFilterReader.php';
include_once 'phing/types/Parameterizable.php';
include_once 'phing/types/Parameter.php';
/**
* Base class for core filter readers.
*
* @author <a href="mailto:yl@seasonfive.com">Yannick Lecaillez</a>
* @copyright © 2003 seasonfive. All rights reserved
*... |
ace.define("ace/mode/ruby_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
var constantOtherSymbol = exports.c... |
@interface GPUImageLuminosity : GPUImageAverageColor
{
GLProgram *secondFilterProgram;
GLint secondFilterPositionAttribute, secondFilterTextureCoordinateAttribute;
GLint secondFilterInputTextureUniform, secondFilterInputTextureUniform2;
GLint secondFilterTexelWidthUniform, secondFilterTexelHeightUniform... |
/**
* XCTest extensions for CGGeometry.
*
* Prefer these to XCTAssert(CGRectEqualToRect(...)) because you get output
* that tells you what went wrong.
* Could use NSValue, but using strings makes the description messages shorter.
*/
#import <XCTest/XCTestAssertionsImpl.h>
#define ASXCTAssertEqualSizes(s0, s1, .... |
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<ClientWebPart Name="NewEventItems" Title="New Event Items" Description="Manage Event Items" DefaultWidth="500" DefaultHeight="700">
<!-- Content element identifies the location of the page that will render inside... |
(function(){
if(!document.body.addEventListener) {
return;
}
$$('[data-src][data-type="text/html"]').forEach(function(element) {
var src = element.getAttribute('data-src'),
html = element.getAttribute('data-type') === 'text/html',
contentProperty = html? 'innerHTML' : 'textContent';
$u.xhr({
url: src,... |
namespace spvtools {
namespace fuzz {
class TransformationAddNoContractionDecoration : public Transformation {
public:
explicit TransformationAddNoContractionDecoration(
protobufs::TransformationAddNoContractionDecoration message);
explicit TransformationAddNoContractionDecoration(uint32_t fresh_id);
//... |
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
/**
*
*/
/**
* @author farias
*
*/
public class PacketTSTDriver extends AbstractDriver {
/**
* @param args
*/
public static void main(String[] args) {
// Generico del driver
TST<Packet> Clt = new TST<Packet>();
Packet g =... |
<?php
namespace Eloqua\Api\Soap\Service;
class Delete {
/**
* @var EntityType $entityType
*/
protected $entityType = null;
/**
* @var ArrayOfint $ids
*/
protected $ids = null;
/**
* @param EntityType $entityType
* @param ArrayOfint $ids
*/
public function ... |
import React, { Component } from 'react'
import { PropTypes } from 'prop-types';
import Paper from 'material-ui/Paper'
import { connect } from 'react-redux'
import { reduxForm } from 'redux-form'
import { firebaseConnect, pathToJS, isLoaded } from 'react-redux-firebase'
import { submit } from 'redux-form'
import { red... |
var x: CustomEvent;
// valid since detail is any
x.initCustomEvent('hello', true, true, { id: 12, name: 'hello' });
var y = x.detail.name; |
namespace BooCompiler.Tests
{
using NUnit.Framework;
[TestFixture]
public class MetaProgrammingIntegrationTestFixture : AbstractCompilerTestCase
{
[Test]
public void auto_lift_1()
{
RunCompilerTestCase(@"auto-lift-1.boo");
}
[Test]
public void auto_lift_2()
{
RunCompilerTestCase(@"auto-lif... |
'use strict';
exports.__esModule = true;
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
exports['default']... |
Cross-platform next-tick with fallback to setTimeout.
## Install
```bash
$ npm install just-next-tick
```
## Usage
```js
nextTick = require('just-next-tick')
nextTick(function () {
console.log('world')
})
console.log('hello')
// hello
// world
```
|
package org.kaazing.gateway.client.transport.ws;
import java.io.IOException;
import java.nio.ByteBuffer;
import org.kaazing.gateway.client.transport.BridgeDelegate;
public interface WebSocketDelegate extends BridgeDelegate {
void processOpen();
void processAuthorize(String string);
void processDisconn... |
using System.Collections.Generic;
using Newtonsoft.Json;
namespace Nest
{
public interface IDeleteLicenseResponse : IResponse { }
public class DeleteLicenseResponse : ResponseBase, IDeleteLicenseResponse { }
}
|
package registry
import (
"encoding/json"
"errors"
"fmt"
"net/http"
"net/url"
"strings"
"github.com/flynn/flynn/Godeps/_workspace/src/github.com/docker/docker/utils"
)
type tokenResponse struct {
Token string `json:"token"`
}
func getToken(username, password string, params map[string]string, registryEndpoin... |
"""Generic socket server classes.
This module tries to capture the various aspects of defining a server:
For socket-based servers:
- address family:
- AF_INET{,6}: IP (Internet Protocol) sockets (default)
- AF_UNIX: Unix domain sockets
- others, e.g. AF_DECNET are conceivable (see <socket.h>
... |
<?php
/**
* PDF page class
*
* Class containing context information about a single rendered page.
*
* It especially encodes information about already covered / blocked areas on
* one PDF page, and offers methods to check if a new content block fits on the
* page an, where it does fit on the page.
*
* The tes... |
/**
* @author Pavel Dolgov
*/
package java.awt;
public interface MenuContainer {
public void remove(MenuComponent c);
public Font getFont();
/**
* @deprecated
*/
@Deprecated
public boolean postEvent(Event e);
}
|
/*istanbul ignore next*/"use strict";
exports.__esModule = true;
var _classCallCheck2 = require("babel-runtime/helpers/classCallCheck");
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var /*istanbul ignore next*/_normalizeAst = require("../helpers/normalize-ast");
/*istanbul ignore next*/
var _no... |
<!doctype html>
<html lang="es">
<head>
<meta charset="utf-8">
<title>Datapola</title>
<meta name="description" content="The HTML5 Herald">
<meta name="author" content="SitePoint">s
<!--[if lt IE 9]>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.js"></script>
<![endif]... |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading.Tasks;
using Lumia.Imaging.Extras.Layers.Internal;
using Size = Windows.Foundation.Size;
using Windows.Foundation;
namespace Lumia.Imaging.Extras.Layers
{
/// <summary>
/// A list of abstracted and developer-fri... |
<?php
namespace Frozennode\Administrator\Fields\Relationships;
use Illuminate\Database\Query\Builder as QueryBuilder;
class BelongsTo extends Relationship {
/**
* The relationship-type-specific defaults for the relationship subclasses to override
*
* @var array
*/
protected $relationshipDefaults = array(
... |
package org.apache.batik.gvt.flow;
import java.awt.Shape;
import java.util.Iterator;
import java.util.List;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import org.apache.batik.ext.awt.geom.SegmentList;
import org.apache.batik.ext.awt.geom.Segment;
/**
* A class to hold flow re... |
// -*- mode: java; c-basic-offset: 2; -*-
// Copyright 2012-2014 MIT, All rights reserved
// Released under the Apache License, Version 2.0
// http://www.apache.org/licenses/LICENSE-2.0
package com.google.appinventor.components.runtime;
import android.app.Activity;
import android.content.Intent;
import android.nfc.Nf... |
namespace rocksdb {
class Slice;
class Status;
class ColumnFamilyHandle;
class WriteBatch;
struct SliceParts;
// Abstract base class that defines the basic interface for a write batch.
// See WriteBatch for a basic implementation and WrithBatchWithIndex for an
// indexed implemenation.
class WriteBatchBase {
public:... |
(function() {
var Declaration, Flex, flexSpec,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor... |
'use strict';
/**
* @module virustotal
*/
/* core modules */
var fs = require('fs');
var qs = require('querystring');
/* enables the usage of instanceof */
var Stream = require('stream').Stream;
var ReadStream = fs.ReadStream;
var IncomingMessage = require('http').IncomingMessage;
/* 3rd party module */
var http ... |
package org.apache.camel.component.vertx;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
import org.junit.Test;
public class VertxMultipleConsumerTest extends VertxBaseTestSupport {
protected String startUri = "vertx:foo.start?pubSub=true";
protected Strin... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>hammer-tactics: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.... |
<?php
namespace Zend\Filter;
use DateTime;
class DateTimeFormatter extends AbstractFilter
{
/**
* A valid format string accepted by date()
*
* @var string
*/
protected $format = DateTime::ISO8601;
/**
* Sets filter options
*
* @param array|Traversable $options
*/... |
/*!
* Module dependencies.
*/
var MongooseError = require('../error.js');
/**
* Casting Error constructor.
*
* @param {String} type
* @param {String} value
* @inherits MongooseError
* @api private
*/
function DisconnectedError(connectionString) {
MongooseError.call(this, 'Ran out of retries trying to reco... |
// +build !ignore_autogenerated
// This file was autogenerated by deepcopy-gen. Do not edit it manually!
package api
import (
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion"
fields "k8s.io/apimachinery/pkg/fields"
labels "k8s.io/apimachinery/pkg/labels"
runtime "k8s.i... |
<?php
final class PhutilRemarkupLiteralBlockRule extends PhutilRemarkupBlockRule {
public function getPriority() {
return 450;
}
public function getMatchingLineCount(array $lines, $cursor) {
// NOTE: We're consuming all continguous blocks of %%% literals, so this:
//
// %%%a%%%
// %%%... |
<?php
/**
* @namespace
*/
namespace Zend\Service\ReCaptcha;
use Zend\Config;
/** @see Zend_Service_Abstract */
require_once 'Zend/Service/Abstract.php';
/** @see Zend_Json */
require_once 'Zend/Json.php';
/** @see Zend_Service_ReCaptcha_Response */
require_once 'Zend/Service/ReCaptcha/Response.php';
/**
* Zend... |
package com.intellij.execution.junit2.states;
import com.intellij.execution.testframework.Printer;
import com.intellij.rt.execution.junit.states.PoolOfTestStates;
public final class NotFailedState extends TestState {
private final boolean myIsFinal;
public NotFailedState(final int magnitude, final boolean aFin... |
package org.apache.nifi.remote.cluster;
public class NodeInformation {
private final String siteToSiteHostname;
private final Integer siteToSitePort;
private final Integer siteToSiteHttpApiPort;
private final int apiPort;
private final boolean isSiteToSiteSecure;
private final int totalFlowFi... |
require File.dirname(__FILE__) + '/../spec_helper'
# TODO - considering change from hacked to real...
class Array
def to_json
self.to_s
end
end
describe "Yui4Rails::Widgets::NumberFormatter" do
it "should return number from to_s" do
Yui4Rails::Widgets::NumberFormatter.to_s.should == "number"
end
end
descri... |
from myhdl import *
def gray_counter(gray_count, enable, clock, reset):
n = len(gray_count)
gray = Signal(intbv(0)[n:])
even = Signal(bool(1))
@always_seq(clock.posedge, reset=reset)
def seq():
word = concat('1', gray[n-2:], even)
if enable:
found = False
f... |
/*! UIkit 2.20.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
(function(UI){
"use strict";
var toggles = [];
UI.component('toggle', {
defaults: {
target : false,
cls : 'uk-hidden',
animation : false,
duration : 200
... |
This is the test suite for Statistics page under the Analyze section.
- Stats_Compare: contains a few different text files and the data results using different tools
- Stats_How_To_Use: step by step introductions on how to get data with both English and Mandarin texts
|
<section id="SignedIn" class="container content-section text-center">
<div class="col-lg-8 col-lg-offset-2">
<div class="row">
<div class="mainPage">
<div> <!-- Top Innerbox -->
<p>
Hello, test!
</p><p>
</p><form action="/loggingOut" method="get">
<div>
... |
<?php
require_once('../lib/Phirehose.php');
require_once('../lib/OauthPhirehose.php');
/**
* Example of using Phirehose to display a live filtered stream using track words
*/
class FilterTrackConsumer extends OauthPhirehose
{
/**
* Enqueue each status
*
* @param string $status
*/
public function enq... |