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 |
|---|---|---|---|---|---|---|---|---|---|
d7b4ad634eb510edbf0e8053ae8c7a68680b9754 | mjolnir/core/VelocityVerlet.hpp | mjolnir/core/VelocityVerlet.hpp | #ifndef MJOLNIR_VELOCITY_VERLET_INTEGRATOR
#define MJOLNIR_VELOCITY_VERLET_INTEGRATOR
#include "ParticleContainer.hpp"
#include "ForceField.hpp"
namespace mjolnir
{
template<typename traitsT>
class VelocityVerlet
{
public:
typedef traitsT traits_type;
typedef typename traits_type::time_type time_type;
t... | #ifndef MJOLNIR_VELOCITY_VERLET_INTEGRATOR
#define MJOLNIR_VELOCITY_VERLET_INTEGRATOR
#include "ParticleContainer.hpp"
#include "ForceField.hpp"
namespace mjolnir
{
template<typename traitsT>
class VelocityVerlet
{
public:
typedef traitsT traits_type;
typedef typename traits_type::time_type time_type;
t... | fix forcefield call | fix forcefield call
| C++ | mit | ToruNiina/Mjolnir,ToruNiina/Mjolnir,ToruNiina/Mjolnir |
6b7baec67d788a6e35be68470af900c9d349ea5f | test/gsl-lite.t.cpp | test/gsl-lite.t.cpp | // Copyright 2015 by Martin Moene
//
// gsl-lite is based on GSL: Guidelines Support Library,
// https://github.com/microsoft/gsl
//
// This code is licensed under the MIT License (MIT).
//
#include "gsl-lite.t.h"
lest::tests & specification()
{
static lest::tests tests;
return tests;
}
CASE( "__cpluspl... | // Copyright 2015 by Martin Moene
//
// gsl-lite is based on GSL: Guidelines Support Library,
// https://github.com/microsoft/gsl
//
// This code is licensed under the MIT License (MIT).
//
#include "gsl-lite.t.h"
#define gsl_PRESENT( x ) \
std::cout << #x << ": " << x << "\n"
#define gsl_ABSENT( x ) \
std:... | Add tests tagged [.std...] to inspect presence of language/library features | Add tests tagged [.std...] to inspect presence of language/library features
| C++ | mit | decaf-emu/gsl-lite,martinmoene/gsl-lite,decaf-emu/gsl-lite,martinmoene/gsl-lite,martinmoene/gsl-lite |
0c98f038d31c85bdaa26153cc10e79d8fd97f09f | http_client/http_uploader.cc | http_client/http_uploader.cc | // Copyright (c) 2011 The WebM project authors. All Rights Reserved.
//
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file in the root of the source
// tree. An additional intellectual property rights grant can be found
// in the file PATENTS. All contributing p... | // Copyright (c) 2011 The WebM project authors. All Rights Reserved.
//
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file in the root of the source
// tree. An additional intellectual property rights grant can be found
// in the file PATENTS. All contributing p... | complete curl init | http_uploader: complete curl init
Add constants for form setup, and finish form initialization code.
We should be good to call curl_easy_perform now; unfortunately this won't
build against the libcurl currently in-tree because we must upgrade to curl
v7.18.2 or higher in order to use CURLFORM_STREAM. We must use
CUR... | C++ | bsd-3-clause | ericmckean/webm.webmlive,Maria1099/webm.webmlive,abwiz0086/webm.webmlive,kim42083/webm.webmlive,webmproject/webmlive,felipebetancur/webmlive,matanbs/webm.webmlive,abwiz0086/webm.webmlive,iniwf/webm.webmlive,kleopatra999/webm.webmlive,ericmckean/webm.webmlive,felipebetancur/webmlive,reimaginemedia/webm.webmlive,matanbs/... |
9b336f512804c48b6aa5a62434791481a333c903 | cpp/example/scaling.cc | cpp/example/scaling.cc | #include <cap/energy_storage_device.h>
#include <cap/mp_values.h>
#include <cap/default_inspector.h>
#include <cap/supercapacitor.h>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/info_parser.hpp>
#include <boost/mpi/environment.hpp>
#include <boost/mpi/timer.hpp>
#include <iostream>
int main(i... | #include <cap/energy_storage_device.h>
#include <cap/mp_values.h>
#include <cap/default_inspector.h>
#include <cap/supercapacitor.h>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/info_parser.hpp>
#include <boost/mpi/environment.hpp>
#include <boost/mpi/timer.hpp>
#include <iostream>
int main(i... | Improve scaling example. | Improve scaling example.
| C++ | bsd-3-clause | Rombur/Cap,Rombur/Cap,ORNL-CEES/Cap,Rombur/Cap,dalg24/Cap,dalg24/Cap,ORNL-CEES/Cap,dalg24/Cap,ORNL-CEES/Cap |
f67ecd1c352dce3012a94698ff6398e478e7a677 | cpplib/graph/graph.hpp | cpplib/graph/graph.hpp | #pragma once
#include <algorithm>
#include <type_traits>
#include <vector>
#include "maths.hpp"
#include "range/ranges.hpp"
#include <iostream>
template<typename T = long long, size_t MASK = 0>
class Graph {
public:
using EdgesList = std::vector<size_t>;
enum Type {
Weighted = 1
};
templat... | #pragma once
#include <algorithm>
#include <type_traits>
#include <vector>
#include "maths.hpp"
#include "range/ranges.hpp"
#include <iostream>
template<typename T = long long, size_t MASK = 0>
class Graph {
public:
using EdgesList = std::vector<size_t>;
enum Type {
Weighted = 1
};
templat... | Fix EdgesHolder iterators: store only begin_ and end_ iterators, not all other fields. | Fix EdgesHolder iterators: store only begin_ and end_ iterators, not all other fields.
| C++ | mit | agul/algolib,agul/algolib |
fb44ca086591d427c47526373531adebd3e680e6 | okui/src/shaders/TextureShader.cpp | okui/src/shaders/TextureShader.cpp | #include "onair/okui/shaders/TextureShader.h"
#include "onair/okui/Texture.h"
#include "onair/okui/shapes/Rectangle.h"
namespace onair {
namespace okui {
namespace shaders {
TextureShader::TextureShader(const char* fragmentShader) {
opengl::Shader vsh(ONAIR_OKUI_VERTEX_SHADER_HEADER R"(
ATTRIBUTE_IN vec2... | #include "onair/okui/shaders/TextureShader.h"
#include "onair/okui/Texture.h"
#include "onair/okui/shapes/Rectangle.h"
namespace onair {
namespace okui {
namespace shaders {
TextureShader::TextureShader(const char* fragmentShader) {
opengl::Shader vsh(ONAIR_OKUI_VERTEX_SHADER_HEADER R"(
ATTRIBUTE_IN vec2... | fix texture fit rendering | fix texture fit rendering
Summary: fix texture fit rendering
Test Plan: look
Reviewers: dapirian
Reviewed By: dapirian
Subscribers: #engineering
Differential Revision: https://phabricator.watchonair.tv/D1164
| C++ | apache-2.0 | bittorrent/okui,bittorrent/okui,bittorrent/okui,bittorrent/okui,bittorrent/okui |
3062267204f73c337111a9b9dece4746183207ad | demo/toast/qrtoastdemo.cpp | demo/toast/qrtoastdemo.cpp | #include "qrtoastdemo.h"
#include "ui_qrtoastdemo.h"
#include "qrtoast.h"
USING_NS_QRWIDGETS;
QrToastDemo::QrToastDemo(QWidget *parent) :
QWidget(parent),
ui(new Ui::ToastWidget)
{
ui->setupUi(this);
this->setWindowTitle("demo - toast");
connect(ui->pushButton, &QPushButton::clicked, [this](){... | #include "qrtoastdemo.h"
#include "ui_qrtoastdemo.h"
#include <QtWidgets/qdesktopwidget.h>
#include "qrtoast.h"
USING_NS_QRWIDGETS;
QrToastDemo::QrToastDemo(QWidget *parent) :
QWidget(parent),
ui(new Ui::ToastWidget)
{
ui->setupUi(this);
this->setWindowTitle("demo - toast");
connect(ui->pushB... | move toast to the center of desktop | move toast to the center of desktop
| C++ | apache-2.0 | Qters/QrWidgets |
dd27fae2ffc700812d95a8661c790bbc5fb3500d | src/classes/Track.cxx | src/classes/Track.cxx | // Track
// Author: Matthew Raso-Barnett 03/12/2010
#include <iostream>
#include <sstream>
#include <cassert>
#include <stdexcept>
#include "Track.h"
//#define VERBOSE_MODE
//#define PRINT_CONSTRUCTORS
using namespace std;
ClassImp(Track)
//________________________________________________________________________... | // Track
// Author: Matthew Raso-Barnett 03/12/2010
#include <iostream>
#include <sstream>
#include <cassert>
#include <stdexcept>
#include "Track.h"
//#define VERBOSE_MODE
//#define PRINT_CONSTRUCTORS
using namespace std;
ClassImp(Track)
//________________________________________________________________________... | Fix copy constructor in Track | Fix copy constructor in Track
-- Previously it was doing nothing! | C++ | mit | mjrasobarnett/ucnsim,mjrasobarnett/ucnsim,mjrasobarnett/ucnsim |
0f0e050eacbcb5582bbbd136f578cc8f5b9655dc | src/client/cl_main.cc | src/client/cl_main.cc | #include <iostream>
#include <memory>
#include <stdexcept>
#include "cl_main.hh"
#include "../event_queue.hh"
#include "../sys_main.hh"
#include "../renderer/gl_error.hh"
#include <snow-common.hh>
#include "../server/sv_main.hh"
// Font test
#include "../renderer/font.hh"
#include "../renderer/texture.hh"
#include ... | #include <iostream>
#include <memory>
#include <stdexcept>
#include "cl_main.hh"
#include "../event_queue.hh"
#include "../sys_main.hh"
#include "../renderer/gl_error.hh"
#include <snow-common.hh>
#include "../server/sv_main.hh"
// Font test
#include "../renderer/font.hh"
#include "../renderer/texture.hh"
#include ... | Fix insertion for systems. | Fix insertion for systems.
Was reversed accidentally.
| C++ | bsd-2-clause | nilium/snow,nilium/snow,nilium/snow |
3fe52d8583b6639babc06321c49f9feff25bbdb0 | test/marshallers.cc | test/marshallers.cc | /* Tests covering unmarshaller and marshaller parts of the fastrpc library.
*/
#include <string>
#include <vector>
#include <stdexcept>
#include <iostream>
#include <fstream>
#include <memory>
#include <sstream>
#include "frpcunmarshaller.h"
#include "frpctreebuilder.h"
/*
Uses external test file that contains bot... | /* Tests covering unmarshaller and marshaller parts of the fastrpc library.
*/
#include <string>
#include <vector>
#include <stdexcept>
#include <iostream>
#include <fstream>
#include <memory>
#include <sstream>
#include "frpcunmarshaller.h"
#include "frpctreebuilder.h"
/*
Uses external test file that contains bot... | fix compilation error | fix compilation error | C++ | lgpl-2.1 | seznam/fastrpc,burlog/fastrpc,seznam/fastrpc,seznam/fastrpc,burlog/fastrpc,burlog/fastrpc,seznam/fastrpc,seznam/fastrpc,burlog/fastrpc,seznam/fastrpc |
e54f794158630a5074088185a8941c2b52d17cef | DeviceAdapters/PI/PI.cpp | DeviceAdapters/PI/PI.cpp | ///////////////////////////////////////////////////////////////////////////////
// FILE: PI.cpp
// PROJECT: Micro-Manager
// SUBSYSTEM: DeviceAdapters
//-----------------------------------------------------------------------------
// DESCRIPTION: PI Controller Driver
//
// AUTHOR: Nen... | ///////////////////////////////////////////////////////////////////////////////
// FILE: PI.cpp
// PROJECT: Micro-Manager
// SUBSYSTEM: DeviceAdapters
//-----------------------------------------------------------------------------
// DESCRIPTION: PI Controller Driver
//
// AUTHOR: Nen... | Add safeguard to prevent initial comm errors | PI: Add safeguard to prevent initial comm errors
git-svn-id: 03a8048b5ee8463be5048a3801110fb50f378627@15627 d0ab736e-dc22-4aeb-8dc9-08def0aa14fd
| C++ | mit | kmdouglass/Micro-Manager,kmdouglass/Micro-Manager |
28c8f0b1941e851caeeb48ef4a70a833f4a9ea9f | tests/serial/many_variables_recursive.cpp | tests/serial/many_variables_recursive.cpp | /*
Tests that transfer logic of a cell with multiple cells as variables works.
Copyright (c) 2013, 2014, Ilja Honkonen
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 m... | /*
Tests that transfer logic of a cell with multiple cells as variables works.
Copyright (c) 2013, 2014, Ilja Honkonen
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 m... | Make many_variables_recursive.cpp compile with clang 3.4. | Make many_variables_recursive.cpp compile with clang 3.4.
| C++ | bsd-3-clause | nasailja/gensimcell |
ee66a6006eb37e386be23ffb82e02a072304d1c5 | native/sandbox.cc | native/sandbox.cc | #include <string>
#include <iostream>
#include <functional>
#include <system_error>
#include <vector>
#include <cstring>
#include <boost/filesystem.hpp>
#include <boost/format.hpp>
#include <libcgroup.h>
#include <fcntl.h>
#include <sched.h>
#include <signal.h>
#include <unistd.h>
#include <sys/types.h>
#include <sy... | #include <string>
#include <iostream>
#include <functional>
#include <system_error>
#include <vector>
#include <cstring>
#include <boost/filesystem.hpp>
#include <boost/format.hpp>
#include <libcgroup.h>
#include <fcntl.h>
#include <sched.h>
#include <signal.h>
#include <unistd.h>
#include <sys/types.h>
#include <sy... | Fix wrong comment. | Fix wrong comment.
| C++ | mit | t123yh/simple-sandbox,t123yh/simple-sandbox |
afbf7f02808ca4395cbbb2226c994e54b3c80a4f | daemon/ssdpwatcher.cpp | daemon/ssdpwatcher.cpp | /*
This file is part of the KUPnP library, part of the KDE project.
Copyright 2009-2010 Friedrich W. H. Kossebau <kossebau@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Fou... | /*
This file is part of the KUPnP library, part of the KDE project.
Copyright 2009-2010 Friedrich W. H. Kossebau <kossebau@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Fou... | rename result var in createDeviceFromResponse() to device | changed: rename result var in createDeviceFromResponse() to device
svn path=/branches/work/kupnp-oio/server/; revision=1099651
| C++ | lgpl-2.1 | KDE/cagibi |
46df39d5e573f137aaf3d5243d60877fcce9ffd7 | core/io/translation_loader_po.cpp | core/io/translation_loader_po.cpp | /*************************************************************************/
/* translation_loader_po.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... | /*************************************************************************/
/* translation_loader_po.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... | Fix parsing of multiple escapes before quotes | i18n: Fix parsing of multiple escapes before quotes
See https://github.com/godotengine/godot/pull/37114#issuecomment-601463765
(cherry picked from commit 8c3ad2af93a119f45e0bc786ae1dfa04e116d60f)
| C++ | mit | ex/godot,ex/godot,ex/godot,ex/godot,ex/godot,ex/godot,ex/godot,ex/godot |
5e022150b50f5e3a8fc38beb5618869762789a7c | lpc_aspeed.cpp | lpc_aspeed.cpp | /*
* Copyright 2018 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | /*
* Copyright 2018 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | implement close method | lpc_aspeed: implement close method
Implement close method on lpc aspeed, such that it'll unmap the memory
region and close the file handle to the driver.
Change-Id: Ie0417fb6c77a2b9d4b4db532b464738b2430a811
Signed-off-by: Patrick Venture <36c53fa43f47f3fd67cb2fc38031827244d18a1f@google.com>
| C++ | apache-2.0 | openbmc/phosphor-ipmi-flash |
877594d63f9869e953f10fdff4f2c67f69fe5c93 | cpp-driver/src/utils.hpp | cpp-driver/src/utils.hpp | /*
Copyright (c) 2014-2017 DataStax
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 writing... | /*
Copyright (c) 2014-2017 DataStax
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 writing... | Add missing include for MSVC15 | Add missing include for MSVC15
The _BitScanReverse functions now require intrin.h to be included.
| C++ | apache-2.0 | datastax/cpp-driver,datastax/cpp-driver,datastax/cpp-driver,datastax/cpp-driver |
ca39ce784bfe06c001f4d1c965b2ad9f16f2434c | c++/src/capnp/membrane-test.c++ | c++/src/capnp/membrane-test.c++ | // Copyright (c) 2015 Sandstorm Development Group, Inc. and contributors
// Licensed under the MIT License:
//
// 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, includin... | // Copyright (c) 2015 Sandstorm Development Group, Inc. and contributors
// Licensed under the MIT License:
//
// 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, includin... | Make membrane-test more reliable by using in-process pipes. | Make membrane-test more reliable by using in-process pipes.
| C++ | mit | mologie/capnproto,mologie/capnproto,mologie/capnproto |
f07c389379391115abedf73b58735e14e68f80e6 | engine/core/controller/engine.cpp | engine/core/controller/engine.cpp | /***************************************************************************
* Copyright (C) 2005-2008 by the FIFE team *
* http://www.fifengine.de *
* This file is part of FIFE. *
* ... | /***************************************************************************
* Copyright (C) 2005-2008 by the FIFE team *
* http://www.fifengine.de *
* This file is part of FIFE. *
* ... | remove the reference of the LinearPather | remove the reference of the LinearPather
| C++ | lgpl-2.1 | cbeck88/fifengine,gravitystorm/fifengine,fifengine/fifengine,cbeck88/fifengine,fifengine/fifengine,Niektory/fifengine,cbeck88/fifengine,Niektory/fifengine,Niektory/fifengine,cbeck88/fifengine,fifengine/fifengine,gravitystorm/fifengine,gravitystorm/fifengine,gravitystorm/fifengine |
0e1da8e41f117180932f9bce75da6b452b27bdb2 | google_cloud_debugger_test/dbgarray_test.cc | google_cloud_debugger_test/dbgarray_test.cc | // Copyright 2017 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | // Copyright 2017 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | Fix TestGetArrayItem test | Fix TestGetArrayItem test | C++ | apache-2.0 | GoogleCloudPlatform/google-cloud-dotnet-debugger,GoogleCloudPlatform/google-cloud-dotnet-debugger,GoogleCloudPlatform/google-cloud-dotnet-debugger,GoogleCloudPlatform/google-cloud-dotnet-debugger |
e849a8d7eda4e27acca1b6381685e572ab04e5d3 | include/dll/rbm/rbm_base.hpp | include/dll/rbm/rbm_base.hpp | //=======================================================================
// Copyright (c) 2014-2017 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//==================================================================... | //=======================================================================
// Copyright (c) 2014-2017 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//==================================================================... | Use generators | Use generators
| C++ | mit | wichtounet/dll,wichtounet/dll,wichtounet/dll |
9bf86eea7226250ef610aa85c19e4d1781ec6a1c | api/kernel/memory.hpp | api/kernel/memory.hpp | // -*- C++ -*-
// This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2017 Oslo and Akershus University College of Applied Sciences
// and Alfred Bratterud
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the Lice... | // -*- C++ -*-
// This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2017 Oslo and Akershus University College of Applied Sciences
// and Alfred Bratterud
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the Lice... | Remove DEBUG from memory header | kernel: Remove DEBUG from memory header
| C++ | apache-2.0 | hioa-cs/IncludeOS,hioa-cs/IncludeOS,ingve/IncludeOS,alfred-bratterud/IncludeOS,AndreasAakesson/IncludeOS,ingve/IncludeOS,AndreasAakesson/IncludeOS,AnnikaH/IncludeOS,AnnikaH/IncludeOS,AndreasAakesson/IncludeOS,AnnikaH/IncludeOS,mnordsletten/IncludeOS,alfred-bratterud/IncludeOS,mnordsletten/IncludeOS,mnordsletten/Include... |
78ecf941361aba73ba77036d11dab8f1b7abb86b | crawler/main/MFRC522.cpp | crawler/main/MFRC522.cpp | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include "nvs_flash.h"
#include "driver/uart.h"
#include "freertos/queue.h"
#include "esp_log.h"
#include "soc/uart_struct.h"
static const char *TAG = "MFRC522";
#define BUF_SI... | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include "nvs_flash.h"
#include "driver/uart.h"
#include "freertos/queue.h"
#include "esp_log.h"
#include "soc/uart_struct.h"
static const char *TAG = "MFRC522";
#define BUF_SI... | Update MFRC522.cpp | Update MFRC522.cpp | C++ | mit | RobotTeam2/esp32.crawler,RobotTeam2/esp32.crawler,RobotTeam2/esp32.crawler,RobotTeam2/esp32.crawler |
530416f0aa0281f1915227e5ca740819372bae90 | benchmark/test_rendering.cpp | benchmark/test_rendering.cpp | #include "bench_framework.hpp"
#include <mapnik/map.hpp>
#include <mapnik/image_util.hpp>
#include <mapnik/load_map.hpp>
#include <mapnik/agg_renderer.hpp>
#include <mapnik/datasource_cache.hpp>
#include <mapnik/font_engine_freetype.hpp>
#include <stdexcept>
class test : public benchmark::test_case
{
std::string x... | #include "bench_framework.hpp"
#include <mapnik/map.hpp>
#include <mapnik/image_util.hpp>
#include <mapnik/load_map.hpp>
#include <mapnik/agg_renderer.hpp>
#include <mapnik/datasource_cache.hpp>
#include <mapnik/font_engine_freetype.hpp>
#include <stdexcept>
class test : public benchmark::test_case
{
std::string x... | fix suggesed cmd line option syntax [skip ci] | fix suggesed cmd line option syntax [skip ci]
| C++ | lgpl-2.1 | naturalatlas/mapnik,Uli1/mapnik,Uli1/mapnik,Uli1/mapnik,mapnik/mapnik,naturalatlas/mapnik,mapycz/mapnik,CartoDB/mapnik,CartoDB/mapnik,Uli1/mapnik,mapycz/mapnik,zerebubuth/mapnik,tomhughes/mapnik,tomhughes/mapnik,pnorman/mapnik,mapnik/mapnik,pnorman/mapnik,zerebubuth/mapnik,naturalatlas/mapnik,mapnik/mapnik,mapycz/mapni... |
cdcb76c4e6d0cc80ba48d8d89151ab79a8a77f1d | db/SelectQuery.cpp | db/SelectQuery.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 General Public License as published by the Free
* Software Foundation, eith... | /*
* 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 General Public License as published by the Free
* Software Foundation, eith... | add missing return value | add missing return value
| C++ | agpl-3.0 | Illarion-eV/Illarion-Server,Illarion-eV/Illarion-Server,Illarion-eV/Illarion-Server |
af3fbeac69d2d957474f101cded819bec8f24e32 | benchs/polyhedron/viewer.cpp | benchs/polyhedron/viewer.cpp | #include <SceneGraph/GraphRenderer.h>
#include <SceneGraph/Camera.h>
#include <SceneGraph/GeoNode.h>
#include <Utils/ImageIO.h>
using namespace imp;
#include <SFML/Graphics.hpp>
#include "shader.h"
Geometry generateRockHat(const Vec3& center, float radius, int sub)
{
imp::Geometry geometry = imp::Geometry::cub... | #include <SceneGraph/GraphRenderer.h>
#include <SceneGraph/Camera.h>
#include <SceneGraph/GeoNode.h>
#include <Utils/ImageIO.h>
#include <SFML/Graphics.hpp>
using namespace imp;
#include "shader.h"
Geometry generateRockHat(const Vec3& center, float radius, int sub)
{
imp::Geometry geometry = imp::Geometry::cube... | update polyhedron bench project | update polyhedron bench project
| C++ | mit | Lut1n/ImpGears,Lut1n/ImpGears |
fd59fca1085974ae5fb573c7e2a5bc6aeed63f36 | toolbox/list_build_ids/list_build_ids.cpp | toolbox/list_build_ids/list_build_ids.cpp | /* list_build_ids
* Copyright (c) 2016 Microsoft Corportation
* MIT License
*
* This program opens a core dump and enumerates all the modules contained within it. For every
* module that contains a build-id, this program will print out the build id and module name.
* Currently only works for 64 bit core dumps.
... | /* list_build_ids
* Copyright (c) 2016 Microsoft Corportation
* MIT License
*
* This program opens a core dump and enumerates all the modules contained within it. For every
* module that contains a build-id, this program will print out the build id and module name.
* Currently only works for 64 bit core dumps.
... | Update list_build_ids to work on libraries too | Update list_build_ids to work on libraries too
Updated the list_build_ids tool to work on libraries in addition to core
dumps.
| C++ | mit | leculver/dotnet-reliability,leculver/dotnet-reliability,leculver/dotnet-reliability,leculver/dotnet-reliability,leculver/dotnet-reliability,leculver/dotnet-reliability |
6c0b7c54df7cfa68dd4098df65a08d0bc51932c3 | test/test-issue7.cc | test/test-issue7.cc | #include <unistd.h>
#include "rpc/server.h"
#include "rpc/client.h"
using namespace base;
using namespace rpc;
TEST(issue, 7) {
const int rpc_id = 1987;
PollMgr* poll = new PollMgr;
ThreadPool* thrpool = new ThreadPool;
Server *svr = new Server(poll, thrpool);
// directly release poll to make sur... | #include <unistd.h>
#include "rpc/server.h"
#include "rpc/client.h"
using namespace base;
using namespace rpc;
TEST(issue, 7) {
const int rpc_id = 1987;
PollMgr* poll = new PollMgr(1);
ThreadPool* thrpool = new ThreadPool(1);
Server *svr = new Server(poll, thrpool);
// directly release poll to ma... | use 1 io thread and 1 worker thread | use 1 io thread and 1 worker thread
| C++ | bsd-3-clause | santazhang/simple-rpc,santazhang/simple-rpc,santazhang/simple-rpc,santazhang/simple-rpc |
ddb8194eb6aee9024c9c0c7fb4211fb042600d9f | examples/accel/accel_countred.cpp | examples/accel/accel_countred.cpp | #include <OpenCLcontext.h>
#include <random>
#include <iostream>
#define X 800
#define Y 600
int
main(void)
{
try {
std::random_device rd;
std::mt19937 mt(rd());
std::uniform_int_distribution<unsigned int> dist;
unsigned int framebuffer[X*Y];
OpenCL_Manager mgr;
m... | #include <OpenCLcontext.h>
#include <random>
#include <iostream>
#define X 800
#define Y 600
#define SAMPLES 40
int
main(void)
{
try {
std::random_device rd;
std::mt19937 mt(rd());
std::uniform_int_distribution<unsigned int> dist;
unsigned int framebuffer[X*Y];
OpenCL_Ma... | add FPS counter | accel_countred.cpp: add FPS counter
| C++ | mit | pocl/pocl,pocl/pocl,pocl/pocl,pocl/pocl,pocl/pocl |
c657b0c30a4b23adfdbb82c05ef9afb7df29e11a | project/opencv/lib/cv_embox_imshowfb.cpp | project/opencv/lib/cv_embox_imshowfb.cpp | /**
* @file
*
* @date 12.04.2021
* @author Alexander Kalmuk
*/
#include <stdio.h>
#include <drivers/video/fb.h>
#include <util/log.h>
#include <algorithm>
#include <cv_embox_imshowfb.hpp>
void imshowfb(cv::Mat& img, int fbx) {
struct fb_info *fbi;
int w, h;
fbi = fb_lookup(fbx);
if (!fbi) {
... | /**
* @file
*
* @date 12.04.2021
* @author Alexander Kalmuk
*/
#include <stdio.h>
#include <drivers/video/fb.h>
#include <util/log.h>
#include <algorithm>
#include <cv_embox_imshowfb.hpp>
void imshowfb(cv::Mat& img, int fbx) {
struct fb_info *fbi;
int w, h;
fbi = fb_lookup(fbx);
if (!fbi) {
fprintf(stde... | Fix code formatting in cv_embox_imshowfb.cpp | opencv: Fix code formatting in cv_embox_imshowfb.cpp
| C++ | bsd-2-clause | embox/embox,embox/embox,embox/embox,embox/embox,embox/embox,embox/embox |
36829c4c8740ba6b1532b8e025293046c2fda649 | api/stream_manager.cc | api/stream_manager.cc | /*
* Copyright 2015 Cloudius Systems
*/
/*
* This file is part of Scylla.
*
* Scylla is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any l... | /*
* Copyright 2015 Cloudius Systems
*/
/*
* This file is part of Scylla.
*
* Scylla is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any l... | Fix stream_manager total_incoming/outgoing bytes | api: Fix stream_manager total_incoming/outgoing bytes
Any stream, no matter initialized by us or initialized by a peer node,
can send and receive data. We should audit incoming/outgoing bytes in
the all streams.
| C++ | agpl-3.0 | scylladb/scylla,raphaelsc/scylla,avikivity/scylla,raphaelsc/scylla,raphaelsc/scylla,duarten/scylla,avikivity/scylla,kjniemi/scylla,kjniemi/scylla,duarten/scylla,scylladb/scylla,kjniemi/scylla,scylladb/scylla,duarten/scylla,scylladb/scylla,avikivity/scylla |
b86ae1f0f20f843096dfa5940425166f81177fc5 | IO/vtkParticleReader.cxx | IO/vtkParticleReader.cxx | /*=========================================================================
Program: Visualization Toolkit
Module: vtkParticleReader.cxx
Language: C++
Date: $Date$
Version: $Revision$
Thanks: Thanks to C. Charles Law who developed this class.
Copyright (c) 1993-2001 Ken Martin, Will Schroe... | /*=========================================================================
Program: Visualization Toolkit
Module: vtkParticleReader.cxx
Language: C++
Date: $Date$
Version: $Revision$
Thanks: Thanks to C. Charles Law who developed this class.
Copyright (c) 1993-2001 Ken Martin, Will Schroe... | Fix bytswap again. | Fix bytswap again.
| C++ | bsd-3-clause | sgh/vtk,collects/VTK,sgh/vtk,candy7393/VTK,gram526/VTK,keithroe/vtkoptix,jeffbaumes/jeffbaumes-vtk,spthaolt/VTK,sgh/vtk,collects/VTK,keithroe/vtkoptix,sankhesh/VTK,gram526/VTK,biddisco/VTK,SimVascular/VTK,cjh1/VTK,sgh/vtk,keithroe/vtkoptix,jmerkow/VTK,naucoin/VTKSlicerWidgets,Wuteyan/VTK,daviddoria/PointGraphsPhase1,gr... |
71396bb948f74a61619d05325280fa3830f5c13f | examples/cpp/encode/file/main.cpp | examples/cpp/encode/file/main.cpp | /* example_cpp_encode_file - Simple FLAC file encoder using libFLAC
* Copyright (C) 2007,2008,2009 Josh Coalson
*
* 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... | /* example_cpp_encode_file - Simple FLAC file encoder using libFLAC
* Copyright (C) 2007,2008,2009 Josh Coalson
*
* 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... | Add missing <cstring> include. | Add missing <cstring> include.
Patch from Cyril Brulebois <cyril.brulebois@enst-bretagne.fr> via
Debian. Closes Debian bug #455304.
| C++ | bsd-3-clause | LordJZ/libflac,waitman/flac,waitman/flac,Distrotech/flac,fredericgermain/flac,LordJZ/libflac,fredericgermain/flac,Distrotech/flac,LordJZ/libflac,kode54/flac,waitman/flac,fredericgermain/flac,fredericgermain/flac,Distrotech/flac,waitman/flac,kode54/flac,waitman/flac,LordJZ/libflac,kode54/flac,Distrotech/flac,kode54/flac |
5b7a7c32f6867555e667ad2b3558b99df8358879 | net2/mac_cash.hpp | net2/mac_cash.hpp | #pragma once
//=========================================================================//
/*! @file
@brief MAC Cash @n
Copyright 2017 Kunihito Hiramatsu
@author 平松邦仁 (hira@rvf-rc45.net)
*/
//=========================================================================//
#include "common/ip_adrs.hpp"
... | #pragma once
//=========================================================================//
/*! @file
@brief MAC Cash @n
Copyright 2017 Kunihito Hiramatsu
@author 平松邦仁 (hira@rvf-rc45.net)
*/
//=========================================================================//
#include "common/ip_adrs.hpp"
... | update cash manage | update cash manage
| C++ | bsd-3-clause | hirakuni45/RX,hirakuni45/RX,hirakuni45/RX,hirakuni45/RX |
eda7148af25e8e106e8983fb37952263dcae5275 | src/mem/packet.cc | src/mem/packet.cc | /*
* 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 fixPacket functionality to calculate sizes properly | Fix fixPacket functionality to calculate sizes properly
src/mem/packet.cc:
Copy size is calculated by END-BEGIN not BEGIN-END
--HG--
extra : convert_revision : 0e2725c5551f8f70ff05cb285e0822afc0bb3f87
| C++ | bsd-3-clause | zlfben/gem5,qizenguf/MLC-STT,rjschof/gem5,joerocklin/gem5,gedare/gem5,SanchayanMaity/gem5,powerjg/gem5-ci-test,aclifton/cpeg853-gem5,powerjg/gem5-ci-test,sobercoder/gem5,TUD-OS/gem5-dtu,markoshorro/gem5,Weil0ng/gem5,briancoutinho0905/2dsampling,gedare/gem5,gedare/gem5,rallylee/gem5,yb-kim/gemV,joerocklin/gem5,aclifton/... |
259286d80a636f248aad55635d0cd3537e72cc84 | app/Model/regovar.cpp | app/Model/regovar.cpp | #include <QQmlContext>
#include <QQuickWindow>
#include <QQuickItem>
#include <QQmlComponent>
#include "regovar.h"
#include "request.h"
#include "Model/file/file.h"
#include "Model/analysis/filtering/reference.h"
Regovar* Regovar::mInstance = Q_NULLPTR;
Regovar* Regovar::i()
{
if (mInstance == Q_NULLPTR)
{
... | #include <QQmlContext>
#include <QQuickWindow>
#include <QQuickItem>
#include <QQmlComponent>
#include "regovar.h"
#include "request.h"
#include "Model/file/file.h"
#include "Model/analysis/filtering/reference.h"
Regovar* Regovar::mInstance = Q_NULLPTR;
Regovar* Regovar::i()
{
if (mInstance == Q_NULLPTR)
{
... | fix qml analysis windows dynamic creation | fix qml analysis windows dynamic creation
| C++ | agpl-3.0 | REGOVAR/QRegovar,REGOVAR/QRegovar |
dac910b660b8c88a16e93e75ed26af5c6ae5f34a | src/Net.cpp | src/Net.cpp | // Copyright 2005-2016 The Mumble Developers. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file at the root of the
// Mumble source tree or at <https://www.mumble.info/LICENSE>.
#include "murmur_pch.h"
#include "Net.h"
HostAddress::HostAddress... | // Copyright 2005-2016 The Mumble Developers. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file at the root of the
// Mumble source tree or at <https://www.mumble.info/LICENSE>.
#include "murmur_pch.h"
#include "Net.h"
HostAddress::HostAddress... | use QLatin1String instead of implicit char * -> QString conversion in Ban::toString(). | Net: use QLatin1String instead of implicit char * -> QString conversion in Ban::toString().
Fixes the build. We have QT_NO_CAST_FROM_ASCII set.
| C++ | bsd-3-clause | SuperNascher/mumble,LuAPi/mumble,LuAPi/mumble,LuAPi/mumble,Lartza/mumble,Lartza/mumble,Lartza/mumble,SuperNascher/mumble,SuperNascher/mumble,Lartza/mumble,LuAPi/mumble,Lartza/mumble,SuperNascher/mumble,LuAPi/mumble,SuperNascher/mumble,SuperNascher/mumble,Lartza/mumble,Lartza/mumble,Lartza/mumble,LuAPi/mumble,LuAPi/mumb... |
66746002bdee6ea0645dc585f1f145ffa9547009 | unittests/clang-query/QueryParserTest.cpp | unittests/clang-query/QueryParserTest.cpp | //===---- QueryParserTest.cpp - clang-query test --------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===---- QueryParserTest.cpp - clang-query test --------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Test non-code-completion on single letter shortcuts | [clang-query] Test non-code-completion on single letter shortcuts
git-svn-id: a34e9779ed74578ad5922b3306b3d80a0c825546@343536 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra |
ca51e537beeb42b1452fc750b45ff42b227d5e4e | include/utxx/noncopyable.hpp | include/utxx/noncopyable.hpp | //----------------------------------------------------------------------------
/// \file noncopyable.hpp
//----------------------------------------------------------------------------
/// This file contains a base class for noncopyable derived classes
//------------------------------------------------------------------... | //----------------------------------------------------------------------------
/// \file noncopyable.hpp
//----------------------------------------------------------------------------
/// This file contains a base class for noncopyable derived classes
//------------------------------------------------------------------... | Update non-copyable | Update non-copyable
| C++ | lgpl-2.1 | saleyn/utxx,saleyn/utxx,saleyn/utxx,saleyn/utxx,saleyn/utxx |
b2ec91ea1f12f1881d35956bfeb26ade21d97078 | includes/storage_concept.hpp | includes/storage_concept.hpp | #ifndef SDR_STORAGE_CONCEPT_H_
#define SDR_STORAGE_CONCEPT_H_
#include "constants.hpp"
#include "concept.hpp"
#include <unordered_set>
#include <iterator>
#include <vector>
namespace sdr
{
// represents a concept in storage
// designed to be able to be quickly queried and modified
struct storage_concept
{
// ... | #ifndef SDR_STORAGE_CONCEPT_H_
#define SDR_STORAGE_CONCEPT_H_
#include "constants.hpp"
#include "concept.hpp"
#include <iterator>
#include <vector>
namespace sdr
{
// represents a concept in storage
// designed to be able to be quickly queried and modified
struct storage_concept
{
// store the positions of al... | remove include for unnecessary type | remove include for unnecessary type
| C++ | mit | whackashoe/sdr,whackashoe/sdr,whackashoe/sdr |
a935379eba13db47ff50e58501523e46ed9637ce | cpp/tf/test_cuda_device_array.cpp | cpp/tf/test_cuda_device_array.cpp | #include <iostream>
#include <functional>
typedef uint32_t uint32;
typedef int32_t int32;
typedef uint64_t uint64;
typedef int64_t int64;
typedef uint16_t uint16;
typedef int8_t int8;
// #define DT_INT8 int8_t
template<typename T>
class DT {
public:
static const DT<T> get() {
const DT<T> v;
return... | #include <iostream>
#include <functional>
typedef uint32_t uint32;
typedef int32_t int32;
typedef uint64_t uint64;
typedef int64_t int64;
typedef uint16_t uint16;
typedef int8_t int8;
// #define DT_INT8 int8_t
template<typename T>
class DT {
public:
static const DT<T> get() {
const DT<T> v;
return... | add more cout | add more cout
| C++ | apache-2.0 | hughperkins/pub-prototyping,hughperkins/pub-prototyping,hughperkins/pub-prototyping,hughperkins/pub-prototyping,hughperkins/pub-prototyping,hughperkins/pub-prototyping,hughperkins/pub-prototyping |
32a6ebdce3ed4d829c3a42da69af80d1ff98837f | include/Bull/Core/Configuration/Integer.hpp | include/Bull/Core/Configuration/Integer.hpp | #ifndef BULL_CORE_CONFIGURATION_INTEGER_HPP
#define BULL_CORE_CONFIGURATION_INTEGER_HPP
#include <cstdint>
#include <utility>
namespace Bull
{
typedef uint8_t Uint8;
typedef uint16_t Uint16;
typedef uint32_t Uint32;
typedef uint64_t Uint64;
typedef int8_t Int8;
typedef int16_t Int16;
ty... | #ifndef BULL_CORE_CONFIGURATION_INTEGER_HPP
#define BULL_CORE_CONFIGURATION_INTEGER_HPP
#include <cstdint>
namespace Bull
{
typedef int8_t Int8;
typedef int16_t Int16;
typedef int32_t Int32;
typedef int64_t Int64;
typedef uint8_t Uint8;
typedef uint16_t Uint16;
typedef uint32_t Uint3... | Remove useless include | [Core/Integer] Remove useless include
| C++ | mit | siliace/Bull |
14f6abb96ebe014e01eec960ad45d01f393f577e | test/tests/main.cpp | test/tests/main.cpp | /**********************************************************\
This file is distributed under the MIT License.
See https://github.com/morzhovets/momo/blob/master/LICENSE
for details.
tests/main.cpp
\**********************************************************/
#include "pch.h"
int main()
{
std::cout << "__cpl... | /**********************************************************\
This file is distributed under the MIT License.
See https://github.com/morzhovets/momo/blob/master/LICENSE
for details.
tests/main.cpp
\**********************************************************/
#include "pch.h"
int main()
{
#ifdef _MSC_VER
std... | Print compiler versions | Print compiler versions
| C++ | mit | morzhovets/momo,morzhovets/momo |
545302d1b1d60072018cf5cc4ff5bdc502013ea6 | src/LexLua.cxx | src/LexLua.cxx | // Scintilla source code edit control
/** @file LexLua.cxx
** Lexer for Lua language.
**
** Written by Paul Winwood.
** Folder by Alexey Yutkin.
** Modified by Marcos E. Wurzius & Philippe Lhoste
**/
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <stdarg.h>
#include <stdio.h>
#include <fcntl... | // Scintilla source code edit control
/** @file LexLua.cxx
** Lexer for Lua language.
**
** Written by Paul Winwood.
** Folder by Alexey Yutkin.
** Modified by Marcos E. Wurzius & Philippe Lhoste
**/
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <stdarg.h>
#include <stdio.h>
#include <fcntl... | Patch from Philippe to fix multiline string handling. | Patch from Philippe to fix multiline string handling.
| C++ | isc | rhaberkorn/scintilla-mirror,rhaberkorn/scintilla-mirror,rhaberkorn/scintilla-mirror,rhaberkorn/scintilla-mirror,rhaberkorn/scintilla-mirror,rhaberkorn/scintilla-mirror,rhaberkorn/scintilla-mirror,rhaberkorn/scintilla-mirror |
31237b7356c9b2e9afb62ac6e2fd2de7ffd555f8 | example/image-classification/predict-cpp/image-classification-predict.cc | example/image-classification/predict-cpp/image-classification-predict.cc | /*!
* Copyright (c) 2015 by Xiao Liu, pertusa, caprice-j
* \file image_classification-predict.cpp
* \brief C++ predict example of mxnet
*/
//
// File: image-classification-predict.cpp
// This is a simple predictor which shows
// how to use c api for image classfication
// It uses opencv for image reading
// ... | /*!
* Copyright (c) 2015 by Xiao Liu, pertusa, caprice-j
* \file image_classification-predict.cpp
* \brief C++ predict example of mxnet
*/
//
// File: image-classification-predict.cpp
// This is a simple predictor which shows
// how to use c api for image classfication
// It uses opencv for image reading
// ... | fix shape order bug (#6136) | fix shape order bug (#6136)
| C++ | apache-2.0 | Guneet-Dhillon/mxnet,Guneet-Dhillon/mxnet,Guneet-Dhillon/mxnet,Guneet-Dhillon/mxnet,Guneet-Dhillon/mxnet,Guneet-Dhillon/mxnet,Guneet-Dhillon/mxnet,Guneet-Dhillon/mxnet,Guneet-Dhillon/mxnet |
f08afe6f8912de9dc082926516a5962b3defc773 | cc/subtle/aes_cmac_boringssl.cc | cc/subtle/aes_cmac_boringssl.cc | // Copyright 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | // Copyright 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | Remove use of BoringSSL-only `AES_CMAC` oneshot API in favor of a OpenSSL compatible set of calls to the `CMAC_*` interface | Remove use of BoringSSL-only `AES_CMAC` oneshot API in favor of a OpenSSL compatible set of calls to the `CMAC_*` interface
The `AES_CMAC` oneshot API [1] is essentially a wrapper around the `CMAC_*` APIs in BoringSSL.
[1] https://github.com/google/boringssl/blob/master/crypto/cmac/cmac.c#L84
PiperOrigin-RevId: 4240... | C++ | apache-2.0 | google/tink,google/tink,google/tink,google/tink,google/tink,google/tink,google/tink,google/tink |
303c8bcaa87561eefd03652a52779018f1792c99 | src/module.cpp | src/module.cpp | #include "module.h"
Module::Module(std::string modName, std::map<std::string, std::string> conf, std::string workDir, unsigned short debug, Base* botptr) : moduleName(modName), config(conf), workingDir(workDir), debugLevel(debug), bot(botptr), priority(PRI_NORMAL) {}
// The default priority is PRI_NORMAL but can be ov... | #include "module.h"
Module::Module(std::string modName, std::map<std::string, std::string> conf, std::string workDir, unsigned short debug, Base* botptr) : moduleName(modName), workingDir(workDir), config(conf), debugLevel(debug), bot(botptr), priority(PRI_NORMAL) {}
// The default priority is PRI_NORMAL but can be ov... | Fix the module initialization list order to be the correct order of declare | Fix the module initialization list order to be the correct order of declare
| C++ | mit | ElementalAlchemist/RoBoBo,ElementalAlchemist/RoBoBo |
c7b48eade9a86db9518740239beb6a9be4e48ce7 | io/src/robot_eye_grabber.cpp | io/src/robot_eye_grabber.cpp | /*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2012-, Open Perception, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... | /*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2012-, Open Perception, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... | Replace boost::math::isnan with check using pcl::isFinite | Replace boost::math::isnan with check using pcl::isFinite
| C++ | bsd-3-clause | damienjadeduff/pcl,jakobwilm/pcl,zavataafnan/pcl-truck,KevenRing/vlp,LZRS/pcl,fanxiaochen/mypcltest,3dtof/pcl,simonleonard/pcl,wgapl/pcl,mikhail-matrosov/pcl,chenxingzhe/pcl,KevenRing/pcl,Tabjones/pcl,srbhprajapati/pcl,shivmalhotra/pcl,chenxingzhe/pcl,jakobwilm/pcl,MMiknis/pcl,KevenRing/vlp,KevenRing/pcl,pkuhto/pcl,LZR... |
08ae5f310a475f73807df520fa0b50cf7138c4f5 | chrome/browser/extensions/extension_file_util_unittest.cc | chrome/browser/extensions/extension_file_util_unittest.cc | // Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/extension_file_util.h"
#include "base/file_util.h"
#include "base/scoped_temp_dir.h"
#include "base/string_util.h... | // Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/extension_file_util.h"
#include "base/file_util.h"
#include "base/scoped_temp_dir.h"
#include "base/string_util.h... | add unit test for ExtensionURLToRelativeFilePath | add unit test for ExtensionURLToRelativeFilePath
BUG=30749
TEST=this patch
Review URL: http://codereview.chromium.org/507054
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@35013 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | mogoweb/chromium-crosswalk,hgl888/chromium-crosswalk-efl,axinging/chromium-crosswalk,robclark/chromium,Fireblend/chromium-crosswalk,zcbenz/cefode-chromium,hgl888/chromium-crosswalk-efl,dednal/chromium.src,anirudhSK/chromium,Just-D/chromium-1,robclark/chromium,TheTypoMaster/chromium-crosswalk,hgl888/chromium-crosswalk-e... |
7cd79df3f46d5ddc98e15b1c9e45c43dfecf444b | classification/kth-svm-cross-validation-impl.hpp | classification/kth-svm-cross-validation-impl.hpp | #include "omp.h"
inline
kth_cv_svm::kth_cv_svm(const std::string in_path,
const std::string in_actionNames,
const field<std::string> in_all_people,
const int in_scale_factor,
const int in_shift,
const int in_scene, //only for kth
const int in_dim
):path(in_path... | #include "omp.h"
inline
kth_cv_svm::kth_cv_svm(const std::string in_path,
const std::string in_actionNames,
const field<std::string> in_all_people,
const int in_scale_factor,
const int in_shift,
const int in_scene, //only for kth
const int in_dim
):path(in_path... | Test svm_LogEucl | Test svm_LogEucl | C++ | agpl-3.0 | johanna-codes/study-paper,johanna-codes/study-paper |
fb1642951779b64e3a22e6bca5db8b3d34a0008c | daily_programmer/384.cpp | daily_programmer/384.cpp | /**
* Sample Use
* ==========
*
* echo -e "3d6\n10d13\n2d5" | python 384.py
*
*
* Description
* ===========
*
* I love playing D&D with my friends, and my favorite part is creating
* character sheets (my DM is notorious for killing us all off by level 3 or
* so). One major part of making character sheets is... | /**
* Sample Use
* ==========
*
* g++ -std=c++14 384.cpp
* echo -e "3d6\n10d13\n2d5" | a.out
*
*
* Description
* ===========
*
* I love playing D&D with my friends, and my favorite part is creating
* character sheets (my DM is notorious for killing us all off by level 3 or
* so). One major part of making c... | fix silly documentation example | fix silly documentation example
| C++ | mit | davidlowryduda/pythonMiniProjects,davidlowryduda/pythonMiniProjects |
87dc90dc9f29ba9de479042b3307b789bd7e854e | src/ofxCsv.cpp | src/ofxCsv.cpp | /**
* ofxCsv.cpp
* Inspired and based on Ben Fry's [table class](http://benfry.com/writing/map/Table.pde)
*
*
* The MIT License
*
* Copyright (c) 2011-2012 Paul Vollmer, http://www.wng.cc
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associat... | /**
* ofxCsv.cpp
* Inspired and based on Ben Fry's [table class](http://benfry.com/writing/map/Table.pde)
*
*
* The MIT License
*
* Copyright (c) 2011-2014 Paul Vollmer, http://www.wng.cc
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associat... | Update ofxCsv.cpp | Update ofxCsv.cpp | C++ | mit | paulvollmer/ofxCsv,jens-a-e/ofxCsv |
48297f583ece5d71878f6e7bb4655c66e07e1a83 | GPTP/src/hooks/consume_inject.cpp | GPTP/src/hooks/consume_inject.cpp | //The injector source file for the Consume hook module.
#include "consume.h"
#include <hook_tools.h>
namespace {
void __declspec(naked) consumeHitWrapper() {
CUnit *target, *caster;
__asm {
PUSHAD
MOV caster, ESI
MOV target, EAX
}
hooks::consumeHitHook(target, caster);
__asm {
POPA... | //The injector source file for the Consume hook module.
#include "consume.h"
#include <hook_tools.h>
namespace {
void __declspec(naked) consumeHitWrapper() {
static CUnit *target, *caster;
__asm {
PUSHAD
MOV caster, ESI
MOV target, EAX
}
hooks::consumeHitHook(target, caster);
__asm {
... | Fix a stack corruption bug in Consume hook module. | GPTP: Fix a stack corruption bug in Consume hook module. | C++ | isc | SCMapsAndMods/general-plugin-template-project,xboi209/general-plugin-template-project,SCMapsAndMods/general-plugin-template-project,xboi209/general-plugin-template-project |
b1637119637e2dc3e10635a08ac06e256018ea78 | src/display_buffer.hh | src/display_buffer.hh | #ifndef display_buffer_hh_INCLUDED
#define display_buffer_hh_INCLUDED
#include <vector>
#include "string.hh"
#include "color.hh"
#include "line_and_column.hh"
#include "buffer.hh"
#include "utf8.hh"
namespace Kakoune
{
struct DisplayCoord : LineAndColumn<DisplayCoord, LineCount, CharCount>
{
constexpr DisplayCo... | #ifndef display_buffer_hh_INCLUDED
#define display_buffer_hh_INCLUDED
#include <vector>
#include "string.hh"
#include "color.hh"
#include "line_and_column.hh"
#include "buffer.hh"
#include "utf8.hh"
namespace Kakoune
{
struct DisplayCoord : LineAndColumn<DisplayCoord, LineCount, CharCount>
{
constexpr DisplayCo... | store lines in a vector, not a list | DisplayBuffer: store lines in a vector, not a list
| C++ | unlicense | danielma/kakoune,Asenar/kakoune,lenormf/kakoune,rstacruz/kakoune,alexherbo2/kakoune,alpha123/kakoune,ekie/kakoune,alexherbo2/kakoune,danielma/kakoune,jkonecny12/kakoune,jkonecny12/kakoune,flavius/kakoune,xificurC/kakoune,ekie/kakoune,flavius/kakoune,jkonecny12/kakoune,Somasis/kakoune,ekie/kakoune,casimir/kakoune,mawww/... |
aea9d87648d9c7c1f33f276374953bcc508a3565 | chrome_frame/metrics_service.cc | chrome_frame/metrics_service.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.
//------------------------------------------------------------------------------
// Description of the life cycle of a instance of MetricsService.
//
... | // 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.
//------------------------------------------------------------------------------
// Description of the life cycle of a instance of MetricsService.
//
... | Fix stats collection in npchrome_frame.dll. | Fix stats collection in npchrome_frame.dll.
BUG=98449
TEST=set usagestats=DWORD1 in GCF's ClientState key, run GCF, use sawbuck to watch for the METRICS LOG message and confirm that it's not just an empty <log .../> element.
Review URL: http://codereview.chromium.org/8071008
git-svn-id: de016e52bd170d2d4f2344f9bf92... | C++ | bsd-3-clause | ropik/chromium,ropik/chromium,gavinp/chromium,yitian134/chromium,gavinp/chromium,adobe/chromium,adobe/chromium,gavinp/chromium,gavinp/chromium,yitian134/chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,ropik/chromium,adobe/chromium,adobe/chromium,gavinp/chromium,gavinp/chromium,gavinp/chromium,yitian134/ch... |
c61c37a45453fbcb2f8c55aab538ba025fea6abe | HopsanGUI/Dialogs/AboutDialog.cpp | HopsanGUI/Dialogs/AboutDialog.cpp | /*-----------------------------------------------------------------------------
Copyright 2017 Hopsan Group
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the Licen... | /*-----------------------------------------------------------------------------
Copyright 2017 Hopsan Group
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the Licen... | Update HopsanGUI in-program contributors list | Update HopsanGUI in-program contributors list
Should read from AUTHORS file
| C++ | apache-2.0 | Hopsan/hopsan,Hopsan/hopsan,Hopsan/hopsan,Hopsan/hopsan,Hopsan/hopsan,Hopsan/hopsan |
9a15404f75f01ca6dd33bb8c445693c29ebf5b43 | src/errdoc.cxx | src/errdoc.cxx | /*
* Error document handler.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "errdoc.hxx"
#include "request.hxx"
#include "bp_instance.hxx"
#include "http_server/Request.hxx"
#include "http_headers.hxx"
#include "http_response.hxx"
#include "tcache.hxx"
#include "TranslateHandler.hxx"
#include "ResourceLoad... | /*
* Error document handler.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "errdoc.hxx"
#include "request.hxx"
#include "bp_instance.hxx"
#include "http_server/Request.hxx"
#include "http_headers.hxx"
#include "http_response.hxx"
#include "tcache.hxx"
#include "TranslateHandler.hxx"
#include "ResourceLoad... | use async_operation::Init2() | errdoc: use async_operation::Init2() | C++ | bsd-2-clause | CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy |
6764c609622756f58c7117e1360c3abbc6ede39f | protocols/yahoo/yahoowebcam.cpp | protocols/yahoo/yahoowebcam.cpp | /*
yahoowebcam.cpp - Send webcam images
Copyright (c) 2005 by André Duffec <andre.duffeck@kdemail.net>
*************************************************************************
* *
* This program is free software; you can redist... | /*
yahoowebcam.cpp - Send webcam images
Copyright (c) 2005 by André Duffec <andre.duffeck@kdemail.net>
*************************************************************************
* *
* This program is free software; you can redist... | Fix strange grey images shown by the official Yahoo Messenger. BUG: 127223 | Fix strange grey images shown by the official Yahoo Messenger.
BUG: 127223
svn path=/branches/kopete/0.12/kopete/; revision=541921
| C++ | lgpl-2.1 | josh-wambua/kopete,josh-wambua/kopete,josh-wambua/kopete,josh-wambua/kopete,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136 |
62e3dd8b94bd53940ceaba809bd6b79069203395 | src/parser.hpp | src/parser.hpp | #ifndef DICE_PARSER_HPP_
#define DICE_PARSER_HPP_
#include <memory>
#include <string>
#include <vector>
#include <ostream>
#include <functional>
#include <unordered_map>
#include "logger.hpp"
#include "value.hpp"
#include "lexer.hpp"
#include "environment.hpp"
#include "random_variable.hpp"
namespace dice
{
// a... | #ifndef DICE_PARSER_HPP_
#define DICE_PARSER_HPP_
#include <memory>
#include <string>
#include <vector>
#include <ostream>
#include <functional>
#include <unordered_map>
#include "logger.hpp"
#include "value.hpp"
#include "lexer.hpp"
#include "environment.hpp"
#include "random_variable.hpp"
namespace dice
{
// d... | Remove unused parse_error | Remove unused parse_error
| C++ | mit | trylock/dice |
b92dfe605b0ade7d521990eca4d9212b78e94f0c | engine/physics/Raycast.cpp | engine/physics/Raycast.cpp | /*
Copyright (c) 2013 Daniele Bartolini, Michele Rossi
Copyright (c) 2012 Daniele Bartolini, Simone Boscaratto
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 withou... | /*
Copyright (c) 2013 Daniele Bartolini, Michele Rossi
Copyright (c) 2012 Daniele Bartolini, Simone Boscaratto
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 withou... | fix overlap_tests in PhysicsWorld | fix overlap_tests in PhysicsWorld
| C++ | mit | dbartolini/crown,mikymod/crown,galek/crown,taylor001/crown,dbartolini/crown,taylor001/crown,dbartolini/crown,mikymod/crown,taylor001/crown,mikymod/crown,taylor001/crown,galek/crown,galek/crown,galek/crown,dbartolini/crown,mikymod/crown |
7627b37c98977223d0ffc4591814644bd9882a51 | engine/plugins/sampler.cpp | engine/plugins/sampler.cpp | // Copyright 2012-2013 Samplecount S.L.
//
// 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 agr... | // Copyright 2012-2013 Samplecount S.L.
//
// 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 agr... | Add resampling to sampler plugin | Add resampling to sampler plugin
Closes #66.
| C++ | apache-2.0 | samplecount/methcla,samplecount/methcla,samplecount/methcla,samplecount/methcla,samplecount/methcla,samplecount/methcla |
92563e68d66672f6b58142c3e7aaeb3a1b18be07 | src/Gui/SelectionManager/SelectionManager.hpp | src/Gui/SelectionManager/SelectionManager.hpp | #pragma once
#include <Gui/RaGui.hpp>
#include <Engine/Scene/ItemEntry.hpp>
#include <Gui/TreeModel/EntityTreeModel.hpp>
#include <QItemSelectionModel>
namespace Ra {
namespace Engine {
class Entity;
class Component;
} // namespace Engine
} // namespace Ra
namespace Ra {
namespace Gui {
class RA_GUI_API SelectionMa... | #pragma once
#include <Gui/RaGui.hpp>
#include <Engine/Scene/ItemEntry.hpp>
#include <Gui/TreeModel/EntityTreeModel.hpp>
#include <QItemSelectionModel>
namespace Ra {
namespace Gui {
class RA_GUI_API SelectionManager : public QItemSelectionModel
{
Q_OBJECT
public:
explicit SelectionManager( ItemModel* mode... | remove bad forward decl. | [gui] remove bad forward decl.
| C++ | bsd-3-clause | Zouch/Radium-Engine,Zouch/Radium-Engine |
64982e39f3a5e2e42224f05a2ef764a09e12f1de | src/ryml/span.hpp | src/ryml/span.hpp | #ifndef _C4_RYML_SPAN_HPP_
#define _C4_RYML_SPAN_HPP_
#include <string.h>
#include "./common.hpp"
namespace c4 {
namespace yml {
template< class C > class basic_span;
using span = basic_span< char >;
using cspan = basic_span< const char >;
template< class OStream, class C >
OStream& operator<< (OStream& s, basic_s... | #ifndef _C4_RYML_SPAN_HPP_
#define _C4_RYML_SPAN_HPP_
#include <string.h>
#include "./common.hpp"
namespace c4 {
namespace yml {
template< class C > class basic_span;
using span = basic_span< char >;
using cspan = basic_span< const char >;
template< class OStream, class C >
OStream& operator<< (OStream& s, basic_s... | add begins_with()/ends_with() overload for repeated characters | span: add begins_with()/ends_with() overload for repeated characters
| C++ | mit | biojppm/rapidyaml,biojppm/rapidyaml,biojppm/rapidyaml |
1b458a52fbcc445879843d6cacf9ff7e8308ab3e | Modules/Core/Transform/test/itkAzimuthElevationToCartesianTransformTest.cxx | Modules/Core/Transform/test/itkAzimuthElevationToCartesianTransformTest.cxx | /*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... | /*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... | Fix PointDimension reference in AzimuthElevationToCartesian test. | COMP: Fix PointDimension reference in AzimuthElevationToCartesian test.
Addresses:
/scratch/dashboards/Linux-x86_64-gcc4.6/ITK/Modules/Core/Transform/test/itkAzimuthElevationToCartesianTransformTest.cxx:130:
undefined reference to `itk::Point<double, 3u>::PointDimension'
This is a follow-up to Change-Id: If19eb5... | C++ | apache-2.0 | zachary-williamson/ITK,BRAINSia/ITK,richardbeare/ITK,Kitware/ITK,thewtex/ITK,hjmjohnson/ITK,stnava/ITK,malaterre/ITK,BRAINSia/ITK,InsightSoftwareConsortium/ITK,stnava/ITK,vfonov/ITK,thewtex/ITK,BRAINSia/ITK,hjmjohnson/ITK,spinicist/ITK,PlutoniumHeart/ITK,spinicist/ITK,PlutoniumHeart/ITK,Kitware/ITK,InsightSoftwareConso... |
31b32d092f5f5de15652442107c0e4bd89f9704b | Source/core/loader/BeaconLoader.cpp | Source/core/loader/BeaconLoader.cpp | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "config.h"
#include "core/loader/BeaconLoader.h"
#include "core/FetchInitiatorTypeNames.h"
#include "core/fetch/CrossOriginAccessControl.h"
#inc... | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "config.h"
#include "core/loader/BeaconLoader.h"
#include "core/FetchInitiatorTypeNames.h"
#include "core/fetch/CrossOriginAccessControl.h"
#inc... | Use a precise target type for Beacon requests. | Use a precise target type for Beacon requests.
To allow the embedder to distinguish POST requests emanating from
sendBeacon() from those from a <a ping>, assign a more precise target
type to the former.
This is done in preparation for adding Beacon-Age: headers to Beacon
requests.
R=mkwst@chromium.org
BUG=398167
Re... | C++ | bsd-3-clause | jtg-gg/blink,PeterWangIntel/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,hgl888/blink-crosswalk-efl,ondra-novak/blink,smishenk/blink-crosswalk,jtg-gg/blink,XiaosongWei/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,XiaosongWei/blink-crosswalk,kurli/blink-crosswalk,jtg-gg/blink,Bysmyyr/blink-crosswalk,Xi... |
7419fdf53b4a408fdc13b1ea626f7a2bdd47903d | plugins/gipfeli/squash-gipfeli.cpp | plugins/gipfeli/squash-gipfeli.cpp | /* Copyright (c) 2013-2014 The Squash Authors
*
* 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, me... | /* Copyright (c) 2013-2014 The Squash Authors
*
* 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, me... | handle buffer full errors during compression | gipfeli: handle buffer full errors during compression
| C++ | mit | jibsen/squash,Cloudef/squash,Cloudef/squash,wolut/squash,Cloudef/squash,jibsen/squash,quixdb/squash,quixdb/squash,quixdb/squash,wolut/squash,jibsen/squash,wolut/squash |
78e56d9de29d8f6e54422c6b2121060dff95f3ae | src/js_grid_utils.hpp | src/js_grid_utils.hpp | #ifndef __NODE_MAPNIK_GRID_UTILS_H__
#define __NODE_MAPNIK_GRID_UTILS_H__
// v8
#include <v8.h>
// mapnik
#include <mapnik/grid/grid.hpp>
#include "utils.hpp"
using namespace v8;
using namespace node;
namespace node_mapnik {
template <typename T>
static void grid2utf(T const& grid_type,
Local<Array>& l,
... | #ifndef __NODE_MAPNIK_GRID_UTILS_H__
#define __NODE_MAPNIK_GRID_UTILS_H__
// v8
#include <v8.h>
// mapnik
#include <mapnik/grid/grid.hpp>
#include "utils.hpp"
using namespace v8;
using namespace node;
namespace node_mapnik {
template <typename T>
static void grid2utf(T const& grid_type,
Local<Array>& l,
... | disable grid data and avoid segfault with latest mapnik | disable grid data and avoid segfault with latest mapnik
| C++ | bsd-3-clause | MaxSem/node-mapnik,gravitystorm/node-mapnik,mojodna/node-mapnik,tomhughes/node-mapnik,Uli1/node-mapnik,CartoDB/node-mapnik,mapnik/node-mapnik,langateam/node-mapnik,mapnik/node-mapnik,mapnik/node-mapnik,CartoDB/node-mapnik,CartoDB/node-mapnik,mojodna/node-mapnik,langateam/node-mapnik,gravitystorm/node-mapnik,Uli1/node-m... |
84844738693e3097c49267ca8b8447e23207074b | src/statement.cpp | src/statement.cpp | #include "sqlitewrapper/statement.h"
#include <cstdint>
#include <vector>
#include "sqlitewrapper/binder.h"
#include "sqlitewrapper/exceptions.h"
#include "sqlitewrapper/sqlite3.h"
namespace SqliteWrapper {
struct Statement::Impl
{
sqlite3_stmt *stmt = nullptr;
};
Statement::Statement(sqlite3_stmt *stmt)
:... | #include "sqlitewrapper/statement.h"
#include <cstdint>
#include <vector>
#include "sqlitewrapper/binder.h"
#include "sqlitewrapper/exceptions.h"
#include "sqlitewrapper/sqlite3.h"
namespace SqliteWrapper {
struct Statement::Impl
{
sqlite3_stmt *stmt = nullptr;
};
Statement::Statement(sqlite3_stmt *stmt)
:... | Fix unsigned long Row::getUnchecked | Fix unsigned long Row::getUnchecked
| C++ | bsd-3-clause | kullo/smartsqlite,kullo/smartsqlite,kullo/smartsqlite |
dba3b9829bfd70da4e309490ea930c1b1505f106 | src/leaf-node-box.cpp | src/leaf-node-box.cpp | //
// leaf-node-box.cpp
// gepetto-viewer
//
// Created by Justin Carpentier, Mathieu Geisert in November 2014.
// Copyright (c) 2014 LAAS-CNRS. All rights reserved.
//
#include <gepetto/viewer/leaf-node-box.h>
#include <stdio.h>
namespace graphics {
/* Declaration of private function members */
voi... | //
// leaf-node-box.cpp
// gepetto-viewer
//
// Created by Justin Carpentier, Mathieu Geisert in November 2014.
// Copyright (c) 2014 LAAS-CNRS. All rights reserved.
//
#include <gepetto/viewer/leaf-node-box.h>
#include <stdio.h>
namespace graphics {
/* Declaration of private function members */
voi... | Fix LeafNodeBox box half lengths property | Fix LeafNodeBox box half lengths property
| C++ | bsd-3-clause | olivier-stasse/gepetto-viewer |
62d52de8e7c0f61150579becc59a4dcec60e2caa | src/tcp_stock.cxx | src/tcp_stock.cxx | /*
* TCP client connection pooling.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "tcp_stock.hxx"
#include "stock/MapStock.hxx"
#include "stock/Stock.hxx"
#include "stock/Class.hxx"
#include "stock/Item.hxx"
#include "async.hxx"
#include "address_list.hxx"
#include "gerrno.h"
#include "pool.hxx"
#include ... | /*
* TCP client connection pooling.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "tcp_stock.hxx"
#include "stock/MapStock.hxx"
#include "stock/Stock.hxx"
#include "stock/Class.hxx"
#include "stock/Item.hxx"
#include "async.hxx"
#include "address_list.hxx"
#include "gerrno.h"
#include "pool.hxx"
#include ... | use class SocketEvent | tcp_stock: use class SocketEvent | C++ | bsd-2-clause | CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy |
c65c26d6a9fe2874cb0dd641550c78fa3f49993d | src/tests/cli.cpp | src/tests/cli.cpp | #include <iostream>
#include <iostream>
#include <memory>
#include "common/definitions.h"
#include "common/options.h"
#include "common/cli_wrapper.h"
#include "common/cli_helper.h"
using namespace marian;
using namespace marian::cli;
enum color { red, green, blue };
template <typename S>
S &operator<<(S &s, const c... | #include <iostream>
#include <iostream>
#include <memory>
#include "common/definitions.h"
#include "common/options.h"
#include "common/cli_wrapper.h"
#include "common/cli_helper.h"
using namespace marian;
using namespace marian::cli;
enum color { red, green, blue };
template <typename S>
S &operator<<(S &s, const c... | Fix test | Fix test
| C++ | mit | emjotde/amunmt,emjotde/amunmt,emjotde/amunn,emjotde/amunmt,marian-nmt/marian-train,emjotde/amunn,marian-nmt/marian-train,marian-nmt/marian-train,marian-nmt/marian-train,emjotde/amunmt,marian-nmt/marian-train,emjotde/Marian,emjotde/amunn,emjotde/Marian,emjotde/amunn |
606aed0e2fd084da050676b4b416e87d920ff78c | src/lib/IsingGrid.cpp | src/lib/IsingGrid.cpp | //
// IsingGrid.cpp
// jdemon
//
// Created by Mark Larus on 3/11/13.
// Copyright (c) 2013 Kenyon College. All rights reserved.
//
#include "IsingGrid.h"
#include <boost/iterator/filter_iterator.hpp>
using namespace Ising;
using namespace detail;
const Kind Ising::detail::even = false;
const Kind Ising::detail::... | //
// IsingGrid.cpp
// jdemon
//
// Created by Mark Larus on 3/11/13.
// Copyright (c) 2013 Kenyon College. All rights reserved.
//
#include "IsingGrid.h"
#include <boost/iterator/filter_iterator.hpp>
using namespace Ising;
using namespace detail;
const Kind Ising::detail::even = false;
const Kind Ising::detail::... | Implement the ising energy correctly. | Implement the ising energy correctly.
| C++ | mit | marblar/demon,marblar/demon,marblar/demon,marblar/demon |
6d11129342d4b4971a6965d70f2bc1d4c614a5e9 | src/ttrss_api.cpp | src/ttrss_api.cpp | #include <json.h>
#include <remote_api.h>
#include <ttrss_api.h>
#include <cstring>
#include <algorithm>
#include <markreadthread.h>
namespace newsbeuter {
ttrss_api::ttrss_api(configcontainer * c) : remote_api(c) {
single = (cfg->get_configvalue("ttrss-mode") == "single");
auth_info = utils::strprintf("%s:%s", cf... | #include <json.h>
#include <remote_api.h>
#include <ttrss_api.h>
#include <cstring>
#include <algorithm>
#include <markreadthread.h>
namespace newsbeuter {
ttrss_api::ttrss_api(configcontainer * c) : remote_api(c) {
single = (cfg->get_configvalue("ttrss-mode") == "single");
auth_info = utils::strprintf("%s:%s", cf... | use utis::signed_to_s in ttrss_api.cpp::fetch_feeds_per_category | use utis::signed_to_s in ttrss_api.cpp::fetch_feeds_per_category
ttrss has special categories, which are asigned ids below 0.
If using the unsigned to_s() method these result in queries to
nonexistend categories.
| C++ | mit | newsboat/newsboat,travisred/newsbeuter,der-lyse/newsboat,travisred/newsbeuter,der-lyse/newsboat,der-lyse/newsboat,newsboat/newsboat,x4121/newsbeuter,x4121/newsbeuter,der-lyse/newsboat,newsboat/newsboat,der-lyse/newsboat,travisred/newsbeuter,newsboat/newsboat,travisred/newsbeuter,der-lyse/newsboat,newsboat/newsboat,x412... |
1c4522c8776d16853c426ad3bc06c25871176b2f | LxssFileSystem/LxssFileSystem.cpp | LxssFileSystem/LxssFileSystem.cpp | #define _CRT_SECURE_NO_WARNINGS
#define WIN32_NO_STATUS
#include <Windows.h>
#undef WIN32_NO_STATUS
#include <winternl.h>
#include <ntstatus.h>
#include <objbase.h>
#include <climits>
struct FILE_DIRECTORY_INFORMATION {
ULONG NextEntryOffset;
ULONG FileIndex;
LARGE_INTEGER CreationTime;
LARGE_INTEGER... | #define _CRT_SECURE_NO_WARNINGS
#define WIN32_NO_STATUS
#include <Windows.h>
#undef WIN32_NO_STATUS
#include <winternl.h>
#include <ntstatus.h>
#include <objbase.h>
#include <climits>
struct FILE_DIRECTORY_INFORMATION {
ULONG NextEntryOffset;
ULONG FileIndex;
LARGE_INTEGER CreationTime;
LARGE_INTEGER... | Fix array freeing in SetLxssEa. | Fix array freeing in SetLxssEa.
| C++ | mit | sqc1999/LxRunOffline |
11335bc643d0034624c6763703d28e68f88f8a29 | src/vu8/Class.hpp | src/vu8/Class.hpp | #ifndef TSA_VU8_CLASS_HPP
#define TSA_VU8_CLASS_HPP
#include <vu8/ToV8.hpp>
#include <vu8/FromV8.hpp>
#include <vu8/Throw.hpp>
#include <vu8/Factory.hpp>
#include <vu8/CallFromV8.hpp>
#include <vu8/detail/Proto.hpp>
#include <vu8/detail/Singleton.hpp>
#include <vu8/detail/Class.hpp>
#include <boost/fusion/container/v... | #ifndef TSA_VU8_CLASS_HPP
#define TSA_VU8_CLASS_HPP
#include <vu8/ToV8.hpp>
#include <vu8/FromV8.hpp>
#include <vu8/Throw.hpp>
#include <vu8/Factory.hpp>
#include <vu8/CallFromV8.hpp>
#include <vu8/detail/Proto.hpp>
#include <vu8/detail/Singleton.hpp>
#include <vu8/detail/Class.hpp>
#include <boost/fusion/container/v... | Optimise use of external objects. | Optimise use of external objects.
| C++ | mit | tsa/vu8,tsa/vu8 |
edb431796edcc20e263607a5efa768a9cec0e70c | OOInteraction/test/SimpleTest.cpp | OOInteraction/test/SimpleTest.cpp | /***********************************************************************************************************************
**
** Copyright (c) 2011, 2012 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
** follo... | /***********************************************************************************************************************
**
** Copyright (c) 2011, 2012 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
** follo... | Modify the OOInteraction test to create an expression from a string. | Modify the OOInteraction test to create an expression from a string. | C++ | bsd-3-clause | BalzGuenat/Envision,mgalbier/Envision,Vaishal-shah/Envision,BalzGuenat/Envision,lukedirtwalker/Envision,lukedirtwalker/Envision,Vaishal-shah/Envision,lukedirtwalker/Envision,dimitar-asenov/Envision,patrick-luethi/Envision,BalzGuenat/Envision,dimitar-asenov/Envision,patrick-luethi/Envision,mgalbier/Envision,lukedirtwalk... |
0bf97f8077d502027a904e9aaeb5b3f191e9395d | src/gen.cpp | src/gen.cpp | #include "gen.h"
#ifdef __linux__
#include <linux/limits.h>
#endif
#include <iostream>
#include <fstream>
#include <string.h>
#include <unistd.h>
#include <libgen.h>
#include <dirent.h>
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/types.h>
#define BASEDIR DefineBaseDir()
Generate::Generate() {};
Generate... | #include "gen.h"
#ifdef __linux__
#include <linux/limits.h>
#endif
#include <err.h>
#include <errno.h>
#include <dirent.h>
#include <libgen.h>
#include <regex.h>
#include <string.h>
#include <unistd.h>
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <fstream>
#include <iostream>
#include <... | Add member functions, fix includes | Add member functions, fix includes
- Add member functions for walking a directory recursively. This
still needs to be implemented in a way that maps files to an
array or vector for later access. Other new member functions
serve as more boilerplate than anything.
- Fix includes order
Signed-off-by: Alberto ... | C++ | bsd-3-clause | 0X1A/yabs,0X1A/yabs,0X1A/yabs,0X1A/yabs |
3e08ab6cdb207039d4695753f0e419c34a35710e | src/search.cpp | src/search.cpp | #include "search.h"
#include "evaluate.h"
#include <climits>
#include <array>
#include <cassert>
#include <functional>
#include <iostream> // TEMP
namespace lesschess {
// be careful to avoid overflow from INT_MIN == -INT_MIN
constexpr int INFINITY = INT_MAX - 1;
// Number of moves upper bound:
// K -> 8 + 2 castles... | #include "search.h"
#include "evaluate.h"
#include <climits>
#include <array>
#include <cassert>
#include <functional>
#include <iostream> // TEMP
namespace lesschess {
// be careful to avoid overflow from INT_MIN == -INT_MIN
constexpr int INFINITY = INT_MAX - 1;
// Number of moves upper bound:
// K -> 8 + 2 castles... | change name to negamax | change name to negamax
| C++ | mit | selavy/lesschess,selavy/lesschess,selavy/lesschess |
ceb942375d8b77c367e3792e848b3f143ec8b6be | src/h2f.cpp | src/h2f.cpp | /*
Copyright (c) 2018 - present Advanced Micro Devices, Inc. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to us... | /*
Copyright (c) 2018 - present Advanced Micro Devices, Inc. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to us... | Make __gnu_h2f_ieee and __gnu_f2h_ieee visible | Make __gnu_h2f_ieee and __gnu_f2h_ieee visible
Make __gnu_h2f_ieee and __gnu_f2h_ieee visible so that hipTestHalf
test can succeed in Clang compiler + Hcc RT.
Change-Id: I5f7d5db19e559b3b66356f0170a8dbc1e5505f3e
| C++ | mit | ROCm-Developer-Tools/HIP,ROCm-Developer-Tools/HIP,ROCm-Developer-Tools/HIP,ROCm-Developer-Tools/HIP,ROCm-Developer-Tools/HIP |
7dbf21489320bba0a7db7e6ea5b584878d3e2803 | src/simple.cpp | src/simple.cpp | #include <iostream>
#include <chrono>
#include <random>
#include <numeric>
#include <blaze/Math.h>
#include "etl/etl.hpp"
#include "etl/multiplication.hpp"
typedef std::chrono::high_resolution_clock timer_clock;
typedef std::chrono::milliseconds milliseconds;
typedef std::chrono::microseconds microseconds;
namespac... | #include <iostream>
#include <chrono>
#include <random>
#include <numeric>
#include <blaze/Math.h>
#include "etl/etl.hpp"
#include "etl/multiplication.hpp"
typedef std::chrono::high_resolution_clock timer_clock;
typedef std::chrono::milliseconds milliseconds;
typedef std::chrono::microseconds microseconds;
namespac... | Add scale to the benchmark | Add scale to the benchmark
| C++ | mit | wichtounet/etl_vs_blaze |
ff5eeb6beebda3cb406906d8cff40a5fb41eedf2 | src/thread.cpp | src/thread.cpp | //===------------------------- thread.cpp----------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | //===------------------------- thread.cpp----------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | Fix the build of thread.cpp on CloudABI. | Fix the build of thread.cpp on CloudABI.
CloudABI does provide unistd.h, but doesn't define __unix__. We need to
include this header file to make hardware_concurrency work.
git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@294832 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx |
088566adaff91fbb3acc8e22cd54ceec21c0cf6a | tests/test_qios.cpp | tests/test_qios.cpp | /*
* Copyright (c) 2012, 2013 Aldebaran Robotics. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the COPYING file.
*/
#ifdef _WIN32
# include <winsock2.h>
# include <process.h> // for getpid
# include <windows.h>
#else
# include <arpa/inet.h>
# include <un... | /*
* Copyright (c) 2012, 2013 Aldebaran Robotics. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the COPYING file.
*/
#ifdef _WIN32
# include <winsock2.h>
# include <process.h> // for getpid
# include <windows.h>
#else
# include <arpa/inet.h>
# include <un... | add many tests | qi::os::fnmatch: add many tests
Change-Id: Ia6092fe10c93817ec08702fb73c6a0df18855768
Reviewed-on: http://gerrit.aldebaran.lan/19342
Tested-by: gerrit
Reviewed-by: pagoya <7ffac46e4411217b32d23ad04d1d8258bc41aef0@aldebaran-robotics.com>
| C++ | bsd-3-clause | aldebaran/libqi,bsautron/libqi,aldebaran/libqi,vbarbaresi/libqi,aldebaran/libqi |
80dc06ad4f091d33f381471e746c40911b84486c | src/win/pty.cc | src/win/pty.cc | /**
* pty.js
* Copyright (c) 2012, Christopher Jeffrey, Peter Sunde (MIT License)
*
* pty.cc:
* This file is responsible for starting processes
* with pseudo-terminal file descriptors.
*/
#include <v8.h>
#include <node.h>
#include <uv.h>
#include <node_buffer.h>
#include <string.h>
#include <stdlib.h>
#include <wi... | /**
* pty.js
* Copyright (c) 2012, Christopher Jeffrey, Peter Sunde (MIT License)
*
* pty.cc:
* This file is responsible for starting processes
* with pseudo-terminal file descriptors.
*/
#include <v8.h>
#include <node.h>
#include <uv.h>
#include <node_buffer.h>
#include <string.h>
#include <stdlib.h>
#include <wi... | Fix current working dir and remove exception. | Fix current working dir and remove exception.
| C++ | mit | codio/pty.js,mikeal/pty.js,mikeal/pty.js,codio/pty.js,iiegor/pty.js,iiegor/ptyw.js,iiegor/ptyw.js,enlight/node-unix-pty,JamesMGreene/node-partty,iiegor/pty.js,marcominetti/pty.js,jeremyramin/pty.js,pandaman64/pty.js,etiktin/pty.js,soumith/pty.js,mcanthony/pty.js,tejasmanohar/pty.js,iiegor/ptyw.js,jo-osborne/pty.js,chjj... |
b327dac6d48ebc86ddb01248b4ab9c26fe7cb0cd | src/window.cpp | src/window.cpp | /*******************************************************
* Copyright (c) 2015-2019, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
*****************************************... | /*******************************************************
* Copyright (c) 2015-2019, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
*****************************************... | refresh grids bugfix | refresh grids bugfix
| C++ | bsd-3-clause | pavanky/forge,syurkevi/forge,arrayfire/forge,syurkevi/forge,arrayfire/forge,pavanky/forge |
b1fc30ca79e93bea5a3efc63d01ef9dd67c9c674 | src/main.cc | src/main.cc | #include <cassert>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <time.h>
#include <stdint.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "erl_interface.h"
#include "ei.h"
#include <chrono>
#include <algorithm>
#include <iostream>
#include... | #include <cassert>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <time.h>
#include <stdint.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "erl_interface.h"
#include "ei.h"
#include <chrono>
#include <algorithm>
#include <iostream>
#include... | Update main.cc | Update main.cc
removed test suite | C++ | mit | martinsk/etally_core |
fd479683f1cc9cf62a5fb2b7c8250d993fbf6bc3 | src/ylocale.cc | src/ylocale.cc | /*
* IceWM - C++ wrapper for locale/unicode conversion
* Copyright (C) 2001 The Authors of IceWM
*
* Released under terms of the GNU Library General Public License
*
* 2001/07/21: Mathias Hasselmann <mathias.hasselmann@gmx.net>
* - initial revision
*/
#include "config.h"
#include "ylocale.h"
#include... | /*
* IceWM - C++ wrapper for locale/unicode conversion
* Copyright (C) 2001 The Authors of IceWM
*
* Released under terms of the GNU Library General Public License
*
* 2001/07/21: Mathias Hasselmann <mathias.hasselmann@gmx.net>
* - initial revision
*/
#include "config.h"
#include "ylocale.h"
#include... | correct format error | correct format error
| C++ | lgpl-2.1 | dicej/icewm,dicej/icewm,dicej/icewm,dicej/icewm |
88a5b246f1ccff2fe978b12a8ca52194f798a06d | testvectorsfile.cpp | testvectorsfile.cpp | #include "testvectorsfile.h"
#include "serializer.h"
#include "consts.h"
#include "blob.h"
#include <iostream>
#include <string>
namespace
{
template< typename T >
Blob createFileBlobHash( const T& content )
{
std::vector< Blob > partials;
for ( size_t pos = 0; pos < content.size(); pos +... | #include "testvectorsfile.h"
#include "serializer.h"
#include "consts.h"
#include "blob.h"
#include <iostream>
#include <string>
namespace
{
template< typename T >
Blob createFileBlobHash( const T& content )
{
std::vector< Blob > partials;
for ( size_t pos = 0; pos < content.size(); pos +... | Add generation of split file test vector | Add generation of split file test vector
| C++ | bsd-3-clause | cinode/cpptestapp,cinode/cpptestapp |
9f6f711f8d5d2ce1c6983a03076aecd08ca05736 | tgt-vhdl/process.cc | tgt-vhdl/process.cc | /*
* VHDL code generation for processes.
*
* Copyright (C) 2008 Nick Gasson (nick@nickg.me.uk)
*
* 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
... | /*
* VHDL code generation for processes.
*
* Copyright (C) 2008 Nick Gasson (nick@nickg.me.uk)
*
* 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
... | Remove unused variable | Remove unused variable
| C++ | lgpl-2.1 | CastMi/iverilog,CastMi/iverilog,CastMi/iverilog,themperek/iverilog,themperek/iverilog,themperek/iverilog |
0f8e5ec41622f60a24ed5b8fa146c60d9d1fe03c | tools/siconvert.cpp | tools/siconvert.cpp | /*
* Copyright (C) 2018 Tommi Maekitalo
*
* 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.
*
* As a spec... | /*
* Copyright (C) 2018 Tommi Maekitalo
*
* 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.
*
* As a spec... | change siconvert tool: -N outputs number of records; -n option removed. | change siconvert tool: -N outputs number of records; -n option removed.
-n printed the number of nodes in the first level.
| C++ | lgpl-2.1 | maekitalo/cxxtools,maekitalo/cxxtools,maekitalo/cxxtools,maekitalo/cxxtools |
8e3ded5f05a37d29e933f7dc0bd63fb2d9980f9d | strings/basic.string/string.nonmembers/string.io/get_line_delim.pass.cpp | strings/basic.string/string.nonmembers/string.io/get_line_delim.pass.cpp | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | Fix <rdar://problem/10256836> getline of an empty string mistakenly causes failure | Fix <rdar://problem/10256836> getline of an empty string mistakenly causes failure
git-svn-id: 273b07cebdae5845b4a75aae04570b978db9eb50@141506 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | bsd-3-clause | lodyagin/bare_cxx,lodyagin/bare_cxx,lodyagin/bare_cxx,lodyagin/bare_cxx,lodyagin/bare_cxx |
4c01652457e19b39693c861e94c82d106a1957c7 | tensorflow/compiler/tf2tensorrt/utils/trt_shape_optimization_profiles.cc | tensorflow/compiler/tf2tensorrt/utils/trt_shape_optimization_profiles.cc | /* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | /* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | Fix error check: zero actual profiles are only error if wanted to create at least one | Fix error check: zero actual profiles are only error if wanted to create at least one
| C++ | apache-2.0 | xzturn/tensorflow,renyi533/tensorflow,tensorflow/tensorflow,gunan/tensorflow,xzturn/tensorflow,freedomtan/tensorflow,Intel-tensorflow/tensorflow,petewarden/tensorflow,paolodedios/tensorflow,davidzchen/tensorflow,aldian/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-tensorflow/tensorflow,... |
142c5af4f69f193e161ee99edee9ea15007e6787 | util/xpath/main.cpp | util/xpath/main.cpp | #include <algorithm>
#include <iostream>
#include <map>
#include <set>
#include <stdexcept>
#include <string>
#include <boost/unordered_set.hpp>
#include <boost/scoped_ptr.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/filesystem.hpp>
#include <AlpinoCorpus/CorpusInfo.hh>
#include <AlpinoCorpus/CorpusReader.hh... | #include <algorithm>
#include <iostream>
#include <map>
#include <set>
#include <stdexcept>
#include <string>
#include <boost/unordered_set.hpp>
#include <boost/scoped_ptr.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/filesystem.hpp>
#include <AlpinoCorpus/CorpusInfo.hh>
#include <AlpinoCorpus/CorpusReader.hh... | Add match numbers to opening brackets. | Add match numbers to opening brackets.
| C++ | lgpl-2.1 | rug-compling/alpinocorpus,rug-compling/alpinocorpus,rug-compling/alpinocorpus |
326ecde701b8031fe37f30f4c189b54bd50b6068 | src/sub.cpp | src/sub.cpp | #include <string.h>
#include <signal.h>
#include <iostream>
#include <sstream>
#include <thread>
#include <set>
#include "msg_filter.hpp"
#include "io_policy/line.hpp"
#include "io_policy/sysv_mq.hpp"
#include "io_policy/tcp.hpp"
#include "sub_entry.hpp"
#include "util.hpp"
using namespace std;
using namespace wissbi;... | #include <string.h>
#include <signal.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <thread>
#include <set>
#include "msg_filter.hpp"
#include "io_policy/line.hpp"
#include "io_policy/sysv_mq.hpp"
#include "io_policy/tcp.hpp"
#include "sub_entry.hpp"
#include "util.hpp"
using namespace std;
usin... | add write pid file | add write pid file
| C++ | mit | lunastorm/wissbi,lunastorm/wissbi,lunastorm/wissbi,lunastorm/wissbi,lunastorm/wissbi |
1130d90f6381f0f60e6cad7ee23646165405e386 | tests/init.cpp | tests/init.cpp | #include <binary_search_tree.hpp>
#include <catch.hpp>
SCENARIO("default constructor")
{
BinarySearchTree<int> bst;
REQUIRE(bst.root() == nullptr);
REQUIRE(bst.count() == 0);
}
SCENARIO("insertElement")
{
BinarySearchTree<int> bst;
bst.insert(7);
REQUIRE(bst.value_() == 7);
REQUIRE(bst.leftNode_() == nullptr)... | #include <binary_search_tree.hpp>
#include <catch.hpp>
SCENARIO("default constructor")
{
BinarySearchTree<int> bst;
REQUIRE(bst.root() == nullptr);
}
SCENARIO("insertElement")
{
BinarySearchTree<int> bst;
bst.insert(7);
REQUIRE(bst.value_() == 7);
REQUIRE(bst.leftNode_() == nullptr);
REQUIRE(bst.rightNode_() ... | Update init.cpp | Update init.cpp | C++ | mit | yanaxgrishkova/binary_search_tree |
41d05b4876a8c60c0df29e3258e24bf835f592b0 | tests/init.cpp | tests/init.cpp | #include <matrix.hpp>
#include <catch.hpp>
SCENARIO("matrix init without parametrs", "[init wp]") {
Matrix matrix;
REQUIRE(matrix.rows() == 4);
REQUIRE(matrix.columns() == 4);
for (int i=0;i<matrix.rows(); i++) {
for (int j = 0; j<matrix.columns();j++) {
REQUIRE(matrix.Element(i,j) == 0);
}
}
}
SCENARIO... | #include <matrix.hpp>
#include <catch.hpp>
SCENARIO("matrix init without parametrs", "[init wp]") {
Matrix matrix;
REQUIRE(matrix.rows() == 4);
REQUIRE(matrix.columns() == 4);
for (int i=0;i<matrix.rows(); i++) {
for (int j = 0; j<matrix.columns();j++) {
REQUIRE(matrix.Element(i,j) == 0);
}
}
}
SCENARIO... | Update init.cpp | Update init.cpp | C++ | mit | Bozey98/BST |
e6b0fbf6516ff2731f4f55f1bbbc1e920d6f124a | extensions/browser/api/cast_channel/cast_auth_util.cc | extensions/browser/api/cast_channel/cast_auth_util.cc | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "extensions/browser/api/cast_channel/cast_auth_util.h"
#include <vector>
#include "base/logging.h"
#include "base/strings/string_number_convers... | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "extensions/browser/api/cast_channel/cast_auth_util.h"
#include <vector>
#include "base/logging.h"
#include "base/strings/string_number_convers... | Fix buffer overflow due to unbounded strlen over the non-null terminated audio policy string. Caught by asan. | Fix buffer overflow due to unbounded strlen over the non-null terminated audio policy string. Caught by asan.
BUG=
Review URL: https://codereview.chromium.org/890683002
Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#314019}
| C++ | bsd-3-clause | axinging/chromium-crosswalk,Just-D/chromium-1,Just-D/chromium-1,fujunwei/chromium-crosswalk,chuan9/chromium-crosswalk,Fireblend/chromium-crosswalk,Pluto-tv/chromium-crosswalk,Fireblend/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,Fireblend/chromi... |
6747cdb51624b563fa1ac171d5d5985ee0f61723 | src/generate_test.cpp | src/generate_test.cpp | /*-
* Copyright 2017 Shivansh Rai
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions... | /*-
* Copyright 2017 Shivansh Rai
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions... | Handle the case when output is redirected to pipe or a file | Handle the case when output is redirected to pipe or a file
The previous version will generate a garbage output when directed to a
file, or maybe even a serial console.
Thanks to @asomers!
| C++ | bsd-2-clause | shivrai/smoketestsuite,shivansh/smoketestsuite,shivrai/smoketestsuite,shivansh/smoketestsuite,shivrai/smoketestsuite,shivansh/smoketestsuite |
965d6d91d88aae7164e74acdce8b7a7f7e305d48 | src/hamlib.cpp | src/hamlib.cpp | //==========================================================================
// Name: hamlib.cpp
//
// Purpose: Hamlib integration for FreeDV
// Created: May 2013
// Authors: Joel Stanley
//
// License:
//
// This program is free software; you can redistribute it and/or modify
// it... | //==========================================================================
// Name: hamlib.cpp
//
// Purpose: Hamlib integration for FreeDV
// Created: May 2013
// Authors: Joel Stanley
//
// License:
//
// This program is free software; you can redistribute it and/or modify
// it... | Fix crash when using hamlib by removing unnecessary free call. | Fix crash when using hamlib by removing unnecessary free call.
| C++ | lgpl-2.1 | tmiw/freedv-osx,tmiw/freedv-osx,tmiw/freedv-osx |
9ab3c757e6aead3e9affb5bbf6b5dea126487a56 | src/hackernewsapi.cpp | src/hackernewsapi.cpp | /*
The MIT License (MIT)
Copyright (c) 2015 Andrea Scarpino <me@andreascarpino.it>
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 ... | /*
The MIT License (MIT)
Copyright (c) 2015 Andrea Scarpino <me@andreascarpino.it>
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 ... | Use QStringLiteral instead | Use QStringLiteral instead
| C++ | mit | ascarpino/harbour-SailHN,ilpianista/harbour-SailHN,ilpianista/harbour-SailHN |
815a38288ae7c4562c26608e14afa82f1500bec5 | Runtime/GuiSys/CSaveableState.hpp | Runtime/GuiSys/CSaveableState.hpp | #pragma once
#include <vector>
#include "Runtime/CToken.hpp"
#include "Runtime/GCNTypes.hpp"
#include "Runtime/GuiSys/CDrawStringOptions.hpp"
#include "Runtime/GuiSys/CGuiTextSupport.hpp"
#include <zeus/CColor.hpp>
namespace urde {
class CRasterFont;
class CSaveableState {
friend class CColorOverrideInstruction;... | #pragma once
#include <vector>
#include "Runtime/CToken.hpp"
#include "Runtime/GCNTypes.hpp"
#include "Runtime/GuiSys/CDrawStringOptions.hpp"
#include "Runtime/GuiSys/CGuiTextSupport.hpp"
#include <zeus/CColor.hpp>
namespace urde {
class CRasterFont;
class CSaveableState {
friend class CColorOverrideInstruction;... | Initialize vectors in the constructor initializer list | CSaveableState: Initialize vectors in the constructor initializer list
Initializes the vectors in place, rather than constructing them and then
resizing.
| C++ | mit | AxioDL/PathShagged,AxioDL/PathShagged,AxioDL/PathShagged |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.