repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
flod1/FacebookApi | src/FbBasic/GraphNodes/PageStartInfo.php | 655 | <?php
/**
* Created by IntelliJ IDEA.
* User: Besitzer
* Date: 12.09.2016
* Time: 08:00
*/
namespace FbBasic\GraphNodes;
use Facebook\GraphNodes\GraphNode;
class PageStartInfo extends GraphNode
{
protected static $graphObjectFields = [
"type",
"date",
];
/**
* @var array Maps ... | bsd-3-clause |
QuorumDMS/grapesjs | test/specs/style_manager/view/SectorView.js | 2422 | import SectorView from 'style_manager/view/SectorView';
import Sector from 'style_manager/model/Sector';
describe('SectorView', () => {
var fixtures;
var model;
var view;
beforeEach(() => {
model = new Sector();
view = new SectorView({
model
});
document.body.innerHTML = '<div id="fixtur... | bsd-3-clause |
Klutzdon/SIOTS_HHZX | WindowsUI.TQS/SystemForm/MessageDialog.cs | 1481 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsUI.TQS.SystemForm
{
public partial class MessageDialog : Form
{
public MessageDialog()
{
... | bsd-3-clause |
luotuo44/FlvExploere | Header.cpp | 908 | //Author: luotuo44@gmail.com
//Use of this source code is governed by a BSD-style license
#include"Header.h"
#include<string>
#include<exception>
#include<stdexcept>
#include<fstream>
#include<iostream>
#include"helper.h"
using uchar = unsigned char;
namespace FLV
{
Header::Header(std::ifstream &in)
: m_i... | bsd-3-clause |
rbelouin/go.js | src/models/board.js | 3222 | function initBoard() {
var Board = function(size) {
var range = _.range(size);
var board = {};
_.each(range, function(x) {
_.each(range, function(y) {
Board.setIntersection(board, x, y, Board.types.EMPTY);
});
});
return board;
}
Board.types = {
EMPTY: "EMPTY",
B... | bsd-3-clause |
leesab/irods | iRODS/lib/api/include/phyBundleColl.hpp | 3540 | /*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
/* phyBundleColl.h - This file may be generated by a program or
* script
*/
#ifndef PHY_BUNDLE_COLL_HPP
#define PHY_BUNDLE_COLL_HPP
/* This is a Object File ... | bsd-3-clause |
NWebsec/NWebsec | src/NWebsec.Mvc.Common/Helpers/CspConfigurationOverrideHelper.cs | 8410 | // Copyright (c) André N. Klingsheim. See License.txt in the project root for license information.
using System;
using System.Security.Cryptography;
using NWebsec.Core.Common.HttpHeaders.Configuration;
using NWebsec.Core.Common.Web;
using NWebsec.Mvc.Common.Csp;
namespace NWebsec.Mvc.Common.Helpers
{
public clas... | bsd-3-clause |
handsomegyr/ent | module/Idatabase/src/Idatabase/Controller/StatisticController.php | 15311 | <?php
/**
* iDatabase项目内数据集合管理
*
* @author young
* @version 2013.11.19
*
*/
namespace Idatabase\Controller;
use My\Common\Controller\Action;
use Zend\Json\Json;
class StatisticController extends Action
{
private $_collection;
private $_collection_id;
private $_project_id;
... | bsd-3-clause |
knewter/ansuz | db/migrate/20080831171235_add_photo_albums_and_photo_album_photos.rb | 534 | class AddPhotoAlbumsAndPhotoAlbumPhotos < ActiveRecord::Migration
def self.up
create_table :photo_albums do |t|
t.string :name
end
create_table :photo_album_photos do |t|
t.integer :photo_album_id
t.string :title
t.text :caption
t.string :photo_album_photo_image_file_na... | bsd-3-clause |
xamarin/ServiceStack | src/ServiceStack.Common/ServiceModel/Serialization/XmlSerializableSerializer.cs | 1039 | using System;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Xml;
using ServiceStack.DesignPatterns.Serialization;
using ServiceStack.ServiceModel.Support;
namespace ServiceStack.ServiceModel.Serialization
{
public class XmlSerializableSerializer : IStringSerializer
... | bsd-3-clause |
UniStuttgart-VISUS/megamol | plugins/infovis_gl/src/amort/BaseAmortizedRenderer2D.cpp | 5294 | #include "BaseAmortizedRenderer2D.h"
#include "mmcore/CoreInstance.h"
#include "mmcore/param/BoolParam.h"
#include "mmcore/utility/log/Log.h"
using namespace megamol;
using namespace megamol::infovis_gl;
using megamol::core::utility::log::Log;
BaseAmortizedRenderer2D::BaseAmortizedRenderer2D()
: Renderer2D()... | bsd-3-clause |
Cristianohh/PrecompiledShaders | src/timer.cpp | 2850 | /* Copyright (c) 2014, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following... | bsd-3-clause |
md5555/ec | util/config_option_check.py | 4095 | #!/usr/bin/python2
# Copyright 2015 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Configuration Option Checker.
Script to ensure that all configuration options for the Chrome EC are defined
in config.h.
"""
from __... | bsd-3-clause |
hscstudio/osyawwal2 | frontend/modules/student/controllers/TrainingScheduleTrainerController.php | 4451 | <?php
namespace frontend\modules\student\controllers;
use Yii;
use frontend\models\TrainingScheduleTrainer;
use frontend\modules\student\models\TrainingScheduleTrainerSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* TrainingScheduleTrainerController implements the... | bsd-3-clause |
ansidev/zf2-beginner | resources/local_files/bjyprofiler.local.php | 1802 | <?php
$dbParams = array(
'database' => 'zend_two',
'username' => 'root',
'password' => 'root',
'hostname' => 'localhost',
// buffer_results - only for mysqli buffered queries, skip for others
'options' => array('buffer_results' => true)
);
return array(
'service_manager' => array(
... | bsd-3-clause |
sharaf84/digi | frontend/controllers/StoreController.php | 4491 | <?php
namespace frontend\controllers;
use Yii;
use yii\web\NotFoundHttpException;
use common\models\custom\Product;
use frontend\models\SearchForm;
use frontend\models\ProductForm;
/**
* Store controller
*/
class StoreController extends \frontend\components\BaseController {
/**
* Search Product
* @p... | bsd-3-clause |
NCIP/cagrid-grid-incubation | grid-incubation/test/projects/workflowHelper/resources/CreateArrayService/src/org/cagrid/introduce/createarrayservice/client/CreateArrayServiceClientBase.java | 3884 | /**
*============================================================================
* The Ohio State University Research Foundation, Emory University,
* the University of Minnesota Supercomputing Institute
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/cagrid-grid-incubation... | bsd-3-clause |
tommy-u/enable | kiva/agg/tests/rgba_test_case.py | 1650 | import unittest
from numpy import array, ones
from kiva import agg
from test_utils import Utils
class RgbaTestCase(unittest.TestCase, Utils):
def test_init(self):
m = agg.Rgba()
def test_init1(self):
m = agg.Rgba(.5,.5,.5)
desired = array((.5,.5,.5,1.0))
self.assertRavelEqu... | bsd-3-clause |
mmerzlyakov/tourbook | views/city/view.php | 1176 | <?php
\app\libs\Language::select();
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model app\models\City */
$this->title = $model->name;
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Cities'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title... | bsd-3-clause |
leok7v/android-monospaced-table | src/android/mono/table/etc/Numbers.java | 14362 | /*
* Adopted from original package private: java.lang.RealToString.java
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this ... | bsd-3-clause |
youtube/cobalt | third_party/v8/test/cctest/wasm/test-grow-memory.cc | 4661 | // Copyright 2019 the V8 project 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 "src/wasm/wasm-objects-inl.h"
#include "src/wasm/wasm-opcodes.h"
#include "src/wasm/wasm-module-builder.h"
#include "test/cctest/cctest.h"
#in... | bsd-3-clause |
Yeti-Robotics/UltimateAscent | src/org/yetirobotics/yeti2013/Climber.java | 1823 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.yetirobotics.yeti2013;
import edu.wpi.first.wpilibj.*;
/**
* Climbinator
*
* CCCCCC LL IIIIII MMM MMM BBBBBBB IIIIII NN NN AAA TTTTTTTT OOOOOOOO RRRRRRR
* CC LL II MMM MMM BB ... | bsd-3-clause |
tiestvilee/WipQueue | test/org/wipqueue/consumerthread/WipConsumerThreadFactoryDefaultTest.java | 5661 | package org.wipqueue.consumerthread;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
import org.wipqueue.queue.WipQueueImpl;
import org.wipqueue.WipStrategy;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
import static org.mockito.BDDMockito.given;
import s... | bsd-3-clause |
jeffseif/queens | queens/matrix.py | 3974 | from queens import PREFIXES
from queens.link import Link
class Matrix:
"""A data structure for DLX (dancing links algorithm X). (Doubly-linked)
head Links link to a list of column Links -- corresponding to constraints
for the set cover problem. Column Links additionally link to rows which
link to th... | bsd-3-clause |
hperadin/dsl-compiler-client | CommandLineClient/src/main/java/com/dslplatform/compiler/client/parameters/PostgresConnection.java | 13461 | package com.dslplatform.compiler.client.parameters;
import com.dslplatform.compiler.client.CompileParameter;
import com.dslplatform.compiler.client.Context;
import com.dslplatform.compiler.client.ExitException;
import org.postgresql.core.*;
import java.sql.*;
import java.util.*;
import java.util.regex.*;
public enum... | bsd-3-clause |
dtmo/jfiglet | src/test/java/com/github/dtmo/jfiglet/LayoutOptionsTest.java | 1993 | package com.github.dtmo.jfiglet;
import static org.junit.Assert.*;
import org.junit.Test;
import com.github.dtmo.jfiglet.LayoutOptions;
public class LayoutOptionsTest {
@Test
public void testIsIncludedIn() {
// 24463 = binary (msb) 101111110001111 (lsb)
assertTrue(LayoutOptions.islayoutOptionSelected(Layo... | bsd-3-clause |
Phoenix1708/t2-server-jar-android-0.1 | src/main/java/uk/org/taverna/server/client/InputPort.java | 3231 | /*
* Copyright (c) 2012 The University of Manchester, UK.
*
* 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 not... | bsd-3-clause |
chikkutechie/glexamples | android/gles_3_helloworld/src/com/example/gles_3_helloworld/GLES3View.java | 4372 | package com.example.gles_3_helloworld;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.FloatBuffer;
import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;
import android.content.Context;
import android.opengl.GLES30;
import android.opengl.G... | bsd-3-clause |
vanadium/go.jiri | cmd/jiri/project.go | 8579 | // Copyright 2015 The Vanadium 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 main
import (
"bytes"
"fmt"
"path/filepath"
"regexp"
"sort"
"strings"
"text/template"
"v.io/jiri"
"v.io/jiri/project"
"v.io/x/lib/cmdl... | bsd-3-clause |
javelinjs/spark | core/src/main/scala/spark/Logging.scala | 1876 | package spark
import org.slf4j.Logger
import org.slf4j.LoggerFactory
/**
* Utility trait for classes that want to log data. Creates a SLF4J logger for the class and allows
* logging messages at different levels using methods that only evaluate parameters lazily if the
* log level is enabled.
*/
trait Logging {
... | bsd-3-clause |
novafloss/django-aggtrigg | django_aggtrigg/dbcommands.py | 2186 | # -*- coding: utf-8 -*-
#
# Copyright (c) 2014 Rodolphe Quiédeville <rodolphe@quiedeville.org>
#
# 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,... | bsd-3-clause |
LUKKIEN/django-form-designer | form_designer/migrations/0002_auto__chg_field_formdefinitionfield_initial.py | 8545 | # 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 'FormDefinitionField.initial'
db.alter_column('form_designer_formdefinitionfield', 'initi... | bsd-3-clause |
versionone/VersionOne.Integration.IntelliJ-IDEA | src/com/versionone/integration/idea/AbstractModel.java | 2830 | /*(c) Copyright 2008, VersionOne, Inc. All rights reserved. (c)*/
package com.versionone.integration.idea;
import com.versionone.common.sdk.IDataLayer;
import com.versionone.common.sdk.Workitem;
import com.versionone.common.sdk.PropertyValues;
import javax.swing.*;
import javax.swing.table.AbstractTableModel;
import ... | bsd-3-clause |
rachelleannmorales/aboitiz | vendor/ivan-novakov/php-openid-connect-client/tests/unit/InoOicClientTest/Entity/AbstractEntityTest.php | 4126 | <?php
namespace InoOicClientTest\Entity;
use InoOicClient\Entity\AbstractEntity;
class AbstractEntityTest extends \PHPUnit_Framework_TestCase
{
/**
* @var AbstractEntity
*/
protected $entity = null;
public function setUp()
{
include_once TESTS_ROOT . '/_files/AbstractEntitySubcl... | bsd-3-clause |
xin3liang/platform_external_chromium_org_third_party_skia | src/lazy/SkCachingPixelRef.cpp | 3199 | /*
* Copyright 2013 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkCachingPixelRef.h"
#include "SkBitmapCache.h"
bool SkCachingPixelRef::Install(SkImageGenerator* generator,
SkBitmap* dst) {
Sk... | bsd-3-clause |
kotmonstr/kotmonstr | frontend/modules/banner/views/default/upload.php | 1072 | <?php
//$this->registerJsFile('/js/custom/uploader.js');
// with UI
use dosamigos\fileupload\FileUploadUI;
?>
<div id="content">
<div class="outer">
<div class="inner bg-light lter">
<div id="collapse4" class="body">
<!--Begin Datatables-->
<div class="image-ind... | bsd-3-clause |
talkingrobots/NIFTi_OCU | nifti_user/ocu/src/Displays/PointCloud2Display.cpp | 6513 | /*
* Copyright (c) 2008, Willow Garage, 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 l... | bsd-3-clause |
exponentjs/exponent | android/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java | 30162 | /*
* 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.
*/
package com.facebook.react;
import static com.facebook.infer.annotation.ThreadConfined.UI;
import static com.facebook.react.uimana... | bsd-3-clause |
lloydmeta/mygengo-java | com/mygengo/client/payloads/Payload.java | 380 | package com.mygengo.client.payloads;
import org.json.JSONObject;
import com.mygengo.client.exceptions.MyGengoException;
public abstract class Payload
{
/**
* Create a JSONObject representing this payload object
* @return the JSONObject created
* @throws MyGengoException
*/
public abstrac... | bsd-3-clause |
hanxiao84322/coach_system | views/admin/activity-category/index.php | 961 | <?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel app\models\ActivityCategorySearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = '活动类别设置';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="activity-category-index">
<h1><?=... | bsd-3-clause |
theislab/scanpy | scanpy/preprocessing/_distributed.py | 427 | import numpy as np
# install dask if available
try:
import dask.array as da
except ImportError:
da = None
def materialize_as_ndarray(a):
"""Convert distributed arrays to ndarrays."""
if type(a) in (list, tuple):
if da is not None and any(isinstance(arr, da.Array) for arr in a):
re... | bsd-3-clause |
ephes/django-indieweb | tests/test_token_endpoint.py | 3104 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_django-indieweb
------------
Tests for `django-indieweb` auth endpoint.
"""
from datetime import timedelta
from urllib.parse import unquote
from urllib.parse import parse_qs
from django.test import TestCase
from django.conf import settings
from django.contrib.a... | bsd-3-clause |
kodiers/yii2build | frontend/views/site/index.php | 6981 | <?php
use \yii\bootstrap\Modal;
use kartik\social\FacebookPlugin;
use \yii\bootstrap\Collapse;
use \yii\bootstrap\Alert;
use \yii\helpers\Html;
/* @var $this yii\web\View */
$this->title = 'Yii2 build';
?>
<div class="site-index">
<div class="jumbotron">
<?php
if (Yii::$app->user->isGuest) {... | bsd-3-clause |
lightster/lstr-silex-config | src/Lstr/Silex/Config/ConfigServiceProvider.php | 603 | <?php
/*
* Lstr/Silex source code
*
* Copyright Matt Light <matt.light@lightdatasys.com>
*
* For copyright and licensing information, please view the LICENSE
* that is distributed with this source code.
*/
namespace Lstr\Silex\Config;
use Silex\Application;
use Silex\ServiceProviderInterface;
class ConfigServ... | bsd-3-clause |
HTeamCoder/LichtuanVMU | backend/views/nhanvien/sinhnhat.php | 2393 | <?php
use yii\helpers\Html;
use yii\grid\GridView;
$this->title = Yii::t('app', 'Sinh nhật của cán bộ');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="nhanvien-view">
<p>
<?= Html::a(Yii::t('app', 'Cài đặt hiển thị'), ['time'], ['class' => 'btn btn-primary']) ?>
</p>
<?= GridView::w... | bsd-3-clause |
the-ms/engine | assets/AppAsset.php | 651 | <?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace app\assets;
use yii\web\AssetBundle;
/**
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
class AppAsset extends AssetBundle
{
public $baseP... | bsd-3-clause |
edgsv/proyectoasi2 | models/Solicitud.php | 3119 | <?php
namespace app\models;
use yii\helpers\ArrayHelper;
use Yii;
/**
* This is the model class for table "solicitud".
*
* @property integer $id_solicitud
* @property string $fecha
* @property string $telefono
* @property string $email
* @property string $nombre
* @property string $direccion
... | bsd-3-clause |
smartdevicelink/sdl_atf_test_scripts | test_scripts/API/ATF_DeleteFile.lua | 89261 | Test = require('connecttest')
require('cardinalities')
local events = require('events')
local mobile_session = require('mobile_session')
local mobile = require('mobile_connection')
local tcp = require('tcp_connection')
local file_connection = require('file_connection')
----------------------------------------------... | bsd-3-clause |
eclipsesource/tabris-js | src/tabris/CanvasContext.js | 9943 | import {colorArrayToString} from './util-colors';
import {getNativeObject} from './util';
import Color from './Color';
import {fontStringToObject, fontObjectToString} from './util-fonts';
import ImageData from './ImageData';
import GC from './GC';
import {hint, toValueString} from './Console';
import ImageBitmap from '... | bsd-3-clause |
rzara/lutece-core | src/java/fr/paris/lutece/util/annotation/AnnotationUtil.java | 3036 | /*
* Copyright (c) 2002-2021, City of Paris
* 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
* and the f... | bsd-3-clause |
chromium2014/src | chrome/browser/autocomplete/autocomplete_result_unittest.cc | 34584 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/autocomplete/autocomplete_result.h"
#include <vector>
#include "base/memory/scoped_ptr.h"
#include "base/metrics/field_tria... | bsd-3-clause |
seong889/lucida | lucida/speechrecognition/common/src/ivectorbin/ivector-extractor-est.cc | 2293 | // ivectorbin/ivector-extractor-est.cc
// Copyright 2013 Daniel Povey
// See ../../COPYING for clarification regarding multiple authors
//
// 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
... | bsd-3-clause |
Isaack90/parse-server | src/LiveQuery/ParseWebSocketServer.js | 1091 | import logger from '../logger';
const typeMap = new Map([['disconnect', 'close']]);
export class ParseWebSocketServer {
server: Object;
constructor(server: any, onConnect: Function, websocketTimeout: number = 10 * 1000) {
const WebSocketServer = require('ws').Server;
const wss = new WebSocketServer({ ser... | bsd-3-clause |
biocore/tax2tree | t2t/validate.py | 4049 | #!/usr/bin/env python
from collections import defaultdict
from operator import add
from functools import reduce
from t2t.nlevel import (determine_rank_order,
make_consensus_tree,
load_consensus_map)
from t2t.util import unzip
class ParseError(Exception):
pass
de... | bsd-3-clause |
leifurhauks/grpc | src/python/grpcio/tests/unit/framework/interfaces/base/test_cases.py | 10566 | # Copyright 2015, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | bsd-3-clause |
jaredgary/Bienes | views/tb-bn-gestiones-solicitudes/_form.php | 1126 | <?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use app\models\TbBnSolicitudDescargo;
use app\models\TbBnEstadoSolicitud;
/* @var $this yii\web\View */
/* @var $model app\models\TbBnGestionesSolicitudes */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="tb-bn-gestiones-solicitudes-form">
<?php $f... | bsd-3-clause |
datamicroscopes/common | bin/perf_group.cpp | 4222 | #include <microscopes/common/random_fwd.hpp>
#include <microscopes/models/distributions.hpp>
#include <microscopes/models/noop.hpp>
#include <microscopes/common/recarray/dataview.hpp>
#include <microscopes/common/timer.hpp>
#include <random>
#include <iostream>
using namespace std;
using namespace distributions;
usin... | bsd-3-clause |
SerebryanskiySergei/FacultySite | views/call-shedule/create.php | 435 | <?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\models\CallShedule */
$this->title = 'Create Call Shedule';
$this->params['breadcrumbs'][] = ['label' => 'Call Shedules', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="call-shedule-create">
<h1><?=... | bsd-3-clause |
nwjs/chromium.src | media/base/renderer_factory_selector_unittest.cc | 4405 | // 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 <memory>
#include "base/bind.h"
#include "base/macros.h"
#include "media/base/overlay_info.h"
#include "media/base/renderer_factory_selector.h"
... | bsd-3-clause |
FedorSmirnov/apartment_controller | config/application.config.php | 2505 | <?php
return array (
// This should be an array of module namespaces used in the application.
'modules' => array (
'ZfcBase',
'ZfcUser',
'Application',
'Apartment',
'AlbumRest',
'ApartmentRest',
'Album'
)
,
// These are various options for the listeners atta... | bsd-3-clause |
vtkio/vtk | src/test/java/vtk/web/decorating/components/AggregatedFeedsComponentTest.java | 4561 | /* Copyright (c) 2007, University of Oslo, Norway
* 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, thi... | bsd-3-clause |
JianpingZeng/xcc | xcc/test/juliet/testcases/CWE127_Buffer_Underread/s02/CWE127_Buffer_Underread__malloc_char_memcpy_81a.cpp | 2794 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE127_Buffer_Underread__malloc_char_memcpy_81a.cpp
Label Definition File: CWE127_Buffer_Underread__malloc.label.xml
Template File: sources-sink-81a.tmpl.cpp
*/
/*
* @description
* CWE: 127 Buffer Under-read
* BadSource: Set data pointer to before the allocated ... | bsd-3-clause |
hughsons/saltwaterfish | auth_views.py | 7433 | from django.contrib.auth import *
from django.http import *
from forms import *
from django.template.loader import get_template
from django.template import Context
from django.utils.decorators import method_decorator
from django.shortcuts import render_to_response
from django.contrib.auth.decorators import login_requir... | bsd-3-clause |
krishagni/openspecimen | www/app/modules/administrative/shipment/detail.js | 341 | angular.module('os.administrative.shipment.detail', ['os.administrative.models'])
.controller('ShipmentDetailCtrl', function($scope, shipment, Util) {
function init() {
$scope.shipment = shipment;
}
$scope.downloadReport = function() {
Util.downloadReport(shipment, 'shipments');
}
... | bsd-3-clause |
graczyk/tumblrmash | test.py | 3252 | import pytumblr
import json
import random
import copy
from flask_oauth import OAuth
from flask import *
app = Flask(__name__)
setupdone = False
app.secret_key = 'people who think they know everything really like lisp'
oauth = OAuth()
credentials = json.loads(open('tumblr_credentials.json', 'r').read())
tumblr = oaut... | bsd-3-clause |
goddardl/gander | src/GanderTest/CommonTest.cpp | 3085 | //////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2013, Luke Goddard. 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 |
nusmql/bwp | frontend/controllers/SiteController.php | 5572 | <?php
namespace frontend\controllers;
use Yii;
use yii\base\InvalidParamException;
use yii\web\BadRequestHttpException;
use yii\web\Controller;
use yii\filters\VerbFilter;
use yii\filters\AccessControl;
use common\models\LoginForm;
use frontend\models\PasswordResetRequestForm;
use frontend\models\ResetPasswordForm;
us... | bsd-3-clause |
WaveBlocks/WaveBlocks | testsuite/basic_diagonal/test_quartic_oscillator_two_fourier.py | 431 | algorithm = "fourier"
potential = {}
potential["potential"] = [["1/4 * sigma * x**4", 0 ],
[0 , "1/4 * sigma * x**4"]]
potential["defaults"] = {"sigma":"0.05"}
T = 6
dt = 0.01
eps = 0.1
f = 3.0
ngn = 4096
basis_size = 64
P = 2.0j
Q = 0.5
S = 0.0
para... | bsd-3-clause |
rust-lang/rust-bindgen | tests/expectations/tests/issue-739-pointer-wide-bitfield.rs | 5946 | #![allow(
dead_code,
non_snake_case,
non_camel_case_types,
non_upper_case_globals
)]
#[repr(C)]
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct __BindgenBitfieldUnit<Storage> {
storage: Storage,
}
impl<Storage> __BindgenBitfieldUnit<Storage> {
#[inline]
... | bsd-3-clause |
naohisas/KVS | Source/Core/FileFormat/BDML/MeasurementTag.cpp | 1364 | /*****************************************************************************/
/**
* @file MeasurementTag.cpp
* @author Naohisa Sakamoto
*/
/*****************************************************************************/
#include "MeasurementTag.h"
#include "XML.h"
namespace kvs
{
namespace bdml
{
Measuremen... | bsd-3-clause |
AqlaSolutions/JustLogic | Assets/JustLogicUnits/Generated/GUI/Event/JLGUIEventGetDelta.cs | 2179 | /*
This file is a part of JustLogic product which is distributed under
the BSD 3-clause "New" or "Revised" License
Copyright (c) 2015. All rights reserved.
Authors: Vladyslav Taranov.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following... | bsd-3-clause |
jfterpstra/bluebottle | bluebottle/recurring_donations/mails.py | 1426 | from babel.dates import format_date
from babel.numbers import format_currency
from django.utils import translation
from django.utils.translation import ugettext_lazy as _
from bluebottle.utils.email_backend import send_mail
from tenant_extras.utils import TenantLanguage
def mail_monthly_donation_processed_notifica... | bsd-3-clause |
AsenNikolov80/magnet | views/site/_delete-place.php | 314 | <?php
/**
* Created by PhpStorm.
* User: Asen
* Date: 25.11.2016 г.
* Time: 23:13
*/
/* @var $place \app\models\Place */
?>
Сигурни ли сте, че искате да премахнете обекта <strong><?= $place->name ?></strong>?
<input type="hidden" id="placeId" value="<?= $place->id ?>">
| bsd-3-clause |
colour-science/colour-hdri | colour_hdri/plotting/tonemapping.py | 2790 | # -*- coding: utf-8 -*-
"""
Tonemapping Operators Plotting
==============================
Defines the tonemapping operators plotting objects:
- :func:`colour_hdri.plotting.plot_tonemapping_operator_image`
"""
import matplotlib
import matplotlib.ticker
import numpy as np
from colour.plotting import (
CONSTANTS... | bsd-3-clause |
endlessm/chromium-browser | chromecast/media/audio/capture_service/capture_service_receiver.cc | 9246 | // Copyright 2019 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 "chromecast/media/audio/capture_service/capture_service_receiver.h"
#include <memory>
#include <string>
#include <utility>
#include "base/bind.... | bsd-3-clause |
cafephin/mygeneration | src/mymeta/PostgreSQL8/Procedure.cs | 1602 | using System;
using System.Data;
using Npgsql;
namespace MyMeta.PostgreSQL8
{
#if ENTERPRISE
using System.Runtime.InteropServices;
[ComVisible(true), ClassInterface(ClassInterfaceType.AutoDual), ComDefaultInterface(typeof(IProcedure))]
#endif
public class PostgreSQL8Procedure : Procedure
{
internal string _spec... | bsd-3-clause |
cemarchi/biosphere | Src/BioAnalyzer/DataAccess/Entities/GenePrioritization/DataIntegrationItem.py | 1829 | from typing import Dict
from Src.Core.Entity.EntityBase import EntityBase
class DataIntegrationItem(EntityBase):
"""description of class"""
def __init__(self, **kargs):
"""
:param kargs:
"""
self.__status = kargs.get('status', None)
self.__element_id = kargs.get('el... | bsd-3-clause |
sakrejda/protostan | src/protostan/lang/compiler.hpp | 1113 | #include <stan/proto/compile.pb.h>
#include <stan/lang/compiler.hpp>
#include <iostream>
#include <sstream>
#include <string>
namespace stan {
namespace proto {
stan::proto::StanCompileResponse compile(
const stan::proto::StanCompileRequest& request) {
stan::proto::StanCompileResponse response;
... | bsd-3-clause |
mitodl/micromasters | static/js/containers/DashboardPage.js | 33187 | // @flow
/* global SETTINGS: false */
import DocumentTitle from "react-document-title"
import React from "react"
import Card from "@material-ui/core/Card"
import PropTypes from "prop-types"
import type { Dispatch } from "redux"
import { connect } from "react-redux"
import _ from "lodash"
import moment from "moment"
imp... | bsd-3-clause |
mathstuf/rust-keyutils | src/tests/clear.rs | 5674 | // Copyright (c) 2019, Ben Boeckel
// 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 cond... | bsd-3-clause |
ipti/hb | web/scripts/SiteView/Functions.js | 514 | /**
* Post the FORM to add a new Address.
*
* @param {form} $form
*/
function submitCampaignForm($form) {
$('#campaignModal button[type=submit]').html('<i class="fa fa-spinner fa-spin"></i> Criando...');
$('#campaignModal button[type=submit]').click(function(e){
e.preventDefault();
});
$.p... | bsd-3-clause |
NCIP/catrip | codebase/projects/catrip-catissuecoreGenerateData/test/edu/duke/catrip/catissuecore/general/SpecimenInsertTest.java | 15862 | /*L
* Copyright Duke Comprehensive Cancer Center
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/catrip/LICENSE.txt for details.
*/
/**
* Created on Aug 31, 2006 by PEEDI002
**/
package edu.duke.catrip.catissuecore.general;
import java.text.SimpleDateFormat;
import jav... | bsd-3-clause |
haoran10/mulan | spring-demo/springdemo-web/src/main/java/wang/conge/springdemo/config/AppCoreConfig.java | 388 | package wang.conge.springdemo.config;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
@Configuration
@Import({
DataSourceConfig.class,
MyBatisConfig.class,
})
@ComponentScan(App... | bsd-3-clause |
vidarr/fulisp | doc/doxygen/html/stack_8c.js | 574 | var stack_8c =
[
[ "MODULE_NAME", "stack_8c.html#a14ded244c47bbba850a8a4be6d16c7e3", null ],
[ "stackCreate", "stack_8c.html#a6e31f664f04dbca98b0d06afecc7a4bc", null ],
[ "stackError", "stack_8c.html#a7e90b812609fc9ae4a7d218a646135b5", null ],
[ "stackFree", "stack_8c.html#aa53e7be1cd872c3dbf893442e2f87... | bsd-3-clause |
govdelivery/govdelivery-tms-ruby | lib/govdelivery/tms/resource/keyword.rb | 1315 | module GovDelivery::TMS #:nodoc:
# A Keyword is a word that TMS will detect in an incoming SMS message. Keywords can have Commands, and
# when an incoming text message has a keyword, TMS will execute the keyword's Commands. Keywords may
# also have a response text field. If the response text is not blank, the ... | bsd-3-clause |
inepex/ineform | ineframe/src/main/java/com/inepex/ineFrame/client/async/FullscreenStatusIndicator.java | 2987 | package com.inepex.ineFrame.client.async;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Bu... | bsd-3-clause |
ericmjl/bokeh | bokeh/protocol/__init__.py | 3745 | #-----------------------------------------------------------------------------
# Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributors.
# All rights reserved.
#
# The full license is in the file LICENSE.txt, distributed with this software.
#-------------------------------------------------------------------... | bsd-3-clause |
rubenvb/skia | docs/examples/Surface_MakeFromBackendTextureAsRenderTarget.cpp | 1040 | #if 0 // Disabled until updated to use current API.
// Copyright 2019 Google LLC.
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#include "fiddle/examples.h"
// HASH=5e87093b9cbe95124ae14cbe77091eb7
REG_FIDDLE(Surface_MakeFromBackendTextureAsRenderTarget, 256, 256,... | bsd-3-clause |
samanalysis/twstools | src/tws_query.cpp | 3055 | /*** tws_query.cpp -- structs for IB/API requests
*
* Copyright (C) 2010-2013 Ruediger Meier
*
* Author: Ruediger Meier <sweet_f_a@gmx.de>
*
* This file is part of twstools.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditi... | bsd-3-clause |
grani/grpc | src/php/lib/Grpc/AbstractCall.php | 5551 | <?php
/*
*
* Copyright 2015, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of... | bsd-3-clause |
seanogden/wtf | client/message_hyperdex_del.cc | 2299 | // Copyright (c) 2011-2013, Cornell 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:
//
// * Redistributions of source code must retain the above copyright notice,
// this ... | bsd-3-clause |
vontrapp/hubroid | src/net/idlesoft/android/apps/github/activities/Search.java | 1605 | /**
* Hubroid - A GitHub app for Android
*
* Copyright (c) 2011 Eddie Ringle.
*
* Licensed under the New BSD License.
*/
package net.idlesoft.android.apps.github.activities;
import net.idlesoft.android.apps.github.R;
import net.idlesoft.android.apps.github.activities.tabs.SearchRepos;
import net.idlesoft.androi... | bsd-3-clause |
saem/hairpiece | frontend/src/http/index.js | 953 | import reqwest from 'reqwest';
import Kefir from 'kefir';
const mockApiBody = {
"links": {
"self": "https://www.hairpiece.com/api",
"user": "https://www.hairpiece.com/api/users/243",
"meetings": "https://www.hairpiece.com/api/users/243/meetings",
"settings": "https://www.hairpiece.com/api/use... | bsd-3-clause |
LindsayBradford/PersonalFinancier | src/main/java/blacksmyth/personalfinancier/control/inflation/command/ChangeInflationValueCommand.java | 2057 | /**
* Copyright (c) 2012, Lindsay Bradford and other Contributors.
* All rights reserved.
*
* This program and the accompanying materials are made available
* under the terms of the BSD 3-Clause licence which accompanies
* this distribution, and is available at
* http://opensource.org/licenses/BSD-3-Clause
... | bsd-3-clause |
arrai/mumble-record | src/mumble/AudioOutput.cpp | 32295 | /* Copyright (C) 2005-2010, Thorvald Natvig <thorvald@natvig.com>
Copyright (C) 2009, Stefan Hacker <dd0t@users.sourceforge.net>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redi... | bsd-3-clause |
endlessm/chromium-browser | ash/events/spoken_feedback_event_rewriter_unittest.cc | 13929 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/events/spoken_feedback_event_rewriter.h"
#include <memory>
#include <vector>
#include "ash/accessibility/accessibility_controller_impl.h"
... | bsd-3-clause |
irvs/ros_tms | tms_sa/tms_sa_bas/tms_sa_bas_person/include/tms_sa_bas_person/HumanModel.cpp | 15379 | //------------------------------------------------------------------------------
// @file : HumanModel.cpp
// @brief : keep human's behavior, position and another parameters
// @author : Masahide Tanaka
// @version: Ver0.1 (since 2012.11.13)
// @date : 2012.11.13
//-------------------------------------------------... | bsd-3-clause |
robertzml/Rhea | Rhea.Data/Properties/AssemblyInfo.cs | 1306 | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Rhea.Data")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: Assembly... | bsd-3-clause |
hiraq/qiscus-model | src/Utility/InMemory.php | 1877 | <?php
namespace Qiscus\Utility;
/**
* Simulate storage in memory
*/
class InMemory
{
/**
* key value based
*/
private $map = [];
/**
* sequences values
*/
private $list = [];
/**
* save key and their values
* on map
*
* @return void
*/
public fun... | bsd-3-clause |
jdef/dns | msg.go | 55111 | // DNS packet assembly, see RFC 1035. Converting from - Unpack() -
// and to - Pack() - wire format.
// All the packers and unpackers take a (msg []byte, off int)
// and return (off1 int, ok bool). If they return ok==false, they
// also return off1==len(msg), so that the next unpacker will
// also fail. This lets us ... | bsd-3-clause |