text stringlengths 3 1.05M |
|---|
Configure and run Solum
=======================
Configuration Reference
-----------------------
Administrator Guide
-------------------
.. toctree::
:maxdepth: 2
../man/index
High Availability Guide
-----------------------
Operations Guide
----------------
Security Guide
--------------
|
package translation
import (
"bytes"
"fmt"
//"launchpad.net/goyaml"
"testing"
gotemplate "text/template"
)
func TestNilTemplate(t *testing.T) {
expected := "hello"
tmpl := &template{
tmpl: nil,
src: expected,
}
if actual := tmpl.Execute(nil); actual != expected {
t.Errorf("Execute(nil) returned %s; ex... |
local xcode = premake.xcode
local tree = premake.tree
--
-- Create a tree corresponding to what is shown in the Xcode project browser
-- pane, with nodes for files and folders, resources, frameworks, and products.
--
-- @param prj
-- The project being generated.
-- @returns
-- A tree, loaded with metadata, whi... |
// Copyright 2020 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
namespace Hivemind {
[CustomEditor(typeof(BehaviorTreeAgent))]
public class BTAgentInspector : Editor {
private BTEditorManager _manager;
public void OnEnable() {
BehaviorTreeAgent btAgent = target as Behavi... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
YUI.add('jsonp', function(Y) {
var isFunction = Y.Lang.isFunction;
/**
* <p>Provides a JSONPRequest class for repeated JSONP calls, and a convenience
* method Y.jsonp(url, callback) to instantiate and send a JSONP request.</p>
*
* <p>Both the constructor as well as the convenience function take two
* parameters:... |
#ifndef __glut_h__
#define __glut_h__
/* This program is freely distributable without licensing fees and is
provided without guarantee or warrantee expressed or implied. This
program is -not- in the public domain. */
#if defined(_WIN32)
/* GLUT 3.7 now tries to avoid including <windows.h>
to avoid name ... |
/**
* Apache Licence Version 2.0
* Please read the LICENCE file
*/
package org.hypothesis.ui.view;
import com.vaadin.navigator.View;
import com.vaadin.navigator.ViewChangeListener.ViewChangeEvent;
import com.vaadin.ui.Table;
import com.vaadin.ui.VerticalLayout;
import org.hypothesis.interfaces.ManagementPresenter;
... |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.ico" />
<title>
SubtextItem
| GreenDroid
</title>
<link href="../../../../assets/android-develope... |
<?php
namespace shiyang\infinitescroll;
use Yii;
use yii\base\Widget;
use yii\base\InvalidConfigException;
use yii\data\Pagination;
use yii\helpers\ArrayHelper;
use yii\helpers\Html;
use yii\helpers\Json;
use yii\web\View;
use yii\web\JsExpression;
/**
* InfiniteScrollPager renders a hyperlink that leads to subseq... |
package se.uu.farmbio.tutorial
import org.apache.spark.SparkConf
import org.apache.spark.SparkContext
import org.apache.spark.rdd.RDD.rddToPairRDDFunctions
object Consensus {
def main(args: Array[String]) = {
//Start the Spark context
val conf = new SparkConf()
.setAppName("Consensus")
.setMas... |
/**
* \mainpage
* \htmlinclude mainpage.html
*/ |
<!DOCTYPE html>
<head>
<link rel="stylesheet" href="resources/squash-with-ancestor-property.css">
<style>
#ancestor {
-webkit-filter: hue-rotate(50deg);
}
</style>
<script src="resources/squash-with-ancestor-property.js"></script>
<script>
window.onload = generateDom;
</script>
</head>
<body>
</body>
|
<?php
class CoverageMethodParenthesesWhitespaceTest extends PHPUnit_Framework_TestCase
{
/**
* @covers CoveredClass::publicMethod ( )
*/
public function testSomething()
{
$o = new CoveredClass;
$o->publicMethod();
}
}
|
class FixEnabledAndVisible < ActiveRecord::Migration
def change
rename_column :categories, :appears_in_web, :visible
rename_column :products, :appears_in_categories, :visible
remove_column :products, :appears_in_search
remove_column :products, :appears_in_tag
remove_column :tags, :appears_in_web... |
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">TagGroup-Demo</string>
<string name="add_tags">Add Tags</string>
<string name="title_activity_tag_editor">Edit Tags</string>
<string name="tags_default">Tags (Default)</string>
<string name="tags_large">Tags (Large)</string>
... |
$(function(){
localStorage.c = (localStorage.c || "0.0");
localStorage.tiempos = (localStorage.tiempos || "<h4>Instantes de parada.</h4>");
var t;
var cl = $("#crono");
var cuerpo = $("#cuerpo");
var tiempos = $("#paradas");
function incr() {
localStorage.c = ... |
/*
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
*/
#include <compiler.h>
#include <board.h>
#include <conf_board.h>
#include <ioport.h>
/**
* \addtogroup samg55_xplained_pro_group
* @{
*/
/**
* \brief Set peripheral mode for IOPORT pins.
* It will configure port m... |
package io.netty.handler.codec.spdy;
/**
* The SPDY stream status code and its description.
* @apiviz.exclude
*/
public class SpdyStreamStatus implements Comparable<SpdyStreamStatus> {
/**
* 1 Protocol Error
*/
public static final SpdyStreamStatus PROTOCOL_ERROR =
new SpdyStreamStatus(1,... |
using gax = Google.Api.Gax;
using gcbv = Google.Cloud.Batch.V1;
using sys = System;
namespace Google.Cloud.Batch.V1
{
/// <summary>Resource name for the <c>Task</c> resource.</summary>
public sealed partial class TaskName : gax::IResourceName, sys::IEquatable<TaskName>
{
/// <summary>The possible c... |
package list
import (
"fmt"
"path"
"reflect"
"github.com/vmware/govmomi/property"
"github.com/vmware/govmomi/vim25/mo"
"github.com/vmware/govmomi/vim25/soap"
"github.com/vmware/govmomi/vim25/types"
"golang.org/x/net/context"
)
type Element struct {
Path string
Object mo.Reference
}
func ToElement(r mo... |
package matchers
import (
"fmt"
"github.com/onsi/gomega/format"
"reflect"
)
type PanicMatcher struct{}
func (matcher *PanicMatcher) Match(actual interface{}) (success bool, err error) {
if actual == nil {
return false, fmt.Errorf("PanicMatcher expects a non-nil actual.")
}
actualType := reflect.TypeOf(actua... |
#pragma once
#include "rtbkit/common/testing/exchange_source.h"
namespace RTBKIT {
struct MockWinSource : public WinSource {
MockWinSource(NetworkAddress address);
MockWinSource(Json::Value const & json);
void sendWin(const BidRequest& br,
const Bid& bid,
const Amount... |
package cfclient
import (
"encoding/json"
"io/ioutil"
"net/url"
"github.com/pkg/errors"
)
type StacksResponse struct {
Count int `json:"total_results"`
Pages int `json:"total_pages"`
NextUrl string `json:"next_url"`
Resources []StacksResource `json:"resources"`
}... |
#include "qxtscheduleitemdelegate.h"
#include <QModelIndex>
#include <QPixmap>
#include <QPainter>
#include <QApplication>
#include <QSize>
#include <QFontMetrics>
#include <QIcon>
#include <QVariant>
#include <QDateTime>
#include "qxtnamespace.h"
QxtScheduleItemDelegate::QxtScheduleItemDelegate(QObject *parent)
... |
package hip.ch7.shortestpath;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;
import java.io.IOException;
public class Map
extends Mapper<Text, Text, Text, Text> {
private Text outKey = new Text();
private Text outValue = new Text();
@Override
protected void map(Text key, T... |
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"), require("diff_match_patch"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror", "diff_match_patch"], mod);
else // Plain browser env
m... |
var _ = require('lodash'),
config = require('../config'),
filters = require('../filters'),
meta_description;
meta_description = function () {
var description,
blog;
if (_.isString(this.relativeUrl)) {
blog = config.theme;
if (!this.relativeUrl || this.rel... |
"""Handles control flow statements: while, for, if."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import gast
from tensorflow.contrib.autograph.core import converter
from tensorflow.contrib.autograph.pyct import anno
from tensorflow.contrib.autograph.... |
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Azure.Insights.Models;
using Microsoft.WindowsAzure;
using Microsoft.WindowsAzure.Common.Internals;
namespace Microsoft.Azure.Insights.Models
{
/// <summary>
/// The event count summary response.
/// </summary>
public pa... |
package com.netflix.ribbon.guice;
import com.google.inject.Inject;
import com.google.inject.spi.BindingTargetVisitor;
import com.google.inject.spi.ProviderInstanceBinding;
import com.google.inject.spi.ProviderWithExtensionVisitor;
import com.google.inject.spi.Toolable;
import com.netflix.ribbon.RibbonResourceFactory;... |
/**
* angular-strap
* @version v2.1.6 - 2015-01-11
* @link http://mgcrea.github.io/angular-strap
* @author Olivier Louvignes (olivier@mg-crea.com)
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
'use strict';
angular.module('mgcrea.ngStrap.select').run(['$templateCache', function($templateCache... |
package org.springframework.boot.context.embedded;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.NoSuchElementException;
import javax.servlet.Filter;
import javax.servlet.FilterRegistrat... |
"""Test Bluetooth LE device tracker."""
from datetime import timedelta
from unittest.mock import patch
from homeassistant.components.bluetooth_le_tracker import device_tracker
from homeassistant.components.device_tracker.const import (
CONF_SCAN_INTERVAL,
CONF_TRACK_NEW,
DOMAIN,
)
from homeassistant.const... |
frappe.provide('frappe.dom');
frappe.dom = {
id_count: 0,
freeze_count: 0,
by_id: function(id) {
return document.getElementById(id);
},
set_unique_id: function(ele) {
var id = 'unique-' + frappe.dom.id_count;
if(ele)
ele.setAttribute('id', id);
frappe.dom.id_count++;
return id;
},
eval: function(tx... |
You can run the tests by opening a command prompt in the exercise's directory, and then running the [`dotnet test` command](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-test)
Alternatively, most IDE's have built-in support for running tests, including [Visual Studio](https://docs.microsoft.com/en-us/visual... |
package org.apache.hadoop.yarn.util;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.classification.InterfaceAudience.Private;
@Private
public class Times {
private static final Log LOG = LogFa... |
/************************************************************************************************
* PRODUCT OF PT INOVACAO - EST DEPARTMENT and Telecommunications Institute (Aveiro, Portugal) *
************************************************************************************************/
package gov.nist.java... |
This is a EWTS (Extended Wylie Transliteration Scheme) converter. You can find more information about EWTS here: http://www.thlib.org/reference/transliteration/#!essay=/thl/ewts
It will take a string in this EWTS and output the Unicode Tibetan
`bsgrubs => བསྒྲུབས་`
This is a work in progress, and the varieties of er... |
/*
* ModeShape (http://www.modeshape.org)
*
* 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 o... |
Cross Compiling Erlang/OTP
==========================
See the [$ERL_TOP/HOWTO/INSTALL-CROSS.md][] documentation.
[$ERL_TOP/HOWTO/INSTALL-CROSS.md]: ../HOWTO/INSTALL-CROSS.md
|
/************************************************************************
* libc/math/lib_floor.c
*
* This file is a part of NuttX:
*
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
* Ported by: Darcy Gong
*
* It derives from the Rhombs OS math library by Nick Johnson which has
* a compatibile, MI... |
$stdout.puts "# -------------------------------------------------------------"
$stdout.puts "# SPECS AND TESTS ARE RUNNING WITH WARNINGS OFF."
$stdout.puts "# SEE: https://github.com/Shopify/liquid/issues/730"
$stdout.puts "# SEE: https://github.com/jekyll/jekyll/issues/4719"
$stdout.puts "# ---------------------------... |
insert implicit module globals
(`__filename`, `__dirname`, `process`, `global`, and `Buffer`)
as a browserify-style transform
[](http://travis-ci.org/substack/insert-module-globals)
# example
``` js
var mdeps = require('module-deps');
va... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
package sso
trait SingleSignOnRegistry {
def registerNewSession(username: String, password: String): SSOToken
def isValid(token: SSOToken): Boolean
def unregister(token: SSOToken)
}
|
require 'rbconfig'
require 'shellwords'
require 'tmpdir'
require "vagrant/util/subprocess"
module Vagrant
module Util
# This class just contains some platform checking code.
class Platform
class << self
def cygwin?
return true if ENV["VAGRANT_DETECTED_OS"] &&
ENV["VAGRANT... |
@interface APEmailActivationTypeEnum () {
@public
jint value_;
}
@end
__attribute__((unused)) static void APEmailActivationTypeEnum_initWithInt_withNSString_withInt_(APEmailActivationTypeEnum *self, jint value, NSString *__name, jint __ordinal);
__attribute__((unused)) static APEmailActivationTypeEnum *new_APEmai... |
#include "lib.h"
#include "str.h"
#include "dsasl-client-private.h"
struct plain_dsasl_client {
struct dsasl_client client;
bool output_sent;
};
static int
mech_plain_input(struct dsasl_client *_client,
const unsigned char *input ATTR_UNUSED, unsigned int input_len,
const char **error_r)
{
struct plain_dsa... |
<?xml version="1.0"?>
<doc>
<assembly>
<name>FastCode</name>
</assembly>
<members>
<member name="T:CodeNavigator.AutoComplete">
<summary>
</summary>
</member>
<member name="M:CodeNavigator.AutoComplete.GetShortcuts">
<summary>
... |
cask "nullpomino" do
version "7.5.0"
sha256 "6edfc0d21b7f006a255d63ce0a9d9f920400e5c01e7072fbcc4e139a18148eae"
url "https://github.com/nullpomino/nullpomino/releases/download/v#{version}/NullpoMino#{version}.dmg"
appcast "https://github.com/nullpomino/nullpomino/releases.atom"
name "NullpoMino"
desc "Actio... |
UPDATE auth_user SET
email = CONCAT('user',id,'@example.com'),
password = 'sha256$f538347e82$5098e89186fd307d4bb6fe29ac476e72cf96175617fa933a9bd6b3d89a8b0946'; -- 'testpass'
SET SESSION FOREIGN_KEY_CHECKS = 0;
TRUNCATE tidings_watchfilter;
TRUNCATE tidings_watch;
TRUNCATE django_session;
TRUNCATE messages_... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Routing;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.AspNet.FriendlyUrls.Resolvers;
namespace App.Web
{
public partial class ViewSwitcher : System.Web.UI.UserControl
{
protect... |
module Pohoda
module Builders
module Pro
class ProdejkaDetailType
include ParserCore::BaseBuilder
def builder
root = Ox::Element.new(name)
root = add_attributes_and_namespaces(root)
if data.key? :prodejka_item
data[:prodejka_item].each { |i| root <... |
package org.elasticsearch.index.search.geo;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.search.ConstantScoreScorer;
import org.apache.lucene.search.ConstantScoreWeight;
import org.apache.lucene.search.DocIdSetIterator;
import org.apache.lucen... |
package com.github.mkopylec.rpggame.domain.world;
import com.github.mkopylec.ddd.buildingblocks.AggregateRoot;
import com.github.mkopylec.ddd.buildingblocks.Entity;
import com.github.mkopylec.rpggame.domain.items.Item;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
imp... |
var await = require('./src/await');
module.exports = await;
|
'use strict';
module.exports = require('ReactNative');
|
using ElectronicObserver.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ElectronicObserver.Observer.kcsapi.api_req_map {
public class next : APIBase {
public override void OnResponseReceived( dynamic data ) {
KCDatabase.Inst... |
/*-------------------------------------------------------------------------
Copyright 2008 Sandia Corporation.
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
the U.S. Government retains certain rights in this software.
----------------------------------------------------------------------... |
var fs = require('fs')
, http = require('http')
, path = require('path')
, https = require('https')
, events = require('events')
, stream = require('stream')
, assert = require('assert')
;
exports.createServer = function (port) {
port = port || 6767
var s = http.createServer(function (req, resp) {
... |
using System;
using System.Collections.Generic;
using System.Linq;
namespace Encomiendas.Domain.Exceptions
{
public class CommandValidationException : Exception
{
public CommandValidationException(IEnumerable<ValidationFailure> failures)
: base(
string.Format("The command w... |
package org.fedorahosted.freeotp.add;
import android.app.Activity;
import android.text.Editable;
public class AddSecretTextWatcher extends AddTextWatcher {
public AddSecretTextWatcher(Activity activity) {
super(activity);
}
@Override
public void afterTextChanged(Editable s) {
if (s.... |
package org.apache.parquet.hadoop;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapred.*;
import org.junit.Before;
import org.junit.Test;
impo... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>gunicorn django example app</title>
<!--[if IE]>
<script>
// allow IE to recognize HTMl5 elements
document.createElement('section');
document.createElement('article');
... |
'use strict';
function _getNodesIdMap(cache, nodes) {
var nodeKeys = {};
for (var i = 0, l = nodes.length; i < l; i++) {
var node = nodes[i];
nodeKeys[node.id] = node;
}
return nodeKeys;
}
module.exports = _getNodesIdMap;
|
@interface RouteState : NSObject
@property (nonatomic, readonly) BOOL hasActualRoute;
@property (nonatomic) m2::PointD endPoint;
+ (instancetype)savedState;
+ (void)save;
+ (void)remove;
@end
|
FTP Class
#########
CodeIgniter's FTP Class permits files to be transferred to a remote
server. Remote files can also be moved, renamed, and deleted. The FTP
class also includes a "mirroring" function that permits an entire local
directory to be recreated remotely via FTP.
.. note:: SFTP and SSL FTP protocols are not... |
package org.elasticsearch.index.mapper;
import org.apache.lucene.index.IndexOptions;
import org.apache.lucene.index.IndexableField;
import org.apache.lucene.util.BytesRef;
import org.elasticsearch.common.bytes.BytesArray;
import org.elasticsearch.common.bytes.BytesReference;
import org.elasticsearch.common.compress.... |
package runtime
import (
"runtime/internal/atomic"
"runtime/internal/sys"
"unsafe"
)
// Asynchronous semaphore for sync.Mutex.
type semaRoot struct {
lock mutex
head *sudog
tail *sudog
nwait uint32 // Number of waiters. Read w/o the lock.
}
// Prime to not correlate with any user patterns.
const semTabSiz... |
package kernel
import (
"errors"
)
// Utsname represents the system name structure.
// It is defined here to make it portable as it is available on linux but not
// on windows.
type Utsname struct {
Release [65]byte
}
func uname() (*Utsname, error) {
return nil, errors.New("Kernel version detection is available o... |
import { isMatrix } from '../../utils/is.js'
import { format } from '../../utils/string.js'
import { arraySize } from '../../utils/array.js'
import { factory } from '../../utils/factory.js'
const name = 'sqrtm'
const dependencies = ['typed', 'abs', 'add', 'multiply', 'sqrt', 'subtract', 'inv', 'size', 'max', 'identity... |
#include "config.h"
#include "HTMLLegendElement.h"
#include "HTMLFieldSetElement.h"
#include "HTMLFormControlElement.h"
#include "HTMLNames.h"
#include "NodeTraversal.h"
namespace WebCore {
using namespace HTMLNames;
inline HTMLLegendElement::HTMLLegendElement(const QualifiedName& tagName, Document* document)
... |
apache_module 'lbmethod_heartbeat'
|
<script>
top.didFinishLoading(window);
</script>
|
.class public Lcom/samsung/android/settings/datausage/trafficmanager/DataSavingChnPreference;
.super Landroid/support/v14/preference/SecSwitchPreference;
.source "DataSavingChnPreference.java"
# interfaces
.implements Landroid/support/v7/preference/Preference$OnPreferenceChangeListener;
# annotations
.annotation sys... |
package org.apache.jmeter.functions;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import org.apache.jmeter.engine.util.CompoundVariable;
import org.apache.jmeter.samplers.SampleResult;
import org.apache.jmeter.samplers.Sampler;
import org.apache.jmeter.threads.JMeterVariables;
imp... |
/* eslint-disable no-unused-vars */
import { normalize, arrayOf } from 'normalizr';
import { constructSongUrl, constructUserSongsUrl, constructSongCommentsUrl } from '../../utils/SongUtils';
import * as types from '../../constants/mutation-types';
import { songSchema } from '../../constants/Schemes';
import { receiveEn... |
// Type definitions for iban.js 0.0.5
// Project: https://github.com/arhs/iban.js/
// Definitions by: Cyril Schumacher <https://github.com/cyrilschumacher/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/**
* @summary Interface for {@link IBAN} object.
* @author Cyril Schumacher
* @version 1.0
*/... |
// 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.
/*
* Bug info:
* Asserstion prop was comparing 2 range assertions incorrectly and keeping the wrong one as a resu... |
We care about your opinion! Please [send us any feedback, comments, questions,
or suggestions](https://goo.gl/forms/JZaAuxuTgjqu8FT23) you have about Kelda
and our documentation. We would love to hear from you!
|
@interface FirstViewController : UIViewController
@end
|
from oslo_config import cfg
from neutron.plugins.vmware.common import exceptions as nsx_exc
class AgentModes(object):
AGENT = 'agent'
AGENTLESS = 'agentless'
COMBINED = 'combined'
class MetadataModes(object):
DIRECT = 'access_network'
INDIRECT = 'dhcp_host_route'
class ReplicationModes(object... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MegaApp.Extensions
{
static class SizeExtensions
{
private static readonly string[] SizeSuffixes = { "bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB" };
publi... |
using System;
using System.Threading;
internal delegate T GenDelegate<T>(T p1, out T p2);
internal interface IFoo<T>
{
T Function<U>(U i, out U j);
}
internal class Foo<T> : IFoo<T>
{
public virtual T Function<U>(U i, out U j)
{
j = i;
return (T)(Object)i;
}
}
internal class Test
{
... |
import time
import json
import hmac
import base64
from hashlib import sha1 as sha
import logging
from django.db import transaction
from django import http
from django.http import Http404
from django.http import JsonResponse
from django.urls import reverse
from django.conf import settings
from django.core.paginator impo... |
package com.intellij.codeInsight.lookup;
import com.intellij.openapi.project.Project;
/**
* @author Maxim.Mossienko
* @deprecated use InsertHandler
*/
public interface DeferredUserLookupValue<T> extends PresentableLookupValue {
boolean handleUserSelection(LookupItem<T> item, Project project);
}
|
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.tasks;
import com.intellij.openapi.Disposable;
import com.intellij.openapi.progress.ProgressIndicator;
import com.intellij.openapi.project.Project;
import co... |
package com.navercorp.pinpoint.collector.util;
import org.apache.hadoop.hbase.util.Bytes;
import java.net.DatagramPacket;
/**
* @author emeroad
*/
public final class PacketUtils {
private PacketUtils() {
}
public static String dumpDatagramPacket(DatagramPacket datagramPacket) {
if (datagramP... |
namespace nacl_io {
class MountMem : public Mount {
protected:
MountMem();
virtual Error Init(int dev, StringMap_t& args, PepperInterface* ppapi);
// The protected functions are only used internally and will not
// acquire or release the mount's lock themselves. The caller is
// required to use correct l... |
'use strict';
var EventPluginHub = require('EventPluginHub');
var EventPluginUtils = require('EventPluginUtils');
var accumulateInto = require('accumulateInto');
var forEachAccumulated = require('forEachAccumulated');
var warning = require('fbjs/lib/warning');
import type { PropagationPhases } from 'EventConstants... |
&& __GNUC__ == 3 && __GNUC_MINOR__ <= 4 && !defined(__APPLE_CC__)
# define BOOST_PYTHON_CONVERTER_REGISTRY_APPLE_MACH_WORKAROUND
#endif
#if defined(BOOST_PYTHON_TRACE_REGISTRY) \
|| defined(BOOST_PYTHON_CONVERTER_REGISTRY_APPLE_MACH_WORKAROUND)
# include <iostream>
#endif
namespace boost { namespace python { namesp... |
package org.apache.spark.serializer
import java.io._
import java.lang.reflect.{Field, Method}
import java.security.AccessController
import scala.annotation.tailrec
import scala.collection.mutable
import scala.util.control.NonFatal
import org.apache.spark.internal.Logging
private[spark] object SerializationDebugge... |
#include "OgreQuake3Level.h"
#include "OgreLogManager.h"
#include "OgreTextureManager.h"
namespace Ogre {
//-----------------------------------------------------------------------
Quake3Level::Quake3Level()
{
}
//-----------------------------------------------------------------------
void Qu... |
<?php
namespace Sylius\Bundle\PayumBundle\DependencyInjection;
use Sylius\Bundle\PayumBundle\Form\Type\GatewayConfigType;
use Sylius\Bundle\PayumBundle\Model\GatewayConfig;
use Sylius\Bundle\PayumBundle\Model\PaymentSecurityToken;
use Sylius\Bundle\ResourceBundle\Controller\ResourceController;
use Sylius\Bundle\Res... |
#ifndef __DAE_IOPLUGIN__
#define __DAE_IOPLUGIN__
#include <string>
#include <vector>
#include <dae/daeTypes.h>
class daeDatabase;
class daeMetaElement;
class daeURI;
class daeDocument;
/**
* The @c daeIOPlugin class provides the input/output plugin interface, which is
* the interface between the COLLADA runtime a... |
package org.sdnplatform.sync.internal.config;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import org.sdnplatform.sync.error.SyncException;
import org.sdnplatform.sync.internal.SyncManager;
import org.... |
<!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>Error <?php echo $data['code']; ?></title>
<... |
package cpuid
//go:generate go run private-gen.go
|