code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
4
991
language
stringclasses
9 values
license
stringclasses
15 values
size
int32
3
1.05M
/* * Copyright 2012 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
printminion/gdgsched
android/src/com/google/android/apps/iosched/ui/VendorDetailFragment.java
Java
apache-2.0
6,196
/** * Generated with Acceleo */ package org.wso2.developerstudio.eclipse.gmf.esb.parts.forms; // Start of user code for imports import org.eclipse.emf.common.util.Enumerator; import org.eclipse.emf.ecore.util.EcoreAdapterFactory; import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider; import org.ecli...
prabushi/devstudio-tooling-esb
plugins/org.wso2.developerstudio.eclipse.gmf.esb.edit/src-gen/org/wso2/developerstudio/eclipse/gmf/esb/parts/forms/TaskPropertyPropertiesEditionPartForm.java
Java
apache-2.0
18,210
package CustomOreGen.Util; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.Map; import java.util.Map.Entry; public abstract class MapCollection<K,V> implements Collection<V> { protected final Map<K,V> backingMap; public MapCollection(Map<K,V> backingMap) ...
reteo/CustomOreGen
src/main/java/CustomOreGen/Util/MapCollection.java
Java
artistic-2.0
3,588
class Helmfile < Formula desc "Deploy Kubernetes Helm Charts" homepage "https://github.com/roboll/helmfile" url "https://github.com/roboll/helmfile/archive/v0.142.0.tar.gz" sha256 "5475a041f0a1eb5777cc45e3fb06458ae76b1d4840aec89f2fed509d833d0cde" license "MIT" bottle do sha256 cellar: :any_skip_relocat...
sjackman/homebrew-core
Formula/helmfile.rb
Ruby
bsd-2-clause
2,316
import re # Python 2/3 compatibility hackery try: unicode except NameError: unicode = str def compile_url(url): clean_url = unicode(url).lstrip(u'/') return re.compile(clean_url) def compile_urls(urls): return [compile_url(expr) for expr in urls]
ghickman/incuna-auth
incuna_auth/middleware/utils.py
Python
bsd-2-clause
272
class Helmsman < Formula desc "Helm Charts as Code tool" homepage "https://github.com/Praqma/helmsman" url "https://github.com/Praqma/helmsman.git", tag: "v3.7.2", revision: "6d7e6ddb2c7747b8789dd72db7714431fe17e779" license "MIT" bottle do sha256 cellar: :any_skip_relocation, arm64_big_...
zyedidia/homebrew-core
Formula/helmsman.rb
Ruby
bsd-2-clause
1,369
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function from math import log import argh import numpy as np from chemreac import ReactionDiffusion from chemreac.integrate import run from chemreac.util.plotting import plot_solver_linear_error def efield_cb(x, ...
bjodah/chemreac
examples/steady_state.py
Python
bsd-2-clause
4,970
package org.jvnet.jaxb2_commons.xml.bind.model.concrete; import java.util.ArrayList; import java.util.Collection; import java.util.IdentityHashMap; import java.util.List; import java.util.Map; import java.util.Set; import javax.activation.MimeType; import javax.xml.namespace.NamespaceContext; import javax.xml.namespa...
Stephan202/jaxb2-basics
runtime/src/main/java/org/jvnet/jaxb2_commons/xml/bind/model/concrete/CMInfoFactory.java
Java
bsd-2-clause
22,939
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: | When "String" is called as part of a new expression, it is a constructor: it initialises the newly created object and The [[Value]] property of the newly constructed...
sebastienros/jint
Jint.Tests.Test262/test/built-ins/String/S15.5.2.1_A1_T16.js
JavaScript
bsd-2-clause
4,487
cask 'anka-flow' do version '1.1.1.79' sha256 '9f91222458f5b7b52bee53a62e878faed4a4894ca02fe3d37b52b79b54c523fa' # d1efqjhnhbvc57.cloudfront.net was verified as official when first introduced to the cask url "https://d1efqjhnhbvc57.cloudfront.net/AnkaFlow-#{version}.pkg", referer: 'https://veertu.com/dow...
tedski/homebrew-cask
Casks/anka-flow.rb
Ruby
bsd-2-clause
1,593
/* * Copyright (C) 2013 Apple 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: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
aosm/WebCore
Modules/mediastream/MediaTrackConstraints.cpp
C++
bsd-2-clause
2,294
# Generated by Django 3.1.4 on 2020-12-15 15:58 from django.db import migrations def copy_labels(apps, schema_editor): Trek = apps.get_model('trekking', 'Trek') Label = apps.get_model('common', 'Label') for trek in Trek.objects.all(): for label in trek.labels.all(): label2, created =...
makinacorpus/Geotrek
geotrek/trekking/migrations/0024_copy_labels.py
Python
bsd-2-clause
649
class Cuetools < Formula desc "Utilities for .cue and .toc files" homepage "https://github.com/svend/cuetools" url "https://github.com/svend/cuetools/archive/1.4.1.tar.gz" sha256 "24a2420f100c69a6539a9feeb4130d19532f9f8a0428a8b9b289c6da761eb107" head "https://github.com/svend/cuetools.git" bottle do ce...
jdubois/homebrew-core
Formula/cuetools.rb
Ruby
bsd-2-clause
1,827
#define SOL_CHECK_ARGUMENTS 1 #include <sol.hpp> #include "assert.hpp" #include <iostream> int main(int, char*[]) { std::cout << "=== coroutine state transfer ===" << std::endl; sol::state lua; lua.open_libraries(); sol::function transferred_into; lua["f"] = [&lua, &transferred_into](sol::object t, sol::this_st...
Project-OSRM/osrm-backend
third_party/sol2/examples/coroutine_state.cpp
C++
bsd-2-clause
1,131
/* * w-driver-volleyball-lstm-evaluator.cpp * * Created on: Jul 13, 2015 * Author: msibrahi */ #include <iostream> #include <vector> #include <stdio.h> #include <string> #include <set> #include <set> #include <map> #include <iomanip> using std::vector; using std::set; using std::multiset; using std::map; us...
mostafa-saad/deep-activity-rec
eclipse-project/ibrahim16-deep-act-rec-part/apps/exePhase4.cpp
C++
bsd-2-clause
7,728
/* * Copyright (c) 2008-2011 Juli Mallett. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of cond...
diegows/wanproxy
event/test/action-cancel1/action-cancel1.cc
C++
bsd-2-clause
2,406
// // Created by 王晓辰 on 15/10/2. // #include "test_dirname.h" #include <ftxpath.h> #include "tester.h" bool test_dirname_path() { std::string path = "/a/b/c/d"; std::string dirname = "/a/b/c"; return dirname == ftx::path::dirname(path); } bool test_dirname_onename() { std::string name = "name"; retur...
XiaochenFTX/ftxpath
test/test_dirname.cpp
C++
bsd-2-clause
1,239
/* * Copyright (C) 2009 Google Inc. All rights reserved. * Copyright (C) 2013 Apple 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 retai...
aosm/WebCore
bindings/generic/RuntimeEnabledFeatures.cpp
C++
bsd-2-clause
5,200
package org.joshy.gfx.test.itunes; /** * Created by IntelliJ IDEA. * User: josh * Date: Jan 28, 2010 * Time: 9:20:01 PM * To change this template use File | Settings | File Templates. */ class Song { int trackNumber; int totalTracks; String name; String album; String artist; int duration; p...
tonykwok/leonardosketch.amino
src/org/joshy/gfx/test/itunes/Song.java
Java
bsd-2-clause
622
class Dxpy < Formula include Language::Python::Virtualenv desc "DNAnexus toolkit utilities and platform API bindings for Python" homepage "https://github.com/dnanexus/dx-toolkit" url "https://files.pythonhosted.org/packages/7e/d8/9529a045270fe2cee67c01fde759864b9177ecdd486d016c3a38863f3895/dxpy-0.320.0.tar.gz"...
filcab/homebrew-core
Formula/dxpy.rb
Ruby
bsd-2-clause
4,787
/* global define */ define([ 'jquery', 'underscore', './dist', './axis' ], function($, _, dist, axis) { var EditableFieldChart = dist.FieldChart.extend({ template: 'charts/editable-chart', toolbarAnimationTime: 200, formAnimationTime: 300, events: _.extend({ ...
chop-dbhi/cilantro
src/js/cilantro/ui/charts/editable.js
JavaScript
bsd-2-clause
8,396
# frozen_string_literal: true require_relative "commands/break" require_relative "commands/catch" require_relative "commands/condition" require_relative "commands/continue" require_relative "commands/debug" require_relative "commands/delete" require_relative "commands/disable" require_relative "commands/display" requi...
deivid-rodriguez/byebug
lib/byebug/commands.rb
Ruby
bsd-2-clause
1,337
module.exports = { "WMSC": { "WMSC_1_1_1" : require('./1.1.1/WMSC_1_1_1') } };
juanrapoport/ogc-schemas
scripts/tests/WMSC/WMSC.js
JavaScript
bsd-2-clause
84
package cz.metacentrum.perun.core.bl; import cz.metacentrum.perun.core.api.Attribute; import cz.metacentrum.perun.core.api.Member; import cz.metacentrum.perun.core.api.PerunSession; import cz.metacentrum.perun.core.api.User; import cz.metacentrum.perun.core.api.exceptions.InternalErrorException; import cz.metacentrum....
jirmauritz/perun
perun-core/src/main/java/cz/metacentrum/perun/core/bl/SearcherBl.java
Java
bsd-2-clause
4,338
<?php class Kwc_Menu_EditableItems_Controller extends Kwf_Controller_Action_Auto_Kwc_Grid { protected $_buttons = array(); protected $_model = 'Kwc_Menu_EditableItems_Model'; protected $_defaultOrder = array('field' => 'pos', 'direction' => 'ASC'); protected function _initColumns() { $this-...
fraxachun/koala-framework
Kwc/Menu/EditableItems/Controller.php
PHP
bsd-2-clause
698
class Wimlib < Formula desc "Library to create, extract, and modify Windows Imaging files" homepage "https://wimlib.net/" url "https://wimlib.net/downloads/wimlib-1.13.1.tar.gz" sha256 "47f4bc645c1b6ee15068d406a90bb38aec816354e140291ccb01e536f2cdaf5f" bottle do cellar :any rebuild 1 sha256 "ea449...
wolffaxn/homebrew-core
Formula/wimlib.rb
Ruby
bsd-2-clause
1,434
#include "hamiltonian/Hamiltonian.hpp" namespace cpb { namespace { struct IsValid { template<class scalar_t> bool operator()(SparseMatrixRC<scalar_t> const& p) const { return p != nullptr; } }; struct Reset { template<class scalar_t> void operator()(SparseMatrixRC<scalar_t>& p) const { p.reset(); } }...
dean0x7d/pybinding
cppcore/src/hamiltonian/Hamiltonian.cpp
C++
bsd-2-clause
1,497
@extends('skins.bootstrap.admin.layout') @section('module') <section id="admin-site"> {{ Form::open(array( 'autocomplete' => 'off', 'role' => 'form', 'class' => 'form-horizontal', )) }} <div class="row"> <div class="col-sm-12"> <fieldset> <legend>{{ Lang::get(...
solitaryr/sticky-notes
app/views/skins/bootstrap/admin/site.blade.php
PHP
bsd-2-clause
14,466
package cz.metacentrum.perun.webgui.tabs.cabinettabs; import com.google.gwt.core.client.JavaScriptObject; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.resources.client.ImageResource; import com.google.gwt.safehtml.shared.SafeHtmlUtils; im...
stavamichal/perun
perun-web-gui/src/main/java/cz/metacentrum/perun/webgui/tabs/cabinettabs/PublicationDetailTabItem.java
Java
bsd-2-clause
19,457
from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', url(r'^admin/', include(admin.site.urls)), url(r'', include('project.core.urls', namespace='core')), )
pombredanne/django-boilerplate-1
project/urls.py
Python
bsd-2-clause
248
"""Auxiliary functions.""" import cPickle as pickle import os import sys import gzip import urllib import numpy import theano import theano.tensor as T import theano.sandbox.cuda from athenet.utils import BIN_DIR, DATA_DIR def load_data_from_pickle(filename): """Load data from pickle file. :param filename...
heurezjusz/Athena
athenet/utils/misc.py
Python
bsd-2-clause
7,019
<?php $player = new stdClass(); $player->name = "Chuck"; $player->score = 0; $player->score++; print_r($player); class Player { public $name = "Sally"; public $score = 0; } $p2 = new Player(); $p2->score++; print_r($p2);
csev/wa4e
code/objects/scratch.php
PHP
bsd-2-clause
236
using Example.Domain.Domain; using LightBDD.Framework; using LightBDD.Framework.Parameters; using LightBDD.XUnit2; namespace Example.LightBDD.XUnit2.Features { public partial class Calculator_feature : FeatureFixture { private Calculator _calculator; private void Given_a_calculator() ...
Suremaker/LightBDD
examples/Example.LightBDD.XUnit2/Features/Calculator_feature.Steps.cs
C#
bsd-2-clause
1,059
class Nsd < Formula desc "Name server daemon" homepage "https://www.nlnetlabs.nl/projects/nsd/" url "https://www.nlnetlabs.nl/downloads/nsd/nsd-4.2.2.tar.gz" sha256 "83b333940a25fe6d453bcac6ea39edfa244612a879117c4a624c97eb250246fb" revision 1 bottle do sha256 "ca69db82461ccb04f94857b03715b967f80896539d...
zmwangx/homebrew-core
Formula/nsd.rb
Ruby
bsd-2-clause
1,093
class Ejabberd < Formula desc "XMPP application server" homepage "https://www.ejabberd.im" url "https://static.process-one.net/ejabberd/downloads/20.03/ejabberd-20.03.tgz" sha256 "1a54ef1cdc391a25b81c3ed3e9e8aa43434a8d4549b4e86c54af3ecf121d0144" bottle do cellar :any sha256 "9518b32a672d6a756a2959489...
BrewTestBot/homebrew-core
Formula/ejabberd.rb
Ruby
bsd-2-clause
2,601
# encoding: utf-8 from django.db.utils import IntegrityError, DatabaseError try: from django.contrib.auth import get_user_model except ImportError: # django < 1.5 from django.contrib.auth.models import User else: User = get_user_model() import datetime from south.db import db from south.v2 import SchemaMi...
zekone/dj_pybb
pybb/migrations/0023_auto__add_unique_pollansweruser_poll_answer_user.py
Python
bsd-2-clause
12,958
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
<?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
<?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
<?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
<?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
<? /*======================================================================*\ || #################################################################### || # 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
# @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
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
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
<?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
/* * 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
// 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
<?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
/******************************************************************************* * 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
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
/** @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
#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
/* * -- 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
/*================================================================================ 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 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
<?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
<?php use yii\helpers\Html; use yii\bootstrap\ActiveForm; /* @var $this yii\web\View */ /* @var $form yii\bootstrap\ActiveForm */ /* @var $model \app\models\SignupForm */ $this->title = Yii::t('app','Signup'); $this->params['breadcrumbs'][] = $this->title; ?> <div class="site-signup"> <h1><?= Html::en...
thuctoa/ungdungtoan
views/site/signup.php
PHP
bsd-3-clause
1,196
/// /// \file InvMassFit.C /// \ingroup CaloTrackCorrMacrosPlotting /// \brief Fit invariant mass distributions /// /// Macro using as input the 2D histograms mass vs pT of AliAnaPi0 /// For a given set of pT bins invariant mass plots are fitted and mass vs pT /// and width vs pT and neutral meson spectra plots are ob...
dstocco/AliPhysics
PWGGA/CaloTrackCorrelations/macros/plotting/invmass/InvMassFit.C
C++
bsd-3-clause
85,625
<?php use vova07\themes\admin\widgets\Box; use modules\directory\Module; $this->title = Module::t('shop', 'BACKEND_STORE_UPDATE_TITLE'); $this->params['subtitle'] = Module::t('shop', 'BACKEND_STORE_UPDATE_SUBTITLE'); $this->params['breadcrumbs'] = [ [ 'label' => $this->title, 'url' => ['...
d-bo/unitaly-dev
modules/directory/views/backend/store/update.php
PHP
bsd-3-clause
1,520
var archiver = require('archiver'), async = require('async'), escape = require('handlebars').Utils.escapeExpression, fs = require('fs'), glob = require('glob'), path = require('path'), yui = require('yui'); var config = require('../config'), hbs = require('./hbs')...
igorstefurak/pushcourse
lib/layouts.js
JavaScript
bsd-3-clause
7,374
/* * Copyright (C) 2011 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: * 1. Redistributions of source code must retain the above copyright * notice, this list of condition...
crosswalk-project/blink-crosswalk
Source/platform/graphics/ImageLayerChromiumTest.cpp
C++
bsd-3-clause
4,769
// 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/ui/singleton_tabs.h" #include "chrome/browser/profiles/profile.h" #include "chrome/browser/ui/browser.h" #include "chrome/br...
zcbenz/cefode-chromium
chrome/browser/ui/singleton_tabs.cc
C++
bsd-3-clause
4,284