repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
quaintm/octopus | octopus/static/libs/typeahead.js/test/highlight_spec.js | 3601 | describe('highlight', function () {
it('should allow tagName to be specified', function () {
var before = 'abcde',
after = 'a<span>bcd</span>e',
testNode = buildTestNode(before);
highlight({node: testNode, pattern: 'bcd', tagName: 'span'});
expect(testNode.innerHTML).toEqual(after);
});
... | bsd-3-clause |
neutrinog/Comperio | comperio/bugs/views.py | 1353 | from comperio.main.tools import MessageManager, render
from comperio.bugs.forms import BugForm
from django.shortcuts import Http404, redirect
from comperio.accounts.views import login_view
from comperio.bugs.models import Bug
def bugs(request):
"""bugs page"""
# prepare messages
mm = MessageManager(request... | bsd-3-clause |
loadtestgo/pizzascript | script-tester/src/main/java/com/loadtestgo/script/tester/pages/Headers.java | 1178 | package com.loadtestgo.script.tester.pages;
import com.loadtestgo.script.tester.annotations.Page;
import com.loadtestgo.script.tester.server.HttpHeaders;
import com.loadtestgo.script.tester.server.HttpRequest;
import com.loadtestgo.util.HttpHeader;
import java.io.IOException;
public class Headers {
@Page(desc = ... | bsd-3-clause |
miguelolivaresmendez/mofs | doc/mofs/html/search/all_7.js | 993 | var searchData=
[
['gaz',['gaz',['../structControlCommand.html#a67f1f379ff9963d15736c1e39c272e0d',1,'ControlCommand']]],
['genrule',['genRule',['../classmofs_1_1MOFSModel.html#a99f4ef974f0056a533ddee53b7e869f9',1,'mofs::MOFSModel']]],
['genrulebase',['genRulebase',['../classmofs_1_1MOFSModel.html#a2991bc845158d93... | bsd-3-clause |
junctionaof/thanagornfarm | backend/views/pond/edittype.php | 5823 | <?php
use yii\helpers\Url;
use yii\web\View;
use yii\helpers\Html;
use app\CategoryTree;
use app\DateUtil;
use app\Workflow;
use backend\components\UserMessage;
use backend\components\UiMessage;
use backend\components\Portlet;
use common\models\FAQ;
use backend\components\TagCloud;
use common\models\Food;... | bsd-3-clause |
alkaest2002/gzts-lab | modules/paypal/views/default/_paypalForm.php | 3241 | <?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
?>
<div id="paypalForm">
<?php $form = ActiveForm::begin(
[
'id' => 'paypal-form',
'enableAjaxValidation' => false,
'enableClientValidation' => false,
... | bsd-3-clause |
lebeddima/bookimed | backend/views/store/price/update.php | 88 | <?php
/**
* Created by PhpStorm.
* User: dimalebed
* Date: 7/18/16
* Time: 17:05
*/ | bsd-3-clause |
kusubooru/shimmie | shimmiedb/auth_test.go | 1449 | package shimmiedb_test
import (
"reflect"
"testing"
"github.com/kusubooru/shimmie"
)
func TestVerify(t *testing.T) {
shim, schema := setup(t)
defer teardown(t, shim, schema)
username := "john"
password := "1234"
u := &shimmie.User{
Name: username,
Pass: password,
Email: "john@doe.com",
}
// Creat... | bsd-3-clause |
vanadium/go.jiri | cmd/jiri/cl_test.go | 42845 | // Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import (
"bytes"
"fmt"
"io/ioutil"
"os"
"path"
"path/filepath"
"reflect"
"runtime"
"strings"
"testing"
"v.io/jiri"
"v.io/jiri/g... | bsd-3-clause |
jamesslock/james.sl | src/components/pages/TheSchoolFund/VideoAbout.js | 600 | import React, {Component} from 'react';
import YouTube from 'react-youtube';
import s from './TheSchoolFund.css';
export default class VideoABout extends Component {
render() {
const opts = {
height: '720',
width: '1280',
playerVars: { // https://developers.google.com/youtube/player_pa... | bsd-3-clause |
aarondancer/react-devtools | plugins/Relay/installRelayHook.js | 3833 | /**
* Copyright (c) 2015-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.
*
* @flow
*/... | bsd-3-clause |
blutack/mavlog | mavlog/__init__.py | 116 | # -*- coding: utf-8 -*-
__author__ = 'Gareth R'
__email__ = 'gareth.roberts@manchester.ac.uk'
__version__ = '0.1.0' | bsd-3-clause |
manuelpichler/phpUnderControl-copy-fork-and-follow-organization-repo | java/src/org/phpundercontrol/dashboard/ProjectInfos.java | 4208 | /**
* This file is part of phpUnderControl.
*
* Copyright (c) 2007-2010, Manuel Pichler <mapi@phpundercontrol.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:
*
* * Redistributi... | bsd-3-clause |
dictyBase/apihelpers | aphtest/expect.go | 1847 | package aphtest
import (
"fmt"
"net/http"
"net/http/httptest"
"strings"
"github.com/gocraft/dbr/v2"
)
// Resource is the interface that every http handler have to implement
type Resource interface {
// Gets the database handler
GetDbh() *dbr.Connection
// Handles the http GET for singular resource
Get(http.... | bsd-3-clause |
strogo/turbion | turbion/bits/watchlist/feeds.py | 1057 | from django.contrib.syndication.feeds import Feed
from django.utils.feedgenerator import Atom1Feed
from django.shortcuts import get_object_or_404
from django.utils.translation import ugettext_lazy as _
from django import http
from turbion.bits.blogs.models import Comment
from turbion.bits.profiles.models import Profil... | bsd-3-clause |
lichong012245/django-lfs-0.7.8 | lfs/static/jquery/jquery.fileupload-4.2.1/jquery.fileupload-ui.js | 19946 | /*
* jQuery File Upload User Interface Plugin 4.3
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://creativecommons.org/licenses/MIT/
*/
/*jslint browser: true */
/*global jQuery, FileReader, URL, webkitURL *... | bsd-3-clause |
denners777/API-Phalcon | app/modules/nucleo/controllers/ControllersController.php | 5775 | <?php
/**
* @copyright 2015 - 2016 Grupo MPE
* @license New BSD License; see LICENSE
* @link http://www.grupompe.com.br
* @author Denner Fernandes <denner.fernandes@grupompe.com.br>
* */
namespace App\Modules\Nucleo\Controllers;
use App\Modules\Nucleo\Models\Controllers;
use App\Shared\Control... | bsd-3-clause |
owtf/owtf | owtf/webapp/src/containers/Report/Export.js | 1257 | import Docxtemplater from "docxtemplater";
import { importDirectory } from "../../utils/export";
import JSZip from "jszip";
import saveAs from "save-as";
import "@babel/polyfill";
const templates = importDirectory(
require.context("./templates/", true, /\.(docx)$/)
);
export const templatesNames = Object.keys(templ... | bsd-3-clause |
dgg/nmoneys | src/NMoneys/Serialization/Data.net.cs | 1392 | using System.Runtime.Serialization;
namespace NMoneys.Serialization
{
internal static class Data
{
[DataContract]
public class Currency
{
internal const string ISO_CODE = "isoCode";
internal const string ROOT_NAME = "currency", DATA_TYPE = "currencyType";
[DataMember(Name = ISO_CODE)]
public stri... | bsd-3-clause |
nsf-ri-ubicv/sthor | sthor/model/slm.py | 12479 | """Sequential Layered Model"""
# Authors: Nicolas Pinto <nicolas.pinto@gmail.com>
# Nicolas Poilvert <nicolas.poilvert@gmail.com>
#
# License: BSD
import numpy as np
import numexpr as ne
import warnings
from skimage.util.shape import view_as_windows
from sthor.operation import lcdnorm3
from sthor.operation... | bsd-3-clause |
vitalik199415/motor.com | application/logs/2015/03/12.php | 1296 | <?php defined('SYSPATH') OR die('No direct script access.'); ?>
2015-03-12 15:35:14 --- EMERGENCY: ErrorException [ 8 ]: Undefined variable: title ~ APPPATH/views/front/404.php [ 8 ] in /opt/lampp/htdocs/motor.com/application/views/front/404.php:8
2015-03-12 15:35:14 --- DEBUG: #0 /opt/lampp/htdocs/motor.com/applicati... | bsd-3-clause |
nacl-webkit/chrome_deps | chrome/browser/profiles/profile_manager.cc | 39240 | // 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 <set>
#include "chrome/browser/profiles/profile_manager.h"
#include "base/bind.h"
#include "base/command_line.h"
#include "base/file_path.h... | bsd-3-clause |
MLCL/Byblo | src/main/java/uk/ac/susx/mlcl/byblo/enumerators/EnumeratorType.java | 3593 | /*
* Copyright (c) 2010-2013, University of Sussex
* 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 l... | bsd-3-clause |
epixa/Epixa | library/Epixa/Acl/AclManager.php | 4319 | <?php
/**
* Epixa Library
*/
namespace Epixa\Acl;
use Zend_Acl as Acl,
Zend_Acl_Resource_Interface as ResourceInterface,
Epixa\Acl\AclService,
Epixa\Acl\MultiRoles,
InvalidArgumentException;
/**
* @category Epixa
* @package Acl
* @copyright 2010 epixa.com - Court Ewing
* @license http://gi... | bsd-3-clause |
thezbyg/gpick | source/uiDialogSort.cpp | 19621 | /*
* Copyright (c) 2009-2021, Albertas Vyšniauskas
* 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 |
Arrayword/Phexcore | public/includes/Phexcore/Exception/FileNotFoundException.php | 217 | <?php
/**
* Phexcore (http://phexcore.com/)
*
* @copyright Copyright (c) 2014 Arrayword (http://arrayword.com/)
*/
namespace Phexcore\Exception;
use Exception;
class FileNotFoundException extends Exception
{
}
| bsd-3-clause |
fdoray/libtrace | src/parser/decoder_unittest.cc | 6913 | // Copyright (c) 2014 The LibTrace 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:
// * Redistributions of source code must retain the above copyright
// notice, this list of co... | bsd-3-clause |
mterwoord/uwp-diagnostics | Sources/UwpDiagnostics/App.xaml.cs | 3986 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xam... | bsd-3-clause |
reqT/reqT-syntax | src/org/fife/ui/rsyntaxtextarea/TokenIterator.java | 1844 | /*
* 08/28/2013
*
* TokenIterator.java - An iterator over the Tokens in an RSyntaxDocument.
*
* This library is distributed under a modified BSD license. See the included
* RSyntaxTextArea.License.txt file for details.
*/
package org.fife.ui.rsyntaxtextarea;
import java.util.Iterator;
/**
* Allows you to i... | bsd-3-clause |
youtube/cobalt | third_party/devtools/front_end/ui/TextEditor.js | 3074 | // 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.
/**
* @interface
*/
export class TextEditorFactory {
/**
* @param {!UI.TextEditor.Options} options
* @return {!TextEditor}
*/
createEditor(o... | bsd-3-clause |
zbyte64/django-hyperadmin | hyperadmin/mediatypes/json.py | 997 | from __future__ import absolute_import
from django import http
from datatap.datataps import JSONDataTap
from hyperadmin.mediatypes.datatap import DataTap
class JSON(DataTap):
recognized_media_types = [
'application/json'
]
def __init__(self, api_request, **kwargs):
kwargs.setdefault('d... | bsd-3-clause |
byzhang/blaze | blazetest/src/mathtest/smatsmatadd/DCbHCb.cpp | 4170 | //=================================================================================================
/*!
// \file src/mathtest/smatsmatadd/DCbHCb.cpp
// \brief Source file for the DCbHCb sparse matrix/sparse matrix addition math test
//
// Copyright (C) 2013 Klaus Iglberger - All Rights Reserved
//
// This file is p... | bsd-3-clause |
tdgoodrich/inddgo_pure | lib_graphd/test/WeightedGraphTest.cpp | 3888 | /*
This file is part of INDDGO.
Copyright (C) 2012, Oak Ridge National Laboratory
This product includes software produced by UT-Battelle, LLC under Contract No.
DE-AC05-00OR22725 with the Department of Energy.
This program is free software; you can redistribute it and/or modify
it under the terms o... | bsd-3-clause |
fraunhoferfokus/particity | portlet_data/src/main/java/de/fraunhofer/fokus/oefit/particity/service/impl/AHOfferLocalServiceImpl.java | 23665 | /*
* Copyright (c) 2015, Fraunhofer FOKUS
* 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 |
hukumonline/yii | sample4/simplesaml.1.5/modules/saml2/lib/Auth/Source/SP.php | 8908 | <?php
/**
* SAML 2.0 SP authentication client.
*
* Note: This authentication source is depreceated. You should
* use saml:sp instead.
*
* Example:
* 'example-openidp' => array(
* 'saml2:SP',
* 'idp' => 'https://openidp.feide.no',
* ),
*
* @package simpleSAMLphp
* @version $Id$
*/
class sspmod_saml2_A... | bsd-3-clause |
nwjs/chromium.src | ui/wm/core/shadow_controller.cc | 12358 | // 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 "ui/wm/core/shadow_controller.h"
#include <utility>
#include "base/check.h"
#include "base/command_line.h"
#include "base/containers/contai... | bsd-3-clause |
vivyly/fancastic_17 | fancastic_17/config/local.py | 1253 | # -*- coding: utf-8 -*-
'''
Local Configurations
- Runs in Debug mode
- Uses console backend for emails
- Use Django Debug Toolbar
'''
from configurations import values
from .common import Common
class Local(Common):
# DEBUG
DEBUG = values.BooleanValue(True)
TEMPLATE_DEBUG = DEBUG
# END DEBUG
#... | bsd-3-clause |
fake-name/ReadableWebProxy | WebMirror/management/rss_parser_funcs/feed_parse_extractGodofabcBlogspotCom.py | 869 | def extractGodofabcBlogspotCom(item):
'''
Parser for 'godofabc.blogspot.com'
'''
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol) or "preview" in item['title'].lower():
return None
tagmap = [
('RE:Yandere', 'RE:Yandere', ... | bsd-3-clause |
hung101/kbs | frontend/models/RefStatusMouMaoAntarabangsa.php | 2393 | <?php
namespace app\models;
use Yii;
use app\models\general\GeneralLabel;
use app\models\general\GeneralMessage;
/**
* This is the model class for table "tbl_ref_status_mou_mao_antarabangsa".
*
* @property integer $id
* @property string $desc
* @property integer $aktif
* @property integer $created_by
* @prop... | bsd-3-clause |
chillu/silverstripe-drupal-blog-importer | tests/DrupalBlogUserBulkLoaderTest.php | 1309 | <?php
class DrupalBlogUserBulkLoaderTest extends SapphireTest
{
protected $usesDatabase = true;
protected $requiredExtensions = array(
'Member' => array('DrupalMemberExtension'),
'BlogEntry' => array('DrupalBlogEntryExtension'),
);
public function testImport()
{
$loader = ... | bsd-3-clause |
jaredwilkening/goprotobuf | proto/clone_test.go | 2700 | // Go support for Protocol Buffers - Google's data interchange format
//
// Copyright 2011 Google Inc. All rights reserved.
// http://code.google.com/p/goprotobuf/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
... | bsd-3-clause |
Bysmyyr/chromium-crosswalk | chrome/android/java/src/org/chromium/chrome/browser/preferences/Preferences.java | 10843 | // 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.
package org.chromium.chrome.browser.preferences;
import android.Manifest;
import android.annotation.SuppressLint;
import android.app.Fragment;
import and... | bsd-3-clause |
vnesek/nmote-xr | src/main/java/com/nmote/nanohttp/NanoServlet.java | 358 | /*
* Copyright (c) Nmote Ltd. 2003-2014. All rights reserved.
* See LICENSE doc in a root of project folder for additional information.
*/
package com.nmote.nanohttp;
import java.io.IOException;
public interface NanoServlet {
boolean canProcess(NanoRequest nanoRequest);
void process(NanoRequest... | bsd-3-clause |
liuxulei/zend_project | angulr/index.php | 41 | <?php
echo 'this is new folder.';
exit; | bsd-3-clause |
gamersmafia/gamersmafia | app/models/term.rb | 37521 | # -*- encoding : utf-8 -*-
class Term < ActiveRecord::Base
VALID_TAXONOMIES = %w(
BazarDistrict
Clan
ContentsTag
DownloadsCategory
EventsCategory
Game
GamePublisher
GamingPlatform
Homepage
ImagesCategory
NewsCategory
TopicsCategory
Tutorial... | bsd-3-clause |
rsalmaso/django-cms | cms/signals/apphook.py | 1381 | import logging
import sys
from django.core.management import color_style
from django.core.signals import request_finished
from django.urls import clear_url_caches
from cms.utils.apphook_reload import mark_urlconf_as_changed
logger = logging.getLogger(__name__)
DISPATCH_UID = 'cms-restart'
def trigger_server_resta... | bsd-3-clause |
mural/spm | db4oj/src/main/java/com/db4o/foundation/List4.java | 1521 | /* 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 |
hung101/kbs | frontend/views/ref-bahagian-kemudahan/index.php | 1459 | <?php
use yii\helpers\Html;
use yii\grid\GridView;
use app\models\general\GeneralLabel;
/* @var $this yii\web\View Atlet::findOne($id)*/
/* @var $searchModel frontend\models\RefBahagianKemudahanSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Bahagian Kemudahan';
$this->params['breadcru... | bsd-3-clause |
fallenwood/libhare | tests/net/event_loop_test.cc | 927 | #include <hare/base/thread.h>
#include <hare/net/event_loop.h>
#include <cassert>
#include <cstdio>
#include <functional>
#include <unistd.h>
using namespace hare;
using namespace hare::net;
EventLoop *g_loop;
void callback() {
printf("callback(): pid = %d, tid = %d\n", getpid(), CurrentThread::tid());
EventLoo... | bsd-3-clause |
yjhu/wowewe | models/GiftboxCategory.php | 1178 | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "giftbox_category".
*
* @property integer $id
* @property string $content
* @property integer $quantity
* @property integer $remaining
*/
class GiftboxCategory extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
pub... | bsd-3-clause |
FernandoMauricio/portal-senac | modules/manut_transporte/views/manutencao-admin-acompanhamento/create.php | 534 | <?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\modules\manut_transporte\models\ManutencaoAdminAcompanhamento */
$this->title = 'Create Manutencao Admin Acompanhamento';
$this->params['breadcrumbs'][] = ['label' => 'Manutencao Admin Acompanhamento', 'url' => ['index']];
$this->params['b... | bsd-3-clause |
chamindar2002/htl-bkng | views/dashboard/index.php | 33108 | <div class="row">
<div class="col-lg-12">
<h1 class="page-header">Dashboard</h1>
</div>
<!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class="row">
<div class="col-lg-3 col-md-6">... | bsd-3-clause |
gingerwfms/ginger-wfms | module/Application/src/Application/ModuleInclusion/Service/PluginHandlerFactory.php | 1032 | <?php
/*
* This file is part of the codeliner/ginger-wfms package.
* (c) Alexander Miertsch <kontakt@codeliner.ws>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Application\ModuleInclusion\Service;
use Application\Modul... | bsd-3-clause |
menudoproblema/SubscriptionFramework | tests/subscription/test_signals.py | 3817 | import unittest
from subscription.signals import Signal
from subscription.signals.accumulators import *
def handler_none(*args, **kwargs):
return None
def handler_true(*args, **kwargs):
return True
def handler_false(*args, **kwargs):
return False
def handler_zero(*args, **kwargs):
return 0
def... | bsd-3-clause |
brucewu0329/pcl | visualization/src/vtk/pcl_context_item.cpp | 7226 | /*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2012-, Open Perception, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... | bsd-3-clause |
liupdhc/yii2-liuxy-demo | modules/components/assets/frontend/PageScriptAsset.php | 1348 | <?php
/**
* Created by PhpStorm.
* User: liu
* Date: 2015/12/26
* Time: 20:28
*/
namespace modules\components\assets\frontend;
use Yii;
use liuxy\frontend\assets\AbstractAsset;
/**
* Class PageScriptAsset
* @package modules\components\assets\frontend
*/
class PageScriptAsset extends AbstractAsset
{
/**
... | bsd-3-clause |
codebutler/savagesvg | src/SharpVectorCss/SharpVectors/Dom/Css/CssStyleSheet.cs | 6763 | using System;
using System.Xml;
using System.Net;
using System.Text.RegularExpressions;
using System.Collections;
using SharpVectors.Dom.Stylesheets;
namespace SharpVectors.Dom.Css
{
/// <summary>
/// The CSSStyleSheet interface is a concrete interface used to represent a CSS style sheet i.e., a style sheet whose co... | bsd-3-clause |
OWASP/django-DefectDojo | dojo/management/commands/system_settings.py | 1039 | from django.core.management.base import BaseCommand
from dojo.models import System_Settings
class Command(BaseCommand):
help = 'Updates product grade calculation'
def handle(self, *args, **options):
code = """def grade_product(crit, high, med, low):
health=100
if crit > 0:
... | bsd-3-clause |
smcgov/ohana-api-smc | db/migrate/20140328042108_create_faxes.rb | 262 | class CreateFaxes < ActiveRecord::Migration
def change
create_table :faxes do |t|
t.belongs_to :location, null: false
t.text :number, null: false
t.text :department
t.timestamps
end
add_index :faxes, :location_id
end
end
| bsd-3-clause |
AlexanderFabisch/cythonwrapper | pywrap/cython.py | 6134 | import os
import sys
from .defaultconfig import Config
from .exporter import CythonDeclarationExporter, CythonImplementationExporter
from .parser import Parser, Includes, TypeInfo
from .ast import postprocess_asts
from .templates import render
from .utils import make_header, file_ending, hidden_stdout, hidden_stderr
... | bsd-3-clause |
cvsuser-chromium/chromium | cc/resources/scoped_resource_unittest.cc | 4305 | // Copyright 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 "cc/resources/scoped_resource.h"
#include "cc/output/renderer.h"
#include "cc/test/fake_output_surface.h"
#include "cc/test/fake_output_surface_... | bsd-3-clause |
cedriclaunay/gaffer | src/GafferImageBindings/FormatPlugBinding.cpp | 4207 | //////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2012-2013, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... | bsd-3-clause |
JianpingZeng/xcc | xcc/test/juliet/testcases/CWE762_Mismatched_Memory_Management_Routines/s02/CWE762_Mismatched_Memory_Management_Routines__delete_array_wchar_t_realloc_42.cpp | 3401 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__delete_array_wchar_t_realloc_42.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete_array.label.xml
Template File: sources-sinks-42.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory ... | bsd-3-clause |
amanjpro/languages-a-la-carte | ppj/src/main/scala/ast/TreeUtils.scala | 2944 | /*
* Copyright (c) <2015-2016>, see CONTRIBUTORS
* 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 |
Hyperion3360/HyperionRobot2014 | src/org/usfirst/frc3360/Hyperion2014/commands/Canon_ShootTopGoalTeleop.java | 1054 | // RobotBuilder Version: 1.0
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the blocks... | bsd-3-clause |
nicksenger/JSchematic | src/js/containers/bondSystems/cyclopentane.js | 4625 | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { createElement, saveState } from '../../actions/index';
import { calcRotation } from '../../utilities/sharedFunctions';
import BasicBond from '../basicBond';
require("../../../css... | bsd-3-clause |
Rusk85/CavemanToolBySapiensworks | src/CavemanTools.Web/CavemanHashStrategy.cs | 857 | using System;
namespace CavemanTools.Web
{
public class CavemanHashStrategy:IHashPassword
{
/// <summary>
/// Creates a hash for a string using salt
/// </summary>
/// <param name="text">Value to hash</param>
/// <param name="salt">Optional random string</param... | bsd-3-clause |
mako-framework/framework | src/mako/http/request/Headers.php | 5658 | <?php
/**
* @copyright Frederic G. Østby
* @license http://www.makoframework.com/license
*/
namespace mako\http\request;
use ArrayIterator;
use Countable;
use IteratorAggregate;
use function array_merge;
use function array_values;
use function count;
use function explode;
use function krsort;
use function str_... | bsd-3-clause |
fredd-for/codice | ckeditor/_source/core/htmlparser.js | 6656 | /*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* Creates a {@link CKEDITOR.htmlParser} class instance.
* @class Provides an "event like" system to parse strings of HTML data.
* @example
* var parser = new CKEDITOR... | bsd-3-clause |
Workday/OpenFrame | chrome/browser/ui/android/infobars/infobar_android.cc | 2673 | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/android/infobars/infobar_android.h"
#include "base/android/jni_android.h"
#include "base/android/jni_string.h"
#include "base... | bsd-3-clause |
amanjpro/languages-a-la-carte | dynj/src/main/scala/ast/operators.scala | 1843 | /*
* Copyright (c) <2015-2016>, see CONTRIBUTORS
* 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 |
sebcrozet/ncollide | src/shape/shape.rs | 5722 | // Queries.
use crate::bounding_volume::{BoundingSphere, AABB};
use crate::math::{Isometry, Vector};
use crate::query::{PointQuery, RayCast};
use crate::shape::{CompositeShape, ConvexPolyhedron, DeformableShape, FeatureId, SupportMap};
use downcast_rs::Downcast;
use na::{self, RealField, Unit};
use std::ops::Deref;
use... | bsd-3-clause |
qcscine/utilities | src/Utils/Utils/Scf/ConvergenceAccelerators/FockDiis.cpp | 3870 | /**
* @file
* @copyright This code is licensed under the 3-clause BSD license.\n
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.\n
* See LICENSE.txt for details.
*/
#include "FockDiis.h"
#include <Eigen/QR>
#include <algorithm>
namespace Scine {
namespace Utils {
Fo... | bsd-3-clause |
mateka/dmexl | dmexlib/src/main/java/pl/edu/mimuw/dmexlib/utils/TreeFuture.java | 1401 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package pl.edu.mimuw.dmexlib.utils;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
/**
*
* @aut... | bsd-3-clause |
iphoting/healthchecks | hc/api/tests/test_create_check.py | 9867 | from datetime import timedelta as td
import json
from hc.api.models import Channel, Check
from hc.test import BaseTestCase
class CreateCheckTestCase(BaseTestCase):
URL = "/api/v1/checks/"
def post(self, data, expect_fragment=None):
if "api_key" not in data:
data["api_key"] = "X" * 32
... | bsd-3-clause |
BSVino/Digitanks | digitanks/src/dtintro/main.cpp | 493 | #include "intro_window.h"
extern tvector<Color> FullScreenShot(int& iWidth, int& iHeight);
void CreateApplication(int argc, char** argv)
{
int iWidth, iHeight;
tvector<Color> aclrScreenshot = FullScreenShot(iWidth, iHeight);
CIntroWindow oWindow(argc, argv);
oWindow.SetScreenshot(aclrScreenshot, iWidth, iHeight... | bsd-3-clause |
seanlong/crosswalk | app/android/app_template/src/org/xwalk/app/template/AppTemplateActivity.java | 1403 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.xwalk.app.template;
import android.graphics.Color;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import ... | bsd-3-clause |
fromkeith/awsgo | swf/respondActivityTaskCanceled.go | 3218 | /*
* Copyright (c) 2014, fromkeith
* 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 condition... | bsd-3-clause |
kponda/SaikoroOmikuji | RankingEngine/app.js | 2326 | var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var path = require('path');
var routes = require('./routes/index');
var system_config_path = path.... | bsd-3-clause |
iainbeeston/shipment_tracker | config/application.rb | 1589 | require File.expand_path('../boot', __FILE__)
# Pick the frameworks you want:
require 'active_model/railtie'
require 'active_record/railtie'
require 'action_controller/railtie'
require 'action_mailer/railtie'
require 'action_view/railtie'
require 'sprockets/railtie'
# require "rails/test_unit/railtie"
# Require the g... | bsd-3-clause |
hogin/panliu | frontend/controllers/NewsController.php | 2633 | <?php
namespace frontend\controllers;
use Yii;
use yii\web\Controller;
use yii\data\ActiveDataProvider;
use frontend\models\NewForm;
use frontend\models\UserForm;
use frontend\models\CategoryForm;
use yii\web\NotFoundHttpException;
class NewsController extends Controller
{
public function actionIndex()... | bsd-3-clause |
junstyle/php.tools | src/Additionals/PSR2MultilineFunctionParams.php | 1976 | <?php
final class PSR2MultilineFunctionParams extends AdditionalPass {
const LINE_BREAK = "\x2 LN \x3";
public function candidate($source, $foundTokens) {
if (isset($foundTokens[T_FUNCTION])) {
return true;
}
return false;
}
public function format($source) {
$this->tkns = token_get_all($source);
$t... | bsd-3-clause |
bigjun/mrpt | apps/simul-landmarks/simul-landmarks-main.cpp | 16482 | /* +---------------------------------------------------------------------------+
| The Mobile Robot Programming Toolkit (MRPT) |
| |
| http://www.mrpt.org/ ... | bsd-3-clause |
zenus/thinkphpLint | test/stdlib/it/icosaedro/lint/data/5-general.php | 11990 | <?php
/**
* PHPLint Test Program
* @package PHPLintTest
* @author Umberto Salsi
* @copyright 2005 Umberto Salsi
* @license http://www.icosaedro.it/phplint/manual.html?p=license BSD-style
*/
/*.
require_module 'standard';
.*/
/* literals: */
define("BOOL1", false || true && (1&2^3|4) == 0);
define("INT1", ... | bsd-3-clause |
NLog/NLog | tests/NLog.UnitTests/Layouts/LayoutTypedTests.cs | 32395 | //
// Copyright (c) 2004-2021 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 ... | bsd-3-clause |
endlessm/chromium-browser | chromeos/services/secure_channel/connection_medium.cc | 544 | // Copyright 2018 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 "chromeos/services/secure_channel/connection_medium.h"
#include "base/check.h"
namespace chromeos {
namespace secure_channel {
std::ostream& ... | bsd-3-clause |
endlessm/chromium-browser | chrome/android/feed/core/java/src/org/chromium/chrome/browser/feed/library/feedsessionmanager/internal/SessionContentTracker.java | 2491 | // 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.
package org.chromium.chrome.browser.feed.library.feedsessionmanager.internal;
import org.chromium.chrome.browser.feed.library.common.logging.Dumpable;
im... | bsd-3-clause |
wdavidw/node-csv-docs | .eslintrc.js | 128 | module.exports = {
globals: {
__PATH_PREFIX__: true,
},
extends: `react-app`,
"rules": {
"no-eval": true
}
}
| bsd-3-clause |
Team3574/Alastair | src/edu/wpi/first/wpilibj/templates/subsystems/Drive.java | 3229 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package edu.wpi.first.wpilibj.templates.subsystems;
import edu.wpi.first.wpilibj.Encoder;
import edu.wpi.first.wpilibj.Jaguar;
import edu.wpi.first.wpilibj.command.Subsystem;
import edu.wpi.first.wpilibj.livewindow.Live... | bsd-3-clause |
patrickm/chromium.src | sync/notifier/gcm_network_channel_unittest.cc | 18455 | // 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 "base/run_loop.h"
#include "base/strings/string_util.h"
#include "google_apis/gaia/google_service_auth_error.h"
#include "net/url_request/test_ur... | bsd-3-clause |
parsers/php-parser | lib/PHPParser/Node/Expression/AssignMulExpression.php | 799 | <?php
namespace PHPParser\Node\Expression;
/**
* @property \PHPParser\Node\Expression\Expression $var Variable
* @property \PHPParser\Node\Expression\Expression $expr Expression
*/
class AssignMulExpression extends Expression
{
/**
* Constructs an assignment with multiplication node.
*
* @param... | bsd-3-clause |
shishkander/luci-go | common/logging/logging.go | 2923 | // 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.
/*
Package logging defines Logger interface and context.Context helpers to put\get
logger from context.Context.
Unfortunately standard library doesn't de... | bsd-3-clause |
comilla/map | config/initializers/error_notifier.rb | 1155 | require 'rollbar/rails'
Rollbar.configure do |config|
config.access_token = Cartodb.config[:rollbar_api_key]
config.enabled = Rails.env.production? || Rails.env.staging?
# Add exception class names to the exception_level_filters hash to
# change the level that exception is reported at. Note that if an exception... | bsd-3-clause |
ericdill/databroker | databroker/assets/core.py | 12168 | from __future__ import (absolute_import, division, print_function,
unicode_literals)
import six
from jsonschema import validate as js_validate
import warnings
import uuid
import time as ttime
import pandas as pd
from ..utils import sanitize_np, apply_to_dict_recursively
class DatumNotFound(Ex... | bsd-3-clause |
datafolklabs/cement | tests/utils/test_fs.py | 2007 |
import os
from pytest import raises
from cement.utils import fs
def test_abspath(tmp):
path = fs.abspath('.')
assert path.startswith('/')
def test_join(tmp, rando):
full_path = os.path.abspath(os.path.join(tmp.dir, rando))
assert fs.join(tmp.dir, rando) == full_path
def test_join_exists(tmp, rand... | bsd-3-clause |
darug/dds-yii | protected/views/felvilagosit/_view.php | 503 | <?php
/* @var $this FelvilagositController */
/* @var $data Felvilagosit */
$bUrl=Yii::app()->request->baseUrl;
?>
<div class="view">
<fieldset>
<legend align="center" ><?php echo CHtml::encode($data->title); ?></legend>
<br />
<a href="<?php if(strpos($data->link,'://')){ echo $data->link;} else {echo $bUrl.$... | bsd-3-clause |
smartdevicelink/sdl_atf_test_scripts | test_scripts/MobileProjection/Phase1/001_Start_video_audio_service.lua | 1711 | ---------------------------------------------------------------------------------------------------
-- User story: TBD
-- Use case: TBD
--
-- Requirement summary:
-- TBD
--
-- Description:
-- In case:
-- 1) Application is registered with PROJECTION appHMIType
-- 2) and starts video and audio services
-- SDL must:
-- 1)... | bsd-3-clause |
glogiotatidis/mozillians-new | media/js/infinite.js | 1388 | (function($) {
'use strict';
$().ready(function() {
var paginator = $('.pagination');
var results = $('#final-result')
var pages = paginator.attr('data-pages');
// Variable to keep track of whether we've reached our max page
var cease;
paginator.hide();
re... | bsd-3-clause |
NUBIC/psc-mirror | core/src/main/java/edu/northwestern/bioinformatics/studycalendar/xml/writers/PreviousScheduledActivityStateXmlSerializer.java | 481 | package edu.northwestern.bioinformatics.studycalendar.xml.writers;
import edu.northwestern.bioinformatics.studycalendar.xml.XsdElement;
import static edu.northwestern.bioinformatics.studycalendar.xml.XsdElement.PREVIOUS_SCHEDULED_ACTIVITY_STATE;
/**
* @author John Dzak
*/
public class PreviousScheduledActivityState... | bsd-3-clause |
atheken/NoRM | NoRM/Commands/Qualifiers/InQualifier.cs | 538 | using Norm.BSON;
namespace Norm.Commands.Qualifiers
{
/// <summary>
/// The in qualifier.
/// </summary>
/// <typeparam retval="T">In type to qualify</typeparam>
public class InQualifier<T> : QualifierCommand
{
/// <summary>
/// Initializes a new instance of the <see cref="InQu... | bsd-3-clause |