repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
peterayeni/rapidsms | rapidsms/contrib/locations/app.py | 1529 | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
import re
import logging
from rapidsms.apps.base import AppBase
from .models import Location
logger = logging.getLogger(__name__)
class App(AppBase):
PATTERN = re.compile(r"^(.+)\b(?:at)\b(.+?)$")
def __find_location(self, text):
try:
... | bsd-3-clause |
basnijholt/holoviews | holoviews/tests/plotting/matplotlib/testcallbacks.py | 1284 | from collections import deque
import numpy as np
from holoviews.core import DynamicMap
from holoviews.element import Points, Curve
from holoviews.streams import PointerXY, PointerX
from .testplot import TestMPLPlot, mpl_renderer
class TestCallbackPlot(TestMPLPlot):
def test_dynamic_streams_refresh(self):
... | bsd-3-clause |
dodkoC/thesis-disassembler | testData/expectedResults/EmptyEnum.java | 652 | public final enum EmptyEnum extends java.lang.Enum<EmptyEnum> {
public final static enum EmptyEnum A;
public final static enum EmptyEnum B;
private final static /* synthetic */ EmptyEnum[] $VALUES;
public static EmptyEnum[] values() {
return EmptyEnum.$VALUES.clone();
}
public static EmptyEnum valueOf(java.l... | bsd-3-clause |
NCIP/cagrid | cagrid/Software/core/caGrid/projects/websso-client-acegi/src/java/org/cagrid/websso/client/acegi/logout/SingleSignoutCallbackFilter.java | 3043 | package org.cagrid.websso.client.acegi.logout;
import java.io.BufferedReader;
import java.io.IOException;
import java.net.URLDecoder;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.util.Assert;
... | bsd-3-clause |
edrlab/r2-streamer-js-dist | dist/es5/src/http/server-lcp-lsd-show.js | 15229 | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.serverLCPLSD_show = exports.serverLCPLSD_show_PATH = void 0;
var tslib_1 = require("tslib");
var css2json = require("css2json");
var debug_ = require("debug");
var DotProp = require("dot-prop");
var express = require("express");
var js... | bsd-3-clause |
mile-janev/vital-web | views/call/update.php | 527 | <?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\models\Call */
$this->title = 'Update Call: ' . ' ' . $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Calls', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]];
$t... | bsd-3-clause |
NCIP/catissue-simple-query | src/test/java/edu/wustl/common/querysuite/QueryMetadataUtil.java | 13095 | /*L
* Copyright Washington University in St. Louis
* Copyright SemanticBits
* Copyright Persistent Systems
* Copyright Krishagni
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/catissue-simple-query/LICENSE.txt for details.
*/
package edu.wustl.common.q... | bsd-3-clause |
juliangut/body-parser | tests/bootstrap.php | 299 | <?php
/*
* body-parser (https://github.com/juliangut/body-parser).
* PSR7 body parser middleware.
*
* @license BSD-3-Clause
* @link https://github.com/juliangut/body-parser
* @author Julián Gutiérrez <juliangut@gmail.com>
*/
session_start();
require __DIR__ . '/../vendor/autoload.php';
| bsd-3-clause |
xuhuan/generator-zfis | app/index.js | 2686 | 'use strict';
var util = require('util');
var path = require('path');
var yeoman = require('yeoman-generator');
var yosay = require('yosay');
var ZfisGenerator = yeoman.generators.Base.extend({
initializing: function() {
this.pkg = require('../package.json');
},
prompting: function() {
var done = this.async();... | bsd-3-clause |
uwcirg/cpro | app/webroot/js/cpro.js | 7108 | /**
*
* Copyright 2013 University of Washington, School of Nursing.
* http://opensource.org/licenses/BSD-3-Clause
*
* Main file for storing jquery functions that are called throughout the
* codebase.
*
*/
// AJAX to change language for currently logged in user or before login that
// ... | bsd-3-clause |
genail/gear | src/gfx/race/ui/RaceUITimeTrail.cpp | 4322 | /*
* Copyright (c) 2009-2010, Piotr Korzuszek
* 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 lis... | bsd-3-clause |
mogoweb/chromium-crosswalk | chrome/browser/chromeos/extensions/file_manager/private_api_util.cc | 7545 | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/extensions/file_manager/private_api_util.h"
#include "base/files/file_path.h"
#include "chrome/browser/chromeos/drive/d... | bsd-3-clause |
fu-tao/meelier_c2.0 | common/libs/Pay.php | 2334 | <?php
namespace Apps\Common\Libs;
use Apps\Common\Models\UserOrder;
use Apps\Common\Models\UserOrderGoods;
use PhalconPlus\Common\Component;
use PhalconPlus\Common\Util;
use WeiXin\Pay as WeiXinPay;
class Pay extends Component
{
public function weiXinUnifiedOrderByApp($orderId=0, $orderLongId=0)
{
$... | bsd-3-clause |
DemocracyClub/UK-Polling-Stations | polling_stations/apps/data_importers/tests/stubs/__init__.py | 1386 | from django.contrib.gis.geos import Point, GEOSGeometry
from data_importers.base_importers import BaseCsvStationsKmlDistrictsImporter
from data_importers.management.commands import BaseCsvStationsJsonDistrictsImporter
class BaseStubCsvStationsJsonDistrictsImporter(BaseCsvStationsJsonDistrictsImporter):
council_... | bsd-3-clause |
lxp/sulong | projects/com.oracle.truffle.llvm.parser.base/src/com/oracle/truffle/llvm/parser/base/model/metadata/MetadataCompositeType.java | 5604 | /*
* Copyright (c) 2016, Oracle and/or its affiliates.
*
* 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 ... | bsd-3-clause |
QuickBlox/javascript-media-recorder | src/qbAudioRecorderWorker.js | 3503 | importScripts('https://cdn.rawgit.com/zhuker/lamejs/c318d57d/lame.min.js');
var MP3encoder = new lamejs.Mp3Encoder(1, 48000, 256);
function QBAudioRecorderWorker() {
var self = this;
self.bufferChunks = [];
self.bufferSize = 0;
self.sampleRate = 0;
self.mimeType = '';
onmessage = function(ev... | bsd-3-clause |
tingelst/pyversor | src/c3d/vsr_cga3D_op.cpp | 25932 | // Versor Geometric Algebra Library
// Copyright (c) 2017 Lars Tingelstad
// Copyright (c) 2010 Pablo Colapinto
// 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 c... | bsd-3-clause |
VampireMe/admin-9939-com | librarys/controllers/wapjb/WapController.php | 962 | <?php
namespace librarys\controllers\wapjb;
use librarys\controllers\BaseController;
/**
* Site controller
*/
class WapController extends BaseController
{
public function init(){
$this->fillSuffix();
parent::init();
$this->initVariables();
}
public function initVariables(){
... | bsd-3-clause |
stevschmid/nsearch | libnsearch/test/Database/GlobalSearchTest.cpp | 5356 | #include <catch.hpp>
#include <nsearch/Alphabet/DNA.h>
#include <nsearch/Database.h>
#include <nsearch/Database/GlobalSearch.h>
#include <nsearch/FASTA/Reader.h>
#include <sstream>
#include <string>
#include <vector>
const char DatabaseContents[] = R"(
>RF00807;mir-314;AFFE01007792.1/82767-82854 42026:Drosophila b... | bsd-3-clause |
ric2b/Vivaldi-browser | chromium/media/capture/video/video_frame_receiver_on_task_runner.cc | 2728 | // Copyright 2017 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/capture/video/video_frame_receiver_on_task_runner.h"
#include <utility>
#include "base/bind.h"
#include "base/single_thread_task_runner.... | bsd-3-clause |
SergeySlonimsky/zebra_truck | controllers/SiteController.php | 1189 | <?php
namespace app\controllers;
use app\models\Order;
use app\modules\dashboard\models\User;
use Yii;
use yii\web\Controller;
class SiteController extends Controller
{
public function actionIndex()
{
$order = new Order();
if ($order->load(Yii::$app->request->post())) {
if ($order... | bsd-3-clause |
ric2b/Vivaldi-browser | chromium/chrome/browser/ui/webui/settings/chromeos/search/per_session_settings_user_action_tracker.cc | 4811 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/webui/settings/chromeos/search/per_session_settings_user_action_tracker.h"
#include "base/metrics/histogram_functions.h"
nam... | bsd-3-clause |
rbjarnason/active-citizen | exporters/dataset_tools.js | 1898 | var removeDiacritics = require('diacritics').remove;
var shuffleArray = function (array) {
for (var i = array.length - 1; i > 0; i--) {
var j = Math.floor(Math.random() * (i + 1));
var temp = array[i];
array[i] = array[j];
array[j] = temp;
}
return array;
};
var clean = function (string) {
str... | bsd-3-clause |
CartoDB/camshaft | lib/filter/grouped-rank.js | 1017 | 'use strict';
var dot = require('dot');
dot.templateSettings.strip = false;
var Range = require('./range');
var groupRankQueryTemplate = dot.template([
'SELECT *,',
' rank() OVER (',
' PARTITION BY {{=it._groupColumn}}',
' ORDER BY {{=it._orderColumn}} {{=it._orderDirection}}',
' ) AS ran... | bsd-3-clause |
ShareStuffHere/Adventure-Town | Town/Building.java | 46 | package town;
public interface Building {
}
| bsd-3-clause |
markfinal/BuildAMation | tests/ProceduralHeaderTest1/bam/Scripts/ProceduralHeaderTest1.cs | 2841 | #region License
// Copyright (c) 2010-2019, Mark Final
// 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
// ... | bsd-3-clause |
votinginfoproject/Metis | public/assets/js/app/controllers/feedElectoralDistrictController.js | 2866 | 'use strict';
/*
* Feed Electoral District Controller
*
*/
function FeedElectoralDistrictCtrl($scope, $rootScope, $feedDataPaths, $feedsService, $routeParams, $appProperties, $location, $filter, ngTableParams) {
// get the vipfeed param from the route
var feedid = $scope.vipfeed = $routeParams.vipfeed;
if ($... | bsd-3-clause |
ZoltanTheHun/SkyHussars | src/main/java/skyhussars/engine/plane/PlaneGeometry.java | 5239 | /*
* Copyright (c) 2016, ZoltanTheHun
* 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... | bsd-3-clause |
0atman/flask-admin | flask_admin/model/filters.py | 3836 | from flask.ext.admin.babel import lazy_gettext
class BaseFilter(object):
"""
Base filter class.
"""
def __init__(self, name, options=None, data_type=None):
"""
Constructor.
:param name:
Displayed name
:param options:
List... | bsd-3-clause |
logvinoleg89/auxyn.dev | console/migrations/m150701_115912_fix_report_table.php | 1748 | <?php
use yii\db\Schema;
use yii\db\Migration;
class m150701_115912_fix_report_table extends Migration
{
public function up()
{
$tableOptions = null;
if ($this->db->driverName === 'mysql') {
// http://stackoverflow.com/questions/766809/whats-the-difference-between-utf8-general-ci-a... | bsd-3-clause |
versionone/VersionOne.Integration.TFS.Core | VersionOne.Integration.Tfs.Core/VersionOne.Integration.Tfs.Core.DataLayer/VersionOneQuery.cs | 2917 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using VersionOne.SDK.APIClient;
namespace VersionOne.Integration.Tfs.Core.DataLayer
{
public class VersionOneQuery
{
public readonly VersionOneSet... | bsd-3-clause |
palfrey/twfy | www/includes/easyparliament/templates/html/hansard_column.php | 3400 | <?php
// For displaying the main Hansard content listings (by date).
// Remember, we are currently within the DEBATELIST or WRANSLISTS class,
// in the render() function.
// The array $data will be packed full of luverly stuff about hansard objects.
// See the bottom of hansard_gid for information about its structure... | bsd-3-clause |
sunlightlabs/django-feedinator | feedinator/models.py | 3029 | import datetime
from django.db import models
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes import generic
from pytz import common_timezones
FEED_TYPE_CHOICES = (
(u'rss', u'RSS'),
(u'rss-0.90', u'RSS 0.90'),
(u'rss-0.91', u'RSS 0.91'),
(u'rss-1.0', u'RSS ... | bsd-3-clause |
sigma-z/Jentin | test/Jentin/Mvc/Response/RedirectResponseTest.php | 1007 | <?php
/*
* This file is part of the Jentin framework.
* (c) Steffen Zeidler <sigma_z@sigma-scripts.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Test\Jentin\Mvc\Response;
use Jentin\Mvc\Response\RedirectResponse;
u... | bsd-3-clause |
rproepp/spykeviewer | spykeviewer/ui/ipython_connection.py | 3664 | import sys
import logging
ipython_available = False
try: # Ipython 0.12, 0.13
import IPython
from IPython.zmq.ipkernel import IPKernelApp
from IPython.frontend.qt.kernelmanager import QtKernelManager
from IPython.frontend.qt.console.rich_ipython_widget \
import RichIPythonWidget
from IPyth... | bsd-3-clause |
mizalewski/yii2-multitenancy-sample | console/migrations/m150315_202652_create_content.php | 665 | <?php
use yii\db\Schema;
use yii\db\Migration;
class m150315_202652_create_content extends Migration
{
const CONTENT_TABLE_NAME = '{{%content}}';
const TENANT_TABLE_NAME = '{{%tenant}}';
public function safeUp()
{
$this->createTable(self::CONTENT_TABLE_NAME, [
'id' => 'pk',
... | bsd-3-clause |
nwjs/chromium.src | chrome/browser/safe_browsing/threat_details_unittest.cc | 77630 | // 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 <stdint.h>
#include <algorithm>
#include "base/bind.h"
#include "base/macros.h"
#include "base/pickle.h"
#include "base/run_loop.h"
#includ... | bsd-3-clause |
giacomov/3ML | threeML/io/serialization.py | 754 | from future import standard_library
standard_library.install_aliases()
from threeML.classicMLE.joint_likelihood import JointLikelihood
from threeML.bayesian.bayesian_analysis import BayesianAnalysis
__all__ = []
# copyreg is called copy_reg in python2
try:
import copyreg # py3
except ImportError:
import ... | bsd-3-clause |
alexseyka1/efir.city | vendor/composer/autoload_real.php | 2333 | <?php
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit53f0f37c0cd56dd1cdf5343164ffba14
{
private static $loader;
public static function loadClassLoader($class)
{
if ('Composer\Autoload\ClassLoader' === $class) {
require __DIR__ . '/ClassLoader.php';
}
... | bsd-3-clause |
liangwang/m5 | src/arch/arm/linux/linux.hh | 6295 | /*
* Copyright (c) 2003-2005 The Regents of The University of Michigan
* Copyright (c) 2007-2008 The Florida State University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met: redistributio... | bsd-3-clause |
adem-team/advanced | lukisongroup/master/models/KategoricusSearch.php | 2209 | <?php
namespace lukisongroup\master\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use lukisongroup\master\models\Kategoricus;
/**
* KategoricusSearch represents the model behind the search form about `lukisongroup\esm\models\Kategoricus`.
*/
class KategoricusSearch extends Kategoricus
{
... | bsd-3-clause |
m-ishchenko/portal | tests/unit/fixtures/data/employeespositions.php | 480 | <?php
return[
[
'id' => '1',
'employee_id' => '1',
'position_id' => '10',
],
[
'id' => '2',
'employee_id' => '2',
'position_id' => '9',
],
[
'id' => '3',
'employee_id' => '3',
... | bsd-3-clause |
socam/qmlmessages | src/windowmanager.cpp | 5730 | /* Copyright (C) 2012 John Brooks <john.brooks@dereferenced.net>
*
* You may use this file under the terms of the BSD license as follows:
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* * Redistributions of... | bsd-3-clause |
fresskarma/tinyos-1.x | tools/java/org/python/modules/sre/MatchObject.java | 5391 | /*
* Copyright 2000 Finn Bock
*
* This program contains material copyrighted by:
* Copyright (c) 1997-2000 by Secret Labs AB. All rights reserved.
*
* This version of the SRE library can be redistributed under CNRI's
* Python 1.6 license. For any other use, please contact Secret Labs
* AB (info@pythonware.com... | bsd-3-clause |
brics/brics_3d | examples/wm_hdf5.cpp | 3950 | /******************************************************************************
* BRICS_3D - 3D Perception and Modeling Library
* Copyright (c) 2017, KU Leuven
*
* Author: Sebastian Blumenthal
*
*
* This software is published under a dual-license: GNU Lesser General Public
* License LGPL 2.1 and Modified BSD license. T... | bsd-3-clause |
buptUnixGuys/jerasure-jni | jni/JJerasure.cpp | 13978 | #include <stdlib.h>
#include "JJerasure.h"
#include "jerasure.h"
#include "javautility.h"
#include "reed_sol.h"
#define talloc(type, num) (type *) malloc(sizeof(type)*(num))
/*
* Class: cn_ctyun_ec_jni_Jerasure
* Method: jerasure_matrix_to_bitmatrix
* Signature: (III[I)[I
*/
JNIEXPORT jintAr... | bsd-3-clause |
mrobam/Library | backend/views/issuing/edit.php | 541 | <?php
use yii\bootstrap\ActiveForm;
use yii\helpers\ArrayHelper;
?>
<h2>Выдача книги</h2>
<?php $form= ActiveForm::begin();?>
<?=$form->field($issuing, 'book_id')->listBox(ArrayHelper::map($books,'id','name','author'))?>
<?=$form->field($issuing, 'reader_id')->listBox(ArrayHelper::map($readers,'id','firstname', ... | bsd-3-clause |
linkorb/ZendFramework-1.10.8-minimal-patched | library/Zend/Gdata/Media/Extension/MediaCategory.php | 4528 | <?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license a... | bsd-3-clause |
abdmaster/zf3-multitenant-app | core/Helpers/config/module.config.php | 751 | <?php
namespace Helpers;
use Zend\I18n\View\Helper\Translate;
return [
'controller_plugins' => [
'factories' => [
'setTitle' => Controller\Plugin\Factory\SetTitleFactory::class,
],
],
'view_helpers' => [
'invokables' => [
'translate' => Translate::clas... | bsd-3-clause |
percolate/percolate-java-sdk | api/src/main/java/com/percolate/sdk/api/request/previewformat/PreviewFormatRequest.java | 1122 | package com.percolate.sdk.api.request.previewformat;
import com.percolate.sdk.api.PercolateApi;
import com.percolate.sdk.api.utils.RetrofitApiFactory;
import com.percolate.sdk.dto.PreviewFormats;
import com.percolate.sdk.dto.SinglePreviewFormat;
import org.jetbrains.annotations.NotNull;
import retrofit2.Call;
/**
... | bsd-3-clause |
Rusk85/CavemanToolBySapiensworks | src/CavemanTools.MVC/IpTracking.cs | 2457 | using System;
using System.Web;
using System.Web.Security;
namespace CavemanTools.Mvc
{
//todo review ip tracking
/// <summary>
/// Class for tracking ip changing
/// </summary>
public class IpTracking
{
private string _cookieName="_it";
public string CookieName
{
get { return _cookieN... | bsd-3-clause |
crysthianophp/dsl-tutorial | vendor/los/loslog/tests/LosLogTests/Log/ErrorLoggerTest.php | 360 | <?php
namespace LosLogTests\Log;
use LosLog\Log\ErrorLogger;
class ErrorLoggerTest extends \PHPUnit_Framework_TestCase
{
public function testErrorLog()
{
ErrorLogger::registerHandlers();
$arq = file('testeErro.txt');
$log = file_get_contents('data/logs/error.log');
$this->ass... | bsd-3-clause |
leesab/irods | iRODS/lib/core/src/getUtil.cpp | 18685 | /* -*- mode: c++; fill-column: 132; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
#ifndef windows_platform
#include <sys/time.h>
#endif
#include "rodsPath.hpp... | bsd-3-clause |
justin-hayes/motech | modules/tasks/tasks/src/main/java/org/motechproject/tasks/validation/TaskValidator.java | 18815 | package org.motechproject.tasks.validation;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;
import org.motechproject.tasks.domain.ActionEvent;
import org.motechproject.tasks.domain.ActionParameter;
import org.motechproject.tasks.domain.Channel;
import org.motechproject.tasks.domain.DataSourc... | bsd-3-clause |
leonardosantos/dhclientlist | dhclientlist/drivers/tp_link/generic.py | 684 | # coding: utf-8
import requests
import re
import json
def get(address, username, password):
GROUP_LENGTH = 4
page = requests.get("http://%s/userRpm/AssignedIpAddrListRpm.htm" % address, auth=(username, password))
list_str = re.search("(var DHCPDynList = new Array\(([^\)]*)\))", page.content.replace("\n", ... | bsd-3-clause |
rnyberg/pyfibot | pyfibot/modules/module_openweather_fi.py | 2678 | # -*- coding: utf-8 -*-
from __future__ import print_function, division, unicode_literals
import logging
from datetime import datetime, timedelta
from math import ceil
log = logging.getLogger('openweather')
default_location = 'Helsinki'
threshold = 120
def init(bot):
global default_location
global threshold... | bsd-3-clause |
joycode/LibNVim | LibNVim/Editions/EditionAppendToLineEnd.cs | 458 | using System;
using System.Collections.Generic;
using System.Text;
namespace LibNVim.Editions
{
class EditionAppendToLineEnd : AbstractVimEditionInsertText
{
public EditionAppendToLineEnd(Interfaces.IVimHost host, int repeat)
: base(host, repeat)
{
}
... | bsd-3-clause |
NextToBe/X-works | frontend/models/Course.php | 2979 | <?php
/**
* Course
*
* 作者: Tony
* 创建时间: 2016-11-06
* 修改记录:
*
*/
namespace frontend\models;
use yii\base\Exception;
use yii\db\ActiveRecord;
use Yii;
class Course extends ActiveRecord {
const EVENT_SET_COURSE = 'set_course';
public function init() {
$this->on(self::EVENT_SET_COURSE, [$thi... | bsd-3-clause |
muratymt/yiicms | components/core/cronjob/CronJob.php | 498 | <?php
/**
* Created by PhpStorm.
* User: admin
* Date: 28.01.2016
* Time: 8:44
*/
namespace yiicms\components\core\cronjob;
use yii\base\Object;
abstract class CronJob extends Object
{
/**
* @var string описание задания
*/
public $description = '';
/**
* функция входа в выполнение ра... | bsd-3-clause |
CIT-VSB-TUO/ResBill | resbill/src/main/java/cz/vsb/resbill/model/BaseVersionedEntity.java | 1065 | package cz.vsb.resbill.model;
import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import javax.persistence.Version;
/**
* A common ancestor of entities with automatically generated primary key that
* are ready for optimistic locking.
*
* @author HAL191
*
*/
@MappedSuperclas... | bsd-3-clause |
MonsantoCo/chinese-restaurant-process | src/test/scala/com/monsanto/stats/tables/clustering/VecMapSpec.scala | 2027 | package com.monsanto.stats.tables.clustering
import com.monsanto.stats.tables.UnitSpec
import org.scalatest._
import enablers.Collecting
import scala.collection.GenTraversable
import prop.GeneratorDrivenPropertyChecks
import org.scalactic.Equality
import org.scalactic.anyvals.{ PosZInt, PosZDouble }
import org.scalach... | bsd-3-clause |
MvegaR/proyecto | frontend/views/edificio/update.php | 568 | <?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model frontend\models\Edificio */
$this->title = 'Modificar Edificio: ' . ' ' . $model->ID_EDIFICIO;
$this->params['breadcrumbs'][] = ['label' => 'Edificios', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->ID_EDIFICIO, 'url... | bsd-3-clause |
mcassola/ServerKinect | ServerKinect/Shape/GrahamScan.cs | 2478 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ServerKinect.Shape
{
internal class GrahamScan
{
private IList<Point> points;
public GrahamScan(IList<Point> points)
{
this.points = points;
}
p... | bsd-3-clause |
NCIP/annotation-and-image-markup | ATB_1.0_src/src/main/java/edu/stanford/isis/atb/ui/view/widget/tree/renderer/template/ImagingObservationCharacteristicRenderer.java | 2598 | /*
* 2010 2012 Copyright Northwestern University and Stanford University
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/annotation-and-image-markup/LICENSE.txt for details.
*/
package edu.stanford.isis.atb.ui.view.widget.tree.renderer.template;
import static org.apac... | bsd-3-clause |
adini121/atlassian | atlassian-visual-comparison/src/main/java/com/atlassian/selenium/visualcomparison/utils/ReportRenderer.java | 1111 | package com.atlassian.selenium.visualcomparison.utils;
import com.atlassian.annotations.Internal;
import org.apache.velocity.Template;
import org.apache.velocity.VelocityContext;
import org.apache.velocity.app.Velocity;
import java.io.StringWriter;
import java.util.Properties;
@Internal
public class ReportRenderer
{... | bsd-3-clause |
BaiduFE/Tangram-component | src/baidu/ui/Menubar/Menubar$fx.js | 1252 | /*
* Tangram
* Copyright 2009 Baidu Inc. All rights reserved.
*/
///import baidu.ui.Menubar;
///import baidu.fx.expand;
///import baidu.fx.collapse;
///import baidu.dom.g;
/**
* 为Menubar增加动画效果
* @name baidu.ui.Menubar.Menubar$fx
* @addon baidu.ui.Menubar
*/
baidu.ui.Menubar.extend({
enableFx:true,
sho... | bsd-3-clause |
manuelpichler/pdepend | src/main/php/PDepend/Source/AST/ASTArtifactList.php | 6365 | <?php
/**
* This file is part of PDepend.
*
* PHP Version 5
*
* Copyright (c) 2008-2013, Manuel Pichler <mapi@pdepend.org>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Re... | bsd-3-clause |
ludoo/wpkit | attic/wpfrontman/extra/domain_based/urls_3.py | 3597 | '''WP Frontman urlrules for blog '3', generated on 2011-04-08T16:57:45.453238'''
from django.conf.urls.defaults import *
urlpatterns = patterns('wp_frontman.views',
url('^$', 'index', name='wpf_index'),
url('^page/(?P<page>[0-9]+)/$', 'index', name='wpf_index'),
# url('^page(?P<page>[0-9]+)/$', 'index'),... | bsd-3-clause |
stefanberndtsson/nmdb3 | app/models/goof.rb | 56 | class Goof < ActiveRecord::Base
belongs_to :movie
end
| bsd-3-clause |
maxhutch/magma | testing/testing_cgemv_batched.cpp | 8621 | /*
-- MAGMA (version 2.1.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date August 2016
@generated from testing/testing_zgemv_batched.cpp, normal z -> c, Tue Aug 30 09:39:16 2016
@author Mark Gates
@author Azzam Haidar
... | bsd-3-clause |
ms2300/multiplayer-elo | elo_classes.py | 1033 | # Copyright (c) 2016 by Matt Sewall.
# All rights reserved.
class Competitor:
def __init__(self, name, school, place, elo):
self.name = name
self.school = school
self.place = place
self.elo = elo
def __eq__(self, other):
return self.name == other.name and \
... | bsd-3-clause |
fjcorona/zfpruebasoap2 | module/Soapserver/config/module.config.php | 2189 | <?php
return array(
'view_manager' => array(
'template_path_stack' => array(
'indexcontroller' => __DIR__ . '/../view',
),
'strategies' => array(
'ViewJsonStrategy'
)
),
'controllers' => array(
... | bsd-3-clause |
NCIP/ctms-commons | grid/ccts-grid-services/cagrid14-services/RegistrationConsumerGridService-caGrid1.4/src/gov/nih/nci/ccts/grid/service/RegistrationConsumerImplBase.java | 2147 | /*
* Copyright Northwestern University and SemanticBits, LLC
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/ctms-commons/LICENSE.txt for details.
*/
package gov.nih.nci.ccts.grid.service;
import gov.nih.nci.ccts.grid.service.globus.resource.RegistrationConsumerResource;... | bsd-3-clause |
cdvcz/datex2 | datex2-api/src/main/java/cz/cdv/datex2/internal/ClientSubscriptionImpl.java | 3448 | package cz.cdv.datex2.internal;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import javax.jws.WebService;
import org.springframework.beans.factory.annotation.Autowired;
import cz.cdv.datex2.wsdl.clientsubscribe.ClientSubscribeInterface;
import eu.datex2.schema._2._2_0.D2LogicalModel... | bsd-3-clause |
NanaYngvarrdottir/Software-Testing | OpenSim/Region/Framework/Scenes/Serialization/SceneXmlLoader.cs | 10983 | /*
* Copyright (c) Contributors, http://aurora-sim.org/, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistr... | bsd-3-clause |
chromium2014/src | content/browser/indexed_db/indexed_db_factory_unittest.cc | 18574 | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/indexed_db/indexed_db_factory.h"
#include "base/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/logging.h"
... | bsd-3-clause |
krishauser/KrisLibrary | utils/ParamList.cpp | 3198 | #include "ParamList.h"
#include "stringutils.h"
#include "ioutils.h"
#include <sstream>
#include <errors.h>
using namespace std;
ParamList::ParamList()
{}
ParamList::ParamList(const PrimitiveValue& a1)
:args(1)
{
args[0] = a1;
}
ParamList::ParamList(const PrimitiveValue& a1,const PrimitiveValue& a2)
:args(2)
{... | bsd-3-clause |
youtube/cobalt | net/third_party/quiche/src/spdy/core/spdy_prefixed_buffer_reader_test.cc | 4374 | // Copyright 2014 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 "net/third_party/quiche/src/spdy/core/spdy_prefixed_buffer_reader.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/incl... | bsd-3-clause |
cymapgt/SpreadsheetProcessor | src/SpreadsheetProcessor/PHPExcelWrapper/PHPExcelBorderStyle.php | 1047 | <?php
namespace cymapgt\core\application\spreadsheet\SpreadsheetProcessor\PHPExcelWrapper;
// These are taken directly from PHPExcel/Style/Border.php
// They are duplicated becuase the point of this wrapper is to not have
// to include a whole bunch of other files in whatver script your using
class PHPExcelBorde... | bsd-3-clause |
gulopine/steel | steel/fields/strings.py | 3829 | from steel.fields import Field
from steel.fields.numbers import Integer
from steel.common import args
from steel.common.fields import FullyDecoded
class String(Field):
size = args.Override(default=None)
encoding = args.Argument(resolve_field=True)
padding = args.Argument(default=b'\x00')
ter... | bsd-3-clause |
thailvn/dev | module/Web/src/Web/Lib/GooglePlus.php | 2131 | <?php
namespace Web\Lib;
use Application\Lib\Log;
use Web\Module as WebModule;
/**
* GooglePlus
*
* @package Lib
* @created 2015-09-05
* @version 1.0
* @author thailh
* @copyright YouGO INC
*/
class GooglePlus {
protected static $service; // for application module
public static ... | bsd-3-clause |
ManolisCh/experiment_2 | laser_noise/src/laser_noise_node.cpp | 4917 | #include <ros/ros.h>
#include <sensor_msgs/LaserScan.h>
#include <std_msgs/Bool.h>
#include <boost/random/mersenne_twister.hpp>
#include <boost/random/uniform_real.hpp>
#include <boost/random/variate_generator.hpp>
#include <geometry_msgs/PoseWithCovarianceStamped.h>
class LaserNoise
{
public:
LaserNoise()
... | bsd-3-clause |
endlessm/chromium-browser | third_party/blink/renderer/platform/exported/web_blob_info.cc | 4077 | // Copyright 2017 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 "third_party/blink/public/platform/web_blob_info.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "third_party/blink/public/mojo... | bsd-3-clause |
aaly/MPF | System/driveList.hpp | 302 | /******************************************************
* copyright 2011, 2012, 2013 AbdAllah Aly Saad , aaly90[@]gmail.com
* Part of Mesk Page Framework (MPF)
******************************************************/
#ifndef DRIVELIST_H
#define DRIVELIST_H
#include <QComboBox>
#endif // DRIVELIST_H
| bsd-3-clause |
jjgoings/McMurchie-Davidson | tests/test003.py | 506 | import numpy as np
from numpy.testing import assert_allclose
from mmd.molecule import Molecule
methane = """
0 1
C 0.000000 0.000000 0.000000
H 0.626425042 -0.626425042 -0.626425042
H 0.626425042 0.626425042 0.626425042
H -0.626425042 0.626425042 -0.626425042
H -0.626425042 -0.62... | bsd-3-clause |
innaDa/RcmUser | src/Event/EventProvider.php | 1450 | <?php
namespace RcmUser\Event;
use Zend\EventManager\EventManager;
use Zend\EventManager\EventManagerAwareInterface;
use Zend\EventManager\EventManagerInterface;
/**
* Class EventProvider
*
* EventProvider
*
* PHP version 5
*
* @category Reliv
* @package RcmUser\Event
* @author James Jervis <jjervis@r... | bsd-3-clause |
spekkionu/zfapp | tests/unit/src/system/models/Model_AdminTest.php | 1553 | <?php
/**
* Test class for Model_Admin.
* Generated by PHPUnit on 2012-06-02 at 19:28:26.
*/
class Model_AdminTest extends Test_DbTestCase
{
/**
* tests Model_Admin::getAdministratorList
*/
public function testGetAdministratorList() {
$mgr = new Model_Admin();
$results = $mgr->getAdministratorLis... | bsd-3-clause |
Artld/study-in-sg | homework_rails/config/initializers/secret_token.rb | 504 | # Be sure to restart your server when you modify this file.
# Your secret key for verifying the integrity of signed cookies.
# If you change this key, all old signed cookies will become invalid!
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attac... | bsd-3-clause |
fpytloun/mezzanine-references | mezzanine_references/admin.py | 371 | from django.contrib import admin
from mezzanine.pages.admin import PageAdmin
from mezzanine.core.admin import TabularDynamicInlineAdmin
from .models import References, Reference
class ReferenceInline(TabularDynamicInlineAdmin):
model = Reference
class ReferencesAdmin(PageAdmin):
inlines = (ReferenceInline,)... | bsd-3-clause |
tovmeod/anaf | anaf/core/dashboard/views.py | 9613 | """
Core module Dashboard views
"""
from anaf.core.rendering import render_to_response
from django.shortcuts import get_object_or_404
from django.template import RequestContext
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from anaf.core.decorators import mylogin_required, h... | bsd-3-clause |
aperala/elsi | config/environments/production.rb | 3408 | Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# Code is not reloaded between requests.
config.cache_classes = true
# Eager load code on boot. This eager loads most of Rails and
# your application in memory, allowing both threaded web serve... | bsd-3-clause |
Achuth17/scikit-bio | skbio/sequence/tests/test_sequence.py | 102057 | # ----------------------------------------------------------------------------
# Copyright (c) 2013--, scikit-bio development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
# --------------------------------------------... | bsd-3-clause |
jolicloud/exponent | android/app/src/main/java/abi11_0_0/host/exp/exponent/modules/api/components/maps/AirMapManager.java | 11485 | package abi11_0_0.host.exp.exponent.modules.api.components.maps;
import android.view.View;
import abi11_0_0.com.facebook.react.bridge.Arguments;
import abi11_0_0.com.facebook.react.bridge.ReactApplicationContext;
import abi11_0_0.com.facebook.react.bridge.ReactContext;
import abi11_0_0.com.facebook.react.bridge.Reada... | bsd-3-clause |
xklake/taotao | frontend/controllers/EmployeeCRUDController.php | 3112 | <?php
namespace frontend\controllers;
use Yii;
use app\models\Employee;
use frontend\controller;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* EmployeeCRUDController implements the CRUD actions for Employee model.
*/
class EmployeeCRUDController extends Controller
{
... | bsd-3-clause |
chrisblackni/onxshop | lib/onxshop.db.php | 17593 | <?php
/**
* Onxshop_Db class definition
*
* custom Active Record Database Pattern and simple validation
*
* Copyright (c) 2005-2015 Onxshop Ltd (https://onxshop.com)
* Licensed under the New BSD License. See the file LICENSE.txt for details.
*
*/
class Onxshop_Db {
var $conf = array();
var $_cacheable = ONX... | bsd-3-clause |
krytarowski/lumina | src-qt5/desktop-utils/lumina-terminal/i18n/lumina-terminal_bs.ts | 1045 | <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="bs_BA">
<context>
<name>TrayIcon</name>
<message>
<location filename="../TrayIcon.cpp" line="123"/>
<source>Trigger Terminal</source>
<translation type="unfinished"></translation>
</message>
<message... | bsd-3-clause |
Treeway/sandbox | frontend/modules/panel/views/item/detail.php | 1759 | <?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
?>
<h1>商品详情</h1>
<div>
<div class="col-lg-5" style="width: 200px;">
<?php $form = ActiveForm::begin(['id' => 'form-signup']); ?>
<?= $form->field($model, 'acc_id')->dropDownList($data)->label('账号名') ?>
<div... | bsd-3-clause |
flip111/portia | slyd/media/js/api.js | 15981 | /**
A Proxy to the slyd backend API.
*/
ASTool.SlydApi = Em.Object.extend({
/**
@public
The name of the current project.
*/
project: null,
projectSpecUrl: function() {
return ASTool.SlydApi.getApiUrl() + '/' + this.project + '/spec/';
}.property('project'),
botUrl: function() {
return ASTool.SlydApi.ge... | bsd-3-clause |
croxsanchez/yii2build | backend/views/seller/indice.php | 2202 | <?php
use Yii;
use yii\helpers\Html;
use yii\grid\GridView;
use \yii\bootstrap\Collapse;
use common\models\PermissionHelpers;
use yii\data\ActiveDataProvider;
use yii\db\mysql\QueryBuilder;
use yii\db\Query;
use backend\models\Seller;
/* @var $this yii\web\View */
/* @var $searchModel backend\models\search\SellerSear... | bsd-3-clause |
SteveMcGrath/pySecurityCenter | examples/sc4/average_time_to_mitigate/avg_ttm.py | 597 | import securitycenter
HOST = 'HOSTNAME or IP_ADDRESS'
USER = 'USERNAME'
PASS = 'PASSWORD'
ASSET_ID = 81
def get_ttm(**filters):
sc = securitycenter.SecurityCenter4(HOST)
sc.login(USER, PASS)
data = sc.query('vulndetails', source='patched', **filters)
agg = 0
for item in data:
agg += int(it... | bsd-3-clause |