text stringlengths 3 1.05M |
|---|
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
// ==++==
//
//
//
// ==--==
//
// File: METHODTABLEBUILDER.H
//
//
//
// ============================================================================
#ifnd... |
#include "postgres.h"
#include "access/genam.h"
#include "access/htup_details.h"
#include "access/table.h"
#include "catalog/indexing.h"
#include "catalog/pg_enum.h"
#include "libpq/pqformat.h"
#include "storage/procarray.h"
#include "utils/array.h"
#include "utils/builtins.h"
#include "utils/fmgroids.h"
#include "ut... |
"Thread-safe in-memory cache backend."
from django.core.cache.backends.simple import CacheClass as SimpleCacheClass
from django.utils.synch import RWLock
import copy, time
class CacheClass(SimpleCacheClass):
def __init__(self, host, params):
SimpleCacheClass.__init__(self, host, params)
self._lock... |
require 'spec_helper'
describe 'apache::mod::disk_cache', type: :class do
context 'on a Debian OS' do
include_examples 'Debian 11'
let(:params) do
{
cache_ignore_headers: 'Set-Cookie',
}
end
context 'with Apache version < 2.4' do
let :pre_condition do
'class{ "apac... |
using Xunit;
namespace System.Threading.Channels.Tests
{
public class ChannelClosedExceptionTests
{
[Fact]
public void Ctors()
{
var e = new ChannelClosedException();
Assert.NotEmpty(e.Message);
Assert.Null(e.InnerException);
e = new Chan... |
package policy
import (
"errors"
"fmt"
"io"
"sort"
"github.com/spf13/cobra"
kapierrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/sets"
kapi "k8s.io/kubernetes/pkg/api"
kcoreclient "k8s.io/kubernetes/pkg/client/clientset_generated/intern... |
(function () {
"use strict";
angular.module("app").controller("labelController", labelController);
function labelController($scope, $http, $mdDialog, contextManagerService) {
$scope.context = null;
$scope.labels = [];
$scope.init = function () {
var id = contextManage... |
using JetBrains.Annotations;
using NodaTime.Annotations;
using NodaTime.Calendars;
using NodaTime.Fields;
using NodaTime.Text;
using NodaTime.Utility;
using System;
using System.ComponentModel;
using System.Globalization;
using System.Runtime.CompilerServices;
using System.Xml;
using System.Xml.Schema;
using System.Xml... |
import * as beam from "../../apache_beam";
import * as external from "../transforms/external";
import { Schema } from "../proto/schema";
import { RowCoder } from "../coders/row_coder";
import { serviceProviderFromJavaGradleTarget } from "../utils/service";
import * as protobufjs from "protobufjs";
import { camelToSna... |
require 'spec_helper_acceptance'
describe 'sort function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
describe 'success' do
it 'sorts arrays' do
pp = <<-EOS
$a = ["the","public","art","galleries"]
# Anagram: Large picture halls, I bet
$o = sort($a)
notice(... |
package componentconfig
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// ClientConnectionConfiguration contains details for constructing a client.
type ClientConnectionConfiguration struct {
// kubeConfigFile is the path to a kubeconfig file.
KubeConfigFile string
// acceptContentTypes defines the Ac... |
const char kAccountId[] = "user@gmail.com";
const char kDifferentAccountId[] = "some_other_user@gmail.com";
const int kGaiaAuthFetcherURLFetcherID = 0;
// TODO(treib): This class should really live in components/signin/ next to the
// AccountServiceFlagFetcher, but it uses the FakePO2TS which lives in
// chrome/brows... |
using EcsRx.Components;
namespace EcsRx.Examples.ExampleApps.Performance.Components
{
public class SimpleReadComponent : IComponent
{
public float StartingValue { get; set; } = 100.0f;
}
} |
package org.sakaiproject.profile2.tool.pages;
import lombok.extern.slf4j.Slf4j;
import org.apache.wicket.AttributeModifier;
import org.apache.wicket.Component;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.form.AjaxFormChoiceComponentUpdatingBehavior;
import org.apache.wicket.ajax.fo... |
package com.finder.reorgnaize_method.extract_method;
/**
*
* @author Finderhu
* @version $Id: Order.java, V 0.1 2016-11-16 9:54 Finderhu Exp $
*/
public class Order {
private int amount;
public Order(int amount) {
this.amount = amount;
}
public Order() {
}
/**
* Getter meth... |
// Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1beta1
import (
policyv1beta1 "k8s.io/api/policy/v1beta1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
internal "k8s.io/client-go/applyconfigurati... |
(function(root) {
var dust = {},
NONE = 'NONE',
ERROR = 'ERROR',
WARN = 'WARN',
INFO = 'INFO',
DEBUG = 'DEBUG',
loggingLevels = [DEBUG, INFO, WARN, ERROR, NONE],
EMPTY_FUNC = function() {},
logger = EMPTY_FUNC,
loggerContext = this;
dust.debugLevel = NONE;
d... |
<?php
namespace lithium\net\socket;
/**
* A socket adapter that uses PHP stream contexts.
*/
class Context extends \lithium\net\Socket {
/**
* Connection timeout value.
*
* @var integer
*/
protected $_timeout = 30;
/**
* Content of the stream
*
* @var string
*/
protected $_content = null;
/... |
// Copyright (c) Govert van Drimmelen. All rights reserved.
// Excel-DNA is licensed under the zlib license. See LICENSE.txt for details.
using System;
using System.Diagnostics;
using ExcelDna.Integration.Rtd;
namespace ExcelDna.Integration
{
// NOTE: The types and methods in this file are called via reflectio... |
public class ATest extends LightCodeInsightFixtureTestCase {
public void testTestNameAsParameter() throws Exception {
doTest(getTestName(false));
}
private void doTest(String testName) throws Exception {
configureByFile("before" + testName);
}
private void configureByFile(@com.intellij.testFramewor... |
{
"Bold": "Lodia",
"Italic": "Etzana",
"Underline": "Azpimarratua",
"Strikethrough": "Marratua",
"Subscript": "Azpindizea",
"Superscript": "Goi-indizea",
"Justify Left": "Ezkerretara lerrokatu",
"Justify Center": "Zentratu",
"Justify Right": "Eskuinetara lerrokatu",
"Justify Full": "Justifikatu",
... |
"""
5. Many-to-many relationships
To define a many-to-many relationship, use ManyToManyField().
In this example, an article can be published in multiple publications,
and a publication has multiple articles.
"""
from django.db import models
class Publication(models.Model):
title = models.CharField(maxlength=30)... |
package org.kaazing.gateway.server.test;
import org.hamcrest.BaseMatcher;
import org.hamcrest.Description;
final class VariableMatcher<T> extends BaseMatcher<T> {
private final String variableName;
private final Expectations exp;
private final Class<T> clazz;
public VariableMatcher(String variableN... |
import {Circle} from "../../../../types";
export default function(circle1: Circle, circle2: Circle) {
const xDistance = Math.abs(circle2.x - circle1.x);
const YDistance = Math.abs(circle2.y - circle1.y);
const distance = Math.sqrt((xDistance * xDistance) + (YDistance * YDistance));
return distance < (circle1.... |
<?php defined('SYSPATH') or die('No direct access allowed.');
class Feed {
/**
* Parses a remote feed into an array.
*
* @param string remote feed URL
* @param integer item limit to fetch
* @return array
*/
public static function parse($feed, $limit = 0)
{
// Check if SimpleXML is installed
... |
// Copyright 2014 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.
/**
* @fileoverview Holds information about a braille table.
*/
goog.provide('cvox.BrailleTable');
/**
* @typedef {{
* locale:string,
* dots:s... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of a... |
#ifndef mitkDICOMGDCMTagCache_h
#define mitkDICOMGDCMTagCache_h
#include "mitkDICOMTagCache.h"
#include <set>
#include <memory>
#include <gdcmScanner.h>
namespace mitk
{
/**
\ingroup DICOMModule
\brief Tag cache implementation used by the DICOMGDCMTagScanner.
*/
class MITKDICOM_EXPORT DICOMGDCMTagC... |
package set
import (
"errors"
"fmt"
"regexp"
"sort"
"strings"
"github.com/spf13/cobra"
"k8s.io/api/core/v1"
meta "k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/types"
utilerrors "k8s.io/apimachinery/pkg/util/errors"
"k8s.io/cli-runtime/pkg/genericclioption... |
package org.apache.camel.xml.jaxb;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import org.apache.camel.model.Constants;
import org.apache.camel.spi.ModelJAXBContextFactory;
import org.apache.camel.spi.annotations.JdkService;
/**
* Default implementation of {@link org.apache.camel.spi.Mo... |
package com.vaadin.tests.application;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.logging.Handler;
import java.util.logging.LogRecord;
import java.util.logging.Logger;
import com.vaadin.server.VaadinRequest;
import com.vaadin.server.VaadinService;
import com.vaad... |
set(Plugin-ActivationPolicy "eager")
set(Plugin-Name "pluginSL1")
set(Plugin-Version "1.0.0")
set(Plugin-Description "Test plugin for framework, pluginSL1_test")
set(Plugin-Vendor "CommonTK")
set(Plugin-ContactAddress "http://www.commontk.org")
set(Plugin-Category "test")
|
"""Deployment descriptor for the Viewfinder web server.
"""
__author__ = 'spencer@emailscrubbed.com (Spencer Kimball)'
# List server specifications. Each specification details:
servers = [
{ "type": "www",
"path": "backend/viewfinder/viewfinder.py",
"processes": [["--port=80"], ],
"num_processes": 0,
... |
<?php
error_reporting(E_STRICT | E_ALL);
// You can set the include path to src directory or reference
// DfpUser.php directly via require_once.
// $path = '/path/to/dfp_api_php_lib/src';
$path = dirname(__FILE__) . '/../../../../src';
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
require_once 'Goog... |
<?php
namespace Sensio\Bundle\GeneratorBundle\Tests\Command;
use Symfony\Component\Console\Tester\CommandTester;
use Sensio\Bundle\GeneratorBundle\Command\GenerateDoctrineCrudCommand;
class GenerateDoctrineCrudCommandTest extends GenerateCommandTest
{
/**
* @dataProvider getInteractiveCommandData
*/
... |
package com.akexorcist.localizationapp.viewpager;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.akexorcist.localizationapp.R;
/**
* Created by Akexo... |
require('../../modules/es7.reflect.get-own-metadata');
module.exports = require('../../modules/_core').Reflect.getOwnMetadata;
|
using Microsoft.Practices.Unity;
using Microsoft.Practices.Unity.ObjectBuilder;
namespace Prism.Unity.Extensions
{
public class DependencyServiceExtension : UnityContainerExtension
{
protected override void Initialize()
{
Context.Strategies.Add(new DependencyServiceStrategy(Contain... |
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2012 The Android Open Source Project
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/license... |
var app = angular.module("app", ['ngMaterial']);
(function() {
'use strict';
angular
.module('app')
.controller('dashboardController', dashboardController);
dashboardController.$inject = [];
function dashboardController() {
var vm = this;
// implementation goes here.
... |
<?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... |
using System;
using System.Xml.Serialization;
namespace Aop.Api.Domain
{
/// <summary>
/// KbOrderActivityModel Data Structure.
/// </summary>
[Serializable]
public class KbOrderActivityModel : AopObject
{
/// <summary>
/// 活动ID
/// </summary>
[XmlElement("activi... |
// Copyright 2009 The Go 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 rpc provides access to the exported methods of an object across a
network or other I/O connection. A server registers an object, making it visible... |
Computes the specular power from the Beckmann distribution
# Example
```glsl
#pragma glslify: beckmann = require(glsl-specular-beckmann)
uniform vec3 eyePosition;
uniform vec3 lightPosition;
uniform float roughness;
varying vec3 surfacePosition;
varying vec3 surfaceNormal;
void main() {
vec3 eyeDirection = norm... |
/***************************************************************************/
/* */
/* cidriver.c */
/* */
/* CI... |
CREATE TABLE users
(
"user" character varying(30),
email character varying(80),
pass character varying(128),
id character varying(60),
ts timestamp default current_timestamp
)
WITH (
OIDS=FALSE
);
ALTER TABLE users
OWNER TO postgres;
GRANT ALL ON TABLE users TO postgres;
GRANT ALL ON TABLE users TO joe;
|
/* */
'use strict';
var anObject = require('./$.an-object');
module.exports = function() {
var that = anObject(this),
result = '';
if (that.global)
result += 'g';
if (that.ignoreCase)
result += 'i';
if (that.multiline)
result += 'm';
if (that.unicode)
result += 'u';
if (that.sticky)
... |
class Vote < ActiveRecord::Base
belongs_to :question, counter_cache: true
belongs_to :answer, counter_cache: true
belongs_to :user
belongs_to :votable, polymorphic: true, counter_cache: true
end |
package org.connectbot.service;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
import android.content.res.AssetFileDescriptor;
import android.content.res.Configuration;
import android.... |
define(function () {
var plugin = {
settings: {
name: "sendmessage",
type: "user",
menuURL: "#message",
lang: {
component: "core"
}
},
routes: [
["message/:courseId/:userId", "message", "sendMessage"]
... |
declare module ngCordova {
export interface IDialogsPromptResult {
input1: string;
buttonIndex: number;
}
export interface IDialogsService {
alert(message: string, title?: string, buttonName?: string): ng.IPromise<void>;
confirm(message: string, title?: string, buttonArray?: ... |
function checkErrorCode(error) {
if (error.code == error.PERMISSION_DENIED)
chrome.test.succeed();
else
chrome.test.fail();
};
chrome.test.runTests([
function geolocation_getCurrentPosition() {
navigator.geolocation.getCurrentPosition(chrome.test.fail,
che... |
package org.apache.camel.impl.cluster;
import java.time.Duration;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurre... |
<?php
namespace Symfony\Component\Templating\Loader;
use Symfony\Component\Templating\Storage\Storage;
use Symfony\Component\Templating\Storage\FileStorage;
use Symfony\Component\Templating\TemplateReferenceInterface;
/**
* CacheLoader is a loader that caches other loaders responses
* on the filesystem.
*
* Th... |
'use strict'
var uuid = require('node-uuid')
, CombinedStream = require('combined-stream')
, isstream = require('isstream')
function Multipart(request) {
this.request = request
this.boundary = uuid()
this.chunked = false
this.body = null
}
Multipart.prototype.isChunked = function (options) {... |
package com.alibaba.rocketmq.remoting.common;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
public final class CloudUtil {
private static final Logger LOG = LoggerFactory.getLogge... |
import React from 'react';
import PropTypes from 'prop-types';
import Radio from './Radio';
import styles from './Radio.demo.less';
const Container = ({ children }) => (
<div className={styles.root}>{children}</div>
);
Container.propTypes = {
children: PropTypes.node.isRequired
};
const noop = () => {};
export c... |
// A set of common functions needed by cmd/kubectl and pkg/kubectl packages.
package kubectl
import (
"errors"
"fmt"
"path"
"strings"
"k8s.io/apimachinery/pkg/runtime/schema"
)
const (
kubectlAnnotationPrefix = "kubectl.kubernetes.io/"
)
type NamespaceInfo struct {
Namespace string
}
// ResourceShortcuts ... |
package mockit.coverage.reporting;
import java.io.*;
import java.util.*;
import javax.annotation.*;
final class SourceFiles
{
@Nonnull private final List<File> srcDirs = new ArrayList<File>();
@Nonnull
List<File> buildListOfSourceDirectories(@Nonnull String[] sourceDirs)
{
if (sourceDirs.length > ... |
<div class="card" ng-if="description">
<div class="item item-text-wrap item-body">
<mm-format-text class="mm-content-with-float" shorten fullview-on-click="true">{{ description }}</mm-format-text>
<p ng-if="note"><span class="item-note">{{ note }}</span></p>
</div>
</div> |
package com.vitreoussoftware.bioinformatics.sequence.io.reader.fasta;
import com.vitreoussoftware.bioinformatics.sequence.SequenceFactory;
import com.vitreoussoftware.bioinformatics.sequence.fasta.FastaSequenceFactory;
import com.vitreoussoftware.bioinformatics.sequence.io.FastaData;
import com.vitreoussoftware.bioinf... |
package session
import (
"context"
"time"
"github.com/pkg/errors"
)
type Group interface {
SessionIterator() Iterator
}
type Iterator interface {
NextSession() string
}
func NewGroup(ids ...string) Group {
return &group{ids: ids}
}
type group struct {
ids []string
}
func (g *group) SessionIterator() Iterat... |
#ifndef RenderMarquee_h
#define RenderMarquee_h
#include "Length.h"
#include "RenderStyleConstants.h"
#include "Timer.h"
namespace WebCore {
class RenderLayer;
// This class handles the auto-scrolling of layers with overflow: marquee.
class RenderMarquee {
WTF_MAKE_NONCOPYABLE(RenderMarquee); WTF_MAKE_FAST_AL... |
/**
* angular-strap
* @version v2.3.0 - 2015-07-12
* @link http://mgcrea.github.io/angular-strap
* @author Olivier Louvignes <olivier@mg-crea.com> (https://github.com/mgcrea)
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
'use strict';
angular.module('mgcrea.ngStrap.datepicker', [ 'mgcrea.ngSt... |
/** Used as references for various `Number` constants. */
var MAX_SAFE_INTEGER = 9007199254740991;
/** Used to detect unsigned integer values. */
var reIsUint = /^(?:0|[1-9]\d*)$/;
/**
* Checks if `value` is a valid array-like index.
*
* @private
* @param {*} value The value to check.
* @param {number} [length=M... |
namespace System.IdentityModel.Selectors
{
using System;
using System.Runtime.InteropServices;
using System.Threading;
using IDT = Microsoft.InfoCards.Diagnostics.InfoCardTrace;
//
// For common & resources
//
using Microsoft.InfoCards;
//
// Summary:
// Wraps an Asymmetri... |
#include "cache.h"
#include "pack.h"
#include "pack-revindex.h"
struct idx_entry {
off_t offset;
const unsigned char *sha1;
unsigned int nr;
};
static int compare_entries(const void *e1, const void *e2)
{
const struct idx_entry *entry1 = e1;
const struct idx_entry *entry2 = e2;
if (entry1->offset... |
// 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 Microsoft.CodeAnalysis.Completion
{
/// <summary>
/// The kind of character set modification.
/// </summary>
public enum CharacterS... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_55) on Wed Sep 24 06:08:38 EDT 2014 -->
<meta http-equiv="Content-Type" content="text/html" charset="utf-8">
<title>Uses of Class org.a... |
title: Telerik.Web.UI.SchedulerAppointmentInsertingEventArgs
page_title: Client-side API Reference
description: Client-side API Reference
slug: Telerik.Web.UI.SchedulerAppointmentInsertingEventArgs
---
# Telerik.Web.UI.SchedulerAppointmentInsertingEventArgs : Sys.CancelEventArgs
## Inheritance Hierarchy
* Sys.Cancel... |
py.test 2.0.1: bug fixes
===========================================================================
Welcome to pytest-2.0.1, a maintenance and bug fix release of pytest,
a mature testing tool for Python, supporting CPython 2.4-3.2, Jython
and latest PyPy interpreters. See extensive docs with tested examples here:
... |
package org.wso2.carbon.apimgt.impl.dto;
import java.io.Serializable;
public class TierPermissionDTO implements Serializable {
private String tierName;
private String permissionType;
private String[] roles;
public String getTierName() {
return tierName;
}
public void setTierName(String tierName) {
thi... |
// +build !ignore_autogenerated
// This file was autogenerated by deepcopy-gen. Do not edit it manually!
package v1alpha1
import (
conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime"
v1 "k8s.io/kubernetes/pkg/api/v1"
reflect "reflect"
)
func init() {
SchemeBuilder.Regist... |
<?php
namespace Magento\CatalogImportExport\Test\Unit\Model\Export;
class StubProduct extends \Magento\CatalogImportExport\Model\Export\Product
{
/**
* Disable parent constructor
*/
public function __construct()
{
}
/**
* Update data row with information about categories. Return tr... |
package org.slc.sli.api.security.context.validator;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.util.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito... |
package fs
import (
"github.com/pkg/errors"
"github.com/containerd/continuity/sysx"
)
// copyXAttrs requires xeh to be non-nil
func copyXAttrs(dst, src string, xeh XAttrErrorHandler) error {
xattrKeys, err := sysx.LListxattr(src)
if err != nil {
return xeh(dst, src, "", errors.Wrapf(err, "failed to list xattrs... |
/*! p5.js v0.3.5 August 28, 2014 */
var shim = function (require) {
window.requestDraw = function () {
return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function (callback, element)... |
package logic
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unles... |
package fake
import (
v1beta1 "k8s.io/kubernetes/federation/client/clientset_generated/federation_release_1_3/typed/federation/v1beta1"
restclient "k8s.io/kubernetes/pkg/client/restclient"
core "k8s.io/kubernetes/pkg/client/testing/core"
)
type FakeFederation struct {
*core.Fake
}
func (c *FakeFederation) Clus... |
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Docs For Class ZendSearchLuceneForm</title>
<link rel="stylesheet" href="../me... |
@protocol CCLCalendarViewDelegate <NSObject>
- (void)tableView:(NSTableView *)tableView didSelectCellViewAtRow:(NSInteger)row column:(NSInteger)column;
@end
|
'use strict';
angular.module('myApp')
.directive('appplicationInformationReview', function() {
return {
templateUrl: 'main/templates/applicant-information-review.html'
};
});
|
@interface WCSettingViewController : UITableViewController
@property (weak, nonatomic) IBOutlet UISwitch *switchLiar;
@property (weak, nonatomic) IBOutlet UISwitch *switchLocation;
@property (weak, nonatomic) IBOutlet UISwitch *switchContact;
- (IBAction)onSettingValueChanged:(UISwitch *)sender;
@end
|
(function ($) {
var apiParams = {
colors: 1,
values: 1,
backgroundColor: 1,
scaleColors: 1,
normalizeFunction: 1,
enableZoom: 1,
showTooltip: 1,
borderColor: 1,
borderWidth: 1,
borderOpacity: 1,
selectedRegions: ... |
"""
This module houses ctypes interfaces for GDAL objects. The following GDAL
objects are supported:
CoordTransform: Used for coordinate transformations from one spatial
reference system to another.
Driver: Wraps an OGR data source driver.
DataSource: Wrapper for the OGR data source object, supports
OGR-su... |
from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase
import vtk
class vtkImageToStructuredPoints(SimpleVTKClassModuleBase):
def __init__(self, module_manager):
SimpleVTKClassModuleBase.__init__(
self, module_manager,
vtk.vtkImageToStructuredPoints(), 'Processing.',
... |
<div class="commune_descr limited">
<p>
Gourdon est
un village
situé dans le département de Saône-et-Loire en Bourgogne. Elle comptait 879 habitants en 2008.</p>
<p>À coté de Gourdon sont localisées les villes de
<a href="{{VLROOT}}/immobilier/mont-saint-vincent_71320/">Mont-Saint-Vincent</a> localisée ... |
using Serilog.Events;
namespace Serilog.Core
{
/// <summary>
/// Supports the policy-driven construction of <see cref="LogEventPropertyValue"/>s given
/// regular .NET objects.
/// </summary>
public interface ILogEventPropertyValueFactory
{
/// <summary>
/// Create a <see cref=... |
define(["sugar-web/env"], function (env) {
'use strict';
var bus = {};
function WebSocketClient(environment) {
}
WebSocketClient.prototype.send = function (data) {
};
WebSocketClient.prototype.close = function () {
};
function InputStream() {
}
InputStream.prototype.op... |
package org.auraframework.system;
import java.util.Set;
import org.auraframework.def.DefDescriptor;
import org.auraframework.def.Definition;
import org.auraframework.def.DescriptorFilter;
import org.auraframework.throwable.quickfix.QuickFixException;
/**
* A factory that produces Definitions of a particular type. ... |
'use strict';
var callable = require('es5-ext/object/valid-callable')
, clear = require('es5-ext/object/clear')
, setPrototypeOf = require('es5-ext/object/set-prototype-of')
, d = require('d')
, iterator = require('es6-iterator/valid-iterable')
, forOf = require('es... |
// 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.
#nullable enable
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.... |
function [data flags paramsLog] = CTDSurfaceSoakQC( sample_data, data, k, type, auto )
%IMOSINOUTWATERQC Flags samples which were taken before and after the instrument was placed
% in the water.
%
% Flags all samples from the data depending on surface Soak parameters
%
% Inputs:
% sample_data - struct containing the ... |
proto_msg* protoCreateAdmin(ADMIN * admin_msg){
proto_msg * proto_message = createProtoMSG(DONT_ALLOC_MSG);
proto_message->msg_size = admin__get_packed_size(admin_msg);
proto_message->msg = malloc(proto_message->msg_size);
admin__pack(admin_msg, (uint8_t *) proto_message->msg);
return proto_message;
}
|
require 'test_helper'
class NewsControllerTest < ActionController::TestCase
setup do
@news = news(:one)
@update = {
title: 'First',
sub_title: 'Second',
body: 'Text',
image_url: 'Lorem.jpg'
}
end
test "should get index" do
get :index
assert_response :succe... |
(function Assembly(){
"use strict";
Assembly.Manifest = {
ID: "common",
Version: "1.0.0.0",
References: [],
Resources: [] //Stylesheets, images, ...
};
var ns = window.cjw = (window.cjw || {});
//register with assembly manager
if((ns.Application) && (ns.Application.Loader.Register(Assembly) == false))
{... |
package org.curiouslearning.updaterapp;
/**
* Created by David on 7/21/2015 for Curious Learning.
* curiouslearning.org
*/
import java.util.ArrayList;
public class DeleteFileAsRoot extends ExecuteAsRootBase {
public String fileToDelete = "";
@Override
protected ArrayList<String> getCom... |
package com.thoughtworks.go.config;
import org.junit.Test;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.*;
public class AdminUserTest {
@Test
public void shouldNotValidateBlankUsers() {
AdminUser adminUser = new AdminUser(null);
adminUser.validate(null);
a... |
using System;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using Azure;
using Azure.Core;
using Azure.Core.Pipeline;
using Azure.ResourceManager.Peering.Models;
namespace Azure.ResourceManager.Peering
{
internal partial class PeeringLocationsRestOperations
{
private rea... |
using Sunlighter.OptionLib;
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Sunlighter.AsyncQueueLib
{
public class ParallelWorker
{
private readonly object syncRoo... |