code stringlengths 3 1.01M | repo_name stringlengths 5 116 | path stringlengths 3 311 | language stringclasses 30
values | license stringclasses 15
values | size int64 3 1.01M |
|---|---|---|---|---|---|
/**
*============================================================================
* The Ohio State University Research Foundation, The University of Chicago -
* Argonne National Laboratory, Emory University, SemanticBits LLC,
* and Ekagra Software Technologies Ltd.
*
* Distributed under the OSI-approved BSD 3-Clau... | NCIP/cagrid-workflow | workflow-portlet/src/main/java/gov/nih/nci/cagrid/portal/portlet/workflow/mvc/NewInstanceFormController.java | Java | bsd-3-clause | 6,693 |
<?php
namespace PayrollCalculator;
use Zend\ModuleManager\Feature\ConsoleUsageProviderInterface;
use Zend\Console\Adapter\AdapterInterface as Console;
class Module
{
public function getConfig()
{
return include __DIR__ . '/config/module.config.php';
}
public function getAutoloaderConfig()
... | ugniusr/PayrollCalculator | module/PayrollCalculator/Module.php | PHP | bsd-3-clause | 944 |
# -*- coding: utf-8 -*-
"""
eve.io.media
~~~~~~~~~~~~
Media storage for Eve-powered APIs.
:copyright: (c) 2014 by Nicola Iarocci.
:license: BSD, see LICENSE for more details.
"""
class MediaStorage(object):
""" The MediaStorage class provides a standardized API for storing files,
along ... | opticode/eve | eve/io/media.py | Python | bsd-3-clause | 2,207 |
<!-- %BD_HTML%/SearchResult.htm -->
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1255">
<TITLE>úåöàú àéðèøðè - Takanot File</TITLE>
</HEAD>
<style>
<!--
TR.A_Table {font-color:#3e6ea6; background-color: #f7f9fb; font-size:11;font-family: Arial,}
TR.B_Table {font-c... | daonb/obudget | data/queries/results/result-2007-60.html | HTML | bsd-3-clause | 13,076 |
from django.utils.translation import ugettext as _
from django.db import models
from jmbo.models import ModelBase
class Superhero(ModelBase):
name = models.CharField(max_length=256, editable=False)
class Meta:
verbose_name_plural = _("Superheroes")
| praekelt/jmbo-superhero | superhero/models.py | Python | bsd-3-clause | 269 |
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */
/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
export default {"viewBox":"0 0 100 100","xmlns":"http://www.w3.org/2000/svg","path":{"d":"M50.6 52.9c2.6-3.7 5.3-5.6 7.1-8.4 3.2-4.8 3.9-11.6 1.8-16.8-2.1-5.3-7-8.4-12.... | salesforce/design-system-react | icons/standard/visits.js | JavaScript | bsd-3-clause | 746 |
<?php
namespace common\widgets;
use yii\helpers\VarDumper;
/**
* Created by PhpStorm.
* User: Александр Чернявенко
* Date: 25.11.2014
* Time: 14:09
*/
class PredictionAsset extends \yii\web\AssetBundle
{
public $depends = [
'yii\web\JqueryAsset',
];
public $css = [
];
public $js = ... | AleksandrChernyavenko/hintbox | common/widgets/PredictionAsset.php | PHP | bsd-3-clause | 728 |
/*@author gihan tharanga*/
#include <iostream>
#include <string>
//video capturing methods
int videoCapturing();
int videoCapOriginal();
/*detect the faces display the frames and number of face*/
int FaceDetector(std::string&);
| yekaylee/capstone | capstoneRepo/FacialRecognition/C++/projectcV/VideoCap.h | C | bsd-3-clause | 237 |
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
''' Processor functions for images '''
import numpy as np
def squeeze_image(img):
''' Return image, remove axes length 1 at end of image shape
For example, an image may have shape (10,20,30,1,1). ... | satra/NiPypeold | nipype/externals/pynifti/funcs.py | Python | bsd-3-clause | 2,788 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE191_Integer_Underflow__short_rand_postdec_07.c
Label Definition File: CWE191_Integer_Underflow.label.xml
Template File: sources-sinks-07.tmpl.c
*/
/*
* @description
* CWE: 191 Integer Underflow
* BadSource: rand Set data to result of rand()
* GoodSource: Set... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE191_Integer_Underflow/s04/CWE191_Integer_Underflow__short_rand_postdec_07.c | C | bsd-3-clause | 4,979 |
<?php
namespace VKBansal\Test\Spectrum\Plugin;
class PlugTest extends \PHPUnit_Framework_TestCase{
protected $plugin;
protected $plug;
public function setUp()
{
$this->plugin = $this->getMockForAbstractClass('VKBansal\Spectrum\Plugin\AbstractPlugin');
$this->plugin
->metho... | vkbansal/spectrum | test/Plugin/PlugTest.php | PHP | bsd-3-clause | 996 |
<div>
<div class="os-page-commands">
<div class="left" os-imaging>
<button show-if-allowed="specimenResource.updateOpts" class="default" ui-sref="specimen-addedit"
ng-if="!!visit.id && !specimen.reserved && (!specimen.activityStatus || specimen.activityStatus == 'Active')"
ng-switch on="!!sp... | krishagni/openspecimen | www/app/modules/biospecimen/participant/specimen/overview.html | HTML | bsd-3-clause | 17,947 |
/*
Copyright (C) 2009-2010 ProFUSION embedded systems
Copyright (C) 2009-2010 Samsung Electronics
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of t... | klim-iv/phantomjs-qt5 | src/webkit/Source/WebKit/efl/ewk/ewk_history.cpp | C++ | bsd-3-clause | 13,646 |
<?php
/**
* Yasc.
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.
* It is also available through the world-wide-web at this URL:
* http://github.com/nebiros/yasc/raw/master/LICENSE
* If you did not receive a copy of the license and ar... | nebiros/yasc | src/Yasc/App/Config.php | PHP | bsd-3-clause | 8,643 |
//===-- lib/Evaluate/fold-real.cpp ----------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | endlessm/chromium-browser | third_party/llvm/flang/lib/Evaluate/fold-real.cpp | C++ | bsd-3-clause | 6,929 |
<?php
namespace app\models;
use Yii;
use yii\base\Model;
/**
* LoginForm is the model behind the login form.
*/
class LoginForm extends Model
{
public $login;
public $password;
public $rememberMe = true;
private $_user = false;
/**
* @return array the validation rules.
*/
publi... | Per1phery/wholetthedogout | models/LoginForm.php | PHP | bsd-3-clause | 1,861 |
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "Test.h"
#if SK_SUPPORT_GPU
#include "GrReducedClip.h"
#endif
#include "SkClipStack.h"
#include "SkPath.h"
#include "SkRandom.h"
#include "SkRect.h"
#include "SkR... | trevorlinton/skia | tests/ClipStackTest.cpp | C++ | bsd-3-clause | 42,846 |
<?php
namespace app\models;
use Yii;
use app\models\general\GeneralLabel;
use app\models\general\GeneralMessage;
/**
* This is the model class for table "tbl_six_step".
*
* @property integer $six_step_id
* @property integer $atlet_id
* @property string $stage
* @property string $status
*/
class SixStepBiomek... | hung101/kbs | frontend/models/SixStepBiomekanik.php | PHP | bsd-3-clause | 2,953 |
# ----------------------------------------------------------------------------
# Copyright (c) 2016-2021, QIIME 2 development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# ------------------------------------------------... | qiime2/q2-types | q2_types/sample_data/_type.py | Python | bsd-3-clause | 832 |
using System;
using System.Data;
using System.Data.SqlClient;
using System.IO;
using System.Xml.Serialization;
using JetBat.Client.Entities;
using JetBat.Client.Metadata.Abstract;
using JetBat.Client.Metadata.Definitions;
using JetBat.Client.Metadata.Misc;
using JetBat.Client.Metadata.Simple;
namespace JetB... | shestakov/jetbat | JetBat.Client/SqlServer/Concrete/PlainObjectListViewDefinitionSqlLoader.cs | C# | bsd-3-clause | 5,650 |
from ..base import BaseTopazTest
class TestMarshal(BaseTopazTest):
def test_version_constants(self, space):
w_res = space.execute("return Marshal::MAJOR_VERSION")
assert space.int_w(w_res) == 4
w_res = space.execute("return Marshal::MINOR_VERSION")
assert space.int_w(w_res) == 8
... | babelsberg/babelsberg-r | tests/modules/test_marshal.py | Python | bsd-3-clause | 16,593 |
/*
* Copyright (c) 2007 BUSINESS OBJECTS SOFTWARE LIMITED
* 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 n... | levans/Open-Quark | src/Quark_Gems/src/org/openquark/gems/client/IntellicutList.java | Java | bsd-3-clause | 10,380 |
##########################################################################
#
# Copyright (c) 2013-2015, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redi... | chippey/gaffer | python/GafferImageTest/ObjectToImageTest.py | Python | bsd-3-clause | 3,067 |
import React from 'react';
import 'isomorphic-fetch';
import {RouteHandler} from 'react-router';
import Transmit from 'react-transmit';
import {createStore, combineReducers} from 'redux';
import {Provider} from 'react-redux';
import * as reducers from '../reducers/index';
class AppContainer extends React.Component {
... | nivanson/hapi-universal-redux | src/containers/AppContainer.js | JavaScript | bsd-3-clause | 725 |
require("../pc.v0");
require("util").puts(JSON.stringify({
"name": "pc",
"version": pc.version,
"description": "property creation for reusable d3.js code.",
"keywords": ["d3", "visualization"],
"homepage": "http://milroc.github.com/pc/",
"author": {"name": "Miles McCrocklin", "url": "http://www.milesmccrocklin.... | milroc/pc.js | src/package.js | JavaScript | bsd-3-clause | 485 |
.title {
margin-top: 30px;
vertical-align: top;
}
.title button {
margin-top: 20px;
}
.contents {
margin-top: 100px;
}
.contetns span {
margin-top: 20px;
}
| kokiBit/zend | public/css/type.css | CSS | bsd-3-clause | 182 |
package immortal
import (
"os/exec"
"syscall"
"testing"
"time"
)
func TestWatchPidGetpid(t *testing.T) {
ch := make(chan error, 1)
d := &Daemon{}
cmd := exec.Command("go", "version")
cmd.Start()
pid := cmd.Process.Pid
go func() {
d.WatchPid(pid, ch)
ch <- cmd.Wait()
}()
select {
case <-time.After(tim... | immortal/immortal | watchpid_test.go | GO | bsd-3-clause | 931 |
/*
* Author: Kiveisha Yevgeniy
* Copyright (c) 2015 Intel Corporation.
*
* 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
* without limitation the rights to use,... | ykiveish/cortica-sdk | src/Utilities.cpp | C++ | bsd-3-clause | 2,892 |
<!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 (version 1.7.0_51) on Tue May 19 11:04:42 CEST 2015 -->
<title>Uses of Interface com.mxgraph.util.svg.ShapeProducer (JGraph X 3.3.0.1 API Specificatio... | pygospa/jgraphx | docs/api/com/mxgraph/util/svg/class-use/ShapeProducer.html | HTML | bsd-3-clause | 7,160 |
SEEK::Application.configure do
#This holds a secret phrase, used for encrypting private information in the database
#GLOBAL_PASSPHRASE=""
Seek::Config.default :solr_enabled, true
end
| stuzart/seek | docker/seek_local.rb | Ruby | bsd-3-clause | 191 |
#pragma once
#include "boxFilter.hpp"
class boxFilter_Separable_VHI_nonVec : public cp::BoxFilterBase
{
protected:
int ksize;
void filter_naive_impl() override;
void filter_omp_impl() override;
void operator()(const cv::Range& range) const override;
public:
boxFilter_Separable_VHI_nonVec(cv::Mat& _src, cv::Mat... | norishigefukushima/OpenCP | OpenCP/box/boxFilter_Separable_Interleave.h | C | bsd-3-clause | 1,086 |
<!DOCTYPE html>
<!--
| Generated by Apache Maven Doxia at 2014-11-25
| Rendered using Apache Maven Fluido Skin 1.3.0
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name... | princeofdarkness76/trap | transports/websocket/websocket-netty/integration.html | HTML | bsd-3-clause | 9,839 |
/**
* Created on: Mar 13, 2013
*/
package com.tubros.constraints.core.spi.solver
package runtime
import org.junit.runner.RunWith
import org.scalamock.scalatest.MockFactory
import org.scalatest._
import org.scalatest.junit.JUnitRunner
import com.tubros.constraints.api._
/**
* The '''SymbolTableSpec''' type define... | osxhacker/smocs | smocs-core/src/test/scala/com/tubros/constraints/core/spi/solver/runtime/SymbolTableSpec.scala | Scala | bsd-3-clause | 2,993 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="lang:clipboard.copy" conte... | statsmodels/statsmodels.github.io | v0.13.0/generated/statsmodels.genmod.cov_struct.Exchangeable.update.html | HTML | bsd-3-clause | 18,859 |
#include "synchronization/Communicator.hpp"
namespace Synchronization
{
Communicator::Communicator()
: _numManagedCons(0),
_numManagedFmus(0)
{
}
size_type Synchronization::Communicator::addFmu(FMI::AbstractFmu* in, vector<FMI::InputMapping> & valuePacking)
{
vec... | marchartung/ParallelFMU | src/synchronization/Communicator.cpp | C++ | bsd-3-clause | 3,412 |
{% load url from future %}
<div class="well">
<h3 class="title">Violence</h3>
<table class="table tabulated-data">
<thead>
<tr>
<th>Group</th>
<th>Monthly Numbers</th>
</tr>
</thead>
<tbody>
<tr>
<td>Girls Cases</td>
<td>{{ violence_numbers_girls|floatformat:0 }}</td>
</tr... | unicefuganda/edtrac | edtrac_project/rapidsms_edtrac/education/templates/education/admin/dashboard/violence.html | HTML | bsd-3-clause | 710 |
#!/usr/bin/env python2
from __future__ import print_function
import sys
import os
import urllib
import argparse
import xml.etree.ElementTree as ET
def warn(*msgs):
for x in msgs: print('[WARNING]:', x, file=sys.stderr)
class PDBTM:
def __init__(self, filename):
#self.tree = ET.parse(filename)
#self.root = self... | khendarg/pdbtmtop | dbtool.py | Python | bsd-3-clause | 2,933 |
{-# LANGUAGE TemplateHaskell #-}
module Data.Comp.Trans.DeriveUntrans (
deriveUntrans
) where
import Control.Lens ( view ,(^.))
import Control.Monad ( liftM )
import Control.Monad.Trans ( lift )
import Data.Comp.Multi ( Alg, cata, (:&:)(..) )
import Language.Haskell.TH
import Data.Comp.Trans.Util
----------... | jkoppel/comptrans | Data/Comp/Trans/DeriveUntrans.hs | Haskell | bsd-3-clause | 8,030 |
from django.template import Library, Node, resolve_variable, TemplateSyntaxError
from django.core.urlresolvers import reverse
register = Library()
@register.simple_tag
def active(request, pattern):
import re
if re.search(pattern, request.get_full_path()):
return 'active'
return '' | Kami/munin_exchange | munin_exchange/apps/core/templatetags/navclass.py | Python | bsd-3-clause | 307 |
// 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 <memory>
#include <utility>
#include <vector>
#include "base/feature_list.h"
#include "base/macros.h"
#include "base/optional.h"
#include "b... | endlessm/chromium-browser | components/password_manager/core/browser/http_auth_manager_unittest.cc | C++ | bsd-3-clause | 9,586 |
# VIVO: Connect, Share, Discover
[](https://github.com/vivo-project/VIVO/actions?query=workflow%3ABuild) [](https://github.com/vivo-project/VIVO/actions?query=workflow%3ADep... | vivo-project/VIVO | README.md | Markdown | bsd-3-clause | 5,051 |
#!/bin/bash
# define helpers
source_dir=~/.osx-bootstrap
if [[ ! -f ~/.ssh/id_rsa ]]; then
echo ''
echo '##### Please enter your github username: '
read github_user
echo '##### Please enter your github email address: '
read github_email
# setup github
if [[ $github_user && $github_email ]... | divio/osx-bootstrap | core/github.sh | Shell | bsd-3-clause | 1,443 |
#if !(NET35 || NET20 || WINDOWS_PHONE)
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
namespace Newtonsoft.Json.Utilities
{
internal sealed class DynamicProxyMetaObject<T> : DynamicMetaObject
{
private readonly D... | hawkstalion/Tog-Mobile | Tog/json.net/Source/Src/Newtonsoft.Json/Utilities/DynamicProxyMetaObject.cs | C# | bsd-3-clause | 14,749 |
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.in by autoheader. */
/* Whether to build xhprof as dynamic module */
#define COMPILE_DL_XHPROF 1
/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1
/* Define to 1 if you have the <inttyp... | erictj/protean | modules/thirdparty/xhprof/extension/config.h | C | bsd-3-clause | 1,655 |
'''
Given a number, find the next higher number using only the digits in the given number.
For example if the given number is 1234, next higher number with same digits is 1243
'''
def FindNext(num):
number = str(num)
length = len(number)
for i in range(length-2,-1,-1):
current = number[i]
... | jenniferwx/Programming_Practice | FindNextHigherNumberWithSameDigits.py | Python | bsd-3-clause | 578 |
package manifest
import (
"encoding/json"
"fmt"
"log"
"reflect"
"regexp"
"strconv"
"strings"
"github.com/fatih/color"
"github.com/servehub/serve/manifest/processor"
"github.com/servehub/utils"
"github.com/servehub/utils/gabs"
)
type Manifest struct {
tree *gabs.Container
}
func (m Manifest) String() st... | servehub/serve | manifest/manifest.go | GO | bsd-3-clause | 5,887 |
<?php
return array (
'This user account is not approved yet!' => 'Tento účet ještě není aktivován!',
'User not found!' => 'Uživatel nebyl nalezen!',
'You need to login to view this user profile!' => 'Abyste mohli prohlížet tento profil, je potřeba se nejdříve přihlásit.',
);
| LeonidLyalin/vova | common/humhub/protected/humhub/modules/user/messages/cs/behaviors_ProfileControllerBehavior.php | PHP | bsd-3-clause | 296 |
#region copyright
// Copyright (c) 2012, TIGWI
// All rights reserved.
// Distributed under BSD 2-Clause license
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Tigwi.UI.Models.Storage
{
using Tigwi.Storage.Library;
public class DuplicateUserExceptio... | ismaelbelghiti/Tigwi | Core/Tigwi.UI/Models/Storage/StorageException.cs | C# | bsd-3-clause | 1,512 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name=... | 01org/intel-iot-services-orchestration-layer | doc/html/builtin/email.html | HTML | bsd-3-clause | 2,603 |
import requests
class Status(object):
SKIP_LOCALES = ['en_US']
def __init__(self, url, app=None, highlight=None):
self.url = url
self.app = app
self.highlight = highlight or []
self.data = []
self.created = None
def get_data(self):
if self.data:
... | willkg/postatus | postatus/status.py | Python | bsd-3-clause | 4,559 |
<?php
/**
* 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 and are unable to
* ob... | dineshkummarc/zf2 | library/Zend/Cloud/StorageService/Adapter/Rackspace.php | PHP | bsd-3-clause | 11,465 |
# -*-coding:Utf-8 -*
# Copyright (c) 2010-2017 LE GOFF Vincent
# 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
# ... | vlegoff/tsunami | src/secondaires/navigation/commandes/debarquer/__init__.py | Python | bsd-3-clause | 4,221 |
#include<iostream>
using namespace std;
int a[]={1,255,8,6,25,47,14,35,58,75,96,158,657};
const int len = sizeof(a)/sizeof(int);
int b[10][len+1] = { 0 }; //将b全部置0
void bucketSort(int a[]);//桶排序函数
void distributeElments(int a[],int b[10][len+1],int digits);
void collectElments(int a[],int b[10][len+1]);
int numOfDigit... | 1106944911/leetcode | C++/bucketSort.cpp | C++ | bsd-3-clause | 1,907 |
/*
* ColorBasedROIExtractorRGB.h
*
* Created on: Dec 2, 2011
* Author: Pinaki Sunil Banerjee
*/
#ifndef BRICS_3D_COLORBASEDROIEXTRACTORRGB_H_
#define BRICS_3D_COLORBASEDROIEXTRACTORRGB_H_
#include "IFiltering.h"
#include <stdlib.h>
#include <cmath>
#include <iostream>
#include <stdio.h>
#include <stdint.h>... | brics/brics_3d | src/brics_3d/algorithm/filtering/ColorBasedROIExtractorRGB.h | C | bsd-3-clause | 1,916 |
<!DOCTYPE html><html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<meta charset="utf-8">
<title>Phing API Documentation » \DataTypeHandler</title>
<meta name="author" cont... | theghostbel/pimcore | pimcore/lib/Deployment/Phing/docs/api/docs/classes/DataTypeHandler.html | HTML | bsd-3-clause | 15,955 |
#
# GtkMain.py -- pygtk threading help routines.
#
# Eric Jeschke (eric@naoj.org)
#
# Copyright (c) Eric R. Jeschke. All rights reserved.
# This is open-source software licensed under a BSD license.
# Please see the file LICENSE.txt for details.
#
"""
GUI threading help routines.
Usage:
import GtkMain
# See c... | Rbeaty88/ginga | ginga/gtkw/GtkMain.py | Python | bsd-3-clause | 5,866 |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\modules\inspection\models\InspectionHospitalMapSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="inspection-hospital-map-search">
<?php $form = ActiveForm::begin([
'action' => ['in... | Gcaufy/shengzaizai | backend/modules/inspection/views/hospital/_search.php | PHP | bsd-3-clause | 1,079 |
/*!
\ingroup PkgAABB_treeConcepts
\cgalConcept
The concept `AABBTraits` provides the geometric primitive types and methods for the class `CGAL::AABB_tree<AABBTraits>`.
\cgalHasModel `CGAL::AABB_traits<AABBGeomTraits,AABBPrimitive>`
\sa `CGAL::AABB_traits<AABBGeomTraits,AABBPrimitive>`
\sa `CGAL::AABB_tree<AABBTrait... | hlzz/dotfiles | graphics/cgal/AABB_tree/doc/AABB_tree/Concepts/AABBTraits.h | C | bsd-3-clause | 7,754 |
/*! jQuery UI - v1.11.4 - 2015-12-06
* http://jqueryui.com
* Includes: core.js, datepicker.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */
(function( factory ) {
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
define([ "jquery" ], factory... | davidred/spree_delivery_time | app/assets/javascripts/spree/frontend/store/datepicker.js | JavaScript | bsd-3-clause | 91,677 |
#!/bin/bash
#This program calculates the core count for each result row and updates the
#results. This is a work around due to a current limitation of
#HdpHBencher/HsBencher.
#Author: Blair Archibald
function usage {
echo "Usage: processResults.sh <resultsFile>"
exit -1
}
test -z $1 && usage
resultsFile="$1"
... | BlairArchibald/HdpHBencher | processResults.sh | Shell | bsd-3-clause | 1,154 |
var sbModule = angular.module('sbServices', ['ngResource']);
sbModule.factory('App', function($resource) {
return $resource('/api/v1/app/:name', { q: '' }, {
get: { method: 'GET' }, //isArray: false },
query: { method: 'GET'} //, params: { q: '' }//, isArray: false }
});
});
| beni55/shipbuilder | webroot/js/services.js | JavaScript | bsd-3-clause | 302 |
// Copyright 2015 The Cobalt 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 required by ap... | youtube/cobalt | cobalt/bindings/testing/global_interface_parent.h | C | bsd-3-clause | 1,126 |
# coding: utf-8
# This file is part of Thomas Aquinas.
#
# Thomas Aquinas is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Thomas Aq... | shackra/thomas-aquinas | summa/audio/system.py | Python | bsd-3-clause | 776 |
/*-
* Copyright (c) 2006 The FreeBSD 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of... | dcui/FreeBSD-9.3_kernel | sys/dev/tdfx/tdfx_linux.c | C | bsd-3-clause | 2,886 |
module Mistral.Schedule.Value (
Env
, groupEnv
, lookupEnv
, bindType
, bindValue
, bindParam
, NodeTags
, bindNode
, lookupTag, lookupTags
, Value(..)
, SNetwork(..), mapWhen, modifyNode
, SNode(..), addTask
, STask(..), hasConstraints
, SConstraint(..), target
) where
import Mistral... | GaloisInc/mistral | src/Mistral/Schedule/Value.hs | Haskell | bsd-3-clause | 5,624 |
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in bin... | MarginC/kame | freebsd4/sys/boot/common/interp_backslash.c | C | bsd-3-clause | 3,531 |
<?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... | karthiksekarnz/educulas | tests/Zend/Validate/Sitemap/AllTests.php | PHP | bsd-3-clause | 2,115 |
#include "ADTFPinMessageEncoder.h"
using namespace A2O;
ADTFPinMessageEncoder::ADTFPinMessageEncoder(IAction::Ptr action,
ICarMetaModel::ConstPtr carMetaModel)
: _action(action)
{
// Create output pins
const std::vector<IServoDriveConfig::ConstPtr>& servoDriveConfigs = carMetaModel->getServoDrive... | AppliedAutonomyOffenburg/AADC_2015_A2O | src/aadcUser/src/HSOG_Runtime/adtf/encoder/ADTFPinMessageEncoder.cpp | C++ | bsd-3-clause | 3,690 |
<?php namespace Exchange\EWSType; use Exchange\EWSType;
/**
* Contains EWSType_TentativelyAcceptItemType.
*/
/**
* Represents a Tentative reply to a meeting request.
*
* @package php-ews\Types
*
* @todo Extend EWSType_WellKnownResponseObjectType.
*/
class EWSType_TentativelyAcceptItemType extends EWSType
{
... | segpacto/yii2-exchange | EWSType/EWSType_TentativelyAcceptItemType.php | PHP | bsd-3-clause | 3,092 |
# Running JupyterHub itself in docker
This is a simple example of running jupyterhub in a docker container.
This example will:
- create a docker network
- run jupyterhub in a container
- enable 'dummy authenticator' for testing
- run users in their own containers
It does not:
- enable persistent storage for users ... | minrk/dockerspawner | examples/simple/README.md | Markdown | bsd-3-clause | 1,541 |
{-# LANGUAGE ParallelListComp #-}
module OldHMM
(Prob, HMM(..), train, bestSequence, sequenceProb)
where
import qualified Data.Map as M
import Data.List (sort, groupBy, maximumBy, foldl')
import Data.Maybe (fromMaybe, fromJust)
import Data.Ord (comparing)
import Data.Function (on)
import Control.Monad
import ... | mikeizbicki/hmm | OldHMM.hs | Haskell | bsd-3-clause | 5,845 |
<?php
namespace app\modules\admin\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\models\Trigger;
/**
* TriggerSearch represents the model behind the search form about `app\models\Trigger`.
*/
class TriggerSearch extends Trigger
{
/**
* @inheritdoc
*/
public function... | CyanoFresh/SmartHome | modules/admin/models/TriggerSearch.php | PHP | bsd-3-clause | 1,914 |
// 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 <stdlib.h>
#include "base/basictypes.h"
#include "base/file_util.h"
#include "base/path_service.h"
#include "base/strings/string_util.h"
#in... | ChromiumWebApps/chromium | chrome/common/net/url_fixer_upper_unittest.cc | C++ | bsd-3-clause | 20,955 |
#<pycode(py_choose)>
class Choose:
"""
Choose - class for choose() with callbacks
"""
def __init__(self, list, title, flags=0, deflt=1, icon=37):
self.list = list
self.title = title
self.flags = flags
self.x0 = -1
self.x1 = -1
self.y0 = -1
self.y1 = -1
self.width = -1
self... | nihilus/src | pywraps/py_choose.py | Python | bsd-3-clause | 1,595 |
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
n... | ishvaram/email-app | vendor/ZF2/library/Zend/Console/Console.php | PHP | bsd-3-clause | 6,488 |
<dom-module id="my-scientists-list">
<template>
<firebase-collection data="{{scientists}}"
location="https://radiant-fire-9062.firebaseio.com/users">
</firebase-collection>
<template is="dom-repeat" items="[[scientists]]" as="scientist">
<p>Element: <span>[[index]]</span><... | salah-saleh/forsker | app/elements/scientists/my-scientists-list.html | HTML | bsd-3-clause | 1,063 |
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using ServiceStack.Common.Web;
namespace ServiceStack.WebHost.Endpoints.Support.Metadata.Controls
{
internal class Soap12OperationControl : OperationControl
{
public Soap12OperationControl()
{
EndpointType = EndpointType.Soap12;
}
... | firstsee/ServiceStack | src/ServiceStack.WebHost.Endpoints/Support/Metadata/Controls/Soap12OperationControl.cs | C# | bsd-3-clause | 908 |
<?php
/**
* inerface INewsDB
* содержит основные методы для работы с новостной лентой
*/
interface INewsDB{
/**
* Добавление новой записи в новостную ленту
*
* @param string $title - заголовок новости
* @param string $category - категория новости
* @param string $description - текст нов... | sowanderr/phonebook | web/phone/INewsDB.class.php | PHP | bsd-3-clause | 1,140 |
// Copyright 2020 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 CHROME_BROWSER_ASH_CROSTINI_CROSTINI_ENGAGEMENT_METRICS_SERVICE_H_
#define CHROME_BROWSER_ASH_CROSTINI_CROSTINI_ENGAGEMENT_METRICS_SERVICE_H_
#in... | nwjs/chromium.src | chrome/browser/ash/crostini/crostini_engagement_metrics_service.h | C | bsd-3-clause | 2,046 |
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>second_derivative — MetPy 0.8</title>
... | metpy/MetPy | v0.8/api/generated/metpy.calc.second_derivative.html | HTML | bsd-3-clause | 25,592 |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "ABI41_0_0AndroidDialogPickerProps.h"
#include <ABI41_0_0React/components/image/conversions.h>
#include <ABI41_0_0React/c... | exponent/exponent | ios/versioned-react-native/ABI41_0_0/ReactNative/ReactCommon/fabric/components/picker/androidpicker/ABI41_0_0AndroidDialogPickerProps.cpp | C++ | bsd-3-clause | 1,031 |
// 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/drive/drive_api_util.h"
#include <string>
#include "base/files/file.h"
#include "base/logging.h"
#include "base/md5.h"
#inc... | patrickm/chromium.src | chrome/browser/drive/drive_api_util.cc | C++ | bsd-3-clause | 19,627 |
class Vehicletype < ActiveRecord::Base
has_many :vehicles
attr_accessible :capacity, :fuel, :maintcycle, :name
validates :name, :uniqueness => true
end
| alliciga/MWM | app/models/vehicletype.rb | Ruby | bsd-3-clause | 158 |
The jStar Eclipse Plug-in
=============================
There is a tutorial for the plugin:
doc/jstar eclipse tutorial/jstar eclipse tutorial.pdf
For more information, see [http://www.jstarverifier.org](https://web.archive.org/web/20141217130023/http://jstarverifier.org/)
___
This repository contains infor... | SoftwareEngineeringToolDemos/FSE-2011-jstar-eclipse | README.md | Markdown | bsd-3-clause | 1,915 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<title>DIRECTION-TOWARDS-OTHERS</title>
</head>
<body>
<h3><i>I update my desired direction to head toward those in my local
interaction zone if not in my personal space.</i> </h3>
<font ... | ToonTalk/behaviour-composer | BC/Static Web Pages/Resources/Composer/en/MB.3/DIRECTION-TOWARDS-OTHERS.html | HTML | bsd-3-clause | 3,523 |
'use strict';
describe('Directive: searchFilters', function () {
// load the directive's module
beforeEach(module('searchApp'));
var element,
scope;
beforeEach(inject(function ($rootScope) {
scope = $rootScope.$new();
}));
it('should make hidden element visible', inject(function ($compile) {
... | MLR-au/esrc-search | test/spec/directives/search-filters.js | JavaScript | bsd-3-clause | 509 |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\Fahrtenbuch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="fahrtenbuch-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'fahrer')->textInput(['maxlength' => true])... | smoos/fb_dispo | views/fahrtenbuch/_form.php | PHP | bsd-3-clause | 745 |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#import <UIKit/UIKit.h>
#import <ABI42_0_0React/ABI42_0_0RCTView.h>
@interface ABI42_0_0RCTMaskedView : ABI42_0_0RCTView
@end
| exponentjs/exponent | ios/versioned-react-native/ABI42_0_0/ReactNative/React/Views/ABI42_0_0RCTMaskedView.h | C | bsd-3-clause | 318 |
# This code is free software; you can redistribute it and/or modify it under
# the terms of the new BSD License.
#
# Copyright (c) 2011, Sebastian Staudt
require 'fixtures'
require 'helper'
class TestGitHub < Test::Unit::TestCase
context 'The GitHub implementation' do
should 'not support file stats' do
... | travis-repos/metior | test/test_github.rb | Ruby | bsd-3-clause | 5,231 |
---
id: 5900f4331000cf542c50ff45
challengeType: 5
title: 'Problem 198: Ambiguous Numbers'
forumTopicId: 301836
---
## Description
<section id='description'>
A best approximation to a real number x for the denominator bound d is a rational number r/s (in reduced form) with s ≤ d, so that any rational number p/q which i... | BhaveshSGupta/FreeCodeCamp | curriculum/challenges/english/08-coding-interview-prep/project-euler/problem-198-ambiguous-numbers.english.md | Markdown | bsd-3-clause | 1,360 |
/*
* HE_Mesh Frederik Vanhoutte - www.wblut.com
*
* https://github.com/wblut/HE_Mesh
* A Processing/Java library for for creating and manipulating polygonal meshes.
*
* Public Domain: http://creativecommons.org/publicdomain/zero/1.0/
* I , Frederik Vanhoutte, have waived all copyright and related or neighbor... | DweebsUnited/CodeMonkey | java/CodeMonkey/HEMesh/wblut/geom/WB_MutableCoordinateMath3D.java | Java | bsd-3-clause | 2,810 |
The *Control Freak* IDE provides already a sophisticated Editor which comes with auto completion and snippets by the default.
Since most developers prefer their own editors and key bindings, the IDE allows also to write driver code outside of the
IDE. All you you need to do is open the driver Javascript file and start... | xblox/control-freak | documentation/docFiles/08_Driver/04_Editors.md | Markdown | bsd-3-clause | 644 |
# -*- coding: utf-8 -*-
'''
Production Configurations
- Use djangosecure
- Use Amazon's S3 for storing static files and uploaded media
- Use sendgrid to send emails
- Use MEMCACHIER on Heroku
'''
from configurations import values
# See: http://django-storages.readthedocs.org/en/latest/backends/amazon-S3.html#settings... | tpugsley/tco2 | tco2/config/production.py | Python | bsd-3-clause | 4,340 |
<?php
/**
* Locale data for 'tn'.
*
* This file is automatically generated by yiic cldr command.
*
* Copyright © 1991-2007 Unicode, Inc. All rights reserved.
* Distributed under the Terms of Use in http://www.unicode.org/copyright.html.
*
* Copyright © 2008-2010 Yii Software LLC (http://www.yiiframework.com/lic... | hukumonline/yii | framework/i18n/data/tn.php | PHP | bsd-3-clause | 6,212 |
<?php
// autoload_psr4.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'Zend\\View\\' => array($vendorDir . '/zendframework/zend-view/src'),
'Zend\\Validator\\' => array($vendorDir . '/zendframework/zend-validator/src'),
'Zend\\Uri\\' => a... | fabi4n/pajakdaerah | vendor/composer/autoload_psr4.php | PHP | bsd-3-clause | 3,163 |
/*
* Software License Agreement (New BSD License)
*
* Copyright (c) 2013, Keith Leung, Felipe Inostroza
* 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 c... | RangerKD/RFS-SLAM | src/analysis2dSim.cpp | C++ | bsd-3-clause | 12,152 |
/*
* Copyright (C) 2007 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... | klim-iv/phantomjs-qt5 | src/webkit/Source/WebCore/dom/TextEvent.cpp | C++ | bsd-3-clause | 4,309 |
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */
/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
export default {"viewBox":"0 0 52 52","xmlns":"http://www.w3.org/2000/svg","path":[{"d":"M43.3 6h-1.73a.74.74 0 00-.67.8V10a6.37 6.37 0 01-6.3 6.4H17.4a6.37 6.37 0 01-6... | salesforce/design-system-react | icons/utility/capacity_plan.js | JavaScript | bsd-3-clause | 701 |
// 1000-page badge
// Awarded when total read page count exceeds 1000.
var sys = require('sys');
var _ = require('underscore');
var users = require('../../users');
var badge_template = require('./badge');
// badge key, must be unique.
var name = "1000page";
exports.badge_info =
{
id: name,
name: "... | scsibug/read52 | badger/badges/1000page.js | JavaScript | bsd-3-clause | 1,422 |
/*================================================================================
Copyright (c) 2012 Steve Jin. 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 re... | xebialabs/vijava | src/com/vmware/vim25/StaticRouteProfile.java | Java | bsd-3-clause | 1,954 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.