repo_name
stringlengths
4
116
path
stringlengths
3
942
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
canvasnetworks/canvas
website/canvas/after_signup.py
698
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...
bsd-3-clause
shengren/magma-1.6.1
testing/testing_sormqr.cpp
7358
/* -- 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> ...
bsd-3-clause
keishi/chromium
chrome/browser/chromeos/bluetooth/bluetooth_adapter.cc
19256
// 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...
bsd-3-clause
leighpauls/k2cro4
third_party/xulrunner-sdk/win/include/accessibility/Accessible2_i.c
1711
/* 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...
bsd-3-clause
Klaudit/inbox2_desktop
Code/Platform/Channels/Entities/ProfileType.cs
342
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")] ...
bsd-3-clause
getsimpletools/getsimpletools.github.io
api/class-Simpletools.Page.Layout.html
23075
<!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 ...
bsd-3-clause
hainm/pythran
third_party/nt2/gallery/include/functions/scalar/parter.hpp
183
#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
bsd-3-clause
mwhudson/go
src/cmd/compile/internal/ppc64/prog.go
13297
// 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...
bsd-3-clause
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s03/CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805_int_loop_04.cpp
4189
/* 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 ...
bsd-3-clause
cafephin/mygeneration
src/plugins/MyGeneration.UI.Plugins.CodeSmith2MyGen/Template/CstToken.cs
726
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...
bsd-3-clause
ucla/iam
src/partials/help-reset.html
786
<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...
bsd-3-clause
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE571_Expression_Always_True/CWE571_Expression_Always_True__unsigned_int_01.c
1609
/* * @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...
bsd-3-clause
aYukiSekiguchi/ACCESS-Chromium
chrome/browser/ui/webui/options/chromeos/stats_options_handler.h
1298
// 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...
bsd-3-clause
volkanunsal/nyc-prepared
spec/rails_helper.rb
2305
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...
bsd-3-clause
chicoxyzzy/fbjs
packages/fbjs/src/functional/__tests__/everyObject-test.js
1608
/** * 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...
bsd-3-clause
scheib/chromium
chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.h
5980
// 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...
bsd-3-clause
slawosz/rubinius
web/_site/doc/pl/systems/ffi/index.html
5609
<!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...
bsd-3-clause
evertrue/mcrouter
mcrouter/lib/network/UmbrellaProtocol.cpp
10000
/* * 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...
bsd-3-clause
NVlabs/nvbio
nvbio/basic/priority_deque.h
22231
/* * 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,...
bsd-3-clause
magicobject/zf2
library/Zend/Mail/AbstractProtocol.php
9877
<?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...
bsd-3-clause
groupon/mongo-deep-mapreduce
src/main/java/com/groupon/mapreduce/mongo/in/MongoRecordReader.java
3408
/* 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...
bsd-3-clause
FRidh/Sea
Sea/model/couplings/Coupling2DCavities2D.py
1049
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...
bsd-3-clause
Airlift-Framework/airlift-framework.github.com
fonts/open-sans.css
3735
/* 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...
bsd-3-clause
habanero-rice/cnc-framework
examples/tutorial/4-improved.app/Main.c
575
#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...
bsd-3-clause
scheib/chromium
ui/base/clipboard/test/test_clipboard.cc
15520
// 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...
bsd-3-clause
tyarkoni/pliers
pliers/filters/__init__.py
1079
''' 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...
bsd-3-clause
vjovanov/scala-yinyang
components/core/src/transformers/HoleTransformation.scala
2133
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...
bsd-3-clause
sunlightlabs/python-sunlight
docs/Makefile
4701
# 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...
bsd-3-clause
magicobject/zf2
library/Zend/Tool/Project/Provider/Application.php
3334
<?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...
bsd-3-clause
windyuuy/opera
chromium/src/third_party/libvpx/source/libvpx/vp9/common/vp9_convolve.c
13122
/* * 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...
bsd-3-clause
madbook/reddit-plugin-gold
setup.py
418
#!/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': ...
bsd-3-clause
briancline/googlecode-ircplanet
Channel/commands/kickbanall.php
2380
<?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...
bsd-3-clause
makinacorpus/ionyweb
ionyweb/plugin_app/plugin_video/admin.py
157
# -*- coding: utf-8 -*- from django.contrib import admin from ionyweb.plugin_app.plugin_video.models import Plugin_Video admin.site.register(Plugin_Video)
bsd-3-clause
kitsilanosoftware/EAIO
include/EAIO/FnEncode.h
5095
/* 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...
bsd-3-clause
beiyuxinke/CONNECT
Product/Production/Services/DocumentQueryCore/src/test/java/gov/hhs/fha/nhinc/docquery/nhin/proxy/NhinDocQueryWebServiceProxyTest.java
6930
/* * 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 ...
bsd-3-clause
kuiche/chromium
chrome/browser/views/tabs/native_view_photobooth_gtk.h
1069
// 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...
bsd-3-clause
stromengine/10001
vendor/zendframework/zendframework/library/Zend/Form/Element/Collection.php
17810
<?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...
bsd-3-clause
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE415_Double_Free/s02/CWE415_Double_Free__new_delete_wchar_t_83.h
1497
/* 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 ...
bsd-3-clause
xianyi/OpenBLAS
lapack-netlib/SRC/zcposv.f
13922
*> \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...
bsd-3-clause
Godzil/ack
lib/minix/include/sys/stat.h
3007
/* 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...
bsd-3-clause
martindevans/CoAP.NET
CoAP.NET/ResponseEventArgs.cs
893
/* * 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...
bsd-3-clause
hefen1/chromium
mojo/services/html_viewer/blink_platform_impl.h
3411
// 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...
bsd-3-clause
amyvmiwei/chromium
o3d/core/cross/draw_element.cc
2847
/* * 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...
bsd-3-clause
hainm/pythran
third_party/nt2/include/functions/slide.hpp
269
#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
bsd-3-clause
danakj/chromium
content/browser/download/mhtml_generation_manager.cc
16585
// 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...
bsd-3-clause
wizjany/Plume
src/main/java/com/skcraft/plume/event/block/BlockEvent.java
1892
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...
bsd-3-clause
hafeild/alice
vendor/bundle/ruby/2.3.0/gems/sunspot_rails-2.3.0/spec/rails_app/app/models/blog.rb
338
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 => ...
bsd-3-clause
exhibia/exhibia
include/addons/design_suite/js/html2image/node-v0.10.0-linux-x64/lib/node_modules/npm/html/doc/shrinkwrap.html
8261
<!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...
bsd-3-clause
jaseg/python-prompt-toolkit
prompt_toolkit/keys.py
2546
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....
bsd-3-clause
hispindia/dhis2-Core
dhis-2/dhis-api/src/main/java/org/hisp/dhis/expression/ExpressionService.java
11199
/* * 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...
bsd-3-clause
FredLoney/nipype
examples/smri_freesurfer.py
1804
#!/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...
bsd-3-clause
canvasnetworks/canvas
website/templates/email/thread_replied.html
359
{% 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...
bsd-3-clause
iwegner/MITK
Plugins/org.mitk.gui.qt.igt.app.echotrack/src/internal/Widgets/QmitkUSNavigationProcessWidget.cpp
18872
/*=================================================================== 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...
bsd-3-clause
scheib/chromium
chrome/browser/image_editor/screenshot_flow.cc
13138
// 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...
bsd-3-clause
aYukiSekiguchi/ACCESS-Chromium
chrome/common/chrome_content_client.h
1655
// 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...
bsd-3-clause
scheib/chromium
third_party/blink/renderer/modules/webdatabase/database_tracker.h
4513
/* * 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...
bsd-3-clause
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE457_Use_of_Uninitialized_Variable/s01/CWE457_Use_of_Uninitialized_Variable__char_pointer_64b.c
1932
/* 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...
bsd-3-clause
zcbenz/cefode-chromium
content/common/child_histogram_message_filter.cc
3578
// 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...
bsd-3-clause
Jeff-Huang/th-android
src/torchcall.cpp
1727
/* * 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, ...
bsd-3-clause
kotmonstr/kotmonstr
frontend/modules/image/views/default/get-photo.php
1011
<?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...
bsd-3-clause
chinmaygarde/flutter_engine
shell/platform/android/test/io/flutter/embedding/engine/mutatorsstack/FlutterMutatorViewTest.java
3135
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...
bsd-3-clause
uonafya/jphes-core
dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/adx/AdxDataSetMetadata.java
4017
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...
bsd-3-clause
tuanpv1/news
backend/models/Image.php
19090
<?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...
bsd-3-clause
Nanonid/tcsolrsvc
webapps/owf/js/owf-group-dashboard-management-widget.js
24987
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' }, ...
bsd-3-clause
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE36_Absolute_Path_Traversal/s04/CWE36_Absolute_Path_Traversal__wchar_t_file_fopen_45.cpp
3879
/* 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...
bsd-3-clause
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE401_Memory_Leak/s02/CWE401_Memory_Leak__new_twoIntsStruct_52b.cpp
1293
/* 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...
bsd-3-clause
pexip/os-heimdal
lib/roken/simple_exec_w32.c
10338
/*********************************************************************** * 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...
bsd-3-clause
besser82/shogun
src/shogun/optimization/liblinear/shogun_liblinear.h
6507
/* * 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 ...
bsd-3-clause
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s08/CWE122_Heap_Based_Buffer_Overflow__c_CWE805_struct_memcpy_22a.c
4955
/* 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...
bsd-3-clause
7kbird/chrome
chrome/browser/chromeos/login/users/chrome_user_manager_impl.cc
39004
// 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 ...
bsd-3-clause
ethz-asl/grid_map
grid_map_pcl/src/pointcloud_publisher_node.cpp
1327
/* * 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...
bsd-3-clause
hefen1/chromium
chrome/browser/metrics/chromeos_metrics_provider.h
3015
// 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"...
bsd-3-clause
youtube/cobalt
third_party/chromium/media/gpu/vaapi/vaapi_jpeg_decoder.h
2534
// 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...
bsd-3-clause
Klaudit/inbox2_desktop
Code/Client/Inbox2/Core/Configuration/CloudApi.cs
616
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...
bsd-3-clause
scheib/chromium
content/browser/payments/payment_app_info_fetcher.cc
13104
// 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...
bsd-3-clause
youtube/cobalt
net/third_party/quic/test_tools/quic_stream_sequencer_buffer_peer.h
1819
// 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_ ...
bsd-3-clause
timopulkkinen/BubbleFish
ui/webui/resources/js/cr/ui/command.js
8976
// 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...
bsd-3-clause
sephiroth99/xenia
src/xenia/tools/api-scanner/api_scanner_main.cc
1501
/** ****************************************************************************** * api-scanner - Scan for API imports from a packaged 360 game * ****************************************************************************** * Copyright 2015 x1nixmzeng. All rights reserved. ...
bsd-3-clause
scheib/chromium
components/error_page/common/localized_error.h
2380
// 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> ...
bsd-3-clause
OrchardCMS/Orchard
src/Libraries/NHibernate/NHibernate.Linq/Expressions/EntityExpression.cs
1479
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...
bsd-3-clause
ds-hwang/chromium-crosswalk
third_party/WebKit/Source/platform/network/HTTPParsers.h
4724
/* * 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 ...
bsd-3-clause
tav/go
src/pkg/crypto/x509/verify.go
8108
// 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...
bsd-3-clause
anasazi/POP-REU-Project
pkgs/apps/facesim/src/TaskQ/lib/taskQInternal.h
7506
/* * 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...
bsd-3-clause
miselin/grpc
src/core/lib/surface/completion_queue.c
16842
/* * * 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...
bsd-3-clause
m00dawg/holland
plugins/holland.lib.lvm/tests/xfs/test_snapshot.py
1824
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...
bsd-3-clause
mbosecke/pebble
pebble/src/main/java/com/mitchellbosecke/pebble/extension/AbstractExtension.java
1366
/* * 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...
bsd-3-clause
vmpstr/trace-viewer
trace_viewer/core/analysis/single_cpu_slice_sub_view.html
3547
<!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...
bsd-3-clause
vastsoun/bbmc-starterware
grlib/fonts/fontcmss46b.c
32274
//***************************************************************************** // // 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...
bsd-3-clause
strahanjen/strahanjen.github.io
elasticsearch-master/core/src/test/java/org/elasticsearch/cluster/routing/allocation/CatAllocationTestCase.java
8869
/* * 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...
bsd-3-clause
handlers/openingparliament
static/wysihtml5/css/editor.css
2346
.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...
bsd-3-clause
pscadiz/pmd-4.2.6-gds
src/net/sourceforge/pmd/rules/design/NullAssignmentRule.java
2343
/** * 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...
bsd-3-clause
Maxwell2022/react-native
Libraries/Lists/__tests__/VirtualizedList-test.js
2405
/** * 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...
bsd-3-clause
evert/sabre-dav
lib/DAVACL/PrincipalBackend/AbstractBackend.php
1535
<?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...
bsd-3-clause
tareqmalas/girih
pluto_examples/gen_kernels/lbpar_3d7pt4_4_8_64/3d7pt.lbpar.c
7590
#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...
bsd-3-clause
endlessm/chromium-browser
third_party/dav1d/libdav1d/src/itx_tmpl.c
9450
/* * 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 ...
bsd-3-clause
endlessm/chromium-browser
tools/ipc_fuzzer/message_lib/message_file_reader.cc
6548
// 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...
bsd-3-clause
aYukiSekiguchi/ACCESS-Chromium
chrome/browser/renderer_host/chrome_url_request_user_data.cc
1050
// 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"; } ...
bsd-3-clause
meego-tablet-ux/meego-app-browser
content/browser/renderer_host/render_process_host.h
13234
// 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>...
bsd-3-clause
storm-enroute/scalameter
src/test/scala/org/scalameter/invocationCountMeasurersTests.scala
546
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) } }...
bsd-3-clause
canena/canena.github.io
src/_resources/js/demos/water/boot.js
333
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 ...
bsd-3-clause