text stringlengths 3 1.05M |
|---|
from swgpy.object import *
def create(kernel):
result = Intangible()
result.template = "object/draft_schematic/structure/component/shared_structure_storage_section.iff"
result.attribute_template_id = -1
result.stfName("string_id_table","")
#### BEGIN MODIFICATIONS ####
#### END MODIFICATIONS ####
retu... |
<div id="capeStatus-settings">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#capestatus-settings" href="#collapseCapestatus">
Battery configuration
</a>
</div>
<div id="collapseCapestatus" class="accordion... |
using System.Data.SqlTypes;
using System.Xml;
using System.IO;
using System.Xml.Serialization;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Runtime.CompilerServices;
namespace System.Data.Common
{
internal sealed class SqlUdtStorage : DataStorage
{
... |
namespace Umbraco.Cms.Core.Deploy
{
public interface IFileTypeCollection
{
IFileType this[string entityType] { get; }
bool Contains(string entityType);
}
}
|
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var Lint = require("../lint");
var Rule = (funct... |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="shortcut icon" type="image/x-icon" href="../../../../favicon.ico" />
<title>
MapBinder
| Guice
</title>
<link href="../../../../../javadoc/assets/android-d... |
function [ pOut ] = rigRegLS(I0, I1, roi, pIn)
% registers images using least square method under rigid transformation
% model.
%
% SYNTAX:
% pOut = affRegLS(I0, I1, roi, pIn)
%
% INPUT:
% I0 is the input template image.
% I1 is the input target image which should be deformed to match I0
% roi is the re... |
MeMap
=====
Recordatorios por Ubicacion
|
<?php
class Google_Service_Sheets_BasicChartSpec extends Google_Collection
{
protected $collection_key = 'series';
protected $axisType = 'Google_Service_Sheets_BasicChartAxis';
protected $axisDataType = 'array';
public $chartType;
protected $domainsType = 'Google_Service_Sheets_BasicChartDomain';
protecte... |
using System;
using Newtonsoft.Json;
using TMDbLib.Utilities.Converters;
namespace TMDbLib.Objects.Authentication
{
/// <summary>
/// A request token is required in order to request a user authenticated session id.
/// Request tokens will expire after 60 minutes.
/// As soon as a valid session id has... |
using System;
using System.Collections.Generic;
using System.Numerics;
namespace Code2Xml.Learner.Core.Learning {
public class GroupCache {
private readonly EncodingResult _encodingResult;
private Dictionary<BigInteger, int> _vector2GroupIndex;
public GroupCache(EncodingResult encodingResult, Classifier classi... |
namespace boost { namespace mpl {
template<
typename BOOST_MPL_AUX_NA_PARAM(T)
>
struct sizeof_
: mpl::size_t< sizeof(T) >
{
BOOST_MPL_AUX_LAMBDA_SUPPORT(1,sizeof_,(T))
};
BOOST_MPL_AUX_NA_SPEC_NO_ETI(1, sizeof_)
}}
#endif // BOOST_MPL_SIZEOF_HPP_INCLUDED
|
using UnityEngine;
using System.Collections;
public abstract class State {
protected Executor executor;
protected World world;
protected AIController agent;
protected float REWARD_VALUE = 2; //reward value
protected float rewardMultiplier; //multiplier which is trained by NEAT
protected floa... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
using Windows.System;
using Windows.UI.Core;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Navigation;
namespace DigitalSignageUAP.Common
{
... |
/*!
* Module dependencies.
*/
var SchemaType = require('../schematype');
var CastError = SchemaType.CastError;
var Types = {
Boolean: require('./boolean'),
Date: require('./date'),
Number: require('./number'),
String: require('./string'),
ObjectId: require('./objectid'),
Buffer: require('./buffer')
};
va... |
#![allow(dead_code, non_snake_case)]
#![feature(asm, lang_items)]
#![no_main]
#![no_std]
#![feature(core_float)]
extern crate bit_field;
extern crate volatile;
extern crate panic_abort;
extern crate atsamd21_hal as hal;
extern crate embedded_hal as ehal;
extern crate cortex_m;
#[allow(improper_ctypes)]
extern {
s... |
import { combineReducers } from 'redux-immutable';
combineReducers({
}); |
<?php
namespace Symfony\Component\HttpKernel\Profiler;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Profiler\ProfilerStorageInterface;
use Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface;
use Psr\Log\LoggerInterface;
... |
using BlackDesertGame.network;
using NLog;
namespace BlackDesertGame
{
class GameServer
{
protected static readonly Logger Log = LogManager.GetCurrentClassLogger();
protected static TcpServer Server;
static void Main()
{
LogManager.Configuration = Utils.Funcs.NLogD... |
Ext.define('Ext.rtl.button.Button', {
override: 'Ext.button.Button',
getBtnWrapFrameWidth: function(side) {
if (this.getHierarchyState().rtl && side === 'r') {
side = 'l';
}
return this.callParent(arguments);
},
getTriggerRegion: function() {
var me = this,... |
<!-- HTML header for doxygen 1.8.18-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" con... |
Rocketr
=======
Rocketr is a tool to send query to MongoDB, with two almost magical skills
- Implements a string query language (so you don't have to struggle with handless json objetcs anymore)
- Make relational query as easy as to add a `.` in a string...
Usage : Make a sandwish
-----------------------
Select t... |
#ifndef vlinder_rtimdb_core_details_bubblesort_hpp
#define vlinder_rtimdb_core_details_bubblesort_hpp
#include <algorithm>
namespace Vlinder { namespace RTIMDB { namespace Core { namespace Details {
template < typename It, typename Cmp >
void bubbleSort(It beg, It end, Cmp cmp)
{
using std::swap;
bool swapped... |
package org.apache.camel.model;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import org.apache.camel.Processor;
import org.apache.camel.spi.Metad... |
html,
body {
padding: 0;
margin: 0;
height: 100%;
}
html,
body,
* {
-ms-box-sizing: border-box;
-o-box-sizing: border-box;
box-sizing: border-box;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
nav,
section {
display: block;
}
audio,
canvas,
video {
display: inline-block;
}
audio:not([co... |
<!doctype html>
<html style="height: 100%">
<head>
<meta name="viewport"
content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<title>Linear Layout Example</title>
<link rel="stylesheet" href="../../delite/theme... |
/* NUGET: BEGIN LICENSE TEXT
*
* Microsoft grants you the right to use these script files for the sole
* purpose of either: (i) interacting through your browser with the Microsoft
* website or online service, subject to the applicable licensing or use
* terms; or (ii) using the files as included with a Microsoft ... |
license: >
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
"L... |
/*
* Source: https://raw.githubusercontent.com/sushain97/contestManagement/master/src/util/RequestPrinter.java
* Note: Slight modifications made to fit custom requirements.
*/
package io.github.azagniotov.stubby4j.utils;
import io.github.azagniotov.stubby4j.annotations.GeneratedCodeClassCoverageExclusion;
import ... |
/**
* Gets URI that identifies the test.
* @return uri identifier of test
*/
function getTargetURI() {
return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_nodedocumentfragmentnodename";
}
var docsLoaded = -1000000;
var builder = null;
//
// This function is called by the testing... |
<h1 class="converter">InputFile[]</h1>
## Synopsis
synopsis
## String conversion
string conversion
## XML conversion
XML conversion
|
package org.apache.wicket.util;
/**
* An object that can provide instances of type {@code T} depending on context parameter of type
* {@code C}
*
* @param <T>
* the type of the instance
* @param <C>
* the type of the context parameter
*/
public interface IContextProvider<T, C>
{
/**
... |
import django.contrib.gis.db.models.fields
import django.contrib.postgres.fields.hstore
import django.contrib.postgres.fields.ranges
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import mptt.fields
import specimens.validators
class Migration(migrations.Migrati... |
package org.apache.flex.compiler.common;
import java.util.HashMap;
import org.apache.flex.compiler.constants.IASKeywordConstants;
/**
* Modifiers found within the AS3 language.
* TODO: Make this class an enum.
*/
public class ASModifier
{
private static HashMap<String, ASModifier> LOOKUP = new HashMap<Strin... |
<?php
// Call Zend_Dojo_FormTest::main() if this source file is executed directly.
if (!defined("PHPUnit_MAIN_METHOD")) {
define("PHPUnit_MAIN_METHOD", "Zend_Dojo_DojoTest::main");
}
/** Zend_Dojo */
require_once 'Zend/Dojo.php';
/** Zend_Form */
require_once 'Zend/Form.php';
/** Zend_Form_Element */
require_o... |
package org.apache.camel.component.docker.headers;
import java.util.Map;
import com.github.dockerjava.api.command.CreateContainerCmd;
import com.github.dockerjava.api.model.Capability;
import com.github.dockerjava.api.model.ExposedPort;
import com.github.dockerjava.api.model.HostConfig;
import com.github.dockerjava.... |
<?php
/**
* Extension to PHPUnit_Framework_AssertionFailedError to mark the special
* case of a test test that unintentionally covers code.
*
* @package PHPUnit
* @subpackage Framework
* @author Sebastian Bergmann <sebastian@phpunit.de>
* @copyright 2001-2014 Sebastian Bergmann <sebastian@phpunit.de>
... |
<!DOCTYPE html>
<html>
<!--
Copyright 2011 The Closure Library Authors. All Rights Reserved.
Use of this source code is governed by the Apache License, Version 2.0.
See the COPYING file for details.
-->
<head>
<title>goog.ui.MenuItem Demo</title>
<script src="../base.js"></script>
<script>
goog.require('goog... |
<resources>
<string name="app_name">changeSkin</string>
</resources>
|
class AuthService
class InvalidAuthenticator
def self.build
new
end
def call
raise ::AuthService::AuthenticationFailed, 'Invalid authentication strategy'
end
end
end
|
<?xml version="1.0"?>
<doc>
<assembly>
<name>System.Spatial.SL</name>
</assembly>
<members>
<member name="T:System.Spatial.PlatformHelper">
<summary>
Helper methods that provide a common API surface on all platforms.
</summary>
</member>
<m... |
import "tslib";
import "@angular/core";
|
package org.wso2.carbon.apimgt.impl.wsdl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.wso2.carbon.apimgt.api.ErrorHandler;
import org.wso2.carbon.apimgt.api.model.API;
import org.wso2.carbon.apimgt.impl.wsdl.exceptions.APIMgtWSDLException;
import org.wso2.carbon.apimgt.impl.wsdl.model.WSDLInfo... |
using System;
using System.Collections.Generic;
using JetBrains.Annotations;
using Orchard.Data;
using Orchard.Logging;
namespace Orchard.Tasks {
public interface IBackgroundService : IDependency {
void Sweep();
}
[UsedImplicitly]
public class BackgroundService : IBackgroundServi... |
<?php
/** Zend_Pdf_Filter_Interface */
require_once 'Zend/Pdf/Filter/Interface.php';
/**
* ASCII85 stream filter
*
* @package Zend_Pdf
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstra... |
<?php
namespace Bcrypt;
class Bcrypt
{
const VERSION = '1.0.0';
/**
* @return string The encrypt text
*/
public static function encrypt($plaintext, $bcrypt_version = '2y', $cost = 10)
{
//make sure adding the cost in two digits
$cost = sprintf('%02d', $cost);
$salt = self::generateSalt();
/* C... |
#include <cassert>
#include <vector>
#include <utility>
#include <random>
#include <string>
#include <memory>
#include <malloc.h>
#include "../../../common/common.h"
#include "../api_internal/nn_device_interface_0_internal.h"
#include "layers_opencl.h"
namespace device_gpu
{
//TODO: Make padding for pooling. currentl... |
/**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
class CreateWordsThatMatchColumn < ActiveRecord::Migration
def change
add_column :posts, :words_that_match, :integer, :default => 0
end
end
|
<?php
/**
* Manages all author-related data
*
* Used by {@see SimplePie_Item::get_author()} and {@see SimplePie::get_authors()}
*
* This class can be overloaded with {@see SimplePie::set_author_class()}
*
* @package SimplePie
* @subpackage API
*/
class SimplePie_Author
{
/**
* Author's name
*
* @var s... |
cask 'ipass' do
version :latest
sha256 :no_check
# d18uyicgt51j26.cloudfront.net/packages was verified as official when first introduced to the cask
url 'https://d18uyicgt51j26.cloudfront.net/packages/iPass_Mac.dmg'
name 'iPass'
homepage 'https://www.ipass.com/'
pkg 'iPass.pkg'
uninstall pkgutil: 'co... |
/*********FILE**********
/Users/cain/programming/uxebu/repositories/embedjs/src/dojo.js
********************/
var embed, dojo;
embed = dojo = {};
embed.config = {};
embed.global = this;
embed.doc = this.document || null;
embed.body = function() {
var ebd = embed;
return ebd.doc && ebd.doc.body;
};
embed.version ... |
import { Observable } from 'rxjs/Observable';
import { CachedResource } from './cached.interface';
export class CachedImage implements CachedResource {
public loaded: boolean = false;
public loading: boolean = false;
public loadingObservable: Observable<HTMLImageElement> = null;
public image: HTMLImageEle... |
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
</manifest> |
<?php
namespace Symfony\Component\Validator\Mapping\Loader;
use Symfony\Component\Validator\Exception\MappingException;
use Symfony\Component\Validator\Mapping\ClassMetadata;
class StaticMethodLoader implements LoaderInterface
{
protected $methodName;
public function __construct($methodName = 'loadValidat... |
package com.intellij.diff.tools.fragmented;
import com.intellij.testFramework.UsefulTestCase;
public class LineNumberConvertorTest extends UsefulTestCase {
public void testEmpty() {
Test test = new Test();
test.finish();
test.checkEmpty(-5, 20);
test.checkEmptyInv(-5, 20);
}
public void test... |
require "spec_helper"
describe Mongoid::Errors::Callback do
describe "#message" do
let(:error) do
described_class.new(Post, :create!)
end
it "contains the problem in the message" do
expect(error.message).to include(
"Calling create! on Post resulted in a false return from a callbac... |
# ----------------------------------------------------------------------------------
#
# 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 sage.jep.function;
import sage.jep.*;
public class Add extends PostfixMathCommand
{
public Add()
{
numberOfParameters = -1;
}
/**
* Calculates the result of applying the "+" operator to the arguments from
* the stack and pushes it back on the stack.
*/
public void run(sage.Catbert.F... |
namespace boost {
namespace units {
namespace si {
typedef unit<area_dimension,si::system> area;
BOOST_UNITS_STATIC_CONSTANT(square_meter,area);
BOOST_UNITS_STATIC_CONSTANT(square_meters,area);
BOOST_UNITS_STATIC_CONSTANT(square_metre,area);
BOOST_UNITS_STATIC_CONSTANT(square_metres,area);
} // namespace... |
Enumerate Regions and Endpoints Example
===
Demonstrates how the SDK's endpoints can be enumerated over to discover regions, services, and endpoints defined by the SDK's Regions and Endpoints metadata.
Usage
---
The following parameters can be used to enumerate the SDK's partition metadata.
Example:
go run -ta... |
package org.thymeleaf.engine;
import java.io.IOException;
import java.io.Writer;
import org.thymeleaf.model.IModelVisitor;
import org.thymeleaf.model.ITemplateStart;
/*
* Engine implementation of ITemplateStart.
*
* @author Daniel Fernandez
* @since 3.0.0
*/
final class TemplateStart extends AbstractTemplateEv... |
import sys
from command import Command, GitcClientCommand
import platform_utils
class GitcDelete(Command, GitcClientCommand):
COMMON = True
visible_everywhere = False
helpSummary = "Delete a GITC Client."
helpUsage = """
%prog
"""
helpDescription = """
This subcommand deletes the current GITC client, delet... |
FROM ubuntu:14.04
MAINTAINER Craig Citro <craigcitro@google.com>
# Pick up some TF dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
curl \
libfreetype6-dev \
libpng12-dev \
libzmq3-dev \
pkg-config \
python \
... |
package org.jetbrains.jps.model.serialization.java.compiler;
import com.intellij.util.xmlb.XmlSerializer;
import org.jdom.Element;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.jps.model.JpsProject;
import org.jetbrains.jps.model.java.JpsJavaExtensionService;
import org.jetbrains.jps.model.java.compi... |
package com.esri.arcgis.android.samples.attributeeditor;
import com.esri.core.map.FeatureType;
import com.esri.core.map.Field;
import com.esri.core.map.Graphic;
import java.text.DateFormat;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap;
import java.... |
#ifndef FOLLY_ATOMICHASHMAP_H_
#error "This should only be included by AtomicHashMap.h"
#endif
#include <folly/detail/AtomicHashUtils.h>
namespace folly {
// AtomicHashMap constructor -- Atomic wrapper that allows growth
// This class has a lot of overhead (184 Bytes) so only use for big maps
template <typename Ke... |
// Copyright (C) 2011 Milo Yip
//
// 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, modify, merge, publish,... |
package org.apache.cassandra.io.util;
import org.apache.cassandra.utils.ByteBufferUtil;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.ClosedChannelException;
import java.util.Arrays;
import java.util.concurrent.Callable;
import... |
// 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.
//
// VirtualCallStubCpu.hpp
//
#ifndef _VIRTUAL_CALL_STUB_ARM_H
#define _VIRTUAL_CALL_STUB_ARM_H
#ifdef DECLARE_DAT... |
.. _tutorial2:
######################################
C++ Tutorial: Getting Started (Part 2)
######################################
.. contents::
:local:
:backlinks: none
:depth: 2
Overview
========
This tutorial shows how to convert the finished PNaCl web application from
:doc:`Part 1 <tutorial-part1>` to us... |
<?php
include("php/logged_in.php");
$saved="";
if(isset($_REQUEST["edit"])){
$weight = htmlspecialchars($_REQUEST['weight']);
$gender = htmlspecialchars($_REQUEST['gender']);
if(user_exists($user)){
if(!edit_user($user, $weight, $gender))print("fail");
else... |
CKEDITOR.plugins.setLang("language","ar",{button:"حدد اللغة",remove:"حذف اللغة"}); |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Table of Contents - documentation</title>
<style type="text/css" media="screen">
@import "media/css/doc.css";
@import "media... |
package seev
import (
"encoding/xml"
"github.com/fgrid/iso20022"
)
type Document00800105 struct {
XMLName xml.Name `xml:"urn:iso:std:iso:20022:tech:xsd:seev.008.001.05 Document"`
Message *MeetingResultDisseminationV05 `xml:"MtgRsltDssmntn"`
}
func (d *Document00800105) AddMessage() *Meetin... |
> Terminal string styling done right
[](https://travis-ci.org/sindresorhus/chalk)

[colors.js](https://github.com/Marak/colors.js) is currently the most popular string styling module,... |
// import-boss enforces import restrictions in a given repository.
//
// When a directory is verified, import-boss looks for a file called
// ".import-restrictions". If this file is not found, parent directories will be
// recursively searched.
//
// If an ".import-restrictions" file is found, then all imports of the... |
import re
import sys
import pkg_resources
import pip
from pip.req import InstallRequirement
from pip.log import logger
from pip.basecommand import Command
from pip.util import get_installed_distributions
class FreezeCommand(Command):
"""Output installed packages in requirements format."""
name = 'freeze'
... |
namespace LinqToQuerystring
{
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Antlr.Runtime;
using Antlr.Runtime.Tree;
using LinqToQuerystring.TreeNodes;
using LinqToQuerystring.TreeNodes.Base;
public static ... |
package fr.eni.QCM.DAL;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import fr.eni.QCM.BO.TypeQuestion;
import fr.eni.QCM.utils.AccesBase;
public class TypeQuestionDAO {
static String SQL_GET_ONE_TYPE_QUESTION = "SELECT * FROM TypeQues WHER... |
FOSFacebookBundle
=================
This Bundle provides a Symfony2 authentication provider so that users can login to a
Symfony2 application via Facebook. Furthermore via custom user provider support
the Facebook login can also be integrated with other data sources like the
database based solution provided by FOSUser... |
package main
import (
"fmt"
"time"
)
func main() {
// First we'll look at basic rate limiting. Suppose
// we want to limit our handling of incoming requests.
// We'll serve these requests off a channel of the
// same name.
requests := make(chan int, 5)
for i := 1; i <= 5; i++ {
requests <- i
}
close(requ... |
<!doctype html>
<html lang="en">
<head>
<title>Code coverage report for src/store/mutations.js</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="../../prettify.css" />
<link rel="stylesheet" href="../../base.css" />
<meta name="viewport" content="width=device-width, initial-scale=1">
... |
"""
.. py:currentmodule:: pysemeels.tools.__init__
.. moduleauthor:: Hendrix Demers <hendrix.demers@mail.mcgill.ca>
Tools packages for the pysemeels project.
"""
###############################################################################
# Copyright 2017 Hendrix Demers
#
# Licensed under the Apache License, Vers... |
/*
* ClosedBox.java
*
* Created on January 27, 2003, 11:05 AM
*/
package xal.tools.math.r3;
import xal.tools.math.ClosedInterval;
import xal.tools.math.MathException;
/**
* Represents a Cartesian box in <b>R</b><sup>3</sup>.
*
* @author Christopher K. Allen
* @since Jan 27, 2003
*/
public class ClosedB... |
package io.v.impl.google.rpc;
import io.v.v23.rpc.Server;
import io.v.v23.rpc.ServerStatus;
import io.v.v23.verror.VException;
public class ServerImpl implements Server {
private final long nativeRef;
private native void nativeAddName(long nativeRef, String name) throws VException;
private native void na... |
Tests the PHP_Depend_Util_MathUtil::add() method with the bcadd() function.
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) {
die('Skipped: bcmath extension required');
}
?>
--FILE--
<?php
require_once 'PHP/Depend/Util/MathUtil.php';
var_dump(PHP_Depend_Util_MathUtil::add(1000, 1000));
var_dump(PHP_Depend_Util_Ma... |
package org.springframework.boot.autoconfigure.security.jpa;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.PropertyPlaceholderAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAut... |
// 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.
#include "net/ssl/channel_id_service.h"
#include <algorithm>
#include <limits>
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/call... |
using System;
using System.Globalization;
using Xunit;
namespace System.Globalization.CalendarTests
{
public class GregorianCalendarGetDayOfYear
{
private System.Globalization.Calendar _calendar = new GregorianCalendar();
#region Postive Test Case
// Call GetDayOfYear to get day of year... |
/*
* 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 under t... |
var smallmachine = function(core) {
if(typeof Object.getPrototypeOf !== "function") {
if(typeof"test".__proto__ === "object") {
Object.getPrototypeOf = function(object) {
return object.__proto__
}
}else {
Object.getPrototypeOf = function(object) {
return object.constructor.pr... |
namespace System.ServiceModel.MsmqIntegration
{
using System;
using System.ComponentModel;
using System.ServiceModel;
using System.Text;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Configuration;
using System.Globalization;
using System.Net;
... |
(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 exports === 'object') {
// Node. Does not work with strict CommonJS, ... |
package io.getquill.codegen.jdbc.model
import io.getquill.codegen.jdbc.model.JdbcTypes.JdbcTyper
import io.getquill.codegen.model._
trait JdbcStereotyper extends Stereotyper {
type TableMeta = JdbcTableMeta
type ColumnMeta = JdbcColumnMeta
def typer: JdbcTyper
import Stereotyper._
def fuser: Fuser[JdbcTab... |
/* Includes ------------------------------------------------------------------*/
#include "stm32f4xx_hal.h"
/** @addtogroup STM32F4xx_HAL_Driver
* @{
*/
/** @defgroup HAL HAL
* @brief HAL module driver.
* @{
*/
/* Private typedef -----------------------------------------------------------*/
/* Private de... |
// Type definitions for Angular v2.0.0-alpha.37
// Project: http://angular.io/
// Definitions by: angular team <https://github.com/angular/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
// ***********************************************************
// This file is generated by the Angular build proce... |
YUI.add('history-base', function(Y) {
/**
* Provides browser history management functionality using a simple
* add/replace/get paradigm. This can be used to ensure that the browser's back
* and forward buttons work as the user expects and to provide bookmarkable URLs
* that return the user to the current applicat... |
package org.apache.spark.internal.io
import java.text.SimpleDateFormat
import java.util.{Date, Locale}
import scala.util.DynamicVariable
import org.apache.hadoop.fs.Path
import org.apache.hadoop.mapred.{JobConf, JobID}
import org.apache.spark.{SparkConf, TaskContext}
import org.apache.spark.deploy.SparkHadoopUtil... |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.net;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.CoreMatchers.nullVa... |