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 |
|---|---|---|---|---|---|
import urllib
from canvas import util
def make_cookie_key(key):
return 'after_signup_' + str(key)
def _get(request, key):
key = make_cookie_key(key)
val = request.COOKIES.get(key)
if val is not None:
val = util.loads(urllib.unquote(val))
return (key, val,)
def get_posted_comment(request... | canvasnetworks/canvas | website/canvas/after_signup.py | Python | bsd-3-clause | 698 |
/*
-- MAGMA (version 1.6.1) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date January 2015
@author Mark Gates
@generated from testing_zunmqr.cpp normal z -> s, Fri Jan 30 19:00:25 2015
*/
// includes, system
#include <stdlib.h>
... | shengren/magma-1.6.1 | testing/testing_sormqr.cpp | C++ | bsd-3-clause | 7,358 |
// 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/chromeos/bluetooth/bluetooth_adapter.h"
#include "base/bind.h"
#include "base/lazy_instance.h"
#include "base/logging.h"
#in... | keishi/chromium | chrome/browser/chromeos/bluetooth/bluetooth_adapter.cc | C++ | bsd-3-clause | 19,256 |
/* this ALWAYS GENERATED file contains the IIDs and CLSIDs */
/* link this file in with the server and any clients */
/* File created by MIDL compiler version 7.00.0499 */
/* at Mon Dec 01 09:02:10 2008
*/
/* Compiler settings for e:/builds/tinderbox/XR-Trunk/WINNT_5.2_Depend/mozilla/other-licenses/ia2/Accessibl... | leighpauls/k2cro4 | third_party/xulrunner-sdk/win/include/accessibility/Accessible2_i.c | C | bsd-3-clause | 1,711 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
namespace Inbox2.Platform.Channels.Entities
{
[Serializable]
[DataContract]
public enum ProfileType
{
[EnumMember(Value = "1")]
Default = 0,
[EnumMember(Value = "2")]
... | Klaudit/inbox2_desktop | Code/Platform/Channels/Entities/ProfileType.cs | C# | bsd-3-clause | 342 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Class Simpletools\Page\Layout</title>
<link rel="stylesheet" href="resources/style.css?e99947befd7bf673c6b43ff75e9e0f170c88a60e">
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div ... | getsimpletools/getsimpletools.github.io | api/class-Simpletools.Page.Layout.html | HTML | bsd-3-clause | 23,075 |
#ifndef NT2_GALLERY_INCLUDE_FUNCTIONS_SCALAR_PARTER_HPP_INCLUDED
#define NT2_GALLERY_INCLUDE_FUNCTIONS_SCALAR_PARTER_HPP_INCLUDED
#include <nt2/gallery/functions/parter.hpp>
#endif
| hainm/pythran | third_party/nt2/gallery/include/functions/scalar/parter.hpp | C++ | bsd-3-clause | 183 |
// Copyright 2014 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package ppc64
import (
"cmd/compile/internal/gc"
"cmd/internal/obj"
"cmd/internal/obj/ppc64"
)
const (
LeftRdwr uint32 = gc.LeftRead | gc.LeftWrite
Righ... | mwhudson/go | src/cmd/compile/internal/ppc64/prog.go | GO | bsd-3-clause | 13,297 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805_int_loop_04.cpp
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805.label.xml
Template File: sources-sink-04.tmpl.cpp
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: Allocate ... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s03/CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805_int_loop_04.cpp | C++ | bsd-3-clause | 4,189 |
using System;
using System.Collections;
namespace MyGeneration.CodeSmithConversion.Template
{
public enum CstTokenType
{
Code = 0,
ResponseWriteShortcutCode,
RunAtServerCode,
Literal,
Comment,
EscapedStartTag,
EscapedEndTag
}
/// <summary>
/// Summary description for CstToken.
/// </summary>
pu... | cafephin/mygeneration | src/plugins/MyGeneration.UI.Plugins.CodeSmith2MyGen/Template/CstToken.cs | C# | bsd-3-clause | 726 |
<div>
<a href="#" title="Click or press enter to display help" class="dropdown standalone-help" data-toggle="reset-page-help" tab-index="0">
<span class="icon-circle"><i class="fa fa-info"></i></span>
</a>
</div>
<div class="dropdown-pane" id="reset-page-help" data-dro... | ucla/iam | src/partials/help-reset.html | HTML | bsd-3-clause | 786 |
/*
* @description Expression is always true via if (unsigned int >= 0)
*
* */
#include "std_testcase.h"
#ifndef OMITBAD
void CWE571_Expression_Always_True__unsigned_int_01_bad()
{
/* Ensure (0 <= intBad < UINT_MAX) and that uIntBad is pseudo-random */
unsigned int uIntBad = (unsigned int)(ra... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE571_Expression_Always_True/CWE571_Expression_Always_True__unsigned_int_01.c | C | bsd-3-clause | 1,609 |
// 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.
#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_STATS_OPTIONS_HANDLER_H_
#define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_STATS_OPTIONS_HANDLER_H_
#p... | aYukiSekiguchi/ACCESS-Chromium | chrome/browser/ui/webui/options/chromeos/stats_options_handler.h | C | bsd-3-clause | 1,298 |
ENV['RAILS_ENV'] ||= 'test'
if ENV['TRAVIS']
require 'coveralls'
Coveralls.wear!('rails')
SimpleCov.start do
add_filter '.bundle'
add_filter 'spec'
end
end
require 'spec_helper'
require File.expand_path('../../config/environment', __FILE__)
require 'rspec/rails'
require 'rspec/its'
require 'shoulda/m... | volkanunsal/nyc-prepared | spec/rails_helper.rb | Ruby | bsd-3-clause | 2,305 |
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails o... | chicoxyzzy/fbjs | packages/fbjs/src/functional/__tests__/everyObject-test.js | JavaScript | bsd-3-clause | 1,608 |
// 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 CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_
#define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_
#includ... | scheib/chromium | chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.h | C | bsd-3-clause | 5,980 |
<!DOCTYPE html>
<html dir="ltr" lang="pl">
<head>
<title>Foreign Function Interface - Rubinius</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta content='pl' http-equiv='content-language'>
<meta content='Rubinius is an implementation of the Ruby pr... | slawosz/rubinius | web/_site/doc/pl/systems/ffi/index.html | HTML | bsd-3-clause | 5,609 |
/*
* Copyright (c) 2015, 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.
*
*/
#include "Um... | evertrue/mcrouter | mcrouter/lib/network/UmbrellaProtocol.cpp | C++ | bsd-3-clause | 10,000 |
/*
* nvbio
* Copyright (c) 2011-2014, NVIDIA CORPORATION. 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,... | NVlabs/nvbio | nvbio/basic/priority_deque.h | C | bsd-3-clause | 22,231 |
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license a... | magicobject/zf2 | library/Zend/Mail/AbstractProtocol.php | PHP | bsd-3-clause | 9,877 |
/*
Copyright (c) 2013, Groupon, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disc... | groupon/mongo-deep-mapreduce | src/main/java/com/groupon/mapreduce/mongo/in/MongoRecordReader.java | Java | bsd-3-clause | 3,408 |
import numpy as np
from Coupling import Coupling
class Coupling2DCavities2D(Coupling):
"""
Coupling for cavity2D to cavity transmission.
"""
@property
def impedance_from(self):
"""
Choses the right impedance of subsystem_from.
Applies boundary conditions correction as w... | FRidh/Sea | Sea/model/couplings/Coupling2DCavities2D.py | Python | bsd-3-clause | 1,049 |
/* Generated by Font Squirrel (http://www.fontsquirrel.com) on June 7, 2012 02:07:42 PM America/New_York */
@font-face {
font-family: 'OpenSans';
src: url('OpenSans-Light-webfont.eot');
src: url('OpenSans-Light-webfont.eot?#iefix') format('embedded-opentype'),
url('OpenSans-Light-webfont.woff') fo... | Airlift-Framework/airlift-framework.github.com | fonts/open-sans.css | CSS | bsd-3-clause | 3,735 |
#include "Stencil1D.h"
int cncMain(int argc, char *argv[]) {
CNC_REQUIRE(argc == 4, "Usage: %s NUM_TILES TILE_SIZE NUM_TIMESTEPS\n", argv[0]);
// Create a new graph context
Stencil1DCtx *context = Stencil1D_create();
// initialize graph context parameters
context->numTiles = atoi(argv[1]);
c... | habanero-rice/cnc-framework | examples/tutorial/4-improved.app/Main.c | C | bsd-3-clause | 575 |
// 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 "ui/base/clipboard/test/test_clipboard.h"
#include <stddef.h>
#include <memory>
#include <utility>
#include "base/containers/contains.h"
#includ... | scheib/chromium | ui/base/clipboard/test/test_clipboard.cc | C++ | bsd-3-clause | 15,520 |
''' The `Filter` hierarchy contains Transformer classes that take a `Stim`
of one type as input and return a `Stim` of the same type as output (but with
some changes to its data).
'''
from .audio import (AudioTrimmingFilter,
AudioResamplingFilter)
from .base import TemporalTrimmingFilter
from .ima... | tyarkoni/pliers | pliers/filters/__init__.py | Python | bsd-3-clause | 1,079 |
package ch.epfl.yinyang
package transformers
import ch.epfl.yinyang._
import ch.epfl.yinyang.transformers._
import scala.reflect.macros.blackbox.Context
import language.experimental.macros
import scala.collection.mutable
import scala.collection.mutable.ArrayBuffer
/**
* Converts captured variables to holes, which wi... | vjovanov/scala-yinyang | components/core/src/transformers/HoleTransformation.scala | Scala | bsd-3-clause | 2,133 |
# Makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = build
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doc... | sunlightlabs/python-sunlight | docs/Makefile | Makefile | bsd-3-clause | 4,701 |
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... | magicobject/zf2 | library/Zend/Tool/Project/Provider/Application.php | PHP | bsd-3-clause | 3,334 |
/*
* Copyright (c) 2013 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... | windyuuy/opera | chromium/src/third_party/libvpx/source/libvpx/vp9/common/vp9_convolve.c | C | bsd-3-clause | 13,122 |
#!/usr/bin/env python
from setuptools import setup, find_packages
setup(name='reddit_gold',
description='reddit gold',
version='0.1',
author='Chad Birch',
author_email='chad@reddit.com',
packages=find_packages(),
install_requires=[
'r2',
],
entry_points={
'r2.plugin':
... | madbook/reddit-plugin-gold | setup.py | Python | bsd-3-clause | 418 |
<?php
/*
* ircPlanet Services for ircu
* Copyright (c) 2005 Brian Cline.
* 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 copyrig... | briancline/googlecode-ircplanet | Channel/commands/kickbanall.php | PHP | bsd-3-clause | 2,380 |
# -*- coding: utf-8 -*-
from django.contrib import admin
from ionyweb.plugin_app.plugin_video.models import Plugin_Video
admin.site.register(Plugin_Video)
| makinacorpus/ionyweb | ionyweb/plugin_app/plugin_video/admin.py | Python | bsd-3-clause | 157 |
/*
Copyright (C) 2009-2010 Electronic Arts, 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 conditions a... | kitsilanosoftware/EAIO | include/EAIO/FnEncode.h | C | bsd-3-clause | 5,095 |
/*
* 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/Services/DocumentQueryCore/src/test/java/gov/hhs/fha/nhinc/docquery/nhin/proxy/NhinDocQueryWebServiceProxyTest.java | Java | bsd-3-clause | 6,930 |
// 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_VIEWS_TABS_NATIVE_VIEW_PHOTOBOOTH_GTK_H_
#define CHROME_BROWSER_VIEWS_TABS_NATIVE_VIEW_PHOTOBOOTH_GTK_H_
#include "chrome/brow... | kuiche/chromium | chrome/browser/views/tabs/native_view_photobooth_gtk.h | C | bsd-3-clause | 1,069 |
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
n... | stromengine/10001 | vendor/zendframework/zendframework/library/Zend/Form/Element/Collection.php | PHP | bsd-3-clause | 17,810 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE415_Double_Free__new_delete_wchar_t_83.h
Label Definition File: CWE415_Double_Free__new_delete.label.xml
Template File: sources-sinks-83.tmpl.h
*/
/*
* @description
* CWE: 415 Double Free
* BadSource: Allocate data using new and Deallocae data using delete
... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE415_Double_Free/s02/CWE415_Double_Free__new_delete_wchar_t_83.h | C | bsd-3-clause | 1,497 |
*> \brief <b> ZCPOSV computes the solution to system of linear equations A * X = B for PO matrices</b>
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
*> \htmlonly
*> Download ZCPOSV + dependencies
*> <a href="http://www.net... | xianyi/OpenBLAS | lapack-netlib/SRC/zcposv.f | FORTRAN | bsd-3-clause | 13,922 |
/* The <sys/stat.h> header defines a struct that is used in the stat() and
* fstat functions. The information in this struct comes from the i-node of
* some file. These calls are the only approved way to inspect i-nodes.
*/
#ifndef _STAT_H
#define _STAT_H
struct stat {
dev_t st_dev; /* major/minor device num... | Godzil/ack | lib/minix/include/sys/stat.h | C | bsd-3-clause | 3,007 |
/*
* Copyright (c) 2011-2013, Longxiang He <helongxiang@smeshlink.com>,
* SmeshLink Technology Co.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY.
*
* This file is part of the CoAP.NET, a CoAP framework in C#.
* Please see README for more information.
*/
usin... | martindevans/CoAP.NET | CoAP.NET/ResponseEventArgs.cs | C# | bsd-3-clause | 893 |
// 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 MOJO_SERVICES_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_
#define MOJO_SERVICES_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_
#include "base/memory/scoped_ptr.h"
#in... | hefen1/chromium | mojo/services/html_viewer/blink_platform_impl.h | C | bsd-3-clause | 3,411 |
/*
* Copyright 2009, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | amyvmiwei/chromium | o3d/core/cross/draw_element.cc | C++ | bsd-3-clause | 2,847 |
#ifndef NT2_INCLUDE_FUNCTIONS_SLIDE_HPP_INCLUDED
#define NT2_INCLUDE_FUNCTIONS_SLIDE_HPP_INCLUDED
#include <nt2/memory/include/functions/slide.hpp>
#include <nt2/memory/include/functions/scalar/slide.hpp>
#include <nt2/memory/include/functions/simd/slide.hpp>
#endif
| hainm/pythran | third_party/nt2/include/functions/slide.hpp | C++ | bsd-3-clause | 269 |
// 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 "content/browser/download/mhtml_generation_manager.h"
#include <map>
#include <queue>
#include <utility>
#include "base/bind.h"
#include "b... | danakj/chromium | content/browser/download/mhtml_generation_manager.cc | C++ | bsd-3-clause | 16,585 |
package com.skcraft.plume.event.block;
import com.google.common.base.Functions;
import com.google.common.base.Predicate;
import com.skcraft.plume.event.BulkEvent;
import com.skcraft.plume.event.Cause;
import com.skcraft.plume.event.DelegateEvent;
import com.skcraft.plume.event.Result;
import com.skcraft.plume.util.Loc... | wizjany/Plume | src/main/java/com/skcraft/plume/event/block/BlockEvent.java | Java | bsd-3-clause | 1,892 |
class Blog < ActiveRecord::Base
has_many :posts
has_many :comments, :through => :posts
attr_accessible :name, :subdomain
searchable :include => { :posts => :author } do
string :subdomain
text :name
end
# Make sure that includes are added to with multiple searchable calls
searchable(:include => ... | hafeild/alice | vendor/bundle/ruby/2.3.0/gems/sunspot_rails-2.3.0/spec/rails_app/app/models/blog.rb | Ruby | bsd-3-clause | 338 |
<!doctype html>
<html>
<title>shrinkwrap</title>
<meta http-equiv="content-type" value="text/html;utf-8">
<link rel="stylesheet" type="text/css" href="../static/style.css">
<body>
<div id="wrapper">
<h1><a href="../doc/shrinkwrap.html">shrinkwrap</a></h1> <p>Lock down dependency versions</p>
<h2 id="SYNOP... | exhibia/exhibia | include/addons/design_suite/js/html2image/node-v0.10.0-linux-x64/lib/node_modules/npm/html/doc/shrinkwrap.html | HTML | bsd-3-clause | 8,261 |
from __future__ import unicode_literals
__all__ = (
'Key',
'Keys',
)
class Key(object):
def __init__(self, name):
#: Descriptive way of writing keys in configuration files. e.g. <C-A>
#: for ``Control-A``.
self.name = name
def __repr__(self):
return '%s(%r)' % (self.... | jaseg/python-prompt-toolkit | prompt_toolkit/keys.py | Python | bsd-3-clause | 2,546 |
/*
* Copyright (c) 2004-2022, 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 copyright notice, this
* list of cond... | hispindia/dhis2-Core | dhis-2/dhis-api/src/main/java/org/hisp/dhis/expression/ExpressionService.java | Java | bsd-3-clause | 11,199 |
#!/usr/bin/env python
"""
================
sMRI: FreeSurfer
================
This script, smri_freesurfer.py, demonstrates the ability to call reconall on
a set of subjects and then make an average subject.
python smri_freesurfer.py
Import necessary modules from nipype.
"""
import os
import nipype.pipeline.eng... | FredLoney/nipype | examples/smri_freesurfer.py | Python | bsd-3-clause | 1,804 |
{% extends "email/_notification.html" %}
{% set replied_comment = notification.comment.parent_comment %}
{% set replied_content = notification.comment.parent_comment.reply_content %}
{% block headline %}
<span><strong>Your thread</strong> received a <strong>reply</strong> from
{% endblock %}
{% block email_type %}t... | canvasnetworks/canvas | website/templates/email/thread_replied.html | HTML | bsd-3-clause | 359 |
/*===================================================================
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... | iwegner/MITK | Plugins/org.mitk.gui.qt.igt.app.echotrack/src/internal/Widgets/QmitkUSNavigationProcessWidget.cpp | C++ | bsd-3-clause | 18,872 |
// Copyright 2021 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/image_editor/screenshot_flow.h"
#include <memory>
#include "base/logging.h"
#include "build/build_config.h"
#include "content/p... | scheib/chromium | chrome/browser/image_editor/screenshot_flow.cc | C++ | bsd-3-clause | 13,138 |
// 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.
#ifndef CHROME_COMMON_CHROME_CONTENT_CLIENT_H_
#define CHROME_COMMON_CHROME_CONTENT_CLIENT_H_
#pragma once
#include "base/compiler_specific.h"
#inclu... | aYukiSekiguchi/ACCESS-Chromium | chrome/common/chrome_content_client.h | C | bsd-3-clause | 1,655 |
/*
* Copyright (C) 2007, 2008, 2013 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 above copyright
* notice, this lis... | scheib/chromium | third_party/blink/renderer/modules/webdatabase/database_tracker.h | C | bsd-3-clause | 4,513 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE457_Use_of_Uninitialized_Variable__char_pointer_64b.c
Label Definition File: CWE457_Use_of_Uninitialized_Variable.c.label.xml
Template File: sources-sinks-64b.tmpl.c
*/
/*
* @description
* CWE: 457 Use of Uninitialized Variable
* BadSource: no_init Don't initi... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE457_Use_of_Uninitialized_Variable/s01/CWE457_Use_of_Uninitialized_Variable__char_pointer_64b.c | C | bsd-3-clause | 1,932 |
// 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 "content/common/child_histogram_message_filter.h"
#include <ctype.h>
#include "base/bind.h"
#include "base/message_loop.h"
#include "base/m... | zcbenz/cefode-chromium | content/common/child_histogram_message_filter.cc | C++ | bsd-3-clause | 3,578 |
/*
* Copyright (C) 2013 Soumith Chintala
*
*/
#include <jni.h>
#include <stdio.h>
#include <stdlib.h>
#include "torchandroid.h"
#include <assert.h>
extern "C" {
JNIEXPORT jstring JNICALL
Java_com_torch_Torch_jni_1call( JNIEnv* env,
jobject thiz,
... | Jeff-Huang/th-android | src/torchcall.cpp | C++ | bsd-3-clause | 1,727 |
<?php
use yii\helpers\Html;
?>
<?php foreach ($_model as $photo): ?>
<div class="thumb" style="float:left;padding: 2px" data-name="<?= $photo->name ?>" onclick="ShowFullImage('<?= $photo->name ?>')" >
<div>
<?= Html::img('/upload/m... | kotmonstr/kotmonstr | frontend/modules/image/views/default/get-photo.php | PHP | bsd-3-clause | 1,011 |
package io.flutter.embedding.engine.mutatorsstack;
import static junit.framework.TestCase.*;
import static org.mockito.Mockito.*;
import android.graphics.Matrix;
import android.view.MotionEvent;
import io.flutter.embedding.android.AndroidTouchProcessor;
import org.junit.Test;
import org.junit.runner.RunWith;
import o... | chinmaygarde/flutter_engine | shell/platform/android/test/io/flutter/embedding/engine/mutatorsstack/FlutterMutatorViewTest.java | Java | bsd-3-clause | 3,135 |
package org.hisp.dhis.dxf2.adx;
/*
* Copyright (c) 2015, UiO
* 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, th... | uonafya/jphes-core | dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/adx/AdxDataSetMetadata.java | Java | bsd-3-clause | 4,017 |
<?php
/**
* Created by PhpStorm.
* User: qhuy
* Date: 18/12/2014
* Time: 21:59
*/
namespace backend\models;
use common\helpers\CommonUtils;
use common\helpers\CVietnameseTools;
use common\helpers\MediaToolBoxHelper;
use common\helpers\MyCurl;
use common\models\Content;
use common\models\News;
use garyjl\simpleh... | tuanpv1/news | backend/models/Image.php | PHP | bsd-3-clause | 19,090 |
Ext.define('Ozone.data.Dashboard', {
extend: 'Ext.data.Model',
idProperty: 'guid',
fields:[
'alteredByAdmin',
'guid',
{name:'id', mapping: 'guid'},
{ name: 'isdefault', type: 'boolean', defaultValue: false },
{ name: 'dashboardPosition', type: 'int' },
... | Nanonid/tcsolrsvc | webapps/owf/js/owf-group-dashboard-management-widget.js | JavaScript | bsd-3-clause | 24,987 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE36_Absolute_Path_Traversal__wchar_t_file_fopen_45.cpp
Label Definition File: CWE36_Absolute_Path_Traversal.label.xml
Template File: sources-sink-45.tmpl.cpp
*/
/*
* @description
* CWE: 36 Absolute Path Traversal
* BadSource: file Read input from a file
* Goo... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE36_Absolute_Path_Traversal/s04/CWE36_Absolute_Path_Traversal__wchar_t_file_fopen_45.cpp | C++ | bsd-3-clause | 3,879 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE401_Memory_Leak__new_twoIntsStruct_52b.cpp
Label Definition File: CWE401_Memory_Leak__new.label.xml
Template File: sources-sinks-52b.tmpl.cpp
*/
/*
* @description
* CWE: 401 Memory Leak
* BadSource: Allocate data using new
* GoodSource: Allocate data on the... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE401_Memory_Leak/s02/CWE401_Memory_Leak__new_twoIntsStruct_52b.cpp | C++ | bsd-3-clause | 1,293 |
/***********************************************************************
* Copyright (c) 2009, Secure Endpoints 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... | pexip/os-heimdal | lib/roken/simple_exec_w32.c | C | bsd-3-clause | 10,338 |
/*
* Copyright (c) 2007-2009 The LIBLINEAR Project.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this ... | besser82/shogun | src/shogun/optimization/liblinear/shogun_liblinear.h | C | bsd-3-clause | 6,507 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE805_struct_memcpy_22a.c
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE805.label.xml
Template File: sources-sink-22a.tmpl.c
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: Allocate u... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s08/CWE122_Heap_Based_Buffer_Overflow__c_CWE805_struct_memcpy_22a.c | C | bsd-3-clause | 4,955 |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/login/users/chrome_user_manager_impl.h"
#include <cstddef>
#include <set>
#include "ash/multi_profile_uma.h"
#include ... | 7kbird/chrome | chrome/browser/chromeos/login/users/chrome_user_manager_impl.cc | C++ | bsd-3-clause | 39,004 |
/*
* pointcloud_publisher_node.cpp
*
* Created on: Aug 19, 2021
* Author: Edo Jelavic
* Institute: ETH Zurich, Robotic Systems Lab
*/
#include <pcl_conversions/pcl_conversions.h>
#include <ros/ros.h>
#include <sensor_msgs/PointCloud2.h>
#include "grid_map_pcl/helpers.hpp"
namespace gm = ::grid_map::g... | ethz-asl/grid_map | grid_map_pcl/src/pointcloud_publisher_node.cpp | C++ | bsd-3-clause | 1,327 |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_METRICS_CHROMEOS_METRICS_PROVIDER_H_
#define CHROME_BROWSER_METRICS_CHROMEOS_METRICS_PROVIDER_H_
#include "base/memory/weak_ptr.h"... | hefen1/chromium | chrome/browser/metrics/chromeos_metrics_provider.h | C | bsd-3-clause | 3,015 |
// 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 MEDIA_GPU_VAAPI_VAAPI_JPEG_DECODER_H_
#define MEDIA_GPU_VAAPI_VAAPI_JPEG_DECODER_H_
#include <stdint.h>
#include <memory>
#include "base/macros... | youtube/cobalt | third_party/chromium/media/gpu/vaapi/vaapi_jpeg_decoder.h | C | bsd-3-clause | 2,534 |
using System;
using Inbox2.Framework;
namespace Inbox2.Core.Configuration
{
public static class CloudApi
{
public static string ApiBaseUrl
{
get
{
return String.Format("http://api{0}.inbox2.com/",
String.IsNullOrEmpty(CommandLine.Current.Environment) ? String.Empty : "." + CommandLi... | Klaudit/inbox2_desktop | Code/Client/Inbox2/Core/Configuration/CloudApi.cs | C# | bsd-3-clause | 616 |
// 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 "content/browser/payments/payment_app_info_fetcher.h"
#include <limits>
#include <utility>
#include "base/base64.h"
#include "base/bind.h"
#inc... | scheib/chromium | content/browser/payments/payment_app_info_fetcher.cc | C++ | bsd-3-clause | 13,104 |
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_THIRD_PARTY_QUIC_TEST_TOOLS_QUIC_STREAM_SEQUENCER_BUFFER_PEER_H_
#define NET_THIRD_PARTY_QUIC_TEST_TOOLS_QUIC_STREAM_SEQUENCER_BUFFER_PEER_H_
... | youtube/cobalt | net/third_party/quic/test_tools/quic_stream_sequencer_buffer_peer.h | C | bsd-3-clause | 1,819 |
// 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.
/**
* @fileoverview A command is an abstraction of an action a user can do in the
* UI.
*
* When the focus changes in the document for each comman... | timopulkkinen/BubbleFish | ui/webui/resources/js/cr/ui/command.js | JavaScript | bsd-3-clause | 8,976 |
/**
******************************************************************************
* api-scanner - Scan for API imports from a packaged 360 game *
******************************************************************************
* Copyright 2015 x1nixmzeng. All rights reserved. ... | sephiroth99/xenia | src/xenia/tools/api-scanner/api_scanner_main.cc | C++ | bsd-3-clause | 1,501 |
// 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.
#ifndef COMPONENTS_ERROR_PAGE_COMMON_LOCALIZED_ERROR_H_
#define COMPONENTS_ERROR_PAGE_COMMON_LOCALIZED_ERROR_H_
#include <memory>
#include <string>
... | scheib/chromium | components/error_page/common/localized_error.h | C | bsd-3-clause | 2,380 |
using System.Linq.Expressions;
using NHibernate.Metadata;
namespace NHibernate.Linq.Expressions
{
public class EntityExpression : NHibernateExpression
{
private readonly string _alias;
private readonly string _associationPath;
private readonly IClassMetadata _metaData;
private readonly Expression _expression... | OrchardCMS/Orchard | src/Libraries/NHibernate/NHibernate.Linq/Expressions/EntityExpression.cs | C# | bsd-3-clause | 1,479 |
/*
* Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org)
* Copyright (C) 2009 Google Inc. All rights reserved.
* Copyright (C) 2011 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 ... | ds-hwang/chromium-crosswalk | third_party/WebKit/Source/platform/network/HTTPParsers.h | C | bsd-3-clause | 4,724 |
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package x509
import (
"strings"
"time"
"unicode/utf8"
)
type InvalidReason int
const (
// NotAuthorizedToSign results when a certificate is signed by ano... | tav/go | src/pkg/crypto/x509/verify.go | GO | bsd-3-clause | 8,108 |
/*
* Implements dynamic task queues to provide load balancing
* Sanjeev Kumar --- December, 2004
*/
#ifndef __TASKQ_INTERNAL_H__
#define __TASKQ_INTERNAL_H__
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef MAXFLOW
#include <taskQMaxflow.h>
#else
#include "../include/taskQ.h"
#endif
#if... | anasazi/POP-REU-Project | pkgs/apps/facesim/src/TaskQ/lib/taskQInternal.h | C | bsd-3-clause | 7,506 |
/*
*
* 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... | miselin/grpc | src/core/lib/surface/completion_queue.c | C | bsd-3-clause | 16,842 |
import shutil
from nose.tools import *
from holland.lib.lvm import LogicalVolume
from holland.lib.lvm.snapshot import *
from tests.constants import *
class TestSnapshot(object):
def setup(self):
self.tmpdir = tempfile.mkdtemp()
def teardown(self):
shutil.rmtree(self.tmpdir)
def test_snap... | m00dawg/holland | plugins/holland.lib.lvm/tests/xfs/test_snapshot.py | Python | bsd-3-clause | 1,824 |
/*
* 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.
*/
package com.mitchellbosecke.pebble.extension;
import com.mitchellbosecke.pebble.attributes.AttributeResol... | mbosecke/pebble | pebble/src/main/java/com/mitchellbosecke/pebble/extension/AbstractExtension.java | Java | bsd-3-clause | 1,366 |
<!DOCTYPE html>
<!--
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.
-->
<link rel="import" href="/core/analysis/analysis_sub_view.html">
<link rel="import" href="/core/analysis/util.html">
<link rel="import... | vmpstr/trace-viewer | trace_viewer/core/analysis/single_cpu_slice_sub_view.html | HTML | bsd-3-clause | 3,547 |
//*****************************************************************************
//
// fontcmss46b.c - Font definition for the 46 point Cmss bold font.
//
// Copyright (c) 2008-2010 Texas Instruments Incorporated. All rights reserved.
// Software License Agreement
//
// Texas Instruments (TI) is supplying this softwar... | vastsoun/bbmc-starterware | grlib/fonts/fontcmss46b.c | C | bsd-3-clause | 32,274 |
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | strahanjen/strahanjen.github.io | elasticsearch-master/core/src/test/java/org/elasticsearch/cluster/routing/allocation/CatAllocationTestCase.java | Java | bsd-3-clause | 8,869 |
.editable:hover {
background-color: #FDFDFF;
box-shadow: 0 0 20px #D5E3ED;
-webkit-background-clip: padding-box;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
#wysihtml5-toolbar {
box-shadow: 0 0 5px #999;
position: fixed;
top: 10px;
left: 10px;
width: 50px;
-webki... | handlers/openingparliament | static/wysihtml5/css/editor.css | CSS | bsd-3-clause | 2,346 |
/**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.rules.design;
import net.sourceforge.pmd.AbstractRule;
import net.sourceforge.pmd.ast.ASTAssignmentOperator;
import net.sourceforge.pmd.ast.ASTConditionalExpression;
import net.sourceforge.pmd.ast.ASTEqu... | pscadiz/pmd-4.2.6-gds | src/net/sourceforge/pmd/rules/design/NullAssignmentRule.java | Java | bsd-3-clause | 2,343 |
/**
* 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.
*
*/
'use str... | Maxwell2022/react-native | Libraries/Lists/__tests__/VirtualizedList-test.js | JavaScript | bsd-3-clause | 2,405 |
<?php
namespace Sabre\DAVACL\PrincipalBackend;
/**
* Abstract Principal Backend
*
* Currently this class has no function. It's here for consistency and so we
* have a non-bc-breaking way to add a default generic implementation to
* functions we may add in the future.
*
* @copyright Copyright (C) 2007-2014 fruu... | evert/sabre-dav | lib/DAVACL/PrincipalBackend/AbstractBackend.php | PHP | bsd-3-clause | 1,535 |
#include <omp.h>
#include <math.h>
#define ceild(n,d) ceil(((double)(n))/((double)(d)))
#define floord(n,d) floor(((double)(n))/((double)(d)))
#define max(x,y) ((x) > (y)? (x) : (y))
#define min(x,y) ((x) < (y)? (x) : (y))
/*
* Order-1, 3D 7 point stencil
* Adapted from PLUTO and Pochoir test bench
*
* Tare... | tareqmalas/girih | pluto_examples/gen_kernels/lbpar_3d7pt4_4_8_64/3d7pt.lbpar.c | C | bsd-3-clause | 7,590 |
/*
* Copyright © 2018-2019, VideoLAN and dav1d authors
* Copyright © 2018-2019, Two Orioles, LLC
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must ... | endlessm/chromium-browser | third_party/dav1d/libdav1d/src/itx_tmpl.c | C | bsd-3-clause | 9,450 |
// 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.
#include <limits.h>
#include <stddef.h>
#include <stdint.h>
#include "base/files/file_path.h"
#include "base/files/memory_mapped_file.h"
#include "base/l... | endlessm/chromium-browser | tools/ipc_fuzzer/message_lib/message_file_reader.cc | C++ | bsd-3-clause | 6,548 |
// 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 "chrome/browser/renderer_host/chrome_url_request_user_data.h"
namespace {
const char* const kKeyName = "chrome_url_request_user_data";
} ... | aYukiSekiguchi/ACCESS-Chromium | chrome/browser/renderer_host/chrome_url_request_user_data.cc | C++ | bsd-3-clause | 1,050 |
// 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.
#ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_
#define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_
#pragma once
#include <set>... | meego-tablet-ux/meego-app-browser | content/browser/renderer_host/render_process_host.h | C | bsd-3-clause | 13,234 |
package org.scalameter
import org.scalameter.examples.BoxingCountBench
import org.scalameter.examples.MethodInvocationCountBench
class BoxingCountBenchTest extends InvocationCountMeasurerTest {
test("BoxingCountTest.all should be deterministic") {
checkInvocationCountMeasurerTest(new BoxingCountBench)
}
}... | storm-enroute/scalameter | src/test/scala/org/scalameter/invocationCountMeasurersTests.scala | Scala | bsd-3-clause | 546 |
define(["require"], function (require) {
function boot(ev) {
ev.target.removeEventListener("click", boot);
require(["demos/water/water"]);
}
const start = document.querySelector(".code-demo.water [data-trigger='water.start']");
start.addEventListener("click", boot);
start.disabled ... | canena/canena.github.io | src/_resources/js/demos/water/boot.js | JavaScript | bsd-3-clause | 333 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.