repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
BrianRickardMason/TheUltimateStrategy
Game/GameServerUT/Resource/ResourceWithVolumeTest.cpp
3334
// Copyright (C) 2010, 2011 and 2012 Marcin Arkadiusz Skrobiranda. // 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 // ...
bsd-3-clause
jguittard/zf-doctrine-mapping
src/QueryBuilder/Filter/ORM/NotEquals.php
1751
<?php namespace ZF\Doctrine\QueryBuilder\Filter\ORM; use Doctrine\ORM\Mapping\ClassMetadataInfo; use Doctrine\ORM\QueryBuilder; /** * Class NotEquals * * @package ZF\Doctrine\QueryBuilder\Filter\ORM * @version 1.0 * @author Julien Guittard <julien.guittard@me.com> * @see http://github.com/...
bsd-3-clause
ngrodzitski/json_dto-0.1
dev/sample/tutorial4/prj.rb
205
gem 'Mxx_ru', '>= 1.3.0' require 'mxx_ru/cpp' MxxRu::Cpp::exe_target { # Define your target name here. target 'sample.tutorial4' required_prj 'rapidjson_mxxru/prj.rb' cpp_source 'main.cpp' }
bsd-3-clause
dineshkummarc/zf2
library/Zend/GData/Calendar/ListFeed.php
2864
<?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...
bsd-3-clause
pdhwi/hwizfms
module/Hwi/src/Hwi/Model/ProductTable.php
2760
<?php namespace Hwi\Model; use Zend\Db\TableGateway\TableGateway; class ProductTable { protected $tableGateway; public function __construct(TableGateway $tableGateway) { $this->tableGateway = $tableGateway; } public function fetchAll($where='',$order='',$limit='',$paginated='...
bsd-3-clause
jwend/p_points2grid
include/pct/Grid.hpp
1305
/************************************************************ * Grid.hpp * A basic grid implementation for uniform meshing * Used/for binning Points for outcore map-reduce ***********************************************************/ #ifndef GRID_HPP #define GRID_HPP #include <vector> #include <iostream> #include ...
bsd-3-clause
oddt/oddt
tests/test_rdkitfixer.py
22042
import os import tempfile from numpy.testing import assert_array_equal, assert_almost_equal import pytest try: import rdkit from rdkit import Chem except ImportError: rdkit = None if rdkit is not None: from oddt.toolkits.extras.rdkit.fixer import (AtomListToSubMol, ...
bsd-3-clause
EmilioHerrera/OLV
views/user/login.php
1765
<?php /* @var $this yii\web\View */ /* @var $form yii\bootstrap\ActiveForm */ /* @var $model app\models\LoginForm */ use yii\bootstrap\ActiveForm; use yii\helpers\Html; $this->title = 'Login'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="user-login"> <div class="page-wrap"> <div class="col-md-6 ...
bsd-3-clause
ethz-asl/elevation_mapping
elevation_mapping/include/elevation_mapping/sensor_processors/PerfectSensorProcessor.hpp
1436
/* * PerfectSensorProcessor.hpp * * Created on: Sep 28, 2014 * Author: Péter Fankhauser * Institute: ETH Zurich, ANYbotics */ #pragma once #include <elevation_mapping/sensor_processors/SensorProcessorBase.hpp> namespace elevation_mapping { /*! * Sensor processor for laser range sensors. */ class Per...
bsd-3-clause
danielga/gmsv_xconsole
source/IOStream.cpp
1988
/************************************************************************* * MultiLibrary - danielga.bitbucket.org/multilibrary * A C++ library that covers multiple low level systems. *------------------------------------------------------------------------ * Copyright (c) 2015, Daniel Almeida * All rights reserve...
bsd-3-clause
fschulze/ploy
setup.py
1478
from setuptools import setup import os version = "1.0.4.dev0" here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.rst')).read() HISTORY = open(os.path.join(here, 'HISTORY.rst')).read() install_requires = [ 'lazy', 'paramiko', 'setuptools'] try: import argparse ...
bsd-3-clause
fraunhoferfokus/particity
lib_data/src/main/java/de/fraunhofer/fokus/oefit/particity/service/persistence/AHSubscriptionActionableDynamicQuery.java
848
package de.fraunhofer.fokus.oefit.particity.service.persistence; import com.liferay.portal.kernel.dao.orm.BaseActionableDynamicQuery; import com.liferay.portal.kernel.exception.SystemException; import de.fraunhofer.fokus.oefit.particity.model.AHSubscription; import de.fraunhofer.fokus.oefit.particity.service.AHSubscr...
bsd-3-clause
Clinical-Genomics/scout
tests/server/blueprints/institutes/test_institute_controllers.py
2286
import copy from werkzeug.datastructures import MultiDict from scout.server.blueprints.institutes.controllers import cases, phenomodel_checkgroups_filter from scout.server.extensions import store def test_phenomodel_checkgroups_filter(app, institute_obj, hpo_checkboxes, omim_checkbox): """Test the controllers f...
bsd-3-clause
vinpel/gaspSync
tests/acceptance/tokenServerCept.php
1039
<?php //\Codeception\Util\Debug::debug($hawk); $email=time().'test@exemple.com'; $I = new AcceptanceTester($scenario); $I->wantTo('ensure that the token server works'); //get valid hawk / browserid for testing $I->wantTo('grab test hawk & assertion for testing'); $I->sendGET('/index-test.php/token/test-get-assertion'...
bsd-3-clause
CartoDB/cartodb
app/models/carto/map.rb
6900
require 'active_record' require_relative './carto_json_serializer' require_dependency 'common/map_common' require_dependency 'carto/bounding_box_utils' class Carto::Map < ActiveRecord::Base include Carto::MapBoundaries has_many :layers_maps, dependent: :destroy has_many :layers, -> { order(:order) }, class_nam...
bsd-3-clause
bgwines/project-euler
src/solved/problem479/problem479.cpp
2649
/* Note: this solution requires FLINT (http://www.flintlib.org/) Problem solved together with Alex Quach */ #include <cmath> #include <stdlib.h> #include <stdio.h> #include "flint.h" #include "fmpz.h" #include "fmpz_mat.h" #include "arith.h" const long K = 1000000007; const long N = pow(10, 6); ////////////////...
bsd-3-clause
jchavanton/webrtc
modules/bitrate_controller/bitrate_controller_unittest.cc
16165
/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
bsd-3-clause
wsldl123292/jodd
jodd-json/src/main/java/jodd/json/impl/FloatArrayJsonSerializer.java
566
// Copyright (c) 2003-present, Jodd Team (jodd.org). All Rights Reserved. package jodd.json.impl; import jodd.json.JsonContext; import jodd.json.TypeJsonSerializer; /** * Serializes float arrays. */ public class FloatArrayJsonSerializer implements TypeJsonSerializer<float[]> { public void serialize(JsonContext j...
bsd-3-clause
rad8329/Cordillera
layouts/error.php
1246
<?php /* @var string $content Content of buffer */ /* @var \cordillera\middlewares\Layout $this */ ?> <!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <meta name="viewport" content="width=device-width, initial-scale=1"> <title><?= $this->getProperty('title...
bsd-3-clause
zengjichuan/jetuum
src/petuum_ps_common/util/stats.cpp
32829
// Copyright (c) 2014, Sailing Lab // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, // this list of conditions an...
bsd-3-clause
futurice/futurice-ldap-user-manager
fum/settings/base.py
7379
import django.conf.global_settings as DEFAULT_SETTINGS import os, datetime, copy import getpass from pwd import getpwnam PACKAGE_ROOT = os.path.realpath(os.path.join(os.path.dirname(__file__), '..', '..')) PROJECT_ROOT = os.path.normpath(PACKAGE_ROOT) DEPLOYMENT_ROOT = PROJECT_ROOT PROJECT_NAME = 'fum' ADMINS = ( ...
bsd-3-clause
tkirsan4ik/yii2_region
frontend/views/bus/bus-route/view.php
4345
<?php use kartik\grid\GridView; use yii\helpers\Html; use yii\widgets\DetailView; /* @var $this yii\web\View */ /* @var $model frontend\models\bus\BusRoute */ $this->title = $model->name; $this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Bus Routes'), 'url' => ['index']]; $this->params['breadcrumbs'][] = $...
bsd-3-clause
jupyterhub/oauthenticator
oauthenticator/tests/test_auth0.py
2602
from unittest.mock import Mock from pytest import fixture from tornado import web from ..auth0 import Auth0OAuthenticator from ..oauth2 import OAuthLogoutHandler from .mocks import mock_handler from .mocks import setup_oauth_mock auth0_subdomain = "jupyterhub-test" def user_model(email, nickname=None): """Retu...
bsd-3-clause
IG-Group/ig-webapi-dotnet-sample
IGWebApiClient/Model/dto/endpoint/marketdetails/v2/DepositBanding.cs
404
using System.Collections.Generic; using dto.endpoint.auth.session; namespace dto.endpoint.marketdetails.v2 { public class DepositBanding{ ///<Summary> ///Boundaries ///</Summary> public List<string> boundaries { get; set; } ///<Summary> ///Margin factor ///</Summary> public List<string> factors { get; set; } ...
bsd-3-clause
godoctor/godoctor
refactoring/testdata/extractfunc/037-passing-structure-by-reference/main.go
193
//<<<<<extract,14,2,15,23,foo,pass package main import "fmt" type Pt struct { x, y int } func main() { p := &Pt{3, 4} fmt.Println("Old Pt", p) p.x = 5 p.y = 6 fmt.Print("New Pt", p) }
bsd-3-clause
madphysicist/numpy
numpy/typing/tests/test_typing.py
11391
import importlib.util import itertools import os import re import shutil from collections import defaultdict from typing import Optional, IO, Dict, List import pytest import numpy as np from numpy.typing.mypy_plugin import _PRECISION_DICT, _EXTENDED_PRECISION_LIST try: from mypy import api except ImportError: ...
bsd-3-clause
tim-mc/quill
node_modules/webdriverio/lib/commands/getValue.js
1432
/** * * Get the value of a `<textarea>` or text `<input>` found by given selector. * * <example> :index.html <input type="text" value="John Doe" id="username"> :getValueAsync.js client.getValue('#username').then(function(value) { console.log(value); // outputs: "John Doe" }); :getV...
bsd-3-clause
andrewconnell/aci-orchardcms
Modules/Orchard.Azure.MediaServices/Services/Assets/AssetUploader.cs
12054
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using Orchard.Azure.MediaServices.Helpers; using Orchard.Azure.MediaServices.Models; using Orchard.Azure.MediaServices.Models.Assets; using Orchard.Azur...
bsd-3-clause
chandler14362/panda3d
makepanda/makepanda.py
301845
#!/usr/bin/env python ######################################################################## # # To build panda using this script, type 'makepanda.py' on unix # or 'makepanda.bat' on windows, and examine the help-text. # Then run the script again with the appropriate options to compile # panda3d. # ##################...
bsd-3-clause
tttthemanCorp/CardmeleonAppEngine
piston/authentication/basic.py
2267
import binascii from django.contrib.auth import authenticate from django.contrib.auth.models import User, AnonymousUser from django.http import HttpResponse class HttpBasicAuthentication(object): """ Basic HTTP authenticater. Synopsis: Authentication handlers must implement two methods: - `is_authe...
bsd-3-clause
highweb-project/highweb-webcl-html5spec
storage/browser/fileapi/file_system_operation_runner.cc
24451
// 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 "storage/browser/fileapi/file_system_operation_runner.h" #include <stdint.h> #include <tuple> #include <utility> #include "base/bind.h" #includ...
bsd-3-clause
ksclarke/jiiify
src/main/java/info/freelibrary/jiiify/verticles/ImageIndexVerticle.java
3892
package info.freelibrary.jiiify.verticles; import static info.freelibrary.jiiify.Constants.FAILURE_RESPONSE; import static info.freelibrary.jiiify.Constants.FILE_PATH_KEY; import static info.freelibrary.jiiify.Constants.ID_KEY; import static info.freelibrary.jiiify.Constants.IIIF_PATH_KEY; import static info.freelibr...
bsd-3-clause
compgen-io/ngsutilsj
src/java/io/compgen/ngsutils/annotation/BedCountAnnotationSource.java
1171
package io.compgen.ngsutils.annotation; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import io.compgen.common.IterUtils; import io.compgen.ngsutils.bed.BedReader; import io.compgen.ngsutils.bed.BedRecord; import io.c...
bsd-3-clause
yubo/govs
cmd/govs/handler.go
8391
/* * Copyright 2016 Xiaomi Corporation. All rights reserved. * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE file. * * Authors: Yu Bo <yubo@xiaomi.com> */ package main import ( "flag" "fmt" "os" "github.com/yubo/gotool/flags" "github.com/yubo/govs" ) func...
bsd-3-clause
kimniyom/history
controllers/SearchController.php
4480
<?php namespace app\controllers; use Yii; use yii\web\Controller; use yii\helpers\Json; use app\models\Google_map; use yii\helpers\Url; class SearchController extends Controller { public $layout = "admin-lte"; public function actionIndex() { return $this->render('index'); } //คนหาคนตาม CID...
bsd-3-clause
antoinecarme/pyaf
tests/artificial/transf_None/trend_Lag1Trend/cycle_12/ar_12/test_artificial_32_None_Lag1Trend_12_12_100.py
261
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 12, transform = "None", sigma = 0.0, exog_count = 100, ar_order = 12);
bsd-3-clause
volpejoaquin/yan
php/pacienteDelInfo.php
296
<?php $link = mysql_connect('localhost', 'root', ''); if (!$link) { die('Could not connect: ' . mysql_error()); } mysql_select_db('yani') or die('Could not select database'); mysql_query("DELETE FROM paciente_info WHERE id = ".$_POST['id']); // Closing connection mysql_close($link); ?>
bsd-3-clause
bdezonia/zorbage
src/main/java/example/OutOfBoundsData.java
10705
/* * Zorbage: an algebraic data hierarchy for use in numeric processing. * * Copyright (c) 2016-2021 Barry DeZonia 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...
bsd-3-clause
CartoDB/cartodb
lib/assets/javascripts/new-dashboard/store/mutations/tileset.js
183
export function setLoadingTilesets (state) { state.loadingTilesets = true; } export function setTilesets (state, data) { state.tilesets = data; state.loadingTilesets = false; }
bsd-3-clause
souldigital/silverstripe-eventmanagement
code/pages/RegistrableEvent.php
10566
<?php /** * A calendar event that can people can register to attend. */ class RegistrableEvent extends CalendarEvent { private static $db = array( 'TicketGenerator' => 'Varchar(255)', 'OneRegPerEmail' => 'Boolean', 'RequireLoggedIn' => 'Boolean', 'RegistrationTimeLimit' => 'Int', 'RegEm...
bsd-3-clause
psiinon/addons-server
src/olympia/files/tests/test_tasks.py
3866
# -*- coding: utf-8 -*- from unittest import mock import tempfile import zipfile from django.conf import settings from olympia.amo.tests import TestCase from olympia.files.tasks import repack_fileupload from olympia.files.tests.test_models import UploadTest from olympia.files.utils import SafeZip class TestRepackFi...
bsd-3-clause
salesforce/Argus
ArgusCore/src/main/java/com/salesforce/dva/argus/service/alert/com/salesforce/dva/argus/service/alert/testing/TestResults.java
125
package com.salesforce.dva.argus.service.alert.com.salesforce.dva.argus.service.alert.testing; public class TestResults { }
bsd-3-clause
ostashevdv/yii2
tests/unit/extensions/elasticsearch/ElasticSearchTestCase.php
1382
<?php namespace yiiunit\extensions\elasticsearch; use Yii; use yii\elasticsearch\Connection; use yiiunit\TestCase; Yii::setAlias('@yii/elasticsearch', __DIR__ . '/../../../../extensions/elasticsearch'); /** * ElasticSearchTestCase is the base class for all elasticsearch related test cases */ class ElasticSearchTe...
bsd-3-clause
SalesforceFoundation/Cumulus
force-app/main/default/lwc/geFormWidgetRowAllocation/geFormWidgetRowAllocation.js
5642
import {LightningElement, api, track} from 'lwc'; import GeLabelService from 'c/geLabelService'; import { apiNameFor, isEmpty, isNumeric } from 'c/utilCommon'; import DI_DONATION_AMOUNT_FIELD from '@salesforce/schema/DataImport__c.Donation_Amount__c'; import ALLOCATION_OBJECT from '@salesforce/schema/Allo...
bsd-3-clause
dmerejkowsky/qibuild
python/qibuild/test/projects/installme/foo.cpp
204
/* * Copyright (c) 2012-2015 Aldebaran Robotics. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the COPYING file. */ int foo() { return 42; }
bsd-3-clause
NCIP/annotation-and-image-markup
AimPlugin3.0.4/AIM.Annotation/Configuration/AimSettings.cs
3715
#region License //L // 2007 - 2013 Copyright Northwestern University // // Distributed under the OSI-approved BSD 3-Clause License. // See http://ncip.github.com/annotation-and-image-markup/LICENSE.txt for details. //L #endregion using System.Configuration; using System.Drawing; using ClearCanvas.De...
bsd-3-clause
zooming-tan/Project-AENEAS
Project-AENEAS/taskapp/celery.py
867
from __future__ import absolute_import import os from celery import Celery from django.apps import AppConfig from django.conf import settings if not settings.configured: # set the default Django settings module for the 'celery' program. os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local")...
bsd-3-clause
lutece-platform/lutece-core
src/test/java/fr/paris/lutece/portal/web/dashboard/AdminDashboardJspBeanTest.java
11786
/* * Copyright (c) 2002-2022, City of Paris * 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 * and the f...
bsd-3-clause
marks12/Installer
autoload_classmap.php
465
<?php // Generated by ZF2's ./bin/classmap_generator.php return array( 'Installer\Module' => __DIR__ . '/Module.php', 'Installer\Controller\InstallerController' => __DIR__ . '/src/Installer/Controller/InstallerController.php', 'InstallerTest\Framework\TestCase' => __DIR__ ...
bsd-3-clause
m-ober/byceps
tests/blueprints/user_message/test_address_formatting.py
1202
""" :Copyright: 2006-2020 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from unittest.mock import patch import pytest from byceps.services.user_message import service as user_message_service from tests.conftest import database_recreated from tests.helpers import ( app_context, cr...
bsd-3-clause
myGrid/t2-server-jar
src/main/java/uk/org/taverna/server/client/ServerException.java
2074
/* * Copyright (c) 2010, 2011 The University of Manchester, UK. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notic...
bsd-3-clause
theghostbel/pimcore
website_demo/views/scripts/advanced/search.php
3239
<?php if(!$this->getParam("q")) { ?> <?php $this->template("/content/default.php"); ?> <?php } else { ?> <?php $this->template("/includes/content-headline.php"); ?> <?php } ?> <div> <form class="form-search" method="get"> <input name="q" type="text" class="input-medium search-query" val...
bsd-3-clause
alexcomput/ZF2Project
module/SONUser/Module.php
1296
<?php namespace SONUser; use Zend\Mvc\MvcEvent; use Zend\Mail\Transport\Smtp as SmtpTransport; use Zend\Mail\Transport\SmtpOptions; class Module { public function getConfig() { return include __DIR__ . '/config/module.config.php'; } public function getAutoloaderConfig() { return...
bsd-3-clause
tivv/pgjdbc
org/postgresql/ssl/jdbc3/AbstractJdbc3MakeSSL.java
2174
/*------------------------------------------------------------------------- * * Copyright (c) 2004-2011, PostgreSQL Global Development Group * * *------------------------------------------------------------------------- */ package org.postgresql.ssl.jdbc3; import java.util.Properties; import java.io.IOException; impor...
bsd-3-clause
rriggio/joule
joule/template.py
5892
#!/usr/bin/env python # # Copyright (c) 2013, Roberto Riggio # 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, th...
bsd-3-clause
sgraham/nope
chrome/browser/extensions/api/developer_private/developer_private_api.cc
47150
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/api/developer_private/developer_private_api.h" #include "apps/app_load_service.h" #include "apps/saved_files_serv...
bsd-3-clause
joshbohde/scikit-learn
examples/grid_search_text_feature_extraction.py
4106
""" ========================================================== Sample pipeline for text feature extraction and evaluation ========================================================== The dataset used in this example is the 20 newsgroups dataset which will be automatically downloaded and then cached and reused for the do...
bsd-3-clause
youtube/cobalt
starboard/shared/starboard/microphone/microphone_create.cc
1163
// Copyright 2017 The Cobalt Authors. 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 ap...
bsd-3-clause
dariomangoni/chrono
src/demos/vehicle/demo_M113_Band/demo_VEH_M113_Band.cpp
19076
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of t...
bsd-3-clause
matthewgjoseph/basic-computer-science-coding
CS1635/IndividualAssignment3-Spring2013/cocosproject/proj.android/gen/com/cs1635/mgj7/cocosproject/R.java
539
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * aapt tool from the resource data it found. It * should not be modified by hand. */ package com.cs1635.mgj7.cocosproject; public final class R { public static final class attr { } public static final class dra...
bsd-3-clause
jdub/rust-bindgen
libbindgen/src/uses.rs
3529
//! Take in our IR and output a C/C++ file with dummy uses of each IR type. //! //! Say that we had this C++ header, `header.hpp`: //! //! ```c++ //! class Point { //! int x; //! int y; //! } //! //! enum Bar { //! THIS, //! THAT, //! OTHER //! } //! ``` //! //! If we generated dummy uses for this h...
bsd-3-clause
DimaHuts/zf-pro
module/Application/src/Service/ConfigFormServiceInterface.php
380
<?php namespace Application\Service; use Zend\Form\Form; interface ConfigFormServiceInterface { /** * This method will pass to a form some configurations * * @param Form $form * @param [] $configurations It is an array that consists of settings for the $form * @return mixed */ ...
bsd-3-clause
wgsyd/wgtf
src/core/lib/core_reflection/base_property_with_metadata.hpp
1760
#ifndef BASE_PROPERTY_WITH_METADATA_HPP #define BASE_PROPERTY_WITH_METADATA_HPP #include "interfaces/i_base_property.hpp" #include "metadata/meta_base.hpp" #include "reflection_dll.hpp" #include <memory> namespace wgt { class REFLECTION_DLL BasePropertyWithMetaData : public IBaseProperty { public: BasePropertyWith...
bsd-3-clause
rodijolak/calico
Client/core/src/calico/input/CInputDevice.java
2213
/******************************************************************************* * Copyright (c) 2013, 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:...
bsd-3-clause
bietiekay/sonos-podcast-service
sonos-podcast-service/ConsoleOutputLogger.cs
3934
using System; using System.IO; using System.Collections.Generic; using System.Text; using System.Globalization; using System.Threading; namespace sonospodcastservice { /// <summary> /// This Class stores a number of Console Output Lines into a ring buffer /// </summary> public class ConsoleOutputLogge...
bsd-3-clause
GeoscienceAustralia/geodesy-sitelog-domain
src/main/java/au/gov/ga/geodesy/sitelog/domain/model/FrequencyStandard.java
1636
package au.gov.ga.geodesy.sitelog.domain.model; import javax.validation.Valid; import javax.validation.constraints.Size; /** * http://sopac.ucsd.edu/ns/geodesy/doc/igsSiteLog/equipment/2004/frequencyStandard.xsd:frequenceStandardType */ public class FrequencyStandard { private Integer id; @Size(max = 200) ...
bsd-3-clause
gudezi/yiiBaseAdvanced
frontend/views/site/nopermitido.php
317
<?php use yii\helpers\Html; /* @var $this yii\web\View */ $this->title = 'About'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="site-about"> <h1><?= Html::encode($this->title) ?></h1> <div class="alert alert-danger"> <p>No tiene permiso para acceder a esta página.</p> </div> </div>
bsd-3-clause
NCIP/cadsr-cgmdr-nci-uk
src/org/exist/storage/btree/BTreeException.java
2927
/*L * Copyright Oracle Inc * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/cadsr-cgmdr-nci-uk/LICENSE.txt for details. */ package org.exist.storage.btree; /* * dbXML License, Version 1.0 * * * Copyright (c) 1999-2001 The dbXML Group, L.L.C. * All right...
bsd-3-clause
1nv4d3r5/onxshop
controllers/bo/component/file.php
1854
<?php /** * Copyright (c) 2010-2011 Laposa Ltd (http://laposa.co.uk) * Licensed under the New BSD License. See the file LICENSE.txt for details. */ class Onxshop_Controller_Bo_Component_File extends Onxshop_Controller { /** * main action */ public function mainAction() { $file_id = $this->GET['file_i...
bsd-3-clause
clbn/Cachet
resources/lang/no/forms.php
7175
<?php /* * This file is part of Cachet. * * (c) Alt Three Services Limited * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ return [ // Setup form fields 'setup' => [ 'email' => 'Epost', 'userna...
bsd-3-clause
winterbe/nake
test/shell/nakefile.js
3709
task("basic", "test exec/pipe/print", function() { shell(".") .exec("ls") .print() .dir("folder1") .exec("ls") .print() .exec("echo Hi there!") .pipe("cat") .print(); }); task("exec-fn", "test exec with function", function () { shell() .exec("ls -al") .exec(function (result)...
bsd-3-clause
killerwilmer/empopasto_proveedores
core/libs/filter/base_filter/htmlentities_filter.php
1183
<?php /** * KumbiaPHP web & app 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://wiki.kumbiaphp.com/Licencia * If you did not receive a copy...
bsd-3-clause
Garethp/php-ews
src/API/Message/GetSharingFolder.php
148
<?php namespace garethp\ews\API\Message; /** * Class representing GetSharingFolder */ class GetSharingFolder extends GetSharingFolderType { }
bsd-3-clause
TomAugspurger/pandas
pandas/tests/indexes/categorical/test_reindex.py
2400
import numpy as np from pandas import Categorical, CategoricalIndex, Index import pandas._testing as tm class TestReindex: def test_reindex_dtype(self): c = CategoricalIndex(["a", "b", "c", "a"]) res, indexer = c.reindex(["a", "c"]) tm.assert_index_equal(res, Index(["a", "a", "c"]), exact...
bsd-3-clause
pranavpandey/pranavpandey.github.io
src/pages/pp-contact.js
4998
/** * @license * Copyright (c) 2019 Pranav Pandey. * Copyright (c) 2018 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt * The ...
bsd-3-clause
morozovigor/carbax
console/migrations/m150914_091518_create_phone_table.php
981
<?php use yii\db\Schema; use yii\db\Migration; class m150914_091518_create_phone_table extends Migration { public function up() { $tableOptions = null; if ($this->db->driverName === 'mysql') { $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB'; } ...
bsd-3-clause
mozilla/relman-auto-nag
auto_nag/scripts/good_first_bug_unassign_inactive.py
1727
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. from auto_nag import utils from auto_nag.bzcleaner import BzCleaner class GoodFirstBugUnassignInactive(BzCleaner): ...
bsd-3-clause
sunnysideup/addons.silverstripe.org
ssu/code/cms/ExtensionTagGroup_Admin.php
986
<?php class ExtensionTagGroup_Admin extends ModelAdmin { public static $managed_models = array( 'MetaExtensionTagGroup', 'ExtensionTagGroup', 'TopicChange', 'TopicChangeIPAddress', 'AddonKeyword', 'FavouritesToComposerRecord', ); public static $url_segment =...
bsd-3-clause
pjreiniger/TempAllWpi
wpilibjIntegrationTests/src/main/java/edu/wpi/first/wpilibj/fixtures/MotorEncoderFixture.java
7211
/*----------------------------------------------------------------------------*/ /* Copyright (c) 2008-2017 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of...
bsd-3-clause
ros/catkin
test/unit_tests/test_catkin_find.py
1195
import imp import os import unittest imp.load_source('catkin_find', os.path.join(os.path.dirname(__file__), '..', '..', 'bin', 'catkin_find')) from catkin_find import parse_args # noqa: E402 class CatkinFindTest(unittest.TestCase): def test_parse_args_empty(self): ...
bsd-3-clause
fluffynuts/PeanutButter
source/Utils/PeanutButter.DuckTyping/Shimming/IsADuckAttribute.cs
275
using System; namespace PeanutButter.DuckTyping.Shimming { /// <summary> /// Attribute added to all types created by the TypeMaker, usually consumed /// during efforts to duck-type /// </summary> public class IsADuckAttribute : Attribute { } }
bsd-3-clause
Newlooc/task_manager
module/Task/src/Controller/RegisterController.php
2474
<?php namespace Task\Controller; use Zend\View\Model\ViewModel; use Zend\Mvc\Controller\AbstractActionController; use Task\Model\RegisterInterFace; use Task\Model\User; use Task\Model\AuthInterface; use Zend\Form\Form; use Zend\Authentication\Storage\StorageInterface; class RegisterController extends AbstractActionCo...
bsd-3-clause
minktom/spree_ghetto_faq
app/helpers/spree/admin/questions_helper.rb
41
module Spree::Admin::QuestionsHelper end
bsd-3-clause
CartoDB/cartodb
spec/support/shared_entities_spec_helper.rb
2858
module SharedEntitiesSpecHelper extend ActiveSupport::Concern def share_table(table, user) permission = table.table_visualization.permission permission.update!( acl: [ { type: Carto::Permission::TYPE_USER, entity: { id: user.id }, access: Carto::Permission::ACCE...
bsd-3-clause
multmeio/django-hstore-flattenfields
example/app/forms.py
212
''' Created on 24/05/2013 @author: luan ''' from hstore_flattenfields.forms import HStoreModelForm from models import Something class SomethingForm(HStoreModelForm): class Meta: model = Something
bsd-3-clause
loopCM/chromium
content/browser/renderer_host/pepper/pepper_message_filter.cc
19957
// 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 "content/browser/renderer_host/pepper/pepper_message_filter.h" #include "base/bind.h" #include "base/bind_helpers.h" #include "base/callback...
bsd-3-clause
zackgalbreath/CDash
models/buildconfigureerror.php
2439
<?php /*========================================================================= Program: CDash - Cross-Platform Dashboard System Module: $Id: buildconfigureerror.php 2567 2010-07-27 15:07:22Z zach.mullen $ Language: PHP Date: $Date: 2010-07-27 15:07:22 +0000 (Tue, 27 Jul 2010) $ Version: $Revi...
bsd-3-clause
mbuckley/pixel-perfect
lib/sdk/core/system.js
2801
/* See license.txt for terms of usage */ "use strict"; const { Cu, Ci } = require("chrome"); const { getMostRecentBrowserWindow } = require("sdk/window/utils"); const { devtools } = Cu.import("resource://gre/modules/devtools/Loader.jsm", {}); const { Services } = Cu.import("resource://gre/modules/Services.jsm", {});...
bsd-3-clause
fernando3287/friendly
views/usuarios/aceptar.php
715
<?php /* @var $this yii\web\View */ /* @var $model app\models\Usuario */ ?> <div class="usuario-view"> <div class="enlaces"> <h3>Algunas sugerencias...</h3> <br> <a href="https://www.google.com/intl/es/gmail/about/" class="boton_enlace"><img src="/img/gmail.png" alt="" class="enl...
bsd-3-clause
threerings/depot
src/main/java/com/samskivert/depot/DataSourceConnectionProvider.java
4021
// // samskivert library - useful routines for java programs // Copyright (C) 2001-2012 Michael Bayne, et al. // http://github.com/samskivert/samskivert/blob/master/COPYING package com.samskivert.depot; import java.sql.Connection; import java.sql.SQLException; import javax.sql.DataSource; import static com.samskiver...
bsd-3-clause
rcarmo/crab
scikits/crab/metrics/pairwise.py
18499
#-*- coding:utf-8 -*- """Utilities to evaluate pairwise distances or metrics between 2 sets of points. """ # Authors: Marcel Caraciolo <marcel@muricoca.com> # Bruno Melo <bruno@muricoca.com> # License: BSD Style. import numpy as np import scipy.spatial.distance as ssd def euclidean_distances(X, Y, square...
bsd-3-clause
pawelswiszcz/mywedding
module/User/src/User/Mapper/Exception/RuntimeException.php
123
<?php namespace User\Mapper\Exception; class RuntimeException extends \RuntimeException implements ExceptionInterface {}
bsd-3-clause
exponent/exponent
android/expoview/src/main/java/host/exp/exponent/exceptions/ExceptionUtils.java
2959
// Copyright 2015-present 650 Industries. All rights reserved. package host.exp.exponent.exceptions; import android.content.Context; import android.provider.Settings; import java.net.ConnectException; import java.net.SocketTimeoutException; import java.net.UnknownHostException; import host.exp.exponent.network.Expo...
bsd-3-clause
thijs1108/ParnasSys-statuspage
resources/lang/sq/cachet.php
6550
<?php /* * This file is part of Cachet. * * (c) Alt Three Services Limited * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ return [ // Components 'components' => [ 'last_updated' => 'Last updated :timestamp', ...
bsd-3-clause
gajus/babel-plugin-log-deprecated
test/fixtures/preset-options/adds-console-warn-to-function-expression-with-name-from-lhs/expected.js
478
/** * @deprecated */ const foo = function () { console.warn("Deprecated: Function \"foo\" is deprecated in /fixtures/preset-options/adds-console-warn-to-function-expression-with-name-from-lhs/actual.js on line 4", { functionName: "foo", message: null, packageName: "bar", packageVersion: "1.0.0", ...
bsd-3-clause
vovancho/yii2test
controllers/Fregat/RemoveaktController.php
4991
<?php namespace app\controllers\Fregat; use app\func\ReportsTemplate\RemoveaktReport; use app\models\Fregat\RemoveaktFilter; use app\models\Fregat\TrRmMat; use Exception; use Yii; use app\models\Fregat\Removeakt; use app\models\Fregat\RemoveaktSearch; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii...
bsd-3-clause
us-ignite/us_ignite
us_ignite/snippets/tests/fixtures.py
291
from us_ignite.snippets.models import Snippet def get_snippet(**kwargs): data = { 'name': 'Gigabit snippets', 'slug': 'featured', 'url': 'http://us-ignite.org/', 'image': 'ad.png', } data.update(kwargs) return Snippet.objects.create(**data)
bsd-3-clause
naohisas/KVS
Source/Core/Visualization/Widget/ColorMapBar.cpp
12881
/*****************************************************************************/ /** * @file ColorMapBar.cpp * @author Naohisa Sakamoto */ /*****************************************************************************/ #include "ColorMapBar.h" #include <kvs/Type> #include <kvs/Message> #include <kvs/String> #incl...
bsd-3-clause
abdulquddus/classified
backend/models/OptionalfieldBridgeTable.php
961
<?php namespace backend\models; use Yii; /** * This is the model class for table "optionalfield_bridge_table". * * @property integer $id * @property integer $optional_field_key * @property integer $filter_field_key */ class OptionalfieldBridgeTable extends \yii\db\ActiveRecord { /** * @inheritdoc ...
bsd-3-clause
LinioIT/rule-engine
src/Ast/GetVariableExpressionNode.php
334
<?php declare(strict_types=1); namespace Linio\Component\RuleEngine\Ast; class GetVariableExpressionNode extends Node { protected string $key; public function __construct(string $key) { $this->key = $key; } public function evaluate() { return $this->getContext()->get($this->...
bsd-3-clause