code
stringlengths
4
1.01M
language
stringclasses
2 values
#include <stdio.h> #include <stdlib.h> static void foo() { throw 123; } int main(int argc, char *argv[]) { int count = argc == 1 ? 10000 : atoi(argv[ 1 ]); int n = 0; for(int i = 0; i < count; ++i) { try { foo(); } catch(...) { ++n; } } printf("%d\n", n); return 0; }
Java
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
Java
module Main where import Build_doctests (flags, pkgs, module_sources) import Data.Foldable (traverse_) import Test.DocTest (doctest) main :: IO () main = do traverse_ putStrLn args doctest args where args = ["-XOverloadedStrings"] ++ flags ++ pkgs ++ module_sources
Java
require './test_common.rb' require '../lib/crocus/minibloom' class TestMiniBloom < Test::Unit::TestCase def test_single_push results = [] mb = MiniBloom.new mb.source('p1',1) mb.p1.pro {|i| results << [2*i[0]]} mb.p1 << [2] assert_equal([4], results.pop) end def test_single_table resu...
Java
<!-- %BD_HTML%/SearchResult.htm --> <HTML> <HEAD> <meta http-equiv="Content-Type" content="text/html; charset=windows-1255"> <TITLE>úåöàú àéðèøðè - Takanot File</TITLE> </HEAD> <style> <!-- TR.A_Table {font-color:#3e6ea6; background-color: #f7f9fb; font-size:11;font-family: Arial,} TR.B_Table {font-c...
Java
// Copyright (c) 2012 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. #include "media/audio/mac/audio_low_latency_output_mac.h" #include <CoreServices/CoreServices.h> #include "base/basictypes.h" #include "base/command...
Java
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model common\models\ComputerVih */ $this->title = Yii::t('app', 'Create Computer Vih'); $this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Computer Vihs'), 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="c...
Java
<?php /** * CmsModule class file. * @author Christoffer Niska <christoffer.niska@nordsoftware.com> * @copyright Copyright &copy; 2011, Nord Software Ltd * @license http://www.opensource.org/licenses/bsd-license.php New BSD License * @package cms */ class CmsModule extends CWebModule { /** * @var string the na...
Java
// SDLRegisterAppInterface.h // #import "SDLRPCRequest.h" #import "SDLAppHMIType.h" #import "SDLLanguage.h" @class SDLAppInfo; @class SDLDeviceInfo; @class SDLLifecycleConfiguration; @class SDLSyncMsgVersion; @class SDLTemplateColorScheme; @class SDLTTSChunk; /** * Registers the application's interface with SDL. ...
Java
<style> .buy-tickets__title{margin: 10px; width: 6%; margin-left: 0px;} .buy-tickets__title.ticket-title{width: 50%;} .buy-tickets__title.flash{width: 15%;} .buy-tickets__title.flash-price{width: 11%;} .form .input__number .input__number-control.sold-out{ width: 80px;height: 10px;margin: 5px;} p...
Java
// Copyright 2020 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // These tests check that Torque-generated verifier functions crash the process // when encountering data that doesn't fit the Torque type definitions. ...
Java
from django import template from django.utils.safestring import mark_safe from mezzanine.conf import settings from mezzanine_developer_extension.utils import refactor_html register = template.Library() # Checking settings.TEMPLATE_STYLE. # Possible values are: # - mezzanine_developer_extension.styles.macos # -...
Java
#pragma once //=====================================================================// /*! @file @brief R8C グループ・コンパレーター I/O 制御 @author 平松邦仁 (hira@rvf-rc45.net) @copyright Copyright (C) 2015, 2017 Kunihito Hiramatsu @n Released under the MIT license @n https://github.com/hirakuni45/R8C/blob/master/LICENSE...
Java
./scidb2postgres -i data/fromSciDBIntDoubleString.bin -o data/toPostgresIntDoubleString.bin -f'int32_t,int32_t null,double,double null,string,string null'
Java
To update Mongo to Version 4.0 you must first upgrade to 3.6 then to version 4.0 as follows 1. Install 3.6 Binary 2. Close mongo and mongod 3. Start mongo and mongod in 3.6 bin folder 4. run command db.adminCommand({setFeatureCompatibilityVersion: "3.6"}) 1. Install 4.0 Binary 2. Close mongo and mongod 3. Start mongo...
Java
/* Copyright (c) 2003-2014, Arvid Norberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and ...
Java
<?php /** * Gem - File Uploading for Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE. * * @category Gem * @package Gem_Manipulator * @copyright Copyright (c) 2008 Johan Nilsson. (http://www.markupartist.com) * @li...
Java
<?php use yii\helpers\Url; ?> <div class="bjui-pageContent"> <form action="<?= Url::toRoute([$model?'update':'create','name'=>$model?$model->name:'']) ?>" id="user_form" data-toggle="validate" data-alertmsg="false"> <input name="_csrf" type="hidden" id="_csrf" value="<?= Yii::$app->request->csrfToken ?>"> ...
Java
// // BenthosLibraryTableCell.h // SeafloorExplore // // Modified from Brad Larson's Molecules Project in 2011-2012 for use in The SeafloorExplore Project // // Copyright (C) 2012 Matthew Johnson-Roberson // // See COPYING for license details // // Molecules // // The source code for Molecules is available und...
Java
--- --- # Migration Guide 2.x to 3.0 ## General ### Removed ui object The `ui` object (`tabris.ui`) and `Ui` class no longer exist. All properties formerly hosted by `ui` are now directly attached to the `tabris` object/namespace. Example: Tabris 2.x ```js import {ui} from 'tabris'; ui.contentView.background = 're...
Java
/* Copyright (C) 2011 uberspot * * Compiling: znc-buildmod urlbuffer.cpp * Dependencies: curl, wget, sed and a unix environment. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3 as published * by the Free Software Foundation (http...
Java
@extends('layout.master') @section('title','Administração') @section('content') @include('layout.topo') <div class="row"> @include('layout.menu') <div class="col-md-9"> <div class="row"> <div class="col-md-12"> <h1>Cadastro de Textos</h1> </div> </div> <form action="{{Route('admin.gravaTex...
Java
from datetime import datetime from pymongo.connection import Connection from django.db import models from eventtracker.conf import settings def get_mongo_collection(): "Open a connection to MongoDB and return the collection to use." if settings.RIGHT_MONGODB_HOST: connection = Connection.paired( ...
Java
// Copyright (c) 2012 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. #include "ash/display/display_controller.h" #include <algorithm> #include "ash/ash_switches.h" #include "ash/display/display_manager.h" #include "as...
Java
/** * Copyright 5AM Solutions Inc, ESAC, ScenPro & SAIC * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/caintegrator/LICENSE.txt for details. */ package gov.nih.nci.caintegrator.web.action.study.management; import static org.junit.Assert.assertEquals; import static org...
Java
# AWS SDK for JavaScript [![NPM](https://nodei.co/npm/aws-sdk.svg?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/aws-sdk/) [![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.svg)](https://gitter.im/aws/aws-sdk-js) [![Version](https://badge.fury.io/js/aws-sdk.svg)](http://badge.fury.io/js/aw...
Java
# encoding: utf-8 import sys sys.path.append(sys.path.insert(0,"../src")) def urlopen(*args, **kwargs): # Only parse one arg: the url return Urls[args[0]] # Provide a simple hashtable to contain the content of the urls and # provide a mock object similar to what will be returned from the # real urlopen() fu...
Java
<!DOCTYPE html> <!-- | Setting the 4 different border widths for 4 directions. border-top-width | would be default width. | https://www.w3.org/TR/css3-background/#border-width --> <html> <head> <style> div { border: solid; border-color: blue; border-left-width: 20px; border-bottom-wi...
Java
# -*- coding: utf-8 -*- # # complexity documentation build configuration file, created by # sphinx-quickstart on Tue Jul 9 22:26:36 2013. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # ...
Java
/* * Copyright (c) 2008, Keith Woodward * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of c...
Java
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD Lic...
Java
// RobotBuilder Version: 2.0 // // This file was generated by RobotBuilder. It contains sections of // code that are automatically generated and assigned by robotbuilder. // These sections will be updated in the future when you export to // Java from RobotBuilder. Do not put any code or make any change in // the block...
Java
# -*- encoding : utf-8 -*- require 'test_helper' class Cuenta::CompeticionesControllerTest < ActionController::TestCase test "should_see_configuration_page_of_every_competition" do u = User.find(1) sym_login 1 competitions = [] # Usamos random porque hay 361 combinaciones posibles de competicione...
Java
# This file is part of Metasm, the Ruby assembly manipulation suite # Copyright (C) 2006-2009 Yoann GUILLOT # # Licence is LGPL, see LICENCE in the top-level directory require 'metasm/main' require 'metasm/ia32' module Metasm # The x86_64, 64-bit extension of the x86 CPU (x64, em64t, amd64...) class X86_64...
Java
# This file helps to compute a version number in source trees obtained from # git-archive tarball (such as those provided by githubs download-from-tag # feature). Distribution tarballs (built by setup.py sdist) and build # directories (produced by setup.py build) will contain a much shorter file # that just contains t...
Java
<!-- %BD_HTML%/SearchResult.htm --> <HTML> <HEAD> <meta http-equiv="Content-Type" content="text/html; charset=windows-1255"> <TITLE>úåöàú àéðèøðè - Takanot File</TITLE> </HEAD> <style> <!-- TR.A_Table {font-color:#3e6ea6; background-color: #f7f9fb; font-size:11;font-family: Arial,} TR.B_Table {font-c...
Java
<?php /** * RSSAggregatingPage lets a CMS Authors aggregate and filter a number of RSS feed. */ class RSSAggregatingPage extends Page { static $db = array ( "NumberOfItems" => "Int" ); static $has_many = array( "SourceFeeds" => "RSSAggSource", "Entries" => "RSSAggEntry" ); private static $moderation...
Java
from . import Cl, conformalize layout_orig, blades_orig = Cl(3) layout, blades, stuff = conformalize(layout_orig) locals().update(blades) locals().update(stuff) # for shorter reprs layout.__name__ = 'layout' layout.__module__ = __name__
Java
using System; using Renci.SshNet.Messages.Connection; namespace Renci.SshNet.Channels { internal abstract class ServerChannel : Channel { internal void Initialize(Session session, uint localWindowSize, uint localPacketSize, uint remoteChannelNumber, uint remoteWindowSize, uint remotePacketSize) ...
Java
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>mne.find_events &#8212; MNE 0.15 documentation</title> <link rel="stylesheet" href="../_static/bootstrap-sphinx.css" type="text/css" /> <link rel="stylesheet...
Java
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model app\models\ShopGoodsCategory */ $this->title = Yii::t('app', 'Create Shop Goods Category'); $this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Shop Goods Categories'), 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title...
Java
// Copyright (c) 2012 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. #include "chrome/browser/chromeos/login/login_utils.h" #include <algorithm> #include <set> #include <vector> #include "base/bind.h" #include "base/c...
Java
package edu.ucdenver.ccp.datasource.fileparsers.snomed; import edu.ucdenver.ccp.datasource.fileparsers.SingleLineFileRecord; /* * #%L * Colorado Computational Pharmacology's common module * %% * Copyright (C) 2012 - 2015 Regents of the University of Colorado * %% * Redistribution and use in source and binary fo...
Java
""" Unit tests to ensure that we can call reset_traits/delete on a property trait (regression tests for Github issue #67). """ from traits import _py2to3 from traits.api import Any, HasTraits, Int, Property, TraitError from traits.testing.unittest_tools import unittest class E(HasTraits): a = Property(Any) ...
Java
<?php namespace app\controllers; use app\models\ContactForm; use app\models\LoginForm; use Yii; use yii\filters\AccessControl; use yii\filters\VerbFilter; use yii\web\Controller; class SiteController extends Controller { public function behaviors() { return [ 'access' => [ ...
Java
/* dlar1v.f -- translated by f2c (version 20061008). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of...
Java
<?php namespace elisdn\gii\fixture\tests; use yii\db\ActiveRecord; class Post extends ActiveRecord { public static function tableName() { return 'post'; } }
Java
package com.mattunderscore.trees.base; import static org.junit.Assert.*; import static org.mockito.Mockito.verify; import static org.mockito.MockitoAnnotations.initMocks; import java.util.Iterator; import java.util.NoSuchElementException; import org.junit.Before; import org.junit.Test; import org.mockito.Mock; impo...
Java
// Copyright 2004-present Facebook. All Rights Reserved. #include <vector> #include <string> #include <osquery/core.h> #include <osquery/logger.h> #include <osquery/tables.h> #include "osquery/events/linux/udev.h" namespace osquery { namespace tables { /** * @brief Track udev events in Linux */ class HardwareEve...
Java
// Copyright 2018 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. #ifndef CHROME_BROWSER_UI_WEBAUTHN_SHEET_MODELS_H_ #define CHROME_BROWSER_UI_WEBAUTHN_SHEET_MODELS_H_ #include <memory> #include <string> #include "chro...
Java
package com.spm.store; import java.io.Serializable; import java.util.List; import android.content.Context; /** * * @author Agustin Sgarlata * @param <T> */ public class DbProvider<T extends Serializable> extends Db4oHelper { public Class<T> persistentClass; public DbProvider(Class<T> persistentClass, Conte...
Java
package main /* * CSCI 4229 Assignment 5: Lighting * * Author: Zach Anders * * Some code derived from CSCI 4229 Examples 9, 10, and 13 (ex9.c, ex10.c, ex13.c) * * Code for 2D text display (due to missing windowpos2i) based off some example code * at http://programmingexamples.net/wiki/OpenGL/Text */ import ( "actor...
Java
from django import forms from ncdjango.interfaces.arcgis.form_fields import SrField class PointForm(forms.Form): x = forms.FloatField() y = forms.FloatField() projection = SrField()
Java
<!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.17.1: http://docutils.sourceforge.net/" /> <meta name="viewport" content="width=device-width,initial-scale=1"> <meta ht...
Java
<? $this->title = Yii::t("UserModule.user", 'Create profile field'); $this->breadcrumbs=array( Yii::t("UserModule.user", 'Profile fields')=>array('admin'), Yii::t("UserModule.user", 'Create')); ?> <?php echo $this->renderPartial('_form', array('model'=>$model)); ?>
Java
<!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 (1.8.0_45) on Mon Jul 12 18:25:20 IDT 2021 --> <title>com.exlibris.repository.persistence.sip</title> <meta name="date" content="2021-07-12"> <link re...
Java
/* * Kit.h * * Created on: 21 Aug 2016 * Author: jeremy */ #ifndef SOURCE_DRUMKIT_KITS_KIT_H_ #define SOURCE_DRUMKIT_KITS_KIT_H_ #include "KitParameters.h" #include "KitManager.h" #include "../../Sound/SoundBank/SoundBank.h" #include "../Instruments/Instrument.h" #include "../Triggers/Triggers/Trigger.h"...
Java
# -*- coding: utf-8 -*- # # Copyright (c) 2015, Alcatel-Lucent Inc, 2017 Nokia # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyrigh...
Java
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <title>Zend_Session - Zend Framework...
Java
/* * hostapd / Initialization and configuration * Copyright (c) 2002-2014, Jouni Malinen <j@w1.fi> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "utils/eloop.h" #include "common/ieee802_11...
Java
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE191_Integer_Underflow__int_listen_socket_postdec_45.c Label Definition File: CWE191_Integer_Underflow__int.label.xml Template File: sources-sinks-45.tmpl.c */ /* * @description * CWE: 191 Integer Underflow * BadSource: listen_socket Read data using a listen so...
Java
// Copyright 2014 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. //------------------------------------------------------------------------------ // Description of the life cycle of a instance of MetricsService. // // ...
Java
/* * PROJECT: Atomix Development * LICENSE: BSD 3-Clause (LICENSE.md) * PURPOSE: Cgt MSIL * PROGRAMMERS: Aman Priyadarshi (aman.eureka@gmail.com) */ using System; using System.Reflection; using Atomixilc.Machine; using Atomixilc.Attributes; using Atomixilc.Machine.x86; ...
Java
{{ define "footer" }} <div class="ui inverted footer vertical segment"> <div class="ui stackable center aligned page grid"> <!-- <div class="ten wide column"> <div class="ui three column center aligned stackable grid"> <div class="column"> <h5 class="ui inverted header">Cou...
Java
# itten
Java
/** * This code is free software; you can redistribute it and/or modify it under * the terms of the new BSD License. * * Copyright (c) 2008-2011, Sebastian Staudt */ package com.github.koraktor.steamcondenser.steam.community; import static com.github.koraktor.steamcondenser.steam.community.XMLUtil.loadXml; impor...
Java
package com.atlassian.pageobjects.components.aui; import com.atlassian.pageobjects.PageBinder; import com.atlassian.pageobjects.binder.Init; import com.atlassian.pageobjects.binder.InvalidPageStateException; import com.atlassian.pageobjects.components.TabbedComponent; import com.atlassian.pageobjects.elements.PageElem...
Java
<?php /** * iDatabase数据管理控制器 * * @author young * @version 2013.11.22 * */ namespace Idatabase\Controller; use My\Common\Controller\Action; class ImportController extends Action { /** * 读取当前数据集合的mongocollection实例 * * @var object */ private $_data; /** * 读取数据属性结构的mongocol...
Java
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model app\models\IzinmenutupjalanSearch */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="izinmenutupjalan-search"> <?php $form = ActiveForm::begin([ 'action' => ['index'], 'method' => 'get', ...
Java
# -*- coding: utf-8 -*- """ Display currently playing song from Google Play Music Desktop Player. Configuration parameters: cache_timeout: how often we refresh this module in seconds (default 5) format: specify the items and ordering of the data in the status bar. These area 1:1 ma...
Java
<!DOCTYPE html> <html> <meta charset="utf-8"> <title>Date parser test — 100&lt;=x&lt;=999 and January&lt;=y&lt;=December and 100&lt;=z&lt;=999 — 100 december 100</title> <script src="../date_test.js"></script> <p>Failed (Script did not run)</p> <script> test_date_invalid("100 december 100", "Invalid Date"...
Java
// // buffered_write_stream.hpp // ~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2013 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #ifndef BOOST_ASI...
Java
//////////////////////////////////////////////////////////////////////////////////// /// /// \file reporttimeout.cpp /// \brief This file contains the implementation of a JAUS message. /// /// <br>Author(s): Bo Sun /// <br>Created: 17 November 2009 /// <br>Copyright (c) 2009 /// <br>Applied Cognition and ...
Java
/*! normalize.css v3.0.1 | 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, nav, section, summary { display: block; } audio, canvas, pr...
Java
/********************************************************************** * * Copyright (c) 2004-2005 Endace Technology Ltd, Hamilton, New Zealand. * All rights reserved. * * This source code is proprietary to Endace Technology Limited and no part * of it may be redistributed, published or disclosed except as outlined in...
Java
////functionen hämtar alla artiklar med hjälp av getJSON //och får tillbaka en array med alla artiklar //efter den är klar kallar den på functionen ShoArtTab. //som skriver ut alla artiklar i en tabell. function getAllAdminProducts() { $.getJSON("index2.php/getAllProducts").done(showArtTab); } //functionen showArtT...
Java
<?php namespace common\models; use Yii; use yii\db\ActiveRecord; /** * This is the model class for table "template_js". * * @property integer $id * @property integer $template_id * @property integer $js_id * * @property Js $js * @property Template $template */ class TemplateJs extends ActiveRecord { /**...
Java
create table Account_ ( accountId int8 not null primary key, companyId int8, userId int8, userName varchar(75), createDate datetime YEAR TO FRACTION, modifiedDate datetime YEAR TO FRACTION, parentAccountId int8, name varchar(75), legalName varchar(75), legalId varchar(75), legalType varchar(75), sicCode var...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width,initial-scale=1"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="lang:clipboard.copy" conte...
Java
/** * Copyright (c) 2015, Legendum Ltd. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, this * list of conditi...
Java
<?php use yii\bootstrap\ActiveForm; use yii\helpers\Html; use yii\grid\GridView; use yii\helpers\Url; use app\models\Ticket; $this->params['breadcrumbs'][] = ['label' => Yii::t('app','ticket list'), 'url' => ['#']]; $this->params['addUrl'] = 'ticket/new'; ?> <div class="row"> <div class="col-lg-12"> <!-- ST...
Java
/* * This file is part of the Soletta Project * * Copyright (C) 2015 Intel Corporation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain ...
Java
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model app\models\Category */ $this->title = 'Update Consultant Category: ' . ' ' . $model->category; $this->params['breadcrumbs'][] = ['label' => 'Categories', 'url' => ['index']]; $this->params['breadcrumbs'][] = ['label' => $model->category, 'url' ...
Java
/* ========================================================================= */ /* ------------------------------------------------------------------------- */ /*! \file cmdtextfield.h \date Dec 2011 \author TNick \brief Contains the definition for CmdTextField class *//* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
Java
/* * Copyright (c) 2011, Run With Robots * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of ...
Java
/* * Copyright (c) 2007, Mathieu Champlon * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met : * * . Redistributions of source code must retain the above cop...
Java
package com.xoba.smr; import java.io.PrintWriter; import java.io.StringReader; import java.io.StringWriter; import java.net.URI; import java.util.Collection; import java.util.Formatter; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.Properties; import java.util.Set; imp...
Java
////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2004-2021 musikcube team // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redist...
Java
<?php namespace app\controllers\user; use Yii; use dektrium\user\controllers\ProfileController as PController; use app\models\ProfileSearch; /** * UserInfoController implements the CRUD actions for UserInfo model. */ class ProfileController extends PController { /*public function behaviors() { retu...
Java
#!/bin/bash NAME=realtimefec PROJ=fecreader # This doesn't use the feed, it tests the file downloads # This is everything to handle the files before the body rows are entered # After the body rows are entered, the exotic ones must be superceded source /projects/$NAME/virt/bin/activate # /projects/$NAME/src/$NAME/$PRO...
Java
#ifndef REGRESS_H #define REGRESS_H /* Macro to shorten code where a number is added to the current value of an * element in a matrix. */ #define addval(A, VAL, I, J) setval((A), (VAL) + val((A), (I), (J)), (I), (J)) typedef struct { double **array; int rows; int cols; } matrix; void DestroyMatrix(matri...
Java
div#childtickets { border: 1px outset #996; border-radius: .5em; padding: 1em; } div#childtickets table.listing thead th { border: none; } div#childtickets table.listing tbody tr { border: none; } div#childtickets table.listing tbody td { border: none; padding: 0.1em 0.5em; }
Java
----------------------------------------------------------------------------- -- | -- Module : Distribution.Client.Configure -- Copyright : (c) David Himmelstrup 2005, -- Duncan Coutts 2005 -- License : BSD-like -- -- Maintainer : cabal-devel@haskell.org -- Portability : portable -- ...
Java
/* * [The BSD 3-Clause License] * Copyright (c) 2015, Samuel Suffos * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyrig...
Java
#!/usr/bin/python import os # With the addition of Keystone, to use an openstack cloud you should # authenticate against keystone, which returns a **Token** and **Service # Catalog**. The catalog contains the endpoint for all services the # user/tenant has access to - including nova, glance, keystone, swift. # # *NO...
Java
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /** * @var yii\web\View $this * @var app\models\Image $model * @var yii\widgets\ActiveForm $form */ ?> <div class="image-form"> <?php $form = ActiveForm::begin(); ?> <?= $form->field($model, 'name')->textInput(['maxlength' => 50]) ?> <?= $for...
Java
miniature-ninja-agile-awesomeness ================================= Simply the best agile programme for time reporting ever built. This is a project made by students at Linköpings University. Contributions ================================= How to contribute This project uses git, and is currently hosted on Github a...
Java
<?php /* Copyright (c) 2012, Silvercore Dev. (www.silvercoredev.com) Todos os direitos reservados. Ver o arquivo licenca.txt na raiz do BlackbirdIS para mais detalhes. */ session_start(); if (!isset($_SESSION["bis"]) || $_SESSION["bis"] != 1) { header("Location: index.php"); die(); } ?>
Java
require "rbconfig" require 'test/unit' require 'socket' require 'openssl' require 'puma/minissl' require 'puma/server' require 'net/https' class TestPumaServer < Test::Unit::TestCase def setup @port = 3212 @host = "127.0.0.1" @app = lambda { |env| [200, {}, [env['rack.url_scheme']]] } @events = ...
Java
// Copyright 2020 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. #ifndef ASH_COMPONENTS_PHONEHUB_FAKE_NOTIFICATION_ACCESS_MANAGER_H_ #define ASH_COMPONENTS_PHONEHUB_FAKE_NOTIFICATION_ACCESS_MANAGER_H_ #include "ash/com...
Java