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 (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. #include "content/browser/gpu/gpu_data_manager_impl.h" #include "content/browser/gpu/gpu_data_manager_impl_private.h" namespace content { // static...
loopCM/chromium
content/browser/gpu/gpu_data_manager_impl.cc
C++
bsd-3-clause
7,341
using UnityEngine; using System.Collections; public class DestroyByContact : MonoBehaviour { public GameObject explosion; public GameObject playerExplosion; public int scoreValue; private GameController gameController; void Start() { GameObject gameControllerObject = GameObject.FindWi...
kkurzhal/space-shooter
Assets/Scripts/DestroyByContact.cs
C#
bsd-3-clause
1,125
/******************************************************************************* * Caleydo - Visualization for Molecular Biology - http://caleydo.org * Copyright (c) The Caleydo Team. All rights reserved. * Licensed under the new BSD license, available at http://caleydo.org/license *********************************...
Caleydo/caleydo
org.caleydo.data.importer/src/org/caleydo/data/importer/tcga/FirehoseProvider.java
Java
bsd-3-clause
19,060
.pragma library var tooltip = null function create(name, value, meta, defaultMargins, x, y, parent) { var component = Qt.createComponent("ToolTip.qml") var properties = {} properties.name = name properties.value = value properties.meta = meta properties.defaultMargins = defaultMargins properties.parentWidth...
e1528532/libelektra
src/tools/qt-gui/qml/TooltipCreator.js
JavaScript
bsd-3-clause
1,067
<?php defined('SYSPATH') or die('No direct script access.'); ?> 2012-05-21 08:47:09 --- ERROR: HTTP_Exception_404 [ 404 ]: Unable to find a route to match the URI: favicon.ico ~ SYSPATH/classes/kohana/request.php [ 1126 ] 2012-05-21 08:47:09 --- STRACE: HTTP_Exception_404 [ 404 ]: Unable to find a route to match the U...
jneslen/matrix42
application/logs/2012/05/21.php
PHP
bsd-3-clause
7,013
<div class="container"> <?php use yii\helpers\Html; use yii\helpers\Url; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model app\models\TravellerPhoto */ $this->title = Yii::t('app', 'Update Traveller Languages'); ?> <div class="traveller-photo-create"> <d...
Junaid-Farid/staylance-new
frontend/views/travellerslanguages/update.php
PHP
bsd-3-clause
3,419
<?php /** * StanfordDatabase is an extension of MySQLi intended to assist developers in creating secure database-enabled applications * * Copyright 2008,2009 Board of Trustees, Leland Stanford Jr. University * See LICENSE for licensing terms. * */ class StanfordDatabase extends MySQLi { const VERS...
mistermarco/swat
stanford.database.php
PHP
bsd-3-clause
7,278
<?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...
FbN/Zend-Framework-Namespaced-
Zend/Dojo/View/Helper/ContentPane.php
PHP
bsd-3-clause
2,024
// @flow import { RNFFmpeg, RNFFprobe, RNFFmpegConfig } from 'react-native-ffmpeg'; import { getHasMultipleFramesProbeCommand } from 'lib/media/video-utils'; import type { Dimensions, FFmpegStatistics, VideoInfo, } from 'lib/types/media-types'; const maxSimultaneousCalls = { process: 1, probe: 1, }; type ...
Ashoat/squadcal
native/media/ffmpeg.js
JavaScript
bsd-3-clause
4,898
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model app\models\AuthItemChild */ $this->title = Yii::t('app', '更新: ', [ 'modelClass' => 'Auth Item Child', ]) . ' ' . $model->parent; $this->params['breadcrumbs'][] = ['label' => '权限关系', 'url' => ['index']]; $this->params['breadcrumbs'][] = ['la...
v-joy/v-joy
views/authitemchild/update.php
PHP
bsd-3-clause
640
from django.db import models class Place(models.Model): name = models.CharField(max_length=128) url = models.URLField(max_length=256, verify_exists=False) date = models.DateTimeField(auto_now_add=True) class Meta(object): topsoil_exclude = ['date'] def get_absolute_url(self): ...
wooster/django-topsoil
tests/test_provider/testapp/models.py
Python
bsd-3-clause
430
/* eslint-env node */ "use strict"; var fluid = require("infusion"); var gpii = fluid.registerNamespace("gpii"); fluid.registerNamespace("gpii.handlebars"); /** * * @typedef PrioritisedPathDef * @property {String} [priority] - The priority for this entry in the final array, relative to other path definitions. ...
the-t-in-rtf/gpii-handlebars
src/js/server/lib/resolver.js
JavaScript
bsd-3-clause
1,883
/* * Copyright 2015, Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions a...
louiscryan/grpc-java
interop-testing/src/test/java/io/grpc/testing/integration/TransportCompressionTest.java
Java
bsd-3-clause
8,398
<?php /* @var $this NewsController */ /* @var $model SBNews */ Yii::app()->clientScript->registerScript('search', " $('.search-button').click(function(){ $('.search-form').toggle(); return false; }); $('.search-form form').submit(function(){ $('#".$this->IDname."-grid').yiiGridView('update', { data: $(this).serial...
akaidrive2014/persseleb
protected/views/adminosu/news/admin.php
PHP
bsd-3-clause
4,360
<?php namespace Admin\Controller; use Sale\Model\Dao\CustomerDao; use Sale\Model\Dao\OrderDao; use Zend\Mvc\Controller\AbstractActionController; use Zend\View\Model\ViewModel; class IndexController extends AbstractActionController { private $_user; public function indexAction() { $auth = $this->get...
Gimalca/piderapido
module/Admin/src/Admin/Controller/IndexController.php
PHP
bsd-3-clause
1,586
#!/usr/bin/env python import glob import os for f in sorted(glob.glob('*.ini')): print 'Running ' + f + '...' os.system('./src/engine ' + f)
timvdm/ComputerGraphics
run_engine.py
Python
bsd-3-clause
151
import React from 'react'; import {MetaType} from 'app/utils/discover/eventView'; import withApi from 'app/utils/withApi'; import GenericDiscoverQuery, {DiscoverQueryProps} from './genericDiscoverQuery'; /** * An individual row in a DiscoverQuery result */ export type TableDataRow = { id: string; [key: string]...
beeftornado/sentry
src/sentry/static/sentry/app/utils/discover/discoverQuery.tsx
TypeScript
bsd-3-clause
656
<? preg_match('@^(?:http://)?([^/]+)@i', $_SERVER['HTTP_HOST'], $matches); $host = $matches[1]; preg_match('/[^.]+\.[^.]+$/', $host, $matches); $zoto_domain = $matches[0]; if(strstr(getenv('HTTP_REFERER'), "site_down")) { $referer = $_COOKIE["zoto_down_referer"]; } else { if (getenv('HTTP_REFERER')) { $referer = ge...
kordless/zoto-server
www/static_pages/site_down/index.php
PHP
bsd-3-clause
2,162
<? //---------------------- //require("GTranslate.php"); //---------------------- ?> <html> <head> <title>This is the test page</title> <script type="text/javascript" src="jquery-1.3.2.js"></script> <style> body { font-family:arial; } div.container { border:4px solid green; } div.container div.ro...
straight-street/straight-street
scratchpad/translate/index5.php
PHP
bsd-3-clause
4,540
/* * File: PowerSetItr.hpp * * Created on March 17, 2016, 6:07 PM */ #pragma once #include <memory> #include "pulsar/math/CombItr.hpp" namespace pulsar{ /** \brief Class to facilitate iterating over the power set of a set * * Let's start with what a power set is. Given a set \f$S\f$, the * power set of ...
pulsar-chem/Pulsar-Core
pulsar/math/PowerSetItr.hpp
C++
bsd-3-clause
6,364
/*L * Copyright SAIC * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/i-spy/LICENSE.txt for details. */ package gov.nih.nci.ispy.service.common; import java.awt.Color; import java.io.Serializable; public enum TimepointType implements Serializable { T1 { public Co...
NCIP/i-spy
src/gov/nih/nci/ispy/service/common/TimepointType.java
Java
bsd-3-clause
568
/* This file is part of the db4o object database http://www.db4o.com Copyright (C) 2004 - 2010 Versant Corporation http://www.versant.com db4o is free software; you can redistribute it and/or modify it under the terms of version 3 of the GNU General Public License as published by the Free Software Foundation. db4o ...
mural/spm
db4oj/src/main/java/com/db4o/internal/activation/ModifiedObjectQuery.java
Java
bsd-3-clause
795
from django.conf.urls import patterns, url urlpatterns = patterns('ietf.secr.drafts.views', url(r'^$', 'search', name='drafts'), url(r'^add/$', 'add', name='drafts_add'), url(r'^approvals/$', 'approvals', name='drafts_approvals'), url(r'^dates/$', 'dates', name='drafts_dates'), url(r'^nudge-report/...
wpjesus/codematch
ietf/secr/drafts/urls.py
Python
bsd-3-clause
1,671
// usage: log('inside coolFunc', this, arguments); // paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/ window.log = function f(){ log.history = log.history || []; log.history.push(arguments); if(this.console) { var args = arguments, newarr; args.callee = args.callee.caller; newarr = [].slice.call(args); if ...
inkasjasonk/rs
research/base/static/js/plugins.js
JavaScript
bsd-3-clause
3,480
<?php namespace WbBase\WbTrait\ServiceManager; use \Zend\ServiceManager\ServiceManager; /** * ServiceManagerAwareTrait * * @package WbBase\WbTrait\ServiceManager * @author Źmicier Hryškieivič <zmicier@webbison.com> */ trait ServiceManagerAwareTrait { /** * @var ServiceManager */ protected $se...
zmicier/WbBase
src/WbBase/WbTrait/ServiceManager/ServiceManagerAwareTrait.php
PHP
bsd-3-clause
808
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework.Media; namespace GameFramework.Implementation { public class WPMusic : Music { #region Fields private Song song; #endregion #region Properti...
tommus/XNAGameWrapper
Implementation/WPMusic.cs
C#
bsd-3-clause
2,056
// Box sizing in JavaScript // Copyright 2011 Google Inc. // see Purple/license.txt for BSD license // johnjbarton@google.com define(['lib/nodelist/nodelist'], function (nodelist){ var Flexor = {}; Flexor.getChildernByClassName = function(parentBox, classname) { var hboxes = []; parentBox.childNodes....
johnjbarton/Purple
ui/flexor.js
JavaScript
bsd-3-clause
2,344
<?php // $Id: AbstractTemplateEngine.php 477 2008-05-19 08:10:31Z aurelian $ abstract class AbstractTemplateEngine extends Object implements ITemplateEngine { protected $vars; protected $context; protected $controller; public function __construct(ContextManager $context, ActionController $controller) { ...
aurelian/medick2
lib/action/view/AbstractTemplateEngine.php
PHP
bsd-3-clause
497
/** * @license * Copyright 2017 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 applica...
PolymerLabs/arcs-live
concrete-storage/node_modules/@firebase/database/dist/src/realtime/polling/PacketReceiver.d.ts
TypeScript
bsd-3-clause
1,601
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model app\models\Refill */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="refill-form"> <?php $form = ActiveForm::begin(); ?> <?= $form->field($model, 'id_printer')->textInput() ?> <?= $form->field($...
annushara/diplom
views/refill/_form.php
PHP
bsd-3-clause
673
<?php class Autor { private $nome; private $data_nascimento; private $email; private $id; /** * * @return the $nome */ public function getNome() { return $this->nome; } /** * * @return the $data_nascimento */ public function getData_na...
ajzuse/PHPOrientadoAObjetos
module/Application/src/Application/Model/Autor.php
PHP
bsd-3-clause
1,429
require File.expand_path('../shared/conjugate', __FILE__) ruby_version_is "1.9" do describe "Matrix#conj" do it_behaves_like(:matrix_conjugate, :conj) end end
rubysl/rubysl-matrix
spec/conj_spec.rb
Ruby
bsd-3-clause
168
<?php namespace backend\models; use Yii; /** * This is the model class for table "fields". * * @property integer $field_id * @property string $arabic_name * @property string $english_name * @property string $field_type * @property integer $is_required * @property integer $field_order * @property integer $li...
haya-hammoud/advanced
backend/models/Fields.php
PHP
bsd-3-clause
1,895
// 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. #include "components/error_page/renderer/net_error_helper_core.h" #include <set> #include <string> #include <vector> #include "base/bind.h" #include "ba...
Workday/OpenFrame
components/error_page/renderer/net_error_helper_core.cc
C++
bsd-3-clause
42,701
#!/usr/bin/env python """ heatsequer plot window gui (2nd plot window) module imported from plotwin.py when you plotexp() and set usegui=True """ # amnonscript __version__ = "0.91" import heatsequer as hs import os import sys import numpy as np import matplotlib as mpl mpl.use('Qt5Agg') import matplotlib.pyplot ...
amnona/heatsequer
heatsequer/plots/plotwingui.py
Python
bsd-3-clause
28,472
/** * marked - a markdown parser * Copyright (c) 2011-2013, Christopher Jeffrey. (MIT Licensed) * https://github.com/chjj/marked * * @providesModule Marked * @jsx React.DOM */ /* eslint-disable sort-keys */ const React = require('React'); const Prism = require('Prism'); const Header = require('Header'); /** ...
mpontus/jest
website/core/Marked.js
JavaScript
bsd-3-clause
23,888
import sys import time import traceback import dis from browser import document as doc, window, alert from javascript import JSObject # set height of container to 66% of screen _height = doc.documentElement.clientHeight _s = doc['container'] _s.style.height = '%spx' % int(_height * 0.66) has_ace = True try: edit...
firmlyjin/brython
www/tests/editor.py
Python
bsd-3-clause
2,743
<?php namespace backend\models\forms; use backend\models\User; use Yii; use yii\base\Model; use yii\behaviors\TimestampBehavior; /** * Login form */ class LoginForm extends Model { public $email; public $password; public $rememberMe = TRUE; private $_user; /** * @inheritdoc */ p...
xZ1mEFx/y2shop
backend/models/forms/LoginForm.php
PHP
bsd-3-clause
3,073
<?php /** * Backend Object Controller. * * @package backend.controllers * */ class BepujapurposeController extends BeController { public function __construct($id,$module=null) { parent::__construct($id,$module); $this->menu=array( arr...
troikaitsulutions/templeadvisor
protected/controllers/BepujapurposeController.php
PHP
bsd-3-clause
1,386
<?php /* @var $this ActividadesController */ /* @var $data Actividades */ ?> <div class="view" style="width: inherit;border: 2px solid #949494;background-color: white;padding: 10px;"> <h4><?php echo CHtml::encode($data->act_nombre); ?></h4> Se realizara el <?php echo CHtml::encode($data->act_fecha); ?> entre las <...
leo14/EPI_TESIS
EPI/protected/views/actividades/_view.php
PHP
bsd-3-clause
572
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2013-2015, Image Engine Design 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: // // ...
hradec/cortex
src/IECoreMaya/SceneShapeInterface.cpp
C++
bsd-3-clause
49,682
'use strict'; angular.module('authApp') .controller('LogoutCtrl', function ($scope, $location, djangoAuth) { djangoAuth.logout(); });
LABETE/TestYourProject
staticfiles/js/controllers/logout.js
JavaScript
bsd-3-clause
143
<?php use yii\helpers\Html; use yii\bootstrap\ActiveForm; use yii\helpers\ArrayHelper; use kartik\select2\Select2; $this->title = 'Lembrete'; ?> <div class="login-box "> <div class="login-logo"> <a href="../../index2.html"><i><b>Consultorio</b></i> <b>Médico</b></a> </div> <!-- /.login-logo --> ...
paulorobto11/consultorioWeb
modules/auth/views/auth-user/lembrete.php
PHP
bsd-3-clause
2,659
// This file was generated by silverstripe/cow from javascript/lang/src/fi.js. // See https://github.com/tractorcow/cow for details if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') { if(typeof(console) != 'undefined') console.error('Class ss.i18n not defined'); } else { ss.i18n.addDictionary('fi', { ...
icecaster/advancedworkflow
javascript/lang/fi.js
JavaScript
bsd-3-clause
766
#!/usr/bin/env python # -*- coding: utf-8 -*- # polyencoder # Copyright 2015 Neil Freeman contact@fakeisthenewreal.org # 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 so...
fitnr/polyencoder
polyencoder/polyencode_layer.py
Python
bsd-3-clause
3,370
import { findOrCreateWorkspace, findOrCreateWorkspaceCard, signInWithAccessToken } from 'utils/test-utils'; import { MenuOption } from 'app/text-labels'; import WorkspaceDataPage from 'app/page/workspace-data-page'; import Navigation, { NavLink } from 'app/component/navigation'; import WorkspaceCard from 'app/component...
all-of-us/workbench
e2e/tests/workspace/workspace-duplicate.spec.ts
TypeScript
bsd-3-clause
4,823
<?php class CategoryController extends AdminController { public function actionSave() { if (Yii::app()->getRequest()->getIsPostRequest()) { $category = Yii::app()->getRequest()->getPost('Category', array()); if(Yii::app()->session['id']) { $model = $this->loadModel(Yii::app()->session['id'], 'Categor...
hieutrieu/hiva1
protected/modules/admin/controllers/CategoryController.php
PHP
bsd-3-clause
3,692
<?php return [ 'id' =>'ID', 'en_name' =>'En Name', 'iso639_1' =>'Iso639 1', 'native_name' =>'Native Name', 'native_name_short' =>'Native Name Short', 'created_at' =>'Created At', 'updated_at' =>'Updated At', ];
Winkelor/yii2store
common/messages/en-US/languages.php
PHP
bsd-3-clause
240
/* * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any ...
Workday/OpenFrame
third_party/WebKit/Source/core/html/HTMLProgressElement.cpp
C++
bsd-3-clause
6,371
"use strict"; const debug = require('debug')('ipc-stream'); const EventEmitter = require('events'); class IPCStream extends EventEmitter { // otherWindowId is the id of the window // channelId is the id of the service you want to communicate wth // running in that other window constructor(closeFn, remote, loc...
greggman/other-window-ipc
lib/ipc-stream.js
JavaScript
bsd-3-clause
1,463
<?php /*========================================================================= Program: CDash - Cross-Platform Dashboard System Module: $Id: buildupdatefile.php 3179 2012-02-13 08:59:24Z jjomier $ Language: PHP Date: $Date: 2012-02-13 08:59:24 +0000 (Mon, 13 Feb 2012) $ Version: $Revision: 31...
zackgalbreath/CDash
models/buildupdatefile.php
PHP
bsd-3-clause
3,579
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "config.h" #include "core/inspector/AsyncCallChain.h" #include "wtf/text/WTFString.h" namespace blink { AsyncCallStack::AsyncCallStack(const S...
Bysmyyr/chromium-crosswalk
third_party/WebKit/Source/core/inspector/AsyncCallChain.cpp
C++
bsd-3-clause
1,222
import base64 import os import tempfile import zipfile from cumulusci.core.utils import process_bool_arg from cumulusci.salesforce_api.metadata import ApiDeploy from cumulusci.tasks.salesforce import BaseSalesforceMetadataApiTask from cumulusci.utils import zip_clean_metaxml from cumulusci.utils import zip_inject_name...
e02d96ec16/CumulusCI
cumulusci/tasks/salesforce/Deploy.py
Python
bsd-3-clause
4,641
<?php use kartik\helpers\Html; use yii\widgets\DetailView; use kartik\grid\GridView; use yii\helpers\Url; use yii\widgets\Pjax; use yii\bootstrap\Modal; use yii\bootstrap\ActiveForm; use kartik\tabs\TabsX; use yii\helpers\Json; use yii\web\Response; use yii\helpers\ArrayHelper; use yii\web\Request; use kar...
adem-team/advanced
lukisongroup/purchasing/views/plan-term/review.php
PHP
bsd-3-clause
2,360
<?php use yii\helpers\Html; use yii\grid\GridView; /* @var $this yii\web\View */ /* @var $searchModel app\models\OlxstatisticSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = 'Olxstatistics'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="olxstatistic-index"> <h1><?= H...
samwolf1982/timutparserolxdomria_yii2
backend/views/olxstatistic/index.php
PHP
bsd-3-clause
919
// This file has been generated by Py++. #include "boost/python.hpp" #include "wrap_osg.h" #include "wrap_referenced.h" #include "node.pypp.hpp" namespace bp = boost::python; struct Node_wrapper : osg::Node, bp::wrapper< osg::Node > { Node_wrapper( ) : osg::Node( ) , bp::wrapper< osg::Node >(){ ...
JaneliaSciComp/osgpyplusplus
src/modules/osg/generated_code/Node.pypp.cpp
C++
bsd-3-clause
49,800
/*** Copyright (c), The Unregents of the University of California *** *** For more information please refer to files in the COPYRIGHT directory ***/ /* chkObjPermAndStat.h */ #ifndef CHK_OBJ_PERM_AND_STAT_HPP #define CHK_OBJ_PERM_AND_STAT_HPP /* This is Object File I/O type API call */ #include "rods.hp...
leesab/irods
iRODS/lib/api/include/chkObjPermAndStat.hpp
C++
bsd-3-clause
1,734
import { Link as GatsbyLink } from 'gatsby'; import React from 'react'; interface LinkProps { children?: React.ReactNode; className?: string; external?: boolean; sameTab?: boolean; state?: Record<string, unknown>; to: string; } const Link = ({ children, to, external, sameTab, ...other }: LinkPro...
raisedadead/FreeCodeCamp
client/src/components/helpers/link.tsx
TypeScript
bsd-3-clause
742
package cz.vsb.resbill.web.contracts; import java.util.List; import java.util.Locale; import javax.inject.Inject; import javax.validation.Valid; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.propertyeditors.StringTrimmerEditor; import org.springframework.dao.sup...
CIT-VSB-TUO/ResBill
resbill/src/main/java/cz/vsb/resbill/web/contracts/ContractPersonEditController.java
Java
bsd-3-clause
7,614
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using NAudio.Wave; using Blaze.SoundPlayer.Sounds; namespace Blaze.SoundPlayer.WaveProviders { internal class SimpleSoundProvider : WaveProvider32, ISoundProvider { int sampl...
GKBelmonte/SoundPlayer
Blaze.SoundPlayer/WaveProviders/SimpleSoundProvider.cs
C#
bsd-3-clause
1,241
/* * Copyright (c) 2008-2013, Matthias Mann * * 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...
ShadowLordAlpha/TWL
src/main/java/de/matthiasmann/twl/textarea/TextAreaModel.java
Java
bsd-3-clause
8,925
<?php namespace app\components; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; use app\models\Country; /** * countryService represents the model behind the search form about `app\models\Country`. */ class countryService extends Country { /** * @inheritdoc */ public function rules()...
GarenGoh/yii
components/countryService.php
PHP
bsd-3-clause
1,552
<?php /** * @version 0.0.0.1 */ function callback($callback) { $callback(); } //输出: This is a anonymous function.<br />\n //这里是直接定义一个匿名函数进行传递, 在以往的版本中, 这是不可用的. //现在, 这种语法非常舒服, 和javascript语法基本一致, 之所以说基本呢, 需要继续向下看 //结论: 一个舒服的语法必然会受欢迎的. $obj = (object) "Hello, everyone"; $callback = function () use ($obj) { p...
VampireMe/admin-9939-com
tests/Common_Test.php
PHP
bsd-3-clause
634
// Copyright (c) 2010 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. function onCursor() { var cursor = event.target.result; if (cursor === null) { debug('Reached end of object cursor.'); if (!gotObjectThrou...
aYukiSekiguchi/ACCESS-Chromium
chrome/test/data/indexeddb/index_test.js
JavaScript
bsd-3-clause
3,877
# -*- coding: utf-8 -*- # # Smisk documentation build configuration file, created by # sphinx-quickstart on Sun Oct 26 20:24:33 2008. # # This file is execfile()d with the current directory set to its containing dir. # # The contents of this file are pickled, so don't put values in the namespace # that aren't pickleabl...
rsms/tc
docs/source/conf.py
Python
bsd-3-clause
5,778
<?php /** * Scripts for PHPUnit * * PHP version 5.3 * * Copyright (c) 2010-2012 Shinya Ohyanagi, 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 m...
heavenshell/php-net-kyototycoon
tests/prepare.php
PHP
bsd-3-clause
2,061
# -*- coding: utf-8 -*- # /etl/database.py """Database module, including the SQLAlchemy database object and DB-related utilities.""" from sqlalchemy.orm import relationship from .compat import basestring from .extensions import db # Alias common SQLAlchemy names Column = db.Column relationship = relationship clas...
tomtom92/etl
etl/database.py
Python
bsd-3-clause
2,331
<?php namespace ZFDebug\Controller\Plugin\Debug\Plugin; interface PluginInterface { /** * Has to return html code for the menu tab * * @return string */ public function getTab(); /** * Has to return html code for the content panel * * @return string */ public fu...
vox-tecnologia/ZFDebug
src/ZFDebug/Controller/Plugin/Debug/Plugin/PluginInterface.php
PHP
bsd-3-clause
604
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "sky/engine/config.h" #include "sky/engine/core/dom/WeakNodeMap.h" #include "sky/engine/core/dom/Node.h" namespace blink { #if !ENABLE(OILPAN)...
collinjackson/mojo
sky/engine/core/dom/WeakNodeMap.cpp
C++
bsd-3-clause
2,804
# -*- coding: utf-8 -*- # Copyright (c) 2015, Vispy Development Team. # Distributed under the (new) BSD License. See LICENSE.txt for more info. from __future__ import division import re from ... import gloo class Compiler(object): """ Compiler is used to convert Function and Variable instances into rea...
hronoses/vispy
vispy/visuals/shaders/compiler.py
Python
bsd-3-clause
7,604
/*================================================================================ Copyright (c) 2008 VMware, Inc. All Rights Reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code...
mikem2005/vijava
src/com/vmware/vim25/mo/HostDatastoreBrowser.java
Java
bsd-3-clause
3,309
/** * echarts图表类:仪表盘 * * @desc echarts基于Canvas,纯Javascript图表库,提供直观,生动,可交互,可个性化定制的数据统计图表。 * @author Kener (@Kener-林峰, linzhifeng@baidu.com) * */ define(function (require) { var ComponentBase = require('../component/base'); var ChartBase = require('./base'); // 图形依赖 var GaugePointerShape = requ...
shaisxx/echarts
src/chart/gauge.js
JavaScript
bsd-3-clause
21,902
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.Serialization; namespace Kooboo.CMS.Content.Models { /// <summary> /// 可持久化的对象接口 /// /// </summary> public interface IPersistable { /// <summary> /// 是否为不完整对象 ///...
Epitomy/CMS
Kooboo.CMS/Kooboo.CMS.Content/Kooboo.CMS.Content/Models/IPersistable.cs
C#
bsd-3-clause
933
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model app\models\BspPerlanjutan */ $this->title = 'Update Bsp Perlanjutan: ' . ' ' . $model->bsp_perlanjutan_id; $this->params['breadcrumbs'][] = ['label' => 'Bsp Perlanjutans', 'url' => ['index']]; $this->params['breadcrumbs'][] = ['label' => $model...
hung101/kbs
frontend/views/BspPerlanjutan/update.php
PHP
bsd-3-clause
608
/*L * Copyright SAIC * Copyright SAIC-Frederick * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/camod/LICENSE.txt for details. */ /** * * $Id: RadiationAction.java,v 1.16 2008-08-14 16:55:34 pandyas Exp $ * * $Log: not supported by cvs2svn $ * Revision 1.15 2...
NCIP/camod
software/camod/src/gov/nih/nci/camod/webapp/action/RadiationAction.java
Java
bsd-3-clause
7,161
<?php namespace IntraLibrary\Service; use \IntraLibrary\IntraLibraryException; use \DOMDocument; use \DOMXPath; use \DOMNode; /** * IntraLibrary XML Response base class * * @package IntraLibrary_PHP * @author Janek Lasocki-Biczysko, <j.lasocki-biczysko@intrallect.com> */ abstract class XMLResponse { prote...
intrallect/intraLibrary-PHP
src/IntraLibrary/Service/XMLResponse.php
PHP
bsd-3-clause
2,807
<?php /* $Rev: 285 $ | $LastChangedBy: brieb $ $LastChangedDate: 2007-08-27 14:05:27 -0600 (Mon, 27 Aug 2007) $ +-------------------------------------------------------------------------+ | Copyright (c) 2004 - 2007, Kreotek LLC | | All rights reserved. ...
eandbsoftware/phpbms
modules/bms/tax_addedit.php
PHP
bsd-3-clause
4,359
import {IFormSelectElement, IFormSelectOptionGroup, IFormSelectOption} from '../form/elements/FormSelect'; import {FormElementType, IFormElement, IFormElementDesc} from '../form/interfaces'; import {ISelection} from '../base/interfaces'; import {IDType, IDTypeLike, IDTypeManager} from '../idtype'; import {BaseUtils} fr...
datavisyn/tdp_core
src/views/SelectionChooser.ts
TypeScript
bsd-3-clause
8,165
package com.gc.iotools.stream.os.inspection; /* * Copyright (c) 2008, 2014 Gabriele Contini. This source code is released * under the BSD License. */ import java.io.IOException; import java.io.OutputStream; import java.util.concurrent.TimeUnit; import com.gc.iotools.stream.utils.StreamUtils; /** * <p> * Gather ...
helderfpires/io-tools
easystream/src/main/java/com/gc/iotools/stream/os/inspection/StatsOutputStream.java
Java
bsd-3-clause
3,428
module SpreeSuppliers module Generators class InstallGenerator < Rails::Generators::Base include Rails::Generators::Migration def add_javascripts append_file "app/assets/javascripts/store/all.js", "//= require store/spree_suppliers\n" append_file "app/assets/javascripts/admin/all.js"...
johndavid400/spree_suppliers
lib/generators/spree_suppliers/install/install_generator.rb
Ruby
bsd-3-clause
1,110
/******************************************************************************* * 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. *************************************...
NCIP/caaers
caAERS/software/core/src/main/java/gov/nih/nci/cabig/caaers/validation/ValidationErrors.java
Java
bsd-3-clause
1,634
<?php namespace common\models; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; use common\models\Fund; /** * FundSearch represents the model behind the search form about `common\models\Fund`. */ class FundSearch extends Fund { /** * @inheritdoc */ public function rules() { ...
specialnote/myYii
common/models/FundSearch.php
PHP
bsd-3-clause
2,090
<?php namespace backend\controllers\settings; use Yii; use yii\filters\AccessControl; use yii\web\Controller; use yii\filters\VerbFilter; use backend\models\settings\Details; use yii\web\User; /** * Site controller */ class DetailsController extends Controller { /** * @inheritdoc */ public functio...
ocrm/crm
backend/controllers/settings/DetailsController.php
PHP
bsd-3-clause
1,893
<?php defined('SYSPATH') OR die('No direct access allowed.'); class Jam_Behavior_Promotable_Purchase extends Kohana_Jam_Behavior_Promotable_Purchase {}
OpenBuildings/promotions
classes/Jam/Behavior/Promotable/Purchase.php
PHP
bsd-3-clause
153
# 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. """Finds browsers that can be controlled by telemetry.""" import logging from telemetry import decorators from telemetry.internal.backends.chrome import an...
catapult-project/catapult-csm
telemetry/telemetry/internal/browser/browser_finder.py
Python
bsd-3-clause
6,167
<?php // module/SousRubrique/src/SousRubrique/Form/SousRubriqueForm.php: namespace Galerie\Form; use Zend\Form\Form; use Zend\Form\Element; use Rubrique\Model\RubriqueDao; use Contenu\Form\ContenuForm; /** * Class GalerieForm * @package Galerie\Form */ class GalerieForm extends ContenuForm { /** * @ret...
rongeb/anit_cms_for_zf3
module/Galerie/src/Form/GalerieForm.php
PHP
bsd-3-clause
1,872
import os from django.core.management.base import BaseCommand from django.conf import settings from fabtastic import db class Command(BaseCommand): args = '[<output_file_path>]' help = 'Dumps a SQL backup of your entire DB. Defaults to CWD.' def get_dump_path(self, db_alias): ...
duointeractive/django-fabtastic
fabtastic/management/commands/ft_dump_db.py
Python
bsd-3-clause
1,185
# -*- coding: utf-8 -*- import json import datetime from djangocms_text_ckeditor.cms_plugins import TextPlugin from djangocms_text_ckeditor.models import Text from django.contrib import admin from django.contrib.admin.models import LogEntry from django.contrib.admin.sites import site from django.contrib.auth import ge...
timgraham/django-cms
cms/tests/test_admin.py
Python
bsd-3-clause
63,904
package necromunda; import java.util.*; import com.jme3.material.Material; import com.jme3.scene.*; public class PathNode extends NecromundaNode { public PathNode(String name) { super(name); } public void setMaterial(Material material) { Spatial base = getChild("pathBoxGeometry"); base.setMaterial(materia...
Tibotanum/Necromunda
src/necromunda/PathNode.java
Java
bsd-3-clause
749
# Copyright (c) 2010-2012 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of the functiona...
lokeshjindal15/gem5_transform
configs/common/FSConfig.py
Python
bsd-3-clause
21,365
from tcp_ip_raw_socket import * def main(): fd = createSocket() pkt = buildPacket("10.1.1.2", "10.1.1.1", 54321, 80, "Hello, how are you?") try: print "Starting flood" while True: sendPacket(fd, pkt, "10.1.1.2") except KeyboardInterrupt: print "Closing..." if __name__ == "__main__": main()
Digoss/funny_python
syn_flood.py
Python
bsd-3-clause
310
// Copyright (c) 2014, Sailing Lab // 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 an...
zengjichuan/jetuum
src/petuum_ps_common/include/constants.hpp
C++
bsd-3-clause
1,709
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.1" language="el_GR"> <context> <name>XDGDesktopList</name> <message> <location filename="../../../core/libLumina/LuminaXDG.cpp" line="608"/> <source>Multimedia</source> <translation type="unfinished"></translation> <...
cpforbes/lumina
src-qt5/desktop-utils/lumina-calculator/i18n/l-calc_el.ts
TypeScript
bsd-3-clause
6,376
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/i18n/rtl.h" #include "base/files/file_path.h" #include "base/logging.h" #include "base/strings/string_util.h" #include "base/strings/s...
ChromiumWebApps/chromium
base/i18n/rtl.cc
C++
bsd-3-clause
13,232
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Diagnostics; using System.Reflection; namespace AppGene.Common.Entities.Infrastructure.Inferences { public class ReferencePropertyGetter { /// <summary> /// Gets the reference c...
snyang/AppGene
Development/AppGene/AppGene.Common.Entities.Infrastructure/Inferences/ReferencePropertyGetter.cs
C#
bsd-3-clause
2,191
<?php /** * [BEGIN_COT_EXT] * Hooks=page.add.tags, page.edit.tags * [END_COT_EXT] */ /** * plugin landingextrapage for Cotonti Siena * * @package landingextrapage * @version 1.0.0 * @author esclkm * @copyright * @license BSD * */ // Generated by Cotonti developer tool (littledev.ru) defined('COT_CODE...
esclkm/hod
plugins/landingextrapage/landingextrapage.page.add.tags.php
PHP
bsd-3-clause
568
<?php namespace backend\models; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; use common\models\Post; /** * PostSearch represents the model behind the search form about `common\models\Post`. */ class PostSearch extends Post { /** * @inheritdoc */ public function rules() { ...
rob94/BlogYii
backend/models/PostSearch.php
PHP
bsd-3-clause
2,100
<?php use yii\helpers\Html; use yii\grid\GridView; /* @var $this yii\web\View */ /* @var $searchModel backend\models\FilialSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = 'Филилы организаций'; $this->params['breadcrumbs'][] = $this->title; if (Yii::$app->user->can('manager')) $temp...
N1kolayS/PCExpert
backend/views/filial/index.php
PHP
bsd-3-clause
1,530
// 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 "ui/base/dragdrop/os_exchange_data_provider_win.h" #include <algorithm> #include <vector> #include "base/file_path.h" #include "base/i18n/f...
nacl-webkit/chrome_deps
ui/base/dragdrop/os_exchange_data_provider_win.cc
C++
bsd-3-clause
33,704
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model app\models\SentitemsSearch */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="sentitems-search"> <?php $form = ActiveForm::begin([ 'action' => ['index'], 'method' => 'get', ]); ?> ...
nmfzone/yiisms
views/sentitems/_search.php
PHP
bsd-3-clause
1,573