repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
smartdevicelink/sdl_android
android/sdl_android/src/main/java/com/smartdevicelink/transport/utl/SdlDeviceListener.java
12302
/* * Copyright (c) 2020 Livio, 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 conditions and...
bsd-3-clause
NCIP/cagrid
cagrid/Software/core/caGrid/projects/globalModelExchange/test/src/org/cagrid/gme/service/dao/XMLSchemaInformationDaoTestCase.java
1899
package org.cagrid.gme.service.dao; import java.net.URI; import java.net.URISyntaxException; import java.util.Collection; import java.util.HashSet; import java.util.Set; import org.cagrid.gme.domain.XMLSchema; import org.cagrid.gme.domain.XMLSchemaDocument; import org.cagrid.gme.service.domain.XMLSchemaInformation; i...
bsd-3-clause
erhs-robotics/Robo2013
board/Board.py
1668
#!/usr/bin/python2 import sys import os sys.path.append('lib') import cv2 from cv2 import cv import numpy as np import freenect from imgproc import * from Kinect import Kinect import Lock imgproc = Imgproc(-1) kinect = Kinect() params = [cv.CV_IMWRITE_PNG_COMPRESSION, 8] SCALE_FACTOR = 3 msg = "" def ge...
bsd-3-clause
hainm/pythran
pythran/pythonic/time/time.hpp
531
#ifndef PYTHONIC_TIME_TIME_HPP #define PYTHONIC_TIME_TIME_HPP #include "pythonic/include/time/time.hpp" #include "pythonic/utils/proxy.hpp" #include <chrono> namespace pythonic { namespace time { double time() { std::chrono::time_point<std::chrono::steady_clock> tp = std::chrono::steady...
bsd-3-clause
cRhodan/RMIP
ROS_Nodes/distance_calculator/src/distance_calculator/msg/__init__.py
39
from ._distance_travelled_msg import *
bsd-3-clause
dynoweb/optionTrader
src/model/Result.java
4729
package model; import java.io.Serializable; import javax.persistence.*; import java.util.Date; /** * The persistent class for the results database table. * */ @Entity @Table(name="results") @NamedQuery(name="Result.findAll", query="SELECT r FROM Result r") public class Result implements Serializabl...
bsd-3-clause
youtube/cobalt
starboard/evergreen/x86/sbversion/13/gyp_configuration.py
932
# Copyright 2021 The Cobalt Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
bsd-3-clause
jajce/osquery
tools/tests/test_osqueryi.py
5569
#!/usr/bin/env python # Copyright (c) 2014, Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. fro...
bsd-3-clause
dineshkummarc/zf2
tests/Zend/Code/Reflection/DocBlockReflectionTest.php
4261
<?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
davidadamsphd/hellbender
src/main/java/org/broadinstitute/hellbender/utils/read/GoogleGenomicsReadToGATKReadAdapter.java
23444
package org.broadinstitute.hellbender.utils.read; import com.google.api.services.genomics.model.LinearAlignment; import com.google.api.services.genomics.model.Position; import com.google.api.services.genomics.model.Read; import com.google.cloud.dataflow.sdk.coders.CustomCoder; import com.google.cloud.dataflow.sdk.cod...
bsd-3-clause
maverick3609/yii2-ckeditor-widget
src/assets/ckeditor/build-config.js
3297
/** * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ /** * This file was added automatically by CKEditor builder. * You may re-use it at any time to build CKEditor again. * * If you would like to build CKEdi...
bsd-3-clause
Konnor95/la_boutique
views/site/login.php
2666
<?php use yii\bootstrap\ActiveForm; use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $form yii\bootstrap\ActiveForm */ /* @var $model app\models\LoginForm */ $this->title = 'Login'; $this->params['breadcrumbs'][] = $this->title; ?> <section class="login_register"> <div class="container"> <div ...
bsd-3-clause
vadimtk/chrome4sdp
chrome/android/java/src/org/chromium/chrome/browser/ChromeSwitches.java
8562
// 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. package org.chromium.chrome.browser; /** * Contains all of the command line switches that are specific to the chrome/ * portion of Chromium on Android....
bsd-3-clause
devoyster/FasterTests
Source/Core/Integration/Nunit/SetupFixturesContexts/SetupFixtures/SucceededSetupFixtureState.cs
1468
using System; using FasterTests.Core.Interfaces.Models; namespace FasterTests.Core.Integration.Nunit.SetupFixturesContexts.SetupFixtures { public class SucceededSetupFixtureState : ISetupFixtureState { private readonly Lazy<ISetupFixtureAdapter> _lazyAdapter; private bool _isTeardownExecuted; ...
bsd-3-clause
leighpauls/k2cro4
third_party/WebKit/Tools/Scripts/webkitpy/common/read_checksum_from_png_unittest.py
3633
#!/usr/bin/env python # Copyright (C) 2011 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: # # 1. Redistributions of source code must retain the above copyright # notice, this lis...
bsd-3-clause
mkloubert/phpLINQ
System/IO/DirectoryNotFoundException.php
4551
<?php /********************************************************************************************************************** * phpLINQ (https://github.com/mkloubert/phpLINQ) * * ...
bsd-3-clause
hashrock/JavaOutlineEditor
src/com/organic/maynard/outliner/menus/outline/MoveLeftMenuItem.java
3017
/** * Copyright (C) 2000, 2001 Maynard Demmon, maynard@organic.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 copyrig...
bsd-3-clause
daejunpark/jsaf
third_party/pmd/src/test/java/net/sourceforge/pmd/lang/ParserOptionsTest.java
2859
package net.sourceforge.pmd.lang; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotSame; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; import net.sourceforge.pmd.lang.ParserOptions; import ...
bsd-3-clause
Treeway/sandbox
common/tb/sdk/top/domain/WaybillApplyNewRequest.php
450
<?php /** * 面单申请 * @author auto create */ class WaybillApplyNewRequest { /** * TOP appkey **/ public $appKey; /** * 物流服务商编码 **/ public $cpCode; /** * -- **/ public $cpId; /** * 使用者ID **/ public $realUserId; /** * 商家ID **/ public $sellerId; /** * 发货地址 **/ public...
bsd-3-clause
synesissoftware/recls
src/impl.entryinfo.cpp
27023
/* ///////////////////////////////////////////////////////////////////////// * File: impl.entryinfo.cpp * * Purpose: Implementation of the create_entryinfo() function. * * Created: 31st May 2004 * Updated: 24th January 2017 * * Home: http://recls.org/ * * Copyright (c) 2004-2017, Mat...
bsd-3-clause
godaddy/spree_madmimi
spec/services/mad_mimi_spec.rb
13043
require 'spec_helper' describe MadMimi do subject { MadMimi } before(:each) do @originals = [:access_token, :refresh_token, :webform_id].inject({}) do |hash, attribute| hash.tap do |h| h[attribute] = ::Spree::MadMimi::Config[attribute] ::Spree::MadMimi::Config[attribute] = '' end ...
bsd-3-clause
lciolecki/webshot
application/models/Entity/Service.php
5810
<?php namespace Entity; use Doctrine\ORM\Mapping as ORM; /** * Service * * @ORM\Table(name="service", * uniqueConstraints={ * @ORM\UniqueConstraint(name="UNIQUE_name", columns={"name"}), * @ORM\UniqueConstraint(name="UNIQUE_hash", columns={"hash"}), * @ORM\UniqueConstraint(name="UNIQUE_secret...
bsd-3-clause
hurduring/smolyakoff
backend/views/address/address-widget/createMicroDistrictModal.php
527
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model common\models\address\MicroDistrict */ $this->title = Yii::t('app', 'Создать Микрорайон', [ 'modelClass' => 'MicroDistrict', ]); ?> <div class="microdistrict-create"> <h2><?= Html::encode($this->title) ?></h2> <?= $th...
bsd-3-clause
wenlongzhou/blog
protected/modules/admin/views/article/add.php
5514
<head> <link rel="stylesheet" href="<?php echo yii::app()->request->baseUrl;?>/assets/editor/css/editormd.css" /> </head> <br/> <div class="panel panel-default"> <div class="panel-heading"> <a href='<?php echo $this->createUrl('article/index') ?>' style="color:#666">返回列表</a> </div> <di...
bsd-3-clause
kohler/tamer
tamer/http.hh
14524
#ifndef TAMER_HTTP_HH #define TAMER_HTTP_HH 1 #include "fd.hh" #include "http_parser.h" #include <vector> #include <string> #include <sstream> #include <memory> #include <unordered_map> #include <time.h> namespace tamer { class http_parser; struct http_header { std::string name; std::string value; inline h...
bsd-3-clause
soonhokong/cdash
ajax/showtesttimegraph.php
4711
<?php /*========================================================================= Program: CDash - Cross-Platform Dashboard System Module: $Id: showtesttimegraph.php 3401 2013-11-27 12:19:01Z jjomier $ Language: PHP Date: $Date: 2013-11-27 07:19:01 -0500 (Wed, 27 Nov 2013) $ Version: $Revision: ...
bsd-3-clause
Drewno90/blotnix
src/main/java/controller/Login_Controller.java
251
package controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; @Controller public class Login_Controller { @RequestMapping("/log") public String index() { return "log"; } }
bsd-3-clause
benhastings/SeGrid_EC2
sdTestCapacity.py
14008
from selenium import webdriver import selenium.webdriver.support.ui as ui from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.action_chains import ActionChains import time import datetime import csv import random import sys import urllib2 #from pyvirtualdisplay import Display #--- Start Virt...
bsd-3-clause
16nsk/kohana-egotist
modules/oauth/classes/kohana/oauth/token/access.php
510
<?php defined('SYSPATH') or die('No direct script access.'); /** * OAuth Access Token * * @package Kohana/OAuth * @category Token * @author Kohana Team * @copyright (c) 2010 Kohana Team * @license http://kohanaframework.org/license * @since 3.0.7 */ class Kohana_OAuth_Token_Access extends OAu...
bsd-3-clause
manchuck/five-foot-step
public/js/jquery.bootstrap-growl.min.js
1976
(function() { var $; $ = jQuery; $.bootstrapGrowl = function(message, options) { var $alert, css, offsetAmount; options = $.extend({}, $.bootstrapGrowl.default_options, options); $alert = $("<div>"); $alert.attr("class", "bootstrap-growl alert"); if (options.type) { $alert.addClass("a...
bsd-3-clause
jguittard/zpress
cookbooks/vhost/recipes/default.rb
237
include_recipe "apache2" web_app "vagrant_vhost" do server_port 80 directory_options ["FollowSymLinks","MultiViews"] allow_override "FileInfo" server_name node['hostname'] server_aliases [node['fqdn']] docroot "/vagrant" end
bsd-3-clause
bg0jr/Maui
src/Data/Maui.Data/Recognition/Html/HtmlExtractionSettings.cs
936
using System; using System.Collections.Generic; using System.Text; using System.Data; using System.Windows.Forms; using System.Globalization; namespace Maui.Data.Recognition.Html { /// <summary> /// Defines the settings used to extract data from a Html document. /// See <c>ExtractTable</c> meth...
bsd-3-clause
TheLuckyOwl/rshell
src/RShell.cpp
1378
#include "RShell.h" #include <unistd.h> #include <limits.h> using namespace std; string RShell::readCommandLine() { string tempString; getline(cin, tempString); return tempString; } void RShell::inputLoop() { exitStatus = 0; char hostname[HOST_NAME_MAX]; char username[LOGIN_NAME_MAX]; /*The following...
bsd-3-clause
ridhobc/sitampan
backend/modules/bcf15/views/bcf15/cetaksppdf.php
7586
<?php use yii\helpers\Html; use yii\grid\GridView; use yii\bootstrap\Modal; use backend\models\Bcf15DetailCont; /* @var $this yii\web\View */ /* @var $searchModel backend\models\TrainingSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = 'Cetak BCF 1.5'; $this->params['breadcrumbs'][] = $t...
bsd-3-clause
mikejurka/engine
shell/platform/android/io/flutter/embedding/android/FlutterActivity.java
41572
// Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package io.flutter.embedding.android; import static io.flutter.embedding.android.FlutterActivityLaunchConfigs.DART_ENTRYPOINT_META_DATA_KEY; import static...
bsd-3-clause
sordonia/rnn-lm
utils.py
6328
import numpy import adam import theano import theano.tensor as T from collections import OrderedDict PRINT_VARS = True def DPrint(name, var): if PRINT_VARS is False: return var return theano.printing.Print(name)(var) def sharedX(value, name=None, borrow=False, dtype=None): if dtype is None: ...
bsd-3-clause
verma/PDAL
src/drivers/nitf/NitfFile.hpp
3261
/****************************************************************************** * Copyright (c) 2012, Michael P. Gerlek (mpg@flaxen.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: * * ...
bsd-3-clause
aYukiSekiguchi/ACCESS-Chromium
chrome/test/perf/sunspider_uitest.cc
4177
// 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/command_line.h" #include "base/file_util.h" #include "base/json/json_value_serializer.h" #include "base/path_service.h" #include "base/...
bsd-3-clause
patriziotufarolo/ispconfig
interface/lib/classes/db_mysql.inc.php
22699
<?php /* Copyright (c) 2005, Till Brehm, projektfarm Gmbh 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...
bsd-3-clause
Bomberlt/fhir-net-api
src/Hl7.Fhir.Specification/XPath/JsonXPathNavigator.cs
16147
/* * Copyright (c) 2014, Furore (info@furore.com) and contributors * See the file CONTRIBUTORS for details. * * This file is licensed under the BSD 3-Clause license */ using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Sy...
bsd-3-clause
minhtienct/belong_mockup
init_autoloader.php
3464
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/ZendSkeletonApplication 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 Lic...
bsd-3-clause
Gustik/yii2-app-light
views/site/resetPassword.php
872
<?php /* @var $this yii\web\View */ /* @var $form yii\bootstrap\ActiveForm */ /* @var $model \app\models\ResetPasswordForm */ use yii\helpers\Html; use yii\bootstrap\ActiveForm; $this->title = 'Восстановление пароля'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="site-reset-password"> <h1><?= Htm...
bsd-3-clause
uwdata/vega-lite
src/compile/selection/interval.ts
8653
import {NewSignal, OnEvent, Stream} from 'vega'; import {array, stringValue} from 'vega-util'; import {SelectionCompiler, SelectionComponent, STORE, TUPLE, unitName} from '.'; import {ScaleChannel, X, Y} from '../../channel'; import {warn} from '../../log'; import {hasContinuousDomain} from '../../scale'; import {Selec...
bsd-3-clause
oyoy8629/yii2.new
backend/models/ApiMonthSetting.php
3014
<?php namespace backend\models; use backend\helpers\MonthLogic; use kartik\helpers\Html; use Yii; use \yii\behaviors\TimestampBehavior; use yii\db\ActiveRecord; /** * This is the model class for table "{{%api_month_detail}}". * * @property string $id * @property string $start * @property string $end * @property...
bsd-3-clause
laprej/ROSS-CXX
models/phold/phold.cpp
4620
#include "phold.h" tw_peid phold_map(tw_lpid gid) { return (tw_peid) gid / g_tw_nlp; } void phold_init(phold_state * s, tw_lp * lp) { int i; new (s) phold_state; if( stagger ) { for (i = 0; i < g_phold_start_events; i++) { tw_event_send( tw_event_new(lp->gid, ...
bsd-3-clause
weigj/django-multidb
django/contrib/admin/util.py
7337
from django.core.exceptions import ObjectDoesNotExist from django.db import models from django.utils.html import escape from django.utils.safestring import mark_safe from django.utils.text import capfirst from django.utils.encoding import force_unicode from django.utils.translation import ugettext as _ def quote(s): ...
bsd-3-clause
sharaf84/digi
common/models/custom/search/Brand.php
2663
<?php namespace common\models\custom\search; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; /** * Tree represents the model behind the search form about `common\models\base\Tree`. */ class Brand extends \common\models\custom\Brand { /** * @inheritdoc */ public function rules() { ...
bsd-3-clause
toasttab/jdbishard
jdbishard-sharding/src/main/java/jdbishard/sharding/IdOnlyShardNamer.java
214
package jdbishard.sharding; public class IdOnlyShardNamer implements HumanFriendlyShardNamer { @Override public String nameShard(ShardInfo shardInfo) { return shardInfo.id().toString(); } }
bsd-3-clause
char0n/ramda-adjunct
src/liftF.js
1398
import { curryN } from 'ramda'; import liftFN from './liftFN'; /** * "lifts" a function to be the specified arity, so that it may "map over" objects that satisfy * the fantasy land Apply spec of algebraic structures. * * Lifting is specific for {@link https://github.com/scalaz/scalaz|scalaz} and {@link http://fun...
bsd-3-clause
hu2008yinxiang/phalcon-pure-php
src/Phalcon/Mvc/Model/Validator/PresenceOf.php
1060
<?php namespace Phalcon\Mvc\Model\Validator { /** * Phalcon\Mvc\Model\Validator\PresenceOf * * Allows to validate if a filed have a value different of null and empty string ("") * * <code> * use Phalcon\Mvc\Model\Validator\PresenceOf; * * class Subscriptors exten...
bsd-3-clause
mural/spm
SPM/src/main/java/com/spm/android/common/listener/MapperAsyncOnClickListener.java
856
package com.spm.android.common.listener; import android.app.Activity; import android.view.View; import android.view.View.OnClickListener; import com.spm.common.annotation.FieldModelMapper; import com.spm.common.utils.ThreadUtils; /** * Asynchronous {@link OnClickListener} * * @author Luciano Rey */ public abstra...
bsd-3-clause
highweb-project/highweb-webcl-html5spec
chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc
9703
// 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. #include "chrome/browser/ui/views/frame/immersive_mode_controller_ash.h" #include "ash/shell.h" #include "ash/wm/immersive_revealed_lock.h" #include "ash...
bsd-3-clause
hongqipiaoyang/houtai
views/index/index.php
84
<?php use yii\helpers\Html; echo 'hello world'; ?>
bsd-3-clause
olivierverdier/sfepy
sfepy/terms/terms_constraints.py
3253
from sfepy.terms.terms import * from sfepy.linalg import dot_sequences class NonPenetrationTerm(Term): r""" :Description: Non-penetration condition in the weak sense. :Definition: .. math:: \int_{\Gamma} \lambda \ul{n} \cdot \ul{v} \mbox{ , } \int_{\Gamma} \hat\lambda \ul{n} \cdot ...
bsd-3-clause
zvelo/pantheios
examples/cpp/contract/example.cpp.contract.PANTHEIOS_MESSAGE_ASSERT/example.cpp.contract.PANTHEIOS_MESSAGE_ASSERT.cpp
2137
/* ///////////////////////////////////////////////////////////////////////// * File: examples/cpp/contract/example.cpp.contract.PANTHEIOS_MESSAGE_ASSERT/example.cpp.contract.PANTHEIOS_MESSAGE_ASSERT.cpp * * Purpose: C++ example program for Pantheios. Demonstrates: * * - use of Panthe...
bsd-3-clause
straight-street/straight-street
_reporters.php
3537
<? abstract class ReporterABC { function __construct($sql, $wide=False, $getHdr=null, $getRow=null) { $this->sql = $sql; $this->wide = $wide; $this->getHeader = $getHdr; $this->getRow = $getRow; } function __destruct() { } abstr...
bsd-3-clause
cfobel/sconspiracy
Python/racy/plugins/libext/libextproject.py
19035
# -*- coding: UTF8 -*- # ***** BEGIN LICENSE BLOCK ***** # Sconspiracy - Copyright (C) IRCAD, 2004-2010. # Distributed under the terms of the BSD Licence as # published by the Open Source Initiative. # ****** END LICENSE BLOCK ****** import os import time import SCons.Defaults import SCons.Node from os.path impor...
bsd-3-clause
mikejurka/engine
lib/ui/compositing/scene_host.cc
7988
// Copyright 2013 The Flutter 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 "flutter/lib/ui/compositing/scene_host.h" #include <lib/ui/scenic/cpp/view_token_pair.h> #include <lib/zx/eventpair.h> #include <third_party/toni...
bsd-3-clause
helderfpires/io-tools
easystream/src/main/java/com/gc/iotools/stream/is/CloseOnceInputStream.java
2295
package com.gc.iotools.stream.is; /* * Copyright (c) 2008, 2014 Gabriele Contini. This source code is released * under the BSD License. */ import java.io.FilterInputStream; import java.io.IOException; import java.io.InputStream; /** * <p> * A <code>CloseOnceInputStream</code> contains some other input stream, whi...
bsd-3-clause
ComponentFactory/Krypton
Source/Krypton Components/ComponentFactory.Krypton.Navigator/View Draw/ViewDrawNavRibbonTab.cs
27773
// ***************************************************************************** // // © Component Factory Pty Ltd 2017. All rights reserved. // The software and associated documentation supplied hereunder are the // proprietary information of Component Factory Pty Ltd, 13 Swallows Close, // Mornington, Vic 3931...
bsd-3-clause
globocom/database-as-a-service
dbaas/maintenance/scripts/filer_migrate.py
4891
from datetime import datetime from socket import gethostname from notification.models import TaskHistory from logical.models import Database from util.providers import get_filer_migrate_steps from workflow.workflow import steps_for_instances from maintenance.models import FilerMigrate as FilerMigrateManager class Fil...
bsd-3-clause
broadinstitute/firecloud-orchestration
src/main/scala/org/broadinstitute/dsde/firecloud/dataaccess/GoogleServicesDAO.scala
2316
package org.broadinstitute.dsde.firecloud.dataaccess import java.io.InputStream import akka.http.scaladsl.model.HttpResponse import com.google.api.services.storage.model.Bucket import org.broadinstitute.dsde.firecloud.model.{ObjectMetadata, WithAccessToken} import org.broadinstitute.dsde.firecloud.service.PerRequest.P...
bsd-3-clause
0X1A/kuma
src/flip.cpp
642
#include "flip.h" using namespace kuma; void Flippable::flip_vertical() { if (orientation != Flip::Vertical) { orientation = Flip::Vertical; } else { orientation_reset(); } } void Flippable::flip_horizontal() { if (orientation != Flip::Horizontal) { orientation = Flip::Horizontal; } else { orientation_r...
bsd-3-clause
elorian/crm.inreserve.kz
protected/modules/balance/views/merchantBalanceBackend/_form.php
3801
<?php /** * Отображение для _form: * * @category YupeView * @package yupe * @author Yupe Team <team@yupe.ru> * @license https://github.com/yupe/yupe/blob/master/LICENSE BSD * @link http://yupe.ru * * @var $model MerchantBalance * @var $form TbActiveForm * @var $this MerchantBalanceBac...
bsd-3-clause
mstriemer/zamboni
mkt/site/log.py
19207
from inspect import isclass from django.conf import settings from django.core.files.storage import get_storage_class from celery.datastructures import AttributeDict from tower import ugettext_lazy as _ __all__ = ('LOG', 'LOG_BY_ID', 'LOG_KEEP',) class _LOG(object): action_class = None class CREATE_ADDON(_LOG...
bsd-3-clause
youtube/cobalt
third_party/ots/src/silf.cc
35530
// Copyright (c) 2009-2017 The OTS 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 "silf.h" #include "name.h" #include "lz4.h" #include <cmath> namespace ots { bool OpenTypeSILF::Parse(const uint8_t* data, size_t length, ...
bsd-3-clause
jjfiv/waltz
base/src/main/java/edu/umass/cs/ciir/waltz/example/CountComparisonQuery.java
957
package edu.umass.cs.ciir.waltz.example; import ciir.jfoley.chai.collections.list.IntList; import edu.umass.cs.ciir.waltz.dociter.movement.PostingMover; import edu.umass.cs.ciir.waltz.index.Index; /** * @author jfoley */ public class CountComparisonQuery { // Find me documents where Term A occurs more than Term B...
bsd-3-clause
mikehelmick/CascadeLMS
db/migrate/20111014033511_create_feeds.rb
356
class CreateFeeds < ActiveRecord::Migration def self.up create_table :feeds do |t| t.column :user_id, :integer, :null => true t.column :course_id, :integer, :null => true end add_index(:feeds, [:user_id], :unique => true) add_index(:feeds, [:course_id], :unique => true) end def self.d...
bsd-3-clause
joshblour/spree_no_shipping
lib/spree_no_shipping/version.rb
48
module SpreeNoShipping VERSION = "0.0.04" end
bsd-3-clause
binzume/mikumikudroid
src/jp/gauzau/MikuMikuDroid/util/MotionDetector.java
835
package jp.gauzau.MikuMikuDroid.util; import android.hardware.Sensor; import android.hardware.SensorEvent; public class MotionDetector { private float[] gravHistory = new float[10]; // Gravity (G) private int gravHistoryPos = 0; float[] mAxV = new float[3]; public boolean jump = false; public void onSensorEven...
bsd-3-clause
nerminramichhinc/multiplex
backend/models/GenreForm.php
336
<?php namespace backend\models; use Yii; use yii\base\Model; class GenreForm extends Model { public $genre_name; public function rules() { return [ //genre name is required ['genre_name', 'required'], ['genre_name', 'string'], ]; ...
bsd-3-clause
bbhlondon/s3-auth-js
src/client/register.js
1579
import Logger from '../logger'; import { ERROR_SERVICE_WORKER_NOT_SUPPORTED, ERROR_SERVICE_WORKER_ALREADY_EXISTS, ERROR_SERVICE_WORKER_REGISTRATION_FAILED } from '../consts'; import { supportsServiceWorker, hasServiceWorker } from './_register'; /** * Registers Service Worker * * @param {String} swPath * @retur...
bsd-3-clause
za4me/blog.dev
frontend/assets/AppAsset.php
417
<?php namespace frontend\assets; use yii\web\AssetBundle; /** * Main frontend application asset bundle. */ class AppAsset extends AssetBundle { public $basePath = '@webroot'; public $baseUrl = '@web'; public $css = [ 'css/theme.css', 'css/site.css', ]; public $js = [ ]; ...
bsd-3-clause
sidrakesh93/grpc
tools/run_tests/run_tests.py
18892
#!/usr/bin/env python # 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 o...
bsd-3-clause
305806761/babyfs
models/TermModel.php
2801
<?php /** * Created by PhpStorm. * User: malil * Date: 2016/11/17 * Time: 15:09 */ namespace app\models; use app\models\base\BaseModel; use Yii; class TermModel extends BaseModel { public function rules() { return [ //[['id'], 'integer', 'min' => 0, 'max' => 2147483647], ...
bsd-3-clause
asamgir/openspecimen
WEB-INF/src/com/krishagni/catissueplus/core/common/events/ResponseEvent.java
2423
package com.krishagni.catissueplus.core.common.events; import com.krishagni.catissueplus.core.common.errors.ErrorCode; import com.krishagni.catissueplus.core.common.errors.OpenSpecimenException; public class ResponseEvent<T> { private T payload; private boolean forceTxCommitEnabled; private OpenSpecimenExcep...
bsd-3-clause
cafephin/mygeneration
src/mymeta/VistaDB/Source/vnDataAdapter.cs
10958
#if !IGNORE_VISTA using System; using System.Data; using System.Data.Common; using System.ComponentModel; namespace Provider.VistaDB { /// <summary> /// Represents a set of data commands and a database connection that are used to fill the DataSet /// and update a VistaDB database. This class cannot be inherited....
bsd-3-clause
naohisas/KVS
Source/Core/Visualization/Exporter/PointExporter.cpp
1743
/*****************************************************************************/ /** * @file PointExporter.cpp * @author Naohisa Sakamoto */ /*****************************************************************************/ #include "PointExporter.h" #include <kvs/Message> namespace kvs { /*======================...
bsd-3-clause
rkimball/tinytcp
tcp_stack/ProtocolIPv4.cpp
7571
//---------------------------------------------------------------------------- // Copyright(c) 2015-2021, Robert Kimball // 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. Redistribution...
bsd-3-clause
opentoonz/dwango_opentoonz_plugins
ImageQuilting/src/main.cpp
16047
#define TNZU_DEFINE_INTERFACE #include <toonz_utility.hpp> #include <opencv2/imgproc/imgproc.hpp> class MyFx : public tnzu::Fx { public: // // PORT // enum { PORT_BACKGROUND, PORT_FOREGROUND, PORT_COUNT, }; int port_count() const override { return PORT_COUNT; } char const* port_name(int i)...
bsd-3-clause
fintroll/mdkp
config/db.php
177
<?php return [ 'class' => 'yii\db\Connection', 'dsn' => 'mysql:host=localhost;dbname=mdkr', 'username' => 'root', 'password' => '', 'charset' => 'utf8', ];
bsd-3-clause
sts-CAD-Software/PCB-Investigator-Scripts
Main-Folder/Calculate Job Bounds.cs
2456
//----------------------------------------------------------------------------------- // PCB-Investigator Automation Script // Created on 2014-04-24 // Autor support@easylogix.de // www.pcb-investigator.com // SDK online reference http://www.pcb-investigator.com/sites/default/files/documents/InterfaceDocumentation...
bsd-3-clause
marmolejo/chromium
url/url_canon_internal.cc
10757
// 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 "url/url_canon_internal.h" #include <errno.h> #include <stdlib.h> #include <cstdio> #include <string> namespace url { namespace { // Overrid...
bsd-3-clause
davidadamsphd/hellbender
src/test/java/org/broadinstitute/hellbender/tools/walkers/bqsr/AnalyzeCovariatesIntegrationTest.java
12104
package org.broadinstitute.hellbender.tools.walkers.bqsr; import org.broadinstitute.hellbender.CommandLineProgramTest; import org.broadinstitute.hellbender.exceptions.UserException; import org.broadinstitute.hellbender.tools.IntegrationTestSpec; import org.broadinstitute.hellbender.utils.Utils; import org.testng.annot...
bsd-3-clause
smartdevicelink/sdl_android
base/src/main/java/com/smartdevicelink/proxy/rpc/OnHMIStatus.java
10595
/* * Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, 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 no...
bsd-3-clause
threerings/depot
src/test/java/com/samskivert/depot/TestCacheAdapter.java
3054
// // Depot library - a Java relational persistence library // https://github.com/threerings/depot/blob/master/LICENSE package com.samskivert.depot; import java.io.Serializable; import java.util.Collections; import java.util.Iterator; import java.util.List; import java.util.Map; import com.google.common.collect.List...
bsd-3-clause
hyakugei/rot.js
lib/display/display.js
8286
import Hex from "./hex.js"; import Rect from "./rect.js"; import Tile from "./tile.js"; import TileGL from "./tile-gl.js"; import Term from "./term.js"; import * as Text from "../text.js"; import { DEFAULT_WIDTH, DEFAULT_HEIGHT } from "../constants.js"; const BACKENDS = { "hex": Hex, "rect": Rect, "tile": T...
bsd-3-clause
sinemetu1/chronos
ui/modules/www/SiteMain/SiteMain.js
1240
// import import React, {Component, PropTypes} from 'react'; import Helmet from 'react-helmet'; import config from '../config.js'; import cn from 'classnames'; import styles from './SiteMain.css'; import {connect} from 'react-redux'; import RunsList from '../RunsList/RunsList.js'; // fns function formatTitle(title) {...
bsd-3-clause
ozak/geopandas
examples/plotting_basemap_background.py
2671
""" Adding a background map to plots -------------------------------- This example shows how you can add a background basemap to plots created with the geopandas ``.plot()`` method. This makes use of the `contextily <https://github.com/darribas/contextily>`__ package to retrieve web map tiles from several sources (Op...
bsd-3-clause
clime/pimcore-custom
static/js/pimcore/object/classes/data/numeric.js
1710
/** * Pimcore * * 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://www.pimcore.org/license * * @copyright Copyright (c) 2009-2010 elements.at New Media Solutions ...
bsd-3-clause
rsamec/business-rules-engine
src/customValidators/ParamValidator.ts
3840
///<reference path='../../typings/underscore/underscore.d.ts'/> ///<reference path='../../typings/q/q.d.ts'/> ///<reference path='../../typings/business-rules-engine/business-rules-engine.d.ts'/> import Q = require("q"); import _ = require("underscore"); /** * @ngdoc object * @name ParamValidator * * @requires Q...
bsd-3-clause
cloudqiu1110/tinype
external/glslang/MachineIndependent/ParseHelper.cpp
264048
// //Copyright (C) 2002-2005 3Dlabs Inc. Ltd. //Copyright (C) 2012-2013 LunarG, 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 ...
bsd-3-clause
mdedetrich/scalajs-antdesign
src/main/scala/scalajs/antdesign/Affix.scala
1345
package scalajs.antdesign import japgolly.scalajs.react.{CallbackTo, React, ReactComponentU_, ReactNode} import scala.scalajs.js import scala.scalajs.js.{Dynamic, Object} /** * @see https://ant.design/components/affix/ * @note Children of [[Affix]] can not be position: absolute, but you can set [[Affix]] as posi...
bsd-3-clause
paksv/vijava
src/com/vmware/vim25/InsufficientPerCpuCapacity.java
1847
/*================================================================================ 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
genome-vendor/apollo
src/java/apollo/datamodel/EvidenceFinder.java
1087
package apollo.datamodel; import java.util.*; public class EvidenceFinder implements java.io.Serializable { private FeatureSetI fset; private Hashtable nameHash; public EvidenceFinder(FeatureSetI fset) { setFeatureSet(fset); } public void setFeatureSet(FeatureSetI fset) { this.fset = fset; ...
bsd-3-clause
vertica-as/Vertica.Utilities
src/Vertica.Utilities/Comparisons/Eq.cs
371
using System; namespace Vertica.Utilities.Comparisons { public static class Eq<T> { public static ChainableEqualizer<T> By<K>(Func<T, K> keySelector) { return new SelectorEqualizer<T, K>(keySelector); } public static ChainableEqualizer<T> By(Func<T, T, bool> equals, Func<T, int> hasher) { return ne...
bsd-3-clause
nbeckman/nolacoaster
Megabudget/src/com/nbeckman/megabudget/FullscreenActivity.java
18659
package com.nbeckman.megabudget; import java.io.IOException; import java.net.MalformedURLException; import java.net.URI; import java.net.URISyntaxException; import java.net.URL; import java.util.Calendar; import java.util.List; import com.nbeckman.megabudget.util.SystemUiHider; import com.google.android.gms.auth.Goo...
bsd-3-clause
anwarjaved/Innosparx
GoogleSDK/Analytics/PageTrackingResponse.cs
127
namespace GoogleSDK.Analytics { public class PageTrackingResponse : BaseResponse<PageTrackingResultTotal> { } }
bsd-3-clause
angavrilov/olmar
elsa/implconv.cc
12278
// implconv.cc see license.txt for copyright and terms of use // code for implconv.h #include "implconv.h" // this module #include "cc_env.h" // Env #include "variable.h" // Variable #include "overload.h" // resolveOverload #include "trace.h" // tracingSys // proto...
bsd-3-clause
vega/vega-parser
schema/legend.js
4100
import {layoutAlign} from './layout'; import { numberValue, stringValue, colorValue, alignValue, baselineValue, fontWeightValue, numberOrSignal, stringOrSignal, arrayOrSignal } from './util'; export default { "defs": { "guideEncode": { "type": "object", "properties": { "name": {"type": ...
bsd-3-clause