text stringlengths 3 1.05M |
|---|
<?php
namespace Symfony\Component\Validator\Tests\Constraints;
use Symfony\Component\Validator\Constraints\Choice;
use Symfony\Component\Validator\Constraints\ChoiceValidator;
use Symfony\Component\Validator\Validation;
function choice_callback()
{
return array('foo', 'bar');
}
class ChoiceValidatorTest exten... |
@interface AuthEntity : NSManagedObject
@property (nonatomic, strong) NSString *identifier;
@property (nonatomic, strong) NSString *accessToken;
@end
|
def initialize(name,run_context=nil)
super
@action = :add
end
actions :add, :remove
attribute :path, :kind_of => String, :name_attribute => true
|
package direct
import (
"github.com/golang/glog"
"github.com/hyperhq/runv/factory/base"
"github.com/hyperhq/runv/hypervisor"
)
type directFactory struct {
config hypervisor.BootConfig
}
func New(b hypervisor.BootConfig) base.Factory {
return &directFactory{config: b}
}
func (d *directFactory) Config() *hypervi... |
/*!
* Includes Wreqr
* https://github.com/marionettejs/backbone.wreqr/
* Includes EventBinder
* https://github.com/marionettejs/backbone.eventbinder/
*/
// Backbone.EventBinder, v0.1.0
// Copyright (c)2012 Derick Bailey, Muted Solutions, LLC.
// Distributed under MIT license
// http://github.com/marionettejs/back... |
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICU... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
if ( ! class_exists('Addon_builder_super_search_code_pack'))
{
require_once 'addon_builder.php';
}
class Addon_builder_data_super_search_code_pack
{
/**
* local cache array
* @var array
*/
public $cached = array();
/**
* conve... |
static const char UNUSED *bitcoin_strings[] = {
QT_TRANSLATE_NOOP("bitcoin-core", ""
"%s, you must set a rpcpassword in the configuration file:\n"
" %s\n"
"It is recommended you use the following random password:\n"
"rpcuser=lootcoinrpc\n"
"rpcpassword=%s\n"
"(you do not need to remember this password)\n"
"If the file ... |
<!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.6.0_29) on Fri Mar 09 16:00:54 PST 2012 -->
<TITLE>
V-Index
</TITLE>
<META NAME="date" CONTENT="2012-03-09">
<LINK REL ="stylesheet" TYPE="text/css" HR... |
class RealmsController < ApplicationController
before_action :logged_in_user, only: [:show]
respond_to :html, :js
def index
if ! logged_in?
@realms = []
elsif admin?
@realms = Realm.all
@new_realm = Realm.new
@groups = Group.all
@icons = Icon.all
else
... |
<?php
namespace Drupal\KernelTests\Core\Path;
use Drupal\Core\Database\Database;
use Drupal\KernelTests\KernelTestBase;
use Drupal\system\Tests\Path\UrlAliasFixtures;
/**
* Base class for Path/URL alias integration tests.
*/
abstract class PathUnitTestBase extends KernelTestBase {
/**
* @var \Drupal\system\T... |
module Xcode
module Test
module Formatters
class StdoutFormatter
include Xcode::TerminalOutput
def initialize(options = {})
@errors = []
@test_count = 0
options.each { |k,v| self.send("#{k}=", v) }
end
def before(report)... |
/*jshint globalstrict: false */
/* globals PDFJS */
// Initializing PDFJS global object (if still undefined)
if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {};
}
PDFJS.version = '1.3.60';
PDFJS.build = '5beb9a2';
(function pdfjsWrapper() {
// Use strict in our contex... |
@charset "UTF-8";
body { /* Addresses a small issue in webkit: http://bit.ly/NEdoDq */
-webkit-backface-visibility: hidden;
}
.animated {
-webkit-animation-duration: 0.75s;
-moz-animation-duration: 0.75s;
-o-animation-duration: 0.75s;
animation-duration: 0.75s;
-webkit-animation-fill-mode: both;
... |
<?xml version="1.0" encoding="UTF-8"?>
<model>
<entity name="app-report" root="true">
<attribute name="id" value-type="String" />
<attribute name="start-time" value-type="Date" format="yyyy-MM-dd HH:mm:ss" />
<attribute name="end-time" value-type="Date" format="yyyy-MM-dd HH:mm:ss" />
<entity-re... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache Lice... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache... |
package org.apache.nifi.processors.elasticsearch;
import org.apache.nifi.components.PropertyDescriptor;
import org.apache.nifi.components.ValidationContext;
import org.apache.nifi.components.ValidationResult;
import org.apache.nifi.expression.ExpressionLanguageScope;
import org.apache.nifi.processor.AbstractProcessor... |
"""
Plugin support for rdf.
There are a number of plugin points for rdf: parser, serializer,
store, query processor, and query result. Plugins can be registered
either through setuptools entry_points or by calling
rdf.plugin.register directly.
If you have a package that uses a setuptools based setup.py you can add th... |
/* File : /crypto/engine/vendor_defns/hw_zencod.h */
/* ====================================================================
* Written by Donnat Frederic (frederic.donnat@zencod.com) from ZENCOD
* for "zencod" ENGINE integration in OpenSSL project.
*/
#ifndef _HW_ZENCOD_H_
#define _HW_ZENCOD_H_
#include <stdio.h... |
class Squareroot:
def __init__(self, num):
self.ans = 1
self.num = num
def calcroot(self):
while (self.ans ** 2 != self.num):
self.ans = 0.5 * (self.ans + self.num / self.ans)
return self.ans
def main():
number = float(input("Enter number to find ... |
package org.gearvrf.jassimp;
import java.nio.ByteBuffer;
/**
* Wrapper provider using jassimp built in types.
*/
public final class AiBuiltInWrapperProvider implements
AiWrapperProvider<AiVector, AiMatrix4f, AiColor, AiNode, AiQuaternion> {
@Override
public AiVector wrapVector3f(ByteBuffer buffer,... |
/** Used as references for various `Number` constants. */
var MAX_SAFE_INTEGER = 9007199254740991;
/**
* Checks if `value` is a valid array-like length.
*
* **Note:** This method is loosely based on
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
*
* @static
* @memberOf _
* @since 4.0... |
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>org.guvnor</groupId>
<artifa... |
@implementation ThemeManager {
}
- (void)colorLabel:(UILabel *)label withType:(LabelThemeType)type
{
if(type == LabelThemeMentalLabel)
{
label.textColor = [UIColor redColor];
label.font = [UIFont fontWithName:@"Courier-Bold" size:20];
}
if(type == LabelThemeNormalLabel)
{
l... |
package com.mashape.unirest.request.body;
import com.mashape.unirest.request.BaseRequest;
import com.mashape.unirest.request.HttpRequest;
import org.apache.http.HttpEntity;
import org.apache.http.entity.ByteArrayEntity;
public class RawBody extends BaseRequest implements Body {
private byte[] body;
public RawBo... |
package org.apache.sqoop.mapreduce.db;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map.Entry;
import java.util.Properties;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFacto... |
<?php
/*
V5.10 10 Nov 2009 (c) 2000-2009 John Lim (jlim#natsoft.com). All rights reserved.
Released under both BSD license and Lesser GPL library license.
Whenever there is any discrepancy between the two licenses,
the BSD license will take precedence.
Set tabs to 4.
Synonym for csv driver.
*/
// sec... |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace System.Runtime.CompilerServices
{
/// <summary>
/// This is a marker attribute that can be put on an interface to denote that only internal... |
package HTTP::Message;
# $Id: Message.pm,v 1.57 2005/02/18 20:29:01 gisle Exp $
use strict;
use vars qw($VERSION $AUTOLOAD);
$VERSION = sprintf("%d.%02d", q$Revision: 1.57 $ =~ /(\d+)\.(\d+)/);
require HTTP::Headers;
require Carp;
my $CRLF = "\015\012"; # "\r\n" is not portable
$HTTP::URI_CLASS ||= $ENV{PERL_HTTP... |
"""
Cells RPC Communication Driver
"""
import oslo_messaging as messaging
from nova.cells import driver
import nova.conf
from nova import rpc
CONF = nova.conf.CONF
class CellsRPCDriver(driver.BaseCellsDriver):
"""Driver for cell<->cell communication via RPC. This is used to
setup the RPC consumers as well... |
package io.spine.server.storage.jdbc.query;
/**
* A marker interface for an SQL query.
*/
public interface StorageQuery {
}
|
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'DefaultConfiguration'
db.create_table(u'desktop_defaultconfiguration', (
... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
#include <aws/autoscaling/model/Tag.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Utils::Xml;
using namespace Aws::Utils;
namespace Aws
{
namespace AutoScaling
{
namespace Mode... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Button, Icon, Text, Body, Left, Right, Input, Item } from 'native-base';
import { Actions } from 'react-native-router-flux';
impo... |
<?xml version='1.0' encoding='UTF-8'?>
<resources>
<string name="app_name">Lantern</string>
<string name="action_settings">Paramètres</string>
<string name="send_button">Envoyer</string>
<string name="contact_option">Contact</string>
<string name="share_option">Partager</string>
<string name="quit_option">Q... |
package org.apache.flink.runtime.state.ttl;
import org.apache.flink.runtime.state.StateEntry;
import org.apache.flink.runtime.state.internal.InternalKvState.StateIncrementalVisitor;
import org.apache.flink.util.FlinkRuntimeException;
import javax.annotation.Nonnegative;
import javax.annotation.Nonnull;
import java... |
package com.microsoft.azure.management.datalake.analytics.models;
import org.joda.time.DateTime;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
/**
* Azure Storage blob container information.
*/
@JsonFlatten
public class StorageContainer {
/**
* th... |
<?php
/**
* [PHPFOX_HEADER]
*/
defined('PHPFOX') or exit('NO DICE!');
/**
*
*
* @copyright [PHPFOX_COPYRIGHT]
* @author Raymond_Benc
* @package Phpfox_Component
* @version $Id: index-mobile.class.php 1491 2010-03-03 15:34:04Z Raymond_Benc $
*/
class Friend_Component_Controller_Index_Mobile extends ... |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.openqa.grid</groupId>
<artifactId>selenium_grid_node</arti... |
class CreateOrganizationUsers < ActiveRecord::Migration
def change
create_table :organization_users do |t|
t.references :user, index: true
t.references :organization, index: true
t.boolean :admin
t.timestamps
end
end
end
|
package org.apache.camel.management;
import java.util.List;
import javax.management.Attribute;
import javax.management.MBeanServer;
import javax.management.ObjectName;
import org.apache.camel.Exchange;
import org.apache.camel.api.management.mbean.BacklogTracerEventMessage;
import org.apache.camel.builder.RouteBuild... |
/**
* VideoPositionTargeting.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.v201311;
/**
* Represents positions within and around a video where ads can be
* targeted to.
* <p>
* ... |
var methodName = "method";
var accessorName = "accessor";
class C {
[methodName](v: string);
[methodName]();
[methodName](v?: string) { }
}
//// [computedPropertyNamesOnOverloads_ES6.js]
var methodName = "method";
var accessorName = "accessor";
class C {
[methodName](v) { }
}
|
<html>
<head id="head">
<script src="../../resources/js-test.js"></script>
</head>
<body>
<script>
description("This tests parsing and re-serialization of some CSS selectors.");
function parseThenSerializeRule(rule)
{
var styleElement = document.getElementById("style");
var head = document.getElementById("hea... |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>ip::basic_resolver::async_resolve (3 of 6 overloads)</title>
<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="hom... |
#include <memory.hpp>
#include <dispatch.hpp>
#include <map>
#include <iostream>
#include <iomanip>
#include <string>
#include <types.hpp>
namespace opencl
{
static size_t memory_resolution = 1024; //1KB
void setMemStepSize(size_t step_bytes)
{
memory_resolution = step_bytes;
}
size_t g... |
// Copyright © Microsoft Corporation. All Rights Reserved.
// This code released under the terms of the
// Microsoft Public License (MS-PL, http://opensource.org/licenses/ms-pl.html.)
using System;
using System.Collections.Generic;
using System.ComponentModel.Design;
using System.Xml;
using Microsoft.TeamFoundation... |
package com.lanyotech.pps.mvc;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServlet... |
Ext.define('Ext.theme.neptune.Component', {
override: 'Ext.Component',
initComponent: function() {
this.callParent();
if (this.dock && this.border === undefined) {
this.border = false;
}
},
privates: {
initStyles: function() {
var me = th... |
require 'rails_i18n/common_pluralizations/one_with_zero_other'
::RailsI18n::Pluralization::OneWithZeroOther.with_locale(:or) |
typedef struct iree_hal_local_executable_cache_t {
iree_hal_resource_t resource;
iree_allocator_t host_allocator;
iree_string_view_t identifier;
iree_host_size_t worker_capacity;
iree_host_size_t loader_count;
iree_hal_executable_loader_t* loaders[];
} iree_hal_local_executable_cache_t;
static const iree_h... |
namespace cc {
FakeLayerTreeHost::FakeLayerTreeHost(LayerTreeHostClient* client,
const LayerTreeSettings& settings)
: LayerTreeHost(client, NULL, settings),
host_impl_(settings, &proxy_, &manager_),
needs_commit_(false) {}
scoped_ptr<FakeLayerTreeHost> FakeLayerTree... |
<?php
/**
* @see Zend_Service_Amazon_Ec2_Abstract
*/
require_once 'Zend/Service/Amazon/Ec2/Abstract.php';
/**
* An Amazon EC2 interface to register, describe and deregister Amamzon Machine Instances (AMI)
*
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Ec2
* @copyright Copyright (c) 200... |
namespace Apache.Ignite.Core.Impl.Binary
{
using System;
using System.Collections.Generic;
using System.Threading;
using Apache.Ignite.Core.Impl.Binary.IO;
using Apache.Ignite.Core.Impl.Common;
/// <summary>
/// Shared schema holder.
/// </summary>
internal class BinaryObjectSche... |
package org.xchange.bitz.service.marketdata;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.ExchangeFactory;
import org.knowm.xchange.currency.CurrencyPair;
import org.knowm.xchange.dto.marketdata.OrderBook;
import org.knowm... |
//@author A0111875E
package com.epictodo.controller.nlp;
import edu.stanford.nlp.parser.lexparser.LexicalizedParser;
import edu.stanford.nlp.trees.*;
import java.util.LinkedList;
import java.util.List;
public class GrammaticalParser {
private LexicalizedParser lexicalized_parser;// = LexicalizedParser.loadMode... |
import Ember from 'ember';
export default Ember.Mixin.create({
/**
@private
@property _perPage
@type Integer
@default 25
*/
_perPage: 25,
/**
@private
@property _currentPage
@type Integer
@default 0
*/
_currentPage: 0,
/**
@private
@property _loadingMore
@ty... |
require 'test_helper'
class MainHelperTest < ActionView::TestCase
end
|
namespace extensions {
std::string ErrorUtils::FormatErrorMessage(const std::string& format,
const std::string& s1) {
std::string ret_val = format;
ReplaceFirstSubstringAfterOffset(&ret_val, 0, "*", s1);
return ret_val;
}
std::string ErrorUtils::FormatErrorMessage(cons... |
module Faker
# Author: wiseleyb<wiseleyb@gmail.com>
# Based on information from http://en.wikipedia.org/wiki/Telephone_numbers_in_Australia
module PhoneNumberAU
extend ModuleUtils
extend self
# Mobile prefixes
MobileOperatorsPrefix = %w(04)
# Home or Work Operator prefixes
HomeWorkOpera... |
// Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1
import (
corev1 "k8s.io/api/core/v1"
)
// ServiceSpecApplyConfiguration represents an declarative configuration of the ServiceSpec type for use
// with apply.
type ServiceSpecApplyConfiguration struct {
Ports []ServicePo... |
package com.google.common.util.concurrent;
import static com.google.common.base.Preconditions.checkNotNull;
import static com.google.common.util.concurrent.MoreExecutors.directExecutor;
import static com.google.common.util.concurrent.Platform.isInstanceOfThrowableClass;
import static com.google.common.util.concurren... |
#pragma once
#include "Core/SampleGenerator/SampleGenerator.h"
#include "Common/primitive_type.h"
namespace ph
{
class SGStratified final : public SampleGenerator, public TCommandInterface<SGStratified>
{
public:
explicit SGStratified(std::size_t numSamples);
private:
std::unique_ptr<SampleGenerator> genNewborn(s... |
package com.interview.number;
/**
* Write a program to determine whether n/2 distinctive pairs can be formed
* from given n integers where n is even and each pair's sum is divisible by given k.
* Numbers cannot be repeated in the pairs, that means only you can form total n/2 pairs.
*/
public class NBy2PairSumToK... |
package org.springframework.security.config.annotation;
import java.util.ArrayList;
import java.util.List;
/**
* @author Rob Winch
*
*/
class ConcereteSecurityConfigurerAdapter extends SecurityConfigurerAdapter<Object, SecurityBuilder<Object>> {
private List<Object> list = new ArrayList<>();
@Override
publi... |
using namespace llvm;
char SpillPlacement::ID = 0;
INITIALIZE_PASS_BEGIN(SpillPlacement, "spill-code-placement",
"Spill Code Placement Analysis", true, true)
INITIALIZE_PASS_DEPENDENCY(EdgeBundles)
INITIALIZE_PASS_DEPENDENCY(MachineLoopInfo)
INITIALIZE_PASS_END(SpillPlacement, "spill-code-placeme... |
PACKAGE_NAME=kafka-go
PACKAGE_VERSION=${1:-v0.2.0}
PACKAGE_URL=https://github.com/segmentio/kafka-go.git
yum install go git -y
export GOPATH=/home/tester/go
OS_NAME=$(grep ^PRETTY_NAME /etc/os-release | cut -d= -f2)
mkdir -p $GOPATH/src/github.com/segmentio && cd $GOPATH/src/github.com/segmentio
rm -rf $PACKAGE_URL
... |
export default {
BackgroundsPlus: require("./backgrounds-plus.jpg")
};
|
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-dom"], factory);
else if(typeof exports === 'obje... |
"use strict";
const conversions = require("webidl-conversions");
const utils = require("./utils.js");
const HTMLElement = require("./HTMLElement.js");
const impl = utils.implSymbol;
function HTMLLIElement() {
throw new TypeError("Illegal constructor");
}
HTMLLIElement.prototype = Object.create(HTMLElement.interface... |
package com.amazonaws.services.sqs.model;
import java.io.Serializable;
/**
* <p>
* Encloses the id of an entry in ChangeMessageVisibilityBatch.
* </p>
*/
public class ChangeMessageVisibilityBatchResultEntry implements Serializable, Cloneable {
/**
* Represents a message whose visibility timeout has bee... |
#include "HierarchicalSigmoidLayer.h"
#include "paddle/utils/Util.h"
namespace paddle {
REGISTER_LAYER(hsigmoid, HierarchicalSigmoidLayer);
bool HierarchicalSigmoidLayer::init(const LayerMap& layerMap,
const ParameterMap& parameterMap) {
/* Initialize the basic parent class *... |
<!--
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may ... |
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror"], mod);
else // Plain browser env
mod(CodeMirror);
})(function(CodeMirror) {
"use ... |
import { fetchJSON } from '../../http'
import { DailyPuzzle } from '../../lichess/interfaces'
import { User } from '../../lichess/interfaces/user'
import { OnlineGameData } from '../../lichess/interfaces/game'
export function featured(feedback: boolean): Promise<OnlineGameData> {
return fetchJSON('/tv', undefined, f... |
using Nimbus.MessageContracts;
namespace Nimbus.StressTests.ThroughputTests.MessageContracts
{
public class BazEvent : StressTestMessage, IBusEvent
{
}
} |
package security
import (
internalinterfaces "github.com/openshift/client-go/security/informers/externalversions/internalinterfaces"
v1 "github.com/openshift/client-go/security/informers/externalversions/security/v1"
)
// Interface provides access to each of this group's versions.
type Interface interface {
// V1 ... |
<?xml version="1.0" encoding="utf-8"?>
<!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>autosave_association.rb</title>
<meta http-equiv="Content-Type" c... |
.filter-bar-backdrop {
-webkit-transition: opacity 150ms ease-in-out;
transition: opacity 150ms ease-in-out;
opacity: 0;
background-color: rgba(0, 0, 0, 0.4);
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%; }
.filter-bar-backdrop.active {
z-index: 10;
opacity: 1;... |
// This file defines the types used in the standard MLIR TensorFlow dialect.
#ifndef TENSORFLOW_COMPILER_MLIR_TENSORFLOW_IR_TF_TYPES_H_
#define TENSORFLOW_COMPILER_MLIR_TENSORFLOW_IR_TF_TYPES_H_
#include "mlir/IR/Diagnostics.h" // TF:local_config_mlir
#include "mlir/IR/Location.h" // TF:local_config_mlir
#include... |
void clang_analyzer_eval(bool);
// Faking std::call_once implementation.
namespace std {
// Fake std::function implementation.
template <typename>
class function;
class function_base {
public:
long field;
};
template <typename R, typename... P>
class function<R(P...)> : function_base {
public:
R operator()(P..... |
<!DOCTYPE html>
<html lang="en">
<head>
<title>three.js canvas - panorama fisheye demo</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
body {
background-color: rgb(200,200,200);
margin: 0px;
overfl... |
<?xml version="1.0" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<parameters>
<parameter key="fragment.handler.... |
module AliMNS{
export class Region{
constructor(city?:string|City, network?:string|NetworkType, zone?:string|Zone){
if(network){
if(typeof network === "string") this._network = network;
else this._network = this.networkToString(network);
}
... |
<?php
/**
* The "marketplaceprivateauction" collection of methods.
* Typical usage is:
* <code>
* $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...);
* $marketplaceprivateauction = $adexchangebuyerService->marketplaceprivateauction;
* </code>
*/
class Google_Service_AdExchangeBuyer_Resourc... |
package android.filterpacks.base;
import android.filterfw.core.Filter;
import android.filterfw.core.FilterContext;
import android.filterfw.core.Frame;
import android.filterfw.core.FrameFormat;
import android.filterfw.core.GenerateFieldPort;
import android.filterfw.core.GenerateFinalPort;
/**
* @hide
*/
public cl... |
#include "tensorflow/compiler/xla/service/hlo_dce.h"
#include <memory>
#include <unordered_set>
#include <utility>
#include <vector>
#include "absl/container/flat_hash_set.h"
#include "tensorflow/compiler/xla/service/hlo_computation.h"
#include "tensorflow/compiler/xla/service/hlo_instruction.h"
#include "tensorflo... |
/*jslint white: true, browser: true, plusplus: true, indent: 4, maxerr: 50 */
var Handsontable = { //class namespace
extension: {}, //extenstion namespace
helper: {} //helper namespace
};
(function ($, window, Handsontable) {
"use strict";
Handsontable.activeGuid = null;
/**
* Handsontable constructor
* @pa... |
#
# Set admin site type property to the site collection using PS for any site collection type.
# This is needed to be set for the site collection which is used as the
# "Connection point" for the CSOM when site collections are created in on-prem
#
$siteColUrl = "http://projects.contoso.com"
$snapin = Get-PSSnapin | ... |
CREATE TABLE `posts` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) unsigned NOT NULL,
`body` text,
`created_at` datetime DEFAULT NULL,
`edited_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `user_created` (`user_id`,`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
<?php
namespace Zend\Mvc\View\Http;
use Zend\Console\Request as ConsoleRequest;
use Zend\EventManager\AbstractListenerAggregate;
use Zend\EventManager\EventManagerInterface;
use Zend\Http\Request as HttpRequest;
use Zend\Mvc\MvcEvent;
class InjectRoutematchParamsListener extends AbstractListenerAggregate
{
/**
... |
#!/usr/bin/env node
/**
* this script is just a temporary solution to deal with the issue of npm outputting the npm
* shrinkwrap file in an unstable manner.
*
* See: https://github.com/npm/npm/issues/3581
*/
const fs = require('fs');
const path = require('path');
function cleanModule(moduleRecord) {
// keep... |
package org.xwalk.embedding.base;
import org.chromium.content.browser.test.util.CallbackHelper;
public class OnXWalkInitCompletedHelper extends CallbackHelper {
private String mMessage;
public String getMessage() {
assert getCallCount() > 0;
return mMessage;
}
public void notifyCalle... |
function overlayCanvasonGoogleMap(xllcorner,xurcorner,yllcorner,yurcorner)
{
var rectLatLngCenter = new google.maps.LatLng((yurcorner+yllcorner)/2, (xurcorner+xllcorner)/2);
overlayImageOnMap();
function initialize() {
imageBounds = {
// north is bigger than south, east is bigger than west
... |
"""Unit tests for abc.py."""
import unittest
from test import support
import abc
from inspect import isabstract
class TestABC(unittest.TestCase):
def test_abstractmethod_basics(self):
@abc.abstractmethod
def foo(self): pass
self.assertTrue(foo.__isabstractmethod__)
def bar(self)... |
#ifndef _IGNITE_IMPL_IGNITE_IMPL
#define _IGNITE_IMPL_IGNITE_IMPL
#include <ignite/jni/java.h>
#include <ignite/common/utils.h>
#include <ignite/common/concurrent.h>
#include <ignite/common/lazy.h>
#include <ignite/cluster/cluster_group.h>
#include <ignite/impl/ignite_environment.h>
#include <ignite/impl/cache/cach... |
#ifndef WAYMO_OPEN_DATASET_MATH_VEC2D_H_
#define WAYMO_OPEN_DATASET_MATH_VEC2D_H_
#include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <tuple>
#include "absl/strings/str_cat.h"
namespace waymo {
namespace open_dataset {
// A 2D real-valued vector. Represents 2D points & vectors.
//... |
/* Intentionally empty file to support building git with MSVC */
|