repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
keera-studios/hsQt | qws/src/gui/QShortcut.cpp | 14543 | /////////////////////////////////////////////////////////////////////////////
//
// File : QShortcut.cpp
// Copyright : (c) David Harley 2010
// Project : qtHaskell
// Version : 1.1.4
// Modified : 2010-09-02 17:02:05
//
// Warning : this file is machine generated -... | bsd-2-clause |
chrisopedia/homebrew-cask | Casks/tv-show-tracker.rb | 636 | class TvShowTracker < Cask
url 'http://www.pixelperfectwidgets.com/tvshowtracker/download/tvshowtracker_1.3.3.zip'
homepage 'http://www.pixelperfectwidgets.com/'
version '1.3.3'
sha1 '81e613d6525c49196625271dd76090866c1b2ddd'
widget 'TV Show Tracker.wdgt'
caveats do
puts <<-EOS.undent
Currently, Das... | bsd-2-clause |
edgehosting/jira-dvcs-connector | jira-dvcs-connector-plugin/src/main/java/com/atlassian/jira/plugins/dvcs/querydsl/v3/QRepositoryPullRequestIssueKeyMapping.java | 2448 | package com.atlassian.jira.plugins.dvcs.querydsl.v3;
import com.atlassian.pocketknife.api.querydsl.SchemaProvider;
import com.mysema.query.sql.ColumnMetadata;
import com.mysema.query.sql.RelationalPathBase;
import com.mysema.query.types.expr.SimpleExpression;
import com.mysema.query.types.path.NumberPath;
import com.m... | bsd-2-clause |
cloudflare/cfssl | vendor/github.com/cloudflare/redoctober/core/core.go | 28575 | // Package core handles the main operations of the Red October server.
//
// Copyright (c) 2013 CloudFlare, Inc.
package core
import (
"crypto/rand"
"encoding/json"
"errors"
"fmt"
"log"
"regexp"
"strconv"
"strings"
"time"
"github.com/cloudflare/redoctober/config"
"github.com/cloudflare/redoctober/cryptor"
... | bsd-2-clause |
mvbattista/homebrew-core | Formula/carina.rb | 1058 | class Carina < Formula
desc "Command-line client for Carina"
homepage "https://github.com/getcarina/carina"
url "https://github.com/getcarina/carina.git",
:tag => "v2.1.3",
:revision => "2b3ec267e298e095d7c2f81a2d82dc50a720e81c"
head "https://github.com/getcarina/carina.git"
bottle do
cel... | bsd-2-clause |
gdementen/numba | numba/tests/test_array_manipulation.py | 7558 | from __future__ import print_function
import numpy as np
from numba.compiler import compile_isolated, Flags
from numba import types, from_dtype
import numba.unittest_support as unittest
from numba.tests.support import TestCase, MemoryLeakMixin
enable_pyobj_flags = Flags()
enable_pyobj_flags.set("enable_pyobject")
no... | bsd-2-clause |
overshard/timestrap | conf/managers.py | 581 | from django.contrib.sites.managers import CurrentSiteManager as BaseCSM
from .utils import current_site_id
class CurrentSiteManager(BaseCSM):
"""
Replace the Django CurrentSiteManager to use current_site_id() instead of
settings.SITE_ID.
"""
def __init__(self, field_name=None, *args, **kwargs):
... | bsd-2-clause |
antoinegiret/osrm-backend | third_party/osmium/io/bzip2_compression.hpp | 10136 | #ifndef OSMIUM_IO_BZIP2_COMPRESSION_HPP
#define OSMIUM_IO_BZIP2_COMPRESSION_HPP
/*
This file is part of Osmium (http://osmcode.org/libosmium).
Copyright 2013,2014 Jochen Topf <jochen@topf.org> and others (see README).
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of ch... | bsd-2-clause |
albertico/homebrew-cask | Casks/vlcstreamer.rb | 533 | cask 'vlcstreamer' do
version :latest
sha256 :no_check
url 'http://hobbyistsoftware.com/Downloads/VLCStreamer/latest-mac.php?cdn'
appcast 'http://hobbyistsoftware.com/Downloads/VLCStreamer/vlcStreamerVersions.xml',
:checkpoint => 'f6e93c6c3700e6fb73bf154e016a814f6ee3fbb44bc1e22dac095c6bc14b6f6d'
na... | bsd-2-clause |
cr0hn/OMSTD | examples/cracking/ch-001/omstd_ch_001/lib/data.py | 3847 | # -*- coding: utf-8 -*-
"""
Project name: Open Methodology for Security Tool Developers
Project URL: https://github.com/cr0hn/OMSTD
Copyright (c) 2014, cr0hn<-AT->cr0hn.com
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following ... | bsd-2-clause |
aabdnn/homebrew-core | Formula/micronaut.rb | 701 | class Micronaut < Formula
desc "Modern JVM-based framework for building modular microservices"
homepage "https://micronaut.io/"
url "https://github.com/micronaut-projects/micronaut-core/releases/download/v1.3.5/micronaut-1.3.5.zip"
sha256 "456ae4f241772465bfafa4e589fb572a761476186f182ec365fcfb0f486b235e"
bot... | bsd-2-clause |
colin/nginx | debian/passenger/ext/common/CachedFileStat.hpp | 7784 | /*
* Phusion Passenger - http://www.modrails.com/
* Copyright (c) 2009 Phusion
*
* "Phusion Passenger" is a trademark of Hongli Lai & Ninh Bui.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* ... | bsd-2-clause |
octavianiLocator/g3m | tools/vectorial-streaming/src/com/glob3mobile/vectorial/lod/clustering/nodes/CInnerNodeData.java | 1252 |
package com.glob3mobile.vectorial.lod.clustering.nodes;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import com.glob3mobile.geo.Geodetic2D;
import com.glob3mobile.vectorial.storage.PointFeatureCluster;
public class CInnerNodeData
extends
CNodeData {
private final ... | bsd-2-clause |
memetalk/memetalk | stuff/py/pycompiler/compiler.py | 10695 | from pyparsers.parser import MemeParser
from pyparsers.memetr import MemeTr
from pyparsers.astbuilder import *
import pyutils
from pyutils import bits
from pyutils import entries
import traceback
import os
import sys
import ejson
from . import comp_vmemory
import time
def bench(name, fn):
print '*bench begin:', na... | bsd-2-clause |
seajax/seajax | v2/src/core/Seadragon.js | 2426 | // Copyright (c) Microsoft Corporation
// All rights reserved.
// BSD License
//
// 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-2-clause |
tectronics/leonardosketch.amino | src/org/joshy/gfx/node/control/Scrollbar.java | 12175 | package org.joshy.gfx.node.control;
import org.joshy.gfx.SkinManager;
import org.joshy.gfx.css.BoxPainter;
import org.joshy.gfx.css.CSSSkin;
import org.joshy.gfx.css.SizeInfo;
import org.joshy.gfx.css.StyleInfo;
import org.joshy.gfx.draw.FlatColor;
import org.joshy.gfx.draw.GFX;
import org.joshy.gfx.event.Callback;
im... | bsd-2-clause |
mogoweb/chromium-crosswalk | chrome/tools/convert_dict/convert_dict.cc | 4701 | // Copyright (c) 2006-2008 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.
// This tool converts Hunspell .aff/.dic pairs to a combined binary dictionary
// format (.bdic). This format is more compact, and can be more ef... | bsd-3-clause |
janga1997/Patterns | src/pat/calendar/calendar.js | 23752 | /**
* Patterns calendar - Calendar with different views for patterns.
*
* Copyright 2013-2014 Marko Durkovic
* Copyright 2014 Florian Friesdorf
* Copyright 2014 Syslab.com GmbH
*/
define([
"jquery",
"pat-logger",
"pat-parser",
"pat-store",
"pat-utils",
"pat-registry",
"underscore",
... | bsd-3-clause |
duythien/phanbook | core/common/models/Dashboard.php | 1916 | <?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 |
mikedeboertest/github | test/repository.spec.js | 21388 | import expect from 'must';
import Github from '../lib/GitHub';
import testUser from './fixtures/user.json';
import loadImage from './fixtures/imageBlob';
import {assertSuccessful, assertFailure} from './helpers/callbacks';
import getTestRepoName from './helpers/getTestRepoName';
describe('Repository', function() {
... | bsd-3-clause |
joshlin/expo2 | db/migrate/20100209002053_add_system_to_populations.rb | 189 | class AddSystemToPopulations < ActiveRecord::Migration
def self.up
add_column :populations, :system, :boolean
end
def self.down
remove_column :populations, :system
end
end
| bsd-3-clause |
abarth/sky_engine | flow/layers/child_scene_layer.cc | 2610 | // 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.
#include "flutter/flow/layers/child_scene_layer.h"
namespace flow {
namespace {
mojo::TransformPtr GetTransformFromSkMatrix(const SkMatrix& input) {
/... | bsd-3-clause |
whancock/pysoccer | Obstacle.py | 1038 | '''
(c) 2015 Georgia Tech Research Corporation
This source code is released under the New BSD license. Please see the LICENSE.txt file included with this software for more information
authors: Arindam Bose (arindam.1993@gmail.com), Tucker Balch (trbalch@gmail.com)
'''
import numpy as np
class Obstacle(obje... | bsd-3-clause |
ric2b/Vivaldi-browser | chromium/third_party/google-closure-library/closure/goog/math/rect_test.js | 16096 | // Copyright 2006 The Closure Library Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requ... | bsd-3-clause |
APCVSRepo/sdl_core | src/components/application_manager/src/request_info.cc | 10407 | /*
* \file request_info.h
* \brief request information structure source file.
*
* Copyright (c) 2014, Ford Motor Company
* 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 sour... | bsd-3-clause |
rosskevin/relay | packages/react-relay/classic/query/callsToGraphQL.js | 1063 | /**
* 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.
*
* @provides... | bsd-3-clause |
RCOS-Grading-Server/HWserver | tests/integrationTests/tests/error_messages/floating_point_err/data/floating_point_err.cpp | 602 | /* OUTPUT: ERROR: FLOATING POINT ERROR
* Program Terminated
* Child exited with status 8
* Note: Throws during runtime occurance of a division by zero
* However, when explicitly dividing by 0 (i.e. 1/x), a warning is thrown
* and exception not caught (prints out a large number if you were to print out resu... | bsd-3-clause |
mxOBS/deb-pkg_trusty_chromium-browser | third_party/stp/src/lib/AST/NodeFactory/TypeChecker.cpp | 2142 | /********************************************************************
* AUTHORS: Unknown
*
* BEGIN DATE: November, 2005
*
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, in... | bsd-3-clause |
JianpingZeng/xcc | xcc/test/juliet/testcases/CWE606_Unchecked_Loop_Condition/CWE606_Unchecked_Loop_Condition__wchar_t_console_62b.cpp | 3119 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE606_Unchecked_Loop_Condition__wchar_t_console_62b.cpp
Label Definition File: CWE606_Unchecked_Loop_Condition.label.xml
Template File: sources-sinks-62b.tmpl.cpp
*/
/*
* @description
* CWE: 606 Unchecked Input For Loop Condition
* BadSource: console Read input ... | bsd-3-clause |
andrewseidl/chrono | src/unit_tests/parallel/utest_PAR_jacobians.cpp | 14732 | // =============================================================================
// 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 |
stanik137/xtreemfs | java/servers/src/org/xtreemfs/sandbox/tests/ReplicatedTortureXtreemFS.java | 17082 | /* Copyright (c) 2010 Konrad-Zuse-Zentrum fuer Informationstechnik Berlin.
This file is part of XtreemFS. XtreemFS is part of XtreemOS, a Linux-based
Grid Operating System, see <http://www.xtreemos.eu> for more details.
The XtreemOS project has been developed with the financial support of the
European... | bsd-3-clause |
JianpingZeng/xcc | xcc/test/juliet/testcases/CWE762_Mismatched_Memory_Management_Routines/s06/CWE762_Mismatched_Memory_Management_Routines__new_delete_array_int64_t_65a.cpp | 2950 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__new_delete_array_int64_t_65a.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__new_delete_array.label.xml
Template File: sources-sinks-65a.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memor... | bsd-3-clause |
songjiguo/interface-code-generator | tests/test_general.py | 2078 | import sys, os
import unittest
sys.path.insert(0, '..')
from pycparser import parse_file, c_ast
# Portable cpp path for Windows and Linux/Unix
CPPPATH = 'utils/cpp.exe' if sys.platform == 'win32' else 'cpp'
# Test successful parsing
#
class TestParsing(unittest.TestCase):
def _find_file(self, name):
"""... | bsd-3-clause |
mihaisoloi/conpaas | conpaas-frontend/www/lib/ui/LinkUI.php | 1466 | <?php
/* Copyright (C) 2010-2013 by Contrail Consortium. */
function LinkUI($text, $href) {
return new LinkUI($text, $href);
}
class LinkUI {
const POS_RIGHT = 'right';
const POS_LEFT = 'left';
private $text;
private $href;
private $external = false;
private $class = 'link';
private $iconURL = 'images/lin... | bsd-3-clause |
wangrunxinyes/sby | framework/cli/views/shell/module/views/default/index.php | 413 | <?php
$this->breadcrumbs = array (
$this->module->id
);
?>
<h1><?php echo $this->uniqueId . '/' . $this->action->id; ?></h1>
<p>
This is the view content for action "<?php echo $this->action->id; ?>".
The action belongs to the controller "<?php echo get_class($this); ?>" in the "<?php echo $this->module->id; ?>" mo... | bsd-3-clause |
timopulkkinen/BubbleFish | components/autofill/browser/autofill_xml_parser.cc | 7722 | // 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 "components/autofill/browser/autofill_xml_parser.h"
#include <stdlib.h>
#include <string.h>
#include "base/logging.h"
#include "components/... | bsd-3-clause |
hoangngk/angular-blog | modules/admin/views/route/create.php | 864 | <?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/**
* @var yii\web\View $this
* @var mdm\admin\models\Route $model
* @var ActiveForm $form
*/
$this->title = Yii::t('rbac-admin', 'Create Route');
$this->params['breadcrumbs'][] = ['label' => Yii::t('rbac-admin', 'Routes'), 'url' => ['index']];
$this->param... | bsd-3-clause |
aol/Webservice_Base | src/test/java/com/aol/webservice_base/util/http/RequestHelperTest.java | 8904 | /**
*
*/
package com.aol.webservice_base.util.http;
import java.util.Hashtable;
import java.util.List;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import com.aol.webservice_base.support.MockHttpServletRequest;
/**
* @author human
*
*/
public class RequestHelperTest {
protected Mo... | bsd-3-clause |
mirror/libtorrent | src/session_stats.cpp | 19627 | /*
Copyright (c) 2012-2013, Arvid Norberg
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 ... | bsd-3-clause |
nuodb/ruby-activerecord-nuodb-adapter | test/models/member_detail.rb | 232 | class MemberDetail < ActiveRecord::Base
belongs_to :member
belongs_to :organization
has_one :member_type, :through => :member
has_many :organization_member_details, :through => :organization, :source => :member_details
end
| bsd-3-clause |
andreasbotsikas/mastercard-api-csharp | mastercard-api-csharp/MasterCard/SDK/Services/MerchantIdentifier/Domain/Options/MerchantIdentifierRequestOptions.cs | 520 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MasterCard.SDK.Services.MerchantIdentifier.Domain.Options
{
public class MerchantIdentifierRequestOptions
{
private String MerchantId;
public String Type { get; set; }
public MerchantIdenti... | bsd-3-clause |
bjanish/RcmPlugins | RcmJquery/src/Module.php | 1058 | <?php
/**
* Module Config For ZF2
*
* PHP version 5.3
*
* LICENSE: No License yet
*
* @category Reliv
* @author Rod Mcnew <rmcnew@relivinc.com>
* @copyright 2014 Reliv International
* @license License.txt New BSD License
* @version GIT: <git_id>
*/
namespace RcmJquery;
/**
* ZF2 Module Config. ... | bsd-3-clause |
matllubos/django-reversion | src/reversion/__init__.py | 1747 | """
Transactional version control for Django models.
Developed by Dave Hall.
<http://www.etianen.com/>
"""
from __future__ import unicode_literals
from reversion.revisions import (default_revision_manager, revision_context_manager, VersionAdapter,
create_command_revision)
from rever... | bsd-3-clause |
endlessm/chromium-browser | ash/display/display_animator.cc | 7812 | // 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 "ash/display/display_animator.h"
#include <memory>
#include "ash/public/cpp/shell_window_ids.h"
#include "ash/shell.h"
#include "base/bind.h"
#... | bsd-3-clause |
goodlang/good | src/cmd/compile/internal/gc/typecheck.go | 82379 | // Copyright 2009 The Go 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 gc
import (
"cmd/internal/obj"
"fmt"
"math"
"strings"
)
const (
Etop = 1 << iota // evaluated at statement level
Erv // e... | bsd-3-clause |
DevExpress/AjaxControlToolkit | AjaxControlToolkit.SampleSite/ValidatorCallout/ValidatorCallout.aspx.cs | 446 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class ValidatorCallout_ValidatorCallout : System.Web.UI.Page {
protected void Button1_OnClick(object sender, EventArgs e) {
lblMessage.Text = HttpUtilit... | bsd-3-clause |
songjiguo/C3IDL | examples/func_calls.py | 1224 | #-----------------------------------------------------------------
# pycparser: func_defs.py
#
# Using pycparser for printing out all the calls of some function
# in a C file.
#
# Copyright (C) 2008-2015, Eli Bendersky
# License: BSD
#-----------------------------------------------------------------
from __future__ imp... | bsd-3-clause |
uwol/cobol85grammar | src/main/java/io/proleap/cobol/asg/metamodel/data/communication/ErrorKeyClause.java | 532 | /*
* Copyright (C) 2017, Ulrich Wolffgang <ulrich.wolffgang@proleap.io>
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
package io.proleap.cobol.asg.metamodel.data.communication;
import io.proleap.cobol.asg.metam... | bsd-3-clause |
tobya/SimpleString | tests/Simple/Type/Test/StringConversionTest.php | 2855 | <?php
namespace Simple\Type\Test;
use Simple\Type\String;
class StringConversionTest extends \PHPUnit_Framework_TestCase
{
public function testIsConvertingToLowerCase()
{
$string = new String('Lorem ipsum dolor');
$result = $string->toLowerCase();
$this->assertInstanceOf('Simple\\Typ... | bsd-3-clause |
ProgramMax/max | Code/max/Logging/DoNothingLogger.hpp | 686 | // Copyright 2015, The max Contributors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MAX_LOGGING_DONOTHINGLOGGER_HPP
#define MAX_LOGGING_DONOTHINGLOGGER_HPP
#include <max/Compiling/ThrowSpecification.hpp>
namespace max
{
namespa... | bsd-3-clause |
drobilla/nunaliit | nunaliit2-couch-command/src/main/java/ca/carleton/gcrc/couch/command/servlet/MailServiceRecipientsCouchDb.java | 2329 | package ca.carleton.gcrc.couch.command.servlet;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Set;
import java.util.Vector;
import ca.carleton.gcrc.couch.user.UserDesignDocument;
import ca.carleton.gcrc.couch.user.UserDocument;
import ca.carleton.gcrc.mail.MailRecipi... | bsd-3-clause |
dushmis/Oracle-Cloud | PaaS_SaaS_Accelerator_RESTFulFacade/XJC_Beans/src/com/oracle/xmlns/adf/svc/types/ViewCriteriaRow.java | 3555 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 20... | bsd-3-clause |
mattharden/vitess | go/vt/mysqlctl/s3backupstorage/s3.go | 8006 | /*
Copyright 2017 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 agreedto in writing, software
dist... | bsd-3-clause |
ayoubg/gem5-graphics | gem5/src/mem/ruby/network/Network.cc | 4674 | /*
* Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
* 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 |
zaeznet/spree_zaez_cielo | spec/support/checkout_helpers.rb | 2829 | # Navigate to payment state
# putting a product on the cart,
# filling in the email,
# setting the address and selecting the shipping method
#
# @param skip_authentication [Boolean] default: false
# verify if need create an account
#
def navigate_to_payment(skip_authentication = false)
# set valid Cielo config
Sp... | bsd-3-clause |
sh4nth/atlasdb-1 | atlasdb-config/src/test/java/com/palantir/atlasdb/factory/ServiceDiscoveringAtlasSupplierTest.java | 3914 | /**
* Copyright 2016 Palantir Technologies
*
* Licensed under the BSD-3 License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://opensource.org/licenses/BSD-3-Clause
*
* Unless required by applicable law or agreed to in wri... | bsd-3-clause |
Kader93/DynamicForm | src/DynamicForm/Form/configJson.php | 604 | <?php
namespace EspaceMembre\Form;
use EspaceMembre\Form\configInterface;
class configJson implements configFileInterface{
public function getContentsFile($file = NULL)
{
$filepath = pathinfo($file);
if(file_exists($file) && $filepath['extension'] = 'json'){
$contentConfig = file_... | bsd-3-clause |
fcurella/django-channels-react-redux | myapp/static/myapp/js/constants.js | 176 | import keyMirror from 'keymirror';
const ActionTypes = keyMirror({
SET_USER: null,
INCREMENT_COUNTER: null,
INCREMENTED_COUNTER: null
});
export default ActionTypes;
| bsd-3-clause |
7kbird/chrome | chrome/browser/extensions/external_install_error.cc | 12931 | // 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 "chrome/browser/extensions/external_install_error.h"
#include "base/bind.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/ap... | bsd-3-clause |
MattFisher/django-attachments | attachments/__init__.py | 58 | default_app_config = "attachments.apps.AttachmentsConfig"
| bsd-3-clause |
ruslankus/invoice-crm | modules/leap/classes/Base/DB/MySQL/Update/Builder.php | 2169 | <?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 |
Hackplayers/Empire-mod-Hpys-tests | lib/modules/powershell/trollsploit/get_schwifty.py | 3238 | from lib.common import helpers
class Module:
def __init__(self, mainMenu, params=[]):
self.info = {
'Name': 'Get-Schwifty',
'Author': ['@424f424f'],
'Description': ("Play's a hidden version of Rick and Morty Get Schwifty video while "
"max... | bsd-3-clause |
vincentml/basex | basex-api/src/test/java/org/basex/http/restxq/RestXqPathMatcherTest.java | 5288 | package org.basex.http.restxq;
import static java.math.BigInteger.ONE;
import static java.math.BigInteger.ZERO;
import static java.math.BigInteger.TEN;
import static org.junit.Assert.*;
import org.basex.query.value.item.QNm;
import org.hamcrest.CustomTypeSafeMatcher;
import org.junit.Ignore;
import org.junit.Test;
i... | bsd-3-clause |
carolFrohlich/nipype | nipype/interfaces/minc/tests/test_auto_Dump.py | 1769 | # AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from ....testing import assert_equal
from ..minc import Dump
def test_Dump_inputs():
input_map = dict(annotations_brief=dict(argstr='-b %s',
xor=(u'annotations_brief', u'annotations_full'),
),
annotations_full=dict(argstr='-f %s',
xor=(u'annota... | bsd-3-clause |
exponent/exponent | packages/html-elements/src/elements/__tests__/Anchor-test.tsx | 255 | import 'react-native';
import React from 'react';
import renderer from 'react-test-renderer';
import { A } from '../Anchor';
it(`renders A`, () => {
const tree = renderer.create(<A href="#" target="_parent" />);
expect(tree).toMatchSnapshot();
});
| bsd-3-clause |
gooddata/GoodData-CL | common/src/main/java/com/gooddata/exception/InvalidArgumentException.java | 1934 | /*
* Copyright (c) 2009, GoodData Corporation. 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 con... | bsd-3-clause |
vadimtk/chrome4sdp | chrome/browser/extensions/api/tabs/tabs_api.cc | 68396 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/api/tabs/tabs_api.h"
#include <algorithm>
#include <limits>
#include <vector>
#include "base/bind.h"
#include "b... | bsd-3-clause |
bekin/web3cms | testdrive/protected/config/main.php | 2224 | <?php
// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');
// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'My Web3... | bsd-3-clause |
Craigspaz/Flying-Ferris-Wheel-Engine | Tables/lwjgl-2.9.1/src/src/java/org/lwjgl/opengl/WindowsDisplay.java | 38548 | /*
* Copyright (c) 2002-2008 LWJGL Project
* 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 |
netherphp/website | core/Website/routes/Common/PublicWeb.php | 410 | <?php
namespace Routes\Common;
use \Nether;
use \Routes;
class PublicWeb {
public $Get;
public $Post;
public $Surface;
public $Name = 'home';
public function __construct() {
$this->Get = new Nether\Input\Filter($_GET);
$this->Post = new Nether\Input\Filter($_POST);
$this->Surface = Neth... | bsd-3-clause |
mvaled/sentry | docs-ui/components/narrowLayout.stories.js | 320 | import React from 'react';
import {storiesOf} from '@storybook/react';
import {withInfo} from '@storybook/addon-info';
import NarrowLayout from 'app/components/narrowLayout';
storiesOf('UI|NarrowLayout', module).add(
'NarrowLayout',
withInfo('A narrow layout')(() => <NarrowLayout>Narrow Layout</NarrowLayout>)
);
| bsd-3-clause |
lockss/lockss-daemon | test/src/org/lockss/daemon/TestSingleNodeCachedUrlSetSpec.java | 5302 | /*
* $Id$
*/
/*
Copyright (c) 2000-2003 Board of Trustees of Leland Stanford Jr. University,
all rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including... | bsd-3-clause |
cdcarter/CumulusCI | cumulusci/tasks/salesforcedx.py | 1225 | import sarge
from cumulusci.core.exceptions import SalesforceDXException
from cumulusci.core.tasks import BaseTask
class BaseSalesforceDXTask(BaseTask):
task_options = {
'command': {
'description': 'The Saleforce DX command to call. For example: force:src:push',
'required': True,
... | bsd-3-clause |
chromium2014/src | components/signin/core/browser/test_signin_client.cc | 3388 | // 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/logging.h"
#include "components/signin/core/browser/test_signin_client.h"
#include "components/signin/core/browser/webdata/token_service_ta... | bsd-3-clause |
gonum/gonum | graph/path/yen_ksp_test.go | 6955 | // Copyright ©2018 The Gonum 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 path
import (
"math"
"reflect"
"sort"
"testing"
"gonum.org/v1/gonum/graph"
"gonum.org/v1/gonum/graph/internal/ordered"
"gonum.org/v1/gonum/... | bsd-3-clause |
leighpauls/k2cro4 | gpu/command_buffer/client/cmd_buffer_helper_test.cc | 12115 | // 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.
// Tests for the Command Buffer Helper.
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/message_loop.h"
#include "gpu/command_bu... | bsd-3-clause |
maier/circonus-one-step-install | test/api_test/06_broker.js | 3889 | /*eslint-env node, es6 */
/*eslint-disable no-process-exit */
"use strict";
// core modules
const http = require("http");
const url = require("url");
// local modules
const test = require("tape");
const url_path = "/broker";
const id = Date.now().toString();
function makeValidRequest() {
return {
"typ... | bsd-3-clause |
zbyufei/open-budgets | openbudget/apps/pages/factories.py | 609 | import datetime
import factory
from django.utils.timezone import utc
from openbudget.apps.pages.models import Page
class PageFactory(factory.DjangoModelFactory):
FACTORY_FOR = Page
title = factory.Sequence(lambda n: 'Page {0} Title'.format(n))
slug = factory.Sequence(lambda n: 'page-{0}-title'.format(n)... | bsd-3-clause |
leighpauls/k2cro4 | content/gpu/gpu_child_thread.cc | 8644 | // 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/gpu/gpu_child_thread.h"
#include <string>
#include <vector>
#include "base/bind.h"
#include "base/command_line.h"
#include "base/t... | bsd-3-clause |
shankari/e-mission-phone-cordova-plugins | eMission/www/listview-js/app.js | 1528 | // Ionic Starter App
// angular.module is a global place for creating, registering and retrieving Angular modules
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
// 'starter.controllers' is found in controllers.js
ang... | bsd-3-clause |
hgl888/blink-crosswalk-efl | Source/wtf/ThreadingPthreads.cpp | 6832 | /*
* Copyright (C) 2007, 2009 Apple Inc. All rights reserved.
* Copyright (C) 2007 Justin Haygood (jhaygood@reaktix.com)
* Copyright (C) 2011 Research In Motion Limited. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the foll... | bsd-3-clause |
ajaxsys/web-dict | dict/pxy/formaters/dropins/dict.formatter.google_cache.js | 1897 | /*************************************************
* dict.formatter.google_cache.js
**************************************************/
;(function($){
'use strict';
var D= $.dict_extend();
// A plugin name starts with `auto_` will call `Auto Mode` first.
// Then when prefix match prefix defined in NON `auto` version,... | bsd-3-clause |
mgrauer/qibench | modules/helloworld/controllers/forms/IndexForm.php | 1053 | <?php
/*=========================================================================
MIDAS Server
Copyright (c) Kitware SAS. 20 rue de la Villette. All rights reserved.
69328 Lyon, FRANCE.
See Copyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILIT... | bsd-3-clause |
keimlink/django-cms | cms/utils/urlutils.py | 2750 | # -*- coding: utf-8 -*-
import re
from django.conf import settings
from django.core.urlresolvers import reverse
from django.utils.encoding import force_text
from django.utils.http import urlencode
from django.utils.six.moves.urllib.parse import urlparse
import cms
from cms.utils.conf import get_cms_setting
# checks... | bsd-3-clause |
birm/Elemental | src/matrices/Grcar.cpp | 1648 | /*
Copyright (c) 2009-2015, Jack Poulson
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
#include "El.hpp"
namespace El {
template<typename T>... | bsd-3-clause |
rgarro/zf2 | tests/Zend/Validator/File/SizeTest.php | 6863 | <?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... | bsd-3-clause |
gavinp/chromium | ppapi/proxy/dispatcher.cc | 2115 | // 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 "ppapi/proxy/dispatcher.h"
#include <string.h> // For memset.
#include <map>
#include "base/compiler_specific.h"
#include "base/logging.h... | bsd-3-clause |
jevakallio/react-native | ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageView.java | 19917 | /**
* 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.
*/
package co... | bsd-3-clause |
KaimingOuyang/HPC-K-Means | src/mlpack/core/kernels/epanechnikov_kernel.hpp | 3444 | /**
* @file epanechnikov_kernel.hpp
* @author Neil Slagle
*
* Definition of the Epanechnikov kernel.
*
* This file is part of mlpack 2.0.1.
*
* mlpack is free software; you may redstribute it and/or modify it under the
* terms of the 3-clause BSD license. You should have received a copy of the
* 3-clause BSD... | bsd-3-clause |
highweb-project/highweb-webcl-html5spec | content/renderer/pepper/resource_converter.cc | 13047 | // 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 "content/renderer/pepper/resource_converter.h"
#include <stddef.h>
#include "base/bind.h"
#include "base/message_loop/message_loop.h"
#include ... | bsd-3-clause |
hainm/pythran | third_party/nt2/include/functions/scalar/is_equal.hpp | 189 | #ifndef NT2_INCLUDE_FUNCTIONS_SCALAR_IS_EQUAL_HPP_INCLUDED
#define NT2_INCLUDE_FUNCTIONS_SCALAR_IS_EQUAL_HPP_INCLUDED
#include <nt2/operator/include/functions/scalar/is_equal.hpp>
#endif
| bsd-3-clause |
torpedro/codeocean | db/migrate/20140904082810_add_token_to_exercises.rb | 118 | class AddTokenToExercises < ActiveRecord::Migration
def change
add_column :exercises, :token, :string
end
end
| bsd-3-clause |
Kintaro/MOSA-Project | Source/Mosa.Platform.x86/Intrinsic/Int.cs | 706 | // Copyright (c) MOSA Project. Licensed under the New BSD License.
using Mosa.Compiler.Framework;
namespace Mosa.Platform.x86.Intrinsic
{
/// <summary>
/// Representations the x86 int instruction.
/// </summary>
internal sealed class Int : IIntrinsicPlatformMethod
{
#region Methods
/// <summary>
/// Repl... | bsd-3-clause |
tanerkuc/shineisp | library/Shineisp/Validate/Regions.php | 780 | <?php
class Shineisp_Validate_Regions extends Zend_Validate_Abstract {
const COUNTRYIDEMPTY = 'If you set RegionID you have to fill also CountryID';
const REGIONIDNOTVALID = 'RegionID not valid';
public function isValid($value, $context = null) {
$value = intval($value);
if( $value != ... | bsd-3-clause |
JianpingZeng/xcc | xcc/test/juliet/testcases/CWE606_Unchecked_Loop_Condition/CWE606_Unchecked_Loop_Condition__char_file_82a.cpp | 4374 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE606_Unchecked_Loop_Condition__char_file_82a.cpp
Label Definition File: CWE606_Unchecked_Loop_Condition.label.xml
Template File: sources-sinks-82a.tmpl.cpp
*/
/*
* @description
* CWE: 606 Unchecked Input For Loop Condition
* BadSource: file Read input from a fi... | bsd-3-clause |
sebastiangraf/jSCSI | bundles/commons/src/main/java/org/jscsi/parser/datasegment/BinaryDataSegment.java | 4133 | /**
* Copyright (c) 2012, University of Konstanz, Distributed Systems Group 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 noti... | bsd-3-clause |
lucasvanhalst/identityserver | https/https.go | 1795 | package https
import (
"os"
"crypto/tls"
"io/ioutil"
"net/http"
log "github.com/Sirupsen/logrus"
)
func PrepareHTTP(bindAddress string, handler http.Handler) *http.Server {
s := &http.Server{
Addr: bindAddress,
Handler: handler,
}
return s
}
func PrepareHTTPS(s *http.Server, cert string, key string... | bsd-3-clause |
Alkalyne/webrtctrunk | modules/audio_coding/neteq/audio_vector.cc | 13347 | /*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | bsd-3-clause |
mikaelwasp/toir-server | api/views/manual/site/index.php | 680 | <?php
/* @var $this yii\web\View */
$this->title = 'Api ToirServer';?>
<div class="site-index">
<div class="jumbotron">
<div class="body-content">
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-8">
<h4 class="text-left">... | bsd-3-clause |
couchbaselabs/celery | celery/events/dumper.py | 2751 | # -*- coding: utf-8 -*-
"""
celery.events.dumper
~~~~~~~~~~~~~~~~~~~~
THis is a simple program that dumps events to the console
as they happen. Think of it like a `tcpdump` for Celery events.
:copyright: (c) 2009 - 2012 by Ask Solem.
:license: BSD, see LICENSE for more details.
"""
from __fu... | bsd-3-clause |