code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 4 991 | language stringclasses 9
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
<!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" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Kontrollb... | ithoq/kontrollbase | includes/graphs/host-graphs-14.php | PHP | bsd-3-clause | 669,494 |
Order.class_eval do
after_create :create_tax_charge!
alias original_generate_order_number generate_order_number
def generate_order_number
return original_generate_order_number unless Spree::Config[:running_order_numbers]
year = Time.now.year
if last = Order.last
num = last.number[5..9].to_... | ArjanL/spree-vat-fix | app/models/order_decorator.rb | Ruby | bsd-3-clause | 1,533 |
using Microsoft.Extensions.DependencyInjection;
using OrchardCore.Email.Workflows.Activities;
using OrchardCore.Email.Workflows.Drivers;
using OrchardCore.Modules;
using OrchardCore.Workflows.Helpers;
namespace OrchardCore.Email.Workflows
{
[RequireFeatures("OrchardCore.Workflows")]
public class Startup : Star... | xkproject/Orchard2 | src/OrchardCore.Modules/OrchardCore.Email/Workflows/Startup.cs | C# | bsd-3-clause | 509 |
#------------------------------------------------------------------------------
# Copyright (c) 2007, Riverbank Computing Limited
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD license.
# However, when used with the GPL version of PyQt the additional terms described in ... | geggo/pyface | pyface/ui/qt4/python_editor.py | Python | bsd-3-clause | 6,248 |
#include <iostream>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#include <errno.h>
using namespace std;
int main(int argc, char** argv)
{
if(argc <= 1)
{
cout << "Nothing passed in to argv." << endl;
... | cdixi001/rshell | src/dir_code.cpp | C++ | bsd-3-clause | 991 |
import argparse
import glob
import hashlib
import json
import os
IRMAS_INDEX_PATH = '../mirdata/indexes/irmas_index.json'
def md5(file_path):
"""Get md5 hash of a file.
Parameters
----------
file_path: str
File path.
Returns
-------
md5_hash: str
md5 hash of data in file_... | mir-dataset-loaders/mirdata | scripts/legacy/make_irmas_index.py | Python | bsd-3-clause | 6,590 |
/**************************************************************************************
* Copyright (c) 2013-2015, Finnish Social Science Data Archive/University of Tampere *
* *
* All rights reserved. ... | henrisu/metka | metka/src/main/webapp/resources/js/modules/uiLocalization.js | JavaScript | bsd-3-clause | 17,066 |
/*
* Copyright (c) 2005, 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:
*
* * Redistributions of source code must retain the above copyright
* ... | BayesianLogic/blog | src/main/java/blog/model/AtomicFormula.java | Java | bsd-3-clause | 5,685 |
class RenameCurrencyTable < ActiveRecord::Migration
def change
rename_table :currencies, :spree_currencies
end
end
| coupling/spree_multi_currency | db/migrate/20120605110806_rename_currency_table.rb | Ruby | bsd-3-clause | 123 |
import unittest
import time
import pprint
import logging
import scanner.logSetup as logSetup
import pyximport
print("Have Cython")
pyximport.install()
import dbPhashApi
class TestCompareDatabaseInterface(unittest.TestCase):
def __init__(self, *args, **kwargs):
logSetup.initLogging()
super().__init__(*args,... | fake-name/IntraArchiveDeduplicator | Tests/Test_db_BKTree_Compare.py | Python | bsd-3-clause | 1,765 |
require_relative '../../spec_helper'
describe '/api/assessments' do
before do
login_to_environment
end
context 'GET /api/assessments' do
it 'returns a list of assessments' do
assessments = Controls.assessments
assessments.each do |assessment|
expect(assessment).to be_kind_of(Control... | erran/controls.rb | spec/controls/client/assessments_spec.rb | Ruby | bsd-3-clause | 822 |
from numpy import array, zeros, ones, sqrt, ravel, mod, random, inner, conjugate
from scipy.sparse import csr_matrix, csc_matrix, coo_matrix, bmat, eye
from scipy import rand, mat, real, imag, linspace, hstack, vstack, exp, cos, sin, pi
from pyamg.util.linalg import norm
import pyamg
from scipy.optimize import fminboun... | pombreda/pyamg | Examples/ComplexSymmetric/one_D_helmholtz.py | Python | bsd-3-clause | 3,892 |
<?php
namespace backend\controllers;
use Yii;
use backend\models\Status;
use backend\models\search\StatusSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\filters\AccessControl;
use common\models\PermissionHelpers;
/**
* StatusController implements the CRUD actio... | AntoshaPro/intranet.portal | backend/controllers/StatusController.php | PHP | bsd-3-clause | 4,340 |
from bluebottle.projects.serializers import ProjectPreviewSerializer
from bluebottle.quotes.serializers import QuoteSerializer
from bluebottle.slides.serializers import SlideSerializer
from bluebottle.statistics.serializers import StatisticSerializer
from rest_framework import serializers
class HomePageSerializer(ser... | jfterpstra/bluebottle | bluebottle/homepage/serializers.py | Python | bsd-3-clause | 554 |
<?php
namespace Application\ViewModel;
use Application\Domain\Factory\Factory;
use Zend\View\Model\ViewModel;
class MemberDetailViewModel extends ViewModel
{
private $userId;
public function __construct($userId)
{
parent::__construct();
$this->userId = $userId;
$this->setViewDat... | SeiYukinariEc/ProcessManagement | module/Application/src/Application/ViewModel/MemberDetailViewModel.php | PHP | bsd-3-clause | 765 |
/*
* Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
* Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of s... | ric2b/Vivaldi-browser | chromium/third_party/blink/renderer/platform/graphics/image.cc | C++ | bsd-3-clause | 16,820 |
<?php
/**
* CoolMS2 Twitter Bootstrap Module (http://www.coolms.com/)
*
* @link http://github.com/coolms/twbs for the canonical source repository
* @copyright Copyright (c) 2006-2015 Altgraphic, ALC (http://www.altgraphic.com)
* @license http://www.coolms.com/license/new-bsd New BSD License
* @author Dm... | coolms/twbs | src/Form/View/Helper/FormText.php | PHP | bsd-3-clause | 1,532 |
//======================================================================================
// Copyright 5AM Solutions Inc, Yale University
//
// Distributed under the OSI-approved BSD 3-Clause License.
// See http://ncip.github.com/caarray/LICENSE.txt for details.
//=======================================================... | NCIP/caarray | software/caarray-common.jar/src/main/java/gov/nih/nci/caarray/magetab/TermSource.java | Java | bsd-3-clause | 3,123 |
// 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.
#include "sky/engine/tonic/dart_dependency_catcher.h"
#include "sky/engine/tonic/dart_library_loader.h"
namespace blink {
DartDependencyCatcher::DartDe... | chinmaygarde/mojo | sky/engine/tonic/dart_dependency_catcher.cc | C++ | bsd-3-clause | 656 |
// Copyright 2015 The Vanadium 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 profiles
import (
"fmt"
"os"
"runtime"
"sort"
"strconv"
"strings"
"time"
"v.io/x/lib/envvar"
)
// Target represents specification for t... | vanadium/go.jiri | profiles/target.go | GO | bsd-3-clause | 10,692 |
<?php
namespace Avaliacao\Controller;
use Avaliacao\Entity\Debito;
use Avaliacao\Entity\Veiculo;
use Avaliacao\Service\VeiculoService;
use Zend\Hydrator\ClassMethods;
use Zend\Mvc\Controller\AbstractRestfulController;
use Zend\View\Model\JsonModel;
/**
* Class ApiVeiculoController
* @package Avaliacao\Controller... | chacal88/zf3-intermediario | module/Avaliacao/src/Controller/ApiVeiculoController.php | PHP | bsd-3-clause | 1,217 |
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2011, Image Engine Design Inc. All rights reserved.
// Copyright (c) 2012, John Haddon. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided... | ImageEngine/gaffer | src/GafferArnoldPlugin/OutputDriver.cpp | C++ | bsd-3-clause | 11,163 |
# -*-coding:Utf-8 -*
# Copyright (c) 2010-2017 LE GOFF Vincent
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
... | vlegoff/tsunami | src/primaires/scripting/commandes/scripting/alerte_info.py | Python | bsd-3-clause | 3,352 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
def helloworld():
"""
Hello world routine !
"""
print("Hello world!")
| aboucaud/python-euclid2016 | euclid/euclid/hello.py | Python | bsd-3-clause | 135 |
#include "allocv/al_VideoCapture.hpp"
/*
From opencv2/highgui/highgui.hpp:
class CV_EXPORTS_W VideoCapture
{
public:
CV_WRAP VideoCapture();
CV_WRAP VideoCapture(const string& filename);
CV_WRAP VideoCapture(int device);
virtual ~VideoCapture();
CV_WRAP virtual bool open(const string& filename);
... | AlloSphere-Research-Group/AlloSystem | allocv/src/al_VideoCapture.cpp | C++ | bsd-3-clause | 7,259 |
package com.github.dandelion.gua.core.field;
public enum EventTrackingField implements AnalyticsField, AnalyticsCreateField {
@AnalyticsFieldControl(AnalyticsFieldControl.Policy.TEXT) eventCategory,
@AnalyticsFieldControl(AnalyticsFieldControl.Policy.TEXT) eventAction,
@AnalyticsFieldControl(AnalyticsField... | dandelion/dandelion-gua | gua-core/src/main/java/com/github/dandelion/gua/core/field/EventTrackingField.java | Java | bsd-3-clause | 432 |
/*L
* Copyright Georgetown University, Washington University.
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/cab2b/LICENSE.txt for details.
*/
package edu.wustl.cab2b.server.analyticalservice;
import java.io.InputStream;
import java.util.ArrayList;
import jav... | NCIP/cab2b | software/cab2b/src/java/server/edu/wustl/cab2b/server/analyticalservice/EntityToAnalyticalServiceMapper.java | Java | bsd-3-clause | 11,873 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.jtex.plot;
/**
*
* @author hios
*/
public interface ScatterCanvas {
public ScatterOptions getScatterOptions();
... | luttero/Maud | src/com/jtex/plot/ScatterCanvas.java | Java | bsd-3-clause | 380 |
<?php
/**
* osCommerce Website
*
* @copyright (c) 2019 osCommerce; https://www.oscommerce.com
* @license MIT; https://www.oscommerce.com/license/mit.txt
*/
namespace osCommerce\OM\Core\Site\Website\SQL\Partner;
use osCommerce\OM\Core\Registry;
class GetCategories
{
public static function execute(array $data... | haraldpdl/oscommerce_website | osCommerce/OM/Custom/Site/Website/SQL/Partner/GetCategories.php | PHP | bsd-3-clause | 2,889 |
#pragma once
#include <agency/detail/config.hpp>
#include <agency/detail/requires.hpp>
#include <agency/future.hpp>
#include <agency/execution/executor/executor_traits/executor_future.hpp>
#include <agency/execution/executor/executor_traits/is_executor.hpp>
#include <utility>
#include <type_traits>
namespace agency
... | egaburov/agency | agency/execution/executor/customization_points/make_ready_future.hpp | C++ | bsd-3-clause | 2,217 |
/*
Copyright (c) 2012-2014 The SSDB 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 "server.h"
#include "../util/strings.h"
#include "../util/file.h"
#include "../util/config.h"
#include "../util/log.h"
#include "../util/ip_filt... | iandc/mydb | src/net/server.cpp | C++ | bsd-3-clause | 11,280 |
// This program sends logging records directly to the server, rather
// than going through the client logging daemon.
#include "ace/SOCK_Connector.h"
#include "ace/Log_Record.h"
#include "ace/Log_Msg.h"
#include "ace/OS_NS_time.h"
#include "ace/OS_NS_stdlib.h"
#include "ace/OS_NS_unistd.h"
#include "ace/CDR_Stream.h"
... | wfnex/openbras | src/ace/ACE_wrappers/netsvcs/clients/Logger/direct_logging.cpp | C++ | bsd-3-clause | 2,682 |
/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... | Neverlord/stream-simulator | include/source.hpp | C++ | bsd-3-clause | 2,011 |
<?php
namespace app\controllers;
use app\models\User;
use Yii;
use yii\base\InvalidParamException;
use yii\web\BadRequestHttpException;
use yii\web\Controller;
use yii\filters\VerbFilter;
use yii\filters\AccessControl;
use app\models\LoginForm;
use app\models\PasswordResetRequestForm;
use app\models\ResetPasswordForm;... | TaciturnPerson/yii2arsenev | controllers/SiteController.php | PHP | bsd-3-clause | 6,091 |
var $ = require('jquery');
var CoreView = require('backbone/core-view');
var checkAndBuildOpts = require('builder/helpers/required-opts');
var REQUIRED_OPTS = [
'el'
];
module.exports = CoreView.extend({
events: {
'click .js-foo': '_fooHandler'
},
initialize: function (opts) {
checkAndBuildOpts(opts... | CartoDB/cartodb | lib/assets/javascripts/dashboard/helpers/scroll-tofixed-view.js | JavaScript | bsd-3-clause | 920 |
import os
import os.path as op
import pytest
import numpy as np
from numpy.testing import (assert_array_equal, assert_equal, assert_allclose,
assert_array_less, assert_almost_equal)
import itertools
import mne
from mne.datasets import testing
from mne.fixes import _get_img_fdata
from mne im... | bloyl/mne-python | mne/tests/test_transforms.py | Python | bsd-3-clause | 21,423 |
/**
* CArtAgO - DEIS, University of Bologna
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This ... | lsa-pucrs/jason-ros-releases | cartago-2.0.1/src/main/cartago/OpId.java | Java | bsd-3-clause | 2,026 |
package team.gif;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.buttons.Button;
import edu.wpi.first.wpilibj.buttons.DigitalIOButton;
import edu.wpi.first.wpilibj.buttons.JoystickButton;
import team.gif.commands.*;
public class OI {
public static final Joystick leftStick = new Joystick(... | Team2338/Fumper | src/team/gif/OI.java | Java | bsd-3-clause | 1,352 |
<?php
namespace app\modules\currency\models\ar;
/**
* This is the model class for table "currency".
*
* @property integer $id
* @property string $code
* @property string $short_name
* @property string $sign
*/
class Currency extends \app\modules\core\db\ActiveRecord
{
const EUR = 'EUR';
const RUB = 'RU... | roman444uk/adverts | modules/currency/models/ar/Currency.php | PHP | bsd-3-clause | 1,794 |
# -*- coding: utf-8 -*-
"""
.. _tut-set-eeg-ref:
Setting the EEG reference
=========================
This tutorial describes how to set or change the EEG reference in MNE-Python.
.. contents:: Page contents
:local:
:depth: 2
As usual we'll start by importing the modules we need, loading some
:ref:`example dat... | mne-tools/mne-tools.github.io | 0.19/_downloads/0162af27293b0c7e7c35ef85531280ea/plot_55_setting_eeg_reference.py | Python | bsd-3-clause | 10,338 |
///////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2013, PAL Robotics S.L.
//
// 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 reta... | ros-controls/ros_control | hardware_interface/test/posvelacc_command_interface_test.cpp | C++ | bsd-3-clause | 6,470 |
/*
* Copyright Ekagra and SemanticBits, LLC
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/clinical-connector/LICENSE.txt for details.
*/
package gov.nih.nci.cdmsconnector.c3d.service.globus.resource;
import gov.nih.nci.cdmsconnector.c3d.common.C3DGridServiceConstants;
... | NCIP/clinical-connector | software/C3DGridService/src/gov/nih/nci/cdmsconnector/c3d/service/globus/resource/C3DGridServiceResourceHome.java | Java | bsd-3-clause | 3,275 |
// Copyright 2012 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.
(function() {
"use strict";
var runFunc;
var count = 0;
function getId() {
return "code" + (count++);
}
function text(node) {
var s = "";... | bketelsen/gablog | static/play/play.js | JavaScript | bsd-3-clause | 3,040 |
<?php
namespace tests\models;
use yii\db\ActiveRecord;
/**
* Post
*
* @property integer $id
* @property string $title
* @property string $body
*
* @property string $tagNames
* @property array $imageNames
*
* @property Tag[] $tags
* @property Image[] $images
*/
class Post extends ActiveRecord
{
/**
... | LAV45/yii2-target-behavior | tests/models/Post.php | PHP | bsd-3-clause | 1,120 |
/*******************************************************************************
* Caleydo - Visualization for Molecular Biology - http://caleydo.org
* Copyright (c) The Caleydo Team. All rights reserved.
* Licensed under the new BSD license, available at http://caleydo.org/license
*********************************... | Caleydo/org.caleydo.view.contour | src/main/java/org/caleydo/view/relationshipexplorer/ui/collection/TabularDataCollection.java | Java | bsd-3-clause | 4,540 |
<?php
namespace backend\models\base;
use Yii;
/**
* This is the base model class for table "auth_item_child".
*
* @property string $parent
* @property string $child
*
* @property \backend\models\AuthItem $parent0
* @property \backend\models\AuthItem $child0
*/
class AuthItemChild extends \yii\db\Ac... | derilawlinda/panbum | backend/models/base/AuthItemChild.php | PHP | bsd-3-clause | 1,569 |
var PgQuery = require('bindings')('pg-query');
module.exports = {
parse: function(query) {
var result = PgQuery.parse(query);
if (result.query) {
result.query = JSON.parse(result.query);
}
if (result.error) {
var err = new Error(result.error.message);
err.fileName = result.error.... | zhm/node-pg-query-native | index.js | JavaScript | bsd-3-clause | 588 |
// Replacement for jquery.ui.accordion to avoid dealing with
// jquery.ui theming.
//
// Usage: $('#container').squeezebox(options);
// where the direct child elements of '#container' are
// sequential pairs of header/panel elements, and options
// is an optional object with any of the following properties:
//
// ac... | stephenmcd/jquery-squeezebox | jquery.squeezebox.js | JavaScript | bsd-3-clause | 1,697 |
<?php
namespace console\controllers;
use Yii;
use yii\console\Controller;
class RbacController extends Controller
{
public function actionInit()
{
$auth = Yii::$app->authManager;
////////////////////////////////////////////////////////////////////////////
$org = $auth->createRole('org');
... | xiandalisay/yii2advanced | console/controllers/RbacController.php | PHP | bsd-3-clause | 2,201 |
import base64
import json
from twisted.internet.defer import inlineCallbacks, DeferredQueue, returnValue
from twisted.web.http_headers import Headers
from twisted.web import http
from twisted.web.server import NOT_DONE_YET
from vumi.config import ConfigContext
from vumi.message import TransportUserMessage, TransportE... | praekelt/vumi-go | go/apps/http_api/tests/test_vumi_app.py | Python | bsd-3-clause | 31,622 |
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 |
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 |
#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) 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 |
<?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 |
/*
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 |
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 |
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 |
/* 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 |
<!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 |
# -*- 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 |
#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 |
/*
* 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 |
// 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 |
<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 |
/*
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 |
/* 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 |
# 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 |
/*
* 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 |
# 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 |
<?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 |