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 |
|---|---|---|---|---|---|
---
# Tutorial Title
title: "Using Libpmemobj to Manage Persistent Memory Arrays in C++"
# Tutorial post date
date: 2018-10-04T00:13:24Z
# Publish immediately
draft: false
# Brief tutorial description
description: "This code sample uses libpmemobj, a persistent memory library for C++, to demonstrate how to manage pe... | pbalcer/pbalcer.github.io | content/tutorials/Using-libpmemobj-to-manage-persistent-memory-arrays-in-C++.md | Markdown | bsd-3-clause | 1,056 |
/*
* Copyright 2006-2021 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... | jens-maus/amissl | openssl/crypto/ec/ecx_meth.c | C | bsd-3-clause | 37,266 |
// 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 "content/browser/frame_host/render_widget_host_view_child_frame.h"
#include "content/browser/frame_host/cross_process_frame_connector.h"
#includ... | chromium2014/src | content/browser/frame_host/render_widget_host_view_child_frame.cc | C++ | bsd-3-clause | 8,640 |
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
*
* Test memerror
*
* Copyright (C) 2011 Data Differential, http://datadifferential.com/
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Re... | Metaswitch/libmemcached-upstream | tests/memerror.cc | C++ | bsd-3-clause | 3,458 |
<?php
namespace MonkeyData\EshopXmlFeedGenerator\XmlGenerator\Entities;
/**
* Class CustomerCityEntity
* @package MonkeyData\EshopXmlFeedGenerator\XmlGenerator\Entities
* @author MD Developers
*/
class CustomerCityEntity extends Entity {
/**
* @param mixed $value
*/
public funct... | MonkeyData/php-online-store-xml-feed-generator | src/XmlGenerator/Entities/CustomerCityEntity.php | PHP | bsd-3-clause | 558 |
<?php
namespace Faker\Provider\hy_AM;
class Color extends \Faker\Provider\Color
{
protected static $safeColorNames = array(
'սև', 'դեղին', 'սպիտակ', 'մոխրագույն', 'կարմիր',
'կապույտ', 'երկնագույն', 'կանաչ', 'կապտականաչ',
'մանուշակագույն', 'շագանակագույն',
);
}
| achluky/Quotation | vendor/fzaninotto/faker/src/Faker/Provider/hy_AM/Color.php | PHP | bsd-3-clause | 395 |
#!/bin/bash
GKE_CLUSTER_NAME=${GKE_CLUSTER_NAME:-'example'}
SHARDS=${SHARDS:-'-80,80-'}
TABLETS_PER_SHARD=${TABLETS_PER_SHARD:-3}
CELLS=${CELLS:-'test'}
./vtgate-down.sh
SHARDS=$SHARDS CELLS=$CELLS TABLETS_PER_SHARD=$TABLETS_PER_SHARD ./vttablet-down.sh
./vtctld-down.sh
./etcd-down.sh
gcloud compute firewall-rules d... | tjyang/vitess | examples/kubernetes/vitess-down.sh | Shell | bsd-3-clause | 383 |
require 'spec_helper'
class FakesController < Spree::Api::BaseController
end
describe Spree::Api::BaseController, :type => :controller do
render_views
controller(Spree::Api::BaseController) do
def index
render :text => { "products" => [] }.to_json
end
end
before do
@routes = ActionDispatch:... | Senjai/solidus | api/spec/controllers/spree/api/base_controller_spec.rb | Ruby | bsd-3-clause | 5,123 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=974; initial-scale=1.0; maximum-scale=1.0; minimum-scale=1.0"/>
<title>BLOBkit Samples</title>
<link ... | BLOBbox/BLOBkit | samples/profiler/profiler5.html | HTML | bsd-3-clause | 1,112 |
// Copyright (C) 2014, Microsoft Corporation. All rights reserved.
// This code is governed by the BSD License found in the LICENSE file.
module.exports = JSShellRunner;
var fs = require('fs');
var cp = require('child_process');
var ConsoleRunner = require('./console');
var counter = 0;
function JSShellRunner(args) ... | muratsu/test262-harness | lib/runners/jsshell.js | JavaScript | bsd-3-clause | 614 |
from os.path import dirname
import sys
from django.test import TestCase
from django.conf import settings
from django.test.utils import override_settings
import oscar
from oscar.core.loading import (
get_model, AppNotFoundError, get_classes, get_class, ClassNotFoundError)
from oscar.test.factories import create_pr... | sonofatailor/django-oscar | tests/integration/core/test_loading.py | Python | bsd-3-clause | 11,789 |
// 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 CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
#define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
#include <map>
#include... | CapOM/ChromiumGStreamerBackend | content/browser/service_worker/service_worker_version.h | C | bsd-3-clause | 26,828 |
using System;
using System.Text.RegularExpressions;
namespace Shouldly.Tests.Strings
{
[ShouldlyMethods]
public static class Verify
{
static readonly Regex MatchGetHashCode = new Regex("\\(\\d{5,8}\\)");
public static void ShouldFail(Action action, string errorWithSource, string errorWitho... | JoeMighty/shouldly | src/Shouldly.Tests/Strings/Verify.cs | C# | bsd-3-clause | 1,848 |
// RobotBuilder Version: 1.5
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the blocks... | Team5571/Holonomic-Drive | src/org/usfirst/frc5571/HolonomicDrive/commands/ChassisDriveAndTurn.java | Java | bsd-3-clause | 3,192 |
import sys
from time import sleep
from cachey import Cache, Scorer, nbytes
def test_cache():
c = Cache(available_bytes=nbytes(1) * 3)
c.put('x', 1, 10)
assert c.get('x') == 1
assert 'x' in c
c.put('a', 1, 10)
c.put('b', 1, 10)
c.put('c', 1, 10)
assert set(c.data) == set('xbc')
c... | Winterflower/cachey | cachey/tests/test_cache.py | Python | bsd-3-clause | 1,608 |
from __future__ import absolute_import, division, print_function
# ----------------------------------------------------------------------------
# Copyright (c) 2013--, scikit-bio development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed ... | Kleptobismol/scikit-bio | skbio/tree/_exception.py | Python | bsd-3-clause | 814 |
body {
color: #76838f;
background-color: #fff;
}
a {
color: #677ae4;
}
a:hover,
a:focus {
color: #8897ec;
}
img {
vertical-align: middle;
}
.img-thumbnail {
background-color: #fff;
border: 1px solid #e4eaec;
}
hr {
border-top: 1px solid #e4eaec;
}
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
... | killprd/tiwwocz | frontend/media/assets/skins/indigo.css | CSS | bsd-3-clause | 168,150 |
package com.compositesw.services.system.admin.resource;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import com.compositesw.ser... | dvbu-test/PDTool | CISAdminApi7.0.0/src/com/compositesw/services/system/admin/resource/ForeignKey.java | Java | bsd-3-clause | 6,513 |
<?php
namespace test\m\p;
class j { } | theosyspe/levent_01 | vendor/ZF2/bin/test/m/p/j.php | PHP | bsd-3-clause | 37 |
<?php
/**
* If you need an environment-specific system or application configuration,
* there is an example in the documentation
* @see http://framework.zend.com/manual/current/en/tutorials/config.advanced.html#environment-specific-system-configuration
* @see http://framework.zend.com/manual/current/en/tutorials/con... | nassafou/comm-app | config/application.config.php | PHP | bsd-3-clause | 2,971 |
package com.oracle.pts.ws;
import com.oracle.pts.custom.AttributeEntry;
import com.oracle.pts.custom.CustomFieldHolder;
import com.oracle.pts.custom.DataSet;
import com.oracle.pts.custom.MetaInfo;
import com.oracle.pts.custom.MetaInfoFactory;
import com.oracle.pts.custom.OptyMetaInfoFactory;
import com... | delkyd/Oracle-Cloud | PaaS-SaaS_DynamicWS/CFHandler/JAX_WS_handlers_Accelerator/JAX_WS_handlers_Accelerator/src/com/oracle/pts/ws/CRMProcessor.java | Java | bsd-3-clause | 13,296 |
#! /bin/bash
killall -9 nameserver
killall -9 chunkserver
killall -9 bfs_client
rm -rf nameserver* chunkserver*
rm -rf master* slave*
rm -rf bfs_client
rm -rf bfs.flag
rm -rf client.*
rm -rf core.*
| 00k/ToyDFS | sandbox/clear.sh | Shell | bsd-3-clause | 200 |
/*
===============================================================================
FILE: LASzipper.hpp
CONTENTS:
Writes (optionally compressed) LIDAR points to LAS formats 1.0 - 1.3. This
is not actually used by LASlib but by the LASzip interface of libLAS.
PROGRAMMERS:
martin.is... | saeedghsh/SSRR13 | Andreas/slam6d/3rdparty/lastools/laslib/inc/laszipper.hpp | C++ | bsd-3-clause | 2,061 |
<!DOCTYPE html>
<html>
<head>
<title>cannon.js - bounce demo</title>
<meta charset="utf-8">
<link rel="stylesheet" href="css/style.css" type="text/css"/>
</head>
<body>
<script src="../build/cannon.js"></script>
<script src="../build/cannon.demo.js"></script>
<script src="../libs/dat.gui.j... | kustomzone/kzone | node_modules/cannon/demos/bounce.html | HTML | bsd-3-clause | 3,023 |
// Copyright 2017 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 "fxjs/xfa/cjx_container.h"
#include <vector>
#include "fxjs/xfa/cfx... | endlessm/chromium-browser | third_party/pdfium/fxjs/xfa/cjx_container.cpp | C++ | bsd-3-clause | 1,423 |
## Unit Tests
The unit tests are located in ```src/test/java/com/yahoo/gondola/core/GondolaTest.java```.
To run the unit tests without having to build the package:
```
mvn test
```
To run a single test, for example, the test called 'missingEntry':
```
mvn test -Dtest=GondolaTest#missingEntry
```
## Tsunami Test
Thi... | patc888/gondola | core/README.md | Markdown | bsd-3-clause | 11,118 |
/* Copyright (c) 2015, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <odp.h>
#include "odp_cunit_common.h"
#include "cpumask.h"
#include "mask_common.h"
/* default worker parameter to get all that may be available */
#define ALL_AVAILABLE 0
void cpumask_test_odp... | rsalveti/odp | test/validation/cpumask/cpumask.c | C | bsd-3-clause | 2,881 |
//==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
// Copyright 2011 - 2012 MetaScale SAS
//
// Distributed under the Boost... | hainm/pythran | third_party/nt2/core/functions/common/band.hpp | C++ | bsd-3-clause | 6,035 |
//==============================================================================
// Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2013 LRI UMR 8623 CNRS/Univ Paris Sud XI
// Copyright 2012 - 2013 MetaScale SAS
//
// Distributed under the Boost... | hainm/pythran | third_party/nt2/core/functions/logpi.hpp | C++ | bsd-3-clause | 1,624 |
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generi... | NMFCode/NMF | IntegrationTests/ComponentBasedSoftwareArchitectures/Pcm/Core/Composition/IProvidedInfrastructureDelegationConnector.cs | C# | bsd-3-clause | 4,293 |
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<!-- Merge these tests into upstream wpt test if/when added to the css-contain spec -->
<link rel="help" href="https://drafts.csswg.org/css-contain/#contain-property">
<link rel="help" href="https://github.com/w3c/csswg-dr... | nwjs/chromium.src | third_party/blink/web_tests/wpt_internal/css/css-contain/fieldset-inline-size-ref.html | HTML | bsd-3-clause | 977 |
<?php
namespace common\rbac;
use yii\web\ForbiddenHttpException;
use yii\base\Module;
use Yii;
use yii\web\User;
use yii\di\Instance;
class AccessControl extends \yii\base\ActionFilter
{
public function beforeAction($action)
{
$actionId = $action->getUniqueId();
$user = $this->getUser();
}
}
?... | Darkdion/bkt | common/rbac/AccessControl3.php | PHP | bsd-3-clause | 322 |
/*
Copyright 2005-2008 Intel Corporation. All Rights Reserved.
This file is part of Threading Building Blocks.
Threading Building Blocks is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License
version 2 as published by the Free Software Foundat... | anasazi/POP-REU-Project | pkgs/libs/tbblib/src/include/tbb/task.h | C | bsd-3-clause | 28,443 |
---
layout: redirect
newurl: http://pmem.io/libpmemobj-cpp/master/doxygen/search/all_72.html
---
| krzycz/krzycz.github.io | nvml/cpp_obj/master/cpp_html/search/all_72.md | Markdown | bsd-3-clause | 97 |
<?php
namespace common\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use common\models\Attributes;
/**
* AttributesSearch represents the model behind the search form about `common\models\Attributes`.
*/
class AttributesSearch extends Attributes
{
/**
* @inheritdoc
*/
publi... | 61ds/drish | _protected/common/models/AttributesSearch.php | PHP | bsd-3-clause | 1,962 |
// $Id: Surge.h,v 1.8 2003/10/07 21:45:11 idgay Exp $
/* tab:4
* "Copyright (c) 2000-2003 The Regents of the University of California.
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without written agree... | fresskarma/tinyos-1.x | apps/Surge/Surge.h | C | bsd-3-clause | 1,974 |
package eddefs
import (
"errors"
"sort"
"github.com/u-root/u-root/cmds/core/elvish/edit/ui"
"github.com/u-root/u-root/cmds/core/elvish/eval"
"github.com/u-root/u-root/cmds/core/elvish/eval/vals"
"github.com/u-root/u-root/cmds/core/elvish/hashmap"
"github.com/u-root/u-root/cmds/core/elvish/parse"
)
var errValu... | hugelgupf/u-root | cmds/core/elvish/edit/eddefs/binding_map.go | GO | bsd-3-clause | 3,180 |
var chai = require('chai');
var sinon = require('sinon');
var chrome = require('sinon-chrome');
var expect = chai.expect;
describe('Chrome Dev Tools', function() {
it('should work', function() {
chrome.browserAction.setTitle({title: 'hello'});
sinon.assert.calledOnce(chrome.browserAction.setTitle);... | jaythaceo/chrome-wakatime | tests/helpers/Chrome.spec.js | JavaScript | bsd-3-clause | 333 |
// 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 CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
#define CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
#include "base/compil... | leiferikb/bitpop-private | content/renderer/renderer_webkitplatformsupport_impl.h | C | bsd-3-clause | 6,462 |
#!/bin/bash
echo "This is not a script to run. Please read this script"
exit
readonly MODULE_NAME=SVM
readonly MODULE_USERNAME=your_username
readonly MODULE_PATH=${MODULE_USERNAME,,}/${MODULE_NAME,,}
echo $MODULE_NAME
echo $MODULE_USERNAME
echo $MODULE_PATH
# initialize a module
screwjack init basic -n $MODULE_NAM... | DataCanvasIO/example-modules | tutorials/basic/quickstart.sh | Shell | bsd-3-clause | 950 |
<html>
<body>
<p id="one" class="after">one</p>
</body>
</html>
| huubbouma/diazo | lib/diazo/tests/v1-before-replace-after-content/content.html | HTML | bsd-3-clause | 72 |
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Test for distributed trial worker side.
"""
import os
from cStringIO import StringIO
from zope.interface.verify import verifyObject
from twisted.trial.reporter import TestResult
from twisted.trial.unittest import TestCase
from... | hlzz/dotfiles | graphics/VTK-7.0.0/ThirdParty/Twisted/twisted/trial/_dist/test/test_worker.py | Python | bsd-3-clause | 15,115 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__new_delete_array_char_66a.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__new_delete_array.label.xml
Template File: sources-sinks-66a.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory M... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE762_Mismatched_Memory_Management_Routines/s06/CWE762_Mismatched_Memory_Management_Routines__new_delete_array_char_66a.cpp | C++ | bsd-3-clause | 2,885 |
/*
* Copyright (c) 2012 The WebRTC 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 contribut... | wangscript/libjingle-1 | trunk/third_party/webrtc/modules/rtp_rtcp/source/rtp_utility.h | C | bsd-3-clause | 7,540 |
var makeAFailure=function(){function n(n){}function e(n){throw new Error("failed!")}function r(r){var i=null;if(r.failed){i=e}else{i=n}i(r)}function i(){var n={failed:true,value:42};r(n)}return i}();
//# sourceMappingURL=test.map
| beeftornado/sentry | tests/relay_integration/lang/javascript/example-project/test.min.js | JavaScript | bsd-3-clause | 230 |
<!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/generated/statsmodels.tsa.statespace.mlemodel.MLEResults.t_test.html | HTML | bsd-3-clause | 28,712 |
package com.ociweb.iot.grove.oled;
import com.ociweb.iot.maker.image.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.ociweb.iot.maker.FogCommandChannel;
import com.ociweb.pronghorn.iot.schema.I2CCommandSchema;
import com.ociweb.pronghorn.pipe.DataOutputBlobWriter;
/**
*
* @author Ray Lo
*... | oci-pronghorn/PronghornIoT | foglight/src/main/java/com/ociweb/iot/grove/oled/BinaryOLED.java | Java | bsd-3-clause | 6,182 |
//
// Copyright (C) 2015-2021 Virgil Security 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
// not... | VirgilSecurity/virgil-sdk-keys-x | Source/KeychainStorage/VSSKeyEntry.h | C | bsd-3-clause | 2,977 |
/* global expect */
import { forumLocation } from '../../../../../config/env.json';
const { getGuideUrl } = require('./');
describe('index', () => {
describe('getGuideUrl', () => {
it('should use forum topic url when forumTopicId is supplied', () => {
const value = getGuideUrl({
forumTopicId: 123... | jonathanihm/freeCodeCamp | client/src/templates/Challenges/utils/index.test.js | JavaScript | bsd-3-clause | 738 |
/****************************************************************************
* Core Library Version 1.7, August 2004
* Copyright (c) 1995-2004 Exact Computation Project
* All rights reserved.
* ... | hlzz/dotfiles | graphics/cgal/CGAL_Core/include/CGAL/CORE/geom3d/segment3d.h | C | bsd-3-clause | 6,581 |
¿Deseas agregar a los organizadores del curso como tus profesores/profesoras?
Si los aceptas, podrán ver la lista de los problemas que has resuelto y de los que has intentado resolver | samdsmx/omegaup | frontend/privacy/accept_teacher/es.md | Markdown | bsd-3-clause | 186 |
#ifndef PYTHONIC_MATH_SIN_HPP
#define PYTHONIC_MATH_SIN_HPP
#include "pythonic/include/math/sin.hpp"
#include "pythonic/utils/proxy.hpp"
#include <cmath>
namespace pythonic
{
namespace math
{
ALIAS(sin, std::sin);
PROXY_IMPL(pythonic::math, sin);
}
}
#endif
| hainm/pythran | pythran/pythonic/math/sin.hpp | C++ | bsd-3-clause | 277 |
<?php
use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\Pjax;
/* @var $this yii\web\View */
/* @var $searchModel backend\models\AddmissionPaymentDetailsSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = Yii::t('app', 'Addmission Payment Details');
$this->params['breadcrumbs'][] =... | riteshsingh1/a | backend/views/addmission-payment-details/index.php | PHP | bsd-3-clause | 1,155 |
var structarm__fir__decimate__instance__q31 =
[
[ "M", "structarm__fir__decimate__instance__q31.html#ad3d6936c36303b30dd38f1eddf248ae5", null ],
[ "numTaps", "structarm__fir__decimate__instance__q31.html#a37915d42b0dc5e3057ebe83110798482", null ],
[ "pCoeffs", "structarm__fir__decimate__instance__q31.ht... | lpodkalicki/blog | stm32/STM32Cube_FW_F0_V1.9.0/Drivers/CMSIS/Documentation/DSP/html/structarm__fir__decimate__instance__q31.js | JavaScript | bsd-3-clause | 476 |
/*
* 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/Common/CONNECTCoreLib/src/test/java/gov/hhs/fha/nhinc/callback/openSAML/CertificateManagerImplTest.java | Java | bsd-3-clause | 4,809 |
from threading import Thread
import Queue
from django.core.urlresolvers import reverse
from django.conf import settings
from django import forms
from django.http import HttpRequest
from django.test import TestCase
import haystack
from haystack.forms import model_choices, SearchForm, ModelSearchForm
from haystack.query ... | soad241/django-haystack | tests/core/tests/views.py | Python | bsd-3-clause | 7,147 |
// 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 "core/animation/ListInterpolationFunctions.h"
#include "core/animation/UnderlyingValueOwner.h"
#include "core/css/CSSValueList.h"
#include "wtf/... | danakj/chromium | third_party/WebKit/Source/core/animation/ListInterpolationFunctions.cpp | C++ | bsd-3-clause | 7,884 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE126_Buffer_Overread__char_declare_memcpy_64a.c
Label Definition File: CWE126_Buffer_Overread.stack.label.xml
Template File: sources-sink-64a.tmpl.c
*/
/*
* @description
* CWE: 126 Buffer Over-read
* BadSource: Set data pointer to a small buffer
* GoodSource... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE126_Buffer_Overread/s01/CWE126_Buffer_Overread__char_declare_memcpy_64a.c | C | bsd-3-clause | 2,842 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_src_char_cat_51a.cpp
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_src.label.xml
Template File: sources-sink-51a.tmpl.cpp
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: Initialize da... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s05/CWE122_Heap_Based_Buffer_Overflow__cpp_src_char_cat_51a.cpp | C++ | bsd-3-clause | 2,450 |
<!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>ASTResource xref</title>
<link type="text/css"... | daejunpark/jsaf | third_party/pmd/docs/xref/net/sourceforge/pmd/lang/java/ast/ASTResource.html | HTML | bsd-3-clause | 3,647 |
from django.conf import settings
def bitgroup_cache_key(slug):
return "%s:%s" % (
getattr(settings, 'PAGEBIT_CACHE_PREFIX', 'pagebits'),
slug
)
| frankwiles/django-pagebits | pagebits/utils.py | Python | bsd-3-clause | 171 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE191_Integer_Underflow__unsigned_int_min_sub_64a.c
Label Definition File: CWE191_Integer_Underflow.label.xml
Template File: sources-sinks-64a.tmpl.c
*/
/*
* @description
* CWE: 191 Integer Underflow
* BadSource: min Set data to the min value for unsigned int
... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE191_Integer_Underflow/s03/CWE191_Integer_Underflow__unsigned_int_min_sub_64a.c | C | bsd-3-clause | 2,844 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE789_Uncontrolled_Mem_Alloc__new_char_fgets_05.cpp
Label Definition File: CWE789_Uncontrolled_Mem_Alloc__new.label.xml
Template File: sources-sinks-05.tmpl.cpp
*/
/*
* @description
* CWE: 789 Uncontrolled Memory Allocation
* BadSource: fgets Read data from the ... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE789_Uncontrolled_Mem_Alloc/s02/CWE789_Uncontrolled_Mem_Alloc__new_char_fgets_05.cpp | C++ | bsd-3-clause | 9,134 |
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2015, Image Engine Design 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:
//
// * R... | chippey/gaffer | include/GafferImage/ImageMetadata.h | C | bsd-3-clause | 2,907 |
// Copyright (c) 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.
// Determines whether certain gpu-related features are blacklisted or not.
// The format of a valid software_rendering_list.json file is defined in
//... | crosswalk-project/chromium-crosswalk-efl | gpu/config/software_rendering_list_json.cc | C++ | bsd-3-clause | 26,377 |
package com.compositesw.services.system.admin.archive;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for performArchiveImportResponse complex type.
*
* <p>The following schema fragment specifies the... | dvbu-test/PDTool | CISAdminApi7.0.0/src/com/compositesw/services/system/admin/archive/PerformArchiveImportResponse.java | Java | bsd-3-clause | 830 |
/*
* Copyright (c) 2013 Chun-Ying Huang
*
* This file is part of GamingAnywhere (GA).
*
* GA is free software; you can redistribute it and/or modify it
* under the terms of the 3-clause BSD License as published by the
* Free Software Foundation: http://directory.fsf.org/wiki/License:BSD_3Clause
*
* GA is distr... | chunying/gaminganywhere | ga/core/ga-common.cpp | C++ | bsd-3-clause | 27,425 |
/*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... | fmilano/mitk | Utilities/qtsingleapplication/qthandlenewappinstance.h | C | bsd-3-clause | 691 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53d.c
Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE131.label.xml
Template File: sources-sink-53d.tmpl.c
*/
/*
* @description
* CWE: 121 Stack Based Buffer Overflow
* BadSource: Allocate memory wi... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE121_Stack_Based_Buffer_Overflow/s01/CWE121_Stack_Based_Buffer_Overflow__CWE131_memcpy_53d.c | C | bsd-3-clause | 1,544 |
import logging
import pytest
def test_tracing_by_function_if_enable(track_logger, handler):
msg1 = 'TEST1'
msg2 = 'TEST2'
msg3 = 'TEST3'
track_logger.setLevel(logging.INFO)
track_logger.enable_tracking()
track_logger.debug(msg1)
track_logger.info(msg2)
track_logger.disable_... | kivio/python-structured-logging | tests/test_tracking_logger.py | Python | bsd-3-clause | 3,755 |
/*
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/2/trsv/bli_trsv_check.h | C | bsd-3-clause | 2,041 |
"use strict";
/**
* @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 c... | endlessm/chromium-browser | third_party/node/node_modules/polymer-bundler/node_modules/polymer-analyzer/lib/core/analyzer.js | JavaScript | bsd-3-clause | 9,067 |
// 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/mus/public/cpp/view_tracker.h"
namespace mus {
ViewTracker::ViewTracker() {}
ViewTracker::~ViewTracker() {
for (Views::iterator ... | CapOM/ChromiumGStreamerBackend | components/mus/public/cpp/view_tracker.cc | C++ | bsd-3-clause | 859 |
/***********************************************************************************************************************
**
** 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
** follo... | patrick-luethi/Envision | OOVisualization/src/expressions/VNewExpressionStyle.cpp | C++ | bsd-3-clause | 1,975 |
#!/usr/bin/env python
import sys
from roslaunch.xmlloader import XmlLoader, loader
from rosgraph.names import get_ros_namespace
from rqt_launchtree.launchtree_context import LaunchtreeContext
class LaunchtreeLoader(XmlLoader):
def _include_tag(self, tag, context, ros_config, default_machine, is_core, verbose):
i... | pschillinger/rqt_launchtree | src/rqt_launchtree/launchtree_loader.py | Python | bsd-3-clause | 2,423 |
package com.mentatlabs.nsa
package scalac
package options
/* -optimise
* =========
* 2.5.0 - 2.5.1: Optimize. implies -Xinline, -Xcloselim and -Xdce // previously -XO
* 2.6.0 - 2.11.8: Generates faster bytecode by applying optimisations to the program
* 2.12.0: Compiler flag for the optimizer in ... | mentat-labs/sbt-nsa | nsa-core/src/main/scala/com/mentatlabs/nsa/scalac/options/ScalacOptimise.scala | Scala | bsd-3-clause | 431 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" co... | pbalcer/pbalcer.github.io | content/libpmemobj-cpp/master/doxygen/functions_n.html | HTML | bsd-3-clause | 5,769 |
<!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/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | KAtana-Karlsruhe/AADC_2015_KAtana | doc/html/adtf_user_2demo_2src_2_a_a_d_c___qr_player_2stdafx_8cpp_source.html | HTML | bsd-3-clause | 7,306 |
<?php
namespace backend\models;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use common\models\SearchModelInterface;
use common\models\vks\Participant;
use yii\mongodb\validators\MongoIdValidator;
/**
* VksParticipantSearch represents the model behind the search form about `common\models\vks\Participant`.
*... | shubnikofff/teleport | backend/models/VksParticipantSearch.php | PHP | bsd-3-clause | 1,735 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE ScopedTypeVariables #-}
-- | Auxilary definitions for 'Semigroup'
--
-- This module provides some @newtype@ wrappers and helpers which are
-- reexported from the "Data.S... | ezyang/ghc | libraries/base/Data/Semigroup/Internal.hs | Haskell | bsd-3-clause | 7,619 |
/*
* software YUV to RGB converter
*
* Copyright (C) 2009 Konstantin Shishkov
*
* 1,4,8bpp support and context / deglobalize stuff
* by Michael Niedermayer (michaelni@gmx.at)
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Le... | endlessm/chromium-browser | third_party/ffmpeg/libswscale/yuv2rgb.c | C | bsd-3-clause | 35,176 |
/*
* 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 <limits.h>
#include <math.h>
#include <stdio.h>
#include <time.h>
#include "native_client/src/include/build_config.h"
#include "... | endlessm/chromium-browser | native_client/tests/performance/perf_test_runner.cc | C++ | bsd-3-clause | 7,715 |
<?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_Centinel_Model_State_Visa.php | PHP | bsd-3-clause | 5,614 |
CONTIKI=../../../../../..
TARGET = mikro-e
VERSION? = $(shell git describe --abbrev=4 --dirty --always --tags)
CONTIKI_WITH_IPV6 = 1
CONTIKI_WITH_RPL = 0
USE_SERIAL_PADS = 1
APPS += letmecreateiot
CFLAGS += -DVERSION=$(VERSION)
CFLAGS += -Wall -Wno-pointer-sign
CFLAGS += -I $(CONTIKI)/platform/$(TARGET)
CFLAGS += -... | CreatorDev/LetMeCreateIoT | examples/motion/Makefile | Makefile | bsd-3-clause | 492 |
<?php
/**
* app.php
* @author Revin Roman
* @link https://rmrevin.com
*/
$base_dir = realpath(__DIR__ . '/../..');
$vendor_dir = realpath($base_dir . '/vendor');
$path_list = [
$vendor_dir . '/yiisoft/extensions.php',
$base_dir . '/.extensions.php',
];
$extensions = [];
foreach ($path_list as $path) {
... | cookyii/project | common/config/app.php | PHP | bsd-3-clause | 552 |
/**
* Copyright (C) Zhang,Yuexiang (xfeep)
*
*/
package nginx.clojure.anno;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.CONSTRUCTOR})
@Ret... | kjniemi/nginx-clojure | src/java/nginx/clojure/anno/Suspendable.java | Java | bsd-3-clause | 387 |
#!/usr/local/bin/perl
# VC-32.pl - unified script for Microsoft Visual C++, covering Win32,
# Win64 and WinCE [follow $FLAVOR variable to trace the differences].
#
$ssl= "ssleay32";
if ($fips && !$shlib)
{
$crypto="libeayfips32";
$crypto_compat = "libeaycompat32.lib";
}
else
{
$crypto="libeay32";
}
if ($fipsc... | GaloisInc/hacrypto | src/C/openssl/openssl-0.9.8zh/util/pl/VC-32.pl | Perl | bsd-3-clause | 14,335 |
/*******************************************************************************
* This file is part of Pebble.
*
* Copyright (c) 2014 by Mitchell Bösecke
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*******************************... | hectorlf/pebble | src/main/java/com/mitchellbosecke/pebble/tokenParser/IfTokenParser.java | Java | bsd-3-clause | 3,455 |
/*******************************************************************************
* This file is part of Pebble.
* <p>
* Copyright (c) 2014 by Mitchell Bösecke
* <p>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
***********************... | hectorlf/pebble | src/main/java/com/mitchellbosecke/pebble/template/ScopeChain.java | Java | bsd-3-clause | 6,958 |
"""
Provides Matlab-like tic, tac and toc functions.
"""
import time
import numpy as np
class __Timer__:
"""Computes elapsed time, between tic, tac, and toc.
Methods
-------
tic :
Resets timer.
toc :
Returns and prints time elapsed since last tic().
tac :
Returns and ... | oyamad/QuantEcon.py | quantecon/util/timing.py | Python | bsd-3-clause | 5,239 |
// 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 "base/bind.h"
#include "base/memory/scoped_ptr.h"
#include "content/browser/geolocation/fake_access_token_store.h"
#include "content/browser/... | cvsuser-chromium/chromium | content/browser/geolocation/location_arbitrator_impl_unittest.cc | C++ | bsd-3-clause | 10,985 |
<?php
/**
* Message translations.
*
* This file is automatically generated by 'yii 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).
... | diginmanager/digin | vendor/dektrium/yii2-rbac/messages/fr/rbac.php | PHP | bsd-3-clause | 2,291 |
#import <UIKit/UIKit.h>
#import "NTLNCacheCleaner.h"
@class NTLNBrowserViewController;
@class NTLNFriendsViewController;
@class NTLNMentionsViewController;
@class NTLNSentsViewController;
@class NTLNUnreadsViewController;
@class NTLNSettingViewController;
@class NTLNFavoriteViewController;
@class NTLNDirectMessageVie... | qskycolor/ntlniph | NatsuLion/app/NTLNAppDelegate.h | C | bsd-3-clause | 1,201 |
#!/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.
"""Tests that a set of symbols are truly pruned from the translator.
Compares the pruned down "on-device" translator with the "fa... | CTSRD-SOAAP/chromium-42.0.2311.135 | native_client/pnacl/prune_test.py | Python | bsd-3-clause | 6,842 |
package org.basex.query.func;
import static org.basex.query.QueryError.*;
import static org.basex.query.QueryText.*;
import static org.basex.util.Token.*;
import org.basex.query.*;
import org.basex.query.ann.*;
import org.basex.query.expr.*;
import org.basex.query.expr.Expr.Flag;
import org.basex.query.util.list.*;
i... | drmacro/basex | basex-core/src/main/java/org/basex/query/func/Functions.java | Java | bsd-3-clause | 12,393 |
package com.fsck.k9.message;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import android.app.Activity;
import android.app.PendingIntent;
import android.cont... | gilbertw1/k-9 | k9mail/src/test/java/com/fsck/k9/message/PgpMessageBuilderTest.java | Java | bsd-3-clause | 24,096 |
For information, api and documentation about this module: visit <b><a href="http://itsa.io">itsa.io</a></b>
[](https://travis-ci.org/itsa/event-dom)
[](https://ci.testling.com/itsa/even... | ItsAsbreuk/event-dom | README.md | Markdown | bsd-3-clause | 326 |
/**
* SAHARA Rig Client
*
* Software abstraction of physical rig to provide rig session control
* and rig device control. Automatically tests rig hardware and reports
* the rig status to ensure rig goodness.
*
* @license See LICENSE in the top level directory for complete license terms.
*
* Copyright (c) 2009... | jeking3/rig-client | src/au/edu/uts/eng/remotelabs/rigclient/rig/internal/DirectoryCopier.java | Java | bsd-3-clause | 5,944 |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkOpenGLPolyDataMapper2D.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 s... | hendradarwin/VTK | Rendering/OpenGL2/vtkOpenGLPolyDataMapper2D.h | C | bsd-3-clause | 3,670 |
SELECT STRCMP('text', 'text2') FROM db_root;
SELECT STRCMP(123, 'text2') FROM db_root;
SELECT STRCMP('text', 123) FROM db_root;
SELECT STRCMP(NULL, 'text2') FROM db_root;
SELECT STRCMP(123, NULL) FROM db_root;
SELECT STRCMP(NULL, NULL) FROM db_root;
| CUBRID/cubrid-testcases | sql/_12_mysql_compatibility/_03_string_functions/cases/_011_strcmp.sql | SQL | bsd-3-clause | 255 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.