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
<?php namespace common\components\upload; use common\models\Attachment; use yii\base\Object; /** * This is the model class for class Attachment. * * @property integer name * @property string tempName * @property string type * @property integer size * @property string error * * * @property string baseName ...
DashaLadatko/Diplom
common/components/upload/File.php
PHP
bsd-3-clause
3,709
package main import ( "sync" "flag" "os" "io" "bufio" "path/filepath" "crypto/md5" "encoding/hex" ) type File struct { hash string path string } func readBytes(filename string, bytes int) []byte { // open input file fi, err := os.Open(filename) if err != nil { panic(err) } // close ...
hildensia/deduplicate
deduplicate.go
GO
bsd-3-clause
1,691
var express = require('express') var app = express() app.get('/', function (req, res) { res.send('Noumenaut') }) app.listen(3000)
talapus/Node
Demos/demoExpress.js
JavaScript
bsd-3-clause
134
package org.codehaus.waffle.taglib.form; import javax.servlet.jsp.JspException; import java.io.IOException; import java.io.Writer; /** * A button element for html files. Accepts a value which will be i18n. * * @author Guilherme Silveira * @author Nico Steppat */ public class ButtonTag extends FormElement { ...
codehaus/waffle
waffle-taglib/src/main/java/org/codehaus/waffle/taglib/form/ButtonTag.java
Java
bsd-3-clause
1,154
import md5 def _generate_verbose_key(prefix, klass, properties): return "%s:%s.%s(%s)" % (prefix, klass.__module__, klass.__name__, properties) def _generate_terse_key(prefix, klass, properties): compressed_hash = md5.new("%s.%s(%s)" % (klass.__module__, klass.__name__, properties)).hexdigest() return "%s...
mjpizz/stockpyle
stockpyle/_helpers.py
Python
bsd-3-clause
5,201
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2014, 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: // // * R...
chippey/gaffer
src/GafferSceneUI/SelectionTool.cpp
C++
bsd-3-clause
7,883
from __future__ import with_statement import sys from optparse import OptionParser, make_option as Option from pprint import pformat from textwrap import wrap from anyjson import deserialize from celery import __version__ from celery.app import app_or_default, current_app from celery.bin.base import Command as Cele...
WoLpH/celery
celery/bin/celeryctl.py
Python
bsd-3-clause
11,318
import { NativeModulesProxy } from 'expo-modules-core'; export default NativeModulesProxy.ExpoDocumentPicker; //# sourceMappingURL=ExpoDocumentPicker.js.map
exponentjs/exponent
packages/expo-document-picker/build/ExpoDocumentPicker.js
JavaScript
bsd-3-clause
156
import sys sys.path.append("..") from sympy import sqrt, symbols, eye w, x, y, z = symbols("wxyz") L = [x,y,z] V = eye(len(L)) for i in range(len(L)): for j in range(len(L)): V[i,j] = L[i]**j det = 1 for i in range(len(L)): det *= L[i]-L[i-1] print "matrix" print V print "det:" print V.det().expand() ...
certik/sympy-oldcore
examples/vandermonde.py
Python
bsd-3-clause
372
<div class="form"> <?php $form = $this->beginWidget('CActiveForm', array( 'id'=>'user-form', 'enableAjaxValidation'=>false)); ?> <div class="note"> <?php echo Yum::requiredFieldNote(); ?> <? $models = array($model, $passwordform); if(isset($profile) && $profile !== false) $models[] = $profile; echo CHtml::e...
stsoft/printable
protected/modules/user/views/user/_form.php
PHP
bsd-3-clause
1,959
// Copyright 2011 The 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 main import ( "bufio" "bytes" "container/heap" "debug/elf" "errors" "flag" "fmt" "go/build" "io" "io/ioutil" "log" "os" "os/exec" "path" ...
ganboing/go-esx
src/cmd/go/build.go
GO
bsd-3-clause
110,699
/* * Copyright (c) 2008-2014, Harald Walker (bitwalker.eu) and contributing developers * 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 abo...
onshape/user-agent-utils
src/main/java/eu/bitwalker/useragentutils/Browser.java
Java
bsd-3-clause
41,270
import React, { Component } from 'react'; import moment from 'moment'; import { filter, map, forEach } from 'lodash'; import { nextConnect } from '../../store'; import { getAttendees } from '../../actions'; class TicketTrackerDetails extends Component { constructor(props) { super(props); this.state = { sale...
parkerproject/conceptionarts
components/Dashboard/Ticket-tracker-details.js
JavaScript
bsd-3-clause
3,616
/* This file is a part of JustLogic product which is distributed under the BSD 3-clause "New" or "Revised" License Copyright (c) 2015. All rights reserved. Authors: Vladyslav Taranov. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the followin...
AqlaSolutions/JustLogic
Assets/JustLogicUnits/Actions/Branch/JLReturnScript.cs
C#
bsd-3-clause
1,988
<?php /** * This file is part of Redline, a lightweight web application engine for PHP. * Copyright (c) 2005-2009 Sean Kerr. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted * provided that the following conditions are met: * * * Redistribut...
seankerr/redline
www/index.php
PHP
bsd-3-clause
1,898
"use strict"; var Route = require("./Route"); /** * A route culture, which is grown into a complete route. * * @constructor * @private * @param {{}} chromosome The chromosome describing the culture. * @memberof everoute.travel.search */ function RouteIncubatorCulture(chromosome) { this.chromosome = chromosom...
dertseha/eve-route.js
src/travel/search/RouteIncubatorCulture.js
JavaScript
bsd-3-clause
1,553
# ~*~ coding: utf-8 ~*~ """ fleaker.config ~~~~~~~~~~~~~~ This module implements various utilities for configuring your Fleaker :class:`App`. :copyright: (c) 2016 by Croscon Consulting, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ import copy import importlib import os import types ...
croscon/fleaker
fleaker/config.py
Python
bsd-3-clause
14,203
/******************************************************************************* * 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: * * Red...
OBHITA/Consent2Share
DS4P/acs-showcase/c32-parser/src/main/java/gov/samhsa/consent2share/c32/UriResolverImpl.java
Java
bsd-3-clause
2,783
/* * libjingle * Copyright 2004 Google Inc. * * 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 and the fo...
dcpang/fatline-libjingle
session/media/channelmanager.cc
C++
bsd-3-clause
30,235
import React from 'react'; import Spinner from 'react-spinkit'; export default ({visible}) => { const spinner = ( <div className="loading-spinner"> <h1>LADDAR</h1> <Spinner name="wave" /> </div> ); return visible ? spinner : null; };
dtekcth/dfotose
src/client/components/LoadingSpinner.js
JavaScript
bsd-3-clause
264
<?php /** XML Parser Functions. See: {@link http://www.php.net/manual/en/ref.xml.php} @package xml */ define("XML_ERROR_ASYNC_ENTITY", 13); define("XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF", 16); define("XML_ERROR_BAD_CHAR_REF", 14); define("XML_ERROR_BINARY_ENTITY_REF", 15); define("XML_ERROR_DUPLICATE_ATTRIBUTE", 8...
zenus/thinkphpLint
modules/xml.php
PHP
bsd-3-clause
3,358
package com.noxlogic.joindin; /* * This is the main activity class. All activities in our application will extend * JIActivity instead of activity. This class supplies us with some additional * tools and options which need to be set for all activity screens (for instance, * the menu) */ import org.json....
derickr/Joind.in-android-app
source/src/com/noxlogic/joindin/JIActivity.java
Java
bsd-3-clause
5,195
<?php namespace Kino\Model; class Comment { public $commentID; public $imdbID; public $commentHeading; public $commentText; public $rating; public $created; public $ip; public function exchangeArray ($data) { $this->commentID = (! empty($data['commentID'])) ? $data['...
denikin/kinodb
module/Kino/src/Kino/Model/Comment.php
PHP
bsd-3-clause
842
<?php use yii\helpers\Html; use yii\grid\GridView; /* @var $this yii\web\View */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = 'Weathers'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="weather-index"> <h1><?= Html::encode($this->title) ?></h1> <p> <?= Html::a('...
NbDasH/jgsoo
views/weather/index.php
PHP
bsd-3-clause
715
#include "def_lang/impl/Poly_Type.h" #include "def_lang/impl/Poly_Value.h" #include "def_lang/IAttribute.h" #include "def_lang/ILiteral_Attribute.h" #include "def_lang/IStruct_Type.h" #include "def_lang/IString_Value.h" #include <deque> namespace ts { Poly_Type::Poly_Type(std::string const& name) : Symbol_EP(nam...
jeanleflambeur/silkopter
def_lang/src/ts/Poly_Type.cpp
C++
bsd-3-clause
5,151
module WpWrapper module Modules module Themes def activate_random_theme(ignore_themes: []) theme_links = get_theme_links(ignore_themes: ignore_themes) random_url = (theme_links && theme_links.any?) ? theme_links.sample : nil perform_activation...
Agiley/wp_wrapper
lib/wp_wrapper/modules/themes.rb
Ruby
bsd-3-clause
2,887
/* * [The "BSD license"] * Copyright (c) 2012 Terence Parr * Copyright (c) 2012 Sam Harwell * 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...
michaelpj/antlr4
tool/test/org/antlr/v4/test/TestFullContextParsing.java
Java
bsd-3-clause
12,779
/* * default_nernst_planck_boundary.hh * * Created on: Jan 17, 2012 * Author: jpods */ #ifndef DUNE_AX1_ACME2CYL_ES_NERNST_PLANCK_BOUNDARY_HH #define DUNE_AX1_ACME2CYL_ES_NERNST_PLANCK_BOUNDARY_HH #include <dune/pdelab/localoperator/convectiondiffusionparameter.hh> #include <dune/ax1/common/constants.hh> ...
pederpansen/dune-ax1
dune/ax1/acme2_cyl/configurations/ES/ES_nernst_planck_boundary.hh
C++
bsd-3-clause
7,501
# Copyright (c) 2011-2014 Berkeley Model United Nations. All rights reserved. # Use of this source code is governed by a BSD License (see LICENSE). from django.conf.urls import patterns, url urlpatterns = patterns('huxley.www.views', # Match any URL and let the client take care of routing. url(r'', 'index', n...
jmosky12/huxley
huxley/www/urls.py
Python
bsd-3-clause
336
/*@ buildName :: (firstName: string) => string */ /*@ buildName :: (firstName: string, lastName: string) => string */ function buildName(firstName: string, lastName?: string) { if (lastName) return firstName + " " + lastName; else return firstName; } let result1 = buildName("Bob"); ...
UCSD-PL/RefScript
tests/pos/misc/51-vararg.ts
TypeScript
bsd-3-clause
415
package config import ( "fmt" "github.com/stretchr/testify/assert" "os" "testing" "time" ) type Config struct { Some string `env:"somevar"` Other bool `env:"othervar"` Port int `env:"PORT"` NotAnEnv string DatabaseURL string `env:"DATABASE_URL" envDefault:"postgres://local...
geaviation/goboot
config/env_test.go
GO
bsd-3-clause
6,886
// 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/paint/ReplacedPainter.h" #include "core/layout/Layer.h" #include "core/layout/LayoutReplaced.h" #include "core/layout/...
CTSRD-SOAAP/chromium-42.0.2311.135
third_party/WebKit/Source/core/paint/ReplacedPainter.cpp
C++
bsd-3-clause
4,687
<?php namespace backend\controllers; use Yii; use backend\models\MirMaker; use backend\models\MirMakerSearch; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; /** * MirMakerController implements the CRUD actions for MirMaker model. */ class MirMakerController extends CommonCon...
hehekeke/mir_web
backend/controllers/MirMakerController.php
PHP
bsd-3-clause
3,216
#include <avr/interrupt.h> #include <interrupt/USART_RX.hpp> template <> callback_t USART_RXInterrupt::callback_ = nullptr;
rkojedzinszky/thermo-sensor
lib/atmega328p/interrupt/USART_RX_cb.cpp
C++
bsd-3-clause
125
<?php namespace Application\Entity\Repository; use Doctrine\ORM\EntityRepository; /** * UserRepository * * Repository class to extend Doctrine ORM functions with your own * using DQL language. More here http://mackstar.com/blog/2010/10/04/using-repositories-doctrine-2 * */ class ProjectRepository extends Enti...
bit-it-krayina/free2
module/Application/src/Application/Entity/Repository/ProjectRepository.php
PHP
bsd-3-clause
407
import font import screenshot import sys if __name__ == '__main__': f = font.Font() s = screenshot.Screenshot(sys.argv[1], f) print s.text #print s.colours #print s.get_coords_positions()
barneygale/mcocr
mcocr/__init__.py
Python
bsd-3-clause
209
""" PlexAPI Utils """ from datetime import datetime try: from urllib import quote # Python2 except ImportError: from urllib.parse import quote # Python3 NA = '__NA__' # Value not available class PlexPartialObject(object): """ Not all objects in the Plex listings return the complete list of el...
dodegy/python-plexapi
plexapi/utils.py
Python
bsd-3-clause
1,909
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model backend\models\MemberOrderProductSearch */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="member-order-product-search"> <?php $form = ActiveForm::begin([ 'action' => ['index'], 'method' =...
wiratama/rama-yii2
backend/views/member-order-product/_search.php
PHP
bsd-3-clause
762
/** * Created by anton on 25.08.16. */ $('#linkEditModalWindow').on('show.bs.modal', function(event){ HandleItem($(this), event, '/links/modal-add', '/links/modal-edit', '#link_form', '.links-table', function(response){ $('tr#link_'+response.id+'>.link-url').html(response.url); $('tr#link...
kalny/portfolio
web/js/links.js
JavaScript
bsd-3-clause
531
<?php /** * This file is part of the Zimbra API in PHP library. * * © Nguyen Van Nguyen <nguyennv1981@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Zimbra\Mail\Struct; use Zimbra\Struct\Base; /** * Calend...
malaleche/api-zimbra
src/Zimbra/Mail/Struct/CalendarAttach.php
PHP
bsd-3-clause
2,135
// // (C) Copyright 2003-2011 by Autodesk, Inc. // // Permission to use, copy, modify, and distribute this software in // object code form for any purpose and without fee is hereby granted, // provided that the above copyright notice appears in all copies and // that both that copyright notice and the limited warranty...
AMEE/revit
samples/Revit 2012 SDK/Samples/PathReinforcement/CS/Properties/AssemblyInfo.cs
C#
bsd-3-clause
2,348
<?php use yii\helpers\Html; use yii\grid\GridView; /* @var $this yii\web\View */ /* @var $searchModel app\models\ContrySearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = 'Countries'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="country-index"> <h1><?= Html::encode($th...
ehernandez-xk/yii-test
views/country/index.php
PHP
bsd-3-clause
845
package org.broadinstitute.hellbender.utils.read.markduplicates; import htsjdk.samtools.util.SortingCollection; import org.broadinstitute.hellbender.exceptions.GATKException; import java.io.*; /** Coded for ReadEnds that just outputs the primitive fields and reads them back. */ public class ReadEndsForMarkDuplicate...
tomwhite/hellbender
src/main/java/org/broadinstitute/hellbender/utils/read/markduplicates/ReadEndsForMarkDuplicatesCodec.java
Java
bsd-3-clause
3,411
<?php namespace common\models; use Yii; use dosamigos\google\maps\LatLng; use dosamigos\google\maps\overlays\InfoWindow; use dosamigos\google\maps\overlays\Marker; use dosamigos\google\maps\Map; use dosamigos\google\maps\overlays\Circle; /** * This is the model class for table "locations". * * @property string $id...
bokko79/servicemapp
common/models/Locations.php
PHP
bsd-3-clause
7,137
''' Copyright (c) OS-Networks, http://os-networks.net 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 following...
Knygar/hwios
services/web_ui/models/signal.py
Python
bsd-3-clause
3,723
<?php class ClassProperties { public $publicProperty; protected $protectedProperty; private $privateProperty; public $propertyWithDefault = 'non-empty'; public static $staticPropertyWithoutDefault; public static $staticPropertyWithDefault = 'non-empty'; }
console-helpers/code-insight
tests/CodeInsight/KnowledgeBase/DataCollector/fixtures/ClassDataCollector/ClassProperties.php
PHP
bsd-3-clause
269
<?php namespace backend\controllers; use Yii; use common\models\User; use common\models\SignupForm; use backend\models\UserSearch; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; /** * UserController implements the CRUD actions for User model. */ class UserController extends ...
sanjaykrsingh/vyom
backend/controllers/UserController.php
PHP
bsd-3-clause
3,362
<?php /** * TOP API: taobao.tmc.user.cancel request * * @author auto create * @since 1.0, 2015.05.17 */ class TmcUserCancelRequest { /** * 用户昵称,支持子账号 **/ private $nick; private $apiParas = array(); public function setNick($nick) { $this->nick = $nick; $this->apiParas["nick"] = $nick; } public...
Treeway/sandbox
common/tb/sdk/top/request/TmcUserCancelRequest.php
PHP
bsd-3-clause
737
/// <reference path="../scripts/typings/jquery/jquery.d.ts" /> declare interface webglUtils { /** * Creates a program from 2 script tags. * * @param {WebGLRenderingContext} gl The WebGLRenderingContext * to use. * @param {string[]} shaderScriptIds Array of ids of the script * ...
ichenjin/webgl-fundamentals
study/index.d.ts
TypeScript
bsd-3-clause
5,746
<?php defined('SYSPATH') or die('No direct script access.'); class Controller_Admin extends Controller_Template { // Making use of the home template view public $template = 'admin'; // This is the default entry point public function action_index() { // Prepare the page and send the detail...
drpain/walkie-talkie
application/classes/Controller/Admin.php
PHP
bsd-3-clause
14,886
require 'spec_helper' class Alchemy::Config; end describe Alchemy::Admin::LanguagesController do before(:each) do activate_authlogic Alchemy::UserSession.create FactoryGirl.create(:admin_user) end describe "new" do context "when default_language.page_layout is set" do it "should use it as p...
masche842/alchemy_cms
spec/controllers/admin/languages_controller_spec.rb
Ruby
bsd-3-clause
790
#if 0 // Disabled until updated to use current API. // Copyright 2019 Google LLC. // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. #include "fiddle/examples.h" // HASH=4468d573f42af6f5e234be10a5453bb2 REG_FIDDLE(Image_colorSpace, 256, 256, false, 3) { void draw(SkCan...
rubenvb/skia
docs/examples/Image_colorSpace.cpp
C++
bsd-3-clause
1,084
// 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/webui/md_downloads/md_downloads_dom_handler.h" #include <algorithm> #include <functional> #include "base/basictypes.h" #...
Workday/OpenFrame
chrome/browser/ui/webui/md_downloads/md_downloads_dom_handler.cc
C++
bsd-3-clause
13,408
<?php $this->breadcrumbs=array( 'News'=>array('index'), 'Manage', ); $this->menu=array( array('label'=>'List News','url'=>array('index')), array('label'=>'Create News','url'=>array('create')), ); Yii::app()->clientScript->registerScript('search', " $('.search-button').click(function(){ $('.search-form').toggle()...
Arsen007/viven-gallery-yii
application/views/news/admin.php
PHP
bsd-3-clause
1,257
<?php use yii\helpers\Html; use yii\grid\GridView; /* @var $this yii\web\View */ /* @var $searchModel app\modules\risk\models\ClinicsSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = 'Clinics'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="clinics-index"> <h1><?= Html...
inamjung/Yiiproject
modules/risk/views/clinics/index.php
PHP
bsd-3-clause
827
package com.ra4king.opengl.superbible.osb5.chapter2.example3; import static org.lwjgl.opengl.GL11.*; import static org.lwjgl.opengl.GL15.*; import static org.lwjgl.opengl.GL20.*; import java.nio.FloatBuffer; import org.lwjgl.BufferUtils; import com.ra4king.opengl.GLProgram; import com.ra4king.opengl.util...
ra4king/LWJGL-OpenGL-Tutorials
src/com/ra4king/opengl/superbible/osb5/chapter2/example3/Example2_3.java
Java
bsd-3-clause
2,595
from django.contrib.localflavor.in_.forms import (INZipCodeField, INStateField, INStateSelect, INPhoneNumberField) from utils import LocalFlavorTestCase class INLocalFlavorTests(LocalFlavorTestCase): def test_INPhoneNumberField(self): error_format = [u'Phone numbers must be in 02X-8X or 03X-7X or 04...
disqus/django-old
tests/regressiontests/forms/localflavor/in_.py
Python
bsd-3-clause
5,631
<?php namespace backend\models; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; use backend\models\SchoolConditions; /** * SchoolConditionsSearch represents the model behind the search form about `backend\models\SchoolConditions`. */ class SchoolConditionsSearch extends SchoolConditions { /** ...
robert-mill/cover
backend/models/SchoolConditionsSearch.php
PHP
bsd-3-clause
1,744
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model common\models\CalendarEvent */ $this->title = Yii::t('app', 'Update {modelClass}: ', [ 'modelClass' => 'Calendar Event', ]) . ' ' . $model->name; $this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Calendar Events'), 'url' => ['inde...
EQ-Port/site-2.0
backend/views/calendar-event/update.php
PHP
bsd-3-clause
649
// 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 "chrome/browser/ui/views/toolbar/toolbar_view.h" #include <algorithm> #include "base/command_line.h" #include "base/i18n/number_formatting.h" #...
ltilve/chromium
chrome/browser/ui/views/toolbar/toolbar_view.cc
C++
bsd-3-clause
29,000
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty o...
rfloca/MITK
Modules/OpenCVVideoSupport/Commands/mitkBasicCombinationOpenCVImageFilter.cpp
C++
bsd-3-clause
1,713
<?php /* @var $this ProductAttributesController */ /* @var $model ProductAttributes */ /* @var $form CActiveForm */ ?> <div class="wide form"> <?php $form=$this->beginWidget('CActiveForm', array( 'action'=>Yii::app()->createUrl($this->route), 'method'=>'get', )); ?> <div class="row"> <?php echo $form->label($mo...
Arsen007/viven-gallery-yii
application/modules/admin/views/productAttributes/_search.php
PHP
bsd-3-clause
845
<?php /** * Apply the spam protection to the comments module if it is installed * * @package spamprotection */ class CommentSpamProtection extends Extension { /** * Disable the AJAX commenting and update the form * with the {@link SpamProtectorField} which is enabled */ function alterCommentForm(&$form)...
comperio/comperio-site
spamprotection/code/extensions/CommentSpamProtection.php
PHP
bsd-3-clause
513
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model app\models\AffiliatedTruck */ $this->title = 'เพิ่มข้อมูลรถ'; $this->params['breadcrumbs'][] = ['label' => 'รถบรรทุก', 'url' => ['affiliated/view', 'id' => $id]]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="box box-primary"> ...
kimniyom/transport
views/affiliated-truck/create.php
PHP
bsd-3-clause
587
<?php use kartik\detail\DetailView; use kartik\grid\GridView; use yii\data\ActiveDataProvider; /* @var $this yii\web\View */ /* @var $model app\modules\produksi\models\Proses2 */ ?> <div class="proses2-view"> <?= DetailView::widget([ 'model' => $model, 'condensed'=>true, 'hove...
saddamalmahali/gmimanajemen
backend/modules/produksi/views/proses-2/view.php
PHP
bsd-3-clause
3,550
// 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/chromeos/gdata/gdata_util.h" #include <string> #include <vector> #include <utility> #include "base/basictypes.h" #include "...
robclark/chromium
chrome/browser/chromeos/gdata/gdata_util.cc
C++
bsd-3-clause
12,210
/** * MOTECH PLATFORM OPENSOURCE LICENSE AGREEMENT * * Copyright (c) 2010-11 The Trustees of Columbia University in the City of * New York and Grameen Foundation USA. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that th...
motech/MOTECH-Mobile
motech-mobile-omp/src/test/java/org/motechproject/mobile/omp/manager/intellivr/IVRCallStatsProviderTest.java
Java
bsd-3-clause
36,006
/****************************************************************************** * Copyright (c) 2009-2016, Barthelemy Dagenais and individual contributors. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditi...
jonahkichwacoders/py4j
py4j-java/src/test/java/py4j/examples/InterfaceB.java
Java
bsd-3-clause
1,794
<?php class gnuplot { public static $RANGE_START = "START"; public static $RANGE_END = "END"; public static $TEXT_ROTATE_TRUE = "rotate"; public static $TEXT_ROTATE_FALSE = "norotate"; private $property = array(); public function __construct() { $this->init(); } ...
jcu-eresearch/TDH-Tools
Utilities/gnuplot.class.php
PHP
bsd-3-clause
13,155
<?php namespace backend\controllers; use Yii; use common\models\Locations; use common\models\SearchLocations; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; class LocationsController extends Controller { public function behaviors() { return [ 'verb...
alaevka/olam
backend/controllers/LocationsController.php
PHP
bsd-3-clause
7,853
/*================================================================================ Copyright (c) 2012 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...
xebialabs/vijava
src/com/vmware/vim25/GuestOsDescriptorSupportLevel.java
Java
bsd-3-clause
2,126
class Instance < ActiveRecord::Base has_many :user_instances, :conditions => "active = 1" has_many :squares has_many :events has_many :deeds has_one :setting end
jwhitmire/llor-nu-legacy
app/models/instance.rb
Ruby
bsd-3-clause
174
# vim:ts=4:sw=4:expandtab """A mongodb client library for Diesel""" # needed to make diesel work with python 2.5 from __future__ import with_statement import itertools import struct from collections import deque from diesel import Client, call, sleep, send, receive, first, Loop, Application, ConnectionClosed from bso...
dieseldev/diesel
diesel/protocols/mongodb.py
Python
bsd-3-clause
11,619
#region Copyright //+ Copyright © David Betz 2007-2017 #endregion using System.Collections; namespace Nalarium { public class Int32StringMap : Map<int, string> { //- @Ctor -// /// <summary> /// Initializes a new instance of the <see cref="Int32StringMap" /> class. /// </s...
davidbetz/nalarium
Nalarium/Int32StringMap.cs
C#
bsd-3-clause
4,849
namespace Thinktecture.IdentityServer.Web.ViewModels { using System.ComponentModel.DataAnnotations; public class SetupAccountModel : SignInModel { public SetupAccountModel () { } public SetupAccountModel (SignInModel signInModel) { UserName...
OBHITA/PROCenter
IdentityServer/src/OnPremise/WebSite/ViewModels/SetupAccountModel.cs
C#
bsd-3-clause
1,059
/*L * Copyright SAIC * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/caimage/LICENSE.txt for details. */ /** * * $Id: NewDropdownUtil.java,v 1.61 2009-05-28 18:49:31 pandyas Exp $ * * $Log: not supported by cvs2svn $ * Revision 1.60 2009/03/13 15:02:04...
NCIP/caimage
src/gov/nih/nci/caIMAGE/util/NewDropdownUtil.java
Java
bsd-3-clause
21,978
// 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/prerender/prerender_tab_helper.h" #include "base/metrics/histogram.h" #include "base/string_number_conversions.h" #include "...
robclark/chromium
chrome/browser/prerender/prerender_tab_helper.cc
C++
bsd-3-clause
9,431
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-10-24 16:13 from __future__ import unicode_literals from django.db import migrations, models def add_questions(apps, schema_editor): current_database = schema_editor.connection.alias QuestionSubmodels = [ apps.get_model('wizard_builder.Sing...
SexualHealthInnovations/django-wizard-builder
wizard_builder/migrations/0029_populate_type.py
Python
bsd-3-clause
983
package main import ( "flag" "log" "os" "time" "bottle/debug" "bottle/shutil" ) // TODO: Better panic error output (maybe defer shutil.RescueExit()?) func init() { // TODO: Add as a "main" command-line flag? (possibly secret...) debug.ShouldTimeFunctions = false } func main() { defer debug.TimedFunction(t...
gobottle/bottle
src/main.go
GO
bsd-3-clause
4,648
// Demonstration of a single-threaded client #include <cstdio> #include <boost/lexical_cast.hpp> #include "randexample/randexample.pb.h" #include "client.hpp" int main(int argc, char **argv) { if (argc != 3) { printf ("usage: %s <nMessage> <nSample>\n", "cmdclient"); return 1; } int nMessage = boost::le...
npalko/uRPC
examples/cpp/cmdclient.cpp
C++
bsd-3-clause
959
# -*- coding: utf-8 -*- from __future__ import absolute_import from django.core.urlresolvers import reverse from django.test.client import RequestFactory from tests.apidocs.util import APIDocsTestCase class OrganizationStatsDocs(APIDocsTestCase): def setUp(self): self.create_event("a", message="oh no")...
beeftornado/sentry
tests/apidocs/endpoints/organizations/test-org-stats.py
Python
bsd-3-clause
716
# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Fabian Pedregosa <fabian.pedregosa@inria.fr> # Olivier Grisel <olivier.grisel@ensta.org> # Gael Varoquaux <gael.varoquaux@inria.fr> # # License: BSD Style. import sys import warnings import itertools import operator from abc import AB...
mrshu/scikit-learn
sklearn/linear_model/coordinate_descent.py
Python
bsd-3-clause
44,980
import pandas as pd import numpy as np import pyaf.ForecastEngine as autof import pyaf.Bench.TS_datasets as tsds #get_ipython().magic('matplotlib inline') lValues = [ k for k in range(2,24, 4)]; # lValues = lValues + [ k for k in range(24, 128, 8)]; for cyc in lValues: print("TEST_CYCLES_START", cyc) b1 = ...
antoinecarme/pyaf
tests/perf/test_cycles_full_long.py
Python
bsd-3-clause
1,473
#coding:utf-8 from PyQt4 import QtGui #from PyQt4 import QtCore from libblah.consts import ABOUT_MSG, ABOUT_TITLE from ui.ui_verification_dialog import Ui_VerificationDialog def popup_confirm(parent, msg = None): reply = QtGui.QMessageBox.question(parent, u"提示", msg, QtGui.QMess...
williamyangcn/iBlah_py
libiblah/popup_dlgs.py
Python
bsd-3-clause
1,614
<?php /* @var $this yii\web\View */ use yii\helpers\Html; use yii\widgets\LinkPager; use yii\helpers\Url; ?> <section id="advertisement"> <div class="container"> <img src="/images/shop/1.jpg" alt="" /> </div> </section> <section> <div class="container"> <div class="row"> <div class="col-sm-3"> <d...
RuslanKozin/yii2-int.mag
views/category/view.php
PHP
bsd-3-clause
4,734
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model app\models\Users */ $this->title = '添加学员'; $this->params['breadcrumbs'][] = ['label' => '学员管理', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="users-create"> <h1><?= Html::encode($this->title) ?></h1> ...
hanxiao84322/coach_system
views/admin/users/create.php
PHP
bsd-3-clause
414
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
ericmjl/bokeh
bokeh/embed/bundle.py
Python
bsd-3-clause
12,481
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.coderedrobotics.tiberius.libs.dash; import java.util.Vector; /** * * @author laptop */ public interface SRAListener { public void alertToSRAUpdates(); }
CodeRed2771/Tiberius2014
src/com/coderedrobotics/tiberius/libs/dash/SRAListener.java
Java
bsd-3-clause
274
"use strict"; var JumpGateTravelCapability = require("./JumpGateTravelCapability"); /** * This namespace contains helper regarding the jump gate travel capability. * * @namespace jumpGate * @memberof everoute.travel.capabilities */ /** * The type identification for the jumps: "jumpGate". * * @type {String} ...
dertseha/eve-route.js
src/travel/capabilities/jumpGate/index.js
JavaScript
bsd-3-clause
537
<?php namespace app\modules\admin\controllers; use Yii; use app\models\Article; use app\models\ArticleSearch; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; /** * ArticleController implements the CRUD actions for Article model. */ class ArticleController extends BaseController { public function...
w1nsun/content-analyzer
modules/admin/controllers/ArticleController.php
PHP
bsd-3-clause
3,088
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2007-2013, 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/IECore/Primitive.cpp
C++
bsd-3-clause
9,664
package org.broadinstitute.hellbender.tools.exome.alleliccount; import org.broadinstitute.hellbender.tools.exome.alleliccount.AllelicCountTableColumn.AllelicCountTableVerbosity; import org.broadinstitute.hellbender.utils.tsv.DataLine; import org.broadinstitute.hellbender.utils.tsv.TableWriter; import java.io.File; im...
broadinstitute/gatk-protected
src/main/java/org/broadinstitute/hellbender/tools/exome/alleliccount/AllelicCountWithPhasePosteriorsWriter.java
Java
bsd-3-clause
1,776
/* Copyright (c) 2015, Daniel C. Dillon * 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 condi...
dcdillon/dqtx
dqtx/src/QIconTheme.cpp
C++
bsd-3-clause
3,056
<?php /** * Common formatter class for console output. * * PHP version 5 * * @category PHP * @package PHP_Reflect * @author Laurent Laville <pear@laurent-laville.org> * @license http://www.opensource.org/licenses/bsd-license.php BSD License * @version GIT: $Id$ * @link http://php5.laurent-laville.or...
remicollet/php-reflect
src/Bartlett/Reflect/Console/Formatter/OutputFormatter.php
PHP
bsd-3-clause
2,246
<?php namespace common\models\base; use Yii; /** * This is the model class for table "blood_group". * * @property integer $ID * @property string $Name * @property string $created_on * @property string $modified_on */ class baseBloodGroup extends \yii\db\ActiveRecord { /** * @inheritdoc */ pu...
shibam2015/KandePohe
common/models/base/baseBloodGroup.php
PHP
bsd-3-clause
923
<?php /** * @copyright Frederic G. Østby * @license http://www.makoframework.com/license */ namespace mako\cache\stores; use Memcached as PHPMemcached; use mako\cache\stores\IncrementDecrementInterface; use mako\cache\stores\Store; /** * Memcached store. * * @author Frederic G. Østby */ class Memcached ex...
letr0n/framework
src/mako/cache/stores/Memcached.php
PHP
bsd-3-clause
2,685
/* -- MAGMA (version 1.5.0-beta3) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver November 2011 @precisions normal z -> c d s @author Hartwig Anzt */ // includes, system #include <stdlib.h> #include <stdio.h> #include <string.h> #i...
EmergentOrder/magma
sparse-iter/testing/run_zlobpcg.cpp
C++
bsd-3-clause
4,817
// Copyright 2015 The Vanadium 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 watchable import ( "sync" "v.io/x/ref/services/syncbase/common" "v.io/x/ref/services/syncbase/store" ) // stream streams keys and values for...
vanadium/go.ref
services/syncbase/store/watchable/stream.go
GO
bsd-3-clause
2,169
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace OnlinePC { public partial class CallBack : System.Web.UI.Page { /// <summary> /// 接收易宝支付回调示例 /// </summa...
hiihellox10/ICanPay
ICanPay/Doc/易宝(YeePay)/C#/OnlinePC/OnlinePC/CallBack.aspx.cs
C#
bsd-3-clause
744
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/accessibility/ax_event_generator.h" #include "testing/gmock/include/gmock/gmock-matchers.h" #include "testing/gmock/include/gmock/gmock.h" #...
endlessm/chromium-browser
ui/accessibility/ax_event_generator_unittest.cc
C++
bsd-3-clause
56,678