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
require 'test_helper' class DevelopmentValidationTest < ActiveSupport::TestCase test 'requires housing units and commercial square feet' do d.tothu = d.commsf = nil refute d.valid? d.tothu = d.commsf = 0 assert d.valid?, d.errors.full_messages end test 'requires extra housing information' do ...
MAPC/developmentdatabase
test/models/development_validation_test.rb
Ruby
bsd-3-clause
2,638
$(document).ready(function() { // function loadStratumEntryTable() { // var createStratumBtn = document.querySelector('button[data-bind="click: createStratum"]'); // console.log(createStratumBtn); // if (createStratumBtn) { // createStratumBtn.click(); // window.clearTimeout(); // } else {...
Ecotrust/forestplanner
lot/discovery/static/discovery/js/strata.js
JavaScript
bsd-3-clause
2,461
using System.Collections.Generic; using System.Linq; using NUnit.Framework; using NServiceKit.Common.Tests.Models; namespace NServiceKit.OrmLite.Tests { /// <summary>An ORM lite basic persistence provider tests.</summary> [TestFixture] public class OrmLiteBasicPersistenceProviderTests : OrmLiteTestBase { ...
NServiceKit/NServiceKit.OrmLite
tests/NServiceKit.OrmLite.Tests/OrmLiteBasicPersistenceProviderTests.cs
C#
bsd-3-clause
3,399
define(["avalon","domReady!","mmRequest","text!./login.html"], function(avalon, domReady,mmRequest,login) { avalon.templateCache.login = login var loginVm = avalon.define({ $id: "login", loginCheck: function(){ window.location="/admin.html" } }) avalon.vmodels.root...
michaelwang/study
avalon/practice/avalon-test-ui/modules/login/login.js
JavaScript
bsd-3-clause
339
/******************************************************************************* * 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.view.bookmark/src/org/caleydo/view/bookmark/GLBookmarkView.java
Java
bsd-3-clause
10,629
<?php use common\models\Device; use yii\helpers\Html; use kartik\grid\GridView; use yii\widgets\Pjax; /** * @var yii\web\View $this * @var yii\data\ActiveDataProvider $dataProvider * @var common\models\search\Device $searchModel */ ?> <div class="device-index"> <?php Pjax::begin(); echo GridView::widget([ ...
devleaks/gip
backend/modules/coreengine/views/group/_list.php
PHP
bsd-3-clause
822
/** * Copyright (c) 2008-2016, Massachusetts Institute of Technology (MIT) * 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 copyri...
hadrsystems/nics-common
rabbitmq-client/src/main/java/edu/mit/ll/nics/common/rabbitmq/RabbitFactory.java
Java
bsd-3-clause
3,225
<?php class AnsController extends Controller { public function actionIndex() { $this->render('index'); } }
Gerasin/https-github.com-ninetor-lsga
protected/controllers/AnsController.php
PHP
bsd-3-clause
129
// // Copyright (c) 2004-2016 Jaroslaw Kowalski <jaak@jkowalski.net>, Kim Christensen, Julian Verdurmen // // 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 s...
littlesmilelove/NLog
src/NLog/Config/LoggingConfiguration.cs
C#
bsd-3-clause
22,236
<?php namespace common\models; use Yii; /** * This is the model class for table "{{%hanzi_hyyt_add}}". * * @property string $id * @property integer $page * @property integer $num * @property integer $type2 * @property string $tong_word2 * @property string $zhushi2 */ class HanziHyytAdd extends \yii\db\Activ...
gwisdomroof/hanzi
common/models/HanziHyytAdd.php
PHP
bsd-3-clause
1,130
/************************************************************************************** * Copyright (c) 2013-2015, Finnish Social Science Data Archive/University of Tampere * * * * All rights reserved. ...
Tietoarkisto/metka
metka/src/main/java/fi/uta/fsd/metka/storage/entity/RevisionEntity.java
Java
bsd-3-clause
5,743
from __future__ import absolute_import import mock import os from django.conf import settings TEST_ROOT = os.path.normpath( os.path.join( os.path.dirname(__file__), os.pardir, os.pardir, os.pardir, os.pardir, 'tests')) def pytest_configure(config): # HACK: On...
ifduyue/sentry
src/sentry/utils/pytest/sentry.py
Python
bsd-3-clause
8,317
from __future__ import unicode_literals import os import json from functools import wraps from datetime import datetime, date from contextlib import contextmanager from threading import RLock, Condition, current_thread from collections import Sized, Iterable, Mapping, defaultdict def is_listy(x): """ returns ...
RobRuana/sideboard
sideboard/lib/_utils.py
Python
bsd-3-clause
9,665
# -*- coding: utf-8 -*- __author__ = 'Michael Ingrisch' __email__ = 'michael.ingrisch@gmail.com' __version__ = '0.1.0'
michimichi/compartmentmodels
compartmentmodels/__init__.py
Python
bsd-3-clause
119
package io.burt.jmespath.function; import java.util.List; import io.burt.jmespath.Adapter; import io.burt.jmespath.JmesPathType; public class EndsWithFunction extends BaseFunction { public EndsWithFunction() { super( ArgumentConstraints.typeOf(JmesPathType.STRING), ArgumentConstraints.typeOf(JmesPa...
burtcorp/jmespath-java
jmespath-core/src/main/java/io/burt/jmespath/function/EndsWithFunction.java
Java
bsd-3-clause
634
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "PolyTrend", cycle_length = 5, transform = "Anscombe", sigma = 0.0, exog_count = 20, ar_order = 12);
antoinecarme/pyaf
tests/artificial/transf_Anscombe/trend_PolyTrend/cycle_5/ar_12/test_artificial_1024_Anscombe_PolyTrend_5_12_20.py
Python
bsd-3-clause
265
/* * Copyright (c) 2010, 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 conditi...
was4444/chromium.src
third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
C++
bsd-3-clause
37,512
// Copyright 2015 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/gcm_driver/instance_id/instance_id.h" namespace instance_id { InstanceID::InstanceID(const std::string& app_id, ...
was4444/chromium.src
components/gcm_driver/instance_id/instance_id.cc
C++
bsd-3-clause
756
/** * Copyright (c) 2004-2005, Regents of the University of California * 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 ...
minf/avrora
src/avrora/syntax/objdump/ObjDumpReformatter.java
Java
bsd-3-clause
7,812
using System.Collections.Generic; using System.IO; namespace Coevery.Commands { public class CommandParameters { public IEnumerable<string> Arguments { get; set; } public IDictionary<string, string> Switches { get; set; } public TextReader Input { get; set; } public TextWriter Out...
Coevery/Coevery-Framework
src/Coevery/Commands/CommandParameters.cs
C#
bsd-3-clause
348
<?php /** * @link https://cms.skeeks.com/ * @copyright Copyright (c) 2010 SkeekS * @license https://cms.skeeks.com/license/ * @author Semenov Alexander <semenov@skeeks.com> */ /* @var $this yii\web\View */ /* @var $helper \skeeks\cms\shop\helpers\ShopOfferChooseHelper */ ?> <? $this->registerCss(<<<CSS .sx-choose...
skeeks-cms/cms-shop
src/views/helpers/shop-offer-choose-dropdown.php
PHP
bsd-3-clause
5,355
""" Module parse to/from Excel """ # --------------------------------------------------------------------- # ExcelFile class import abc from datetime import date, datetime, time, timedelta from distutils.version import LooseVersion from io import UnsupportedOperation import os from textwrap import fill import warnings...
GuessWhoSamFoo/pandas
pandas/io/excel.py
Python
bsd-3-clause
66,902
#!/usr/bin/env python # 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. """Runs hello_world.py, through hello_world.isolate, locally in a temporary directory. """ import hashlib import os import shutil ...
leighpauls/k2cro4
tools/swarm_client/example/run_example_local.py
Python
bsd-3-clause
1,893
<?php namespace app\models; use Yii; /** * This is the model class for table "wl_admin". * * @property integer $id * @property string $name * @property string $pwd */ class Admin extends \yii\db\ActiveRecord { /** * @inheritdoc */ public static function tableName() { return 'wl_ad...
yanan001/weiliang
models/Admin.php
PHP
bsd-3-clause
729
""" byceps.blueprints.site.board.models ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2021 Jochen Kupperschmidt :License: Revised BSD (see `LICENSE` file for details) """ from . import board_access_grant, last_category_view, last_topic_view
homeworkprod/byceps
byceps/services/board/dbmodels/__init__.py
Python
bsd-3-clause
250
package apollo.gui.genomemap; import java.awt.*; import java.awt.event.*; import java.util.*; import java.io.*; import javax.swing.*; import apollo.datamodel.*; import apollo.gui.Controller; import apollo.gui.ControlledObjectI; import apollo.gui.Selection; import apollo.gui.SelectionItem; import apollo.gui.Selection...
genome-vendor/apollo
src/java/apollo/gui/genomemap/TierView.java
Java
bsd-3-clause
21,330
/* Copyright (c) 2000-2022, Board of Trustees of Leland Stanford Jr. University 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,...
lockss/lockss-daemon
plugins/src/org/lockss/plugin/clockss/iop/IopBookOnix3XmlMetadataExtractorFactory.java
Java
bsd-3-clause
5,238
'use strict'; myApp.controller('registrationController', ['$scope', '$timeout', '$http', '$state', 'registrationCompleteService', function ($scope, $timeout, $http, $state, registrationCompleteService) { $scope.errorMessage = ""; $scope.firstName = ""; $scope.secondName = ""; $scope.date = ""; ...
yslepianok/analysis_site
views/tests/app/pages/src/login/src/registrationController.js
JavaScript
bsd-3-clause
2,918
(function($) { $(".media-library-picker-field").each(function() { var element = $(this); var multiple = element.data("multiple"); var removeText = element.data("remove-text"); var removePrompt = element.data("remove-prompt"); var removeAllPrompt = element.data("remove-all-p...
sfmskywalker/Orchard
src/Orchard.Web/Modules/Orchard.MediaLibrary/Scripts/media-library-picker.js
JavaScript
bsd-3-clause
5,488
package no.arkivlab.innsyn.operations.iface; import no.arkivlab.innsyn.models.n5.ClassificationSystem; public interface IClassificationSystemService { public Iterable<ClassificationSystem> findAll(); public Iterable <ClassificationSystem> findAll(Integer pageNumber, Integer pageSize); public ClassificationSystem ...
KDRS-SA/kdrs-toolbox-innsyn
src/main/java/no/arkivlab/innsyn/operations/iface/IClassificationSystemService.java
Java
bsd-3-clause
510
from regulus.tree.tree import Node from regulus.tree import * class TestNode(Node): def __init__(self, **kwargs): super(TestNode, self).__init__(**kwargs) def __str__(self): if self.data is None: return "<none>" return self.data def show(root): for node in depth_fir...
yarden-livnat/regulus
tests/tree_test.py
Python
bsd-3-clause
1,870
/******************************************************************************* * 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.view.table/src/org/caleydo/view/table/TablePerspectiveAction.java
Java
bsd-3-clause
2,609
// Licensed under the BSD license. See LICENSE.txt for more details. #include "translator/rose_ast_attribute.h" #include "translator/rose_util.h" #include "translator/stencil_range.h" namespace physis { namespace translator { const std::string GridCallAttribute::name = "GridCall"; GridCallAttribute::GridCallAttribu...
naoyam/physis
translator/rose_ast_attribute.cc
C++
bsd-3-clause
1,367
# Handles checkout logic. This is somewhat contrary to standard REST convention since there is not actually a # Checkout object. There's enough distinct logic specific to checkout which has nothing to do with updating an # order that this approach is waranted. class CheckoutController < Spree::BaseController ssl_re...
collin/spree_core
app/controllers/checkout_controller.rb
Ruby
bsd-3-clause
3,003
<?php namespace app\modules\user; /** * main module definition class */ class Module extends \yii\base\Module { /** * @inheritdoc */ public $controllerNamespace = 'app\modules\user\controllers'; /** * @inheritdoc */ public function init() { parent::init(); /...
dench/webportal
modules/user/Module.php
PHP
bsd-3-clause
367
/*{{{ Copyright © 2018 Matthias Kretz <kretz@kde.org> Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the followi...
mattkretz/virtest
tests/plotdist.cpp
C++
bsd-3-clause
1,691
#!/usr/bin/env python2 # -*- coding: utf-8 -*- # # Copyright (c) 2009, Roboterclub Aachen e.V. # 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 ...
dergraaf/xpcc
tools/system_design/builder/cpp_packets.py
Python
bsd-3-clause
6,142
#include "header.h" #include "sanity.h" #ifdef TARGET_LITTLE_ENDIAN int TestSanity_TypeBasedAliasing() { unsigned long a; a = 4; *(unsigned short *)&a = 5; TEST_ASSERT(a == 5); return 0; } #endif
prophile/crisscross
TestSuite/sanity.cpp
C++
bsd-3-clause
206
from baseneuron import BaseNeuron import numpy as np import pycuda.gpuarray as garray from pycuda.tools import dtype_to_ctype import pycuda.driver as cuda from pycuda.compiler import SourceModule class MorrisLecarCopy(BaseNeuron): def __init__(self, n_dict, V, dt , debug=False): self.num_neurons = len(n_...
cerrno/neurokernel
neurokernel/LPU/neurons/MorrisLecarCopy.py
Python
bsd-3-clause
3,978
package edu.ucdenver.ccp.datasource.identifiers.impl.bio; import edu.ucdenver.ccp.datasource.fileparsers.CcpExtensionOntology; /* * #%L * Colorado Computational Pharmacology's common module * %% * Copyright (C) 2012 - 2014 Regents of the University of Colorado * %% * Redistribution and use in source and binary ...
UCDenver-ccp/datasource
datasource-fileparsers/src/main/java/edu/ucdenver/ccp/datasource/identifiers/impl/bio/ApiDbCryptoDbID.java
Java
bsd-3-clause
2,247
<?php /** * Created by PhpStorm. * User: admin * Date: 2015-10-01 * Time: 16:55 */ //use \phpqrcode\QRcode; require(__DIR__ . '/../assets/phpqrcode/qrlib.php'); //$qrlibpath=Yii::getAlias('@web/../assets/phpqrcode/qrlib.php'); //require($qrlibpath); /* $value='http://tbhome.com.cn'; $file=false; $lev...
whq78164/Vcards
frontend/web/qrcode.php
PHP
bsd-3-clause
2,900
function unescapeURL(s) { return decodeURIComponent(s.replace(/\+/g, "%20")) } function getURLParams() { var params = {} var m = window.location.href.match(/[\\?&]([^=]+)=([^&#]*)/g) if (m) { for (var i = 0; i < m.length; i++) { var a = m[i].match(/.([^=]+)=(.*)/) pa...
marcua/qurk_experiments
qurkexp/media/js/celeb_features.js
JavaScript
bsd-3-clause
1,186
class RemoteContentFetchingJob < SeekJob attr_reader :content_blob_id def initialize(content_blob) @content_blob_id = content_blob.id end def perform_job(job_item) job_item.retrieve end def gather_items [ContentBlob.find_by_id(content_blob_id)].compact end def queue_name QueueNames::...
HITS-SDBV/seek
app/jobs/remote_content_fetching_job.rb
Ruby
bsd-3-clause
345
using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; #pragma warning disable 1591 namespace OpenCvSharp { [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] internal unsafe struct WCvHistogram { public int type; public void* b...
shimat/opencvsharp_2410
src/OpenCvSharp/Src/PInvoke/Struct/Etc/WCvHistogram.cs
C#
bsd-3-clause
455
#!/usr/bin/env python __author__ = "Adam Simpkin, and Felix Simkovic" __contributing_authors__ = "Jens Thomas, and Ronan Keegan" __credits__ = "Daniel Rigden, William Shepard, Charles Ballard, Villi Uski, and Andrey Lebedev" __date__ = "05 May 2017" __email__ = "hlasimpk@liv.ac.uk" __version__ = "0.1" import argparse...
rigdenlab/SIMBAD
simbad/command_line/simbad_full.py
Python
bsd-3-clause
6,513
from django.conf.urls import patterns, include, url # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() handler500 = 'myapp.views.this_server_error' urlpatterns = patterns('', # Examples: # url(r'^$', 'helloworld.views.home', name='home'), (r'^myapp/$'...
sodafree/backend
helloworld/helloworld/urls.py
Python
bsd-3-clause
585
/// <reference path="../../node_modules/monaco-editor/monaco.d.ts" /> const liquidTags = [ 'if', 'else', 'elseif', 'endif', 'render', 'assign', 'capture', 'endcapture', 'case', 'endcase', 'comment', 'endcomment', 'cycle', 'decrement', 'for', 'endfor', ...
xkproject/Orchard2
src/OrchardCore.Modules/OrchardCore.Liquid/Assets/monaco/liquid-intellisense.ts
TypeScript
bsd-3-clause
5,263
//===--- CompileCommands.cpp ----------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
endlessm/chromium-browser
third_party/llvm/clang-tools-extra/clangd/CompileCommands.cpp
C++
bsd-3-clause
6,915
package org.webbitserver.netty; import org.jboss.netty.channel.Channel; import org.jboss.netty.channel.ChannelHandler; import org.jboss.netty.channel.ChannelHandlerContext; import org.jboss.netty.channel.ChannelPipeline; import org.jboss.netty.handler.codec.http.HttpResponseStatus; import org.webbitserver.EventSourceH...
lostdj/webbit
src/main/java/org/webbitserver/netty/NettyHttpControl.java
Java
bsd-3-clause
8,568
/* * Copyright (C) 2015, British Broadcasting Corporation * All Rights Reserved. * * Author: Philip de Nier * * 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 t...
Limecraft/ebu-libmxfpp
libMXF++/metadata/base/UTF16TextBasedSetBase.cpp
C++
bsd-3-clause
2,544
# encoding: utf8 import autoslug.fields from django.db import migrations from slugify import slugify def set_initial_slug(apps, schema_editor): Character = apps.get_model('characters', 'Character') for character in Character.objects.all(): character.slug = slugify(character.name) character.sav...
wengole/eveonline-assistant
eveonline-assistant/characters/migrations/0007_character_slug_populate.py
Python
bsd-3-clause
695
<?php /** * * @package Gems * @subpackage Tracker * @author Matijs de Jong <mjong@magnafacta.nl> * @copyright Copyright (c) 2011 Erasmus MC * @license New BSD License * @version $Id$ */ /** * Adds basic token editing snippet parameter processing and checking. * * This class supplies the model...
GemsTracker/gemstracker-library
classes/Gems/Tracker/Snippets/EditTokenSnippetAbstract.php
PHP
bsd-3-clause
3,957
<?php /** * FileName:cache.test.php * Author:liupeng * Create Date:2015-09-16 */ return [ 'fileCache'=>[ 'class'=>'\yii\caching\FileCache', 'keyPrefix'=>'common.file.', 'serializer'=>[ 'igbinary_serialize','igbinary_unserialize' ] ], 'cache' => [ 'cla...
liupdhc/yii2-liuxy-demo
common/config/env/cache.test.php
PHP
bsd-3-clause
646
#!/usr/bin/python # -*- coding: utf-8 -*- """ Author: Jiajie Zhang Email: zhangjiajie043@gmail.com """ import logging import os from math import log import cv2 import numpy as np import numpy.linalg as la from scipy.spatial import distance as spd import pywt import Tyf import tifffile as tiff class Image(object): ...
LoveDaisy/star_alignment
python/DataModel.py
Python
bsd-3-clause
20,257
''' A WSGI Middleware is a function or callable object similar to a :ref:`WSGI application handlers <wsgi-handlers>` with the only difference that it can return nothing (``None``). Middleware can be used in conjunction with a :ref:`WsgiHandler <wsgi-handler>` or any other handler which iterate through a list of middle...
quantmind/pulsar
pulsar/apps/wsgi/middleware.py
Python
bsd-3-clause
3,415
<?php /* * This file is part of the 'octris/php-tmdialog' package. * * (c) Harald Lapp <harald@octris.org> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Octris\TMDialog; /** * Library reading plist XML files. * * ...
octris/php-tmdialog
libs/Plist.php
PHP
bsd-3-clause
3,308
from django.shortcuts import render from django.contrib.auth.decorators import login_required from django.template.context_processors import csrf from django.http import HttpResponse import cStringIO from data.models import RadiosondeMeasurement, WeatherMeasurement, MeasuringDevice from forms import WeatherMeasurementF...
FSavoy/visuo-server
downloads/views.py
Python
bsd-3-clause
12,500
import type Set from "../Set.js"; import everySet from "./everySet"; function equalsSet<T>(one: Set<T>, two: Set<T>): boolean { if (one.size !== two.size) { return false; } return everySet(one, value => two.has(value)); } export default equalsSet;
teasim/helpers
source/functional/equalsSet.js
JavaScript
bsd-3-clause
255
""" Commands Commands describe the input the account can do to the game. """ from evennia import Command as BaseCommand from evennia import default_cmds from evennia.commands import cmdset class Command(BaseCommand): """ Inherit from this if you want to create your own command styles from scratch. Note...
evennia/evdemo
evdemo/commands/command.py
Python
bsd-3-clause
10,623
<?php namespace Book\Controller; use Doctrine\Common\Collections\ArrayCollection as ArrayCollection; use DoctrineModule\Paginator\Adapter\Collection as Collection; use Zend\Paginator\Paginator; use Zend\Mvc\Controller\AbstractActionController; use Zend\View\Model\ViewModel; use Zend\Session\Container; use Book\Form\Bo...
frznkyo/Ujian
module/Book/src/Book/Controller/BookController.php
PHP
bsd-3-clause
4,532
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import datetime from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('letters', '0011_auto_20150215_1830'), ] operations = [ migrations.Dele...
garry-cairns/correspondence
api/correspondence/letters/migrations/0012_auto_20150215_2223.py
Python
bsd-3-clause
1,825
<?php use yii\helpers\Html; use yii\grid\GridView; use yii\widgets\Pjax; /* @var $this yii\web\View */ /* @var $searchModel common\models\OncallSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ use miloschuman\highcharts\Highcharts; $this->title = 'Oncalls'; $this->params['breadcrumbs'][] = $this->titl...
reachz/itask
frontend/views/oncall/index.php
PHP
bsd-3-clause
4,730
#include <boost/thread.hpp> #include <QFileInfo> #include <QApplication> #include "image/image.hpp" #include "boost/program_options.hpp" #include "mapping/fa_template.hpp" #include "libs/gzip_interface.hpp" #include "mapping/atlas.hpp" namespace po = boost::program_options; extern fa_template fa_template_imp; extern s...
sbaete/DSI-Studio-qt5
cmd/atl.cpp
C++
bsd-3-clause
9,073
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails oncall+react_native * @format */ /* global device, element, by, expect */ const { openComponentWithLabel, openExam...
hoangpham95/react-native
packages/rn-tester/e2e/__tests__/Button-test.js
JavaScript
bsd-3-clause
1,885
package verifiers import ( "context" "encoding/json" "fmt" "net/http" "go.skia.org/infra/go/gerrit" "go.skia.org/infra/go/git" "go.skia.org/infra/go/skerr" "go.skia.org/infra/skcq/go/footers" "go.skia.org/infra/skcq/go/types" tree_status_types "go.skia.org/infra/tree_status/go/types" ) // NewTreeStatusVeri...
google/skia-buildbot
skcq/go/verifiers/tree_status_verifier.go
GO
bsd-3-clause
2,503
<?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a co...
5452/durex
app/code/core/Mage/Customer/sql/customer_setup/mysql4-upgrade-0.8.7-0.8.8.php
PHP
bsd-3-clause
1,241
<?php /** * Password * * @category * @package phalconskeleton * @author Tim Marshall <Tim@CodingBeard.com> * @copyright (c) 2015, Tim Marshall * @license New BSD License */ namespace CodingBeard\Forms\Fields; use CodingBeard\Forms\Fields\Field; class Password extends Field { /** * Volt template fo...
CodingBeard/phalconskeleton
app/plugins/CodingBeard/Forms/Fields/Password.php
PHP
bsd-3-clause
1,893
import {Protocol} from "devtools-protocol" import CDP = require("chrome-remote-interface") import cp = require("child_process") import fs = require("fs") import path = require("path") const url = `file://${path.resolve(process.argv[2])}` interface CallFrame { name: string url: string line: number col: number...
timsnyder/bokeh
bokehjs/test/devtools.ts
TypeScript
bsd-3-clause
8,212
require 'spec_helper' describe Spree::Taxjar do let(:reimbursement) { create(:reimbursement) } let!(:country) { create(:country) } let!(:state) { create(:state, country: country, abbr: "TX") } let!(:zone) { create(:zone, name: "Country Zone", default_tax: true, zone_members: []) } let!(:ship_address) { crea...
nimish13/spree_taxjar
spec/models/spree/taxjar_spec.rb
Ruby
bsd-3-clause
7,073
<?php namespace backend\controllers; use Yii; use app\models\Album; use app\models\AlbumSearch; use app\models\Gallery; use app\models\GallerySearch; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; use yii\web\UploadedFile; use app\models\UploadForm; /** * AlbumC...
ciptohs/yiicms
backend/controllers/AlbumController.php
PHP
bsd-3-clause
4,899
// 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 "content/browser/android/dialog_overlay_impl.h" #include "base/task/post_task.h" #include "content/browser/frame_host/render_frame_host_impl.h" ...
endlessm/chromium-browser
content/browser/android/dialog_overlay_impl.cc
C++
bsd-3-clause
9,829
<?php /** * Created by PhpStorm. * User: CristianoGD * Date: 27/09/2015 * Time: 08:44 */ namespace Aluno\Model; //imports Zend/InputFilter use Zend\InputFilter\InputFilterAwareInterface, Zend\InputFilter\InputFilter, Zend\InputFilter\InputFilterInterface; use Zend\Validator\NotEmpty, Zend\Validator\...
breakx/SistemaEscolar
module/Aluno/src/Aluno/Model/Aluno.php
PHP
bsd-3-clause
15,185
// Copyright 2015 Google Inc. All Rights Reserved. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or a...
upmc-enterprises/kubernetes-secret-manager
vendor/github.com/google/acme/jws.go
GO
bsd-3-clause
2,473
<?php $hookValue = $params['hookValue']; $oldCfId = $arrRow['nID']; $senderId = $arrRow['nSenderId']; $circulationTitle = $arrRow['strName']; $mailinglistId = $arrRow['nMailingListId']; $endAction = $arrRow['nEndAction'] - $hookValue; $cpId = $arrProcessInfo['nID']; $oldChId = $arrPr...
UMD-SEAM/bugbox
framework/Targets/cuteflow_2_11_2/application/extensions/autoRestart/ar_controller.php
PHP
bsd-3-clause
2,717
/* * This file is part of Maliit Plugins * * Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. * Copyright (C) 2012-2013 Canonical Ltd * * Contact: Mohammad Anwari <Mohammad.Anwari@nokia.com> * * Redistribution and use in source and binary forms, with or without modification...
develersrl/maliit-demo-qml
maliit-keyboard/view/setup.cpp
C++
bsd-3-clause
3,998
/*============================================================================ The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center (DKFZ) All rights reserved. Use of this source code is governed by a 3-clause BSD license that can be found in the LICENSE file. =================...
fmilano/mitk
Plugins/org.mitk.gui.qt.dicom/src/internal/QmitkStoreSCPLauncher.cpp
C++
bsd-3-clause
6,664
// Copyright 2016 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. /** * @fileoverview * 'settings-users-add-user-dialog' is the dialog shown for adding new allowed * users to a ChromeOS device. */ (function() { /** ...
endlessm/chromium-browser
chrome/browser/resources/settings/chromeos/os_people_page/users_add_user_dialog.js
JavaScript
bsd-3-clause
3,625
<?php namespace frontend\models; use Yii; /** * This is the model class for collection "invite". * * @property \MongoId|string $_id * @property mixed $user_id * @property mixed $patient_id * @property mixed $description * @property mixed $status * @property mixed $msg_status * @property mixed $created_at *...
jaibabu9/987654321
frontend/models/Invite.php
PHP
bsd-3-clause
2,130
// Part of Arac Neural Network Composition Library. // (c) 2008 by Justin S Bayer, <bayer.justin@googlemail.com> #include <iostream> #include "blockpermutation.h" #include "../../utilities/utilities.h" using arac::structure::connections::BlockPermutationConnection; using arac::structure::connections::Connection; u...
bayerj/arac
src/cpp/structure/connections/blockpermutation.cpp
C++
bsd-3-clause
954
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model app\models\Groupes */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="groupes-form"> <?php $form = ActiveForm::begin(); ?> <?= $form->field($model, 'groupe-deno')->textarea(['rows' => 6]) ?> <di...
LorenzoPicon/gestotvfreebox
view/Groupes/_form.php
PHP
bsd-3-clause
545
import { ChangelistSummaryResponse } from '../rpc_types'; export const twoPatchsets: ChangelistSummaryResponse = { cl: { system: 'gerrit', id: '1805837', owner: 'chromium-autoroll@example.google.com.iam.gserviceaccount.com', status: 'Open', subject: 'Roll src-internal da33810f35a7..af6fbc37d76b (...
google/skia-buildbot
golden/modules/changelist-controls-sk/test_data.ts
TypeScript
bsd-3-clause
2,001
// Prexonite // // Copyright (c) 2014, Christian Klauser // 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 n...
SealedSun/prx
Prexonite/Compiler/AST/AstUsing.cs
C#
bsd-3-clause
4,537
#ifdef HAVE_CONFIG_H #include "config.h" #endif #include <sys/types.h> #ifdef DG_DIAGNOSE #include "diagnose/dg.h" #endif #include "n_srm.h" #include "srm2api.h" #include "srm_soap27.h" #include "constants.h" #include "i18.h" #include "sysdep.h" /* BOOL, STD_BUF, ... */ #include "free.h" ...
dCache/s2
protos/srm/2.2/n/n_srmMkdir.cpp
C++
bsd-3-clause
2,686
package org.pocketcampus.plugin.authentication.server; import ch.epfl.tequila.client.model.TequilaPrincipal; import java.util.List; public interface SessionManager { String insert(TequilaPrincipal principal, boolean rememberMe); List<String> getFields(String sessionId, List<String> fields); Integer destroySession...
ValentinMinder/pocketcampus
plugin/authentication/server/src/main/java/org/pocketcampus/plugin/authentication/server/SessionManager.java
Java
bsd-3-clause
340
package com.winningsmiledental; import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import javax.swing.tree.*; import org.swixml.*; import org.swixml.SwingEngine; import java.io.*; import java.util.*; import java.net.*; import org.jdom.*; import java.sql.*; public class Pat...
mjpan/jdentpro
src/com/winningsmiledental/PatientInfoListener.java
Java
bsd-3-clause
1,458
;(function($B){ //eval($B.InjectBuiltins()) var _b_ = $B.builtins; var object = _b_.object var JSObject = $B.JSObject var _window = self; // cross-browser utility functions function $getMouseOffset(target, ev){ ev = ev || _window.event; var docPos = $getPosition(target); var mousePos = $mouseCoords(e...
kikocorreoso/brython
www/src/py_dom.js
JavaScript
bsd-3-clause
54,564
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import './synced_device_manager.js'; import 'chrome://resources/cr_elements/cr_action_menu/cr_action_menu.m.js'; import 'chrome://resources/cr_elements/cr...
endlessm/chromium-browser
chrome/browser/resources/history/lazy_load.js
JavaScript
bsd-3-clause
709
<?php /** * Copyright 2007 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
Kazade/NeHe-Website
google_appengine/php/sdk/google/appengine/ext/cloud_storage_streams/CloudStorageWriteClient.php
PHP
bsd-3-clause
9,743
@section ('title') Account Settings :: Mangapie @endsection @extends ('settings.layout') @section ('tab-content') <div class="card"> <div class="card-header"> <ul class="nav nav-pills card-header-pills"> <li class="nav-item"> <a class="nav-link active" h...
pierobot/mangapie
resources/views/settings/account.blade.php
PHP
bsd-3-clause
2,895
// 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_frame/urlmon_url_request.h" #include <urlmon.h> #include <wininet.h> #include "base/bind.h" #include "base/bind_helpers.h" #include...
timopulkkinen/BubbleFish
chrome_frame/urlmon_url_request.cc
C++
bsd-3-clause
51,845
<?php namespace Exchange\EWSType; use Exchange\EWSType; /** * Contains EWSType_DeleteAttachmentResponseMessageType. */ /** * Represents the status and result of a single DeleteAttachment operation * request. * * @package php-ews\Types * * @todo Extends EWSType_ResponseMessageType. */ class EWSType_DeleteAttac...
segpacto/yii2-exchange
EWSType/EWSType_DeleteAttachmentResponseMessageType.php
PHP
bsd-3-clause
1,549
// Copyright 2015 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. /** * @fileoverview Polymer element for displaying a summary of network states * by type: Ethernet, WiFi, Cellular, and VPN. */ (function() { const m...
endlessm/chromium-browser
chrome/browser/resources/settings/chromeos/internet_page/network_summary.js
JavaScript
bsd-3-clause
9,561
#!/usr/bin/env python from amino import * print Quat(XAngle(3.14)) * Quat(YAngle(3.14)) # print Quat((1,2,3,4)) # print Quat(RotMat(YAngle(3.14))) # print Quat(RotMat(RotMat(YAngle(3.14)))) # print TfMat( (XAngle(3.14), (0,0,1)) ).translation() # print aa.RotMat(aa.YAngle(3.14)).cx # print aa.RotMat(aa.YAngle(3....
golems/amino
demo/cpython/tf.py
Python
bsd-3-clause
453
// 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 "extensions/common/api/sockets/sockets_manifest_permission.h" #include <memory> #include "base/stl_util.h" #include "base/strings/string_split....
endlessm/chromium-browser
extensions/common/api/sockets/sockets_manifest_permission.cc
C++
bsd-3-clause
11,080
/* Copyright (c) 2011-2012, Brandon Aubie All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and th...
baubie/SpikeDB
src/uiFileDetailsTreeView.cpp
C++
bsd-3-clause
8,226
/** * $LastChangedRevision$ * $HeadURL$ * $LastChangedDate$ * $LastChangedBy$ */ package net.sf.cafemocha.validation.string; import java.util.regex.Pattern; import net.sf.cafemocha.validation.Constraint; import org.apache.commons.lang.Validate; /** * @author computerguy5 * */ public class...
jbeard6/CafeMocha
validation/validation-api/src/main/java/net/sf/cafemocha/validation/string/NoLowercaseConstraint.java
Java
bsd-3-clause
909
import resource import numpy as np from HPOlibConfigSpace.configuration_space import ConfigurationSpace from HPOlibConfigSpace.conditions import InCondition from HPOlibConfigSpace.hyperparameters import UniformFloatHyperparameter, \ UniformIntegerHyperparameter, CategoricalHyperparameter, \ UnParametrizedHype...
hmendozap/auto-sklearn
autosklearn/pipeline/components/regression/libsvm_svr.py
Python
bsd-3-clause
5,653
from django.conf import settings from paymentexpress.gateway import ( AUTH, COMPLETE, PURCHASE, REFUND, VALIDATE, Gateway ) from paymentexpress.models import OrderTransaction from oscar.apps.payment.exceptions import (UnableToTakePayment, InvalidGatewayRequestError) impor...
django-oscar/django-oscar-paymentexpress
paymentexpress/facade.py
Python
bsd-3-clause
7,203
from django.apps import AppConfig class WagtailLinkchekerAppConfig(AppConfig): name = 'wagtaillinkchecker' verbose_name = "Wagtail Link Checker"
takeflight/wagtail-linkchecker
wagtaillinkchecker/apps.py
Python
bsd-3-clause
155
//////////////// // control_atk.h // This file is a portion of the immature engine. // It is distributed under the BSD license. // Copyright 2015 Huang Yiting (http://endrollex.com) //////////////// //////////////// #include "control_atk.h" #include "imm_ptr.h" namespace imm { //////////////// // combo_data ///////////...
RealRui/imm_engine
imm_include/control_atk.cc
C++
bsd-3-clause
3,584