code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 3 942 | language stringclasses 30
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
{% extends "base.html" %}
{% load static %}
{% block content %}
<p><a class="btn btn-default" href="{% url 'email2sms_provider_list' %}">Provider Listing</a></p>
<table class="table">
<tr><td>name</td><td>{{ object.name }}</td></tr>
<tr><td>slug</td><td>{{ object.slug }}</td></tr>
<tr><td>created</td><td>{{ object.crea... | mainecivichackday/wheresyourtrash | wheresyourtrash/apps/email2sms/templates/email2sms/provider_detail.html | HTML | bsd-3-clause | 565 |
<?php
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \app\models\SignupForm */
$this->title = Yii::t('app','Signup');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="site-signup">
<h1><?= Html::en... | thuctoa/ungdungtoan | views/site/signup.php | PHP | bsd-3-clause | 1,196 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE606_Unchecked_Loop_Condition__char_console_09.c
Label Definition File: CWE606_Unchecked_Loop_Condition.label.xml
Template File: sources-sinks-09.tmpl.c
*/
/*
* @description
* CWE: 606 Unchecked Input For Loop Condition
* BadSource: console Read input from the ... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE606_Unchecked_Loop_Condition/CWE606_Unchecked_Loop_Condition__char_console_09.c | C | bsd-3-clause | 9,499 |
///
/// \file InvMassFit.C
/// \ingroup CaloTrackCorrMacrosPlotting
/// \brief Fit invariant mass distributions
///
/// Macro using as input the 2D histograms mass vs pT of AliAnaPi0
/// For a given set of pT bins invariant mass plots are fitted and mass vs pT
/// and width vs pT and neutral meson spectra plots are ob... | dstocco/AliPhysics | PWGGA/CaloTrackCorrelations/macros/plotting/invmass/InvMassFit.C | C++ | bsd-3-clause | 85,625 |
<?php
use vova07\themes\admin\widgets\Box;
use modules\directory\Module;
$this->title = Module::t('shop', 'BACKEND_STORE_UPDATE_TITLE');
$this->params['subtitle'] = Module::t('shop', 'BACKEND_STORE_UPDATE_SUBTITLE');
$this->params['breadcrumbs'] = [
[
'label' => $this->title,
'url' => ['... | d-bo/unitaly-dev | modules/directory/views/backend/store/update.php | PHP | bsd-3-clause | 1,520 |
var archiver = require('archiver'),
async = require('async'),
escape = require('handlebars').Utils.escapeExpression,
fs = require('fs'),
glob = require('glob'),
path = require('path'),
yui = require('yui');
var config = require('../config'),
hbs = require('./hbs')... | igorstefurak/pushcourse | lib/layouts.js | JavaScript | bsd-3-clause | 7,374 |
/*
* Copyright (C) 2011 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condition... | crosswalk-project/blink-crosswalk | Source/platform/graphics/ImageLayerChromiumTest.cpp | C++ | bsd-3-clause | 4,769 |
// 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.
#ifndef UI_GFX_NATIVE_THEME_CHROMEOS_H_
#define UI_GFX_NATIVE_THEME_CHROMEOS_H_
#include <map>
#include "base/compiler_specific.h"
#include "ui/gfx/n... | aYukiSekiguchi/ACCESS-Chromium | ui/gfx/native_theme_chromeos.h | C | bsd-3-clause | 3,463 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/singleton_tabs.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/br... | zcbenz/cefode-chromium | chrome/browser/ui/singleton_tabs.cc | C++ | bsd-3-clause | 4,284 |
//
// Triple Play - utilities for use in PlayN-based games
// Copyright (c) 2011-2014, Three Rings Design, Inc. - All rights reserved.
// http://github.com/threerings/tripleplay/blob/master/LICENSE
package tripleplay.platform;
import cli.MonoTouch.CoreAnimation.CAShapeLayer;
import cli.MonoTouch.CoreGraphics.CGPath;
... | tomfisher/tripleplay | ios/src/main/java/tripleplay/platform/IOSUIOverlay.java | Java | bsd-3-clause | 2,336 |
package io2
import (
"bytes"
"compress/zlib"
"errors"
"io"
"strings"
. "gopkg.in/check.v1"
)
type ReaderToWriterAdapterSuite struct {
testData string
}
func (rwself *ReaderToWriterAdapterSuite) SetUpTest(c *C) {
localWords := []string{}
for skip := 1; skip < len(words); skip += 6 {
lskip := skip
for i ... | dropbox/godropbox | io2/reader_to_writer_adapter_test.go | GO | bsd-3-clause | 6,281 |
import inspect
import cytoolz
import toolz
from types import BuiltinFunctionType
from cytoolz import curry, identity, keyfilter, valfilter, merge_with
@curry
def isfrommod(modname, func):
mod = getattr(func, '__module__', '') or ''
return modname in mod
def test_class_sigs():
""" Test that all ``cdef c... | ljwolf/cytoolz | cytoolz/tests/test_embedded_sigs.py | Python | bsd-3-clause | 2,950 |
<?php
namespace backend\modules\admin\controllers;
use yii\web\Controller;
/**
* Default controller for the `admin` module
*/
class DefaultController extends Controller {
/**
* Renders the index view for the module
* @return string
*/
public function actionIndex() {
... | jithinazryah/emperror | backend/modules/admin/controllers/DefaultController.php | PHP | bsd-3-clause | 390 |
/*L
* Copyright RTI International
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/webgenome/LICENSE.txt for details.
*/
package org.rti.webgenome.client;
/**
* Generates <code>ExperimentDTO</code> objects for testing.
* @author dhall
*
*/
public class ExperimentD... | NCIP/webgenome | tags/WEBGENOME_R3.2_6MAR2009_BUILD1/java/core/src/org/rti/webgenome/client/ExperimentDTOGenerator.java | Java | bsd-3-clause | 1,419 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 20... | dushmis/Oracle-Cloud | PaaS_SaaS_Accelerator_RESTFulFacade/XJC_Beans/src/com/oracle/xmlns/apps/cdm/foundation/parties/locationservice/applicationmodule/types/UpdateLocation.java | Java | bsd-3-clause | 2,082 |
"""
==================================================
Explicit feature map approximation for RBF kernels
==================================================
.. currentmodule:: sklearn.kernel_approximation
An example shows how to use :class:`RBFSampler` to appoximate the feature map
of an RBF kernel for classification... | sgenoud/scikit-learn | examples/plot_kernel_approximation.py | Python | bsd-3-clause | 6,494 |
"""django-cms-redirects"""
VERSION = (1, 0, 6)
__version__ = "1.0.6"
| vovanbo/djangocms-redirects | cms_redirects/__init__.py | Python | bsd-3-clause | 69 |
// 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/task_manager/guest_information.h"
#include "base/strings/string16.h"
#include "chrome/browser/chrome_notification_types.h"
#incl... | 7kbird/chrome | chrome/browser/task_manager/guest_information.cc | C++ | bsd-3-clause | 4,136 |
#!/usr/bin/env python
import gtk
import Editor
def main(filenames=[]):
"""
start the editor, with a new empty document
or load all *filenames* as tabs
returns the tab object
"""
Editor.register_stock_icons()
editor = Editor.EditorWindow()
tabs = map(editor.load_document, filenames)
... | carloscanova/python-odml | odml/gui/__main__.py | Python | bsd-3-clause | 845 |
..\..\..\SharedLibs\Google\protoc ProtocolDef.proto -oProtocolDef.proto.bin
..\..\..\SharedLibs\Google\protogen ProtocolDef.proto.bin | vebin/rhino-dht | Rhino.DistributedHashTable/Protocol/regen.cmd | Batchfile | bsd-3-clause | 134 |
// 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 COMPONENTS_UPLOAD_LIST_UPLOAD_LIST_H_
#define COMPONENTS_UPLOAD_LIST_UPLOAD_LIST_H_
#include <stddef.h>
#include <string>
#include <vector>
#in... | danakj/chromium | components/upload_list/upload_list.h | C | bsd-3-clause | 4,200 |
#include "density.h"
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cstddef>
#include <cstdio>
#include <iostream>
#include "blas_interface.h"
#include "compress.h"
void distribute_matrix(const int mat_dim,
const int block_length,
const bool use_gradi... | bast/xcint | src/density/density.cpp | C++ | bsd-3-clause | 42,641 |
<!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="Content-Type" content="text/html; charset=utf-8" />
<title>Local-Find Performance — Banyan 0.1.5 docum... | pyannote/pyannote-banyan | docs/find_local_performance.html | HTML | bsd-3-clause | 8,202 |
// 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 "flutter/lib/ui/window/window.h"
#include "flutter/lib/ui/compositing/scene.h"
#include "flutter/lib/ui/ui_dart_state.h"
#include "flutter/lib/u... | krisgiesing/sky_engine | lib/ui/window/window.cc | C++ | bsd-3-clause | 10,895 |
<?php
/*
CalendarServer example
This server features CalDAV support
*/
// settings
date_default_timezone_set('Canada/Eastern');
// If you want to run the SabreDAV server in a custom location (using mod_rewrite for instance)
// You can override the baseUri here.
// $baseUri = '/';
/* Database */
$pdo = new PDO('s... | DeepDiver1975/sabre-dav | examples/calendarserver.php | PHP | bsd-3-clause | 1,682 |
<?php
/**
* Logo helper
*/
class Zend_View_Helper_Logo extends Zend_View_Helper_Abstract {
public $view;
public function setView(Zend_View_Interface $view) {
$this->view = $view;
}
public function logo($data = array()) {
$isp = Shineisp_Registry::get('ISP');
if (! empty ( $isp->logo )) {
if (file_exi... | tanerkuc/shineisp | application/modules/default/views/helpers/Logo.php | PHP | bsd-3-clause | 588 |
var searchData=
[
['native_5fhandle_5ftype_928',['native_handle_type',['../classpmem_1_1obj_1_1condition__variable.html#a5d6f2b49f88a03db9e9f3a2b49f6bf6d',1,'pmem::obj::condition_variable::native_handle_type()'],['../classpmem_1_1obj_1_1mutex.html#a746ecab28758da55f241b0f7b76ced36',1,'pmem::obj::mutex::native_handle_... | pbalcer/pbalcer.github.io | content/libpmemobj-cpp/master/doxygen/search/typedefs_7.js | JavaScript | bsd-3-clause | 592 |
module Language.Haskell.GhcMod.PkgDoc (packageDoc) where
import Language.Haskell.GhcMod.Types
import Language.Haskell.GhcMod.GhcPkg
import Control.Applicative ((<$>))
import System.Process (readProcess)
-- | Obtaining the package name and the doc path of a module.
packageDoc :: Options
-> Cradle
... | carlohamalainen/ghc-mod | Language/Haskell/GhcMod/PkgDoc.hs | Haskell | bsd-3-clause | 1,012 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE195_Signed_to_Unsigned_Conversion_Error__negative_memmove_21.c
Label Definition File: CWE195_Signed_to_Unsigned_Conversion_Error.label.xml
Template File: sources-sink-21.tmpl.c
*/
/*
* @description
* CWE: 195 Signed to Unsigned Conversion Error
* BadSource: ne... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE195_Signed_to_Unsigned_Conversion_Error/s02/CWE195_Signed_to_Unsigned_Conversion_Error__negative_memmove_21.c | C | bsd-3-clause | 4,813 |
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
namespace Centro\Model\Data;
use Zend\InputFilter\InputFilter;
use Zend\InputFilter\InputFilterAwareInterface;
use Zend\Input... | tavoot/cysdusac | module/Centro/src/Centro/Model/Data/Item.php | PHP | bsd-3-clause | 5,949 |
/*------------------------------------------------------------------------------
*
* Copyright (c) 2011, EURid. All rights reserved.
* The YADIFA TM software product is provided under the BSD 3-clause license:
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provide... | koodaamo/yadifa | lib/dnscore/include/dnscore/clone_input_output_stream.h | C | bsd-3-clause | 2,669 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE806_char_snprintf_53d.cpp
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE806.label.xml
Template File: sources-sink-53d.tmpl.cpp
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: In... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s04/CWE122_Heap_Based_Buffer_Overflow__cpp_CWE806_char_snprintf_53d.cpp | C++ | bsd-3-clause | 1,666 |
# Merge stimuli information from spike2 mat file into Kwik file
import h5py as h5
import tables
import os
import numpy as np
import argparse
import glob
try: import simplejson as json
except ImportError: import json
from klusta_pipeline.dataio import load_recordings, save_info, load_digmark, load_stim_info
from klu... | gentnerlab/klusta-pipeline | klusta_pipeline/merge_stim_kwik.py | Python | bsd-3-clause | 7,008 |
#include "studiopaletteviewer.h"
#include "palettesscanpopup.h"
#include "toonz/studiopalettecmd.h"
#include "toonzqt/menubarcommand.h"
#include "floatingpanelcommand.h"
#include "toonzqt/gutil.h"
#include "toonz/tpalettehandle.h"
#include "toonz/txshlevelhandle.h"
#include "toonzqt/paletteviewer.h"
#include "toonzut... | JosefMeixner/opentoonz | toonz/sources/toonz/studiopaletteviewer.cpp | C++ | bsd-3-clause | 31,411 |
"""
Module for abstract serializer/unserializer base classes.
"""
try:
from cStringIO import StringIO
except ImportError:
from StringIO import StringIO
from django.db import models
from django.utils.encoding import smart_str, smart_unicode
class SerializationError(Exception):
"""Something bad happened dur... | diofeher/django-nfa | django/core/serializers/base.py | Python | bsd-3-clause | 5,533 |
import Immutable from "immutable";
import { remote } from "electron";
import { from } from "rxjs/observable/from";
import * as nativeWindow from "../../src/notebook/native-window";
import { makeAppRecord, makeDocumentRecord } from "@nteract/types/core/records";
const path = require("path");
describe("tildify", () =... | captainsafia/nteract | applications/desktop/__tests__/renderer/native-window-spec.js | JavaScript | bsd-3-clause | 3,118 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.test import TestCase
from permabots.models import TelegramUpdate
from telegram import User
from permabots.test import factories
from django.core.urlresolvers import reverse
from rest_framework import status
from telegram.replykeyboardhide import ReplyKeyboardHid... | jlmadurga/permabots | permabots/test/testcases.py | Python | bsd-3-clause | 16,025 |
<?php
namespace Rcm\Factory;
use Rcm\Service\ResponseHandler;
use Zend\Mvc\ResponseSender\HttpResponseSender;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
/**
* Service Factory for the Container Manager
*
* Factory for the Container Manager.
*
* @category Reliv
* ... | innaDa/Rcm | src/Factory/ResponseHandlerFactory.php | PHP | bsd-3-clause | 1,430 |
// Copyright (c) 2016, Huang-Ming Huang, Object Computing, Inc.
// All rights reserved.
//
// This file is part of mFAST.
// See the file license.txt for licensing information.
#pragma once
#include "string_instructions.h"
namespace mfast {
class MFAST_EXPORT byte_vector_field_instruction
: public unicode_field... | cuavas/mFAST | src/mfast/instructions/byte_vector_instruction.h | C | bsd-3-clause | 1,593 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE415_Double_Free__malloc_free_int_53c.c
Label Definition File: CWE415_Double_Free__malloc_free.label.xml
Template File: sources-sinks-53c.tmpl.c
*/
/*
* @description
* CWE: 415 Double Free
* BadSource: Allocate data using malloc() and Deallocate data using fre... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE415_Double_Free/s01/CWE415_Double_Free__malloc_free_int_53c.c | C | bsd-3-clause | 1,532 |
/*
* Copyright (c) 2013 - 2016 Stefan Muller Arisona, Simon Schubiger
* Copyright (c) 2013 - 2016 FHNW & ETH Zurich
* All rights reserved.
*
* Contributions by: Filip Schramka, Samuel von Stachelski
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided tha... | arisona/ether | ether-core/src/main/java/ch/fhnw/util/ClassUtilities.java | Java | bsd-3-clause | 19,598 |
from django.urls import include, path, register_converter
from django.urls.converters import StringConverter
from django.contrib import admin
from django.contrib.auth import logout
from django.views.generic import RedirectView, TemplateView
from pontoon.teams.views import team
class LocaleConverter(StringConverter):... | mathjazz/pontoon | pontoon/urls.py | Python | bsd-3-clause | 2,791 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE191_Integer_Underflow__char_rand_multiply_22b.c
Label Definition File: CWE191_Integer_Underflow.label.xml
Template File: sources-sinks-22b.tmpl.c
*/
/*
* @description
* CWE: 191 Integer Underflow
* BadSource: rand Set data to result of rand()
* GoodSource: S... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE191_Integer_Underflow/s01/CWE191_Integer_Underflow__char_rand_multiply_22b.c | C | bsd-3-clause | 3,725 |
/*
* Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org>
* Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
* Copyright (C) 2008 Apple Inc. All rights reserved.
* Copyright (C) Research In Motion Limited 2011. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* m... | ondra-novak/blink | Source/core/svg/SVGAnimateElement.h | C | bsd-3-clause | 3,322 |
// clang-format off
CppKeySet { 10,
keyNew (PREFIX "primes", KEY_META, "array", "#3", KEY_END),
keyNew (PREFIX "primes/#0", KEY_VALUE, "two", KEY_END),
keyNew (PREFIX "primes/#1", KEY_VALUE, "three", KEY_END),
keyNew (PREFIX "primes/#2", KEY_VALUE, "five", KEY_END),
keyNew (PREFIX "primes/#3",... | BernhardDenner/libelektra | src/plugins/yanlr/yanlr/map-list-plain_scalars.hpp | C++ | bsd-3-clause | 365 |
<?php
/**
* author : forecho <caizhenghai@gmail.com>
* createTime : 15/4/19 下午3:20
* description:
*/
namespace common\services;
use common\models\Post;
use common\models\PostComment;
use common\models\User;
use common\models\UserInfo;
use DevGroup\TagDependencyHelper\NamingHelper;
use frontend\modules\topic\m... | upliu/getyii | common/services/UserService.php | PHP | bsd-3-clause | 6,118 |
{% extends 'brambling/layouts/12_xs.html' %}
{% load floppyforms %}
{% block title %}Sign up – {{ block.super }}{% endblock %}
{% block main %}
<h2>Sign up</h2>
<form action="{{ request.path }}?{{ request.GET.urlencode }}" method="post">
{% csrf_token %}
{% form form using "brambling/forms/signup.html" %}
<b... | j-po/django-brambling | brambling/templates/registration/sign_up.html | HTML | bsd-3-clause | 420 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE680_Integer_Overflow_to_Buffer_Overflow__malloc_fixed_73a.cpp
Label Definition File: CWE680_Integer_Overflow_to_Buffer_Overflow__malloc.label.xml
Template File: sources-sink-73a.tmpl.cpp
*/
/*
* @description
* CWE: 680 Integer Overflow to Buffer Overflow
* Bad... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE680_Integer_Overflow_to_Buffer_Overflow/CWE680_Integer_Overflow_to_Buffer_Overflow__malloc_fixed_73a.cpp | C++ | bsd-3-clause | 2,932 |
/**
* 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.
*
* @provides... | chicoxyzzy/fbjs | packages/fbjs/src/core/TouchEventUtils.js | JavaScript | bsd-3-clause | 1,271 |
--+ holdcas on;
set system parameters 'dont_reuse_heap_file=yes';
create table t1( a char(1200), b varchar(1200), c nchar(1200), d NCHAR VARYING(1200), e BIT(1200), f BIT VARYING(1200), g int, h SMALLINT, i BIGINT, j NUMERIC, k FLOAT, l DOUBLE, m MONETARY, n DATE, o TIME, p TIMESTAMP, q DATETIME);
i... | CUBRID/cubrid-testcases | sql/_23_apricot_qa/_02_performance/_02_function_based_index/cases/function_based_index_function_CHARACTER_LENGTH.sql | SQL | bsd-3-clause | 2,522 |
/*
* Copyright 1993-2010 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and related... | UniStuttgart-VISUS/megamol | plugins/protein_cuda/src/tables.h | C | bsd-3-clause | 18,374 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE134_Uncontrolled_Format_String__char_console_printf_72a.cpp
Label Definition File: CWE134_Uncontrolled_Format_String.label.xml
Template File: sources-sinks-72a.tmpl.cpp
*/
/*
* @description
* CWE: 134 Uncontrolled Format String
* BadSource: console Read input ... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE134_Uncontrolled_Format_String/s01/CWE134_Uncontrolled_Format_String__char_console_printf_72a.cpp | C++ | bsd-3-clause | 5,028 |
-- |
-- Copyright: (C) 2014-2015 EURL Tweag
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Control.Applicative ((<$>))
import Network.Transport
import Network.Transport.ZMQ
import Network.Transport.Tests
import Network.Transport.Tests.Auxiliary (runTests)
main :: IO ()
main = testTransport' (Right <$> c... | tweag/network-transport-zeromq | tests/TestZMQ.hs | Haskell | bsd-3-clause | 1,973 |
*> \brief \b SLAED8 used by sstedc. Merges eigenvalues and deflates secular equation. Used when the original matrix is dense.
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
*> \htmlonly
*> Download SLAED8 + dependencies
*> ... | xianyi/OpenBLAS | lapack-netlib/SRC/slaed8.f | FORTRAN | bsd-3-clause | 15,954 |
<?php
/**
* Payment object representing a cheque payment.
*
* @package payment
*/
class ChequePayment extends Payment {
/**
* Process the Cheque payment method
*/
function processPayment($data, $form) {
$this->Status = 'Pending';
$this->Message = '<p class="warningMessage">' . _t('ChequePayment.MESSAG... | bartoszrychlicki/MainBrain.pl | payment/code/ChequePayment/ChequePayment.php | PHP | bsd-3-clause | 1,059 |
from django.conf.urls.defaults import *
from corehq.apps.adm.dispatcher import ADMAdminInterfaceDispatcher, ADMSectionDispatcher
from corehq.apps.adm.views import ADMAdminCRUDFormView
adm_admin_interface_urls = patterns('corehq.apps.adm.views',
url(r'^$', 'default_adm_admin', name="default_adm_admin_interface"),
... | gmimano/commcaretest | corehq/apps/adm/urls.py | Python | bsd-3-clause | 691 |
//***************************************************************************************
// Synchronized receive routines.
//***************************************************************************************
//
// Author: Rob F. Van der Wijngaart
// Intel Corporation
// Date: 008/30/2010
//
//*********... | stlankes/HermitCore | usr/ircce/iRCCE_irecv.c | C | bsd-3-clause | 20,676 |
// Copyright 2020 The Crashpad 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 ... | youtube/cobalt | third_party/crashpad/util/file/output_stream_file_writer.cc | C++ | bsd-3-clause | 1,982 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE36_Absolute_Path_Traversal__char_connect_socket_ofstream_73a.cpp
Label Definition File: CWE36_Absolute_Path_Traversal.label.xml
Template File: sources-sink-73a.tmpl.cpp
*/
/*
* @description
* CWE: 36 Absolute Path Traversal
* BadSource: connect_socket Read dat... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE36_Absolute_Path_Traversal/s01/CWE36_Absolute_Path_Traversal__char_connect_socket_ofstream_73a.cpp | C++ | bsd-3-clause | 5,444 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE400_Resource_Exhaustion__connect_socket_sleep_06.c
Label Definition File: CWE400_Resource_Exhaustion.label.xml
Template File: sources-sinks-06.tmpl.c
*/
/*
* @description
* CWE: 400 Resource Exhaustion
* BadSource: connect_socket Read data using a connect sock... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE400_Resource_Exhaustion/s01/CWE400_Resource_Exhaustion__connect_socket_sleep_06.c | C | bsd-3-clause | 11,509 |
/*
* Copyright (C) 2010-2012 The Async HBase Authors. All rights reserved.
* This file is part of Async HBase.
*
* 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... | manolama/asynchbase | src/MultiColumnAtomicIncrementRequest.java | Java | bsd-3-clause | 11,947 |
<!DOCTYPE html>
<html>
<head>
<script src="a.js"></script>
</head>
<body>
<div>Text</div>
</body>
</html>
| assetgraph/assetgraph-builder | testdata/transforms/buildProduction/issue114/index.html | HTML | bsd-3-clause | 114 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE197_Numeric_Truncation_Error__int_connect_socket_to_short_74a.cpp
Label Definition File: CWE197_Numeric_Truncation_Error__int.label.xml
Template File: sources-sink-74a.tmpl.cpp
*/
/*
* @description
* CWE: 197 Numeric Truncation Error
* BadSource: connect_socke... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE197_Numeric_Truncation_Error/s01/CWE197_Numeric_Truncation_Error__int_connect_socket_to_short_74a.cpp | C++ | bsd-3-clause | 4,835 |
// 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.
// Defines a simple float vector class. This class is used to indicate a
// distance in two dimensions between two points. Subtracting two points sho... | nwjs/chromium.src | ui/gfx/geometry/vector2d_f.h | C | bsd-3-clause | 4,239 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE121_Stack_Based_Buffer_Overflow__CWE131_loop_66b.c
Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE131.label.xml
Template File: sources-sink-66b.tmpl.c
*/
/*
* @description
* CWE: 121 Stack Based Buffer Overflow
* BadSource: Allocate memory with... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE121_Stack_Based_Buffer_Overflow/s01/CWE121_Stack_Based_Buffer_Overflow__CWE131_loop_66b.c | C | bsd-3-clause | 1,625 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE272_Least_Privilege_Violation__w32_char_RegCreateKey_12.c
Label Definition File: CWE272_Least_Privilege_Violation__w32.label.xml
Template File: point-flaw-12.tmpl.c
*/
/*
* @description
* CWE: 272 Least Privilege Violation
* Sinks: RegCreateKey
* GoodSink... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE272_Least_Privilege_Violation/CWE272_Least_Privilege_Violation__w32_char_RegCreateKey_12.c | C | bsd-3-clause | 4,262 |
<?php
namespace ZF\Apigility\Doctrine\Server\Query\Provider;
use DoctrineModule\Persistence\ObjectManagerAwareInterface;
use Zend\Paginator\Adapter\AdapterInterface;
use Zend\ServiceManager\AbstractPluginManager;
use ZF\Rest\ResourceEvent;
interface QueryProviderInterface extends ObjectManagerAwareInterface
{
/*... | alunys/ApigilityAngularTest | vendor/zfcampus/zf-apigility-doctrine/src/Server/Query/Provider/QueryProviderInterface.php | PHP | bsd-3-clause | 1,172 |
#include <cloudcv.hpp>
#include <framework/marshal/marshal.hpp>
#include <framework/marshal/node_object_builder.hpp>
#include <framework/Job.hpp>
#include <framework/NanCheck.hpp>
#include <framework/Logger.h>
#include "framework/ImageSource.hpp"
#include "CameraCalibrationAlgorithm.hpp"
using namespace v8;... | MalcolmD/CloudCVPlusDetection | src/modules/cameraCalibration/CameraCalibrationBinding.cpp | C++ | bsd-3-clause | 10,211 |
/*
* $Id$
*/
/*
Copyright (c) 2000-2002 Board of Trustees of Leland Stanford Jr. University,
all rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including... | lockss/lockss-daemon | test/src/org/lockss/mbf/MockMemoryBoundFunctionVote.java | Java | bsd-3-clause | 5,392 |
---
id: 587d78ae367417b2b2512aff
title: Use the order Property to Rearrange Items
challengeType: 0
videoUrl: https://scrimba.com/p/pVaDAv/cMbvNAG
forumTopicId: 301116
localeTitle: Используйте свойство Order для переупорядочения элементов
---
## Description
<section id='description'>
Свойство <code>order</code> использ... | jonathanihm/freeCodeCamp | curriculum/challenges/russian/01-responsive-web-design/css-flexbox/use-the-order-property-to-rearrange-items.russian.md | Markdown | bsd-3-clause | 2,354 |
/*
* Copyright (c) 2014-2015 Vincent Hanquez <vincent@snarc.org>
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* ... | tekul/cryptonite | cbits/cryptonite_salsa.c | C | bsd-3-clause | 8,621 |
from lib.common import helpers
class Module:
def __init__(self, mainMenu, params=[]):
# metadata info about the module, not modified during runtime
self.info = {
# name for the module that will appear in module menus
'Name': 'Get-KeePassconfig',
# list of one ... | Hackplayers/Empire-mod-Hpys-tests | lib/modules/powershell/collection/vaults/get_keepass_config_trigger.py | Python | bsd-3-clause | 3,104 |
/**
* Global adapter config
*
* The `adapters` configuration object lets you create different global "saved settings"
* that you can mix and match in your models. The `default` option indicates which
* "saved setting" should be used if a model doesn't have an adapter specified.
*
* Keep in mind that options you... | gpedro/joy | config/adapters.js | JavaScript | bsd-3-clause | 1,463 |
(function ($) {
'use strict';
var dw, dh, rw, rh, lx, ly;
var defaults = {
// The text to display within the notice box while loading the zoom image.
loadingNotice: 'Loading image',
// The text to display within the notice box if an error occurs when loading the zoom image.
... | 201528013359030/basic_pai | views/js/easyzoom.js | JavaScript | bsd-3-clause | 8,461 |
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# Adapted from portage/getbinpkg.py -- Portage binary-package helper functions
# Copyright 2003-2004 Gentoo Foundation
# Distributed under the terms ... | bpsinc-native/src_third_party_chromite | lib/binpkg.py | Python | bsd-3-clause | 12,642 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE193_wchar_t_cpy_32.cpp
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE193.label.xml
Template File: sources-sink-32.tmpl.cpp
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: Alloca... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s02/CWE122_Heap_Based_Buffer_Overflow__cpp_CWE193_wchar_t_cpy_32.cpp | C++ | bsd-3-clause | 3,124 |
データベース・マイグレーション
============================
データベース駆動型のアプリケーションを開発し保守する途上で、ソース・コードが進化するのと同じように、使用されるデータベースの構造も進化していきます。
例えば、アプリケーションの開発中に、新しいテーブルが必要であることが分ったり、アプリケーションを配備した後に、クエリのパフォーマンスを向上させるためにインデックスを作成すべきことが発見されたりします。
データベースの構造の変更が何らかのソース・コードの変更を要求する場合はよくありますから、Yii はいわゆる *データベース・マイグレーション* 機能を提供して、ソース・コードとともにバージョン管理... | agungsijawir/yii2 | docs/guide-ja/db-migrations.md | Markdown | bsd-3-clause | 49,975 |
// 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 "config.h"
#include "modules/permissions/PermissionsCallback.h"
#include "bindings/core/v8/ScriptPromiseResolver.h"
#include "modules/permission... | Workday/OpenFrame | third_party/WebKit/Source/modules/permissions/PermissionsCallback.cpp | C++ | bsd-3-clause | 1,871 |
<?php
/**
* This file is part of the Nette Framework (https://nette.org)
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/
namespace Nette\DI;
use Nette;
/**
* Definition used by ContainerBuilder.
*/
class ServiceDefinition extends Nette\Object
{
/** @var string|NULL class or interface name */
p... | kivi8/ars-poetica | vendor/nette/di/src/DI/ServiceDefinition.php | PHP | bsd-3-clause | 4,863 |
#!/usr/bin/env python
from setuptools import *
setup(
name='dataflow',
version='0.1.1',
description='a dataflow library for python',
author='Tim Cuthbertson',
author_email='tim3d.junk+dataflow@gmail.com',
url='http://github.com/gfxmonk/py-dataflow/tree',
packages=find_packages(exclude=["test"]),
long_descri... | gfxmonk/py-dataflow | setup.py | Python | bsd-3-clause | 694 |
import unittest
from hrt import input_handler
class TestCLIInput(unittest.TestCase):
def setUp(self):
pass
def test_stdin_input(self):
pass
def test_interactive_input(self):
pass
def test_file_input(self):
pass
def test_inline_input(self):
pass
def... | dhruvagarwal/http-request-translator | tests/test_input.py | Python | bsd-3-clause | 524 |
#ifndef NT2_INCLUDE_FUNCTIONS_SCALAR_STORE_HPP_INCLUDED
#define NT2_INCLUDE_FUNCTIONS_SCALAR_STORE_HPP_INCLUDED
#include <nt2/memory/include/functions/scalar/store.hpp>
#endif
| hainm/pythran | third_party/nt2/include/functions/scalar/store.hpp | C++ | bsd-3-clause | 178 |
using System;
using System.Collections;
namespace Platform.Xml.Serialization
{
/// <summary>
/// Maintains state required to perform serialization.
/// </summary>
public sealed class SerializationContext
{
private readonly IList stack = new ArrayList();
public SerializationParameters Parameters { g... | mwillebrands/Platform | src/Platform.Xml.Serialization/SerializationContext.cs | C# | bsd-3-clause | 3,632 |
using System;
using System.Net;
namespace LumiSoft.Net.Dns.Client
{
/// <summary>
/// A record class.
/// </summary>
[Serializable]
public class DNS_rr_A : DNS_rr_base
{
private IPAddress m_IP = null;
/// <summary>
/// Default constructor.
/// </summary>
/// <param name="ip">IP addres... | Klaudit/inbox2_desktop | ThirdParty/Src/Lumisoft.Net/DNS/Client/DNS_rr_A.cs | C# | bsd-3-clause | 1,419 |
/*===================================================================
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... | lsanzdiaz/MITK-BiiG | Core/Code/Interactions/mitkDisplayVectorInteractorLevelWindow.h | C | bsd-3-clause | 3,003 |
/*
*
* 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 condi... | maxwell-demon/grpc | src/ruby/ext/grpc/rb_call_credentials.c | C | bsd-3-clause | 11,264 |
package ch.hevs.aislab.magpie.event;
import org.apache.commons.lang3.StringUtils;
import java.util.ArrayList;
import java.util.List;
import alice.tuprolog.Term;
import ch.hevs.aislab.magpie.environment.Services;
public class LogicTupleEvent extends MagpieEvent {
private String logicRepresentation;
public Lo... | aislab-hevs/magpie | MAGPIE/library/src/main/java/ch/hevs/aislab/magpie/event/LogicTupleEvent.java | Java | bsd-3-clause | 3,019 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>OpenInfo</title>
<meta http-equiv="Content-Type" Content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="../../styles/styles.css">
<script language="javascript" src='../links.js' type="text/javascript"></script... | FarGroup/FarManager | enc/enc_rus/meta/structures/openinfo.html | HTML | bsd-3-clause | 9,307 |
/***********************************************************************************************************************
**
** Copyright (c) 2011, 2014 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
** following c... | patrick-luethi/Envision | ModelBase/src/test_nodes/PositionExtension.cpp | C++ | bsd-3-clause | 2,073 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE789_Uncontrolled_Mem_Alloc__malloc_wchar_t_connect_socket_81.h
Label Definition File: CWE789_Uncontrolled_Mem_Alloc__malloc.label.xml
Template File: sources-sinks-81.tmpl.h
*/
/*
* @description
* CWE: 789 Uncontrolled Memory Allocation
* BadSource: connect_soc... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE789_Uncontrolled_Mem_Alloc/s01/CWE789_Uncontrolled_Mem_Alloc__malloc_wchar_t_connect_socket_81.h | C | bsd-3-clause | 1,805 |
// 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/safe_browsing/binary_feature_extractor.h"
#include <string>
#include <vector>
#include "base/base_paths.h"
#include "base/files/... | scheib/chromium | chrome/common/safe_browsing/binary_feature_extractor_win_unittest.cc | C++ | bsd-3-clause | 8,848 |
/*
* Copyright (c) 2009-2015, United States Government, as represented by the Secretary of Health and Human Services.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions ... | beiyuxinke/CONNECT | Product/Production/Adapters/General/CONNECTDirectConfig/src/main/java/gov/hhs/fha/nhinc/directconfig/service/jaxws/DisassociatePolicyGroupFromDomains.java | Java | bsd-3-clause | 4,210 |
//----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears i... | tommy-u/enable | kiva/agg/agg-24/src/agg_vcgen_stroke.cpp | C++ | bsd-3-clause | 7,176 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Orchard.Themes;
using Orchard.UI.Admin;
using Orchard.Data;
using ESchool.Models;
using Orchard.ContentManagement;
using Orchard;
using Orchard.Localization;
using Orchard.DisplayManagement;
using Orchard.U... | prakasha/Orchard1.4 | Modules/ESchool/Controllers/Frontend/CourseController.cs | C# | bsd-3-clause | 1,352 |
// Copyright (c) MOSA Project. Licensed under the New BSD License.
using Mosa.Compiler.Framework;
namespace Mosa.Platform.x86.Instructions
{
/// <summary>
/// Intermediate representation of the arithmetic shift right instruction.
/// </summary>
public sealed class Sar : X86Instruction
{
#region Data Members
... | modulexcite/MOSA-Project | Source/Mosa.Platform.x86/Instructions/Sar.cs | C# | bsd-3-clause | 1,628 |
<?php
namespace test\g;
class e { } | theosyspe/levent_01 | vendor/ZF2/bin/test/g/e.php | PHP | bsd-3-clause | 35 |
/*
* Copyright (c) 2016, The OpenThread 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this ... | openthread/openthread | src/core/net/ip6.cpp | C++ | bsd-3-clause | 45,337 |
// 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 "components/omnibox/browser/autocomplete_match.h"
#include <algorithm>
#include "base/check_op.h"
#include "base/cxx17_backports.h"
#include "b... | nwjs/chromium.src | components/omnibox/browser/autocomplete_match.cc | C++ | bsd-3-clause | 58,314 |
<!--
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http:/... | anuragsoni/learn-polymer | dist/elements/my-jumbotron/my-jumbotron.html | HTML | bsd-3-clause | 1,259 |
#-----------------------------------------------------------------------------
# Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors.
# All rights reserved.
#
# The full license is in the file LICENSE.txt, distributed with this software.
#-------------------------------------------------------------------... | stonebig/bokeh | bokeh/command/subcommands/tests/test_secret.py | Python | bsd-3-clause | 2,391 |