repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
nicko96/Chrome-Infra | appengine/chromium_cq_status/js/tests/stats_test_data.js | 67294 | // 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.
var stats_test_data = {
"cursor": "CkYKEgoFYmVnaW4SCQiA4KDXkdbFAhIsahRzfmNocm9taXVtLWNxLXN0YXR1c3IUCxIHQ1FTdGF0cxiAgIDihtCbCwwYACAB",
"results": [
... | bsd-3-clause |
MiddlewareICS/MiddlewareICS-2.0 | app/edu/pc3/sensoract/vpds/model/TaskletModel.java | 3141 | /*
* Copyright (c) 2012, Indraprastha Institute of Information Technology,
* Delhi (IIIT-D) and The 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 |
Bysmyyr/chromium-crosswalk | chrome/common/extensions/feature_switch_unittest.cc | 7130 | // 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 "extensions/common/feature_switch.h"
#include "base/command_line.h"
#include "base/memory/scoped_ptr.h"
#include "base/metrics/field_trial.h... | bsd-3-clause |
endlessm/chromium-browser | ash/highlighter/highlighter_gesture_util_unittest.cc | 6355 | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/highlighter/highlighter_gesture_util.h"
#include "ash/fast_ink/fast_ink_points.h"
#include "ash/test/ash_test_base.h"
#include "ui/gfx/geome... | bsd-3-clause |
hlzz/dotfiles | graphics/cgal/Convex_hull_3/test/Convex_hull_3/ch3_dual_test_less_signed_distance_to_plane_3.cpp | 1558 | #include <cassert>
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Convex_hull_3/dual/Convex_hull_traits_dual_3.h>
#include <CGAL/Convex_hull_traits_3.h>
#include "include/to_dual.h"
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef K::Plane_3 Plane;
typedef CGAL:... | bsd-3-clause |
rtucker-mozilla/mozpackager | vendor-local/lib/python/kombu/transport/virtual/__init__.py | 25672 | """
kombu.transport.virtual
=======================
Virtual transport implementation.
Emulates the AMQ API for non-AMQ transports.
"""
from __future__ import absolute_import
import base64
import socket
import warnings
from itertools import count
from time import sleep, time
from Queue import Empty
from kombu.exce... | bsd-3-clause |
takeflight/wagtail | wagtail/contrib/search_promotions/tests.py | 17166 | from django.test import TestCase
from django.urls import reverse
from wagtail.contrib.search_promotions.models import SearchPromotion
from wagtail.contrib.search_promotions.templatetags.wagtailsearchpromotions_tags import \
get_search_promotions
from wagtail.search.models import Query
from wagtail.tests.utils impo... | bsd-3-clause |
patrickm/chromium.src | chrome/browser/extensions/convert_web_app.cc | 6340 | // 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/convert_web_app.h"
#include <cmath>
#include <limits>
#include <string>
#include <vector>
#include "base/base64.... | bsd-3-clause |
armon/pypred | pypred/__init__.py | 336 | __version__ = "0.3.6"
from .ast import Undefined
from .merge import RefactorSettings
from .predicate import Predicate, InvalidPredicate
from .set import PredicateSet, OptimizedPredicateSet
__all__ = [
"Predicate",
"InvalidPredicate",
"PredicateSet",
"OptimizedPredicateSet",
"RefactorSettings",
... | bsd-3-clause |
espadrine/opera | chromium/src/third_party/WebKit/Source/core/accessibility/AccessibilityMenuListPopup.cpp | 4423 | /*
* Copyright (C) 2010 Apple 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... | bsd-3-clause |
irobayna/stupidedi | lib/stupidedi/versions/003050/segment_defs/W04.rb | 1626 | # frozen_string_literal: true
module Stupidedi
module Versions
module ThirtyFifty
module SegmentDefs
s = Schema
e = ElementDefs
r = ElementReqs
W04 = s::SegmentDef.build(:W04, "Item Detail Total",
"To designate those line items that were shipped",
e::E382... | bsd-3-clause |
andrewseidl/chrono | src/chrono_vehicle/wheeled_vehicle/tire/ANCFToroidalTire.cpp | 5047 | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All right 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 th... | bsd-3-clause |
smartdevicelink/sdl_atf_test_scripts | test_scripts/MobileProjection/Phase2/smoke/013_two_apps_interaction.lua | 6620 | ---------------------------------------------------------------------------------------------------
-- Issue: https://github.com/smartdevicelink/sdl_core/issues/2129
---------------------------------------------------------------------------------------------------
-- Description:
-- In case:
-- 1) Mobile app1 is regis... | bsd-3-clause |
teasim/helpers | source/transitionEnd.js | 1004 | import transition from "./transitionProps";
import directStyle from "./directStyle";
function parseDuration(node) {
const str = directStyle(node, transition.duration);
const mult = str.indexOf("ms") === -1 ? 1000 : 1;
return parseFloat(str) * mult;
}
function transitionEnd(node, handler, duration) {
const fa... | bsd-3-clause |
elektropay/Cachet | app/Bus/Commands/IncidentUpdate/CreateIncidentUpdateCommand.php | 1705 | <?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.
*/
namespace CachetHQ\Cachet\Bus\Commands\IncidentUpdate;
use CachetHQ\Cachet\Models\Incident;
use CachetHQ\... | bsd-3-clause |
gbhorwood/Clibelt | doxygen/docs/html/search/functions_a.js | 238 | var searchData=
[
['wraptoterminalwidth',['wrapToTerminalWidth',['../class_clibelt.html#af3d68df8f32f9dc3045bbf7e89f724bf',1,'Clibelt']]],
['write',['write',['../class_clibelt.html#ae2bf9f3d3d56241108d9d2c46728b95a',1,'Clibelt']]]
];
| bsd-3-clause |
yidashi/yii | plugins/prettify/Plugin.php | 860 | <?php
/**
* Created by PhpStorm.
* User: yidashi
* Date: 16/7/4
* Time: 下午1:46
*/
namespace plugins\prettify;
use yii\base\BootstrapInterface;
use yii\web\View;
use yii\base\Event;
class Plugin extends \plugins\Plugin implements BootstrapInterface
{
public $info = [
'author' => '易大师',
'vers... | bsd-3-clause |
jcai19/smm_gem5 | src/cpu/simple/base.cc | 16710 | /*
* Copyright (c) 2010-2012 ARM Limited
* Copyright (c) 2013 Advanced Micro Devices, Inc.
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual proper... | bsd-3-clause |
aadsm/react-devtools | frontend/SearchPane.js | 4283 | /**
* 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 |
scheib/chromium | third_party/blink/renderer/core/paint/paint_timing.cc | 15657 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/paint/paint_timing.h"
#include <memory>
#include <utility>
#include "base/metrics/histogram_macros.h"
#include... | bsd-3-clause |
dustcloud/dustlink | views/web/AppsPages.py | 19763 | import logging
class NullHandler(logging.Handler):
def emit(self, record):
pass
log = logging.getLogger('AppsPages')
log.setLevel(logging.ERROR)
log.addHandler(NullHandler())
import random
from dustWeb import web
from DustLinkData import DataVaultException, \
DustLinkDat... | bsd-3-clause |
eltondias/SistemaCobrancaBG | vendor/zendframework/zendframework/library/Zend/Db/RowGateway/RowGateway.php | 1539 | <?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
n... | bsd-3-clause |
uq-eresearch/gbr-cat | CRESIS/AJAX_APP/src/main/webapp/cresis/js/source/widgets/form/Checkbox.js | 4473 | /*
* Ext JS Library 2.0.2
* Copyright(c) 2006-2008, Ext JS, LLC.
* licensing@extjs.com
*
* http://extjs.com/license
*/
/**
* @class Ext.form.Checkbox
* @extends Ext.form.Field
* Single checkbox field. Can be used as a direct replacement for traditional checkbox fields.
* @constructor
* Creates a n... | bsd-3-clause |
uniqna/uniqna | user/migrations/0004_auto_20170627_2322.py | 903 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-06-27 17:52
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0003_student_notification_emails'),
]
operations = [
migrations.Rem... | bsd-3-clause |
keishi/chromium | content/browser/android/browser_jni_registrar.cc | 2069 | // 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/android/browser_jni_registrar.h"
#include "base/android/jni_android.h"
#include "base/android/jni_registrar.h"
#include "co... | bsd-3-clause |
lukehutch/gribbit-rox | attic/src/com/flat502/rox/marshal/xmlrpc/XmlRpcSaxParserFactory.java | 1357 | package com.flat502.rox.marshal.xmlrpc;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import org.xml.sax.SAXException;
import org.xml.sax.SAXNotRecognizedException;
import org.xml.sax.SAXNotSupportedException;
/**
* SAXParserFac... | bsd-3-clause |
timsnyder/bokeh | bokehjs/examples/burtin/burtin.ts | 5910 | import * as Bokeh from "bokehjs"
export namespace Burtin {
import plt = Bokeh.Plotting
const {range, values} = Bokeh.LinAlg
console.log(`Bokeh ${Bokeh.version}`)
Bokeh.set_log_level("info")
Bokeh.settings.dev = true
type Gram = "negative" | "positive"
const antibiotics: [string, number, number, number... | bsd-3-clause |
Clashsoft/Dyvil | library/src/main/java/dyvilx/tools/asm/MethodWriter.java | 75239 | /***
* ASM: a very small and fast Java bytecode manipulation framework Copyright (c) 2000-2011 INRIA, France Telecom All
* rights reserved.
* <p>
* 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 |
chrisglass/django-cms | cms/static/cms/js/change_list.js | 15175 | // some very small jquery extensions
(function($) {
// very simple yellow fade plugin..
$.fn.yft = function(){ this.effect("highlight", {}, 1000); };
// jquery replace plugin :)
$.fn.replace = function(o) {
return this.after(o).remove().end();
};
var tree;
// global initTree function
initTree = function(... | bsd-3-clause |
rileychapman/roscopter-1 | mavlink/pymavlink/build/lib.linux-x86_64-2.7/pymavlink/dialects/v10/pixhawk.py | 430658 | '''
MAVLink protocol implementation (auto-generated by mavgen.py)
Generated from: pixhawk.xml,common.xml
Note: this file has been auto-generated. DO NOT EDIT
'''
import struct, array, time, json
from ...generator.mavcrc import x25crc
WIRE_PROTOCOL_VERSION = "1.0"
# some base types from mavlink_types.h
MAVLINK_TYP... | bsd-3-clause |
exclie/Imagenologia | vendor/zendframework/zendframework/library/Zend/View/Helper/Navigation/Links.php | 23185 | <?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace ... | bsd-3-clause |
darkrsw/safe | tests/typing_tests/TAJS_micro/test102.js | 516 | var i = 0;
var j = 799;
//dumpValue(i);
var __result1 = i; // for SAFE
var __expect1 = 0.0; // for SAFE
//dumpValue(j);
var __result2 = j; // for SAFE
var __expect2 = 799.0; // for SAFE
while (i <= j) {
// dumpValue("foo");
var __result3 = "foo"; // for SAFE
i++;
}
var __expect3 = "foo"; // ... | bsd-3-clause |
JianpingZeng/xcc | xcc/test/juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s03/CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805_wchar_t_memcpy_82_bad.cpp | 1418 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805_wchar_t_memcpy_82_bad.cpp
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805.string.label.xml
Template File: sources-sink-82_bad.tmpl.cpp
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* ... | bsd-3-clause |
cyhalothrin/yii2-rbac | src/views/users/_assign-role-form.php | 543 | <?php
use arogachev\rbac\components\Rbac;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model arogachev\rbac\models\AssignRoleToUserForm */
/* @var $form yii\widgets\ActiveForm */
?>
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'role')->dropDownList(Rbac:... | bsd-3-clause |
NCIP/cadsr-semantic-tools | software/SIW/src/java/gov/nih/nci/ncicb/cadsr/loader/ui/PreferenceDialog.java | 7779 | /*
* Copyright 2000-2003 Oracle, Inc. This software was developed in conjunction with the National Cancer Institute, and so to the extent government employees are co-authors, any rights in such works shall be subject to Title 17 of the United States Code, section 105.
*
Redistribution and use in source and binary fo... | bsd-3-clause |
codeactual/mockery | mockery/fixtures/same_name_imports.go | 209 | package test
import (
"net/http"
my_http "github.com/vektra/mockery/mockery/fixtures/http"
)
// Example is an example
type Example interface {
A() http.Flusher
B(fixtureshttp string) my_http.MyStruct
}
| bsd-3-clause |
ArxdSilva/tsuru-client | vendor/github.com/tsuru/tsuru/app/platform.go | 4471 | // Copyright 2013 tsuru 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 app
import (
"strconv"
"github.com/pkg/errors"
"github.com/tsuru/tsuru/db"
tsuruErrors "github.com/tsuru/tsuru/errors"
"github.com/tsuru/tsuru/log... | bsd-3-clause |
DaanBiesterbos/zend-code | test/Generator/ClassGeneratorTest.php | 35540 | <?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace ... | bsd-3-clause |
riaf/ethna | class/Action/UnitTest.php | 1167 | <?php
/**
* UnitTest.php
*
* @author Takuya Ookubo <sfio@sakura.ai.to>
* @license http://www.opensource.org/licenses/bsd-license.php The BSD License
* @package Ethna
* @version $Id$
*/
/**
* __ethna_unittest__フォームの実装
*
* @author Takuya Ookubo <sfio@sakura.ai.to>
* @access public... | bsd-3-clause |
Team3574/RKellyBot | src/edu/wpi/first/wpilibj/templates/commands/PizzaBoxTiltSeventy.java | 1071 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package edu.wpi.first.wpilibj.templates.commands;
/**
*
* @author team3574
*/
public class PizzaBoxTiltSeventy extends CommandBase {
public PizzaBoxTiltSeventy() {
// Use requires() here to declare subsyste... | bsd-3-clause |
u-root/u-root | vendor/src.elv.sh/pkg/cli/tk/codearea_render.go | 2863 | package tk
import (
"src.elv.sh/pkg/cli/term"
"src.elv.sh/pkg/ui"
"src.elv.sh/pkg/wcwidth"
)
// View model, calculated from State and used for rendering.
type view struct {
prompt ui.Text
rprompt ui.Text
code ui.Text
dot int
errors []error
}
var stylingForPending = ui.Underlined
func getView(w *cod... | bsd-3-clause |
staranjeet/fjord | fjord/feedback/tests/__init__.py | 1878 | import factory
from fjord.base import browsers
from fjord.feedback.models import (
Product,
Response,
ResponseContext,
ResponseEmail,
ResponsePI
)
USER_AGENT = 'Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Firefox/17.0'
class ProductFactory(factory.DjangoModelFactory):
class Meta:
... | bsd-3-clause |
pfumagalli/couldit-autoexport | src/main/java/it/could/util/encoding/URICharacters.java | 11243 | /* ========================================================================== *
* Copyright (c) 2006, Pier Paolo Fumagalli <mailto:pier@betaversion.org> *
* All rights reserved. *
* ========================================================================== *
... | bsd-3-clause |
espadrine/opera | chromium/src/third_party/accessibility-developer-tools/src/js/Constants.js | 26071 | // Copyright 2012 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | bsd-3-clause |
Instagram/wal-e | tests/test_log_help.py | 1496 | import re
from wal_e import log_help
def sanitize_log(log):
return re.sub(r'time=[0-9T:\-\.]+ pid=\d+',
'time=2012-01-01T00.1234-00 pid=1234',
log)
def test_nonexisting_socket(tmpdir, monkeypatch):
# Must not raise an exception, silently failing is preferred for
# no... | bsd-3-clause |
alexeyzimarev/Projac | src/Paramol.Tests/SqlClient/ParameterCountLimitedExceeded.cs | 203945 | using Paramol.SqlClient;
namespace Paramol.Tests.SqlClient
{
public class ParameterCountLimitedExceeded
{
public static readonly ParameterCountLimitedExceeded Instance = new ParameterCountLimitedExceeded();
private ParameterCountLimitedExceeded() { }
public IDbParameterValue P1 { get... | bsd-3-clause |
pbrunet/pythran | third_party/nt2/arithmetic/include/functions/scalar/adds.hpp | 245 | #ifndef NT2_ARITHMETIC_INCLUDE_FUNCTIONS_SCALAR_ADDS_HPP_INCLUDED
#define NT2_ARITHMETIC_INCLUDE_FUNCTIONS_SCALAR_ADDS_HPP_INCLUDED
#include <nt2/arithmetic/functions/adds.hpp>
#include <boost/simd/arithmetic/functions/scalar/adds.hpp>
#endif
| bsd-3-clause |
silverstripe/silverstripe-comments | src/Admin/CommentsGridFieldBulkAction/SpamHandler.php | 544 | <?php
namespace SilverStripe\Comments\Admin\CommentsGridFieldBulkAction;
use SilverStripe\Comments\Model\Comment;
/**
* A {@link Handler} for bulk marking comments as spam
*/
class SpamHandler extends CommentHandler
{
private static $url_segment = 'spam';
protected $buttonClasses = 'font-icon-cross-mark';... | bsd-3-clause |
mylifeafterthat/sgf-project | frontend/views/shop/check-out.php | 3800 | <?php
use yii\helpers\Html;
use yii\web\View;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use frontend\assets\CheckoutAsset;
use common\widgets\Alert;
$this->title= 'Checkout';
CheckoutAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->l... | bsd-3-clause |
koddsson/cf-ui | packages/cf-builder-pagination/src/PaginationBuilder.js | 2839 | import React from 'react';
import PropTypes from 'prop-types';
import { Pagination, PaginationItem } from 'cf-component-pagination';
import Icon from 'cf-component-icon';
class PaginationBuilder extends React.Component {
render() {
const {
totalCount: totalItems,
page,
perPage,
infoFormat... | bsd-3-clause |
dneiter/exabgp | lib/exabgp/configuration/experimental/bgp/session.py | 3848 | # encoding: utf-8
"""
session.py
Created by Thomas Mangin on 2014-06-22.
Copyright (c) 2014-2015 Exa Networks. All rights reserved.
"""
from exabgp.configuration.experimental.engine.raised import Raised
from exabgp.configuration.experimental.engine.section import Section
from exabgp.configuration.experimental.engine.... | bsd-3-clause |
dpek/unity-raconteur | Twine/State/TwineExecutionState.cs | 1399 | using DPek.Raconteur.Twine.Parser;
using DPek.Raconteur.Twine.Script;
using System.Collections.Generic;
namespace DPek.Raconteur.Twine.State
{
public class TwineExecutionState
{
/// <summary>
/// The story that this execution state uses.
/// </summary>
private TwineState m_state;
/// <summary>
/// The ... | bsd-3-clause |
Illescas28/hva_08_05_2016 | module/Propel/build/classes/hva/AdmisionPeer.php | 394 | <?php
/**
* Skeleton subclass for performing query and update operations on the 'admision' table.
*
*
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
* @package ... | bsd-3-clause |
jneslen/pixeltenchi | wp-includes/js/jquery/ui/effect-bounce.min.js | 951 | /*!
* jQuery UI Effects Bounce 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
!function(e){"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(w){return w.effects.define("bo... | bsd-3-clause |
santisiri/popego | popego/jq/jq/consumer_startup.py | 957 | from twisted.application import internet, service
from jq.consumer.server import JobConsumerFactory
import os
def attachConsumerService(processPath, port, app):
service = internet.TCPServer(port, JobConsumerFactory(processPath))
service.setServiceParent(app)
def createConsumerApplication(name='JobConsumer A... | bsd-3-clause |
ppy/angle | src/libANGLE/renderer/gl/eagl/ContextEAGL.cpp | 701 | //
// Copyright 2020 The ANGLE 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.
//
// ContextEAGL:
// iOS-specific subclass of ContextGL.
//
#include "libANGLE/renderer/gl/eagl/ContextEAGL.h"
#include "libANGLE/Context.h"
... | bsd-3-clause |
google/mozc | src/engine/minimal_engine.cc | 8542 | // Copyright 2010-2021, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of condit... | bsd-3-clause |
crosswalk-project/chromium-efl | impl/browser/renderer_host/web_cache_manager_efl.cc | 10789 | // Copyright 2014 Samsung Electronics. All rights reseoved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "browser/renderer_host/web_cache_manager_efl.h"
#include "common/render_messages_efl.h"
#include "cache_params_efl.h"
#include "base/logging.h"
#... | bsd-3-clause |
microscopium/microscopium | microscopium/config.py | 321 | #!/usr/bin/env python
import os
import yaml
def load_config(yaml_filename):
with open(yaml_filename, "r") as f:
settings = yaml.safe_load(f)
return settings
def get_tooltips(settings):
tooltip_columns = settings['tooltip-columns']
return [(column, '@' + column) for column in tooltip_columns]... | bsd-3-clause |
alexfrolov/grappa | system/tasks/TaskingScheduler.hpp | 21684 | ////////////////////////////////////////////////////////////////////////
// Copyright (c) 2010-2015, University of Washington and Battelle
// Memorial Institute. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following cond... | bsd-3-clause |
JianpingZeng/xcc | xcc/test/juliet/testcases/CWE590_Free_Memory_Not_on_Heap/s03/CWE590_Free_Memory_Not_on_Heap__delete_long_declare_54b.cpp | 1236 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE590_Free_Memory_Not_on_Heap__delete_long_declare_54b.cpp
Label Definition File: CWE590_Free_Memory_Not_on_Heap__delete.nonpointer.label.xml
Template File: sources-sink-54b.tmpl.cpp
*/
/*
* @description
* CWE: 590 Free Memory Not on Heap
* BadSource: declare Da... | bsd-3-clause |
gartung/fnal-cetlib | cetlib/split_path.cc | 659 | // ======================================================================
//
// split_path: Split the string 'path' into components delimited by a
// single colon. Adjacent colons result in an empty string.
//
// ======================================================================
#include "cetlib/split_... | bsd-3-clause |
andrewseidl/chrono | src/chrono/assets/ChRoundedBoxShape.cpp | 543 | //
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2012 Alessandro Tasora
// 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 the distribution
// and at http://projectchrono.org/license-chrono.txt.
//
#i... | bsd-3-clause |
304NotModified/NLog | src/NLog/Targets/NetworkTargetQueueOverflowAction.cs | 2160 | //
// 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 |
oci-pronghorn/FogLight | foglight/src/main/java/com/ociweb/iot/grove/three_axis_accelerometer_16g/ThreeAxisAccelerometer_16g_Constants.java | 2670 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.ociweb.iot.grove.three_axis_accelerometer_16g;
/**
*
* @author huydo
*/
public class ThreeAxisAccelerometer_16g_Constants {... | bsd-3-clause |
ruslankus/invoice-crm | modules/leap/classes/Base/DB/MsSQL/Insert/Builder.php | 2004 | <?php defined('SYSPATH') OR die('No direct script access.');
/**
* Copyright © 2011–2013 Spadefoot Team.
*
* Unless otherwise noted, LEAP is 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
* ... | bsd-3-clause |
espadrine/opera | chromium/src/third_party/WebKit/Source/core/animation/PlayerTest.cpp | 8047 | /*
* Copyright (c) 2013, Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditi... | bsd-3-clause |
dushmis/Oracle-Cloud | PaaS_SaaS_Accelerator_RESTFulFacade/Fusion_UserDetailsService/src/com/oracle/xmlns/apps/hcm/people/roles/userdetailsservicev2/types/ObjectFactory.java | 7459 |
package com.oracle.xmlns.apps.hcm.people.roles.userdetailsservicev2.types;
import javax.xml.bind.annotation.XmlRegistry;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the com.oracle.xmlns.apps.hcm.people.roles.userdetailsservicev2.types p... | bsd-3-clause |
MITK/MITK | Modules/Core/src/IO/mitkOperation.cpp | 632 | /*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... | bsd-3-clause |
JianpingZeng/xcc | xcc/test/juliet/testcases/CWE23_Relative_Path_Traversal/s04/CWE23_Relative_Path_Traversal__wchar_t_file_ifstream_65a.cpp | 3350 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE23_Relative_Path_Traversal__wchar_t_file_ifstream_65a.cpp
Label Definition File: CWE23_Relative_Path_Traversal.label.xml
Template File: sources-sink-65a.tmpl.cpp
*/
/*
* @description
* CWE: 23 Relative Path Traversal
* BadSource: file Read input from a file
... | bsd-3-clause |
DataBiosphere/terra-workspace-manager | service/src/main/java/bio/terra/workspace/service/workspace/exceptions/RetryableCrlException.java | 571 | package bio.terra.workspace.service.workspace.exceptions;
import bio.terra.stairway.exception.RetryException;
/**
* Exception for retryable errors thrown by the Cloud Resource Library (CRL).
*
* <p>This extends Stairway's RetryException, which will signal Stairway to retry any step this is
* thrown from (modulo a... | bsd-3-clause |
ric2b/Vivaldi-browser | thirdparty/gn/src/gn/command_help.cc | 13227 | // 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.
#include "base/command_line.h"
#include "gn/args.h"
#include "gn/commands.h"
#include "gn/err.h"
#include "gn/functions.h"
#include "gn/input_conversi... | bsd-3-clause |
lognormal/boomerang | tests/page-templates/00-basic/00-onload.js | 2949 | /*eslint-env mocha*/
/*global BOOMR_test,assert*/
describe("e2e/00-basic/00-onload", function() {
var tf = BOOMR.plugins.TestFramework;
it("Should have sent a beacon", function() {
// ensure we fired a beacon ('beacon')
assert.isTrue(tf.fired_onbeacon);
});
it("Should have fired 'beacon' with a beacon payloa... | bsd-3-clause |
Tietoarkisto/metka | metka/src/main/java/fi/uta/fsd/metkaAmqp/factories/AuditFactory.java | 3218 | /**************************************************************************************
* Copyright (c) 2013-2015, Finnish Social Science Data Archive/University of Tampere *
* *
* All rights reserved. ... | bsd-3-clause |
gasman/wagtail | wagtail/admin/tests/api/test_pages.py | 34733 | import collections
import datetime
import json
from django.contrib.auth import get_user_model
from django.urls import reverse
from django.utils import timezone
from wagtail.api.v2.tests.test_pages import TestPageDetail, TestPageListing
from wagtail.core import hooks
from wagtail.core.models import Locale, Page
from w... | bsd-3-clause |
czechcamus/albert5-cms | private/frontend/components/views/boxGallery.php | 781 | <?php
/* @var $gallery \common\models\Gallery */
/* @var $image string */
/* @var $align string */
use yii\helpers\Html;
if ($gallery) {
echo '<div class="col s12 m6 gallery-link ' . $align . '">';
echo '<div class="card">';
echo '<div class="card-content">';
echo '<span class="card-title"><i class="material-icon... | bsd-3-clause |
rimbalinux/LMD3 | docutils/parsers/rst/languages/en.py | 3283 | # $Id: en.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
# read <http://docutils.sf.net/docs/howto/i18n.html>. Two files must be
# tran... | bsd-3-clause |
hefen1/chromium | chrome/browser/chrome_browser_main_win.cc | 18646 | // 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/chrome_browser_main_win.h"
#include <windows.h>
#include <shellapi.h>
#include <algorithm>
#include "base/command_line.h"
... | bsd-3-clause |
dacoex/pvlib-python | pvlib/test/test_pvsystem.py | 7258 | import logging
pvl_logger = logging.getLogger('pvlib')
import inspect
import os
import datetime
import numpy as np
import pandas as pd
from nose.tools import assert_equals, assert_almost_equals
from pandas.util.testing import assert_series_equal, assert_frame_equal
from . import incompatible_conda_linux_py3
from pv... | bsd-3-clause |
hgl888/chromium-efl | ewk/unittest/utc_blink_ewk_context_web_indexed_database_delete_all_func.cpp | 2565 | // Copyright 2014 Samsung Electronics. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "utc_blink_ewk_base.h"
class utc_blink_ewk_context_web_indexed_database_delete_all : public utc_blink_ewk_base {
protected:
utc_blink_ewk_conte... | bsd-3-clause |
carnby/datagramas | datagramas/visualizations/circlepack/template.js | 1933 | var diameter = Math.min(_vis_width, _vis_height);
var pack = d3.layout.pack()
.size([diameter - 4, diameter - 4])
.value(function(d) { return datagramas.get(d, _node_value); })
.children(function (d) {
return datagramas.get(d, _node_children);
});
var root = pack.nodes(_data_tree);
console.log... | bsd-3-clause |
pizzathief/scipy | setup.py | 21070 | #!/usr/bin/env python
"""SciPy: Scientific Library for Python
SciPy (pronounced "Sigh Pie") is open-source software for mathematics,
science, and engineering. The SciPy library
depends on NumPy, which provides convenient and fast N-dimensional
array manipulation. The SciPy library is built to work with NumPy
arrays, a... | bsd-3-clause |
hlzz/dotfiles | graphics/VTK-7.0.0/ThirdParty/Twisted/twisted/words/protocols/jabber/client.py | 12885 | # -*- test-case-name: twisted.words.test.test_jabberclient -*-
#
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
from twisted.words.xish import domish, xpath, utility
from twisted.words.protocols.jabber import xmlstream, sasl, error
from twisted.words.protocols.jabber.jid import JID
N... | bsd-3-clause |
derekisbusy/yii2-user | widgets/AdminMenu.php | 3005 | <?php
/**
* @copyright Copyright © Kartik Visweswaran, communityii, 2014 - 2015
* @package communityii/yii2-user
* @version 1.0.0
* @see https://github.com/communityii/yii2-user
*/
namespace comyii\user\widgets;
use Yii;
use yii\bootstrap\Nav;
use comyii\user\Module;
use comyii\user\models\User;
/**
* Us... | bsd-3-clause |
nwjs/chromium.src | extensions/browser/policy_check_unittest.cc | 3457 | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "extensions/browser/policy_check.h"
#include <string>
#include <vector>
#include "base/memory/ref_counted.h"
#include "base/strings/utf_string_... | bsd-3-clause |
leighpauls/k2cro4 | chrome/browser/ui/bookmarks/bookmark_tab_helper.cc | 4453 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
#include "chrome/browser/bookmarks/... | bsd-3-clause |
duythien/phanbook | core/modules/cli/tasks/ExportsTask.php | 1364 | <?php
/**
* Phanbook : Delightfully simple forum software
*
* Licensed under The BSD License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @link http://phanbook.com Phanbook Project
* @since 1.0.0
* @license ... | bsd-3-clause |
cesarandreu/relay | src/store/__tests__/RelayStoreData-test.js | 14070 | /**
* Copyright (c) 2013-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.
*
* @emails o... | bsd-3-clause |
drobilla/nunaliit | nunaliit2-couch-application/src/main/atlas_couchapp/views/schema-from-docid/map.js | 88 | function(doc) {
if( doc.nunaliit_schema ) {
emit(doc._id,doc.nunaliit_schema);
};
} | bsd-3-clause |
mudunuriRaju/tlr-live | tollbackend/web/js/angular-1.5.5/i18n/angular-locale_es-cr.js | 3608 | 'use strict';
angular.module("ngLocale", [], ["$provide", function ($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": [
"a. m.",
"p. m.... | bsd-3-clause |
ric2b/Vivaldi-browser | chromium/chrome/browser/chromeos/extensions/file_manager/file_stream_md5_digester.cc | 2049 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/extensions/file_manager/file_stream_md5_digester.h"
#include <utility>
#include "base/bind.h"
#include "base/callback.... | bsd-3-clause |
leighpauls/k2cro4 | chrome_frame/test/chrome_frame_test_utils.cc | 23291 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome_frame/test/chrome_frame_test_utils.h"
#include <atlapp.h>
#include <atlmisc.h>
#include <iepmapi.h>
#include <sddl.h>
#include <shlo... | bsd-3-clause |
pbrunet/pythran | third_party/nt2/include/functions/simd/perms.hpp | 179 | #ifndef NT2_INCLUDE_FUNCTIONS_SIMD_PERMS_HPP_INCLUDED
#define NT2_INCLUDE_FUNCTIONS_SIMD_PERMS_HPP_INCLUDED
#include <nt2/combinatorial/include/functions/simd/perms.hpp>
#endif
| bsd-3-clause |
cisco/PDTool | CISAdminApi8.0.0/src/com/compositesw/services/system/util/security/RbsSetEnabledRequest.java | 1380 |
package com.compositesw.services.system.util.security;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import com.compositesw.services.system.util.common.BaseRequest;
/**
* <p>Java class for rbsSetEnabledRequest c... | bsd-3-clause |
JianpingZeng/xcc | xcc/test/juliet/testcases/CWE590_Free_Memory_Not_on_Heap/s02/CWE590_Free_Memory_Not_on_Heap__delete_char_alloca_72a.cpp | 2982 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE590_Free_Memory_Not_on_Heap__delete_char_alloca_72a.cpp
Label Definition File: CWE590_Free_Memory_Not_on_Heap__delete.pointer.label.xml
Template File: sources-sink-72a.tmpl.cpp
*/
/*
* @description
* CWE: 590 Free Memory Not on Heap
* BadSource: alloca Data bu... | bsd-3-clause |
vietnguyen/dhis2-core | dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/query/Direction.java | 1699 | package org.hisp.dhis.query;
/*
* Copyright (c) 2004-2018, 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 above copyrigh... | bsd-3-clause |
mfurr/Diamondback-Ruby | tests/parser/large_examples/kroc.rb | 8811 | #
# kroc.rb
#
# based on:
# >> kroc.tcl - Copyright (C) 2004 David Zolli <kroc@kroc.tk>
#
imgdir = File.join(File.dirname(__FILE__), 'kroc', 'kroc')
$images = Tk::Tile.load_images(imgdir, '*.gif')
if TkPackage.vcompare(Tk::Tile.package_version, '0.5') >= 0
$TNotebook_Tab = Tk::Tile::TNotebook.style('Tab')
else
... | bsd-3-clause |
Dekken/tick | lib/cpp/array/alloc.cpp | 140 | // License: BSD 3 clause
#include "tick/array/alloc.h"
#if defined(DEBUG_C_ARRAY)
DEBUGCAllocArrayCount_t DEBUGCAllocArrayCount;
#endif
| bsd-3-clause |
zhaokunfay/ServiceStack.Examples | src/RestFiles/RestFiles.ServiceModel/RevertFiles.cs | 847 | using ServiceStack;
namespace RestFiles.ServiceModel
{
/// <summary>
/// Define your ServiceStack web service request (i.e. the Request DTO).
/// </summary>
[Route("/revertfiles")]
public class RevertFiles { }
/// <summary>
/// Define your ServiceStack web service response (i.e. Respo... | bsd-3-clause |
lcp0578/kitcmf | vendor/symfony/symfony/src/Symfony/Component/Serializer/Mapping/Factory/ClassResolverTrait.php | 1245 | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Serializer\Mapping\Factory;
use Symfony\Component\Ser... | mit |