text stringlengths 3 1.05M |
|---|
package net.liftweb
package http
import xml.{NodeSeq, Text}
import org.specs2.matcher.XmlMatchers
import org.specs2.mutable.Specification
import common._
import util.Helpers._
/**
* System under specification for Bindings.
*/
object BindingsSpec extends Specification with XmlMatchers {
"Bindings Bindings".ti... |
YUI.add('selector-native', function(Y) {
(function(Y) {
/**
* The selector-native module provides support for native querySelector
* @module dom
* @submodule selector-native
* @for Selector
*/
/**
* Provides support for using CSS selectors to query the DOM
* @class Selector
* @static
* @for Selector
*/
Y... |
var baseIsEqual = require('./baseIsEqual');
/**
* The base implementation of `_.isMatch` without support for callback
* shorthands and `this` binding.
*
* @private
* @param {Object} object The object to inspect.
* @param {Array} props The source property names to match.
* @param {Array} values The source values... |
/*
* 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
* distribut... |
<?php
namespace Zend\Authentication\Adapter;
use Zend\Authentication;
use Zend\Http\Request as HTTPRequest;
use Zend\Http\Response as HTTPResponse;
use Zend\Uri\UriFactory;
use Zend\Crypt\Utils as CryptUtils;
/**
* HTTP Authentication Adapter
*
* Implements a pretty good chunk of RFC 2617.
*
* @todo Supp... |
package org.kiwi.calculation;
import static java.util.Comparator.comparingLong;
import static java.util.stream.Collectors.toList;
import static org.kiwi.proto.FloatingAverageProtos.FloatingAverage.AlertState.NONE;
import static org.kiwi.proto.FloatingAverageProtos.FloatingAverage.newBuilder;
import java.math.BigDecim... |
AS generate `build` directory automatically.
`build` directory and `BUILD` file collide in the case-insensitive environment.
So, avoid the collision by the following flow。
```sh
chmod +x setup_build_file.sh
./gradlew clean
./setup_build_file.sh
```
It generate a symbolic link of `BUILD_FILE`.
## Create symbolic lin... |
title: Python Bool Function
localeTitle: Функция Python Bool
---
`bool()` - встроенная функция в Python 3. Эта функция возвращает логическое значение, то есть True или False. Он принимает один аргумент, `x` .
## аргументы
Он принимает один аргумент, `x` . `x` преобразуется с использованием стандартной [процедуры тест... |
/* jshint -W117, -W030 */
/* jshint multistr:true */
describe('htSidebar directive: ', function () {
var dropdownElement;
var el;
var innerElement;
var isOpenClass = 'dropy';
var scope;
beforeEach(module('app.layout'));
beforeEach(function() {
bard.inject('$compile', '$rootScope');... |
@implementation THTabBarRelationshipSegue
- (void)perform {
THTabBarController *tabBarController = (THTabBarController *)self.sourceViewController;
NSMutableArray *tabBarItems = [NSMutableArray arrayWithArray:tabBarController.tabBarItems];
NSString *className = NSStringFromClass([self.destinationViewController cl... |
package com.datastax.spark.connector.rdd.partitioner
import scala.collection.JavaConversions._
import scala.collection.parallel.ForkJoinTaskSupport
import scala.concurrent.forkjoin.ForkJoinPool
import org.apache.cassandra.thrift.Cassandra
import org.apache.spark.Partition
import com.datastax.driver.core.{Metadata, T... |
namespace boost {
namespace polygon {
struct segment_concept {};
template <typename ConceptType>
struct is_segment_concept {
typedef gtl_no type;
};
template <>
struct is_segment_concept<segment_concept> {
typedef gtl_yes type;
};
template <typename ConceptType>
struct is_mutable_segment_concept {
typedef gtl... |
const char kFlags1[] = "flag1";
const char kFlags2[] = "flag2";
const char kFlags3[] = "flag3";
const char kFlags4[] = "flag4";
const char kFlags5[] = "flag5";
const char kSwitch1[] = "switch";
const char kSwitch2[] = "switch2";
const char kSwitch3[] = "switch3";
const char kValueForSwitch2[] = "value_for_switch2";
c... |
#ifndef __GPIO_H__
#define __GPIO_H__
//*****************************************************************************
//
// If building with a C++ compiler, make all of the definitions in this header
// have a C binding.
//
//*****************************************************************************
#ifd... |
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
namespace System.Linq.Parallel
{
/// <summary>
/// A repartitioning stream must take input data that has already been partitioned and
/// redistribute its contents based on a new partitioning algorithm. This is accomplished... |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<!-- This is a checkstyle configuration file. For descriptions of
what the following rules do, please see the checkstyle configuration
page at... |
require('./angular-resource');
module.exports = 'ngResource';
|
<?php
namespace Mmoreram\GearmanBundle\Tests\Service;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
/**
* Tests GearmanCacheWrapper class
*/
class GearmanCacheWrapperTest extends WebTestCase
{
/**
* Test service can be instanced through container
*/
public function testGearmanClientLoad... |
#ifndef QuotesData_h
#define QuotesData_h
#include <wtf/PassRefPtr.h>
#include <wtf/RefCounted.h>
#include <wtf/Vector.h>
#include <wtf/text/WTFString.h>
namespace WebCore {
#if COMPILER(MSVC)
#pragma warning(push)
#pragma warning(disable: 4200) // Disable "zero-sized array in struct/union" warning
#endif
class Q... |
data.noreceived
===============
This plugin very simply blocks any mail arriving at your system that has no
`Received` headers.
This is an aggressive anti-spam measure, but works because all real mail
relays will add a `Received` header according to the RFCs. It may false
positive on some bulk mail that uses a custom... |
using System.Text.Json;
using Azure.Core;
namespace Azure.ResourceManager.Cdn.Models
{
public partial class DeliveryRuleCondition : IUtf8JsonSerializable
{
void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
{
writer.WriteStartObject();
writer.WritePropertyName("name... |
<?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... |
<?php
namespace PHPExiftool\Driver\Tag\PictureInfo;
use JMS\Serializer\Annotation\ExclusionPolicy;
use PHPExiftool\Driver\AbstractTag;
/**
* @ExclusionPolicy("all")
*/
class ColorMode extends AbstractTag
{
protected $Id = 'ColorMode';
protected $Name = 'ColorMode';
protected $FullName = 'APP12::Pi... |
FOUNDATION_EXPORT double ReactiveCocoaVersionNumber;
//! Project version string for ReactiveCocoa.
FOUNDATION_EXPORT const unsigned char ReactiveCocoaVersionString[];
#import "EXTKeyPathCoding.h"
#import "EXTScope.h"
#import "NSArray+RACSequenceAdditions.h"
#import "NSData+RACSupport.h"
#import "NSDictionary+RACSeque... |
import {
Elm
} from '../Main'
document.addEventListener('DOMContentLoaded', () => {
const target = document.createElement('div')
document.body.appendChild(target)
Elm.Main.init({
node: target
})
})
|
#include "config.h"
#if ENABLE(SVG)
#include "SVGViewSpec.h"
#include "Document.h"
#include "SVGAnimatedTransformList.h"
#include "SVGFitToViewBox.h"
#include "SVGNames.h"
#include "SVGParserUtilities.h"
#include "SVGSVGElement.h"
#include "SVGTransformable.h"
namespace WebCore {
// Define custom animated propert... |
.class Landroid/util/Xml$XmlSerializerFactory;
.super Ljava/lang/Object;
.source "Xml.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroid/util/Xml;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x8
name = "XmlSerializerFactory"
.end... |
all: init langcounts.csv topndone commitlangsdone plotlangsdone
# make a csv file with counts of projects per language
langcounts.csv:
bq -q --format=csv --headless query 'Select count(*), repository.language from publicdata:samples.github_nested group by repository.language' > langcounts.csv
sed -i 1d langcounts.c... |
#undef DEBUG
#include <linux/fs.h>
#include <linux/mount.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/err.h>
#include <linux/configfs.h>
#include "configfs_internal.h"
DECLARE_RWSEM(configfs_rename_sem);
/*
* Protects mutations of configfs_dirent linkage together with proper i_mutex
* Als... |
/**
* The reveal.js markdown plugin. Handles parsing of
* markdown inside of presentations as well as loading
* of external markdown documents.
*/
(function( root, factory ) {
if( typeof exports === 'object' ) {
module.exports = factory( require( './marked' ) );
}
else {
// Browser globals (root is window)
... |
<?php
namespace Symfony\Component\Security\Http\Authentication;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
/**
* Interface for a custom authentication success handler
*
* If you want to cus... |
from boto.compat import json
from boto.exception import JSONResponseError
from boto.connection import AWSAuthConnection
from boto.regioninfo import RegionInfo
from boto.cognito.sync import exceptions
class CognitoSyncConnection(AWSAuthConnection):
"""
Amazon Cognito Sync
Amazon Cognito Sync provides an AW... |
// Karma configuration
// Generated on Sat Sep 05 2015 13:46:38 GMT-0700 (PDT)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '..',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword... |
(function(angular) {
'use strict';
angular.module('ngAnimateChildren', ['ngAnimate'])
.controller('mainController', function() {
this.animateChildren = false;
this.enterElement = false;
});
})(window.angular); |
using CIMEL.Core;
using CIMELDraw;
using MathWorks.MATLAB.NET.Arrays;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace CIMEL.Figure
{
class multiplelines
{
public void Draw() {
// draw aeronent invers... |
<html>
<script>
if (window.testRunner)
testRunner.dumpAsText();
window.onload = crash;
function crash()
{
document.body.offsetTop;
block1.style.position = 'absolute';
float1.style.display = 'none';
document.body.offsetTop;
block1.innerHTML = "PASS";
}
</script>
<div id="block1">
<span id="flo... |
<?php
namespace Refinery29\Event\Test\Unit;
use League\Event\CallbackListener;
use League\Event\EventInterface;
use League\Event\ListenerInterface;
use Psr\Container;
use Refinery29\Event\LazyListener;
use stdClass;
class LazyListenerTest extends \PHPUnit_Framework_TestCase
{
public function testImplementsInte... |
<?xml version="1.0"?>
<!--
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Signifyd_Connect" setup_version="1.0.0">
<sequence>
<module name="Magento_Sales" />
<module name="M... |
<?php
namespace GuzzleHttp\Cookie;
/**
* Persists non-session cookies using a JSON formatted file
*/
class FileCookieJar extends CookieJar
{
/** @var string filename */
private $filename;
/** @var bool Control whether to presist session cookies or not. */
private $storeSessionCookies;
/**
... |
package org.pentaho.di.trans.steps.splitfieldtorows;
import java.util.regex.Pattern;
import java.util.regex.PatternSyntaxException;
import org.pentaho.di.core.Const;
import org.pentaho.di.core.exception.KettleException;
import org.pentaho.di.core.row.RowDataUtil;
import org.pentaho.di.core.row.RowMetaInterface;
imp... |
Simple wrapper for uploading and deleting files from Google Cloud Storage.
Thanks to @bsphere for https://github.com/bsphere/node-gcs
## Installation
```
npm install cloud-storage
```
## Getting Started
1. Sign into the Google Cloud Console site: https://console.developers.google.com
2. Go to your project and un... |
package org.onosproject.yangutils.datamodel;
import org.onosproject.yangutils.datamodel.exceptions.DataModelException;
import org.onosproject.yangutils.datamodel.utils.Parsable;
import org.onosproject.yangutils.datamodel.utils.YangConstructType;
import static org.onosproject.yangutils.datamodel.utils.DataModelUtils... |
<?php
namespace Drupal\simpletest\Form;
use Drupal\Core\Form\ConfigFormBase;
use Drupal\Core\Form\FormStateInterface;
/**
* Configure simpletest settings for this site.
*/
class SimpletestSettingsForm extends ConfigFormBase {
/**
* {@inheritdoc}
*/
public function getFormId() {
return 'simpletest_se... |
"""
werkzeug.contrib.limiter
~~~~~~~~~~~~~~~~~~~~~~~~
A middleware that limits incoming data. This works around problems with
Trac_ or Django_ because those directly stream into the memory.
.. _Trac: http://trac.edgewall.org/
.. _Django: http://www.djangoproject.com/
:copyright: (c) 2010... |
import { EventEmitter, Component, ViewEncapsulation, ChangeDetectionStrategy, NgZone, Input, Output, ViewChild, ChangeDetectorRef, ContentChildren, NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { DomHandler } from 'primeng/dom';
import { MessageService, PrimeTemplate, SharedMod... |
package com.lightcrafts.mediax.jai;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.Polygon;
import java.awt.Rectangle;
import java.awt.RenderingHints;
import java.awt.Shape;
import java.awt.geom.AffineTransform;
import java.awt.geom.Area;
import java.awt.geom.GeneralPath;
import java.awt.geom.Path... |
package org.wso2.carbon.mss.internal.router.beanconversion;
import java.io.StringReader;
import java.io.StringWriter;
import java.lang.reflect.Type;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
/**
* Media type converter for text/xml mime type.
*/
publi... |
package brooklyn.location.access;
import static com.google.common.base.Preconditions.checkNotNull;
import com.google.common.base.Objects;
import brooklyn.location.Location;
public class PortMapping {
public PortMapping(String publicIpId, int publicPort, Location target, int privatePort) {
super();
... |
"""
==================================
Color Quantization using K-Means
==================================
Performs a pixel-wise Vector Quantization (VQ) of an image of the summer palace
(China), reducing the number of colors required to show the image from 96,615
unique colors to 64, while preserving the overall appe... |
package com.github.haixing_hu.io;
import java.io.FilterInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.zip.Adler32;
import java.util.zip.CRC32;
import java.util.zip.Checksum;
import static com.github.haixing_hu.CommonsMessages.UNSUPPORTED_CHECKSUM_ALGORITHM;
/**
* Read bytes t... |
using System;
namespace TestStack.BDDfy.Configuration
{
public class TestRunnerFactory : ProcessorFactory
{
internal TestRunnerFactory(Func<IProcessor> factory) : base(factory)
{
StopExecutionOnFailingThen = false;
}
internal TestRunnerFactory(Func<IProcessor> fact... |
<!doctype html>
<html lang="en" class="no-js"> <!--<![endif]-->
<head>
<meta charset="">
<meta http-equiv="X-UA-Compatible" content="">
<link rel="stylesheet" href="themes/default/default.css" type="text/css" media="screen" />
<link rel="stylesheet" href="nivo-slider.css" type="text/css" media="scre... |
<?xml version="1.0"?>
<!--
This file is part of the Sylius package.
(c) Paweł Jędrzejewski
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
-->
<constraint-mapping xmlns="http://symfony.com/schema/dic/constraint-mapping"
... |
//=====================================================================
//
//File: $RCSfile: PlaceHolderUtil.java,v $
//Version: $Revision: 1.9 $
//Modified: $Date: 2012/01/23 21:27:40 $
//
//(c) Copyright 2004-2014 by Mentor Graphics Corp. All rights reserved.
//
//=====================================... |
module KobzaCRM module Domain
class Party
attr_accessor :name
attr_accessor :id
attr_reader :addresses
attr_reader :roles
def initialize(name)
@name = name
@addresses = []
@roles = []
end
def add_address(address)
@addresses << address
end
def add_role(rol... |
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using Newtonsoft.Json.Linq;
using Xunit;
namespace Microsoft.DotNet.ProjectModel.Server.Tests
{
public static class JObjectEx... |
<?php
final class PhabricatorDashboardPanelTransactionQuery
extends PhabricatorApplicationTransactionQuery {
public function getTemplateApplicationTransaction() {
return new PhabricatorDashboardPanelTransaction();
}
}
|
/*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed... |
/*csslint box-model:false*/
/*
Box-model set to false because we're setting a height on select elements, which
also have border and padding. This is done because some browsers don't render
the padding. We explicitly set the box-model for select elements to border-box,
so we can ignore the csslint warning.
*/
.pure-fo... |
package org.apache.spark.sql.connector.catalog;
import java.util.Optional;
import org.apache.spark.annotation.Evolving;
import org.apache.spark.sql.util.CaseInsensitiveStringMap;
/**
* An interface, which TableProviders can implement, to support table existence checks and creation
* through a catalog, without ha... |
package oracle
import (
"bytes"
"fmt"
"go/ast"
exact "go/constant"
"go/token"
"go/types"
"log"
"os"
"strings"
"golang.org/x/tools/go/ast/astutil"
"golang.org/x/tools/go/loader"
"golang.org/x/tools/go/types/typeutil"
"golang.org/x/tools/oracle/serial"
)
// describe describes the syntax node denoted by th... |
#if !defined(FUSION_CONVERT_IMPL_09232005_1341)
#define FUSION_CONVERT_IMPL_09232005_1341
#include <boost/fusion/container/set/detail/as_set.hpp>
#include <boost/fusion/container/set/set.hpp>
#include <boost/fusion/sequence/intrinsic/begin.hpp>
#include <boost/fusion/sequence/intrinsic/size.hpp>
namespace boost { na... |
package com.codingProblems.hackerRank.algorithm.implementation;
import java.util.Scanner;
//Source: https://www.hackerrank.com/challenges/service-lane
public class ServiceLane {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
i... |
class ContentSettingsDetails;
class DictionaryValue;
class PrefService;
class Profile;
class GeolocationContentSettingsMap
: public base::RefCountedThreadSafe<GeolocationContentSettingsMap>,
public NotificationObserver {
public:
typedef std::map<GURL, ContentSetting> OneOriginSettings;
typedef std::map<... |
<?php
/**
* Template part for displaying single posts.
*
* @package Material Design
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
<div class="entry-meta">
<?php materialdesign_posted_on(); ?>
... |
package com.hazelcast.concurrent.atomicreference;
import com.hazelcast.config.Config;
import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.core.IAtomicReference;
import com.hazelcast.nio.ObjectDataInput;
import com.hazelcast.nio.ObjectDataOutput;
import com.hazelcast.nio.serialization.DataSerializable;
... |

[](https://www.npmjs.com/package/bootstrap)
[](https://travis-ci.org/twbs/bootstrap)
[![devDep... |
package org.eclipse.php.internal.ui.compare;
import java.io.UnsupportedEncodingException;
import java.lang.reflect.InvocationTargetException;
import java.util.*;
import org.eclipse.compare.*;
import org.eclipse.compare.contentmergeviewer.IDocumentRange;
import org.eclipse.compare.contentmergeviewer.IMergeViewerConte... |
namespace peloton {
namespace parser {
const std::string DeleteStatement::GetInfo(int num_indent) const {
std::ostringstream os;
os << StringUtil::Indent(num_indent) << "DeleteStatement\n";
os << StringUtil::Indent(num_indent + 1) << GetTableName();
if (expr != nullptr) os << expr.get()->GetInfo(num_indent + 1... |
// Boost.Geometry (aka GGL, Generic Geometry Library)
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
// Use, modification and distribution is subject to 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)
#ifnd... |
package azure
import (
"bytes"
"testing"
)
func Test_zeroFillWrite_AppendNoGap(t *testing.T) {
s := NewStorageSimulator()
bw := newRandomBlobWriter(&s, 1024*1)
zw := newZeroFillWriter(&bw)
if err := s.CreateBlockBlob("a", "b"); err != nil {
t.Fatal(err)
}
firstChunk := randomContents(1024*3 + 512)
if nn, ... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Reflection;
using System.Runtime.Serialization;
using System.Web.Http;
using System.Web.Http.Description;
using System.Xml... |
#pragma once
// Including SDKDDKVer.h defines the highest available Windows platform.
// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and
// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h.
#include <SDKDDKVer.h>
|
<div class="job">
{% include "resume/dated_event.html" with title=instance.company_name subtitle=instance.job_title description=instance.job_description date_start=instance.date_start date_end=instance.date_end url=instance.company_website %}
</div>
|
<!DOCTYPE html>
<!--
Copyright (c) 2012 Intel Corporation.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of works must retain the original copyright notice, this list
of conditions and the following di... |
package com.opengamma.analytics.financial.interestrate.payments.derivative;
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertFalse;
import org.testng.annotations.Test;
import org.threeten.bp.Period;
import org.threeten.bp.ZonedDateTime;
import com.opengamma.analytics.fin... |
<?php
/**
* Class to disable cache tag logging in factories.yml file
*
* @package sfCacheTaggingPlugin
* @subpackage log
* @author Ilya Sabelnikov <fruit.dev@gmail.com>
*/
class sfNoCacheTagLogger extends sfCacheTagLogger
{
/**
* {@inheritdoc}
*/
protected function doLog (... |
'use strict';
describe('$$forceReflow', function() {
it('should issue a reflow by touching the `document.body.client` when no param is provided', function() {
module(function($provide) {
var doc = jqLite('<div></div>');
doc[0].body = {};
doc[0].body.offsetWidth = 10;
$provide.value('$docu... |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.0-rc2-master-f6cf82d
*/
/* Only used with Theme processes */
html.md-THEME_NAME-theme, body.md-THEME_NAME-theme {
color: '{{foreground-1}}';
background-color: '{{background-color}}'; }
md-menu-bar.md-THEME_NAME-theme > ... |
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JSLintConfiguration">
<option devel="true" />
<option indent="4" />
<option maxerr="50" />
</component>
</project> |
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="CountLines.CountLines">
<uses-sdk />
<application android:label="CountLines"></application>
</manifest> |
package dataflow // import "google.golang.org/api/dataflow/v1b3"
import (
"bytes"
"encoding/json"
"errors"
"fmt"
context "golang.org/x/net/context"
ctxhttp "golang.org/x/net/context/ctxhttp"
gensupport "google.golang.org/api/gensupport"
googleapi "google.golang.org/api/googleapi"
"io"
"net/http"
"net/url"
... |
<?php
namespace common\models;
use Yii;
use yii\base\NotSupportedException;
use yii\behaviors\TimestampBehavior;
use yii\db\ActiveRecord;
use yii\web\IdentityInterface;
/**
* User model
*
* @property integer $id
* @property string $username
* @property string $password_hash
* @property string $password_reset_to... |
> This plugin places a `"use strict";` directive at the top of all files to enable [strict mode](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode).
This plugin may be enabled via `babel-plugin-transform-es2015-modules-commonjs`.
If you wish to disable it you can either turn `strict` off or... |
import * as angular from 'angular';
var app = angular.module('testModule', ['tmh.dynamicLocale']);
app.config((localStorageServiceProvider: angular.dynamicLocale.tmhDynamicLocaleProvider) => {
localStorageServiceProvider
.localeLocationPattern("app/config/locales/")
.useCookieStorage();
});
class LocaleTestContr... |
package com.mysql.jdbc.jdbc2.optional;
import javax.transaction.xa.XAException;
/**
* The stock XAException class isn't too friendly (i.e. no error messages), so we extend it a bit.
*/
class MysqlXAException extends XAException {
private static final long serialVersionUID = -9075817535836563004L;
private... |
// -*- mode: java; c-basic-offset: 2; -*-
// Copyright 2009-2011 Google, All Rights reserved
// Copyright 2011-2012 MIT, All rights reserved
// Released under the Apache License, Version 2.0
// http://www.apache.org/licenses/LICENSE-2.0
package com.google.appinventor.components.runtime.util;
import com.google.appinven... |
<?php
Yii::import('system.gii.generators.model.ModelCode');
Yii::import('ext.giiy.helpers.*');
/**
* GiixModelCode is the model for giix model generator.
*
* @author Rodrigo Coelho <rodrigo@giix.org>
* @package giix.generators.giixModel
*/
class GiiyModelCode extends ModelCode {
/**
* @var string The (base)... |
package stats
import (
"fmt"
"path/filepath"
cadvisorapiv2 "github.com/google/cadvisor/info/v2"
"k8s.io/apimachinery/pkg/types"
statsapi "k8s.io/kubelet/pkg/apis/stats/v1alpha1"
kubecontainer "k8s.io/kubernetes/pkg/kubelet/container"
kubecontainertest "k8s.io/kubernetes/pkg/kubelet/container/testing"
"k8s.i... |
// 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.
#nullable disable
using System.Threading;
namespace Microsoft.CodeAnalysis.Internal.Log
{
internal class LogA... |
/**
* Select2 Slovak translation.
*
* Author: David Vallner <david@vallner.net>
*/
(function ($) {
"use strict";
// use text for the numbers 2 through 4
var smallNumbers = {
2: function(masc) { return (masc ? "dva" : "dve"); },
3: function() { return "tri"; },
4: function() { ret... |
.window {
overflow: hidden;
padding: 5px;
border-width: 1px;
border-style: solid;
}
.window .window-header {
background: transparent;
padding: 0px 0px 6px 0px;
}
.window .window-body {
border-width: 1px;
border-style: solid;
border-top-width: 0px;
}
.window .window-body-noheader {
border-top-width: ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SharpGL.Shaders
{
[Serializable]
public class ShaderCompilationException : Exception
{
private readonly string compilerOutput;
public ShaderCompilationException(string compilerOutput)
{... |
var target : Transform;
var distance = 10.0;
var xSpeed = 250.0;
var ySpeed = 120.0;
var yMinLimit = -20;
var yMaxLimit = 80;
private var x = 0.0;
private var y = 0.0;
@script AddComponentMenu("Camera-Control/Mouse Orbit")
function Start () {
var angles = transform.eulerAngles;
x = angles.y;
y = angles... |
<?php
namespace Doctrine\Tests\DBAL\Platforms;
use Doctrine\DBAL\Platforms\SQLAnywhere12Platform;
use Doctrine\DBAL\Schema\Index;
use Doctrine\DBAL\Schema\Sequence;
class SQLAnywhere12PlatformTest extends SQLAnywhere11PlatformTest
{
/**
* @var \Doctrine\DBAL\Platforms\SQLAnywhere12Platform
*/
prote... |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Macro BOOST_VMD_SEQ_PUSH_FRONT</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="... |
#import "CDVCordovaView.h"
#import "JSONKit.h"
#import "CDVAvailability.h"
#import "CDVInvokedUrlCommand.h"
#import "CDVCommandDelegate.h"
#import "CDVWhitelist.h"
@class CDVCommandQueue;
@class CDVCommandDelegateImpl;
@interface CDVViewController : UIViewController <UIWebViewDelegate>{
@private
CDVCommand... |
"""
wakatime.languages.templates
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Parse dependencies from Templates.
:copyright: (c) 2014 Alan Hamlett.
:license: BSD, see LICENSE for more details.
"""
from . import TokenParser
from ..compat import u
""" If these keywords are found in the source file, treat them as... |
'use strict';
const gulp = require('gulp');
const path = require('path');
const build = require('@microsoft/sp-build-web');
const webpack = require('webpack');
/**
* Fixing the "5644:15-36 Critical dependency: the request of a dependency is an expression" warning
* Linked to an existing bug/problem in Angular https... |
package com.navercorp.pinpoint.web.alarm.checker;
import com.navercorp.pinpoint.web.alarm.collector.MapStatisticsCallerDataCollector;
import com.navercorp.pinpoint.web.alarm.collector.MapStatisticsCallerDataCollector.DataCategory;
import com.navercorp.pinpoint.web.alarm.vo.Rule;
/**
* @author minwoo.jung
... |