repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
pjholland/Voltaire_six | features/step_definitions/signin_step.rb | 516 | Given(/^the visitor goes to the "([^"]*)" page$/) do |page|
if page == "sign in"
@test_site.landing.go_to_signin.click
end
if page == "register"
@test_site.landing.go_to_register.click
end
if page == "new registration"
@test_site.landing.go_to_new_registration.click
end
end
When(/^the visitor s... | bsd-3-clause |
MapCreatorEU/m4n-api | src/proxy/OwnedResourceProxy.js | 4860 | /*
* BSD 3-Clause License
*
* Copyright (c) 2020, Mapcreator
* 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, th... | bsd-3-clause |
karlnapf/kernel_hmc | kernel_hmc/densities/gaussian.py | 3107 | from scipy.linalg import solve_triangular
from kernel_hmc.tools.math import qmult
from kernel_hmc.tools.assertions import assert_positive_int
import numpy as np
def log_gaussian_pdf(x, mu=None, Sigma=None, is_cholesky=False, compute_grad=False):
if mu is None:
mu = np.zeros(len(x))
if Sigma is None:
... | bsd-3-clause |
r3ap3r2004/spree_spraycan | app/controllers/spraycan_base_controller_decorator.rb | 234 | Spraycan::BaseController.class_eval do
private
def authenticate_spraycan
authorize! :admin, Object
end
private
def current_ability
@current_ability ||= Spree::Ability.new(current_user)
end
end
| bsd-3-clause |
SalesforceEng/Providence | Empire/helpers/__init__.py | 2199 | '''
Copyright (c) 2015, 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:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the foll... | bsd-3-clause |
dineshkummarc/zf2 | library/Zend/Memory/Container/AccessController.php | 3625 | <?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 |
hernad/CEF1 | libcef_dll/ctocpp/load_handler_ctocpp.cc | 2944 | // Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
// ---------------------------------------------------------------------------
//
// This file was generated by the CEF translato... | bsd-3-clause |
taufikmaul/si-hct | backend/views/transaksibarang/index.php | 8166 | <?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\jui\DatePicker;
use yii\jui\AutoComplete;
use yii\web\JsExpression;
use backend\models\PelangganM;
use backend\models\BarangM;
use kartik\select2\Select2;
use kartik\typeahead\TypeaheadBasic;
use yii\helpers\ArrayHelper;
$this->title = 'Transaksi Order B... | bsd-3-clause |
flynx/pli | pli/pattern/state/fsm.py | 23354 | #=======================================================================
__version__ = '''0.3.41'''
__sub_version__ = '''20070725023520'''
__copyright__ = '''(c) Alex A. Naanou 2003'''
#-----------------------------------------------------------------------
__doc__ = '''\
This module defines a Finite State Machine ... | bsd-3-clause |
roskakori/pygount | pygount/analysis.py | 32051 | """
Functions to analyze source code and count lines in it.
"""
# Copyright (c) 2016-2022, Thomas Aglassinger.
# All rights reserved. Distributed under the BSD License.
import codecs
import collections
import glob
import hashlib
import itertools
import logging
import os
import re
from enum import Enum
from typing impor... | bsd-3-clause |
RyanTech/YunDou-advanced | frontend/controllers/SiteController.php | 5340 | <?php
namespace frontend\controllers;
use Yii;
use common\models\LoginForm;
use frontend\models\PasswordResetRequestForm;
use frontend\models\ResetPasswordForm;
use frontend\models\SignupForm;
use frontend\models\ContactForm;
use yii\base\InvalidParamException;
use yii\web\BadRequestHttpException;
use yii\web\Controll... | bsd-3-clause |
sgraham/nope | v8/src/compiler/linkage.cc | 6745 | // Copyright 2014 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/code-stubs.h"
#include "src/compiler.h"
#include "src/compiler/linkage.h"
#include "src/compiler/node.h"
#include "src/compiler/pipeline.h... | bsd-3-clause |
sslattery/Chimera | doc/spn/fuel_assembly/sp7/fs_ml.py | 16592 | ###############################################################################
## fs.py
## 9te [angband.ornl.gov]
## Wed Jan 12 10:37:50 2011
###############################################################################
## Copyright (C) 2008 Oak Ridge National Laboratory, UT-Battelle, LLC.
##------------------------... | bsd-3-clause |
mjtamlyn/archery-scoring | core/migrations/0012_junior_masters.py | 559 | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2017-08-02 16:14
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0011_user_name'),
]
operations = [
migrations.AddField(
... | bsd-3-clause |
mess110/data-catalog | config/environments/production.rb | 1760 | DataCatalog::Application.configure do
# Settings specified here will take precedence over those in config/environment.rb
# The production environment is meant for finished, "live" apps.
# Code is not reloaded between requests
config.cache_classes = true
# Full error reports are disabled and caching is turne... | bsd-3-clause |
Zosoled/Cumulus | src/aura/BGE_ConfigurationWizard/BGE_ConfigurationWizardHelper.js | 22000 | ({
/******************************** Init Functions *****************************/
init: function(component) {
var recordId = component.get('v.recordId');
var sourceBatchId = component.get('v.sourceBatchId');
var action = component.get('c.getRecordDetails');
action.setParams({
... | bsd-3-clause |
petermax2/libelektra | src/bindings/jna/libelektra/src/main/java/org/libelektra/exception/ResourceException.java | 282 | package org.libelektra.exception;
import org.libelektra.Key;
public class ResourceException extends PermanentException
{
private static final long serialVersionUID = 1L;
public static final String ERROR_NUMBER = "C01100";
public ResourceException (Key k)
{
super (k);
}
}
| bsd-3-clause |
sosey/ginga | ginga/canvas/CompoundMixin.py | 7594 | #
# CompoundMixin.py -- enable compound capabilities.
#
# Eric Jeschke (eric@naoj.org)
#
# Copyright (c) Eric R. Jeschke. All rights reserved.
# This is open-source software licensed under a BSD license.
# Please see the file LICENSE.txt for details.
#
import sys, traceback
import numpy
from ginga.util.six.moves impo... | bsd-3-clause |
villagres/website | public/administracao/app/views/admin2/banner/home.blade.php | 1258 | @extends('layout.master')
@section('title','Administração')
@section('content')
@include('layout.topo')
<div class="row">
@include('layout.menu')
<div class="col-md-9">
<div class="row">
<div class="col-md-9">
<h1>Gerenciamento de Banners</h1>
</div>
<div class="col-md-3 btn-novo">
<a h... | bsd-3-clause |
jupyterlab/jupyterlab-git | src/components/SinglePastCommitInfo.tsx | 8990 | import { TranslationBundle } from '@jupyterlab/translation';
import { fileIcon } from '@jupyterlab/ui-components';
import { CommandRegistry } from '@lumino/commands';
import * as React from 'react';
import { FixedSizeList, ListChildComponentProps } from 'react-window';
import { classes } from 'typestyle';
import { Logg... | bsd-3-clause |
stormi/tsunami | src/secondaires/navigation/editeurs/matedit/__init__.py | 5283 | # -*-coding:Utf-8 -*
# Copyright (c) 2013 LE GOFF Vincent
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# lis... | bsd-3-clause |
leighpauls/k2cro4 | net/quic/quic_packet_creator.cc | 5948 | // 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 "net/quic/quic_packet_creator.h"
#include "base/logging.h"
#include "net/quic/quic_utils.h"
//#include "util/random/acmrandom.h"
using base... | bsd-3-clause |
drchav/zf2-doctrine-datatable | module/Stock/src/Stock/Entity/Product.php | 3031 | <?php
/**
* Tutorial of Zend Framework 2 and Doctrine
*
* This entity is a simple example how to use Doctrine in ZF2
*
* @author Thiago Pelizoni <thiago.pelizoni@gmail.com>
*/
namespace Stock\Entity;
use DataTable\Model\ModelAbstract;
use Doctrine\ORM\Mapping as ORM;
use Zend\InputFilter\InputFilter;
use Zend\I... | bsd-3-clause |
flyflyhe/cms | models/Category.php | 3362 | <?php
namespace app\models;
use Yii;
use app\services\FlashService;
/**
* This is the model class for table "category".
*
* @property integer $id
* @property string $name
* @property integer $pid
* @property string $created
* @property string $updated
*/
class Category extends \yii\db\ActiveRecord
{
/**
... | bsd-3-clause |
ylitormatech/terapialaskutus | therapyinvoicing/reporting/views.py | 3830 | import datetime
import random
import time
from django.utils.translation import ugettext_lazy as _
from braces.views import GroupRequiredMixin
from django.views.generic import TemplateView
from ..api.models import MonthlyRevenue
from django.shortcuts import render_to_response
class MonthlyReportView(GroupRequiredMixin... | bsd-3-clause |
fireworks11477/police | views/student/course/view.php | 842 | <?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model app\models\student\course\Course */
$this->title = $model->courseName;
$this->params['breadcrumbs'][] = ['label' => '实验记录', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="course-vi... | bsd-3-clause |
hiqdev/hipanel-module-finance | src/models/decorators/server/ServerSataDUResourceDecorator.php | 502 | <?php
/**
* Finance module for HiPanel
*
* @link https://github.com/hiqdev/hipanel-module-finance
* @package hipanel-module-finance
* @license BSD-3-Clause
* @copyright Copyright (c) 2015-2021, HiQDev (http://hiqdev.com/)
*/
namespace hipanel\modules\finance\models\decorators\server;
use Yii;
class S... | bsd-3-clause |
luiges90/BattleSys | src/battlesys/move/MoveStatus/AllDizzyAtk.java | 1155 | package battlesys.move.MoveStatus;
import battlesys.exception.BattleSysException;
import battlesys.*;import java.io.IOException;
import java.util.*;
/**
*
* @author Peter
*/
public class AllDizzyAtk extends MoveStatus{
/**
*
* @param owner
*/
public AllDizzyAtk(Player owner) throws IOExcep... | bsd-3-clause |
ric2b/Vivaldi-browser | chromium/chrome/browser/apps/digital_goods/digital_goods_impl.cc | 4136 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/apps/digital_goods/digital_goods_impl.h"
#include "chrome/browser/apps/digital_goods/util.h"
#include "content/public/browser/re... | bsd-3-clause |
tarawebstudio/tarastudiosite | module/Admin/src/Admin/Controller/IndexController.php | 2583 | <?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendSkeletonModule for the canonical source repository
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
... | bsd-3-clause |
Open-MBEE/MDK | src/main/java/gov/nasa/jpl/mbee/mdk/mms/actions/ElementDiffAction.java | 1989 | package gov.nasa.jpl.mbee.mdk.mms.actions;
import com.fasterxml.jackson.databind.JsonNode;
import com.nomagic.magicdraw.actions.MDAction;
import com.nomagic.magicdraw.core.Application;
import com.nomagic.magicdraw.core.Project;
import gov.nasa.jpl.mbee.mdk.MDKPlugin;
import javax.annotation.CheckForNull;
import javax... | bsd-3-clause |
APCVSRepo/sdl_core | src/components/policy/policy_regular/src/sql_pt_representation.cc | 63597 | /*
Copyright (c) 2013, Ford Motor Company
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 fol... | bsd-3-clause |
brownjordaninternational/OrchardCMS | src/Orchard.Web/Modules/Entiat.ProductsMenuItem/Navigation/NavigationProductsProvider.cs | 4319 | using System.Collections.Generic;
using System.Linq;
using Orchard.UI.Navigation;
using Entiat.ProductsMenuItem.Services;
using Orchard;
using Entiat.CustomSettings.Models;
using Orchard.ContentManagement;
using Bj.Essentials.Entities;
using Orchard.Localization;
namespace Entiat.ProductsMenuItem.Navigation
{
pub... | bsd-3-clause |
astrofrog/ginga | ginga/gtkw/GtkMain.py | 5787 | #
# GtkMain.py -- pygtk threading help routines.
#
# Eric Jeschke (eric@naoj.org)
#
# Copyright (c) Eric R. Jeschke. All rights reserved.
# This is open-source software licensed under a BSD license.
# Please see the file LICENSE.txt for details.
#
"""
GUI threading help routines.
Usage:
import GtkMain
# See c... | bsd-3-clause |
CMUSV-VisTrails/WorkflowRecommendation | vistrails/packages/qgis/__init__.py | 2182 | ###############################################################################
##
## Copyright (C) 2006-2011, University of Utah.
## All rights reserved.
## Contact: contact@vistrails.org
##
## This file is part of VisTrails.
##
## "Redistribution and use in source and binary forms, with or without
## modification, ... | bsd-3-clause |
BRCDcomm/rubybvc | lib/openflowdev/actions/push_mpls_header_action.rb | 2105 | # Copyright (c) 2015, BROCADE COMMUNICATIONS SYSTEMS, 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
# li... | bsd-3-clause |
miroslavhajek/vivoportal | src/Vivo/CMS/UI/Content/Editor/FileboardFactory.php | 480 | <?php
namespace Vivo\CMS\UI\Content\Editor;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
class FileboardFactory implements FactoryInterface
{
public function createService(ServiceLocatorInterface $serviceLocator)
{
$docApi = $serviceLocator->get('Vivo\CMS\... | bsd-3-clause |
MjAbuz/carrot2 | applications/carrot2-examples/examples/org/carrot2/examples/clustering/ClusteringDataFromPubMed.java | 2381 |
/*
* Carrot2 project.
*
* Copyright (C) 2002-2015, Dawid Weiss, Stanisław Osiński.
* All rights reserved.
*
* Refer to the full license file "carrot2.LICENSE"
* in the root folder of the repository checkout or at:
* http://www.carrot2.org/carrot2.LICENSE
*/
package org.carrot2.examples.clustering;
import ja... | bsd-3-clause |
pugovok/lostpets | console/migrations/m141206_112958_change_user_add_phone.php | 643 | <?php
use yii\db\Schema;
use yii\db\Migration;
class m141206_112958_change_user_add_phone extends Migration
{
public function safeUp()
{
$this->addColumn('user', 'phone', Schema::TYPE_STRING.'(50) NOT NULL DEFAULT \'\'');
$this->addColumn('description', 'phone', Schema::TYPE_STRING.'(50) NOT ... | bsd-3-clause |
JOverseer/joverseer | joverseerjar/src/org/joverseer/ui/chat/OrderWrapper.java | 1523 | package org.joverseer.ui.chat;
import org.joverseer.domain.Order;
import java.io.Serializable;
public class OrderWrapper implements Serializable {
private static final long serialVersionUID = 3769006563129294447L;
int orderNo;
String parameters;
String charId;
int hexNo;
int order... | bsd-3-clause |
endlessm/chromium-browser | extensions/common/manifest_handlers/shared_module_info.cc | 8637 | // 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 "extensions/common/manifest_handlers/shared_module_info.h"
#include <stddef.h>
#include <memory>
#include "base/lazy_instance.h"
#include "bas... | bsd-3-clause |
andialbrecht/sqlparse | tests/test_regressions.py | 13693 | import pytest
import sqlparse
from sqlparse import sql, tokens as T
def test_issue9():
# make sure where doesn't consume parenthesis
p = sqlparse.parse('(where 1)')[0]
assert isinstance(p, sql.Statement)
assert len(p.tokens) == 1
assert isinstance(p.tokens[0], sql.Parenthesis)
prt = p.tokens[... | bsd-3-clause |
Cotonti/Cotonti | system/functions.php | 154315 | <?php
/**
* Main function library.
*
* @package API - Functions
* @copyright (c) Cotonti Team
* @license https://github.com/Cotonti/Cotonti/blob/master/License.txt
*/
defined('COT_CODE') or die('Wrong URL');
// System requirements check
if (!defined('COT_INSTALL'))
{
(function_exists('version_compare') && vers... | bsd-3-clause |
jpopelka/atomic-reactor | tests/plugins/test_rpmqa.py | 3417 | """
Copyright (c) 2015 Red Hat, Inc
All rights reserved.
This software may be modified and distributed under the terms
of the BSD license. See the LICENSE file for details.
"""
from __future__ import unicode_literals
import docker
from flexmock import flexmock
import pytest
from atomic_reactor.core import DockerTas... | bsd-3-clause |
ferdhika31/males | Modules/Admin/Controllers/Minggu.php | 5026 | <?php
namespace Modules\Admin\Controllers;
use Resources, Models, Libraries;
class Minggu extends Resources\Controller{
/**
* @Author : Localhost {Ferdhika Yudira}
* @Email : fer@dika.web.id
* @Web : http://dika.web.id
* @Date : 2015-12-10 18:57:09
**/
function __construct(){
parent::__con... | bsd-3-clause |
colossalbit/cssypy | cssypy/csstokens.py | 7539 | from __future__ import absolute_import
from __future__ import print_function
import re
#==============================================================================#
# Token definition helpers
token_lookup = {} # id -> name
tokens = {} # name -> id
token_regexes = [] # regexes as strings (compiled at th... | bsd-3-clause |
dergraaf/loa | tools/upload/src/loa/upload/Upload.java | 7862 | package loa.upload;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.concurrent.Semaphore;
import java.util.concurrent.TimeUnit;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import loa.sab.Frame;
import com.beust.jcommander.JCommander;
import com.beust.jcomm... | bsd-3-clause |
TheMrMilchmann/lwjgl3 | modules/lwjgl/vulkan/src/generated/java/org/lwjgl/vulkan/VkXlibSurfaceCreateInfoKHR.java | 18542 | /*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.vulkan;
import javax.annotation.*;
import java.nio.*;
import org.lwjgl.*;
import org.lwjgl.system.*;
import static org.lwjgl.system.Checks.*;
import static org.lwj... | bsd-3-clause |
HHSIDEAlab/medicaid_eligibility | test/fixtures/rule_fixtures/income.rb | 15099 | ##### GENERATED AT 2015-07-06 17:08:30 -0400 ######
class IncomeFixture < MagiFixture
attr_accessor :magi, :test_sets
def initialize
super
@magi = 'Income'
@test_sets = [
# ensure that medicaid threshold is making its way down properly
{
test_name: "Income - Set Percentage Used",
... | bsd-3-clause |
dollyaswin/zf2-pagination | module/Orchid/src/Orchid/Model/CountryTable.php | 1690 | <?php
namespace Orchid\Model;
use Zend\Db\Adapter\Adapter,
Zend\Db\ResultSet\ResultSet,
Zend\Db\TableGateway\AbstractTableGateway,
Orchid\Model\Country;
class CountryTable extends AbstractTableGateway
{
protected $table = 'country';
public function __construct(Adapter $adapter)
{
$thi... | bsd-3-clause |
nacl-webkit/native_client | src/trusted/debug_stub/win/platform_impl.cc | 1837 | /*
* Copyright (c) 2012 The Native Client 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 <process.h>
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <exception>
#include "native_client/src/includ... | bsd-3-clause |
VhatAmI/Go | Book provided code examples/code_examples/chapter_12/switch_input.go | 1059 | package main
import (
"fmt"
"os"
"bufio"
)
func main() {
inputReader := bufio.NewReader(os.Stdin)
fmt.Println("Please enter your name:")
input, err := inputReader.ReadString('\n')
if err != nil {
fmt.Println("There were errors reading, exiting program.")
return
}
fmt.Printf("Your name is %s", i... | bsd-3-clause |
fimex/sistema | frontend/views/produccion-angular/FormTiemposMuerto.php | 2160 | <div class="panel panel-primary">
<!-- Default panel contents -->
<div class="panel-heading">Control de fallas</div>
<div class="panel-body">
<button class="btn btn-success" ng-show="mostrar" ng-click="addTiempo()">Agregar Falla</button>
</div>
<div id="TMuerto" class="scrollable">
<... | bsd-3-clause |
ohnarya/parking | frontend/views/parkinglot/_suggestions.php | 1787 | <?php
use yii\helpers\Html;
use yii\helpers\Url;
?>
<div class="col-md-12">
<div class="lot-suggestion col-md-11" place=<?=$model['lot']['place']?> dest=<?=$model['lot']['destination']?>>
<div class="lot-title">
<?php if( $model['category'] === 'closest' ){
echo '<i class="fa ... | bsd-3-clause |
luizrjunior/ClubeLuxuria | module/Video/src/Video/Form/VideoCadForm.php | 3864 | <?php
namespace Video\Form;
use Zend\Form\Form;
use Video\Form\Filter\VideoCadFilter;
class VideoCadForm extends Form {
protected $tpVideo;
public function __construct($tpVideos = array()) {
parent::__construct(NULL);
$this->tpVideo = $tpVideos;
$this->... | bsd-3-clause |
Zhanat87/alina.test | backend/modules/news/News.php | 264 | <?php
namespace backend\modules\news;
class News extends \yii\base\Module
{
public $controllerNamespace = 'backend\modules\news\controllers';
public function init()
{
parent::init();
// custom initialization title goes here
}
}
| bsd-3-clause |
vanloswang/go | src/compress/flate/huffman_code.go | 9930 | // Copyright 2009 The Go 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 flate
import (
"math"
"sort"
)
// hcode is a huffman code with a bit code and bit length.
type hcode struct {
code, len uint16
}
type huffmanEncod... | bsd-3-clause |
DaisukeUra/pimouse_ros | scripts/buzzer4.py | 1190 | #!/usr/bin/env python
# encoding: utf8
import rospy
import actionlib
from std_msgs.msg import UInt16
from pimouse_ros.msg import MusicAction, MusicResult, MusicFeedback
def write_freq(hz=0):
bfile = "/dev/rtbuzzer0"
try:
with open(bfile, "w") as f:
f.write(str(hz) + "\n")
except IOErro... | bsd-3-clause |
HalCanary/skia-hc | src/gpu/vk/GrVkPipelineState.cpp | 13349 | /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/gpu/GrContext.h"
#include "src/core/SkMipMap.h"
#include "src/gpu/GrContextPriv.h"
#include "src/gpu/GrPipeline.h"
#include "src/gpu/GrRenderTarget.h"
#inclu... | bsd-3-clause |
OBHITA/PROCenter | IdentityServer/src/OnPremise/WebSite/Areas/Admin/Resources/KeyConfigurationViewModel.Designer.cs | 4376 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18033
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generate... | bsd-3-clause |
abryant/Compiler | src/compiler/language/parser/rules/type/TypeRAngleRule.java | 2849 | package compiler.language.parser.rules.type;
import static compiler.language.parser.ParseType.NESTED_QNAME_LIST;
import static compiler.language.parser.ParseType.POINTER_TYPE_RANGLE;
import static compiler.language.parser.ParseType.RANGLE;
import static compiler.language.parser.ParseType.TUPLE_TYPE_NOT_QNAME_LIST;
imp... | bsd-3-clause |
mowema/verano | vendor/zendframework/zendframework/tests/ZendTest/Loader/TestAsset/ServiceLocator.php | 906 | <?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
n... | bsd-3-clause |
ChristianKolling/Blog | module/Admin/src/Admin/Controller/PostsController.php | 2830 | <?php
namespace Admin\Controller;
use Core\Controller\ActionController;
use Zend\View\Model\ViewModel;
use Zend\Paginator\Paginator;
use Doctrine\Common\Collections\ArrayCollection;
use DoctrineModule\Paginator\Adapter\Collection as Adapter;
use Admin\Form\Post as Form;
use Admin\Validator\Post as Validacao;
use Core... | bsd-3-clause |
vivo-project/Vitro | api/src/test/java/stubs/javax/naming/InitialContextStub.java | 8388 | /* $This file is distributed under the terms of the license in LICENSE$ */
package stubs.javax.naming;
import java.util.Hashtable;
import java.util.Map;
import java.util.TreeMap;
import javax.naming.Binding;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.Name;
import javax.namin... | bsd-3-clause |
interactivethings/packup | configureDevelopment.js | 2297 | var path = require('path');
var fs = require('fs');
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = function(options) {
var entry = {};
if (typeof options.entry === 'object') {
Object.keys(options.entry).forEach(function(key) {
entry[key] = [
... | bsd-3-clause |
pile-contributors/pile-contributors.github.io | docpiles/imagesel/html/search/all_2.js | 215 | var searchData=
[
['circlebuildinlay',['CircleBuildInlay',['../class_circle_build_inlay.html',1,'']]],
['clearimage',['clearImage',['../class_image_sel.html#ad29b0e822e128c908ddef856a8cffb1b',1,'ImageSel']]]
];
| bsd-3-clause |
Aranjedeath/weather-by-text | weatherByText.php | 1969 | <?php
// make twilio/sdk and paragonie/easydb available
require_once "vendor/autoload.php";
// make $database available
require_once "database.inc.php";
// make $sid and $token available
require_once "twilio.inc.php";
require_once "weather.class.php";
$weather = new WEATHER($database);
use Twilio\Twiml;
$response = ne... | bsd-3-clause |
Barthak/voodoo | spellbook/Wiki/classes/WikiFormatter.php | 10600 | <?php
/**
* @author Marten Koedam <marten@dalines.net>
* @package WikiController
* @subpackage WikiFormatter
* @since 2-feb-2007
* @license www.dalines.org/license
* @copyright 2007, Dalines Software Library
*/
class WikiFormatter extends VoodooFormatter
{
/**
* @var Database &$db
*/
var $db;... | bsd-3-clause |
djyf1/ical4j | src/main/java/net/fortuna/ical4j/model/WeekDayList.java | 4299 | /**
* Copyright (c) 2012, Ben Fortuna
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* o Redistributions of source code must retain the above copyright
* notice, this list of condit... | bsd-3-clause |
meltingice/CamanJ | src/com/meltingice/caman/filters/Sepia.java | 1484 | /**
* CamanJ - Java Image Manipulation
* Ported from the CamanJS Javascript library
*
* Copyright 2011, Ryan LeFevre
* Licensed under the new BSD License
* See LICENSE for more info.
*
* Project Home: http://github.com/meltingice/CamanJ
*/
package com.meltingice.caman.filters;
import com.meltingice.caman.Cam... | bsd-3-clause |
pierobot/mangapie | database/seeds/UsersTableSeeder.php | 595 | <?php
use Illuminate\Database\Seeder;
Use App\User;
class UsersTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
if (User::count() > 0) {
$this->command->getOutput()->writeln('Users table is not empty, skipping..... | bsd-3-clause |
hung101/kbs | frontend/views/ref-jenis-kursus-penganjuran/create.php | 574 | <?php
use app\models\general\GeneralLabel;
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\models\RefJenisKursusPenganjuran */
$this->title = GeneralLabel::createTitle.' '.GeneralLabel::jenis_kursus_penganjuran;
$this->params['breadcrumbs'][] = ['label' => GeneralLabel::jenis_kursus_penganj... | bsd-3-clause |
vin120/wifiService | views/wifi/paymentfail.php | 1540 | <?php
use yii\helpers\Html;
use yii\helpers\Url;
?>
<!DOCTYPE html>
<html>
<head>
<title>订单支付失败</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;" />
<?=Html::cssFile('@web/css/public.css')?>
<?=Html::cssFil... | bsd-3-clause |
sterben13/library | backend/views/site/login.php | 1988 | <?php
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */
$this->title = 'Sign In';
$fieldOptions1 = [
'options' => ['class' => 'form-group has-feedback'],
'inputTemplate' => "{input}<span class... | bsd-3-clause |
QMXTech/MachineMusePowersuits | src/main/scala/net/machinemuse/powersuits/client/render/entity/RenderLuxCapacitorEntity.java | 1985 | package net.machinemuse.powersuits.client.render.entity;
import net.machinemuse.numina.geometry.Colour;
import net.machinemuse.numina.render.MuseTextureUtils;
import net.machinemuse.numina.render.RenderState;
import net.machinemuse.powersuits.common.Config;
import net.machinemuse.powersuits.entity.EntityLuxCapacitor;
... | bsd-3-clause |
primiano/light-dimmer-ble | android_app/LightsDimmer/mobile/src/main/java/com/primianotucci/lightsdimmer/MainActivity.java | 3919 | package com.primianotucci.lightsdimmer;
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
... | bsd-3-clause |
Caleydo/org.caleydo.view.domino | src/main/java/org/caleydo/view/domino/internal/undo/RemoveSliceCmd.java | 1746 | /*******************************************************************************
* Caleydo - Visualization for Molecular Biology - http://caleydo.org
* Copyright (c) The Caleydo Team. All rights reserved.
* Licensed under the new BSD license, available at http://caleydo.org/license
*********************************... | bsd-3-clause |
softak/webfaction_demo | apps/stores/migrations/0001_initial.py | 1094 | # 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):
# Adding model 'Store'
db.create_table('stores_store', (
('id', self.gf('django.db.models.fiel... | bsd-3-clause |
webowy/zend-acl | src/Role/InMemoryRoleProviderFactory.php | 799 | <?php
namespace Webowy\Permissions\Acl\Role;
use Interop\Container\ContainerInterface;
use Webowy\Permissions\Acl\Options\ModuleOptions;
use Zend\ServiceManager\Factory\FactoryInterface;
/**
* Class InMemoryRoleProviderFactory
* @package Webowy\Permissions\Acl\Role
*/
class InMemoryRoleProviderFactory implements F... | bsd-3-clause |
FelixOnline/FelixAdmin | helpers/list.php | 1937 | <?php
namespace FelixOnline\Admin\Pages;
class listHelper {
private $page;
private $manager;
private $pageData;
private $pk;
private $records;
private $numRecords;
private $currentPage;
public function __construct($pageName, $pageData, $manager, $pk, $pageInfo) {
$this->pageName= $pageName;
$this->manag... | bsd-3-clause |
ComponentFactory/Krypton | Source/Krypton Docking Examples/Docking Persistence/Form1.cs | 6803 | // *****************************************************************************
//
// © Component Factory Pty Ltd 2012. All rights reserved.
// The software and associated documentation supplied hereunder are the
// proprietary information of Component Factory Pty Ltd, PO Box 1504,
// Glen Waverley, Vic 3150, A... | bsd-3-clause |
salesforce/refocus | tests/db/model/room/create.js | 5150 | /**
* Copyright (c) 2017, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or
* https://opensource.org/licenses/BSD-3-Clause
*/
/**
* tests/db/model/room/create.js
*/
'use strict';
const expect = require('chai'... | bsd-3-clause |
killprd/tiwwocz | backend/models/SoftServicesGallery.php | 1142 | <?php
namespace backend\models;
use Yii;
/**
* This is the model class for table "soft_services_gallery".
*
* @property integer $id
* @property string $file_name
* @property string $title
* @property integer $service_id
*/
class SoftServicesGallery extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
... | bsd-3-clause |
sandeepraju/concurrency | python/generator.py | 654 | # Example 01
numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
for i in numbers:
print(numbers)
# # Example 02
# def square_eager(n):
# print("start of square_eager")
# result = []
# for i in range(n):
# print("generating square of {}".format(i))
# result.append(i * i)
# print("end of sq... | bsd-3-clause |
henry-nazare/wildcat | src/scanner.cpp | 429 | #include "scanner.h"
static bool in_range(char low, char val, char high) {
return low <= val && val <= high;
}
scanner
scanner::is_space("space", [](char c) { return c == ' ' || c == '\n'; }),
scanner::is_word("word", [](char c) { return c && !is_space(c); }),
scanner::is_ident("identifier", [](char c) {
... | bsd-3-clause |
voshod-nerd/map-friend | web/addAdvert.js | 1184 |
function createPlacemark(coords) {
return new ymaps.Placemark(coords);
}
function get_coordinates(tag){
var t =town + $(tag).val();
var myGeocoder = ymaps.geocode(t,{results:1});
myGeocoder.then( function (res) {
var coords = res.geoObjects.get(0).geometry.getCoordinates();
if (myPlacemark) {... | bsd-3-clause |
theduffmaster/beacon_portal_android | src/com/bernard/beaconportal/activities/crypto/PgpData.java | 2049 | package com.bernard.beaconportal.activities.crypto;
import java.io.Serializable;
import org.openintents.openpgp.OpenPgpSignatureResult;
public class PgpData implements Serializable {
private static final long serialVersionUID = 6314045536470848410L;
protected long mEncryptionKeyIds[] = null;
protected long mSigna... | bsd-3-clause |
driesdesmet/django-cms | cms/utils/permissions.py | 10675 | # -*- coding: utf-8 -*-
from cms.exceptions import NoPermissionsException
from cms.models import Page, PagePermission, GlobalPagePermission
from cms.plugin_pool import plugin_pool
from django.conf import settings
from django.contrib.auth.models import User, Group
from django.contrib.sites.models import Site
from django... | bsd-3-clause |
zimbra-api/zimbra-api | src/Zimbra/Admin/Request/CreateCos.php | 1196 | <?php
/**
* This file is part of the Zimbra API in PHP library.
*
* © Nguyen Van Nguyen <nguyennv1981@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Zimbra\Admin\Request;
/**
* CreateCos request class
* Cr... | bsd-3-clause |
PuerkitoBio/gred | srv/srv.go | 1213 | // Package srv implements the server components required to manage the database
// and its keys.
package srv
import (
"sync"
"time"
)
// Server defines the methods required to implement a Server.
type Server interface {
RWLocker
FlushAll()
GetDB(int) (DB, bool)
Time() (int64, int64)
}
const maxDBs = 16 // TOD... | bsd-3-clause |
wangxin39/xstat | ManageSystem/src/org/xsaas/xstat/web/conf/IssueConstants.java | 1149 | package org.xsaas.xstat.web.conf;
import java.util.LinkedHashMap;
public class IssueConstants {
public final static int NOT_STATUS = 1;
public final static int START_STATUS = 2;
public final static int END_STATUS = 3;
public final static int INQUISITION_DO = 1;
public final static int INQUISITION_... | bsd-3-clause |
BeakerDev/Dorans | src/main/java/gg/buff/dorans/StaticApi.java | 13577 | package gg.buff.dorans;
import com.google.gson.reflect.TypeToken;
import gg.buff.dorans.exceptions.DoransException;
import gg.buff.dorans.objects.generated.lol_static.Champion;
import gg.buff.dorans.objects.generated.lol_static.ChampionList;
import gg.buff.dorans.objects.generated.lol_static.Item;
import gg.buff.doran... | bsd-3-clause |
gus4no/spree_mixpanel | spec/models/spree/order_decorator_spec.rb | 411 | require 'spec_helper'
describe Spree::Order do
describe '#mixpanel_track_purchase' do
let(:user){ create(:user) }
let(:order){ create(:order, user: user, completed_at: Date.today, total: 1) }
before{ MixpanelTracker.any_instance.should_receive(:track_charge).with(user.id, order.total) }
it 'sends th... | bsd-3-clause |
lottie-c/spl_tests_new | src/java/cz/cuni/mff/spl/deploy/store/StoreUtils.java | 2261 | /*
* Copyright (c) 2012, František Haas, Martin Lacina, Jaroslav Kotrč, Jiří
* Daniel
* 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 abo... | bsd-3-clause |
endlessm/chromium-browser | components/cdm/browser/media_drm_storage_impl.cc | 32313 | // 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 "components/cdm/browser/media_drm_storage_impl.h"
#include <map>
#include <memory>
#include <tuple>
#include "base/bind.h"
#include "base/loggi... | bsd-3-clause |
iponweb/load_engine | load-engine/src/main/java/load_engine/runner/QueriesLimit.java | 2012 | /*
* Copyright (c) 2015, IponWeb (http://www.iponweb.com)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* noti... | bsd-3-clause |
spiffyjr/spiffy-debug-package | src/Plugin/RespondPluginFactory.php | 461 | <?php
namespace Spiffy\DebugPackage\Plugin;
use Spiffy\Inject\Injector;
use Spiffy\Inject\ServiceFactory;
class RespondPluginFactory implements ServiceFactory
{
/**
* @param Injector $i
* @return RespondPlugin
*/
public function createService(Injector $i)
{
/** @var ... | bsd-3-clause |
edo0101/zf2 | module/Album/config/module.config.php | 966 | <?php
return array(
'controllers' => array(
'invokables' => array(
'Album\Controller\Album' => 'Album\Controller\AlbumController',
),
),
'router' => array(
'routes' => array(
'album' => array(
'type' => 'segment',
... | bsd-3-clause |
provegard/ncdbg | src/test/scala/com/programmaticallyspeaking/ncd/nashorn/NashornDebuggerHostTest.scala | 1057 | package com.programmaticallyspeaking.ncd.nashorn
import com.programmaticallyspeaking.ncd.testing.UnitTest
import com.sun.jdi.ThreadReference
import org.scalatest.mockito.MockitoSugar
import org.scalatest.prop.TableDrivenPropertyChecks
import org.mockito.Mockito._
class NashornDebuggerHostTest extends UnitTest with Ta... | bsd-3-clause |
gutomaia/steamer-py | tests/integration/steam_simulator.py | 870 | import threading
from time import sleep
import web
import requests
urls = (
'/id/(\w+)/stats/(\w+)', 'game_page'
)
class game_page(object):
def GET(self, user, game):
f = open('fixtures/%s-%s.xml' % (user, game))
xml = f.read()
f.close()
web.header('Content-Length', len(xml))... | bsd-3-clause |