repo_name string | path string | copies string | size string | content string | license string |
|---|---|---|---|---|---|
nwjs/blink | Source/core/dom/Range.cpp | 5 | 67384 | /*
* (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 2000 Gunnstein Lye (gunnstein@netcom.no)
* (C) 2000 Frederik Holljen (frederik.holljen@hig.no)
* (C) 2001 Peter Kelly (pmk@post.com)
* Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
* Copyright (C) 2011 Motorola Mobility.... | bsd-3-clause |
buaasun/grappa | applications/NPB/MPI/LU/exchange_6.f | 5 | 2409 |
c---------------------------------------------------------------------
c---------------------------------------------------------------------
subroutine exchange_6(g,jbeg,jfin1)
c---------------------------------------------------------------------
c-------------------------------------------------------------... | bsd-3-clause |
ylow/SFrame | oss_src/fault/query_object_server_replica.cpp | 5 | 7125 | /**
* Copyright (C) 2016 Turi
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
#include <poll.h>
#include <unistd.h>
#include <fault/query_object_server_replica.hpp>
#include <fault/query_object_server_internal_sign... | bsd-3-clause |
mirror/libtorrent | src/receive_buffer.cpp | 5 | 12278 | /*
Copyright (c) 2014, Arvid Norberg, Steven Siloti
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 |
ehein6/stinger | src/clients/tools/json_rpc_server/src/get_data_array_set.cpp | 6 | 2568 | #include "json_rpc_server.h"
#include "json_rpc.h"
#include "rapidjson/document.h"
#define LOG_AT_W /* warning only */
#include "stinger_core/stinger_error.h"
using namespace gt::stinger;
int64_t
JSON_RPC_get_data_array_set::operator()(rapidjson::Value * params, rapidjson::Value & result, rapidjson::MemoryPoolAll... | bsd-3-clause |
MohamedSeliem/contiki | platform/srf06-cc26xx/common/board-spi.c | 7 | 5385 | /*
* Copyright (c) 2014, Texas Instruments Incorporated - http://www.ti.com/
* 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 copy... | bsd-3-clause |
holtgrewe/seqan | extras/demos/tutorial/data_journaling/example_journal_string_basic.cpp | 8 | 1438 | // FRAGMENT(main)
#include <iostream>
#include <seqan/file.h>
#include <seqan/sequence_journaled.h>
using namespace seqan;
int main()
{
// FRAGMENT(typedef)
typedef String<char, Journaled<Alloc<>, SortedArray, Alloc<> > > TJournaledString;
typedef Host<TJournaledString>::Type THost;
// FRAGMENT(init)... | bsd-3-clause |
yoannd/mtcp | dpdk-2.2.0/lib/share/dpdk/examples/ip_pipeline/pipeline/pipeline_firewall.c | 8 | 46457 | /*-
* BSD LICENSE
*
* Copyright(c) 2010-2015 Intel Corporation. All rights reserved.
* 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 cod... | bsd-3-clause |
swcho/strace_4.8_hack | quota.c | 12 | 18413 | /*
* Copyright (c) 1991, 1992 Paul Kranenburg <pk@cs.few.eur.nl>
* Copyright (c) 1993 Branko Lankester <branko@hacktic.nl>
* Copyright (c) 1993, 1994, 1995, 1996 Rick Sladkey <jrs@world.std.com>
* Copyright (c) 1996-1999 Wichert Akkerman <wichert@cistron.nl>
* Copyright (c) 2005, 2006 Dmitry V. Levin <ldv@altlinux... | bsd-3-clause |
geekboxzone/lollipop_external_chromium_org_third_party_WebKit | Source/core/svg/graphics/SVGImageChromeClient.cpp | 14 | 3779 | /*
* Copyright (C) 2012 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditi... | bsd-3-clause |
leecade/coturn | src/apps/relay/dbdrivers/dbd_pgsql.c | 14 | 28252 | /*
* Copyright (C) 2011, 2012, 2013 Citrix Systems
* Copyright (C) 2014 Vivocha S.p.A.
*
* 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 ... | bsd-3-clause |
premake/premake-core | contrib/mbedtls/library/nist_kw.c | 15 | 24226 | /*
* Implementation of NIST SP 800-38F key wrapping, supporting KW and KWP modes
* only
*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* Y... | bsd-3-clause |
endlessm/chromium-browser | third_party/llvm/libcxx/test/std/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.plinear/eval_param.pass.cpp | 15 | 2703 | //===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | bsd-3-clause |
mxOBS/deb-pkg_trusty_phantomjs | src/qt/src/corelib/thread/qthread_symbian.cpp | 17 | 21835 | /****************************************************************************
**
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees... | bsd-3-clause |
UCSantaCruzComputationalGenomicsLab/clapack | TESTING/LIN/dtrt02.c | 21 | 6572 | /* dtrt02.f -- translated by f2c (version 20061008).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2c -lm
-- in that order, at the end of... | bsd-3-clause |
SuperNexus/android_external_skia | src/core/SkString.cpp | 21 | 17792 |
/*
* Copyright 2006 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkString.h"
#include "SkFixed.h"
#include "SkThread.h"
#include "SkUtils.h"
#include <stdarg.h>
#include <stdio.h>
// number of bytes (on the ... | bsd-3-clause |
MonkeyZZZZ/platform_external_skia | gm/fontscaler.cpp | 31 | 2740 | /*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm.h"
#include "SkTypeface.h"
namespace skiagm {
class FontScalerGM : public GM {
public:
FontScalerGM() {
this->setBGColor(0xFFFFFFFF);
}
virt... | bsd-3-clause |
gavinp/chromium | third_party/mesa/MesaLib/src/mesa/state_tracker/st_atom_sampler.c | 32 | 7971 | /**************************************************************************
*
* Copyright 2007 Tungsten Graphics, Inc., Cedar Park, Texas.
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Softwa... | bsd-3-clause |
mwiebe/numpy | numpy/core/src/multiarray/arrayobject.c | 32 | 57133 | /*
Provide multidimensional arrays as a basic object type in python.
Based on Original Numeric implementation
Copyright (c) 1995, 1996, 1997 Jim Hugunin, hugunin@mit.edu
with contributions from many Numeric Python developers 1995-2004
Heavily modified in 2005 with inspiration from Numarray
by
Travis ... | bsd-3-clause |
yury-s/v8-inspector | Source/wtf/DataLog.cpp | 42 | 3293 | /*
* Copyright (C) 2012 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... | bsd-3-clause |
jeanleflambeur/silkopter | bullet/LinearMath/btQuickprof.cpp | 53 | 22797 | /*
***************************************************************************************************
**
** profile.cpp
**
** Real-Time Hierarchical Profiling for Game Programming Gems 3
**
** by Greg Hjelstrom & Byon Garrabrant
**
**************************************************************************************... | bsd-3-clause |
m-grimaud/opentoonz | thirdparty/openblas/xianyi-OpenBLAS-e6e87a2/interface/netlib/dgemv.f | 55 | 7512 | SUBROUTINE DGEMV(TRANS,M,N,ALPHA,A,LDA,X,INCX,BETA,Y,INCY)
* .. Scalar Arguments ..
DOUBLE PRECISION ALPHA,BETA
INTEGER INCX,INCY,LDA,M,N
CHARACTER TRANS
* ..
* .. Array Arguments ..
DOUBLE PRECISION A(LDA,*),X(*),Y(*)
* ..
*
* Purpose
* =======
*
* DGEMV performs one o... | bsd-3-clause |
InfinitiveOS/external_skia | samplecode/SampleUnpremul.cpp | 59 | 6679 | /*
* Copyright 2013 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm.h"
#include "Resources.h"
#include "SampleCode.h"
#include "SkBlurMask.h"
#include "SkBlurDrawLooper.h"
#include "SkCanvas.h"
#include "SkColorPriv.h"
#include "... | bsd-3-clause |
jmargutt/AliPhysics | PWG/Tools/yaml-cpp/src/emitterutils.cpp | 68 | 12365 | #include <iomanip>
#include <sstream>
#include "emitterutils.h"
#include "exp.h"
#include "indentation.h"
#include "regex_yaml.h"
#include "regeximpl.h"
#include "stringsource.h"
#include "yaml-cpp/binary.h" // IWYU pragma: keep
#include "yaml-cpp/ostream_wrapper.h"
#include "yaml-cpp/null.h"
namespace YAML {
namesp... | bsd-3-clause |
APCVSRepo/sdl_core_v4.0_winceport | src/3rd_party/apr-1.5.0/threadproc/beos/apr_proc_stub.c | 76 | 2125 | /* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not... | bsd-3-clause |
grevutiu-gabriel/phantomjs | src/qt/qtbase/src/network/kernel/qnetworkinterface.cpp | 84 | 19975 | /****************************************************************************
**
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtNetwork module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Lice... | bsd-3-clause |
gitromand/phantomjs | src/qt/qtbase/src/corelib/io/qstandardpaths_blackberry.cpp | 84 | 3843 | /***************************************************************************
**
** Copyright (C) 2012 Research In Motion
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid comm... | bsd-3-clause |
AOKP/external_chromium_org | chrome/third_party/mozilla_security_manager/nsUsageArrayHelper.cpp | 94 | 3267 | /* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
... | bsd-3-clause |
wuxianghou/phantomjs | src/qt/qtbase/src/gui/doc/snippets/code/src_gui_painting_qpainter.cpp | 102 | 5716 | /****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the documentation of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms ... | bsd-3-clause |
nuwaf/badvpn | ncd/modules/if.c | 360 | 3404 | /**
* @file if.c
* @author Ambroz Bizjak <ambrop7@gmail.com>
*
* @section LICENSE
*
* 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
* notic... | bsd-3-clause |
MaDKaTZe/phantomjs | src/qt/qtbase/src/gui/doc/snippets/code/src_gui_qopenglshaderprogram.cpp | 105 | 3307 | /****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the documentation of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms ... | bsd-3-clause |
grevutiu-gabriel/phantomjs | src/qt/qtwebkit/Source/WebKit2/UIProcess/API/gtk/WebKitWebResource.cpp | 115 | 13320 | /*
* Copyright (C) 2012 Igalia S.L.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library i... | bsd-3-clause |
yoki/phantomjs | src/qt/qtwebkit/Source/WebKit/qt/Api/qwebdatabase.cpp | 116 | 5514 | /*
Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) an... | bsd-3-clause |
VinceZK/phantomjs | src/qt/qtwebkit/Source/WebKit2/UIProcess/API/cpp/efl/WKEinaSharedString.cpp | 117 | 3755 | /*
* Copyright (C) 2012 Intel 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of cond... | bsd-3-clause |
Andrey-Pavlov/phantomjs | src/qt/qtwebkit/Source/WebKit2/WebProcess/Cookies/soup/WebCookieManagerSoup.cpp | 118 | 3978 | /*
* Copyright (C) 2011 Samsung Electronics.
*
* 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 and the foll... | bsd-3-clause |
bettiolo/phantomjs | src/qt/qtwebkit/Source/WebKit2/UIProcess/WebApplicationCacheManagerProxy.cpp | 118 | 4595 | /*
* Copyright (C) 2011, 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 list of condit... | bsd-3-clause |
mapbased/phantomjs | src/qt/qtwebkit/Source/WebCore/inspector/InspectorValues.cpp | 119 | 21225 | /*
* Copyright (C) 2010 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 |
Lkhagvadelger/phantomjs | src/qt/qtwebkit/Source/WebKit2/WebProcess/WebCoreSupport/efl/WebContextMenuClientEfl.cpp | 121 | 1896 | /*
* Copyright (C) 2011 Samsung Electronics. 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 co... | bsd-3-clause |
gitromand/phantomjs | src/qt/qtwebkit/Source/WebCore/platform/graphics/filters/SourceAlpha.cpp | 123 | 2493 | /*
* Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
... | bsd-3-clause |
lseyesl/phantomjs | src/qt/qtwebkit/Source/WebCore/platform/qt/DeviceOrientationProviderQt.cpp | 125 | 2729 | /*
* Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any l... | bsd-3-clause |
Omegaphora/external_chromium_org | third_party/sqlite/src/test/threadtest1.c | 382 | 7841 | /*
** 2002 January 15
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
**
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*********************... | bsd-3-clause |
codeaurora-unoffical/platform-external-skia | experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfFDFDictionary_autogen.cpp | 127 | 5227 | /*
* Copyright 2013 Google Inc.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkPdfFDFDictionary_autogen.h"
#include "SkPdfNativeDoc.h"
SkPdfFileSpec SkPdfFDFDictionary::F(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("F", "");
if (do... | bsd-3-clause |
ChromiumWebApps/chromium | third_party/libevent/evdns.c | 133 | 86438 | /* $Id: evdns.c 6979 2006-08-04 18:31:13Z nickm $ */
/* The original version of this module was written by Adam Langley; for
* a history of modifications, check out the subversion logs.
*
* When editing this module, try to keep it re-mergeable by Adam. Don't
* reformat the whitespace, add Tor dependencies, or so ... | bsd-3-clause |
ar-android/fresco | imagepipeline/src/main/jni/imagepipeline/png/png_stream_wrappers.cpp | 137 | 1878 | /*
* 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.
*/
#include <a... | bsd-3-clause |
junmin-zhu/chromium-rivertrail | third_party/sqlite/src/ext/async/sqlite3async.c | 145 | 54487 | /*
** 2005 December 14
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
**
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
********************... | bsd-3-clause |
viewdy/phantomjs2 | src/qt/qtwebkit/Source/WebCore/platform/graphics/cairo/PlatformPathCairo.cpp | 148 | 1160 | /*
* Copyright (C) 2011 Collabora Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This librar... | bsd-3-clause |
vanpact/scipy | scipy/special/cdflib/gaminv.f | 151 | 10511 | SUBROUTINE gaminv(a,x,x0,p,q,ierr)
C ----------------------------------------------------------------------
C INVERSE INCOMPLETE GAMMA RATIO FUNCTION
C
C GIVEN POSITIVE A, AND NONEGATIVE P AND Q WHERE P + Q = 1.
C THEN X IS COMPUTED WHERE P(A,X) = P AND Q(A,X) = Q. SCHRODER
C ITERATION IS E... | bsd-3-clause |
shining-yang/redis | src/notify.c | 161 | 5418 | /*
* Copyright (c) 2013, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyrig... | bsd-3-clause |
jackyh/qt210_ics_external_speex | libspeex/lsp_tables_nb.c | 1000 | 8315 | /* Copyright (C) 2002 Jean-Marc Valin
File: lsp_tables_nb.c
Codebooks for LSPs in narrowband CELP mode
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 a... | bsd-3-clause |
lokeshjindal15/pd-gem5 | kernel_dvfs/linux-linaro-tracking-gem5/drivers/regulator/lp3971.c | 244 | 11942 | /*
* Regulator driver for National Semiconductors LP3971 PMIC chip
*
* Copyright (C) 2009 Samsung Electronics
* Author: Marek Szyprowski <m.szyprowski@samsung.com>
*
* Based on wm8350.c
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public Lic... | bsd-3-clause |
roisagiv/webrtc-ios | third_party/libjpeg/jquant1.c | 1787 | 31294 | /*
* jquant1.c
*
* Copyright (C) 1991-1996, Thomas G. Lane.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
* This file contains 1-pass color quantization (color mapping) routines.
* These routines provide mapping to a f... | bsd-3-clause |
goertzenator/yamler | c_src/libyaml/reader.c | 51 | 16543 |
#include "yaml_private.h"
/*
* Declarations.
*/
static int
yaml_parser_set_reader_error(yaml_parser_t *parser, const char *problem,
size_t offset, int value);
static int
yaml_parser_update_raw_buffer(yaml_parser_t *parser);
static int
yaml_parser_determine_encoding(yaml_parser_t *parser);
YAML_DECLARE(i... | isc |
publicloudapp/csrutil | linux-4.3/drivers/scsi/NCR5380.c | 768 | 90487 | /*
* NCR 5380 generic driver routines. These should make it *trivial*
* to implement 5380 SCSI drivers under Linux with a non-trantor
* architecture.
*
* Note that these routines also work with NR53c400 family chips.
*
* Copyright 1993, Drew Eckhardt
* Visionary Computing
* (Unix an... | mit |
dmcoin/diamondcoin | src/qt/bitcoinamountfield.cpp | 1 | 4376 | #include "bitcoinamountfield.h"
#include "qvaluecombobox.h"
#include "bitcoinunits.h"
#include "guiconstants.h"
#include <QHBoxLayout>
#include <QKeyEvent>
#include <QDoubleSpinBox>
#include <QApplication>
#include <qmath.h> // for qPow()
BitcoinAmountField::BitcoinAmountField(QWidget *parent):
QWidget(paren... | mit |
jonancm/viennagrid-python | src/segmentations/triangular.cpp | 1 | 6159 | /*
* Copyright (c) 2013 Jonan Cruz-Martin
*
* Distributed under the terms of the MIT license, see the accompanying
* file COPYING or http://opensource.org/licenses/MIT.
*/
#include "triangular.hpp"
#include "../domains/triangular.hpp"
////////////////////////////////////////
// TriangularCartesian2D_Segmentatio... | mit |
phinze/pianobar | src/libwaitress/waitress.c | 1 | 33385 | /*
Copyright (c) 2009-2011
Lars-Dominik Braun <lars@6xq.net>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, mer... | mit |
arvestad/FastPhylo | src/c++/arg_utils_ext.cpp | 1 | 1764 | //--------------------------------------------------
//
// File: argsutil_ext.cpp
//
// Author: Isaac Elias
// e-mail: isaac@nada.kth.se
//
// cvs: $Id: arg_utils_ext.cpp,v 1.3 200... | mit |
SnowOnion/CodeForcesLee | thisAndThat/1c.cpp | 1 | 4136 | /**
AC
i've learned sth. today…
1. fmod
2. fmod 是很严格的... fmod(1.256637056,1.256637061) 返回 1.256637061
于是为了能用fmod, 窝把两个数*1e6再/1e6... 可能这导致了后面很大的浮点误差...
3. 控制浮点误差的方法 不是可以拍脑袋想的... 窝根据四五次WA的test case把判断x和y相等的函数从fabs(x-y)<1e-6改成1e-5, 2e-5,4e-5… 太胡闹了...
你萌有没有比较系统的控制浮点误差的方法...
4. 如果非要调参数 (导致总是要看中间结果), 就用IDE调试罢, 别printf注释来注释... | mit |
i3lome/failfial | src/qt/transactionrecord.cpp | 1 | 7782 | // Copyright (c) 2011-2014 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "transactionrecord.h"
#include "base58.h"
#include "wallet.h"
#include <stdint.h>
/* Return positive answer if tra... | mit |
MoltenPlastic/nersis | nersis/graphics/love/opengl/Mesh.cpp | 1 | 19457 | /**
* Copyright (c) 2006-2015 LOVE Development Team
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* ... | mit |
OpenPTV/openptv-python | src_c/corresp.c | 1 | 13394 | /* Finding correspondences between particles in a set of images.
References:
[1] http://en.wikipedia.org/wiki/Tree_traversal#Depth-first
*/
#include <stdlib.h>
#include <stdio.h>
#include "typedefs.h"
#include "globals.h"
#include "epi.h"
#include "btree.h"
#include <optv/calibration.h>
#include <optv/parameters.h... | mit |
remi-daigle/invert_lobster_biophysical_particle_tracking | track/read_track.f | 1 | 1986 | include 'parameter.h'
character*80 titre,colormap,anumb
character*25 file,nom
PARAMETER(MPART=150000)
PARAMETER(MSTEP=1000)
INTEGER IPOINT(MPART)
REAL XP(MPART,MSTEP)
REAL YP(MPART,MSTEP),ZP(MPART,MSTEP)
REAL xmean,ymean,zmean,x,y,z,stage
INTEGER icount,i,id
... | mit |
tanxunrong/shield | mrb/lib.c | 1 | 1250 | #include <stdlib.h>
#include <stdio.h>
#include <setjmp.h>
#include <mruby.h>
#include <mruby/irep.h>
#include <mruby/error.h>
#include <mruby/debug.h>
#include <mruby/variable.h>
mrb_value wrap_mrb_obj_value(void *p)
{
return mrb_obj_value(p);
}
mrb_value wrap_mrb_fixnum_value(mrb_int i)
{
return mrb_fixnum_... | mit |
Oxygencoin/oxygen | src/qt/addressbookpage.cpp | 1 | 10176 | // Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2017 The OXYGEN developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-li... | mit |
Tecprog-voID/voID | src/Customs/FirstBossCentralEffectScript.cpp | 1 | 3772 | /**
@file FirstBossLifeScript.cpp
@brief Manage the animations for the first boss central effect.
@copyright MIT License.
*/
#include "Customs/FirstBossCentralEffectScript.hpp"
#include <cassert>
const int centralImageheight = 70;
const int centralImageWidth = 700;
const int animationPosition = 70;
const... | mit |
MarkZH/Genetic_Chess | src/Genes/Gene_Pool.cpp | 1 | 23384 | #include "Genes/Gene_Pool.h"
#include <vector>
#include <iostream>
#include <map>
#include <iomanip>
#include <csignal>
#include <fstream>
#include <cmath>
#include <algorithm>
#include <future>
#include <thread>
#include <chrono>
using namespace std::chrono_literals;
#include <array>
#include <cstdio>
#include <files... | mit |
vovkos/jancy | src/jnc_ct/jnc_ct_TypeMgr/jnc_ct_Type.cpp | 1 | 26820 | //..............................................................................
//
// This file is part of the Jancy toolkit.
//
// Jancy is distributed under the MIT license.
// For details see accompanying license.txt file,
// the public copy of which is also available at:
// http://tibbo.com/downloads/archive/... | mit |
elsys/po-homework | V/04/11/task2.c | 1 | 1625 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef enum { button_clicked = 0, cycle_complete = 1 } commands;
typedef enum { CLOSED, OPENING, OPEN, CLOSING, STOPPED_WHILE_CLOSING, STOPPED_WHILE_OPENING } sust;
int main(){
unsigned short cm[1000] = {0}, cmd = 0;
char duma[14] = {0};
int i, sust = ... | mit |
lcs2/carpg | project/source/game/panels/Options.cpp | 1 | 14734 | #include "Pch.h"
#include "GameCore.h"
#include "Options.h"
#include "Language.h"
#include "KeyStates.h"
#include "GlobalGui.h"
#include "Game.h"
#include "MenuList.h"
#include "SoundManager.h"
#include "Render.h"
//-----------------------------------------------------------------------------
cstring txQuality, txMsNo... | mit |
inertialsense/InertialSenseSDK | src/DeviceLogSerial.cpp | 1 | 4660 | /*
MIT LICENSE
Copyright (c) 2014-2020 Inertial Sense, Inc. - http://inertialsense.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction, including without limitation the rights ... | mit |
wjingzhe/OpenGL_SB5_static | Sb5Codes/Chapter04/SphereWorld3/SphereWorld3.cpp | 2 | 5956 | // SphereWorld.cpp
// OpenGL SuperBible
// New and improved (performance) sphere world
// Program by Richard S. Wright Jr.
#include <GLTools.h>
#include <GLShaderManager.h>
#include <GLFrustum.h>
#include <GLBatch.h>
#include <GLFrame.h>
#include <GLMatrixStack.h>
#include <GLGeometryTransform.h>
#include <StopWatch.h... | mit |
cislaa/prophy | prophy_cpp/test/test_generated_dynfields.cpp | 2 | 3822 | #include <vector>
#include <gtest/gtest.h>
#include "Dynfields.ppf.hpp"
#include "util.hpp"
using namespace testing;
using namespace prophy::generated;
TEST(generated_dynfields, Dynfields)
{
std::vector<char> data(1024);
Dynfields x{{2}, {3}, 4};
size_t size = x.encode(data.data());
EXPECT_EQ(24, si... | mit |
maurer/tiamat | samples/Juliet/testcases/CWE190_Integer_Overflow/s05/CWE190_Integer_Overflow__unsigned_int_rand_square_81_bad.cpp | 2 | 1145 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE190_Integer_Overflow__unsigned_int_rand_square_81_bad.cpp
Label Definition File: CWE190_Integer_Overflow.label.xml
Template File: sources-sinks-81_bad.tmpl.cpp
*/
/*
* @description
* CWE: 190 Integer Overflow
* BadSource: rand Set data to result of rand()
* ... | mit |
maurer/tiamat | samples/Juliet/testcases/CWE121_Stack_Based_Buffer_Overflow/s02/CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_64b.c | 2 | 2127 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE121_Stack_Based_Buffer_Overflow__CWE193_char_declare_ncpy_64b.c
Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE193.label.xml
Template File: sources-sink-64b.tmpl.c
*/
/*
* @description
* CWE: 121 Stack Based Buffer Overflow
* BadSource: Point d... | mit |
tihovinc/SuperLU_w64_mkl | SuperLU_5.2.1/TESTING/MATGEN/clacgv.c | 2 | 1670 | #include "f2c.h"
/* Subroutine */ int clacgv_slu(integer *n, complex *x, integer *incx)
{
/* -- LAPACK auxiliary routine (version 2.0) --
Univ. of Tennessee, Univ. of California Berkeley, NAG Ltd.,
Courant Institute, Argonne National Lab, and Rice University
October 31, 1992
Pur... | mit |
4981boomerang/commaudio | BoomerangCommAudio/BoomerangCommAudio/Packetizer.cpp | 2 | 7611 | #include "stdafx.h"
#include "Packetizer.h"
#include <windows.h>
#include <iostream>
#include <memory>
using namespace std;
/*--------------------------------------------------------------------------
-- FUNCTION: SoundFilePacketizer
--
-- DATE: Mar. 29, 2017
--
-- REVISIONS:
-- Version 1.0 - [EY] - 2016/Mar/29 - ... | mit |
guileschool/BEAGLEBONE-tutorials | BBB-firmware/starterwarefree-code/grlib/fonts/fontcmss22b.c | 2 | 15742 | //*****************************************************************************
//
// fontcmss22b.c - Font definition for the 22 point Cmss bold font.
//
// Copyright (c) 2008-2010 Texas Instruments Incorporated. All rights reserved.
// Software License Agreement
//
// Texas Instruments (TI) is supplying this softwar... | mit |
GOMC-WSU/GOMC | lib/cereal-1.3.0/unittests/stack.cpp | 2 | 2107 | /*
Copyright (c) 2014, Randolph Voorhies, Shane Grant
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 l... | mit |
benvenutti/hasmTest | tests/SymbolTable.test.cpp | 2 | 1382 | #include "SymbolTable.hpp"
#include <catch2/catch.hpp>
#include <boost/optional/optional_io.hpp>
#include <boost/range/algorithm.hpp>
namespace
{
struct FixtureSymbolTable
{
FixtureSymbolTable()
{
symbolTable.addEntry( "s1", 0x1010 );
symbolTable.addEntry( "s2", 0x2020 );
symbolTable... | mit |
andyLaurito92/haikunet | debug/atomics/continuous/integrador.cpp | 2 | 14148 | #include "integrador.h"
void integrador::init(double t, ...){
//The 'parameters' variable contains the parameters transferred from the editor.
va_list parameters;
va_start(parameters,t);
//To get a parameter: %Name% = va_arg(parameters,%Type%)
//where:
// %Name% is the parameter name
// %Type% is the ... | mit |
shoshanatech/Dolphin | Core/DolphinVM/Compiler/disasm.cpp | 2 | 2674 | #include "stdafx.h"
#include "Compiler.h"
#include <minmax.h>
#pragma warning(disable:4786) // Browser identifier truncated to 255 characters
#pragma warning(push,3)
#pragma warning(disable:4530)
#include <iostream>
#include <iomanip>
#include <sstream>
#pragma warning(pop)
using namespace std;
#include "..\tracestr... | mit |
expertsnipo/xv6 | urandom.c | 3 | 4083 | // urandom.c
// linear congruential random number generator in python
/*a = 3
c = 9
m = 16
xi = 0
def seed(x):
global xi
xi = x
def rng():
global xi
xi = (a*xi + c)%m
return xi % 256
for i in range(10):
print rng()
*/
#include "types.h"
#include "defs.h"
#include "param.h"
#include "traps.h... | mit |
oposs/dovecot-extensions | src/lib-master/master-auth.c | 3 | 5703 | /* Copyright (c) 2005-2014 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "ioloop.h"
#include "fdpass.h"
#include "buffer.h"
#include "hash.h"
#include "master-service-private.h"
#include "master-auth.h"
#include <stdlib.h>
#include <unistd.h>
#include <sys/stat.h>
#define SOCKET_CONNECT... | mit |
ehsan/ogre | RenderSystems/GL/src/GLSL/src/OgreGLSLPreprocessor.cpp | 3 | 35398 | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2011 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person obta... | mit |
abdllhbyrktr/Urho3D | Source/Urho3D/Graphics/OpenGL/OGLTextureCube.cpp | 3 | 16074 | //
// Copyright (c) 2008-2017 the Urho3D project.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, mod... | mit |
eyolfson/weston | src/rpi-renderer.c | 3 | 49145 | /*
* Copyright © 2012-2013 Raspberry Pi Foundation
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify,... | mit |
ros-gbp/yaml_cpp-release | src/emitterstate.cpp | 5 | 5815 | #include "emitterstate.h"
#include "yaml-cpp/exceptions.h"
namespace YAML
{
EmitterState::EmitterState(): m_isGood(true), m_curIndent(0), m_requiresSoftSeparation(false), m_requiresHardSeparation(false)
{
// start up
m_stateStack.push(ES_WAITING_FOR_DOC);
// set default global manipulators
m_charset.set(E... | mit |
djsedulous/namecoind | libs/db-4.7.25.NC/test/scr023/q.c | 6 | 18254 | #include <sys/types.h>
#include <sys/time.h>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "queue.h"
#include "shqueue.h"
typedef enum {
FORWARD_WALK_FAILED = 1,
FOREACH_WALK_FAILED,
LIST_END_NOT_MARKED_FAILURE,
PREV_WALK_FAILED,
REVERSE_FOREACH_WALK... | mit |
PUCSIE-embedded-course/stm32f4-examples | firmware/freertos/create_task/lib/FreeRTOSV8.2.3/FreeRTOS/Demo/Common/Full/flash.c | 6 | 7056 | /*
FreeRTOS V8.2.3 - Copyright (C) 2015 Real Time Engineers Ltd.
All rights reserved
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
This file is part of the FreeRTOS distribution.
FreeRTOS is free software; you can redistribute it and/or modify it under
the... | mit |
davisp/python-spidermonkey | spidermonkey/string.c | 6 | 1938 | /*
* Copyright 2009 Paul J. Davis <paul.joseph.davis@gmail.com>
*
* This file is part of the python-spidermonkey package released
* under the MIT license.
*
*/
#include "spidermonkey.h"
JSString*
py2js_string_obj(Context* cx, PyObject* str)
{
PyObject* conv = NULL;
PyObject* encoded = NULL;
JSString... | mit |
iainmerrick/Urho3D | Source/Urho3D/Resource/Resource.cpp | 7 | 5429 | //
// Copyright (c) 2008-2017 the Urho3D project.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, mod... | mit |
Yndal/ArduPilot-SensorPlatform | PX4NuttX/nuttx/arch/z80/src/z80/z80_sigdeliver.c | 8 | 4957 | /****************************************************************************
* arch/z80/src/z80/z80_sigdeliver.c
*
* Copyright (C) 2007-2010 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are ... | mit |
airgames/vuforia-gamekit-integration | Gamekit/bullet/src/BulletCollision/NarrowPhaseCollision/btContinuousConvexCollision.cpp | 9 | 7653 | /*
Bullet Continuous Collision Detection and Physics Library
Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the use of this software.
P... | mit |
alexhenrie/poedit | deps/boost/libs/fusion/test/sequence/adapt_assoc_struct_named_empty.cpp | 10 | 3172 | /*=============================================================================
Copyright (c) 2016 Kohei Takahashi
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
=============================================... | mit |
eugeneko/Urho3D | Source/ThirdParty/DetourTileCache/Source/DetourTileCache.cpp | 10 | 21712 | // Modified by Lasse Oorni and cosmy1 for Urho3D
#include "DetourTileCache.h"
#include "DetourTileCacheBuilder.h"
#include "DetourNavMeshBuilder.h"
#include "DetourNavMesh.h"
#include "DetourCommon.h"
#include "DetourMath.h"
#include "DetourAlloc.h"
#include "DetourAssert.h"
#include <string.h>
#include <new>
dtTileC... | mit |
zardus/z3 | src/muz/duality/duality_dl_interface.cpp | 12 | 21059 | /*++
Copyright (c) 2013 Microsoft Corporation
Module Name:
duality_dl_interface.cpp
Abstract:
SMT2 interface for Duality
Author:
Krystof Hoder (t-khoder) 2011-9-22.
Modified by Ken McMIllan (kenmcmil) 2013-4-18.
Revision History:
--*/
#include "dl_context.h"
#include "dl_mk_coi_filter.h"
#i... | mit |
vtsuperdarn/SuperDARN_MSI_ROS | qnx/root/operational_radar_code/ros/fftw-3.2.2/dft/scalar/codelets/t1_32.c | 13 | 47289 | /*
* Copyright (c) 2003, 2007-8 Matteo Frigo
* Copyright (c) 2003, 2007-8 Massachusetts Institute of Technology
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the Li... | mit |
SoCdesign/audiomixer | ZedBoard_Linux_Design/hw/xps_proj/SDK/SDK_Export/FSBL_bsp/ps7_cortexa9_0/libsrc/scugic_v1_05_a/src/xscugic_intr.c | 14 | 7224 | /******************************************************************************
*
* (c) Copyright 2010-2013 Xilinx, Inc. All rights reserved.
*
* This file contains confidential and proprietary information of Xilinx, Inc.
* and is protected under U.S. and international copyright and other
* intellectual property laws.
... | mit |
shadowmint/kivy-ios | src/SDL/src/video/SDL_clipboard.c | 17 | 2152 | /*
Simple DirectMedia Layer
Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | mit |
vinnyrom/coreclr | src/pal/src/cruntime/malloc.cpp | 24 | 1880 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
/*++
Module Name:
malloc.cpp
Abstract:
Implementation of suspension safe memory allocation functions.
... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.