text stringlengths 3 1.05M |
|---|
#ifndef TEST_VIDEO_SOURCE_H_
#define TEST_VIDEO_SOURCE_H_
#include <cstdio>
#include <cstdlib>
#include <string>
#include "test/acm_random.h"
#include "vpx/vpx_encoder.h"
namespace libvpx_test {
static FILE *OpenTestDataFile(const std::string& file_name) {
std::string path_to_source = file_name;
const char *kDa... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>minic: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... |
#include "tensorflow/lite/testing/generate_testspec.h"
#include <random>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
namespace tflite {
namespace testing {
namespace {
TEST(GenerateRandomTensor, FloatValue) {
std::mt19937 random_engine;
auto random_func = [&]() {
return std::uniform_real_distribution... |
<?php
namespace Sylius\Bundle\InventoryBundle\Checker;
use Sylius\Bundle\InventoryBundle\Model\StockableInterface;
/**
* Checks availability for given stockable object.
*
* @author Paweł Jędrzejewski <pjedrzejewkski@diweb.pl>
*/
class AvailabilityChecker implements AvailabilityCheckerInterface
{
/**
*... |
// Copyright (c) Gurmit Teotia. Please see the LICENSE file in the project root for license information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Amazon.SimpleWorkflow;
using Amazon.SimpleWorkflow.Model;
using Guflow.Decider;
using M... |
import { Observable } from '../Observable';
/**
* Returns an Observable that, when the specified sampler Observable emits an item or completes, it then emits the most
* recently emitted item (if any) emitted by the source Observable since the previous emission from the sampler
* Observable.
*
* <img src="./img/sam... |
#import "TiRect.h"
#import "TiDimension.h"
@implementation TiRect
-(void)setRect:(CGRect)rect_
{
rect = rect_;
}
-(CGRect)rect
{
return rect;
}
-(id)x
{
return [NSNumber numberWithFloat:rect.origin.x];
}
-(void)setX:(id)x
{
ENSURE_SINGLE_ARG(x,NSNumber);
rect.origin.x = [x floatValue];
}
-(id)y
{
return [... |
#ifndef EXTC_TEST_METAMACROS_H
#define EXTC_TEST_METAMACROS_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "test.h"
void metamacros_test (void);
#endif
|
<?php
define('APP_NAME', "jedepri");
define('APP_SERVER', "jedepri.me");
define('APP_TITLE', "Je déprime mais je veux arrêter, je suis en pleine dépression et ça m'emmerde : heureusement, jedepri.me est là");
define('APP_DESC', 'Un petit coup de déprime ? Allez viens.');
define('APP_ANALYTICS', 'UA-13184829-3');
... |
CKEDITOR.plugins.setLang( 'forms', 'bs', {
button: {
title: 'Button Properties',
text: 'Text (Value)',
type: 'Type',
typeBtn: 'Button',
typeSbm: 'Submit',
typeRst: 'Reset'
},
checkboxAndRadio: {
checkboxTitle: 'Checkbox Properties',
radioTitle: 'Radio Button Properties',
value: 'Value',
selecte... |
namespace org {
namespace apache {
namespace lucene {
namespace index {
class Terms;
}
}
}
}
namespace java {
namespace lang {
class Class;
class String;
}
namespace util {
class Iterator;
}
namespace io {
class IOException;
}
}
template<class T> class JArray;... |
"use strict";
var _core = require("babel-runtime/core-js")["default"];
!(function (global) {
"use strict";
var hasOwn = Object.prototype.hasOwnProperty;
var undefined; // More compressible than void 0.
var iteratorSymbol = typeof _core.Symbol === "function" && _core.Symbol.iterator || "@@iterator";
var ... |
//
// Testing shows:
//
// In all cases, webView.request.URL is the previous page's URL (or empty) during the didStartLoad callback.
// When loading a page with a redirect:
// 1. shouldStartLoading (requestURL is target page)
// 2. didStartLoading
// 3. shouldStartLoading (requestURL is redirect target)
// 4. didFini... |
=pod
=head1 NAME
evp - high-level cryptographic functions
=head1 SYNOPSIS
#include <openssl/evp.h>
=head1 DESCRIPTION
The EVP library provides a high-level interface to cryptographic
functions.
L<B<EVP_Seal>I<...>|EVP_SealInit(3)> and L<B<EVP_Open>I<...>|EVP_OpenInit(3)>
provide public key encryption and decryp... |
package org.jbpm.console.ng.wi.dd.model;
import java.util.ArrayList;
import java.util.List;
import org.jboss.errai.common.client.api.annotations.Portable;
@Portable
public class ItemObjectModel {
public static final String REFLECTION_RESOLVER = "reflection";
public static final String MVEL_RESOLVER = "mve... |
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="xeBuz">
<meta name="description" content="Personal Website">
<meta name="genera... |
"""
Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
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... |
class Profile;
namespace browser_sync {
// TODO(zea): Rename this and ExtensionSettingsDTC to ExtensionOrApp*, since
// both actually handle the APP datatypes as well.
class ExtensionDataTypeController : public UIDataTypeController {
public:
ExtensionDataTypeController(
syncer::ModelType type, // Either EXT... |
package main
import (
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/http/httptest"
"os"
"strings"
"github.com/docker/docker/daemon/graphdriver"
"github.com/docker/docker/daemon/graphdriver/vfs"
"github.com/docker/docker/pkg/archive"
"github.com/go-check/check"
)
func init() {
check.Suite(&Docke... |
package tensorflow
import (
"bytes"
"fmt"
"testing"
)
func hasOperations(g *Graph, ops ...string) error {
var missing []string
for _, op := range ops {
if g.Operation(op) == nil {
missing = append(missing, op)
}
}
if len(missing) == 0 {
return nil
}
return fmt.Errorf("Graph does not have the opera... |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/// Ecma International makes this code available under the terms and conditions set
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
/// "Use Terms"). Any redistribution of this code must retain the above
/// copyrigh... |
trait A
trait B
val AB: A with B { type a } = new A with B
// False |
namespace Microsoft.iMote2
{
using System;
using RT = Microsoft.Zelig.Runtime;
using TS = Microsoft.Zelig.Runtime.TypeSystem;
public sealed class GarbageCollectionManager : RT.PreciseMarkAndSweepCollector
{
}
}
|
<?php
namespace Symfony\Component\Translation\Loader;
use Symfony\Component\Translation\Exception\InvalidResourceException;
use Symfony\Component\Translation\Exception\NotFoundResourceException;
use Symfony\Component\Config\Resource\FileResource;
/**
* JsonFileLoader loads translations from an json file.
*
* @a... |
from __future__ import absolute_import, division, print_function, unicode_literals
import os
from pants.base.build_environment import get_buildroot
from pants.core_tasks.roots import ListRoots
from pants_test.task_test_base import ConsoleTaskTestBase
class ListRootsTest(ConsoleTaskTestBase):
@classmethod
def ta... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "netbase.h"
#include "util.h"
#include "sync.h"
#ifndef WIN32
#include <... |
package com.google.security.zynamics.binnavi.disassembly.types;
import com.google.common.collect.Iterables;
import com.google.security.zynamics.binnavi.CConfigLoader;
import com.google.security.zynamics.binnavi.Database.CDatabase;
import com.google.security.zynamics.binnavi.Database.CJdbcDriverNames;
import com.googl... |
namespace spellcheck {
namespace android {
static base::android::RegistrationMethod kSpellcheckRegisteredMethods[] = {
{"SpellCheckerSessionBridge", SpellCheckerSessionBridge::RegisterJNI},
};
bool RegisterSpellcheckJni(JNIEnv* env) {
return base::android::RegisterNativeMethods(
env,
kSpellchec... |
module RegAlloc.Linear.X86.FreeRegs
where
import X86.Regs
import RegClass
import Reg
import Panic
import Platform
import Data.Word
import Data.Bits
newtype FreeRegs = FreeRegs Word32
deriving Show
noFreeRegs :: FreeRegs
noFreeRegs = FreeRegs 0
releaseReg :: RealReg -> FreeRegs -> FreeRegs
releaseReg (RealRegSi... |
class FooBar {
{
Runnable r = Container<String>::foo<caret>Bar;
}
}
class Container<T>{}
|
@interface SPDYHeaderBlockDecompressor : NSObject
- (NSUInteger)inflate:(uint8_t *)inputBuffer availIn:(NSUInteger)inputLength outputBuffer:(uint8_t *)outputBuffer availOut:(NSUInteger)outputLength error:(NSError **)pError;
@end
|
/**
* Module dependencies.
*/
var connect = require('connect')
, HTTPServer = require('./http')
, https = require('https');
/**
* Expose `HTTPSServer`.
*/
exports = module.exports = HTTPSServer;
/**
* Server proto.
*/
var app = HTTPSServer.prototype;
/**
* Initialize a new `HTTPSServer` with the
*... |
FROM ubuntu:16.04
ENV DEBIAN_FRONTEND noninteractive
RUN groupadd -g 1000 jenkins_slave
RUN useradd -d /home/jenkins_slave -s /bin/bash \
-m jenkins_slave -u 1000 -g jenkins_slave
RUN echo jenkins_slave:jpass | chpasswd
RUN apt-get update && apt-get install -y \
openssh-server openjdk-8-jre wget iproute2
RUN wget -O /h... |
from django import forms
from .models import Event
class EventAdminForm(forms.ModelForm):
"""
Form class for editing events in the admin interface.
"""
location = forms.CharField(label="Address", required=False, max_length=200,
widget=forms.TextInput(attrs={'class': 'vTextField'}))
de... |
<?xml version="1.0" encoding="UTF-8"?>
<FindBugsFilter>
<Match>
<Bug pattern="CN_IDIOM_NO_SUPER_CALL"/>
</Match>
<Match>
<Bug pattern="DLS_DEAD_LOCAL_STORE"/>
</Match>
<Match>
<Bug pattern="DLS_DEAD_LOCAL_STORE_OF_NULL"/>
</Match>
<Match>
<Bug pattern="EI_EXPOSE_REP"/>
</Match>
<Match>... |
// Copyright 2018 The Bazel Authors. All rights reserved.
//
// 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 appl... |
namespace Microsoft.Internal.Web.Utils
{
using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
... |
/**
* @enum {string}
*/
const EmbedType = {
POST: 'post',
POLL: 'poll',
};
import {Layout} from '../../../src/layout';
import {Services} from '../../../src/services';
import {addParamsToUrl, appendEncodedParamStringToUrl} from '../../../src/url';
import {dict} from '../../../src/utils/object';
import {getData... |
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... |
using namespace System;
using namespace NETGeographicLib;
int main(array<System::String ^> ^/*args*/)
{
try {
NormalGravity^ grav = gcnew NormalGravity(NormalGravity::StandardModels::WGS84);
double lat = 27.99, h = 8820; // Mt Everest
double gammay, gammaz;
grav->Gravity(lat, h, gam... |
package oshi.hardware.platform.unix.openbsd;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import oshi.annotation.concurrent.ThreadSafe;
import oshi.hardware.PowerSource;
import oshi.hardware.common.AbstractPowerSource;
import oshi.util... |
using System;
using System.Collections.Generic;
using System.Linq;
using Orchard.Localization;
namespace Orchard.Tokens.Implementation {
public class TokenManager : ITokenManager {
private readonly IEnumerable<ITokenProvider> _providers;
public TokenManager(IEnumerable<ITokenProvider> providers) ... |
/**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Pro... |
// Copyright 2013 The Closure Library Authors. All Rights Reserved.
//
// 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 requ... |
/*global L: true */
L.KML = L.FeatureGroup.extend({
options: {
async: true
},
initialize: function(kml, options) {
L.Util.setOptions(this, options);
this._kml = kml;
this._layers = {};
if (kml) {
this.addKML(kml, options, this.options.async);
}
},
loadXML: function(url, cb, options, async) {
i... |
<?xml version='1.0' encoding='utf-8'?>
<resources>
<string name='name2_1'>Value21</string>
<string name='name2_2'>Value22</string>
<string name='name1_3'>Value23</string>
</resources>
|
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 The Android Open Source Project
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/license... |
<?php
/**
* An interface to define how a test suite should be loaded.
*
* @since Interface available since Release 2.0.0
*/
interface PHPUnit_Runner_TestSuiteLoader
{
/**
* @param string $suiteClassName
* @param string $suiteClassFile
*
* @return ReflectionClass
*/
public fun... |
import $ from 'jquery';
import { clearStyles } from '../util';
export default function () {
let jews = {};
jews.title = $('#articletitle .title h3').text();
jews.subtitle = undefined;
jews.content = (function () {
var content = $('#article_content')[0].cloneNode(true);
$('#spnAddLinkArt... |
/* global expect, __dirname, it, xit */
const path = require('path');
const helpers = path.resolve('./tests/helpers');
const should = require(path.resolve(helpers,'should.js'));
const prepare = require(path.resolve(helpers,'prepare.js'));
const paths = require(path.resolve(helpers,'paths.js'));
const testingModule = ... |
module Shell
module Commands
class MergeRegion < Command
def help
return <<-EOF
Merge two regions. Passing 'true' as the optional third parameter will force
a merge ('force' merges regardless else merge will fail unless passed
adjacent regions. 'force' is for expert use only).
NOTE: You must pass t... |
package org.pentaho.big.data.kettle.plugins.job;
import org.apache.commons.vfs2.FileObject;
import org.apache.commons.vfs2.FileSystemException;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.MessageBox;
import org.e... |
const char* const states[] = {"SETUP", "DATA IN", "DATA IN ZLP", "DATA OUT", "STATUS IN", "STATUS OUT"};
void dbg_invalid_state(USB_SETUP_STATE expected, USB_SETUP_STATE got)
{
printf("Invalid SETUP state: expected %s, got %s\n\r", states[expected], states[got]);
}
#endif
void usbd_on_setup(void* param)
{
USBD* usb... |
var detect = require('feature-detect-es6')
if (detect.all('class', 'arrowFunction')) {
module.exports = require('./src/lib/command-line-args')
} else {
module.exports = require('./es5/lib/command-line-args')
}
/* for node 0.12 */
if (!Array.prototype.find) {
Object.defineProperty(Array.prototype, 'find', {
... |
package ru.stq.pft.addressbook.tests;
import org.hamcrest.CoreMatchers;
import org.hamcrest.MatcherAssert;
import org.testng.Assert;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import ru.stq.pft.addressbook.model.GroupData;
import ru.stq.pft.addressbook.model.Groups;
import java.ut... |
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Diagnostics.Contracts;
using System;
// Disable the "this variable is not used" warning as every field would imply it.
#pragma warning disable 0414
// Disable the "this variable is never assigned to".
#pragma warning disable 0067
// Dis... |
#
#
# /* See http://www.boost.org for most recent version. */
#
# ifndef BOOST_PREPROCESSOR_ARRAY_DATA_HPP
# define BOOST_PREPROCESSOR_ARRAY_DATA_HPP
#
# include <boost/preprocessor/config/config.hpp>
# include <boost/preprocessor/tuple/elem.hpp>
#
# /* BOOST_PP_ARRAY_DATA */
#
# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP... |
package org.apache.ignite.internal.client.router;
import java.util.Collection;
import org.apache.ignite.mxbean.MXBeanDescription;
/**
* MBean interface for TCP router.
*/
@MXBeanDescription("MBean for TCP router.")
public interface GridTcpRouterMBean {
/**
* Gets host for TCP binary protocol server.
... |
@interface THCircularProgressView ()
@property CGPoint centerPoint;
@property CGFloat radius;
@end
@implementation THCircularProgressView
- (id)initWithCenter:(CGPoint)center
radius:(CGFloat)radius
lineWidth:(CGFloat)lineWidth
progressMode:(THProgressMode)progressMode
progres... |
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('zerver', '0037_disallow_null_string_id'),
]
operations = [
migrations.AlterField(
model_name='realm',
name='invite_required'... |
import {ControllerPromise} from '../../build-system/tasks/e2e/controller-promise';
describe('e2e expect', () => {
describe('ControllerPromise', () => {
it('should accept controller promises', async () => {
const p = new ControllerPromise(Promise.resolve(5));
await expect(p).to.equal(5);
});
... |
namespace Microsoft.Azure.Management.OperationalInsights
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.T... |
curr_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $curr_dir
PYTHONPATH=$PYTHONPATH:.. python ./comparison-plot-from-protobuff.py $@
|
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>File: util.rb</title>
<meta http-equiv="Content-Type" co... |
package org.jbehave.core.embedder;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import java.util.ArrayList;
import java.util.List;
import org.jbehave.core.model.ExamplesTable;
import org.jbehave.core.model.Lifecycle;
import org.jbehave.core.model.Story;
import org.juni... |
package io.dropwizard.cli;
import io.dropwizard.Application;
import io.dropwizard.Configuration;
import io.dropwizard.server.ServerFactory;
import io.dropwizard.setup.Bootstrap;
import io.dropwizard.setup.Environment;
import net.sourceforge.argparse4j.inf.Namespace;
import org.eclipse.jetty.server.Server;
import org.e... |
<?php if (!defined('IDIR')) { die; }
/**
* yabbse_005 Import Forum module
*
* @package ImpEx.yabbse
*
*/
class yabbse_005 extends yabbse_000
{
var $_version = '0.0.1';
var $_dependent = '004';
var $_modulestring = 'Import Forum';
function yabbse_005()
{
// Constructor
}
function init(&$sessionobject... |
// Go support for Protocol Buffers - Google's data interchange format
//
// Copyright 2010 The Go Authors. All rights reserved.
// https://github.com/golang/protobuf
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met... |
@interface FindBarView : BackgroundGradientView {
}
// Specifies that mouse events over this view should be ignored by the
// render host.
- (BOOL)nonWebContentView;
@end
#endif // CHROME_BROWSER_UI_COCOA_FIND_BAR_FIND_BAR_VIEW_H_
|
YUI.add('pjax-base', function(Y) {
/**
`Y.Router` extension that provides the core plumbing for enhanced navigation
implemented using the pjax technique (HTML5 `pushState` + Ajax).
@submodule pjax-base
@since 3.5.0
**/
var win = Y.config.win,
location = win.location,
Lang = Y.Lang,
// The CSS clas... |
using std::string;
namespace net {
namespace tools {
QuicClientSession::QuicClientSession(
const string& server_hostname,
const QuicConfig& config,
QuicConnection* connection,
QuicCryptoClientConfig* crypto_config)
: QuicSession(connection, config, false),
crypto_stream_(server_hostname, thi... |
package org.jetbrains.plugins.groovy.mvc.projectView;
import com.intellij.ide.projectView.PresentationData;
import com.intellij.ide.projectView.ViewSettings;
import com.intellij.ide.projectView.impl.nodes.PsiFileNode;
import com.intellij.ide.util.treeView.AbstractTreeNode;
import com.intellij.openapi.module.Module;
i... |
#ifndef TEST_VIDEO_SOURCE_H_
#define TEST_VIDEO_SOURCE_H_
#if defined(_WIN32)
#include <windows.h>
#endif
#include <cstdio>
#include <cstdlib>
#include <string>
#include "test/acm_random.h"
#include "vpx/vpx_encoder.h"
namespace libvpx_test {
// Helper macros to ensure LIBVPX_TEST_DATA_PATH is a quoted string.
// T... |
package objectmeta
import (
"math/rand"
"reflect"
"testing"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/apitesting/fuzzer"
"k8s.io/apimachinery/pkg/api/equality"
metafuzzer "k8s.io/apimachinery/pkg/apis/meta/fuzzer"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/me... |
package com.intellij.execution.configurations;
import com.intellij.openapi.util.InvalidDataException;
import com.intellij.openapi.util.JDOMExternalizable;
import com.intellij.openapi.util.io.FileUtil;
import com.intellij.util.SmartList;
import com.intellij.util.containers.SmartHashSet;
import org.jdom.Element;
impor... |
package io.pivotal.demo;
import java.util.List;
import java.util.Properties;
import java.util.logging.Logger;
import com.gemstone.gemfire.cache.Declarable;
import com.gemstone.gemfire.cache.EntryEvent;
import com.gemstone.gemfire.cache.util.CacheListenerAdapter;
import com.gemstone.gemfire.pdx.internal.PdxInstanceImpl... |
YUI.add('recordset-filter', function (Y, NAME) {
/**
* Plugin that provides the ability to filter through a recordset.
* Uses the filter methods available on Y.Array (see arrayextras submodule) to filter the recordset.
* @module recordset
* @submodule recordset-filter
*/
var YArray = Y.Array,
Lang = Y.Lang;
... |
<?php
require_once 'latte.php';
(new DataLatteRequest()); |
// 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.
using System.Collections.Immutable;
using Microsoft.CodeAnalysis.CSharp.Symbols;
namespace Microsoft.CodeAnalysis.... |
//-------------------------------------------------------------------------------
// <copyright file="ExceptionThrowingActionTransitionTest.cs" company="Appccelerate">
// Copyright (c) 2008-2019 Appccelerate
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file e... |
using Microsoft.DataTransfer.Basics;
using Microsoft.DataTransfer.WpfHost.Helpers;
using Microsoft.DataTransfer.WpfHost.ServiceModel;
using Microsoft.DataTransfer.WpfHost.ServiceModel.Configuration;
using System;
using System.Collections.Generic;
using System.Text;
namespace Microsoft.DataTransfer.WpfHost.Model
{
... |
from lxml import etree
import webob
import webob.dec
import webob.exc
from nova.api import openstack as openstack_api
from nova.api.openstack import wsgi
import nova.context
from nova import exception
from nova.openstack.common import jsonutils
from nova import test
from nova.tests.api.openstack import fakes
class A... |
var port;
// Exercise the 'onmessage' handler:
self.onmessage = function(e) {
var message = e.data;
if ('port' in message) {
port = message.port;
}
};
// And an event listener:
self.addEventListener('message', function(e) {
var message = e.data;
if ('value' in message) {
port.postMessage('Acki... |
package org.apache.flink.api.common.typeutils.base;
import org.apache.flink.api.common.typeutils.TypeSerializer;
import org.apache.flink.api.common.typeutils.TypeSerializerSnapshotMigrationTestBase;
import org.apache.flink.testutils.migration.MigrationVersion;
import org.hamcrest.Description;
import org.hamcrest.Ma... |
angular.module('GooglePickerExample', ['lk-google-picker'])
.config(['lkGoogleSettingsProvider', function (lkGoogleSettingsProvider) {
// Configure the API credentials here
lkGoogleSettingsProvider.configure({
apiKey : 'AIzaSyAEu079vZFFeuFjpfWOrcmw2uGxISgmWwI',
clientId : '20787361493-372fi66o31k7t4t2ha... |
#ifndef CEREAL_TEST_UNORDERED_MULTISET_H_
#define CEREAL_TEST_UNORDERED_MULTISET_H_
#include "common.hpp"
template <class IArchive, class OArchive> inline
void test_unordered_multiset()
{
std::random_device rd;
std::mt19937 gen(rd());
for(int ii=0; ii<100; ++ii)
{
std::unordered_multiset<int> o_podunorde... |
void testing_boost_containers_basic_string();
void testing_boost_containers_string_std_string();
void testing_boost_containers_string_widening();
using namespace boost;
boost::unit_test::test_suite *init_unit_test_suite(int, char *[])
{
unit_test::test_suite *suite =
BOOST_TEST_SUITE("Testing boost::lexi... |
using System;
using System.Collections.Generic;
using System.Text;
using umbraco.interfaces;
namespace umbraco.editorControls.relatedlinks
{
/// <summary>
/// Allows for the extraction of the link ID for the selected node of the
/// PagePicker (aka content picker) class for integration of the Pag... |
<?php
namespace Zotlabs\Module;
require_once('include/acl_selectors.php');
require_once('include/message.php');
require_once('include/zot.php');
require_once("include/bbcode.php");
class Mail extends \Zotlabs\Web\Controller {
function post() {
if(! local_channel())
return;
$replyto = ((x($_REQUEST,'... |
<?php
namespace AppBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
class CategoryController extends Cont... |
package org.jboss.as.quickstarts.kitchensinkjsp.controller;
import java.util.logging.Logger;
import javax.annotation.PostConstruct;
import javax.ejb.Stateful;
import javax.enterprise.event.Event;
import javax.enterprise.inject.Model;
import javax.enterprise.inject.Produces;
import javax.inject.Inject;
import javax.i... |
package org.apache.hadoop.hdfs.server.namenode.metrics;
import static org.apache.hadoop.test.MetricsAsserts.assertCounter;
import static org.apache.hadoop.test.MetricsAsserts.getMetrics;
import java.io.IOException;
import java.util.Random;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Pat... |
package com.hankcs.hanlp.corpus.dictionary;
import com.hankcs.hanlp.corpus.document.CorpusLoader;
import com.hankcs.hanlp.corpus.document.Document;
import com.hankcs.hanlp.corpus.document.sentence.word.CompoundWord;
import com.hankcs.hanlp.corpus.document.sentence.word.IWord;
import com.hankcs.hanlp.corpus.document.s... |
/**
* @author mrdoob / http://mrdoob.com/
* @author alteredq / http://alteredqualia.com/
*/
THREE.Material = function () {
Object.defineProperty( this, 'id', { value: THREE.MaterialIdCount ++ } );
this.uuid = THREE.Math.generateUUID();
this.name = '';
this.type = 'Material';
this.side = THREE.FrontSide;
... |
package service
import (
"k8s.io/component-base/metrics"
"k8s.io/component-base/metrics/legacyregistry"
"sync"
)
const (
// subSystemName is the name of this subsystem name used for prometheus metrics.
subSystemName = "service_controller"
)
var register sync.Once
// registerMetrics registers service-controll... |
"""Contains the ObjectPool utility class."""
__all__ = ['Diff', 'ObjectPool']
from direct.directnotify.DirectNotifyGlobal import directNotify
from direct.showbase.PythonUtil import invertDictLossless, makeList, safeRepr
from direct.showbase.PythonUtil import getNumberedTypedString, getNumberedTypedSortedString
import... |
Rails.application.config.session_store :cookie_store, key: '_recetame_app_session'
|
/**
* React v0.12.0
*/
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.React=e()}}(function(){var d... |
/*
* Copyright (C) 2015 Cloudius Systems, Ltd.
*/
#pragma once
#include "net/packet.hh"
template<typename CharType>
inline
future<> output_stream<CharType>::write(const char_type* buf) {
return write(buf, strlen(buf));
}
template<typename CharType>
template<typename StringChar, typename SizeType, SizeType ... |
import * as storyEvents from '../../../amp-story/1.0/events';
import {
Action,
StateProperty,
UIType,
getStoreService,
} from '../../../amp-story/1.0/amp-story-store-service';
import {AmpStory} from '../../../amp-story/1.0/amp-story';
import {AmpStoryAutoAds, Attributes} from '../amp-story-auto-ads';
import {... |