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
# -*- coding: utf-8 -*- """ ulmo.ncdc.ghcn_daily.core ~~~~~~~~~~~~~~~~~~~~~~~~~ This module provides direct access to `National Climatic Data Center`_ `Global Historical Climate Network - Daily`_ dataset. .. _National Climatic Data Center: http://www.ncdc.noaa.gov .. _Global Historical Climat...
timcera/tsgettoolbox
src/tsgettoolbox/ulmo/ncdc/ghcn_daily/core.py
Python
bsd-3-clause
9,898
using System.Linq; using FatturaElettronica.Ordinaria.FatturaElettronicaBody; using FatturaElettronica.Ordinaria.FatturaElettronicaBody.DatiBeniServizi; using FatturaElettronica.Ordinaria.FatturaElettronicaBody.DatiGenerali; using FatturaElettronica.Common; using FluentValidation.TestHelper; using Tests; using Microso...
FatturaElettronicaPA/FatturaElettronicaPA
Test/Ordinaria/FatturaElettronicaBodyValidator.cs
C#
bsd-3-clause
4,718
<?php namespace backend\controllers; use Yii; use common\models\Categories; use common\models\CategoriesSearch; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; /** * Created By Roopan v v <yiioverflow@gmail.com> * Date : 24-04-2015 * Time :3:00 PM * CategoriesController imp...
hostkerala/yii2-test
backend/controllers/CategoriesController.php
PHP
bsd-3-clause
3,237
// 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
import unittest from sympy import sympify from nineml.abstraction import ( Dynamics, AnalogSendPort, Alias, AnalogReceivePort, AnalogReducePort, Regime, On, OutputEvent, EventReceivePort, Constant, StateVariable, Parameter, OnCondition, OnEvent, Trigger) import nineml.units as un from nineml.exceptions ...
INCF/lib9ML
test/unittests/abstraction_test/dynamics_test.py
Python
bsd-3-clause
37,676
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
using System; using System.Collections.Generic; using System.Linq; using System.Text; using NUnit.Framework; using NServiceKit.DataAnnotations; using NServiceKit.DesignPatterns.Model; namespace NServiceKit.OrmLite.MySql.Tests { /// <summary>A date time column test.</summary> [TestFixture] public class Dat...
NServiceKit/NServiceKit.OrmLite
src/NServiceKit.OrmLite.MySql.Tests/DateTimeColumnTest.cs
C#
bsd-3-clause
3,031
#ifdef STAN_OPENCL #include <stan/math/opencl/rev.hpp> #include <stan/math.hpp> #include <gtest/gtest.h> #include <test/unit/math/opencl/util.hpp> #include <vector> TEST(ProbDistributionsDoubleExponential, error_checking) { int N = 3; Eigen::VectorXd y(N); y << -0.3, 0.8, 1.5; Eigen::VectorXd y_size(N - 1); ...
stan-dev/math
test/unit/math/opencl/rev/double_exponential_lpdf_test.cpp
C++
bsd-3-clause
6,853
<?php $I = new AcceptanceTester\AccountSteps($scenario); $I->wantTo('log in using an existing account and see the result'); $I->amOnPage(\LoginPage::$URL); $I->login('demo', 'demo1234'); $I->dontSee('Incorrect username or password.');
nordsoftware/yii2-account
tests/codeception/acceptance/02-LoginCept.php
PHP
bsd-3-clause
235
<?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
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Linq; using System.Xml.XPath; namespace JeremyClifton.Data.TestAutomator { public class TestResult { private XElement _data; public XElement Data { get { return _data; } ...
jeremyclifton/sitecore-testing-automator
Data/TestAutomator/TestResult.cs
C#
bsd-3-clause
1,373
<?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
<?php include __DIR__.'/includes.php'; include __DIR__.'/../../src/core/classes/Controller.php'; use PHPUnit\Framework\TestCase; use Gila\Router; use Gila\Request; class RequestTest extends TestCase { public function test_validate() { $_POST = [ 'one'=>1, 'two'=>'two', ]; $data = Request:...
GilaCMS/gila
tests/phpunit/RequestTest.php
PHP
bsd-3-clause
467
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
/* * Copyright (c) 2016, Oracle and/or its affiliates. * * 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 ...
grimmerm/sulong
projects/com.oracle.truffle.llvm.test/src/com/oracle/truffle/llvm/test/TestSuiteBase.java
Java
bsd-3-clause
13,256
<? //---------------------- //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
# -*- coding: utf-8 -*- import os from time import sleep import nipype.interfaces.base as nib import pytest import nipype.pipeline.engine as pe from nipype.pipeline.plugins.somaflow import soma_not_loaded class InputSpec(nib.TraitedSpec): input1 = nib.traits.Int(desc='a random int') input2 = nib.traits.Int(...
mick-d/nipype
nipype/pipeline/plugins/tests/test_somaflow.py
Python
bsd-3-clause
1,509
// 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
/** * Pimcore * * 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://www.pimcore.org/license * * @copyright Copyright (c) 2009-2010 elements.at New Media Solutions ...
clime/pimcore-custom
static/js/pimcore/object/tags/checkbox.js
JavaScript
bsd-3-clause
2,339
<?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
# -*- coding: utf-8 -*- # # Copyright (C) 2007-2009 Christopher Lenz # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. from datetime import datetime import doctest import os import os.path import shutil from StringIO im...
ryanolson/couchdb-python
couchdb/tests/client.py
Python
bsd-3-clause
26,584
#!/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
from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ class StaticgenAppConfig(AppConfig): name = 'staticgen' verbose_name = _('StaticGen')
mishbahr/django-staticgen
staticgen/apps.py
Python
bsd-3-clause
186
// 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
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
OstapHEP/ostap
docs/conf.py
Python
bsd-3-clause
2,147
"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
from .store import ( Command, Store, RemoteStore, PubSub, PubSubClient, parse_store_url, create_store, register_store, data_stores, NoSuchStore ) from .channels import Channels from . import redis # noqa from .pulsards.startds import start_store __all__ = [ 'Command', 'Store', 'RemoteStore...
quantmind/pulsar
pulsar/apps/data/__init__.py
Python
bsd-3-clause
496
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
# -*- coding:utf-8 -*- from __future__ import ( absolute_import, division, print_function, unicode_literals ) from unittest import mock, skipIf import django import pytest from django.core.management import CommandError, call_command from django.db.utils import ConnectionHandler from django.test import SimpleTest...
nickmeharry/django-mysql
tests/testapp/management/commands/test_dbparams.py
Python
bsd-3-clause
3,738
<?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
# -*- coding: utf-8 -*- """ Django settings for djangocali-portal project. For more information on this file, see https://docs.djangoproject.com/en/dev/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/dev/ref/settings/ """ from __future__ import absolute_import, u...
Swappsco/portal
config/settings/common.py
Python
bsd-3-clause
9,483
// 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
package unit; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.hasSize; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.j...
DataBiosphere/terra-cli
src/test/java/unit/CloneWorkspace.java
Java
bsd-3-clause
10,217
<?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
webpack = require('webpack') const path = require('path'); var CompressionPlugin = require("compression-webpack-plugin"); module.exports = { context: __dirname + '/source', entry: { javascript: './application.js', html: './index.html' }, loader: { appSettings: { env:...
phorque/ac2-frontend
webpack-prod.config.js
JavaScript
bsd-3-clause
2,933
/*================================================================================ 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
// 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 "base/test/launcher/test_launcher.h" #if defined(OS_POSIX) #include <fcntl.h> #endif #include "base/at_exit.h" #include "base/bind.h" #include ...
chromium2014/src
base/test/launcher/test_launcher.cc
C++
bsd-3-clause
35,866
<?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