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 |
|---|---|---|---|---|---|---|---|---|---|
a922cf7677993abd77ed92313b57afd61bce9281 | tools/transform_point_cloud.cpp | tools/transform_point_cloud.cpp | /*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2011-2012, Willow Garage, Inc.
* Copyright (c) 2012-, Open Perception, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, ar... | /*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2011-2012, Willow Garage, Inc.
* Copyright (c) 2012-, Open Perception, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, ar... | Fix error in print info of transform point cloud. | Fix error in print info of transform point cloud.
| C++ | bsd-3-clause | ipa-rmb/pcl,stefanbuettner/pcl,damienjadeduff/pcl,ipa-rmb/pcl,ipa-rmb/pcl,lebronzhang/pcl,lebronzhang/pcl,drmateo/pcl,damienjadeduff/pcl,drmateo/pcl,drmateo/pcl,lebronzhang/pcl,ipa-rmb/pcl,drmateo/pcl,stefanbuettner/pcl,damienjadeduff/pcl,ipa-rmb/pcl,stefanbuettner/pcl,lebronzhang/pcl,stefanbuettner/pcl,drmateo/pcl,dam... |
300a961704d943ce8fa956632fd894122af58345 | elsa/in/k0005a.cc | elsa/in/k0005a.cc | // declaring variables and member functions with class name
// originally found in package bombermaze
struct S1 {
int S1::varName;
};
struct S2 {
int S2::funcName() {}
};
struct otherS { int funcName(); };
struct S3 {
//ERROR(1): int otherS::funcName() {}
};
| // declaring variables and member functions with class name
// originally found in package bombermaze
struct S1 {
int S1::varName;
};
struct S2 {
int S2::funcName() {}
};
struct otherS { int funcName(); };
struct S3 {
//ERROR(1): int otherS::funcName() {}
};
template <typename T>
struct S4 {
int S... | Add template version | Add template version
| C++ | bsd-3-clause | angavrilov/olmar,angavrilov/olmar,angavrilov/olmar,angavrilov/olmar |
89ac8c00b45569146e3c7cd68c5c0981617610e5 | akonadi/clients/akonadi/listcommand.cpp | akonadi/clients/akonadi/listcommand.cpp | /*
This file is part of Akonadi.
Copyright (c) 2006 Cornelius Schumacher <schumacher@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
... | /*
This file is part of Akonadi.
Copyright (c) 2006 Cornelius Schumacher <schumacher@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
... | fix output, some type errors would have been helpful here... | fix output, some type errors would have been helpful here...
svn path=/trunk/KDE/kdepim/; revision=602245
| C++ | lgpl-2.1 | lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi |
b2761ea7fb7cc90079d8d313a41b9bf031c4add1 | grune-json/grammar.cpp | grune-json/grammar.cpp | #include "grune-json/grune-json.hpp"
#include "grune/grammar.hpp"
using namespace grune;
json11::Json grune::to_json(const grammar& value)
{
return { };
}
bool grune::from_json(const json11::Json& js, grammar& )
{
return false;
}
| #include "grune-json/grune-json.hpp"
#include "grune/grammar.hpp"
using namespace grune;
using namespace json11;
Json grune::to_json(const grammar& value)
{
return Json::object {
{ "non_terminals", value.non_terminals() },
{ "terminals", value.terminals() },
{ "rules", value.productions()... | Add grammar serialization. | Add grammar serialization.
| C++ | mit | Fifty-Nine/grune |
d603886a08e68b25ceffa8ffcc334b41f60718ea | Library/Sources/Stroika/Foundation/Database/SQLite.cpp | Library/Sources/Stroika/Foundation/Database/SQLite.cpp | /*
* Copyright(c) Sophist Solutions, Inc. 1990-2016. All rights reserved
*/
#include "../StroikaPreComp.h"
#include "../Characters/Format.h"
#include "../Debug/Trace.h"
#include "SQLite.h"
using namespace Stroika::Foundation;
using namespace Characters;
using namespace Debug;
using na... | /*
* Copyright(c) Sophist Solutions, Inc. 1990-2016. All rights reserved
*/
#include "../StroikaPreComp.h"
#include "../Characters/Format.h"
#include "../Debug/Trace.h"
#include "SQLite.h"
using namespace Stroika::Foundation;
using namespace Characters;
using namespace Debug;
using na... | Support BLOB (untested) in SQLite wrapper | Support BLOB (untested) in SQLite wrapper
| C++ | mit | SophistSolutions/Stroika,SophistSolutions/Stroika,SophistSolutions/Stroika,SophistSolutions/Stroika,SophistSolutions/Stroika |
a661ccf6ae539dd29fc45cf3e7fbf92003a25e56 | include/target/linux/syscalls/io.cc | include/target/linux/syscalls/io.cc | #ifndef SYSCALL_IO_H_
#define SYSCALL_IO_H_
#include <stdbool.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/select.h>
#include <fcntl.h>
#include <poll.h>
#include <unistd.h>
#include <errno.h>
#define stdin 0
#define stdout 1
#define stderr 2
struct linux_dirent {
unsigned long d_ino;
unsi... | #ifndef SYSCALL_IO_H_
#define SYSCALL_IO_H_
#include <stdbool.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/select.h>
#include <fcntl.h>
#include <poll.h>
#include <unistd.h>
#include <errno.h>
struct linux_dirent {
unsigned long d_ino;
unsigned long d_off;
unsigned short d_reclen;
... | remove unused defines | linux/syscalls/io: remove unused defines
| C++ | mit | gdelugre/shell-factory,gdelugre/shell-factory,gdelugre/shell-factory |
ef8ba75194cfcd3838c8fedbcb327e2478a0982d | include/target/posix/pico/socket.cc | include/target/posix/pico/socket.cc | #ifndef POSIX_PICO_SOCKET_H_
#define POSIX_PICO_SOCKET_H_
#include <sys/socket.h>
#include <sys/un.h>
namespace Pico {
namespace Network {
template <AddressType>
struct Address;
template <>
struct Address<AddressType::UNIX>
{
char *path;
};
u... | #ifndef POSIX_PICO_SOCKET_H_
#define POSIX_PICO_SOCKET_H_
#include <sys/socket.h>
#include <sys/un.h>
namespace Pico {
namespace Network {
template <AddressType>
struct Address;
template <>
struct Address<AddressType::UNIX>
{
char *path;
};
u... | remove static_assert | posix/pico: remove static_assert
| C++ | mit | gdelugre/shell-factory,gdelugre/shell-factory,gdelugre/shell-factory |
d72401262ccbea98610bf56c5fa4f5b22fe3ced2 | kernel/src/bs_kernel_ston.cpp | kernel/src/bs_kernel_ston.cpp | // This file is part of BlueSky
//
// BlueSky 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) any later version.
//
// BlueSky is distributed ... | // This file is part of BlueSky
//
// BlueSky 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) any later version.
//
// BlueSky is distributed ... | bring back changes to kernel ston, but don't register cleanup function at Python interpreter exit | KERNEL: bring back changes to kernel ston, but don't register cleanup
function at Python interpreter exit
Causing problems in Windows
| C++ | mpl-2.0 | uentity/bluesky,uentity/bluesky,uentity/bluesky,uentity/bluesky,uentity/bluesky |
46baed916455aec73435891f81f80ed988aeeaf9 | kernel/src/python/py_node.cpp | kernel/src/python/py_node.cpp | /// @file
/// @author uentity
/// @date 22.04.2019
/// @brief BS node Python bindings
/// @copyright
/// This Source Code Form is subject to the terms of the Mozilla Public License,
/// v. 2.0. If a copy of the MPL was not distributed with this file,
/// You can obtain one at https://mozilla.org/MPL/2.0/
#include <bs/... | /// @file
/// @author uentity
/// @date 22.04.2019
/// @brief BS node Python bindings
/// @copyright
/// This Source Code Form is subject to the terms of the Mozilla Public License,
/// v. 2.0. If a copy of the MPL was not distributed with this file,
/// You can obtain one at https://mozilla.org/MPL/2.0/
#include <bs/... | update bindings to be in line with C++ `node` class | python/node: update bindings to be in line with C++ `node` class
Remove binded overloads with key-related postfixes `find_name()`,
`find_oid()`, etc.
| C++ | mpl-2.0 | uentity/blue-sky-re,uentity/blue-sky-re,uentity/blue-sky-re |
f9d9770a41b219f15c9dd46bd83cbf3d5b05bd2f | src/webextension.cc | src/webextension.cc | #include <dbus/dbus-glib.h>
#include <webkit2/webkit-web-extension.h>
#include <JavaScriptCore/JSContextRef.h>
#include <JavaScriptCore/JSStringRef.h>
#include <string.h>
#include "dbus.h"
#include "utils.h"
static GDBusConnection* connection;
static void dispatch_ignore_event(WebKitWebPage* page, gchar* eventName, c... | #include <dbus/dbus-glib.h>
#include <webkit2/webkit-web-extension.h>
#include <JavaScriptCore/JSContextRef.h>
#include <JavaScriptCore/JSStringRef.h>
#include <string.h>
#include "dbus.h"
#include "utils.h"
static GDBusConnection* connection;
static void dispatch_ignore_event(WebKitWebPage* page, gchar* eventName, c... | Revert "Remove event listener, plugs a leak" | Revert "Remove event listener, plugs a leak"
This reverts commit cb619567b74ed2403e4ef49f13901be53ac0464c.
| C++ | mit | kapouer/node-webkitgtk,kapouer/node-webkitgtk,kapouer/node-webkitgtk,kapouer/node-webkitgtk |
e8f3776c159283209fa68ae0646d4e1e6af22960 | cql3/sets.hh | cql3/sets.hh | /*
* 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 ... | /*
* 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 ... | make sets::value::_elements public | cql: make sets::value::_elements public
Users of a value will want to make use of it.
| C++ | agpl-3.0 | senseb/scylla,capturePointer/scylla,glommer/scylla,rluta/scylla,dwdm/scylla,scylladb/scylla,victorbriz/scylla,duarten/scylla,wildinto/scylla,eklitzke/scylla,stamhe/scylla,tempbottle/scylla,glommer/scylla,avikivity/scylla,rentongzhang/scylla,aruanruan/scylla,linearregression/scylla,scylladb/scylla,shaunstanislaus/scylla... |
62fe9d0bef2e763bd18cf6659aa37b02338780ce | src/collision.cpp | src/collision.cpp | #include "../includes/declarations.h"
//Function used to check collision with the balls. Attribute obstacle checks if the ball is the black or red.
bool checkCollision(int xp, int yp)
{
int xc, yc, r;
for (int i = 0; i < num_circles; i++)
{
xc = circles[i].x;
yc = circles[i].y;
r =... | #include "../includes/declarations.h"
//Function used to check collision with the balls. Attribute obstacle checks if the ball is the black or red.
bool checkCollision(int xp, int yp)
{
int xc, yc, r;
for (int i = 0; i < num_circles; i++)
{
xc = circles[i].x;
yc = circles[i].y;
r =... | Update collision.cpp | Update collision.cpp | C++ | mit | therealkbhat/OpenBlek,kbhat95/OpenBlek |
dfeea22c8e0a32e992f79c997e26cca106855dba | test/msgpack_decoder.cpp | test/msgpack_decoder.cpp | #include "inc/cxx/msgpack.hpp"
#include "test/catch.hpp"
#include "test/utils.hpp"
using namespace std::string_literals;
using namespace cxx::literals;
using namespace test::literals;
using msgpack = cxx::msgpack;
TEST_CASE("msgpack throws exception on unsupported tag")
{
REQUIRE_THROWS_AS(msgpack::decode("c7"_hex... | #include "inc/cxx/msgpack.hpp"
#include "test/catch.hpp"
#include "test/utils.hpp"
using namespace std::string_literals;
using namespace cxx::literals;
using namespace test::literals;
using msgpack = cxx::msgpack;
TEST_CASE("msgpack throws exception on unsupported tag")
{
REQUIRE_THROWS_AS(msgpack::decode("c7"_hex... | test for max array nesting | test for max array nesting
| C++ | mit | attugit/cxxjson,attugit/cxxjson,attugit/cxxjson |
4d3564809bf446ff3c44bd2a17a45c1a27c7dcb1 | src/community.cpp | src/community.cpp | #include "community.hpp"
#include "cut_tools.hpp"
#include "file_io.hpp"
#include "snap_tools.hpp"
#include "tensor_ops.hpp"
#include "Snap.h"
#include <iostream>
#include <stdexcept>
#include <vector>
CommDetection::CommDetection(Network& net, int num_comms, int algorithm, int cut_type,
std::string name) :
... | #include "community.hpp"
#include "cut_tools.hpp"
#include "file_io.hpp"
#include "snap_tools.hpp"
#include "tensor_ops.hpp"
#include "Snap.h"
#include <iostream>
#include <stdexcept>
#include <vector>
CommDetection::CommDetection(Network& net, int num_comms, int algorithm, int cut_type,
std::string name) :
... | quit early if total number of communities found. | quit early if total number of communities found.
| C++ | bsd-2-clause | arbenson/tensor-sc,Peratham/tensor-sc,Peratham/tensor-sc,Peratham/tensor-sc,arbenson/tensor-sc,arbenson/tensor-sc,arbenson/tensor-sc,Peratham/tensor-sc |
34b5e0ee363e12de57bd5b2ed54acf93e51000a8 | BalancingRobot/BalancingRobot/Main.cpp | BalancingRobot/BalancingRobot/Main.cpp | // Main.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "arduino.h"
#include "Gyroscope.h"
#include "Motors.h"
#include "Regulator.h"
#include "KeyboardController.h"
#define TICK_PER_SECOND 75
#define TICK_LENGTH_MICROSECONDS 1000000L / TICK_PER_SECOND
int _tmain(int argc, ... | // Main.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "arduino.h"
#include "Gyroscope.h"
#include "Motors.h"
#include "Regulator.h"
#include "KeyboardController.h"
#define TICK_PER_SECOND 75
#define TICK_LENGTH_MICROSECONDS 1000000L / TICK_PER_SECOND
int _tmain(int argc, ... | Fix typos | Fix typos
| C++ | mit | cazacov/IntelGalileo,cazacov/IntelGalileo,cazacov/IntelGalileo |
4ef281e227e02b15aaadf4508bc0326fabd3aba8 | PWG/DevNanoAOD/AliAnalysisTaskNanoAODnormalisation.cxx | PWG/DevNanoAOD/AliAnalysisTaskNanoAODnormalisation.cxx | #include "AliAnalysisTaskNanoAODnormalisation.h"
#include <AliAnalysisManager.h>
#include <AliAODInputHandler.h>
#include <AliESDtrackCuts.h>
#include <AliInputEventHandler.h>
#include <AliNanoFilterNormalisation.h>
#include <AliVEvent.h>
#include <TChain.h>
#include <TObject.h>
#include <algorithm>
#include <cmath>
... | #include "AliAnalysisTaskNanoAODnormalisation.h"
#include <AliAnalysisManager.h>
#include <AliAODInputHandler.h>
#include <AliESDtrackCuts.h>
#include <AliInputEventHandler.h>
#include <AliNanoFilterNormalisation.h>
#include <AliVEvent.h>
#include <TChain.h>
#include <TObject.h>
#include <algorithm>
#include <cmath>
... | Use continue, such that PostData is correctly called | Use continue, such that PostData is correctly called
| C++ | bsd-3-clause | fbellini/AliPhysics,fbellini/AliPhysics,mpuccio/AliPhysics,sebaleh/AliPhysics,pbuehler/AliPhysics,lcunquei/AliPhysics,fcolamar/AliPhysics,lcunquei/AliPhysics,fcolamar/AliPhysics,hzanoli/AliPhysics,sebaleh/AliPhysics,carstooon/AliPhysics,dmuhlhei/AliPhysics,victor-gonzalez/AliPhysics,rbailhac/AliPhysics,lcunquei/AliPhys... |
ac5000625fbbe1c15664f7e2e4ba26d3378f30f7 | include/comm/buffer.hpp | include/comm/buffer.hpp | /*
* Copyright 2015 C. Brett Witherspoon
*/
#ifndef COMM_BUFFER_HPP_
#define COMM_BUFFER_HPP_
#include <atomic> // for std::atomic
#include <cstddef> // for std::size_t
#include <limits> // for std::numeric_limits
#include <memory> // for std::shared_ptr
namespace comm
{
namespace buffer
{
//! A class for buff... | /*
* Copyright 2015 C. Brett Witherspoon
*/
#ifndef COMM_BUFFER_HPP_
#define COMM_BUFFER_HPP_
#include <atomic> // for std::atomic
#include <cstddef> // for std::size_t
#include <limits> // for std::numeric_limits
#include <memory> // for std::shared_ptr
namespace comm
{
namespace buffer
{
//! A class for buff... | put friend declarations under private specifier | buffer: put friend declarations under private specifier
| C++ | isc | bwitherspoon/signum |
d58ab2f034685f3810c4503c9485dd985c4a6803 | contrib/backends/nntpchan-daemon/libnntpchan/kqueue.hpp | contrib/backends/nntpchan-daemon/libnntpchan/kqueue.hpp | #include <nntpchan/event.hpp>
#include <sys/types.h>
#include <sys/event.h>
#include <cstring>
#include <errno.h>
namespace nntpchan
{
namespace ev
{
template<size_t bufsz>
struct KqueueLoop : public Loop
{
int kfd;
size_t conns;
char readbuf[bufsz];
KqueueLoop() : kfd(... | #include <nntpchan/event.hpp>
#include <sys/types.h>
#include <sys/event.h>
#include <iostream>
#include <cstring>
#include <errno.h>
namespace nntpchan
{
namespace ev
{
template<size_t bufsz>
struct KqueueLoop : public Loop
{
int kfd;
size_t conns;
char readbuf[bufsz];
... | correct includes | correct includes
| C++ | mit | majestrate/nntpchan,majestrate/nntpchan,majestrate/nntpchan,majestrate/nntpchan,majestrate/nntpchan,majestrate/nntpchan,majestrate/nntpchan |
9d1e65c76756fb08d3e03c879101f9f7ab3f1d5f | RenderSystems/GLES2/src/OgreGLES2FrameBufferObject.cpp | RenderSystems/GLES2/src/OgreGLES2FrameBufferObject.cpp | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person ... | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person ... | allow multisampled FBOs if supported | GLES2: allow multisampled FBOs if supported | C++ | mit | paroj/ogre,paroj/ogre,OGRECave/ogre,paroj/ogre,OGRECave/ogre,OGRECave/ogre,paroj/ogre,OGRECave/ogre,paroj/ogre,OGRECave/ogre |
7f0b877b35747fbfada3c28efadd61df2f62f196 | include/libtorrent/upnp.hpp | include/libtorrent/upnp.hpp | /*
Copyright (c) 2007, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the f... | /*
Copyright (c) 2007, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the f... | set default lease duration to 0 for UPnP (permanent lease) | set default lease duration to 0 for UPnP (permanent lease) | C++ | bsd-3-clause | mildred/rasterbar-libtorrent,mildred/rasterbar-libtorrent,mrmichalis/libtorrent-code,mildred/rasterbar-libtorrent,mrmichalis/libtorrent-code,mildred/rasterbar-libtorrent,mrmichalis/libtorrent-code,mildred/rasterbar-libtorrent,mildred/rasterbar-libtorrent,mrmichalis/libtorrent-code,mrmichalis/libtorrent-code,mrmichalis/... |
16e09ea01ccac0dd51c0242a8cf48df3bc120825 | src/Mod/Part/App/BRepOffsetAPI_MakePipeShellPyImp.cpp | src/Mod/Part/App/BRepOffsetAPI_MakePipeShellPyImp.cpp | /***************************************************************************
* Copyright (c) 2012 Werner Mayer <wmayer[at]users.sourceforge.net> *
* *
* This file is part of the FreeCAD CAx development system. *
* ... | /***************************************************************************
* Copyright (c) 2012 Werner Mayer <wmayer[at]users.sourceforge.net> *
* *
* This file is part of the FreeCAD CAx development system. *
* ... | fix warning of unused variable | fix warning of unused variable
| C++ | lgpl-2.1 | Fat-Zer/FreeCAD_sf_master,Fat-Zer/FreeCAD_sf_master,Fat-Zer/FreeCAD_sf_master,Fat-Zer/FreeCAD_sf_master,Fat-Zer/FreeCAD_sf_master |
b237656a19f5334183ed934393ae65130c129456 | glc_openglexception.cpp | glc_openglexception.cpp | /****************************************************************************
This file is part of the GLC-lib library.
Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net)
http://glc-lib.sourceforge.net
GLC-lib is free software; you can redistribute it and/or modify
it under the terms of the GN... | /****************************************************************************
This file is part of the GLC-lib library.
Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net)
http://glc-lib.sourceforge.net
GLC-lib is free software; you can redistribute it and/or modify
it under the terms of the GN... | add new OpenGL error description | add new OpenGL error description
| C++ | lgpl-2.1 | 3drepo/GLC_lib |
5638dac889bddb16420d8321067c783438a5deaf | include/signum/math.hpp | include/signum/math.hpp | /*
* Copyright 2015, 2016 C. Brett Witherspoon
*
* This file is part of the signum library
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
... | /*
* Copyright 2015-2018 C. Brett Witherspoon
*
* This file is part of the signum library
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
*... | add ispow2 | math: add ispow2
| C++ | isc | bwitherspoon/signum |
861d87d5526a25aef49d8acc99ba5a8ee12a8337 | include/svx/svddrag.hxx | include/svx/svddrag.hxx | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozil... | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozil... | Drop unused "reserve" fields | Drop unused "reserve" fields
Probably a relic from the past, when people tried to avoid changing public
headers incompatibly to avoid causing recompilations for their
colleagues... We are long past such concerns. The talk about "extensions" in
the comment is most likely obsolete.
Change-Id: If90ca02685bf82ed529becb71... | C++ | mpl-2.0 | JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core |
36a493b69167e3d5babb218a5bdbad25667e4620 | includes/gcl/functional.hpp | includes/gcl/functional.hpp | #pragma once
#include <utility>
namespace gcl::functional
{
template <class... Ts>
struct overload : Ts... {
using Ts::operator()...;
using bases_types = std::tuple<Ts...>; // allow operator() function_traits
};
template <class... Ts>
overload(Ts...) -> overload<Ts...>; // not requ... | #pragma once
#include <utility>
namespace gcl::functional
{
template <class... Ts>
struct overload : Ts... {
using Ts::operator()...;
using bases_types = std::tuple<Ts...>; // allow operator() function_traits
};
template <class... Ts>
overload(Ts...) -> overload<Ts...>; // not requ... | add type_traits : is_overload, overload_arguments | [functional] add type_traits : is_overload, overload_arguments
| C++ | apache-2.0 | GuillaumeDua/GCL_CPP |
a7d5a0d67f08d9960ba6b68a8022b7b82d6f5604 | molequeue/jobitemmodel.cpp | molequeue/jobitemmodel.cpp | /******************************************************************************
This source file is part of the MoleQueue project.
Copyright 2012 Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, software
distr... | /******************************************************************************
This source file is part of the MoleQueue project.
Copyright 2012 Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, software
distr... | Fix sorting in job table. | Fix sorting in job table.
Return variant wrapped integers where appropriate, rather
than converting to strings. This keeps the sorting proxy
model from doing a lexical sort.
Change-Id: I2a6083afeeb171b3899f69bf799e2441bb5e1460
| C++ | bsd-3-clause | OpenChemistry/molequeue,OpenChemistry/molequeue,OpenChemistry/molequeue |
5a2eb26fc8a3f2c931b672808ee3d7d0a0d7686f | test/unit/math/mix/prob/normal_test.cpp | test/unit/math/mix/prob/normal_test.cpp | #include <stan/math/mix.hpp>
#include <gtest/gtest.h>
#include <test/unit/math/rev/fun/util.hpp>
#include <vector>
std::vector<double> test_fun(double y, double mu, double sigma) {
using stan::math::normal_log;
using stan::math::var;
var y_var = y;
var mu_var = mu;
var sigma_var = sigma;
std::vector<var> ... | #include <stan/math/mix.hpp>
#include <test/unit/math/test_ad.hpp>
TEST(mathMixScalFun, normal_lpdf) {
auto f = [](const double mu, const double sigma) {
return [=](const auto& y) { return stan::math::normal_lpdf(y, mu, sigma); };
};
stan::test::expect_ad(f(0, 1), -2.3);
stan::test::expect_ad(f(0, 1), 0.0... | Convert test to expect_ad | Convert test to expect_ad
| C++ | bsd-3-clause | stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math |
7f86ed5b37d83a96e6ff2af40d104a4734889e55 | scripts/perfanalysis.cpp | scripts/perfanalysis.cpp | // Compile with
// g++ perfanalysis.cpp -o perfanalyis -std=c++14 -Wall -O3
#include <algorithm>
#include <iostream>
#include <regex>
#include <sstream>
#include <stdexcept>
#include <string>
#include <unordered_map>
#include <vector>
#include <memory>
using namespace std;
struct Event {
static const regex re;
... | // Compile with
// g++ perfanalysis.cpp -o perfanalyis -std=c++14 -Wall -O3
#include <algorithm>
#include <cstring>
#include <iostream>
#include <memory>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
struct StrTok {
string& s;
size_t pos;
bool done;
void advance() {
... | Speed up perfanalysis and add statistics. | Speed up perfanalysis and add statistics.
| C++ | apache-2.0 | joerg84/arangodb,arangodb/arangodb,fceller/arangodb,hkernbach/arangodb,hkernbach/arangodb,wiltonlazary/arangodb,wiltonlazary/arangodb,baslr/ArangoDB,baslr/ArangoDB,arangodb/arangodb,graetzer/arangodb,hkernbach/arangodb,baslr/ArangoDB,hkernbach/arangodb,graetzer/arangodb,baslr/ArangoDB,Simran-B/arangodb,fceller/arangodb... |
20a58a5a8aa06ff79d6ed8dde5f3c47ffb39d138 | test/test_restclient.cpp | test/test_restclient.cpp | #include "restclient.h"
#include <gtest/gtest.h>
#include <string>
class RestClientTest : public ::testing::Test
{
protected:
int foo;
std::string url;
std::string ctype;
std::string data;
RestClientTest()
{
}
virtual ~RestClientTest()
{
}
virtual void SetUp()
{
... | #include "restclient.h"
#include <gtest/gtest.h>
#include <string>
class RestClientTest : public ::testing::Test
{
protected:
int foo;
std::string url;
std::string ctype;
std::string data;
RestClientTest()
{
}
virtual ~RestClientTest()
{
}
virtual void SetUp()
{
... | check correct return body | check correct return body | C++ | mit | 69736c616d/restclient-cpp,benjam60/restclient-cpp,embeddedmz/restclient-cpp,69736c616d/restclient-cpp,mrtazz/restclient-cpp,69736c616d/restclient-cpp,benjam60/restclient-cpp,seem-sky/restclient-cpp,seem-sky/restclient-cpp,seem-sky/restclient-cpp,mrtazz/restclient-cpp,seem-sky/restclient-cpp,69736c616d/restclient-cpp,be... |
35f4cab09f326d6b46ed6a65f098d8f333f2821b | test/unit/BoundsTest.cpp | test/unit/BoundsTest.cpp | /******************************************************************************
* Copyright (c) 2011, Michael P. Gerlek (mpg@flaxen.com)
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following
* conditions are met:
*
* ... | /******************************************************************************
* Copyright (c) 2011, Michael P. Gerlek (mpg@flaxen.com)
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following
* conditions are met:
*
* ... | build fix | build fix
| C++ | bsd-3-clause | radiantbluetechnologies/PDAL,mtCarto/PDAL,mpgerlek/PDAL-old,Sciumo/PDAL,Sciumo/PDAL,verma/PDAL,verma/PDAL,verma/PDAL,jwomeara/PDAL,lucadelu/PDAL,jwomeara/PDAL,mtCarto/PDAL,jwomeara/PDAL,verma/PDAL,Sciumo/PDAL,lucadelu/PDAL,mpgerlek/PDAL-old,boundlessgeo/PDAL,radiantbluetechnologies/PDAL,verma/PDAL,mtCarto/PDAL,boundles... |
d876696dccecd9fcf466d09533fb2050349ec93c | sdk-remote/src/liburbi/urbi-launch.cc | sdk-remote/src/liburbi/urbi-launch.cc | /*
* Copyright (C) 2008-2011, Gostai S.A.S.
*
* This software is provided "as is" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
#include <string>
#include ... | /*
* Copyright (C) 2008-2011, Gostai S.A.S.
*
* This software is provided "as is" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
#include <string>
#include ... | Use predefined options. | Urbi.Launch: Use predefined options.
* sdk-remote/src/liburbi/urbi-launch.cc (arg_pfile): Remove, use
libport::opts::port_file instead.
| C++ | bsd-3-clause | urbiforge/urbi,aldebaran/urbi,aldebaran/urbi,aldebaran/urbi,aldebaran/urbi,aldebaran/urbi,aldebaran/urbi,urbiforge/urbi,urbiforge/urbi,aldebaran/urbi,urbiforge/urbi,urbiforge/urbi,urbiforge/urbi,urbiforge/urbi,aldebaran/urbi,urbiforge/urbi,urbiforge/urbi |
11d455a7c1e255ed0b510b3e3779bde305acbc08 | searchcore/src/apps/proton/proton.cpp | searchcore/src/apps/proton/proton.cpp | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/searchcore/proton/server/proton.h>
#include <vespa/storage/storageserver/storagenode.h>
#include <vespa/metrics/metricmanager.h>
#include <vespa/vespalib/util/signalhandler.h>
#include <vespa/vespal... | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/searchcore/proton/server/proton.h>
#include <vespa/storage/storageserver/storagenode.h>
#include <vespa/metrics/metricmanager.h>
#include <vespa/vespalib/util/signalhandler.h>
#include <vespa/vespal... | Use a config builder. | Use a config builder.
| C++ | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa |
f20198b0883ae1744ddec08711a63b86e50bcb82 | drag2d/src/drag2d/view/ObjectVector.inl | drag2d/src/drag2d/view/ObjectVector.inl | #ifndef _DRAG2D_VECTOR_CONTAINER_INL_
#define _DRAG2D_VECTOR_CONTAINER_INL_
namespace d2d
{
template<class T>
inline ObjectVector<T>::ObjectVector()
{
}
template<class T>
inline ObjectVector<T>::~ObjectVector()
{
Clear();
}
template<class T>
void ObjectVector<T>::Traverse(IVisitor& visitor, bool order) const
{
Tr... | #ifndef _DRAG2D_VECTOR_CONTAINER_INL_
#define _DRAG2D_VECTOR_CONTAINER_INL_
namespace d2d
{
template<class T>
inline ObjectVector<T>::ObjectVector()
{
}
template<class T>
inline ObjectVector<T>::~ObjectVector()
{
Clear();
}
template<class T>
void ObjectVector<T>::Traverse(IVisitor& visitor, bool order) const
{
Tr... | order most | [FIXED] order most
Former-commit-id: 7b8ea9e0dd8c30246babe76358dd2ccb5434d929 | C++ | mit | xzrunner/easyeditor,xzrunner/easyeditor |
334ae5d516ef82c14d6952bdc882d1919f988b28 | src/dev/x86/pc.cc | src/dev/x86/pc.cc | /*
* Copyright (c) 2008 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) 2008 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, ... | Configure the IO APIC more. | X86: Configure the IO APIC more.
| C++ | bsd-3-clause | haowu4682/gem5,haowu4682/gem5,LingxiaoJIA/gem5,LingxiaoJIA/gem5,LingxiaoJIA/gem5,LingxiaoJIA/gem5,haowu4682/gem5,LingxiaoJIA/gem5,haowu4682/gem5,haowu4682/gem5,LingxiaoJIA/gem5,haowu4682/gem5,haowu4682/gem5,LingxiaoJIA/gem5,haowu4682/gem5,haowu4682/gem5 |
17b60a5d5ebbb8956da0fa0d31aee1557ddc7fa2 | src/kinect_tomato_searcher/src/tomato_broadcaster.cpp | src/kinect_tomato_searcher/src/tomato_broadcaster.cpp | #include <ros/ros.h>
#include <tf2_ros/transform_broadcaster.h>
#include <geometry_msgs/PointStamped.h>
#include <geometry_msgs/TransformStamped.h>
class TomatoBroadcaster {
tf2_ros::TransformBroadcaster broadcaster_;
geometry_msgs::TransformStamped transform_;
ros::Subscriber sub_;
public:
TomatoBroadcaster... | #include <ros/ros.h>
#include <tf2_ros/transform_broadcaster.h>
#include <geometry_msgs/PointStamped.h>
#include <geometry_msgs/TransformStamped.h>
class TomatoBroadcaster {
tf2_ros::TransformBroadcaster broadcaster_;
geometry_msgs::TransformStamped transform_;
ros::Subscriber sub_;
public:
TomatoBroadcaster... | Fix topic name | Fix topic name
| C++ | mit | agrirobo/arcsys2,agrirobo/arcsys2 |
46a3e3cdace278b323f8fdce5ec50da6506cdd19 | lib/afsm/include/afsm/fsm.hpp | lib/afsm/include/afsm/fsm.hpp | /*
* fsm.hpp
*
* Created on: 25 мая 2016 г.
* Author: sergey.fedorov
*/
#ifndef AFSM_FSM_HPP_
#define AFSM_FSM_HPP_
#include <afsm/detail/base_states.hpp>
#include <afsm/detail/observer.hpp>
#include <deque>
namespace afsm {
//----------------------------------------------------------------------------
/... | /*
* fsm.hpp
*
* Created on: 25 мая 2016 г.
* Author: sergey.fedorov
*/
#ifndef AFSM_FSM_HPP_
#define AFSM_FSM_HPP_
#include <afsm/detail/base_states.hpp>
#include <afsm/detail/observer.hpp>
#include <deque>
namespace afsm {
//----------------------------------------------------------------------------
/... | Replace atomic counter with atomic flag. | Replace atomic counter with atomic flag.
| C++ | artistic-2.0 | zmij/pg_async |
c86ba1b560057b3644eae919e1c1ddd18a291c78 | transforms/Apple/H264Encode.cpp | transforms/Apple/H264Encode.cpp | /*
Video Core
Copyright (C) 2014 James G. Hurley
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 of the License, or (at your option) any later version.
This libr... | /*
Video Core
Copyright (C) 2014 James G. Hurley
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 of the License, or (at your option) any later version.
This libr... | Add some more settings to the setup of VTCompressionSession - still need to download Xcode 6 to actually build a working encoder - doing that now\! | Add some more settings to the setup of VTCompressionSession - still need to download Xcode 6 to actually build a working encoder - doing that now\!
| C++ | mit | maxcampolo/VideoCore,0dayZh/VideoCore,Firekast-io/VideoCore,dourgulf/VideoCore,0dayZh/VideoCore,sigvef/VideoCore,bellchen/VideoCore,musicallyapp/VideoCore,ppamorim/VideoCore,musicallyapp/VideoCore,cristeahub/VideoCore,JustineKay/VideoCore,JALsnipe/VideoCore,dymx101/VideoCore,dourgulf/VideoCore,amikey/VideoCore,VladSumt... |
ff46b740582b622bb6e1384740c75a334dc40a59 | src/mlpack/methods/range_search/range_search_impl.hpp | src/mlpack/methods/range_search/range_search_impl.hpp | /**
* @file range_search_impl.hpp
* @author Ryan Curtin
*
* Implementation of the RangeSearch class.
*/
#ifndef __MLPACK_METHODS_RANGE_SEARCH_RANGE_SEARCH_IMPL_HPP
#define __MLPACK_METHODS_RANGE_SEARCH_RANGE_SEARCH_IMPL_HPP
// Just in case it hasn't been included.
#include "range_search.hpp"
// The rules for tra... | /**
* @file range_search_impl.hpp
* @author Ryan Curtin
*
* Implementation of the RangeSearch class.
*/
#ifndef __MLPACK_METHODS_RANGE_SEARCH_RANGE_SEARCH_IMPL_HPP
#define __MLPACK_METHODS_RANGE_SEARCH_RANGE_SEARCH_IMPL_HPP
// Just in case it hasn't been included.
#include "range_search.hpp"
// The rules for tra... | initialize tree pointer | initialize tree pointer
| C++ | bsd-3-clause | thirdwing/mlpack,bmswgnp/mlpack,trungda/mlpack,chenmoshushi/mlpack,erubboli/mlpack,BookChan/mlpack,thirdwing/mlpack,bmswgnp/mlpack,chenmoshushi/mlpack,Azizou/mlpack,ranjan1990/mlpack,ranjan1990/mlpack,thirdwing/mlpack,ersanliqiao/mlpack,theranger/mlpack,chenmoshushi/mlpack,darcyliu/mlpack,BookChan/mlpack,stereomatching... |
0ce51fc04ed2091a82825775be854d4741d00ba1 | validate.cpp | validate.cpp | /*
* Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use... | /*
* Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use... | fix index in print, add more progress msgs | fix index in print, add more progress msgs
| C++ | mit | NVIDIA/gdrcopy,NVIDIA/gdrcopy,NVIDIA/gdrcopy |
5da8b63a668e8266ba9a81dd661bfc690e9cf65b | dtool/src/cppparser/cppFunctionType.cxx | dtool/src/cppparser/cppFunctionType.cxx | /**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file cppFunctionType.cxx
* ... | /**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file cppFunctionType.cxx
* ... | fix formatting of typecast operator | cppparser: fix formatting of typecast operator
| C++ | bsd-3-clause | chandler14362/panda3d,chandler14362/panda3d,chandler14362/panda3d,chandler14362/panda3d,chandler14362/panda3d,chandler14362/panda3d,chandler14362/panda3d,chandler14362/panda3d,chandler14362/panda3d,chandler14362/panda3d |
aa7afe7a17e6574ecc42d9b97542763482d88806 | dev/sensor/htu21d/export/dev/sensor/htu21d.hpp | dev/sensor/htu21d/export/dev/sensor/htu21d.hpp | //!
//! \file
//! \brief Driver for HTU21D digital humidity sensor with temperature output
//! See, http://www.meas-spec.com/downloads/HTU21D.pdf
//!
#ifndef __DEV_SENSOR_HTU21D_HPP__
#define __DEV_SENSOR_HTU21D_HPP__
#include <ecl/err.hpp>
namespace ecl
{
namespace sensor
{
//! \brief Defines resolution modes fo... | //!
//! \file
//! \brief Driver for HTU21D digital humidity sensor with temperature output
//! See, http://www.meas-spec.com/downloads/HTU21D.pdf
//!
#ifndef __DEV_SENSOR_HTU21D_HPP__
#define __DEV_SENSOR_HTU21D_HPP__
#include <ecl/err.hpp>
namespace ecl
{
namespace sensor
{
//! \brief Defines resolution modes fo... | Fix temperature conversion formula | HTU21D: Fix temperature conversion formula | C++ | mpl-2.0 | forGGe/theCore,RostakaGmfun/theCore,RostakaGmfun/theCore,RostakaGmfun/theCore,forGGe/theCore,RostakaGmfun/theCore,forGGe/theCore,forGGe/theCore |
3a58fa5c99268594b5e8d6e4f4d216d4dfed3552 | Framework/Source/ThirdPersonCamera.cpp | Framework/Source/ThirdPersonCamera.cpp | //
// COMP 371 Assignment Framework
//
// Created by Nicolas Bergeron on 8/7/14.
//
// Copyright (c) 2014 Concordia University. All rights reserved.
//
#pragma once
#include "ThirdPersonCamera.h"
#include "EventManager.h"
#include <GLM/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <GLFW/glfw3.h>
#include... | //
// COMP 371 Assignment Framework
//
// Created by Nicolas Bergeron on 8/7/14.
//
// Copyright (c) 2014 Concordia University. All rights reserved.
//
#pragma once
#include "ThirdPersonCamera.h"
#include "EventManager.h"
#include <GLM/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <GLFW/glfw3.h>
#include... | Optimize zoom to incorporate upper and lower bounds | [Screen/View2] Optimize zoom to incorporate upper and lower bounds
| C++ | apache-2.0 | AjayAujla/Space-Shooter-5000,AjayAujla/Space-Shooter-5000,AjayAujla/Space-Shooter-5000,AjayAujla/Space-Shooter-5000,AjayAujla/Space-Shooter-5000,AjayAujla/Space-Shooter-5000,AjayAujla/Space-Shooter-5000,AjayAujla/Space-Shooter-5000 |
fe034a8d4b0685cc29e3cb4290da1e304b9eb347 | liboh/plugins/js/JSObjects/JSInvokableObject.cpp | liboh/plugins/js/JSObjects/JSInvokableObject.cpp | #include "JSInvokableObject.hpp"
#include "../JSObjectScript.hpp"
#include "JSFields.hpp"
#include "JSFunctionInvokable.hpp"
#include <cassert>
#include <vector>
namespace Sirikata
{
namespace JS
{
namespace JSInvokableObject
{
v8::Handle<v8::Value> invoke(const v8::Arguments& args)
{
/* Decode the args array and ... | #include "JSInvokableObject.hpp"
#include "../JSObjectScript.hpp"
#include "JSFields.hpp"
#include "JSFunctionInvokable.hpp"
#include <cassert>
#include <vector>
namespace Sirikata
{
namespace JS
{
namespace JSInvokableObject
{
v8::Handle<v8::Value> invoke(const v8::Arguments& args)
{
/* Decode the args array and ... | Move call to decodeJSInvokableObject out of assert statement so it will work in Release mode. | Move call to decodeJSInvokableObject out of assert statement so it will work in Release mode.
| C++ | bsd-3-clause | sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata |
538d214570edeba29763678cdf9fc9415da8b6ce | example/generate_image.cpp | example/generate_image.cpp | /*
* Copyright 2016 Nu-book 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 agreed to in writ... | /*
* Copyright 2016 Nu-book 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 agreed to in writ... | replace flushing std::endl with "\n" | generate_image: replace flushing std::endl with "\n"
| C++ | apache-2.0 | huycn/zxing-cpp,nu-book/zxing-cpp,nu-book/zxing-cpp,nu-book/zxing-cpp,nu-book/zxing-cpp,nu-book/zxing-cpp,huycn/zxing-cpp,huycn/zxing-cpp,huycn/zxing-cpp,huycn/zxing-cpp,nu-book/zxing-cpp,nu-book/zxing-cpp,huycn/zxing-cpp,huycn/zxing-cpp,huycn/zxing-cpp,nu-book/zxing-cpp |
c7652667b3bcf3fa99420a48083cc716606c1fdc | src/plugins/qmljsinspector/qmljspropertyinspector.cpp | src/plugins/qmljsinspector/qmljspropertyinspector.cpp | /**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** No Commercial Usage
**
** This file contains pre-release code and may not b... | /**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** No Commercial Usage
**
** This file contains pre-release code and may not b... | Remove unneeded header | QmlJSInspector: Remove unneeded header
Task-number: QTCREATORBUG-3554
| C++ | lgpl-2.1 | amyvmiwei/qt-creator,danimo/qt-creator,syntheticpp/qt-creator,sandsmark/qtcreator-minimap,amyvmiwei/qt-creator,bakaiadam/collaborative_qt_creator,maui-packages/qt-creator,ostash/qt-creator-i18n-uk,martyone/sailfish-qtcreator,bakaiadam/collaborative_qt_creator,richardmg/qtcreator,amyvmiwei/qt-creator,martyone/sailfish-q... |
f773a93813604f82e97e12453e2ce8824c6f36d8 | src/Application/OgreAssetEditorModule/OgreAssetEditorModule.cpp | src/Application/OgreAssetEditorModule/OgreAssetEditorModule.cpp | /**
* For conditions of distribution and use, see copyright notice in license.txt
*
* @file OgreAssetEditorModule.cpp
* @brief Provides editing and previewing tools for various asset types.
*/
#include "StableHeaders.h"
#include "DebugOperatorNew.h"
#include "OgreAssetEditorModule.h"
#include "OgreScriptEd... | /**
* For conditions of distribution and use, see copyright notice in license.txt
*
* @file OgreAssetEditorModule.cpp
* @brief Provides editing and previewing tools for various asset types.
*/
#include "StableHeaders.h"
#include "DebugOperatorNew.h"
#include "OgreAssetEditorModule.h"
#include "OgreScriptEd... | Disable usage of the new OgreMaterialEditor by default for material assets. Committed usage code accidentally. Ironing out last small bug fixes before "officially" enabling the new editor. | Disable usage of the new OgreMaterialEditor by default for material assets. Committed usage code accidentally. Ironing out last small bug fixes before "officially" enabling the new editor.
| C++ | apache-2.0 | pharos3d/tundra,realXtend/tundra,BogusCurry/tundra,BogusCurry/tundra,AlphaStaxLLC/tundra,realXtend/tundra,jesterKing/naali,BogusCurry/tundra,realXtend/tundra,pharos3d/tundra,AlphaStaxLLC/tundra,pharos3d/tundra,jesterKing/naali,AlphaStaxLLC/tundra,realXtend/tundra,pharos3d/tundra,realXtend/tundra,pharos3d/tundra,AlphaSt... |
e90eee544747c4475e8d067e2a232a0a625e1435 | tests/unit/classifier/svm/SVMOcas_unittest.cc | tests/unit/classifier/svm/SVMOcas_unittest.cc | #include <gtest/gtest.h>
#include <shogun/lib/config.h>
#include <shogun/classifier/svm/SVMOcas.h>
#include <shogun/evaluation/ContingencyTableEvaluation.h>
#include <shogun/features/DataGenerator.h>
#include <shogun/features/DenseFeatures.h>
#include "environments/LinearTestEnvironment.h"
using namespace shogun;
e... | #include <gtest/gtest.h>
#include <shogun/lib/config.h>
#include <shogun/classifier/svm/SVMOcas.h>
#include <shogun/evaluation/ContingencyTableEvaluation.h>
#include <shogun/features/DataGenerator.h>
#include <shogun/features/DenseFeatures.h>
#include "environments/LinearTestEnvironment.h"
using namespace shogun;
e... | fix segfault via adding missing SG_REF | fix segfault via adding missing SG_REF
| C++ | bsd-3-clause | shogun-toolbox/shogun,shogun-toolbox/shogun,lisitsyn/shogun,sorig/shogun,shogun-toolbox/shogun,karlnapf/shogun,geektoni/shogun,lisitsyn/shogun,besser82/shogun,geektoni/shogun,lambday/shogun,lisitsyn/shogun,shogun-toolbox/shogun,sorig/shogun,besser82/shogun,besser82/shogun,besser82/shogun,lambday/shogun,sorig/shogun,sor... |
991d1a5fec5c88d271ae48bac04ad9f63ec29cc9 | experimental/experimental/network/hex_dump.cpp | experimental/experimental/network/hex_dump.cpp | #include <cctype>
#include <cstddef>
#include <iomanip>
#include <iostream>
#include <network/hex_dump.h>
#include <string>
#include <utils/macros.h>
namespace experimental
{
void HexDump(const std::byte* iBuffer, std::size_t iLength)
{
constexpr const char HexCharacters[] = "0123456789abcdef";
... | #include <cctype>
#include <cstddef>
#include <iomanip>
#include <iostream>
#include <network/hex_dump.h>
#include <string>
#include <utils/macros.h>
namespace experimental
{
void HexDump(const std::byte* iBuffer, std::size_t iLength)
{
constexpr const char HexCharacters[] = "0123456789abcdef";
... | Update hex_dump.cpp | Update hex_dump.cpp | C++ | mit | Dllieu/experimental,Dllieu/cpp_benchmark,Dllieu/cpp_benchmark,Dllieu/experimental,Dllieu/cpp_benchmark |
101d3b94d54755ce3242c0145555badb71b3762e | himan-lib/source/s3.cpp | himan-lib/source/s3.cpp | #include "s3.h"
using namespace himan;
#ifdef HAVE_S3
#include "debug.h"
#include "timer.h"
#include "util.h"
#include <iostream>
#include <libs3.h>
#include <mutex>
#include <string.h> // memcpy
namespace
{
static std::once_flag oflag;
const char* access_key = 0;
const char* secret_key = 0;
const char* security_to... | #include "s3.h"
using namespace himan;
#ifdef HAVE_S3
#include "debug.h"
#include "timer.h"
#include "util.h"
#include <iostream>
#include <libs3.h>
#include <mutex>
#include <string.h> // memcpy
namespace
{
static std::once_flag oflag;
const char* access_key = 0;
const char* secret_key = 0;
const char* security_to... | Switch default s3 access protocol from http to https | Switch default s3 access protocol from http to https
Protocol can be changed with env variable S3_PROTOCOL
| C++ | mit | fmidev/himan,fmidev/himan,fmidev/himan |
ddcef129c07e22c3255789eca58120a4d7476b3d | Game/src/main.cpp | Game/src/main.cpp | #include "main.h"
/*
Copyright (C) 2016 AGC.
This program 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 option) any later version.
This program is distrib... | #include "main.h"
/*
Copyright (C) 2016 AGC.
This program 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 option) any later version.
This program is distrib... | Make a few formatting improvements in main.cpp | Make a few formatting improvements in main.cpp
| C++ | agpl-3.0 | nagakawa/x801,nagakawa/x801,nagakawa/x801,nagakawa/x801,nagakawa/x801 |
d4ef927502c34ce0b486a84db4a4184db6571dde | src/gl_widget.cpp | src/gl_widget.cpp | #include "gl_widget.hpp"
#include <QPainter>
#include <QPaintEngine>
#include <QOpenGLShaderProgram>
#include <QOpenGLTexture>
#include <QCoreApplication>
#include <QtGui/QMouseEvent>
#include <QtGui/QGuiApplication>
#include <cmath>
#include <iostream>
#include "game_window.hpp"
#include "constants.hp... | #include "gl_widget.hpp"
#include <QPainter>
#include <QPaintEngine>
#include <QOpenGLShaderProgram>
#include <QOpenGLTexture>
#include <QCoreApplication>
#include <QtGui/QMouseEvent>
#include <QtGui/QGuiApplication>
#include <cmath>
#include <iostream>
#include "game_window.hpp"
#include "constants.hp... | fix bug: add cast to float | fix bug: add cast to float
| C++ | mit | Chepik/SpaceInvaders |
18cf6b1bdd86a6167adcefb6cfdadc4777539a45 | src/grid/grid.cpp | src/grid/grid.cpp | /*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2012 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) 2012 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... | remove unneeded header | remove unneeded header
| C++ | lgpl-2.1 | tomhughes/python-mapnik,naturalatlas/mapnik,Uli1/mapnik,tomhughes/mapnik,zerebubuth/mapnik,kapouer/mapnik,strk/mapnik,Uli1/mapnik,pnorman/mapnik,pnorman/mapnik,sebastic/python-mapnik,sebastic/python-mapnik,yiqingj/work,whuaegeanse/mapnik,lightmare/mapnik,pramsey/mapnik,lightmare/mapnik,whuaegeanse/mapnik,davenquinn/pyt... |
6cdff99df35a058c0f9ae31b3260fed7ee574e48 | xs/src/libslic3r/SLAPrint.cpp | xs/src/libslic3r/SLAPrint.cpp | #include "SLAPrint.hpp"
#include "ClipperUtils.hpp"
#include "ExtrusionEntity.hpp"
#include "Fill/FillBase.hpp"
#include "Geometry.hpp"
#include "Surface.hpp"
#include <iostream>
#include <cstdio>
namespace Slic3r {
void
SLAPrint::slice()
{
TriangleMesh mesh = this->model->mesh();
mesh.repair();
// a... | #include "SLAPrint.hpp"
#include "ClipperUtils.hpp"
#include "ExtrusionEntity.hpp"
#include "Fill/FillBase.hpp"
#include "Geometry.hpp"
#include "Surface.hpp"
#include <iostream>
#include <cstdio>
namespace Slic3r {
void
SLAPrint::slice()
{
TriangleMesh mesh = this->model->mesh();
mesh.repair();
// a... | Apply print bounding box for SLAPrint infill | Apply print bounding box for SLAPrint infill
| C++ | agpl-3.0 | xoan/Slic3r,mcilhargey/Slic3r,pieis2pi/Slic3r,pieis2pi/Slic3r,platsch/Slic3r,curieos/Slic3r,curieos/Slic3r,mcilhargey/Slic3r,xoan/Slic3r,tmotl/Slic3r,platsch/Slic3r,lordofhyphens/Slic3r,mcilhargey/Slic3r,lordofhyphens/Slic3r,pieis2pi/Slic3r,tmotl/Slic3r,alexrj/Slic3r,mcilhargey/Slic3r,alexrj/Slic3r,mcilhargey/Slic3r,xo... |
a9043125bf29eb370ee10f9857366cf1cee642ee | sdlwindow.cpp | sdlwindow.cpp | #include <iostream>
#include <sstream>
#include "SDL.h"
#include "SDL_gfxPrimitives.h"
#include "SDL_ttf.h"
#include "sdlwindow.h"
#include "misc/fpscounter.h"
#include "controller/sdlcontroller.h"
#include "resources/imageresource.h"
#include "resources/stringfontresource.h"
namespace Zabbr {
/**
* Public const... | #include <iostream>
#include <sstream>
#include "SDL.h"
#include "SDL_gfxPrimitives.h"
#include "SDL_ttf.h"
#include "sdlwindow.h"
#include "misc/fpscounter.h"
#include "controller/sdlcontroller.h"
#include "resources/imageresource.h"
#include "resources/stringfontresource.h"
namespace Zabbr {
/**
* Public const... | Fix timing issue in gamecontroller | Fix timing issue in gamecontroller
| C++ | bsd-3-clause | nathansamson/zabbr |
26bc601272f7f89bd38991541ac711d8a66a1d5b | src/hext/rule.cpp | src/hext/rule.cpp | #include "hext/rule.h"
#include "hext/match-tree.h"
namespace hext {
rule::rule(
const std::string& html_tag_name,
bool direct_descendant,
int max_capture_limit,
std::vector<attribute>&& attrs
)
: children(),
attributes(std::move(attrs)),
tag(html_tag_name),
is_direct_desc(false),
cap_limit(max_capt... | #include "hext/rule.h"
#include "hext/match-tree.h"
namespace hext {
rule::rule(
const std::string& html_tag_name,
bool direct_descendant,
int max_capture_limit,
std::vector<attribute>&& attrs
)
: children(),
attributes(std::move(attrs)),
tag(html_tag_name),
is_direct_desc(direct_descendant),
cap_li... | fix direct_descendant property not being set | fix direct_descendant property not being set
| C++ | apache-2.0 | thomastrapp/hext,thomastrapp/hext,thomastrapp/hext,thomastrapp/hext,thomastrapp/hext,thomastrapp/hext,thomastrapp/hext,thomastrapp/hext |
fd57696ea5b9328afecbc38d33ec9caa867d3e1e | examples/StandaloneModularDevice/Callbacks.cpp | examples/StandaloneModularDevice/Callbacks.cpp | // ----------------------------------------------------------------------------
// Callbacks.cpp
//
//
// Authors:
// Peter Polidoro peter@polidoro.io
// ----------------------------------------------------------------------------
#include "Callbacks.h"
namespace callbacks
{
// Callbacks must be non-blocking (avoid '... | // ----------------------------------------------------------------------------
// Callbacks.cpp
//
//
// Authors:
// Peter Polidoro peter@polidoro.io
// ----------------------------------------------------------------------------
#include "Callbacks.h"
namespace callbacks
{
ModularDevice::ModularServer& modular_serv... | Remove spurious comments | Remove spurious comments
| C++ | bsd-3-clause | JaneliaSciComp/arduino_standalone_interface,janelia-arduino/arduino_standalone_interface,peterpolidoro/arduino_standalone_interface |
c17a113eea230c21a1a8f4c4c086721ff59130da | folly/experimental/AsymmetricMemoryBarrier.cpp | folly/experimental/AsymmetricMemoryBarrier.cpp | /*
* Copyright 2016 Facebook, 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 agreed to... | /*
* Copyright 2016 Facebook, 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 agreed to... | Make the mprotect variant of asymmetricHeavyBarrier work when mlock fails | Make the mprotect variant of asymmetricHeavyBarrier work when mlock fails
Summary: [Folly] Make the `mprotect` variant of `asymmetricHeavyBarrier` work when `mlock` fails.
Reviewed By: djwatson
Differential Revision: D3585948
fbshipit-source-id: c3a46884434b7f9da9caa9cf203573f9e3ce7444
| C++ | apache-2.0 | mqeizi/folly,Orvid/folly,rklabs/folly,facebook/folly,floxard/folly,mqeizi/folly,facebook/folly,rklabs/folly,floxard/folly,rklabs/folly,charsyam/folly,rklabs/folly,Orvid/folly,facebook/folly,facebook/folly,mqeizi/folly,charsyam/folly,Orvid/folly,mqeizi/folly,Orvid/folly,facebook/folly,mqeizi/folly,Orvid/folly,charsyam/f... |
580502a72c43ab2d9740192d1e95ea94db592746 | examples/platform/ameba/ota/OTAInitializer.cpp | examples/platform/ameba/ota/OTAInitializer.cpp | /*
*
* Copyright (c) 2022 Project CHIP Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | /*
*
* Copyright (c) 2022 Project CHIP Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | Remove user consent (#22661) | [OTA] Remove user consent (#22661)
- According to spec, RequestorCanConsent should be 0 if device do not support userconsent | C++ | apache-2.0 | project-chip/connectedhomeip,project-chip/connectedhomeip,project-chip/connectedhomeip,project-chip/connectedhomeip,project-chip/connectedhomeip,project-chip/connectedhomeip |
72c8140d6f5945924dfab7417a98f51b23f3424e | src/vnsw/agent/vrouter/ksync/linux/vnswif_listener.cc | src/vnsw/agent/vrouter/ksync/linux/vnswif_listener.cc | /*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#include <assert.h>
#include <bits/sockaddr.h>
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
#include <ifaddrs.h>
#include <base/logging.h>
#include <base/util.h>
#include <cmn/agent_cmn.h>
#include <init/agent_param.h>
#include <cfg/... | /*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#include <assert.h>
#include <bits/sockaddr.h>
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
#include <ifaddrs.h>
#include <base/logging.h>
#include <base/util.h>
#include <cmn/agent_cmn.h>
#include <init/agent_param.h>
#include <cfg/... | Fix vrouter netlink message logging parsing | Fix vrouter netlink message logging parsing
Change-Id: I21df216fce8e2cae50e47068445fd648549524a7
Closes-Bug: #1546671
| C++ | apache-2.0 | rombie/contrail-controller,rombie/contrail-controller,codilime/contrail-controller,codilime/contrail-controller,tcpcloud/contrail-controller,codilime/contrail-controller,tcpcloud/contrail-controller,nischalsheth/contrail-controller,nischalsheth/contrail-controller,nischalsheth/contrail-controller,codilime/contrail-cont... |
554b58db667329652042a9f9790f358cc4e1f93f | tests/fparser/autodiff.C | tests/fparser/autodiff.C | #include "libmesh/fparser_ad.hh"
// Ignore unused parameter warnings coming from cppuint headers
#include <libmesh/ignore_warnings.h>
#include <cppunit/extensions/HelperMacros.h>
#include <cppunit/TestCase.h>
#include <libmesh/restore_warnings.h>
#define VECTORMAPOBJECTTEST \
CPPUNIT_TEST( testC... | #include "libmesh/fparser_ad.hh"
// Ignore unused parameter warnings coming from cppuint headers
#include <libmesh/ignore_warnings.h>
#include <cppunit/extensions/HelperMacros.h>
#include <cppunit/TestCase.h>
#include <libmesh/restore_warnings.h>
class FParserAutodiffTest : public CppUnit::TestCase
{
public:
CPPUNI... | Add unit test (#463) | Add unit test (#463)
| C++ | lgpl-2.1 | jwpeterson/libmesh,coreymbryant/libmesh,roystgnr/libmesh,BalticPinguin/libmesh,dknez/libmesh,karpeev/libmesh,hrittich/libmesh,dknez/libmesh,pbauman/libmesh,jwpeterson/libmesh,libMesh/libmesh,pbauman/libmesh,aeslaughter/libmesh,90jrong/libmesh,coreymbryant/libmesh,libMesh/libmesh,dmcdougall/libmesh,giorgiobornia/libmesh... |
7fb7e5b07f70df3ffa92f150a18d7c53f017ae2a | generate/templates/partials/field_accessors.cc | generate/templates/partials/field_accessors.cc | {% each fields|fieldsInfo as field %}
{% if not field.ignore %}
NAN_GETTER({{ cppClassName }}::Get{{ field.cppFunctionName }}) {
NanScope();
{{ cppClassName }} *wrapper = ObjectWrap::Unwrap<{{ cppClassName }}>(args.This());
{% if field.isEnum %}
NanReturnValue(NanNew((int)wrapper->GetV... | {% each fields|fieldsInfo as field %}
{% if not field.ignore %}
NAN_GETTER({{ cppClassName }}::Get{{ field.cppFunctionName }}) {
NanScope();
{{ cppClassName }} *wrapper = ObjectWrap::Unwrap<{{ cppClassName }}>(args.This());
{% if field.isEnum %}
NanReturnValue(NanNew((int)wrapper->GetV... | Fix compile issue with latest nan | Fix compile issue with latest nan
| C++ | mit | cbargren/nodegit,tannewt/nodegit,dkoontz/nodegit,nodegit/nodegit,Gum-Joe/nodegit,dancali/nodegit,taylorzane/nodegit,dancali/nodegit,saper/nodegit,danawoodman/nodegit,dkoontz/nodegit,dancali/nodegit,srajko/nodegit,jmurzy/nodegit,KenanSulayman/nodegit,nodegit/nodegit,KenanSulayman/nodegit,danawoodman/nodegit,cwahbong/nod... |
e6f507096e62ccad9c10107ddaa91f2669425def | libcaf_core/test/read_ini.cpp | libcaf_core/test/read_ini.cpp | /******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... | /******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... | Fix check in INI unit test | Fix check in INI unit test
| C++ | bsd-3-clause | actor-framework/actor-framework,actor-framework/actor-framework,DavadDi/actor-framework,actor-framework/actor-framework,actor-framework/actor-framework,DavadDi/actor-framework,DavadDi/actor-framework,DavadDi/actor-framework |
27c7864085ccd71f0388ac3993ee09e062bd2ee2 | libs/platform/xlib/window.cpp | libs/platform/xlib/window.cpp |
#include "window.h"
#include <base/pointer.h>
#include <string.h>
#include <iostream>
#include <base/contract.h>
#include <base/scope_guard.h>
#include <stdexcept>
#include <gl/check.h>
namespace {
typedef GLXContext (*glXCreateContextAttribsARBProc)(Display*, GLXFBConfig, GLXContext, Bool, const int*);
const in... |
#include "window.h"
#include <base/pointer.h>
#include <string.h>
#include <iostream>
#include <base/contract.h>
#include <base/scope_guard.h>
#include <stdexcept>
#include <gl/check.h>
namespace {
typedef GLXContext (*glXCreateContextAttribsARBProc)(Display*, GLXFBConfig, GLXContext, Bool, const int*);
const in... | fix glx fb config on 10-bit display | fix glx fb config on 10-bit display
| C++ | mit | kdt3rd/gecko,kdt3rd/gecko,kdt3rd/gecko,kdt3rd/gecko |
b01a2265114cceeaa737d078046cb48451e1bf14 | src/main_help.cpp | src/main_help.cpp | // illarionserver - server for the game Illarion
// Copyright 2011 Illarion e.V.
//
// This file is part of illarionserver.
//
// illarionserver 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, e... | // illarionserver - server for the game Illarion
// Copyright 2011 Illarion e.V.
//
// This file is part of illarionserver.
//
// illarionserver 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, e... | Call std::terminate on SIGSEGV to generate core dump | Call std::terminate on SIGSEGV to generate core dump
| C++ | agpl-3.0 | Illarion-eV/Illarion-Server,Illarion-eV/Illarion-Server,Illarion-eV/Illarion-Server |
e6726994fed4a3049cba03139ee029dc96345bc9 | SFMLUtilities.cpp | SFMLUtilities.cpp | #include "SFMLUtilities.h"
#include <random>
#include <iostream>
namespace zmc
{
SFMLUtilities::SFMLUtilities()
{
}
sf::Vector2f SFMLUtilities::getCenterPosition(sf::Vector2u parentSize, sf::Sprite &sprite)
{
sf::Vector2f vector((int)parentSize.x / 2 - (sprite.getTexture()->getSize().x / 2) * sprite.getScale().x ... | #include "SFMLUtilities.h"
#include <random>
#include <iostream>
namespace zmc
{
SFMLUtilities::SFMLUtilities()
{
}
sf::Vector2f SFMLUtilities::getCenterPosition(sf::Vector2u parentSize, sf::Sprite &sprite)
{
sf::Vector2f vector((int)parentSize.x / 2 - (sprite.getTexture()->getSize().x / 2) * sprite.getScale().x ... | Add int casting | Add int casting
| C++ | unlicense | Furkanzmc/SFMLUtilities |
5fd92325ba2415f1b18c1ae5b3ae7df092471b84 | Shared/Engine.cpp | Shared/Engine.cpp | /**
@file Engine.cpp
Game scene flow.
<pre>
+---------------------------------------------------------------------------------------+
| |
| +--------------------------------+ ... | /**
@file Engine.cpp
Game scene flow.
<pre>
+---------------------------------------------------------------------------------------+
| |
| +--------------------------------+ ... | Add the code to log the scene transition. | Add the code to log the scene transition.
| C++ | mit | tn-mai/NDKOpenGLES2App,tn-mai/NDKOpenGLES2App |
d46a95242ac76e9de798b1e80cb09bb841cb6656 | db/config.cc | db/config.cc | /*
* Copyright 2015 Cloudius Systems
*
*/
#include <yaml-cpp/yaml.h>
#include <boost/program_options.hpp>
#include <unordered_map>
#include <regex>
#include "config.hh"
#include "core/file.hh"
#include "core/reactor.hh"
#include "core/shared_ptr.hh"
#include "core/fstream.hh"
#include "core/do_with.hh"
#include "lo... | /*
* Copyright 2015 Cloudius Systems
*
*/
#include <yaml-cpp/yaml.h>
#include <boost/program_options.hpp>
#include <unordered_map>
#include <regex>
#include "config.hh"
#include "core/file.hh"
#include "core/reactor.hh"
#include "core/shared_ptr.hh"
#include "core/fstream.hh"
#include "core/do_with.hh"
#include "lo... | Fix type where alias destination was copied instead of referenced | Config: Fix type where alias destination was copied instead of referenced
Fixes #310
Missing '&'.
(And no, cannot make the type non-copyable, since we want to copy config
objects).
| C++ | agpl-3.0 | duarten/scylla,bowlofstew/scylla,capturePointer/scylla,stamhe/scylla,victorbriz/scylla,raphaelsc/scylla,kangkot/scylla,rluta/scylla,phonkee/scylla,justintung/scylla,gwicke/scylla,eklitzke/scylla,senseb/scylla,shaunstanislaus/scylla,phonkee/scylla,asias/scylla,shaunstanislaus/scylla,acbellini/scylla,duarten/scylla,scyll... |
4bc780c73ddc82b833a74968b27eb789327fa54e | test/TesterMain.cpp | test/TesterMain.cpp | #define CATCH_CONFIG_RUNNER
#include "catch.hpp"
#include "gmusicapi/Module.h"
#include "gmusicapi/Musicmanager.h"
#include "TestFixture.h"
#include <boost/program_options.hpp>
#include <algorithm>
int main(int argc, char* argv[])
{
namespace po = boost::program_options;
bool wait;
bool oauth;
po::op... | #define CATCH_CONFIG_RUNNER
#include "catch.hpp"
#include "gmusicapi/Module.h"
#include "gmusicapi/Musicmanager.h"
#include "TestFixture.h"
#include <boost/program_options.hpp>
#include <algorithm>
int main(int argc, char* argv[])
{
namespace po = boost::program_options;
bool wait;
bool oauth;
po::op... | fix amd64 | fix amd64
| C++ | mit | dvirtz/gmusicapi-cpp,dvirtz/gmusicapi-cpp,dvirtz/gmusicapi-cpp |
130eb7c7e60353b2a6de8131c7368e5d453e4372 | vexcl/backend/opencl/kernel.hpp | vexcl/backend/opencl/kernel.hpp | #ifndef VEXCL_BACKEND_OPENCL_KERNEL_HPP
#define VEXCL_BACKEND_OPENCL_KERNEL_HPP
/*
The MIT License
Copyright (c) 2012-2013 Denis Demidov <ddemidov@ksu.ru>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the ... | #ifndef VEXCL_BACKEND_OPENCL_KERNEL_HPP
#define VEXCL_BACKEND_OPENCL_KERNEL_HPP
/*
The MIT License
Copyright (c) 2012-2013 Denis Demidov <ddemidov@ksu.ru>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the ... | Set workgroup size to 1 for CPUs | Set workgroup size to 1 for CPUs
| C++ | mit | ddemidov/vexcl,Poulpy21/vexcl,Poulpy21/vexcl,Poulpy21/vexcl,kapadia/vexcl,kapadia/vexcl,ddemidov/vexcl |
ad98e5a62cc475fc1ed8876b285af9c09879d2cf | src/346588.cpp | src/346588.cpp | #include <iostream>
#include <queue>
#include <utility>
#include <stdio.h>
#include <vector>
using namespace std;
typedef pair<long long ,long long> node;
long long re[1000000];
int main(int argc, char const *argv[])
{
priority_queue<node ,vector<node> ,greater<node> > pq;
pq.push(node(1,2));
node n;
int i=0;
... | #include <iostream>
#include <queue>
#include <utility>
#include <stdio.h>
#include <vector>
using namespace std;
typedef pair<long long ,long long> node;
long long re[1000000];
int main(int argc, char const *argv[])
{
priority_queue<node ,vector<node> ,less<node> > pq;
pq.push(node(1,2));
node n;
int i=0;
whi... | update 346588 | update 346588
| C++ | mit | czfshine/my_oj,czfshine/my_oj,czfshine/my_oj,czfshine/my_oj |
05bb2db3ea4e3e993d1e526f0d43cc73f8d1742d | test/alignedbox.cpp | test/alignedbox.cpp | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra. Eigen itself is part of the KDE project.
//
// Copyright (C) 2008 Gael Guennebaud <g.gael@free.fr>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// Licens... | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra. Eigen itself is part of the KDE project.
//
// Copyright (C) 2008 Gael Guennebaud <g.gael@free.fr>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// Licens... | fix a warning in test/alignedbox | fix a warning in test/alignedbox
--HG--
extra : convert_revision : svn%3A283d02a7-25f6-0310-bc7c-ecb5cbfe19da/trunk/kdesupport/eigen2%40910041
| C++ | bsd-3-clause | rotorliu/eigen,madlib/eigen_backup,mjbshaw/Eigen,madlib/eigen_backup,madlib/eigen_backup,mjbshaw/Eigen,rotorliu/eigen,mjbshaw/Eigen,mjbshaw/Eigen,madlib/eigen_backup,rotorliu/eigen,rotorliu/eigen |
0e865cfeab207f322ab164354e768202a8792019 | test/basicstuff.cpp | test/basicstuff.cpp | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2006-2008 Benoit Jacob <jacob.benoit.1@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You can ... | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2006-2008 Benoit Jacob <jacob.benoit.1@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You can ... | Fix the fact that float(int) != float(int(float(int))) | Fix the fact that float(int) != float(int(float(int)))
| C++ | bsd-3-clause | madlib/eigen,madlib/eigen,madlib/eigen,madlib/eigen |
de43ea043b9e22e4de140e2b5489756f29636a47 | src/Buffer.cpp | src/Buffer.cpp | #include "Buffer.hpp"
#include "Error.hpp"
#include "InvalidObject.hpp"
#include "BufferAccess.hpp"
#include "UniformBlock.hpp"
PyObject * MGLBuffer_tp_new(PyTypeObject * type, PyObject * args, PyObject * kwargs) {
MGLBuffer * self = (MGLBuffer *)type->tp_alloc(type, 0);
#ifdef MGL_VERBOSE
printf("MGLBuffer_tp_n... | #include "Buffer.hpp"
#include "Error.hpp"
#include "InvalidObject.hpp"
#include "BufferAccess.hpp"
#include "UniformBlock.hpp"
PyObject * MGLBuffer_tp_new(PyTypeObject * type, PyObject * args, PyObject * kwargs) {
MGLBuffer * self = (MGLBuffer *)type->tp_alloc(type, 0);
#ifdef MGL_VERBOSE
printf("MGLBuffer_tp_n... | fix buffer bindings | fix buffer bindings
| C++ | mit | cprogrammer1994/ModernGL,cprogrammer1994/ModernGL,cprogrammer1994/ModernGL |
310267a11a036183b5cc4e5e5ca5f46555a1b4e9 | SurfMatcher.hpp | SurfMatcher.hpp | #include <iostream>
#include <stdio.h>
#include "opencv2/core.hpp"
#include "opencv2/core/utility.hpp"
#include "opencv2/core/ocl.hpp"
#include "opencv2/imgcodecs.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/features2d.hpp"
#include "opencv2/calib3d.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/xfeatur... | #include <iostream>
#include <stdio.h>
#include "opencv2/core.hpp"
#include "opencv2/core/utility.hpp"
#include "opencv2/core/ocl.hpp"
#include "opencv2/imgcodecs.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/features2d.hpp"
#include "opencv2/calib3d.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/xfeatur... | 修改 SurfMatcher.hpp(未採用) -增加特徵點篩選條件 | 修改
SurfMatcher.hpp(未採用)
-增加特徵點篩選條件
| C++ | apache-2.0 | tyson3822/IdentityCardNumberRecognition |
4419164995f2375355aee1a85b4e763985b660a2 | src/CS5490.cpp | src/CS5490.cpp | /******************************************
Author: Tiago Britto Lobão
tiago.blobao@gmail.com
*/
/*
Purpose: Control an integrated circuit
Cirrus Logic - CS5490
Used to measure electrical quantities
MIT License
******************************************/
#include "CS5490.h"
/******* Init CS5490 *******... | /******************************************
Author: Tiago Britto Lobão
tiago.blobao@gmail.com
*/
/*
Purpose: Control an integrated circuit
Cirrus Logic - CS5490
Used to measure electrical quantities
MIT License
******************************************/
#include "CS5490.h"
/******* Init CS5490 *******... | Fix Arduino UNO bug | Fix Arduino UNO bug
- .begin method crashes without a small delay
| C++ | mit | tiagolobao/CS5490 |
e34026519d8505e3e6fcd4f5cd1669c52125eb66 | folly/executors/test/GlobalCPUExecutorTest.cpp | folly/executors/test/GlobalCPUExecutorTest.cpp | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | Remove dead includes in folly/executors | Remove dead includes in folly/executors
Reviewed By: Orvid
Differential Revision: D38385209
fbshipit-source-id: 1d962f7b7f21ef7892727ec5d3ed315dfba06951
| C++ | apache-2.0 | facebook/folly,facebook/folly,facebook/folly,facebook/folly,facebook/folly |
a0b4ee4c51af8dfcb1a478c07d5e7f3af5039a18 | src/Crypto.cpp | src/Crypto.cpp |
#include <libclientserver.h>
#include <openssl/rand.h>
#include <openssl/evp.h>
std::string Crypto::SHA1Pass(const std::string pass, const std::string salt)
{
std::stringstream ss;
unsigned char out[20];
int ret = PKCS5_PBKDF2_HMAC_SHA1(pass.c_str(), 0, (unsigned char *) salt.c_str(), salt.size(), 1000, sizeof(... |
#include <libclientserver.h>
#include <openssl/rand.h>
#include <openssl/evp.h>
std::string Crypto::SHA1Pass(const std::string pass, const std::string salt)
{
std::stringstream ss;
unsigned char out[20];
int ret = PKCS5_PBKDF2_HMAC_SHA1(pass.c_str(), 0, (unsigned char *) salt.c_str(), salt.size(), 1000, sizeof(o... | Trim WhiteSpace | Trim WhiteSpace
| C++ | mit | mistralol/libclientserver,mistralol/libclientserver |
78008ce35332272d05cc573ffdd27e86e2c8a697 | vision/locate_tags.cc | vision/locate_tags.cc | #include <apriltag/apriltag.h>
#include <apriltag/tag36h11.h>
#include <apriltag/tag36artoolkit.h>
#include <curl/curl.h>
#include <iostream>
#include <fstream>
#include <opencv2/opencv.hpp>
#include <stdio.h>
#include <stdlib.h>
#include <vector>
using namespace cv;
using std::vector;
#define TAG_SIZE 6.5f
int main... | #include <apriltag/apriltag.h>
#include <apriltag/tag36h11.h>
#include <apriltag/tag36artoolkit.h>
#include <curl/curl.h>
#include <iostream>
#include <fstream>
#include <opencv2/opencv.hpp>
#include <stdio.h>
#include <stdlib.h>
#include <vector>
using namespace cv;
using std::vector;
#define TAG_SIZE 6.5f
int main... | Fix matrix multiplication order | Fix matrix multiplication order
| C++ | apache-2.0 | cornell-cup/cs-minibot,cornell-cup/cs-minibot,cornell-cup/cs-minibot,cornell-cup/cs-minibot,cornell-cup/cs-minibot |
598b58f1d15703292eee5f3e4603f0563eaace73 | src/JToken.cpp | src/JToken.cpp | //
// Created by qife on 16/1/27.
//
#include "JToken.h"
using namespace JsonCpp;
NodePtrList JToken::ParseJPath(const char *str) const
{
str = JsonUtil::SkipWhiteSpace(str);
NodePtrList list;
if (*str == '$')
{
list.push_back(std::shared_ptr<ActionNode>(new ActionNode(ActionType::RootItem)))... | //
// Created by qife on 16/1/27.
//
#include "JToken.h"
using namespace JsonCpp;
JToken::NodePtrList JToken::ParseJPath(const char *str) const
{
str = JsonUtil::SkipWhiteSpace(str);
NodePtrList list;
if (*str == '$')
{
list.push_back(std::shared_ptr<ActionNode>(new ActionNode(ActionType::Roo... | complete the parser | complete the parser
| C++ | mit | 3meng/JsonCpp |
3f49160c901571add42855f8bbb577b02c77e53f | src/Mirror.cpp | src/Mirror.cpp |
#include "Mirror.hpp"
#include "tcp/Server.hpp"
#include <onions-common/containers/Cache.hpp>
#include <onions-common/Common.hpp>
#include <onions-common/Log.hpp>
#include <onions-common/Config.hpp>
#include <onions-common/Constants.hpp>
#include <botan/pubkey.h>
#include <thread>
#include <fstream>
#include <iostream... |
#include "Mirror.hpp"
#include "tcp/Server.hpp"
#include <onions-common/containers/Cache.hpp>
#include <onions-common/Common.hpp>
#include <onions-common/Log.hpp>
#include <onions-common/Config.hpp>
#include <onions-common/Constants.hpp>
#include <botan/pubkey.h>
#include <thread>
#include <fstream>
#include <iostream... | Fix #66 | Fix #66
This fix reestablishes the connection with the Quorum node if the
connection is lost. I have also introduced a 10-second delay between
reconnect attempts, so as to not overwhelm the Quorum server.
| C++ | bsd-3-clause | Jesse-V/OnioNS-server,Jesse-V/OnioNS-server |
375ef02236b1b2a3b3487f4270bdc46d6b3fb8ef | matrix/test/test-block_mv.cpp | matrix/test/test-block_mv.cpp | #ifdef PROFILER
#include <google/profiler.h>
#endif
#include "eigensolver/block_dense_matrix.h"
using namespace fm;
size_t long_dim = 60 * 1024 * 1024;
size_t repeats = 1;
void test_gemm(eigen::block_multi_vector::ptr mv)
{
bool in_mem = mv->get_block(0)->is_in_mem();
int num_nodes = mv->get_block(0)->get_data().... | #ifdef PROFILER
#include <google/profiler.h>
#endif
#include "eigensolver/block_dense_matrix.h"
using namespace fm;
size_t long_dim = 60 * 1024 * 1024;
size_t repeats = 1;
void test_gemm(eigen::block_multi_vector::ptr mv)
{
bool in_mem = mv->get_block(0)->is_in_mem();
int num_nodes = mv->get_block(0)->get_data().... | fix a minor bug in block MV test. | [Matrix]: fix a minor bug in block MV test.
| C++ | apache-2.0 | icoming/FlashGraph,flashxio/FlashX,icoming/FlashX,icoming/FlashGraph,flashxio/FlashX,zheng-da/FlashX,icoming/FlashX,flashxio/FlashX,icoming/FlashGraph,flashxio/FlashX,zheng-da/FlashX,zheng-da/FlashX,zheng-da/FlashX,icoming/FlashGraph,zheng-da/FlashX,flashxio/FlashX,icoming/FlashGraph,icoming/FlashX,icoming/FlashX,flash... |
6b7dba68fb035e17fab23fabe3d88faea1ded215 | kernel/osl/osl_closures.cpp | kernel/osl/osl_closures.cpp | /*
* Adapted from Open Shading Language with this license:
*
* Copyright (c) 2009-2010 Sony Pictures Imageworks Inc., et al.
* All Rights Reserved.
*
* Modifications Copyright 2011, Blender Foundation.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provide... | /*
* Adapted from Open Shading Language with this license:
*
* Copyright (c) 2009-2010 Sony Pictures Imageworks Inc., et al.
* All Rights Reserved.
*
* Modifications Copyright 2011, Blender Foundation.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provide... | Fix compiler warnings with westin OSL code. | Fix compiler warnings with westin OSL code.
| C++ | apache-2.0 | pyrochlore/cycles,tangent-opensource/coreBlackbird,pyrochlore/cycles,tangent-opensource/coreBlackbird,pyrochlore/cycles,tangent-opensource/coreBlackbird |
527149c67095bb5e29d32c970d0e94b91a8fcd86 | test/std/containers/sequences/array/indexing.pass.cpp | test/std/containers/sequences/array/indexing.pass.cpp | //===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | //===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | Update a deque test with more assertions. NFC | Update a deque test with more assertions. NFC
git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@356266 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx |
7644a681de2e76a4db6d26ee8e636bc3e91f5f1e | tools/Jupyter/Kernel.cpp | tools/Jupyter/Kernel.cpp | //------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
// author: Axel Naumann <axel@cern.ch>
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser General Public L... | //------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
// author: Axel Naumann <axel@cern.ch>
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser General Public L... | Add missing #include, reported by 0xACE. | Add missing #include, reported by 0xACE.
| C++ | lgpl-2.1 | root-mirror/cling,karies/cling,root-mirror/cling,root-mirror/cling,marsupial/cling,marsupial/cling,root-mirror/cling,karies/cling,marsupial/cling,root-mirror/cling,karies/cling,karies/cling,marsupial/cling,marsupial/cling,root-mirror/cling,marsupial/cling,karies/cling,karies/cling |
0f2e6424b9366d643a234dd8ee9eaa9ef857408a | chrome/browser/extensions/app_process_apitest.cc | chrome/browser/extensions/app_process_apitest.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 "base/utf_string_conversions.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/browser_list.h"
#include "chrome/browser/extensi... | // 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 "base/utf_string_conversions.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/browser_list.h"
#include "chrome/browser/extensi... | Disable AppApiTest.AppProcess on Windows -- it sometimes hangs | Disable AppApiTest.AppProcess on Windows -- it sometimes hangs
BUG=58810
TEST=none
Review URL: http://codereview.chromium.org/3706004
git-svn-id: http://src.chromium.org/svn/trunk/src@62466 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Former-commit-id: bef2a5cc6ecfaaa11342a16b1b8f7d4623317574 | 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... |
d152ed99c189f6f69c8167b25cb72d54c86afec2 | chrome/browser/tab_contents/web_drag_dest_gtk.cc | chrome/browser/tab_contents/web_drag_dest_gtk.cc | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/tab_contents/web_drag_dest_gtk.h"
#include <string>
#include "base/file_path.h"
#include "base/message_loop.h"
#include "ba... | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/tab_contents/web_drag_dest_gtk.h"
#include <string>
#include "base/file_path.h"
#include "base/message_loop.h"
#include "ba... | Add some CHECKs to figure out a crash. | Linux: Add some CHECKs to figure out a crash.
BUG=89388
TEST=none
Review URL: http://codereview.chromium.org/7587015
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@96325 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | ropik/chromium,yitian134/chromium,adobe/chromium,gavinp/chromium,gavinp/chromium,yitian134/chromium,gavinp/chromium,yitian134/chromium,gavinp/chromium,ropik/chromium,adobe/chromium,gavinp/chromium,adobe/chromium,adobe/chromium,ropik/chromium,adobe/chromium,adobe/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,ga... |
33664db9d9deea2780046e06153124ec3a04bc8a | cint/cling/lib/Interpreter/IncrementalParser.cpp | cint/cling/lib/Interpreter/IncrementalParser.cpp | //------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
// version: $Id$
// author: Axel Naumann <axel@cern.ch>
//------------------------------------------------------------------------------
#include "IncrementalParser.h"
#include "ASTDumper.h"... | //------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
// version: $Id$
// author: Axel Naumann <axel@cern.ch>
//------------------------------------------------------------------------------
#include "IncrementalParser.h"
#include "ASTDumper.h"... | Use better tunned up CompilationOptions. | Use better tunned up CompilationOptions.
git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@43751 27541ba8-7e3a-0410-8455-c3a389f83636
| C++ | lgpl-2.1 | olifre/root,sawenzel/root,omazapa/root,lgiommi/root,zzxuanyuan/root-compressor-dummy,agarciamontoro/root,olifre/root,root-mirror/root,sawenzel/root,lgiommi/root,nilqed/root,tc3t/qoot,Y--/root,gganis/root,buuck/root,davidlt/root,ffurano/root5,dfunke/root,CristinaCristescu/root,krafczyk/root,perovic/root,Duraznos/root,ka... |
73318cb52f57f6d0dbbb1e21541341513da53b86 | topics/search/poj1330.cc | topics/search/poj1330.cc | #include <stdio.h>
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main () {
return 0;
}
| #include <stdio.h>
#include <string.h>
#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
using namespace std;
#define N 10100
int par[N];
int n;
int l, r;
vector<int> lv, rv;
int main () {
int T;
cin >> T;
for (int i = 0; i < T; i++) {
::memset(par, 0, sizeof par);... | add poj1330 | add poj1330
| C++ | mit | LihuaWu/algorithms |
2619d3560e9f43e15d806bf136122934dfa84c13 | topics/search/poj2253.cc | topics/search/poj2253.cc | #include <math.h>
#include <stdio.h>
#include <iostream>
using namespace std;
#define N 210
int n;
int a[N][2];
double dis[N][N];
double res[N];
bool v[N];
int main() {
int cnt = 1;
while (1) {
cin >> n;
if (n == 0) break;
for (int i = 0; i < n; i++) {
cin >> a[i][0] >>... | //Tag: search dp dijkstra
#include <math.h>
#include <stdio.h>
#include <iostream>
using namespace std;
#define N 210
int n;
int a[N][2];
double dis[N][N];
double res[N];
bool v[N];
int main() {
int cnt = 1;
while (1) {
cin >> n;
if (n == 0) break;
for (int i = 0; i < n; i++) {
... | add poj2253 | add poj2253
| C++ | mit | LihuaWu/algorithms |
2d047c3428f16138008dff3354638e32eb0dfd0d | src/mem/packet.hh | src/mem/packet.hh | /*
* Copyright (c) 2006 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) 2006 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, ... | Fix formatting that got screwed up when tabs were removed. | Fix formatting that got screwed up when tabs were removed.
| C++ | bsd-3-clause | vovojh/gem5,vovojh/gem5,pombredanne/http-repo.gem5.org-gem5-,hoangt/tpzsimul.gem5,hoangt/tpzsimul.gem5,vovojh/gem5,pombredanne/http-repo.gem5.org-gem5-,pombredanne/http-repo.gem5.org-gem5-,hoangt/tpzsimul.gem5,pombredanne/http-repo.gem5.org-gem5-,vovojh/gem5,hoangt/tpzsimul.gem5,hoangt/tpzsimul.gem5,pombredanne/http-re... |
284de5bc0e777c792c06b8d6ca0d35642beb7269 | include/BinaryTree.hpp | include/BinaryTree.hpp | #include <iostream>
#include <string>
#include <fstream>
#include <cstdint>
using namespace std;
template <typename T>
struct Node {
Node *left;
Node *right;
T data;
};
template <typename T>
class BinaryTree
{
private:
Node<T>* root;
int CountElements = 0;
public:
BinaryTree();
~BinaryTree();
BinaryTre... | #include <iostream>
#include <string>
#include <fstream>
#include <cstdint>
using namespace std;
template <typename T>
struct Node {
Node *left;
Node *right;
T data;
};
template <typename T>
class BinaryTree
{
private:
Node<T>* root;
int CountElements = 0;
public:
BinaryTree();
~BinaryTree();
BinaryTre... | Update BinaryTree.hpp | Update BinaryTree.hpp | C++ | mit | rtv22/BinaryTree_S |
a4bd2e6998dbec3e66072ca4827cb75adeb74e3c | include/BinaryTree.hpp | include/BinaryTree.hpp | #include <iostream>
#include <string>
#include <fstream>
#include <cstdint>
using namespace std;
template <typename T>
struct Node {
Node *left;
Node *right;
T data;
};
template <typename T>
class BinaryTree
{
private:
Node<T>* root;
int CountElements = 0;
public:
BinaryTree();
~BinaryTree();
BinaryTre... | #include <iostream>
#include <string>
#include <fstream>
#include <cstdint>
using namespace std;
template <typename T>
std::ostream& operator<<(std::ostream&, const BinarySearchTree<T>&);
template <typename T>
struct Node {
Node *left;
Node *right;
T data;
};
template <typename T>
class BinaryTree
{
private... | Update BinaryTree.hpp | Update BinaryTree.hpp | C++ | mit | rtv22/BinaryTree_S |
2fdf3d23e6431c0d4f300e62d87977b532967162 | src/PefCMD.cpp | src/PefCMD.cpp | //
// PefCMD.cpp
// J3NI
//
// Created by Neil on 2014-03-14.
// Copyright (c) 2014 Neil. All rights reserved.
//
#include <fstream>
#include <stdlib.h>
#include <time.h>
#include <PefCMD.h>
#include <IpmiCommandDefines.h>
using namespace IpmiCommandDefines;
extern std::ofstream log_file;
GetPefCapabCMD::GetPef... | //
// PefCMD.cpp
// J3NI
//
// Created by Neil on 2014-03-14.
// Copyright (c) 2014 Neil. All rights reserved.
//
#include <fstream>
#include <stdlib.h>
#include <time.h>
#include <PefCMD.h>
#include <IpmiCommandDefines.h>
using namespace IpmiCommandDefines;
extern std::ofstream log_file;
GetPefCapabCMD::GetPef... | Add one more supported parameter to PEF | Add one more supported parameter to PEF
| C++ | bsd-3-clause | J3NI/J3NI,J3NI/J3NI,J3NI/J3NI |
50c82fcdfbc17bb13d8c2cfd7b63943d68f5c46c | src/mitm/mitm.hpp | src/mitm/mitm.hpp | /* Copyright (C) 2015 INRA
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distr... | /* Copyright (C) 2015 INRA
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distr... | add useful functions | mitm: add useful functions
| C++ | mit | quesnel/mitm |
4628f3f2a03e23b08d07d69039de9485172bc4ce | api/mraa/uart.hpp | api/mraa/uart.hpp | /*
* Author: Brendan Le Foll <brendan.le.foll@intel.com>
* Contributions: Jon Trulson <jtrulson@ics.com>
* Contributions: Thomas Ingleby <thomas.c.ingleby@intel.com>
* Copyright (c) 2014 - 2015 Intel Corporation.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software ... | /*
* Author: Brendan Le Foll <brendan.le.foll@intel.com>
* Contributions: Jon Trulson <jtrulson@ics.com>
* Contributions: Thomas Ingleby <thomas.c.ingleby@intel.com>
* Copyright (c) 2014 - 2015 Intel Corporation.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software ... | Use std::string constructor which lets use set a size parameter | uart.hpp: Use std::string constructor which lets use set a size parameter
Signed-off-by: Brendan Le Foll <3e0e8c4069934e8b47d99704927a85c66c0ceb33@intel.com>
| C++ | mit | neuroidss/mraa,malikabhi05/mraa,malikabhi05/mraa,alexandru-elisei/mraa,tripzero/mraa,g-vidal/mraa,smileboywtu/mraa,alexandru-elisei/mraa,neuberfran/mraa,intel-iot-devkit/mraa,ncrastanaren/mraa,intel-iot-devkit/mraa,stefan-andritoiu/mraa-gpio-chardev,petreeftime/mraa,arfoll/mraa,zBMNForks/mraa,tripzero/mraa,g-vidal/mraa... |
91675a6e670cb4a2b38d242c32a7b3b0eae59936 | tools/swift-reflection-dump/swift-reflection-dump.cpp | tools/swift-reflection-dump/swift-reflection-dump.cpp | //===--- swift-reflection-dump.cpp - Reflection testing application -------===//
//
// 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... | //===--- swift-reflection-dump.cpp - Reflection testing application -------===//
//
// 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... | Adjust for svn rL372278 | Adjust for svn rL372278
The method MachOUniversalBinary::getObjectForArch had its return type altered. A
new method was added that accomplishes what we want:
MachOUniversalBinary::getMachOObjectForArch.
| C++ | apache-2.0 | parkera/swift,harlanhaskins/swift,jckarter/swift,rudkx/swift,nathawes/swift,benlangmuir/swift,harlanhaskins/swift,aschwaighofer/swift,jmgc/swift,ahoppen/swift,apple/swift,glessard/swift,parkera/swift,jckarter/swift,JGiola/swift,xwu/swift,xwu/swift,atrick/swift,harlanhaskins/swift,glessard/swift,hooman/swift,roambotics/... |
ebdc14379338d2efbfcc903027d601cb055da6a2 | Code/Common/itkLightObject.cxx | Code/Common/itkLightObject.cxx | /*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkLightObject.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
See ITKCopyright.txt or ... | /*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkLightObject.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
See ITKCopyright.txt or ... | handle the case when subclass constructors would call an exception. This prevents a system abort() | COMP: handle the case when subclass constructors would call an exception. This prevents a system abort()
| C++ | apache-2.0 | hinerm/ITK,LucasGandel/ITK,eile/ITK,LucasGandel/ITK,itkvideo/ITK,jmerkow/ITK,LucHermitte/ITK,hinerm/ITK,malaterre/ITK,biotrump/ITK,stnava/ITK,PlutoniumHeart/ITK,biotrump/ITK,BRAINSia/ITK,hendradarwin/ITK,GEHC-Surgery/ITK,GEHC-Surgery/ITK,msmolens/ITK,jcfr/ITK,itkvideo/ITK,rhgong/itk-with-dom,zachary-williamson/ITK,msmo... |
d01bdb2d31d28dbda46ba96f03b595f3408bedab | include/eixx/eterm.hpp | include/eixx/eterm.hpp | //----------------------------------------------------------------------------
/// \file eterm.hpp
//----------------------------------------------------------------------------
/// \brief Header file for including marshaling part of eixx.
//----------------------------------------------------------------------------
... | //----------------------------------------------------------------------------
/// \file eterm.hpp
//----------------------------------------------------------------------------
/// \brief Header file for including marshaling part of eixx.
//----------------------------------------------------------------------------
... | Add declaration of atom macro | Add declaration of atom macro
| C++ | apache-2.0 | saleyn/eixx |
2363f5d0bed01c4681c2fcc304f7d73acc6a873a | src/Vector.hpp | src/Vector.hpp | #ifndef AX_VECTOR_H
#define AX_VECTOR_H
#include <array>
#include <vector>
#include <iostream>
#include "VectorExpression.hpp"
namespace ax
{
// static dimension case
template<typename T_elem, dimension_type I_dim>
class Vector
{
public:
// traits
using tag = vector_tag;
using elem_t = T_elem;
co... | #ifndef AX_VECTOR_H
#define AX_VECTOR_H
#include <array>
#include <vector>
#include <iostream>
#include "VectorExpression.hpp"
namespace ax
{
// static dimension case
template<typename T_elem, dimension_type I_dim>
class Vector
{
public:
// traits
using tag = vector_tag;
using elem_t = T_elem;
co... | use dimension(expr) instead of .size() | use dimension(expr) instead of .size()
| C++ | mit | ToruNiina/AX |
81165eb04aca09b619b7371b4b57b9f417c5fce0 | voxblox_ros/src/voxblox_eval.cc | voxblox_ros/src/voxblox_eval.cc | #include <deque>
#include <minkindr_conversions/kindr_msg.h>
#include <minkindr_conversions/kindr_tf.h>
#include <minkindr_conversions/kindr_xml.h>
#include <pcl/conversions.h>
#include <pcl/filters/filter.h>
#include <pcl/io/ply_io.h>
#include <pcl/point_types.h>
#include <pcl_conversions/pcl_conversions.h>
#include <... | #include <deque>
#include <minkindr_conversions/kindr_msg.h>
#include <minkindr_conversions/kindr_tf.h>
#include <minkindr_conversions/kindr_xml.h>
#include <pcl/conversions.h>
#include <pcl/filters/filter.h>
#include <pcl/io/ply_io.h>
#include <pcl/point_types.h>
#include <pcl_conversions/pcl_conversions.h>
#include <... | remove gsm header from voxblox_eval | remove gsm header from voxblox_eval
| C++ | bsd-3-clause | mfehr/voxblox,mfehr/voxblox |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.