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 |
|---|---|---|---|---|---|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Chord Lookup</title>
<!-- <link rel="stylesheet" href="$views/css/image.css">
<link rel="stylesheet" href="$views/css/list.css">
<link rel="stylesheet" href="$views/css/bu... | benjaminran/chordlookup | index.html | HTML | bsd-3-clause | 787 |
<?php
use yii\helpers\Html;
use yii\helpers\ArrayHelper;
use yii\widgets\DetailView;
use yii\widgets\ActiveForm;
use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $model backend\models\Product */
$this->title = $model->title;
$this->params['breadcrumbs'][] = ['label' => 'Products', 'url' => ['index']];
$thi... | Ravend6/php_yii2_ecommerce | backend/views/products/view.php | PHP | bsd-3-clause | 2,703 |
//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
// author: Vassil Vassilev <vasil.georgiev.vasilev@cern.ch>
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Le... | personalrobotics/chimera | external/cling/src/cling_utils_AST.cpp | C++ | bsd-3-clause | 71,149 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE126_Buffer_Overread__malloc_wchar_t_memmove_72a.cpp
Label Definition File: CWE126_Buffer_Overread__malloc.label.xml
Template File: sources-sink-72a.tmpl.cpp
*/
/*
* @description
* CWE: 126 Buffer Over-read
* BadSource: Use a small buffer
* GoodSource: Use a... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE126_Buffer_Overread/s02/CWE126_Buffer_Overread__malloc_wchar_t_memmove_72a.cpp | C++ | bsd-3-clause | 2,936 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE126_Buffer_Overread__malloc_wchar_t_memcpy_53a.c
Label Definition File: CWE126_Buffer_Overread__malloc.label.xml
Template File: sources-sink-53a.tmpl.c
*/
/*
* @description
* CWE: 126 Buffer Over-read
* BadSource: Use a small buffer
* GoodSource: Use a larg... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE126_Buffer_Overread/s02/CWE126_Buffer_Overread__malloc_wchar_t_memcpy_53a.c | C | bsd-3-clause | 2,637 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE680_Integer_Overflow_to_Buffer_Overflow__malloc_connect_socket_72b.cpp
Label Definition File: CWE680_Integer_Overflow_to_Buffer_Overflow__malloc.label.xml
Template File: sources-sink-72b.tmpl.cpp
*/
/*
* @description
* CWE: 680 Integer Overflow to Buffer Overflo... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE680_Integer_Overflow_to_Buffer_Overflow/CWE680_Integer_Overflow_to_Buffer_Overflow__malloc_connect_socket_72b.cpp | C++ | bsd-3-clause | 2,339 |
use na::{self, RealField};
/// Parameters for a time-step of the physics engine.
#[derive(Clone)]
pub struct IntegrationParameters<N: RealField> {
/// The timestep (default: `1.0 / 60.0`)
dt: N,
/// The inverse of `dt`.
inv_dt: N,
/// If `true`, the world's `step` method will stop right after resol... | sebcrozet/nphysics | src/solver/integration_parameters.rs | Rust | bsd-3-clause | 7,763 |
#!/usr/bin/env python3
"""Creates training data for the BERT network training
(noisified + masked gold predictions) using the input corpus.
The masked Gold predictions use Neural Monkey's PAD_TOKEN to indicate
tokens that should not be classified during training.
We only leave `coverage` percent of symbols for classi... | ufal/neuralmonkey | scripts/preprocess_bert.py | Python | bsd-3-clause | 3,940 |
<?php
/* @var $this \yii\web\View */
/* @var $content string */
use backend\assets\AppAsset;
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use common\widgets\Alert;
AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$ap... | deka6pb/yii2-todo-service | backend/views/layouts/main.php | PHP | bsd-3-clause | 1,987 |
/***********************************************************************************************************************
**
** Copyright (c) 2011, 2014 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
** follo... | patrick-luethi/Envision | CppImport/src/cppimport.cpp | C++ | bsd-3-clause | 2,296 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Code Coverage for /home/david/Documentos/curso/php/zf2.intermediario/module/SONAcl/src/SONAcl/Form/Role.php</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="../../../css/bootstrap.min.css" rel="style... | davidpetro88/zf2_gema | module/SONAcl/test/_reports/coverage/src/SONAcl/Form/Role.php.html | HTML | bsd-3-clause | 29,852 |
// 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 "base/utf_string_conversions.h" // ASCIIToUTF16
#include "ui/aura/root_window.h"
#include "ui/aura/window.h"
#include... | timopulkkinen/BubbleFish | ash/shell/widgets.cc | C++ | bsd-3-clause | 4,821 |
/*-------------------------------------------------------------------------
*
* Copyright (c) 2003-2011, PostgreSQL Global Development Group
*
*
*-------------------------------------------------------------------------
*/
package org.postgresql.geometric;
import org.postgresql.util.GT;
import org.postgresql.util.PGob... | thkoch2001/libpostgresql-jdbc-java | org/postgresql/geometric/PGbox.java | Java | bsd-3-clause | 4,461 |
// 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.
#ifndef CC_RESOURCE_UPDATE_CONTROLLER_H_
#define CC_RESOURCE_UPDATE_CONTROLLER_H_
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#inclu... | zcbenz/cefode-chromium | cc/resource_update_controller.h | C | bsd-3-clause | 2,501 |
from .. utils import TranspileTestCase, UnaryOperationTestCase, BinaryOperationTestCase, InplaceOperationTestCase
class StrTests(TranspileTestCase):
def test_setattr(self):
self.assertCodeExecution("""
x = "Hello, world"
x.attr = 42
print('Done.')
""")
... | Felix5721/voc | tests/datatypes/test_str.py | Python | bsd-3-clause | 9,931 |
from __future__ import unicode_literals
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from django.utils.translation import pgettext_lazy
from .base import Product
from .variants import (ProductVariant, PhysicalProduct, ColoredVariant,
StockedProduct)... | hongquan/saleor | saleor/product/models/products.py | Python | bsd-3-clause | 1,423 |
/*
* Copyright (c) 2009, INRIA
* 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... | jdfekete/obvious | obvious/src/main/java/obvious/data/Schema.java | Java | bsd-3-clause | 6,661 |
// Covers TCPWRAP and related TCPCONNECTWRAP
'use strict';
const common = require('../common');
const assert = require('assert');
const tick = require('./tick');
const initHooks = require('./init-hooks');
const { checkInvocations } = require('./hook-checks');
if (!common.hasIPv6) {
common.skip('IPv6 support require... | RPGOne/Skynet | node-master/test/async-hooks/test-tcpwrap.js | JavaScript | bsd-3-clause | 5,807 |
import java.awt.Component;
import javax.swing.JFrame;
public class Game extends JFrame {
private static final long serialVersionUID = -7803629994015778818L;
private static final int WIDTH = 1024;
private static final int HEIGHT = 768;
public Game() {
super("Super UnExtreme Tower Defense X");
setSiz... | CrimsonVoid/Super-Tower-Defense | src/Game.java | Java | bsd-3-clause | 649 |
<?php
namespace Sousrubrique;
/**
* Class Module
* @package Sousrubrique
*/
class Module
{
/**
* @return mixed
*/
public function getConfig(){
return include __DIR__ . '/config/module.config.php';
}
}
| rongeb/anit_cms_for_zf3 | module/Sousrubrique/Module.php | PHP | bsd-3-clause | 230 |
/*
* Copyright (C) 2002, 2003 The Karbon Developers
* Copyright (C) 2006 Alexander Kellett <lypanov@kde.org>
* Copyright (C) 2006, 2007 Rob Buis <buis@kde.org>
* Copyright (C) 2007, 2009 Apple Inc. All rights reserved.
* Copyright (C) Research In Motion Limited 2010. All rights reserved.
*
* This library is free... | Bysmyyr/chromium-crosswalk | third_party/WebKit/Source/core/svg/SVGPathParser.h | C | bsd-3-clause | 2,256 |
# -*- mode: cmake; -*-
# - Try to find rocksdb include dirs and libraries
# Usage of this module as follows:
# This file defines:
# * ROCKSDB_FOUND if protoc was found
# * ROCKSDB_LIBRARY The lib to link to (currently only a static unix lib, not
# portable)
# * ROCKSDB_INCLUDE The include directories for rocksdb.
incl... | runt18/osquery | CMake/FindRocksDB.cmake | CMake | bsd-3-clause | 4,316 |
## Events
| Name | Description | Attributes |
|------|-------------|------------|
| Events gathered by the agent cron plugin | CRON | exitCode, executionTime, output, user, cronJob |
| CoScale/docs | _includes/plugins/cron.md | Markdown | bsd-3-clause | 185 |
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>{{page.title}} · Cyclopedia</title>
<!-- Facebook -->
<meta property="og:type" content="article">
<meta property="og:title" content="{{page.title}} · Cyclopedia">
<meta property="og:url" content="http://chris-noel-chan.github.io/large-data-website/index... | namasteChris/large-data-website | _layouts/default.html | HTML | bsd-3-clause | 2,892 |
{% extends "base.html" %}
{% block bodyclass %}about{% endblock %}
{% block secondary_nav %}
<li><a href="/about/">About this site</a></li>
<li><a href="/about/faq/">FAQ</a></li>
<li><a href="/about/tos/">Terms of Service</a></li>
<li><a href="/about/legal/">Legal</a></li>
{% endblock %}
| yangjiandong/djangosnippets | cab/templates/base_about.html | HTML | bsd-3-clause | 291 |
# -*- coding: utf-8 -*-
#
# Copyright (c) 2015, Alcatel-Lucent Inc, 2017 Nokia
# 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 copyrigh... | nuagenetworks/vspk-python | vspk/v6/nuvnfthresholdpolicy.py | Python | bsd-3-clause | 16,674 |
/* General warning: Beta-ish. Code could be a bit cleaner. */
.ui360,
.ui360 * {
position:relative;
}
.ui360,
.sm2-360ui {
/* size of the container for the circle, etc. */
width:50px;
height:50px;
}
.ui360 {
position:relative;
/* a little extra spacing */
padding-top:1px;
padding-bottom:1px... | jwheare/soundmanager2 | demo/360-player/360player.css | CSS | bsd-3-clause | 5,016 |
<?php
/**
* This file is part of prooph/pdo-event-store.
* (c) 2016-2022 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2016-2022 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
... | prooph/pdo-event-store | tests/Projection/PostgresEventStoreReadModelProjectorCustomSchemaTest.php | PHP | bsd-3-clause | 2,725 |
/*================================================================================
Copyright (c) 2013 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... | paksv/vijava | src/com/vmware/vim25/OvfCpuCompatibilityCheckNotSupported.java | Java | bsd-3-clause | 1,837 |
<?php
namespace Admin\Form;
use Zend\Form\Form;
class SearchForm extends Form {
public function __construct($name = null) {
// we want to ignore the name passed
parent::__construct('search');
$this->setAttribute('method', 'get');
$this->add(array(
'name' => 'action',
'attributes' => ar... | mafia99/Abbelire | module/Admin/src/Admin/Form/SearchForm.php | PHP | bsd-3-clause | 1,049 |
Pop PHP Framework
=================
Documentation : Http
--------------------
Home
Der HTTP-Komponente bietet eine einfach zu bedienende API zu verwalten,
Zugriff und Manipulation HTTP Anfragen und Antworten. Es ist in mehrere
Komponenten verwendet, ist aber den meisten eng mit der MVC-Komponente
zur Verwaltung von ... | nicksagona/PopPHP | vendor/PopPHPFramework/docs/md/de/Http.md | Markdown | bsd-3-clause | 942 |
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Set tracking cookie</title>
</head>
<body onLoad="javascript:pageTracker._setVar('sr_internal');">
<p>cookie set</p>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." :... | smithandrobot/smithrobot-website | smithandrobot/templates/tracking_cookie.html | HTML | bsd-3-clause | 644 |
# pyhtslib -- HTS file access from Python
The Python library pyhtslib is a wrapper around [htslib](http://www.htslib.org/), a C library for accessing files used for high-throughput sequencing (HTS) file formats.
The aim of pyhtslib is to provide the I/O functionality from htslib through an easy-to-use and well-tested ... | holtgrewe/pyhtslib | README.md | Markdown | bsd-3-clause | 1,356 |
from __future__ import division, print_function, absolute_import
#from pnet.vzlog import default as vz
import numpy as np
import amitgroup as ag
import itertools as itr
import sys
import os
#import gv
import pnet
import time
def test(ims, labels, net):
yhat = net.classify(ims)
return yhat == labels
if pnet... | amitgroup/parts-net | scripts/train_and_test5.py | Python | bsd-3-clause | 12,277 |
// ==LICENSE-BEGIN==
// Copyright 2017 European Digital Reading Lab. All rights reserved.
// Licensed to the Readium Foundation under one or more contributor license agreements.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file exposed on Github (readium) in the proj... | edrlab/readium-desktop | src/renderer/reader/pdf/webview/index_pdf.ts | TypeScript | bsd-3-clause | 9,792 |
{-
(c) The University of Glasgow 2011
The deriving code for the Generic class
(equivalent to the code in TcGenDeriv, for other classes)
-}
{-# LANGUAGE CPP, ScopedTypeVariables, TupleSections #-}
{-# LANGUAGE FlexibleContexts #-}
module TcGenGenerics (canDoGenerics, canDoGenerics1,
GenericKind... | ghc-android/ghc | compiler/typecheck/TcGenGenerics.hs | Haskell | bsd-3-clause | 37,323 |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>statsmodels.robust.scale — statsmodels v0.10.0 documentation</title>
<link rel="stylesheet" href="../../../_static/nature.css" type="text/css" />
<link rel="stylesheet" href="../../../_static/py... | statsmodels/statsmodels.github.io | v0.10.0/_modules/statsmodels/robust/scale.html | HTML | bsd-3-clause | 37,935 |
/************************************************************************/
/* */
/* PmodR2R.c -- Template driver for a Pmod which uses GPIO */
/* */
/************************************************************************/
/* Author: Thomas Kappenman, Arthur Brown */
/* Co... | AEW2015/PYNQ_PR_Overlay | Pynq-Z1/vivado/ip/Pmods/PmodR2R_v1_0/drivers/PmodR2R_v1_0/src/PmodR2R.h | C | bsd-3-clause | 2,337 |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ash/policy/networking/user_network_configuration_updater.h"
#include <utility>
#include "base/bind.h"
#include "base/callback_h... | scheib/chromium | chrome/browser/ash/policy/networking/user_network_configuration_updater.cc | C++ | bsd-3-clause | 7,921 |
/*jslint indent: 2 */
/*global document: false, $: false, localStorage: false, chrome:false*/
'use strict';
var userData, offlineUser;
offlineUser = localStorage.getItem('offline_users');
if (offlineUser) {
userData = JSON.parse(localStorage.getItem('offline_users-' + offlineUser));
if (userData && userData.offl... | eatskolnikov/toggl-button | src/scripts/content/toggl.js | JavaScript | bsd-3-clause | 966 |
<?php
namespace Chippyash\Test\Validation\Common;
use Chippyash\Validation\Common\ZFValidator as ZendBaseValidator;
use Chippyash\Validation\Messenger;
use PHPUnit\Framework\TestCase;
/**
* Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2013-12-08 at 19:09:41.
*/
class ZendTest extends TestCase
{
/**
* D... | chippyash/Validation | test/Chippyash/Test/Validation/Common/ZendTest.php | PHP | bsd-3-clause | 3,032 |
// SPDX-License-Identifier: BSD-3-Clause
package org.xbill.DNS.dnssec;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.time.Instant;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.xbill.... | dnsjava/dnsjava | src/test/java/org/xbill/DNS/dnssec/TestNormallyUnreachableCode.java | Java | bsd-3-clause | 2,380 |
## General Concepts
The following concepts are the same for every endpoint in the API except when it's noted explicitly.
### Auth
By default, users do not have access to private tables in CARTO. In order to instantiate a map from private table data an API Key is required. Additionally, an API Key is also required to... | CartoDB/Windshaft-cartodb | docs/guides/02-general-concepts.md | Markdown | bsd-3-clause | 2,957 |
import Rx from 'rxjs/Rx';
import {
createMessage,
} from '../kernel/messaging';
import {
COMM_OPEN,
COMM_MESSAGE,
COMM_ERROR,
NEW_KERNEL,
} from '../constants';
/**
* creates a comm open message
* @param {string} comm_id uuid
* @param {string} target_name comm handler
* @param {any} data ... | 0u812/nteract | src/notebook/epics/comm.js | JavaScript | bsd-3-clause | 4,327 |
--
-- Tabellenstruktur für Tabelle `item`
--
CREATE TABLE IF NOT EXISTS `item` (
`id` smallint(6) NOT NULL,
`title` varchar(255) NOT NULL,
`data` tinyint(3) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY(
`id`,
`data`
)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- -------------------------------------------... | thelfensdrfer/Minecraft-Helper | migration/schema.sql | SQL | bsd-3-clause | 1,256 |
# $FreeBSD: src/sys/modules/accf_data/Makefile,v 1.1.2.1 2000/07/28 04:03:47 alfred Exp $
.PATH: ${.CURDIR}/../../netinet
KMOD = accf_data
SRCS = accf_data.c
.include <bsd.kmod.mk>
| MarginC/kame | freebsd4/sys/modules/accf_data/Makefile | Makefile | bsd-3-clause | 183 |
package edu.lu.uni.serval.idempotent.comm
import com.google.gson.{Gson, JsonObject}
import com.rabbitmq.client.AMQP.BasicProperties
import com.rabbitmq.client._
/**
* Created by darkrsw on 2016/November/22.
*/
object ResultSender
{
var host = "localhost"
var QUEUE_NAME = "test"
var ALARM_QUEUE_NAME = "js-a... | darkrsw/safe | src/main/scala/edu/lu/uni/serval/idempotent/comm/ResultSender.scala | Scala | bsd-3-clause | 3,508 |
module Spree
class DefaultTaxZoneValidator < ActiveModel::Validator
def validate(record)
if record.included_in_price
record.errors.add(:included_in_price, I18n.t(:included_price_validation)) unless Zone.default_tax
end
end
end
end
module Spree
class TaxRate < ActiveRecord::Base
be... | NEWECX/spree_core | app/models/spree/tax_rate.rb | Ruby | bsd-3-clause | 2,548 |
<!-- BEGIN: title -->User comments component<!-- END: title -->
<!-- BEGIN: content -->
{FILE "bo/node/default_top.html"}
<fieldset>
<div class="row">
<span class="label"><label for="component-allow_anonymouse_submit">Allow anonymous posts</label></span>
<span class="field"><input type="checkbox" id="component-all... | 1nv4d3r5/onxshop | templates/bo/node/content/comment.html | HTML | bsd-3-clause | 520 |
<?php
// Evita acesso direto a este arquivo
if ( ! defined('ABSPATH')) exit;
?>
<div class="wrap">
<?php
// Número de posts por página
$modelo->posts_por_pagina = 10;
// Lista notícias
$lista = $modelo->listar_noticias();
?>
<?php foreach( $lista as $noticia ):?>
<!-- Título -->
<h1>
<a href="<?php echo HO... | Hieracles/front-pem | views/noticias/noticias-view.php | PHP | bsd-3-clause | 971 |
<?php
namespace app\modules\loader\models;
use Yii;
/**
* This is the model class for table "1c_load".
*
* @property resource $blob_data
* @property integer $id
*/
class Loader extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static function tableName()
{
return '1c_load'... | kd-brinex/kd | modules/loader/models/Loader.php | PHP | bsd-3-clause | 653 |
Installing Yii
==============
You can install Yii in two ways, using [Composer](http://getcomposer.org/) or by downloading an archive file.
The former is the preferred way, as it allows you to install new [extensions](extend-creating-extensions.md) or update Yii by simply running a single command.
> Note: Unlike with... | nkovacs/yii2 | docs/guide/start-installation.md | Markdown | bsd-3-clause | 9,006 |
package abi41_0_0.expo.modules.ads.facebook;
import android.content.Context;
import com.facebook.ads.MediaView;
import abi41_0_0.org.unimodules.core.ViewManager;
public class MediaViewManager extends ViewManager<MediaView> {
@Override
public String getName() {
return "MediaView";
}
@Override
public M... | exponent/exponent | android/versioned-abis/expoview-abi41_0_0/src/main/java/abi41_0_0/expo/modules/ads/facebook/MediaViewManager.java | Java | bsd-3-clause | 508 |
<?php
use yii\helpers\Inflector;
use yii\helpers\StringHelper;
/* @var $this yii\web\View */
/* @var $generator yii\gii\generators\crud\Generator */
$urlParams = $generator->generateUrlParams();
$nameAttribute = $generator->getNameAttribute();
echo "<?php\n";
?>
use yii\helpers\Html;
use <?= $generator->indexWidge... | tigergithub01/b2b2c | common/generators/crud-mobile/default/views/index.php | PHP | bsd-3-clause | 3,149 |
// mgo - MongoDB driver for Go
//
// Copyright (c) 2010-2012 - Gustavo Niemeyer <gustavo@niemeyer.net>
//
// 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 cod... | kylemclaren/mongo-transporter | Godeps/_workspace/src/gopkg.in/mgo.v2/auth.go | GO | bsd-3-clause | 12,555 |
package spark.scheduler
import java.net.URI
import java.util.concurrent.atomic.AtomicInteger
import java.util.concurrent.Future
import java.util.concurrent.LinkedBlockingQueue
import java.util.concurrent.TimeUnit
import scala.collection.mutable.{ArrayBuffer, HashMap, HashSet, Queue, Map}
import spark._
import spark.... | hobinyoon/spark-0.7.0 | core/src/main/scala/spark/scheduler/DAGScheduler.scala | Scala | bsd-3-clause | 28,031 |
require 'json'
require 'rest-client'
module Ebi
class OlsClient
def all_descendants(ontology_id, term_iri)
Rails.cache.fetch("ebi_ontology_terms_#{ontology_id}_#{term_iri}") do
url = "https://www.ebi.ac.uk/ols/api/ontologies/#{ontology_id}/terms/#{double_url_encode(term_iri)}"
self_json = ... | seek4science/seek | lib/ebi/ols_client.rb | Ruby | bsd-3-clause | 2,169 |
package com.fsck.k9.mailstore;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import android.content.ContentValues;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
impo... | Valodim/k-9 | k9mail/src/main/java/com/fsck/k9/mailstore/StoreSchemaDefinition.java | Java | bsd-3-clause | 29,566 |
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#ifndef XFA_FWL_CFX_BARCODE_H_
#define XFA_FWL_CFX_BARCODE_H_
#include <memor... | DrAlexx/pdfium | xfa/fwl/cfx_barcode.h | C | bsd-3-clause | 1,696 |
Title: Inselect v0.1.35 released
You can [download v0.1.35](https://github.com/NaturalHistoryMuseum/inselect/releases/tag/v0.1.35).
- [425](https://github.com/NaturalHistoryMuseum/inselect/issues/425) Warnings
- [420](https://github.com/NaturalHistoryMuseum/inselect/issues/420) zbar decoder on Mac OS X
- [418](https:... | NaturalHistoryMuseum/inselect | website/content/news/2017-01-16-v0.1.35.md | Markdown | bsd-3-clause | 3,672 |
### 11.2.6. 避免脆弱的测试
如果一个应用程序对于新出现的但有效的输入经常失败说明程序容易出bug(不够稳健);同样,如果一个测试仅仅对程序做了微小变化就失败则称为脆弱。就像一个不够稳健的程序会挫败它的用户一样,一个脆弱的测试同样会激怒它的维护者。最脆弱的测试代码会在程序没有任何变化的时候产生不同的结果,时好时坏,处理它们会耗费大量的时间但是并不会得到任何好处。
当一个测试函数会产生一个复杂的输出如一个很长的字符串、一个精心设计的数据结构或一个文件时,人们很容易想预先写下一系列固定的用于对比的标杆数据。但是随着项目的发展,有些输出可能会发生变化,尽管很可能是一个改进的实现导致的。而且不仅仅是输出部分,函数复杂的输入部分... | gopl-zh/gopl-zh.github.com | ch11/ch11-02-6.md | Markdown | bsd-3-clause | 1,535 |
# proxy module
from pyface.qt.QtScript import *
| enthought/etsproxy | enthought/qt/QtScript.py | Python | bsd-3-clause | 48 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# =============================================================================
## @file ostap/frames/tree_reduce.py
# Helper module to "Reduce" tree using frames
# @see Ostap::DataFrame
# @see ROOT::RDataFrame
# @author Vanya BELYAEV Ivan.Belyaev@itep.ru
# @date 201... | OstapHEP/ostap | ostap/frames/tree_reduce.py | Python | bsd-3-clause | 12,435 |
<?php
namespace SalesObjects\Model;
use Zend\InputFilter\Factory as InputFactory; // <-- Add this import
use Zend\InputFilter\InputFilter; // <-- Add this import
use Zend\InputFilter\InputFilterAwareInterface; // <-- Add this import
use Zend\InputFilter\InputFilterInterface; // <-- Add th... | Jhonnorton/vivekvtc | module/SalesObjects/src/SalesObjects/Model/Resorts_09-10-2014.php | PHP | bsd-3-clause | 12,567 |
-- Copyright (c) 2016-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.
{-# LANGUAGE Over... | rfranek/duckling | Duckling/Email/EN/Corpus.hs | Haskell | bsd-3-clause | 983 |
<?php
/**
* The Service module provides basic configuration validation during service instantiation.
*
* Basic Usage:
* <code>
* use Foundry\Core\Service;
* class SomeService {
* public static $required_options = array("hostname",
* "username",
* ... | justjohn/foundry-core | lib/Foundry/Core/Service.php | PHP | bsd-3-clause | 2,730 |
<?php
namespace frontend\controllers;
use Yii;
use backend\models\Comment;
use backend\models\CommentSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* CommentController implements the CRUD actions for Comment model.
*/
class CommentController extends Controller
{
... | mianbao726/sunny | _protected/frontend/controllers/CommentController.php | PHP | bsd-3-clause | 4,123 |
/* $NetBSD: bootconfig.h,v 1.2 2002/04/12 18:01:17 bjh21 Exp $ */
/*
* Copyright (c) 1994 Mark Brinicombe.
* Copyright (c) 1994 Brini.
* All rights reserved.
*
* This code is derived from software written for Brini by Mark Brinicombe
*
* Redistribution and use in source and binary forms, with or without
* modi... | MarginC/kame | netbsd/sys/arch/netwinder/include/bootconfig.h | C | bsd-3-clause | 2,635 |
/* $NetBSD: linux_machdep.c,v 1.46 1999/01/08 11:59:38 kleink Exp $ */
/*-
* Copyright (c) 1995 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Frank van der Linden.
*
* Redistribution and use in source and binary forms, with or... | MarginC/kame | netbsd/sys/compat/linux/arch/i386/linux_machdep.c | C | bsd-3-clause | 21,192 |
module SimpleLang.Syntax where
import Data.Functor.Identity
import Data.Maybe (fromMaybe)
import qualified SimpleLang.Parser as P
import Text.Parsec
import qualified Text.Parsec.Expr as Ex
import qualified Text.Parsec.Token as Tok
data Expr =
Tr
| Fl
|... | AlphaMarc/WYAH | src/SimpleLang/Syntax.hs | Haskell | bsd-3-clause | 2,692 |
/*-
* Copyright (c) 1982, 1986, 1990, 1993
* The Regents of the University of California. 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 th... | jhbsz/OSI-OS | sys/netinet/in.h | C | bsd-3-clause | 27,046 |
"""
Tests for values coercion in setitem-like operations on DataFrame.
For the most part, these should be multi-column DataFrames, otherwise
we would share the tests with Series.
"""
import numpy as np
import pytest
import pandas as pd
from pandas import (
DataFrame,
MultiIndex,
NaT,
Series,
Times... | pandas-dev/pandas | pandas/tests/frame/indexing/test_coercion.py | Python | bsd-3-clause | 5,463 |
/*
* Copyright (c) 2005, Peter Sommerlad and IFS Institute for Software at HSR Rapperswil, Switzerland
* All rights reserved.
*
* This library/application is free software; you can redistribute and/or modify it under the terms of
* the license that is included with this library/application in the file license.txt.... | zer0infinity/CuteTestForCoastTest | coast/perfTest/src/MultiWriterParser.cpp | C++ | bsd-3-clause | 1,427 |
import numpy as np
import matplotlib.pyplot as plt
import statsmodels.api as sm
from selection.algorithms.lasso import instance
from selection.algorithms.forward_step import forward_stepwise, info_crit_stop, sequential, data_carving_IC
def test_FS(k=10):
n, p = 100, 200
X = np.random.standard_normal((n,p)) + ... | stefanv/selective-inference | selection/algorithms/tests/test_forward_step.py | Python | bsd-3-clause | 8,482 |
package gui;
import java.io.IOException;
import java.io.OutputStream;
import javax.swing.JTextArea;
public class MyOut extends OutputStream{
private JTextArea texto;
public MyOut(JTextArea salida) {
this.texto = salida;
}
public void write(int b) throws IOException {
String ch = String.valueOf(... | MvegaR/proyecto | JavaDSI/src/gui/MyOut.java | Java | bsd-3-clause | 418 |
<!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_21) on Thu Dec 12 11:16:51 BRST 2013 -->
<title>Uses of Class jason.asSyntax.UnnamedVar (Jason - AgentSpeak Java Interpreter)</title>
<... | lsa-pucrs/jason-ros-releases | Jason-1.4.0a/doc/api/jason/asSyntax/class-use/UnnamedVar.html | HTML | bsd-3-clause | 3,987 |
#ifndef CONSTRAINT_CHECKER_H
#define CONSTRAINT_CHECKER_H
#include <Klampt/Modeling/Robot.h>
#include <Klampt/Modeling/Terrain.h>
#include <Klampt/Contact/Stance.h>
namespace Klampt {
/** @ingroup Planning
* @brief Checks for static constraints for a robot at a given stance.
*/
struct ConstraintChecker
{
static ... | krishauser/Klampt | Cpp/Planning/ConstraintChecker.h | C | bsd-3-clause | 1,604 |
/* Provide support for both ANSI and non-ANSI environments. */
/* Some ANSI environments are "broken" in the sense that __STDC__ cannot be
relied upon to have it's intended meaning. Therefore we must use our own
concoction: _HAVE_STDC. Always use _HAVE_STDC instead of __STDC__ in newlib
sources!
To get... | nacl-webkit/native_client | src/include/sdk/_ansi.h | C | bsd-3-clause | 4,010 |
{-# LANGUAGE OverloadedStrings, TemplateHaskell #-}
module Config where
import Control.Applicative
import Control.Exception
import Data.ByteString (ByteString)
import Data.Configurator as C
import HFlags
import System.Directory
import System.FilePath
import System.IO
import Paths_sproxy_web
defineFlag "c:config" ("... | alpmestan/spw | src/Config.hs | Haskell | bsd-3-clause | 1,432 |
/***************************************************************************
* Copyright (c) Johan Mabille, Sylvain Corlay, Wolf Vollprecht and *
* Martin Renou *
* Copyright (c) QuantStack *
* Copyri... | JohanMabille/xsimd | test/main.cpp | C++ | bsd-3-clause | 916 |
# proxy module
from __future__ import absolute_import
from codetools.blocks.analysis import *
| enthought/etsproxy | enthought/blocks/analysis.py | Python | bsd-3-clause | 94 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Framework.Logging;
namespace WorkMarketingNet.Logging.Core
{
public class Logger : ILogger
{
private readonly Microsoft.Framework.Logging.ILogger _logger;
public Logger(ILoggerFactory loggerfactory)... | JacekKosciesza/WorkMarketingNet | old/Logging/WorkMarketingNet.Logging.Core/Logger.cs | C# | bsd-3-clause | 2,763 |
# Math
This is a C++ template based math library include Vector and Matrix classes.
It is a header only version.
# Motivation
After reading the following http://www.reedbeta.com/blog/2013/12/28/on-vector-math-libraries/ I got
inspired to write my own math library trying to follow any idea found in the article.
# Op... | amecky/math | README.md | Markdown | bsd-3-clause | 3,117 |
from django.conf.urls.defaults import patterns, url
from snippets.base import views
urlpatterns = patterns('',
url(r'^$', views.index, name='base.index'),
url(r'^(?P<startpage_version>[^/]+)/(?P<name>[^/]+)/(?P<version>[^/]+)/'
'(?P<appbuildid>[^/]+)/(?P<build_target>[^/]+)/(?P<locale>[^/]+)/'
... | Osmose/snippets-service-prototype | snippets/base/urls.py | Python | bsd-3-clause | 836 |
var __extends = this.__extends || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
define(["require", "exports", '../Binding'], function (require, exports, Binding) {
var ArrayBindi... | SitePen/mayhem-bower | binding/bindings/ArrayBinding.js | JavaScript | bsd-3-clause | 3,879 |
import os
import numpy as np
import tables
import galry.pyplot as plt
from galry import Visual, process_coordinates, get_next_color, get_color
from qtools import inthread
MAXSIZE = 5000
CHANNEL_HEIGHT = .25
class MultiChannelVisual(Visual):
def initialize(self, x=None, y=None, color=None, point_size=1.0,
... | rossant/spiky | experimental/ephyview.py | Python | bsd-3-clause | 7,411 |
# encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Fare'
db.create_table('gtfs_fare', (
('id', self.gf('django.db.models.fields.AutoFiel... | rcoup/traveldash | traveldash/gtfs/migrations/0011_auto__add_fare__add_unique_fare_source_fare_id__add_unique_shape_sourc.py | Python | bsd-3-clause | 16,927 |
// Copyright 2015 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 CHROMEOS_SERVICES_SECURE_CHANNEL_DEVICE_TO_DEVICE_INITIATOR_HELPER_H_
#define CHROMEOS_SERVICES_SECURE_CHANNEL_DEVICE_TO_DEVICE_INITIATOR_HELPER_H... | nwjs/chromium.src | chromeos/services/secure_channel/device_to_device_initiator_helper.h | C | bsd-3-clause | 9,135 |
<?php
use common\modules\lead\models\forms\LeadSourceForm;
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model LeadSourceForm */
$this->title = Yii::t('lead', 'Create Lead Source');
$this->params['breadcrumbs'][] = ['label' => Yii::t('lead', 'Leads'), 'url' => ['/lead/lead/index']];
$this->params['bre... | edzima/VestraTele | common/modules/lead/views/source/create.php | PHP | bsd-3-clause | 590 |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkLookupTable.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... | SimVascular/VTK | Common/Core/vtkLookupTable.h | C | bsd-3-clause | 14,969 |
package org.jzy3d.chart.controllers;
public enum ControllerType {
ZOOM,
SHIFT,
ROTATE,
PAN
}
| freddy33/jzy3d | src/api/org/jzy3d/chart/controllers/ControllerType.java | Java | bsd-3-clause | 106 |
'use strict';
//var bhl_url = "http://words.bighugelabs.com/api/2/d1cbb0c53ddabe240d726e3fc76b1491/";
var bhl_url = "http://words.bighugelabs.com/api/2/0791f67e8212761406e388ef91856024/";
var sel_x = 0, sel_y = 0;
var word = '';
var help_paragraph_en = $('<p></p>').addClass('help-paragraph').text("Click the mouse or a... | GutiX/chrome4cloud | js/synonyms_en.js | JavaScript | bsd-3-clause | 5,480 |
# Licensed under a 3-clause BSD style license - see LICENSE.rst
# This file is the main file used when running tests with pytest directly,
# in particular if running e.g. ``pytest docs/``.
from importlib.util import find_spec
import os
import pkg_resources
import tempfile
try:
from pytest_astropy_header.display ... | MSeifert04/astropy | conftest.py | Python | bsd-3-clause | 1,526 |
define([
"./SwigTemplate",
"elenajs/node!path"
], function(SwigTemplate, path) {
var cache = {};
return {
module: 'swig',
load: function(id, require, load) {
var parts = id.split("!"),
url = path.resolve(require.toUrl(parts[0])),
r... | elenajs/elenajs-swig | lib/main.js | JavaScript | bsd-3-clause | 720 |
<?php
use yii\db\Schema;
use yii\db\Migration;
class m150526_100930_configs extends Migration
{
public function up()
{
$this->insert('{{%system_config}}',[
'key'=>'contact_phone',
'value'=>'+38 000 0000 000',
]);
$this->insert('{{%system_config}}',[
... | griga/m22-cms | yii-app/modules/admin/migrations/m150526_100930_configs.php | PHP | bsd-3-clause | 482 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.... | Alex0216/TFOL | Breakout/Breakout/GameObjects/Brique.cs | C# | bsd-3-clause | 1,537 |
#!/usr/bin/python
# Code is executed top-to-bottom on load.
# Variables are defined at the first assignment
a = 2 # defines `a`
b = 2
# 'print' operator, simple form: just prints out human-readable representation
# of the argument. NOTE: no \n!
print a + b
# Types in Python are dynamic!
v = 42 # `v` is an integer... | denfromufa/mipt-course | demos/python/2_variables_and_types.py | Python | bsd-3-clause | 694 |
<?php
/**
* @see https://github.com/zendframwork/zend-json for the canonical source repository
* @copyright Copyright (c) 2005-2018 Zend Technologies USA Inc. (http://www.zend.com)
* @license https://github.com/zendframwork/zend-json/blob/master/LICENSE.md New BSD License
*/
namespace ZendTest\Json\TestAss... | zendframework/zend-json | test/TestAsset/TestObject.php | PHP | bsd-3-clause | 703 |
"""
fabcloudkit
Functions for managing Nginx.
This module provides functions that check for installation, install, and manage an
installation of, Nginx.
/etc/init.d/nginx:
The "init-script" that allows Nginx to be run automatically at system startup.
The existence of this file is ... | waxkinetic/fabcloudkit | fabcloudkit/tool/nginx.py | Python | bsd-3-clause | 6,961 |
#include "Ht.h"
#include "PersAddLd.h"
#define BUSY_RETRY(b) { if (b) { HtRetry(); break; } }
void
CPersAddLd::PersAddLd()
{
if (PR_htValid) {
switch (PR_htInst) {
case ADD_LD1: {
BUSY_RETRY(ReadMemBusy());
// Memory read request
MemAddr_t memRdAddr = SR_op1Addr + (P_vecIdx << 3);
ReadMem_op1(memRdA... | TonyBrewer/OpenHT | tests/userio_vadd_1/src_pers/PersAddLd_src.cpp | C++ | bsd-3-clause | 1,018 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.