text stringlengths 3 1.05M |
|---|
#region MIT
//
// Gorgon.
// Copyright (C) 2018 Michael Winsor
//
// 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,... |
// Browser bundle of nunjucks 1.3.3
(function() {
var modules = {};
(function() {
'use strict';
// A simple class system, more documentation to come
function extend(cls, name, props) {
// This does that same thing as Object.create, but with support for IE8
var F = function() {};
F.prototype = cls.protot... |
package ORG.as220.tinySQL.sqlparser;
import ORG.as220.tinySQL.tinySQL;
import ORG.as220.tinySQL.tinySQLException;
import ORG.as220.tinySQL.tinySQLResultSet;
import java.util.Vector;
/**
* This is the baseclass for all SQL-Statements.
*
* The specific Statement is initialized by the parse-tree-walker
* and w... |
@interface UIView (NightVersion)
- (void)changeColor;
- (void)changeColorWithDuration:(CGFloat)duratio;
@end
|
// Copyright 2006 Google Inc.
//
// 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 wr... |
package com.google.common.collect;
import static com.google.common.base.Preconditions.checkNotNull;
import com.google.common.annotations.GwtCompatible;
import com.google.common.annotations.GwtIncompatible;
import com.google.common.collect.Multiset.Entry;
import com.google.common.primitives.Ints;
import java.io.Ser... |
The ipset plugin gathers packets and bytes counters from Linux ipset.
It uses the output of the command "ipset save".
Ipsets created without the "counters" option are ignored.
Results are tagged with:
- ipset name
- ipset entry
There are 3 ways to grant telegraf the right to run ipset:
* Run as root (strongly discour... |
<?php
namespace GuzzleHttp\Ring\Client;
use GuzzleHttp\Ring\Future\FutureArray;
use React\Promise\Deferred;
/**
* Returns an asynchronous response using curl_multi_* functions.
*
* This handler supports future responses and the "delay" request client
* option that can be used to delay before sending a request.
*... |
"""Test the binascii C module."""
from test import test_support
import unittest
import binascii
import array
# Note: "*_hex" functions are aliases for "(un)hexlify"
b2a_functions = ['b2a_base64', 'b2a_hex', 'b2a_hqx', 'b2a_qp', 'b2a_uu',
'hexlify', 'rlecode_hqx']
a2b_functions = ['a2b_base64', 'a2b_h... |
Mongoose is a [MongoDB](http://www.mongodb.org/) object modeling tool designed to work in an asynchronous environment.
## Documentation
[mongoosejs.com](http://mongoosejs.com/)
## Try it live
<a href="https://runnable.com/#learnboost/mongoose/code.js/launch" target="_blank"><img src="https://runnable.com/external/st... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-ssreflect: 1 m 54 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.mi... |
/*
* linux/fs/isofs/inode.c
*
* (C) 1991 Linus Torvalds - minix filesystem
* 1992, 1993, 1994 Eric Youngdale Modified for ISO 9660 filesystem.
* 1994 Eberhard Mönkeberg - multi session handling.
* 1995 Mark Dobie - allow mounting of some weird VideoCDs and PhotoCDs.
* 1997 Gordon Chaffee - ... |
/**
* @fileOverview Coder component.
* @author <a href="mailto:ryanlee@zepheira.com">Ryan Lee</a>
*/
/**
* @class
* @constructor
* @param {String} key
* @param {Element|jQuery} div
* @param {Exhibit.UIContext} uiContext
*/
Exhibit.Coder = function(key, div, uiContext) {
var self, _instanceKey, _registered... |
/**
* @fileoverview Rule to flag the use of empty character classes in regular expressions
* @author Ian Christian Myers
*/
"use strict";
//------------------------------------------------------------------------------
// Helpers
//------------------------------------------------------------------------------
/*
... |
var expect = chai.expect;
describe('Views.Navigation', function() {
var view;
before(function() {
fixtures.load('/navigation.html');
view = new App.Views.Navigation({
el: $(fixtures.window().document.body).find('#navigation')
});
});
describe('#select', function()... |
// this global var is used to prevent multiple fires of the drop event. Needs to be global to the textAngular file.
var dropFired = false;
var textAngular = angular.module("textAngular", ['ngSanitize', 'textAngularSetup', 'textAngular.factories', 'textAngular.DOM', 'textAngular.validators', 'textAngular.taBind']); //Th... |
using System;
using System.Linq;
using Microsoft.Azure;
using Microsoft.AzureStack.Management;
namespace Microsoft.AzureStack.Management
{
public partial interface IAzureStackClient : IDisposable
{
/// <summary>
/// Apiversion of the endpoint
/// </summary>
string ApiVersion
... |
package mobileanalytics
import (
"fmt"
"github.com/aws/aws-sdk-go/aws/awsutil"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/restjson"
)
const opPutEvents = "PutEvents"
// PutEventsRequest generates a "aws/request.Request" repre... |
package com.epam.cdp.jee.todo.soap;
import static org.junit.Assert.assertFalse;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.List;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import org.junit.Test;
import com.epam.cdp.jee.todo.soap.client.Task;
import com.epam.cdp.... |
package fake
import (
v1alpha1 "k8s.io/kubernetes/cmd/kubernetes-discovery/pkg/client/clientset_generated/clientset/typed/apiregistration/v1alpha1"
restclient "k8s.io/kubernetes/pkg/client/restclient"
core "k8s.io/kubernetes/pkg/client/testing/core"
)
type FakeApiregistrationV1alpha1 struct {
*core.Fake
}
func... |
class CreateItems < ActiveRecord::Migration
def change
create_table :items do |t|
t.string :name
t.boolean :done
t.references :bucketlist, index: true, foreign_key: true
t.timestamps null: false
end
end
end
|
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import keyMirror from 'fbjs/lib/keyMirror';
export default keyMirror({
});
|
.syntaxhighlighter a,
.syntaxhighlighter code,
.syntaxhighlighter table,
.syntaxhighlighter table td,
.syntaxhighlighter table tr,
.syntaxhighlighter table tbody,
.syntaxhighlighter table thead,
.syntaxhighlighter table caption,
.syntaxhighlighter textarea {
-moz-border-radius: 0 0 0 0 !important;
-webkit-border-r... |
Title: Starting your adventure...
Welcome to this Galaxy! You know who you are, and what are your posessions /
wealth, but... Where are you exactly? You'll need to find out first. Please go
to the [Galaxy World Generator][galaxy]. In this part you'll find out a way to
create your first world, randomly assign its res... |
using System;
using System.Runtime.InteropServices;
namespace Grpc.Core.Internal
{
/// <summary>
/// Safe handle to wrap native objects.
/// </summary>
internal abstract class SafeHandleZeroIsInvalid : SafeHandle
{
public SafeHandleZeroIsInvalid() : base(IntPtr.Zero, true)
{
... |
import Shader from './Shader.js'
import tinycolor from 'tinycolor2'
import { randomIntFromInterval } from '../Utils.js'
/**
* Glitch Shader
*/
export default class GlitchShader extends Shader {
constructor (name) {
super(name || "Glitch")
}
renderPixel (ctx, pixel, data, palette) {
ctx.save()
c... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" href="qunit/qunit.css" type="text/css" media="screen" />
<script type="text/javascript" src="qunit/qunit.js"></script>
<!-- JSChardet -->
<scrip... |
package com.epishie.tabs.error;
public abstract class BaseError extends RuntimeException {
public BaseError() { }
public BaseError(Throwable t) {
super(t);
}
public BaseError(String message, Throwable t) {
super(message, t);
}
}
|
/*********************************************************************
* *
* ConfigFemtoAnalysis.C - configuration macro for the femtoscopic *
* analysis, meant as a QA process for two-particle effects *
* ... |
<?xml-stylesheet href="css3-modsel-7.css" type="text/css"?>
<test>
<p xmlns="http://www.w3.org/1999/xhtml" class="a b c">This paragraph should have green background because CLASS
contains "b"</p>
<address xmlns="http://www.w3.org/1999/xhtml" title="tot foo bar">
<span class="a c">This address should also</s... |
using System.Linq;
using System.IO;
namespace SparkPostMail.Helpers
{
internal static class FileHelper
{
internal static void DeleteFiles(params string[] files)
{
foreach (string file in files.Where(file => !string.IsNullOrWhiteSpace(file)).Where(File.Exists))
{
... |
package org.apache.spark.sql.kafka010
import org.apache.kafka.clients.producer.ProducerRecord
import org.apache.spark.sql.Dataset
import org.apache.spark.sql.execution.datasources.v2.DataSourceV2StreamingScanExec
import org.apache.spark.sql.execution.streaming.continuous.ContinuousTrigger
import org.apache.spark.sq... |
"""Tests for rnn module."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import time
import timeit
import numpy as np
from tensorflow.contrib import rnn as contrib_rnn
from tensorflow.core.protobuf import config_pb2
from tensorflow.python.client import... |
class AddEmailFrequencyToUsers < ActiveRecord::Migration[5.0]
def change
add_column :users, :email_frequency, :string, default: "daily"
end
end
|
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
export default class Landing extends Component{
render(){
return(
<div>
{/* <!-- Navigation --> */}
<a id="menu-toggle" href="#" className="btn btn-dark btn-lg toggle">
<i className="fa fa-bars"></i... |
namespace pp {
namespace {
template <> const char* interface_name<PPB_TCPServerSocket_Private_0_2>() {
return PPB_TCPSERVERSOCKET_PRIVATE_INTERFACE_0_2;
}
template <> const char* interface_name<PPB_TCPServerSocket_Private_0_1>() {
return PPB_TCPSERVERSOCKET_PRIVATE_INTERFACE_0_1;
}
} // namespace
TCPServerSoc... |
"use strict";
var invariant = require('invariant');
var isNode = require('isNode');
var merge = require('merge');
var mergeInto = require('mergeInto');
var mergeHelpers = require('mergeHelpers');
var checkMergeObjectArgs = mergeHelpers.checkMergeObjectArgs;
var isTerminal = mergeHelpers.isTerminal;
/**
* Wrapper ... |
title: Building blocks
category: subjects
---
**Summary**
- [templates]()
- [scaffolds]()
- [boilerplates]()
## Templates / views
Templates are used as a starting point or example on which to base other files or documents so that they do not need to be created from scratch each time.
**Template types**
- renderab... |
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports Microsoft.CodeAnalysis.Text
Imports Microsoft.CodeAnalysis.VisualBasic.Syntax
Imports InternalSyntaxFactory = Microsoft.CodeAnalysis.VisualBasic.Synta... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.InteropServices;
using System.ServiceModel;
using System.Text;
using System.Xml;
using System.Runtime.Serialization;
using System.Globalization;
namespace RoomAliveToolkit
{
[DataContract]
public class ProjectorCameraEnsembl... |
void register_WidgetLookIterator_class();
#endif//WidgetLookIterator_hpp__pyplusplus_wrapper
|
package fixtures.valueconstraints;
/**
* The EnumValue represents an enum
* @version $Id$
* @author conor.roche
*/
@SuppressWarnings("javadoc")
public enum EnumValue {
VALUE1,
VALUE2;
}
|
.. _qhulltutorial:
Spatial data structures and algorithms (`scipy.spatial`)
========================================================
.. currentmodule:: scipy.spatial
`scipy.spatial` can compute triangulations, Voronoi diagrams, and
convex hulls of a set of points, by leveraging the `Qhull
<http://qhull.org/>`__ libr... |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Diagnostics;
using Roslyn.Utilities;
namespace Microsoft.CodeAnalysis.Formatting.Rules
{
/// <summary>
... |
<?php
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'test');
defined('YII_APP_BASE_PATH') or define('YII_APP_BASE_PATH', dirname(dirname(dirname(__DIR__))));
defined('FRONTEND_ENTRY_URL') or define('FRONTEND_ENTRY_URL', parse_url(\Codeception\Configuration::config()['confi... |
define("rollbar", [], function() { return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(in... |
package apps
import (
"context"
"fmt"
"reflect"
"strings"
"time"
"github.com/onsi/ginkgo"
"github.com/onsi/gomega"
appsv1 "k8s.io/api/apps/v1"
v1 "k8s.io/api/core/v1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/ap... |
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: AssemblyTitle("Mo... |
require 'active_support/core_ext/array/conversions'
require 'active_support/core_ext/object/acts_like'
module ActiveSupport
# Provides accurate date and time measurements using Date#advance and
# Time#advance, respectively. It mainly supports the methods on Numeric.
#
# 1.month.ago # equivalent to Time... |
import Ember from 'ember';
import MaterializeInputField from './md-input-field';
import layout from '../templates/components/md-select';
export default MaterializeInputField.extend({
layout: layout,
optionLabelPath: 'content',
optionValuePath: 'content',
didInsertElement() {
this._super(...arguments);
... |
<?php defined('SYSPATH') or die('No direct script access.');
abstract class Kohana_Minion_Task {
/**
* The separator used to separate different levels of tasks
* @var string
*/
public static $task_separator = ':';
/**
* Converts a task (e.g. db:migrate to a class name)
*
* @param string Task name
*... |
<!-- html file after the table is built -->
<div id="live_list">
<p id="liveLectures"></p>
</div>
</body>
</html>
<script src="js/RTCMultiConnection.min.js"></script>
<script src="/socket.io/socket.io.js"></script>
<script src="js/timetable.js"></script>
|
package jsettlers.network.common.packets;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import jsettlers.network.infrastructure.channel.packet.Packet;
/**
*
* @author Andreas Eberle
*
*/
public class PlayerInfoPacket extends Packet {
private String id;
private ... |
package org.jetbrains.plugins.groovy.lang.psi.impl.statements;
import com.intellij.lang.ASTNode;
import com.intellij.psi.PsiElement;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor;
import org.jetbrains.plugins.groov... |
/**
* @fileOverview The "filebrowser" plugin that adds support for file uploads and
* browsing.
*
* When a file is uploaded or selected inside the file browser, its URL is
* inserted automatically into a field defined in the <code>filebrowser</code>
* attribute. In order to specify a field that s... |
<?xml version="1.0" encoding="UTF-8"?>
<!-- EN-Revision: 20766 -->
<!-- Reviewed: no -->
<sect1 id="zend.db.table.definition">
<title>Zend_Db_Table_Definition</title>
<sect2 id="zend.db.table.definition.introduction">
<title>Introduction</title>
<para>
<classname>Zend_Db_Table_Defi... |
/**
* Usage:
*
* // using default options
* $(document).endlessScroll();
*
* // using some custom options
* $(document).endlessScroll({
* fireOnce: false,
* fireDelay: false,
* loader: "<div class=\"loading\"><div>",
* callback: function(){
* alert("test");
* }
* });
*
* Configuration op... |
Generally speaking, applications will achieve the best throughput
by buffering their (modestly-sized) output and sending it all at
once. This is a common approach in existing frameworks such as
Zope: the output is buffered in a StringIO or similar object, then
transmitted all at once, along with the response headers.
... |
import os
# This module should be kept compatible with Python 2.1.
__revision__ = "$Id: debug.py 37828 2004-11-10 22:23:15Z loewis $"
# If DISTUTILS_DEBUG is anything other than the empty string, we run in
# debug mode.
DEBUG = os.environ.get('DISTUTILS_DEBUG')
|
This module provides integration with [Yii Framework 1.1](http://www.yiiframework.com/doc/guide/).
The following configurations are available for this module:
* `appPath` - full path to the application, include index.php</li>
* `url` - full url to the index.php entry script</li>
In your index.php you must return a... |
package com.google.common.collect;
import com.google.gwt.user.client.rpc.SerializationException;
import com.google.gwt.user.client.rpc.SerializationStreamReader;
import com.google.gwt.user.client.rpc.SerializationStreamWriter;
/**
* This class implements the GWT serialization of {@link SingletonImmutableTable}.
*... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- Mirrored from bvs.wikidot.com/quest:attached-at-the-hip by HTTrack Website Copier/3.x [XR&CO'2014], Sun, 10 Jul 2022 02:52:... |
var fs = require('fs');
var path = require('path');
var common = require('./common');
var cp = require('./cp');
var rm = require('./rm');
common.register('mv', _mv, {
cmdOptions: {
'f': '!no_force',
'n': 'no_force',
},
});
// Checks if cureent file was created recently
function checkRecentCreated(sources,... |
package org.apache.activemq.util;
import java.util.concurrent.TimeUnit;
public class Wait {
public static final long MAX_WAIT_MILLIS = 30 * 1000;
public static final long SLEEP_MILLIS = 1000;
public interface Condition {
boolean isSatisified() throws Exception;
}
public static boolean waitF... |
<!--
Test Description:
Tests for the amp-fx-collection tag.
-->
<!doctype html>
<html ⚡ lang="en">
<head>
<meta charset="utf-8">
<link rel="canonical" href="./regular-html-version.html">
<meta name="viewport" content="width=device-width,minimum-scale=1">
<style amp-boilerplate>body{-webkit-animation:-amp-st... |
// This file was automatically generated by informer-gen
package v1beta1
import (
certificates_v1beta1 "k8s.io/api/certificates/v1beta1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
internalinterfaces "k8s.io/client-go/informers/inter... |
import time
from tests import unittest
from watchdog.observers.api import (
BaseObserver,
EventEmitter,
ObservedWatch,
EventDispatcher,
EventQueue
)
from watchdog.events import LoggingEventHandler, FileModifiedEvent
class TestObservedWatch(unittest.TestCase):
def test___eq__(self):
... |
namespace media {
class AlsaWrapper;
}
namespace alsa_util {
snd_pcm_format_t BitsToFormat(int bits_per_sample);
snd_pcm_t* OpenCaptureDevice(media::AlsaWrapper* wrapper,
const char* device_name,
int channels,
int sample_rate,
... |
#include "paddle/fluid/operators/controlflow/conditional_block_op.h"
#include "paddle/fluid/framework/new_executor/standalone_executor.h"
#include "paddle/fluid/operators/assign_op.h"
#include "paddle/fluid/platform/flags.h"
#include "paddle/phi/kernels/funcs/math_function.h"
#ifdef PADDLE_WITH_MKLDNN
#include "pad... |
set -o errexit
set -o nounset
set -o pipefail
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
source "${KUBE_ROOT}/build/common.sh"
source "${KUBE_ROOT}/build/lib/release.sh"
kube::build::verify_prereqs
kube::build::build_image
kube::build::run_build_command bash || true
|
package org.apache.zeppelin.display.angular
import org.apache.zeppelin.display.AngularObject
import org.apache.zeppelin.interpreter.InterpreterContext
/**
* Represents ng-model with angular object
*/
abstract class AbstractAngularModel(name: String) {
val context = InterpreterContext.get
val registry = conte... |
layout: news_item
title: 'Jekyll 2.3.0 Released'
date: 2014-08-10 20:38:34 -0400
author: parkr
version: 2.3.0
categories: [release]
---
This latest release of Jekyll includes a slew of enhancements and bug
fixes. Some of the highlights:
* Strange bug around spacing/indentation should be resolved. [It was a
curious ... |
using System;
namespace Valle.Utilidades
{
public class MyClass
{
public MyClass()
{
}
}
}
|
'use strict';
angular.module('sophe.doubleClickable', [])
.directive('doubleClickable', function() {
var directive = {
restrict: 'A',
scope: {
dblclickEvent: '&' //parent
},
link: function($scope, $element) {
$element.bind('dblclick',
function() {
$scope.$apply(function... |
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>AndFullyMatchWord - ScalaTest 2.1.5 - org.scalatest.matchers.MatcherFactory3.AndFullyMatchWord</title>
<meta name="description" conten... |
package org.yaml.snakeyaml.issues.issue103;
import java.util.List;
import java.util.Map;
import junit.framework.TestCase;
import org.yaml.snakeyaml.Util;
import org.yaml.snakeyaml.Yaml;
import org.yaml.snakeyaml.constructor.Constructor;
public class MergingTest extends TestCase {
@SuppressWarnings({ "rawtype... |
<?php include_once 'layout_top.php'; ?>
Partager
<?php include_once 'layout_bottom.php'; ?> |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Dialog example - jQuery Mobile Demos</title>
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile-1.3.2.min.css">
<link rel="stylesheet" href="../../_assets/css/jqm-demo... |
package test
type typeForTest [4][4]bool
|
package com.intellij.uiDesigner.lw;
import org.jdom.Element;
/**
* @author yole
*/
public class LwIntroColorProperty extends LwIntrospectedProperty {
public LwIntroColorProperty(final String name) {
super(name, "java.awt.Color");
}
public Object read(Element element) throws Exception {
return LwXmlR... |
<features name="${project.artifactId}-repo" xmlns="http://karaf.apache.org/xmlns/features/v1.2.1">
<feature name="${project.artifactId}" version="${project.version}">
<feature version="${cxf.karaf.version}">cxf-jaxrs</feature>
<feature>pentaho-requirejs-osgi-manager</feature>
<feature>pentaho-deployers<... |
class CreateDoorkeeperTables < ActiveRecord::Migration
def change
create_table :oauth_applications do |t|
t.string :name, :null => false
t.string :uid, :null => false
t.string :secret, :null => false
t.text :redirect_uri, :null => false
t.timestamps
e... |
<?php
namespace Zend\Date\Exception;
class InvalidArgumentException
extends \InvalidArgumentException
implements \Zend\Date\Exception
{
/*
protected $operand = null;
public function __construct($message, $code = 0, $e = null, $op = null)
{
$this->operand = $op;
parent::__con... |
package org.tinymediamanager.scraper.util;
import org.junit.Assert;
import org.junit.Test;
public class StrgUtilsTest {
@Test
public void testCompareVersion() {
Assert.assertTrue(StrgUtils.compareVersion("2.7", "2.7-SNAPSHOT") > 0);
Assert.assertTrue(StrgUtils.compareVersion("2.7-SNAPSHOT", "2.7") < 0);
... |
package com.intellij.psi.impl;
import com.intellij.openapi.components.ServiceManager;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.progress.ProgressIndicatorProvider;
import com.intellij.openapi.roots.FileIndexFacade;
import com.intellij.openapi.util.*;
import com.intellij.openapi.util.r... |
@InterfaceAudience.Private
package org.apache.hadoop.mapreduce.v2.jobhistory;
import org.apache.hadoop.classification.InterfaceAudience;
|
/*!
* Globalize Runtime v1.1.0-rc.5 2015-10-21T11:52Z Released under the MIT license
* http://git.io/TrdQbw
*/
(function( root, factory ) {
// UMD returnExports
if ( typeof define === "function" && define.amd ) {
// AMD
define([
"../globalize-runtime"
], factory );
} else if ( typeof exports === "obje... |
@interface SMDemoCell : SMMoreOptionsCell
@property (nonatomic, strong) UILabel *demoLabel;
@end
|
<?php
spl_autoload_register(function ($class) {
if (ltrim('SessionHandlerInterface', '/') === $class) {
require_once __DIR__.'/../Resources/stubs/SessionHandlerInterface.php';
}
if (0 !== strpos(ltrim($class, '/'), 'Symfony\Component\HttpFoundation')) {
return;
}
require_once __... |
/**
* Code Analysis - Output wrapped nodes info.
* ------------------------------------------
* This outputs information into wrapped-nodes.md saying what nodes have been wrapped and which ones haven't been.
*
* In the future, this should check which properites in the compiler haven't been used in this library by ... |
using namespace json_spirit;
using namespace std;
void EnsureWalletIsUnlocked();
namespace bt = boost::posix_time;
// Extended DecodeDumpTime implementation, see this page for details:
// http://stackoverflow.com/questions/3786201/parsing-of-date-time-from-string-boost
const std::locale formats[] = {
std::locale... |
<?xml version="1.0" encoding="UTF-8"?>
<Article xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ID="FOQ-F-VIII-90-133" Theme1="qualite" NumMAJ="34" Numero="VIII-90-133" dateCreation="2010-07-00" dateMAJ="2010-07-30" xsi:noNamespaceSchemaLocation="ofmArticles.xsd">
<Titre>Outil : Liste du matériel nécessaire po... |
<?php
namespace Symfony\Component\Validator\Tests\Constraints;
use Symfony\Component\Validator\Validation;
/**
* @since 2.5.3
* @author Bernhard Schussek <bschussek@gmail.com>
*/
class LegacyLanguageValidator2Dot4ApiTest extends LanguageValidatorTest
{
protected function getApiVersion()
{
retur... |
/**
* @fileoverview Uses Gulpjs and gulp-inject to glob files
*
* @author Scott Nath
*
* @requires NPM:gulp-inject
* @requires ./lib/get-options
*/
var inject = require('gulp-inject');
var mergeOptions = require('../get-options').mergeOptions;
/**
* Gulp stream functionality which performs g... |
<!DOCTYPE html>
<script type="text/javascript">
function show_files() {
var files = document.getElementById('f').files;
if(files) {
document.getElementById('result').innerHTML = 'PASS';
} else {
document.getElementById('result').innerHTML = 'FAIL';
}
}
</script>
<title>input type=file... |
shared_examples_for "an RSpec matcher" do |options|
let(:valid_value) { options.fetch(:valid_value) }
let(:invalid_value) { options.fetch(:invalid_value) }
it 'matches a valid value when using #== so it can be composed' do
expect(matcher).to eq(valid_value)
end
it 'does not match an invalid value when... |
<?php
namespace spec\Welgam\Core\Usecase\Update;
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
class DeleteSpec extends ObjectBehavior
{
/**
* @param Welgam\Core\Data\Update $update
* @param Welgam\Core\Usecase\Update\Delete\Repository $update_delete
*/
function let($update, $update_delet... |
package org.mvel2.compiler;
import junit.framework.TestCase;
import org.mvel2.MVEL;
import org.mvel2.ParserContext;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Asserts that the element at the end of the parse chain has its type pa... |
package netutils
import (
"net"
"github.com/docker/libnetwork/types"
)
// ElectInterfaceAddresses looks for an interface on the OS with the specified name
// and returns returns all its IPv4 and IPv6 addresses in CIDR notation.
// If a failure in retrieving the addresses or no IPv4 address is found, an error is re... |
<?php
namespace Herrera\Util;
use InvalidArgumentException;
use SplObjectStorage;
use UnexpectedValueException;
/**
* Manages the storage of "supported" objects.
*
* A supported object is anything that that causes the `isSupported()` method
* to return true. Ideally, it would be a particular class or interface t... |