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 |
|---|---|---|---|---|---|
from flask import request, current_app, url_for
from flask_jsonschema import validate
from .. import db
from ..models import AHBot as Bot
from .decorators import json_response
from . import api
@api.route('/abusehelper', methods=['GET'])
@json_response
def get_abusehelper():
"""Return a list of available abusehel... | certeu/do-portal | app/api/abusehelper.py | Python | bsd-3-clause | 5,478 |
/*
* TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
* Copyright (c) 2008, Nationwide Health Information Network (NHIN) Connect. All rights reserved.
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* -... | TATRC/KMR2 | Services/Common/XDSCommonLib/src/main/java/gov/hhs/fha/nhinc/common/dda/GetDetailDataForUserRequestType.java | Java | bsd-3-clause | 4,397 |
use actix::Addr;
use actix_web::{http, middleware};
use actix_web::{web, App, HttpServer};
use diesel::r2d2::{self, ConnectionManager};
use diesel::PgConnection;
use crate::database::DbExecutor;
use badge::handlers::badge_handler;
// use run::handlers::run_handler;
use status::handlers::status_handler;
pub type Poo... | ovh/cds | contrib/uservices/badge/src/web.rs | Rust | bsd-3-clause | 1,331 |
from django.contrib import admin
# Register your models here.
from .models import Photos
admin.site.register(Photos) | dadisigursveinn/VEF-Lokaverkefni | myphotos/admin.py | Python | bsd-3-clause | 118 |
#ifndef SSERVICE_LOGGER_H
#define SSERVICE_LOGGER_H
/******************************************************************************
"Copyright (c) 2015-2015, Intel Corporation
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the followi... | AppSecurityApi/com-intel-security-cordova-plugin | src/ios/xss_log.h | C | bsd-3-clause | 2,689 |
#include "Ht.h"
#include "PersBug.h"
void
CPersBug::PersBug()
{
if (PR_htValid) {
switch (PR_htInst) {
case BUG_RTN: {
if (SendReturnBusy_htmain()) {
HtRetry();
break;
}
SendReturn_htmain();
}
break;
default:
assert(0);
}
}
}
| TonyBrewer/OpenHT | tests/bug_ngram/src_pers/PersBug_src.cpp | C++ | bsd-3-clause | 261 |
# Copyright (c) 2014, Enthought, Inc.
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
# license included in LICENSE.txt and may be redistributed only
# under the conditions described in the aforementioned license. The license
# is also available online at http://www.ent... | tommy-u/chaco | chaco/tools/tests/better_zoom_test_case.py | Python | bsd-3-clause | 1,537 |
/**
* Copyright (c) 2015 See AUTHORS file
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of conditions and... | hyperverse/mini2Dx | core/src/main/java/org/mini2Dx/core/di/exception/BeanException.java | Java | bsd-3-clause | 1,761 |
<?php
/**
* Created by PhpStorm.
* User: wesley
* Date: 03/01/15
* Time: 10:04
*/
namespace Ordemservico\Form\View\Helper;
use Zend\Form\ElementInterface;
use Zend\Form\View\Helper\FormElementErrors;
class FormElementErros extends FormElementErrors {
public function render(ElementInterface $element, array... | wsldesigner/Rvk-web | module/Ordemservico/src/Ordemservico/Form/View/Helper/FormElementErros.php | PHP | bsd-3-clause | 746 |
<?php
use yii\helpers\Html;
use yii\bootstrap\Modal;
use yii\bootstrap\ButtonGroup;
use yii\widgets\Menu;
use yii\widgets\Pjax;
use kartik\export\ExportMenu;
use kartik\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel app\models\TransaccionrefaccionSearch */
/* @var $dataProvider yii\data\ActiveData... | atreyu3/UER | views/transaccionrefaccion/reportejecutivo.php | PHP | bsd-3-clause | 5,710 |
# Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXPROJ = DjangoCorrelationId
SOURCEDIR = .
BUILDDIR = ../build/sphinx
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUIL... | snowball-one/cid | docs/Makefile | Makefile | bsd-3-clause | 626 |
<!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_75) on Sun Mar 01 12:04:16 AEDT 2015 -->
<title>X509AttributeCertificateHolderSelectorBuilder (Bouncy Castle Library 1.52 API Specifica... | GaloisInc/hacrypto | src/Java/BouncyCastle/bcpkix-jdk15on-152/javadoc/org/bouncycastle/cert/selector/X509AttributeCertificateHolderSelectorBuilder.html | HTML | bsd-3-clause | 20,476 |
/* iCheck plugin Square skin, black
----------------------------------- */
.icheckbox_square,
.iradio_square {
display: inline-block;
*display: inline;
vertical-align: middle;
margin: 0;
padding: 0;
width: 22px;
height: 22px;
background: url(square.png) no-repeat;
border:... | callcocam/zf2-puro | public_html/admin_assets/icheck/skins/square/square.css | CSS | bsd-3-clause | 1,506 |
import pytest
from py4jdbc.dbapi2 import connect, Connection
from py4jdbc.resultset import ResultSet
from py4jdbc.exceptions.dbapi2 import Error
def test_connect(gateway):
url = "jdbc:derby:memory:testdb;create=true"
conn = connect(url, gateway=gateway)
cur = conn.cursor()
rs = cur.execute("select * ... | massmutual/py4jdbc | tests/test_Cursor.py | Python | bsd-3-clause | 3,513 |
## How to be a contributor to this project
### Are you submitting a pull request?
* Make sure to fill out an issue for your PR, so that we have traceability as to what you are trying to fix,
versus how you fixed it.
* Spaces (not tabs), and 2 of them, that's what we like. Set your code style :)
* Sign the [Sonatype C... | OSSIndex/auditjs | .github/CONTRIBUTING.md | Markdown | bsd-3-clause | 1,183 |
# writestream-promise
Adds WriteStream.itsa_endPromise(): WriteStream.end() as a Promise.
| ItsAsbreuk/writestream-promise | README.md | Markdown | bsd-3-clause | 91 |
"""Unit-tests for `tree.visitors`
"""
from py2c import tree
from py2c.tree import visitors
from py2c.tests import Test, data_driven_test
from nose.tools import assert_equal
# TEST:: Add non-node fields
# =============================================================================
# Helper classes
# ==============... | pradyunsg/Py2C | py2c/tree/tests/test_visitors.py | Python | bsd-3-clause | 5,659 |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\WindowSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="window-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
<?= $... | CarlosTrinidad/VentanaIOT | views/window/_search.php | PHP | bsd-3-clause | 913 |
from importlib import import_module
from inspect import getdoc
def attribs(name):
mod = import_module(name)
print name
print 'Has __all__?', hasattr(mod, '__all__')
print 'Has __doc__?', hasattr(mod, '__doc__')
print 'doc: ', getdoc(mod)
if __name__=='__main__':
attribs('cairo')
attrib... | baharev/apidocfilter | check.py | Python | bsd-3-clause | 702 |
#include "Statistics.hpp"
#include "CaptureInstance.hpp"
#include "MainWindow.hpp"
#include "ui_Statistics.h"
using namespace EPL_Viz;
using namespace EPL_DataCollect;
Statistics::Statistics(MainWindow *parent) : QDialog(parent), ui(new Ui::Statistics), mw(parent) {
ui->setupUi(this);
refresh();
}
Statistics::~S... | epl-viz/EPL-Viz | libEPLViz/src/stats/Statistics.cpp | C++ | bsd-3-clause | 3,110 |
---
layout: organization
category: national
title: Sereolipi Nomadic Education Foundation Inc.
impact_area: Children
keywords:
location_services:
location_offices:
website: www.thorntreeproject.org
description:
mission: |
Our mission is to help educate the children of traditional nomadic families in Northern Sa... | flipside-org/penny-harvest | _posts/organizations/2015-01-12-O1135.md | Markdown | bsd-3-clause | 1,408 |
/*
This file is a part of JustLogic product which is distributed under
the BSD 3-clause "New" or "Revised" License
Copyright (c) 2015. All rights reserved.
Authors: Vladyslav Taranov.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following... | AqlaSolutions/JustLogic | Assets/JustLogicUnits/Generated/Vectors/JLVector4SqrMagnitude.cs | C# | bsd-3-clause | 2,210 |
<!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_20) on Sat Oct 20 16:08:50 CDT 2012 -->
<TITLE>
I-Index
</TITLE>
<META NAME="date" CONTENT="2012-10-20">
<LINK REL ="stylesheet" TYPE="text/css" HR... | epri-dev/PT2 | Documents/javadoc/index-files/index-9.html | HTML | bsd-3-clause | 15,240 |
class Requirement(object):
"""
Requirements are the basis for Dominion. They define
what needs to exist on a host/role, or perhaps what *mustn't* exist.
Requirements are defined on Roles.
"""
creation_counter = 0
"The base class for requirements."
def __init__(self, required=True, en... | paulcwatts/dominion | dominion/base.py | Python | bsd-3-clause | 1,060 |
<?php
use app\components\Formatter;
use yii\helpers\Html;
?>
<div class="rep-wrapper">
<div id="stats">
<div id="rep-page-container">
<table class="rep-table">
<tbody>
<?php foreach ($reputes as $date => $repute): ?>
<tr cla... | snowpine/qanswer | modules/user/views/view/_view-reputation.php | PHP | bsd-3-clause | 4,322 |
include ../../Library/GNU.mk
Title= libzip
Name= libzip
Version= 0.12.2
Revision= 0
Site= http://nih.at/libzip/
Source= http://nih.at/libzip//$(Name)-$(Version).tar.bz2
License= BSD
LicenseFile= $(SourceDir)/LICENSE
define test_inner_hook
/usr/local/bin/zipcmp -h
/usr/local/bin/zipmerge -h
endef
| FelixZhang00/rudix | Ports/libzip/Makefile | Makefile | bsd-3-clause | 304 |
package registry
import (
"crypto/tls"
"fmt"
"log"
"net/http"
"strings"
)
type LogfCallback func(format string, args ...interface{})
/*
* Discard log messages silently.
*/
func Quiet(format string, args ...interface{}) {
/* discard logs */
}
/*
* Pass log messages along to Go's "log" module.
*/
func Log(f... | heroku/docker-registry-client | registry/registry.go | GO | bsd-3-clause | 2,915 |
/* CoAP on Moterunner Demonstration
* Copyright (c) 2013-2014, SAP AG
* 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
*... | MR-CoAP/CoAP | src/com/sap/coap/Message.java | Java | bsd-3-clause | 26,430 |
/* Copyright (c) Robert Adams
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer... | Misterblue/LookingGlass-Viewer | src/LookingGlassOgre/OLPreloadArchive.cpp | C++ | bsd-3-clause | 6,141 |
import py
try:
from pypy.rpython.test.test_llinterp import interpret
except ImportError:
py.test.skip('Needs PyPy to be on the PYTHONPATH')
from rply import ParserGenerator, Token
from rply.errors import ParserGeneratorWarning
from .base import BaseTests
from .utils import FakeLexer, BoxInt, ParserState
cl... | solanolabs/rply | tests/test_ztranslation.py | Python | bsd-3-clause | 2,200 |
<!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>SLS_PHP_SDK » \Aliyun_Log_Models_ListLogstoresRequest</title>
<meta name="a... | weijiansdlx/aliyun | aliyun-log-php-sdk-master/docs/classes/Aliyun_Sls_Models_ListLogstoresRequest.html | HTML | bsd-3-clause | 9,786 |
/* Copyright (c) 2014 Andrea Zoli. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
package it.inaf.android;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Locale;
public class DateFormatter {
pub... | mediainaf/AppINAFAndroid | app/src/main/java/it/inaf/android/DateFormatter.java | Java | bsd-3-clause | 1,724 |
// Copyright 2019 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 MEDIA_GPU_TEST_VIDEO_PLAYER_TEST_VDA_VIDEO_DECODER_H_
#define MEDIA_GPU_TEST_VIDEO_PLAYER_TEST_VDA_VIDEO_DECODER_H_
#include <stdint.h>
#include ... | nwjs/chromium.src | media/gpu/test/video_player/test_vda_video_decoder.h | C | bsd-3-clause | 5,650 |
<!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" xml:lang="en" lang="en">
<?php
//Get Controller Action name
$action_ = Yii::app()->controller->action->id;
if($action_=='login')
{
... | Rathilesh/FMS_V1 | protected/views/layouts/main-9-jan-2014.php | PHP | bsd-3-clause | 26,894 |
extract:
${tooldir}/ecore2bgf BIBTEXML.ecore grammar.bgf
include ../../Makefile.grammar
| grammarware/slps | topics/grammars/bibtex/bibtex-1.2/Makefile | Makefile | bsd-3-clause | 90 |
{-# LANGUAGE TypeOperators, MultiParamTypeClasses, FunctionalDependencies
, UndecidableInstances
#-}
-- For ghc 6.6 compatibility
-- {-# OPTIONS -fglasgow-exts -fallow-undecidable-instances #-}
----------------------------------------------------------------------
-- |
-- Module : Data.FunArr
-- Cop... | conal/DeepArrow | src/Data/FunArr.hs | Haskell | bsd-3-clause | 2,075 |
# -*- coding: utf-8 -*-
#
# zambiaureport documentation build configuration file, created by
# sphinx-quickstart.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values ... | unicef-zambia/zambia-ureport | docs/conf.py | Python | bsd-3-clause | 7,753 |
// RobotBuilder Version: 2.0
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the blocks... | The-Charge/SirLancebot2016 | src/org/usfirst/frc2619/SirLancebot2016/commands/CrossRockWallCG.java | Java | bsd-3-clause | 1,844 |
#include<iostream>
using namespace std;
int n,k;
const int maxn=100010;
bool b[2*maxn];
struct
{
int num,cn;
}queue[2*maxn];
int head,tail;
void bfs()
{
b[n]=1;
queue[0].num=n;
queue[0].cn=1;
while(head<=tail)
{
if(queue[head].num==k)
{
prin... | lulyon/poj-archive | emperorlu/3278/3841255_WA.cc | C++ | bsd-3-clause | 1,548 |
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "contact".
*
* @property integer $id
* @property string $type
* @property string $name
* @property string $lastname
* @property string $email
* @property string $cellphone
* @property string $message
* @property string $identity
... | frankpaul142/optica-los-andes | models/Contact.php | PHP | bsd-3-clause | 1,347 |
#include <iostream>
#include <type_traits>
#include <vector>
#include <cassert>
#include <agency/execution/executor/sequenced_executor.hpp>
#include <agency/execution/executor/executor_traits.hpp>
int main()
{
using namespace agency;
static_assert(is_bulk_synchronous_executor<sequenced_executor>::value,
"seq... | egaburov/agency | testing/executor/sequenced_executor.cpp | C++ | bsd-3-clause | 1,773 |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkBitArray.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is dis... | SimVascular/VTK | Common/Core/vtkBitArray.h | C | bsd-3-clause | 11,213 |
/*
* Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met: redistributions of source code must retain the above copyright
* notice, this l... | liangwang/m5 | src/mem/ruby/system/PersistentTable.hh | C++ | bsd-3-clause | 3,532 |
/*******************************************************************************
* Copyright (c) 2009-2012, University of Manchester
*
* Licensed under the New BSD License.
* Please see LICENSE file that is distributed with the source code
*************************************************************************... | Tokebluff/RightField | src/main/java/uk/ac/manchester/cs/owl/semspreadsheets/model/NamedRange.java | Java | bsd-3-clause | 595 |
/*L
* Copyright SAIC, SAIC-Frederick.
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/caadapter/LICENSE.txt for details.
*/
package gov.nih.nci.caadapter.sdtm.util;
/**
* This class represents a entity
*
* @author OWNER: Harsha Jayanna
* @author LAST UPDATE $Author: ... | NCIP/caadapter | software/caadapter/src/java/gov/nih/nci/caadapter/sdtm/util/Entity.java | Java | bsd-3-clause | 1,371 |
define(function () {
return [
{
"default": {
name: 'form1',
label: 'Form 1',
"_elements": [
{
"default": {
"name": "id",
"type": "hidden"
}
},
{
"default": {
"name": "test1",
... | blinkmobile/forms | test/18_calculation/definitions.js | JavaScript | bsd-3-clause | 1,923 |
#include <stdio.h>
#include <stdlib.h>
static void foo()
{
throw 123;
}
int main(int argc, char *argv[])
{
int count = argc == 1 ? 10000 : atoi(argv[ 1 ]);
int n = 0;
for(int i = 0; i < count; ++i) {
try {
foo();
}
catch(...) {
++n;
}
}
printf("%d\n", n);
return 0;
}
| alaricsp/chicken-scheme | benchmarks/others/exception.cpp | C++ | bsd-3-clause | 314 |
#-----------------------------------------------------------------------------
# Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributors.
# All rights reserved.
#
# The full license is in the file LICENSE.txt, distributed with this software.
#-------------------------------------------------------------------... | ericmjl/bokeh | bokeh/io/output.py | Python | bsd-3-clause | 4,608 |
module Main where
import Build_doctests (flags, pkgs, module_sources)
import Data.Foldable (traverse_)
import Test.DocTest (doctest)
main :: IO ()
main = do
traverse_ putStrLn args
doctest args
where
args = ["-XOverloadedStrings"] ++ flags ++ pkgs ++ module_sources
| kazu-yamamoto/unix-time | test/doctests.hs | Haskell | bsd-3-clause | 282 |
require './test_common.rb'
require '../lib/crocus/minibloom'
class TestMiniBloom < Test::Unit::TestCase
def test_single_push
results = []
mb = MiniBloom.new
mb.source('p1',1)
mb.p1.pro {|i| results << [2*i[0]]}
mb.p1 << [2]
assert_equal([4], results.pop)
end
def test_single_table
resu... | jhellerstein/crocus | test/tc_minibloom.rb | Ruby | bsd-3-clause | 4,706 |
<!-- %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-2005-73.html | HTML | bsd-3-clause | 24,557 |
// 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 "media/audio/mac/audio_low_latency_output_mac.h"
#include <CoreServices/CoreServices.h>
#include "base/basictypes.h"
#include "base/command... | timopulkkinen/BubbleFish | media/audio/mac/audio_low_latency_output_mac.cc | C++ | bsd-3-clause | 15,052 |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\ComputerVih */
$this->title = Yii::t('app', 'Create Computer Vih');
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Computer Vihs'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="c... | tongmckub/yii2-asset-vih-final | frontend/views/computer-vih/create.php | PHP | bsd-3-clause | 468 |
<?php
/**
* CmsModule class file.
* @author Christoffer Niska <christoffer.niska@nordsoftware.com>
* @copyright Copyright © 2011, Nord Software Ltd
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @package cms
*/
class CmsModule extends CWebModule
{
/**
* @var string the na... | boo1ean/NordCms | CmsModule.php | PHP | bsd-3-clause | 1,428 |
// SDLRegisterAppInterface.h
//
#import "SDLRPCRequest.h"
#import "SDLAppHMIType.h"
#import "SDLLanguage.h"
@class SDLAppInfo;
@class SDLDeviceInfo;
@class SDLLifecycleConfiguration;
@class SDLSyncMsgVersion;
@class SDLTemplateColorScheme;
@class SDLTTSChunk;
/**
* Registers the application's interface with SDL. ... | smartdevicelink/sdl_mobileweather_tutorial_ios | Pods/SmartDeviceLink/SmartDeviceLink/SDLRegisterAppInterface.h | C | bsd-3-clause | 13,759 |
<style>
.buy-tickets__title{margin: 10px; width: 6%; margin-left: 0px;}
.buy-tickets__title.ticket-title{width: 50%;}
.buy-tickets__title.flash{width: 15%;}
.buy-tickets__title.flash-price{width: 11%;}
.form .input__number .input__number-control.sold-out{ width: 80px;height: 10px;margin: 5px;}
p... | Michelle941/v1.0 | views/site/_buyTicketForm.php | PHP | bsd-3-clause | 723 |
// Copyright 2020 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// These tests check that Torque-generated verifier functions crash the process
// when encountering data that doesn't fit the Torque type definitions.
... | youtube/cobalt | third_party/v8/test/cctest/test-verifiers.cc | C++ | bsd-3-clause | 7,485 |
from django import template
from django.utils.safestring import mark_safe
from mezzanine.conf import settings
from mezzanine_developer_extension.utils import refactor_html
register = template.Library()
# Checking settings.TEMPLATE_STYLE.
# Possible values are:
# - mezzanine_developer_extension.styles.macos
# -... | educalleja/mezzanine-developer-extension | mezzanine_developer_extension/templatetags/devfilters.py | Python | bsd-3-clause | 1,349 |
#pragma once
//=====================================================================//
/*! @file
@brief R8C グループ・コンパレーター I/O 制御
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2015, 2017 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/R8C/blob/master/LICENSE... | hirakuni45/R8C | common/comp_io.hpp | C++ | bsd-3-clause | 3,845 |
./scidb2postgres -i data/fromSciDBIntDoubleString.bin -o data/toPostgresIntDoubleString.bin -f'int32_t,int32_t null,double,double null,string,string null'
| bigdawg-istc/bigdawg | src/main/cmigrator/commands_scidb2postgres.sh | Shell | bsd-3-clause | 155 |
To update Mongo to Version 4.0 you must first upgrade to 3.6 then to version 4.0 as follows
1. Install 3.6 Binary
2. Close mongo and mongod
3. Start mongo and mongod in 3.6 bin folder
4. run command db.adminCommand({setFeatureCompatibilityVersion: "3.6"})
1. Install 4.0 Binary
2. Close mongo and mongod
3. Start mongo... | dandahle/Catalyst-AppVetting | MongoUpdate.md | Markdown | bsd-3-clause | 422 |
/*
Copyright (c) 2003-2014, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | mrmichalis/libtorrent-code | src/http_tracker_connection.cpp | C++ | bsd-3-clause | 16,622 |
<?php
/**
* Gem - File Uploading for Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.
*
* @category Gem
* @package Gem_Manipulator
* @copyright Copyright (c) 2008 Johan Nilsson. (http://www.markupartist.com)
* @li... | johannilsson/zfgem | library/Gem/Manipulator/Adapter/Thumbnail.php | PHP | bsd-3-clause | 2,242 |
<?php
use yii\helpers\Url;
?>
<div class="bjui-pageContent">
<form action="<?= Url::toRoute([$model?'update':'create','name'=>$model?$model->name:'']) ?>" id="user_form" data-toggle="validate" data-alertmsg="false">
<input name="_csrf" type="hidden" id="_csrf" value="<?= Yii::$app->request->csrfToken ?>">
... | 171906502/wetM2.0 | backend/modules/core/views/rule/view.php | PHP | bsd-3-clause | 1,266 |
//
// BenthosLibraryTableCell.h
// SeafloorExplore
//
// Modified from Brad Larson's Molecules Project in 2011-2012 for use in The SeafloorExplore Project
//
// Copyright (C) 2012 Matthew Johnson-Roberson
//
// See COPYING for license details
//
// Molecules
//
// The source code for Molecules is available und... | mattjr/seafloorexplore | BenthosLibraryTableCell.h | C | bsd-3-clause | 718 |
---
---
# Migration Guide 2.x to 3.0
## General
### Removed ui object
The `ui` object (`tabris.ui`) and `Ui` class no longer exist. All properties formerly hosted by `ui` are now directly attached to the `tabris` object/namespace. Example:
Tabris 2.x
```js
import {ui} from 'tabris';
ui.contentView.background = 're... | eclipsesource/tabris-js | doc/migration-guide.md | Markdown | bsd-3-clause | 13,317 |
/* Copyright (C) 2011 uberspot
*
* Compiling: znc-buildmod urlbuffer.cpp
* Dependencies: curl, wget, sed and a unix environment.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 3 as published
* by the Free Software Foundation (http... | 1stsetup/spksrc | cross/znc/modules/urlbuffer.cpp | C++ | bsd-3-clause | 12,622 |
@extends('layout.master')
@section('title','Administração')
@section('content')
@include('layout.topo')
<div class="row">
@include('layout.menu')
<div class="col-md-9">
<div class="row">
<div class="col-md-12">
<h1>Cadastro de Textos</h1>
</div>
</div>
<form action="{{Route('admin.gravaTex... | villagres/website | public/administracao/app/views/admin3/texto/cadastra.blade.php | PHP | bsd-3-clause | 1,284 |
from datetime import datetime
from pymongo.connection import Connection
from django.db import models
from eventtracker.conf import settings
def get_mongo_collection():
"Open a connection to MongoDB and return the collection to use."
if settings.RIGHT_MONGODB_HOST:
connection = Connection.paired(
... | ella/django-event-tracker | eventtracker/models.py | Python | bsd-3-clause | 1,073 |
// 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/display/display_controller.h"
#include <algorithm>
#include "ash/ash_switches.h"
#include "ash/display/display_manager.h"
#include "as... | zcbenz/cefode-chromium | ash/display/display_controller.cc | C++ | bsd-3-clause | 26,202 |
/**
* Copyright 5AM Solutions Inc, ESAC, ScenPro & SAIC
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/caintegrator/LICENSE.txt for details.
*/
package gov.nih.nci.caintegrator.web.action.study.management;
import static org.junit.Assert.assertEquals;
import static org... | NCIP/caintegrator | caintegrator-war/test/src/gov/nih/nci/caintegrator/web/action/study/management/EditStudyLogActionTest.java | Java | bsd-3-clause | 3,632 |
# AWS SDK for JavaScript
[](https://nodei.co/npm/aws-sdk/)
[](https://gitter.im/aws/aws-sdk-js)
[](http://badge.fury.io/js/aw... | thesoupgirl/PlanIt | node_modules/aws-dynamodb/node_modules/aws-sdk/README.md | Markdown | bsd-3-clause | 11,021 |
# encoding: utf-8
import sys
sys.path.append(sys.path.insert(0,"../src"))
def urlopen(*args, **kwargs):
# Only parse one arg: the url
return Urls[args[0]]
# Provide a simple hashtable to contain the content of the urls and
# provide a mock object similar to what will be returned from the
# real urlopen() fu... | greezybacon/xmlconfig | test/testImport.py | Python | bsd-3-clause | 4,610 |
<!DOCTYPE html>
<!--
| Setting the 4 different border widths for 4 directions. border-top-width
| would be default width.
| https://www.w3.org/TR/css3-background/#border-width
-->
<html>
<head>
<style>
div {
border: solid;
border-color: blue;
border-left-width: 20px;
border-bottom-wi... | youtube/cobalt | cobalt/layout_tests/testdata/css3-background/4-0-different-border-widths-with-solid-border-style.html | HTML | bsd-3-clause | 493 |
# -*- coding: utf-8 -*-
#
# complexity documentation build configuration file, created by
# sphinx-quickstart on Tue Jul 9 22:26:36 2013.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# ... | simodalla/pympa-affarigenerali-OLD | docs/conf.py | Python | bsd-3-clause | 8,210 |
/*
* Copyright (c) 2008, Keith Woodward
*
* 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 c... | rpax/straightedge | src/main/java/straightedge/geom/vision/CollinearOverlap.java | Java | bsd-3-clause | 2,372 |
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD Lic... | maxcastroro/clase03 | module/Application/config/module.config.php | PHP | bsd-3-clause | 4,225 |
// RobotBuilder Version: 2.0
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the block... | Aztechs157/ProtoBot2017 | src/org/usfirst/frc157/ProtoBot2017/RobotMap.java | Java | bsd-3-clause | 3,913 |
# -*- encoding : utf-8 -*-
require 'test_helper'
class Cuenta::CompeticionesControllerTest < ActionController::TestCase
test "should_see_configuration_page_of_every_competition" do
u = User.find(1)
sym_login 1
competitions = []
# Usamos random porque hay 361 combinaciones posibles de competicione... | gamersmafia/gamersmafia | test/functional/cuenta/competiciones_controller_test.rb | Ruby | bsd-3-clause | 6,668 |
# This file is part of Metasm, the Ruby assembly manipulation suite
# Copyright (C) 2006-2009 Yoann GUILLOT
#
# Licence is LGPL, see LICENCE in the top-level directory
require 'metasm/main'
require 'metasm/ia32'
module Metasm
# The x86_64, 64-bit extension of the x86 CPU (x64, em64t, amd64...)
class X86_64... | boboguessme/cold_grinder | node/lib/metasm/metasm/x86_64/main.rb | Ruby | bsd-3-clause | 4,044 |
# This file helps to compute a version number in source trees obtained from
# git-archive tarball (such as those provided by githubs download-from-tag
# feature). Distribution tarballs (built by setup.py sdist) and build
# directories (produced by setup.py build) will contain a much shorter file
# that just contains t... | mrahnis/jxl2txt | jxl2txt/_version.py | Python | bsd-3-clause | 18,658 |
<!-- %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-2006-06.html | HTML | bsd-3-clause | 41,078 |
<?php
/**
* RSSAggregatingPage lets a CMS Authors aggregate and filter a number of RSS feed.
*/
class RSSAggregatingPage extends Page {
static $db = array (
"NumberOfItems" => "Int"
);
static $has_many = array(
"SourceFeeds" => "RSSAggSource",
"Entries" => "RSSAggEntry"
);
private static $moderation... | sminnee/silverstripe-rssaggregator | code/RSSAggregatingPage.php | PHP | bsd-3-clause | 5,295 |
from . import Cl, conformalize
layout_orig, blades_orig = Cl(3)
layout, blades, stuff = conformalize(layout_orig)
locals().update(blades)
locals().update(stuff)
# for shorter reprs
layout.__name__ = 'layout'
layout.__module__ = __name__
| arsenovic/clifford | clifford/g3c.py | Python | bsd-3-clause | 240 |
using System;
using Renci.SshNet.Messages.Connection;
namespace Renci.SshNet.Channels
{
internal abstract class ServerChannel : Channel
{
internal void Initialize(Session session, uint localWindowSize, uint localPacketSize, uint remoteChannelNumber, uint remoteWindowSize, uint remotePacketSize)
... | EddyBeaupre/Renci.SshNet | Channels/ServerChannel.cs | C# | bsd-3-clause | 2,118 |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>mne.find_events — MNE 0.15 documentation</title>
<link rel="stylesheet" href="../_static/bootstrap-sphinx.css" type="text/css" />
<link rel="stylesheet... | mne-tools/mne-tools.github.io | 0.15/generated/mne.find_events.html | HTML | bsd-3-clause | 40,529 |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\models\ShopGoodsCategory */
$this->title = Yii::t('app', 'Create Shop Goods Category');
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Shop Goods Categories'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title... | xiangpingeasy/yii2_fbg_shop | backend/views/shop-goods-category/create.php | PHP | bsd-3-clause | 446 |
// 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/chromeos/login/login_utils.h"
#include <algorithm>
#include <set>
#include <vector>
#include "base/bind.h"
#include "base/c... | patrickm/chromium.src | chrome/browser/chromeos/login/login_utils.cc | C++ | bsd-3-clause | 36,738 |
package edu.ucdenver.ccp.datasource.fileparsers.snomed;
import edu.ucdenver.ccp.datasource.fileparsers.SingleLineFileRecord;
/*
* #%L
* Colorado Computational Pharmacology's common module
* %%
* Copyright (C) 2012 - 2015 Regents of the University of Colorado
* %%
* Redistribution and use in source and binary fo... | UCDenver-ccp/datasource | datasource-fileparsers/src/main/java/edu/ucdenver/ccp/datasource/fileparsers/snomed/SnomedRf2DescriptionFileRecord.java | Java | bsd-3-clause | 3,805 |
"""
Unit tests to ensure that we can call reset_traits/delete on a
property trait (regression tests for Github issue #67).
"""
from traits import _py2to3
from traits.api import Any, HasTraits, Int, Property, TraitError
from traits.testing.unittest_tools import unittest
class E(HasTraits):
a = Property(Any)
... | burnpanck/traits | traits/tests/test_property_delete.py | Python | bsd-3-clause | 730 |
<?php
namespace app\controllers;
use app\models\ContactForm;
use app\models\LoginForm;
use Yii;
use yii\filters\AccessControl;
use yii\filters\VerbFilter;
use yii\web\Controller;
class SiteController extends Controller
{
public function behaviors()
{
return [
'access' => [
... | locnes/monstars | controllers/SiteController.php | PHP | bsd-3-clause | 2,402 |
/* dlar1v.f -- translated by f2c (version 20061008).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2c -lm
-- in that order, at the end of... | juanjosegarciaripoll/cblapack | src/lapack/dlar1v.c | C | bsd-3-clause | 12,170 |
<?php
namespace elisdn\gii\fixture\tests;
use yii\db\ActiveRecord;
class Post extends ActiveRecord
{
public static function tableName()
{
return 'post';
}
} | ElisDN/yii2-gii-fixture-generator | tests/Post.php | PHP | bsd-3-clause | 180 |
package com.mattunderscore.trees.base;
import static org.junit.Assert.*;
import static org.mockito.Mockito.verify;
import static org.mockito.MockitoAnnotations.initMocks;
import java.util.Iterator;
import java.util.NoSuchElementException;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
impo... | mattunderscorechampion/tree-root | trees-basic-nodes/src/test/java/com/mattunderscore/trees/base/MutableChildIteratorTest.java | Java | bsd-3-clause | 1,823 |
// Copyright 2004-present Facebook. All Rights Reserved.
#include <vector>
#include <string>
#include <osquery/core.h>
#include <osquery/logger.h>
#include <osquery/tables.h>
#include "osquery/events/linux/udev.h"
namespace osquery {
namespace tables {
/**
* @brief Track udev events in Linux
*/
class HardwareEve... | Anubisss/osquery | osquery/tables/events/linux/hardware_events.cpp | C++ | bsd-3-clause | 2,025 |
// Copyright 2018 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_UI_WEBAUTHN_SHEET_MODELS_H_
#define CHROME_BROWSER_UI_WEBAUTHN_SHEET_MODELS_H_
#include <memory>
#include <string>
#include "chro... | scheib/chromium | chrome/browser/ui/webauthn/sheet_models.h | C | bsd-3-clause | 18,896 |
package com.spm.store;
import java.io.Serializable;
import java.util.List;
import android.content.Context;
/**
*
* @author Agustin Sgarlata
* @param <T>
*/
public class DbProvider<T extends Serializable> extends Db4oHelper {
public Class<T> persistentClass;
public DbProvider(Class<T> persistentClass, Conte... | mural/spm | SPM/src/main/java/com/spm/store/DbProvider.java | Java | bsd-3-clause | 670 |
package main
/*
* CSCI 4229 Assignment 5: Lighting
*
* Author: Zach Anders
*
* Some code derived from CSCI 4229 Examples 9, 10, and 13 (ex9.c, ex10.c, ex13.c)
*
* Code for 2D text display (due to missing windowpos2i) based off some example code
* at http://programmingexamples.net/wiki/OpenGL/Text
*/
import (
"actor... | ZachAnders/Graphics_HW5_lighting | src/main/scene_main.go | GO | bsd-3-clause | 6,411 |
from django import forms
from ncdjango.interfaces.arcgis.form_fields import SrField
class PointForm(forms.Form):
x = forms.FloatField()
y = forms.FloatField()
projection = SrField() | consbio/ncdjango | ncdjango/interfaces/data/forms.py | Python | bsd-3-clause | 195 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta ht... | statsmodels/statsmodels.github.io | v0.13.1/generated/statsmodels.sandbox.regression.gmm.NonlinearIVGMM.endog_names.html | HTML | bsd-3-clause | 18,305 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.