code stringlengths 3 1.01M | repo_name stringlengths 5 116 | path stringlengths 3 311 | language stringclasses 30
values | license stringclasses 15
values | size int64 3 1.01M |
|---|---|---|---|---|---|
from __future__ import print_function
import re
import logging
logging.basicConfig(level=logging.INFO)
class Executor(object):
def __init__(self, op_map):
processed = {}
for pattern, f in op_map.iteritems():
s = self._build_pattern_groups(pattern.lower())
processed[re.com... | martindimondo/PyC8 | chip8/operations.py | Python | bsd-3-clause | 6,673 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="lang:clipboard.copy" conte... | statsmodels/statsmodels.github.io | v0.13.0/generated/statsmodels.tsa.vector_ar.svar_model.SVARResults.irf.html | HTML | bsd-3-clause | 18,885 |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>statsmodels.tsa.vector_ar.var_model.VARProcess.acorr — statsmodels v0.10.0 documentation</title>
<link rel="stylesheet" href="../_static/nature.css" type="text/css" />
<link rel="stylesheet" hre... | statsmodels/statsmodels.github.io | v0.10.0/generated/statsmodels.tsa.vector_ar.var_model.VARProcess.acorr.html | HTML | bsd-3-clause | 7,934 |
/*
* Created on Oct 18, 2004
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package org.tolweb.tapestry;
import java.util.Collection;
import org.apache.tapestry.BaseComponent;
import org.apache.tapestry.IRequestCycle;
import org.tolweb... | tolweb/tolweb-app | OnlineContributors/src/org/tolweb/tapestry/TitleIllustrations.java | Java | bsd-3-clause | 2,683 |
//---------------------------------------------------------------------------//
//!
//! \file MonteCarlo_ParticleState.cpp
//! \author Alex Robinson
//! \brief Basic particle state class definition.
//!
//---------------------------------------------------------------------------//
// FRENSIE Includes
#include "Mon... | lkersting/SCR-2123 | packages/monte_carlo/core/src/MonteCarlo_ParticleState.cpp | C++ | bsd-3-clause | 10,274 |
<?php
/*
* This file is part of Respect/Validation.
*
* (c) Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
*
* For the full copyright and license information, please view the "LICENSE.md"
* file that was distributed with this source code.
*/
namespace Respect\Validation\Rules;
/**
* @group rule
* @cover... | zinovyev/Validation | tests/unit/Rules/PrimeNumberTest.php | PHP | bsd-3-clause | 1,843 |
// 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/chromeos/set_time_dialog.h"
#include "base/metrics/user_metrics.h"
#include "base/strings/string16.h"
#include "chrome/common/ur... | endlessm/chromium-browser | chrome/browser/chromeos/set_time_dialog.cc | C++ | bsd-3-clause | 1,543 |
/*
* GaussianKernel.java
*
* Created on September 25, 2004, 4:52 PM
*/
package jpview.graphics;
/**
* This class creates a kernel for use by an AffineTransformOp
*
* @author clyon
*/
public class GaussianKernel {
private int radius = 5;
private float sigma = 1;
private float[] kernel... | synergynet/synergynet3 | synergynet3-museum-parent/synergynet3-museum-table/src/main/java/jpview/graphics/GaussianKernel.java | Java | bsd-3-clause | 2,024 |
<?php
/**
* This file is part of the proophsoftware/event-machine.
* (c) 2017-2019 prooph software GmbH <contact@prooph.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace ProophExample\Functiona... | proophsoftware/event-machine | examples/FunctionalFlavour/ExampleFunctionalPort.php | PHP | bsd-3-clause | 2,788 |
// Copyright 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.
#ifndef ASH_COMMON_MATERIAL_DESIGN_MATERIAL_DESIGN_CONTROLLER_H_
#define ASH_COMMON_MATERIAL_DESIGN_MATERIAL_DESIGN_CONTROLLER_H_
#include "ash/ash_expor... | danakj/chromium | ash/common/material_design/material_design_controller.h | C | bsd-3-clause | 3,032 |
// 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.
#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USERS_AVATAR_USER_IMAGE_LOADER_H_
#define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_AVATAR_USER_IMAGE_LOADER_H_
#include ... | mou4e/zirconium | chrome/browser/chromeos/login/users/avatar/user_image_loader.h | C | bsd-3-clause | 4,006 |
//===-- MainLoopBase.h ------------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | endlessm/chromium-browser | third_party/llvm/lldb/include/lldb/Host/MainLoopBase.h | C | bsd-3-clause | 2,859 |
\hypertarget{ChassisTurnRate_8cpp}{\section{framework/\-Chassis\-Turn\-Rate.cpp File Reference}
\label{ChassisTurnRate_8cpp}\index{framework/\-Chassis\-Turn\-Rate.\-cpp@{framework/\-Chassis\-Turn\-Rate.\-cpp}}
}
\hyperlink{classChassisTurnRate}{Chassis\-Turn\-Rate} is a strictly defined type for specifying the turn r... | mark1-umd/mtp-MCSF | docs/latex/ChassisTurnRate_8cpp.tex | TeX | bsd-3-clause | 1,445 |
Гость создан | Veredior/filesender | language/ru_RU/guest_created.mail.php | PHP | bsd-3-clause | 23 |
// 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.
package org.chromium.net.impl;
import android.content.Context;
import android.os.Build;
import android.os.ConditionVariable;
import android.os.Handler;
i... | danakj/chromium | components/cronet/android/java/src/org/chromium/net/impl/CronetUrlRequestContext.java | Java | bsd-3-clause | 21,435 |
/*
* Copyright (C) 2007-2015 Frank Mertens.
*
* Use of this source is governed by a BSD-style license that can be
* found in the LICENSE file.
*
*/
#ifndef FLUXMETA_METAPROTOCOL_H
#define FLUXMETA_METAPROTOCOL_H
#include <flux/meta/MetaObject>
namespace flux {
namespace meta {
/** \brief Duck-typed object pro... | frankencode/fluxkit | meta/src/MetaProtocol.h | C | bsd-3-clause | 2,330 |
module Carto
module Configuration
def db_config
@@db_config ||= YAML.load(File.read(db_config_file)).freeze
end
def app_config
@@app_config ||= YAML.load_file(app_config_file).freeze
end
def frontend_version
@@frontend_version ||= JSON::parse(File.read(Rails.root.join("package.... | splashblot/dronedb | lib/carto/configuration.rb | Ruby | bsd-3-clause | 3,138 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_33) on Fri Jul 13 11:10:51 CEST 2012 -->
<TITLE>
Sample
</TITLE>
<META NAME="date" CONTENT="2012-07-13">
<LINK REL ="stylesheet" TYPE="text/css" HR... | svoos/CorpusConverter | doc/converter/Sample.html | HTML | bsd-3-clause | 9,344 |
/* Copyright (C) 2002 Jean-Marc Valin */
/**
@file speex_bits.h
@brief Handles bit packing/unpacking
*/
/*
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... | ksophocleous/speex | include/speex/speex_bits.h | C | bsd-3-clause | 6,916 |
/*L
* Copyright Oracle Inc
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/cadsr-cgmdr-nci-uk/LICENSE.txt for details.
*/
/*
* eXist Open Source Native XML Database
* Copyright (C) 2001-04 The eXist Project
* http://exist-db.org
*
* This program is ... | NCIP/cadsr-cgmdr-nci-uk | src/org/exist/storage/index/RemoveValueLoggable.java | Java | bsd-3-clause | 3,088 |
/*
-- MAGMA (version 2.1.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date August 2016
@generated from sparse-iter/control/magma_zutil_sparse.cpp, normal z -> s, Tue Aug 30 09:38:47 2016
@author Hartwig Anzt
Utilitie... | maxhutch/magma | sparse-iter/control/magma_sutil_sparse.cpp | C++ | bsd-3-clause | 21,167 |
#!/usr/bin/env perl
use strict;
use warnings;
use LWP::UserAgent;
use JSON::PP;
my $base = "http://gameai.skullspace.ca/api/";
sub failure {
print("!! " . shift(@_) . "\n");
exit(1);
}
sub info {
print("** " . shift(@_) . "\n");
}
sub parse_card {
my $abbr = shift(@_);
my ... | mogigoma/gameai-2014-09 | sdk/perl/GameAI.pl | Perl | bsd-3-clause | 8,313 |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>statsmodels.robust.robust_linear_model.RLMResults.pvalues — statsmodels v0.10.2 documentation</title>
<link rel="stylesheet" href="../_static/nature.css" type="text/css" />
<link rel="stylesheet... | statsmodels/statsmodels.github.io | v0.10.2/generated/statsmodels.robust.robust_linear_model.RLMResults.pvalues.html | HTML | bsd-3-clause | 7,703 |
// $Id$
//
// Copyright (C) 2007-2013 Greg Landrum
//
// @@ All Rights Reserved @@
// This file is part of the RDKit.
// The contents are covered by the terms of the BSD license
// which is included in the file license.txt, found at the root
// of the RDKit source tree.
//
#include <GraphMol/RDKitBase.h>
#inclu... | adalke/rdkit | Code/GraphMol/Fingerprints/AtomPairs.cpp | C++ | bsd-3-clause | 21,277 |
---
id: 5900f3bc1000cf542c50fecf
title: 'Problema 80: Expansão de algarismos da raiz quadrada'
challengeType: 5
forumTopicId: 302194
dashedName: problem-80-square-root-digital-expansion
---
# --description--
É do conhecimento geral que se a raiz quadrada de um número natural não é um número inteiro, então é irraciona... | FreeCodeCamp/FreeCodeCamp | curriculum/challenges/portuguese/10-coding-interview-prep/project-euler/problem-80-square-root-digital-expansion.md | Markdown | bsd-3-clause | 2,471 |
/*
----------------------
BeDC License
----------------------
Copyright 2002, The BeDC 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. Redistributions of source code must retain the above copy... | HaikuArchives/BeDC | source/DCStrings.h | C | bsd-3-clause | 4,105 |
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @pack... | OtsList/OtsList.eu-AAC-for-OpenTibia | vendor/ZF2/library/Zend/Ldap/Collection/DefaultIterator.php | PHP | bsd-3-clause | 9,869 |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\HalfproductSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="halfproduct-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
... | hendrihmwn/propensiA08 | views/halfproduct/_search.php | PHP | bsd-3-clause | 923 |
WakaTime#

[](https://ci.appveyor.com/project/salaros/wakatime-sharp/branch/master)

{
instance = gameObject.G... | Socapex/polyGamesHackathon | Assets/Scripts/AudioHurtHandler.cs | C# | bsd-3-clause | 533 |
<?php namespace estvoyage\risingsun\comparison\unary\container\payload;
use estvoyage\risingsun\{ container, comparison, ointeger, block };
class disjunction
implements
comparison\unary\container\payload
{
private
$operand,
$recipient
;
function __construct($operand, comparison\recipient $recipient)
{
$... | estvoyage/risingsun | src/comparison/unary/container/payload/disjunction.php | PHP | bsd-3-clause | 1,166 |
<?php
namespace UForm\Form\Element;
use UForm\Filtering\FilterChain;
use UForm\Form\Element;
/**
* Element that intends to contain other elements.
* It only aims to be a common parent for Group and Collection
*
* In some ways it is opposed to the Primary element that cant contain other elements
*
* @see UForm\... | gsouf/UForm | src/UForm/Form/Element/Container.php | PHP | bsd-3-clause | 4,172 |
# -*- coding: utf-8 -*-
"""
Created on Thu Jan 03 10:16:39 2013
@author: Grahesh
"""
import pandas
from qstkutil import DataAccess as da
import numpy as np
import math
import copy
import qstkutil.qsdateutil as du
import datetime as dt
import qstkutil.DataAccess as da
import qstkutil.tsutil as tsu
imp... | grahesh/Stock-Market-Event-Analysis | Examples/Event Analysis/Half-Yearly End/Half_Year_End_Analysis.py | Python | bsd-3-clause | 4,522 |
<?php
include_once 'dynamic_db_connection.php';
/**
* This is the model class for table "THEME_MANAGEMENT".
*
* The followings are the available columns in table 'THEME_MANAGEMENT':
* @property string $PID
* @property string $THEME
*/
class Theme_Management extends CActiveRecord
{
/**
* Returns the static mode... | Rathilesh/FMS_V1 | protected/models/Theme_Management.php | PHP | bsd-3-clause | 2,079 |
# Makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = build
# User-friendly check for sphinx-build
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
$(error The '$(SPHINXBUILD)' command wa... | jonathonw/pypush2 | docs/Makefile | Makefile | bsd-3-clause | 7,669 |
/*
* Copyright (c) 2012 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "native_client/src/include/portability_string.h"
#include "native_client/src/include/nacl_macros.h"
#include "native_client/src/i... | leighpauls/k2cro4 | native_client/src/trusted/service_runtime/arch/x86_64/sel_ldr_x86_64.c | C | bsd-3-clause | 5,566 |
// 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 "platform/fonts/shaping/RunSegmenter.h"
#include "platform/fonts/ScriptRunIterator.h"
#include "platform/fonts/SmallCapsIterator.h"
#include "pl... | was4444/chromium.src | third_party/WebKit/Source/platform/fonts/shaping/RunSegmenter.cpp | C++ | bsd-3-clause | 4,699 |
{% macro vital(addon, type) %}
<div class="vital">
{% if type in ('updated', 'created') %}
<span class="updated">
{% if type == 'updated' %}
{# L10n: {0} is a date. #}
{{ _('Updated {0}')|f(addon.last_updated|datetime) }}
{% else %}
{# L10n: {0} is a date. #}
... | jinankjain/zamboni | apps/addons/templates/addons/macros.html | HTML | bsd-3-clause | 2,302 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_101) on Sat Aug 20 05:41:48 EDT 2016 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Uses of Class org.apache.so... | berkeleybop/bbop-manager-golr | solr/docs/solr-core/org/apache/solr/search/class-use/Sorting.html | HTML | bsd-3-clause | 4,916 |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="lang:clipboard.copy" content="Copy to clipboard">
<meta name="la... | statsmodels/statsmodels.github.io | v0.11.0/generated/statsmodels.tsa.vector_ar.svar_model.SVARResults.summary.html | HTML | bsd-3-clause | 17,978 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="lang:clipboard.copy" conte... | statsmodels/statsmodels.github.io | v0.13.0/generated/statsmodels.discrete.discrete_model.CountResults.llf.html | HTML | bsd-3-clause | 18,257 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<t... | statsmodels/statsmodels.github.io | 0.9.0/generated/statsmodels.genmod.families.family.InverseGaussian.loglike.html | HTML | bsd-3-clause | 8,756 |
<?php
return [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=campus_rec',
'username' => 'root',
'password' => '',
'charset' => 'utf8',
];
| henrybagus/seminar | config/db.php | PHP | bsd-3-clause | 183 |
require_dependency 'spree/calculator'
module Spree
class PaymentCalculator::PerItem < Calculator
preference :amount, :decimal, :default => 0
attr_accessible :preferred_amount
def self.description
I18n.t(:flat_rate_per_item)
end
def compute(object=nil)
return 0 if object.nil?
... | damianogiacomello/spree_payment_calculator | app/model/spree/payment_calculator/per_item.rb | Ruby | bsd-3-clause | 1,325 |
<?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... | karthiksekarnz/educulas | tests/Zend/Dojo/Form/SubFormTest.php | PHP | bsd-3-clause | 4,160 |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="lang:clipboard.copy" content="Copy to clipboard">
<meta name="la... | statsmodels/statsmodels.github.io | v0.11.1/generated/statsmodels.sandbox.regression.gmm.IVGMMResults.summary.html | HTML | bsd-3-clause | 20,784 |
//
// AppDelegate.h
// DemoApp
//
// Created by Stephen Anderson on 8/27/13.
// Copyright (c) 2013 Product & Technology. All rights reserved.
//
#import <UIKit/UIKit.h>
@class ViewController;
@class AdObserver;
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *... | xadrnd/xad-ios-sdk | DemoApp/DemoApp/AppDelegate.h | C | bsd-3-clause | 451 |
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Nov 22 2016 05:57:16).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
@protocol DVTFileSystemRepresentationProviding
- (void)dvt_provideFileSystemRepresentationToBlock:(void (^)(char *, unsigned long long)... | plu/FBSimulatorControl | PrivateHeaders/DVTFoundation/DVTFileSystemRepresentationProviding-Protocol.h | C | bsd-3-clause | 333 |
#flash-messages {position: absolute;}
#flash-messages .success ul, .notice ul, .error ul { list-style: none; margin: 0; padding: 0; }
#flash-messages .success ul li, .notice ul li, .error ul li { float: none; display: block; }
#flash-messages .success ul, .notice ul, .error ul { list-style: none; margin: 0; padding: ... | sgarciab/SAB | media/css/flash-messenger.css | CSS | bsd-3-clause | 837 |
# dpconverge
| whitews/dpconverge | README.md | Markdown | bsd-3-clause | 13 |
import {InputWidget, InputWidgetView} from "./input_widget"
import {input} from "core/dom"
import * as p from "core/properties"
import {bk_input} from "styles/widgets/inputs"
export class TextInputView extends InputWidgetView {
model: TextInput
protected input_el: HTMLInputElement
connect_signals(): void {
... | timsnyder/bokeh | bokehjs/src/lib/models/widgets/text_input.ts | TypeScript | bsd-3-clause | 1,868 |
#
# https://github.com/andreyk0/haskell-on-arm
#
# User: debian
# Passwd: /dev/null
#
FROM scratch
ADD jessie.tgz /
ADD qemu-arm-static /usr/bin/qemu-arm-static
CMD ["/bin/bash"]
| andreyk0/haskell-on-arm | docker/armhf-debian-jessie/Dockerfile | Dockerfile | bsd-3-clause | 180 |
#!/usr/bin/python
# 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.
"""
A chain with four possible intermediates with different notBefore and notAfter
dates, for testing path bulding prioritization.
"""
... | endlessm/chromium-browser | net/data/path_builder_unittest/validity_date_prioritization/generate-certs.py | Python | bsd-3-clause | 1,833 |
<?php
include_once "../../includes/easyparliament/init.php";
if (($date = get_http_var('d')) && preg_match('#^\d\d\d\d-\d\d-\d\d$#', $date)) {
$this_page = 'hansard_date';
$PAGE->set_hansard_headings(array('date'=>$date));
$URL = new URL($this_page);
$db = new ParlDB;
$q = $db->query("SELECT MIN(hdate) AS hdate ... | palfrey/twfy | www/docs/hansard/index.php | PHP | bsd-3-clause | 2,395 |
/*
* Copyright 2019 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/gpu/dawn/GrDawnBuffer.h"
#include "src/gpu/dawn/GrDawnStagingBuffer.h"
#include "src/gpu/dawn/GrDawnGpu.h"
namespace {
wgpu::BufferUsage GrGpuBufferTypeToD... | endlessm/chromium-browser | third_party/skia/src/gpu/dawn/GrDawnBuffer.cpp | C++ | bsd-3-clause | 2,347 |
<?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS B... | notmessenger/ZF-REST-API | library/Doctrine/ORM/Mapping/MappingException.php | PHP | bsd-3-clause | 8,678 |
# Try to find hwloc libraries and headers.
#
# Usage of this module:
#
# find_package(hwloc)
#
# Variables defined by this module:
#
# HWLOC_FOUND System has hwloc libraries and headers
# HWLOC_LIBRARIES The hwloc library
# HWLOC_INCLUDE_DIRS The location of HWLOC headers
find_path(
H... | fuchsto/dyloc | CMakeExt/hwloc.cmake | CMake | bsd-3-clause | 1,128 |
/*
* Copyright (c) 2016, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of c... | rmelick/Argus | ArgusCore/src/main/java/com/salesforce/dva/argus/service/metric/transform/MetricUnionTransform.java | Java | bsd-3-clause | 7,287 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/url_request/url_fetcher_core.h"
#include <stdint.h>
#include "base/bind.h"
#include "base/logging.h"
#include "base/metrics/histogram.... | ltilve/chromium | net/url_request/url_fetcher_core.cc | C++ | bsd-3-clause | 30,529 |
<?php
class SortWeightRegistry {
public static $override_default_sort = true;
public static $relations = array();
public static $default_sorts = array(); // original default_sort
public static $add_weight_columns = array();
public static $direction = 'ASC'; // ASC || DESC
public static $module_pat... | briceburg/silverstripe-sortweight | code/SortWeightRegistry.php | PHP | bsd-3-clause | 2,131 |
// 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.
#ifndef UI_GFX_MOJOM_RRECT_F_MOJOM_TRAITS_H_
#define UI_GFX_MOJOM_RRECT_F_MOJOM_TRAITS_H_
#include "ui/gfx/geometry/mojom/geometry_mojom_traits.h"
#inclu... | endlessm/chromium-browser | ui/gfx/mojom/rrect_f_mojom_traits.h | C | bsd-3-clause | 3,912 |
// Copyright 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 "components/password_manager/core/browser/sql_table_builder.h"
#include <algorithm>
#include <set>
#include <utility>
#include "base/numerics/s... | endlessm/chromium-browser | components/password_manager/core/browser/sql_table_builder.cc | C++ | bsd-3-clause | 21,095 |
# Copyright (c) 2017 David Sorokin <david.sorokin@gmail.com>
#
# Licensed under BSD3. See the LICENSE.txt file in the root of this distribution.
from simulation.aivika.modeler.model import *
from simulation.aivika.modeler.port import *
from simulation.aivika.modeler.stream import *
from simulation.aivika.modeler.data_... | dsorokin/aivika-modeler | simulation/aivika/modeler/stream_random.py | Python | bsd-3-clause | 7,405 |
# apis_v1/documentation_source/voter_star_on_save_doc.py
# Brought to you by We Vote. Be good.
# -*- coding: UTF-8 -*-
def voter_star_on_save_doc_template_values(url_root):
"""
Show documentation about voterStarOnSave
"""
required_query_parameter_list = [
{
'name': 'api_key... | wevote/WebAppPublic | apis_v1/documentation_source/voter_star_on_save_doc.py | Python | bsd-3-clause | 4,125 |
define(['../Property', '../Model', 'dojo/_base/declare', 'json-schema/lib/validate'],
function (Property, Model, declare, jsonSchemaValidator) {
// module:
// dstore/extensions/JsonSchema
// summary:
// This module generates a dstore schema from a JSON Schema to enabled validation of objects
// and property c... | ibm-js/angular-delite-example | bower_components/dstore/extensions/jsonSchema.js | JavaScript | bsd-3-clause | 1,633 |
using System;
using System.Collections.Generic;
using System.Linq;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
namespace SqliteExpressionsTest.iOS
{
public class Application
{
// This is the main entry point of the application.
static void Main(string[] args)
{
// i... | NServiceKit/NServiceKit.OrmLite | src/XamarinTests/SqliteExpressionsTest.iOS/Main.cs | C# | bsd-3-clause | 514 |
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD Lic... | rsmats13/UMBDT | module/Competitions/Module.php | PHP | bsd-3-clause | 1,135 |
#include "stdafx.h"
#include "CGGuildApply.h"
BOOL CGGuildApply::Read( SocketInputStream& iStream )
{
__ENTER_FUNCTION
iStream.Read( (CHAR*)(&m_GuildNameSize), sizeof(BYTE) );
if(m_GuildNameSize<MAX_GUILD_NAME_SIZE)
{
iStream.Read( (CHAR*)(m_GuildName), m_GuildNameSize );
}
iStream.Read(... | viticm/web-pap | server/Common/Packets/CGGuildApply.cpp | C++ | bsd-3-clause | 1,209 |
<?php namespace Laravella\Ravel\Facades;
Class Facade
{
protected static $resolvedInstance;
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
throw new \RuntimeException("Facade does not implement getFacadeAccessor method.");
}
/*... | laravella/ravel | src/Laravella/Ravel/Facades/Facade.php | PHP | bsd-3-clause | 1,183 |
import numpy as np
from nose.tools import (assert_true, assert_false, assert_equal,
assert_almost_equal)
from numpy.testing import (assert_array_equal, assert_array_almost_equal,
assert_)
from dipy.sims.voxel import (_check_directions, SingleTensor, MultiTensor,
... | oesteban/dipy | dipy/sims/tests/test_voxel.py | Python | bsd-3-clause | 12,904 |
import Ember from 'ember';
import ajax from 'ic-ajax';
import config from '../config/environment';
import SlydApi from '../utils/slyd-api';
import Timer from '../utils/timer';
import ApplicationUtils from '../mixins/application-utils';
var UUID = Ember.Object.extend(ApplicationUtils, {});
export function initialize(c... | nju520/portia | slyd/app/initializers/register-api.js | JavaScript | bsd-3-clause | 2,117 |
# License: BSD 3 clause <https://opensource.org/licenses/BSD-3-Clause>
# Copyright (c) 2016, Fabricio Vargas Matos <fabriciovargasmatos@gmail.com>
# All rights reserved.
''''
Tune the 3 most promissing algorithms and compare them
'''
# Load libraries
import os
import time
import pandas
import numpy
import matplotlib.... | FabricioMatos/ifes-dropout-machine-learning | lib/eda4.py | Python | bsd-3-clause | 9,696 |
/* $KAME: fsm.h,v 1.2 2005/05/25 01:49:24 keiichi Exp $ */
/*
* Copyright (C) 2004 WIDE 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:
* 1. Redistributions of source code must re... | MarginC/kame | kame/kame/shisad/fsm.h | C | bsd-3-clause | 4,097 |
import numpy as np
from scipy.linalg import norm
from .base import AppearanceLucasKanade
class SimultaneousForwardAdditive(AppearanceLucasKanade):
@property
def algorithm(self):
return 'Simultaneous-FA'
def _fit(self, lk_fitting, max_iters=20, project=True):
# Initial error > eps
... | jabooth/menpo-archive | menpo/fit/lucaskanade/appearance/simultaneous.py | Python | bsd-3-clause | 8,583 |
package org.cagrid.gme.common.exceptions;
import java.io.IOException;
@SuppressWarnings("serial")
public class SchemaParsingException extends IOException {
public SchemaParsingException() {
super();
}
public SchemaParsingException(String s) {
super(s);
}
}
| NCIP/cagrid | cagrid/Software/core/caGrid/projects/globalModelExchange/src/org/cagrid/gme/common/exceptions/SchemaParsingException.java | Java | bsd-3-clause | 296 |
// 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.
#ifndef UI_EVENTS_ANDROID_EVENT_HANDLER_ANDROID_H_
#define UI_EVENTS_ANDROID_EVENT_HANDLER_ANDROID_H_
#include "ui/events/events_export.h"
namespace ui ... | endlessm/chromium-browser | ui/events/android/event_handler_android.h | C | bsd-3-clause | 1,668 |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkDynamic2DLabelMapper.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This sof... | cjh1/vtkmodular | Rendering/Core/vtkDynamic2DLabelMapper.h | C | bsd-3-clause | 4,627 |
require 'erb'
describe "ERB.new" do
before :all do
@eruby_str = <<'END'
<ul>
<% list = [1,2,3] %>
<% for item in list %>
<% if item %>
<li><%= item %></li>
<% end %>
<% end %>
</ul>
END
@eruby_str2 = <<'END'
<ul>
% list = [1,2,3]
%for item in list
% if item
<li><%= item %>
<% end %>
<% end %>
</ul>
%%%... | rubysl/rubysl-erb | spec/new_spec.rb | Ruby | bsd-3-clause | 3,851 |
/*
* Copyright (C) 2013 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | klim-iv/phantomjs-qt5 | src/webkit/Source/WebCore/html/HTMLMediaSource.cpp | C++ | bsd-3-clause | 1,798 |
/***************************************************************************
* Copyright (C) 2008 by Ralf Kaestner *
* ralf.kaestner@gmail.com *
* *
* This pr... | NIFTi-Fraunhofer/nifti_arm | libcan/src/can/can.h | C | bsd-3-clause | 5,084 |
/* Copyright (c) 2009, University of Oslo, Norway
* 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, thi... | vtkio/vtk | src/main/java/vtk/text/tl/expr/Multiply.java | Java | bsd-3-clause | 1,929 |
// 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.
//
// Definition of ModelTypePayloadMap and various utility functions.
#ifndef SYNC_INTERNAL_PUBLIC_API_BASE_MODEL_TYPE_PAYLOAD_MAP_H_
#define SYNC_IN... | keishi/chromium | sync/internal_api/public/base/model_type_payload_map.h | C | bsd-3-clause | 1,702 |
# 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.
"""Provides fakes for several of Telemetry's internal objects.
These allow code like story_runner and Benchmark to be run and tested
without compiling or st... | benschmaus/catapult | telemetry/telemetry/testing/fakes/__init__.py | Python | bsd-3-clause | 15,827 |
/* Copyright (c) 2015-2020 The Khronos Group Inc.
* Copyright (c) 2015-2020 Valve Corporation
* Copyright (c) 2015-2020 LunarG, Inc.
* Copyright (C) 2015-2020 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You m... | endlessm/chromium-browser | third_party/angle/third_party/vulkan-validation-layers/src/layers/core_validation_types.h | C | bsd-3-clause | 57,785 |
FILE(REMOVE_RECURSE
"CMakeFiles/dynamic_object_test.dir/unittests/dynamic_object_test.cpp.o"
"dynamic_object_test.pdb"
"dynamic_object_test"
)
# Per-language clean rules from dependency scanning.
FOREACH(lang CXX)
INCLUDE(CMakeFiles/dynamic_object_test.dir/cmake_clean_${lang}.cmake OPTIONAL)
ENDFOREACH(lang)
| skaag/chaiscript | obj-x86_64-linux-gnu/CMakeFiles/dynamic_object_test.dir/cmake_clean.cmake | CMake | bsd-3-clause | 319 |
/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | 2374/chris | src/edu/wpi/first/wpilibj/templates/RobotTemplate.java | Java | bsd-3-clause | 3,586 |
/*
* 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/Tools/EPI/Document/Properties/PtyNodeEmitter/PtyPartEffectTranslate.moc.cpp | C++ | bsd-3-clause | 8,876 |
# -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Quality Control based on fuzzy logic.
"""
import logging
import numpy as np
from .core import QCCheckVar
from .gradient import gradient
from .spike import spike
from .woa_normbias import woa_normbias
from cotede.fuzzy im... | castelao/CoTeDe | cotede/qctests/fuzzylogic.py | Python | bsd-3-clause | 2,680 |
# Spree PayPal Express
This is a "re-do" of the official [spree_paypal_express][4] extension. The old extension is extremely hard to maintain and complex.
Behind-the-scenes, this extension uses [PayPal's Merchant Ruby SDK](https://github.com/paypal/merchant-sdk-ruby).
## Installation
1. Add this extension to your G... | Hates/better_spree_paypal_express | README.md | Markdown | bsd-3-clause | 4,986 |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.widget;
import android.content.Context;
import android.util.AttributeSet;
import android.util.SparseArray;
import android.view.Vi... | endlessm/chromium-browser | ui/android/java/src/org/chromium/ui/widget/ViewLookupCachingFrameLayout.java | Java | bsd-3-clause | 4,641 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_91) on Tue Dec 29 12:44:17 AEDT 2015 -->
<title>org.bouncycastle.math.raw (Bouncy Castle Library 1.54 API Specification)</title>
<meta ... | GaloisInc/hacrypto | src/Java/BouncyCastle/BouncyCastle-1.54/lcrypto-jdk15on-154/javadoc/org/bouncycastle/math/raw/package-summary.html | HTML | bsd-3-clause | 7,812 |
from setuptools import setup, find_packages
setup(name='gelato.models',
version='0.1.2',
description='Gelato models',
namespace_packages=['gelato'],
long_description='',
author='',
author_email='',
license='',
url='',
include_package_data=True,
packages=find... | washort/gelato.models | setup.py | Python | bsd-3-clause | 394 |
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances, TypeFamilies #-}
module Rubik.Turn where
import Data.Array
import Rubik.Negate as N
import Rubik.Key
data Turn = NoTurn | Clock | OneEighty | CounterClock
deriving (Eq,Ord,Show,Enum,Ix)
instance Negate Turn where
negate NoTurn = NoTurn
n... | andygill/rubik-solver | src/Rubik/Turn.hs | Haskell | bsd-3-clause | 1,481 |
/* -*- mode: c++; fill-column: 132; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#include "irods_auth_object.hpp"
namespace irods {
auth_object::auth_object(
rError_t* _r_error ) : r_error_( _r_error ) {
// TODO - stub
}
auth_object::~auth_object() {
// TODO - stub
}
... | leesab/irods | iRODS/lib/core/src/irods_auth_object.cpp | C++ | bsd-3-clause | 1,097 |
package operation
import (
"fmt"
"os"
"github.com/runabove/sail/internal"
"github.com/spf13/cobra"
)
var cmdOperationAttach = &cobra.Command{
Use: "attach",
Short: "Attach to an ongoing operation output: sail operation attach [applicationName] <operationId>",
Long: `Attach to an ongoing operation output: sa... | runabove/sail | operation/attach.go | GO | bsd-3-clause | 1,209 |
/*-------------------------------------------------------------------------
* OpenGL Conformance Test Suite
* -----------------------------
*
* Copyright (c) 2016 Google Inc.
* Copyright (c) 2016 The Khronos Group Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fi... | endlessm/chromium-browser | third_party/angle/third_party/VK-GL-CTS/src/external/openglcts/modules/runner/glcTestRunnerMain.cpp | C++ | bsd-3-clause | 4,116 |
/*
* Copyright (c) 2016, Groupon, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditio... | groupon/monsoon | intf/src/test/java/com/groupon/lex/metrics/SimpleMetricTest.java | Java | bsd-3-clause | 4,854 |
import sys
import warnings
try:
import itertools.izip as zip
except ImportError:
pass
from itertools import product
import numpy as np
from .. import util
from ..dimension import dimension_name
from ..element import Element
from ..ndmapping import NdMapping, item_check, sorted_context
from .interface import... | ioam/holoviews | holoviews/core/data/cudf.py | Python | bsd-3-clause | 12,346 |
/*
* Copyright (c) Contributors, http://openviewer.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* 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 mus... | jimmygkr/openviewer | OpenViewer/UI/UIBase.cs | C# | bsd-3-clause | 2,040 |
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD Lic... | thailvn/dev | module/Api/config/api.vuongquocbalo.com.php | PHP | bsd-3-clause | 893 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.