repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
leegoway/yii2-rest | src/RestException.php | 97 | <?php
/**
* @author
*/
namespace leegoway\rest;
class RestException extends \Exception
{
}
| bsd-3-clause |
uonafya/jphes-core | dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/schema/descriptors/DataElementSchemaDescriptor.java | 2804 | package org.hisp.dhis.schema.descriptors;
/*
* Copyright (c) 2004-2016, University of Oslo
* 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 a... | bsd-3-clause |
timmolderez/adbc | src/be/ac/ua/ansymo/example_bank/SavingsAccount.java | 1176 | /*******************************************************************************
* Copyright (c) 2012-2014 Tim Molderez.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the 3-Clause BSD License
* which accompanies this distribution, and is available at
... | bsd-3-clause |
ric2b/Vivaldi-browser | chromium/mojo/core/message_pipe_unittest.cc | 18579 | // 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 <stdint.h>
#include <string.h>
#include <algorithm>
#include <memory>
#include <string>
#include <vector>
#include "base/memory/ptr_util.h"
#in... | bsd-3-clause |
JesseLivezey/plankton | pylearn2/scripts/plankton/gen_train.py | 598 | import os, sys
if len(sys.argv) < 3:
print "Usage: python gen_train.py input_folder output_folder"
exit(1)
fi = sys.argv[1]
fo = sys.argv[2]
if not os.path.exists(fo):
os.makedirs(fo)
cmd = "convert -resize 48x48 -gravity center -background white -extent 48x48 "
classes = os.listdir(fi)
os.chdir(fo)
for... | bsd-3-clause |
vdt/SimpleCV | SimpleCV/Features/Features.py | 68872 | # SimpleCV Feature library
#
# Tools return basic features in feature sets
# # x = 0.00
# y = 0.00
# _mMaxX = None
# _mMaxY = None
# _mMinX = None
# _mMinY = None
# _mWidth = None
# _mHeight = None
# _mSrcImgW = None
# mSrcImgH = None
#load system libraries
from SimpleCV.base im... | bsd-3-clause |
Elastica/kombu | examples/hello_publisher.py | 389 | from __future__ import absolute_import, unicode_literals
import datetime
from kombu import Connection
with Connection('amqp://guest:guest@localhost:5672//') as conn:
simple_queue = conn.SimpleQueue('simple_queue')
message = 'helloword, sent at {0}'.format(datetime.datetime.today())
simple_queue.put(mess... | bsd-3-clause |
s-nice/s-run | backend/themes/quirk/views/page/_form.php | 1668 | <?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\Page */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="page-form panel-body">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?... | bsd-3-clause |
hung101/kbs | frontend/views/ref-negara/_search.php | 1034 | <?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model frontend\models\RefNegaraSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="ref-negara-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?... | bsd-3-clause |
Egor86/yii-app | backend/views/subscriber/update.php | 518 | <?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\Subscriber */
$this->title = 'Обновление подписчика: ' . $model->name;
$this->params['breadcrumbs'][] = ['label' => 'Subscribers', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', '... | bsd-3-clause |
weierophinney/zf-api-problem | src/ZF/ApiProblem/ApiProblemResponse.php | 2299 | <?php
/**
* @license http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
* @copyright Copyright (c) 2014 Zend Technologies USA Inc. (http://www.zend.com)
*/
namespace ZF\ApiProblem;
use Zend\Http\Response;
/**
* Represents an ApiProblem response payload
*/
class ApiProblemResponse extends Response
{
... | bsd-3-clause |
chhantyal/scrapd | tests/test_zalando.py | 382 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_zalando
----------------------------------
Tests for `zalando` module.
"""
import unittest
from zalando import zalando
class TestZalando(unittest.TestCase):
def setUp(self):
pass
def test_something(self):
pass
def tearDown(self)... | bsd-3-clause |
adregan/sw-redux | js/service/middleware.js | 1310 | import localforage from 'localforage';
/*
* @description
* Will fire a reset action with the persisted state
*/
export const reset = store => next => action => {
if (action.type !== 'ACTIVATE') return next(action);
if (typeof action.count !== 'undefined') {
localforage.setItem('state', action.count)
... | bsd-3-clause |
Aaron1992/highlight.js | test/special/noHighlight.js | 546 | 'use strict';
describe('no highlighting', function() {
it('should keep block unchanged', function() {
var expected = '<div id="contents">\n ' +
'<p>Hello, World!c\n</div>',
actual = document.querySelector('.nohighlight').innerHTML;
actual.should.equal(expected... | bsd-3-clause |
xkproject/Orchard2 | src/OrchardCore.Modules/OrchardCore.Sitemaps/Builders/SitemapTypeBuilder.cs | 1147 | using System.Collections.Generic;
using System.Threading.Tasks;
using System.Xml.Linq;
using OrchardCore.Sitemaps.Models;
namespace OrchardCore.Sitemaps.Builders
{
public class SitemapTypeBuilder : SitemapTypeBuilderBase<Sitemap>
{
private static readonly XNamespace Namespace = "http://www.sitemaps.org... | bsd-3-clause |
trucnguyenlam/mucke | src/simplebman.cc | 17747 | // Author: (C) 1996-1997 Armin Biere
// LastChange: Sat Jul 12 17:23:39 MET DST 1997
/*---------------------------------------------------------------------------.
| SimpleBMan |
| SimpleBManPrintManager ... | bsd-3-clause |
tylerlong/quick_orm | quick_orm/testsuite/fixtures.py | 2942 | # coding=utf-8
"""
quick_orm.testsuite.fixtures
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sample data for testing purpose
"""
from toolkit_library.inspector import ModuleInspector
import quick_orm.testsuite.models
exec(ModuleInspector(quick_orm.testsuite.models).import_all_classes_statement())
users = []
... | bsd-3-clause |
svinotavr/JavascriptPhaserTutorials | Tutorial files/M12-Match-3-Game/08-update-grid/js/states/Game.js | 460 | var Match3 = Match3 || {};
Match3.GameState = {
init: function() {
this.NUM_ROWS = 8;
this.NUM_COLS = 8;
this.NUM_VARIATIONS = 6;
this.BLOCK_SIZE = 35;
this.ANIMATION_TIME = 200;
},
create: function() {
//game background
this.background = this.add.sprite(0, 0, 'background');
//b... | bsd-3-clause |
timo/zasim | test/testutil.py | 3635 | import numpy as np
from itertools import repeat, chain, product
def compare_ndim_arrays(arr1, arr2):
print "arr1:"
print arr1
print "arr2:"
print arr2
def assert_ndim_arrays_equal(arr1, arr2):
arr1 = arr1.flatten()
arr2 = arr2.flatten()
assert_arrays_equal(arr1, arr2)
def generate_pretty_... | bsd-3-clause |
centrumholdings/cthulhubot | tests/example_project/tests/test_buildbot.py | 1767 | import os
from django.conf import settings
from djangosanetesting import HttpTestCase
from djangosanetesting.utils import get_live_server_path
from cthulhubot.models import Project, Buildmaster
from tests.helpers import create_project
from tests.helpers import BuildmasterTestCase
# test is spawning child that will ... | bsd-3-clause |
utvara/phpworkers | tests/Edo/Event/FactoryTest.php | 3748 | <?php
/**
* phpworkers
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
*
* @copyright Copyright (c) 2010 Slobodan Utvic and Julian Davchev
*/
require_once 'PHPUnit/Framework/TestCase.php';
require_once (dirname(dirname(dirname(... | bsd-3-clause |
dvyushin88/fantasy_ff | modules/admin/models/User.php | 1541 | <?php
namespace app\modules\admin\models;
use yii\helpers\ArrayHelper;
use app\modules\user\models\User as MainUser;
use Yii;
class User extends MainUser
{
const SCENARIO_ADMIN_CREATE = 'adminCreate';
const SCENARIO_ADMIN_UPDATE = 'adminUpdate';
public $newPassword;
public $newPasswordRepeat;
pu... | bsd-3-clause |
VISTAS-IVES/pyvistas | source/vistas/core/graphics/bounding_box.py | 2460 | import numpy
from OpenGL.GL import *
from vistas.core.graphics.geometry import Geometry
from vistas.core.graphics.object import Object3D
from vistas.core.graphics.shader import ShaderProgram
from vistas.core.paths import get_builtin_shader
class BoundingBoxHelper(Object3D):
""" Simple object to help visualize an... | bsd-3-clause |
maxhutch/magma | src/core_dsbtype1cb.cpp | 4809 | /*
-- MAGMA (version 2.1.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date August 2016
@author Azzam Haidar
@generated from src/core_zhbtype1cb.cpp, normal z -> d, Tue Aug 30 09:38:19 2016
*/
#include "magma_internal.h"
#... | bsd-3-clause |
UgCS/vsm-cpp-sdk | test/unit/ut_transport_detector.cpp | 3358 | // Copyright (c) 2018, Smart Projects Holdings Ltd
// All rights reserved.
// See LICENSE file for license details.
/*
* Tests for Singleton class.
*/
#include <ugcs/vsm/transport_detector.h>
#include <UnitTest++.h>
#include <future>
using namespace ugcs::vsm;
TEST(vsm_proxy)
{
auto sp = Socket_processor::G... | bsd-3-clause |
notogawa/libift | src/unistd/fchdir.cpp | 1724 | // Copyright (c) 2012, Noriyuki OHKAWA a.k.a. notogawa.
// 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... | bsd-3-clause |
jotes/pontoon | pontoon/sync/tests/test_vcs.py | 4053 | from textwrap import dedent
from unittest.mock import patch
from pontoon.sync.vcs.repositories import VCSRepository
from pontoon.base.tests import CONTAINS, TestCase
class VCSRepositoryTests(TestCase):
def test_execute_log_error(self):
"""
If the return code from execute is non-zero and log_error... | bsd-3-clause |
imerr/LibM2 | game/DESC_MANAGER.cpp | 5635 | /* This file belongs to the LibM2 library (http://github.com/imermcmaps/LibM2)
* Copyright (c) 2013, iMer (www.imer.cc)
* All rights reserved.
* Licensed under the BSD 3-clause license (http://opensource.org/licenses/BSD-3-Clause)
*/
#include "DESC_MANAGER.hpp"
#include "../addr.hpp"
namespace libm2 {
LPDESC D... | bsd-3-clause |
yanbingbing/fly | library/Fly/Db/Adapter/Driver/ResultInterface.php | 1166 | <?php
/**
* Fly Framework
*
* @copyright Copyright (c) 2013 Bingbing. (http://yanbingbing.com)
*/
namespace Fly\Db\Adapter\Driver;
interface ResultInterface extends \Countable, \Iterator
{
/**
* Force buffering
*
* @return void
*/
public function buffer();
/**
* Check if is b... | bsd-3-clause |
Serulian/compiler | compilercommon/localpositionmapper.go | 1568 | // Copyright 2017 The Serulian 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 compilercommon
import (
"fmt"
"io/ioutil"
"strings"
)
// LocalFilePositionMapper is a struct which implements the PositionMapper interface ov... | bsd-3-clause |
lwright-sq/HTML_CodeSniffer | Standards/WCAG2AAA/Sniffs/Principle1/Guideline1_2/1_2_2.js | 1641 | /**
* +--------------------------------------------------------------------+
* | This HTML_CodeSniffer file is Copyright (c) |
* | Squiz Pty Ltd (ABN 77 084 670 600) |
* +--------------------------------------------------------------------+
* | IMPORTANT: Your... | bsd-3-clause |
raquel-ucl/cartodb | lib/assets/javascripts/cartodb/table/geocoder_working.js | 1094 |
/**
* Geocoder modal window. Prenvets user to make it work
* twice at the same time.
*/
cdb.admin.GeocoderWorking = cdb.admin.BaseDialog.extend({
_TEXTS: {
georeference: {
title: _t('Geocoder is already running'),
description: _t('If you want to georeference using anot... | bsd-3-clause |
mattunderscorechampion/tree-root | trees-mutable/src/main/java/com/mattunderscore/trees/mutable/MutableTreeImpl.java | 6104 | /* Copyright © 2014 Matthew Champion
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 the follow... | bsd-3-clause |
BITechnologies/boo | src/Boo.Lang.Compiler/Ast/Impl/DepthFirstGuide.cs | 59733 | #region license
// Copyright (c) 2009 Rodrigo B. de Oliveira (rbo@acm.org)
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above co... | bsd-3-clause |
jneslen/pixeltenchi_raw | legacy/parenthelpcenter/askwilla/wp-content/themes/askwilla/page.php | 801 | <?php get_header(); ?>
<?php get_sidebar(); ?>
</div>
<div id="column_2">
<div id="awheader_1">
</div>
<div id="awsubheader">
<div id="description"><?php bloginfo('description'); ?></div>
</div>
<div id="content" class="narrowcolumn">
<?php if (have_posts()) : while (have_posts()) : the_post(); ... | bsd-3-clause |
ernado/turn | reqfamily.go | 1514 | package turn
import (
"errors"
"gortc.io/stun"
)
// RequestedAddressFamily represents the REQUESTED-ADDRESS-FAMILY Attribute as
// defined in RFC 6156 Section 4.1.1.
type RequestedAddressFamily byte
const requestedFamilySize = 4
// GetFrom decodes REQUESTED-ADDRESS-FAMILY from message.
func (f *RequestedAddressF... | bsd-3-clause |
kiranisaac/beringei-1 | beringei/lib/BucketMap.cpp | 30407 | /**
* Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#include "... | bsd-3-clause |
mikael-laine/kitchenrating | frontend/web/js/top10.js | 1273 | (function($){
var rangeObj = {
rank_option1 : 0,
rank_option2 : 0,
rank_option3 : 0
};
$( ".rs_filter" ).slider({
step:50,
change: function( event, ui ) {
$(this).attr('data-value', ui.value);
renderChange();
}
});
$( ".rs_filter" ).each(function(){
$(this).slider( "value", parseInt($(this).attr('data-va... | bsd-3-clause |
kendzi/kendzi-math | kendzi-math-geometry/src/main/java/kendzi/math/geometry/triangle/Triangle3dUtil.java | 1142 | package kendzi.math.geometry.triangle;
import javax.vecmath.Point3d;
/**
* Utils for 3d triangles.
*/
public class Triangle3dUtil {
/**
* Calculates area of triangle described by vertex point.
*
* @see "http://math.stackexchange.com/a/128999"
* @param a
* the p... | bsd-3-clause |
ojii/django-nani | hvad/tests/related.py | 12697 | # -*- coding: utf-8 -*-
from django.core.exceptions import FieldError
from django.db import models
from django.db.models.query_utils import Q
from hvad.exceptions import WrongManager
from hvad.models import (TranslatedFields, TranslatableModelBase,
TranslatableModel)
from hvad.test_utils.context_managers import La... | bsd-3-clause |
bogdal/django-filer | filer/migrations/0015_auto__add_field_file_who_can_read_local__add_field_file_who_can_edit_l.py | 13812 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'File.who_can_read_local'
db.add_column(u'filer_file', 'who_can_read_local',
... | bsd-3-clause |
mural/spm | db4oj/src/main/java/com/db4o/internal/Reflection4.java | 6196 | /* This file is part of the db4o object database http://www.db4o.com
Copyright (C) 2004 - 2010 Versant Corporation http://www.versant.com
db4o is free software; you can redistribute it and/or modify it under
the terms of version 3 of the GNU General Public License as published
by the Free Software Foundation.
db4o ... | bsd-3-clause |
michalliu/chromium-depot_tools | fetch.py | 10248 | #!/usr/bin/env python
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
Tool to perform checkouts in one easy command line!
Usage:
fetch <recipe> [--property=value [--property2=value2 ...]]
This ... | bsd-3-clause |
fake-name/ReadableWebProxy | WebMirror/management/rss_parser_funcs/feed_parse_extractCloudManor.py | 987 | def extractCloudManor(item):
"""
"""
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol or frag) or 'preview' in item['title'].lower():
return None
if 'Book of Sun & Moon Swordplay' in item['tags']:
return buildReleaseMessageWithType(item, 'Book of Sun & Moon Swordpla... | bsd-3-clause |
kodiers/yii2build | frontend/controllers/ProfileController.php | 5857 | <?php
namespace frontend\controllers;
use Yii;
use frontend\models\Profile;
use frontend\models\search\ProfileSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use common\models\PermissionHelpers;
use common\models\RecordHelpers;
/**
* ProfileController implements the CR... | bsd-3-clause |
vagovszky/console | module/Import/Module.php | 275 | <?php
/**
* This file is placed here for compatibility with Zendframework's ModuleManager.
* It allows usage of this module even without composer.
* The original Module.php lives in 'src' directory in order to respect PSR-0
*/
require_once __DIR__ . '/src/Import/Module.php'; | bsd-3-clause |
hugelgupf/u-root | cmds/core/ntpdate/ntpdate.go | 2152 | // Copyright 2016-2017 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// ntpdate uses NTP to adjust the system clock.
package main
import (
"bufio"
"flag"
"fmt"
"log"
"os"
"strings"
"syscall"
"time"
"github.com/... | bsd-3-clause |
zendframework/zend-loader | test/TestAsset/TestPlugins/Foo.php | 390 | <?php
/**
* @see https://github.com/zendframework/zend-loader for the canonical source repository
* @copyright Copyright (c) 2005-2018 Zend Technologies USA Inc. (https://www.zend.com)
* @license https://github.com/zendframework/zend-loader/blob/master/LICENSE.md New BSD License
*/
namespace ZendTest\Loade... | bsd-3-clause |
wayfinder/Wayfinder-S60-Navigator | CPP/Shared/Nav2ErrorNo.cpp | 2280 | /*
Copyright (c) 1999 - 2010, Vodafone Group Services Ltd
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 ... | bsd-3-clause |
kansey/site-weather | backend/views/site/error.php | 630 | <?php
/* @var $this yii\web\View */
/* @var $name string */
/* @var $message string */
/* @var $exception Exception */
use yii\helpers\Html;
$this->title = $name;
?>
<div class="site-error">
<h1><?= Html::encode($this->title) ?></h1>
<div class="alert alert-danger">
<?= nl2br(Html::encode($message)) ... | bsd-3-clause |
sunlightlabs/sitegeist | sitegeist/data/nhgis/loading.py | 742 | import csv
import os
from django.conf import settings
from sitegeist.data.nhgis.models import Tract
def load():
Tract.objects.all().delete()
path = os.path.join(settings.SITEGEIST['DATA_CACHE'], 'nhgis', 'nhgis0001_ts_tract.csv')
with open(path) as infile:
count = 0
reader = csv.Dict... | bsd-3-clause |
vana14/code_example | web/index-test.php | 886 | <?php
defined('APPLICATION_DIR') || define('APPLICATION_DIR', __DIR__ . '/..');
require(__DIR__ . '/../vendor/autoload.php');
require(__DIR__ . '/../helpers/helpers.php');
load_environment('test');
// NOTE: Make sure this file is not accessible when deployed to production
if (!env('TESTS_IGNORE_REMOTE') && !in_arra... | bsd-3-clause |
orobardet/miranda | module/Application/src/Application/Model/BaseAttributesTrait.php | 653 | <?php
namespace Application\Model;
trait BaseAttributesTrait
{
protected $baseAttributes = array();
public function setBaseAttribute($name, $value)
{
$this->baseAttributes[$name] = $value;
}
public function hasBaseAttribute($name)
{
return array_key_exists($name, $this->baseAttributes);
}
public functi... | bsd-3-clause |
evanchsa/jing-trang | mod/rng-validate/src/main/com/thaiopensource/relaxng/impl/AttributePattern.java | 2509 | package com.thaiopensource.relaxng.impl;
import org.xml.sax.Locator;
import org.xml.sax.SAXException;
class AttributePattern extends Pattern {
private final NameClass nameClass;
private final Pattern p;
private final Locator loc;
AttributePattern(NameClass nameClass, Pattern value, Locator loc) {
super(f... | bsd-3-clause |
imply/chuu | chrome/test/data/extensions/platform_apps/web_view/navigation/embedder.js | 7739 | // 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.
var embedder = {};
embedder.tests = {};
embedder.baseGuestURL = '';
embedder.guestURL = '';
window.runTest = function(testName) {
if (!embedder.test.te... | bsd-3-clause |
frankpaul142/optica-los-andes | models/Local.php | 1576 | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "local".
*
* @property integer $id
* @property integer $city_id
* @property string $name
* @property string $address
* @property string $schedule
* @property string $phone
* @property string $cellphone
* @property string $maps
* ... | bsd-3-clause |
tsungtingkuo/stakenet | src/stock/edge/StockEdgeValueTransformer.java | 251 | package stock.edge;
import org.apache.commons.collections15.Transformer;
public class StockEdgeValueTransformer implements Transformer<StockEdge, Number> {
@Override
public Number transform(StockEdge e) {
return e.getValue();
}
}
| bsd-3-clause |
anthonykoerber/strand | src/mm-docs-shell/mm-docs-shell.js | 4203 | /**
* @license
* Copyright (c) 2015 MediaMath Inc. All rights reserved.
* This code may only be used under the BSD style license found at http://mediamath.github.io/strand/LICENSE.txt
*/
(function (scope) {
scope.DocsShell = Polymer({
is: 'mm-docs-shell',
behaviors: [
StrandTraits.Stylable,
StrandTrai... | bsd-3-clause |
wayfinder/Wayfinder-CppCore-v2 | cpp/Targets/Nav2API/Shared/src/Nav2APIImpl.cpp | 40928 | /*
Copyright (c) 1999 - 2010, Vodafone Group Services Ltd
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 co... | bsd-3-clause |
pombredanne/django-narcissus | narcissus/garden/urls.py | 304 | from django.conf.urls.defaults import patterns, include, url
from narcissus.garden.views import HomeView, PetalCreateView
urlpatterns = patterns('',
url(r'^$', HomeView.as_view(), name='narcissus-home'),
url(r'^new/([\w-]+)/$', PetalCreateView.as_view(),
name='narcissus-new-petal'),
)
| bsd-3-clause |
chad/rubinius | lib/decompiler.rb | 3613 | require 'kernel/core/iseq' unless defined? RUBY_ENGINE and RUBY_ENGINE == 'rbx'
# Like String#unpack('N'), but returns a Fixnum, rather than an array containing a string
class String
def unpack_int(endian = ?b)
if ?b == endian
# Int is encoded big-endian
i = (self[3] | (self[2] << 8) | (self... | bsd-3-clause |
mudunuriRaju/tlr-live | frontend/web/js/angular/i18n/angular-locale_ckb-arab-ir.js | 6135 | 'use strict';
angular.module("ngLocale", [], ["$provide", function ($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
... | bsd-3-clause |
MaddTheSane/MacPaf | src/com/redbugz/maf/jdom/EventJDOM.java | 7002 | package com.redbugz.maf.jdom;
//import java.text.DateFormat;
//import java.text.ParseException;
//import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.GregorianCalendar;
import org.apache.log4j.Logger;
import org.apache.log4j.helpers.DateTimeDateFormat;
import org.jdom.Element;
import org.joda.t... | bsd-3-clause |
hongqipiaoyang/houtai | commands/QueController.php | 6625 | <?php
// 问题时间插入
namespace app\commands;
use Yii;
use yii\console\Controller;
use app\models\QueModel;
use app\models\MatchInfoModel;
use app\models\BaskMatchInfoModel;
class QueController extends Controller{
private $time = 2; //获取准确的比赛时间偏差
public function actionIndex(){
$log = ''... | bsd-3-clause |
luizrjunior/ClubeLuxuria | module/Curtidas/Module.php | 1064 | <?php
namespace Curtidas;
use Curtidas\Service\CurtidasService;
use Zend\Mvc\ModuleRouteListener;
use Zend\Mvc\MvcEvent;
class Module {
public function onBootstrap(MvcEvent $e) {
$eventManager = $e->getApplication()->getEventManager();
$moduleRouteListener = new ModuleRouteListener();
$m... | bsd-3-clause |
devhood/erp-base | module/Main/src/Main/Entity/Tblcity.php | 1863 | <?php
namespace Main\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Tblcity
*
* @ORM\Table(name="tblCity", indexes={@ORM\Index(name="fk_tblCity_tblProvince1_idx", columns={"intProvinceID"})})
* @ORM\Entity
*/
class Tblcity
{
/**
* @var integer
*
* @ORM\Column(name="intCityID", type="integer",... | bsd-3-clause |
rackerlabs/django-DefectDojo | dojo/unittests/tools/test_sonatype_parser.py | 997 | from django.test import TestCase
from dojo.models import Test
from dojo.tools.sonatype.parser import SonatypeParser
class TestSonatypeParser(TestCase):
def test_parse_file_with_one_vuln(self):
testfile = open("dojo/unittests/scans/sonatype/one_vuln.json")
parser = SonatypeParser()
findings... | bsd-3-clause |
rutgersmobile/android-client | app/src/main/java/edu/rutgers/css/Rutgers/channels/food/model/DiningMenuAdapter.java | 1043 | package edu.rutgers.css.Rutgers.channels.food.model;
import android.content.Context;
import android.support.annotation.NonNull;
import edu.rutgers.css.Rutgers.api.food.model.DiningMenu;
import edu.rutgers.css.Rutgers.model.SectionedListAdapter;
/**
* Sectioned adapter for dining hall menus. The sections are the foo... | bsd-3-clause |
rjschof/gem5 | src/base/loader/dtb_object.cc | 6176 | /*
* Copyright (c) 2013 The Regents of The University of Michigan
* 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, ... | bsd-3-clause |
smithfarm/mfile-www | share/js/core/tests/lib.js | 5444 | // *************************************************************************
// Copyright (c) 2014-2017, SUSE LLC
//
// 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... | bsd-3-clause |
ohboyohboyohboy/antlr3 | java/RubyTarget.java | 18911 | /*
[The "BSD license"]
Copyright (c) 2010 Kyle Yetter
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 con... | bsd-3-clause |
youtube/cobalt | third_party/skia/infra/bots/recipe_modules/flavor/ios.py | 3255 | # 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.
# Disable warning about setting self.device_dirs in install(); we need to.
# pylint: disable=W0201
from . import default
"""iOS flavor, used for running ... | bsd-3-clause |
ric2b/Vivaldi-browser | chromium/media/ffmpeg/ffmpeg_regression_tests.cc | 18981 | // 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.
//
// Regression tests for FFmpeg. Test files can be found in the internal media
// test data directory:
//
// https://chrome-internal.googlesource... | bsd-3-clause |
caiges/populous | populous/podcasts/urls.py | 956 | from django.conf.urls.defaults import *
urlpatterns = patterns('populous.podcasts.views',
# Show list of all shows
url(r'^$', view='show_list', name='podcast_shows'),
# Episode list of one show
url(r'^(?P<slug>[-\w]+)/$', view='episode_list', name='podcast_episodes'),
# Episode list feed by show ... | bsd-3-clause |
prooph/pdo-event-store | tests/Projection/MariaDbProjectionManagerTest.php | 4117 | <?php
/**
* This file is part of prooph/pdo-event-store.
* (c) 2016-2021 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2016-2021 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
... | bsd-3-clause |
myles/django-issues | src/issues/testsettings.py | 404 | DEBUG = True
DEBUG_TEMPLATE = True
SITE_ID = 1
DATABASE_ENGINE = 'sqlite3'
DATABASE_NAME = '/tmp/django-issues-devel.db'
INSTALLED_APPS = [
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'django.contrib.comments',
'django.contrib.a... | bsd-3-clause |
antony-wilson/ceda_opensearch | docs/autogen/html/classceda__opensearch_1_1views_1_1OpenSearch.js | 387 | var classceda__opensearch_1_1views_1_1OpenSearch =
[
[ "dispatch", "classceda__opensearch_1_1views_1_1OpenSearch.html#a7123a1c4be17f67395c85b885fa3f968", null ],
[ "get", "classceda__opensearch_1_1views_1_1OpenSearch.html#a483dbafbf3fc0ef4fb07b1d75e558e4c", null ],
[ "options", "classceda__opensearch_1_1vie... | bsd-3-clause |
chandanachk/rakiya_maga | views/site/index.php | 1687 | <?php
/* @var $this yii\web\View */
$this->title = 'JOB SEARCH';
?>
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\helpers\Url;
$form = ActiveForm::begin([
'id' => 'active-form',
'options' => [
'class' => 'form-horizontal',
'enctype' => 'multipart/form-data'
],
])
/*... | bsd-3-clause |
uonafya/jphes-core | dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/trackedentity/TrackedEntityInstanceService.java | 4452 | package org.hisp.dhis.dxf2.events.trackedentity;
/*
* Copyright (c) 2004-2016, University of Oslo
* 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 retai... | bsd-3-clause |
bogdandrutu/grpc | tools/codegen/core/gen_static_metadata.py | 10508 | #!/usr/bin/env python2.7
# Copyright 2015, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this li... | bsd-3-clause |
rescrv/ygor | ygor-cli.cc | 3016 | // Copyright (c) 2013-2014, Robert Escriva
// 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... | bsd-3-clause |
crscardellino/dnnwsd | dnnwsd/pipeline/ladder.py | 8100 | # -*- coding: utf-8 -*-
import copy
import logging
import numpy as np
import os
import shutil
import tensorflow as tf
import unicodedata
from ..experiment.ladder import LadderNetworksExperiment
from ..utils.setup_logging import setup_logging
setup_logging()
logger = logging.getLogger(__name__)
def _write_results(r... | bsd-3-clause |
TeamCohen/MinorThird | src/main/java/iitb/Model/GenericModel.java | 11451 | /** GenericModel.java
*
* @author Sunita Sarawagi
* @since 1.0
* @version 1.3
*/
package iitb.Model;
import gnu.trove.list.array.TIntArrayList;
import iitb.CRF.DataSequence;
import java.util.Arrays;
import java.util.BitSet;
import java.util.StringTokenizer;
public class GenericModel extends Model {
/**
* ... | bsd-3-clause |
vivo-project/Vitro | api/src/test/java/edu/cornell/mannlib/vitro/webapp/auth/policy/SelfEditingPolicy_2_Test.java | 10319 | /* $This file is distributed under the terms of the license in LICENSE$ */
package edu.cornell.mannlib.vitro.webapp.auth.policy;
import static edu.cornell.mannlib.vitro.webapp.auth.requestedAction.RequestedAction.SOME_LITERAL;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
impor... | bsd-3-clause |
OpenAMEE/askamee | config/environments/development.rb | 1324 | Askamee::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web s... | bsd-3-clause |
Crystalnix/house-of-life-chromium | chrome/browser/sync/js_sync_manager_observer.cc | 4177 | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/sync/js_sync_manager_observer.h"
#include <cstddef>
#include "base/logging.h"
#include "base/values.h"
#include "chrome/bro... | bsd-3-clause |
googlearchive/py-gfm | tests/test_strikethrough.py | 1357 | # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
import gfm
from test_case import TestCase
class TestStrikethrough(TestCase):
def setUp(self):
... | bsd-3-clause |
srickardti/openthread | src/core/thread/announce_sender.cpp | 5373 | /*
* Copyright (c) 2016-2018, The OpenThread Authors.
* 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, ... | bsd-3-clause |
jasonbaker/envbuilder | envbuilder/help.py | 1227 | import sys
from envbuilder.command import BuiltinCommand, Command
from envbuilder.custom import _CustomCommand
from envbuilder.args import Arguments
from envbuilder.sh import output_packages
class Help(BuiltinCommand):
"""
Get help.
"""
name = 'help'
def run(self, *args, **kwargs):
# This ... | bsd-3-clause |
hithroc/TelegramFlitter | TelegramFlitter/CardSearchBot.cs | 1685 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Telegram.Bot;
using Telegram.Bot.Args;
using Telegram.Bot.Types.InlineQueryResults;
namespace TelegramFlitter
{
class CardSearchBot
{
private TelegramBotClient bot;
private Card[] cards;
... | bsd-3-clause |
axhm3a/ZendFrameworkCertification | library/Zend/Cache/Frontend/Class.php | 6103 | <?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 a... | bsd-3-clause |
8v060htwyc/whois | whois-api/src/test/java/net/ripe/db/whois/api/rest/CrossOriginFilterTest.java | 4743 | package net.ripe.db.whois.api.rest;
import com.google.common.net.HttpHeaders;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import javax.ws.rs.HttpMethod;
import javax.ws.rs.container.ContainerRequestContext;
im... | bsd-3-clause |
figment/niflib | src/obj/NiBinaryVoxelData.cpp | 7386 | /* Copyright (c) 2006, NIF File Format Library and Tools
All rights reserved. Please see niflib.h for license. */
//-----------------------------------NOTICE----------------------------------//
// Some of this file is automatically filled in by a Python script. Only //
// add custom code in the designated areas o... | bsd-3-clause |
jmmease/pandas | pandas/tests/reshape/test_merge.py | 64541 | # pylint: disable=E1103
import pytest
from datetime import datetime, date
from numpy.random import randn
from numpy import nan
import numpy as np
import random
import pandas as pd
from pandas.compat import lrange, lzip
from pandas.core.reshape.concat import concat
from pandas.core.reshape.merge import merge, MergeErr... | bsd-3-clause |
vojtasvoboda/GopayInline | src/Exception/GopayException.php | 124 | <?php
namespace Markette\GopayInline\Exception;
use RuntimeException;
class GopayException extends RuntimeException
{
}
| bsd-3-clause |
magiclabs/spree_payone | app/models/spree/payment_source/payone/payone_debit_payment_payment_source.rb | 1043 | # Spree payment method source for PAYONE debit payment.
module Spree
module PaymentSource
module Payone
class PayoneDebitPaymentPaymentSource < ActiveRecord::Base
has_many :payments, :as => :source
# Lists available actions.
def actions
%w{capture void credit}
end
... | bsd-3-clause |
declarativitydotnet/p2 | net/defrag.C | 3422 | // -*- c-basic-offset: 2; related-file-name: "frag.h" -*-
/*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300,
* Berkeley, CA, 94704. Attention: Intel License Inqu... | bsd-3-clause |
youtube/cobalt | third_party/llvm-project/compiler-rt/test/ubsan/TestCases/TypeCheck/Function/function.cpp | 3447 | // RUN: %clangxx -std=c++17 -fsanitize=function %s -O3 -g -o %t
// RUN: %run %t 2>&1 | FileCheck %s
// Verify that we can disable symbolization if needed:
// RUN: %env_ubsan_opts=symbolize=0 %run %t 2>&1 | FileCheck %s --check-prefix=NOSYM
// XFAIL: win32,win64
// Unsupported function flag
// UNSUPPORTED: openbsd
#inc... | bsd-3-clause |
sorig/shogun | src/shogun/features/RandomFourierDotFeatures.cpp | 2578 | /*
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Authors: Evangelos Anagnostopoulos, Bjoern Esser
*/
#include <shogun/base/Parameter.h>
#include <shogun/mathematics/Math.h>
#include <shogun/features/RandomFourierDotFeatures.h>
namespace shogun {
enum KernelName;
CRandomFourie... | bsd-3-clause |
cornernote/yii-menu-module | menu/components/MenuAccessFilter.php | 860 | <?php
/**
* MenuAccessFilter
*
* @author Brett O'Donnell <cornernote@gmail.com>
* @author Zain Ul abidin <zainengineer@gmail.com>
* @copyright 2013 Mr PHP
* @link https://github.com/cornernote/yii-menu-module
* @license BSD-3-Clause https://raw.github.com/cornernote/yii-menu-module/master/LICENSE
*
* @package ... | bsd-3-clause |