commit stringlengths 40 40 | old_file stringlengths 2 205 | new_file stringlengths 2 205 | old_contents stringlengths 0 32.9k | new_contents stringlengths 1 38.9k | subject stringlengths 3 9.4k | message stringlengths 6 9.84k | lang stringlengths 3 13 | license stringclasses 13
values | repos stringlengths 6 115k |
|---|---|---|---|---|---|---|---|---|---|
09eb5474ddff018b485249df03a361b4ddf6545c | BB10-Cordova/LowLatencyAudio/plugin/src/blackberry10/native/src/pgaudio_js.cpp | BB10-Cordova/LowLatencyAudio/plugin/src/blackberry10/native/src/pgaudio_js.cpp | /*
* Copyright 2013 Research In Motion Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | /*
* Copyright 2013 Research In Motion Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | update src cpp | update src cpp
added a timer thread for audio file use check
| C++ | apache-2.0 | timwindsor/WebWorks-Community-APIs,Jayapraju/WebWorks-Community-APIs,blackberry/WebWorks-Community-APIs,timwindsor/WebWorks-Community-APIs,blackberry/WebWorks-Community-APIs,T-M-C/WebWorks-Community-APIs,Jayapraju/WebWorks-Community-APIs,parker-mar/WebWorks-Community-APIs,gamerDecathlete/WebWorks-Community-APIs,parker-... |
48eeeb7aaa9fffb08d0eebf5505c0945172c082c | partition/src/engpar_balancer.cpp | partition/src/engpar_balancer.cpp | #include "engpar_balancer.h"
#include "engpar_queue.h"
#include <PCU.h>
#include "../engpar.h"
#include <engpar_support.h>
namespace engpar {
wgt_t getMaxWeight(agi::Ngraph* g, int dimension) {
wgt_t w = getWeight(g,dimension);
return PCU_Max_Double(w);
}
wgt_t getAvgWeight(agi::Ngraph* g, int dimension... | #include "engpar_balancer.h"
#include "engpar_queue.h"
#include <PCU.h>
#include "../engpar.h"
#include <engpar_support.h>
namespace engpar {
wgt_t getMaxWeight(agi::Ngraph* g, int dimension) {
wgt_t w = getWeight(g,dimension);
return PCU_Max_Double(w);
}
wgt_t getAvgWeight(agi::Ngraph* g, int dimension... | Add step counter to criteria completition | Add step counter to criteria completition
| C++ | bsd-3-clause | SCOREC/EnGPar,SCOREC/EnGPar,SCOREC/EnGPar |
ffa22d5f55afd4509804a19962d2b9438d458716 | tests/numerics/dense_matrix_test.C | tests/numerics/dense_matrix_test.C | // Ignore unused parameter warnings coming from cppunit headers
#include <libmesh/ignore_warnings.h>
#include <cppunit/extensions/HelperMacros.h>
#include <cppunit/TestCase.h>
#include <libmesh/restore_warnings.h>
// libmesh includes
#include <libmesh/dense_matrix.h>
#include <libmesh/dense_vector.h>
#ifdef LIBMESH_H... | // Ignore unused parameter warnings coming from cppunit headers
#include <libmesh/ignore_warnings.h>
#include <cppunit/extensions/HelperMacros.h>
#include <cppunit/TestCase.h>
#include <libmesh/restore_warnings.h>
// libmesh includes
#include <libmesh/dense_matrix.h>
#include <libmesh/dense_vector.h>
#ifdef LIBMESH_H... | Use lower tolerance testing single-precision SVD | Use lower tolerance testing single-precision SVD
| C++ | lgpl-2.1 | dschwen/libmesh,pbauman/libmesh,balborian/libmesh,giorgiobornia/libmesh,roystgnr/libmesh,giorgiobornia/libmesh,dschwen/libmesh,hrittich/libmesh,jwpeterson/libmesh,svallaghe/libmesh,roystgnr/libmesh,friedmud/libmesh,libMesh/libmesh,libMesh/libmesh,vikramvgarg/libmesh,capitalaslash/libmesh,pbauman/libmesh,balborian/libme... |
090d66f2ee7ce354d64a2a19dfd1f97e96edfce1 | tests/opencv_laplace_8uc1/main.cpp | tests/opencv_laplace_8uc1/main.cpp | //
// Copyright (c) 2012, University of Erlangen-Nuremberg
// Copyright (c) 2012, Siemens AG
// 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... | //
// Copyright (c) 2012, University of Erlangen-Nuremberg
// Copyright (c) 2012, Siemens AG
// 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... | Use Domain for Laplace and applied new syntax | Tests: Use Domain for Laplace and applied new syntax
| C++ | bsd-2-clause | hipacc/hipacc-vivado,hipacc/hipacc,hipacc/hipacc,hipacc/hipacc-vivado,hipacc/hipacc-vivado |
199476d912dba7b480c2d94037841606455d6608 | src/libraries/UtilsLib/Macros.hpp | src/libraries/UtilsLib/Macros.hpp | // -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
#ifndef __RD_MACROS_HPP__
#define __RD_MACROS_HPP__
#include <stdio.h>
#include <string> // std::string
#include <string.h> // strrchr
//-- Thanks http://stackoverflow.com/questions/8487986/file-macro-shows-full-path
#ifdef WIN32
#define __RE... | // -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
#ifndef __RD_MACROS_HPP__
#define __RD_MACROS_HPP__
#include <stdio.h>
#include <string> // std::string
#include <string.h> // strrchr
//-- Fix for old Windows versions.
//-- Thanks: tomlogic @ http://stackoverflow.com/questions/2281970/cross... | Fix undefined __func__ macro on Windows | Fix undefined __func__ macro on Windows
Borrowed from color-debug.
| C++ | lgpl-2.1 | asrob-uc3m/robotDevastation,asrob-uc3m/robotDevastation |
36f40d96cd1d8f3f2a9095b1a190ddf9c6c223ce | streetname_fixer.cpp | streetname_fixer.cpp | /*
Copyright (c) 2014, Patrick Niklaus
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 d... | /*
Copyright (c) 2014, Patrick Niklaus
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 d... | Use whitelist for highways | Use whitelist for highways
| C++ | bsd-2-clause | TheMarex/streetname-fixer |
5e49a3832a94577a161e95ccdcfe442bcbb916e8 | VisualizationBase/src/declarative/AnchorLayoutConstraintSolver.cpp | VisualizationBase/src/declarative/AnchorLayoutConstraintSolver.cpp | /***********************************************************************************************************************
**
** Copyright (c) 2011, 2013 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
** follo... | /***********************************************************************************************************************
**
** Copyright (c) 2011, 2013 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
** follo... | Improve error handling of anchor layout. | Improve error handling of anchor layout.
- throw exception if placing fails, instead of just not working
| C++ | bsd-3-clause | dimitar-asenov/Envision,Vaishal-shah/Envision,patrick-luethi/Envision,lukedirtwalker/Envision,mgalbier/Envision,mgalbier/Envision,Vaishal-shah/Envision,mgalbier/Envision,mgalbier/Envision,dimitar-asenov/Envision,Vaishal-shah/Envision,patrick-luethi/Envision,patrick-luethi/Envision,BalzGuenat/Envision,mgalbier/Envision,... |
d67d7709a1ffe698768f46ee56c765736c583dfb | Code/Demos/RDKit/GettingStarted/sample.cpp | Code/Demos/RDKit/GettingStarted/sample.cpp | // $Id$
//
// Copyright (C) 2008-2010 Greg Landrum
// @@ All Rights Reserved @@
// This file is part of the RDKit.
// The contents are covered by the terms of the BSD license
// which is included in the file license.txt, found at the root
// of the RDKit source tree.
//
// Can be built with:
// g++ -o sample.... | // $Id$
//
// Copyright (C) 2008-2011 Greg Landrum
// @@ All Rights Reserved @@
// This file is part of the RDKit.
// The contents are covered by the terms of the BSD license
// which is included in the file license.txt, found at the root
// of the RDKit source tree.
//
// Can be built with:
// g++ -o sample.... | add a simple reaction example | add a simple reaction example
| C++ | bsd-3-clause | soerendip42/rdkit,strets123/rdkit,AlexanderSavelyev/rdkit,adalke/rdkit,AlexanderSavelyev/rdkit,strets123/rdkit,bp-kelley/rdkit,adalke/rdkit,strets123/rdkit,ptosco/rdkit,strets123/rdkit,rvianello/rdkit,adalke/rdkit,strets123/rdkit,greglandrum/rdkit,AlexanderSavelyev/rdkit,greglandrum/rdkit,adalke/rdkit,bp-kelley/rdkit,j... |
986589aa757c3efdd94017f8f2ffa7b8dfe08af9 | test/correctness/load_library.cpp | test/correctness/load_library.cpp | #include <stdio.h>
#include "Halide.h"
using namespace Halide;
// This test exercises the ability to override halide_load_library (etc)
// when using JIT code; to do so, it compiles & calls a simple pipeline
// using a Hexagon schedule, since that is known to load a helper library
// in a well-defined way and is unli... | #include <stdio.h>
#include "Halide.h"
using namespace Halide;
// This test exercises the ability to override halide_get_library_symbol (etc)
// when using JIT code; to do so, it compiles & calls a simple pipeline
// using an OpenCL schedule, since that is known to use these calls
// in a (reasonably) well-defined wa... | rework load_library test to use OpenCL, not Hexagon | rework load_library test to use OpenCL, not Hexagon
Former-commit-id: 5b823a7ea816afff533c8a752ea83731fe8cc8d4 | C++ | mit | Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide |
e2d0ebc91a6922350368a50cbc5721f8a5dac08a | Infovis/vtkDelimitedTextReader.cxx | Infovis/vtkDelimitedTextReader.cxx | /*=========================================================================
Program: Visualization Toolkit
Module: vtkDelimitedTextReader.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This so... | /*=========================================================================
Program: Visualization Toolkit
Module: vtkDelimitedTextReader.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This so... | Fix a signed/unsigned comparison warning | COMP: Fix a signed/unsigned comparison warning
| C++ | bsd-3-clause | demarle/VTK,collects/VTK,arnaudgelas/VTK,candy7393/VTK,jmerkow/VTK,daviddoria/PointGraphsPhase1,sankhesh/VTK,gram526/VTK,keithroe/vtkoptix,candy7393/VTK,daviddoria/PointGraphsPhase1,spthaolt/VTK,Wuteyan/VTK,demarle/VTK,msmolens/VTK,arnaudgelas/VTK,mspark93/VTK,naucoin/VTKSlicerWidgets,collects/VTK,collects/VTK,SimVascu... |
24204204b4db57754c3fcb6b054f955df77ba685 | InterThresholdCalibration/main.cpp | InterThresholdCalibration/main.cpp | /**
* @copyright Copyright 2017 The J-PET Framework Authors. All rights reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may find a copy of the License in the LICENCE file.
*
* Unless required by applicable law... | /**
* @copyright Copyright 2017 The J-PET Framework Authors. All rights reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may find a copy of the License in the LICENCE file.
*
* Unless required by applicable law... | Change output file extension to be more informative | Change output file extension to be more informative
| C++ | apache-2.0 | JPETTomography/j-pet-framework-examples,JPETTomography/j-pet-framework-examples,JPETTomography/j-pet-framework-examples,JPETTomography/j-pet-framework-examples |
c3f256c5e7520eb0e0193496c7c2f51ff8a97f49 | tests/test_constructor_binding.cpp | tests/test_constructor_binding.cpp | #include "catch.hpp"
#include <reflection_binding.hpp>
struct test_construct1
{
test_construct1(int in, float fn) : i(2 * in), f(fn)
{
}
int i;
float f;
};
struct test_construct2
{
char c;
double d;
};
TEST_CASE("test constructor binding", "[generic_constructor_bind_point]")
{
auto... | #include "catch.hpp"
#include <reflection_binding.hpp>
struct test_construct1
{
test_construct1(int in, float fn) : i(2 * in), f(fn)
{
}
int i;
float f;
};
struct test_construct2
{
char c;
double d;
};
TEST_CASE("test constructor binding", "[generic_constructor_bind_point]")
{
auto... | Add unit test for default constructor of int. modified: tests/test_constructor_binding.cpp | Add unit test for default constructor of int.
modified: tests/test_constructor_binding.cpp
| C++ | mit | bergesenha/shadow |
00c6e7f7c09009af9152d29e3d3031f453f18e23 | Evaluator/Source/BallDetectorEvaluator.cpp | Evaluator/Source/BallDetectorEvaluator.cpp | #include "BallDetectorEvaluator.h"
#include <glib.h>
#include <glib/gstdio.h>
#include <strstream>
#include <fstream>
#include <sstream>
#include <Representations/Perception/BallCandidates.h>
#include <Extern/libb64/encode.h>
#include <Tools/naoth_opencv.h>
#if defined(__GNUC__) && defined(_NAOTH_CHECK_CONVERSION... | #include "BallDetectorEvaluator.h"
#include <glib.h>
#include <glib/gstdio.h>
#include <strstream>
#include <fstream>
#include <sstream>
#include <Representations/Perception/BallCandidates.h>
#include <Extern/libb64/encode.h>
#include <Tools/naoth_opencv.h>
#if defined(__GNUC__) && defined(_NAOTH_CHECK_CONVERSION... | Allow navigation to top. | Allow navigation to top.
| C++ | apache-2.0 | BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH |
3d616e65378ff3f430a7e5907480d8ccea05120e | unittests/clangd/HeadersTests.cpp | unittests/clangd/HeadersTests.cpp | //===-- HeadersTests.cpp - Include headers unit tests -----------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- HeadersTests.cpp - Include headers unit tests -----------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Use buildCompilerInvocation to simplify the HeadersTests, NFC. | [clangd] Use buildCompilerInvocation to simplify the HeadersTests, NFC.
git-svn-id: a34e9779ed74578ad5922b3306b3d80a0c825546@349148 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra |
3c1c20e91dbb0a37a4c0ac912e3d9cd444652ef9 | test/python/resources/classes.hpp | test/python/resources/classes.hpp | #ifndef __CLASSES__
#define __CLASSES__
namespace unused{
}
typedef char * str;
typedef const char* const const_str;
namespace outside{
class ExternalDependency{
};
}
namespace trial{
class Main{
public:
Main();
Main(const Main &);
virtual ~Main();
Main &operator=(const Main & );
... | #ifndef __CLASSES__
#define __CLASSES__
namespace unused{
}
typedef char * str;
typedef const char* const const_str;
namespace outside{
class ExternalDependency{
};
}
namespace trial{
class A{
public:
void aMethod();
};
class B{
public:
void bMethod();
};
clas... | Add inheritance to generation tests | Add inheritance to generation tests
| C++ | apache-2.0 | nak/pyllars,nak/pyllars,nak/pyllars |
dc93efe30e8fe819c7bd3abecf4b6ea50030e394 | utils/TableGen/CodeEmitterGen.cpp | utils/TableGen/CodeEmitterGen.cpp | //===- CodeEmitterGen.cpp - Code Emitter Generator ------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===----------... | //===- CodeEmitterGen.cpp - Code Emitter Generator ------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===----------... | Fix an incompatibility with GCC 4.1, thanks to Vladimir Merzliakov for pointing this out! | Fix an incompatibility with GCC 4.1, thanks to Vladimir Merzliakov
for pointing this out!
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@23963 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,apple/swift-llvm,dslab-epfl/asap,chubb... |
64ed07b552c2f044f59b269a383d7adc9405f650 | tools/flags/SkCommandLineFlags.cpp | tools/flags/SkCommandLineFlags.cpp | /*
* 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 "SkCommandLineFlags.h"
#include "SkTDArray.h"
bool SkFlagInfo::CreateStringFlag(const char* name, const char* shortName,
SkCommandL... | /*
* 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 "SkCommandLineFlags.h"
#include "SkTDArray.h"
bool SkFlagInfo::CreateStringFlag(const char* name, const char* shortName,
SkCommandL... | Fix the build. | Fix the build.
Allow NULL for defaultValue in SkCommandLineFlags.
unreviewed.
Review URL: https://codereview.chromium.org/14472017
git-svn-id: e8541e15acce502a64c929015570ad1648e548cd@8847 2bbb7eff-a529-9590-31e7-b0007b416f81
| C++ | bsd-3-clause | Hankuo/color-emoji.skia,Frankie-666/color-emoji.skia,Hankuo/color-emoji.skia,MatChung/color-emoji.skia,Hankuo/color-emoji.skia,Hankuo/color-emoji.skia,hbwhlklive/color-emoji.skia,MatChung/color-emoji.skia,hbwhlklive/color-emoji.skia,Hankuo/color-emoji.skia,MatChung/color-emoji.skia,Frankie-666/color-emoji.skia,Frankie-... |
6c4bcf63d864d7a040a984dfebe8079311ae2020 | src/mlpack/methods/ann/layer/dropout_layer.hpp | src/mlpack/methods/ann/layer/dropout_layer.hpp | /**
* @file dropout_layer.hpp
* @author Marcus Edel
*
* Definition of the DropoutLayer class, which implements a regularizer that
* randomly sets units to zero. Preventing units from co-adapting.
*/
#ifndef __MLPACK_METHODS_ANN_LAYER_DROPOUT_LAYER_HPP
#define __MLPACK_METHODS_ANN_LAYER_DROPOUT_LAYER_HPP
#include... | /**
* @file dropout_layer.hpp
* @author Marcus Edel
*
* Definition of the DropoutLayer class, which implements a regularizer that
* randomly sets units to zero. Preventing units from co-adapting.
*/
#ifndef __MLPACK_METHODS_ANN_LAYER_DROPOUT_LAYER_HPP
#define __MLPACK_METHODS_ANN_LAYER_DROPOUT_LAYER_HPP
#include... | Add 3rd-order tensor support (Dropout layer). | Add 3rd-order tensor support (Dropout layer).
| C++ | bsd-3-clause | ranjan1990/mlpack,ranjan1990/mlpack,erubboli/mlpack,palashahuja/mlpack,ersanliqiao/mlpack,ajjl/mlpack,stereomatchingkiss/mlpack,darcyliu/mlpack,theranger/mlpack,ajjl/mlpack,ajjl/mlpack,palashahuja/mlpack,ranjan1990/mlpack,lezorich/mlpack,theranger/mlpack,stereomatchingkiss/mlpack,ersanliqiao/mlpack,ersanliqiao/mlpack,s... |
3424ad9f8a42e2302c800c55fc7f98eb9e3498e5 | lib/node_modules/@stdlib/strided/common/examples/addon-nan-polymorphic/addon.cpp | lib/node_modules/@stdlib/strided/common/examples/addon-nan-polymorphic/addon.cpp | /**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | /**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Use a bitmask to track scalar input arguments | Use a bitmask to track scalar input arguments
| C++ | apache-2.0 | stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib |
255cc1087235c62244706169c8c2f11fd4fbedb1 | KTp/Declarative/messages-model.cpp | KTp/Declarative/messages-model.cpp | /*
Copyright (C) 2011 Lasath Fernando <kde@lasath.org>
Copyright (C) 2013 Lasath Fernando <davidedmundson@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
... | /*
Copyright (C) 2011 Lasath Fernando <kde@lasath.org>
Copyright (C) 2013 Lasath Fernando <davidedmundson@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
... | Load scrollbacklength from config | Load scrollbacklength from config
| C++ | lgpl-2.1 | leonhandreke/ktp-common-internals,leonhandreke/ktp-common-internals,KDE/ktp-common-internals,leonhandreke/ktp-common-internals,KDE/ktp-common-internals,KDE/ktp-common-internals |
cd8b6bcc5e246a6bff599033ddf390d4c480ebc9 | webkit/glue/npruntime_util.cc | webkit/glue/npruntime_util.cc | // Copyright 2008, 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 conditions a... | // Copyright 2008, 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 conditions a... | fix kjs build | fix kjs build
git-svn-id: http://src.chromium.org/svn/trunk/src@447 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Former-commit-id: d0befa79bdf4b9dead9564a9337f3e55a0375ca1 | C++ | bsd-3-clause | meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-u... |
d66daf95417bbd9780c1a760b334984b57ad51a9 | warpcoil/cpp/message_splitter.hpp | warpcoil/cpp/message_splitter.hpp | #pragma once
#include <array>
#include <silicium/exchange.hpp>
#include <warpcoil/protocol.hpp>
#include <warpcoil/cpp/begin_parse_value.hpp>
#include <warpcoil/cpp/tuple_parser.hpp>
#include <warpcoil/cpp/integer_parser.hpp>
#include <warpcoil/cpp/utf8_parser.hpp>
#include <iostream>
namespace warpcoil
{
namespa... | #pragma once
#include <array>
#include <silicium/exchange.hpp>
#include <warpcoil/protocol.hpp>
#include <warpcoil/cpp/begin_parse_value.hpp>
#include <warpcoil/cpp/tuple_parser.hpp>
#include <warpcoil/cpp/integer_parser.hpp>
#include <warpcoil/cpp/utf8_parser.hpp>
#include <iostream>
namespace warpcoil
{
namespa... | add assertions to message_splitter | add assertions to message_splitter
| C++ | mit | TyRoXx/warpcoil,TyRoXx/warpcoil,TyRoXx/warpcoil,TyRoXx/warpcoil,TyRoXx/warpcoil |
7fd2b183dc0f6b952d40724e7057dcad902ad6c6 | searchlib/src/vespa/searchlib/queryeval/nearest_neighbor_blueprint.cpp | searchlib/src/vespa/searchlib/queryeval/nearest_neighbor_blueprint.cpp | // Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "emptysearch.h"
#include "nearest_neighbor_blueprint.h"
#include "nearest_neighbor_iterator.h"
#include "nns_index_iterator.h"
#include <vespa/eval/eval/dense_cells_value.h>
#include <vespa/searchl... | // Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "emptysearch.h"
#include "nearest_neighbor_blueprint.h"
#include "nearest_neighbor_iterator.h"
#include "nns_index_iterator.h"
#include <vespa/eval/eval/dense_cells_value.h>
#include <vespa/searchl... | handle more cell types | handle more cell types
| C++ | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa |
2cfdd83c8c803015bbfc46db965ca5c2b2d62db6 | tests/compositeTransformation.cpp | tests/compositeTransformation.cpp | #include <CompositeTransformation.h>
namespace test {
using namespace std;
using ::testing::_;
using ::testing::Return;
using ::testing::AtLeast;
struct CompositeTransformSuite : public ::testing::Test {
struct TestTransformer : public Transformer {
TestTransformer() : Transformer(Transformation::invalid, Ev... | #include <CompositeTransformation.h>
namespace test {
using namespace std;
using ::testing::_;
using ::testing::Return;
using ::testing::AtLeast;
struct CompositeTransformSuite : public ::testing::Test {
struct TestTransformer : public Transformer {
TestTransformer() : Transformer(Transformation::invalid, Ev... | Fix errors in compositeTransform test | Unit-Test: Fix errors in compositeTransform test
| C++ | bsd-3-clause | steup/ASEIA,steup/ASEIA |
0a0ecb5c466e67c1e9757620619cfe9fb89a1abb | tests/fakebackend/audiooutput.cpp | tests/fakebackend/audiooutput.cpp | /* This file is part of the KDE project
Copyright (C) 2006 Matthias Kretz <kretz@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This library is distr... | /* This file is part of the KDE project
Copyright (C) 2006 Matthias Kretz <kretz@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This library is distr... | handle errors of write (I know it's only a fake device, but that shouldn't hinder us to write correct code :) | handle errors of write (I know it's only a fake device, but that
shouldn't hinder us to write correct code :)
svn path=/trunk/KDE/kdelibs/phonon/; revision=532142
| C++ | lgpl-2.1 | sandsmark/phonon-visualization-gsoc,sandsmark/phonon-visualization-gsoc,sandsmark/phonon-visualization-gsoc,sandsmark/phonon-visualization-gsoc |
ab467347f231b72ba7f3803e68348ea771ab3e96 | Filters/AMR/vtkAMRFlashParticlesReader.cxx | Filters/AMR/vtkAMRFlashParticlesReader.cxx | /*=========================================================================
Program: Visualization Toolkit
Module: vtkAMRFlashParticlesReader.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This softwar... | /*=========================================================================
Program: Visualization Toolkit
Module: vtkAMRFlashParticlesReader.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This softwar... | fix typo | fix typo
Change-Id: I8ff2aaff4115274bf95df989a4630128e1e01c9b
| C++ | bsd-3-clause | biddisco/VTK,aashish24/VTK-old,gram526/VTK,msmolens/VTK,demarle/VTK,candy7393/VTK,mspark93/VTK,jmerkow/VTK,aashish24/VTK-old,ashray/VTK-EVM,biddisco/VTK,demarle/VTK,sankhesh/VTK,msmolens/VTK,gram526/VTK,sankhesh/VTK,berendkleinhaneveld/VTK,mspark93/VTK,keithroe/vtkoptix,SimVascular/VTK,SimVascular/VTK,collects/VTK,bidd... |
bef0d903822736281a3e1e8855812fe23f782219 | CppImport/src/macro/StaticStuff.cpp | CppImport/src/macro/StaticStuff.cpp | /***********************************************************************************************************************
**
** Copyright (c) 2011, 2015 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
** follo... | /***********************************************************************************************************************
**
** Copyright (c) 2011, 2015 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
** follo... | add spaces between method return type and name | add spaces between method return type and name
| C++ | bsd-3-clause | mgalbier/Envision,lukedirtwalker/Envision,Vaishal-shah/Envision,lukedirtwalker/Envision,mgalbier/Envision,mgalbier/Envision,dimitar-asenov/Envision,Vaishal-shah/Envision,lukedirtwalker/Envision,dimitar-asenov/Envision,lukedirtwalker/Envision,dimitar-asenov/Envision,dimitar-asenov/Envision,Vaishal-shah/Envision,mgalbier... |
3e5b56a007b660e44cbcdd58ebc6b5ff61dc9899 | OpenSim/Common/C3DFileAdapter.cpp | OpenSim/Common/C3DFileAdapter.cpp | #include "C3DFileAdapter.h"
#include "btkAcquisitionFileReader.h"
#include "btkAcquisition.h"
#include "btkForcePlatformsExtractor.h"
#include "btkGroundReactionWrenchFilter.h"
namespace {
// Function to convert Eigen matrix to SimTK matrix. This can become a lambda
// funciton inside extendRead in future.
template<... | #include "C3DFileAdapter.h"
#include "btkAcquisitionFileReader.h"
#include "btkAcquisition.h"
#include "btkForcePlatformsExtractor.h"
#include "btkGroundReactionWrenchFilter.h"
namespace {
// Function to convert Eigen matrix to SimTK matrix. This can become a lambda
// funciton inside extendRead in future.
template<... | Make nf an int and use marker_nrow for number of marker frames. | Make nf an int and use marker_nrow for number of marker frames.
| C++ | apache-2.0 | opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core |
aa1ccd9672ce3b36c5e532e6f4a0ac2286b688cb | rx64m_uart_sample/main.cpp | rx64m_uart_sample/main.cpp | //=====================================================================//
/*! @file
@brief RX64M UART(SCI1)サンプル @n
・P07(176) ピンに赤色LED(VF:1.9V)を吸い込みで接続する
@author 平松邦仁 (hira@rvf-rc45.net)
*/
//=====================================================================//
#include "common/sci_io.hpp"
#include "common... | //=====================================================================//
/*! @file
@brief RX64M UART(SCI1)サンプル @n
・P07(176) ピンに赤色LED(VF:1.9V)を吸い込みで接続する
@author 平松邦仁 (hira@rvf-rc45.net)
*/
//=====================================================================//
#include "common/sci_io.hpp"
#include "common... | update clock wait | update clock wait
| C++ | bsd-3-clause | hirakuni45/RX,hirakuni45/RX,hirakuni45/RX,hirakuni45/RX |
2ad053b19e8a45d6a2e4ee99048039d2ea79dc97 | t/atomic_ptr_test.cc | t/atomic_ptr_test.cc | #include "config.h"
#include <assert.h>
#include <pthread.h>
#include <unistd.h>
#include "atomic.hh"
#include "locks.hh"
#include "threadtests.hh"
#define NUM_THREADS 50
#define NUM_TIMES 1000000
class Doodad : public RCValue {
public:
Doodad() {
numInstances++;
}
Doodad(const Doodad& src) : RC... | #include "config.h"
#include <assert.h>
#include <pthread.h>
#include <unistd.h>
#include "atomic.hh"
#include "locks.hh"
#include "threadtests.hh"
#define NUM_THREADS 50
#define NUM_TIMES 100000
class Doodad : public RCValue {
public:
Doodad() {
numInstances++;
}
Doodad(const Doodad& src) : RCV... | Reduce atomic_ptr_test by 10x rounds so it can complete. | Reduce atomic_ptr_test by 10x rounds so it can complete.
(on slow machines)
Change-Id: Ice62f37a5a43790308efe0f62e8c54dea0958f48
Reviewed-on: http://review.northscale.com/2409
Reviewed-by: Dustin Sallings <1c08efb9b3965701be9d700d9a6f481f1ffec3ea@spy.net>
Tested-by: Dustin Sallings <1c08efb9b3965701be9d700d9a6f481f1f... | C++ | apache-2.0 | daverigby/ep-engine,membase/ep-engine,jimwwalker/ep-engine,teligent-ru/ep-engine,owendCB/ep-engine,sriganes/ep-engine,sriganes/ep-engine,membase/ep-engine,zbase/ep-engine,abhinavdangeti/ep-engine,daverigby/kv_engine,zbase/ep-engine,couchbaselabs/ep-engine,membase/ep-engine,teligent-ru/ep-engine,abhinavdangeti/ep-engine... |
7390798b5bbb469e5557b5013aea5af8fc7f6606 | src/plugins/imageviewer/imageview.cpp | src/plugins/imageviewer/imageview.cpp | /****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Copyright (c) 2010 Denis Mingulov.
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of Qt Creator.
**
** $QT_BEGIN_... | /****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Copyright (c) 2010 Denis Mingulov.
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of Qt Creator.
**
** $QT_BEGIN_... | Use smooth transformation | ImageViewer: Use smooth transformation
Merge-request: 2165
Reviewed-by: Thorbjørn Lindeijer <655f5452590a8051e52f7bcb2cf0c775dee83bbf@nokia.com>
| C++ | lgpl-2.1 | jonnor/qt-creator,kuba1/qtcreator,AltarBeastiful/qt-creator,renatofilho/QtCreator,colede/qtcreator,Distrotech/qtcreator,malikcjm/qtcreator,richardmg/qtcreator,colede/qtcreator,ostash/qt-creator-i18n-uk,hdweiss/qt-creator-visualizer,azat/qtcreator,maui-packages/qt-creator,xianian/qt-creator,xianian/qt-creator,xianian/qt... |
f6d4e6776ef4efb49b48ef6b0533668dc52fc84e | plugins/trace_api_plugin/trace_api_plugin.cpp | plugins/trace_api_plugin/trace_api_plugin.cpp | #include <eosio/trace_api_plugin/trace_api_plugin.hpp>
#include <eosio/trace_api_plugin/abi_data_handler.hpp>
#include <eosio/trace_api_plugin/request_handler.hpp>
#include <eosio/trace_api_plugin/configuration_utils.hpp>
using namespace eosio::trace_api_plugin;
using namespace eosio::trace_api_plugin::configuration... | #include <eosio/trace_api_plugin/trace_api_plugin.hpp>
#include <eosio/trace_api_plugin/abi_data_handler.hpp>
#include <eosio/trace_api_plugin/request_handler.hpp>
#include <eosio/trace_api_plugin/configuration_utils.hpp>
using namespace eosio::trace_api_plugin;
using namespace eosio::trace_api_plugin::configuration... | change trace-no-abis to be an error if it is not mutually exclusive with trace-rpc-abis or neither is present | change trace-no-abis to be an error if it is not mutually exclusive with trace-rpc-abis or neither is present
| C++ | mit | EOSIO/eos,EOSIO/eos,EOSIO/eos,EOSIO/eos,EOSIO/eos |
7029d2c056559e9d295da1c8b764b97446d8636a | src/plugins/regexstore/regexstore.cpp | src/plugins/regexstore/regexstore.cpp | /***************************************************************************
regexstore.c - Skeleton of a plugin
-------------------
begin : Fri May 21 2010
copyright : (C) 2010 by Markus Raab
email : elektra@markus... | /***************************************************************************
regexstore.c - Skeleton of a plugin
-------------------
begin : Fri May 21 2010
copyright : (C) 2010 by Markus Raab
email : elektra@markus... | allow multiple matches in regexstore | allow multiple matches in regexstore
| C++ | bsd-3-clause | petermax2/libelektra,mpranj/libelektra,ElektraInitiative/libelektra,BernhardDenner/libelektra,mpranj/libelektra,e1528532/libelektra,petermax2/libelektra,BernhardDenner/libelektra,BernhardDenner/libelektra,mpranj/libelektra,ElektraInitiative/libelektra,BernhardDenner/libelektra,BernhardDenner/libelektra,ElektraInitiativ... |
d08a30280a551fe78f99377d5b5aaaaf7676b8d3 | esidl/src/cxx.cpp | esidl/src/cxx.cpp | /*
* Copyright 2008, 2009 Google Inc.
* Copyright 2007 Nintendo Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | /*
* Copyright 2008, 2009 Google Inc.
* Copyright 2007 Nintendo Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | Clean up. | Clean up. | C++ | apache-2.0 | josejamilena/es-operating-system,ericmckean/es-operating-system,berkus/es-operating-system,google-code-export/es-operating-system,ericmckean/es-operating-system,google-code-export/es-operating-system,josejamilena/es-operating-system,josejamilena/es-operating-system,berkus/es-operating-system,google-code-export/es-opera... |
3a1a3a9e00047cdb887c448afef8c335b48262f2 | src/service/sockets/SocketManager.cpp | src/service/sockets/SocketManager.cpp | /*
* Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | /*
* Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | Move adding sockets to write set to SocketManager main loop | Move adding sockets to write set to SocketManager main loop
Change-Id: Id06b23612992e9c134b69e42746f2af44eb0a8ec
| C++ | apache-2.0 | pohly/cynara,Samsung/cynara,pohly/cynara,Samsung/cynara,pohly/cynara,Samsung/cynara |
5be61fb31c4985a9aafddc3b6f4202375d2d5b19 | src/slic3r/GUI/ButtonsDescription.hpp | src/slic3r/GUI/ButtonsDescription.hpp | #ifndef slic3r_ButtonsDescription_hpp
#define slic3r_ButtonsDescription_hpp
#include <wx/dialog.h>
#include <vector>
class ScalableBitmap;
namespace Slic3r {
namespace GUI {
class ButtonsDescription : public wxDialog
{
wxColourPickerCtrl* sys_colour{ nullptr };
wxColourPickerCtrl* mod_colour{ nullptr };
public:
... | #ifndef slic3r_ButtonsDescription_hpp
#define slic3r_ButtonsDescription_hpp
#include <wx/dialog.h>
#include <vector>
class ScalableBitmap;
class wxColourPickerCtrl;
namespace Slic3r {
namespace GUI {
class ButtonsDescription : public wxDialog
{
wxColourPickerCtrl* sys_colour{ nullptr };
wxColourPickerCtrl* mod_co... | Fix build on Linux (gcc 8.4) | Fix build on Linux (gcc 8.4)
| C++ | agpl-3.0 | prusa3d/Slic3r,prusa3d/Slic3r,prusa3d/Slic3r,prusa3d/Slic3r,prusa3d/Slic3r,prusa3d/Slic3r,prusa3d/Slic3r |
f3deb1a13521349b979b1d101dda335aa80c58d7 | src/store/naive/simple_collection.cpp | src/store/naive/simple_collection.cpp | /*
* Copyright 2006-2007 FLWOR Foundation.
* Author: David Graf (david.graf@28msec.com)
*
*/
#include "util/rchandle.h"
#include "store/naive/simple_collection.h"
namespace xqp
{
typedef rchandle<PlanIterator> PlanIter_t;
SimpleCollection::SimpleCollection()
{
}
SimpleCollection::~SimpleCollection()
{
}... | /*
* Copyright 2006-2007 FLWOR Foundation.
* Author: David Graf (david.graf@28msec.com)
*
*/
#include "util/rchandle.h"
#include "store/naive/simple_collection.h"
#include "store/naive/node_items.h"
namespace xqp
{
typedef rchandle<Iterator> Iterator_t;
/*********************************************************... | use Iterator instead of PlanIter | use Iterator instead of PlanIter | C++ | apache-2.0 | cezarfx/zorba,28msec/zorba,bgarrels/zorba,cezarfx/zorba,bgarrels/zorba,28msec/zorba,bgarrels/zorba,cezarfx/zorba,cezarfx/zorba,28msec/zorba,cezarfx/zorba,28msec/zorba,cezarfx/zorba,cezarfx/zorba,cezarfx/zorba,28msec/zorba,bgarrels/zorba,bgarrels/zorba,cezarfx/zorba,28msec/zorba,bgarrels/zorba,28msec/zorba,bgarrels/zorb... |
1b720f069038ce3dca9ce7fe929b809fe878f34e | test/runner_test.cpp | test/runner_test.cpp | /*
Copyright (c) 2012 by Procera Networks, Inc. ("PROCERA")
Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted, provided that the
above copyright notice and this permission notice appear in all
copies.
THE SOFTWARE IS PROVIDED "AS IS" AND... | /*
Copyright (c) 2012 by Procera Networks, Inc. ("PROCERA")
Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted, provided that the
above copyright notice and this permission notice appear in all
copies.
THE SOFTWARE IS PROVIDED "AS IS" AND... | Fix state transition test-case that broke in d768330 | Fix state transition test-case that broke in d768330
| C++ | isc | yogarajbaskaravel/koi,krig/koi,yogarajbaskaravel/koi,krig/koi,yogarajbaskaravel/koi,krig/koi,krig/koi,yogarajbaskaravel/koi |
82f0d1a2a844af16cb604b78651da4734d2aec9e | test/test_buffer.cpp | test/test_buffer.cpp | /*
Copyright (c) 2003 - 2005, Arvid Norberg, Daniel Wallin
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 li... | /*
Copyright (c) 2003 - 2005, Arvid Norberg, Daniel Wallin
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 li... | tweak chained buffer test | tweak chained buffer test
git-svn-id: 6ed3528c1be4534134272ad6dd050eeaa1f628d3@9927 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
| C++ | bsd-3-clause | svn2github/libtorrent-trunk,svn2github/libtorrent-trunk,svn2github/libtorrent-trunk,svn2github/libtorrent-trunk |
f12d42c23df584831266e7d962bdf4191e6cd928 | xls/netlist/function_extractor.cc | xls/netlist/function_extractor.cc | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | Fix compile error: either gcc doesn't like absl::string_view -> std::string implicit conversion or internal absl has different operators defined. | Fix compile error: either gcc doesn't like absl::string_view -> std::string implicit conversion or internal absl has different operators defined.
PiperOrigin-RevId: 324645189
| C++ | apache-2.0 | google/xls,google/xls,google/xls,google/xls,google/xls,google/xls |
cc0be6ba4138432d7356147faaa538e69f2b09ef | tutorials/proof/ProcFileElements.C | tutorials/proof/ProcFileElements.C | //////////////////////////////////////////////////////////////////////////
// //
// ProcFileElements //
// //
// This class holds ... | //////////////////////////////////////////////////////////////////////////
// //
// ProcFileElements //
// //
// This class holds ... | Add loop to make sure that all overlapping or adjacent elements are merged | Add loop to make sure that all overlapping or adjacent elements are merged
git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@45643 27541ba8-7e3a-0410-8455-c3a389f83636
| C++ | lgpl-2.1 | alexschlueter/cern-root,bbockelm/root,abhinavmoudgil95/root,mhuwiler/rootauto,abhinavmoudgil95/root,veprbl/root,beniz/root,omazapa/root-old,sirinath/root,esakellari/my_root_for_test,lgiommi/root,vukasinmilosevic/root,gganis/root,sbinet/cxx-root,arch1tect0r/root,alexschlueter/cern-root,zzxuanyuan/root,sbinet/cxx-root,Cr... |
222e2c0f1376cdb6af8494c9ea190fef441ea832 | chrome/browser/ui/webui/options2/chromeos/stats_options_handler.cc | chrome/browser/ui/webui/options2/chromeos/stats_options_handler.cc | // 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/ui/webui/options2/chromeos/stats_options_handler.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/utf... | // 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/ui/webui/options2/chromeos/stats_options_handler.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/utf... | Fix CrOS Official build from options2 copy. | Fix CrOS Official build from options2 copy.
BUG=none
TEST=none
TBR=csilv
Review URL: http://codereview.chromium.org/8907049
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@114493 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | gavinp/chromium,ropik/chromium,gavinp/chromium,ropik/chromium,adobe/chromium,ropik/chromium,adobe/chromium,ropik/chromium,gavinp/chromium,yitian134/chromium,gavinp/chromium,gavinp/chromium,yitian134/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium,ropik/chromium,yitian134/chromium,yitian134/chromium,gavinp/ch... |
d5bb2b9d8b280d90c4fd86d919aa0e85fa6a0fdf | ui/gfx/compositor/compositor_cc.cc | ui/gfx/compositor/compositor_cc.cc | // 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 "ui/gfx/compositor/compositor_cc.h"
#include "base/command_line.h"
#include "third_party/skia/include/images/SkImageEncoder.h"
#include "thi... | // 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 "ui/gfx/compositor/compositor_cc.h"
#include "base/command_line.h"
#include "third_party/skia/include/images/SkImageEncoder.h"
#include "thi... | Revert 115887 - Fixes assertion failure in multithreaded compositor. | Revert 115887 - Fixes assertion failure in multithreaded compositor.
Right now, it seems as if we are always defaulting to 60fps for the frame rate in WebKit. This patch sets the frame rate for the browser compositor to the same default.
Review URL: http://codereview.chromium.org/8953039
TBR=pkotwicz@chromium.org
Re... | C++ | bsd-3-clause | Chilledheart/chromium,zcbenz/cefode-chromium,markYoungH/chromium.src,nacl-webkit/chrome_deps,axinging/chromium-crosswalk,timopulkkinen/BubbleFish,hgl888/chromium-crosswalk-efl,jaruba/chromium.src,mogoweb/chromium-crosswalk,chuan9/chromium-crosswalk,mogoweb/chromium-crosswalk,robclark/chromium,mohamed--abdel-maksoud/chr... |
5fc8999a5e1bd3674b57fe1e15d4e68f5081c4a4 | tester/AssetTest.cpp | tester/AssetTest.cpp | /**
* @file AssetTest.cpp
* @brief Asset class tester.
* @author zer0
* @date 2016-04-03
*/
#include <gtest/gtest.h>
#include <libtbag/Asset.hpp>
using namespace libtbag;
TEST(AssetStaticTest, PathOperators)
{
# if defined(WIN32) || defined(_WIN32)
EXPECT_EQ(GetPathSeparator(), '\\');
EXPECT_EQ(Get... | /**
* @file AssetTest.cpp
* @brief Asset class tester.
* @author zer0
* @date 2016-04-03
*/
#include <gtest/gtest.h>
#include <libtbag/Asset.hpp>
using namespace libtbag;
TEST(AssetStaticTest, PathOperators)
{
# if defined(WIN32) || defined(_WIN32)
EXPECT_EQ(GetPathSeparator(), '\\');
EXPECT_EQ(Get... | Test the move operators of Asset class. | Test the move operators of Asset class.
| C++ | mit | osom8979/tbag,osom8979/tbag,osom8979/tbag,osom8979/tbag,osom8979/tbag |
ea9704225a1c7aab6682ed1aa09dc155b70de767 | examples/aout.cpp | examples/aout.cpp | #include <random>
#include <chrono>
#include <cstdlib>
#include <iostream>
#include "caf/all.hpp"
#include "caf/io/all.hpp"
using namespace caf;
using std::endl;
void caf_main(actor_system& system) {
for (int i = 1; i <= 50; ++i) {
system.spawn([i](blocking_actor* self) {
aout(self) << "Hi there! This is... | #include <random>
#include <chrono>
#include <cstdlib>
#include <iostream>
#include "caf/all.hpp"
using namespace caf;
using std::endl;
void caf_main(actor_system& system) {
for (int i = 1; i <= 50; ++i) {
system.spawn([i](blocking_actor* self) {
aout(self) << "Hi there! This is actor nr. "
... | Remove unnecessary include | Remove unnecessary include
| C++ | bsd-3-clause | DavadDi/actor-framework,actor-framework/actor-framework,DavadDi/actor-framework,actor-framework/actor-framework,DavadDi/actor-framework,DavadDi/actor-framework,actor-framework/actor-framework,actor-framework/actor-framework |
52d7f7b9506714453789b7cd3ffaf58296af54a0 | test/testzillians-compiler/ThorScriptTreeTest/StructureVerificationVisitorTest/StructureVerificationVisitorTest.cpp | test/testzillians-compiler/ThorScriptTreeTest/StructureVerificationVisitorTest/StructureVerificationVisitorTest.cpp | /**
* Zillians MMO
* Copyright (C) 2007-2010 Zillians.com, Inc.
* For more information see http://www.zillians.com
*
* Zillians MMO is the library and runtime for massive multiplayer online game
* development in utility computing model, which runs as a service for every
* developer to build their virtual world r... | /**
* Zillians MMO
* Copyright (C) 2007-2010 Zillians.com, Inc.
* For more information see http://www.zillians.com
*
* Zillians MMO is the library and runtime for massive multiplayer online game
* development in utility computing model, which runs as a service for every
* developer to build their virtual world r... | add terminate function in GenericDoubleVisitor | add terminate function in GenericDoubleVisitor
| C++ | agpl-3.0 | zillians/supercell_language,zillians/supercell_language,zillians/supercell_language,zillians/supercell_language,zillians/supercell_language |
755a6c0a46f07cdadb06821ced904af458fbf4e3 | tools/replay/tests/test_replay.cc | tools/replay/tests/test_replay.cc | #include <chrono>
#include <thread>
#include <QDebug>
#include <QEventLoop>
#include "catch2/catch.hpp"
#include "common/util.h"
#include "tools/replay/replay.h"
#include "tools/replay/util.h"
const std::string TEST_RLOG_URL = "https://commadataci.blob.core.windows.net/openpilotci/0c94aa1e1296d7c6/2021-05-05--19-48-... | #include <chrono>
#include <thread>
#include <QDebug>
#include <QEventLoop>
#include "catch2/catch.hpp"
#include "common/util.h"
#include "tools/replay/replay.h"
#include "tools/replay/util.h"
const std::string TEST_RLOG_URL = "https://commadataci.blob.core.windows.net/openpilotci/0c94aa1e1296d7c6/2021-05-05--19-48-... | Revert "tools/replay: reduce test running time (#26110)" | Revert "tools/replay: reduce test running time (#26110)"
This reverts commit 6d07268ee5b385010961eab206b0b42a0ae6b5f8.
| C++ | mit | commaai/openpilot,commaai/openpilot,commaai/openpilot,commaai/openpilot,commaai/openpilot,commaai/openpilot |
f5f978d53fe60a1a2937eeafb536ebe418c1cfd0 | tests/basic_test.cpp | tests/basic_test.cpp | /*
* basic_test.cpp
*/
#include <chrono>
#include <mutex>
#include "gtest/gtest.h"
#include "naive_spin_mutex.hpp"
#include "ttas_spin_mutex.hpp"
#include "checked_mutex.hpp"
#include "fair_mutex.hpp"
#include "alternate_mutex.hpp"
#include "yamc_testutil.hpp"
#define TEST_THREADS 8
#define TEST_ITERATION 10000u
... | /*
* basic_test.cpp
*/
#include <atomic>
#include <chrono>
#include <mutex>
#include "gtest/gtest.h"
#include "naive_spin_mutex.hpp"
#include "ttas_spin_mutex.hpp"
#include "checked_mutex.hpp"
#include "fair_mutex.hpp"
#include "alternate_mutex.hpp"
#include "yamc_testutil.hpp"
#define TEST_THREADS 8
#define TEST... | add Lockfree test (basic_test.cpp) | add Lockfree test (basic_test.cpp)
| C++ | mit | yohhoy/yamc,yohhoy/yamc |
202ceb4d3efd2294544583a7d4dc92899aa0181f | src/plugins/dummy/dummyplugin.cpp | src/plugins/dummy/dummyplugin.cpp | /************************************************************************************
* Copyright (C) 2014 Aleix Pol Gonzalez <aleixpol@blue-systems.com> *
* *
* This program is free software; you can redistribute it and/... | /************************************************************************************
* Copyright (C) 2014 Aleix Pol Gonzalez <aleixpol@blue-systems.com> *
* *
* This program is free software; you can redistribute it and/... | Make the Dummy plugin actually output something | Make the Dummy plugin actually output something
| C++ | lgpl-2.1 | RJVB/kde-purpose,RJVB/kde-purpose,RJVB/kde-purpose |
eecede18a0add6e04d5d6c0c1f3ad332d5377909 | shared_from_this/main.cpp | shared_from_this/main.cpp | #include <memory>
#include <iostream>
struct Good: std::enable_shared_from_this<Good>
{
std::shared_ptr<Good> getptr() {
return shared_from_this();
}
~Good() { std::cout << "Good::~Good() called\n"; }
};
struct Bad
{
std::shared_ptr<Bad> getptr() {
return std::shared_ptr<Bad>(this);
... | #include <memory>
#include <iostream>
struct Good : std::enable_shared_from_this<Good> {
std::shared_ptr<Good> getptr() { return shared_from_this(); }
~Good() { std::cout << "Good::~Good() called\n"; }
};
struct Bad {
std::shared_ptr<Bad> getptr() { return std::shared_ptr<Bad>(this); }
~Bad() { std::cout << "... | update shared_from_this | update shared_from_this
| C++ | apache-2.0 | Mizux/snippets,Mizux/snippets |
c73c8525c862fe186274028776c6b152d4f2be1c | soccer/Logger.hpp | soccer/Logger.hpp | /**
* @brief The Logger stores and saves the state of the game at each point in
* time.
*
* @details
* The log stores things such as robot and ball position and velocity as well as
* debug information about the current play. See the LogFrame.proto file for a
* full list of what is stored in the log.
*
* This l... | /**
* @brief The Logger stores and saves the state of the game at each point in
* time.
*
* @details
* The log stores things such as robot and ball position and velocity as well as
* debug information about the current play. See the LogFrame.proto file for a
* full list of what is stored in the log.
*
* This l... | Make Pretty | Make Pretty
| C++ | apache-2.0 | RoboJackets/robocup-software,RoboJackets/robocup-software,RoboJackets/robocup-software,JNeiger/robocup-software,JNeiger/robocup-software,JNeiger/robocup-software,JNeiger/robocup-software,JNeiger/robocup-software,RoboJackets/robocup-software |
23ec3937eca97e7310841b27709e2cc677806406 | JPetHLDReader/JPetHLDReader.cpp | JPetHLDReader/JPetHLDReader.cpp | /**
* @copyright Copyright 2016 The J-PET Framework Authors. All rights reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may find a copy of the License in the LICENCE file.
*
* Unless required by applicable la... | /**
* @copyright Copyright 2016 The J-PET Framework Authors. All rights reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may find a copy of the License in the LICENCE file.
*
* Unless required by applicable la... | Add some missing constructor initialization in JPetHLDReader | Add some missing constructor initialization in JPetHLDReader
| C++ | apache-2.0 | alexkernphysiker/j-pet-framework,JPETTomography/j-pet-framework,alexkernphysiker/j-pet-framework,JPETTomography/j-pet-framework,alexkernphysiker/j-pet-framework,alexkernphysiker/j-pet-framework,alexkernphysiker/j-pet-framework,JPETTomography/j-pet-framework |
0f2827703942c2fc588288d5c9c85a1d167865c7 | tests/mock_memio.cpp | tests/mock_memio.cpp | #include "mock_memio.hpp"
namespace mock {
namespace {
mock::Memory g_memory;
extern "C" void raw_write32(uint32_t addr, uint32_t value) {
g_memory.write32(addr, value);
}
extern "C" uint32_t raw_read32(uint32_t addr) {
return g_memory.read32(addr);
}
} // namespace
void Memory::priv_write32(uint32_t ad... | #include "mock_memio.hpp"
namespace mock {
namespace {
mock::Memory g_memory;
extern "C" void raw_write32(uint32_t addr, uint32_t value) {
g_memory.write32(addr, value);
}
extern "C" uint32_t raw_read32(uint32_t addr) {
return g_memory.read32(addr);
}
} // namespace
void Memory::priv_write32(uint32_t ad... | Fix bug in fake_memio, that was not clearing the address handlers properly | Fix bug in fake_memio, that was not clearing the address handlers properly
| C++ | apache-2.0 | google/cortex-demos,google/cortex-demos,google/cortex-demos,google/cortex-demos |
8512c22ba47d4ad9a7f0056fcfbd0c7688ef0ac7 | soccer/planning/TargetVelPathPlannerTest.cpp | soccer/planning/TargetVelPathPlannerTest.cpp | #include <gtest/gtest.h>
#include "TargetVelPathPlanner.hpp"
#include "planning/MotionCommand.hpp"
#include <Geometry2d/Point.hpp>
using namespace Geometry2d;
namespace Planning {
TEST(TargetVelPathPlannerTest, run) {
MotionInstant startInstant({0, 0}, {0, 0});
WorldVelTargetCommand command(Point(0, 1));
... | #include <gtest/gtest.h>
#include "TargetVelPathPlanner.hpp"
#include "planning/MotionCommand.hpp"
#include <Geometry2d/Point.hpp>
using namespace Geometry2d;
namespace Planning {
TEST(TargetVelPathPlannerTest, run) {
MotionInstant startInstant({0, 0}, {0, 0});
WorldVelTargetCommand cmd(Point(0, 1));
Mo... | Fix TargetVelPathPlannerTest | Fix TargetVelPathPlannerTest
| C++ | apache-2.0 | RoboJackets/robocup-software,JNeiger/robocup-software,JNeiger/robocup-software,RoboJackets/robocup-software,RoboJackets/robocup-software,JNeiger/robocup-software,JNeiger/robocup-software,JNeiger/robocup-software,RoboJackets/robocup-software |
946d6377d3dc54cd27058d352d15314f3b1ed167 | examples/priv.cpp | examples/priv.cpp | /*
* Copyright (c) 2011-2013 libbitcoin developers (see AUTHORS)
*
* This file is part of libbitcoin.
*
* libbitcoin is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License with
* additional permissions to the one published by the Free Software
* Fou... | /*
* Copyright (c) 2011-2013 libbitcoin developers (see AUTHORS)
*
* This file is part of libbitcoin.
*
* libbitcoin is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License with
* additional permissions to the one published by the Free Software
* Fou... | Use new elliptic_curve_key. | examples/priv: Use new elliptic_curve_key.
The way ECK is used has changed a bit, so accomodate the example.
Announcement: http://lists.dyne.org/lurker/message/20140116.144459.92a367f2.en.html
Issue: https://github.com/spesmilo/libbitcoin/issues/33
| C++ | agpl-3.0 | libtetcoin/libtetcoin-consensus,kaostao/libbitcoin,libtetcoin/libtetcoin-consensus,kaostao/libbitcoin,swansontec/libbitcoin,BWallet/libbitcoin,GroestlCoin/libgroestlcoin,swansontec/libbitcoin,libmetrocoin/libmetrocoin-consensus,Airbitz/libbitcoin,BWallet/libbitcoin,BWallet/libbitcoin,GroestlCoin/libgroestlcoin,libtetco... |
43d60d7b360a1e164772acb29988f433105d28db | vespalib/src/tests/net/tls/policy_checking_certificate_verifier/policy_checking_certificate_verifier_test.cpp | vespalib/src/tests/net/tls/policy_checking_certificate_verifier/policy_checking_certificate_verifier_test.cpp | // Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/io/fileutil.h>
#include <vespa/vespalib/net/tls/transport_security_options.h>
#include <vespa/vespalib/net/tls/transport_security_options_reading.h>
#include <vespa/vespalib/ne... | // Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/io/fileutil.h>
#include <vespa/vespalib/net/tls/transport_security_options.h>
#include <vespa/vespalib/net/tls/transport_security_options_reading.h>
#include <vespa/vespalib/ne... | Correct test name | Correct test name
| C++ | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa |
758198c03d03584325d18c9da22de8f57033edd2 | source/system.cpp | source/system.cpp | /*
* CrissCross
* A multi-purpose cross-platform library.
*
* A product of Uplink Laboratories.
*
* (c) 2006-2009 Steven Noonan.
* Licensed under the New BSD License.
*
*/
#include <crisscross/universal_include.h>
#include <crisscross/system.h>
namespace CrissCross
{
namespace System
{
static ... | /*
* CrissCross
* A multi-purpose cross-platform library.
*
* A product of Uplink Laboratories.
*
* (c) 2006-2009 Steven Noonan.
* Licensed under the New BSD License.
*
*/
#include <crisscross/universal_include.h>
#include <crisscross/system.h>
namespace CrissCross
{
namespace System
{
static ... | make timer related variables static | system: make timer related variables static
Signed-off-by: Steven Noonan <4068f0880b399410602d694b3cc711c8a8f4727e@uplinklabs.net>
| C++ | bsd-3-clause | tycho/crisscross,tycho/crisscross,prophile/crisscross,prophile/crisscross,tycho/crisscross,prophile/crisscross |
3d71b5aaf6d2852793e66bfdc35ec9e695f60df5 | sound/fmgen/fmgen_file.cpp | sound/fmgen/fmgen_file.cpp | // $Id: file.cpp,v 1.6 1999/12/28 11:14:05 cisc Exp $
#ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h>
#ifdef __cplusplus
}
#endif
#include "fmgen_types.h"
#include "fmgen_headers.h"
#include "fmgen_file.h"
// ---------------------------------------------------------------------------
// ... | // $Id: file.cpp,v 1.6 1999/12/28 11:14:05 cisc Exp $
#ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h>
#ifdef __cplusplus
}
#endif
#include "fmgen_types.h"
#include "fmgen_headers.h"
#include "fmgen_file.h"
// ---------------------------------------------------------------------------
// ... | fix rhythm file close | fix rhythm file close
| C++ | mit | AZO234/NP2kai,AZO234/NP2kai,AZO234/NP2kai,AZO234/NP2kai |
bab5e80f5a20cd9ade0c6126d06df3e857a5b415 | tests/test_shell.cpp | tests/test_shell.cpp | #include <atomic>
#include <string>
#include <gtest/gtest.h>
#include <teelogging/teelogging.h>
#include "../shell.h"
#include "../coroutine.h"
#include "../scheduler.h"
#include "../semaphore.h"
#include "../channel.h"
class CoroTest : testing::Test { };
using namespace cu;
TEST(CoroTest, Test_find)
{
cu::schedule... | #include <atomic>
#include <string>
#include <gtest/gtest.h>
#include <teelogging/teelogging.h>
#include "../shell.h"
#include "../coroutine.h"
#include "../scheduler.h"
#include "../semaphore.h"
#include "../channel.h"
class CoroTest : testing::Test { };
using namespace cu;
TEST(CoroTest, Test_find)
{
cu::schedule... | Update test_shell.cpp | Update test_shell.cpp | C++ | mit | makiolo/cppunix,makiolo/cppunix |
4b70027fa02ecde2faa939a386f5e82a7f12222f | tests/v4l2decode.cpp | tests/v4l2decode.cpp | /*
* Copyright (C) 2011-2014 Intel Corporation. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... | /*
* Copyright (C) 2011-2014 Intel Corporation. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... | add seek simulation code | v4l2decode: add seek simulation code
we have no seek unit test yet, we use this to simulate the seek operation
| C++ | apache-2.0 | 01org/libyami-utils,01org/libyami-utils,01org/libyami-utils,01org/libyami-utils |
5a5c4a83c1e873dcd82c01e8d40c0840f436d627 | source/Interpreter/OptionGroupWatchpoint.cpp | source/Interpreter/OptionGroupWatchpoint.cpp | //===-- OptionGroupWatchpoint.cpp -------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- OptionGroupWatchpoint.cpp -------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Modify the help text for watching a variable or its pointee. | Modify the help text for watching a variable or its pointee.
git-svn-id: b33bab8abb5b18c12ee100cd7761ab452d00b2b0@142391 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb |
ae495d0d3910633f6ebc884c1e67e3814a3af76b | source/utilities/utils.cpp | source/utilities/utils.cpp | #include <csignal>
#include <locale>
#include <memory>
#include <sstream>
#include <string>
#include <vector>
#include "utils.hpp"
void debugger() {
#ifdef _MSC_VER
# ifdef _WIN64
throw std::runtime_error("inline asm in unsupported on this platform");
# else
__asm int 3
# endif
#else
raise(SIGTRAP);
#endif
}... | #include <csignal>
#include <locale>
#include <memory>
#include <sstream>
#include <string>
#include <vector>
#ifdef _MSC_VER
# include <Windows.h>
#endif
#include "utils.hpp"
void debugger() {
#ifdef _MSC_VER
DebugBreak();
#else
raise(SIGTRAP);
#endif
}
std::string enquote(std::string s) {
std::ostringstream ... | Make debugger() work in MSVC++ 64-bit builds. | Make debugger() work in MSVC++ 64-bit builds.
| C++ | bsd-3-clause | coder0xff/Plange,coder0xff/Plange,coder0xff/Plange,coder0xff/Plange |
b45c4c5413d6b58173d21823148c5c8cfec57b38 | source/src/emailinputter/qremailinputter.cpp | source/src/emailinputter/qremailinputter.cpp | #include "emailinputter/qremailinputter.h"
#include <QtCore/qdebug.h>
#include <QtWidgets/qtextedit.h>
#include <QtGui/qevent.h>
#include <QtWidgets/qlistview.h>
#include <QtGui/qstandarditemmodel.h>
#include <QtWidgets/qboxlayout.h>
#include "emailinputter/qrmailboxfilterproxymodel.h"
#include "emailinputter/qremail... | #include "emailinputter/qremailinputter.h"
#include <QtCore/qdebug.h>
#include <QtWidgets/qtextedit.h>
#include <QtGui/qevent.h>
#include <QtWidgets/qlistview.h>
#include <QtGui/qstandarditemmodel.h>
#include <QtWidgets/qboxlayout.h>
#include "emailinputter/qrmailboxfilterproxymodel.h"
#include "emailinputter/qremail... | set email inputter 's list as a pop up widget | set email inputter 's list as a pop up widget
| C++ | apache-2.0 | Qters/QrWidgets |
2ba7834604c605cce904380037712a79d159bee9 | test/eigensolver_generalized_real.cpp | test/eigensolver_generalized_real.cpp | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2012 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You can ob... | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2012-2016 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You c... | Add unit test for non symmetric generalized eigenvalues | Add unit test for non symmetric generalized eigenvalues
| C++ | bsd-3-clause | pasuka/eigen,ritsu1228/eigen,ROCmSoftwarePlatform/hipeigen,pasuka/eigen,pasuka/eigen,ritsu1228/eigen,ritsu1228/eigen,ROCmSoftwarePlatform/hipeigen,pasuka/eigen,ROCmSoftwarePlatform/hipeigen,ritsu1228/eigen,pasuka/eigen,ROCmSoftwarePlatform/hipeigen,ritsu1228/eigen |
b2ea3849ad4ca19858f45f650925fee088ccefa0 | MFT/AliMuonForwardTrackPair.cxx | MFT/AliMuonForwardTrackPair.cxx | /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | Update in AliMuonForwardTrackPair class | Update in AliMuonForwardTrackPair class
| C++ | bsd-3-clause | ALICEHLT/AliRoot,coppedis/AliRoot,sebaleh/AliRoot,ecalvovi/AliRoot,jgrosseo/AliRoot,mkrzewic/AliRoot,miranov25/AliRoot,sebaleh/AliRoot,sebaleh/AliRoot,jgrosseo/AliRoot,ALICEHLT/AliRoot,jgrosseo/AliRoot,mkrzewic/AliRoot,jgrosseo/AliRoot,ALICEHLT/AliRoot,miranov25/AliRoot,jgrosseo/AliRoot,sebaleh/AliRoot,miranov25/AliRoo... |
b49218251e1df83a93e46e5111aaccbef95abafc | libspaghetti/source/nodes/values/characteristic_curve/editor_window.cc | libspaghetti/source/nodes/values/characteristic_curve/editor_window.cc | // MIT License
//
// Copyright (c) 2017-2018 Artur Wyszyński, aljen at hitomi dot pl
//
// 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 th... | // MIT License
//
// Copyright (c) 2017-2018 Artur Wyszyński, aljen at hitomi dot pl
//
// 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 th... | Set x/y axis value type | Set x/y axis value type | C++ | mit | aljen/spaghetti,aljen/spaghetti |
8d3157ea9204021c5e5cfebaf06cd2fa2882a974 | test/unit/filters/IndexFilterTest.cpp | test/unit/filters/IndexFilterTest.cpp | /******************************************************************************
* Copyright (c) 2011, Michael P. Gerlek (mpg@flaxen.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:
*
* ... | /******************************************************************************
* Copyright (c) 2011, Michael P. Gerlek (mpg@flaxen.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:
*
* ... | fix up test | fix up test
| C++ | bsd-3-clause | verma/PDAL,boundlessgeo/PDAL,jwomeara/PDAL,radiantbluetechnologies/PDAL,mtCarto/PDAL,mpgerlek/PDAL-old,lucadelu/PDAL,Sciumo/PDAL,lucadelu/PDAL,mtCarto/PDAL,Sciumo/PDAL,Sciumo/PDAL,mtCarto/PDAL,mtCarto/PDAL,lucadelu/PDAL,Sciumo/PDAL,boundlessgeo/PDAL,jwomeara/PDAL,DougFirErickson/PDAL,boundlessgeo/PDAL,radiantbluetechno... |
2590e7d8ca52d8e229df9f51751aebb64566c869 | PWG2/PROOF-INF.PWG2kink/SETUP.C | PWG2/PROOF-INF.PWG2kink/SETUP.C | void SETUP() {
CheckLoadLibrary("libPWG2evchar");
// Set the include paths
gROOT->ProcessLine(".include PWG2evchar/EVCHAR");
// Set our location, so that other packages can find us
gSystem->Setenv("PWG2evchar_INCLUDE", "PWG2evchar");
}
Int_t CheckLoadLibrary(const char* library) {
// checks if a library ... | void SETUP() {
CheckLoadLibrary("libPWG2evchar");
// Set the include paths
gROOT->ProcessLine(".include PWG2evchar/EVCHAR");
// Set our location, so that other packages can find us
gSystem->Setenv("PWG2evchar_INCLUDE", "PWG2evchar/EVCHAR");
}
Int_t CheckLoadLibrary(const char* library) {
// checks if a l... | Fix include path | Fix include path
| C++ | bsd-3-clause | fbellini/AliPhysics,jmargutt/AliPhysics,victor-gonzalez/AliPhysics,btrzecia/AliPhysics,kreisl/AliPhysics,hcab14/AliPhysics,rderradi/AliPhysics,mkrzewic/AliPhysics,mpuccio/AliPhysics,AMechler/AliPhysics,mbjadhav/AliPhysics,fcolamar/AliPhysics,jgronefe/AliPhysics,jgronefe/AliPhysics,dlodato/AliPhysics,jgronefe/AliPhysics... |
8e1291d8150d4af656c374df11723fa6f34231b1 | ParseHelper.BlockParseState.cpp | ParseHelper.BlockParseState.cpp | /**
Copyright (c) 2014 Alex Tsui
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, merge, publish, distribute, subl... | /**
Copyright (c) 2014 Alex Tsui
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, merge, publish, distribute, subl... | Correct edge case where last block is closed. | Correct edge case where last block is closed.
| C++ | mit | alextsui05/python-console,alextsui05/python-console |
4fd072ebdf1eab565c189a5247f99ae3dada4b7f | moveit_ros/manipulation/pick_place/src/reachable_valid_pose_filter.cpp | moveit_ros/manipulation/pick_place/src/reachable_valid_pose_filter.cpp | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2012, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condit... | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2012, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condit... | check for frame equality in a more robust fashion | check for frame equality in a more robust fashion
| C++ | bsd-3-clause | v4hn/moveit,ros-planning/moveit,davetcoleman/moveit,davetcoleman/moveit,ros-planning/moveit,davetcoleman/moveit,v4hn/moveit,davetcoleman/moveit,ros-planning/moveit,ros-planning/moveit,v4hn/moveit,ros-planning/moveit,v4hn/moveit |
62ecf54aaa2bde21d9c82173fcb257d76d3a09b0 | cpp/ql/src/experimental/Security/CWE/CWE-476/DangerousUseOfExceptionBlocks.cpp | cpp/ql/src/experimental/Security/CWE/CWE-476/DangerousUseOfExceptionBlocks.cpp | ...
try {
if (checkValue) throw exception();
valData->bufMyData = new myData*[valData->sizeInt];
}
catch (...)
{
for (size_t i = 0; i < valData->sizeInt; i++)
{
delete[] valData->bufMyData[i]->buffer; // BAD
delete valData->bufMyData[i];
}
...
try {
if (checkValue) throw excep... | ...
try {
if (checkValue) throw exception();
valData->bufMyData = new myData*[valData->sizeInt];
}
catch (...)
{
for (size_t i = 0; i < valData->sizeInt; i++)
{
delete[] valData->bufMyData[i]->buffer; // BAD
delete valData->bufMyData[i];
}
...
try {
if (checkValue) throw excep... | Update DangerousUseOfExceptionBlocks.cpp | Update DangerousUseOfExceptionBlocks.cpp | C++ | mit | github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql |
b5c74d47c84dada12ac690c78d9bb127aa463db8 | engine/byte_array.cpp | engine/byte_array.cpp | // The MIT License(MIT)
//
// Copyright 2017 Huldra
//
// 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, ... | // The MIT License(MIT)
//
// Copyright 2017 Huldra
//
// 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, ... | Update byte_array.cpp | Update byte_array.cpp | C++ | mit | t800danya/desert-engine,t800danya/desert-engine,t800danya/desert-engine,t800danya/desert-engine |
7540cacfbf00155b0c3cde9c4019e8fff08f5012 | tests/CppUTestExt/OrderedTestTest.cpp | tests/CppUTestExt/OrderedTestTest.cpp | /*
* Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde
* 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... | /*
* Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde
* 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... | Fix OrderedTestTest | Fix OrderedTestTest
| C++ | bsd-3-clause | Mindtribe/cpputest,bithium/cpputest,arstrube/cpputest,devMichaelJones/cpputest,asgeroverby/cpputest,bithium/cpputest,offa/cpputest,cpputest/cpputest,chenlianbing/cpputest,chenlianbing/cpputest,offa/cpputest,jaeguly/cpputest,Andne/cpputest,Mindtribe/cpputest,asgeroverby/cpputest,jaeguly/cpputest,cpputest/cpputest,maxila... |
6ef0d0e16991df35276061143f978bf85f338133 | tests/environment/EnvironmentTest.cpp | tests/environment/EnvironmentTest.cpp | #include "CppUTest/TestHarness.h"
#include "CppUTestExt/MockSupport.h"
#include "Environment.h"
#include "MockSensor.h"
static const char* dummy_name_01 = "dummy_01";
static const char* dummy_name_02 = "dummy_02";
typedef std::vector<MockSensor *> MockSensorList;
TEST_GROUP(Environment)
{
Environment* env;
... | #include "CppUTest/TestHarness.h"
#include "CppUTestExt/MockSupport.h"
#include "Environment.h"
#include "MockSensor.h"
static const char* dummy_name_01 = "dummy_01";
static const char* dummy_name_02 = "dummy_02";
typedef std::vector<MockSensor *> MockSensorList;
TEST_GROUP(Environment)
{
Environment* env;
... | add Multiple Sensor Control Test in Environment Test | add Multiple Sensor Control Test in Environment Test
| C++ | mit | cad-san/subsumption,cad-san/subsumption |
4ea681048a26034b11b83e87ce5202b76b24f93d | tutorials/geom/gdml/testoptical.C | tutorials/geom/gdml/testoptical.C | /// \file
/// \ingroup tutorial_geom
/// Tests importing/exporting optical surfaces from GDML
///
/// Optical surfaces, skin surfaces and border surfaces are imported in object arrays
/// stored by TGeoManager class. Optical surfaces do not store property arrays but point
/// to GDML matrices describing such properties... | /// \file
/// \ingroup tutorial_geom
/// Tests importing/exporting optical surfaces from GDML
///
/// Optical surfaces, skin surfaces and border surfaces are imported in object arrays
/// stored by TGeoManager class. Optical surfaces do not store property arrays but point
/// to GDML matrices describing such properties... | fix testoptical.C (use only forward slashes in the path) | Windows: fix testoptical.C (use only forward slashes in the path)
| C++ | lgpl-2.1 | root-mirror/root,olifre/root,root-mirror/root,olifre/root,karies/root,olifre/root,karies/root,root-mirror/root,olifre/root,olifre/root,olifre/root,karies/root,root-mirror/root,root-mirror/root,karies/root,karies/root,root-mirror/root,karies/root,karies/root,olifre/root,olifre/root,root-mirror/root,karies/root,root-mirr... |
b95ad5de8205b9cef1eacb58e047c587ff5e6e0c | src/asp/ControlNetTK/render_gcp.cc | src/asp/ControlNetTK/render_gcp.cc | // Boost
#include <boost/program_options.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/foreach.hpp>
namespace po = boost::program_options;
namespace fs = boost::filesystem;
#include <vw/Core.h>
#include <vw/Math/Vector.h>
#include <vw/FileIO.h>
#include <vw/Image/Algorithms.h>
#include <asp/Core/Macr... | // Boost
#include <boost/program_options.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/foreach.hpp>
namespace po = boost::program_options;
namespace fs = boost::filesystem;
#include <vw/Core.h>
#include <vw/Math/Vector.h>
#include <vw/FileIO.h>
#include <vw/Image/Algorithms.h>
#include <asp/Core/Macr... | Make render_gcp use our ISIS driver by default | Make render_gcp use our ISIS driver by default
GDAL has some weird issues.
| C++ | apache-2.0 | njwilson23/StereoPipeline,DougFirErickson/StereoPipeline,ScottMcMichael/StereoPipeline,njwilson23/StereoPipeline,oleg-alexandrov/StereoPipeline,DougFirErickson/StereoPipeline,oleg-alexandrov/StereoPipeline,NeoGeographyToolkit/StereoPipeline,DougFirErickson/StereoPipeline,njwilson23/StereoPipeline,DougFirErickson/Stereo... |
a01605a95bcec08e2e30abd869a5b6bbd64dfa3a | tensorflow/compiler/mlir/hlo/lib/Dialect/lhlo/transforms/lhlo_legalize_to_gpu.cc | tensorflow/compiler/mlir/hlo/lib/Dialect/lhlo/transforms/lhlo_legalize_to_gpu.cc | /* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | /* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | Apply clang-tidy fixes for misc-unused-parameters in lhlo_legalize_to_gpu.cc (NFC) | Apply clang-tidy fixes for misc-unused-parameters in lhlo_legalize_to_gpu.cc (NFC)
PiperOrigin-RevId: 418611653
Change-Id: I0ea1884c5ae7cc6e4db2709d72fe2807ae4d2aa0
| C++ | apache-2.0 | paolodedios/tensorflow,gautam1858/tensorflow,karllessard/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_saved_model,yongtang/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow,Intel-Corporation/tensorflow,paolodedios/tensorflow,gautam1858/tensorflow,yongtan... |
2cec28a6c484366c621b25f0d67300836ca7dd98 | 3RVX/LayeredWnd/LayeredWnd.cpp | 3RVX/LayeredWnd/LayeredWnd.cpp | #include "LayeredWnd.h"
#include <iostream>
bool LayeredWnd::Init() {
WNDCLASSEX wcex;
wcex.cbSize = sizeof(WNDCLASSEX);
wcex.style = 0;
wcex.lpfnWndProc = &LayeredWnd::StaticWndProc;
wcex.cbClsExtra = 0;
wcex.cbWndExtra = 0;
wcex.hInstance = m_hInstance;
wcex.hIcon = LoadIcon(NULL, IDI... | #include "LayeredWnd.h"
#include <iostream>
bool LayeredWnd::Init() {
WNDCLASSEX wcex;
wcex.cbSize = sizeof(WNDCLASSEX);
wcex.style = 0;
wcex.lpfnWndProc = &LayeredWnd::StaticWndProc;
wcex.cbClsExtra = 0;
wcex.cbWndExtra = 0;
wcex.hInstance = m_hInstance;
wcex.hIcon = LoadIcon(NULL, IDI... | Make window topmost and pass clicks through | Make window topmost and pass clicks through
| C++ | bsd-2-clause | malensek/3RVX,malensek/3RVX,Soulflare3/3RVX,Soulflare3/3RVX,malensek/3RVX,Soulflare3/3RVX |
9514a455b175fbe98c4c312554fe625832d75d91 | razor-config-mouse/thememodel.cpp | razor-config-mouse/thememodel.cpp | /* Copyright © 2005-2007 Fredrik Höglund <fredrik@kde.org>
* (c)GPL2 (c)GPL3
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
* License version 2 or at your option version 3 as published
* by the Free Software Foundation.
*
* This program i... | /* Copyright © 2005-2007 Fredrik Höglund <fredrik@kde.org>
* (c)GPL2 (c)GPL3
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
* License version 2 or at your option version 3 as published
* by the Free Software Foundation.
*
* This program i... | add module names to includes | add module names to includes | C++ | lgpl-2.1 | masterweb121/lxqt-config,rbazaud/lxqt-config,zvacet/lxqt-config,ThomasVie/lxqt-config,smart2128/lxqt-config,rbazaud/lxqt-config,masterweb121/lxqt-config,gilir/lxqt-config,lxde/lxqt-config,stefonarch/lxqt-config,smart2128/lxqt-config,lxde/lxqt-config,jubalh/lxqt-config,rbazaud/lxqt-config,zvacet/lxqt-config,masterweb121... |
ec34c97bf23e656ace9df49cc194758ce088ea58 | tests/ut_devicelock/ut_devicelock.cpp | tests/ut_devicelock/ut_devicelock.cpp | /***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** Copyright (C) 2012 Jolla Ltd.
** Contact: Robin Burchell <robin.burchell@jollamobile.com>
**
** This file is part of lipstick.
**
** This library is free software; you ... | /***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** Copyright (C) 2012 Jolla Ltd.
** Contact: Robin Burchell <robin.burchell@jollamobile.com>
**
** This file is part of lipstick.
**
** This library is free software; you ... | Fix devicelock tests to correspond with latest changes | [lipstick] Fix devicelock tests to correspond with latest changes
| C++ | lgpl-2.1 | giucam/lipstick,sletta/lipstick,pvuorela/lipstick,giucam/lipstick,pvuorela/lipstick,sletta/lipstick,pvuorela/lipstick,giucam/lipstick,sletta/lipstick |
ebd028b1aa78452682a1126a51d9d783e8f9ea80 | C++/range-sum-query-2d-mutable.cpp | C++/range-sum-query-2d-mutable.cpp | // Time: ctor: O(m * n),
// update: O(logm + logn),
// query: O(logm + logn)
// Space: O(m * n)
// Segment Tree solution.
class NumMatrix {
public:
NumMatrix(vector<vector<int>> &matrix) : matrix_(matrix) {
if (!matrix.empty() && !matrix[0].empty()) {
const int m = matrix.size... | // Time: ctor: O(m * n),
// update: O(logm + logn),
// query: O(logm + logn)
// Space: O(m * n)
// Segment Tree solution.
class NumMatrix {
public:
NumMatrix(vector<vector<int>> &matrix) : matrix_(matrix) {
if (!matrix.empty() && !matrix[0].empty()) {
const int m = matrix.size... | Update range-sum-query-2d-mutable.cpp | Update range-sum-query-2d-mutable.cpp | C++ | mit | jaredkoontz/leetcode,kamyu104/LeetCode,tudennis/LeetCode---kamyu104-11-24-2015,jaredkoontz/leetcode,yiwen-luo/LeetCode,githubutilities/LeetCode,yiwen-luo/LeetCode,jaredkoontz/leetcode,githubutilities/LeetCode,githubutilities/LeetCode,tudennis/LeetCode---kamyu104-11-24-2015,jaredkoontz/leetcode,kamyu104/LeetCode,kamyu10... |
228eea96a4d2862f33374866bb5bbd7fedf4ed8e | src/Hyperlink.cpp | src/Hyperlink.cpp | //
// BatchEncoder (Audio Conversion GUI)
// Copyright (C) 2005-2017 Wiesław Šoltés <wieslaw.soltes@gmail.com>
//
// 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; version 2 of the License.
//... | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include "StdAfx.h"
#include "BatchEncoder.h"
#include "Hyperlink.h"
#include ".\hyperlink.h"
IMPLEMENT_DYNAMIC(CHyperlink, CStatic)
CHyperlink::CHyperlink()
{
... | Update Hyperlink.cpp | Update Hyperlink.cpp | C++ | mit | wieslawsoltes/BatchEncoder,wieslawsoltes/BatchEncoder,wieslawsoltes/BatchEncoder,wieslawsoltes/BatchEncoder |
7a54dd4bef9a02273fe20e6745db8d17f3f5e192 | opencog/reasoning/RuleEngine/rule-engine-src/JsonicControlPolicyParamLoader.cc | opencog/reasoning/RuleEngine/rule-engine-src/JsonicControlPolicyParamLoader.cc | /*
* JsonicControlPolicyLoader.cc
*
* Created on: 29 Dec, 2014
* Author: misgana
*/
#include "JsonicControlPolicyParamLoader.h"
#include "PolicyParams.h"
#include <fstream>
#include <lib/json_spirit/json_spirit.h>
#include <lib/json_spirit/json_spirit_stream_reader.h>
#include <opencog/guile/load-file.h>
... | /*
* JsonicControlPolicyLoader.cc
*
* Created on: 29 Dec, 2014
* Author: misgana
*/
#include "JsonicControlPolicyParamLoader.h"
#include "PolicyParams.h"
#include <fstream>
#include <lib/json_spirit/json_spirit.h>
#include <lib/json_spirit/json_spirit_stream_reader.h>
#include <opencog/guile/load-file.h>
... | Fix whitespace | Fix whitespace
| C++ | agpl-3.0 | kinoc/opencog,inflector/opencog,misgeatgit/opencog,roselleebarle04/opencog,AmeBel/atomspace,kinoc/opencog,rTreutlein/atomspace,Selameab/atomspace,ruiting/opencog,gavrieltal/opencog,AmeBel/opencog,misgeatgit/opencog,printedheart/opencog,jlegendary/opencog,ceefour/opencog,jlegendary/opencog,yantrabuddhi/opencog,iAMr00t/o... |
7eb08a5a483a1a2dee01c7f0b7d4da40b5e53cfb | src/Interface.hpp | src/Interface.hpp | #include "trainer.hpp" //includes the Trainer Class
#include <stdio.h> //Includes stidio functions
#include <string> //Includes std::string functions
class Interface //Used to connect the user to the program itself.
{
private:
bool opened; //used for the while loop
std::string input; //user input when chosing a chea... | #pragma once
#include "trainer.hpp" //includes the Trainer Class
#include <stdio.h> //Includes stidio functions
#include <string> //Includes std::string functions
class Interface //Used to connect the user to the program itself.
{
private:
bool opened; //used for the while loop
std::string input; //user input when ... | Update Interface.hpp | Update Interface.hpp | C++ | mit | RebeloX/TrainerX |
9ca97158a7297fbdcf86635adf81feb2a3385055 | wrappers/trace.cpp | wrappers/trace.cpp | /**************************************************************************
*
* Copyright 2010-2011 VMware, Inc.
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Softwar... | /**************************************************************************
*
* Copyright 2010-2011 VMware, Inc.
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Softwar... | Fix tracing Zygote processes (v2) | egltrace/android: Fix tracing Zygote processes (v2)
Fixes egltrace.so on Android 4.2 x86.
Do not call trimDirectory() on the proc_name of Zygote processes, because
a Zyogote process name never contains a path separator. The proc_name of
a Zygote process is the application's package name (such as
com.exampe.myapp) bec... | C++ | mit | tuanthng/apitrace,trtt/apitrace,schulmar/apitrace,schulmar/apitrace,tuanthng/apitrace,surround-io/apitrace,tuanthng/apitrace,tuanthng/apitrace,trtt/apitrace,schulmar/apitrace,joshua5201/apitrace,EoD/apitrace,trtt/apitrace,tuanthng/apitrace,apitrace/apitrace,swq0553/apitrace,trtt/apitrace,schulmar/apitrace,EoD/apitrace,... |
ab56043adb9e3933500342ac8fbfc6197122f9cf | src/MeshGroup.cpp | src/MeshGroup.cpp | //Copyright (C) 2018 Ultimaker B.V.
//CuraEngine is released under the terms of the AGPLv3 or higher.
#include <string.h>
#include <stdio.h>
#include <limits>
#include "MeshGroup.h"
#include "utils/floatpoint.h"
#include "utils/gettime.h"
#include "utils/logoutput.h"
#include "utils/string.h"
namespace cura
{
FILE*... | //Copyright (C) 2018 Ultimaker B.V.
//CuraEngine is released under the terms of the AGPLv3 or higher.
#include <string.h>
#include <stdio.h>
#include <limits>
#include "MeshGroup.h"
#include "utils/floatpoint.h"
#include "utils/gettime.h"
#include "utils/logoutput.h"
#include "utils/string.h"
namespace cura
{
FILE*... | Fix read STL file error | Fix read STL file error
The ASCII value of a character may be decimal 26 (0x1A, \SUB, SUBSTITUTE) in a binary STL file.Opening a file in “r” mode may return an error | C++ | agpl-3.0 | Ultimaker/CuraEngine,Ultimaker/CuraEngine |
3f1d2fac1a5276518a4255647f1cc50610cd304a | 001-100/085-Maximal_Rectangle-h.cpp | 001-100/085-Maximal_Rectangle-h.cpp | // Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle
// containing only 1's and return its area.
// For example, given the following matrix:
// 1 0 1 0 0
// 1 0 1 1 1
// 1 1 1 1 1
// 1 0 0 1 0
// Return 6.
class Solution {
public:
int maximalRectangle(vector<vector<char>> &matrix) {
... | // Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle
// containing only 1's and return its area.
// For example, given the following matrix:
// 1 0 1 0 0
// 1 0 1 1 1
// 1 1 1 1 1
// 1 0 0 1 0
// Return 6.
class Solution {
public:
int maximalRectangle(vector<vector<char>> &matrix) {
... | optimize codes | optimize codes
| C++ | bsd-3-clause | ysmiles/leetcode-cpp,ysmiles/leetcode-cpp |
d09cbcfb12c6c2ff22fbe8384b252e44104f6580 | x_event_source.hpp | x_event_source.hpp | #ifndef _X_EVENT_SOURCE
#define _X_EVENT_SOURCE
#include <list>
#include "x_connection.hpp"
class x_event_source {
public:
x_event_source(const x_connection & c) : _c(c) {}
virtual void register_handler(x_event_handler * eh)
{
_handler_list.push_back(eh);
}
virtual void unregister_handl... | #ifndef _X_EVENT_SOURCE
#define _X_EVENT_SOURCE
#include <list>
#include "x_connection.hpp"
class x_event_source {
public:
x_event_source(const x_connection & c) : _c(c) {}
void register_handler(x_event_handler * eh)
{
_handler_list.push_back(eh);
}
void unregister_handler(x_event_handl... | Remove virtual keyword from non-virtual methods | Remove virtual keyword from non-virtual methods
| C++ | bsd-3-clause | jotrk/x-choyce,jotrk/x-choyce |
28372491dc1efdc18160a4503808c8053ce2a028 | InformationScripting/src/queries/VersionControlQuery.cpp | InformationScripting/src/queries/VersionControlQuery.cpp | /***********************************************************************************************************************
**
** Copyright (c) 2011, 2015 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
** following c... | /***********************************************************************************************************************
**
** Copyright (c) 2011, 2015 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
** following c... | Fix a spelling mistake. | Fix a spelling mistake.
| C++ | bsd-3-clause | dimitar-asenov/Envision,Vaishal-shah/Envision,mgalbier/Envision,mgalbier/Envision,lukedirtwalker/Envision,lukedirtwalker/Envision,Vaishal-shah/Envision,Vaishal-shah/Envision,dimitar-asenov/Envision,dimitar-asenov/Envision,Vaishal-shah/Envision,mgalbier/Envision,lukedirtwalker/Envision,dimitar-asenov/Envision,mgalbier/E... |
00c32d7005fdd2ff590117dea2660a2dcc0a3856 | Metazion/Net/EpollSocketServer.cpp | Metazion/Net/EpollSocketServer.cpp | #include "Metazion/Net/EpollSocketServer.hpp"
#include <Metazion/Share/Time/Time.hpp>
#include <Metazion/Share/Utility/Random.hpp>
#if defined(MZ_PLATFORM_LINUX)
DECL_NAMESPACE_MZ_NET_BEGIN
static NS_SHARE::Random g_random;
EpollSocketServer::EpollSocketServer()
: m_epollfdList(nullptr)
, m_epollEventList(... | #include "Metazion/Net/EpollSocketServer.hpp"
#include <Metazion/Share/Time/Time.hpp>
#include <Metazion/Share/Utility/Random.hpp>
#if defined(MZ_PLATFORM_LINUX)
DECL_NAMESPACE_MZ_NET_BEGIN
static NS_SHARE::Random g_random;
EpollSocketServer::EpollSocketServer()
: m_epollfdList(nullptr)
, m_epollEventList(... | Move maintenance operations to a separate thread in epoll. | Move maintenance operations to a separate thread in epoll.
| C++ | mit | Metazion/Metazion,Metazion/Metazion |
73536f2550ef1b3c2e891ec00f6c5319ec10fde5 | NaoTHSoccer/Source/Cognition/Cognition.cpp | NaoTHSoccer/Source/Cognition/Cognition.cpp | /**
* @file Cognition.cpp
*
* @author <a href="mailto:mellmann@informatik.hu-berlin.de">Heinrich Mellmann</a>
* Implementation of the class Cognition
*/
#include "Cognition.h"
#include <PlatformInterface/Platform.h>
// tools
#include "Tools/Debug/Trace.h"
/////////////////////////////////////
// Modules
//////... | /**
* @file Cognition.cpp
*
* @author <a href="mailto:mellmann@informatik.hu-berlin.de">Heinrich Mellmann</a>
* Implementation of the class Cognition
*/
#include "Cognition.h"
#include <PlatformInterface/Platform.h>
// tools
#include "Tools/Debug/Trace.h"
/////////////////////////////////////
// Modules
//////... | change order of modules: IntegralImageProvider usues FieldColorPercept provided by FieldColorClassifier | bugfix: change order of modules: IntegralImageProvider usues FieldColorPercept provided by FieldColorClassifier
| C++ | apache-2.0 | BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH |
fe156f4a271c5ccd9701a511699f6e6e1bb8c819 | src/TopicUtils.cc | src/TopicUtils.cc | /*
* Copyright (C) 2014 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | /*
* Copyright (C) 2014 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | fix name scoping behavior, while still avoiding calling front() or back() on empty strings | fix name scoping behavior, while still avoiding calling front() or back() on empty strings
--HG--
branch : windows_fixes
| C++ | apache-2.0 | j-rivero/ign-transport-git,j-rivero/ign-transport-git,j-rivero/ign-transport-git,j-rivero/ign-transport-git |
c3614c5dca23c0e0ffbbb8b47750a1fe3971cb22 | frontend/main.cpp | frontend/main.cpp |
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <libgen.h>
#include <dlfcn.h>
#include <chrono>
#include <iostream>
#include <thread>
#include <stdexcept>
#include <tclap/CmdLine.h>
#include <mapredo/settings.h>
#include <mapredo/engine.h>
#include <mapredo/base.h>
#include <mapredo/plugin_l... |
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <libgen.h>
#include <dlfcn.h>
#include <chrono>
#include <iostream>
#include <thread>
#include <stdexcept>
#include <tclap/CmdLine.h>
#include <mapredo/settings.h>
#include <mapredo/engine.h>
#include <mapredo/base.h>
#include <mapredo/plugin_l... | Update type for flags | Update type for flags
| C++ | lgpl-2.1 | Hextremist/mapredo,Hextremist/mapredo |
6c7e6a2d408335b1130f8fccae70c6194c53e708 | frontend/main.cpp | frontend/main.cpp | #include <initializer_list>
#include <cstdio>
#include <string>
#include <stdarg.h>
#include <HuffmanArchive.h>
#include <HuffmanDearchive.h>
/*int test_deflate(FILE* input, FILE* output) {
printf("deflate\n");
return 0;
}
int test_inflate(FILE* input, FILE* output) {
printf("inflate\n");
return 0;
}*/
#define B... | #include <initializer_list>
#include <cstdio>
#include <string>
#include <stdarg.h>
#include <HuffmanArchive.h>
#include <HuffmanDearchive.h>
/*int test_deflate(FILE* input, FILE* output) {
printf("deflate\n");
return 0;
}
int test_inflate(FILE* input, FILE* output) {
printf("inflate\n");
return 0;
}*/
#define B... | add usage decl for tree stats | add usage decl for tree stats
| C++ | mit | volkfm98/Huffman,volkfm98/Huffman |
b255669497470352ea9db24d1f46b8f9b0432269 | source/QXmppArchiveIq.cpp | source/QXmppArchiveIq.cpp | /*
* Copyright (C) 2010 Bolloré telecom
*
* Author:
* Jeremy Lainé
*
* Source:
* http://code.google.com/p/qxmpp
*
* This file is a part of QXmpp library.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by ... | /*
* Copyright (C) 2010 Bolloré telecom
*
* Author:
* Jeremy Lainé
*
* Source:
* http://code.google.com/p/qxmpp
*
* This file is a part of QXmpp library.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by ... | use new datetimeTo/FromString functions | use new datetimeTo/FromString functions
| C++ | lgpl-2.1 | LightZam/qxmpp,cccco/qxmpp,ycsoft/qxmpp,gotomypc/qxmpp,unisontech/qxmpp,pol51/QXMPP-CMake,projedi/qxmpp-ffmpeg,ycsoft/qxmpp,olesalscheider/qxmpp,cccco/qxmpp,LightZam/qxmpp,kollix/qxmpp,trulabs/qxmpp-old,Ilyatk/qxmpp,gotomypc/qxmpp,gamenet/qxmpp,KangLin/qxmpp,gamenet/qxmpp,LightZam/qxmpp,unisontech/qxmpp,Kaffeine/qxmpp,... |
c344c4732fa92ac3de8d03d703d8768363df8d81 | Quad2/Libraries/Quad_Reciever/receiver.cpp | Quad2/Libraries/Quad_Reciever/receiver.cpp | /*
* receiver.cpp
*
* Created on: May 26, 2013
* Author: Ryler Hockenbury
*
* Library to read and process PPM input from stick
* NOTE: 6 channel AR6210 receiver from Spektrum
*
*/
#include <arduino.h>
#include "receiver.h"
#include "../Quad_Math/math.h"
#include "../Quad_Defines/globals.h... | /*
* receiver.cpp
*
* Created on: May 26, 2013
* Author: Ryler Hockenbury
*
* Library to read and process PPM input from stick
* NOTE: 6 channel AR6210 receiver from Spektrum
*
*/
#include <arduino.h>
#include "receiver.h"
#include "../Quad_Math/math.h"
#include "../Quad_Defines/globals.h... | change to millis | change to millis | C++ | mit | rhockenbury/Quad2,rhockenbury/Quad2 |
9c8384163f42967045252d4491792a30b52bf066 | doc/examples/benchmark.cpp | doc/examples/benchmark.cpp | #include <botan/botan.h>
#include <botan/benchmark.h>
#include <iostream>
#include <string>
#include <map>
#include <cstdlib>
int main(int argc, char* argv[])
{
if(argc <= 2)
{
std::cout << "Usage: " << argv[0] << " ms <algo1> <algo2> ...\n";
return 1;
}
Botan::LibraryInitializer ini... | #include <botan/botan.h>
#include <botan/benchmark.h>
#include <iostream>
#include <string>
#include <map>
#include <cstdlib>
int main(int argc, char* argv[])
{
if(argc <= 2)
{
std::cout << "Usage: " << argv[0] << " seconds <algo1> <algo2> ...\n";
return 1;
}
Botan::LibraryInitialize... | Switch benchmark example command line arg from ms to seconds | Switch benchmark example command line arg from ms to seconds
| C++ | bsd-2-clause | randombit/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,randombit/botan,Rohde-Schw... |
5bc79fb3f1a837b4b4d2e2ebd4ff3eba674a9f84 | vcl/source/helper/xconnection.cxx | vcl/source/helper/xconnection.cxx | /*************************************************************************
*
* $RCSfile: xconnection.cxx,v $
*
* $Revision: 1.1 $
*
* last change: $Author: pl $ $Date: 2001-02-01 14:08:05 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
*
* ... | /*************************************************************************
*
* $RCSfile: xconnection.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: kz $ $Date: 2001-02-05 16:41:16 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
*
* ... | add include svsys.h | add include svsys.h
| C++ | mpl-2.0 | JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core |
a987f84c713853e4691efd919aa0a4a1f58c30ae | platform/spark/modules/eGUI/D4D/low_level_drivers/LCD/lcd_hw_interface/spi_spark_8bit/d4dlcdhw_spi_spark_8b.cpp | platform/spark/modules/eGUI/D4D/low_level_drivers/LCD/lcd_hw_interface/spi_spark_8bit/d4dlcdhw_spi_spark_8b.cpp | /**************************************************************************
* Copyright 2015 by Elco Jacobs, BrewPi
* Copyright 2014 by Petr Gargulak. eGUI Community.
* Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc.
*
***************************************************************************
... | /**************************************************************************
* Copyright 2015 by Elco Jacobs, BrewPi
* Copyright 2014 by Petr Gargulak. eGUI Community.
* Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc.
*
***************************************************************************
... | Test synchronous DMA transfer, without callback. Seems to work. | Test synchronous DMA transfer, without callback. Seems to work.
| C++ | agpl-3.0 | glibersat/firmware,glibersat/firmware,BrewPi/firmware,BrewPi/firmware,BrewPi/firmware,BrewPi/firmware,BrewPi/firmware,glibersat/firmware,glibersat/firmware,glibersat/firmware,BrewPi/firmware,BrewPi/firmware,glibersat/firmware,glibersat/firmware,BrewPi/firmware |
9604151f66e946dbe3ea7737d13f9c8b72bed510 | PHOS/AliPHOSQAVirtualCheckable.cxx | PHOS/AliPHOSQAVirtualCheckable.cxx | /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | Set ownership | Set ownership
| C++ | bsd-3-clause | ALICEHLT/AliRoot,sebaleh/AliRoot,coppedis/AliRoot,miranov25/AliRoot,ecalvovi/AliRoot,ALICEHLT/AliRoot,miranov25/AliRoot,alisw/AliRoot,jgrosseo/AliRoot,ALICEHLT/AliRoot,ecalvovi/AliRoot,miranov25/AliRoot,coppedis/AliRoot,coppedis/AliRoot,coppedis/AliRoot,shahor02/AliRoot,coppedis/AliRoot,ecalvovi/AliRoot,alisw/AliRoot,m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.