repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
ltcmelo/psychec | C/symbols/TypeSymbol_Array.cpp | 1497 | // Copyright (c) 2021 Leandro T. C. Melo <ltcmelo@gmail.com>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy... | bsd-3-clause |
LukasBanana/ForkENGINE | sources/Engine/Component/Property/FloatProperty.cpp | 864 | /*
* Floating-point property file
*
* This file is part of the "ForkENGINE" (Copyright (c) 2014 by Lukas Hermanns)
* See "LICENSE.txt" for license information.
*/
#include "Engine/Component/Component.h"
#include "IO/FileSystem/File.h"
namespace Fork
{
namespace Engine
{
Component::Property::Types Component:... | bsd-3-clause |
wayfinder/Wayfinder-Server | Server/Shared/Items/src/StreetSegmentItem.cpp | 4502 | /*
Copyright (c) 1999 - 2010, Vodafone Group Services Ltd
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of condit... | bsd-3-clause |
shehzan10/arrayfire | src/backend/opencl/kernel/diagonal.hpp | 4348 | /*******************************************************
* Copyright (c) 2014, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
**********************************************... | bsd-3-clause |
tartley/flyinghigh-opengl-from-python | flyinghigh/component/wobblyorbit.py | 1716 | from __future__ import division
from math import cos, sin, pi
from random import uniform
from ..geometry.vec3 import Vec3
class Orbit(object):
def __init__(self, distance, speed, phase=None):
self.distance = distance
self.speed = speed
if phase is None:
phase = uniform(0, 2 ... | bsd-3-clause |
dfabregat/Cl1ck | SRC/Operation.py | 42963 | import sys
import os
import copy
import itertools
from core.expression import Symbol, Matrix, Vector, Scalar, NumericConstant, \
Equal, Plus, Minus, Times, Transpose, \
BlockedExpression, NList, Predicate, \
PatternDot, PatternStar, sZ... | bsd-3-clause |
f97one/MainCameraJoke | app/src/main/java/net/formula97/android/app_maincamerajoke/NetaMessages.java | 2208 | package net.formula97.android.app_maincamerajoke;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
/**
* ネタ表示するデータを格納するエンティティクラス。
* Created by HAJIME on 2014/06/19.
*/
@DatabaseTable(tableName = "NetaMessages")
public class NetaMessages {
/**
* 管理用主キー
*/
... | bsd-3-clause |
paksv/vijava | src/com/vmware/vim25/PhysicalNicIpHint.java | 1991 | /*================================================================================
Copyright (c) 2013 Steve Jin. 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 re... | bsd-3-clause |
cingwun/test-yii | views/test/country.php | 695 | <?php
use yii\helpers\Html;
use yii\widgets\LinkPager;
$this->params['breadcrumbs'][] = ['label' => 'Countries', 'url' => ['test/country']];
?>
<h1>Countries</h1>
<div>
<?= Html::a('Create Country', ['test/create'], ['class' => 'btn btn-success']) ?>
</div>
<table class="table">
<thead>
<tr>
<th>#</th>
<t... | bsd-3-clause |
maxhutch/magma | sparse-iter/src/cftjacobi.cpp | 6623 | /*
-- MAGMA (version 2.1.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date August 2016
@author Hartwig Anzt
@generated from sparse-iter/src/zftjacobi.cpp, normal z -> c, Tue Aug 30 09:38:55 2016
*/
#include "magmasparse_int... | bsd-3-clause |
alexissmirnov/donomo | donomo_archive/lib/donomo/archive/media/js/tjpzoom/tjpzoom_config_smart.js | 978 | // TJPzoom 3 configuration file * János Pál Tóth
// 2007.04.28
// Docs @ http://valid.tjp.hu/tjpzoom/
// News @ http://tjpzoom.blogspot.com/
// SMART
// a bit of a border (2px)
// and a bit of a drop shadow
// smart cursor following mode
var TJPzoomwidth=160; //zoom window size
var TJPzoomheight=120;
v... | bsd-3-clause |
socialdevices/manager | core/migrations/0009_auto__chg_field_actiondevice_parameter_position.py | 11138 | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'ActionDevice.parameter_position'
db.alter_column('core_actiondevice', 'parameter_positio... | bsd-3-clause |
solanolabs/rply | rply/errors.py | 264 | class ParserGeneratorError(Exception):
pass
class ParsingError(Exception):
def __init__(self, source_pos):
self.source_pos = source_pos
def getsourcepos(self):
return self.source_pos
class ParserGeneratorWarning(Warning):
pass
| bsd-3-clause |
slotix/dataflowkit | fetch/server.go | 2496 | package fetch
import (
"context"
"fmt"
"net/http"
"os"
"sync"
"time"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
)
// Config provides basic configuration
type Config struct {
Host string
Version string
}
// HTMLServer represents the web service that serves up HTML
type HTMLServer struct {
server *http... | bsd-3-clause |
fimex/sistema | frontend/assets/js/script.js | 766 | var app = angular.module("MyFirseModule",[]);
app.controller("FirseController",function ($scope,$http) {
$scope.valor = function () {
if ($scope.numero == '') {
$scope.numero = 0;
};
};
});
function justNumbers(e) {
var keynum = window.event ? window.event.keyCode : e.which;
if ( keynum == 8 ) return true;
... | bsd-3-clause |
kiichi7/DungeonQuestGDC | Collision/CollisionGeometry.cs | 18633 | // Author: abi
// Project: DungeonQuest
// Path: C:\code\Xna\DungeonQuest\Collision
// Creation date: 28.03.2007 01:01
// Last modified: 31.07.2007 04:37
#region Using directives
using DungeonQuest.Helpers;
using Microsoft.Xna.Framework;
using System;
using System.Collections.Generic;
using System.Globalization;
using... | bsd-3-clause |
tkf/neo | neo/test/io/test_micromedio.py | 509 | # encoding: utf-8
"""
Tests of io.asciisignalio
"""
from __future__ import division
try:
import unittest2 as unittest
except ImportError:
import unittest
from neo.io import MicromedIO
import numpy
from neo.test.io.common_io_test import BaseTestIO
class TestMicromedIO(BaseTestIO, unittest.TestCase, ):
... | bsd-3-clause |
jphalip/django-treemenus | treemenus/tests/urls.py | 366 | try:
from django.conf.urls import patterns, include
except ImportError: # Django < 1.4
from django.conf.urls.defaults import patterns, include
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
(r'^test_treemenus_admin/', include(admin.site.urls)),
)
han... | bsd-3-clause |
wiseman/virtual-radar-server | Test/Test.VirtualRadar.Library/Listener/ListenerTests.cs | 82917 | // Copyright © 2012 onwards, Andrew Whewell
// All rights reserved.
//
// Redistribution and use of this software 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, th... | bsd-3-clause |
newville/scikit-image | skimage/transform/__init__.py | 1652 | from ._hough_transform import (hough_ellipse, hough_line,
probabilistic_hough_line)
from .hough_transform import hough_circle, hough_line_peaks
from .radon_transform import radon, iradon, iradon_sart, iradon_workspace
from .finite_radon_transform import frt2, ifrt2
from .integral import i... | bsd-3-clause |
dongnan/LinkTool | src/linktool/log/Log.php | 3902 | <?php
/**
* LinkTool - A useful library for PHP
*
* @author Dong Nan <hidongnan@gmail.com>
* @copyright (c) Dong Nan http://idongnan.cn All rights reserved.
* @link https://github.com/dongnan/LinkTool
* @license BSD (http://opensource.org/licenses/BSD-3-Clause)
*/
namespace linkto... | bsd-3-clause |
charlesportwoodii/yii2-api | tests/unit/forms/ChangeEmailTest.php | 2778 | <?php
namespace tests\unit;
use common\forms\ChangeEmail;
use Faker\Factory;
use Yii;
class ChangeEmailTest extends \tests\codeception\Unit
{
use \Codeception\Specify;
public function testValidate()
{
$this->specify(
'test required fields', function () {
$form = new C... | bsd-3-clause |
vIiRuS/Lagerregal | devicetypes/migrations/0001_initial.py | 1951 | from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('devices', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Type',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False,... | bsd-3-clause |
glenc/sp.py | src/sp/utils.py | 3239 | # Set up References
import clr
clr.AddReference("System")
clr.AddReference("Microsoft.SharePoint")
from System import Uri
from Microsoft.SharePoint import *
from Microsoft.SharePoint.Administration import SPWebApplication
# Enumeration
# These are simple enumeration methods for walking over various SharePoint
# objec... | bsd-3-clause |
vipaction/blog_yii2 | views/user/login.php | 1519 | <?php
/* @var $this yii\web\View */
/* @var $form, $register yii\bootstrap\ActiveForm */
/* @var $user app\models\User */
use yii\helpers\Html;
use yii\helpers\Url;
use yii\bootstrap\ActiveForm;
$this->title = 'Авторизация';
$this->params['breadcrumbs'][] = $this->title;
?>
<h1 class="text-center"><?= Html::encode(... | bsd-3-clause |
thkoch2001/libpostgresql-jdbc-java | org/postgresql/test/jdbc2/RefCursorTest.java | 4649 | /*-------------------------------------------------------------------------
*
* Copyright (c) 2004-2011, PostgreSQL Global Development Group
*
*
*-------------------------------------------------------------------------
*/
package org.postgresql.test.jdbc2;
import org.postgresql.test.TestUtil;
import java.sql.*;
impor... | bsd-3-clause |
rfloca/MITK | Core/Code/Controllers/mitkCoreActivator.cpp | 6877 | /*===================================================================
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... | bsd-3-clause |
lsbardel/django-amazoncloud | amazoncloud/__init__.py | 321 | import os
import sys
VERSION = (0, 1, 'alpha-pre')
def get_version():
if len(VERSION) == 3:
try:
vi = int(VERSION[2])
v = '%s.%s.%s' % VERSION
except:
v = '%s.%s_%s' % VERSION
else:
v = '%s.%s' % VERSION[:2]
return v
__version__ = get_version(... | bsd-3-clause |
antoinecarme/sklearn_explain | tests/issues/issue_07/issue_07_iris_with_categorical_order_2.py | 1524 | from sklearn import datasets
import numpy as np
import pandas as pd
import sklearn_explain.explainer as expl
ds = datasets.load_iris();
print(ds.__dict__)
C1 = np.random.randint(3, size=ds.data.shape[0]).T.reshape(-1,1)
C2 = np.random.randint(5, size=ds.data.shape[0]).T.reshape(-1,1)
C2= C2 * 5
print(C1.shape, C2.sh... | bsd-3-clause |
benkaraban/anima-games-engine | Sources/HOO/HOOServer/NetworkMessageHandler/CloseSessionHandler.cpp | 2066 | /*
* Copyright (c) 2010, Anima Games, Benjamin Karaban, Laurent Schneider,
* Jérémie Comarmond, Didier Colin.
* 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 ... | bsd-3-clause |
adamretter/j8fu | src/main/java/com/evolvedbinary/j8fu/function/Function4E.java | 24714 | /**
* Copyright © 2016, Evolved Binary Ltd. <tech@evolvedbinary.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:
* * Redistributions of source code must retain the above copyright
*... | bsd-3-clause |
hiqdev/composer-extension-plugin | tests/_bootstrap.php | 344 | <?php
/*
* Composer plugin for pluggable extensions
*
* @link https://github.com/hiqdev/composer-extension-plugin
* @package composer-extension-plugin
* @license BSD-3-Clause
* @copyright Copyright (c) 2016, HiQDev (http://hiqdev.com/)
*/
error_reporting(E_ALL & ~E_NOTICE);
require_once __DIR__ . '/.... | bsd-3-clause |
coolms/locale | src/Options/ModuleOptions.php | 1691 | <?php
/**
* CoolMS2 Locale Module (http://www.coolms.com/)
*
* @link http://github.com/coolms/locale for the canonical source repository
* @copyright Copyright (c) 2006-2015 Altgraphic, ALC (http://www.altgraphic.com)
* @license http://www.coolms.com/license/new-bsd New BSD License
* @author Dmitry Pop... | bsd-3-clause |
praekelt/jmbo-foundry | foundry/tasks.py | 3280 | import unicodedata
import jellyfish
from django.core.management.base import BaseCommand, CommandError
from django.core.mail import EmailMultiAlternatives
from django.db import transaction
from django.template.loader import get_template_from_string
from django.template import Context
from django.contrib.sites.models im... | bsd-3-clause |
petlyakss/newTimetable | module/timetable/views/lessons/creator_index.php | 499 | <?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\module\timetable\models\Lessons */
$this->title = 'Оберіть наступні параметри:';
$this->params['breadcrumbs'][] = ['label' => 'Редактор розкладу', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="lessons-c... | bsd-3-clause |
manachyn/imshop | modules/search/src/models/TermsFacet.php | 1430 | <?php
namespace im\search\models;
use im\eav\models\Attribute;
use im\search\components\query\facet\TermsFacetInterface;
/**
* Terms facet model class.
*/
class TermsFacet extends Facet implements TermsFacetInterface
{
const TYPE = self::TYPE_TERMS;
/**
* @inheritdoc
*/
public function getVa... | bsd-3-clause |
awebc/web_yi | yunsong/shop/migrations/m160919_090754_order.php | 1727 | <?php
use yii\db\Migration;
use yii\db\mysql\Schema;
class m160919_090754_order extends Migration
{
public function safeUp()
{
$tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB';
$this->createTable('{{%order}}', [
'order_id' => Schema::TYPE_PK,
'... | bsd-3-clause |
gintas/BattleSats | src/lt/miliauskas/battlesats/BattleView.java | 2123 | package lt.miliauskas.battlesats;
import android.content.Context;
import android.util.AttributeSet;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.view.SurfaceHolder.Callback;
public class BattleView extends SurfaceView implements Callback {
/** The thread that actually dr... | bsd-3-clause |
zcbenz/cefode-chromium | ui/gl/vsync_provider.cc | 3718 | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/vsync_provider.h"
#include "base/time.h"
namespace gfx {
VSyncProvider::VSyncProvider() {
}
VSyncProvider::~VSyncProvider() {
}
S... | bsd-3-clause |
karthiksekarnz/educulas | tests/Zend/Feed/Entry/RssTest.php | 2473 | <?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 an... | bsd-3-clause |
bennybp/BPPrint | bpprint/Format.cpp | 4448 | #include <cstring>
#include "bpprint/Format.hpp"
namespace bpprint {
namespace detail {
bool get_next_format_(FormatInfo & fi, const std::string & str)
{
///////////////////////////////////////////////
// PrintF format
//%[flags][width][.precision][length]spec
// flags: -+#0 or space
// ... | bsd-3-clause |
juniops/nutrirbox | backend/views/sign-in/profile.php | 3350 | <?php
use common\models\UserProfile;
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\UserProfile */
/* @var $form yii\bootstrap\ActiveForm */
$this->title = Yii::t('backend', 'Edit profile')
?>
<div class="user-profile-form">
<?php $form = ActiveFo... | bsd-3-clause |
toidi/hadoop-yarn-api-python-client | yarn_api_client/application_master.py | 10172 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from .base import BaseYarnAPI, get_logger
from .hadoop_conf import get_webproxy_endpoint
log = get_logger(__name__)
class ApplicationMaster(BaseYarnAPI):
"""
The MapReduce Application Master REST API's allow the user to get status
on the r... | bsd-3-clause |
NCIP/stats-analysis | cacoretoolkit 3.1/src/gov/nih/nci/evs/domain/Silo.java | 1751 | /*L
* Copyright SAIC
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/stats-analysis/LICENSE.txt for details.
*/
package gov.nih.nci.evs.domain;
import java.util.*;
/**
* Silo is a repository of customized concept terminology data from a knowledgebase. There ... | bsd-3-clause |
kakada/dhis2 | dhis-api/src/main/java/org/hisp/dhis/schema/AuthorityType.java | 1779 | package org.hisp.dhis.schema;
/*
* 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... | bsd-3-clause |
dava/dava.engine | Programs/QuickEd/Classes/Modules/ModernPropertiesModule/Editors/ModernPropertyEditor.cpp | 8866 | #include "Modules/ModernPropertiesModule/Editors/ModernPropertyEditor.h"
#include "Model/ControlProperties/ValueProperty.h"
#include "Model/ControlProperties/RootProperty.h"
#include "Model/PackageHierarchy/ControlNode.h"
#include "Modules/DocumentsModule/DocumentData.h"
#include "QECommands/ChangePropertyValueCommand... | bsd-3-clause |
techvn/webstore | public/assets/backend/system/upload-file/editor/scripts/language/it-IT/length.js | 225 | function loadTxt()
{
document.getElementById("btnCancel").value = "cancella";
document.getElementById("btnOk").value = " ok ";
}
function writeTitle()
{
document.write("<title>Lunghezza</title>")
} | bsd-3-clause |
djparente/coevol-utils | src/filterFastaBySequence.py | 756 | #!/cygdrive/c/Python27/python.exe
# Daniel J. Parente
# MD/PhD Candidate
# Swint-Kruse Laboratory
# University of Kansas Medical Center
import sys
import Bio.SeqIO
# Filters a FASTA-formatted alignment (to stdin), retaining sequences
# only if the (ungapped) sequence occurs in the alignment specified
# a... | bsd-3-clause |
SEL-Columbia/commcare-hq | corehq/apps/app_manager/management/commands/ptop_fast_reindex_apps.py | 467 | from corehq.apps.app_manager.models import ApplicationBase
from corehq.apps.hqcase.management.commands.ptop_fast_reindexer import ElasticReindexer
from corehq.pillows.application import AppPillow
CHUNK_SIZE = 500
POOL_SIZE = 15
class Command(ElasticReindexer):
help = "Fast reindex of app elastic index by using t... | bsd-3-clause |
DominicDirkx/tudat | Tudat/InputOutput/solarActivityData.cpp | 6983 | /* 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
*... | bsd-3-clause |
MadCat34/zend-log | test/WriterPluginManagerTest.php | 879 | <?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace ... | bsd-3-clause |
buaasun/grappa | applications/graphlab/graphlab_naive.hpp | 7588 | ////////////////////////////////////////////////////////////////////////
// Copyright (c) 2010-2015, University of Washington and Battelle
// Memorial Institute. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following cond... | bsd-3-clause |
boldprogressives/akcode | main/diff.py | 16825 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2004-2009 Edgewall Software
# Copyright (C) 2004-2006 Christopher Lenz <cmlenz@gmx.de>
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://... | bsd-3-clause |
ellmetha/django-machina | machina/apps/forum_tracking/abstract_models.py | 2050 | """
Forum tracking abstract models
==============================
This module defines abstract models provided by the ``forum_tracking`` application.
"""
from django.conf import settings
from django.db import models
from django.utils.translation import gettext_lazy as _
from machina.core.loading import ... | bsd-3-clause |
kaushik94/react | packages/react-dom/src/__tests__/ReactCompositeComponent-test.js | 47969 | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @emails react-core
*/
'use strict';
let ChildUpdates;
let MorphingComponent;
let React;
let ReactDOM;
let ReactDOMServer;
let ... | bsd-3-clause |
datastream/probab | cmd/poissonRateBayes/poissonRateBayes.go | 712 | // Summary of the posterior distribution of the Poisson parameter.
package main
import (
"github.com/datastream/probab/bayes"
"fmt"
)
// Summary of the posterior distribution of the Poisson parameter.
func main() {
var (
x, n int64
r, v float64
)
fmt.Scanf("%d %d %f %f", &x, &n, &r, &v)
// fmt.Println("... | bsd-3-clause |
expandjs/expandjs | lib/isEquivalent.js | 1641 | /**
* @license
* Copyright (c) 2017 The expand.js authors. All rights reserved.
* This code may only be used under the BSD style license found at https://expandjs.github.io/LICENSE.txt
* The complete set of authors may be found at https://expandjs.github.io/AUTHORS.txt
* The complete set of contributors may be fou... | bsd-3-clause |
NCIP/digital-model-repository | dmr-tests/src/org/cvit/cabig/dmr/integration/dmrservice/AbstractDmrServiceTests.java | 7316 | /*L
* Copyright The General Hospital Corporation d/b/a Massachusetts General Hospital
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/digital-model-repository/LICENSE.txt for details.
*/
package org.cvit.cabig.dmr.integration.dmrservice ;
import java.io.File;
import jav... | bsd-3-clause |
rgarro/zf2 | library/Zend/Db/Adapter/Pdo/Pgsql.php | 11951 | <?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 an... | bsd-3-clause |
fake-name/ReadableWebProxy | WebMirror/management/rss_parser_funcs/feed_parse_extractTambutranslationsBlogspotCom.py | 572 |
def extractTambutranslationsBlogspotCom(item):
'''
Parser for 'tambutranslations.blogspot.com'
'''
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol) or "preview" in item['title'].lower():
return None
tagmap = [
('PRC', 'PRC', 'translate... | bsd-3-clause |
rajanishtimes/partnerapi | common/models/McpRoles.php | 929 | <?php
namespace common\models;
use Yii;
/**
* This is the model class for table "mcp_roles".
*
* @property integer $id
* @property string $role
* @property string $type
*/
class McpRoles extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static function tableName()
{
retur... | bsd-3-clause |
NCIP/iso21090 | code/hibernate/src/main/java/gov/nih/nci/iso21090/hibernate/node/SimpleNode.java | 1885 | //============================================================================
// Copyright 5AM Solutions, Inc
// Copyright Ekagra Software Technologies Ltd.
// Copyright Guidewire Architecture
// Copyright The Ohio State University Research Foundation
// Copyright SAIC
//
// Distributed under the OSI-approved BSD 3-Cl... | bsd-3-clause |
mysoft-mall/vr-building | modules/admin/views/manage/panorama.php | 3632 | <?php
/**
* Material Page
* Created by PhpStorm.
* User: liuxh04
* Date: 2016/6/29
* Time: 21:17
*/
?>
<?php
$baseUrl = \Yii::$app->urlManager->getBaseUrl();
?>
<?php $this->beginBlock('css') ?>
<link rel="stylesheet" href="<?=$baseUrl?>/css/manage/panorama.css?v=232361">
<link rel="stylesheet" href="... | bsd-3-clause |
MJuddBooth/pandas | pandas/compat/__init__.py | 12785 | """
compat
======
Cross-compatible functions for Python 2 and 3.
Key items to import for 2/3 compatible code:
* iterators: range(), map(), zip(), filter(), reduce()
* lists: lrange(), lmap(), lzip(), lfilter()
* unicode: u() [no unicode builtin in Python 3]
* longs: long (int in Python 3)
* iterable method compatibil... | bsd-3-clause |
gooddata/gooddata-js | src/DataLayer/converters/tests/fixtures/FilterConverter.afm.fixtures.ts | 2316 | // (C) 2007-2020 GoodData Corporation
import { AFM } from "@gooddata/typings";
import { Granularities } from "../../../constants/granularities";
export const absoluteDateFilter: AFM.IAbsoluteDateFilter = {
absoluteDateFilter: {
dataSet: {
uri: "ds",
},
from: "2016-01-01",
... | bsd-3-clause |
dreadatour/Cactus | cactus/listener/polling.py | 2076 | # coding:utf-8
import os
import time
import threading
import six
from cactus.utils.filesystem import fileList
from cactus.utils.network import retry
class PollingListener(object):
def __init__(self, path, f, delay=.5, ignore=None):
self.path = path
self.f = f
self.delay = delay
s... | bsd-3-clause |
endlessm/chromium-browser | content/browser/service_worker/service_worker_disk_cache.cc | 3799 | // 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 "content/browser/service_worker/service_worker_disk_cache.h"
#include <utility>
#include "content/common/service_worker/service_worker_utils.h"... | bsd-3-clause |
giovannicode/djangoseller | users/urls.py | 554 | from django.conf.urls import url, patterns
import views
urlpatterns = patterns('',
url(r'signup', views.UserCreateView.as_view(), name='signup'),
url(r'signin', views.UserLoginView.as_view(), name='signin'),
url(r'signout', views.signout, name='signout'),
url(r'forgot-password', views.ForgotPasswordVi... | bsd-3-clause |
themayna/crawler | vendor/doctrine/mongodb/lib/Doctrine/MongoDB/Util/ReadPreference.php | 4514 | <?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS B... | bsd-3-clause |
SalzmanGroup/spree_product_documents | app/models/spree/product_document_product.rb | 167 | class Spree::ProductDocumentProduct < ActiveRecord::Base
belongs_to :product
belongs_to :product_document
validates_presence_of :product, :product_document
end
| bsd-3-clause |
nschloe/seacas | docs/ioss_html/namespaceanonymous__namespace_02Ioss__Map_8C_03.js | 367 | var namespaceanonymous__namespace_02Ioss__Map_8C_03 =
[
[ "IdPairCompare", "classanonymous__namespace_02Ioss__Map_8C_03_1_1IdPairCompare.html", "classanonymous__namespace_02Ioss__Map_8C_03_1_1IdPairCompare" ],
[ "IdPairEqual", "classanonymous__namespace_02Ioss__Map_8C_03_1_1IdPairEqual.html", "classanonymous__n... | bsd-3-clause |
nitikayad96/chandra_suli | chandra_suli/work_within_directory.py | 262 | import contextlib
import os
@contextlib.contextmanager
def work_within_directory(directory):
original_directory = os.getcwd()
os.chdir(directory)
try:
yield
except:
raise
finally:
os.chdir(original_directory)
| bsd-3-clause |
adem-team/advanced | lukisongroup/widget/views/pilotproject/_indexCRUD-experiment2.php | 19872 | <?php
use yii\helpers\Html;
use yii\helpers\Url;
use yii\bootstrap\Modal;
use yii\web\JsExpression;
use ptrnov\fullcalendar\FullcalendarScheduler;
use lukisongroup\widget\models\Pilotproject;
use yii\helpers\ArrayHelper;
/* $personalUser=Yii::$app->getUserOpt->Profile_user();
print_r($personalUser ); */
... | bsd-3-clause |
lewisodriscoll/sasview | src/sas/sasgui/perspectives/calculator/kiessig_calculator_panel.py | 9529 | """
This software was developed by the University of Tennessee as part of the
Distributed Data Analysis of Neutron Scattering Experiments (DANSE)
project funded by the US National Science Foundation.
See the license text in license.txt
copyright 2008, 2009, University of Tennessee
"""
import wx
import sys
from sas.... | bsd-3-clause |
grapto/Orchard.CloudBust | src/Orchard.Web/Global.asax.cs | 2075 | using System;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using Autofac;
using Orchard.Environment;
using Orchard.WarmupStarter;
namespace Orchard.Web {
// Note: For instructions on enabling IIS6 or IIS7 classic mode,
// visit http://go.microsoft.com/?LinkId=9394801
public class Mv... | bsd-3-clause |
nwjs/chromium.src | chrome/browser/google/google_brand_code_map_chromeos.cc | 29284 | // Copyright 2018 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/google/google_brand_code_map_chromeos.h"
#include "base/containers/flat_map.h"
#include "base/logging.h"
#include "base/no_destr... | bsd-3-clause |
frankwiles/django-admin-views | example_project/example_project/urls.py | 566 | from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = [
# Examples:
# url(r'^$', 'example_project.views.home', name='home'),
# url(r'^example_project/', include('example_project.foo.urls')... | bsd-3-clause |
NCIP/annotation-and-image-markup | AIMToolkit_v3.0.2_rv11/source/dcmtk-3.6.0/dcmnet/libsrc/scu.cc | 45969 | /*
*
* Copyright (C) 2008-2010, OFFIS e.V.
* All rights reserved. See COPYRIGHT file for details.
*
*
* This software and supporting documentation were developed by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
*
* Module: dcmnet
*
* Author: Michae... | bsd-3-clause |
AurionProject/Aurion | Product/Production/Gateway/PatientDiscovery_10/src/main/java/gov/hhs/fha/nhinc/patientdiscovery/_10/gateway/ws/EntityPatientDiscoveryUnsecured.java | 4925 | /*
* 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... | bsd-3-clause |
yephper/django | django/utils/html.py | 14802 | """HTML utilities suitable for global use."""
from __future__ import unicode_literals
import re
from django.utils import six
from django.utils.encoding import force_str, force_text
from django.utils.functional import keep_lazy, keep_lazy_text
from django.utils.http import RFC3986_GENDELIMS, RFC3986_SUBDELIM... | bsd-3-clause |
fyu/drn | lib/modules/batchnormsync.py | 2268 | from queue import Queue
import torch
from torch.nn import Module
from torch.nn.parameter import Parameter
from functions.batchnormp import BatchNormPFunction
class BatchNormSync(Module):
sync = True
checking_mode = False
def __init__(self, num_features, eps=1e-5, momentum=0.1, affine=True,
... | bsd-3-clause |
bigjun/mrpt | apps/mrpt-performance/perf-scan_matching.cpp | 9034 | /* +---------------------------------------------------------------------------+
| The Mobile Robot Programming Toolkit (MRPT) |
| |
| http://www.mrpt.org/ ... | bsd-3-clause |
KevinFasusi/supplychainpy | supplychainpy/_helpers/_cpu_info.py | 481 | import multiprocessing as mp
class CoreCount:
""" Manage cpu core count for setting multiprocessing tasks.
"""
def __init__(self):
self._core_count = self._get_core_count()
@property
def core_count(self) ->int:
"""Returns system core count.
"""
return self._core_c... | bsd-3-clause |
silkyar/570_Big_Little | build/ARM/debug/NoncoherentBus.cc | 178 | /*
* DO NOT EDIT THIS FILE! Automatically generated
*/
#include "base/debug.hh"
namespace Debug {
SimpleFlag NoncoherentBus("NoncoherentBus", "None");
} // namespace Debug
| bsd-3-clause |
ric2b/Vivaldi-browser | chromium/components/component_updater/installer_policies/autofill_states_component_installer.cc | 4399 | // 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 "components/component_updater/installer_policies/autofill_states_component_installer.h"
#include "base/files/file_path.h"
#include "base/files/f... | bsd-3-clause |
pdepend/pdepend | src/test/php/PDepend/Source/Parser/ASTAllocationExpressionParsingTest.php | 10629 | <?php
/**
* This file is part of PDepend.
*
* PHP Version 5
*
* Copyright (c) 2008-2017 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:
*
* * Red... | bsd-3-clause |
verma/PDAL | boost/boost/mpl/vector/aux_/preprocessed/plain/vector40.hpp | 67821 |
// Copyright Aleksey Gurtovoy 2000-2004
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// Preprocessed version of "boost/mpl/vector/vector40.hpp" header
// -- DO NOT modify by hand!
namespace pdalboos... | bsd-3-clause |
genome-vendor/apollo | src/java/jalview/gui/ProgressFrame.java | 1346 | package jalview.gui;
import jalview.analysis.*;
import jalview.io.*;
import java.awt.*;
import java.awt.event.*;
public class ProgressFrame extends Frame {
Object parent;
ProgressPanel pp;
TextArea ta;
TextAreaPrintStream taps;
ProgressWindowListener pal;
public ProgressFra... | bsd-3-clause |
zucchi/ZucchiUploader | src/ZucchiUploader/View/Helper/Uploader.php | 3287 | <?php
namespace ZucchiUploader\View\Helper;
use Zend\View\Helper\AbstractHtmlElement;
use Zend\Form\Element\Button;
use ZucchiUploader\Options\UploaderOptions;
class Uploader extends AbstractHtmlElement
{
protected $options;
/**
* @param $url
* @param array $attribs
* @param array $options
... | bsd-3-clause |
alexander-alvarez/django_polymorphic | example/pexp/management/commands/polybench.py | 2881 | # -*- coding: utf-8 -*-
"""
This module is a scratchpad for general development, testing & debugging
"""
import django
from django.core.management.base import NoArgsCommand
from django.db import connection
from pprint import pprint
import sys
from pexp.models import *
num_objects = 1000
def reset_queries():
if ... | bsd-3-clause |
psygate/CivModCore | src/main/java/vg/civcraft/mc/civmodcore/inventorygui/LClickable.java | 1246 | package vg.civcraft.mc.civmodcore.inventorygui;
import java.util.function.Consumer;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import vg.civcraft.mc.civmodcore.api.ItemAPI;
/**
* Convience class for lambda support in clickables. Unfortunately java doesn't
*... | bsd-3-clause |
vin120/vcos | backend/modules/voyagemanagement/controllers/ActiveConfigController.php | 11122 | <?php
namespace app\modules\voyagemanagement\controllers;
use Yii;
use yii\helpers\Url;
use yii\web\Controller;
use app\modules\voyagemanagement\components\Helper;
use app\modules\voyagemanagement\models\VCActive;
use app\modules\voyagemanagement\models\VCActiveI18n;
use app\modules\voyagemanagement\models\VCActiveDe... | bsd-3-clause |
timsnyder/bokeh | bokehjs/src/lib/models/tools/gestures/lasso_select_tool.ts | 3953 | import {SelectTool, SelectToolView} from "./select_tool"
import {CallbackLike1} from "../../callbacks/callback"
import {PolyAnnotation} from "../../annotations/poly_annotation"
import {PolyGeometry} from "core/geometry"
import {GestureEvent, KeyEvent} from "core/ui_events"
import {Keys} from "core/dom"
import {Arrayabl... | bsd-3-clause |
janisozaur/opentoonz | toonz/sources/translations/russian/tnzcore.ts | 2425 | <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="ru" sourcelanguage="en">
<context>
<name>QObject</name>
<message>
<location filename="../../common/tvrender/tpalette.cpp" line="197"/>
<source>colors</source>
<translation>цвета</translation>
</message>
... | bsd-3-clause |
kwahsog/clarity | src/main/java/skadistats/clarity/decoder/BitStream.java | 10130 | package skadistats.clarity.decoder;
import com.google.protobuf.ByteString;
import com.google.protobuf.ZeroCopy;
import org.xerial.snappy.Snappy;
import java.io.IOException;
public class BitStream {
private static final int COORD_INTEGER_BITS = 14;
private static final int COORD_FRACTIONAL_BITS = ... | bsd-3-clause |
tjouan/producer-core | lib/producer/core/tests/has_dir.rb | 166 | module Producer
module Core
module Tests
class HasDir < Test
def verify
fs.dir? arguments.first
end
end
end
end
end
| bsd-3-clause |
youtube/cobalt | third_party/devtools/front_end/bindings/ResourceScriptMapping.js | 15294 | /*
* Copyright (C) 2012 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... | bsd-3-clause |
treefrogframework/treefrog-framework | src/tinternetmessageheader.cpp | 7443 | /* Copyright (c) 2011-2019, AOYAMA Kazuharu
* All rights reserved.
*
* This software may be used and distributed according to the terms of
* the New BSD License, which is incorporated herein by reference.
*/
#include "thttputility.h"
#include "tsystemglobal.h"
#include <TInternetMessageHeader>
using namespace Tf;... | bsd-3-clause |
unt-libraries/catalog-api | django/sierra/manage.py | 374 | #!/usr/bin/env python
import os
import sys
import dotenv
from django.core.management import execute_from_command_line
if __name__ == '__main__':
# Use dotenv to load env variables from a .env file
dotenv.load_dotenv(os.path.join(os.path.dirname(__file__), 'sierra',
'settin... | bsd-3-clause |
MRPT/mrpt | samples/comms_http_client/test.cpp | 1777 | /* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| https://www.mrpt.org/ |
| |
| Cop... | bsd-3-clause |