repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
coscms/xorm
builder/builder_select.go
1073
// Copyright 2016 The Xorm 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 builder import ( "errors" "fmt" ) func (b *Builder) selectWriteTo(w Writer) error { if len(b.tableName) <= 0 { return errors.New("no table indi...
bsd-3-clause
ldthomas/apg-js2-examples
execute-rule/colors.js
2921
// Generated by JavaScript APG, Version [`apg-js2`](https://github.com/ldthomas/apg-js2) module.exports = function(){ "use strict"; //``` // SUMMARY // rules = 3 // udts = 4 // opcodes = 15 // --- ABNF original opcodes // ALT = 1 // CAT = 3 // REP = 1 // ...
bsd-3-clause
MicroEJ/DemoJava-Showroom
com.is2t.widgets/src/java/com/is2t/mwt/widgets/tiny/Clock.java
4305
/** * Java * Copyright 2009-2012 IS2T. All rights reserved. * Use of this source code is governed by a BSD-style license that can be found at http://www.is2t.com/open-source-bsd-license/. */ package com.is2t.mwt.widgets.tiny; import java.util.Calendar; import java.util.Date; import com.is2t.mwt.widgets.IClock; i...
bsd-3-clause
AlchemyCMS/alchemy-usermanual
spec/libraries/template_helper_spec.rb
92
require 'spec_helper' module Alchemy::UserManual describe 'TemplateHelper' do end end
bsd-3-clause
Charleo85/SIS-Rebuild
batch_script.py
2722
from kafka import KafkaConsumer from elasticsearch import Elasticsearch import json, time try: # wait for 30 seconds for the initialization of Kafka time.sleep(30) # try to create instances of Kafka and Elasticsearch es = Elasticsearch(['es']) consumer = KafkaConsumer('new-listings-topic', group_i...
bsd-3-clause
TechFit/myDay
models/dayresult.php
1931
<?php namespace app\models; use Yii; use yii\data\Sort; use yii\db\ActiveRecord; class dayresult extends ActiveRecord{ public static function getAll($userId){ return self::find()->asArray()->where("user_id = '$userId'")->orderBy('date')->all(); } public static function getAllPagination...
bsd-3-clause
ymohl-cl/game-builder
scene/loader/build_loader.go
1639
package loader import ( "os" "runtime" "github.com/ymohl-cl/game-builder/objects" "github.com/ymohl-cl/game-builder/objects/block" "github.com/ymohl-cl/game-builder/objects/text" ) func (L *DefaultLoader) addBlockLoading() error { var b *block.Block var err error if b, err = block.New(block.Filled); err != ...
bsd-3-clause
tmaiaroto/minerva
config/bootstrap.php
3024
<?php use lithium\core\Libraries; // Add a minerva_models type Libraries::paths(array('minerva_models' => array( '{:library}\minerva\models\{:name}' ) )); // Set the date so we don't get any warnings (should be in your php.ini) $tz = ini_get('date.timezone'); if (!$tz) { $tz = 'UTC'; } date_default_timezone_set($...
bsd-3-clause
alameluchidambaram/CONNECT
Product/Production/Services/DocumentQueryCore/src/main/java/gov/hhs/fha/nhinc/gateway/aggregator/model/DocQueryMessageKey.java
9761
/* * Copyright (c) 2012, United States Government, as represented by the Secretary of Health and Human Services. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions o...
bsd-3-clause
meishichao/yii2test
vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Decorator/Cleanup.php
1715
<?php /** * Definition cache decorator class that cleans up the cache * whenever there is a cache miss. */ class HTMLPurifier_DefinitionCache_Decorator_Cleanup extends HTMLPurifier_DefinitionCache_Decorator { /** * @type string */ public $name = 'Cleanup'; /** * @return HTMLPurifier_Defi...
bsd-3-clause
codeliner/codelinerjs
src/Codelinerjs/Javascript/library/Backbone/BlockingView.js
751
var ClBackbone = $CL.namespace("Cl.Backbone"); $CL.require("Cl.Backbone.View"); ClBackbone.BlockingView = function() {}; ClBackbone.BlockingView = $CL.extendClass(ClBackbone.BlockingView, Cl.Backbone.View, { renderingIsBlocked : false, renderingQueued : false, blockRendering : function() { this.r...
bsd-3-clause
nickus83/Funny-Critters
prj.scripts/viewer.py
11918
# -*- coding: utf-8 -*- import os import os.path as osp import math import numpy as np import pygame import random import sys from pygame.locals import * def getImage(filename): """Get image for dissolving.""" sys.path.append("../prj.core") try: from utils import load_png except Exception, e: ...
bsd-3-clause
prolop/Prolop-cms
backend/views/comment/update.php
866
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model common\models\Comment */ $this->title = 'Обновить комментарий: '; $this->params['breadcrumbs'][] = ['label' => 'Comments', 'url' => ['index']]; $this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]]; $th...
bsd-3-clause
simodalla/newage
newage/migrations/0001_initial.py
350
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): pass def backwards(self, orm): pass models = { } ...
bsd-3-clause
diginmanager/digin
frontend/views/skills-testimonials/_search.php
987
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model app\models\SkillsTestimonialsSearch */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="skills-testimonials-search"> <?php $form = ActiveForm::begin([ 'action' => ['index'], 'method' => 'ge...
bsd-3-clause
mdcconcepts/opinion_desk_CAP
protected/modules/user/views/admin/view.php
1889
<?php $this->breadcrumbs = array( UserModule::t('Users') => array('admin'), $model->username, ); $this->menu = array( // array('label' => UserModule::t('Create User'), 'url' => array('create')), array('label' => UserModule::t('Update User'), 'url' => array('update', 'id' => $model->id)), array('lab...
bsd-3-clause
mvjohn100/spree_bank_transfer
spec/models/spree/bank_account_spec.rb
115
require 'spec_helper' describe Spree::BankAccount do pending "add some examples to (or delete) #{__FILE__}" end
bsd-3-clause
ryneches/SuchTree
SuchTree/tests/test_SuchLinkedTrees.py
11688
from __future__ import print_function from functools import reduce import pytest from SuchTree import SuchTree, SuchLinkedTrees from dendropy import Tree from itertools import combinations import numpy import pandas as pd import tempfile try : import igraph has_igraph = True except ImportError : has_igrap...
bsd-3-clause
Garethp/php-ews
src/API/Enumeration/IdFormatType.php
533
<?php /** * Contains \garethp\ews\API\Enumeration\IdFormatType. */ namespace garethp\ews\API\Enumeration; use garethp\ews\API\Enumeration; /** * Class representing IdFormatType * * Surfaces the various id types that are supported for conversion * XSD Type: IdFormatType */ class IdFormatType extends Enumerati...
bsd-3-clause
yreynhout/Projac
src/Projac.SqlClient.Tests/Legacy/TSqlTests.NonQueryProcedure.cs
20549
using System.Collections.Generic; using System.Data; using System.Data.Common; using System.Linq; using NUnit.Framework; using Projac.Sql.Tests.SqlClient; using Projac.SqlClient.Legacy; namespace Projac.Sql.Tests.Legacy { public partial class TSqlTests { [TestCaseSource("NonQueryProcedureCases")] ...
bsd-3-clause
bigdawg-istc/bigdawg
src/main/java/istc/bigdawg/migration/datatypes/package-info.java
168
/** * Mapping between data types in different databases. */ /** * @author Adam Dziedzic * * Feb 24, 2016 12:23:10 PM */ package istc.bigdawg.migration.datatypes;
bsd-3-clause
DestinyVaultHelper/dvh
app/src/main/java/org/swistowski/vaulthelper/Application.java
1039
package org.swistowski.vaulthelper; import com.google.android.gms.analytics.GoogleAnalytics; import com.google.android.gms.analytics.Tracker; import org.swistowski.vaulthelper.storage.Data; import org.swistowski.vaulthelper.util.ImageStorage; import org.swistowski.vaulthelper.views.ClientWebView; public class Applic...
bsd-3-clause
rapidpro/tracpro
tracpro/contacts/urls.py
373
from __future__ import absolute_import, unicode_literals from django.conf.urls import url from tracpro.utils import is_production from .views import ContactCRUDL, force_contacts_sync urlpatterns = ContactCRUDL().as_urlpatterns() if not is_production(): urlpatterns += [ url(r'^force_contacts_sync/$', for...
bsd-3-clause
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s06/CWE122_Heap_Based_Buffer_Overflow__CWE131_memmove_81a.cpp
2488
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__CWE131_memmove_81a.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__CWE131.label.xml Template File: sources-sink-81a.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Allocate memory ...
bsd-3-clause
ItsmeJulian/dotnect_stack
dotnect_platform/src/tracking_class.cpp
4333
// file: tracking_class.cpp, style: README.md // // License http://opensource.org/licenses/BSD-3-Clause // Copyright (c) 2016, ItsmeJulian (github.com/ItsmeJulian) // All rights reserved. // // Get input matrix, filter it_ and do minimum entry search (MES) // Then project found MES-pixel via intrinsics to 3D point and ...
bsd-3-clause
MwanzanFelipe/rockletonfortune
zillions/migrations/0001_initial.py
6981
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-05-07 21:44 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migration...
bsd-3-clause
shenningting/sixGroup
views/account/show.php
3287
<?php use yii\widgets\LinkPager; ?> <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <link rel="stylesheet" href="css/common.css"> <link rel="stylesheet" href="css/main.css"> <script type="text/javascript" src="js/jquery.min.js"></script> <script ...
bsd-3-clause
wajatmaka/Web-Kepegawaian
operator/daftar.php
38901
<?php require_once('../lib/auth.php'); require_once('../lib/conn.php'); require_once('../lib/liboperator.php'); auth('operator'); $inpt=($_SESSION['priv']=='input')?true:false; $nip=false; $daftarpegawai=array(); if(!empty($_GET['nip'])){ $nip=$_GET['nip']; $dp=getDataPegawai($nip); if($dp){ $daftar...
bsd-3-clause
bkielbasa/coyote2
module/forum/template/forumView.php
3827
<script type="text/javascript"> <!-- var hash = '<?= $hash; ?>'; var preventAjax = false; var currMode = '<?= $viewMode; ?>'; var defaultMode = '<?= $viewMode; ?>'; var hashChange = function() { if (jQuery.inArray(window.location.hash, ['#all', '#unanswered', '#votes', '#unread']) > -1) { if (('#' + cur...
bsd-3-clause
mogoweb/chromium-crosswalk
content/browser/renderer_host/media/audio_input_device_manager_unittest.cc
9282
// 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 <string> #include "base/bind.h" #include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" #include "base/message_loop/message...
bsd-3-clause
patrickm/chromium.src
chrome/browser/sync/test/integration/enable_disable_test.cc
6261
// 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/sync/profile_sync_service.h" #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" #include "chrome/...
bsd-3-clause
pederpansen/dune-ax1
dune/ax1/acme2_cyl/configurations/no_analytical_solution.hh
1258
/* * no_analytical_solution.hh * * Created on: Jan 17, 2012 * Author: jpods */ #ifndef DUNE_AX1_NO_ANALYTICAL_SOLUTION_HH #define DUNE_AX1_NO_ANALYTICAL_SOLUTION_HH #include <dune/pdelab/common/function.hh> #include <dune/ax1/acme2_cyl/common/acme2_cyl_parametertree.hh> template<typename GV, typename RFi...
bsd-3-clause
hcmaza/nortia
src/main/java/ar/edu/undec/nortia/model/PresupuestoRubro.java
5664
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ar.edu.undec.nortia.model; import java.io.Serializable; import java.math.BigDecimal; import javax.persistence.Column; import ...
bsd-3-clause
jmfontaine/kornak
library/Kornak/View/Helper/BodyClass.php
1978
<?php /** * Kornak * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to jm@jmfontaine.net so we can send ...
bsd-3-clause
sevki/rsc
google/chat.go
907
// Copyright 2011 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 google import "github.com/sevki/rsc/xmpp" type ChatID struct { ID string Email string Status xmpp.Status StatusMsg string } type C...
bsd-3-clause
sirixdb/sirix
bundles/sirix-core/src/main/java/org/sirix/index/art/AscendingSubMap.java
3123
package org.sirix.index.art; import java.util.*; final class AscendingSubMap<K, V> extends org.sirix.index.art.NavigableSubMap<K, V> { // TODO: look into making ART and it's views (bounds) serializable later // private static final long serialVersionUID = 912986545866124060L; AscendingSubMap(AdaptiveRadixTree<...
bsd-3-clause
grassrootza/grassroot-messaging
src/test/java/za/org/grassroot/messaging/IncomingGcmHandlerTest.java
1681
package za.org.grassroot.messaging; import org.jivesoftware.smack.packet.Message; import org.jivesoftware.smackx.gcm.packet.GcmPacketExtension; import org.junit.Test; import org.junit.runner.RunWith; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.test.context.junit4.SpringRunner; i...
bsd-3-clause
maxhutch/magma
testing/testing_ssygst.cpp
5071
/* -- MAGMA (version 2.1.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date August 2016 @author Mark Gates @generated from testing/testing_zhegst.cpp, normal z -> s, Tue Aug 30 09:39:14 2016 */ // includes, system #include ...
bsd-3-clause
dimitarp/basex
basex-core/src/main/java/org/basex/query/func/ft/FtTokenizeOptions.java
729
package org.basex.query.func.ft; import org.basex.util.ft.*; import org.basex.util.options.*; /** * Full-text tokenization options. * * @author BaseX Team 2005-20, BSD License * @author Christian Gruen */ public final class FtTokenizeOptions extends Options { /** Option: case. */ public static final EnumOpti...
bsd-3-clause
thermokarst/qiime2
qiime2/util.py
3260
# ---------------------------------------------------------------------------- # Copyright (c) 2016-2020, QIIME 2 development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
bsd-3-clause
nas4free/nas4free
www/disks_crypt_tools.php
10242
<?php /* disks_crypt_tools.php Part of NAS4Free (http://www.nas4free.org). Copyright (c) 2012-2017 The NAS4Free Project <info@nas4free.org>. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Re...
bsd-3-clause
ANYbotics/grid_map
grid_map_demos/src/GridmapToImageDemo.cpp
1496
/* * GridMapToImageDemo.cpp * * Created on: October 19, 2020 * Author: Magnus Gärtner * Institute: ETH Zurich, ANYbotics */ #include "grid_map_demos/GridmapToImageDemo.hpp" #include <image_transport/image_transport.h> #include <opencv2/imgcodecs.hpp> namespace grid_map_demos { GridMapToImageDemo::Grid...
bsd-3-clause
meishichao/yii2test
vendor/bower/jquery.inputmask/dist/jquery.inputmask.bundle.min.js
111067
/*! * jquery.inputmask.bundle * http://github.com/RobinHerbots/jquery.inputmask * Copyright (c) 2010 - 2015 Robin Herbots * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) * Version: 3.1.62 */ !function (a) { function b(a) { var b = document.createElement("input"), ...
bsd-3-clause
endlessm/chromium-browser
chrome/browser/extensions/external_install_manager.cc
11314
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/external_install_manager.h" #include <string> #include "base/check_op.h" #include "base/metrics/histogram_macros.h" ...
bsd-3-clause
vivo-project/Vitro
webapp/src/main/webapp/js/search/searchIndex.js
854
/* $This file is distributed under the terms of the license in LICENSE$ */ /* Functions for use by searchIndex.ftl */ function updateSearchIndexerStatus() { $.ajax({ url: searchIndexerStatusUrl, dataType: "html", complete: function(xhr, status) { if (xhr.status == 200) { ...
bsd-3-clause
haroon-sheikh/django-dynamic-preferences
setup.py
1637
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys import dynamic_preferences try: from setuptools import setup except ImportError: from distutils.core import setup version = dynamic_preferences.__version__ if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') prin...
bsd-3-clause
piaoxuedtian/myrepo
framework/i18n/data/ca_es.php
30724
<?php /** * Locale data for 'ca_ES'. * * This file is automatically generated by yiic cldr command. * * Copyright © 1991-2007 Unicode, Inc. All rights reserved. * Distributed under the Terms of Use in http://www.unicode.org/copyright.html. * * Copyright © 2008-2011 Yii Software LLC (http://www.yiiframe...
bsd-3-clause
liyuan989/leetcode
Algorithm/ValidParentheses/ValidParentheses.cpp
1277
/* Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the correct order, "()" and "()[]{}" are all valid but "(]" and "([)]" are not. */ #include <string> #include <vector> #include <string.h> #include <stdio.h> using name...
bsd-3-clause
zpz/stats.go
random.go
388
package stats // TODO: follow the example of the 'random' standard library // of C++11 to achieve control and reproducibility of RNG. import ( "math/rand" ) type RandomNumberGenerator interface { Seed(int64) Next() float64 } // TODO: temporary solution type RNG struct{} func (r *RNG) Seed(seed int64) { rand.Se...
bsd-3-clause
jaimeirazabal1/intercambio_de_perfiles
default/app/models/carpeta.php
1055
<?php class Carpeta extends ActiveRecord{ public function nueva_carpeta($nombre_carpeta){ $carpeta_nueva = new Carpeta(); $carpeta_nueva->nombre = $nombre_carpeta; $carpeta_nueva->usuario_id = Auth::get("id"); return $carpeta_nueva->save(); } public function get_carpetas_by_user_id($id){ $query = "SELECT ...
bsd-3-clause
kjc88/packetfu
test/test_octets.rb
754
#!/usr/bin/env ruby require 'test/unit' $:.unshift File.join(File.expand_path(File.dirname(__FILE__)), "..", "lib") require 'packetfu' class OctetsTest < Test::Unit::TestCase include PacketFu def test_octets_read o = Octets.new o.read("\x04\x03\x02\x01") assert_equal("4.3.2.1", o.to_x) end def te...
bsd-3-clause
livingdreams/kidcrossing
views/user/childdashboard.php
7434
<?php use yii\helpers\Html; use yii\grid\GridView; //use yii\helpers\Url; //use yii\bootstrap\Modal; use yii\widgets\ActiveForm; use yii\widgets\ListView; use yii\widgets\Pjax; use app\models\Mood; /* @var $this yii\web\View */ /* @var $model app\models\User */ /* @var $model app\models\Profile */ /* @v...
bsd-3-clause
NCIP/cagrid-portal
cagrid-portal/portlets/src/java/gov/nih/nci/cagrid/portal/portlet/query/cql/DefaultCQLQueryInstanceExecutor.java
4739
/** *============================================================================ * The Ohio State University Research Foundation, The University of Chicago - * Argonne National Laboratory, Emory University, SemanticBits LLC, * and Ekagra Software Technologies Ltd. * * Distributed under the OSI-approved BSD 3-Clau...
bsd-3-clause
endlessm/chromium-browser
third_party/webrtc/modules/audio_device/android/audio_track_jni.cc
9918
/* * Copyright (c) 2013 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
CartoDB/Windshaft-cartodb
test/acceptance/widgets/ported/aggregation-test.js
14099
'use strict'; require('../../../support/test-helper'); var assert = require('../../../support/assert'); var TestClient = require('../../../support/test-client'); describe('widgets', function () { describe('aggregations', function () { afterEach(function (done) { if (this.testClient) { ...
bsd-3-clause
KennethPierce/pylearnk
pylearn2/datasets/tests/test_preprocessing.py
7363
""" Unit tests for ./preprocessing.py """ import numpy as np from theano import config import theano from pylearn2.utils import as_floatX from pylearn2.datasets import dense_design_matrix from pylearn2.datasets.dense_design_matrix import DenseDesignMatrix from pylearn2.datasets.preprocessing import (GlobalContrastNo...
bsd-3-clause
artempetrovjava/yii-project
modules/likes/Likes.php
234
<?php /** * Created by PhpStorm. * User: petrov * Date: 08.07.16 * Time: 12:20 */ namespace app\modules\likes; use yii\base\Module; class Likes extends Module { public function init() { parent::init(); } }
bsd-3-clause
endlessm/chromium-browser
chrome/browser/heavy_ad_intervention/heavy_ad_service.cc
2606
// 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/heavy_ad_intervention/heavy_ad_service.h" #include "base/feature_list.h" #include "base/files/file_path.h" #include "base/memory...
bsd-3-clause
devbharat/gtsam
doc/html/a00343.js
1052
var a00343 = [ [ "It", "a00343.html#ae93e8cc9363ab49ca1ee78161221051b", null ], [ "createF", "a00343.html#a4b1b3bd23c314a33f5a765cf66dc1f3d", null ], [ "createT", "a00343.html#a6f3b24d3101a0f0371e94949a26c7a3a", null ], [ "logic", "a00343.html#a5721f2eb37ec883933ca19a906fe326a", null ], [ "operator%...
bsd-3-clause
softnep0531/tabrisjs
src/js/util-colors.js
2320
(function() { util.colorArrayToString = function(array) { var r = array[0]; var g = array[1]; var b = array[2]; var a = array.length === 3 ? 1 : Math.round(array[3] * 100 / 255) / 100; return "rgba(" + r + ", " + g + ", " + b + ", " + a + ")"; }; util.colorStringToArray = function(str) { ...
bsd-3-clause
tiagoamaro/spree_cpf
lib/generators/spree_cpf/install/install_generator.rb
1164
module SpreeCpf module Generators class InstallGenerator < Rails::Generators::Base class_option :auto_run_migrations, :type => :boolean, :default => false def add_javascripts # append_file 'app/assets/javascripts/store/all.js', "//= require store/spree_cpf\n" # append_file 'app/asset...
bsd-3-clause
nicholasserra/sentry
tests/sentry/options/test_manager.py
10356
# -*- coding: utf-8 -*- from __future__ import absolute_import from exam import fixture, around from mock import patch from sentry.models import Option from sentry.options.store import OptionsStore from sentry.options.manager import ( OptionsManager, UnknownOption, DEFAULT_FLAGS, FLAG_IMMUTABLE, FLAG_NOSTORE...
bsd-3-clause
was4444/chromium.src
chrome/browser/metrics/chrome_metrics_service_client.cc
26756
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/metrics/chrome_metrics_service_client.h" #include <stddef.h> #include <vector> #include "base/bind.h" #include "base/callback....
bsd-3-clause
OPL/opl3-collector
src/Opl/Collector/LoaderInterface.php
793
<?php /* * OPEN POWER LIBS <http://www.invenzzia.org> * * This file is subject to the new BSD license that is bundled * with this package in the file LICENSE. It is also available through * WWW at this URL: <http://www.invenzzia.org/license/new-bsd> * * Copyright (c) Invenzzia Group <http://www.invenzzia.org> ...
bsd-3-clause
char0n/ramda-adjunct
src/delayP.js
1336
import { curry, propOr, partial, nth } from 'ramda'; import isNonNegative from './isNonNegative'; import isInteger from './isInteger'; /** * Creates a promise which resolves/rejects after the specified milliseconds. * * @func delayP * @memberOf RA * @category Function * @sig Number -> Promise Undefined * @sig ...
bsd-3-clause
jvoorhis/ssh-public-key
test/public_key_test.rb
4607
require 'test/unit' require 'ssh_public_key' class SSHPublicKeyTest < Test::Unit::TestCase RSAKEY = <<RSA.chomp ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAwVlYiHtFfcoME7krIar/caT5+CUqpLJd3yj4mT6AXAVGSKe/GmjQGax1xD33BlEGrdQ+G7km+grYMTOaz7OlPbq7HG4o66mN+RqWje1NOkOKRTSjR+HMy6GOJlo17lwekDFOz90c7F8rRYnwLc5Mt2H3Filzyu3nipVsXG6TF...
bsd-3-clause
littlesmilelove/NLog
tests/NLog.UnitTests/Internal/NetworkSenders/TcpNetworkSenderTests.cs
14480
// // Copyright (c) 2004-2016 Jaroslaw Kowalski <jaak@jkowalski.net>, Kim Christensen, Julian Verdurmen // // 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 s...
bsd-3-clause
mhrivnak/ObservingReports
views/main_page.py
567
import os from google.appengine.api import users from google.appengine.ext import webapp from google.appengine.ext.webapp import template class MainPage(webapp.RequestHandler): def get(self): user = users.get_current_user() if user: url = users.create_logout_url(self.request.uri) ...
bsd-3-clause
coupling/spree_mailchimp
lib/spree_mailchimp.rb
103
require 'spree_core' require 'spree_mailchimp/engine' require 'spree/mail_chimp_sync' require 'hominid'
bsd-3-clause
cfcastillol/sigym
views/tipodocumento/_form.php
657
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model app\models\Tipodocumento */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="tipodocumento-form"> <?php $form = ActiveForm::begin(); ?> <?= $form->field($model, 'abreviatura')->textInput(['maxlength' ...
bsd-3-clause
jannon/sorl-thumbnail
docs/conf.py
7517
# -*- coding: utf-8 -*- # # sorl-thumbnail documentation build configuration file, created by # sphinx-quickstart on Fri Nov 12 00:51:21 2010. # # 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
uthando-cms/uthando-theme-manager
src/UthandoThemeManager/Event/ConfigListener.php
2325
<?php declare(strict_types=1); /** * Uthando CMS (http://www.shaunfreeman.co.uk/) * * @author Shaun Freeman <shaun@shaunfreeman.co.uk> * @link https://github.com/uthando-cms for the canonical source repository * @copyright Copyright (c) 19/09/17 Shaun Freeman. (http://www.shaunfreeman.co.uk) * @lice...
bsd-3-clause
happykejie/github_yii2buildcuxiaodadiaochaproject
models/WexinApi.php
3882
<?php namespace app\models; use Yii; /** * This is the model class for table "{{%msg}}". * * @property integer $id * @property integer $fid * @property integer $tid * @property string $title * @property string $content * @property integer $status * @property integer $send_time * @property integer $replay ...
bsd-3-clause
axefrog/Grasshopper
src/core-engine/Grasshopper.Procedural/Properties/AssemblyInfo.cs
1381
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Grasshopper.Procedural")] [assembly: Asse...
bsd-3-clause
endlessm/chromium-browser
chrome/android/java/src/org/chromium/chrome/browser/signin/account_picker/AccountPickerProperties.java
3274
// 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. package org.chromium.chrome.browser.signin.account_picker; import androidx.annotation.IntDef; import org.chromium.base.Callback; import org.chromium.chr...
bsd-3-clause
Nerufa/Nerufio
src/Nerufio/Mvc/Manager.php
5311
<?php /** * Nerufio PHP Framework * @link http://nerufa.ru/nerufio * @copyright 2012-2015 Nerufa * @license New BSD License */ namespace Nerufio\Mvc; use Nerufio\Core\Autoloader; use Nerufio\Core\Exception\Emergency; use Nerufio\Helpers\Arrays; use Nerufio\Helpers\Text; use Nerufio\Mvc\Interfaces\Controll...
bsd-3-clause
tartakynov/enso
enso/platform/win32/taskbar/__init__.py
21
from taskbar import *
bsd-3-clause
lordadamson/opentoonz
toonz/sources/tnztools/brushtool.cpp
80232
#include "brushtool.h" #include <map> // TnzTools includes #include "tools/toolhandle.h" #include "tools/toolutils.h" #include "tools/tooloptions.h" #include "bluredbrush.h" // TnzQt includes #include "toonzqt/dvdialog.h" #include "toonzqt/imageutils.h" // TnzLib includes #include "toonz/tobjecthandle.h" #include "...
bsd-3-clause
sunlightlabs/thezombies
thezombies/tasks/urls.py
7934
from __future__ import absolute_import from django.db import transaction from django.conf import settings from django_atomic_celery import task import requests from requests.exceptions import InvalidURL from .utils import (ResultDict, logger, response_to_dict, InsecureHttpAdapter) from thezombies.models import URLIns...
bsd-3-clause
imerr/LibM2
game/SShopTable.hpp
909
/* This file belongs to the LibM2 library (http://github.com/imermcmaps/LibM2) * Copyright (c) 2013, iMer (www.imer.cc) * All rights reserved. * Licensed under the BSD 3-clause license (http://opensource.org/licenses/BSD-3-Clause) */ #ifndef __LIBM2_GAME_SSHOPTABLE_HPP #define __LIBM2_GAME_SSHOPTABLE_HPP #include "...
bsd-3-clause
shongpon/a6
frontend/views/report/index.php
18007
<?php use yii\helpers\Html; use yii\grid\GridView; use miloschuman\highcharts\Highcharts; use app\models\RepChildDevR6; /* @var $this yii\web\View */ /* @var $searchModel app\models\CampaignSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = 'Report'; $this->params['breadcrumbs'][] = $this-...
bsd-3-clause
sakai135/htmlruby-firefox
data/scripts/processor.js
6918
'use strict'; var prefs = self.options; var observer; function process() { console.log('process() start'); var rubySelector = prefs.processInsertedContent ? 'ruby:not([hr-processed])' : 'ruby'; var rubies = document.body.querySelectorAll(rubySelector); var rubyCount = rubies.length; if (rubyCount < 1) { ...
bsd-3-clause
rob006/yii2
framework/web/Session.php
35472
<?php /** * @link http://www.yiiframework.com/ * @copyright Copyright (c) 2008 Yii Software LLC * @license http://www.yiiframework.com/license/ */ namespace yii\web; use Yii; use yii\base\Component; use yii\base\InvalidArgumentException; use yii\base\InvalidConfigException; /** * Session provides session data m...
bsd-3-clause
webchanger/abuzaid
frontend/models/PagedetailsSearch.php
1835
<?php namespace frontend\models; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; use frontend\models\Pagedetails; /** * PagedetailsSearch represents the model behind the search form about `frontend\models\Pagedetails`. */ class PagedetailsSearch extends Pagedetails { /** * @inheritdoc *...
bsd-3-clause
Crystalnix/memorango
src/server/server_test.go
13047
package server import ( "testing" "net" "fmt" "time" "bytes" "os" "bufio" "log" "tools/protocol" ) var test_port = "60000" var test_address = "127.0.0.1:" + test_port func TestServerRunAndStop(t *testing.T){ fmt.Println("TestServerRunAndStop") // var test_port = "60000" // var test_address = "127.0.0.1:" +...
bsd-3-clause
nvbn/django-session-csrf
example/forms.py
20
__author__ = 'nvbn'
bsd-3-clause
OS2World/DEV-SAMPLES-The-IBM-Developer-Connection-Release-2--Volume-2_CD4
javaxmp/javaxmp/lang/RuntimeExec/RuntimeExec.java
2133
//------------------------------------------------------------------------ // File Name: RuntimeExec.java // Description: Tests the exec method of the runtime class. // Executes operating system specific commands. // // Modification History // Date Developer Defect Tag Description // --...
bsd-3-clause
cherokee/pyscgi
CTK/SortableList.py
4074
# CTK: Cherokee Toolkit # # Authors: # Alvaro Lopez Ortega <alvaro@alobbs.com> # # Copyright (C) 2009 Alvaro Lopez Ortega # # This program is free software; you can redistribute it and/or # modify it under the terms of version 2 of the GNU General Public # License as published by the Free Software Foundation. # # ...
bsd-3-clause
IanCodyBurnet/lpthw
ex2.py
311
# A comment, this is so you can read your program later. # Anything after the # is ignored by python. print "I could have code like this." # and the comment after is ignored # You can also use the comment to "disable" or comment out a piece of code: # print "This won't run." print "This will run."
bsd-3-clause
smilusingjavascript/blink
Source/core/frame/csp/ContentSecurityPolicy.cpp
38756
/* * Copyright (C) 2011 Google, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions...
bsd-3-clause
frewsxcv/WeasyPrint
weasyprint/css/computed_values.py
17020
# coding: utf8 """ weasyprint.css.computed_values ------------------------------ Convert *specified* property values (the result of the cascade and inhertance) into *computed* values (that are inherited). :copyright: Copyright 2011-2014 Simon Sapin and contributors, see AUTHORS. :license: BSD,...
bsd-3-clause
ardekantur/pyglet
pyglet/app/cocoa.py
7023
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
bsd-3-clause
montagejs/q-git
test/fs-test.js
12244
var Q = require("q"); var GitFs = require("../fs"); var fs = require("q-io/fs"); Q.longStackSupport = true; var repo = {}; repo.rootPath = fs.join(__dirname, "..", ".git"); require("git-node-fs/mixins/fs-db")(repo, repo.rootPath); require('js-git/mixins/create-tree')(repo); require('js-git/mixins/pack-ops')(repo); r...
bsd-3-clause
zart/jinja2
setup.py
2287
# -*- coding: utf-8 -*- """ Jinja2 ~~~~~~ Jinja2 is a template engine written in pure Python. It provides a `Django`_ inspired non-XML syntax but supports inline expressions and an optional `sandboxed`_ environment. Nutshell -------- Here a small example of a Jinja template:: {% extends 'base.html' %} {% b...
bsd-3-clause
blueyed/pytest_django
tests/db_helpers.py
3937
import subprocess import pytest from .compat import force_text from django.conf import settings DB_NAME = settings.DATABASES['default']['NAME'] + '_db_test' TEST_DB_NAME = 'test_' + DB_NAME def get_db_engine(): from django.conf import settings return settings.DATABASES['default']['ENGINE'].split('.')[-1] ...
bsd-3-clause
lexfrost83/testyii2
frontend/views/layouts/inner.php
1204
<? use yii\helpers\Html; use yii\bootstrap\Nav; \frontend\assets\MainAsset::register($this); ?> <? $this->beginPage(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="<?= Yii::$app->charset ?>"> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <?= Html::csrfMetaTags() ?> ...
bsd-3-clause
vovancho/yii2test
views/Fregat/config/import.php
2188
<?php use app\func\Proc; \Yii::$app->getView()->registerJsFile('@web/js/freewall.js' . Proc::appendTimestampUrlParam(Yii::$app->basePath . '/web/js/freewall.js')); \Yii::$app->getView()->registerJsFile('@web/js/fregatmainmenu.js' . Proc::appendTimestampUrlParam(Yii::$app->basePath . '/web/js/fregatmainmenu.js')); ...
bsd-3-clause
sdmiller/gtsam_pcl
gtsam_unstable/geometry/tests/testInvDepthCamera3.cpp
5779
/* * testInvDepthFactor.cpp * * Created on: Apr 13, 2012 * Author: cbeall3 */ #include <CppUnitLite/TestHarness.h> #include <gtsam/base/numericalDerivative.h> #include <gtsam/base/Testable.h> #include <gtsam/geometry/SimpleCamera.h> #include <gtsam_unstable/geometry/InvDepthCamera3.h> using namespace std...
bsd-3-clause
beermon/beermon-server
db/migrate/20121016224326_remove_beer_information_from_keg.rb
302
class RemoveBeerInformationFromKeg < ActiveRecord::Migration def change remove_column :kegs, :brewery remove_column :kegs, :name remove_column :kegs, :ibu remove_column :kegs, :srm add_column :kegs, :beer_tap_id, :integer add_column :kegs, :beer_id, :integer end end
bsd-3-clause
frc868/2014-robot-iri
src/com/techhounds/commands/pneumatics/RunCompressor.java
1447
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.techhounds.commands.pneumatics; import com.techhounds.commands.CommandBase; import com.techhounds.subsystems.Compr...
bsd-3-clause