text stringlengths 3 1.05M |
|---|
// Copyright 2009 the Sputnik authors. All rights reserved.
/**
* String.prototype.replace (searchValue, replaceValue)
*
* @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T11.js
* @description Call replace (searchValue, replaceValue) function with objects arguments of string object. Objects have overrided toString ... |
package org.apache.ibatis.submitted.overwritingproperties;
import java.io.Serializable;
public class Foo implements Serializable {
private Long field1;
private Bar field2;
private Integer field3;
private Integer field4;
public Foo() {
super();
}
public Foo(Long field1, Bar field2, Integer field3... |
package mesosphere.marathon.tasks
import java.util.concurrent.PriorityBlockingQueue
import mesosphere.marathon.state.{ AppDefinition, PathId }
import mesosphere.util.RateLimiter
import scala.concurrent.duration.Deadline
import scala.collection.mutable
import scala.collection.immutable.Seq
import scala.collection.Jav... |
import {getCorrelator} from './utils';
import {LIFECYCLE_STAGES} from '../../../extensions/amp-a4a/0.1/amp-a4a';
import {dev} from '../../../src/log';
import {serializeQueryString} from '../../../src/url';
import {getTimingDataSync} from '../../../src/service/variable-source';
import {urlReplacementsForDoc} from '../... |
' 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.
Imports Microsoft.CodeAnalysis.Editor.UnitTests.SignatureHelp
Imports Microsoft.CodeAnalysis.Editor.UnitTests.Workspac... |
#include <osrm/Reply.h>
#include "../../Util/StringUtil.h"
namespace http
{
void Reply::SetSize(const unsigned size)
{
for (Header &h : headers)
{
if ("Content-Length" == h.name)
{
h.value = UintToString(size);
}
}
}
// Sets the size of the uncompressed output.
void... |
package com.lesmtech.navigationmenu.library;
import android.content.Context;
import android.os.Handler;
import android.util.AttributeSet;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.Animation;
import android.view.an... |
<!DOCTYPE html>
<html>
<!--
Copyright 2010 The Closure Library Authors. All Rights Reserved.
Use of this source code is governed by the Apache License, Version 2.0.
See the COPYING file for details.
-->
<head>
<title>goog.ui.DimensionPicker</title>
<script src="../base.js"></script>
<script>
goog.require('go... |
<!DOCTYPE html><meta charset="UTF-8"><meta http-equiv="Content-Language" content="en" /><title>License</title><link href="dossier.css" rel="stylesheet" type="text/css"><div id="main-wrapper"><input type="checkbox" id="sidenav-toggle" /><main><header><h1>License</h1></header><pre><table class="licensefile"><tbody><tr><t... |
apt-get -y update
apt-get -y install python-software-properties
add-apt-repository -y ppa:ondrej/php5-oldstable
apt-get -y update
# set up a silent install of MySQL
dbpass=$1
SharedStorageAccountName=$2
SharedAzureFileName=$3
FullNameOfSite=$4
ShortNameOfSite=$5
MoodleAdminUser=$6
MoodleAdminPass=$7
MoodleAdminEmail=$... |
/**
* ActivateProducts.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter.
*/
package com.google.api.ads.dfp.axis.v201411;
/**
* The action used to activate products.
*/
public class ActivateProducts extends com.google.api.ads.dfp.axis.v2014... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
namespace Glass.Sitecore.Mapper
{
/// <summary>
/// This is used to fake the System.Reflection.PropertyInfo class when needed.
/// </summary>
public class FakePropertyInfo : PropertyInfo
... |
package org.apache.hadoop.hdfs.server.namenode;
import static org.junit.Assert.*;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.... |
using Xunit;
using System;
using System.Reflection;
using System.Collections.Generic;
#pragma warning disable 0414
namespace System.Reflection.Tests
{
public class MethodInfoPropertyTests
{
//Verify ReturnType for Method GetMethod
[Fact]
public static void TestReturnType1()
{
... |
import upperFirst from 'lodash/upperFirst';
import { AssociationError } from '../errors/index.js';
import type {
Model,
CreateOptions,
CreationAttributes,
Filterable,
FindOptions,
InstanceUpdateOptions,
Transactionable,
ModelStatic,
AttributeNames, UpdateValues, Attributes,
} from '../model';
import {... |
module EasyLocalizedModel::ActsAsLocalized
module Assessors
include Paramix::Parametric
parameterized do |params|
params[:fields].each do |field|
# Override the assessor
define_method "#{field}=" do |value|
send "set_#{field}", value
end
# Extra assessor for f... |
A UI theme to complement the [gruvbox](https://atom.io/themes/gruvbox) syntax theme for Atom, by Caleb Land, which is in turn based on the original [vim theme](https://github.com/morhetz/gruvbox) by Pavel Pertsev.
## Recommendations
* switch to Atom's custom title-bar functionality, found at the bottom of the `Core Se... |
<!-- BEGIN MUNGE: UNVERSIONED_WARNING -->
<!-- BEGIN STRIP_FOR_RELEASE -->
<img src="http://kubernetes.io/img/warning.png" alt="WARNING"
width="25" height="25">
<img src="http://kubernetes.io/img/warning.png" alt="WARNING"
width="25" height="25">
<img src="http://kubernetes.io/img/warning.png" alt="WARNING"... |
import subprocess as sp
import os
from nbconvert.preprocessors import ClearOutputPreprocessor
from nbformat import read, write
from nbformat.v4 import new_notebook, new_code_cell
from copy import deepcopy
def run_command(cmd, retcode=0):
p = sp.Popen(cmd, stdout=sp.PIPE, stderr=sp.STDOUT)
code = p.wait()
... |
.theme-amber .navbar {
background-color: #FFC107; }
.theme-amber .navbar-brand {
color: #fff; }
.theme-amber .navbar-brand:hover {
color: #fff; }
.theme-amber .navbar-brand:active {
color: #fff; }
.theme-amber .navbar-brand:focus {
color: #fff; }
.theme-amber .nav > li > a {
color: #fff; }
... |
<html lang="en" >
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Angular Material style sheet -->
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/angular_material/1.1.0/angular-material.min.css">
<!-- Angular Material requires Angul... |
<?php
/*
V5.19 23-Apr-2014 (c) 2000-2014 John Lim. All rights reserved.
Released under both BSD license and Lesser GPL library license.
Whenever there is any discrepancy between the two licenses,
the BSD license will take precedence.
Latest version is available at http://adodb.sourceforge.net
Portable ver... |
<?php
namespace Pimcore\Model\User\Permission\Definition;
use Pimcore\Model;
class Listing extends Model\Listing\AbstractListing {
/**
* Contains the results of the list. They are all an instance of User\Permission\Definition
*
* @var array
*/
public $definitions = array()... |
It is developer documentation. See [user documentation](https://www.electron.build/multi-platform-build#docker).
# Build
`pnpm docker-images`
# Notes
* We use [named data volume](https://madcoda.com/2016/03/docker-named-volume-explained/) instead of mounted host directory to store `node_modules` because NPM is unre... |
package mf.org.apache.xerces.impl.xs.traversers;
import mf.org.apache.xerces.impl.xs.SchemaGrammar;
import mf.org.apache.xerces.impl.xs.SchemaSymbols;
import mf.org.apache.xerces.impl.xs.XSAnnotationImpl;
import mf.org.apache.xerces.impl.xs.XSNotationDecl;
import mf.org.apache.xerces.impl.xs.util.XSObjectLis... |
package jiguang.chat.view.listview;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewParent;
/**
*
* the view that wrapps a divider header and a normal... |
package org.apache.sling.hc.core.impl;
import java.lang.management.ManagementFactory;
import javax.management.AttributeNotFoundException;
import javax.management.InstanceNotFoundException;
import javax.management.MBeanException;
import javax.management.MBeanServer;
import javax.management.MalformedObjectNameExceptio... |
#include <QLabel>
#include <QTableView>
#include <QStandardItemModel>
#include <QMovie>
class CExpressionPicker : public QTableView
{
Q_OBJECT
public:
enum ExpressionRole
{
ExpressionRole_GroupId = Qt::UserRole + 1,
ExpressionRole_Id = Qt::UserRole + 2,
Expressio... |
package org.apache.hadoop.hbase.coordination;
import java.io.IOException;
import java.util.Set;
import java.util.concurrent.ConcurrentMap;
import org.apache.hadoop.hbase.ServerName;
import org.apache.hadoop.hbase.master.MasterServices;
import org.apache.hadoop.hbase.master.SplitLogManager.ResubmitDirective;
import ... |
require 'strscan'
module ActiveSupport #:nodoc:
module CoreExtensions #:nodoc:
module String #:nodoc:
# Custom string iterators
module Iterators
# Yields a single-character string for each character in the string.
# When $KCODE = 'UTF8', multi-byte characters are yielded appropriately... |
package org.commonjava.indy.httprox;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.junit.Assert.assertThat;
import java.io.InputStream;
import java.util.Collection;
import java.util.Collections;
import java.util.Set;
import org.apache.common... |
describe("", function() {
var rootEl;
beforeEach(function() {
rootEl = browser.rootEl;
browser.get("build/docs/examples/example-example24/index-jquery.html");
});
it('should calculate expression in binding', function() {
expect(element(by.binding('1+2')).getText()).toEqual('1+2=3');
});
}); |
package openapi
import (
"strings"
genericfeatures "k8s.io/apiserver/pkg/features"
utilfeature "k8s.io/apiserver/pkg/util/feature"
"k8s.io/kube-openapi/pkg/common"
"k8s.io/kube-openapi/pkg/schemamutation"
"k8s.io/kube-openapi/pkg/validation/spec"
)
// enumTypeDescriptionHeader is the header of enum section i... |
package org.vaadin.addons.rinne.converters
import java.util.Locale
import com.vaadin.data.util.converter.Converter
object Converters {
lazy val anyToOption = new Converter[Object, Object] {
override def getModelType: Class[Object] = classOf[Object]
override def getPresentationType: Class[Object] = classO... |
package com.example.android.asynctaskloader;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.EditText;
import android.widget.ProgressBar;
import android.widge... |
/*! UIkit 2.20.3 | 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
... |
"""Tests for the Kira integration."""
|
package checkers
import (
"go/ast"
"github.com/go-critic/go-critic/checkers/internal/astwalk"
"github.com/go-critic/go-critic/framework/linter"
"golang.org/x/exp/typeparams"
)
func init() {
var info linter.CheckerInfo
info.Name = "hugeParam"
info.Tags = []string{"performance"}
info.Params = linter.CheckerPar... |
package adapter.inter;
public class Mp3 implements MediaPlayer{
@Override
public void play() {
System.out.println("Playing MP3 File");
}
}
|
package com.impetus.kundera.tests.file.dao;
import java.io.File;
import java.io.IOException;
import junit.framework.Assert;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import com.google.common.io.Files;
import com.impetus.kundera.tests.file.entities.ProfilePicture;
/**
* Test case for... |
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else if (typeof module === 'object' && module.exports) {
// Node/CommonJS
module.exports = function( root, jQuery ) {
if (... |
using System;
using System.Collections.Generic;
using System.Text;
namespace Utilities.ContactManagement
{
public abstract class ContactManagerBase
{
public delegate void ContactManagerFailureEventHandler(object source, Exception ex);
public event ContactManagerFailureEventHand... |
package org.elasticsearch.action.search;
import org.elasticsearch.client.Client;
import org.elasticsearch.client.transport.TransportClient;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.xcontent.XContentBuilder;
import org.elasticsearch.common.xcontent.XContentFactory;
import org... |
process.throwDeprecation = true
const electron = require('electron')
const app = electron.app
const crashReporter = electron.crashReporter
const ipcMain = electron.ipcMain
const dialog = electron.dialog
const BrowserWindow = electron.BrowserWindow
const protocol = electron.protocol
const webContents = electron.webCont... |
=head1 LICENSE
Copyright [1999-2014] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
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/licen... |
============================
Creating an Analysis
============================
For an overview of this process, see
the `demonstration video <http://youtu.be/n2M5F0EjISg>`_.
To create an analysis, start with the following steps:
* Log in to Flow (or first register for an account).
* Navigate to the Data Manageme... |
package org.elasticsearch.index.mapper;
/**
*/
public interface DocumentTypeListener {
/**
* Invoked just before a new document type has been created.
*
* @param mapper The new document mapper of the type being added
*/
void beforeCreate(DocumentMapper mapper);
/**
* Invoked j... |
<?php
namespace Zend\Cache\Storage;
/**
* @category Zend
* @package Zend_Cache
* @subpackage Storage
*/
interface ClearExpiredInterface
{
/**
* Remove expired items
*
* @return boolean
*/
public function clearExpired();
}
|
<?php
class user_controller_logout extends core_controller_abstract
{
public function index()
{
}
public function post()
{
$user = factories::get()->obj('session_model_user');
$user->logout();
$request = factories::get()->obj('core_model_request');
$reques... |
(function(module) {
mifosX.controllers = _.extend(module, {
AddHolController: function(scope, resourceFactory, location,dateFilter) {
scope.offices = [];
scope.holidays = [];
scope.date = {};
scope.date.first = new Date();
scope.date.second = new D... |
class ClassFolder::InlineClass
end
|
/**************************************************************************//**
* @file cmsis_armcc.h
* @brief CMSIS Cortex-M Core Function/Instruction Header File
* @version V4.30
* @date 20. October 2015
******************************************************************************/
/* Copyrigh... |
<?php
namespace PhpOffice\PhpWord\Element;
use PhpOffice\PhpWord\Style\Section as SectionStyle;
class Section extends AbstractContainer
{
/**
* @var string Container type
*/
protected $container = 'Section';
/**
* Section style
*
* @var \PhpOffice\PhpWord\Style\Section
*/
... |
<?xml version="1.0" encoding="UTF-8"?>
<faces-config
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
version="2.0">
</faces-config>
|
(function($) {
$.fn.fullpage = function(options) {
// Create some defaults, extending them with any options that were provided
options = $.extend({
//navigation
'menu': false,
'anchors':[],
'navigation': false,
'navigationPosition': 'right',
'navigationColor': '#000',
'navigation... |
namespace boost {
namespace archive {
// do not derive from this class. If you want to extend this functionality
// via inhertance, derived from binary_oarchive_impl instead. This will
// preserve correct static polymorphism.
class binary_woarchive :
public binary_oarchive_impl<
binary_woarchive, s... |
import foo from './foo.js';
import bar from './bar.js';
export { foo, bar }; |
/**
* @license AngularJS v1.7.0
* (c) 2010-2018 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, angular) {'use strict';
var $resourceMinErr = angular.$$minErr('$resource');
// Helper functions and regex to lookup a dotted path on an object
// stopping at undefined/null. The path must be com... |
<ul class="list-inline social-buttons">
{% for network in site.social %}
<li><a href="{{site.baseurl}}{{ network.url }}" target="_blank"><i class="fa fa-{{ network.title }} fa-fw"></i></a></li>
{% endfor %}
</ul>
|
package org.onosproject.pcepio.protocol;
import java.util.LinkedList;
import org.jboss.netty.buffer.ChannelBuffer;
import org.onosproject.pcepio.exceptions.PcepParseException;
import org.onosproject.pcepio.types.PcepObjectHeader;
import org.onosproject.pcepio.types.PcepValueType;
/**
* Abstraction of an entity pro... |
package org.elasticsoftware.elasticactors.rabbitmq.cpt;
import com.rabbitmq.client.AMQP;
import com.rabbitmq.client.AlreadyClosedException;
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.DefaultConsumer;
import com.rabbitmq.client.Envelope;
import com.rabbitmq.client.MessageProperties;
import com.rab... |
package v1alpha1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
)
const GroupName = "rbac.authorization.k8s.io"
// SchemeGroupVersion is group version used to register these objects
var SchemeGroupVersion = schema.GroupVersion{Gr... |
module Mongoid
module Fields
class ForeignKey < Standard
# Adds the atomic changes for this type of resizable field.
#
# @example Add the atomic changes.
# field.add_atomic_changes(doc, "key", {}, [], [])
#
# @todo: Durran: Refactor, big time.
#
# @param [ Docume... |
#pragma once
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include "mscorlib_System_Object4170816371.h"
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "... |
from wordinserter.operations import Table
def normalize_table_colspans(tokens):
for token in tokens:
if isinstance(token, Table):
normalize_table(token)
token.update_child_widths()
else:
normalize_table_colspans(token.children)
def normalize_table(table: Table... |
<?xml version="1.0" encoding="UTF-8"?>
<activity>
<id type="integer">346167313</id>
<version type="integer">11</version>
<event_type>story_update</event_type>
<occurred_at type="datetime">2013/04/17 20:18:54 UTC</occurred_at>
<author>Leo Franchi</author>
<project_id type="integer">807213</projec... |
<?php
namespace PDepend\Input;
/**
* Whitelist filter that accepts files by their file extension.
*
* @copyright 2008-2015 Manuel Pichler. All rights reserved.
* @license http://www.opensource.org/licenses/bsd-license.php BSD License
*/
class ExtensionFilter implements Filter
{
/**
* Whitelist of accep... |
'use strict';
const chai = require('chai')
, spies = require('chai-spies');
const chaiAsPromised = require('chai-as-promised');
const assert = chai.assert;
const expect = chai.expect;
chai.use(spies);
chai.use(chaiAsPromised);
|
from builtins import object
from contextlib import contextmanager
from threading import Timer
import threading
from redis import StrictRedis, RedisError
import logging
import socket
import time
import os
import signal
import kayvee.logger as logger
class ReserveException(Exception):
pass
class ReserveResource(obj... |
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"
[<!ENTITY identifiableProperties SYSTEM "classpath://org/hisp/dhis/common/identifiableProperties.hbm">]
>
<hibernate-mapping>
<class name="org.hisp.dhi... |
BlazeComponent.extendComponent({
template: function() {
return 'boardList';
},
boards: function() {
return Boards.find({}, {
sort: ['title']
});
},
starredBoards: function() {
var cursor = Boards.find({
_id: { $in: Meteor.user().profile.starredBoards || [] }
}, {
sort: ... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
package org.hawkular.alerts.bus.listener;
import javax.ejb.ActivationConfigProperty;
import javax.ejb.EJB;
import javax.ejb.MessageDriven;
import javax.jms.MessageListener;
import org.hawkular.alerts.api.services.AlertsService;
import org.hawkular.alerts.bus.messages.AlertDataMessage;
import org.hawkular.bus.common.... |
require 'rails_helper'
RSpec.describe StaticController, type: :controller do
render_views
subject{ response }
describe 'GET thank_you' do
let(:contribution) { FactoryGirl.create(:contribution) }
context 'with a session with contribution' do
before do
request.session[:thank_you_contributio... |
<?php
namespace Symfony\Component\DependencyInjection;
use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
use Symfony\Component\DependencyInjection\Exception\OutOfBoundsException;
/**
* Definition represents a service definition.
*
* @author Fabien Potencier <fabien@symfony.com>
*
*... |
// +k8s:deepcopy-gen=package
package testing
|
/**
* <a href="https://zookeeper.apache.org/">ZooKeeper</a>-based automatic service registration.
*/
@NonNullByDefault
package com.linecorp.armeria.server.zookeeper;
import com.linecorp.armeria.common.annotation.NonNullByDefault;
|
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#include "cbase.h"
#include "soundent.h"
#include "npcevent.h"
#include "globalstate.h"
#include "ai_squad.h"
#include "ai_tacti... |
import logging
import CsHelper
from CsFile import CsFile
from CsProcess import CsProcess
from cs.CsDatabag import CsDataBag
HAPROXY_CONF_T = "/etc/haproxy/haproxy.cfg.new"
HAPROXY_CONF_P = "/etc/haproxy/haproxy.cfg"
class CsLoadBalancer(CsDataBag):
""" Manage Load Balancer entries """
def process(self):
... |
package org.apache.camel.impl;
import org.apache.camel.CamelContext;
import org.apache.camel.NoFactoryAvailableException;
import org.apache.camel.NoSuchLanguageException;
import org.apache.camel.spi.FactoryFinder;
import org.apache.camel.spi.Language;
import org.apache.camel.spi.LanguageResolver;
import org.slf4j.Log... |
package org.wso2.carbon.directory.server.manager;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.core.AbstractAdmin;
import org.wso2.carbon.directory.server.manager.common.ServerPrinciple;
import org.wso2.carbon.directory.server.manager.internal.LDAPServer... |
package rafthttp
import (
"go.etcd.io/etcd/client/pkg/v3/types"
"go.etcd.io/etcd/raft/v3/raftpb"
"go.uber.org/zap"
)
type remote struct {
lg *zap.Logger
localID types.ID
id types.ID
status *peerStatus
pipeline *pipeline
}
func startRemote(tr *Transport, urls types.URLs, id types.ID) *remote {... |
<?php
/** Zend_Log_Formatter_Interface */
require_once 'Zend/Log/Formatter/Interface.php';
/**
* @category Zend
* @package Zend_Log
* @subpackage Formatter
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New ... |
"""Git implementation of _version.py."""
import errno
import os
import re
import subprocess
import sys
def get_keywords():
"""Get the keywords needed to look up the version information."""
# these strings will be replaced by git during git-archive.
# setup.py/versioneer.py will grep for the variable name... |
<?php
final class PhabricatorProjectsEditField
extends PhabricatorTokenizerEditField {
protected function newDatasource() {
return new PhabricatorProjectDatasource();
}
protected function newHTTPParameterType() {
return new AphrontProjectListHTTPParameterType();
}
protected function newConduitPa... |
package com.jivesoftware.os.routing.bird.server.oauth;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import java.util.Arrays;
import java.util.List;
import org.glassfish.hk2.api.ActiveDescriptor;
import org.glassfish.hk2.api.Descriptor;
import org.glassfish.hk2.api.Filter;
import org.glassfish... |
<?php
final class ManiphestTaskFulltextEngine
extends PhabricatorFulltextEngine {
protected function buildAbstractDocument(
PhabricatorSearchAbstractDocument $document,
$object) {
$task = $object;
$document->setDocumentTitle($task->getTitle());
$document->addField(
PhabricatorSearchDo... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
Persoonia 1(1): 90 (1959)
#### Original name
Cyphella pallida Berk. & Broome, 1873
### Remarks
null |
#region License
// Copyright (c) 2007 James Newton-King
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without
// restriction, including without limitation the rights to use,
// copy,... |
Rails.application.routes.draw do
get 'welcome/index'
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".
# You can have the root of your site routed with "root"
#root 'welcome#index'
# Example of regular route:
# get... |
namespace extensions {
class SocketPermission : public SetDisjunctionPermission<SocketPermissionData,
SocketPermission> {
public:
struct CheckParam : APIPermission::CheckParam {
CheckParam(content::SocketPermissionRequest::OperationType type,
cons... |
package org.apache.cassandra.cql3;
import com.google.common.base.Objects;
import org.apache.cassandra.db.marshal.AbstractType;
import org.apache.cassandra.db.marshal.ReversedType;
import java.util.Collection;
import java.util.Iterator;
public class ColumnSpecification
{
public final String ksName;
public fi... |
package org.unitils;
import org.testng.IHookCallBack;
import org.testng.IHookable;
import org.testng.ITestResult;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
import org.unitils.cor... |
#include "OgreStableHeaders.h"
#include "OgreWindowEventUtilities.h"
#include "OgreRenderWindow.h"
#include "OgreLogManager.h"
#include "OgreRoot.h"
#include "OgreException.h"
#include "OgreStringConverter.h"
#if OGRE_PLATFORM == OGRE_PLATFORM_LINUX
#include <X11/Xlib.h>
void GLXProc( Ogre::RenderWindow *win, const XE... |
**OpenCL™ Plug-in Sample** demonstrates how to use **Media SDK** (hereinafter referred to as "**SDK**") API to implement a video-processing filter through Intel® OpenCL™ technology and make the filter available to participate in an **SDK** pipeline.
Features
* The **OpenCL™ Plug-in Sample** implements 180-degree pi... |
<?php
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
namespace Twilio\Rest\Monitor\V1;
use Twilio\InstanceContext;
use Twilio\Values;
use Twilio\Version;
class AlertContext extends InstanceContext {
/**
* Initialize the AlertContext
*
... |
require File.expand_path('../helper', __FILE__)
begin
old_stderr = $stderr
dev_null = File.exist?('/dev/null') ? '/dev/null' : 'NUL'
$stderr = open dev_null, 'w'
require 'rake/rdoctask'
ensure
$stderr.close
$stderr = old_stderr
end
class TestRakeRDocTask < Rake::TestCase
include Rake
def setup
sup... |
redirectMouseToTouch = function(type, originalEvent)
{
//stop propagation, and remove default behavior for everything but INPUT, TEXTAREA & SELECT fields
// originalEvent.stopPropagation();
if (originalEvent.target.tagName.toUpperCase().indexOf("SELECT") == -1 &&
originalEvent.target.tagName.toUpperC... |
import optparse
import logging
import sys
from blinkpy.tool.grammar import pluralize
_log = logging.getLogger(__name__)
class Command(object):
# These class variables can be overridden in subclasses to set specific command behavior.
name = None
show_in_main_help = False
help_text = None
argument... |
//laxbreak is true to allow build pragmas to change some statements.
/*jslint plusplus: false, laxbreak: true */
/*global window: false, document: false, navigator: false,
setTimeout: false, traceDeps: true, clearInterval: false, self: false,
setInterval: false, importScripts: false */
//>>includeStart("useStrict", p... |