text stringlengths 3 1.05M |
|---|
namespace IECoreHoudini
{
/// Converter which converts from a Houdini GU_Detail to an IECore::Group containing
/// any number of IECore::Primitives or IECore::Groups
class FromHoudiniGroupConverter : public IECoreHoudini::FromHoudiniGeometryConverter
{
public :
IE_CORE_DECLARERUNTIMETYPEDEXTENSION( FromHoudiniGrou... |
var rbush = require('rbush');
var merge = function(){
var output = {};
Array.prototype.slice.call(arguments).forEach(function(arg){
if(arg){
Object.keys(arg).forEach(function(key){
output[key]=arg[key];
});
}
});
return output;
};
var defaults = {
useSpatialIndex: true,
epsilon... |
import {default as foo} from "foo";
|
const PbxFile = require('xcode/lib/pbxFile');
const removeFromPbxReferenceProxySection = require('./removeFromPbxReferenceProxySection');
/**
* Removes file from static libraries
*
* Similar to `node-xcode` addStaticLibrary
*/
module.exports = function removeFromStaticLibraries(project, path, opts) {
const file ... |
var baseFindIndex = require('./_baseFindIndex'),
baseIteratee = require('./_baseIteratee'),
toInteger = require('./toInteger');
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max,
nativeMin = Math.min;
/**
* This method is like `_.fi... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="index, follow" />
<link href="http... |
package org.cloudata.core.commitlog;
import java.io.IOException;
public class PipeNormallyClosed extends IOException {
private static final long serialVersionUID = 1L;
public PipeNormallyClosed() {
}
}
|
var apigeeAccess = require('apigee-access');
module.exports = function(session){
// Initilize express's Store
var Store = session.Store;
console.log('initilizating session store...');
function ApigeeStore(options){
var self = this;
options = options || {};
Store.call(this, op... |
* * *
title: "Artist: Sequence" view: page_curriculum theme: none
* * *
<%= partial('curriculum_header', :unittitle=>'Course 1', :lesson=>8, :title=> 'Artist: Sequence', :unplugged=>false, :time=>30) %>
[περιεχόμενο]
[μαζί]
## Επισκόπηση μαθήματος
In this lesson students will take control of the Artist to comple... |
package ar.com.fernandospr.wns.model;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlValue;
/**
* From <a href="http://msdn.microsoft.com/en-us/library/windows/apps/br230845.aspx">http://msdn.microsoft.com/en-us/library/windows/apps... |
using System;
using System.ComponentModel;
using System.Globalization;
using System.Reflection;
namespace OpenRiaServices.DomainServices.Client
{
/// <summary>
/// Class representing an asynchronous operation.
/// </summary>
public abstract class OperationBase : INotifyPropertyChanged
{
pr... |
@interface MHButton : UIButton
@end
|
/**
* Module exports.
*/
/**
* Check if `obj` is an array.
*/
function isArray(obj) {
return '[object Array]' == {}.toString.call(obj);
}
/**
* Event emitter constructor.
*
* @api public.
*/
function EventEmitter(){};
/**
* Adds a listener.
*
* @api public
*/
EventEmitter.prototype.on = function (n... |
package gueei.binding.labs.validation.validators;
import gueei.binding.labs.validation.ValidatorBase;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import android.content.Context;
@Retention(RetentionPolicy.RUNTIME)
public @interface Required{
public Class<?> Valida... |
<!doctype html>
<title>CodeMirror: XML Autocomplete Demo</title>
<meta charset="utf-8"/>
<link rel=stylesheet href="../doc/docs.css">
<link rel="stylesheet" href="../lib/codemirror.css">
<link rel="stylesheet" href="../addon/hint/show-hint.css">
<script src="../lib/codemirror.js"></script>
<script src="../addon/hint/... |
#!/usr/bin/env luajit
local ffi = require("ffi")
cmark = ffi.load("libcmark")
ffi.cdef[[
char *cmark_markdown_to_html(const char *text, int len);
typedef enum {
/* Block */
CMARK_NODE_DOCUMENT,
CMARK_NODE_BLOCK_QUOTE,
CMARK_NODE_LIST,
CMARK_NODE_LIST_ITEM,
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.raw = undefined;
exports.default = loader;
var _path = require('path');
var _path2 = _interopRequireDefault(_path);
var _loaderUtils = require('loader-utils');
var _loaderUtils2 = _interopRequireDefault(_loaderUtils);
var _sche... |
package org.dg.globalSynchronization;
public class GraphOptimization {
public GraphOptimization() {
System.loadLibrary("g2o_stuff");
System.loadLibrary("g2o_core");
System.loadLibrary("g2o_ext_csparse");
System.loadLibrary("g2o_csparse_extension");
System.loadLibrary("g2o_solver_csparse");
System.loadLib... |
package compiler
import (
"errors"
"fmt"
"io/ioutil"
"log"
"net/http"
"net/url"
"path/filepath"
"strings"
yaml "gopkg.in/yaml.v2"
)
var fileCache map[string][]byte
var infoCache map[string]interface{}
var count int64
var verboseReader = false
var fileCacheEnable = true
var infoCacheEnable = true
func init... |
.medium-toolbar-arrow-under:after, .medium-toolbar-arrow-over:before {
display: none; }
.medium-editor-toolbar {
background-color: #fff;
background-color: rgba(255, 255, 255, 0.95);
border-radius: 5px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45); }
.medium-editor-toolbar li button {
min-width: 50px;
... |
from airflow.contrib.hooks.bigquery_hook import BigQueryHook
from airflow.models import BaseOperator
from airflow.utils.decorators import apply_defaults
class BigQueryToCloudStorageOperator(BaseOperator):
"""
Transfers a BigQuery table to a Google Cloud Storage bucket.
.. seealso::
For more detai... |
import {Observable} from '../../Observable';
import {share, ShareSignature} from '../../operator/share';
Observable.prototype.share = share;
declare module '../../Observable' {
interface Observable<T> {
share: ShareSignature<T>;
}
} |
/*
* Copyright 2004,2005 The Apache Software Foundation.
*
* 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 ... |
<!-- Please check if a similar issue already exists or has been closed before before opening your issue. -->
### Description
<!-- Provide a general description of the bug or feature -->
### Expected behavior
<!-- What you expected to happen -->
### Actual behavior
<!-- What actually happened -->
### Steps to Repr... |
package gob
import (
"bytes"
"errors"
"fmt"
"io"
"net"
"strings"
"testing"
"time"
)
// Types that implement the GobEncoder/Decoder interfaces.
type ByteStruct struct {
a byte // not an exported field
}
type StringStruct struct {
s string // not an exported field
}
type ArrayStruct struct {
a [8192]byte ... |
package org.codehaus.groovy.ast;
/**
* A special visitor for working with the structure of a class. In general, your
* will want to use the Abstract class based on this class {@link ClassCodeVisitorSupport}.
*
* @see org.codehaus.groovy.ast.ClassNode
* @see org.codehaus.groovy.ast.ClassCodeVisitorSupport
*
... |
/**
* \file uffs_find.c
* \brief find objects under dir
* \author Ricky Zheng, created 13th July, 2009
*/
#include <string.h>
#include <stdio.h>
#include "uffs_config.h"
#include "uffs/uffs_find.h"
#define TPOOL(dev) &((dev)->mem.tree_pool)
static void ResetFindInfo(uffs_FindInfo *f)
{
f->hash = 0;
f->work ... |
// Code generated by client-gen. DO NOT EDIT.
package fake
import (
rest "k8s.io/client-go/rest"
testing "k8s.io/client-go/testing"
v1 "k8s.io/kube-aggregator/pkg/client/clientset_generated/deprecated/typed/apiregistration/v1"
)
type FakeApiregistrationV1 struct {
*testing.Fake
}
func (c *FakeApiregistrationV... |
"use strict";
var React = require("./React");
var CSSCore = require("./CSSCore");
var ReactTransitionEvents = require("./ReactTransitionEvents");
var onlyChild = require("./onlyChild");
// We don't remove the element from the DOM until we receive an animationend or
// transitionend event. If the user screws up an... |
package org.wildfly.swarm.maven.utils;
import java.util.Map;
import org.eclipse.aether.RepositoryCache;
import org.eclipse.aether.RepositoryListener;
import org.eclipse.aether.RepositorySystemSession;
import org.eclipse.aether.SessionData;
import org.eclipse.aether.artifact.ArtifactTypeRegistry;
import org.eclipse.... |
0.4.5 / 2014-09-09
==================
* Improve call speed to functions using the function wrapper
* Support Node.js 0.6
0.4.4 / 2014-07-27
==================
* Work-around v8 generating empty stack traces
0.4.3 / 2014-07-26
==================
* Fix exception when global `Error.stackTraceLimit` is too low
... |
cask 'enolsoft-chm-view' do
version :latest
sha256 :no_check
url 'http://www.enolsoft.com/download/enolsoft-chm-view.dmg'
name 'Enolsoft CHM View'
homepage 'http://www.enolsoft.com/chm-view-for-mac.html'
app 'Enolsoft CHM View.app'
end
|
<!DOCTYPE frameset SYSTEM "frameset.dtd">
<frameset>
<predicate lemma="burgeon">
<note>
Frames file for 'burgeon' based on sentences in wsj. No Verbnet entry.
</note>
<roleset id="burgeon.01" vncls="45.5" name="increasing">
<roles>
<role n="1... |
require 'puppetlabs_spec_helper/module_spec_helper'
|
#import "EMCDDeviceManagerBase.h"
@interface EMCDDeviceManager (ProximitySensor)
#pragma mark - proximity sensor
@property (nonatomic, readonly) BOOL isSupportProximitySensor;
@property (nonatomic, readonly) BOOL isCloseToUser;
@property (nonatomic, readonly) BOOL isProximitySensorEnabled;
- (BOOL)enableProximitySe... |
package org.apache.carbondata.core.util;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.carbondata.core.datastore.block.TableBlockInfo;
import org.apache.carbondata.core.datastore.impl.FileFactory;
import org.apache.carbondata.core.metadata.ColumnarFormatVersion;
imp... |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE helpset PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 2.0//EN" "http://java.sun.com/products/javahelp/helpset_2_0.dtd">
<helpset version="2.0" xml:lang="pt-BR">
<title>WebSockets | ZAP Extension</title>
<maps>
<homeID>top</homeID>
<mapref ... |
namespace ServerLib.Replication
{
public interface IReplica
{
void ReadThrough(int version, int txid, int key);
void WriteThrough(int version, int txid, int key, int value);
}
} |
#include "sysdep.h"
#include "bfd.h"
#define TARGET_SHL_SYM shlpei_vec
#define TARGET_SHL_NAME "pei-shl"
#define IMAGE_BASE NT_IMAGE_BASE
#define COFF_IMAGE_WITH_PE
#define COFF_WITH_PE
#define PCRELOFFSET TRUE
#define TARGET_UNDERSCORE '_'
/* Long section names not allowed in executable images, only object files. ... |
package com.google.gerrit.pgm.init.api;
import com.google.inject.BindingAnnotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@BindingAnnotation
@Retention(RetentionPolicy.RUNTIME)
public @interface InstallAllPlugins {}
|
var arg = require('argh').argv; //read & parse arguements
var engine_name = "hogan";//('engine' in arg && arg['engine'] == "mustache") ? "mustache" : "hogan";//hogan or mustache
var engine = require("hogan.js")//require(engine_name == "hogan" ? "hogan.js" : "mustache")
, fs = require('fs')
, extend= require(... |
Parameters::Parameters(string file)
{
ifstream reader(file);
string line;
while(getline(reader, line)) {
if(line.empty() || line.find("#") == 0) {
continue;
}
size_t index = line.find("=");
if(index != string::npos) {
string key = line.substr(0, index);
string val = line.substr(index+1)... |
package org.xbmc.kore.eventclient;
/**
* XBMC Event Client Class
*
* A MOUSE packets sets the mouse position in XBMC
* @author Stefan Agner
*
*/
public class PacketMOUSE extends Packet {
protected final static byte MS_ABSOLUTE = 0x01;
/**
* A MOUSE packets sets the mouse position in XBMC
* @param x ho... |
//
// GTLBooksAnnotations.m
//
// ----------------------------------------------------------------------------
// NOTE: This file is generated from Google APIs Discovery Service.
// Service:
// Books API (books/v1)
// Description:
// Lets you search for books and manage your Google Books library.
// Documentati... |
using Esri.ArcGISRuntime.Controls;
using Esri.ArcGISRuntime.Geometry;
using Esri.ArcGISRuntime.Layers;
using Esri.ArcGISRuntime.Tasks.Geoprocessing;
using System;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
namespace ArcGISRuntime.Samples.De... |
package libvirt
/*
#cgo pkg-config: libvirt
#include <libvirt/libvirt.h>
#include <libvirt/virterror.h>
#include "callbacks_cfuncs.h"
extern void freeCallbackId(long);
void freeGoCallback_cgo(void* goCallbackId) {
freeCallbackId((long)goCallbackId);
}
*/
import "C"
|
/* http://localhost:1842/packages/charts/sass/src/chart/AbstractChart.scss:8 */
.x-android-3 .x-surface-wrap,
.x-android-3 .x-surface-wrap > * {
-webkit-perspective: 1;
}
/* http://localhost:1842/packages/charts/sass/src/chart/AbstractChart.scss:12 */
.x-draw-container {
position: relative;
-webkit-user-sel... |
#region S# License
#endregion S# License
namespace StockSharp.Algo.Indicators
{
using StockSharp.Algo.Candles;
/// <summary>
/// DIMinus is a component of the Directional Movement System developed by Welles Wilder.
/// </summary>
public class DiMinus : DiPart
{
/// <summary>
/// Initializes a new instance o... |
package info.guardianproject.otr.app.im.engine;
/** Interface for group change events. */
public interface GroupListener {
public static final int ERROR_CREATING_GROUP = -1;
public static final int ERROR_DELETING_GROUP = -2;
public static final int ERROR_JOINING_IN_GROUP = -3;
public static final int... |
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// 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.apa... |
package com.indeed.proctor.webapp.tags;
import com.indeed.proctor.webapp.extensions.CommitMessageDisplayFormatter;
import org.apache.commons.lang.StringEscapeUtils;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.BeanFactoryUtils;
import org.springframework.web.context.WebApplicationContext;
i... |
package cluster
import (
"strings"
"github.com/docker/docker/pkg/stringid"
"github.com/docker/engine-api/types"
)
// Network is exported
type Network struct {
types.NetworkResource
Engine *Engine
}
func (network *Network) isPreDefined() bool {
return (network.Name == "none" || network.Name == "host" || netwo... |
#ifndef PSHINTS_H_
#define PSHINTS_H_
#include <ft2build.h>
#include FT_FREETYPE_H
#include FT_TYPE1_TABLES_H
FT_BEGIN_HEADER
/*************************************************************************/
/*************************************************************************/
/***** ... |
namespace boost {
namespace detail
{
// Guts of is_readable_iterator. Value is the iterator's value_type
// and the result is computed in the nested rebind template.
template <class Value>
struct is_readable_iterator_impl
{
static char tester(Value&, int);
static char (& tester(any_conversion_e... |
<!DOCTYPE html>
<html>
<head>
<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
<script>
function repaintTest()
{
document.getElementById('resize-target').style.width = '200px';
document.getElementById('resize-target').style.height = '200px';
}
</script>
</head>
... |
package com.alipay.euler.andfix;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import android.os.Build;
import android.util.Log;
/**
* Native interface
*
* @author sanping.li@alipay.com
*
*/
public class AndFix {
private static final String TAG = "AndFix";
static {
try {
Runtime.g... |
module IssuesHelper
def issues_list(issues, options = {})
defaults = {partial: "issues/compact", collection: issues, as: :issue, locals: {prefix: "list"}}
render defaults.merge(options)
end
end
|
package com.intellij.vcs.log.ui;
import com.google.common.util.concurrent.SettableFuture;
import com.intellij.openapi.Disposable;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.extensions.ExtensionPointName;
import com.intellij.openapi.project.Project;
import com.intellij.open... |
import type { CreateFilter } from './utils';
export const operators = () => ({
is: 'is',
is_not: 'is not',
});
export type OperatorSlug = keyof ReturnType<typeof operators>;
export const createFilter: CreateFilter<OperatorSlug> = (
field,
operator,
value,
) => {
const operatorSlug = operator.slug;
if (operat... |
class Post < ActiveRecord::Base
belongs_to :user
has_one :account, through: :user
cache_column :account, :email
cache_column :user, :name
cache_column :user, :name, cache_column: :username
cache_method :user, :posts_count
cache_method :user, :posts_star
end
|
/* eslint-env mocha */
import React from 'react';
import { assert } from 'chai';
import { shallow } from 'enzyme';
import sinon from 'sinon';
import Header from '../../app/components/Header';
describe('components/<Header />', () => {
const props = {
toggleNavDrawer: sinon.spy(),
navDrawerOpen: false,
};
... |
import Ember from 'ember';
// SelectiveSaveMixin adds a saveOnly method to a DS.Model.
//
// saveOnly provides a way to save one or more properties of a model while
// preserving outstanding changes to other properties.
var SelectiveSaveMixin = Ember.Mixin.create({
saveOnly: function () {
if (arguments.leng... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
package filters
import (
"bufio"
"encoding/json"
"fmt"
"net"
"net/http"
"sync"
"time"
apierrors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/runtime/schema"
apirequest "k8s.io/apiserver/pkg/endpoints/request"
)
const globalTimeout = time.Minute
var errConnKilled = fmt.Errorf("kill conne... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var 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] = b[p]; };
return function (d, b)... |
<!--
#
# 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... |
<!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Encryption Class : CodeIgniter User Guide</ti... |
<?xml version="1.0" ?>
<constraint-mapping xmlns="http://symfony.com/schema/dic/constraint-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/constraint-mapping https://symfony.com/schema/dic/constraint-mapping/constraint-mapping-1.0.xsd">
<names... |
<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
'action'=>Yii::app()->createUrl($this->route),
'method'=>'get',
)); ?>
<?php echo $form->textFieldRow($model,'id',array('class'=>'span5')); ?>
<?php echo $form->textFieldRow($model,'tweet_id',array('class'=>'span5','maxlength'=>20)); ?>
... |
function debug(message)
{
var span = document.createElement("span");
span.appendChild(document.createTextNode(message));
span.appendChild(document.createElement("br"));
document.getElementById('status').appendChild(span);
}
function done(message)
{
if (document.location.hash == '#fail')
return;
if (mes... |
package org.jasig.portal.portlets.lookup;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;
import java.util... |
package edu.cuny.qc.speech.AuToBI.featureextractor.shapemodeling;
import edu.cuny.qc.speech.AuToBI.core.Region;
import edu.cuny.qc.speech.AuToBI.featureextractor.FeatureExtractorException;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import static junit.framework... |
#import <UIKit/UIKit.h>
#import <React/RCTDefines.h>
#import <React/RCTResizeMode.h>
NS_ASSUME_NONNULL_BEGIN
/**
* This function takes an source size (typically from an image), a target size
* and scale that it will be drawn at (typically in a CGContext) and then
* calculates the rectangle to draw the image int... |
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __STM32L4xx_CAN_H
#define __STM32L4xx_CAN_H
#ifdef __cplusplus
extern "C" {
#endif
/* Includes ------------------------------------------------------------------*/
#include "stm32l4xx_hal_def.h"
/** @addtogroup STM32L4xx_HAL_... |
package org.springframework.security.oauth2.server.resource.authentication;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.LinkedHashSet;
import org.springframework.core.convert.converter.Converter;
import org.springframework.security.core.GrantedAuthority;
import... |
<?php
namespace Drupal\Core\Path;
use Drupal\Core\Cache\Cache;
use Drupal\Core\Database\Connection;
use Drupal\Core\Database\SchemaObjectExistsException;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Database\Query\Condition;
/**
* Provides a class for... |
<?php
// must be called POST validation
/**
* Adds rel="noreferrer" to any links which target a different window
* than the current one. This is used to prevent malicious websites
* from silently replacing the original window, which could be used
* to do phishing.
* This transform is controlled by %HTML.TargetN... |
layout: post
title: "Problem 2 - Fibonacci sequence"
date: 2016-05-27 11:51:50 +0100
categories: [python,euler]
---
The second problem is another classic, this time in the form of the Fibonacci
sequence.
> Each new term in the Fibonacci sequence is generated by adding the previous two terms.
> By starting with 1 and ... |
;(function(){
// CommonJS require()
function require(p){
var path = require.resolve(p)
, mod = require.modules[path];
if (!mod) throw new Error('failed to require "' + p + '"');
if (!mod.exports) {
mod.exports = {};
mod.call(mod.exports, mod, mod.exports, require.relative(path));
}
... |
package org.apache.sling.scripting.sightly.js.impl;
import javax.script.Bindings;
import javax.script.SimpleBindings;
import java.util.Collections;
import org.apache.commons.lang.StringUtils;
import org.apache.sling.api.SlingHttpServletRequest;
import org.apache.sling.api.resource.Resource;
import org.apache.sling.a... |
package dns
import (
"crypto/dsa"
"crypto/ecdsa"
"crypto/elliptic"
"crypto/rand"
"crypto/rsa"
"math/big"
)
// Generate generates a DNSKEY of the given bit size.
// The public part is put inside the DNSKEY record.
// The Algorithm in the key must be set as this will define
// what kind of DNSKEY will be generate... |
import Histogram from "./PackedHistogram";
describe("Packed histogram", () => {
it("should compute median value in first bucket", () => {
// given
const histogram = new Histogram(1, Number.MAX_SAFE_INTEGER, 3);
histogram.recordValue(123456);
histogram.recordValue(127);
histogram.recordValue(42);
... |
// Code generated by injection-gen. DO NOT EDIT.
package tektonchain
import (
context "context"
json "encoding/json"
fmt "fmt"
v1alpha1 "github.com/tektoncd/operator/pkg/apis/operator/v1alpha1"
versioned "github.com/tektoncd/operator/pkg/client/clientset/versioned"
operatorv1alpha1 "github.com/tektoncd/opera... |
class CScrollingWindow;
class CMapLayoutPanel;
class CKV_Editor;
class CTilegenMissionPreprocessor;
class CLayoutSystemKVEditor;
class CASW_KeyValuesDatabase;
namespace vgui
{
class PanelListPanel;
class TreeView;
class Label;
class Button;
};
// ==================================================================... |
<?php
/**
* Message translations.
*
* This file is automatically generated by 'yiic message' command.
* It contains the localizable messages extracted from source code.
* You may modify this file by translating the extracted messages.
*
* Each array element represents the translation (value) of a message (key).
... |
buildbox - easy-to-use Linux sandbox with version control
####SYNOPSIS
buildbox -P PROFILE OPTIONS
buildbox -r
####DESCRIPTION
buildbox utility is a wrapper around chroot and git to facilitate creation & use of sandboxed
Linux environment (called "buildbox").
Sandboxed Linux is based on Ubuntu 12.04 LTS and is stor... |
require 'refinerycms-core'
module Refinery
autoload :PagesGenerator, 'generators/refinery/pages/pages_generator'
module Pages
require 'refinery/pages/engine'
require 'refinery/pages/tab'
require 'refinery/pages/type'
require 'refinery/pages/types'
# Load configuration last so that everything ... |
<?php
namespace Sylius\Bundle\WebBundle\Controller\Backend;
use Sylius\Bundle\UserBundle\Controller\SecurityController as BaseSecurityController;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\Security\Core\Exception\Acc... |
package hilbert
import (
"runtime"
"sync"
"sync/atomic"
"github.com/Workiva/go-datastructures/rtree"
)
type actions []action
type action interface {
operation() operation
keys() hilberts
rects() []*hilbertBundle
complete()
addNode(int64, *node)
nodes() []*node
}
type getAction struct {
result rtree... |
package org.apache.maven.plugin.eclipse.writers.workspace;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.eclipse.WorkspaceConfiguration;
import org.apache.maven.plugin.logging.Log;
/**
* @author Dan T. Tran
* @version $Id$
*/
public interface WorkspaceWriter
{
/**
... |
package org.springframework.transaction.compensating.support;
/**
* Transaction object used by
* {@link AbstractCompensatingTransactionManagerDelegate}. Keeps a reference to
* the {@link CompensatingTransactionHolderSupport} associated with the current
* transaction.
*
* @author Mattias Hellborg Arthu... |
<?php
namespace TYPO3\Flow\Tests\Reflection\Fixture;
/**
* Dummy class for the Reflection tests
*
*/
abstract class DummyAbstractClass
{
}
|
<div class="row" collapse="changingPassword">
<div class="col-xs-12 col-md-offset-3 col-md-6">
<button ng-click="changingPassword = !changingPassword" class="btn btn-default">Change password</button>
</div>
</div>
<div class="row" collapse="!changingPassword">
<div class="col-xs-12 col-sm-offset-3 col-sm-6 c... |
"""Download handlers for different schemes"""
import logging
from twisted.internet import defer
import six
from scrapy.exceptions import NotSupported, NotConfigured
from scrapy.utils.httpobj import urlparse_cached
from scrapy.utils.misc import load_object
from scrapy.utils.python import without_none_values
from scrapy... |
<!--
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... |
/**
* @file ForwardAODConfig.C
* @author Christian Holm Christensen <cholm@dalsgaard.hehi.nbi.dk>
* @date Wed Mar 23 13:56:02 2011
*
* @brief
*
* @ingroup pwglf_forward_scripts_tasks
*
*/
/**
* Configuration script for forward multiplicity task.
*
* You can copy this to your working directory or ... |
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize">
<Button
android:id="@+id/nav_btn"
android:layout_width="30dp"
android:layout_height="30d... |
package org.apache.flink.types.parser;
import org.apache.flink.types.ByteValue;
public class ByteValueParserTest extends ParserTestBase<ByteValue> {
@Override
public String[] getValidTestValues() {
return new String[] {
"0", "1", "76", "-66", String.valueOf(Byte.MAX_VALUE), String.valueOf(Byte.MIN_VALUE),... |
package com.anttoolkit.hadoop.tasks.yarn;
import org.apache.hadoop.yarn.api.records.*;
import org.apache.tools.ant.*;
public class WaitAppToCompleteTask extends GenericYarnTask
{
private String appId;
private String stateProperty;
private boolean failIfNotSucceed = true;
private boolean failIfTimeOutExceed = true... |
package org.ethereum.net.rlpx;
import com.google.common.io.ByteStreams;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToMessageCodec;
import org.apache.commons.lang3.tuple.Pair;
import org.ethereum.config.SystemProperties;
import org.ethereum.listener.EthereumListener;
import org.... |