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 |
|---|---|---|---|---|---|---|---|---|---|
cbe285dd9628422c787acd763fc4f7e1e857d0b8 | src/mem/ast/node/VarDecl.cpp | src/mem/ast/node/VarDecl.cpp | #include "mem/ast/node/VarDecl.hpp"
namespace mem { namespace ast { namespace node {
VarDecl::VarDecl ()
{
_type = Kind::VARIABLE_DECLARATION;
}
void
VarDecl::isValid (NodeValidator* v)
{
// Check self
Node::isValid(v);
v->ensure(ChildCount() <= 3, "VarDecl must have at most 3 children");
v->ensure(... | #include "mem/ast/node/VarDecl.hpp"
namespace mem { namespace ast { namespace node {
VarDecl::VarDecl ()
{
_type = Kind::VARIABLE_DECLARATION;
}
void
VarDecl::isValid (NodeValidator* v)
{
// Check self
Node::isValid(v);
v->ensure(ChildCount() <= 3, "VarDecl must have at most 3 children");
v->ensure(... | Fix bad VarDecl ast node validation | Fix bad VarDecl ast node validation
| C++ | mit | ThQ/memc,ThQ/memc,ThQ/memc,ThQ/memc |
4cbe2abcc04ba91e4c26d0647187a08797098667 | libtests/cxx11.cc | libtests/cxx11.cc | #include <iostream>
#include <cassert>
#include <cstring>
#include <functional>
#include <type_traits>
#include <cstdint>
#include <vector>
#include <map>
#include <memory>
#include <regex>
// Functional programming
// Function that returns a callable in the form of a lambda
std::function<int (int)> make_adder(int x)... | #include <iostream>
#include <cassert>
#include <cstring>
#include <functional>
#include <type_traits>
#include <cstdint>
#include <vector>
#include <map>
#include <memory>
#include <regex>
// Functional programming
// Function that returns a callable in the form of a lambda
std::function<int (int)> make_adder(int x)... | Test empty function detection | Test empty function detection
| C++ | apache-2.0 | qpdf/qpdf,qpdf/qpdf,qpdf/qpdf,jberkenbilt/qpdf,jberkenbilt/qpdf,jberkenbilt/qpdf,jberkenbilt/qpdf,qpdf/qpdf,qpdf/qpdf,jberkenbilt/qpdf |
47e35ae86ce60f54f7148f6ae1fe870e0be195ba | src/mimecontentformatter.cpp | src/mimecontentformatter.cpp | /*
Copyright (c) 2011-2012 - Tőkés Attila
This file is part of SmtpClient for Qt.
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 op... | /*
Copyright (c) 2011-2012 - Tőkés Attila
This file is part of SmtpClient for Qt.
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 op... | Improve base format (#39) | Improve base format (#39)
* MimeContentFormatter::format optimize way append content
Co-authored-by: Manu <12f91a6c646e8c71ea91910728fce130ee9f8753@visualms.com> | C++ | lgpl-2.1 | cutelyst/simple-mail,cutelyst/simple-mail |
e26ec8af31040da31b744b4e53afbdd8cacb8ef9 | include/easynet/shared_buffer.hpp | include/easynet/shared_buffer.hpp |
// Copyright (c) 2013,2014 niXman (i dotty nixman doggy gmail dotty com)
// All rights reserved.
//
// This file is part of EASYNET(https://github.com/niXman/easynet) project.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions ... |
// Copyright (c) 2013,2014 niXman (i dotty nixman doggy gmail dotty com)
// All rights reserved.
//
// This file is part of EASYNET(https://github.com/niXman/easynet) project.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions ... | Update shared_buffer.hpp | Update shared_buffer.hpp
fixes | C++ | mit | niXman/easynet |
d358c76f75502b72e58d333168b625a6df66c162 | include/libtorrent/ssl_stream.hpp | include/libtorrent/ssl_stream.hpp | /*
Copyright (c) 2008-2014, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | /*
Copyright (c) 2008-2014, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | fix available() function on ssl_stream | fix available() function on ssl_stream
git-svn-id: 4f0141143c3c635d33f1b9f02fcb2b6c73e45c89@10376 a83610d8-ad2a-0410-a6ab-fc0612d85776
| C++ | bsd-3-clause | svn2github/libtorrent-rasterbar-trunk,svn2github/libtorrent-rasterbar-trunk,svn2github/libtorrent-rasterbar-trunk,svn2github/libtorrent-rasterbar-trunk |
de9587b520d98d37aedc33174f29af31ebda810d | include/tao/seq/type_by_index.hpp | include/tao/seq/type_by_index.hpp | // Copyright (c) 2015-2018 Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/sequences/
#ifndef TAOCPP_SEQUENCES_INCLUDE_TYPE_BY_INDEX_HPP
#define TAOCPP_SEQUENCES_INCLUDE_TYPE_BY_INDEX_HPP
#include <cstddef>
#include <type_traits>
#include "make_integer_sequence.hpp"
namespace tao
{
... | // Copyright (c) 2015-2018 Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/sequences/
#ifndef TAOCPP_SEQUENCES_INCLUDE_TYPE_BY_INDEX_HPP
#define TAOCPP_SEQUENCES_INCLUDE_TYPE_BY_INDEX_HPP
#include <cstddef>
#include <type_traits>
#include "make_integer_sequence.hpp"
namespace tao
{
... | Simplify implementation of type_by_index | Simplify implementation of type_by_index
| C++ | mit | taocpp/sequences,taocpp/sequences |
c819aff6dc2eee223917e8382bd0fba20a113152 | ModuleFactory.cxx | ModuleFactory.cxx | /******************************************************************************
This source file is part of the TEM tomography project.
Copyright Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, software
distr... | /******************************************************************************
This source file is part of the TEM tomography project.
Copyright Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, software
distr... | Enable the Streaming Contour Module. | Enable the Streaming Contour Module.
| C++ | bsd-3-clause | OpenChemistry/tomviz,cjh1/tomviz,OpenChemistry/tomviz,yijiang1/tomviz,thewtex/tomviz,Hovden/tomviz,thewtex/tomviz,cryos/tomviz,yijiang1/tomviz,cjh1/tomviz,OpenChemistry/tomviz,cjh1/tomviz,Hovden/tomviz,mathturtle/tomviz,thewtex/tomviz,OpenChemistry/tomviz,mathturtle/tomviz,cryos/tomviz,cryos/tomviz,mathturtle/tomviz |
49bddd2127a6052587207d139c35149c9d34a8eb | OpenCV/OpenCV.cpp | OpenCV/OpenCV.cpp | #include <opencv/cv.h>
#include <opencv2/opencv.hpp>
#include <opencv2/ocl/ocl.hpp>
#include <chrono>
#include <iomanip>
struct Timing
{
Timing(const std::chrono::milliseconds& cpu, const std::chrono::milliseconds& gpu)
: cpu(cpu)
, gpu(gpu)
{}
std::chrono::milliseconds cpu;
std::chron... | #include <opencv/cv.h>
#include <opencv2/opencv.hpp>
#include <opencv2/ocl/ocl.hpp>
#include <chrono>
#include <iomanip>
#include <string>
struct Timing
{
Timing(const std::string& name, const std::chrono::milliseconds& cpu, const std::chrono::milliseconds& gpu)
: name(name)
, cpu(cpu)
, g... | Simplify printing, add speedup multipliers, add number of iterations as a parameter. | Simplify printing, add speedup multipliers, add number of iterations as a parameter.
| C++ | mit | dividiti/pencil-benchmark,rbaghdadi/pencil-benchmark,dividiti/pencil-benchmark,dividiti/pencil-benchmark,rbaghdadi/pencil-benchmark,pencil-language/pencil-benchmark,pencil-language/pencil-benchmark,pencil-language/pencil-benchmark,rbaghdadi/pencil-benchmark |
45eb65b8d38b470f54fb1fd26d7ee3bf47637ed5 | ase.cpp | ase.cpp | #include "ase.hpp"
#include <stdint.h>
#include <fstream>
#if defined(_MSC_VER)
#include <intrin.h>
#define SWAP32(x) _byteswap_ulong(x)
#define SWAP16(x) _byteswap_ushort(x)
#elif defined(__GNUC__) || defined(__clang__)
#define SWAP32(x) __builtin_bswap32(x)
#define SWAP16(x) __builtin_bswap16(x)
#else
inline ui... | #include "ase.hpp"
#include <stdint.h>
#include <fstream>
#if defined(_MSC_VER)
#include <intrin.h>
#define SWAP32(x) _byteswap_ulong(x)
#define SWAP16(x) _byteswap_ushort(x)
#elif defined(__GNUC__) || defined(__clang__)
#define SWAP32(x) __builtin_bswap32(x)
#define SWAP16(x) __builtin_bswap16(x)
#else
inline ui... | Add check for stream validity during loop | Add check for stream validity during loop
| C++ | mit | Wunkolo/libase |
35013ff02b0ba51e23a50531c454b9f8ec533d7c | test/unit/math/rev/mat/functor/gradient_test.cpp | test/unit/math/rev/mat/functor/gradient_test.cpp | #include <stan/math/rev/mat.hpp>
#include <gtest/gtest.h>
#include <stdexcept>
using Eigen::Dynamic;
using Eigen::Matrix;
// fun1(x, y) = (x^2 * y) + (3 * y^2)
struct fun1 {
template <typename T>
inline T operator()(const Matrix<T, Dynamic, 1>& x) const {
return x(0) * x(0) * x(1) + 3.0 * x(1) * x(1);
}
};
... | #include <stan/math/rev/mat.hpp>
#include <gtest/gtest.h>
#include <stdexcept>
#include <vector>
#include <thread>
#include <future>
using Eigen::Dynamic;
using Eigen::Matrix;
using Eigen::MatrixXd;
using Eigen::VectorXd;
// fun1(x, y) = (x^2 * y) + (3 * y^2)
struct fun1 {
template <typename T>
inline T operator(... | add threaded gradient test | add threaded gradient test
| C++ | bsd-3-clause | stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math |
24cb681861aba393db1b061acc77cab8a9dfc651 | dstar-lite/src/dstar_from_input.cpp | dstar-lite/src/dstar_from_input.cpp | #include <iostream>
#include "dstar_lite/dstar.h"
#ifdef MACOS
#else
#include <GL/glut.h>
#include <GL/gl.h>
#include <GL/glu.h>
#endif
#include <stdlib.h>
#include <unistd.h>
#include <zmq.hpp>
#include <string>
#include <iostream>
#include <sstream>
#include <array>
#ifndef _WIN32
#include <unistd.h>
#else
#includ... | #include <iostream>
#include "dstar_lite/dstar.h"
#ifdef MACOS
#else
#include <GL/glut.h>
#include <GL/gl.h>
#include <GL/glu.h>
#endif
#include <stdlib.h>
#include <unistd.h>
#include <zmq.hpp>
#include <string>
#include <iostream>
#include <sstream>
#include <array>
#ifndef _WIN32
#include <unistd.h>
#else
#includ... | Fix index issue in grid | Fix index issue in grid
| C++ | mit | ToniRV/Learning-to-navigate-without-a-map,ToniRV/Learning-to-navigate-without-a-map |
dd09334ff03f48d02f5e87da697fef95ca1a0246 | DueTimer.cpp | DueTimer.cpp | /*
DueTimer.cpp - Implementation of Timers defined on DueTimer.h
For instructions, go to https://github.com/ivanseidel/DueTimer
Created by Ivan Seidel Gomes, March, 2013.
Thanks to stimmer (from Arduino forum), for coding the "timer soul" (Register stuff)
Released into the public domain.
*/
#include "DueTim... | /*
DueTimer.cpp - Implementation of Timers defined on DueTimer.h
For instructions, go to https://github.com/ivanseidel/DueTimer
Created by Ivan Seidel Gomes, March, 2013.
Thanks to stimmer (from Arduino forum), for coding the "timer soul" (Register stuff)
Released into the public domain.
*/
#include "DueTim... | Clear pending IRQ before "start()" re-enables IRQ | Clear pending IRQ before "start()" re-enables IRQ
This change prevents the event handler from being called immediately if
there is a pending interrupt (because a period has elapsed) when calling
start.
| C++ | mit | ivankravets/DueTimer,ivanseidel/DueTimer |
adbca39fef3402e5ce3b3b906c844fcd5a1d0472 | plugins/map_matching.hpp | plugins/map_matching.hpp | /*
Copyright (c) 2015, Project OSRM contributors
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list
of conditions and the f... | /*
Copyright (c) 2015, Project OSRM contributors
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list
of conditions and the f... | Fix include guard | Fix include guard
| C++ | bsd-2-clause | deniskoronchik/osrm-backend,Tristramg/osrm-backend,beemogmbh/osrm-backend,hydrays/osrm-backend,prembasumatary/osrm-backend,Tristramg/osrm-backend,KnockSoftware/osrm-backend,nagyistoce/osrm-backend,bitsteller/osrm-backend,bjtaylor1/osrm-backend,yuryleb/osrm-backend,neilbu/osrm-backend,Project-OSRM/osrm-backend,skyborla/... |
430c4a730a1c0e3ebf73059b5e28fb56a00ccdfd | src/arch/arm/miscregs.hh | src/arch/arm/miscregs.hh | /*
* Copyright (c) 2010 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation of the funct... | /*
* Copyright (c) 2010 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation of the funct... | Add in some missing SCTLR fields. | ARM: Add in some missing SCTLR fields.
| C++ | bsd-3-clause | haowu4682/gem5,LingxiaoJIA/gem5,haowu4682/gem5,haowu4682/gem5,LingxiaoJIA/gem5,haowu4682/gem5,LingxiaoJIA/gem5,LingxiaoJIA/gem5,LingxiaoJIA/gem5,LingxiaoJIA/gem5,haowu4682/gem5,haowu4682/gem5,LingxiaoJIA/gem5,haowu4682/gem5,haowu4682/gem5,haowu4682/gem5 |
fc740a3e7ec90829c142f5a7a9f409b5c849cd00 | examples/demo_retrieve_images.cpp | examples/demo_retrieve_images.cpp | // Copyright 2014 kloudkl@github
//
// This program takes in a trained network and an input blob, and then
// extract features of the input blobs produced by the net to retrieve similar images.
// Usage:
// retrieve_image pretrained_net_param input_blob output_filename top_k_results [CPU/GPU] [DEVICE_ID=0]
#include... | // Copyright 2014 kloudkl@github
#include <fstream> // for std::ofstream
#include <queue> // for std::priority_queue
#include <cuda_runtime.h>
#include <google/protobuf/text_format.h>
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/vision_layers.hpp"
#include "caffe/net.hpp"
#include "caffe/prot... | Simplify image retrieval example to use binary features directly | Simplify image retrieval example to use binary features directly
| C++ | bsd-2-clause | tackgeun/caffe,bharath272/sds_eccv2014,gnina/gnina,naeluh/caffe,vibhav-vineet/caffe,dculibrk/boosted_pooling,CVML/sds_eccv2014,suixudongi8/caffe,minghuam/caffe,flickr/caffe,liuxianming/caffe_feedback,dculibrk/boosted_pooling,shiquanwang/caffe,niuzhiheng/caffe,Hilovaiserillis/caffe,gnina/gnina,naeluh/caffe,dylansun/caff... |
d890976c3c597575d5bac0e9f3c24865c643be3a | tests/auto/declarative/examples/tst_examples.cpp | tests/auto/declarative/examples/tst_examples.cpp | #include <qtest.h>
#include <QLibraryInfo>
#include <QDir>
#include <QProcess>
class tst_examples : public QObject
{
Q_OBJECT
public:
tst_examples();
private slots:
void examples_data();
void examples();
void namingConvention();
private:
QString qmlviewer;
void namingConvention(const QDi... | #include <qtest.h>
#include <QLibraryInfo>
#include <QDir>
#include <QProcess>
class tst_examples : public QObject
{
Q_OBJECT
public:
tst_examples();
private slots:
void examples_data();
void examples();
void namingConvention();
private:
QString qmlviewer;
QStringList excludedDirs;
v... | Allow paths to be excluded from test | Allow paths to be excluded from test
| C++ | lgpl-2.1 | igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,pruiz/wkhtmltopdf-qt,igor-sfdc/qt-wk,igor-sfdc/qt-wk,igor-sfdc/qt-w... |
3537d1f46f7279965526e05ded21830050661472 | amgcl/mpi/util.hpp | amgcl/mpi/util.hpp | #ifndef AMGCL_MPI_UTIL_HPP
#define AMGCL_MPI_UTIL_HPP
/*
The MIT License
Copyright (c) 2012-2022 Denis Demidov <dennis.demidov@gmail.com>
Copyright (c) 2014, Riccardo Rossi, CIMNE (International Center for Numerical Methods in Engineering)
Permission is hereby granted, free of charge, to any person obtaining a copy
... | #ifndef AMGCL_MPI_UTIL_HPP
#define AMGCL_MPI_UTIL_HPP
/*
The MIT License
Copyright (c) 2012-2022 Denis Demidov <dennis.demidov@gmail.com>
Copyright (c) 2014, Riccardo Rossi, CIMNE (International Center for Numerical Methods in Engineering)
Permission is hereby granted, free of charge, to any person obtaining a copy
... | Check if MPI supports MPI_CXX_*_COMPLEX datatypes | Check if MPI supports MPI_CXX_*_COMPLEX datatypes
| C++ | mit | ddemidov/amgcl,ddemidov/amgcl,ddemidov/amgcl,ddemidov/amgcl |
0d3f32a6c86aba5ee9e03ff35e1717220b320682 | NaoTHSoccer/Source/Motion/Engine/InverseKinematicsMotion/Motions/IKParameters.cpp | NaoTHSoccer/Source/Motion/Engine/InverseKinematicsMotion/Motions/IKParameters.cpp | /**
* @file IKParameters.cpp
*
* @author <a href="mailto:xu@informatik.hu-berlin.de">Xu, Yuan</a>
* Implement of parameters for IK motion
*/
#include "IKParameters.h"
IKParameters::IKParameters()
:ParameterList("IKParameters")
{
PARAMETER_REGISTER(footOffsetY) = 0;
// stand parameter
PARAMETER_REGISTER(stan... | /**
* @file IKParameters.cpp
*
* @author <a href="mailto:xu@informatik.hu-berlin.de">Xu, Yuan</a>
* Implement of parameters for IK motion
*/
#include "IKParameters.h"
IKParameters::IKParameters()
:ParameterList("IKParameters")
{
PARAMETER_REGISTER(footOffsetY) = 0;
// stand parameter
PARAMETER_REGISTER(stan... | change stand motion speed | change stand motion speed
| C++ | apache-2.0 | BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH,BerlinUnited/NaoTH |
7f0f6dbc27d1dc92284c463dce1bf320d1f256de | tests/unit-and-behavior/test-unit-arg-struct.cpp | tests/unit-and-behavior/test-unit-arg-struct.cpp | /* Copyright (C) 2016, Szilard Ledan <szledan@gmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
*... | /* Copyright (C) 2016, Szilard Ledan <szledan@gmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
*... | Fix tests after added new Arg constructor | Fix tests after added new Arg constructor
Signed-off-by: Szilard Ledan <ad4849c21037b66135b8c200587f0db9b11b7b51@gmail.com>
| C++ | bsd-2-clause | szledan/arg-parse,szledan/arg-parse |
8b64b6f4f7f238b729b5252bc57e79a401a334a8 | src/base/application.cpp | src/base/application.cpp | //! @file application.cpp
#include "application.h"
#include "cantera/base/ctml.h"
#include "cantera/base/stringUtils.h"
#include "units.h"
#include <fstream>
#include <sstream>
#include <mutex>
using std::string;
using std::endl;
#ifdef _WIN32
#include <windows.h>
#else
#include <sys/stat.h>
#endif
#ifdef _MSC_VER... | //! @file application.cpp
#include "application.h"
#include "cantera/base/ctml.h"
#include "cantera/base/stringUtils.h"
#include "units.h"
#include <fstream>
#include <sstream>
#include <mutex>
using std::string;
using std::endl;
#ifdef _WIN32
#include <windows.h>
#else
#include <sys/stat.h>
#endif
#ifdef _MSC_VER... | Fix printing of error messages | [Matlab] Fix printing of error messages
| C++ | bsd-3-clause | imitrichev/cantera,imitrichev/cantera,imitrichev/cantera,imitrichev/cantera,imitrichev/cantera,imitrichev/cantera |
72c5d8abec7baf282dafb89663045a9414a71be3 | example/DemoLevel.hpp | example/DemoLevel.hpp | #pragma once
#include <Annwvyn.h>
#include <memory>
#include "DemoUtils.hpp"
using namespace Annwvyn;
//Hub to select Demos
class DemoHub : LEVEL, LISTENER
{
public:
DemoHub() : constructLevel(), constructListener(),
panelDpi(18)
{
}
~DemoHub()
{
AnnDebug() << "Demo hub destructed!";
}
void load() ove... | #pragma once
#include <Annwvyn.h>
#include <memory>
#include "DemoUtils.hpp"
using namespace Annwvyn;
//Hub to select Demos
class DemoHub : LEVEL, LISTENER
{
public:
DemoHub() : constructLevel(), constructListener(),
panelDpi(18)
{
}
~DemoHub()
{
AnnDebug() << "Demo hub destructed!";
}
void load() ove... | set object name | set object name
| C++ | mit | Ybalrid/Annwvyn,Ybalrid/Annwvyn,Ybalrid/Annwvyn |
9caf35aa3574cd0f1c02965c7e75247304aedb9b | SimModule/Geo.cpp | SimModule/Geo.cpp | #include "Geo.h"
#include <iostream>
#include <cmath>
//-----------------POINT---------------------------------------------
Point::Point()
{
x=y=z=0;
}
Point::Point(double xc,double yc, double zc)
{
x=xc;
y=yc;
z=zc;
}
Point::~Point()
{}
//Accessors------------------------------------------------... | #include "Geo.h"
#include <iostream>
#include <cmath>
//----------------------------- Cartesian element ------------------------------------
CartesianElement::CartesianElement() { X = Y = Z = 0; }
CartesianElement::CartesianElement(double x, double y, double z)
{
X = x;
Y = y;
Z = z;
}
CartesianElement::~Cartesi... | Update Geo.cpp | Update Geo.cpp | C++ | mit | doplusplus/PointSimulator,doplusplus/Physics_Simulator,doplusplus/Physics_Simulator,doplusplus/PointSimulator,doplusplus/Physics_Simulator |
3cb7a4e04ec13066890c24c73f9d62c943648285 | Socket/Socket.hpp | Socket/Socket.hpp | #ifndef SOCKET_HPP
#define SOCKET_HPP
#ifdef _WIN32 //_WIN64
#include <winsock2.h>
#elif __linux //|| __unix //or __APPLE__
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h> /* close */
#include <netdb.h> /* gethostbyname *... | #ifndef SOCKET_HPP
#define SOCKET_HPP
#ifdef _WIN32 //_WIN64
#include <winsock2.h>
#elif __linux //|| __unix //or __APPLE__
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h> /* close */
#include <netdb.h> /* gethostbyname *... | add namspace on PORT | add namspace on PORT
| C++ | bsd-2-clause | Krozark/cpp-Socket |
6b3fe0262981f67b4bc9256f478bc85b15be96db | sources/parser.cpp | sources/parser.cpp | #include "parser.h"
#include "stdio.h"
#undef DEBUG
Parser::Parser( ) {
// TODO: Set up all the functions/variables... :-S
};
Parser::~Parser( ) { };
int Parser::runParse( ) {
std::string file;
this->running = true;
while( 1 ){
printf( "Program? -> " );
std::cin >> file;
s... | #include "parser.h"
#include "stdio.h"
#define DEBUG
Parser::Parser( ) {
// TODO: Set up all the functions... :-S
// Thats gonna be a lot of oList calls...
char cChar;
for( cChar = 65; cChar < 91; ++cChar ){
this->vList[ cChar ] = 0.0;
}
};
Parser::~Parser( ) { };
int Parser::runParse... | Update parser.cpp | Update parser.cpp
- Finish most of the parsing functions
- Add skeleton for operators
- Add in variable support | C++ | bsd-2-clause | DweebsUnited/Parser,DweebsUnited/Parser |
8acba400b54a86c9155765b7df90a8bfbe7120d6 | examples/bsoncxx/view_and_value.cpp | examples/bsoncxx/view_and_value.cpp | #include <algorithm>
#include <iostream>
#include <iterator>
#include <vector>
#include <bsoncxx/array/view.hpp>
#include <bsoncxx/array/view.hpp>
#include <bsoncxx/builder/basic/array.hpp>
#include <bsoncxx/builder/basic/document.hpp>
#include <bsoncxx/builder/basic/kvp.hpp>
#include <bsoncxx/document/value.hpp>
#inc... | #include <algorithm>
#include <iostream>
#include <iterator>
#include <vector>
#include <bsoncxx/array/view.hpp>
#include <bsoncxx/array/view.hpp>
#include <bsoncxx/builder/basic/array.hpp>
#include <bsoncxx/builder/basic/document.hpp>
#include <bsoncxx/builder/basic/kvp.hpp>
#include <bsoncxx/document/value.hpp>
#inc... | fix examples | minor: fix examples
| C++ | apache-2.0 | xdg/mongo-cxx-driver,acmorrow/mongo-cxx-driver,mongodb/mongo-cxx-driver,acmorrow/mongo-cxx-driver,acmorrow/mongo-cxx-driver,mongodb/mongo-cxx-driver,xdg/mongo-cxx-driver,xdg/mongo-cxx-driver,mongodb/mongo-cxx-driver,mongodb/mongo-cxx-driver,acmorrow/mongo-cxx-driver,xdg/mongo-cxx-driver |
7005d4c4e39ba858e2d92071cd68e20705e9acf4 | examples/complete/Conway/Conway.cpp | examples/complete/Conway/Conway.cpp | /*
* Conway's Game of Life implementation with less than 1KB code.
* Prototype is developed first with Arduino then ported to ATtiny84A.
*
* Description:
* - cells are displayed on an 8x8 LED matrix
* - initial setup is set through 2 pots (X and Y) and one button to select/unselect a cell
* - starting/suspendin... | /*
* Conway's Game of Life implementation with less than 1KB code.
* Prototype is developed first with Arduino then ported to ATtiny84A.
*
* Description:
* - cells are displayed on an 8x8 LED matrix
* - initial setup is set through 2 pots (X and Y) and one button to select/unselect a cell
* - starting/suspendin... | Fix comments in Conway. | Fix comments in Conway.
| C++ | lgpl-2.1 | jfpoilpret/fast-arduino-lib,jfpoilpret/fast-arduino-lib,jfpoilpret/fast-arduino-lib,jfpoilpret/fast-arduino-lib |
319c29a70991ec6d8a506f5705b5a55ef349bc7e | src/nix-prefetch-url/nix-prefetch-url.cc | src/nix-prefetch-url/nix-prefetch-url.cc | #include "hash.hh"
#include "shared.hh"
#include "download.hh"
#include "store-api.hh"
#include "eval.hh"
#include "eval-inline.hh"
#include "common-eval-args.hh"
#include "attr-path.hh"
#include "legacy.hh"
#include "finally.hh"
#include "progress-bar.hh"
#include <iostream>
#include <sys/types.h>
#include <sys/stat... | #include "hash.hh"
#include "shared.hh"
#include "download.hh"
#include "store-api.hh"
#include "eval.hh"
#include "eval-inline.hh"
#include "common-eval-args.hh"
#include "attr-path.hh"
#include "legacy.hh"
#include "finally.hh"
#include "progress-bar.hh"
#include <iostream>
#include <sys/types.h>
#include <sys/stat... | support --unpack w/ -A? | nix-prefetch-url: support --unpack w/ -A?
| C++ | lgpl-2.1 | dtzWill/nix,dtzWill/nix,dtzWill/nix,dtzWill/nix,dtzWill/nix |
4f1ac7d72a5102259188aff4961dad954d7efbcd | examples/libxml2/libxml2_example.cc | examples/libxml2/libxml2_example.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... | Add xmlSaveToBuffer to libxml fuzzer. | Add xmlSaveToBuffer to libxml fuzzer.
| C++ | apache-2.0 | vitalybuka/libprotobuf-mutator,google/libprotobuf-mutator,vitalybuka/libprotobuf-mutator,google/libprotobuf-mutator |
d805accad513c4d8c2e9c0aa84a18d5c96ccd98a | src/controller/CHIPDeviceControllerFactory.cpp | src/controller/CHIPDeviceControllerFactory.cpp | /*
*
* Copyright (c) 2021 Project CHIP 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... | /*
*
* Copyright (c) 2021 Project CHIP 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... | Remove meaningless comment (#17582) | Remove meaningless comment (#17582)
| C++ | apache-2.0 | project-chip/connectedhomeip,nestlabs/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhom... |
549553254c3e3736a72db23e74a32b897e2db18e | src/plugins/winrt/src/winrt_platform.cpp | src/plugins/winrt/src/winrt_platform.cpp | #include "winrt_system.h"
#ifdef WINDOWS_STORE
#include "winrt_platform.h"
#include "winrt_http.h"
#include "xbl_manager.h"
using namespace Halley;
WinRTPlatform::WinRTPlatform(WinRTSystem* system)
: system(system)
{
}
void WinRTPlatform::init()
{
xbl = std::make_shared<XBLManager>();
xbl->init();
}
void WinRTP... | #include "winrt_system.h"
#ifdef WINDOWS_STORE
#include "winrt_platform.h"
#include "winrt_http.h"
#include "xbl_manager.h"
using namespace Halley;
WinRTPlatform::WinRTPlatform(WinRTSystem* system)
: system(system)
{
}
void WinRTPlatform::init()
{
xbl = std::make_shared<XBLManager>();
xbl->init();
}
void WinRTP... | Disable UWP cloud save | Disable UWP cloud save
| C++ | apache-2.0 | amzeratul/halley,amzeratul/halley,amzeratul/halley |
996ad5b8b64faf63192d3e661b448f1cb5842470 | src/examples/box_cxx_example_02.cc | src/examples/box_cxx_example_02.cc | //Compile with:
//gcc -g box_example_02.c -o box_example_02 `pkg-config --cflags --libs elementary`
#ifdef HAVE_CONFIG_H
# include <elementary_config.h>
#endif
#define ELM_INTERNAL_API_ARGESFSDFEFC
#define ELM_INTERFACE_ATSPI_ACCESSIBLE_PROTECTED
#define ELM_INTERFACE_ATSPI_COMPONENT_PROTECTED
#define ELM_INTERFACE_A... | //Compile with:
//gcc -g box_example_02.c -o box_example_02 `pkg-config --cflags --libs elementary`
extern "C"
{
#ifdef HAVE_CONFIG_H
# include <elementary_config.h>
#endif
#define ELM_INTERNAL_API_ARGESFSDFEFC
#define ELM_INTERFACE_ATSPI_ACCESSIBLE_PROTECTED
#define ELM_INTERFACE_ATSPI_COMPONENT_PROTECTED
#define ... | Add extern "C" guards to C++ example. | examples: Add extern "C" guards to C++ example.
| C++ | lgpl-2.1 | tasn/elementary,rvandegrift/elementary,FlorentRevest/Elementary,FlorentRevest/Elementary,tasn/elementary,FlorentRevest/Elementary,rvandegrift/elementary,tasn/elementary,rvandegrift/elementary,rvandegrift/elementary,tasn/elementary,FlorentRevest/Elementary,tasn/elementary |
05f2f5bcc38eb3f5d83b71a86c7e5bb172247d4e | src/cpp/session/modules/clang/SessionClang.cpp | src/cpp/session/modules/clang/SessionClang.cpp | /*
* SessionClang.cpp
*
* Copyright (C) 2009-12 by RStudio, Inc.
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero General Public License.... | /*
* SessionClang.cpp
*
* Copyright (C) 2009-12 by RStudio, Inc.
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero General Public License.... | remove redundant FilePath creation | remove redundant FilePath creation
| C++ | agpl-3.0 | tbarrongh/rstudio,jzhu8803/rstudio,thklaus/rstudio,githubfun/rstudio,pssguy/rstudio,vbelakov/rstudio,jar1karp/rstudio,edrogers/rstudio,JanMarvin/rstudio,john-r-mcpherson/rstudio,sfloresm/rstudio,tbarrongh/rstudio,edrogers/rstudio,piersharding/rstudio,more1/rstudio,more1/rstudio,jrnold/rstudio,more1/rstudio,jzhu8803/rst... |
5b9a2f5edf82518014682e8025c257df516fd3f9 | kaddressbook/nameeditdialog.cpp | kaddressbook/nameeditdialog.cpp | /*
This file is part of KAddressBook.
Copyright (c) 2002 Mike Pilone <mpilone@slac.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at... | /*
This file is part of KAddressBook.
Copyright (c) 2002 Mike Pilone <mpilone@slac.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at... | Add blank entry to readwrite comboboxes to allow proper mouse wheel using | Add blank entry to readwrite comboboxes to allow proper mouse wheel using
BUG:113695
svn path=/branches/KDE/3.5/kdepim/; revision=466353
| C++ | lgpl-2.1 | lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi |
1e0329465a4aaa3416ec434eb554207aa5859535 | src/sc2laddercore/LegacyLadderConfig.cpp | src/sc2laddercore/LegacyLadderConfig.cpp | #include "LegacyLadderConfig.h"
#include <string>
#include <map>
#include <iostream>
#include <sstream>
#include <fstream>
LegacyLadderConfig::LegacyLadderConfig(const std::string &InConfigFile)
:ConfigFileLocation(InConfigFile)
{
}
bool LegacyLadderConfig::ParseConfig()
{
std::ifstream ifs(ConfigFileLocation,... | #include "LegacyLadderConfig.h"
#include <iostream>
#include <sstream>
#include <fstream>
LegacyLadderConfig::LegacyLadderConfig(const std::string &InConfigFile)
:ConfigFileLocation(InConfigFile)
{
}
bool LegacyLadderConfig::ParseConfig()
{
std::ifstream ifs(ConfigFileLocation, std::ifstream::binary);
if (!if... | Remove now unrequired header includes for legacy config | Remove now unrequired header includes for legacy config
| C++ | mit | Cryptyc/Sc2LadderServer,Cryptyc/Sc2LadderServer,Cryptyc/Sc2LadderServer |
4726b4af8b13e201a3d3e98c151bbf52f4fc4370 | pyQuantuccia/src/pyQuantuccia.cpp | pyQuantuccia/src/pyQuantuccia.cpp | #include <Python.h>
#include "Quantuccia/ql/time/calendars/unitedstates.hpp"
| #include <Python.h>
#include "Quantuccia/ql/time/calendars/unitedstates.hpp"
PyObject* PyInit_pyQuantuccia(void){
return NULL;
} | Add a stub function to init the module. | Add a stub function to init the module.
| C++ | bsd-3-clause | jwg4/pyQuantuccia,jwg4/pyQuantuccia |
8a2aeabf3238b4ba648a8440cb10d806eaafcce2 | korganizer/filtereditdialog.cpp | korganizer/filtereditdialog.cpp | /*
This file is part of KOrganizer.
Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
Copyright (C) 2004 Reinhold Kainhofer <reinhold@kainhofer.com>
Copyright (C) 2005 Thomas Zander <zander@kde.org>
This program is free software; you can redistribute it and/or modify
it under the te... | /*
This file is part of KOrganizer.
Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
Copyright (C) 2004 Reinhold Kainhofer <reinhold@kainhofer.com>
Copyright (C) 2005 Thomas Zander <zander@kde.org>
This program is free software; you can redistribute it and/or modify
it under the te... | Fix possible crash; don't blindly print filter->name() in a _debug_ statement, filter might be null. | Fix possible crash;
don't blindly print filter->name() in a _debug_ statement, filter might be null.
svn path=/trunk/KDE/kdepim/; revision=423475
| C++ | lgpl-2.1 | lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi |
caa3e7e27ab3f81cef0869ed72abf26f996f1651 | korganizer/korgac/alarmdialog.cpp | korganizer/korgac/alarmdialog.cpp | /*
This file is part of the KOrganizer alarm daemon.
Copyright (c) 2000,2003 Cornelius Schumacher <schumacher@kde.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either vers... | /*
This file is part of the KOrganizer alarm daemon.
Copyright (c) 2000,2003 Cornelius Schumacher <schumacher@kde.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either vers... | Make the reminder dialog somewhat more usable when working with they keyboard. No strange focus switching with up-down arrows in the spin box for example. And added an accelerator for the interval spin box. | Make the reminder dialog somewhat more usable when working with they keyboard. No strange focus switching with up-down arrows in the spin box for example. And added an accelerator for the interval spin box.
BUG:137177
svn path=/branches/KDE/3.5/kdepim/; revision=604038
| C++ | lgpl-2.1 | lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi |
89f429867071cacdaee16bcab3b13048b22077c6 | cdc/cdc_extension.hh | cdc/cdc_extension.hh | /*
* Copyright 2020 ScyllaDB
*/
/*
* 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 later vers... | /*
* Copyright 2020 ScyllaDB
*/
/*
* 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 later vers... | Add missing includes to cdc_extension.hh | cdc: Add missing includes to cdc_extension.hh
Without those additional includes, a .cc file
that includes cdc_extension.hh won't compile.
Signed-off-by: Piotr Jastrzebski <2c0eb4a25a7cde333ff2d0860cb06051925fd74f@scylladb.com>
| C++ | agpl-3.0 | scylladb/scylla,scylladb/scylla,scylladb/scylla,scylladb/scylla |
5f7d6f697b022908dd21ea29626a30c43ba4d78f | Programs/dicomfind.cxx | Programs/dicomfind.cxx | /*=========================================================================
Program: DICOM for VTK
Copyright (c) 2012-2014 David Gobbi
All rights reserved.
See Copyright.txt or http://dgobbi.github.io/bsd3.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied ... | /*=========================================================================
Program: DICOM for VTK
Copyright (c) 2012-2014 David Gobbi
All rights reserved.
See Copyright.txt or http://dgobbi.github.io/bsd3.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied ... | Use query to filter parser results in dicomfind. | Use query to filter parser results in dicomfind.
| C++ | bsd-3-clause | hendradarwin/vtk-dicom,hendradarwin/vtk-dicom,dgobbi/vtk-dicom,dgobbi/vtk-dicom,dgobbi/vtk-dicom,hendradarwin/vtk-dicom |
3a11066d67c28572d3489654500e68c535817d14 | main.cpp | main.cpp | dd67cdd7-ad5c-11e7-b10b-ac87a332f658 | ddbff091-ad5c-11e7-8d6d-ac87a332f658 | Put the thingie in the thingie | Put the thingie in the thingie | C++ | mit | justinhyou/GestureRecognition-CNN,justinhyou/GestureRecognition-CNN |
c42de42ed7f8d0039849eabc4a79d3cfeb76ecf1 | main.cpp | main.cpp | /*ibnu.yahya@toroo.org*/
#include <QtWidgets/QApplication>
#include "ignsdk.h"
#include <QtWebKitWidgets/QWebView>
#include <QFileDialog>
#include <iostream>
#include "version.h"
#include <QCommandLineParser>
using namespace std;
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
ign w;
QStri... | /*ibnu.yahya@toroo.org*/
#include <QtWidgets/QApplication>
#include "ignsdk.h"
#include <QtWebKitWidgets/QWebView>
#include <QFileDialog>
#include <iostream>
#include "version.h"
#include <QCommandLineParser>
using namespace std;
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
ign ignsdk;
... | Improve code readability and consistency | main.cpp: Improve code readability and consistency
| C++ | bsd-3-clause | ubunteroz/ignsdk,ubunteroz/ignsdk,ubunteroz/ignsdk,ubunteroz/ignsdk-debian,ubunteroz/ignsdk-debian,ubunteroz/ignsdk-debian |
e36c10fca24a194d1c6134a1c885c461186455cc | main.cpp | main.cpp | #include <iostream>
#include "type_name_rt.hpp"
#include "type_name_pt.hpp"
// std::array<char> output operator, for type_name_pt output
template <size_t N>
std::ostream& operator<<(std::ostream& o, std::array<char,N> const& a)
{
for (char c : a) o.put(c);
return o;
}
constexpr char c{};
int main()
{
std... | #include <iostream>
#include "type_name_rt.hpp"
#include "type_name_pt.hpp"
// std::array<char> output operator, for type_name_pt output
template <size_t N>
std::ostream& operator<<(std::ostream& o, std::array<char,N> const& a)
{
for (char c : a) o.put(c);
return o;
}
constexpr char static_var{};
int main()
... | rename global var to longer descriptive name - single char was shadowing | rename global var to longer descriptive name - single char was shadowing
| C++ | cc0-1.0 | willwray/type_name |
ce560141ba66353e43f3e740e369f7dcee7babbc | main.cpp | main.cpp | /* **** **** **** **** **** **** **** **** *
*
* _/ _/ _/
* _/_/_/ _/_/_/ _/_/_/
* _/ _/ _/ _/ _/ _/
* _/ _/ _/ _/ _/ _/
* _/_/_/ _/_/_/ _/_/_/
*
* bit by bit
* main.cpp
*
* author: ISHII 2bit
* mail: 2bit@backspace.tokyo
*
* ... | /* **** **** **** **** **** **** **** **** *
*
* _/ _/ _/
* _/_/_/ _/_/_/ _/_/_/
* _/ _/ _/ _/ _/ _/
* _/ _/ _/ _/ _/ _/
* _/_/_/ _/_/_/ _/_/_/
*
* bit by bit
* main.cpp
*
* author: ISHII 2bit
* mail: 2bit@backspace.tokyo
*
* ... | add iterator_test | add iterator_test
| C++ | mit | 2bbb/bit_by_bit |
ea40295d2dd1d0c7aa5ac27950561032a3bf58db | main.cpp | main.cpp | 9dd12780-4b02-11e5-847b-28cfe9171a43 | 9ddf3c11-4b02-11e5-b584-28cfe9171a43 | add file | add file | C++ | apache-2.0 | haosdent/jcgroup,haosdent/jcgroup |
61fdc47b8220716b81518036751368aac2e67f8c | src/components/score.cpp | src/components/score.cpp | // Copyright 2015 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 2015 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 android build. | Fix android build.
Tested: Android builds and runs now.
Change-Id: I6e52c65c5aac9bc01c25bd7563ce49fd191eff19
| C++ | apache-2.0 | google/zooshi,google/zooshi,google/zooshi,google/zooshi,google/zooshi |
be7189de13981cd8b02f1fde49b54b651754df32 | main.cpp | main.cpp | #include <iostream>
#include <time.h>
#include <string>
#include <unistd.h>
#include <fcntl.h>
#include <fstream>
int main(){
// get current time
time_t epoch_time;
struct tm *tm_p;
epoch_time = time( NULL );
tm_p = localtime( &epoch_time );
// get date items
int day = tm_p->tm_mday;
int month = tm_p->tm_mon... | #include <iostream>
#include <time.h>
#include <string>
#include <unistd.h>
#include <fcntl.h>
#include <fstream>
int main(){
// get current time
time_t epoch_time;
struct tm *tm_p;
epoch_time = time( NULL );
tm_p = localtime( &epoch_time );
// get date items
int day = tm_p->tm_mday;
int mo... | Revert "fixed tabs" | Revert "fixed tabs"
This reverts commit d4533c500db3c6fdabc57023e700be38093669a5.
| C++ | mit | joushx/telescope-time |
8bc22dc36269b946ce5dbbc4729e2d8370827fdf | main.cpp | main.cpp | #include <functional>
#include <map>
#include <stdio.h>
#include <time.h>
#include <vector>
unsigned char s_array[8][64] = {
{14, 4, 13, 1, 2, 15, 11, 8, 3, 10, 6, 12, 5, 9, 0, 7,
4, 1, 14, 8, 13, 6, 2, 11, 15, 12, 9, 7, 3, 10, 5, 0,
0, 15, 7, 4, 14, 2, 13, 1, 10, 6, 12, 11, 9... | #include <algorithm>
#include <functional>
#include <map>
#include <stdio.h>
#include <time.h>
#include <vector>
unsigned char s_array[8][64] = {
{14, 4, 13, 1, 2, 15, 11, 8, 3, 10, 6, 12, 5, 9, 0, 7,
4, 1, 14, 8, 13, 6, 2, 11, 15, 12, 9, 7, 3, 10, 5, 0,
0, 15, 7, 4, 14, 2, 13,... | add f() | add f()
| C++ | mit | cjwddtc/des |
9a6dfa2500bc410aab9ce9b82bf30e38050aca4b | main.cpp | main.cpp | #include <algorithm> // for std::accumulate()
#include <cstring> // for std::strcpy
#include <iostream> // for std::cout
#include <map> // for std::map
#include <math.h> // for pow()
#include <set> // for std::set
#include <stdio.h> // for printf, scanf, fscanf
#include <stdlib.... | #include <algorithm> // for std::accumulate()
#include <cstring> // for std::strcpy
#include <iostream> // for std::cout
#include <map> // for std::map
#include <math.h> // for pow()
#include <set> // for std::set
#include <stdio.h> // for printf, scanf, fscanf
#include <stdlib.... | change hash() to take a std::string instead of a C-style string | change hash() to take a std::string instead of a C-style string
| C++ | mit | jamesc0/primer-dimers,jamesc0/primer-dimers |
d682968d08172647644333be379880737f943865 | main.cpp | main.cpp | /**
* This is free and unencumbered software released into the public domain.
**/
#include "Sha256.h"
#include "JsonRpc.h"
#include "Settings.h"
#include "Util.h"
#include "Transaction.h"
#include "Radix.h"
#include "Block.h"
#include "Miner.h"
#include <cassert>
#include <algorithm>
#include <cstdio>
#include <iost... | /**
* This is free and unencumbered software released into the public domain.
**/
#include "Sha256.h"
#include "JsonRpc.h"
#include "Settings.h"
#include "Util.h"
#include "Transaction.h"
#include "Radix.h"
#include "Block.h"
#include "Miner.h"
#include <cassert>
#include <algorithm>
#include <cstdio>
#include <iost... | Add submitblock function | Add submitblock function
- Works on regtest!
| C++ | unlicense | jrmrjnck/jrmrmine |
3159819ed71a2e814175a593147f7637a423ba56 | lib/Rewrite/InclusionRewriter.cpp | lib/Rewrite/InclusionRewriter.cpp | //===--- InclusionRewriter.cpp - Rewrite includes into their expansions ---===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===--- InclusionRewriter.cpp - Rewrite includes into their expansions ---===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Replace a char counting helper function with std::count. | Replace a char counting helper function with std::count.
No functionality change.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@158272 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl... |
73278080c8078002beb4706d5b1592e9b9c5f9b3 | lib/Target/PowerPC/PPCJITInfo.cpp | lib/Target/PowerPC/PPCJITInfo.cpp | //===-- PPC32JITInfo.cpp - Implement the JIT interfaces for the PowerPC ---===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===--------... | //===-- PPC32JITInfo.cpp - Implement the JIT interfaces for the PowerPC ---===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===--------... | Write CompilationCallback as an explicit assembly stub to avoid getting GCC's prolog. | Write CompilationCallback as an explicit assembly stub to avoid getting GCC's
prolog.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@18220 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,chubbymaggie/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/as... |
b5b11bdf30a8a143b810eaa1e8173f2dfac70686 | main.cpp | main.cpp | #include <opencv2/highgui.hpp>
#include <opencv2/opencv.hpp>
#include <iostream>
#ifdef HAVE_OPENCV_CONTRIB
#include <opencv2/bgsegm.hpp>
#endif
#include "bgsubcnt.h"
using namespace cv;
using namespace std;
const string keys =
"{help h usage ? || print this message}"
"{file || use file (d... | #include <opencv2/opencv.hpp>
#include <iostream>
#ifdef HAVE_OPENCV_CONTRIB
#include <opencv2/bgsegm.hpp>
#endif
#include "bgsubcnt.h"
using namespace cv;
using namespace std;
const string keys =
"{help h usage ? || print this message}"
"{file || use file (default is system camera)}"
... | save frame feature | save frame feature
| C++ | bsd-3-clause | sagi-z/BackgroundSubtractorCNT,sagi-z/BackgroundSubtractorCNT,sagi-z/BackgroundSubtractorCNT |
4e1da11af4ccff45bccd4dde3ffa9e394b8b50d2 | main.cpp | main.cpp | c4555f66-4b02-11e5-9556-28cfe9171a43 | c4620414-4b02-11e5-9e9a-28cfe9171a43 | fix for the previous fix | fix for the previous fix | C++ | apache-2.0 | haosdent/jcgroup,haosdent/jcgroup |
e4cfa76d8c7c81f5e8673c8216a65ef7960dc867 | main.cpp | main.cpp | #include <iostream>
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include <QRunnable>
#include <QThreadPool>
#include "SMU.h"
#include "utils/backtracing.h"
#include "utils/fileio.h"
int main(int argc, char *argv[])
{
QCoreApplication::addLibraryPath("./");
// Prevent co... | #include <iostream>
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include <QRunnable>
#include <QThreadPool>
#include "SMU.h"
#include "utils/backtracing.h"
#include "utils/fileio.h"
int main(int argc, char *argv[])
{
QCoreApplication::addLibraryPath("./");
// Prevent co... | fix spaces in org name - revert 0c7a1b78 | fix spaces in org name - revert 0c7a1b78
| C++ | mpl-2.0 | analogdevicesinc/Pixelpulse2,analogdevicesinc/Pixelpulse2,analogdevicesinc/Pixelpulse2 |
95bf47c534737019f956fbcca2c622c98dacc266 | src/usr/pore/poreve/porevesrc/pib2cfam.C | src/usr/pore/poreve/porevesrc/pib2cfam.C | /* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/usr/pore/poreve/porevesrc/pib2cfam.C $ */
/* ... | /* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/usr/pore/poreve/porevesrc/pib2cfam.C $ */
/* ... | Update vSBE to support latest centaur SBE image | Update vSBE to support latest centaur SBE image
Change-Id: I6fb263f2203a3e2d07c6151d3a4355c4646cea97
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/6617
Reviewed-by: Thi N. Tran <25a2bca7ae5a8ea03be09ca8d282480c08c13052@us.ibm.com>
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <c87e37b1a4035aff... | C++ | apache-2.0 | alvintpwang/hostboot,csmart/hostboot,open-power/hostboot,Over-enthusiastic/hostboot,csmart/hostboot,open-power/hostboot,open-power/hostboot,Over-enthusiastic/hostboot,csmart/hostboot,Over-enthusiastic/hostboot,csmart/hostboot,alvintpwang/hostboot,open-power/hostboot,Over-enthusiastic/hostboot,csmart/hostboot,Over-enthu... |
700ab095928923a6db42f9873dd86ddacceb6441 | src/DBase3File.cpp | src/DBase3File.cpp | #include "DBase3File.h"
#include "utf8.h"
#ifndef _WIN32
#include "../system/IConv.h"
#endif
#include <cstring>
#include <cassert>
#include <shapefil.h>
#include <iostream>
using namespace std;
using namespace table;
class table::DBase3Handle {
public:
DBase3Handle() { }
~DBase3Handle() {
if (h) {
DB... | #include "DBase3File.h"
#include "utf8.h"
#include <cstring>
#include <cassert>
#include <shapefil.h>
#include <iostream>
using namespace std;
using namespace table;
class table::DBase3Handle {
public:
DBase3Handle() { }
~DBase3Handle() {
if (h) {
DBFClose(h);
}
}
void open(const std::string ... | remove dependency for IConv | remove dependency for IConv
| C++ | mit | Sometrik/graphlib,Sometrik/graphlib |
7b8fd157b942b0feeccd99ac8ddf57466a10e984 | main.cpp | main.cpp | #include <SDL.h>
#include <GL/glcorearb.h>
#include "imgui/imgui.h"
#include "imgui_impl_sdl_gl3.h"
#include "opengl.h"
#include "renderer.h"
#include "scene.h"
#include "mysdl_dpi.h"
#include <cstdio>
#include <functional>
extern "C"
int main(int argc, char *argv[])
{
MySDL_SetDPIAwareness_MustBeFirstWSICallIn... | #include <SDL.h>
#include <GL/glcorearb.h>
#include "imgui/imgui.h"
#include "imgui_impl_sdl_gl3.h"
#include "opengl.h"
#include "renderer.h"
#include "scene.h"
#include "mysdl_dpi.h"
#include <cstdio>
#include <functional>
extern "C"
int main(int argc, char *argv[])
{
MySDL_SetDPIAwareness_MustBeFirstWSICallIn... | remove mouse warping to smooth camera rotation | remove mouse warping to smooth camera rotation
While technically still necessary for OS X if the application were to launch in
relative mouse mode, because we start with the GUI focused, the transition into
relative mouse mode works without warping.
| C++ | mit | nlguillemot/fictional-doodle,nlguillemot/fictional-doodle |
43a722e52d469561f4d93b21b03ba2d47a5c4101 | lib/XRay/InstrumentationMap.cpp | lib/XRay/InstrumentationMap.cpp | //===- InstrumentationMap.cpp - XRay Instrumentation Map ------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===- InstrumentationMap.cpp - XRay Instrumentation Map ------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Store offset pointers in temporaries | [llvm-xray] Store offset pointers in temporaries
DataExtractor::getU64 modifies the OffsetPtr which also pass to
RelocateOrElse which breaks on Windows. This addresses the issue
introduced in r349120.
Differential Revision: https://reviews.llvm.org/D55689
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@349129 9... | C++ | apache-2.0 | GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Dri... |
0d4471f522a802efb32c76f15145f68a5cd47628 | src/GUIManager.cpp | src/GUIManager.cpp | #ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <cstdlib>
#include <iostream>
#include <cmath>
#include <cstring>
#include <string>
#include <sstream>
#include <ctime>
#include <vecto... | Update GuiManager.cpp | Update GuiManager.cpp | C++ | mit | sarthak171/cv-2017,sarthak171/cv-2017,Nohpyr/cv-2017,compvision/cv-2017,gastaunda/cv-2017,gastaunda/cv-2017,sarthak171/cv-2017,Nohpyr/cv-2017,gastaunda/cv-2017,compvision/cv-2017,compvision/cv-2017,Nohpyr/cv-2017 | |
44c34fb55a2952c183ee9703455b90b9cbd9c67e | src/Game/Clock.cpp | src/Game/Clock.cpp | #include "Game/Clock.h"
#include <array>
#include <chrono>
using namespace std::chrono_literals;
#include <cassert>
#include <limits>
#include <sstream>
#include "Game/Board.h"
#include "Game/Game_Result.h"
Clock::Clock(seconds duration_seconds,
size_t moves_to_reset,
seconds increment_seco... | #include "Game/Clock.h"
#include <array>
#include <chrono>
using namespace std::chrono_literals;
#include <cassert>
#include <limits>
#include <sstream>
#include "Game/Board.h"
#include "Game/Game_Result.h"
Clock::Clock(seconds duration_seconds,
size_t moves_to_reset,
seconds increment_seco... | Adjust clocks after punch even if time expired | Adjust clocks after punch even if time expired
Add increments or reset time due enough moves made even if the result
returned by punch will be a game-ending Game_Result. Games with GUIs and
games over the internet ignore clock.punch() results.
| C++ | mit | MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess |
f344732386f5740518511fb34a0a9656ef5063f6 | main.cpp | main.cpp | /*
* This file is part of Playslave-C++.
* Playslave-C++ is licenced under MIT License. See LICENSE.txt for more details.
*/
#include <thread>
#include <chrono>
#include <iostream>
#include "cmd.h"
#include "io.hpp"
#include "constants.h" /* LOOP_NSECS */
#include "messages.h" /* MSG_xyz */
#include "player.h"... | /*
* This file is part of Playslave-C++.
* Playslave-C++ is licenced under MIT License. See LICENSE.txt for more details.
*/
#include <thread>
#include <chrono>
#include <iostream>
#include "cmd.h"
#include "io.hpp"
#include "constants.h" /* LOOP_NSECS */
#include "messages.h" /* MSG_xyz */
#include "player.h"... | Expand out name of player variable. | Expand out name of player variable.
| C++ | mit | LordAro/ury-playd,LordAro/ury-playd,LordAro/ury-playd |
ecba87e720be60ed771e13a84d128a0cc7411453 | main.cpp | main.cpp | /*
---------------------------------------------------------------------------
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commerci... | /*
---------------------------------------------------------------------------
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commerci... | Update main to V4.0b-dev2 | Update main to V4.0b-dev2
-Implemented status effects. | C++ | unlicense | GamerMan7799/Attacker-The-Game |
7777e5cbb723ba2dd9c0697eac14f30f77971be9 | maybe.hh | maybe.hh | #ifndef MAYBE_HH
#define MAYBE_HH
#include <cassert>
#include <cstring>
#include <new>
#include <memory>
template<typename T>
struct maybe {
maybe() : is_init(false) {}
maybe(const T &other) : is_init(false) {
new (&memory) T(other);
is_init = true;
}
maybe(maybe &&other) {
is_init = other.is_in... | #ifndef MAYBE_HH
#define MAYBE_HH
#include <cassert>
#include <cstring>
#include <new>
#include <memory>
template<typename T>
struct maybe {
maybe() : is_init(false) {}
maybe(const T &other) : is_init(false) {
new (&memory) T(other);
is_init = true;
}
maybe(const maybe &other) : is_init(false) {
... | add copy-constructor from maybe<T> | maybe.hh: add copy-constructor from maybe<T>
| C++ | mit | thestinger/util,thestinger/util |
18c6454ad19d5d323af7b3318f18c409b84c7a12 | src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | /**************************************************************************
*
* Copyright 2009-2011 VMware, Inc.
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Softwar... | /**************************************************************************
*
* Copyright 2009-2011 VMware, Inc.
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Softwar... | fix output stream flushing in error case for disassembly. | gallivm: fix output stream flushing in error case for disassembly.
When there's an error, also need to flush the stream, otherwise an assertion
is hit (meaning you don't actually see the error neither).
| C++ | mit | tokyovigilante/glsl-optimizer,zz85/glsl-optimizer,dellis1972/glsl-optimizer,mcanthony/glsl-optimizer,djreep81/glsl-optimizer,tokyovigilante/glsl-optimizer,wolf96/glsl-optimizer,jbarczak/glsl-optimizer,wolf96/glsl-optimizer,benaadams/glsl-optimizer,zeux/glsl-optimizer,wolf96/glsl-optimizer,mcanthony/glsl-optimizer,mcant... |
063ae8e0bdc3e623bb759d2f2057789065522781 | src/NodePoppler.cc | src/NodePoppler.cc | #include <nan.h>
#include <iostream>
#include <string>
#include <sstream>
#include <map>
#include <stdlib.h>
#include <stdio.h>
#include <poppler/qt4/poppler-form.h>
#include <poppler/qt4/poppler-qt4.h>
#include <cairo/cairo.h>
#include <cairo/cairo-pdf.h>
#include <QtCore/QBuffer>
#include <QtCore/QFile>
#include <... | #include <nan.h>
#include <iostream>
#include <string>
#include <sstream>
#include <map>
#include <stdlib.h>
#include <stdio.h>
#include <poppler/qt4/poppler-form.h>
#include <poppler/qt4/poppler-qt4.h>
#include <cairo/cairo.h>
#include <cairo/cairo-pdf.h>
#include <QtCore/QBuffer>
#include <QtCore/QFile>
#include <... | Add read and write support for ChoiceType fields | Add read and write support for ChoiceType fields
| C++ | mit | tpisto/pdf-fill-form,tpisto/pdf-fill-form,zepspaiva/pdf-fill-form-latin1,zepspaiva/pdf-fill-form-latin1,zepspaiva/pdf-fill-form-latin1,tpisto/pdf-fill-form,zepspaiva/pdf-fill-form-latin1,tpisto/pdf-fill-form |
7f5c8c3e9fa5880b9a783486bf239302852616ce | src/PrimeTower.cpp | src/PrimeTower.cpp | #include "PrimeTower.h"
#include <limits>
#include "ExtruderTrain.h"
#include "sliceDataStorage.h"
#include "gcodeExport.h"
#include "LayerPlan.h"
#include "infill.h"
#include "PrintFeature.h"
namespace cura
{
PrimeTower::PrimeTower(const SliceDataStorage& storage)
: is_hollow(false)
, wipe_from_middle(false)
{
... | #include "PrimeTower.h"
#include <limits>
#include "ExtruderTrain.h"
#include "sliceDataStorage.h"
#include "gcodeExport.h"
#include "LayerPlan.h"
#include "infill.h"
#include "PrintFeature.h"
namespace cura
{
PrimeTower::PrimeTower(const SliceDataStorage& storage)
: is_hollow(false)
, wipe_from_middle(false)
{
... | Use coord_t for wipe distance | Use coord_t for wipe distance
CURA-3094
coord_t can handle larger numbers than int.
| C++ | agpl-3.0 | alephobjects/CuraEngine,ROBO3D/CuraEngine,alephobjects/CuraEngine,ROBO3D/CuraEngine,alephobjects/CuraEngine,Ultimaker/CuraEngine,Ultimaker/CuraEngine,ROBO3D/CuraEngine |
5a7c3553d5eb44cf037ecbd66492092753369deb | flash-graph/libgraph-algs/wcc.cpp | flash-graph/libgraph-algs/wcc.cpp | /**
* Copyright 2014 Open Connectome Project (http://openconnecto.me)
* Written by Da Zheng (zhengda1936@gmail.com)
*
* This file is part of FlashGraph.
*
* 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 ... | /**
* Copyright 2014 Open Connectome Project (http://openconnecto.me)
* Written by Da Zheng (zhengda1936@gmail.com)
*
* This file is part of FlashGraph.
*
* 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 ... | fix wcc for the new graph engine. | [Graph]: fix wcc for the new graph engine.
| C++ | apache-2.0 | silky/FlashGraph,icoming/FlashX,silky/FlashGraph,flashxio/FlashX,flashxio/FlashX,icoming/FlashGraph,flashxio/FlashX,icoming/FlashX,silky/FlashGraph,icoming/FlashX,icoming/FlashGraph,icoming/FlashX,silky/FlashGraph,zheng-da/FlashX,zheng-da/FlashX,icoming/FlashX,silky/FlashGraph,zheng-da/FlashX,zheng-da/FlashX,icoming/Fl... |
d4b2d6ebaa377e5a66c4c5e8632073217bda5ef0 | src/lib/process_splitters/AlignmentOffsets.hpp | src/lib/process_splitters/AlignmentOffsets.hpp | #pragma once
#include "Utility.hpp"
#include "Parse.hpp"
#include <sam.h>
#include <boost/format.hpp>
#include <stdint.h>
#include <string.h>
#include <stdexcept>
using boost::format;
struct AlignmentOffsets {
uint32_t raLen;
uint32_t qaLen;
uint32_t sclip;
uint32_t eclip;
bool first;
Al... | #pragma once
#include "Utility.hpp"
#include "Parse.hpp"
#include <sam.h>
#include <boost/format.hpp>
#include <stdint.h>
#include <string.h>
#include <stdexcept>
using boost::format;
struct AlignmentOffsets {
uint32_t raLen;
uint32_t qaLen;
uint32_t sclip;
uint32_t eclip;
bool first;
Al... | add default constructor | add default constructor
| C++ | mit | hall-lab/extract_sv_reads,hall-lab/extract_sv_reads,hall-lab/extract_sv_reads |
005a1964eebe4a6ebc787bce3745b1689bca61fc | renderdoc/driver/gl/cgl_hooks.cpp | renderdoc/driver/gl/cgl_hooks.cpp | /******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2018-2019 Baldur Karlsson
*
* 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 MIT License (MIT)
*
* Copyright (c) 2018-2019 Baldur Karlsson
*
* 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... | Check for GL profile on macos to determine if context is core or compat | Check for GL profile on macos to determine if context is core or compat
| C++ | mit | Zorro666/renderdoc,baldurk/renderdoc,Zorro666/renderdoc,TurtleRockStudios/renderdoc_public,baldurk/renderdoc,baldurk/renderdoc,Zorro666/renderdoc,TurtleRockStudios/renderdoc_public,Zorro666/renderdoc,TurtleRockStudios/renderdoc_public,baldurk/renderdoc,TurtleRockStudios/renderdoc_public,TurtleRockStudios/renderdoc_publ... |
1f8ed5af25717d4f03abb8bd505894d71a8561d8 | Runtime/RetroTypes.hpp | Runtime/RetroTypes.hpp | #pragma once
#include <vector>
#include <utility>
#include <string>
#include <functional>
#include "GCNTypes.hpp"
#include "rstl.hpp"
#include "IOStreams.hpp"
#include "hecl/hecl.hpp"
#include "zeus/CVector3f.hpp"
#include "zeus/CVector2f.hpp"
#include "zeus/CMatrix3f.hpp"
#include "zeus/CMatrix4f.hpp"
#include "zeus/... | #pragma once
#include <vector>
#include <utility>
#include <string>
#include <functional>
#include "GCNTypes.hpp"
#include "rstl.hpp"
#include "IOStreams.hpp"
#include "hecl/hecl.hpp"
#include "zeus/CVector3f.hpp"
#include "zeus/CVector2f.hpp"
#include "zeus/CMatrix3f.hpp"
#include "zeus/CMatrix4f.hpp"
#include "zeus/... | Make types constexpr where applicable | RetroTypes: Make types constexpr where applicable
These are generally used as basic tags and ID types, so these can have a
constexpr interface. This is particularly beneficial, given some of
these types are used in file-static lookup tables.
Without being constexpr, these type's constructors in that case are
technica... | C++ | mit | RetroView/PathShagged,AxioDL/PathShagged,AxioDL/PathShagged,AxioDL/PathShagged,RetroView/PathShagged,RetroView/PathShagged |
3f898e6785875c97e3a6cdf33d6ffe42ba526b41 | lib/Analysis/LibCallSemantics.cpp | lib/Analysis/LibCallSemantics.cpp | //===- LibCallSemantics.cpp - Describe library semantics ------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===- LibCallSemantics.cpp - Describe library semantics ------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | remove function names from comments; NFC | remove function names from comments; NFC
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@220309 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,apple/swift-ll... |
24f29638cd880cc5a64b5e7ff6beedfee47b380d | cue.cpp | cue.cpp | /* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* Flacon - audio File Encoder
* https://github.com/flacon/flacon
*
* Copyright: 2012-2015
* Alexander Sokoloff <sokoloff.a@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
... | /* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* Flacon - audio File Encoder
* https://github.com/flacon/flacon
*
* Copyright: 2012-2015
* Alexander Sokoloff <sokoloff.a@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
... | Remove old CueReader::load method | Remove old CueReader::load method
| C++ | lgpl-2.1 | flacon/flacon,flacon/flacon,flacon/flacon,flacon/flacon |
59affc672aeb1e397153dedeb6316747eb6dbdbc | lib/DebugInfo/PDB/Raw/PDBFile.cpp | lib/DebugInfo/PDB/Raw/PDBFile.cpp | //===- PDBFile.cpp - Low level interface to a PDB file ----------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===- PDBFile.cpp - Low level interface to a PDB file ----------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Fix read past EOF when file is too small. | [llvm-pdbdump] Fix read past EOF when file is too small.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@268316 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mi... |
d41726b381bcd3a0dd64a623af9dc06a5bd41bd7 | src/plugin_winamp3/cnv_flacpcm.cpp | src/plugin_winamp3/cnv_flacpcm.cpp | /* FLAC input plugin for Winamp3
* Copyright (C) 2000,2001,2002 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 License, or (at your option)... | /* FLAC input plugin for Winamp3
* Copyright (C) 2000,2001,2002 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 License, or (at your option)... | fix WACNAME | fix WACNAME
| C++ | bsd-3-clause | Distrotech/flac,Distrotech/flac,waitman/flac,waitman/flac,Distrotech/flac,waitman/flac,fredericgermain/flac,LordJZ/libflac,Distrotech/flac,fredericgermain/flac,kode54/flac,LordJZ/libflac,fredericgermain/flac,LordJZ/libflac,kode54/flac,fredericgermain/flac,waitman/flac,kode54/flac,kode54/flac,LordJZ/libflac,waitman/flac |
ab0e8d918f69d30841d8aa20441400c72e25e1b8 | src/aur/request.cc | src/aur/request.cc | #include "request.hh"
#include <cstring>
#include <memory>
#include <string_view>
#include <curl/curl.h>
namespace aur {
namespace {
std::string UrlEscape(const std::string_view sv) {
char* ptr = curl_easy_escape(nullptr, sv.data(), sv.size());
std::string escaped(ptr);
curl_free(ptr);
return escaped;
}
... | #include "request.hh"
#include <cstring>
#include <memory>
#include <string_view>
#include <curl/curl.h>
namespace aur {
namespace {
std::string UrlEscape(const std::string_view sv) {
char* ptr = curl_easy_escape(nullptr, sv.data(), sv.size());
std::string escaped(ptr);
curl_free(ptr);
return escaped;
}
... | Fix type in append size calculation | Fix type in append size calculation
| C++ | mit | falconindy/auracle,falconindy/auracle,falconindy/auracle |
85ce6e18e1968c2480563b528b2c3ac1daad273c | src/pubkey/gost_3410/gost_3410.cpp | src/pubkey/gost_3410/gost_3410.cpp | /*
* GOST 34.10-2001 implemenation
* (C) 2007 Falko Strenzke, FlexSecure GmbH
* Manuel Hartl, FlexSecure GmbH
* (C) 2008-2010 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#include <botan/gost_3410.h>
#include <botan/der_enc.h>
#include <botan/ber_dec.h>
#include <iostream>
#include <std... | /*
* GOST 34.10-2001 implemenation
* (C) 2007 Falko Strenzke, FlexSecure GmbH
* Manuel Hartl, FlexSecure GmbH
* (C) 2008-2010 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#include <botan/gost_3410.h>
#include <botan/der_enc.h>
#include <botan/ber_dec.h>
namespace Botan {
MemoryVector<b... | Remove iostream/stdio includes | Remove iostream/stdio includes
| C++ | bsd-2-clause | Rohde-Schwarz-Cybersecurity/botan,randombit/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,webmaster128/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,webmaster128/botan,webmaster128/botan,Rohde-Sch... |
63ddad54a9901450c09c136d19d68dd0357b72b8 | libcaf_net/src/network_socket.cpp | libcaf_net/src/network_socket.cpp | /******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... | /******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... | Remove unnecessary include | Remove unnecessary include
| C++ | bsd-3-clause | DavadDi/actor-framework,actor-framework/actor-framework,DavadDi/actor-framework,actor-framework/actor-framework,DavadDi/actor-framework,actor-framework/actor-framework,actor-framework/actor-framework,DavadDi/actor-framework |
2ee2ed5ddfa4987cfeae5042f1eb4c89df63d818 | lib/smurff-cpp/MatricesData.cpp | lib/smurff-cpp/MatricesData.cpp | #include "MatricesData.h"
#include "UnusedNoise.h"
using namespace smurff;
MatricesData::MatricesData() : total_dim(2)
{
name = "MatricesData";
noise_ptr = std::unique_ptr<INoiseModel>(new UnusedNoise(this));
}
void MatricesData::init_pre()
{
mode_dim.resize(nmode());
for(int n = 0; n<nmode(); ++n)
{
... | #include "MatricesData.h"
#include "UnusedNoise.h"
using namespace smurff;
MatricesData::MatricesData() : total_dim(2)
{
name = "MatricesData";
noise_ptr = std::unique_ptr<INoiseModel>(new UnusedNoise(this));
}
void MatricesData::init_pre()
{
mode_dim.resize(nmode());
for(int n = 0; n<nmode(); ++n)
{
... | Fix compilation issue | Fix compilation issue
| C++ | mit | ExaScience/smurff,ExaScience/smurff,ExaScience/smurff,ExaScience/smurff,ExaScience/smurff,ExaScience/smurff |
ae40630a7b6c1932bf5a3c0a66265afb52a402dc | lib/Target/ARM/ARMMacroFusion.cpp | lib/Target/ARM/ARMMacroFusion.cpp | //===- ARMMacroFusion.cpp - ARM Macro Fusion ----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===---------------------------------------------------------------... | //===- ARMMacroFusion.cpp - ARM Macro Fusion ----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===---------------------------------------------------------------... | Refactor macro fusion | [NFC][ARM] Refactor macro fusion
Simplify code for wildcards.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@344625 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Dri... |
6fd02f44810754ae7481838b6a67c5df7f909ca3 | tensorflow/core/kernels/sparse_add_op.cc | tensorflow/core/kernels/sparse_add_op.cc | /* Copyright 2016 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 2016 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 `tf.raw_ops.SparseAdd ` invalid memory access failure. | Fix `tf.raw_ops.SparseAdd ` invalid memory access failure.
PiperOrigin-RevId: 370568774
Change-Id: I5f73b31c865f2948a1c8dfb7ebd22b3cfb6405bf
| C++ | apache-2.0 | tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow,frreiss/tensorflow-fred,paolodedios/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,sarvex/tensorflow,Intel-tensorflow/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_on... |
a937f5ef10ebc81f1d9d68e6c0bbf2173bd5583e | libkopete/private/kopeteprefs.cpp | libkopete/private/kopeteprefs.cpp | /*
kopeteprefs.cpp - Kopete Preferences Container-Class
Copyright (c) 2002 by Stefan Gehn <sgehn@gmx.net>
Kopete (c) 2002-2003 by the Kopete developers <kopete-devel@kde.org>
*************************************************************************
* ... | /*
kopeteprefs.cpp - Kopete Preferences Container-Class
Copyright (c) 2002 by Stefan Gehn <sgehn@gmx.net>
Kopete (c) 2002-2003 by the Kopete developers <kopete-devel@kde.org>
*************************************************************************
* ... | Fix warning | Fix warning
svn path=/trunk/kdenetwork/kopete/; revision=231963
| C++ | lgpl-2.1 | josh-wambua/kopete,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,josh-wambua/kopete,josh-wambua/kopete,josh-wambua/kopete,josh-wambua/kopete,Jtalk/kopete-fork-xep0136 |
3c38aab8bbcb8dbc80081616e74f64b9a47edd25 | test/SemaCXX/constructor-initializer.cpp | test/SemaCXX/constructor-initializer.cpp | // RUN: clang-cc -Wreorder -fsyntax-only -verify %s
class A {
int m;
A() : A::m(17) { } // expected-error {{member initializer 'm' does not name a non-static data member or base class}}
A(int);
};
class B : public A {
public:
B() : A(), m(1), n(3.14) { }
private:
int m;
float n;
};
class C : publi... | // RUN: clang-cc -Wreorder -fsyntax-only -verify %s
class A {
int m;
A() : A::m(17) { } // expected-error {{member initializer 'm' does not name a non-static data member or base class}}
A(int);
};
class B : public A {
public:
B() : A(), m(1), n(3.14) { }
private:
int m;
float n;
};
class C : publi... | fix test (broken in r77224) | fix test (broken in r77224)
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@77241 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl... |
1c55c7be31ad845038b5c3f999299e20185f9cf9 | wowfoot-cpp/handlers/skillShared/skillShared.cpp | wowfoot-cpp/handlers/skillShared/skillShared.cpp | #include "skillShared.h"
#include "lockEnums.h"
#include <string.h>
#include <stdio.h>
#include "win32.h"
// returns NULL on parse error.
const SkillLine* parseSkillId(ostream& os, const char* urlPart) {
// format: <category>.<skill>
int categoryId, skillId;
uint len;
int res = sscanf(urlPart, "%i.%i%n", &category... | #include "skillShared.h"
#include "lockEnums.h"
#include <string.h>
#include <stdio.h>
#include "win32.h"
// returns NULL on parse error.
const SkillLine* parseSkillId(ostream& os, const char* urlPart) {
// format: <category>.<skill>
int categoryId, skillId;
uint len;
int res = sscanf(urlPart, "%i.%i%n", &category... | allow skillId without categoryId. | parseSkillId: allow skillId without categoryId.
| C++ | agpl-3.0 | Masken3/wowfoot,Masken3/wowfoot,Masken3/wowfoot,Masken3/wowfoot,Masken3/wowfoot,Masken3/wowfoot |
bc496094806d37b2d3a79ae38880f1e079a97631 | libcaf_core/caf/span.hpp | libcaf_core/caf/span.hpp | /******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... | /******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... | Add missing constructor | Add missing constructor
| C++ | bsd-3-clause | DavadDi/actor-framework,actor-framework/actor-framework,actor-framework/actor-framework,DavadDi/actor-framework,DavadDi/actor-framework,actor-framework/actor-framework,actor-framework/actor-framework,DavadDi/actor-framework |
597cc27a50f7b59a9ce63c910e45a234d55cff85 | src/bp_control.cxx | src/bp_control.cxx | /*
* Handler for control messages.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "bp_control.hxx"
#include "bp_stats.hxx"
#include "control_server.hxx"
#include "control_local.hxx"
#include "udp-distribute.h"
#include "bp_instance.hxx"
#include "tcache.hxx"
#include "translate_request.hxx"
#include "tpool... | /*
* Handler for control messages.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "bp_control.hxx"
#include "bp_stats.hxx"
#include "control_server.hxx"
#include "control_local.hxx"
#include "udp-distribute.h"
#include "bp_instance.hxx"
#include "tcache.hxx"
#include "translate_request.hxx"
#include "tpool... | use TranslateRequest::Clear() instead of memset() | bp_control: use TranslateRequest::Clear() instead of memset() | C++ | bsd-2-clause | CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy |
a85464242f3501c80f5e1a200969e539b6f528c3 | ds9/backend.cpp | ds9/backend.cpp | /* This file is part of the KDE project.
Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies).
This library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 2.1 or 3 of the Lice... | /* This file is part of the KDE project.
Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies).
This library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 2.1 or 3 of the Lice... | make autotest path when reconnecting a path with the exact same source and sink. | make autotest path when reconnecting a path with the exact same source and sink.
| C++ | lgpl-2.1 | shadeslayer/phonon-gstreamer,KDE/phonon-xine,KDE/phonon-mmf,KDE/phonon-gstreamer,KDE/phonon-waveout,KDE/phonon-gstreamer,shadeslayer/phonon-gstreamer,KDE/phonon-directshow,KDE/phonon-directshow,KDE/phonon-quicktime,KDE/phonon-xine,shadeslayer/phonon-gstreamer,KDE/phonon-xine |
634967958f70e977335c865ce2b411c87560d62f | src/saiga/vulkan/memory/BaseChunkAllocator.cpp | src/saiga/vulkan/memory/BaseChunkAllocator.cpp | //
// Created by Peter Eichinger on 30.10.18.
//
#include "BaseChunkAllocator.h"
#include "saiga/core/imgui/imgui.h"
#include "saiga/core/util/easylogging++.h"
#include "saiga/core/util/tostring.h"
#include "BufferChunkAllocator.h"
#include "ChunkCreator.h"
namespace Saiga::Vulkan::Memory
{
MemoryLocation* BaseChunk... | //
// Created by Peter Eichinger on 30.10.18.
//
#include "BaseChunkAllocator.h"
#include "saiga/core/imgui/imgui.h"
#include "saiga/core/util/easylogging++.h"
#include "saiga/core/util/tostring.h"
#include "BufferChunkAllocator.h"
#include "ChunkCreator.h"
namespace Saiga::Vulkan::Memory
{
MemoryLocation* BaseChunk... | Fix base chunk allocator valgrind error | Fix base chunk allocator valgrind error
| C++ | mit | darglein/saiga,darglein/saiga,darglein/saiga |
cffb9cabecb963f193a26778c61add174efe9aae | src/cal3d/bone.cpp | src/cal3d/bone.cpp | //****************************************************************************//
// bone.cpp //
// Copyright (C) 2001, 2002 Bruno 'Beosil' Heidelberger //
//***************************************************************************... | //****************************************************************************//
// bone.cpp //
// Copyright (C) 2001, 2002 Bruno 'Beosil' Heidelberger //
//***************************************************************************... | clarify some documentation | clarify some documentation
git-svn-id: febc42a3fd39fb08e5ae2b2182bc5ab0a583559c@117023 07c76cb3-cb09-0410-85de-c24d39f1912e
| C++ | lgpl-2.1 | imvu/cal3d,imvu/cal3d,imvu/cal3d,imvu/cal3d |
c304142b4053fd33ab10ca7beb9049d3379f4c85 | TestMore/CondExpAD.cpp | TestMore/CondExpAD.cpp | // BEGIN SHORT COPYRIGHT
/* -----------------------------------------------------------------------
CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-05 Bradley M. Bell
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... | // BEGIN SHORT COPYRIGHT
/* -----------------------------------------------------------------------
CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-05 Bradley M. Bell
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... | simplify and add missing check of reverse mode | simplify and add missing check of reverse mode
git-svn-id: 3f5418f4deb1796ec361794c2e3ca0aec3c9c1fd@209 0e562018-b8fb-0310-a933-ecf073c7c197
| C++ | epl-1.0 | wegamekinglc/CppAD,wegamekinglc/CppAD,kaskr/CppAD,kaskr/CppAD,kaskr/CppAD,utke1/cppad,tkelman/CppAD-oldmirror,utke1/cppad,kaskr/CppAD,wegamekinglc/CppAD,wegamekinglc/CppAD,wegamekinglc/CppAD,tkelman/CppAD-oldmirror,utke1/cppad,tkelman/CppAD-oldmirror,tkelman/CppAD-oldmirror,utke1/cppad,kaskr/CppAD |
5876c3f089da4f69a1279f69eb9229bced13cde2 | servers/register_server_types.cpp | servers/register_server_types.cpp | /*************************************************************************/
/* register_server_types.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... | /*************************************************************************/
/* register_server_types.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... | Revert " Deprecated Godot 3D physics engine" | Revert " Deprecated Godot 3D physics engine"
This reverts commit 5de5a4140b9a397935737c6ce0088602be6840d7.
@reduz still intends to rework it in the future, and it's convenient to
test if issues are specific to Bullet or not, so we keep it around for
the time being.
| C++ | mit | ex/godot,akien-mga/godot,BastiaanOlij/godot,godotengine/godot,Shockblast/godot,ex/godot,ex/godot,firefly2442/godot,firefly2442/godot,BastiaanOlij/godot,akien-mga/godot,Valentactive/godot,josempans/godot,vnen/godot,guilhermefelipecgs/godot,guilhermefelipecgs/godot,godotengine/godot,groud/godot,okamstudio/godot,Paulloz/g... |
8d48570e8182c309972ee49252ee742fc7eb3053 | simple-consistency-stress-test.cc | simple-consistency-stress-test.cc | // Copyright (c) 2012, Cornell University
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list ... | // Copyright (c) 2012, Cornell University
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list ... | Fix an inconsistency on very large windows. | Fix an inconsistency on very large windows.
The problem is the following:
A read of item 0 could see repetition i + 1, and then a read of item n
could see repetition i. It would report this as an inconsistency.
The fix is to reset the old value on every iteration of the reader threads.
This is not a problem... | C++ | bsd-3-clause | jtk54/HyperDex,jtk54/HyperDex,tempbottle/HyperDex,pombredanne/HyperDex,rescrv/HyperDex,tempbottle/HyperDex,rescrv/HyperDex,UIKit0/HyperDex,tempbottle/HyperDex,rescrv/HyperDex,vashstorm/HyperDex,vashstorm/HyperDex,UIKit0/HyperDex,cactorium/HyperDex,pombredanne/HyperDex,vashstorm/HyperDex,rescrv/HyperDex,cactorium/HyperD... |
ce6e2f6f81b59386b3b5f606a799fef47d994536 | src/connection.hpp | src/connection.hpp | #ifndef RIAKPP_CONNECTION_HPP_
#define RIAKPP_CONNECTION_HPP_
#include <cstdint>
#include <functional>
#include <string>
#include <system_error>
namespace riak {
// TODO(cristicbz): Add method for cancelling requests. Destructors should
// cancel all requests then wait for them to return.
class connection {
public:
... | #ifndef RIAKPP_CONNECTION_HPP_
#define RIAKPP_CONNECTION_HPP_
#include <cstdint>
#include <functional>
#include <string>
#include <system_error>
namespace riak {
// TODO(cristicbz): Add method for cancelling requests. Destructors should
// cancel all requests then wait for them to return.
class connection {
public:
... | use deadline by default | use deadline by default
| C++ | apache-2.0 | reinfer/riakpp,reinfer/riakpp |
b956ab5c44c379aff33d55c2238c9c5d68c8f831 | apps/test/Test.cpp | apps/test/Test.cpp |
#include "Polaris_PCH.h"
using namespace polaris;
// Test agent
prototype struct Agent ADD_DEBUG_INFO
{
tag_as_prototype;
template<typename T> void Initialize()
{
this_component()->Initialize();
this_component()->Load_Event<ComponentType>(&Agent_Event,1,0);
}
static void Agent_Event(ComponentType* _this,Eve... | #include "Antares/Antares.h"
using namespace polaris;
// Test agent
prototype struct Agent ADD_DEBUG_INFO
{
tag_as_prototype;
template<typename T> void Initialize()
{
this_component()->Initialize();
this_component()->Load_Event<ComponentType>(&Agent_Event,1,0);
}
static void Agent_Event(ComponentType* _this,... | Update to test application | Update to test application
| C++ | bsd-3-clause | anl-tracc/polaris,Symcies/polaris,anl-tracc/polaris,anl-tracc/polaris,Symcies/polaris,Symcies/polaris,anl-tracc/polaris |
55e7f46889a6d0a9496ba50faa4764a40b5dbcf2 | source/algorithms/class_fdmrg.cpp | source/algorithms/class_fdmrg.cpp | //
// Created by david on 2018-01-31.
//
#include "class_fdmrg.h"
#include <config/nmspc_settings.h>
#include <tensors/state/class_state_finite.h>
#include <tools/common/io.h>
#include <tools/common/log.h>
#include <tools/common/fmt.h>
#include <tools/common/prof.h>
#include <tools/finite/io.h>
#include <tools/finite/... | //
// Created by david on 2018-01-31.
//
#include "class_fdmrg.h"
#include <config/nmspc_settings.h>
#include <tensors/state/class_state_finite.h>
#include <tools/common/io.h>
#include <tools/common/log.h>
#include <tools/common/fmt.h>
#include <tools/common/prof.h>
#include <tools/finite/io.h>
#include <tools/finite/... | Print variance change in debug mode to detect svd errors | Print variance change in debug mode to detect svd errors
Former-commit-id: bd2d4b19c32488afeb210134b69c02b7122d304d | C++ | mit | DavidAce/DMRG,DavidAce/DMRG,DavidAce/DMRG,DavidAce/DMRG |
0e1d9038cc94ca63b2c36d3cade5a1ddb6452e30 | src/core/Debug.cpp | src/core/Debug.cpp | /*
(c) Copyright 2012-2013 DirectFB integrated media GmbH
(c) Copyright 2001-2013 The world wide DirectFB Open Source Community (directfb.org)
(c) Copyright 2000-2004 Convergence (integrated media) GmbH
All rights reserved.
Written by Denis Oliver Kropp <dok@directfb.org>,
Andreas Hund... | /*
(c) Copyright 2012-2013 DirectFB integrated media GmbH
(c) Copyright 2001-2013 The world wide DirectFB Open Source Community (directfb.org)
(c) Copyright 2000-2004 Convergence (integrated media) GmbH
All rights reserved.
Written by Denis Oliver Kropp <dok@directfb.org>,
Andreas Hund... | Add ToString<DFBSurfacePorterDuffRule>. | Debug: Add ToString<DFBSurfacePorterDuffRule>.
| C++ | lgpl-2.1 | deniskropp/DirectFB,kevleyski/directfb,sklnet/DirectFB,djbclark/directfb-core-DirectFB,lancebaiyouview/DirectFB,jcdubois/DirectFB,kaostao/directfb,dfbdok/DirectFB1,kevleyski/DirectFB-1,sklnet/DirectFB,kevleyski/directfb,mtsekm/test,DirectFB/directfb,kevleyski/directfb,kaostao/directfb,kevleyski/DirectFB-1,djbclark/dire... |
55dca3667a5bfbe8a2b6ce232295465b393558db | lib/qsort.tas.cpp | lib/qsort.tas.cpp | #include "common.th"
#define elem(Dest, Base, Index) \
Dest <- E * Index ; \
Dest <- Dest + Base ; \
//
#define swap(i0, i1) \
pushall(c,d,e,f) \
f <- i0 \
g <- i1 \
call(do_swap) \
popall(c,d,e,f) \
... | #include "common.th"
#define elem(Dest, Base, Index) \
Dest <- E * Index ; \
Dest <- Dest + Base ; \
//
#define swap(i0, i1) \
pushall(c,d,e,f) ; \
f <- i0 ; \
g <- i1 ; \
call(do_swap) ; \
popall(c,d,e,f) \
... | Add explicit statement separators to qsort | Add explicit statement separators to qsort
| C++ | mit | kulp/tenyr,kulp/tenyr,kulp/tenyr |
00d40b5018b0f7621646489a996bdacadaf1c9be | src/css_parser.cxx | src/css_parser.cxx | /*
* Simple parser for CSS (Cascading Style Sheets).
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "css_parser.hxx"
#include "css_syntax.hxx"
#include "pool.hxx"
#include "istream/istream.hxx"
#include "util/CharUtil.hxx"
enum CssParserState {
CSS_PARSER_NONE,
CSS_PARSER_BLOCK,
CSS_PARSER_CLA... | /*
* Simple parser for CSS (Cascading Style Sheets).
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "css_parser.hxx"
#include "css_syntax.hxx"
#include "pool.hxx"
#include "istream/istream.hxx"
#include "util/CharUtil.hxx"
#include "util/TrivialArray.hxx"
#include "util/StringView.hxx"
enum CssParserState... | use TrivialArray for name, value and url buffers | css_parser: use TrivialArray for name, value and url buffers
| C++ | bsd-2-clause | CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy |
b40d173e257fb8f1cc9335d2cc0691fa338b7aa2 | library/cpp/sandesh_connection.cc | library/cpp/sandesh_connection.cc | /*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
//
// sandesh_connection.cc
//
// Sandesh connection management implementation
//
#include <io/tcp_session.h>
#include <io/tcp_server.h>
#include <base/logging.h>
#include <sandesh/protocol/TXMLProtocol.h>
#include <sandesh/sandesh_types.h>
#in... | /*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
//
// sandesh_connection.cc
//
// Sandesh connection management implementation
//
#include <io/tcp_session.h>
#include <io/tcp_server.h>
#include <base/logging.h>
#include <sandesh/protocol/TXMLProtocol.h>
#include <sandesh/sandesh_types.h>
#in... | Use correct LifetimeActor method to trigger deletion of object. | Use correct LifetimeActor method to trigger deletion of object.
Ran into this when fixing an issue in lifetime manager.
Clients should call Delete instead of simply enqueueing the DeleteActor
to the LifetimeManager. The main difference is that the Delete method
has protection against duplicate Enqueue.
Will separat... | C++ | apache-2.0 | toabctl/contrail-sandesh,Juniper/contrail-sandesh,vpramo/contrail-sandesh,varunarya10/contrail-sandesh,safchain/contrail-sandesh,vpramo/contrail-sandesh,vpramo/contrail-sandesh,safchain/contrail-sandesh,toabctl/contrail-sandesh,Juniper/contrail-sandesh,varunarya10/contrail-sandesh,Juniper/contrail-sandesh,toabctl/contr... |
386aea249bb16eef206c4c487bfab6c02a8f4ff7 | tree/treeplayer/test/dataframe/dataframe_callbacks.cxx | tree/treeplayer/test/dataframe/dataframe_callbacks.cxx | #include "ROOT/TDataFrame.hxx"
#include "TRandom.h"
#include "TROOT.h"
#include "gtest/gtest.h"
#include <limits>
using namespace ROOT::Experimental;
using namespace ROOT::Experimental::TDF;
using namespace ROOT::Detail::TDF;
/********* FIXTURES *********/
static constexpr ULong64_t gNEvents = 8ull;
// fixture that p... | #include "ROOT/TDataFrame.hxx"
#include "TRandom.h"
#include "TROOT.h"
#include "gtest/gtest.h"
#include <limits>
using namespace ROOT::Experimental;
using namespace ROOT::Experimental::TDF;
using namespace ROOT::Detail::TDF;
/********* FIXTURES *********/
static constexpr ULong64_t gNEvents = 8ull;
// fixture that p... | Remove warning in dataframe_callbacks | [TDF] Remove warning in dataframe_callbacks
| C++ | lgpl-2.1 | olifre/root,karies/root,root-mirror/root,karies/root,root-mirror/root,zzxuanyuan/root,zzxuanyuan/root,zzxuanyuan/root,olifre/root,root-mirror/root,root-mirror/root,zzxuanyuan/root,root-mirror/root,olifre/root,zzxuanyuan/root,zzxuanyuan/root,karies/root,karies/root,zzxuanyuan/root,karies/root,olifre/root,olifre/root,roo... |
f01b108c7546ec42fdb8433bcbe0b54fe51b0887 | src/data/vocab.cpp | src/data/vocab.cpp |
#include <sstream>
#include <algorithm>
#include "data/vocab.h"
#include "common/utils.h"
#include "common/file_stream.h"
#include "3rd_party/exception.h"
#include "3rd_party/yaml-cpp/yaml.h"
Vocab::Vocab() {
}
size_t Vocab::operator[](const std::string& word) const {
auto it = str2id_.find(word);
if(it != ... |
#include <sstream>
#include <algorithm>
#include "data/vocab.h"
#include "common/utils.h"
#include "common/file_stream.h"
#include "3rd_party/exception.h"
#include "3rd_party/yaml-cpp/yaml.h"
Vocab::Vocab() {
}
size_t Vocab::operator[](const std::string& word) const {
auto it = str2id_.find(word);
if(it != ... | add eos and UNK | add eos and UNK
| C++ | mit | marian-nmt/marian-train,emjotde/amunmt,marian-nmt/marian-train,DianaDespa/marian-train,emjotde/Marian,emjotde/amunmt,emjotde/amunn,emjotde/amunn,emjotde/amunn,emjotde/Marian,amunmt/marian,DianaDespa/marian-train,emjotde/amunn,emjotde/amunmt,emjotde/amunmt,amunmt/marian,DianaDespa/marian-train,marian-nmt/marian-train,am... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.