text stringlengths 3 1.05M |
|---|
/**
Scalding with Avro (and Json) tutorial part 0.
To run this job:
scripts/scald.rb --local --avro --json tutorial/AvroTutorial0.scala
Check the output:
java -jar avro-tools-1.7.6.jar tojson tutorial/data/avrooutput0.avro
**/
import com.twitter.scalding.{Job, Args, JsonLine}
import com.twitter.scalding.avro.Un... |
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... |
require File.expand_path('../../../spec_helper', __FILE__)
ruby_version_is "2.3" do
describe "NameError#receiver" do
it "returns the object that raised the exception" do
receiver = Object.new
-> { receiver.instance_eval { doesnt_exist } }.should(
raise_error(NameError) do |error|
er... |
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<title th:include="window-title :: resource" />
<th:block th:include="tmpl-head :: head" />
<script th:include="tmpl-buttonclick-handler :: handler" />
</head>
<body>
<form action="#" method="get" id="outerForm">
<input type="hidd... |
<?php
/** Zend_Oauth_Token */
// require_once 'Zend/Oauth/Token.php';
/**
* @category Zend
* @package Zend_Oauth
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Oauth_Token_Reque... |
package org.apache.hadoop.hbase.regionserver;
/**
* Enum to distinguish general scan types.
*/
public enum ScanType {
MAJOR_COMPACT,
MINOR_COMPACT,
USER_SCAN
}
|
<!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>JsDoc Reference - File Index<... |
+function ($) {
'use strict';
// AFFIX CLASS DEFINITION
// ======================
var Affix = function (element, options) {
this.options = $.extend({}, Affix.DEFAULTS, options)
this.$target = $(this.options.target)
.on('scroll.bs.affix.data-api', $.proxy(this.checkPosition, this))
.on(... |
tinyMCEPopup.requireLangPack();
var ed;
function init() {
ed = tinyMCEPopup.editor;
tinyMCEPopup.resizeToInnerSize();
document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table');
document.getElementById('bordercolor_pi... |
#include "ppapi/tests/all_c_includes.h"
#if !defined(__native_client__) && (defined(_M_X64) || defined(__x86_64__) || defined(__aarch64__) || defined(__mips64))
/* This section is for 64-bit compilation on Windows, Mac, and Linux. Native
client follows ILP32 even if -m64 is used, so NaCl code is explicitly treat... |
package org.apache.sling.jcr.repoinit.impl;
import java.security.Principal;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.jcr.PathNotFoundException;
import javax.jcr.RepositoryException;
import javax.jcr.Se... |
package com.pushtorefresh.storio3.sample.many_to_many_sample.entities;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import com.pushtorefresh.storio3.sqlite.annotations.StorIOSQLiteColumn;
import com.pushtorefresh.storio3.sqlite.annotations.StorIOSQLiteType;
import java.util.... |
package org.apache.lucene.store.jdbc.handler;
import java.io.IOException;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Timestamp;
import org.apache.lucene.store.IndexInput;
import org.apache.lucene.store.IndexOutput;
import org.apache.lucene.store.jdbc.JdbcDirectory;
import org.apac... |
require 'formula'
class Xmltoman < Formula
desc "XML to manpage converter"
homepage 'http://sourceforge.net/projects/xmltoman/'
url 'https://downloads.sourceforge.net/project/xmltoman/xmltoman/xmltoman-0.4.tar.gz/xmltoman-0.4.tar.gz'
sha1 '151f75d78d1fa53bca25b94dc00e46a27fabfee8'
def install
# generate... |
<?php
namespace Magento\Rss\Block;
/**
* Class Feeds
* @package Magento\Rss\Block
*/
class Feeds extends \Magento\Framework\View\Element\Template
{
/**
* @var string
*/
protected $_template = 'feeds.phtml';
/**
* @var \Magento\Framework\App\Rss\RssManagerInterface
*/
protected ... |
#ifndef PointLightSource_h
#define PointLightSource_h
#if ENABLE(FILTERS)
#include "LightSource.h"
namespace WebCore {
class PointLightSource : public LightSource {
public:
static PassRefPtr<PointLightSource> create(const FloatPoint3D& position)
{
return adoptRef(new PointLightSource(position));
... |
<?php
/** @see Zend_Serializer_Adapter_AdapterAbstract */
require_once 'Zend/Serializer/Adapter/AdapterAbstract.php';
/**
* @category Zend
* @package Zend_Serializer
* @subpackage Adapter
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.z... |
.image-plugin-container {
position: absolute;
}
.image-plugin-container.track-event-editing .clone-container {
display: inline-block;
}
.image-plugin-link {
position: absolute;
top: 0;
left: 0;
display: block;
text-decoration: none;
width: 100%;
height: 100%;
overflow: hidden;
}
.image-plugin-img ... |
<?php
/** Zend_Controller_Router_Route */
// require_once 'Zend/Controller/Router/Route/Static.php';
/**
* @category Zend
* @package Zend_Controller
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license... |
<?php
require_once 'phing/Task.php';
/**
* Executes all SQL files referenced in the sqldbmap file against their mapped databases.
*
* This task uses an SQL -> Database map in the form of a properties
* file to insert each SQL file listed into its designated database.
*
* @author Hans Lellelid <hans@xmpl.o... |
PKG_NAME = serf
PKG_VERS = 1.2.0
PKG_EXT = tar.bz2
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://serf.googlecode.com/files
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)
DEPENDS = cross/apr cross/apr-util cross/openssl
HOMEPAGE = https://code.google.com/p/serf/
COMMENT = The serf library is a high pe... |
using System.Runtime.InteropServices;
namespace Microsoft.VisualStudio.LanguageServices.Implementation.CodeModel.Interop
{
[ComImport]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("58A26C00-BE6F-4B32-803A-98F5B7806C76")]
internal interface IMethodXML2
{
/// <summary>
... |
//////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2005-2009.
// (C) Copyright Gennaro Prota 2003 - 2004.
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_... |
// DATA_TEMPLATE: dom_data
oTest.fnStart( "oLanguage.sProcessing" );
$(document).ready( function () {
/* Check the default */
var oTable = $('#example').dataTable( {
"bProcessing": true
} );
var oSettings = oTable.fnSettings();
oTest.fnTest(
"Processing language is 'Processing...' by default",
null,
fu... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
Syst. veg. 2:624. 1825
#### Original name
null
### Remarks
null |
title: "service inspect"
description: "The service inspect command description and usage"
keywords: "service, inspect"
---
<!-- This file is maintained within the docker/docker Github
repository at https://github.com/docker/docker/. Make all
pull requests against that repo. If you see this file in
anoth... |
mkdir -p "${WORKSPACE}/${BUILD_NUMBER}/build"
mkdir -p "${WORKSPACE}/${BUILD_NUMBER}/install"
cd "${WORKSPACE}/${BUILD_NUMBER}/build"
tar xf ${ATS_SRC_HOME}/trafficserver-${ATS_BRANCH}.tar.bz2
mv trafficserver-*/* .
|
<!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... |
var Stack = require('./_Stack'),
baseIsEqual = require('./_baseIsEqual');
/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1,
COMPARE_UNORDERED_FLAG = 2;
/**
* The base implementation of `_.isMatch` without support for iteratee shorthands.
*
* @private
* @param {Object} ob... |
namespace boost { namespace fusion
{
struct void_;
namespace result_of
{
template <
typename T0 = void_ , typename T1 = void_ , typename T2 = void_ , typename T3 = void_ , typename T4 = void_ , typename T5 = void_ , typename T6 = void_ , typename T7 = void_ , typename T8 = void_ , typen... |
@implementation PRAppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.
return YES;
}
- (void)applicationWillResignActive:(UIApplication *)application
{
// Sent when th... |
package utils
// ExperimentalBuild is a stub which always returns true for
// builds that include the "experimental" build tag
func ExperimentalBuild() bool {
return true
}
|
package io.druid.query;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.base.Throwables;
import io.druid.java.util.common.ISE;
import io.druid.segment.TestHelper;
import org.junit.Assert;
import org.junit.Test;
import java.util.concurrent.CancellationException;
import java.util.concurre... |
/**
* Complete dimensions by data (guess dimension).
*/
var zrUtil = require('zrender/lib/core/util');
var modelUtil = require('../../util/model');
var each = zrUtil.each;
var isString = zrUtil.isString;
var defaults = zrUtil.defaults;
var normalizeToArray = modelUtil.normalizeToArray;
... |
/*
* 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 or agreed to in writing, software
* distribut... |
define(["Lightstreamer/LightstreamerClient", "Lightstreamer/StatusWidget"],function(LightstreamerClient,StatusWidget) {
var protocolToUse = document.location.protocol != "file:" ? document.location.protocol : "http:";
var portToUse = document.location.protocol == "https:" ? "443" : "8080";
// initiate the Lights... |
FROM balenalib/parallella-hdmi-resin-ubuntu:focal-build
ENV GO_VERSION 1.15.6
RUN mkdir -p /usr/local/go \
&& curl -SLO "http://resin-packages.s3.amazonaws.com/golang/v$GO_VERSION/go$GO_VERSION.linux-armv7hf.tar.gz" \
&& echo "7f60787d9d94ed040e2d58f7715a4dc1cdb9f9160504aec810712a7e20446bb7 go$GO_VERSION.linux-arm... |
require 'aasm_controls'
|
namespace views {
class LabelButtonBorder;
}
class ToolbarView;
// TODO(gbillock): Rename this? No longer a wrench.
class WrenchToolbarButton : public views::MenuButton,
public WrenchIconPainter::Delegate {
public:
explicit WrenchToolbarButton(ToolbarView* toolbar_view);
~WrenchToolba... |
namespace System.Reflection.PortableExecutable
{
public sealed class CorHeader
{
public ushort MajorRuntimeVersion { get; }
public ushort MinorRuntimeVersion { get; }
public DirectoryEntry MetadataDirectory { get; }
public CorFlags Flags { get; }
public int EntryPointToke... |
Example commands from the Docker chapter
|
package org.elasticsearch.index.analysis;
import org.elasticsearch.Version;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.indices.analysis.PreBuiltTokenFilters;
public class PreBuiltTokenFilterFactoryFactory implements TokenFilterFactoryFactory {
private final TokenFilterFactory t... |
/* Includes ------------------------------------------------------------------*/
#include "stm32f7xx_hal.h"
/** @addtogroup STM32F7xx_HAL_Driver
* @{
*/
/** @defgroup TIMEx TIMEx
* @brief TIM Extended HAL module driver
* @{
*/
#ifdef HAL_TIM_MODULE_ENABLED
/* Private typedef ----------------------------... |
package org.apache.camel.component.cxf.converter;
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.apache.camel.StreamCache;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.cxf.CxfSimpleRouterTest;
/**
* A unit test for testing reading SOAP body in PAYL... |
require 'buff/shell_out'
module Omnitest
module Shell
class BuffShellOutExecutor
include Omnitest::Core::Logger
attr_reader :shell
def execute(command, opts) # rubocop:disable Metrics/AbcSize
@logger = opts.delete(:logger) || logger
cwd = opts[:cwd] || Dir.pwd
env = opt... |
<?php
namespace Symfony\Component\Security\Http\Firewall;
use Psr\Log\LoggerInterface;
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
use Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
u... |
var config = require(__dirname+'/../config.js');
var thinky = require(__dirname+'/../lib/thinky.js')(config);
var r = thinky.r;
var util = require(__dirname+'/util.js');
var assert = require('assert');
var Promise = require('bluebird');
var Errors = thinky.Errors;
var modelNameSet = {};
modelNameSet[util.s8()] = tr... |
<?php
namespace Stripe;
class Event extends ApiResource
{
/**
* @param string $id The ID of the event to retrieve.
* @param array|string|null $opts
*
* @return Event
*/
public static function retrieve($id, $opts = null)
{
return self::_retrieve($id, $opts);
}
/**
... |
require File.dirname(__FILE__) + '/../../spec_helper'
require 'timeout'
describe "Timeout.timeout" do
it "raises Timeout::Error when it times out with no specified error type" do
lambda {
Timeout::timeout(1) do
sleep 3
end
}.should raise_error(Timeout::Error)
end
it "raises specified... |
#if defined(__GNUC__)
#warning "Inclusion of header files from include/Qt is deprecated."
#elif defined(_MSC_VER)
#pragma message("WARNING: Inclusion of header files from include/Qt is deprecated.")
#endif
#endif
#include "../QtGui/qfontmetrics.h"
|
package org.lwjgl.egl;
/**
* Native bindings to the <a target="_blank" href="https://www.khronos.org/registry/EGL/extensions/ANDROID/EGL_ANDROID_recordable.txt">ANDROID_recordable</a> extension.
*
* <p>Android supports a number of different ANativeWindow implementations that can be used to create an EGLSurface. O... |
namespace Poco {
namespace Net {
class HostEntry;
class NetSSL_API SecureSocketImpl
/// The SocketImpl for SecureStreamSocket.
{
public:
SecureSocketImpl(Poco::AutoPtr<SocketImpl> pSocketImpl, Context::Ptr pContext);
/// Creates the SecureSocketImpl using an already
/// connected stream socket.
virtual ~Sec... |
/**
* Matches when the observable sequence has an available value and projects the value.
*
* @param selector Selector that will be invoked for values in the source sequence.
* @returns {Plan} Plan that produces the projected values, to be fed (with other plans) to the when operator.
*/
observable... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_22) on Sun Jan 29 08:53:24 PST 2012 -->
<TITLE>
org.apache.ddlutils (DdlUtils 1.0 API Documentation)
</TITLE>
<META NAME="keywords" CONTENT="org.apa... |
namespace NetHandlers
{
bool SVC_TempEntities_BitRead_Internal(BitRead& bitbuf, SourceGameContext& context, NetMsg::SVC_TempEntities* data)
{
data->numEntries = bitbuf.ReadUBitLong(EVENT_INDEX_BITS);
if (context.protocol > 23)
{
data->dataLengthInBits = bitbuf.ReadVarInt32();... |
/*!
* \file parameter_tools.hpp
* \author Andrey Semashev
* \date 28.06.2009
*
* \brief This header is the Boost.Log library implementation, see the library documentation
* at http://www.boost.org/doc/libs/release/libs/log/doc/html/index.html.
*/
#ifndef BOOST_LOG_DETAIL_PARAMETER_TOOLS_HPP_INCLUD... |
package test.microsoft.com.wifipairing;
import android.app.ProgressDialog;
import android.bluetooth.BluetoothDevice;
import android.content.DialogInterface;
import android.net.wifi.p2p.WifiP2pDevice;
import android.net.wifi.p2p.WifiP2pGroup;
import android.net.wifi.p2p.WifiP2pInfo;
import android.support.v7.app.Action... |
package libmachine
type Store interface {
// Exists returns whether a machine exists or not
Exists(name string) (bool, error)
// GetActive returns the active host
GetActive() (*Host, error)
// GetPath returns the path to the store
GetPath() string
// GetCACertPath returns the CA certificate
GetCACertificatePat... |
module NavigationHelpers
module Refinery
module Podcasts
def path_to(page_name)
case page_name
when /the list of podcasts/
'/refinery/podcasts'
when /the new podcast form/
'/refinery/podcasts/new'
else
nil
end
end
end
end
en... |
import React from 'react';
import ReactDOM from 'react-dom';
import { browserHistory } from 'react-router';
import { Loading } from '/imports/ui/components/loading.js';
import { UpdateResident } from '/imports/api/residents/methods.js';
export const EditReturnAmount = React.createClass({
propTypes: {
loading:... |
.. _vSphere API 4.0: ../../vim/version.rst#vimversionversion5
.. _vim.event.ClusterOvercommittedEvent: ../../vim/event/ClusterOvercommittedEvent.rst
vim.event.HostOvercommittedEvent
================================
This event records when a host's capacity cannot satisfy resource configuration constraints.
:extend... |
YUI.add('router', function (Y, NAME) {
/**
Provides URL-based routing using HTML5 `pushState()` or the location hash.
@module app
@submodule router
@since 3.4.0
**/
var HistoryHash = Y.HistoryHash,
QS = Y.QueryString,
YArray = Y.Array,
YLang = Y.Lang,
YObject = Y.Object,
... |
/**
* (created at 2011-1-23)
*/
package com.alibaba.cobar.parser.ast.expression.primary.function.datetime;
import java.util.List;
import com.alibaba.cobar.parser.ast.expression.Expression;
import com.alibaba.cobar.parser.ast.expression.primary.function.FunctionExpression;
/**
* @author <a href="mailto:shuo.qius@... |
package tachyon.web;
import java.util.ArrayList;
import java.util.List;
import com.google.common.base.Function;
import com.google.common.collect.Ordering;
import tachyon.TachyonURI;
import tachyon.thrift.ClientFileInfo;
import tachyon.thrift.NetAddress;
import tachyon.util.CommonUtils;
public final class UiFileIn... |
layout: global
title: Multilayer perceptron classifier
displayTitle: Multilayer perceptron classifier
---
> This section has been moved into the
[classification and regression section](ml-classification-regression.html#multilayer-perceptron-classifier).
|
using System;
using System.Reflection;
using System.Collections.Generic;
using log4net;
using Mono.Addins;
using Nini.Config;
using OpenSim.Framework;
using OpenSim.Framework.Servers;
using OpenSim.Region.Framework.Scenes;
using OpenSim.Region.Framework.Interfaces;
using OpenSim.Server.Base;
using OpenSim.Server.Hand... |
package org.pentaho.big.data.kettle.plugins.hdfs;
import org.pentaho.big.data.api.cluster.NamedClusterService;
import org.pentaho.big.data.kettle.plugins.hdfs.vfs.HadoopVfsFileChooserDialog;
import org.pentaho.big.data.kettle.plugins.hdfs.vfs.MapRFSFileChooserDialog;
import org.pentaho.big.data.kettle.plugins.hdfs.v... |
class FarmExporter < ActiveRecord::Base
def self.get_csv(farm, report_year, tabs = false)
# headers: last name, first name, email, cell, location, stock_item, notes, balance, bag total, new balance, how paid, last_name
# headers: last name, first name, amount deposited, amount spent, stock_item[n]
... |
<?php
namespace Doctrine\Tests\Common\Persistence;
use Doctrine\Common\Persistence\PersistentObject;
use Doctrine\Common\Persistence\Mapping\ClassMetadata;
use Doctrine\Common\Persistence\Mapping\ReflectionService;
/**
* @group DDC-1448
*/
class PersistentObjectTest extends \Doctrine\Tests\DoctrineTestCase
{
p... |
"""
Byte string <---> unicode conversions take place
here, pretty much anything encoding related
"""
import types
import datetime
from decimal import Decimal
class DjangoUnicodeDecodeError(UnicodeDecodeError):
def __init__(self, obj, *args):
self.obj = obj
UnicodeDecodeError.__init__(self, *args)
... |
"""Tests the text output of Google C++ Testing Framework.
SYNOPSIS
gtest_output_test.py --build_dir=BUILD/DIR --gengolden
# where BUILD/DIR contains the built gtest_output_test_ file.
gtest_output_test.py --gengolden
gtest_output_test.py
"""
__author__ = 'wan@google.com (Zhanyong Wan)'
... |
/**
* @module ol/reproj/Tile
*/
import {ERROR_THRESHOLD} from './common.js';
import EventType from '../events/EventType.js';
import Tile from '../Tile.js';
import TileState from '../TileState.js';
import Triangulation from './Triangulation.js';
import {
calculateSourceExtentResolution,
render as renderReprojecte... |
(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... |
/**
* \file pixelstore.h
* glPixelStore functions.
*/
#ifndef PIXELSTORE_H
#define PIXELSTORE_H
#include "glheader.h"
#include "mtypes.h"
extern void GLAPIENTRY
_mesa_PixelStorei( GLenum pname, GLint param );
extern void GLAPIENTRY
_mesa_PixelStoref( GLenum pname, GLfloat param );
extern void
_mesa_init_... |
this.sinon = (function () {
var buster = (function (setTimeout, B) {
var isNode = typeof require == "function" && typeof module == "object";
var div = typeof document != "undefined" && document.createElement("div");
var F = function () {};
var buster = {
bind: function bind(obj, methOrProp) {... |
package unversioned_test
import (
. "k8s.io/kubernetes/pkg/client/unversioned"
"k8s.io/kubernetes/pkg/client/unversioned/testclient/simple"
)
import (
"net/url"
"testing"
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api/testapi"
"k8s.io/kubernetes/pkg/api/unversioned"
"k8s.io/kubernetes/pkg/apis/exte... |
require 'cgi'
require 'erb'
require 'action_view/helpers/form_helper'
require 'active_support/core_ext/string/output_safety'
require 'active_support/core_ext/array/extract_options'
require 'active_support/core_ext/array/wrap'
module ActionView
# = Action View Form Option Helpers
module Helpers
# Provides a num... |
// .NAME vtkDynamicLoader - class interface to system dynamic libraries
// .SECTION Description
// vtkDynamicLoader provides a portable interface to loading dynamic
// libraries into a process.
// .SECTION See Also
// A more portable and lightweight solution is kwsys::DynamicLoader
#ifndef vtkDynamicLoader_h
#define ... |
<?php
/*
Safe sample
input : get the field UserData from the variable $_POST
SANITIZE : use in_array to check if $tainted is in the white list
construction : concatenation with simple quote
*/
/*Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royalty fee, to
use, copy,... |
ACCEPTED
#### According to
Index Fungorum
#### Published in
null
#### Original name
Depazea caprifolii Opiz
### Remarks
null |
import numpy as np
from sklearn.metrics.cluster import adjusted_rand_score
from sklearn.metrics.cluster import homogeneity_score
from sklearn.metrics.cluster import completeness_score
from sklearn.metrics.cluster import v_measure_score
from sklearn.metrics.cluster import homogeneity_completeness_v_measure
from sklearn... |
#ifndef __TSMF_CONSTANTS_H
#define __TSMF_CONSTANTS_H
#define GUID_SIZE 16
#define TSMF_BUFFER_PADDING_SIZE 8
/* Interface IDs defined in [MS-RDPEV]. There's no constant names in the MS
documentation, so we create them on our own. */
#define TSMF_INTERFACE_DEFAULT 0x00000000
#define TSMF_INTERFA... |
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="false">
<shape>
<solid android:color="@color/deep_purple_400" />
<stroke android:width="1dp" android:color="@color/deep_purple_400" />
... |
package parser_test
import (
"bytes"
"reflect"
"testing"
"text/template"
"k8s.io/kubernetes/cmd/libs/go2idl/namer"
"k8s.io/kubernetes/cmd/libs/go2idl/parser"
"k8s.io/kubernetes/cmd/libs/go2idl/types"
)
func construct(t *testing.T, files map[string]string, testNamer namer.Namer) (*parser.Builder, types.Unive... |
// Copyright 2006 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... |
<?xml version="1.0" encoding="UTF-8"?>
<pfif:pfif xmlns:pfif="http://zesty.ca/pfif/1.4">
<pfif:person>
<pfif:author_email>_test_author_email</pfif:author_email>
<pfif:author_name>_test_author_name</pfif:author_name>
<pfif:author_phone>_test_author_phone</pfif:author_phone>
<pfif:full_name>_test_full_n... |
<?php
namespace GW2Treasures\GW2Api\V2\Endpoint\Item;
use GW2Treasures\GW2Api\V2\Bulk\BulkEndpoint;
use GW2Treasures\GW2Api\V2\Bulk\IBulkEndpoint;
use GW2Treasures\GW2Api\V2\Endpoint;
use GW2Treasures\GW2Api\V2\Localization\ILocalizedEndpoint;
use GW2Treasures\GW2Api\V2\Localization\LocalizedEndpoint;
class ItemEndp... |
namespace remoting {
namespace {
const size_t kRequestSizeBytes = 4;
const size_t kMaxRequestLength = 16384;
const size_t kRequestReadBufferLength = kRequestSizeBytes + kMaxRequestLength;
// SSH Failure Code
const char kSshError[] = {0x05};
} // namespace
GnubbySocket::GnubbySocket(scoped_ptr<net::StreamSocket> s... |
class TranslateErrors {
public:
enum Type {
NONE = 0,
NETWORK, // No connectivity.
INITIALIZATION_ERROR, // The translation script failed to initialize.
UNKNOWN_LANGUAGE, // The page's language could not be detected.
UNSUPPORTED_LANGUAGE, // The server detected a language tha... |
<!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 (1.8.0_112) on Tue Sep 12 14:31:26 MST 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Interface org.wildf... |
Generative Adversarial Networks (GANs) are a class of algorithms used in unsupervised learning - you don't need labels for your dataset in order to train a GAN.
The GAN framework is composed of two neural networks: a Generator network and a Discriminator network.
The Generator's job is to take a set of random numbers... |
using testing::Return;
using testing::_;
namespace policy {
class ProfilePolicyConnectorTest : public testing::Test {
protected:
ProfilePolicyConnectorTest() {}
virtual ~ProfilePolicyConnectorTest() {}
virtual void SetUp() OVERRIDE {
// This must be set up before the TestingBrowserProcess is created.
... |
package org.wso2.msf4j.samples.spring.sample8;
public class InvalidNameException extends Exception {
public InvalidNameException(String msg) {
super(msg);
}
}
|
package org.jetbrains.java.decompiler.main;
import org.jetbrains.java.decompiler.code.CodeConstants;
import org.jetbrains.java.decompiler.main.rels.ClassWrapper;
import org.jetbrains.java.decompiler.main.rels.MethodWrapper;
import org.jetbrains.java.decompiler.modules.decompiler.exps.Exprent;
import org.jetbrains.jav... |
#include "mitkUSNavigationCombinedModalityPersistence.h"
#include "mitkUSCombinedModality.h"
// Microservices
#include <usServiceReference.h>
#include <usModuleContext.h>
#include <usGetModuleContext.h>
#include <usModuleContext.h>
// Qt
#include <QSettings>
#include <QVector>
#include <QHash>
#include <QStringList... |
<!---
category: AudioVideoAndCamera
samplefwlink: http://go.microsoft.com/fwlink/p/?LinkId=620563&clcid=0x409
--->
# DASH streaming sample
How to create and use the MSEStreamSource API to playback Live DASH content.
Live DASH will be supported at a later date within the Adaptive Streaming classes (see AdaptiveSt... |
subroutine hybrj1(fcn,n,x,fvec,fjac,ldfjac,tol,info,wa,lwa)
integer n,ldfjac,info,lwa
double precision tol
double precision x(n),fvec(n),fjac(ldfjac,n),wa(lwa)
external fcn
c **********
c
c subroutine hybrj1
c
c the purpose of hybrj1 is to find a zero of a system of
c n non... |
"""Supports interface for looking at and reviewing previously cut a globes."""
import os
from common import portable_exceptions
import common.globe_directory
import common.portable_globe
import common.utils
from core import globe_info
WEB_URL_BASE = "/cutter/globes"
BASE_DIR = "../htdocs"
GLOBE_DIR = "%s%s" % (BASE_... |
from django.views.generic import ListView
from django.shortcuts import render, render_to_response, RequestContext
from django.contrib.auth.decorators import login_required
from django.http import HttpResponseRedirect, HttpResponse
from django.contrib import auth
from django.core.context_processors import csrf
from djan... |
<?xml version='1.0' encoding='utf-8'?>
<archive xmlns="http://rs.tdwg.org/dwc/text/">
<core encoding="UTF-8" fieldsTerminatedBy="\t" linesTerminatedBy="\n" fieldsEnclosedBy='' ignoreHeaderLines="1" rowType="http://rs.tdwg.org/dwc/terms/Taxon">
<files>
<location>taxa.txt</location>
</files>
<field index="1" te... |