code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 3 942 | language stringclasses 30
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
// 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... | Workday/OpenFrame | ppapi/proxy/ppapi_command_buffer_proxy.cc | C++ | bsd-3-clause | 10,421 |
/*
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... | tciuro/NanoStore | Classes/Public/NanoStore.h | C | bsd-3-clause | 24,679 |
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... | raquel-ucl/cartodb | lib/assets/javascripts/cartodb/common/dialogs/create/listing/datasets/remote_dataset_item_view.js | JavaScript | bsd-3-clause | 3,614 |
/*
* 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... | sfdazsdf/cpp-hiredis-cluster | include/container.h | C | bsd-3-clause | 6,201 |
<?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... | manguiatmarvin/osms | module/SanAuth/src/SanAuth/Model/MyAuthStorage.php | PHP | bsd-3-clause | 1,233 |
<?php
namespace bug_010498195;
class True {
} | manuelpichler/staticReflection | src/test/resources/files/regression/010498195/True.php | PHP | bsd-3-clause | 50 |
/*
******************************************************************************
* @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).
*
****... | STMicroelectronics/STMems_Standard_C_drivers | lsm6dsm_STdC/examples/lsm6dsm_sens_hub_lis2mdl.c | C | bsd-3-clause | 14,884 |
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")
}
... | ovh/cds | engine/api/workflow/dao_audit.go | GO | bsd-3-clause | 1,322 |
/**************************************************
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... | hholi/phd2 | cameras/ASICamera2.h | C | bsd-3-clause | 25,949 |
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... | tilia/tilia-vobject | test/v_object/i_tip/broker_process_reply_test.rb | Ruby | bsd-3-clause | 7,897 |
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 ... | jAlpedrinha/DeclRY | declry/views.py | Python | bsd-3-clause | 9,652 |
/*
* 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... | KaimingOuyang/HPC-K-Means | papi-5.4.3/src/libpfm4/lib/pfmlib_intel_snb.c | C | bsd-3-clause | 3,987 |
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... | AlexejK/lombok-intellij-plugin | src/main/java/de/plushnikov/intellij/plugin/processor/handler/singular/EmptyBuilderElementHandler.java | Java | bsd-3-clause | 1,477 |
---
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... | jonathanihm/freeCodeCamp | curriculum/challenges/chinese/08-coding-interview-prep/rosetta-code/factorial.chinese.md | Markdown | bsd-3-clause | 1,381 |
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... | tcabanski/SouthSideDevToys | SyncDBNantTasks/SyncDatabaseParmsBase.cs | C# | bsd-3-clause | 637 |
// 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... | endlessm/chromium-browser | net/base/network_change_notifier_posix.h | C | bsd-3-clause | 2,993 |
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... | dmitry-urenev/extended-orchard-cms-v10.1 | src/Orchard.Web/Modules/Orchard.SEO/Migrations.cs | C# | bsd-3-clause | 1,459 |
# -*- 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... | vivyly/fancastic_17 | fancastic_17/fan/migrations/0001_initial.py | Python | bsd-3-clause | 909 |
<?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'... | acericonia/zf2-blog | module/Blog/config/module.config.php | PHP | bsd-3-clause | 1,534 |
/*
* 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... | iti-luebeck/SmachApp | app/src/main/java/de/uni_luebeck/iti/smachapp/app/TransitionProperty.java | Java | bsd-3-clause | 6,939 |
<?php
// autoload.php @generated by Composer
require_once __DIR__ . '/composer' . '/autoload_real.php';
return ComposerAutoloaderInit29a195fdeafbaf46892c28c394475c18::getLoader();
| sagargopale/zend-api-dev | vendor/autoload.php | PHP | bsd-3-clause | 183 |
<?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=... | devhood/erp-blpi | module/Database/src/Entity/Purchases.php | PHP | bsd-3-clause | 4,349 |
"""
=====================================================
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... | CGATOxford/proj029 | Proj029Pipelines/pipeline_proj029.py | Python | bsd-3-clause | 12,528 |
/*********************************************************************************
* Copyright (C) 2006-2013 by Sebastian Gniazdowski *
* All Rights reserved. *
* ... | psprint/keyfrog | src/StorageManager.h | C | bsd-3-clause | 4,192 |
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
... | datafolklabs/cement | tests/ext/test_ext_redis.py | Python | bsd-3-clause | 1,437 |
/*
* 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... | alameluchidambaram/CONNECT | Product/Production/Services/HIEMCore/src/main/java/gov/hhs/fha/nhinc/notify/adapter/proxy/HiemNotifyAdapterWebServiceProxySecured.java | Java | bsd-3-clause | 6,017 |
-- 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 */;... | vorobyev/kontrexpert | expert.sql | SQL | bsd-3-clause | 38,501 |
// 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
// ... | endlessm/chromium-browser | net/websockets/websocket_basic_stream_test.cc | C++ | bsd-3-clause | 39,587 |
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... | wantedtobehaunted/replicator-clone | lib/utils.lua | Lua | bsd-3-clause | 1,517 |
#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 ... | yubo/program | ds/计算几何模板/pku_1066_Treasure Hunt.cpp | C++ | bsd-3-clause | 3,649 |
/*****************************************************************************
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... | yuyichao/OpenBLAS | lapack-netlib/LAPACKE/src/lapacke_dormlq_work.c | C | bsd-3-clause | 5,079 |
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... | ryonley/codeconductor | public/css/style.css | CSS | bsd-3-clause | 1,496 |
/*=========================================================================
*
* 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... | chunshen1987/DistributionSampling | src/Distribution.h | C | bsd-3-clause | 2,908 |
// 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 ... | paul99/clank | gpu/command_buffer/common/constants.h | C | bsd-3-clause | 1,508 |
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... | timbod7/veditor | ErrVal.hs | Haskell | bsd-3-clause | 1,843 |
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; | NCIP/c3pr | codebase/projects/core/db/SQLServer/static-data-delete.sql | SQL | bsd-3-clause | 280 |
<?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"] ))
{
... | suiGn/orgboat | cod/php/add_rectsk.php | PHP | bsd-3-clause | 4,190 |
// 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... | merlin86/TeamPlanets | bots/sage0/sagebot.hpp | C++ | bsd-3-clause | 3,431 |
<!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... | wangxin39/xstat | XStatAPI/docs/api/cn/iaicc/smgk/dao/ISmgkHistoryInfoDao.html | HTML | bsd-3-clause | 14,060 |
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
/// ... | jakefoster/ncore-ioc | src/_unittests.org.ncore.Ioc/NewTests.cs | C# | bsd-3-clause | 6,200 |
// 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... | loopCM/chromium | webkit/appcache/appcache_url_request_job_unittest.cc | C++ | bsd-3-clause | 27,756 |
var a00494 =
[
[ "calculate_nnz", "a00494.html#aca63ccfbd14352eade58fd2a2ec6b5e4", null ],
[ "nnz_internal", "a00494.html#a710993cf2d56652448517817943ad10f", null ],
[ "optimizeWildfire", "a00494.html#adc947c65dcf861c33a24399614c0791a", null ],
[ "optimizeWildfire", "a00494.html#a33509e7a55b46fe677e682d... | devbharat/gtsam | doc/html/a00494.js | JavaScript | bsd-3-clause | 523 |
/*
* 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.... | erhs-53-hackers/Robo2012 | src/edu/wpi/first/wpilibj/templates/ImageProcessing.java | Java | bsd-3-clause | 7,992 |
<?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... | shnfu/shnfucarver | library/ShnfuCarver/Kernel/Service/ServiceRepository.php | PHP | bsd-3-clause | 1,772 |
/*
* 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
... | drmateo/pcl | gpu/kinfu/include/pcl/gpu/kinfu/kinfu.h | C | bsd-3-clause | 11,857 |
// *****************************************************************************
//
// 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:... | evenator/mapviz | mapviz_plugins/src/laserscan_plugin.cpp | C++ | bsd-3-clause | 20,064 |
---
id: 587d7dab367417b2b2512b6d
title: 應用函數式編程將字符串轉換爲URL片段
challengeType: 1
forumTopicId: 301227
dashedName: apply-functional-programming-to-convert-strings-to-url-slugs
---
# --description--
最後幾個挑戰中涵蓋了許多符合函數式編程原則並在處理數組和字符串中非常有用的方法。 我們還學習了強大的、可以將問題簡化爲更簡單形式的 `reduce` 方法。 從計算平均值到排序,任何數組操作都可以用它來實現。 回想一下,`map` 和 `filter... | raisedadead/FreeCodeCamp | curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/functional-programming/apply-functional-programming-to-convert-strings-to-url-slugs.md | Markdown | bsd-3-clause | 2,469 |
#!/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... | bxlab/HiFive_Paper | Scripts/Timing/hiclib_heatmap.py | Python | bsd-3-clause | 813 |
<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... | raonyguimaraes/mendelmd | filter_analysis/templates/tabs/main_familyanalysis.html | HTML | bsd-3-clause | 3,095 |
<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... | brahmajiayatas/getweiss | protected/views/profile/online.php | PHP | bsd-3-clause | 1,760 |
<?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... | webino/WebinoDev | tests/WebinoDev/ModuleTest.php | PHP | bsd-3-clause | 1,226 |
/************************************************************************
*
* File name: mat.c
*
* Description: matrix operations functions
*
* Copyright � 2002-2004 Weizmann Institute of Science,
* 76100 Rehovot Israel, All rights reserved
*
************************************************************... | Midnighter/MfinderWrapper | mfinderwrapper/mfinder/mat.c | C | bsd-3-clause | 6,759 |
'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... | UsuarioCristian/basic2015 | api/assets/js/controllers/controllers.js | JavaScript | bsd-3-clause | 450 |
/*
* 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... | primiano/blink-gitcs | Source/web/WebRuntimeFeatures.cpp | C++ | bsd-3-clause | 8,907 |
// 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... | ChromiumWebApps/chromium | ash/wm/window_manager_unittest.cc | C++ | bsd-3-clause | 31,970 |
<?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]];... | fahmihdyt/propensi | views/Issue/update.php | PHP | bsd-3-clause | 550 |
<?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... | cboy868/lion | modules/grave/views/admin/tomb/option.php | PHP | bsd-3-clause | 10,602 |
/*
* -----------------------------------------------------------------
* Programmer(s): Slaven Peles, Cody J. Balos @ LLNL
* -----------------------------------------------------------------
* SUNDIALS Copyright Start
* Copyright (c) 2002-2021, Lawrence Livermore National Security
* and Southern Methodist Univers... | stan-dev/math | lib/sundials_6.0.0/src/nvector/hip/VectorKernels.hip.hpp | C++ | bsd-3-clause | 7,402 |
/*
* 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... | PaulWoow/HTML5JUEGOGRAFICACION | Mini Valle PaJou/libs/easeljs/display/DisplayObject.js | JavaScript | bsd-3-clause | 21,794 |
#keeping-your-features-separate
TBD | keithhamilton/features-commits-prs | keeping-your-features-separate.md | Markdown | bsd-3-clause | 35 |
/*
* 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... | ndexbio/ndex-object-model | src/main/java/org/ndexbio/cxio/core/interfaces/INiceCXNetworkReader.java | Java | bsd-3-clause | 1,040 |
<?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... | magdielikari/HidroLab-Manager | backend/modules/admin/views/roles/create.php | PHP | bsd-3-clause | 901 |
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.
*/
/*... | sabey/transmission | torrent_add.go | GO | bsd-3-clause | 2,493 |
package main.data.core;
public interface Function<A, B> {
B apply(A a);
}
| nhibberd/search | src/main/data/core/Function.java | Java | bsd-3-clause | 79 |
/*
* 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.... | SaratogaMSET/649code2014 | src/com/team649/frc2014/subsystems/ClawRollerSubsystem.java | Java | bsd-3-clause | 1,047 |
<!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">
... | wayfinder/Wayfinder-CppCore-v2 | docs/MapLibAPI/OverlayInterface_8h-source.html | HTML | bsd-3-clause | 9,038 |
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... | ehoch/spree_grid_faq | lib/spree_grid_faq/engine.rb | Ruby | bsd-3-clause | 486 |
<?php
return array (
'Search' => 'Pesquisar',
);
| LeonidLyalin/vova | common/humhub/protected/humhub/modules/search/messages/pt/base.php | PHP | bsd-3-clause | 51 |
<!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... | genome-vendor/apollo | javadoc/apollo/gui/detailviewers/sequencealigner/HorizontalScrollBarAdjustmentListener.html | HTML | bsd-3-clause | 10,958 |
<!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... | ExLibrisGroup/Rosetta.dps-sdk-projects | 5.4.0/javadoc/com/exlibris/digitool/common/dnx/DNXConstants.OBJECTIDENTIFIER.html | HTML | bsd-3-clause | 9,262 |
node LicenseCheck.js | Ehryk/MNLicenseCheck | run.sh | Shell | bsd-3-clause | 20 |
// 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... | danakj/chromium | ash/common/system/ime/tray_ime_chromeos.cc | C++ | bsd-3-clause | 9,556 |
/**
* @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... | PolymerLabs/ristretto | src/reporter.ts | TypeScript | bsd-3-clause | 2,969 |
<?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... | Bladefidz/ocfa_yii | vendor/yiisoft/yii2-apidoc/helpers/ApiMarkdownTrait.php | PHP | bsd-3-clause | 6,745 |
/*
* 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... | ft-/arribasim-dev-extras | OpenSim/Framework/DOMap.cs | C# | bsd-3-clause | 4,063 |
// 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... | SaschaMester/delicium | cc/layers/picture_layer_impl.cc | C++ | bsd-3-clause | 50,012 |
/************************************************************************
* 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... | verma/PDAL | src/drivers/caris/config.h | C | bsd-3-clause | 2,443 |
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:... | devartis/Spree-Mercado-Pago-payment-method | spec/models/spree/mercado_pago/order_preferences_builder_spec.rb | Ruby | bsd-3-clause | 2,062 |
/* $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... | MarginC/kame | netbsd/sys/lkm/compat/osf1/lkminit_emul.c | C | bsd-3-clause | 2,694 |
---
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... | FreeCodeCamp/FreeCodeCamp | curriculum/challenges/ukrainian/10-coding-interview-prep/project-euler/problem-356-largest-roots-of-cubic-polynomials.md | Markdown | bsd-3-clause | 971 |
#from django.conf import settings
#settings.INSTALLED_APPS += ("mptt", "hvad", "galleries",) | marcopompili/django-market | django_market/__init__.py | Python | bsd-3-clause | 94 |
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... | AndyMark/AMCrosslink-Java | src/com/andymark/crosslink/UpdateJaguarPacket.java | Java | bsd-3-clause | 811 |
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);
});
}
}
... | samsonasik/zf_111_support_php532_with_modulewizard | public/themes/zend_prj/js/modules/modules.js | JavaScript | bsd-3-clause | 751 |
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(... | all-of-us/raw-data-repository | rdr_service/tools/tool_libs/backfill_gvcf_paths.py | Python | bsd-3-clause | 2,248 |
/**
* 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... | jmnarloch/akka.js | akka-js-actor/js/src/main/scala/akka/actor/dungeon/DeathWatch.scala | Scala | bsd-3-clause | 9,120 |
// 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]
... | ChromiumWebApps/chromium | tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp | C++ | bsd-3-clause | 2,082 |
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... | yonglehou/shuttle-scheduling | Shuttle.Scheduling/DataAccess/Queries/ScheduleQuery.cs | C# | bsd-3-clause | 703 |
/*
* 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... | google-code/alkes | sample/01_application/TransformContents.h | C | bsd-3-clause | 2,096 |
#!/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... | youtube/cobalt | cobalt/build/sync_to_build_id.py | Python | bsd-3-clause | 6,399 |
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... | GCRC/nunaliit | nunaliit2-couch-command/src/main/java/ca/carleton/gcrc/couch/command/CommandUpgrade.java | Java | bsd-3-clause | 7,080 |
class LineItemController < ApplicationController
end
| voidstart/ror_depot_reboot_1 | app/controllers/line_item_controller.rb | Ruby | bsd-3-clause | 53 |
[](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... | bovee/Aston | README.md | Markdown | bsd-3-clause | 1,287 |
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... | hughsons/saltwaterfish | classes_bkp_0621.py | Python | bsd-3-clause | 19,445 |
# 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... | calee88/ParlAI | parlai/tasks/vqa_v2/build.py | Python | bsd-3-clause | 2,271 |
/******************************************************************************
* Copyright (c) Intel Corporation - All rights reserved. *
* This file is part of the LIBXSMM library. *
* *
... | hfp/libxsmm | samples/deeplearning/sparse_weight_mult/parallel_sparse_weight_B_conv.c | C | bsd-3-clause | 17,192 |
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... | danielsiebra/projeto_e_profissional | app/controllers/[scope]/registrations_controller.rb | Ruby | bsd-3-clause | 1,404 |
--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"
| LawnGnome/php-radius | tests/radius_cvt_string.phpt | PHP | bsd-3-clause | 262 |
<?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... | bereznev/yii2-blog | common/models/articles/Article.php | PHP | bsd-3-clause | 5,780 |
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... | zostera/django-modeltrans | modeltrans/fields.py | Python | bsd-3-clause | 12,105 |
/*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... | NCIP/cabio | software/cabio-database/scripts/sql_loader/no_longer_used/constraints/zstg_gene2go.disable.sql | SQL | bsd-3-clause | 622 |