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 |
|---|---|---|---|---|---|---|---|---|---|
28d0a6f6cb8ffced411556a8b1806dd1ce6bd451 | src/share/hash_utility.hpp | src/share/hash_utility.hpp | #pragma once
#include "boost_defs.hpp"
#include <boost/functional/hash.hpp>
#include <vector>
namespace std {
template <typename T, typename A>
struct hash<std::vector<T, A>> {
std::size_t operator()(const std::vector<T, A>& v) const {
return boost::hash_range(v.begin(), v.end());
}
};
} // namespace std
| #pragma once
#include "boost_defs.hpp"
#include <boost/blank.hpp>
#include <boost/functional/hash.hpp>
#include <boost/variant.hpp>
#include <utility>
#include <vector>
namespace boost {
std::size_t hash_value(const boost::blank& v) {
return 0;
}
} // namespace boost
namespace std {
template <typename T, typename... | add hash<std::pair>, hash<boost::variant> hash<boost::blank> | add hash<std::pair>, hash<boost::variant> hash<boost::blank>
| C++ | unlicense | tekezo/Karabiner-Elements,tekezo/Karabiner-Elements,tekezo/Karabiner-Elements,tekezo/Karabiner-Elements |
f94e6cce3f138be4cfac9ca3fd32cb4e463e9b2f | src/Core/File/deprecated/OBJFileManager.cpp | src/Core/File/deprecated/OBJFileManager.cpp | #include <Core/File/deprecated/OBJFileManager.hpp>
namespace Ra {
namespace Core {
/// ===============================================================================
/// CONSTRUCTOR
/// ===============================================================================
OBJFileManager::OBJFileManager() : FileManager<Tria... | #include <Core/File/deprecated/OBJFileManager.hpp>
namespace Ra {
namespace Core {
/// ===============================================================================
/// CONSTRUCTOR
/// ===============================================================================
OBJFileManager::OBJFileManager() : FileManager<Tria... | Fix obj file loading | Fix obj file loading
Support standard faces lists formed as
f iv/it/in iv/it/in iv/it/in
| C++ | bsd-3-clause | Zouch/Radium-Engine,Zouch/Radium-Engine,AGGA-IRIT/Radium-Engine,AGGA-IRIT/Radium-Engine |
32a19bd77dbe673e8830d424d82f636aa4bac48e | Core/Application.hpp | Core/Application.hpp | /***********************************************************************************
** MIT License **
** **
** Copyright (c) 2018 Victor DENIS (victordenis01@gmail.com) ... | /***********************************************************************************
** MIT License **
** **
** Copyright (c) 2018 Victor DENIS (victordenis01@gmail.com) ... | Build error | [Fix] Build error
| C++ | mit | Feldrise/Sielo-NavigateurV3-WebEngine |
0f043fedd73259f078aff774bc9e044592d72827 | src/eventlogger/EventLogger.cpp | src/eventlogger/EventLogger.cpp | #include <ctime>
#include <cctype>
#include "core/RoleFactory.h"
#include "EventLogger.h"
static RoleConfigGroup el_config("eventlogger");
static ConfigVariable<std::string> bind_addr("bind", "0.0.0.0:7197", el_config);
static ConfigVariable<std::string> output_format("output", "events-%Y%m%d-%H%M%S.csv", el_config);... | #include <ctime>
#include <cctype>
#include "core/RoleFactory.h"
#include "EventLogger.h"
static RoleConfigGroup el_config("eventlogger");
static ConfigVariable<std::string> bind_addr("bind", "0.0.0.0:7197", el_config);
static ConfigVariable<std::string> output_format("output", "events-%Y%m%d-%H%M%S.csv", el_config);... | Add rotate_interval to EventLogger config variables... currently unused. | Config: Add rotate_interval to EventLogger config variables... currently unused.
| C++ | bsd-3-clause | ketoo/Astron,blindsighttf2/Astron,pizcogirl/Astron,blindsighttf2/Astron,pizcogirl/Astron,pizcogirl/Astron,ketoo/Astron,blindsighttf2/Astron,pizcogirl/Astron,ketoo/Astron,ketoo/Astron,blindsighttf2/Astron |
52caff5c121f9d6e80ab9fb248534774d8cbdfe5 | VelodyneHDL/pqVelodyneManager.cxx | VelodyneHDL/pqVelodyneManager.cxx | // Copyright 2013 Velodyne Acoustics, Inc.
//
// 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 ... | // Copyright 2013 Velodyne Acoustics, Inc.
//
// 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 ... | Add progress to export | Add progress to export
| C++ | apache-2.0 | Kitware/VeloView,Kitware/VeloView,Kitware/VeloView,Kitware/VeloView,frizaro/Veloview,frizaro/Veloview,frizaro/Veloview,Kitware/VeloView,frizaro/Veloview |
510c16adac8b0cd316570498ca07ebafc99defee | src/game/states/deploystate.cpp | src/game/states/deploystate.cpp | #include "game/states/deploystate.hpp"
#include <memory>
#include <cassert>
#include "game/skirmish/unitfactory.hpp"
#include "game/skirmish/boardbackgroundcomponent.hpp"
#include "engine/terrain.hpp"
#include "game/skirmish/structure.hpp"
#include "foundation/spritecomponent.hpp"
#include "game/states/skirmishprep... | #include "game/states/deploystate.hpp"
#include <memory>
#include <cassert>
#include "game/skirmish/unitfactory.hpp"
#include "game/skirmish/boardbackgroundcomponent.hpp"
#include "engine/terrain.hpp"
#include "game/skirmish/structure.hpp"
#include "foundation/spritecomponent.hpp"
#include "game/states/skirmishprep... | Set unit flat mode on deploy | Set unit flat mode on deploy
| C++ | mit | namelessvoid/qrwar,namelessvoid/qrwar |
682ea3ab1023ad99e63c6ce7b30be893cb992da9 | chrome/browser/dom_ui/flags_ui.cc | chrome/browser/dom_ui/flags_ui.cc | // Copyright (c) 2010 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/dom_ui/flags_ui.h"
#include <string>
#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/singleton.h... | // Copyright (c) 2010 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/dom_ui/flags_ui.h"
#include <string>
#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base/singleton.h... | Fix DCHECK caused by passing a parameter to a string that doesn't have a placeholder. | Fix DCHECK caused by passing a parameter to a string that doesn't have a placeholder.
BUG=None
TEST=sky doesn't complain about DCHECKs.
Review URL: http://codereview.chromium.org/3795009
git-svn-id: http://src.chromium.org/svn/trunk/src@62826 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Former-commit-id: 149313063318128fbb... | 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... |
133ea215a98387580128375944608d87f69f621a | chrome/browser/pdf_browsertest.cc | chrome/browser/pdf_browsertest.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 "base/file_util.h"
#include "base/path_service.h"
#include "base/string_number_conversions.h"
#include "base/string_util.h"
#include "base/ut... | // 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 "base/file_util.h"
#include "base/path_service.h"
#include "base/string_number_conversions.h"
#include "base/string_util.h"
#include "base/ut... | fix missing semicolon | fix missing semicolon
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@111799 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | gavinp/chromium,ropik/chromium,gavinp/chromium,yitian134/chromium,ropik/chromium,adobe/chromium,ropik/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,yitian134/chromium,gavinp/chromium,gavinp/chromium,ropik/chromium... |
4c3715f9344389227a756bdf3b3e18d751bcb0f1 | gstreamer/pipeline.cpp | gstreamer/pipeline.cpp | /* This file is part of the KDE project.
Copyright (C) 2011 Trever Fischer <tdfischer@fedoraproject.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 version 2.1 or... | /* This file is part of the KDE project.
Copyright (C) 2011 Trever Fischer <tdfischer@fedoraproject.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 version 2.1 or... | Copy some tegra stuff out of the mediaobject and into the pipeline | Copy some tegra stuff out of the mediaobject and into the pipeline
| C++ | lgpl-2.1 | KDE/phonon-gstreamer,KDE/phonon-gstreamer,shadeslayer/phonon-gstreamer,shadeslayer/phonon-gstreamer,shadeslayer/phonon-gstreamer |
66057553807a3c502915fdc37f81893055bb42ee | libcaf_core/caf/logger.hpp | libcaf_core/caf/logger.hpp | /******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... | /******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... | Remove noisy CAF_PUSH_AID warning | Remove noisy CAF_PUSH_AID warning
| C++ | bsd-3-clause | DavadDi/actor-framework,actor-framework/actor-framework,1blankz7/actor-framework,actor-framework/actor-framework,1blankz7/actor-framework,nq-ebaratte/actor-framework,1blankz7/actor-framework,nq-ebaratte/actor-framework,nq-ebaratte/actor-framework,actor-framework/actor-framework,DavadDi/actor-framework,DavadDi/actor-fra... |
38bd2273407566bc01698b391db5c896a2c7d589 | Demo1/mainwindow.cpp | Demo1/mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include "SteelCoil.h"
#include <QListIterator>
#include <QMessageBox>
#include <QFile>
//class SteelCoil;
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
init();
}
MainWindow::~MainWindow()... | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include "SteelCoil.h"
#include <QListIterator>
#include <QMessageBox>
#include <QFile>
#include <unistd.h>
#include <iostream>
#include <QtSql>
//class SteelCoil;
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWin... | Add files via upload | Add files via upload
add read and write to database feature | C++ | apache-2.0 | daykin/DT14-Railcar-Verification |
fa4cbe484495fa664bd68bec82bb39d8981e6755 | tests/sstable_test.hh | tests/sstable_test.hh | #pragma once
#include "sstables/sstables.hh"
#include "schema.hh"
#include "schema_builder.hh"
#include "core/thread.hh"
static auto la = sstables::sstable::version_types::la;
static auto big = sstables::sstable::format_types::big;
namespace sstables {
using sstable_ptr = lw_shared_ptr<sstable>;
class test {
s... | #pragma once
#include "sstables/sstables.hh"
#include "schema.hh"
#include "schema_builder.hh"
#include "core/thread.hh"
static auto la = sstables::sstable::version_types::la;
static auto big = sstables::sstable::format_types::big;
namespace sstables {
using sstable_ptr = lw_shared_ptr<sstable>;
class test {
s... | allow one to specify the directory in which test sstables will be created | tests: allow one to specify the directory in which test sstables will be created
Our normal test directory may not be good enough for performance testing. The
reason is, that while our git tree with its relative path will usually be
sitting in a standard ext4 filesystem, we want the performance tests to be run
against... | C++ | agpl-3.0 | victorbriz/scylla,eklitzke/scylla,linearregression/scylla,kjniemi/scylla,guiquanz/scylla,victorbriz/scylla,scylladb/scylla,asias/scylla,rluta/scylla,duarten/scylla,raphaelsc/scylla,justintung/scylla,linearregression/scylla,glommer/scylla,respu/scylla,duarten/scylla,rentongzhang/scylla,gwicke/scylla,shaunstanislaus/scyl... |
a8e9b2074853e28e10955952a38624061c77e575 | src/abaclade-testing/test_case.cxx | src/abaclade-testing/test_case.cxx | /* -*- coding: utf-8; mode: c++; tab-width: 3; indent-tabs-mode: nil -*-
Copyright 2013, 2014, 2015
Raffaello D. Di Napoli
This file is part of Abaclade.
Abaclade 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... | /* -*- coding: utf-8; mode: c++; tab-width: 3; indent-tabs-mode: nil -*-
Copyright 2013, 2014, 2015
Raffaello D. Di Napoli
This file is part of Abaclade.
Abaclade 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... | Print char const * as a string, not as a pointer | Print char const * as a string, not as a pointer
| C++ | lgpl-2.1 | raffaellod/lofty,raffaellod/lofty |
f6c12cd53df8a305ff9fb995a6605cec30fa60ec | tests/test_solver.hpp | tests/test_solver.hpp | #ifndef TESTS_TEST_SOLVER_HPP
#define TESTS_TEST_SOLVER_HPP
#include <amgcl/runtime.hpp>
#include <amgcl/make_solver.hpp>
#include <amgcl/adapter/zero_copy.hpp>
#include <amgcl/profiler.hpp>
#include <boost/assign/std/vector.hpp>
using namespace boost::assign;
#include "sample_problem.hpp"
namespace amgcl {
pro... | #ifndef TESTS_TEST_SOLVER_HPP
#define TESTS_TEST_SOLVER_HPP
#include <amgcl/runtime.hpp>
#include <amgcl/make_solver.hpp>
#include <amgcl/adapter/zero_copy.hpp>
#include <amgcl/profiler.hpp>
#include <boost/assign/std/vector.hpp>
using namespace boost::assign;
#include "sample_problem.hpp"
namespace amgcl {
pro... | Include ilu(k) into tests | Include ilu(k) into tests
| C++ | mit | dondieselkopf/amgcl,ddemidov/amgcl,dondieselkopf/amgcl,dondieselkopf/amgcl,ddemidov/amgcl,ddemidov/amgcl,ddemidov/amgcl |
706b1da3ecb8d7690d01a561b5f78bad892c75f7 | cint/reflex/src/Type.cxx | cint/reflex/src/Type.cxx | // @(#)root/reflex:$Id$
// Author: Stefan Roiser 2004
// Copyright CERN, CH-1211 Geneva 23, 2004-2010, All rights reserved.
//
// Permission to use, copy, modify, and distribute this software for any
// purpose is hereby granted without fee, provided that this copyright and
// permissions notice appear in all copies a... | // @(#)root/reflex:$Id$
// Author: Stefan Roiser 2004
// Copyright CERN, CH-1211 Geneva 23, 2004-2010, All rights reserved.
//
// Permission to use, copy, modify, and distribute this software for any
// purpose is hereby granted without fee, provided that this copyright and
// permissions notice appear in all copies a... | Fix for loop end test (thanks, clang) | Fix for loop end test (thanks, clang)
git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@42284 27541ba8-7e3a-0410-8455-c3a389f83636
| C++ | lgpl-2.1 | bbockelm/root-historical,bbockelm/root-historical,bbockelm/root-historical,bbockelm/root-historical,bbockelm/root-historical,bbockelm/root-historical,bbockelm/root-historical |
36d31a5dabdb1b0250789fddd87f3bf51350cf14 | tests/cql_test_env.cc | tests/cql_test_env.cc | /*
* Copyright (C) 2015 Cloudius Systems, Ltd.
*/
/*
* This file is part of Scylla.
*
* Scylla is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your opt... | /*
* Copyright (C) 2015 Cloudius Systems, Ltd.
*/
/*
* This file is part of Scylla.
*
* Scylla is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your opt... | fix cql_query_test | fix cql_query_test
Test was failing because _qp (distributed<cql3::query_processor>) was stopped
before _db (distributed<database>).
Compaction manager is member of database, and when database is stopped,
compaction manager is also stopped. After a2fb0ec9a, compaction updates the
system table compaction history, and t... | C++ | agpl-3.0 | avikivity/scylla,scylladb/scylla,duarten/scylla,scylladb/scylla,duarten/scylla,kjniemi/scylla,raphaelsc/scylla,kjniemi/scylla,duarten/scylla,raphaelsc/scylla,raphaelsc/scylla,scylladb/scylla,avikivity/scylla,avikivity/scylla,kjniemi/scylla,scylladb/scylla |
88cf2caa6438638d0e4f37652108b0d79a5f75ba | tests/fe/internals.cc | tests/fe/internals.cc | //----------------------------------------------------------------------
// $Id$
// Version: $Name$
//
// Copyright (C) 2007, 2008, 2010, 2012 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
// to the file ... | //----------------------------------------------------------------------
// $Id$
// Version: $Name$
//
// Copyright (C) 2007, 2008, 2010, 2012 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
// to the file ... | Increase precision even more. There are still numbers that are printed as 0.xxxx7 or 0.xxxx8 as they are 0.xxxx75. | Increase precision even more. There are still numbers that are printed as 0.xxxx7 or 0.xxxx8 as they are 0.xxxx75.
git-svn-id: 31d9d2f6432a47c86a3640814024c107794ea77c@26246 0785d39b-7218-0410-832d-ea1e28bc413d
| C++ | lgpl-2.1 | naliboff/dealii,JaeryunYim/dealii,YongYang86/dealii,mac-a/dealii,sriharisundar/dealii,rrgrove6/dealii,gpitton/dealii,jperryhouts/dealii,JaeryunYim/dealii,msteigemann/dealii,adamkosik/dealii,nicolacavallini/dealii,YongYang86/dealii,nicolacavallini/dealii,sriharisundar/dealii,mac-a/dealii,gpitton/dealii,andreamola/dealii... |
c85c7734aaeb2c3e2b61176985ddfafaba8ecf58 | src/appleseed-max-impl/version.cpp | src/appleseed-max-impl/version.cpp |
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2015-2017 Francois Beaune, The appleseedhq Organization
//
// Permission is hereby granted, free of charge, to any person ob... |
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2015-2017 Francois Beaune, The appleseedhq Organization
//
// Permission is hereby granted, free of charge, to any person ob... | Bump version to 0.4.2-beta | Bump version to 0.4.2-beta
| C++ | mit | dictoon/appleseed-max,usakhelo/appleseed-max,usakhelo/appleseed-max,appleseedhq/appleseed-max,appleseedhq/appleseed-max,dictoon/appleseed-max |
eccab91214808639bbe96608a4b4020a451e224c | src/lightspeed/utils/base64.tcc | src/lightspeed/utils/base64.tcc | /*
* base64.cpp
*
* Created on: Oct 15, 2012
* Author: ondra
*/
#include "base64.h"
#include "../base/types.h"
#include "../base/iter/iteratorFilter.tcc"
#include <cctype>
namespace LightSpeed {
extern LIGHTSPEED_EXPORT byte base64_encodeTable[65];
extern LIGHTSPEED_EXPORT byte base64_urlEncodeTable[6... | /*
* base64.cpp
*
* Created on: Oct 15, 2012
* Author: ondra
*/
#include "base64.h"
#include "../base/types.h"
#include "../base/iter/iteratorFilter.tcc"
#include <cctype>
namespace LightSpeed {
extern LIGHTSPEED_EXPORT byte base64_encodeTable[65];
extern LIGHTSPEED_EXPORT byte base64_urlEncodeTable[6... | Fix parsing base64 | Fix parsing base64 | C++ | mit | ondra-novak/lightspeed,ondra-novak/lightspeed,ondra-novak/lightspeed |
0e51d4235a2904da058f4ad5c3b34c98ec319ba7 | src/measurement/convex_hull.cpp | src/measurement/convex_hull.cpp | /*
* DIPlib 3.0
* This file contains the definitions for the functions that creates a convex hull from a sequence of chain codes.
*
* (c)2016-2017, Cris Luengo.
* Based on original DIPlib code: (c)2011, Cris Luengo.
*
* The algorithm to convert a simple polygon to a convex hull is from:
* A.A. Melkman, "On-L... | /*
* DIPlib 3.0
* This file contains the definitions for the functions that creates a convex hull from a sequence of chain codes.
*
* (c)2016-2017, Cris Luengo.
* Based on original DIPlib code: (c)2011, Cris Luengo.
*
* The algorithm to convert a simple polygon to a convex hull is from:
* A.A. Melkman, "On-L... | Fix to convex hull computation for correctly handling initial colinear points with floating-point rounding errors. | Fix to convex hull computation for correctly handling initial colinear points with floating-point rounding errors.
| C++ | apache-2.0 | DIPlib/diplib,DIPlib/diplib,DIPlib/diplib,DIPlib/diplib,DIPlib/diplib,DIPlib/diplib |
a3b89b374a8854134eefb55e6b0d17cb87c7af04 | geometry/test/test_iterator.cpp | geometry/test/test_iterator.cpp | /*
* Software License Agreement (BSD License)
*
* Copyright (c) 2010, Willow Garage, 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 mu... | /*
* Software License Agreement (BSD License)
*
* Copyright (c) 2010, Willow Garage, 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 mu... | Fix compilation error on windows | Fix compilation error on windows
git-svn-id: 1af002208e930b4d920e7c2b948d1e98a012c795@5287 a9d63959-f2ad-4865-b262-bf0e56cfafb6
| C++ | bsd-3-clause | psoetens/pcl-svn,psoetens/pcl-svn,psoetens/pcl-svn,psoetens/pcl-svn,psoetens/pcl-svn |
115656188b22b1617ff1bad4d62def02ca1d7da0 | tests/render/main.cpp | tests/render/main.cpp | #include "../../src/svgren/render.hpp"
#include <chrono>
#include <utki/debug.hpp>
#include <utki/config.hpp>
#include <papki/FSFile.hpp>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <png.h>
#if M_OS == M_OS_LINUX
# include <X11/Xlib.h>
# include <X11/Xutil.h>
#endif
int writePng(const c... | #include "../../src/svgren/render.hpp"
#include <chrono>
#include <utki/debug.hpp>
#include <utki/config.hpp>
#include <papki/FSFile.hpp>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <png.h>
#if M_OS == M_OS_LINUX
# include <X11/Xlib.h>
# include <X11/Xutil.h>
#endif
void write_png(const... | use std::system_error | use std::system_error
| C++ | mit | igagis/svgren,igagis/svgren,igagis/svgren |
9e9c9c170841283d501dcf8275d4dc9248c240fc | source/deps/orz/file_reader.cpp | source/deps/orz/file_reader.cpp | #include "stream_file.h"
#include "file_reader.h"
#include "ByteOrder.h"
namespace IO {
using std::mutex;
const std::string FileReader::Name() const {
return m_stream->Name();
}
bool FileReader::Open() {
return m_stream->Open();
}
void FileReader::Close() {
m_stream->Close();
}
FileInt FileReader::S... | #include "stream_file.h"
#include "file_reader.h"
#include "ByteOrder.h"
namespace IO {
using std::mutex;
const std::string FileReader::Name() const {
return m_stream->Name();
}
bool FileReader::Open() {
return m_stream->Open();
}
void FileReader::Close() {
m_stream->Close();
}
FileInt FileReader::S... | Allow negative offsets for SeekMethod::End | Allow negative offsets for SeekMethod::End
| C++ | mit | poppeman/Pictus,poppeman/Pictus,poppeman/Pictus |
2ae049121febddfccce90856c4b4ae2765cad21d | stdlib/public/SwiftRemoteMirror/SwiftRemoteMirror.cpp | stdlib/public/SwiftRemoteMirror/SwiftRemoteMirror.cpp | //===--- SwiftRemoteMirror.cpp - C wrapper for Reflection API -------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | //===--- SwiftRemoteMirror.cpp - C wrapper for Reflection API -------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | Fix a compiler warning | Reflection: Fix a compiler warning
| C++ | apache-2.0 | parkera/swift,CodaFi/swift,xwu/swift,benlangmuir/swift,jmgc/swift,benlangmuir/swift,JGiola/swift,benlangmuir/swift,harlanhaskins/swift,allevato/swift,CodaFi/swift,nathawes/swift,atrick/swift,allevato/swift,JGiola/swift,xwu/swift,airspeedswift/swift,nathawes/swift,parkera/swift,hooman/swift,allevato/swift,benlangmuir/sw... |
b93db6e1606df1385c789695e4a7e94d42a0e136 | tests/test_solver.hpp | tests/test_solver.hpp | #ifndef TESTS_TEST_SOLVER_HPP
#define TESTS_TEST_SOLVER_HPP
#include <amgcl/amg.hpp>
#include <amgcl/solver/runtime.hpp>
#include <amgcl/coarsening/runtime.hpp>
#include <amgcl/relaxation/runtime.hpp>
#include <amgcl/relaxation/as_preconditioner.hpp>
#include <amgcl/make_solver.hpp>
#include <amgcl/adapter/zero_copy.h... | #ifndef TESTS_TEST_SOLVER_HPP
#define TESTS_TEST_SOLVER_HPP
#include <amgcl/amg.hpp>
#include <amgcl/solver/runtime.hpp>
#include <amgcl/coarsening/runtime.hpp>
#include <amgcl/relaxation/runtime.hpp>
#include <amgcl/relaxation/as_preconditioner.hpp>
#include <amgcl/make_solver.hpp>
#include <amgcl/adapter/zero_copy.h... | Test for when null-space vectors are provided | Test for when null-space vectors are provided
| C++ | mit | ddemidov/amgcl,ddemidov/amgcl,ddemidov/amgcl,ddemidov/amgcl |
59464a4be8bfc0395cea82f7ec0a6cc4bd36071b | src/Watermark/View/WatermarkDataFactory.cpp | src/Watermark/View/WatermarkDataFactory.cpp | // Copyright eeGeo Ltd (2012-2015), All Rights Reserved
#include "WatermarkDataFactory.h"
namespace ExampleApp
{
namespace Watermark
{
namespace View
{
WatermarkDataFactory::WatermarkDataFactory(const std::string& appName,
con... | // Copyright eeGeo Ltd (2012-2015), All Rights Reserved
#include "WatermarkDataFactory.h"
namespace ExampleApp
{
namespace Watermark
{
namespace View
{
WatermarkDataFactory::WatermarkDataFactory(const std::string& appName,
con... | Update watermark 'Find out more' url. | Update watermark 'Find out more' url.
| C++ | bsd-2-clause | wrld3d/wrld-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/ee... |
66ef7a450abe6e9394a74d506933e6fee12075e6 | src/symbolizer_helpers.cpp | src/symbolizer_helpers.cpp | /*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2011 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as p... | /*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2011 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as p... | Add marker to collision detector. Refs #1106. | Add marker to collision detector.
Refs #1106.
| C++ | lgpl-2.1 | CartoDB/mapnik,pnorman/mapnik,mapnik/mapnik,kapouer/mapnik,Uli1/mapnik,tomhughes/mapnik,garnertb/python-mapnik,stefanklug/mapnik,mapnik/mapnik,qianwenming/mapnik,whuaegeanse/mapnik,mapnik/python-mapnik,pramsey/mapnik,cjmayo/mapnik,rouault/mapnik,manz/python-mapnik,mbrukman/mapnik,zerebubuth/mapnik,Airphrame/mapnik,jwom... |
7c56bf9c78fb3fce7fcaacd06685b32187fbd87c | test/barista_test/unit/volatile_metadata_unittest.cpp | test/barista_test/unit/volatile_metadata_unittest.cpp | #include "../../../src/app/barista_core/volatile_metadata.h"
#include "../../../src/lib/ip_address/ip_address.h"
#include "gtest/gtest.h"
#define VALID_CHUNK_SIZE 2048
#define ALT_VALID_CHUNK_SIZE 4096
#define INVALID_CHUNK_SIZE 64
#define VALID_STRIPE_SIZE 2048
#define ALT_VALID_STRIPE_SIZE 4096
#define INVALID_ST... | #include "../../../src/app/barista_core/volatile_metadata.h"
#include "../../../src/lib/ip_address/ip_address.h"
#include "gtest/gtest.h"
#define VALID_CHUNK_SIZE 2048
#define ALT_VALID_CHUNK_SIZE 4096
#define INVALID_CHUNK_SIZE 64
#define VALID_STRIPE_SIZE 2048
#define ALT_VALID_STRIPE_SIZE 4096
#define INVALID_ST... | Test updates. | Test updates.
| C++ | apache-2.0 | hallielaine/DecaFS,hallielaine/DecaFS,hallielaine/DecaFS,hallielaine/DecaFS |
d454c58433d8c5f401ccdb2d8455ddacf3ff46d5 | src/test/rados-api/misc.cc | src/test/rados-api/misc.cc | #include "include/buffer.h"
#include "include/rados/librados.h"
#include "include/rados/librados.hpp"
#include "mds/mdstypes.h"
#include "test/rados-api/test.h"
#include "gtest/gtest.h"
#include <errno.h>
#include <map>
#include <sstream>
#include <string>
using namespace librados;
using ceph::buffer;
using std::map;... | #include "include/buffer.h"
#include "include/rados/librados.h"
#include "include/rados/librados.hpp"
#include "mds/mdstypes.h"
#include "test/rados-api/test.h"
#include "gtest/gtest.h"
#include <errno.h>
#include <map>
#include <sstream>
#include <string>
using namespace librados;
using ceph::buffer;
using std::map;... | test CloneRange | test/rados-api/misc.cc: test CloneRange
Signed-off-by: Colin McCabe <7b35906f1d014e74a9dc8c913eb229119df647aa@dreamhost.com>
| C++ | lgpl-2.1 | ajnelson/ceph,ajnelson/ceph,ajnelson/ceph,ajnelson/ceph,ajnelson/ceph,ajnelson/ceph |
450fb7864c93085391802d7de6d95767fc52c540 | src/tests/test-qualtrim.cc | src/tests/test-qualtrim.cc | /*
* ============================================================================
*
* Filename: test-qualtrim.cc
* Description: Tests of the QualTrim module
* License: LGPL-3+
* Author: Kevin Murray, spam@kdmurray.id.au
*
* ============================================================... | /*
* ============================================================================
*
* Filename: test-qualtrim.cc
* Description: Tests of the QualTrim module
* License: LGPL-3+
* Author: Kevin Murray, spam@kdmurray.id.au
*
* ============================================================... | Add more tests of the WindowedQualTrimmer | Add more tests of the WindowedQualTrimmer
| C++ | mpl-2.0 | kdmurray91/libqcpp,kdmurray91/libqcpp,kdmurray91/libqcpp,kdmurray91/libqcpp,kdmurray91/libqcpp |
13cb5bc501badec7d35c127e108875e7a4165816 | src/tests/test_manager.cpp | src/tests/test_manager.cpp | #include <memory>
#include <mutex>
#include <fstream>
#include <chrono>
#include "test_manager.h"
#include "FileManager.h"
#include "p2pnode.h"
using namespace std;
pair<bool, string> filesEqual(const std::string & left, const std::string & right) {
ifstream l(left, ios::in | ios::binary);
if (!l) {
return pair ... | #include <memory>
#include <mutex>
#include <fstream>
#include <chrono>
#include "test_manager.h"
#include "FileManager.h"
#include "p2pnode.h"
using namespace std;
pair<bool, string> filesEqual(const std::string & left, const std::string & right) {
ifstream l(left, ios::in | ios::binary);
if (!l) {
return pair ... | Fix on clear callback | Fix on clear callback
| C++ | mit | Plamenod/P2P |
f392e2bee588a6647dcf56dc1cc25b9663a625c5 | src/thread_pool/worker.hpp | src/thread_pool/worker.hpp | #pragma once
#include "slotted_bag.hpp"
#include "thread_pool_options.hpp"
#include "thread_pool_state.hpp"
#include <atomic>
#include <thread>
#include <limits>
#include <mutex>
#include <chrono>
#include <condition_variable>
namespace tp
{
/**
* @brief The Worker class owns task queue and executing thread.
* In t... | #pragma once
#include "slotted_bag.hpp"
#include "thread_pool_options.hpp"
#include "thread_pool_state.hpp"
#include <atomic>
#include <thread>
#include <limits>
#include <mutex>
#include <chrono>
#include <condition_variable>
namespace tp
{
/**
* @brief The Worker class owns task queue and executing thread.
* In t... | print in catch | print in catch
Former-commit-id: 05b48689d3158ea9eff53f39865511533c0818fb | C++ | mit | syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin |
c115a2e80b3f1a20a71f93dba0490eb9424c4ac0 | src/tls/tls_extensions.cpp | src/tls/tls_extensions.cpp | /*
* TLS Extensions
* (C) 2011,2012 Jack Lloyd
*
* Released under the terms of the Botan license
*/
#include <botan/internal/tls_extensions.h>
#include <botan/internal/tls_reader.h>
#include <botan/tls_exceptn.h>
namespace Botan {
namespace {
TLS_Extension* make_extension(TLS_Data_Reader& reader,
... | /*
* TLS Extensions
* (C) 2011,2012 Jack Lloyd
*
* Released under the terms of the Botan license
*/
#include <botan/internal/tls_extensions.h>
#include <botan/internal/tls_reader.h>
#include <botan/tls_exceptn.h>
namespace Botan {
namespace {
TLS_Extension* make_extension(TLS_Data_Reader& reader,
... | Fix decoding of signature_algorithms if we say something we don't recognize | Fix decoding of signature_algorithms if we say something we don't recognize
| C++ | bsd-2-clause | randombit/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,randombit/botan,webmaster128/botan,webmaster128/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,randombit/... |
a735263eba1e617cf015cbd773b5a48937e6a4cf | AtCoder/TDPC/N.cpp | AtCoder/TDPC/N.cpp | // N - 木: http://tdpc.contest.atcoder.jp/tasks/tdpc_tree
// 木を根をiとする根付き木として見る。
// dp[j] := 頂点jを親とする木の作り方
// とすると、dp[j] = (\prod_k dp[k]) ((\sum_k size(k))! / \prod_k (size(k)!))
// となる。ここで、kはjの子、size(k)はkを親とする木のサイズである。
// [導出]
// jの子は、jの後であればどのような順番で選択しても良い。jの子をk、kを親とする木のサイズをsize(k)とすると、
// (\prod_k dp[k]) はそれぞれの子がつく... | // N - 木: http://tdpc.contest.atcoder.jp/tasks/tdpc_tree
// 木を根をiとする根付き木として見る。
// dp[j] := 頂点jを親とする木の作り方
// とすると、dp[j] = (\prod_k dp[k]) ((\sum_k size(k))! / \prod_k (size(k)!))
// となる。ここで、kはjの子、size(k)はkを親とする木のサイズである。
// [導出]
// jの子は、jの後であればどのような順番で選択しても良い。jの子をk、kを親とする木のサイズをsize(k)とすると、
// (\prod_k dp[k]) はそれぞれの子がつく... | modify description | modify description
| C++ | mit | kakira9618/competitive_programming_sources |
84198f75483aa9b7718c71d3bafa3372f73aef5a | paddle/framework/backward_test.cc | paddle/framework/backward_test.cc | /* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve.
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 applica... | /* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve.
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 applica... | Add unittest | Add unittest
| C++ | apache-2.0 | lispc/Paddle,hedaoyuan/Paddle,pengli09/Paddle,hedaoyuan/Paddle,chengduoZH/Paddle,tensor-tang/Paddle,tensor-tang/Paddle,putcn/Paddle,yu239/Paddle,tensor-tang/Paddle,putcn/Paddle,lcy-seso/Paddle,QiJune/Paddle,Canpio/Paddle,lispc/Paddle,lispc/Paddle,lcy-seso/Paddle,chengduoZH/Paddle,Canpio/Paddle,pkuyym/Paddle,hedaoyuan/P... |
5a21afb4c7081add1e37b4cf44b107c189ee8599 | searches/gabor_texture/fil_gab_texture.cc | searches/gabor_texture/fil_gab_texture.cc | /*
* SnapFind
* An interactive image search application
* Version 1
*
* Copyright (c) 2002-2005 Intel Corporation
* Copyright (c) 2006 Larry Huston <larry@thehustons.net>
* All Rights Reserved.
*
* This software is distributed under the terms of the Eclipse Public
* License, Version 1.0 which can be f... | /*
* SnapFind
* An interactive image search application
* Version 1
*
* Copyright (c) 2002-2005 Intel Corporation
* Copyright (c) 2006 Larry Huston <larry@thehustons.net>
* All Rights Reserved.
*
* This software is distributed under the terms of the Eclipse Public
* License, Version 1.0 which can be f... | Fix build failure with double-result-capable libfilter | gabor_texture: Fix build failure with double-result-capable libfilter
Work around C++ incompatibility of new LF_MAIN() macro.
| C++ | epl-1.0 | cmusatyalab/diamond-core-filters,cmusatyalab/diamond-core-filters,cmusatyalab/diamond-core-filters |
7c1cd13cd874ae07a2ec23ee320b64ab859542e0 | swig/cpp/tests/test_libyang.cpp | swig/cpp/tests/test_libyang.cpp | /*
* @file test_libyang.cpp
* @author: Mislav Novakovic <mislav.novakovic@sartura.hr>
* @brief unit tests for functions from libyang.h header
*
* Copyright (C) 2018 Deutsche Telekom AG.
*
* Author: Mislav Novakovic <mislav.novakovic@sartura.hr>
*
* This source code is licensed under BSD 3-Clause License (the "... | /*
* @file test_libyang.cpp
* @author: Mislav Novakovic <mislav.novakovic@sartura.hr>
* @brief unit tests for functions from libyang.h header
*
* Copyright (C) 2018 Deutsche Telekom AG.
*
* Author: Mislav Novakovic <mislav.novakovic@sartura.hr>
*
* This source code is licensed under BSD 3-Clause License (the "... | Fix build of C++ tests | Fix build of C++ tests
| C++ | bsd-3-clause | PavolVican/libyang,PavolVican/libyang,PavolVican/libyang,PavolVican/libyang,PavolVican/libyang |
2f75cc557624df379a1e079aa05374fa7506ab5c | src/core/kext/RemapFunc/FlipScrollWheel.cpp | src/core/kext/RemapFunc/FlipScrollWheel.cpp | #include "diagnostic_macros.hpp"
BEGIN_IOKIT_INCLUDE;
#include <IOKit/IOLib.h>
END_IOKIT_INCLUDE;
#include "EventOutputQueue.hpp"
#include "FlipScrollWheel.hpp"
#include "IOLogWrapper.hpp"
namespace org_pqrs_Karabiner {
namespace RemapFunc {
void FlipScrollWheel::add(AddDataType datatype, AddValue newval) {
switch... | #include "diagnostic_macros.hpp"
BEGIN_IOKIT_INCLUDE;
#include <IOKit/IOLib.h>
END_IOKIT_INCLUDE;
#include "EventOutputQueue.hpp"
#include "FlipScrollWheel.hpp"
#include "IOLogWrapper.hpp"
namespace org_pqrs_Karabiner {
namespace RemapFunc {
void FlipScrollWheel::add(AddDataType datatype, AddValue newval) {
switch... | remove comment | remove comment
| C++ | unlicense | wataash/Karabiner,tekezo/Karabiner,wataash/Karabiner,e-gaulue/Karabiner,e-gaulue/Karabiner,tekezo/Karabiner,wataash/Karabiner,e-gaulue/Karabiner,tekezo/Karabiner,e-gaulue/Karabiner,tekezo/Karabiner,wataash/Karabiner |
e891f4da1b4e1689f2827f77261a60bd029f5682 | paddle/fluid/operators/p_norm_op.cc | paddle/fluid/operators/p_norm_op.cc | /* Copyright (c) 2020 PaddlePaddle 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.
Indicesou may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable ... | /* Copyright (c) 2020 PaddlePaddle 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.
Indicesou may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable ... | Add p_norm op version info (#30042) | Add p_norm op version info (#30042)
* p_norm fix op version info. test=develop | C++ | apache-2.0 | luotao1/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,PaddlePaddle/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,luotao1/Paddle,luotao1/Paddle,luotao1/Paddle,PaddlePaddle/Paddle,PaddlePaddle/Paddle,PaddlePaddle/Paddle,PaddlePaddle/Paddle,luotao1/Paddle |
e942338f78eede661ac60f01887a28423d959d0f | sys/arduino/include/arduino.hpp | sys/arduino/include/arduino.hpp | /*
* Copyright (C) 2015 Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @defgroup sys_arduino_api Arduino API
* @ingroup sys_arduino
* @brief ... | /*
* Copyright (C) 2015 Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @defgroup sys_arduino_api Arduino API
* @ingroup sys_arduino
* @brief ... | add type definitions often used | sys/arduino: add type definitions often used
boolean and byte are data types defined in Arduino.h and very often used in Arduino code. | C++ | lgpl-2.1 | miri64/RIOT,basilfx/RIOT,aeneby/RIOT,OTAkeys/RIOT,miri64/RIOT,basilfx/RIOT,mtausig/RIOT,mtausig/RIOT,aeneby/RIOT,kaspar030/RIOT,yogo1212/RIOT,miri64/RIOT,basilfx/RIOT,authmillenon/RIOT,yogo1212/RIOT,x3ro/RIOT,jasonatran/RIOT,josephnoir/RIOT,yogo1212/RIOT,basilfx/RIOT,x3ro/RIOT,authmillenon/RIOT,jasonatran/RIOT,x3ro/RIO... |
21b3ca616ea98735ba440b4c4e4300e78de06f96 | src/Editor/GUI/ResourceList.cpp | src/Editor/GUI/ResourceList.cpp | #include "ResourceList.hpp"
#include <Engine/Geometry/OBJModel.hpp>
#include <Engine/Texture/Texture2D.hpp>
#include <Engine/Audio/SoundBuffer.hpp>
#include <Engine/Hymn.hpp>
#include <Engine/Scene/Scene.hpp>
#include <Engine/Entity/Entity.hpp>
#include <imgui.h>
using namespace GUI;
void ResourceList::Show() {
... | #include "ResourceList.hpp"
#include <Engine/Geometry/OBJModel.hpp>
#include <Engine/Texture/Texture2D.hpp>
#include <Engine/Audio/SoundBuffer.hpp>
#include <Engine/Hymn.hpp>
#include <Engine/Scene/Scene.hpp>
#include <Engine/Entity/Entity.hpp>
#include <imgui.h>
using namespace GUI;
void ResourceList::Show() {
... | Delete sound | Delete sound
| C++ | mit | Chainsawkitten/HymnToBeauty,Chainsawkitten/HymnToBeauty,Chainsawkitten/LargeGameProjectEngine,Chainsawkitten/LargeGameProjectEngine |
817b08faf23d7708e35aad67fd114a12151605f7 | arch/dev/ELFLoader.cpp | arch/dev/ELFLoader.cpp | #include "ELFLoader.h"
#include "ELF.h"
#include <sim/except.h>
#include <fstream>
#include <iostream>
#include <vector>
using namespace std;
using namespace Simulator;
static const int PAGE_SIZE = 4096;
// Throws an exception if the expression is false
#define Verify(Expr, Message) ... | #include "ELFLoader.h"
#include "ELF.h"
#include <sim/except.h>
#include <fstream>
#include <iostream>
#include <vector>
using namespace std;
using namespace Simulator;
static const int PAGE_SIZE = 4096;
// Throws an exception if the expression is false
#define Verify(Expr, Message) ... | Fix loading the symbol table on big endian targets. | Fix loading the symbol table on big endian targets.
| C++ | mit | Bitblade-org/mgsim,Bitblade-org/mgsim,Bitblade-org/mgsim,Bitblade-org/mgsim |
e54373c95639bbcd13bc8ae78ede338bc5b43980 | physics/jacobi_coordinates_test.cpp | physics/jacobi_coordinates_test.cpp |
#include "jacobi_coordinates.hpp"
#include <map>
#include <vector>
#include "geometry/frame.hpp"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "testing_utilities/almost_equals.hpp"
#include "testing_utilities/vanishes_before.hpp"
namespace principia {
using quantities::si::Kilogram;
using testing_uti... |
#include "jacobi_coordinates.hpp"
#include <map>
#include <vector>
#include "geometry/frame.hpp"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "testing_utilities/almost_equals.hpp"
#include "testing_utilities/vanishes_before.hpp"
namespace principia {
using quantities::si::Kilogram;
using testing_uti... | test passes | test passes
| C++ | mit | pleroy/Principia,eggrobin/Principia,eggrobin/Principia,pleroy/Principia,Norgg/Principia,mockingbirdnest/Principia,mockingbirdnest/Principia,mockingbirdnest/Principia,Norgg/Principia,eggrobin/Principia,Norgg/Principia,pleroy/Principia,pleroy/Principia,Norgg/Principia,mockingbirdnest/Principia |
7fcd79aa864c5fedc0f144c383778387c3ee64ca | src/internal/required-to-instantiate.cpp | src/internal/required-to-instantiate.cpp | /*
* %injeqt copyright begin%
* Copyright 2014 Rafał Malinowski (rafal.przemyslaw.malinowski@gmail.com)
* %injeqt copyright end%
*
* 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; e... | /*
* %injeqt copyright begin%
* Copyright 2014 Rafał Malinowski (rafal.przemyslaw.malinowski@gmail.com)
* %injeqt copyright end%
*
* 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; e... | simplify required_to_instantiate implementation | simplify required_to_instantiate implementation
Signed-off-by: Rafał Malinowski <b8f60c52f3f0b57a213b606f2d63f58ef0768b73@gmail.com>
| C++ | lgpl-2.1 | ppekala/injeqt,ppekala/injeqt,ppekala/injeqt,vogel/injeqt,vogel/injeqt,vogel/injeqt |
e9a5e32330a5279a612f03d67c61a88dc5e99c82 | src/updater/csv_source.cpp | src/updater/csv_source.cpp | #include "updater/csv_source.hpp"
#include "updater/csv_file_parser.hpp"
#include <boost/fusion/adapted/std_pair.hpp>
#include <boost/fusion/include/adapt_adt.hpp>
// clang-format off
BOOST_FUSION_ADAPT_STRUCT(osrm::updater::Segment,
(decltype(osrm::updater::Segment::from), from)
... | #include "updater/csv_source.hpp"
#include "updater/csv_file_parser.hpp"
#include <boost/fusion/adapted/std_pair.hpp>
#include <boost/fusion/include/adapt_adt.hpp>
// clang-format off
BOOST_FUSION_ADAPT_STRUCT(osrm::updater::Segment,
(decltype(osrm::updater::Segment::from), from)
... | fix prevention of copy elision | fix prevention of copy elision
| C++ | bsd-2-clause | neilbu/osrm-backend,yuryleb/osrm-backend,deniskoronchik/osrm-backend,frodrigo/osrm-backend,bjtaylor1/osrm-backend,KnockSoftware/osrm-backend,deniskoronchik/osrm-backend,frodrigo/osrm-backend,oxidase/osrm-backend,yuryleb/osrm-backend,felixguendling/osrm-backend,yuryleb/osrm-backend,felixguendling/osrm-backend,KnockSoftw... |
936a6d4f7a1c3304772c5d212a31e940a0711117 | system_wrappers/source/clock.cc | system_wrappers/source/clock.cc | /*
* Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | /*
* Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | Simplify and guard access to WindowsRealTimeClock. | Simplify and guard access to WindowsRealTimeClock.
Addresses data race in get_time() causing incorrect timer roll-over
detection. This roll-over caused NTP timers to jump by 2^32
milliseconds affecting A/V sync and end-to-end delay calculations.
BUG=4206
R=dvyukov@google.com, tommi@webrtc.org
Review URL: https://web... | C++ | bsd-3-clause | sippet/webrtc,sippet/webrtc,sippet/webrtc,sippet/webrtc,sippet/webrtc,sippet/webrtc |
95e877c0839e61dbeb6777dec2bfbfc503631d81 | contextd/unit-tests/lowmemprovider/lowmemproviderunittest.cpp | contextd/unit-tests/lowmemprovider/lowmemproviderunittest.cpp | /*
* Copyright (C) 2008, 2009 Nokia Corporation.
*
* Contact: Marius Vollmer <marius.vollmer@nokia.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation.
*
* This lib... | /*
* Copyright (C) 2008, 2009 Nokia Corporation.
*
* Contact: Marius Vollmer <marius.vollmer@nokia.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation.
*
* This lib... | Store mocked low/high watermark poolers. | Store mocked low/high watermark poolers.
| C++ | lgpl-2.1 | rburchell/ck,rburchell/ck,rburchell/ck,rburchell/ck,rburchell/ck |
7d3de5c46754a0d089b233dd1d73f0d2631c8d1f | tagged_sqlite/tagged_sqlite.cpp | tagged_sqlite/tagged_sqlite.cpp | // tagged_sqlite.cpp : Defines the entry point for the application.
//
#include "tagged_sqlite.h"
#include <exception>
sqlite3 *init_database() {
sqlite3 *sqldb;
sqlite3_open(":memory:", &sqldb);
auto const creation = R"(
CREATE TABLE customers(id PRIMARY_KEY, name TEXT);
CREATE TABLE orders(id PRIMARY_KEY, i... | // tagged_sqlite.cpp : Defines the entry point for the application.
//
#include "tagged_sqlite.h"
#include <exception>
sqlite3 *init_database() {
sqlite3 *sqldb;
sqlite3_open(":memory:", &sqldb);
auto const creation = R"(
CREATE TABLE customers(id PRIMARY_KEY, name TEXT);
CREATE TABLE orders(id PRIMARY_KEY, i... | Fix spacing for tagged sqlite example where clause | Fix spacing for tagged sqlite example where clause | C++ | apache-2.0 | google/cpp-from-the-sky-down,google/cpp-from-the-sky-down,google/cpp-from-the-sky-down |
daf0f7cee516c249f0442905b11052dab7f929d1 | tools/scylla-types.cc | tools/scylla-types.cc | /*
* Copyright (C) 2020-present ScyllaDB
*/
/*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
#include <boost/algorithm/string/join.hpp>
#include <seastar/core/app-template.hh>
#include "compound.hh"
#include "db/marshal/type_parser.hh"
#include "log.hh"
#include "tools/utils.hh"
using namespace seastar;
name... | /*
* Copyright (C) 2020-present ScyllaDB
*/
/*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
#include <boost/algorithm/string/join.hpp>
#include <seastar/core/app-template.hh>
#include "compound.hh"
#include "db/marshal/type_parser.hh"
#include "log.hh"
#include "tools/utils.hh"
using namespace seastar;
name... | update main description | tools/types: update main description
Remove examples and instead point user to action-specific help for more
information about specific actions.
| C++ | agpl-3.0 | scylladb/scylla,scylladb/scylla,scylladb/scylla,scylladb/scylla |
5e8672d67d9efec7347741889b10d8e70157d5e8 | src/component/common/LifeCycle.cpp | src/component/common/LifeCycle.cpp | //
// Created by Dawid Drozd aka Gelldur on 13/11/16.
//
#include "LifeCycle.h"
#include <2d/CCNode.h>
#include <component/ComponentManager.h>
#include <component/common/LifeCycleEvents.h>
namespace Dexode
{
namespace Component
{
void LifeCycle::onAttach()
{
inherited::onAttach();
getWorkingNode()->setOnEnterCal... | //
// Created by Dawid Drozd aka Gelldur on 13/11/16.
//
#include "LifeCycle.h"
#include <2d/CCNode.h>
#include <component/ComponentManager.h>
#include <component/common/LifeCycleEvents.h>
namespace Dexode
{
namespace Component
{
void LifeCycle::onAttach()
{
inherited::onAttach();
getWorkingNode()->setOnEnterCal... | Fix fast for now | Fix fast for now
Using working node when it is destroyed //autorelease
| C++ | apache-2.0 | gelldur/cocos2d-x-common |
32561332b21b7b072fa6619f0bbb29a69cb30f33 | techlibs/xilinx/synth_xilinx.cc | techlibs/xilinx/synth_xilinx.cc | /*
* yosys -- Yosys Open SYnthesis Suite
*
* Copyright (C) 2012 Clifford Wolf <clifford@clifford.at>
*
* 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 ... | /*
* yosys -- Yosys Open SYnthesis Suite
*
* Copyright (C) 2012 Clifford Wolf <clifford@clifford.at>
*
* 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 ... | Update doc for synth_xilinx | Update doc for synth_xilinx
| C++ | isc | antmicro/yosys,YosysHQ/yosys,SymbiFlow/yosys,antmicro/yosys,SymbiFlow/yosys,YosysHQ/yosys,antmicro/yosys,cliffordwolf/yosys,cliffordwolf/yosys,cliffordwolf/yosys,YosysHQ/yosys,YosysHQ/yosys,cliffordwolf/yosys,YosysHQ/yosys,antmicro/yosys,SymbiFlow/yosys,antmicro/yosys,YosysHQ/yosys,SymbiFlow/yosys,cliffordwolf/yosys,an... |
c5fb767b229eb61610f1c3f5554e77fd7b87876f | uhd/uhd.cpp | uhd/uhd.cpp | #include <vector>
#include <Python.h>
#include "structmember.h"
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#include <numpy/arrayobject.h>
#include <uhd/usrp/multi_usrp.hpp>
#include <uhd/exception.hpp>
#include <uhd/version.hpp>
#include "uhd.hpp"
#include "uhd_types.hpp"
#include "uhd_expect.hpp"
#include "... | #include <vector>
#include <Python.h>
#include "structmember.h"
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#include <numpy/arrayobject.h>
#include <uhd/usrp/multi_usrp.hpp>
#include <uhd/exception.hpp>
#include <uhd/version.hpp>
#include "uhd.hpp"
#include "uhd_types.hpp"
#include "uhd_expect.hpp"
#include "... | fix UhdError name in PyErr_NewExceptionWithDoc | uhd/uhd.cpp: fix UhdError name in PyErr_NewExceptionWithDoc
| C++ | mit | christian-hahn/python-uhd,christian-hahn/python-uhd |
d6fbaab4bcc632859191806a716aba9f421d179b | OCLMemoryManager.cpp | OCLMemoryManager.cpp | /* Copyright 2014 Aaron Boxer
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed... | /* Copyright 2014 Aaron Boxer
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed... | write image should block until it completes | write image should block until it completes
| C++ | agpl-3.0 | knopkem/roger,knopkem/roger |
2f37eb1eedbcd7383aa6404f430768938dedcdaf | cpp/drafts/Halide/Components/DominantGradientOrientations.hpp | cpp/drafts/Halide/Components/DominantGradientOrientations.hpp | // ========================================================================== //
// This file is part of Sara, a basic set of libraries in C++ for computer
// vision.
//
// Copyright (C) 2020-present David Ok <david.ok8@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License v. 2... | // ========================================================================== //
// This file is part of Sara, a basic set of libraries in C++ for computer
// vision.
//
// Copyright (C) 2020-present David Ok <david.ok8@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License v. 2... | simplify implementation. | MAINT: simplify implementation.
| C++ | mpl-2.0 | DO-CV/sara,DO-CV/sara,DO-CV/sara,DO-CV/sara,DO-CV/sara,DO-CV/sara |
dc2cb9bd621ef4e6db5b8b6c49119f3ec9f2abbc | cpp/ql/test/query-tests/Security/CWE/CWE-367/semmle/test2.cpp | cpp/ql/test/query-tests/Security/CWE/CWE-367/semmle/test2.cpp | // More test cases. Some of these are inspired by real-world cases, others are synthetic or variations.
#define NULL 0
typedef struct {} FILE;
typedef struct {
int foo;
} stat_data;
FILE *fopen(const char *filename, const char *mode);
int fclose(FILE *stream);
int open(const char *filename, int arg);
int creat(co... | // More test cases. Some of these are inspired by real-world cases, others are synthetic or variations.
#define NULL 0
typedef struct {} FILE;
typedef struct {
int foo;
} stat_data;
FILE *fopen(const char *filename, const char *mode);
int fclose(FILE *stream);
int open(const char *filename, int arg);
int creat(co... | Fix numbering. | C++: Fix numbering.
| 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 |
256770b52794b27bb10ab805a85e17f869b07e38 | imbed/arpeggiate/arpeggiate.cpp | imbed/arpeggiate/arpeggiate.cpp | /* arpeggiate -- schedule a bunch of happy STRUM notes, using the
RTtimeit() function
demonstration of the RTcmix object -- BGG, 11/2002
*/
#define MAIN
#include <iostream.h>
#include <unistd.h>
#include <math.h>
#include <globals.h>
#include "RTcmix.h"
// declare this here so it will be global for the gonote... | /* arpeggiate -- schedule a bunch of happy STRUM notes, using the
RTtimeit() function
demonstration of the RTcmix object -- BGG, 11/2002
*/
#define MAIN
#include <iostream.h>
#include <stdlib.h>
#include <unistd.h>
#include <math.h>
#include <globals.h>
#include "RTcmix.h"
// declare this here so it will be g... | Add include for implicit decl. of atoi. | Add include for implicit decl. of atoi.
| C++ | apache-2.0 | RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix |
dee3ce49e3e1e46c82f024283b51d85734cbb3ff | dali-toolkit/internal/controls/image-view/image-view-impl.cpp | dali-toolkit/internal/controls/image-view/image-view-impl.cpp | // Copyright (c) 2016 Samsung Electronics Co., Ltd.
// CLASS HEADER
#include "image-view-impl.h"
// EXTERNAL INCLUDES
#include <dali/public-api/images/resource-image.h>
#include <dali/public-api/object/type-registry.h>
#include <dali/public-api/object/type-registry-helper.h>
#include <dali/devel-api/scripting/scripti... | // Copyright (c) 2016 Samsung Electronics Co., Ltd.
// CLASS HEADER
#include "image-view-impl.h"
// EXTERNAL INCLUDES
#include <dali/public-api/images/resource-image.h>
#include <dali/public-api/object/type-registry.h>
#include <dali/public-api/object/type-registry-helper.h>
#include <dali/devel-api/scripting/scripti... | Stop copying Property::Maps in ImageView SetProperty | Stop copying Property::Maps in ImageView SetProperty
Change-Id: I120dece3cad2bd5b0de1e7a3c94096cecc968d57
| C++ | apache-2.0 | dalihub/dali-toolkit,dalihub/dali-toolkit,dalihub/dali-toolkit,dalihub/dali-toolkit |
b7d564d15b38c53a5cd876c76abe39aeee6b9f20 | unicode.cpp | unicode.cpp | #include <algorithm>
#include "utf8.h"
#include "unicode.h"
#include "string.h"
#include "exceptions.h"
#include <boost/lexical_cast.hpp>
#include <boost/algorithm/string.hpp>
std::ostream& operator<< (std::ostream& os, const unicode& str) {
os << str.encode();
return os;
}
unicode& unicode::operator=(const... | #include <algorithm>
#include "utf8.h"
#include "unicode.h"
#include "string.h"
#include "exceptions.h"
#include <boost/lexical_cast.hpp>
#include <boost/algorithm/string.hpp>
std::ostream& operator<< (std::ostream& os, const unicode& str) {
os << str.encode();
return os;
}
unicode& unicode::operator=(const... | Add unicode::upper | Add unicode::upper
| C++ | bsd-2-clause | Kazade/kazbase,Kazade/kazbase |
fbf8de7782c089d3defb11783167af3dee1e563c | gui/ged/src/TArrowEditor.cxx | gui/ged/src/TArrowEditor.cxx | // @(#)root/ged:$Id$
// Author: Ilka Antcheva 20/10/04
/*************************************************************************
* Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | // @(#)root/ged:$Id$
// Author: Ilka Antcheva 20/10/04
/*************************************************************************
* Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | Fix ROOT-6443 | Fix ROOT-6443
| C++ | lgpl-2.1 | georgtroska/root,mkret2/root,sbinet/cxx-root,agarciamontoro/root,mhuwiler/rootauto,gbitzes/root,karies/root,mhuwiler/rootauto,veprbl/root,nilqed/root,0x0all/ROOT,perovic/root,BerserkerTroll/root,esakellari/root,jrtomps/root,CristinaCristescu/root,omazapa/root,Y--/root,simonpf/root,mhuwiler/rootauto,gbitzes/root,mkret2/... |
ac0cdcec4334b933f72de41860c55eb056ff119a | src/windows/PipeServer.cpp | src/windows/PipeServer.cpp | #include "PipeServer.h"
#include <Window.h>
#include "IOCP.h"
#include <core\literals.h>
#include <concurrent_queue.h>
#include <cassert>
#include <algorithm>
using namespace CR::Core::Literals;
namespace CR
{
namespace Platform
{
class PipeServer : public IPipeServer
{
public:
PipeServer(HANDLE a_pipeHand... | #include "PipeServer.h"
#include <Window.h>
#include "IOCP.h"
#include <core\literals.h>
#include <concurrent_queue.h>
#include <cassert>
#include <algorithm>
using namespace CR::Core::Literals;
namespace CR
{
namespace Platform
{
class PipeServer : public IPipeServer
{
public:
PipeServer(HANDLE a_pipeHand... | fix build | fix build
| C++ | mit | duhone/Platform |
a68cfea4bd620f16c9030a3df0aea0566f4352d2 | sln/Tools/SymmetricBlockMatrix.hpp | sln/Tools/SymmetricBlockMatrix.hpp | #pragma once
#include "AbstractTransposeMultipliableMatrix.hpp"
/*
Alexander Žilyakov, Feb 2017
*/
template <typename T>
class SymmetricBlockMatrix
: public AbstractMultipliableMatrix<T> { // aggregation
std::vector<Index> _blockStartIndicies;
// the first element of (i, j)–block has row index _blockStartIndici... | #pragma once
#include "AbstractTransposeMultipliableMatrix.hpp"
/*
Alexander Žilyakov, Feb 2017
*/
enum class BlockSymmetryType { symmetric, antisymmetric };
template <typename T>
class SymmetricBlockMatrix
: public AbstractMultipliableMatrix<T> { // aggregation
short _bsign; // + for symmetric, – for antisymme... | Add antisymmetric option | Add antisymmetric option
| C++ | mit | frfly/Solving-elliptic-equation-using-FEM,CATSPDEs/CATSPDEs,frfly/CATSPDEs |
c33be9269ec5a645005f217235952c189d321569 | riegeli/bytes/cord_reader.cc | riegeli/bytes/cord_reader.cc | // Copyright 2017 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 2017 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 ... | Optimize seeking to the end of a `Cord`, given that seeking past the end is treated specially anyway. | Optimize seeking to the end of a `Cord`, given that seeking past the end
is treated specially anyway.
PiperOrigin-RevId: 330568384
| C++ | apache-2.0 | google/riegeli,google/riegeli,google/riegeli,google/riegeli |
0a546d768582fac7c5552b4f391c8107ae725bef | filter/bccon/contract_collect.cpp | filter/bccon/contract_collect.cpp | /*
This file is part of Bohrium and copyright (c) 2012 the Bohrium
team <http://www.bh107.org>.
Bohrium 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 version 3
of the License, or (at your option) ... | /*
This file is part of Bohrium and copyright (c) 2012 the Bohrium
team <http://www.bh107.org>.
Bohrium 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 version 3
of the License, or (at your option) ... | Check view in use | [filter] Check view in use
| C++ | apache-2.0 | madsbk/bohrium,madsbk/bohrium,bh107/bohrium,bh107/bohrium,bh107/bohrium,madsbk/bohrium,bh107/bohrium,madsbk/bohrium |
b77557cbcbbd0baa2c711720e15fbb586283bdf9 | common/vtkOverrideInformation.cxx | common/vtkOverrideInformation.cxx | /*=========================================================================
Program: Visualization Toolkit
Module: vtkOverrideInformation.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-2000 Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
Redistribution a... | /*=========================================================================
Program: Visualization Toolkit
Module: vtkOverrideInformation.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-2000 Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
Redistribution a... | fix for build on Suse | BUG: fix for build on Suse
| C++ | bsd-3-clause | keithroe/vtkoptix,Wuteyan/VTK,daviddoria/PointGraphsPhase1,jmerkow/VTK,jmerkow/VTK,keithroe/vtkoptix,aashish24/VTK-old,mspark93/VTK,SimVascular/VTK,sumedhasingla/VTK,Wuteyan/VTK,ashray/VTK-EVM,jmerkow/VTK,collects/VTK,jeffbaumes/jeffbaumes-vtk,daviddoria/PointGraphsPhase1,gram526/VTK,biddisco/VTK,collects/VTK,demarle/V... |
627abffd93ff4d2f8a6a90c17271a00d1f9a1b75 | base/hashmap.hh | base/hashmap.hh | /*
* Copyright (c) 2003 The Regents of The University of Michigan
* 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, ... | /*
* Copyright (c) 2003 The Regents of The University of Michigan
* 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, ... | Make the simulator compile on an Itanium. | Make the simulator compile on an Itanium.
base/hashmap.hh:
Not all machines need these extra hash functions
also make Counter int64_t since that's really what is needed
| C++ | bsd-3-clause | LingxiaoJIA/gem5,LingxiaoJIA/gem5,haowu4682/gem5,LingxiaoJIA/gem5,LingxiaoJIA/gem5,andrewfu0325/gem5-aladdin,LingxiaoJIA/gem5,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,haowu4682/gem5,haowu4682/gem5,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,LingxiaoJIA/gem5,LingxiaoJIA/gem5,... |
3e1475978299c22c5db4e2c2a76e64274e024365 | include/distortos/Semaphore.hpp | include/distortos/Semaphore.hpp | /**
* \file
* \brief Semaphore class header
*
* \author Copyright (C) 2014 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
*
* \par License
* 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... | /**
* \file
* \brief Semaphore class header
*
* \author Copyright (C) 2014 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
*
* \par License
* 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... | remove static Semaphore::getMaxValue() | Semaphore: remove static Semaphore::getMaxValue() | C++ | mpl-2.0 | DISTORTEC/distortos,CezaryGapinski/distortos,jasmin-j/distortos,DISTORTEC/distortos,jasmin-j/distortos,CezaryGapinski/distortos,CezaryGapinski/distortos,CezaryGapinski/distortos,jasmin-j/distortos,DISTORTEC/distortos,jasmin-j/distortos,jasmin-j/distortos,CezaryGapinski/distortos,DISTORTEC/distortos |
e7f17d56c2711401c9a2a2196b5270ad342b8ce0 | hecl/include/hecl/FourCC.hpp | hecl/include/hecl/FourCC.hpp | #pragma once
#include <cstdint>
#include <cstddef>
#include <string>
#include <athena/DNA.hpp>
#include <logvisor/logvisor.hpp>
namespace hecl {
/**
* @brief FourCC representation used within HECL's database
*
* FourCCs are efficient, mnemonic four-char-sequences used to represent types
* while fitting comforta... | #pragma once
#include <cstdint>
#include <cstddef>
#include <string>
#include <athena/DNA.hpp>
#include <logvisor/logvisor.hpp>
namespace hecl {
/**
* @brief FourCC representation used within HECL's database
*
* FourCCs are efficient, mnemonic four-char-sequences used to represent types
* while fitting comforta... | Add IStreamReader overloaded constructor to DNAFourCC | Add IStreamReader overloaded constructor to DNAFourCC
| C++ | mit | AxioDL/PathShagged,AxioDL/PathShagged,AxioDL/PathShagged |
bf282d59fa8e0766ddd8a30045d8332e7e64cfff | skia/ext/SkFontHost_fontconfig_direct.cpp | skia/ext/SkFontHost_fontconfig_direct.cpp | /* libs/graphics/ports/SkFontHost_fontconfig_direct.cpp
**
** Copyright 2009, Google Inc.
**
** 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-... | /* libs/graphics/ports/SkFontHost_fontconfig_direct.cpp
**
** Copyright 2009, Google Inc.
**
** 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-... | Add font-equivalent mapping for a few Chinese/Japanese fonts for CrOS. | Add font-equivalent mapping for a few Chinese/Japanese fonts for CrOS.
The following aliases are added to be recognized in addition to what we have.
The first four are applicable to Chrome on Linux and ChromeOS. The last
two are for Chrome OS.
IPAPMincho -> MS P Mincho
IPAMincho -> MS Mincho
IPAPGothic -> MS P Goth... | 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... |
22494e6ed9701e2093a3f0cca6601141f7472b4d | src/cpp/core/r_util/RToolsInfo.cpp | src/cpp/core/r_util/RToolsInfo.cpp | /*
* RToolsInfo.cpp
*
* Copyright (C) 2009-19 by RStudio, PBC
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero General Public License. Th... | /*
* RToolsInfo.cpp
*
* Copyright (C) 2009-19 by RStudio, PBC
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero General Public License. Th... | update Rtools URL | update Rtools URL
| C++ | agpl-3.0 | JanMarvin/rstudio,JanMarvin/rstudio,JanMarvin/rstudio,JanMarvin/rstudio,JanMarvin/rstudio,JanMarvin/rstudio,JanMarvin/rstudio,JanMarvin/rstudio,JanMarvin/rstudio |
a66be106cb4f22d8ea20704572a5c327fe624735 | src/csapex_util/src/subprocess.cpp | src/csapex_util/src/subprocess.cpp | /// HEADER
#include <csapex/utility/subprocess.h>
#include <csapex/utility/assert.h>
/// SYSTEM
#include <iostream>
#include <boost/optional.hpp>
#include <boost/interprocess/managed_shared_memory.hpp>
#include <boost/interprocess/containers/string.hpp>
#include <boost/interprocess/sync/interprocess_mutex.hpp>
#includ... | /// HEADER
#include <csapex/utility/subprocess.h>
#include <csapex/utility/assert.h>
/// SYSTEM
#include <iostream>
#include <boost/optional.hpp>
#include <boost/interprocess/managed_shared_memory.hpp>
#include <boost/interprocess/containers/string.hpp>
#include <boost/interprocess/sync/interprocess_mutex.hpp>
#includ... | Make subprocess not terminate for signals that are ignored by default | Make subprocess not terminate for signals that are ignored by default
| C++ | bsd-3-clause | cogsys-tuebingen/csapex,cogsys-tuebingen/csapex,cogsys-tuebingen/csapex,cogsys-tuebingen/csapex |
19008a84ef213f310d42c201947901508405e8b3 | DeviceCriteria.hpp | DeviceCriteria.hpp | #ifndef DEVICECRITERIA_HPP_
#define DEVICECRITERIA_HPP_
namespace oul {
enum DeviceType {DEVICE_TYPE_ANY, DEVICE_TYPE_GPU, DEVICE_TYPE_CPU};
enum DevicePlatform {DEVICE_PLATFORM_ANY, DEVICE_PLATFORM_AMD, DEVICE_PLATFORM_NVIDIA, DEVICE_PLATFORM_INTEL, DEVICE_PLATFORM_APPLE};
enum DeviceCapability {DEVICE_CAPABILITY_... | #ifndef DEVICECRITERIA_HPP_
#define DEVICECRITERIA_HPP_
#include <vector>
namespace oul {
enum DeviceType {DEVICE_TYPE_ANY, DEVICE_TYPE_GPU, DEVICE_TYPE_CPU};
enum DevicePlatform {DEVICE_PLATFORM_ANY, DEVICE_PLATFORM_AMD, DEVICE_PLATFORM_NVIDIA, DEVICE_PLATFORM_INTEL, DEVICE_PLATFORM_APPLE};
enum DeviceCapability ... | include vector lib | include vector lib
| C++ | bsd-2-clause | magnulef/OpenCLUtilityLibrary,smistad/OpenCLUtilityLibrary,smistad/OpenCLUtilityLibrary,magnulef/OpenCLUtilityLibrary |
5d3be0e9ff80c99d5e538e260367d2a6cff118b6 | source/client/ClientConnection.cpp | source/client/ClientConnection.cpp | #include "client/ClientConnection.hpp"
#include "core/Writer.hpp"
#include "net/Socket.hpp"
#include <cassert>
#include <cstring>
namespace http
{
ClientConnection::ClientConnection() : socket(nullptr) {}
ClientConnection::ClientConnection(std::unique_ptr<Socket> &&socket) : socket(nullptr)
{
reset(... | #include "client/ClientConnection.hpp"
#include "core/Writer.hpp"
#include "net/Socket.hpp"
#include <cassert>
#include <cstring>
namespace http
{
ClientConnection::ClientConnection() : socket(nullptr) {}
ClientConnection::ClientConnection(std::unique_ptr<Socket> &&socket) : socket(nullptr)
{
reset(... | Make ClientConnection disconnect if the response does not have "Connection: keep-alive" | Make ClientConnection disconnect if the response does not have "Connection: keep-alive"
| C++ | mit | wnewbery/cpphttp |
0dca953b135d967d1a8d3271718d9729ec026280 | test/map_test.cc | test/map_test.cc | #include "benchmark/benchmark.h"
#include <map>
namespace {
std::map<int, int> ConstructRandomMap(int size) {
std::map<int, int> m;
for (int i = 0; i < size; ++i) {
m.insert(std::make_pair(rand() % size, rand() % size));
}
return m;
}
} // namespace
// Basic version.
static void BM_MapLookup(benchmark... | #include "benchmark/benchmark.h"
#include <cstdlib>
#include <map>
namespace {
std::map<int, int> ConstructRandomMap(int size) {
std::map<int, int> m;
for (int i = 0; i < size; ++i) {
m.insert(std::make_pair(rand() % size, rand() % size));
}
return m;
}
} // namespace
// Basic version.
static void BM_... | Include cstdlib in map_test to make sure std::rand is available when building with libc++. | Include cstdlib in map_test to make sure std::rand is available when
building with libc++.
| C++ | apache-2.0 | efcs/benchmark,chemhack/benchmark,nickhutchinson/benchmark-cxx03,chemhack/benchmark,everbase/benchmark,ntx-/benchmark,ntx-/benchmark,disconnect3d/benchmark,everbase/benchmark,efcs/benchmark,disconnect3d/benchmark,fuchsia-mirror/third_party-benchmark,nickhutchinson/benchmark,nickhutchinson/benchmark-cxx03,codygray/bench... |
2f10166491dfca4c838336f550d3d64ee5cfe8d0 | test/mat/mat.cpp | test/mat/mat.cpp | #include <unittest.hpp>
#include <mmm.hpp>
namespace {
using namespace mmm;
auto constructors_1 = UnitTest("matrix constructors 1", +[] {
mat4 m;
mat4 n(0);
mat4 o{0};
mat4 p = mat4();
mat4 q = mat4(0);
if (m != n) return false;
if (n != o) return false;
if (o != p) return false;
... | #include <unittest.hpp>
#include <mmm.hpp>
namespace {
using namespace mmm;
auto constructors_1 = UnitTest("matrix constructors 1", +[] {
mat4 m;
mat4 n(0);
mat4 o{0};
mat4 p = mat4();
mat4 q = mat4(0);
if (m != n) return false;
if (n != o) return false;
if (o != p) return false;
... | add test for sizeof tmat | add test for sizeof tmat
| C++ | mit | Thhethssmuz/mmm,Thhethssmuz/mmm |
472eb4cb500cb2373a8d5bdaaec648b7c57f8c53 | src/lib/Projections/SphericalProjection.cpp | src/lib/Projections/SphericalProjection.cpp | //
// This file is part of the Marble Desktop Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2007 Inge Wallin <ingwa@kde.org>
// Copyright 2007-2009 Torsten Rahn <rahn@k... | //
// This file is part of the Marble Desktop Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2007 Inge Wallin <ingwa@kde.org>
// Copyright 2007-2009 Torsten Rahn <rahn@k... | simplify SphericalProjection::geoCoordinates(), part 2 | simplify SphericalProjection::geoCoordinates(), part 2
* centerX and centerY replaced by qx and qy
svn path=/trunk/KDE/kdeedu/marble/; revision=1170545
| C++ | lgpl-2.1 | David-Gil/marble-dev,AndreiDuma/marble,tucnak/marble,tzapzoor/marble,probonopd/marble,oberluz/marble,probonopd/marble,rku/marble,adraghici/marble,quannt24/marble,Earthwings/marble,quannt24/marble,AndreiDuma/marble,AndreiDuma/marble,tzapzoor/marble,probonopd/marble,tzapzoor/marble,Earthwings/marble,AndreiDuma/marble,Dav... |
7f95dee2958772ed150a03e9e66d781b465478f2 | src/DiscoveryVisitor.cpp | src/DiscoveryVisitor.cpp | // Copyright (c) 2014, Samuel A. Roth. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can
// be found in the COPYING file.
#include "DiscoveryVisitor.hpp"
#include "util.hpp"
#include "exports/Func.hpp"
#include "exports/Class.hpp"
#include "attributeStream.hpp"
#include <... | // Copyright (c) 2014, Samuel A. Roth. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can
// be found in the COPYING file.
#include "DiscoveryVisitor.hpp"
#include "util.hpp"
#include "exports/Func.hpp"
#include "exports/Class.hpp"
#include "attributeStream.hpp"
#include <... | Correct style issue: missing newline after function prototype. | Correct style issue: missing newline after function prototype.
| C++ | bsd-3-clause | sam-roth/autobind,sam-roth/autobind,sam-roth/autobind |
a325b416d2fbdc3171d37c0cfe85bd2e71091ae9 | test/Tooling/fixed-database.cpp | test/Tooling/fixed-database.cpp | // RUN: rm -rf %t
// RUN: mkdir -p %t/Src
// RUN: cp "%s" "%t/Src/test.cpp"
// RUN: mkdir -p %t/Include
// RUN: cp "%S/Inputs/fixed-header.h" "%t/Include/"
// -I flag is relative to %t (where compile_flags is), not Src/.
// RUN: echo '-IInclude/' >> %t/compile_flags.txt
// RUN: echo "-Dklazz=class" >> %t/compile_flags.... | // RUN: rm -rf %t
// RUN: mkdir -p %t/Src
// RUN: cp "%s" "%t/Src/test.cpp"
// RUN: mkdir -p %t/Include
// RUN: cp "%S/Inputs/fixed-header.h" "%t/Include/"
// -I flag is relative to %t (where compile_flags is), not Src/.
// RUN: echo '-IInclude/' >> %t/compile_flags.txt
// RUN: echo "-Dklazz=class" >> %t/compile_flags.... | Make compile_flags.txt negative test more hermetic | [tooling] Make compile_flags.txt negative test more hermetic
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@318154 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl... |
25c94f92378d5a446dd9ce7b572e0113367fec10 | include/cpm/random.hpp | include/cpm/random.hpp | //=======================================================================
// Copyright (c) 2015 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//=======================================================================... | //=======================================================================
// Copyright (c) 2015 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//=======================================================================... | Improve random number generation | Improve random number generation
| C++ | mit | wichtounet/cpm,wichtounet/cpm,wichtounet/cpm |
81fb4cf1ee7e52cc90cfcd424bd5abc25f57be6a | test/active_map_refresh_test.cc | test/active_map_refresh_test.cc | /*
* Copyright (c) 2016, Alliance for Open Media. All rights reserved
*
* This source code is subject to the terms of the BSD 2 Clause License and
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
* was not distributed with this source code in the LICENSE file, you can
* obtain it at w... | /*
* Copyright (c) 2016, Alliance for Open Media. All rights reserved
*
* This source code is subject to the terms of the BSD 2 Clause License and
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
* was not distributed with this source code in the LICENSE file, you can
* obtain it at w... | simplify test code | simplify test code
Change-Id: Ib5491fb8f5dd7edf27c74abdd21b1f0a42aafd1f
| C++ | bsd-2-clause | smarter/aom,GrokImageCompression/aom,mbebenita/aom,luctrudeau/aom,smarter/aom,mbebenita/aom,luctrudeau/aom,mbebenita/aom,smarter/aom,GrokImageCompression/aom,mbebenita/aom,mbebenita/aom,GrokImageCompression/aom,GrokImageCompression/aom,mbebenita/aom,luctrudeau/aom,mbebenita/aom,GrokImageCompression/aom,smarter/aom,smar... |
fa3d3fa86d91095643879e98aff721254f3a8656 | include/cybozu/ssl.hpp | include/cybozu/ssl.hpp | #pragma once
/**
@file
@brief tiny wrapper of openssl class
Copyright (C) 2007 Cybozu Labs, Inc., all rights reserved.
*/
#include <cybozu/socket.hpp>
#include <cybozu/exception.hpp>
#include <openssl/engine.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <openssl/rand.h>
//#include <openssl/crypto.h>... | #pragma once
/**
@file
@brief tiny wrapper of openssl class
Copyright (C) 2007 Cybozu Labs, Inc., all rights reserved.
*/
#include <cybozu/socket.hpp>
#include <cybozu/exception.hpp>
#include <openssl/engine.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <openssl/rand.h>
//#include <openssl/crypto.h>... | use TLS | use TLS
| C++ | bsd-3-clause | herumi/cybozulib,herumi/cybozulib |
a7b562eb0ef665b57e3a29a2ff83721bc3f66a03 | variant.hpp | variant.hpp | #ifndef UTIL_VARIANT_HPP
#define UTIL_VARIANT_HPP
#include <utility>
#include <typeinfo>
#include <type_traits>
namespace util {
namespace detail {
template <typename T, typename...Types>
struct type_traits;
template <typename T, typename First, typename...Types>
struct type_traits<T, First, Types...>
{
static... | #ifndef UTIL_VARIANT_HPP
#define UTIL_VARIANT_HPP
#include <utility>
#include <typeinfo>
#include <type_traits>
#include <stdexcept>
namespace util {
namespace detail {
template <typename T, typename...Types>
struct type_traits;
template <typename T, typename First, typename...Types>
struct type_traits<T, First, T... | include <stdexcept> | include <stdexcept>
| C++ | bsd-3-clause | tangrams/variant,tangrams/variant,edwiincao/variant,tangrams/variant,edwiincao/variant,edwiincao/variant,daniel-j-h/variant,tempbottle/variant,daniel-j-h/variant,tempbottle/variant,daniel-j-h/variant,tempbottle/variant |
9d63399513d3aff09e00607e89fd038d9cf62269 | project/src/audio/ChannelList.cpp | project/src/audio/ChannelList.cpp | #ifdef HX_WINDOWS
#include <windows.h>
#else
#include <pthread.h>
#include <unistd.h>
#include <sys/time.h>
#endif
#include <Sound.h>
#include "Audio.h"
namespace nme
{
void clLock();
void clUnlock();
struct OpenChannel
{
OpenChannel(SoundChannel *inChannel=0, bool inIsAsync=0)
: chann... | #ifdef HX_WINDOWS
#include <windows.h>
#else
#include <pthread.h>
#include <unistd.h>
#include <sys/time.h>
#endif
#include <Sound.h>
#include "Audio.h"
namespace nme
{
void clLock();
void clUnlock();
struct OpenChannel
{
OpenChannel(SoundChannel *inChannel=0, bool inIsAsync=0)
: chann... | Fix to prevent already completed sounds from replaying ater minmizing on iOS. | Fix to prevent already completed sounds from replaying ater minmizing on iOS.
| C++ | mit | thomasuster/NME,haxenme/nme,thomasuster/NME,thomasuster/NME,thomasuster/NME,haxenme/nme,thomasuster/NME,madrazo/nme,haxenme/nme,madrazo/nme,madrazo/nme,haxenme/nme,haxenme/nme,madrazo/nme,madrazo/nme,madrazo/nme,thomasuster/NME |
38e1b7ca87302f11c3e114bcbdba21ff4f93711a | game/ui/battle/battleprestart.cpp | game/ui/battle/battleprestart.cpp | #include "game/ui/battle/battleprestart.h"
#include "forms/form.h"
#include "forms/graphic.h"
#include "forms/graphicbutton.h"
#include "forms/label.h"
#include "forms/ui.h"
#include "framework/apocresources/cursor.h"
#include "framework/data.h"
#include "framework/event.h"
#include "framework/font.h"
#include "framewo... | #include "game/ui/battle/battleprestart.h"
#include "forms/form.h"
#include "forms/graphic.h"
#include "forms/graphicbutton.h"
#include "forms/label.h"
#include "forms/ui.h"
#include "framework/apocresources/cursor.h"
#include "framework/data.h"
#include "framework/event.h"
#include "framework/font.h"
#include "framewo... | fix last squad not working in battleprestart | fix last squad not working in battleprestart
| C++ | mit | FranciscoDA/OpenApoc,Istrebitel/OpenApoc,pmprog/OpenApoc,steveschnepp/OpenApoc,FranciscoDA/OpenApoc,pmprog/OpenApoc,FranciscoDA/OpenApoc,steveschnepp/OpenApoc,Istrebitel/OpenApoc |
393b1af723fcbf1eac16f9bb0760dc26f64d64f3 | RGBD.cpp | RGBD.cpp | #include <System.h>
#include <algorithm>
#include <chrono>
#include <fstream>
#include <iostream>
#include "Camera.h"
#include "Converter.h"
#include "inuitive.hpp"
#include "common.h"
#include <PangolinViewer.h>
#include <opencv2/opencv.hpp>
//-----------------
#include <fcntl.h>
#include <stdio.h>
#include <string.h>... | #include <System.h>
#include <algorithm>
#include <chrono>
#include <fstream>
#include <iostream>
#include "Camera.h"
#include "Converter.h"
#include "inuitive.hpp"
#include "common.h"
#include <PangolinViewer.h>
#include <opencv2/opencv.hpp>
//-----------------
#include <fcntl.h>
#include <stdio.h>
#include <string.h>... | add debug message | add debug message | C++ | apache-2.0 | qs371102/Inutive-ORB_SLAM,qs371102/Inutive-ORB_SLAM,qs371102/Inutive-ORB_SLAM |
19664be74d3248de675fd47dd650944a8349ad14 | The_Eye/src/main.cpp | The_Eye/src/main.cpp | /**
******************************************************************************
* @file main.c
* @author Ac6
* @version V1.0
* @date 01-December-2013
* @brief Default main function.
******************************************************************************
*/
#include "stm32f4x... | /**
******************************************************************************
* @file main.c
* @author Ac6
* @version V1.0
* @date 01-December-2013
* @brief Default main function.
******************************************************************************
*/
#include "stm32f4x... | Allow setting Kp above 2.55; set individual offsets to each motor | Allow setting Kp above 2.55; set individual offsets to each motor | C++ | mit | michprev/flyhero-esp32,michprev/flyhero-esp32 |
d15aae93e384d2395ed6601b0c3b4ef64d36109a | hyperdaemon/datalayer.cc | hyperdaemon/datalayer.cc | // Copyright (c) 2011, Cornell University
// 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 ... | // Copyright (c) 2011, Cornell University
// 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 ... | Fix the datalayer. | Fix the datalayer.
When I made foreground/background for the daemon, it would chdir, and
then try to create files relative to the original directory. Thinks
would work with absolute paths.
| C++ | bsd-3-clause | vashstorm/HyperDex,rescrv/HyperDex,UIKit0/HyperDex,pombredanne/HyperDex,jtk54/HyperDex,tempbottle/HyperDex,jtk54/HyperDex,tempbottle/HyperDex,tempbottle/HyperDex,cactorium/HyperDex,rescrv/HyperDex,rescrv/HyperDex,pombredanne/HyperDex,hyc/HyperDex,vashstorm/HyperDex,hyc/HyperDex,rescrv/HyperDex,jtk54/HyperDex,vashstorm/... |
69ceaf59e655777f00c452dacaa4f4d187d611d3 | src/Collision/CollisionHandler.cpp | src/Collision/CollisionHandler.cpp | #include "Collision/CollisionHandler.hpp"
#include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
#include "Calc.hpp"
/*
CollisionHandler::CollisionHandler(SceneNode *sceneGraph)
: m_sceneGraph(sceneGraph)
{
}
*/
CollisionInfo CollisionHandler::isColliding(CollisionCircle &objA, CollisionCircle &o... | #include "Collision/CollisionHandler.hpp"
#include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
#include "Calc.hpp"
/*
CollisionHandler::CollisionHandler(SceneNode *sceneGraph)
: m_sceneGraph(sceneGraph)
{
}
*/
CollisionInfo CollisionHandler::isColliding(CollisionCircle &objA, CollisionCircle &o... | Determine overlap and collision vector in Circle vs Cirlce | Determine overlap and collision vector in Circle vs Cirlce
| C++ | mit | TmCrafz/ArenaSFML,TmCrafz/ArenaSFML |
44c2c72648d46870ddb52831803c4e19eb088af6 | src/dialogs/selectrecipedialog.cpp | src/dialogs/selectrecipedialog.cpp | /***************************************************************************
* Copyright (C) 2003 by *
* Unai Garro (ugarro@users.sourceforge.net) *
* Cyril Bosselut (bosselut@b1project.com) *
* Jason Kivli... | /***************************************************************************
* Copyright (C) 2003 by *
* Unai Garro (ugarro@users.sourceforge.net) *
* Cyril Bosselut (bosselut@b1project.com) *
* Jason Kivli... | Remove clear search button | Remove clear search button
svn path=/trunk/extragear/utils/krecipes/; revision=790215
| C++ | lgpl-2.1 | eliovir/krecipes,eliovir/krecipes,eliovir/krecipes,eliovir/krecipes |
dcfe6b7358341c21225aa22c6c981b0922cd123f | src/GameRuntime/Main.cpp | src/GameRuntime/Main.cpp | /************************************************************************
*
* Flood Project (2008-201x)
* Licensed under the simplified BSD license. All rights reserved.
*
************************************************************************/
#include "GameRuntime/API.h"
#include "GameRuntime/Game.h"
//----------... | /************************************************************************
*
* Flood Project (2008-201x)
* Licensed under the simplified BSD license. All rights reserved.
*
************************************************************************/
#include "GameRuntime/API.h"
#include "GameRuntime/Game.h"
//----------... | Use the local variable instead of a global accessor. | Use the local variable instead of a global accessor.
| C++ | bsd-2-clause | FloodProject/flood,FloodProject/flood,FloodProject/flood |
6f98c0db6bc5440878d67d9ff35b0ba66826c782 | src/Routines/IntensityOutputRoutineTM.cpp | src/Routines/IntensityOutputRoutineTM.cpp | /*
* IntensityOutputRoutine.cpp
*
* Created on: 11 янв. 2016 г.
* Author: aleksandr
*/
#include "IntensityOutputRoutineTM.h"
#include <fstream>
#include <cmath>
#include <thrust/for_each.h>
#include <thrust/iterator/counting_iterator.h>
void IntensityOutputRoutineTM::printFromCPU() {
std::ofstream file;
... | /*
* IntensityOutputRoutine.cpp
*
* Created on: 11 янв. 2016 г.
* Author: aleksandr
*/
#include "IntensityOutputRoutineTM.h"
#include <fstream>
#include <cmath>
#include <thrust/for_each.h>
#include <thrust/iterator/counting_iterator.h>
void IntensityOutputRoutineTM::printFromCPU() {
std::ofstream file;
... | add binary output | add binary output
| C++ | mit | SchadkoAO/FDTD_Solver,SchadkoAO/FDTD_Solver,AlexHatesUnicorns/FDTD_Solver,SchadkoAO/FDTD_Solver,SchadkoAO/FDTD_Solver,AlexHatesUnicorns/FDTD_Solver,SchadkoAO/FDTD_Solver,SchadkoAO/FDTD_Solver |
843ee2910f1d3f4653384f3809fd68f49bb7bdcd | external/vulkancts/modules/vulkan/image/vktImageTestsUtil.hpp | external/vulkancts/modules/vulkan/image/vktImageTestsUtil.hpp | #ifndef _VKTIMAGETESTSUTIL_HPP
#define _VKTIMAGETESTSUTIL_HPP
/*------------------------------------------------------------------------
* Vulkan Conformance Tests
* ------------------------
*
* Copyright (c) 2016 The Khronos Group Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you ma... | #ifndef _VKTIMAGETESTSUTIL_HPP
#define _VKTIMAGETESTSUTIL_HPP
/*------------------------------------------------------------------------
* Vulkan Conformance Tests
* ------------------------
*
* Copyright (c) 2016 The Khronos Group Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you ma... | Fix semaphore leak in image atomic operations test | Fix semaphore leak in image atomic operations test
The class 'Image', being base class for `SparseImage` class needs to be
marked as virtual, so objects of SparseImage type can be owned and
destroyed through a pointer of `Image` type. Without that the implicit
destructor of `SparseImage` class is never called.
As Sp... | C++ | apache-2.0 | KhronosGroup/VK-GL-CTS,KhronosGroup/Vulkan-CTS,KhronosGroup/VK-GL-CTS,KhronosGroup/Vulkan-CTS,KhronosGroup/Vulkan-CTS,KhronosGroup/VK-GL-CTS,KhronosGroup/Vulkan-CTS,KhronosGroup/VK-GL-CTS,KhronosGroup/Vulkan-CTS,KhronosGroup/VK-GL-CTS,KhronosGroup/Vulkan-CTS,KhronosGroup/VK-GL-CTS |
e12dfcc7f5d7945308ce729ceb725fd51e343830 | src/MinimumInRotated.cpp | src/MinimumInRotated.cpp | #include <vector>
#include <algorithm>
#include <cassert>
class Solution {
public:
int binarySearch(std::vector<int> &num, int indFrom, int indTo) {
// here we use the first element in range as a pivot
// to search through all the rest elements in range
int size = indTo - indFrom + 1;
... | #include <vector>
#include <algorithm>
#include <cassert>
class Solution {
public:
int binarySearch(std::vector<int> &num, int indFrom, int indTo) {
// here we use the first element in range as a pivot
// to search through all the rest elements in range
int size = indTo - indFrom + 1;
... | fix inconsistent name | fix inconsistent name
| C++ | mit | Javran/leetcode,Javran/leetcode,Javran/leetcode,Javran/leetcode,Javran/leetcode,Javran/leetcode,Javran/leetcode,Javran/leetcode,Javran/leetcode |
f1e473589b53497002f3226aaa175fe9fb39ffdb | tests/factor.cpp | tests/factor.cpp | //
// factor.cpp
// tests
//
// Created by Alexandre Martin on 12/02/2016.
// Copyright © 2016 scalexm. All rights reserved.
//
#include "../solver/solver.hpp"
#include <cmath>
#include <cassert>
#include <catch/catch.hpp>
#include <random>
cnf encode(const std::vector<int> & bits, long long int n) {
auto l =... | //
// factor.cpp
// tests
//
// Created by Alexandre Martin on 12/02/2016.
// Copyright © 2016 scalexm. All rights reserved.
//
#include "../solver/solver.hpp"
#include <cmath>
#include <cassert>
#include <catch/catch.hpp>
#include <random>
cnf encode(const std::vector<int> & bits, long long int n) {
auto l =... | Fix indentation | Fix indentation
| C++ | mit | scalexm/sat_solver,scalexm/sat_solver,scalexm/sat_solver,scalexm/sat_solver |
6ed003229c24a1fa9b9cbc4a5163408ac934cb48 | src/TundraCore/Scene/DynamicComponent.cpp | src/TundraCore/Scene/DynamicComponent.cpp | // For conditions of distribution and use, see copyright notice in LICENSE
#include "StableHeaders.h"
#include "DynamicComponent.h"
#include "SceneAPI.h"
#include "Entity.h"
#include "Scene.h"
#include "LoggingFunctions.h"
#include <kNet/DataSerializer.h>
#include <kNet/DataDeserializer.h>
#include <Urho3D/Resource... | // For conditions of distribution and use, see copyright notice in LICENSE
#include "StableHeaders.h"
#include "DynamicComponent.h"
#include "SceneAPI.h"
#include "Entity.h"
#include "Scene.h"
#include "LoggingFunctions.h"
#include <kNet/DataSerializer.h>
#include <kNet/DataDeserializer.h>
#include <Urho3D/Resource... | Fix >= VS2012 build. | Fix >= VS2012 build.
| C++ | apache-2.0 | realXtend/tundra-urho3d,realXtend/tundra-urho3d,realXtend/tundra-urho3d,realXtend/tundra-urho3d,realXtend/tundra-urho3d |
3730e480ec22a41288c5a8432eab7cde898cfa2f | src/farmbot_arduino_controller.cpp | src/farmbot_arduino_controller.cpp | // Do not remove the include below
#include "farmbot_arduino_controller.h"
#include "pins.h"
#include "Config.h"
#include "StepperControl.h"
//#include "ServoControl.h"
#include "PinGuard.h"
#include "TimerOne.h"
static char commandEndChar = 0x0A;
static GCodeProcessor* gCodeProcessor = new GCodeProcessor();
unsigned... | // Do not remove the include below
#include "farmbot_arduino_controller.h"
#include "pins.h"
#include "Config.h"
#include "StepperControl.h"
//#include "ServoControl.h"
#include "PinGuard.h"
#include "TimerOne.h"
static char commandEndChar = 0x0A;
static GCodeProcessor* gCodeProcessor = new GCodeProcessor();
unsigned... | add pullup for limit switches | add pullup for limit switches
| C++ | mit | TimEvWw/farmbot-arduino-controller,FarmBot/farmbot-arduino-controller,TimEvWw/farmbot-arduino-controller,FarmBot/farmbot-arduino-firmware,FarmBot/farmbot-arduino-firmware,FarmBot/farmbot-arduino-controller |
177e372c076cb225206c6d8ebb7c15a7802fb0ad | test/sql/optimizer_sql_test.cpp | test/sql/optimizer_sql_test.cpp | //===----------------------------------------------------------------------===//
//
// Peloton
//
// optimizer_sql_test.cpp
//
// Identification: test/sql/optimizer_sql_test.cpp
//
// Copyright (c) 2015-16, Carnegie Mellon University Database Group
//
//===---------------------------------------... | //===----------------------------------------------------------------------===//
//
// Peloton
//
// optimizer_sql_test.cpp
//
// Identification: test/sql/optimizer_sql_test.cpp
//
// Copyright (c) 2015-16, Carnegie Mellon University Database Group
//
//===---------------------------------------... | Add test for DISTINCT satified by GROUP BY | Add test for DISTINCT satified by GROUP BY
| C++ | apache-2.0 | AllisonWang/peloton,apavlo/peloton,AllisonWang/peloton,apavlo/peloton,AllisonWang/peloton,vittvolt/peloton,malin1993ml/peloton,AngLi-Leon/peloton,seojungmin/peloton,cmu-db/peloton,malin1993ml/peloton,haojin2/peloton,seojungmin/peloton,PauloAmora/peloton,prashasthip/peloton,malin1993ml/peloton,apavlo/peloton,PauloAmora/... |
b99307e1af98cd1ea28ee9ea29b06ec2604696da | src/jnc_rt/jnc_rt_ExceptionMgr.cpp | src/jnc_rt/jnc_rt_ExceptionMgr.cpp | //..............................................................................
//
// This file is part of the Jancy toolkit.
//
// Jancy is distributed under the MIT license.
// For details see accompanying license.txt file,
// the public copy of which is also available at:
// http://tibbo.com/downloads/archive/... | //..............................................................................
//
// This file is part of the Jancy toolkit.
//
// Jancy is distributed under the MIT license.
// For details see accompanying license.txt file,
// the public copy of which is also available at:
// http://tibbo.com/downloads/archive/... | enable exception-handling (was disabled for testing) | [jnc_rt] enable exception-handling (was disabled for testing)
| C++ | mit | vovkos/jancy,vovkos/jancy,vovkos/jancy,vovkos/jancy,vovkos/jancy |
8a36055bc0f96258e006475f33ecff29ab7caee0 | src/kudu/consensus/time_manager.cc | src/kudu/consensus/time_manager.cc | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | fix last-heard-from-leader in error message | [consensus] fix last-heard-from-leader in error message
Fixed the last-heard-from-leader reported time in error message
from TimeManager::AssignTimestamp() when in NON_LEADER mode.
Change-Id: Ic7afdd411f6b23eb690304cf3c8e588e5f08869c
Reviewed-on: http://gerrit.cloudera.org:8080/14952
Tested-by: Alexey Serbin <864f6b8... | C++ | apache-2.0 | helifu/kudu,helifu/kudu,helifu/kudu,helifu/kudu,helifu/kudu,helifu/kudu,helifu/kudu,helifu/kudu,helifu/kudu |
bd7d5de1a49bfc41fd2a58414b9c4f5702bdb143 | tests/MemoryLeakWarningTest.cpp | tests/MemoryLeakWarningTest.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 ignored test | Fix ignored test
| C++ | bsd-3-clause | PaulBussmann/cpputest,KisImre/cpputest,devMichaelJones/cpputest,maxilai/cpputest,basvodde/cpputest,basvodde/cpputest,arstrube/cpputest,asgeroverby/cpputest,arstrube/cpputest,devMichaelJones/cpputest,bithium/cpputest,dawid-aurobit/cpputest,asgeroverby/cpputest,bithium/cpputest,maxilai/cpputest,dawid-aurobit/cpputest,che... |
2a60229575c7ef7607b63415d96aa27065fe7404 | src/actionlisteditor.cpp | src/actionlisteditor.cpp | /* This file is part of Zanshin Todo.
Copyright 2008-2009 Kevin Ottens <ervin@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of
the License or (at your opti... | /* This file is part of Zanshin Todo.
Copyright 2008-2009 Kevin Ottens <ervin@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of
the License or (at your opti... | Use the newly introduced QuickSelectDialog. | Use the newly introduced QuickSelectDialog.
| C++ | lgpl-2.1 | kolab-groupware/zanshin,kolab-groupware/zanshin,sandsmark/zanshin,kolab-groupware/zanshin,sandsmark/zanshin,sandsmark/zanshin |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.