text stringlengths 3 1.05M |
|---|
from otree.api import models, widgets
######################################################################
""" Write your classes here! """
## Important formation as following
##
## class Classname
## classnameAttributename = value
## classnameAttributename = models.function()
##
## example
class StockMa... |
"""\
=================================================
Parsing Program Map Tables in DVB streams
=================================================
ParseProgramMapTable parses a reconstructed PSI table from a DVB MPEG
Transport Stream, and outputs a dictionary containing the data in the table.
The purpose of the PMT a... |
// @BaselineFile: getEmitOutputNoErrors.baseline
// @Filename: inputFile.ts
// @emitThisFile: true
//// var x;
//// class M {
//// x: number;
//// y: string;
//// }
verify.baselineGetEmitOutput(); |
using System;
using System.Configuration;
using System.Web.Mvc;
using System.Web.Routing;
using Microsoft.Practices.Unity;
using WebNoteNoSQL.Code.DbStartScript;
using WebNoteNoSQL.Models;
using WebNoteNoSQL.Models.EntityFramework;
using WebNoteNoSQL.Models.MongoDb;
using WebNoteNoSQL.Models.RavenDb;
n... |
// Code generated by client-gen. DO NOT EDIT.
package v1
import (
"context"
"time"
v1 "k8s.io/api/apps/v1"
autoscalingv1 "k8s.io/api/autoscaling/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
scheme "k8s.io/client-go/kubernetes/... |
package client
import (
"bytes"
"crypto/tls"
"encoding/base64"
"errors"
"io"
"io/ioutil"
"net/http"
"net/http/httptest"
"net/url"
"os"
"reflect"
"strings"
"testing"
"time"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
apierrors "github.com/GoogleCloudPlatform/kubernetes/pkg/api/errors"
"githu... |
<?php
namespace Dummy\DemoBundle\Controller;
/**
* This code has been auto-generated by the JMSDiExtraBundle.
*
* Manual changes to it will be lost.
*/
class HomePageController__JMSInjector
{
public static function inject($container) {
$instance = new \Dummy\DemoBundle\Controller\HomePageController();... |
// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You can ob... |
package com.zhan_dui.utils.m3u8;
import java.net.URI;
/**
* A playlist element.
*
* @author dkuffner
*/
public interface Element {
public String getTitle();
/**
* Return item duration rounded to nearest integer. This is compatible with old
* versions of m3u8 draft
* @return
*/
p... |
package master
import (
"testing"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api/latest"
"github.com/GoogleCloudPlatform/kubernetes/pkg/registry/registrytest"
"github.com/GoogleCloudPlatform/kubernetes/pkg/tools"
"github.com/GoogleCloudPlatform/kubernete... |
//Copyright © 2014 Sony Computer Entertainment America LLC. See License.txt.
using System.Windows;
using System.Windows.Controls;
using Sce.Atf.Wpf.Applications;
namespace Sce.Atf.Wpf.ValueConverters
{
/// <summary>
/// Selector for menu item styles</summary>
public class MenuItemStyleSelector : StyleSe... |
using System;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Collections;
using Microsoft.CodeAnalysis.ExpressionEvaluator;
using Microsoft.VisualStudio.Debugger.... |
/* ================================================================
* About NPOI
* Author: Tony Qu
* Author's email: tonyqus (at) gmail.com
* Author's Blog: tonyqus.wordpress.com.cn (wp.tonyqus.cn)
* HomePage: http://www.codeplex.com/npoi
* Contributors:
*
* ===============================================... |
<?php
/**
* Customer default billing address backend
*
* @category Mage
* @package Mage_Customer
* @author Magento Core Team <core@magentocommerce.com>
*/
class Mage_Customer_Model_Customer_Attribute_Backend_Billing extends Mage_Eav_Model_Entity_Attribute_Backend_Abstract
{
public function beforeS... |
// Copyright (C) 2003-2004 Jeremy B. Maitin-Shepard.
// Copyright (C) 2005-2011 Daniel James
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_UNORDERED_DETAIL_MANAGER_HPP_INCLUDED
#define BOOST... |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="SHORTCUT ICON" href="../../../../../img/clover.ico" />
<link rel="stylesheet" href="../../../../../aui/css/aui.min.css" media... |
trap
{
# Ensure that we exit with an error code if there are uncaught exceptions.
Write-Output $_
exit 1
}
$ErrorActionPreference = "Stop"
Add-Type -AssemblyName System.IO.Compression.FileSystem
#these two values will be replaced by the buildprocess when this script is used in a bootstrap distribution. When no... |
"""Test praw.models.front."""
from .. import IntegrationTest
class TestFront(IntegrationTest):
def test_controversial(self):
with self.recorder.use_cassette('TestFront.test_controversial'):
submissions = list(self.reddit.front.controversial())
assert len(submissions) == 100
def te... |
class SwizzleTest : public ANGLETest
{
protected:
SwizzleTest()
{
setWindowWidth(128);
setWindowHeight(128);
setConfigRedBits(8);
setConfigGreenBits(8);
setConfigBlueBits(8);
setConfigAlphaBits(8);
setClientVersion(3);
GLenum swizzles[] =
... |
<?php
namespace Symfony\Bridge\Monolog\Tests\Processor;
use Monolog\Logger;
use Symfony\Bridge\Monolog\Processor\WebProcessor;
use Symfony\Component\HttpFoundation\Request;
class WebProcessorTest extends \PHPUnit_Framework_TestCase
{
public function testUsesRequestServerData()
{
$server = array(
... |
<?php
/**
* PHPMailer language file: refer to English translation for definitive list
* Romanian Version
* @package PHPMailer
* @author Catalin Constantin <catalin@dazoot.ro>
*/
$PHPMAILER_LANG['authenticate'] = 'Eroare SMTP: Nu a functionat autentificarea.';
$PHPMAILER_LANG['connect_host'] = 'Eroare S... |
!function ($) {
"use strict"; // jshint ;_;
/* BUTTON PUBLIC CLASS DEFINITION
* ============================== */
var Button = function (element, options) {
this.$element = $(element)
this.options = $.extend({}, $.fn.button.defaults, options)
}
Button.prototype.setState = function (state) {
... |
<?php
/**
* Functions for dealing with ratings. Input-specific functions are found in form/rating
* @package Helpers
* @category Concrete
* @author Andrew Embler <andrew@concrete5.org>
* @copyright Copyright (c) 2003-2008 Concrete5. (http://www.concrete5.org)
* @license http://www.concrete5.org/license/ ... |
"""
This provides a sphinx extension able to render the source/support-matrix.ini
file into the developer documentation.
It is used via a single directive in the .rst file
.. support_matrix::
"""
import re
import six
from six.moves import configparser
from docutils import nodes
from docutils.parsers import rst
... |
<!--
Header: ETag: foo
Description: etag should only exist in results if present in HTTP headers
Expect: not bozo and etag
-->
<feed xmlns="http://www.w3.org/2005/Atom">
</feed> |
var has = require('../internals/has');
var toIndexedObject = require('../internals/to-indexed-object');
var indexOf = require('../internals/array-includes').indexOf;
var hiddenKeys = require('../internals/hidden-keys');
module.exports = function (object, names) {
var O = toIndexedObject(object);
var i = 0;
var r... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Threading.Tasks;
namespace Azure.Identity
{
internal class SentinelFileLock : IDisposable
{
private FileStream _lock... |
package org.apache.hadoop.hdfs.server.protocol;
import java.util.Collection;
import java.util.ArrayList;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability;
import org.apache.hadoop.hdfs.protocol.DatanodeInfo;
import org.apache.hadoop.hdfs.protocol.E... |
<!--
JBoss, Home of Professional Open Source
Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual
contributors by the @authors tag. See the copyright.txt in the
distribution for a full listing of individual contributors.
Licensed under the Apache License, Version 2.0 (the "License");... |
<?php
/**
* @category Zend
* @package Zend_Tool
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_Client_Request
{
/**
* @var string
*/
protected $... |
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!--
Copyright 2011 The Apache Software Foundation
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
regard... |
layout: pattern
title: Half-Sync/Half-Async
folder: half-sync-half-async
permalink: /patterns/half-sync-half-async/
categories: Concurrency
tags: Java
---
**Intent:** The Half-Sync/Half-Async pattern decouples synchronous I/O from
asynchronous I/O in a system to simplify concurrent programming effort without
degrading... |
/**
* An example of a server-side JavaScript module.
* @module hello/world
* @example
* var g = require('hello/world').sayHello('Gracie');
*/
/**
* Generate a greeting.
* @param {string} [subject="world"] To whom we say hello.
* @returns {string}
*/
exports.sayHello = function(subject) {
return 'Hello ... |
#ifndef FrameLoaderClient_h
#define FrameLoaderClient_h
#include "core/dom/IconURL.h"
#include "core/frame/FrameClient.h"
#include "core/loader/FrameLoaderTypes.h"
#include "core/loader/NavigationPolicy.h"
#include "platform/heap/Handle.h"
#include "platform/network/ResourceLoadPriority.h"
#include "platform/weborig... |
#region License
// Copyright (c) 2007 James Newton-King
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without
// restriction, including without limitation the rights to use,
// copy,... |
using Orchard.Blogs.Models;
namespace Orchard.Blogs.Services {
public interface IArchiveService : IDependency {
void RebuildArchive(BlogPart blog);
}
} |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/**
* @path ch15/15.2/15.2.3/15.2.3.2/15.2.3.2-2-11.js
* @description Object.getPrototypeOf returns the [[Prototype]] of its parameter (Error)
*/
function testcase() {
if (Object.getPrototypeOf(Error) === Function.prototype) {
return true;
}... |
<!doctype html>
<!-- This file is generated by build.py. -->
<title>canvas; overflow:hidden; -o-object-fit:cover; -o-object-position:100% 100%</title>
<link rel="stylesheet" href="../../support/reftests.css">
<link rel='match' href='hidden_cover_100_100-ref.html'>
<style>
#test > * { overflow:hidden; -o-object-fit:cov... |
function Transition ( sceneA, sceneB ) {
this.scene = new THREE.Scene();
this.cameraOrtho = new THREE.OrthographicCamera( window.innerWidth / - 2, window.innerWidth / 2, window.innerHeight / 2, window.innerHeight / - 2, - 10, 10 );
this.textures = [];
for ( var i = 0; i < 6; i ++ )
this.textures[ i ] = new TH... |
package resourcehealth
// 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
//... |
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.10
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* -----------------------------... |
#ifndef AVFORMAT_AVIO_H
#define AVFORMAT_AVIO_H
/**
* @file
* @ingroup lavf_io
* Buffered I/O operations
*/
#include <stdint.h>
#include "libavutil/common.h"
#include "libavutil/dict.h"
#include "libavutil/log.h"
#include "libavformat/version.h"
#define AVIO_SEEKABLE_NORMAL 0x0001 /**< Seeking works like for ... |
package nucleus.view;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import nucleus.factory.PresenterFactory;
import nucleus.factory.ReflectionPresenterFactory;
import nucleus.presenter.Presenter;
/**
* This class is an example of how an activit... |
require File.expand_path('../boot', __FILE__)
require 'rails/all'
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(:default, Rails.env)
module Foundation
class Application < Rails::Application
# Settings in config/environments/* t... |
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = factory(require, exports);
if (v !== undefined) module.exports = v;
}
else if (typeof define === "function" && define.amd) {
define(["require", "exports"], factory);
}
})(functio... |
require 'redshift_connector/exporter_builder'
module RedshiftConnector
class ActiveRecordDataSource
def ActiveRecordDataSource.for_dao(dao)
new(dao)
end
def initialize(dao)
@dao = dao
end
def exporter_builder
ExporterBuilder.new(ds: self, exporter_class: ActiveRecordExporter)
... |
CKEDITOR.plugins.setLang( 'indent', 'fi', {
indent: 'Suurenna sisennystä',
outdent: 'Pienennä sisennystä'
} );
|
package org.jsonschema2pojo.cli;
import static org.apache.commons.lang3.StringUtils.*;
import com.beust.jcommander.ParameterException;
import com.beust.jcommander.converters.BaseConverter;
/**
* A converter that can create a class given a fully qualified class name. Type
* parameters for the class are omitted, s... |
package net.sf.expectit;
import static net.sf.expectit.matcher.Matchers.contains;
import static net.sf.expectit.matcher.Matchers.eof;
import static net.sf.expectit.matcher.Matchers.regexp;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
/**
* A process example.
*/
public class ProcessExample {
... |
import java.util.concurrent.atomic.AtomicInteger;
// "Convert to atomic" "true"
class Test {
{
int a = 42;
AtomicInteger i = new AtomicInteger(-a);
}
} |
#import "BFTaskCompletionSource.h"
#import "BFTask.h"
@interface BFTaskCompletionSource ()
@property (nonatomic, strong, readwrite) BFTask *task;
@end
@interface BFTask (BFTaskCompletionSource)
- (BOOL)trySetResult:(id)result;
- (BOOL)trySetError:(NSError *)error;
- (BOOL)trySetException:(NSException *)exceptio... |
[](https://github.com/preservim/tagbar/actions?workflow=Vint)
[](https://github.com/preservim/tagbar/actions?workflow=Check)
## What Tagbar is
Tagbar is a Vim plugin that provide... |
url-keeper
=============
Dynamically maintains a list of URLs based on their availability in a given time interval. You can also add or remove a URL on the fly. Uses url-monitor and event-timer.
## Installation
```
npm install url-keeper
```
## How to
Here a simple example with the 'change' event, in fact a timer ba... |
<?php
/**
* Created by IntelliJ IDEA.
* Authors: Leon Bergmann,Valentin Schaefer, Marco Hanisch
* Date: 09.05.2016
* Time: 11:33
*/
namespace Core\FrontendBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class DefaultControllerTest extends WebTestCase
{
public function testIndex... |
'use strict';
export * from './src/useSubscription';
|
<html>
<body>
Reports calls to specific methods where the result of
the call is ignored and which return an object of type (or subtype of)
<b>Throwable</b>. Usually these types of methods are meant
as factory methods for exceptions and the result should be thrown.
<!-- tooltip end -->
<p>
</body>
</html> |
#ifndef WEBRTC_MODULES_AUDIO_PROCESSING_NS_MAIN_SOURCE_NS_CORE_H_
#define WEBRTC_MODULES_AUDIO_PROCESSING_NS_MAIN_SOURCE_NS_CORE_H_
#include "webrtc/modules/audio_processing/ns/defines.h"
typedef struct NSParaExtract_t_ {
//bin size of histogram
float binSizeLrt;
float binSizeSpecFlat;
float binSizeSpecDif... |
obj-$(FLOW_NODE_TYPE_CONVERTER) += converter.mod
obj-converter-$(FLOW_NODE_TYPE_CONVERTER) := converter.json converter.o
obj-converter-$(FLOW_NODE_TYPE_CONVERTER)-type := flow
|
package edu.uci.ics.asterix.common.transactions;
import java.util.List;
import edu.uci.ics.asterix.common.api.AsterixThreadExecutor;
import edu.uci.ics.asterix.common.api.IAsterixAppRuntimeContext;
import edu.uci.ics.hyracks.api.io.IIOManager;
import edu.uci.ics.hyracks.storage.am.common.api.IIndexLifecycleManager;
... |
package org.elasticsearch.broadcast;
import com.google.common.base.Charsets;
import org.elasticsearch.action.count.CountResponse;
import org.elasticsearch.action.search.SearchPhaseExecutionException;
import org.elasticsearch.common.xcontent.XContentBuilder;
import org.elasticsearch.common.xcontent.XContentFactory;
i... |
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module unless amdModuleId is set
define(["jquery"], function (a0) {
return (factory(a0));
});
} else if (typeof module === 'object' && module.exports) {
// Node. Does not work with ... |
.some-class-name {
single-quoted: url("../../packageB/images/img.jpg");
double-quoted: url("../../packageB/images/img.jpg");
unquoted: url(../../packageB/images/img.jpg);
query: url(../../packageB/images/img.jpg?query);
hash: url(../../packageB/images/img.jpg#hash);
}
.another-class-name {
display: block;
... |
&& !defined(__CYGWIN__) \
&& !defined(BOOST_ASIO_WINDOWS_RUNTIME)
#include <cstring>
#include <boost/asio/detail/noncopyable.hpp>
#include <boost/asio/detail/reactor_op_queue.hpp>
#include <boost/asio/detail/socket_types.hpp>
#include <boost/asio/detail/push_options.hpp>
namespace boost {
namespace asio {
namesp... |
require 'spec_helper'
describe SpreeAvatax::Calculator do
let(:calculator) { SpreeAvatax::Calculator.new }
describe '.description' do
it 'should not be nil' do
expect(SpreeAvatax::Calculator.description).to eq Spree.t(:avatax_description)
end
end
describe '#compute' do
it 'should raise DoNo... |
#include <aws/core/utils/threading/Executor.h>
#include <thread>
using namespace Aws::Utils::Threading;
bool DefaultExecutor::SubmitToThread(std::function<void()>&& fx)
{
std::thread t(fx);
t.detach();
return true;
} |
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
using LamarCodeGeneration;
using Marten.Events.Archiving;
using Marten.Internal;
using Marten.Internal.Operations;
us... |
<?php
namespace Symfony\Component\HttpKernel\Log;
use Psr\Log\LoggerInterface as PsrLogger;
/**
* LoggerInterface.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @deprecated since version 2.2, to be removed in 3.0. Type-hint \Psr\Log\LoggerInterface instead.
*
* @api
*/
interface LoggerInterface ext... |
import electron = require('electron-prebuilt');
import child_process = require('child_process');
child_process.spawn(electron);
|
using System;
using System.Windows.Forms;
using System.ComponentModel;
using System.Xml.Serialization;
using System.Runtime.InteropServices;
using System.Windows;
using System.Windows.Interop;
namespace RSMacroProgram
{
internal class Hotkey_Control : IMessageFilter
{
#region Interop
[DllImport("user32.dll",... |
declare module 'base64-js' {
export function toByteArray(encoded: string): Uint8Array;
export function fromByteArray(bytes: Uint8Array): string;
}
|
package org.apache.sling.hc.junitbridge;
import static org.junit.Assert.fail;
import static org.junit.Assert.assertNotNull;
import java.util.Arrays;
import junit.framework.TestSuite;
import org.junit.runner.RunWith;
import org.junit.runners.AllTests;
import org.osgi.framework.ServiceReference;
@RunWith(AllTests.c... |
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<assemblies major="10"
minor="0"
release="1">
<assembly name="mindtouch.deki"
publicKeyToken="b17e0197b56911d2"
culture="neutral"
assemblyinfo-path="src\services\Deki\AssemblyInfo.... |
(function( $, as3cfModal ) {
var savedSettings = {};
var bucketNamePattern = /[^a-z0-9.-]/;
var $tabs = $( '.as3cf-tab' );
var $activeTab;
/**
* Return the serialized string of the settings form
* excluding the bucket and region inputs as they get saved via AJAX
*
* @param string tab
*
* @returns {s... |
import _extends from 'babel-runtime/helpers/extends';
import CalendarLocale from 'rc-calendar/es/locale/sv_SE';
import TimePickerLocale from '../../time-picker/locale/sv_SE';
var locale = {
lang: _extends({ placeholder: 'Välj datum', rangePlaceholder: ['Startdatum', 'Slutdatum'] }, CalendarLocale),
timePickerLo... |
var test = require('tap').test,
http = require('http'),
express = require('express'),
request = require('request'),
through = require('through'),
serve = require('./');
function createServer(options, callback) {
var server = http.createServer(serve(options));
handleServer(server, callback);... |
<?php
defined('COT_CODE') or die('Wrong URL.');
$L['info_desc'] = 'Менеджер рассылок';
$L['cfg_limittosend'] = 'Количество отправленных сообщений за один цикл';
$L['cwsender_lists_title'] = 'Списки получателей';
$L['cwsender_lists_add_title'] = 'Создание списка рассылки';
$L['cwsender_lists_add_button'] = 'Создать ... |
/*
This file is part of the WebKit open source project.
This file has been generated by generate-bindings.pl. DO NOT MODIFY!
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation... |
layout: post
title: Two Articles I'm Pondering
date: '2003-09-07 18:03:23 -0700'
mt_id: 515
blog_id: 1
post_id: 515
basename: two-articles-im-pondering
---
<br />I'm reading <a href="http://www.edge.org/3rd_culture/gershenfeld03/gershenfeld_index.html">two</a> <a href="http://www.shirky.com/writings/fame_vs_fortune.htm... |
{-# LANGUAGE ExistentialQuantification, FlexibleInstances, UndecidableInstances #-}
-- Tests context reduction for existentials
module TestWrappedNode where
class Foo a where { op :: a -> Int }
instance {-# OVERLAPPABLE #-} Foo a => Foo [a] where -- NB overlap
op (x:xs) = op x
instance {-# OVERLAPPING #-} Foo [... |
<?php
namespace Illuminate\Cache;
trait RetrievesMultipleKeys
{
/**
* Retrieve multiple items from the cache by key.
*
* Items not found in the cache will have a null value.
*
* @param array $keys
* @return array
*/
public function many(array $keys)
{
$return =... |
#ifndef HEADER_CURL_POP3_H
#define HEADER_CURL_POP3_H
#include "pingpong.h"
#include "curl_sasl.h"
/****************************************************************************
* POP3 unique setup
***************************************************************************/
typedef enum {
POP3_STOP, /* do... |
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 317663 $ -->
<phpdoc:classref xml:id="class.stompexception" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
<title>The StompException class</titl... |
<?php
namespace Concrete\Core\Backup\ContentImporter\Importer\Routine;
use Concrete\Core\Backup\ContentImporter;
use Concrete\Core\Block\Block;
use Concrete\Core\Block\BlockType\BlockType;
use Concrete\Core\Page\Page;
use Concrete\Core\StyleCustomizer\Inline\StyleSet;
interface SpecifiableHomePageRoutineInterface
{
... |
<?php
namespace yii\filters\auth;
/**
* QueryParamAuth is an action filter that supports the authentication based on the access token passed through a query parameter.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
class QueryParamAuth extends AuthMethod
{
/**
* @var string the parameter n... |
#ifndef HEADER_OPENSSLV_H
# define HEADER_OPENSSLV_H
#ifdef __cplusplus
extern "C" {
#endif
/*-
* Numeric release version identifier:
* MNNFFPPS: major minor fix patch status
* The status nibble has one of the values 0 for development, 1 to e for betas
* 1 to 14, and f for release. The patch level is exactly th... |
<?php
namespace OSS\Tests;
use OSS\Http\RequestCore;
use OSS\Http\ResponseCore;
use OSS\Http\RequestCore_Exception;
use Symfony\Component\Config\Definition\Exception\Exception;
class HttpTest extends \PHPUnit_Framework_TestCase
{
public function testResponseCore()
{
$res = new ResponseCore(null, "",... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE690_NULL_Deref_From_Return__int64_t_malloc_42.c
Label Definition File: CWE690_NULL_Deref_From_Return.free.label.xml
Template File: source-sinks-42.tmpl.c
*/
/*
* @description
* CWE: 690 Unchecked Return Value To NULL Pointer
* BadSource: malloc Allocate data u... |
<?php
namespace CachetHQ\Cachet\Http\Controllers\Api;
use CachetHQ\Cachet\Integrations\Contracts\Releases;
use CachetHQ\Cachet\Integrations\Contracts\System;
/**
* This is the general api controller.
*
* @author James Brooks <james@alt-three.com>
*/
class GeneralController extends AbstractApiController
{
/... |
/* 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
* distributed... |
/* Run this in a jsshell with the parent directory as the current directory */
load("jsshell/prefix.js")
load("scripts/exceptions.js")
|
<?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 Lic... |
var expect = require("expect.js");
var mocha = require("mocha");
var http = require("http");
var fs = require("fs");
var createServer = require("./testHelpers/createServer");
var rmrf = require("./testHelpers/rmrf");
describe("serveAsset sourcemaps", function () {
it("adds source map header to asset", function (don... |
/**
* @file
* Field Styling
*
* The Fences module allows site builders to pick the semeantic HTML5 element
* for each field while editing the field's settings. There's no way a theme
* can ever know which element to use for the fields on your site, so Zen
* just uses lets Drupal core or Fences decide. Since you ... |
#include <utility>
#include "hmi/navi_start_stream_request.h"
#include "gtest/gtest.h"
#include "application_manager/commands/command_request_test.h"
#include "application_manager/hmi_interfaces.h"
#include "application_manager/mock_application_manager.h"
#include "application_manager/mock_hmi_interface.h"
#includ... |
process.env.NODE_ENV = process.env.NODE_ENV || 'production'
const { environment } = require('@rails/webpacker')
module.exports = environment.toWebpackConfig()
|
'use strict'
const _ = require('lodash')
const http = require('http')
const textureData = require('../data/texture')
const fontPath = require('../data/font')
const audioPath = require('../data/audio')
const spineData = require('../data/spine')
const live2dData = require('../data/live2d')
function GetPowerOfTwo(value... |
import os, sys, unittest, shutil
from threading import RLock
import test_PyLucene
from lucene import \
PythonLock, PythonLockFactory, \
PythonIndexInput, PythonIndexOutput, PythonDirectory, \
JavaError, IOException, JArray, String
"""
The Directory Implementation here is for testing purposes only, not me... |
#include "cpu/ozone/lw_lsq_impl.hh"
#include "cpu/ozone/ozone_impl.hh"
// Force the instantiation of LDSTQ for all the implementations we care about.
template class OzoneLWLSQ<OzoneImpl>;
|
#import "FBLPromise.h"
NS_ASSUME_NONNULL_BEGIN
@interface FBLPromise<Value>(DelayAdditions)
/**
Creates a new pending promise that fulfills with the same value as `self` after the `delay`, or
rejects with the same error immediately.
@param interval Time to wait in seconds.
@return A new pending promise that f... |
Hosting Quartz In-Memory
------------------------
.. attention:: **This page is obsolete!**
New documentation is located at http://masstransit-project.com/MassTransit.
The latest version of this page can be found here_.
.. _here: http://masstransit-project.com/MassTransit/usage/scheduling/in-memory.html
One ... |