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 |
|---|---|---|---|---|---|
<?php
use yii\bootstrap\Html;
/**
* @var $this \yii\web\View
* @var $content string
*/
?>
<?php $this->beginContent('@app/views/layouts/base.php') ?>
<div class="wrap">
<?= $this->render('//shared/admin_panel') ?>
<?= $this->render('//shared/header') ?>
<a class="logo" href="/">
... | vetoni/toko | views/layouts/main.php | PHP | bsd-3-clause | 874 |
<h1 id="title_header"></h1>
<div id="calendar" class="{{ css_classes }}">
</div>
| arbitrahj/django-bootstrap-calendar | dj_calendar/templates/dj_calendar/partial/calendar.html | HTML | bsd-3-clause | 82 |
package com.github.paulp.optional
import scala.collection._
import mutable.HashSet
case class Options(
options: Map[String, String],
args: List[String],
rawArgs: List[String]
)
case class ArgInfo(short: Char, long: String, isSwitch: Boolean, help: String)
object Options
{
private val ShortOption = """-(\w)""... | ornicar/optional | src/main/scala/options.scala | Scala | bsd-3-clause | 2,389 |
/*-
* Copyright (c) 2001-2008, by Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2008-2012, by Randall Stewart. All rights reserved.
* Copyright (c) 2008-2012, by Michael Tuexen. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted pro... | jrobhoward/SCADAbase | sys/netinet/sctp_constants.h | C | bsd-3-clause | 35,554 |
{% load applicationcontent_tags i18n %}
{% include "base/widget/_base_begin.html" %}
<div id="{{ widget.fe_identifier }}" class="{{ widget.render_base_classes }}" {% if widget.enter_effect_style != 'disabled' %}data-aos="{{ widget.enter_effect_style }}"{% endif %}{% if widget.enter_effect_duration %}data-aos-duration... | django-leonardo/django-leonardo | leonardo/module/web/templates/base/widget/jumbotron.html | HTML | bsd-3-clause | 1,180 |
<?php
/*=========================================================================
MIDAS Server
Copyright (c) Kitware SAS. 20 rue de la Villette. All rights reserved.
69328 Lyon, FRANCE.
See Copyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILIT... | mgrauer/midas3score | core/models/base/AssetstoreModelBase.php | PHP | bsd-3-clause | 2,220 |
package eu.monnetproject.util;
import java.util.*;
/**
* Utility function to syntactically sugar properties for OSGi.
* This allows you to create a property map as follows
* <code>Props.prop("key1","value1")</code><br/>
* <code> .prop("key2","value2")</code>
*/
public final class Props {
public static Props... | monnetproject/coal | nlp.sim/src/main/java/eu/monnetproject/util/Props.java | Java | bsd-3-clause | 590 |
#!/usr/bin/env python
import sys
from os.path import *
import os
from pyflann import *
from copy import copy
from numpy import *
from numpy.random import *
import unittest
class Test_PyFLANN_nn(unittest.TestCase):
def setUp(self):
self.nn = FLANN(log_level="warning")
#################################... | piskvorky/flann | test/test_nn_autotune.py | Python | bsd-3-clause | 2,411 |
# -*- coding: utf-8 -*-
from collections import OrderedDict
import locale
from optparse import make_option
from verify.management.commands import VerifyBaseCommand
from verify.models import *
from verify.politici_models import *
from django.db.models import Q, Count
__author__ = 'guglielmo'
class Command(VerifyBase... | openpolis/op-verify | project/verify/management/commands/generi_in_istituzioni.py | Python | bsd-3-clause | 3,219 |
#ifndef __KIDS_CONFIG_H_
#define __KIDS_CONFIG_H_
#include <cstdio>
#include <cstring>
#include <string>
#include <vector>
#define NLIMIT_NORMAL 0
#define NLIMIT_NETWORKSTORE 1
#define NLIMIT_PUBSUB 2
struct LimitConfig {
int hard_limit_bytes;
int soft_limit_bytes;
int soft_limit_seconds;
};
struct StoreConfi... | akkakks/kids | src/conf.h | C | bsd-3-clause | 1,770 |
/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008-2016. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | PeterMitrano/allwpilib | wpilibj/src/athena/java/edu/wpi/first/wpilibj/Joystick.java | Java | bsd-3-clause | 12,635 |
package sdp
func (s Session) appendAttributes(attrs Attributes) Session {
for _, v := range attrs {
if v.Value == blank {
s = s.AddFlag(v.Key)
} else {
s = s.AddAttribute(v.Key, v.Value)
}
}
return s
}
// Append encodes message to Session and returns result.
//
// See RFC 4566 Section 5.
func (m *Messa... | ernado/sdp | encoder.go | GO | bsd-3-clause | 1,664 |
<?php
if(!class_exists('AbstractQueuedJob')) return;
/**
* A Job for running a external link check for published pages
*
*/
class CheckLinksJob extends AbstractQueuedJob implements QueuedJob {
public function getTitle() {
return _t('CheckLinksJob.TITLE', 'Checking for broken links');
}
public function getJ... | blpraveen/silverstripe-brokenlinks | code/jobs/CheckLinksJob.php | PHP | bsd-3-clause | 722 |
// Copyright 2010-2016, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of condit... | kbc-developers/Mozc | src/win32/base/omaha_util.h | C | bsd-3-clause | 3,042 |
#!/usr/bin/env python
from distutils.core import setup
setup(name='django-modeltranslation',
version='0.4.0-alpha1',
description='Translates Django models using a registration approach.',
long_description='The modeltranslation application can be used to '
'translate dynamic con... | google-code-export/django-modeltranslation | setup.py | Python | bsd-3-clause | 1,631 |
<div class="row">
<div class="col-xs-12">
<div class="box">
<?= \yii\grid\GridView::widget([
'dataProvider' => $dataProvider,
'columns' => [
'idadvert',
[
'label' => 'title',
... | lastfocus/lol-project | backend/views/advert/index.php | PHP | bsd-3-clause | 1,090 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>DHAIR2: PatientAssociate Class Reference</title>
<link href="../../doxygen.css" rel="stylesheet" type="text/css">
<link href="../../tabs.css" rel="stylesheet" type="text/... | uwcirg/cpro | app/docs/phpdocs/html/de/d63/classPatientAssociate.html | HTML | bsd-3-clause | 6,546 |
<!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=iso-8859-1" />
<title>Border Properties</title>
<style type="text/css">
<!--
.style1 {
... | visla/PDFReporter | Help/PDF Reports Template Editor_Border Properties.html | HTML | bsd-3-clause | 641 |
#include "stdfx.h"
//#include "tfxparam.h"
#include "trop.h"
//===================================================================
class PremultiplyFx : public TStandardRasterFx {
FX_PLUGIN_DECLARATION(PremultiplyFx)
TRasterFxPort m_input;
public:
PremultiplyFx() { addInputPort("Source", m_input); }
~Premul... | walkerka/opentoonz | toonz/sources/stdfx/premultiplyfx.cpp | C++ | bsd-3-clause | 1,082 |
/* $NetBSD: proc.h,v 1.8 1996/11/25 22:09:11 gwr Exp $ */
/*
* Copyright (c) 1991, 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.... | MarginC/kame | netbsd/sys/arch/sun3/include/proc.h | C | bsd-3-clause | 2,379 |
// 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.
#include "ash/components/phonehub/multidevice_setup_state_updater.h"
#include "ash/components/phonehub/pref_names.h"
#include "ash/components/phonehub/ut... | scheib/chromium | ash/components/phonehub/multidevice_setup_state_updater.cc | C++ | bsd-3-clause | 6,304 |
/*
* jQuery File Upload Plugin JS Example 8.9.1
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/* global $, window */
$(function () {
'use strict';
// Initializ... | vohoanglong07/yii_basic | web/js/fileupload/main.js | JavaScript | bsd-3-clause | 2,550 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/media/images/favicon.ico" />
<title>DataTables example</titl... | Khan/DataTables | examples/server_side/post.html | HTML | bsd-3-clause | 11,018 |
module Spree
module Admin
class AuthorsController < ResourceController
def index
params[:q] ||= {}
params[:q][:deleted_at_null] ||= "1"
@search = @authors.ransack(params[:q])
@authors = @search.result.page(params[:page]).per(Spree::Config[:admin_products_per_page])
@... | mehadesai/spree-multi-blogs | app/controllers/spree/admin/authors_controller.rb | Ruby | bsd-3-clause | 1,361 |
/*
* Copyright (c) 2006, 2006, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
/*
* ceil(x)
* Return x rounded toward -inf to integral value
* Method:
* Bit twiddling.
* Exception:
* Inexact flag raised if x not equal to ceil(x).
*/
#... | SnakeDoc/GuestVM | guestvm~guestvm/com.oracle.max.ve.native/fdlibm/s_ceil.c | C | bsd-3-clause | 1,481 |
.aui-base {
} | giros/alloy-ui | build/aui-base/assets/aui-base-core.css | CSS | bsd-3-clause | 13 |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | jrobhoward/SCADAbase | sys/cddl/dev/lockstat/lockstat.c | C | bsd-3-clause | 8,829 |
<?php namespace xp\runtime;
/**
* Wrap code passed in from the command line.
*
* @see https://wiki.php.net/rfc/group_use_declarations
* @test xp://net.xp_framework.unittest.runtime.CodeTest
*/
class Code {
private $fragment, $imports;
/**
* Creates a new code instance
*
* @param string $input
... | johannes85/core | src/main/php/xp/runtime/Code.class.php | PHP | bsd-3-clause | 2,041 |
#!/usr/bin/python
# Copyright (c) 2009, Purdue University
# 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 ... | stephenlienharrell/roster-dns-management | test/credentials_test.py | Python | bsd-3-clause | 4,275 |
#!/usr/bin/env python
import sys
import hyperdex.client
from hyperdex.client import LessEqual, GreaterEqual, Range, Regex, LengthEquals, LengthLessEqual, LengthGreaterEqual
c = hyperdex.client.Client(sys.argv[1], int(sys.argv[2]))
def to_objectset(xs):
return set([frozenset(x.items()) for x in xs])
assert c.put('kv... | hyc/HyperDex | test/python/DataTypeMapIntFloat.py | Python | bsd-3-clause | 585 |
<?php
namespace yiicms\components\core;
# Websun template parser, version 0.1.80
# http://webew.ru/articles/3609.webew
/*
0.1.80 - allowed_extensions option implemented
0.1.71 - replaced too new array declaration [] with array() - keeping PHP 5.3 compatibility
0.1.70 - added :^N and :^i
0.1.60 - __construct() a... | muratymt/yiicms | components/core/websun.php | PHP | bsd-3-clause | 37,601 |
/* Since the td elements are the ones that actually get colored, don't bother
with the row itself. */
.HighlightMe td {
background-color: hsl(36, 100%, 75%) !important;
}
/* Turn the transparent boxes white */
.HighlightMe .notstarted {
background-color: white;
}
| rsesek/cr-buildbot-highlight | src/highlight-me.css | CSS | bsd-3-clause | 271 |
/*!
* speedt
* Copyright(c) 2015 speedt <13837186852@qq.com>
* BSD 3 Licensed
*/
'use strict';
var utils = require('speedt-utils');
var Service = function(app){
var self = this;
// TODO
self.serverId = app.getServerId();
self.connCount = 0;
self.loginedCount = 0;
self.logined = {};
};
module.exports = Serv... | 3203317/st | server/lib/common/services/connectionService.js | JavaScript | bsd-3-clause | 1,457 |
//===----------------------------------------------------------------------===//
//
// 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/libcxx/test/std/strings/basic.string.hash/char_type_hash.fail.cpp | C++ | bsd-3-clause | 2,504 |
/*=========================================================================
Program: Advanced Normalization Tools
Module: $RCSfile: itkANTSImageRegistrationOptimizer.h,v $
Language: C++
Date: $Date: 2009/04/22 01:00:17 $
Version: $Revision: 1.44 $
Copyright (c) ConsortiumOfANTS. All rights reserved... | vfonov/mincANTS | ImageRegistration/itkANTSImageRegistrationOptimizer.h | C | bsd-3-clause | 74,622 |
#!/bin/bash
# AUTHOR: Léo Perrin <leoperrin@picarresursix.fr>
# Time-stamp: <2013-04-16 22:35:22 leo>
# Append a pdf to the end of another.
if (( $# < 1 ))
then
echo "Usage:"
echo " concat-pdf.sh 1.pdf 2.pdf"
echo "Creates a pdf called 1-2.pdf made of the concatenation of the"\
"content of 1.pd... | picarresursix/my-nautilus-actions | images/concat-pdf.sh | Shell | bsd-3-clause | 914 |
# intelengine
## Introduction
intelengine aims to be an information gathering and exploitation architecture,
it is based on the use of transforms, that convert one data type into
another. For instance, a simple transform would be obtaining a list of
domains from an IP address or a location history from a twitter nick... | jroimartin/intelengine | README.md | Markdown | bsd-3-clause | 5,004 |
module Watir
module RowContainer
# Returns a row in the table
# * index - the index of the row
def [](index)
assert_exists
TableRow.new(self, :ole_object, @o.rows.item(index))
end
def strings
assert_exists
rows_memo = []
@o.rows.each do |row|
c... | jarib/watir | watir/lib/watir/table.rb | Ruby | bsd-3-clause | 6,849 |
<?php
namespace PragmaRX\Health\Checkers;
use GuzzleHttp\Client as Guzzle;
use Illuminate\Support\Str;
use PragmaRX\Health\Support\LocallyProtected;
use PragmaRX\Health\Support\Result;
class ServerVars extends Base
{
protected $response;
protected $errors;
/**
* Check resource.
*
* @retur... | antonioribeiro/health | src/Checkers/ServerVars.php | PHP | bsd-3-clause | 2,717 |
<aside class="main-sidebar">
<section class="sidebar">
<?= dmstr\widgets\Menu::widget(
[
'options' => ['class' => 'sidebar-menu'],
'items' => [
['label' => 'Menu', 'options' => ['class' => 'header']],
['label' => 'Home', '... | mehdihasan/new_english | admin/layouts/left.php | PHP | bsd-3-clause | 1,482 |
// 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.
#include "chrome/browser/optimization_guide/optimization_guide_web_contents_observer.h"
#include "chrome/browser/optimization_guide/chrome_hints_manager.... | nwjs/chromium.src | chrome/browser/optimization_guide/optimization_guide_web_contents_observer.cc | C++ | bsd-3-clause | 9,522 |
// GLFW Engine.
// -----------------------------------------------------------------------------
// Copyright (C) 2011, ZEUS project (See authors)
//
// This program is open source and distributed under the New BSD License. See
// license for more detail.
// -------------------------------------------------------------... | papaboo/The-ZEUS-Project | extensions/GLFW/Core/GLFWEngine.cpp | C++ | bsd-3-clause | 1,427 |
/*
* Copyright (c) 2015, 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.
*
*/
#include <fo... | luxuan/proxygen | proxygen/lib/http/session/test/HTTPDownstreamSessionTest.cpp | C++ | bsd-3-clause | 67,684 |
#include "farversion.hpp"
#define PLUGIN_BUILD 37
#define PLUGIN_DESC L"File names case conversion for Far Manager"
#define PLUGIN_NAME L"FileCase"
#define PLUGIN_FILENAME L"FileCase.dll"
#define PLUGIN_AUTHOR FARCOMPANYNAME
#define PLUGIN_VERSION MAKEFARVERSION(FARMANAGERVERSION_MAJOR,FARMANAGERVERSION_MINOR,FARMANAG... | data-man/FarAS | plugins/filecase/version.hpp | C++ | bsd-3-clause | 364 |
// Copyright (c) 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/renderer_host/pepper/device_id_fetcher.h"
#include "base/file_util.h"
#include "base/prefs/pref_service.h"
#include "base/st... | mogoweb/chromium-crosswalk | chrome/browser/renderer_host/pepper/device_id_fetcher.cc | C++ | bsd-3-clause | 7,226 |
exports.dbname = "lrdata";
exports.dbuser = "lrdata";
exports.dbpassword = "test";
exports.lfmApiKey = 'c0db7c8bfb98655ab25aa2e959fdcc68';
exports.lfmApiSecret = 'aff4890d7cb9492bc72250abbeffc3e1';
exports.tagAgeBeforeRefresh = 14; // In days
exports.tagFetchFrequency = 1000; // In milliseconds
| alnorth/listening-room-add-ons-site | config.js | JavaScript | bsd-3-clause | 298 |
"""
Room Typeclasses for the TutorialWorld.
This defines special types of Rooms available in the tutorial. To keep
everything in one place we define them together with the custom
commands needed to control them. Those commands could also have been
in a separate module (e.g. if they could have been re-used elsewhere.)... | feend78/evennia | evennia/contrib/tutorial_world/rooms.py | Python | bsd-3-clause | 40,655 |
<?php
namespace asdfstudio\admin\helpers;
use Yii;
use asdfstudio\admin\Module;
use asdfstudio\admin\base\Admin;
use yii\db\ActiveRecord;
class AdminHelper
{
/**
* @param string $entity Admin class name or Id
* @return Admin|null
*/
public static function getEntity($entity)
{
/* ... | Tecnoready/yii2-admin-module | helpers/AdminHelper.php | PHP | bsd-3-clause | 1,294 |
#include <core/Runtime.h>
#include <stdlib.h>
#include <math.h>
int runtime_f32_mul(Stack stack)
{
Value* operand1 = NULL;
Value* operand2 = NULL;
pop_Value(stack, &operand2);
pop_Value(stack, &operand1);
if(isnan(operand1->value.f32) || isnan(operand2->value.f32)) {
push_Value(stack, new_... | LuisHsu/WasmVM | src/lib/core/runtime/f32_mul.c | C | bsd-3-clause | 1,224 |
package tools;
/*
* Extremely Compiler Collection
* Copyright (c) 2015-2020, Jianping Zeng.
*
* 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/LICE... | JianpingZeng/xcc | xcc/java/tools/SourceMgr.java | Java | bsd-3-clause | 8,511 |
package com.logicalpractice.collections;
import static org.junit.Assert.*;
import static org.hamcrest.Matchers.* ;
import org.junit.Test;
public class ExpressionTest {
@Test
public void script1() throws Exception {
Person billy = new Person("Billy", "Smith");
Expression<Person,String>... | tempredirect/lps-collections | src/test/java/com/logicalpractice/collections/ExpressionTest.java | Java | bsd-3-clause | 534 |
<?php
declare(strict_types=1);
namespace LizardsAndPumpkins\Context\Country;
use LizardsAndPumpkins\Context\ContextPartBuilder;
class IntegrationTestContextCountry implements ContextPartBuilder
{
private $defaultCountryCode = 'DE';
/**
* @param mixed[] $inputDataSet
* @return string
*/
... | lizards-and-pumpkins/catalog | tests/Integration/Util/Context/Country/IntegrationTestContextCountry.php | PHP | bsd-3-clause | 660 |
Backend
=======
stack build managemytime
to run the server, just invoke the executable (it's inside .stack-work) or
stack exec managemytime-exe
it ships with a builtin self-signed certificate for localhost
to run the integration tests, you'll want unencrypted http, which you can select
with the "test" argum... | berdario/managemytime | README.md | Markdown | bsd-3-clause | 1,091 |
const initialState = {
country: 'es',
language: 'es-ES'
}
const settings = (state = initialState, action) => {
switch (action.type) {
default:
return state
}
}
export default settings
| emoriarty/podcaster | src/reducers/settings.js | JavaScript | bsd-3-clause | 200 |
<?php
// This is the configuration for yiic console application.
// Any writable CConsoleApplication properties can be configured here.
return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'My Console Application',
// autoloading model and component classes
'import'=>array(
... | stiflerbox/yii1-segmentation | testdrive/protected/config/console.php | PHP | bsd-3-clause | 766 |
#based on SilkJS Makefile
ARCH := $(shell getconf LONG_BIT)
COREMQ= mqdb.o
OBJ=
HMQ = include/lru_cache/lru_cache.h include/lru_cache/scoped_mutex.h fstools.cc
CORECL= client.o
OBJ=
V8DIR= ./v8-read-only
V8LIB_64 := $(V8DIR)/out/x64.release/obj.target/tools/gyp
V8LIB_32 := $(V8DIR)/out/ia32.release/obj.target/tool... | PawelMarc/MQDB | Makefile | Makefile | bsd-3-clause | 1,468 |
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All right reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of th... | jcmadsen/chrono | src/demos/trackVehicle/subsys/trackSystem/TrackSystem.cpp | C++ | bsd-3-clause | 9,871 |
# eXist Book Example Code
[](https://travis-ci.org/eXist-book/book-code)
[](http://java.oracle.com)
[](http://www.opensour... | eXist-book/book-code | README.md | Markdown | bsd-3-clause | 2,391 |
<?php
// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');
// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'Platafo... | phghost/plataformaeducativalael-1 | protected/config/main.php | PHP | bsd-3-clause | 2,340 |
# $FreeBSD: releng/9.3/sys/modules/drm2/radeonkmsfw/R300_cp/Makefile 254885 2013-08-25 19:37:15Z dumbbell $
KMOD= radeonkmsfw_R300_cp
IMG= R300_cp
.include <bsd.kmod.mk>
| dcui/FreeBSD-9.3_kernel | sys/modules/drm2/radeonkmsfw/R300_cp/Makefile | Makefile | bsd-3-clause | 172 |
/**
Copyright (c) 2014, Nathan Carver
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
and the follo... | ncarver/TEETH | main.js | JavaScript | bsd-3-clause | 28,665 |
<?php
use app\core\helpers\Html;
use app\core\helpers\Url;
$this->title = '权限管理 在此页面添加名修改权限项注释';
$this->params['breadcrumbs'][] = $this->title;
?>
<style type="text/css">
.nopad{padding-left: 0}
.panel-default>.panel-heading{
padding: 10px 15px;
background-color: #f5f5f5;
border-color:... | cboy868/lion2 | modules/sys/views/admin/auth-permission/index.php | PHP | bsd-3-clause | 3,238 |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>System\Browser\assets\scripts\Flash.js 源码</title>
<link href="../../assets/styles/prettify.css" type="text/css" rel="stylesheet" />
<script src="../../assets/scripts/prettify.js" type="text/javascript"></script>
<style type="text/css">.highl... | jplusui/jplusui.github.com | resources/cookbooks/jplusui-full-api/data/source/System/Browser/assets/scripts/Flash.js.html | HTML | bsd-3-clause | 3,002 |
define(['App', 'jquery', 'underscore', 'backbone', 'hbs!template/subreddit-picker-item', 'view/basem-view'],
function(App, $, _, Backbone, SRPitemTmpl, BaseView) {
return BaseView.extend({
template: SRPitemTmpl,
events: {
'click .add': 'subscribe',
'cl... | BenjaminAdams/RedditJS | public/js/app/view/subreddit-picker-item-view.js | JavaScript | bsd-3-clause | 1,957 |
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\helpers;
use Yii;
use yii\base\InvalidParamException;
use yii\db\ActiveRecordInterface;
use yii\validators\StringValidator;
use yii\web\Request;
use yii\... | mcgrogan91/yii2 | framework/helpers/BaseHtml.php | PHP | bsd-3-clause | 103,758 |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>statsmodels.base.model.GenericLikelihoodModelResults.remove_data — statsmodels v0.10.0 documentation</title>
<link rel="stylesheet" href="../../_static/nature.css" type="text/css" />
<link rel="... | statsmodels/statsmodels.github.io | v0.10.0/dev/generated/statsmodels.base.model.GenericLikelihoodModelResults.remove_data.html | HTML | bsd-3-clause | 9,140 |
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% load staticfiles %}
<link rel="stylesheet" href="{% static 'css/foundation.css' %}" />
</head>
<body>
<div class="row">
<div class="panel">
<h2> You have successfully logged out </h2>
<p> You can <a ... | cptdanko/ptaApp | pta/templates/pta/logout.html | HTML | bsd-3-clause | 420 |
/*
Copyright (C) 2013-2014 by Kristina Simpson <sweet.kristas@gmail.com>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any pur... | sweetkristas/swiftly | src/kre/CanvasOGL.cpp | C++ | bsd-3-clause | 13,121 |
// Copyright 2016 Keybase Inc. All rights reserved.
// Use of this source code is governed by a BSD
// license that can be found in the LICENSE file.
package libkey
import (
"context"
"github.com/keybase/client/go/kbfs/idutil"
"github.com/keybase/client/go/kbfs/kbfscrypto"
"github.com/keybase/client/go/kbfs/kbfs... | keybase/client | go/kbfs/libkey/key_ops.go | GO | bsd-3-clause | 2,520 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DataExplorer.Domain.Columns;
using DataExplorer.Domain.Layouts;
namespace DataExplorer.Domain.Maps.SizeMaps
{
public class SizeMapFactory : ISizeMapFactory
{
public SizeMap Create(... | dataexplorer/dataexplorer | Domain/Maps/SizeMaps/SizeMapFactory.cs | C# | bsd-3-clause | 1,714 |
package com.btr.proxy.search.desktop.gnome;
import java.io.File;
import java.io.IOException;
import java.net.ProxySelector;
import java.util.Properties;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.w3c.dom... | brsanthu/proxy-vole | src/main/java/com/btr/proxy/search/desktop/gnome/GnomeProxySearchStrategy.java | Java | bsd-3-clause | 14,860 |
/*
* Copyright (C) 2014 The Async HBase Authors. All rights reserved.
* This file is part of Async HBase.
*
* 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... | manolama/asynchbase | test/BaseTestHBaseClient.java | Java | bsd-3-clause | 17,282 |
#include "gb_thread.hpp"
#include "z80.hpp"
#include "memory.hpp"
#include "rom.hpp"
#include "cart_rom_only.hpp"
#include "cart_mbc1.hpp"
#include "cart_mbc5.hpp"
#include "internal_ram.hpp"
#include "video.hpp"
#include "timer.hpp"
#include "joypad.hpp"
#include "sound.hpp"
#include "debug.hpp"
#include "assert.hpp"
... | kaini/gameboy | gameboy_lib/gb_thread.cpp | C++ | bsd-3-clause | 8,162 |
# Verified-BPF
Initial tinkering with a BPF metalanguage and implementation formally verified in Coq.
| mmcco/Verified-BPF | README.md | Markdown | bsd-3-clause | 103 |
//M*//////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... | apavlenko/opencv | modules/calib3d/src/stereobm.cpp | C++ | bsd-3-clause | 43,834 |
"use strict";
var mapnik = require('../');
var assert = require('assert');
var path = require('path');
mapnik.register_datasource(path.join(mapnik.settings.paths.input_plugins,'geojson.input'));
describe('mapnik.Geometry ', function() {
it('should throw with invalid usage', function() {
// geometry canno... | langateam/node-mapnik | test/geometry.test.js | JavaScript | bsd-3-clause | 2,955 |
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model frontend\models\ManagerTrain */
$this->title = $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Manager Trains', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="manager-tra... | development2016/kds-dev | frontend/views/manager-train/view.php | PHP | bsd-3-clause | 1,317 |
/*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2012-, Open Perception, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... | kalectro/pcl_groovy | registration/include/pcl/registration/impl/correspondence_estimation_backprojection.hpp | C++ | bsd-3-clause | 13,583 |
package xcordion.impl.command;
import junit.framework.TestCase;
import junit.framework.Assert;
import org.junit.Test;
import org.junit.Ignore;
public class ForEachCommandTest {
@Test
@Ignore
public void testPlaceholder() {
Assert.fail("WRITE ME");
}
}
| pobrelkey/xcordion | xcordion2/xcordion2-java/src/test/java/xcordion/impl/command/ForEachCommandTest.java | Java | bsd-3-clause | 282 |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkDataSetEdgeSubdivisionCriterion.h
Language: C++
Copyright 2003 Sandia Corporation.
Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
license for use of ... | hlzz/dotfiles | graphics/VTK-7.0.0/Filters/Core/vtkDataSetEdgeSubdivisionCriterion.h | C | bsd-3-clause | 7,567 |
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package asm
import (
"bufio"
"bytes"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"regexp"
"sort"
"strconv"
"strings"
"testing"
"cmd/asm/internal/lex"
... | Cofyc/go | src/cmd/asm/internal/asm/endtoend_test.go | GO | bsd-3-clause | 10,355 |
// 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/app/android/chrome_jni_onload.h"
#include "chrome/app/android/chrome_android_initializer.h"
#include "content/public/app/content_jni... | endlessm/chromium-browser | chrome/app/android/chrome_jni_onload.cc | C++ | bsd-3-clause | 490 |
package ch.epfl.lamp.slick.direct
import org.scalatest.FlatSpec
import slick.driver.H2Driver.api._
class ProblemSpec extends FlatSpec with TestHelper {
// TODO: WIP
}
| olafurpg/slick-direct | slick-direct/src/test/scala/ch/epfl/lamp/slick/direct/ProblemSpec.scala | Scala | bsd-3-clause | 172 |
/*
* ctm-cvb
*
* CollapsedBayesEngine
*/
#ifndef COLLAPSED_BAYES_ENGINE_H
#define COLLAPSED_BAYES_ENGINE_H
#include "InferenceEngine.h"
#include <gsl/gsl_vector.h>
#include <gsl/gsl_matrix.h>
namespace ctm
{
class CollapsedBayesEngine : public InferenceEngine
{
/***
* Model hyperpa... | arunchaganty/ctm-cvb | include/CollapsedBayesEngine.h | C | bsd-3-clause | 1,922 |
isPrime :: Integral a => a -> Bool
isPrime 2 = True
isPrime 3 = True
isPrime n =
all (\ x -> x /= 0)
[n `mod` x | x <- [2..(truncate $ sqrt (fromIntegral n) + 1)]]
goldbach :: (Integral t, Integral t1) => t1 -> (t, t1)
goldbach n = goldbach' 3 (n - 3)
where
goldbach' a b
| isPrime a &&... | m00nlight/99-problems | haskell/p-40.hs | Haskell | bsd-3-clause | 403 |
/**
* Copyright (c) 2013, Yahoo! Inc. All rights reserved.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms
*/
package visualoozie.api;
public class WorkflowNode {
public enum NodeType{
START
, KILL
, DECISION
, FORK
, JOIN
... | jaoki/visualoozie | src/main/java/visualoozie/api/WorkflowNode.java | Java | bsd-3-clause | 747 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__char_file_execl_43.cpp
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-43.tmpl.cpp
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: file Read input from a file
* GoodSou... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE78_OS_Command_Injection/s03/CWE78_OS_Command_Injection__char_file_execl_43.cpp | C++ | bsd-3-clause | 3,945 |
INSTALL_DIR=usr/local/lib
DEPS="coreutils" "sudo"
REBARPROFILE ?= default
include ../../config.mk
include ../../_build/${REBARPROFILE}/lib/fifo_utils/priv/pkgng.mk
.PHONY: prepare
prepare:
-rm -r $(STAGE_DIR)/$(INSTALL_DIR)/$(COMPONENT_INTERNAL)
-rm $(STAGE_DIR)/+*
-rm $(STAGE_DIR)/plist
mkdir -p $(STAGE_DIR)/... | project-fifo/fifo-zlogin | rel/pkgng/Makefile | Makefile | bsd-3-clause | 447 |
/*-
* Copyright (c) 1996-1999
* Kazutaka YOKOTA (yokota@zodiac.mech.utsunomiya-u.ac.jp)
* 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... | MarginC/kame | freebsd3/sys/dev/kbd/atkbdc.c | C | bsd-3-clause | 26,073 |
call this commnad
yii migrate --migrationPath=@yii/rbac/migrations
In case of yii2-app-base template, from which I have created my application, there is a config/console.php configuration file
where the authManager needs to be declared. It is not sufficient to have it in the config/web.php declared only.
'authMana... | MobiLifeCompany/DeliveryV2WebAdmin | db/20160722_auth_tables.sql | SQL | bsd-3-clause | 2,530 |
// +build l476xx
// Peripheral: CAN_TxMailBox_Periph Controller Area Network TxMailBox.
// Instances:
// Registers:
// 0x00 32 TIR CAN TX mailbox identifier register.
// 0x04 32 TDTR CAN mailbox data length control and time stamp register.
// 0x08 32 TDLR CAN mailbox data low register.
// 0x0C 32 TDHR CAN ma... | ziutek/emgo | egpath/src/stm32/hal/raw/can/l476xx--can_txmailbox.go | GO | bsd-3-clause | 444 |
"""
Vision-specific analysis functions.
$Id: featureresponses.py 7714 2008-01-24 16:42:21Z antolikjan $
"""
__version__='$Revision: 7714 $'
from math import fmod,floor,pi,sin,cos,sqrt
import numpy
from numpy.oldnumeric import Float
from numpy import zeros, array, size, empty, object_
#import scipy
try:
import p... | jesuscript/topo-mpi | topo/analysis/vision.py | Python | bsd-3-clause | 11,628 |
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model common\models\Offer */
$this->title = $model->id;
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Offers'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="offer-view">
... | Dench/resistor | backend/views/offer/view.php | PHP | bsd-3-clause | 1,025 |
/* $OpenBSD: isp_sbus.c,v 1.7 1999/03/25 22:58:37 mjacob Exp $ */
/* release_03_25_99 */
/*
* SBus specific probe and attach routines for Qlogic ISP SCSI adapters.
*
* Copyright (c) 1997 by Matthew Jacob
* NASA AMES Research Center
* All rights reserved.
*
* Redistribution and use in source and binary forms, wit... | MarginC/kame | openbsd/sys/arch/sparc/dev/isp_sbus.c | C | bsd-3-clause | 10,106 |
/*
* Copyright (C) 2001 Peter Kelly (pmk@post.com)
* Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de)
* Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
* Copyright (C) 2003, 2005, 2006, 2008 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
... | collinjackson/mojo | sky/engine/core/events/UIEvent.cpp | C++ | bsd-3-clause | 2,459 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_45) on Tue Apr 17 08:41:58 IDT 2018 -->
<title>DNXConstants.PRESERVATIONLEVEL</title>
<meta name="date" content="2018-04-17">
<link rel="styles... | ExLibrisGroup/Rosetta.dps-sdk-projects | 5.5.0/javadoc/com/exlibris/digitool/common/dnx/DNXConstants.PRESERVATIONLEVEL.html | HTML | bsd-3-clause | 10,934 |
import { takeLatest, call, put } from 'redux-saga/effects';
import { gql } from 'react-apollo';
import { push } from 'react-router-redux';
import jwtDecode from 'jwt-decode';
import { setJwtToken } from '../../utils/auth';
import { bootstrap } from '../../utils/sagas';
import { registerError, registerSuccess } from '.... | zmora-agh/zmora-ui | app/containers/Register/sagas.js | JavaScript | bsd-3-clause | 1,298 |
<!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="X-UA-Compatible" content="IE=Edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<t... | statsmodels/statsmodels.github.io | 0.9.0/generated/statsmodels.tsa.vector_ar.var_model.VARResults.pvalues.html | HTML | bsd-3-clause | 6,727 |
<!doctype html>
<html>
<head>
<title>LazyLoad Test</title>
<style type="text/css">
fieldset {
border: 1px solid #afafaf;
margin-bottom: 1em;
}
.log {
font: 10pt Consolas, Monaco, fixed;
width: 100%;
}
#css-status {
backgro... | smith/lazyload | test/index.html | HTML | bsd-3-clause | 4,907 |
$(function () {
var colors = Highcharts.getOptions().colors,
categories = ['已关闭', 'NEW', '已解决'],
name = 'Browser brands',
data = [{
y: 290,
color: colors[0],
drilldown: {
name: 'close bug version',
... | qualityTeam5/PO-demo | src/11.js | JavaScript | bsd-3-clause | 3,175 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.