repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
Workday/OpenFrame | ppapi/proxy/ppapi_command_buffer_proxy.cc | 10421 | // 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/ppapi_command_buffer_proxy.h"
#include "base/numerics/safe_conversions.h"
#include "ppapi/proxy/ppapi_messages.h"
#include "ppa... | bsd-3-clause |
tciuro/NanoStore | Classes/Public/NanoStore.h | 24679 | /*
NanoStore.h
NanoStore
Copyright (c) 2013 Webbo, 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 co... | bsd-3-clause |
raquel-ucl/cartodb | lib/assets/javascripts/cartodb/common/dialogs/create/listing/datasets/remote_dataset_item_view.js | 3614 | var cdb = require('cartodb.js');
var $ = require('jquery');
var DatasetItem = require('./dataset_item_view');
var Utils = require('cdb.Utils');
var UploadConfig = require('../../../../background_importer/upload_config');
var pluralizeString = require('../../../../view_helpers/pluralize_string');
/**
* Remote dataset... | bsd-3-clause |
sfdazsdf/cpp-hiredis-cluster | include/container.h | 6201 | /*
* Copyright (c) 2015, Dmitrii Shinkevich <shinmail at gmail dot com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this li... | bsd-3-clause |
manguiatmarvin/osms | module/SanAuth/src/SanAuth/Model/MyAuthStorage.php | 1233 | <?php
namespace SanAuth\Model;
use Zend\Authentication\Storage;
class MyAuthStorage extends Storage\Session
{
public function setRememberMe($rememberMe = 0, $time = 1209600)
{
if ($rememberMe == 1) {
$this->session->getManager()->rememberMe($time);
}
}
public function for... | bsd-3-clause |
manuelpichler/staticReflection | src/test/resources/files/regression/010498195/True.php | 50 | <?php
namespace bug_010498195;
class True {
} | bsd-3-clause |
STMicroelectronics/STMems_Standard_C_drivers | lsm6dsm_STdC/examples/lsm6dsm_sens_hub_lis2mdl.c | 14884 | /*
******************************************************************************
* @file sensor_hub_lis2mdl_no_fifo_simple.c
* @author Sensors Software Solution Team
* @brief This file show the simplest way enable a LIS2MDL mag connected
* to LSM6DSM I2C master interface (no FIFO support).
*
****... | bsd-3-clause |
ovh/cds | engine/api/workflow/dao_audit.go | 1322 | package workflow
import (
"github.com/go-gorp/gorp"
"github.com/ovh/cds/sdk"
)
// InsertAudit insert a workflow audit
func InsertAudit(db gorp.SqlExecutor, a *sdk.AuditWorkflow) error {
audit := auditWorkflow(*a)
if err := db.Insert(&audit); err != nil {
return sdk.WrapError(err, "Unable to insert audit")
}
... | bsd-3-clause |
hholi/phd2 | cameras/ASICamera2.h | 25949 | /**************************************************
this is the second version of release ASI Camera ASIs
any question feel free contact us:sam.wen@zwoptical.com
here is the suggested procedure to operate the camera.
--> ASIGetNumOfConnectedCameras
----> ASIGetCameraProperty for each camera
--> ASIOpenCamer... | bsd-3-clause |
tilia/tilia-vobject | test/v_object/i_tip/broker_process_reply_test.rb | 7897 | require 'test_helper'
require 'v_object/i_tip/broker_tester'
module Tilia
module VObject
class BrokerProcessReplyTest < ITip::BrokerTester
def test_reply_no_original
itip = <<ICS
BEGIN:VCALENDAR
VERSION:2.0
METHOD:REPLY
BEGIN:VEVENT
SEQUENCE:2
UID:foobar
ATTENDEE;PARTSTAT=ACCEPTED:mailto:foo@exampl... | bsd-3-clause |
jAlpedrinha/DeclRY | declry/views.py | 9652 | from django.core.exceptions import ImproperlyConfigured
from django.core.urlresolvers import reverse
from django.db import transaction
from django.forms.models import inlineformset_factory, modelform_factory
from django.forms.widgets import HiddenInput
from django.shortcuts import get_object_or_404
from vanilla import ... | bsd-3-clause |
KaimingOuyang/HPC-K-Means | papi-5.4.3/src/libpfm4/lib/pfmlib_intel_snb.c | 3987 | /*
* pfmlib_intel_snb.c : Intel Sandy Bridge core PMU
*
* Copyright (c) 2010 Google, Inc
* Contributed by Stephane Eranian <eranian@gmail.com>
*
* 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... | bsd-3-clause |
AlexejK/lombok-intellij-plugin | src/main/java/de/plushnikov/intellij/plugin/processor/handler/singular/EmptyBuilderElementHandler.java | 1477 | package de.plushnikov.intellij.plugin.processor.handler.singular;
import com.intellij.psi.PsiAnnotation;
import com.intellij.psi.PsiClass;
import com.intellij.psi.PsiField;
import com.intellij.psi.PsiMethod;
import com.intellij.psi.PsiSubstitutor;
import com.intellij.psi.PsiType;
import com.intellij.psi.PsiVariable;
i... | bsd-3-clause |
jonathanihm/freeCodeCamp | curriculum/challenges/chinese/08-coding-interview-prep/rosetta-code/factorial.chinese.md | 1381 | ---
title: Factorial
id: 597b2b2a2702b44414742771
challengeType: 5
videoUrl: ''
localeTitle: 阶乘
---
## Description
<section id="description"><p>编写一个函数来返回一个数字的阶乘。 </p><p>一个数字的因子由下式给出: </p> N! = n *(n-1)*(n-2)* ..... * 1 <p>例如:3! = 3 * 2 * 1 = 6 4! = 4 * 3 * 2 * 1 = 24 </p><p>注意:0! = 1 </p></section>
## Instructions
<s... | bsd-3-clause |
tcabanski/SouthSideDevToys | SyncDBNantTasks/SyncDatabaseParmsBase.cs | 637 | using System;
using RedGate.Shared.SQL;
using RedGate.SQLCompare.Engine;
namespace SyncDBNantTasks {
public abstract class SyncDatabaseParmsBase {
private DBConnectionInformation connection;
public Database RegisteredDatabase { get; protected set; }
public DBConnectionInformation Connecti... | bsd-3-clause |
endlessm/chromium-browser | net/base/network_change_notifier_posix.h | 2993 | // 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.
#ifndef NET_BASE_NETWORK_CHANGE_NOTIFIER_POSIX_H_
#define NET_BASE_NETWORK_CHANGE_NOTIFIER_POSIX_H_
#include <memory>
#include "base/gtest_prod_util... | bsd-3-clause |
dmitry-urenev/extended-orchard-cms-v10.1 | src/Orchard.Web/Modules/Orchard.SEO/Migrations.cs | 1459 | using System.Data;
using Orchard.ContentManagement.MetaData;
using Orchard.Core.Contents.Extensions;
using Orchard.Data.Migration;
using Orchard.SEO.Services;
namespace Orchard.SEO
{
public class Migrations : DataMigrationImpl
{
public int Create()
{
SchemaBuilder.CreateTable("MetaR... | bsd-3-clause |
vivyly/fancastic_17 | fancastic_17/fan/migrations/0001_initial.py | 909 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='FanUser... | bsd-3-clause |
acericonia/zf2-blog | module/Blog/config/module.config.php | 1534 | <?php
/*
* 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.
*/
return array(
'service_manager' => array(
'invokables' => array(
'Blog\Service\PostServiceInterface'... | bsd-3-clause |
iti-luebeck/SmachApp | app/src/main/java/de/uni_luebeck/iti/smachapp/app/TransitionProperty.java | 6939 | /*
* Copyright (c) 2015, Institute of Computer Engineering, University of Lübeck
* 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... | bsd-3-clause |
sagargopale/zend-api-dev | vendor/autoload.php | 183 | <?php
// autoload.php @generated by Composer
require_once __DIR__ . '/composer' . '/autoload_real.php';
return ComposerAutoloaderInit29a195fdeafbaf46892c28c394475c18::getLoader();
| bsd-3-clause |
devhood/erp-blpi | module/Database/src/Entity/Purchases.php | 4349 | <?php
namespace Database\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Purchases
*
* @ORM\Table(name="Purchases", indexes={@ORM\Index(name="fk_Purchases_Suppliers1_idx", columns={"supplier_id"})})
* @ORM\Entity
*/
class Purchases
{
/**
* @var integer
*
* @ORM\Column(name="purchase_id", type=... | bsd-3-clause |
CGATOxford/proj029 | Proj029Pipelines/pipeline_proj029.py | 12528 | """
=====================================================
Analysis for project 29
=====================================================
:Author: Nick Ilott
:Release: $Id$
:Date: |today|
:Tags: Python
"""
# load modules
from ruffus import *
import CGAT.Experiment as E
import logging as L
import CGAT.Database as Data... | bsd-3-clause |
psprint/keyfrog | src/StorageManager.h | 4192 | /*********************************************************************************
* Copyright (C) 2006-2013 by Sebastian Gniazdowski *
* All Rights reserved. *
* ... | bsd-3-clause |
datafolklabs/cement | tests/ext/test_ext_redis.py | 1437 |
import os
from time import sleep
from cement.utils.test import TestApp
from cement.utils.misc import init_defaults
if 'REDIS_HOST' in os.environ.keys():
redis_host = os.environ['REDIS_HOST']
else:
redis_host = 'localhost'
defaults = init_defaults('cache.redis')
defaults['cache.redis']['host'] = redis_host
... | bsd-3-clause |
alameluchidambaram/CONNECT | Product/Production/Services/HIEMCore/src/main/java/gov/hhs/fha/nhinc/notify/adapter/proxy/HiemNotifyAdapterWebServiceProxySecured.java | 6017 | /*
* Copyright (c) 2012, United States Government, as represented by the Secretary of Health and Human Services.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of so... | bsd-3-clause |
vorobyev/kontrexpert | expert.sql | 38501 | -- phpMyAdmin SQL Dump
-- version 4.6.3
-- https://www.phpmyadmin.net/
--
-- Хост: localhost
-- Время создания: Сен 07 2016 г., 10:58
-- Версия сервера: 5.6.27-log
-- Версия PHP: 5.6.23
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;... | bsd-3-clause |
endlessm/chromium-browser | net/websockets/websocket_basic_stream_test.cc | 39587 | // 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.
//
// Tests for WebSocketBasicStream. Note that we do not attempt to verify that
// frame parsing itself functions correctly, as that is covered by the
// ... | bsd-3-clause |
wantedtobehaunted/replicator-clone | lib/utils.lua | 1517 |
function enum(names)
local rv = {}
for i, name in ipairs(names) do
rv[name] = i
end
return rv
end
function difference(num1, num2)
if num1 > num2 then
return num1 - num2
else
return num2 - num1
end
end
function concat(t1,t2)
for i = 1,#t2 do
t1[#t1+1] = t2[i]
end
return t1
end
functio... | bsd-3-clause |
yubo/program | ds/计算几何模板/pku_1066_Treasure Hunt.cpp | 3649 | #include <stdio.h>
#include <iostream>
#include <math.h>
using namespace std;
#define eps 1e-6
struct TPoint
{
double x, y;
};
struct TLine
{
TPoint p1, p2;
};
double max(double x, double y)
{
//±È½ÏÁ½¸öÊýµÄ´óС£¬·µ»Ø´óµÄÊý
if(x > y) return x;
else return y;
}
double ... | bsd-3-clause |
yuyichao/OpenBLAS | lapack-netlib/LAPACKE/src/lapacke_dormlq_work.c | 5079 | /*****************************************************************************
Copyright (c) 2014, Intel Corp.
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 cod... | bsd-3-clause |
ryonley/codeconductor | public/css/style.css | 1496 | body {
padding-top: 60px;
padding-bottom: 40px;
}
.zf-green {
color: #68b604;
}
.btn-success {
background-color: #57a900;
background-image: -moz-linear-gradient(top, #70d900, #57a900);
background-image: -ms-linear-gradient(top, #70d900, #57a900);
background-image: -webkit-gradient(linear, 0 0, 0 1... | bsd-3-clause |
chunshen1987/DistributionSampling | src/Distribution.h | 2908 | /*=========================================================================
*
* Copyright 2011-2013 The University of North Carolina at Chapel Hill
* All rights reserved.
*
* Licensed under the MADAI Software License. You may obtain a copy of
* this license at
*
* https://madai-public.cs.unc.edu/vis... | bsd-3-clause |
paul99/clank | gpu/command_buffer/common/constants.h | 1508 | // 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.
#ifndef GPU_COMMAND_BUFFER_COMMON_CONSTANTS_H_
#define GPU_COMMAND_BUFFER_COMMON_CONSTANTS_H_
#include "../common/types.h"
namespace gpu {
typedef ... | bsd-3-clause |
timbod7/veditor | ErrVal.hs | 1843 | module ErrVal where
-- ErrVal captures a value, or an error state indicating
-- that the value could not be computed. The error state
-- includes a "reason" message and context information on
-- where the error occurred.
--
-- Instances of Functor, Applicative, Monad, Num, and Fractional are
-- provided.
import Cont... | bsd-3-clause |
NCIP/c3pr | codebase/projects/core/db/SQLServer/static-data-delete.sql | 280 | DELETE FROM CONTACT_MECHANISMS;
DELETE FROM RESEARCH_STAFF;
DELETE FROM HC_SITE_INVESTIGATORS;
DELETE FROM INVESTIGATORS;
DELETE FROM IDENTIFIERS;
DELETE FROM ORGANIZATIONS WHERE ID BETWEEN 10000 AND 10005;
DELETE FROM ADDRESSES WHERE ID BETWEEN 10000 AND 10005; | bsd-3-clause |
suiGn/orgboat | cod/php/add_rectsk.php | 4190 | <?php
/*
* recurrent homeworks
* */
include "utils.php";
session_start();
//si no hay sesion iniciada
if(!isset($_SESSION["usrUserName"]) )
{
//retornar al index (login)
header("location: ../../index.php");
exit();
}
//verificar que viene el campo activity del form
if(isset($_POST["cmb_activity"] ))
{
... | bsd-3-clause |
merlin86/TeamPlanets | bots/sage0/sagebot.hpp | 3431 | // sagebot.hpp - SageBot class definition
// sage - A TeamPlanets bot written for MachineZone job application
//
// Copyright (c) 2015 Vadim Litvinov <vadim_litvinov@fastmail.com>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided tha... | bsd-3-clause |
wangxin39/xstat | XStatAPI/docs/api/cn/iaicc/smgk/dao/ISmgkHistoryInfoDao.html | 14060 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_05) on Mon Sep 15 09:30:36 CST 2008 -->
<TITLE>
ISmgkHistoryInfoDao (ÉñÃØ¹Ë¿Í¹ÜÀíÆ½Ì¨ API)
</TITLE>
<META NAME="date" CONTENT="2008-09-15">
<LINK R... | bsd-3-clause |
jakefoster/ncore-ioc | src/_unittests.org.ncore.Ioc/NewTests.cs | 6200 | using System;
using System.Configuration;
using System.Diagnostics;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using org.ncore.Ioc;
namespace _unittests.org.ncore.Ioc
{
/// <summary>
/// Summary description for NewTests
/// ... | bsd-3-clause |
loopCM/chromium | webkit/appcache/appcache_url_request_job_unittest.cc | 27756 | // 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 <stack>
#include <utility>
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/callback.h"
#include "base/compiler_specific... | bsd-3-clause |
devbharat/gtsam | doc/html/a00494.js | 523 | var a00494 =
[
[ "calculate_nnz", "a00494.html#aca63ccfbd14352eade58fd2a2ec6b5e4", null ],
[ "nnz_internal", "a00494.html#a710993cf2d56652448517817943ad10f", null ],
[ "optimizeWildfire", "a00494.html#adc947c65dcf861c33a24399614c0791a", null ],
[ "optimizeWildfire", "a00494.html#a33509e7a55b46fe677e682d... | bsd-3-clause |
erhs-53-hackers/Robo2012 | src/edu/wpi/first/wpilibj/templates/ImageProcessing.java | 7992 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package edu.wpi.first.wpilibj.templates;
import edu.wpi.first.wpilibj.camera.AxisCamera;
import edu.wpi.first.wpilibj.image.BinaryImage;
import edu.wpi.first.wpilibj.image.ColorImage;
import edu.wpi.first.wpilibj.image.... | bsd-3-clause |
shnfu/shnfucarver | library/ShnfuCarver/Kernel/Service/ServiceRepository.php | 1772 | <?php
/**
* Service repository class file
*
* @package ShnfuCarver
* @subpackage Kernel\Service
* @copyright 2012 Shnfu
* @author Zhao Xianghu <xianghuzhao@gmail.com>
* @license http://carver.shnfu.com/license.txt New BSD License
*/
namespace ShnfuCarver\Kernel\Service;
/**
* Service repositor... | bsd-3-clause |
drmateo/pcl | gpu/kinfu/include/pcl/gpu/kinfu/kinfu.h | 11857 | /*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2011, Willow Garage, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
... | bsd-3-clause |
evenator/mapviz | mapviz_plugins/src/laserscan_plugin.cpp | 20064 | // *****************************************************************************
//
// Copyright (c) 2015, Southwest Research Institute® (SwRI®)
// 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 |
raisedadead/FreeCodeCamp | curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/functional-programming/apply-functional-programming-to-convert-strings-to-url-slugs.md | 2469 | ---
id: 587d7dab367417b2b2512b6d
title: 應用函數式編程將字符串轉換爲URL片段
challengeType: 1
forumTopicId: 301227
dashedName: apply-functional-programming-to-convert-strings-to-url-slugs
---
# --description--
最後幾個挑戰中涵蓋了許多符合函數式編程原則並在處理數組和字符串中非常有用的方法。 我們還學習了強大的、可以將問題簡化爲更簡單形式的 `reduce` 方法。 從計算平均值到排序,任何數組操作都可以用它來實現。 回想一下,`map` 和 `filter... | bsd-3-clause |
bxlab/HiFive_Paper | Scripts/Timing/hiclib_heatmap.py | 813 | #!/usr/bin/env python
import sys
from hiclib import mapping, fragmentHiC
from mirnylib import h5dict, genome
import h5py
basedir = sys.argv[1]
genome_db = genome.Genome('%s/Data/Genome/mm9_fasta' % basedir, readChrms=['1'], chrmFileTemplate="%s.fa")
temp = h5py.File('%s/Data/Timing/hiclib_data_norm.hdf5' % basedi... | bsd-3-clause |
raonyguimaraes/mendelmd | filter_analysis/templates/tabs/main_familyanalysis.html | 3095 | <style type="text/css">
#s2id_id_groups, #s2id_id_individuals, #s2id_id_exclude_individuals, #s2id_id_exclude_groups, #s2id_id_genelists, #s2id_id_exclude_genelists, #s2id_id_father, #s2id_id_mother, #s2id_id_children{
width:240px;
/*height: 50px;*/
}
#id_individuals, #id_exclude_individuals, #id_groups, #id_exc... | bsd-3-clause |
brahmajiayatas/getweiss | protected/views/profile/online.php | 1760 | <div class="member_section">
<div class="login_home"> <a href="<?php echo Yii::app()->getHomeUrl(true); ?>"><img src="<?php echo Yii::app()->theme->baseUrl; ?>/images/login_home_img.png" alt="" /></a> </div>
<div class="login_arrow"> <a href="javascript:history.back()"><img src="<?php echo Yii::app()->theme->baseUr... | bsd-3-clause |
webino/WebinoDev | tests/WebinoDev/ModuleTest.php | 1226 | <?php
/**
* Webino (http://webino.sk/)
*
* @link https://github.com/webino/WebinoDev/ for the canonical source repository
* @copyright Copyright (c) 2014-2017 Webino, s. r. o. (http://webino.sk/)
* @license BSD-3-Clause
*/
namespace WebinoDev;
/**
* WebinDev module tests
*/
class ModuleTest exten... | bsd-3-clause |
Midnighter/MfinderWrapper | mfinderwrapper/mfinder/mat.c | 6759 | /************************************************************************
*
* File name: mat.c
*
* Description: matrix operations functions
*
* Copyright � 2002-2004 Weizmann Institute of Science,
* 76100 Rehovot Israel, All rights reserved
*
************************************************************... | bsd-3-clause |
UsuarioCristian/basic2015 | api/assets/js/controllers/controllers.js | 450 | 'use strict';
angular.module('app.controllers', [])
.controller('HomeController', ['$scope','CountryFactory', function($scope, CountryFactory){
$scope.paisSeleccionado = [];
CountryFactory.getAllCountries();
$scope.mostrarPaises = function(){
CountryFactory.getAllCountries();
var countries = CountryFactory.get... | bsd-3-clause |
primiano/blink-gitcs | Source/web/WebRuntimeFeatures.cpp | 8907 | /*
* 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 conditio... | bsd-3-clause |
ChromiumWebApps/chromium | ash/wm/window_manager_unittest.cc | 31970 | // 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 "ash/shell.h"
#include "ash/shell_window_ids.h"
#include "ash/test/ash_test_base.h"
#include "ash/test/shell_test_api.h"
#include "ash/test/t... | bsd-3-clause |
fahmihdyt/propensi | views/Issue/update.php | 550 | <?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\models\issue */
$this->title = 'Update Issue: ' . ' ' . $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Issues', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]];... | bsd-3-clause |
cboy868/lion | modules/grave/views/admin/tomb/option.php | 10602 | <?php
use app\core\helpers\Url;
\app\assets\BootBoxAsset::register($this);
?>
<style type="text/css">
#option-box { font-size:12px;}
#option-box table tr{ margin-bottom:1em; border-bottom:1px dotted #e1e1e1; }
#option-box table td { vertical-align:middle; padding:2px 0px 3px 3px; }
#option-box table td sp... | bsd-3-clause |
stan-dev/math | lib/sundials_6.0.0/src/nvector/hip/VectorKernels.hip.hpp | 7402 | /*
* -----------------------------------------------------------------
* Programmer(s): Slaven Peles, Cody J. Balos @ LLNL
* -----------------------------------------------------------------
* SUNDIALS Copyright Start
* Copyright (c) 2002-2021, Lawrence Livermore National Security
* and Southern Methodist Univers... | bsd-3-clause |
PaulWoow/HTML5JUEGOGRAFICACION | Mini Valle PaJou/libs/easeljs/display/DisplayObject.js | 21794 | /*
* DisplayObject by Grant Skinner. Dec 5, 2010
* Visit http://easeljs.com/ for documentation, updates and examples.
*
*
* Copyright (c) 2010 Grant Skinner
*
* 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-3-clause |
keithhamilton/features-commits-prs | keeping-your-features-separate.md | 35 | #keeping-your-features-separate
TBD | bsd-3-clause |
ndexbio/ndex-object-model | src/main/java/org/ndexbio/cxio/core/interfaces/INiceCXNetworkReader.java | 1040 | /*
* 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 org.ndexbio.cxio.core.interfaces;
import java.io.InputStream;
import org.ndexbio.model.cx.NiceCXNetwork;
import org.ndexbio.mo... | bsd-3-clause |
magdielikari/HidroLab-Manager | backend/modules/admin/views/roles/create.php | 901 | <?php
use yii\helpers\Html;
use yii\helpers\ArrayHelper;
$this->title = Yii::t('app', 'Create Role');
$this->params['breadcrumbs'][] = ['label'=>Yii::t('app', 'Admin'), 'url'=>['index']];
$this->params['breadcrumbs'][] = ['label'=>Yii::t('app', 'Roles'), 'url'=>['roles/index']];
$this->params['breadcrumbs'][] = $thi... | bsd-3-clause |
sabey/transmission | torrent_add.go | 2493 | package transmission
// Copyright 2015, JuanDeFu.ca. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
import (
"encoding/json"
"fmt"
"log"
"strings"
)
/*
Method name
torrent-add
*/
/*
Either "filename" OR "metainfo" MUST be included.
*/
/*... | bsd-3-clause |
nhibberd/search | src/main/data/core/Function.java | 79 | package main.data.core;
public interface Function<A, B> {
B apply(A a);
}
| bsd-3-clause |
SaratogaMSET/649code2014 | src/com/team649/frc2014/subsystems/ClawRollerSubsystem.java | 1047 | /*
* 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.team649.frc2014.subsystems;
import com.team649.frc2014.RobotMap;
import edu.wpi.first.wpilibj.SpeedController;
import edu.... | bsd-3-clause |
wayfinder/Wayfinder-CppCore-v2 | docs/MapLibAPI/OverlayInterface_8h-source.html | 9038 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>MapLibAPI: OverlayInterface.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
... | bsd-3-clause |
ehoch/spree_grid_faq | lib/spree_grid_faq/engine.rb | 486 | module SpreeGridFaq
class Engine < Rails::Engine
engine_name 'spree_grid_faq'
config.autoload_paths += %W(#{config.root}/lib)
# use rspec for tests
config.generators do |g|
g.test_framework :rspec
end
def self.activate
Dir.glob(File.join(File.dirname(__FILE__), '../../app/**/*_d... | bsd-3-clause |
LeonidLyalin/vova | common/humhub/protected/humhub/modules/search/messages/pt/base.php | 51 | <?php
return array (
'Search' => 'Pesquisar',
);
| bsd-3-clause |
genome-vendor/apollo | javadoc/apollo/gui/detailviewers/sequencealigner/HorizontalScrollBarAdjustmentListener.html | 10958 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_18) on Tue Jul 07 10:40:59 PDT 2009 -->
<TITLE>
HorizontalScrollBarAdjustmentListener
</TITLE>
<META NAME="keywords" CONTENT="apollo.gui.detailviewe... | bsd-3-clause |
ExLibrisGroup/Rosetta.dps-sdk-projects | 5.4.0/javadoc/com/exlibris/digitool/common/dnx/DNXConstants.OBJECTIDENTIFIER.html | 9262 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_45) on Mon Jan 01 12:59:09 IST 2018 -->
<title>DNXConstants.OBJECTIDENTIFIER</title>
<meta name="date" content="2018-01-01">
<link rel="stylesh... | bsd-3-clause |
Ehryk/MNLicenseCheck | run.sh | 20 | node LicenseCheck.js | bsd-3-clause |
danakj/chromium | ash/common/system/ime/tray_ime_chromeos.cc | 9556 | // 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 "ash/common/system/ime/tray_ime_chromeos.h"
#include <vector>
#include "ash/common/session/session_state_delegate.h"
#include "ash/common/s... | bsd-3-clause |
PolymerLabs/ristretto | src/reporter.ts | 2969 | /**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors ma... | bsd-3-clause |
Bladefidz/ocfa_yii | vendor/yiisoft/yii2-apidoc/helpers/ApiMarkdownTrait.php | 6745 | <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\apidoc\helpers;
use phpDocumentor\Reflection\DocBlock\Type\Collection;
use yii\apidoc\models\MethodDoc;
use yii\apidoc\models\TypeDoc;
/**
* Class ApiM... | bsd-3-clause |
ft-/arribasim-dev-extras | OpenSim/Framework/DOMap.cs | 4063 | /*
* Copyright (c) Contributors, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* 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 r... | bsd-3-clause |
SaschaMester/delicium | cc/layers/picture_layer_impl.cc | 50012 | // 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/layers/picture_layer_impl.h"
#include <algorithm>
#include <cmath>
#include <limits>
#include <set>
#include "base/time/time.h"
#include "b... | bsd-3-clause |
verma/PDAL | src/drivers/caris/config.h | 2443 | /************************************************************************
* Copyright (c) 2012, CARIS
* 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 mu... | bsd-3-clause |
devartis/Spree-Mercado-Pago-payment-method | spec/models/spree/mercado_pago/order_preferences_builder_spec.rb | 2062 | require 'spec_helper'
describe 'OrderPreferencesBuilder' do
# Factory order_with_line_items is incredibly slow..
let(:order) do
order = create :order
create_list :line_item, 2, order:order
order.line_items.reload
order.update!
order
end
let!(:adjustment) { order.adjustments.create! label:... | bsd-3-clause |
MarginC/kame | netbsd/sys/lkm/compat/osf1/lkminit_emul.c | 2694 | /* $NetBSD: lkminit_emul.c,v 1.5 2001/11/12 23:23:04 lukem Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Michael Graff <explorer@flame.org>.
*
* Redistribution and use in source and binary for... | bsd-3-clause |
FreeCodeCamp/FreeCodeCamp | curriculum/challenges/ukrainian/10-coding-interview-prep/project-euler/problem-356-largest-roots-of-cubic-polynomials.md | 971 | ---
id: 5900f4d01000cf542c50ffe3
title: 'Задача 356: Найбільші корені кубічних поліномів'
challengeType: 5
forumTopicId: 302016
dashedName: problem-356-largest-roots-of-cubic-polynomials
---
# --description--
Нехай an - найбільший дійсний корінь полінома $g(x) = x^3 - 2^n \times x^2 + n$.
Наприклад, $a_2 = 3.8661982... | bsd-3-clause |
marcopompili/django-market | django_market/__init__.py | 94 |
#from django.conf import settings
#settings.INSTALLED_APPS += ("mptt", "hvad", "galleries",) | bsd-3-clause |
AndyMark/AMCrosslink-Java | src/com/andymark/crosslink/UpdateJaguarPacket.java | 811 | package com.andymark.crosslink;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
public class UpdateJaguarPacket implements Message {
private short[] uiMode = new short[20];
private short[] uiSetVoltage = new short[20];
@Override
public ByteBuffer getMessage() {
for (int i = 16; i < 20; i++) {
ui... | bsd-3-clause |
samsonasik/zf_111_support_php532_with_modulewizard | public/themes/zend_prj/js/modules/modules.js | 751 | function installthis(id)
{
var answer = confirm('Are you sure ? ');
if (answer){
//delete img...
$.post(base_url+'/zfmodules/index/installmod/id/'+id, function(data){
window.location.reload(false);
});
}
}
... | bsd-3-clause |
all-of-us/raw-data-repository | rdr_service/tools/tool_libs/backfill_gvcf_paths.py | 2248 | from rdr_service.model.genomics import GenomicGCValidationMetrics, GenomicSetMember
from rdr_service.tools.tool_libs.tool_base import cli_run, ToolBase
tool_cmd = 'backfill-gvcf'
tool_desc = 'Backfill the gVCF paths in genomic_gc_validation_metrics'
class GVcfBackfillTool(ToolBase):
def run(self):
super(... | bsd-3-clause |
jmnarloch/akka.js | akka-js-actor/js/src/main/scala/akka/actor/dungeon/DeathWatch.scala | 9120 | /**
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.actor.dungeon
import akka.actor.{ Terminated, InternalActorRef, ActorRef, ActorRefScope, ActorCell, Actor, Address }
import akka.dispatch.sysmsg.{ DeathWatchNotification, Watch, Unwatch }
import akka.event.Logging.{ Warning, Error... | bsd-3-clause |
ChromiumWebApps/chromium | tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp | 2082 | // 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.
// This clang plugin checks various invariants of the Blink garbage
// collection infrastructure.
//
// Checks that are implemented:
// [currently none]
... | bsd-3-clause |
yonglehou/shuttle-scheduling | Shuttle.Scheduling/DataAccess/Queries/ScheduleQuery.cs | 703 | using Shuttle.Core.Data;
using Shuttle.Core.Infrastructure;
namespace Shuttle.Scheduling
{
public class ScheduleQuery : IScheduleQuery
{
private readonly IDatabaseGateway _databaseGateway;
private readonly IScheduleQueryFactory _queryFactory;
public ScheduleQuery(IDatabaseGateway databaseGateway, IScheduleQue... | bsd-3-clause |
google-code/alkes | sample/01_application/TransformContents.h | 2096 | /*
* Copyright (c) 2010-2011, okazoh_tk. 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 |
youtube/cobalt | cobalt/build/sync_to_build_id.py | 6399 | #!/usr/bin/python2
"""Syncs to a given Cobalt build id.
Syncs current gclient instance to a given build id, as
generated by "build_id.py" and stored on carbon-airlock-95823.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import argparse
import json
im... | bsd-3-clause |
GCRC/nunaliit | nunaliit2-couch-command/src/main/java/ca/carleton/gcrc/couch/command/CommandUpgrade.java | 7080 | package ca.carleton.gcrc.couch.command;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.io.StringWriter;
import java.util.Calendar;
import org.json.JSONObject;
import org.json.JSONTokener;
import ca.carleton.gcrc.couch.command.impl.FileSe... | bsd-3-clause |
voidstart/ror_depot_reboot_1 | app/controllers/line_item_controller.rb | 53 | class LineItemController < ApplicationController
end
| bsd-3-clause |
bovee/Aston | README.md | 1287 | [](https://travis-ci.org/bovee/Aston/)
# Aston
Aston is a cross-platform, open source library for the analysis of chromatographic data. It's named for Francis William Aston, creator of the first fully functional mass spectrometer, and written using Pyt... | bsd-3-clause |
hughsons/saltwaterfish | classes_bkp_0621.py | 19445 | from models import *
from django.db import connection
import collections
import time
import calendar
def GetCreditCardList(contactid):
cards_list = []
orders = Orders.objects.all().filter(ocustomerid = contactid)
cards_hash = {}
for order in orders:
if order.ocardno:
if order.ocardno not in cards_h... | bsd-3-clause |
calee88/ParlAI | parlai/tasks/vqa_v2/build.py | 2271 | # Copyright (c) 2017-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.
# Download and build the da... | bsd-3-clause |
hfp/libxsmm | samples/deeplearning/sparse_weight_mult/parallel_sparse_weight_B_conv.c | 17192 | /******************************************************************************
* Copyright (c) Intel Corporation - All rights reserved. *
* This file is part of the LIBXSMM library. *
* *
... | bsd-3-clause |
danielsiebra/projeto_e_profissional | app/controllers/[scope]/registrations_controller.rb | 1404 | class [scope]::RegistrationsController < Devise::RegistrationsController
# before_action :configure_sign_up_params, only: [:create]
# before_action :configure_account_update_params, only: [:update]
# GET /resource/sign_up
# def new
# super
# end
# POST /resource
# def create
# super
# end
# GET... | bsd-3-clause |
LawnGnome/php-radius | tests/radius_cvt_string.phpt | 262 | --TEST--
radius_cvt_string()
--INI--
display_errors=1
error_reporting=22527
--SKIPIF--
<?php
if (!extension_loaded('radius')) echo 'SKIP: radius extension required';
?>
--FILE--
<?php
var_dump(radius_cvt_string('127.0.0.1'));
?>
--EXPECT--
string(9) "127.0.0.1"
| bsd-3-clause |
bereznev/yii2-blog | common/models/articles/Article.php | 5780 | <?php
namespace common\models\articles;
use common\models\behaviors\HiddenBehavior;
use common\models\scopes\ArticleScope;
use common\models\traits\CacheTrait;
use Yii;
use yii\behaviors\TimestampBehavior;
use yii\data\ActiveDataProvider;
use yii\helpers\ArrayHelper;
use yii\helpers\HtmlPurifier;
use common\models\Us... | bsd-3-clause |
zostera/django-modeltrans | modeltrans/fields.py | 12105 | from django.core.exceptions import ImproperlyConfigured
from django.db.models import F, fields
from django.db.models.functions import Cast, Coalesce
from django.utils.translation import gettext_lazy as _
from .conf import get_default_language, get_fallback_chain, get_modeltrans_setting
from .utils import (
Fallbac... | bsd-3-clause |
NCIP/cabio | software/cabio-database/scripts/sql_loader/no_longer_used/constraints/zstg_gene2go.disable.sql | 622 | /*L
Copyright SAIC
Distributed under the OSI-approved BSD 3-Clause License.
See http://ncip.github.com/cabio/LICENSE.txt for details.
L*/
alter table ZSTG_GENE2GO disable constraint SYS_C0029509;
alter table ZSTG_GENE2GO disable constraint SYS_C0029510;
alter table ZSTG_GENE2GO disable constraint SYS_C002951... | bsd-3-clause |