repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
raonyguimaraes/mendelmd
files/migrations/0003_auto_20190405_1651.py
450
# Generated by Django 2.1.7 on 2019-04-05 16:51 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('files', '0002_auto_20190405_1647'), ] operations = [ migrations.AlterField( model_name='file', ...
bsd-3-clause
tochyvn/zend-zf3
public/index.php
1576
<?php use Zend\Mvc\Application; use Zend\Stdlib\ArrayUtils; /** * Cette config doit etre ajoutée dans l'hôte virtuel "SetEnv APPLICATION_ENV "development" * Display all errors when APPLICATION_ENV is development. */ if ($_SERVER['APPLICATION_ENV'] === 'development') { error_reporting(E_ALL); ini_set("disp...
bsd-3-clause
Socratemus/utopia-dev
module/Geoname/config/module.config.php
1505
<?php return array( 'controllers' => array( 'invokables' => array( 'Geoname\Controller\Index' => 'Geoname\Controller\IndexController', ) ), 'router' => array( 'routes' => array( 'api' => array( 'type' => 'segment',...
bsd-3-clause
callumhay/biffbamblammogame
BlammoEngine/VBOBatch.cpp
7886
#include "VBOBatch.h" #include "Matrix.h" #include "Mesh.h" VBOBatch::VBOBatch() : vboBuffers(VBOBatch::NUM_VBO_BUFFERS), nextID(1), numDrawIndices(0) { // Setup the vbo buffers assert(this->vboBuffers.size() == VBOBatch::NUM_VBO_BUFFERS); glGenBuffers(VBOBatch::NUM_VBO_BUFFERS, &this->vboBuffers[0]); ...
bsd-3-clause
dmitrykolesnikovich/dyn4j
src/org/dyn4j/collision/narrowphase/SegmentDetector.java
6330
/* * Copyright (c) 2010-2015 William Bittle http://www.dyn4j.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: * * * Redistributions of source code must retain the above copyright ...
bsd-3-clause
ligerbots/AerialAssist2014Robot
src/org/usfirst/frc2877/AerialAssist2014Robot/commands/AutoDriveTickChange.java
1419
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.usfirst.frc2877.AerialAssist2014Robot.commands; import edu.wpi.first.wpilibj.command.Command; import org.usfirst.frc2877.AerialAssist2014Robot.Robot; /** * * @author Administrator */ public cl...
bsd-3-clause
tolik505/baby
frontend/modules/store/widgets/catalogSort/Widget.php
2530
<?php /** * Author: Pavel Naumenko */ namespace app\modules\store\widgets\catalogSort; use app\modules\store\models\StoreCategory; use app\modules\store\models\StoreProductFilter; use yii\db\Query; use yii\helpers\Url; /** * Class Widget * * @package app\modules\store\widgets\catalogSort */ class Widget extend...
bsd-3-clause
tjohns/zf
tests/Zend/Dojo/Form/Element/HorizontalSliderTest.php
13645
<?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
Crystalnix/BitPop
chrome/browser/ui/webui/chromeos/login/update_screen_handler.cc
4921
// 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/ui/webui/chromeos/login/update_screen_handler.h" #include "base/bind.h" #include "base/bind_helpers.h" #include "base/memory...
bsd-3-clause
vivin/condicio
dist/condicio.js
11315
/** * @preserve * condicio.js - A preconditions library for JavaScript similar to Google's Preconditions from Guava * Version 2.0.0 * Written by Vivin Paliath (http://vivin.net) * License: BSD License * Copyright (C) 2015 */ (function (root, factory) { if (typeof define === 'function' && define.amd) { ...
bsd-3-clause
crawshaw/sprite
raster/raster.go
7608
// Package raster is experimental vector drawing for the sprite package. // // WARNING: likely to change. // This is an experiment in APIs. Implemented using freetype/raster for now. package raster import ( "fmt" "image" "image/color" "math" ftraster "code.google.com/p/freetype-go/freetype/raster" "golang.org/x...
bsd-3-clause
zimbra-api/zimbra-api
src/Zimbra/Enum/Tests/IpTypeTest.php
485
<?php namespace Zimbra\Enum\Tests; use \PHPUnit_Framework_TestCase; use Zimbra\Enum\IpType; /** * Testcase class for IpType. */ class IpTypeTest extends PHPUnit_Framework_TestCase { public function testIpType() { $values = [ 'IPV4' => 'ipV4', 'IPV6' => 'ipV6', 'B...
bsd-3-clause
gomito158/ezporto
views/deportes-golf/index.php
179
<?php /* @var $this yii\web\View */ ?> <h1>deportes-golf/index</h1> <p> You may change the content of this page by modifying the file <code><?= __FILE__; ?></code>. </p>
bsd-3-clause
LinkedHK/MockChat
module/MockChat/src/MockChat/Domain/ChatOptionsMTable.php
406
<?php /** * * User: Windows * Date: 4/9/14 * Time: 9:17 PM * */ namespace MockChat\Domain; use MockChat\Domain\IAbstract\AbstractMongoTable; class ChatOptionsMTable extends AbstractMongoTable{ public function getOption($key){ $res = $this->findOne(array('key' => $key)); if($res && isset($r...
bsd-3-clause
cs-au-dk/JWIG
src/dk/brics/jwig/server/cache/CacheObject.java
1381
package dk.brics.jwig.server.cache; /** * */ public class CacheObject { // FIXME: local class DependencyBlaBla private String url; private String name; private boolean isHandler; public CacheObject(String url) { this.url = url; } public String getUrl() { return url; } ...
bsd-3-clause
angelomesquita/peanuts2
module/Baseball/config/module.config.php
2120
<?php return array( 'controllers' => array( 'invokables' => array( 'index' => 'Baseball\Controller\IndexController', 'jogador' => 'Baseball\Controller\JogadorController', 'categoria' => 'Baseball\Controller\CategoriaController', ), ), 'router' => arr...
bsd-3-clause
ComponentFactory/Krypton
Source/Krypton Explorer/Program.cs
971
// ***************************************************************************** // // © 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
bokac1984/sandbook
sandbook/protected/views/site/registration.php
1172
<h1>Registration</h1> <div class="form"> <?php $form=$this->beginWidget('CActiveForm', array( 'id'=>'registration-form', 'enableClientValidation'=>true, 'clientOptions'=>array( 'validateOnSubmit'=>true, ), )); ?> <p class="note">Fields with <span class="required">*</span> are required.</p> <div class="row"> ...
bsd-3-clause
nwjs/chromium.src
chrome/browser/ui/ash/volume_controller_browsertest.cc
7986
// 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 <map> #include <memory> #include "ash/components/audio/cras_audio_handler.h" #include "ash/components/audio/sounds.h" #include "ash/constant...
bsd-3-clause
ThomasWeiser/elmfire
src/Native/ElmFire/Auth.js
7817
/* @flow */ /* global Elm, Firebase, F2, F3, F4 */ Elm.Native.ElmFire = Elm.Native.ElmFire || {}; Elm.Native.ElmFire.Auth = {}; Elm.Native.ElmFire.Auth.make = function (localRuntime) { "use strict"; localRuntime.Native = localRuntime.Native || {}; localRuntime.Native.ElmFire = localRuntime.Native.ElmFire || {};...
bsd-3-clause
mirego/microscope
lib/microscope/scope/date_scope.rb
331
module Microscope class Scope class DateScope < DatetimeScope def initialize(*args) super @now = 'Date.today' @now_suffix = '_today' @specific_suffix = '_on' @cropped_field_regex = /_on$/ @formatted_time = 'time.try(:strftime, \'%Y-%m-%d\')' end end...
bsd-3-clause
elektropay/Cachet
resources/views/dashboard/settings/analytics.blade.php
3551
@extends('layout.dashboard') @section('content') <div class="content-panel"> @includeWhen(isset($sub_menu), 'dashboard.partials.sub-sidebar') <div class="content-wrapper"> <div class="header sub-header" id="application-setup"> <span class="uppercase"> {{ trans('dashboard.set...
bsd-3-clause
Kilar/yii2-easyApi
common/lib/traits/ActiveRecordTrait.php
2422
<?php namespace common\lib\traits; use common\lib\helpers\DbHelper; /** * ar通用trait * @author Hym */ trait ActiveRecordTrait { /** * @var string 自定义类表单名字 */ public $formName; /** * @var string 在组件中数据库连接的id , 这里只起缓存作用 , 可以通过 * 在子类实现init方法初始化时赋值到这个变量然后赋值静态变量$db , * 从而在实例化对象时选择数据库的...
bsd-3-clause
getdnsapi/getdns-php-bindings
tests/php_getdns_context_get_api_information_basic.phpt
433
--TEST-- Test function php_getdns_context_get_api_information() by calling it with its expected arguments --FILE-- <?php $context = 0; $setFromOS = 1; $result = php_getdns_context_create($context, $setFromOS); $dictionary = 0; $dictionary = php_getdns_context_get_api_information($context); var_dump($result, $dictiona...
bsd-3-clause
joshleaves/node-ga
lib/node-ga.js
4329
(function () { var crypto = require('crypto'); var http = require('http'); var url = require('url'); var async = require('async'); var cookie_name = '__utmnodejs'; function filter (obj, list) { var ret = { }; for (var i = 0; i < list.length; ++i) { if (Object.hasOwnProperty.call(obj, list[i])) { ...
bsd-3-clause
Igor-Oliveira-Mota-Pires/pi1_ls
module/Avaliacao/src/Avaliacao/Table/AvaliacaoTable.php
369
<?php namespace Avaliacao\Table; use Estrutura\Table\AbstractEstruturaTable; class AvaliacaoTable extends AbstractEstruturaTable{ public $table = 'avaliacao'; public $campos = [ 'id_avaliacao'=>'id', 'id_pessoa'=>'id_pessoa', 'id_usuario'=>'id_usuario', 'nota'=>'nota', ...
bsd-3-clause
jklenzing/pysat
pysat/ssnl/occur_prob.py
14008
from __future__ import print_function from __future__ import absolute_import """Occurrence probability routines, daily or by orbit. Routines calculate the occurrence of an event greater than a supplied gate occuring at least once per day, or once per orbit. The probability is calculated as the (number of times with a...
bsd-3-clause
kaliss96/calificaciones
vendor/symfony/console/Symfony/Component/Console/Descriptor/ApplicationDescription.php
3684
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Console\Descriptor; use Symfony\Componen...
bsd-3-clause
fragmer/Testosterone
Testosterone/Packets/PacketDirection.cs
182
using System; namespace Testosterone.Packets { [Flags] public enum PacketDirection { ToServer = 1, ToClient = 2, Either = ToServer | ToClient } }
bsd-3-clause
cvsuser-chromium/chromium
chrome/browser/sync_file_system/sync_file_system_service.cc
25740
// 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_file_system/sync_file_system_service.h" #include <string> #include "base/bind.h" #include "base/format_macros.h" #incl...
bsd-3-clause
YohanesDoank/sistem_rumah_sakit
backend/modules/ranap/models/TindakanSearch.php
2033
<?php namespace backend\modules\ranap\models; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; use backend\modules\ranap\models\Tindakan; /** * TindakanSearch represents the model behind the search form about `backend\modules\ranap\models\Tindakan`. */ class TindakanSearch extends Tindakan { /** ...
bsd-3-clause
forcedotcom/phoenix
phoenix-core/src/main/java/com/salesforce/phoenix/parse/SequenceValueParseNode.java
656
package com.salesforce.phoenix.parse; import java.sql.SQLException; public class SequenceValueParseNode extends TerminalParseNode { public enum Op {NEXT_VALUE, CURRENT_VALUE}; private final TableName tableName; private final Op op; public SequenceValueParseNode(TableName tableName, Op op) { this.tableName ...
bsd-3-clause
bluedynamics/node.ext.directory
src/node/ext/directory/interfaces.py
1622
from node.interfaces import ICallable from node.interfaces import ILeaf from node.interfaces import INode from zope.interface import Attribute from zope.lifecycleevent import IObjectAddedEvent MODE_TEXT = 0 MODE_BINARY = 1 class IFileAddedEvent(IObjectAddedEvent): """A File has been added to directory. """ ...
bsd-3-clause
Mikulas/migrations
src/Drivers/PgSqlDriver.php
4658
<?php /** * This file is part of the Nextras community extensions of Nette Framework * * @license New BSD License * @link https://github.com/nextras/migrations */ namespace Nextras\Migrations\Drivers; use DateTime; use Nextras\Migrations\Entities\Migration; use Nextras\Migrations\IDbal; use Nextras\Mig...
bsd-3-clause
ggarnier/tsuru
service/suite_test.go
2293
// Copyright 2012 tsuru 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 service import ( "github.com/tsuru/config" "github.com/tsuru/tsuru/auth" "github.com/tsuru/tsuru/db" "github.com/tsuru/tsuru/db/dbtest" "github.com...
bsd-3-clause
bloomberg/cartodb
lib/assets/javascripts/cartodb3/components/modals/add-widgets/category/category-option-model.js
651
var cdb = require('cartodb.js'); module.exports = cdb.core.Model.extend({ defaults: { type: 'category', layer_index: 0, tuples: [] }, createUpdateOrSimilar: function (widgetDefinitionsCollection) { var i = this.get('layer_index'); var item = this.get('tuples')[i]; var columnName = item....
bsd-3-clause
artish/tera
src/sdk/table_impl.cc
84093
// Copyright (c) 2015, Baidu.com, Inc. All Rights Reserved // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "table_impl.h" #include "tera.h" #include <errno.h> #include <fcntl.h> #include <math.h> #include <sys/file.h> #include <sys/stat.h> #include <sys...
bsd-3-clause
bretth/django-auth0user
auth0user/apps.py
125
from django.apps import AppConfig class Auth0UserConfig(AppConfig): name = 'auth0user' verbose_name = "Auth0 User"
bsd-3-clause
rezaei121/raspina
modules/setting/views/dashboard/_form.php
1830
<?php use app\components\helpers\Html; use app\components\widgets\ActiveForm; use app\modules\post\models\Post; use kartik\select2\Select2; /* @var $this yii\web\View */ /* @var $model dashboard\modules\setting\models\Setting */ /* @var $form dashboard\components\widgets\ActiveForm */ ?> <?= Html::beginPanel($this->ti...
bsd-3-clause
orfjackal/visualvm4idea
visualvm4idea-plugin/src/main/java/net/orfjackal/visualvm4idea/plugin/MemoryProfilerSettingsEditor.java
3835
/* * This file is part of VisualVM for IDEA * * Copyright (c) 2008, Esko Luontola. 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 ab...
bsd-3-clause
janpecha/heymaster
src/Adapters/BaseAdapter.php
3147
<?php /** Heymaster Base Adapter * * @author Jan Pecha, <janpecha@email.cz> */ namespace Heymaster\Adapters; use Heymaster\Config, Heymaster\Section, Heymaster\Action, Heymaster\Command, Heymaster\Configs\FileConfig; abstract class BaseAdapter extends \Nette\Object implements IAdapter { con...
bsd-3-clause
leesab/irods
iRODS/lib/core/include/irods_ssl_object.hpp
3790
#ifndef __IRODS_SSL_OBJECT_HPP__ #define __IRODS_SSL_OBJECT_HPP__ // =-=-=-=-=-=-=- #include "irods_network_object.hpp" #include "irods_buffer_encryption.hpp" // =-=-=-=-=-=-=- // ssl includes #include "ssl.h" namespace irods { // =-=-=-=-=-=-=- // constant key for tcp network object const std::string SSL_NE...
bsd-3-clause
Honvid/yshop
admin/views/attribute/test1.php
21906
<?php /** * @author Honvid */ use admin\assets\AppAsset; use yii\helpers\Html; AppAsset::register($this); $this->title = "品牌列表"; ?> <section class="content-header"> <h1> 属性管理 <small><?= Html::encode($this->title) ?></small> </h1>...
bsd-3-clause
tijs14tijs/ROAD
MovementService/src/main/java/road/movementservice/Start.java
806
package road.movementservice; import javax.annotation.PostConstruct; import javax.ejb.Singleton; import javax.ejb.Startup; import java.util.logging.Level; import java.util.logging.Logger; /** * Created by geh on 8-5-14. */ @Singleton @Startup public class Start { private static Server server; @PostConstruc...
bsd-3-clause
Workday/OpenFrame
components/signin/core/account_id/account_id.cc
4733
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/signin/core/account_id/account_id.h" #include <functional> #include "base/json/json_reader.h" #include "base/json/json_writer.h" #i...
bsd-3-clause
tylerlong/everblog
everblog/blueprints/__init__.py
1718
# coding=utf-8 """ everblog.blueprints ~~~~~~~~~~~~~~~~~~~ blueprints for the whole application """ import sys, datetime from functools import wraps from flask import g, redirect, session, url_for from toolkit_library.inspector import PackageInspector from everblog import app, db from everblog.mo...
bsd-3-clause
endlessm/chromium-browser
components/mirroring/service/video_capture_client.cc
10995
// Copyright 2018 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/mirroring/service/video_capture_client.h" #include "base/bind.h" #include "base/no_destructor.h" #include "base/trace_event/trace_ev...
bsd-3-clause
Coder-666/COSMOS
source2/IL2CPU/Cosmos.IL2CPU/IL/Stind_I.cs
7405
using System; using CPUx86 = Cosmos.Assembler.x86; using Cosmos.Assembler; namespace Cosmos.IL2CPU.X86.IL { [Cosmos.IL2CPU.OpCode( ILOpCode.Code.Stind_I )] public class Stind_I : ILOp { public Stind_I( Cosmos.Assembler.Assembler aAsmblr ) : base( aAsmblr ) { } ...
bsd-3-clause
omnibs/tfsworkbench-fork
solutions/WpfUI/ProjectSelector/ProjectSelectorView.xaml.cs
3320
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="ProjectSelectorView.xaml.cs" company="None"> // None // </copyright> // <summary> // Interaction logic for ProjectLoadControl.xaml // </summary> // ---------------------------...
bsd-3-clause
bigdawg-istc/bigdawg
src/main/java/istc/bigdawg/shims/MySQLQueryGenerator.java
5102
package istc.bigdawg.shims; import istc.bigdawg.islands.relational.operators.SQLIslandOperator; import net.sf.jsqlparser.JSQLParserException; import net.sf.jsqlparser.expression.Expression; import net.sf.jsqlparser.expression.operators.conditional.AndExpression; import net.sf.jsqlparser.expression.operators.conditiona...
bsd-3-clause
nwjs/chromium.src
media/audio/win/audio_low_latency_input_win_unittest.cc
24540
// 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 "media/audio/win/audio_low_latency_input_win.h" #include <windows.h> #include <mmsystem.h> #include <stddef.h> #include <stdint.h> #include...
bsd-3-clause
cwyark/v2ex
v2ex/babel/l10n/messages/zhHans.py
5202
# coding=utf-8 # Messages on top bar home = '首页' images = '图片上传' mentions = '提到我的' workspace = '工作空间' notes = '记事本' nearby = '附近' settings = '设置' backstage = '后台' signin = '登入' signup = '注册' signout = '登出' planes = '位面' # Messages shared by forms chevron = '<span class="chevron">&nbsp;›&nbsp;</span>' resolve_errors ...
bsd-3-clause
nycholas/c-project
src/core/contenttypes.cpp
11240
/** * c-project - a digital registry. * Copyright (c) 2010, Nycholas de Oliveira e Oliveira <nycholas@gmail.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 s...
bsd-3-clause
FriedrichK/django-excel-sync
excel_sync/db/models/fields.py
2882
from django.db.models.fields import CharField as VanillaCharField, IntegerField as VanillaIntegerField, FloatField as VanillaFloatField from django.db import models from django.core.exceptions import FieldError class SpreadsheetMixin(object): required_field_options = ['spreadsheet_column_number', 'spreadsheet_co...
bsd-3-clause
AscariaQuynn/ZoneOfUprising
src/cz/ascaria/zoneofuprising/cameras/OrbitCamera.java
4974
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package cz.ascaria.zoneofuprising.cameras; import com.jme3.input.InputManager; import com.jme3.math.FastMath; import com.jme3.math.Quaternion; import com.jme3.math.Vector2f; import com.jme3.math.Vector3f; import com.jme...
bsd-3-clause
johnewart/gearman.net
GearmanServer/DurableQueues/RedisQueue.cs
1646
using System; using System.Collections.Generic; using System.Linq; using System.Text; using ServiceStack.Redis; using ServiceStack.Redis.Generic; namespace GearmanServer.DurableQueues { public class RedisQueue : IDurableQueue { RedisClient redisClient; IRedisTypedClient<Job> jobStore; ...
bsd-3-clause
BaseXdb/basex
basex-core/src/main/java/org/basex/query/func/inspect/InspectType.java
2052
package org.basex.query.func.inspect; import java.util.*; import org.basex.query.*; import org.basex.query.func.*; import org.basex.query.value.*; import org.basex.query.value.item.*; import org.basex.query.value.type.*; import org.basex.util.*; import org.basex.util.options.*; /** * Function implementation. * * ...
bsd-3-clause
consec/ConSec
federation-web/src/federweb/base/views.py
5401
from django.utils.decorators import method_decorator, classonlymethod from django.contrib.auth.decorators import login_required from django.http import Http404, HttpResponse, HttpResponseRedirect from django.utils.functional import lazy from django.core.urlresolvers import reverse from django.views.generic import View ...
bsd-3-clause
hadrsystems/nics-web
modules/datalayer/src/main/js/nics/modules/datalayer/DataWindowController.js
4533
/* * Copyright (c) 2008-2016, Massachusetts Institute of Technology (MIT) * 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 copyrig...
bsd-3-clause
JaneliaSciComp/osgpyplusplus
src/modules/osgManipulator/generated_code/DraggerTransformCallback.pypp.cpp
22650
// This file has been generated by Py++. #include "boost/python.hpp" #include "__call_policies.pypp.hpp" #include "__convenience.pypp.hpp" #include "wrap_osgmanipulator.h" #include "wrap_referenced.h" #include "draggertransformcallback.pypp.hpp" namespace bp = boost::python; struct DraggerTransformCallback_wrapper :...
bsd-3-clause
lutece-platform/lutece-core
src/java/fr/paris/lutece/portal/service/csv/CSVMessageDescriptor.java
6775
/* * Copyright (c) 2002-2022, City of Paris * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright notice * and the f...
bsd-3-clause
kurli/blink-crosswalk
Source/modules/webcl/WebCLProgram.cpp
19043
// Copyright (C) 2011 Samsung Electronics Corporation. All rights reserved. // Copyright (C) 2015 Intel Corporation All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "config.h" #if ENABLE(WEBCL) #include "bindings/modules/v8/V8WebCLCo...
bsd-3-clause
Mikielis/panel-admin
vendor/composer/autoload_real.php
1398
<?php // autoload_real.php @generated by Composer class ComposerAutoloaderInitc7391c75fd2691692cbd80bc4d25bfd8 { private static $loader; public static function loadClassLoader($class) { if ('Composer\Autoload\ClassLoader' === $class) { require __DIR__ . '/ClassLoader.php'; } ...
bsd-3-clause
uwescience/raco
raco/backends/logical.py
687
import raco.rules as rules from raco.backends import Algebra class OptLogicalAlgebra(Algebra): @staticmethod def opt_rules(**kwargs): return [rules.RemoveTrivialSequences(), rules.SimpleGroupBy(), rules.SplitSelects(), rules.PushSelects(), ...
bsd-3-clause
resource4j/resource4j
core/src/main/java/com/github/resource4j/resources/context/DefaultResolutionContextMatcher.java
1909
package com.github.resource4j.resources.context; import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedList; import java.util.List; import static com.github.resource4j.resources.context.ResourceResolutionContext.withoutContext; public class DefaultResolutionContextMatcher implements ResolutionC...
bsd-3-clause
Romez/zend.local
module/Application/src/Application/Entity/Diary.php
3521
<?php namespace Application\Entity; use Doctrine\ORM\Mapping as ORM; use Zend\Form\Annotation; /** * Diary * * @ORM\Table(name="diary") * @ORM\Entity */ class Diary { /** * @var integer * * @ORM\Column(name="id", type="integer", nullable=false) * @ORM\Id * @ORM\GeneratedValue(strate...
bsd-3-clause
pradyunsg/Py2C
py2c/common/configuration.py
2051
"""Configuration handler for the program """ from py2c.utils import is_valid_dotted_identifier __all__ = [ "OptionError", "InvalidOptionError", "NoSuchOptionError", "Configuration" ] # ----------------------------------------------------------------------------- # Exceptions # ------------------------------...
bsd-3-clause
flabby/rocksdb
db/db_test_util.cc
32934
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the PATENTS file in the same directory. // // Copyright (c) 2011...
bsd-3-clause
continuousphp/deploy-agent
module/DeployAgent/config/module.config.php
6916
<?php return [ 'controllers' => [ 'invokables' => [ 'DeployAgent\Index' => 'Continuous\DeployAgent\Controller\IndexController', 'DeployAgent\Hook' => 'Continuous\DeployAgent\Controller\HookController', 'DeployAgent\Application' => 'Continuous\DeployAgent\Con...
bsd-3-clause
nicedawg/spree-ups-address-validation
app/models/spree/address_decorator.rb
1441
module Spree Address.class_eval do @@us_50_states = %w[AL AK AZ AR CA CO CT DE FL GA HI ID IL IN IA KS KY LA ME MD MA MI MN MS MO MT NE NV NH NJ NM NY NC ND OH OK OR PA RI SC SD TN TX UT VT VA WA WV WI WY] @ups_response = nil @ups_suggestions = nil def ups_response @ups_response ||= get_ups_r...
bsd-3-clause
mayflower/PHP_CodeBrowser
src/PHPCodeBrowser/Tests/FileTest.php
8796
<?php /** * Test case * * Copyright (c) 2007-2010, Mayflower GmbH * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyrigh...
bsd-3-clause
beni55/djangolint
project/lint/managers.py
384
from datetime import datetime, timedelta from django.db import models from .settings import CONFIG EXPIRATION_DAYS = CONFIG['REPORT_EXPIRATION_DAYS'] class ReportManager(models.Manager): def delete_expired(self): expiration_date = datetime.now() - timedelta(days=EXPIRATION_DAYS) expired = self....
isc
Sunhat/react-native-extra-dimensions-android
android/src/main/java/ca/jaysoo/extradimensions/ExtraDimensionsPackage.java
957
package ca.jaysoo.extradimensions; import com.facebook.react.ReactPackage; import com.facebook.react.bridge.JavaScriptModule; import com.facebook.react.bridge.NativeModule; import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.react.uimanager.ViewManager; import java.util.Arrays; import java.u...
isc
tsdl2013/SimpleFlatMapper
sfm-benchmark/sfm-benchmark-common-db/src/main/java/org/simpleflatmapper/mockdb/MockDataSource.java
1198
package org.simpleflatmapper.mockdb; import javax.sql.DataSource; import java.io.PrintWriter; import java.sql.Connection; import java.sql.SQLException; import java.sql.SQLFeatureNotSupportedException; import java.util.logging.Logger; public class MockDataSource implements DataSource { private MockConnection mockConn...
mit
stellaval/Team26
UpgradeYourself.App/UpgradeYourself.Windows/Common/DelegateCommand.cs
3020
namespace UpgradeYourself.Windows.Common { using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Input; /// <summary> /// A command whose sole purpose is to relay its functionality /// to other obje...
mit
rhnvrm/mini-projects
j2me/graded_lab_1/Midlet.java
3023
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package hello; import javax.microedition.lcdui.*; import javax.microedition.midlet.*; /** * @author rhnvrm */ public class Midlet extends MIDlet implements CommandListener{ //Declare Private Variables privat...
mit
cikusa/ModernMagic
TestCpp/Resources/THlib/background/magic_forest/magic_forest.lua
2152
magic_forest_background=Class(background) function magic_forest_background:init() background.init(self,false) LoadTexture('magic_forest_ground','THlib\\background\\magic_forest\\ground.png') LoadImage('magic_forest_ground','magic_forest_ground',0,0,512,512) LoadTexture('magic_forest_mask','THlib\\background\\magic...
mit
unaio/una
modules/boonex/analytics/updates/9.0.1_10.0.0/install/installer.php
263
<?php /** * Copyright (c) UNA, Inc - https://una.io * MIT License - https://opensource.org/licenses/MIT */ class BxAnalyticsUpdater extends BxDolStudioUpdater { function __construct($aConfig) { parent::__construct($aConfig); } }
mit
idobata/idobata-hooks
spec/app_spec.rb
459
require 'app_helper' describe Idobata::Hook::Application, type: :app do let(:app) { Idobata::Hook::Application.new } it 'get /' do get '/' expect(last_response.body).to eq 'hi from Idobata::Hooks.' end it 'head /custom' do head '/custom' expect(last_response).to be_ok end it 'post /custo...
mit
zarmack/fast-srp
test/test_picl_vectors.js
17584
"use strict"; var vows = require('vows'); var assert = require('assert'); var BigInteger = require('../lib/jsbn'); var srp = require('../lib/srp'); var util = require('util'); /* * Vectors from https://wiki.mozilla.org/Identity/AttachedServices/KeyServerProtocol * * Verify that we are inter-compatible with the SRP...
mit
Darknet-Crypto/Darknet
src/test/DoS_tests.cpp
8555
// Copyright (c) 2011-2014 The Bitcoin Core developers // Copyright (c) 2019 The PIVX developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // // Unit tests for denial-of-service detection/prevention code // #include "...
mit
youennPennarun/homyPi_raspberryApp
src/python/rabbitEmitter.py
3179
import logging import threading import json import inspect import sys import traceback import rabbitpy import time LOG_FORMAT = ('%(levelname) -10s %(asctime)s %(name) -30s %(funcName) ' '-35s %(lineno) -5d: %(message)s') LOGGER = logging.getLogger(__name__) logging.basicConfig(filename='module.log',leve...
mit
brain-research/mirage-rl-qprop
rllab/envs/mujoco/hill/half_cheetah_hill_env.py
535
import numpy as np from rllab.envs.mujoco.hill.hill_env import HillEnv from rllab.envs.mujoco.half_cheetah_env import HalfCheetahEnv from rllab.misc.overrides import overrides import rllab.envs.mujoco.hill.terrain as terrain from rllab.spaces import Box class HalfCheetahHillEnv(HillEnv): MODEL_CLASS = HalfCheeta...
mit
teayudope/laweb
web/bower_components/go-native/src/es5/array/some.js
282
// Every if (!Array.prototype.some) { Array.prototype.some = function (block /*, thisp */) { var thisp = arguments[1]; for (var i = 0; i < this.length; i++) if (block.call(thisp, this[i])) return true; return false; }; }
mit
complayjs/extensions
vent/vent.js
1124
let targets = []; let events = {}; export default function Vent(newTarget){ let empty = []; let index = targets.indexOf(newTarget); let target = targets[index]; if (index === -1 || !target) { target = newTarget || this; if (!target.uid) { target.uid = Math.random() + ''; } targets.push(target); ind...
mit
gogits/gogs
internal/db/repo_editor_test.go
901
// Copyright 2018 The Gogs Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package db import ( "path/filepath" "testing" "github.com/stretchr/testify/assert" ) func Test_isRepositoryGitPath(t *testing.T) { tests := []struct { ...
mit
jogiranjith/publify
app/controllers/admin/redirects_controller.rb
1009
class Admin::RedirectsController < Admin::BaseController def index; redirect_to :action => 'new' ; end def edit; new_or_edit; end def new; new_or_edit; end def destroy @record = Redirect.find(params[:id]) return(render 'admin/shared/destroy') unless request.post? @record.destroy flash[:noti...
mit
cgoconseils/XrmFramework
src/XrmFramework.Plugin/NewtonSoft.Json/Serialization/JsonArrayContract.cs
13632
#region License // Copyright (c) 2007 James Newton-King // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation // files (the "Software"), to deal in the Software without // restriction, including without limitation the rights to use, // copy, ...
mit
STNS/libnss_stns
libstns/response_parser_test.go
3377
package libstns import ( "testing" "github.com/STNS/libnss_stns/test" ) // UID,GIDのシフトをテストする // 通常のレスポンステストはRequestにて包括的にテストしている func TestUserConvertV3Format(t *testing.T) { c := &Config{} r, err := convertV3Format([]byte(test.GetV3UserExample()), "/user/name/example", c) if err != nil { t.Errorf("not assume ...
mit
NaosFramework/Naos.AWS
Naos.AWS.S3/AwsInteractionBase.cs
4156
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="AwsInteractionBase.cs" company="Naos Project"> // Copyright (c) Naos Project 2019. All rights reserved. // </copyright> // -----------------------------------------------------...
mit
alcohol/paste.robbast.nl
src/Security/HashGenerator.php
752
<?php declare(strict_types=1); /* * (c) Rob Bast <rob.bast@gmail.com> * * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. */ namespace Paste\Security; use Webmozart\Assert\Assert; final class HashGenerator { /** @var string */ ...
mit
leixdd/CATIA
config/Tracert.php
361
<?php return [ /** * The name of the database table * This table name will be used in the migration file and the model * * */ 'table' => 'history', /** * Available char sets for this package * */ 'char_sets' => [ 'hash' => 'ABCDEFGHIJKLMNOPQRSTUVWabcde...
mit
welltok/instance_selector
lib/instance_selector/providers/aws.rb
3137
module InstanceSelector module Providers # AWS Provider class AWS < AbstractProvider def initialize(options = {}) @fog = options.delete(:fog_client) unless @fog @options = { region: 'us-east-1' }.merge(options) connect end end ...
mit
dsherret/type-info-ts
src/definitions/class/base.ts
205
export * from "./base/BaseClassMethodParameterDefinition"; export * from "./base/BaseClassMethodDefinition"; export * from "./base/BaseClassPropertyDefinition"; export * from "./base/ScopedDefinition";
mit
jeanleonino/simplest-bug-manager
tests/unit/routes/list-test.js
286
import { moduleFor, test } from 'ember-qunit'; moduleFor('route:list', 'Unit | Route | list', { // Specify the other units that are required for this test. // needs: ['controller:foo'] }); test('it exists', function(assert) { let route = this.subject(); assert.ok(route); });
mit
DerekRoth/symfony
tests/Symfony/Tests/Component/Form/Extension/Core/Type/UrlTypeTest.php
1826
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Tests\Component\Form\Extension\Core\Type; require_once __DIR__ ...
mit
Montana-Media-Arts/120_CreativeCoding_Fall2017
p5_CodeExamples/02_animation/LearningProcessing-p5.js/chp03_flow/example_03_01_setupdraw/sketch.js
774
// Learning Processing // Daniel Shiffman // http://www.learningprocessing.com // Example 3-1: Zoog as dynamic sketch // setup() runs first one time. // createCanvas() should always be first line of setup function setup() { // Set the size of the window createCanvas(480, 270); } // draw() loops continuously u...
mit
zzzprojects/EntityFramework-Plus
src/test/Z.Test.EntityFramework.Plus.EF6/QueryIncludeOptimized/Null_Executor/Single_Many_Single_Many_Null.cs
2825
// Description: Entity Framework Bulk Operations & Utilities (EF Bulk SaveChanges, Insert, Update, Delete, Merge | LINQ Query Cache, Deferred, Filter, IncludeFilter, IncludeOptimize | Audit) // Website & Documentation: https://github.com/zzzprojects/Entity-Framework-Plus // Forum & Issues: https://github.com/zzzprojec...
mit
1st8/blather
lib/blather/stanza/pubsub/unsubscribe.rb
2176
module Blather class Stanza class PubSub # # PubSub Unsubscribe Stanza # # [XEP-0060 Section 6.2 - Unsubscribe from a Node](http://xmpp.org/extensions/xep-0060.html#subscriber-unsubscribe) # # @handler :pubsub_unsubscribe class Unsubscribe < PubSub register :pubsub_unsubscribe, :unsubscribe, self.regis...
mit
eriqadams/computer-graphics
lib/lwjgl-2.9.1/lwjgl-source-2.9.1/src/java/org/lwjgl/test/opengles/Gears.java
17465
/* * Copyright (c) 2002-2008 LWJGL Project * 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 ...
mit