text stringlengths 3 1.05M |
|---|
#include "erl_nif.h"
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <limits.h>
/* NIF interface declarations */
static int load(ErlNifEnv* env, void** priv_data, ERL_NIF_TERM load_info);
static int upgrade(ErlNifEnv* env, void** priv_data, void** old_priv_data, ERL_NIF_TERM load_info);
static v... |
<?php
// Protect from unauthorized access
defined('_JEXEC') or die;
if (!class_exists('JFormFieldList'))
{
require_once JPATH_LIBRARIES . '/joomla/form/fields/list.php';
}
/**
* Form Field class for FOF
* Components installed on the site
*
* @package FrameworkOnFramework
* @since 2.1
*/
class FOFFormField... |
The `wavefront` serializer translates the Telegraf metric format to the [Wavefront Data Format](https://docs.wavefront.com/wavefront_data_format.html).
## Configuration
```toml
[[outputs.file]]
files = ["stdout"]
## Use Strict rules to sanitize metric and tag names from invalid characters
## When enabled forwa... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
require File.expand_path('../../../../spec_helper', __FILE__)
require 'rubinius/ffi'
describe "FFI::MemoryPointer#write_array_of_type" do
it "needs to be reviewed for spec completeness"
end
|
/**
* Autogenerated by Thrift
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
*/
package com.twitter.test;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
import java.util.EnumMap;
import java.util.Set;
import java.util.HashSet;
import java.ut... |
import java.util.stream.Collectors;
import java.util.stream.Stream;
// "Fold expression into Stream chain" "true-preview"
class Test {
String foo(String a, String b, String c, String d) {
return Stream.of(a, b, c, d).map(String::trim).collect(Collectors.joining());
}
} |
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
package com.querydsl.sql.spatial;
import static com.querydsl.core.Target.*;
import static org.junit.Assert.*;
import java.util.ArrayList;
import java.util.List;
import org.geolatte.geom.*;
import org.geolatte.geom.codec.Wkt;
import org.junit.Test;
import com.querydsl.core.Target;
import com.querydsl.core.Tuple;
imp... |
<!---
category: Data
samplefwlink: http://go.microsoft.com/fwlink/p/?LinkId=620633&clcid=0x409
--->
# x:DeferLoadStrategy sample
This sample shows how to reduce your app's startup time by deferring the creation of elements defined in your markup until you really need them.
Specifically, this sample shows how to:... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `S_IWGRP` constant in crate `libc`.">
<meta name="keywords"... |
YUI.add('arraysort', function(Y) {
/**
Provides a case-insenstive comparator which can be used for array sorting.
@module arraysort
*/
var LANG = Y.Lang,
ISVALUE = LANG.isValue,
ISSTRING = LANG.isString;
/**
Provides a case-insenstive comparator which can be used for array sorting.
@class ArraySort
*/
Y.A... |
package glacier
import (
"io"
"sync"
"github.com/awslabs/aws-sdk-go/aws"
)
var oprw sync.Mutex
// AbortMultipartUploadRequest generates a request for the AbortMultipartUpload operation.
func (c *Glacier) AbortMultipartUploadRequest(input *AbortMultipartUploadInput) (req *aws.Request, output *AbortMultipartUpload... |
/* Includes ------------------------------------------------------------------*/
#include "stm32f7xx_hal.h"
/** @addtogroup STM32F7xx_HAL_Driver
* @{
*/
/** @defgroup PWR PWR
* @brief PWR HAL module driver
* @{
*/
#ifdef HAL_PWR_MODULE_ENABLED
/* Private typedef -----------------------------------------... |
<?php
/**
*
* @package yupe.modules.yupe.models
*
*/
/**
* This is the model class for table "Settings".
*
* The followings are the available columns in table 'Settings':
* @property string $id
* @property string $module_id
* @property string $param_name
* @property string $param_value
* @property string ... |
package options
import (
"encoding/json"
"fmt"
"io/ioutil"
"time"
"github.com/golang/glog"
"github.com/spf13/pflag"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apiserver/pkg/authentication/authenticatorfactory"
"k8s.io/apiserver/pkg/server"
authenticationclient "k8s.io/client-go/kubernetes/type... |
// ----------------------------------------------------------------------------------
//
// 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.apa... |
module.exports = {
'clone': require('./lang/clone'),
'cloneDeep': require('./lang/cloneDeep'),
'isArguments': require('./lang/isArguments'),
'isArray': require('./lang/isArray'),
'isBoolean': require('./lang/isBoolean'),
'isDate': require('./lang/isDate'),
'isElement': require('./lang/isElement'),
'isEm... |
package com.github.dynamicextensionsalfresco.resources;
import com.github.dynamicextensionsalfresco.annotations.AlfrescoService;
import com.github.dynamicextensionsalfresco.annotations.ServiceType;
import org.alfresco.model.ContentModel;
import org.alfresco.repo.dictionary.RepositoryLocation;
import org.alfresco.servi... |
'use strict';
var Event = require('./event');
var EventTarget = {
onopen: null,
onmessage: null,
onerror: null,
onclose: null,
addEventListener: function(eventType, listener, useCapture) {
this.on(eventType, listener);
},
removeEventListener: function(eventType, listener, useCapture) {
... |
<?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... |
namespace net {
// Implementation of ProxyConfigService that returns a fixed result.
class NET_EXPORT ProxyConfigServiceFixed : public ProxyConfigService {
public:
explicit ProxyConfigServiceFixed(const ProxyConfig& pc);
virtual ~ProxyConfigServiceFixed();
// ProxyConfigService methods:
virtual void AddObser... |
/*
* datepicker_options.js
*/
(function($) {
module("datepicker: options");
test('setDefaults', function() {
var inp = init('#inp');
equal($.datepicker._defaults.showOn, 'focus', 'Initial showOn');
$.datepicker.setDefaults({showOn: 'button'});
equal($.datepicker._defaults.showOn, 'button', 'Change default show... |
.bk-ui-spinner {
position: relative;
display: inline-block;
overflow: hidden;
padding: 0;
vertical-align: middle;
}
.bk-ui-spinner-input {
border: none;
background: none;
color: inherit;
padding: 0;
margin: .2em 0;
vertical-align: middle;
margin-left: .4em;
margin-right: 22px;
}
.bk-ui-spinner-button {
w... |
<TS language="ky" version="2.0">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>Жаң даректи жасоо</translation>
</message>
<message>
<source>&Delete</source>
<translation>Ө&чүрүү</translation>
</message>
... |
'use strict';
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Any commits to this file should be reviewed with security in mind. *
* Changes to this file can potentially create security vulnerabilities. *
* An approval from 2 Core members with history of modifying ... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<!-- Set the viewport width to device width for mobile -->
<meta name="viewport" content="width=device-width" />
<title>rendr.it</title>
<!-- Include head block assets -->
{% for f in environment['styles'] %}
<link rel="... |
/*******************************
Statistic
*******************************/
/* Standalone */
.ui.statistic {
display: inline-block;
margin: 1em 0em;
max-width: 175px;
}
.ui.statistic + .ui.statistic {
margin: 0em 0em 0em 1em;
}
.ui.statistic:first-child {
margin-top: 0em;
}
.ui.statistic:las... |
//////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2005-2012. 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)
//
// See http://www.boost.org/libs/contain... |
using jQueryApi.UI.Widgets;
using System;
using System.Runtime.CompilerServices;
namespace Serenity
{
[Imported]
public class FormKeyAttribute : Attribute
{
public FormKeyAttribute(string value)
{
this.Value = value;
}
[IntrinsicProperty]
... |
// .NAME vtkAMRInterpolatedVelocityField - A concrete class for obtaining
// the interpolated velocity values at a point in AMR data.
//
//
// .SECTION Description
// The main functionality supported here is the point location inside vtkOverlappingAMR data set.
#ifndef vtkAMRInterpolatedVelocityField_h
#define vtkAM... |
$ProjectPath = "$PSScriptRoot\..\..\.." | Convert-Path
$ProjectName = (Get-ChildItem $ProjectPath\*\*.psd1 | Where-Object -FilterScript {
($_.Directory.Name -match 'source|src' -or $_.Directory.Name -eq $_.BaseName) -and
$(try
{
Test-ModuleManifest $_.FullName -ErrorAction St... |
<!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.5.0_22) on Wed Apr 03 10:03:18 GMT-03:00 2013 -->
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
Uses of Package opennlp.too... |
<html>
<head>
<link rel="stylesheet" href="resources/detached-style.css" type="text/css" media="screen">
</head>
<body onload="finishTest()">
<p><a href="https://bugs.webkit.org/show_bug.cgi?id=45205">Bug 45205</a>:
Test that <link> elements only have stylesheets when in document.</p>
<pre id=result></pre>
<script>
... |
[CmdletBinding(PositionalBinding=$false)]
Param(
[string] $verbosity = "minimal",
[string] $architecture = "",
[string] $version = "Latest",
[string] $runtime = "dotnet"
)
. $PSScriptRoot\tools.ps1
$dotnetRoot = Join-Path $RepoRoot ".dotnet"
$installdir = $dotnetRoot
try {
if ($architecture -and $archite... |
interface Foo {}
class FooEx<T> implements Foo {}
class Bar {
{
Foo f = new FooEx<<caret>>();
}
} |
using System;
using System.Collections;
using System.Data;
using System.Data.SqlClient;
namespace StructureMap.DataAccess.MSSQL
{
[Pluggable("MSSQL")]
public class MSSQLDatabaseEngine : IDatabaseEngine
{
private readonly string _connectionString;
[DefaultConstructor]
p... |
'''This file generates shell code for the setup.SHELL scripts to set environment variables'''
from __future__ import print_function
import argparse
import copy
import errno
import os
import platform
import sys
CATKIN_MARKER_FILE = '.catkin'
system = platform.system()
IS_DARWIN = (system == 'Darwin')
IS_WINDOWS = (sy... |
// This file describes the package to typescript.
/**
* Returns the number of milliseconds since the page was loaded (if browser)
* or the node process was started.
*/
declare function now(): number;
export = now;
|
namespace Si
{
struct file_handle
{
native_file_descriptor handle;
file_handle() BOOST_NOEXCEPT : handle(no_file_handle)
{
}
file_handle(file_handle &&other) BOOST_NOEXCEPT : handle(no_file_handle)
{
swap(other);
}
explicit file_hand... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Memoria.Debugger
{
[Flags]
public enum MemoryProtection
{
Execute = 0x10,
ExecuteRead = 0x20,
ExecuteReadWrite = 0x40,
ExecuteWriteCopy = 0x80,
NoAccess = 0x01,
R... |
var StellarBase =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ re... |
<html>
<body>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores.</p>
</body>
</html>
|
/**
* Module dependencies.
*/
var util = require('util');
var mime = require('mime');
var FormData = require('form-data');
var PassThrough = require('readable-stream/passthrough');
/**
* Initialize a new `Part` for the given `req`.
*
* @param {Request} req
* @api public
* @deprecated pass a readable stream in... |
package org.optaplanner.persistence.jaxb.api.score.buildin.bendablebigdecimal;
import org.optaplanner.core.api.score.buildin.bendablebigdecimal.BendableBigDecimalScore;
import org.optaplanner.persistence.jaxb.api.score.AbstractScoreJaxbAdapter;
/**
* {@inheritDoc}
*/
public class BendableBigDecimalScoreJaxbAdapte... |
package getter
import (
"archive/tar"
"compress/gzip"
"fmt"
"io"
"os"
"path/filepath"
)
// TarGzipDecompressor is an implementation of Decompressor that can
// decompress tar.gzip files.
type TarGzipDecompressor struct{}
func (d *TarGzipDecompressor) Decompress(dst, src string, dir bool) error {
// If we're g... |
event_t next_event; // Next event
state_t state; // Current state
event_t event; // Current event
|
package org.apache.hadoop.hive.ql.plan;
import java.io.Serializable;
@explain(displayName="Extract")
public class extractDesc implements Serializable {
private static final long serialVersionUID = 1L;
private exprNodeDesc col;
public extractDesc() { }
public extractDesc(final exprNodeDesc col) {
this.co... |
package org.pentaho.di.trans.steps.missing;
import org.pentaho.di.i18n.BaseMessages;
import org.pentaho.di.trans.Trans;
import org.pentaho.di.trans.TransMeta;
import org.pentaho.di.trans.step.StepDataInterface;
import org.pentaho.di.trans.step.StepMeta;
import org.pentaho.di.trans.step.StepMetaInterface;
import org.... |
#include "OgreGLHardwarePixelBuffer.h"
#include "OgreGLTexture.h"
#include "OgreGLSupport.h"
#include "OgreGLPixelFormat.h"
#include "OgreException.h"
#include "OgreLogManager.h"
#include "OgreStringConverter.h"
#include "OgreBitwise.h"
#include "OgreGLFBORenderTexture.h"
#include "OgreRoot.h"
namespace Ogre {
//----... |
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<title></title>
</head>
<body>
<a href="#" id='fahrenheit'>Fahrenheit</a> | <a href="#" id="celsius">Celsius</a>
<div></div>
<script type="text/javascript">
$(document).ready(function(){
if... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Text;
using System.Text.RegularExpressions;
using System.Web;
using Hyena;
using Hyena.Json;
namespace Lastfm
{
public enum RequestType {
Read,
SessionRequest, // Needs the signature, but we don't have ... |
namespace ts {
describe("convertToBase64", () => {
function runTest(input: string): void {
const actual = convertToBase64(input);
const expected = sys.base64encode!(input);
assert.equal(actual, expected, "Encoded string using convertToBase64 does not match buffer.toS... |
package org.kie.internal.jaxb;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import ja... |
package org.apache.activemq.artemis.core.security.jaas;
import javax.naming.Context;
import javax.naming.NameClassPair;
import javax.naming.NamingEnumeration;
import javax.naming.directory.DirContext;
import javax.naming.directory.InitialDirContext;
import javax.security.auth.Subject;
import javax.security.auth.callb... |
<?php
namespace Drupal\Tests\hal\Functional\EntityResource\CommentType;
use Drupal\Tests\rest\Functional\BasicAuthResourceTestTrait;
use Drupal\Tests\rest\Functional\EntityResource\CommentType\CommentTypeResourceTestBase;
/**
* @group hal
*/
class CommentTypeHalJsonBasicAuthTest extends CommentTypeResourceTestBase... |
package org.jivesoftware.util;
import org.apache.commons.text.StringEscapeUtils;
import org.dom4j.*;
import org.dom4j.io.OutputFormat;
import org.dom4j.io.SAXReader;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.Nonnull;
import java.io.*;
import java.nio.charset.StandardCharsets;
... |
/**
* @file win32/os.h
* @brief This file in included in all Apache source code. It contains definitions
* of facilities available on _this_ operating system (HAVE_* macros),
* and prototypes of OS specific functions defined in os.c or os-inline.c
*
* @defgroup APACHE_OS_WIN32 win32
* @ingroup APACHE_OS
* @... |
static const int xmppLogLevel = XMPP_LOG_LEVEL_WARN; // | XMPP_LOG_FLAG_TRACE;
#else
static const int xmppLogLevel = XMPP_LOG_LEVEL_WARN;
#endif
@interface XMPPvCardTempModule()
- (void)_updatevCardTemp:(XMPPvCardTemp *)vCardTemp forJID:(XMPPJID *)jid;
- (void)_fetchvCardTempForJID:(XMPPJID *)jid;
@end
////////... |
All my dotfiles, such as .vimrc, .tmux.conf, etc.
|
```
Updates the elements in the side menu
```
##Example
```
$.ui.updateSideMenuElements(elements);
```
##Parameters
```
Elements String|Object
```
##Returns
```
undefined
```
##Detail
$.ui.updateSideMenuElements(elements) will update the side menu with the elements passed in
```
<... |
package org.springframework.security.web.savedrequest;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
... |
<!DOCTYPE html>
<html manifest="cache.manifest">
{% include 'templates.jinja/base.head.html' %}
<body>
{% block body %}
<!-- {% block id %}{% endblock %} -->
<div data-role="page" id="{{ self.id() }}" data-theme="b">
{% block header %}
<div data-role="header" data-theme="b">
<a href="" class="ui-btn-left hm-b... |
package org.apache.camel.management;
import javax.management.MBeanServer;
import javax.management.ObjectName;
import org.apache.camel.builder.RouteBuilder;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledOnOs;
import org.junit.jupiter.api.condition.OS;
import static org.apache.came... |
"""Certificate chain where the intermediate has a smaller validity range
than the other certificates, making it easy to violate just its validity.
Root: 2015/01/01 -> 2016/01/01
Intermediate: 2015/03/01 -> 2015/09/01
Target: 2015/01/01 -> 2016/01/01
"""
import sys
sys.path += ['../..']
import ... |
package com.jme3.network.util;
import com.jme3.network.Message;
import com.jme3.network.MessageConnection;
import com.jme3.network.MessageListener;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashS... |
// Copyright 2021 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
<?php
namespace Twig\Node\Expression\Binary;
class_exists('Twig_Node_Expression_Binary_NotEqual');
if (\false) {
class NotEqualBinary extends \Twig_Node_Expression_Binary_NotEqual
{
}
}
|
// Copyright 2015 The appc Authors
//
// 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 t... |
namespace chromeos {
namespace {
void OnDisplayOwnershipChanged(
const dbus::ExportedObject::ResponseSender& response_sender,
scoped_ptr<dbus::Response> response,
bool status) {
dbus::MessageWriter writer(response.get());
writer.AppendBool(status);
response_sender.Run(response.Pass());
}
} // names... |
'use strict';
const ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
module.exports = ReactPropTypesSecret;
|
package com.intellij.ide.plugins;
/**
* @author max
*/
public class HelpSetPath {
private final String file;
private final String path;
public static final HelpSetPath[] EMPTY = new HelpSetPath[0];
public HelpSetPath(String file, String path) {
this.file = file;
this.path = path;
}
public Stri... |
const Foo = createClass({
displayName: 'Foo'
});
const Bar = factory({
displayName: 'Bar'
});
|
package routers
import (
"fmt"
"github.com/gogits/gogs/models"
"github.com/gogits/gogs/modules/base"
"github.com/gogits/gogs/modules/middleware"
"github.com/gogits/gogs/modules/setting"
"github.com/gogits/gogs/routers/user"
)
const (
HOME base.TplName = "home"
EXPLORE_REPOS base.TplName = "explore/r... |
package org.w3c.domts.level1.core;
import org.w3c.dom.*;
import org.w3c.domts.DOMTestCase;
import org.w3c.domts.DOMTestDocumentBuilderFactory;
/**
* The "getElementsByTagName(name)" method may use the
* special value "*" to match all tags in the element
* tree.
* Create a NodeList of all the descendant ele... |
package org.apache.camel.component.undertow;
import io.undertow.util.HttpString;
/**
* Copy of {@link org.apache.camel.Exchange} headers fields, to return them as {@link HttpString} for Undertow
*/
public final class ExchangeHeaders {
public static final HttpString AUTHENTICATION = new HttpString("CamelAuthen... |
class Rdio < Cask
url 'http://www.rdio.com/media/static/desktop/mac/Rdio.dmg'
homepage 'http://www.rdio.com'
version 'latest'
no_checksum
link 'Rdio.app'
end
|
from django.shortcuts import render
def index(request):
return render(request, 'freesquare/index.html')
|
package com.hazelcast.config;
import com.hazelcast.test.HazelcastParallelClassRunner;
import com.hazelcast.test.annotation.ParallelTest;
import com.hazelcast.test.annotation.QuickTest;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;
import static com.hazelcas... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
package com.intellij.psi.impl.source.tree;
import com.intellij.lang.Language;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiElementVisitor;
import com.intellij.psi.PsiWhiteSpace;
import com.intellij.psi.TokenType;
import org.jetbrains.annotations.NotNull;
public class PsiWhiteSpaceImpl extends Leaf... |
def foo(x):
<selection>try:
print(1)
finally:
pass</selection>
return x
|
package pva.beans4;
/**
* Insert the type's description here.
* Creation date: (10/23/2002 11:16:40 AM)
* @author:
*/
import dbbeans.categoriacliente.*;
import dbbeans.niveldeprecio.*;
import dbbeans.viadeembarque.*;
import java.sql.Connection;
import pva.beans4.Bean42b;
public class BeanHelper42b{
private Bea... |
<?php declare(strict_types=1);
namespace PhpParser\Node\Expr\BinaryOp;
use PhpParser\Node\Expr\BinaryOp;
class NotIdentical extends BinaryOp
{
public function getOperatorSigil() : string {
return '!==';
}
public function getType() : string {
return 'Expr_BinaryOp_NotIdentical';
}... |
<?php
namespace ZendTest\Barcode\Object;
use Zend\Barcode;
/**
* @group Zend_Barcode
*/
class CodabarTest extends TestCommon
{
protected function getBarcodeObject($options = null)
{
return new Barcode\Object\Codabar($options);
}
public function testType()
{
$this->assertS... |
YUI.add('event-delegate', function (Y, NAME) {
/**
* Adds event delegation support to the library.
*
* @module event
* @submodule event-delegate
*/
var toArray = Y.Array,
YLang = Y.Lang,
isString = YLang.isString,
isObject = YLang.isObject,
isArray =... |
package com.intellij.formatting.alignment;
import com.intellij.lang.ASTNode;
import com.intellij.openapi.util.Pair;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.psi.impl.source.tree.TreeUtil;
import com.intellij.psi.tree.IElementType;
import com.intellij.psi.tree.TokenSet;
import com.intellij... |
package fields
import (
"bytes"
"fmt"
"sort"
"strings"
"k8s.io/apimachinery/pkg/selection"
)
// Selector represents a field selector.
type Selector interface {
// Matches returns true if this selector matches the given set of fields.
Matches(Fields) bool
// Empty returns true if this selector does not res... |
module.exports = [
// see: https://github.com/tastejs/todomvc/issues/832
// chapling brunch does not mark items as completed via the completed CSS class
'TodoMVC - chaplin-brunch, No Todos, should hide #main and #footer',
'TodoMVC - chaplin-brunch, Mark all as completed, should allow me to mark all items as comple... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
// ------------------------------------------------------------------------
/**
* MySQLi Database Adapter Class - MySQLi only works with PHP 5
*
* Note: _DB is an extender class that the app controller
* creates dynamically based on whet... |
<?php
namespace Symfony\Component\Security\Authentication\Token;
/**
* PreAuthenticatedToken implements a pre-authenticated token.
*
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/
class PreAuthenticatedToken extends Token
{
/**
* Constructor.
*/
public function __construc... |
class A<T1, T2> {
constructor(private map: (value: T1) => T2) {
}
}
class C extends A<number, string> {
// Ensure 'value' is not of type 'any' by invoking it with type arguments.
constructor() { super(value => String(value<string>())); }
}
//// [superCallParameterContextualTyping2.js]
var __extend... |
package quotasbat
import (
"context"
"strconv"
"testing"
"time"
"github.com/01org/ciao/bat"
)
const standardTimeout = time.Second * 300
func findQuota(qds []bat.QuotaDetails, name string) *bat.QuotaDetails {
for i := range qds {
if qds[i].Name == name {
return &qds[i]
}
}
return nil
}
func restoreQu... |
'use strict';
module.exports = function(Autocompletion) {
Autocompletion.validatesLengthOf('text', {min: 3});
};
|
from panda3d.core import *
from panda3d.direct import *
import ShtikerPage
from direct.task.Task import Task
from direct.gui.DirectGui import *
from panda3d.core import *
from panda3d.direct import *
from toontown.toonbase import TTLocalizer
from direct.directnotify import DirectNotifyGlobal
from toontown.hood import Z... |
'use strict';
var setInnerHTML = require('setInnerHTML');
var DOMNamespaces = require('DOMNamespaces');
describe('setInnerHTML', () => {
describe('when the node has innerHTML property', () => {
it('sets innerHTML on it', () => {
var node = document.createElement('div');
var html = '<h1>hello</h1>'... |
FROM balenalib/up-core-ubuntu:eoan-run
ENV NODE_VERSION 12.21.0
ENV YARN_VERSION 1.22.4
RUN buildDeps='curl libatomic1' \
&& set -x \
&& for key in \
6A010C5166006599AA17F08146C2130DFD2497F5 \
; do \
gpg --keyserver pgp.mit.edu --recv-keys "$key" || \
gpg --keyserver keyserver.pgp.com --recv-keys "$key" || \
... |
//
// Copyright 2011-2014 NimbusKit
//
// 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 t... |
package org.apache.spark.mllib.evaluation.binary
/**
* Trait for a binary confusion matrix.
*/
private[evaluation] trait BinaryConfusionMatrix {
/** weighted number of true positives */
def weightedTruePositives: Double
/** weighted number of false positives */
def weightedFalsePositives: Double
/** we... |
var path = require('path')
var config = require('../config')
var utils = require('./utils')
var projectRoot = path.resolve(__dirname, '../')
var env = process.env.NODE_ENV
// check env & config/index.js to decide whether to enable CSS source maps for the
var cssSourceMapDev = (env === 'development' && config.dev.cssSo... |