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 |
|---|---|---|---|---|---|
<?php
namespace app\modules\usuarios\models;
use Yii;
use kartik\password\StrengthValidator;
/**
* This is the model class for table "usuarios".
*
* @property integer $id_usuario
* @property integer $fl_perfil
* @property integer $fl_persona
* @property string $username
* @property string $clave
* @property ... | delgado161/extranet | modules/usuarios/models/Usuarios.php | PHP | bsd-3-clause | 4,242 |
require 'spec_helper'
describe QuestionController do
describe "GET answer" do
it "assigns quantities" do
get :answer, :q => 'shipping 10 tonnes of stuff for 1000 kilometres'
assigns(:quantities).map{|x| x.to_s}.should eql ['10.0 t', '1000.0 km']
end
it "assigns terms" do
get :answ... | OpenAMEE/askamee | spec/controllers/question_controller_spec.rb | Ruby | bsd-3-clause | 2,459 |
// Copyright (c) 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "xwalk/sysapps/common/common_api_browsertest.h"
#include "base/path_service.h"
#include "base/strings/utf_string_conversions.h"
#include "conte... | shaochangbin/crosswalk | sysapps/common/common_api_browsertest.cc | C++ | bsd-3-clause | 6,721 |
package org.grassroot.android.models.responses;
import org.grassroot.android.models.Group;
import org.grassroot.android.models.helpers.RealmString;
import io.realm.RealmList;
import io.realm.RealmObject;
/**
* Created by luke on 2016/07/13.
*/
public class GroupsChangedResponse extends RealmObject {
private R... | grassrootza/grassroot-android | app/src/main/java/org/grassroot/android/models/responses/GroupsChangedResponse.java | Java | bsd-3-clause | 1,127 |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\Facultycourse */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="facultycourse-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'courses')->dropDownList($courses, ['mu... | tbcabagay/ficdatabase | modules/main/views/facultycourse/_form.php | PHP | bsd-3-clause | 526 |
__author__ = 'Bohdan Mushkevych'
from threading import Thread
from werkzeug.wrappers import Request
from werkzeug.wsgi import ClosingIterator
from werkzeug.middleware.shared_data import SharedDataMiddleware
from werkzeug.exceptions import HTTPException, NotFound
from werkzeug.serving import run_simple
from synergy.con... | mushkevych/scheduler | synergy/mx/synergy_mx.py | Python | bsd-3-clause | 5,162 |
// vim:filetype=java:ts=4
/*
Copyright (c) 2005, 2006, 2007
Conor McDermottroe. 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
... | conormcd/exemplar | src/com/mcdermottroe/exemplar/input/InputException.java | Java | bsd-3-clause | 3,051 |
package sensor;
import core.Sensor;
import edu.wpi.first.wpilibj.Joystick;
import event.events.ButtonEvent;
import event.events.XboxJoystickEvent;
import event.listeners.ButtonListener;
import event.listeners.XboxJoystickListener;
import java.util.Enumeration;
import java.util.Vector;
/**
* Wrapper class for an XBox... | grt192/grtframework | src/sensor/GRTXBoxJoystick.java | Java | bsd-3-clause | 6,230 |
<?php
namespace core\users\controllers\frontend;
use core\fileapi\actions\UploadAction as FileAPIUpload;
use core\users\models\frontend\Email;
use core\users\models\frontend\PasswordForm;
use core\users\models\Profile;
use core\users\Module;
use yii\filters\AccessControl;
use yii\web\Controller;
use yii\web\Response;... | MovieDogBall/Testwork | vendor/core/yii2-users-module/controllers/frontend/UserController.php | PHP | bsd-3-clause | 4,168 |
'use strict';
const assert = require('assert');
const { Observable } = require('rx-lite');
/**
*
* @param {Rx.Observable} observable
* @param {function} fn
* @returns {Rx.IPromise<void>}
*/
function checkError(observable, fn) {
const OK = {};
return observable
.catch(err => {
fn(err);
return... | groupon/shared-store | test/check-error.js | JavaScript | bsd-3-clause | 468 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__delete_long_realloc_12.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete.label.xml
Template File: sources-sinks-12.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory Management Rout... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE762_Mismatched_Memory_Management_Routines/s04/CWE762_Mismatched_Memory_Management_Routines__delete_long_realloc_12.cpp | C++ | bsd-3-clause | 4,494 |
/////////////////////////////////////////////////////////////////////////////
// Program: wxWidgets Widgets Sample
// Name: fontpicker.cpp
// Purpose: Shows wxFontPickerCtrl
// Author: Francesco Montorsi
// Created: 20/6/2006
// Copyright: (c) 2006 Francesco Montorsi
// Licence: wxWindows ... | ric2b/Vivaldi-browser | update_notifier/thirdparty/wxWidgets/samples/widgets/fontpicker.cpp | C++ | bsd-3-clause | 6,890 |
require 'mxx_ru/cpp'
MxxRu::Cpp::exe_target {
required_prj "ace/dll.rb"
target "_microbench.demand_queue_2_bench_1"
cpp_source "main.cpp"
}
| Free4Lila/s-objectizer | so_5/5.2.4-microbenchmarking/dev/microbenchmarks/so_5/demand_queue_2_bench_1/prj.rb | Ruby | bsd-3-clause | 147 |
#include "ClangInvoker.h"
#include "ThreadExecutor.h"
#include "windycode/Support.h"
#include <unistd.h>
#include "gtest/gtest.h"
namespace windycode {
namespace clang {
namespace {
class CharDeleter {
public:
void operator()(char *p) { free(p); }
};
static std::string getUnittestPath() {
static std::string Path;... | Chilledheart/windycode | src/ClangSupport/ClangInvoker_unittest.cc | C++ | bsd-3-clause | 8,378 |
<?php
namespace app\models;
use Yii;
class Measure extends \yii\db\ActiveRecord {
public static function tableName() {
return '{{%measure}}';
}
public function getColum($cnum, $date, $row, $col) {
$obj = self::find()->where([
'cnum' => $cnum,
'da... | realphp/yii2-admin | models/Measure.php | PHP | bsd-3-clause | 946 |
/*
*
* Copyright 2015, 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 condi... | chenbaihu/grpc | src/compiler/cpp_generator.cc | C++ | bsd-3-clause | 30,007 |
# -*- coding: utf-8 -*-
import os.path
import cherrypy
from ws4py.server.cherrypyserver import WebSocketPlugin, WebSocketTool
from ws4py.server.handler.threadedhandler import WebSocketHandler, EchoWebSocketHandler
class BroadcastWebSocketHandler(WebSocketHandler):
def received_message(self, m):
cherrypy.e... | progrium/WebSocket-for-Python | example/droid_sensor_cherrypy_server.py | Python | bsd-3-clause | 2,324 |
// File: curvature.cc
// Abstract: determine curvature of surface points on binary volume
//
// ref. Tracing Surfaces for Surfacing Traces
// Sander & Zucker
//
// ref. Surface Parameterization and Curvature Measurement
// of Arbitrary 3-D Objects: Five Pratical Methods
// Stokely and Wu, PAMI vol. 14, 1... | clwyatt/CTC | Reference/HongLi/src/capd/curvature.cc | C++ | bsd-3-clause | 12,147 |
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright (c) Vispy Development Team. All Rights Reserved.
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
# -----------------------------------------------------------------------------
... | Eric89GXL/vispy | examples/basics/scene/isocurve_for_trisurface.py | Python | bsd-3-clause | 1,317 |
<?php
namespace EmailMarketing\Domain\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
class Contato
{
private $id;
private $nome;
private $email;
private $tags;
public function __construct()
{
$this->tags = new ArrayCollection();
... | adaoex/email-marketing | src/EmailMarketing/Domain/Entity/Contato.php | PHP | bsd-3-clause | 1,436 |
<?php defined('SYSPATH') or die('No direct script access.');
abstract class Kohana_UI {
/**
* Return assets from Masher config. Utilize 3.0 helpers (http://kohanaframework.org/3.0/guide/api/HTML)
*
* // Call position or type specific assets
* UI::masher('footer', 'js', $page);
*
* @author Michael Dyer
... | listenrightmeow/KOHANA-UI | modules/ui/classes/kohana/ui.php | PHP | bsd-3-clause | 2,622 |
"""
Forest of trees-based ensemble methods.
Those methods include random forests and extremely randomized trees.
The module structure is the following:
- The ``BaseForest`` base class implements a common ``fit`` method for all
the estimators in the module. The ``fit`` method of the base ``Forest``
class calls th... | kevin-intel/scikit-learn | sklearn/ensemble/_forest.py | Python | bsd-3-clause | 102,940 |
<?php
namespace ZfcUser\Service;
use Interop\Container\ContainerInterface;
use Zend\Authentication\AuthenticationService;
use Zend\Form\Form;
use Zend\ServiceManager\ServiceManager;
use Zend\Crypt\Password\Bcrypt;
use Zend\Hydrator;
use ZfcUser\EventManager\EventProvider;
use ZfcUser\Mapper\UserInterface as UserMappe... | ZF-Commons/ZfcUser | src/ZfcUser/Service/User.php | PHP | bsd-3-clause | 7,992 |
package synergynet3.web.apps.numbernet.shared;
import java.io.Serializable;
import com.google.gwt.user.client.rpc.IsSerializable;
/**
* Represents an individual person.
*
* @author dcs0ah1
*/
public class Participant implements Serializable, IsSerializable
{
/** The Constant serialVersionUID. */
private stati... | synergynet/synergynet3.1 | synergynet3.1-parent/synergynet3-numbernet-core/src/main/java/synergynet3/web/apps/numbernet/shared/Participant.java | Java | bsd-3-clause | 896 |
/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... | NifTK/MITK | Modules/SurfaceInterpolation/mitkReduceContourSetFilter.cpp | C++ | bsd-3-clause | 16,276 |
/*
* 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 FRC867.Nano2014.commands;
/**
*
* @author Mike
*/
public class StartCompressor extends CommandBase {
public StartC... | FRC867/Nano2014 | src/FRC867/Nano2014/commands/StartCompressor.java | Java | bsd-3-clause | 983 |
#include <apps_sfdl_gen/ramput_fast_micro_v_inp_gen.h>
#include <apps_sfdl_hw/ramput_fast_micro_v_inp_gen_hw.h>
#include <apps_sfdl_gen/ramput_fast_micro_cons.h>
//This file will NOT be overwritten by the code generator, if it already
//exists. make clean will also not remove this file.
ramput_fast_microVerifierInpGe... | srinathtv/pepper | pepper/apps_sfdl_hw/ramput_fast_micro_v_inp_gen_hw.cpp | C++ | bsd-3-clause | 873 |
<?php
namespace Book\Entity;
use Doctrine\ORM\Mapping as ORM;
use Zend\Form\Annotation\Hydrator;
use Zend\Stdlib\Hydrator\ClassMethods;
use Zend\Stdlib\Hydrator as Hy;
/**
* Author
*
* @ORM\Table(name="author")
* @ORM\Entity
* @ORM\Entity(repositoryClass="Book\Repository\AuthorRepository")
*/
class Author
{
... | fxcosta/Zend2SkeletonForProof | module/Book/src/Book/Entity/Author.php | PHP | bsd-3-clause | 1,933 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_browser.h"
#include <vector>
#include "ash/launcher/launcher_model.h"
#inclu... | codenote/chromium-test | chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_browser.cc | C++ | bsd-3-clause | 47,718 |
package me.michidk.zsurvivalgames.utils;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.entity.Player;
import java.util.ArrayList;
import java.util.List;
/**
* Created with IntelliJ IDEA.
* User: ml
* Date: 03.09.13
* Time: 13:33
* To change this template use File | Settings | File Temp... | FuseMCNetwork/ZSurvivalGames | src/main/java/me/michidk/zsurvivalgames/utils/MathHelper.java | Java | bsd-3-clause | 1,791 |
#include <crtdbg.h>
#include "stdafx.h"
#include <et/core/tools.h>
#include <et/gui/fontgen.h>
using namespace et;
using namespace et::gui;
const int maxFontSize = 128;
const int maxFontOffset = 32;
void displayHelp(_TCHAR* argv[])
{
std::cout << "Using: " << std::endl
<< getFileName(argv[0]) << ... | sergeyreznik/et-engine | tools/FontGen/main.cpp | C++ | bsd-3-clause | 2,573 |
package ru.evgeniyosipov.facshop.store.ejb;
import ru.evgeniyosipov.facshop.entity.Administrator;
import ru.evgeniyosipov.facshop.entity.Groups;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import ru.evgeniyosipov.facsh... | evgeniyosipov/facshop | facshop-store/src/main/java/ru/evgeniyosipov/facshop/store/ejb/AdministratorBean.java | Java | bsd-3-clause | 2,075 |
/**
* Keydown
*
*/
module.exports = function() {
/*
* this swallows backspace keys on any non-input element.
* stops backspace -> back
*/
var rx = /INPUT|SELECT|TEXTAREA/i;
$('body').bind("keydown keypress", function(e) {
var key = e.keyCode || e.which;
if( key == 8) {... | vulcan-estudios/bsk | src/app/helpers/events/keypress/backspace.js | JavaScript | bsd-3-clause | 552 |
<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel app\modules\autoparts\models\PartOverSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Part Overs';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="part-over-index">
<... | kd-brinex/kd | modules/autoparts/views/over/index.php | PHP | bsd-3-clause | 1,271 |
from __future__ import unicode_literals
from celery_longterm_scheduler import get_scheduler
from celery_longterm_scheduler.conftest import CELERY
import mock
import pendulum
@CELERY.task
def echo(arg):
return arg
def test_should_store_all_arguments_needed_for_send_task(celery_worker):
# Cannot do this with ... | ZeitOnline/celery_longterm_scheduler | src/celery_longterm_scheduler/tests/test_task.py | Python | bsd-3-clause | 3,059 |
<?php
return [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=yii2basic',
'username' => 'root',
'password' => 'mariadb',
'charset' => 'utf8',
];
| hrydi/yii_ | config/db.php | PHP | bsd-3-clause | 189 |
/**
* Copyright (c) 2009-2015, rultor.com
* 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 conditio... | joansmith/rultor | src/main/java/com/rultor/agents/github/Question.java | Java | bsd-3-clause | 2,379 |
// Copyright 2009-2013 Matvei Stefarov <me@matvei.org>
using System;
using System.Collections.Generic;
using System.Linq;
namespace fCraft {
static class ChatCommands {
public static void Init() {
CommandManager.RegisterCommand( CdSay );
CommandManager.RegisterCommand( CdStaff );
... | 111WARLOCK111/Caznowl-Cube-Zombie | fCraft/Commands/ChatCommands.cs | C# | bsd-3-clause | 18,005 |
@javax.xml.bind.annotation.XmlSchema(namespace = "http://dto7.api.echosign", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
package echosign.api.clientv20.dto7;
| OBHITA/Consent2Share | ThirdParty/adobe-echosign-api/src/main/java/echosign/api/clientv20/dto7/package-info.java | Java | bsd-3-clause | 182 |
// Copyright 2014 - anova r&d bvba. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package freckle
import (
"fmt"
"net/http"
"net/http/httptest"
"testing"
"github.com/stretchr/testify/assert"
)
const domain = "mydomain"
const token =... | gertv/go-freckle | freckle_test.go | GO | bsd-3-clause | 1,325 |
package expo.modules.application;
import android.app.Activity;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.RemoteException;
import android.provider.Settings;
import android.util.Log;
import com.android.inst... | exponent/exponent | packages/expo-application/android/src/main/java/expo/modules/application/ApplicationModule.java | Java | bsd-3-clause | 6,171 |
#include <test/unit/math/test_ad.hpp>
TEST(MathMixMatFun, subRow) {
auto f = [](int i, int j, int k) {
return [=](const auto& y) { return stan::math::sub_row(y, i, j, k); };
};
Eigen::MatrixXd a(1, 1);
a << 3.2;
stan::test::expect_ad(f(1, 1, 0), a);
stan::test::expect_ad(f(1, 1, 1), a);
Eigen::Matri... | stan-dev/math | test/unit/math/mix/fun/sub_row_test.cpp | C++ | bsd-3-clause | 1,112 |
/* @flow */
'use strict';
import { document } from '../dom/dom';
export default function () : boolean {
return Boolean(
(document) &&
(typeof document.querySelector !== 'undefined')
);
}
| cinecove/defunctr | lib/checks/hasQuerySelectorCheck.js | JavaScript | bsd-3-clause | 201 |
<?php
namespace backend\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use backend\models\TaxonomyItems;
/**
* TaxonomyItemsSearch represents the model behind the search form about `app\models\TaxonomyItems`.
*/
class TaxonomyItemsSearch extends TaxonomyItems
{
/**
* @inheritdoc
... | babagay/razzd | backend/models/TaxonomyItemsSearch.php | PHP | bsd-3-clause | 1,352 |
# proxy module
from pyface.ui.wx.system_metrics import *
| enthought/etsproxy | enthought/pyface/ui/wx/system_metrics.py | Python | bsd-3-clause | 57 |
#ifndef __ISOLATION_MODULE_HPP__
#define __ISOLATION_MODULE_HPP__
#include <string>
namespace mesos { namespace internal { namespace slave {
class Framework;
class Slave;
class IsolationModule {
public:
static IsolationModule * create(const std::string &type);
static void destroy(IsolationModule *module);
... | benh/twesos | src/slave/isolation_module.hpp | C++ | bsd-3-clause | 992 |
<?php
namespace frontend\models\money;
use Yii;
/**
* This is the model class for table "fin_quota".
*
* @property integer $quota_id
* @property integer $user_id
* @property string $quota_amount
* @property string $quota_desc
* @property integer $quota_status
* @property integer $addtime
*/
class Quota exte... | wangpengzhen/web | frontend/models/money/Quota.php | PHP | bsd-3-clause | 1,084 |
/* Copyright (c) 1996-2004, Adaptec Corporation
* 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... | barak/raidutils | raideng/scsi_mgr.cpp | C++ | bsd-3-clause | 15,972 |
using System;
using System.Runtime.InteropServices;
namespace ch12_crossplatform_metasploit_payloads
{
class MainClass
{
[DllImport("kernel32")]
static extern IntPtr VirtualAlloc(IntPtr ptr, IntPtr size, IntPtr type, IntPtr mode);
[UnmanagedFunctionPointer(CallingConvention.Winapi)]
delegate void WindowsRu... | brandonprry/gray_hat_csharp_code | ch4_crossplatform_metasploit_payloads/Program.cs | C# | bsd-3-clause | 7,542 |
package org.hisp.dhis.period;
/*
* Copyright (c) 2004-2015, University of Oslo
* 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 copyrig... | kakada/dhis2 | dhis-api/src/main/java/org/hisp/dhis/period/FinancialPeriodType.java | Java | bsd-3-clause | 6,505 |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\ClinicaFoneSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="clinica-fone-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>... | baccaglini/labvet | views/clinica-fone/_search.php | PHP | bsd-3-clause | 822 |
<?
$_in_help_content_page=True;
include('../_header.php');
?>
<div >
<h1>About</h1>
<h2><a name="history"></a>History</h2>
<p>Paxtoncrafts Charitable Trust was formed in 2000 after a favourite uncle suffered a stroke, robbing him of his speech and the ability to read and write. His intellect was unimpaired... | straight-street/straight-street | Helpfiles/about.php | PHP | bsd-3-clause | 4,326 |
# -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-12 08:55
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import tagulous.models.fields
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]... | Candihub/pixel | apps/core/migrations/0002_auto_20171012_0855.py | Python | bsd-3-clause | 1,878 |
/*
* Copyright 2010 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkImageInfo.h"
#include "SkReadBuffer.h"
#include "SkWriteBuffer.h"
static bool profile_type_is_valid(SkColorProfileType profileType) {
return (profileType >= 0... | chenlian2015/skia_from_google | src/core/SkImageInfo.cpp | C++ | bsd-3-clause | 2,443 |
#!/usr/bin/env python3
#==============================================================================
# author : Pavel Polishchuk
# date : 14-08-2019
# version :
# python_version :
# copyright : Pavel Polishchuk 2019
# license :
#===========================================... | DrrDom/crem | crem/__init__.py | Python | bsd-3-clause | 379 |
<?php
return [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=yii2bank',
'username' => 'bankadmin',
'password' => '0Filfn6BcjvvgHy6',
'charset' => 'utf8',
];
| K4lx4s/yii2bank | config/db.php | PHP | bsd-3-clause | 202 |
# frozen_string_literal: true
class StringSplitTest < MrubycTestCase
#
# Regex not supprted.
#
description "Sring"
def string_case
assert_equal ["a","b","c"], "a,b,c".split(",")
assert_equal ["a","","b","c"], "a,,b,c".split(",")
assert_equal ["a","b:c","d"], "a::... | mrubyc/mrubyc | test/string_split_test.rb | Ruby | bsd-3-clause | 4,453 |
/***********************************************************************************************************************
**
** 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 | OOInteraction/src/string_offset_providers/Cell.cpp | C++ | bsd-3-clause | 2,984 |
# Copyright (c) 2015, National Documentation Centre (EKT, www.ekt.gr)
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# Redistributions of source code must retain the above copyright
# n... | EKT/pyrundeck | pyrundeck/exceptions.py | Python | bsd-3-clause | 1,781 |
require 'save_without_timestamping'
#Needed because Asset model may not exist any more
class Asset < ActiveRecord::Base
belongs_to :resource, :polymorphic => true
end
class TransferAssetDataToResources < ActiveRecord::Migration
def self.up
count = 0
Asset.all.each do |asset|
resource = asset.resou... | njall/wel-seek | db/migrate/archive/20100708073047_transfer_asset_data_to_resources.rb | Ruby | bsd-3-clause | 1,406 |
__author__ = 'Thomas Rueckstiess, ruecksti@in.tum.de'
from agent import Agent
from pybrain.datasets import ReinforcementDataSet
class HistoryAgent(Agent):
""" This agent stores actions, states, and rewards encountered during interaction with an environment
in a ReinforcementDataSet (which is a variation o... | daanwierstra/pybrain | pybrain/rl/agents/history.py | Python | bsd-3-clause | 2,202 |
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'test.sqlite',
}
}
INSTALLED_APPS = [
'nocaptcha_recaptcha',
]
MIDDLEWARE_CLASSES = [
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.... | ImaginaryLandscape/django-nocaptcha-recaptcha | test_settings.py | Python | bsd-3-clause | 636 |
from django.contrib import admin
import models
admin.site.register(models.Song)
admin.site.register(models.Station)
admin.site.register(models.Vote)
admin.site.register(models.StationPoll)
admin.site.register(models.StationVote) | f4nt/djpandora | djpandora/admin.py | Python | bsd-3-clause | 230 |
/**
*============================================================================
* Copyright The Ohio State University Research Foundation, The University of Chicago -
* Argonne National Laboratory, Emory University, SemanticBits LLC, and
* Ekagra Software Technologies Ltd.
*
* Distributed under the OSI-approved B... | NCIP/cagrid-core | caGrid/projects/data/src/java/utilities/gov/nih/nci/cagrid/data/utilities/validation/WSDLUtils.java | Java | bsd-3-clause | 4,989 |
package edu.wpi.first.wpilibj.templates.commands;
import edu.wpi.first.wpilibj.command.CommandGroup;
/**
*
* @author vignesh
*/
public class AutoCommandGroup extends CommandGroup {
public AutoCommandGroup() {
addParallel(new autoClawArmDownCommand());
addParallel(new CompressorCommand());... | viggy96/FRCteam3331_2014 | src/edu/wpi/first/wpilibj/templates/commands/AutoCommandGroup.java | Java | bsd-3-clause | 528 |
##
# Contains all logic for gathering and displaying backtraces.
class Backtrace
include Enumerable
attr_accessor :frames
attr_accessor :top_context
attr_accessor :first_color
attr_accessor :kernel_color
attr_accessor :eval_color
def initialize
@frames = []
@top_context = nil
@first_color =... | chad/rubinius | kernel/delta/backtrace.rb | Ruby | bsd-3-clause | 2,223 |
#mixin to automate testing of Rest services per controller test
require 'libxml'
require 'pp'
module RestTestCases
SCHEMA_FILE_PATH = File.join(Rails.root, 'public', '2010', 'xml', 'rest', 'schema-v1.xsd')
def test_index_rest_api_xml
#to make sure something in the database is created
object=rest_api_t... | aina1205/virtualliverf1 | test/rest_test_cases.rb | Ruby | bsd-3-clause | 1,407 |
// 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 "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "base/basictypes.h"
#include "base/files/scope... | patrickm/chromium.src | chrome/browser/password_manager/password_store_mac_unittest.cc | C++ | bsd-3-clause | 53,108 |
// 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 "ppapi/proxy/ppapi_command_buffer_proxy.h"
#include "base/numerics/safe_conversions.h"
#include "ppapi/proxy/ppapi_messages.h"
#include "ppa... | Workday/OpenFrame | ppapi/proxy/ppapi_command_buffer_proxy.cc | C++ | bsd-3-clause | 10,421 |
var cdb = require('cartodb.js');
var $ = require('jquery');
var DatasetItem = require('./dataset_item_view');
var Utils = require('cdb.Utils');
var UploadConfig = require('../../../../background_importer/upload_config');
var pluralizeString = require('../../../../view_helpers/pluralize_string');
/**
* Remote dataset... | raquel-ucl/cartodb | lib/assets/javascripts/cartodb/common/dialogs/create/listing/datasets/remote_dataset_item_view.js | JavaScript | bsd-3-clause | 3,614 |
<?php
namespace bug_010498195;
class True {
} | manuelpichler/staticReflection | src/test/resources/files/regression/010498195/True.php | PHP | bsd-3-clause | 50 |
package workflow
import (
"github.com/go-gorp/gorp"
"github.com/ovh/cds/sdk"
)
// InsertAudit insert a workflow audit
func InsertAudit(db gorp.SqlExecutor, a *sdk.AuditWorkflow) error {
audit := auditWorkflow(*a)
if err := db.Insert(&audit); err != nil {
return sdk.WrapError(err, "Unable to insert audit")
}
... | ovh/cds | engine/api/workflow/dao_audit.go | GO | bsd-3-clause | 1,322 |
require 'test_helper'
require 'v_object/i_tip/broker_tester'
module Tilia
module VObject
class BrokerProcessReplyTest < ITip::BrokerTester
def test_reply_no_original
itip = <<ICS
BEGIN:VCALENDAR
VERSION:2.0
METHOD:REPLY
BEGIN:VEVENT
SEQUENCE:2
UID:foobar
ATTENDEE;PARTSTAT=ACCEPTED:mailto:foo@exampl... | tilia/tilia-vobject | test/v_object/i_tip/broker_process_reply_test.rb | Ruby | bsd-3-clause | 7,897 |
from django.core.exceptions import ImproperlyConfigured
from django.core.urlresolvers import reverse
from django.db import transaction
from django.forms.models import inlineformset_factory, modelform_factory
from django.forms.widgets import HiddenInput
from django.shortcuts import get_object_or_404
from vanilla import ... | jAlpedrinha/DeclRY | declry/views.py | Python | bsd-3-clause | 9,652 |
package de.plushnikov.intellij.plugin.processor.handler.singular;
import com.intellij.psi.PsiAnnotation;
import com.intellij.psi.PsiClass;
import com.intellij.psi.PsiField;
import com.intellij.psi.PsiMethod;
import com.intellij.psi.PsiSubstitutor;
import com.intellij.psi.PsiType;
import com.intellij.psi.PsiVariable;
i... | AlexejK/lombok-intellij-plugin | src/main/java/de/plushnikov/intellij/plugin/processor/handler/singular/EmptyBuilderElementHandler.java | Java | bsd-3-clause | 1,477 |
using System;
using RedGate.Shared.SQL;
using RedGate.SQLCompare.Engine;
namespace SyncDBNantTasks {
public abstract class SyncDatabaseParmsBase {
private DBConnectionInformation connection;
public Database RegisteredDatabase { get; protected set; }
public DBConnectionInformation Connecti... | tcabanski/SouthSideDevToys | SyncDBNantTasks/SyncDatabaseParmsBase.cs | C# | bsd-3-clause | 637 |
using System.Data;
using Orchard.ContentManagement.MetaData;
using Orchard.Core.Contents.Extensions;
using Orchard.Data.Migration;
using Orchard.SEO.Services;
namespace Orchard.SEO
{
public class Migrations : DataMigrationImpl
{
public int Create()
{
SchemaBuilder.CreateTable("MetaR... | dmitry-urenev/extended-orchard-cms-v10.1 | src/Orchard.Web/Modules/Orchard.SEO/Migrations.cs | C# | bsd-3-clause | 1,459 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='FanUser... | vivyly/fancastic_17 | fancastic_17/fan/migrations/0001_initial.py | Python | bsd-3-clause | 909 |
/*
* Copyright (c) 2015, Institute of Computer Engineering, University of Lübeck
* 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... | iti-luebeck/SmachApp | app/src/main/java/de/uni_luebeck/iti/smachapp/app/TransitionProperty.java | Java | bsd-3-clause | 6,939 |
<?php
// autoload.php @generated by Composer
require_once __DIR__ . '/composer' . '/autoload_real.php';
return ComposerAutoloaderInit29a195fdeafbaf46892c28c394475c18::getLoader();
| sagargopale/zend-api-dev | vendor/autoload.php | PHP | bsd-3-clause | 183 |
<?php
namespace Database\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Purchases
*
* @ORM\Table(name="Purchases", indexes={@ORM\Index(name="fk_Purchases_Suppliers1_idx", columns={"supplier_id"})})
* @ORM\Entity
*/
class Purchases
{
/**
* @var integer
*
* @ORM\Column(name="purchase_id", type=... | devhood/erp-blpi | module/Database/src/Entity/Purchases.php | PHP | bsd-3-clause | 4,349 |
"""
=====================================================
Analysis for project 29
=====================================================
:Author: Nick Ilott
:Release: $Id$
:Date: |today|
:Tags: Python
"""
# load modules
from ruffus import *
import CGAT.Experiment as E
import logging as L
import CGAT.Database as Data... | CGATOxford/proj029 | Proj029Pipelines/pipeline_proj029.py | Python | bsd-3-clause | 12,528 |
/*
* Copyright (c) 2012, United States Government, as represented by the Secretary of Health and Human Services.
* 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 so... | alameluchidambaram/CONNECT | Product/Production/Services/HIEMCore/src/main/java/gov/hhs/fha/nhinc/notify/adapter/proxy/HiemNotifyAdapterWebServiceProxySecured.java | Java | bsd-3-clause | 6,017 |
#include <stdio.h>
#include <iostream>
#include <math.h>
using namespace std;
#define eps 1e-6
struct TPoint
{
double x, y;
};
struct TLine
{
TPoint p1, p2;
};
double max(double x, double y)
{
//±È½ÏÁ½¸öÊýµÄ´óС£¬·µ»Ø´óµÄÊý
if(x > y) return x;
else return y;
}
double ... | yubo/program | ds/计算几何模板/pku_1066_Treasure Hunt.cpp | C++ | bsd-3-clause | 3,649 |
<?php
/*
* recurrent homeworks
* */
include "utils.php";
session_start();
//si no hay sesion iniciada
if(!isset($_SESSION["usrUserName"]) )
{
//retornar al index (login)
header("location: ../../index.php");
exit();
}
//verificar que viene el campo activity del form
if(isset($_POST["cmb_activity"] ))
{
... | suiGn/orgboat | cod/php/add_rectsk.php | PHP | bsd-3-clause | 4,190 |
// sagebot.hpp - SageBot class definition
// sage - A TeamPlanets bot written for MachineZone job application
//
// Copyright (c) 2015 Vadim Litvinov <vadim_litvinov@fastmail.com>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided tha... | merlin86/TeamPlanets | bots/sage0/sagebot.hpp | C++ | bsd-3-clause | 3,431 |
var a00494 =
[
[ "calculate_nnz", "a00494.html#aca63ccfbd14352eade58fd2a2ec6b5e4", null ],
[ "nnz_internal", "a00494.html#a710993cf2d56652448517817943ad10f", null ],
[ "optimizeWildfire", "a00494.html#adc947c65dcf861c33a24399614c0791a", null ],
[ "optimizeWildfire", "a00494.html#a33509e7a55b46fe677e682d... | devbharat/gtsam | doc/html/a00494.js | JavaScript | bsd-3-clause | 523 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package edu.wpi.first.wpilibj.templates;
import edu.wpi.first.wpilibj.camera.AxisCamera;
import edu.wpi.first.wpilibj.image.BinaryImage;
import edu.wpi.first.wpilibj.image.ColorImage;
import edu.wpi.first.wpilibj.image.... | erhs-53-hackers/Robo2012 | src/edu/wpi/first/wpilibj/templates/ImageProcessing.java | Java | bsd-3-clause | 7,992 |
<?php
/**
* Service repository class file
*
* @package ShnfuCarver
* @subpackage Kernel\Service
* @copyright 2012 Shnfu
* @author Zhao Xianghu <xianghuzhao@gmail.com>
* @license http://carver.shnfu.com/license.txt New BSD License
*/
namespace ShnfuCarver\Kernel\Service;
/**
* Service repositor... | shnfu/shnfucarver | library/ShnfuCarver/Kernel/Service/ServiceRepository.php | PHP | bsd-3-clause | 1,772 |
// *****************************************************************************
//
// Copyright (c) 2015, Southwest Research Institute® (SwRI®)
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:... | evenator/mapviz | mapviz_plugins/src/laserscan_plugin.cpp | C++ | bsd-3-clause | 20,064 |
#!/usr/bin/env python
import sys
from hiclib import mapping, fragmentHiC
from mirnylib import h5dict, genome
import h5py
basedir = sys.argv[1]
genome_db = genome.Genome('%s/Data/Genome/mm9_fasta' % basedir, readChrms=['1'], chrmFileTemplate="%s.fa")
temp = h5py.File('%s/Data/Timing/hiclib_data_norm.hdf5' % basedi... | bxlab/HiFive_Paper | Scripts/Timing/hiclib_heatmap.py | Python | bsd-3-clause | 813 |
<div class="member_section">
<div class="login_home"> <a href="<?php echo Yii::app()->getHomeUrl(true); ?>"><img src="<?php echo Yii::app()->theme->baseUrl; ?>/images/login_home_img.png" alt="" /></a> </div>
<div class="login_arrow"> <a href="javascript:history.back()"><img src="<?php echo Yii::app()->theme->baseUr... | brahmajiayatas/getweiss | protected/views/profile/online.php | PHP | bsd-3-clause | 1,760 |
'use strict';
angular.module('app.controllers', [])
.controller('HomeController', ['$scope','CountryFactory', function($scope, CountryFactory){
$scope.paisSeleccionado = [];
CountryFactory.getAllCountries();
$scope.mostrarPaises = function(){
CountryFactory.getAllCountries();
var countries = CountryFactory.get... | UsuarioCristian/basic2015 | api/assets/js/controllers/controllers.js | JavaScript | bsd-3-clause | 450 |
/*
* Copyright (C) 2013 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 conditio... | primiano/blink-gitcs | Source/web/WebRuntimeFeatures.cpp | C++ | bsd-3-clause | 8,907 |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\models\issue */
$this->title = 'Update Issue: ' . ' ' . $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Issues', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]];... | fahmihdyt/propensi | views/Issue/update.php | PHP | bsd-3-clause | 550 |
<?php
use app\core\helpers\Url;
\app\assets\BootBoxAsset::register($this);
?>
<style type="text/css">
#option-box { font-size:12px;}
#option-box table tr{ margin-bottom:1em; border-bottom:1px dotted #e1e1e1; }
#option-box table td { vertical-align:middle; padding:2px 0px 3px 3px; }
#option-box table td sp... | cboy868/lion | modules/grave/views/admin/tomb/option.php | PHP | bsd-3-clause | 10,602 |
/*
* -----------------------------------------------------------------
* Programmer(s): Slaven Peles, Cody J. Balos @ LLNL
* -----------------------------------------------------------------
* SUNDIALS Copyright Start
* Copyright (c) 2002-2021, Lawrence Livermore National Security
* and Southern Methodist Univers... | stan-dev/math | lib/sundials_6.0.0/src/nvector/hip/VectorKernels.hip.hpp | C++ | bsd-3-clause | 7,402 |
/*
* DisplayObject by Grant Skinner. Dec 5, 2010
* Visit http://easeljs.com/ for documentation, updates and examples.
*
*
* Copyright (c) 2010 Grant Skinner
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal... | PaulWoow/HTML5JUEGOGRAFICACION | Mini Valle PaJou/libs/easeljs/display/DisplayObject.js | JavaScript | bsd-3-clause | 21,794 |
/*
* 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 org.ndexbio.cxio.core.interfaces;
import java.io.InputStream;
import org.ndexbio.model.cx.NiceCXNetwork;
import org.ndexbio.mo... | ndexbio/ndex-object-model | src/main/java/org/ndexbio/cxio/core/interfaces/INiceCXNetworkReader.java | Java | bsd-3-clause | 1,040 |
<?php
use yii\helpers\Html;
use yii\helpers\ArrayHelper;
$this->title = Yii::t('app', 'Create Role');
$this->params['breadcrumbs'][] = ['label'=>Yii::t('app', 'Admin'), 'url'=>['index']];
$this->params['breadcrumbs'][] = ['label'=>Yii::t('app', 'Roles'), 'url'=>['roles/index']];
$this->params['breadcrumbs'][] = $thi... | magdielikari/HidroLab-Manager | backend/modules/admin/views/roles/create.php | PHP | bsd-3-clause | 901 |