text stringlengths 3 1.05M |
|---|
let makeMovieFrom = (title, somePriceCode) => {
let priceCode = somePriceCode;
return {
get title() { return title; },
get priceCode() { return priceCode; },
set priceCode(code) { priceCode = code; }
};
};
export {makeMovieFrom};
|
class MyException1 extends Exception {}
class MyException2 extends Exception {}
class Test {
void foo () throws MyException1, MyException2 {}
void bar () {
try {
foo();
} catch (MyException1 e) {
} catch (MyException2 myException2) {
<caret><selection>myException2.printStackTrace();</sel... |
using Machine.Specifications;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ShopifySharp.Tests.ShopifyScriptTagService_Tests
{
[Subject(typeof(ShopifyScriptTagService))]
class When_getting_a_script_tag
{
Establish cont... |
package rx.internal.operators;
import rx.Observable.Operator;
import rx.Subscriber;
import rx.exceptions.*;
import rx.functions.Func1;
/**
* Filters an Observable by discarding any items it emits that do not meet some test.
* <p>
* <img width="640" src="https://github.com/ReactiveX/RxJava/wiki/images/rx-operators... |
//
// GTLYouTubeI18nRegion.h
//
// ----------------------------------------------------------------------------
// NOTE: This file is generated from Google APIs Discovery Service.
// Service:
// YouTube Data API (youtube/v3)
// Description:
// Programmatic access to YouTube features.
// Documentation:
// http... |
/*!
* Module requirements.
*/
var SchemaType = require('../schematype')
, CastError = SchemaType.CastError
, utils = require('../utils')
, Document
/**
* Number SchemaType constructor.
*
* @param {String} key
* @param {Object} options
* @inherits SchemaType
* @api private
*/
function SchemaNumber (key... |
module Arel # :nodoc: all
module Visitors
class Dot < Arel::Visitors::Visitor
class Node # :nodoc:
attr_accessor :name, :id, :fields
def initialize(name, id, fields = [])
@name = name
@id = id
@fields = fields
end
end
class Edge < Str... |
{#
Mail sent to user when she was not logged in and received a PM or @-mention
#}
Hello {{ name }},
<p>
While you were away you received {{ message_count }} new message{{ message_count|pluralize }}{% if mention %} in which you were mentioned{% endif %}!
</p>
<div id='messages' style="width: 600px;font-size: 12px... |
#if NO_HASHSET
using System.Linq;
#endif
namespace MoreLinq
{
using System;
using System.Collections.Generic;
static partial class MoreEnumerable
{
/// <summary>
/// Returns all distinct elements of the given source, where "distinctness"
/// is determined via a... |
<TS language="es_UY" version="2.0">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Clic derecho para editar dirección o etiqueta</translation>
</message>
<message>
<source>Create a new address</source>
<... |
using OpenQA.Selenium;
namespace Selenium.StandardControls.PageObjectUtility
{
/// <summary>
/// The base class for mapping elements.
/// </summary>
public class MappingBase
{
/// <summary>
/// SearchContext
/// </summary>
protected ISearchContext SearchContext { ge... |
module Mongoid
module Matchers
module Validations
class ValidateFormatOfMatcher < HaveValidationMatcher
def initialize(field)
super(field, :format)
end
def with_format(format)
@format = format
self
end
def to_allow(valid_value)
... |
'use strict';
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
var CircleSchema = new Schema({
created: Date,
updated: Date,
category: [String],
description: String,
name: {
type: String,
required: true,
unique: true
},
circles: [String],
});
//add index
CircleSchema.statics.... |
define(["./_base/declare", "./_base/lang", "./_base/array", "./when"], function(declare, lang, array, when){
// module:
// dojo/Stateful
return declare("dojo.Stateful", null, {
// summary:
// Base class for objects that provide named properties with optional getter/setter
// control and the ability to watch fo... |
import { UrlService } from './../../services/url.service';
import { Observable } from 'rxjs/Observable';
import {
AfterViewChecked,
Component,
ElementRef,
HostListener,
OnInit,
OnDestroy,
Renderer2,
ViewEncapsulation,
ViewChild
} from '@angular/core';
import { ActivatedRoute, Router, NavigationStart }... |
from .number import Number
__all__ = [
'Number',
]
|
class WANCommonInterfaceConfigClient:
def __init__(self, service):
self.service = service
self.namespace = service.get_type()
self.url = service.get_control_url()
self.service.subscribe()
self.service.client = self
def remove(self):
if self.service != None:
... |
(function( $ ){
$.fn.noUiSlider = function( method, options ) {
var settings = {
'bar' : true, // Should the bar be used? Set to 'false' or LEGACY 'off'
'dontActivate' : '', // Set to Upper or lower.
'scale' : '', // NEW. Use like [0,50] or omit.
'startMin' : '25',
'sta... |
#include "acm_codec_database.h"
#include "acm_common_defs.h"
#include "acm_g722.h"
#include "acm_neteq.h"
#include "trace.h"
#include "webrtc_neteq.h"
#include "webrtc_neteq_help_macros.h"
#include "g722_interface.h"
namespace webrtc
{
#ifndef WEBRTC_CODEC_G722
ACMG722::ACMG722(
WebRtc_Word16 /* codecID */)
{
... |
<?php
/**
* Bootstrapping File for phpseclib
*
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
if (extension_loaded('mbstring')) {
// 2 - MB_OVERLOAD_STRING
if (ini_get('mbstring.func_overload') & 2) {
throw new \UnexpectedValueException(
'Overloading of st... |
<!DOCTYPE html>
<html lang="en">
<head>
<title>Samuka SMk Example of Bootstrap with Jumbotron Template + bootswatch.com colors + Bootsnipp.com logout dropdown</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Samuka... |
///////////////////////////////////////////////////////////////////////////////
/// \file when.hpp
/// Definition of when transform.
//
// Copyright 2008 Eric Niebler. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE... |
namespace ledger { namespace core { namespace api {
std::string to_string(const OperationType& operationType) {
switch (operationType) {
case OperationType::SEND: return "SEND";
case OperationType::RECEIVE: return "RECEIVE";
case OperationType::DELEGATE: return "DELEGATE";
case Oper... |
<?php
// auto-generated by sfGeneratorConfigHandler
// date: 2014/09/29 21:50:08
require_once(sfConfig::get('sf_module_cache_dir').'/autoJob/actions/actions.class.php');
|
// Type definitions for Loopback 3.1
// Project: https://github.com/strongloop/loopback
// Definitions by: Andres D Jimenez <https://github.com/kattsushi/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
/************************************************
* ... |
% lfe_lib(3)
% Robert Virding
% 2008-2016
# NAME
lfe_lib - Lisp Flavoured Erlang (LFE) library module
# SYNOPSIS
This module contains a collection of library functions for
implementing LFE. They are generally not called by the user.
# EXPORTS
**new_env() -> Env.**
Create a new environment for the evaluator.
... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Cake.Common.Tools.DotNet.BuildServer;
using Cake.Common.Tools.DotNetCore.BuildServer;
namespace Cake.Common.... |
namespace rde
{
namespace internal
{
#pragma warning(push)
// structure was padded due to __declspec(align())
#pragma warning(disable: 4324)
template<typename T>
struct alignof_helper
{
char x;
T y;
};
#ifdef _MSC_VER
__declspec(align(16)) struct aligned16 { uint64 member[2]; };
#else
struct __attribute__... |
namespace content {
SaveFileCreateInfo::SaveFileCreateInfo(const base::FilePath& path,
const GURL& url,
SaveItemId save_item_id,
SavePackageId save_package_id,
int... |
<?php
namespace Joselfonseca\LaravelAdmin\Contracts;
use Prettus\Repository\Contracts\RepositoryInterface;
/**
* Interface UserRepositoryContract
* @package Joselfonseca\LaravelAdmin\Contracts
*/
interface UserRepositoryContract extends RepositoryInterface
{
}
|
_Showing 14 releases._
## Release 0.3.3
* Revert sessions to cookieSessions (_Sebastian Gierlinger_)
* Version bump to 0.3.3 (_Hannah Wolfe_)
* Improved error handling (_Hannah Wolfe_)
* Fixing URL-based image uploads on settings screen (_Hannah Wolfe_)
* Current user data update (_Hannah Wolfe_)
* Fixes for content... |
namespace syncer {
namespace {
class UniquePositionTest : public ::testing::Test {
protected:
// Accessor to fetch the length of the position's internal representation
// We try to avoid having any test expectations on it because this is an
// implementation detail.
//
// If you run the tests with --v=1, w... |
<?xml version="1.0" encoding="UTF-8"?>
<spirit:component xmlns:xilinx="http://www.xilinx.com" xmlns:spirit="http://www.spiritconsortium.org/XMLSchema/SPIRIT/1685-2009" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<spirit:vendor>xilinx.com</spirit:vendor>
<spirit:library>customized_ip</spirit:library>
<s... |
export class Customer {
constructor(public firstName = '',
public lastName = '',
public email = '',
public sendCatalog = false,
public addressType = 'home',
public street1?: string,
public street2?: string,
public city?: string,
public state = '',
... |
<?php
namespace JMS\Serializer\Annotation;
/**
* This annotation can be declared on methods which should be called
* before the Serialization process.
*
* These methods do not need to be public, and should do any clean-up, or
* preparation of the object that is necessary.
*
* @Annotation
* @Target("METHOD")... |
(function() {
var Rivets, bindMethod, unbindMethod, _ref,
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; },
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
__slice = [].... |
using Hl7.Fhir.Model;
using Microsoft.Practices.Unity;
using Spark.Controllers;
using Spark.Core;
using Spark.Engine.Core;
using Spark.Models;
using Spark.Mongo.Search.Common;
using Spark.Service;
using Spark.Store.Mongo;
using System.Web.Http;
using System.Web.Mvc;
using Microsoft.AspNet.SignalR;
using Spark.Engine.Fh... |
/****************************************************************************
**
** Copyright (c) 2007-2008, Apple, Inc.
**
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions are met:
**
** * Redistri... |
This repository contains utilities around a templating system that I called "Handlebar". They're a logic-less templating language based on [mustache](http://mustache.github.com/) (obviously) which is itself based on [ctemplate](http://code.google.com/p/ctemplate) apparently.
The original and reference implementation i... |
from node import nullid, short
from i18n import _
import util, error
def findcommonincoming(repo, remote, heads=None, force=False):
"""Return a tuple (common, fetch, heads) used to identify the common
subset of nodes between repo and remote.
"common" is a list of (at least) the heads of the common subset.... |
<!doctype html>
<!--
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be... |
#include "tensorflow/core/framework/allocator.h"
#include "tensorflow/core/framework/fake_input.h"
#include "tensorflow/core/framework/node_def_builder.h"
#include "tensorflow/core/framework/op_kernel.h"
#include "tensorflow/core/framework/tensor.h"
#include "tensorflow/core/framework/tensor_testutil.h"
#include "ten... |
TabNavigation::TabNavigation()
: transition_(PageTransition::TYPED),
type_mask_(0),
index_(-1) {
}
TabNavigation::TabNavigation(int index,
const GURL& virtual_url,
const GURL& referrer,
const string16& title,
... |
if defined?(ChefSpec)
ChefSpec.define_matcher :ohai_hint
ChefSpec.define_matcher :ohai_plugin
def create_ohai_hint(resource)
ChefSpec::Matchers::ResourceMatcher.new(:ohai_hint, :create, resource)
end
def delete_ohai_hint(resource)
ChefSpec::Matchers::ResourceMatcher.new(:ohai_hint, :delete, resource... |
package util
import (
"k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/runtime"
)
var metadataAccessor = meta.NewAccessor()
// GetOriginalConfiguration retrieves the original configuration of the object
// from the annotation, or nil if no annotation was found.
func GetOriginalCo... |
@interface ViewController : UIViewController
@end
|
import 'zone.js';
import 'core-js/es7/reflect';
declare var module : any;
global['System'] = {
import(path: string){
return module.dynamicImport(path);
}
}
|
// Copyright (c) 2014 Intel Corporation. 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.xwalk.embedded.api.sample.basic;
import org.xwalk.embedded.api.sample.R;
import org.xwalk.core.XWalkActivity;
import org.xwalk.core.XWalkVi... |
package org.xtreemfs.foundation.buffer;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import java.util.concurrent.atomic.AtomicInteger;
import org.xtreemfs.foundation.logging.Logging;
import org.xtreemfs.foundation.logging.Logging.Category;
/**
*
* @author bjko
*/
public final class ReusableBuff... |
package org.apache.camel.component.spring.ws;
import org.apache.camel.Component;
import org.apache.camel.Consumer;
import org.apache.camel.Processor;
import org.apache.camel.Producer;
import org.apache.camel.impl.DefaultEndpoint;
import org.apache.camel.spi.UriEndpoint;
import org.apache.camel.spi.UriParam;
/**
* T... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Microsoft.CodeAnalysis.VisualBasic;
namespace Microsoft.CodeAnalysis.Rebuild.UnitTests
{
public partial ... |
'use strict';
var path = require('path');
var webpack = require('webpack');
module.exports = {
entry: require('./webpack/entry'),
context: path.join(process.cwd(), 'src'),
output: require('./webpack/output'),
module: require('./webpack/module'),
plugins: require('./webpack/plugins').concat([
new webp... |
/**
* 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
* distribu... |
package nodename
import (
"context"
v1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/kubernetes/pkg/scheduler/framework"
"k8s.io/kubernetes/pkg/scheduler/framework/plugins/names"
)
// NodeName is a plugin that checks if a pod spec node name matches the current node.
type NodeName struct{}
va... |
<?php
namespace YoastSEO_Vendor\Symfony\Component\DependencyInjection\ParameterBag;
use YoastSEO_Vendor\Symfony\Component\DependencyInjection\Exception\LogicException;
/**
* Holds read-only parameters.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class FrozenParameterBag extends \YoastSEO_Vendor\Symfony\... |
/**
* @fileoverview Ensures that the results of typeof are compared against a valid string
* @author Ian Christian Myers
*/
"use strict";
//------------------------------------------------------------------------------
// Rule Definition
//----------------------------------------------------------------------------... |
// See http://www.boost.org/libs/test for the library home page.
//
// File : $RCSfile$
//
// Version : $Revision: 49312 $
//
// Description : Entry point for the end user into the Unit Test Framework.
// ***************************************************************************
#ifndef BOOS... |
<section class="row" data-ng-controller="SettingsController">
<h3 class="col-md-12 text-center">Edit your profile</h3>
<div class="col-xs-offset-2 col-xs-8 col-md-offset-5 col-md-2">
<form name="userForm" data-ng-submit="updateUserProfile(userForm.$valid)" class="signin form-horizontal" autocomplete="off">
... |
describe('JsExtensions', function () {
describe('Date', function () {
describe('addSeconds', function () {
it("should add the specified about of seconds to the time", function () {
expect(new Date("2013 1-1 0:0:0").addSeconds(10)).toBeCloseTo(new Date("2013 1-1 0:0:10"));
expect(new Date("2013 1-1 0:0:10... |
"""
This package contains interfaces and functionality to compute pair-wise document
similarities within a corpus of documents.
"""
from gensim import utils, matutils, interfaces, corpora, models, similarities
import logging
try:
__version__ = __import__('pkg_resources').get_distribution('gensim').version
except:... |
/*import ClassNames from 'classnames';
import Screenfull from 'screenfull';
import React from 'react';
import Video from './components/Video';
import ErrorMsg from './components/ErrorMsg';
export default class ReactVideo extends React.Component {
constructor(props) {
super(props);
this.state = {
error:... |
import os, psycopg2, re, time
import logging
from urlparse import urlparse
logger = logging.getLogger(__name__)
class Postgresql:
def __init__(self, config):
self.name = config["name"]
self.host, self.port = config["listen"].split(":")
self.data_dir = config["data_dir"]
self.rep... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__wchar_t_listen_socket_w32spawnl_83_goodG2B.cpp
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-83_goodG2B.tmpl.cpp
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: listen_... |
package com.facebook.buck.file;
import com.facebook.buck.util.HumanReadableException;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Optional;
import com.google.common.base.Preconditions;
import com.google.common.base.Strings;
import java.net.URI;
import java.net.URISyntaxExce... |
package com.tinkerpop.gremlin.process.computer.lambda;
import com.tinkerpop.gremlin.process.computer.MapReduce;
import com.tinkerpop.gremlin.process.computer.util.AbstractVertexProgramBuilder;
import com.tinkerpop.gremlin.process.computer.util.LambdaHolder;
import com.tinkerpop.gremlin.structure.Vertex;
import com.tin... |
package org.springframework.boot.cli.command.shell;
import org.springframework.boot.cli.command.AbstractCommand;
import org.springframework.boot.cli.command.Command;
import org.springframework.boot.cli.command.status.ExitStatus;
/**
* {@link Command} to start a nested REPL shell.
*
* @author Phillip Webb
* @see... |
<section id="file-type">
<h2 class="page-header">File Type Icons</h2>
<div class="row fontawesome-icon-list">
{% assign icons_file_type = icons | expand_aliases | category:"File Type Icons" | sort_by:'class' %}
{% for icon in icons_file_type %}
<div class="fa-hover col-md-3 col-sm-4"><a href="{{ pag... |
#ifndef Pasteboard_h
#define Pasteboard_h
#include <wtf/Forward.h>
#include <wtf/HashSet.h>
#include <wtf/Noncopyable.h>
#if PLATFORM(MAC)
#include <wtf/RetainPtr.h>
#endif
#if PLATFORM(GTK)
#include <PasteboardHelper.h>
#endif
// FIXME: This class is too high-level to be in the platform directory, since it
// us... |
"use strict";
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var foo = 1;
var foo = 1,
bar = 2;
var foo2 = function foo2() {};
var foo3;
var foo4 = 2;
var foo5 = undefined;
var foo6 = 3;
function foo7() {}
... |
require 'formula'
class Makepp < Formula
desc "Drop-in replacement for GNU make"
homepage 'http://makepp.sourceforge.net/'
url 'https://downloads.sourceforge.net/project/makepp/2.0/makepp-2.0.tgz'
sha1 '23995b1fc17255be6a42e5778f6027441dc44661'
def install
system "./configure", "--prefix=#{prefix}", "--... |
package com.heaven7.java.data.mediator;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* indicate that the field or method should be keep. it will not effect by the intellij plugin of 'data-mediator'... |
"""
Migrate seahub avatar files from file system to MySQL.
Usage: ./avatar_migrate.py /home/user/seahub
Note: seahub database must be MySQL.
"""
import base64
import datetime
import hashlib
import os
import sys
import MySQLdb
if len(sys.argv) != 2:
seahub_root = raw_input("Please enter root path of seahub: ")
e... |
<?php defined('BX_DOL') or die('hack attempt');
define('BX_DOL_STUDIO_TEMPLATE_DEFAULT_CODE', 'protean');
define('BX_PAGE_COLUMN_DUAL', 3); ///< page, with 2 columns
class BxDolStudioTemplate extends BxDolTemplate implements iBxDolSingleton
{
protected function __construct()
{
if (isset($GLOBALS['bxD... |
class Entity;
namespace sol
{
class state;
}
namespace fmc
{
class CTransform;
class CBody;
}
class GameObjectLua
{
public:
GameObjectLua(Entity* inEntity);
fmc::CTransform* GetTransform();
fmc::CBody* GetBody();
const char* GetName();
private:
Entity* _entity;
};
class LuaManager {
public:
Lu... |
' 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.Immutable
Imports Microsoft.CodeAnalysis.CodeGen
Imports Microsoft.CodeAnalysis.Collections
Imports Microsoft.CodeAnalysis.Text
Imp... |
export const foo = "foo";
export const bar = "bar";
|
using System.Windows;
using System.Windows.Input;
namespace LegendaryClient.Controls
{
/// <summary>
/// Class used to manage generic scoping of access keys
/// </summary>
public static class AccessKeyScoper
{
/// <summary>
/// Identifies the IsAccessKeyScope attached depende... |
package session
import (
"net/http"
"golang.org/x/net/context"
)
// Backend abstracts an session receiver from an http request.
type Backend interface {
HandleHTTPRequest(ctx context.Context, w http.ResponseWriter, r *http.Request) error
}
|
using System;
using System.Text;
using System.Diagnostics;
using System.Collections.Generic;
namespace System.Xml
{
internal partial class XmlWellFormedWriter : XmlWriter
{
//
// Private types
//
private class NamespaceResolverProxy : IXmlNamespaceResolver
{
... |
/*global d3:false */
var Zipkin = Zipkin || {};
Zipkin.TraceSummary = (function(Zipkin) {
var redrawHelper = function(chart, d) {
var id = d.getId();
var selected = isSelected(d);
chart.select('#bar-id-' + id).classed('selected', selected);
chart.select('#bar-text-id-' + id).classed('selected', sel... |
/*** Directives and services for responding to idle users in AngularJS
* @author Mike Grabski <me@mikegrabski.com>
* @version v1.3.0
* @link https://github.com/HackedByChinese/ng-idle.git
* @license MIT
*/
(function(window, angular, undefined) {
'use strict';
angular.module('ngIdle', ['ngIdle.keepalive', 'ngIdle.idle',... |
package org.apache.lucene.queryParser.standard.processors;
import java.util.ArrayList;
import java.util.List;
import org.apache.lucene.queryParser.core.QueryNodeException;
import org.apache.lucene.queryParser.core.config.QueryConfigHandler;
import org.apache.lucene.queryParser.core.nodes.AndQueryNode;
import org.ap... |
/**
* @fileoverview A function container containing a list of registers.
*
* @author joseph@cs.utexas.edu (Joe Tessler)
*/
goog.provide('cn.ui.FunctionEditor');
goog.require('cn.constants');
goog.require('cn.ui.ClassComponent');
goog.require('cn.ui.Register');
goog.require('goog.array');
/**
* @param {number}... |
require 'fog/openstack/models/collection'
require 'fog/openstack/planning/models/plan'
module Fog
module OpenStack
class Planning
class Plans < Fog::OpenStack::Collection
model Fog::OpenStack::Planning::Plan
def all(options = {})
load_response(service.list_plans(options))
... |
<?php
namespace Repo2\QueryBuilder\Query;
use Repo2\QueryBuilder\Expression\Reference;
use Repo2\QueryBuilder\ExpressionBag;
use Repo2\QueryBuilder\Mock;
class UpdateQueryTest extends \PHPUnit_Framework_TestCase
{
/**
* @expectedException \Repo2\QueryBuilder\Exception\CompileException
* @expectedExcep... |
<?xml version="1.0" encoding="utf-8" ?>
<!--Created:cb85b80c-f585-40ff-8bfc-12ff4d0e34a9-->
<App xmlns="http://schemas.microsoft.com/sharepoint/2012/app/manifest"
Name="CoreEmbedJavaScript"
ProductID="{5083a58f-ba1b-47d6-84bd-7ee8c5c0583e}"
Version="1.0.0.0"
SharePointMinVersion="16.0.0.0"
>
<Pro... |
'use strict';
var fellow = require('../controllers/fellow.js');
module.exports = function(Fellow, app, auth, database) {
app.route('/users/all')
.get(auth.requiresLogin, fellow.all);
app.route('/fellows')
.get(auth.requiresLogin, fellow.fellows);
}; |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// <auto-generated/>
using System;
using System.Runtime.InteropServices;
using Microsoft.VisualStudio.Shell.Interop;
namespace Microsoft.VisualStudio.Langu... |
<?php
namespace CachetHQ\Tests\Cachet\Functional;
use CachetHQ\Tests\Cachet\AbstractTestCase;
use Illuminate\Contracts\Console\Kernel;
class CommandTest extends AbstractTestCase
{
public function testMigrations()
{
$this->assertSame(0, $this->app->make(Kernel::class)->call('migrate', ['--force' => ... |
<?php
namespace Zend\Mail\Protocol;
use Zend\Validator;
/**
* Provides low-level methods for concrete adapters to communicate with a remote mail server and track requests and responses.
*
* @todo Implement proxy settings
*/
abstract class AbstractProtocol
{
/**
* Mail default EOL string
*/
con... |
export * as foo from "foo.json"
export * as bar from "bar.json" assert { }
export * as baz from "baz.json" assert { /* comment */ }
import * as foo from "foo.json"
import * as bar from "bar.json" assert { }
import * as baz from "baz.json" assert { /* comment */ } |
import * as Graphflo from "graphflo";
import * as Guifast from "guifast_shared";
export namespace ChangeAddNodeMenuVisibility {
const str = "change_add_node_menu_visibility";
export const id = Guifast.makeStrId(Graphflo.String.module, str);
export interface Action extends Guifast.Action {
readonly... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jack's blog</title>
<meta name="description" content="">
<meta name="author" content="jack">
<!-- HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="/theme/html5.js"></script>
<![endif]-->
<!-- Styles -->
<... |
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef STM32WLxx_HAL_FLASH_H
#define STM32WLxx_HAL_FLASH_H
#ifdef __cplusplus
extern "C" {
#endif
/* Includes ------------------------------------------------------------------*/
#include "stm32wlxx_hal_def.h"
/** @addtogroup STM32WL... |
#ifndef _NGX_EVENT_CONNECT_H_INCLUDED_
#define _NGX_EVENT_CONNECT_H_INCLUDED_
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_event.h>
#define NGX_PEER_KEEPALIVE 1
#define NGX_PEER_NEXT 2
#define NGX_PEER_FAILED 4
typedef struct ngx_peer_connection_s ngx_peer... |
/*! formstone v0.8.32 [navigation.css] 2015-12-14 | MIT License | formstone.it */
/**
* @class
* @name .fs-navigation-element
* @type element
* @description Target elmement
*/
/**
* @class
* @name .fs-navigation
* @type element
* @description Base widget class
*/
.fs-navigation {
/**
* @class
... |
'use strict';
var value = require('./valid-value')
, defineProperty = Object.defineProperty
, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor
, getOwnPropertyNames = Object.getOwnPropertyNames
, getOwnPropertySymbols = Object.getOwnPropertySymbols;
module.exports = function (target, source) {
var... |
namespace v8 {
namespace internal {
ExternalReferenceEncoder::ExternalReferenceEncoder(Isolate* isolate) {
#ifdef DEBUG
api_references_ = isolate->api_external_references();
if (api_references_ != nullptr) {
for (uint32_t i = 0; api_references_[i] != 0; ++i) count_.push_back(0);
}
#endif // DEBUG
map_ = i... |
<?php
namespace DTS\eBaySDK\MerchantData\Types\Test;
use DTS\eBaySDK\MerchantData\Types\AttributeArrayType;
class AttributeArrayTypeTest extends \PHPUnit_Framework_TestCase
{
private $obj;
protected function setUp()
{
$this->obj = new AttributeArrayType();
}
public function testCanBeCr... |