text stringlengths 3 1.05M |
|---|
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/appconfig/model/Monitor.h>
#include <utility>
namespace ... |
<?php
namespace Illuminate\Support;
/**
* @mixin \Illuminate\Support\Enumerable
*/
class HigherOrderWhenProxy
{
/**
* The collection being operated on.
*
* @var \Illuminate\Support\Enumerable
*/
protected $collection;
/**
* The condition for proxying.
*
* @var bool
... |
@extends('admin.layouts.model')
{{-- Web site Title --}}
@section('title') Update group user :: @parent @stop
@section('topbar')
<!-- Start: Topbar -->
<header id="topbar" class="ph10">
<div class="topbar-left">
<ul class="nav nav-list nav-list-topbar pull-left">
<li>
<a href="/c... |
// Copyright 2015 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... |
[](http://travis-ci.org/manuelbieh/Geolib)
A small library to provide some basic geo functions like distance calculation, conversion of decimal coordinates to sexagesimal and vice versa, etc.
[View demo](http://www.manuel-bieh.de/pub... |
div.ccm-block-feature-item-hover-wrapper {
text-align: center;
font-size: 120%;
}
div.ccm-block-feature-item-hover {
cursor: help;
}
div.ccm-block-feature-item-hover-icon {
margin-bottom: 0.5em;
} |
package org.olat.core.util.vfs.callbacks;
import org.olat.core.commons.services.notifications.SubscriptionContext;
import org.olat.core.util.vfs.Quota;
/**
* Initial Date: Feb 17, 2004
*
* @author Mike Stock
*
* Comment:
* Implementations of this interface serve the VFS to decide wether
* read/write/list/... |
'use strict';
import type {Fiber} from 'ReactFiber';
export type StackCursor<T> = {
current: T,
};
if (__DEV__) {
var warning = require('fbjs/lib/warning');
}
const valueStack: Array<any> = [];
if (__DEV__) {
var fiberStack: Array<Fiber | null> = [];
}
let index = -1;
exports.createCursor = function<T>(d... |
#include "nau/loader/iTextureLoader.h"
#ifdef NAU_OPENGL
#include "nau/render/opengl/glTextureCubeMap.h"
#endif
using namespace nau::render;
using namespace nau::loader;
ITextureCubeMap*
ITextureCubeMap::Create (std::vector<std::string> files, std::string label, bool mipmap) {
ITextureLoader *loa... |
module Spaceship
module Tunes
# Represents app ratings from iTunesConnect
class AppRatings < TunesBase
# @return (Spaceship::Tunes::Application) A reference to the application
# this version is for
attr_accessor :application
# @return (Spaceship::Tunes::AppRatingSummary) A summary o... |
This folder contains examples of how to build applications for iOS devices using TensorFlow.
## Building the Examples
- You'll need Xcode 7.3 or later, with the command-line tools installed.
- Follow the instructions at
[tensorflow/contrib/makefile](https://github.com/tensorflow/tensorflow/tree/master/tensorflo... |
package com.google.security.zynamics.reil.translators.x86;
import static org.junit.Assert.assertEquals;
import com.google.common.collect.Lists;
import com.google.security.zynamics.reil.OperandSize;
import com.google.security.zynamics.reil.ReilInstruction;
import com.google.security.zynamics.reil.TestHelpers;
import ... |
#include "LMenu.h"
LMenu::LMenu()
{
}
LMenu::~LMenu()
{
free();
}
void LMenu::setClips(SDL_Rect clip1, SDL_Rect clip2)
{
renderClips[0] = clip1;
renderClips[1] = clip2;
}
void LMenu::loadTextures(string corner, string line, SDL_Renderer* mRen)
{
free();
mCorner.loadFromFile(corner, mRen);
mLine.loadFromFi... |
NS_ASSUME_NONNULL_BEGIN
@interface RxDeferred<S : id <RxObservableType>> : RxProducer<id>
- (nonnull instancetype)initWithObservableFactory:(RxObservableFactory)observableFactory;
@end
NS_ASSUME_NONNULL_END |
/* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */
/* vim: set ts=2 et sw=2 tw=80: */
/*************************************************************
*
* MathJax/localization/ca/FontWarnings.js
*
* Copyright (c) 2009-2015 The MathJax Consortium
*
* Licensed under the Apache License, Versi... |
/*==================================================
* Exhibit.NumericRangeFacet
*==================================================
*/
Exhibit.NumericRangeFacet = function(containerElmt, uiContext) {
this._div = containerElmt;
this._uiContext = uiContext;
this._expression = null;
this._settin... |
class NotificationDetails;
class NotificationSource;
class Profile;
class ProfileSyncFactory;
class SigninManager;
namespace browser_sync {
class BackendMigrator;
class ChangeProcessor;
class DataTypeManager;
class JsFrontend;
class SessionModelAssociator;
namespace sessions { struct SyncSessionSnapshot; }
}
namespac... |
marketplace infrastructure in Angular.JS, BootStrap3, CSS3, Node.JS, and MongoDB
|
/*jslint vars: true, plusplus: true, devel: true, nomen: true, regexp: true, indent: 4, maxerr: 50 */
/*global define, brackets, $, window, PathUtils */
define(function (require, exports, module) {
"use strict";
// Brackets modules
var ColorUtils = brackets.getModule("utils/ColorUtils"),
... |
class Spinach::Features::ProjectCommits < Spinach::FeatureSteps
include SharedAuthentication
include SharedProject
include SharedPaths
include RepoHelpers
step 'I see project commits' do
commit = @project.repository.commit
page.should have_content(@project.name)
page.should have_content(commit.me... |
namespace blink {
class HeapObject;
class PartObject {
DISALLOW_NEW();
private:
PartObject();
HeapObject* m_rawObj;
HeapObject& m_refObj;
};
class HeapObject : public GarbageCollected<HeapObject> {
public:
void Trace(Visitor*) const;
private:
PartObject m_part;
HeapVector<HeapObject*> m_ob... |
'''
Created on Oct 19, 2012
Script to test regex against a file containing values
to match.
@author 1aN0rmus@tekdefense.com
'''
import re
fileImport =open('sample.txt')
strFile=''
for line in fileImport:
strFile += line
print(strFile)
regexValue = re.compile('\d{1,5}\s\w+\s\w{1,3}\.')
regexSearch = re.findal... |
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
html {
font-family: sans-serif;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
body {
margin: 0;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
display: block;
}
audio,
canv... |
/*-------------------------------------------------------------------------
Copyright 2008 Sandia Corporation.
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
the U.S. Government retains certain rights in this software.
----------------------------------------------------------------------... |
/* jshint worker: true */
'use strict';
if (typeof console == 'undefined') {
this.console = {
error: function(e) {
postMessage(JSON.stringify({
type: 'error',
message: e.message,
stack: e.stack
}));
},
log: function(message) {
postMessage(JSON.stringify({
... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
typedef winfoundtn::Collections::
IVector<ABI::Windows::UI::Popups::IUICommand*> WindowsUICommands;
typedef winfoundtn::IAsyncOperation<ABI::Windows::UI::Popups::IUICommand*>
AsyncCommandStatus;
MetroDialogBox::MetroDialogBox() {
DVLOG(1) << __FUNCTION__;
dialog_box_info_.button1_handler = NULL;
dialog_... |
package io.undertow.websockets.jsr.test.annotated;
/**
* @author Stuart Douglas
*/
public abstract class MiddleClassDecoder<T,Y,A> extends GenericSuperclassDecoder<Y> {
}
|
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="utf-8">
<title>
Termos & Condições •
Bites e Baites
</title>
<meta name="description" content="Termos e condições, política de privacidade, licença, e outras coisas legais que você não vai ler... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>UnknownPropertyException (Xenon 2.2.0 API for Xenon developers)</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.cs... |
'use strict';
/// provides the async helper functionality
var alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_';
function genId() {
var res = '';
for (var i = 0; i < 8; ++i) {
res += alphabet[Math.floor(Math.random() * alphabet.length)];
}
return res;
}
// global baton which contains th... |
#include <GL/freeglut.h>
#include "fg_internal.h"
/* -- INTERFACE FUNCTIONS -------------------------------------------------- */
/*
* Global callbacks.
*/
/* Sets the global idle callback */
void FGAPIENTRY glutIdleFunc( FGCBIdle callback )
{
FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutIdleFunc" );
fgState.... |
"""This module tests HTTP helper."""
__author__ = "Bartek Kryza"
__copyright__ = """(C) 2018 ACK CYFRONET AGH,
This software is released under the MIT license cited in 'LICENSE.txt'."""
import os
import sys
import time
import subprocess
from os.path import expanduser
from urlparse import urlparse
import pytest
impor... |
<scheme name="Twilight" version="142" parent_scheme="Default">
<option name="LINE_SPACING" value="1.0" />
<option name="EDITOR_FONT_SIZE" value="12" />
<option name="EDITOR_FONT_NAME" value="Menlo" />
<colors>
<option name="CARET_COLOR" value="a7a7a7" />
<option name="CARET_ROW_COLOR" value="1b1b1b" />
... |
using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
namespace NPanday.ProjectImporter.ImporterTests
{
[TestFixture]
public class VS2013SolutionTest : AbstractProjectImportTest
{
public override void CheckFrameworkVersion()
{
if (Environment.... |
<!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="Docutils 0.19: https://docutils.sourceforge.io/" />
<title>FreeSurfer MRI reconstruction — MNE 1.2.2 documentation</title>
<scr... |
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import <UserNotifications/UserNotifications.h>
@class MXSession;
@class MXEvent;
@class MXPushRule;
@class MXKAccount;
@protocol PushNotificationServiceDelegate;
NS_ASSUME_NONNULL_BEGIN
@interface PushNotificationService : NSObject <UNUserNotificationCente... |
/*!
* Time picker for pickadate.js v3.5.4
* http://amsul.github.io/pickadate.js/time.htm
*/
(function ( factory ) {
// AMD.
if ( typeof define == 'function' && define.amd )
define( ['picker','jquery'], factory )
// Node.js/browserify.
else if ( typeof exports == 'object' )
module.... |
webshims.register('details', function($, webshims, window, doc, undefined, options){
var isInterActiveSummary = function(summary){
var details = $(summary).parent('details');
if(details[0] && details.children(':first').get(0) === summary){
return details;
}
};
var bindDetailsSummary = function(summary, det... |
using System;
using System.Threading;
interface IGen<T>
{
void Target();
T Dummy(T t);
}
struct Gen<T> : IGen<T>
{
public T Dummy(T t) { return t; }
public void Target()
{
Interlocked.Increment(ref Test.Xcounter);
}
public static void DelegateTest()
{
IGen<T> obj = new Gen<T>();
ThreadStart d = ne... |
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014 The PayProCoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef PAYPROCOIN_LIMITEDMAP_H
#define PAYPROCOIN_LIMITEDMAP_H
#include <ass... |
using Xunit;
namespace ManagedTests.DynamicCSharp.Conformance.dynamic.dynamicType.generics.nested.nested001.nested001
{
using ManagedTests.DynamicCSharp.Conformance.dynamic.dynamicType.generics.nested.nested001.nested001;
// <Title>Generic constraints for nested types</Title>
// <Description>
// </Desc... |
__strong RCTBridge * bridgeRef;
dispatch_queue_t commonTaskQueue;
dispatch_queue_t fsQueue;
////////////////////////////////////////
//
// Exported native methods
//
////////////////////////////////////////
#pragma mark RNFetchBlob exported methods
@implementation RNFetchBlob
@synthesize filePathPrefix;
@synthesiz... |
App.MainPageController = Ember.Controller.extend({
needs: ['application'],
creditCard: '',
password: '',
passwordVerify: '',
email: '',
loginSuccess: false,
backgroundHomePageOne: 'public/img/backgroundHomePageOne.png',
backgroundHomePageTwo: 'public/img/backgroundHomePageTwo.png',
backgroundHomePageT... |
{% extends 'dash/base.html' %}
{% block sub_title %}
Link Wizard
{% endblock sub_title %}
{% block sub_heading %}
Un-tick the links you want to remove
{% endblock sub_heading %}
{% block content %}
<div class="pure-g">
<div class="pure-u-1">
<div class="pure-menu pure-menu-horizontal">
<ul cl... |
<?php
namespace ARIPD\CRMBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Table(name="crm_image")
* @ORM\Entity
* @ORM\HasLifecycleCallbacks
*/
class Image {
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
... |
<?php
namespace Doctrine\DBAL\Driver\IBMDB2;
use Doctrine\DBAL\Driver\Statement;
class DB2Statement implements \IteratorAggregate, Statement
{
/**
* @var resource
*/
private $_stmt = null;
/**
* @var array
*/
private $_bindParam = array();
/**
* @var string Name of the... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <rte_log.h>
#include <rte_ethdev.h>
#include <rte_ether.h>
#include <rte_ip.h>
#include <rte_byteorder.h>
#include <rte_port_ring.h>
#include <rte_table_acl.h>
#include <rte_pipeline.h>
#include "main.h"
enum {
PROTO_FIELD_IPV4,
SRC_FIELD_IPV4,... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
var path = require("path");
var RequestShortener = require("./RequestShortener");
var ConcatSource = require("webpack-sources").ConcatSource;
var RawSource = require("webpack-sources").RawSource;
var ModuleFilena... |
#define BOOST_INTRUSIVE_DETAIL_HAS_MEMBER_FUNCTION_CALLABLE_WITH_0_ARGS_UNSUPPORTED
#elif defined(BOOST_INTEL) && (BOOST_INTEL < 1200 )
#define BOOST_INTRUSIVE_DETAIL_HAS_MEMBER_FUNCTION_CALLABLE_WITH_0_ARGS_UNSUPPORTED
#endif
#include <cstddef>
#include <boost/move/utility_core.hpp>
#include <boost/move/detail/f... |
<?php
namespace Symfony\Component\DependencyInjection\Tests;
use PHPUnit\Framework\TestCase;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
class CrossCheckTest extends TestCase
{
protected static $fixturesPath;
public static function setUpBeforeClass... |
package collector
import (
"encoding/json"
"fmt"
"io/ioutil"
"math"
"net/http"
"strconv"
"strings"
"time"
"github.com/google/cadvisor/info/v1"
)
type PrometheusCollector struct {
//name of the collector
name string
//rate at which metrics are collected
pollingFrequency time.Duration
//holds informati... |
namespace content {
class ShellBrowserContext;
class ShellBrowserMainParts;
class ShellResourceDispatcherHostDelegate;
}
namespace ash {
namespace shell {
class ShellBrowserMainParts;
class ShellContentBrowserClient : public content::ContentBrowserClient {
public:
ShellContentBrowserClient();
virtual ~ShellCont... |
#include "config.h"
#include "ScrollbarThemeWin.h"
#include "GraphicsContext.h"
#include "LocalWindowsContext.h"
#include "PlatformMouseEvent.h"
#include "Scrollbar.h"
#include "SoftLinking.h"
#include "SystemInfo.h"
// Generic state constants
#define TS_NORMAL 1
#define TS_HOVER 2
#define TS_ACTIVE 3
#de... |
message(STATUS "base_local_planner: 1 messages, 0 services")
set(MSG_I_FLAGS "-Ibase_local_planner:/home/trevor/ROS/catkin_ws/src/navigation/base_local_planner/msg;-Istd_msgs:/opt/ros/indigo/share/std_msgs/cmake/../msg")
# Find all generators
find_package(gencpp REQUIRED)
find_package(genlisp REQUIRED)
find_package(g... |
#include <grpc/support/port_platform.h>
#ifdef GPR_POSIX_SOCKET
#include "src/core/iomgr/tcp_posix.h"
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include "src/core/support/string.h"
#include "src/core/debug/trace.h"
#include <grpc/... |
<!--
********************************************************************************
WARNING:
DO NOT EDIT "perl/README.md"
IT IS AUTO-GENERATED
(from the other files in "perl/" combined with a set of templates)
********************************************************************************
-->
# S... |
/*global define:false*/
define(['grasshopperBaseView', 'contentTypeIndexViewConfig', 'constants'],
function (GrasshopperBaseView, contentTypeIndexViewConfig, constants) {
'use strict';
return GrasshopperBaseView.extend({
defaultOptions : contentTypeIndexViewConfig,
beforeRen... |
package mysqlctl
import (
"io/ioutil"
"os"
"path"
"testing"
"github.com/youtube/vitess/go/vt/dbconfigs"
"github.com/youtube/vitess/go/vt/env"
)
var MYCNF_PATH = "/tmp/my.cnf"
func TestMycnf(t *testing.T) {
os.Setenv("MYSQL_FLAVOR", "GoogleMysql")
dbaConfig := dbconfigs.DefaultDBConfigs.Dba
replConfig := db... |
<?php
namespace PayPal\Test\Api;
use PayPal\Api\RelatedResources;
/**
* Class RelatedResources
*
* @package PayPal\Test\Api
*/
class RelatedResourcesTest extends \PHPUnit_Framework_TestCase
{
/**
* Gets Json String of Object RelatedResources
*
* @return string
*/
public static functio... |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
<title>Casino de Megeve</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="author" content="Charly Berthet" />
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<link rel="... |
package och.util;
import java.sql.Timestamp;
import java.util.Date;
public class SqlUtil {
public static Timestamp toSqlTimestamp(Date date){
return date == null? null : new Timestamp(date.getTime());
}
public static java.sql.Date toSqlDate(Date date){
return date == null? null : new java.sql.Date(date.ge... |
<?php
namespace Sonata\DoctrineORMAdminBundle\Datagrid;
use Doctrine\ORM\QueryBuilder;
use Doctrine\ORM\Query;
use Sonata\AdminBundle\Datagrid\ProxyQueryInterface;
/**
* This class try to unify the query usage with Doctrine
*/
class ProxyQuery implements ProxyQueryInterface
{
protected $queryBuilder;
pro... |
{-# LANGUAGE TemplateHaskell, FlexibleInstances, TypeSynonymInstances #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-| Unittests for ganeti-htools.
-}
{-
Copyright (C) 2009, 2010, 2011, 2012, 2013 Google Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are per... |
package org.apache.asterix.common.annotations;
public class FieldIntervalDataGen implements IRecordFieldDataGen {
public enum ValueType {
INT,
LONG,
FLOAT,
DOUBLE
}
private final String min;
private final String max;
private final ValueType valueType;
public ... |
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... |
package com.java.mastery.method_references.model;
import java.util.ArrayList;
/**
* Created by ANAN011 on 10/4/2017.
*
* @author Prajesh Ananthan, arvato Systems Malaysia Sdn Bhd
*/
public class Duck {
private String name;
private int weight;
public Duck(String name, int weight) {
this.name = name;
... |
## ethjs-abi
Just method and event encoding and decoding from the [`ethers-wallet`](https://github.com/ethers-io/ethers-wallet).
Note, this package is experimental, and is not ready for production use.
<div>
<!-- Dependency Status -->
<a href="https://david-dm.org/ethjs/ethjs-abi">
<img src="https://david-dm... |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v10.0.0
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var FUNCTION_STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/... |
.. _version_3.2.5:
=============
Version 3.2.5
=============
Released on 2019/03/11.
.. NOTE::
If you are upgrading a cluster, you must be running CrateDB 2.0.4 or higher
before you upgrade to 3.2.5.
We recommend that you upgrade to the latest 3.1 release before moving to
3.2.5.
If you want to... |
/*
* ATAPI support.
*/
#include <linux/kernel.h>
#include <linux/cdrom.h>
#include <linux/delay.h>
#include <linux/export.h>
#include <linux/ide.h>
#include <linux/scatterlist.h>
#include <linux/gfp.h>
#include <scsi/scsi.h>
#define DRV_NAME "ide-atapi"
#define PFX DRV_NAME ": "
#ifdef DEBUG
#define debug_log(fmt... |
<!DOCTYPE html>
<html>
<head>
<title>The Automotive Specification</title>
<meta http-equiv='Content-Type' content='text/html;charset=eu-kr'/>
<!--
=== NOTA BENE ===
For the three scripts below, if your spec resides on dev.w3 you can check them
out in the same tree and use relative link... |
package org.elasticsearch.watcher;
import org.elasticsearch.common.component.AbstractLifecycleComponent;
import org.elasticsearch.common.inject.Inject;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.unit.TimeValue;
import org.elasticsearch.common.util.concurrent.FutureUtils;
import... |
The Morphic ui manager.
I was packaged in toolbuilder and I may change in the future. For the moment, the goal is to unload toolbuilder. |
'use strict';
const MONGODB = process.env.MONGODB || 'mongodb://localhost:27017/test';
const assert = require('assert');
const Mongolass = require('..');
const Schema = Mongolass.Schema;
const Types = Mongolass.Types;
const mongolass = new Mongolass(MONGODB);
const UserSchema = new Schema('User', {
uid: { type: Ty... |
package com.siyeh.ig.security;
import com.intellij.psi.*;
import com.siyeh.InspectionGadgetsBundle;
import com.siyeh.ig.BaseInspection;
import com.siyeh.ig.BaseInspectionVisitor;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
public class SystemPropertiesInspection extends BaseIns... |
module GrapeSwaggerRails
class ApplicationController < ActionController::Base
before_filter do
if GrapeSwaggerRails.options.before_filter
instance_exec(request, &GrapeSwaggerRails.options.before_filter)
end
end
def index
end
end
end
|
package ch.ar.castabot.plugins.cards;
import ch.ar.castabot.plugins.PluginException;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.json.JSONObject;
/**
*
* @author Arei
*/
public class... |
namespace Eigen {
namespace internal {
#ifndef EIGEN_CACHEFRIENDLY_PRODUCT_THRESHOLD
#define EIGEN_CACHEFRIENDLY_PRODUCT_THRESHOLD 8
#endif
#ifndef EIGEN_ARCH_DEFAULT_NUMBER_OF_REGISTERS
#define EIGEN_ARCH_DEFAULT_NUMBER_OF_REGISTERS (2*sizeof(void*))
#endif
#ifdef __FMA__
#ifndef EIGEN_HAS_SINGLE_INSTRUCTION_MADD
... |
<?php
/**
* Customize the output of menus for Foundation top bar
*/
if (!class_exists('FoundationPress_top_bar_walker')) :
class FoundationPress_top_bar_walker extends Walker_Nav_Menu {
function display_element( $element, &$children_elements, $max_depth, $depth=0, $args, &$output ) {
$element->has_childr... |
iis_site 'Default Web Site' do
action [:stop, :delete]
end
iis_pool 'DefaultAppPool' do
action [:stop , :delete]
end
|
#pragma once
// Dependency:
#include "../glm.hpp"
#if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
# pragma message("GLM: GLM_GTX_extend extension included")
#endif
namespace glm
{
/// @addtogroup gtx_scalar_relational
/// @{
/// @}
}//namespace glm
#include "scalar_relational.inl... |
package net.glider.src.items;
import java.util.List;
import net.glider.src.blocks.BlockContainerMod;
import net.glider.src.utils.IDescrObject;
import net.minecraft.block.Block;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
import net.minecra... |
package org.apache.spark.sql.hive.execution
import org.apache.spark.sql.{QueryTest, Row}
import org.apache.spark.sql.hive.test.TestHiveSingleton
/**
* A set of tests that validates commands can also be queried by like a table
*/
class HiveOperatorQueryableSuite extends QueryTest with TestHiveSingleton {
import ... |
Primitives
==========
.. autofunction:: drawBot.rect
.. autofunction:: drawBot.oval
.. autofunction:: drawBot.line((x1, y1), (x2, y2)))
.. autofunction:: drawBot.polygon((x1, y1), (x2, y2), ..., close=True) |
This sample template demonstrates how to create a NAT rule in loadbalancer to allow RDP to a vm.
You can connect to the vm using:
* mstsc.exe /v:<publicDnsName>.<location>.cloudapp.azure.com:<rdpPort>
This template deploys the following resources:
<ul><li>storage account</li><li>vnet</li><li>publi... |
namespace views {
namespace {
// Creates a control widget with the passed in parameters.
// The caller takes ownership of the returned widget.
Widget* CreateControlWidget(aura::Window* parent, const gfx::Rect& bounds) {
Widget::InitParams params(Widget::InitParams::TYPE_CONTROL);
params.ownership = views::Widget::... |
<?php
namespace Maklarresurs\AdminBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class DefaultControllerTest extends WebTestCase
{
public function testIndex()
{
$client = static::createClient();
$crawler = $client->request('GET', '/hello/Fabien');
$thi... |
/**
* Converts `map` to an array.
*
* @private
* @param {Object} map The map to convert.
* @returns {Array} Returns the converted array.
*/
function mapToArray(map) {
var index = -1,
result = Array(map.size);
map.forEach(function(value, key) {
result[++index] = [key, value];
});
return result;
... |
/**
* API Bound Models for AngularJS
* @version v0.8.0 - 2013-11-20
* @link https://github.com/angular-platanus/restmod
* @author Ignacio Baixas <iobaixas@gmai.com>
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
!function(a,b){"use strict";a.module("plRestmod").factory("DirtyModel",["$restmod",... |
from pyspark.mllib.recommendation import ALS, Rating
from pyspark.mllib.evaluation import RegressionMetrics
# $example off$
from pyspark import SparkContext
if __name__ == "__main__":
sc = SparkContext(appName="Ranking Metrics Example")
# Several of the methods available in scala are currently missing from py... |
from django.conf.urls import url
from django.views.generic import TemplateView
from .views import ContactFoundation
urlpatterns = [
url(r'^foundation/$', ContactFoundation.as_view(), name='contact_foundation'),
url(r'^sent/$', TemplateView.as_view(template_name='contact/sent.html'), name='contact_form_sent'),... |
package com.intellij.formatting.alignment;
import com.intellij.formatting.Alignment;
import com.intellij.psi.tree.IElementType;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.*;
import static java.util.Arrays.asList;
/** <code>GoF 'Strategy'</code> for {@link ... |
package org.apache.hadoop.mapreduce;
import java.io.IOException;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability;
import org.apache.hadoop.classification.InterfaceStability.Evolving;
import org.apache.hadoop.mapred.SplitLocationInfo;
import org.a... |
// +build !ignore_autogenerated
// This file was autogenerated by conversion-gen. Do not edit it manually!
package v1beta1
import (
conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime"
authorization "k8s.io/client-go/pkg/apis/authorization"
unsafe "unsafe"
)
func init() {
... |
package org.elasticsearch.search.fetch.explain;
import com.google.common.collect.ImmutableMap;
import org.apache.lucene.search.Explanation;
import org.elasticsearch.search.SearchParseElement;
import org.elasticsearch.search.fetch.FetchPhaseExecutionException;
import org.elasticsearch.search.fetch.FetchSubPhase;
impor... |
<?php
/*
* Template Class
*/
/**
* Template Class
*
* @since Types 1.2
* @package Types
* @subpackage Classes
* @version 0.1
* @category Template
* @author srdjan <srdjan@icanlocalize.com>
*/
class WPCF_Template
{
/**
* Template shortname.
*
* @var type string
*/
protected $_t... |
/*global tinymce:true */
/*eslint consistent-this:0 */
tinymce.PluginManager.add('lists', function(editor) {
var self = this;
function isChildOfBody(elm) {
return editor.$.contains(editor.getBody(), elm);
}
function isBr(node) {
return node && node.nodeName == 'BR';
}
function isListNode(node) {
retur... |
jade ./jade/content/ --out ./public/
|
package pflag
import (
"fmt"
"net"
"strings"
)
// IPNet adapts net.IPNet for use as a flag.
type ipNetValue net.IPNet
func (ipnet ipNetValue) String() string {
n := net.IPNet(ipnet)
return n.String()
}
func (ipnet *ipNetValue) Set(value string) error {
_, n, err := net.ParseCIDR(strings.TrimSpace(value))
if ... |