text stringlengths 3 1.05M |
|---|
<?php
final class ConpherenceFulltextQuery
extends PhabricatorOffsetPagedQuery {
private $threadPHIDs;
private $previousTransactionPHIDs;
private $fulltext;
public function withThreadPHIDs(array $phids) {
$this->threadPHIDs = $phids;
return $this;
}
public function withPreviousTransactionPHIDs... |
# Use this hook to configure devise mailer, warden hooks and so forth.
# Many of these configuration options can be set straight in your model.
Devise.setup do |config|
# The secret key used by Devise. Devise uses this key to generate
# random tokens. Changing this key will render invalid all existing
# confirmat... |
package archive
import (
"bytes"
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
"time"
"github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar"
)
var testUntarFns = map[string]func(string, io.Reader) error{
"untar": func(dest string, r io.Reader) error {
return Untar(r, dest, nil)
},
... |
require "uri"
require "socket"
require "shoutout/version"
require "shoutout/util"
require "shoutout/metadata"
require "shoutout/headers"
require "shoutout/quick_access"
require "shoutout/stream" |
resource_name :cpe_flatpak_repo
provides :cpe_flatpak_repo, :os => 'linux'
default_action :install
property :repo_name, String
property :rfp, String, :name_property => true
property :url, String, :desired_state => false
load_current_value do |new_resource|
extend ::CPE::Flatpak
r = ''
action_is_remove = new_reso... |
namespace Fixtures.AcceptanceTestsCompositeBoolIntClient.Models
{
using Fixtures.AcceptanceTestsCompositeBoolIntClient;
using Microsoft.Rest;
/// <summary>
/// Exception thrown for an invalid response with Error information.
/// </summary>
public class ErrorException : RestException
{
... |
#ifndef LWIP_SNTP_H
#define LWIP_SNTP_H
#include "lwip/opt.h"
#include "lwip/ip_addr.h"
#ifdef __cplusplus
extern "C" {
#endif
/** The maximum number of SNTP servers that can be set */
#ifndef SNTP_MAX_SERVERS
#define SNTP_MAX_SERVERS 3
#endif
/** Set this to 1 to implement the callback function called by... |
require 'tmpdir'
unless Dir.respond_to?(:mktmpdir)
# backward compat for 1.8.6
class Dir
def Dir.mktmpdir(prefix_suffix=nil, tmpdir=nil)
case prefix_suffix
when nil
prefix = "d"
suffix = ""
when String
prefix = prefix_suffix
suffix = ""
when Array
... |
require 'spec_helper'
describe 'puppi::helper' do
let(:title) { 'spec' }
let(:node) { 'rspec.example42.com' }
let(:params) {
{ 'template' => 'puppi/helpers/standard.yml.erb' }
}
describe 'Test puppi helper file creation' do
it 'should create a puppi helper file' do
should contain_file('pup... |
const REQUEST_STATUSES = [
{
value: 'Unassigned',
label: 'Unassigned'
},
{
value: 'Assigned',
label: 'Assigned'
},
{
value: 'Contacted',
label: 'Contacted'
},
{
value: 'Awaiting Response',
label: 'Awaiting Response'
},
{
value: 'Scheduled',
label: 'Scheduled'
... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<link rel="stylesheet" type="text/css" href="searc... |
var assert = require('assert'),
util = require('util'),
request = require('request'),
vows = require('vows'),
helpers = require('../helpers');
var forwardOptions = {
forward: {
port: 8300,
host: 'localhost'
}
};
var badForwardOptions = {
forward: {
port: 9000,
host: 'localhost... |
<?php
class WPML_TP_Service_Action extends WPML_SP_User {
/**
* Gets the current translation service
*
* @return bool|stdClass
*/
protected function get_current_service() {
return $this->sitepress->get_setting( 'translation_service' );
}
/**
* Saves the input service as the current translation servi... |
namespace ppapi {
namespace thunk {
namespace {
PP_Resource Create(PP_Instance instance) {
VLOG(4) << "PPB_NetworkMonitor::Create()";
EnterResourceCreation enter(instance);
if (enter.failed())
return 0;
return enter.functions()->CreateNetworkMonitor(instance);
}
int32_t UpdateNetworkList(PP_Resource netw... |
from __future__ import unicode_literals
import platform
from pathlib import Path
from ..compat import unicode_
from .. import about
from .. import util
def info(model=None, markdown=False):
if model:
data = util.parse_package_meta(util.get_data_path(), model, require=True)
model_path = Path(__fi... |
package org.elasticsearch.common;
import java.io.IOException;
import java.util.concurrent.atomic.AtomicInteger;
/** These are essentially flake ids (http://boundary.com/blog/2012/01/12/flake-a-decentralized-k-ordered-unique-id-generator-in-erlang) but
* we use 6 (not 8) bytes for timestamp, and use 3 (not 2) byt... |
tinyMCEPopup.requireLangPack();
var MergeCellsDialog = {
init : function() {
var f = document.forms[0];
f.numcols.value = tinyMCEPopup.getWindowArg('cols', 1);
f.numrows.value = tinyMCEPopup.getWindowArg('rows', 1);
},
merge : function() {
var func, f = document.forms[0];
tinyMCEPopup.restoreSelection(... |
package garbagecollector
import (
"fmt"
"sync"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
)
type objectReference struct {
metav1.OwnerReference
// This is needed by the dynamic client
Namespace string
}
func (s objectReference) String() string {
return fmt.Sprintf("[%s/%... |
from rest_framework import serializers as ser
from api.base.serializers import (JSONAPISerializer, IDField, TypeField, LinksField)
class SchemaSerializer(JSONAPISerializer):
id = IDField(source='_id', read_only=True)
type = TypeField()
name = ser.CharField(read_only=True)
schema_version = ser.Intege... |
using System;
using System.Management.Automation;
using System.Runtime.InteropServices;
using System.Security;
using Microsoft.Win32.SafeHandles;
using FILETIME = System.Runtime.InteropServices.ComTypes.FILETIME;
namespace OfficeDevPnP.PowerShell.Commands.Utilities
{
internal static class CredentialManager
{
... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Form - jQuery Mobile Demos</title>
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css">
<link rel="stylesheet" href="../_assets/css/jqm-demos.css">
<script src=... |
/* hoverIntent is similar to jQuery's built-in "hover" method except that
* instead of firing the handlerIn function immediately, hoverIntent checks
* to see if the user's mouse has slowed down (beneath the sensitivity
* threshold) before firing the event. The handlerOut function is only
* called after a matchin... |
package org.springframework.boot.cli.command.shell;
import jline.Terminal;
import org.fusesource.jansi.Ansi;
import org.fusesource.jansi.AnsiRenderer.Code;
/**
* Simple utility class to build an ANSI string when supported by the {@link Terminal}.
*
* @author Phillip Webb
*/
class AnsiString {
private final Te... |
#ifndef TENSORFLOW_KERNELS_REVERSE_OP_H_
#define TENSORFLOW_KERNELS_REVERSE_OP_H_
#include "third_party/eigen3/unsupported/Eigen/CXX11/Tensor"
#include "tensorflow/core/framework/tensor_types.h"
namespace tensorflow {
namespace functor {
// Functor used by ReverseOp to do the computations.
template <typename Devic... |
package com.marklogic.client.test.dataservices;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.marklogic.client.dataservices.ExecCaller;
import com.marklogic.client.dataservices.IOEndpoint;
import com.marklogic.client.document.JSONDocumentManager;
imp... |
#ifndef WEBRTC_MEDIA_BASE_FAKEVIDEOCAPTURER_H_
#define WEBRTC_MEDIA_BASE_FAKEVIDEOCAPTURER_H_
#include <string.h>
#include <memory>
#include <vector>
#include "webrtc/base/timeutils.h"
#include "webrtc/media/base/videocapturer.h"
#include "webrtc/media/base/videocommon.h"
#include "webrtc/media/base/videoframe.h"
... |
$("#arrowsExample").rangeSlider({ arrows: false });
$("#arrowsExample").editRangeSlider({ arrows: false });
$("#arrowsExample").dateRangeSlider({ arrows: false });
// Bounds
$("#boundsExample").rangeSlider({ bounds: { min: 10, max: 90 } });
$("#boundsExample").editRangeSlider({ bounds: { min: 10, max: 90 } });
$("#boun... |
/**
* Modulable core module of Express lib
* @author Ioan CHIRIAC
* @license MIT
* @link https://github.com/m0dul4r/core-express
*/
var express = require('express');
module.exports = function(imports) {
var app;
var router;
return {
core: {
// app service declaration
app: {
/... |
static const size_t BATCHES = 101;
static const size_t BATCH_SIZE = 30;
static const int PREVECTOR_SIZE = 28;
static const unsigned int QUEUE_BATCH_SIZE = 128;
// This Benchmark tests the CheckQueue with a slightly realistic workload,
// where checks all contain a prevector that is indirect 50% of the time
// and ther... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Windows.Forms;
using AdamsLair.WinForms.PropertyEditing;
using Duality;
using Duality.Components;
using Duality.Resources;
using Duality.Editor;
using Duality.Editor.UndoRedoActions;
using Duality.Ed... |
__author__ = 'Tom Schaul, tom@idsia.ch'
from pybrain.rl.environments.twoplayergames.gomoku import GomokuGame
class PenteGame(GomokuGame):
""" The game of Pente.
The rules are similar to Go-Moku, except that it is now possible to capture
stones, in pairs, by putting stones at both ends of a pair of the o... |
<!--
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.... |
var collections = Npm.require("ecmascript-collections");
Map = collections.Map;
Set = collections.Set;
|
/**
* @include GeoExt/data/FeatureRecord.js
* @require OpenLayers/Feature/Vector.js
*/
/** api: (define)
* module = GeoExt.data
* class = FeatureReader
* base_link = `Ext.data.DataReader <http://dev.sencha.com/deploy/dev/docs/?class=Ext.data.DataReader>`_
*/
Ext.namespace('GeoExt', 'GeoExt.data');
/** api... |
(function() {
'use strict';
angular
.module('app')
.directive('uiScrollTo', uiScrollTo);
uiScrollTo.$inject = ['$location', '$anchorScroll'];
function uiScrollTo($location, $anchorScroll) {
return {
restrict: 'AC',
replace: true,
link: link
};
function link... |
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
module('helper:version-lt', function (hooks) {
setupRenderingTest(hooks);
test('should calculate major version diffs', async function ... |
project_path: /web/_project.yaml
book_path: /web/fundamentals/_book.yaml
{# wf_updated_on: 2018-08-30 #}
{# wf_published_on: 2016-11-08 #}
# A Credential Management API {: .page-title }
{% include "web/_shared/contributors/agektmr.html" %}
{% include "web/_shared/contributors/megginkearney.html" %}
A [Credential Ma... |
<?php
namespace Tonik\Theme\App\Http;
/*
|-----------------------------------------------------------
| Theme AJAX Actions
|-----------------------------------------------------------
|
| This file is for registering your theme AJAX actions,
| which can be hit with HTTP requests in order to make
| smooth and dynamic ... |
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Grid Layout Test: Positioned grid items</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-grid/#abspos" title="9. Absolute Positioning">
<link rel="match" href="positioned-grid-it... |
package co.jasonwyatt.srml.tags;
/**
* @author jason
*
* Thrown when we could not register a user-supplied Tag class.
*/
public class CouldNotRegisterTagException extends RuntimeException {
CouldNotRegisterTagException(Throwable e, Class<? extends Tag> tagClass) {
super("Could not register "+tagClass.g... |
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./language/formatter/abstractFormatter"));
__export(require("./formatters/index"));
|
<?php
namespace ImboUnitTest\EventListener;
use Imbo\EventListener\StorageOperations,
Imbo\Exception\StorageException,
DateTime;
/**
* @covers Imbo\EventListener\StorageOperations
* @group unit
* @group listeners
*/
class StorageOperationsTest extends ListenerTests {
/**
* @var StorageOperation... |
from opsbro.httpclient import get_http_exceptions, httper
from opsbro.collector import Collector
from opsbro.jsonmgr import jsoner
class Geoloc(Collector):
def __init__(self):
super(Geoloc, self).__init__()
self.geodata = {}
def launch(self):
# If already got data, keep it (d... |
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<ImageView
android:id="@+id/imageViewFromMediaChooserBucketRowView"
android:layout_width="100dp"
... |
/**
* @license Highcharts JS v6.0.2 (2017-10-20)
* StaticScale
*
* (c) 2016 Torstein Honsi, Lars A. V. Cabrera
*
* --- WORK IN PROGRESS ---
*
* License: www.highcharts.com/license
*/
'use strict';
(function(factory) {
if (typeof module === 'object' && module.exports) {
module.exports = factory;
... |
% The Rust Reference Manual
The manual has moved, and is now called [the reference](reference/index.html).
|
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.IO;
using Microsoft.VisualStudio.Shell;
namespace Roslyn.VisualStudio.Setup
{
/// <summary>
/// A <see cref="Registration... |
<?php
/**
* The template file for displaying the comments and comment form for the
* Twenty Twenty theme.
*
* @package WordPress
* @subpackage Twenty_Twenty
* @since 1.0.0
*/
/*
* If the current post is protected by a password and
* the visitor has not yet entered the password we will
* return early without ... |
package profile
import (
"bufio"
"bytes"
"io"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
"strings"
"testing"
)
type checkFn func(t *testing.T, stdout, stderr []byte, err error)
var profileTests = []struct {
name string
code string
checks []checkFn
}{{
name: "default profile (cpu)",
code: `
package ... |
W3CWebSocket
============
* [Constructor](#constructor)
* [Limitations](#limitations)
`var W3CWebSocket = require('websocket').w3cwebsocket`
Implementation of the [W3C WebSocket API](http://www.w3.org/TR/websockets/) for browsers.
The exposed class lets the developer use the browser *W3C WebSocket API* in Node:
``... |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.Host;
using Microsoft.CodeAnalysis.Text;
namespace Microsoft.CodeAnalysis... |
"""Contains building blocks for various versions of Residual Networks.
Residual networks (ResNets) were proposed in:
Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun
Deep Residual Learning for Image Recognition. arXiv:1512.03385, 2015
More variants were introduced in:
Kaiming He, Xiangyu Zhang, Shaoqing Ren, J... |
/*jshint asi: true, browser: true, curly: true, eqeqeq: true, forin: false, immed: false, newcap: true, noempty: true, strict: true, undef: true */
/*global jQuery: false */
(function( window, $, undefined ){
'use strict';
// get global vars
var document = window.document;
var Modernizr = window... |
package org.apache.camel.component.aws.swf;
public interface SWFConstants {
String OPERATION = "CamelSWFOperation";
String WORKFLOW_ID = "CamelSWFWorkflowId";
String RUN_ID = "CamelSWFRunId";
String STATE_RESULT_TYPE = "CamelSWFStateResultType";
String EVENT_NAME = "CamelSWFEventName";
String ... |
import sys
from SimpleXMLRPCServer import SimpleXMLRPCServer
from remoteserver import announce_port
class Documentation(SimpleXMLRPCServer):
def __init__(self, port=8270, port_file=None):
SimpleXMLRPCServer.__init__(self, ('127.0.0.1', int(port)))
self.register_function(self.get_keyword_names)
... |
<?php
namespace ZendTest\Json;
use Zend\Json;
error_reporting( E_ALL | E_STRICT ); // now required for each test suite
/**
* Zend_JSON
*/
/**
* PHPUnit test case
*/
/**
* @group Zend_JSON
*/
class JsonXmlTest extends \PHPUnit_Framework_TestCase
{
/**
* xml2json Test 1
* It tests the conv... |
<!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... |
// Code generated by client-gen. DO NOT EDIT.
package fake
// FakeSubjectAccessReviews implements SubjectAccessReviewInterface
type FakeSubjectAccessReviews struct {
Fake *FakeAuthorizationV1beta1
}
|
module Rabel
module Model
EMPTY_DATASET = []
ORDER_ASC = 'ASC'
ORDER_DESC = 'DESC'
ORDER_SPEC = [ORDER_ASC, ORDER_DESC]
end
end
|
[![Build Status][travis-image]][travis-url]
[![Windows Build Status][appveyor-image]][appveyor-url]
[![GoDoc][godoc-image]][godoc-url]
[![Gitter chat][gitter-image]][gitter-url]
OpenCensus Go is a Go implementation of OpenCensus, a toolkit for
collecting application performance and behavior monitoring data.
Currently ... |
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/classes', __FILE__)
describe "Kernel#==" do
it "returns true only if obj and other are the same object" do
o1 = mock('o1')
o2 = mock('o2')
(o1 == o1).should == true
(o2 == o2).should == true
(o1 == o2... |
This repository is now an archive. The updated version is available at https://framagit.org/wikimedia-france/member_access
# member_access
Scripts that manage some access synching when memberships expire
## Installation
1. `git clone https://github.com/wikimedia-france/member_acces`
1. Copy config-sample.ini to confi... |
package com.annimon.stream.operator;
import com.annimon.stream.function.Supplier;
import com.annimon.stream.iterator.LsaIterator;
import org.jetbrains.annotations.NotNull;
public class ObjGenerate<T> extends LsaIterator<T> {
private final Supplier<T> supplier;
public ObjGenerate(@NotNull Supplier<T> supplie... |
package org.elasticsearch.search.aggregations.bucket;
import org.elasticsearch.action.index.IndexRequestBuilder;
import org.elasticsearch.action.search.SearchPhaseExecutionException;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.comm... |
d3.contextMenu = function (menu, openCallback) {
// create the div element that will hold the context menu
d3.selectAll('.d3-context-menu').data([1])
.enter()
.append('div')
.attr('class', 'd3-context-menu');
// close menu
d3.select('body').on('click.d3-context-menu', function() {
d3.select('.d3-context-m... |
package dev.niekirk.com.instagram4android.requests.payload;
import java.util.List;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
/**
* Created by root on 20/09/17.
*/
@Getter
@Setter
@ToString(callSuper = true)
public class InstagramSuggestedUsers {
public String id;
public String vi... |
package org.apache.camel.component.mock;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.concurrent.atomic.AtomicReference;
import org.apache.camel.Exchange;
import org.apache.camel.Expression;
import org.apache.camel.Predicate;
import org.apache.camel.support.Express... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["VueMaterial"] = factory();
else
root["V... |
var q = require('q');
var IonicSnapshot = function(options) {
// modules
var _ = require('lodash');
var request = require('request');
var colors = require('gulp-util').colors;
var log = console.log.bind(console, '[' + colors.cyan('IonicReporter') + ']');
var IonicReporter = function(options) {
var se... |
declare module Kinetic {
var Node: {
new (config: ObjectOptionsConfig): INode;
}
interface INode {
cache(cacheConfig?: any): INode;
clone(attrs: any): INode;
destroy(): void;
draw(): INode;
drawBuffer(): any;
drawScene(): any;
getAbsoluteOpac... |
package com.google.zxing.client.androidtest;
import android.app.Activity;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Environment;
import android.view.View;
import android.widget.TextView;
public final class BenchmarkActivity extends Activity {
private View runBenchmarkButton;
priv... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = isImmutable;
var _isType = _interopRequireDefault(require("./isType"));
var _generated = require("./generated");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function ... |
package lunch.api;
public interface LunchRestaurantSubscriber {
// void addRestaurantAddedListener(EventListener<LunchRestaurantAddedEvent> restaurant);
}
|
# Contributing to GeoSpark
The project welcomes contributions. You can contribute to GeoSpark code or documentation by making Pull Requests on [GeoSpark GitHub Repo](https://github.com/DataSystemsLab/GeoSpark).
The following sections brief the workflow of how to complete a contribution.
## Pick / Annouce a task
It... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("04.... |
#ifndef ART_RUNTIME_VERIFIER_REG_TYPE_CACHE_H_
#define ART_RUNTIME_VERIFIER_REG_TYPE_CACHE_H_
#include "base/casts.h"
#include "base/macros.h"
#include "base/stl_util.h"
#include "reg_type.h"
#include "runtime.h"
#include <stdint.h>
#include <vector>
namespace art {
namespace mirror {
class Class;
class ClassLoade... |
/* *
*
* Timeline Series.
*
* (c) 2010-2020 Highsoft AS
*
* Author: Daniel Studencki
*
* License: www.highcharts.com/license
*
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
'use strict';
import H from '../parts/Globals.js';
import LegendSymbolMixin from '../mixins/le... |
#if !defined NN_HAVE_WINDOWS
#include "cipc.h"
#include "sipc.h"
#include "../../aio/fsm.h"
#include "../../aio/usock.h"
#include "../utils/backoff.h"
#include "../../utils/err.h"
#include "../../utils/cont.h"
#include "../../utils/alloc.h"
#include "../../utils/fast.h"
#include "../../utils/attr.h"
#include <st... |
namespace Kvasir {
//Low Power Consumption Mode
namespace DsRckCtl{ ///<Sub Clock Control Register
using Addr = Register::Address<0x40035104,0xfffffffc,0x00000000,unsigned char>;
///CEC clock control bit
constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::ReadWr... |
"""Locations where we look for configs, install stuff, etc"""
from __future__ import absolute_import
import os
import os.path
import site
import sys
from distutils import sysconfig
from distutils.command.install import install, SCHEME_KEYS # noqa
from pip.compat import WINDOWS, expanduser
from pip.utils import appd... |
package routers
import (
"strings"
"github.com/beego/beeweb/models"
)
// DocsRouter serves about page.
type DocsRouter struct {
baseRouter
}
// Get implemented Get method for DocsRouter.
func (this *DocsRouter) Get() {
this.Data["IsDocs"] = true
this.TplNames = "docs.html"
reqUrl := this.Ctx.Request.URL.Stri... |
/*
* Copyright 2001-2004 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 ap... |
package main
import _ "unsafe" // for go:linkname
// Defined in the runtime package.
//go:linkname runtime_getm_for_test runtime.getm
func runtime_getm_for_test() uintptr
|
<html lang="en">
<head>
<title>TILEPro Built-in Functions - Using the GNU Compiler Collection (GCC)</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Using the GNU Compiler Collection (GCC)">
<meta name="generator" content="makeinfo 4.11">
<link title="Top" rel="start" href=... |
//--------------------------------------------------------------------
//
// Tool for generating CompactTrieDictionary data files (.ctd files).
//
// Usage: genctd [options] -o output-file.ctd input-file
//
// options: -v verbose
// -? or -h help
//
// The input file is a pl... |
package org.elasticsearch.index.mapper;
import org.elasticsearch.common.compress.CompressedXContent;
import org.elasticsearch.index.mapper.DocumentMapper;
import org.elasticsearch.test.ESSingleNodeTestCase;
import java.io.IOException;
import static org.elasticsearch.test.StreamsUtils.copyToStringFromClasspath;
imp... |
// Copyright (c) 2011-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_QT_TRANSACTIONRECORD_H
#define BITCOIN_QT_TRANSACTIONRECORD_H
#include "amount.h"
#include "uint256.h"
#incl... |
var requestRunning = false;
var xmlHttp = null;
var xmlHttpDebug = false;
// Inspired by great work of Webfx in xloadtree
function umbracoStartXmlRequest(scriptUrl, postData, eventFunction) {
// random hack for ie7
day = new Date();
z = day.getTime();
y = (z - (parseInt(z/1000,10) * 1000))/10;
scriptU... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>SuperLU: SRC/cgsitrf.c File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><b... |
import unittest, time, sys, random, math, getpass
sys.path.extend(['.','..','../..','py'])
import h2o, h2o_cmd, h2o_import as h2i, h2o_util, h2o_print as h2p, h2o_summ
print "Here we pass a list of data values. The dataset is just those data values"
print "useful for analyzing small datasets, like with 3 values (ints ... |
(function ($) {
// Prevent to read twice
if ($.cssFinalize) {
return;
}
$.cssFinalizeSetup = {
// Which node CSS3 Finalize should read and add vendor prefixes
node : 'style,link',
// If it should add the vendor prefixes
append : true,
// This will be called for each nodes after vendor prefixes have be... |
<?php
class Google_Service_Replicapoolupdater_OperationError extends Google_Collection
{
protected $collection_key = 'errors';
protected $errorsType = 'Google_Service_Replicapoolupdater_OperationErrorErrors';
protected $errorsDataType = 'array';
/**
* @param Google_Service_Replicapoolupdater_OperationErro... |
class AddAttachmentPictureToPartners < ActiveRecord::Migration
def self.up
change_table :partners do |t|
t.attachment :picture
end
end
def self.down
remove_attachment :partners, :picture
end
end
|
*A static library that manages preferences easily.*
## How to Use PHPrefsManager
**Something like this could go into your constructor:**
NSString *const tweakId = @"com.baileyseymour.mytweak";
NSString *const prefsNotification = @"com.baileyseyomur.mytweak-prefsChanged";
NSDictionary *defaultDi... |
<?php
if (!defined('DIR_WS_HTTP_CATALOG')) include("../includes/configure.php");
define('MODULE_PAYMENT_ICEPAY_PBAR_TEXT_TITLE', 'Betalen via de telefoon');
?> |
<?php
function getTemplateOptions($sql, $template) {
$options = <<<OPTIONS
<script type="text/javascript">
$(function() {
function load_palette(){
var palette = $('.current-palette').attr('title');
var href='';
if(palette == 'default'){
href='data:text/css;base64,IA==';
... |
#ifndef SETUPWIZARD_INTRO_H
#define SETUPWIZARD_INTRO_H
#include "warnings-disable.h"
WARNINGS_DISABLE
#include <QObject>
WARNINGS_ENABLE
#include "TWizardPage.h"
/* Forward declaration(s). */
namespace Ui
{
class IntroPage;
}
class QWidget;
/**
* \ingroup widgets-setup
* \brief The IntroPage is a TWizardPage wh... |
package org.kaazing.gateway.client.impl.http;
import static java.util.Collections.unmodifiableMap;
import java.net.URI;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.logging.Level;
import java.util.logging.Logger;
imp... |
package scalability
import (
"fmt"
"math"
"math/rand"
"net"
"net/http"
"os"
"strconv"
"sync"
"time"
"k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/util/intstr"
utilnet "k8s.io/apimac... |
This page has been deprecated see [User Guide](Users-Guide.md) for the latest information.
|