text stringlengths 3 1.05M |
|---|
using System;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using Orleans;
using Orleans.Runtime;
using UnitTests.TestHelper;
using Xunit;
using Xunit.Abstractions;
namespace UnitTests.AsyncPrimitivesTests
{
public class AsyncPipelineTests
{
private readonly ITestOutp... |
package com.zegoggles.smssync.mail;
import android.provider.CallLog;
import com.fsck.k9.mail.Message;
import com.fsck.k9.mail.internet.MimeMessage;
import com.zegoggles.smssync.MmsConsts;
import com.zegoggles.smssync.SmsConsts;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org... |
package libtrust
import (
"bytes"
"crypto"
"crypto/x509"
"encoding/base64"
"encoding/json"
"errors"
"fmt"
"time"
"unicode"
)
var (
// ErrInvalidSignContent is used when the content to be signed is invalid.
ErrInvalidSignContent = errors.New("invalid sign content")
// ErrInvalidJSONContent is used when in... |
package monitors
import (
"strconv"
"github.com/rackspace/gophercloud"
)
const (
path = "loadbalancers"
monitorPath = "healthmonitor"
)
func rootURL(c *gophercloud.ServiceClient, lbID int) string {
return c.ServiceURL(path, strconv.Itoa(lbID), monitorPath)
}
|
package com.siyeh.ig.junit;
import com.intellij.codeInsight.AnnotationUtil;
import com.intellij.codeInspection.ProblemDescriptor;
import com.intellij.openapi.application.WriteAction;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.psi.*;
import com.in... |
fc.applyAll = applyAll;
/* Event Date Math
-----------------------------------------------------------------------------*/
function exclEndDay(event) {
if (event.end) {
return _exclEndDay(event.end, event.allDay);
}else{
return addDays(cloneDate(event.start), 1);
}
}
function _exclEndDay(end, allDay) {
e... |
<?php
namespace ZendTest\Navigation\Page;
use PHPUnit_Framework_TestCase as TestCase;
use Zend\Mvc\Router\RouteMatch;
use Zend\Mvc\Router\Http\Regex as RegexRoute;
use Zend\Mvc\Router\Http\Literal as LiteralRoute;
use Zend\Mvc\Router\Http\TreeRouteStack;
use Zend\Mvc\ModuleRouteListener;
use Zend\Mvc\MvcE... |
#include "talk/xmpp/xmpptask.h"
#include "talk/xmpp/xmppclient.h"
#include "talk/xmpp/xmppengine.h"
#include "talk/xmpp/constants.h"
#include "talk/xmpp/ratelimitmanager.h"
namespace buzz {
RateLimitManager task_rate_manager;
XmppTask::XmppTask(TaskParent* parent, XmppEngine::HandlerLevel level)
: Task(parent)... |
package org.apache.beam.sdk.io.rabbitmq;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import com.rabbitmq.client.AMQP;
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.Connection;
import com.rabbitmq.client.ConnectionFactor... |
/*
* 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
* distribut... |
class MissingPluginReporter {
public:
// This must be sync'd with histogram values.
enum PluginType {
WINDOWS_MEDIA_PLAYER = 0,
SILVERLIGHT = 1,
REALPLAYER = 2,
JAVA = 3,
QUICKTIME = 4,
OTHER = 5
};
// Sends UMA data, i.e. plugin's type.
class UMASender {
public:
virtual ~UMAS... |
/**
* Gets state from History.
* But IE11 throws if there is no state.
*
* @param {!History} history
* @return {*}
*/
export function getState(history) {
try {
return history.state;
} catch (e) {
return null;
}
}
|
package VMOMI::VirtualMachineMemoryAllocationPolicy;
use parent 'VMOMI::SimpleType';
use strict;
use warnings;
1;
|
//=================================================================================================
//=================================================================================================
//*************************************************************************************************
// Includes
//***... |
"use strict";
const conversions = require("webidl-conversions");
const utils = require("./utils.js");
const HTMLElement = require("./HTMLElement.js");
const impl = utils.implSymbol;
function HTMLProgressElement() {
throw new TypeError("Illegal constructor");
}
HTMLProgressElement.prototype = Object.create(HTMLEleme... |
<?php
/**
* Command class is a base class shared among all the command executable with
* Doctrine\OrientDB's SQL synthax.
*
* @package Doctrine\OrientDB
* @subpackage Query
* @author Alessandro Nadalin <alessandro.nadalin@gmail.com>
*/
namespace Doctrine\OrientDB\Query;
use Doctrine\OrientDB\Exceptio... |
# ----------------------------------------------------------------------------------
#
# 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.apache.org... |
package org.jasig.cas.authentication.handler.support;
import org.jasig.cas.TestUtils;
import org.jasig.cas.authentication.handler.AuthenticationException;
import org.jasig.cas.authentication.handler.PlainTextPasswordEncoder;
import org.jasig.cas.authentication.handler.support.SimpleTestUsernamePasswordAuthenticationH... |
<?php
/**
* Toolbox Module's TagManager
*
* @author : İskender TOTOĞLU | Altı ve Bir Bilişim Teknolojileri | http://www.altivebir.com.tr
*/
class Toolbox_Tags extends TagManager {
/**
* Tags declaration
* To be available, each tag must be declared in this static array.
*
* @var array
... |
package edu.sampleu.krad.travelview;
import org.junit.Ignore;
import org.junit.Test;
/**
* @author Kuali Rice Team (rice.collab@kuali.org)
*/
public class MaintenanceAddDeleteFiscalOfficerBkMrkAft extends MaintenanceAddDeleteFiscalOfficerAftBase {
@Override
public String getBookmarkUrl() {
return ... |
// ZAP: 2011/08/30 Support for scanner levels
// ZAP: 2012/01/02 Separate param and attack
// ZAP: 2012/03/03 Added getLevel(boolean incDefault)
// ZAP: 2102/03/15 Changed the type of the parameter "sb" of the method matchBodyPattern to
// StringBuilder.
// ZAP: 2012/04/25 Added @Override annotation to all appr... |
Percent encoding is a generalization of the text escaping method defined for URIs in [RFC 3986](http://tools.ietf.org/html/rfc3986#section-2.1). Unlike C backslash escaping, which requires that every reserved character be explicitly named (eg. 0x0a corresponds to \n), percent encoding can easily accommodate an arbitrar... |
/*globals jQuery, ajaxurl, wpml_st_disable_notices_strings */
function wpml_st_hide_strings_scan_notices(element, callback) {
"use strict";
var buttonNo = wpml_st_disable_notices_strings.no;
var buttonYes = wpml_st_disable_notices_strings.yes;
var dialog = jQuery('<div title="' + wpml_st_disable_notices_strin... |
/* ssl/ssl_task.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-comme... |
package streamanalytics
// 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
/... |
<?php
namespace Predis\Command;
/**
* @link http://redis.io/commands/rpop
* @author Daniele Alessandri <suppakilla@gmail.com>
*/
class ListPopLast extends Command
{
/**
* {@inheritdoc}
*/
public function getId()
{
return 'RPOP';
}
}
|
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of the Sylius package.
(c) Paweł Jędrzejewski
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
-->
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-map... |
<resources>
<!-- ********************** -->
<!-- Material Drawer Dimens -->
<!-- ********************** -->
<!-- General drawer width https://medium.com/sebs-top-tips/material-navigation-drawer-sizing-558aea1ad266 -->
<dimen name="material_drawer_width">320dp</dimen>
<!-- Definition for the Draw... |
Patch submission guidelines [1]_
--------------------------------
Here are some guidelines about how you can contribute to Nikola:
* First, make sure there is an open issue for your change. Perhaps,
if it's a new feature, you probably want to
`discuss it first <http://groups.google.com/group/nikola-discuss>`_
* ... |
package com.google.cloud.container.v1;
import static com.google.cloud.container.v1.ClusterManagerClient.ListUsableSubnetworksPagedResponse;
import com.google.api.core.ApiFunction;
import com.google.api.core.BetaApi;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.Instantiati... |
<dom-module id="x-gchild">
<template>
<!-- styles can be in templates -->
<style>
:host-context(.wide) #target {
border: 10px solid orange;
}
</style>
<div id="target">x-gchild</div>
</template>
</dom-module>
<script>
Polymer({
is: 'x-gchild'
});
</script>
<dom-module id... |
"""Defines input readers for MapReduce."""
__all__ = [
"AbstractDatastoreInputReader",
"ALLOW_CHECKPOINT",
"BadReaderParamsError",
"BlobstoreLineInputReader",
"BlobstoreZipInputReader",
"BlobstoreZipLineInputReader",
"COUNTER_IO_READ_BYTES",
"COUNTER_IO_READ_MSEC",
"DatastoreEntit... |
<!DOCTYPE html>
<!--
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... |
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/classes', __FILE__)
require File.expand_path('../../../fixtures/reflection', __FILE__)
# TODO: rewrite
# The reason why having include() and ruby_version_is is to show the specification explicitly.
# You should use have_p... |
//
// ProjectionAlgorithm.cpp
// CMakeProject_4.0
//
// Created by blasse on 8/26/13.
//
//
#include "ExtendedProjectionAlgorithm.h"
#include <iostream>
extern "C" {
#include "array.h"
#include "image.h"
#include "utilities.h"
}
#include "Filter.h"
#include "HeightMapAnalysis.h"
#include "Interpolation.h"
#inclu... |
<!DOCTYPE html>
<html>
<head>
<title>The page you were looking for doesn't exist (404)</title>
<style type="text/css">
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
div.dialog {
width: 25em;
padding: 0 4em;
margin: 4em auto 0 aut... |
public class TestCompletion {
public static <T, V> ParallelPipeline<T, V> test(T base, V newStage, T upstream) {
return base != null ? new ParallelPipeline<>(base, newStage) : new ParallelPipeline<>(upstream, newStage);
}
private static class ParallelPipeline<T, V> {
public ParallelPipeline(T p0, V p1... |
#import "ZXErrors.h"
#import "ZXGenericMultipleBarcodeReader.h"
#import "ZXReader.h"
#import "ZXResultPoint.h"
int const MIN_DIMENSION_TO_RECUR = 100;
int const MAX_DEPTH = 4;
@interface ZXGenericMultipleBarcodeReader ()
@property (nonatomic, weak) id<ZXReader> delegate;
@end
@implementation ZXGenericMultipleBar... |
namespace content {
namespace {
int WindowFormat(gfx::GpuMemoryBuffer::Format format) {
switch (format) {
case gfx::GpuMemoryBuffer::RGBA_8888:
return WINDOW_FORMAT_RGBA_8888;
case gfx::GpuMemoryBuffer::RGBX_8888:
case gfx::GpuMemoryBuffer::BGRA_8888:
NOTREACHED();
return 0;
}
NOTR... |
import { ModalsComponent } from './modals.component';
import { DynamicModalComponent } from './dynamic-modal/dynamic-modal.component';
export const MODALS_MODULE = [
ModalsComponent,
DynamicModalComponent
]; |
package unversioned
import (
"errors"
"net/http"
"k8s.io/kubernetes/pkg/client/transport"
"k8s.io/kubernetes/pkg/util"
)
// KubeletClient is an interface for all kubelet functionality
type KubeletClient interface {
ConnectionInfoGetter
}
type ConnectionInfoGetter interface {
GetConnectionInfo(host string) (... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http... |
create database datapersistentie;
use datapersistentie;
CREATE USER sqluser IDENTIFIED BY 'sqluserpw';
grant usage on *.* to sqluser@localhost identified by 'sqluserpw';
grant all privileges on datapersistentie.* to sqluser@localhost; |
/**
* @module ol/interaction/KeyboardPan
*/
import EventType from '../events/EventType.js';
import Interaction, {pan} from './Interaction.js';
import KeyCode from '../events/KeyCode.js';
import {noModifierKeys, targetNotEditable} from '../events/condition.js';
import {rotate as rotateCoordinate} from '../coordinate.j... |
package org.apache.tinkerpop.gremlin.structure.io.graphson;
import org.apache.tinkerpop.gremlin.process.remote.traversal.DefaultRemoteTraverser;
import org.apache.tinkerpop.gremlin.process.traversal.Bytecode;
import org.apache.tinkerpop.gremlin.process.traversal.P;
import org.apache.tinkerpop.gremlin.process.traversa... |
import React, { PropTypes } from 'react';
const testComponent = props => (
<div>
{props.label}
</div>
);
testComponent.propTypes = {
label: PropTypes.string.isRequired,
};
testComponent.defaultProps = {
label: 'Hello World',
};
export default testComponent;
|
/*
* Created on Jul 24, 2004
*/
package net.negativetwenty.bookmarker;
import net.negativetwenty.bookmarker.models.*;
import org.apache.tapestry.*;
import org.apache.tapestry.event.*;
import org.objectstyle.cayenne.*;
/**
* Handles interaction with Bookmark views.
*
* @author nirvdrum
*/
... |
#include "unicode/utypes.h"
#if U_PLATFORM_HAS_WIN32_API
# define VC_EXTRALEAN
# define WIN32_LEAN_AND_MEAN
# define NOUSER
# define NOSERVICE
# define NOIME
# define NOMCX
#include <windows.h>
#include <time.h>
#endif
#if U_PLATFORM_IS_LINUX_BASED && U_HAVE_ELF_H
# define U_ELF
#endif
#ifdef U_ELF
#... |
// 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 System;
using System.IO;
using System.Reflection;
using System.Runtime.InteropServices;
using CoreFXTestLibrar... |
package io.netty.example.echo;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelHandlerAdapter;
import io.netty.channel.ChannelHandlerContext;
/**
* Handler implementation for the echo client. It initiates the ping-pong
* traffic between the echo client and server by... |
import { race as staticRace } from '../../observable/race';
declare module '../../Observable' {
namespace Observable {
let race: typeof staticRace;
}
}
|
#pragma once
#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace DatabaseMigrationService
{
namespace Model
{
enum class MessageFormatValue
{
NOT_SET,
json,
json_unformatted
};
namespace MessageFormatValueMapper
{
AWS_DA... |
import sys
from sokoban import Sokoban
'''
Tests search algos
Handles command line and user input
'''
def runSearch(s, filename, option):
''' Runs the search based on filename and option selected '''
b = s.new_board(filename)
print '\nSolving ' + filename + '...'
s.doSearches(b, option)
sok = Sokoba... |
layout: lab
num: lab10
ready: true
desc: "Functions and Visualization"
assigned: 2017-08-27 13:15:00.00-7
due: 2017-08-29 16:45:00.00-7
---
## This lab is optional. If you are interesed in data analytics, it is a good lab for you!
Welcome to lab 10! We'll practice functions and the table method `apply` from [this ebo... |
package org.dcm4che.tools.printscu;
import gnu.getopt.Getopt;
import gnu.getopt.LongOpt;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNo... |
YUI.add('io-nodejs', function(Y) {
/*global Y: false, Buffer: false, clearInterval: false, clearTimeout: false, console: false, exports: false, global: false, module: false, process: false, querystring: false, require: false, setInterval: false, setTimeout: false, __filename: false, __dirname: false */
/**
... |
module Pakyow
class RouteExpansionEval < RouteEval
attr_writer :direct_path
def eval(&block)
@template_eval = RouteTemplateEval.from_scope(self, path: path, group: @group, hooks: @hooks)
@template_eval.direct_path = @direct_path
@template_eval.eval(&@template_block)
@path = @template_e... |
Partitions `data` into `num_partitions` tensors using indices from `partitions`.
For each index tuple `js` of size `partitions.ndim`, the slice `data[js, ...]`
becomes part of `outputs[partitions[js]]`. The slices with `partitions[js] = i`
are placed in `outputs[i]` in lexicographic order of `js`, and the first
dimen... |
<!doctype html>
<title>CSS Container Queries Test: Absolute positioned canvas container crash</title>
<link rel="help" href="https://drafts.csswg.org/css-contain-3/#size-container">
<link rel="help" href="https://crbug.com/1289850">
<p>Pass if there is no crash.</p>
<canvas id="canv" style="display:block;position:absol... |
// Make the `$localize()` global function available to the compiled templates, and the direct calls
// below. This would normally be done inside the application `polyfills.ts` file.
import '@angular/localize/init';
import {computeMsgId} from '@angular/compiler';
import {loadTranslations} from '@angular/localize';
ex... |
int TestWtsApiShutdownSystem(int argc, char* argv[])
{
BOOL bSuccess;
HANDLE hServer;
DWORD ShutdownFlag;
#ifndef _WIN32
if (!GetEnvironmentVariableA("WTSAPI_LIBRARY", NULL, 0))
{
printf("%s: No RDS environment detected, skipping test\n", __FUNCTION__);
return 0;
}
#endif
hServer = WTS_CURRENT_SERVER_HANDL... |
<?php
namespace SebastianBergmann\Diff;
use PHPUnit\Framework\TestCase;
/**
* @covers SebastianBergmann\Diff\Line
*/
class LineTest extends TestCase
{
/**
* @var Line
*/
private $line;
protected function setUp()
{
$this->line = new Line;
}
public function testCanBeCreat... |
<title>添加推荐审核员</title>
<link href="/assets/lib/icheck/icheck.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="pd-20">
<form class="form form-horizontal" id="form-member-add">
<input id="type" value="1" type="hidden">
<div class="row cl">
<label class="form-label col-3"... |
<!--
Copyright (c) Microsoft Corporation. All rights reserved
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link rel="stylesheet" href="/css/scenario1.css">
<script src="/js/scenario1.js"></script>
</head>
<body class="win-type-body">
<div id="scenarioView">... |
YUI.add('model-sync-rest', function (Y, NAME) {
/**
An extension which provides a RESTful XHR sync implementation that can be mixed
into a Model or ModelList subclass.
@module app
@submodule model-sync-rest
@since 3.6.0
**/
var Lang = Y.Lang;
/**
An extension which provides a RESTful XHR sync implementation that ... |
function CBIG_LiGSR_KRR_workflowGSP( data_csv, subject_list, RSFC_file, y_list, ...
covariate_list, FD_file, DVARS_file, outdir, outstem, num_test_folds, num_inner_folds, ...
seed, with_bias, ker_param_file, lambda_set_file, threshold_set_file )
% CBIG_LiGSR_KRR_workflowGSP( data_csv, subject_list, RSFC_file, y... |
namespace DSInternals.DataStore
{
/// <summary>
/// Domain, forest or DC functional level.
/// </summary>
/// <remarks>
/// We do not want to be dependent on System.DirectoryServices.ActiveDirectory, so we implement our own enum.
/// </remarks>
/// <see>https://msdn.microsoft.com/en-us/li... |
#import "CPTTradingRangePlot.h"
#import "CPTColor.h"
#import "CPTExceptions.h"
#import "CPTLegend.h"
#import "CPTLineStyle.h"
#import "CPTMutableNumericData.h"
#import "CPTPlotArea.h"
#import "CPTPlotRange.h"
#import "CPTPlotSpace.h"
#import "CPTPlotSpaceAnnotation.h"
#import "CPTUtilities.h"
#import "CPTXYPlotSpace.h... |
<!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.6.0_27) on Thu Jan 23 20:22:10 EST 2014 -->
<meta http-equiv="Content-Type" content="text/html" charset="utf-8">
<title>Uses of Class... |
module Sns::PublicNoticeFilter
extend ActiveSupport::Concern
included do
model Sys::Notice
end
def show
raise "403" unless @item = @model.and_public.find(params[:id])
render
end
def frame_content
raise "403" unless @item = @model.and_public.find(params[:id])
render file: "frame_conten... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
package org.apache.activemq.usecases;
import javax.jms.Connection;
import javax.jms.Session;
import javax.management.ObjectName;
import java.io.File;
import org.apache.activemq.ActiveMQConnectionFactory;
import org.apache.activemq.broker.BrokerFactory;
import org.apache.activemq.broker.BrokerService;
import org.apac... |
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/javascript">
function onBtClick () {
var msg = document.getElementById("concole_msg").value
document.title = msg
}
</script>
</head>
<form name="console_form">
... |
package com.navercorp.pinpoint.test.junit4;
import java.lang.reflect.Method;
import com.navercorp.pinpoint.profiler.context.module.DefaultApplicationContext;
import org.junit.internal.runners.model.EachTestNotifier;
import org.junit.runner.notification.RunNotifier;
import org.junit.runners.BlockJUnit4ClassRunner;
... |
"""
Support for Homematic devices.
For more details about this component, please refer to the documentation at
https://home-assistant.io/components/homematic/
"""
import os
import time
import logging
from datetime import timedelta
from functools import partial
import voluptuous as vol
import homeassistant.helpers.co... |
<?php
namespace Zend\EventManager;
use Traversable;
/**
* A trait for objects that provide events
*/
trait ProvidesEvents
{
/**
* @var EventManagerInterface
*/
protected $events;
/**
* Set the event manager instance used by this context
*
* @param EventManagerInterface $even... |
package uk.ac.warwick.dcs.SemEval.exceptions;
public class WordRangeMapException extends Exception {
/**
*
*/
private static final long serialVersionUID = -2219029964655714398L;
public WordRangeMapException(String message) {
super(message);
}
}
|
// Catalano Math Library
// The Catalano Framework
//
// Copyright © Diego Catalano, 2015
// diego.catalano at live.com
//
// Copyright © Andrew Kirillov, 2005-2009
// andrew.kirillov@aforgenet.com
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GN... |
"""
KubeVirt API
This is KubeVirt API an add-on for Kubernetes.
OpenAPI spec version: 1.0.0
Contact: kubevirt-dev@googlegroups.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class V1VirtualMachineInstanceM... |
package cli
import (
"github.com/posener/complete"
)
const (
// RunResultHelp is a value that can be returned from Run to signal
// to the CLI to render the help output.
RunResultHelp = -18511
)
// A command is a runnable sub-command of a CLI.
type Command interface {
// Help should return long-form help text t... |
import unittest
from django.contrib.auth.models import Group, AnonymousUser
from django.core.exceptions import PermissionDenied
from django.test import TestCase, RequestFactory
from rest_framework.exceptions import NotFound
from hs_core.hydroshare import resource
from hs_core.hydroshare import users
from hs_core.test... |
<!-- JS Includes -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="<?php echo JS_URL;?>jquery.tools.tooltips.min.js?v=1.0"></script>
<script src="<?php echo JS_URL;?>global.js?v=1.0"></script> |
@interface GrowlMusicVideoWindowView : GrowlNotificationView {
NSImage *icon;
NSString *title;
NSString *text;
NSDictionary *textAttributes;
NSDictionary *titleAttributes;
NSColor *textColor;
NSColor *backgroundColor;
CGLayerRef layer;
NSImage *cache;
BOOL needsDisplay;
}
- (void) set... |
package phases
import (
"fmt"
"github.com/pkg/errors"
"k8s.io/kubernetes/cmd/kubeadm/app/cmd/options"
"k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow"
cmdutil "k8s.io/kubernetes/cmd/kubeadm/app/cmd/util"
kubeadmconstants "k8s.io/kubernetes/cmd/kubeadm/app/constants"
"k8s.io/kubernetes/cmd/kubeadm/app... |
<?php
/**
* Message translations.
*
* This file is automatically generated by 'yii message/extract' command.
* It contains the localizable messages extracted from source code.
* You may modify this file by translating the extracted messages.
*
* Each array element represents the translation (value) of a message ... |
<html>
<head>
<title>Chrome History API Data Artifact</title>
</head>
<body>
<p>This demo demonstrates an issue with Google Chrome versions 8-10 (possibly 11) where if you push a state with data, then do history.back to the initial state, the event.state will contain the pushed states data instead of being null.</p>
... |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/download/bubble/download_bubble_controller.h"
#include "base/files/file_path.h"
#include "base/metrics/histogram_functions.h"
#include "base/notreache... |
module MatzBot::Commands
require 'open-uri'
require 'rexml/document'
GIT_URL = 'http://git.rubini.us/?p=code;a=atom'
hup_proc = lambda {
trap("HUP", "IGNORE")
trap("HUP", hup_proc)
}
trap("HUP", hup_proc)
abrt_proc = lambda {
trap("ABRT", "IGNORE")
trap("ABRT", abrt_proc)
}
trap("A... |
module.exports = function ({data, methods, computed}) {
data.bookshelf = []
data.bookshelf__search_term = ''
methods.bookshelf__get = function (user_id) {
let vm = this
return req({
url: '/bookshelf/' + user_id,
cookies: true,
json: true
})
}
methods.bookshelf__findId = functio... |
<?php
namespace Predis\Replication;
use Predis\NotSupportedException;
use Predis\Command\CommandInterface;
/**
* Defines a strategy for master/reply replication.
*
* @author Daniele Alessandri <suppakilla@gmail.com>
*/
class ReplicationStrategy
{
protected $disallowed;
protected $readonly;
protecte... |
package statsd
import "time"
// A NoopClient is a client that does nothing.
type NoopClient struct{}
// Close closes the connection and cleans up.
func (s *NoopClient) Close() error {
return nil
}
// Inc increments a statsd count type.
// stat is a string name for the metric.
// value is the integer value
// rate ... |
$(document).ready(function() {
function filterPath(string) {
return string
.replace(/^\//,'')
.replace(/(index|default).[a-zA-Z]{3,4}$/,'')
.replace(/\/$/,'');
}
var locationPath = filterPath(location.pathname);
$('a[href*=#]').each(function() {
var t... |
package org.apache.cordova.media;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.media.MediaPlayer.OnCompletionListener;
import android.media.MediaPlayer.OnErrorListener;
import android.media.MediaPlayer.OnPreparedListener;
import android.media.MediaRecorder;
import android.os.Env... |
namespace boost { namespace spirit
{
///////////////////////////////////////////////////////////////////////////
// Enablers
///////////////////////////////////////////////////////////////////////////
template <>
struct use_directive<karma::domain, tag::omit> // enables omit
: mpl::true_ {};
... |
//
// This file is part of nuBASIC
// Copyright (c) Antonino Calderone (antonino.calderone@gmail.com)
// All rights reserved.
// Licensed under the MIT License.
// See COPYING file in the project root for full license information.
//
/* -------------------------------------------------------------------------- */... |
"""
A module to produce performance plots about tracking approaches.
>>> engines = [LinearInterpolationEngine(),
... DynamicProgrammingEngine(),
... ActiveLearnLinearEngine()]
>>> cpfs = [.01, .02, .05, .1]
>>> frames = filetovideo("/scratch/frames/")
>>> data = load(["video.txt", "video2.txt"],... |
module('Keyboard Navigation (All)', {
setup: function(){
this.input = $('<input type="text">')
.appendTo('#qunit-fixture')
.datepicker({format: "dd-mm-yyyy"})
.focus(); // Activate for visibility checks
this.dp = this.input.data... |
set -e
trap "cleanup" 0 1 2 3 9 11 13 15
# ME=export.sh
ME=$(basename ${0})
SRC=$(dirname $(dirname $(readlink -f $0)))
echo Source directory=${SRC}
usage()
{
echo
echo "Usage: ${ME} [DIR] [TAG]"
exit 1
}
cleanup()
{
trap - 0 1 2 3 9 11 13 15
echo
[ ${WORKDIR} ] && [ -d ${WORKDIR} ] && rm -r... |
#include "tensorflow/java/src/main/native/server_jni.h"
#include "tensorflow/c/c_api.h"
#include "tensorflow/java/src/main/native/exception_jni.h"
#include "tensorflow/java/src/main/native/utils_jni.h"
namespace {
TF_Server* requireHandle(JNIEnv* env, jlong handle) {
static_assert(sizeof(jlong) >= sizeof(TF_Serve... |
package org.wso2.carbon.identity.application.authenticator.oidc;
import net.minidev.json.JSONArray;
import net.minidev.json.JSONValue;
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import ... |