text stringlengths 3 1.05M |
|---|
<?php defined('SYSPATH') OR die('No direct script access.');
class Upload_Server_Rackspace extends Kohana_Upload_Server_Rackspace {}
|
MXNet has been developed and is used by a group of active community members.
Please contribute to improve the project.
After your patch has been merged, remember to add your name to [CONTRIBUTORS.md](https://github.com/apache/incubator-mxnet/blob/master/CONTRIBUTORS.md).
## Code Contribution
### Core Library
- Follo... |
package org.sakaiproject.jsf.help;
import javax.faces.component.UIComponent;
import javax.faces.component.UIData;
import javax.faces.context.FacesContext;
import javax.faces.el.ValueBinding;
import javax.faces.webapp.UIComponentTag;
/**
* context sensitive UI component tag
* @version $Id$
*/
public class Context... |
<?php
/**
* ControllerHTML class
*/
namespace pqwe\Controller;
use pqwe\Exception\PqweMVCException;
use pqwe\View\View;
use pqwe\View\IView;
use pqwe\Routing\RouteMatch;
/**
* Controller specialized for HTML actions
*/
class ControllerHTML extends ControllerBase {
/** @var \pqwe\View\View $layoutView View for... |
package sha3
// spongeDirection indicates the direction bytes are flowing through the sponge.
type spongeDirection int
const (
// spongeAbsorbing indicates that the sponge is absorbing input.
spongeAbsorbing spongeDirection = iota
// spongeSqueezing indicates that the sponge is being squeezed.
spongeSqueezing
)
... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
namespace ODataValidator.Rule
{
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Lin... |
<?php
/**
* Page for resetting a forgotten password
*
* @package Elgg.Core
* @subpackage Registration
*/
if (elgg_is_logged_in()) {
forward();
}
$user_guid = get_input('u');
$code = get_input('c');
$user = get_entity($user_guid);
// don't check code here to avoid automated attacks
if (!$user instanceof ElggUs... |
create index ACT_IDX_AUTH_RESOURCE_ID on ACT_RU_AUTHORIZATION(RESOURCE_ID_);
|
package com.amazonaws.services.redshift.model.transform;
import org.w3c.dom.Node;
import javax.annotation.Generated;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.transform.StandardErrorUnmarshaller;
import com.amazonaws.services.redshift.model.LimitExceededException;
@Generated("com.amazonaws... |
<?php
final class PhabricatorProfileMenuItemConfigurationTransaction
extends PhabricatorApplicationTransaction {
const TYPE_PROPERTY = 'profilepanel.property';
const TYPE_ORDER = 'profilepanel.order';
const TYPE_VISIBILITY = 'profilepanel.visibility';
public function getApplicationName() {
return 'sear... |
import click
from collections import Counter
import boto3
import logging
import gzip
import time
import os
import sqlite3
from datetime import timedelta, datetime
from concurrent.futures import ThreadPoolExecutor, as_completed
from flowrecord import FlowRecord, REJECT
from influxdb import InfluxDBClient
from metrics ... |
/*
* Xero Payroll AU API
* This is the Xero Payroll API for orgs in Australia region.
*
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.xero.models.payrollau;... |
<?xml version="1.0" encoding="utf-8" ?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" >
<shape>
<solid
android:color="#de1e7d" />
<stroke
android:width="1dp"
android:color="#99f... |
class Profile;
namespace ash {
namespace test {
class ChromeScreenshotGrabberTest;
} // namespace test
} // namespace ash
class ChromeScreenshotGrabber : public ash::ScreenshotDelegate,
public ui::ScreenshotGrabberDelegate,
public ui::ScreenshotGrabber... |
<?php
/**
* @see Zend_Gdata_Extension
*/
require_once 'Zend/Gdata/Extension.php';
/**
* @see Zend_Gdata_Photos
*/
require_once 'Zend/Gdata/Photos.php';
/**
* Represents the gphoto:quotaLimit element used by the API.
* This class represents the number of bytes of storage available for
* a user.
*
* @catego... |
<?php
namespace ZendTest\Validator\Db;
use ArrayObject;
use Zend\Db\Adapter\Adapter;
use Zend\Validator\Db\RecordExists;
/**
* @category Zend
* @package Zend_Validator
* @subpackage UnitTests
* @group Zend_Validator
*/
class RecordExistsTest extends \PHPUnit_Framework_TestCase
{
/**
* Return... |
<?php
namespace Symfony\Component\HttpKernel\CacheWarmer;
/**
* Interface for classes able to warm up the cache.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
interface CacheWarmerInterface extends WarmableInterface
{
/**
* Checks whether this warmer is optional or not.
*
* Optional wa... |
.datepicker {
padding: 4px;
border-radius: 4px;
direction: ltr;
}
.datepicker-inline {
width: 220px;
}
.datepicker.datepicker-rtl {
direction: rtl;
}
.datepicker.datepicker-rtl table tr td span {
float: right;
}
.datepicker-dropdown {
top: 0;
left: 0;
}
.datepicker-dropdown:before {
content: '';
di... |
import React, { PropTypes } from 'react'
import styles from "../../pages/home/style.css";
const Filter = ({ onClick, selected, label }) => (
<li onClick={onClick}>
<input onChange={() => {}} checked={selected} type="checkbox"/>
<label className={styles.filter_label}>{label}</label>
</li>
)
Filter.propType... |
package org.apache.camel.component.netty4.http;
import org.apache.camel.CamelExecutionException;
import org.apache.camel.builder.RouteBuilder;
import org.junit.Test;
public class NettyHttpSimpleBasicAuthTest extends BaseNettyTest {
@Override
public void setUp() throws Exception {
System.setProperty(... |
<?php
/**
* Represents a Token.
*
* @package twig
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/
class Twig_Token
{
protected $value;
protected $type;
protected $lineno;
const EOF_TYPE = -1;
const TEXT_TYPE = 0;
const BLOCK_START_TYPE = 1;
const... |
.. _str: https://docs.python.org/2/library/stdtypes.html
.. _object: https://docs.python.org/2/library/stdtypes.html
.. _vmodl.DynamicData: ../../vmodl/DynamicData.rst
vim.option.OptionValue
======================
Describes the key/value pair of a configured option.
:extends: vmodl.DynamicData_
Attributes:
k... |
/*! algoliasearch 3.9.1 | © 2014, 2015 Algolia SAS | github.com/algolia/algoliasearch-client-js */
(function(f){var g;if(typeof window!=='undefined'){g=window}else if(typeof self!=='undefined'){g=self}g.ALGOLIA_MIGRATION_LAYER=f()})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]... |
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="com.glaf.base.modules.others.model">
<class name="Audit"
table="Audit"
dynamic-update="true"
... |
class DefaultMethods implements Something {
@java.lang.Override
public void något() {
}
@java.lang.Override
public void iets() {
}
@java.lang.Override
public void etwas() {
}
}
interface Something {
default void något() {
System.out.println("1");
}
default void iets() {
System.ou... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... |
/*! angular-google-maps 1.2.0 2014-07-30
* AngularJS directives for Google Maps
* git: https://github.com/nlaplante/angular-google-maps.git
*/
/**
* @name InfoBox
* @version 1.1.12 [December 11, 2012]
* @author Gary Little (inspired by proof-of-concept code from Pamela Fox of Google)
* @copyright Copyright 201... |
package org.elasticsearch.xpack.security.operator;
import org.elasticsearch.action.admin.cluster.settings.ClusterUpdateSettingsAction;
import org.elasticsearch.action.admin.cluster.settings.ClusterUpdateSettingsRequest;
import org.elasticsearch.common.settings.ClusterSettings;
import org.elasticsearch.common.setting... |
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Editor;
using Microsoft.VisualStudio.Text.Outlining;
using Microsoft.VisualStudio.Utilities;
using Roslyn.Utilities;
namespace Microsoft.CodeAnalysis.Editor.Shared.Extensions
{
in... |
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">ThreadingAsyncTask</string>
<string name="load_icon_string">Load Icon</string>
<string name="other_button_string">Other Button</string>
<string name="image_desc_string">image</string>
</resources>
|
"""
=============================
Ledoit-Wolf vs OAS estimation
=============================
The usual covariance maximum likelihood estimate can be regularized
using shrinkage. Ledoit and Wolf proposed a close formula to compute
the asymptotical optimal shrinkage parameter (minimizing a MSE
criterion), yielding the ... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Test NeDB persistence load in the browser</title>
<link rel="stylesheet" href="mocha.css">
</head>
<body>
<div id="results"></div>
<script src="./localforage.js"></script>
<script src="./async.js"></script>
<script src="../out/nedb.js"></script>
... |
<?php
namespace Core;
use Core\View;
/**
* Main Controller Engine Class
*
*/
class Controller {
/**
* @var string $view The view HTML result.
*/
protected $view;
/**
* @var string $layout The layout View File used in the Application.
*/
protected $layout = 'LayoutAdmin';
/... |
<!--
Copyright (c) Microsoft Corporation. All rights reserved
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link rel="stylesheet" href="/css/scenario7_syncDevice.css">
<script src="/js/scenario7_syncDevice.js"></script>
</head>
<body class="win-type-body">
<... |
#include "native_client/tests/inbrowser_test_runner/test_runner.h"
#include <stdio.h>
#include <string.h>
#include "ppapi/native_client/src/shared/ppapi_proxy/ppruntime.h"
#include "ppapi/c/pp_bool.h"
#include "ppapi/c/pp_errors.h"
#include "ppapi/c/pp_var.h"
#include "ppapi/c/ppb_messaging.h"
#include "ppapi/c/pp... |
@import url(../../../template/css/cover.css);
/**
* Profile Unit Cover
*/
.bx-base-pofile-unit-with-cover {
display: inline-block;
overflow: hidden;
}
.bx-base-pofile-unit-cover {
display: -webkit-flex;
display: flex;
-webkit-align-items: center;
align-items: center;
-webkit-justify-cont... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
package com.microsoft.azure.management.sql;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* Defines values for DatabaseEditions.
*/
public final class DatabaseEditions {
/** Static value Web for DatabaseEditions. */
public static final DatabaseEditions WEB = new DatabaseEditions("Web");
/** ... |
<?php
/*
* This file is part of the Symfony framework.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Symfony\Tests\Bridge\Doctrine\Mapping\Driver;
abstract class AbstractDriverTest exte... |
require 'spec_helper'
module Spree
module Admin
describe TaxCategoriesController, :type => :controller do
stub_authorization!
describe 'GET #index' do
subject { spree_get :index }
it 'should be successful' do
expect(subject).to be_success
end
end
descr... |
import * as R from '../ramda/dist/index';
declare const string_predicate: R.Predicate<string>;
declare const string_number_preficate: (x: string, y: number) => boolean;
// @dts-jest:pass:snap
R.allPass([string_predicate, string_predicate]);
// @dts-jest:pass:snap
R.allPass([string_predicate, string_number_preficate])... |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>cattle-config-item-common</artifactId>
<parent>
... |
class PrefService;
class SigninAccountIdHelper;
class SigninClient;
class SigninManager : public SigninManagerBase {
public:
// The callback invoked once the OAuth token has been fetched during signin,
// but before the profile transitions to the "signed-in" state. This allows
// callers to load policy and prom... |
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#ifndef _FPDFSAVE_H_
#define _FPDFSAVE_H_
#include "fpdfview.h"
... |
from translator.toscalib.elements.entitytype import EntityType
from translator.toscalib.elements.properties import PropertyDef
SECTIONS = (DERIVED_FROM, PROPERTIES) = \
('derived_from', 'properties')
class CapabilityTypeDef(EntityType):
'''Tosca built-in capabilities type'''
def __init__(self, na... |
package com.amazonaws.auth;
import java.io.IOException;
import java.io.InputStream;
import com.amazonaws.AmazonClientException;
/**
* {@link AWSCredentialsProvider} implementation that loads AWS security
* credentials from a properties file on the classpath. The default
* constructor creates a credentials provid... |
package atom
// Atom is an integer code for a string. The zero value maps to "".
type Atom uint32
// String returns the atom's name.
func (a Atom) String() string {
start := uint32(a >> 8)
n := uint32(a & 0xff)
if start+n > uint32(len(atomText)) {
return ""
}
return atomText[start : start+n]
}
func (a Atom) s... |
package org.apache.activemq.openwire.v2;
import org.apache.activemq.command.BrokerId;
import org.apache.activemq.openwire.DataFileGeneratorTestSupport;
/**
* Test case for the OpenWire marshalling for BrokerId
*
*
* NOTE!: This file is auto generated - do not modify!
* if you need to make a change, plea... |
if True:
if True:
pass
<selection>foo</selection> = 2 |
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg_gray"
android:scrollbarThumbVertical="@android:color/transparent"
android:scrollbars... |
package executor_test
import (
"context"
. "github.com/pingcap/check"
"github.com/pingcap/failpoint"
"github.com/pingcap/tidb/domain"
"github.com/pingcap/tidb/infoschema"
"github.com/pingcap/tidb/kv"
"github.com/pingcap/tidb/sessionctx/variable"
"github.com/pingcap/tidb/types"
"github.com/pingcap/tidb/util/t... |
<!doctype html>
<!-- The DOCTYPE declaration above will set the -->
<!-- browser's rendering engine into -->
<!-- "Standards Mode". Replacing this declaration -->
<!-- with a "Quirks Mode" doctype is not supported. -->
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset... |
#include "nacl_io/kernel_intercept.h"
#include "nacl_io/kernel_wrap.h"
#if defined(PROVIDES_SOCKET_API) && !defined(__GLIBC__)
int shutdown(int fd, int how) {
return ki_shutdown(fd, how);
}
#endif /* defined(PROVIDES_SOCKET_API) && !defined(__GLIBC__) */
|
/**
* ReconciliationReportRowService.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.v201508;
public interface ReconciliationReportRowService extends javax.xml.rpc.Service {
public java.lang.String ... |
package lapack
import "gonum.org/v1/gonum/blas"
// Complex128 defines the public complex128 LAPACK API supported by gonum/lapack.
type Complex128 interface{}
// Float64 defines the public float64 LAPACK API supported by gonum/lapack.
type Float64 interface {
Dgecon(norm MatrixNorm, n int, a []float64, lda int, anor... |
<?php
/**
* @see Zend_Service_DeveloperGarden_Response_BaseType
*/
// require_once 'Zend/Service/DeveloperGarden/Response/BaseType.php';
/**
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @aut... |
import { get } from 'ember-metal/property_get';
import { set } from 'ember-metal/property_set';
import EmberObject from 'ember-runtime/system/object';
import EmberLocation from './api';
/**
@module ember
@submodule ember-routing
*/
let popstateFired = false;
/**
Ember.HistoryLocation implements the location API u... |
namespace {
// Will cause an UMA notification if the mode of the new tab page
// was changed to hide/show the most visited thumbnails.
// TODO(aa): Needs to be updated to match newest NTP - http://crbug.com/57440
void NotifySectionDisabled(int new_mode, int old_mode, Profile *profile) {
// If the oldmode HAD either ... |
package org.postgresql.pljava.test;
import java.io.File;
import java.io.IOException;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* PL/Java Test harness
*
* @author Thomas Hallgren
*/
public class TestPLJava
{
... |
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- template designed by Marco Von Ballmoos -->
<title>Docs For Class Services_JSON_EncDec_T... |
YUI.add('datatable-message', function (Y, NAME) {
/**
Adds support for a message container to appear in the table. This can be used
to indicate loading progress, lack of records, or any other communication
needed.
@module datatable
@submodule datatable-message
@since 3.5.0
**/
var Message;
/**
_API docs for this ex... |
ACCEPTED
#### According to
Index Fungorum
#### Published in
null
#### Original name
Puccinia smilacis-sieboldii Hirats. f.
### Remarks
null |
<center>
<img src="">
<span class="title"></span>
<div class="table middle left padding">
<div class="cell fit"><i class="material-icons">info</i></div>
<div class="cell"><p></p></div>
</div>
<div class="quiz table left padding">
<div class="row">
<div class="cell fit">
<span class="question-number"></span>
<... |
package org.joshy.gfx.node.geom3d;
import javax.media.opengl.GL2;
import javax.media.opengl.glu.GLU;
import javax.media.opengl.glu.GLUtessellatorCallback;
/**
* Created by IntelliJ IDEA.
* User: joshmarinacci
* Date: Apr 17, 2010
* Time: 10:09:15 AM
* To change this template use File | Settings | File Templates.... |
#ifndef __domGl_sampler3D_h__
#define __domGl_sampler3D_h__
#include <dae/daeDocument.h>
#include <dom/domTypes.h>
#include <dom/domElements.h>
#include <dom/domFx_sampler3D_common.h>
class DAE;
/**
* A three-dimensional texture sampler for the GLSL profile.
*/
class domGl_sampler3D_complexType : public domFx_s... |
<!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 (1.8.0_144) on Fri Oct 20 17:39:25 IST 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Interface uk.co.jem... |
require 'spec_helper'
describe Parslet::Atoms::DSL do
describe "deprecated methods" do
let(:parslet) { Parslet.str('foo') }
describe "<- #absnt?" do
slet(:absnt) { parslet.absnt? }
it '#bound_parslet' do
absnt.bound_parslet.should == parslet
end
it 'should be a negative lookah... |
cask :v1 => 'fpc' do
version '2.6.4'
sha256 '0ae534c83c2cfd25f4bfc856dd54e5f1f89c3f5e5cf7089bd0b62be2f5b9a83b'
# sourceforge.net is the official download host per the vendor homepage
url "http://downloads.sourceforge.net/freepascal/fpc-#{version}.intel-macosx.dmg"
name 'Free Pascal'
homepage 'http://www.fr... |
/*
* osxmain.m: main-program file of Mac OS X PuTTY.
*/
#import <Cocoa/Cocoa.h>
#define PUTTY_DO_GLOBALS /* actually _define_ globals */
#include "putty.h"
#include "osxclass.h"
/* ----------------------------------------------------------------------
* Global variables.
*/
AppController *controller;
/... |
<?php
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
namespace Twilio\Rest\Sync\V1\Service\SyncList;
use Twilio\ListResource;
use Twilio\Values;
use Twilio\Version;
/**
* PLEASE NOTE that this class contains beta products that are subject to change. Use... |
from bottle import route, run, template, static_file
def edit_configurations(host='localhost', port='8080'):
"Edit configurations via web interface"
run(host=host, port=port)
@route('/edit')
def edit_configurations_handler():
"Edit configurations handler"
return '<b>Hello</b>!'
@route('/static/<path:... |
/*!
* FullCalendar v2.1.0-beta2 Print Stylesheet
* Docs & License: http://arshaw.com/fullcalendar/
* (c) 2013 Adam Shaw
*/
/*
* Include this stylesheet on your page to get a more printer-friendly calendar.
* When including this stylesheet, use the media='print' attribute of the <link> tag.
* Make sure to includ... |
using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("DataAccessLayer")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("... |
require 'spec_helper'
describe VCR::InternetConnection do
describe '.available?' do
before(:each) do
described_class.send(:remove_instance_variable, :@available) if described_class.instance_variable_defined?(:@available)
end
def stub_pingecho_with(value)
VCR::Ping.stub(:pingecho).with("examp... |
package com.cloud.netapp.dao;
import java.util.List;
import javax.ejb.Local;
import org.apache.log4j.Logger;
import com.cloud.netapp.NetappVolumeVO;
import com.cloud.utils.db.Filter;
import com.cloud.utils.db.GenericDaoBase;
import com.cloud.utils.db.SearchBuilder;
import com.cloud.utils.db.SearchCriteria;
@Local(... |
package org.carrot2.util.attribute;
import static junit.framework.Assert.assertEquals;
import static org.fest.assertions.Assertions.assertThat;
import static org.fest.assertions.MapAssert.entry;
import java.util.Map;
import org.junit.Test;
import com.google.common.collect.Maps;
public class AttributeValueSetTes... |
<?php
/**
* Note: this Test only tests setting of NameIDFormat, add other tests if required
*/
class EngineBlock_Test_Corto_ProxyServerTest extends PHPUnit_Framework_TestCase
{
public function setup()
{
// Mock Global server object which for obvious reasons does not exist in a CLI environment
... |
package org.bouncycastle.crypto;
/**
* a wrapper for block ciphers with a single byte block size, so that they
* can be treated like stream ciphers.
*/
public class StreamBlockCipher
implements StreamCipher
{
private BlockCipher cipher;
private byte[] oneByte = new byte[1];
/**
* basic cons... |
// Type definitions for ratelimiter 2.1.1
// Project: https://github.com/tj/node-ratelimiter
// Definitions by: Aya Morisawa <https://github.com/AyaMorisawa>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import { RedisClient } from 'redis';
interface LimiterOption {
/**
* The identifier... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache Lic... |
package org.apache.flink.graph.drivers.parameter;
import org.apache.flink.api.java.utils.ParameterTool;
/**
* A {@link Parameter} storing a {@link String}.
*/
public class StringParameter
extends SimpleParameter<String> {
/**
* Set the parameter name and add this parameter to the list of parameters
* stored... |
cask :v1 => 'itunesscrobbler' do
version '0.6.0'
sha256 '01dcacb1738e824d853dab7825cee88b017f47a65f8e22fdbd7bf762802cc893'
url "http://www.easyclasspage.de/lastfm/files/iTunesScrobbler_#{version.gsub('.','')}.zip"
name 'iTunes (Radio) Scrobbler'
name 'iTunesScrobbler'
homepage 'http://www.easyclasspage.de/... |
#ifndef __MEMCHECK_H
#define __MEMCHECK_H
/* This file is for inclusion into client (your!) code.
You can use these macros to manipulate and query memory permissions
inside your own programs.
See comment near the top of valgrind.h on how to use them.
*/
#include "valgrind.h"
/* !! ABIWARNING !! ABIWA... |
/*
In NativeScript, the app.css file is where you place CSS rules that
you would like to apply to your entire application. Check out
http://docs.nativescript.org/ui/styling for a full list of the CSS
selectors and properties you can use to style UI components.
/*
In many cases you may want to use the NativeScript cor... |
/**
* @license AngularJS v1.1.5
* (c) 2010-2012 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, angular, undefined) {
'use strict';
/**
* @ngdoc overview
* @name ngMobile
* @description
* Touch events and other mobile helpers.
* Based on jQuery Mobile touch event handling (jquerymobile.c... |
/*
* colorcontent_reg.c
*
* This tests various color content functions, including a simple
* color quantization method.
*/
#include "string.h"
#include "allheaders.h"
l_int32 main(int argc,
char **argv)
{
l_uint32 *colors;
l_int32 ncolors;
l_float32 fcolor;
PIX *pix1... |
namespace System.Workflow.ComponentModel.Serialization
{
using System;
using System.IO;
using System.Xml;
using System.Reflection;
using System.Collections;
using System.Diagnostics;
using System.Globalization;
using System.Collections.Generic;
using System.Runtime.Serialization;
... |
[](https://cocoapods.org/pods/SmartDeviceLink-iOS)
[](https://cocoapods.org/pods/SmartDeviceLink-iOS)
[ {
return new AnonymousObservable(function (observer) {
return scheduler.scheduleWithRelative(normalizeTime(dueTime), function () {
observer.onNext(0);
observer.onCompleted();
});
});
}
|
import type { Container } from "../Container";
export declare class EventListeners {
private readonly container;
private readonly mouseMoveHandler;
private readonly touchStartHandler;
private readonly touchMoveHandler;
private readonly touchEndHandler;
private readonly mouseLeaveHandler;
pri... |
{% load rest_framework %}
<pre class="highlight shell" data-language="shell"><code>{% code bash %}# Install the command line client
$ pip install coreapi-cli{% endcode %}</code></pre>
|
package sqs
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/private/protocol/query"
)
// Welcome to the Amazon Simple Queue... |
module.exports = function(hljs) {
var KEYWORDS = {
keyword:
'abstract as val var vararg get set class object open private protected public noinline ' +
'crossinline dynamic final enum if else do while for when throw try catch finally ' +
'import package is in fun override companion reified inlin... |
export declare class Constants {
static STEP_EVERYTHING: number;
static STEP_FILTER: number;
static STEP_SORT: number;
static STEP_MAP: number;
static STEP_AGGREGATE: number;
static STEP_PIVOT: number;
static ROW_BUFFER_SIZE: number;
static LAYOUT_INTERVAL: number;
static KEY_BACKSPA... |
<?php
/**
* Storage engine for CakePHP caching
*
* @package Cake.Cache
*/
abstract class CacheEngine {
/**
* Settings of current engine instance
*
* @var array
*/
public $settings = array();
/**
* Contains the compiled string with all groups
* prefixes to be prepeded to every key in this cache engi... |
package org.apache.cassandra.hadoop.cql3;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.List;
import java.util.Map;
import org.apache.cassandra.hadoop.*;
import org.apache.hadoop.conf.*;
import org.apache.hadoop.mapreduce.*;
/**
* The <code>CqlOutputFormat</code> acts as a Hadoop-specif... |
<?php
namespace Symfony\Bridge\Doctrine\Form;
use Doctrine\Common\Persistence\ManagerRegistry;
use Symfony\Component\Form\AbstractExtension;
class DoctrineOrmExtension extends AbstractExtension
{
protected $registry;
public function __construct(ManagerRegistry $registry)
{
$this->registry = $r... |
/* underscore.string 3.2.1 | MIT licensed | http://epeli.github.com/underscore.string/ */
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=s... |
require 'spec_helper'
def reset_mongo_class(uploader = MongoUploader)
define_mongo_class('MongoUser') do
include Mongoid::Document
store_in :collection => 'users'
field :folder, :default => ''
mount_uploader :image, uploader
end
end
class MongoUploader < CarrierWave::Uploader::Base; end
class Anot... |
/**
* @license Angulartics v0.14.17
* (c) 2013 Luis Farzati http://luisfarzati.github.io/angulartics
* Contributed by http://github.com/L42y
* License: MIT
*/
!function(a){"use strict";a.module("angulartics.mixpanel",["angulartics"]).config(["$analyticsProvider",function(a){angulartics.waitForVendorApi("mixpanel",... |