text stringlengths 3 1.05M |
|---|
package log
import (
"io/ioutil"
"regexp"
"unicode"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
)
type FilterHook struct {
custom *regexp.Regexp
predefined *regexp.Regexp
}
// NewFilterHook creates a new default FilterHook
func NewFilterHook(filter string) (hook *FilterHook, err error) {
var cu... |
describe("", function() {
var rootEl;
beforeEach(function() {
rootEl = browser.rootEl;
browser.get("build/docs/examples/example-example79/index-jquery.html");
});
it('should check ng-submit', function() {
expect(element(by.binding('list')).getText()).toBe('list=[]');
element(by.css('#submit')).clic... |
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright 2015 "Henry Tao <hi@henrytao.me>"
~
~ 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/L... |
@interface APNSIdentityExporter : NSObject
+ (void)exportIdentity:(SecIdentityRef)identity withPanelWindow:(NSWindow *)window;
@end
|
"use strict";
var page = require('webpage').create(),
server = 'http://posttestserver.com/post.php?dump',
data = '{"universe": "expanding", "answer": 42}';
var headers = {
"Content-Type": "application/json"
}
page.open(server, 'post', data, headers, function (status) {
if (status !== 'success') {
... |
// MainDlg.h : interface of the CMainDlg class
//
/////////////////////////////////////////////////////////////////////////////
#pragma once
#include "AboutDlg.h"
#include "DocumentDlg.h"
#define WM_POSTCREATE (WM_USER+256)
class CMainDlg : public CDialogImpl<CMainDlg>, public CUpdateUI<CMainDlg>,
public CMess... |
package voldemort.utils.pool;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.util.Random;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import org.junit.Before;
import org.junit.Test;
publi... |
from oslo.config import cfg
from nova import db
from nova.openstack.common.gettextutils import _
from nova.openstack.common import log as logging
from nova.scheduler import filters
LOG = logging.getLogger(__name__)
ram_allocation_ratio_opt = cfg.FloatOpt('ram_allocation_ratio',
default=1.5,
help='Vir... |
/*
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
*/
#ifndef CHIP_SYSCLK_H_INCLUDED
#define CHIP_SYSCLK_H_INCLUDED
#include <osc.h>
#include <pll.h>
/**
* \page sysclk_quickstart Quick Start Guide for the System Clock Management service (SAMG51)
*
* This is the quick ... |
package com.html5parser.parser;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import com.html5dom.DocumentType;
import com.html5dom.Element;
import com.html5dom.Node;
import com.html5parser.constants.Namespace;
public class Serializer {
public static String toHtml... |
#ifndef BT_OBB_BOX_MINKOWSKI_H
#define BT_OBB_BOX_MINKOWSKI_H
#include "btPolyhedralConvexShape.h"
#include "btCollisionMargin.h"
#include "BulletCollision/BroadphaseCollision/btBroadphaseProxy.h"
#include "LinearMath/btVector3.h"
#include "LinearMath/btMinMax.h"
///The btBoxShape is a box primitive around the orig... |
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
<bean id="hadoopFileSystemServ... |
_START_GOOGLE_NAMESPACE_
// Given a pointer to a stack frame, locate and return the calling
// stackframe, or return NULL if no stackframe can be found. Perform sanity
// checks (the strictness of which is controlled by the boolean parameter
// "STRICT_UNWINDING") to reduce the chance that a bad pointer is returned.
t... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.halfWidth = undefined;
exports.default = isHalfWidth;
var _assertString = require('./util/assertString');
var _assertString2 = _interopRequireDefault(_assertString);
function _interopRequireDefault(obj) { return obj && obj.__esMo... |
package io.druid.indexing.overlord.http;
import com.google.common.base.Throwables;
import com.google.inject.Inject;
import io.druid.indexing.overlord.TaskMaster;
import io.druid.server.http.RedirectInfo;
import java.net.URL;
/**
*/
public class OverlordRedirectInfo implements RedirectInfo
{
private final TaskMas... |
package com.amazonaws;
import org.apache.http.annotation.NotThreadSafe;
import org.apache.http.conn.ssl.SSLSocketFactory;
/**
* Used for Apache HTTP client specific custom configurations.
*/
@SuppressWarnings("deprecation")
@NotThreadSafe
public final class ApacheHttpClientConfig {
private SSLSocketFactory ssl... |
@interface DistancePickerView : UIPickerView {
NSMutableDictionary *labels;
}
- (void) addLabel:(NSString *)labeltext forComponent:(NSUInteger)component forLongestString:(NSString *)longestString;
- (void) updateLabel:(NSString *)labeltext forComponent:(NSUInteger)component;
@end
|
#include "qnetworkcookie.h"
#include "qnetworkcookie_p.h"
#include "qnetworkrequest.h"
#include "qnetworkreply.h"
#include "QtCore/qbytearray.h"
#include "QtCore/qdebug.h"
#include "QtCore/qlist.h"
#include "QtCore/qlocale.h"
#include "QtCore/qstring.h"
#include "QtCore/qstringlist.h"
#include "QtCore/qurl.h"
#inclu... |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 1.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../includes/main.css" type="text/css">
<l... |
package com.googlecode.jmxtrans.model;
import lombok.SneakyThrows;
import lombok.ToString;
import org.apache.commons.lang.StringUtils;
import javax.annotation.Nonnull;
import java.lang.reflect.Method;
import java.util.Map;
import static org.apache.commons.lang.StringUtils.capitalize;
/**
* Enumerates the attribut... |
package com.google.security.zynamics.binnavi.debug.debugger;
import com.google.security.zynamics.binnavi.Database.Exceptions.CouldntLoadDataException;
import com.google.security.zynamics.binnavi.Database.Exceptions.CouldntSaveDataException;
import com.google.security.zynamics.binnavi.disassembly.UnrelocatedAddress;
i... |
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports System.Collections.Generic
Imports System.Collections.Immutable
Imports System.Runtime.InteropServices
Imports System.Threading
Imports Microsoft.Code... |
module TwitterConcern
extend ActiveSupport::Concern
included do
include Oauthable
validate :validate_twitter_options
valid_oauth_providers :twitter
gem_dependency_check { defined?(Twitter) && Devise.omniauth_providers.include?(:twitter) && ENV['TWITTER_OAUTH_KEY'].present? && ENV['TWITTER_OAUTH_S... |
import os
basedir = os.path.abspath(os.path.dirname(__file__))
# required by the Flask-SQLAlchemy extension
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir,'app.db')
# to store SQLAlchemy-migrate data files
SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')
WTF_CSRF_ENABLED = True
SECRET_K... |
<?xml version="1.0" encoding="UTF-8"?>
<problems>
<problem>
<file>Foo.java</file>
<line>18</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Non-private field accessed in synchronized context</problem_class>
<description>Non-private field <code>myBar</code> access... |
<!doctype html>
<!--
This is a blank template containing the barest structure that Flatdoc needs.
Customize this as you see fit: add CSS and some markup to get the look that you need.
-->
<html>
<head>
<meta charset='utf-8'>
<!-- Flatdoc -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jq... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2016 Red Hat, Inc. and/or its affiliates
~ and other contributors as indicated by the @author tags.
~
~ 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 ... |
package org.apache.stratos.autoscaler.applications.payload;
public class ApplicationCartridgePayloadData extends PayloadData {
public ApplicationCartridgePayloadData(BasicPayloadData basicPayloadData) {
super(basicPayloadData);
}
}
|
export default function createFreshScope() {
return {
self: null,
blocks: {},
component: null,
view: null,
attrs: null,
locals: {},
localPresent: {}
};
}
|
package com.intellij.openapi.vfs.newvfs.persistent;
import com.intellij.openapi.Forceable;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.application.ApplicationNamesInfo;
import com.intellij.openapi.application.PathManager;
import com.intellij.openapi.diagnostic.Logger;
impor... |
"""
The :mod:`sklearn.feature_extraction.image` submodule gathers utilities to
extract features from images.
"""
# Authors: Emmanuelle Gouillart <emmanuelle.gouillart@normalesup.org>
# Gael Varoquaux <gael.varoquaux@normalesup.org>
# Olivier Grisel
# Vlad Niculae
# License: BSD 3 clause
fro... |
@interface DXAlertView ()
{
BOOL _leftLeave;
}
@property (nonatomic, strong) UILabel *alertTitleLabel;
@property (nonatomic, strong) UILabel *alertContentLabel;
@property (nonatomic, strong) UIButton *leftBtn;
@property (nonatomic, strong) UIButton *rightBtn;
@property (nonatomic, strong) UIButton *comfirmBtn;
@pr... |
/**
* jqGrid extension for custom methods
* Tony Tomov tony@trirand.com, http://trirand.com/blog/
*
* Wildraid wildraid@mail.ru
* Oleg Kiriljuk oleg.kiriljuk@ok-soft-gmbh.com
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/license... |
package org.teavm.debugging.information;
import org.teavm.model.MethodDescriptor;
/**
*
* @author Alexey Andreev
*/
public class MethodIterator {
private DebugInformation debugInformation;
private int index;
MethodIterator(DebugInformation debugInformation) {
this.debugInformation = debugInfo... |
require_relative '../route53_record'
Puppet::Type.type(:route53_ns_record).provide(:v2, :parent => Puppet::Provider::Route53Record) do
confine feature: :aws
mk_resource_methods
def self.record_type
'NS'
end
def flush
update unless @property_hash[:ensure] == :absent
end
end
|
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"/>
<title>Troubleshoot connection to GEE Server</title>
<link rel="stylesheet" href="../css/styles.css" type="text/css" media="all" /> <link rel="stylesheet" href="../css/containers.css" type="text/css" media="all" /> </head> <body>
<!-- 6363126.html -->
<div class="co... |
package org.apache.flink.util;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.Iterator;
import java.util.List;
import java.util.function.Consumer;
/**
* A variant of the URLClassLoader that first loads from the URLs and only after that fr... |
#import <Foundation/Foundation.h>
#import "SystranObject.h"
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
#import "SystranTranslationOutput.h"
#import "SystranErrorResponse.h"
@protocol Systra... |
<?php
namespace Anax\Route;
/**
* A container for routes.
*
*/
class CRouterBasic implements \Anax\DI\IInjectionAware
{
use \Anax\DI\TInjectionAware;
/**
* Properties
*
*/
private $routes = []; // All the routes
private $internalRoutes = []; // All internal routes
... |
package main
import (
"flag"
"io/ioutil"
"log"
"net/http"
"os"
"strconv"
"text/template"
"time"
"github.com/gorilla/websocket"
)
const (
// Time allowed to write the file to the client.
writeWait = 10 * time.Second
// Time allowed to read the next pong message from the client.
pongWait = 60 * time.Seco... |
/* Includes ------------------------------------------------------------------*/
#include "stm32f3xx_hal.h"
/** @addtogroup STM32F3xx_HAL_Driver
* @{
*/
/** @defgroup FLASH
* @brief FLASH HAL module driver
* @{
*/
#ifdef HAL_FLASH_MODULE_ENABLED
/* Private typedef --------------------------------------... |
<?php
namespace Icecave\Pasta\AST\Expr;
// @codeCoverageIgnoreStart
class BitwiseExclusiveOr extends BinaryOperator
{
}
|
#include "fsl_adc16.h"
/*******************************************************************************
* Prototypes
******************************************************************************/
/*!
* @brief Get instance number for ADC16 module.
*
* @param base ADC16 peripheral base address
*/
static uint32_... |
* add stub: `iron-core` by @hkirk
## v0.0.15
* handle case where top-level function returns a non-object
## v0.0.14
* attach jQuery stub to both window object and global object. fix #24
## v0.0.13
* properly ignore packages when auto-stubbing
* limit exports search to top level of packages dir (no sub-dirs)
... |
#import <Foundation/Foundation.h>
#if TARGET_OS_IPHONE
#import "DDXML.h"
#endif
@interface XMPPParser : NSObject
- (id)initWithDelegate:(id)delegate delegateQueue:(dispatch_queue_t)dq;
- (id)initWithDelegate:(id)delegate delegateQueue:(dispatch_queue_t)dq parserQueue:(dispatch_queue_t)pq;
- (void)setDelegate:(id... |
using System;
using System.IO;
using System.Net;
using System.Web.Mvc;
using Orchard.ContentManagement;
using Orchard.MediaLibrary.Services;
using Orchard.MediaLibrary.ViewModels;
using Orchard.Themes;
using Orchard.UI.Admin;
namespace Orchard.MediaLibrary.Controllers {
[Admin, Themed(false)]
publ... |
#include <stdlib.h>
#include <stdio.h>
#include "cd.h"
#include "cdcairo.h"
#include <lua.h>
#include <lauxlib.h>
#include "cdlua.h"
#include "cdlua5_private.h"
static void *cdimagergb_checkdata(lua_State* L, int param)
{
return (void *)luaL_checkstring(L, param);
}
static cdluaContext cdluaimagergbctx =
{
... |
package io.vavr.collection;
import java.util.Comparator;
/**
* An ordered collection interface.
*
* @param <T> Component type
* @author Ruslan Sennov, Daniel Dietrich
*/
public interface Ordered<T> {
/**
* Returns the comparator which defines the order of the elements contained in this collection.
... |
'use strict';
describe('Service: Customerservice', function () {
// load the service's module
beforeEach(module('ngLemonadeTycoonApp'));
// instantiate service
var Customerservice;
beforeEach(inject(function (_Customerservice_) {
Customerservice = _Customerservice_;
}));
it('should do something', ... |
package com.github.mauricio.async.db.mysql
import com.github.mauricio.async.db.util.FutureUtils.awaitFuture
import com.github.mauricio.async.db._
import com.github.mauricio.async.db.pool.{PoolConfiguration, ConnectionPool}
import com.github.mauricio.async.db.mysql.pool.MySQLConnectionFactory
import scala.Some
trait... |
class ApplicationWindow:
def __init__(self, implementation):
self._implementation = implementation
@property
def title(self):
return self._implementation.title
def minimize(self):
self._implementation.minimize()
def maximize(self):
self._implementation.max... |
#region License
// Copyright (c) 2007 James Newton-King
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without
// restriction, including without limitation the rights to use,
// copy,... |
package prometheus
import (
"k8s.io/client-go/util/workqueue"
"github.com/prometheus/client_golang/prometheus"
)
// Package prometheus sets the workqueue DefaultMetricsFactory to produce
// prometheus metrics. To use this package, you just have to import it.
func init() {
workqueue.SetProvider(prometheusMetric... |
/*
* 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
* distribute... |
/**
* A specialized version of `_.some` for arrays without support for iteratee
* shorthands.
*
* @private
* @param {Array} array The array to iterate over.
* @param {Function} predicate The function invoked per iteration.
* @returns {boolean} Returns `true` if any element passes the predicate check,
* else `f... |
package pxb.android.arsc;
import java.util.TreeMap;
public class Pkg {
public final int id;
public String name;
public TreeMap<Integer, Type> types = new TreeMap<Integer, Type>();
public Pkg(int id, String name) {
super();
this.id = id;
this.name = name;
}
public Typ... |
#include "SkBitmap.h"
#include "SkGraphics.h"
#include "SkImageDecoder.h"
#include "SkImageEncoder.h"
#include "SkStream.h"
#include "SkTemplates.h"
static bool decodeFile(SkBitmap* bitmap, const char srcPath[]) {
SkFILEStream stream(srcPath);
if (!stream.isValid()) {
SkDebugf("ERROR: bad filename <%... |
package com.mgaetan89.showsrage.network;
import com.mgaetan89.showsrage.model.Serie;
import retrofit.Callback;
import retrofit.http.GET;
import retrofit.http.Query;
public interface OmDbApi {
@GET("/?plot=full")
void getShow(@Query("i") String imDbId, Callback<Serie> callback);
}
|
/**
* Aria resource object for multiselect footer de_DE (German)
*/
Aria.resourcesDefinition({
$classpath : 'aria.resources.multiselect.FooterRes',
$resources : {
selectAll : "Alle ausw\u00e4hlen",
deselectAll : "Alle Auswahlen aufheben",
close : "Schlie\u00dfen"
}
});
|
//// [aliasUsageInGenericFunction_backbone.ts]
export class Model {
public someData: string;
}
//// [aliasUsageInGenericFunction_moduleA.ts]
import Backbone = require("aliasUsageInGenericFunction_backbone");
export class VisualizationModel extends Backbone.Model {
// interesting stuff here
}
//// [alias... |
import { RcConfig } from '../interfaces';
export declare const DEFAULTS: {
userAgent: string;
registryURL: string;
defaultSource: string;
};
declare var _default: RcConfig;
export default _default;
|
package org.jetbrains.plugins.scala
package lang
package parser
package parsing
package statements
import org.jetbrains.plugins.scala.lang.lexer.ScalaTokenTypes
import org.jetbrains.plugins.scala.lang.parser.parsing.builder.ScalaPsiBuilder
import org.jetbrains.plugins.scala.lang.parser.parsing.expressions.SelfInvocati... |
using ::testing::Mock;
using ::testing::Return;
using ::testing::StrictMock;
namespace base {
namespace {
class IncompleteType;
class NoRef {
public:
NoRef() {}
MOCK_METHOD0(VoidMethod0, void(void));
MOCK_CONST_METHOD0(VoidConstMethod0, void(void));
MOCK_METHOD0(IntMethod0, int(void));
MOCK_CONST_METHOD... |
cask 'mirrordisplays' do
version '1.2'
sha256 '68b6b9a0bd79945d0e1239f308520a6cfd582fdde4dd061195de888b41643dd5'
# github.com/fcanas/mirror-displays was verified as official when first introduced to the cask
url "https://github.com/fcanas/mirror-displays/releases/download/v#{version}/MirrorDisplays.zip"
appc... |
/*jslint vars: true, plusplus: true, devel: true, nomen: true, regexp: true, indent: 4, maxerr: 50 */
/*global define, appshell, window */
define(function (require, exports, module) {
"use strict";
var FileUtils = require("file/FileUtils"),
FileSystemStats = require("filesystem/Fi... |
var shared = require('../shared')
, common = require('./common')
, utils = require('../../utils')
, hasWriteCommands = utils.hasWriteCommands
, WriteError = common.WriteError
, BatchWriteResult = common.BatchWriteResult
, LegacyOp = common.LegacyOp
, ObjectID = require('bson').ObjectID
, Batch = common.Ba... |
package org.apache.jackrabbit.oak.security.authorization.evaluation;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import java.util.Set;
import com.google.common.collect.Sets;
import org.... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("So... |
package com.plux.cordova.bioplux;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import com.plux.cordova.bioplux.Device.Frame;
import android.os.Environment;
public class DeviceSimpleFile extends Device {
private stati... |
#include <aws/medialive/model/InputDeviceState.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace MediaLive
{
namespace Model
{
namespace InputDeviceStateMapper
... |
"""SCons.Warnings
This file implements the warnings framework for SCons.
"""
__revision__ = "src/engine/SCons/Warnings.py 5023 2010/06/14 22:05:46 scons"
import sys
import SCons.Errors
class Warning(SCons.Errors.UserError):
pass
class WarningOnByDefault(Warning):
pass
# NOTE: If you add a new warning ... |
/* vim:set ft=c ts=2 sw=2 sts=2 et cindent: */
/*
* ***** BEGIN LICENSE BLOCK *****
* Version: MIT
*
* Portions created by Alan Antonuk are Copyright (c) 2012-2013
* Alan Antonuk. All Rights Reserved.
*
* Portions created by VMware are Copyright (c) 2007-2012 VMware, Inc.
* All Rights Reserved.
*
* Portions c... |
package com.monits.agilefant.adapter;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.monits.agilefant.R;
import com.monits.agilefant.adapter.recyclerviewholders.ItemViewHolder;
impor... |
<?xml version='1.0' encoding='UTF-8'?>
<resources>
<string name="ad_service">Ad service</string>
<string name="app_label">HTML Viewer</string>
<string name="app_name_which_call">App: %s</string>
<string name="app_version_which_call">App version: %s</string>
<string name="autoconnect">Connect automatically</st... |
<!--
JBoss, Home of Professional Open Source
Copyright 2009, Red Hat, Inc. and/or its affiliates, and individual
contributors by the @authors tag. See the copyright.txt in the
distribution for a full listing of individual contributors.
Licensed under the Apache License, Version 2.0 (the "License")... |
// Type definitions for d3JS
// Project: http://d3js.org/
// Definitions by: Boris Yankov <https://github.com/borisyankov>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module D3 {
export interface Selectors {
/**
* Select an element from the current document
*/
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AbstractFactoryDemo
{
/// <summary>
/// 周黑鸭抽象类
/// 总部
/// </summary>
public abstract class ZhouDuckFactory
{
public abstract Yabo CreateYabo();
public a... |
function [qt]=diag(qt)
%Diagonal of a matrix or diagonal matrix from a vector in QTT-Tucker
% [QT]=DIAG(QT) Either makes a diagonal matrix from a vector in
% QTT_TUCKER, or extracts a diagonal vector from a matrix
%
%
% TT-Toolbox 2.2, 2009-2012
%
%This is TT Toolbox, written by Ivan Oseledets et al.
%Institute of... |
package io.aos.guice.annotation;
public interface CreditCardProcessor {
}
|
package org.getchunky.actiontracker.listener;
import org.bukkit.event.server.PluginDisableEvent;
import org.bukkit.event.server.ServerListener;
import org.getchunky.actiontracker.task.ActionTracker;
/**
* @author dumptruckman
*/
public class ServerMonitor extends ServerListener {
public void onPlugi... |
#if !defined(FUSION_SET_LIMITS_09162005_1103)
#define FUSION_SET_LIMITS_09162005_1103
#include <boost/fusion/support/config.hpp>
#include <boost/fusion/container/vector/detail/cpp03/limits.hpp>
#if !defined(FUSION_MAX_SET_SIZE)
# define FUSION_MAX_SET_SIZE FUSION_MAX_VECTOR_SIZE
#else
# if FUSION_MAX_SET_SIZE < 3
# ... |
// Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.base.test.util;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.Retentio... |
/*
Includes inventory types as used in the trade package
*/
package inventory
import (
"bytes"
"encoding/json"
"fmt"
"github.com/Philipp15b/go-steam/jsont"
"strconv"
)
type GenericInventory map[uint32]map[uint64]*Inventory
func NewGenericInventory() GenericInventory {
iMap := make(map[uint32]map[uint64]*Invent... |
<?xml version="1.0" encoding="UTF-8" ?>
<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>
<p... |
import Component from '@ember/component';
export default Component.extend({
foo: __PREPROCESSOR_REPLACEMENT_TOKEN__
});
|
namespace Leet.Specifications
{
using System;
using System.Reflection;
using Xunit;
/// <summary>
/// A class that specifies behavior for <see cref="IComparable{T}"/> interface.
/// </summary>
/// <typeparam name="TSut">
/// Type which shall be tested for conformance with behavi... |
using NuGet.Test.Mocks;
using NuGet.VisualStudio;
namespace NuGet.Dialog.Test
{
internal class MockVsProjectSystem : MockProjectSystem, IVsProjectSystem
{
public string UniqueName
{
get { return "Unique Name"; }
}
}
}
|
if (Meteor.isClient) {
// counter starts at 0
Session.setDefault('counter', 0);
Template.hello.helpers({
counter: function () {
return Session.get('counter');
}
});
Template.hello.events({
'click button': function () {
// increment the counter when button is clicked
Session.set... |
function AsyncCtrl($scope, $http, $timeout, $location) {
$scope.slowHttpStatus = 'not started';
$scope.slowFunctionStatus = 'not started';
$scope.slowTimeoutStatus = 'not started';
$scope.slowAngularTimeoutStatus = 'not started';
$scope.slowAngularTimeoutPromiseStatus = 'not started';
$scope.slowHttpPromise... |
public class ImageFactory {
public static Image create(Format format) {
Image image = null;
switch (format) {
case PNG: image = new PNGImage(); break;
case JPEG: image = new JPEGImage(); break;
case PDF: image = new PDFImage(); break;
}
return image;
}
}
class JPEGImage extends Im... |
<?php declare(strict_types=1);
namespace PhpParser;
use PhpParser\Node\Expr;
use PhpParser\Node\Identifier;
use PhpParser\Node\Name;
use PhpParser\Node\NullableType;
use PhpParser\Node\Scalar;
use PhpParser\Node\Stmt;
use PhpParser\Node\UnionType;
/**
* This class defines helpers used in the implementation of build... |
#ifndef __XML_XPATH_INTERNALS_H__
#define __XML_XPATH_INTERNALS_H__
#include <libxml/xmlversion.h>
#include <libxml/xpath.h>
#ifdef LIBXML_XPATH_ENABLED
#ifdef __cplusplus
extern "C" {
#endif
/************************************************************************
* *
* Helpers *
* *
*... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
... |
<!--
* Copyright (c) 2012 The Chromium Authors. All rights reserved. Use of this
* source code is governed by a BSD-style license that can be found in the
* LICENSE file.
-->
<html>
<body>
<script src="remote-iframe.js"></script>
This frame should never be displayed.
</body>
</html>
|
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="GridColumn.cs" company="Sitecore Corporation">
// Copyright (c) Sitecore Corporation 1999-2015
// </copyright>
// <summary>
// Defines the GridColumn type.
// </summary>... |
class SubversionAT18 < Formula
desc "Version control system"
homepage "https://subversion.apache.org/"
url "https://www.apache.org/dyn/closer.cgi?path=subversion/subversion-1.8.19.tar.bz2"
mirror "https://archive.apache.org/dist/subversion/subversion-1.8.19.tar.bz2"
sha256 "56e869b0db59519867f7077849c9c0962c5... |
<!DOCTYPE html>
<html devsite>
<head>
<meta name="project_path" value="/web/tools/workbox/_project.yaml" />
<meta name="book_path" value="/web/tools/workbox/_book.yaml" />
<meta name="gtm_var" data-key="docType" data-value="reference">
<title>Source: workbox-routing/NavigationRoute.mjs</title>
<link href="js... |
/// <reference path="nvd3.d.ts" />
namespace nvd3_test_lineWithFocusChartx2AxisLabel {
nv.addGraph(function () {
var chart = nv.models.lineWithFocusChart();
chart.brushExtent([50, 70]);
chart.xAxis.tickFormat(d3.format(',f'));
chart.focusHeight(50 + 20);
chart.focusMargin... |
package xml
import (
"bytes"
"encoding"
"errors"
"fmt"
"reflect"
"strconv"
"strings"
)
// BUG(rsc): Mapping between XML elements and data structures is inherently flawed:
// an XML element is an order-dependent collection of anonymous
// values, while a data structure is an order-independent collection
// of n... |
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent">
<FrameLayout
android:id="@+id/mainfrag"
android:layout_weight="30"
android:layo... |