text stringlengths 3 1.05M |
|---|
package mg
import (
"os"
"path"
"path/filepath"
"strings"
"sync"
)
var (
pkgDirsLck = sync.RWMutex{}
pkgDirsCache = map[string]bool{}
)
type mPkgDirs struct {
Env map[string]string
}
func (m *mPkgDirs) Call() (interface{}, string) {
return pkgDirs(m.Env), ""
}
func init() {
registry.Register("pkg_dirs"... |
package org.apache.hadoop.io.erasurecode.rawcoder;
import java.nio.ByteBuffer;
/**
* A raw encoder in XOR code scheme in pure Java, adapted from HDFS-RAID.
*
* XOR code is an important primitive code scheme in erasure coding and often
* used in advanced codes, like HitchHiker and LRC, though itself is rarely
* ... |
import os
import matplotlib.pyplot as plt
from framework.mongo import database
from website import settings
from .utils import plot_dates, mkdirp
link_collection = database['privatelink']
FIG_PATH = os.path.join(settings.ANALYTICS_PATH, 'figs', 'features')
mkdirp(FIG_PATH)
def analyze_view_only_links():
date... |
package org.onosproject.drivers.corsa;
import org.junit.Before;
import org.onosproject.net.driver.AbstractDriverLoaderTest;
/**
* Corsa drivers loader test.
*/
public class CorsaDriversLoaderTest extends AbstractDriverLoaderTest {
@Before
public void setUp() {
loader = new CorsaDriversLoader();
... |
<?php
namespace Blogger\BlogBundle\DataFixtures\ORM;
use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
use Doctrine\Common\Persistence\ObjectManager;
use Blogger\BlogBundle\Entity\Blog;
/**
* Description of BlogFixtures
*
* @author pkovalchuk
*/
class Blo... |
require 'test_helper'
class SectionTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
|
<?php
namespace Aliyun\Core;
abstract class AcsRequest
{
protected $version;
protected $product;
protected $actionName;
protected $regionId;
protected $acceptFormat;
protected $method;
protected $protocolType = "http";
protected $content;
protected $queryParameters = array();
protected $headers = ... |
<?php
namespace Doctrine\Tests\ORM\Functional\Ticket;
require_once __DIR__ . '/../../../TestInit.php';
class DDC513Test extends \Doctrine\Tests\OrmFunctionalTestCase
{
protected function setUp()
{
parent::setUp();
$this->_schemaTool->createSchema(array(
$this->_em->getClassMetadata... |
package gexec_test
import (
. "github.com/onsi/gomega/gexec"
"os/exec"
"time"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
type NeverExits struct{}
func (e NeverExits) ExitCode() int {
return -1
}
var _ = Describe("ExitMatcher", func() {
var command *exec.Cmd
var session *Session
BeforeEach(fu... |
require('../../modules/es6.math.expm1');
module.exports = require('../../modules/_core').Math.expm1; |
package com.bgfurfeature.annotation;
interface HelloService {
String hello(String name);
}
|
package org.elasticsearch.search.aggregations.pipeline.bucketmetrics.sum;
import org.elasticsearch.search.aggregations.pipeline.BucketHelpers.GapPolicy;
import org.elasticsearch.search.aggregations.pipeline.PipelineAggregatorFactory;
import org.elasticsearch.search.aggregations.pipeline.bucketmetrics.BucketMetricsPa... |
public class Container {
public final int id; //unique identifier for the container, set automatically
public final String type; // type of cargo in container
private static int lastID = 0;
private int numops; // number of times this container has been pushed
public Container(String type) {
lastID+... |
npm-test(1) -- Test a package
=============================
## SYNOPSIS
npm test <name>
## DESCRIPTION
This runs a package's "test" script, if one was provided.
To run tests as a condition of installation, set the `npat` config to
true.
## SEE ALSO
* npm-run-script(1)
* npm-scripts(7)
* npm-start(1)
* npm-... |
param($rootPath, $toolsPath, $package)
$scriptPath = $script:MyInvocation.MyCommand.Path
Write-Host "uninstall is running"
$path = Join-Path $toolsPath "uninstall.ps1"
if ($scriptPath -ne $path)
{
throw "'$toolsPath' value is wrong."
} |
MathJax.Localization.addTranslation("ce","MathMenu",{version:"2.5.0",isLoaded:true,strings:{}});MathJax.Ajax.loadComplete("[MathJax]/localization/ce/MathMenu.js");
|
<?php
namespace Test\Unit\Result;
require_once dirname(dirname(__DIR__)) . '/Setup.php';
use Test\Setup;
use Braintree;
class ErrorTest extends Setup
{
public function testCallingNonExsitingFieldReturnsNull()
{
$result = new Braintree\Result\Error(['errors' => [], 'params' => [], 'message' => 'briefl... |
"""
Base file upload handler classes, and the built-in concrete subclasses
"""
from __future__ import unicode_literals
from io import BytesIO
from django.conf import settings
from django.core.files.uploadedfile import (
InMemoryUploadedFile, TemporaryUploadedFile,
)
from django.utils.encoding import python_2_uni... |
<h1 id="npm-prefix1">npm-prefix(1)</h1>
<h2 id="display-prefix">Display prefix</h2>
<h3 id="synopsis">Synopsis</h3>
<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>npm prefix <span class="o">[</span><span class="nt">-g</span><span class="o">]</span>
</code></pre></div... |
# OutputCache
The `OutputCache` pattern caches output between calls to `start()` and `end()`.
## Quick Start
```php
use Zend\Cache\PatternFactory;
$outputCache = PatternFactory::factory('output', [
'storage' => 'apc'
]);
```
## Configuration Options
Option | Data Type | Default Value | Description
------ | ---... |
declare namespace sn_ws {
class SOAPMessageV2 {
constructor();
constructor(soapMessage: string, soapFunction: string);
execute(): SOAPResponseV2;
executeAsync(): SOAPResponseV2;
setHttpMethod(method: string): void;
setHttpTimeout(timeoutMs: number): void;
setB... |
/**
The YUI module contains the components required for building the YUI seed file.
This includes the script loading mechanism, a simple queue, and the core
utilities for the library.
@module yui
@main yui
@submodule yui-base
**/
/*jshint eqeqeq: false*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The... |
package rx.reactivestreams;
import org.reactivestreams.Publisher;
import org.reactivestreams.Subscriber;
import org.reactivestreams.Subscription;
import org.reactivestreams.tck.SubscriberWhiteboxVerification;
import org.reactivestreams.tck.TestEnvironment;
import org.testng.annotations.Test;
import rx.Observable;
im... |
<!DOCTYPE html>
<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"/>
<link rel="SHORTCUT ICON" href="../../../../../img/clover.ico" />
<link rel="stylesheet" href="../../../../../aui/css/aui.min.css" media... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("leaflet"), require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["leaflet", "react", "react-dom"], factory);
e... |
"use strict";
var React = require('React');
var ReactTransitionChildMapping = require('ReactTransitionChildMapping');
var cloneWithProps = require('cloneWithProps');
var emptyFunction = require('emptyFunction');
var merge = require('merge');
var ReactTransitionGroup = React.createClass({
displayName: 'ReactTrans... |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
// ===========================================================================
// File: compile.h
//
// Interfaces and support for zap compiler and zap files
//
... |
require 'rmagick'
# Demonstrate the Image#texture_fill_to_border method
# This example is nearly identical to the color_fill_to_border example.
before = Magick::Image.new(200,200) do
self.background_color = 'white'
self.border_color = 'black'
end
before.border!(1,1,'black')
circle = Magick::Draw.new
circle.fill(... |
class BACnetAdapterIoRequestPool;
ref class BACnetAdapterIoRequest : public BridgeRT::IAdapterIoRequest
{
friend class BACnetAdapterIoRequestPool;
public:
//
// BridgeRT::IAdapterIoRequest overrides
//
virtual uint32 Status()
{
return this->GetStatus(nullptr);
}
virtual uint32... |
[#]: collector: (lujun9972)
[#]: translator: ( )
[#]: reviewer: ( )
[#]: publisher: ( )
[#]: url: ( )
[#]: subject: (Get a Preconfigured Tiling Window Manager on Ubuntu With Regolith)
[#]: via: (https://itsfoss.com/regolith-linux-desktop/)
[#]: author: (Abhishek Prakash https://itsfoss.com/author/abhishek/)
Get a Prec... |
/**
* @ngdoc directive
* @name ionToggle
* @module ionic
* @codepen tfAzj
* @restrict E
*
* @description
* A toggle is an animated switch which binds a given model to a boolean.
*
* Allows dragging of the switch's nub.
*
* The toggle behaves like any [AngularJS checkbox](http://docs.angularjs.org/api/ng/inp... |
package com.chuxueweather.android.util;
import android.text.TextUtils;
import android.widget.EditText;
import com.chuxueweather.android.db.City;
import com.chuxueweather.android.db.County;
import com.chuxueweather.android.db.Province;
import com.chuxueweather.android.gson.Weather;
import com.google.gson.Gson;
import... |
<?php
namespace spec\GithubWebhook;
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
class WebHookSpec extends ObjectBehavior
{
function it_is_initializable()
{
$this->shouldHaveType('GithubWebhook\WebHook');
}
function it_returns_null_when_event_not_found()
{
$this->getEvent()-... |
--
-- Copyright (C) 2004 - 2014 Brian McCallister
--
-- 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 ... |
<?php
if (sfConfig::get('app_sfShibboleth_routes_register', true) && in_array('sfShibbolethAuth', sfConfig::get('sf_enabled_modules', array())))
{
$this->dispatcher->connect('routing.load_configuration', array('sfShibbolethRouting', 'listenToRoutingLoadConfigurationEvent'));
}
if (sfConfig::get('app_sfShibboleth_ro... |
<!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 (version 1.7.0_75) on Wed Nov 11 15:24:14 PST 2015 -->
<title>Constant Field Values (Parse 1.11.0 API)</title>
<meta name="date" content="2015-11-11">... |
<!-- Good morning, Mr. Phelps. -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>or-tools/src/graph/: operations_research::EbertGraph< NodeIndexType, ArcIndexType > Class Template Reference - Doxy</title>
<link rel="shortcut icon" href="../../../favicon.ico"... |
package storm.trident.spout;
import backtype.storm.Config;
import backtype.storm.spout.ISpoutOutputCollector;
import backtype.storm.spout.SpoutOutputCollector;
import backtype.storm.task.TopologyContext;
import backtype.storm.topology.IRichSpout;
import backtype.storm.tuple.Fields;
import backtype.storm.utils.Rotating... |
include Windows::Helper
actions :install, :remove
attribute :feature_name, :kind_of => String, :name_attribute => true
def initialize(name, run_context=nil)
super
@action = :install
@provider = lookup_provider_constant(locate_default_provider)
end
private
def locate_default_provider
if ::File.exists?(locate... |
alias mux="tmuxinator"
|
import ALPHA3
import math
# A generic encoding routine used by various decoders:
def encodeData(decoder, data, encoding_function, valid_values, pre_xor=True, terminating_char=""):
assert decoder, "Decoder is missing or empty"
assert data.find("\0") == -1, "Shellcode must be NULL free"
# Older encoders use... |
/*
* dewarp4.c
*
* Single page dewarper
*
* Reference model (book-level, dewarpa) operations and debugging output
*
* Top-level single page dewarper
* l_int32 dewarpSinglePage()
*
* Operations on dewarpa
* l_int32 dewarpaListPages()
* l_int... |
package storage
import (
"fmt"
"strings"
"time"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels"
utilerrors "k8s.io/apimachinery/pkg/util/errors"
clientset "k8s.io/client-go/kubernetes"
"k8s.io/kubern... |
import Controller from '@ember/controller';
import config from 'wholetale/config/environment';
import EventStream from 'npm:sse.js';
import { inject as service } from '@ember/service';
import { computed } from '@ember/object';
import $ from 'jquery';
import { later } from '@ember/runloop';
import { getOwner } from '@em... |
@extends('layout.masterfront')
@section('content')
<div class="col-md-12 shortlink-form">
<div class="row">
<h2 class="text-center">Generate Short link</h2>
<br/>
<br/>
<div class="center-block">
<form class="form">
<div class="col-md-8 col-md-offset-2">
... |
#ifndef SystemInfo_h
#define SystemInfo_h
#include <wtf/text/WTFString.h>
namespace WebCore {
// NOTE: Keep these in order so callers can do things like
// "if (windowsVersion() >= WindowsVista) ...". It's OK to change or add values,
// though.
enum WindowsVersion {
// CE-based versions
WindowsCE1 = 0,
... |
// Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you m... |
/**
* SetTopBoxLineItemErrorReason.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.v201511;
public class SetTopBoxLineItemErrorReason implements java.io.Serializable {
private java.lang.String _valu... |
package com.intellij.ide.search;
import com.intellij.ide.ui.search.PorterStemmerUtil;
import junit.framework.TestCase;
public class PorterStemmerTest extends TestCase {
public void test() {
assertEquals("name", PorterStemmerUtil.stem("names"));
assertEquals("j2ee", PorterStemmerUtil.stem("j2ee"));
ass... |
#ifndef BOOST_ICL_DETAIL_ASSOCIATED_VALUE_HPP_JOFA_100829
#define BOOST_ICL_DETAIL_ASSOCIATED_VALUE_HPP_JOFA_100829
#include <boost/icl/detail/design_config.hpp>
#include <boost/icl/type_traits/is_combinable.hpp>
#include <boost/mpl/not.hpp>
#include <boost/mpl/and.hpp>
namespace boost{namespace icl
{
template<clas... |
<?php
/**
* Global Configuration Override
*
* You can use this file for overriding configuration values from modules, etc.
* You would place values in here that are agnostic to the environment and not
* sensitive to security.
*
* @NOTE: In practice, this file will typically be INCLUDED in your source
* control,... |
import { Observable } from '../facade/async';
import { AsyncValidatorFn, ValidatorFn } from './directives/validators';
/**
* Indicates that a Control is valid, i.e. that no errors exist in the input value.
*/
export declare const VALID: string;
/**
* Indicates that a Control is invalid, i.e. that an error exists in... |
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/squarecamera__camera_snap_selected" android:state_pressed="true"/>
<item android:drawable="@drawable/squarecamera__camera_snap_unselected" android:state_pressed="false"/... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>coq-in-coq: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.... |
package com.opengamma.analytics.financial.credit.isdastandardmodel;
import static com.opengamma.analytics.math.utilities.Epsilon.epsilon;
import java.util.Arrays;
import com.opengamma.analytics.math.function.Function1D;
import com.opengamma.analytics.math.rootfinding.NewtonRaphsonSingleRootFinder;
import com.openga... |
import { MangoQuerySelector } from '../rx-query';
import { StringKeys } from '../util';
import { UpdateQuery } from './update';
export type CRDTEntry<RxDocType> = {
selector?: MangoQuerySelector<RxDocType>;
ifMatch?: UpdateQuery<RxDocType>;
ifNotMatch?: UpdateQuery<RxDocType>;
};
/**
* Options for the c... |
"use strict";
var animation_1 = require('./src/animate/animation');
exports.Animation = animation_1.Animation;
var animation_builder_1 = require('./src/animate/animation_builder');
exports.AnimationBuilder = animation_builder_1.AnimationBuilder;
var browser_details_1 = require('./src/animate/browser_details');
exports.... |
import Edit from '../../components/Edit';
import PaymentFormContents from './PaymentFormContents';
export default class PaymentEdit extends Edit {}
PaymentEdit.defaultProps = {
...Edit.defaultProps,
category: 'payments',
FormContents: PaymentFormContents,
postRemovePath: '/payments',
title: 'Edit Payment',
... |
'''Load and display a GIF animation.
Usage::
animation.py [<filename>]
If the filename is omitted, a sample animation is loaded
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id: animation.py 1967 2008-03-23 07:02:51Z Alex.Holkner $'
# The dinosaur.gif file packaged alongside this script is in the publ... |

===========
[](https://gitter.im/Dogfalo/materialize?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Materialize, a CSS Framework based on material design
##... |
;(function () {
"use strict";
appModule('app.image')
//
// https://github.com/apache/cordova-plugin-file
// http://www.raymondcamden.com/2014/08/18/PhoneGapCordova-Example-Getting-File-Metadata-and-an-update-to-the-FAQ
// http://www.html5rocks.com/en/tutorials/file/filesystem/
// http://commun... |
namespace base {
namespace i18n {
// UNICODE CASE-HANDLING ADVICE
//
// In English it's always safe to convert to upper-case or lower-case text
// and get a good answer. But some languages have rules specific to those
// locales. One example is the Turkish I:
// http://www.i18nguy.com/unicode/turkish-i18n.html
//
//... |
#ifndef APR_OPTIONAL_H
#define APR_OPTIONAL_H
#include "apu.h"
/**
* @file apr_optional.h
* @brief APR-UTIL registration of functions exported by modules
*/
#ifdef __cplusplus
extern "C" {
#endif
/**
* @defgroup APR_Util_Opt Optional Functions
* @ingroup APR_Util
*
* Typesafe registration and retrieval of ... |
package meta
import (
"fmt"
"k8s.io/kubernetes/pkg/api/unversioned"
)
const (
AnyGroup = "*"
AnyVersion = "*"
AnyResource = "*"
AnyKind = "*"
)
// PriorityRESTMapper is a wrapper for automatically choosing a particular Resource or Kind
// when multiple matches are possible
type PriorityRESTMapper st... |
<a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2Fthinkbox-deadline%2Fazuredeploy.json" target="_blank">
<img src="http://azuredeploy.net/deploybutton.png"/>
</a>
<a href="http://armviz.io/#/?load=https%3A%2F%2Fra... |
/**************************************************************************//**
* @file em_device.h
* @brief CMSIS Cortex-M Peripheral Access Layer for Silicon Laboratories
* microcontroller devices
*
* This is a convenience header file for defining the part number on the
* build command line, instead of s... |
/*!
* inferno-compat v1.0.0-beta36
* (c) 2016 Dominic Gannaway
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('./inferno-component'), require('./inferno')) :
typeof define === 'function' && define.amd ? d... |
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
namespace System.Linq.Parallel
{
/// <summary>
/// An inlined sum aggregation and its enumerator, for Nullable longs.
/// </summary>
internal sealed class NullableLongSumAggregationOperator : InlinedAggregationOperator... |
package eu.danieldk.dictomaton.categories;
public interface Tests {
}
|
from .stochastic_gradient import BaseSGDClassifier
from ..feature_selection.from_model import _LearntSelectorMixin
class Perceptron(BaseSGDClassifier, _LearntSelectorMixin):
"""Perceptron
Read more in the :ref:`User Guide <perceptron>`.
Parameters
----------
penalty : None, 'l2' or 'l1' or 'ela... |
@echo off
:: The redirs to nul are important. %2 can end up being an unterminated "'d
:: string, so the remainder of the command line becomes the target file name,
:: which in turn fails because it's a filename containing >, nul, etc.
copy /y %1 %2 >nul 2>nul
|
<?php
declare(strict_types=1);
namespace Cake\Test\TestCase\Http;
use Cake\Http\CorsBuilder;
use Cake\Http\Response;
use Cake\TestSuite\TestCase;
class CorsBuilderTest extends TestCase
{
/**
* test allowOrigin() setting allow-origin
*/
public function testAllowOriginNoOrigin(): void
{
$... |
<?php
/**
* @see Zend_Validate_Interface
*/
// require_once 'Zend/Validate/Interface.php';
/**
* @category Zend
* @package Zend_Validate
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
ab... |
set -o errexit
set -o nounset
set -o pipefail
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
source "${KUBE_ROOT}/hack/lib/init.sh"
# The api version in which objects are currently stored in etcd.
KUBE_OLD_API_VERSION=${KUBE_OLD_API_VERSION:-"v1"}
# The api version in which our etcd objects should be converted to.
# The ne... |
module Serverspec::Type
class Lxc < Base
def exists?
@runner.check_lxc_container_exists(@name)
end
def running?
@runner.check_lxc_container_is_running(@name)
end
def to_s
'LXC'
end
end
end
|
package tidb
import (
"database/sql"
"os"
"testing"
"time"
"github.com/insionng/yougam/libraries/go-xorm/core"
"github.com/insionng/yougam/libraries/tests"
"github.com/insionng/yougam/libraries/xorm"
_ "github.com/pingcap/tidb"
)
var showTestSql = true
// [memory, goleveldb, boltdb]
func newTidbEngine(stor... |
namespace {
// Writes |size| bytes to |handle| and sets |*unblocked| to true.
// Used as a crude timeout mechanism by ReadData().
void UnblockPipe(HANDLE handle, DWORD size, bool* unblocked) {
std::string unblock_data(size, '\0');
// Unblock the ReadFile in LocalTestServer::WaitToStart by writing to the
// pipe.... |
CKEDITOR.plugins.setLang("showblocks","ja",{toolbar:"ブロック表示"}); |
MathJax.Hub.Config({
extensions: ["tex2jax.js","mml2jax.js","asciimath2jax.js","MathEvents.js","MathZoom.js","MathMenu.js","toMathML.js","TeX/noErrors.js","TeX/noUndefined.js","TeX/AMSmath.js","TeX/AMSsymbols.js","fast-preview.js","AssistiveMML.js","[Contrib]/a11y/accessibility-menu.js"],
jax: ["input/TeX","input... |
using System;
namespace Xwt.Backends
{
public interface ITreeStoreBackend: ITreeDataSource, IBackend
{
// WARNING: You don't need to implement this backend.
// Xwt provides a default implementation.
// You only need to implement it if the underlying widget
// toolkit has its own tree store implementation whi... |
extern bool qt_mac_execute_apple_script(const QString &script, AEDesc *ret);
#endif
#ifdef USE_DBUS
// https://wiki.ubuntu.com/NotificationDevelopmentGuidelines recommends at least 128
const int FREEDESKTOP_NOTIFICATION_ICON_SIZE = 128;
#endif
Notificator::Notificator(const QString &programName, QSystemTrayIcon *tray... |
package org.hsqldb.error;
/**
* SQL error codes.
*
* @author Fred Toussi (fredt@users dot sourceforge.net)
* @version 2.3.1
* @since 1.9.0
*/
public interface ErrorCode {
// neutral placeholder strings
int TOKEN_REQUIRED = 1; // $$ required: $$
int CONSTRAINT = 2; ... |
static NSData * AFSecKeyGetData(SecKeyRef key) {
CFDataRef data = NULL;
__Require_noErr_Quiet(SecItemExport(key, kSecFormatUnknown, kSecItemPemArmour, NULL, &data), _out);
return (__bridge_transfer NSData *)data;
_out:
if (data) {
CFRelease(data);
}
return nil;
}
#endif
static BOOL ... |
/*
* User: anna
* Date: 19-Nov-2008
*/
package com.intellij.refactoring.extractclass.usageInfo;
import com.intellij.openapi.project.Project;
import com.intellij.psi.*;
import com.intellij.psi.search.GlobalSearchScope;
import com.intellij.refactoring.util.FixableUsageInfo;
import com.intellij.util.IncorrectOperati... |
"use strict";
var iteratorSymbol = require("es6-symbol").iterator;
module.exports = function () {
var str = "🙈f", iterator, result;
if (typeof str[iteratorSymbol] !== "function") return false;
iterator = str[iteratorSymbol]();
if (!iterator) return false;
if (typeof iterator.next !== "function") return false;
... |
package proguard.optimize.evaluation;
import proguard.classfile.*;
import proguard.classfile.constant.RefConstant;
import proguard.evaluation.BasicInvocationUnit;
import proguard.evaluation.value.*;
/**
* This InvocationUbit loads parameter values and return values that were
* previously stored with the methods th... |
/* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/CoreUI.framework/CoreUI
*/
@class CUIPSDGradient;
@interface CUIPSDLayerEffectGradientOverlay : CUIPSDLayerEffectComponent {
CUIPSDGradient *_gradient;
}
@property(retain) CUIPSDGradient * gradient;
- (void)dealloc;
- (unsigned int)effe... |
package JSON::PP;
# JSON-2.0
use 5.005;
use strict;
use Exporter ();
BEGIN { @JSON::PP::ISA = ('Exporter') }
use overload ();
use JSON::PP::Boolean;
use Carp ();
#use Devel::Peek;
$JSON::PP::VERSION = '4.12';
@JSON::PP::EXPORT = qw(encode_json decode_json from_json to_json);
# instead of hash-access, i tried in... |
Translations: [Español](https://github.com/avajs/ava-docs/blob/master/es_ES/docs/recipes/browser-testing.md), [Français](https://github.com/avajs/ava-docs/blob/master/fr_FR/docs/recipes/browser-testing.md), [Italiano](https://github.com/avajs/ava-docs/blob/master/it_IT/docs/recipes/browser-testing.md), [Русский](https:... |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Redux Shopping Cart Example</title>
</head>
<body>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the brow... |
#region Apache License Version 2.0
#endregion Apache License Version 2.0
/*----------------------------------------------------------------
Copyright (C) 2022 Senparc
文件名:TenPayV3RefundQueryRequestData.cs
文件功能描述:微信支付统一下单请求参数
创建标识:Senparc - 20161227
--------------------------------------------... |
require 'beaker-rspec/spec_helper'
require 'beaker-rspec/helpers/serverspec'
unless ENV['RS_PROVISION'] == 'no'
hosts.each do |host|
if host['platform'] =~ /debian/
on host, 'echo \'export PATH=/var/lib/gems/1.8/bin/:${PATH}\' >> ~/.bashrc'
end
if host.is_pe?
install_pe
else
instal... |
package mat
import (
"math"
"gonum.org/v1/gonum/blas"
"gonum.org/v1/gonum/blas/blas64"
"gonum.org/v1/gonum/lapack/lapack64"
)
const (
badTriangle = "mat: invalid triangle"
badCholesky = "mat: invalid Cholesky factorization"
)
// Cholesky is a type for creating and using the Cholesky factorization of a
// symm... |
namespace {
// TODO(csilvers): error-checking on the pthreads routines
class Thread {
public:
Thread() : joinable_(false) { }
void SetJoinable(bool value) { joinable_ = value; }
void Start() {
pthread_attr_t attr;
pthread_attr_init(&attr);
pthread_attr_setdetachstate(&attr, joinable_ ? PTHREAD_CREAT... |
namespace policy {
namespace {
// The URL for the device management server.
const char kDefaultDeviceManagementServerUrl[] =
"https://m.google.com/devicemanagement/data/api";
// Used in BrowserPolicyConnector::SetPolicyProviderForTesting.
bool g_created_policy_service = false;
ConfigurationPolicyProvider* g_test... |
https://pubchem.ncbi.nlm.nih.gov/summary/summary.cgi?cid=80277
|
package org.elasticsearch.common.settings.loader;
import org.elasticsearch.ElasticsearchParseException;
import org.elasticsearch.common.xcontent.XContentFactory;
import org.elasticsearch.common.xcontent.XContentParser;
import org.elasticsearch.common.xcontent.XContentType;
import java.io.IOException;
import java.ut... |
require 'spec_helper'
describe "/campaigns/_edit" do
include CampaignsHelper
before do
login_and_assign
assign(:campaign, @campaign = FactoryGirl.create(:campaign))
assign(:users, [current_user])
end
it "should render [edit campaign] form" do
render
expect(view).to render_template(partia... |
#include "unicode/utypes.h"
#if !UCONFIG_NO_FORMATTING
#include "unicode/udat.h"
#include "unicode/uloc.h"
#include "unicode/datefmt.h"
#include "unicode/timezone.h"
#include "unicode/smpdtfmt.h"
#include "unicode/fieldpos.h"
#include "unicode/parsepos.h"
#include "unicode/calendar.h"
#include "unicode/numfmt.h"
#... |
using System;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Azure;
using Microsoft.Azure.Management.Sql.Models;
namespace Microsoft.Azure.Management.Sql
{
/// <summary>
/// Represents all the operations for operating on Azure SQL Database
/// Servers. Contains op... |