text stringlengths 3 1.05M |
|---|
package org.apache.hadoop.hdfs.protocol;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability;
/**
* Describes a path-based cache directive.
*/
@InterfaceStability.Evolving
@InterfaceAudience.Public
public class CacheDirectiveStats {
public static ... |
Shindo.tests('Fog::Compute[:digitalocean] | list_regions request', ['digitalocean', 'compute']) do
# {"id":2,"name":"Amsterdam 1"}
@region_format = {
'id' => Integer,
'name' => String,
}
tests('success') do
tests('#list_regions') do
regions = Fog::Compute[:digitalocean].li... |
<a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fazure%2Fazure-quickstart-templates%2Fmaster%2F101-powerbi-workspace-create%2Fazuredeploy.json" target="_blank">
<img src="http://azuredeploy.net/deploybutton.png"/>
</a>
<a href="http://armviz.io/#/?load=https... |
package org.aksw.TripleCheckMate.client.widgets;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.logical.shared.OpenEvent;
import com.google.gwt.event.logical.shared.OpenHandler;
import com.googl... |
require 'spec_helper'
describe Mail::ReceivedElement do
it "should parse a date" do
received_text = 'from localhost (localhost [127.0.0.1]) by xxx.xxxxx.com (Postfix) with ESMTP id 50FD3A96F for <xxxx@xxxx.com>; Tue, 10 May 2005 17:26:50 +0000 (GMT)'
expect { Mail::ReceivedElement.new(received_text) }.not_... |
#include "../../state_trackers/xorg/xorg_winsys.h"
static void r600_xorg_identify(int flags);
static Bool r600_xorg_pci_probe(DriverPtr driver,
int entity_num,
struct pci_device *device,
intptr_t match_data);
static const struct pci_id_match r600_xorg_device_match[] = {
{0x1002, PCI_MATCH_ANY, PC... |
package com.google.android.exoplayer2.offline;
import androidx.annotation.Nullable;
import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.upstream.DataSink;
import com.google.android.exoplayer2.upstream.DataSource;
import com.google.android.exoplayer2.upstream.DummyDataSource;
import com.google... |
<?xml version="1.0" encoding="UTF-8"?>
<!-- EN-Revision: 20765 -->
<!-- Reviewed: no -->
<sect1 id="zend.config.adapters.xml">
<title>Zend_Config_Xml</title>
<para>
<classname>Zend_Config_Xml</classname>
permite a los desarrolladores almacenar
datos de configuración en un formato... |
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1017:MarkAssembliesWithComVisible")]
|
<?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... |
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// 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.apa... |
#ifndef TEST_QPS_SERVER_H
#define TEST_QPS_SERVER_H
#include <grpc++/resource_quota.h>
#include <grpc++/security/server_credentials.h>
#include <grpc++/server_builder.h>
#include <grpc/support/cpu.h>
#include <grpc/support/log.h>
#include <vector>
#include "src/cpp/util/core_stats.h"
#include "src/proto/grpc/testin... |
/*
This file handles map initialization and events.
@author Tobin Bradley
@license MIT
*/
/* Globals specifically for OpenLayers Use */
var selectControl; // OpenLayers select control for vector marker layer
/* Map Initialization */
function initializeMap() { /* initialze map */
... |
#if (defined _UNICODE || defined __UNICODE__ || defined UNICODE) && !defined MININI_ANSI
# if !defined UNICODE /* for Windows */
# define UNICODE
# endif
# if !defined _UNICODE /* for C library */
# define _UNICODE
# endif
#endif
#define MININI_IMPLEMENTATION
#include "minIni.h"
#if defined NDEBUG
#define a... |
<!--
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 ma... |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
#include "stdafx.h" // Precompiled header key.
#include "loaderheap.h"
#include "perfcounters.h"
#include "ex.h"
#include "pedecoder.h"
#defin... |
/*!
* numbro.js
* version : 1.8.0
* author : Företagsplatsen AB
* license : MIT
* http://www.foretagsplatsen.se
*/
(function () {
'use strict';
/************************************
Constants
************************************/
var numbro,
VERSION = '1.8.0',
binarySuff... |
"""
XeLaTeX document tree Writer.
A variant of Docutils' standard 'latex2e' writer producing LaTeX output
suited for processing with the Unicode-aware TeX engines
LuaTeX and XeTeX.
"""
__docformat__ = 'reStructuredText'
import os
import os.path
import re
import docutils
from docutils import frontend, nodes, utils, ... |
PROXIED_API(PPB_X509Certificate_Private)
PROXIED_IFACE(PPB_X509Certificate_Private,
PPB_X509CERTIFICATE_PRIVATE_INTERFACE_0_1,
PPB_X509Certificate_Private_0_1)
#if !defined(OS_NACL)
PROXIED_API(PPB_Broker)
PROXIED_IFACE(PPB_Broker, PPB_BROKER_TRUSTED_INTERFACE_0_2,
PPB_Broke... |
<?php
/**
* Configurable product type resource model
*
* @category Mage
* @package Mage_Catalog
* @author Magento Core Team <core@magentocommerce.com>
*/
class Mage_Catalog_Model_Resource_Product_Type_Configurable extends Mage_Core_Model_Resource_Db_Abstract
{
/**
* Init resource
*
... |
NSString * const ZC_AFURLResponseSerializationErrorDomain = @"com.alamofire.error.serialization.response";
NSString * const ZC_AFNetworkingOperationFailingURLResponseErrorKey = @"com.alamofire.serialization.response.error.response";
NSString * const ZC_AFNetworkingOperationFailingURLResponseDataErrorKey = @"com.alamofi... |
package com.mao.travelapp.utils;
import android.graphics.Paint;
/**
* 字符串工具类
*
* @author mao
*
*/
public class StringUtils {
private StringUtils() {
throw new UnsupportedOperationException("can't instantiate class StringUtils");
}
/**
* 获取指定文本在指定字体大小下的宽度
*
* @param text 指定的文本
* @param size 指定的字... |
var q = require('q'),
fs = require('fs'),
path = require('path'),
SauceLabs = require('saucelabs'),
https = require('https');
var SAUCE_LOGS_WAIT = 5000;
/**
* Outputs information about where your Protractor test is spending its time
* to the specified folder. A JSON data file and small index.html t... |
using System.Threading.Tasks;
using System.Threading.Tests;
using Xunit;
namespace System.Threading.ThreadPools.Tests
{
public static class ThreadPoolTests
{
private const int UnexpectedTimeoutMilliseconds = ThreadTestHelpers.UnexpectedTimeoutMilliseconds;
private const int ExpectedTimeoutMilli... |
module EventStore
class AggregateNotFound < StandardError; end
class AggregateConcurrencyError < StandardError; end
class UnknownAggregateClass < StandardError; end
class DomainRepository
include Eventful
def initialize(event_store)
@event_store = event_store
@tracked_aggregates = ... |
namespace System.Reflection
{
[Flags]
public enum MethodSemanticsAttributes
{
/// <summary>
/// Used to modify the value of the property.
/// CLS-compliant setters are named with set_ prefix.
/// </summary>
Setter = 0x0001,
/// <summary>
/// Used to r... |
package org.keycloak.models.map.realm.entity;
import org.keycloak.models.AuthenticationFlowModel;
import org.keycloak.models.map.annotations.GenerateEntityImplementations;
import org.keycloak.models.map.common.AbstractEntity;
import org.keycloak.models.map.common.DeepCloner;
import org.keycloak.models.map.common.Upd... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { Comp3608Component } from './comp-3608.component';
describe('Comp3608Component', () => {
let component: Comp3608Component;
let fixture: ComponentFixture<Comp3608Component>;
beforeEach(async(() => {
TestBed.configureTestingM... |
describe RuboCop::Cop::Style::PercentLiteralDelimiters, :config do
subject(:cop) { described_class.new(config) }
let(:cop_config) do
{ 'PreferredDelimiters' => { 'default' => '[]' } }
end
context '`default` override' do
let(:cop_config) do
{
'PreferredDelimiters' => {
'default'... |
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... |
#ifndef MSGPACK_PREDEF_LANGUAGE_OBJC_H
#define MSGPACK_PREDEF_LANGUAGE_OBJC_H
#include <msgpack/predef/version_number.h>
#include <msgpack/predef/make.h>
/*`
[heading `MSGPACK_LANG_OBJC`]
[@http://en.wikipedia.org/wiki/Objective-C Objective-C] language.
[table
[[__predef_symbol__] [__predef_version__]]
[... |
package execdriver
import (
"github.com/dotcloud/docker/pkg/term"
"github.com/kr/pty"
"io"
"os"
"os/exec"
)
func SetTerminal(command *Command, pipes *Pipes) error {
var (
term Terminal
err error
)
if command.Tty {
term, err = NewTtyConsole(command, pipes)
} else {
term, err = NewStdConsole(command, ... |
require "spec_helper"
describe ItemsController do
describe "routing" do
it "routes to #index" do
get("/items").should route_to("items#index")
end
it "routes to #new" do
get("/items/new").should route_to("items#new")
end
it "routes to #show" do
get("/items/1").should route_to(... |
using System.Data.Entity.ModelConfiguration;
using Nankingcigar.Demo.Core.Entity.POCO.Role;
namespace Nankingcigar.Demo.EntityFramework.EntityFramework.Mapping.POCO.Role
{
internal class RoleApiMap : EntityTypeConfiguration<RoleApi>
{
public RoleApiMap()
{
}
}
} |
(function ($) {
// Image transition function
Materialize.fadeInImage = function(selector){
var element = $(selector);
element.css({opacity: 0});
$(element).velocity({opacity: 1}, {
duration: 650,
queue: false,
easing: 'easeOutSine'
});
$(element).velocity({opacity: 1},... |
/// <reference path='fourslash.ts' />
////var x;
////var y = typeof /*1*/
goTo.marker("1");
verify.completionListContains("x"); |
<?php
namespace PhpParser\Parser;
use PhpParser\Error;
use PhpParser\Parser;
class Multiple implements Parser {
/** @var Parser[] List of parsers to try, in order of preference */
private $parsers;
/** @var Error[] Errors collected during last parse */
private $errors;
/**
* Create a parser... |
% DOCKER(1) Docker User Manuals
% Docker Community
% OCT 2015
# NAME
docker-network-create - create a new network
# SYNOPSIS
**docker network create**
[**--aux-address**=*map[]*]
[**-d**|**--driver**=*DRIVER*]
[**--gateway**=*[]*]
[**--help**]
[**--internal**]
[**--ip-range**=*[]*]
[**--ipam-driver**=*default*]
[**--i... |
// Type definitions for original 1.0
// Project: https://github.com/unshiftio/original
// Definitions by: Wayne Carson <https://github.com/wcarson>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
/**
* Transform an URL to a valid origin value.
*
* @param url URL to tran... |
#import <Foundation/Foundation.h>
// This protocol is used for whitelisting classes for global beforeEach and afterEach blocks.
// If you want a class to participate in those just add this protocol to a category and it will be
// included.
@protocol SPTGlobalBeforeAfterEach <NSObject>
@optional
+ (void)beforeEach;
+... |
package org.jasig.portal.io.xml.portlet;
import org.jasig.portal.utils.ComparableExtractingComparator;
public final class ExternalPortletParameterNameComparator extends
ComparableExtractingComparator<ExternalPortletParameter, String> {
public static final ExternalPortletParameterNameComparator INSTANCE =... |
// Eliminate silly MS compiler security warnings about using POSIX functions
#pragma warning(disable : 4996)
#include "AVUtility.h"
#include "TSnative.h"
#include "TSParser.h"
#include "PSParser.h"
#include "AVInfRead.h"
#ifdef WIN32
#include <stdio.h>
#include <io.h>
#include <string.h>
#include <... |
<html>
<!--
Copyright 2010 The Closure Library Authors. All Rights Reserved.
Use of this source code is governed by an Apache 2.0 License.
See the COPYING file for details.
-->
<head>
<title>Closure Unit Tests - goog.ui.HoverCard</title>
<style type="text/css">
.goog-tooltip {
background: infobackground;
... |
/* --------------------------------------------------------------------------
* Name: select.c
* Purpose: Associative array implemented as a PATRICIA tree
* ----------------------------------------------------------------------- */
#include <assert.h>
#include <stddef.h>
#include <stdlib.h>
#include "base/error... |
package cz.metacentrum.perun.webgui.json;
import com.google.gwt.cell.client.Cell;
import com.google.gwt.cell.client.FieldUpdater;
import com.google.gwt.cell.client.TextCell;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.core.client.JsArrayString;
i... |
package com.google.ads.googleads.v12.resources;
public final class AccessibleBiddingStrategyProto {
private AccessibleBiddingStrategyProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.pro... |
import Component from '@ember/component';
import EmberObject, { computed } from '@ember/object';
import { reads } from '@ember/object/computed';
import { inject as service } from '@ember/service';
import { reject } from 'rsvp';
import { validator, buildValidations } from 'ember-cp-validations';
import ValidationErrorDi... |
using System.Xml.Schema;
using Xunit;
using Xunit.Abstractions;
namespace System.Xml.Tests
{
// ===================== ValidateText =====================
public class TCValidateText_String : CXmlSchemaValidatorTestCase
{
private ITestOutputHelper _output;
private ExceptionVerifier _exVerifi... |
using System.Net;
using System.Web.Http;
using Umbraco.Web.Mvc;
using Umbraco.Web.WebApi.Filters;
using Constants = Umbraco.Core.Constants;
namespace Umbraco.Web.Editors
{
[PluginController("UmbracoApi")]
[UmbracoApplicationAuthorize(Constants.Applications.Users)]
public class UserController : UmbracoAutho... |
require 'pp'
module Jekyll
# Need to overwrite the inspect method here because the original
# uses < > to encapsulate the psuedo post/page objects in which case
# the output is taken for HTML tags and hidden from view.
#
class Post
def inspect
"#Jekyll:Post @id=#{self.id.inspect}"
end
end
c... |
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('-webkit-column-break-after', v);
},
get: function () {
return this.getPropertyValue('-webkit-column-break-after');
},
enumerable: true,
configurable: true
};
|
- `decdigits`/`letters`: Output of `tools/{decdigits,letters}.sh`. EBNF
alternative ranges for all Unicode code points classified as "Decimal
Digit" and "Letter".
- `spec_`: Dated fetch of the Go Programming Language Specification HTML
page.
- `.extract`: Simple grammar extraction from HTML spec (with
`cmd/e... |
package org.owasp.dependencycheck.data.lucene;
import java.util.LinkedList;
import org.apache.lucene.analysis.TokenFilter;
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.tokenattributes.CharTermAttribute;
/**
* An abstract tokenizing filter that can be used as the base for a tokeni... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Dashboard extends CI_Controller {
public function __construct(){
parent::__construct();
$this->load->helper('admin');
$this->load->database();
//$this->load->library('grocery_CRUD');
... |
use CellRenderer;
use TreePath;
use ffi;
use glib;
use glib::Value;
use glib::object::Downcast;
use glib::object::IsA;
use glib::signal::connect;
use glib::translate::*;
use glib_ffi;
use gobject_ffi;
use libc;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib_wrapper! {
pub struct CellRendererToggle(Obje... |
<?php
namespace Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony\Component\Routing\Annotation\Route;
#[Route(path: '/prefix', host: 'frankdejonge.nl', condition: 'lol=fun')]
class PrefixedActionPathController
{
#[Route(path: '/path', name: 'action')]
public function action()
{
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>TORSHIA</title>
<link rel="stylesheet" type="text/css" href="reset-css.css">
<link rel="style... |
.oo-ui-icon-block {
background-image: /* @embed */ url(themes/mediawiki/images/icons/block.png);
}
.oo-ui-icon-block-destructive {
background-image: /* @embed */ url(themes/mediawiki/images/icons/block-destructive.png);
}
.oo-ui-icon-block-invert {
background-image: /* @embed */ url(themes/mediawiki/images/icons/bl... |
CKEDITOR.plugins.setLang("imagebase","ro",{captionPlaceholder:"Introduceți titlul imaginii"}); |
<?php
namespace Google\Service\Contentwarehouse;
class IndexingDupsLocalizedLocalizedClusterLinkBasedClusterInfoLinkMember extends \Google\Collection
{
protected $collection_key = 'languageCode';
/**
* @var string
*/
public $annotationSource;
/**
* @var string[]
*/
public $languageCode;
/**
... |
//===--- IRGen.cpp - Swift LLVM IR Generation -----------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
package idtools // import "github.com/docker/docker/pkg/idtools"
import (
"fmt"
"regexp"
"sort"
"strconv"
"strings"
"sync"
)
// add a user and/or group to Linux /etc/passwd, /etc/group using standard
// Linux distribution commands:
// adduser --system --shell /bin/false --disabled-login --disabled-password --no... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
// ------------------------------------------------------------------------
/**
* Typography Class
*
* @category Helpers
* @author EllisLab Dev Team
* @link http://codeigniter.com/user_guide/helpers/
*/
class CI_Typography {
// Blo... |
// 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
// copyright and this n... |
function _tabs(options) {
var self = _widget(options),
remove = self.remove,
afterSelect = options.afterSelect,
div = self.div,
liList = [];
//create tabs
div.addClass('ke-tabs')
.bind('contextmenu,mousedown,mousemove', function(e) {
e.preventDefault();
});
var ul = K('<ul class="ke-tabs-ul ke-clearf... |
// Code generated by protoc-gen-go.
// source: dns.proto
// DO NOT EDIT!
/*
Package pb is a generated protocol buffer package.
It is generated from these files:
dns.proto
It has these top-level messages:
DnsPacket
*/
package pb
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
i... |
'use strict';
module.exports = function(ctx){
var helper = ctx.extend.helper;
var date = require('./date');
helper.register('date', date.date);
helper.register('date_xml', date.date_xml);
helper.register('time', date.time);
helper.register('full_date', date.full_date);
helper.register('time_tag', date.... |
package org.apache.camel.spring.processor;
import org.apache.camel.CamelContext;
import org.apache.camel.processor.DeadLetterChannelUseOriginalInBodyWithFileTest;
import static org.apache.camel.spring.processor.SpringTestHelper.createSpringCamelContext;
/**
* @version
*/
public class SpringDeadLetterChannelUseOri... |
class Client(object):
"""Base API client for all API clients."""
def __init__(self, api_base_url, auth):
self._api_base_url = api_base_url
self._auth = auth
def trigger_dag(self, dag_id, run_id=None, conf=None, execution_date=None):
"""Create a dag run for the specified dag.
... |
package com.badlogic.gdx.tests;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.Arrays;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic... |
#include "tensorflow/compiler/xla/service/gpu/hlo_to_ir_bindings.h"
#include "external/llvm/include/llvm/IR/BasicBlock.h"
#include "external/llvm/include/llvm/IR/Function.h"
#include "external/llvm/include/llvm/IR/Instructions.h"
#include "tensorflow/compiler/xla/service/gpu/ir_emission_utils.h"
#include "tensorflow... |
package org.gradle.api.execution.internal;
import org.gradle.internal.progress.OperationResult;
import org.gradle.internal.progress.OperationStartEvent;
public interface InternalTaskExecutionListener {
void beforeExecute(TaskOperationInternal taskOperation, OperationStartEvent startEvent);
void afterExecu... |
import os
from cassandra.concurrent import execute_concurrent
from cassandra import DriverException
try:
import unittest2 as unittest
except ImportError:
import unittest # noqa
import logging
from cassandra import ProtocolVersion
from cassandra import ConsistencyLevel, Unavailable, InvalidRequest, cluster
fro... |
<!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... |
package etcd
//go:generate codecgen -d 1978 -o response.generated.go response.go
import (
"net/http"
"strconv"
"time"
"github.com/ugorji/go/codec"
)
const (
rawResponse = iota
normalResponse
)
type responseType int
type RawResponse struct {
StatusCode int
Body []byte
Header http.Header
}
var (... |
layout: userguide
category: intro
weight: 10
title: Noda Time User Guide
linktitle: Overview
---
This guide provides documentation to complement the API reference.
It is recommended that you read at least the first few pages before
starting to develop using Noda Time. If you have suggestions or
questions which are lik... |
layout: post
title: "Por que no funciona?"
date: 2015-09-27 17:00:00
author: Teófilo - Hernán
categories: finished
---
# Por que no funciona?
## Qué es lo que pueden averiguar con las herramientas ROS y cómo este es útil para encontrar la falla?
Con las herramientas de ROS, tales como rostopic list y rostopic nod... |
@class DVTFilePath, DVTPlatform, DVTSearchPath, NSArray, NSDictionary, NSNumber, NSString, NSURL;
@interface DVTSDK : NSObject
{
DVTPlatform *_platform;
NSString *_canonicalName;
NSString *_displayName;
NSString *_operatingSystemVersion;
DVTFilePath *_sdkPath;
NSString *_docSetFeedName;
NSU... |
import WebGLLayer from '../WebGLLayer'
export default class WebGLActivation extends WebGLLayer {
constructor() {
super()
this.program = this.webgl.createProgram(require('./activation.glsl'))
}
static INPUT_TEXTURE_NAME = 'X'
static RELU_ACTIVATION_UNIFORM_NAME = 'relu'
/**
* Bind WebGL input tex... |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v4.0.0
* @link http://www.ag-grid.com/
* @license MIT
*/
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() {... |
<?php
namespace Zend\EventManager;
use Zend\Stdlib\CallbackHandler;
use Zend\Stdlib\PriorityQueue;
/**
* Interface for shared event listener collections
*/
interface SharedEventManagerInterface
{
/**
* Retrieve all listeners for a given identifier and event
*
* @param string|int $id
* @pa... |
"""Build a meta-installer for Omaha's client installations.
The only function in this module creates an Omaha meta-installer, which is
an executable whose only job is to extract its payload (the actual installer
executable and a number of resource dlls), then launch the dropped installer
to finish the installa... |
#ifndef SkAutoKern_DEFINED
#define SkAutoKern_DEFINED
#include "SkGlyph.h"
#define SkAutoKern_AdjustF(prev, next) (((next) - (prev) + 32) >> 6 << 16)
#define SkAutoKern_AdjustS(prev, next) SkIntToScalar(((next) - (prev) + 32) >> 6)
/* this is a helper class to perform auto-kerning
* the adjust() method re... |
<section class="list" ng-if="question.text || question.text === ''">
<div class="item item-text-wrap">
<p><mm-format-text watch="true" class="mm-content-with-float" component="{{component}}" component-id="{{componentId}}">{{ question.text }}</mm-format-text></p>
</div>
<ion-input class="item item-in... |
package auth
import (
"bytes"
"crypto/md5"
"crypto/rand"
"encoding/base64"
"fmt"
"net/http"
"strings"
)
// RandomKey returns a random 16-byte base64 alphabet string
func RandomKey() string {
k := make([]byte, 12)
for bytes := 0; bytes < len(k); {
n, err := rand.Read(k[bytes:])
if err != nil {
panic("r... |
'use strict'
//styles
require('amazeui/dist/css/amazeui.css')
require('../scss/main.scss')
//scripts
require('amazeui/dist/js/amazeui.js')
let textEditor = require('./textEditor.js'),
mobileEditor = require('./mobileEditor.js'),
notebookComponent = require('./component/notebookComponent.js'),
... |
.ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; }
.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; }
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
.ui-datepicker .ui-datepicker-prev-hover,... |
package hashids
import (
"reflect"
"testing"
)
func testMinLength(minLength int, t *testing.T) {
numbers := []int{1, 2, 3}
hdata := NewData()
hdata.MinLength = minLength
h, _ := NewWithData(hdata)
e, err := h.Encode(numbers)
decodedNumbers := h.Decode(e)
if err != nil {
t.Errorf("Expected no error but got... |
<?php
/**
* Diff API: WP_Text_Diff_Renderer_Table class
*
* @package WordPress
* @subpackage Diff
* @since 4.7.0
*/
/**
* Table renderer to display the diff lines.
*
* @since 2.6.0
* @uses Text_Diff_Renderer Extends
*/
class WP_Text_Diff_Renderer_Table extends Text_Diff_Renderer {
/**
* @see Text_Diff_R... |
package com.drew.tools;
import com.drew.imaging.jpeg.JpegProcessingException;
import com.drew.imaging.jpeg.JpegSegmentData;
import com.drew.imaging.jpeg.JpegSegmentReader;
import com.drew.imaging.jpeg.JpegSegmentType;
import com.drew.lang.Iterables;
import com.drew.lang.annotations.NotNull;
import java.io.File;
impo... |
title: Style tag appears on paste from MS Word in Firefox on a Mac
description: An unwanted style tag appears on paste from MS Word in Firefox on a Mac when StripFormattingOptions is set to MSWordRemoveAll and Css - RadEditor for ASP.NET AJAX
type: troubleshooting
page_title: Style tag appears on paste from MS Word in ... |
old_string = "Ruby is cool"
new_string = old_string.upcase.reverse
# RSpec Tests. They are included in this file because the local variables you are creating are not accessible across files. If we try to run these files as a separate file per normal operation, the local variable checks will return nil.
describe "old_... |
function createDataService() {
var DataService = function DataServiceClass() {
var self = this;
var pollingInterval = 1000;
var observers = [];
var pollingHandler;
var oneSecond = 1000;
var oneMinute = 60 * oneSecond;
var currentDate = appData.minDate;
... |
declare namespace Express {
export interface Request {
session?: Session;
}
export interface Session {
[key: string]: any;
regenerate: (callback: (err: any) => void) => void;
destroy: (callback: (err: any) => void) => void;
reload: (callback: (err: any) => void) => void;
save: (callback... |
(function( $ ) {
$.fn.shareIt = function(options) {
var defaults = {
share : "facebook",
img : "",
title: "",
description: "",
link: ""
};
var options = $.extend(defaults, options);
return this.each(function() {
... |
package org.springframework.boot.web.server;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
import java.net.URL;
import java.security.cert.CertificateException;
import java.security.cert.CertificateFactory;
import java.security.cert.X509Certi... |
<!DOCTYPE html>
<title>Test of interfaces</title>
<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com">
<link rel="help" href="https://html.spec.whatwg.org/multipage/">
<link rel="help" href="https://heycam.github.io/webidl/#host-objects">
<link rel="help" href="http://www.ecma-international.org/publication... |
@font-face {
font-weight: normal;
font-style: normal;
font-family: 'icomoon';
src:url('../../fonts/icomoon/icomoon.eot?-e2');
src:url('../../fonts/icomoon/icomoon.eot?#iefix-e2') format('embedded-opentype'),
url('../../fonts/icomoon/icomoon.woff?-e2') format('woff'),
url('../../fonts/icomoon/icomoon.ttf?-e2') ... |
package sandbox
import (
"fmt"
"net"
"os"
"runtime"
"github.com/vishvananda/netlink"
"github.com/vishvananda/netns"
)
func configureInterface(iface netlink.Link, settings *Interface) error {
ifaceName := iface.Attrs().Name
ifaceConfigurators := []struct {
Fn func(netlink.Link, *Interface) error
E... |
require 'active_support/core_ext/range'
module ActiveModel
module Validations
module Clusivity #:nodoc:
ERROR_MESSAGE = "An object with the method #include? or a proc, lambda or symbol is required, " \
"and must be supplied as the :in (or :within) option of the configuration hash"
... |