text stringlengths 3 1.05M |
|---|
#include <openssl/aead.h>
#include <string.h>
#include <openssl/chacha.h>
#include <openssl/cipher.h>
#include <openssl/cpu.h>
#include <openssl/err.h>
#include <openssl/mem.h>
#include <openssl/poly1305.h>
#include <openssl/type_check.h>
#include "../fipsmodule/cipher/internal.h"
#include "../internal.h"
#defin... |
/*
* (C) 2007-2012 Alibaba Group Holding Limited.
*
* 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 applic... |
from collections import deque
import logging
import dask
from .progress_stream import color_of
from .plugin import SchedulerPlugin
from ..utils import key_split, format_time, parse_timedelta
from ..metrics import time
logger = logging.getLogger(__name__)
class TaskStreamPlugin(SchedulerPlugin):
def __init__(se... |
package org.jetbrains.java.decompiler.struct.attr;
import org.jetbrains.java.decompiler.struct.consts.ConstantPool;
import org.jetbrains.java.decompiler.struct.consts.LinkConstant;
import org.jetbrains.java.decompiler.struct.consts.PooledConstant;
import java.io.DataInputStream;
import java.io.IOException;
import ja... |
<?php
namespace Guzzle\Service\Command\Factory;
use Guzzle\Service\Command\CommandInterface;
/**
* Interface for creating commands by name
*/
interface FactoryInterface
{
/**
* Create a command by name
*
* @param string $name Command to create
* @param array $args Command arguments
*
... |
package org.cyclops.commoncapabilities;
import com.google.common.collect.Lists;
import net.minecraft.world.level.material.Fluid;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.ItemStack;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.resources.ResourceLocation;
import net.minecraftfo... |
@import XCTest;
@interface OctoJobsTests : XCTestCase
@end
@implementation OctoJobsTests
- (void)setUp
{
[super setUp];
// Set-up code here.
}
- (void)tearDown
{
// Tear-down code here.
[super tearDown];
}
- (void)testExample
{
XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTI... |
from __future__ import print_function
import argparse
import multiprocessing
import os
import re
import subprocess
import sys
DEFAULT_TARGET_BASED_ON_SDK = {
'macosx': 'x86_64-apple-macosx10.11',
'iphoneos': 'arm64-apple-ios9.0',
'iphonesimulator': 'x86_64-apple-ios9.0',
'watchos': 'armv7k-apple-watch... |
package com.google.appengine.tools.mapreduce.impl.shardedjob;
import static junit.framework.Assert.assertEquals;
import static junit.framework.Assert.fail;
import static org.junit.Assert.assertFalse;
import java.util.Iterator;
/**
* A mock controller used for unit tests. It simply sums the inputs to combine the res... |
#import "RCTPhotoLibraryImageLoader.h"
#import <Photos/Photos.h>
#import "RCTImageUtils.h"
#import "RCTUtils.h"
@implementation RCTPhotoLibraryImageLoader
RCT_EXPORT_MODULE()
@synthesize bridge = _bridge;
#pragma mark - RCTImageLoader
- (BOOL)canLoadImageURL:(NSURL *)requestURL
{
if (![PHAsset class]) {
... |
package org.apache.flink.table.planner.plan.metadata
import org.apache.flink.table.planner.plan.metadata.FlinkMetadata.FilteredColumnInterval
import org.apache.flink.table.planner.plan.nodes.calcite.TableAggregate
import org.apache.flink.table.planner.plan.nodes.physical.batch.BatchPhysicalGroupAggregateBase
import o... |
package com.planet_ink.coffee_mud.Items.Weapons;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import co... |
// Copyright 2015 go-swagger maintainers
//
// 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 agr... |
**Current Version**: 1.1.0
Contains utility functions used by some of my other plugins. Just download it to your plugin folder and it works. No need to enable it.
If you're a plugin developer, feel free to use the utility plugin. You can pull out code to avoid dependency if you wish, but please credit.
You could eve... |
cask 'printer-pro-desktop' do
version '1.3.7'
sha256 '6baa80352c3756824972a6aac8ebdabebcc082f693018d04a7a95f062565e704'
url "https://support.readdle.com/ppd/PrinterProDesktop-#{version.dots_to_underscores}.dmg"
name 'Printer Pro Desktop'
homepage 'https://support.readdle.com/ppd/'
app 'Printer Pro Desktop... |
require 'ttfunk/reader'
module TTFunk
class Table
class Glyf
class Compound
include Reader
ARG_1_AND_2_ARE_WORDS = 0x0001
WE_HAVE_A_SCALE = 0x0008
MORE_COMPONENTS = 0x0020
WE_HAVE_AN_X_AND_Y_SCALE = 0x0040
WE_HAVE_A_TWO_BY_TWO = 0x00... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_31) on Mon Jul 22 15:25:23 PDT 2013 -->
<TITLE>
Uses of Class org.apache.hadoop.typedbytes.Type (Hadoop 1.2.1 API)
</TITLE>
<META NAME="date" CONTEN... |
<center>Developed by Kaitou</center>
|
[![Build Status][travis-image]][travis-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Dependency Status][depstat-image]][depstat-url] [![devDependency Status][devdepstat-image]][devdepstat-url]
> [CoffeeLint][coffeelint] rule that enforces usage of [strict mode][moz-strictmode-doc].

print(array('i', (i for i in range(10))))
|
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* memcached - memory caching daemon
*
* http://www.danga.com/memcached/
*
* Copyright 2003 Danga Interactive, Inc. All rights reserved.
*
* Use and distribution licensed under the BSD license. See
* the LICENSE file f... |
RSpec.describe_current do
subject(:listener) do
client = described_class.new
client.setup do |config|
config.client = dummy_client
end
client
end
# We do not need DD to test this integration, we can use dummy client with the same API
# It has all the methods that we report with and flus... |
void foo1(void) {
char *np = nullptr;
*np = 0; // expected-warning{{Dereference of null pointer}}
}
// check if comparing nullptr to nullptr is detected properly
void foo2(void) {
char *np1 = nullptr;
char *np2 = np1;
char c;
if (np1 == np2)
np1 = &c;
*np1 = 0; // no-warning
}
// invoving a nullp... |
<?php
namespace gossamer\core\handlers;
use gossamer\core\handlers\BaseHandler;
use gossamer\libraries\utils\YAMLKeyParser;
class HTMLTagHandler extends BaseHandler
{
private $template = null;
private $URIKeys = null;
public function handleRequest($params = array()) {
$htmlTags = inclu... |
$(function() {
// Helper function for vertically aligning DOM elements
// http://www.seodenver.com/simple-vertical-align-plugin-for-jquery/
$.fn.vAlign = function() {
return this.each(function(i){
var ah = $(this).height();
var ph = $(this).parent().height();
var mh = (ph - ah) / 2;
$(this).css('... |
var utils = require('../utils');
class Toast {
constructor(message, duration, buttons) {
this.container = utils.strToEl(
'<div class="toast"><div class="toast-content"></div></div>' +
'');
this._content = this.container.querySelector('.toast-content');
this._content.textContent = message;
... |
module.exports = {
// Configurable misc. options
engine: 'ejs',
linker: true,
adapter: 'sails-disk',
_maxHops: 100,
// starting point
// (should be overidden as needed in generators' `before()` method)
rootPath: process.cwd(),
// i.e. command-line arguments
//
// For example, if this is `sail... |
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using QuantConnect.Logging;
using QuantConnect.Orders;
namespace QuantConnect.Packets
{
/// <summary>
/// Live result packet from a lean engine algorithm.
/// </summary>
public class LiveResultPacket : Packet
{
/// <... |
'use strict';
angular.module('users').controller('SocialAccountsController', ['$scope', '$http', 'Authentication',
function ($scope, $http, Authentication) {
$scope.user = Authentication.user;
// Check if there are additional accounts
$scope.hasConnectedAdditionalSocialAccounts = function (provider) {
... |
namespace google {
namespace protobuf {
namespace io {
#ifdef _WIN32
// Win32 lseek is broken: If invoked on a non-seekable file descriptor, its
// return value is undefined. We re-define it to always produce an error.
#define lseek(fd, offset, origin) ((off_t)-1)
#endif
namespace {
// EINTR sucks.
int close_no_ei... |
BEGIN_EXR_INCLUDES
#include "OpenEXR/IexBaseExc.h"
#include "OpenEXR/ImathBox.h"
#include "OpenEXR/ImathVec.h"
#include "OpenEXR/ImfChannelList.h"
#include "OpenEXR/ImfFrameBuffer.h"
#include "OpenEXR/ImfHeader.h"
#include "OpenEXR/ImfPixelType.h"
#include "OpenEXR/ImfTileDescription.h"
#include "OpenEXR/ImfTiledOutput... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
YUI.add('test-console', function (Y, NAME) {
/**
Provides a specialized log console widget that's pre-configured to display YUI
Test output with no extra configuration.
@example
<div id="log" class="yui3-skin-sam"></div>
<script>
YUI().use('test-console', function (Y) {
// ... set up your test c... |
.. Licensed to the Apache Software Foundation (ASF) under one
.. or more contributor license agreements. See the NOTICE file
.. distributed with this work for additional information
.. regarding copyright ownership. The ASF licenses this file
.. to you under the Apache License, Version 2.0 (the
.. "License"); you may... |
/**
* @constructor
* @extends {WebInspector.Section}
* @param {string|Element} title
* @param {string=} subtitle
*/
WebInspector.PropertiesSection = function(title, subtitle)
{
WebInspector.Section.call(this, title, subtitle);
this.headerElement.addStyleClass("monospace");
this.propertiesElement = d... |
#if PC2D_PLAYMAKER_SUPPORT
using Com.LuisPedroFonseca.ProCamera2D;
using HutongGames.PlayMaker;
using TooltipAttribute = HutongGames.PlayMaker.TooltipAttribute;
using UnityEngine;
[System.Obsolete("This action is obsolete; New ProCamera2D actions will be part of the PlayMaker Ecosystem for improved integration.")]
[... |
#if (defined(_WIN32))
#define _CRT_SECURE_NO_WARNINGS
#endif
#include "ioapi.h"
voidpf call_zopen64 (const zlib_filefunc64_32_def* pfilefunc,const void*filename,int mode)
{
if (pfilefunc->zfile_func64.zopen64_file != NULL)
return (*(pfilefunc->zfile_func64.zopen64_file)) (pfilefunc->zfile_func64... |
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/next', __FILE__)
describe "Integer#next" do
it_behaves_like(:integer_next, :next)
end
|
<?php
namespace Email;
use Mandrill;
use Mandrill_Messages;
class Email_Driver_Mandrill extends \Email_Driver
{
/**
* Global merge vars
*
* @var array
*/
protected $merge_vars = array();
/**
* Recipient merge vars
*
* @var array
*/
protected $rcpt_merge_vars = array();
/**
* Global metadata... |
CKEDITOR.plugins.setLang( 'stylescombo', 'cy', {
label: 'Arddulliau',
panelTitle: 'Arddulliau Fformatio',
panelTitle1: 'Arddulliau Bloc',
panelTitle2: 'Arddulliau Mewnol',
panelTitle3: 'Arddulliau Gwrthrych'
} );
|
'''
sc_studio.master
Author: Ming Tsang
Copyright (c) 2014-2015 HKUST SmartCar Team
Refer to LICENSE for details
'''
import binascii
import codecs
from collections import deque
import logging
import os
import sys
import subprocess
import time
import serial
from sc_studio import config, console_utils, message
from thr... |
package com.twitter.finagle.mux.lease.exp
import com.twitter.util.{Time, StorageUnit}
import com.twitter.conversions.time._
import com.twitter.conversions.storage.intToStorageUnitableWholeNumber
import org.junit.runner.RunWith
import org.scalatest.FunSuite
import org.scalatest.junit.JUnitRunner
@RunWith(classOf[JUnit... |
#import "MSGraphServiceFetchers.h"
/** Implementation for MSGraphServicePostOperations
*
*/
@implementation MSGraphServicePostOperations
- (instancetype)initOperationWithUrl:(NSString *)urlComponent parent:(id<MSOrcExecutable>)parent {
return [super initOperationWithUrl:urlComponent parent:parent];
}
-... |
<?php
/*
* @param string $fragment_group
* @param boolean $global If group is for whole network in MS install
* @return mixed
*/
function w3tc_fragmentcache_flush_group( $fragment_group ) {
$o = \W3TC\Dispatcher::component( 'CacheFlush' );
return $o->fragmentcache_flush_group( $fragment_group );
}
/**
* Flush ... |
package power
import (
"errors"
"fmt"
"os"
"path/filepath"
"strconv"
"strings"
"syscall"
"time"
"golang.org/x/net/context"
"github.com/docker/engine-api/types"
"github.com/docker/engine-api/types/container"
"github.com/docker/engine-api/types/filters"
"github.com/rancher/os/cmd/control/install"
"github... |
package com.netflix.genie.web.agent.launchers.impl;
import brave.Span;
import brave.Tracer;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.JsonNodeFactory;
import com.github.benmanes.caffeine.cache.Caffeine;
import com.github.benmanes.caffeine.cache.LoadingCache;
import com... |
package hudson.util;
import hudson.Util;
import hudson.model.Node;
import java.io.IOException;
import org.kohsuke.stapler.export.ExportedBean;
import org.kohsuke.stapler.export.Exported;
/**
* Represents a clock difference. Immutable.
*
* @author Kohsuke Kawaguchi
*/
@ExportedBean
public final class ClockDiffe... |
"""
Represents an EC2 Placement Group
"""
from boto.ec2.ec2object import EC2Object
from boto.exception import BotoClientError
class PlacementGroup(EC2Object):
def __init__(self, connection=None, name=None, strategy=None, state=None):
super(PlacementGroup, self).__init__(connection)
self.name = na... |
class A {
int x;
friend class F;
};
namespace PR12585 {
struct future_base {
template<typename> class setter;
};
template<typename> class promise {
// We used to inject this into future_base with no access specifier,
// then crash during AST writing.
template<typename> friend class future_bas... |
'use strict';
describe('Directive: fgSelectionTables', function () {
// load the directive's module
beforeEach(module('flowsimApp'));
var element,
scope;
beforeEach(inject(function ($rootScope) {
scope = $rootScope.$new();
}));
it('should make hidden element visible', inject(function ($compile)... |
from ris_widget import shared_resources
from .. import scope_client
from . import scope_widgets
from . import andor_camera_widget
from . import lamp_widget
from . import scope_viewer_widget
from . import microscope_widget
from . import game_controller_input_widget
from . import incubator_widget
WIDGETS = [
# prop... |
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/name"
android:layout_width="wrap_content"
android:layout_height="@dimen/textview_height"
android:drawableLeft="@drawable/contact_photo"
android:drawablePadding="5dp"
andro... |
require 'spec_helper'
describe 'chomp' do
it { is_expected.not_to eq(nil) }
it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError) }
it { is_expected.to run.with_params(1).and_raise_error(Puppet::ParseError) }
it {
pending("Current implementation ignores parameters after the first.")
... |
package tests
import (
"fmt"
"io/ioutil"
re "regexp"
// "log"
)
var pathParamMatch = re.MustCompile(`\<\w+\>`)
// Get - HTTP GET an endpoint
func Get(url string) error {
newURL := pathParamMatch.ReplaceAllStringFunc(url, tCtx.PathParams)
// fmt.Println("New URL = ", newURL)
tCtx.URL = sCtx.Host + newURL
// f... |
<?php
namespace GuzzleHttp\Post;
use GuzzleHttp\Stream\StreamInterface;
/**
* Post file upload interface
*/
interface PostFileInterface
{
/**
* Get the name of the form field
*
* @return string
*/
public function getName();
/**
* Get the full path to the file
*
* @re... |
Differential Geometry Module
============================
.. module:: sympy.diffgeom
Introduction
------------
Base Class Reference
--------------------
.. autoclass:: Manifold
:members:
.. autoclass:: Patch
:members:
.. autoclass:: CoordSystem
:members:
.. autoclass:: BaseScalarField
:members:
.. au... |
package forestry.api.mail;
import com.mojang.authlib.GameProfile;
import forestry.api.core.INBTTagable;
public interface IMailAddress extends INBTTagable {
EnumAddressee getType();
String getName();
boolean isValid();
boolean isPlayer();
boolean isTrader();
GameProfile getPlayerProfile();
}
|
<?php
namespace Zend\Authentication\Adapter\Http;
use Zend\Authentication\Result as AuthResult;
use Zend\Crypt\Password\Apache as ApachePassword;
use Zend\Stdlib\ErrorHandler;
/**
* Apache Authentication Resolver
*
* @see http://httpd.apache.org/docs/2.2/misc/password_encryptions.html
*/
class ApacheResolver im... |
(function() {
'use strict';
angular
.module('JHipsterRegistryApp')
.factory('Account', Account);
Account.$inject = ['$resource'];
function Account ($resource) {
var service = $resource('api/account', {}, {
'get': { method: 'GET', params: {}, isArray: false,
... |
package com.intellij.util.xml.stubs;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.extensions.DefaultPluginDescriptor;
import com.intellij.openapi.extensions.PluginId;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.psi.PsiFile;
import com.intellij.psi.impl.Ps... |
{% extends "sentry/help/index.html" %}
{% load i18n %}
{% load sentry_helpers %}
{% block title %}
Web API
{% endblock %}
{% block breadcrumbs %}
{{ block.super }}
<li class="divider">/</li>
<li><a href="{% url 'sentry-api-0-help' %}">Web API</a></li>
{% endblock%}
{% block main %}
<h2>Web API</... |
/*
Language: Bash
Author: vah <vahtenberg@gmail.com>
Contributrors: Benjamin Pannell <contact@sierrasoftworks.com>
Category: common
*/
function(hljs) {
var VAR = {
className: 'variable',
variants: [
{begin: /\$[\w\d#@][\w\d_]*/},
{begin: /\$\{(.*?)}/}
]
};
var QUOTE_STRING = {
classNa... |
@interface OCServiceLogger()
{
NSString *_uuid;
NSURL *_url;
Class _batchClass;
NSMutableArray<OCLogObject> *buffer;
dispatch_semaphore_t semaphore;
NSTimer *timer;
}
@end
@implementation OCServiceLogger
#pragma mark - Instantiation
- (instancetype)initWithUUID:(NSString *)uui... |
// Copyright 2022 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
package io.reactivex.internal.operators.flowable;
import java.util.List;
import java.util.concurrent.*;
import java.util.concurrent.atomic.*;
import org.junit.*;
import org.reactivestreams.Publisher;
import io.reactivex.Flowable;
import io.reactivex.functions.*;
import io.reactivex.processors.PublishProcessor;
imp... |
from django.conf import settings
from django.contrib.syndication.feeds import Feed
from django.contrib.syndication.feeds import FeedDoesNotExist
from django.utils.feedgenerator import Atom1Feed
from django.contrib.sites.models import Site
from django.core.exceptions import ObjectDoesNotExist
from django.core.urlresolve... |
package protoreflect
// Descriptor provides a set of accessors that are common to every descriptor.
// Each descriptor type wraps the equivalent google.protobuf.XXXDescriptorProto,
// but provides efficient lookup and immutability.
//
// Each descriptor is comparable. Equality implies that the two types are
// exactly... |
var assert = require('stream-assert');
var test = require('test-stream');
var delcsslinks = require('../index');
var should = require('should');
var path = require('path');
var File = require('gulp-util').File;
var gulp = require('gulp');
require('mocha');
describe('delcsslinks', function() {
describe('delcsslinks()'... |
webpackJsonpjwplayer([2],{
/***/ 96:
/***/ function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [
__webpack_require__(42),
__webpack_require__(51),
__webpack_require__(57),
__webpack_require__(44),
_... |
namespace nuPickers.Shared.SaveFormat
{
using System.Xml.Linq;
using Umbraco.Core.Models;
using Umbraco.Core.PropertyEditors;
using Umbraco.Core.Services;
/// <summary>
/// This class exists so as to be able to save xml direclty into the Umbraco xml cache
/// </summary>
public class S... |
<?xml version="1.0"?>
<tool id="hivclustering" name="Make inferences" version="@VERSION@.0">
<description>on HIV-1 transmission networks using HIVClustering</description>
<macros>
<import>macros.xml</import>
</macros>
<expand macro="requirements"/>
<command detect_errors="exit_code"><![CDATA... |
/* Checkbox and radio */
.checkbox,
.radio {
margin-bottom: 12px;
padding-left: 32px;
position: relative;
-webkit-transition: color 0.25s linear;
transition: color 0.25s linear;
font-size: 14px;
font-weight: normal;
line-height: 1.5;
color: #333333;
}
.checkbox input,
.radio input {
out... |
package com.squareup.okhttp;
/**
* An interface that allows OkHttp to detect that a {@link java.net.ResponseCache} contains a
* {@link Cache}.
*/
public interface OkCacheContainer {
Cache getCache();
}
|
package game.entities;
import core.Tiles;
import game.combat.Quest;
import game.control.GameControl;
import javafx.scene.canvas.GraphicsContext;
public class Shrine extends Entity {
private int blocked = 0;
private Player player = Player.getNewest();
public Shrine(int x, int y) {
super(x... |
<?php
/**
* External product add to cart
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.6.4
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
?>
<?php do_action('woocommerce_before_add_to_cart_button'); ?>
<p class="cart"><a href="<?php echo esc_url( $product_url )... |
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: AssemblyTi... |
package com.intellij.refactoring.rename;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.psi.*;
import com.intellij.psi.codeStyle.CodeStyleManager;
import com.intellij.psi.search.LocalSearchScope;
import com.intellij.psi.search.searches.ReferencesSearch;
import com.intellij.psi.util.InheritanceUtil... |
@class WPExampleRow;
@interface WPTestViewController : UIViewController
@property(nonatomic, strong)WPExampleRow *model;
@end
|
<!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_75) on Wed Nov 11 15:24:15 PST 2015 -->
<title>Index (Parse 1.11.0 API)</title>
<meta name="date" content="2015-11-11">
<link rel="styl... |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>async_read_until (1 of 4 overloads)</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" titl... |
package reservations
// 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
//
/... |
<?xml version="1.0" encoding="UTF-8"?>
<Context antiJARLocking="true" path="/XBooks"/>
|
yii.validation = (function ($) {
var pub = {
isEmpty: function (value) {
return value === null || value === undefined || ($.isArray(value) && value.length === 0) || value === '';
},
addMessage: function (messages, message, value) {
messages.push(message.replace(/\{... |
/*global define, window, document */
(function () {
'use strict';
function extend(obj1, obj2) {
var prop;
for (prop in obj2) {
if (obj2.hasOwnProperty(prop)) {
obj1[prop] = obj2[prop];
}
}
return obj1;
}
function Helper(query) ... |
import sys, os, urllib, cStringIO, traceback, cgi, binascii, gzip
import time, random, smtplib, base64, email, types, urlparse
import re, zipfile, logging, shutil, Cookie, subprocess, hashlib
from zope.pagetemplate.pagetemplatefile import PageTemplateFile
from distutils.util import rfc822_escape
from distutils2.metadat... |
(function($) {
$.timeago = function(timestamp) {
if (timestamp instanceof Date) return inWords(timestamp);
else if (typeof timestamp == "string") return inWords($.timeago.parse(timestamp));
else return inWords($.timeago.datetime(timestamp));
};
var $t = $.timeago;
$.extend($.timeago, {
setting... |
package client
import (
"fmt"
"github.com/theupdateframework/notary/tuf/data"
)
// ErrRepoNotInitialized is returned when trying to publish an uninitialized
// notary repository
type ErrRepoNotInitialized struct{}
func (err ErrRepoNotInitialized) Error() string {
return "repository has not been initialized"
}
/... |
package cached
import (
"errors"
"fmt"
"sync"
"github.com/googleapis/gnostic/OpenAPIv2"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
"k8s.io/apimachinery/pkg/version"
"k8s.io/client-go/discovery"
restclient "k8s.io/client-go/rest"
)
// memCacheClient ca... |
try:
import StringIO as io
except ImportError:
# Python3
import io
import unittest
from captainhook.checkers.utils import HookConfig
class TestHookConfig(unittest.TestCase):
def test_get_hook_configuration(self):
h = HookConfig('tox.ini')
conf = ("[captainhook]\n"
"p... |
using System;
using System.Security;
public class SecurityExceptionCtor3
{
private const int c_MINLEN = 10;
private const int c_MAXLEN = 1024;
public static int Main()
{
SecurityExceptionCtor3 ac = new SecurityExceptionCtor3();
TestLibrary.TestFramework.BeginTestCase("SecurityExceptio... |
<!--
Copyright 2014 Space Dynamics Laboratory - Utah State University Research Foundation.
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 re... |
namespace gum
{
TexturePolygon::TexturePolygon(const CU_STR& filepath)
{
auto sym = SymbolPool::Instance()->Fetch(filepath);
if (sym) {
assert(sym->Type() == s2::SYM_IMAGE);
m_img = S2_VI_PTR_DOWN_CAST<s2::ImageSymbol>(sym);
}
}
} |
package org.drools.core.util;
import org.drools.core.factmodel.traits.LatticeElement;
import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.util.ArrayList;
import java.util.BitSet;
import java.util.Collection;
import java.util.Comparator;
impor... |
package com.google.common.collect;
import static com.google.common.truth.Truth.assertThat;
import com.google.common.annotations.GwtCompatible;
import com.google.common.annotations.GwtIncompatible;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import ... |
// ----------------------------------------------------------------------------
// <copyright file="PhotonTransformViewScaleModel.cs" company="Exit Games GmbH">
// PhotonNetwork Framework for Unity - Copyright (C) 2016 Exit Games GmbH
// </copyright>
// <summary>
// Model to synchronize scale via PUN PhotonView.
/... |
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--
~ Copyright 2010-2013 Ning, Inc.
~
~ Ning licenses this file to you 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:... |
package org.ebayopensource.turmeric.runtime.tests.config;
import org.ebayopensource.turmeric.runtime.common.exceptions.ServiceCreationException;
import org.ebayopensource.turmeric.runtime.sif.impl.internal.config.ClientConfigManager;
import org.ebayopensource.turmeric.runtime.tests.common.AbstractTurmericTestCase;
... |
#pragma hdrstop
#endif
#if wxUSE_STACKWALKER
#ifndef WX_PRECOMP
#include "wx/string.h"
#include "wx/app.h"
#include "wx/log.h"
#include "wx/utils.h"
#endif
#include "wx/stackwalk.h"
#include "wx/stdpaths.h"
#include <execinfo.h>
#ifdef HAVE_CXA_DEMANGLE
#include <cxxabi.h>
#endif // HAVE_CX... |
/**
* @module ol/source/ImageWMS
*/
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p... |