text stringlengths 3 1.05M |
|---|
{% extends "reviewers/themes/base.html" %}
{% set title = _('Theme Review History for {0}')|format_html(username) %}
{% block content %}
<h1>{{ title }}</h1>
{% include "reviewers/themes/history_table.html" %}
{% endblock %}
|
import argparse
import collections
import csv
import re
import json
import os
import random
import subprocess
import sys
import time
import urllib2
import zlib
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
OWNERS_PATH = os.path.abspath(
os.path.join(BASE_DIR, '..', 'test', 'test_owners.csv'))
GCS_URL_BASE ... |
<?php
namespace Doctrine\ORM\Cache;
use Doctrine\ORM\Cache\Logging\CacheLogger;
/**
* Configuration container for second-level cache.
*
* @since 2.5
* @author Fabio B. Silva <fabio.bat.silva@gmail.com>
*/
class CacheConfiguration
{
/**
* @var \Doctrine\ORM\Cache\CacheFactory|null
*/
priva... |
;(function(){
'use strict';
angular
.module('<%= slugifiedAppName %>', [
'ngCookies',
'ngResource',
'ngSanitize',
'restangular',
'btford.socket-io',
'ui.router',
'ui.bootstrap',
'core',
'app.modules'
])
.run( run );
/* @inject */
function run($rootScope, $location, Auth) {
// Redirect ... |
#include "tensorflow/core/data/service/auto_shard_rewriter.h"
#include <string>
#include "absl/strings/string_view.h"
#include "absl/strings/substitute.h"
#include "tensorflow/core/data/service/common.pb.h"
#include "tensorflow/core/data/service/test_util.h"
#include "tensorflow/core/framework/dataset_options.pb.h"
... |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Linq;
using PHP.Core.AST;
using FcnParam = System.Tuple<System.Collections.Generic.List<PHP.Core.AST.TypeRef>, System.Collections.Generic.List<PHP.Core.AST.ActualParam>, System.Collect... |
<?php
namespace Zend\Server\Reflection;
/**
* Parameter Reflection
*
* Decorates a ReflectionParameter to allow setting the parameter type
*/
class ReflectionParameter
{
/**
* @var \ReflectionParameter
*/
protected $reflection;
/**
* Parameter position
* @var int
*/
prot... |
export { AirportLocation16 as default } from "../../";
|
package com.intellij.codeInsight;
import com.intellij.codeInsight.daemon.quickFix.LightQuickFixParameterizedTestCase;
import com.intellij.testFramework.PlatformTestUtil;
import org.jetbrains.annotations.NotNull;
/**
* @author anna
*/
public class ConvertToThreadLocalIntentionTest extends LightQuickFixParameterizedT... |
package io.cattle.platform.process.progress;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import org.apache.commons.lang3.StringUtils;
class ProcessProgressState {
boolean inCorrectCheckPoint = false;
String currentCheckpoint;
String subMessage = null;
List<String> ch... |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Lic... |
/*! formstone v0.8.0 [navigation.css] 2015-09-03 | MIT License | formstone.it */
/**
* @class
* @name .fs-navigation-element
* @type element
* @description Target elmement
*/
/**
* @class
* @name .fs-navigation
* @type element
* @description Base widget class
*/
.fs-navigation {
/**
* @class
... |
// 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 Microsoft.CodeAnalysis.CSharp.Symbols;
using Microsoft.CodeAnalysis.CSharp.Test.Utilities;
using Microsoft.CodeAnalysis.Test.Utilities;
using Roslyn.Te... |
define( [
'qunit',
'tests/mockup/mockup',
'osg/Camera',
'osg/Matrix',
'osg/MatrixTransform',
'osg/TransformEnums'
], function ( QUnit, mockup, Camera, Matrix, MatrixTransform, TransformEnums ) {
'use strict';
return function () {
QUnit.module( 'osg' );
QUnit.test( 'Ca... |
"""Obsolete markers handling
An obsolete marker maps an old changeset to a list of new
changesets. If the list of new changesets is empty, the old changeset
is said to be "killed". Otherwise, the old changeset is being
"replaced" by the new changesets.
Obsolete markers can be used to record and distribute changeset g... |
> Create an array without duplicates
It's already pretty fast, but will be much faster when [Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) becomes available in V8 (especially with large arrays).
## Install
```sh
$ npm install --save array-uniq
```
## Usag... |
/*
Name: PhoneUpdate
Purpose: Update all fields from Customer
Developer: Deborah Kurata
InStep Technologies, Inc (www.insteptech.com)
Date: 4/12/11
Modifications:
Date Developer Description
*/
CREATE PROCEDURE dbo.PhoneUpdate
(
@PhoneId int,
@CustomerId int,... |
<?php
namespace Symfony\Component\Validator\Tests\Constraints;
use Symfony\Component\Intl\Util\IntlTestHelper;
use Symfony\Component\Validator\Constraints\Locale;
use Symfony\Component\Validator\Constraints\LocaleValidator;
class LocaleValidatorTest extends \PHPUnit_Framework_TestCase
{
protected $context;
... |
from __future__ import absolute_import
import os
import sys
import re
import textwrap
import site
import scripttest
import virtualenv
from tests.lib.path import Path, curdir, u
DATA_DIR = Path(__file__).folder.folder.join("data").abspath
SRC_DIR = Path(__file__).abspath.folder.folder.folder
pyversion = sys.version... |
{% extends "base.html" %}
{% block title %}{{ article.title|striptags }} | {{ super() }}{% endblock title %}
{% block content %}
<!-- Main -->
<article id="main">
<header class="special container">
<span class="icon fa-{{ article.icon }}"></span>
<h2>{{ article.title }}</h2>
<!-- add page sub title her... |
#if !defined(FUSION_LESS_05052005_1141)
#define FUSION_LESS_05052005_1141
#include <boost/fusion/support/config.hpp>
#include <boost/mpl/bool.hpp>
#include <boost/fusion/iterator/deref.hpp>
#include <boost/fusion/iterator/next.hpp>
#include <boost/fusion/iterator/equal_to.hpp>
#include <boost/fusion/support/as_const.... |
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >
<solid android:color="#40000000" />
<corners
android:bottomLeftRadius="0dp"
android:bottomRightRadius="0dp"
android:topLeftRadius="@dimen/indicator_c... |
'use strict';
var $controllerMinErr = minErr('$controller');
var CNTRL_REG = /^(\S+)(\s+as\s+(\w+))?$/;
function identifierForController(controller, ident) {
if (ident && isString(ident)) return ident;
if (isString(controller)) {
var match = CNTRL_REG.exec(controller);
if (match) return match[3];
}
}
... |
package org.apache.ignite.session;
import org.apache.ignite.*;
import org.apache.ignite.compute.*;
import org.apache.ignite.configuration.*;
import org.apache.ignite.internal.util.typedef.*;
import org.apache.ignite.resources.*;
import org.apache.ignite.spi.discovery.tcp.*;
import org.apache.ignite.spi.discovery.tcp... |
nv.models.linePlusBarWithFocusChart = function() {
//============================================================
// Public Variables with Default Settings
//------------------------------------------------------------
var lines = nv.models.line()
, lines2 = nv.models.line()
, bars = nv.models.histori... |
import React, { Component, PropTypes } from 'react'
import { connect } from 'react-redux'
import { fetchPostsIfNeeded, invalidateReddit } from '../actions'
import Picker from '../components/Picker'
import Posts from '../components/Posts'
import { compose } from 'redux'
import { createReducer, registerReducers } from 'r... |
/**
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
*/
#ifndef CONF_CLOCK_H_INCLUDED
#define CONF_CLOCK_H_INCLUDED
#define CONFIG_SYSCLK_RC8MHZ_LPM true
#define CONFIG_SYSCLK_SOURCE SYSCLK_SRC_RC8MHZ
#define CONFIG_SYSCLK_PSADIV SYSCLK_PSADIV_1
#define CONFIG_SYSCL... |
package org.apache.hadoop.hive.llap;
import java.io.IOException;
import java.io.OutputStream;
import java.io.DataOutputStream;
import org.apache.hadoop.io.Writable;
import org.apache.hadoop.io.WritableComparable;
import org.apache.hadoop.mapred.RecordWriter;
import org.apache.hadoop.mapred.Reporter;
import org.slf4... |
package org.intellij.images.options;
import org.jetbrains.annotations.NonNls;
import java.awt.*;
/**
* Options for zooming feature.
*
* @author <a href="mailto:aefimov.box@gmail.com">Alexey Efimov</a>
*/
public interface ZoomOptions extends Cloneable {
@NonNls
String ATTR_PREFIX = "Editor.Zoom.";
@N... |
<!---
# 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 org.openqa.selenium.remote;
/**
* Describes and provides an implementation for a particular interface for use with the
* {@link org.openqa.selenium.remote.Augmenter}. Think of this as a simulacrum of mixins.
*/
public interface AugmenterProvider {
/**
* @return The interface that this augmentor descr... |
package com.ayuget.redface.ui.theme;
public enum RedfaceTheme {
LIGHT,
DARK,
NIGHT
}
|
<html>
<body>
Reports any variables declared as <b>java.lang.String</b> which are
repeatedly appended to. Such variables may be more efficiently declared as <b>java.lang.StringBuffer</b>
or <b>java.lang.StringBuilder</b>.
<!-- tooltip end -->
<p>
Use the checkbox below to specify that this inspection should only warn w... |
.class public final Landroid/provider/CalendarContract$CalendarMetaData;
.super Ljava/lang/Object;
.source "CalendarContract.java"
# interfaces
.implements Landroid/provider/CalendarContract$CalendarMetaDataColumns;
.implements Landroid/provider/BaseColumns;
# annotations
.annotation system Ldalvik/annotation/Enclos... |
// This file was automatically generated by informer-gen
package v1alpha1
import (
internalinterfaces "k8s.io/client-go/informers/internalinterfaces"
)
// Interface provides access to all the informers in this group version.
type Interface interface {
// ClusterRoles returns a ClusterRoleInformer.
ClusterRoles(... |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... |
<?php
namespace Symfony\Component\Console\Output;
/**
* @author Jean-François Simon <contact@jfsimon.fr>
*/
class BufferedOutput extends Output
{
private string $buffer = '';
/**
* Empties buffer and returns its content.
*/
public function fetch(): string
{
$content = $this->buf... |
import Validator from '../Validator';
import { isString, isNumber, isArray } from '../internal/utils';
Validator.registerRule('size', (value: any, { value: _value }: { value: number }) => {
if (isString(value) || isArray(value)) {
return value.length === _value;
} else if (isNumber(value)) {
return value =... |
<!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 Wed Aug 05 08:53:15 ICT 2009 -->
<META http-equiv="Content-Type" content="text/html; charset=utf8">
<TITLE>
org.jgentleframework.servic... |
<!DOCTYPE html>
<!--
Copyright (c) 2012 Intel Corporation.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of works must retain the original copyright notice, this list
of conditions and the following di... |
local mod = DBM:NewMod(1774, "DBM-BrokenIsles", nil, 822)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 17078 $"):sub(12, -3))
mod:SetCreatureID(109331)
mod:SetEncounterID(1952)
mod:SetReCombatTime(20)
mod:SetZone()
--mod:SetMinSyncRevision(11969)
mod:RegisterCombat("combat")
mod:Regi... |
import datetime
from boto.sdb.db.key import Key
from boto.utils import Password
from boto.sdb.db.query import Query
import re
import boto
import boto.s3.key
from boto.sdb.db.blob import Blob
from boto.compat import six, long_type
class Property(object):
data_type = str
type_name = ''
name = ''
verbos... |
@interface PodsDummy_Pods_Alipay_Demo : NSObject
@end
@implementation PodsDummy_Pods_Alipay_Demo
@end
|
cask "niftyman" do
version "1.0.3"
sha256 "d77e091b32061de8327c5d19c296398e76e2f759ece2d39af17cc8d0595f4daa"
# notion-menubar-updates.s3-us-west-2.amazonaws.com was verified as official when first introduced to the cask
url "https://notion-menubar-updates.s3-us-west-2.amazonaws.com/Niftyman-#{version}.dmg"
a... |
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/js-test.js"></script>
</head>
<body>
<canvas id="canvas" width="100" height="100"></canvas>
<script>
description("Bug 105650: Test correct rendering of quadratic and bezier curves with coincident endpoints");
var ctx = document.ge... |
package sqldb
import (
"context"
"math"
"time"
"code.cloudfoundry.org/bbs/db/sqldb/helpers"
"code.cloudfoundry.org/lager"
)
func (db *SQLDB) FreshDomains(ctx context.Context, logger lager.Logger) ([]string, error) {
logger = logger.Session("db-fresh-domains")
logger.Debug("starting")
defer logger.Debug("comp... |
<#
.SYNOPSIS
Deploys a Service Fabric application type to a cluster.
.DESCRIPTION
This script deploys a Service Fabric application type to a cluster. It is invoked by Visual Studio when deploying a Service Fabric Application project.
.NOTES
WARNING: This script file is invoked by Visual Studio. Its parameters mus... |
import pkgutil
import os
import sys
class Brain(object):
def __init__(self):
self.modules = self.get_modules(os.path.join(os.getcwd(),
"glaucobot/modules/"))
@classmethod
def get_modules(self, path):
"""
Dynamically loads all the modules in the modules folder and sorts
them by the PRIORITY ... |
#include <linux/gpio.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <video/omapdss.h>
#include <video/omap-panel-data.h>
struct panel_drv_data {
struct omap_dss_device dssdev;
struct omap_dss_device *in;
int data_lines;
struct omap_video_timings videomode;
i... |
<?php
declare(strict_types=1);
namespace poggit\libasynql;
class SqlResult{
}
|
import time as time_module
import json
import voodoo.log as log
from voodoo.typechecker import typecheck
from voodoo.sessions.session_id import SessionId
import weblab.configuration_doc as configuration_doc
from weblab.data.experiments import ExperimentUsage
import weblab.core.exc as core_exc
import weblab.core.coor... |
.class Lcom/android/server/am/ActivityManagerService$Injector;
.super Ljava/lang/Object;
.source "ActivityManagerService.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/android/server/am/ActivityManagerService;
.end annotation
.annotation system Ldalvik/annotation/InnerClas... |
package com.iluwatar.specification.creature;
import com.iluwatar.specification.property.Color;
import com.iluwatar.specification.property.Movement;
import com.iluwatar.specification.property.Size;
/**
*
* Base class for concrete creatures.
*
*/
public abstract class AbstractCreature implements Creature {
priva... |
import { Observable } from '../Observable';
/**
* Splits the source Observable into two, one with values that satisfy a
* predicate, and another with values that don't satisfy the predicate.
*
* <span class="informal">It's like {@link filter}, but returns two Observables:
* one like the output of {@link filter}, a... |
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 (b.hasOwnProperty(p)) d[p] =... |
require 'interpipe/interactor'
require 'parallel'
class LoadParallels
include Interpipe::Interactor
def perform(faculty_semester:, **options)
@results = { parallels: Parallel.where(faculty: faculty_semester.faculty, semester: faculty_semester.code).all, faculty_semester: faculty_semester }
end
end
|
package baylandtag.ao_filter_table;
import javafx.scene.control.TextField;
import javafx.scene.control.ToggleButton;
public class LoginController {
private TextField databaseUrlTextField;
private TextField usernameTextField;
private TextField passwordTextField;
private ToggleButton connectDisconnectButton;
pri... |
ACCEPTED
#### According to
Interim Register of Marine and Nonmarine Genera
#### Published in
null
#### Original name
null
### Remarks
null |
package io.oasp.gastronomy.restaurant.test.config;
import io.oasp.gastronomy.restaurant.general.common.api.datatype.Money;
import io.oasp.gastronomy.restaurant.general.common.api.datatype.Role;
import io.oasp.gastronomy.restaurant.offermanagement.common.api.datatype.OfferState;
import io.oasp.gastronomy.restaurant.off... |
package flags
import (
"bytes"
"fmt"
"os"
"sort"
"strings"
"unicode/utf8"
)
type parseState struct {
arg string
args []string
retargs []string
positional []*Arg
err error
command *Command
lookup lookup
}
func (p *parseState) eof() bool {
return len(p.args) == 0
}
func (p *pars... |
typedef struct _mapper_filter_state_t {
lrec_evaluator_t* pevaluator;
} mapper_filter_state_t;
// ----------------------------------------------------------------
static sllv_t* mapper_filter_process(lrec_t* pinrec, context_t* pctx, void* pvstate) {
mapper_filter_state_t* pstate = pvstate;
if (pinrec != NULL) {
m... |
<!--L
Copyright Ekagra Software Technologies
Distributed under the OSI-approved BSD 3-Clause License.
See http://ncip.github.com/common-logging-module/LICENSE.txt for details.
L-->
<!DOCTYPE form-validation PUBLIC
"-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN"
... |
import django.dispatch
locale_change = django.dispatch.Signal(providing_args=["locale", "user"])
|
<?php
//@require 'Swift/CharacterReader.php';
/**
* Analyzes US-ASCII characters.
* @package Swift
* @subpackage Encoder
* @author Chris Corbyn
*/
class Swift_CharacterReader_UsAsciiReader
implements Swift_CharacterReader
{
/**
* Returns the complete charactermap
*
* @param string $string
* @pa... |
Find duplicate files in specified directory trees.
Building
--------
Create the JAR including dependencies using Maven:
mvn clean compile assembly:single
Or simply run:
./build.sh
This will create `target/dupfinder-jar-with-dependencies.jar`,
an executable jar.
Usage
-----
To find duplicate files in the... |
@interface NSStringRestKitTest : RKTestCase
@end
@implementation NSStringRestKitTest
- (void)testShouldInterpolateObjects
{
RKObjectMapperTestModel *person = [[RKObjectMapperTestModel alloc] init];
person.name = @"CuddleGuts";
person.age = @6;
NSString *interpolatedPath = RKPathFromPatternWithObject... |
/*!
* imagesLoaded PACKAGED v4.1.0
* JavaScript is all like "You images are done yet or what?"
* MIT License
*/
/**
* EvEmitter v1.0.1
* Lil' event emitter
* MIT License
*/
/* jshint unused: true, undef: true, strict: true */
( function( global, factory ) {
// universal module definition
/* jshint strict... |
itk_fetch_module(BoneEnhancement
"Various filters for enhancing cortical bones in quantitative computed tomography."
MODULE_COMPLIANCE_LEVEL 3
GIT_REPOSITORY ${git_protocol}://github.com/InsightSoftwareConsortium/ITKBoneEnhancement.git
GIT_TAG 658b9cb31f7216f604dfd35b187bd1ae80fd7506
)
|
package org.apache.camel.component.disruptor;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
import org.apache.camel.test.junit4.CamelTestSupport;
import org.apache.camel.util.ServiceHelper;
import org.junit.Test;
/**
*
*/
public class DisruptorConsumerSuspendRes... |
<CloudBalance id="1">
<id>0</id>
<computerList id="2">
<CloudComputer id="3">
<id>0</id>
<cpuPower>24</cpuPower>
<memory>96</memory>
<networkBandwidth>16</networkBandwidth>
<cost>4800</cost>
</CloudComputer>
<CloudComputer id="4">
<id>1</id>
<cpuPower>6</cpuPowe... |
import m from 'mithril';
import prop from 'mithril/stream';
import { catarse } from '../api';
import _ from 'underscore';
import h from '../h';
import models from '../models';
import tooltip from '../c/tooltip';
import projectDashboardMenu from '../c/project-dashboard-menu';
import modalBox from '../c/modal-box';
impor... |
package org.apache.camel.issues;
import java.io.IOException;
import java.util.concurrent.atomic.AtomicInteger;
import org.apache.camel.CamelExecutionException;
import org.apache.camel.ContextTestSupport;
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.apache.camel.builder.RouteBuilder... |
package com.xhaus.jyson;
import org.python.core.*;
public class JysonDecoder
{
/** Controls whether the Jyson decoder accepts data other than object or array at the top level */
public boolean accept_any_primary_datum = false;
/** Controls whether the Jyson decoder accepts dangling commas on arrays and dict... |
var gulp = require('gulp');
var html = require('gulp-processhtml');
var sass = require('gulp-sass');
var source = require('gulp-sourcemaps');
var serve = require('browser-sync');
var path = require('path');
// path
var BUILD = './build';
var DIST = './dist';
var PATH = {
HTML: {
BUIL... |
#ifndef SkPdfBorderStyleDictionary_DEFINED
#define SkPdfBorderStyleDictionary_DEFINED
#include "SkPdfDictionary_autogen.h"
// Entries in a border style dictionary
class SkPdfBorderStyleDictionary : public SkPdfDictionary {
public:
public:
SkPdfBorderStyleDictionary* asBorderStyleDictionary() {return this;}
co... |
{% extends "ctfweb/base.html" %}
{% block content %}
{{ chall.name }} -- {{ chall.points }} points<BR><BR>
{{ chall.description|safe }} <BR><BR>
{% if hints %}
<BR><BR>Hints For This Challenge:<BR><BR>
{% for hint in hints %}
{{ hint }} <BR><BR>
{% endfor %}
</ul>
{% endif ... |
require "spec_helper"
describe Mongoid::Criteria do
describe "#==" do
let(:criteria) do
Band.where(name: "Depeche Mode")
end
context "when the other is a criteria" do
context "when the criteria are the same" do
let(:other) do
Band.where(name: "Depeche Mode")
end... |
// Package reconciler implements interfaces that attempt to reconcile the
// desired state of the with the actual state of the world by triggering
// relevant actions (attach, detach, mount, unmount).
package reconciler
import (
"fmt"
"io/ioutil"
"path"
"time"
"github.com/golang/glog"
metav1 "k8s.io/apimachin... |
require_relative './end2end_common'
# Start polling the channel state in both the main thread
# and a child thread. Try to get the driver to send process-ending
# interrupt while both a child thread and the main thread are in the
# middle of a blocking connectivity_state call.
def main
server_port = ''
OptionParse... |
/**
* Returns elements from an observable sequence as long as a specified condition is true.
* The element's index is used in the logic of the predicate function.
*
* @example
* var res = source.takeWhile(function (value) { return value < 10; });
* var res = source.takeWhile(func... |
/*! JointJS v0.9.7-rappid.7 (2016-07-04) - JavaScript diagramming library
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
joint.shapes.fsa = {};
joint.shapes.fsa.State =... |
package org.kaazing.specification.http.rfc7234;
import static java.util.concurrent.TimeUnit.SECONDS;
import static org.junit.rules.RuleChain.outerRule;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.DisableOnDebug;
import org.junit.rules.TestRule;
import org.junit.rules.Timeout;
import org.kaaz... |
package io.apiman.gateway.api.rest.impl.mappers;
import io.apiman.gateway.api.rest.contract.exceptions.NotAuthorizedException;
import io.apiman.gateway.engine.beans.exceptions.AbstractEngineException;
import java.io.PrintWriter;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.r... |
/**
* @file
* @brief
*
* @author Anton Kozlov
* @date 18.02.2013
*/
#include <errno.h>
#include <security/security.h>
int security_node_permissions(struct node *node, int flags) {
return 0;
}
int security_node_create(struct node *dir, mode_t mode) {
return 0;
}
void security_node_cred_fill(struct node *... |
package im.actor.runtime.android.storage;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteStatement;
import java.util.List;
import im.actor.runtime.storage.KeyValueRecord;
import im.actor.runtime.storage.KeyValueStorage;
public class SQLiteKeyVal... |
<?php
use Shopware\SwagMigration\Components\Migration;
use Shopware\SwagMigration\Components\Migration\Cleanup;
use Shopware\SwagMigration\Components\Migration\Import\Progress;
use Shopware\SwagMigration\Components\Migration\Import\Resource\AbstractResource;
use Shopware\SwagMigration\Components\Migration\Mapping;
us... |
package org.apache.zookeeper.server.quorum;
/**
* A proxy for a remote quorum peer.
*/
public interface RemotePeerMXBean {
/**
* @return name of the peer
*/
public String getName();
/**
* @return IP address of the quorum peer
*/
public String getQuorumAddress();
}
|
module ParserSupport
def self.parser
@parser ||= CssParser::Parser.new
end
def self.parse_file(identifier)
self.parser.load_file!("tmp/#{identifier}.css")
end
end
|
/*
/ _____) _ | |
( (____ _____ ____ _| |_ _____ ____| |__
\____ \| ___ | (_ _) ___ |/ ___) _ \
_____) ) ____| | | || |_| ____( (___| | | |
(______/|_____)_|_|_| \__)_____)\____)_| |_|
(C)2013 Semtech
Description: Implements the generic SPI driver
License: Revised BSD License, ... |
/*!\file
* \brief Describes the decoder algorithm interface for algorithm
* implementations.
*
* This file defines the private structures and data types that are only
* relevant to implementing an algorithm, as opposed to using it.
*
* To create a decoder algorithm class, an interface structure is put
... |
<!--
make the context messages dismissable
-->
<!doctype html>
<!--[if lt IE 9]> <html class="ie lt-ie9 ie8"> <![endif]-->
<!--[if IE 9]> <html class="ie ie9"> <![endif]-->
<!--[if !IE]><!--> <html> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
... |
package com.facebook.buck.android;
import static org.hamcrest.CoreMatchers.hasItem;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertThat;
imp... |
const StatsPlugin = require('./stats-extractor-plugin');
exports.onCreateWebpackConfig = ({ actions, stage }) => {
if (stage !== 'build-javascript') return;
actions.setWebpackConfig({
plugins: [new StatsPlugin()],
});
};
|
NODE = node
NPM = npm
NODEUNIT = node_modules/nodeunit/bin/nodeunit
DOX = node_modules/dox/bin/dox
name = all
total: build_native
test-coverage:
rm -rf lib-cov/
jscoverage lib/ lib-cov/
@TEST_COVERAGE=true nodeunit test/ test/gridstore test/connection
build_native:
test: build_native
@echo "\n == Run All tests ... |
worker_processes 4
# Requests with more than 30 sec will be killed
timeout 30
# Preload entire app for fast forking.
preload_app true
before_fork do |server, worker|
Signal.trap 'TERM' do
puts 'Unicorn master intercepting TERM and sending myself QUIT instead'
Process.kill 'QUIT', Process.pid
end
de... |
.class public final enum Landroid/graphics/Paint$Align;
.super Ljava/lang/Enum;
.source "Paint.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroid/graphics/Paint;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "Align"
.... |
package org.wso2.carbon.apimgt.core.impl;
import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import feign.Response;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf... |
cask 'hipchat' do
version '4.30.2-760'
sha256 '4c94f7d22c6808e08a987d5f69124f3f4f3029f8e914b1c930140cd83fe734f2'
# amazonaws.com/downloads.hipchat.com/osx was verified as official when first introduced to the cask
url "https://s3.amazonaws.com/downloads.hipchat.com/osx/HipChat-#{version}.zip"
appcast 'https:... |
cask 'omniplan' do
version '3.9.2'
sha256 'a96ac0fcb37f1c48f2160ad0c7658535573a089a84786d6d3a489636736c4498'
url "https://downloads.omnigroup.com/software/MacOSX/10.12/OmniPlan-#{version}.dmg"
name 'OmniPlan'
homepage 'https://www.omnigroup.com/omniplan/'
app 'OmniPlan.app'
zap trash: [
... |
package com.commonsware.android.abholocolor;
import android.app.ListActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.ArrayAdapter;
import android.widget.Toast;
import java.util.ArrayList;
public class ActionBarDemoActivity extends ListActivity {
pri... |