code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
4
991
language
stringclasses
9 values
license
stringclasses
15 values
size
int32
3
1.05M
// Copyright (c) Steinwurf ApS 2016. // All Rights Reserved // // Distributed under the "BSD License". See the accompanying LICENSE.rst file. #include "tfhd.hpp" #include <string> namespace petro { namespace box { const std::string tfhd::TYPE = "tfhd"; } }
steinwurf/petro
src/petro/box/tfhd.cpp
C++
bsd-3-clause
260
// // Copyright (c) 2009 Rutger ter Borg // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // #ifndef BOOST_NUMERIC_BINDINGS_BLAS_LEVEL3_HPP #define BOOST_NUMERIC_BINDINGS_BLAS_LEVEL3_HPP #include <boost/numer...
quantmind/jflib
include/boost/numeric/bindings/blas/level3.hpp
C++
bsd-3-clause
356
<?php namespace backend\models; use Yii; use yii\helpers\ArrayHelper; use backend\models\Organization; /** * User model * * @property integer $id * @property string $username * @property string $password_hash * @property string $password_reset_token * @property string $email * @property string $auth_key * @p...
jinglinhu/cpp
backend/models/User.php
PHP
bsd-3-clause
3,852
import warnings import numpy as np import numbers import collections from warnings import warn from scipy.sparse import csr_matrix from scipy.spatial.distance import cdist from menpo.transform import WithDims from .base import Shape def bounding_box(closest_to_origin, opposite_corner): r""" Return a boundi...
grigorisg9gr/menpo
menpo/shape/pointcloud.py
Python
bsd-3-clause
48,399
// This file was generated by silverstripe/cow from client/lang/src/el.js. // See https://github.com/tractorcow/cow for details if (typeof(ss) === 'undefined' || typeof(ss.i18n) === 'undefined') { if (typeof(console) !== 'undefined') { // eslint-disable-line no-console console.error('Class ss.i18n not defined'); ...
jonom/silverstripe-cms
client/lang/el.js
JavaScript
bsd-3-clause
1,533
from typing import List, Iterable, Type import gzip import numpy as np def get_string_vector_reader(dtype: Type = np.float32, columns: int = None): """Get a reader for vectors encoded as whitespace-separated numbers""" def process_line(line: str, lineno: int, path: str) -> np.ndarray: numbers = line.s...
bastings/neuralmonkey
neuralmonkey/readers/string_vector_reader.py
Python
bsd-3-clause
1,449
#ifndef PYTHONIC_BUILTIN_STR_STRIP_HPP #define PYTHONIC_BUILTIN_STR_STRIP_HPP #include "pythonic/include/__builtin__/str/strip.hpp" #include "pythonic/types/str.hpp" #include "pythonic/utils/functor.hpp" namespace pythonic { namespace __builtin__ { namespace str { types::str strip(types::str cons...
pbrunet/pythran
pythran/pythonic/__builtin__/str/strip.hpp
C++
bsd-3-clause
744
using System; using System.Net.Security; using System.Collections.Generic; using System.Net.Sockets; using System.Net; using System.Security.Cryptography.X509Certificates; using System.Security.Authentication; using System.IO; using System.IO.Compression; using MsgPack.Serialization; using MsgPack; using zlib; namesp...
brandonprry/gray_hat_csharp_code
ch12_automating_arachni_rpc/ArachniRPCSession.cs
C#
bsd-3-clause
3,992
<?php /** * AistGitTools (http://mateuszsitek.com/projects/aist-git-tools) * * @link http://github.com/ma-si/aist-git-tools for the canonical source repository * @copyright Copyright (c) 2006-2017 Aist Internet Technologies (http://aist.pl) All rights reserved. * @license http://opensource.org/licenses/BSD...
ma-si/aist-git-tools
config/module.config.php
PHP
bsd-3-clause
1,607
import React from "react"; import Image from "@times-components/image"; import styleFactory from "./styles"; import propTypes from "./proptypes"; const MastHead = ({ publicationName, breakpoint }) => { let uri = "https://www.thetimes.co.uk/d/img/leaders-masthead-d17db00289.png"; let aspectRatio = 1435 / 250; let...
newsuk/times-components
packages/edition-slices/src/slices/leaders/masthead.js
JavaScript
bsd-3-clause
738
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import djangocms_text_ckeditor.fields def migrate_club_journal(apps, schema_editor): import re ClubJournalEntry = apps.get_model('domecek', 'ClubJournalEntry') for entry in ClubJournalEntry.objec...
misli/django-domecek
domecek/migrations/0012_new_clubjournalentry.py
Python
bsd-3-clause
2,269
/* * Copyright (c) 2018, 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 condit...
smartdevicelink/sdl_core
src/components/security_manager/src/security_manager_impl.cc
C++
bsd-3-clause
24,474
/** * Copyright (c) 2013-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. * * @emails o...
NevilleS/relay
src/traversal/__tests__/writeRelayQueryPayload_defaultNull-test.js
JavaScript
bsd-3-clause
4,160
/* * Copyright (c) 2010, Sun Microsystems, Inc. * Copyright (c) 2010, The Storage Networking Industry Association. * * 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 reta...
dCache/CDMI
cdmi-core/src/main/java/org/snia/cdmiserver/exception/BadRequestException.java
Java
bsd-3-clause
2,136
<?php namespace backend\models; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; use common\models\EventCategory; /** * EventCategorySearch represents the model behind the search form about `common\models\EventCategory`. */ class EventCategorySearch extends EventCategory { /** * @inheritdoc ...
djrosl/travel
backend/models/EventCategorySearch.php
PHP
bsd-3-clause
1,683
# -*- coding: utf-8 -*- from django.shortcuts import render from django.http import HttpResponse from .models import Story def index(request): stories = Story.objects.order_by('score') return render(request, 'reader/stories.html', {'stories': stories})
n3bukadn3zar/reservo
reservo/reader/views.py
Python
bsd-3-clause
263
<?php namespace Livraria\Model; class CategoriaService { /** * @var Livraria\Model\CategoriaTable */ protected $categoriaTable; /** ------------------------------------------------------------------------------------------------------------- */ /** * @name __construct * @return void * */ public function _...
eltonoliveira/curso.zend2
module/Livraria/src/Livraria/Model/CategoriaService.php
PHP
bsd-3-clause
784
export default (): boolean => process.env.NODE_ENV !== 'development';
wakatime/chrome-wakatime
src/utils/isProd.ts
TypeScript
bsd-3-clause
70
__version__ = '0.1dev' import argparse import string import re from rap.processing_unit import ProcessingUnit from rap.program import Program, ProgramError input_pair_regex = re.compile("^\s*([a-zA-Z0-9]+)\s*:\s*([0-9]+)\s*$") def parse_input(string, sep=',', pair_regex=input_pair_regex): registers = {} f...
lemon24/rap
rap/__init__.py
Python
bsd-3-clause
5,176
// menubar.js // top menubar icon const path = require('path'); const db = require('../lib/db'); const switcher = require('../lib/switcher'); const {Tray, Menu} = require('electron').remote; const iconPath = path.join(__dirname, '../../resources/menubar-alt2.png'); let menubar = null; // prevent GC module.exports = ...
mysticflute/blue
src/menu/menubar.js
JavaScript
bsd-3-clause
891
/* -- MAGMA (version 2.1.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date August 2016 @generated from src/zgels_gpu.cpp, normal z -> s, Tue Aug 30 09:38:06 2016 */ #include "magma_internal.h" /************************************...
maxhutch/magma
src/sgels_gpu.cpp
C++
bsd-3-clause
4,464
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'pygesture/ui/templates/process_widget_template.ui' # # Created by: PyQt5 UI code generator 5.4.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_ProcessWidget(object): def se...
ixjlyons/pygesture
pygesture/ui/templates/process_widget_template.py
Python
bsd-3-clause
3,894
<?php namespace Application\Factory; use Exception; use Zend\ServiceManager\AbstractFactoryInterface; use Zend\ServiceManager\ServiceLocatorInterface; class DefaultTableGatewayFactory implements AbstractFactoryInterface { /** * Determine if we can create a service with name * * @param ServiceLoca...
Fryday80/SRzA
module/Application/src/Application/Factory/DefaultTableGatewayFactory.php
PHP
bsd-3-clause
1,295
# -#- coding: utf-8 -#- import feedparser from django.db import models from django.utils.translation import ugettext_lazy as _ from leonardo.module.web.models import ContentProxyWidgetMixin from leonardo.module.web.models import Widget from leonardo.module.web.widgets.mixins import JSONContentMixin from leonardo.modu...
django-leonardo/django-leonardo
leonardo/module/web/widget/feedreader/models.py
Python
bsd-3-clause
888
<?php declare(strict_types=1); /** * @package Garp\Functional * @author Harmen Janssen <harmen@grrr.nl> * @license https://github.com/grrr-amsterdam/garp-functional/blob/master/LICENSE.md BSD-3-Clause */ namespace Garp\Functional; /** * Creates a negative version of an existing function. * * Example: * $a...
grrr-amsterdam/garp-functional
functions/not.php
PHP
bsd-3-clause
692
// Copyright 2010-2016, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of condit...
kbc-developers/Mozc
src/rewriter/gen_usage_rewriter_dictionary_main.cc
C++
bsd-3-clause
10,507
var class_app_store_1_1_models_1_1_category_instance = [ [ "category", "de/d27/class_app_store_1_1_models_1_1_category_instance.html#ac1e8313d7f7d58349cf972f2be0ae365", null ] ];
BuildmLearn/BuildmLearn-Store
WP/doc/DOxygen_HTML/de/d27/class_app_store_1_1_models_1_1_category_instance.js
JavaScript
bsd-3-clause
182
// Copyright 2016 The Cobalt Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ap...
youtube/cobalt
starboard/shared/stub/window_get_platform_handle.cc
C++
bsd-3-clause
717
// ***************************************************************************** // // © Component Factory Pty Ltd 2012. All rights reserved. // The software and associated documentation supplied hereunder are the // proprietary information of Component Factory Pty Ltd, 17/267 Nepean Hwy, // Seaford, Vic 3198, A...
Cocotteseb/Krypton
Source/Krypton Components/ComponentFactory.Krypton.Ribbon/View Layout/ViewLayoutRibbonPadding.cs
C#
bsd-3-clause
3,234
// Copyright 2009 The Ninep 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 clnt var m2id = [...]uint8{ 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 5, 0, 1, 0, 2, 0, 1, ...
lionkov/ninep
clnt/pool.go
GO
bsd-3-clause
1,798
<?php use yii\db\Migration; class m170212_160300_modify_subscription extends Migration { public function up() { $this->addColumn('subscription', 'good_id', \yii\db\Schema::TYPE_INTEGER); $this->addForeignKey( 'fk-subscription-good_id', 'subscription', 'good_id'...
AlexanderBliznuk/disposable_razors
migrations/m170212_160300_modify_subscription.php
PHP
bsd-3-clause
735
package abi38_0_0.expo.modules.taskManager; import android.app.PendingIntent; import android.app.job.JobInfo; import android.app.job.JobParameters; import android.app.job.JobScheduler; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.net.Uri; import an...
exponent/exponent
android/versioned-abis/expoview-abi38_0_0/src/main/java/abi38_0_0/expo/modules/taskManager/TaskManagerUtils.java
Java
bsd-3-clause
10,404
var CoreView = require('backbone/core-view'); var ModalsServiceModel = require('../../../../../javascripts/cartodb3/components/modals/modals-service-model'); var Router = require('../../../../../javascripts/cartodb3/routes/router'); describe('components/modals/modals-service-model', function () { beforeEach(function...
splashblot/dronedb
lib/assets/test/spec/cartodb3/components/modals/modals-service-model.spec.js
JavaScript
bsd-3-clause
3,915
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ The astropy.utils.iers package provides access to the tables provided by the International Earth Rotation and Reference Systems Service, in particular allowing interpolation of published UT1-UTC values for given times. These are used in `astropy.time`...
bsipocz/astropy
astropy/utils/iers/iers.py
Python
bsd-3-clause
31,536
/* * Copyright (c) 2022 Snowplow Analytics Ltd * 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 ...
snowplow/snowplow-javascript-tracker
plugins/browser-plugin-youtube-tracking/rollup.config.js
JavaScript
bsd-3-clause
2,950
<?php namespace E4W\Sms\Service; use E4W\Sms\Adapter\Sms\SmsAdapterInterface; use Zend\EventManager\EventManagerAwareInterface; use Zend\EventManager\EventManagerAwareTrait; class SmsService implements EventManagerAwareInterface { use EventManagerAwareTrait; /** @var SmsAdapterInterface */ protected $ada...
Eye4web/E4WSms
src/E4W/Sms/Service/SmsService.php
PHP
bsd-3-clause
1,405
from helper import CompatTestCase from validator.compat import FX22_DEFINITION class TestFX22Compat(CompatTestCase): """Test that compatibility tests for Gecko 22 are properly executed.""" VERSION = FX22_DEFINITION def test_nsigh2(self): self.run_regex_for_compat("nsIGlobalHistory2", is_js=True)...
mattbasta/amo-validator
tests/compat/test_gecko22.py
Python
bsd-3-clause
1,747
<?php namespace backend\models; use Yii; /** * This is the model class for table "nationality". * * @property integer $nationality_id * @property string $nationality */ class Nationality extends \yii\db\ActiveRecord { /** * @inheritdoc */ public static function tableName() { return...
robert-mill/cover
backend/models/Nationality.php
PHP
bsd-3-clause
754
from pylons import tmpl_context as c from pylons import app_globals as g from pylons.i18n import _ from r2.config import feature from r2.controllers import add_controller from r2.controllers.reddit_base import RedditController from r2.lib.errors import errors from r2.lib.require import require, RequirementException fr...
madbook/reddit-plugin-gold
reddit_gold/controllers.py
Python
bsd-3-clause
3,510
from django.http import HttpResponse from error_capture_middleware import ErrorCaptureHandler class PlainExceptionsMiddleware(ErrorCaptureHandler): def handle(self, request, exception, tb): return HttpResponse("\n".join(tb), content_type="text/plain", status=500)
enderlabs/django-error-capture-middleware
src/error_capture_middleware/handlers/plain.py
Python
bsd-3-clause
306
// Copyright (c) 2006, Sven Groot, see license.txt for details #include "stdafx.h" using namespace Gdiplus; const float g_baseDpi = 96.0f; float CDPIHelper::m_fScaleX = CDPIHelper::GetLogPixelsX() / g_baseDpi; float CDPIHelper::m_fScaleY = CDPIHelper::GetLogPixelsY() / g_baseDpi; float CDPIHelper::ScaleX(...
darwin/upgradr
ieaddon/Upgradr/DPIHelper.cpp
C++
bsd-3-clause
1,874
<?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 a...
lmaxim/zend_gdata
library/Zend/Gdata/MediaMimeStream.php
PHP
bsd-3-clause
5,671
# 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. import os import random import unittest from infra_libs.event_mon import router from infra_libs.event_mon.log_request_lite_pb2 import LogRequestLite DATA_...
nicko96/Chrome-Infra
infra_libs/event_mon/test/router_test.py
Python
bsd-3-clause
1,648
# -*- coding: utf-8 -*- from django.db import models, migrations import django.utils.timezone import django.contrib.auth.models import django.core.validators class Migration(migrations.Migration): dependencies = [ ('auth', '0006_require_contenttypes_0002'), ] operations = [ migrations....
GeoMatDigital/django-geomat
geomat/users/migrations/0001_initial.py
Python
bsd-3-clause
3,014
<?php namespace App\Exceptions; /** * Interface for HTTP error exceptions. */ interface HttpExceptionInterface { /** * Returns the status code. * * @return int An HTTP response status code */ public function getStatusCode(); /** * Returns response headers. * * @re...
arcostasi/slimantic-skeleton
app/src/Exceptions/HttpExceptionInterface.php
PHP
bsd-3-clause
391
/* * Copyright 2015, Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions a...
LuminateWireless/grpc-java
core/src/main/java/io/grpc/ManagedChannelProvider.java
Java
bsd-3-clause
5,316
<?php namespace backend\modules\personal; /** * personal module definition class */ class Module extends \yii\base\Module { /** * @inheritdoc */ public $controllerNamespace = 'backend\modules\personal\controllers'; /** * @inheritdoc */ public function init() { parent...
spider049/yii2-meeting
backend/modules/personal/Module.php
PHP
bsd-3-clause
387
package com.rezgame.backend.logic; /* * Copyright (c) <2013>, Amanj Sherwany and Nosheen Zaza * All rights reserved. * */ public class GameHistoryManager { }
amanjpro/9riskane
src/com/rezgame/backend/logic/GameHistoryManager.java
Java
bsd-3-clause
162
/* * Copyright (c) 2014, Victor Nazarov <asviraspossible@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: * * 1. Redistributions of source code must retain the above copyright no...
sviperll/static-mustache
static-mustache/src/main/java/com/github/sviperll/staticmustache/TemplateCompiler.java
Java
bsd-3-clause
12,095
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty o...
NifTK/MITK
Modules/QtWidgets/src/QmitkStdMultiWidget.cpp
C++
bsd-3-clause
64,616
class CreatePostCategoryJoinTable < ActiveRecord::Migration def change create_table :categories_posts, :id => false do |t| t.integer :post_id t.integer :category_id end end end
erdbehrmund/blogyr
db/migrate/20130117003258_create_post_category_join_table.rb
Ruby
bsd-3-clause
201
// 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 "media/mojo/common/media_type_converters.h" #include <stddef.h> #include <stdint.h> #include "base/numerics/safe_conversions.h" #include "media...
highweb-project/highweb-webcl-html5spec
media/mojo/common/media_type_converters.cc
C++
bsd-3-clause
29,089
from enum import Enum from django.conf import settings from django.utils.translation import npgettext_lazy, pgettext_lazy from django_prices.templatetags import prices_i18n from prices import Money class OrderStatus: DRAFT = 'draft' UNFULFILLED = 'unfulfilled' PARTIALLY_FULFILLED = 'partially fulfilled' ...
UITools/saleor
saleor/order/__init__.py
Python
bsd-3-clause
8,246
// Copyright (c) 2015, Robert Escriva // 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 c...
rescrv/Replicant
replicant-benchmark.cc
C++
bsd-3-clause
7,712
from pprint import pprint as pp from scout.load.transcript import load_transcripts def test_load_transcripts(adapter, gene_bulk, transcripts_handle): # GIVEN a empty database assert sum(1 for i in adapter.all_genes()) == 0 assert sum(1 for i in adapter.transcripts()) == 0 # WHEN inserting a number o...
Clinical-Genomics/scout
tests/load/test_load_transcripts.py
Python
bsd-3-clause
707
/** * Shake Table web interface. * * @author Michael Diponio <michael.diponio@uts.edu.au> * @author Jesse Charlton <jesse.charlton@uts.edu.au> * @date 1/6/2013 */ /* ============================================================================ * == Shake Table. ...
jeking3/web-interface
public/uts/shaketable/shaketable.js
JavaScript
bsd-3-clause
37,584
/**************************************************************************** * * Copyright (c) 2018 PX4 Development Team. 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. Redistri...
Aerotenna/Firmware
src/lib/FlightTasks/tasks/Failsafe/FlightTaskFailsafe.hpp
C++
bsd-3-clause
2,259
/* * Copyright (c) 2010, Anima Games, Benjamin Karaban, Laurent Schneider, * Jérémie Comarmond, Didier Colin. * 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 ...
benkaraban/anima-games-engine
Sources/Modules/Renderer/SM2/FreeFormRenderer.cpp
C++
bsd-3-clause
13,312
from smtplib import SMTPException from django.conf import settings from django.core.mail import send_mail from django.views.decorators.http import require_GET from django.shortcuts import redirect from django.template.loader import render_to_string from django.contrib.auth.decorators import login_required from django.c...
ResearchSoftwareInstitute/MyHPOM
myhpom/views/verification.py
Python
bsd-3-clause
2,927
#include <leveldb/db.h> #include <string> #include <iostream> using namespace std; using namespace leveldb; int main( int argc, char* argv[]) { DB* db; Options options; options.create_if_missing = true; if( argc < 2 ) return 0; char delim; if( argc == 3 ) delim = argv[2][0];...
nonego/ldb
qq/testwrite.cpp
C++
bsd-3-clause
761
require 'rubygems' require 'google_chart' # http://badpopcorn.com/blog/2008/09/08/rails-google-charts-gchartrb/ class WorkloadsController < ApplicationController layout 'pdc' def index person_id = params[:person_id] project_ids = params[:project_ids] iterations_ids = params[:iterations_ids] ...
micktaiwan/scpm
app/controllers/workloads_controller.rb
Ruby
bsd-3-clause
41,083
import { select } from '@storybook/addon-knobs'; import readme from '@ovh-ux/ui-kit.button/README.md'; const state = { label: 'State', options: { Normal: '', Disabled: 'disabled', }, default: '', }; export default { title: 'Design System/Components/Buttons/Native/Primary', parameters: { note...
ovh-ux/ovh-ui-kit
packages/apps/workshop/stories/design-system/components/button-native-primary.stories.js
JavaScript
bsd-3-clause
3,190
# -*-coding:Utf-8 -* # Copyright (c) 2010 DAVY Guillaume # 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...
stormi/tsunami
src/secondaires/magie/sorts.py
Python
bsd-3-clause
3,125
/// <reference path="../../server.d.ts" /> 'use strict'; module.exports = { ip: process.env.IP || undefined, server: { url: 'http://www.<%= appname %>.com' }<% if (filters.backend === 'mongo') { %>, mongo: { uri: 'mongodb://localhost/<%= slugName %>' }<% } %>, facebook: { ...
NovaeWorkshop/Nova
app/templates/server/config/environment/production.js
JavaScript
bsd-3-clause
465
#include <iostream> #include <vector> using namespace std; typedef unsigned long long int ull; int main() { static const ull MAX = 28123; ull sum = 0; vector<ull> abu; vector<bool> is_abu(MAX+1); for(ull i = 1; i <= MAX; i++) { ull sum_d = 0; for(ull j = 1; j < i; j++) { ...
nikolasco/project_euler
023.cpp
C++
bsd-3-clause
793
<?php /* @var $this yii\web\View */ /* @var $lastPosts */ /* @var $featured */ /* @var $drafts */ use yii\helpers\Url; use yii\helpers\Html; $this->title = 'Головна'; ?> <div class="site-index"> <h1 class="by-center">Адмін панель</h1> <hr /> <div class="body-content"> <div class="row"> ...
VitaliyProdan/hr
backend/views/site/index.php
PHP
bsd-3-clause
7,390
/* * Copyright (c) 2011-2021, PCJ Library, Marek Nowicki * All rights reserved. * * Licensed under New BSD License (3-clause license). * * See the file "LICENSE" for the full license governing this code. */ package org.pcj.internal.message.scatter; import java.nio.channels.SocketChannel; import java.util.Arrays...
hpdcj/PCJ
src/main/java/org/pcj/internal/message/scatter/ScatterStates.java
Java
bsd-3-clause
8,076
<?php /* * Copyright 2016 Google LLC * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of cond...
michaelbausor/gax-php
src/Page.php
PHP
bsd-3-clause
9,056
// Copyright (c) 2016 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 "quux/server/chlo_extractor.h" #include "net/quic/crypto/crypto_framer.h" #include "net/quic/crypto/crypto_handshake_message.h" #include "ne...
aliclark/libquic
src/quux/server/chlo_extractor.cc
C++
bsd-3-clause
5,344
from tests.modules.ffi.base import BaseFFITest from rpython.rtyper.lltypesystem import rffi # Most of the stuff is still very vague. # This is because lots of the constants had to be set to something in order to # run some specs but the specs weren't about them. class TestTypeDefs(BaseFFITest): def test_it_is_kin...
babelsberg/babelsberg-r
tests/modules/ffi/test_ffi.py
Python
bsd-3-clause
2,305
<?php /** * Copyright (c) 2011-present Mediasift Ltd * 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...
datasift/storyplayer
src/php/Storyplayer/SPv3/Modules/Types/FromArray.php
PHP
bsd-3-clause
3,138
package com.codewaves.codehighlight.languages; import com.codewaves.codehighlight.core.Keyword; import com.codewaves.codehighlight.core.Language; import com.codewaves.codehighlight.core.Mode; /** * Created by Sergej Kravcenko on 5/17/2017. * Copyright (c) 2017 Sergej Kravcenko */ public class BashLanguage impleme...
Codewaves/Highlight.java
src/main/java/com/codewaves/codehighlight/languages/BashLanguage.java
Java
bsd-3-clause
3,376
<?php /** * User: sometimes * Date: 2016/10/1 * Time: 23:47 */ namespace backend\models; use yii\base\Model; use yii\helpers\FileHelper; class ImageUpload extends Model { //private $imageFile; public $imageFile; public function rules() { return [ [['imageFile'], 'file', 'ski...
419989658/conciseCMS
backend/models/ImageUpload.php
PHP
bsd-3-clause
1,127
<?php namespace Grocery\Service; interface productImageServiceInterface { /** * Should return a set of all blog posts that we can iterate over. Single entries of the array are supposed to be * implementing \Blog\Model\PostInterface * * @return array|PostInterface[] */ pub...
verzeilberg/boodschappen
module/Grocery/src/Grocery/Service/productImageServiceInterface.php
PHP
bsd-3-clause
673
#include "DesktopViewPlugin.h" #include <QFileInfo> #include <QDir> #include <QClipboard> #include <QMimeData> #include <QImageReader> #include <LuminaXDG.h> #include "LSession.h" DesktopViewPlugin::DesktopViewPlugin(QWidget* parent, QString ID) : LDPlugin(parent, ID){ this->setLayout( new QVBoxLayout()); thi...
krytarowski/lumina
src-qt5/core/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp
C++
bsd-3-clause
8,788
<?php namespace app\modules\admcapacitaciones; class admcapacitacionesModule extends \yii\base\Module { public $controllerNamespace = 'app\modules\admcapacitaciones\controllers'; public function init() { parent::init(); // custom initialization code goes here } }
programacionav/Proyecto2015
modules/admcapacitaciones/admcapacitacionesModule.php
PHP
bsd-3-clause
300
<?php use yii\helpers\Html; use yii\widgets\DetailView; /* @var $this yii\web\View */ /* @var $model app\modules\aux_planejamento\models\cadastros\Materialconsumo */ $this->title = $model->matcon_cod; $this->params['breadcrumbs'][] = ['label' => 'Materialconsumos', 'url' => ['index']]; $this->params['breadcrumbs'][]...
FernandoMauricio/portal-senac
modules/aux_planejamento/views/cadastros/materialconsumo/view.php
PHP
bsd-3-clause
1,077
<?php require_once(dirname(__FILE__)."/../include/common.inc.php"); function GetChannel() { global $dsql; $str = "分类:<select name=\"typeid\"><option value=''>--请选择--</option>"; $sql = "select * from #@__nav where pid='0' and isopen='1' and webid='0' and typeid != '10'"; $row = $dsql->getAll($sql); foreach($row AS...
lz1988/stourwebcms
questions/ask.php
PHP
bsd-3-clause
2,695
<?php if (!isset($border)) { $border = false; } if (!isset($button)) { $button = false; } ?> <div class="container best-projects"> <div class="row"> <a href="/advert/create" class="create-best-project"> Реклама по<br/> доступной цене </a> </div> <div ...
syrexby/repostni
frontend/views/layouts/_advert.php
PHP
bsd-3-clause
1,439
export const SET_SEARCHED_POKEMONS = "SET_SEARCHED_POKEMONS"; export const SET_SEARCHED_QUERY = "SET_SEARCHED_QUERY"; export const SET_SEARCHED_TYPE = "SET_SEARCHED_TYPE"; export const RESET_SEARCHED_PARAMS = "RESET_SEARCHED_PARAMS"; export const RESET_SEARCHED_POKEMONS = "RESET_SEARCHED_POKEMONS"; export const REMOVE_...
esgiprojetninja/ninjaPokedex
public/js/lib/pokedex/actions/pokeSearchTypes.js
JavaScript
bsd-3-clause
374
<?php namespace Gaia\ShortCircuit; /** * A utility class designed to convert names into file paths for actions and views. */ class Resolver implements Iface\Resolver { protected $appdir = ''; const param_match = '#\\\\\(([a-z0-9_\-]+)\\\\\)#iu'; protected $urls = array(); public function __construct(...
Gaia-Interactive/gaia_core_php
lib/gaia/shortcircuit/resolver.php
PHP
bsd-3-clause
4,536
''' script @ mandrewcito ''' import cv2 import numpy as np import sys def callback(x): x = cv2.getTrackbarPos('Kernel X','image') y = cv2.getTrackbarPos('Kernel Y','image') sigma = cv2.getTrackbarPos('sigma/100','image') img =cv2.GaussianBlur(imgOrig,(x,y),sigma/100.0) cv2.imshow('image',img) # Get the to...
mandrewcito/EOpenCV
scriptExamples/gaussianFilter.py
Python
bsd-3-clause
826
<?php /* $Rev: 373 $ | $LastChangedBy: nate $ $LastChangedDate: 2008-01-04 12:54:39 -0700 (Fri, 04 Jan 2008) $ +-------------------------------------------------------------------------+ | Copyright (c) 2004 - 2007, Kreotek LLC | | All rights reserved. ...
eandbsoftware/phpbms
modules/bms/report/lineitems_totals.php
PHP
bsd-3-clause
18,530
describe("go.components.actions", function() { var actions = go.components.actions; var Model = go.components.models.Model; var testHelpers = go.testHelpers, assertRequest = testHelpers.rpc.assertRequest, response = testHelpers.rpc.response, noElExists = testHelpers.noElExists, oneElExis...
praekelt/vumi-go
go/base/static/js/test/components/actions.test.js
JavaScript
bsd-3-clause
6,932
/*------------------------------------------------------------------------- * * Copyright (c) 2004-2014, PostgreSQL Global Development Group * * *------------------------------------------------------------------------- */ package org.postgresql.jdbc2; import java.io.*; import java.lang.reflect.InvocationTargetExcept...
ekoontz/pgjdbc
org/postgresql/jdbc2/AbstractJdbc2Statement.java
Java
bsd-3-clause
126,655
package netcode import ( "log" "net" "time" ) const CLIENT_MAX_RECEIVE_PACKETS = 64 const PACKET_SEND_RATE = 10.0 const NUM_DISCONNECT_PACKETS = 10 // number of disconnect packets the client/server should send when disconnecting type Context struct { WritePacketKey []byte ReadPacketKey []byte } type ClientSta...
wirepair/netcode
client.go
GO
bsd-3-clause
11,175
""" SymPy core decorators. The purpose of this module is to expose decorators without any other dependencies, so that they can be easily imported anywhere in sympy/core. """ from functools import wraps from sympify import SympifyError, sympify def deprecated(func): """This is a decorator which can be used to mar...
ichuang/sympy
sympy/core/decorators.py
Python
bsd-3-clause
3,543
from .models import CreateModel, DeleteModel, AlterModelTable, AlterUniqueTogether, AlterIndexTogether from .fields import AddField, RemoveField, AlterField, RenameField
denisenkom/django
django/db/migrations/operations/__init__.py
Python
bsd-3-clause
170
<?php namespace app\controllers; use yii\web\Controller; class AppController extends Controller { protected function setMeta( $title = null, $keywords = null, $description = null ) { //Устанавливаем мета-теги $this->view->title = $title; $this->view->registerMetaTag(['name' => 'keywords', ...
RuslanKozin/yii2-int.mag
controllers/AppController.php
PHP
bsd-3-clause
472
<?php // // Scry - Simple PHP Photo Album // Copyright 2004 James Byers <jbyers@users.sf.net> // http://scry.org // // Scry is distributed under a BSD License. See LICENSE for details. // // $Id: functions.php,v 1.18 2004/11/29 00:42:56 jbyers Exp $ // // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!...
candhill/scry
functions.php
PHP
bsd-3-clause
10,408
<?php /** * Part of the Sentinel package. * * NOTICE OF LICENSE * * Licensed under the 3-clause BSD License. * * This source file is subject to the 3-clause BSD License that is * bundled with this package in the LICENSE file. * * @package Sentinel * @version 2.0.4 * @author Cartalyst LLC * @lice...
junsanity06/Sentinel
src/Roles/IlluminateRoleRepository.php
PHP
bsd-3-clause
1,637
function showMessage(object, message){ if(message == null) message=""; object.text(message); } function getEmptyResultHtml(){ flushEmptyResultHtml(); var html = '<div class="emptyMsg text-center" class="text-center">列表为空</div>'; return html; } function flushEmptyResultHtml(){ $(".emptyMsg").re...
liujiasheng/kuaidishu
public/js/adminCommon.js
JavaScript
bsd-3-clause
1,995
using System; using System.Drawing; using System.Runtime.InteropServices; namespace TurboControl { /// <summary> /// Summary description for Win32. /// </summary> public class Win32 { [DllImport("gdi32.dll", EntryPoint="BitBlt")] public static extern int BitBlt (IntPtr hDestC, int x, int y, int nWidth, in...
nocoolnicksleft/TurboControl
TurboControl/Win32.cs
C#
bsd-3-clause
2,229
// Copyright 2015 Keybase, Inc. All rights reserved. Use of // this source code is governed by the included BSD license. package service import ( keybase1 "github.com/keybase/client/go/protocol/keybase1" "github.com/keybase/go-framed-msgpack-rpc/rpc" "golang.org/x/net/context" ) type RemoteGPGUI struct { session...
keybase/client
go/service/gpg.go
GO
bsd-3-clause
1,584
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty o...
NifTK/MITK
Modules/Core/src/Rendering/mitkOverlay.cpp
C++
bsd-3-clause
9,744
// Copyright 2016 The Gosl 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 ode import ( "github.com/cpmech/gosl/chk" "github.com/cpmech/gosl/la" ) // rkmethod defines the required functions of Runge-Kutta method type rkme...
cpmech/gosl
ode/methods.go
GO
bsd-3-clause
1,549
// Copyright (c) 2016-2017, blockoperation. All rights reserved. // boxnope is distributed under the terms of the BSD license. // See LICENSE for details. #ifndef BOXNOPE_UTILS_HPP #define BOXNOPE_UTILS_HPP #define QS(s) QString(s) #define QSL(s) QStringLiteral(s) #define QL1S(s) QLatin1String(s) #endif
blockoperation/boxnope
src/utils.hpp
C++
bsd-3-clause
308
package com.smartdevicelink.protocol; import com.smartdevicelink.protocol.enums.FrameType; import com.smartdevicelink.protocol.enums.SessionType; import com.smartdevicelink.util.BitConverter; public class ProtocolFrameHeader { private byte version = 1; private boolean compressed = false; private FrameType...
mrapitis/sdl_android
sdl_android_lib/src/com/smartdevicelink/protocol/ProtocolFrameHeader.java
Java
bsd-3-clause
4,083
# -*- coding: utf-8 -*- """ ulmo.ncdc.ghcn_daily.core ~~~~~~~~~~~~~~~~~~~~~~~~~ This module provides direct access to `National Climatic Data Center`_ `Global Historical Climate Network - Daily`_ dataset. .. _National Climatic Data Center: http://www.ncdc.noaa.gov .. _Global Historical Climat...
timcera/tsgettoolbox
src/tsgettoolbox/ulmo/ncdc/ghcn_daily/core.py
Python
bsd-3-clause
9,898
<?php namespace backend\controllers; use Yii; use common\models\Categories; use common\models\CategoriesSearch; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; /** * Created By Roopan v v <yiioverflow@gmail.com> * Date : 24-04-2015 * Time :3:00 PM * CategoriesController imp...
hostkerala/yii2-test
backend/controllers/CategoriesController.php
PHP
bsd-3-clause
3,237