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
6e3d8c7b66bf0185fa50c3868eb4677a84c6f6d7
src/skaffari.cpp
src/skaffari.cpp
/* * Skaffari - a mail account administration web interface based on Cutelyst * Copyright (C) 2017 Matthias Fehring <kontakt@buschmann23.de> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Fo...
/* * Skaffari - a mail account administration web interface based on Cutelyst * Copyright (C) 2017 Matthias Fehring <kontakt@buschmann23.de> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Fo...
Add application version
Add application version
C++
agpl-3.0
Buschtrommel/Skaffari,Buschtrommel/Skaffari,Buschtrommel/Skaffari,Buschtrommel/Skaffari,Huessenbergnetz/Skaffari,Huessenbergnetz/Skaffari,Buschtrommel/Skaffari,Huessenbergnetz/Skaffari,Huessenbergnetz/Skaffari,Huessenbergnetz/Skaffari,Huessenbergnetz/Skaffari
023109d30f04e54ecc6bb225f587c41603d9684b
header/CThreadPool_Ret.hpp
header/CThreadPool_Ret.hpp
#ifndef CTHREADPOOL_RET #define CTHREADPOOL_RET #include<thread> //thread::hardware_concurrency #include<type_traits> //result_of_t #include<unordered_map> #include<utility> //forward, move #include"../../lib/header/thread/CThreadRingBuf.hpp" #include"CThreadPoolItem_Ret.hpp" namespace nThread { //1. a fixed-sized th...
#ifndef CTHREADPOOL_RET #define CTHREADPOOL_RET #include<thread> //thread::hardware_concurrency #include<type_traits> //result_of_t #include<unordered_map> #include<utility> //forward, move #include"../../lib/header/thread/CThreadRingBuf.hpp" #include"CThreadPoolItem_Ret.hpp" namespace nThread { //1. a fixed-sized th...
remove comment
remove comment
C++
mit
Fdhvdu/ThreadPool
3c54c721f6519dcb3c0d6b1f177a03bcb2d5dc26
prototype2/tools/ReaderPcap.cpp
prototype2/tools/ReaderPcap.cpp
/** Copyright (C) 2016, 2017 European Spallation Source ERIC */ #include <algorithm> #include <arpa/inet.h> #include <cassert> #include <cinttypes> #include <cstring> #include <tools/ReaderPcap.h> #include <netinet/ip.h> #include <netinet/udp.h> #include <fmt/format.h> // GCOVR_EXCL_START // Protocol identifiers con...
/** Copyright (C) 2016, 2017 European Spallation Source ERIC */ #include <algorithm> #include <arpa/inet.h> #include <cassert> #include <cinttypes> #include <cstring> #include <tools/ReaderPcap.h> #include <netinet/ip.h> #include <netinet/udp.h> #include <fmt/format.h> // GCOVR_EXCL_START // Protocol identifiers con...
Update prototype2/tools/ReaderPcap.cpp
Update prototype2/tools/ReaderPcap.cpp Co-Authored-By: Jonas Nilsson <3cdaf6a46728d020876bf8d8f5aed6a1603ea40a@gmail.com>
C++
bsd-2-clause
ess-dmsc/event-formation-unit,ess-dmsc/event-formation-unit,ess-dmsc/event-formation-unit,ess-dmsc/event-formation-unit
08c1897fb747639e353cc56f39ae3c8c516543e9
src/commands/base/sign.cxx
src/commands/base/sign.cxx
/** * Copyright (C) 2015 Virgil Security Inc. * * Lead Maintainer: Virgil Security Inc. <support@virgilsecurity.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) Redi...
/** * Copyright (C) 2015 Virgil Security Inc. * * Lead Maintainer: Virgil Security Inc. <support@virgilsecurity.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) Redi...
Change message for 'verbose' info in sign.cxx
Change message for 'verbose' info in sign.cxx
C++
bsd-3-clause
VirgilSecurity/virgil-cli
ad230110f2fdb4cf977b97afc35a4f2eebaf0f0b
content/browser/renderer_host/resource_dispatcher_host_uitest.cc
content/browser/renderer_host/resource_dispatcher_host_uitest.cc
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <sstream> #include <string> #include "base/command_line.h" #include "base/file_path.h" #include "base/path_service.h" #include "base/string_...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <sstream> #include <string> #include "base/command_line.h" #include "base/file_path.h" #include "base/path_service.h" #include "base/string_...
Disable ResourceDispatcherTest.CrossSiteAfterCrash test
Disable ResourceDispatcherTest.CrossSiteAfterCrash test BUG=76399 TEST=none TBR=ericu Review URL: http://codereview.chromium.org/6665037 git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@78388 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
C++
bsd-3-clause
wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser
e56d4b92cd1a701bbff74b7241eb0e838bbddbb9
src/compiler/change-lowering.cc
src/compiler/change-lowering.cc
// Copyright 2014 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/compiler/change-lowering.h" #include "src/compiler/js-graph.h" #include "src/compiler/linkage.h" #include "src/compiler/machine-operator....
// Copyright 2014 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/compiler/change-lowering.h" #include "src/compiler/js-graph.h" #include "src/compiler/linkage.h" #include "src/compiler/machine-operator....
Fix branch hints for ChangeInt32ToTagged and ChangeTaggedToUI32.
[turbofan] Fix branch hints for ChangeInt32ToTagged and ChangeTaggedToUI32. R=titzer@chromium.org Review URL: https://codereview.chromium.org/694353006 Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#25106} git-svn-id: f98b9d40cb02301bc76fa9e1b46ee668158567fd@25106 ce2b1a6d-e550-0410-aec6-3dcde31c8c00...
C++
mit
UniversalFuture/moosh,UniversalFuture/moosh,UniversalFuture/moosh,UniversalFuture/moosh
3e630ff673034c30a0cdd63b690dcc601fdcd7c7
src/core/seqcombinator.hpp
src/core/seqcombinator.hpp
#ifndef SEQCOMBINATOR_HPP_ #define SEQCOMBINATOR_HPP_ #include <vector> #include <initializer_list> #include <core/animation.hpp> template <typename State> class SeqCombinator: public Animation<State> { public: // TODO(#86): check if there are no animations SeqCombinator(std::vector<AnimationPtr<State>> &&an...
#ifndef SEQCOMBINATOR_HPP_ #define SEQCOMBINATOR_HPP_ #include <vector> #include <initializer_list> #include <core/animation.hpp> template <typename State> class SeqCombinator: public Animation<State> { public: // TODO: check for nullptr animations in the sequence SeqCombinator(std::vector<AnimationPtr<State...
Introduce empty placeholder for SeqCombinator
Introduce empty placeholder for SeqCombinator (#86)
C++
mit
rexim/beatwave
67b40e3b92a8475c6e73f58aa980ba1ad05626b6
server/ServerMethods.cpp
server/ServerMethods.cpp
/* * (C) Copyright 2014 Kurento (http://kurento.org/) * * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser General Public License * (LGPL) version 2.1 which accompanies this distribution, and is available at * http://www.gnu.org/licenses/lgpl-...
/* * (C) Copyright 2014 Kurento (http://kurento.org/) * * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser General Public License * (LGPL) version 2.1 which accompanies this distribution, and is available at * http://www.gnu.org/licenses/lgpl-...
Fix sessionId parameter name
ServerMethods: Fix sessionId parameter name Change-Id: I1434a4f27c768b9e24642d8d35e5d41560ba8861
C++
lgpl-2.1
lulufei/kurento-media-server,mparis/kurento-media-server,Kurento/kurento-media-server,TribeMedia/kurento-media-server,TribeMedia/kurento-media-server,todotobe1/kurento-media-server,mparis/kurento-media-server,shelsonjava/kurento-media-server,todotobe1/kurento-media-server,lulufei/kurento-media-server,shelsonjava/kurent...
2bbb7699376d60432be6253f291f11628adf43bc
libproxy/modules/config_gnome.cpp
libproxy/modules/config_gnome.cpp
/******************************************************************************* * libproxy - A library for proxy configuration * Copyright (C) 2006 Nathaniel McCallum <nathaniel@natemccallum.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser Genera...
/******************************************************************************* * libproxy - A library for proxy configuration * Copyright (C) 2006 Nathaniel McCallum <nathaniel@natemccallum.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser Genera...
Make config_gnome use O_NONBLOCK instead of FNONBLOCK; patch by raimue
Make config_gnome use O_NONBLOCK instead of FNONBLOCK; patch by raimue
C++
lgpl-2.1
binarycrusader/libproxy,cicku/libproxy,binarycrusader/libproxy,horar/libproxy,markcox/libproxy,cicku/libproxy,codegooglecom/libproxy,maxinbjohn/libproxy,horar/libproxy,anonymous2ch/libproxy,maxinbjohn/libproxy,markcox/libproxy,maxinbjohn/libproxy,horar/libproxy,codegooglecom/libproxy,libproxy/libproxy,libproxy/libproxy...
4375e1acbb4462618e2a17c8377647b7feeac390
webrtc/tools/frame_analyzer/video_quality_analysis.cc
webrtc/tools/frame_analyzer/video_quality_analysis.cc
/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
Add support for YUV4MPEG file reading to tools files. (Minor fix).
Add support for YUV4MPEG file reading to tools files. (Minor fix). git-svn-id: 917f5d3ca488f358c4d40eaec14422cf392ccec9@5703 4adac7df-926f-26a2-2b94-8c16560cd09d
C++
bsd-3-clause
TimothyGu/libilbc,ShiftMediaProject/libilbc,TimothyGu/libilbc,mwgoldsmith/ilbc,mwgoldsmith/libilbc,ShiftMediaProject/libilbc,TimothyGu/libilbc,mwgoldsmith/ilbc,TimothyGu/libilbc,mwgoldsmith/libilbc,ShiftMediaProject/libilbc,mwgoldsmith/libilbc,mwgoldsmith/libilbc,ShiftMediaProject/libilbc,mwgoldsmith/ilbc,ShiftMediaPro...
4c0d07ddb9857bf36d26bdda5c112be0f896484a
llbc/src/core/utils/Util_Text.cpp
llbc/src/core/utils/Util_Text.cpp
/** * @file Util_Text.cpp * @author Longwei Lai<lailongwei@126.com> * @date 2013/02/09 * @version 1.0 * * @brief LLBC library text processing APIs encapsulation. */ //! First, include export header file. #include "llbc/common/Export.h" #include "llbc/common/BeforeIncl.h" #include "llbc/common/Common.h...
/** * @file Util_Text.cpp * @author Longwei Lai<lailongwei@126.com> * @date 2013/02/09 * @version 1.0 * * @brief LLBC library text processing APIs encapsulation. */ //! First, include export header file. #include "llbc/common/Export.h" #include "llbc/common/BeforeIncl.h" #include "llbc/common/Common.h...
Delete don't need include header file:Util_Algorithm.h
Delete don't need include header file:Util_Algorithm.h
C++
mit
lailongwei/llbc,lailongwei/llbc,lailongwei/llbc,lailongwei/llbc,lailongwei/llbc
1c7c5f7648d99878ed9eb7166fd5757f24ba5732
src/examples/HelloSPTP.cpp
src/examples/HelloSPTP.cpp
/* --------------------------------------------------------------------- * Numenta Platform for Intelligent Computing (NuPIC) * Copyright (C) 2013-2015, Numenta, Inc. Unless you have an agreement * with Numenta, Inc., for a separate license for this software code, the * following terms and conditions apply: * * ...
/* --------------------------------------------------------------------- * Numenta Platform for Intelligent Computing (NuPIC) * Copyright (C) 2013-2015, Numenta, Inc. Unless you have an agreement * with Numenta, Inc., for a separate license for this software code, the * following terms and conditions apply: * * ...
add Anomaly (w likelihood) to pipeline
Hotgym: add Anomaly (w likelihood) to pipeline
C++
agpl-3.0
breznak/nupic.core,breznak/nupic.core,breznak/nupic.core,breznak/nupic.core
2d59d2f9c5ad642f1b81dc53fa2077c70f341c4d
src/gpu/GrTextureMaker.cpp
src/gpu/GrTextureMaker.cpp
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrTextureMaker.h" #include "GrColorSpaceXform.h" #include "GrContext.h" #include "GrGpu.h" #include "GrResourceProvider.h" sk_sp<GrTextureProxy> GrTextureMaker::re...
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrTextureMaker.h" #include "GrColorSpaceXform.h" #include "GrContext.h" #include "GrGpu.h" #include "GrResourceProvider.h" sk_sp<GrTextureProxy> GrTextureMaker::re...
Update GrTextureMaker to handle mips when copying for npot
Update GrTextureMaker to handle mips when copying for npot Bug: skia: Change-Id: I4b5ea3b8fadf207aef521404c4e9205df23ef3c8 Reviewed-on: https://skia-review.googlesource.com/65900 Reviewed-by: Brian Salomon <61fabaaf0876044aeedfd8e351e485c028d69e7b@google.com> Commit-Queue: Greg Daniel <39df0a804564ccb6cf75f18db7965382...
C++
bsd-3-clause
HalCanary/skia-hc,HalCanary/skia-hc,google/skia,google/skia,google/skia,aosp-mirror/platform_external_skia,rubenvb/skia,google/skia,aosp-mirror/platform_external_skia,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,rubenvb/skia,Hikari-no-Tenshi/android_external_skia,google/skia,rubenvb/skia,Hi...
06158a6556bcfbb4cb45dfdf7349cadedbe6b897
src/graphics/ha_buffer.cpp
src/graphics/ha_buffer.cpp
#include "./ha_buffer.h" #include <iostream> #include <algorithm> #include "./shader_program.h" #include "./quad.h" namespace Graphics { HABuffer::HABuffer(Eigen::Vector2i size) : size(size) { } void HABuffer::initialize(Gl *gl) { this->gl = gl; quad = std::make_shared<Quad>(); quad->skipSettingUniforms = tru...
#include "./ha_buffer.h" #include <iostream> #include <algorithm> #include "./shader_program.h" #include "./quad.h" namespace Graphics { HABuffer::HABuffer(Eigen::Vector2i size) : size(size) { } void HABuffer::initialize(Gl *gl) { this->gl = gl; quad = std::make_shared<Quad>(); quad->skipSettingUniforms = tru...
Remove unused code.
Remove unused code.
C++
mit
Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller
48226b4b6c3629d4ff8d4a67ff926076942b5c80
src/hdf5/DimensionHDF5.cpp
src/hdf5/DimensionHDF5.cpp
// Copyright (c) 2013, German Neuroinformatics Node (G-Node) // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted under the terms of the BSD License. See // LICENSE file in the root of the Project. #include <nix/util/util.hpp> #include <nix...
// Copyright (c) 2013, German Neuroinformatics Node (G-Node) // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted under the terms of the BSD License. See // LICENSE file in the root of the Project. #include <nix/util/util.hpp> #include <nix...
fix returning none if it is not there
[h5] RangeDimension::label: fix returning none if it is not there
C++
bsd-3-clause
stoewer/nix
733fb02e602b0a6cf2b94caf225ab7cf5e46babe
src/http/messageheader.cpp
src/http/messageheader.cpp
/* * Copyright (C) 2009 by Marc Boris Duerner, Tommi Maekitalo * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later ...
/* * Copyright (C) 2009 by Marc Boris Duerner, Tommi Maekitalo * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later ...
use memmove instead of memcpy when removing message header since the areas may overlap
use memmove instead of memcpy when removing message header since the areas may overlap
C++
lgpl-2.1
maekitalo/cxxtools,maekitalo/cxxtools,maekitalo/cxxtools,OlafRadicke/cxxtools,maekitalo/cxxtools,OlafRadicke/cxxtools,OlafRadicke/cxxtools,OlafRadicke/cxxtools
005c6fa43fdc1b27fb72ba6c2a58465af300d98d
src/input/psp/joystick.cpp
src/input/psp/joystick.cpp
#ifdef MINPSPW #include "joystick.h" void PSPJoystick::poll(){ sceCtrlPeekBufferPositive(&joystick, 1); } JoystickInput PSPJoystick::readAll(){ JoystickInput input; if(joystick.Buttons != 0){ // WIIMOTE for now, we can add in nunchuck and classic later if(joystick.Buttons & PSP_CTRL_ST...
#ifdef MINPSPW #include "joystick.h" void PSPJoystick::poll(){ sceCtrlPeekBufferPositive(&joystick, 1); } JoystickInput PSPJoystick::readAll(){ JoystickInput input; if(joystick.Buttons != 0){ if(joystick.Buttons & PSP_CTRL_START){ //input.button7 = true; } else if(joystick.B...
Remove comment.
Remove comment.
C++
bsd-3-clause
scristopher/paintown,scristopher/paintown,scristopher/paintown,scristopher/paintown,scristopher/paintown,scristopher/paintown,scristopher/paintown,scristopher/paintown
8f4476b893b498684fa236ce2727f56319dc8ae9
paddle/operators/fetch_op.cc
paddle/operators/fetch_op.cc
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applica...
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applica...
Add device.Wait() in fetch_op (#5141)
Add device.Wait() in fetch_op (#5141)
C++
apache-2.0
QiJune/Paddle,jacquesqiao/Paddle,pengli09/Paddle,tensor-tang/Paddle,putcn/Paddle,pkuyym/Paddle,lcy-seso/Paddle,pkuyym/Paddle,PaddlePaddle/Paddle,Canpio/Paddle,jacquesqiao/Paddle,lcy-seso/Paddle,reyoung/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,PaddlePaddle/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,chengduoZH/Paddle,pen...
720f5bc85339a3e920d4232151409d2cb778e4fb
examples/fit-model.cpp
examples/fit-model.cpp
/* * eos - A 3D Morphable Model fitting library written in modern C++11/14. * * File: examples/fit-model.cpp * * Copyright 2016 Patrik Huber * * 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 Lice...
/* * eos - A 3D Morphable Model fitting library written in modern C++11/14. * * File: examples/fit-model.cpp * * Copyright 2016 Patrik Huber * * 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 Lice...
Add nullopt for landmark_definitions to fix compile error in fit-model
Add nullopt for landmark_definitions to fix compile error in fit-model
C++
apache-2.0
patrikhuber/eos,patrikhuber/eos,patrikhuber/eos
524cc8efc4083151682bcd219537473cc330f067
devel/filestore.C
devel/filestore.C
#define BLOCKSIZE 16384 // supports files up to (BLOCKSIZE-260)/20 * BLOCKSIZE/20 * BLOCKSIZE // currently: 10815307776 bytes #include <chord.h> #include <sys/types.h> #include <sys/stat.h> #include <string.h> #include <stdio.h> #include <dhash.h> #include <dhash_common.h> #include <dhashclient.h> dhashclient *dhash...
#define BLOCKSIZE 16384 // supports files up to (BLOCKSIZE-260)/20 * BLOCKSIZE/20 * BLOCKSIZE // currently: 10815307776 bytes #include <chord.h> #include <sys/types.h> #include <sys/stat.h> #include <string.h> #include <stdio.h> #include <dhash.h> #include <dhash_common.h> #include <dhashclient.h> dhashclient *dhash...
fix to build with newer gcc
fix to build with newer gcc
C++
mit
sit/dht,weidezhang/dht,weidezhang/dht,sit/dht,weidezhang/dht,sit/dht,sit/dht,weidezhang/dht,weidezhang/dht,sit/dht
0b22203c77c4d9d4482a858367b35129b7455674
src/backend/catalog/manager.cpp
src/backend/catalog/manager.cpp
//===----------------------------------------------------------------------===// // // PelotonDB // // manager.cpp // // Identification: src/backend/catalog/manager.cpp // // Copyright (c) 2015, Carnegie Mellon University Database Group // //===---------------------------------------------------...
//===----------------------------------------------------------------------===// // // PelotonDB // // manager.cpp // // Identification: src/backend/catalog/manager.cpp // // Copyright (c) 2015, Carnegie Mellon University Database Group // //===---------------------------------------------------...
Fix GetTileGroup bug. Should return nullptr when group not exist.
Fix GetTileGroup bug. Should return nullptr when group not exist.
C++
apache-2.0
Ghatage/peloton,Ghatage/peloton,Ghatage/peloton,amaliujia/peloton,Ghatage/peloton,Ghatage/peloton,amaliujia/peloton,amaliujia/peloton,Ghatage/peloton,amaliujia/peloton,amaliujia/peloton,amaliujia/peloton,Ghatage/peloton,amaliujia/peloton
94bf686fb9bfceddd3936c3cb58647735102a06d
gui/events/xcb.c++
gui/events/xcb.c++
/** * The MIT License (MIT) * * Copyright © 2017-2018 Ruben Van Boxem * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * ...
/** * The MIT License (MIT) * * Copyright © 2017-2018 Ruben Van Boxem * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * ...
Use a vocabulary function to mask the send_event bit.
Use a vocabulary function to mask the send_event bit.
C++
mit
rubenvb/skui,skui-org/skui,rubenvb/skui,skui-org/skui
b1b8de0e3e80646c907fc6d5f8d0067ad76313ed
src/cbang/os/Win32Utilities.cpp
src/cbang/os/Win32Utilities.cpp
/******************************************************************************\ This file is part of the C! library. A.K.A the cbang library. Copyright (c) 2003-2015, Cauldron Development LLC Copyright (c) 2003-2015, Stanford University All right...
/******************************************************************************\ This file is part of the C! library. A.K.A the cbang library. Copyright (c) 2003-2015, Cauldron Development LLC Copyright (c) 2003-2015, Stanford University All right...
Fix clang infinite recursion compiler error
Fix clang infinite recursion compiler error
C++
lgpl-2.1
CauldronDevelopmentLLC/cbang,CauldronDevelopmentLLC/cbang,CauldronDevelopmentLLC/cbang,CauldronDevelopmentLLC/cbang
f6500312f954eff1cb42b93297a69ba9eddb85b5
WebCore/platform/graphics/cairo/ImageCairo.cpp
WebCore/platform/graphics/cairo/ImageCairo.cpp
/* * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. * Copyright (C) 2007 Alp Toker <alp@atoker.com> * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condit...
/* * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. * Copyright (C) 2007 Alp Toker <alp@atoker.com> * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condit...
Fix GTK build bustage.
Fix GTK build bustage. git-svn-id: bf5cd6ccde378db821296732a091cfbcf5285fbd@65454 bbb929c8-8fbe-4397-9dbb-9b2b20218538
C++
bsd-3-clause
primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs
8ec9c6b9a39d598f34e5274e5c00d63c58537ebb
httpserver/ConnHandler.cpp
httpserver/ConnHandler.cpp
/* * ConnHandler.cpp * * Created on: Sep 2, 2012 * Author: ondra */ #include "ConnHandler.h" #include "lightspeed/base/containers/autoArray.tcc" #include <string.h> #include "lightspeed/base/text/textParser.tcc" #include "lightspeed/base/text/textFormat.tcc" #include "HttpReqImpl.h" #include "lightspeed/bas...
/* * ConnHandler.cpp * * Created on: Sep 2, 2012 * Author: ondra */ #include "ConnHandler.h" #include "lightspeed/base/containers/autoArray.tcc" #include <string.h> #include "lightspeed/base/text/textParser.tcc" #include "lightspeed/base/text/textFormat.tcc" #include "HttpReqImpl.h" #include "lightspeed/bas...
discard content of buffer when closing connection due exception. This avoid to propagate exception to the higher levek
discard content of buffer when closing connection due exception. This avoid to propagate exception to the higher levek
C++
mit
ondra-novak/jsonrpcserver,ondra-novak/jsonrpcserver,ondra-novak/jsonrpcserver,ondra-novak/jsonrpcserver
2a5d4f646c2fb16dae52e725a8c871e31b3d120f
chrome/browser/download/download_uitest.cc
chrome/browser/download/download_uitest.cc
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <sstream> #include <string> #include "build/build_config.h" #if defined(OS_WIN) #include <shlwapi.h> #endif #include "base/command_lin...
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <sstream> #include <string> #include "build/build_config.h" #if defined(OS_WIN) #include <shlwapi.h> #endif #include "base/command_lin...
Add a UI test for downloading in incognito mode.
Add a UI test for downloading in incognito mode. This test opens an incognito window and verifies that downloads work and that closing the incognito window does not crash (see bug http://crbug.com/13983). TEST=Test should run and not crash. BUG=none Review URL: http://codereview.chromium.org/126181 git-svn-id: de01...
C++
bsd-3-clause
adobe/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,yitian134/chromium,gavinp/chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,adobe/chromium,adobe/chromium,ropik/chromium,yitian134/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,Crystalnix/house...
9e9548216cd9ec8e41a81fb5dc71a7ddd90ae280
include/dll/trainer/dbn_trainer.hpp
include/dll/trainer/dbn_trainer.hpp
//======================================================================= // Copyright (c) 2014-2017 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //==================================================================...
//======================================================================= // Copyright (c) 2014-2017 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //==================================================================...
Change note
Change note
C++
mit
wichtounet/dll,wichtounet/dll,wichtounet/dll
b64fbb6903714ee4ab48e253382e1496fc1aee3e
zmqml/zmqsocket.cpp
zmqml/zmqsocket.cpp
/* * ZmQML - QML binding for zeromq. * * Copyright (C) 2014 Riccardo Ferrazzo * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "zmqsocket.h" #inclu...
/* * ZmQML - QML binding for zeromq. * * Copyright (C) 2014 Riccardo Ferrazzo * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "zmqsocket.h" #inclu...
Use value instead of [] to get option
Use value instead of [] to get option
C++
mpl-2.0
rferrazz/zmqml
fb3af873b3059e4eca78c33e929ab78b2364d05e
src/libzlog/view_reader.cc
src/libzlog/view_reader.cc
#include "libzlog/view_reader.h" #include "include/zlog/backend.h" #include "log_backend.h" #include <iostream> // TODO: client requests that see a nullptr sequencer shoudl block and wait for // updates // TODO: use a smarter index for epoch waiters // TODO build a log's initial view for exclusive sequencers namespac...
#include "libzlog/view_reader.h" #include "include/zlog/backend.h" #include "log_backend.h" #include <iostream> // TODO: client requests that see a nullptr sequencer shoudl block and wait for // updates // TODO: use a smarter index for epoch waiters // TODO build a log's initial view for exclusive sequencers namespac...
simplify waiter mgmt locking
view_reader: simplify waiter mgmt locking Signed-off-by: Noah Watkins <86ecd7d1c53cf33a85014f7cab78876cb4491020@gmail.com>
C++
lgpl-2.1
noahdesu/zlog,noahdesu/zlog,noahdesu/zlog,noahdesu/zlog,noahdesu/zlog
ca7b579b8430a512826dc0da7c4d8f24ea515caa
rsocket/examples/resumption/WarmResumption_Client.cpp
rsocket/examples/resumption/WarmResumption_Client.cpp
// Copyright (c) Facebook, Inc. and its affiliates. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicabl...
// Copyright (c) Facebook, Inc. and its affiliates. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicabl...
fix a compile error in the examples
fix a compile error in the examples Summary: Fix the resumption example so it builds again. Reviewed By: yfeldblum Differential Revision: D12813736 fbshipit-source-id: db2c877c70a0f90579cd6bb38f7dc567988ea1d1
C++
unknown
ReactiveSocket/reactivesocket-cpp,ReactiveSocket/reactivesocket-cpp,rsocket/rsocket-cpp,phoad/rsocket-cpp,phoad/rsocket-cpp,phoad/rsocket-cpp,rsocket/rsocket-cpp,rsocket/rsocket-cpp,rsocket/rsocket-cpp,phoad/rsocket-cpp,ReactiveSocket/reactivesocket-cpp,phoad/rsocket-cpp
76502ae91923b36b479c7116b1c6348cd0164230
main.cc
main.cc
#include <GL/glew.h> #define GLM_SWIZZLE #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtx/transform.hpp> #include <SDL/SDL.h> #include <list> #include <algorithm> #include <functional> #include "RenderingContext.h" #include "scene/GraphNode.h" #include "scene/Skybox.h" #include "scene/T...
#include <GL/glew.h> #define GLM_SWIZZLE #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtx/transform.hpp> #include <SDL/SDL.h> #include <list> #include <algorithm> #include <functional> #include "RenderingContext.h" #include "scene/GraphNode.h" #include "scene/Skybox.h" #include "scene/T...
Test joystick enumaration.
Test joystick enumaration.
C++
mit
pstiasny/derpengine,pstiasny/derpengine
e1ba56ad0f556f5b7b266a326ffe6ecf85f12f42
pns.cpp
pns.cpp
#include <assert.h> #include <stdio.h> #include <string.h> #include <sstream> #include "board.h" #include "egtb.h" #include "logging.h" #include "movegen.h" #include "pns.h" #include "stringutil.h" #include "zobrist.h" Pns::Pns(int nodeMax, int moveMax, int childMax, int parentMax, Pns* pn1) { this->nodeMax = nodeMa...
#include <assert.h> #include <stdio.h> #include <string.h> #include <sstream> #include "board.h" #include "egtb.h" #include "logging.h" #include "movegen.h" #include "pns.h" #include "stringutil.h" #include "zobrist.h" Pns::Pns(int nodeMax, int moveMax, int childMax, int parentMax, Pns* pn1) { this->nodeMax = nodeMa...
Stop P/D number updates when nothing changes. 50% speed increase...
Stop P/D number updates when nothing changes. 50% speed increase...
C++
agpl-3.0
CatalinFrancu/colibri,CatalinFrancu/colibri,CatalinFrancu/colibri,CatalinFrancu/colibri
a8b601208da20c674f6eff182a2e28f4a356664c
python/py-initialize-ifaint.cpp
python/py-initialize-ifaint.cpp
// -*- coding: us-ascii-unix -*- // Copyright 2014 Lukas Kemmer // // Licensed under the Apache License, Version 2.0 (the "License"); you // may not use this file except in compliance with the License. You // may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by a...
// -*- coding: us-ascii-unix -*- // Copyright 2014 Lukas Kemmer // // Licensed under the Apache License, Version 2.0 (the "License"); you // may not use this file except in compliance with the License. You // may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by a...
Prepend py to sys.path instead of append.
Prepend py to sys.path instead of append. So that a module named faint.pyd does not take precedence over the faint-graphics-editor/py/faint module.
C++
apache-2.0
lukas-ke/faint-graphics-editor,lukas-ke/faint-graphics-editor,lukas-ke/faint-graphics-editor,lukas-ke/faint-graphics-editor
f4bb236c0463a393c1a2d70ceb50c506514a23fa
simgear/environment/test_metar.cxx
simgear/environment/test_metar.cxx
#ifdef HAVE_CONFIG_H # include <simgear_config.h> #endif #include <simgear/compiler.h> #include <iostream> #include <cstdlib> #include <cstdio> #ifdef _MSC_VER # define random rand #endif #include <simgear/misc/sg_dir.hxx> #include <simgear/structure/exception.hxx> #include "metar.hxx" using std::cout; usin...
#ifdef HAVE_CONFIG_H # include <simgear_config.h> #endif #include <simgear/compiler.h> #include <iostream> #include <cstdlib> #include <cstdio> #ifdef _MSC_VER # define random rand #endif #include <simgear/misc/sg_dir.hxx> #include <simgear/structure/exception.hxx> #include "metar.hxx" using std::cout; usin...
Add FUZZY_COMPARE to me tar unit-test, tolerate lower-order imprecision in FPUs
Add FUZZY_COMPARE to me tar unit-test, tolerate lower-order imprecision in FPUs
C++
lgpl-2.1
slowriot/simgear,slowriot/simgear
b9f39a2dbd692cbcdc68f8e02f3e77d0b9243e15
modules/vapor/vpr/md/BOOST/IO/Socket/SocketDatagramImplBOOST.cpp
modules/vapor/vpr/md/BOOST/IO/Socket/SocketDatagramImplBOOST.cpp
/****************** <VPR heading BEGIN do not edit this line> ***************** * * VR Juggler Portable Runtime * * Original Authors: * Allen Bierbaum, Patrick Hartling, Kevin Meinert, Carolina Cruz-Neira * ****************** <VPR heading END do not edit this line> ******************/ /*************** <auto-c...
/****************** <VPR heading BEGIN do not edit this line> ***************** * * VR Juggler Portable Runtime * * Original Authors: * Allen Bierbaum, Patrick Hartling, Kevin Meinert, Carolina Cruz-Neira * ****************** <VPR heading END do not edit this line> ******************/ /*************** <auto-c...
Fix from 3.0 branch: Patch from Doug McCorkle to fix compile error with boost sockets.
Fix from 3.0 branch: Patch from Doug McCorkle to fix compile error with boost sockets. git-svn-id: a341ccba1312b2efdbe34f40faf90581f48aa49f@21659 08b38cba-cd3b-11de-854e-f91c5b6e4272
C++
lgpl-2.1
godbyk/vrjuggler-upstream-old,LiuKeHua/vrjuggler,vancegroup-mirrors/vrjuggler,MichaelMcDonnell/vrjuggler,godbyk/vrjuggler-upstream-old,MichaelMcDonnell/vrjuggler,MichaelMcDonnell/vrjuggler,vancegroup-mirrors/vrjuggler,MichaelMcDonnell/vrjuggler,vrjuggler/vrjuggler,MichaelMcDonnell/vrjuggler,LiuKeHua/vrjuggler,MichaelMc...
ce68a403f276c5337a4f72603952e8f091ac6c4a
lib/Fuzzer/test/TableLookupTest.cpp
lib/Fuzzer/test/TableLookupTest.cpp
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Make sure the fuzzer eventually finds all possible values of a variable // within a range. #include <cstring> #include <cstdint> #include <cstdio> #include <cstdlib> #include <cassert> #include <set> c...
// This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // Make sure the fuzzer eventually finds all possible values of a variable // within a range. #include <cstring> #include <cstdint> #include <cstdio> #include <cstdlib> #include <cassert> #include <set> c...
fix non-linux build
[libFuzzer] fix non-linux build git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@298666 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mi...
b7bdd91739d6d977839df8f3dc0b1004ff1fc03c
lib/MetaProcessor/MetaProcessor.cpp
lib/MetaProcessor/MetaProcessor.cpp
//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // author: Axel Naumann <axel@cern.ch> // // This file is dual-licensed: you can choose to license it under the University // of Illinois Open Source License or the GNU Lesser General Public L...
//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // author: Axel Naumann <axel@cern.ch> // // This file is dual-licensed: you can choose to license it under the University // of Illinois Open Source License or the GNU Lesser General Public L...
Add error handling to MetaProcessor::readInputFromFile.
Add error handling to MetaProcessor::readInputFromFile.
C++
lgpl-2.1
marsupial/cling,marsupial/cling,karies/cling,marsupial/cling,marsupial/cling,root-mirror/cling,karies/cling,karies/cling,karies/cling,marsupial/cling,karies/cling,root-mirror/cling,karies/cling,root-mirror/cling,root-mirror/cling,root-mirror/cling,marsupial/cling,root-mirror/cling
f914cb52bca24d35c3bebe651a119bf4856ac328
lib/Transforms/LowerUnsignedICmp.cc
lib/Transforms/LowerUnsignedICmp.cc
/** * Replace ULT and ULE comparison instructions with SLT and SLE. **/ #include "llvm/Pass.h" #include "llvm/IR/Module.h" #include "llvm/IR/Function.h" #include "llvm/IR/Constants.h" #include "llvm/IR/Instructions.h" #include "llvm/ADT/Statistic.h" #include "llvm/IR/InstIterator.h" #include "llvm/Support/Debug.h" ...
/** * Replace ULT and ULE comparison instructions with SLT and SLE. **/ #include "llvm/Pass.h" #include "llvm/IR/Module.h" #include "llvm/IR/Function.h" #include "llvm/IR/Constants.h" #include "llvm/IR/Instructions.h" #include "llvm/ADT/Statistic.h" #include "llvm/IR/InstIterator.h" #include "llvm/Support/Debug.h" ...
Use APInt instead of converting to 64 bit integers
Use APInt instead of converting to 64 bit integers
C++
apache-2.0
seahorn/crab-llvm,seahorn/crab-llvm,seahorn/crab-llvm
5e441ede904a8040fa7d6e9f7c7feb90e368280e
libvast/src/system/sink_command.cpp
libvast/src/system/sink_command.cpp
/****************************************************************************** * _ _____ __________ * * | | / / _ | / __/_ __/ Visibility * * | |/ / __ |_\ \ / / Across * ...
/****************************************************************************** * _ _____ __________ * * | | / / _ | / __/_ __/ Visibility * * | |/ / __ |_\ \ / / Across * ...
fix return value from sink_command
fix return value from sink_command
C++
bsd-3-clause
vast-io/vast,mavam/vast,vast-io/vast,mavam/vast,vast-io/vast,mavam/vast,vast-io/vast,mavam/vast,vast-io/vast
12a501cddc3f4c4c93190cb2e64bb2b9c1f558c0
Modules/Registration/Common/test/itkImageToSpatialObjectRegistrationTest.cxx
Modules/Registration/Common/test/itkImageToSpatialObjectRegistrationTest.cxx
/*========================================================================= * * Copyright NumFOCUS * * 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.or...
/*========================================================================= * * Copyright NumFOCUS * * 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.or...
Fix `SetCenterInObjectSpace` calls in Registration test
BUG: Fix `SetCenterInObjectSpace` calls in Registration test Calls to `EllipseSpatialObject::SetCenterInObjectSpace` should have a point as argument, not an offset. Bug found by locally (temporarily) declaring converting constructors of `itk::Point` "explicit".
C++
apache-2.0
hjmjohnson/ITK,thewtex/ITK,thewtex/ITK,thewtex/ITK,BRAINSia/ITK,richardbeare/ITK,Kitware/ITK,hjmjohnson/ITK,richardbeare/ITK,richardbeare/ITK,thewtex/ITK,BRAINSia/ITK,thewtex/ITK,InsightSoftwareConsortium/ITK,BRAINSia/ITK,richardbeare/ITK,hjmjohnson/ITK,hjmjohnson/ITK,richardbeare/ITK,Kitware/ITK,Kitware/ITK,richardbea...
f5f3f4d68cfba7131f1a76329e5836f1eeecebf5
include/CompositeAction.hh
include/CompositeAction.hh
#ifndef COMPOSITEACTION_HH #define COMPOSITEACTION_HH #include <iostream> #include <list> #include <algorithm> namespace g4 { /** * Composite action. * * In Geant4, you can typically add only one user action of each type. * If you combine multiple libraries together, each of which wants to...
#ifndef COMPOSITEACTION_HH #define COMPOSITEACTION_HH #include <iostream> #include <list> #include <algorithm> namespace g4 { /** * Composite action. * * In Geant4, you can typically add only one user action of each type. * If you combine multiple libraries together, each of which wants to...
Check for uniqueness when adding action to CompositeAction
Check for uniqueness when adding action to CompositeAction
C++
mit
janpipek/g4application
331596d1543eba7c62be405f32201ed121bed999
include/cybozu/nlp/svd.hpp
include/cybozu/nlp/svd.hpp
#pragma once /** @file @brief fast non-probabilistic SVD Copyright (C) 2012 Cybozu Labs, Inc., all rights reserved. @author MITSUNARI Shigeo */ #include <assert.h> #include <vector> #include <string> #include <fstream> #include <sstream> #include <iomanip> //#define CYBOZU_NLP_SVD_USE_RANDOM #ifdef CYBOZU_NLP_SVD_...
#pragma once /** @file @brief fast non-probabilistic SVD Copyright (C) 2012 Cybozu Labs, Inc., all rights reserved. @author MITSUNARI Shigeo */ #include <assert.h> #include <vector> #include <string> #include <fstream> #include <sstream> #include <iomanip> //#define CYBOZU_NLP_SVD_USE_RANDOM #ifdef CYBOZU_NLP_SVD_...
add LoadVector
add LoadVector
C++
bsd-3-clause
herumi/cybozulib,herumi/cybozulib
505bbd9f39ed9800d39322899b11e8bc591bce0d
include/dll/dbn_traits.hpp
include/dll/dbn_traits.hpp
//======================================================================= // Copyright (c) 2014 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //=======================================================================...
//======================================================================= // Copyright (c) 2014 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //=======================================================================...
Add is_dynamic traits
Add is_dynamic traits
C++
mit
wichtounet/dll,wichtounet/dll,wichtounet/dll
a4bf1c4372b060f7ae46f42c5e9828a624a71713
src/ngraph/op/constant.hpp
src/ngraph/op/constant.hpp
//***************************************************************************** // Copyright 2017-2019 Intel Corporation // // 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://w...
//***************************************************************************** // Copyright 2017-2019 Intel Corporation // // 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://w...
Make Constant an op (#3752)
Make Constant an op (#3752)
C++
apache-2.0
NervanaSystems/ngraph,NervanaSystems/ngraph,NervanaSystems/ngraph,NervanaSystems/ngraph
e54f7fc092b8c78c8e6720541df665ce2f3ef5b0
src/node/zp_ping_thread.cc
src/node/zp_ping_thread.cc
#include "zp_ping_thread.h" #include <glog/logging.h> #include "zp_data_server.h" #include "zp_meta.pb.h" #include "zp_const.h" extern ZPDataServer* zp_data_server; ZPPingThread::~ZPPingThread() { should_exit_ = true; pthread_join(thread_id(), NULL); delete cli_; LOG(INFO) << " Ping thread " << pthread_self()...
#include "zp_ping_thread.h" #include <glog/logging.h> #include "zp_data_server.h" #include "zp_meta.pb.h" #include "zp_const.h" extern ZPDataServer* zp_data_server; ZPPingThread::~ZPPingThread() { should_exit_ = true; pthread_join(thread_id(), NULL); delete cli_; LOG(INFO) << " Ping thread " << pthread_self()...
send offset in ping request
send offset in ping request
C++
apache-2.0
baotiao/zeppelin,baotiao/zeppelin,baotiao/zeppelin,baotiao/zeppelin,baotiao/zeppelin,baotiao/zeppelin
a90fd02edfb4c23f4d6b4aa5d4f634739d990935
plugins/multimedia/symbian/mediaplayer/s60mediaplayersession.cpp
plugins/multimedia/symbian/mediaplayer/s60mediaplayersession.cpp
/**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the Qt Mobility Components. ** ** $QT_BEGIN_LICENSE:LGPL$ ** No Comme...
/**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the Qt Mobility Components. ** ** $QT_BEGIN_LICENSE:LGPL$ ** No Comme...
Fix MediaSession error string Symbian error number is now correctly converted to QString.
Fix MediaSession error string Symbian error number is now correctly converted to QString.
C++
lgpl-2.1
tmcguire/qt-mobility,qtproject/qt-mobility,kaltsi/qt-mobility,enthought/qt-mobility,enthought/qt-mobility,tmcguire/qt-mobility,enthought/qt-mobility,qtproject/qt-mobility,KDE/android-qt-mobility,enthought/qt-mobility,kaltsi/qt-mobility,qtproject/qt-mobility,KDE/android-qt-mobility,enthought/qt-mobility,qtproject/qt-mob...
a85253ff2255e32621b6836b53690c7ad989062d
j1a/verilator/sim_main.cpp
j1a/verilator/sim_main.cpp
#include <stdio.h> #include "Vj1a.h" #include "verilated_vcd_c.h" int main(int argc, char **argv) { Verilated::commandArgs(argc, argv); Vj1a* top = new Vj1a; // Verilated::traceEverOn(true); // VerilatedVcdC* tfp = new VerilatedVcdC; // top->trace (tfp, 99); // tfp->open ("simx.vcd"); if ...
#include <stdio.h> #include "Vj1a.h" #include "verilated_vcd_c.h" int main(int argc, char **argv) { Verilated::commandArgs(argc, argv); Vj1a* top = new Vj1a; if (argc != 2) { fprintf(stderr, "usage: sim <hex-file>\n"); exit(1); } FILE *hex = fopen(argv[1], "r"); int i; for (i ...
Fix UART hang in toy Verilator simulator
Fix UART hang in toy Verilator simulator
C++
bsd-3-clause
GuzTech/swapforth,jamesbowman/swapforth,jamesbowman/swapforth,zuloloxi/swapforth,jamesbowman/swapforth,zuloloxi/swapforth,GuzTech/swapforth,GuzTech/swapforth,uho/swapforth,RGD2/swapforth,zuloloxi/swapforth,uho/swapforth,RGD2/swapforth,zuloloxi/swapforth,uho/swapforth,RGD2/swapforth,GuzTech/swapforth,jamesbowman/swapfor...
a1465162b8eefc94db9024fa5a9f643b0e96e868
bitops/include/bitops.hh
bitops/include/bitops.hh
#ifndef BITOPS_HH #define BITOPS_HH #include <limits> #include <type_traits> #include <cstdint> #include <climits> namespace std { /////////////////////////// //Basic bitwise operations /////////////////////////// //Returns the number of trailing 0-bits in x, starting at the least significant bit position. If x is ...
#ifndef BITOPS_HH #define BITOPS_HH #include <limits> #include <type_traits> #include <cstdint> #include <climits> namespace std { /////////////////////////// //Basic bitwise operations /////////////////////////// //Returns the number of trailing 0-bits in x, starting at the least significant bit position. If x is ...
remove second template arg from shifts and aligns
remove second template arg from shifts and aligns
C++
mit
fmatthew5876/stdcxx-bitops,fmatthew5876/stdcxx-bitops,fmatthew5876/stdcxx
faca9d8057ef064280711be5fe2c332f3b9b3599
mjolnir/io/toml/read_forcefield.hpp
mjolnir/io/toml/read_forcefield.hpp
#ifndef MJOLNIR_TOML_READ_FORCEFIELD #define MJOLNIR_TOML_READ_FORCEFIELD #include <mjolnir/io/toml/read_global_forcefield.hpp> #include <mjolnir/io/toml/read_local_forcefield.hpp> #include <mjolnir/core/ForceField.hpp> #include <toml/toml.hpp> namespace mjolnir { template<typename traitsT> ForceField<traitsT> read_f...
#ifndef MJOLNIR_TOML_READ_FORCEFIELD #define MJOLNIR_TOML_READ_FORCEFIELD #include <mjolnir/io/toml/read_global_forcefield.hpp> #include <mjolnir/io/toml/read_local_forcefield.hpp> #include <mjolnir/core/ForceField.hpp> #include <toml/toml.hpp> namespace mjolnir { template<typename traitsT> ForceField<traitsT> read_f...
add log of exception
add log of exception
C++
mit
ToruNiina/Mjolnir,ToruNiina/Mjolnir,ToruNiina/Mjolnir
4e30b2aca90dc910353963a60e284d5faeac4343
src/tokenizer.cc
src/tokenizer.cc
#include <vector> #include <utility> #include <algorithm> #include <functional> #include <unordered_set> #include <set> #include "tokenizer.h" #include "shl_exception.h" using std::stack; using std::function; using std::unordered_set; using std::set; namespace shl { vector<pair<Range, Scope> > Tokenizer::tokenize(co...
#include <vector> #include <utility> #include <algorithm> #include <functional> #include <unordered_set> #include <set> #include "tokenizer.h" #include "shl_exception.h" using std::stack; using std::function; using std::unordered_set; using std::set; namespace shl { vector<pair<Range, Scope> > Tokenizer::tokenize(co...
include rule name in the exception message
include rule name in the exception message
C++
mit
dahakawang/SharpHighlighter,dahakawang/SharpHighlighter
b86c7d160a05a30d9f61562f44af4a567ead9022
sandbox/src/crosscall_server.cc
sandbox/src/crosscall_server.cc
// Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <string> #include <vector> #include "sandbox/src/crosscall_server.h" #include "sandbox/src/crosscall_params.h" #include "sandbox/src/cr...
// Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <string> #include <vector> #include "sandbox/src/crosscall_server.h" #include "sandbox/src/crosscall_params.h" #include "sandbox/src/cr...
Fix race in CrossCallParamsEx::CreateFromBuffer
Fix race in CrossCallParamsEx::CreateFromBuffer Credit goes to Willem Pinckaers / Matasano No unittest because to trigger this codepath you need to win a very thight race. BUG=121726 TEST=none Review URL: https://chromiumcodereview.appspot.com/9965117 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@130505 0039...
C++
bsd-3-clause
adobe/chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,ropik/chromium,ropik/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,ropik/chromium,adobe/chromium,adobe/chromium,adobe/chromium,ropik/chromium,ropik/chromium,yitian134/chromium,yitian134/chrom...
26ebc8ba75a06ae2407faa255061b1b56175b4e2
kaddressbook/aboutdata.cpp
kaddressbook/aboutdata.cpp
/* This file is part of KAddressBook. Copyright (c) 2009 Laurent Montel <montel@kde.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (...
/* This file is part of KAddressBook. Copyright (c) 2009 Laurent Montel <montel@kde.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (...
Use KDEPIM_VERSION instead of hardcoded value
Use KDEPIM_VERSION instead of hardcoded value svn path=/trunk/KDE/kdepim/kaddressbook/; revision=1048705
C++
lgpl-2.1
lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi
34a4f6106e85d570e726bf734ebc29c9b4e29b3d
problems/twosum/solution.cpp
problems/twosum/solution.cpp
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; cout << (a+b) << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int a; cin >> a; int b; cin >> b; cout << a + b << endl; return 0; }
Update solutions for clarity
Update solutions for clarity
C++
mit
ArVID220u/judge,ArVID220u/judge,ArVID220u/judge
528f4dfbd20a51abe00344d7a86c30cd4fc240ef
programs/cli_wallet/main.cpp
programs/cli_wallet/main.cpp
#include <bts/app/api.hpp> #include <bts/chain/address.hpp> #include <bts/utilities/key_conversion.hpp> #include <fc/io/json.hpp> #include <fc/network/http/websocket.hpp> #include <fc/rpc/websocket_api.hpp> #include <fc/io/stdio.hpp> #include <iostream> #include <fc/rpc/cli.hpp> #include <iomanip> using namespace bts...
#include <algorithm> #include <iomanip> #include <iostream> #include <iterator> #include <fc/io/json.hpp> #include <fc/io/stdio.hpp> #include <fc/network/http/websocket.hpp> #include <fc/rpc/cli.hpp> #include <fc/rpc/websocket_api.hpp> #include <bts/app/api.hpp> #include <bts/chain/address.hpp> #include <bts/utiliti...
Implement create_account_with_brain_key
cli_wallet: Implement create_account_with_brain_key
C++
cc0-1.0
bitshares/bitshares-toolkit,bitshares/bitshares-toolkit
7ad0c00e7f9f4f26ae5ec0d852a70dd856e7bb4e
kpilot/kpilot/syncStack.cc
kpilot/kpilot/syncStack.cc
/* syncStack.cc KPilot ** ** Copyright (C) 1998-2001 by Dan Pilone ** ** This defines the "ActionQueue", which is the pile of actions ** that will occur during a HotSync. */ /* ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public ...
/* syncStack.cc KPilot ** ** Copyright (C) 1998-2001 by Dan Pilone ** ** This defines the "ActionQueue", which is the pile of actions ** that will occur during a HotSync. */ /* ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public ...
Make it compile
Make it compile svn path=/trunk/kdepim/; revision=258507
C++
lgpl-2.1
lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi
d5c2179307f61b94ce72a8132d9e1e5c09774cba
src/import/chips/p9/procedures/hwp/pm/p9_cpu_special_wakeup_ex.C
src/import/chips/p9/procedures/hwp/pm/p9_cpu_special_wakeup_ex.C
/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/pm/p9_cpu_special_wakeup_ex.C $ */ /* ...
/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/pm/p9_cpu_special_wakeup_ex.C $ */ /* ...
Fix check for EQ_CME_SCOM_LMCR_SCOM
Fix check for EQ_CME_SCOM_LMCR_SCOM Change-Id: I7d6eb2a98478cd350d95f4d72c55a1243beb6c88 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/57599 Reviewed-by: Prem Shanker Jha <3a412e33a2e075117b5262bcf2504c145441bf2a@in.ibm.com> Tested-by: FSP CI Jenkins <aa9e4d9ac7cd25905e9c0dd36d4150516e73dd86@us.ibm.com> Tested-...
C++
apache-2.0
open-power/hostboot,open-power/hostboot,open-power/hostboot,open-power/hostboot,open-power/hostboot
e2b8fd7b118a232d5ffa406041acb58cde1c2543
src/modules/commander/Arming/PreFlightCheck/checks/ekf2Check.cpp
src/modules/commander/Arming/PreFlightCheck/checks/ekf2Check.cpp
/**************************************************************************** * * Copyright (c) 2019 PX4 Development Team. 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. Redistri...
/**************************************************************************** * * Copyright (c) 2019 PX4 Development Team. 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. Redistri...
fix preflight check spam
commander: fix preflight check spam
C++
bsd-3-clause
krbeverx/Firmware,acfloria/Firmware,krbeverx/Firmware,PX4/Firmware,krbeverx/Firmware,krbeverx/Firmware,acfloria/Firmware,PX4/Firmware,PX4/Firmware,acfloria/Firmware,krbeverx/Firmware,krbeverx/Firmware,acfloria/Firmware,acfloria/Firmware,acfloria/Firmware,PX4/Firmware,krbeverx/Firmware,PX4/Firmware,acfloria/Firmware,PX4...
abd7d3f3004aa4194ec9ed7e4ff5b51b4af647b5
test/elgamal_test.cpp
test/elgamal_test.cpp
#include <cybozu/test.hpp> #include <cybozu/random_generator.hpp> #include <cybozu/crypto.hpp> #include <mcl/fp.hpp> #include <mcl/ecparam.hpp> #include <mcl/elgamal.hpp> struct TagZn; typedef mcl::FpT<> Fp; typedef mcl::FpT<TagZn> Zn; typedef mcl::EcT<Fp> Ec; typedef mcl::ElgamalT<Ec, Zn> ElgamalEc; const mcl::EcPar...
#include <cybozu/test.hpp> #include <cybozu/random_generator.hpp> #include <cybozu/crypto.hpp> #include <mcl/fp.hpp> #include <mcl/ecparam.hpp> #include <mcl/elgamal.hpp> struct TagZn; typedef mcl::FpT<> Fp; typedef mcl::FpT<TagZn> Zn; typedef mcl::EcT<Fp> Ec; typedef mcl::ElgamalT<Ec, Zn> ElgamalEc; const mcl::EcPar...
add test for setCache
add test for setCache
C++
bsd-3-clause
herumi/mcl,herumi/mcl,herumi/mcl,herumi/mcl,herumi/mcl,herumi/mcl,herumi/mcl,herumi/mcl
ced48beb6f554f8a8b9018ca1df1a4aa51940639
src/plugins/qt4projectmanager/qt-maemo/maemoconfigtestdialog.cpp
src/plugins/qt4projectmanager/qt-maemo/maemoconfigtestdialog.cpp
/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (info@qt.nokia.com) ** ** GNU Lesser General Public License Usage ** ** This file may be used under t...
/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (info@qt.nokia.com) ** ** GNU Lesser General Public License Usage ** ** This file may be used under t...
Fix device configuration dialog for all OS types.
Maemo: Fix device configuration dialog for all OS types. There could potentially be types other than GenericLinux that don't use dpkg or rpm. Change-Id: I62a03aa1f532a4f589be8e43e07410beb1370cb2 Reviewed-on: http://codereview.qt.nokia.com/26 Reviewed-by: Christian Kandeler <3aa99dcdd3f0cac61fb81c2a11771c0cc2497607@no...
C++
lgpl-2.1
danimo/qt-creator,jonnor/qt-creator,richardmg/qtcreator,renatofilho/QtCreator,AltarBeastiful/qt-creator,syntheticpp/qt-creator,colede/qtcreator,omniacreator/qtcreator,richardmg/qtcreator,martyone/sailfish-qtcreator,danimo/qt-creator,hdweiss/qt-creator-visualizer,dmik/qt-creator-os2,azat/qtcreator,omniacreator/qtcreator...
df57df94f83410d7a97b8eda508b4fa7aa5e5f0e
paddle/fluid/operators/grid_sampler_op.cc
paddle/fluid/operators/grid_sampler_op.cc
/* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
/* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
add AsExtra for grid_sampler_op (#35339)
add AsExtra for grid_sampler_op (#35339)
C++
apache-2.0
PaddlePaddle/Paddle,luotao1/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,luotao1/Paddle,luotao1/Paddle,PaddlePaddle/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,luotao1/Paddle,PaddlePaddle/Paddle,PaddlePaddle/Paddle
76586498f454c716c9d6fd38e1d7fea97e910ed9
test/include/test.hpp
test/include/test.hpp
#pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wshadow" #include <catch.hpp> #pragma GCC diagnostic pop #include <pbf.hpp> extern std::string get_file_data(const std::string& filename);
#include <catch.hpp> #include <pbf.hpp> extern std::string get_file_data(const std::string& filename);
Revert "Disable -Wshadow for catch.hpp for GCC."
Revert "Disable -Wshadow for catch.hpp for GCC." This reverts commit b396b71b0edfe6652d74b10cad785090b0de17c2. It leads to more warnings than before...
C++
bsd-2-clause
mapbox/pbf.hpp,mapbox/pbf.hpp,mapbox/pbf.hpp
3e7d01e92e578abd042f4603e7eef110bae92111
test/dma_tp/dma_tp.cc
test/dma_tp/dma_tp.cc
#include <cstdio> #include <cstdlib> #include <cassert> #include <cstring> #include <time.h> #include "lowlevel.h" #include "lowlevel_impl.h" #include "channel.h" #define DIM_X 128 #define DIM_Y 128 #define DIM_Z 64 #define NUM_TEST 1 #define PATH_LEN 2 #define NUM_FIELDS 8 #define NUM_REQUESTS 64 #define MEM_KIND_S...
#include <cstdio> #include <cstdlib> #include <cassert> #include <cstring> #include <time.h> #include "lowlevel.h" #include "lowlevel_impl.h" #include "channel.h" #define DIM_X 128 #define DIM_Y 128 #define DIM_Z 64 #define NUM_TEST 1 #define PATH_LEN 2 #define NUM_FIELDS 8 #define NUM_REQUESTS 64 #define MEM_KIND_S...
add layout transfer test
dma: add layout transfer test
C++
apache-2.0
StanfordLegion/legion,StanfordLegion/legion,StanfordLegion/legion,StanfordLegion/legion,StanfordLegion/legion,StanfordLegion/legion,StanfordLegion/legion,StanfordLegion/legion
02216b1fb6dd727fce2912efc9d4cc069ef8dacb
benchmarks/halide/blurxy_coli.cpp
benchmarks/halide/blurxy_coli.cpp
#include <isl/set.h> #include <isl/union_map.h> #include <isl/union_set.h> #include <isl/ast_build.h> #include <isl/schedule.h> #include <isl/schedule_node.h> #include <coli/debug.h> #include <coli/core.h> #include <string.h> #include <Halide.h> #include "halide_image_io.h" /* Halide code. Func blurxy(Func input, Fu...
#include <isl/set.h> #include <isl/union_map.h> #include <isl/union_set.h> #include <isl/ast_build.h> #include <isl/schedule.h> #include <isl/schedule_node.h> #include <coli/debug.h> #include <coli/core.h> #include <string.h> #include <Halide.h> #include "halide_image_io.h" /* Halide code. Func blurxy(Func input, Fu...
Fix blurxy benchmark
Fix blurxy benchmark
C++
mit
rbaghdadi/ISIR,rbaghdadi/tiramisu,rbaghdadi/COLi,rbaghdadi/tiramisu,rbaghdadi/ISIR,rbaghdadi/COLi,rbaghdadi/tiramisu,rbaghdadi/tiramisu
db91bedc9d80aa390904036abe981a3e53de9dd9
test/libpqxx/main.cpp
test/libpqxx/main.cpp
#include <iostream> #include <vector> #include <pqxx/connection> #include <pqxx/nontransaction> #include <pqxx/tablewriter> #include <pqxx/transaction> #include <string> #include <pqxx/notification> #include "jmsg/pqxxutils.hpp" #include "jmsg/jmsg_rcver.hpp" #include "jmsg/jmsg_sender.hpp" #include "exemodel/polle...
#include <iostream> #include <vector> #include <pqxx/connection> #include <pqxx/nontransaction> #include <pqxx/tablewriter> #include <pqxx/transaction> #include <string> #include <pqxx/notification> #include "jmsg/pqxxutils.hpp" #include "jmsg/jmsg_rcver.hpp" #include "jmsg/jmsg_sender.hpp" #include "exemodel/polle...
delete unrelated test codes.
delete unrelated test codes. Signed-off-by: yangbk <3f51be5efa666bc85b0cabcfbfdece98b443e754@189.cn>
C++
apache-2.0
walkthetalk/libem,walkthetalk/libem,walkthetalk/libem
ce33bd142d0c7c33a549747948e71ec70d72d491
Apoc/Math/Vector.cpp
Apoc/Math/Vector.cpp
/* Copyright (c) 2014, Madd Games. 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 foll...
/* Copyright (c) 2014, Madd Games. 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 foll...
Update Vector.cpp
Update Vector.cpp
C++
bsd-2-clause
madd-games/apocalypse,madd-games/apocalypse,madd-games/apocalypse,madd-games/apocalypse,madd-games/apocalypse
c1f29626e01e493e1b3146eb4f8f5dddfe0d6ba7
net/base/keygen_handler_unittest.cc
net/base/keygen_handler_unittest.cc
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "net/base/keygen_handler.h" #include <string> #include "base/base64.h" #include "base/logging.h" #include "testing/gtest/include/gtest/gtes...
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "net/base/keygen_handler.h" #include <string> #include "base/base64.h" #include "base/logging.h" #include "testing/gtest/include/gtest/gtes...
Fix build by marking new Keygen test as flaky.
TBR: Fix build by marking new Keygen test as flaky. git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@40389 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
C++
bsd-3-clause
wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser
da65fd4f8e581be5eab29a8d05cf44a19d8bc620
neurolabi/gui/swc/zswcresampler.cpp
neurolabi/gui/swc/zswcresampler.cpp
#include "swc/zswcresampler.h" #include "zswctree.h" #include "swctreenode.h" #include "tz_error.h" ZSwcResampler::ZSwcResampler() { } int ZSwcResampler::suboptimalDownsample(ZSwcTree *tree) { int count = 0; int treeCount = tree->updateIterator(); int checked = 0; Swc_Tree_Node *tn = tree->begin(); while (...
#include "swc/zswcresampler.h" #include "zswctree.h" #include "swctreenode.h" #include "tz_error.h" ZSwcResampler::ZSwcResampler() { } int ZSwcResampler::suboptimalDownsample(ZSwcTree *tree) { int count = 0; int treeCount = tree->updateIterator(); int checked = 0; Swc_Tree_Node *tn = tree->begin(); while (...
fix parent point merging
fix parent point merging
C++
bsd-3-clause
stephenplaza/NeuTu,stephenplaza/NeuTu,stephenplaza/NeuTu,stephenplaza/NeuTu,stephenplaza/NeuTu,stephenplaza/NeuTu,stephenplaza/NeuTu,stephenplaza/NeuTu
edc84ac163362edc1801e42df6fd56ca8eb18ea5
platform/android/Rhodes/jni/src/alert.cpp
platform/android/Rhodes/jni/src/alert.cpp
#include "rhodes/JNIRhodes.h" #include "rhodes/jni/com_rhomobile_rhodes_alert_Alert.h" #include <common/rhoparams.h> #include <common/RhodesApp.h> #undef DEFAULT_LOGCATEGORY #define DEFAULT_LOGCATEGORY "Alert" RHO_GLOBAL void JNICALL Java_com_rhomobile_rhodes_alert_Alert_doCallback (JNIEnv *env, jclass, jstring u...
#include "rhodes/JNIRhodes.h" #include "rhodes/jni/com_rhomobile_rhodes_alert_Alert.h" #include <common/rhoparams.h> #include <common/RhodesApp.h> #undef DEFAULT_LOGCATEGORY #define DEFAULT_LOGCATEGORY "Alert" RHO_GLOBAL void JNICALL Java_com_rhomobile_rhodes_alert_Alert_doCallback (JNIEnv *env, jclass, jstring u...
Fix JNI string leaks on Android
Fix JNI string leaks on Android This cause rhogallery crashes on ~20 minutes after start
C++
mit
pslgoh/rhodes,watusi/rhodes,tauplatform/tau,rhomobile/rhodes,watusi/rhodes,pslgoh/rhodes,rhomobile/rhodes,tauplatform/tau,tauplatform/tau,watusi/rhodes,rhomobile/rhodes,rhomobile/rhodes,watusi/rhodes,pslgoh/rhodes,watusi/rhodes,watusi/rhodes,tauplatform/tau,watusi/rhodes,watusi/rhodes,pslgoh/rhodes,pslgoh/rhodes,taupla...
5ed80c1763110b1bde83bc408b365b091729c5aa
test/modern/smoke.cxx
test/modern/smoke.cxx
/* * Fast Positive Tuples (libfptu), aka Позитивные Кортежи * Copyright 2016-2020 Leonid Yuriev <leo@yuriev.ru> * * 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://w...
/* * Fast Positive Tuples (libfptu), aka Позитивные Кортежи * Copyright 2016-2020 Leonid Yuriev <leo@yuriev.ru> * * 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://w...
add test for whole-tuple ro-iterators for fields.
fptu-test: add test for whole-tuple ro-iterators for fields.
C++
apache-2.0
leo-yuriev/libfptu,leo-yuriev/libfptu
f9a24f53eccdf2004a92cf2a88ebca9fedb15f4b
include/Matrix.hpp
include/Matrix.hpp
#ifndef Matrix_hpp #define Matrix_hpp #include <iostream> template <typename T> class Matrix; template <class T> std::ostream & operator<<(std::ostream & output, const T &); template <class T> std::istream & operator>>(std::istream & output, T &); template <typename T> class Matrix { public: Matrix(const Matri...
#ifndef Matrix_hpp #define Matrix_hpp #include <iostream> template <typename T> class Matrix; template <class T> std::ostream & operator<<(std::ostream & output, const Matrix<T> &); template <class T> std::istream & operator>>(std::istream & output, Matrix<T> &); template <typename T> class Matrix { public: Ma...
Update Matrix.hpp
Update Matrix.hpp
C++
mit
ArtemKokorinStudent/External-sort,ArtemKokorinStudent/StackW
fbaab01f8fcb929dee2ec83d7120b5562225a0df
include/matrix.hpp
include/matrix.hpp
#include <iostream> #include <fstream> #include <string> #include <stdlib.h> using namespace std; class Matrix { private: int columns; int strings; int **matrix; public: Matrix(); Matrix(int a, int b); void print(void) const; void input(char *path); void set(int x, int y, int z); i...
#include <iostream> #include <fstream> #include <string> #include <stdlib.h> using namespace std; class Matrix { private: int columns; int strings; int **matrix; public: Matrix(); Matrix(int a, int b); void print(void) const; void input(char *path); void set(int x, int y, int z); i...
Update matrix.hpp
Update matrix.hpp
C++
mit
elinagabitova/matrix
f488fc513b914ebc9950c55ebf6cfe2bd08a18a8
include/vertex.hpp
include/vertex.hpp
#ifndef VERTEX_H #define VERTEX_H #include <glm/glm.hpp> using namespace glm; class Vertex { public: Vertex(const vec3 &pos) { this->pos = pos; } protected: private: vec3 pos; }; #endif
#ifndef VERTEX_H #define VERTEX_H #include <glm/glm.hpp> using namespace glm; class Vertex { public: Vertex(const vec3 &pos) { this->pos = pos; } protected: private: vec3 pos; }; #endif
format vertex
format vertex
C++
mit
shakram02/opengl_shapes,shakram02/opengl_shapes,shakram02/opengl_shapes
8f6367198fe0417299109a77f92ba772c1e737e7
test/partitioning.cpp
test/partitioning.cpp
#include <cmath> #include "bulk_test_common.hpp" #include "set_backend.hpp" #include <bulk/bulk.hpp> namespace bulk { using namespace experimental; } extern environment env; void test_partitioning() { auto N = (int)sqrt(env.available_processors()); env.spawn(N * N, [](auto& world) { int s = world.p...
#include <cmath> #include "bulk_test_common.hpp" #include "set_backend.hpp" #include <bulk/bulk.hpp> namespace bulk { using namespace experimental; } extern environment env; void test_partitioning() { auto N = (int)sqrt(env.available_processors()); env.spawn(N * N, [](auto& world) { int s = world.p...
Fix cyclic global index check
Fix cyclic global index check
C++
mit
jwbuurlage/Bulk
d3553a5338e1622682827f49eb12f99eebdbf5e8
o3d/statsreport/metrics_unittest.cc
o3d/statsreport/metrics_unittest.cc
/* * Copyright 2009, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
/* * Copyright 2009, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
Delete bad sleep based tests
Delete bad sleep based tests If you need the tests, refractor them to follow the guidelines instead of having them fail intermittently http://big.corp.google.com/~joejoejoe/testing/2008/05/episode-90-sleeping-synchronization_27.html Review URL: http://codereview.chromium.org/159117 git-svn-id: http://src.chromium...
C++
bsd-3-clause
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-u...
0e9869e6cde55b006e9b69850cc629732813f5a2
onlineml/cmd/train_online_model.cpp
onlineml/cmd/train_online_model.cpp
#include <getopt.h> #include <stdio.h> #include <stdlib.h> #ifdef DEBUG #include <time.h> #endif #include <pthread.h> #include <iostream> #include <map> #include <string> #include <vector> #include <onlineml/common/classifier.hpp> #include <onlineml/common/dict.hpp> #include <onlineml/learner/perceptron.hpp> #inclu...
#include <getopt.h> #include <stdio.h> #include <stdlib.h> #ifdef DEBUG #include <time.h> #endif #include <pthread.h> #include <iostream> #include <map> #include <string> #include <vector> #include <onlineml/common/classifier.hpp> #include <onlineml/common/dict.hpp> #include <onlineml/learner/perceptron.hpp> #inclu...
refactor merging models in IPM
refactor merging models in IPM
C++
mit
tma15/onlineml,tma15/onlineml,tma15/onlineml,tma15/onlineml
ff463bb60c01001592076db9c67bb265780111e9
C++/reverse-words-in-a-string.cpp
C++/reverse-words-in-a-string.cpp
// Time: O(n) // Space: O(1) class Solution { public: /** * @param s : A string * @return : A string */ string reverseWords(string s) { // Reverse the whole string first. reverse(s.begin(), s.end()); size_t start = 0, end; while ((end = s.find(" ", start)) != st...
// Time: O(n) // Space: O(1) class Solution { public: /** * @param s : A string * @return : A string */ string reverseWords(string s) { // Reverse the whole string first. reverse(s.begin(), s.end()); size_t begin = 0, end = 0, len = 0; while ((begin = s.find_fir...
Update reverse-words-in-a-string.cpp
Update reverse-words-in-a-string.cpp
C++
mit
kamyu104/LintCode,kamyu104/LintCode,jaredkoontz/lintcode,jaredkoontz/lintcode,jaredkoontz/lintcode,kamyu104/LintCode
05b0c12785ffb1f2458ff33cc05e86fd620f1a94
capBAC/issuer_new.cpp
capBAC/issuer_new.cpp
#include <string.h> #include <iostream> #include <fstream> #include <vector> #include <stdio.h> #include <sstream> #include <arpa/inet.h> #include <unistd.h> #include <sys/epoll.h> #include <errno.h> #include <openssl/ec.h> #include <openssl/bn.h> #include <openssl/objects.h> #include "rapidjson/document.h" #include ...
#include <string.h> #include <iostream> #include <fstream> #include <vector> #include <stdio.h> #include <sstream> #include <arpa/inet.h> #include <unistd.h> #include <sys/epoll.h> #include <errno.h> #include <openssl/ec.h> #include <openssl/bn.h> #include <openssl/objects.h> #include "rapidjson/document.h" #include ...
write token from issuer to subject code added
write token from issuer to subject code added
C++
apache-2.0
jtracey/cuddly-fiesta,jtracey/cuddly-fiesta,jtracey/cuddly-fiesta
112bbc93092555248c2d2f549396cfcc005560fa
src/settings.cpp
src/settings.cpp
/** * Copyright (c) 2011-2016 libbitcoin developers (see AUTHORS) * * This file is part of libbitcoin. * * libbitcoin is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License with * additional permissions to the one published by the Free Software * Fo...
/** * Copyright (c) 2011-2016 libbitcoin developers (see AUTHORS) * * This file is part of libbitcoin. * * libbitcoin is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License with * additional permissions to the one published by the Free Software * Fo...
Fix static init syntax.
Fix static init syntax.
C++
agpl-3.0
RojavaCrypto/libbitcoin-server,RojavaCrypto/libbitcoin-server,RojavaCrypto/libbitcoin-server
590455ae11d9ff0527f8a70c240137a641c85ee1
src/parser/trees/evalb.cpp
src/parser/trees/evalb.cpp
/** * @file evalb.cpp * @author Chase Geigle */ #include <iostream> #include <set> #include <unordered_set> #include "util/comparable.h" #include "parser/trees/evalb.h" #include "parser/trees/visitors/visitor.h" #include "parser/trees/visitors/annotation_remover.h" #include "parser/trees/visitors/tree_transformer.h...
/** * @file evalb.cpp * @author Chase Geigle */ #include <iostream> #include <set> #include <unordered_set> #include "util/comparable.h" #include "parser/trees/evalb.h" #include "parser/trees/visitors/visitor.h" #include "parser/trees/visitors/annotation_remover.h" #include "parser/trees/visitors/tree_transformer.h...
Fix compilation in debug mode for evalb.
Fix compilation in debug mode for evalb.
C++
mit
gef756/meta,husseinhazimeh/meta,saq7/MeTA,saq7/MeTA,esparza83/meta,husseinhazimeh/meta,esparza83/meta,husseinhazimeh/meta,gef756/meta,husseinhazimeh/meta,esparza83/meta,husseinhazimeh/meta,esparza83/meta,saq7/MeTA,gef756/meta,esparza83/meta,gef756/meta,gef756/meta
2c57cf3063a0b5a78e2599e97832a869168a58b0
src/yfontcore.cc
src/yfontcore.cc
#include "config.h" #ifdef CONFIG_COREFONTS #include "ypaint.h" #include "intl.h" #include "yxapp.h" #include "yprefs.h" #include <string.h> #include <locale.h> class YCoreFont : public YFont { public: YCoreFont(char const * name); virtual ~YCoreFont(); virtual bool valid() const { return (NULL != fFo...
#include "config.h" #ifdef CONFIG_COREFONTS #include "ypaint.h" #include "intl.h" #include "yxapp.h" #include "yprefs.h" #include <string.h> //#include <locale.h> class YCoreFont : public YFont { public: YCoreFont(char const * name); virtual ~YCoreFont(); virtual bool valid() const { return (NULL != f...
remove bad include
remove bad include
C++
lgpl-2.1
bedna-KU/icewm,dicej/icewm,dicej/icewm,dicej/icewm,jinn-alt/icewm,dicej/icewm,bedna-KU/icewm,jinn-alt/icewm,jinn-alt/icewm,bedna-KU/icewm
f5abf53c8524fee697210577c5f78afb53020e71
src/primesieve/CpuInfo.cpp
src/primesieve/CpuInfo.cpp
/// /// @file CpuInfo.cpp /// @brief Get the CPUs cache sizes in bytes. /// /// Copyright (C) 2017 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #include <primesieve/CpuInfo.hpp> #include <cstddef> #if defined(_...
/// /// @file CpuInfo.cpp /// @brief Get the CPUs cache sizes in bytes. /// /// Copyright (C) 2017 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #include <primesieve/CpuInfo.hpp> #include <cstddef> #if defined(_...
Improve Windows cache size detection
Improve Windows cache size detection
C++
bsd-2-clause
kimwalisch/primesieve,kimwalisch/primesieve,kimwalisch/primesieve
9b77ea56ff7fd028f46a3780f11de59ab69cdd13
src/qoi/src/rayfire_mesh.C
src/qoi/src/rayfire_mesh.C
//-----------------------------------------------------------------------bl- //-------------------------------------------------------------------------- // // GRINS - General Reacting Incompressible Navier-Stokes // // Copyright (C) 2014-2016 Paul T. Bauman, Roy H. Stogner // Copyright (C) 2010-2013 The PECOS Developm...
//-----------------------------------------------------------------------bl- //-------------------------------------------------------------------------- // // GRINS - General Reacting Incompressible Navier-Stokes // // Copyright (C) 2014-2016 Paul T. Bauman, Roy H. Stogner // Copyright (C) 2010-2013 The PECOS Developm...
Use header for PointLocatorBase
Use header for PointLocatorBase Not the subclass. In particular, this subclass is being removed from post 1.0 libMesh, so this actually doesn't even compile.
C++
lgpl-2.1
nicholasmalaya/grins,nicholasmalaya/grins,nicholasmalaya/grins,nicholasmalaya/grins
4994af6626db61f8f0ac2d0e42c849a40763c477
examples/mtran/transpose.cpp
examples/mtran/transpose.cpp
#include <iostream> #include <random> #include <string> #include <vector> #include "tuner_api.h" #define USE_CUDA 1 #define USE_PROFILING 0 #if USE_CUDA == 0 #if defined(_MSC_VER) #define KTT_KERNEL_FILE "../examples/mtran/mtran_kernel.cl" #define KTT_REFERENCE_KERNEL_FILE "../examples/mtran/mtran_reference...
#include <iostream> #include <random> #include <string> #include <vector> #include "tuner_api.h" #define USE_CUDA 0 #define USE_PROFILING 0 #if USE_CUDA == 0 #if defined(_MSC_VER) #define KTT_KERNEL_FILE "../examples/mtran/mtran_kernel.cl" #define KTT_REFERENCE_KERNEL_FILE "../examples/mtran/mtran_reference...
use OpenCL by default in matrix transpose
use OpenCL by default in matrix transpose
C++
mit
Fillo7/KTT,Fillo7/KTT
b0b494ad7a7d244559289307d650b4acde0e3714
api/gossiper.cc
api/gossiper.cc
/* * Copyright 2015 Cloudius Systems */ #include "gossiper.hh" #include "api/api-doc/gossiper.json.hh" #include <gms/gossiper.hh> #include <vector> #include <sstream> namespace api { template<class T> std::vector<sstring> addr_to_vec(const T& container) { auto res = std::vector<sstring>(container.size()); ...
/* * Copyright 2015 Cloudius Systems */ #include "gossiper.hh" #include "api/api-doc/gossiper.json.hh" #include <gms/gossiper.hh> namespace api { void set_gossiper(http_context& ctx, routes& r) { httpd::gossiper_json::get_down_endpoint.set(r, [](std::unique_ptr<request> req) { return gms::get_unreachab...
clean up the gossiper API impl
api: clean up the gossiper API impl This patch clean up the gossiper implementation by using the new square bracket operator for path param and by using the general function container_to_vec. Signed-off-by: Amnon Heiman <ed5fc74c4692051ad0b19749fd7cea6ec2d74b9e@cloudius-systems.com> Reviewed-by: Pekka Enberg <add4fcd...
C++
agpl-3.0
dwdm/scylla,scylladb/scylla,justintung/scylla,shaunstanislaus/scylla,eklitzke/scylla,senseb/scylla,rluta/scylla,stamhe/scylla,guiquanz/scylla,respu/scylla,linearregression/scylla,victorbriz/scylla,victorbriz/scylla,kangkot/scylla,avikivity/scylla,eklitzke/scylla,guiquanz/scylla,rentongzhang/scylla,rluta/scylla,stamhe/s...
57d6248ca9b9874f390f73c608c847aa7400e01a
heaptrack_interpret.cpp
heaptrack_interpret.cpp
/* * Copyright 2014 Milian Wolff <mail@milianw.de> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Library General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * *...
/* * Copyright 2014 Milian Wolff <mail@milianw.de> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Library General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * *...
Use the same error handler for both init error callbacks.
Use the same error handler for both init error callbacks. This happens rarely, and the error message is still helpful.
C++
lgpl-2.1
muojp/heaptrack,muojp/heaptrack,stormspirit/heaptrack,stormspirit/heaptrack,muojp/heaptrack,muojp/heaptrack,muojp/heaptrack,stormspirit/heaptrack
ca05dedc9bd5fbf636ea218e8238637a29a1f701
src/AssimpWorker/worker/Worker.cpp
src/AssimpWorker/worker/Worker.cpp
/* * This file is part of ATLAS. It is subject to the license terms in * the LICENSE file found in the top-level directory of this distribution. * (Also avialable at http://www.apache.org/licenses/LICENSE-2.0.txt) * You may not use this file except in compliance with the License. */ #include <iostream> #include <fstrea...
/* * This file is part of ATLAS. It is subject to the license terms in * the LICENSE file found in the top-level directory of this distribution. * (Also avialable at http://www.apache.org/licenses/LICENSE-2.0.txt) * You may not use this file except in compliance with the License. */ #include <iostream> #include <fstrea...
Use the decompression path to place temporary files
Use the decompression path to place temporary files
C++
apache-2.0
dfki-asr/atlas-worker,dfki-asr/atlas-worker
139fc1795bf3ddc8717eb2b26182526daa89911e
Cutelyst/headers.cpp
Cutelyst/headers.cpp
/* * Copyright (C) 2014-2016 Daniel Nicoletti <dantti12@gmail.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any late...
/* * Copyright (C) 2014-2016 Daniel Nicoletti <dantti12@gmail.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any late...
Fix Headers::pushHeader() behavior
Fix Headers::pushHeader() behavior
C++
bsd-3-clause
buschmann23/cutelyst,cutelyst/cutelyst,simonaw/cutelyst,buschmann23/cutelyst,cutelyst/cutelyst,buschmann23/cutelyst,simonaw/cutelyst,cutelyst/cutelyst
f4e0d3e1bb98727eb38c453b42d440253114eb54
src/Tools/Polar/Puncturer/Puncturer_polar_wangliu.cpp
src/Tools/Polar/Puncturer/Puncturer_polar_wangliu.cpp
#include <cmath> #include "../../../Decoder/decoder_functions.h" #include "Puncturer_polar_wangliu.hpp" template <typename B, typename R> Puncturer_polar_wangliu<B,R> ::Puncturer_polar_wangliu(const int & N, const int & K, const Frozenbits_generator<B> &fb_generator) : N(N), N_2(std::exp2(std::ceil(std::log2(N)))...
#include <cmath> #include "../../../Decoder/decoder_functions.h" #include "Puncturer_polar_wangliu.hpp" template <typename B, typename R> Puncturer_polar_wangliu<B,R> ::Puncturer_polar_wangliu(const int & N, const int & K, const Frozenbits_generator<B> &fb_generator) : N(N), N_2(std::exp2(std::ceil(std::log2(N)))...
Fix wangliu puncturer contructor, which caused compilation issues with certain compilers.
Fix wangliu puncturer contructor, which caused compilation issues with certain compilers. Signed-off-by: Mathieu Léonardon <07f16d5d69a8331a22549890febbed6735ecf8d7@u-bordeaux.fr>
C++
mit
aff3ct/aff3ct,aff3ct/aff3ct,aff3ct/aff3ct,aff3ct/aff3ct
0a6764281799b863ba71dc7aff3120a768f29900
fuzzer/cbor_decode.cpp
fuzzer/cbor_decode.cpp
#include "inc/cxx/json.hpp" #include "inc/cxx/cbor.hpp" #include <string_view> #include <cstddef> #include <cstdint> extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { cxx::json::byte_view bytes(reinterpret_cast<cxx::byte const*>(data), size); try { while (!std::empty(bytes)) { ...
#include "inc/cxx/json.hpp" #include "inc/cxx/cbor.hpp" #include <string_view> #include <cstddef> #include <cstdint> extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { cxx::json::byte_view bytes(reinterpret_cast<cxx::byte const*>(data), size); try { while (!std::empty(bytes)) { ...
fix fuzzer build
fix fuzzer build
C++
mit
attugit/cxxjson,attugit/cxxjson,attugit/cxxjson
b9bfae9abd3d2f11de9534568c9c8dc641ad33a2
test/src/unit/reg.cpp
test/src/unit/reg.cpp
//======================================================================= // Copyright (c) 2014-2017 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //==================================================================...
//======================================================================= // Copyright (c) 2014-2017 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //==================================================================...
Add evaluation to the regression test
Add evaluation to the regression test
C++
mit
wichtounet/dll,wichtounet/dll,wichtounet/dll
3ea4ed5c8254cadc024ecb80ff93c5148facccbd
source/Pictus/adjust.cpp
source/Pictus/adjust.cpp
#include "adjust.h" #include <wx/button.h> #include <wx/checkbox.h> #include <wx/sizer.h> #include <wx/statbox.h> #include "wintypes.h" #include "illa/config.h" using namespace Intl; namespace App { void Adjust::Brightness(int newBright) { if (newBright != m_brightness->GetValue()) { m_brightness->SetValue(n...
#include "adjust.h" #include <wx/button.h> #include <wx/checkbox.h> #include <wx/sizer.h> #include <wx/statbox.h> #include "wintypes.h" #include "illa/config.h" using namespace Intl; namespace App { void Adjust::Brightness(int newBright) { if (newBright != m_brightness->GetValue()) { m_brightness->SetValue(n...
Make escape key work in adjust dialog
Make escape key work in adjust dialog
C++
mit
poppeman/Pictus,poppeman/Pictus,poppeman/Pictus
e514fff2a1a47a0150fdcf6f255970271a4b1319
test/test_context.cpp
test/test_context.cpp
// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp: /* Copyright (c) 2008 Aristid Breitkreuz, Ruediger Sonderfeld Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including wit...
// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp: /* Copyright (c) 2008 Aristid Breitkreuz, Ruediger Sonderfeld Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including wit...
check is_valid() for context::create()
check is_valid() for context::create()
C++
mit
Flusspferd/flusspferd,Flusspferd/flusspferd,Flusspferd/flusspferd,Flusspferd/flusspferd,Flusspferd/flusspferd
b2a6903b018be035fce0593d9b67e687d6805501
pythran/pythonic/utils/broadcast_copy.hpp
pythran/pythonic/utils/broadcast_copy.hpp
#ifndef PYTHONIC_UTILS_BROADCAST_COPY_HPP #define PYTHONIC_UTILS_BROADCAST_COPY_HPP #include "pythonic/types/tuple.hpp" #ifdef USE_BOOST_SIMD #include <boost/simd/sdk/simd/native.hpp> #endif #ifdef _OPENMP #include <omp.h> // as a macro so that an enlightened user can modify this non-documented variable :-) #ifndef ...
#ifndef PYTHONIC_UTILS_BROADCAST_COPY_HPP #define PYTHONIC_UTILS_BROADCAST_COPY_HPP #include "pythonic/types/tuple.hpp" #ifdef USE_BOOST_SIMD #include <boost/simd/sdk/simd/native.hpp> #endif #ifdef _OPENMP #include <omp.h> // as a macro so that an enlightened user can modify this non-documented variable :-) #ifndef ...
Remove unused variable warning when OpenMP is disable
Remove unused variable warning when OpenMP is disable
C++
bsd-3-clause
artas360/pythran,hainm/pythran,pbrunet/pythran,hainm/pythran,pbrunet/pythran,pombredanne/pythran,hainm/pythran,serge-sans-paille/pythran,pbrunet/pythran,artas360/pythran,pombredanne/pythran,artas360/pythran,serge-sans-paille/pythran,pombredanne/pythran
3269523c41e87d8f69c652b21b877ab93a20d89f
test/test_geometry.cc
test/test_geometry.cc
#include "gtest/gtest.h" #include "../include/spica.h" using namespace spica; // ------------------------------ // Primitive class test // ------------------------------ TEST(PrimitiveTest, InstanceTest) { Primitive p; EXPECT_EQ(0.0, p.emission().x()); EXPECT_EQ(0.0, p.emission().y()); EXPECT_EQ(0.0,...
#include "gtest/gtest.h" #include "../include/spica.h" using namespace spica; // ------------------------------ // Primitive class test // ------------------------------ TEST(PrimitiveTest, InstanceTest) { Primitive p; EXPECT_EQ(0.0, p.emission().x()); EXPECT_EQ(0.0, p.emission().y()); EXPECT_EQ(0.0,...
Update test for geometry Primitive.
Update test for geometry Primitive.
C++
mit
tatsy/spica,tatsy/spica,tatsy/spica
5760a809601eb0b6aa404a47e0f97a98424992fd
builder/dali-builder.cpp
builder/dali-builder.cpp
/* * Copyright (c) 2014 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
/* * Copyright (c) 2014 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
Change dali-builder background colour to WHITE
Change dali-builder background colour to WHITE Change-Id: I42df9f8118c56a963c5f37d7a1da61d7cf72f17d
C++
apache-2.0
dalihub/dali-demo,dalihub/dali-demo,dalihub/dali-demo,dalihub/dali-demo
d74b27e1db6dcb1f68bf12cc685847180af464bc
tests/common/tree.cpp
tests/common/tree.cpp
/* * Copyright (C) 2015 Luke San Antonio * All rights reserved. */ #include "catch/catch.hpp" #include "common/tree.h" TEST_CASE("tree returns valid iterators for allocated depth levels", "[Tree]") { using namespace game; Quadtree<int> tree; tree.set_depth(3); // Check our sanity. REQUIRE(tree.level_b...
/* * Copyright (C) 2015 Luke San Antonio * All rights reserved. */ #include "catch/catch.hpp" #include "common/tree.h" TEST_CASE("tree returns valid iterators for allocated depth levels", "[Tree]") { using namespace game; Quadtree<int> tree; tree.set_depth(3); // Check our sanity. REQUIRE(tree.level_b...
Add more tests for the tree template
Add more tests for the tree template
C++
bsd-3-clause
RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine
766b6f86a61818f353460e5be013c4ef86a494f2
test/test_rand_io.cpp
test/test_rand_io.cpp
/** * Copyright 2013 Da Zheng * * This file is part of SAFSlib. * * SAFSlib is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * ...
/** * Copyright 2013 Da Zheng * * This file is part of SAFSlib. * * SAFSlib is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * ...
fix a bug in test_rand_io for distributing workloads.
[Test-bug]: fix a bug in test_rand_io for distributing workloads. test_rand_io assigns a wrong thread id to file_workload generators. But it doesn't matter with the current implementation because the workload loaded from a file is dynamically assigned to threads.
C++
apache-2.0
icoming/FlashGraph,icoming/FlashGraph,icoming/FlashGraph,icoming/FlashX,flashxio/FlashX,zheng-da/FlashX,icoming/FlashX,silky/FlashGraph,zheng-da/FlashX,zheng-da/FlashX,flashxio/FlashX,flashxio/FlashX,icoming/FlashX,zheng-da/FlashX,silky/FlashGraph,flashxio/FlashX,zheng-da/FlashX,flashxio/FlashX,icoming/FlashGraph,silky...
876dd67fbcf15cca3598c00bdfbedc6c8e425d6c
test/test_recheck.cpp
test/test_recheck.cpp
/* Copyright (c) 2012, Arvid Norberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the f...
/* Copyright (c) 2012, Arvid Norberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the f...
fix test_recheck
fix test_recheck git-svn-id: 51f496e7cf1b55ee487494d18ee2d308bae7fe77@7155 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
C++
bsd-3-clause
steeve/libtorrent,steeve/libtorrent,steeve/libtorrent,steeve/libtorrent,steeve/libtorrent,steeve/libtorrent
c556128fcf61e145597d919002e1ee900dfa8ea9
build/tsan_suppressions_webrtc.cc
build/tsan_suppressions_webrtc.cc
/* * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
/* * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
Remove potential deadlock in WebRtcVideoEngine2.
Remove potential deadlock in WebRtcVideoEngine2. Fixes lock-order inversions between capturer's SignalVideoFrame and WebRtcVideoSendStream. Additionally also removes all deadlock suppressions for WebRtcVideoEngine2. R=stefan@webrtc.org TBR=kjellander@webrtc.org BUG=1788,2999 Review URL: https://webrtc-codereview.app...
C++
bsd-3-clause
jchavanton/webrtc,krieger-od/webrtc,Alkalyne/webrtctrunk,krieger-od/nwjs_chromium_webrtc,krieger-od/nwjs_chromium_webrtc,krieger-od/webrtc,jchavanton/webrtc,jchavanton/webrtc,Alkalyne/webrtctrunk,krieger-od/webrtc,krieger-od/nwjs_chromium_webrtc,aleonliao/webrtc-trunk,Alkalyne/webrtctrunk,Alkalyne/webrtctrunk,Personify...
501af0d2c792c404e6820fc1a8f026fa4701b767
source/solver/calc_artificial_viscosity.cpp
source/solver/calc_artificial_viscosity.cpp
// // NSolver::calc_artificial_viscosity.cpp // // Created by Lei Qiao on 15/9/2. // A work based on deal.II tutorial step-33. // #include <NSolver/solver/NSolver.h> namespace NSFEMSolver { using namespace dealii; template <int dim> void NSolver<dim>::calc_artificial_viscosity() { switch (parameters->d...
// // NSolver::calc_artificial_viscosity.cpp // // Created by Lei Qiao on 15/9/2. // A work based on deal.II tutorial step-33. // #include <NSolver/solver/NSolver.h> namespace NSFEMSolver { using namespace dealii; template <int dim> void NSolver<dim>::calc_artificial_viscosity() { switch (parameters->d...
use paramter entropy_use_global_h_min
use paramter entropy_use_global_h_min
C++
lgpl-2.1
QiaoLei-88/NSolver,QiaoLei-88/NSolver