repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
kovertopz/Paulscode-SoundSystem
src/main/java/de/jarnbjo/vorbis/Floor.java
5644
/* * $ProjectName$ * $ProjectRevision$ * ----------------------------------------------------------- * $Id: Floor.java,v 1.3 2003/04/10 19:49:04 jarnbjo Exp $ * ----------------------------------------------------------- * * $Author: jarnbjo $ * * Description: * * Copyright 2002-2003 Tor-Einar Jarnbjo * ---...
bsd-3-clause
endlessm/chromium-browser
chrome/browser/ui/android/sms/sms_infobar_delegate.cc
2312
// 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 "chrome/browser/ui/android/sms/sms_infobar_delegate.h" #include "base/check_op.h" #include "base/strings/utf_string_conversions.h" #include "bui...
bsd-3-clause
hung101/kbs
frontend/views/profil-pusat-latihan-sukan/_form.php
4239
<?php use kartik\helpers\Html; //use yii\widgets\ActiveForm; use kartik\widgets\ActiveForm; use kartik\builder\Form; use kartik\builder\FormGrid; use yii\helpers\ArrayHelper; use kartik\datecontrol\DateControl; use yii\web\Session; // table reference use app\models\RefSukan; // contant values use app\models\general\...
bsd-3-clause
adem-team/advanced
lukisongroup/dashboard/controllers/HrmAbsensiController.php
3117
<?php /** * NOTE: Nama Class harus diawali Hurup Besar * Server Linux : hurup besar/kecil bermasalah -case sensitif- * Server Windows : hurup besar/kecil tidak bermasalah * Author: -ptr.nov- */ namespace lukisongroup\dashboard\controllers; /* VARIABLE BASE YII2 Author: -YII2- */ use Yii; use yii\web\Controller;...
bsd-3-clause
Dench/resistor
backend/views/layouts/main.php
1420
<?php use yii\helpers\Html; /* @var $this \yii\web\View */ /* @var $content string */ if (Yii::$app->controller->action->id === 'login') { /** * Do not use this code in your template. Remove it. * Instead, use the code $this->layout = '//main-login'; in your controller. */ echo $this->render( 'main...
bsd-3-clause
axkibe/node-vtk
wrappers/8.1.1/vtkCommonCoreNodeJsInit.cc
8323
/* this file has been autogenerated by vtkNodeJsWrapInit */ /* editing this might proof futile */ #include <nan.h> #include "vtkAbstractArrayWrap.h" #include "vtkAnimationCueWrap.h" #include "vtkArrayWrap.h" #include "vtkArrayIteratorWrap.h" #include "vtkBitArrayWrap.h" #include "vtkBitArrayIteratorWrap.h" #include "...
bsd-3-clause
EvgSp/yupi.loc
protected/modules/delivery/messages/ru/delivery.php
2982
<?php return [ '*unknown*' => '*неизвестно*', 'Active' => 'Активен', 'Add delivery and close' => 'Добавить доставку и закрыть', 'Add delivery and continue' => 'Добавить доставку и продолжить', 'are required' => 'обязательны.', 'Available from' => 'Доступна от', 'Create delivery' => 'Добавит...
bsd-3-clause
EddyBeaupre/Renci.SshNet
Common/ObjectIdentifier.cs
770
using System; namespace Renci.SshNet.Common { /// <summary> /// Describes object identifier for DER encoding /// </summary> public struct ObjectIdentifier { /// <summary> /// Gets the object identifier. /// </summary> public ulong[] Identifiers { get; private set; }...
bsd-3-clause
jamesslock/james.sl
src/components/organisms/Nav/Nav.js
918
import React, { Component } from "react" import { Link } from 'react-router' import styled from 'styled-components' // Import Atom Components import Hamburger from '../../atoms/Hamburger/Hamburger.js' import Container from '../../atoms/Container/Container.js' import AnimateFadeIn from '../../atom...
bsd-3-clause
jMonkeyEngine/sdk
jme3-scenecomposer/src/com/jme3/gde/scenecomposer/tools/shortcuts/ShortcutManager.java
12227
/* * Copyright (c) 2009-2020 jMonkeyEngine * 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
111WARLOCK111/Caznowl-Cube-Zombie
fCraft/Utils/BitMap3D.cs
6789
using System; using System.Collections; using System.Collections.Generic; using JetBrains.Annotations; namespace fCraft { /// <summary> Specialized set data structure. Holds 1 bit of information per coordinate, /// with an easy way to enumerate all set coords. Used by /Fill3D and related commands. </summary> ...
bsd-3-clause
Sharykhin/yii-box
modules/backend/modules/pages/views/default/index.php
455
<div class="pages-default-index"> <h1><?= $this->context->action->uniqueId ?></h1> <p> This is the view content for action "<?= $this->context->action->id ?>". The action belongs to the controller "<?= get_class($this->context) ?>" in the "<?= $this->context->module->id ?>" module. <...
bsd-3-clause
bosiam/textwizard
views/layouts/main.php
2643
<?php use yii\helpers\Html; use yii\bootstrap\Nav; use yii\bootstrap\NavBar; use yii\widgets\Breadcrumbs; use app\assets\AppAsset; /* @var $this \yii\web\View */ /* @var $content string */ AppAsset::register($this); ?> <?php $this->beginPage() ?> <!DOCTYPE html> <html lang="<?= Yii::$app->language ?>"> <head> <me...
bsd-3-clause
OstapHEP/ostap
source/src/Ostap.cpp
454
// Include files // ============================================================================ // Ostap // ============================================================================ #include "Ostap/Ostap.h" // ============================================================================ // ...
bsd-3-clause
cybergarage/round-cc
src/round/Client.cpp
877
/****************************************************************** * * Round for C++ * * Copyright (C) Satoshi Konno 2015 * * This is licensed under BSD-style license, see file COPYING. * ******************************************************************/ #include <round/Client.h> Round::Client::Client() { ...
bsd-3-clause
rerobins/rhobot_framework
test/components/scheduler/promises/test_2_2_6_1.py
5735
""" 2.2.6: `then` may be called multiple times on the same promise. https://github.com/promises-aplus/promises-tests/blob/2.1.1/lib/tests/2.2.6.js """ import mock from test.components.scheduler.promises.helpers import generate_fulfilled_test_case other = {'other': 'other'} sentinel = {'sentinel': 'sentinel'} sentinel2...
bsd-3-clause
apa-narola/yiibasic2.0
vendor/yiisoft/extensions.php
1133
<?php $vendorDir = dirname(__DIR__); return array ( 'yiisoft/yii2-swiftmailer' => array ( 'name' => 'yiisoft/yii2-swiftmailer', 'version' => '2.0.0.0-beta', 'alias' => array ( '@yii/swiftmailer' => $vendorDir . '/yiisoft/yii2-swiftmailer', ), ), 'yiisoft/yii2-codeception' => arr...
bsd-3-clause
scalameta/scalameta
semanticdb/metacp/src/main/scala/scala/meta/internal/javacp/asm/MethodSignatureVisitor.scala
1289
package scala.meta.internal.javacp.asm import scala.meta.internal.javacp._ import scala.tools.asm.signature.SignatureVisitor class MethodSignatureVisitor extends TypedSignatureVisitor[MethodSignature] with TypeParametersVisitor { val params = List.newBuilder[JavaTypeSignatureVisitor] val returnType = new Java...
bsd-3-clause
NCIP/cagrid2
cagrid-gridgrouper/cagrid-gridgrouper-api/src/main/java/org/cagrid/gridgrouper/model/StemPrivilege.java
4799
package org.cagrid.gridgrouper.model; import java.io.Serializable; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for StemPrivilege complex type. * * <p>T...
bsd-3-clause
NIAEFEUP/Kommando
viewer/Kinect/Kinect/Gestures/KinectGesture.cs
4293
using Microsoft.Kinect; using System; namespace Kinect.Gestures { /// <summary> /// This class describes and analyzes complex gestures. /// </summary> public class KinectGesture { protected IKinectGestureFrame[] gestureFrames; protected KinectGestureType gestureType; privat...
bsd-3-clause
sssilver/angler
rod/rod/model/company.py
709
import sqlalchemy.schema import sqlalchemy.types import rod.model class Company(rod.model.db.Model, rod.model.PersistentMixin): __tablename__ = 'company' id = sqlalchemy.schema.Column(sqlalchemy.types.Integer, primary_key=True) title = sqlalchemy.schema.Column(sqlalchemy.types.Text) # Contact perso...
bsd-3-clause
youtube/cobalt
third_party/llvm-project/clang/lib/Sema/SemaLookup.cpp
198982
//===--------------------- SemaLookup.cpp - Name Lookup ------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
bsd-3-clause
billyct/sushe
module/Application/src/Application/Entity/Health.php
1095
<?php namespace Application\Entity; use Doctrine\ORM\Mapping as ORM; /** * * * @ORM\Entity * @ORM\Table(name="health") * * @author billyct */ class Health extends AbstractBase { /** * @ORM\Column(type="date") **/ protected $checkdate; /** * @ORM\Column(type="integer") **/ protected $level; /...
bsd-3-clause
stan-dev/math
lib/boost_1.75.0/libs/config/checks/std/cpp_lib_hypot_17.cpp
742
// This file was automatically generated on Mon Dec 09 09:47:38 2019 // by libs/config/tools/generate.cpp // Copyright John Maddock 2002-4. // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/L...
bsd-3-clause
endlessm/chromium-browser
chrome/updater/external_constants_unittest.cc
757
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/updater/external_constants_unittest.h" #include <memory> #include "chrome/updater/constants.h" #include "chrome/updater/external_consta...
bsd-3-clause
manifoldco/grafton
generated/connector/client/o_auth/o_auth_client.go
7689
package o_auth // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "github.com/go-openapi/runtime" strfmt "github.com/go-openapi/strfmt" ) // New creates a new o auth API client. func New(transport runtime.ClientTransport, f...
bsd-3-clause
ValentinMinder/pocketcampus
windows/Source/Common.WindowsRuntime/Controls/Placeholder.cs
1083
// Copyright (c) PocketCampus.Org 2014-15 // See LICENSE file for more details // File author: Solal Pirelli using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; namespace PocketCampus.Common.Controls { public sealed class Placeholder : ContentControl { private static readonly DefaultToV...
bsd-3-clause
antoinecarme/pyaf
tests/artificial/transf_None/trend_MovingMedian/cycle_12/ar_12/test_artificial_32_None_MovingMedian_12_12_0.py
262
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "MovingMedian", cycle_length = 12, transform = "None", sigma = 0.0, exog_count = 0, ar_order = 12);
bsd-3-clause
takeplace/django-composite
composite/mixin.py
1222
from django.core.urlresolvers import reverse from django.http import HttpResponseForbidden from django.contrib.auth.views import redirect_to_login class LoginRequiredMixin(object): login_url_name = 'login' def dispatch(self, request, *args, **kwargs): if not request.user.is_authenticated(): ...
bsd-3-clause
timopulkkinen/BubbleFish
chrome/browser/automation/automation_util.cc
21171
// 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/automation/automation_util.h" #include <string> #include "ash/shell.h" #include "ash/shell_delegate.h" #include "base/bind....
bsd-3-clause
cjmabry/PoliChart
setup.py
900
# -*- coding: utf-8 -*- from setuptools import setup project = "polichart" setup( name=project, version='0.1', url='https://github.com/cjmabry/PoliChart', description='Election projections, data visualization, and political rants.', author='Chris Mabry', author_email='cjmab28@gmail.com', ...
bsd-3-clause
brumschlag/rhino-tools
rhino-etl/Rhino.Etl.Core/Files/FluentFile.cs
3619
namespace Rhino.Etl.Core.Files { using System; using System.Collections; using System.IO; using System.Text; using FileHelpers; /// <summary> /// Gives a fluent interface syntax on top of the <see cref="FileHelperEngine"/> /// </summary> public class FluentFile { ...
bsd-3-clause
openjaf/spree_travel_core
spec/models/spree/context_option_value_spec.rb
229
require 'spec_helper' describe Spree::ContextOptionValue do it { expect(Spree::ContextOptionValue.new.respond_to?(:context)).to eq true } it { expect(Spree::ContextOptionValue.new.respond_to?(:option_value)).to eq true } end
bsd-3-clause
exponentjs/exponent
android/versioned-abis/expoview-abi44_0_0/src/main/java/abi44_0_0/expo/modules/interfaces/font/FontManagerInterface.java
199
package abi44_0_0.expo.modules.interfaces.font; import android.graphics.Typeface; public interface FontManagerInterface { void setTypeface(String fontFamilyName, int style, Typeface typeface); }
bsd-3-clause
ridhobc/sitampan
backend/models/UserSearch.php
2535
<?php namespace backend\models; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; use backend\models\User; /** * UserSearch represents the model behind the search form about `backend\models\User`. */ class UserSearch extends User { /** * @inheritdoc */ public function rules() { ...
bsd-3-clause
UCSD-PL/RefScript
tests/pos/simple/08-func-expression.ts
325
/*@ readonly bar :: (x: number) => {number | v = x + 1} */ let bar = function(x: number) { return x + 1; } /*@ readonly foo :: (x: number) => {number | v = x + 2} */ let foo = function(x: number) { let a = bar(x); let b = bar(a); return b; } let baz = foo; assert(bar(1) === 2); assert(foo(1) === baz(...
bsd-3-clause
endlessm/chromium-browser
components/permissions/android/java/src/org/chromium/components/permissions/nfc/NfcSystemLevelPrompt.java
5151
// 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. package org.chromium.components.permissions.nfc; import android.app.Activity; import android.content.Intent; import android.content.res.Resources; import...
bsd-3-clause
pmos69/vast
test/unit/tests/hash.cc
1052
#include "vast/util/hash/crc.h" #include "vast/util/hash/murmur.h" #include "vast/util/hash/xxhash.h" #define SUITE util #include "test.h" using namespace vast; using namespace vast::util; TEST(murmur hash) { CHECK(murmur3<32>::digest(42) == 3160117731); } TEST(xxhash) { CHECK(xxhash64::digest("42", 42) == 7873...
bsd-3-clause
h3/django-unsocial
unsocial/blocklist.py
100
PATTERNS = [ r'(<script\s+?.*facebook\.\w+\/.*</script>)', r'(<fb:like\s+?.*</fb:like>)', ]
bsd-3-clause
marineam/coreos-dev-util
downloader_unittest.py
8899
#!/usr/bin/python # # Copyright (c) 2012 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. """Unit tests for downloader module.""" import os import shutil import tempfile import unittest import mox import build_artifac...
bsd-3-clause
xishuophp/bibt
backend/views/article/category_create.php
584
<?php use yii\helpers\Html; /** * @var yii\web\View $this * @var common\models\User $model */ $this->title = Yii::t('app','Create Category'); $this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Category List'), 'url' => ['category-list']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="pag...
bsd-3-clause
prolop/Prolop-cms
backend/views/site/_postDashboard.php
414
<?php use common\models\Post; use yii\helpers\Url; /** @var $model Post */ ?> <div class="panel panel-body"> <h4><a href="<?= Url::toRoute('post/update?id='). $model->id?>" class="dashboard-link" style="text-decoration: underline"><?= $model->title ?></a></h4> <img src="../web/<?= $model->images?>" alt="" ...
bsd-3-clause
Workday/OpenFrame
mojo/runner/desktop/launcher_process.cc
2188
// 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 <stdio.h> #include <string.h> #include <algorithm> #include <iostream> #include "base/base_switches.h" #include "base/bind.h" #include "base/co...
bsd-3-clause
ThePrimedTNT/SkriptEditor
src/skripteditor/addons/skript/evt/EvtOnVehicleExit.java
484
package skripteditor.addons.skript.evt; import skripteditor.events.Event; public class EvtOnVehicleExit extends Event { @Override public void registerUserFriendyPatterns() { registerUserFriendyPattern("vehicle exit"); registerUserFriendyPattern("exit[ing] [a] vehicle"); } @Override public void registerPatt...
bsd-3-clause
devilry/devilry-django
devilry/devilry_theme3/staticsources/devilry_theme3/webpack.config.js
1900
const path = require('path'); const webpack = require('webpack'); const appconfig = require("./ievv_buildstatic.appconfig.json"); const import_paths = [path.resolve(__dirname, 'node_modules')]; Array.prototype.push.apply(import_paths, appconfig.npmrun_jsbuild.import_paths); const include = appconfig.npmrun_jsbuild.im...
bsd-3-clause
wpjesus/codematch
ietf/utils/aliases.py
2288
#!/usr/bin/env python # -*- coding: utf-8 -*- # -*- Python -*- # # $Id: aliasutil.py $ # # Author: Markus Stenberg <mstenber@cisco.com> # """ Mailing list alias dumping utilities """ from django.conf import settings def rewrite_email_address(email): """ Prettify the email address (and if it's empty, skip it by ...
bsd-3-clause
max-borisov/nerds.marketplace
tests/codeception/unit/models/nerds/SignInFormTest.php
2512
<?php namespace tests\codeception\unit\models\nerds; use Yii; use app\components\HelperUser; use app\models\SignInForm; use Codeception\Specify; use yii\codeception\TestCase; use app\tests\codeception\unit\fixtures\UserFixture; class SignInFormTest extends TestCase { use Specify; public function fixtures()...
bsd-3-clause
jarlehansen/no5-events-publisher
no5-events-publisher-web/src/AppService.js
249
// @flow const options = { credentials: 'same-origin', headers: { Accept: 'application/json', 'Content-Type': 'application/json' } }; export function getText() { return fetch('/test', options).then(response => response.json()); }
bsd-3-clause
EMSTrack/WebServerAndClient
equipment/models.py
4379
from enum import Enum from django.contrib.gis.db import models from django.template.defaulttags import register from django.urls import reverse from django.utils.translation import ugettext_lazy as _ from emstrack.models import UpdatedByModel from emstrack.util import make_choices @register.filter def get_equipment...
bsd-3-clause
straight-street/straight-street-api
protected/config/apiconsts.php
933
<?php require ('common.conf.php'); define('VERSION', '0.1.0'); define('PAGESIZEDEF', 15); define('PAGESIZEMAX', 20); define('APPIDMINCHARS', 5); define('APPIDMAXCHARS', 25); define('VALID_APPID', '/^[a-z][a-z0-9]{'.APPIDMINCHARS.','.APPIDMAXCHARS.'}$/i'); define('MAX_CONCAT_LENGTH', 2048 * 3); # maximum l...
bsd-3-clause
grapto/Orchard.CloudBust
src/Orchard.Web/Modules/Orchard.Setup/Controllers/SetupController.cs
8091
using System; using System.Linq; using System.Web.Mvc; using Orchard.Environment; using Orchard.Environment.Configuration; using Orchard.Logging; using Orchard.Setup.Services; using Orchard.Setup.ViewModels; using Orchard.Localization; using Orchard.Recipes.Services; using Orchard.Themes; using Orchard.UI.Notify; usin...
bsd-3-clause
matthieuklotz/appfabriccachingadmin
Clients/Source/AppFabric.Admin.Clients.Desktop/UserControls/ClusterHealthUserControl.xaml.cs
2250
// ----------------------------------------------------------------------- // <copyright file="ClusterHealthUserControl.xaml.cs" company="Matthieu Klotz"> // Copyright (c) 2013, Matthieu Klotz // All rights reserved. // Redistribution and use in source and binary forms, with or without modification, are permitted prov...
bsd-3-clause
assetgraph/assetgraph
test/relations/Html/HtmlAudio.js
1068
const pathModule = require('path'); const expect = require('../../unexpected-with-plugins'); const AssetGraph = require('../../../lib/AssetGraph'); describe('relations/HtmlAudio', function () { it('should handle a test case with existing <audio> tags', async function () { const assetGraph = new AssetGraph({ ...
bsd-3-clause
SecureAuthCorp/saidp-sdk-csharp
SecureAuth.Sdk/Requests/GroupAssociateRequest.cs
592
using System.Collections.Generic; using System.Runtime.Serialization; namespace SecureAuth.Sdk { [DataContract] public class GroupAssociateRequest : BaseRequest { [DataMember(Name = "groupNames", EmitDefaultValue = false)] public List<string> GroupNames { get; set; } [D...
bsd-3-clause
uacaps/UniversityPrograms-Android
UniversityPrograms/app/src/main/java/ua/edu/universityprograms/app/models/Members.java
1168
package ua.edu.universityprograms.app.models; import android.os.Parcel; import android.os.Parcelable; /** * Created by vcaciuc on 6/4/2014. */ public class Members implements Parcelable { public String url, info, name, about; public Members(String url, String name, String info, String about) { thi...
bsd-3-clause
nipy/brainx
brainx/tests/test_nodal_roles.py
1397
#test nodal roles import unittest import networkx as nx from brainx import nodal_roles as nr from brainx import weighted_modularity as wm class TestNodalRoles(unittest.TestCase): def test_disconnected_communites(self): graph = nx.Graph([(0,1),(1,2),(2,0),(3,4),(3,5),(4,5)]) partition = wm.WeightedPartition(graph...
bsd-3-clause
ng-web/leapro_crm
views/addresses/_search.php
978
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model app\models\AddressesSearch */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="addresses-search"> <?php $form = ActiveForm::begin([ 'action' => ['index'], 'method' => 'get', ]); ?> ...
bsd-3-clause
mcleary/pipeline
dp/rix/gl/src/TextureGLBuffer.cpp
4843
// Copyright NVIDIA Corporation 2011 // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following d...
bsd-3-clause
DimensionSrl/ThunderBay
app/models/device.rb
111
class Device < ActiveRecord::Base belongs_to :app has_many :messages self.primary_key = 'identifier' end
bsd-3-clause
andys/ruby-iarm
lib/iarm/client.rb
148
require 'drb' module Iarm class Client def self.connect(server) #DRb.start_service DRbObject.new(nil, server) end end end
bsd-3-clause
eltondias/SistemaVendasGarantias
public/layouts/admin/admin/ajax/buttons.php
55404
<?php $base = 'public/layouts/admin/admin/'; ?> <div class="row"> <div class="col-xs-12 col-sm-7 col-md-7 col-lg-4"> <h1 class="page-title txt-color-blueDark"><i class="fa fa-desktop fa-fw "></i> UI Elements <span>> Buttons </span></h1> </div> <div class="col-xs-12 col-sm-5 col-md-5 col-lg-8"> <ul id=...
bsd-3-clause
char0n/ramda-adjunct
test/rejectP.js
1267
import { assert } from 'chai'; import * as RA from '../src'; describe('rejectP', function () { const rejectWithError = () => Promise.reject(new Error('Expected method to reject.')); it('should reject if provided with no arguments', function () { return RA.rejectP() .then(rejectWithError) .cat...
bsd-3-clause
ltilve/chromium
third_party/mojo/src/mojo/public/go/application/connection.go
5166
// 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. package application import ( "log" "mojo/public/go/bindings" "mojo/public/go/system" sp "mojo/public/interfaces/application/service_provider" ) ty...
bsd-3-clause
themasterchef/pcl-streamer
src/pclstreamer/TcpWriter.cpp
818
#include "TcpWriter.hpp" TcpWriter::TcpWriter(const Chanin<string>& _in, const int _port) : in(_in), port(_port) {} TcpWriter::~TcpWriter() { socketStream.close(); } void TcpWriter::run() { // Prepare try { boost::asio::io_service io_service; tcp::endpoint endpoint (tcp::v4(), port); ...
bsd-3-clause
MiddlewareICS/MiddlewareICS-2.0
app/controllers/Bootstrap.java
6431
/** * */ package controllers; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Date; import java.util.List; import play.Play; import play.jobs.Job...
bsd-3-clause
rstit/flask-airbrake
docs/source/conf.py
9440
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Flask-Airbrake documentation build configuration file, created by # cookiecutter pipproject # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file...
bsd-3-clause
bgmerrell/tftpdmem
handlers/datahandlers_test.go
5012
package handlers import ( "bytes" "fmt" "net" "testing" fmgr "github.com/bgmerrell/tftpdmem/filemanager" errs "github.com/bgmerrell/tftpdmem/server/errors" ) func TestGetBlockNum(t *testing.T) { expectedBlockNum := uint16(0xa8ca) blockNum, err := getBlockNum([]byte{0xa8, 0xca, 0x61, 0x62, 0x3}) if err != ni...
bsd-3-clause
jhnsntmthy/tgs_store
app/models/order_observer.rb
608
class OrderObserver < ActiveRecord::Observer observe :order # Generic transition callback *after* the transition is performed def after_transition(record, attribute_name, event_name, from_state, to_state) current_user_session = UserSession.find rescue nil author = current_user_session ? current_user_sess...
bsd-3-clause
OpenMediaPortal/omp-express-mongo-api
dao/sync.js
935
/** * @fileoverview Sync (status) schema * * @TODO: Find out why a sync object with no library key is always being inserted into the database * @author ojourmel */ const mongoose = require('mongoose'); const Schema = mongoose.Schema; const config = require('../config'); const syncSchema = new Schema({ status...
bsd-3-clause
leopoldkwok/zendframework2
public/index.php
569
<?php /** * This makes our life easier when dealing with paths. Everything is relative * to the application root now. */ error_reporting(E_ALL|E_STRICT); ini_set('display_errors', 'on'); chdir(dirname(__DIR__)); // Decline static file requests back to the PHP built-in webserver if (php_sapi_name() === 'cli-server'...
bsd-3-clause
gotoAndBliss/True-Jersey
test/factories/order_factory.rb
216
Factory.define(:order) do |record| # associations: record.association(:user, :factory => :user) end Factory.define :order_with_totals, :parent => :order do |f| f.line_items { [Factory(:line_item)] } end
bsd-3-clause
petablox-project/petablox
android/models/src/java/nio/CharBuffer.java
2928
class CharBuffer { public CharBuffer() {} @STAMP(flows = {@Flow(from="array",to="@return")}) public static java.nio.CharBuffer wrap(char[] array) { return new StampCharBuffer(); } @STAMP(flows = {@Flow(from="array",to="@return"), @Flow(from="start",to="@return"), @Flow(from="charCount",to="@retu...
bsd-3-clause
jwang-net/sector-scraper
sectorscraper/linkscraper_nyse.py
2150
# coding=utf-8 import os import csv import requests import bs4 import pandas as pd home = os.path.expanduser('~') mainfolder = home + '/scrapecollect/' nysefile = mainfolder + 'healthcare-NYSE_filings_sorted_final.csv' nyselinks = mainfolder + 'healthcare-NYSE_links.csv' headers = ['Ticker', 'Link'] if os.path.isd...
bsd-3-clause
endlessm/chromium-browser
tools/swarming_client/tests/test_env.py
2739
# Copyright 2014 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. import logging import os import sys import unittest import six # Directory client/tests/ TESTS_DIR = os.path.dirname(os.path.abspath(six.text_ty...
bsd-3-clause
skeeks-cms/cms
src/validators/LoginValidator.php
764
<?php /** * @author Semenov Alexander <semenov@skeeks.com> * @link http://skeeks.com/ * @copyright 2010 SkeekS (СкикС) * @date 26.09.2015 */ namespace skeeks\cms\validators; use yii\validators\Validator; use Exception; /** * Class LoginValidator * @package skeeks\cms\validators */ class LoginValidator extend...
bsd-3-clause
ujwalrao/quizdb2
models/Change.php
618
<?php /** * Created by PhpStorm. * User: vidhey * Date: 15/4/16 * Time: 9:01 PM */ namespace app\models; use Yii; use yii\base\Model; class Change extends Model { public $current; public $new; public $confirm; public function rules() { return [ [['current', 'new' ,'conf...
bsd-3-clause
ropable/resource_tracking
tracking/migrations/0009_device_deleted.py
415
# Generated by Django 2.2.11 on 2021-04-19 03:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tracking', '0008_auto_20210119_0826'), ] operations = [ migrations.AddField( model_name='device', name='deleted', ...
bsd-3-clause
fimex/sistema
frontend/models/produccion/VProgramacionProduccion.php
3808
<?php namespace frontend\models\produccion; use Yii; /** * This is the model class for table "v_ProgramacionProduccion". * * @property integer $IdProgramacion * @property integer $IdProgramacionSemana * @property integer $IdProgramacionDia * @property integer $IdPedido * @property integer $IdArea * @property...
bsd-3-clause
maurov/xraysloth
examples/rowland_tests.py
3861
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Tests/Examples for sloth.inst.rowland (generic tests) See also more specific tests (older first) ------------------------------------------ - rowland_sagittal_tests (data evaluation sagittal prototype) - rowland_detector_tests (figures showing detector movements) - r...
bsd-3-clause
IG-Group/ig-webapi-dotnet-sample
IGWebApiClient/Model/dto/endpoint/funds/manage/edit/EditCardRequest.cs
360
using System.Collections.Generic; using dto.endpoint.auth.session; namespace dto.endpoint.funds.manage.edit { public class EditCardRequest{ ///<Summary> ///Start date ///todo should not be required to be notnull ///</Summary> public string startDate { get; set; } ///<Summary> ///Expiry date ///</Summary> pub...
bsd-3-clause
paperculture/alchemy_cms
config/routes.rb
4104
Alchemy::Engine.routes.draw do root :to => 'pages#show' get '/sitemap.xml' => 'pages#sitemap', format: 'xml' get '/admin' => redirect('admin/dashboard') get '/admin/dashboard' => 'admin/dashboard#index', :as => :admin_dashboard get '/admin/dashboard/info' => 'admin/dashboard#info', :as => :...
bsd-3-clause
exponent/exponent
packages/expo-notifications/android/src/main/java/expo/modules/notifications/serverregistration/ServerRegistrationModule.java
1145
package expo.modules.notifications.serverregistration; import android.content.Context; import org.unimodules.core.ExportedModule; import org.unimodules.core.Promise; import org.unimodules.core.interfaces.ExpoMethod; public class ServerRegistrationModule extends ExportedModule { private static final String EXPORTED...
bsd-3-clause
mdaif/olympia
apps/editors/models.py
26061
import datetime from django.conf import settings from django.core.cache import cache from django.db import models from django.db.models import Sum from django.template import Context, loader from django.utils.datastructures import SortedDict import commonware.log from tower import ugettext_lazy as _lazy import amo i...
bsd-3-clause
matsumoto-r/synciga
src/third_party/webrtc/modules/audio_coding/main/test/iSACTest.cc
16812
/* * Copyright (c) 2012 The WebRTC 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 in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
bsd-3-clause
ngokevin/cyder
setup.py
371
import os from setuptools import setup, find_packages setup(name='cyder', version='1.0', description='Django application.', long_description='', author='', author_email='', license='', url='', include_package_data=True, classifiers = [], packages=find_packa...
bsd-3-clause
gnanam336/ideal
ideal/development/constructs/modifier_construct.java
783
/* * Copyright 2014 The Ideal Authors. All rights reserved. * * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE file or at * https://developers.google.com/open-source/licenses/bsd */ package ideal.development.constructs; import ideal.library.elements.*; import javax...
bsd-3-clause
babagay/razzd
backend/models/Alias.php
941
<?php namespace backend\models; use Yii; /** * This is the model class for table "alias". * * @property string $id * @property integer $eid * @property string $model * @property string $url * @property string $alias */ class Alias extends \yii\db\ActiveRecord { /** * @inheritdoc */ public ...
bsd-3-clause
kbc-developers/Mozc
src/session/random_keyevents_generator.cc
12005
// Copyright 2010-2016, 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 condit...
bsd-3-clause
vrkansagara/vrkansagara.in
config/app.php
9432
<?php declare(strict_types=1); return [ /* |-------------------------------------------------------------------------- | Application Name |-------------------------------------------------------------------------- | | This value is the name of your application. This value is used when the ...
bsd-3-clause
jklenzing/pysat
pysat/instruments/sw_f107.py
33411
# -*- coding: utf-8 -*- """Supports F10.7 index values. Downloads data from LASP and the SWPC. Parameters ---------- platform : string 'sw' name : string 'f107' tag : string '' LASP F10.7 data (downloads by month, loads by day) 'all' All LASP standard F10.7 'prelim' Preliminary SWPC daily solar ind...
bsd-3-clause
nwolek/LowkeyNW
source/projects/nw.phasorshift_tilde/nw.phasorshift_tilde.cpp
11696
/* ** nw.phasorshift~.c ** ** MSP object ** generates evenly shifted phase signals ** 2001/08/09 started by Nathan Wolek ** ** Copyright © 2001,2014 by Nathan Wolek ** License: http://opensource.org/licenses/BSD-3-Clause ** */ #include "c74_msp.h" using namespace c74::max; //#define DEBUG //enable debugging mess...
bsd-3-clause
sheldon/epgp
LibItemUtils-1.0.lua
15193
-- This library provides an interface to query if an item can be -- use by a certain class. The API is as follows: -- -- CanClassUse(class, itemType): class is one of **** and itemType a localized itemType (http://www.wowwiki.com/ItemType). -- local MAJOR_VERSION = "LibItemUtils-1.0" local MINOR_VERSION = tonumber(("$...
bsd-3-clause
cvmfs/cvmfs_services
internal/gateway/receiver/mock_receiver.go
861
package receiver import ( "context" "io" gw "github.com/cvmfs/gateway/internal/gateway" ) // MockReceiver is a mocked implementation of the Receiver interface, for testing // Can implement fault injection type MockReceiver struct { } // NewMockReceiver constructs a new MockReceiver object which implements the //...
bsd-3-clause
dbastin/donkey
src/java/prod/edge/org/apache/commons/io/FileUtilsStatic.java
862
package edge.org.apache.commons.io; import au.net.netstorm.boost.bullet.scalpel.core.Edge; import org.apache.commons.io.filefilter.IOFileFilter; import java.io.File; import java.util.Collection; import java.util.List; public interface FileUtilsStatic extends Edge { void cleanDirectory(File file); void copyF...
bsd-3-clause
Youxiang11/lvmeida
member/views/travel-fund/view.php
777
<?php use yii\helpers\Html; use yii\widgets\DetailView; /* @var $this yii\web\View */ /* @var $model member\models\IntegrationRecord */ $this->title = $model->travel_record_id; $this->params['breadcrumbs'][] = ['label' => Yii::t('app', '旅游积分'), 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <...
bsd-3-clause
kurli/blink-crosswalk
Source/platform/heap/HeapTest.cpp
206271
/* * Copyright (C) 2013 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
forcedotcom/phoenix
phoenix-core/src/test/java/com/salesforce/phoenix/end2end/IsNullTest.java
3666
/******************************************************************************* * Copyright (c) 2013, Salesforce.com, 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: * * Redistr...
bsd-3-clause
graysky/tourbus
public/javascripts/lightWindow.js
52416
// lightWindow.js v1.1 // // Copyright (c) 2007 Einstein Industries // Author: Kevin P Miller | http://www.stickmanlabs.com // // LightWindow is freely distributable under the terms of an MIT-style license. // // I don't care what you think about the file size... // Be a pro: // http://www.thinkvitamin.com/feat...
bsd-3-clause
aekkapun/Other-Charge-Management
models/OcrEntrySearch.php
2686
<?php namespace app\models; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; use app\models\OcrEntry; /** * OcrEntrySearch represents the model behind the search form about `app\models\OcrEntry`. */ class OcrEntrySearch extends OcrEntry { /** * @inheritdoc */ public function rules() ...
bsd-3-clause
aghiles/microexr
src/channel.cpp
1628
/******************************************************************************/ /* */ /* Copyright (c) 2011, DNA Research, the 3Delight Developers. */ /* All Rights Reserved. ...
bsd-3-clause