repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
mechdrew/ol3 | examples/select-features.js | 1939 | goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.events.condition');
goog.require('ol.interaction.Select');
goog.require('ol.layer.Tile');
goog.require('ol.layer.Vector');
goog.require('ol.source.GeoJSON');
goog.require('ol.source.MapQuest');
var raster = new ol.layer.Tile({
source: new ol.source.Ma... | bsd-2-clause |
leighpauls/k2cro4 | webkit/plugins/ppapi/url_response_info_util.cc | 2394 | // 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 "webkit/plugins/ppapi/url_response_info_util.h"
#include "base/logging.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/platfor... | bsd-3-clause |
eurogiciel-oss/ozone-wayland | platform/ozone_platform_wayland.h | 1886 | // Copyright (c) 2013 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 OZONE_PLATFORM_OZONE_PLATFORM_WAYLAND_H_
#define OZONE_PLATFORM_OZONE_PLATFORM_WAYLAND_H_
#if defined(TOOLKIT_VIEWS) && !defined(OS_CHROMEOS)... | bsd-3-clause |
girc/dmis | common/modules/reporting/widgets/emergency_situation/Create.php | 2168 | <?php
/**
* Created by PhpStorm.
* User: User
* Date: 2/24/2015
* Time: 12:18 PM
*/
namespace common\modules\reporting\widgets\emergency_situation;
use common\modules\reporting\models\EmergencySituation;
use yii\base\Exception;
use yii\base\Widget;
use yii\helpers\Json;
use yii\web\View;
class Create extends ... | bsd-3-clause |
hasadna/OpenTrain | webserver/opentrain/manage.py | 252 | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "opentrain.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| bsd-3-clause |
joshlin/expo2 | db/migrate/207_add_question_and_display_as_and_sequence_to_evaluation_question.rb | 570 | class AddQuestionAndDisplayAsAndSequenceToEvaluationQuestion < ActiveRecord::Migration
def self.up
add_column :evaluation_questions, :question, :text
add_column :evaluation_questions, :display_as, :string
add_column :evaluation_questions, :sequence, :integer
add_column :evaluation_questions, :required... | bsd-3-clause |
ds-hwang/chromium-crosswalk | build/vs_toolchain.py | 13647 | #!/usr/bin/env python
# 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.
import glob
import json
import os
import pipes
import shutil
import subprocess
import sys
script_dir = os.path.dirname(os.path.realpa... | bsd-3-clause |
leiferikb/bitpop-private | chrome/renderer/resources/extensions/searchbox_api.js | 10187 | // 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.
var chrome;
if (!chrome)
chrome = {};
if (!chrome.searchBox) {
chrome.searchBox = new function() {
var safeObjects = {};
chrome.searchBoxOnWin... | bsd-3-clause |
JianpingZeng/xcc | xcc/test/juliet/testcases/CWE252_Unchecked_Return_Value/CWE252_Unchecked_Return_Value__char_snprintf_10.c | 3447 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE252_Unchecked_Return_Value__char_snprintf_10.c
Label Definition File: CWE252_Unchecked_Return_Value.label.xml
Template File: point-flaw-10.tmpl.c
*/
/*
* @description
* CWE: 252 Unchecked Return Value
* Sinks: snprintf
* GoodSink: Check if snprintf() fail... | bsd-3-clause |
JianpingZeng/xcc | xcc/test/juliet/testcases/CWE510_Trapdoor/CWE510_Trapdoor__ip_based_logic_10.c | 9070 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE510_Trapdoor__ip_based_logic_10.c
Label Definition File: CWE510_Trapdoor.label.xml
Template File: point-flaw-10.tmpl.c
*/
/*
* @description
* CWE: 510 Trapdoor
* Sinks: ip_based_logic
* GoodSink: No IP-based logic
* BadSink : Different logic if a con... | bsd-3-clause |
JianpingZeng/xcc | xcc/test/juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s03/CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805_class_memmove_83.h | 1486 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805_class_memmove_83.h
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805.label.xml
Template File: sources-sink-83.tmpl.h
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: Allocate... | bsd-3-clause |
u4aew/MyHotelG | protected/modules/image/views/imageBackend/create.php | 814 | <?php
$this->breadcrumbs = [
Yii::t('ImageModule.image', 'Images') => ['/image/imageBackend/index'],
Yii::t('ImageModule.image', 'Add'),
];
$this->pageTitle = Yii::t('ImageModule.image', 'Images - add');
$this->menu = [
[
'icon' => 'fa fa-fw fa-list-alt',
'label' => Yii::t('ImageModule.im... | bsd-3-clause |
dwillmer/playground | scripts/dtsbundle.js | 539 | /*-----------------------------------------------------------------------------
| Copyright (c) 2014-2015, PhosphorJS Contributors
|
| Distributed under the terms of the BSD 3-Clause License.
|
| The full license is in the file LICENSE, distributed with this software.
|--------------------------------------------------... | bsd-3-clause |
grrr-amsterdam/garp3 | library/Garp/Spawn/MySql/Table/Binding.php | 175 | <?php
/**
* @author David Spreekmeester | grrr.nl
* @package Garp
* @subpackage Spawn
*/
class Garp_Spawn_MySql_Table_Binding extends Garp_Spawn_MySql_Table_Abstract {
}
| bsd-3-clause |
martiner/gooddata-java | gooddata-java-model/src/test/java/com/gooddata/sdk/model/dataset/DatasetLinksTest.java | 1817 | /*
* Copyright (C) 2004-2019, GoodData(R) Corporation. All rights reserved.
* This source code is licensed under the BSD-style license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
package com.gooddata.sdk.model.dataset;
import com.gooddata.sdk.model.gdc.AboutLinks;
import org.testn... | bsd-3-clause |
django/djangosnippets.org | djangosnippets/templates/comments/form.html | 1981 | {% load i18n %}
{% if request.user.is_authenticated %}
<form class="fullsize" action="/comments/post/" method="post">{% csrf_token %}
{{ form.non_field_errors }}
{% url 'account_login' as login_url %}
{% url 'account_logout' as logout_url %}
<p>{% trans "Username:" %} <strong>{{ user.username }}</stron... | bsd-3-clause |
nwjs/chromium.src | storage/browser/quota/README.md | 3235 | # Overview
The quota system's primary role is to set and enforce limits on disk usage at
both the browser level, and at the origin level (see ./quota_settings.cc for
these limit values). The quota system manages disk usage only for certain web
platform storage APIs.
In order for a storage backend to integrate with th... | bsd-3-clause |
bitcrystal/edk | Sample/Universal/Network/Ip4Config/Dxe/ComponentName.c | 7015 | /*++
Copyright (c) 2006 - 2007, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distrib... | bsd-3-clause |
bikashrai/zf2 | module/Album/autoload_classmap.php | 182 | <?php
/**
* Created by JetBrains PhpStorm.
* User: bikashrai
* Date: 7/14/13
* Time: 10:01 PM
* To change this template use File | Settings | File Templates.
*/
return array(); | bsd-3-clause |
harcobbit/lumina | src-qt5/core-utils/lumina-config/i18n/lumina-config_da.ts | 81634 | <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="da">
<context>
<name>AppDialog</name>
<message>
<location filename="../AppDialog.ui" line="14"/>
<source>Select Application</source>
<translation>Vælg program</translation>
</message>
</context>
<context... | bsd-3-clause |
Det-Kongelige-Bibliotek/droid | droid-results/src/main/java/uk/gov/nationalarchives/droid/profile/ProfileManagerImpl.java | 16013 | /**
* Copyright (c) 2012, The National Archives <pronom@nationalarchives.gsi.gov.uk>
* 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 re... | bsd-3-clause |
mxOBS/deb-pkg_trusty_chromium-browser | third_party/stp/src/include/stp/AST/ASTSymbol.h | 4654 | // -*- c++ -*-
/********************************************************************
* AUTHORS: Vijay Ganesh, David L. Dill
*
* BEGIN DATE: November, 2005
*
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 t... | bsd-3-clause |
racontemoi/shibuichi | cms/code/CMSBatchAction.php | 5684 | <?php
/**
* A class representing back actions
*
* <code>
* CMSMain::register_batch_action('publishitems', new CMSBatchAction('doPublish',
* _t('CMSBatchActions.PUBLISHED_PAGES', 'published %d pages')));
* </code>
*
* @package cms
* @subpackage batchaction
*/
abstract class CMSBatchAction extends Object ... | bsd-3-clause |
sunny2601/spree1 | core/app/models/spree/item_adjustments.rb | 2999 | module Spree
# Manage (recalculate) item (LineItem or Shipment) adjustments
class ItemAdjustments
include ActiveSupport::Callbacks
define_callbacks :promo_adjustments, :tax_adjustments
attr_reader :item
delegate :adjustments, :order, to: :item
def initialize(item)
@item = item
# D... | bsd-3-clause |
jakemac53/polymer_elements | lib/src/iron-form/iron-form.html | 8910 | <!--
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http:/... | bsd-3-clause |
internetbrands/vbimpex | tools/404.php | 14263 | <?
/*======================================================================*\
|| ####################################################################
|| # vBulletin Impex
|| # ----------------------------------------------------------------
|| # All PHP code in this file is Copyright 2000-2014 vBulletin Solutions Inc.
... | bsd-3-clause |
aYukiSekiguchi/ACCESS-Chromium | net/base/cert_database_nss.cc | 11164 | // 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 "net/base/cert_database.h"
#include <cert.h>
#include <certdb.h>
#include <keyhi.h>
#include <pk11pub.h>
#include <secmod.h>
#include "base... | bsd-3-clause |
personalrobotics/aikido | python/aikidopy/planner/module.cpp | 266 | #include <pybind11/pybind11.h>
namespace py = pybind11;
namespace aikido {
namespace python {
void World(py::module& sm);
void aikidopy_planner(py::module& m)
{
auto sm = m.def_submodule("planner");
World(sm);
}
} // namespace python
} // namespace aikido
| bsd-3-clause |
Clashsoft/Dyvil | compiler/src/main/java/dyvilx/tools/compiler/ast/generic/TypeParameter.java | 13621 | package dyvilx.tools.compiler.ast.generic;
import dyvil.annotation.Reified;
import dyvil.annotation.internal.NonNull;
import dyvil.annotation.internal.Nullable;
import dyvil.lang.Name;
import dyvilx.tools.asm.TypeAnnotatableVisitor;
import dyvilx.tools.asm.TypeReference;
import dyvilx.tools.compiler.ast.attribute.Attr... | bsd-3-clause |
vikramkanigiri/arm-trusted-firmware | bl31/context_mgmt.c | 8694 | /*
* Copyright (c) 2013-2014, ARM Limited and Contributors. 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
* l... | bsd-3-clause |
SPlanzer/QGIS-AIMS-Plugin | doc/Aims-Plugin_Doc/qgis._gui.QgsExpressionHighlighter-class.html | 15295 | <?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>qgis._gui.QgsExpressionHighlighter</title>
<link rel="stylesheet" href="epydoc.css" type="t... | bsd-3-clause |
tianocore/edk | Sample/Platform/Generic/RuntimeDxe/FvbServices/Common/ia32/Ia32Fwh.c | 1133 | /*++
Copyright (c) 2004, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. ... | bsd-3-clause |
hadim/fiji_tools | src/main/resources/script_templates/Hadim_Scripts/ROI/Circle_ROI_Builder.py | 587 | # @Float(label="Diameter of the circle ROI (pixel)", value=7) circle_diam
from ij.plugin.frame import RoiManager
from ij.gui import OvalRoi
rm = RoiManager.getInstance()
new_rois = []
for roi in rm.getRoisAsArray():
assert roi.getTypeAsString() == 'Point', "ROI needs to be a point"
x_center = roi.getContainedPoint... | bsd-3-clause |
CBlasse/premosa | src/mylib/DOCUMENTS/HTML/Correlation.html | 25433 | <?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>mylib 1.0: Correlation and Regression Module Reference</title>
<link href="mydoc.css" rel="stylesheet" type="... | bsd-3-clause |
cornernote/yii2 | docs/guide-pt-BR/output-theming.md | 4558 | Temas
=====
Tema é uma forma de substituir um conjunto de [views](structure-views.md) por outras, sem a necessidade de tocar no código de renderização de view original. Você pode usar tema para alterar sistematicamente a aparência de uma aplicação.
Para usar tema, você deve configurar a propriedade [[yii\base\View:... | bsd-3-clause |
oci-pronghorn/FogLight | apidemo/transducerdemo/src/test/java/com/ociweb/oe/foglight/api/AppTest.java | 400 | package com.ociweb.oe.foglight.api;
import com.ociweb.iot.maker.FogRuntime;
import org.junit.Ignore;
import org.junit.Test;
import static org.junit.Assert.assertTrue;
/**
* Unit test for simple App.
*/
public class AppTest {
@Test
@Ignore
public void testApp() {
boolean cleanExit = FogRuntime.testConcurrentUn... | bsd-3-clause |
golang/snappy | golden_test.go | 45089 | // Copyright 2016 The Snappy-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 snappy
// extendMatchGoldenTestCases is the i and j arguments, and the returned value,
// for every extendMatch call issued when encoding the
//... | bsd-3-clause |
Airblader/i3-original | travis/check-spelling.pl | 1897 | #!/usr/bin/env perl
# vim:ts=4:sw=4:expandtab
#
# © 2016 Michael Stapelberg
#
# Checks for spelling errors in binaries and manpages (to be run by continuous
# integration to point out spelling errors before accepting contributions).
use strict;
use warnings;
use v5.10;
use autodie;
use lib 'testcases/lib';
use i3test:... | bsd-3-clause |
DavidGriffith/tme | machine/sun2/sun2-mmu.c | 27548 | /* $Id: sun2-mmu.c,v 1.14 2009/08/30 14:39:47 fredette Exp $ */
/* machine/sun2/sun2-mmu.c - implementation of Sun 2 MMU emulation: */
/*
* Copyright (c) 2003 Matt Fredette
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that th... | bsd-3-clause |
bolav/pmd-src-4.2.6-perl | src/net/sourceforge/pmd/jaxen/MatchesFunction.java | 1085 | package net.sourceforge.pmd.jaxen;
import org.jaxen.Context;
import org.jaxen.Function;
import org.jaxen.FunctionCallException;
import org.jaxen.SimpleFunctionContext;
import org.jaxen.XPathFunctionContext;
import java.util.List;
import java.util.regex.Pattern;
import java.util.regex.Matcher;
public class MatchesFun... | bsd-3-clause |
DougBurke/astropy | cextern/wcslib/C/prj.c | 191340 | /*============================================================================
WCSLIB 5.18 - an implementation of the FITS WCS standard.
Copyright (C) 1995-2018, Mark Calabretta
This file is part of WCSLIB.
WCSLIB is free software: you can redistribute it and/or modify it under the
terms of the GNU Lesser ... | bsd-3-clause |
mgrauer/midas3score | library/Zend/Service/DeveloperGarden/LocalSearch/SearchParameters.php | 14725 | <?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 |
yelizariev/apivk | docs/com/serialization/json/package-detail.html | 2976 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../print.css" type=... | bsd-3-clause |
patrickm/chromium.src | content/browser/indexed_db/indexed_db_pending_connection.h | 1195 | // 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.
#ifndef CONTENT_BROWSER_INDEXED_DB_PENDING_CONNECTION_H_
#define CONTENT_BROWSER_INDEXED_DB_PENDING_CONNECTION_H_
#include "base/basictypes.h"
#include "... | bsd-3-clause |
beiyuxinke/CONNECT | Product/Production/Adapters/General/CONNECTAdapterWeb/src/main/java/gov/hhs/fha/nhinc/adapter/deferred/queue/DeferredQueueTimerTask.java | 4650 | /*
* Copyright (c) 2009-2015, United States Government, as represented by the Secretary of Health and Human Services.
* 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 ... | bsd-3-clause |
alunys/ApigilityAngularTest | vendor/zfcampus/zf-apigility-doctrine/test/src/Admin/Model/DoctrineMetadata1Test.php | 4716 | <?php
/**
* @license http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
* @copyright Copyright (c) 2014 Zend Technologies USA Inc. (http://www.zend.com)
*/
namespace ZFTest\Apigility\Doctrine\Admin\Model;
use ZF\Apigility\Doctrine\Admin\Model\DoctrineRestServiceEntity;
use ZF\Apigility\Doctrine\Admin\Model... | bsd-3-clause |
gx1997/chrome-loongson | third_party/webdriver/python/test/selenium/webdriver/common/correct_event_firing_tests.py | 5540 | #!/usr/bin/python
# Copyright 2008-2010 WebDriver committers
# Copyright 2008-2010 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-... | bsd-3-clause |
endlessm/chromium-browser | chrome/browser/extensions/window_controller.cc | 2365 | // 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/extensions/window_controller.h"
#include <stddef.h>
#include <memory>
#include "base/values.h"
#include "chrome/browser/ex... | bsd-3-clause |
radiosity/reader | src/Pages.cpp | 15805 | /*
Copyright (c) 2014, Richard Martin
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 the fo... | bsd-3-clause |
cjh1/vtkmodular | Wrapping/Python/vtk/test/Testing.py | 17259 | """ This module attempts to make it easy to create VTK-Python
unittests. The module uses unittest for the test interface. For more
documentation on what unittests are and how to use them, please read
these:
http://www.python.org/doc/current/lib/module-unittest.html
http://www.diveintopython.org/roman_divein.h... | bsd-3-clause |
busypeoples/reactcards.js | docs/WritingCards.md | 2264 | #Writing Cards
#### Basic Example
```javascript
import React from 'react'
import cards from 'reactcards'
import {Foo, Bar} from './components'
const demo = cards('demo')
demo.card(
`## markdown doc
you can use markdown for card documentation
- foo
- bar`,
<Foo message="hello"/>
)
demo.card(<Foo message="... | bsd-3-clause |
khajaamin/vishwashantiseva | backend/views/plans/_search.php | 706 | <?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\PlansSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="plans-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
<?= ... | bsd-3-clause |
oesteban/tract_querier | setup.py | 1691 | #!/usr/bin/env python
from distutils.core import setup
DISTNAME = 'tract_querier'
DESCRIPTION = \
'WMQL: Query language for automatic tract extraction from '\
'full-brain tractographies with '\
'a registered template on top of them'
LONG_DESCRIPTION = open('README.md').read()
MAINTAINER = 'Demian Wasserman... | bsd-3-clause |
MakeNowJust/highlight.js | src/languages/brainfuck.js | 792 | /*
Language: Brainfuck
Author: Evgeny Stepanischev <imbolk@gmail.com>
Website: https://esolangs.org/wiki/Brainfuck
*/
function(hljs){
var LITERAL = {
className: 'literal',
begin: '[\\+\\-]',
relevance: 0
};
return {
aliases: ['bf'],
contains: [
hljs.COMMENT(
'[^\\[\\]\\.,\\+\\-<... | bsd-3-clause |
Rathilesh/FMS_V1 | protected/views/generic_Flex_Value/create.php | 439 | <?php
/* @var $this Generic_Flex_ValueController */
/* @var $model Generic_Flex_Value */
$this->breadcrumbs=array(
'Generic Flex Values'=>array('index'),
'Create',
);
$this->menu=array(
array('label'=>'List Generic_Flex_Value', 'url'=>array('index')),
array('label'=>'Manage Generic_Flex_Value', 'url'=>array('ad... | bsd-3-clause |
cboy868/lion | modules/shop/views/admin/mix-cate/update.php | 374 | <div class="page-content">
<!-- /section:settings.box -->
<div class="page-content-area">
<div class="row">
<div class="col-xs-12 mix-cate-update">
<?= $this->render('_form', [
'model' => $model,
]) ?>
<div class="hr hr-18 dotted hr-double"></div>
</div><!-- /.col -->
</div><!--... | bsd-3-clause |
start-jsk/jsk_apc | demos/instance_occlsegm/tests/datasets_tests/apc_tests/arc2017_tests/jsk_tests/check_jsk_arc2017_v1_dataset.py | 222 | if __name__ == '__main__':
import instance_occlsegm_lib
dataset = instance_occlsegm_lib.datasets.apc.arc2017.JskARC2017DatasetV1(
'train')
instance_occlsegm_lib.datasets.view_class_seg_dataset(dataset)
| bsd-3-clause |
CoherentLabs/depot_tools | tests/gclient_eval_unittest.py | 35099 | #!/usr/bin/env vpython3
# 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.
import collections
import itertools
import logging
import os
import sys
import unittest
sys.path.insert(0, os.path.dirname(os.path.d... | bsd-3-clause |
hugozap/polymer-practice | dist/elements/interact-wrapper.html | 98 |
<script type="text/javascript" src='../bower_components/interact/dist/interact.min.js'></script>
| bsd-3-clause |
CBIIT/caaers | caAERS/software/web/src/main/java/gov/nih/nci/cabig/caaers/web/rule/AutocompleterField.java | 962 | /*******************************************************************************
* Copyright SemanticBits, Northwestern University and Akaza Research
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/caaers/LICENSE.txt for details.
******************************************... | bsd-3-clause |
BogusCurry/halcyon | OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs | 24358 | /*
* Copyright (c) InWorldz Halcyon Developers
* Copyright (c) Contributors, http://opensimulator.org/
*
* 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 c... | bsd-3-clause |
tangentforks/vanar | src/asmcache/bs.asm | 107 | section .text
global _start
_start:
call rax
call r8
call r9
call r10
call r11
call r12
call r13
call r14
| bsd-3-clause |
piwik/piwik-sdk-android | tracker/src/test/java/testhelpers/JUnitTree.java | 1081 | package testhelpers;
import androidx.annotation.NonNull;
import android.util.Log;
import timber.log.Timber;
public class JUnitTree extends Timber.DebugTree {
private final int minlogLevel;
public JUnitTree() {
minlogLevel = Log.VERBOSE;
}
public JUnitTree(int minlogLevel) {
this.mi... | bsd-3-clause |
JianpingZeng/xcc | xcc/test/juliet/testcases/CWE197_Numeric_Truncation_Error/s02/CWE197_Numeric_Truncation_Error__short_fgets_09.c | 3534 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE197_Numeric_Truncation_Error__short_fgets_09.c
Label Definition File: CWE197_Numeric_Truncation_Error__short.label.xml
Template File: sources-sink-09.tmpl.c
*/
/*
* @description
* CWE: 197 Numeric Truncation Error
* BadSource: fgets Read data from the console ... | bsd-3-clause |
supertanglang/i2pd | Destination.h | 7466 | #ifndef DESTINATION_H__
#define DESTINATION_H__
#include <thread>
#include <mutex>
#include <memory>
#include <map>
#include <set>
#include <string>
#include <functional>
#include <boost/asio.hpp>
#include "Identity.h"
#include "tunnel/TunnelPool.h"
#include "crypto/CryptoConst.h"
#include "LeaseSet.h"
#include "Garli... | bsd-3-clause |
eriser/JamomaCore | Foundation/extensions/DataspaceLib/tests/ColorDataspace.test.cpp | 7913 | /** @file
*
* @ingroup foundationDataspaceLib
*
* @brief Unit tests for the #ColorDataspace.
*
* @authors Trond Lossius, Tim Place, Nils Peters, ...
*
* @copyright Copyright © 2011 Trond Lossius @n
* This code is licensed under the terms of the "New BSD License" @n
* http://creativecommons.org/licenses/BSD/
... | bsd-3-clause |
beiyuxinke/CONNECT | Product/Production/Adapters/General/CONNECTDirectConfig/src/main/java/gov/hhs/fha/nhinc/directconfig/service/jaxws/DeletePolicyGroups.java | 4197 | /*
* Copyright (c) 2009-2015, United States Government, as represented by the Secretary of Health and Human Services.
* 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 ... | bsd-3-clause |
escherba/lsh-hdc | lsh_hdc/ranking.py | 19946 | """
Problem Statement
-----------------
Assume that there is a large data set of mostly unique samples where a hidden
binary variable is dependent on the number of similar samples that exist in the
set (i.e. a sample is called positive if it has many neighbors) and that our
goal is to label all samples in this set. I... | bsd-3-clause |
Workday/OpenFrame | third_party/WebKit/ManualTests/webaudio/audiobuffersource-looping.html | 2933 | <!doctype html>
<html>
<head>
<title>AudioBufferSource with Looping Enabled then Disabled</title>
<script>
var context = new AudioContext();
// Launch countdown example
var url = "http://www.nasa.gov/mp3/590318main_ringtone_135_launch.mp3";
function enableButtons()
{
doc... | bsd-3-clause |
serge-sans-paille/pythran | pythran/tests/cases/empirical.py | 678 | #from https://github.com/serge-sans-paille/pythran/issues/1229
#runas import numpy as np; x = np.arange(3., 10.); empirical(x, 3., .5)
import numpy as np
#pythran export empirical(float[:], float, float)
def empirical(ds, alpha, x):
sds = np.sort(ds)
ds_to_the_alpha = sds**alpha
fractions = ds_to_the_alpha... | bsd-3-clause |
NimbRo/nimbro-op-ros | src/nimbro/behaviour/soccer_behaviour/src/control_layer/control_head.cpp | 1704 | // Behaviour Control Framework - Head control behaviour
// Author: Philipp Allgeuer <pallgeuer@ais.uni-bonn.de>
// Includes
#include <soccer_behaviour/control_layer/control_head.h>
#include <soccer_behaviour/control_layer/control_layer.h>
#include <head_control/LookAtTarget.h>
// Namespaces
using namespace std;
usin... | bsd-3-clause |
fmilano/mitk | Modules/CppMicroServices/core/src/module/usModuleResourceContainer.cpp | 6232 | /*============================================================================
Library: CppMicroServices
Copyright (c) German Cancer Research Center (DKFZ)
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.
... | bsd-3-clause |
wadejong/avogadrolibs | avogadro/qtplugins/qtaim/qtaimcriticalpointlocator.h | 2687 | /******************************************************************************
This source file is part of the Avogadro project.
Copyright 2010 Eric C. Brown
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, software
distri... | bsd-3-clause |
tenbits/highlight.js | test/special/languageAlias.js | 557 | 'use strict';
var _ = require('lodash');
var utility = require('../utility');
describe('language alias', function() {
before(function() {
var testHTML = document.querySelectorAll('#language-alias .hljs');
this.blocks = _.map(testHTML, 'innerHTML');
});
it('should highlight as aliased language', ... | bsd-3-clause |
magicDGS/gatk | src/test/java/org/broadinstitute/hellbender/tools/spark/sv/integration/CpxVariantReInterpreterSparkIntegrationTest.java | 8322 | package org.broadinstitute.hellbender.tools.spark.sv.integration;
import htsjdk.samtools.util.CloseableIterator;
import htsjdk.variant.variantcontext.VariantContext;
import htsjdk.variant.vcf.VCFFileReader;
import org.apache.hadoop.fs.Path;
import org.broadinstitute.hellbender.CommandLineProgramTest;
import org.broadi... | bsd-3-clause |
google/skia | include/core/SkCustomMesh.h | 8753 | /*
* Copyright 2021 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkCustomMesh_DEFINED
#define SkCustomMesh_DEFINED
#include "include/core/SkTypes.h"
#ifdef SK_ENABLE_SKSL
#include "include/core/SkColorSpace.h"
#include "include/cor... | bsd-3-clause |
EmergentOrder/clmagma | testing/testing_spotrf_mgpu.cpp | 9790 | /*
* -- clMAGMA (version 1.1.0) --
* Univ. of Tennessee, Knoxville
* Univ. of California, Berkeley
* Univ. of Colorado, Denver
* @date January 2014
*
* @generated from testing_zpotrf_mgpu.cpp normal z -> s, Fri Jan 10 15:51:19 2014
*
**/
// includes, system
#include <stdlib.h>
#include <stdio... | bsd-3-clause |
SvenBunge/tracee | binding/jaxws/src/main/java/io/tracee/binding/jaxws/TraceeClientHandlerResolver.java | 677 | package io.tracee.binding.jaxws;
import io.tracee.TraceeBackend;
import javax.xml.ws.handler.Handler;
import javax.xml.ws.handler.HandlerResolver;
import javax.xml.ws.handler.PortInfo;
import java.util.ArrayList;
import java.util.List;
public class TraceeClientHandlerResolver implements HandlerResolver {
private f... | bsd-3-clause |
chintak/scikit-image | skimage/filter/tests/test_ctmf.py | 3895 | import numpy as np
from nose.tools import raises
from skimage.filter import median_filter
def test_00_00_zeros():
'''The median filter on an array of all zeros should be zero'''
result = median_filter(np.zeros((10, 10)), 3, np.ones((10, 10), bool))
assert np.all(result == 0)
def test_00_01_all_masked()... | bsd-3-clause |
Erin-Mounts/mPowerSDK | mPowerSDK/TasksAndSteps/MoodSurvey/CustomView/APHCustomTextView.h | 1836 | //
// APHCustomTextView.h
// mPowerSDK
//
// Copyright (c) 2015, 2016, Sage Bionetworks. 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 ... | bsd-3-clause |
patrickianwilson/vijava-contrib | src/main/java/com/vmware/vim25/HostCapabilityFtUnsupportedReason.java | 2147 | /*================================================================================
Copyright (c) 2013 Steve Jin. 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 re... | bsd-3-clause |
antsmc2/mics | survey/migrations/0119_auto__add_field_batchlocationstatus_non_response.py | 36447 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'BatchLocationStatus.non_response'
db.add_column(u'survey_batchlocationstatus', 'non_response... | bsd-3-clause |
KarlTDebiec/myplotspec_sim | moldynplot/StateProbFigureManager.py | 7284 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# moldynplot.StateProbFigureManager.py
#
# Copyright (C) 2015-2017 Karl T Debiec
# All rights reserved.
#
# This software may be modified and distributed under the terms of the
# BSD license. See the LICENSE file for details.
"""
Generates one or more state probabilit... | bsd-3-clause |
chromium2014/src | extensions/common/features/feature.h | 5772 | // Copyright 2013 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 EXTENSIONS_COMMON_FEATURES_FEATURE_H_
#define EXTENSIONS_COMMON_FEATURES_FEATURE_H_
#include <set>
#include <string>
#include "base/values.h"
#i... | bsd-3-clause |
theosyspe/levent_01 | vendor/ZF2/bin/test/n/e/i.php | 37 | <?php
namespace test\n\e;
class i { } | bsd-3-clause |
LWJGL-CI/lwjgl3 | modules/lwjgl/vulkan/src/generated/java/org/lwjgl/vulkan/VkDebugReportCallbackEXTI.java | 5004 | /*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.vulkan;
import org.lwjgl.system.*;
import org.lwjgl.system.libffi.*;
import static org.lwjgl.system.APIUtil.*;
import static org.lwjgl.system.MemoryUtil.*;
import st... | bsd-3-clause |
jamoma/JamomaCore | DSP/extensions/FilterLib/tests/TTAllpass2a.test.cpp | 665 | /** @file
*
* @ingroup dspFilterLib
*
* @brief Unit test for the FilterLib #TTAllpass2a class.
*
* @details Currently this test is just a stub
*
* @authors Trond Lossius, Tim Place
*
* @copyright Copyright © 2012 by Trond Lossius & Timothy Place @n
* This code is licensed under the terms of the "New BSD Lice... | bsd-3-clause |
halfflat/nestmc-proto | python/test/unit/test_catalogues.py | 2948 | from .. import fixtures
import unittest
import arbor as arb
"""
tests for (dynamically loaded) catalogues
"""
class recipe(arb.recipe):
def __init__(self):
arb.recipe.__init__(self)
self.tree = arb.segment_tree()
self.tree.append(arb.mnpos, (0, 0, 0, 10), (1, 0, 0, 10), 1)
self.pro... | bsd-3-clause |
handloomweaver/mongrel2 | src/io.c | 13792 | #define _XOPEN_SOURCE 500
#define _FILE_OFFSET_BITS 64
#include "io.h"
#include "register.h"
#include "mem/halloc.h"
#include "dbg.h"
#include <stdlib.h>
#include <assert.h>
#include <unistd.h>
#include <polarssl/havege.h>
#include <polarssl/ssl.h>
#include <task/task.h>
static ssize_t null_send(IOBuf *iob, char *buf... | bsd-3-clause |
alepharchives/quickfast | src/Codecs/DataDestination_fwd.h | 604 | // Copyright (c) 2009, Object Computing, Inc.
// All rights reserved.
// See the file license.txt for licensing information.
#ifdef _MSC_VER
# pragma once
#endif
#ifndef DATADESTINATION_FWD_H
#define DATADESTINATION_FWD_H
namespace QuickFAST{
namespace Codecs{
class DestinationBuffer;
/// @brief A smart point... | bsd-3-clause |
nebulab/spree_line_item_discount | spec/spec_helper.rb | 2752 | # Run Coverage report
require 'simplecov'
SimpleCov.start do
add_filter 'spec/dummy'
add_group 'Controllers', 'app/controllers'
add_group 'Helpers', 'app/helpers'
add_group 'Mailers', 'app/mailers'
add_group 'Models', 'app/models'
add_group 'Views', 'app/views'
add_group 'Libraries', 'lib'
end
# Configur... | bsd-3-clause |
ckingclub/jinliApi | vendor/qcloud/weapp-sdk/tests/test-suite/Tunnel/TunnelServiceTest.php | 13797 | <?php
use \QCloud_WeApp_SDK\Conf;
use \QCloud_WeApp_SDK\Helper\Util;
use \QCloud_WeApp_SDK\Auth\Constants;
use \QCloud_WeApp_SDK\Tunnel\TunnelService;
/**
* @runTestsInSeparateProcesses
*/
class TunnelServiceTest extends PHPUnit_Framework_TestCase {
private $mockedTunnelHandler;
public static function setU... | bsd-3-clause |
blezek/Notion | Readme.md | 3209 |
Notion PACS
===========
Notion is a stand-alone [PACS](http://en.wikipedia.org/wiki/Picture_archiving_and_communication_system) designed to be used by radiology researchers for storage and anonymization of research images.
### Why use Notion?
If you have a need to:
- store DICOM images, but do not want/have a ded... | bsd-3-clause |
frankpaul142/aurasur | vendor/kartik-v/yii2-grid/messages/config.php | 2763 | <?php
return [
// string, required, root directory of all source files
'sourcePath' => __DIR__ . DIRECTORY_SEPARATOR . '..',
// string, required, root directory containing message translations.
'messagePath' => __DIR__,
// array, required, list of language codes that the extracted messages
// s... | bsd-3-clause |
cetin01/callbutler-in-vs2008 | CallButler Manager/Forms/EditionChooserForm.Designer.cs | 11454 | ///////////////////////////////////////////////////////////////////////////////////////////////
//
// This File is Part of the CallButler Open Source PBX (http://www.codeplex.com/callbutler
//
// Copyright (c) 2005-2008, Jim Heising
// All rights reserved.
//
// Redistribution and use in source and b... | bsd-3-clause |
exponent/exponent | packages/expo-status-bar/src/useColorScheme.ts | 566 | import { useColorScheme as maybeUseColorScheme } from 'react-native';
// TODO(brentvatne): add this warning back after releasing SDK 38.
//
// if (!maybeUseColorScheme) {
// console.warn(
// 'expo-status-bar is only supported on Expo SDK >= 38 and React Native >= 0.62. You are seeing this message because useColo... | bsd-3-clause |
witcxc/scipy | scipy/signal/signaltools.py | 81684 | # Author: Travis Oliphant
# 1999 -- 2002
from __future__ import division, print_function, absolute_import
import warnings
import threading
from . import sigtools
from scipy._lib.six import callable
from scipy._lib._version import NumpyVersion
from scipy import linalg
from scipy.fftpack import (fft, ifft, ifftshift, ... | bsd-3-clause |
OBHITA/Consent2Share | DS4P/acs-showcase/c32-parser/src/main/java/gov/samhsa/consent2share/c32/dto/Qualifier.java | 5997 | /*******************************************************************************
* Open Behavioral Health Information Technology Architecture (OBHITA.org)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Re... | bsd-3-clause |
mdcconcepts/opinion_desk_CAP | protected/models/menu/views/item/_form.php | 4676 | <div class="form">
<?php
$form = $this->beginWidget('CActiveForm', array(
'id' => 'menu-item-form',
'enableAjaxValidation' => false,
'enableClientValidation' => true,
));
echo $form->errorSummary($model);
?>
<div class="row">
<?php echo $form->labelEx($... | bsd-3-clause |
rsmmr/hilti | tests/hilti/c-api/c-interface-noyield-host.c | 572 | // @TEST-IGNORE
#include <stdio.h>
#include <libhilti.h>
#include "c-interface-noyield.hlt.h"
int main()
{
hlt_init();
hlt_execution_context* ctx = hlt_global_execution_context();
hlt_exception* excpt = 0;
int i;
foo_foo1(21, 1, &excpt, ctx);
int32_t n = foo_foo2(21, &excpt, ctx);
prin... | bsd-3-clause |