text stringlengths 3 1.05M |
|---|
package org.apache.accumulo.core.iterators;
import java.io.IOException;
import java.util.Collection;
import java.util.Map;
import java.util.NoSuchElementException;
import org.apache.accumulo.core.data.ByteSequence;
import org.apache.accumulo.core.data.Range;
import org.apache.hadoop.io.Writable;
import org.apache.ha... |
<?php
/**
* @package Admin
*/
if ( !defined('WPSEO_VERSION') ) {
header('HTTP/1.0 403 Forbidden');
die;
}
/**
* Modified (Reduced) TextStatistics Class
*
* Mostly removed functionality that isn't needed within the WordPress SEO plugin.
*
* @link http://code.google.com/p/php-text-statistics/
* @license ht... |
import { MDCTopAppBarAdapter } from '../adapter';
import { MDCTopAppBarBaseFoundation } from '../foundation';
export declare class MDCShortTopAppBarFoundation extends MDCTopAppBarBaseFoundation {
readonly isCollapsed: boolean;
private isCollapsed_;
private isAlwaysCollapsed_;
constructor(adapter?: Part... |
"""Options for saving SavedModels."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import enum
import six
from tensorflow.python.util import compat
from tensorflow.python.util.tf_export import tf_export
@tf_export("saved_model.experimental.VariablePol... |
package redhorizon.launcher;
import redhorizon.launcher.Launcher;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
/**
* SWT implementation of the launcher.
*
* @author Emanuel Rabina
*/
public class LauncherSWT extends Launcher {
private final Display display;
... |
require 'msf/core'
class Metasploit3 < Msf::Exploit::Remote
Rank = ExcellentRanking
include Msf::Exploit::Remote::HttpClient
include Msf::Exploit::FileDropper
def initialize(info = {})
super(update_info(info,
'Name' => 'Cisco Prime Data Center Network Manager Arbitrary File Uploa... |
<?php
namespace umi\event;
/**
* Менеджер событий.
*/
interface IEventManager
{
/**
* Присоединяет менеджер событий, который так же будет уведомлен о происходящих
* событиях текущего менеджера.
* Можно присоединить неограниченное число менеджеров.
* @param IEventManager $eventsManager
... |
package org.apache.harmony.luni.net;
import java.io.IOException;
import java.io.InputStream;
import java.net.Socket;
import java.net.SocketImpl;
import org.apache.harmony.luni.util.Msg;
/**
* The SocketInputStream supports the streamed reading of bytes from a socket.
* Multiple streams may be opened on a socket,... |
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("Ow... |
package com.axway.ats.log.autodb.model;
import java.util.ArrayList;
import java.util.List;
public class StatisticAggregatedType {
public static int REGULAR = 0;
public static int AVERAGE = 1;
public static int SUM = 2;
public static int TOTALS = 4;
public static int COUNT = 8;
// hid... |
package io.trydent.kiwi.misc;
public interface Strings {
String EMPTY = "";
}
|
function BleveAnalyzerModalCtrl($scope, $modalInstance, $http,
name, value, mapping, static_prefix) {
$scope.origName = name;
$scope.name = name;
$scope.errorMessage = "";
$scope.formpath = "";
$scope.mapping = mapping;
$scope.static_prefix = static_prefix;
$... |
typename _Object\
>
#define CStateControlCampAbstract CStateControlCamp<_Object>
#define ANGLE_DISP PI_DIV_2
#define ANGLE_DISP_STEP deg(10)
#define TRACE_STATIC_DIST 3.f
#define TIME_POINT_CHANGE_MIN 2000
#define TIME_POINT_CHANGE_MAX 5000
TEMPLATE_SPECIALIZATION
void CStateControlCampAbstract::initiali... |
<?xml version="1.0" encoding="utf-16"?>
<CompatibleDialogText xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Title>LMP <-> KSP Kompatibilität</Title>
<Text>Die Version von LMP ist nicht mit der installierten KSP Version kompatibel.</Text>
<Accept>Akzept... |
package ecd
//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... |
var browser = require('cordova/platform');
function getPlatform () {
return 'browser';
}
function getModel () {
return getBrowserInfo(true);
}
function getVersion () {
return getBrowserInfo(false);
}
function getBrowserInfo (getModel) {
var userAgent = navigator.userAgent;
var returnVal = '';
... |
using System.Web;
using System.Web.Optimization;
namespace Podelka
{
public class BundleConfig
{
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new ScriptBundle("~/bundles/jqueryMin_main")
.Include("~/Scripts/jquery-{version}.min.... |
<?php
class MetroStationController extends Controller
{
public function accessRules()
{
return array(
array('allow',
'actions' => array('index', 'create', 'view', 'update'),
'roles' => array('createApartment', 'viewApartment', 'updateApartment'),
... |
<?php
namespace Oro\Bundle\SoapBundle\Controller\Api\Rest;
use Doctrine\Common\Collections\Criteria;
use Doctrine\ORM\Proxy\Proxy;
use Doctrine\ORM\QueryBuilder;
use Doctrine\ORM\UnitOfWork;
use FOS\RestBundle\Controller\FOSRestController;
use FOS\RestBundle\Request\ParamFetcherInterface;
use FOS\RestBundle\View\View... |
package assert
import (
"fmt"
"reflect"
"runtime"
"strings"
"time"
)
// TestingT is an interface wrapper around *testing.T
type TestingT interface {
Errorf(format string, args ...interface{})
Fatalf(format string, args ...interface{})
}
// Comparison a custom function that returns true on success and false on... |
<?php
/**
* A helper file for Laravel 5, to provide autocomplete information to your IDE
* Generated for Laravel 5.2.13 on 2016-02-02.
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
* @see https://github.com/barryvdh/laravel-ide-helper
*/
namespace {
exit("This file should not be included, only analyzed b... |
<?php require_once('../load.php');
$userinfo = $app->action('user','get_user_session_info');
$rank = $userinfo['rank'];
if(!($rank>0)){
//exit;
}
?>
<!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/199... |
import common
import subprocess
from piaudio import Audio, InitAudio
import time
import shlex
if __name__ == "__main__":
InitAudio()
check_for_update('ivy')
def run_command(command):
process = subprocess.Popen(shlex.split(command), stdout=subprocess.PIPE)
outout = ""
while True:
o... |
use byteorder;
use phf;
use std::error;
use std::convert::From;
use std::fmt;
use std::io;
use std::result;
use std::collections::HashMap;
use {Result, DbErrorNew};
use types::Type;
include!(concat!(env!("OUT_DIR"), "/sqlstate.rs"));
/// A Postgres error or notice.
#[derive(Clone, PartialEq, Eq, Debug)]
pub struct D... |
<?php
/**
* PHP API usage example
*
* contributed by: Art of WiFi
* description: example to pull connected user numbers for Access Points from the UniFi controller and output the results
* in raw HTML format
*/
/**
* using the composer autoloader
*/
require_once 'vendor/autoload.php';
/**
... |
<?xml version="1.0" encoding="utf-8"?>
<!--
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:drawable="@drawable/pause"
android:state_checked="true"
android:id="@+id/pause_state" />
<item
android:drawable="@drawable/play"
android:id... |
/**
* CreativeSet.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter.
*/
package com.google.api.ads.dfp.axis.v201403;
/**
* A creative set is comprised of a master creative and its companion
* creatives.
*/
public class CreativeSet implemen... |
import React from "react"
import { render, screen } from "@testing-library/react"
import CatalogHeader from "./CatalogHeader"
describe("Stocks/CatalogPageItems/CatalogHeader", () => {
it("displays expected text", () => {
const props = {
title: "Strain Catalog" as const,
}
render(<CatalogHeader {...... |
<!DOCTYPE html>
<html dir="ltr" lang="pt-br">
<head>
<title>Executando Rubinius - Rubinius</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta content='pt-br' http-equiv='content-language'>
<meta content='Rubinius is an implementation of the Ruby pro... |
HeapCollision
=============
|
"use strict";
const _ = require("lodash");
const proxyquire = require("proxyquire");
describe("Column", () => {
let Column, column, columnNode, sheet, style, styleSheet, workbook, existingRows, verticalPageBreaks;
beforeEach(() => {
Column = proxyquire("../../lib/Column", {
'@noCallThru':... |
int main(int argc,char **argv)
{
TSS_HCONTEXT hContext;
TSS_HTPM hTPM;
TSS_RESULT result;
TSS_HKEY hSRK=0;
TSS_HPOLICY hSRKPolicy=0;
TSS_UUID SRK_UUID=TSS_UUID_SRK;
BYTE wks[20]; //For the well known secret
// Set wks to the well known secret: 20 bytes of all 0âs
memset(wks,0,20);
//Pick the TPM you are talking to... |
module Writefully
class Tagging < ActiveRecord::Base
self.table_name = "writefully_taggings"
belongs_to :tag, class_name: "Writefully::Tag"
belongs_to :post, class_name: "Writefully::Post"
end
end
|
<!DOCTYPE html>
<html lang="en">
<head>
<title>RuntimeIntent Structure Reference</title>
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
<meta charset='utf-8'>
<script src="../js/jquery.min.js" defer></script>
... |
import { Optional } from '@angular/core';
import { Subject } from 'rxjs/Subject';
import { SortDirection } from './sort-direction';
/**
* To modify the labels and text displayed, create a new instance of MatSortHeaderIntl and
* include it in a custom provider.
*/
export declare class MatSortHeaderIntl {
/**
... |
require_relative '../exceptions/command_failed'
require_relative '../models/domain'
module GoodData
module Command
# Low level access to GoodData API
class Domain
attr_reader :name
class << self
def add_user(domain, login, password, opts = { :client => GoodData.connection })
da... |
<?php
namespace tomkyle\Databases;
/**
* DatabaseProviderInterface
*
* Prescribes methods for providing generic database connections.
*/
interface DatabaseProviderInterface
{
/**
* Returns a PDO instance.
*
* @return \PDO
*/
public function getPdo();
/**
* Returns a Aura.SQL Database Connection
*
* @... |
using System;
using System.Collections;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Input;
using System.Windows.Media;
using GongSolutions.Wpf.DragDrop.Icons;
using GongSolutions.Wpf.DragDrop.Utilities;
using System.Windows.Medi... |
/*
* Programmer: Quincey Koziol
* Friday, January 30, 2004
*
* Purpose: Common routines for all MPI-based VFL drivers.
*
*/
#include "H5private.h" /* Generic Functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5Fprivate.h" /* File access */
#include "H5FDprivate.h" /... |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/raw_launcher"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystem... |
kanjirenshuu
============
A light website for practicing Japanese reading of Kanji: http://br1992.github.io/kanji/
|
<?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... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
//
// Why base-58 instead of standard base-64 encoding?
// - Don't want 0OIl char... |
/****************************************************************************
** Meta object code from reading C++ file 'timebar.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.1)
**
** WARNING! All changes made in this file will be lost!
*************************************************************... |
package com.example.starwardrobe.ui.main.fragment.fashion.adapter;
import android.content.Context;
import android.widget.ImageView;
import com.example.starwardrobe.R;
import com.example.starwardrobe.ui.main.fragment.fashion.bean.Item1Bean;
import com.rock.mvplibrary.adapters.BaisBaseAdapter;
import com.squareup.picas... |
from ducktape.tests.test import Test
from ducktape.utils.util import wait_until
from kafkatest.services.kafka import KafkaService, quorum
from kafkatest.services.kafka import TopicPartition
from kafkatest.services.verifiable_producer import VerifiableProducer
from kafkatest.services.verifiable_consumer import Verifiab... |
namespace zizany {
class unity_file_reference {
public:
guid file_guid;
unity_file_reference_properties properties;
unity_file_reference();
};
}
|
// Copyright (c) 2007-2011 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)
#ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_OVERLAY_ASS... |
<?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 License, Vers... |
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Linq;
namespace Milaneze.Helpers.Test
{
[TestClass]
public class StringHelper_CapturarPalavrasNumericasTest
{
[TestMethod]
public void StringHelper_CapturarPalavrasNumericas_UmNumero()
{
stri... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
<!--
@license Apache-2.0
Copyright (c) 2018 The Stdlib 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... |
namespace Finsternis
{
using System.Collections.Generic;
using UnityEngine;
using UnityQuery;
[CreateAssetMenu(fileName ="AlignToWall", menuName ="Finsternis/Features/Alignment/Align to Wall")]
public class AlignToWall : FeatureAlignment
{
[SerializeField]
private float yOffset... |
<ion-header>
<ion-navbar core-back-button>
<ion-title>{{ 'core.course.sections' | translate }}</ion-title>
<ion-buttons end>
<button ion-button icon-only (click)="closeModal()" [attr.aria-label]="'core.close' | translate">
<ion-icon name="close"></ion-icon>
</... |
. ${srcdir}/tests/common.shi
${RUNENV} ${MEMCHECK} ./rwfile ${SRCDIR}/input_truecolor12.pam EPS
|
package com.mysqlutil;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
/**
* JDBC连接测试
* @author SevenNight
*
*/
public class JdbcTest {
public static void main(String[] args) {
JdbcSimpleUtil jdbcUtil = null;
try {
//创建工具对象
jdbcUtil = new JdbcSimpleUtil();
//获取数据库连接
... |
package org.apache.hadoop.mapred;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classifica... |
/**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.rules;
import net.sourceforge.pmd.AbstractRule;
import net.sourceforge.pmd.ast.ASTBlock;
import net.sourceforge.pmd.ast.ASTBlockStatement;
import net.sourceforge.pmd.ast.ASTBooleanLiteral;
import net.sou... |
package com.google.javascript.jscomp;
import com.google.javascript.jscomp.NodeTraversal.AbstractShallowCallback;
import com.google.javascript.rhino.IR;
import com.google.javascript.rhino.Node;
import java.util.LinkedList;
import java.util.List;
/**
* When there are multiple prototype member declarations to the sa... |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>951</title>
<script src="../eas.js"></script>
<script src="../twe.js"></script>
<script src="../mov.js"></script>
<script src="951.js"></script>
<script>
var canvas, stage, exportRoot;
function init() {
canvas = document.getElementById("canvas");
exportRo... |
package com.amazonaws.services.lightsail.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateDisk" target="_top">AWS API
* Documentation</a>
*/
@Generate... |
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.partiufast.mercadodoimperador.ui.activities.HistoryAct... |
FROM balenalib/spacely-tx2-debian:bookworm-run
# A few reasons for installing distribution-provided OpenJDK:
#
# 1. Oracle. Licensing prevents us from redistributing the official JDK.
#
# 2. Compiling OpenJDK also requires the JDK to be installed, and it gets
# really hairy.
#
# For some sample build times,... |
require "set"
class Doubleshot
class Compiler
class Classpath
include Enumerable
def initialize
@set = Set.new
end
def add(path)
path = Pathname(path.to_s).expand_path
if path.directory?
@set << path
elsif path.file?
@set << path.dir... |
#pragma once
#include <aws/ec2/EC2_EXPORTS.h>
#include <aws/ec2/EC2Request.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace EC2
{
namespace Model
{
/**
*/
class AWS_EC2_API DescribeSecurityGroupReferencesRequest... |
import { keysListeners } from '../listener';
import sinon from 'sinon';
import { globalStore } from '../store';
describe('listener.js', () => {
let clock;
beforeEach(function() {
clock = sinon.useFakeTimers();
keysListeners.length = 0;
});
afterEach(function() {
clock.restore();
keysListener... |
if( NOT EXTERNAL_SOURCE_DIRECTORY )
set( EXTERNAL_SOURCE_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/ExternalSources )
endif()
if( NOT EXTERNAL_BINARY_DIRECTORY )
set( EXTERNAL_BINARY_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} )
endif()
# Make sure this file is included only once by creating globally unique varibles
# based on... |
/**
* Dependencies.
*/
var requireDirectory = require('require-directory');
module.exports = function(server) {
// Bootstrap your controllers so you dont have to load them individually. This loads them all into the controller name space. https://github.com/troygoode/node-require-directory
var controller = requ... |
from spotify_item import SpotifyItem
class Album(SpotifyItem):
def __init__(self, **entries):
super(Album, self).__init__(**entries)
def __repr__(self):
return '<Album: {0}>'.format(self.name)
def export_for_feed(self):
return {
'uri': self.uri,
'name': s... |
package ec2query
//go:generate go run ../../fixtures/protocol/generate.go ../../fixtures/protocol/output/ec2.json unmarshal_test.go
import (
"encoding/xml"
"io"
"github.com/swapagarwal/aws-remote/Godeps/_workspace/src/github.com/aws/aws-sdk-go/aws/awserr"
"github.com/swapagarwal/aws-remote/Godeps/_workspace/src/... |
.. _sgd:
===========================
Stochastic Gradient Descent
===========================
.. currentmodule:: sklearn.linear_model
**Stochastic Gradient Descent (SGD)** is a simple yet very efficient
approach to discriminative learning of linear classifiers under
convex loss functions such as (linear) `Support Vec... |
require 'spec_helper'
describe 'Profile page', js: true do
subject { page }
let(:role) { create(:role) }
let(:user) do
create(:user, first_name: 'Jack', last_name: 'Sparrow',
primary_role: role)
end
before {
page.set_rack_session 'warden.user.user.key' => User.serialize_into_session(user).uns... |
/* Example tokeninput style #1: Token vertical list*/
ul.token-input-list {
overflow: hidden;
height: auto !important;
height: 1%;
width: 400px;
border: 1px solid #999;
cursor: text;
z-index: 999;
margin: 0;
padding: 0;
background-color: #fff;
list-style-type: none;
cle... |
set -u
SCRIPTDIR=$(dirname $(readlink -f $0))
export RESOURCEDIR="$SCRIPTDIR/resources"
export MNTDIR="$SCRIPTDIR/mnt"
[[ -d "$RESOURCEDIR" ]] || mkdir "$RESOURCEDIR" || exit 1
[[ -d "$MNTDIR" ]] || mkdir "$MNTDIR" || exit 1
IMAGEURL="http://mirror.pnl.gov/fedora/linux/releases/23/Images/armhfp/Fedora-Minimal-armhfp... |
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, de... |
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.components.minidump_uploader;
import androidx.annotation.VisibleForTesting;
import org.chromium.base.Log;
import org.chromium.base.... |
#include <csp/arch/csp_thread.h>
#include <csp/csp.h>
#include <csp/csp_error.h>
#include <csp/csp_interface.h>
#include <csp/drivers/socket.h>
#include <csp/interfaces/csp_if_socket.h>
#include <inttypes.h>
#include <stdint.h>
#include <stdlib.h>
#include <tinycbor/cbor.h>
int cbor_encode_csp_packet(csp_packet_t *... |
\documentclass[a4paper, 11pt]{article}
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english,ngerman]{babel}
\usepackage{verbatim}
\usepackage{palatino}
\usepackage{geometry}
\usepackage{scrextend}
\usepackage{parskip}
\usepackage{url}
\usepackage{graphicx}
\usepackage{xcolor}
\usep... |
package org.shenit.tutorial.android.dataprovider;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import org.shenit.tutorial.android.R;
/**
* In this example you can see how to display a contacts' entity data to user.
*/
public class ContactEntityActivity extends AppCompatActivity {
... |
<?php
namespace Genemu\Bundle\FormBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Genemu\Bundle\FormBundle\DependencyInjection\Compiler\FormPass;
/**
* An extends of Symfony\Component\HttpKernel\Bundle\Bundle
*
* @author Oliv... |
using content::BrowserThread;
using testing::_;
using testing::Return;
namespace policy {
const base::FilePath::CharType kTestExtensionsDir[] =
FILE_PATH_LITERAL("extensions");
void GetTestDataDirectory(base::FilePath* test_data_directory) {
ASSERT_TRUE(
base::PathService::Get(chrome::DIR_TEST_DATA, test... |
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="@dimen/button_radius" />
<solid android:color="@color/call_to_action" />
</shape>
|
//
// ASCAppDelegate.m
// ASCPictureManagerDemo
//
// Created by Aurélien Scelles on 21/03/2014.
// Copyright (c) 2014 Aurélien Scelles. All rights reserved.
//
#import "ASCAppDelegate.h"
@implementation ASCAppDelegate
@synthesize managedObjectContext = _managedObjectContext;
@synthesize managedObjectModel = _ma... |
#pragma once
#include <aws/ec2/EC2_EXPORTS.h>
#include <aws/ec2/EC2Request.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace EC2
{
namespace Model
{
/**
*/
class AWS_EC2_API DetachClassicLinkVpcRequest : public EC2Request
{
public:
DetachClassicLinkVpcR... |
<?php
namespace JK\Sam\Tests\File;
use JK\Sam\File\Normalizer;
use JK\Sam\Tests\PHPUnitBase;
use SplFileInfo;
class NormalizerTest extends PHPUnitBase
{
public function testNormalize()
{
$normalizer = new Normalizer($this->getCacheDir());
// string normalization
$file = $this->creat... |
class Event < ActiveRecord::Base
before_validation :find_associated_records
validate_on_create :validate_type
validates_presence_of :name, :date
after_create :add_default_number_issuer
before_destroy :validate_no_results
belongs_to :number_issuer
belongs_to :promoter, :foreign_key => "promoter_id"
belo... |
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <Cl/opencl.h>
#include "oclSetup.h"
/*
* Creates a number of "pseudo-particles" which have an x-, y-, and z-coordiate
* and a mass. These pseudo-particles do not move but they interact
* gravitationally with a test particles which moves freely based ... |
.. _Getting Started:
Getting Started
***************
Welcome to the SysAdm™ API (application programming interface)
Reference Guide! SysAdm™ is a complex utility with many integral
subsystems and classes, and this reference guide will attempt to
accurately represent the initialization, core features, and intricacie... |
namespace Rsdn.Markup
{
public interface ITagReference
{
string Name { get; }
bool ContentsAreValue { get; }
bool RequiresClosingTag { get; }
}
} |
package main
import "fmt"
func main() {
//A normal way of defining a string
var a string = "test01"
fmt.Println(a) //Dispaly test01
//The := syntax is shorthand for declaring &
//initializing a variable.
//This is the same as var b string = "test02"
b := "test02"
fmt.Println(b) //Dispaly test02
//Show the... |
#pragma once
#include <string>
#include <mraa/aio.h>
#include <mraa/gpio.h>
#include <mraa/spi.h>
#define HIGH 1
#define LOW 0
namespace upm {
/**
* @brief max5847 digital potentiometer library
* @defgroup max5847 libupm-max5847
*/
/**
* @brief C++ API for MAX5487 chip (... |
<?php
declare(strict_types=1);
namespace Linna\TestHelper\Container;
class ClassConcreteB implements ClassInterface
{
private $object = 'ClassConcreteB';
public function __construct()
{
}
public function inheritedMethod()
{
return $this->object;
}
}
|
<?php
namespace Brasa\TransporteBundle\Repository;
use Doctrine\ORM\EntityRepository;
/**
* MovimientosRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class TteVehiculoRepository extends EntityRepository {
} |
using UnityEngine;
using System.Collections;
public class StoreRange : MonoBehaviour {
public static float rangee;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
}
|
set -e
# Add the openc_bot to the Gemfile:
if [ ! -f Gemfile ]; then
echo "source 'https://rubygems.org'" >> Gemfile
echo "gem 'openc_bot', :git => 'https://github.com/openc/openc_bot.git'" >> Gemfile
fi
echo "/db/*" >> .gitignore
echo "/data/*" >> .gitignore
echo "/tmp/*" >> .gitignore
echo "/pids/*" >> .gitigno... |
'use strict';
/**
* Convert calcTrace to GeoJSON 'MultiLineString' coordinate arrays
*
* @param {object} calcTrace
* gd.calcdata item.
* Note that calcTrace[i].lonlat is assumed to be defined
*
* @return {array}
* return line coords array (or array of arrays)
*
*/
exports.calcTraceToLineCoords = functi... |
---
uid: SolidEdgeConstants.DimCalloutLeaderTextConnectionPointConstants
summary:
remarks:
---
|
<div class="pageText" id="pageText">
<p><span class="lang lang-en"><span class="lang lang-en">« <a title="en/CSS" rel="internal" href="https://developer.mozilla.org/en/CSS">CSS</a> « <a title="en/CSS_Reference" rel="internal" href="https://developer.mozilla.org/en/CSS/CSS_Reference">CSS Reference</a> </span> « <a titl... |
package apigateway
import (
"encoding/json"
"fmt"
"net/http"
"strings"
)
// Error represents an error to return in response to an
// API Gateway request.
type Error struct {
Code int `json:"code"`
Err string `json:"err"`
Message string `json:"message"`
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Monocle;
using OldSkull.Menu;
using Microsoft.Xna.Framework;
namespace OldSkull.Menu
{
public abstract class SelectorMenuEffects
{
public static Effect Fade = new Effect(20, 0.5f, 1f, FadeIn, FadeOut);
... |