code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
3
942
language
stringclasses
30 values
license
stringclasses
15 values
size
int32
3
1.05M
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...
mechdrew/ol3
examples/select-features.js
JavaScript
bsd-2-clause
1,939
// 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...
leighpauls/k2cro4
webkit/plugins/ppapi/url_response_info_util.cc
C++
bsd-3-clause
2,394
// 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)...
eurogiciel-oss/ozone-wayland
platform/ozone_platform_wayland.h
C
bsd-3-clause
1,886
<?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 ...
girc/dmis
common/modules/reporting/widgets/emergency_situation/Create.php
PHP
bsd-3-clause
2,168
#!/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)
hasadna/OpenTrain
webserver/opentrain/manage.py
Python
bsd-3-clause
252
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...
joshlin/expo2
db/migrate/207_add_question_and_display_as_and_sequence_to_evaluation_question.rb
Ruby
bsd-3-clause
570
#!/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...
ds-hwang/chromium-crosswalk
build/vs_toolchain.py
Python
bsd-3-clause
13,647
// 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...
leiferikb/bitpop-private
chrome/renderer/resources/extensions/searchbox_api.js
JavaScript
bsd-3-clause
10,187
/* 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...
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE252_Unchecked_Return_Value/CWE252_Unchecked_Return_Value__char_snprintf_10.c
C
bsd-3-clause
3,447
/* 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...
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE510_Trapdoor/CWE510_Trapdoor__ip_based_logic_10.c
C
bsd-3-clause
9,070
/* 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...
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s03/CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805_class_memmove_83.h
C
bsd-3-clause
1,486
<?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...
u4aew/MyHotelG
protected/modules/image/views/imageBackend/create.php
PHP
bsd-3-clause
814
/*----------------------------------------------------------------------------- | 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. |--------------------------------------------------...
dwillmer/playground
scripts/dtsbundle.js
JavaScript
bsd-3-clause
539
<?php /** * @author David Spreekmeester | grrr.nl * @package Garp * @subpackage Spawn */ class Garp_Spawn_MySql_Table_Binding extends Garp_Spawn_MySql_Table_Abstract { }
grrr-amsterdam/garp3
library/Garp/Spawn/MySql/Table/Binding.php
PHP
bsd-3-clause
175
/* * 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...
martiner/gooddata-java
gooddata-java-model/src/test/java/com/gooddata/sdk/model/dataset/DatasetLinksTest.java
Java
bsd-3-clause
1,817
{% 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...
django/djangosnippets.org
djangosnippets/templates/comments/form.html
HTML
bsd-3-clause
1,981
# 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...
nwjs/chromium.src
storage/browser/quota/README.md
Markdown
bsd-3-clause
3,235
/*++ 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...
bitcrystal/edk
Sample/Universal/Network/Ip4Config/Dxe/ComponentName.c
C
bsd-3-clause
7,015
<?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();
bikashrai/zf2
module/Album/autoload_classmap.php
PHP
bsd-3-clause
182
<?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...
harcobbit/lumina
src-qt5/core-utils/lumina-config/i18n/lumina-config_da.ts
TypeScript
bsd-3-clause
81,634
/** * 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...
Det-Kongelige-Bibliotek/droid
droid-results/src/main/java/uk/gov/nationalarchives/droid/profile/ProfileManagerImpl.java
Java
bsd-3-clause
16,013
// -*- 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...
mxOBS/deb-pkg_trusty_chromium-browser
third_party/stp/src/include/stp/AST/ASTSymbol.h
C
bsd-3-clause
4,654
<?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 ...
racontemoi/shibuichi
cms/code/CMSBatchAction.php
PHP
bsd-3-clause
5,684
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...
sunny2601/spree1
core/app/models/spree/item_adjustments.rb
Ruby
bsd-3-clause
2,999
<!-- @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:/...
jakemac53/polymer_elements
lib/src/iron-form/iron-form.html
HTML
bsd-3-clause
8,910
<? /*======================================================================*\ || #################################################################### || # vBulletin Impex || # ---------------------------------------------------------------- || # All PHP code in this file is Copyright 2000-2014 vBulletin Solutions Inc. ...
internetbrands/vbimpex
tools/404.php
PHP
bsd-3-clause
14,263
// 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...
aYukiSekiguchi/ACCESS-Chromium
net/base/cert_database_nss.cc
C++
bsd-3-clause
11,164
#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
personalrobotics/aikido
python/aikidopy/planner/module.cpp
C++
bsd-3-clause
266
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...
Clashsoft/Dyvil
compiler/src/main/java/dyvilx/tools/compiler/ast/generic/TypeParameter.java
Java
bsd-3-clause
13,621
/* * 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...
vikramkanigiri/arm-trusted-firmware
bl31/context_mgmt.c
C
bsd-3-clause
8,694
<?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...
SPlanzer/QGIS-AIMS-Plugin
doc/Aims-Plugin_Doc/qgis._gui.QgsExpressionHighlighter-class.html
HTML
bsd-3-clause
15,295
/*++ 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. ...
tianocore/edk
Sample/Platform/Generic/RuntimeDxe/FvbServices/Common/ia32/Ia32Fwh.c
C
bsd-3-clause
1,133
# @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...
hadim/fiji_tools
src/main/resources/script_templates/Hadim_Scripts/ROI/Circle_ROI_Builder.py
Python
bsd-3-clause
587
<?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="...
CBlasse/premosa
src/mylib/DOCUMENTS/HTML/Correlation.html
HTML
bsd-3-clause
25,433
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:...
cornernote/yii2
docs/guide-pt-BR/output-theming.md
Markdown
bsd-3-clause
4,558
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...
oci-pronghorn/FogLight
apidemo/transducerdemo/src/test/java/com/ociweb/oe/foglight/api/AppTest.java
Java
bsd-3-clause
400
// 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 //...
golang/snappy
golden_test.go
GO
bsd-3-clause
45,089
#!/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:...
Airblader/i3-original
travis/check-spelling.pl
Perl
bsd-3-clause
1,897
/* $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...
DavidGriffith/tme
machine/sun2/sun2-mmu.c
C
bsd-3-clause
27,548
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...
bolav/pmd-src-4.2.6-perl
src/net/sourceforge/pmd/jaxen/MatchesFunction.java
Java
bsd-3-clause
1,085
/*============================================================================ 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 ...
DougBurke/astropy
cextern/wcslib/C/prj.c
C
bsd-3-clause
191,340
<?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...
mgrauer/midas3score
library/Zend/Service/DeveloperGarden/LocalSearch/SearchParameters.php
PHP
bsd-3-clause
14,725
<!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=...
yelizariev/apivk
docs/com/serialization/json/package-detail.html
HTML
bsd-3-clause
2,976
// 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 "...
patrickm/chromium.src
content/browser/indexed_db/indexed_db_pending_connection.h
C
bsd-3-clause
1,195
/* * 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 ...
beiyuxinke/CONNECT
Product/Production/Adapters/General/CONNECTAdapterWeb/src/main/java/gov/hhs/fha/nhinc/adapter/deferred/queue/DeferredQueueTimerTask.java
Java
bsd-3-clause
4,650
<?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...
alunys/ApigilityAngularTest
vendor/zfcampus/zf-apigility-doctrine/test/src/Admin/Model/DoctrineMetadata1Test.php
PHP
bsd-3-clause
4,716
#!/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-...
gx1997/chrome-loongson
third_party/webdriver/python/test/selenium/webdriver/common/correct_event_firing_tests.py
Python
bsd-3-clause
5,540
// 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...
endlessm/chromium-browser
chrome/browser/extensions/window_controller.cc
C++
bsd-3-clause
2,365
/* 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...
radiosity/reader
src/Pages.cpp
C++
bsd-3-clause
15,805
""" 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...
cjh1/vtkmodular
Wrapping/Python/vtk/test/Testing.py
Python
bsd-3-clause
17,259
#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="...
busypeoples/reactcards.js
docs/WritingCards.md
Markdown
bsd-3-clause
2,264
<?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', ]); ?> <?= ...
khajaamin/vishwashantiseva
backend/views/plans/_search.php
PHP
bsd-3-clause
706
#!/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...
oesteban/tract_querier
setup.py
Python
bsd-3-clause
1,691
/* 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( '[^\\[\\]\\.,\\+\\-<...
MakeNowJust/highlight.js
src/languages/brainfuck.js
JavaScript
bsd-3-clause
792
<?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...
Rathilesh/FMS_V1
protected/views/generic_Flex_Value/create.php
PHP
bsd-3-clause
439
<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><!--...
cboy868/lion
modules/shop/views/admin/mix-cate/update.php
PHP
bsd-3-clause
374
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)
start-jsk/jsk_apc
demos/instance_occlsegm/tests/datasets_tests/apc_tests/arc2017_tests/jsk_tests/check_jsk_arc2017_v1_dataset.py
Python
bsd-3-clause
222
#!/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...
CoherentLabs/depot_tools
tests/gclient_eval_unittest.py
Python
bsd-3-clause
35,099
<script type="text/javascript" src='../bower_components/interact/dist/interact.min.js'></script>
hugozap/polymer-practice
dist/elements/interact-wrapper.html
HTML
bsd-3-clause
98
/******************************************************************************* * 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. ******************************************...
CBIIT/caaers
caAERS/software/web/src/main/java/gov/nih/nci/cabig/caaers/web/rule/AutocompleterField.java
Java
bsd-3-clause
962
/* * 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...
BogusCurry/halcyon
OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs
C#
bsd-3-clause
24,358
section .text global _start _start: call rax call r8 call r9 call r10 call r11 call r12 call r13 call r14
tangentforks/vanar
src/asmcache/bs.asm
Assembly
bsd-3-clause
107
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...
piwik/piwik-sdk-android
tracker/src/test/java/testhelpers/JUnitTree.java
Java
bsd-3-clause
1,081
/* 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 ...
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE197_Numeric_Truncation_Error/s02/CWE197_Numeric_Truncation_Error__short_fgets_09.c
C
bsd-3-clause
3,534
#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...
supertanglang/i2pd
Destination.h
C
bsd-3-clause
7,466
/** @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/ ...
eriser/JamomaCore
Foundation/extensions/DataspaceLib/tests/ColorDataspace.test.cpp
C++
bsd-3-clause
7,913
/* * 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 ...
beiyuxinke/CONNECT
Product/Production/Adapters/General/CONNECTDirectConfig/src/main/java/gov/hhs/fha/nhinc/directconfig/service/jaxws/DeletePolicyGroups.java
Java
bsd-3-clause
4,197
""" 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...
escherba/lsh-hdc
lsh_hdc/ranking.py
Python
bsd-3-clause
19,946
<!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...
Workday/OpenFrame
third_party/WebKit/ManualTests/webaudio/audiobuffersource-looping.html
HTML
bsd-3-clause
2,933
#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...
serge-sans-paille/pythran
pythran/tests/cases/empirical.py
Python
bsd-3-clause
678
// 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...
NimbRo/nimbro-op-ros
src/nimbro/behaviour/soccer_behaviour/src/control_layer/control_head.cpp
C++
bsd-3-clause
1,704
/*============================================================================ 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. ...
fmilano/mitk
Modules/CppMicroServices/core/src/module/usModuleResourceContainer.cpp
C++
bsd-3-clause
6,232
/****************************************************************************** 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...
wadejong/avogadrolibs
avogadro/qtplugins/qtaim/qtaimcriticalpointlocator.h
C
bsd-3-clause
2,687
'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', ...
tenbits/highlight.js
test/special/languageAlias.js
JavaScript
bsd-3-clause
557
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...
magicDGS/gatk
src/test/java/org/broadinstitute/hellbender/tools/spark/sv/integration/CpxVariantReInterpreterSparkIntegrationTest.java
Java
bsd-3-clause
8,322
/* * 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...
google/skia
include/core/SkCustomMesh.h
C
bsd-3-clause
8,753
/* * -- 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...
EmergentOrder/clmagma
testing/testing_spotrf_mgpu.cpp
C++
bsd-3-clause
9,790
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...
SvenBunge/tracee
binding/jaxws/src/main/java/io/tracee/binding/jaxws/TraceeClientHandlerResolver.java
Java
bsd-3-clause
677
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()...
chintak/scikit-image
skimage/filter/tests/test_ctmf.py
Python
bsd-3-clause
3,895
// // 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 ...
Erin-Mounts/mPowerSDK
mPowerSDK/TasksAndSteps/MoodSurvey/CustomView/APHCustomTextView.h
C
bsd-3-clause
1,836
/*================================================================================ 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...
patrickianwilson/vijava-contrib
src/main/java/com/vmware/vim25/HostCapabilityFtUnsupportedReason.java
Java
bsd-3-clause
2,147
# -*- 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...
antsmc2/mics
survey/migrations/0119_auto__add_field_batchlocationstatus_non_response.py
Python
bsd-3-clause
36,447
#!/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...
KarlTDebiec/myplotspec_sim
moldynplot/StateProbFigureManager.py
Python
bsd-3-clause
7,284
// 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...
chromium2014/src
extensions/common/features/feature.h
C
bsd-3-clause
5,772
<?php namespace test\n\e; class i { }
theosyspe/levent_01
vendor/ZF2/bin/test/n/e/i.php
PHP
bsd-3-clause
37
/* * 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...
LWJGL-CI/lwjgl3
modules/lwjgl/vulkan/src/generated/java/org/lwjgl/vulkan/VkDebugReportCallbackEXTI.java
Java
bsd-3-clause
5,004
/** @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...
jamoma/JamomaCore
DSP/extensions/FilterLib/tests/TTAllpass2a.test.cpp
C++
bsd-3-clause
665
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...
halfflat/nestmc-proto
python/test/unit/test_catalogues.py
Python
bsd-3-clause
2,948
#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...
handloomweaver/mongrel2
src/io.c
C
bsd-3-clause
13,792
// 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...
alepharchives/quickfast
src/Codecs/DataDestination_fwd.h
C
bsd-3-clause
604
# 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...
nebulab/spree_line_item_discount
spec/spec_helper.rb
Ruby
bsd-3-clause
2,752
<?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...
ckingclub/jinliApi
vendor/qcloud/weapp-sdk/tests/test-suite/Tunnel/TunnelServiceTest.php
PHP
bsd-3-clause
13,797
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...
blezek/Notion
Readme.md
Markdown
bsd-3-clause
3,209
<?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...
frankpaul142/aurasur
vendor/kartik-v/yii2-grid/messages/config.php
PHP
bsd-3-clause
2,763
/////////////////////////////////////////////////////////////////////////////////////////////// // // 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...
cetin01/callbutler-in-vs2008
CallButler Manager/Forms/EditionChooserForm.Designer.cs
C#
bsd-3-clause
11,454
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...
exponent/exponent
packages/expo-status-bar/src/useColorScheme.ts
TypeScript
bsd-3-clause
566
# 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, ...
witcxc/scipy
scipy/signal/signaltools.py
Python
bsd-3-clause
81,684
/******************************************************************************* * 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...
OBHITA/Consent2Share
DS4P/acs-showcase/c32-parser/src/main/java/gov/samhsa/consent2share/c32/dto/Qualifier.java
Java
bsd-3-clause
5,997
<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($...
mdcconcepts/opinion_desk_CAP
protected/models/menu/views/item/_form.php
PHP
bsd-3-clause
4,676
// @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...
rsmmr/hilti
tests/hilti/c-api/c-interface-noyield-host.c
C
bsd-3-clause
572