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 |
|---|---|---|---|---|---|
/*
* This node publishes the /monitoring/batteryInfo.
* To do so it parses the messages from the /diagnostics_agg topic. The problem is
* that not all the data in the message are now available. Therefore the
* status will be always set to 'Unknown' and the batteryTimeLeft will be
* always 0.
*
* @author Jan Brab... | NIFTi-Fraunhofer/nifti_uav | mosquito/monitoring/src/batteryInfo2.cpp | C++ | bsd-3-clause | 4,064 |
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "extensions/browser/api/declarative_net_request/rules_monitor_service.h"
#include <algorithm>
#include <utility>
#include "base/bind.h"
#includ... | nwjs/chromium.src | extensions/browser/api/declarative_net_request/rules_monitor_service.cc | C++ | bsd-3-clause | 41,686 |
/*
* Copyright 2012 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkMorphologyImageFilter.h"
#include "SkBitmap.h"
#include "SkColorPriv.h"
#include "SkReadBuffer.h"
#include "SkWriteBuffer.h"
#include "SkRect.h... | CTSRD-SOAAP/chromium-42.0.2311.135 | third_party/skia/src/effects/SkMorphologyImageFilter.cpp | C++ | bsd-3-clause | 30,143 |
// Copyright (c) 2013 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 "xwalk/runtime/browser/xwalk_runner_tizen.h"
#include "base/command_line.h"
#include "content/public/browser/browser_thread.h"
#include "crypto... | crosswalk-project/crosswalk-efl | runtime/browser/xwalk_runner_tizen.cc | C++ | bsd-3-clause | 2,022 |
<?php
/* @var $this \yii\web\View */
/* @var $content string */
use backend\assets\DashboardAsset;
use yii\helpers\Html;
use yii\widgets\Breadcrumbs;
use yii\helpers\Url;
use common\widgets\Alert;
DashboardAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">... | ariandi/ktmavia | backend/views/layouts/blankpage.php | PHP | bsd-3-clause | 737 |
/*
* Copyright (c) 2015 Goldman Sachs.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v. 1.0 which accompany this distribution.
* The Eclipse Public License is available at http://www.ecli... | bhav0904/eclipse-collections | eclipse-collections-api/src/main/java/org/eclipse/collections/api/InternalIterable.java | Java | bsd-3-clause | 4,052 |
// Copyright (c) 2009 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_COCOA_TOOLBAR_VIEW_H_
#define CHROME_BROWSER_COCOA_TOOLBAR_VIEW_H_
#import <Cocoa/Cocoa.h>
#import "chrome/browser/cocoa/backg... | kuiche/chromium | chrome/browser/cocoa/toolbar_view.h | C | bsd-3-clause | 628 |
/*
* Copyright 2020 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GrD3DCaps_DEFINED
#define GrD3DCaps_DEFINED
#include "src/gpu/GrCaps.h"
#include "include/gpu/d3d/GrD3DTypes.h"
#include "src/gpu/d3d/GrD3DAttachment.h"
/**
* Stor... | google/skia | src/gpu/d3d/GrD3DCaps.h | C | bsd-3-clause | 8,196 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE190_Integer_Overflow__char_fscanf_add_22b.c
Label Definition File: CWE190_Integer_Overflow.label.xml
Template File: sources-sinks-22b.tmpl.c
*/
/*
* @description
* CWE: 190 Integer Overflow
* BadSource: fscanf Read data from the console using fscanf()
* Good... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE190_Integer_Overflow/s01/CWE190_Integer_Overflow__char_fscanf_add_22b.c | C | bsd-3-clause | 3,262 |
/**************************************************************************\
* Copyright (c) Kongsberg Oil & Gas Technologies AS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Red... | Alexpux/Coin3D | src/elements/GL/SoGLProjectionMatrixElement.cpp | C++ | bsd-3-clause | 3,145 |
from statsmodels.compat.python import lzip
import numpy as np
from scipy import stats
from statsmodels.distributions import ECDF
from statsmodels.regression.linear_model import OLS
from statsmodels.tools.decorators import cache_readonly
from statsmodels.tools.tools import add_constant
from . import utils
__all__ = ... | statsmodels/statsmodels | statsmodels/graphics/gofplots.py | Python | bsd-3-clause | 35,607 |
import numpy as np
import pandas as pd
from bokeh.plotting import *
# Define some categories
categories = [
'ousia', 'poson', 'poion', 'pros ti', 'pou',
'pote', 'keisthai', 'echein', 'poiein', 'paschein',
]
# Create data
N = 10
data = { cat : np.random.randint(10, 100, size=N) for cat in categories }
# Defin... | jakevdp/bokeh | sphinx/source/tutorial/exercises/style.py | Python | bsd-3-clause | 2,134 |
{% extends "survey/base.html" %}{% load i18n %}
{% block styles %}
<style type="text/css">
input[type="radio"] { vertical-align: top; }
</style>
{% endblock %}
{% block content %}
<h1>{{ title }}</h1>
<form method="post" class="focus-input" action="">
{% trans 'Are you sure you want to delete the followi... | aawsolutions/bslcks | templates/survey/question_confirm_delete.html | HTML | bsd-3-clause | 532 |
"""A module which implements the time-frequency estimation.
Morlet code inspired by Matlab code from Sheraz Khan & Brainstorm & SPM
"""
# Authors : Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Hari Bharadwaj <hari@nmr.mgh.harvard.edu>
# Clement Moutard <clement.moutard@polytechniq... | nicproulx/mne-python | mne/time_frequency/tfr.py | Python | bsd-3-clause | 69,456 |
/*
* Copyright (c) 2014 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributin... | n4t/libvpx | test/lpf_8_test.cc | C++ | bsd-3-clause | 22,233 |
/********************************************************************************/
/* */
/* TPM Key Handling Routines */
/* Written by J. Kravitz */
/* IBM Thomas J. Watson Research Center */
/* $Id: keys.c 4702 2013-01-03 21:26:29Z kgoldman $ */
/* */
/* (c) Co... | louissobel/828-ibmswtpm-fork | libtpm/lib/keys.c | C | bsd-3-clause | 67,340 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE194_Unexpected_Sign_Extension__fscanf_memmove_73b.cpp
Label Definition File: CWE194_Unexpected_Sign_Extension.label.xml
Template File: sources-sink-73b.tmpl.cpp
*/
/*
* @description
* CWE: 194 Unexpected Sign Extension
* BadSource: fscanf Read data from the co... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE194_Unexpected_Sign_Extension/s01/CWE194_Unexpected_Sign_Extension__fscanf_memmove_73b.cpp | C++ | bsd-3-clause | 2,048 |
/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/gpu/GrDirectContext.h"
#include "src/gpu/GrDirectContextPriv.h"
#include "src/gpu/GrProxyProvider.h"
#include "src/gpu/GrShaderCaps.h"
#include "src/gpu/GrTe... | google/skia | tests/EGLImageTest.cpp | C++ | bsd-3-clause | 8,743 |
import React from 'react';
import { createShallow } from '@material-ui/core/test-utils';
import { CustomTableRow } from '../components/common/CustomTableRow';
describe('CustomTextField component', () => {
let shallow;
beforeAll(() => {
shallow = createShallow();
});
const props = {
ti... | venicegeo/eventkit-cloud | eventkit_cloud/ui/static/ui/app/tests/CustomTableRow.spec.tsx | TypeScript | bsd-3-clause | 929 |
<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>clickmodels.inference.ClickModel</title>
<link rel="stylesheet" href="epydoc.css" type="tex... | varepsilon/clickmodels | doc/html/clickmodels.inference.ClickModel-class.html | HTML | bsd-3-clause | 21,724 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE590_Free_Memory_Not_on_Heap__free_int_static_31.c
Label Definition File: CWE590_Free_Memory_Not_on_Heap__free.label.xml
Template File: sources-sink-31.tmpl.c
*/
/*
* @description
* CWE: 590 Free Memory Not on Heap
* BadSource: static Data buffer is declared st... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE590_Free_Memory_Not_on_Heap/s04/CWE590_Free_Memory_Not_on_Heap__free_int_static_31.c | C | bsd-3-clause | 3,007 |
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cms', '0014_auto_20160404_1908'),
]
operations = [
migrations.AlterField(
model_name='cmsplugin',
name='position',
field=models.PositiveSmallIntegerField... | rsalmaso/django-cms | cms/migrations/0015_auto_20160421_0000.py | Python | bsd-3-clause | 391 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
<title>myGalaxyLogon</title>
<!------------------------------------------------------------------------------------------------------>
<!-- ( THIS PAGE CREATED BY RM. IT IS THE NEW LOGON PAGE FOR EIS TO. ) -->
<!-- ( 200... | todor-dk/HTML-Renderer | Source/Testing/HtmlRenderer.ExperimentalApp/Data/Files/nynet/3A7ABD70443A1E1395733EC91E830520.html | HTML | bsd-3-clause | 44,432 |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef URL_URL_UTIL_H_
#define URL_URL_UTIL_H_
#include <string>
#include "base/string16.h"
#include "url/url_canon.h"
#include "url/url_parse.h"
name... | loopCM/chromium | url/url_util.h | C | bsd-3-clause | 9,020 |
// Copyright 2020 Google LLC.
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#include "tools/fiddle/examples.h"
REG_FIDDLE(picture_shader, 256, 256, false, 5) {
static void draw_centered(
const char* s, const SkFont& font, SkColor color, SkPoint xy, SkCanvas... | google/skia | docs/examples/picture_shader.cpp | C++ | bsd-3-clause | 2,493 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
def generate_initial_block_types(apps, schema_editor):
User = apps.get_model("auth", "User")
root = User.objects.filter(username="root").first()
if not root:
root = User.objects.filter(usernam... | peterayeni/dash | dash/dashblocks/migrations/0003_auto_20140804_0236.py | Python | bsd-3-clause | 1,506 |
/*
* Copyright (c) 2014 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributin... | Maria1099/webm.libvpx | vp9/encoder/vp9_pickmode.c | C | bsd-3-clause | 51,902 |
/*
Copyright (c) 2009-2015, Jack Poulson
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
#include "El.hpp"
namespace El {
template<typename F>... | justusc/Elemental | src/lapack_like/props/Inertia.cpp | C++ | bsd-3-clause | 1,490 |
// Copyright 2011 the V8 project authors. 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 ... | PawelMarc/MQDB | v8-read-only/src/ia32/lithium-ia32.h | C | bsd-3-clause | 69,072 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_environment_51b.c
Label Definition File: CWE761_Free_Pointer_Not_at_Start_of_Buffer.label.xml
Template File: source-sinks-51b.tmpl.c
*/
/*
* @description
* CWE: 761 Free Pointer not at Start of Buffer
* BadSourc... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE761_Free_Pointer_Not_at_Start_of_Buffer/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_environment_51b.c | C | bsd-3-clause | 1,821 |
{% extends "base.html" %}
{% block title %}
Registration | {{ block.super }}
{% endblock %}
{% block header %}
<h1>Sign up for a Your World of Text account</h1>
{% endblock %}
{% block content %}
<form action="{% url registration_register %}" method="POST">{% csrf_token %}
<table>
<tr>
<td align="right" valign="... | zischwartz/yourworldoftext | templates/registration/registration_form.html | HTML | bsd-3-clause | 1,341 |
import numpy as np
import tensorflow as tf
import dists
from misc import *
| davmre/bayesflow | elbow/util/__init__.py | Python | bsd-3-clause | 77 |
// Karma configuration
// Generated on Tue Jan 14 2014 14:55:10 GMT+0100 (CET)
module.exports = function(config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: '../',
// frameworks to use
frameworks: ['mocha', 'requirejs'],
// list of files / patterns t... | voy/gooddata-js | tools/karma.conf.js | JavaScript | bsd-3-clause | 2,194 |
/* $NetBSD: mapleio.h,v 1.1 2001/05/26 19:04:39 marcus Exp $ */
/*-
* Copyright (c) 2001 Marcus Comstedt
* 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 co... | MarginC/kame | netbsd/sys/arch/dreamcast/dev/maple/mapleio.h | C | bsd-3-clause | 2,327 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE476_NULL_Pointer_Dereference__binary_if_05.c
Label Definition File: CWE476_NULL_Pointer_Dereference.pointflaw.label.xml
Template File: point-flaw-05.tmpl.c
*/
/*
* @description
* CWE: 476 NULL Pointer Dereference
* Sinks: binary_if
* GoodSink: Do not chec... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE476_NULL_Pointer_Dereference/CWE476_NULL_Pointer_Dereference__binary_if_05.c | C | bsd-3-clause | 3,497 |
import ipcalc
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.core.cache import cache
from django.db.models.signals import post_save, post_delete
class BlockIP(models.Model):
network = models.CharField(_('IP address or mask'), max_length=18)
reason_for_block =... | zhendilin/django-block-ip | block_ip/models.py | Python | bsd-3-clause | 866 |
<?php
/**
* Message translations.
*
* This file is automatically generated by 'yiic message' command.
* It contains the localizable messages extracted from source code.
* You may modify this file by translating the extracted messages.
*
* Each array element represents the translation (value) of a message (key).
... | 1datr/yupe | protected/messages/en/user.php | PHP | bsd-3-clause | 10,591 |
{-# LANGUAGE CPP #-}
module Main where
import Prelude hiding ( catch )
import Test.HUnit
import System.Exit
import System.Process ( system )
import System.IO ( stderr )
import qualified DependencyTest
import qualified MigrationsTest
import qualified FilesystemSerializeTest
import qualified FilesystemParseTest
import ... | nick0x01/dbmigrations | test/TestDriver.hs | Haskell | bsd-3-clause | 3,047 |
from datetime import timedelta
import numpy as np
import pytest
import pandas as pd
from pandas import (
Float64Index, Index, Int64Index, NaT, Timedelta, TimedeltaIndex,
timedelta_range)
import pandas.util.testing as tm
class TestTimedeltaIndex(object):
def test_astype_object(self):
idx = timede... | GuessWhoSamFoo/pandas | pandas/tests/indexes/timedeltas/test_astype.py | Python | bsd-3-clause | 4,066 |
// Copyright (c) 2011 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 "ppapi/cpp/url_loader.h"
#include "ppapi/c/ppb_url_loader.h"
#include "ppapi/c/pp_errors.h"
#include "ppapi/cpp/completion_callback.h"
#incl... | aYukiSekiguchi/ACCESS-Chromium | ppapi/cpp/url_loader.cc | C++ | bsd-3-clause | 3,686 |
--pass out-of-range data of timestampltz/datetimeltz type to the parameter
--2. [error] out-of-range argument: timestampltz type
select date(timestampltz'23:00:00 13/01');
select date(timestampltz'04:14:07 1/19/9999');
select date(timestampltz'23:59:59:999 12/31/10000');
select date(timestampltz'2/31/2022 10:20:3... | CUBRID/cubrid-testcases | sql/_27_banana_qa/issue_5765_timezone_support/_00_dev_cases/_02_operator/_36_date_with_local_tz/cases/date_007.sql | SQL | bsd-3-clause | 951 |
<!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.5.0_22) on Wed Mar 02 16:46:11 EST 2011 -->
<TITLE>
Uses of Class gov.nih.nci.cabig.caaers.rules.deploy.AttributionBusinessRulesTest
</TITLE>
... | CBIIT/caaers | caAERS/software/docs/gov/nih/nci/cabig/caaers/rules/deploy/class-use/AttributionBusinessRulesTest.html | HTML | bsd-3-clause | 6,383 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTi... | cheind/qcv | QCV/Properties/AssemblyInfo.cs | C# | bsd-3-clause | 1,450 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE506_Embedded_Malicious_Code__w32_aes_encrypted_payload_08.c
Label Definition File: CWE506_Embedded_Malicious_Code__w32.label.xml
Template File: point-flaw-08.tmpl.c
*/
/*
* @description
* CWE: 506 Embedded Malicious Code
* Sinks: aes_encrypted_payload
* G... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE506_Embedded_Malicious_Code/CWE506_Embedded_Malicious_Code__w32_aes_encrypted_payload_08.c | C | bsd-3-clause | 5,089 |
% \section{Evaluation: Recasting Type Errors as Runtime Errors}
\section{Evaluation}
\label{sec:evaluation}
We have implemented a prototype of our search procedure and trace
visualization for a purely functional subset of \ocaml\ --- with
polymorphic types and records, but no modules, objects, or polymorphic
variants ... | ucsd-progsys/nanomaly | paper/jfp-submission/evaluation.tex | TeX | bsd-3-clause | 33,563 |
package org.hisp.dhis.common;
/*
* Copyright (c) 2004-2018, University of Oslo
* 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 copyrig... | msf-oca-his/dhis-core | dhis-2/dhis-api/src/main/java/org/hisp/dhis/common/DhisApiVersion.java | Java | bsd-3-clause | 4,463 |
/**
* Copyright (c) 2015-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.
*
* @flow
* ... | clozr/react-native | packager/src/node-haste/DependencyGraph/ResolutionRequest.js | JavaScript | bsd-3-clause | 24,449 |
'''
Created on Oct 21, 2011
@author: bolme
'''
import time
from collections import defaultdict
import cProfile
import traceback
import shelve
class EmptyData(object):
def __str__(self):
return "<MissingData>"
class DefaultData(object):
def __init__(self,default):
self.default = default
... | mikeseven/pyvision | src/pyvision/beta/vtm.py | Python | bsd-3-clause | 27,866 |
#if !defined(__CINT__) || defined(__MAKECINT__)
#include "TString.h"
#include "TObjArray.h"
#include "AliLog.h"
#include "AliAnalysisManager.h"
#include "AliAnalysisDataContainer.h"
#endif
AliAnalysisTaskCMWESE* AddTaskCMWESE(
int debug=0, // debug level controls amount of output statements... | nschmidtALICE/AliPhysics | PWGCF/FLOW/macros/AddTaskCMWESE.C | C++ | bsd-3-clause | 11,648 |
// 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 COMPONENTS_TEST_RUNNER_MOCK_WEBRTC_PEER_CONNECTION_HANDLER_H_
#define COMPONENTS_TEST_RUNNER_MOCK_WEBRTC_PEER_CONNECTION_HANDLER_H_
#include <map... | Workday/OpenFrame | components/test_runner/mock_webrtc_peer_connection_handler.h | C | bsd-3-clause | 4,019 |
// 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 DEVICE_SERIAL_SERIAL_SERVICE_IMPL_H_
#define DEVICE_SERIAL_SERIAL_SERVICE_IMPL_H_
#include <memory>
#include "base/macros.h"
#include "base/sing... | danakj/chromium | device/serial/serial_service_impl.h | C | bsd-3-clause | 2,535 |
<?php
$this->breadcrumbs=array(
'Logins'=>array('index'),
$model->id=>array('view','id'=>$model->id),
'Update',
);
$menu=array();
require(dirname(__FILE__).DIRECTORY_SEPARATOR.'_menu.php');
$this->menu=array(
array('label'=>'Login','url'=>array('index'),'icon'=>'fa fa-list-alt', 'items' => $menu)
);
?>
<?php $bo... | mdcconcepts/opinion_desk_CAP | protected/views/login/update.php | PHP | bsd-3-clause | 1,825 |
package org.discotools.gwt.leaflet.client.controls.scale;
import org.discotools.gwt.leaflet.client.controls.ControlImpl;
import org.discotools.gwt.leaflet.client.jsobject.JSObject;
/**
* {@link ScaleImpl} implementation.
*
* @author Lionel Leiva-Marcon
*
*/
public class ScaleImpl extends ControlImpl {
public ... | haleystorm/gwt-leaflet | src/gwtl-core/src/main/java/org/discotools/gwt/leaflet/client/controls/scale/ScaleImpl.java | Java | bsd-3-clause | 428 |
"""
An implementation of OGC WFS 2.0.0 over the top of Django. This module requires that OGR be installed and that you use
either the PostGIS or Spatialite backends to GeoDjango for the layers you are retrieving. The module provides a
generic view, :py:class:WFS that provides standard WFS requests and responses and :p... | hydroshare/hydroshare_temp | ga_ows/views/wfs.py | Python | bsd-3-clause | 31,334 |
<?php
Yii::setAlias('@tests', dirname(__DIR__) . '/tests');
$params = require(__DIR__ . '/params.php');
$db = require(__DIR__ . '/db.php');
return [
'id' => 'basic-console',
'basePath' => dirname(__DIR__),
'preload' => ['log'],
'controllerNamespace' => 'app\commands',
'extensions' => require(__DI... | veontomo/teresa | config/console.php | PHP | bsd-3-clause | 738 |
// 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.
#ifndef THIRD_PARTY_BLINK_PUBLIC_COMMON_USER_AGENT_USER_AGENT_MOJOM_TRAITS_H_
#define THIRD_PARTY_BLINK_PUBLIC_COMMON_USER_AGENT_USER_AGENT_MOJOM_TRAITS_H... | scheib/chromium | third_party/blink/public/common/user_agent/user_agent_mojom_traits.h | C | bsd-3-clause | 3,234 |
/*
* TI Voxel Lib component.
*
* Copyright (c) 2014 Texas Instruments Inc.
*/
#include "Convolve2D.h"
#include "Logger.h"
namespace Voxel
{
Convolve2D::Convolve2D(const Vector<float> &coefficients, SizeType rows, SizeType columns):_rows(rows), _columns(columns)
{
if(coefficients.size() != _rows*_columns)
{
... | Metrilus/voxelsdk | Voxel/Convolve2D.cpp | C++ | bsd-3-clause | 1,888 |
using Microsoft.AspNetCore.Html;
using Microsoft.AspNetCore.Mvc.Localization;
using Microsoft.AspNetCore.Mvc.Rendering;
namespace OrchardCore.DisplayManagement.Notify
{
public enum NotifyType
{
Success,
Information,
Warning,
Error
}
public class NotifyEntry
{
... | lukaskabrt/Orchard2 | src/OrchardCore/OrchardCore.DisplayManagement/Notify/NotifyEntry.cs | C# | bsd-3-clause | 416 |
/*
BLIS
An object-based framework for developing high-performance BLAS-like
libraries.
Copyright (C) 2014, The University of Texas
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
- Redistributi... | tkelman/blis | frame/3/trmm/other/bli_trmm_lu_blk_var1.c | C | bsd-3-clause | 4,421 |
// 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/extensions/installed_loader.h"
#include "base/file_path.h"
#include "base/metrics/histogram.h"
#include "base/stringprintf.h... | leiferikb/bitpop-private | chrome/browser/extensions/installed_loader.cc | C++ | bsd-3-clause | 13,951 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE23_Relative_Path_Traversal__wchar_t_environment_ofstream_16.cpp
Label Definition File: CWE23_Relative_Path_Traversal.label.xml
Template File: sources-sink-16.tmpl.cpp
*/
/*
* @description
* CWE: 23 Relative Path Traversal
* BadSource: environment Read input fr... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE23_Relative_Path_Traversal/s04/CWE23_Relative_Path_Traversal__wchar_t_environment_ofstream_16.cpp | C++ | bsd-3-clause | 3,280 |
/*
* Copyright (C) 2011 Google Inc. All Rights Reserved.
* Copyright (C) 2012 Apple 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 ... | scheib/chromium | third_party/blink/renderer/core/dom/tree_scope.h | C | bsd-3-clause | 7,752 |
// 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/common/variations/experiment_labels.h"
#include <set>
#include <string>
#include <vector>
#include "base/basictypes.h"
#include "base/m... | Just-D/chromium-1 | chrome/common/variations/experiment_labels_unittest.cc | C++ | bsd-3-clause | 7,656 |
# -*- coding: utf-8 -*-
import morepath
from morepath.request import Response
from morepath.authentication import Identity, NO_IDENTITY
from .fixtures import identity_policy
import base64
import json
from webtest import TestApp as Client
try:
from cookielib import CookieJar
except ImportError:
from http.cookiej... | taschini/morepath | morepath/tests/test_security.py | Python | bsd-3-clause | 16,352 |
<P>hello</P>
| gigamonkey/monkeylib-html | html-testfiles/test000.html | HTML | bsd-3-clause | 13 |
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "xfa/fxfa/parser/xfa_document_datamerger_imp.h"
#include "xfa/fxfa/p... | endlessm/chromium-browser | third_party/pdfium/xfa/fxfa/parser/xfa_document_datamerger_imp.cpp | C++ | bsd-3-clause | 3,918 |
#!/usr/bin/env python3
# flake8: noqa
import io
import sys
if len (sys.argv) != 5:
print ("""usage: ./gen-use-table.py IndicSyllabicCategory.txt IndicPositionalCategory.txt UnicodeData.txt Blocks.txt
Input file, as of Unicode 12:
* https://unicode.org/Public/UCD/latest/ucd/IndicSyllabicCategory.txt
* https://unicod... | endlessm/chromium-browser | third_party/harfbuzz-ng/src/src/gen-use-table.py | Python | bsd-3-clause | 15,523 |
package org.buildmlearn.toolkit.templates;
import android.app.Activity;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.support.v7.app.AlertDialog;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.BaseAdapter;
impo... | BuildmLearn/BuildmLearn-Toolkit-Android | source-code/app/src/main/java/org/buildmlearn/toolkit/templates/LearnSpellingTemplate.java | Java | bsd-3-clause | 9,152 |
import re
from decimal import Decimal
from django.conf import settings
from django.contrib.gis.db.backends.base import BaseSpatialOperations
from django.contrib.gis.db.backends.util import SpatialOperation, SpatialFunction
from django.contrib.gis.db.backends.postgis.adapter import PostGISAdapter
from django.contrib.gi... | postrational/django | django/contrib/gis/db/backends/postgis/operations.py | Python | bsd-3-clause | 25,538 |
/**
* Copyright (c) 2012, Regents of the University of Colorado
* All rights reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your ... | ClearTK/cleartk | cleartk-ml-weka/src/main/java/org/cleartk/ml/weka/WekaStringOutcomeClassifier.java | Java | bsd-3-clause | 2,118 |
package db
import (
"hg/messages"
"fmt"
"gopkg.in/mgo.v2"
)
const (
mongoURL = "127.0.0.1:27017"
)
func persist(operation string,historyEntry messages.HistoryMessage) {
fmt.Println("Do db operation")
session, err := mgo.Dial(mongoURL)
if err != nil {
panic(err)
}
defer session.Close()
historyCollection ... | MikeroSkywalker/auditgo | db/db.go | GO | bsd-3-clause | 875 |
#!/bin/bash
$PYTHON setup.py install --prefix=$PREFIX
# Add more build steps here, if they are necessary.
# See
# http://docs.continuum.io/conda/build.html
# for a list of environment variables that are set during the build process.
| hajs/pylodger | recipes/misc/python-inotify/build.sh | Shell | bsd-3-clause | 236 |
# -*- coding: utf-8 -*-
import os
import unittest
from manolo_scraper.spiders.mincu import MincuSpider
from utils import fake_response_from_file
class TestMincuSpider(unittest.TestCase):
def setUp(self):
self.spider = MincuSpider()
def test_parse_item(self):
filename = os.path.join('data/mi... | aniversarioperu/django-manolo | scrapers/tests/test_mincu_spider.py | Python | bsd-3-clause | 1,379 |
from flask import Flask
from flask.ext.restful import reqparse, abort, Api, Resource
app = Flask(__name__)
api = Api(app)
TODOS = {
'todo1': {'task': 'build an API'},
'todo2': {'task': '?????'},
'todo3': {'task': 'profit!'},
}
def abort_if_todo_doesnt_exist(todo_id):
if todo_id not in TODOS:
... | CanalTP/flask-restful | examples/todo.py | Python | bsd-3-clause | 1,446 |
A simple service that can be used for testing per-user services.
| endlessm/chromium-browser | services/test/user_id/README.md | Markdown | bsd-3-clause | 65 |
from media_tree.contrib.cms_plugins.media_tree_image.models import MediaTreeImage
from media_tree.contrib.cms_plugins.helpers import PluginLink
from media_tree.models import FileNode
from media_tree.contrib.views.detail.image import ImageNodeDetailView
from django.utils.translation import ugettext_lazy as _
from cms.ut... | bittner/django-media-tree | media_tree/contrib/cms_plugins/media_tree_image/views.py | Python | bsd-3-clause | 1,854 |
/*
* ====================================================================
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this... | Phoenix1708/t2-server-jar-android-0.1 | t2-server-jar-android-0.1-hyde/src/main/java/local/org/apache/http/impl/auth/AuthSchemeBase.java | Java | bsd-3-clause | 5,874 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--Converted with LaTeX2HTML 2002-1 (1.68)
original version by: Nikos Drakos, CBLU, University of Leeds
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
Jens Lippmann, Marek Rouchal, Martin Wilck a... | parhansson/KMotionX | KMotion/Help/GCodeScreen/EMC_Handbook/node56.html | HTML | bsd-3-clause | 2,491 |
// Copyright (c) 2006-2008 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 "printing/print_settings.h"
#include "base/atomic_sequence_num.h"
#include "base/logging.h"
#include "printing/units.h"
namespace prin... | kuiche/chromium | printing/print_settings.cc | C++ | bsd-3-clause | 3,963 |
#!/usr/bin/python
# 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.
"""Run all python tests in this directory."""
import sys
import unittest
MODULES = [
'directory_storage_test',
'gsd_stor... | endlessm/chromium-browser | native_client/pynacl/run_pynacl_tests.py | Python | bsd-3-clause | 757 |
// Copyright (c) MOSA Project. Licensed under the New BSD License.
using Mosa.DeviceSystem;
namespace Mosa.DeviceDriver.ISA
{
/// <summary>
/// VGA Text Device Driver
/// </summary>
[ISADeviceDriver(AutoLoad = true, BasePort = 0x03B0, PortRange = 0x1F, BaseAddress = 0xB0000, AddressRange = 0x10000, Platforms = P... | Kintaro/MOSA-Project | Source/Mosa.DeviceDriver/ISA/VGAText.cs | C# | bsd-3-clause | 10,270 |
#pragma once
//=====================================================================//
/*! @file
@brief ダイアログ表示 @n
・単独で利用できるシンプルなダイアログクラス。@n
・文字列を表示して、タッチを検出して閉じる事しか出来ない。
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2019, 2020 Kunihito Hiramatsu @n
Released under the MIT license @n
http... | hirakuni45/RX | graphics/simple_dialog.hpp | C++ | bsd-3-clause | 4,490 |
#include <ompl/geometric/PathGeometric.h>
#include "aikido/planner/ompl/BackwardCompatibility.hpp"
#include "aikido/planner/ompl/GeometricStateSpace.hpp"
#include "aikido/planner/ompl/GoalRegion.hpp"
#include "aikido/planner/ompl/StateValidityChecker.hpp"
#include "aikido/trajectory/Interpolated.hpp"
namespace aikido... | personalrobotics/aikido | include/aikido/planner/ompl/detail/Planner-impl.hpp | C++ | bsd-3-clause | 4,104 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta ht... | statsmodels/statsmodels.github.io | v0.13.2/dev/generated/statsmodels.tools.sm_exceptions.OutputWarning.html | HTML | bsd-3-clause | 18,226 |
<?php return [
'DomainRedirector' => [
'domainRedirects' => [
// toDomain => fromUrl
// 'hi.domain.com' => 'https://s3-us-west-2.amazonaws.com/hi',
]
],
];
| innaDa/RcmPlugins | DomainRedirector/config/module.config.php | PHP | bsd-3-clause | 202 |
/* ///////////////////////////////////////////////////////////////////////////
// Name: src/gtk/assertdlg_gtk.cpp
// Purpose: GtkAssertDialog
// Author: Francesco Montorsi
// Copyright: (c) 2006 Francesco Montorsi
// Licence: wxWindows licence
//////////////////////////////////////////////////////... | ric2b/Vivaldi-browser | update_notifier/thirdparty/wxWidgets/src/gtk/assertdlg_gtk.cpp | C++ | bsd-3-clause | 44,230 |
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:py="http://genshi.edgewall.org/"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:i18n="http://genshi.edgewall.org/i18n"
i18n:do... | marina-lab/docker-trac | plugins/accountmanagerplugin/build/lib/acct_mgr/templates/login.html | HTML | bsd-3-clause | 2,949 |
#!/usr/bin/env python
import logging
# CUSTOM LOG LEVELS
LOG_LEVEL_TOOL = 25
# Terminal colors
TERMINAL_COLOR_BLUE = '\033[94m'
TERMINAL_COLOR_GREEN = '\033[92m'
TERMINAL_COLOR_YELLOW = '\033[93m'
TERMINAL_COLOR_RED = '\033[91m'
TERMINAL_COLOR_END = '\033[0m'
class ConsoleFormatter(logging.Formatter):
"""
C... | DarKnight24/owtf | framework/lib/formatters.py | Python | bsd-3-clause | 1,857 |
# -*- coding: utf-8 -*-
"""
website.api
~~~~~~~~~~~
website api blueprint.
"""
| alibaba/FlexGW | website/api/__init__.py | Python | bsd-3-clause | 92 |
<html devsite="">
<head>
<title>gcloud version</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="project_path" value="/sdk/_project.yaml">
<meta name="book_path" value="/sdk/_book.yaml">
<!--
THIS DOC IS GENERATED. DO NOT EDIT.
-->
<style>
dd { margin-bottom: 1ex... | ychen820/microblog | y/google-cloud-sdk/lib/googlecloudsdk/gcloud/reference/gcloud_version.html | HTML | bsd-3-clause | 2,865 |
from cmsplugin_cascade.segmentation.mixins import EmulateUserModelMixin, EmulateUserAdminMixin
from shop.admin.customer import CustomerProxy
class EmulateCustomerModelMixin(EmulateUserModelMixin):
UserModel = CustomerProxy
class EmulateCustomerAdminMixin(EmulateUserAdminMixin):
UserModel = CustomerProxy
| divio/django-shop | shop/cascade/segmentation.py | Python | bsd-3-clause | 317 |
<?php if (!defined('IDIR')) { die; }
/*======================================================================*\
|| ####################################################################
|| # vBulletin Impex
|| # ----------------------------------------------------------------
|| # All PHP code in this file is Copyright 2... | vBZachery/vbimpex | systems/openBB/001.php | PHP | bsd-3-clause | 5,420 |
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a co... | 5452/durex | includes/src/Mage_ImportExport_Block_Adminhtml_Import_Frame_Result.php | PHP | bsd-3-clause | 6,325 |
package org.jbehave.core.embedder;
import static java.util.Arrays.asList;
import static org.hamcrest.CoreMatchers.instanceOf;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.is;
imp... | codehaus/jbehave-core | jbehave-core/src/test/java/org/jbehave/core/embedder/EmbedderBehaviour.java | Java | bsd-3-clause | 62,023 |
/*
SDL_mixer: An audio mixer library based on the SDL library
Copyright (C) 1997-2012 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permissio... | vrum/ASCIIWar | dep/SDL_mixer-1.2.12/SDL_mixer.h | C | bsd-3-clause | 27,767 |
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a co... | 5452/durex | includes/src/Mage_Rss_Block_Catalog_Category.php | PHP | bsd-3-clause | 5,378 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>istreambuf::headers</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
<link rel="start" href="../../../../index.html" title="Urdl... | mapbox/jit_datasource | urdl/doc/html/urdl/reference/core/istreambuf/headers.html | HTML | isc | 3,068 |
.wrapper #redeemcode .generate-code-panel {
background: #f4f4f4;
padding: 14px;
}
.wrapper #redeemcode .generate-code-panel > div {
display: inline-block;
font-size: 14px;
margin-right: 30px;
}
.wrapper #redeemcode .generate-code-panel > div select {
width: 50px;
background: #fff;
}
.wrapper #redeemcode .... | JavieChan/nanshaCity | yejin/static/css/redeemcode.css | CSS | isc | 1,030 |
/***************************************************************************
* Copyright (C) 2006 by Dominik Seichter *
* domseichter@web.de *
* *
* This pr... | satya-das/cppparser | test/e2e/test_input/podofo/doc/PdfPainterMM.h | C | mit | 11,227 |
declare module "svgpath" {
interface SvgPath {
(path: string): SvgPath;
new (path: string): SvgPath;
abs(): SvgPath;
scale(sx: number, sy?: number): SvgPath;
translate(x: number, y?: number): SvgPath;
rotate(angle: number, rx?: number, ry?: number): SvgPath;
skewX(degrees: number): SvgPath... | delicatesther/wereldkaartjes | node_modules/svgpath/index.d.ts | TypeScript | mit | 771 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.