repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
Oceanswave/NiL.JS
NiL.JS/Expressions/LessOrEqual.cs
1341
using System; using NiL.JS.Core; namespace NiL.JS.Expressions { #if !(PORTABLE || NETCORE) [Serializable] #endif public sealed class LessOrEqual : More { protected internal override PredictedType ResultType { get { return PredictedType.Bool; ...
bsd-3-clause
NCIP/c3pr
codebase/projects/core/src/java/edu/duke/cabig/c3pr/utils/ProjectedList.java
7205
/******************************************************************************* * Copyright Duke Comprehensive Cancer Center and SemanticBits * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/c3pr/LICENSE.txt for details. **********************************************...
bsd-3-clause
chippyash/Math-Matrix
test/src/Chippyash/Math/Matrix/Special/FunctionalTest.php
2046
<?php /** * Math-Matrix * * @author Ashley Kitson * @copyright Ashley Kitson, 2016, UK * @license BSD 3 Clause See LICENSE.md */ namespace Chippyash\Test\Math\Matrix\Special; use Chippyash\Math\Matrix\NumericMatrix; use Chippyash\Math\Matrix\Special\Functional; use Chippyash\Type\RequiredType; use Chippyash\Math...
bsd-3-clause
exponent/exponent
android/versioned-abis/expoview-abi38_0_0/src/main/java/abi38_0_0/org/unimodules/interfaces/imageloader/ImageLoader.java
978
package abi38_0_0.org.unimodules.interfaces.imageloader; import android.graphics.Bitmap; import java.util.concurrent.Future; import androidx.annotation.NonNull; import androidx.annotation.Nullable; public interface ImageLoader { interface ResultListener { void onSuccess(@NonNull Bitmap bitmap); void onFa...
bsd-3-clause
lust4life/uoko.sso
src/UOKO.SSO.Core/Current.cs
880
using System.Security.Claims; using System.Web; namespace UOKO.SSO.Core { public static class Current { public static CommonIdentity UserIdentity { get { var context = HttpContext.Current; if (context == null) { ...
bsd-3-clause
ekiwi/tinyos-1.x
contrib/vu/tools/java/isis/nest/localization/rips/GALocDisplay2.java
11699
/* * Copyright (c) 2005, Vanderbilt University * All rights reserved. * * Permission to use, copy, modify, and distribute this software and its * documentation for instruction and non-commercial research only, without * fee, and without written agreement is hereby granted, provided that the * this copyright noti...
bsd-3-clause
astory/MCAdmin
MCAdmin/Commands/Command.cs
920
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MCAdmin.Commands { public class Command { public Command() { //throw new NotImplementedException(); } public virtual void Run(Player ply, string[] cmdparts) ...
bsd-3-clause
fresskarma/tinyos-1.x
tools/java/org/python/modules/md.java
16134
package org.python.modules; /* Class for implementing md4 and md5 hash algorithms. * There are constructors for prepping the hash algorithm (doing the * padding, mainly) for a String or a byte[], and an mdcalc() method * for generating the hash. The results can be accessed as an int array * by getregs(), or as a S...
bsd-3-clause
linkorb/ZendFramework-1.10.8-minimal-patched
library/Zend/Service/DeveloperGarden/Response/VoiceButler/CallStatusResponse.php
3814
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license an...
bsd-3-clause
NCIP/cacore-sdk
hydra/src/java/gov/nih/nci/sdk/core/MessageImpl.java
1139
/*L * Copyright Ekagra Software Technologies Ltd. * Copyright SAIC, SAIC-Frederick * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/cacore-sdk/LICENSE.txt for details. */ package gov.nih.nci.sdk.core; public class MessageImpl implements Message { pr...
bsd-3-clause
sanychok/-module4
modules/user/controllers/DefaultController.php
357
<?php namespace app\modules\user\controllers; use yii\web\Controller; /** * Default controller for the `user` module */ class DefaultController extends Controller { /** * Renders the index view for the module * @return string */ public function actionIndex() { return $this->redir...
bsd-3-clause
mikest/geode
geode/mesh/PolygonSoup.cpp
2274
//##################################################################### // Class PolygonSoup //##################################################################### #include <geode/mesh/PolygonSoup.h> #include <geode/mesh/SegmentSoup.h> #include <geode/mesh/TriangleSoup.h> #include <geode/structure/Hashtable.h> #includ...
bsd-3-clause
gartung/fnal-art
art/test/Utilities/MallocOpts_t.cpp
544
#include "art/Utilities/MallocOpts.h" #include <iostream> #include <cassert> using namespace std; int main() { art::MallocOptionSetter& mo = art::getGlobalOptionSetter(); art::MallocOpts mycopy = mo.get(), defaultt; assert(mo.retrieveFromEnv()==false); assert(mo.hasErrors()==false); mo.set_mmap_max(1); m...
bsd-3-clause
tp-python-wfaiis/website
tppwebsite/tppcalendar/views.py
4941
# Create your views here. import calendar import pprint import datetime from django.conf import settings from django.shortcuts import render_to_response from django.template import RequestContext import httplib2 from lib.apiclient.discovery import build from lib.oauth2client.client import OAuth2WebServerFlow date_for...
bsd-3-clause
Workday/OpenFrame
extensions/common/permissions/socket_permission_entry.cc
6521
// 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. #include "extensions/common/permissions/socket_permission_entry.h" #include <cstdlib> #include <sstream> #include <tuple> #include <vector> #include "ba...
bsd-3-clause
dbspringer/RSSTweeter
setup.py
1500
#!/usr/bin/env python from setuptools import setup, find_packages __author__ = 'Derek Springer' __version__= '0.1.0' LONG_DESCRIPTION = ''' RSSTweeter ================== This is a simple tool to read an RSS feed and post any new entries to a twitter feed. Dependencies ------------ * [feedparser](http://www.feedpa...
bsd-3-clause
ocodersolutions/fakhar-e
public/test.php
1577
<?php phpinfo(); $words = '[> Hats|>hats]'; preg_match_all('/\[.*?\]|[^ ]+/', $words, $words); array_walk_recursive($words, function(&$v){$v= trim($v,'[]');} ); if( isset($words[0]) ) { foreach($words[0] as $word) { if(!is_string($word)) { return false; ...
bsd-3-clause
llaville/monolog-callbackfilterhandler
examples/basic.php
1888
<?php declare(strict_types=1); /** * This basic example will : * - log all events to a file called "my_logger.log" * - notify only (fake) error that have a 'exception' contextual data by mail * - WARNING: for demo, the NativeMailerHandler was replaced by a StreamHandler * * @author Laurent Laville <pear@laurent...
bsd-3-clause
kevintvh/sodium
book/petrol-pump/java/pump/Inputs.java
1195
package pump; import sodium.*; public class Inputs { public Inputs( Stream<UpDown> sNozzle1, Stream<UpDown> sNozzle2, Stream<UpDown> sNozzle3, Stream<Key> sKeypad, Stream<Integer> sFuelPulses, Cell<Double> calibration, Cell<Double...
bsd-3-clause
Crystalnix/BitPop
content/public/common/content_switches.cc
31271
// 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 "content/public/common/content_switches.h" namespace switches { // By default, file:// URIs cannot read other file:// URIs. This is an // o...
bsd-3-clause
daejunpark/jsaf
src/kr/ac/kaist/jsaf/tests/SemanticsTest.scala
6949
/******************************************************************************* Copyright (c) 2012-2013, S-Core, KAIST. All rights reserved. Use is subject to license terms. This distribution may include materials developed by third parties. **********************************************************...
bsd-3-clause
v4hn/moveit
moveit_setup_assistant/src/widgets/double_list_widget.cpp
12720
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2012, Willow Garage, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following...
bsd-3-clause
TomAugspurger/pandas
pandas/tests/arrays/string_/test_string.py
10550
import operator import numpy as np import pytest import pandas.util._test_decorators as td import pandas as pd import pandas._testing as tm def test_repr(): df = pd.DataFrame({"A": pd.array(["a", pd.NA, "b"], dtype="string")}) expected = " A\n0 a\n1 <NA>\n2 b" assert repr(df) == expected ...
bsd-3-clause
manti-by/tagler
protected/vendor/github/client/objects/GitHubIssueComment.php
1833
<?php require_once(__DIR__ . '/../GitHubObject.php'); require_once(__DIR__ . '/GitHubUser.php'); class GitHubIssueComment extends GitHubObject { /* (non-PHPdoc) * @see GitHubObject::getAttributes() */ protected function getAttributes() { return array_merge( parent::getAttrib...
bsd-3-clause
Freecer/freecer.net
plugins/ckeditor/lib/plugins/spoiler/lang/en.js
523
/* Copyright (c) 2014, Алексей Коневец aka Dr2005alex Dr2005alex@mail.ru, Dr2005alex@gmail.com http://MyCotonti.ru */ CKEDITOR.plugins.setLang('spoiler', 'en', { title :'Add Spoiler - hidden text', button_label : 'Enter the text of the button:', empty_button_text : 'The text of the button is empty!', empt...
bsd-3-clause
William-Hill-Community/flywheel
src/main/java/au/com/williamhill/flywheel/Flywheel.java
439
package au.com.williamhill.flywheel; public interface Flywheel { String REMOTE_PREFIX = "$remote"; static String getSessionTopicPrefix(String sessionId) { return REMOTE_PREFIX + "/" + sessionId; } static String getRxTopicPrefix(String sessionId) { return getSessionTopicPrefix(sessionId) + "/rx"; ...
bsd-3-clause
nbeckman/nolacoaster
JumpCar/src/nbeckman/jumpcar/CarHeightFunction.java
5938
package nbeckman.jumpcar; import java.awt.image.BufferedImage; import java.awt.image.Raster; import java.io.File; import java.io.IOException; import java.util.Map; import java.util.TreeMap; import javax.imageio.ImageIO; import edu.rice.cs.plt.tuple.Option; /** * This class holds a non-uniform distr...
bsd-3-clause
asudoh/delite
mobile/_TimePickerMixin.js
1143
define([ "dojo/_base/declare", "dojo/dom-class", "dojo/date/locale" ], function(declare, domClass, datelocale){ // module: // dui/mobile/_TimePickerMixin return declare("dui.mobile._TimePickerMixin", null, { // summary: // A mixin for time picker widget. /*===== // date: Date // A Date object corr...
bsd-3-clause
dongnan/LinkCache
tests/TestDriverYac.php
472
<?php /** * linkcache - 一个灵活高效的PHP缓存工具库 * * @author Dong Nan <hidongnan@gmail.com> * @copyright (c) Dong Nan http://idongnan.cn All rights reserved. * @link http://git.oschina.net/dongnan/LinkCache * @license BSD (http://opensource.org/licenses/BSD-3-Clause) */ namespace linkcacheT...
bsd-3-clause
eltondias/SistemaViaggio
config/application.config.php
566
<?php /** * Configuration file generated by ZFTool * The previous configuration file is stored in application.config.old * * @see https://github.com/zendframework/ZFTool */ return array( 'modules' => array( 'Core', 'Admin', //'Cliente', 'DoctrineModule', 'DoctrineORMModule', ...
bsd-3-clause
Roberdr/gaillard
frontend/web/frontend/views/vehiculo/create.php
453
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model common\models\Vehiculo */ $this->title = Yii::t('app', 'Create Vehiculo'); $this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Vehiculos'), 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="vehiculo-cre...
bsd-3-clause
michalszynkiewicz/PCJ
src/main/java/test/gol/utils/BackupUtils.java
579
package test.gol.utils; import java.io.File; import java.io.IOException; import java.nio.file.Path; /** * Author: Michal Szynkiewicz, michal.l.szynkiewicz@gmail.com * Date: 8/7/16 * Time: 12:10 AM */ public class BackupUtils { public static String backupFilePath(int no_of_nodes, int step, int id) { re...
bsd-3-clause
airbreather/RandomFireplace
External/Rx/Rx.NET/Source/Tests.System.Reactive/Tests/Concurrency/AsyncLockTest.cs
3372
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. #if !SILVERLIGHT // MethodAccessException using System; using System.Reactive.Concurrency; using System.Reflection; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Reacti...
bsd-3-clause
allencch/med
src/ui/CheckBoxDelegate.cpp
2147
#include <QtWidgets> #include <QtDebug> #include <cstdio> #include <iostream> #include "ui/CheckBoxDelegate.hpp" using namespace std; CheckBoxDelegate::CheckBoxDelegate(QWidget* parent) : QStyledItemDelegate(parent) { editor = NULL; } QWidget* CheckBoxDelegate::createEditor(QWidget* parent, ...
bsd-3-clause
bjanish/Rcm
src/Controller/Plugin/RcmIsPageAllowed.php
1498
<?php /** * Redirect To Page Controller Plugin * * This file contains the Redirect To Page Controller Plugin. * * PHP version 5.3 * * LICENSE: No License yet * * @category Reliv * @package Rcm * @author Westin Shafer <wshafer@relivinc.com> * @copyright 2014 Reliv International * @license License.tx...
bsd-3-clause
taion809/z_old_rql
src/Rql/Query/Geospacial/Line.php
461
<?php /** * Created by PhpStorm. * User: njohns * Date: 2/22/15 * Time: 5:53 PM */ namespace Rql\Query\Geospacial; use Rql\Datum; use Rql\Generated\Term\TermType; use Rql\Query\Query; class Line extends Query { public function __construct(Query $sequence) { throw new \RuntimeException("Not Yet I...
bsd-3-clause
was4444/chromium.src
content/renderer/browser_plugin/browser_plugin.cc
19228
// Copyright 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 "content/renderer/browser_plugin/browser_plugin.h" #include <stddef.h> #include <utility> #include "base/command_line.h" #include "base/locatio...
bsd-3-clause
mikem2005/vijava
src/com/vmware/vim25/ArrayOfClusterGroupInfo.java
2117
/*================================================================================ Copyright (c) 2009 VMware, Inc. 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 ...
bsd-3-clause
youtube/cobalt
net/spdy/spdy_session_fuzzer.cc
5503
// Copyright 2017 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 "base/logging.h" #include "base/macros.h" #include "base/run_loop.h" #include "base/test/fuzzed_data_provider.h" #include "net/base/host_port_pai...
bsd-3-clause
janelia-flyem/flyem_restapi
restful_core/flyem_core.py
28669
from flask import Flask, render_template, session, request, redirect, url_for, abort, json from flask.ext.sqlalchemy import SQLAlchemy import os from config import * import binascii import ldap app = Flask(__name__) app.secret_key = str(os.urandom(33)) app.config['SQLALCHEMY_DATABASE_URI'] = SQLDB db = SQLAlchemy(app...
bsd-3-clause
railsdog/spree_locations_near_you
app/assets/javascripts/spree/frontend/gmap_venues.js
5722
//= require handlebars $(document).ready(function(){ if ($("#map")) { function GmapVenues () { this.venuesSearch = $("#searchVenues"); this.rank = $(".rank"); this.venuesNearBy =$("#venues-near-by") this.location = JSON.parse($("#locationSession").html()); this.map = null; }; ...
bsd-3-clause
tebeka/pythonwise
celery_logstash.py
2718
'''Logging from Celery both to logstash and structured log (JSON) file.''' # You need to install python-logstash package. Also have logstash agent and # elasticsearch running. # Example logstash configuration (logstash.conf): # input { # udp => { # codec => json # } # } # output { # elasticsearch ...
bsd-3-clause
straight-street/straight-street-api
doophp/demos/database/protected/model/FoodType.php
176
<?php class FoodType{ public $id; public $name; public $_table = 'food_type'; public $_primarykey = 'id'; public $_fields = array('id','name'); } ?>
bsd-3-clause
Gollwu/LoLManager
front_old/multiAgent/agents/champion.agent.js
570
var AgentChampion = function (environment, team, player, id) { this.__env = environment; this.__team = team; this.__player = player;// element of players in db.js this.__id = id; }; // called in callback of onTurretAttack or later onChamp attack AgentChampion.prototype.receiveDamage = function(source){ cons...
bsd-3-clause
mbrucher/ATK-plugins
ATKUniversalVariableDelay/update_version.py
4540
#!/usr/bin/python # this script will update the versions in plist and installer files to match that in resource.h import plistlib, os, datetime, fileinput, glob, sys, string scriptpath = os.path.dirname(os.path.realpath(__file__)) def replacestrs(filename, s, r): files = glob.glob(filename) for line in filein...
bsd-3-clause
PetrovDenis/yii
views/app-output-key/index.php
1303
<?php use yii\helpers\Html; use yii\grid\GridView; use app\models\AppOutputKey; /* @var $this yii\web\view */ /* @var $dataProvider yii\data\ActiveDataProvider */ /* @var $searchModel app\models\AppOutputKeySearch */ /* @var $model app\models\AppOutputKey */ $this->title = 'Output Key'; $this->params['breadcrumbs']...
bsd-3-clause
qedsoftware/commcare-hq
corehq/apps/reports/dbaccessors.py
1822
from itertools import imap import json from django.conf import settings from corehq.apps.domain.dbaccessors import get_docs_in_domain_by_class from corehq.dbaccessors.couchapps.all_docs import get_all_docs_with_doc_types def _get_exports(domain, include_docs=True, reduce=False, **kwargs): from corehq.apps.repor...
bsd-3-clause
Beachbot330/WPILib-2014
src/edu/wpi/first/wpilibj/command/CommandGroup.java
15349
/*----------------------------------------------------------------------------*/ /* Copyright (c) FIRST 2008-2012. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of...
bsd-3-clause
AssureNote/AssureNote
AssureNote/d.ts/jquery_plugins.d.ts
3638
///<reference path='./jquery.d.ts'/> interface JQueryCookieOptions { expires?: any; path?: string; domain?: string; secure?: boolean; } interface JQueryCookieStatic { raw?: boolean; json?: boolean; (name: string): any; (name: string, value: string): void; (name: string, value: str...
bsd-3-clause
shijl/social-open
admin/views/api/list.php
4912
<table id="api-list"></table> <div id="list-dd" class="easyui-dialog" style="width:400px;height:290px;padding:10px 20px" closed="true" buttons="#dlg-buttons"> <div class="ftitle">增加接口</div> <form id="fm" method="post" novalidate> <div class="fitem"> <table cellpadding="5"> ...
bsd-3-clause
spakzad/ocs
bundle/jsky.app.ot/src/main/scala/jsky/app/ot/editor/seq/ItcTableModel.scala
12464
package jsky.app.ot.editor.seq import javax.swing.Icon import javax.swing.table.AbstractTableModel import edu.gemini.itc.shared._ import edu.gemini.shared.util.StringUtil import edu.gemini.spModel.config2.ItemKey import scala.concurrent.Future import scala.util.{Failure, Success} import scalaz._ /** Columns in the ...
bsd-3-clause
mohitbhansali/real-time-messaging-system
backend/views/layouts/admin.php
1926
<?php use yii\helpers\Html; use yii\widgets\Breadcrumbs; $controller = Yii::$app->controller->id; $action = Yii::$app->controller->action->id; ?> <?php $this->beginContent('@app/views/layouts/main.php');?> <!-- Left side column. contains the logo and sidebar --> <aside class="main-sidebar"> <!-- sidebar: style can be...
bsd-3-clause
slimsag/gfx
driver/webgl/webgl_renderbuffer.go
1259
// Copyright 2015 The Azul3D Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +build js package webgl import ( "github.com/gopherjs/gopherjs/js" "github.com/slimsag/gfx" ) // Renderbuffer implements the gfx.Renderbuffer interfa...
bsd-3-clause
smartdevicelink/sdl_atf_test_scripts
test_scripts/API/IsReady/TTS_IsReady/ATF_TTS_IsReady_missing_SingleRPC_DATA_NOT_AVAILABLE.lua
770
--------------------------------------------------------------------------------------------- -- CRQ: APPLINK-25117: [GENIVI] TTS interface: SDL behavior in case HMI does not respond to -- IsReady_request or respond with "available" = false -- -- Requirement(s): APPLINK-25131 [TTS Interface] SD...
bsd-3-clause
AppItNetwork/yii2-wordpress-themes
src/wordpress/wp-content/themes/twentythirteen/index.ori.php
1024
<?php /** * The main template file * * This is the most generic template file in a WordPress theme and one of the * two required files for a theme (the other being style.css). * It is used to display a page when nothing more specific matches a query. * For example, it puts together the home page when no home.php ...
bsd-3-clause
antoinecarme/pyaf
tests/artificial/transf_Logit/trend_MovingMedian/cycle_5/ar_/test_artificial_128_Logit_MovingMedian_5__100.py
264
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "MovingMedian", cycle_length = 5, transform = "Logit", sigma = 0.0, exog_count = 100, ar_order = 0);
bsd-3-clause
ktisha/snuggletex
snuggletex-core/src/main/java/uk/ac/ed/ph/snuggletex/dombuilding/ParagraphHandler.java
2152
/* $Id: ParagraphHandler.java 742 2012-05-07 13:09:53Z davemckain $ * * Copyright (c) 2008-2011, The University of Edinburgh. * All Rights Reserved */ package uk.ac.ed.ph.snuggletex.dombuilding; import uk.ac.ed.ph.snuggletex.definitions.CorePackageDefinitions; import uk.ac.ed.ph.snuggletex.internal.DOMBuilder; imp...
bsd-3-clause
timsnyder/bokeh
bokehjs/src/lib/models/layouts/html_box.ts
750
import {LayoutDOM, LayoutDOMView} from "../layouts/layout_dom" import {ContentBox} from "core/layout" import * as p from "core/properties" export namespace HTMLBoxView { export type Options = LayoutDOMView.Options & {model: HTMLBox} } export abstract class HTMLBoxView extends LayoutDOMView { model: HTMLBox get...
bsd-3-clause
powerdata/com.powerdata.openpa
BusRefIndex.java
2899
package com.powerdata.openpa; /* * Copyright (c) 2016, PowerData Corporation, Incremental Systems Corporation * All rights reserved. * Licensed under the BSD-3 Clause License. * See full license at https://powerdata.github.io/openpa/LICENSE.md */ import com.powerdata.openpa.impl.BusRefIndexI; /** * Provide bus...
bsd-3-clause
angavrilov/olmar
elsa/in/t0346.cc
172
// t0346.cc // type of character literals void foo() { __elsa_checkType('a', (char)0); __elsa_checkType('ab', (int)0); __elsa_checkType(L'a', (wchar_t)0); } // EOF
bsd-3-clause
jfdsmit/django-blog-zinnia
zinnia/plugins/admin.py
2124
"""Admin of Zinnia CMS Plugins""" from django.contrib import admin from django.template import RequestContext from django.utils.translation import ugettext_lazy as _ from cms.plugin_rendering import render_placeholder from cms.admin.placeholderadmin import PlaceholderAdmin from zinnia.models import Entry from zinnia....
bsd-3-clause
nirantarnoy/paperless
backend/views/jobapprove/approvefail.php
213
<?php use yii\web\Session; $session = new Session(); $session->open(); ?> <?php if(!empty($session->getFlash('msg'))):?> <div class="alert alert-error"> <?= $session->getFlash('msg');?> </div> <?php endif;?>
bsd-3-clause
mowema/verano
vendor/zendframework/zendframework/tests/ZendTest/Log/TestAsset/MockDbDriver.php
490
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ n...
bsd-3-clause
TonyBrewer/OpenHT
src/Vex/Vex/GenDefparamInit.cpp
10447
/* Copyright (c) 2015 Convey Computer Corporation * * This file is part of the OpenHT toolset located at: * * https://github.com/TonyBrewer/OpenHT * * Use and distribution licensed under the BSD 3-clause license. * See the LICENSE file for the complete license text. */ #include "stdafx.h" #include "Design.h" ...
bsd-3-clause
rbielak/Java-Abra
src/org/ephman/abra/database/QueryTracer.java
1080
/** * Title: QueryTracer<p> * Description: Class to print out info about database queries. Used for debugging<p> * @author Richie Bielak * @version 1.0 */ package org.ephman.abra.database; import java.util.Date; public class QueryTracer { /** Level 0 no trace, level 1 trace */ private static int t...
bsd-3-clause
dineshkummarc/zf2
tests/Zend/Service/LiveDocx/MailMergeTest.php
49084
<?php namespace ZendTest\Service\LiveDocx; use Zend\Service\LiveDocx\MailMerge, Zend\Soap\Client as SoapClient, PHPUnit_Framework_TestCase as TestCase; class MailMergeTest extends \PHPUnit_Framework_TestCase { const TEST_IMAGE_1 = 'image-01.png'; const TEST_IMAGE_2 = 'image-02.png'; const TEST_...
bsd-3-clause
makelivedotnet/rocksdb
db/compaction_job.cc
40482
// Copyright (c) 2013, Facebook, Inc. All rights reserved. // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the PATENTS file in the same directory. // // Copyright (c) 2011 The...
bsd-3-clause
syncore/SST
SST/Core/Commands/None/SeenCmd.cs
5706
using System; using System.Globalization; using System.Threading.Tasks; using SST.Database; using SST.Enums; using SST.Interfaces; using SST.Model; using SST.Util; namespace SST.Core.Commands.None { /// <summary> /// Command: Check date and time when player was last seen on the server. /// </summary> ...
bsd-3-clause
gotoAndBliss/True-Jersey
vendor/plugins/resource_controller/test/config/environments/test.rb
873
# Settings specified here will take precedence over those in config/environment.rb # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test suite and is wiped # and recreated be...
bsd-3-clause
anvaka/gazer
app/scripts/controllers/userInfo.js
555
'use strict'; angular.module('githubStarsApp') .controller('UserInfoCtrl', ['$scope', 'githubClient', 'config', function ($scope, githubClient, config) { githubClient.getUser().then(function (user) { $scope.isConnected = true; $scope.isAuthenticated = user.hasOwnProperty('login'); $scope.user =...
bsd-3-clause
esoftkz/yii2-Esoft-application
backend/modules/main/controllers/DefaultController.php
949
<?php namespace app\modules\main\controllers; use yii\web\Controller; use yii\filters\AccessControl; class DefaultController extends Controller { public function behaviors() { return [ 'access' => [ 'class' => AccessControl::className(), 'rules' => [ [ ...
bsd-3-clause
mtCarto/geogig
src/core/src/test/java/org/locationtech/geogig/storage/impl/ConflictsDatabaseConformanceTest.java
14719
/* Copyright (c) 2016 Boundless and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Distribution License v1.0 * which accompanies this distribution, and is available at * https://www.eclipse.org/org/documents/edl-v10.html * * Contribut...
bsd-3-clause
enthought/etsproxy
enthought/chaco/legend.py
81
# proxy module from __future__ import absolute_import from chaco.legend import *
bsd-3-clause
alameluchidambaram/CONNECT
Product/Production/Services/DocumentRetrieveCore/src/main/java/gov/hhs/fha/nhinc/docretrieve/nhin/InboundDocRetrieveOrchestrationContextBuilder.java
3371
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package gov.hhs.fha.nhinc.docretrieve.nhin; import gov.hhs.fha.nhinc.common.nhinccommon.AssertionType; import gov.hhs.fha.nhinc.orchestration.AuditTransformer; import gov.hhs.fha.nhinc.orchestration.InboundDelegate; im...
bsd-3-clause
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE78_OS_Command_Injection/s03/CWE78_OS_Command_Injection__char_file_execl_81a.cpp
3149
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__char_file_execl_81a.cpp Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-81a.tmpl.cpp */ /* * @description * CWE: 78 OS Command Injection * BadSource: file Read input from a file * GoodS...
bsd-3-clause
tracee/contextlogger
contextprovider/aspectj/src/main/java/io/tracee/contextlogger/contextprovider/aspectj/AspectJContextProviderServiceProvider.java
892
package io.tracee.contextlogger.contextprovider.aspectj; import io.tracee.contextlogger.contextprovider.api.TraceeContextProviderServiceProvider; import io.tracee.contextlogger.contextprovider.aspectj.contextprovider.AspectjProceedingJoinPointContextProvider; import io.tracee.contextlogger.contextprovider.aspectj.cont...
bsd-3-clause
darkrsw/safe
src/main/java/kr/ac/kaist/jsaf/nodes_util/DomLessSourceExtractor.java
8358
/****************************************************************************** * Copyright (c) 2002 - 2011 IBM Corporation. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is av...
bsd-3-clause
bhell/jimi
jimi/jimi/catalog/views.py
4169
from django.shortcuts import get_object_or_404, render_to_response from django.template import RequestContext #from django.template.loader import get_template from django.core import urlresolvers from django.http import HttpResponseRedirect from django.core.context_processors import csrf from jimi.catalog.models import...
bsd-3-clause
NCIP/cadsr-bulk-loader
cadsrbulkloader/src/test/java/gov/nih/nci/ncicb/cadsr/ExistingVDTestCase.java
2375
/*L * Copyright Oracle Inc, SAIC-F. * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/cadsr-bulk-loader/LICENSE.txt for details. */ package gov.nih.nci.ncicb.cadsr; import gov.nih.nci.ncicb.cadsr.bulkloader.BulkLoadProcessResult; import gov.nih.nci.ncicb.cadsr.bulkloader.C...
bsd-3-clause
jamiecurle/django-basky
basky/tests/test_middleware.py
2485
from django.test import TestCase from django.core.urlresolvers import reverse from django.conf import settings from basky import settings as basky_settings from django.contrib.auth.models import User from django.contrib.auth import login class BasketInSessionMiddlwareTestCases(TestCase): """ 'basky.middlewar...
bsd-3-clause
glumu/django-redis-cluster
django_redis_cluster/utils.py
1048
#coding:utf8 from importlib import import_module from django.utils.encoding import smart_text from django.core.exceptions import ImproperlyConfigured integer_types = (int,) class CacheKey(object): """ A stub string class that we can use to check if a key was created already. """ def __init__(sel...
bsd-3-clause
primiano/blink-gitcs
Source/platform/fonts/Font.cpp
38247
/* * Copyright (C) 1999 Lars Knoll (knoll@kde.org) * (C) 1999 Antti Koivisto (koivisto@kde.org) * (C) 2000 Dirk Mueller (mueller@kde.org) * Copyright (C) 2003, 2006, 2010, 2011 Apple Inc. All rights reserved. * Copyright (c) 2007, 2008, 2010 Google Inc. All rights reserved. * * This library i...
bsd-3-clause
youroff/spree_pickpoint
spec/controllers/cities_controller_spec.rb
57
require 'spec_helper' describe CitiesController do end
bsd-3-clause
divizionbyzero/yii
views/layouts/login-form.php
977
<?php use yii\widgets\ActiveForm; use yii\helpers\Html; $login = new \app\models\LoginForm(); $form = ActiveForm::begin([ 'id' => 'login-form', 'options' => ['class' => 'login-form'], 'action' => yii\helpers\Url::toRoute('site/login'), 'fieldConfig' => [ 'template' => "{label}{input}{error}", ...
bsd-3-clause
tmacychen/UFG
controller/control.go
994
// Copyright 2015 The Go 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 controller import ( "github.com/tmacychen/UFG/framework" "github.com/tmacychen/UFG/framework/outer" "github.com/tmacychen/UFG/math" ) type ControlO...
bsd-3-clause
alexsegura/Oops
library/Oops/Db/CartDiscountQuery.php
466
<?php /** * Skeleton subclass for performing query and update operations on the 'cart_discount' table. * * * * You should add additional methods to this class to meet the * application requirements. This class will only be generated as * long as it does not already exist in the output directory. * * @pack...
bsd-3-clause
mdcconcepts/opinion_desk_admin
protected/modules/user/views/profile/upload.php
508
<form method="post" action="<?php echo Yii::app()->request->baseUrl . '/index.php/user/profile/upload' ?>" enctype="multipart/form-data"> <div class="row"> <label>Profile pic</label> <input type="file" name="organisation_logo"/> <span><?php if (isset($error['organisation_logo'])) echo ...
bsd-3-clause
NCIP/annotation-and-image-markup
AimPlugin3.0.4/SearchComponent/View/WinForms/Properties/Resources.Designer.cs
3093
//L // 2007 - 2013 Copyright Northwestern University // // Distributed under the OSI-approved BSD 3-Clause License. // See http://ncip.github.com/annotation-and-image-markup/LICENSE.txt for details. //L //------------------------------------------------------------------------------ // <auto-generated> // ...
bsd-3-clause
ondra-novak/blink
Source/platform/heap/HeapTest.cpp
177245
/* * Copyright (C) 2013 Google Inc. 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 conditio...
bsd-3-clause
shackra/thomas-aquinas
summa/actions/base_actions.py
34644
# coding: utf-8 # Copyright (c) 2013 Jorge Javier Araya Navarro <jorgean@lavabit.org> # # This file is free software: you may copy, redistribute 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...
bsd-3-clause
atiqueahmedziad/addons-server
src/olympia/versions/utils.py
4124
import os import StringIO import subprocess import tempfile from base64 import b64encode from django.conf import settings from django.core.files.storage import default_storage as storage from PIL import Image import olympia.core.logger log = olympia.core.logger.getLogger('z.versions.utils') def write_svg_to_png(...
bsd-3-clause
richardcornish/smsweather
emojiweather/commands/views.py
5472
import random from datetime import datetime from django.contrib.sites.shortcuts import get_current_site from django.contrib.staticfiles.storage import staticfiles_storage from django.contrib.syndication.views import add_domain from django.http import HttpResponseForbidden, JsonResponse from django.template.loader impo...
bsd-3-clause
OpenBuildings/environment-backup
src/Environment_Group_Static.php
1295
<?php namespace Openbuildings\EnvironmentBackup; /** * @package Openbuildings\EnvironmentBackup * @author Ivan Kerin * @copyright (c) 2013 OpenBuildings Ltd. * @license http://spdx.org/licenses/BSD-3-Clause */ class Environment_Group_Static implements Environment_Group { /** * Set a static variabl...
bsd-3-clause
mallibone/rubinius
vm/llvm/inline_primitive.cpp
22384
#ifdef ENABLE_LLVM #include "llvm/jit.hpp" #include "llvm/inline.hpp" #include "llvm/jit_context.hpp" namespace rubinius { static void call_tuple_at(JITOperations& ops, Inliner& i) { Value* rec = i.recv(); // bool is_tuple = recv->flags & mask; Value* cmp = ops.check_type_bits(rec, rubinius::Tuple::t...
bsd-3-clause
endlessm/chromium-browser
media/gpu/video_encode_accelerator_tests.cc
5331
// 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. #include <limits> #include "base/command_line.h" #include "base/files/file_path.h" #include "media/base/test_data_util.h" #include "media/gpu/test/video....
bsd-3-clause
ric2b/Vivaldi-browser
chromium/extensions/renderer/blob_native_handler.cc
2200
// 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. #include "extensions/renderer/blob_native_handler.h" #include "base/bind.h" #include "extensions/renderer/script_context.h" #include "third_party/blink/p...
bsd-3-clause
kurli/blink-crosswalk
LayoutTests/fast/js/resources/getOwnPropertyDescriptor.js
7266
description("Test to ensure correct behaviour of Object.getOwnPropertyDescriptor"); function descriptorShouldBe(object, property, expected) { var test = 'Object.getOwnPropertyDescriptor('+object+", "+property+')'; if ("writable" in expected) { // shouldBe(test+'.writable', '' + expected.writable); ...
bsd-3-clause
mjames-upc/python-awips
dynamicserialize/dstypes/com/raytheon/uf/common/activetable/DumpActiveTableRequest.py
1693
## ## # File auto-generated against equivalent DynamicSerialize Java class class DumpActiveTableRequest(object): def __init__(self): self.actions = None self.etns = None self.fileContent = None self.fileName = None self.fromSite = None self.ids = None self....
bsd-3-clause
Workday/OpenFrame
third_party/WebKit/Source/platform/DecimalTest.cpp
49463
/* * Copyright (C) 2012 Google Inc. 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 conditio...
bsd-3-clause
AlboVieira/PA2015
vendor/generalcomponents/generalcomponents/library/Components/Entity/AbstractEntity.php
484
<?php /** * Created by PhpStorm. * User: Albo * Date: 21/02/2015 * Time: 01:05 */ namespace Components\Entity; abstract class AbstractEntity { protected $inputFilter; abstract function getInputFilter(); public function exchangeArray($array) { foreach($array as $attribute => $value...
bsd-3-clause