code
stringlengths
4
1.01M
language
stringclasses
2 values
// // MenuTest.cs: Test cases for Menu, MainMenu // // Author: // Ritvik Mayank (mritvik@novell.com) // // (C) 2005 Novell, Inc. (http://www.novell.com) // using System; using System.Windows.Forms; using System.Drawing; using System.Reflection; using NUnit.Framework; namespace MonoTests.System.Windows.Forms { [Tes...
Java
/* * The code in this file is placed in public domain. * Contact: Hedede <Haddayn@gmail.com> */ #ifndef aw_traits_decay_h #define aw_traits_decay_h #include <type_traits> namespace aw { template<typename T> using decay = typename std::decay<T>::type; template<typename T> using decay_t = std::decay<T>; } // namespace...
Java
using System; using System.Net; using System.Net.Sockets; using JetBrains.Annotations; using NetMQ.Sockets; namespace NetMQ { /// <summary> /// A NetMQBeaconEventArgs is an EventArgs that provides a property that holds a NetMQBeacon. /// </summary> public class NetMQBeaconEventArgs : EventArgs { ...
Java
package org.xacml4j.v30.pdp; /* * #%L * Xacml4J Core Engine Implementation * %% * Copyright (C) 2009 - 2014 Xacml4J.org * %% * This program 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, eithe...
Java
using System; using System.Collections.Generic; using System.Text; namespace CrashReporter { /// <summary> /// The exception that is thrown when no configuration has been provided /// and an exception is reported. /// </summary> public class ConfigurationAbsentException : Exception ...
Java
/////////////////////////////////////////////////////////////////////////////// // Name: src/msw/gdiplus.cpp // Purpose: implements wrappers for GDI+ flat API // Author: Vadim Zeitlin // Created: 2007-03-14 // Copyright: (c) 2007 Vadim Zeitlin <vadim@wxwindows.org> // Licence: wxWindows ...
Java
<p>{{ student.get_full_name }},</p> <p>An intervention referral has been submitted on your behalf.</p>
Java
/**************************************************************************** ** ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the QtNetwork of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** GNU...
Java
/* pushback.h - header for pushback.c */ #ifndef pushback_H #define pushback_H 1 struct pb_file { unsigned buff_amt; ub1 pb_buff[RDSZ]; int fd; ub1* next; }; typedef struct pb_file pb_file; #ifdef __cplusplus extern "C" { #endif U_EXPORT int pb_push(pb_file*, void*, int); U_EXPORT int pb_read(pb_file*, v...
Java
.vjs-playlist { background-color: black; position: absolute; overflow-y: hidden; overflow-x: auto; display: none; } .vjs-playlist img { margin: 10px; border: 3px solid #555; border-radius: 6px; -moz-border-radius: 6px; width: 125px; height: 95px; } .vjs-playlist img:hover { border: 3px solid ...
Java
CALL osae_sp_object_type_add ('Android','Android Plugin','','PLUGIN',1,0,0,1); CALL osae_sp_object_type_state_add ('ON','Running','Android'); CALL osae_sp_object_type_state_add ('OFF','Stopped','Android'); CALL osae_sp_object_type_event_add ('ON','Started','Android'); CALL osae_sp_object_type_event_add ('OFF','Stopped'...
Java
<?php class boxberryShippingSettingsCountriesValidateController extends waJsonController { public function execute() { $selected_countries = waRequest::post('selected_countries', array(), waRequest::TYPE_ARRAY); $all_countries = waRequest::post('all_countries', 1, waRequest::TYPE_INT); ...
Java
// Catalano Imaging Library // The Catalano Framework // // Copyright © Diego Catalano, 2015 // diego.catalano at live.com // // Copyright © Andrew Kirillov, 2007-2008 // andrew.kirillov@gmail.com // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU...
Java
#__all__ = [ 'search', 'ham_distance', 'lev_distance', 'distance', 'distance_matrix' ]
Java
#include "../../src/corelib/tsampleinfolist.h"
Java
/* * Copyright 2009-2014 PrimeTek. * * 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 i...
Java
<form action="action.php" method="post" target="postframe"> <table width="100%" class="table"> <colgroup> <col width="200" /> <col /> </colgroup> <tr class="tableheader"><td colspan="2">{LANG[TITLE_GALLERY_ADD]}</td></tr> {if SET_GALLERY_SUBGALS}<tr> <td>{LANG[CREATEIN]}:</td> <td><select name="parent" onchange="refres...
Java
package es.uvigo.esei.sing.bdbm.gui.configuration; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.File; import java.util.EventListener; import java.util.EventObject; import java.util.concurrent.Callable; import javax.swing.AbstractAction; import javax.swing.GroupLayout; import...
Java
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Copyright (c) 2016,2017 The plumed team (see the PEOPLE file at the root of the distribution for a list of names) See http://www.plumed.org for more information. This file is part of plumed, version 2. plumed is free software...
Java
/* * SonarQube, open source software quality management tool. * Copyright (C) 2008-2014 SonarSource * mailto:contact AT sonarsource DOT com * * SonarQube 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 Found...
Java
/* * SonarQube * Copyright (C) 2009-2022 SonarSource SA * mailto:info AT sonarsource DOT com * * This program 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 3 of the License, o...
Java
package spitter.web; import static org.hamcrest.Matchers.*; import static org.mockito.Mockito.*; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*; import static org.springframework.test.web.servlet.setu...
Java
--- layout: default title: Pull quote / Small category: _patterns --- <blockquote class="p-pull-quote--small"> <p class="p-pull-quote__quote">We want to be able to deliver the same high-quality experience on Linux as we do on other platforms. Snaps allow us to do just that, by giving us the ability to push the lates...
Java
using Microsoft.AspNetCore.Authentication; using Microsoft.Extensions.DependencyInjection.Extensions; using Microsoft.Extensions.Options; using Sustainsys.Saml2.AspNetCore2; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Microsoft.Extensio...
Java
// <copyright file="ExpansionCase.cs" company="Allors bvba"> // Copyright (c) Allors bvba. All rights reserved. // Licensed under the LGPL license. See LICENSE file in the project root for full license information. // </copyright> namespace Autotest.Html { using System.Linq; using Autotest.Angular; using N...
Java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html xmlns="http://www.w3.org/TR/xhtml1/strict"> <head> <title>Quick Start HowTo</title> <!-- Copyright 1999-2004 The Apache Software Foundation Licensed under the Apache License, Version 2.0 (the "License"); you may ...
Java
<?php header("Content-type:text/html;charset=utf-8"); define('IC_VERNAME', '中文版'); $lang = array( 'Install guide' => 'IBOS 安装引导', 'None' => '无', 'Env check' => '环境检查', 'Env test' => '环境检测', 'Icenter required' => '所需配置', 'Recommended' => '推荐配置', 'Curr server' => '当前服务器', 'Priv check' => ...
Java
/* tio_str-- Test file for mpc_inp_str and mpc_out_str. Copyright (C) 2009, 2011, 2013, 2014 INRIA This file is part of GNU MPC. GNU MPC 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 3 o...
Java
br.test.GwtTestRunner.initialize(); describe("Dashboard App", function() { fixtures("brjs.dashboard.app.testing.DashboardFixtureFactory"); it("displays the screens that are visible", function() { given("dash.loaded = true"); and("dash.model.appsScreen.visible = true"); and("dash.model.appDetailScreen.visib...
Java
// // System.Drawing.Design.ToolboxService // // Authors: // Sebastien Pouliot <sebastien@ximian.com> // // Copyright (C) 2007 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Softwar...
Java
<?php /* * * ____ _ _ __ __ _ __ __ ____ * | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \ * | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) | * | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/ * |_| \___/ \___...
Java
declare module org { module kevoree { module modeling { class KActionType { static CALL: KActionType; static CALL_RESPONSE: KActionType; static SET: KActionType; static ADD: KActionType; static REMOVE: KActionType; ...
Java
// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers // // This file is part of Bytecoin. // // Bytecoin 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 3 of t...
Java
Aikau 1.0.101 Release Notes === IMPORTANT --- From version 1.0.96 onwards there is a new `aikau` package provided. The code in this package is intended to form the basis of a 1.1 version of Aikau (which will be the first release to contain breaking changes). The contents of this package at **not** subject to the same ...
Java
/* * Copyright (C) 2009 Christian Hujer. * * This library 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. * * This li...
Java
// // System.Net.WebResponse // // Author: // Lawrence Pit (loz@cable.a2000.nl) // // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // withou...
Java
{loop name="product.infos" type="product" id=$product_id limit="1" with_prev_next_info="1" with_prev_next_visible="1"} <div class="ProductInfos"> <div class="flex justify-between"> {include file="components/smarty/Title/Title.html" type="h1" title=$TITLE class="Title--left mb-6" nofilter=true} </div> <div>...
Java
#Special rules for nouns, to avoid suggesting wrong lemmas. Nothing is done for other POS. import pymorphy2 blacklist1 = ['ъб', 'ъв', 'ъг', 'ъд', 'ъж', 'ъз', 'ък', 'ъл', 'ъм', 'ън', 'ъп', 'ър', 'ъс', 'ът', 'ъф', 'ъх', 'ъц', 'ъч', 'ъш', 'ъщ', 'йй', 'ьь', 'ъъ', 'ыы', 'чя', 'чю', 'чй', 'щя', 'щю', 'щй', 'шя', 'шю', 'шй',...
Java
var searchData= [ ['keep_5fhistory_2ecpp',['keep_history.cpp',['../keep__history_8cpp.html',1,'']]], ['keep_5fhistory_5fpass_2ecpp',['keep_history_pass.cpp',['../keep__history__pass_8cpp.html',1,'']]], ['keep_5fhistory_5fpass_2eh',['keep_history_pass.h',['../keep__history__pass_8h.html',1,'']]] ];
Java
/* {{ jtdavids-reflex }} Copyright (C) 2015 Jake Davidson This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is dist...
Java
/**************************************************************************** ** ** Jreen ** ** Copyright © 2012 Ruslan Nigmatullin <euroelessar@yandex.ru> ** ***************************************************************************** ** ** $JREEN_BEGIN_LICENSE$ ** Jreen is free software: you can redistribute it and/...
Java
using System.Data.Entity; using System.Linq; namespace EntityProfiler.Tools.MessageGenerator { public sealed class AppDbContext : DbContext { public DbSet<Product> Products { get; set; } public DbSet<Price> Prices { get; set; } /// <summary> /// Constructs a new context instance ...
Java
<!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_16) on Thu Feb 26 13:28:54 PST 2009 --> <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <TITLE> Uses of Class javax.mail.Tra...
Java
<?php /** * Contao Open Source CMS * * Copyright (c) 2005-2014 Leo Feyer * * @package Kitchenware * @author Hamid Abbaszadeh * @license GNU/LGPL * @copyright 2014 */ /** * Fields */ $GLOBALS['TL_LANG']['tl_kitchenware_category']['title'] = array('Kitchenware category title', 'Please enter the k...
Java
// -*- SystemC -*- // DESCRIPTION: Verilator Example: Top level main for invoking SystemC model // // This file ONLY is placed under the Creative Commons Public Domain, for // any use, without warranty, 2017 by Wilson Snyder. // SPDX-License-Identifier: CC0-1.0 //========================================================...
Java
/* pkTriggerCord Copyright (C) 2011-2014 Andras Salamon <andras.salamon@melda.info> Remote control of Pentax DSLR cameras. Support for K200D added by Jens Dreyer <jens.dreyer@udo.edu> 04/2011 Support for K-r added by Vincenc Podobnik <vincenc.podobnik@gmail.com> 06/2011 Support for K-30 added b...
Java
/**************************************************************************/ /* */ /* This file is part of CINV. */ /* */ /* Copyrigh...
Java
package org.cloudbus.cloudsim.examples.power.steady; import java.io.IOException; /** * A simulation of a heterogeneous power aware data center that applies the * Static Threshold (THR) VM allocation policy and Minimum Migration Time (MMT) * VM selection policy. * * The remaining configuration parameter...
Java
#pragma once #include "SamplingMethod.h" namespace PcapDotNet { namespace Core { /// <summary> /// This sampling method defines that we have to return 1 packet every given time-interval. /// In other words, if the interval is set to 10 milliseconds, the first packet is returned to the caller; the next re...
Java
/** * <copyright> * </copyright> * * $Id$ */ package orgomg.cwm.analysis.olap.impl; import java.util.Collection; import org.eclipse.emf.common.notify.NotificationChain; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; ...
Java
namespace Importer.Interfaces { public interface ISilence { float Start { get; } float End { get; } float Duration { get; } float CutTime { get; } } }
Java
/////////////////////////////////////////////////////////////////////////////// // Name: src/ribbon/gallery.cpp // Purpose: Ribbon control which displays a gallery of items to choose from // Author: Peter Cawley // Modified by: // Created: 2009-07-22 // Copyright: (C) Peter Cawley // Licenc...
Java
package com.wavpack.decoder; import java.io.RandomAccessFile; /* ** WavpackContext.java ** ** Copyright (c) 2007 - 2008 Peter McQuillan ** ** All Rights Reserved. ** ** Distributed under the BSD Software License (see license.txt) ** */ public class WavpackContext { Wavpac...
Java
// // ALBBItemService.h // ALBBTradeSDK // 电商接口 商品详情service // Created by 友和(lai.zhoul@alibaba-inc.com) on 15/3/4. // Copyright (c) 2015年 Alipay. All rights reserved. // #import <Foundation/Foundation.h> #import "ALBBTradeService.h" NS_ASSUME_NONNULL_BEGIN /** 商品服务 */ @protocol ALBBItemService <ALBBTradeService...
Java
using System.Xml.Serialization; namespace Geo.Gps.Serialization.Xml.Gpx.Gpx10 { [XmlType(AnonymousType=true, Namespace="http://www.topografix.com/GPX/1/0")] public class GpxTrackPoint : GpxPoint { public decimal course { get; set; } [XmlIgnore] public bool courseSpecified { get; se...
Java
<?php /** * 信息中心默认语言包 zh_cn * * @package application.modules.officialdoc.language.zh_cn * @version $Id: default.php 481 2013-05-30 08:04:10Z gzwwb $ * @author gzwwb <gzwwb@ibos.com.cn> */ return array( //----------------golabs------------------- 'Information center' => '信息中心', 'Officialdoc' => '通知公告'...
Java
/** * 基于jquery.select2扩展的select插件,基本使用请参考select2相关文档 * 默认是多选模式,并提供了input模式下的初始化方法,对应的数据格式是{ id: 1, text: "Hello" } * 这里的参数只对扩展的部分作介绍 * filter、includes、excludes、query四个参数是互斥的,理论只能有其一个参数 * @method ibosSelect * @param option.filter * @param {Function} option.filter 用于过滤源数据的函数 * @param {Array} option.includes...
Java
/**************************************************************************** ** ** Copyright (C) 2015 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the documentation of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** You may use this file under the terms of the BSD license as f...
Java
#pragma once #include "Session.h" #pragma once #include "NetPacket.h" class ChatSession: public Session { public: void HandlePing(NetPacket * NetPacket); void HandleEnterRoom(NetPacket * recvPack); void HandleLevaeRoom(NetPacket * recvPack); void HandlePlayerMessage(NetPacket * recvPack); uns...
Java
#include <cstdio> #include <cstring> #define MAXX 50 #define MAXY 50 #define MAXLEN 100 #define Zero(v) memset((v), 0, sizeof(v)) int X, Y; char ins[MAXLEN + 1]; int x, y, d; bool scent[MAXX + 1][MAXY + 1]; const char dirs_str[] = "NESW"; const int dirs[4][2] = { { 0, 1 }, { 1, 0 }, { 0, -1 }, ...
Java
/** ****************************************************************************** * @file DMA/DMA_FLASHToRAM/Src/stm32f1xx_it.c * @author MCD Application Team * @version V1.3.0 * @date 18-December-2015 * @brief Main Interrupt Service Routines. * This file provides template for al...
Java
[SDS-2.2, Scalable Data Science](https://lamastex.github.io/scalable-data-science/sds/2/2/) =========================================================================================== This is an elaboration of the <http://spark.apache.org/docs/latest/sql-programming-guide.html> by Ivan Sadikov and Raazesh Sainudiin. ...
Java
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; function Square(props) { return ( <button className="square" onClick={props.onClick}> {props.value} </button> ); } class Board extends React.Component { renderSquare(i) { return ( <Square value={thi...
Java
/********************************************************************************** Copyright (C) 2012 Syed Reza Ali (www.syedrezaali.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software w...
Java
require('babel-core/register')({plugins: ['babel-plugin-rewire']}) import packageJson from '../package.json' import conformToMask from '../src/conformToMask' import {placeholderChar} from '../src/constants' const createTextMaskInputElement = (isVerify()) ? require(`../${packageJson.main}`).createTextMaskInputElemen...
Java
Take a distributed lock in a shared SQL Server database. In F#: Example ------- Take a distributed lock in a shared SQL Server database. In F#: #r "Sproc.Lock.dll" open System open Sproc.Lock.Fun let connString = "sql server connection string" let lock1 = GetGlobalLock connString (TimeSpan.Fr...
Java
GoogleElectionMap.shapeReady({name:"28_05",type:"state",state:"28_05",bounds:[],centroid:[],shapes:[ {points:[ {x:32.8810559124534,y: 24.5253494052583} , {x:32.8804366855404,y: 24.5250018993236} , {x:32.8804349320052,y: 24.5250021192127} , {x:32.8800699675051,y: 24.52504787811} , {x:32.880107603168,y: 24.5253602242076}...
Java
<?php /** * An exception when an fActiveRecord is not found in the database * * @copyright Copyright (c) 2007-2008 Will Bond * @author Will Bond [wb] <will@flourishlib.com> * @license http://flourishlib.com/license * * @package Flourish * @link http://flourishlib.com/fNotFoundExcepti...
Java
/** ****************************************************************************** * @file main.h * @author MCD Application Team * @version V1.3.0 * @date 18-December-2015 * @brief Header for main.c module ****************************************************************************** *...
Java
*DECK PRWPGE SUBROUTINE PRWPGE (KEY, IPAGE, LPG, SX, IX) C***BEGIN PROLOGUE PRWPGE C***SUBSIDIARY C***PURPOSE Subsidiary to SPLP C***LIBRARY SLATEC C***TYPE SINGLE PRECISION (PRWPGE-S, DPRWPG-D) C***AUTHOR Hanson, R. J., (SNLA) C Wisniewski, J. A., (SNLA) C***DESCRIPTION C C PRWPGE LIMITS ...
Java
#include "buffer_manager.hh" #include "assert.hh" #include "buffer.hh" #include "client_manager.hh" #include "exception.hh" #include "file.hh" #include "ranges.hh" #include "string.hh" namespace Kakoune { BufferManager::~BufferManager() { // Move buffers to avoid running BufClose with buffers remaining in that l...
Java
# Talking points ## Start of Class 0. Remind students that we do not have class on MLK day 1. Remind students of the assignment that will be due 2. Alert students that there is a guest speaker tonight -- a web developer 3. Mention to students that class will keep ramping up 4. Be sure to tell students to regularly ch...
Java
// // Mixer.h // Tonic // // Created by Nick Donaldson on 2/9/13. // // See LICENSE.txt for license and usage information. // //! A mixer is like an adder but acts as a source and allows dynamic removal #ifndef __Tonic__Mixer__ #define __Tonic__Mixer__ #include "Synth.h" #include "CompressorLimiter.h" using s...
Java
// Implements http://rosettacode.org/wiki/N-queens_problem #![feature(test)] extern crate test; use std::vec::Vec; use std::thread::spawn; use std::sync::mpsc::channel; #[cfg(test)] use test::Bencher; #[cfg(not(test))] fn main() { for num in 0i32..16 { println!("Sequential: {}: {}", num, n_queens(num));...
Java
# -*- encoding: utf-8 -*- # # Copyright © 2013 IBM Corp # # Author: Tong Li <litong01@us.ibm.com> # # 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/LICEN...
Java
/* * Copyright 2014 MongoDB, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Java
/* * 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, Version 2.0 (the * "License")...
Java
<!DOCTYPE html> <html itemscope lang="en-us"> <head><meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta charset="utf-8"> <meta name="HandheldFriendly" content="True"> <meta name="MobileOptimized" content="320"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><meta name="g...
Java
/* Copyright 2020 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
Java
using System; using System.IO; using EnvDTE; namespace NuGet.VisualStudio { public class NativeProjectSystem : VsProjectSystem { public NativeProjectSystem(Project project, IFileSystemProvider fileSystemProvider) : base(project, fileSystemProvider) { } public overr...
Java
/** * 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, Version 2.0 (the * "License"); you...
Java
#!/bin/bash ## # Copyright (c) 2008-2012 Marius Zwicker # All rights reserved. # # @LICENSE_HEADER_START:Apache@ # # 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....
Java
/*! * ${copyright} */ // Provides class sap.ui.rta.plugin.Combine. sap.ui.define([ 'sap/ui/rta/plugin/Plugin', 'sap/ui/dt/Selection', 'sap/ui/dt/OverlayRegistry', 'sap/ui/rta/Utils' ], function( Plugin, Selection, OverlayRegistry, Utils ) { "use strict"; /** * Constructor for a new Combine Plugin. * ...
Java
package helpers import ( "fmt" "github.com/SpectraLogic/ds3_go_sdk/ds3" ds3Models "github.com/SpectraLogic/ds3_go_sdk/ds3/models" helperModels "github.com/SpectraLogic/ds3_go_sdk/helpers/models" "github.com/SpectraLogic/ds3_go_sdk/sdk_log" "sync" "time" ) type putProducer struct { JobM...
Java
package org.jboss.resteasy.test.providers.multipart.resource; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; @XmlRootElement(name = "customer") @XmlAccessorType(XmlAccessTyp...
Java
//// [typeGuardFunctionOfFormThis.ts] class RoyalGuard { isLeader(): this is LeadGuard { return this instanceof LeadGuard; } isFollower(): this is FollowerGuard { return this instanceof FollowerGuard; } } class LeadGuard extends RoyalGuard { lead(): void {}; } class FollowerGuard ...
Java
/* * Copyright 2015 The Kythe 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 ap...
Java
/* * Copyright 2017 PayPal * * 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 ...
Java
/* * Copyright (C) 2013 nohana, Inc. 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 app...
Java
# -*- coding: utf-8 -*- # # Copyright 2013 - Mirantis, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
Java
require 'spec_helper' require 'pureftpd_helper' describe 'PureFTPd' do include_examples 'PureFTPd', 'postgresql' end
Java
// Copyright(C) David W. Jeske, 2013 // Released to the public domain. Use, modify and relicense at will. using System; using System.Threading; using System.Globalization; using System.Drawing; using OpenTK; using OpenTK.Graphics; using OpenTK.Graphics.OpenGL; using OpenTK.Audio; using OpenTK.Audio.OpenAL; using Ope...
Java
from trex_astf_lib.api import * # IPV6 tunable example # # ipv6.src_msb # ipv6.dst_msb # ipv6.enable # class Prof1(): def __init__(self): pass def get_profile(self, **kwargs): # ip generator ip_gen_c = ASTFIPGenDist(ip_range=["16.0.0.0", "16.0.0.255"], distribution="seq") ...
Java
declare module ioc { /** * A base class for applications using an IOC Container */ abstract class ApplicationContext implements IApplicationContext { /** * A base class for applications using an IOC Container * @param appName The name of your application */ c...
Java
/* * Copyright 2005-2014 The Kuali Foundation * * Licensed under the Educational Community 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.opensource.org/licenses/ecl1.php * * Unless required by...
Java
/** * Copyright (c) 2005-20010 springside.org.cn * * Licensed under the Apache License, Version 2.0 (the "License"); * * $Id: PropertyFilter.java 1205 2010-09-09 15:12:17Z calvinxiu $ */ package com.snakerflow.framework.orm; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.u...
Java
/* * Copyright 2019 MovingBlocks * * 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...
Java
#pragma once #ifndef UTIL_LOGGER_HPP #define UTIL_LOGGER_HPP #include <gsl/span> #include <string> #include <iterator> #include <vector> #include <cstdlib> /** * @brief A utility which logs a limited amount of entries * @details Logs strings inside a ringbuffer. * * If the buffer is full, the oldest entry will b...
Java
/*! * Start Bootstrap - Freelancer Bootstrap Theme (http://startbootstrap.com) * Code licensed under the Apache License v2.0. * For details, see http://www.apache.org/licenses/LICENSE-2.0. */ body { overflow-x: hidden; } p { font-size: 20px; } p.small { font-size: 16px; } a, a:hover, a:focus, a:active, a.act...
Java
<?php namespace Scalr\Service\CloudStack\Services\Vpn\DataType; use Scalr\Service\CloudStack\DataType\AbstractDataType; /** * AddVpnUserData * * @author Vlad Dobrovolskiy <v.dobrovolskiy@scalr.com> * @since 4.5.2 */ class AddVpnUserData extends AbstractDataType { /** * Required * Password fo...
Java