{"commit":"8e642c9d00180261ee277a307618770b75b31d46","old_file":"server\/proxy\/filters\/filter_demo.c","new_file":"server\/proxy\/filters\/filter_demo.c","old_contents":"#include \"filters_api.h\"\n\nstatic PF_FILTER_RESULT demo_filter_keyboard_event(connectionInfo* info, void* param)\n{\n\tproxyKeyboardEventInfo* event_data = (proxyKeyboardEventInfo*) param;\n\treturn FILTER_PASS;\n}\n\nstatic PF_FILTER_RESULT demo_filter_mouse_event(connectionInfo* info, void* param)\n{\n\tproxyMouseEventInfo* event_data = (proxyMouseEventInfo*) param;\n\n if (event_data->x % 100 == 0)\n {\n return FILTER_DROP;\n }\n\n\treturn FILTER_PASS;\n}\n\nbool filter_init(proxyEvents* events)\n{\n\tevents->KeyboardEvent = demo_filter_keyboard_event;\n\tevents->MouseEvent = demo_filter_mouse_event;\n}\n","new_contents":"#include \"filters_api.h\"\n\nstatic PF_FILTER_RESULT demo_filter_keyboard_event(connectionInfo* info, void* param)\n{\n\tproxyKeyboardEventInfo* event_data = (proxyKeyboardEventInfo*) param;\n\treturn FILTER_PASS;\n}\n\nstatic PF_FILTER_RESULT demo_filter_mouse_event(connectionInfo* info, void* param)\n{\n\tproxyMouseEventInfo* event_data = (proxyMouseEventInfo*) param;\n\n if (event_data->x % 100 == 0)\n {\n return FILTER_DROP;\n }\n\n\treturn FILTER_PASS;\n}\n\nbool filter_init(proxyEvents* events)\n{\n\tevents->KeyboardEvent = demo_filter_keyboard_event;\n\tevents->MouseEvent = demo_filter_mouse_event;\n\n\treturn true;\n}\n","subject":"Add return statement in demo_filter.c","message":"server\/proxy: Add return statement in demo_filter.c\n","lang":"C","license":"apache-2.0","repos":"RangeeGmbH\/FreeRDP,mfleisz\/FreeRDP,erbth\/FreeRDP,ivan-83\/FreeRDP,akallabeth\/FreeRDP,mfleisz\/FreeRDP,FreeRDP\/FreeRDP,awakecoding\/FreeRDP,cedrozor\/FreeRDP,chipitsine\/FreeRDP,DavBfr\/FreeRDP,Devolutions\/FreeRDP,chipitsine\/FreeRDP,FreeRDP\/FreeRDP,Devolutions\/FreeRDP,ivan-83\/FreeRDP,ivan-83\/FreeRDP,FreeRDP\/FreeRDP,ivan-83\/FreeRDP,awakecoding\/FreeRDP,FreeRDP\/FreeRDP,Devolutions\/FreeRDP,DavBfr\/FreeRDP,erbth\/FreeRDP,chipitsine\/FreeRDP,erbth\/FreeRDP,akallabeth\/FreeRDP,cedrozor\/FreeRDP,chipitsine\/FreeRDP,FreeRDP\/FreeRDP,DavBfr\/FreeRDP,awakecoding\/FreeRDP,RangeeGmbH\/FreeRDP,DavBfr\/FreeRDP,RangeeGmbH\/FreeRDP,awakecoding\/FreeRDP,chipitsine\/FreeRDP,Devolutions\/FreeRDP,Devolutions\/FreeRDP,DavBfr\/FreeRDP,mfleisz\/FreeRDP,cedrozor\/FreeRDP,cedrozor\/FreeRDP,akallabeth\/FreeRDP,ivan-83\/FreeRDP,mfleisz\/FreeRDP,akallabeth\/FreeRDP,Devolutions\/FreeRDP,RangeeGmbH\/FreeRDP,chipitsine\/FreeRDP,cloudbase\/FreeRDP-dev,ivan-83\/FreeRDP,cedrozor\/FreeRDP,awakecoding\/FreeRDP,RangeeGmbH\/FreeRDP,DavBfr\/FreeRDP,cedrozor\/FreeRDP,akallabeth\/FreeRDP,mfleisz\/FreeRDP,ivan-83\/FreeRDP,RangeeGmbH\/FreeRDP,erbth\/FreeRDP,erbth\/FreeRDP,awakecoding\/FreeRDP,chipitsine\/FreeRDP,mfleisz\/FreeRDP,FreeRDP\/FreeRDP,FreeRDP\/FreeRDP,FreeRDP\/FreeRDP,cloudbase\/FreeRDP-dev,awakecoding\/FreeRDP,DavBfr\/FreeRDP,DavBfr\/FreeRDP,mfleisz\/FreeRDP,chipitsine\/FreeRDP,mfleisz\/FreeRDP,akallabeth\/FreeRDP,erbth\/FreeRDP,awakecoding\/FreeRDP,akallabeth\/FreeRDP,cloudbase\/FreeRDP-dev,RangeeGmbH\/FreeRDP,ivan-83\/FreeRDP,cedrozor\/FreeRDP,cloudbase\/FreeRDP-dev,Devolutions\/FreeRDP,cloudbase\/FreeRDP-dev,Devolutions\/FreeRDP,cloudbase\/FreeRDP-dev,akallabeth\/FreeRDP,erbth\/FreeRDP,cloudbase\/FreeRDP-dev,cedrozor\/FreeRDP,RangeeGmbH\/FreeRDP,erbth\/FreeRDP"} {"commit":"63a9cf2dc50b7c83f99b95c1e7e63985c6e52343","old_file":"WatchKit\/SpecHelper\/WatchKit\/TestableWKInterfaceController.h","new_file":"WatchKit\/SpecHelper\/WatchKit\/TestableWKInterfaceController.h","old_contents":"#import \n\n\n@class WKInterfaceController;\n@class FakeInterfaceController;\n\n\n@protocol TestableWKInterfaceController \n\n- (void)awakeWithContext:(id)context;\n- (void)willActivate;\n- (void)didDeactivate;\n\n@optional\n\n- (void)pushControllerWithName:(NSString *)name context:(id)context;\n- (void)presentControllerWithName:(NSString *)name context:(id)context;\n\n@end\n","new_contents":"#import \n\n\n@class WKInterfaceController;\n@class FakeInterfaceController;\n\n\n@protocol TestableWKInterfaceController \n\n- (void)awakeWithContext:(id)context;\n- (void)willActivate;\n- (void)didDeactivate;\n\n@optional\n\n- (NSArray *)sent_messages;\n- (void)pushControllerWithName:(NSString *)name context:(id)context;\n- (void)presentControllerWithName:(NSString *)name context:(id)context;\n\n@end\n","subject":"Add sent_messages array to testable controller interface","message":"Add sent_messages array to testable controller interface\n","lang":"C","license":"mit","repos":"pivotaltracker\/PivotalCoreKit,gudatcomputers\/PivotalCoreKit,gudatcomputers\/PivotalCoreKit,briancroom\/PivotalCoreKit,mjstallard\/PivotalCoreKit,pivotal\/PivotalCoreKit,idoru\/PivotalCoreKit,idoru\/PivotalCoreKit,joemasilotti\/PivotalCoreKit,jfuchs\/PivotalCoreKit,joemasilotti\/PivotalCoreKit,jfuchs\/PivotalCoreKit"} {"commit":"939eaa5c04c3953bf85a361d14f14a9f8cbb5fe0","old_file":"chapter1\/temp-rev.c","new_file":"chapter1\/temp-rev.c","old_contents":"","new_contents":"#include \n\nmain() {\n float fahr, celsius;\n float lower, upper, step;\n\n lower = 0;\n upper = 300;\n step = 20;\n\n celsius = lower;\n\n printf(\"%6s\\t%3s\\n\", \"celsius\", \"fahr\");\n\n while (celsius <= upper) {\n fahr = celsius * (9.0\/5.0) + 32.0;\n printf(\"%6.1f\\t%3.0f\\n\", celsius, fahr);\n celsius = celsius + step;\n }\n}","subject":"Add chapter 1 extra exercises","message":"Add chapter 1 extra exercises\n","lang":"C","license":"mit","repos":"melonmanchan\/k-and-r"} {"commit":"ba621e3b245e0ca2dcd80aeb1d51f617feceac51","old_file":"searchcore\/src\/vespa\/searchcore\/proton\/server\/executor_threading_service_stats.h","new_file":"searchcore\/src\/vespa\/searchcore\/proton\/server\/executor_threading_service_stats.h","old_contents":"\/\/ Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\n#pragma once\n\n#include \n\nnamespace proton {\n\nclass ExecutorThreadingServiceStats {\npublic:\n using Stats = vespalib::ThreadStackExecutorBase::Stats;\n\nprivate:\n Stats _masterExecutorStats;\n Stats _indexExecutorStats;\n Stats _summaryExecutorStats;\n Stats _indexFieldInverterExecutorStats;\n Stats _indexFieldWriterExecutorStats;\n Stats _attributeFieldWriterExecutorStats;\npublic:\n ExecutorThreadingServiceStats(Stats masterExecutorStats,\n Stats indexExecutorStats,\n Stats summaryExecutorStats,\n Stats indexFieldInverterExecutorStats,\n Stats indexFieldWriterExecutorStats,\n Stats attributeFieldWriterExecutorStats);\n ~ExecutorThreadingServiceStats();\n\n const Stats &getMasterExecutorStats() const { return _masterExecutorStats; }\n const Stats &getIndexExecutorStats() const { return _indexExecutorStats; }\n const Stats &getSummaryExecutorStats() const { return _summaryExecutorStats; }\n const Stats &getIndexFieldInverterExecutorStats() const { return _indexFieldInverterExecutorStats; }\n const Stats &getIndexFieldWriterExecutorStats() const { return _indexFieldWriterExecutorStats; }\n const Stats &getAttributeFieldWriterExecutorStats() const { return _attributeFieldWriterExecutorStats; }\n};\n\n}\n","new_contents":"\/\/ Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\n#pragma once\n\n#include \n#include \n\nnamespace proton {\n\n\/*\n * This class contains executor stats for the executors used by a\n * document db.\n *\/\nclass ExecutorThreadingServiceStats {\npublic:\n using Stats = vespalib::ExecutorStats;\n\nprivate:\n Stats _masterExecutorStats;\n Stats _indexExecutorStats;\n Stats _summaryExecutorStats;\n Stats _indexFieldInverterExecutorStats;\n Stats _indexFieldWriterExecutorStats;\n Stats _attributeFieldWriterExecutorStats;\npublic:\n ExecutorThreadingServiceStats(Stats masterExecutorStats,\n Stats indexExecutorStats,\n Stats summaryExecutorStats,\n Stats indexFieldInverterExecutorStats,\n Stats indexFieldWriterExecutorStats,\n Stats attributeFieldWriterExecutorStats);\n ~ExecutorThreadingServiceStats();\n\n const Stats &getMasterExecutorStats() const { return _masterExecutorStats; }\n const Stats &getIndexExecutorStats() const { return _indexExecutorStats; }\n const Stats &getSummaryExecutorStats() const { return _summaryExecutorStats; }\n const Stats &getIndexFieldInverterExecutorStats() const { return _indexFieldInverterExecutorStats; }\n const Stats &getIndexFieldWriterExecutorStats() const { return _indexFieldWriterExecutorStats; }\n const Stats &getAttributeFieldWriterExecutorStats() const { return _attributeFieldWriterExecutorStats; }\n};\n\n}\n","subject":"Add class comment. Reduce indirections in using statement.","message":"Add class comment.\nReduce indirections in using statement.\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":"cdd4ecd92bd54375dccc90633994626932a8c2c5","old_file":"test\/test_parser_one.c","new_file":"test\/test_parser_one.c","old_contents":"#include \"test_parser.h\"\n\nvoid one_or_more_one(void **state) {\n grammar_t *grammar = grammar_init(\n non_terminal(\"One\"),\n rule_init(\n \"One\",\n one_or_more(\n terminal(\"11\")\n )\n ), 1\n );\n\n parse_t *result = parse(\"11\", grammar);\n assert_non_null(result);\n\n assert_int_equal(result->length, 2);\n assert_int_equal(result->n_children, 1);\n}\n\nvoid one_or_more_many(void **state) {\n grammar_t *grammar = grammar_init(\n non_terminal(\"One\"),\n rule_init(\n \"One\",\n one_or_more(\n terminal(\"11\")\n )\n ), 1\n );\n\n parse_t *result = parse(\"1111111\", grammar);\n assert_non_null(result);\n\n assert_int_equal(result->length, 6);\n assert_int_equal(result->n_children, 3);\n}\n\nvoid one_or_more_failure(void **state) {\n grammar_t *grammar = grammar_init(\n non_terminal(\"One\"),\n rule_init(\n \"One\",\n one_or_more(\n terminal(\"11\")\n )\n ), 1\n );\n\n parse_t *result = parse(\"1\", grammar);\n assert_null(result);\n}\n","new_contents":"#include \"test_parser.h\"\n\nvoid one_or_more_one(void **state) {\n grammar_t *grammar = grammar_init(\n non_terminal(\"One\"),\n rule_init(\n \"One\",\n one_or_more(\n terminal(\"11\")\n )\n ), 1\n );\n\n parse_result_t *result = parse(\"11\", grammar);\n assert_non_null(result);\n assert_true(is_success(result));\n\n parse_t *suc = result->data.result;\n assert_int_equal(suc->length, 2);\n assert_int_equal(suc->n_children, 1);\n}\n\nvoid one_or_more_many(void **state) {\n grammar_t *grammar = grammar_init(\n non_terminal(\"One\"),\n rule_init(\n \"One\",\n one_or_more(\n terminal(\"11\")\n )\n ), 1\n );\n\n parse_result_t *result = parse(\"1111111\", grammar);\n assert_non_null(result);\n assert_true(is_success(result));\n\n parse_t *suc = result->data.result;\n assert_int_equal(suc->length, 6);\n assert_int_equal(suc->n_children, 3);\n}\n\nvoid one_or_more_failure(void **state) {\n grammar_t *grammar = grammar_init(\n non_terminal(\"One\"),\n rule_init(\n \"One\",\n one_or_more(\n terminal(\"11\")\n )\n ), 1\n );\n\n parse_result_t *result = parse(\"1\", grammar);\n assert_non_null(result);\n assert_true(is_error(result));\n}\n","subject":"Use new API on one or more tests","message":"Use new API on one or more tests\n","lang":"C","license":"mit","repos":"Baltoli\/peggo,Baltoli\/peggo"} {"commit":"23f49ce7ef21eae1fc27b42f772e274f4f5ad81f","old_file":"JPEGReadWriter2Plugin\/Error.c","new_file":"JPEGReadWriter2Plugin\/Error.c","old_contents":"#include \n#include \"jpeglib.h\"\n#include \n\nstruct error_mgr2 {\n struct jpeg_error_mgr pub;\t\/* \"public\" fields *\/\n\n jmp_buf setjmp_buffer;\t\/* for return to caller *\/\n};\n\ntypedef struct error_mgr2 * error_ptr2;\n\n\/*\n * Here's the routine that will replace the standard error_exit method:\n *\/\n\nvoid error_exit (j_common_ptr cinfo)\n{\n \/* cinfo->err really points to a error_mgr2 struct, so coerce pointer *\/\n error_ptr2 myerr = (error_ptr2) cinfo->err;\n\n \/* Return control to the setjmp point *\/\n longjmp(myerr->setjmp_buffer, 1);\n}\n\u001a","new_contents":"#include \n#include \"jpeglib.h\"\n#include \n\nstruct error_mgr2 {\n struct jpeg_error_mgr pub;\t\/* \"public\" fields *\/\n\n jmp_buf setjmp_buffer;\t\/* for return to caller *\/\n};\n\ntypedef struct error_mgr2 * error_ptr2;\n\n\/*\n * Here's the routine that will replace the standard error_exit method:\n *\/\n\nvoid error_exit (j_common_ptr cinfo)\n{\n \/* cinfo->err really points to a error_mgr2 struct, so coerce pointer *\/\n error_ptr2 myerr = (error_ptr2) cinfo->err;\n\n \/* Return control to the setjmp point *\/\n longjmp(myerr->setjmp_buffer, 1);\n}\n","subject":"Remove nasty character at end of file that prevents compiles","message":"Remove nasty character at end of file that prevents compiles\n\n\ngit-svn-id: f18ccec24f938f15aa42574278fe0cc52f637e81@72 fa1542d4-bde8-0310-ad64-8ed1123d492a\n","lang":"C","license":"mit","repos":"peteruhnak\/pharo-vm,bencoman\/pharo-vm,peteruhnak\/pharo-vm,OpenSmalltalk\/vm,bencoman\/pharo-vm,OpenSmalltalk\/vm,bencoman\/pharo-vm,timfel\/squeakvm,OpenSmalltalk\/vm,peteruhnak\/pharo-vm,OpenSmalltalk\/vm,bencoman\/pharo-vm,bencoman\/pharo-vm,bencoman\/pharo-vm,OpenSmalltalk\/vm,timfel\/squeakvm,timfel\/squeakvm,bencoman\/pharo-vm,bencoman\/pharo-vm,peteruhnak\/pharo-vm,bencoman\/pharo-vm,timfel\/squeakvm,timfel\/squeakvm,timfel\/squeakvm,timfel\/squeakvm,peteruhnak\/pharo-vm,OpenSmalltalk\/vm,timfel\/squeakvm,peteruhnak\/pharo-vm,peteruhnak\/pharo-vm,OpenSmalltalk\/vm,OpenSmalltalk\/vm,peteruhnak\/pharo-vm"} {"commit":"bdb9422317e0066978477b7e9c7b3063699aeb90","old_file":"shared\/types.h","new_file":"shared\/types.h","old_contents":"#pragma once\n\n#ifdef bool\n#undef bool\n#endif\n\ntypedef char bool;\n#define true 1\n#define false 0\n\ntypedef struct carp_thread* carp_thread_t;\ntypedef void(*carp_thread_routine)(void* arg);\n\ntypedef struct carp_library* carp_library_t;\n\n\/* Init\/shutdown *\/\n\nvoid carp_platform_init();\n\nvoid carp_platform_shutdown();\n\n\/* --- Threads --- *\/\n\ncarp_thread_t carp_thread_create(carp_thread_routine thread_routine, void* arg);\n\nvoid carp_thread_destroy(carp_thread_t thread);\n\n\/* --- Timing --- *\/\n\nint carp_millitime();\n\n\/* --- Libraries --- *\/\n\ncarp_library_t carp_load_library(const char* name);\n\nint carp_unload_library(carp_library_t lib);\n\nvoid* carp_find_symbol(carp_library_t lib, const char * name);\n\nchar* carp_get_load_library_error();\n\n\/* -- misc -- *\/\n\nvoid carp_sleep(int millis);\n\ntypedef enum CARP_PLATFORM {\n\tCARP_PLATFORM_OSX = 0,\n\tCARP_PLATFORM_WINDOWS = 1,\n\tCARP_PLATFORM_LINUX = 2,\n\tCARP_PLATFORM_UNKNOWN = 100\n} CARP_PLATFORM;\n\nCARP_PLATFORM carp_get_platform();\n\ntypedef struct {\n int count;\n void *data;\n} Array;\n\n","new_contents":"#pragma once\n\n#ifdef bool\n#undef bool\n#endif\n\ntypedef int bool;\n#define true 1\n#define false 0\n\ntypedef struct carp_thread* carp_thread_t;\ntypedef void(*carp_thread_routine)(void* arg);\n\ntypedef struct carp_library* carp_library_t;\n\n\/* Init\/shutdown *\/\n\nvoid carp_platform_init();\n\nvoid carp_platform_shutdown();\n\n\/* --- Threads --- *\/\n\ncarp_thread_t carp_thread_create(carp_thread_routine thread_routine, void* arg);\n\nvoid carp_thread_destroy(carp_thread_t thread);\n\n\/* --- Timing --- *\/\n\nint carp_millitime();\n\n\/* --- Libraries --- *\/\n\ncarp_library_t carp_load_library(const char* name);\n\nint carp_unload_library(carp_library_t lib);\n\nvoid* carp_find_symbol(carp_library_t lib, const char * name);\n\nchar* carp_get_load_library_error();\n\n\/* -- misc -- *\/\n\nvoid carp_sleep(int millis);\n\ntypedef enum CARP_PLATFORM {\n\tCARP_PLATFORM_OSX = 0,\n\tCARP_PLATFORM_WINDOWS = 1,\n\tCARP_PLATFORM_LINUX = 2,\n\tCARP_PLATFORM_UNKNOWN = 100\n} CARP_PLATFORM;\n\nCARP_PLATFORM carp_get_platform();\n\ntypedef struct {\n int count;\n void *data;\n} Array;\n\n","subject":"Change size of bool to 4","message":"Change size of bool to 4\n","lang":"C","license":"apache-2.0","repos":"carp-lang\/Carp,eriksvedang\/Carp,eriksvedang\/Carp,carp-lang\/Carp,carp-lang\/Carp"} {"commit":"5f177712db6e42a07bb02fb4bbb75d7584559b1f","old_file":"src\/utils\/FMatrix3x3.h","new_file":"src\/utils\/FMatrix3x3.h","old_contents":"\/\/Copyright (c) 2020 Ultimaker B.V.\n\/\/CuraEngine is released under the terms of the AGPLv3 or higher.\n\n#ifndef FMATRIX3X3_H\n#define FMATRIX3X3_H\n\nnamespace cura\n{\n\nclass Point3;\nclass FPoint3;\n\nclass FMatrix3x3\n{\npublic:\n double m[3][3];\n\n FMatrix3x3();\n \n Point3 apply(const FPoint3& p) const;\n};\n\n} \/\/namespace cura\n#endif \/\/FMATRIX3X3_H","new_contents":"\/\/Copyright (c) 2020 Ultimaker B.V.\n\/\/CuraEngine is released under the terms of the AGPLv3 or higher.\n\n#ifndef FMATRIX3X3_H\n#define FMATRIX3X3_H\n\nnamespace cura\n{\n\nclass Point3;\nclass FPoint3;\n\n\/*!\n * A 3x3 linear transformation matrix.\n *\/\nclass FMatrix3x3\n{\npublic:\n\t\/*!\n\t * The matrix data, row-endian.\n\t * \n\t * The first index is the column. The second index is the row.\n\t *\/\n double m[3][3];\n\n\t\/*!\n\t * Construct an identity matrix.\n\t *\/\n FMatrix3x3();\n\n\t\/*!\n\t * Apply this transformation to a coordinate.\n\t *\n\t * The result will also be converted to an integer-based coordinate\n\t * (``Point3``).\n\t * \\param p The coordinate to transform.\n\t * \\return A transformed coordinate.\n\t *\/\n Point3 apply(const FPoint3& p) const;\n};\n\n} \/\/namespace cura\n#endif \/\/FMATRIX3X3_H","subject":"Document the transformation matrix class","message":"Document the transformation matrix class\n\nBrief, but just the gist of what people need to know to use this class.\n\nContributes to issue CURA-7118.\n","lang":"C","license":"agpl-3.0","repos":"Ultimaker\/CuraEngine,Ultimaker\/CuraEngine"} {"commit":"bc07a64f87d24b573e1661b84ffb8d35288469ab","old_file":"src\/tests\/unit\/dictionary\/linear_hash\/test_linear_hash.h","new_file":"src\/tests\/unit\/dictionary\/linear_hash\/test_linear_hash.h","old_contents":"#ifndef TEST_LINEAR_HASH_H_\n#define TEST_LINEAR_HASH_H_\n\n#include \n#include \n#include \n#include \"..\/..\/..\/planckunit\/src\/planck_unit.h\"\n#include \"..\/..\/..\/..\/dictionary\/linear_hash\/linear_hash.h\"\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\nvoid\nrunalltests_linear_hash();\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif","new_contents":"#ifndef TEST_LINEAR_HASH_H_\n#define TEST_LINEAR_HASH_H_\n\n#include \n#include \n#include \n#include \n#include \"..\/..\/..\/planckunit\/src\/planck_unit.h\"\n#include \"..\/..\/..\/..\/dictionary\/linear_hash\/linear_hash.h\"\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\nvoid\nrunalltests_linear_hash();\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif","subject":"Add include for math.h to lin hash","message":"Add include for math.h to lin hash\n","lang":"C","license":"bsd-3-clause","repos":"iondbproject\/iondb,iondbproject\/iondb"} {"commit":"3ded2006e60424de131b6ef246268ebe86b4299d","old_file":"test\/CodeGen\/vector.c","new_file":"test\/CodeGen\/vector.c","old_contents":"\/\/ RUN: clang-cc -emit-llvm %s -o -\ntypedef short __v4hi __attribute__ ((__vector_size__ (8)));\n\nvoid f()\n{\n __v4hi A = (__v4hi)0LL;\n}\n\n__v4hi x = {1,2,3};\n__v4hi y = {1,2,3,4};\n\ntypedef int x __attribute((vector_size(16)));\nint a() { x b; return b[2LL]; }\n","new_contents":"\/\/ RUN: clang-cc -emit-llvm %s -o -\ntypedef short __v4hi __attribute__ ((__vector_size__ (8)));\n\nvoid f()\n{\n __v4hi A = (__v4hi)0LL;\n}\n\n__v4hi x = {1,2,3};\n__v4hi y = {1,2,3,4};\n\ntypedef int vty __attribute((vector_size(16)));\nint a() { vty b; return b[2LL]; }\n","subject":"Fix silly mistake in test.","message":"Fix silly mistake in test.\n\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@67897 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"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,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,apple\/swift-clang"} {"commit":"33d12078e7e5a82f790781845d043d70511642dd","old_file":"test\/cunit\/test_log.c","new_file":"test\/cunit\/test_log.c","old_contents":"","new_contents":"\/*********************************************************************\n *\n * test_log.c: Riak C Unit Testing logger\n *\n * Copyright (c) 2007-2014 Basho Technologies, Inc. All Rights Reserved.\n *\n * This file is provided to you under the Apache License,\n * Version 2.0 (the \"License\"); you may not use this file\n * except in compliance with the License. You may obtain\n * 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\n#include \n#include \n#include \n#include \n#include \n#include \"riak.h\"\n\nvoid\ntest_log(void *ptr,\n riak_log_level_t level,\n const char *file,\n riak_size_t filelen,\n const char *func,\n riak_size_t funclen,\n riak_uint32_t line,\n const char *format,\n va_list args) {\n time_t ltime;\n struct tm result;\n char stime[32];\n char output[2048];\n\n ltime = time(NULL);\n localtime_r(<ime, &result);\n strftime(stime, sizeof(stime), \"%F %X %Z\", &result);\n riak_size_t wrote = snprintf(output, sizeof(output), \"%s %s \", stime, riak_log_level_description(level));\n char *pos = output + wrote;\n wrote += vsnprintf(pos, sizeof(output)-wrote, format, args);\n if (wrote < sizeof(output)-1) {\n strcat(output, \"\\n\");\n }\n \/\/ Just spew any output to stderr\n fprintf(stderr, \"%s\", output);\n}\n","subject":"Add GET message integration test - Make unit testing write fuller test objects - Make the number of buckets\/keys in dummy object configurable - Add several helper functions like comparing binaries and objects - Improve error reporting in testing async callbacks","message":"Add GET message integration test\n- Make unit testing write fuller test objects\n- Make the number of buckets\/keys in dummy object configurable\n- Add several helper functions like comparing binaries and objects\n- Improve error reporting in testing async callbacks\n","lang":"C","license":"apache-2.0","repos":"basho-labs\/riak-c-client,basho-labs\/riak-c-client,basho-labs\/riak-c-client,basho-labs\/riak-c-client"} {"commit":"ddbf27ab3cd541c7bff8781cca68e44acabf1285","old_file":"UnitTests\/Source\/GITTestHelper.h","new_file":"UnitTests\/Source\/GITTestHelper.h","old_contents":"#import \n#import \n\/\/#import \n\n#define COCOAGIT_REPO @\".\"\n#define TEST_RESOURCES_PATH @\"..\/..\/UnitTests\/Resources\/\"\n\n#define DOT_GIT TEST_RESOURCES_PATH @\"dot_git\/\"\n#define DELTA_REF_PACK TEST_RESOURCES_PATH @\"packs\/cg-0.2.5-deltaref-be5a15ac583f7ed1e431f03bd444bbde6511e57c.pack\"\n#define DELTA_OFS_PACK TEST_RESOURCES_PATH @\"packs\/cg-0.2.5-deltaofs-be5a15ac583f7ed1e431f03bd444bbde6511e57c.pack\"\n\n@interface GITTestHelper : NSObject\n{}\n+ (NSString *) createTempRepoWithDotGitDir:(NSString *)clonePath;\n+ (BOOL) removeTempRepoAtPath:(NSString *)aPath;\n+ (NSDictionary *)packedObjectInfo;\n@end","new_contents":"#import \n#import \n\/\/#import \n\n#define COCOAGIT_REPO @\".\"\n#define TEST_RESOURCES_PATH @\"..\/..\/UnitTests\/Resources\/\"\n#define TEST_FIXTURES_PATH TEST_RESOURCES_PATH @\"fixtures\/\"\n\n#define DOT_GIT TEST_RESOURCES_PATH @\"dot_git\/\"\n#define DELTA_REF_PACK TEST_RESOURCES_PATH @\"packs\/cg-0.2.5-deltaref-be5a15ac583f7ed1e431f03bd444bbde6511e57c.pack\"\n#define DELTA_OFS_PACK TEST_RESOURCES_PATH @\"packs\/cg-0.2.5-deltaofs-be5a15ac583f7ed1e431f03bd444bbde6511e57c.pack\"\n\n@interface GITTestHelper : NSObject\n{}\n+ (NSString *) createTempRepoWithDotGitDir:(NSString *)clonePath;\n+ (BOOL) removeTempRepoAtPath:(NSString *)aPath;\n+ (NSDictionary *)packedObjectInfo;\n@end","subject":"Add 'fixtures' path definition to test helper.","message":"Add 'fixtures' path definition to test helper.\n","lang":"C","license":"mit","repos":"geoffgarside\/cocoagit,geoffgarside\/cocoagit"} {"commit":"0592fa31377e77d62caa48ef1fb41896d6eea791","old_file":"sketches\/utils\/blinkm_write_script\/light_script_aim.h","new_file":"sketches\/utils\/blinkm_write_script\/light_script_aim.h","old_contents":"","new_contents":"\/**\n * \"Aim lights\" light script\n *\n * Turn on all the lights for 30 seconds so they can be aimed\n *\/\n\n\/\/ Copied from todbot \n\/\/ format of light script lines: duration, command, arg1,arg2,arg3\ntypedef struct _blinkm_script_line {\n uint8_t dur;\n uint8_t cmd[4]; \/\/ cmd,arg1,arg2,arg3\n} blinkm_script_line;\n\n\/\/ start dark, lighten to mid-day, then slowly fade away\nblinkm_script_line script_lines[] = {\n { 1, {'f', 1,00,00}}, \/\/ fade speed (slow)\n { 1, {'t', 1,0,0}}, \/\/ time adjust (slower)\n { 300, {'c', 0xff,0xff,0xff}}, \/\/ stay bright for mid-day\n { 100, {'c', 0x00,0x00,0x00}}, \/\/ fade to black\n};\n\n","subject":"Set one LED group on for light aiming","message":"Set one LED group on for light aiming\n","lang":"C","license":"mit","repos":"wmadill\/grant-lighting,wmadill\/grant-lighting"} {"commit":"d1947ce509d745f32db6b7fecc03dc9c778b9350","old_file":"SecurityPkg\/Include\/Guid\/TcgPhysicalPresenceStorageData.h","new_file":"SecurityPkg\/Include\/Guid\/TcgPhysicalPresenceStorageData.h","old_contents":"","new_contents":"\/** @file\r\n Define the variable data structures used for physical presence storage data.\r\n\r\nCopyright (c) 2016, Intel Corporation. All rights reserved.
\r\nThis program and the accompanying materials\r\nare licensed and made available under the terms and conditions of the BSD License\r\nwhich accompanies this distribution. The full text of the license may be found at\r\nhttp:\/\/opensource.org\/licenses\/bsd-license.php\r\n\r\nTHE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN \"AS IS\" BASIS,\r\nWITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r\n\r\n**\/\r\n\r\n#ifndef __TCG_PHYSICAL_PRESENCE_STORAGE_DATA_GUID_H__\r\n#define __TCG_PHYSICAL_PRESENCE_STORAGE_DATA_GUID_H__\r\n\r\n#define EFI_TCG_PHYSICAL_PRESENCE_STORAGE_DATA_GUID \\\r\n { \\\r\n 0x2EBE3E34, 0xB3CD, 0x471A, { 0xBF, 0x87, 0xB3, 0xC6, 0x6E, 0xE0, 0x74, 0x9A} \\\r\n }\r\n\r\n\/\/\r\n\/\/ This variable is used to save TCG2 Management Flags and corresponding operations.\r\n\/\/ It should be protected from malicious software (e.g. Set it as read-only variable). \r\n\/\/\r\n#define TCG_PHYSICAL_PRESENCE_STORAGE_FLAGS_VARIABLE L\"TcgPhysicalPresenceStorageFlags\"\r\ntypedef struct {\r\n UINT32 PPFlags;\r\n} EFI_TCG_PHYSICAL_PRESENCE_STORAGE_FLAGS;\r\n\r\nextern EFI_GUID gEfiTcgPhysicalPresenceStorageGuid;\r\n\r\n#endif\r\n\r\n","subject":"Add definition for Physical Presence storage flag.","message":"SecurityPkg: Add definition for Physical Presence storage flag.\n\nReviewed-by: Jiewen Yao <364a90bfebd1f362ebb7b48e4bf8ec010adef203@intel.com>\nReviewed-by: Chao Zhang \nContributed-under: TianoCore Contribution Agreement 1.0\nSigned-off-by: Eric Dong \n","lang":"C","license":"bsd-2-clause","repos":"MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2"} {"commit":"285a6f65380d98a239a952dece7d2cc60d694dcb","old_file":"A\/02\/15\/task2.c","new_file":"A\/02\/15\/task2.c","old_contents":"#include \n#include \n\nchar* find(char *haystack, char needle);\n\nint main(){\n\tchar input[401]={'\\0'}, symbol, *result;\n\t\t\n\tfgets(input, 401, stdin);\n\tsymbol=getchar();\n\t\n\tresult=find(input, symbol);\n\n\tif(result!=NULL){\n\tprintf(\"%ld\", result - input);\n\t}\n\telse{\n\t\tprintf(\"-1\");\n\t}\n\t\n\treturn 0;\n\t\n}\n\nchar* find(char *haystack, char needle){\n\tint i;\n\tchar *result=NULL;\n\tfor(i=0; i<400 && haystack[i]!='\\0'; i++){\n\t\tif(haystack[i]==needle){\n\t \t\tresult=&haystack[i];\n \t\t\tbreak;\n \t}\n\t}\n\treturn result;\n","new_contents":"#include \n#include \n\nchar* find(char *haystack, char needle);\n\nint main(){\n\tchar input[401]={'\\0'}, symbol, *result;\n\t\t\n\tfgets(input, 401, stdin);\n\tsymbol=getchar();\n\t\n\tresult=find(input, symbol);\n\n\tif(result!=NULL){\n\tprintf(\"%d\", (int)(result - input));\n\t}\n\telse{\n\t\tprintf(\"-1\");\n\t}\n\t\n\treturn 0;\n\t\n}\n\nchar* find(char *haystack, char needle){\n\tint i;\n\tchar *result=NULL;\n\tfor(i=0; i<400 && haystack[i]!='\\0'; i++){\n\t\tif(haystack[i]==needle){\n\t \t\tresult=&haystack[i];\n \t\t\tbreak;\n \t}\n\t}\n\treturn result;\n}\n","subject":"Add closing bracket to open function in task 02 homework 02","message":"Add closing bracket to open function in task 02 homework 02\n","lang":"C","license":"mit","repos":"elsys\/po-homework"} {"commit":"884ccfb98a4cf5c1f12fb5b71271a238379e1d96","old_file":"examples\/src\/example_reduce.c","new_file":"examples\/src\/example_reduce.c","old_contents":"\/*\n * example2.c\n *\n * Created on: 3 May 2016\n * Author: nick\n *\/\n\n#include \"ndm.h\"\n#include \n#include \n\nvoid recvFunction(void*, NDM_Metadata);\n\nint main(int argc, char* argv[]) {\n int provided;\n MPI_Init_thread(&argc, &argv, MPI_THREAD_MULTIPLE, &provided);\n ndmInit();\n\n char uuid[10];\n int data = 10;\n ndmReduce(&data, 1, NDM_INT, NDM_SUM, recvFunction, 0, NDM_GLOBAL_GROUP, \"a\");\n ndmGroupRank(NDM_GLOBAL_GROUP, &data);\n ndmAllReduce(&data, 1, NDM_INT, NDM_MAX, recvFunction, NDM_GLOBAL_GROUP, \"maxrank\");\n ndmFinalise();\n MPI_Finalize();\n return 0;\n}\n\nvoid recvFunction(void* buffer, NDM_Metadata metaData) {\n printf(\"Got reduction data '%d' with uuid %s on pid %d\\n\", *((int*)buffer), metaData.unique_id, metaData.my_rank);\n}\n","new_contents":"\/*\n * example2.c\n *\n * Created on: 3 May 2016\n * Author: nick\n *\/\n\n#include \"ndm.h\"\n#include \n#include \n\nvoid recvFunction(void*, NDM_Metadata);\nvoid additiveRecvFunction(void*, NDM_Metadata);\n\nint main(int argc, char* argv[]) {\n int provided;\n MPI_Init_thread(&argc, &argv, MPI_THREAD_MULTIPLE, &provided);\n ndmInit();\n\n char uuid[10];\n int data = 10;\n ndmReduce(&data, 1, NDM_INT, NDM_SUM, recvFunction, 0, NDM_GLOBAL_GROUP, \"a\");\n ndmGroupRank(NDM_GLOBAL_GROUP, &data);\n ndmAllReduce(&data, 1, NDM_INT, NDM_MAX, recvFunction, NDM_GLOBAL_GROUP, \"maxrank\");\n data = 5;\n ndmReduceAdditive(&data, 1, NDM_INT, 12, 1, 0, NDM_SUM, additiveRecvFunction, 0, NDM_GLOBAL_GROUP, \"additive\");\n ndmReduceAdditive(&data, 1, NDM_INT, 12, 1, 0, NDM_SUM, additiveRecvFunction, 0, NDM_GLOBAL_GROUP, \"additive\");\n ndmFinalise();\n MPI_Finalize();\n return 0;\n}\n\nvoid recvFunction(void* buffer, NDM_Metadata metaData) {\n printf(\"Got reduction data '%d' with uuid %s on pid %d\\n\", *((int*)buffer), metaData.unique_id, metaData.my_rank);\n}\n\nvoid additiveRecvFunction(void* buffer, NDM_Metadata metaData) { printf(\"Got additive data '%d'\\n\", *((int*)buffer)); }\n","subject":"Reduce example uses additive calls","message":"Reduce example uses additive calls\n","lang":"C","license":"mit","repos":"mesham\/ndm,mesham\/ndm"} {"commit":"10491403f35d32d63537fb6409fb6282d9e480d3","old_file":"src\/main\/cpp\/JniHelpersCommon.h","new_file":"src\/main\/cpp\/JniHelpersCommon.h","old_contents":"#ifndef __JniHelpersCommon_h__\n#define __JniHelpersCommon_h__\n\n\/\/ Disable some annoying compiler warnings\n#if WIN32\n#pragma warning(disable: 4996) \/\/ \"Security\" warnings for vsnprintf\n#endif\n\n#if WIN32\n#define EXPORT __declspec(dllexport)\n#else\n#define EXPORT\n#endif\n\n#include \n\n#define kTypeInt \"I\"\n#define kTypeLong \"J\"\n#define kTypeFloat \"F\"\n#define kTypeDouble \"D\"\n#define kTypeBool \"Z\"\n#define kTypeByte \"B\"\n#define kTypeVoid \"V\"\n\n\/\/ Common Java classes\n#define kTypeJavaClass(x) \"Ljava\/lang\/\" #x \";\"\n#define kTypeJavaException \"L\/java\/lang\/Exception\"\n#define kTypeJavaString \"Ljava\/lang\/String\"\n\n\/\/ Array builder macro\n#define kTypeArray(x) \"[\" x\n\n#endif \/\/ __JniHelpersCommon_h__\n","new_contents":"#ifndef __JniHelpersCommon_h__\n#define __JniHelpersCommon_h__\n\n\/\/ Disable some annoying compiler warnings\n#if WIN32\n#pragma warning(disable: 4996) \/\/ \"Security\" warnings for vsnprintf\n#endif\n\n#if WIN32\n#define EXPORT __declspec(dllexport)\n#else\n#define EXPORT\n#endif\n\n#include \n\n#define kTypeInt \"I\"\n#define kTypeLong \"J\"\n#define kTypeFloat \"F\"\n#define kTypeDouble \"D\"\n#define kTypeBool \"Z\"\n#define kTypeByte \"B\"\n#define kTypeVoid \"V\"\n\n\/\/ Common Java classes\n#define kTypeJavaClass(x) \"Ljava\/lang\/\" #x \";\"\n#define kTypeJavaException \"Ljava\/lang\/Exception;\"\n#define kTypeJavaString \"Ljava\/lang\/String;\"\n\n\/\/ Array builder macro\n#define kTypeArray(x) \"[\" x\n\n#endif \/\/ __JniHelpersCommon_h__\n","subject":"Fix type signatures for some java bulit-ins","message":"Fix type signatures for some java bulit-ins\n","lang":"C","license":"apache-2.0","repos":"spotify\/JniHelpers,spotify\/JniHelpers,spotify\/JniHelpers,spotify\/JniHelpers"} {"commit":"842d01a134bbd2f62308d0cfe8c1587575fbbef5","old_file":"Code\/Maveric_myCopter\/src\/config\/MAVsettings\/MAV102_conf_imu_rev4.h","new_file":"Code\/Maveric_myCopter\/src\/config\/MAVsettings\/MAV102_conf_imu_rev4.h","old_contents":"","new_contents":"\/*\n * conf_imu_rev4.h\n *\n * Created: 20\/11\/2013 22:21:49\n * Author: sfx\n *\/ \n\n\n#ifndef CONF_IMU_REV4_H_\n#define CONF_IMU_REV4_H_\n\n\n#define RAW_GYRO_X 0\n#define RAW_GYRO_Y 1\n#define RAW_GYRO_Z 2\n\n#define RAW_ACC_X 0\n#define RAW_ACC_Y 1\n#define RAW_ACC_Z 2\n\n#define RAW_COMPASS_X 2\n#define RAW_COMPASS_Y 0\n#define RAW_COMPASS_Z 1\n\n\/\/ from datasheet: FS 2000dps --> 70 mdps\/digit\n\/\/ scale = 1\/(0.07 * PI \/ 180.0) = 818.5111\n#define RAW_GYRO_X_SCALE 818.5111\n#define RAW_GYRO_Y_SCALE 818.5111\n#define RAW_GYRO_Z_SCALE 818.5111\n\n#define GYRO_AXIS_X 1.0\n#define GYRO_AXIS_Y -1.0\n#define GYRO_AXIS_Z -1.0\n\n#define RAW_ACC_X_SCALE 4033.35\n#define RAW_ACC_Y_SCALE 3997.92\n#define RAW_ACC_Z_SCALE 4081.49\n\n#define ACC_BIAIS_X -123.22\n#define ACC_BIAIS_Y 143.87\n#define ACC_BIAIS_Z 207.7505405\n\n#define ACC_AXIS_X 1.0\n#define ACC_AXIS_Y -1.0\n#define ACC_AXIS_Z -1.0\n\n#define RAW_MAG_X_SCALE 619.57\n#define RAW_MAG_Y_SCALE 638.39\n#define RAW_MAG_Z_SCALE 563.41\n\n#define MAG_BIAIS_X -121.169232\n#define MAG_BIAIS_Y -189.6727777\n#define MAG_BIAIS_Z -162.58148486\n\n#define MAG_AXIS_X -1.0\n#define MAG_AXIS_Y -1.0\n#define MAG_AXIS_Z -1.0\n\n#endif \/* CONF_IMU_REV4_H_ *\/","subject":"Add calibration file for board J2 (MAV102)","message":"Add calibration file for board J2 (MAV102)\n","lang":"C","license":"bsd-3-clause","repos":"lis-epfl\/MAVRIC_Library,lis-epfl\/MAVRIC_Library,lis-epfl\/MAVRIC_Library,gburri\/MAVRIC_Library,gburri\/MAVRIC_Library,gburri\/MAVRIC_Library"} {"commit":"27c11cd3fd8666e659e1eaad071e6a825216b0f1","old_file":"include\/synaptics.h","new_file":"include\/synaptics.h","old_contents":"","new_contents":"\/*\n * Permission to use, copy, modify, distribute, and sell this software\n * and its documentation for any purpose is hereby granted without\n * fee, provided that the above copyright notice appear in all copies\n * and that both that copyright notice and this permission notice\n * appear in supporting documentation, and that the name of Red Hat\n * not be used in advertising or publicity pertaining to distribution\n * of the software without specific, written prior permission. Red\n * Hat makes no representations about the suitability of this software\n * for any purpose. It is provided \"as is\" without express or implied\n * warranty.\n *\n * THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,\n * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN\n * NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR\n * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\n * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,\n * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN\n * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\/\n\n#ifndef\t_SYNAPTICS_H_\n#define _SYNAPTICS_H_\n\n#include \n\n\/******************************************************************************\n *\t\tPublic definitions.\n *\t\t\tUsed by driver and the shared memory configurator\n *****************************************************************************\/\n\n#define SHM_SYNAPTICS 23947\ntypedef struct _SynapticsSHM {\n int version; \/* Driver version *\/\n\n \/* Current device state *\/\n int x, y; \/* actual x, y coordinates *\/\n int z; \/* pressure value *\/\n int numFingers; \/* number of fingers *\/\n int fingerWidth; \/* finger width value *\/\n int left, right, up, down; \/* left\/right\/up\/down buttons *\/\n Bool multi[8];\n Bool middle;\n} SynapticsSHM;\n\n\/*\n * Minimum and maximum values for scroll_button_repeat\n *\/\n#define SBR_MIN 10\n#define SBR_MAX 1000\n\n#endif \/* _SYNAPTICS_H_ *\/\n","subject":"Put SynapticsSHM back into the driver to be able to use synclient -m once again","message":"Put SynapticsSHM back into the driver to be able to use synclient -m once again\n","lang":"C","license":"mit","repos":"felipejfc\/xserver-xorg-input-synaptics,sencer\/synaptics,felipejfc\/xserver-xorg-input-synaptics,felipejfc\/xserver-xorg-input-synaptics,sencer\/synaptics"} {"commit":"9e317ee873422d95bee44059585ea107f12d76ab","old_file":"alura\/c\/forca.c","new_file":"alura\/c\/forca.c","old_contents":"#include \n#include \n\nvoid abertura() {\n printf(\"*******************\\n\");\n printf(\"* Jogo de Forca *\\n\");\n printf(\"*******************\\n\\n\");\n}\n\nint main() {\n char palavrasecreta[20];\n\n sprintf(palavrasecreta, \"MELANCIA\");\n\n int acertou = 0;\n int enforcou = 0;\n\n char chutes[26];\n int tentativas = 0;\n\n abertura();\n\n do {\n\n for(int i = 0; i < strlen(palavrasecreta); i++) {\n\n int achou = 0;\n\n for(int j = 0; j < tentativas; j++) {\n if(chutes[j] == palavrasecreta[i]) {\n achou = 1;\n break;\n }\n }\n\n if(achou) {\n printf(\"%c \", palavrasecreta[i]);\n } else {\n printf(\"_ \");\n }\n }\n\n printf(\"\\n\");\n\n char chute;\n printf(\"Qual letra? \");\n scanf(\" %c\", &chute);\n\n chutes[tentativas] = chute;\n tentativas++;\n\n } while(!acertou && !enforcou);\n\n}\n","new_contents":"#include \n#include \n\nvoid abertura() {\n printf(\"*******************\\n\");\n printf(\"* Jogo de Forca *\\n\");\n printf(\"*******************\\n\\n\");\n}\n\nvoid chuta() {\n char chute;\n printf(\"Qual letra? \");\n scanf(\" %c\", &chute);\n\n chutes[tentativas] = chute;\n tentativas++;\n}\n\nint main() {\n char palavrasecreta[20];\n\n sprintf(palavrasecreta, \"MELANCIA\");\n\n int acertou = 0;\n int enforcou = 0;\n\n char chutes[26];\n int tentativas = 0;\n\n abertura();\n\n do {\n\n \/\/ imprime a palavra secreta\n for(int i = 0; i < strlen(palavrasecreta); i++) {\n\n int achou = 0;\n\n \/\/ a letra ja foi chutada?\n for(int j = 0; j < tentativas; j++) {\n if(chutes[j] == palavrasecreta[i]) {\n achou = 1;\n break;\n }\n }\n\n if(achou) {\n printf(\"%c \", palavrasecreta[i]);\n } else {\n printf(\"_ \");\n }\n }\n\n printf(\"\\n\");\n\n chuta();\n\n } while(!acertou && !enforcou);\n\n}\n","subject":"Update files, Alura, Introdução a C - Parte 2, Aula 4.2","message":"Update files, Alura, Introdução a C - Parte 2, Aula 4.2\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":"bf666ed43d3e13c4234487585589f82370608d8e","old_file":"compat.h","new_file":"compat.h","old_contents":"#ifndef COMPAT_H\n#define COMPAT_H\n\n#ifdef HAVE_CONFIG_H\n#include \"config.h\"\n#endif\n\n#ifndef __dead\n#define __dead\n#endif\n\n#ifndef HAVE_REALLOCARRAY\n\nvoid\t*reallocarray(void *, size_t, size_t);\n\n#endif \/* !HAVE_REALLOCARRAY *\/\n\n#endif \/* COMPAT_H *\/\n","new_contents":"#ifndef COMPAT_H\n#define COMPAT_H\n\n#ifdef HAVE_CONFIG_H\n#include \"config.h\"\n#endif\n\n#ifdef __FreeBSD__\n#define __dead __dead2\n#endif \/* __FreeBSD__ *\/\n\n#if defined(__linux__) || defined(__CYGWIN__)\n#ifndef __dead\n#ifdef __GNUC__\n#define __dead\t\t__attribute__((__noreturn__))\n#else\n#define __dead\n#endif\n#endif\n#endif \/* __linux__ || __CYGWIN__ *\/\n\n#ifndef HAVE_REALLOCARRAY\n\nvoid\t*reallocarray(void *, size_t, size_t);\n\n#endif \/* !HAVE_REALLOCARRAY *\/\n\n#endif \/* COMPAT_H *\/\n","subject":"Revert \"Only define __dead if it's missing\"","message":"Revert \"Only define __dead if it's missing\"\n\nThis reverts commit 7f5694ac1cf3a68b462a9f22e03a12a719249ee5.\n\nPartial fix to #202.\n","lang":"C","license":"mit","repos":"DBOTW\/pick,thoughtbot\/pick,thoughtbot\/pick,DBOTW\/pick,DBOTW\/pick,calleerlandsson\/pick,calleerlandsson\/pick,thoughtbot\/pick,thoughtbot\/pick,calleerlandsson\/pick"} {"commit":"3c593c947c55984815838c6ad7dce3b66cced4a3","old_file":"test\/CFrontend\/2008-02-11-AnnotateBuiltin.c","new_file":"test\/CFrontend\/2008-02-11-AnnotateBuiltin.c","old_contents":"","new_contents":"\/\/ RUN: %llvmgcc %s -S -o - | llvm-as | llvm-dis | grep llvm.annotation\n\nint main() {\n int x = 0;\n return __builtin_annotation(x, \"annotate\");\n}\n\n","subject":"Test case for annotate builtin.","message":"Test case for annotate builtin.\n\n\ngit-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@46999 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,dslab-epfl\/asap,chubbymaggie\/asap,llvm-mirror\/llvm,llvm-mirror\/llvm,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,llvm-mirror\/llvm,chubbymaggie\/asap,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,llvm-mirror\/llvm,apple\/swift-llvm,apple\/swift-llvm,apple\/swift-llvm,apple\/swift-llvm,apple\/swift-llvm,dslab-epfl\/asap,chubbymaggie\/asap,GPUOpen-Drivers\/llvm,chubbymaggie\/asap,apple\/swift-llvm,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,chubbymaggie\/asap,apple\/swift-llvm,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,llvm-mirror\/llvm,dslab-epfl\/asap,dslab-epfl\/asap,apple\/swift-llvm,GPUOpen-Drivers\/llvm,chubbymaggie\/asap,dslab-epfl\/asap"} {"commit":"58a63187d7c783687c04349e59c72d2f3a04af42","old_file":"Smartling.i18n\/SmartlingLib.h","new_file":"Smartling.i18n\/SmartlingLib.h","old_contents":"\/\/ Copyright 2015 Smartling, Inc.\n\/\/ Licensed under the Apache License, Version 2.0 (the \"License\");\n\/\/ you may not use this work 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\/\/ SmartlingLib.h\n\/\/ SmartlingLib\n\/\/\n\/\/ Created by Pavel Ivashkov on 2015-05-15.\n\/\/\n\n#import \n\n\/\/! Project version number for SmartlingLib.\nFOUNDATION_EXPORT double SmartlingLibVersionNumber;\n\n\/\/! Project version string for SmartlingLib.\nFOUNDATION_EXPORT const unsigned char SmartlingLibVersionString[];\n\n\/\/ In this header, you should import all the public headers of your framework using statements like #import \n\n\n#import \n","new_contents":"\/\/ Copyright 2015 Smartling, Inc.\n\/\/ Licensed under the Apache License, Version 2.0 (the \"License\");\n\/\/ you may not use this work 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\/\/ SmartlingLib.h\n\/\/ SmartlingLib\n\/\/\n\/\/ Created by Pavel Ivashkov on 2015-05-15.\n\/\/\n\n#import \n\n\/\/! Project version number for SmartlingLib.\nFOUNDATION_EXPORT double SmartlingLibVersionNumber;\n\n\/\/! Project version string for SmartlingLib.\nFOUNDATION_EXPORT const unsigned char SmartlingLibVersionString[];\n\n\/\/ In this header, you should import all the public headers of your framework using statements like #import \n\n\n#import \"SLLocalization.h\"\n","subject":"Fix import to be able to use Smartling.i18n as dynamic framework via cocoapods","message":"Fix import to be able to use Smartling.i18n as dynamic framework via cocoapods\n","lang":"C","license":"apache-2.0","repos":"Smartling\/ios-i18n,belkevich\/ios-i18n,Smartling\/ios-i18n,belkevich\/ios-i18n"} {"commit":"22feab4c47ae7b5a6f41cbcdf83a6649ae62b0a1","old_file":"cpp\/Spellable.h","new_file":"cpp\/Spellable.h","old_contents":"\/\/ Spellable.h\n#ifndef SPELLABLE_H\n#define SPELLABLE_H\n\n#include \n\ntemplate \nclass Spellable {\n\tT* value;\npublic:\n\tSpellable() {};\n\tSpellable(T* value): value(value) {}\n\tSpellable(T v) { value = new T(v); }\n\t\n\tvoid SetValue(T* v) { value = v; }\n\tvoid SetValue(T v) { value = new T(v); }\n\n\tT GetValue() const { return *value; }\n\t\n\tstd::string spell();\n\t\n\t\/\/ Let's do arithmetic!\n\tSpellable & operator=(const T &rhs) {\n\t\tSetValue(rhs);\n\t}\n\t\n\tSpellable & operator+=(const T &rhs) {\n\t\t*value += rhs;\n\t\treturn *this;\n\t}\n\t\n\tbool operator==(const T &other) const {\n\t\treturn *value == other;\n\t}\n\t\n\tbool operator==(const std::string &other) const {\n\t\treturn spell() == other;\n\t}\n};\n\n\/\/ http:\/\/www.codeproject.com\/Articles\/48575\/How-to-define-a-template-class-in-a-h-file-and-imp\n\/\/ The linker gets confused if we don't include the implementation here.\n#include \"Spellable.cpp\"\n\n\n#endif \/\/ Spellable.h\n","new_contents":"\/\/ Spellable.h\n#ifndef SPELLABLE_H\n#define SPELLABLE_H\n\n#include \n\ntemplate \nclass Spellable {\n\tT* value;\npublic:\t\n\t\/\/ TODO: new values are never deleted!\n\tSpellable() { value = NULL; };\n\tSpellable(T* value): value(value) {}\n\tSpellable(T v) { value = new T(v); }\n\t\t\t\n\tvoid SetValue(T* v) { value = v; }\n\tvoid SetValue(T v) { value = new T(v); }\n\n\tT GetValue() const { return *value; }\n\n\tstd::string spell();\n\t\n\t\/\/ Let's do arithmetic!\n\tSpellable & operator=(const T &rhs) {\n\t\tSetValue(rhs);\n\t}\n\t\n\tSpellable & operator+=(const T &rhs) {\n \t*value += rhs;\n\t\treturn *this;\n\t}\n\t\n\tbool operator==(const T &other) const {\n\t\treturn *value == other;\n\t}\n\t\n\tbool operator==(const std::string &other) const {\n\t\treturn spell() == other;\n\t}\nprotected:\n\tstd::string spellFraction();\n};\n\n\/\/ http:\/\/www.codeproject.com\/Articles\/48575\/How-to-define-a-template-class-in-a-h-file-and-imp\n\/\/ The linker gets confused if we don't include the implementation here.\n#include \"Spellable.cpp\"\n\n\n#endif \/\/ Spellable.h\n","subject":"Handle precision of fractions better","message":"Handle precision of fractions better","lang":"C","license":"cc0-1.0","repos":"dancxjo\/spell-dollars,dancxjo\/spell-dollars,dancxjo\/spell-dollars"} {"commit":"cf1dc543f142263917468c19249d6a3e920b17b2","old_file":"src\/entropy\/win32_stats\/es_win32.h","new_file":"src\/entropy\/win32_stats\/es_win32.h","old_contents":"\/**\n* Win32 EntropySource Header File\n* (C) 1999-2008 Jack Lloyd\n*\/\n\n#ifndef BOTAN_ENTROPY_SRC_WIN32_H__\n#define BOTAN_ENTROPY_SRC_WIN32_H__\n\n#include \n\nnamespace Botan {\n\n\/**\n* Win32 Entropy Source\n*\/\nclass BOTAN_DLL Win32_EntropySource : public EntropySource\n {\n public:\n std::string name() const { return \"Win32 Statistics\"; }\n void fast_poll(byte buf[], u32bit length);\n void slow_poll(byte buf[], u32bit length);\n };\n\n}\n\n#endif\n","new_contents":"\/**\n* Win32 EntropySource Header File\n* (C) 1999-2008 Jack Lloyd\n*\/\n\n#ifndef BOTAN_ENTROPY_SRC_WIN32_H__\n#define BOTAN_ENTROPY_SRC_WIN32_H__\n\n#include \n\nnamespace Botan {\n\n\/**\n* Win32 Entropy Source\n*\/\nclass BOTAN_DLL Win32_EntropySource : public EntropySource\n {\n public:\n std::string name() const { return \"Win32 Statistics\"; }\n\n u32bit fast_poll(byte buf[], u32bit length);\n u32bit slow_poll(byte buf[], u32bit length);\n };\n\n}\n\n#endif\n","subject":"Fix return types in declaration","message":"Fix return types in declaration\n","lang":"C","license":"bsd-2-clause","repos":"webmaster128\/botan,randombit\/botan,randombit\/botan,Rohde-Schwarz-Cybersecurity\/botan,webmaster128\/botan,Rohde-Schwarz-Cybersecurity\/botan,randombit\/botan,Rohde-Schwarz-Cybersecurity\/botan,Rohde-Schwarz-Cybersecurity\/botan,randombit\/botan,webmaster128\/botan,Rohde-Schwarz-Cybersecurity\/botan,randombit\/botan,Rohde-Schwarz-Cybersecurity\/botan,webmaster128\/botan,webmaster128\/botan"} {"commit":"303c1b421822d50d2f7313ae538e2dc33f096d33","old_file":"deps\/include\/cgen_intrinsics.h","new_file":"deps\/include\/cgen_intrinsics.h","old_contents":"\/*\nCopyright (c) 2015, Intel Corporation\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without \nmodification, are permitted provided that the following conditions are met:\n- Redistributions of source code must retain the above copyright notice, \n this list of conditions and the following disclaimer.\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\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\nARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE \nLIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR \nCONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF \nSUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS \nINTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\nCONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) \nARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF \nTHE POSSIBILITY OF SUCH DAMAGE.\n *\/\n\n\n\/\/ count trailing zeros with llvm semantics\nint cgen_cttz_int(int n)\n{\n if(n==0) return sizeof(int);\n return __builtin_ctz(n);\n}\n\nint cgen_flipsign_int(int64_t x, int64_t y)\n{\n return (y >= 0 ? x : -x);\n}\n","new_contents":"\/*\nCopyright (c) 2015, Intel Corporation\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without \nmodification, are permitted provided that the following conditions are met:\n- Redistributions of source code must retain the above copyright notice, \n this list of conditions and the following disclaimer.\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\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\nARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE \nLIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR \nCONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF \nSUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS \nINTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\nCONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) \nARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF \nTHE POSSIBILITY OF SUCH DAMAGE.\n *\/\n\n\n\/\/ count trailing zeros with llvm semantics\nint64_t cgen_cttz_int(int64_t n)\n{\n if(n==0) return sizeof(int64_t);\n return __builtin_ctz(n);\n}\n\nint64_t cgen_flipsign_int(int64_t x, int64_t y)\n{\n return (y >= 0 ? x : -x);\n}\n","subject":"Use int64_t for cgen intrinsics","message":"Use int64_t for cgen intrinsics\n","lang":"C","license":"bsd-2-clause","repos":"JuliaPackageMirrors\/ParallelAccelerator.jl,IntelLabs\/ParallelAccelerator.jl,malekbr\/julia-to-tiramisu"} {"commit":"057101774bb1130712d69607015dfc13df81256d","old_file":"src\/template.c","new_file":"src\/template.c","old_contents":"#include \n#include \n#include \n#include \n#include \n#include \n\noff_t get_file_size(const char *filename) {\n struct stat buffer;\n return (stat(filename, &buffer)==0 ? buffer.st_size : -1);\n}\n\nint file_is_readable(char *filename) {\n if ( access(filename, R_OK) != -1 ) {\n return 1;\n } else {\n return 0;\n }\n}\n\nint main(int argc, char *argv[]) {\n clock_t t0, t1;\n\n if (argc <= 1) {\n printf(\"Usage: %s [arguments]\\n\", argv[0]);\n return EXIT_FAILURE;\n }\n\n t0 = clock();\n printf(\"Hello World!\\n\");\n if (file_is_readable(argv[1])) {\n printf(\"Input File = '%s'\\n\", argv[1]);\n } else {\n printf(\"Input File = '%s' (file does not exist or read permissions absent)\\n\", argv[1]);\n }\n t1 = clock();\n printf(\"Time elapsed = %f (ms)\\n\", (t1-t0)*1000\/(double)CLOCKS_PER_SEC );\n return EXIT_SUCCESS;\n}\n","new_contents":"#include \n#include \n#include \n#include \n#include \n#include \n\noff_t get_file_size(const char *filename) {\n struct stat buffer;\n return (stat(filename, &buffer)==0 ? buffer.st_size : -1);\n}\n\nint file_is_readable(char *filename) {\n if ( access(filename, R_OK) != -1 ) {\n return 1;\n } else {\n return 0;\n }\n}\n\nint main(int argc, char *argv[]) {\n clock_t t0, t1;\n\n if (argc <= 1) {\n printf(\"Usage: %s [arguments]\\n\", argv[0]);\n return EXIT_FAILURE;\n }\n\n t0 = clock();\n printf(\"Hello World!\\n\");\n if (file_is_readable(argv[1])) {\n printf(\"Input File = '%s'\\n\", argv[1]);\n printf(\"File size is %lld\\n\", get_file_size(argv[1]));\n } else {\n printf(\"Input File = '%s' (file does not exist or read permissions absent)\\n\", argv[1]);\n }\n t1 = clock();\n printf(\"Time elapsed = %f (ms)\\n\", (t1-t0)*1000\/(double)CLOCKS_PER_SEC );\n return EXIT_SUCCESS;\n}\n","subject":"Add printing of file size","message":"Add printing of file size\n","lang":"C","license":"apache-2.0","repos":"nathanielng\/code-templates,nathanielng\/code-templates,nathanielng\/code-templates"} {"commit":"5146b6a58c922e99626f9c8a9f8bd7d042ab7536","old_file":"hist\/inc\/TH1I.h","new_file":"hist\/inc\/TH1I.h","old_contents":"\/\/ @(#)root\/hist:$Name: $:$Id: TH1I.h,v 1.1 2002\/05\/18 11:02:49 brun Exp $\n\/\/ Author: Rene Brun 08\/09\/2003\n\n\/*************************************************************************\n * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *\n * All rights reserved. *\n * *\n * For the licensing terms see $ROOTSYS\/LICENSE. *\n * For the list of contributors see $ROOTSYS\/README\/CREDITS. *\n *************************************************************************\/\n\n#ifndef ROOT_TH1I\n#define ROOT_TH1I\n\n\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\/\/ \/\/\n\/\/ TH1I \/\/\n\/\/ \/\/\n\/\/ 1-Dim histogram with a 4 bits integer per channel \/\/\n\/\/ \/\/\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n#ifndef ROOT_TH1\n#include \"TH1.h\"\n#endif\n\n#endif\n","new_contents":"\/\/ @(#)root\/hist:$Name: $:$Id: TH1I.h,v 1.1 2003\/09\/08 12:50:23 brun Exp $\n\/\/ Author: Rene Brun 08\/09\/2003\n\n\/*************************************************************************\n * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *\n * All rights reserved. *\n * *\n * For the licensing terms see $ROOTSYS\/LICENSE. *\n * For the list of contributors see $ROOTSYS\/README\/CREDITS. *\n *************************************************************************\/\n\n#ifndef ROOT_TH1I\n#define ROOT_TH1I\n\n\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\/\/ \/\/\n\/\/ TH1I \/\/\n\/\/ \/\/\n\/\/ 1-Dim histogram with a 32 bits integer per channel \/\/\n\/\/ \/\/\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n#ifndef ROOT_TH1\n#include \"TH1.h\"\n#endif\n\n#endif\n","subject":"Fix a typo (thanks to Robert Hatcher)","message":"Fix a typo (thanks to Robert Hatcher)\n\n\ngit-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@10919 27541ba8-7e3a-0410-8455-c3a389f83636\n","lang":"C","license":"lgpl-2.1","repos":"bbannier\/ROOT,dawehner\/root,dawehner\/root,dawehner\/root,bbannier\/ROOT,dawehner\/root,dawehner\/root,dawehner\/root,bbannier\/ROOT,dawehner\/root,bbannier\/ROOT,bbannier\/ROOT,bbannier\/ROOT,dawehner\/root,bbannier\/ROOT"} {"commit":"ba9bc2d01d0b260f73b1eb087afc057bb3538eb5","old_file":"MBTA-APIs\/Services\/MBTA-v2\/ServiceMBTA_sensitive.h","new_file":"MBTA-APIs\/Services\/MBTA-v2\/ServiceMBTA_sensitive.h","old_contents":"\/\/\n\/\/ ServiceMBTA_sensitive.h\n\/\/ MBTA-APIs\n\/\/\n\/\/ Created by Steve Caine on 01\/05\/115.\n\/\/ Copyright (c) 2015 Steve Caine. All rights reserved.\n\/\/\n\n\/\/ your private key to the MBTA-v2 API goes here\n\n#define key_MBTA_v2_API\t@\"\"\n\n\/\/ you should not commit any version of this file that contains the key\n\/\/ to any source-control repository that will be made public or otherwise shared","new_contents":"\/\/\n\/\/ ServiceMBTA_sensitive.h\n\/\/ MBTA-APIs\n\/\/\n\/\/ Created by Steve Caine on 01\/05\/15.\n\/\/ Copyright (c) 2015 Steve Caine. All rights reserved.\n\/\/\n\n\/\/ your private key to the MBTA-v2 API goes here\n\n#define key_MBTA_v2_API\t@\"\"\n\n\/\/ you should not commit any version of this file that contains the key\n\/\/ to any source-control repository that will be made public or otherwise shared","subject":"Fix typo in created date.","message":"Fix typo in created date.\n","lang":"C","license":"mit","repos":"SteveCaine\/MBTA-RestKit,SteveCaine\/MBTA-RestKit"} {"commit":"3249f48c79fefb59f834a02fb8c0acb816064610","old_file":"include\/shell.h","new_file":"include\/shell.h","old_contents":"#ifndef SHELL_H\n#define SHELL_H\n\n#include \n\n#define report_error() fprintf(stderr, \"[%s: %s():%d] %s\\n\", __FILE__, \\\n \t__FUNCTION__, \\\n \t__LINE__, \\\n \tstrerror(errno));\n\n#define sizeof_array(x) (sizeof(x) \/ sizeof(*x))\n\n#define DEFAULT_PROMPT \t\"$ \"\n#define DEFAULT_PATH \t\"\/bin:\/usr\/bin\/:\/sbin\/:\/usr\/local\/bin\"\n#define DEFAULT_HOME \t\"\/\"\n\ntypedef struct command_t{\n \tchar **array;\n \tunsigned int elements;\n}command_t;\n\ntypedef struct shell_t{\n\tbool running;\n\tstruct environ_t *env;\n\tpid_t shell_pid;\n\tchar *pwd;\n}shell_t;\n\nchar *copy_string(const char *str);\nunsigned int count_token(char *string, const char *token_string);\nvoid free_command(command_t *command);\ncommand_t *parse(char *line);\nint change_shell_dir(char *path);\nint execute_builtins(char **input);\nint execute_command(command_t *c);\n\n#endif\n","new_contents":"#ifndef SHELL_H\n#define SHELL_H\n\n#include \n\n#define report_error() fprintf(stderr, \"[%s: %s():%d] %s\\n\", __FILE__, \\\n \t__FUNCTION__, \\\n \t__LINE__, \\\n \tstrerror(errno));\n\n#define sizeof_array(x) (sizeof(x) \/ sizeof(*x))\n\ntypedef struct command_t{\n \tchar **array;\n \tunsigned int elements;\n}command_t;\n\ntypedef struct shell_t{\n\tbool running;\n\tstruct environ_t *env;\n\tpid_t shell_pid;\n\tchar *pwd;\n}shell_t;\n\nchar *copy_string(const char *str);\nunsigned int count_token(char *string, const char *token_string);\nvoid free_command(command_t *command);\ncommand_t *parse(char *line);\nint change_shell_dir(char *path);\nint execute_builtins(char **input);\nint execute_command(command_t *c);\n\n#endif\n","subject":"Remove double definition of default env variables","message":"Remove double definition of default env variables\n","lang":"C","license":"mit","repos":"tywkeene\/Shell"} {"commit":"d95a2b00d4fb8f00865295192b524b3f047a2d96","old_file":"temperature.c","new_file":"temperature.c","old_contents":"\/\/ Copyright 2016, Jeffrey E. Bedard\n#include \"temperature.h\"\n#include \"config.h\"\n#include \"font.h\"\n#include \"util.h\"\n#include \nuint8_t get_temp(void)\n{\n\treturn xstatus_system_value(XSTATUS_SYSFILE_TEMPERATURE) \/ 1000;\n}\n\/\/ Returns x offset for next item\nuint16_t draw_temp(xcb_connection_t * xc, const uint16_t offset)\n{\n\tuint8_t sz = 4;\n\tconst struct JBDim f = xstatus_get_font_size();\n\tconst int16_t x = offset + XSTATUS_CONST_PAD;\n\t{ \/\/ buf scope\n\t\tchar buf[sz];\n\t\tsz = snprintf(buf, sz, \"%dC\", get_temp());\n\t\txcb_image_text_8(xc, sz, xstatus_get_window(xc),\n\t\t\txstatus_get_gc(xc), x, f.h, buf);\n\t}\n\treturn x + f.w * sz + XSTATUS_CONST_PAD;\n}\n","new_contents":"\/\/ Copyright 2016, Jeffrey E. Bedard\n#include \"temperature.h\"\n#include \"config.h\"\n#include \"font.h\"\n#include \"util.h\"\n#include \nstatic uint8_t get_temp(void)\n{\n\treturn xstatus_system_value(XSTATUS_SYSFILE_TEMPERATURE) \/ 1000;\n}\nstatic uint8_t format(char * restrict buf, const uint8_t sz)\n{\n\treturn snprintf(buf, sz, \"%dC\", get_temp());\n}\n\/\/ Returns x offset for next item\nuint16_t draw_temp(xcb_connection_t * xc, const uint16_t offset)\n{\n\tuint8_t sz = 4;\n\tconst struct JBDim f = xstatus_get_font_size();\n\tconst int16_t x = offset + XSTATUS_CONST_PAD;\n\t{ \/\/ buf scope\n\t\tchar buf[sz];\n\t\tsz = format(buf, sz);\n\t\txcb_image_text_8(xc, sz, xstatus_get_window(xc),\n\t\t\txstatus_get_gc(xc), x, f.h, buf);\n\t}\n\treturn x + f.w * sz + XSTATUS_CONST_PAD;\n}\n","subject":"Make get_temp() static. Split out format().","message":"Make get_temp() static. Split out format().\n","lang":"C","license":"mit","repos":"jefbed\/xstatus,jefbed\/xstatus,jefbed\/xstatus,jefbed\/xstatus"} {"commit":"2d612e6f8088ddb930dc26fc90e1ba2e3dd0284b","old_file":"test2\/vla\/standard_nonconst.c","new_file":"test2\/vla\/standard_nonconst.c","old_contents":"\/\/ RUN: %ocheck 1 '-DNULL=(void *)0'\n\/\/ RUN: %ocheck 0 '-DNULL=0'\n\nint null_is_ptr_type()\n{\n\tchar s[1][1+(int)NULL];\n\tint i = 0;\n\tsizeof s[i++];\n\treturn i;\n}\n\nmain()\n{\n\treturn null_is_ptr_type();\n}\n","new_contents":"\/\/ RUN: %ocheck 1 %s '-DNULL=(void *)0'\n\/\/ RUN: %ocheck 0 %s '-DNULL=0'\n\nint null_is_ptr_type()\n{\n\tchar s[1][1+(int)NULL];\n\tint i = 0;\n\tsizeof s[i++];\n\treturn i;\n}\n\nmain()\n{\n\treturn null_is_ptr_type();\n}\n","subject":"Fix standard-nonconst vla test commands","message":"Fix standard-nonconst vla test commands\n","lang":"C","license":"mit","repos":"bobrippling\/ucc-c-compiler,bobrippling\/ucc-c-compiler,bobrippling\/ucc-c-compiler"} {"commit":"0b08a3698e0cc1a26d7a85238c5035ceeb564e3a","old_file":"src\/keyimpl.h","new_file":"src\/keyimpl.h","old_contents":"#pragma once\n\n#include \"jwtxx\/jwt.h\"\n\n#include \n\nnamespace JWTXX\n{\n\nstruct Key::Impl\n{\n virtual ~Impl() {}\n virtual std::string sign(const void* data, size_t size) const = 0;\n virtual bool verify(const void* data, size_t size, const std::string& signature) const = 0;\n};\n\n}\n","new_contents":"#pragma once\n\n#include \"jwtxx\/jwt.h\"\n\n#include \n\nnamespace JWTXX\n{\n\nstruct Key::Impl\n{\n \/\/ Need this for polymorphic behavior.\n virtual ~Impl() = default;\n \/\/ Need this due to the Rule of Five.\n Impl() = default;\n Impl(const Impl&) = delete;\n Impl& operator=(const Impl&) = delete;\n Impl(Impl&&) = default;\n Impl& operator=(Impl&&) = default;\n\n virtual std::string sign(const void* data, size_t size) const = 0;\n virtual bool verify(const void* data, size_t size, const std::string& signature) const = 0;\n};\n\n}\n","subject":"Enable move and disable copy for key implementations.","message":"Enable move and disable copy for key implementations.\n","lang":"C","license":"mit","repos":"madf\/jwtxx,madf\/jwtxx,RealImage\/jwtxx,RealImage\/jwtxx"} {"commit":"c4eb3b452e12e514b75a77d2fe3caf0f64962353","old_file":"iOS\/PlayPlan\/Profile\/ProfileViewController.h","new_file":"iOS\/PlayPlan\/Profile\/ProfileViewController.h","old_contents":"\/\/\n\/\/ ProfileViewController.h\n\/\/ PlayPlan\n\/\/\n\/\/ Created by Zeacone on 15\/11\/8.\n\/\/ Copyright © 2015年 Zeacone. All rights reserved.\n\/\/\n\n#import \n#import \"PlayPlan.h\"\n\n@interface ProfileViewController : UIViewController \n\n@end\n","new_contents":"\/\/\n\/\/ ProfileViewController.h\n\/\/ PlayPlan\n\/\/\n\/\/ Created by Zeacone on 15\/11\/8.\n\/\/ Copyright © 2015年 Zeacone. All rights reserved.\n\/\/\n\n#import \n#import \"PlayPlan.h\"\n\n@class ProfileViewController;\n\n@protocol MainDelegate \n\n- (void)dismissViewController:(MainViewController *)mainViewController;\n\n@end\n\n@interface ProfileViewController : UIViewController \n\n@end\n","subject":"Add delegate for profile view controller.","message":"Add delegate for profile view controller.\n","lang":"C","license":"mit","repos":"Zeacone\/PlayPlan,Zeacone\/PlayPlan"} {"commit":"205fdc8110e486b439b5ad280aba63f049a6b7e7","old_file":"test2\/inline\/cant.c","new_file":"test2\/inline\/cant.c","old_contents":"","new_contents":"\/\/ RUN: %check -e %s\n\n#define always_inline __attribute((always_inline))\n\nalways_inline hidden(int);\n\nvoid always_inline __attribute((noinline)) noinline(void)\n{\n}\n\nalways_inline void print(const char *fmt, ...)\n{\n}\n\nalways_inline void old(a, b)\n\tint a, b;\n{\n}\n\nalways_inline void addr(int x)\n{\n\tint *p = &x;\n\t*p = 3;\n}\n\nalways_inline void write(int x)\n{\n\tx++;\n}\n\nalways_inline void rec(int depth)\n{\n\tif(depth < 5)\n\t\trec(depth + 1); \/\/ CHECK: can't always_inline function: can't see function\n}\n\nalways_inline int should_inline()\n{\n\treturn 3;\n}\n\nmain()\n{\n\tshould_inline(); \/\/ CHECK: !\/warn|error\/\n\n\trec(0); \/\/ CHECK: !\/warn|error\/\n\n\thidden(3); \/\/ CHECK: error: can't always_inline function: can't see function\n\tnoinline(); \/\/ CHECK: error: can't always_inline noinline function\n\tprint(\"hi\", 3); \/\/ CHECK: error: can't always_inline function: variadic function\n\tprint(\"hi\"); \/\/ CHECK: error: can't always_inline function: variadic function\n\told(3, 1); \/\/ CHECK: error: can't always_inline function: unspecified argument count function\n\taddr(5); \/\/ CHECK: error: can't always_inline function: argument written or addressed\n\twrite(2); \/\/ CHECK: error: can't always_inline function: argument written or addressed\n}\n","subject":"Test inability to inline certain functions","message":"Test inability to inline certain functions\n","lang":"C","license":"mit","repos":"8l\/ucc-c-compiler,8l\/ucc-c-compiler,8l\/ucc-c-compiler,8l\/ucc-c-compiler"} {"commit":"3c48e853eb6e6e85a4429b717620cfa9a5218867","old_file":"SecurityPkg\/Library\/PlatformSecureLibNull\/PlatformSecureLibNull.c","new_file":"SecurityPkg\/Library\/PlatformSecureLibNull\/PlatformSecureLibNull.c","old_contents":"\/** @file\r\n Provides a secure platform-specific method to detect physically present user.\r\n\r\nCopyright (c) 2011 - 2012, Intel Corporation. All rights reserved.
\r\nThis program and the accompanying materials \r\nare licensed and made available under the terms and conditions of the BSD License \r\nwhich accompanies this distribution. The full text of the license may be found at \r\nhttp:\/\/opensource.org\/licenses\/bsd-license.php\r\n\r\nTHE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN \"AS IS\" BASIS, \r\nWITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r\n\r\n**\/\r\n\r\n\/**\r\n\r\n This function provides a platform-specific method to detect whether the platform\r\n is operating by a physically present user. \r\n\r\n Programmatic changing of platform security policy (such as disable Secure Boot,\r\n or switch between Standard\/Custom Secure Boot mode) MUST NOT be possible during\r\n Boot Services or after exiting EFI Boot Services. Only a physically present user\r\n is allowed to perform these operations.\r\n\r\n NOTE THAT: This function cannot depend on any EFI Variable Service since they are\r\n not available when this function is called in AuthenticateVariable driver.\r\n \r\n @retval TRUE The platform is operated by a physically present user.\r\n @retval FALSE The platform is NOT operated by a physically present user.\r\n\r\n**\/\r\nBOOLEAN\r\nEFIAPI\r\nUserPhysicalPresent (\r\n VOID\r\n )\r\n{\r\n return FALSE;\r\n}\r\n","new_contents":"\/** @file\r\n Provides a secure platform-specific method to detect physically present user.\r\n\r\nCopyright (c) 2011 - 2012, Intel Corporation. All rights reserved.
\r\nThis program and the accompanying materials \r\nare licensed and made available under the terms and conditions of the BSD License \r\nwhich accompanies this distribution. The full text of the license may be found at \r\nhttp:\/\/opensource.org\/licenses\/bsd-license.php\r\n\r\nTHE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN \"AS IS\" BASIS, \r\nWITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r\n\r\n**\/\r\n\r\n\/**\r\n\r\n This function provides a platform-specific method to detect whether the platform\r\n is operating by a physically present user. \r\n\r\n Programmatic changing of platform security policy (such as disable Secure Boot,\r\n or switch between Standard\/Custom Secure Boot mode) MUST NOT be possible during\r\n Boot Services or after exiting EFI Boot Services. Only a physically present user\r\n is allowed to perform these operations.\r\n\r\n NOTE THAT: This function cannot depend on any EFI Variable Service since they are\r\n not available when this function is called in AuthenticateVariable driver.\r\n \r\n @retval TRUE The platform is operated by a physically present user.\r\n @retval FALSE The platform is NOT operated by a physically present user.\r\n\r\n**\/\r\nBOOLEAN\r\nEFIAPI\r\nUserPhysicalPresent (\r\n VOID\r\n )\r\n{\r\n return TRUE;\r\n}\r\n","subject":"Update the default return value of UserPhysicalPresent to TRUE.","message":"Update the default return value of UserPhysicalPresent to TRUE.\n\nSigned-off-by: Fu, Siyuan \nReviewed-by: Dong, Guo \n\ngit-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@13191 6f19259b-4bc3-4df7-8a09-765794883524\n","lang":"C","license":"bsd-2-clause","repos":"MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2"} {"commit":"022915baa2aa0f7c026d22591ece0c914254b6b4","old_file":"test\/Parser\/cxx-in-c.c","new_file":"test\/Parser\/cxx-in-c.c","old_contents":"\/\/ RUN: %clang_cc1 -fsyntax-only -verify\n\n\/\/ PR9137\nvoid f0(int x) : {};\nvoid f1(int x) try {};\n","new_contents":"\/\/ RUN: %clang_cc1 -fsyntax-only -verify %s\n\n\/\/ PR9137\nvoid f0(int x) : {}; \/\/ expected-error{{expected function body after function declarator}}\nvoid f1(int x) try {}; \/\/ expected-error{{expected function body after function declarator}}\n","subject":"Fix test for previous commit","message":"Fix test for previous commit\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@124861 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,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang"} {"commit":"d3b29d4bbec8837a655dde42f2b0cdb852b2626d","old_file":"MFSideMenu\/MFSideMenuShadow.h","new_file":"MFSideMenu\/MFSideMenuShadow.h","old_contents":"\/\/\n\/\/ MFSideMenuShadow.h\n\/\/ MFSideMenuDemoSearchBar\n\/\/\n\/\/ Created by Michael Frederick on 5\/13\/13.\n\/\/ Copyright (c) 2013 Frederick Development. All rights reserved.\n\/\/\n\n#import \n\n@interface MFSideMenuShadow : NSObject\n\n@property (nonatomic, assign) BOOL enabled;\n@property (nonatomic, assign) CGFloat radius;\n@property (nonatomic, assign) CGFloat opacity;\n@property (nonatomic, strong) UIColor *color;\n@property (nonatomic, weak) UIView *shadowedView;\n\n+ (MFSideMenuShadow *)shadowWithView:(UIView *)shadowedView;\n+ (MFSideMenuShadow *)shadowWithColor:(UIColor *)color radius:(CGFloat)radius opacity:(CGFloat)opacity;\n\n- (void)draw;\n- (void)shadowedViewWillRotate;\n- (void)shadowedViewDidRotate;\n\n@end\n","new_contents":"\/\/\n\/\/ MFSideMenuShadow.h\n\/\/ MFSideMenuDemoSearchBar\n\/\/\n\/\/ Created by Michael Frederick on 5\/13\/13.\n\/\/ Copyright (c) 2013 Frederick Development. All rights reserved.\n\/\/\n\n#import \n\n@interface MFSideMenuShadow : NSObject\n\n@property (nonatomic, assign) BOOL enabled;\n@property (nonatomic, assign) CGFloat radius;\n@property (nonatomic, assign) CGFloat opacity;\n@property (nonatomic, strong) UIColor *color;\n@property (nonatomic, assign) UIView *shadowedView;\n\n+ (MFSideMenuShadow *)shadowWithView:(UIView *)shadowedView;\n+ (MFSideMenuShadow *)shadowWithColor:(UIColor *)color radius:(CGFloat)radius opacity:(CGFloat)opacity;\n\n- (void)draw;\n- (void)shadowedViewWillRotate;\n- (void)shadowedViewDidRotate;\n\n@end\n","subject":"Change weak reference to assign for backwards compatibility","message":"Change weak reference to assign for backwards compatibility\n","lang":"C","license":"bsd-3-clause","repos":"appcom-interactive\/MFSideMenu,Magnat12\/MFSideMenu,mikefrederick\/MFSideMenu,andrespch\/MFSideMenu,AxialExchange\/MFSideMenu,eleostech\/MFSideMenu"} {"commit":"cfa529182fda9e64aaf4621800ec7e8724892737","old_file":"test\/CFrontend\/2006-07-31-PR854.c","new_file":"test\/CFrontend\/2006-07-31-PR854.c","old_contents":"\/\/ RUN: llvm-gcc %s -S -o -\n\/\/ PR854\n struct kernel_symbol {\n unsigned long value;\n };\n unsigned long loops_per_jiffy = (1<<12);\n static const char __kstrtab_loops_per_jiffy[]\n__attribute__((section(\"__ksymtab_strings\"))) = \"loops_per_jiffy\";\n static const struct kernel_symbol __ksymtab_loops_per_jiffy\n__attribute__((__used__)) __attribute__((section(\"__ksymtab\"))) = { (unsigned\nlong)&loops_per_jiffy, __kstrtab_loops_per_jiffy };\n","new_contents":"\/\/ RUN: %llvmgcc% %s -S -o -\n\/\/ PR854\n struct kernel_symbol {\n unsigned long value;\n };\n unsigned long loops_per_jiffy = (1<<12);\n static const char __kstrtab_loops_per_jiffy[]\n__attribute__((section(\"__ksymtab_strings\"))) = \"loops_per_jiffy\";\n static const struct kernel_symbol __ksymtab_loops_per_jiffy\n__attribute__((__used__)) __attribute__((section(\"__ksymtab\"))) = { (unsigned\nlong)&loops_per_jiffy, __kstrtab_loops_per_jiffy };\n","subject":"Use the %llvm-gcc% variable to find llvm-gcc for those of us that don't have it in our path and to ensure it uses the configured llvm-gcc not just any one randomly placed in the path.","message":"Use the %llvm-gcc% variable to find llvm-gcc for those of us that don't\nhave it in our path and to ensure it uses the configured llvm-gcc not just\nany one randomly placed in the path.\n\n\ngit-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@29522 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,chubbymaggie\/asap,dslab-epfl\/asap,llvm-mirror\/llvm,dslab-epfl\/asap,llvm-mirror\/llvm,llvm-mirror\/llvm,apple\/swift-llvm,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,llvm-mirror\/llvm,llvm-mirror\/llvm,chubbymaggie\/asap,chubbymaggie\/asap,GPUOpen-Drivers\/llvm,apple\/swift-llvm,chubbymaggie\/asap,chubbymaggie\/asap,GPUOpen-Drivers\/llvm,apple\/swift-llvm,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,chubbymaggie\/asap,apple\/swift-llvm,apple\/swift-llvm,apple\/swift-llvm,apple\/swift-llvm,dslab-epfl\/asap,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,dslab-epfl\/asap,llvm-mirror\/llvm,dslab-epfl\/asap,GPUOpen-Drivers\/llvm,apple\/swift-llvm"} {"commit":"d93fae659ca26558c62dd654e24293be024408af","old_file":"test\/Index\/c-index-getCursor-pp.c","new_file":"test\/Index\/c-index-getCursor-pp.c","old_contents":"#define OBSCURE(X) X\n#define DECORATION\n\ntypedef int T;\nvoid OBSCURE(func)(int x) {\n OBSCURE(T) DECORATION value;\n}\n\n\/\/ RUN: c-index-test -cursor-at=%s:1:11 %s | FileCheck -check-prefix=CHECK-1 %s\n\/\/ CHECK-1: macro definition=OBSCURE\n\/\/ RUN: c-index-test -cursor-at=%s:2:14 %s | FileCheck -check-prefix=CHECK-2 %s\n\/\/ CHECK-2: macro definition=DECORATION\n\/\/ RUN: c-index-test -cursor-at=%s:5:7 %s | FileCheck -check-prefix=CHECK-3 %s\n\/\/ CHECK-3: macro instantiation=OBSCURE:1:9\n\/\/ RUN: c-index-test -cursor-at=%s:6:6 %s | FileCheck -check-prefix=CHECK-4 %s\n\/\/ CHECK-4: macro instantiation=OBSCURE:1:9\n\/\/ RUN: c-index-test -cursor-at=%s:6:19 %s | FileCheck -check-prefix=CHECK-5 %s\n\/\/ CHECK-5: macro instantiation=DECORATION:2:9\n","new_contents":"#define OBSCURE(X) X\n#define DECORATION\n\ntypedef int T;\nvoid OBSCURE(func)(int x) {\n OBSCURE(T) DECORATION value;\n}\n\n#include \"a.h\"\n\n\/\/ RUN: c-index-test -cursor-at=%s:1:11 -I%S\/Inputs %s | FileCheck -check-prefix=CHECK-1 %s\n\/\/ CHECK-1: macro definition=OBSCURE\n\/\/ RUN: c-index-test -cursor-at=%s:2:14 -I%S\/Inputs %s | FileCheck -check-prefix=CHECK-2 %s\n\/\/ CHECK-2: macro definition=DECORATION\n\/\/ RUN: c-index-test -cursor-at=%s:5:7 -I%S\/Inputs %s | FileCheck -check-prefix=CHECK-3 %s\n\/\/ CHECK-3: macro instantiation=OBSCURE:1:9\n\/\/ RUN: c-index-test -cursor-at=%s:6:6 -I%S\/Inputs %s | FileCheck -check-prefix=CHECK-4 %s\n\/\/ CHECK-4: macro instantiation=OBSCURE:1:9\n\/\/ RUN: c-index-test -cursor-at=%s:6:19 -I%S\/Inputs %s | FileCheck -check-prefix=CHECK-5 %s\n\/\/ CHECK-5: macro instantiation=DECORATION:2:9\n\/\/ RUN: c-index-test -cursor-at=%s:9:10 -I%S\/Inputs %s | FileCheck -check-prefix=CHECK-6 %s\n\/\/ CHECK-6: inclusion directive=a.h\n","subject":"Update clang_getCursor() test to check searches on include directives","message":"Update clang_getCursor() test to check searches on include directives\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@117063 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,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang"} {"commit":"4e139df2bc57e16133860dac7612265bcef77032","old_file":"subdoc\/path.h","new_file":"subdoc\/path.h","old_contents":"#ifndef SUBDOC_PATH_H\n#define SUBDOC_PATH_H\n\n#include \"subdoc-api.h\"\n#include \"jsonsl_header.h\"\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n#define COMPONENTS_ALLOC 32\ntypedef struct subdoc_PATH_st {\n struct jsonsl_jpr_st jpr_base;\n struct jsonsl_jpr_component_st components_s[COMPONENTS_ALLOC];\n int has_negix; \/* True if there is a negative array index in the path *\/\n} subdoc_PATH;\n\nstruct subdoc_PATH_st *subdoc_path_alloc(void);\nvoid subdoc_path_free(struct subdoc_PATH_st*);\nvoid subdoc_path_clear(struct subdoc_PATH_st*);\nint subdoc_path_parse(struct subdoc_PATH_st *nj, const char *path, size_t len);\njsonsl_error_t subdoc_path_add_arrindex(subdoc_PATH *pth, size_t ixnum);\n#define subdoc_path_pop_component(pth) do { \\\n (pth)->jpr_base.ncomponents--; \\\n} while (0);\n\n#ifdef __cplusplus\n}\n#endif\n#endif\n","new_contents":"#ifndef SUBDOC_PATH_H\n#define SUBDOC_PATH_H\n\n#include \"subdoc-api.h\"\n#include \"jsonsl_header.h\"\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n\/\/ Maximum number of components in a path. Set to 33 to allow 32 'actual'\n\/\/ components plus the implicit root element.\n#define COMPONENTS_ALLOC 33\n\ntypedef struct subdoc_PATH_st {\n struct jsonsl_jpr_st jpr_base;\n struct jsonsl_jpr_component_st components_s[COMPONENTS_ALLOC];\n int has_negix; \/* True if there is a negative array index in the path *\/\n} subdoc_PATH;\n\nstruct subdoc_PATH_st *subdoc_path_alloc(void);\nvoid subdoc_path_free(struct subdoc_PATH_st*);\nvoid subdoc_path_clear(struct subdoc_PATH_st*);\nint subdoc_path_parse(struct subdoc_PATH_st *nj, const char *path, size_t len);\njsonsl_error_t subdoc_path_add_arrindex(subdoc_PATH *pth, size_t ixnum);\n#define subdoc_path_pop_component(pth) do { \\\n (pth)->jpr_base.ncomponents--; \\\n} while (0);\n\n#ifdef __cplusplus\n}\n#endif\n#endif\n","subject":"Allow access to documents of depth 32","message":"Allow access to documents of depth 32\n","lang":"C","license":"apache-2.0","repos":"mnunberg\/subjson,mnunberg\/subjson"} {"commit":"8650caef5b7e0729e2edabe780dfcdea6d6648d7","old_file":"include\/bitops.h","new_file":"include\/bitops.h","old_contents":"#ifndef __BITOPS_H__\n#define __BITOPS_H__\n\n#include \n#include \n\nstatic inline int fls(int x)\n{\n return WORD_BITS - __clz(x);\n}\n\nstatic inline int ffs(int x)\n{\n\t\/* mask the least significant bit only *\/\n\treturn fls(x & -x);\n}\n\nstatic inline int log2(int x)\n{\n\tif (!x)\n\t\treturn INF;\n\n\tint sign = 1;\n\n\tif (x < 0) {\n\t\tsign = -sign;\n\t\tx = -x;\n\t}\n\n\treturn (fls(x) - 1) * sign;\n}\n\n#endif \/* __BITOPS_H__ *\/\n","new_contents":"#ifndef __BITOPS_H__\n#define __BITOPS_H__\n\n#include \n#include \n\nstatic inline int fls(int x)\n{\n return WORD_BITS - __clz(x);\n}\n\nstatic inline int ffs(int x)\n{\n\t\/* mask the least significant bit only *\/\n\treturn fls(x & -x);\n}\n\nstatic inline int digits(const unsigned int n)\n{\n\tassert(sizeof(n) == 4);\n\n\tconst int tbl[] = {\n\t\t10, 10, 9, 9, 9, 8, 8, 8, 7, 7, 7, 7, 6, 6, 6, 5,\n\t\t5, 5, 4, 4, 4, 4, 3, 3, 3, 2, 2, 2, 1, 1, 1, 1,\n\t\t0 };\n\tconst unsigned int base[] = {\n\t\t0,\n\t\t10,\n\t\t100,\n\t\t1000,\n\t\t10000,\n\t\t100000,\n\t\t1000000,\n\t\t10000000,\n\t\t100000000,\n\t\t1000000000 };\n\tint digits = tbl[__clz(n)];\n\n\tif (base[digits] <= n)\n\t\tdigits++;\n\n\treturn digits;\n}\n\nstatic inline int log2(int x)\n{\n\tif (!x)\n\t\treturn INF;\n\n\tint sign = 1;\n\n\tif (x < 0) {\n\t\tsign = -sign;\n\t\tx = -x;\n\t}\n\n\treturn (fls(x) - 1) * sign;\n}\n\n#endif \/* __BITOPS_H__ *\/\n","subject":"Add digits() to count digits of `unsigned int` value","message":"Add digits() to count digits of `unsigned int` value\n","lang":"C","license":"apache-2.0","repos":"onkwon\/yaos,onkwon\/yaos,onkwon\/yaos"} {"commit":"507c61e2567c01f86e8bea87a37b173318779fb4","old_file":"libexec\/lukemftpd\/nbsd2fbsd.h","new_file":"libexec\/lukemftpd\/nbsd2fbsd.h","old_contents":"\/* $FreeBSD$ *\/\n\n\/* XXX: Depend on our system headers protecting against multiple includes. *\/\n#include \n#undef _PATH_FTPUSERS\n\n#include \n\n#define _DIAGASSERT(x)\n\n#include \n#ifndef _SIZE_T_DECLARED\ntypedef\t__size_t\tsize_t;\n#define\t_SIZE_T_DECLARED\n#endif\nlong long strsuftollx(const char *, const char *,\n long long, long long, char *, size_t);\n","new_contents":"\/* $FreeBSD$ *\/\n\n\/* XXX: Depend on our system headers protecting against multiple includes. *\/\n#include \n#undef _PATH_FTPUSERS\n\n#include \n\n#define _DIAGASSERT(x)\n\n#include \n#ifndef _SIZE_T_DECLARED\ntypedef\t__size_t\tsize_t;\n#define\t_SIZE_T_DECLARED\n#endif\nlong long strsuftollx(const char *, const char *,\n long long, long long, char *, size_t);\n\n\/*\n * IEEE Std 1003.1c-95, adopted in X\/Open CAE Specification Issue 5 Version 2\n *\/\n#if __POSIX_VISIBLE >= 199506 || __XSI_VISIBLE >= 500\n#define\tLOGIN_NAME_MAX\tMAXLOGNAME\t\/* max login name length (incl. NUL) *\/\n#endif\n","subject":"Deal with the LOGIN_NAME_MAX issue in the NetBSD->FreeBSD translation^H^H^Hhack layer.","message":"Deal with the LOGIN_NAME_MAX issue in the NetBSD->FreeBSD\ntranslation^H^H^Hhack layer.\n","lang":"C","license":"bsd-3-clause","repos":"jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase"} {"commit":"80e4e2a943d9a156ed2a674a76a1da42b891dd57","old_file":"Josh_Zane_Sebastian\/src\/main.h","new_file":"Josh_Zane_Sebastian\/src\/main.h","old_contents":"#define T_INT 0\n#define T_CHR 1\n#define T_RTN 2\n\nstruct stack_node {\n struct stack_node *cdr;\n union node_data data;\n char type;\n}\n\nunion node_data {\n struct routine routine;\n int numval;\n}\n\nstruct routine {\n struct routine *parent;\n struct iq_node *nodes;\n int num_nodes;\n}\n\nstruct iq_node {\n struct iq_node *next;\n union node_data instr;\n char type;\n}\n","new_contents":"#define T_INT 0\n#define T_CHR 1\n#define T_RTN 2\n\nstruct stack_node {\n struct stack_node *cdr;\n union node_data data;\n char type;\n}\n\nunion node_data {\n struct routine routine;\n int numval;\n}\n\nstruct routine {\n struct routine *parent;\n struct iq_node *nodes;\n}\n\nstruct iq_node {\n struct iq_node *next;\n union node_data instr;\n char type;\n}\n","subject":"Remove unused node-counter in routines","message":"Remove unused node-counter in routines\n","lang":"C","license":"mit","repos":"aacoppa\/final,aacoppa\/final"} {"commit":"36bf68a93c844399befddd3830407561a4d18810","old_file":"Pod\/Classes\/SEEngineProtocol.h","new_file":"Pod\/Classes\/SEEngineProtocol.h","old_contents":"\/\/\n\/\/ SEEngineProtocol.h\n\/\/ Pods\n\/\/\n\/\/ Created by Danil Tulin on 3\/14\/16.\n\/\/\n\/\/\n\n#import \n\n@protocol EngineProtocol \n\n- (void)feedBGRAImageData:(u_int8_t *)data\n\t\t\t\t\twidth:(NSUInteger)width\n\t\t\t\t heieght:(NSUInteger)height;\n\n@property (nonatomic) CGFloat progress;\n\n@end\n","new_contents":"\/\/\n\/\/ SEEngineProtocol.h\n\/\/ Pods\n\/\/\n\/\/ Created by Danil Tulin on 3\/14\/16.\n\/\/\n\/\/\n\n#import \n\n@protocol EngineProtocol \n\n@required\n\n- (void)feedBGRAImageData:(u_int8_t *)data\n\t\t\t\t\twidth:(NSUInteger)width\n\t\t\t\t heieght:(NSUInteger)height;\n\n@property (nonatomic) float progress;\n\n@end\n","subject":"Add required and CGFloat -> float","message":"Add required and CGFloat -> float\n","lang":"C","license":"mit","repos":"tulindanil\/SEUIKit"} {"commit":"4a1681141d6a415ffbcad7dd5b672b01dd75d429","old_file":"search\/config.h","new_file":"search\/config.h","old_contents":"\/* for MAX_TXT_SEG_BYTES & MAX_TXT_SEG_LEN *\/\n#include \"txt-seg\/config.h\"\n#define MAX_TERM_BYTES MAX_TXT_SEG_BYTES\n\n\/* consider both math & term *\/\n#define MAX_QUERY_BYTES (MAX_TXT_SEG_BYTES * 32)\n#define MAX_QUERY_WSTR_LEN (MAX_TXT_SEG_LEN * 32)\n\n#define MAX_MERGE_POSTINGS 4096\n\n#define SNIPPET_PADDING 80\n#define MAX_SNIPPET_SZ 4096\n\n\/\/#define DEBUG_SNIPPET\n\n\/\/#define DEBUG_POST_MERGE\n\n\/* max mark score, type of mnc_score_t *\/\n#define MNC_MARK_SCORE 99\n\n\/*\n#define MNC_DEBUG\n#define MNC_SMALL_BITMAP\n*\/\n\n\/\/#define DEBUG_MATH_EXPR_SEARCH\n\n#define RANK_SET_DEFAULT_VOL 45\n#define DEFAULT_RES_PER_PAGE 10\n\n\/\/#define DEBUG_PROXIMITY\n#define ENABLE_PROXIMITY_SCORE\n\n#define MAX_HIGHLIGHT_OCCURS 8\n\/\/#define DEBUG_HILIGHT_SEG_OFFSET\n\/\/#define DEBUG_HILIGHT_SEG\n\n\/\/#define DEBUG_MATH_SCORE_POSTING\n\/\/#define VERBOSE_SEARCH\n\n\/\/#define DEBUG_MATH_SEARCH\n\n\/\/#define DEBUG_PRINT_TARGET_DOC_MATH_SCORE\n","new_contents":"\/* for MAX_TXT_SEG_BYTES & MAX_TXT_SEG_LEN *\/\n#include \"txt-seg\/config.h\"\n#define MAX_TERM_BYTES MAX_TXT_SEG_BYTES\n\n\/* consider both math & term *\/\n#define MAX_QUERY_BYTES (MAX_TXT_SEG_BYTES * 32)\n#define MAX_QUERY_WSTR_LEN (MAX_TXT_SEG_LEN * 32)\n\n#define MAX_MERGE_POSTINGS 4096\n\n#define SNIPPET_PADDING 320\n#define MAX_SNIPPET_SZ 8192\n\n\/\/#define DEBUG_SNIPPET\n\n\/\/#define DEBUG_POST_MERGE\n\n\/* max mark score, type of mnc_score_t *\/\n#define MNC_MARK_SCORE 99\n\n\/*\n#define MNC_DEBUG\n#define MNC_SMALL_BITMAP\n*\/\n\n\/\/#define DEBUG_MATH_EXPR_SEARCH\n\n#define RANK_SET_DEFAULT_VOL 155\n#define DEFAULT_RES_PER_PAGE 10\n\n\/\/#define DEBUG_PROXIMITY\n#define ENABLE_PROXIMITY_SCORE\n\n#define MAX_HIGHLIGHT_OCCURS 8\n\/\/#define DEBUG_HILIGHT_SEG_OFFSET\n\/\/#define DEBUG_HILIGHT_SEG\n\n\/\/#define DEBUG_MATH_SCORE_POSTING\n\/\/#define VERBOSE_SEARCH\n\n\/\/#define DEBUG_MATH_SEARCH\n\n\/\/#define DEBUG_PRINT_TARGET_DOC_MATH_SCORE\n","subject":"Enlarge snippet size and rank volumn.","message":"Enlarge snippet size and rank volumn.\n","lang":"C","license":"mit","repos":"approach0\/search-engine,approach0\/search-engine,yzhan018\/the-day-after-tomorrow,yzhan018\/the-day-after-tomorrow,t-k-\/the-day-after-tomorrow,yzhan018\/the-day-after-tomorrow,yzhan018\/the-day-after-tomorrow,yzhan018\/the-day-after-tomorrow,t-k-\/the-day-after-tomorrow,t-k-\/the-day-after-tomorrow,yzhan018\/the-day-after-tomorrow,yzhan018\/the-day-after-tomorrow,approach0\/search-engine,t-k-\/the-day-after-tomorrow,approach0\/search-engine,t-k-\/the-day-after-tomorrow,t-k-\/the-day-after-tomorrow,t-k-\/the-day-after-tomorrow"} {"commit":"d03603a903096eebfab0972a78e5038c41c75534","old_file":"framework\/JPetUser\/JPetUser.h","new_file":"framework\/JPetUser\/JPetUser.h","old_contents":"\/\/ JPet User - JPetUser.h\n#ifndef JPET_USER_H\n#define JPET_USER_H\n\n#include \"TNamed.h\"\n\n\nclass JPetUser: public TNamed\n{\nprotected:\n int m_id;\n std::string m_name;\n std::string m_lastName;\n std::string m_login;\n std::string m_password;\n bool m_isRoot;\n std::string m_creationDate;\n std::string m_lastLoginDate;\n \n static bool m_isUserLogged;\n inline void toggleUserLoggedStatus()\n {\n m_isUserLogged = (m_isUserLogged == true) ? false : true;\n }\n virtual std::string password(void) const;\n \npublic:\n JPetUser(int p_id, std::string p_name, std::string p_lastName, std::string p_login, std::string p_password, bool p_isRoot);\n virtual ~JPetUser(void);\n \n static bool isUserLogged(void);\n virtual bool logIn(void);\n virtual bool logOut(void);\n virtual bool changeLogin(void);\n virtual bool changePassword(void);\n \n virtual int id(void) const;\n virtual std::string name(void) const;\n virtual std::string lastName(void) const;\n virtual std::string login(void) const;\n virtual bool isRoot(void) const;\n virtual std::string creationDate(void) const;\n virtual std::string lastLoginDate(void) const;\n \nprivate:\n ClassDef(JPetUser, 1);\n};\n\n#endif \/\/ JPET_USER_H\n","new_contents":"\/\/ JPet User - JPetUser.h\n#ifndef JPET_USER_H\n#define JPET_USER_H\n\n#include \"TNamed.h\"\n\n\nclass JPetUser: public TNamed\n{\nprotected:\n int m_id;\n std::string m_name;\n std::string m_lastName;\n std::string m_login;\n std::string m_password;\n bool m_isRoot;\n std::string m_creationDate;\n std::string m_lastLoginDate;\n \n static bool m_isUserLogged;\n inline void toggleUserLoggedStatus()\n {\n m_isUserLogged = !m_isUserLogged;\n }\n virtual std::string password(void) const;\n \npublic:\n JPetUser(int p_id, std::string p_name, std::string p_lastName, std::string p_login, std::string p_password, bool p_isRoot);\n virtual ~JPetUser(void);\n \n static bool isUserLogged(void);\n virtual bool logIn(void);\n virtual bool logOut(void);\n virtual bool changeLogin(void);\n virtual bool changePassword(void);\n \n virtual int id(void) const;\n virtual std::string name(void) const;\n virtual std::string lastName(void) const;\n virtual std::string login(void) const;\n virtual bool isRoot(void) const;\n virtual std::string creationDate(void) const;\n virtual std::string lastLoginDate(void) const;\n \nprivate:\n ClassDef(JPetUser, 1);\n};\n\n#endif \/\/ JPET_USER_H\n","subject":"Change body of the toggleUserLoggedStatus method.","message":"Change body of the toggleUserLoggedStatus method.\n","lang":"C","license":"apache-2.0","repos":"kmuzalewska\/j-pet-framework,kmuzalewska\/j-pet-framework,kmuzalewska\/j-pet-framework,kmuzalewska\/j-pet-framework,kmuzalewska\/j-pet-framework"} {"commit":"a58465ff0f6acb358e7ce91e076803f53ab340da","old_file":"chapter2\/myspace.c","new_file":"chapter2\/myspace.c","old_contents":"","new_contents":"#include \n#include \n#include \n#include \n\n\/\/ declare main so that it takes input from command line\nint main(int argc, string argv[])\n{\n for (int i = 1; i < argc; i++)\n {\n for (int j = 0, k = strlen(argv[i]); j < k; j++)\n {\n if (j % 2 == 0)\n {\n printf(\"%c\", toupper(argv[i][j]));\n }\n else\n {\n printf(\"%c\", tolower(argv[i][j]));\n }\n printf(\" \");\n }\n printf(\" \");\n }\n\n printf(\"\\n\");\n}","subject":"Add additional string iteration program example","message":"Add additional string iteration program example\n","lang":"C","license":"mit","repos":"cs50sacramento\/source-code-1617,cs50sacramento\/source-code-1617,cs50sacramento\/source-code-1617"} {"commit":"e141aba93148a0e2b5bbcbde36b37d3cf171d1f2","old_file":"chapter27\/chapter27_drill.c","new_file":"chapter27\/chapter27_drill.c","old_contents":"\/* Chapter 27, drill\n 1. Write a Hello World program\n 2. Define two variables holding \"Hello\" and \"World!\", concatenate them with\n a space in between and output them as \"Hello World!\"\n 3. Define a function taking a char* p and an int x, print their values in\n the format \"p is 'foo' and x is 7\". Call it with a few argument pairs. *\/\n\n#include\n#include\n#include\n\nvoid my_func(char* p, int x)\n{\n printf(\"p is \\\"%s\\\" and x is %i\\n\",p,x);\n}\n\nint main()\n{\n printf(\"Hello World!\\n\");\n\n char* hello = \"Hello\";\n char* world = \"World!\";\n char* hello_world = (char*) malloc(strlen(hello)+strlen(world)+2);\n strcpy(hello_world,hello);\n hello_world[strlen(hello)] = ' ';\n strcpy(hello_world+strlen(hello)+1,world);\n printf(\"%s\\n\",hello_world);\n\n my_func(\"foo\",7);\n my_func(\"Scott Meyers\",42);\n my_func(\"Bjarne Stroustrup\",99);\n}","new_contents":"\/* Chapter 27, drill\n 1. Write a Hello World program\n 2. Define two variables holding \"Hello\" and \"World!\", concatenate them with\n a space in between and output them as \"Hello World!\"\n 3. Define a function taking a char* p and an int x, print their values in\n the format \"p is 'foo' and x is 7\". Call it with a few argument pairs. *\/\n\n#include\n#include\n#include\n\nvoid my_func(char* p, int x)\n{\n printf(\"p is \\\"%s\\\" and x is %i\\n\",p,x);\n}\n\nint main()\n{\n printf(\"Hello World!\\n\");\n {\n char* hello = \"Hello\";\n char* world = \"World!\";\n char* hello_world = (char*) malloc(strlen(hello)+strlen(world)+2);\n strcpy(hello_world,hello);\n hello_world[strlen(hello)] = ' ';\n strcpy(hello_world+strlen(hello)+1,world);\n printf(\"%s\\n\",hello_world);\n }\n my_func(\"foo\",7);\n my_func(\"Scott Meyers\",42);\n my_func(\"Bjarne Stroustrup\",99);\n}","subject":"Modify Chapter 27, drill to comply with C89 standard","message":"Modify Chapter 27, drill to comply with C89 standard\n","lang":"C","license":"mit","repos":"bewuethr\/stroustrup_ppp,bewuethr\/stroustrup_ppp"} {"commit":"5d1c50d7b497f623c65e24f2d02c5f867f74afcc","old_file":"restnotifier\/idletime.c","new_file":"restnotifier\/idletime.c","old_contents":"#include \n\n#if defined Q_WS_X11\n#include \n#endif\n\n\n\/\/ return idle time in seconds\nint getIdleSecs()\n{\n#if defined Q_WS_X11\n int code, idle_sec;\n XScreenSaverInfo *ssinfo = XScreenSaverAllocInfo();\n if (!ssinfo)\n goto fail;\n Display *display = XOpenDisplay(0);\n if (!display)\n goto fail;\n code = XScreenSaverQueryInfo(display, DefaultRootWindow(display), ssinfo);\n if (!code)\n goto fail;\n idle_sec = ssinfo->idle \/ 1000;\n XFree(ssinfo);\n XCloseDisplay(display);\n return idle_sec;\n\nfail:\n if (ssinfo)\n XFree(ssinfo);\n if (display)\n XCloseDisplay(display);\n return -1;\n#else\n return -1;\n#endif\n}\n","new_contents":"#include \n\n\/\/ headers\n#if defined Q_WS_X11\n#include \n\n#elif defined Q_WS_WIN\n#include \n\n#endif\n\/\/ ^ headers\n\n\n\/\/ return idle time in seconds\nint getIdleSecs()\n{\n\/\/ linux\n#if defined Q_WS_X11\n int code, idle_sec;\n XScreenSaverInfo *ssinfo = XScreenSaverAllocInfo();\n if (!ssinfo)\n goto fail;\n Display *display = XOpenDisplay(0);\n if (!display)\n goto fail;\n code = XScreenSaverQueryInfo(display, DefaultRootWindow(display), ssinfo);\n if (!code)\n goto fail;\n idle_sec = ssinfo->idle \/ 1000;\n XFree(ssinfo);\n XCloseDisplay(display);\n return idle_sec;\n\nfail:\n if (ssinfo)\n XFree(ssinfo);\n if (display)\n XCloseDisplay(display);\n return -1;\n\/\/ ^ linux\n\n\/\/ windows\n#elif defined Q_WS_WIN\n BOOL ok;\n LASTINPUTINFO plii;\n DWORD msec;\n plii.cbSize = sizeof(LASTINPUTINFO);\n plii.dwTime = 0;\n ok = GetLastInputInfo(&plii);\n if (!ok)\n return -1;\n msec = GetTickCount();\n msec -= plii.dwTime;\n msec \/= 1000;\n return msec;\n\/\/ ^ windows\n\n#else\n return -1;\n#endif\n}\n","subject":"Add idle time function for windows","message":"Add idle time function for windows\n","lang":"C","license":"mit","repos":"swarmer\/restnotifier,swarmer\/restnotifier,swarmer\/restnotifier"} {"commit":"8a601496ec30617c6df42f31f4221b8cb1b2f866","old_file":"tests\/sv-comp\/cfg\/uncil\/and_join_invariant_true-unreach-call.c","new_file":"tests\/sv-comp\/cfg\/uncil\/and_join_invariant_true-unreach-call.c","old_contents":"","new_contents":"extern void __VERIFIER_error() __attribute__ ((__noreturn__));\nextern int __VERIFIER_nondet_int();\nvoid __VERIFIER_assert(int cond) {\n if (!(cond)) {\n ERROR: __VERIFIER_error();\n }\n return;\n}\n\nint main()\n{\n int x = __VERIFIER_nondet_int();\n if (x > 0 && x < 2)\n __VERIFIER_assert(x == 1);\n else\n __VERIFIER_assert(1); \/\/ arbitrary node in else branch to see invariant\n return 0;\n}","subject":"Add test about witness un-CIL invariant being incorrect when branches joined","message":"Add test about witness un-CIL invariant being incorrect when branches joined\n","lang":"C","license":"mit","repos":"goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer"} {"commit":"dc811801dc3917f525058e06e89484704cc4b98c","old_file":"installer\/loader.h","new_file":"installer\/loader.h","old_contents":"#ifndef LOADER_H\n#define LOADER_H\n\n#include \"..\/..\/..\/libwiiu\/src\/coreinit.h\"\n#include \"..\/..\/..\/libwiiu\/src\/socket.h\"\n#include \"..\/..\/..\/libwiiu\/src\/types.h\"\n\nvoid _start();\n\nvoid _entryPoint();\n\n\/* Arbitrary kernel write syscall *\/\r\nvoid kern_write(void *addr, uint32_t value);\n\n#endif \/* LOADER_H *\/","new_contents":"#ifndef LOADER_H\n#define LOADER_H\n\n#include \"..\/..\/..\/libwiiu\/src\/coreinit.h\"\n#include \"..\/..\/..\/libwiiu\/src\/socket.h\"\n#include \"..\/..\/..\/libwiiu\/src\/types.h\"\n\n\/* Kernel address table *\/\r\n#if VER == 200\r\n\t#define KERN_ADDRESS_TBL\t\t0x0\r\n#elif VER == 210\r\n\t#define KERN_ADDRESS_TBL\t\t0x0\r\n#elif VER == 300\r\n\t#define KERN_ADDRESS_TBL\t\t0xFFEB66E4\r\n#elif VER == 310\r\n\t#define KERN_ADDRESS_TBL\t\t0x0\r\n#elif VER == 400\r\n\t#define KERN_ADDRESS_TBL\t\t0x0\r\n#elif VER == 410\r\n\t#define KERN_ADDRESS_TBL\t\t0xffeb902c\r\n#elif VER == 500\r\n\t#define KERN_ADDRESS_TBL\t\t0xffea9e4c\r\n#elif VER == 532\r\n\t#define KERN_ADDRESS_TBL\t\t0xFFEAAA10\r\n#else\r\n#error \"Unsupported Wii U software version\"\r\n#endif\n\nvoid _start();\n\nvoid _entryPoint();\n\n\/* Arbitrary kernel write syscall *\/\r\nvoid kern_write(void *addr, uint32_t value);\n\n#endif \/* LOADER_H *\/","subject":"Add KERN_ADDRESS_TBL for each version","message":"Add KERN_ADDRESS_TBL for each version\n","lang":"C","license":"mit","repos":"wiiudev\/pyGecko,cfwprpht\/pyGecko,FIX94\/pyGecko,FIX94\/pyGecko,shinyquagsire23\/pyGecko,cfwprpht\/pyGecko,wiiudev\/pyGecko,shinyquagsire23\/pyGecko"} {"commit":"2b3e2bb2d4c5fb0185a42b50354278fea97aa817","old_file":"src\/include\/s6-rc\/s6rc-constants.h","new_file":"src\/include\/s6-rc\/s6rc-constants.h","old_contents":"\/* ISC license. *\/\n\n#ifndef S6RC_CONSTANTS_H\n#define S6RC_CONSTANTS_H\n\n#define S6RC_COMPILED_BASE \"\/etc\/s6-rc\/compiled\"\n#define S6RC_LIVE_BASE \"\/s6\/s6-rc\"\n\n#define S6RC_COMPILED_DIR_LEN 32\n\n#define S6RC_ONESHOT_RUNNER \"s6rc-oneshot-runner\"\n#define S6RC_ONESHOT_RUNNER_LEN (sizeof S6RC_ONESHOT_RUNNER - 1)\n\n#endif\n","new_contents":"\/* ISC license. *\/\n\n#ifndef S6RC_CONSTANTS_H\n#define S6RC_CONSTANTS_H\n\n#define S6RC_COMPILED_BASE \"\/etc\/s6-rc\/compiled\"\n#define S6RC_LIVE_BASE \"\/run\/s6-rc\"\n\n#define S6RC_COMPILED_DIR_LEN 32\n\n#define S6RC_ONESHOT_RUNNER \"s6rc-oneshot-runner\"\n#define S6RC_ONESHOT_RUNNER_LEN (sizeof S6RC_ONESHOT_RUNNER - 1)\n\n#endif\n","subject":"Change default live to \/run\/s6-rc","message":" Change default live to \/run\/s6-rc\n","lang":"C","license":"isc","repos":"skarnet\/s6-rc,skarnet\/s6-rc"} {"commit":"a689b6dd0ccf5734c9c22058cb20c5a18f8fc795","old_file":"sapi\/sapi-dylink.h","new_file":"sapi\/sapi-dylink.h","old_contents":"\/\/\/ @file sapi-dylink.h\n\/\/\/ @brief Define the record used for runtime linking.\n\n\/\/\/ This structure allows forth to easily look up things on the C\n\/\/\/ side of the world. \n\/\/\/ \n\/\/\/ Special Rules:\n\/\/\/ - The very first item is the size of the record.\n\/\/\/ \n\n\/\/ This could be packed more tightly, but its now exactly\n\/\/ 16 bytes per record, which is nice. Make sure that doesn't\n\/\/ change.\n\ntypedef struct {\n\t\/\/ This union is a bit crazy, but its the simplest way of \n\t\/\/ getting the compiler to shut up.\n\tunion { \n\t\tvoid (*fp) (void);\n\t\tint* ip;\n\t\tunsigned int ui;\n\t\tunsigned int* uip;\n\t\tunsigned long* ulp;\n\t\t} p; \/\/\/< Pointer to the object of interest\n\tint16_t size; \/\/\/< Size in bytes\n\tint16_t count; \/\/\/< How many\n\tint8_t kind; \/\/\/< Is this a variable or a constant?\n\tint8_t strlen; \/\/\/< Length of the string\n\tchar *name; \/\/\/< Null-Terminated C string.\n\t} runtimelink_t;\n\n\n\/\/\/ Helper Macro.\n#define FORTHNAME(x) (sizeof(x)-1),x\n\nextern const runtimelink_t dynamiclinks[];\n\n","new_contents":"\/\/\/ @file sapi-dylink.h\n\/\/\/ @brief Define the record used for runtime linking.\n\n\/\/\/ This structure allows forth to easily look up things on the C\n\/\/\/ side of the world. \n\/\/\/ \n\/\/\/ Special Rules:\n\/\/\/ - The very first item is the size of the record.\n\/\/\/ \n\n\/\/ This could be packed more tightly, but its now exactly\n\/\/ 16 bytes per record, which is nice. Make sure that doesn't\n\/\/ change.\n\n\/\/ Conventions: \n\/\/ Size is the size of the fundamental thing in bytes, \n\/\/ and count is the number of them.\n\/\/ char array[64] = 1,64\n\/\/ struct { a, b } s; sizeof(s),1\n\ntypedef struct {\n\t\/\/ This union is a bit crazy, but its the simplest way of \n\t\/\/ getting the compiler to shut up.\n\tunion { \n\t\tvoid (*fp) (void);\n\t\tint* ip;\n\t\tunsigned int ui;\n\t\tunsigned int* uip;\n\t\tunsigned long* ulp;\n\t\t} p; \/\/\/< Pointer to the object of interest\n\tint16_t size; \/\/\/< Size in bytes\n\tint16_t count; \/\/\/< How many\n\tint8_t kind; \/\/\/< Is this a variable or a constant?\n\tint8_t strlen; \/\/\/< Length of the string\n\tchar *name; \/\/\/< Null-Terminated C string.\n\t} runtimelink_t;\n\n\n\/\/\/ Helper Macro.\n#define FORTHNAME(x) (sizeof(x)-1),x\n\nextern const runtimelink_t dynamiclinks[];\n\n","subject":"Clarify the dynamic linking structure.","message":"Clarify the dynamic linking structure.\n","lang":"C","license":"bsd-2-clause","repos":"rbsexton\/sockpuppet,rbsexton\/sockpuppet"} {"commit":"74dab7fd5a5e1ddc73ffb56bfaeaeaae43ce609c","old_file":"Common\/Categories\/UITableView+DynamicSizing.h","new_file":"Common\/Categories\/UITableView+DynamicSizing.h","old_contents":"#import \n\n@protocol UITableViewDataSourceDynamicSizing;\n\n@interface UITableView (DynamicSizing)\n- (void)registerClass:(Class)cellClass forDynamicCellReuseIdentifier:(NSString *)identifier;\n- (void)registerNib:(UINib *)nib forDynamicCellReuseIdentifier:(NSString *)identifier;\n- (CGFloat)minimumHeightForCellWithReuseIdentifier:(NSString*)reuseIdentifier atIndexPath:(NSIndexPath*)indexPath;\n@end\n\n@protocol UITableViewDataSourceDynamicSizing \n- (void)tableView:(UITableView*)tableView configureCell:(UITableViewCell*)cell forRowAtIndexPath:(NSIndexPath*)indexPath;\n@end","new_contents":"#import \n\n@protocol UITableViewDataSourceDynamicSizing;\n\n@interface UITableView (DynamicSizing)\n- (void)registerClass:(Class)cellClass forDynamicCellReuseIdentifier:(NSString *)identifier;\n- (void)registerNib:(UINib *)nib forDynamicCellReuseIdentifier:(NSString *)identifier;\n- (CGFloat)minimumHeightForCellWithReuseIdentifier:(NSString*)reuseIdentifier atIndexPath:(NSIndexPath*)indexPath;\n@end\n\n@protocol UITableViewDataSourceDynamicSizing \n@required\n- (void)tableView:(UITableView*)tableView configureCell:(UITableViewCell*)cell forRowAtIndexPath:(NSIndexPath*)indexPath;\n@end","subject":"Make sure to mark all the methods in the dynamic sizing data source as required","message":"Make sure to mark all the methods in the dynamic sizing data source as required\n","lang":"C","license":"lgpl-2.1","repos":"xNUTs\/MIT-Mobile-for-iOS,xNUTs\/MIT-Mobile-for-iOS,smartcop\/MIT-Mobile-for-iOS,MIT-Mobile\/MIT-Mobile-for-iOS,smartcop\/MIT-Mobile-for-iOS,MIT-Mobile\/MIT-Mobile-for-iOS"} {"commit":"0aec39c69e2f002dd5020272f30bf1f488ce4815","old_file":"src\/condor_ckpt\/machdep.old.h","new_file":"src\/condor_ckpt\/machdep.old.h","old_contents":"#include \n\n\/*\n Portability: A single method works on all the platforms we have tried\n so far, but this may not be true for all platforms.\n*\/\n#if defined(ULTRIX42) || defined(ULTRIX43) || defined(SUNOS41)\n#\tdefine SETJMP _setjmp\n#\tdefine LONGJMP _longjmp\n\textern \"C\" {\n\t\tint SETJMP( jmp_buf env );\n\t\tvoid LONGJMP( jmp_buf env, int retval );\n\t}\n#else\n\t\/\/ Unknown platforms fall through to here, generating compile time error\n#\terror\n#endif\n\n\nint data_start_addr();\nint data_end_addr();\nint stack_start_addr();\nint stack_end_addr();\nvoid ExecuteOnTmpStk( void (*func)() );\n","new_contents":"#include \n#include \n#include \n\n\/*\n Portability: A single method works on all the platforms we have tried\n so far, but this may not be true for all platforms.\n*\/\n#if defined(ULTRIX42) || defined(ULTRIX43) || defined(SUNOS41)\n#\tdefine SETJMP _setjmp\n#\tdefine LONGJMP _longjmp\n\textern \"C\" {\n\t\tint SETJMP( jmp_buf env );\n\t\tvoid LONGJMP( jmp_buf env, int retval );\n\t}\n#else\n\t\/\/ Unknown platforms fall through to here, generating compile time error\n#\terror\n#endif\n\n\nint data_start_addr();\nint data_end_addr();\nint stack_start_addr();\nint stack_end_addr();\nvoid ExecuteOnTmpStk( void (*func)() );\n","subject":"Include both and since both SUNOS and ULTRIX will need them.","message":"Include both and since both SUNOS and\nULTRIX will need them.\n","lang":"C","license":"apache-2.0","repos":"htcondor\/htcondor,clalancette\/condor-dcloud,htcondor\/htcondor,djw8605\/htcondor,zhangzhehust\/htcondor,zhangzhehust\/htcondor,djw8605\/htcondor,zhangzhehust\/htcondor,mambelli\/osg-bosco-marco,htcondor\/htcondor,zhangzhehust\/htcondor,djw8605\/condor,djw8605\/htcondor,bbockelm\/condor-network-accounting,djw8605\/htcondor,clalancette\/condor-dcloud,mambelli\/osg-bosco-marco,djw8605\/htcondor,bbockelm\/condor-network-accounting,bbockelm\/condor-network-accounting,djw8605\/condor,neurodebian\/htcondor,htcondor\/htcondor,clalancette\/condor-dcloud,neurodebian\/htcondor,bbockelm\/condor-network-accounting,clalancette\/condor-dcloud,neurodebian\/htcondor,mambelli\/osg-bosco-marco,bbockelm\/condor-network-accounting,zhangzhehust\/htcondor,zhangzhehust\/htcondor,djw8605\/htcondor,neurodebian\/htcondor,djw8605\/condor,djw8605\/condor,clalancette\/condor-dcloud,htcondor\/htcondor,htcondor\/htcondor,mambelli\/osg-bosco-marco,zhangzhehust\/htcondor,neurodebian\/htcondor,djw8605\/htcondor,neurodebian\/htcondor,mambelli\/osg-bosco-marco,djw8605\/htcondor,djw8605\/htcondor,neurodebian\/htcondor,bbockelm\/condor-network-accounting,djw8605\/condor,mambelli\/osg-bosco-marco,djw8605\/condor,zhangzhehust\/htcondor,htcondor\/htcondor,mambelli\/osg-bosco-marco,neurodebian\/htcondor,clalancette\/condor-dcloud,mambelli\/osg-bosco-marco,djw8605\/condor,djw8605\/condor,bbockelm\/condor-network-accounting,clalancette\/condor-dcloud,zhangzhehust\/htcondor,htcondor\/htcondor,bbockelm\/condor-network-accounting,neurodebian\/htcondor"} {"commit":"b41a7d20027f4730f34885ebbca539d9fdb78c9c","old_file":"test\/CodeGen\/address-space.c","new_file":"test\/CodeGen\/address-space.c","old_contents":"\/\/ RUN: clang -emit-llvm < %s 2>&1 | grep 'addrspace(1)' | count 5\nint foo __attribute__((address_space(1)));\nint ban[10] __attribute__((address_space(1)));\n\nint bar() { return foo; }\n\nint baz(int i) { return ban[i]; }","new_contents":"\/\/ RUN: clang -emit-llvm < %s 2>&1 | grep 'addrspace(1)' | count 5\nint foo __attribute__((address_space(1)));\nint ban[10] __attribute__((address_space(1)));\n\nint bar() { return foo; }\n\nint baz(int i) { return ban[i]; }\n","subject":"Add ending newline to test.","message":"Add ending newline to test.\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@46692 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang"} {"commit":"cbbe9c8b5c645affee7aadc2d6aebb989de81989","old_file":"src\/libmv\/base\/id_generator.h","new_file":"src\/libmv\/base\/id_generator.h","old_contents":"","new_contents":"\/\/ Copyright (c) 2007, 2008 libmv authors.\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\n\/\/ deal in the Software without restriction, including without limitation the\n\/\/ rights to use, copy, modify, merge, publish, distribute, sublicense, and\/or\n\/\/ sell 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\n\/\/ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n\/\/ IN THE SOFTWARE.\n\n#ifndef LIBMV_ID_GENERATOR_H\n#define LIBMV_ID_GENERATOR_H\n\nnamespace libmv {\n\nclass IdGenerator {\n public:\n IdGenerator() : next_(0) {}\n uint Generate() { return next_++; }\n private:\n uint next_;\n};\n\n} \/\/ namespace libmv\n\n#endif \/\/ LIBMV_ID_GENERATOR_H\n","subject":"Add another missing file :(","message":"Add another missing file :(\n\n","lang":"C","license":"mit","repos":"SoylentGraham\/libmv,rgkoo\/libmv-blender,keir\/libmv,rgkoo\/libmv-blender,Nazg-Gul\/libmv,petertsoi\/libmv,petertsoi\/libmv,keir\/libmv,libmv\/libmv,libmv\/libmv,petertsoi\/libmv,libmv\/libmv,rgkoo\/libmv-blender,Nazg-Gul\/libmv,SoylentGraham\/libmv,Nazg-Gul\/libmv,petertsoi\/libmv,Nazg-Gul\/libmv,rgkoo\/libmv-blender,Nazg-Gul\/libmv,rgkoo\/libmv-blender,keir\/libmv,SoylentGraham\/libmv,keir\/libmv,libmv\/libmv,SoylentGraham\/libmv"} {"commit":"25110f8d507c8432ac6849e2682a40983f752d8e","old_file":"config.def.h","new_file":"config.def.h","old_contents":"#ifdef HAVE_FORK\n#define HAVE_FORK 1\n#endif\n\n#if HAVE_FORK\n# if TARGET_OS_IPHONE || APPLE_SDK_IPHONEOS\n# define HAVE_SYSTEM 0\n# else\n# define HAVE_SYSTEM 1\n# endif\n#else\n# define HAVE_SYSTEM 0\n#endif\n\n#if HAVE_SYSTEM\n#include \"p\/sh.h\"\n#endif\n\n#include \"p\/spp.h\"\n#include \"p\/acr.h\"\n#include \"p\/pod.h\"\n#include \"p\/cpp.h\"\n\nstruct Proc *procs[] = {\n\t&spp_proc,\n\t&cpp_proc,\n\t&pod_proc,\n\t&acr_proc,\n#if HAVE_SYSTEM\n\t&sh_proc,\n#endif\n\tNULL\n};\n\nDEFAULT_PROC(spp)\n\n#define DEBUG 0\n","new_contents":"#ifdef HAVE_FORK\n#define HAVE_FORK 1\n#endif\n\n#if HAVE_FORK\n# if TARGET_OS_IPHONE || APPLE_SDK_IPHONEOS || APPLE_SDK_IPHONESIMULATOR\n# define HAVE_SYSTEM 0\n# else\n# define HAVE_SYSTEM 1\n# endif\n#else\n# define HAVE_SYSTEM 0\n#endif\n\n#if HAVE_SYSTEM\n#include \"p\/sh.h\"\n#endif\n\n#include \"p\/spp.h\"\n#include \"p\/acr.h\"\n#include \"p\/pod.h\"\n#include \"p\/cpp.h\"\n\nstruct Proc *procs[] = {\n\t&spp_proc,\n\t&cpp_proc,\n\t&pod_proc,\n\t&acr_proc,\n#if HAVE_SYSTEM\n\t&sh_proc,\n#endif\n\tNULL\n};\n\nDEFAULT_PROC(spp)\n\n#define DEBUG 0\n","subject":"Fix build for the iPhone Simulator","message":"Fix build for the iPhone Simulator\n","lang":"C","license":"mit","repos":"radare\/spp,radare\/spp,radare\/spp,radare\/spp"} {"commit":"7c3bd324629ef4acd69b8c9eed9379c872283916","old_file":"include\/matrix_constructors_impl.h","new_file":"include\/matrix_constructors_impl.h","old_contents":"\/\/-----------------------------------------------------------------------------\n\/\/ Constructors\n\/\/-----------------------------------------------------------------------------\n\ntemplate\nmatrix::matrix():data_(),rows_(0),cols_(0){}\ntemplate\nmatrix::matrix( std::size_t rows, std::size_t cols ):\n data_(rows*cols),rows_(rows),cols_(cols){}\ntemplate\nmatrix::matrix( std::initializer_list> init_list):\n data_( init_list.size() * init_list.begin()->size() ),\n rows_(init_list.size()),cols_( init_list.begin()->size() ){\n \/\/ TODO: copy values\n}\n\/*\ntemplate\nmatrix::matrix( const matrix& );\ntemplate\nmatrix::matrix( matrix&& );\n*\/\n\n","new_contents":"\/\/-----------------------------------------------------------------------------\n\/\/ Constructors\n\/\/-----------------------------------------------------------------------------\n\ntemplate\nmatrix::matrix():data_(),rows_(0),cols_(0){}\ntemplate\nmatrix::matrix( std::size_t rows, std::size_t cols ):\n data_(rows*cols),rows_(rows),cols_(cols){}\ntemplate\nmatrix::matrix( std::initializer_list> init_list):\n data_( init_list.size() * init_list.begin()->size() ),\n rows_(init_list.size()),cols_( init_list.begin()->size() ){\n \/\/ TODO: copy values\n \/\/ Or create concat function for init_list and use it to initialize\n \/\/ data_ vector.\n}\n\/*\ntemplate\nmatrix::matrix( const matrix& );\ntemplate\nmatrix::matrix( matrix&& );\n*\/\n\n","subject":"Add comment about init_list constructor.","message":"Add comment about init_list constructor.\n","lang":"C","license":"mit","repos":"actinium\/cppMatrix,actinium\/cppMatrix"} {"commit":"e17247a4550b9c9b3394ea378b61ecea17a75da3","old_file":"Linkedlists\/02.c","new_file":"Linkedlists\/02.c","old_contents":"","new_contents":"#include \n#include \n\ntypedef struct n\n{\n int data;\n struct n * next;\n} node;\n\n\/* Print Linked list values *\/\nvoid showList(node * list){\n int i = 1;\n while( list != NULL){\n printf(\"#%d. node, data: %d at pointed: %p, and points to %p\\n\", i, list->data, list, list->next);\n list = list->next;\n i++;\n }\n}\n\nint main(){\n\n node * root;\n \/* First Node Allocation *\/\n root = (node *) malloc(sizeof(node));\n root->data = 0;\n root->next = NULL;\n \/* Create another 9 nodes in the list. *\/\n node * iter = root;\n for(int i = 1; i < 10; i++){\n iter->next = (node *) malloc(sizeof(node));\n iter = iter->next;\n iter->data = i*10;\n iter->next = NULL;\n }\n showList(root);\n return 0;\n}\n\n\/*\n-- Resulted as --\n#1. node, data: 0 at pointed: 00541738, and points to 00541768\n#2. node, data: 10 at pointed: 00541768, and points to 00541778\n#3. node, data: 20 at pointed: 00541778, and points to 00541788\n#4. node, data: 30 at pointed: 00541788, and points to 00541798\n#5. node, data: 40 at pointed: 00541798, and points to 005417A8\n#6. node, data: 50 at pointed: 005417A8, and points to 005417B8\n#7. node, data: 60 at pointed: 005417B8, and points to 005417C8\n#8. node, data: 70 at pointed: 005417C8, and points to 005417D8\n#9. node, data: 80 at pointed: 005417D8, and points to 005417E8\n#10. node, data: 90 at pointed: 005417E8, and points to 00000000\n*\/\n","subject":"Add another nodes by for loop way.","message":"Add another nodes by for loop way.\n","lang":"C","license":"mit","repos":"enverarslan\/DataStructures"} {"commit":"d1bc8e95445224276d7896b8b08cbb0b28a0ca80","old_file":"include\/linux\/err.h","new_file":"include\/linux\/err.h","old_contents":"#ifndef _LINUX_ERR_H\n#define _LINUX_ERR_H\n\n#include \n\n#include \n\n\/*\n * Kernel pointers have redundant information, so we can use a\n * scheme where we can return either an error code or a dentry\n * pointer with the same return value.\n *\n * This should be a per-architecture thing, to allow different\n * error and pointer decisions.\n *\/\n#define MAX_ERRNO\t4095\n\n#ifndef __ASSEMBLY__\n\n#define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO)\n\nstatic inline void *ERR_PTR(long error)\n{\n\treturn (void *) error;\n}\n\nstatic inline long PTR_ERR(const void *ptr)\n{\n\treturn (long) ptr;\n}\n\nstatic inline long IS_ERR(const void *ptr)\n{\n\treturn IS_ERR_VALUE((unsigned long)ptr);\n}\n\n#endif\n\n#endif \/* _LINUX_ERR_H *\/\n","new_contents":"#ifndef _LINUX_ERR_H\n#define _LINUX_ERR_H\n\n#include \n\n#include \n\n\/*\n * Kernel pointers have redundant information, so we can use a\n * scheme where we can return either an error code or a dentry\n * pointer with the same return value.\n *\n * This should be a per-architecture thing, to allow different\n * error and pointer decisions.\n *\/\n#define MAX_ERRNO\t4095\n\n#ifndef __ASSEMBLY__\n\n#define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO)\n\nstatic inline void *ERR_PTR(long error)\n{\n\treturn (void *) error;\n}\n\nstatic inline long PTR_ERR(const void *ptr)\n{\n\treturn (long) ptr;\n}\n\nstatic inline long IS_ERR(const void *ptr)\n{\n\treturn IS_ERR_VALUE((unsigned long)ptr);\n}\n\n\/**\n * ERR_CAST - Explicitly cast an error-valued pointer to another pointer type\n * @ptr: The pointer to cast.\n *\n * Explicitly cast an error-valued pointer to another pointer type in such a\n * way as to make it clear that's what's going on.\n *\/\nstatic inline void *ERR_CAST(const void *ptr)\n{\n\t\/* cast away the const *\/\n\treturn (void *) ptr;\n}\n\n#endif\n\n#endif \/* _LINUX_ERR_H *\/\n","subject":"Add an ERR_CAST() function to complement ERR_PTR and co.","message":"Add an ERR_CAST() function to complement ERR_PTR and co.\n\nAdd an ERR_CAST() function to complement ERR_PTR and co. for the purposes\nof casting an error entyped as one pointer type to an error of another\npointer type whilst making it explicit as to what is going on.\n\nThis provides a replacement for the ERR_PTR(PTR_ERR(p)) construct.\n\nSigned-off-by: David Howells \nSigned-off-by: Andrew Morton <5c1e68b099950c134891f0b6e179498a8ebe9cf9@linux-foundation.org>\nSigned-off-by: Linus Torvalds <69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org>\n","lang":"C","license":"apache-2.0","repos":"TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,KristFoundation\/Programs,KristFoundation\/Programs,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,TeamVee-Kanas\/android_kernel_samsung_kanas"} {"commit":"ef63a5a9f90205a0d9067b3b27d44118fd195bdb","old_file":"sift\/recorder\/threads.h","new_file":"sift\/recorder\/threads.h","old_contents":"#ifndef __THREAD_INFO_H\n#define __THREAD_INFO_H\n\n#include \"globals.h\"\n#include \"sift_writer.h\"\n#include \"bbv_count.h\"\n\n#include \"pin.H\"\n#include \n\ntypedef struct {\n Sift::Writer *output;\n ADDRINT dyn_addresses[Sift::MAX_DYNAMIC_ADDRESSES];\n UINT32 num_dyn_addresses;\n Bbv *bbv;\n UINT64 thread_num;\n ADDRINT bbv_base;\n UINT64 bbv_count;\n ADDRINT bbv_last;\n BOOL bbv_end;\n UINT64 blocknum;\n UINT64 icount;\n UINT64 icount_cacheonly;\n UINT64 icount_cacheonly_pending;\n UINT64 icount_detailed;\n UINT64 icount_reported;\n ADDRINT last_syscall_number;\n ADDRINT last_syscall_returnval;\n UINT64 flowcontrol_target;\n ADDRINT tid_ptr;\n ADDRINT last_routine;\n ADDRINT last_call_site;\n BOOL last_syscall_emulated;\n BOOL running;\n} __attribute__((packed,aligned(LINE_SIZE_BYTES))) thread_data_t;\n\nextern thread_data_t *thread_data;\n\nvoid initThreads();\n\n#endif \/\/ __THREAD_INFO_H\n","new_contents":"#ifndef __THREAD_INFO_H\n#define __THREAD_INFO_H\n\n#include \"globals.h\"\n#include \"sift_writer.h\"\n#include \"bbv_count.h\"\n\n#include \"pin.H\"\n#include \n\ntypedef struct {\n Sift::Writer *output;\n UINT64 dyn_addresses[Sift::MAX_DYNAMIC_ADDRESSES];\n UINT32 num_dyn_addresses;\n Bbv *bbv;\n UINT64 thread_num;\n ADDRINT bbv_base;\n UINT64 bbv_count;\n ADDRINT bbv_last;\n BOOL bbv_end;\n UINT64 blocknum;\n UINT64 icount;\n UINT64 icount_cacheonly;\n UINT64 icount_cacheonly_pending;\n UINT64 icount_detailed;\n UINT64 icount_reported;\n ADDRINT last_syscall_number;\n ADDRINT last_syscall_returnval;\n UINT64 flowcontrol_target;\n ADDRINT tid_ptr;\n ADDRINT last_routine;\n ADDRINT last_call_site;\n BOOL last_syscall_emulated;\n BOOL running;\n} __attribute__((packed,aligned(LINE_SIZE_BYTES))) thread_data_t;\n\nextern thread_data_t *thread_data;\n\nvoid initThreads();\n\n#endif \/\/ __THREAD_INFO_H\n","subject":"Fix 32-bit compile by making the per-thread address data 64-bit","message":"[recorder] Fix 32-bit compile by making the per-thread address data 64-bit\n","lang":"C","license":"mit","repos":"abanaiyan\/sniper,abanaiyan\/sniper,abanaiyan\/sniper,abanaiyan\/sniper,abanaiyan\/sniper"} {"commit":"b9d54ddf6698d75309f2ea4b0dbd8fb2b5f63517","old_file":"common_video\/interface\/texture_video_frame.h","new_file":"common_video\/interface\/texture_video_frame.h","old_contents":"","new_contents":"\/*\n * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.\n *\n * Use of this source code is governed by a BSD-style license\n * that can be found in the LICENSE file in the root of the source\n * tree. An additional intellectual property rights grant can be found\n * in the file PATENTS. All contributing project authors may\n * be found in the AUTHORS file in the root of the source tree.\n *\/\n\n#ifndef COMMON_VIDEO_INTERFACE_TEXTURE_VIDEO_FRAME_H\n#define COMMON_VIDEO_INTERFACE_TEXTURE_VIDEO_FRAME_H\n\n#include \"webrtc\/common_video\/interface\/i420_video_frame.h\"\n\n\/\/ TODO(magjed): Remove this when all external dependencies are updated.\nnamespace webrtc {\n\ntypedef I420VideoFrame TextureVideoFrame;\n\n} \/\/ namespace webrtc\n\n#endif \/\/ COMMON_VIDEO_INTERFACE_TEXTURE_VIDEO_FRAME_H\n","subject":"Add intermediate TextureVideoFrame typedef for Chromium","message":"Add intermediate TextureVideoFrame typedef for Chromium\n\nBUG=1128\nR=perkj@webrtc.org\nTBR=stefan\n\nReview URL: https:\/\/webrtc-codereview.appspot.com\/42239004\n\ngit-svn-id: 03ae4fbe531b1eefc9d815f31e49022782c42458@8630 4adac7df-926f-26a2-2b94-8c16560cd09d\n","lang":"C","license":"bsd-3-clause","repos":"svn2github\/webrtc-Revision-8758,svn2github\/webrtc-Revision-8758,svn2github\/webrtc-Revision-8758,svn2github\/webrtc-Revision-8758,svn2github\/webrtc-Revision-8758,svn2github\/webrtc-Revision-8758"} {"commit":"c5ae794fe0663a31138d5e248076a9dbd6bafa76","old_file":"src\/flsputils.c","new_file":"src\/flsputils.c","old_contents":"","new_contents":"#include \n#include \n#include \n#include \"fake-lock-screen-pattern.h\"\n\nvoid flsp_draw_circle(cairo_t *context, gint x, gint y,\n gint radius, GdkRGBA circle, GdkRGBA border)\n{\n cairo_set_line_width(context, 9);\n cairo_set_source_rgb(context, border.red, border.green, border.blue);\n cairo_arc(context, x, y, radius, 0, 2 * M_PI);\n cairo_stroke_preserve(context);\n cairo_set_source_rgb(context, circle.red, circle.green, circle.blue);\n cairo_fill(context);\n}\n","subject":"Implement function to draw circle","message":"Implement function to draw circle\n","lang":"C","license":"mit","repos":"kenhys\/fake-lock-screen-pattern,kenhys\/fake-lock-screen-pattern"} {"commit":"9af5280bb7f53ddff998b69ad6007349ffcfeb7c","old_file":"src\/lib\/ioloop-notify-none.c","new_file":"src\/lib\/ioloop-notify-none.c","old_contents":"\/* Copyright (C) 2003 Timo Sirainen *\/\n\n#include \"lib.h\"\n#include \"ioloop-internal.h\"\n\n#ifdef IOLOOP_NOTIFY_NONE\n\nstruct io *io_loop_notify_add(struct ioloop *ioloop __attr_unused__,\n\t\t\t const char *path __attr_unused__,\n\t\t\t io_callback_t *callback __attr_unused__,\n\t\t\t void *context __attr_unused__)\n{\n\treturn NULL;\n}\n\nvoid io_loop_notify_remove(struct ioloop *ioloop __attr_unused__,\n\t\t\t struct io *io __attr_unused__)\n{\n}\n\nvoid io_loop_notify_handler_init(struct ioloop *ioloop __attr_unused__)\n{\n}\n\nvoid io_loop_notify_handler_deinit(struct ioloop *ioloop __attr_unused__)\n{\n}\n\n#endif\n","new_contents":"\/* Copyright (C) 2003 Timo Sirainen *\/\n\n#include \"lib.h\"\n#include \"ioloop-internal.h\"\n\n#ifdef IOLOOP_NOTIFY_NONE\n\n#undef io_add_notify\nstruct io *io_add_notify(const char *path __attr_unused__,\n\t\t\t io_callback_t *callback __attr_unused__,\n\t\t\t void *context __attr_unused__)\n{\n\treturn NULL;\n}\n\nvoid io_loop_notify_remove(struct ioloop *ioloop __attr_unused__,\n\t\t\t struct io *io __attr_unused__)\n{\n}\n\nvoid io_loop_notify_handler_deinit(struct ioloop *ioloop __attr_unused__)\n{\n}\n\n#endif\n","subject":"Fix for building without notify","message":"Fix for building without notify\n","lang":"C","license":"mit","repos":"LTD-Beget\/dovecot,LTD-Beget\/dovecot,LTD-Beget\/dovecot,LTD-Beget\/dovecot,LTD-Beget\/dovecot"} {"commit":"7197e7747848558933d7ee48da1d4ffd5ddc335b","old_file":"libsel4muslccamkes\/src\/sys_yield.c","new_file":"libsel4muslccamkes\/src\/sys_yield.c","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#include \n#include \n#include \n#include \n\nlong sys_sched_yield(va_list ap)\n{\n seL4_Yield();\n return 0;\n}\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#include \n#include \n#include \n#include \n\nlong sys_sched_yield(va_list ap)\n{\n \/* won't work *\/\n return 0;\n}\n","subject":"Remove seL4_Yield() since it's removed from the RT kernel.","message":"Remove seL4_Yield() since it's removed from the RT kernel.\n\nJIRA CAMKES-429\n","lang":"C","license":"bsd-2-clause","repos":"smaccm\/camkes-tool,smaccm\/camkes-tool,smaccm\/camkes-tool,smaccm\/camkes-tool"} {"commit":"4afc72fe4adaa08c52b1b5fcbd7ef76ff60404b2","old_file":"Sift\/SFDebug.h","new_file":"Sift\/SFDebug.h","old_contents":"\/\/ Copyright (c) 2016 Sift Science. All rights reserved.\n\n@import Foundation;\n\n\/** Debug output that can be turned on\/off by SF_DEBUG_ENABLE macro. *\/\n#ifdef SF_DEBUG_ENABLE\n#define SF_DEBUG(FORMAT, ...) NSLog(@\"%s:%d \" FORMAT, __FUNCTION__, __LINE__, ## __VA_ARGS__)\n#else\n#define SF_DEBUG(...)\n#endif\n\n\/** Log messages to console that are important to the SDK users. *\/\n#ifdef DEBUG\n#define SF_IMPORTANT(FORMAT, ...) NSLog(@\"%s:%d \" FORMAT, __FUNCTION__, __LINE__, ## __VA_ARGS__)\n#endif\n","new_contents":"\/\/ Copyright (c) 2016 Sift Science. All rights reserved.\n\n@import Foundation;\n\n\/** Debug output that can be turned on\/off by SF_DEBUG_ENABLE macro. *\/\n#ifdef SF_DEBUG_ENABLE\n#define SF_DEBUG(FORMAT, ...) NSLog(@\"%s:%d \" FORMAT, __FUNCTION__, __LINE__, ## __VA_ARGS__)\n#else\n#define SF_DEBUG(...)\n#endif\n\n\/** Log messages to console that are important to the SDK users. *\/\n#ifdef DEBUG\n#define SF_IMPORTANT(FORMAT, ...) NSLog(@\"%s:%d \" FORMAT, __FUNCTION__, __LINE__, ## __VA_ARGS__)\n#else\n#define SF_IMPORTANT(...)\n#endif\n","subject":"Add empty SF_IMPORTANT macro for release build","message":"Add empty SF_IMPORTANT macro for release build\n","lang":"C","license":"mit","repos":"SiftScience\/sift-ios,SiftScience\/sift-ios,SiftScience\/sift-ios,SiftScience\/sift-ios"} {"commit":"1980b7bb0ffee0750ed832fc1b474c6ae6e85b00","old_file":"lib\/libc\/minimal\/include\/stddef.h","new_file":"lib\/libc\/minimal\/include\/stddef.h","old_contents":"\/* stddef.h *\/\n\n\/*\n * Copyright (c) 2014 Wind River Systems, 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#ifndef __INC_stddef_h__\n#define __INC_stddef_h__\n\n#include \n#include \n\n#if !defined(__ptrdiff_t_defined)\n#define __ptrdiff_t_defined\ntypedef int ptrdiff_t;\n#endif\n\n#define offsetof(type, member) ((size_t) (&((type *) NULL)->member))\n\n#endif \/* __INC_stddef_h__ *\/\n","new_contents":"\/* stddef.h *\/\n\n\/*\n * Copyright (c) 2014 Wind River Systems, 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#ifndef __INC_stddef_h__\n#define __INC_stddef_h__\n\n#include \n#include \n\n#if !defined(__ptrdiff_t_defined)\n#define __ptrdiff_t_defined\ntypedef int ptrdiff_t;\n#endif\n\n#if defined(__GNUC__)\n#define offsetof(type, member) __builtin_offsetof(type, member)\n#else\n#define offsetof(type, member) ((size_t) (&((type *) NULL)->member))\n#endif\n\n#endif \/* __INC_stddef_h__ *\/\n","subject":"Use offsetof() builtin with GCC","message":"lib: Use offsetof() builtin with GCC\n\nThe default offsetof() implementation generates a warning\n(variably modified at file scope) when used in\nto define the size of an array. By using this builtin with\nGCC we avoid the warning and make sure no variable-size\narrays are used.\n\nChange-Id: Iae215f777241f7daaa061067230086dffaa8311d\nSigned-off-by: Carles Cufi <853081dc8dca4fe6a7e3c984752718b5db36e060@nordicsemi.no>\n","lang":"C","license":"apache-2.0","repos":"erwango\/zephyr,zephyriot\/zephyr,rsalveti\/zephyr,runchip\/zephyr-cc3220,holtmann\/zephyr,aceofall\/zephyr-iotos,holtmann\/zephyr,punitvara\/zephyr,finikorg\/zephyr,pklazy\/zephyr,zephyriot\/zephyr,kraj\/zephyr,erwango\/zephyr,galak\/zephyr,bboozzoo\/zephyr,finikorg\/zephyr,mbolivar\/zephyr,runchip\/zephyr-cc3220,ldts\/zephyr,galak\/zephyr,Vudentz\/zephyr,ldts\/zephyr,fractalclone\/zephyr-riscv,galak\/zephyr,kraj\/zephyr,mbolivar\/zephyr,kraj\/zephyr,nashif\/zephyr,fractalclone\/zephyr-riscv,tidyjiang8\/zephyr-doc,bboozzoo\/zephyr,erwango\/zephyr,punitvara\/zephyr,GiulianoFranchetto\/zephyr,GiulianoFranchetto\/zephyr,zephyrproject-rtos\/zephyr,fbsder\/zephyr,mbolivar\/zephyr,bigdinotech\/zephyr,runchip\/zephyr-cc3200,nashif\/zephyr,kraj\/zephyr,sharronliu\/zephyr,bigdinotech\/zephyr,sharronliu\/zephyr,fractalclone\/zephyr-riscv,runchip\/zephyr-cc3220,nashif\/zephyr,tidyjiang8\/zephyr-doc,holtmann\/zephyr,holtmann\/zephyr,explora26\/zephyr,Vudentz\/zephyr,punitvara\/zephyr,runchip\/zephyr-cc3200,rsalveti\/zephyr,fbsder\/zephyr,aceofall\/zephyr-iotos,GiulianoFranchetto\/zephyr,sharronliu\/zephyr,bigdinotech\/zephyr,finikorg\/zephyr,aceofall\/zephyr-iotos,pklazy\/zephyr,nashif\/zephyr,finikorg\/zephyr,runchip\/zephyr-cc3220,sharronliu\/zephyr,runchip\/zephyr-cc3200,tidyjiang8\/zephyr-doc,bboozzoo\/zephyr,Vudentz\/zephyr,GiulianoFranchetto\/zephyr,pklazy\/zephyr,fractalclone\/zephyr-riscv,Vudentz\/zephyr,pklazy\/zephyr,bigdinotech\/zephyr,runchip\/zephyr-cc3200,aceofall\/zephyr-iotos,erwango\/zephyr,zephyriot\/zephyr,rsalveti\/zephyr,tidyjiang8\/zephyr-doc,bboozzoo\/zephyr,finikorg\/zephyr,galak\/zephyr,ldts\/zephyr,zephyrproject-rtos\/zephyr,explora26\/zephyr,bigdinotech\/zephyr,runchip\/zephyr-cc3200,erwango\/zephyr,pklazy\/zephyr,ldts\/zephyr,zephyrproject-rtos\/zephyr,nashif\/zephyr,rsalveti\/zephyr,rsalveti\/zephyr,zephyriot\/zephyr,holtmann\/zephyr,sharronliu\/zephyr,Vudentz\/zephyr,kraj\/zephyr,fbsder\/zephyr,explora26\/zephyr,aceofall\/zephyr-iotos,zephyrproject-rtos\/zephyr,zephyrproject-rtos\/zephyr,explora26\/zephyr,punitvara\/zephyr,fractalclone\/zephyr-riscv,zephyriot\/zephyr,tidyjiang8\/zephyr-doc,mbolivar\/zephyr,fbsder\/zephyr,Vudentz\/zephyr,punitvara\/zephyr,mbolivar\/zephyr,galak\/zephyr,explora26\/zephyr,runchip\/zephyr-cc3220,fbsder\/zephyr,bboozzoo\/zephyr,GiulianoFranchetto\/zephyr,ldts\/zephyr"} {"commit":"188b56251284352d2a2da90d5fab31276a834ff7","old_file":"testsuite\/tests\/rts\/T7037_main.c","new_file":"testsuite\/tests\/rts\/T7037_main.c","old_contents":"#include \n#include \n\nint main(int argc, char *argv[]) {\n const char *args[2] = {\"T7037\", NULL};\n execv(\".\/T7037\", args);\n}\n","new_contents":"#include \n#include \n\nint main(int argc, char *argv[]) {\n#ifdef __MINGW32__\n const\n#endif\n char * args[2] = {\"T7037\", NULL};\n execv(\".\/T7037\", args);\n}\n","subject":"Make T7037 work on both Windows and other platforms","message":"Make T7037 work on both Windows and other platforms\n","lang":"C","license":"bsd-3-clause","repos":"mcschroeder\/ghc,forked-upstream-packages-for-ghcjs\/ghc,tibbe\/ghc,ryantm\/ghc,TomMD\/ghc,oldmanmike\/ghc,nkaretnikov\/ghc,mettekou\/ghc,GaloisInc\/halvm-ghc,GaloisInc\/halvm-ghc,nkaretnikov\/ghc,mfine\/ghc,mettekou\/ghc,mcschroeder\/ghc,AlexanderPankiv\/ghc,christiaanb\/ghc,snoyberg\/ghc,ghc-android\/ghc,snoyberg\/ghc,christiaanb\/ghc,hferreiro\/replay,spacekitteh\/smcghc,acowley\/ghc,fmthoma\/ghc,wxwxwwxxx\/ghc,tjakway\/ghcjvm,ghc-android\/ghc,da-x\/ghc,nushio3\/ghc,nkaretnikov\/ghc,bitemyapp\/ghc,anton-dessiatov\/ghc,holzensp\/ghc,nkaretnikov\/ghc,oldmanmike\/ghc,vikraman\/ghc,bitemyapp\/ghc,tjakway\/ghcjvm,anton-dessiatov\/ghc,elieux\/ghc,christiaanb\/ghc,oldmanmike\/ghc,TomMD\/ghc,vikraman\/ghc,spacekitteh\/smcghc,mfine\/ghc,frantisekfarka\/ghc-dsi,ryantm\/ghc,frantisekfarka\/ghc-dsi,sdiehl\/ghc,vikraman\/ghc,jstolarek\/ghc,GaloisInc\/halvm-ghc,forked-upstream-packages-for-ghcjs\/ghc,nathyong\/microghc-ghc,holzensp\/ghc,elieux\/ghc,anton-dessiatov\/ghc,fmthoma\/ghc,lukexi\/ghc-7.8-arm64,nushio3\/ghc,christiaanb\/ghc,mettekou\/ghc,nushio3\/ghc,hferreiro\/replay,nkaretnikov\/ghc,forked-upstream-packages-for-ghcjs\/ghc,ezyang\/ghc,sgillespie\/ghc,ghc-android\/ghc,mettekou\/ghc,sgillespie\/ghc,gridaphobe\/ghc,sgillespie\/ghc,AlexanderPankiv\/ghc,da-x\/ghc,vTurbine\/ghc,urbanslug\/ghc,ryantm\/ghc,christiaanb\/ghc,anton-dessiatov\/ghc,elieux\/ghc,oldmanmike\/ghc,holzensp\/ghc,TomMD\/ghc,urbanslug\/ghc,siddhanathan\/ghc,snoyberg\/ghc,elieux\/ghc,gcampax\/ghc,ml9951\/ghc,ezyang\/ghc,shlevy\/ghc,oldmanmike\/ghc,bitemyapp\/ghc,urbanslug\/ghc,GaloisInc\/halvm-ghc,urbanslug\/ghc,green-haskell\/ghc,urbanslug\/ghc,nushio3\/ghc,jstolarek\/ghc,frantisekfarka\/ghc-dsi,hferreiro\/replay,olsner\/ghc,forked-upstream-packages-for-ghcjs\/ghc,forked-upstream-packages-for-ghcjs\/ghc,anton-dessiatov\/ghc,sdiehl\/ghc,nushio3\/ghc,tibbe\/ghc,vTurbine\/ghc,wxwxwwxxx\/ghc,mettekou\/ghc,ml9951\/ghc,nkaretnikov\/ghc,acowley\/ghc,da-x\/ghc,GaloisInc\/halvm-ghc,da-x\/ghc,shlevy\/ghc,olsner\/ghc,gcampax\/ghc,oldmanmike\/ghc,snoyberg\/ghc,olsner\/ghc,vTurbine\/ghc,lukexi\/ghc-7.8-arm64,sdiehl\/ghc,green-haskell\/ghc,ezyang\/ghc,hferreiro\/replay,tibbe\/ghc,nathyong\/microghc-ghc,gridaphobe\/ghc,sdiehl\/ghc,ml9951\/ghc,sdiehl\/ghc,wxwxwwxxx\/ghc,TomMD\/ghc,anton-dessiatov\/ghc,nathyong\/microghc-ghc,ezyang\/ghc,sgillespie\/ghc,ml9951\/ghc,urbanslug\/ghc,AlexanderPankiv\/ghc,GaloisInc\/halvm-ghc,siddhanathan\/ghc,lukexi\/ghc,ezyang\/ghc,wxwxwwxxx\/ghc,vTurbine\/ghc,sgillespie\/ghc,gridaphobe\/ghc,lukexi\/ghc,tjakway\/ghcjvm,bitemyapp\/ghc,olsner\/ghc,tjakway\/ghcjvm,acowley\/ghc,mcschroeder\/ghc,christiaanb\/ghc,gcampax\/ghc,fmthoma\/ghc,lukexi\/ghc,christiaanb\/ghc,AlexanderPankiv\/ghc,hferreiro\/replay,ml9951\/ghc,gridaphobe\/ghc,olsner\/ghc,mfine\/ghc,ml9951\/ghc,olsner\/ghc,lukexi\/ghc,vikraman\/ghc,shlevy\/ghc,fmthoma\/ghc,olsner\/ghc,shlevy\/ghc,mfine\/ghc,tibbe\/ghc,siddhanathan\/ghc,AlexanderPankiv\/ghc,ezyang\/ghc,bitemyapp\/ghc,tjakway\/ghcjvm,mcschroeder\/ghc,ezyang\/ghc,wxwxwwxxx\/ghc,gcampax\/ghc,mcschroeder\/ghc,holzensp\/ghc,lukexi\/ghc,GaloisInc\/halvm-ghc,siddhanathan\/ghc,nkaretnikov\/ghc,hferreiro\/replay,gcampax\/ghc,sdiehl\/ghc,nathyong\/microghc-ghc,sgillespie\/ghc,ghc-android\/ghc,jstolarek\/ghc,siddhanathan\/ghc,ryantm\/ghc,spacekitteh\/smcghc,lukexi\/ghc-7.8-arm64,ghc-android\/ghc,ml9951\/ghc,fmthoma\/ghc,mfine\/ghc,green-haskell\/ghc,gcampax\/ghc,TomMD\/ghc,da-x\/ghc,acowley\/ghc,mettekou\/ghc,forked-upstream-packages-for-ghcjs\/ghc,ghc-android\/ghc,vikraman\/ghc,fmthoma\/ghc,vTurbine\/ghc,mettekou\/ghc,nushio3\/ghc,sdiehl\/ghc,green-haskell\/ghc,vTurbine\/ghc,frantisekfarka\/ghc-dsi,acowley\/ghc,elieux\/ghc,gridaphobe\/ghc,snoyberg\/ghc,gridaphobe\/ghc,vTurbine\/ghc,ghc-android\/ghc,tjakway\/ghcjvm,snoyberg\/ghc,fmthoma\/ghc,nushio3\/ghc,ryantm\/ghc,mcschroeder\/ghc,nathyong\/microghc-ghc,holzensp\/ghc,vikraman\/ghc,elieux\/ghc,hferreiro\/replay,wxwxwwxxx\/ghc,mfine\/ghc,elieux\/ghc,acowley\/ghc,lukexi\/ghc-7.8-arm64,wxwxwwxxx\/ghc,ml9951\/ghc,shlevy\/ghc,jstolarek\/ghc,da-x\/ghc,shlevy\/ghc,nathyong\/microghc-ghc,tjakway\/ghcjvm,mfine\/ghc,sgillespie\/ghc,gcampax\/ghc,acowley\/ghc,oldmanmike\/ghc,anton-dessiatov\/ghc,nathyong\/microghc-ghc,spacekitteh\/smcghc,vikraman\/ghc,urbanslug\/ghc,lukexi\/ghc-7.8-arm64,spacekitteh\/smcghc,TomMD\/ghc,AlexanderPankiv\/ghc,jstolarek\/ghc,siddhanathan\/ghc,mcschroeder\/ghc,TomMD\/ghc,forked-upstream-packages-for-ghcjs\/ghc,shlevy\/ghc,da-x\/ghc,AlexanderPankiv\/ghc,gridaphobe\/ghc,siddhanathan\/ghc,frantisekfarka\/ghc-dsi,tibbe\/ghc,snoyberg\/ghc,green-haskell\/ghc"} {"commit":"27e5d7c74125784cb278b44e12881ca3596ee868","old_file":"STM32F103GNU\/src\/startup.c","new_file":"STM32F103GNU\/src\/startup.c","old_contents":"\/*\r\n * startup.h\r\n *\r\n * Created on: Nov 15, 2016\r\n * Author: RoyerAriel\r\n *\/\r\n\r\n#ifndef STARTUP_C_\r\n#define STARTUP_C_\r\n#include \"Timer.h\"\r\n\r\nvoid startup()\r\n{\r\n \/\/Start Systick Timer at 1ms\r\n Systick_Startup();\r\n AFIO->MAPR |= AFIO_MAPR_SWJ_CFG_JTAGDISABLE; \/\/0x‭2000000‬\r\n\r\n}\r\n\r\n#endif \/* STARTUP_C_ *\/\r\n","new_contents":"\/*\r\n * startup.h\r\n *\r\n * Created on: Nov 15, 2016\r\n * Author: RoyerAriel\r\n *\/\r\n\r\n#ifndef STARTUP_C_\r\n#define STARTUP_C_\r\n#include \"Timer.h\"\r\n\r\nvoid startup()\r\n{\r\n \/\/Start Systick Timer at 1ms\r\n Systick_Startup();\r\n AFIO->MAPR |= AFIO_MAPR_SWJ_CFG_JTAGDISABLE; \/\/0x‭2000000‬disable jtag \r\n\r\n}\r\n\r\n#endif \/* STARTUP_C_ *\/\r\n","subject":"Disable Jtag came enable by default","message":"Disable Jtag came enable by default \n\nDisable Jtag came enable by default and use GPIOB P04,P03 and P05","lang":"C","license":"epl-1.0","repos":"royel21\/STM32F103GNU,royel21\/STM32F103GNU"} {"commit":"d6e3fda253c18d1a30c14d5b176737c337c00b00","old_file":"IAAI.c","new_file":"IAAI.c","old_contents":"#include \n#include \n#include \n\n#define STTY \"\/bin\/stty \"\nconst char RAW[] = STTY \"raw\";\nconst char COOKED[] = STTY \"cooked\";\n\nconst char default_str[] = \"I AM AN IDIOT \";\n\nint main(int argc, char **argv) {\n system(RAW);\n\n const char *str;\n if ( argc == 2 )\n str = argv[1];\n else\n str = default_str;\n\n size_t len = strlen(str);\n\n while ( 1 ) {\n for ( size_t i = 0 ; i < len ; i++ ) {\n getchar();\n printf(\"\\b%c\", str[i]);\n }\n system(COOKED);\n printf(\"\\n\");\n system(RAW);\n }\n\n return 0;\n}\n","new_contents":"#include \n#include \n#include \n\n#define STTY \"\/bin\/stty \"\nconst char RAW[] = STTY \"raw\";\nconst char COOKED[] = STTY \"cooked\";\n\nconst char default_str[] = \"I AM AN IDIOT \";\n\nint main(int argc, char **argv) {\n system(RAW);\n\n const char *str;\n if ( argc == 2 )\n str = argv[1];\n else\n str = default_str;\n\n size_t len = strlen(str);\n\n while ( 1 ) {\n for ( size_t i = 0 ; i < len ; i++ ) {\n getchar();\n printf(\"\\r\");\n for ( size_t j = 0 ; j <= i ; j++ ) {\n\tprintf(\"%c\", str[j]);\n }\n }\n system(COOKED);\n printf(\"\\n\");\n system(RAW);\n }\n\n return 0;\n}\n","subject":"Allow non printing chars to also work well","message":"Allow non printing chars to also work well\n","lang":"C","license":"mit","repos":"vinamarora8\/IAAI"} {"commit":"7e9ee0eb7233bcfb93f53a18320cf8187c5f5d89","old_file":"libutils\/include\/utils\/fence.h","new_file":"libutils\/include\/utils\/fence.h","old_contents":"\/*\n * Copyright 2016, Data61\n * Commonwealth Scientific and Industrial Research Organisation (CSIRO)\n * ABN 41 687 119 230.\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(D61_BSD)\n *\/\n\n#pragma once\n\n\/* Prevent the compiler from re-ordering any read or write across the fence. *\/\n#define COMPILER_MEMORY_FENCE() __atomic_signal_fence(__ATOMIC_ACQ_REL)\n\n\/* Prevent the compiler from re-ordering any write which follows the fence\n * in program order with any read or write which preceeds the fence in\n * program order. *\/\n#define COMPILER_MEMORY_RELEASE() __atomic_signal_fence(__ATOMIC_RELEASE)\n\n\/* Prevent the compiler from re-ordering any read which preceeds the fence\n * in program order with any read or write which follows the fence in\n * program order *\/.\n#define COMPILER_MEMORY_ACQUIRE() __atomic_signal_fence(__ATOMIC_ACQUIRE)\n","new_contents":"\/*\n * Copyright 2016, Data61\n * Commonwealth Scientific and Industrial Research Organisation (CSIRO)\n * ABN 41 687 119 230.\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(D61_BSD)\n *\/\n\n#pragma once\n\n\/* Prevent the compiler from re-ordering any read or write across the fence. *\/\n#define COMPILER_MEMORY_FENCE() __atomic_signal_fence(__ATOMIC_ACQ_REL)\n\n\/* Prevent the compiler from re-ordering any write which follows the fence\n * in program order with any read or write which preceeds the fence in\n * program order. *\/\n#define COMPILER_MEMORY_RELEASE() __atomic_signal_fence(__ATOMIC_RELEASE)\n\n\/* Prevent the compiler from re-ordering any read which preceeds the fence\n * in program order with any read or write which follows the fence in\n * program order. *\/\n#define COMPILER_MEMORY_ACQUIRE() __atomic_signal_fence(__ATOMIC_ACQUIRE)\n","subject":"Move trailing . inside comment","message":"libutils: Move trailing . inside comment\n","lang":"C","license":"bsd-2-clause","repos":"agacek\/util_libs,agacek\/util_libs,agacek\/util_libs,agacek\/util_libs"} {"commit":"5ffd5d785b8d50aae883fe39055de6e422649418","old_file":"qstr\/main.c","new_file":"qstr\/main.c","old_contents":"","new_contents":"\/\/ ** QueryString\n\/\/\n\/\/ This program reads chars from stdin without echo and put to stdout.\n\/\/\n\n#include \n#include \n#include \n#include \n\nint main(int argc, char * args[])\n{\n\tstruct termios old_tio, new_tio;\n\tunsigned char c;\n\n\t\/* get the terminal settings for stdin *\/\n\ttcgetattr(STDIN_FILENO, &old_tio);\n\n\t\/* we want to keep the old setting to restore them a the end *\/\n\tnew_tio = old_tio;\n\n\t\/* disable canonical mode (buffered i\/o) and local echo *\/\n\tnew_tio.c_lflag &= (~ICANON & ~ECHO);\n\n\t\/* set the new settings immediately *\/\n\ttcsetattr(STDIN_FILENO, TCSANOW, &new_tio);\n\n\twhile ((c = getchar()) != '\\n')\n {\n putchar(c);\n\t};\n\n\t\/* restore the former settings *\/\n\ttcsetattr(STDIN_FILENO, TCSANOW, &old_tio);\n\n\treturn 0;\n}\n","subject":"Add qstr - query string utility","message":"Add qstr - query string utility","lang":"C","license":"mit","repos":"showcode\/tools"} {"commit":"86fb835194f54ccecc33bfaf71f38b636993baab","old_file":"test\/Preprocessor\/comment_save_macro.c","new_file":"test\/Preprocessor\/comment_save_macro.c","old_contents":"\/\/ RUN: clang-cc -E -C %s | FileCheck -strict-whitespace %s\n\/\/ CHECK: boo bork bar \/\/ zot\n\n\/\/ RUN: clang-cc -E -CC %s | FileCheck -strict-whitespace %s\n\/\/ CHECK: boo bork \/* blah*\/ bar \/\/ zot\n\n\/\/ RUN: clang-cc -E %s | FileCheck -strict-whitespace %s\n\/\/ CHECK: boo bork bar\n\n\n#define FOO bork \/\/ blah\nboo FOO bar \/\/ zot\n\n","new_contents":"\/\/ RUN: clang-cc -E -C %s | FileCheck -strict-whitespace %s &&\n\/\/ CHECK: boo bork bar \/\/ zot\n\n\/\/ RUN: clang-cc -E -CC %s | FileCheck -strict-whitespace %s &&\n\/\/ CHECK: boo bork \/* blah*\/ bar \/\/ zot\n\n\/\/ RUN: clang-cc -E %s | FileCheck -strict-whitespace %s\n\/\/ CHECK: boo bork bar\n\n\n#define FOO bork \/\/ blah\nboo FOO bar \/\/ zot\n\n","subject":"Fix a broken test in rev. 85199.","message":"Fix a broken test in rev. 85199.\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@85200 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,llvm-mirror\/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,apple\/swift-clang,llvm-mirror\/clang"} {"commit":"22f57814c548ceb55bd4295768ff1873f3f4e3ae","old_file":"webserver.c","new_file":"webserver.c","old_contents":"#include \n#include \n#include \n\nint main(int argc, char** argv)\n{\n\n\tint listen_fd;\n\n\tstruct sockaddr_in serv_addr;\n\n\tlisten_fd = socket(AF_INET, SOCK_STREAM, 0);\n\n\tserv_addr.sin_family = AF_INET;\n\tserv_addr.sin_addr.s_addr = htonl(INADDR_ANY);\n\tserv_addr.sin_port = htons(8080);\n\n\tbind(listen_fd, (struct sockaddr*)&serv_addr, sizeof(serv_addr));\n\t\n\tif (listen(listen_fd, 64)) {\n\t\tperror(\"listen\");\n\t} else {\n\t\t\n\t}\n\n\treturn 0;\n}\n","new_contents":"#include \n#include \n#include \n#include \n\n#define TRUE 1\n#define BUFFER_SIZE 8096\n\nint main(int argc, char** argv)\n{\n\n\tint listen_fd;\n\tint connection_fd;\n\n\tsocklen_t length;\n\n\tint err;\n\tint read_len;\n\n\tchar buffer[BUFFER_SIZE+1];\n\n\tstruct sockaddr_in serv_addr;\n\tstruct sockaddr_in client_addr;\n\n\tlisten_fd = socket(AF_INET, SOCK_STREAM, 0);\n\n\tserv_addr.sin_family = AF_INET;\n\tserv_addr.sin_addr.s_addr = htonl(INADDR_ANY);\n\tserv_addr.sin_port = htons(8080);\n\n\terr = bind(listen_fd, (struct sockaddr*)&serv_addr, sizeof(serv_addr));\n\n\tif (err == -1) {\n\t\tperror(\"bind\");\n\t}\n\n\terr = listen(listen_fd, 64);\n\n\tif (err == -1) {\n\t\tperror(\"listen\");\n\t}\n\n\twhile (TRUE) {\n\n\t\tconnection_fd = accept(listen_fd, (struct sockaddr*)&client_addr, &length);\n\n\t\tread_len = read(connection_fd, buffer, BUFFER_SIZE);\n\t\tprintf(\"Read %d bytes: %s\\n\", read_len, buffer);\n\t\t\n\t\tclose(connection_fd);\n\t}\n\n\treturn 0;\n}\n","subject":"Implement accept of incoming requests","message":"Implement accept of incoming requests\n","lang":"C","license":"apache-2.0","repos":"benjic\/web-server,benjic\/web-server"} {"commit":"a2c066c1346a897b8a62fac75951009107437f34","old_file":"serialization\/include\/SerializationToStream.h","new_file":"serialization\/include\/SerializationToStream.h","old_contents":"\/\/\/ \\file\n\/\/\/ \\brief This header contains functionality needed for serializing and deserealizing to\/from a stream\n#pragma once\n\n#include \"ISerializable.h\"\n#include \"IStorage.h\"\n\n#include \n\n\/\/\/ Contains all the functionality provided by the library.\nnamespace simpson\n{\n\n\/\/\/ Serialize object to ostream\nstd::ostream& operator<<(std::ostream& outStream, simpson::ISerializable& obj);\n\/\/\/ Deserialize object from istream\nstd::istream& operator>>(std::istream& inStream, simpson::ISerializable* obj);\n\n} \/\/ simpson\n","new_contents":"\/\/\/ \\file\n\/\/\/ \\brief This header contains functionality needed for serializing and deserealizing to\/from a stream\n#pragma once\n\n#include \"IStorage.h\"\n\n#include \n\n\/\/\/ Contains all the functionality provided by the library.\nnamespace simpson\n{\n\nclass ISerializable;\n\n\/\/\/ Serialize object to ostream\nstd::ostream& operator<<(std::ostream& outStream, ISerializable& obj);\n\/\/\/ Deserialize object from istream\nstd::istream& operator>>(std::istream& inStream, ISerializable* obj);\n\n} \/\/ simpson\n","subject":"Change include to forward declaration","message":"Change include to forward declaration\n","lang":"C","license":"mit","repos":"artem-ogre\/simpson,artem-ogre\/simpson"} {"commit":"6779aa4e1884e4bb6e87820f7d29f08a84fde425","old_file":"Kiwi\/KiwiConfiguration.h","new_file":"Kiwi\/KiwiConfiguration.h","old_contents":"\/\/\n\/\/ Licensed under the terms in License.txt\n\/\/\n\/\/ Copyright 2010 Allen Ding. All rights reserved.\n\/\/\n\n#import \n\n#define KW_VERSION 0.5\n\n\/\/ Blocks being unavailable cripples the usability of Kiwi, but is supported\n\/\/ because they are not available on anything less than a device running 3.2.\n#if defined(__BLOCKS__)\n #define KW_BLOCKS_ENABLED 1\n#endif \/\/ #if defined(__BLOCKS__)\n\n\/\/ As of iPhone SDK 4 GM, exceptions thrown across an NSInvocation -invoke or\n\/\/ forwardInvocation: boundary in the simulator will terminate the app instead\n\/\/ of being caught in @catch blocks from the caller side of the -invoke. Kiwi\n\/\/ tries to handle this by storing the first exception that it would have\n\/\/ otherwise thrown in a nasty global that callers can look for and handle.\n\/\/ (Buggy termination is less desirable than global variables).\n\/\/\n\/\/ Obviously, this can only handles cases where Kiwi itself would have raised\n\/\/ an exception.\n#if TARGET_IPHONE_SIMULATOR\n #define KW_TARGET_HAS_INVOCATION_EXCEPTION_BUG 1\n#endif \/\/ #if TARGET_IPHONE_SIMULATOR\n","new_contents":"\/\/\n\/\/ Licensed under the terms in License.txt\n\/\/\n\/\/ Copyright 2010 Allen Ding. All rights reserved.\n\/\/\n\n#import \n\n#define KW_VERSION 0.5\n\n\/\/ Blocks being unavailable cripples the usability of Kiwi, but is supported\n\/\/ because they are not available on anything less than a device running 3.2.\n#if defined(__BLOCKS__)\n #ifndef KW_BLOCKS_ENABLED\n #define KW_BLOCKS_ENABLED 1\n #endif \/\/ #ifndef KW_BLOCKS_ENABLED\n#endif \/\/ #if defined(__BLOCKS__)\n\n\/\/ As of iPhone SDK 4 GM, exceptions thrown across an NSInvocation -invoke or\n\/\/ forwardInvocation: boundary in the simulator will terminate the app instead\n\/\/ of being caught in @catch blocks from the caller side of the -invoke. Kiwi\n\/\/ tries to handle this by storing the first exception that it would have\n\/\/ otherwise thrown in a nasty global that callers can look for and handle.\n\/\/ (Buggy termination is less desirable than global variables).\n\/\/\n\/\/ Obviously, this can only handles cases where Kiwi itself would have raised\n\/\/ an exception.\n#if TARGET_IPHONE_SIMULATOR\n #define KW_TARGET_HAS_INVOCATION_EXCEPTION_BUG 1\n#endif \/\/ #if TARGET_IPHONE_SIMULATOR\n","subject":"Add support for disabling blocks externally via preprocessor macro definitions at the project or target level","message":"Add support for disabling blocks externally via preprocessor macro definitions at the project or target level\n","lang":"C","license":"bsd-3-clause","repos":"ecaselles\/Kiwi,allending\/Kiwi,LiuShulong\/Kiwi,TaemoonCho\/Kiwi,emodeqidao\/Kiwi,weslindsay\/Kiwi,depop\/Kiwi,emodeqidao\/Kiwi,unisontech\/Kiwi,samkrishna\/Kiwi,tangwei6423471\/Kiwi,samkrishna\/Kiwi,tangwei6423471\/Kiwi,indiegogo\/Kiwi,JoistApp\/Kiwi,LiuShulong\/Kiwi,ashfurrow\/Kiwi,howandhao\/Kiwi,iosRookie\/Kiwi,hyperoslo\/Tusen,emodeqidao\/Kiwi,indiegogo\/Kiwi,alloy\/Kiwi,unisontech\/Kiwi,weslindsay\/Kiwi,alloy\/Kiwi,tcirwin\/Kiwi,tangwei6423471\/Kiwi,ecaselles\/Kiwi,iosRookie\/Kiwi,tonyarnold\/Kiwi,samkrishna\/Kiwi,carezone\/Kiwi,tonyarnold\/Kiwi,ashfurrow\/Kiwi,emodeqidao\/Kiwi,depop\/Kiwi,ecaselles\/Kiwi,JoistApp\/Kiwi,tonyarnold\/Kiwi,ecaselles\/Kiwi,hyperoslo\/Tusen,cookov\/Kiwi,hyperoslo\/Tusen,tangwei6423471\/Kiwi,howandhao\/Kiwi,LiuShulong\/Kiwi,tcirwin\/Kiwi,samkrishna\/Kiwi,tcirwin\/Kiwi,JoistApp\/Kiwi,tcirwin\/Kiwi,hyperoslo\/Tusen,howandhao\/Kiwi,cookov\/Kiwi,indiegogo\/Kiwi,PaulTaykalo\/Kiwi,allending\/Kiwi,carezone\/Kiwi,TaemoonCho\/Kiwi,depop\/Kiwi,depop\/Kiwi,unisontech\/Kiwi,allending\/Kiwi,iosRookie\/Kiwi,TaemoonCho\/Kiwi,ashfurrow\/Kiwi,howandhao\/Kiwi,cookov\/Kiwi,TaemoonCho\/Kiwi,LiuShulong\/Kiwi,alloy\/Kiwi,unisontech\/Kiwi,cookov\/Kiwi,weslindsay\/Kiwi,iosRookie\/Kiwi,tonyarnold\/Kiwi,JoistApp\/Kiwi,indiegogo\/Kiwi,PaulTaykalo\/Kiwi,weslindsay\/Kiwi,PaulTaykalo\/Kiwi,PaulTaykalo\/Kiwi,carezone\/Kiwi,allending\/Kiwi,carezone\/Kiwi"} {"commit":"5df03525b7db34b41c9993140e55877a1f0e8fd3","old_file":"test\/Driver\/avr-mmcu.c","new_file":"test\/Driver\/avr-mmcu.c","old_contents":"\/\/ A test for the propagation of the -mmcu option to -cc1 and -cc1as\n\n\/\/ RUN: %clang -### -target avr -mmcu=atmega328p -save-temps %s 2>&1 | FileCheck %s\n\/\/ CHECK: clang{{.*}} \"-cc1\" {{.*}} \"-target-cpu\" \"atmega328p\"\n\/\/ CHECK: clang{{.*}} \"-cc1as\" {{.*}} \"-target-cpu\" \"atmega328p\"\n","new_contents":"\/\/ A test for the propagation of the -mmcu option to -cc1 and -cc1as\n\n\/\/ RUN: %clang -### -target avr -no-canonical-prefixes -mmcu=atmega328p -save-temps %s 2>&1 | FileCheck %s\n\/\/ CHECK: clang{{.*}} \"-cc1\" {{.*}} \"-target-cpu\" \"atmega328p\"\n\/\/ CHECK: clang{{.*}} \"-cc1as\" {{.*}} \"-target-cpu\" \"atmega328p\"\n","subject":"Add a missing -no-canonical-prefixes to test.","message":"[Driver] Add a missing -no-canonical-prefixes to test.\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@300873 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"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,llvm-mirror\/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"} {"commit":"6f92873e8a06ee7d5159d04aac1377c67e2b8c44","old_file":"BIObjCHelpers\/Interface\/BIObjCHelpers.h","new_file":"BIObjCHelpers\/Interface\/BIObjCHelpers.h","old_contents":"\/\/\n\/\/ BIObjCHelpers.h\n\/\/ BIObjCHelpersExample\n\/\/\n\/\/ Created by Bogdan Iusco on 1\/19\/15.\n\/\/ Copyright (c) 2015 Bogdan Iusco. All rights reserved.\n\/\/\n\n\/\/ Starters\n#import \"BIStarterProtocol.h\"\n#import \"BILifecycle.h\"\n#import \"BIStartersFactory.h\"\n#import \"BIOperationQueue.h\"\n\n\/\/ Views\n#import \"BITableView.h\"\n\n\/\/ Datasources\n#import \"BIDatasourceTableView.h\"\n#import \"BIDatasourceCollectionView.h\"\n#import \"BIDatasourceFetchedTableView.h\"\n#import \"BIDatasourceFetchedCollectionView.h\"\n#import \"BIDatasourceFeedTableView.h\"\n#import \"BIBatch.h\"\n\n\/\/ Handlers\n#import \"BIHandlerBase.h\"\n#import \"BIHandlerTableView.h\"\n\n\/\/ Categories\n#import \"NSBundle+BIExtra.h\"\n#import \"NSString+BIExtra.h\"\n#import \"NSDate+BIAttributedString.h\"\n\n\/\/ Batch\n#import \"BIBatch.h\"\n#import \"BIBatchRequest.h\"\n#import \"BIBatchResponse.h\"\n","new_contents":"\/\/\n\/\/ BIObjCHelpers.h\n\/\/ BIObjCHelpersExample\n\/\/\n\/\/ Created by Bogdan Iusco on 1\/19\/15.\n\/\/ Copyright (c) 2015 Bogdan Iusco. All rights reserved.\n\/\/\n\n\/\/ Starters\n#import \"BIStarterProtocol.h\"\n#import \"BILifecycle.h\"\n#import \"BIStartersFactory.h\"\n#import \"BIOperationQueue.h\"\n#import \"BILaunchStartersFactory.h\"\n\n\/\/ Views\n#import \"BITableView.h\"\n\n\/\/ Datasources\n#import \"BIDatasourceTableView.h\"\n#import \"BIDatasourceCollectionView.h\"\n#import \"BIDatasourceFetchedTableView.h\"\n#import \"BIDatasourceFetchedCollectionView.h\"\n#import \"BIDatasourceFeedTableView.h\"\n#import \"BIBatch.h\"\n\n\/\/ Handlers\n#import \"BIHandlerBase.h\"\n#import \"BIHandlerTableView.h\"\n\n\/\/ Categories\n#import \"NSBundle+BIExtra.h\"\n#import \"NSString+BIExtra.h\"\n#import \"NSDate+BIAttributedString.h\"\n\n\/\/ Batch\n#import \"BIBatch.h\"\n#import \"BIBatchRequest.h\"\n#import \"BIBatchResponse.h\"\n","subject":"Add BILaunchStartersFactory to interface file","message":"Add BILaunchStartersFactory to interface file\n","lang":"C","license":"mit","repos":"grigaci\/BIObjCHelpers"} {"commit":"0e4d41f065f7803d096e6c53b3956c820186c3ea","old_file":"freebsd\/util.h","new_file":"freebsd\/util.h","old_contents":"#include \n\n#ifndef TAILQ_END\n#define\tTAILQ_END(head)\t\t\tNULL\n#endif\n","new_contents":"#include \n\n#ifndef TAILQ_END\n#define TAILQ_END(head)\t\t\tNULL\n#endif\n\n#ifndef SIMPLEQ_HEAD\n#define SIMPLEQ_HEAD\t\t\tSTAILQ_HEAD\n#define SIMPLEQ_HEAD_INITIALIZER\tSTAILQ_HEAD_INITIALIZER\n#define SIMPLEQ_ENTRY\t\t\tSTAILQ_ENTRY\n#define SIMPLEQ_INIT\t\t\tSTAILQ_INIT\n#define SIMPLEQ_INSERT_AFTER\t\tSTAILQ_INSERT_AFTER\n#define SIMPLEQ_INSERT_HEAD\t\tSTAILQ_INSERT_HEAD\n#define SIMPLEQ_INSERT_TAIL\t\tSTAILQ_INSERT_TAIL\n#define SIMPLEQ_EMPTY\t\t\tSTAILQ_EMPTY\n#define SIMPLEQ_FIRST\t\t\tSTAILQ_FIRST\n#define SIMPLEQ_REMOVE_AFTER\t\tSTAILQ_REMOVE_AFTER\n#define SIMPLEQ_REMOVE_HEAD\t\tSTAILQ_REMOVE_HEAD\n#define SIMPLEQ_FOREACH\t\t\tSTAILQ_FOREACH\n#define SIMPLEQ_END(head)\t\tNULL\n#endif\n","subject":"Add SIMPLEQ->STAILQ macros for freebsd.","message":"Add SIMPLEQ->STAILQ macros for freebsd.\n","lang":"C","license":"isc","repos":"conformal\/spectrwm,conformal\/spectrwm,conformal\/spectrwm"} {"commit":"e5155ae7c734428d5456c1b7d47bbc2ac31f6da9","old_file":"inputhandler.c","new_file":"inputhandler.c","old_contents":"","new_contents":"\/\/This is a preliminary version of this file for testing and learning purposes\n\/\/Author: Jonas Iacobi\n#include \n#include \n#include \n#include \n\nchar* getMessage(char* filename){\n char* msg = NULL;\n int msgLength, txtLength;\n FILE *fp = fopen( filename, \"r\");\n\n if(fp){\n \/\/Find end of text file, find file size, and go back to beginning of file.\n fseek(fp, 0, SEEK_END);\n msgLength = ftell(fp);\n fseek(fp, SEEK_SET, 0);\n\n \/\/Allocate memory for the string\n msg = ((char*) malloc(sizeof(char) * msgLength+1));\n\n \/\/Read the entire file pointed to by fp in chunks of 2 byte to the string msg and store the read size in txtLength.\n txtLength = fread(msg, sizeof(char), msgLength, fp);\n msg[msgLength] = '\\0';\n fclose(fp);\n \/\/Error check\n if(msgLength != txtLength){\n \/\/The read failed somehow. Abort mission.\n free(msg);\n msg = NULL;\n return \"Error: Length of file not equal to length of read. That's probably my fault -Jonas\";\n }\n\n return msg;\n }\n else{\n return \"Error: File not found. Please contact the poor students who made this.\";\n }\n}\n\nint main(){\n char* filename = \"C:\/Users\/iacob\/Desktop\/msg.txt\";\n printf(\"%s\\n\", filename);\n char* message = getMessage(filename);\n printf(\"%s\\n\", message);\n return 0;\n}\n","subject":"Revert \"Revert \"Created a preliminary getMessage method\"\"","message":"Revert \"Revert \"Created a preliminary getMessage method\"\"\n\nThis reverts commit 7d29c8faff9ffba05d14e7597e78dd24da7eaab4.\n","lang":"C","license":"mit","repos":"Zaladar\/PPM,Zaladar\/PPM,Zaladar\/PPM"} {"commit":"264a4058eb58ba078069f2cc2ff6fa9ae015bc4d","old_file":"src\/stack.h","new_file":"src\/stack.h","old_contents":"#ifndef _STACK_H_\n#define _STACK_H_\n\/*\n * data stack for use with automaton infrastructure\n *\/\n\n#include \"dataStackEntry.h\"\n\ntypedef struct stack Stack;\n\nStack *stack_create(int size);\nvoid stack_destroy(Stack *st);\nvoid reset(Stack *st);\nvoid push(Stack *st, DataStackEntry d);\nDataStackEntry pop(Stack *st);\n\n#endif \/* _STACK_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#ifndef _STACK_H_\n#define _STACK_H_\n\/*\n * data stack for use with automaton infrastructure\n *\/\n\n#include \"dataStackEntry.h\"\n\ntypedef struct stack Stack;\n\nStack *stack_create(int size);\nvoid stack_destroy(Stack *st);\nvoid reset(Stack *st);\nvoid push(Stack *st, DataStackEntry d);\nDataStackEntry pop(Stack *st);\n\n#endif \/* _STACK_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":"jsventek\/Cache,fergul\/Cache,jsventek\/Cache,fergul\/Cache,jsventek\/Cache,fergul\/Cache"} {"commit":"eee5fc4106b389daeb709112f77b1a2e41ceee30","old_file":"src\/sysdeps\/tryarc4random_addrandom.c","new_file":"src\/sysdeps\/tryarc4random_addrandom.c","old_contents":"\/* ISC license. *\/\n\n#undef _POSIX_C_SOURCE\n#undef _XOPEN_SOURCE\n\n#include \n\nint main (void)\n{\n arc4random_addrandom(\"\", 1) ;\n return 0 ;\n}\n","new_contents":"\/* ISC license. *\/\n\n#undef _POSIX_C_SOURCE\n#undef _XOPEN_SOURCE\n\n#include \n\nint main (void)\n{\n unsigned char *blah = \"\" ;\n arc4random_addrandom(blah, 1) ;\n return 0 ;\n}\n","subject":"Fix arc4random_addrandom detection for -Werror=pointer-sign","message":" Fix arc4random_addrandom detection for -Werror=pointer-sign\n","lang":"C","license":"isc","repos":"skarnet\/skalibs,skarnet\/skalibs"} {"commit":"b56a4389c1ae7ce29e2221db3339ce7a9ec2ff62","old_file":"test\/main.c","new_file":"test\/main.c","old_contents":"#include \n\n#include \"bincookie.h\"\n\nint main(int argc, char *argv[]) {\n if (argc != 2) {\n printf(\"Usage: %s [Full path to Cookies.binarycookies file]\\n\", argv[0]);\n printf(\"Example: %s Cookies.binarycookies\\n\", argv[0]);\n return 1;\n }\n\n binarycookies_t *bc = binarycookies_init(argv[1]);\n unsigned int i, j;\n binarycookies_flag flags;\n\n \/\/ Output in Netscape cookies.txt format\n for (i = 0; i < bc->num_pages; i++) {\n for (j = 0; j < bc->pages[i]->number_of_cookies; j++) {\n flags = bc->pages[i]->cookies[j]->flags;\n\n \/\/ domain, flag, path, secure, expiration, name, value\n printf(\"%s\\t%s\\t%s\\t%s\\t%.f\\t%s\\t%s\\n\",\n bc->pages[i]->cookies[j]->url,\n bc->pages[i]->cookies[j]->url[0] == '.' ? \"TRUE\" : \"FALSE\",\n bc->pages[i]->cookies[j]->path,\n flags == secure || flags == secure_http_only ? \"TRUE\" : \"FALSE\",\n bc->pages[i]->cookies[j]->expiration_date,\n bc->pages[i]->cookies[j]->name,\n bc->pages[i]->cookies[j]->value);\n }\n }\n\n binarycookies_free(bc);\n\n return 0;\n}\n","new_contents":"#include \n\n#include \"bincookie.h\"\n\nint main(int argc, char *argv[]) {\n if (argc != 2) {\n printf(\"Usage: %s [Full path to Cookies.binarycookies file]\\n\", argv[0]);\n printf(\"Example: %s Cookies.binarycookies\\n\", argv[0]);\n return 1;\n }\n\n binarycookies_t *bc = binarycookies_init(argv[1]);\n unsigned int i, j;\n\n \/\/ Output in Netscape cookies.txt format\n for (i = 0; i < bc->num_pages; i++) {\n for (j = 0; j < bc->pages[i]->number_of_cookies; j++) {\n \/\/ domain, flag, path, secure, expiration, name, value\n printf(\"%s\\t%s\\t%s\\t%s\\t%.f\\t%s\\t%s\\n\",\n bc->pages[i]->cookies[j]->url,\n bc->pages[i]->cookies[j]->url[0] == '.' ? \"TRUE\" : \"FALSE\",\n bc->pages[i]->cookies[j]->path,\n binarycookies_is_secure(bc->pages[i]->cookies[j]) ? \"TRUE\" : \"FALSE\",\n bc->pages[i]->cookies[j]->expiration_date,\n bc->pages[i]->cookies[j]->name,\n bc->pages[i]->cookies[j]->value);\n }\n }\n\n binarycookies_free(bc);\n\n return 0;\n}\n","subject":"Use macro to check security of cookie","message":"Use macro to check security of cookie\n","lang":"C","license":"mit","repos":"Tatsh\/libbinarycookies,Tatsh\/libbinarycookies"} {"commit":"1f1e880a7ff7fc1dcb3dbba5910ff6e5a65603c6","old_file":"net\/proxy\/proxy_resolver_mac.h","new_file":"net\/proxy\/proxy_resolver_mac.h","old_contents":"\/\/ Copyright (c) 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 NET_PROXY_PROXY_RESOLVER_MAC_H_\n#define NET_PROXY_PROXY_RESOLVER_MAC_H_\n#pragma once\n\n#include \n\n#include \"googleurl\/src\/gurl.h\"\n#include \"net\/base\/net_errors.h\"\n#include \"net\/proxy\/proxy_resolver.h\"\n\nnamespace net {\n\n\/\/ Implementation of ProxyResolver that uses the Mac CFProxySupport to implement\n\/\/ proxies.\nclass ProxyResolverMac : public ProxyResolver {\n public:\n ProxyResolverMac() : ProxyResolver(false \/*expects_pac_bytes*\/) {}\n\n \/\/ ProxyResolver methods:\n virtual int GetProxyForURL(const GURL& url,\n ProxyInfo* results,\n CompletionCallback* callback,\n RequestHandle* request,\n const BoundNetLog& net_log);\n\n virtual void CancelRequest(RequestHandle request) {\n NOTREACHED();\n }\n\n virtual int SetPacScript(\n const scoped_refptr& script_data,\n CompletionCallback* \/*callback*\/) {\n script_data_ = script_data_;\n return OK;\n }\n\n private:\n scoped_refptr script_data_;\n};\n\n} \/\/ namespace net\n\n#endif \/\/ NET_PROXY_PROXY_RESOLVER_MAC_H_\n","new_contents":"\/\/ Copyright (c) 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 NET_PROXY_PROXY_RESOLVER_MAC_H_\n#define NET_PROXY_PROXY_RESOLVER_MAC_H_\n#pragma once\n\n#include \n\n#include \"googleurl\/src\/gurl.h\"\n#include \"net\/base\/net_errors.h\"\n#include \"net\/proxy\/proxy_resolver.h\"\n\nnamespace net {\n\n\/\/ Implementation of ProxyResolver that uses the Mac CFProxySupport to implement\n\/\/ proxies.\nclass ProxyResolverMac : public ProxyResolver {\n public:\n ProxyResolverMac() : ProxyResolver(false \/*expects_pac_bytes*\/) {}\n\n \/\/ ProxyResolver methods:\n virtual int GetProxyForURL(const GURL& url,\n ProxyInfo* results,\n CompletionCallback* callback,\n RequestHandle* request,\n const BoundNetLog& net_log);\n\n virtual void CancelRequest(RequestHandle request) {\n NOTREACHED();\n }\n\n virtual int SetPacScript(\n const scoped_refptr& script_data,\n CompletionCallback* \/*callback*\/) {\n script_data_ = script_data;\n return OK;\n }\n\n private:\n scoped_refptr script_data_;\n};\n\n} \/\/ namespace net\n\n#endif \/\/ NET_PROXY_PROXY_RESOLVER_MAC_H_\n","subject":"Fix a typo, that could cause a crash on mac.","message":"Fix a typo, that could cause a crash on mac.\n\nBUG=50717\nTBR=rvargas\nTEST=Set system proxy settings to use a custom PAC script, then launch TestShell.app -- should not crash.\nReview URL: http:\/\/codereview.chromium.org\/3023030\n\ngit-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@54279 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":"6f608d521539a6c6d492185c964853021ba4a5a3","old_file":"lib\/assembly.h","new_file":"lib\/assembly.h","old_contents":"\/* ===-- assembly.h - compiler-rt assembler support macros -----------------===\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 macros for use in compiler-rt assembler source.\n * This file is not part of the interface of this library.\n *\n * ===----------------------------------------------------------------------===\n *\/\n\n#ifndef COMPILERRT_ASSEMBLY_H\n#define COMPILERRT_ASSEMBLY_H\n\n\/\/ Define SYMBOL_NAME to add the appropriate symbol prefix; we can't use\n\/\/ USER_LABEL_PREFIX directly because of cpp brokenness.\n#if defined(__POWERPC__) || defined(__powerpc__) || defined(__ppc__)\n\n#define SYMBOL_NAME(name) name\n#define SEPARATOR @\n\n#else\n\n#define SYMBOL_NAME(name) _##name\n#define SEPARATOR ;\n\n#endif\n\n#define DEFINE_COMPILERRT_FUNCTION(name) \\\n .globl SYMBOL_NAME(name) SEPARATOR \\\n SYMBOL_NAME(name):\n\n#define DEFINE_COMPILERRT_PRIVATE_FUNCTION(name) \\\n .globl SYMBOL_NAME(name) SEPARATOR \\\n .private_extern SYMBOL_NAME(name) SEPARATOR \\\n SYMBOL_NAME(name):\n\n#endif \/* COMPILERRT_ASSEMBLY_H *\/\n","new_contents":"\/* ===-- assembly.h - compiler-rt assembler support macros -----------------===\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 macros for use in compiler-rt assembler source.\n * This file is not part of the interface of this library.\n *\n * ===----------------------------------------------------------------------===\n *\/\n\n#ifndef COMPILERRT_ASSEMBLY_H\n#define COMPILERRT_ASSEMBLY_H\n\n\/\/ Define SYMBOL_NAME to add the appropriate symbol prefix; we can't use\n\/\/ USER_LABEL_PREFIX directly because of cpp brokenness.\n#if defined(__POWERPC__) || defined(__powerpc__) || defined(__ppc__)\n\n#define SYMBOL_NAME(name) name\n#define SEPARATOR @\n\n#else\n\n#define SYMBOL_NAME(name) #__USER_LABEL_PREFIX__ ##name\n#define SEPARATOR ;\n\n#endif\n\n#define DEFINE_COMPILERRT_FUNCTION(name) \\\n .globl SYMBOL_NAME(name) SEPARATOR \\\n SYMBOL_NAME(name):\n\n#define DEFINE_COMPILERRT_PRIVATE_FUNCTION(name) \\\n .globl SYMBOL_NAME(name) SEPARATOR \\\n .private_extern SYMBOL_NAME(name) SEPARATOR \\\n SYMBOL_NAME(name):\n\n#endif \/* COMPILERRT_ASSEMBLY_H *\/\n","subject":"Use __USER_LABEL_PREFIX__ so that we don't add a _ prefix on ELF.","message":"Use __USER_LABEL_PREFIX__ so that we don't add a _ prefix on ELF.\n\n\ngit-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@86542 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":"c1c9990cbac5231efe8989ab34909ef948fb73cd","old_file":"cpp\/include\/phevaluator\/card.h","new_file":"cpp\/include\/phevaluator\/card.h","old_contents":"#ifndef PHEVALUATOR_CARD_H\n#define PHEVALUATOR_CARD_H\n\n#ifdef __cplusplus\n\n#include \n#include \n\nnamespace phevaluator {\n\nclass Card {\n public:\n Card() {}\n\n Card(int id) : id_(id) {}\n\n Card(std::string name) {\n const std::unordered_map rankMap = {\n {'2', 0}, {'3', 1}, {'4', 2}, {'5', 3},\n {'6', 4}, {'7', 5}, {'8', 6}, {'9', 7},\n {'T', 8}, {'J', 9}, {'Q', 10}, {'K', 11}, {'A', 12},\n };\n const std::unordered_map suitMap = {\n {'C', 0}, {'D', 1}, {'H', 2}, {'S', 3},\n {'c', 0}, {'d', 1}, {'h', 2}, {'s', 3},\n };\n\n if (name.length() < 2) {\n \/\/ TODO: throw an exception here\n }\n\n id_ = rankMap.at(name[0]) * 4 + suitMap.at(name[1]);\n }\n\n operator int() const { return id_; }\n\n private:\n int id_;\n};\n\n} \/\/ namespace phevaluator\n\n#endif \/\/ __cplusplus\n\n#endif \/\/ PHEVALUATOR_CARD_H\n","new_contents":"#ifndef PHEVALUATOR_CARD_H\n#define PHEVALUATOR_CARD_H\n\n#ifdef __cplusplus\n\n#include \n#include \n\nnamespace phevaluator {\n\nclass Card {\n public:\n Card() {}\n\n Card(int id) : id_(id) {}\n\n Card(std::string name) {\n const std::unordered_map rankMap = {\n {'2', 0}, {'3', 1}, {'4', 2}, {'5', 3},\n {'6', 4}, {'7', 5}, {'8', 6}, {'9', 7},\n {'T', 8}, {'J', 9}, {'Q', 10}, {'K', 11}, {'A', 12},\n };\n const std::unordered_map suitMap = {\n {'C', 0}, {'D', 1}, {'H', 2}, {'S', 3},\n {'c', 0}, {'d', 1}, {'h', 2}, {'s', 3},\n };\n\n if (name.length() < 2) {\n \/\/ TODO: throw an exception here\n }\n\n id_ = rankMap.at(name[0]) * 4 + suitMap.at(name[1]);\n }\n\n Card(const char name[]) : Card(std::string(name)) {}\n\n operator int() const { return id_; }\n\n private:\n int id_;\n};\n\n} \/\/ namespace phevaluator\n\n#endif \/\/ __cplusplus\n\n#endif \/\/ PHEVALUATOR_CARD_H\n","subject":"Add parameter type `const char []` to the Card constructor","message":"Add parameter type `const char []` to the Card constructor\n","lang":"C","license":"apache-2.0","repos":"HenryRLee\/PokerHandEvaluator,HenryRLee\/PokerHandEvaluator,HenryRLee\/PokerHandEvaluator"} {"commit":"213ebf26505763a32d7248b0e86a1cb7b50d9f6a","old_file":"test2\/arrays\/qualified_type_checks.c","new_file":"test2\/arrays\/qualified_type_checks.c","old_contents":"","new_contents":"\/\/ RUN: %ucc -fsyntax-only %s\n\ntypedef int array[3];\n\nconst array yo; \/\/ int const yo[3];\n\/\/ ^~ no const here\n\nh(array); \/\/ int h(int [3]);\n\ni(const array); \/\/ int i(int const [3]);\n\/\/ ^~ no const here\n\nj(int[const]); \/\/ int j(int *const);\n\n\n_Static_assert(_Generic(yo, const int[3]: 1) == 1, \"\");\n\n_Static_assert(_Generic(&h, int (*)(int[3]): 1) == 1, \"\");\n_Static_assert(_Generic(&h, int (*)(int const[3]): 1, default: 2) == 2, \"\");\n_Static_assert(_Generic(&h, int (*)(int *const): 1) == 1, \"\");\n_Static_assert(_Generic(&h, int (*)(int *): 1) == 1, \"\");\n\n_Static_assert(_Generic(&i, int (*)(int const[3]): 1) == 1, \"\");\n_Static_assert(_Generic(&i, int (*)(int [3]): 1, default: 2) == 2, \"\");\n_Static_assert(_Generic(&i, int (*)(int const *): 1) == 1, \"\");\n_Static_assert(_Generic(&i, int (*)(int const *const): 1) == 1, \"\");\n\n_Static_assert(_Generic(&j, int (*)(int *const): 1) == 1, \"\");\n_Static_assert(_Generic(&j, int (*)(int [const]): 1) == 1, \"\");\n_Static_assert(_Generic(&j, int (*)(int const *const): 1, default: 2) == 2, \"\");\n_Static_assert(_Generic(&j, int (*)(int const [const]): 1, default: 2) == 2, \"\");\n","subject":"Add function parameter qualifier type tests","message":"Add function parameter qualifier type tests\n","lang":"C","license":"mit","repos":"bobrippling\/ucc-c-compiler,bobrippling\/ucc-c-compiler,bobrippling\/ucc-c-compiler"} {"commit":"c13fa6ae63ef93364adc41d332eaa249f3585ec6","old_file":"lib\/bytestream.h","new_file":"lib\/bytestream.h","old_contents":"#ifndef __BYTESTREAM__\n#define __BYTESTREAM__\n\n#include \n#include \n\n#define BS_RO 0\n#define BS_RW 1\n\ntypedef struct _ByteStream {\n char* filename;\n size_t size;\n\n uint8_t* data;\n uint32_t offset;\n\n int exhausted;\n} ByteStream;\n\nByteStream* bsalloc(unsigned int size);\nByteStream* bsmap(char* filename);\nint bsfree(ByteStream* bstream);\n\nvoid bsseek(ByteStream* bs, uint32_t offset);\nvoid bsreset(ByteStream* bs);\n\nunsigned int bsread(ByteStream* bs, uint8_t* buf, size_t size);\nunsigned int bsread_offset(ByteStream* bs, uint8_t* buf, size_t size,\n\t\t\t uint32_t offset);\n\nint bswrite(ByteStream* bs, uint8_t* data, unsigned int size);\nunsigned int bswrite_offset(ByteStream* bs, uint8_t* buf, size_t size, \n\t\t\t uint32_t offset);\n\nint bssave(ByteStream* bs, char* filename);\n\n#endif\n","new_contents":"#ifndef __BYTESTREAM__\n#define __BYTESTREAM__\n\n#include \n#include \n\n#define BS_RO 0\n#define BS_RW 1\n\n\/\/ MAP_ANONYMOUS is MAP_ANON on OSX, so this will let us compile\n#ifndef MAP_ANONYMOUS\n#define MAP_ANONYMOUS MAP_ANON\n#endif\n\ntypedef struct _ByteStream {\n char* filename;\n size_t size;\n\n uint8_t* data;\n uint32_t offset;\n\n int exhausted;\n} ByteStream;\n\nByteStream* bsalloc(unsigned int size);\nByteStream* bsmap(char* filename);\nint bsfree(ByteStream* bstream);\n\nvoid bsseek(ByteStream* bs, uint32_t offset);\nvoid bsreset(ByteStream* bs);\n\nunsigned int bsread(ByteStream* bs, uint8_t* buf, size_t size);\nunsigned int bsread_offset(ByteStream* bs, uint8_t* buf, size_t size,\n\t\t\t uint32_t offset);\n\nint bswrite(ByteStream* bs, uint8_t* data, unsigned int size);\nunsigned int bswrite_offset(ByteStream* bs, uint8_t* buf, size_t size, \n\t\t\t uint32_t offset);\n\nint bssave(ByteStream* bs, char* filename);\n\n#endif\n","subject":"Fix compilation on OSX MAP_ANONYMOUS is MAP_ANON on OSX, so this will let the project compile.","message":"Fix compilation on OSX\nMAP_ANONYMOUS is MAP_ANON on OSX, so this\nwill let the project compile.\n","lang":"C","license":"bsd-3-clause","repos":"strazzere\/dexterity,rchiossi\/dexterity,rchiossi\/dexterity,rchiossi\/dexterity,strazzere\/dexterity,strazzere\/dexterity"} {"commit":"766a76e551d945fc2513a7c2968544a19c810d96","old_file":"common\/bpf\/lib\/dbg.h","new_file":"common\/bpf\/lib\/dbg.h","old_contents":"#ifndef __LIB_DBG__\n#define __LIB_DBG__\n\n#define DEBUG\n#ifdef DEBUG\n# define printk(fmt, ...)\t\t\t\t\t\\\n\t\t({\t\t\t\t\t\t\\\n\t\t\tchar ____fmt[] = fmt;\t\t\t\\\n\t\t\ttrace_printk(____fmt, sizeof(____fmt),\t\\\n\t\t\t\t ##__VA_ARGS__);\t\t\\\n\t\t})\n#else\n# define printk(fmt, ...)\t\t\t\t\t\\\n\t\tdo { } while (0)\n#endif\n\n#endif \/* __LIB_DBG__ *\/\n","new_contents":"#ifndef __LIB_DBG__\n#define __LIB_DBG__\n\n#ifdef DEBUG\n# define printk(fmt, ...)\t\t\t\t\t\\\n\t\t({\t\t\t\t\t\t\\\n\t\t\tchar ____fmt[] = fmt;\t\t\t\\\n\t\t\ttrace_printk(____fmt, sizeof(____fmt),\t\\\n\t\t\t\t ##__VA_ARGS__);\t\t\\\n\t\t})\n#else\n# define printk(fmt, ...)\t\t\t\t\t\\\n\t\tdo { } while (0)\n#endif\n\n#endif \/* __LIB_DBG__ *\/\n","subject":"Remove DEBUG for performance testing.","message":"Remove DEBUG for performance testing.\n","lang":"C","license":"apache-2.0","repos":"gumpt\/cilium,mskarbek\/cilium,scanf\/cilium,tgraf\/cilium,scanf\/cilium,cilium\/cilium,gumpt\/cilium,ivar-lazzaro\/cilium,michi-covalent\/cilium,michi-covalent\/cilium,michi-covalent\/cilium,ivar-lazzaro\/cilium,scanf\/cilium,michi-covalent\/cilium,tklauser\/cilium,mskarbek\/cilium,gumpt\/cilium,scanf\/cilium,ivar-lazzaro\/cilium,mskarbek\/cilium,cilium\/cilium,tgraf\/cilium,ivar-lazzaro\/cilium,eloycoto\/cilium,eloycoto\/cilium,tgraf\/cilium,gumpt\/cilium,scanf\/cilium,eloycoto\/cilium,ivar-lazzaro\/cilium,tklauser\/cilium,tgraf\/cilium,mskarbek\/cilium,eloycoto\/cilium,mskarbek\/cilium,gumpt\/cilium,scanf\/cilium,scanf\/cilium,gumpt\/cilium,tgraf\/cilium,eloycoto\/cilium,ivar-lazzaro\/cilium,eloycoto\/cilium,tklauser\/cilium,eloycoto\/cilium,cilium\/cilium,cilium-team\/cilium,tklauser\/cilium,mskarbek\/cilium,cilium\/cilium,tklauser\/cilium,michi-covalent\/cilium,cilium-team\/cilium,cilium\/cilium,tgraf\/cilium,gumpt\/cilium"} {"commit":"399869422abf30a0f635596263fd315ea9bde266","old_file":"Kiwi\/KiwiConfiguration.h","new_file":"Kiwi\/KiwiConfiguration.h","old_contents":"\/\/\n\/\/ Licensed under the terms in License.txt\n\/\/\n\/\/ Copyright 2010 Allen Ding. All rights reserved.\n\/\/\n\n#import \n\n#define KW_VERSION 0.5\n\n\/\/ Blocks being unavailable cripples the usability of Kiwi, but is supported\n\/\/ because they are not available on anything less than a device running 3.2.\n#if defined(__BLOCKS__)\n #define KW_BLOCKS_ENABLED 1\n#endif \/\/ #if defined(__BLOCKS__)\n\n\/\/ As of iPhone SDK 4 GM, exceptions thrown across an NSInvocation -invoke or\n\/\/ forwardInvocation: boundary in the simulator will terminate the app instead\n\/\/ of being caught in @catch blocks from the caller side of the -invoke. Kiwi\n\/\/ tries to handle this by storing the first exception that it would have\n\/\/ otherwise thrown in a nasty global that callers can look for and handle.\n\/\/ (Buggy termination is less desirable than global variables).\n\/\/\n\/\/ Obviously, this can only handles cases where Kiwi itself would have raised\n\/\/ an exception.\n#if TARGET_IPHONE_SIMULATOR\n #define KW_TARGET_HAS_INVOCATION_EXCEPTION_BUG 1\n#endif \/\/ #if TARGET_IPHONE_SIMULATOR\n","new_contents":"\/\/\n\/\/ Licensed under the terms in License.txt\n\/\/\n\/\/ Copyright 2010 Allen Ding. All rights reserved.\n\/\/\n\n#import \n\n#define KW_VERSION 0.5\n\n\/\/ Blocks being unavailable cripples the usability of Kiwi, but is supported\n\/\/ because they are not available on anything less than a device running 3.2.\n#if defined(__BLOCKS__)\n #ifndef KW_BLOCKS_ENABLED\n #define KW_BLOCKS_ENABLED 1\n #endif \/\/ #ifndef KW_BLOCKS_ENABLED\n#endif \/\/ #if defined(__BLOCKS__)\n\n\/\/ As of iPhone SDK 4 GM, exceptions thrown across an NSInvocation -invoke or\n\/\/ forwardInvocation: boundary in the simulator will terminate the app instead\n\/\/ of being caught in @catch blocks from the caller side of the -invoke. Kiwi\n\/\/ tries to handle this by storing the first exception that it would have\n\/\/ otherwise thrown in a nasty global that callers can look for and handle.\n\/\/ (Buggy termination is less desirable than global variables).\n\/\/\n\/\/ Obviously, this can only handles cases where Kiwi itself would have raised\n\/\/ an exception.\n#if TARGET_IPHONE_SIMULATOR\n #define KW_TARGET_HAS_INVOCATION_EXCEPTION_BUG 1\n#endif \/\/ #if TARGET_IPHONE_SIMULATOR\n","subject":"Add support for disabling blocks externally via preprocessor macro definitions at the project or target level","message":"Add support for disabling blocks externally via preprocessor macro definitions at the project or target level\n","lang":"C","license":"bsd-3-clause","repos":"LiuShulong\/Kiwi,samkrishna\/Kiwi,carezone\/Kiwi,howandhao\/Kiwi,ecaselles\/Kiwi,allending\/Kiwi,TaemoonCho\/Kiwi,howandhao\/Kiwi,indiegogo\/Kiwi,PaulTaykalo\/Kiwi,JoistApp\/Kiwi,samkrishna\/Kiwi,indiegogo\/Kiwi,carezone\/Kiwi,LiuShulong\/Kiwi,unisontech\/Kiwi,ashfurrow\/Kiwi,weslindsay\/Kiwi,iosRookie\/Kiwi,depop\/Kiwi,TaemoonCho\/Kiwi,howandhao\/Kiwi,ashfurrow\/Kiwi,cookov\/Kiwi,tangwei6423471\/Kiwi,ecaselles\/Kiwi,allending\/Kiwi,weslindsay\/Kiwi,emodeqidao\/Kiwi,alloy\/Kiwi,weslindsay\/Kiwi,tangwei6423471\/Kiwi,PaulTaykalo\/Kiwi,PaulTaykalo\/Kiwi,TaemoonCho\/Kiwi,TaemoonCho\/Kiwi,tcirwin\/Kiwi,emodeqidao\/Kiwi,tangwei6423471\/Kiwi,carezone\/Kiwi,tonyarnold\/Kiwi,depop\/Kiwi,iosRookie\/Kiwi,unisontech\/Kiwi,hyperoslo\/Tusen,cookov\/Kiwi,indiegogo\/Kiwi,weslindsay\/Kiwi,cookov\/Kiwi,cookov\/Kiwi,carezone\/Kiwi,tonyarnold\/Kiwi,unisontech\/Kiwi,depop\/Kiwi,allending\/Kiwi,JoistApp\/Kiwi,hyperoslo\/Tusen,samkrishna\/Kiwi,samkrishna\/Kiwi,ashfurrow\/Kiwi,alloy\/Kiwi,iosRookie\/Kiwi,ecaselles\/Kiwi,howandhao\/Kiwi,unisontech\/Kiwi,emodeqidao\/Kiwi,iosRookie\/Kiwi,JoistApp\/Kiwi,LiuShulong\/Kiwi,alloy\/Kiwi,emodeqidao\/Kiwi,hyperoslo\/Tusen,indiegogo\/Kiwi,JoistApp\/Kiwi,LiuShulong\/Kiwi,tcirwin\/Kiwi,tonyarnold\/Kiwi,tcirwin\/Kiwi,tangwei6423471\/Kiwi,allending\/Kiwi,ecaselles\/Kiwi,PaulTaykalo\/Kiwi,tcirwin\/Kiwi,depop\/Kiwi,tonyarnold\/Kiwi,hyperoslo\/Tusen"} {"commit":"a5f492b226f651d8296498f9b412756868b5b333","old_file":"src\/http\/resourcestrategy.h","new_file":"src\/http\/resourcestrategy.h","old_contents":"","new_contents":"#ifndef\tAPIMOCK_RESOURCESTRATEGY_H\n#define APIMOCK_RESOURCESTRATEGY_H\n\n#include \"requestdata.h\"\n#include \"responsedata.h\"\n\nnamespace ApiMock {\n\tclass ResourceStrategy {\n\tpublic:\n\t\tvirtual ~ResourceStrategy() {}\n\t\tvirtual ResponseData CreateResponse(const RequestData& request) = 0;\n\t};\n}\n\n#endif","subject":"Add a resource strategy interface","message":"Add a resource strategy interface\n","lang":"C","license":"mit","repos":"Lavesson\/api-mock,Lavesson\/api-mock,Lavesson\/api-mock,Lavesson\/api-mock"} {"commit":"d2283df39723e542416a1fcb4fd292780fe690f5","old_file":"src\/qt4compat.h","new_file":"src\/qt4compat.h","old_contents":"#ifndef QT4COMPAT_H\n#define QT4COMPAT_H\n\n#include \n\n#ifndef Q_LIKELY\n#\tdefine Q_LIKELY(s) s\n#endif\n\n#ifndef Q_UNLIKELY\n#\tdefine Q_UNLIKELY(s) s\n#endif\n\n#ifndef Q_UNREACHABLE\n#\tdefine Q_UNREACHABLE() Q_ASSERT(false)\n#endif\n\n#ifndef Q_ASSUME\n#\tdefine Q_ASSUME(s) if (s) {} else { Q_UNREACHABLE(); }\n#endif\n\n#endif \/\/ QT4COMPAT_H\n","new_contents":"#ifndef QT4COMPAT_H\n#define QT4COMPAT_H\n\n#include \n\n#if !defined(Q_UNREACHABLE) && !defined(Q_ASSUME)\n#\tif defined(Q_CC_INTEL) || defined(Q_CC_MSVC)\n#\t\tdefine Q_UNREACHABLE() __assume(0)\n#\t\tdefine Q_ASSUME(s) __assume(s)\n#\telif defined(Q_CC_CLANG)\n#\t\tdefine Q_UNREACHABLE() __builtin_unreachable()\n#\telif defined(Q_CC_GNU) && defined(__GNUC__) && defined(__GNUC_MINOR__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 405\n#\t\tdefine Q_UNREACHABLE() __builtin_unreachable()\n#\tendif\n#endif\n\n#if !defined(Q_LIKELY) && !defined(Q_UNLIKELY)\n#\tifdef __GNUC__\n#\t\tdefine Q_LIKELY(expr) __builtin_expect(!!(expr), true)\n#\t\tdefine Q_UNLIKELY(expr) __builtin_expect(!!(expr), false)\n#\tendif\n#endif\n\n#ifndef Q_LIKELY\n#\tdefine Q_LIKELY(s) s\n#endif\n\n#ifndef Q_UNLIKELY\n#\tdefine Q_UNLIKELY(s) s\n#endif\n\n#ifndef Q_UNREACHABLE\n#\tdefine Q_UNREACHABLE() Q_ASSERT(false)\n#endif\n\n#ifndef Q_ASSUME\n#\tdefine Q_ASSUME(s) if (s) {} else { Q_UNREACHABLE(); }\n#endif\n\n#endif \/\/ QT4COMPAT_H\n","subject":"Use compiler detection for Q_LIKELY, Q_UNLIKELY, Q_ASSUME, Q_UNREACHABLE","message":"Use compiler detection for Q_LIKELY, Q_UNLIKELY, Q_ASSUME, Q_UNREACHABLE [ci skip]\n","lang":"C","license":"mit","repos":"sjinks\/qt_eventdispatcher_epoll,sjinks\/qt_eventdispatcher_epoll"} {"commit":"6f55e50c181265bae4615173f62f806db75bc33f","old_file":"src\/streampos.h","new_file":"src\/streampos.h","old_contents":"#ifndef ICAL_STREAMPOS_H\n#define ICAL_STREAMPOS_H\n\n\nnamespace ical {\n\n\/**\n * Represents a postion in the (source) stream. It is used for constructing\n * nice error messages.\n *\n * Note: only CRLF (\"\\r\\n\") is considered as a line ending in order to match\n * the definition of 'content line' from RFC 5545.\n *\/\nclass StreamPos\n{\nprivate:\n unsigned long column = 0;\n unsigned long line = 0;\n\npublic:\n unsigned long getLine() const { return line; }\n unsigned long getColumn() const { return column; }\n\n StreamPos() { }\n\n void advanceColumn()\n {\n ++column;\n }\n\n void advanceLine()\n {\n column = 0;\n ++line;\n }\n};\n\n} \/\/ namespace ical\n\n#endif \/\/ ICAL_STREAMPOS_H\n","new_contents":"#ifndef ICAL_STREAMPOS_H\n#define ICAL_STREAMPOS_H\n\n\nnamespace ical {\n\n\/**\n * Represents a postion in the (source) stream. It is used for constructing\n * nice error messages.\n *\n * Note: only CRLF (\"\\r\\n\") is considered as a line ending in order to match\n * the definition of 'content line' from RFC 5545.\n *\/\nclass StreamPos\n{\nprivate:\n unsigned long column = 0;\n unsigned long line = 0;\n\npublic:\n unsigned long getLine() const { return line + 1; }\n unsigned long getColumn() const { return column + 1; }\n\n StreamPos() { }\n\n void advanceColumn()\n {\n ++column;\n }\n\n void advanceLine()\n {\n column = 0;\n ++line;\n }\n};\n\n} \/\/ namespace ical\n\n#endif \/\/ ICAL_STREAMPOS_H\n","subject":"Return one-based line\/column numbers from StreamPos.","message":"Return one-based line\/column numbers from StreamPos.\n\n(Because obviously people expect \"Line 1\" to mean the first line...)\n","lang":"C","license":"mit","repos":"LuboO\/iCalendar-parser_PA193_Rteam"} {"commit":"e4953de7dde3021a682d99e05b2784177ebebc93","old_file":"include\/icmpv4.h","new_file":"include\/icmpv4.h","old_contents":"#ifndef ICMPV4_H\n#define ICMPV4_H\n\n#include \"syshead.h\"\n#include \"netdev.h\"\n\n#define ICMP_V4_REPLY 0x00\n#define ICMP_V4_DST_UNREACHABLE 0x03\n#define ICMP_V4_SRC_QUENCH 0x04\n#define ICMP_V4_REDIRECT 0x05\n#define ICMP_V4_ECHO 0x08\n#define ICMP_V4_ROUTER_ADV 0x09\n#define ICMP_V4_ROUTER_SOL 0x0a\n#define ICMP_V4_TIMEOUT 0x0b\n#define ICMP_V4_MALFORMED 0x0c\n\nstruct icmp_v4 {\n uint8_t type;\n uint8_t code;\n uint16_t csum;\n uint8_t data[];\n} __attribute__((packed));\n\nstruct icmp_v4_echo {\n uint16_t id;\n uint16_t seq;\n uint8_t data[];\n} __attribute__((packed));\n\nvoid icmpv4_incoming(struct netdev *netdev, struct eth_hdr *hdr);\nvoid icmpv4_reply(struct netdev *netdev, struct eth_hdr *hdr);\n\n#endif\n","new_contents":"#ifndef ICMPV4_H\n#define ICMPV4_H\n\n#include \"syshead.h\"\n#include \"netdev.h\"\n\n#define ICMP_V4_REPLY 0x00\n#define ICMP_V4_DST_UNREACHABLE 0x03\n#define ICMP_V4_SRC_QUENCH 0x04\n#define ICMP_V4_REDIRECT 0x05\n#define ICMP_V4_ECHO 0x08\n#define ICMP_V4_ROUTER_ADV 0x09\n#define ICMP_V4_ROUTER_SOL 0x0a\n#define ICMP_V4_TIMEOUT 0x0b\n#define ICMP_V4_MALFORMED 0x0c\n\nstruct icmp_v4 {\n uint8_t type;\n uint8_t code;\n uint16_t csum;\n uint8_t data[];\n} __attribute__((packed));\n\nstruct icmp_v4_echo {\n uint16_t id;\n uint16_t seq;\n uint8_t data[];\n} __attribute__((packed));\n\nstruct icmp_v4_dst_unreachable {\n uint8_t unused;\n uint8_t len;\n uint16_t var;\n uint8_t data[];\n} __attribute__((packed));\n\n\nvoid icmpv4_incoming(struct netdev *netdev, struct eth_hdr *hdr);\nvoid icmpv4_reply(struct netdev *netdev, struct eth_hdr *hdr);\n\n#endif\n","subject":"Add ICMPv4 dst unreachable -message definition","message":"Add ICMPv4 dst unreachable -message definition\n\nYeah, this might end up being unimplemented :-(\n","lang":"C","license":"mit","repos":"saminiir\/level-ip,saminiir\/level-ip"} {"commit":"fc1d23276088fe389f4e804da1b8f071ee3b00f9","old_file":"src\/tool\/hpcrun\/utilities\/arch\/aarch64\/specific-inline-asm-gctxt.h","new_file":"src\/tool\/hpcrun\/utilities\/arch\/aarch64\/specific-inline-asm-gctxt.h","old_contents":"#ifndef SPECIFIC_INLINE_ASM_GCTXT\n#define SPECIFIC_INLINE_ASM_GCTXT\n\n#endif\n","new_contents":"#ifndef SPECIFIC_INLINE_ASM_GCTXT\n#define SPECIFIC_INLINE_ASM_GCTXT\n\n#define INLINE_ASM_GCTXT(uc) getcontext(&uc)\n\n#endif\n","subject":"Define the INLINE_ASM_GCTXT() macro for aarch64. This was breaking the MEMLEAK source on arm.","message":"Define the INLINE_ASM_GCTXT() macro for aarch64.\nThis was breaking the MEMLEAK source on arm.\n","lang":"C","license":"bsd-3-clause","repos":"HPCToolkit\/hpctoolkit,HPCToolkit\/hpctoolkit,HPCToolkit\/hpctoolkit,HPCToolkit\/hpctoolkit,HPCToolkit\/hpctoolkit,HPCToolkit\/hpctoolkit"} {"commit":"0cad538ae17f8e05375d1edf1d9f49bb4049e39b","old_file":"test\/Preprocessor\/header_lookup1.c","new_file":"test\/Preprocessor\/header_lookup1.c","old_contents":"\/\/ RUN: %clang -fno-ms-extensions %s -E | grep 'stddef.h.*3.*4'\n#include \n","new_contents":"\/\/ RUN: %clang -fno-ms-extensions %s -E | grep 'stddef.h.*3'\n#include \n","subject":"Change this test to reflect the state we are moving in. The Clang builtin headers are no longer going to receive the old 'implicit extern \"C\" block' semantics. This hint is actually ignored by both Clang and GCC at this point, and Clang's own builtin headers can simply be changed if there is any issue with this. Clang should be free to include these however it wants, and so shorter and simpler is better.","message":"Change this test to reflect the state we are moving in. The Clang\nbuiltin headers are no longer going to receive the old 'implicit extern\n\"C\" block' semantics. This hint is actually ignored by both Clang and\nGCC at this point, and Clang's own builtin headers can simply be changed\nif there is any issue with this. Clang should be free to include these\nhowever it wants, and so shorter and simpler is better.\n\nNote: *nothing* is changing about the *system* stddef.h include. That\nshould always have the exact same include semantics, whether with Clang\nor GCC or any other compiler. Only the compiler-builtin header search\npath is changing.\n\nIf anyone knows of some risk that this introduces that I've not thought\nof, please chime in. So far, only Windows has switched to the Brave New\nWorld, but others should be switching soon.\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@143806 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"apple\/swift-clang,llvm-mirror\/clang,apple\/swift-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,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang"} {"commit":"ccdd7bb8566b2fd1da5c4b5c8eaa2db43a69e720","old_file":"testsuite\/libffi.go\/static-chain.h","new_file":"testsuite\/libffi.go\/static-chain.h","old_contents":"#ifdef __aarch64__\n# define STATIC_CHAIN_REG \"x18\"\n#elif defined(__alpha__)\n# define STATIC_CHAIN_REG \"r1\"\n#elif defined(__arm__)\n# define STATIC_CHAIN_REG \"ip\"\n#elif defined(__sparc__)\n# if defined(__arch64__) || defined(__sparcv9)\n# define STATIC_CHAIN_REG \"g5\"\n# else\n# define STATIC_CHAIN_REG \"g2\"\n# endif\n#elif defined(__x86_64__)\n# define STATIC_CHAIN_REG \"r10\"\n#elif defined(__i386__)\n# ifndef ABI_NUM\n# define STATIC_CHAIN_REG \"ecx\"\t\/* FFI_DEFAULT_ABI only *\/\n# endif\n#endif\n","new_contents":"#ifdef __aarch64__\n# define STATIC_CHAIN_REG \"x18\"\n#elif defined(__alpha__)\n# define STATIC_CHAIN_REG \"$1\"\n#elif defined(__arm__)\n# define STATIC_CHAIN_REG \"ip\"\n#elif defined(__sparc__)\n# if defined(__arch64__) || defined(__sparcv9)\n# define STATIC_CHAIN_REG \"g5\"\n# else\n# define STATIC_CHAIN_REG \"g2\"\n# endif\n#elif defined(__x86_64__)\n# define STATIC_CHAIN_REG \"r10\"\n#elif defined(__i386__)\n# ifndef ABI_NUM\n# define STATIC_CHAIN_REG \"ecx\"\t\/* FFI_DEFAULT_ABI only *\/\n# endif\n#endif\n","subject":"Fix alpha static chain register name","message":"testsuite: Fix alpha static chain register name\n","lang":"C","license":"mit","repos":"biosbits\/libffi,Distrotech\/libffi,Distrotech\/libffi,joshtriplett\/libffi,Pan7\/libffi,Pan7\/libffi,biosbits\/libffi,s1341\/libffi,bgarrels\/libffi,joshtriplett\/libffi,nmav\/libffi,rth7680\/libffi,joshtriplett\/libffi,rth7680\/libffi,plicease\/libffi,Pan7\/libffi,bgarrels\/libffi,s1341\/libffi,nmav\/libffi,biosbits\/libffi,joshtriplett\/libffi,nmav\/libffi,Pan7\/libffi,plicease\/libffi,bgarrels\/libffi,nmav\/libffi,rth7680\/libffi,Distrotech\/libffi,s1341\/libffi,plicease\/libffi,bgarrels\/libffi,s1341\/libffi,Distrotech\/libffi,plicease\/libffi,rth7680\/libffi,biosbits\/libffi"} {"commit":"d4bca385d8d7e068e7d2075131bf14e5bb417692","old_file":"src\/autowiring\/stdafx.h","new_file":"src\/autowiring\/stdafx.h","old_contents":"\/\/ Copyright (C) 2012-2015 Leap Motion, Inc. All rights reserved.\n#pragma once\n\n\/\/ Internal build flag for namespace discrimination\n#define AUTOWIRING_IS_BEING_BUILT\n\n\/\/ Only include these headers in cases where a pch can be generated\n\/\/ Currently this is only supported on MSVC\n#ifdef _MSC_VER\n #include \n #ifndef NOMINMAX\n #define NOMINMAX\n #endif\n#endif\n \n#ifndef _MSC_VER\n #include \n#endif\n\n\/\/ Preconfiguration:\n#include \"AutowiringConfig.h\"\n\n\/\/ C++11 glue logic, for platforms that have incomplete C++11 support\n#include \"C++11\/cpp11.h\"\n","new_contents":"\/\/ Copyright (C) 2012-2015 Leap Motion, Inc. All rights reserved.\n#pragma once\n\n\/\/ Internal build flag for namespace discrimination\n#define AUTOWIRING_IS_BEING_BUILT\n\n\/\/ Only include these headers in cases where a pch can be generated\n\/\/ Currently this is only supported on MSVC\n#ifdef _MSC_VER\n #ifndef NOMINMAX\n #define NOMINMAX\n #endif\n\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n#endif\n \n#ifndef _MSC_VER\n #include \n#endif\n\n\/\/ Preconfiguration:\n#include \"AutowiringConfig.h\"\n\n\/\/ C++11 glue logic, for platforms that have incomplete C++11 support\n#include \"C++11\/cpp11.h\"\n","subject":"Make better use of precompiled header","message":"Make better use of precompiled header\n\nThese headers are used pretty much everywhere in autowiring. New compile time is 50% of what it was on MSVC.\n\nBefore: 33.87s\nAfter: 17.77s\n","lang":"C","license":"apache-2.0","repos":"leapmotion\/autowiring,leapmotion\/autowiring,codemercenary\/autowiring,leapmotion\/autowiring,leapmotion\/autowiring,codemercenary\/autowiring,codemercenary\/autowiring,codemercenary\/autowiring,codemercenary\/autowiring,leapmotion\/autowiring,leapmotion\/autowiring,codemercenary\/autowiring"} {"commit":"8a89ea553494c0ca429a57f792a097adb1f25ce2","old_file":"Sources\/ObjectiveChain.h","new_file":"Sources\/ObjectiveChain.h","old_contents":"\/\/\n\/\/ ObjectiveChain.h\n\/\/ Objective-Chain\n\/\/\n\/\/ Created by Martin Kiss on 30.12.13.\n\/\/\n\/\/\n\n\n","new_contents":"\/\/\n\/\/ ObjectiveChain.h\n\/\/ Objective-Chain\n\/\/\n\/\/ Created by Martin Kiss on 30.12.13.\n\/\/\n\/\/\n\n#import \"OCAConnection.h\"\n#import \"OCAProducer.h\"\n","subject":"Add first classes to umbrella header","message":"Add first classes to umbrella header\n","lang":"C","license":"mit","repos":"Tricertops\/Objective-Chain,iMartinKiss\/Objective-Chain"} {"commit":"97d3b3cf2a7b220c34f7b467129fe9de8558e2be","old_file":"utils\/metatag.c","new_file":"utils\/metatag.c","old_contents":"\/* metatag.c: Program for adding metadata to a file\n * By: Forrest Kerslager, Nick Noto, David Taylor, Kevin Yeap,\n * Connie Yu\n * \n * 2014\/06\/06\n * *\/\n\n#include \n#include \n#include \n\n\nint main(int argc, char** argv){\n char* buffer;\n int fd, i, len;\n \n if(argc < 3){\n fprintf(stderr, \"Usage: metatag FILE TAG\\n\");\n exit(1);\n }\n fd=open(argv[1], O_RDWR);\n if(fd == -1){\n fprintf(stderr, \"Error, file not found\\n\");\n exit(1);\n }\n buffer = \"\";\n for(i=2; i\n#include \n#include \n\n#define MAX_LEN 1024\n\nint main(int argc, char** argv){\n char* buffer;\n int fd, i, len;\n \n if(argc < 3){\n fprintf(stderr, \"Usage: metatag FILE TAG\\n\");\n exit(1);\n }\n fd=open(argv[1], O_RDWR);\n if(fd == -1){\n fprintf(stderr, \"Error, file not found\\n\");\n exit(1);\n }\n buffer = \"\";\n for(i=2; i MAX_LEN-1){\n fprintf(stderr, \"Input stream exceeds max length\\n\");\n exit(1);\n }\n metawrite(fd,&buffer,len);\n close(fd);\n return 0;\n \n}\n","subject":"Add max length error check","message":"Add max length error check\n","lang":"C","license":"mit","repos":"dmtaylor\/cmps111-proj4,dmtaylor\/cmps111-proj4"} {"commit":"b8b9c29202e0ab25889fc745d3e5f7f99c3e9624","old_file":"regs_amd64.h","new_file":"regs_amd64.h","old_contents":"\/\/ Offset of each register in the register map,\n\/\/ as it's saved by asm_entry_amd64.s\n\n#pragma once\n\n#define RAX 0x00\n#define RBX 0x08\n#define RCX 0x10\n#define RDX 0x18\n#define RSI 0x20\n#define RDI 0x28\n#define R8 0x30\n#define R9 0x38\n#define R10 0x40\n#define R11 0x48\n#define R12 0x50\n#define R13 0x58\n#define R14 0x60\n#define R15 0x68\n\n#define XMM0 0x70\n#define XMM1 0x80\n#define XMM2 0x90\n#define XMM3 0xA0\n#define XMM4 0xB0\n#define XMM5 0xC0\n#define XMM6 0xE0\n#define XMM7 0xF0\n","new_contents":"\/\/ Offset of each register in the register map,\n\/\/ as it's saved by asm_entry_amd64.s\n\n#pragma once\n\n#define RAX 0x00\n#define RBX 0x08\n#define RCX 0x10\n#define RDX 0x18\n#define RSI 0x20\n#define RDI 0x28\n#define R8 0x30\n#define R9 0x38\n#define R10 0x40\n#define R11 0x48\n#define R12 0x50\n#define R13 0x58\n#define R14 0x60\n#define R15 0x68\n\n#define XMM0 0x70\n#define XMM1 0x80\n#define XMM2 0x90\n#define XMM3 0xA0\n#define XMM4 0xB0\n#define XMM5 0xC0\n#define XMM6 0xD0\n#define XMM7 0xE0\n","subject":"Fix one more register addressing bug","message":"Fix one more register addressing bug\n","lang":"C","license":"mit","repos":"yamnikov-oleg\/cgo-callback,yamnikov-oleg\/cgo-callback"} {"commit":"605871452bcb4c742ed960c09d518be03b349cf3","old_file":"base\/inc\/TVersionCheck.h","new_file":"base\/inc\/TVersionCheck.h","old_contents":"\/\/ @(#)root\/base:$Name: $:$Id: TVersionCheck.h,v 1.2 2007\/05\/10 16:04:32 rdm Exp $\n\/\/ Author: Fons Rademakers 9\/5\/2007\n\n\/*************************************************************************\n * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *\n * All rights reserved. *\n * *\n * For the licensing terms see $ROOTSYS\/LICENSE. *\n * For the list of contributors see $ROOTSYS\/README\/CREDITS. *\n *************************************************************************\/\n\n#ifndef ROOT_TVersionCheck\n#define ROOT_TVersionCheck\n\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\/\/ \/\/\n\/\/ TVersionCheck \/\/\n\/\/ \/\/\n\/\/ Used to check if the shared library or plugin is compatible with \/\/\n\/\/ the current version of ROOT. \/\/\n\/\/ \/\/\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n#ifndef ROOT_RVersion\n#include \"RVersion.h\"\n#endif\n\nclass TVersionCheck {\npublic:\n TVersionCheck(int versionCode); \/\/ implemented in TSystem.cxx\n};\n\nstatic TVersionCheck gVersionCheck(ROOT_VERSION_CODE);\n\n#endif\n","new_contents":"\/\/ @(#)root\/base:$Name: $:$Id: TVersionCheck.h,v 1.3 2007\/05\/10 18:16:58 rdm Exp $\n\/\/ Author: Fons Rademakers 9\/5\/2007\n\n\/*************************************************************************\n * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *\n * All rights reserved. *\n * *\n * For the licensing terms see $ROOTSYS\/LICENSE. *\n * For the list of contributors see $ROOTSYS\/README\/CREDITS. *\n *************************************************************************\/\n\n#ifndef ROOT_TVersionCheck\n#define ROOT_TVersionCheck\n\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\/\/ \/\/\n\/\/ TVersionCheck \/\/\n\/\/ \/\/\n\/\/ Used to check if the shared library or plugin is compatible with \/\/\n\/\/ the current version of ROOT. \/\/\n\/\/ \/\/\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n#ifndef ROOT_RVersion\n#include \"RVersion.h\"\n#endif\n\nclass TVersionCheck {\npublic:\n TVersionCheck(int versionCode); \/\/ implemented in TSystem.cxx\n};\n\n#ifndef __CINT__\nstatic TVersionCheck gVersionCheck(ROOT_VERSION_CODE);\n#endif\n\n#endif\n","subject":"Hide a static function to CINT. With this fix g4root compiles OK.","message":"Hide a static function to CINT. With this fix g4root compiles OK.\n\n\ngit-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@18737 27541ba8-7e3a-0410-8455-c3a389f83636\n","lang":"C","license":"lgpl-2.1","repos":"simonpf\/root,jrtomps\/root,tc3t\/qoot,vukasinmilosevic\/root,mkret2\/root,0x0all\/ROOT,root-mirror\/root,root-mirror\/root,Dr15Jones\/root,omazapa\/root-old,esakellari\/root,mhuwiler\/rootauto,esakellari\/my_root_for_test,nilqed\/root,mkret2\/root,cxx-hep\/root-cern,olifre\/root,lgiommi\/root,satyarth934\/root,gbitzes\/root,davidlt\/root,karies\/root,Duraznos\/root,perovic\/root,dfunke\/root,davidlt\/root,bbockelm\/root,Duraznos\/root,beniz\/root,mattkretz\/root,CristinaCristescu\/root,abhinavmoudgil95\/root,beniz\/root,gbitzes\/root,sawenzel\/root,0x0all\/ROOT,olifre\/root,lgiommi\/root,lgiommi\/root,abhinavmoudgil95\/root,lgiommi\/root,nilqed\/root,zzxuanyuan\/root,zzxuanyuan\/root,sirinath\/root,zzxuanyuan\/root,Y--\/root,alexschlueter\/cern-root,esakellari\/root,buuck\/root,perovic\/root,arch1tect0r\/root,kirbyherm\/root-r-tools,mhuwiler\/rootauto,strykejern\/TTreeReader,karies\/root,ffurano\/root5,esakellari\/root,omazapa\/root,georgtroska\/root,bbockelm\/root,simonpf\/root,cxx-hep\/root-cern,sbinet\/cxx-root,pspe\/root,dfunke\/root,root-mirror\/root,bbockelm\/root,sbinet\/cxx-root,zzxuanyuan\/root,agarciamontoro\/root,BerserkerTroll\/root,gganis\/root,root-mirror\/root,omazapa\/root-old,ffurano\/root5,root-mirror\/root,0x0all\/ROOT,beniz\/root,zzxuanyuan\/root,gbitzes\/root,arch1tect0r\/root,vukasinmilosevic\/root,arch1tect0r\/root,gganis\/root,pspe\/root,esakellari\/my_root_for_test,sirinath\/root,lgiommi\/root,alexschlueter\/cern-root,Y--\/root,Duraznos\/root,zzxuanyuan\/root-compressor-dummy,mkret2\/root,vukasinmilosevic\/root,krafczyk\/root,evgeny-boger\/root,karies\/root,smarinac\/root,gganis\/root,alexschlueter\/cern-root,CristinaCristescu\/root,Y--\/root,dfunke\/root,sawenzel\/root,georgtroska\/root,agarciamontoro\/root,pspe\/root,omazapa\/root,agarciamontoro\/root,abhinavmoudgil95\/root,olifre\/root,olifre\/root,lgiommi\/root,georgtroska\/root,strykejern\/TTreeReader,pspe\/root,mattkretz\/root,evgeny-boger\/root,root-mirror\/root,veprbl\/root,Dr15Jones\/root,omazapa\/root-old,smarinac\/root,sawenzel\/root,mhuwiler\/rootauto,Duraznos\/root,gganis\/root,gganis\/root,lgiommi\/root,CristinaCristescu\/root,BerserkerTroll\/root,simonpf\/root,davidlt\/root,nilqed\/root,georgtroska\/root,root-mirror\/root,evgeny-boger\/root,sawenzel\/root,cxx-hep\/root-cern,mattkretz\/root,zzxuanyuan\/root-compressor-dummy,olifre\/root,thomaskeck\/root,esakellari\/root,mattkretz\/root,karies\/root,omazapa\/root,omazapa\/root-old,mattkretz\/root,BerserkerTroll\/root,pspe\/root,bbockelm\/root,simonpf\/root,sirinath\/root,davidlt\/root,zzxuanyuan\/root-compressor-dummy,alexschlueter\/cern-root,Duraznos\/root,agarciamontoro\/root,mattkretz\/root,abhinavmoudgil95\/root,BerserkerTroll\/root,karies\/root,mkret2\/root,vukasinmilosevic\/root,gbitzes\/root,buuck\/root,kirbyherm\/root-r-tools,CristinaCristescu\/root,veprbl\/root,krafczyk\/root,sbinet\/cxx-root,bbockelm\/root,thomaskeck\/root,BerserkerTroll\/root,karies\/root,esakellari\/my_root_for_test,Dr15Jones\/root,kirbyherm\/root-r-tools,esakellari\/root,abhinavmoudgil95\/root,gbitzes\/root,smarinac\/root,sawenzel\/root,Y--\/root,lgiommi\/root,omazapa\/root,Y--\/root,pspe\/root,gbitzes\/root,jrtomps\/root,dfunke\/root,sawenzel\/root,cxx-hep\/root-cern,olifre\/root,mkret2\/root,gbitzes\/root,sirinath\/root,esakellari\/my_root_for_test,georgtroska\/root,cxx-hep\/root-cern,0x0all\/ROOT,kirbyherm\/root-r-tools,strykejern\/TTreeReader,beniz\/root,veprbl\/root,Dr15Jones\/root,perovic\/root,mhuwiler\/rootauto,sbinet\/cxx-root,davidlt\/root,evgeny-boger\/root,esakellari\/root,agarciamontoro\/root,buuck\/root,zzxuanyuan\/root,satyarth934\/root,pspe\/root,zzxuanyuan\/root,krafczyk\/root,georgtroska\/root,veprbl\/root,abhinavmoudgil95\/root,karies\/root,georgtroska\/root,satyarth934\/root,buuck\/root,thomaskeck\/root,arch1tect0r\/root,perovic\/root,esakellari\/my_root_for_test,dfunke\/root,Duraznos\/root,ffurano\/root5,root-mirror\/root,ffurano\/root5,mattkretz\/root,mattkretz\/root,evgeny-boger\/root,sirinath\/root,mhuwiler\/rootauto,gbitzes\/root,arch1tect0r\/root,Duraznos\/root,thomaskeck\/root,root-mirror\/root,gganis\/root,esakellari\/root,abhinavmoudgil95\/root,pspe\/root,olifre\/root,beniz\/root,lgiommi\/root,sirinath\/root,BerserkerTroll\/root,smarinac\/root,smarinac\/root,gganis\/root,georgtroska\/root,zzxuanyuan\/root,agarciamontoro\/root,olifre\/root,dfunke\/root,strykejern\/TTreeReader,0x0all\/ROOT,zzxuanyuan\/root,bbockelm\/root,satyarth934\/root,krafczyk\/root,0x0all\/ROOT,mhuwiler\/rootauto,mhuwiler\/rootauto,sbinet\/cxx-root,kirbyherm\/root-r-tools,gbitzes\/root,tc3t\/qoot,mhuwiler\/rootauto,Y--\/root,alexschlueter\/cern-root,sawenzel\/root,esakellari\/my_root_for_test,vukasinmilosevic\/root,beniz\/root,karies\/root,georgtroska\/root,nilqed\/root,bbockelm\/root,olifre\/root,smarinac\/root,zzxuanyuan\/root-compressor-dummy,evgeny-boger\/root,Y--\/root,sirinath\/root,simonpf\/root,abhinavmoudgil95\/root,beniz\/root,vukasinmilosevic\/root,krafczyk\/root,bbockelm\/root,zzxuanyuan\/root-compressor-dummy,veprbl\/root,veprbl\/root,buuck\/root,alexschlueter\/cern-root,esakellari\/my_root_for_test,perovic\/root,dfunke\/root,veprbl\/root,root-mirror\/root,olifre\/root,mkret2\/root,omazapa\/root,abhinavmoudgil95\/root,mattkretz\/root,sbinet\/cxx-root,CristinaCristescu\/root,karies\/root,agarciamontoro\/root,dfunke\/root,root-mirror\/root,mattkretz\/root,bbockelm\/root,buuck\/root,sbinet\/cxx-root,karies\/root,beniz\/root,lgiommi\/root,CristinaCristescu\/root,mkret2\/root,buuck\/root,dfunke\/root,smarinac\/root,tc3t\/qoot,gganis\/root,beniz\/root,lgiommi\/root,omazapa\/root,CristinaCristescu\/root,gganis\/root,zzxuanyuan\/root,esakellari\/my_root_for_test,sawenzel\/root,nilqed\/root,georgtroska\/root,mhuwiler\/rootauto,CristinaCristescu\/root,perovic\/root,Dr15Jones\/root,BerserkerTroll\/root,zzxuanyuan\/root,kirbyherm\/root-r-tools,mattkretz\/root,veprbl\/root,Y--\/root,olifre\/root,mkret2\/root,satyarth934\/root,zzxuanyuan\/root-compressor-dummy,nilqed\/root,davidlt\/root,simonpf\/root,krafczyk\/root,esakellari\/my_root_for_test,sirinath\/root,Duraznos\/root,beniz\/root,abhinavmoudgil95\/root,zzxuanyuan\/root-compressor-dummy,smarinac\/root,cxx-hep\/root-cern,veprbl\/root,esakellari\/root,thomaskeck\/root,simonpf\/root,strykejern\/TTreeReader,omazapa\/root,davidlt\/root,agarciamontoro\/root,simonpf\/root,krafczyk\/root,zzxuanyuan\/root,perovic\/root,BerserkerTroll\/root,jrtomps\/root,Dr15Jones\/root,thomaskeck\/root,bbockelm\/root,CristinaCristescu\/root,pspe\/root,nilqed\/root,zzxuanyuan\/root-compressor-dummy,davidlt\/root,sbinet\/cxx-root,satyarth934\/root,sawenzel\/root,simonpf\/root,esakellari\/root,georgtroska\/root,davidlt\/root,perovic\/root,tc3t\/qoot,omazapa\/root,tc3t\/qoot,sirinath\/root,kirbyherm\/root-r-tools,jrtomps\/root,CristinaCristescu\/root,perovic\/root,krafczyk\/root,tc3t\/qoot,jrtomps\/root,vukasinmilosevic\/root,omazapa\/root-old,arch1tect0r\/root,nilqed\/root,Duraznos\/root,mhuwiler\/rootauto,arch1tect0r\/root,sawenzel\/root,davidlt\/root,omazapa\/root-old,omazapa\/root,esakellari\/root,buuck\/root,mkret2\/root,sawenzel\/root,jrtomps\/root,zzxuanyuan\/root-compressor-dummy,jrtomps\/root,krafczyk\/root,bbockelm\/root,evgeny-boger\/root,evgeny-boger\/root,omazapa\/root-old,tc3t\/qoot,karies\/root,sbinet\/cxx-root,vukasinmilosevic\/root,Dr15Jones\/root,mhuwiler\/rootauto,tc3t\/qoot,thomaskeck\/root,Y--\/root,arch1tect0r\/root,tc3t\/qoot,omazapa\/root-old,zzxuanyuan\/root-compressor-dummy,zzxuanyuan\/root-compressor-dummy,krafczyk\/root,omazapa\/root-old,agarciamontoro\/root,evgeny-boger\/root,omazapa\/root-old,vukasinmilosevic\/root,agarciamontoro\/root,arch1tect0r\/root,nilqed\/root,mkret2\/root,gbitzes\/root,thomaskeck\/root,esakellari\/root,alexschlueter\/cern-root,0x0all\/ROOT,thomaskeck\/root,jrtomps\/root,nilqed\/root,dfunke\/root,strykejern\/TTreeReader,Duraznos\/root,Duraznos\/root,gbitzes\/root,omazapa\/root,tc3t\/qoot,jrtomps\/root,strykejern\/TTreeReader,cxx-hep\/root-cern,BerserkerTroll\/root,satyarth934\/root,simonpf\/root,ffurano\/root5,Y--\/root,CristinaCristescu\/root,evgeny-boger\/root,omazapa\/root,sbinet\/cxx-root,krafczyk\/root,buuck\/root,dfunke\/root,davidlt\/root,ffurano\/root5,nilqed\/root,buuck\/root,smarinac\/root,abhinavmoudgil95\/root,buuck\/root,thomaskeck\/root,Y--\/root,smarinac\/root,jrtomps\/root,pspe\/root,cxx-hep\/root-cern,ffurano\/root5,pspe\/root,gganis\/root,sirinath\/root,BerserkerTroll\/root,sirinath\/root,satyarth934\/root,gganis\/root,mkret2\/root,simonpf\/root,veprbl\/root,perovic\/root,jrtomps\/root,beniz\/root,esakellari\/my_root_for_test,arch1tect0r\/root,veprbl\/root,arch1tect0r\/root,satyarth934\/root,vukasinmilosevic\/root,perovic\/root,BerserkerTroll\/root,vukasinmilosevic\/root,omazapa\/root-old,evgeny-boger\/root,sbinet\/cxx-root,agarciamontoro\/root,0x0all\/ROOT,satyarth934\/root,0x0all\/ROOT,satyarth934\/root"} {"commit":"c44c18c4d13d6fde1d38e603f00029deaf7ff002","old_file":"src\/libc4\/include\/util\/error.h","new_file":"src\/libc4\/include\/util\/error.h","old_contents":"#ifndef ERROR_H\n#define ERROR_H\n\n\/*\n * Note that we include \"fmt\" in the variadic argument list, because C99\n * apparently doesn't allow variadic macros to be invoked without any vargs\n * parameters.\n *\/\n#define ERROR(...) var_error(__FILE__, __LINE__, __VA_ARGS__)\n#define FAIL() simple_error(__FILE__, __LINE__)\n#define FAIL_APR(s) apr_error((s), __FILE__, __LINE__)\n#define FAIL_SQLITE(c) sqlite_error((c), __FILE__, __LINE__)\n\n#ifdef ASSERT_ENABLED\n#define ASSERT(cond) \\\n do { \\\n if (!(cond)) \\\n assert_fail(APR_STRINGIFY(cond), __FILE__, __LINE__); \\\n } while (0)\n#else\n#define ASSERT(cond)\n#endif\n\nvoid apr_error(apr_status_t s, const char *file, int line_num) __attribute__((noreturn));\nvoid sqlite_error(C4Runtime *c4, const char *file, int line_num) __attribute__((noreturn));\nvoid simple_error(const char *file, int line_num) __attribute__((noreturn));\nvoid var_error(const char *file, int line_num,\n const char *fmt, ...) __attribute__((format(printf, 3, 4), noreturn));\n\nvoid assert_fail(const char *cond, const char *file, int line_num) __attribute__((noreturn));\n\n#endif \/* ERROR_H *\/\n","new_contents":"#ifndef ERROR_H\n#define ERROR_H\n\n\/*\n * Note that we include \"fmt\" in the variadic argument list, because C99\n * apparently doesn't allow variadic macros to be invoked without any vargs\n * parameters.\n *\/\n#define ERROR(...) var_error(__FILE__, __LINE__, __VA_ARGS__)\n#define FAIL() simple_error(__FILE__, __LINE__)\n#define FAIL_APR(s) apr_error((s), __FILE__, __LINE__)\n#define FAIL_SQLITE(c) sqlite_error((c), __FILE__, __LINE__)\n\n#ifdef C4_ASSERT_ENABLED\n#define ASSERT(cond) \\\n do { \\\n if (!(cond)) \\\n assert_fail(APR_STRINGIFY(cond), __FILE__, __LINE__); \\\n } while (0)\n#else\n#define ASSERT(cond)\n#endif\n\nvoid apr_error(apr_status_t s, const char *file, int line_num) __attribute__((noreturn));\nvoid sqlite_error(C4Runtime *c4, const char *file, int line_num) __attribute__((noreturn));\nvoid simple_error(const char *file, int line_num) __attribute__((noreturn));\nvoid var_error(const char *file, int line_num,\n const char *fmt, ...) __attribute__((format(printf, 3, 4), noreturn));\n\nvoid assert_fail(const char *cond, const char *file, int line_num) __attribute__((noreturn));\n\n#endif \/* ERROR_H *\/\n","subject":"Fix braindamage: assertions were not enabled in debug builds.","message":"Fix braindamage: assertions were not enabled in debug builds.\n","lang":"C","license":"mit","repos":"bloom-lang\/c4,bloom-lang\/c4,bloom-lang\/c4"} {"commit":"42d51980ef24c2e9b93fcfd2d3aa8c0e50dc27a7","old_file":"CefSharp.Core\/RequestContext.h","new_file":"CefSharp.Core\/RequestContext.h","old_contents":"\/\/ Copyright 2010-2014 The CefSharp Authors. All rights reserved.\n\/\/\n\/\/ Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.\n\n#pragma once\n\n#include \"Stdafx.h\"\n#include \"Internals\\MCefRefPtr.h\"\n#include \"RequestContextSettings.h\"\n#include \"include\\cef_request_context.h\"\n\nusing namespace CefSharp;\n\nnamespace CefSharp\n{\n public ref class RequestContext\n {\n private:\n MCefRefPtr _requestContext;\n RequestContextSettings^ _settings;\n public:\n RequestContext()\n {\n CefRequestContextSettings settings;\n _requestContext = CefRequestContext::CreateContext(settings, NULL);\n }\n\n RequestContext(RequestContextSettings^ settings) : _settings(settings)\n {\n _requestContext = CefRequestContext::CreateContext(settings, NULL);\n }\n\n !RequestContext()\n {\n _requestContext = NULL;\n }\n\n ~RequestContext()\n {\n this->!RequestContext();\n\n delete _settings;\n }\n\n operator CefRefPtr()\n {\n return _requestContext.get();\n }\n };\n}","new_contents":"\/\/ Copyright 2010-2014 The CefSharp Authors. All rights reserved.\n\/\/\n\/\/ Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.\n\n#pragma once\n\n#include \"Stdafx.h\"\n#include \"Internals\\MCefRefPtr.h\"\n#include \"RequestContextSettings.h\"\n#include \"include\\cef_request_context.h\"\n\nusing namespace CefSharp;\n\nnamespace CefSharp\n{\n public ref class RequestContext\n {\n private:\n MCefRefPtr _requestContext;\n RequestContextSettings^ _settings;\n public:\n RequestContext()\n {\n CefRequestContextSettings settings;\n _requestContext = CefRequestContext::CreateContext(settings, NULL);\n }\n\n RequestContext(RequestContextSettings^ settings) : _settings(settings)\n {\n _requestContext = CefRequestContext::CreateContext(settings, NULL);\n }\n\n !RequestContext()\n {\n _requestContext = NULL;\n }\n\n ~RequestContext()\n {\n this->!RequestContext();\n\n delete _settings;\n }\n\n operator CefRefPtr()\n {\n if(this == nullptr)\n {\n return NULL;\n }\n return _requestContext.get();\n }\n };\n}","subject":"Add nullptr check and return NULL for implicitor operator when object is not initialized","message":"Add nullptr check and return NULL for implicitor operator when object is not initialized\n","lang":"C","license":"bsd-3-clause","repos":"jamespearce2006\/CefSharp,dga711\/CefSharp,twxstar\/CefSharp,battewr\/CefSharp,windygu\/CefSharp,Haraguroicha\/CefSharp,yoder\/CefSharp,gregmartinhtc\/CefSharp,rlmcneary2\/CefSharp,Livit\/CefSharp,windygu\/CefSharp,joshvera\/CefSharp,yoder\/CefSharp,jamespearce2006\/CefSharp,AJDev77\/CefSharp,ITGlobal\/CefSharp,ITGlobal\/CefSharp,VioletLife\/CefSharp,battewr\/CefSharp,NumbersInternational\/CefSharp,Haraguroicha\/CefSharp,haozhouxu\/CefSharp,NumbersInternational\/CefSharp,AJDev77\/CefSharp,windygu\/CefSharp,illfang\/CefSharp,dga711\/CefSharp,dga711\/CefSharp,wangzheng888520\/CefSharp,twxstar\/CefSharp,illfang\/CefSharp,rlmcneary2\/CefSharp,gregmartinhtc\/CefSharp,yoder\/CefSharp,VioletLife\/CefSharp,rlmcneary2\/CefSharp,ruisebastiao\/CefSharp,haozhouxu\/CefSharp,Livit\/CefSharp,rlmcneary2\/CefSharp,gregmartinhtc\/CefSharp,twxstar\/CefSharp,zhangjingpu\/CefSharp,jamespearce2006\/CefSharp,wangzheng888520\/CefSharp,illfang\/CefSharp,haozhouxu\/CefSharp,battewr\/CefSharp,wangzheng888520\/CefSharp,twxstar\/CefSharp,jamespearce2006\/CefSharp,ITGlobal\/CefSharp,haozhouxu\/CefSharp,windygu\/CefSharp,AJDev77\/CefSharp,Livit\/CefSharp,ruisebastiao\/CefSharp,dga711\/CefSharp,AJDev77\/CefSharp,Haraguroicha\/CefSharp,battewr\/CefSharp,zhangjingpu\/CefSharp,ruisebastiao\/CefSharp,joshvera\/CefSharp,jamespearce2006\/CefSharp,ruisebastiao\/CefSharp,NumbersInternational\/CefSharp,illfang\/CefSharp,Haraguroicha\/CefSharp,zhangjingpu\/CefSharp,Haraguroicha\/CefSharp,VioletLife\/CefSharp,joshvera\/CefSharp,ITGlobal\/CefSharp,NumbersInternational\/CefSharp,joshvera\/CefSharp,gregmartinhtc\/CefSharp,Livit\/CefSharp,wangzheng888520\/CefSharp,VioletLife\/CefSharp,zhangjingpu\/CefSharp,yoder\/CefSharp"} {"commit":"f606322980ae5739c9358a5b374da676ce796627","old_file":"include\/common.h","new_file":"include\/common.h","old_contents":"\/**\n * common.h\n *\n * Copyright (C) 2017 Nickolas Burr \n *\/\n\n#ifndef GIT_STASHD_COMMON_H\n#define GIT_STASHD_COMMON_H\n\n#include \n#include \n#include \n#include \n#include \n#include \n\n#define _GNU_SOURCE\n\n#define NOOPT_FOUND_V -1\n#define CLEAN_CATCH_V -2\n\n#endif\n","new_contents":"\/**\n * common.h\n *\n * Copyright (C) 2017 Nickolas Burr \n *\/\n\n#ifndef GIT_STASHD_COMMON_H\n#define GIT_STASHD_COMMON_H\n\n#include \n#include \n#include \n#include \n#include \n#include \n\n#define _GNU_SOURCE\n\n#define NULL_BYTE 1\n#define NOT_FOUND -1\n#define ERR_CATCH -2\n\n#endif\n","subject":"Add NULL_BYTE macro, rename others","message":"Add NULL_BYTE macro, rename others\n","lang":"C","license":"mit","repos":"nickolasburr\/git-stashd,nickolasburr\/git-stashd,nickolasburr\/git-stashd"} {"commit":"3fbbffc2c6a09a8faffcbd40645029d41d1044ad","old_file":"test\/default\/cmptest.h","new_file":"test\/default\/cmptest.h","old_contents":"\n#ifndef __CMPTEST_H__\n#define __CMPTEST_H__\n\n#include \n\n#include \"sodium.h\"\n\n#define TEST_NAME_RES TEST_NAME \".res\"\n#define TEST_NAME_OUT TEST_SRCDIR \"\/\" TEST_NAME \".exp\"\n\n#ifdef HAVE_ARC4RANDOM\n# undef rand\n# define rand(X) arc4random(X)\n#endif\n\nFILE *fp_res;\nint xmain(void);\n\nint main(void)\n{\n FILE *fp_out;\n int c;\n\n if ((fp_res = fopen(TEST_NAME_RES, \"w+\")) == NULL) {\n perror(\"fopen(\" TEST_NAME_RES \")\");\n return 99;\n }\n if (sodium_init() != 0) {\n return 99;\n }\n xmain();\n rewind(fp_res);\n if ((fp_out = fopen(TEST_NAME_OUT, \"r\")) == NULL) {\n perror(\"fopen(\" TEST_NAME_OUT \")\");\n return 99;\n }\n do {\n if ((c = fgetc(fp_res)) != fgetc(fp_out)) {\n return 99;\n }\n } while (c != EOF);\n\n return 0;\n}\n\n#undef printf\n#define printf(...) fprintf(fp_res, __VA_ARGS__)\n#define main xmain\n\n#endif\n","new_contents":"\n#ifndef __CMPTEST_H__\n#define __CMPTEST_H__\n\n#include \n\n#include \"sodium.h\"\n\n#define TEST_NAME_RES TEST_NAME \".res\"\n#define TEST_NAME_OUT TEST_SRCDIR \"\/\" TEST_NAME \".exp\"\n\n#ifdef HAVE_ARC4RANDOM\n# undef rand\n# define rand(X) arc4random(X)\n#endif\n\nFILE *fp_res;\nint xmain(void);\n\nint main(void)\n{\n FILE *fp_out;\n int c;\n\n if ((fp_res = fopen(TEST_NAME_RES, \"w+\")) == NULL) {\n perror(\"fopen(\" TEST_NAME_RES \")\");\n return 99;\n }\n if (sodium_init() != 0) {\n return 99;\n }\n if (xmain() != 0) {\n return 99;\n }\n rewind(fp_res);\n if ((fp_out = fopen(TEST_NAME_OUT, \"r\")) == NULL) {\n perror(\"fopen(\" TEST_NAME_OUT \")\");\n return 99;\n }\n do {\n if ((c = fgetc(fp_res)) != fgetc(fp_out)) {\n return 99;\n }\n } while (c != EOF);\n\n return 0;\n}\n\n#undef printf\n#define printf(...) fprintf(fp_res, __VA_ARGS__)\n#define main xmain\n\n#endif\n","subject":"Check xmain() return code in tests.","message":"Check xmain() return code in tests.\n","lang":"C","license":"isc","repos":"Payshare\/libsodium,Payshares\/libsodium,donpark\/libsodium,netroby\/libsodium,mvduin\/libsodium,akkakks\/libsodium,Payshares\/libsodium,tml\/libsodium,donpark\/libsodium,pmienk\/libsodium,akkakks\/libsodium,optedoblivion\/android_external_libsodium,GreatFruitOmsk\/libsodium,paragonie-scott\/libsodium,donpark\/libsodium,GreatFruitOmsk\/libsodium,kytvi2p\/libsodium,SpiderOak\/libsodium,JackWink\/libsodium,JackWink\/libsodium,pyparallel\/libsodium,pmienk\/libsodium,rustyhorde\/libsodium,soumith\/libsodium,Payshare\/libsodium,paragonie-scott\/libsodium,soumith\/libsodium,netroby\/libsodium,eburkitt\/libsodium,HappyYang\/libsodium,pyparallel\/libsodium,eburkitt\/libsodium,pyparallel\/libsodium,kytvi2p\/libsodium,soumith\/libsodium,rustyhorde\/libsodium,zhuqling\/libsodium,zhuqling\/libsodium,CyanogenMod\/android_external_dnscrypt_libsodium,pmienk\/libsodium,Payshares\/libsodium,CyanogenMod\/android_external_dnscrypt_libsodium,SpiderOak\/libsodium,tml\/libsodium,Payshare\/libsodium,SpiderOak\/libsodium,optedoblivion\/android_external_libsodium,GreatFruitOmsk\/libsodium,HappyYang\/libsodium,CyanogenMod\/android_external_dnscrypt_libsodium,akkakks\/libsodium,mvduin\/libsodium,paragonie-scott\/libsodium,rustyhorde\/libsodium,tml\/libsodium,eburkitt\/libsodium,zhuqling\/libsodium,netroby\/libsodium,kytvi2p\/libsodium,JackWink\/libsodium,akkakks\/libsodium,optedoblivion\/android_external_libsodium,SpiderOak\/libsodium,rustyhorde\/libsodium,mvduin\/libsodium,HappyYang\/libsodium"} {"commit":"a67b4a35ab897730d7847a96ca4b20925e0c7c38","old_file":"test\/profile\/instrprof-error.c","new_file":"test\/profile\/instrprof-error.c","old_contents":"\/\/ RUN: %clang_profgen -o %t -O3 %s\n\/\/ RUN: env LLVM_PROFILE_FILE=\"%t\/\" LLVM_PROFILE_VERBOSE_ERRORS=1 %run %t 1 2>&1 | FileCheck %s\n\nint main(int argc, const char *argv[]) {\n if (argc < 2)\n return 1;\n return 0;\n}\n\/\/ CHECK: LLVM Profile: Failed to write file \n","new_contents":"\/\/ RUN: %clang_profgen -o %t -O3 %s\n\/\/ RUN: env LLVM_PROFILE_FILE=%t\/ LLVM_PROFILE_VERBOSE_ERRORS=1 %run %t 1 2>&1 | FileCheck %s\n\nint main(int argc, const char *argv[]) {\n if (argc < 2)\n return 1;\n return 0;\n}\n\/\/ CHECK: LLVM Profile: Failed to write file \n","subject":"Remove quotes around env variable, NFC","message":"[profile] Remove quotes around env variable, NFC\n\ngit-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@264824 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":"f8c8f68c19c6fdb074047ebd0d05f5595a6a5686","old_file":"src\/output\/output_hls.h","new_file":"src\/output\/output_hls.h","old_contents":"#include \"output_http.h\"\n#include \"output_ts_base.h\"\n\nnamespace Mist{\n class OutHLS : public TSOutput{\n public:\n OutHLS(Socket::Connection &conn);\n ~OutHLS();\n static void init(Util::Config *cfg);\n void sendTS(const char *tsData, size_t len = 188);\n void sendNext();\n void onHTTP();\n bool isReadyForPlay();\n virtual void onFail(const std::string &msg, bool critical = false);\n\n protected:\n std::string h264init(const std::string &initData);\n std::string h265init(const std::string &initData);\n\n bool hasSessionIDs(){return !config->getBool(\"mergesessions\");}\n std::string liveIndex();\n std::string liveIndex(size_t tid, const std::string &sessId);\n\n size_t vidTrack;\n size_t audTrack;\n uint64_t until;\n };\n}\/\/ namespace Mist\n\ntypedef Mist::OutHLS mistOut;\n","new_contents":"#include \"output_http.h\"\n#include \"output_ts_base.h\"\n\nnamespace Mist{\n class OutHLS : public TSOutput{\n public:\n OutHLS(Socket::Connection &conn);\n ~OutHLS();\n static void init(Util::Config *cfg);\n void sendTS(const char *tsData, size_t len = 188);\n void sendNext();\n void onHTTP();\n bool isReadyForPlay();\n virtual void onFail(const std::string &msg, bool critical = false);\n virtual std::string getStatsName(){return Output::getStatsName();}\n protected:\n std::string h264init(const std::string &initData);\n std::string h265init(const std::string &initData);\n\n bool hasSessionIDs(){return !config->getBool(\"mergesessions\");}\n std::string liveIndex();\n std::string liveIndex(size_t tid, const std::string &sessId);\n\n size_t vidTrack;\n size_t audTrack;\n uint64_t until;\n };\n}\/\/ namespace Mist\n\ntypedef Mist::OutHLS mistOut;\n","subject":"Fix HLS being seen as input during init","message":"Fix HLS being seen as input during init\n","lang":"C","license":"unlicense","repos":"DDVTECH\/mistserver,DDVTECH\/mistserver,DDVTECH\/mistserver,DDVTECH\/mistserver,DDVTECH\/mistserver"} {"commit":"21dbe15f7dd0f0511bc0178d142213c3fadfcb99","old_file":"arch\/arm\/mach-w90x900\/include\/mach\/regs-usb.h","new_file":"arch\/arm\/mach-w90x900\/include\/mach\/regs-usb.h","old_contents":"","new_contents":"\/*\n * arch\/arm\/mach-w90x900\/include\/mach\/regs-usb.h\n *\n * Copyright (c) 2008 Nuvoton technology corporation.\n *\n * Wan ZongShun \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;version 2 of the License.\n *\n *\/\n\n#ifndef __ASM_ARCH_REGS_USB_H\n#define __ASM_ARCH_REGS_USB_H\n\n\/* usb Control Registers *\/\n#define USBH_BA\t\tW90X900_VA_USBEHCIHOST\n#define USBD_BA\t\tW90X900_VA_USBDEV\n#define USBO_BA\t\tW90X900_VA_USBOHCIHOST\n\n\/* USB Host Control Registers *\/\n#define REG_UPSCR0\t(USBH_BA+0x064)\n#define REG_UPSCR1\t(USBH_BA+0x068)\n#define REG_USBPCR0\t(USBH_BA+0x0C4)\n#define REG_USBPCR1\t(USBH_BA+0x0C8)\n\n\/* USBH OHCI Control Registers *\/\n#define REG_OpModEn\t(USBO_BA+0x204)\n\/*This bit controls the polarity of over\n*current flag from external power IC.\n*\/\n#define OCALow\t\t0x08\n\n#endif \/* __ASM_ARCH_REGS_USB_H *\/\n","subject":"Add Usb register controller header file dfine","message":"[ARM] 5499\/1: Add Usb register controller header file dfine\n\nAdd Usb register controller header file dfine.\nw90p910 usb ip is standard,but some mutifunction\ncontroll pin must be special define in w90p910\n\nSigned-off-by: Wan ZongShun <7d90017055ae88f9b614c1a99b7a29176cffa725@gmail.com>\nSigned-off-by: Russell King \n","lang":"C","license":"apache-2.0","repos":"TeamVee-Kanas\/android_kernel_samsung_kanas,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,KristFoundation\/Programs,KristFoundation\/Programs"} {"commit":"4eaa650e89278c8f6e3defd636433629d6bc2770","old_file":"src\/main\/entity\/components\/SkillComponent.h","new_file":"src\/main\/entity\/components\/SkillComponent.h","old_contents":"#ifndef SKILLCOMPONENT_H_\n#define SKILLCOMPONENT_H_\n\n\/**\n * Enumeration for identifying different skills.\n *\/\nenum skill_t {\n\tMelee,\n\tSwords,\n\tBastardSword,\n\tMaces,\n\tSpikedMace,\n\tFirstAid\n};\n\n\/**\n * Data structure to represent an Entity's skill.\n *\/\ntypedef struct\n{\n\tskill_t skill; \/\/\/< The type of skill\n\tint ranks; \/\/\/< Current ranks in the skill\n\tint xp; \/\/\/< Amount of XP earned towards next rank\n} SkillComponent;\n\n#endif\n","new_contents":"#ifndef SKILLCOMPONENT_H_\n#define SKILLCOMPONENT_H_\n\n\/**\n * Data structure to represent an Entity's skill.\n *\/\ntypedef struct\n{\n\tint ranks; \/\/\/< Current ranks in the skill\n\tint xp; \/\/\/< Amount of XP earned towards next rank\n} SkillComponent;\n\n\/**\n * Enumeration for identifying different skills.\n *\/\nenum skill_t {\n\tNOSKILL,\n\tMelee,\n\tSwords,\n\tBastardSword,\n\tMaces,\n\tSpikedMace,\n\tFirstAid\n};\n\n\/**\n * This array defines our parent skill relationships.\n *\n * If a skill's parent is NOSKILL, it has no parent.\n *\/\nconst skill_t* PARENT_SKILLS = { NOSKILL, NOSKILL, Melee, Swords, Melee, Maces, NOSKILL };\n\n#endif\n","subject":"Add NOSKILL skill type, remove from component","message":"Add NOSKILL skill type, remove from component\n\nThe component will be going into a MultiComponentManager, so it will already be indexed by skill_t; storing skill_t in the component as well is redundant, unnecessary, and redundant.\n","lang":"C","license":"mit","repos":"Kromey\/roglick"} {"commit":"631e13f0aac39105f7837035cffccf9c48fe16ab","old_file":"mc\/inc\/LinkDef.h","new_file":"mc\/inc\/LinkDef.h","old_contents":"\/\/ @(#)root\/mc:$Name: $:$Id: LinkDef.h,v 1.2 2002\/04\/26 08:46:10 brun Exp $\n#ifdef __CINT__\n\n#pragma link off all globals;\n#pragma link off all classes;\n#pragma link off all functions;\n \n#pragma link C++ global gMC;\n \n#pragma link C++ enum PDG_t;\n#pragma link C++ enum TMCProcess;\n\n#pragma link C++ class TVirtualMC+;\n#pragma link C++ class TVirtualMCApplication+;\n#pragma link C++ class TVirtualMCStack+;\n#pragma link C++ class TVirtualMCDecayer+;\n\n#endif\n\n\n\n\n\n","new_contents":"\/\/ @(#)root\/mc:$Name: $:$Id: LinkDef.h,v 1.2 2002\/04\/26 09:25:02 brun Exp $\n#ifdef __CINT__\n\n#pragma link off all globals;\n#pragma link off all classes;\n#pragma link off all functions;\n \n#pragma link C++ global gMC;\n \n#pragma link C++ enum PDG_t;\n#pragma link C++ enum TMCProcess;\n\n#pragma link C++ class TVirtualMC+;\n#pragma link C++ class TVirtualMCApplication+;\n#pragma link C++ class TVirtualMCStack+;\n#pragma link C++ class TVirtualMCDecayer+;\n#pragma link C++ class TMCVerbose+;\n\n#endif\n\n\n\n\n\n","subject":"Add TMCVerbose to the list of mc classes","message":"Add TMCVerbose to the list of mc classes\n\n\ngit-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@6190 27541ba8-7e3a-0410-8455-c3a389f83636\n","lang":"C","license":"lgpl-2.1","repos":"dawehner\/root,bbannier\/ROOT,dawehner\/root,dawehner\/root,dawehner\/root,dawehner\/root,bbannier\/ROOT,dawehner\/root,bbannier\/ROOT,bbannier\/ROOT,bbannier\/ROOT,dawehner\/root,bbannier\/ROOT,dawehner\/root,bbannier\/ROOT"} {"commit":"5f5f1422181bf195aafc27e30339d5960a787f7a","old_file":"main.c","new_file":"main.c","old_contents":"#include \n#include \"ports.h\"\n#include \"pic.h\"\n#include \"gdt.h\"\n#include \"idt.h\"\n#include \"irq.h\"\n#include \"screen.h\"\n\nvoid entry(void) {\n\tpic_remap(IRQ0, IRQ8);\n\tpic_set_masks(0, 0);\n\n\tgdt_init((struct GDT *)(0x500));\n\tidt_init((struct IDT *)(0x500 + sizeof(struct GDT)));\n\n\t__asm__ __volatile__ (\"sti\");\n\n\tscreen_init();\n\n\t__asm__ __volatile__ (\"int $0x50\");\n\tfor(;;) { __asm__ __volatile__ (\"hlt\"); }\n}\n","new_contents":"#include \n#include \"ports.h\"\n#include \"pic.h\"\n#include \"gdt.h\"\n#include \"idt.h\"\n#include \"irq.h\"\n#include \"screen.h\"\n\nvoid entry(void) {\n\tpic_remap(IRQ0, IRQ8);\n\tpic_set_masks(0, 0);\n\tidt_init((struct IDT *)(0x500));\n\n\tgdt_init((struct GDT *)(0x500 + sizeof(struct IDT)));\n\n\t__asm__ __volatile__ (\"sti\");\n\n\tscreen_init();\n\n\t__asm__ __volatile__ (\"int $0x50\");\n\tfor(;;) { __asm__ __volatile__ (\"hlt\"); }\n}\n","subject":"Set up IDT first to ensure exceptions are handled","message":"Set up IDT first to ensure exceptions are handled\n","lang":"C","license":"apache-2.0","repos":"shockkolate\/shockk-os,shockkolate\/shockk-os,shockkolate\/shockk-os"} {"commit":"10fbce820f580d058bdfb1ab89cf01a027da3161","old_file":"gitst.c","new_file":"gitst.c","old_contents":"\n#include \n#include \n#include \n#include \n#include \n\n#define GITBUF 2048\n\nint\nmain(int argc, char **argv)\n{\n int pid, ret;\n int pipes[2];\n char gitbuff[GITBUF];\n size_t gitlen;\n char b;\n char *br;\n int childst;\n\n if(pipe(pipes) != 0)\n {\n perror(\"Error creating pipes\");\n exit(1);\n }\n\n if((pid = fork()) == -1)\n {\n perror(\"Error forking git\");\n exit(1);\n }\n\n if(pid == 0) \/\/child\n {\n if(dup2(pipes[1], STDOUT_FILENO) == -1)\n {\n perror(\"Error duplicating stdout\");\n exit(1);\n }\n close(STDERR_FILENO);\n ret = execlp(\"git\", \"git\", \"status\", \"-z\", \"-b\", (char*)0);\n }\n\n waitpid(pid, &childst, 0);\n if(childst != 0) {\n exit(2);\n }\n\n gitlen = read(pipes[0], gitbuff, GITBUF);\n br = &gitbuff[3];\n putchar('(');\n\n while(*br != '\\0')\n {\n \/\/ Three dots separate the branch from the tracking branch\n if(*br == '.' && *(br+1) == '.' && *(br+2) == '.') break;\n putchar(*br++);\n }\n\n putchar(')');\n putchar('\\n');\n}\n\n","new_contents":"\n#include \n#include \n#include \n#include \n#include \n\n#define GITBUF 2048\n\nint\nmain(int argc, char **argv)\n{\n int pid, ret;\n int pipes[2];\n char gitbuff[GITBUF];\n size_t gitlen;\n char b;\n char *br;\n int childst;\n\n if(pipe(pipes) != 0)\n {\n perror(\"Error creating pipes\");\n exit(1);\n }\n\n if((pid = fork()) == -1)\n {\n perror(\"Error forking git\");\n exit(1);\n }\n\n if(pid == 0) \/\/child\n {\n if(dup2(pipes[1], STDOUT_FILENO) == -1)\n {\n perror(\"Error duplicating stdout\");\n exit(1);\n }\n close(STDERR_FILENO);\n ret = execlp(\"git\", \"git\", \"branch\", \"--list\", (char*)0);\n }\n\n waitpid(pid, &childst, 0);\n if(childst != 0) {\n exit(2);\n }\n\n gitlen = read(pipes[0], gitbuff, GITBUF);\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","subject":"Convert to `git branch` for performance","message":"Convert to `git branch` for performance\n\n - Using `git status` is eificient to get only the current branch but in\n a repo with a large number of untracked files it can stall for a long\n time getting the status of a repository. Git Branch is much better in\n these cases.\n","lang":"C","license":"bsd-3-clause","repos":"wnh\/prompt_utils"} {"commit":"df717db1600e062dcd96be7ba4ae431252d578dd","old_file":"test2\/float\/call\/many_floats.c","new_file":"test2\/float\/call\/many_floats.c","old_contents":"\/\/ RUN: %ucc -o %t %s\n\/\/ RUN: %ocheck 0 %t\n\/\/ RUN: %t | %output_check 'Hello 5 2.3' 'Hello 5 2.3'\n\n\/\/ should run without segfaulting\nmain()\n{\n\tprintf(\"Hello %d %.1f\\n\",\n\t\t\t5,\n\t\t\t2.3,\n\t\t\t2.3,\n\t\t\t2.3,\n\t\t\t2.3,\n\t\t\t2.3,\n\t\t\t2.3,\n\t\t\t2.3,\n\t\t\t2.3,\n\t\t\t2.3,\n\t\t\t2.3,\n\t\t\t2.3); \/\/ this causes an infinite loop in glibc's printf()\n\n\tprintf(\"Hello %d %.1f\\n\",\n\t\t\t5,\n\t\t\t2.3,\n\t\t\t2.3,\n\t\t\t2.3,\n\t\t\t2.3,\n\t\t\t2.3,\n\t\t\t2.3,\n\t\t\t2.3,\n\t\t\t2.3,\n\t\t\t2.3,\n\t\t\t2.3,\n\t\t\t2.3, \/\/ this causes an infinite loop in glibc's printf()\n\t\t\t2.3); \/\/ and this causes a crash\n\n\n\t\/\/ suspect the bug is to do with double alignment when passed as stack arguments\n\n\treturn 0;\n}\n","new_contents":"\/\/ RUN: %ucc -o %t %s\n\/\/ RUN: %ocheck 0 %t\n\/\/ RUN: %t | %output_check 'Hello 5 5.9' '7.3 8.7 10.1 11.5 12.9 14.3 15.7 17.1 18.5 19.9' 'Hello 5 15.7' '14.3 12.9 11.5 10.1 8.7 7.3 5.9 4.5 3.1 1.7 0.3'\n\n\n\/\/ should run without segfaulting\nmain()\n{\n\tprintf(\"Hello %d %.1f\\n\"\n\t\t\t\"%.1f %.1f %.1f %.1f %.1f %.1f %.1f %.1f %.1f %.1f\\n\",\n\t\t\t5,\n\t\t\t5.9,\n\t\t\t7.3,\n\t\t\t8.7,\n\t\t\t10.1,\n\t\t\t11.5,\n\t\t\t12.9,\n\t\t\t14.3,\n\t\t\t15.7,\n\t\t\t17.1,\n\t\t\t18.5,\n\t\t\t19.9); \/\/ this causes an infinite loop in glibc's printf()\n\n\tprintf(\"Hello %d %.1f\\n\"\n\t\t\t\"%.1f %.1f %.1f %.1f %.1f %.1f %.1f %.1f %.1f %.1f %.1f\\n\",\n\t\t\t5,\n\t\t\t15.7,\n\t\t\t14.3,\n\t\t\t12.9,\n\t\t\t11.5,\n\t\t\t10.1,\n\t\t\t8.7,\n\t\t\t7.3,\n\t\t\t5.9,\n\t\t\t4.5,\n\t\t\t3.1,\n\t\t\t1.7, \/\/ this causes an infinite loop in glibc's printf()\n\t\t\t0.3); \/\/ and this causes a crash\n\n\n\t\/\/ suspect the bug is to do with double alignment when passed as stack arguments\n\n\treturn 0;\n}\n","subject":"Format strings and more through test for stack floats","message":"Format strings and more through test for stack floats\n","lang":"C","license":"mit","repos":"bobrippling\/ucc-c-compiler,bobrippling\/ucc-c-compiler,bobrippling\/ucc-c-compiler"} {"commit":"7ba01aa3a21bd1edb41e5639584f153d694b967a","old_file":"test\/core\/tsi\/alts\/fake_handshaker\/fake_handshaker_server.h","new_file":"test\/core\/tsi\/alts\/fake_handshaker\/fake_handshaker_server.h","old_contents":"\/*\n *\n * Copyright 2018 gRPC authors.\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 TEST_CORE_TSI_ALTS_FAKE_HANDSHAKER_FAKE_HANDSHAKER_SERVER_H\n#define TEST_CORE_TSI_ALTS_FAKE_HANDSHAKER_FAKE_HANDSHAKER_SERVER_H\n\n#include \n#include \n\n#include \n\nnamespace grpc {\nnamespace gcp {\n\n\/\/ If max_expected_concurrent_rpcs is non-zero, the fake handshake service\n\/\/ will track the number of concurrent RPCs that it handles and abort\n\/\/ if if ever exceeds that number.\nstd::unique_ptr CreateFakeHandshakerService(\n int max_expected_concurrent_rpcs);\n\n} \/\/ namespace gcp\n} \/\/ namespace grpc\n\n#endif \/\/ TEST_CORE_TSI_ALTS_FAKE_HANDSHAKER_FAKE_HANDSHAKER_SERVER_H\n","new_contents":"\/*\n *\n * Copyright 2018 gRPC authors.\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 TEST_CORE_TSI_ALTS_FAKE_HANDSHAKER_FAKE_HANDSHAKER_SERVER_H\n#define TEST_CORE_TSI_ALTS_FAKE_HANDSHAKER_FAKE_HANDSHAKER_SERVER_H\n\n#include \n#include \n\n#include \n\nnamespace grpc {\nnamespace gcp {\n\n\/\/ If max_expected_concurrent_rpcs is non-zero, the fake handshake service\n\/\/ will track the number of concurrent RPCs that it handles and abort\n\/\/ if if ever exceeds that number.\nstd::unique_ptr CreateFakeHandshakerService(\n int expected_max_concurrent_rpcs);\n\n} \/\/ namespace gcp\n} \/\/ namespace grpc\n\n#endif \/\/ TEST_CORE_TSI_ALTS_FAKE_HANDSHAKER_FAKE_HANDSHAKER_SERVER_H\n","subject":"Fix differing parameter name clang tidy warning","message":"Fix differing parameter name clang tidy warning\n","lang":"C","license":"apache-2.0","repos":"muxi\/grpc,muxi\/grpc,vjpai\/grpc,ctiller\/grpc,nicolasnoble\/grpc,firebase\/grpc,muxi\/grpc,donnadionne\/grpc,jtattermusch\/grpc,jboeuf\/grpc,ctiller\/grpc,grpc\/grpc,stanley-cheung\/grpc,jboeuf\/grpc,stanley-cheung\/grpc,ejona86\/grpc,ejona86\/grpc,stanley-cheung\/grpc,firebase\/grpc,muxi\/grpc,stanley-cheung\/grpc,nicolasnoble\/grpc,grpc\/grpc,ctiller\/grpc,vjpai\/grpc,grpc\/grpc,ctiller\/grpc,muxi\/grpc,jtattermusch\/grpc,donnadionne\/grpc,nicolasnoble\/grpc,grpc\/grpc,ctiller\/grpc,nicolasnoble\/grpc,ejona86\/grpc,grpc\/grpc,jtattermusch\/grpc,jtattermusch\/grpc,grpc\/grpc,ejona86\/grpc,nicolasnoble\/grpc,stanley-cheung\/grpc,stanley-cheung\/grpc,muxi\/grpc,jtattermusch\/grpc,ctiller\/grpc,firebase\/grpc,jboeuf\/grpc,donnadionne\/grpc,vjpai\/grpc,grpc\/grpc,ctiller\/grpc,ctiller\/grpc,nicolasnoble\/grpc,jtattermusch\/grpc,vjpai\/grpc,nicolasnoble\/grpc,firebase\/grpc,nicolasnoble\/grpc,firebase\/grpc,vjpai\/grpc,ejona86\/grpc,ejona86\/grpc,jboeuf\/grpc,firebase\/grpc,donnadionne\/grpc,grpc\/grpc,grpc\/grpc,nicolasnoble\/grpc,vjpai\/grpc,firebase\/grpc,vjpai\/grpc,donnadionne\/grpc,jboeuf\/grpc,firebase\/grpc,jboeuf\/grpc,grpc\/grpc,ctiller\/grpc,ejona86\/grpc,muxi\/grpc,ejona86\/grpc,jboeuf\/grpc,firebase\/grpc,jboeuf\/grpc,donnadionne\/grpc,stanley-cheung\/grpc,nicolasnoble\/grpc,vjpai\/grpc,firebase\/grpc,donnadionne\/grpc,donnadionne\/grpc,stanley-cheung\/grpc,stanley-cheung\/grpc,grpc\/grpc,jboeuf\/grpc,grpc\/grpc,vjpai\/grpc,nicolasnoble\/grpc,ejona86\/grpc,jtattermusch\/grpc,donnadionne\/grpc,ctiller\/grpc,donnadionne\/grpc,ejona86\/grpc,vjpai\/grpc,firebase\/grpc,jtattermusch\/grpc,jtattermusch\/grpc,ctiller\/grpc,jtattermusch\/grpc,muxi\/grpc,ejona86\/grpc,jboeuf\/grpc,stanley-cheung\/grpc,vjpai\/grpc,muxi\/grpc,jtattermusch\/grpc,firebase\/grpc,muxi\/grpc,jboeuf\/grpc,stanley-cheung\/grpc,jtattermusch\/grpc,donnadionne\/grpc,nicolasnoble\/grpc,muxi\/grpc,ctiller\/grpc,ejona86\/grpc,jboeuf\/grpc,vjpai\/grpc,muxi\/grpc,stanley-cheung\/grpc,donnadionne\/grpc"} {"commit":"b5707323dd01a74be0169d3550d565b35c2c6ca2","old_file":"webkit\/glue\/webkit_constants.h","new_file":"webkit\/glue\/webkit_constants.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 WEBKIT_GLUE_WEBKIT_CONSTANTS_H_\n#define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_\n\nnamespace webkit_glue {\n\n\/\/ Chromium sets the minimum interval timeout to 4ms, overriding the\n\/\/ default of 10ms. We'd like to go lower, however there are poorly\n\/\/ coded websites out there which do create CPU-spinning loops. Using\n\/\/ 4ms prevents the CPU from spinning too busily and provides a balance\n\/\/ between CPU spinning and the smallest possible interval timer.\nconst double kForegroundTabTimerInterval = 0.004;\n\n\/\/ Provides control over the minimum timer interval for background tabs.\nconst double kBackgroundTabTimerInterval = 0.004;\n\n} \/\/ namespace webkit_glue\n\n#endif \/\/ WEBKIT_GLUE_WEBKIT_CONSTANTS_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 WEBKIT_GLUE_WEBKIT_CONSTANTS_H_\n#define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_\n\nnamespace webkit_glue {\n\n\/\/ Chromium sets the minimum interval timeout to 4ms, overriding the\n\/\/ default of 10ms. We'd like to go lower, however there are poorly\n\/\/ coded websites out there which do create CPU-spinning loops. Using\n\/\/ 4ms prevents the CPU from spinning too busily and provides a balance\n\/\/ between CPU spinning and the smallest possible interval timer.\nconst double kForegroundTabTimerInterval = 0.004;\n\n\/\/ Provides control over the minimum timer interval for background tabs.\nconst double kBackgroundTabTimerInterval = 1.0;\n\n} \/\/ namespace webkit_glue\n\n#endif \/\/ WEBKIT_GLUE_WEBKIT_CONSTANTS_H_\n","subject":"Increase the minimum interval for timers on background tabs to reduce their CPU consumption.","message":"Increase the minimum interval for timers on background tabs to reduce\ntheir CPU consumption.\n\nThe new interval is 1000 ms, or once per second. We can easily adjust\nthis value up or down, but this seems like a reasonable value to judge\nthe compatibility impact of this change.\n\nBUG=66078\nTEST=none (tested manually with minimal test case)\n\nReview URL: http:\/\/codereview.chromium.org\/6546021\n\ngit-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@75430 0039d316-1c4b-4281-b951-d872f2087c98\n","lang":"C","license":"bsd-3-clause","repos":"adobe\/chromium,gavinp\/chromium,gavinp\/chromium,Crystalnix\/house-of-life-chromium,gavinp\/chromium,yitian134\/chromium,ropik\/chromium,ropik\/chromium,yitian134\/chromium,ropik\/chromium,Crystalnix\/house-of-life-chromium,adobe\/chromium,adobe\/chromium,yitian134\/chromium,adobe\/chromium,ropik\/chromium,ropik\/chromium,gavinp\/chromium,Crystalnix\/house-of-life-chromium,Crystalnix\/house-of-life-chromium,Crystalnix\/house-of-life-chromium,adobe\/chromium,yitian134\/chromium,yitian134\/chromium,gavinp\/chromium,yitian134\/chromium,ropik\/chromium,ropik\/chromium,Crystalnix\/house-of-life-chromium,Crystalnix\/house-of-life-chromium,Crystalnix\/house-of-life-chromium,adobe\/chromium,yitian134\/chromium,adobe\/chromium,yitian134\/chromium,gavinp\/chromium,adobe\/chromium,gavinp\/chromium,yitian134\/chromium,adobe\/chromium,yitian134\/chromium,Crystalnix\/house-of-life-chromium,ropik\/chromium,gavinp\/chromium,Crystalnix\/house-of-life-chromium,Crystalnix\/house-of-life-chromium,ropik\/chromium,gavinp\/chromium,adobe\/chromium,adobe\/chromium,gavinp\/chromium"} {"commit":"73d218160c386019ea849719d36212c06d3962d2","old_file":"core\/alsp_src\/win32\/mswin32_config.h","new_file":"core\/alsp_src\/win32\/mswin32_config.h","old_contents":"\/* \n * mswin32_config.h\tHand made MSWin32 configuration file.\n *\tCopyright (c) 1996 Applied Logic Systems, Inc.\n *\n * Author:\tChuck Houpt\n * Creation:\t1\/30\/96\n *\/\n\n#include \"dfltsys.h\"\n\n#define MSWin32 1\n#define OSStr \"mswin32\"\n\n#ifdef __GNUC__\n#define EXTERNAL_STATE\t1\n#endif\n\n\/* Temp. disable threading until threading GUI stub is fixed *\/\n#ifdef __GNUC__\n#define Bytecode 1\n#endif\n\n#define HAVE_STDARG_H\t1\n#define HAVE_STDLIB_H\t1\n#define HAVE_FCNTL_H\t1\n#define HAVE_STRING_H\t1\n#define HAVE_SRAND\t\t1\n\n#define HAVE_TIME\t\t1\n\n#define HAVE_SOCKET\t\t1\n#define BERKELEY_SOCKETS\t1\n#define HAVE_SELECT\t\t1\n#define MISSING_UNIX_DOMAIN_SOCKETS 1\n\n#define APP_PRINTF_CALLBACK\t1\n\n#define HAVE_STRCSPN\t1\n#define HAVE_STRSPN\t1\n#define HAVE_STRTOK\t1\n\n#define REVERSE_ENDIAN 1\n\n\/* The windows headers in Cygwin 1.3.4 are missing some prototypes,\n so define them here to silence the waring messages. *\/\n#ifdef __GNUC__\nextern __inline__ void* GetCurrentFiber(void);\nextern __inline__ void* GetFiberData(void);\n#endif\n\n#include \n#include \n","new_contents":"\/* \n * mswin32_config.h\tHand made MSWin32 configuration file.\n *\tCopyright (c) 1996 Applied Logic Systems, Inc.\n *\n * Author:\tChuck Houpt\n * Creation:\t1\/30\/96\n *\/\n\n#include \"dfltsys.h\"\n\n#define MSWin32 1\n#define OSStr \"mswin32\"\n\n#ifdef __GNUC__\n#define EXTERNAL_STATE\t1\n#endif\n\n\/* Temp. disable threading until threading GUI stub is fixed *\/\n#ifdef __GNUC__\n#define Bytecode 1\n#endif\n\n#define HAVE_STDARG_H\t1\n#define HAVE_STDLIB_H\t1\n#define HAVE_FCNTL_H\t1\n#define HAVE_STRING_H\t1\n#define HAVE_SRAND\t\t1\n\n#define HAVE_TIME\t\t1\n\n#define HAVE_SOCKET\t\t1\n#define BERKELEY_SOCKETS\t1\n#define HAVE_SELECT\t\t1\n#define MISSING_UNIX_DOMAIN_SOCKETS 1\n\n#define APP_PRINTF_CALLBACK\t1\n\n#define HAVE_STRCSPN\t1\n#define HAVE_STRSPN\t1\n#define HAVE_STRTOK\t1\n\n#define REVERSE_ENDIAN 1\n\n#include \n#include \n","subject":"Remove defunct missing defs that interfere with CI build","message":"Remove defunct missing defs that interfere with CI build","lang":"C","license":"mit","repos":"AppliedLogicSystems\/ALSProlog,AppliedLogicSystems\/ALSProlog,AppliedLogicSystems\/ALSProlog,AppliedLogicSystems\/ALSProlog,AppliedLogicSystems\/ALSProlog,AppliedLogicSystems\/ALSProlog,AppliedLogicSystems\/ALSProlog,AppliedLogicSystems\/ALSProlog,AppliedLogicSystems\/ALSProlog"} {"commit":"19a8fcca4bd4a935f4cb03292046d193176edd7e","old_file":"chrome\/browser\/desktop_notification_handler.h","new_file":"chrome\/browser\/desktop_notification_handler.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 CHROME_BROWSER_DESKTOP_NOTIFICATION_HANDLER_H_\n#define CHROME_BROWSER_DESKTOP_NOTIFICATION_HANDLER_H_\n#pragma once\n\n#include \"content\/browser\/renderer_host\/render_view_host_observer.h\"\n\nclass GURL;\nstruct DesktopNotificationHostMsg_Show_Params;\n\n\/\/ Per-tab Desktop notification handler. Handles desktop notification IPCs\n\/\/ coming in from the renderer.\nclass DesktopNotificationHandler : public RenderViewHostObserver {\n public:\n explicit DesktopNotificationHandler(RenderViewHost* render_view_host);\n virtual ~DesktopNotificationHandler();\n\n private:\n \/\/ RenderViewHostObserver implementation.\n virtual bool OnMessageReceived(const IPC::Message& message);\n\n \/\/ IPC handlers.\n void OnShow(const DesktopNotificationHostMsg_Show_Params& params);\n void OnCancel(int notification_id);\n void OnRequestPermission(const GURL& origin, int callback_id);\n\n private:\n DISALLOW_COPY_AND_ASSIGN(DesktopNotificationHandler);\n};\n\n#endif \/\/ CHROME_BROWSER_DESKTOP_NOTIFICATION_HANDLER_H_\n\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 CHROME_BROWSER_DESKTOP_NOTIFICATION_HANDLER_H_\n#define CHROME_BROWSER_DESKTOP_NOTIFICATION_HANDLER_H_\n#pragma once\n\n#include \"content\/browser\/renderer_host\/render_view_host_observer.h\"\n\nclass GURL;\nstruct DesktopNotificationHostMsg_Show_Params;\n\n\/\/ Per-tab Desktop notification handler. Handles desktop notification IPCs\n\/\/ coming in from the renderer.\nclass DesktopNotificationHandler : public RenderViewHostObserver {\n public:\n explicit DesktopNotificationHandler(RenderViewHost* render_view_host);\n virtual ~DesktopNotificationHandler();\n\n private:\n \/\/ RenderViewHostObserver implementation.\n bool OnMessageReceived(const IPC::Message& message);\n\n \/\/ IPC handlers.\n void OnShow(const DesktopNotificationHostMsg_Show_Params& params);\n void OnCancel(int notification_id);\n void OnRequestPermission(const GURL& origin, int callback_id);\n\n private:\n DISALLOW_COPY_AND_ASSIGN(DesktopNotificationHandler);\n};\n\n#endif \/\/ CHROME_BROWSER_DESKTOP_NOTIFICATION_HANDLER_H_\n\n","subject":"Revert 80939 - Fix clang error TBR=jam@chromium.org","message":"Revert 80939 - Fix clang error\nTBR=jam@chromium.org\n\ngit-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@80954 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":"0750c7aa88ead737570fe37e825f267b046c5e53","old_file":"tos\/types\/NxIeeeEui64.h","new_file":"tos\/types\/NxIeeeEui64.h","old_contents":"","new_contents":"\/**\n * Struct for IEEE EUI64 with network byte order and nx_structs.\n *\n * @author Raido Pahtma\n * @license MIT\n *\/\n#ifndef NXIEEEEUI64_H\n#define NXIEEEEUI64_H\n\n#include \"IeeeEui64.h\"\n\ntypedef nx_struct nx_ieee_eui64 {\n nx_uint8_t data[IEEE_EUI64_LENGTH];\n} nx_ieee_eui64_t;\n\n#endif \/\/ NXIEEEEUI64_H\n","subject":"Add separate file for nx_ieee_eui64, since tinyos-main is unable to support it.","message":"Add separate file for nx_ieee_eui64, since tinyos-main is unable to support it.\n","lang":"C","license":"mit","repos":"thinnect\/tos-groundlib,thinnect\/tosgroundlib,thinnect\/tos-groundlib,thinnect\/tosgroundlib"} {"commit":"0d3d2c64205b736d86a038b0411e833d77f1581e","old_file":"lib\/grn_report.h","new_file":"lib\/grn_report.h","old_contents":"\/* -*- c-basic-offset: 2 -*- *\/\n\/*\n Copyright(C) 2015 Brazil\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\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, write to the Free Software\n Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n*\/\n\n#ifndef GRN_REPORT_H\n#define GRN_REPORT_H\n\n#include \"grn_ctx.h\"\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\nconst grn_log_level GRN_REPORT_INDEX_LOG_LEVEL;\n\nvoid grn_report_index(grn_ctx *ctx,\n const char *action,\n const char *tag,\n grn_obj *index);\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif \/* GRN_REPORT_H *\/\n","new_contents":"\/* -*- c-basic-offset: 2 -*- *\/\n\/*\n Copyright(C) 2015 Brazil\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\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, write to the Free Software\n Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n*\/\n\n#ifndef GRN_REPORT_H\n#define GRN_REPORT_H\n\n#include \"grn_ctx.h\"\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\nextern const grn_log_level GRN_REPORT_INDEX_LOG_LEVEL;\n\nvoid grn_report_index(grn_ctx *ctx,\n const char *action,\n const char *tag,\n grn_obj *index);\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif \/* GRN_REPORT_H *\/\n","subject":"Add missing extern to variable in header","message":"Add missing extern to variable in header\n\nThis missing extern causes following error in OSX:\n\n```log\n...\n2403 warnings generated.\n CXXLD libgroonga.la\nduplicate symbol _GRN_REPORT_INDEX_LOG_LEVEL in:\n .libs\/db.o\n .libs\/expr.o\nduplicate symbol _GRN_REPORT_INDEX_LOG_LEVEL in:\n .libs\/db.o\n .libs\/report.o\nld: 2 duplicate symbols for architecture x86_64\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\nmake[4]: *** [libgroonga.la] Error 1\nmake[3]: *** [all-recursive] Error 1\nmake[2]: *** [all] Error 2\nmake[1]: *** [all-recursive] Error 1\nmake: *** [all] Error 2\n```\n","lang":"C","license":"lgpl-2.1","repos":"groonga\/groonga,cosmo0920\/groonga,komainu8\/groonga,komainu8\/groonga,cosmo0920\/groonga,kenhys\/groonga,komainu8\/groonga,naoa\/groonga,cosmo0920\/groonga,kenhys\/groonga,hiroyuki-sato\/groonga,naoa\/groonga,groonga\/groonga,kenhys\/groonga,groonga\/groonga,groonga\/groonga,komainu8\/groonga,kenhys\/groonga,hiroyuki-sato\/groonga,komainu8\/groonga,hiroyuki-sato\/groonga,komainu8\/groonga,cosmo0920\/groonga,naoa\/groonga,groonga\/groonga,cosmo0920\/groonga,cosmo0920\/groonga,hiroyuki-sato\/groonga,hiroyuki-sato\/groonga,kenhys\/groonga,komainu8\/groonga,kenhys\/groonga,hiroyuki-sato\/groonga,hiroyuki-sato\/groonga,naoa\/groonga,kenhys\/groonga,groonga\/groonga,naoa\/groonga,cosmo0920\/groonga,komainu8\/groonga,naoa\/groonga,groonga\/groonga,hiroyuki-sato\/groonga,groonga\/groonga,naoa\/groonga,kenhys\/groonga,naoa\/groonga,cosmo0920\/groonga"} {"commit":"4e3196697dce9040ff115cea09c1d422a4691dd8","old_file":"src\/util\/thread_specific.h","new_file":"src\/util\/thread_specific.h","old_contents":"","new_contents":"\/**\n * \\file thread_specific.h\n *\n * A thread specific type.\n *\n * \\author eaburns\n * \\date 2009-07-23\n *\/\n\n#if !defined(_THREAD_SPECIFIC_H_)\n#define _THREAD_SPECIFIC_H_\n\n#include \nusing namespace std;\n\n#include \"thread.h\"\n\n\/* To attempt to prevent cache ping-ponging? *\/\n#define PADDING 24 \t\t\/* bytes *\/\n\ntemplate \nclass ThreadSpecific {\nprivate:\n\t\/* Ensure that the array is large enough for [tid] number of\n\t * elements. *\/\n\tvoid ensure_size(unsigned int tid)\n\t{\n\t\tif (tid >= entries.size()) {\n\t\t\tstruct padded_entry ent;\n\t\t\tent.data = init_val;\n\t\t\tentries.resize(tid + 1, ent);\n\t\t}\n\n\t}\npublic:\n\tThreadSpecific(T iv)\n\t{\n\t\tinit_val = iv;\n\t}\n\n\tT get_value(void)\n\t{\n\t\tunsigned int tid = Thread::current()->get_id();\n\t\tensure_size(tid);\n\t\treturn entries[tid].data;\n\t}\n\n\tvoid set_value(T v)\n\t{\n\t\tunsigned int tid = Thread::current()->get_id();\n\t\tensure_size(tid);\n\t\tentries[tid].data = v;\n\t}\n\n\t\/**\n\t * Get all entries.\n\t *\/\n\tvector get_all_entries(void)\n\t{\n\t\ttypename vector::iterator iter;\n\t\tvector ret;\n\n\t\tfor (iter = entries.begin(); iter != entries.end(); iter++)\n\t\t\tret.push_back((*iter).data);\n\n\t\treturn ret;\n\t}\n\nprivate:\n\tT init_val;\n\n\t\/* We want to try to get each element of the array on a\n\t * seperate cache line. *\/\n\tstruct padded_entry {\n\t\tT data;\n\t\tchar padding[PADDING];\n\t};\n\n\tvector entries;\n};\n\n#endif\t\/* !_THREAD_SPECIFIC_H_ *\/\n","subject":"Add the thread specific class.","message":"Add the thread specific class.\n","lang":"C","license":"mit","repos":"eaburns\/pbnf,eaburns\/pbnf,eaburns\/pbnf,eaburns\/pbnf"} {"commit":"b59a3395e6e276e715d9972749ec5c4cefb4157a","old_file":"chrome\/browser\/extensions\/api\/cryptotoken_private\/cryptotoken_private_api.h","new_file":"chrome\/browser\/extensions\/api\/cryptotoken_private\/cryptotoken_private_api.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 CHROME_BROWSER_EXTENSIONS_API_CRYPTOTOKEN_PRIVATE_CRYPTOTOKEN_PRIVATE_API_H_\n#define CHROME_BROWSER_EXTENSIONS_API_CRYPTOTOKEN_PRIVATE_CRYPTOTOKEN_PRIVATE_API_H_\n\n#include \n\n#include \"base\/basictypes.h\"\n#include \"base\/memory\/scoped_ptr.h\"\n#include \"chrome\/browser\/extensions\/chrome_extension_function_details.h\"\n#include \"chrome\/common\/extensions\/api\/cryptotoken_private.h\"\n#include \"extensions\/browser\/extension_function.h\"\n\n\/\/ Implementations for chrome.cryptotokenPrivate API functions.\n\nnamespace infobars {\nclass InfoBar;\n}\n\nnamespace extensions {\nnamespace api {\n\nclass CryptotokenPrivateCanOriginAssertAppIdFunction\n : public UIThreadExtensionFunction {\n public:\n CryptotokenPrivateCanOriginAssertAppIdFunction();\n DECLARE_EXTENSION_FUNCTION(\"cryptotokenPrivate.canOriginAssertAppId\",\n CRYPTOTOKENPRIVATE_CANORIGINASSERTAPPID)\n protected:\n ~CryptotokenPrivateCanOriginAssertAppIdFunction() override {}\n ResponseAction Run() override;\n\n private:\n ChromeExtensionFunctionDetails chrome_details_;\n};\n\n} \/\/ namespace api\n} \/\/ namespace extensions\n\n#endif \/\/ CHROME_BROWSER_EXTENSIONS_API_CRYPTOTOKEN_PRIVATE_CRYPTOTOKEN_PRIVATE_API_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 CHROME_BROWSER_EXTENSIONS_API_CRYPTOTOKEN_PRIVATE_CRYPTOTOKEN_PRIVATE_API_H_\n#define CHROME_BROWSER_EXTENSIONS_API_CRYPTOTOKEN_PRIVATE_CRYPTOTOKEN_PRIVATE_API_H_\n\n#include \n\n#include \"base\/basictypes.h\"\n#include \"base\/memory\/scoped_ptr.h\"\n#include \"chrome\/browser\/extensions\/chrome_extension_function_details.h\"\n#include \"chrome\/common\/extensions\/api\/cryptotoken_private.h\"\n#include \"extensions\/browser\/extension_function.h\"\n\n\/\/ Implementations for chrome.cryptotokenPrivate API functions.\n\nnamespace extensions {\nnamespace api {\n\nclass CryptotokenPrivateCanOriginAssertAppIdFunction\n : public UIThreadExtensionFunction {\n public:\n CryptotokenPrivateCanOriginAssertAppIdFunction();\n DECLARE_EXTENSION_FUNCTION(\"cryptotokenPrivate.canOriginAssertAppId\",\n CRYPTOTOKENPRIVATE_CANORIGINASSERTAPPID)\n protected:\n ~CryptotokenPrivateCanOriginAssertAppIdFunction() override {}\n ResponseAction Run() override;\n\n private:\n ChromeExtensionFunctionDetails chrome_details_;\n};\n\n} \/\/ namespace api\n} \/\/ namespace extensions\n\n#endif \/\/ CHROME_BROWSER_EXTENSIONS_API_CRYPTOTOKEN_PRIVATE_CRYPTOTOKEN_PRIVATE_API_H_\n","subject":"Remove an unneeded forward declaration.","message":"Remove an unneeded forward declaration.\n\nBUG=457769\nR=pkasting@chromium.org,rockot@chromium.org\n\nReview URL: https:\/\/codereview.chromium.org\/930493002\n\nCr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#316348}\n","lang":"C","license":"bsd-3-clause","repos":"PeterWangIntel\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,TheTypoMaster\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,hgl888\/chromium-crosswalk,fujunwei\/chromium-crosswalk,Chilledheart\/chromium,PeterWangIntel\/chromium-crosswalk,Chilledheart\/chromium,Just-D\/chromium-1,TheTypoMaster\/chromium-crosswalk,Chilledheart\/chromium,axinging\/chromium-crosswalk,chuan9\/chromium-crosswalk,ltilve\/chromium,hgl888\/chromium-crosswalk,Fireblend\/chromium-crosswalk,Just-D\/chromium-1,chuan9\/chromium-crosswalk,Chilledheart\/chromium,ltilve\/chromium,Fireblend\/chromium-crosswalk,Pluto-tv\/chromium-crosswalk,Pluto-tv\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,axinging\/chromium-crosswalk,chuan9\/chromium-crosswalk,Chilledheart\/chromium,PeterWangIntel\/chromium-crosswalk,Fireblend\/chromium-crosswalk,TheTypoMaster\/chromium-crosswalk,ltilve\/chromium,Pluto-tv\/chromium-crosswalk,Fireblend\/chromium-crosswalk,Fireblend\/chromium-crosswalk,axinging\/chromium-crosswalk,TheTypoMaster\/chromium-crosswalk,chuan9\/chromium-crosswalk,axinging\/chromium-crosswalk,chuan9\/chromium-crosswalk,fujunwei\/chromium-crosswalk,Pluto-tv\/chromium-crosswalk,Fireblend\/chromium-crosswalk,hgl888\/chromium-crosswalk,fujunwei\/chromium-crosswalk,chuan9\/chromium-crosswalk,Just-D\/chromium-1,axinging\/chromium-crosswalk,ltilve\/chromium,Just-D\/chromium-1,fujunwei\/chromium-crosswalk,chuan9\/chromium-crosswalk,fujunwei\/chromium-crosswalk,Pluto-tv\/chromium-crosswalk,hgl888\/chromium-crosswalk,ltilve\/chromium,Just-D\/chromium-1,Fireblend\/chromium-crosswalk,fujunwei\/chromium-crosswalk,fujunwei\/chromium-crosswalk,hgl888\/chromium-crosswalk,Pluto-tv\/chromium-crosswalk,axinging\/chromium-crosswalk,TheTypoMaster\/chromium-crosswalk,axinging\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,TheTypoMaster\/chromium-crosswalk,Pluto-tv\/chromium-crosswalk,hgl888\/chromium-crosswalk,fujunwei\/chromium-crosswalk,Chilledheart\/chromium,chuan9\/chromium-crosswalk,Just-D\/chromium-1,hgl888\/chromium-crosswalk,Fireblend\/chromium-crosswalk,Just-D\/chromium-1,ltilve\/chromium,axinging\/chromium-crosswalk,TheTypoMaster\/chromium-crosswalk,Pluto-tv\/chromium-crosswalk,Just-D\/chromium-1,axinging\/chromium-crosswalk,chuan9\/chromium-crosswalk,Pluto-tv\/chromium-crosswalk,fujunwei\/chromium-crosswalk,ltilve\/chromium,ltilve\/chromium,TheTypoMaster\/chromium-crosswalk,hgl888\/chromium-crosswalk,TheTypoMaster\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,hgl888\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,Chilledheart\/chromium,Fireblend\/chromium-crosswalk,axinging\/chromium-crosswalk,Just-D\/chromium-1,Chilledheart\/chromium,ltilve\/chromium,axinging\/chromium-crosswalk,Chilledheart\/chromium"} {"commit":"cb3786e6ed05e08592b4697beff83c3879ce13bf","old_file":"libc\/sysdeps\/linux\/common\/getgid.c","new_file":"libc\/sysdeps\/linux\/common\/getgid.c","old_contents":"\/* vi: set sw=4 ts=4: *\/\n\/*\n * getgid() for uClibc\n *\n * Copyright (C) 2000-2006 Erik Andersen \n *\n * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.\n *\/\n\n#include \"syscalls.h\"\n#include \n\n#if defined __NR_getxgid\n# define __NR_getgid __NR_getxgid\n#endif\n_syscall0(gid_t, getgid);\nlibc_hidden_proto(getgid)\nlibc_hidden_def(getgid)\n","new_contents":"\/* vi: set sw=4 ts=4: *\/\n\/*\n * getgid() for uClibc\n *\n * Copyright (C) 2000-2006 Erik Andersen \n *\n * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.\n *\/\n\n#include \"syscalls.h\"\n#include \n\n#if defined __NR_getxgid\n# define __NR_getgid __NR_getxgid\n#endif\nlibc_hidden_proto(getgid)\n_syscall0(gid_t, getgid);\nlibc_hidden_def(getgid)\n","subject":"Make gcc4 happy as well","message":"Make gcc4 happy as well\n","lang":"C","license":"lgpl-2.1","repos":"joel-porquet\/tsar-uclibc,joel-porquet\/tsar-uclibc,joel-porquet\/tsar-uclibc,joel-porquet\/tsar-uclibc"} {"commit":"59306802d58df62203ecd17271bacbdc9d268bfd","old_file":"Marshal\/Marshal.h","new_file":"Marshal\/Marshal.h","old_contents":"\/\/\n\/\/ Marshal.h\n\/\/ Marshal\n\/\/\n\/\/ Created by Jason Larsen on 2\/24\/16.\n\/\/ Copyright © 2016 Utah iOS & Mac. All rights reserved.\n\/\/\n\n#import \n\n\/\/! Project version number for Marshal.\nFOUNDATION_EXPORT double MarshalVersionNumber;\n\n\/\/! Project version string for Marshal.\nFOUNDATION_EXPORT const unsigned char MarshalVersionString[];\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\/\/ M A R S H A L\n\/\/\n\/\/ ()\n\/\/ \/\\\n\/\/ ()--' '--()\n\/\/ `. .'\n\/\/ \/ .. \\\n\/\/ ()' '()\n\/\/\n\/\/\n\n#import \n\n\/\/! Project version number for Marshal.\nFOUNDATION_EXPORT double MarshalVersionNumber;\n\n\/\/! Project version string for Marshal.\nFOUNDATION_EXPORT const unsigned char MarshalVersionString[];\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 to resolve macros instead of UIKit","message":"Use Foundation to resolve macros instead of UIKit\n","lang":"C","license":"mit","repos":"utahiosmac\/Marshal,utahiosmac\/Marshal"} {"commit":"2f0befaa35ec8b1baa2fe61438f9705206e694cb","old_file":"MeetingApp\/Meeting\/Protocols\/IMeetingDelegate.h","new_file":"MeetingApp\/Meeting\/Protocols\/IMeetingDelegate.h","old_contents":"\/\/\n\/\/ IMeetingDelegate.h\n\/\/ MeetingApp\n\/\/\n\/\/ Created by Estefania Chavez Guardado on 2\/27\/16.\n\/\/ Copyright © 2016 Estefania Chavez Guardado. All rights reserved.\n\/\/\n\n#import \n\n#import \"Meeting.h\"\n\n@protocol IMeetingDelegate \n\n@optional\n\n- (void) update: (MutableMeeting *) newMeeting;\n\n- (void) moveToInactiveMeetings:(int) indexMeeting\n andInactiveTheMeeting: (NSString *) idMeeting;\n\n- (void) updateDetail: (MutableMeeting *) meeting;\n\n@end","new_contents":"\/\/\n\/\/ IMeetingDelegate.h\n\/\/ MeetingApp\n\/\/\n\/\/ Created by Estefania Chavez Guardado on 2\/27\/16.\n\/\/ Copyright © 2016 Estefania Chavez Guardado. All rights reserved.\n\/\/\n\n#import \n\n#import \"Meeting.h\"\n\ntypedef enum NotificationType {\n NOTIFICATION_TYPE_EMAIL,\n NOTIFICATION_TYPE_CALENDAR\n} NotificationType;\n\n@protocol IMeetingDelegate \n\n@optional\n\n- (void) update: (MutableMeeting *) newMeeting;\n\n- (void) moveToInactiveMeetings:(int) indexMeeting\n andInactiveTheMeeting: (NSString *) idMeeting;\n\n- (void) updateDetail: (MutableMeeting *) meeting;\n\n\/\/ TODO: Send to update the notification\n- (void) updateNotification: (NotificationType) type withCallback:(void (^)(BOOL updated)) callback;\n\n@end","subject":"Define the method updateNotification in meetingbussiness","message":"Define the method updateNotification in meetingbussiness\n","lang":"C","license":"apache-2.0","repos":"iTermin\/app_iOS"} {"commit":"b9592bddbc014759941b94b76596c1dbf2245ad3","old_file":"common\/alexcpt.h","new_file":"common\/alexcpt.h","old_contents":"#ifndef ALEXCPT_H\n#define ALEXCPT_H\n\n#include \n#include \n\n#include \"AL\/alc.h\"\n\n\nnamespace al {\n\nclass backend_exception final : public std::exception {\n std::string mMessage;\n ALCenum mErrorCode;\n\npublic:\n backend_exception(ALCenum code, const char *msg, ...);\n\n const char *what() const noexcept override { return mMessage.c_str(); }\n ALCenum errorCode() const noexcept { return mErrorCode; }\n};\n\n} \/\/ namespace al\n\n#define START_API_FUNC try\n\n#define END_API_FUNC catch(...) { std::terminate(); }\n\n#endif \/* ALEXCPT_H *\/\n","new_contents":"#ifndef ALEXCPT_H\n#define ALEXCPT_H\n\n#include \n#include \n\n#include \"AL\/alc.h\"\n\n\n#ifdef __GNUC__\n#define ALEXCPT_FORMAT(x, y, z) __attribute__((format(x, (y), (z))))\n#else\n#define ALEXCPT_FORMAT(x, y, z)\n#endif\n\n\nnamespace al {\n\nclass backend_exception final : public std::exception {\n std::string mMessage;\n ALCenum mErrorCode;\n\npublic:\n backend_exception(ALCenum code, const char *msg, ...) ALEXCPT_FORMAT(printf, 3,4);\n\n const char *what() const noexcept override { return mMessage.c_str(); }\n ALCenum errorCode() const noexcept { return mErrorCode; }\n};\n\n} \/\/ namespace al\n\n#define START_API_FUNC try\n\n#define END_API_FUNC catch(...) { std::terminate(); }\n\n#endif \/* ALEXCPT_H *\/\n","subject":"Add the printf format attribute to backend_exception's constructor","message":"Add the printf format attribute to backend_exception's constructor\n","lang":"C","license":"lgpl-2.1","repos":"aaronmjacobs\/openal-soft,aaronmjacobs\/openal-soft"} {"commit":"bea288dff2de7385645f1c787565cda9cb6fdb51","old_file":"tests\/regression\/29-svcomp\/11_arithmetic_bot.c","new_file":"tests\/regression\/29-svcomp\/11_arithmetic_bot.c","old_contents":"","new_contents":"\/\/ PARAM: --conf=conf\/svcomp21.json\n\/\/ from: ldv-linux-3.0\/usb_urb-drivers-vhost-vhost_net.ko.cil.out.i\ntypedef unsigned long long u64;\n\nint main( )\n{ u64 a ;\n unsigned long flag ;\n unsigned long roksum ;\n struct thread_info *tmp___7 ;\n int tmp___8 ;\n long tmp___9;\n void *log_base;\n unsigned long sz;\n u64 addr;\n {\n a = (addr \/ 4096ULL) \/ 8ULL;\n if (a > (u64 )(0x0fffffffffffffffUL - (unsigned long )log_base)) {\n return (0);\n } else {\n if (a + (u64 )((unsigned long )log_base) > 0x0fffffffffffffffULL) {\n return (0);\n } else {\n }\n }\n {\n tmp___7 = current_thread_info();\n \/\/ __asm__ (\"add %3,%1 ; sbb %0,%0 ; cmp %1,%4 ; sbb $0,%0\": \"=&r\" (flag), \"=r\" (roksum): \"1\" (log_base + a),\n \/\/ \"g\" ((long )((((sz + 32768UL) - 1UL) \/ 4096UL) \/ 8UL)), \"rm\" (tmp___7->addr_limit.seg));\n }\n if (flag == 0UL) {\n tmp___8 = 1;\n } else {\n tmp___8 = 0;\n }\n {\n tmp___9 = __builtin_expect((long )tmp___8, 1L);\n }\n return ((int )tmp___9);\n }\n}\n","subject":"Add failing test case with max u long long","message":"Add failing test case with max u long long\n","lang":"C","license":"mit","repos":"goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer"} {"commit":"6e332e0b23f37fb0bf9c8f8a68acb6bd81bf955e","old_file":"test\/Driver\/arm-xscale.c","new_file":"test\/Driver\/arm-xscale.c","old_contents":"","new_contents":"\/\/ RUN: %clang -target arm-freebsd -mcpu=xscale -### -c %s 2>&1 | FileCheck %s\n\/\/ CHECK-NOT: error: the clang compiler does not support '-mcpu=xscale'\n\/\/ CHECK: \"-cc1\"{{.*}} \"-target-cpu\" \"xscale\"{{.*}}\n","subject":"Add a clang test for r257376 (Ensure -mcpu=xscale works for arm targets).","message":"Add a clang test for r257376 (Ensure -mcpu=xscale works for arm targets).\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@257509 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"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,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang"} {"commit":"e0c1a00bbff90dffccc5d5aab9142b076b72a821","old_file":"thingshub\/CDZIssueSyncEngine.h","new_file":"thingshub\/CDZIssueSyncEngine.h","old_contents":"\/\/\n\/\/ CDZIssueSyncEngine.h\n\/\/ thingshub\n\/\/\n\/\/ Created by Chris Dzombak on 1\/13\/14.\n\/\/ Copyright (c) 2014 Chris Dzombak. All rights reserved.\n\/\/\n\n#import \n\n@class OCTClient;\n@class CDZThingsHubConfiguration;\n@protocol CDZIssueSyncDelegate;\n\n@interface CDZIssueSyncEngine : NSObject\n\n\/\/\/ Designated initializer\n- (instancetype)initWithDelegate:(id)delegate\n configuration:(CDZThingsHubConfiguration *)config\n authenticatedClient:(OCTClient *)client;\n\n\/\/\/ Returns a signal which will either complete or error after the sync operation.\n- (RACSignal *)sync;\n\n@end\n","new_contents":"\/\/\n\/\/ CDZIssueSyncEngine.h\n\/\/ thingshub\n\/\/\n\/\/ Created by Chris Dzombak on 1\/13\/14.\n\/\/ Copyright (c) 2014 Chris Dzombak. All rights reserved.\n\/\/\n\n#import \n\n@class OCTClient;\n@class CDZThingsHubConfiguration;\n@protocol CDZIssueSyncDelegate;\n\n@interface CDZIssueSyncEngine : NSObject\n\n\/\/\/ Designated initializer\n- (instancetype)initWithDelegate:(id)delegate\n configuration:(CDZThingsHubConfiguration *)config\n authenticatedClient:(OCTClient *)client;\n\n\/\/\/ Returns a signal which will asynchronously return strings as status updates,\n\/\/\/ and either complete or error after the sync operation.\n- (RACSignal *)sync;\n\n@end\n","subject":"Update sync method docs in IssueSyncEngine","message":"Update sync method docs in IssueSyncEngine","lang":"C","license":"mit","repos":"cdzombak\/thingshub,cdzombak\/thingshub,cdzombak\/thingshub"} {"commit":"3393cde61f40f1629a04688460a4d2dd5c76fff3","old_file":"bindings\/f95\/plflt.c","new_file":"bindings\/f95\/plflt.c","old_contents":"\/* Auxiliary program: write the include file for determining\n PLplot's floating-point type\n*\/\n\n#include \n#include \n#include \"plConfig.h\"\n\nmain(int argc, char *argv[] )\n{\n FILE *outfile ;\n char *kind ;\n\n outfile = fopen( \"plflt.inc\", \"w\" ) ;\n#ifdef PL_DOUBLE\n kind = \"1.0d0\"\n#else\n kind = \"1.0\"\n#endif\n\n fprintf{ outfile, \"\\\n! NOTE: Generated code\\n\\\n!\\n\\\n! Type of floating-point numbers in PLplot\\n\\\n!\\n\\\n integer, parameter :: plf = kind(%s)\\n\\\n integer, parameter :: plflt = plf\\n\", kind ) ;\n fclose( outfile ) ;\n}\n","new_contents":"\/* Auxiliary program: write the include file for determining\n PLplot's floating-point type\n*\/\n\n#include \n#include \n#include \"plConfig.h\"\n\nmain(int argc, char *argv[] )\n{\n FILE *outfile;\n char *kind;\n\n outfile = fopen( \"plflt.inc\", \"w\" ) ;\n#ifdef PL_DOUBLE\n kind = \"1.0d0\";\n#else\n kind = \"1.0\";\n#endif\n\n fprintf( outfile, \"C NOTE: Generated code\\n\");\n fprintf( outfile, \"C\\n\");\n fprintf( outfile, \"C Type of floating-point numbers in PLplot\\n\");\n fprintf( outfile, \"C\\n\");\n fprintf( outfile, \" integer, parameter :: plf = kind(%s)\\n\", kind);\n fprintf( outfile, \" integer, parameter :: plflt = plf\\n\");\n fclose( outfile);\n}\n","subject":"Fix large number of syntax errors (at least for gcc).","message":"Fix large number of syntax errors (at least for gcc).\n\nsvn path=\/trunk\/; revision=6508\n","lang":"C","license":"lgpl-2.1","repos":"FreeScienceCommunity\/PLPlot,FreeScienceCommunity\/PLPlot,FreeScienceCommunity\/PLPlot,FreeScienceCommunity\/PLPlot,FreeScienceCommunity\/PLPlot,FreeScienceCommunity\/PLPlot,FreeScienceCommunity\/PLPlot,FreeScienceCommunity\/PLPlot,FreeScienceCommunity\/PLPlot"} {"commit":"a2dce448551cd5c010f07341e080729188999a9a","old_file":"include\/libport\/unistd.h","new_file":"include\/libport\/unistd.h","old_contents":"#ifndef LIBPORT_UNISTD_H\n# define LIBPORT_UNISTD_H\n\n# include \"detect_win32.h\"\n\n# include \"libport\/config.h\"\n\n\/\/ This is traditional Unix file.\n# ifdef LIBPORT_HAVE_UNISTD_H\n# include \"unistd.h\"\n# endif\n\n\/\/ This seems to be its WIN32 equivalent.\n\/\/ http:\/\/msdn2.microsoft.com\/en-us\/library\/ms811896(d=printer).aspx#ucmgch09_topic7.\n# if defined WIN32 || defined LIBPORT_WIN32\n# include \"io.h\"\n# endif\n\n#if defined LIBPORT_HAVE__GETCWD\n# define getcwd _getcwd\n#elif !defined LIBPORT_HAVE_GETCWD\n# error I need either getcwd() or _getcwd()\n#endif\n\n#endif \/\/ !LIBPORT_UNISTD_H\n","new_contents":"#ifndef LIBPORT_UNISTD_H\n# define LIBPORT_UNISTD_H\n\n# include \"detect_win32.h\"\n\n# include \"libport\/config.h\"\n\n\/\/ This is traditional Unix file.\n# ifdef LIBPORT_HAVE_UNISTD_H\n# include \"unistd.h\"\n# endif\n\n\/\/ This seems to be its WIN32 equivalent.\n\/\/ http:\/\/msdn2.microsoft.com\/en-us\/library\/ms811896(d=printer).aspx#ucmgch09_topic7.\n# if defined WIN32 || defined LIBPORT_WIN32\n# include \"io.h\"\n# endif\n\n#if defined LIBPORT_URBI_ENV_AIBO\nstatic char *getcwd(char *buf, size_t size)\n{\n if (buf == 0 || size <= 3)\n return 0;\n strncpy (buf, \"\/MS\", size);\n return buf;\n}\n#else\n# if defined LIBPORT_HAVE__GETCWD\n# define getcwd _getcwd\n# elif !defined LIBPORT_HAVE_GETCWD\n# error I need either getcwd() or _getcwd()\n# endif\n#endif\n\n#endif \/\/ !LIBPORT_UNISTD_H\n","subject":"Add dummy static version of getcwd for Aibo.","message":"Add dummy static version of getcwd for Aibo.\n\n\t* include\/libport\/unistd.h: Here.","lang":"C","license":"bsd-3-clause","repos":"aldebaran\/libport,aldebaran\/libport,aldebaran\/libport,aldebaran\/libport,aldebaran\/libport"} {"commit":"9834e5a66c91f1681d70369550e55d96b2d961d9","old_file":"Classes\/Categories\/Categories.h","new_file":"Classes\/Categories\/Categories.h","old_contents":"#import \"NSManagedObject+ActiveRecord.h\"\n#import \"NSString+StringBetweenStrings.h\"\n#import \n#import \"UIColor+FolioColours.h\"\n#import \n#import \"NSObject+Notifications.h\"\n#import \n#import \"UIButton+FolioButtons.h\"\n#import \"UIColor+DebugColours.h\"\n#import \"NSString+StringSize.h\"\n#import \"UIBarButtonItem+toolbarHelpers.h\"\n#import \"UIImageView+ArtsySetURL.h\"\n","new_contents":"#import \"NSManagedObject+ActiveRecord.h\"\n#import \"NSString+StringBetweenStrings.h\"\n#import \n#import \"UIColor+FolioColours.h\"\n\n#if __has_include()\n#import \n#endif\n\n#if __has_include()\n#import \n#endif\n\n#import \"NSObject+Notifications.h\"\n#import \n#import \"UIButton+FolioButtons.h\"\n#import \"UIColor+DebugColours.h\"\n#import \"NSString+StringSize.h\"\n#import \"UIBarButtonItem+toolbarHelpers.h\"\n#import \"UIImageView+ArtsySetURL.h\"\n","subject":"Support running from the OSS fonts","message":"Support running from the OSS fonts\n","lang":"C","license":"mit","repos":"tomdev2008\/energy,tomdev2008\/energy,artsy\/energy,gaurav1981\/energy,gaurav1981\/energy,gaurav1981\/energy,artsy\/energy,tomdev2008\/energy,tomdev2008\/energy,gaurav1981\/energy,gaurav1981\/energy,tomdev2008\/energy,artsy\/energy,artsy\/energy,artsy\/energy,tomdev2008\/energy"} {"commit":"48600172e57f4f4e9dd06f6a4704032e3d6bc53e","old_file":"file4.c","new_file":"file4.c","old_contents":"file4.c - r1\nTest checkin in master1-updated - updated_by_master\nTest checkin in master2\nTest checkin in master3\nTest checkin in master4\n\n\n","new_contents":"Test checkin in master1-updated - updated_by_master\nTest checkin in master1-updated - updated2\nTest checkin in master2\nTest checkin in master3\nTest checkin in master4\n","subject":"Test commit merges feature to master","message":"Test commit merges feature to master\n","lang":"C","license":"apache-2.0","repos":"shahedmolla\/test"} {"commit":"36ebfc68edd9b7052ffd14cca2a4775f9c450f18","old_file":"llvm-external-projects\/iree-dialects\/include\/iree-dialects\/Transforms\/ListenerGreedyPatternRewriteDriver.h","new_file":"llvm-external-projects\/iree-dialects\/include\/iree-dialects\/Transforms\/ListenerGreedyPatternRewriteDriver.h","old_contents":"\/\/ Copyright 2021 The IREE Authors\n\/\/\n\/\/ Licensed under the Apache License v2.0 with LLVM Exceptions.\n\/\/ See https:\/\/llvm.org\/LICENSE.txt for license information.\n\/\/ SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception\n\n#include \"iree-dialects\/Transforms\/Listener.h\"\n#include \"mlir\/IR\/PatternMatch.h\"\n#include \"mlir\/Rewrite\/FrozenRewritePatternSet.h\"\n\nnamespace mlir {\nstruct GreedyRewriteConfig;\n\n\/\/\/ Applies the specified patterns on `op` alone while also trying to fold it,\n\/\/\/ by selecting the highest benefits patterns in a greedy manner. Returns\n\/\/\/ success if no more patterns can be matched. `erased` is set to true if `op`\n\/\/\/ was folded away or erased as a result of becoming dead. Note: This does not\n\/\/\/ apply any patterns recursively to the regions of `op`. Accepts a listener\n\/\/\/ so the caller can be notified of rewrite events.\nLogicalResult applyPatternsAndFoldGreedily(\n MutableArrayRef regions, const FrozenRewritePatternSet &patterns,\n const GreedyRewriteConfig &config, RewriteListener *listener);\ninline LogicalResult applyPatternsAndFoldGreedily(\n Operation *op, const FrozenRewritePatternSet &patterns,\n const GreedyRewriteConfig &config, RewriteListener *listener) {\n return applyPatternsAndFoldGreedily(op->getRegions(), patterns, config,\n listener);\n}\n\n} \/\/ namespace mlir\n","new_contents":"\/\/ Copyright 2021 The IREE Authors\n\/\/\n\/\/ Licensed under the Apache License v2.0 with LLVM Exceptions.\n\/\/ See https:\/\/llvm.org\/LICENSE.txt for license information.\n\/\/ SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception\n\n#include \"iree-dialects\/Transforms\/Listener.h\"\n#include \"mlir\/IR\/PatternMatch.h\"\n#include \"mlir\/Rewrite\/FrozenRewritePatternSet.h\"\n#include \"mlir\/Transforms\/GreedyPatternRewriteDriver.h\"\n\nnamespace mlir {\nstruct GreedyRewriteConfig;\n\n\/\/\/ Applies the specified patterns on `op` alone while also trying to fold it,\n\/\/\/ by selecting the highest benefits patterns in a greedy manner. Returns\n\/\/\/ success if no more patterns can be matched. `erased` is set to true if `op`\n\/\/\/ was folded away or erased as a result of becoming dead. Note: This does not\n\/\/\/ apply any patterns recursively to the regions of `op`. Accepts a listener\n\/\/\/ so the caller can be notified of rewrite events.\nLogicalResult applyPatternsAndFoldGreedily(\n MutableArrayRef regions, const FrozenRewritePatternSet &patterns,\n const GreedyRewriteConfig &config, RewriteListener *listener);\ninline LogicalResult applyPatternsAndFoldGreedily(\n Operation *op, const FrozenRewritePatternSet &patterns,\n const GreedyRewriteConfig &config, RewriteListener *listener) {\n return applyPatternsAndFoldGreedily(op->getRegions(), patterns, config,\n listener);\n}\n\n} \/\/ namespace mlir\n","subject":"Add include for GreedyPatternRewriteDriver implementation.","message":"Add include for GreedyPatternRewriteDriver implementation.\n\nNot sure if this is correct. There was an unresolved symbol error on MSVC that this fixes though.\n","lang":"C","license":"apache-2.0","repos":"iree-org\/iree,iree-org\/iree,google\/iree,iree-org\/iree,google\/iree,google\/iree,iree-org\/iree,iree-org\/iree,iree-org\/iree,google\/iree,google\/iree,google\/iree,google\/iree,iree-org\/iree"} {"commit":"0c04638755b14023abbc7ff4c87609e026de14fc","old_file":"src\/thermostat.h","new_file":"src\/thermostat.h","old_contents":"#pragma once\n\n#define DHT22_PIN 6\n#define DHT22_SAMPLE_RATE 3000\n\n#define TEMPORATURE_TARGET (204)\n\n#define HEATER_PIN 10\n#define HEATER_ACTION_DELAY (15*60) \/\/ minimal seconds to open\/close heater, prevent switch heater too frequently.\n","new_contents":"#pragma once\n\n#define DHT22_PIN 6\n#define DHT22_SAMPLE_RATE 20000\n\n#define TEMPORATURE_TARGET (204)\n\n#define HEATER_PIN 10\n#define HEATER_ACTION_DELAY (15*60) \/\/ minimal seconds to open\/close heater, prevent switch heater too frequently.\n","subject":"Change DHT22 sensor sample rate to 20 seconds","message":"Change DHT22 sensor sample rate to 20 seconds\n\n3 seconds is used for debug purpose\n","lang":"C","license":"apache-2.0","repos":"redforks\/thermostat,redforks\/thermostat"} {"commit":"b74ae5b33ec0f0ac4614e831043c65cdb38ee5f2","old_file":"TASKS\/TASK_1\/sources\/vector3d.h","new_file":"TASKS\/TASK_1\/sources\/vector3d.h","old_contents":"#ifndef VECTOR_3D_H\n#define VECTOR_3D_H\n\n#include \n\nnamespace classes {\n\tstruct Point3D {\n\t\tdouble x, y, z;\n\t};\n\n\tclass Vector3D {\n\t\tstruct Cheshire;\n\t\tCheshire* smile;\n\n\t\tstatic const Point3D nullPoint = { 0.0, 0.0, 0.0 };\n\t\n\t\tpublic:\n\t\t\tVector3D();\n\t\t\tVector3D(Point3D point = nullPoint);\n\t\t\tVector3D(double x = 0.0, double y = 0.0, double z = 0.0);\n\t\t\t~Vector3D();\n\t\t\tdouble\t\tgetModule() const;\n\t\t\tVector3D\tcopy() const;\n\t\t\tVector3D\tgetReversed() const;\n\t\t\tvoid\t\tmultiplyByScalar(const double);\n\t\t\tvoid\t\tnormalize();\n\t\t\tvoid\t\tprint() const;\n\n\t\t\tstatic\t\tVector3D\tadd(Vector3D&, Vector3D&);\n\t\t\tstatic\t\tVector3D\tsubstract(Vector3D&, Vector3D&);\n\t\t\tstatic\t\tVector3D\tvectorMultiply(Vector3D&, Vector3D&) ;\n\t\t\tstatic\t\tdouble\t\tscalarMultiply(Vector3D&, Vector3D&);\n\t\t\tstatic\t\tdouble\t\tsin(Vector3D&, Vector3D&);\n\t\t\tstatic\t\tdouble\t\tcos(Vector3D&, Vector3D&);\n\t\t\tstatic\t\tdouble\t\tangle(Vector3D&, Vector3D&);\n\t};\n}\n\n#endif \/\/ VECTOR_3D_H\n","new_contents":"#ifndef VECTOR_3D_H\n#define VECTOR_3D_H\n\n#include \n\nnamespace classes {\n\tstruct Point3D {\n\t\tdouble x, y, z;\n\t};\n\n\ttypedef const char* err;\n\n\tclass Vector3D {\n\t\tstruct Cheshire;\n\t\tCheshire* smile;\n\n\t\tstatic const Point3D nullPoint;\n\t\tstatic unsigned int idCounter;\n\t\n\t\tpublic:\n\t\t\tVector3D(Point3D point = nullPoint);\n\t\t\tVector3D(double x, double y = 0.0, double z = 0.0);\n\t\t\t~Vector3D();\n\tinline\tdouble\t\t\tgetModule() const;\n\tinline\tvoid\t\t\tprint()\t\tconst;\n\tinline \tconst Point3D&\tgetPoint()\tconst;\n\t\t\tVector3D\t\tcopy()\t\tconst;\n\t\t\tvoid\t\t\tmultiplyByScalar(const double);\n\t\t\tvoid\t\t\tnormalize();\n\n\n\tstatic \tVector3D\tadd(Vector3D&, Vector3D&);\n\tstatic\tVector3D\tsubstract(Vector3D&, Vector3D&);\n\tstatic\tVector3D\tvectorMultiply(Vector3D&, Vector3D&) ;\n\tstatic\tdouble\t\tscalarMultiply(Vector3D&, Vector3D&);\n\tstatic\tdouble\t\tsin(Vector3D&, Vector3D&);\n\tstatic\tdouble\t\tcos(Vector3D&, Vector3D&);\n\tstatic\tdouble\t\tangle(Vector3D&, Vector3D&);\n\t};\n}\n\n#endif \/\/ VECTOR_3D_H\n","subject":"Change signatures of methods and fields of class","message":"Change signatures of methods and fields of class\n","lang":"C","license":"mit","repos":"reeFridge\/learn-oop-through-cpp"} {"commit":"009fef84e0c393522bc6bb3c66cd7d6779dcff98","old_file":"exemplos\/primeiro-trimestre\/01-hello-world.c","new_file":"exemplos\/primeiro-trimestre\/01-hello-world.c","old_contents":"","new_contents":"\/**\n * Exemplo 01 - Hello World!\n * \n * Este é o exemplo mais simples da linguagem C. Consiste apenas em um programa que\n * imprime a mensagem \"Hello World!\" e termina sua execução.\n * Apesar de simples, é um bom programa para se basear na estrutura, além de testar\n * se o compilador está funcionando corretamente\n *\/\n\n#include \n\nint main(void)\n{\n\tputs(\"Hello World!\");\n\treturn 0;\n}","subject":"Add first example! (Hello World)","message":"Add first example! (Hello World)\n","lang":"C","license":"unlicense","repos":"atropelando\/terceiro-ano-programacao"} {"commit":"220e81db102f180b4c30eb85398e6f55d74faca2","old_file":"calc.c","new_file":"calc.c","old_contents":"#include \"calc.h\"\n\n#include \n#include \n#include \n\nint calc(const char* p)\n{\n int i;\n int ans;\n\n ans = atoi(p);\n i = 0;\n while (p[i] != '\\0'){\n while (isdigit(p[i])){\n i++;\n }\n switch (p[i]){\n case '+':\n return (ans + calc(p + i + 1));\n case '-':\n return (ans - calc(p + i + 1));\n case '*':\n ans *= atoi(p + i + 1);\n i++;\n break;\n case '\/':\n ans \/= atoi(p + i + 1);\n i++;\n break;\n case '\\0':\n return (ans);\n default:\n puts(\"Error\");\n return (0);\n }\n }\n}\n","new_contents":"#include \"calc.h\"\n\n#include \n#include \n#include \n\nint calc(const char* p)\n{\n int i;\n int ans;\n\n ans = atoi(p);\n i = 0;\n while (p[i] != '\\0'){\n while (isdigit(p[i])){\n i++;\n }\n switch (p[i]){\n case '+':\n return (ans + calc(p + i + 1));\n case '-':\n return (ans - calc(p + i + 1));\n case '*':\n ans *= atoi(p + i + 1);\n i++;\n break;\n case '\/':\n ans \/= atoi(p + i + 1);\n i++;\n break;\n case '\\0':\n return (ans);\n default:\n puts(\"Error\");\n return (0);\n }\n }\n\n return (ans);\n}\n","subject":"Return answer when reading formula was finished","message":"Return answer when reading formula was finished\n","lang":"C","license":"mit","repos":"Roadagain\/Calculator,Roadagain\/Calculator"} {"commit":"2cb9cb84dfe98c11ae6eb8beca6720b3c587a614","old_file":"sys\/dev\/acpica\/acpi_powerprofile.c","new_file":"sys\/dev\/acpica\/acpi_powerprofile.c","old_contents":"","new_contents":"\/*-\n * Copyright (c) 2001 Michael Smith\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\n * are met:\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 BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND\n * 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 AUTHOR OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n * SUCH DAMAGE.\n *\n *\t$FreeBSD$\n *\/\n\n#include \"opt_acpi.h\"\t\/* XXX trim includes *\/\n#include \n#include \n#include \n\n#include \"acpi.h\"\n\n#include \n\nstatic int powerprofile_state = POWERPROFILE_PERFORMANCE;\n\nint\npowerprofile_get_state(void)\n{\n return(powerprofile_state);\n}\n\nvoid\npowerprofile_set_state(int state) \n{\n int\t\tchanged;\n \n ACPI_LOCK;\n if (state != powerprofile_state) {\n\tpowerprofile_state = state;\n\tchanged = 1;\n\tprintf(\"system power profile changed to '%s'\\n\",\n\t (state == POWERPROFILE_PERFORMANCE) ? \"performance\" : \"economy\");\n } else {\n\tchanged = 0;\n }\n ACPI_UNLOCK;\n if (changed)\n\tEVENTHANDLER_INVOKE(powerprofile_change);\n}\n\n","subject":"Support for system \"power profiles\". Currently we support two profiles; \"economy\" and \"performance\".","message":"Support for system \"power profiles\". Currently we support two profiles;\n\"economy\" and \"performance\".\n","lang":"C","license":"bsd-3-clause","repos":"jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase"} {"commit":"581c0f20d6d4109ed7b905aa6f11cca2bea33b41","old_file":"Os_Cfg.h","new_file":"Os_Cfg.h","old_contents":"\/* OSEKOS Implementation of an OSEK Scheduler\n * Copyright (C) 2015 Joakim Plate\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, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n *\/\n\n#ifndef OS_CFG_H_\n#define OS_CFG_H_\n\n#ifdef OS_CFG_ARCH_POSIX\n#include \"Os_Arch_Posix.h\"\n#endif\n\n#ifdef OS_CFG_ARCH_FIBERS\n#include \"Os_Arch_Fibers.h\"\n#endif\n\n#define OS_TASK_COUNT 3\n#define OS_PRIO_COUNT 3\n\n#define OS_TICK_US 100000U\n\nextern void errorhook(StatusType ret);\n#define OS_ERRORHOOK(_ret) errorhook(_ret)\n\n#endif \/* OS_CFG_H_ *\/\n","new_contents":"\/* OSEKOS Implementation of an OSEK Scheduler\n * Copyright (C) 2015 Joakim Plate\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, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n *\/\n\n#ifndef OS_CFG_H_\n#define OS_CFG_H_\n\n#ifdef OS_CFG_ARCH_POSIX\n#include \"Os_Arch_Posix.h\"\n#endif\n\n#ifdef OS_CFG_ARCH_FIBERS\n#include \"Os_Arch_Fibers.h\"\n#endif\n\n#define OS_TASK_COUNT 3\n#define OS_PRIO_COUNT 3\n\n#define OS_TICK_US 1000000U\n\nextern void errorhook(StatusType ret);\n#define OS_ERRORHOOK(_ret) errorhook(_ret)\n\n#endif \/* OS_CFG_H_ *\/\n","subject":"Increment timer ticks for now","message":"Increment timer ticks for now\n","lang":"C","license":"lgpl-2.1","repos":"elupus\/osek,elupus\/osek,elupus\/osek"} {"commit":"224017fde6a9c4ae850e870563136d66843b4963","old_file":"include\/llvm\/MC\/MCSymbolXCOFF.h","new_file":"include\/llvm\/MC\/MCSymbolXCOFF.h","old_contents":"\/\/===- MCSymbolXCOFF.h - ----------------------------------------*- C++ -*-===\/\/\n\/\/\n\/\/ Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.\n\/\/ See https:\/\/llvm.org\/LICENSE.txt for license information.\n\/\/ SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n#ifndef LLVM_MC_MCSYMBOLXCOFF_H\n#define LLVM_MC_MCSYMBOLXCOFF_H\n\n#include \"llvm\/BinaryFormat\/XCOFF.h\"\n#include \"llvm\/MC\/MCSymbol.h\"\n#include \"llvm\/IR\/GlobalValue.h\"\n\nnamespace llvm {\n\nclass MCSymbolXCOFF : public MCSymbol {\n \/\/ The IR symbol this MCSymbolXCOFF is based on. It is set on function\n \/\/ entry point symbols when they are the callee operand of a direct call\n \/\/ SDNode.\n const GlobalValue *GV = nullptr;\n\npublic:\n MCSymbolXCOFF(const StringMapEntry *Name, bool isTemporary)\n : MCSymbol(SymbolKindXCOFF, Name, isTemporary) {}\n\n void setGlobalValue(const GlobalValue *G) { GV = G; }\n const GlobalValue *getGlobalValue() const { return GV; }\n\n static bool classof(const MCSymbol *S) { return S->isXCOFF(); }\n};\n\n} \/\/ end namespace llvm\n\n#endif \/\/ LLVM_MC_MCSYMBOLXCOFF_H\n","new_contents":"\/\/===- MCSymbolXCOFF.h - ----------------------------------------*- C++ -*-===\/\/\n\/\/\n\/\/ Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.\n\/\/ See https:\/\/llvm.org\/LICENSE.txt for license information.\n\/\/ SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n#ifndef LLVM_MC_MCSYMBOLXCOFF_H\n#define LLVM_MC_MCSYMBOLXCOFF_H\n\n#include \"llvm\/BinaryFormat\/XCOFF.h\"\n#include \"llvm\/MC\/MCSymbol.h\"\n\nnamespace llvm {\n\nclass GlobalValue;\n\nclass MCSymbolXCOFF : public MCSymbol {\n \/\/ The IR symbol this MCSymbolXCOFF is based on. It is set on function\n \/\/ entry point symbols when they are the callee operand of a direct call\n \/\/ SDNode.\n const GlobalValue *GV = nullptr;\n\npublic:\n MCSymbolXCOFF(const StringMapEntry *Name, bool isTemporary)\n : MCSymbol(SymbolKindXCOFF, Name, isTemporary) {}\n\n void setGlobalValue(const GlobalValue *G) { GV = G; }\n const GlobalValue *getGlobalValue() const { return GV; }\n\n static bool classof(const MCSymbol *S) { return S->isXCOFF(); }\n};\n\n} \/\/ end namespace llvm\n\n#endif \/\/ LLVM_MC_MCSYMBOLXCOFF_H\n","subject":"Work around a circular dependency between IR and MC introduced in r362735","message":"Work around a circular dependency between IR and MC introduced in r362735\n\nI replaced the circular library dependency with a forward declaration,\nbut it is only a workaround, not a real fix.\n\ngit-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@362782 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"llvm-mirror\/llvm,llvm-mirror\/llvm,apple\/swift-llvm,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,apple\/swift-llvm,apple\/swift-llvm,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,apple\/swift-llvm,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,apple\/swift-llvm,apple\/swift-llvm,apple\/swift-llvm,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,apple\/swift-llvm,llvm-mirror\/llvm,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm"} {"commit":"e541bf3d60bfb9615802c471f1b9d26547ef5b0a","old_file":"test\/CodeGen\/debug-info-257-args.c","new_file":"test\/CodeGen\/debug-info-257-args.c","old_contents":"","new_contents":"\/\/ RUN: %clang_cc1 -x c++ -g -emit-llvm -triple x86_64-linux-gnu -o - %s | FileCheck %s\n\/\/ PR23332\n\n\/\/ CHECK: MDLocalVariable(tag: DW_TAG_arg_variable, arg: 255\n\/\/ CHECK: MDLocalVariable(tag: DW_TAG_arg_variable, arg: 256\n\/\/ CHECK: MDLocalVariable(tag: DW_TAG_arg_variable, arg: 257\nvoid fn1(int, int, int, int, int, int, int, int, int, int, int, int, int, int,\n int, int, int, int, int, int, int, int, int, int, int, int, int, int,\n int, int, int, int, int, int, int, int, int, int, int, int, int, int,\n int, int, int, int, int, int, int, int, int, int, int, int, int, int,\n int, int, int, int, int, int, int, int, int, int, int, int, int, int,\n int, int, int, int, int, int, int, int, int, int, int, int, int, int,\n int, int, int, int, int, int, int, int, int, int, int, int, int, int,\n int, int, int, int, int, int, int, int, int, int, int, int, int, int,\n int, int, int, int, int, int, int, int, int, int, int, int, int, int,\n int, int, int, int, int, int, int, int, int, int, int, int, int, int,\n int, int, int, int, int, int, int, int, int, int, int, int, int, int,\n int, int, int, int, int, int, int, int, int, int, int, int, int, int,\n int, int, int, int, int, int, int, int, int, int, int, int, int, int,\n int, int, int, int, int, int, int, int, int, int, int, int, int, int,\n int, int, int, int, int, int, int, int, int, int, int, int, int, int,\n int, int, int, int, int, int, int, int, int, int, int, int, int, int,\n int, int, int, int, int, int, int, int, int, int, int, int, int, int,\n int, int, int, int, int, int, int, int, int, int, int, int, int, int,\n int, int, int, int, int) {}\n","subject":"Add a clang test for LLVM fix for PR23332","message":"DebugInfo: Add a clang test for LLVM fix for PR23332\n\nAdd a clang test for LLVM r235955, which added support for up to 2^16\narguments.\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@235956 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang"} {"commit":"381363802706bd30c45a8e6d8ac6fdcaa6248780","old_file":"c\/list.c","new_file":"c\/list.c","old_contents":"","new_contents":"#include \n#include \n#include \n\ntypedef struct Node Node;\nstruct Node {\n\tint value;\n\tNode *next;\n};\n\nvoid addFirst(Node **head, int v) {\n\tNode *newNode = (Node * )malloc(sizeof(Node));\n\tnewNode->value = v;\n\tnewNode->next = *head;\n\t*head = newNode;\n}\n\nvoid printList(Node *head) {\n\tNode *curr = head;\n\twhile (curr != NULL) {\n\t\tprintf(\"%d\\n\", curr->value);\n\t\tcurr = curr->next;\n\t}\n}\n\nNode *init(int v) {\n\tNode *head = (Node *)malloc(sizeof(Node));\n\thead->value = v;\n\thead->next = NULL;\n\treturn head;\n}\n\nint main() {\n\tNode *head = init(1);\n\taddFirst(&head, 2);\n\taddFirst(&head, 3);\n\tprintList(head);\n\treturn 0;\n}\n","subject":"Implement Linked List in C","message":"Implement Linked List in C\n\nC언어로 오랫만에 구현\n수업시간에 이중포인터를 설명하기 위해서 구현했다.\n","lang":"C","license":"mit","repos":"honux77\/practice,honux77\/practice,honux77\/practice,honux77\/practice,honux77\/practice,honux77\/practice,honux77\/practice,honux77\/practice,honux77\/practice,honux77\/practice,honux77\/practice,honux77\/practice,honux77\/practice"} {"commit":"831405d274f7a3cbb097fb09ce317f976f16c9fe","old_file":"rs.h","new_file":"rs.h","old_contents":"\/**\n * Generic reservoir sampling.\n *\/\n\n#ifndef _RS_H\n#define _RS_H\n\n\/* print actions to the reservoir *\/\n#ifndef PRINT_RS_TRACE\n#define PRINT_RS_TRACE 1\n#endif\n\nstruct reservoir;\nstruct drand48_data;\n\nstruct reservoir *init_reservoir(size_t sz,\n#if PRINT_RS_TRACE\n\t\tvoid (*print_fun)(void *it),\n#endif\n\t\tvoid *(*clone_fun)(const void *it, size_t sz),\n\t\tvoid (*free_fun)(void *it));\nvoid free_reservoir(struct reservoir *r);\n\n\/* Notice one extra parameter when tracing the reservoir *\/\nvoid add_to_reservoir(struct reservoir *r, const void *it, size_t sz,\n\t\tdouble w, struct drand48_data *randbuffer);\nvoid add_to_reservoir_log(struct reservoir *r, const void *it, size_t sz,\n\t\tdouble logw, struct drand48_data *randbuffer);\n\n#endif\n","new_contents":"\/**\n * Generic reservoir sampling.\n *\/\n\n#ifndef _RS_H\n#define _RS_H\n\n\/* print actions to the reservoir *\/\n#ifndef PRINT_RS_TRACE\n#define PRINT_RS_TRACE 1\n#endif\n\nstruct reservoir;\nstruct drand48_data;\n\n\/* Notice one extra parameter when tracing the reservoir *\/\nstruct reservoir *init_reservoir(size_t sz,\n#if PRINT_RS_TRACE\n\t\tvoid (*print_fun)(void *it),\n#endif\n\t\tvoid *(*clone_fun)(const void *it, size_t sz),\n\t\tvoid (*free_fun)(void *it));\nvoid free_reservoir(struct reservoir *r);\n\nvoid add_to_reservoir(struct reservoir *r, const void *it, size_t sz,\n\t\tdouble w, struct drand48_data *randbuffer);\nvoid add_to_reservoir_log(struct reservoir *r, const void *it, size_t sz,\n\t\tdouble logw, struct drand48_data *randbuffer);\n\n#endif\n","subject":"Move comment to the code it comments on","message":"Move comment to the code it comments on\n","lang":"C","license":"bsd-3-clause","repos":"mihaimaruseac\/dphcar"} {"commit":"ee758e12198cd82c29a387193a154e6a8f88fc99","old_file":"src\/domain.h","new_file":"src\/domain.h","old_contents":"\/***************************************************************************\/\/**\n* \\file domain.h\n* \\author Krishnan, A. (anush@bu.edu)\n* \\brief Definition of the class \\c domain\n*\/\n\n\n#pragma once\n\n#include \"types.h\"\n\n\n\/**\n* \\class domain\n* \\brief Store the mesh grid information\n*\/\nclass domain\n{\npublic:\n\tint nx, \/\/\/< number of cells in the x-direction\n\t ny; \/\/\/< number of cells in the y-direction\n\t\n\tvecH x, \/\/\/< x-coordinates of the nodes\n\t y, \/\/\/< y-coordinates of the nodes\n\t dx, \/\/\/< cell widths in the x-direction\n\t dy; \/\/\/< cell widths in the y-direction\n\t\n\tvecD xD, \/\/\/< x-coordinates of the nodes stored on the device\n\t yD, \/\/\/< y-coordinates of the nodes stored on the device\n\t dxD, \/\/\/< x- cell widths stored on the device\n\t dyD; \/\/\/< y- cell widths stored on the device\n\t\n\tvecH xu, \/\/\/< x-coordinates of the locations at which the x-component of velocity is evaluated\n\t yu, \/\/\/< y-coordinates of the locations at which the x-component of velocity is evaluated\n\t xv, \/\/\/< x-coordinates of the locations at which the y-component of velocity is evaluated\n\t yv; \/\/\/< y-coordinates of the locations at which the y-component of velocity is evaluated\n};\n","new_contents":"\/***************************************************************************\/\/**\n * \\file domain.h\n * \\author Anush Krishnan (anush@bu.edu)\n * \\brief Definition of the class \\c domain.\n *\/\n\n\n#pragma once\n\n#include \"types.h\"\n\n\n\/**\n * \\class domain\n * \\brief Stores information about the computational grid.\n *\/\nclass domain\n{\npublic:\n\tint nx, \/\/\/< number of cells in the x-direction\n\t ny; \/\/\/< number of cells in the y-direction\n\t\n\tvecH x, \/\/\/< x-coordinates of the nodes\n\t y, \/\/\/< y-coordinates of the nodes\n\t dx, \/\/\/< cell widths in the x-direction\n\t dy; \/\/\/< cell widths in the y-direction\n\t\n\tvecD xD, \/\/\/< x-coordinates of the nodes stored on the device\n\t yD, \/\/\/< y-coordinates of the nodes stored on the device\n\t dxD, \/\/\/< x- cell widths stored on the device\n\t dyD; \/\/\/< y- cell widths stored on the device\n\t\n\tvecH xu, \/\/\/< x-coordinates of the locations at which the x-component of velocity is evaluated\n\t yu, \/\/\/< y-coordinates of the locations at which the x-component of velocity is evaluated\n\t xv, \/\/\/< x-coordinates of the locations at which the y-component of velocity is evaluated\n\t yv; \/\/\/< y-coordinates of the locations at which the y-component of velocity is evaluated\n};\n","subject":"Update Doxygen documentation with conventions","message":"Update Doxygen documentation with conventions\n","lang":"C","license":"mit","repos":"barbagroup\/cuIBM,barbagroup\/cuIBM,barbagroup\/cuIBM"} {"commit":"c21ae1451dd3a20b4ff0566ae45a0e58a35081fe","old_file":"Source\/OCMock\/OCMLocation.h","new_file":"Source\/OCMock\/OCMLocation.h","old_contents":"\/*\n * Copyright (c) 2014-2015 Erik Doernenburg and contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n * not use these files except in compliance with the License. You may obtain\n * 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. See the\n * License for the specific language governing permissions and limitations\n * under the License.\n *\/\n\n#import \n\n@interface OCMLocation : NSObject\n{\n id testCase;\n NSString *file;\n NSUInteger line;\n}\n\n+ (instancetype)locationWithTestCase:(id)aTestCase file:(NSString *)aFile line:(NSUInteger)aLine;\n\n- (instancetype)initWithTestCase:(id)aTestCase file:(NSString *)aFile line:(NSUInteger)aLine;\n\n- (id)testCase;\n- (NSString *)file;\n- (NSUInteger)line;\n\n@end\n\nextern OCMLocation *OCMMakeLocation(id testCase, const char *file, int line);\n","new_contents":"\/*\n * Copyright (c) 2014-2015 Erik Doernenburg and contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n * not use these files except in compliance with the License. You may obtain\n * 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. See the\n * License for the specific language governing permissions and limitations\n * under the License.\n *\/\n\n#import \n\n@interface OCMLocation : NSObject\n{\n id testCase;\n NSString *file;\n NSUInteger line;\n}\n\n+ (instancetype)locationWithTestCase:(id)aTestCase file:(NSString *)aFile line:(NSUInteger)aLine;\n\n- (instancetype)initWithTestCase:(id)aTestCase file:(NSString *)aFile line:(NSUInteger)aLine;\n\n- (id)testCase;\n- (NSString *)file;\n- (NSUInteger)line;\n\n@end\n\n#if defined(__cplusplus)\nextern \"C\"\n#else\nextern\n#endif\nOCMLocation *OCMMakeLocation(id testCase, const char *file, int line);\n","subject":"Fix linking in Objective–C++ tests.","message":"Fix linking in Objective–C++ tests.\n\nAs detailed in #238, linking tests sometimes fails when OCMock is being used in Objective-C++ (.mm) test case files.\nThis commit solves that problem by conditionally declaring `OCMMakeLocation` as `extern C` in when included in a C++ compilation unit.","lang":"C","license":"apache-2.0","repos":"Lightricks\/ocmock,Lightricks\/ocmock,Lightricks\/ocmock,NextThought\/ocmock,erikdoe\/ocmock,firebase\/ocmock,BohdanOrlov\/ocmock,Lightricks\/ocmock,erikdoe\/ocmock,dhardiman\/ocmock,erikdoe\/ocmock,imhuntingwabbits\/ocmock,erikdoe\/ocmock,SteveFortune\/ocmock"} {"commit":"18ca3c88bfab828cf26f5a184cfa30ba012089e4","old_file":"memory.c","new_file":"memory.c","old_contents":"\/*\n * Copyright (c) 2012, Nadir Sampaoli\n * See the LICENSE for more information\n *\/\n\n#include \"memory.h\"\n#include \n#include \n\nstatic uint8_t *memory_area;\n\nvoid allocmemory(void)\n{\n while(!memory_area) {\n memory_area = malloc(MEM_SIZE * sizeof(uint8_t));\n }\n}\n\nuint8_t getmembyte(uint16_t addr)\n{\n return *(memory_area + addr);\n}\n\nuint16_t getmemword(uint16_t addr)\n{\n return (getmembyte(addr+1) << 8 | getmembyte(addr));\n}\n\nvoid putmembyte(uint16_t addr, uint8_t byte)\n{\n \/\/ FIXME: must control if addr is readonly (TODO: implement MBC controllers)\n *(memory_area + addr) = byte;\n}\n\nvoid putmemword(uint16_t addr, uint16_t word)\n{\n putmembyte(addr, (word >> 8));\n putmembyte(addr+1, (word & 0xFF));\n}\n","new_contents":"\/*\n * Copyright (c) 2012, Nadir Sampaoli\n * See the LICENSE for more information\n *\/\n\n#include \"memory.h\"\n#include \n#include \n\nstatic uint8_t *memory_area;\n\nvoid allocmemory(void)\n{\n while(!memory_area) {\n memory_area = malloc(MEM_SIZE * sizeof(uint8_t));\n }\n}\n\ninline uint8_t getmembyte(uint16_t addr)\n{\n return *(memory_area + addr);\n}\n\ninline uint16_t getmemword(uint16_t addr)\n{\n return (getmembyte(addr+1) << 8 | getmembyte(addr));\n}\n\nvoid putmembyte(uint16_t addr, uint8_t byte)\n{\n \/\/ FIXME: must control if addr is readonly (TODO: implement MBC controllers)\n *(memory_area + addr) = byte;\n}\n\nvoid putmemword(uint16_t addr, uint16_t word)\n{\n putmembyte(addr, (word >> 8));\n putmembyte(addr+1, (word & 0xFF));\n}\n","subject":"Change \"getmembyte\" and \"getmemword\" to inline functions","message":"Change \"getmembyte\" and \"getmemword\" to inline functions\n","lang":"C","license":"mit","repos":"nadirs\/dmgemu,nadirs\/dmgemu,nadirs\/dmgemu,nadirs\/dmgemu"} {"commit":"4957aeebad39f4dc1c3ed05e81a171d4ab213b15","old_file":"TwIRCk\/GLGInputParserDelegate.h","new_file":"TwIRCk\/GLGInputParserDelegate.h","old_contents":"\/\/\n\/\/ GLGInputParserDelegate.h\n\/\/ TwIRCk\n\/\/\n\/\/ Created by Tim Jarratt on 11\/29\/13.\n\/\/ Copyright (c) 2013 General Linear Group. All rights reserved.\n\/\/\n\n#import \n\n@protocol GLGInputParserDelegate \n\n- (void) didJoinChannel:(NSString *)channel\n rawCommand:(NSString *)rawCommand;\n- (void) didPartChannel:(NSString *)channel\n rawCommand:(NSString *)rawCommand;\n- (void) didChangeNick:(NSString *)newNick\n rawCommand:(NSString *)rawCommand;\n- (void) didChangePassword:(NSString *)newPassword\n rawCommand:(NSString *)rawCommand;\n@end\n","new_contents":"\/\/\n\/\/ GLGInputParserDelegate.h\n\/\/ TwIRCk\n\/\/\n\/\/ Created by Tim Jarratt on 11\/29\/13.\n\/\/ Copyright (c) 2013 General Linear Group. All rights reserved.\n\/\/\n\n#import \n\n@protocol GLGInputParserDelegate \n\n- (void) didJoinChannel:(NSString *)channel\n rawCommand:(NSString *)command;\n- (void) didPartChannel:(NSString *)channel\n rawCommand:(NSString *)channel;\n- (void) didChangeNick:(NSString *)newNick\n rawCommand:(NSString *)channel;\n- (void) didChangePassword:(NSString *)newPassword\n rawCommand:(NSString *)channel;\n@end\n","subject":"Revert \"Name these protocol method variables better\"","message":"Revert \"Name these protocol method variables better\"\n\nThis reverts commit 0dc63736e1b8398d1fc9692473f285076aa862ee.\n","lang":"C","license":"mit","repos":"tjarratt\/twIRCk,tjarratt\/twIRCk,tjarratt\/twIRCk"} {"commit":"9bf77934c4d06067d3619abc4c40ca5adf3dde9f","old_file":"include\/kernel\/idt.h","new_file":"include\/kernel\/idt.h","old_contents":"#ifndef IDT_H\n#define IDT_H\n\n#include \n\nstruct IDTEntry {\n\tuint16_t base_address_low;\n\tuint16_t selector;\n\tuint8_t reserved;\n\tuint8_t type : 4;\n\tuint8_t storage_segment : 1;\n\tuint8_t privilege : 2;\n\tuint8_t present : 1;\n\tuint16_t base_address_high;\n} __attribute__((packed));\n\nstruct IDTDescriptor {\n\tuint16_t limiter;\n\tuint32_t base_address;\n} __attribute__((packed));\n\nstruct IDT {\n\tstruct IDTDescriptor descriptor;\n\tstruct IDTEntry entries[256];\n} __attribute__((packed));\n\nvoid idt_init(struct IDT *);\n\n#endif\n","new_contents":"#ifndef IDT_H\n#define IDT_H\n\n#include \n\nstruct IDTEntry {\n\tuint16_t base_address_low;\n\tuint16_t selector;\n\tuint8_t reserved;\n\tuint8_t type : 4;\n\tuint8_t storage_segment : 1;\n\tuint8_t privilege : 2;\n\tuint8_t present : 1;\n\tuint16_t base_address_high;\n} __attribute__((packed));\n\nstruct IDTDescriptor {\n\tuint16_t limiter;\n\tuint32_t base_address;\n} __attribute__((packed));\n\nstruct IDT {\n\tstruct IDTDescriptor descriptor;\n\tstruct IDTEntry entries[128];\n} __attribute__((packed));\n\nvoid idt_init(struct IDT *);\n\n#endif\n","subject":"Cut space required for IDT in half","message":"Cut space required for IDT in half\n","lang":"C","license":"apache-2.0","repos":"shockkolate\/shockk-os,shockkolate\/shockk-os,shockkolate\/shockk-os"} {"commit":"6cffd9ec486df91cad16b752c3da4ab0aa992119","old_file":"src\/db.h","new_file":"src\/db.h","old_contents":"","new_contents":"\/\/ Copyright 2016 Ben Trask\n\/\/ MIT licensed (see LICENSE for details)\n\n#include \n\nenum {\n\tharc_timeid_to_entry = 20,\n\tharc_url_timeid = 21,\n\tharc_hash_timeid = 50,\n};\n\n#define harc_timeid_to_entry_keypack(val, time, id) \\\n\tDB_VAL_STORAGE(val, DB_VARINT_MAX*3); \\\n\tdb_bind_uint64((val), harc_timeid_to_entry); \\\n\tdb_bind_uint64((val), (time)); \\\n\tdb_bind_uint64((val), (id)); \\\n\tDB_VAL_STORAGE_VERIFY(val);\n\n\/\/ TODO: How to pack\/unpack list of hashes?\n\n#define harc_hash_timeid_keypack(val, url, time, id) \\\n\tDB_VAL_STORAGE(val, DB_VARINT_MAX*3 + DB_INLINE_MAX); \\\n\tdb_bind_uint64((val), harc_url_timeid); \\\n\tdb_bind_string((val), (url), 8); \\\n\tdb_bind_uint64((val), (time)); \\\n\tdb_bind_uint64((val), (id)); \\\n\tDB_VAL_STORAGE_VERIFY(val);\n\n#define harc_hash_timeid_keypack(val, algo, hash, time, id) \\\n\tDB_VAL_STORAGE(val, DB_VARINT_MAX*3 + DB_BLOB_MAX(8)); \\\n\tdb_bind_uint64((val), harc_hash_timeid+(algo)); \\\n\tdb_bind_blob((val), (hash), 8); \\\n\tdb_bind_uint64((val), (time)); \\\n\tdb_bind_uint64((val), (id)); \\\n\tDB_VAL_STORAGE_VERIFY(val);\n\n","subject":"Add beginnings of DB layer.","message":"Add beginnings of DB layer.\n","lang":"C","license":"mit","repos":"btrask\/hash-archive,btrask\/hash-archive,btrask\/hash-archive"} {"commit":"c7b43401d7bca2f3919c40391473e37a384093ca","old_file":"types.h","new_file":"types.h","old_contents":"\/*\n * types.h\n *\n * Created on: Mar 11, 2014\n * Author: Chase\n *\/\n\n#ifndef TYPES_H_\n#define TYPES_H_\n\n#include \n\n\/\/Don't use stdbool.h, we have to make sure bool is only a byte in size!\ntypedef uint8_t bool;\n#define true 1\n#define false 0\n#define TRUE 1\n#define FALSE 0\n\ntypedef uint8_t char8_t;\ntypedef uint16_t char16_t;\n\n\n\n#endif \/* TYPES_H_ *\/\n","new_contents":"\/*\n * types.h\n *\n * Created on: Mar 11, 2014\n * Author: Chase\n *\/\n\n#ifndef TYPES_H_\n#define TYPES_H_\n\n#include \n\n\/\/Don't use stdbool.h, we have to make sure bool is only a byte in size!\ntypedef uint8_t bool;\nenum {\n\ttrue = 1,\n\tfalse = 0,\n\tTRUE = 1,\n\tFALSE = 0\n};\n\ntypedef uint8_t char8_t;\ntypedef uint16_t char16_t;\n\n\n\n#endif \/* TYPES_H_ *\/\n","subject":"Change bool true\/false to enum","message":"Change bool true\/false to enum\n","lang":"C","license":"mit","repos":"Chase-san\/libspec,Chase-san\/libspec"} {"commit":"a2c9184cb990b90c7575053637f1abc99f3d32e9","old_file":"src\/untrusted\/nacl\/pthread_initialize_minimal.c","new_file":"src\/untrusted\/nacl\/pthread_initialize_minimal.c","old_contents":"\/*\n * Copyright (c) 2012 The Native Client 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\n#include \n\n#include \"native_client\/src\/untrusted\/nacl\/nacl_irt.h\"\n#include \"native_client\/src\/untrusted\/nacl\/nacl_thread.h\"\n#include \"native_client\/src\/untrusted\/nacl\/tls.h\"\n\n\/*\n * This initialization happens early in startup with or without libpthread.\n * It must make it safe for vanilla newlib code to run.\n *\/\nvoid __pthread_initialize_minimal(size_t tdb_size) {\n \/* Adapt size for sbrk. *\/\n \/* TODO(robertm): this is somewhat arbitrary - re-examine). *\/\n size_t combined_size = (__nacl_tls_combined_size(tdb_size) + 15) & ~15;\n\n \/*\n * Use sbrk not malloc here since the library is not initialized yet.\n *\/\n void *combined_area = sbrk(combined_size);\n\n \/*\n * Fill in that memory with its initializer data.\n *\/\n void *tp = __nacl_tls_initialize_memory(combined_area, tdb_size);\n\n \/*\n * Set %gs, r9, or equivalent platform-specific mechanism. Requires\n * a syscall since certain bitfields of these registers are trusted.\n *\/\n nacl_tls_init(tp);\n\n \/*\n * Initialize newlib's thread-specific pointer.\n *\/\n __newlib_thread_init();\n}\n","new_contents":"\/*\n * Copyright (c) 2012 The Native Client 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\n#include \n\n#include \"native_client\/src\/untrusted\/nacl\/nacl_irt.h\"\n#include \"native_client\/src\/untrusted\/nacl\/nacl_thread.h\"\n#include \"native_client\/src\/untrusted\/nacl\/tls.h\"\n\n\/*\n * This initialization happens early in startup with or without libpthread.\n * It must make it safe for vanilla newlib code to run.\n *\/\nvoid __pthread_initialize_minimal(size_t tdb_size) {\n size_t combined_size = __nacl_tls_combined_size(tdb_size);\n\n \/*\n * Use sbrk not malloc here since the library is not initialized yet.\n *\/\n void *combined_area = sbrk(combined_size);\n\n \/*\n * Fill in that memory with its initializer data.\n *\/\n void *tp = __nacl_tls_initialize_memory(combined_area, tdb_size);\n\n \/*\n * Set %gs, r9, or equivalent platform-specific mechanism. Requires\n * a syscall since certain bitfields of these registers are trusted.\n *\/\n nacl_tls_init(tp);\n\n \/*\n * Initialize newlib's thread-specific pointer.\n *\/\n __newlib_thread_init();\n}\n","subject":"Remove unnecessary rounding when allocating initial thread block","message":"Cleanup: Remove unnecessary rounding when allocating initial thread block\n\nThe other calls to __nacl_tls_combined_size() don't do this.\n\n__nacl_tls_combined_size() should be doing any necessary rounding itself.\n\nBUG=none\nTEST=trybots\n\nReview URL: https:\/\/codereview.chromium.org\/18555008\n\ngit-svn-id: 721b910a23eff8a86f00c8fd261a7587cddf18f8@11698 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2\n","lang":"C","license":"bsd-3-clause","repos":"sbc100\/native_client,sbc100\/native_client,sbc100\/native_client,sbc100\/native_client,sbc100\/native_client,sbc100\/native_client"} {"commit":"2e7fdd6a1db4a649f7e3e469729946d3978f83a1","old_file":"test\/test_buffer_small_read.c","new_file":"test\/test_buffer_small_read.c","old_contents":"#include \n\n#include \n#include \n\n#include \"test.h\"\n\n#define DATA_SIZE\t4\n\nint main()\n{\n\tunsigned char data[4];\n\tbert_buffer_t buffer;\n\n\tbert_buffer_init(&buffer);\n\n\tmemset(data,'A',DATA_SIZE);\n\n\tbert_buffer_write(&buffer,data,DATA_SIZE);\n\tbert_buffer_write(&buffer,data,DATA_SIZE);\n\tbert_buffer_write(&buffer,data,DATA_SIZE);\n\n\tunsigned char output[DATA_SIZE];\n\tsize_t result;\n\n\tif ((result = bert_buffer_read(output,&buffer,DATA_SIZE)) != DATA_SIZE)\n\t{\n\t\ttest_fail(\"bert_buffer_read only read %u bytes, expected %u\",result,DATA_SIZE);\n\t}\n\n\tif (memcmp(output,data,DATA_SIZE))\n\t{\n\t\ttest_fail(\"bert_buffer_read return %c%c%c%c, expected AAAA\",output[0],output[1],output[2],output[3]);\n\t}\n\n\treturn 0;\n}\n","new_contents":"#include \n\n#include \n#include \n\n#include \"test.h\"\n\n#define DATA_SIZE\t4\n\nint main()\n{\n\tunsigned char data[4];\n\tbert_buffer_t buffer;\n\n\tbert_buffer_init(&buffer);\n\n\tmemset(data,'A',DATA_SIZE);\n\n\tunsigned int i;\n\n\tfor (i=0;i<((BERT_CHUNK_SIZE \/ DATA_SIZE) * 2);i++)\n\t{\n\t\tbert_buffer_write(&buffer,data,DATA_SIZE);\n\t}\n\n\tunsigned char output[DATA_SIZE];\n\tsize_t result;\n\n\tif ((result = bert_buffer_read(output,&buffer,DATA_SIZE)) != DATA_SIZE)\n\t{\n\t\ttest_fail(\"bert_buffer_read only read %u bytes, expected %u\",result,DATA_SIZE);\n\t}\n\n\tif (memcmp(output,data,DATA_SIZE))\n\t{\n\t\ttest_fail(\"bert_buffer_read return %c%c%c%c, expected AAAA\",output[0],output[1],output[2],output[3]);\n\t}\n\n\treturn 0;\n}\n","subject":"Make sure the buffer small read populates the buffer with multiple chunks.","message":"Make sure the buffer small read populates the buffer with multiple chunks.\n","lang":"C","license":"mit","repos":"postmodern\/libBERT"} {"commit":"6fd49de120156dfac40ce3ce57d52f986b66aa3e","old_file":"C\/SysLib\/SysLib.h","new_file":"C\/SysLib\/SysLib.h","old_contents":"\/*****************************************************************************\\\n* *\n* Filename \t SysLib.h\t\t\t\t\t\t *\n*\t\t\t\t\t\t\t\t\t *\n* Description SysLib Library core definitions\t\t\t *\n* *\n* Notes\t Included indirectly by the include files that need it. *\n*\t\t Do not include directly.\t\t\t\t *\n*\t\t\t\t\t\t\t\t\t *\n* History\t\t\t\t\t\t\t\t *\n* 2016-04-12 JFL Created this file.\t\t\t\t\t *\n* 2016-04-22 JFL Renamed the MULTIOS library as SYSLIB.\t\t *\n*\t\t \t\t\t\t\t\t\t *\n* © Copyright 2016 Hewlett Packard Enterprise Development LP *\n* Licensed under the Apache 2.0 license - www.apache.org\/licenses\/LICENSE-2.0 *\n\\*****************************************************************************\/\n\n#ifndef __SYSLIB_H__ \/* Prevent multiple inclusions *\/\n#define __SYSLIB_H__\n\n\/* Force linking with the SysLib.lib library *\/\n#if defined(_MSC_VER)\n#define _SYSLIB_LIB \"SysLib.lib\"\n#pragma message(\"Adding pragma comment(lib, \\\"\" _SYSLIB_LIB \"\\\")\")\n#pragma comment(lib, _SYSLIB_LIB)\n#endif \/* defined(_MSC_VER) *\/\n\n#if defined(__unix__)\n#define _SYSLIB_LIB \"libSysLib.a\"\n#endif\n\n#endif \/* defined(__SYSLIB_H__) *\/\n","new_contents":"\/*****************************************************************************\\\n* *\n* Filename \t SysLib.h\t\t\t\t\t\t *\n*\t\t\t\t\t\t\t\t\t *\n* Description SysLib Library core definitions\t\t\t *\n* *\n* Notes\t Included indirectly by the include files that need it. *\n*\t\t Do not include directly.\t\t\t\t *\n*\t\t\t\t\t\t\t\t\t *\n* History\t\t\t\t\t\t\t\t *\n* 2016-04-12 JFL Created this file.\t\t\t\t\t *\n* 2016-04-22 JFL Renamed the MULTIOS library as SYSLIB.\t\t *\n*\t\t \t\t\t\t\t\t\t *\n* © Copyright 2016 Hewlett Packard Enterprise Development LP *\n* Licensed under the Apache 2.0 license - www.apache.org\/licenses\/LICENSE-2.0 *\n\\*****************************************************************************\/\n\n#ifndef __SYSLIB_H__ \/* Prevent multiple inclusions *\/\n#define __SYSLIB_H__\n\n\/* Force linking with the SysLib.lib library *\/\n#if defined(_MSC_VER)\n\n#define _SYSLIB_LIB \"SysLib.lib\"\n#pragma message(\"Adding pragma comment(lib, \\\"\" _SYSLIB_LIB \"\\\")\")\n#pragma comment(lib, _SYSLIB_LIB)\n\n#else \/* GCC, clang, etc. *\/\n\n#define _SYSLIB_LIB \"libSysLib.a\"\n\n#endif\n\n#endif \/* defined(__SYSLIB_H__) *\/\n","subject":"Fix compatibility with all non-Microsoft compilers","message":"Fix compatibility with all non-Microsoft compilers\n","lang":"C","license":"apache-2.0","repos":"JFLarvoire\/SysToolsLib,JFLarvoire\/SysToolsLib,JFLarvoire\/SysToolsLib,JFLarvoire\/SysToolsLib"} {"commit":"8236a6d84a13fa1511aaa8d8dea1b0155fe78c95","old_file":"fifo.h","new_file":"fifo.h","old_contents":"#ifndef FIFO_H\n#define FIFO_H\n\n#include \"align.h\"\n\n#define FIFO_NODE_SIZE 510\n\nstruct _fifo_node_t;\n\ntypedef struct DOUBLE_CACHE_ALIGNED {\n volatile size_t enq DOUBLE_CACHE_ALIGNED;\n volatile size_t deq DOUBLE_CACHE_ALIGNED;\n volatile struct {\n int index;\n struct _fifo_node_t * node;\n } head DOUBLE_CACHE_ALIGNED;\n size_t nprocs;\n} fifo_t;\n\ntypedef struct DOUBLE_CACHE_ALIGNED _fifo_handle_t {\n struct _fifo_handle_t * next;\n struct _fifo_node_t * enq;\n struct _fifo_node_t * deq;\n struct _fifo_node_t * hazard;\n struct _fifo_node_t * retired;\n int winner;\n} fifo_handle_t;\n\nvoid fifo_init(fifo_t * fifo, size_t width);\nvoid fifo_register(fifo_t * fifo, fifo_handle_t * handle);\nvoid * fifo_get(fifo_t * fifo, fifo_handle_t * handle);\nvoid fifo_put(fifo_t * fifo, fifo_handle_t * handle, void * data);\n\n#endif \/* end of include guard: FIFO_H *\/\n","new_contents":"#ifndef FIFO_H\n#define FIFO_H\n\n#include \"align.h\"\n\n#define FIFO_NODE_SIZE (1 << 20 - 2)\n\nstruct _fifo_node_t;\n\ntypedef struct DOUBLE_CACHE_ALIGNED {\n volatile size_t enq DOUBLE_CACHE_ALIGNED;\n volatile size_t deq DOUBLE_CACHE_ALIGNED;\n volatile struct {\n size_t index;\n struct _fifo_node_t * node;\n } head DOUBLE_CACHE_ALIGNED;\n size_t nprocs;\n} fifo_t;\n\ntypedef struct DOUBLE_CACHE_ALIGNED _fifo_handle_t {\n struct _fifo_handle_t * next;\n struct _fifo_node_t * enq;\n struct _fifo_node_t * deq;\n struct _fifo_node_t * hazard;\n struct _fifo_node_t * retired;\n int winner;\n} fifo_handle_t;\n\nvoid fifo_init(fifo_t * fifo, size_t width);\nvoid fifo_register(fifo_t * fifo, fifo_handle_t * handle);\nvoid * fifo_get(fifo_t * fifo, fifo_handle_t * handle);\nvoid fifo_put(fifo_t * fifo, fifo_handle_t * handle, void * data);\n\n#endif \/* end of include guard: FIFO_H *\/\n","subject":"Use the same size of lcrq.","message":"Use the same size of lcrq.\n","lang":"C","license":"mit","repos":"chaoran\/fast-wait-free-queue,chaoran\/hpc-queue,chaoran\/fast-wait-free-queue,chaoran\/hpc-queue,chaoran\/fast-wait-free-queue,chaoran\/hpc-queue"} {"commit":"0920b4d3988702e09e175fdfc9ac40aee61a90f5","old_file":"libslax\/jsonwriter.h","new_file":"libslax\/jsonwriter.h","old_contents":"\/*\n * $Id$\n *\n * Copyright (c) 2013, Juniper Networks, Inc.\n * All rights reserved.\n * This SOFTWARE is licensed under the LICENSE provided in the\n * ..\/Copyright file. By downloading, installing, copying, or otherwise\n * using the SOFTWARE, you agree to be bound by the terms of that\n * LICENSE.\n *\n * jsonwriter.h -- turn json-oriented XML into json text\n *\/\n\nint\nslaxJsonWriteNode (slaxWriterFunc_t func, void *data, xmlNodePtr nodep,\n\t\t unsigned flags);\n\nint\nslaxJsonWriteDoc (slaxWriterFunc_t func, void *data, xmlDocPtr docp,\n\t\t unsigned flags);\n\n#define JWF_ROOT\t(1<<0)\t\/* Root node *\/\n#define JWF_ARRAY\t(1<<1)\t\/* Inside array *\/\n#define JWF_NODESET\t(1<<2)\t\/* Top of a nodeset *\/\n#define JWF_PRETTY\t(1<<3)\t\/* Pretty print (newlines) *\/\n\n#define JWF_OPTIONAL_QUOTES (1<<4)\t\/* Don't use quotes unless needed *\/\n","new_contents":"\/*\n * Copyright (c) 2013, Juniper Networks, Inc.\n * All rights reserved.\n * This SOFTWARE is licensed under the LICENSE provided in the\n * ..\/Copyright file. By downloading, installing, copying, or otherwise\n * using the SOFTWARE, you agree to be bound by the terms of that\n * LICENSE.\n *\n * jsonwriter.h -- turn json-oriented XML into json text\n *\/\n\nint\nslaxJsonWriteNode (slaxWriterFunc_t func, void *data, xmlNodePtr nodep,\n\t\t unsigned flags);\n\nint\nslaxJsonWriteDoc (slaxWriterFunc_t func, void *data, xmlDocPtr docp,\n\t\t unsigned flags);\n\n#define JWF_ROOT\t(1<<0)\t\/* Root node *\/\n#define JWF_ARRAY\t(1<<1)\t\/* Inside array *\/\n#define JWF_NODESET\t(1<<2)\t\/* Top of a nodeset *\/\n#define JWF_PRETTY\t(1<<3)\t\/* Pretty print (newlines) *\/\n\n#define JWF_OPTIONAL_QUOTES (1<<4)\t\/* Don't use quotes unless needed *\/\n","subject":"Drop $Id$ and update copyright","message":"Drop $Id$ and update copyright\n","lang":"C","license":"bsd-3-clause","repos":"Juniper\/libslax,Juniper\/libslax,Juniper\/libslax"} {"commit":"c532f633a94f3d91b4435c8ed84dc3ef7bcf2afa","old_file":"test\/Analysis\/stack-addr-ps.c","new_file":"test\/Analysis\/stack-addr-ps.c","old_contents":"\/\/ RUN: clang -checker-simple -verify %s\n\nint* f1() {\n int x = 0;\n return &x; \/\/ expected-warning{{Address of stack memory associated with local variable 'x' returned.}} expected-warning{{address of stack memory associated with local variable 'x' returned}}\n}\n\nint* f2(int y) {\n return &y; \/\/ expected-warning{{Address of stack memory associated with local variable 'y' returned.}} expected-warning{{address of stack memory associated with local variable 'y' returned}}\n}\n\nint* f3(int x, int *y) {\n int w = 0;\n \n if (x)\n y = &w;\n \n return y; \/\/ expected-warning{{Address of stack memory associated with local variable 'w' returned.}}\n}\n\nunsigned short* compound_literal() {\n return &(unsigned short){((unsigned short)0x22EF)}; \/\/ expected-warning{{Address of stack memory}}\n}\n\n","new_contents":"\/\/ RUN: clang -checker-simple -verify %s\n\nint* f1() {\n int x = 0;\n return &x; \/\/ expected-warning{{Address of stack memory associated with local variable 'x' returned.}} expected-warning{{address of stack memory associated with local variable 'x' returned}}\n}\n\nint* f2(int y) {\n return &y; \/\/ expected-warning{{Address of stack memory associated with local variable 'y' returned.}} expected-warning{{address of stack memory associated with local variable 'y' returned}}\n}\n\nint* f3(int x, int *y) {\n int w = 0;\n \n if (x)\n y = &w;\n \n return y; \/\/ expected-warning{{Address of stack memory associated with local variable 'w' returned.}}\n}\n\nunsigned short* compound_literal() {\n return &(unsigned short){((unsigned short)0x22EF)}; \/\/ expected-warning{{Address of stack memory}} expected-warning{{braces around scalar initializer}}\n}\n\n","subject":"Add 'expected-warning' for braces around scalar initializer","message":"Add 'expected-warning' for braces around scalar initializer\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@58280 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang"} {"commit":"64f5f1fea0b17b4798bbdc926ea5e54f6f62d019","old_file":"kernel\/gdt.c","new_file":"kernel\/gdt.c","old_contents":"","new_contents":"\/*GDT stands for \"Global Descriptor Table\". \nIt is a table available on i386 (ix86?)\nprocessors. The GDT is a list of 64 bit entries.\nGRUB (or our boot) loader will install the GDT for us.\nIf we overwrite the GDT we will cause a 'triple fault'\nand the machine will be reset.\n\nBased on the tutorial, we will write a GDT with only 3 fields\nand will not concern ourselves with the other fields.\n\nThe above was paraphrased from:\nhttp:\/\/www.osdever.net\/bkerndev\/Docs\/gdt.htm\n*\/\n\ntypedef unsigned short usort;\ntypedef unsigned char uchar;\ntypedef unsigned int uint;\n\n\/* the __attribute__((packed))\ntells the compiler not to 'optimize' the struct for us by \npacking.\n*\/\nstruct gdt_entry\n{\n\tushort limit_low;\n\tushort base_low;\n\tuchar base_middle;\n\tuchar access;\n\tuchar granularity;\n\tuchar base_high;\n}__attribute__((packed));\n\n\/* the following is a special pointer representing\nthe max bytes taken up by the GDT -1 *\/\nstruct gdt_ptr\n{\n\tushort limit;\n\tuint base;\n}__attribute__((packed));\n\nstruct gdt_entry gdt[3];\nstruct gdt_ptr gdtp;\n\/* A function in start.am. Used to properly \nreload the new segment registers *\/\n\/\/extern void gdt_flush();\n\n","subject":"Add structs used in the GDT","message":"Add structs used in the GDT\n","lang":"C","license":"mit","repos":"Herbstein\/kernel-of-truth,iankronquist\/kernel-of-truth,iankronquist\/kernel-of-truth,iankronquist\/kernel-of-truth,Herbstein\/kernel-of-truth,Herbstein\/kernel-of-truth,awensaunders\/kernel-of-truth,awensaunders\/kernel-of-truth,iankronquist\/kernel-of-truth,awensaunders\/kernel-of-truth,iankronquist\/kernel-of-truth"} {"commit":"cc83e1e54763daf0dcb2e80989517a5065b5ce0a","old_file":"include\/stamp.h","new_file":"include\/stamp.h","old_contents":"\/*\n * Time stamp of last source code repository commit.\n *\/\n\n#define ___STAMP_YMD 20131223\n#define ___STAMP_HMS 145645\n","new_contents":"\/*\n * Time stamp of last source code repository commit.\n *\/\n\n#define ___STAMP_YMD 20131223\n#define ___STAMP_HMS 172203\n","subject":"Clarify that LD_LIBRARY_PATH must be set when Gambit is build with shared libs","message":"Clarify that LD_LIBRARY_PATH must be set when Gambit is build with shared libs\n","lang":"C","license":"apache-2.0","repos":"BeImprovised\/gambit,jasperla\/gambit,BeImprovised\/gambit,BeImprovised\/gambit,acenode\/gambit,thewhimer\/gambit,jasperla\/gambit,BeImprovised\/gambit,thewhimer\/gambit,thewhimer\/gambit,jasperla\/gambit,acenode\/gambit,jasperla\/gambit,thewhimer\/gambit,acenode\/gambit,acenode\/gambit,thewhimer\/gambit,thewhimer\/gambit"} {"commit":"df24731a1a75f55efa4a4453aed9ad108dfe52cf","old_file":"libs\/samson\/stream\/QueueTaskManager.h","new_file":"libs\/samson\/stream\/QueueTaskManager.h","old_contents":"\n#ifndef _H_SAMSON_QUEUE_TASK_MANAGER\n#define _H_SAMSON_QUEUE_TASK_MANAGER\n\n#include \"au\/list.h\" \/\/ au::list\n\nnamespace samson {\n namespace stream {\n \n class QueueTask;\n \n class QueueTaskManager\n {\n au::list< QueueTask > queueTasks;\n size_t id; \/\/ Id of the current task\n \n public:\n \n void add( QueueTask* task );\n \n std::string getStatus();\n \n };\n \n }\n \n}\n\n#endif\n","new_contents":"\n#ifndef _H_SAMSON_QUEUE_TASK_MANAGER\n#define _H_SAMSON_QUEUE_TASK_MANAGER\n\n#include \"au\/list.h\" \/\/ au::list\n#include \/\/ std::string\n\nnamespace samson {\n namespace stream {\n \n class QueueTask;\n \n class QueueTaskManager\n {\n au::list< QueueTask > queueTasks;\n size_t id; \/\/ Id of the current task\n \n public:\n \n void add( QueueTask* task );\n \n std::string getStatus();\n \n };\n \n }\n \n}\n\n#endif\n","subject":"Fix broken compilation of Linux for the famous string.h header","message":"Fix broken compilation of Linux for the famous string.h header\n\ngit-svn-id: 9714148d14941aebeae8d7f7841217f5ffc02bc5@1260 4143565c-f3ec-42ea-b729-f8ce0cf5cbc3\n","lang":"C","license":"apache-2.0","repos":"telefonicaid\/fiware-cosmos-platform,telefonicaid\/fiware-cosmos-platform,telefonicaid\/fiware-cosmos-platform,telefonicaid\/fiware-cosmos-platform,telefonicaid\/fiware-cosmos-platform"} {"commit":"ff3cc8c9b31ed62299c14f800f55097588a2c0f5","old_file":"SwitecX25.h","new_file":"SwitecX25.h","old_contents":"#ifndef SwitecX25_h\n#define SwitecX25_h\n\nclass SwitecX25\n{\n public:\n static const unsigned char pinCount = 4;\n static const unsigned char stateCount = 6;\n unsigned char pins[pinCount];\n unsigned char currentState; \/\/ 6 steps \n unsigned int currentStep; \/\/ step we are currently at\n unsigned int targetStep; \/\/ target we are moving to\n unsigned int steps; \/\/ total steps available\n unsigned long time0; \/\/ time when we entered this state\n unsigned int microDelay; \/\/ microsecs until next state\n unsigned short (*accelTable)[2]; \/\/ accel table can be modified.\n unsigned int maxVel; \/\/ fastest vel allowed\n unsigned int vel; \/\/ steps travelled under acceleration\n char dir; \/\/ direction -1,0,1 \n boolean stopped; \/\/ true if stopped\n \n SwitecX25(unsigned int steps, unsigned char pin1, unsigned char pin2, unsigned char pin3, unsigned char pin4);\n \n void stepUp();\n void stepDown();\n void zero();\n void update();\n void setPosition(unsigned int pos);\n \n private:\n void advance();\n void writeIO();\n};\n\n\n#endif\n\n","new_contents":"#ifndef SwitecX25_h\n#define SwitecX25_h\n#include \n\nclass SwitecX25\n{\n public:\n static const unsigned char pinCount = 4;\n static const unsigned char stateCount = 6;\n unsigned char pins[pinCount];\n unsigned char currentState; \/\/ 6 steps \n unsigned int currentStep; \/\/ step we are currently at\n unsigned int targetStep; \/\/ target we are moving to\n unsigned int steps; \/\/ total steps available\n unsigned long time0; \/\/ time when we entered this state\n unsigned int microDelay; \/\/ microsecs until next state\n unsigned short (*accelTable)[2]; \/\/ accel table can be modified.\n unsigned int maxVel; \/\/ fastest vel allowed\n unsigned int vel; \/\/ steps travelled under acceleration\n char dir; \/\/ direction -1,0,1 \n boolean stopped; \/\/ true if stopped\n \n SwitecX25(unsigned int steps, unsigned char pin1, unsigned char pin2, unsigned char pin3, unsigned char pin4);\n \n void stepUp();\n void stepDown();\n void zero();\n void update();\n void setPosition(unsigned int pos);\n \n private:\n void advance();\n void writeIO();\n};\n\n\n#endif\n\n","subject":"Include Arduino.h to make sure we have types like \"boolean\"","message":"Include Arduino.h to make sure we have types like \"boolean\"\n","lang":"C","license":"bsd-2-clause","repos":"timkettering\/SwitecX25"} {"commit":"1c8f270a75665f44f8570735762003a4319cbe19","old_file":"test\/CodeGen\/2003-08-06-BuiltinSetjmpLongjmp.c","new_file":"test\/CodeGen\/2003-08-06-BuiltinSetjmpLongjmp.c","old_contents":"\/* RUN: %clang_cc1 %s -emit-llvm -o - | not grep __builtin_\n *\n * __builtin_longjmp\/setjmp should get transformed into llvm.setjmp\/longjmp \n * just like explicit setjmp\/longjmp calls are.\n *\/\n\nvoid jumpaway(int *ptr) {\n __builtin_longjmp(ptr,1);\n}\n \nint main(void) {\n __builtin_setjmp(0);\n jumpaway(0);\n}\n","new_contents":"\/* RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s\n *\n * __builtin_longjmp\/setjmp should get transformed into intrinsics.\n *\/\n\n\/\/ CHECK-NOT: builtin_longjmp\n\nvoid jumpaway(int *ptr) {\n __builtin_longjmp(ptr,1);\n}\n \nint main(void) {\n __builtin_setjmp(0);\n jumpaway(0);\n}\n","subject":"Fix test in two ways: remove incorrect comment (the intrinsic generated now is of the llvm.sjlj.* flavore) and convert grep->FileCheck","message":"Fix test in two ways: remove incorrect comment (the intrinsic generated now\nis of the llvm.sjlj.* flavore) and convert grep->FileCheck\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@181468 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"llvm-mirror\/clang,llvm-mirror\/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,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang"} {"commit":"d564544ee0462850815967d943d8350f4aa298bc","old_file":"native\/fallocate_linux.c","new_file":"native\/fallocate_linux.c","old_contents":"#define _GNU_SOURCE\n#define _FILE_OFFSET_BITS 64\n\n#include \n#include \n#include \n\nint native_fallocate(int fd, uint64_t len) {\n return fallocate(fd, 0, 0, (off_t)len);\n}\n","new_contents":"#define _GNU_SOURCE\n#define _FILE_OFFSET_BITS 64\n\n#include \n#include \n\nint native_fallocate(int fd, uint64_t len) {\n return fallocate(fd, 0, 0, (off_t)len);\n}\n","subject":"Remove falloc header from linux build","message":"Remove falloc header from linux build\n","lang":"C","license":"isc","repos":"Luminarys\/synapse,Luminarys\/synapse,Luminarys\/synapse"} {"commit":"5f2e3c068b323d97d73b921623decc34f7ac7325","old_file":"p_liberrno.h","new_file":"p_liberrno.h","old_contents":"\/*\n * Copyright 2013 Mo McRoberts.\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 P_LIBERRNO_H_\n# define P_LIBERRNO_H_ 1\n\n# include \n\n# include \"errno.h\"\n# undef errno\n\nint *get_errno_ux2003(void) UX_SYM03_(errno);\n\n#endif \/*!P_LIBERRNO_H_*\/","new_contents":"\/*\n * Copyright 2013 Mo McRoberts.\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 P_LIBERRNO_H_\n# define P_LIBERRNO_H_ 1\n\n# include \n\n# include \"errno.h\"\n# undef errno\n\nint *errno_ux2003(void) UX_SYM03_(errno);\n\n#endif \/*!P_LIBERRNO_H_*\/","subject":"Fix symbol name of errno$UX$2003","message":"Fix symbol name of errno$UX$2003\n","lang":"C","license":"apache-2.0","repos":"coreux\/liberrno,coreux\/liberrno"} {"commit":"ca864cc2e2063756ba8e48de390d1cf947f2efad","old_file":"tutorial\/clock.h","new_file":"tutorial\/clock.h","old_contents":"\/\/ A current_time function for use in the tests. Returns time in\n\/\/ milliseconds.\n\n#ifdef _WIN32\nextern \"C\" bool QueryPerformanceCounter(uint64_t *);\nextern \"C\" bool QueryPerformanceFrequency(uint64_t *);\ndouble current_time() {\n uint64_t t, freq;\n QueryPerformanceCounter(&t);\n QueryPerformanceFrequency(&freq);\n return (t * 1000.0) \/ freq;\n}\n#else\n#include \ndouble current_time() {\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 current_time function for use in the tests. Returns time in\n\/\/ milliseconds.\n\n#ifdef _WIN32\n#include \ndouble current_time() {\n LARGE_INTEGER freq, t;\n QueryPerformanceCounter(&t);\n QueryPerformanceFrequency(&freq);\n return (t.QuadPart * 1000.0) \/ freq.QuadPart;\n}\n\/\/ Gross, these come from Windows.h\n#undef max\n#undef min\n#else\n#include \ndouble current_time() {\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":"Fix build of tutorials that require libpng under Visual Studio.","message":"Fix build of tutorials that require libpng under Visual Studio.\n","lang":"C","license":"mit","repos":"lglucin\/Halide,jiawen\/Halide,kenkuang1213\/Halide,psuriana\/Halide,dougkwan\/Halide,kenkuang1213\/Halide,mcanthony\/Halide,damienfir\/Halide,jiawen\/Halide,dan-tull\/Halide,kenkuang1213\/Halide,dan-tull\/Halide,myrtleTree33\/Halide,mcanthony\/Halide,lglucin\/Halide,adasworks\/Halide,rodrigob\/Halide,fengzhyuan\/Halide,rodrigob\/Halide,aam\/Halide,damienfir\/Halide,ayanazmat\/Halide,rodrigob\/Halide,lglucin\/Halide,dougkwan\/Halide,myrtleTree33\/Halide,fengzhyuan\/Halide,damienfir\/Halide,myrtleTree33\/Halide,mcanthony\/Halide,myrtleTree33\/Halide,smxlong\/Halide,adasworks\/Halide,damienfir\/Halide,aam\/Halide,damienfir\/Halide,kgnk\/Halide,psuriana\/Halide,kenkuang1213\/Halide,dan-tull\/Halide,dan-tull\/Halide,aam\/Halide,mcanthony\/Halide,psuriana\/Halide,ronen\/Halide,ronen\/Halide,myrtleTree33\/Halide,myrtleTree33\/Halide,fengzhyuan\/Halide,mcanthony\/Halide,jiawen\/Halide,jiawen\/Halide,dougkwan\/Halide,jiawen\/Halide,rodrigob\/Halide,ronen\/Halide,psuriana\/Halide,delcypher\/Halide,fengzhyuan\/Halide,jiawen\/Halide,delcypher\/Halide,dougkwan\/Halide,dougkwan\/Halide,damienfir\/Halide,smxlong\/Halide,mcanthony\/Halide,ronen\/Halide,delcypher\/Halide,aam\/Halide,adasworks\/Halide,ayanazmat\/Halide,ronen\/Halide,rodrigob\/Halide,fengzhyuan\/Halide,dan-tull\/Halide,fengzhyuan\/Halide,fengzhyuan\/Halide,psuriana\/Halide,dougkwan\/Halide,smxlong\/Halide,lglucin\/Halide,tdenniston\/Halide,smxlong\/Halide,mcanthony\/Halide,tdenniston\/Halide,delcypher\/Halide,tdenniston\/Halide,damienfir\/Halide,smxlong\/Halide,tdenniston\/Halide,kenkuang1213\/Halide,ayanazmat\/Halide,ronen\/Halide,fengzhyuan\/Halide,psuriana\/Halide,tdenniston\/Halide,rodrigob\/Halide,kgnk\/Halide,tdenniston\/Halide,ayanazmat\/Halide,kgnk\/Halide,smxlong\/Halide,dougkwan\/Halide,jiawen\/Halide,damienfir\/Halide,adasworks\/Halide,delcypher\/Halide,dan-tull\/Halide,kenkuang1213\/Halide,dan-tull\/Halide,adasworks\/Halide,dougkwan\/Halide,ayanazmat\/Halide,dan-tull\/Halide,lglucin\/Halide,kgnk\/Halide,myrtleTree33\/Halide,adasworks\/Halide,kgnk\/Halide,kenkuang1213\/Halide,tdenniston\/Halide,aam\/Halide,kgnk\/Halide,ayanazmat\/Halide,rodrigob\/Halide,mcanthony\/Halide,aam\/Halide,kgnk\/Halide,lglucin\/Halide,kenkuang1213\/Halide,kgnk\/Halide,rodrigob\/Halide,ayanazmat\/Halide,myrtleTree33\/Halide,delcypher\/Halide,delcypher\/Halide,aam\/Halide,smxlong\/Halide,adasworks\/Halide,smxlong\/Halide,adasworks\/Halide,ronen\/Halide,psuriana\/Halide,ronen\/Halide,tdenniston\/Halide,lglucin\/Halide,ayanazmat\/Halide,delcypher\/Halide"} {"commit":"548a5f97ccdab26e90a7e0ba87b1510cfd490dbb","old_file":"src\/boreutils.h","new_file":"src\/boreutils.h","old_contents":"#ifndef BOREUTILS_H\n#define BOREUTILS_H\n\n#include \n\nstatic const char *BOREUTILS_VERSION = \"0.0.0b1\";\n\nint has_arg(int argc, char **argv, char *search);\nvoid bu_missing_argument(char *name);\nint bu_handle_version(int argc, char **argv);\n\n\n\/\/ FIXME: Having this in a header is definitely a hack.\nint has_arg(int argc, char **argv, char *search)\n{\n for (int idx = 1; idx < argc; idx++) {\n if (strcmp(argv[idx], search) == 0) {\n return 1;\n }\n }\n\n return 0;\n}\n\n\nvoid bu_missing_argument(char *name) {\n fprintf(stderr, \"%s: Missing argument\\nSee '%s --help' for more information.\\n\", name, name);\n}\n\n\nint bu_handle_version(int argc, char **argv) {\n if (has_arg(argc, argv, \"--version\")) {\n printf(\"Boreutils %s v%s\\n\", argv[0], BOREUTILS_VERSION);\n return 1;\n }\n\n return 0;\n}\n\n#endif\n","new_contents":"#ifndef BOREUTILS_H\n#define BOREUTILS_H\n\n#include \n\nstatic const char *BOREUTILS_VERSION = \"0.0.0b1\";\n\nint has_arg(int argc, char **argv, char *search);\nvoid bu_missing_argument(char *name);\nint bu_handle_version(int argc, char **argv);\n\n\n\/\/ FIXME: Having this in a header is definitely a hack.\nint has_arg(int argc, char **argv, char *search)\n{\n for (int idx = 1; idx < argc; idx++) {\n if (strcmp(argv[idx], search) == 0) {\n return 1;\n }\n }\n\n return 0;\n}\n\n\nvoid bu_missing_argument(char *name) {\n fprintf(stderr, \"%s: Missing argument\\nSee '%s --help' for more information.\\n\", name, name);\n}\n\n\nint bu_handle_version(int argc, char **argv) {\n if (has_arg(argc, argv, \"--version\")) {\n printf(\"%s (Boreutils) %s\\n\", argv[0], BOREUTILS_VERSION);\n return 1;\n }\n\n return 0;\n}\n\n#endif\n","subject":"Change --version format to \" (Boreutils) \"","message":"Change --version format to \" (Boreutils) \"\n","lang":"C","license":"isc","repos":"duckinator\/boreutils,duckinator\/boreutils"} {"commit":"c8d4b754fb316cf620dcd8a933e3e9886103d878","old_file":"bindings\/perl\/Champlain\/champlain-perl.h","new_file":"bindings\/perl\/Champlain\/champlain-perl.h","old_contents":"#ifndef _CHAMPLAIN_PERL_H_\n\n#include \n#include \n#include \"ppport.h\"\n#include \"champlain-autogen.h\"\n\n#ifdef CHAMPLAINPERL_GTK\n#include \n#endif\n\n#endif \/* _CHAMPLAIN_PERL_H_ *\/\n","new_contents":"#ifndef _CHAMPLAIN_PERL_H_\n\n#include \n\n\n#include \n\n#ifdef CHAMPLAINPERL_GTK\n#include \n#endif\n\n\n#include \"ppport.h\"\n#include \"champlain-autogen.h\"\n\n#endif \/* _CHAMPLAIN_PERL_H_ *\/\n","subject":"Move the include file around.","message":"Move the include file around.\n","lang":"C","license":"lgpl-2.1","repos":"GNOME\/libchamplain,PabloCastellano\/libchamplain,PabloCastellano\/libchamplain,potyl\/champlain,GNOME\/libchamplain,GNOME\/perl-Champlain,potyl\/champlain,Distrotech\/libchamplain,StanciuMarius\/Libchamplain-map-wrapping,Distrotech\/libchamplain,GNOME\/perl-Champlain,GNOME\/perl-Gtk2-Champlain,Distrotech\/libchamplain,Distrotech\/libchamplain,potyl\/champlain,PabloCastellano\/libchamplain,PabloCastellano\/libchamplain,PabloCastellano\/libchamplain,potyl\/champlain,StanciuMarius\/Libchamplain-map-wrapping,StanciuMarius\/Libchamplain-map-wrapping,StanciuMarius\/Libchamplain-map-wrapping,Distrotech\/libchamplain,GNOME\/perl-Gtk2-Champlain,StanciuMarius\/Libchamplain-map-wrapping"} {"commit":"fb514a31f0c99c252e0948fa88ffb75ba5b5ec69","old_file":"Source\/CoreData+MagicalRecord.h","new_file":"Source\/CoreData+MagicalRecord.h","old_contents":"\/\/\n\/\/ MagicalRecord for Core Data.\n\/\/\n\/\/ Created by Saul Mora.\n\/\/ Copyright 2011 Magical Panda Software. All rights reserved.\n\/\/\n\n\/\/ enable to use caches for the fetchedResultsControllers (iOS only)\n#if TARGET_OS_IPHONE\n#define STORE_USE_CACHE\n#endif\n\n#define kCreateNewCoordinatorOnBackgroundOperations 0\n#define ENABLE_ACTIVE_RECORD_LOGGING\n\n#ifdef ENABLE_ACTIVE_RECORD_LOGGING\n #define ARLog(...) NSLog(@\"%s(%p) %@\", __PRETTY_FUNCTION__, self, [NSString stringWithFormat:__VA_ARGS__])\n#else\n #define ARLog(...)\n#endif\n\n#import \n\n#import \"MagicalRecordHelpers.h\"\n#import \"MRCoreDataAction.h\"\n\n#import \"NSManagedObject+MagicalRecord.h\"\n#import \"NSManagedObjectContext+MagicalRecord.h\"\n#import \"NSPersistentStoreCoordinator+MagicalRecord.h\"\n#import \"NSManagedObjectModel+MagicalRecord.h\"\n#import \"NSPersistentStore+MagicalRecord.h\"\n#import \"NSManagedObject+MagicalDataImport.h\"","new_contents":"\/\/\n\/\/ MagicalRecord for Core Data.\n\/\/\n\/\/ Created by Saul Mora.\n\/\/ Copyright 2011 Magical Panda Software. All rights reserved.\n\/\/\n\n\/\/ enable to use caches for the fetchedResultsControllers (iOS only)\n#if TARGET_OS_IPHONE\n#define STORE_USE_CACHE\n#endif\n\n#define kCreateNewCoordinatorOnBackgroundOperations 0\n\n#ifdef MR_LOGGING\n#define ENABLE_ACTIVE_RECORD_LOGGING\n#endif\n\n#ifdef DEBUG\n#define ENABLE_ACTIVE_RECORD_LOGGING\n#endif\n\n#ifdef MR_NO_LOGGING\n#undef ENABLE_ACTIVE_RECORD_LOGGING\n#endif\n\n#ifdef ENABLE_ACTIVE_RECORD_LOGGING\n #define ARLog(...) NSLog(@\"%s(%p) %@\", __PRETTY_FUNCTION__, self, [NSString stringWithFormat:__VA_ARGS__])\n#else\n #define ARLog(...)\n#endif\n\n#import \n\n#import \"MagicalRecordHelpers.h\"\n#import \"MRCoreDataAction.h\"\n\n#import \"NSManagedObject+MagicalRecord.h\"\n#import \"NSManagedObjectContext+MagicalRecord.h\"\n#import \"NSPersistentStoreCoordinator+MagicalRecord.h\"\n#import \"NSManagedObjectModel+MagicalRecord.h\"\n#import \"NSPersistentStore+MagicalRecord.h\"\n#import \"NSManagedObject+MagicalDataImport.h\"","subject":"Define MR_NO_LOGGING to force no logging.","message":"Define MR_NO_LOGGING to force no logging.\n","lang":"C","license":"mit","repos":"zwaldowski\/AZCoreRecord,zwaldowski\/AZCoreRecord"} {"commit":"9e70fda79924a066f39a9b366c88d1b69561184c","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 SYSCOIN_POLICY_RBF_H\n#define SYSCOIN_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);\n\/\/ SYSCOIN\nRBFTransactionState IsRBFOptIn(const CTransaction& tx, const CTxMemPool& pool, CTxMemPool::setEntries &setAncestors) EXCLUSIVE_LOCKS_REQUIRED(pool.cs);\nRBFTransactionState IsRBFOptInEmptyMempool(const CTransaction& tx);\n\n#endif \/\/ SYSCOIN_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 SYSCOIN_POLICY_RBF_H\n#define SYSCOIN_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);\n\/\/ SYSCOIN\nRBFTransactionState IsRBFOptIn(const CTransaction& tx, const CTxMemPool& pool, CTxMemPool::setEntries &setAncestors) EXCLUSIVE_LOCKS_REQUIRED(pool.cs);\nRBFTransactionState IsRBFOptInEmptyMempool(const CTransaction& tx);\n\n#endif \/\/ SYSCOIN_POLICY_RBF_H\n","subject":"Add doxygen comment to IsRBFOptIn","message":"doc: Add doxygen comment to IsRBFOptIn\n\nFormer-commit-id: 6c99ae13e834f996721944c8571101bd2c16ba81","lang":"C","license":"mit","repos":"syscoin\/syscoin,syscoin\/syscoin,syscoin\/syscoin,syscoin\/syscoin,syscoin\/syscoin,syscoin\/syscoin,syscoin\/syscoin,syscoin\/syscoin"} {"commit":"adfbba6447aa458e95ffad652ba815e080e3b2d3","old_file":"src\/util\/timeit.h","new_file":"src\/util\/timeit.h","old_contents":"\/*\nCopyright (c) 2013 Microsoft Corporation. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\n\nAuthor: Leonardo de Moura\n*\/\n#pragma once\n#include \n#include \n\nnamespace lean {\n\/**\n \\brief Low tech timer for used for testing.\n*\/\nclass timeit {\n std::ostream & m_out;\n std::string m_msg;\n clock_t m_start;\npublic:\n timeit(std::ostream & out, char const * msg):m_out(out), m_msg(msg) {\n m_start = clock();\n }\n ~timeit() {\n clock_t end = clock();\n std::cout << m_msg << \" \" << ((static_cast(end) - static_cast(m_start)) \/ CLOCKS_PER_SEC) << \" secs\\n\";\n }\n};\n}\n","new_contents":"\/*\nCopyright (c) 2013 Microsoft Corporation. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\n\nAuthor: Leonardo de Moura\n*\/\n#pragma once\n#include \n#include \n\nnamespace lean {\n\/**\n \\brief Low tech timer for used for testing.\n*\/\nclass timeit {\n std::ostream & m_out;\n std::string m_msg;\n clock_t m_start;\npublic:\n timeit(std::ostream & out, char const * msg):m_out(out), m_msg(msg) {\n m_start = clock();\n }\n ~timeit() {\n clock_t end = clock();\n m_out << m_msg << \" \" << ((static_cast(end) - static_cast(m_start)) \/ CLOCKS_PER_SEC) << \" secs\\n\";\n }\n};\n}\n","subject":"Fix problem reported by Soonho","message":"Fix problem reported by Soonho\n\nSigned-off-by: Leonardo de Moura <7610bae85f2b530654cc716772f1fe653373e892@microsoft.com>\n","lang":"C","license":"apache-2.0","repos":"digama0\/lean,soonhokong\/lean,dselsam\/lean,fgdorais\/lean,leanprover-community\/lean,leodemoura\/lean,soonhokong\/travis_test,eigengrau\/lean,soonhokong\/lean-osx,leanprover\/lean,leodemoura\/lean,dselsam\/lean,leodemoura\/lean,leanprover\/lean,levnach\/lean,codyroux\/lean0.1,avigad\/lean,johoelzl\/lean,leodemoura\/lean,rlewis1988\/lean,UlrikBuchholtz\/lean,soonhokong\/lean-windows,fgdorais\/lean,eigengrau\/lean,htzh\/lean,fgdorais\/lean,UlrikBuchholtz\/lean,avigad\/lean,javra\/lean,johoelzl\/lean,leanprover\/lean,javra\/lean,htzh\/lean,soonhokong\/lean,levnach\/lean,levnach\/lean,leanprover-community\/lean,eigengrau\/lean,leanprover-community\/lean,htzh\/lean,digama0\/lean,fgdorais\/lean,johoelzl\/lean,c-cube\/lean,rlewis1988\/lean,digama0\/lean,eigengrau\/lean,sp3ctum\/lean,Kha\/lean,codyroux\/lean0.1,soonhokong\/lean-osx,UlrikBuchholtz\/lean,dselsam\/lean,Kha\/lean,codyroux\/lean0.1,soonhokong\/travis_test,htzh\/lean,sp3ctum\/lean,fpvandoorn\/lean,eigengrau\/lean,soonhokong\/lean-osx,javra\/lean,c-cube\/lean,fpvandoorn\/lean,fpvandoorn\/lean,leanprover\/lean,leanprover\/lean,Kha\/lean,Kha\/lean,fgdorais\/lean,fpvandoorn\/lean2,soonhokong\/lean-windows,javra\/lean,soonhokong\/travis_test,Kha\/lean,c-cube\/lean,c-cube\/lean,c-cube\/lean,digama0\/lean,rlewis1988\/lean,soonhokong\/lean,avigad\/lean,UlrikBuchholtz\/lean,leanprover-community\/lean,fpvandoorn\/lean,soonhokong\/lean-windows,levnach\/lean,Kha\/lean,fpvandoorn\/lean2,dselsam\/lean,fpvandoorn\/lean,htzh\/lean,leodemoura\/lean,soonhokong\/lean-osx,UlrikBuchholtz\/lean,avigad\/lean,dselsam\/lean,soonhokong\/travis_test,avigad\/lean,sp3ctum\/lean,johoelzl\/lean,leanprover-community\/lean,digama0\/lean,fpvandoorn\/lean2,soonhokong\/lean,digama0\/lean,levnach\/lean,leanprover\/lean,soonhokong\/lean,leodemoura\/lean,fpvandoorn\/lean2,johoelzl\/lean,rlewis1988\/lean,fpvandoorn\/lean2,soonhokong\/lean-osx,soonhokong\/lean-windows,dselsam\/lean,javra\/lean,avigad\/lean,johoelzl\/lean,fpvandoorn\/lean,sp3ctum\/lean,rlewis1988\/lean,rlewis1988\/lean,leanprover-community\/lean,soonhokong\/lean-windows,fgdorais\/lean,codyroux\/lean0.1,sp3ctum\/lean"} {"commit":"540dfec095e25e78d44cc27d84bb2a32932e5714","old_file":"libraries\/datastruct\/hash\/create.c","new_file":"libraries\/datastruct\/hash\/create.c","old_contents":"\/* --------------------------------------------------------------------------\n * Name: create.c\n * Purpose: Associative array implemented as a hash\n * ----------------------------------------------------------------------- *\/\n\n#include \n#include \n\n#include \"base\/memento\/memento.h\"\n\n#include \"base\/errors.h\"\n#include \"utils\/utils.h\"\n#include \"utils\/primes.h\"\n\n#include \"datastruct\/hash.h\"\n\n#include \"impl.h\"\n\n\/* ----------------------------------------------------------------------- *\/\n\nerror hash_create(const void *default_value,\n int nbins,\n hash_fn *fn,\n hash_compare *compare,\n hash_destroy_key *destroy_key,\n hash_destroy_value *destroy_value,\n hash_t **ph)\n{\n hash_t *h;\n hash__node_t **bins;\n\n h = malloc(sizeof(*h));\n if (h == NULL)\n return error_OOM;\n\n nbins = prime_nearest(nbins);\n\n bins = calloc(nbins, sizeof(*h->bins));\n if (bins == NULL)\n return error_OOM;\n\n h->bins = bins;\n h->nbins = nbins;\n\n h->count = 0;\n\n h->default_value = default_value;\n\n h->hash_fn = fn;\n h->compare = compare;\n h->destroy_key = destroy_key;\n h->destroy_value = destroy_value;\n\n *ph = h;\n\n return error_OK;\n}\n","new_contents":"\/* --------------------------------------------------------------------------\n * Name: create.c\n * Purpose: Associative array implemented as a hash\n * ----------------------------------------------------------------------- *\/\n\n#include \n#include \n\n#include \"base\/memento\/memento.h\"\n\n#include \"base\/errors.h\"\n#include \"utils\/utils.h\"\n#include \"utils\/primes.h\"\n\n#include \"datastruct\/hash.h\"\n\n#include \"impl.h\"\n\n\/* ----------------------------------------------------------------------- *\/\n\nerror hash_create(const void *default_value,\n int nbins,\n hash_fn *fn,\n hash_compare *compare,\n hash_destroy_key *destroy_key,\n hash_destroy_value *destroy_value,\n hash_t **ph)\n{\n hash_t *h;\n hash__node_t **bins;\n\n h = malloc(sizeof(*h));\n if (h == NULL)\n return error_OOM;\n\n nbins = prime_nearest(nbins);\n\n bins = calloc(nbins, sizeof(*h->bins));\n if (bins == NULL)\n {\n free(h);\n return error_OOM;\n }\n\n h->bins = bins;\n h->nbins = nbins;\n\n h->count = 0;\n\n h->default_value = default_value;\n\n h->hash_fn = fn;\n h->compare = compare;\n h->destroy_key = destroy_key;\n h->destroy_value = destroy_value;\n\n *ph = h;\n\n return error_OK;\n}\n","subject":"Fix leak in calloc failure path.","message":"Fix leak in calloc failure path.\n","lang":"C","license":"bsd-2-clause","repos":"dpt\/Containers,dpt\/Containers"} {"commit":"17d7dfc032eaa26e78855a5f91762f3663faf9f1","old_file":"libpqxx\/include\/pqxx\/util.h","new_file":"libpqxx\/include\/pqxx\/util.h","old_contents":"\/*-------------------------------------------------------------------------\n *\n * FILE\n *\tpqxx\/util.h\n *\n * DESCRIPTION\n * Various utility definitions for libpqxx\n *\n * Copyright (c) 2001-2004, Jeroen T. Vermeulen \n *\n * See COPYING for copyright license. If you did not receive a file called\n * COPYING with this source code, please notify the distributor of this mistake,\n * or contact the author.\n *\n *-------------------------------------------------------------------------\n *\/\n#ifndef PQXX_UTIL_H\n#define PQXX_UTIL_H\n\n#if defined(PQXX_HAVE_CPP_WARNING)\n#warning \"Deprecated libpqxx header included. Use headers without '.h'\"\n#elif defined(PQXX_HAVE_CPP_PRAGMA_MESSAGE)\n#pragma message(\"Deprecated libpqxx header included. Use headers without '.h'\")\n#endif\n\n#define PQXX_DEPRECATED_HEADERS\n#include \"pqxx\/util\"\n\n#endif\n\n","new_contents":"\/*-------------------------------------------------------------------------\n *\n * FILE\n *\tpqxx\/util.h\n *\n * DESCRIPTION\n * Various utility definitions for libpqxx\n *\n * Copyright (c) 2001-2004, Jeroen T. Vermeulen \n *\n * See COPYING for copyright license. If you did not receive a file called\n * COPYING with this source code, please notify the distributor of this mistake,\n * or contact the author.\n *\n *-------------------------------------------------------------------------\n *\/\n#ifndef PQXX_UTIL_H\n#define PQXX_UTIL_H\n\n#if !defined(PQXXYES_I_KNOW_DEPRECATED_HEADER)\n#define PQXXYES_I_KNOW_DEPRECATED_HEADER\n#if defined(PQXX_HAVE_CPP_WARNING)\n#warning \"Deprecated libpqxx header included. Use headers without '.h'\"\n#elif defined(PQXX_HAVE_CPP_PRAGMA_MESSAGE)\n#pragma message(\"Deprecated libpqxx header included. Use headers without '.h'\")\n#endif\n#endif\n\n#define PQXX_DEPRECATED_HEADERS\n#include \"pqxx\/util\"\n\n#endif\n\n","subject":"Allow suppression of \"deprecated header\" warning","message":"Allow suppression of \"deprecated header\" warning\n\n\ngit-svn-id: 27238e37a5eae711b76ec703b45445819ea9563e@600 c3353b84-d008-0410-9ed9-b55c4f7fa7e8\n","lang":"C","license":"bsd-3-clause","repos":"svn2github\/libpqxx,svn2github\/libpqxx,svn2github\/libpqxx"} {"commit":"c98e8774e1173d05e733fb02032d06e61813a6a3","old_file":"licharger.c","new_file":"licharger.c","old_contents":"#include \n\nint main (void) {\n\n\t\/\/Set pin 3 as output to source current?\n\tPORTB = 1<\n#include \n#include \n\nint main ( void ) {\n\n\t\/\/Disable interrupts and reset WDT timer\n\tcli();\n\twdt_reset();\n\n\t\/\/Reset MCU status register\n\tMCUSR &= ~(1<\n#include \n#include \n#include \n#if !defined(__NEWLIB__) || __NEWLIB__ < 2 || \\\n __NEWLIB__ == 2 && __NEWLIB_MINOR__ < 5\n#include \n#endif\n#include \n#include \n\n#endif \/\/ _NEWLIB_VERSION\n\n#endif\n","new_contents":"\/\/===----------------------------------------------------------------------===\/\/\n\/\/\n\/\/ The LLVM Compiler Infrastructure\n\/\/\n\/\/ This file is dual licensed under the MIT and the University of Illinois Open\n\/\/ Source Licenses. See LICENSE.TXT for details.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\n#ifndef _LIBCPP_SUPPORT_NEWLIB_XLOCALE_H\n#define _LIBCPP_SUPPORT_NEWLIB_XLOCALE_H\n\n#if defined(_NEWLIB_VERSION)\n\n#include \n#include \n#include \n#include \n#if !defined(__NEWLIB__) || __NEWLIB__ < 2 || \\\n __NEWLIB__ == 2 && __NEWLIB_MINOR__ < 5\n#include \n#include \n#include \n#endif\n\n#endif \/\/ _NEWLIB_VERSION\n\n#endif\n","subject":"Exclude posix_l\/strtonum fallback inclusion for newlib > 2.4","message":"[libc++] Exclude posix_l\/strtonum fallback inclusion for newlib > 2.4\n\nSummary:\n[libc++] Exclude posix_l\/strtonum fallback inclusion for newlib > 2.4\n\nr338122 changed the linkage of some methods which revealed an existing ODR violation, e.g.:\nprojects\/libcxx\/include\/support\/xlocale\/__posix_l_fallback.h:83:38: error: 'internal_linkage' attribute does not appear on the first declaration of 'iswcntrl_l'\ninline _LIBCPP_INLINE_VISIBILITY int iswcntrl_l(wint_t c, locale_t) {\n ^\nlib\/include\/wctype.h:55:12: note: previous definition is here\nextern int iswcntrl_l (wint_t, locale_t);\n\nThese were added to newlib in 2.4 [1] [2], so move them to the already existing include guard.\n\n[1] https:\/\/sourceware.org\/git\/gitweb.cgi?p=newlib-cygwin.git;a=commit;h=238455adfab4f8070ac65400aac22bb8a9e502fc\n[2] https:\/\/sourceware.org\/git\/gitweb.cgi?p=newlib-cygwin.git;a=commit;h=8493c1631643fada62384768408852bc0fa6ff44\n\nReviewers: ldionne, rsmith, EricWF\n\nSubscribers: christof, cfe-commits\n\nDifferential Revision: https:\/\/reviews.llvm.org\/D49927\n\ngit-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@338157 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"llvm-mirror\/libcxx,llvm-mirror\/libcxx,llvm-mirror\/libcxx,llvm-mirror\/libcxx,llvm-mirror\/libcxx"} {"commit":"23de80419998d6bc4420efb1019941c1cb7bcbd5","old_file":"src\/lib-fts\/fts-common.h","new_file":"src\/lib-fts\/fts-common.h","old_contents":"#ifndef FTS_COMMON_H\n#define FTS_COMMON_H\n\n#define IS_NONASCII_APOSTROPHE(c) \\\n\t((c) == 0x2019 || (c) == 0xFF07)\n#define IS_APOSTROPHE(c) \\\n\t((c) == 0x0027 || IS_NONASCII_APOSTROPHE(c))\n\n#endif\n","new_contents":"#ifndef FTS_COMMON_H\n#define FTS_COMMON_H\n\n\/* Some might consider 0x02BB an apostrophe also. *\/\n#define IS_NONASCII_APOSTROPHE(c) \\\n\t((c) == 0x2019 || (c) == 0xFF07)\n#define IS_APOSTROPHE(c) \\\n\t((c) == 0x0027 || IS_NONASCII_APOSTROPHE(c))\n\n#endif\n","subject":"Add note about possible additional apostrophe.","message":"lib-fts: Add note about possible additional apostrophe.\n","lang":"C","license":"mit","repos":"dscho\/dovecot,dscho\/dovecot,dscho\/dovecot,dscho\/dovecot,dscho\/dovecot"} {"commit":"7e020bc3c13dadd82deed0f53740fb0bd743dfca","old_file":"c\/lists.c","new_file":"c\/lists.c","old_contents":"","new_contents":"#include \n#include \n\ntypedef struct list {\n int data;\n struct list * next;\n} list;\n\nlist * make_elem(void) {\n list * pe;\n\n if(NULL == (pe = malloc(sizeof(list)))) {\n fprintf(stderr, \"Erreur d'allocation memoire\\n\");\n exit(EXIT_FAILURE);\n }\n\n return pe;\n}\n\nint main() {\n\n list *pl, *pe1, *pe2, *pe3, *pe4;\n\n pe1 = make_elem();\n pe2 = make_elem();\n pe3 = make_elem();\n pe4 = make_elem();\n\n pe1->data = 2;\n pe2->data = 3;\n pe3->data = 5;\n pe4->data = 7;\n\n pl = pe1;\n\n pe1->next = pe2;\n pe2->next = pe3;\n pe3->next = pe4;\n pe4->next = NULL;\n\n list * c;\n\n for(c=pl ; c ; c=c->next) {\n printf(\"%d\\n\", c->data);\n }\n\n free(pe1);\n free(pe2);\n free(pe3);\n free(pe4);\n\n return 0;\n}\n","subject":"Add a snippet (lang C).","message":"Add a snippet (lang C).\n","lang":"C","license":"mit","repos":"jeremiedecock\/snippets,jeremiedecock\/snippets,jeremiedecock\/snippets,jeremiedecock\/snippets,jeremiedecock\/snippets,jeremiedecock\/snippets,jeremiedecock\/snippets,jeremiedecock\/snippets,jeremiedecock\/snippets,jeremiedecock\/snippets,jeremiedecock\/snippets,jeremiedecock\/snippets,jeremiedecock\/snippets"} {"commit":"7f27e1272b40cf4ec090947fd3b4b620ca7de80d","old_file":"examples\/complex_struct.c","new_file":"examples\/complex_struct.c","old_contents":"#include \n\ntypedef struct {\n int *x;\n int **y;\n} inner ;\n\ntypedef struct {\n int *g;\n inner in[3];\n} outer;\n\n\nint *ep;\n\nint main(int argc, char *argv[])\n{\n outer o;\n int z = 5;\n\n printf(\"%d\\n\" , z);\n\n ep = &z;\n\n o.in[2].x = ep;\n\n *o.in[2].x = 3;\n printf(\"%d\\n\" , z);\n\n outer oo[4];\n\n oo[2].in[2].y = &ep;\n return 0;\n}\n","new_contents":"#include \n\ntypedef struct {\n int *x;\n int **y;\n} inner ;\n\ntypedef struct {\n int *g;\n inner in[3];\n} outer;\n\n\nint *ep;\n\nint main(int argc, char *argv[])\n{\n outer o;\n int z = 5;\n int zzz;\n\n printf(\"%d\\n\" , z);\n\n ep = &z;\n\n o.in[2].x = ep;\n\n *o.in[2].x = 3;\n printf(\"%d\\n\" , z);\n\n inner i;\n i.x = &zzz;\n o.in[1] = i;\n\n int **ptr = &o.in[0].x;\n int *p = *ptr;\n \/* outer oo[4]; *\/\n\n \/* oo[2].in[2].y = &ep; *\/\n return 0;\n}\n","subject":"Add bitwise copy of struct to complex struct example.","message":"Add bitwise copy of struct to complex struct example.\n","lang":"C","license":"mit","repos":"plast-lab\/cclyzer,plast-lab\/llvm-datalog"} {"commit":"a32f3b03d56c02033bdebf8a5f7207738f1492ab","old_file":"TDTChocolate\/FoundationAdditions\/NSDictionary+TDTNullNormalization.h","new_file":"TDTChocolate\/FoundationAdditions\/NSDictionary+TDTNullNormalization.h","old_contents":"#import \n\n\/\/ Motivation:\n\/\/ JSON responses frequently contain 'null'. For our purposes, a JSON object with\n\/\/ a null property is equivalent to the same object with that property missing.\n\/\/ However, JSON parsers treat the former as `NSNull` and the latter as nil;\n\/\/ This leads to problems for the subsequent code because NSNull is a bona-fide\n\/\/ object while messages to nil are discarded. Furthermore, Objective C truthy\n\/\/ checks work for NSNull and fail for nil.\n\n@interface NSDictionary (TDTNullNormalization)\n\n\/**\n @return NSDictionary created by removing all enteries whose @p value is an\n instance of @p NSNull.\n\n @see NSArray+TDTNullNormalization\n *\/\n- (NSDictionary *)tdt_dictionaryByRemovingNulls;\n\n@end\n","new_contents":"#import \n\n@interface NSDictionary (TDTNullNormalization)\n\n\/**\n @return NSDictionary created by removing all enteries whose @p value is an\n instance of @p NSNull.\n\n @see NSArray+TDTNullNormalization\n *\/\n- (NSDictionary *)tdt_dictionaryByRemovingNulls;\n\n@end\n","subject":"Remove now irrelevant motivation section","message":"Remove now irrelevant motivation section\n","lang":"C","license":"bsd-3-clause","repos":"talk-to\/Chocolate,talk-to\/Chocolate"} {"commit":"787598f0259728ae44dcdd5ceb414a49d2a887ff","old_file":"bibdesk\/BDSKSearchGroupViewController.h","new_file":"bibdesk\/BDSKSearchGroupViewController.h","old_contents":"","new_contents":"\/\/\n\/\/ BDSKSearchGroupViewController.h\n\/\/ Bibdesk\n\/\/\n\/\/ Created by Christiaan Hofman on 1\/2\/07.\n\/*\n This software is Copyright (c) 2007\n Christiaan Hofman. 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\n are met:\n \n - Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n \n - Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in\n the documentation and\/or other materials provided with the\n distribution.\n \n - Neither the name of Christiaan Hofman nor the names of any\n contributors may be used to endorse or promote products derived\n from this software without specific prior written permission.\n \n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n *\/\n\n#import \n\n@class BDSKCollapsibleView, BDSKEdgeView, BDSKSearchGroup;\n\n@interface BDSKSearchGroupViewController : NSWindowController {\n IBOutlet BDSKCollapsibleView *view;\n IBOutlet BDSKEdgeView *edgeView;\n IBOutlet NSSearchField *searchField;\n IBOutlet NSButton *searchButton;\n \n BDSKSearchGroup *group;\n}\n\n- (NSView *)view;\n\n- (BDSKSearchGroup *)group;\n- (void)setGroup:(BDSKSearchGroup *)newGroup;\n\n- (IBAction)changeSearchTerm:(id)sender;\n- (IBAction)nextSearch:(id)sender;\n\n@end\n","subject":"Add new header file. (or: xcode is stupid)","message":"Add new header file. (or: xcode is stupid)","lang":"C","license":"bsd-3-clause","repos":"ycaihua\/skim-app,WoLpH\/skim,WoLpH\/skim,WoLpH\/skim,ycaihua\/skim-app,ycaihua\/skim-app,WoLpH\/skim,ycaihua\/skim-app,WoLpH\/skim,ycaihua\/skim-app"} {"commit":"8055b9fdd7a11b15b6b64105dcd74daca6352ee3","old_file":"include\/nekit\/utils\/async_io_interface.h","new_file":"include\/nekit\/utils\/async_io_interface.h","old_contents":"","new_contents":"\/\/ MIT License\n\n\/\/ Copyright (c) 2017 Zhuhao Wang\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 THE\n\/\/ SOFTWARE.\n\n#pragma once\n\n#include \n\nnamespace nekit {\nnamespace utils {\n\nclass AsyncIoInterface {\n public:\n AsyncIoInterface(boost::asio::io_service& io) : io_{&io} {};\n ~AsyncIoInterface() = default;\n\n boost::asio::io_service& io() const { return *io_; }\n\n private:\n boost::asio::io_service* io_;\n};\n\n} \/\/ namespace utils\n} \/\/ namespace nekit\n","subject":"Make things based on Asio `service_io` inherite from same base","message":"FEAT: Make things based on Asio `service_io` inherite from same base\n","lang":"C","license":"mit","repos":"zhuhaow\/libnekit,zhuhaow\/libnekit,zhuhaow\/libnekit,zhuhaow\/libnekit"} {"commit":"376f541859f5ea5914bea3c084f4be3c119ab4aa","old_file":"linkedLists\/isIdentical.c","new_file":"linkedLists\/isIdentical.c","old_contents":"","new_contents":"#include \"listHelper.h\"\n\nint isIdentical(struct linkList *head1, struct linkList *head2)\n{\n\t\/* list1 and list2 has to have same data and length\n\t * even if length or data mismatch , we return \n\t * list as non identical.\n\t *\/\n\twhile(head1 != NULL && head2 != NULL) {\n\t\tif(head1->data != head2->data)\n\t\t\treturn 0;\n\t\thead1 = head1->next;\n\t\thead2 = head2->next;\n\t}\n\tif(head1 == NULL && head2 == NULL)\n\t\treturn 1;\n\telse\n\t\treturn 0;\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 InsertLinkedList(&list1, 98, 8);\n\n InsertLinkedList(&list2, 21, 1); \/*Insert node in Beginning *\/\n InsertLinkedList(&list2, 31, 2); \/*Insert at position 2 *\/\n InsertLinkedList(&list2, 41, 3);\n InsertLinkedList(&list2, 51, 4);\n InsertLinkedList(&list2, 61, 5);\n InsertLinkedList(&list2, 72, 6);\n InsertLinkedList(&list2, 87, 7);\n InsertLinkedList(&list2, 98, 8);\n\n InsertLinkedList(&list2, 2014, 9);\n\n\tif(isIdentical(list1, list2))\n\t\tprintf(\"isIdentical\\n\");\n\telse\n\t\tprintf(\"Not Identical\\n\");\n}\n","subject":"Check if two linked lists are identical or same.","message":"Check if two linked lists are identical or same.","lang":"C","license":"mit","repos":"vidya-ranganathan\/algorithms"} {"commit":"7c47ca226bed8793611b3262d462585de31a9309","old_file":"Classes\/YSProcessTimer\/YSProcessTimer.h","new_file":"Classes\/YSProcessTimer\/YSProcessTimer.h","old_contents":"\/\/\n\/\/ YSProcessTimer.h\n\/\/ YSProcessTimeExample\n\/\/\n\/\/ Created by Yu Sugawara on 2014\/02\/21.\n\/\/ Copyright (c) 2014年 Yu Sugawara. All rights reserved.\n\/\/\n\n#import \n\n#ifndef DEBUG\n #define kYSProcessTimerInvalid 1\n#endif\n\n@interface YSProcessTimer : NSObject\n\n+ (instancetype)sharedInstance;\n- (instancetype)initWithProcessName:(NSString*)processName;\n@property (nonatomic) NSString *processName;\n\n- (void)startWithComment:(NSString*)comment;\n- (NSTimeInterval)currentRapTime;\n- (void)addRapWithComment:(NSString *)comment;\n- (void)stopWithComment:(NSString*)stopComment;\n\n@end\n","new_contents":"\/\/\n\/\/ YSProcessTimer.h\n\/\/ YSProcessTimeExample\n\/\/\n\/\/ Created by Yu Sugawara on 2014\/02\/21.\n\/\/ Copyright (c) 2014年 Yu Sugawara. All rights reserved.\n\/\/\n\n#import \n\n#ifndef DEBUG\n #define kYSProcessTimerInvalid 1\n#endif\n\n@interface YSProcessTimer : NSObject\n\n+ (instancetype)sharedInstance;\n- (instancetype)initWithProcessName:(NSString*)processName;\n@property (nonatomic, copy) NSString *processName;\n\n- (void)startWithComment:(NSString*)comment;\n- (NSTimeInterval)currentRapTime;\n- (void)addRapWithComment:(NSString *)comment;\n- (void)stopWithComment:(NSString*)stopComment;\n\n@end\n","subject":"Change NSString property to copy","message":"Change NSString property to copy\n","lang":"C","license":"mit","repos":"yusuga\/YSProcessTimer"} {"commit":"3a9c2313f04ef18261d5c8936a5724150e614eeb","old_file":"EScript\/Utils\/SyncTools.h","new_file":"EScript\/Utils\/SyncTools.h","old_contents":"\/\/ SyncTools.h\n\/\/ This file is part of the EScript programming language (https:\/\/github.com\/EScript)\n\/\/\n\/\/ Copyright (C) 2015 Claudius Jhn \n\/\/\n\/\/ Licensed under the MIT License. See LICENSE file for details.\n\/\/ ---------------------------------------------------------------------------------\n#ifndef SYNCTOOLS_H_INCLUDED\n#define SYNCTOOLS_H_INCLUDED\n\n#include \n#include \n#include \n\nnamespace EScript{\nnamespace SyncTools{\nnamespace _Internals{\n\/\/! \\see http:\/\/en.cppreference.com\/w\/cpp\/atomic\/atomic_flag\nclass SpinLock{\n\tprivate:\n\t\tstd::atomic_flag f;\n\tpublic:\n\t\tSpinLock():f(ATOMIC_FLAG_INIT){}\n\n\t\tvoid lock()\t\t{\twhile(!f.test_and_set(std::memory_order_acquire));\t}\n\t\tbool try_lock()\t{\treturn !f.test_and_set(std::memory_order_acquire);\t}\n\t\tvoid unlock()\t{\tf.clear(std::memory_order_release);\t\t}\n};\n}\n\ntypedef std::atomic atomicInt;\ntypedef std::atomic atomicBool;\n\/\/typedef std::mutex FastLock;\ntypedef _Internals::SpinLock FastLock;\ntypedef std::unique_lock FastLockHolder;\n\n}\n}\n\n#endif \/\/ SYNCTOOLS_H_INCLUDED\n","new_contents":"\/\/ SyncTools.h\n\/\/ This file is part of the EScript programming language (https:\/\/github.com\/EScript)\n\/\/\n\/\/ Copyright (C) 2015 Claudius Jhn \n\/\/\n\/\/ Licensed under the MIT License. See LICENSE file for details.\n\/\/ ---------------------------------------------------------------------------------\n#ifndef SYNCTOOLS_H_INCLUDED\n#define SYNCTOOLS_H_INCLUDED\n\n#include \n#include \n#include \n\nnamespace EScript{\nnamespace SyncTools{\nnamespace _Internals{\n\/\/! \\see http:\/\/en.cppreference.com\/w\/cpp\/atomic\/atomic_flag\nclass SpinLock{\n\t\tstd::atomic_flag f;\n\tpublic:\n\t\tSpinLock():f(ATOMIC_FLAG_INIT){}\n\n\t\tvoid lock()\t\t{\twhile(f.test_and_set(std::memory_order_acquire));\t}\n\t\tbool try_lock()\t{\treturn !f.test_and_set(std::memory_order_acquire);\t}\n\t\tvoid unlock()\t{\tf.clear(std::memory_order_release);\t\t}\n};\n}\n\ntypedef std::atomic atomicInt;\ntypedef std::atomic atomicBool;\n\/\/typedef std::mutex FastLock;\ntypedef _Internals::SpinLock FastLock;\n\/\/typedef std::mutex FastLock;\ntypedef std::unique_lock FastLockHolder;\n\ninline SyncTools::FastLockHolder tryLock(FastLock& lock){\n\treturn std::move(FastLockHolder(lock, std::try_to_lock) );\n}\n\n}\n}\n\n#endif \/\/ SYNCTOOLS_H_INCLUDED\n","subject":"Fix SpinLock and add tryLock.","message":"Fix SpinLock and add tryLock.\n","lang":"C","license":"mit","repos":"eikel\/EScript,eikel\/EScript"} {"commit":"906010c818b625f61331fde4d7384e553629912a","old_file":"src\/utils.h","new_file":"src\/utils.h","old_contents":"","new_contents":"#ifndef TAILPRODUCE_UTILS_H\n#define TAILPRODUCE_UTILS_H\n\n#include \n#include \n#include \n#include \n#include \n\n#include \n#include \n#include \n\n#include \"helpers.h\"\n#include \"stream.h\"\n#include \"dbm_iterator.h\"\n#include \"config_values.h\"\n#include \"stream_persist.h\"\n\nnamespace TailProduce {\n \/\/ This block of code is used to create a stream and a producer pair from the stream persist objects in the db\n template\n auto \n RestorePersistedStreams(TailProduce::StreamsRegistry& registry,\n STORAGE& storage, \n TailProduce::ConfigValues const& cv) -> \n std::unordered_map< std::string, std::shared_ptr>>\n {\n typedef TailProduce::Stream STREAM;\n typedef std::shared_ptr STREAM_PTR;\n\n std::unordered_map results;\n auto knownStreamsKey = cv.GetStreamsRegister(\"\"); \/\/ passing an empty string will allow creating an iterator of all known streams\n auto iterator = storage.GetIterator(knownStreamsKey);\n while(!iterator.Done()) {\n std::string streamValues = antibytes(iterator.Value());\n TailProduce::StreamPersist persisted;\n std::istringstream is(streamValues); \/\/ make the string a stream\n cereal::JSONInputArchive ar(is); \/\/ make a JSON Input Archive from the string\n ar(persisted); \/\/ populate Persisted\n auto stream = STREAM_PTR(new STREAM(registry,\n cv,\n persisted.stream_name,\n persisted.entry_type_name,\n persisted.order_key_type_name));\n \n \n results.insert(std::make_pair(stream->GetId(), stream));\n iterator.Next();\n }\n return results;\n }\n\n template\n void\n PersistStream(STORAGE storage, \n TailProduce::StreamPersist &sp,\n TailProduce::ConfigValues& cv)\n {\n \/\/ The reverse of this is to store the known streams in the DB.\n std::ostringstream os;\n (cereal::JSONOutputArchive(os))(sp);\n std::string objStr = os.str();\n TailProduce::Storage::KEY_TYPE skey = cv.GetStreamsRegister(sp.stream_name);\n storage.AdminSet(skey, TailProduce::bytes(objStr));\n }\n\n};\n#endif\n","subject":"Add missing file. Remove debuggig statements","message":"Add missing file. Remove debuggig statements\n","lang":"C","license":"mit","repos":"Staance\/tailproduce,Staance\/tailproduce"} {"commit":"3f27d22593d0d595bc4e9695d122fa16051d8990","old_file":"src\/SpiralLinesGLWidget.h","new_file":"src\/SpiralLinesGLWidget.h","old_contents":"#ifndef SPIRALLINESGLWIDGET_H\n#define SPIRALLINESGLWIDGET_H\n\n#include \"GLWidget.h\"\n#include \n\nclass SpiralLinesGLWidget : public GLWidget\n{\npublic:\n\tSpiralLinesGLWidget(QWidget* parent = 0);\nprotected:\n\tvoid initializeGL();\n\tvoid render();\n};\n\nSpiralLinesGLWidget::SpiralLinesGLWidget(QWidget* parent) : GLWidget(parent) {}\n\nvoid SpiralLinesGLWidget::initializeGL()\n{\n\tGLWidget::initializeGL();\n\tsetXRotation(-45);\n\tsetYRotation(15);\n\tsetZRotation(45);\n}\n\nvoid SpiralLinesGLWidget::render()\n{\n\t\/\/ How many revolutions of the spiral are rendered.\n\tstatic const float REVOLUTIONS = 10;\n\tstatic const float PI = 3.14159;\n\n\tglBegin(GL_LINE_STRIP);\n\tfor (float angle = 0; angle < 2*PI*REVOLUTIONS; angle += PI \/ (2 * REVOLUTIONS * 10)) {\n\t\tglVertex2f(\n\t\t\tangle * (float) sin(angle),\n\t\t\tangle * (float) cos(angle));\n\t}\n\tglEnd();\n}\n\n#endif \/\/ SPIRALLINESGLWIDGET_H\n","new_contents":"#ifndef SPIRALLINESGLWIDGET_H\n#define SPIRALLINESGLWIDGET_H\n\n#include \"GLWidget.h\"\n#include \n\nclass SpiralLinesGLWidget : public GLWidget\n{\npublic:\n\tSpiralLinesGLWidget(QWidget* parent = 0);\nprotected:\n\tvoid initializeGL();\n\tvoid render();\n};\n\nSpiralLinesGLWidget::SpiralLinesGLWidget(QWidget* parent) : GLWidget(parent) {}\n\nvoid SpiralLinesGLWidget::initializeGL()\n{\n\tGLWidget::initializeGL();\n\tsetXRotation(-45);\n\tsetYRotation(15);\n\tsetZRotation(45);\n}\n\nvoid SpiralLinesGLWidget::render()\n{\n\t\/\/ How many revolutions of the spiral are rendered.\n\tstatic const float REVOLUTIONS = 10;\n\tstatic const float PI = 3.14159;\n\n\t\/\/ How many vertices per revolution.\n\tstatic const float SLICES = 10;\n\n\tglBegin(GL_LINE_STRIP);\n\tfor (int i = 0; i <= REVOLUTIONS * SLICES; i++) {\n\t\tconst float angle = i * 2 * PI \/ SLICES;\n\t\tglVertex2f(\n\t\t\tangle * (float) sin(angle),\n\t\t\tangle * (float) cos(angle));\n\t}\n\tglEnd();\n}\n\n#endif \/\/ SPIRALLINESGLWIDGET_H\n","subject":"Use integers instead of floats in for-loop","message":"Use integers instead of floats in for-loop\n\nWhile this adds a few more lines to the program, I think it makes it\nmore explicit where the constants come from. It also faciliates\neasier modification of the example.\n\nIt's also safer to use an integer instead of a float as a conditional\nin a for-loop. This is because floating point values are imprecise.\nAs a result, you may end up with one more or one fewer iteration than\nyou anticipated. Integers don't have this disadvantage.\n","lang":"C","license":"mit","repos":"dafrito\/alpha,dafrito\/alpha,dafrito\/alpha"} {"commit":"2abad81843d091274a4615e6b04f5ba465254029","old_file":"learner\/src\/learner-service.h","new_file":"learner\/src\/learner-service.h","old_contents":"#pragma once\n\n#include \n#include \n\n#include \n#include \n\nstruct kndLearnerService;\n\nstruct kndLearnerOptions\n{\n char *config_file;\n struct addrinfo *address;\n};\n\nstruct kndLearnerService\n{\n struct kmqKnode *knode;\n struct kmqEndPoint *entry_point;\n\n struct kndShard *shard;\n\n char name[KND_NAME_SIZE];\n size_t name_size;\n\n char path[KND_NAME_SIZE];\n size_t path_size;\n\n char schema_path[KND_NAME_SIZE];\n size_t schema_path_size;\n\n char delivery_addr[KND_NAME_SIZE];\n size_t delivery_addr_size;\n\n size_t max_users;\n\n const struct kndLearnerOptions *opts;\n\n \/********************* public interface *********************************\/\n int (*start)(struct kndLearnerService *self);\n void (*del)(struct kndLearnerService *self);\n};\n\nint kndLearnerService_new(struct kndLearnerService **service, const struct kndLearnerOptions *opts);\n\n","new_contents":"#pragma once\n\n#include \n#include \n\n#include \n#include \n\nstruct kndLearnerService;\n\nstruct kndLearnerOptions\n{\n char *config_file;\n struct addrinfo *address;\n};\n\nstruct kndLearnerService\n{\n struct kmqKnode *knode;\n struct kmqEndPoint *entry_point;\n\n struct kndShard *shard;\n\n char name[KND_NAME_SIZE];\n size_t name_size;\n\n\/\/ char path[KND_NAME_SIZE];\n\/\/ size_t path_size;\n\/\/\n\/\/ char schema_path[KND_NAME_SIZE];\n\/\/ size_t schema_path_size;\n\/\/\n\/\/ char delivery_addr[KND_NAME_SIZE];\n\/\/ size_t delivery_addr_size;\n\n\/\/ size_t max_users;\n\n const struct kndLearnerOptions *opts;\n\n \/********************* public interface *********************************\/\n int (*start)(struct kndLearnerService *self);\n void (*del)(struct kndLearnerService *self);\n};\n\nint kndLearnerService_new(struct kndLearnerService **service, const struct kndLearnerOptions *opts);\n\n","subject":"Comment out unused fields in kndLearnerService","message":"Comment out unused fields in kndLearnerService\n","lang":"C","license":"agpl-3.0","repos":"globbie\/knowdy,globbie\/knowdy,globbie\/knowdy"} {"commit":"fc3cad92574b76d27c629b704f23c70ef46a2428","old_file":"core\/httpd-platform.h","new_file":"core\/httpd-platform.h","old_contents":"#ifndef HTTPD_PLATFORM_H\n#define HTTPD_PLATFORM_H\n\nvoid httpdPlatSendData(ConnTypePtr conn, char *buff, int len);\nvoid httpdPlatDisconnect(ConnTypePtr conn);\nvoid httpdPlatInit(int port, int maxConnCt);\n\n#endif","new_contents":"#ifndef HTTPD_PLATFORM_H\n#define HTTPD_PLATFORM_H\n\nint httpdPlatSendData(ConnTypePtr conn, char *buff, int len);\nvoid httpdPlatDisconnect(ConnTypePtr conn);\nvoid httpdPlatInit(int port, int maxConnCt);\n\n#endif","subject":"Change to send routine: return status","message":"Change to send routine: return status\n","lang":"C","license":"mpl-2.0","repos":"chmorgan\/libesphttpd"} {"commit":"04e7f7e951bcefbc37e8e127cf268c67f9a20e17","old_file":"setcapslock.c","new_file":"setcapslock.c","old_contents":"#include \n#include \n\n#include \n#include \n\n#define CAPSLOCK 2\n\n\nvoid setcaps(int on)\n{\n Display* display = XOpenDisplay(NULL);\n XkbLockModifiers(display, XkbUseCoreKbd, CAPSLOCK, on ? CAPSLOCK : 0);\n XCloseDisplay(display);\n}\n\n\nvoid usage(const char* program_name)\n{\n printf(\"Usage: %s [on|off]\\n\\n\", program_name);\n printf(\"Use '%s' to disable your caps key\");\n}\n\n\nint main(int argc, char** argv)\n{\n if (argc > 2) {\n usage(argv[0]);\n return 1;\n }\n\n int on = 1;\n if (argc == 2) {\n if (strcmp(argv[1], \"on\") == 0) {\n on = 1;\n }\n else if (strcmp(argv[1], \"off\") == 0) {\n on = 0;\n }\n else {\n usage(argv[0]);\n return 1;\n }\n }\n\n setcaps(on);\n return 0;\n}\n","new_contents":"#include \n\n#include \n\n#include \n#include \n\n#define CAPSLOCK 2\n\n\nvoid setcaps(int on)\n{\n Display* display = XOpenDisplay(NULL);\n XkbLockModifiers(display, XkbUseCoreKbd, CAPSLOCK, on ? CAPSLOCK : 0);\n XCloseDisplay(display);\n}\n\n\nvoid usage(const char* program_name)\n{\n printf(\"Usage: %s [on|off]\\n\\n\", program_name);\n printf(\"Use '%s' to disable your caps key\");\n}\n\n\nint main(int argc, char** argv)\n{\n if (argc > 2) {\n usage(argv[0]);\n return 1;\n }\n\n int on = 1;\n if (argc == 2) {\n if (strcasecmp(argv[1], \"on\") == 0) {\n on = 1;\n }\n else if (strcasecmp(argv[1], \"off\") == 0) {\n on = 0;\n }\n else {\n usage(argv[0]);\n return 1;\n }\n }\n\n setcaps(on);\n return 0;\n}\n","subject":"Make command line argument case insensitive","message":"Make command line argument case insensitive\n","lang":"C","license":"unlicense","repos":"coldfix\/setcapslock"} {"commit":"9dec0d1f2e9a86a174b6d51b552d198a24f9ae11","old_file":"SBUF.c","new_file":"SBUF.c","old_contents":"","new_contents":"#! \/usr\/bin\/tcc -run\n\n\/*** construct scroll ready screen buffer ***\/\n \n\/\/ y = 0,1,2 ... (text buffer first line, second line, ...)\n\/\/ x = 0,1,2 ... (screen buffer first character in line y, ...) \n\n#include \n#include \n#include \n\n size_t linecap;\n FILE *fp;\n\ntypedef struct slot\n{\n ssize_t size;\n char *row;\n int count;\n} slot;\n\n slot line;\n slot* text;\n\nvoid screenBuffer(int star, int stop)\n{\n printf(\"%s\",\"entering screenBuffer\\n\");\n slot* display = (slot *) malloc( (25)*sizeof(slot));\n for (int i=0; i<25; i++) {display[i].size = 1;\n display[i].row = \"~\";\n display[i].count = 0;}\n int i; int dy = -1; \n for (int i = star; i<(stop+1); i++)\n {dy++ ; display[dy] = text[i];}\n\n dy = -1 ;\n for (int i = star; i<(stop+1); i++)\n {\n dy++ ;\n int stringLength = display[dy].size;\n char* pointerToString = display[dy].row;\n printf(\"%.*s\", stringLength, pointerToString);\n }\n\n}\n\nint readAline(void)\n{\n line.row = NULL; linecap = 0;\n line.size = getline (&line.row, &linecap, fp); \n\n if (line.size == -1) {return line.size;}\n\n if((line.count == 0)) \n { text = (slot *) malloc( (1+line.count)*sizeof(slot));}\n else { text = (slot *)realloc(text,(1+line.count)*sizeof(slot));}\n\n char * ptr = malloc(line.size*sizeof(char));\n text[line.count].row = ptr ;\n text[line.count].size = line.size;\n memcpy(ptr,line.row,line.size); \n\n line.count++; \n return 0;\n}\n\nint main(int arc, char** argv)\n{\n printf(\"\\n%s executing\\n\\n\",argv[0]);\n\n char *filename = \"NDEX.dat\"; fp = fopen(filename,\"r\");\n int lastline;\n\n line.count = 0;\n while((readAline() != -1)) {lastline = line.count;}\n\n for (int y = 0; y < lastline; y++)\n {\n for (int x = 0; x < text[y].size; x++)\n {char ch = text[y].row[x]; printf(\"%c\",ch);}\n }\n\n printf(\"%s\",\"here i should be\\n\");\n screenBuffer(1,3);\n \n}\n\n\n\n","subject":"Add routine screenBuffer to enable scrolling view and to enable syntax highlighting.","message":"Add routine screenBuffer to enable scrolling view and to enable\nsyntax highlighting.\n","lang":"C","license":"bsd-2-clause","repos":"eingaeph\/pip.imbue.hood,eingaeph\/pip.imbue.hood"} {"commit":"1bc76e90771befd2be6accd71b32ae2547e98f6a","old_file":"include\/user.c","new_file":"include\/user.c","old_contents":"#include \"user.h\"\n#include \n#include \n#include \n\nuser_t* NewUser(int fd,char *addr,unsigned short port,char *name){\n user_t *user = malloc(sizeof(user_t));\n if(user == NULL){\n goto ret;\n }\n\n if(fd < 0 || addr == NULL || name == NULL){\n free(user);\n user = NULL;\n goto ret;\n }\n\n user->fd = fd;\n strcpy(user->addr,addr);\n user->port = port;\n strcpy(user->name,name);\n user->next = NULL;\n\nret:\n return user;\n}\n\nvoid AddUserToList(user_t *root,user_t *newUser){\n user_t *cur = root;\n while(cur->next != NULL){\n cur = cur->next;\n }\n cur->next = newUser;\n}\n\nint CheckUserValid(user_t *root,char *name){\n user_t *cur=root;\n int len = strlen(name);\n if(len < 2 || len > 12){\n return 0;\n }\n if(strcmp(name,\"anonymous\") == 0){\n return 0;\n }\n while(cur != NULL){\n if(strcmp(cur->name,name) == 0){\n return 0;\n }\n cur = cur->next;\n }\n return 1;\n}\n","new_contents":"#include \"user.h\"\n#include \n#include \n#include \n\nuser_t* NewUser(int fd,char *addr,unsigned short port,char *name){\n user_t *user = malloc(sizeof(user_t));\n if(user == NULL){\n goto ret;\n }\n\n if(fd < 0 || addr == NULL || name == NULL){\n free(user);\n user = NULL;\n goto ret;\n }\n\n user->fd = fd;\n strcpy(user->addr,addr);\n user->port = port;\n strcpy(user->name,name);\n user->next = NULL;\n\nret:\n return user;\n}\n\nvoid AddUserToList(user_t *root,user_t *newUser){\n user_t *cur = root;\n if(root == NULL){\n return;\n }\n while(cur->next != NULL){\n cur = cur->next;\n }\n cur->next = newUser;\n}\n\nint CheckUserValid(user_t *root,char *name){\n user_t *cur=root;\n int len = strlen(name);\n if(len < 2 || len > 12){\n return 0;\n }\n if(strcmp(name,\"anonymous\") == 0){\n return 0;\n }\n while(cur != NULL){\n if(strcmp(cur->name,name) == 0){\n return 0;\n }\n cur = cur->next;\n }\n return 1;\n}\n","subject":"Fix AddUserToList bug when root is NULL","message":"Fix AddUserToList bug when root is NULL\n","lang":"C","license":"apache-2.0","repos":"Billy4195\/Simple_Chatroom"} {"commit":"a51cfb2c9e02993446f822a491bb9d2910883a19","old_file":"kmail\/kmversion.h","new_file":"kmail\/kmversion.h","old_contents":"\/\/ KMail Version Information\n\/\/\n#ifndef kmversion_h\n#define kmversion_h\n\n#define KMAIL_VERSION \"1.9.8\"\n\n#endif \/*kmversion_h*\/\n","new_contents":"\/\/ KMail Version Information\n\/\/\n#ifndef kmversion_h\n#define kmversion_h\n\n#define KMAIL_VERSION \"1.9.9\"\n\n#endif \/*kmversion_h*\/\n","subject":"Increase version number for KDE 3.5.9.","message":"Increase version number for KDE 3.5.9.\n\nsvn path=\/branches\/KDE\/3.5\/kdepim\/; revision=771811\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":"f9d5482c1d20f6724ea6ddb4cd2395db0bdc670a","old_file":"src\/agent\/downloader.h","new_file":"src\/agent\/downloader.h","old_contents":"\/\/ Copyright (c) 2015, Galaxy 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\/\/ Author: yuanyi03@baidu.com\n\n#ifndef _DOWNLOAD_H\n#define _DOWNLOAD_H\n\n#include \n\nnamespace galaxy {\n\nclass Downloader {\npublic:\n virtual int Fetch(const std::string& uri, const std::string& dir) = 0;\n virtual void Stop() = 0;\n};\n\n} \/\/ ending namespace galaxy\n\n#endif \/\/_DOWNLOAD_H\n\n\/* vim: set ts=4 sw=4 sts=4 tw=100 *\/\n","new_contents":"\/\/ Copyright (c) 2015, Galaxy 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\/\/ Author: yuanyi03@baidu.com\n\n#ifndef _DOWNLOAD_H\n#define _DOWNLOAD_H\n\n#include \n\nnamespace galaxy {\n\nclass Downloader {\npublic:\n virtual ~Downloader() {}\n virtual int Fetch(const std::string& uri, const std::string& dir) = 0;\n virtual void Stop() = 0;\n};\n\n} \/\/ ending namespace galaxy\n\n#endif \/\/_DOWNLOAD_H\n\n\/* vim: set ts=4 sw=4 sts=4 tw=100 *\/\n","subject":"Add virtual deconstructor for abstract class Downloader","message":"Add virtual deconstructor for abstract class Downloader\n","lang":"C","license":"bsd-3-clause","repos":"fxsjy\/galaxy,fxsjy\/galaxy,baidu\/galaxy,szxw\/galaxy,WangCrystal\/galaxy,sdgdsffdsfff\/galaxy,May2016\/galaxy,ontologyzsy\/galaxy,imotai\/galaxy,sdgdsffdsfff\/galaxy,Kai-Zhang\/galaxy,May2016\/galaxy,ontologyzsy\/galaxy,fxsjy\/galaxy,imotai\/galaxy,WangCrystal\/galaxy,imotai\/galaxy,linyvxiang\/galaxy,baidu\/galaxy,fxsjy\/galaxy,imotai\/galaxy,bluebore\/galaxy,Kai-Zhang\/galaxy,ontologyzsy\/galaxy,baidu\/galaxy,taotaowill\/galaxy,ontologyzsy\/galaxy,fxsjy\/galaxy,bluebore\/galaxy,taotaowill\/galaxy,linyvxiang\/galaxy,sdgdsffdsfff\/galaxy,May2016\/galaxy,WangCrystal\/galaxy,szxw\/galaxy,imotai\/galaxy,linyvxiang\/galaxy,linyvxiang\/galaxy,szxw\/galaxy,bluebore\/galaxy,bluebore\/galaxy,fxsjy\/galaxy,linyvxiang\/galaxy,szxw\/galaxy,Kai-Zhang\/galaxy,fxsjy\/galaxy,bluebore\/galaxy,sdgdsffdsfff\/galaxy,taotaowill\/galaxy,ontologyzsy\/galaxy,szxw\/galaxy,sdgdsffdsfff\/galaxy,linyvxiang\/galaxy"} {"commit":"f3826a11eb29d54ecc30ed509699aaec7c20a969","old_file":"luv.c","new_file":"luv.c","old_contents":"#include \n\n#include \"luv.h\"\n#include \"luv_functions.c\"\n\nint luv_newindex(lua_State* L) {\n lua_getfenv(L, 1);\n lua_pushvalue(L, 2);\n lua_pushvalue(L, 3);\n lua_rawset(L, -3);\n lua_pop(L, 1);\n return 0;\n}\n\nLUALIB_API int luaopen_luv (lua_State *L) {\n\n luv_main_thread = L;\n\n luaL_newmetatable(L, \"luv_handle\");\n lua_pushcfunction(L, luv_newindex);\n lua_setfield(L, -2, \"__newindex\");\n lua_pop(L, 1);\n\n \/\/ Module exports\n lua_newtable (L);\n luv_setfuncs(L, luv_functions);\n return 1;\n}\n","new_contents":"#include \n\n#include \"luv.h\"\n#include \"luv_functions.c\"\n\nstatic int luv_newindex(lua_State* L) {\n lua_getfenv(L, 1);\n lua_pushvalue(L, 2);\n lua_pushvalue(L, 3);\n lua_rawset(L, -3);\n lua_pop(L, 1);\n return 0;\n}\n\nstatic int luv_index(lua_State* L) {\n#ifdef LUV_STACK_CHECK\n int top = lua_gettop(L);\n#endif\n lua_getfenv(L, 1);\n lua_pushvalue(L, 2);\n lua_rawget(L, -2);\n lua_remove(L, -2);\n#ifdef LUV_STACK_CHECK\n assert(lua_gettop(L) == top + 1);\n#endif\n return 1;\n}\n\nLUALIB_API int luaopen_luv (lua_State *L) {\n\n luv_main_thread = L;\n\n luaL_newmetatable(L, \"luv_handle\");\n lua_pushcfunction(L, luv_newindex);\n lua_setfield(L, -2, \"__newindex\");\n lua_pushcfunction(L, luv_index);\n lua_setfield(L, -2, \"__index\");\n lua_pop(L, 1);\n\n \/\/ Module exports\n lua_newtable (L);\n luv_setfuncs(L, luv_functions);\n return 1;\n}\n","subject":"Allow reading back callbacks set to handles","message":"Allow reading back callbacks set to handles\n","lang":"C","license":"apache-2.0","repos":"leecrest\/luv,DBarney\/luv,RomeroMalaquias\/luv,brimworks\/luv,mkschreder\/luv,daurnimator\/luv,xpol\/luv,zhaozg\/luv,daurnimator\/luv,daurnimator\/luv,luvit\/luv,RomeroMalaquias\/luv,kidaa\/luv,brimworks\/luv,mkschreder\/luv,NanXiao\/luv,NanXiao\/luv,xpol\/luv,joerg-krause\/luv,joerg-krause\/luv,DBarney\/luv,zhaozg\/luv,luvit\/luv,kidaa\/luv,leecrest\/luv,RomeroMalaquias\/luv"} {"commit":"f487686bba37f0a7a22f0f87d915b05115094948","old_file":"libc\/stdio\/gets.c","new_file":"libc\/stdio\/gets.c","old_contents":"\/* Copyright (C) 2004 Manuel Novoa III \n *\n * GNU Library General Public License (LGPL) version 2 or later.\n *\n * Dedicated to Toni. See uClibc\/DEDICATION.mjn3 for details.\n *\/\n\n#include \"_stdio.h\"\n\nlink_warning(gets, \"the 'gets' function is dangerous and should not be used.\")\n\n\/* UNSAFE FUNCTION -- do not bother optimizing *\/\n\nlibc_hidden_proto(getchar_unlocked)\nlibc_hidden_proto(__fgetc_unlocked)\nlibc_hidden_proto(__stdin)\n\nchar *gets(char *s)\n{\n\tregister char *p = s;\n\tint c;\n\t__STDIO_AUTO_THREADLOCK_VAR;\n\n\t__STDIO_AUTO_THREADLOCK(stdin);\n\n\t\/* Note: don't worry about performance here... this shouldn't be used!\n\t * Therefore, force actual function call. *\/\n\twhile (((c = getchar_unlocked()) != EOF) && ((*p = c) != '\\n')) {\n\t\t++p;\n\t}\n\tif ((c == EOF) || (s == p)) {\n\t\ts = NULL;\n\t} else {\n\t\t*p = 0;\n\t}\n\n\t__STDIO_AUTO_THREADUNLOCK(stdin);\n\n\treturn s;\n}\n","new_contents":"\/* Copyright (C) 2004 Manuel Novoa III \n *\n * GNU Library General Public License (LGPL) version 2 or later.\n *\n * Dedicated to Toni. See uClibc\/DEDICATION.mjn3 for details.\n *\/\n\n#include \"_stdio.h\"\n\nlink_warning(gets, \"the 'gets' function is dangerous and should not be used.\")\n\n\/* UNSAFE FUNCTION -- do not bother optimizing *\/\n\nlibc_hidden_proto(getchar_unlocked)\nlibc_hidden_proto(__fgetc_unlocked)\n#ifdef __STDIO_GETC_MACRO\nlibc_hidden_proto(__stdin)\n#else\n#define __stdin stdin\n#endif\n\nchar *gets(char *s)\n{\n\tregister char *p = s;\n\tint c;\n\t__STDIO_AUTO_THREADLOCK_VAR;\n\n\t__STDIO_AUTO_THREADLOCK(stdin);\n\n\t\/* Note: don't worry about performance here... this shouldn't be used!\n\t * Therefore, force actual function call. *\/\n\twhile (((c = getchar_unlocked()) != EOF) && ((*p = c) != '\\n')) {\n\t\t++p;\n\t}\n\tif ((c == EOF) || (s == p)) {\n\t\ts = NULL;\n\t} else {\n\t\t*p = 0;\n\t}\n\n\t__STDIO_AUTO_THREADUNLOCK(stdin);\n\n\treturn s;\n}\n","subject":"Build if GETC_MACRO use is disabled","message":"Build if GETC_MACRO use is disabled\n","lang":"C","license":"lgpl-2.1","repos":"joel-porquet\/tsar-uclibc,joel-porquet\/tsar-uclibc,joel-porquet\/tsar-uclibc,joel-porquet\/tsar-uclibc"} {"commit":"da7beedbb4b1f5cfa2b546d6fe41bb158845afe0","old_file":"src\/pch.h","new_file":"src\/pch.h","old_contents":"#pragma once\r\n\r\n#define NOMINMAX\r\n#include \r\n\r\n#include \r\n\r\n#include \r\n#include \r\n#include \r\n#include \r\n#include \r\n\r\n#include \r\n#include \r\n#include \r\n#include \r\n#include \r\n#include \r\n#include \r\n#include \r\n\r\n#include \"Utils.h\"\r\n\r\nnamespace SaneAudioRenderer\r\n{\r\n _COM_SMARTPTR_TYPEDEF(IMMDeviceEnumerator, __uuidof(IMMDeviceEnumerator));\r\n _COM_SMARTPTR_TYPEDEF(IMMDevice, __uuidof(IMMDevice));\r\n\r\n _COM_SMARTPTR_TYPEDEF(IAudioClient, __uuidof(IAudioClient));\r\n _COM_SMARTPTR_TYPEDEF(IAudioRenderClient, __uuidof(IAudioRenderClient));\r\n _COM_SMARTPTR_TYPEDEF(IAudioClock, __uuidof(IAudioClock));\r\n\r\n _COM_SMARTPTR_TYPEDEF(IMediaSample, __uuidof(IMediaSample));\r\n}\r\n","new_contents":"#pragma once\r\n\r\n#ifndef NOMINMAX\r\n# define NOMINMAX\r\n#endif\r\n\r\n#include \r\n\r\n#include \r\n\r\n#include \r\n#include \r\n#include \r\n#include \r\n#include \r\n\r\n#include \r\n#include \r\n#include \r\n#include \r\n#include \r\n#include \r\n#include \r\n#include \r\n\r\n#include \"Utils.h\"\r\n\r\nnamespace SaneAudioRenderer\r\n{\r\n _COM_SMARTPTR_TYPEDEF(IMMDeviceEnumerator, __uuidof(IMMDeviceEnumerator));\r\n _COM_SMARTPTR_TYPEDEF(IMMDevice, __uuidof(IMMDevice));\r\n\r\n _COM_SMARTPTR_TYPEDEF(IAudioClient, __uuidof(IAudioClient));\r\n _COM_SMARTPTR_TYPEDEF(IAudioRenderClient, __uuidof(IAudioRenderClient));\r\n _COM_SMARTPTR_TYPEDEF(IAudioClock, __uuidof(IAudioClock));\r\n\r\n _COM_SMARTPTR_TYPEDEF(IMediaSample, __uuidof(IMediaSample));\r\n}\r\n","subject":"Make sure NOMINMAX is not redefined","message":"Make sure NOMINMAX is not redefined\n","lang":"C","license":"lgpl-2.1","repos":"kasper93\/sanear,kasper93\/sanear,alexmarsev\/sanear,kasper93\/sanear,alexmarsev\/sanear"} {"commit":"1ec14d4fd52cb05096b46a940d490433635508b4","old_file":"PWGLF\/NUCLEX\/Hypernuclei\/Vertexer3Body\/AliVertexerHyperTriton3Body.h","new_file":"PWGLF\/NUCLEX\/Hypernuclei\/Vertexer3Body\/AliVertexerHyperTriton3Body.h","old_contents":"#ifndef ALIVERTEXERHYPERTRITON3BODY_H\n#define ALIVERTEXERHYPERTRITON3BODY_H\n\n#include \n\nclass AliESDVertex;\nclass AliESDtrack;\nclass AliExternalTrackParam;\n\nclass AliVertexerHyperTriton3Body\n{\npublic:\n AliVertexerHyperTriton3Body();\n\n AliESDVertex* GetCurrentVertex() { return mCurrentVertex; }\n\n bool FindDecayVertex(AliESDtrack *track1, AliESDtrack *track2, AliESDtrack* track3, float b);\n static void Find2ProngClosestPoint(AliExternalTrackParam *track1, AliExternalTrackParam *track2, float b, float* pos);\n\n void SetMaxDinstanceInit(float maxD) { mMaxDistanceInitialGuesses = maxD; }\n void SetToleranceGuessCompatibility(int tol) { mToleranceGuessCompatibility = tol; }\n\n AliVertexerTracks mVertexerTracks;\n\nprivate:\n AliESDVertex* mCurrentVertex;\n\n float mPosition[3];\n float mCovariance[6];\n\n float mMaxDistanceInitialGuesses;\n int mToleranceGuessCompatibility;\n};\n\n#endif","new_contents":"#ifndef ALIVERTEXERHYPERTRITON3BODY_H\n#define ALIVERTEXERHYPERTRITON3BODY_H\n\nclass TClonesArray; \/\/\/ This will be removed as soon as alisw\/AliRoot#898 is merged and a new tag is available\n\n#include \n\nclass AliESDVertex;\nclass AliESDtrack;\nclass AliExternalTrackParam;\n\nclass AliVertexerHyperTriton3Body\n{\npublic:\n AliVertexerHyperTriton3Body();\n\n AliESDVertex* GetCurrentVertex() { return mCurrentVertex; }\n\n bool FindDecayVertex(AliESDtrack *track1, AliESDtrack *track2, AliESDtrack* track3, float b);\n static void Find2ProngClosestPoint(AliExternalTrackParam *track1, AliExternalTrackParam *track2, float b, float* pos);\n\n void SetMaxDinstanceInit(float maxD) { mMaxDistanceInitialGuesses = maxD; }\n void SetToleranceGuessCompatibility(int tol) { mToleranceGuessCompatibility = tol; }\n\n AliVertexerTracks mVertexerTracks;\n\nprivate:\n AliESDVertex* mCurrentVertex;\n\n float mPosition[3];\n float mCovariance[6];\n\n float mMaxDistanceInitialGuesses;\n int mToleranceGuessCompatibility;\n};\n\n#endif","subject":"Fix for missing forward declaration in AliROOT","message":"Fix for missing forward declaration in AliROOT\n","lang":"C","license":"bsd-3-clause","repos":"AMechler\/AliPhysics,victor-gonzalez\/AliPhysics,kreisl\/AliPhysics,hcab14\/AliPhysics,pbuehler\/AliPhysics,carstooon\/AliPhysics,fcolamar\/AliPhysics,AMechler\/AliPhysics,dmuhlhei\/AliPhysics,dmuhlhei\/AliPhysics,preghenella\/AliPhysics,hcab14\/AliPhysics,akubera\/AliPhysics,sebaleh\/AliPhysics,hcab14\/AliPhysics,fbellini\/AliPhysics,dmuhlhei\/AliPhysics,fbellini\/AliPhysics,SHornung1\/AliPhysics,victor-gonzalez\/AliPhysics,pbuehler\/AliPhysics,hzanoli\/AliPhysics,amatyja\/AliPhysics,nschmidtALICE\/AliPhysics,fbellini\/AliPhysics,preghenella\/AliPhysics,amaringarcia\/AliPhysics,adriansev\/AliPhysics,hzanoli\/AliPhysics,alisw\/AliPhysics,amaringarcia\/AliPhysics,amatyja\/AliPhysics,pchrista\/AliPhysics,sebaleh\/AliPhysics,preghenella\/AliPhysics,carstooon\/AliPhysics,alisw\/AliPhysics,pchrista\/AliPhysics,nschmidtALICE\/AliPhysics,btrzecia\/AliPhysics,rbailhac\/AliPhysics,amatyja\/AliPhysics,pchrista\/AliPhysics,mpuccio\/AliPhysics,btrzecia\/AliPhysics,amatyja\/AliPhysics,akubera\/AliPhysics,mpuccio\/AliPhysics,mvala\/AliPhysics,nschmidtALICE\/AliPhysics,lcunquei\/AliPhysics,SHornung1\/AliPhysics,mpuccio\/AliPhysics,carstooon\/AliPhysics,alisw\/AliPhysics,hcab14\/AliPhysics,alisw\/AliPhysics,rihanphys\/AliPhysics,hcab14\/AliPhysics,preghenella\/AliPhysics,SHornung1\/AliPhysics,alisw\/AliPhysics,sebaleh\/AliPhysics,mvala\/AliPhysics,kreisl\/AliPhysics,rbailhac\/AliPhysics,rihanphys\/AliPhysics,rbailhac\/AliPhysics,rbailhac\/AliPhysics,akubera\/AliPhysics,kreisl\/AliPhysics,mpuccio\/AliPhysics,rihanphys\/AliPhysics,kreisl\/AliPhysics,pbuehler\/AliPhysics,btrzecia\/AliPhysics,nschmidtALICE\/AliPhysics,sebaleh\/AliPhysics,akubera\/AliPhysics,kreisl\/AliPhysics,AMechler\/AliPhysics,lcunquei\/AliPhysics,adriansev\/AliPhysics,kreisl\/AliPhysics,hcab14\/AliPhysics,carstooon\/AliPhysics,victor-gonzalez\/AliPhysics,amaringarcia\/AliPhysics,SHornung1\/AliPhysics,btrzecia\/AliPhysics,sebaleh\/AliPhysics,akubera\/AliPhysics,carstooon\/AliPhysics,kreisl\/AliPhysics,victor-gonzalez\/AliPhysics,rihanphys\/AliPhysics,AMechler\/AliPhysics,victor-gonzalez\/AliPhysics,AMechler\/AliPhysics,amaringarcia\/AliPhysics,preghenella\/AliPhysics,pchrista\/AliPhysics,rbailhac\/AliPhysics,amaringarcia\/AliPhysics,pchrista\/AliPhysics,lcunquei\/AliPhysics,fcolamar\/AliPhysics,lcunquei\/AliPhysics,fcolamar\/AliPhysics,victor-gonzalez\/AliPhysics,btrzecia\/AliPhysics,mpuccio\/AliPhysics,amatyja\/AliPhysics,pchrista\/AliPhysics,btrzecia\/AliPhysics,SHornung1\/AliPhysics,lcunquei\/AliPhysics,pbuehler\/AliPhysics,amatyja\/AliPhysics,adriansev\/AliPhysics,preghenella\/AliPhysics,hcab14\/AliPhysics,adriansev\/AliPhysics,fcolamar\/AliPhysics,fbellini\/AliPhysics,hzanoli\/AliPhysics,adriansev\/AliPhysics,hzanoli\/AliPhysics,AMechler\/AliPhysics,fbellini\/AliPhysics,akubera\/AliPhysics,fcolamar\/AliPhysics,hzanoli\/AliPhysics,rbailhac\/AliPhysics,preghenella\/AliPhysics,adriansev\/AliPhysics,AMechler\/AliPhysics,rihanphys\/AliPhysics,hzanoli\/AliPhysics,dmuhlhei\/AliPhysics,mvala\/AliPhysics,carstooon\/AliPhysics,amaringarcia\/AliPhysics,SHornung1\/AliPhysics,lcunquei\/AliPhysics,rihanphys\/AliPhysics,victor-gonzalez\/AliPhysics,pbuehler\/AliPhysics,fcolamar\/AliPhysics,carstooon\/AliPhysics,fcolamar\/AliPhysics,dmuhlhei\/AliPhysics,nschmidtALICE\/AliPhysics,mvala\/AliPhysics,pbuehler\/AliPhysics,adriansev\/AliPhysics,btrzecia\/AliPhysics,mpuccio\/AliPhysics,rihanphys\/AliPhysics,lcunquei\/AliPhysics,mvala\/AliPhysics,nschmidtALICE\/AliPhysics,fbellini\/AliPhysics,mvala\/AliPhysics,fbellini\/AliPhysics,alisw\/AliPhysics,amaringarcia\/AliPhysics,pbuehler\/AliPhysics,hzanoli\/AliPhysics,alisw\/AliPhysics,amatyja\/AliPhysics,akubera\/AliPhysics,sebaleh\/AliPhysics,dmuhlhei\/AliPhysics,dmuhlhei\/AliPhysics,sebaleh\/AliPhysics,mpuccio\/AliPhysics,SHornung1\/AliPhysics,rbailhac\/AliPhysics,nschmidtALICE\/AliPhysics,mvala\/AliPhysics,pchrista\/AliPhysics"} {"commit":"2f40aad6b9d0ed57c32b48854d4b7a4358924738","old_file":"sys\/i386\/linux\/linux_genassym.c","new_file":"sys\/i386\/linux\/linux_genassym.c","old_contents":"\/* $FreeBSD$ *\/\n\n#include \n#include \n\n#include \n\nASSYM(LINUX_SIGF_HANDLER, offsetof(struct l_sigframe, sf_handler));\nASSYM(LINUX_SIGF_SC, offsetof(struct l_sigframe, sf_sc));\nASSYM(LINUX_SC_GS, offsetof(struct l_sigcontext, sc_gs));\nASSYM(LINUX_SC_EFLAGS, offsetof(struct l_sigcontext, sc_eflags));\nASSYM(LINUX_RT_SIGF_HANDLER, offsetof(struct l_rt_sigframe, sf_handler));\nASSYM(LINUX_RT_SIGF_UC, offsetof(struct l_rt_sigframe, sf_sc));\n","new_contents":"\/* $FreeBSD$ *\/\n\n#include \n#include \n#include \n\n#include \n\nASSYM(LINUX_SIGF_HANDLER, offsetof(struct l_sigframe, sf_handler));\nASSYM(LINUX_SIGF_SC, offsetof(struct l_sigframe, sf_sc));\nASSYM(LINUX_SC_GS, offsetof(struct l_sigcontext, sc_gs));\nASSYM(LINUX_SC_EFLAGS, offsetof(struct l_sigcontext, sc_eflags));\nASSYM(LINUX_RT_SIGF_HANDLER, offsetof(struct l_rt_sigframe, sf_handler));\nASSYM(LINUX_RT_SIGF_UC, offsetof(struct l_rt_sigframe, sf_sc));\n","subject":"Include for the definition of offsetof() instead of depending on the definition being misplaced in . The definition probably belongs in .","message":"Include for the definition of offsetof() instead of depending\non the definition being misplaced in . The definition probably\nbelongs in .\n","lang":"C","license":"bsd-3-clause","repos":"jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase"} {"commit":"175264adfef6d6e050c2ca7caf5e8afddefeceb7","old_file":"src\/Core\/RAlloc.h","new_file":"src\/Core\/RAlloc.h","old_contents":"#ifndef RUTIL2_RALLOC_H\n#define RUTIL2_RALLOC_H\n\n#include \"OO.h\"\n\nvoid* RAlloc(int Size);\nvoid* RAlign(int Align, int Size);\n\n#if defined(__MINGW32__)\n#define _aligned_malloc __mingw_aligned_malloc\n#define _aligned_free __mingw_aligned_free\n#define memalign(align, size) _aligned_malloc(size, align)\n#endif \/\/For MinGW\n\n#define RFree(...) __RFree(__VA_ARGS__, (void*)(- 1))\nvoid __RFree(void* a, ...);\n\n#define RAlloc_Class(Name, Size) \\\n (Name*)__RAlloc_Class(Size, sizeof(Name), _C(__ClassID_, Name, __));\nvoid* __RAlloc_Class(int Size, int UnitSize, int ClassID);\n\n#if 0\n#include \"_RAlloc.h\"\n#endif\n#ifdef __RUtil2_Install\n#define _RTAddress \"RUtil2\/Core\/_RAlloc.h\"\n#else\n#define _RTAddress \"Core\/_RAlloc.h\"\n#endif\n\n#define _ClassName\n#define _Attr 1\n\n#include \"Include_T1AllTypes.h\"\n\n#endif \/\/RUTIL2_RALLOC_H\n\n","new_contents":"#ifndef RUTIL2_RALLOC_H\n#define RUTIL2_RALLOC_H\n\n#include \n\n#include \"OO.h\"\n\nvoid* RAlloc(int Size);\nvoid* RAlign(int Align, int Size);\n\n#if defined(__MINGW32__)\n#define _aligned_malloc __mingw_aligned_malloc\n#define _aligned_free __mingw_aligned_free\n#define memalign(align, size) _aligned_malloc(size, align)\n#endif \/\/For MinGW\n\n#define RClean(Ptr) memset(Ptr, 0, sizeof(Ptr));\n\n#define RFree(...) __RFree(__VA_ARGS__, (void*)(- 1))\nvoid __RFree(void* a, ...);\n\n#define RAlloc_Class(Name, Size) \\\n (Name*)__RAlloc_Class(Size, sizeof(Name), _C(__ClassID_, Name, __));\nvoid* __RAlloc_Class(int Size, int UnitSize, int ClassID);\n\n#if 0\n#include \"_RAlloc.h\"\n#endif\n#ifdef __RUtil2_Install\n#define _RTAddress \"RUtil2\/Core\/_RAlloc.h\"\n#else\n#define _RTAddress \"Core\/_RAlloc.h\"\n#endif\n\n#define _ClassName\n#define _Attr 1\n\n#include \"Include_T1AllTypes.h\"\n\n#endif \/\/RUTIL2_RALLOC_H\n\n","subject":"Add method 'RClean' for clean memory","message":"Add method 'RClean' for clean memory\n","lang":"C","license":"mit","repos":"Icenowy\/RUtil2,Rocaloid\/RUtil2,Rocaloid\/RUtil2,Icenowy\/RUtil2,Icenowy\/RUtil2,Rocaloid\/RUtil2"} {"commit":"f7daed906287e6141ea04a1097672a544765f105","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":"Checkcoin\/checkcoin,zemrys\/vertcoin,KaSt\/equikoin,bitgoldcoin-project\/bitgoldcoin,Coinfigli\/coinfigli,privatecoin\/privatecoin,coinkeeper\/2015-06-22_18-51_vertcoin,ohac\/sakuracoin,gwangjin2\/gwangcoin-core,coinkeeper\/2015-04-19_21-20_litecoindark,brightcoin\/brightcoin,Czarcoin\/czarcoin,kryptokredyt\/ProjektZespolowyCoin,degenorate\/Deftcoin,chrisfranko\/aiden,Rav3nPL\/doubloons-08,bitgoldcoin-project\/bitgoldcoin,coinkeeper\/2015-04-19_21-20_litecoindark,marscoin\/marscoin,coinkeeper\/2015-06-22_18-46_razor,DrCrypto\/darkcoin,zzkt\/solarcoin,Ziftr\/litecoin,shadowoneau\/ozcoin,scamcoinz\/scamcoin,netswift\/vertcoin,icook\/vertcoin,oklink-dev\/litecoin_block,mooncoin-project\/mooncoin-landann,Electronic-Gulden-Foundation\/egulden,mrtexaznl\/mediterraneancoin,IlfirinIlfirin\/shavercoin,greencoin-dev\/greencoin-dev,dakk\/soundcoin,oklink-dev\/litecoin_block,zebrains\/Blotter,IlfirinCano\/shavercoin,earthcoinproject\/earthcoin,Dajackal\/Ronpaulcoin,shadowoneau\/ozcoin,okinc\/litecoin,IlfirinCano\/shavercoin,ronpaulcoin\/ronpaulcoin,oklink-dev\/litecoin_block,ohac\/sakuracoin,CrimeaCoin\/crimeacoin,Electronic-Gulden-Foundation\/egulden,IlfirinCano\/shavercoin,degenorate\/Deftcoin,novaexchange\/EAC,KaSt\/equikoin,KaSt\/equikoin,Litecoindark\/LTCD,Checkcoin\/checkcoin,netswift\/vertcoin,vertcoin\/eyeglass,shurcoin\/shurcoin,wekuiz\/wekoin,ohac\/sha1coin,kryptokredyt\/ProjektZespolowyCoin,ronpaulcoin\/ronpaulcoin,Ziftr\/litecoin,mooncoin-project\/mooncoin-landann,brightcoin\/brightcoin,micryon\/GPUcoin,scamcoinz\/scamcoin,plankton12345\/litecoin,jiffe\/cosinecoin,icook\/vertcoin,cryptcoins\/cryptcoin,Litecoindark\/LTCD,gwangjin2\/gwangcoin-core,ohac\/sha1coin,united-scrypt-coin-project\/unitedscryptcoin,chrisfranko\/aiden,tensaix2j\/bananacoin,ohac\/sha1coin,united-scrypt-coin-project\/unitedscryptcoin,brightcoin\/brightcoin,coinkeeper\/2015-04-19_21-20_litecoindark,bitgoldcoin-project\/bitgoldcoin,plankton12345\/litecoin,Ziftr\/litecoin,shadowoneau\/ozcoin,novaexchange\/EAC,Ziftr\/litecoin,cryptcoins\/cryptcoin,Litecoindark\/LTCD,bootycoin-project\/bootycoin,privatecoin\/privatecoin,zebrains\/Blotter,IlfirinCano\/shavercoin,shadowoneau\/ozcoin,Tetcoin\/tetcoin,Coinfigli\/coinfigli,bitgoldcoin-project\/bitgoldcoin,ohac\/sakuracoin,neutrinofoundation\/neutrino-digital-currency,DrCrypto\/darkcoin,stamhe\/litecoin,micryon\/GPUcoin,tensaix2j\/bananacoin,Czarcoin\/czarcoin,richo\/dongcoin,scamcoinz\/scamcoin,ccoin-project\/ccoin,gwangjin2\/gwangcoin-core,coinkeeper\/2015-04-19_21-20_litecoindark,mrtexaznl\/mediterraneancoin,Litecoindark\/LTCD,brightcoin\/brightcoin,ANCompany\/birdcoin-dev,netswift\/vertcoin,plankton12345\/litecoin,zemrys\/vertcoin,scamcoinz\/scamcoin,tensaix2j\/bananacoin,okinc\/litecoin,Dajackal\/Ronpaulcoin,neutrinofoundation\/neutrino-digital-currency,shurcoin\/shurcoin,zebrains\/Blotter,tensaix2j\/bananacoin,dakk\/soundcoin,jiffe\/cosinecoin,IlfirinIlfirin\/shavercoin,coinkeeper\/2015-06-22_18-46_razor,coinkeeper\/2015-06-22_18-46_razor,marscoin\/marscoin,razor-coin\/razor,earthcoinproject\/earthcoin,coinkeeper\/2015-06-22_18-46_razor,netswift\/vertcoin,privatecoin\/privatecoin,Electronic-Gulden-Foundation\/egulden,marscoin\/marscoin,brishtiteveja\/sherlockholmescoin,Dajackal\/Ronpaulcoin,bootycoin-project\/bootycoin,Rav3nPL\/doubloons-08,neutrinofoundation\/neutrino-digital-currency,oklink-dev\/litecoin_block,alexandrcoin\/vertcoin,okinc\/litecoin,mooncoin-project\/mooncoin-landann,brishtiteveja\/sherlockholmescoin,ANCompany\/birdcoin-dev,coinkeeper\/2015-06-22_19-13_florincoin,Dajackal\/Ronpaulcoin,greencoin-dev\/greencoin-dev,Czarcoin\/czarcoin,KaSt\/equikoin,coinkeeper\/2015-06-22_19-13_florincoin,razor-coin\/razor,Coinfigli\/coinfigli,gwangjin2\/gwangcoin-core,coinkeeper\/2015-06-22_19-13_florincoin,shadowoneau\/ozcoin,coinkeeper\/2015-06-22_19-13_florincoin,koharjidan\/litecoin,shapiroisme\/datadollar,Cancercoin\/Cancercoin,vertcoin\/eyeglass,privatecoin\/privatecoin,IlfirinIlfirin\/shavercoin,jiffe\/cosinecoin,razor-coin\/razor,Tetcoin\/tetcoin,zebrains\/Blotter,vertcoin\/eyeglass,Coinfigli\/coinfigli,koharjidan\/litecoin,richo\/dongcoin,alexandrcoin\/vertcoin,razor-coin\/razor,koharjidan\/litecoin,micryon\/GPUcoin,Tetcoin\/tetcoin,shurcoin\/shurcoin,brishtiteveja\/sherlockholmescoin,stamhe\/litecoin,brishtiteveja\/sherlockholmescoin,ohac\/sha1coin,vertcoin\/eyeglass,kryptokredyt\/ProjektZespolowyCoin,Cancercoin\/Cancercoin,coinkeeper\/2015-06-22_18-51_vertcoin,ccoin-project\/ccoin,earthcoinproject\/earthcoin,zzkt\/solarcoin,marscoin\/marscoin,koharjidan\/litecoin,richo\/dongcoin,DrCrypto\/darkcoin,brishtiteveja\/sherlockholmescoin,novaexchange\/EAC,vertcoin\/eyeglass,kryptokredyt\/ProjektZespolowyCoin,chrisfranko\/aiden,bitgoldcoin-project\/bitgoldcoin,shurcoin\/shurcoin,degenorate\/Deftcoin,kryptokredyt\/ProjektZespolowyCoin,plankton12345\/litecoin,cryptcoins\/cryptcoin,alexandrcoin\/vertcoin,coinkeeper\/2015-06-22_18-51_vertcoin,CrimeaCoin\/crimeacoin,Ziftr\/litecoin,richo\/dongcoin,Tetcoin\/tetcoin,degenorate\/Deftcoin,micryon\/GPUcoin,chrisfranko\/aiden,united-scrypt-coin-project\/unitedscryptcoin,koharjidan\/litecoin,Cancercoin\/Cancercoin,icook\/vertcoin,zzkt\/solarcoin,Checkcoin\/checkcoin,ohac\/sakuracoin,united-scrypt-coin-project\/unitedscryptcoin,novaexchange\/EAC,greencoin-dev\/greencoin-dev,mrtexaznl\/mediterraneancoin,richo\/dongcoin,shapiroisme\/datadollar,alexandrcoin\/vertcoin,stamhe\/litecoin,chrisfranko\/aiden,CrimeaCoin\/crimeacoin,DrCrypto\/darkcoin,cryptcoins\/cryptcoin,coinkeeper\/2015-06-22_18-46_razor,neutrinofoundation\/neutrino-digital-currency,cryptcoins\/cryptcoin,bootycoin-project\/bootycoin,plankton12345\/litecoin,earthcoinproject\/earthcoin,marscoin\/marscoin,Rav3nPL\/doubloons-08,zebrains\/Blotter,shurcoin\/shurcoin,ANCompany\/birdcoin-dev,oklink-dev\/litecoin_block,Rav3nPL\/doubloons-08,zemrys\/vertcoin,Electronic-Gulden-Foundation\/egulden,IlfirinIlfirin\/shavercoin,greencoin-dev\/greencoin-dev,Electronic-Gulden-Foundation\/egulden,shapiroisme\/datadollar,CrimeaCoin\/crimeacoin,zzkt\/solarcoin,zzkt\/solarcoin,Czarcoin\/czarcoin,coinkeeper\/2015-06-22_18-51_vertcoin,gwangjin2\/gwangcoin-core,netswift\/vertcoin,IlfirinIlfirin\/shavercoin,dakk\/soundcoin,ANCompany\/birdcoin-dev,mooncoin-project\/mooncoin-landann,wekuiz\/wekoin,united-scrypt-coin-project\/unitedscryptcoin,coinkeeper\/2015-06-22_18-51_vertcoin,dakk\/soundcoin,okinc\/litecoin,coinkeeper\/2015-04-19_21-20_litecoindark,Rav3nPL\/doubloons-08,netswift\/vertcoin,shapiroisme\/datadollar,Cancercoin\/Cancercoin,wekuiz\/wekoin,earthcoinproject\/earthcoin,ronpaulcoin\/ronpaulcoin,Electronic-Gulden-Foundation\/egulden,Litecoindark\/LTCD,stamhe\/litecoin,Checkcoin\/checkcoin,zemrys\/vertcoin,Tetcoin\/tetcoin,ohac\/sha1coin,okinc\/litecoin,wekuiz\/wekoin,ccoin-project\/ccoin,ohac\/sakuracoin,novaexchange\/EAC,dakk\/soundcoin,ronpaulcoin\/ronpaulcoin,shapiroisme\/datadollar,zemrys\/vertcoin,mrtexaznl\/mediterraneancoin,razor-coin\/razor,mooncoin-project\/mooncoin-landann,Cancercoin\/Cancercoin,koharjidan\/litecoin,CrimeaCoin\/crimeacoin,degenorate\/Deftcoin,brightcoin\/brightcoin,greencoin-dev\/greencoin-dev,marscoin\/marscoin,IlfirinCano\/shavercoin,ccoin-project\/ccoin,Czarcoin\/czarcoin,ronpaulcoin\/ronpaulcoin,scamcoinz\/scamcoin,zemrys\/vertcoin,icook\/vertcoin,privatecoin\/privatecoin,bootycoin-project\/bootycoin,micryon\/GPUcoin,ANCompany\/birdcoin-dev,Dajackal\/Ronpaulcoin,icook\/vertcoin,Coinfigli\/coinfigli,KaSt\/equikoin,tensaix2j\/bananacoin,wekuiz\/wekoin,jiffe\/cosinecoin,bootycoin-project\/bootycoin,Checkcoin\/checkcoin,mrtexaznl\/mediterraneancoin,coinkeeper\/2015-06-22_19-13_florincoin"} {"commit":"50d89048e3f9f8e98f0bcaa813bd87a1517e6d05","old_file":"Cutelyst\/cutelyst_global.h","new_file":"Cutelyst\/cutelyst_global.h","old_contents":"#ifndef CUTELYST_GLOBAL_H\n#define CUTELYST_GLOBAL_H\n\n#include \n\n#if defined(CUTELYST_LIBRARY)\n# define CUTELYST_LIBRARY Q_DECL_EXPORT\n#else\n# define CUTELYST_LIBRARY Q_DECL_IMPORT\n#endif\n\n#endif \/\/ CUTELYST_GLOBAL_H\n\n","new_contents":"#ifndef CUTELYST_GLOBAL_H\n#define CUTELYST_GLOBAL_H\n\n#include \n\n\/\/ defined by cmake when building this library\n#if defined(cutelyst_qt5_EXPORTS)\n# define CUTELYST_LIBRARY Q_DECL_EXPORT\n#else\n# define CUTELYST_LIBRARY Q_DECL_IMPORT\n#endif\n\n#endif \/\/ CUTELYST_GLOBAL_H\n\n","subject":"Make sure export macro is properly set","message":"Make sure export macro is properly set\n","lang":"C","license":"bsd-3-clause","repos":"simonaw\/cutelyst,cutelyst\/cutelyst,buschmann23\/cutelyst,buschmann23\/cutelyst,cutelyst\/cutelyst,cutelyst\/cutelyst,buschmann23\/cutelyst,simonaw\/cutelyst"} {"commit":"1f2d0a53e4be19d374b02ac85442ba8ebe20ff30","old_file":"engine\/include\/graphics\/Vertex.h","new_file":"engine\/include\/graphics\/Vertex.h","old_contents":"\/*\n * Copyright (c) 2017 Lech Kulina\n *\n * This file is part of the Realms Of Steel.\n * For conditions of distribution and use, see copyright details in the LICENSE file.\n *\/\n#ifndef ROS_VERTEX_H\n#define ROS_VERTEX_H\n\n#include \n#include \n#include \n#include \n#include \n\nnamespace ros {\n struct ROS_API Vertex {\n glm::vec3 position;\n glm::vec3 normal;\n glm::vec3 tangent;\n glm::vec3 bitangent;\n glm::vec2 textureCoordinates;\n glm::vec4 color;\n };\n\n typedef std::vector VertexVector;\n typedef std::vector IndexVector;\n}\n\n#endif \/\/ ROS_VERTEX_H\n\n","new_contents":"\/*\n * Copyright (c) 2017 Lech Kulina\n *\n * This file is part of the Realms Of Steel.\n * For conditions of distribution and use, see copyright details in the LICENSE file.\n *\/\n#ifndef ROS_VERTEX_H\n#define ROS_VERTEX_H\n\n#include \n#include \n#include \n#include \n#include \n\nnamespace ros {\n struct ROS_API Vertex {\n static const U32 MAX_COLORS = 3;\n static const U32 MAX_TEXTURE_COORDS = 3;\n\n glm::vec4 colors[MAX_COLORS];\n glm::vec3 textureCoords[MAX_TEXTURE_COORDS];\n glm::vec3 position;\n glm::vec3 normal;\n glm::vec3 tangent;\n glm::vec3 bitangent;\n };\n\n typedef std::vector VerticesVector;\n}\n\n#endif \/\/ ROS_VERTEX_H\n\n","subject":"Support several texture coords and colors per vertex","message":"Support several texture coords and colors per vertex\n","lang":"C","license":"apache-2.0","repos":"lechkulina\/RealmsOfSteel,lechkulina\/RealmsOfSteel"} {"commit":"3b7b8507444b059534fe4d708ad8fd251b42c0c4","old_file":"ext\/libxml\/ruby_xml_namespaces.h","new_file":"ext\/libxml\/ruby_xml_namespaces.h","old_contents":"\/* $Id: ruby_xml_ns.h 612 2008-11-21 08:01:29Z cfis $ *\/\n\n\/* Please see the LICENSE file for copyright and distribution information *\/\n\n#ifndef __RXML_NAMESPACES__\n#define __RXML_NAMESPACES__\n\nextern VALUE cXMLNamespaces;\n\nvoid ruby_init_xml_namespaces(void);\n#endif\n","new_contents":"\/* $Id: ruby_xml_ns.h 612 2008-11-21 08:01:29Z cfis $ *\/\n\n\/* Please see the LICENSE file for copyright and distribution information *\/\n\n#ifndef __RXML_NAMESPACES__\n#define __RXML_NAMESPACES__\n\nextern VALUE cXMLNamespaces;\n\nvoid rxml_init_namespaces(void);\n#endif\n","subject":"Fix up name of init_namespaces method.","message":"Fix up name of init_namespaces method.\n","lang":"C","license":"mit","repos":"sferik\/libxml-ruby,xml4r\/libxml-ruby,sferik\/libxml-ruby,increments\/libxml-ruby,sferik\/libxml-ruby,increments\/libxml-ruby,sferik\/libxml-ruby,xml4r\/libxml-ruby,sferik\/libxml-ruby,increments\/libxml-ruby,sferik\/libxml-ruby,xml4r\/libxml-ruby"} {"commit":"9339344aec109c94237278e4544c8111cee6b3f4","old_file":"stdinc\/sys\/mman.h","new_file":"stdinc\/sys\/mman.h","old_contents":"#pragma once\n\n#include \n\nBEGIN_DECLS\n\nvoid *mmap(void *addr, size_t length, int prot, int flags,\n int fd, off_t offset);\nint munmap(void *addr, size_t length);\nint mprotect(void *addr, size_t length, int prot);\nint madvise(void *addr, size_t length, int advice);\n\nEND_DECLS\n","new_contents":"#pragma once\n\n#include \n#include \n\nBEGIN_DECLS\n\nvoid *mmap(void *addr, size_t length, int prot, int flags,\n int fd, off_t offset);\nint munmap(void *addr, size_t length);\nint mprotect(void *addr, size_t length, int prot);\nint madvise(void *addr, size_t length, int advice);\n\nEND_DECLS\n","subject":"Fix missing dependency on sys\/types.h","message":"stdinc: Fix missing dependency on sys\/types.h\n","lang":"C","license":"mit","repos":"aclements\/sv6,bowlofstew\/sv6,bowlofstew\/sv6,aclements\/sv6,bowlofstew\/sv6,aclements\/sv6,bowlofstew\/sv6,aclements\/sv6,aclements\/sv6,bowlofstew\/sv6"} {"commit":"7ae7d98acee75625a8eaaa9074b0bc66deda76bd","old_file":"main.c","new_file":"main.c","old_contents":"\/\/\n\/\/ Created by wan on 1\/2\/16.\n\/\/\n#include \n\nint main(void) {\n printf(\"Input:\");\n int a;\n scanf(\"%d\", &a);\n if (2016 % a != 0) {\n printf(\"No way. Exit.\\n\");\n return 0;\n }\n int s = 2016;\n printf(\"2016 = \");\n int flag = 0, b;\n for (b = 1111; b >= 1; b \/= 10) {\n int t = a * b;\n for (;;) {\n if (s >= t) {\n if (flag == 0)\n flag = 1;\n else\n printf(\" + \");\n printf(\"%d\", t);\n s -= t;\n }\n else\n break;\n }\n }\n printf(\"\\n\");\n return 0;\n}\n","new_contents":"\/\/\n\/\/ Created by Hexapetalous on 1\/1\/16.\n\/\/\n#include \n\nint main(void) {\n printf(\"Input[1]:\");\n int a;\n scanf(\"%d\", &a);\n printf(\"Input[2]:\");\n int z;\n scanf(\"%d\", &z);\n if (z % a != 0) {\n printf(\"No way. Exit.\\n\");\n return 0;\n }\n int s = z;\n printf(\"%d = \", z);\n int flag = 0, b;\n for (b = 1; b < s; b = b * 10 + 1)\n ;\n for (b \/= 10; b >= 1; b \/= 10) {\n int t = a * b;\n for (; s >= t;) {\n if (flag == 0)\n flag = 1;\n else\n printf(\" + \");\n printf(\"%d\", t);\n s -= t;\n }\n }\n printf(\"\\n\");\n return 0;\n}\n","subject":"Support to division every number.","message":"Support to division every number.\n","lang":"C","license":"mit","repos":"hxptls\/P0000,hxptls\/P0000"} {"commit":"5e6b427fb951576718f177f837daf81bf02cd721","old_file":"main.c","new_file":"main.c","old_contents":"#include \"scheme.h\"\n#include \n#include \n#include \n\n#ifndef DEFAULT_BOOTFILE_PATH\n# define DEFAULT_BOOTFILE_PATH \".\/shen.boot\"\n#endif\n\nstatic void custom_init(void) {}\n\nint main(int argc, char *argv[]) {\n int status;\n char *bfpath = getenv(\"SHEN_BOOTFILE_PATH\");\n\n if (bfpath == NULL) {\n bfpath = DEFAULT_BOOTFILE_PATH;\n }\n\n if (access(bfpath, F_OK) == -1) {\n fprintf(stderr, \"ERROR: boot file '%s' doesn't exist or is not readable.\\n\",\n bfpath);\n exit(1);\n }\n\n Sscheme_init(NULL);\n Sregister_boot_file(bfpath);\n Sbuild_heap(NULL, custom_init);\n status = Sscheme_start(argc + 1, (const char**)argv - 1);\n Sscheme_deinit();\n\n exit(status);\n}\n","new_contents":"#include \"scheme.h\"\n#include \n#include \n#include \n#include \n#include \n\n#ifndef DEFAULT_BOOTFILE_PATH\n# define DEFAULT_BOOTFILE_PATH NULL\n#endif\n\nstatic void custom_init(void) {}\n\nint main(int argc, char *argv[]) {\n int status;\n char *bfpath = getenv(\"SHEN_BOOTFILE_PATH\");\n\n if (bfpath == NULL) {\n if (DEFAULT_BOOTFILE_PATH != NULL) {\n bfpath = DEFAULT_BOOTFILE_PATH;\n } else {\n char buf[PATH_MAX];\n char *last_slash;\n\n realpath(argv[0], buf);\n last_slash = strrchr(buf, '\/') + 1;\n strlcpy(last_slash, \"shen.boot\", last_slash - buf);\n bfpath = buf;\n }\n }\n\n if (access(bfpath, F_OK) == -1) {\n fprintf(stderr, \"ERROR: boot file '%s' doesn't exist or is not readable.\\n\",\n bfpath);\n exit(1);\n }\n\n Sscheme_init(NULL);\n Sregister_boot_file(bfpath);\n Sbuild_heap(NULL, custom_init);\n status = Sscheme_start(argc + 1, (const char**)argv - 1);\n Sscheme_deinit();\n\n exit(status);\n}\n","subject":"Make it so that if no path for the shen boot file is specified, it is looked at the same directory of the shen-scheme executable","message":"Make it so that if no path for the shen boot file is specified, it is looked at the same directory of the shen-scheme executable\n","lang":"C","license":"bsd-3-clause","repos":"tizoc\/chibi-shen"} {"commit":"d7579b98bf36dbb78472aabfc269939e646f73bf","old_file":"src\/essentia\/utils\/extractor_freesound\/extractor_version.h","new_file":"src\/essentia\/utils\/extractor_freesound\/extractor_version.h","old_contents":"#ifndef EXTRACTOR_VERSION_H_\n#define EXTRACTOR_VERSION_H_\n\n#define FREESOUND_EXTRACTOR_VERSION \"freesound 2.0\"\n\n#endif \/* EXTRACTOR_VERSION_H_ *\/\n","new_contents":"#ifndef EXTRACTOR_VERSION_H_\n#define EXTRACTOR_VERSION_H_\n\n#define FREESOUND_EXTRACTOR_VERSION \"freesound 0.5\"\n\n#endif \/* EXTRACTOR_VERSION_H_ *\/\n","subject":"Change FreesoundExtractor version to 0.5","message":"Change FreesoundExtractor version to 0.5\n\nAfter discussion (#582) we decided to keep incrementing 0.4\n","lang":"C","license":"agpl-3.0","repos":"MTG\/essentia,carthach\/essentia,carthach\/essentia,MTG\/essentia,carthach\/essentia,MTG\/essentia,carthach\/essentia,carthach\/essentia,MTG\/essentia,MTG\/essentia"} {"commit":"8ff46ef395b30e1e3f9dd84c08e1b93796ab524d","old_file":"Classes\/AHKNavigationController.h","new_file":"Classes\/AHKNavigationController.h","old_contents":"\/\/ Created by Arkadiusz on 01-04-14.\n\n#import \n\n\/\/\/ A UINavigationController subclass allowing the interactive pop gesture when the navigation bar is hidden or a custom back button is used.\n@interface AHKNavigationController : UINavigationController\n\n@end\n","new_contents":"\/\/ Created by Arkadiusz on 01-04-14.\n\n#import \n\n\/\/\/ A UINavigationController subclass allowing the interactive pop gesture when the navigation bar is hidden or a custom back button is used.\n@interface AHKNavigationController : UINavigationController\n\n- (void)pushViewController:(UIViewController *)viewController\n animated:(BOOL)animated __attribute__((objc_requires_super));\n\n@end\n","subject":"Add warning when a subclass doesn’t call super on pushViewController:animated:","message":"Add warning when a subclass doesn’t call super on pushViewController:animated:\n\nThis method is used for keeping an internal state, so calling super is mandatory.\n","lang":"C","license":"mit","repos":"viccc\/AHKNavigationController,kingiol\/AHKNavigationController,MrAPPs-RSM\/AHKNavigationController,fastred\/AHKNavigationController"} {"commit":"afe1e6b8d950fe94627a200cf210a1e387c0c4d7","old_file":"generic\/include\/math\/clc_ldexp.h","new_file":"generic\/include\/math\/clc_ldexp.h","old_contents":"_CLC_DEF _CLC_OVERLOAD float __clc_ldexp(float, int);\n\n#ifdef cl_khr_fp64\n #pragma OPENCL EXTENSION cl_khr_fp64 : enable\n _CLC_DEF _CLC_OVERLOAD float __clc_ldexp(double, int);\n#endif\n","new_contents":"_CLC_DEF _CLC_OVERLOAD float __clc_ldexp(float, int);\n\n#ifdef cl_khr_fp64\n #pragma OPENCL EXTENSION cl_khr_fp64 : enable\n _CLC_DEF _CLC_OVERLOAD double __clc_ldexp(double, int);\n#endif\n","subject":"Fix double precision function return type","message":"ldexp: Fix double precision function return type\n\nFixes ~1200 external calls from nvtpx library.\n\nReviewer: Jeroen Ketema\nSigned-off-by: Jan Vesely \n\ngit-svn-id: e7f1ab7c2a259259587475a3e7520e757882f167@315170 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":"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":"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":"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":"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":"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":"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":"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":"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":"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"} {"commit":"37429be0d50a7a8d9b5ea34346613410a89c8c53","old_file":"Reducers\/REDIterable.h","new_file":"Reducers\/REDIterable.h","old_contents":"\/\/ Copyright (c) 2014 Rob Rix. All rights reserved.\n\n#import \n\n@protocol REDIterable \n\n@property (readonly) id(^red_iterator)(void);\n\n@end\n","new_contents":"\/\/ Copyright (c) 2014 Rob Rix. All rights reserved.\n\n#import \n\n\/\/\/ A nullary block iterating the elements of a collection over successive calls.\n\/\/\/\n\/\/\/ \\return The next object in the collection, or nil if it has iterated the entire collection.\ntypedef id (^REDIteratingBlock)(void);\n\n\/\/\/ A collection which can be iterated.\n@protocol REDIterable \n\n\/\/\/ An iterator for this collection.\n@property (readonly) REDIteratingBlock red_iterator;\n\n@end\n","subject":"Add a typedef for iterators.","message":"Add a typedef for iterators.\n","lang":"C","license":"mit","repos":"policp\/Reducers,robrix\/Reducers"} {"commit":"d086430fdd5b4cf3cc168b794ac823629994fc18","old_file":"test\/pragma\/both.c","new_file":"test\/pragma\/both.c","old_contents":"\/\/ RUN: %check %s\n\n#pragma STDC FENV_ACCESS on\n_Pragma(\"STDC FENV_ACCESS on\"); \/\/ CHECK: warning: unhandled STDC pragma\n\/\/ CHECK: ^warning: extra ';' at global scope\n\n\n#define LISTING(x) PRAGMA(listing on #x)\n#define PRAGMA(x) _Pragma(#x)\n\nLISTING(..\/listing) \/\/ CHECK: warning: unknown pragma 'listing on \"..\/listing\"'\n\n\n_Pragma(L\"STDC CX_LIMITED_RANGE off\") \/\/ CHECK: warning: unhandled STDC pragma\n\/\/ CHECK: ^!\/warning: extra ';'\/\n\n#pragma STDC FP_CONTRACT off\n\nmain()\n{\n}\n","new_contents":"\/\/ RUN: %check %s\n\n#pragma STDC FENV_ACCESS ON\n_Pragma(\"STDC FENV_ACCESS ON\"); \/\/ CHECK: warning: unhandled STDC pragma\n\/\/ CHECK: ^warning: extra ';' at global scope\n\n\n#define LISTING(x) PRAGMA(listing on #x)\n#define PRAGMA(x) _Pragma(#x)\n\nLISTING(..\/listing) \/\/ CHECK: warning: unknown pragma 'listing on \"..\/listing\"'\n\n\n_Pragma(L\"STDC CX_LIMITED_RANGE OFF\") \/\/ CHECK: warning: unhandled STDC pragma\n\/\/ CHECK: ^!\/warning: extra ';'\/\n\n#pragma STDC FP_CONTRACT OFF\n\nint main()\n{\n}\n","subject":"Correct case of STDC pragmas","message":"Correct case of STDC pragmas\n","lang":"C","license":"mit","repos":"bobrippling\/ucc-c-compiler,bobrippling\/ucc-c-compiler,bobrippling\/ucc-c-compiler"} {"commit":"e43162ceeb46ef215c9a5215b36b01f695eca60e","old_file":"ios\/KCKeepAwake.h","new_file":"ios\/KCKeepAwake.h","old_contents":"#import \"RCTBridgeModule.h\"\n\n@interface KCKeepAwake : NSObject \n@end\n","new_contents":"#import \n\n@interface KCKeepAwake : NSObject \n@end\n","subject":"Correct import path to match RN 0.40","message":"Correct import path to match RN 0.40\n","lang":"C","license":"mit","repos":"corbt\/react-native-keep-awake,corbt\/react-native-keep-awake,corbt\/react-native-keep-awake"} {"commit":"2d6cf0686fb211408a6f5ed96ac5341f1c486aaa","old_file":"kremlib\/kremstr.c","new_file":"kremlib\/kremstr.c","old_contents":"#include \"kremlib.h\"\n#include \"kremstr.h\"\n\n\/******************************************************************************\/\n\/* Implementation of FStar.String and FStar.HyperIO *\/\n\/******************************************************************************\/\n\n\/* FStar.h is generally kept for the program we wish to compile, meaning that\n * FStar.h contains extern declarations for the functions below. This provides\n * their implementation, and since the function prototypes are already in\n * FStar.h, we don't need to put these in the header, they will be resolved at\n * link-time. *\/\n\nPrims_nat FStar_String_strlen(Prims_string s) {\n return strlen(s);\n}\n\nPrims_string FStar_String_strcat(Prims_string s0, Prims_string s1) {\n char *dest = calloc(strlen(s0) + strlen(s1) + 1, 1);\n strcat(dest, s0);\n strcat(dest, s1);\n return (Prims_string)dest;\n}\n\nPrims_string Prims_strcat(Prims_string s0, Prims_string s1) {\n return FStar_String_strcat(s0, s1);\n}\n\nvoid FStar_IO_debug_print_string(Prims_string s) {\n printf(\"%s\", s);\n}\n\nbool __eq__Prims_string(Prims_string s1, Prims_string s2) {\n return (strcmp(s1, s2) == 0);\n}\n","new_contents":"#include \"kremlib.h\"\n#include \"kremstr.h\"\n\n\/******************************************************************************\/\n\/* Implementation of FStar.String and FStar.HyperIO *\/\n\/******************************************************************************\/\n\n\/* FStar.h is generally kept for the program we wish to compile, meaning that\n * FStar.h contains extern declarations for the functions below. This provides\n * their implementation, and since the function prototypes are already in\n * FStar.h, we don't need to put these in the header, they will be resolved at\n * link-time. *\/\n\nPrims_nat FStar_String_strlen(Prims_string s) {\n return strlen(s);\n}\n\nPrims_string FStar_String_strcat(Prims_string s0, Prims_string s1) {\n char *dest = calloc(strlen(s0) + strlen(s1) + 1, 1);\n strcat(dest, s0);\n strcat(dest, s1);\n return (Prims_string)dest;\n}\n\nPrims_string Prims_strcat(Prims_string s0, Prims_string s1) {\n return FStar_String_strcat(s0, s1);\n}\n\nvoid FStar_HyperStack_IO_print_string(Prims_string s) {\n printf(\"%s\", s);\n}\n\nvoid FStar_IO_debug_print_string(Prims_string s) {\n printf(\"%s\", s);\n}\n\nbool __eq__Prims_string(Prims_string s1, Prims_string s2) {\n return (strcmp(s1, s2) == 0);\n}\n","subject":"Revert \"Try to catch up on upstream F* changes\"","message":"Revert \"Try to catch up on upstream F* changes\"\n\nThis reverts commit 5b09f1f43b155df40caa8d8716075ccd7d08af26.\n","lang":"C","license":"apache-2.0","repos":"FStarLang\/kremlin,FStarLang\/kremlin,FStarLang\/kremlin,FStarLang\/kremlin"} {"commit":"57ca28bb8d019266a16ff18a87d71f12b59224b5","old_file":"src\/exercise112.c","new_file":"src\/exercise112.c","old_contents":"\/*\n * A solution to Exercise 1-12 in The C Programming Language (Second Edition).\n *\n * This file was written by Damien Dart . This is free\n * and unencumbered software released into the public domain. For more\n * information, please refer to the accompanying \"UNLICENCE\" file.\n *\/\n\n#include \n#include \n#include \n#include \n\nint main(void)\n{\n int16_t character = 0;\n bool in_whitespace = false;\n while ((character = getchar()) != EOF) {\n if ((character == ' ') || (character == '\\t')) {\n if (in_whitespace == false) {\n putchar('\\n');\n in_whitespace = true;\n }\n } else {\n putchar(character);\n in_whitespace = false;\n }\n }\n return EXIT_SUCCESS;\n}\n","new_contents":"\/*\n * A solution to Exercise 1-12 in The C Programming Language (Second Edition).\n *\n * This file was written by Damien Dart . This is free\n * and unencumbered software released into the public domain. For more\n * information, please refer to the accompanying \"UNLICENCE\" file.\n *\/\n\n#include \n#include \n#include \n#include \n\nint main(void)\n{\n int16_t character = 0;\n bool in_whitespace = false;\n while ((character = getchar()) != EOF) {\n if ((character == ' ') || (character == '\\t' || character == '\\n')) {\n if (in_whitespace == false) {\n putchar('\\n');\n in_whitespace = true;\n }\n } else {\n putchar(character);\n in_whitespace = false;\n }\n }\n return EXIT_SUCCESS;\n}\n","subject":"Fix solution to Exercise 1-12.","message":"Fix solution to Exercise 1-12.\n\nFix solution to Exercise 1-12 so that newline characters are processed correctly.\n","lang":"C","license":"unlicense","repos":"damiendart\/knr-solutions,damiendart\/knr-solutions,damiendart\/knr-solutions"} {"commit":"f4c69c820550a352cb123bfb0b16c33c659a4ca6","old_file":"src\/timezone\/pgtz.c","new_file":"src\/timezone\/pgtz.c","old_contents":"\/*-------------------------------------------------------------------------\n *\n * pgtz.c\n *\t Timezone Library Integration Functions\n *\n * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group\n *\n * IDENTIFICATION\n *\t $PostgreSQL: pgsql\/src\/timezone\/pgtz.c,v 1.5 2004\/05\/01 01:38:53 momjian Exp $\n *\n *-------------------------------------------------------------------------\n *\/\n\n#include \"pgtz.h\"\n#include \"tzfile.h\"\n\n\nstatic char tzdir[MAXPGPATH];\nstatic int\tdone_tzdir = 0;\nchar *\npg_TZDIR(void)\n{\n\tchar\t *p;\n\n\tif (done_tzdir)\n\t\treturn tzdir;\n\n#ifndef WIN32\n\tStrNCpy(tzdir, PGDATADIR, MAXPGPATH);\n#else\n\tif (GetModuleFileName(NULL, tzdir, MAXPGPATH) == 0)\n\t\treturn NULL;\n#endif\n\n\tcanonicalize_path(tzdir);\n#if 0\n\tif ((p = last_path_separator(tzdir)) == NULL)\n\t\treturn NULL;\n\telse\n\t\t*p = '\\0';\n#endif\n\n\tstrcat(tzdir, \"\/timezone\");\n\n\tdone_tzdir = 1;\n\treturn tzdir;\n}\n","new_contents":"\/*-------------------------------------------------------------------------\n *\n * pgtz.c\n *\t Timezone Library Integration Functions\n *\n * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group\n *\n * IDENTIFICATION\n *\t $PostgreSQL: pgsql\/src\/timezone\/pgtz.c,v 1.6 2004\/05\/01 22:07:03 momjian Exp $\n *\n *-------------------------------------------------------------------------\n *\/\n\n#include \"pgtz.h\"\n#include \"tzfile.h\"\n\n\nstatic char tzdir[MAXPGPATH];\nstatic int\tdone_tzdir = 0;\nchar *\npg_TZDIR(void)\n{\n\tchar\t *p;\n\n\tif (done_tzdir)\n\t\treturn tzdir;\n\n#ifndef WIN32\n\tStrNCpy(tzdir, PGDATADIR, MAXPGPATH);\n#else\n\tif (GetModuleFileName(NULL, tzdir, MAXPGPATH) == 0)\n\t\treturn NULL;\n#endif\n\n\tcanonicalize_path(tzdir);\n#ifdef WIN32\n\t\/* trim off binary name, then go up a directory *\/\n\tif ((p = last_path_separator(tzdir)) == NULL)\n\t\treturn NULL;\n\telse\n\t\t*p = '\\0';\n\tstrcat(tzdir, \"\/..\/share\/timezone\");\n#endif\n\tstrcat(tzdir, \"\/timezone\");\n\n\n\tdone_tzdir = 1;\n\treturn tzdir;\n}\n","subject":"Fix timezone data path for Unix and win32.","message":"Fix timezone data path for Unix and win32.\n","lang":"C","license":"apache-2.0","repos":"yuanzhao\/gpdb,atris\/gpdb,kmjungersen\/PostgresXL,zeroae\/postgres-xl,yuanzhao\/gpdb,jmcatamney\/gpdb,50wu\/gpdb,yuanzhao\/gpdb,rubikloud\/gpdb,rvs\/gpdb,lpetrov-pivotal\/gpdb,techdragon\/Postgres-XL,yuanzhao\/gpdb,Postgres-XL\/Postgres-XL,lisakowen\/gpdb,CraigHarris\/gpdb,kaknikhil\/gpdb,lintzc\/gpdb,rubikloud\/gpdb,janebeckman\/gpdb,lintzc\/gpdb,Chibin\/gpdb,janebeckman\/gpdb,50wu\/gpdb,Quikling\/gpdb,ashwinstar\/gpdb,Postgres-XL\/Postgres-XL,foyzur\/gpdb,chrishajas\/gpdb,cjcjameson\/gpdb,janebeckman\/gpdb,lintzc\/gpdb,foyzur\/gpdb,techdragon\/Postgres-XL,xinzweb\/gpdb,ashwinstar\/gpdb,rubikloud\/gpdb,atris\/gpdb,edespino\/gpdb,kaknikhil\/gpdb,edespino\/gpdb,lpetrov-pivotal\/gpdb,0x0FFF\/gpdb,atris\/gpdb,kaknikhil\/gpdb,xuegang\/gpdb,rvs\/gpdb,xinzweb\/gpdb,edespino\/gpdb,zeroae\/postgres-xl,adam8157\/gpdb,Postgres-XL\/Postgres-XL,xinzweb\/gpdb,lpetrov-pivotal\/gpdb,foyzur\/gpdb,royc1\/gpdb,0x0FFF\/gpdb,randomtask1155\/gpdb,tpostgres-projects\/tPostgres,yuanzhao\/gpdb,chrishajas\/gpdb,jmcatamney\/gpdb,arcivanov\/postgres-xl,ahachete\/gpdb,randomtask1155\/gpdb,Quikling\/gpdb,royc1\/gpdb,xuegang\/gpdb,edespino\/gpdb,janebeckman\/gpdb,greenplum-db\/gpdb,CraigHarris\/gpdb,xinzweb\/gpdb,snaga\/postgres-xl,ovr\/postgres-xl,ashwinstar\/gpdb,chrishajas\/gpdb,adam8157\/gpdb,xuegang\/gpdb,yazun\/postgres-xl,tangp3\/gpdb,edespino\/gpdb,ovr\/postgres-xl,edespino\/gpdb,atris\/gpdb,rvs\/gpdb,chrishajas\/gpdb,cjcjameson\/gpdb,0x0FFF\/gpdb,CraigHarris\/gpdb,chrishajas\/gpdb,cjcjameson\/gpdb,arcivanov\/postgres-xl,pavanvd\/postgres-xl,yuanzhao\/gpdb,rubikloud\/gpdb,greenplum-db\/gpdb,greenplum-db\/gpdb,xuegang\/gpdb,ahachete\/gpdb,jmcatamney\/gpdb,tangp3\/gpdb,CraigHarris\/gpdb,rubikloud\/gpdb,edespino\/gpdb,cjcjameson\/gpdb,randomtask1155\/gpdb,0x0FFF\/gpdb,kmjungersen\/PostgresXL,rvs\/gpdb,yuanzhao\/gpdb,yazun\/postgres-xl,ashwinstar\/gpdb,zeroae\/postgres-xl,Chibin\/gpdb,ahachete\/gpdb,cjcjameson\/gpdb,randomtask1155\/gpdb,pavanvd\/postgres-xl,lpetrov-pivotal\/gpdb,randomtask1155\/gpdb,techdragon\/Postgres-XL,ovr\/postgres-xl,chrishajas\/gpdb,greenplum-db\/gpdb,adam8157\/gpdb,pavanvd\/postgres-xl,tpostgres-projects\/tPostgres,lpetrov-pivotal\/gpdb,chrishajas\/gpdb,Quikling\/gpdb,CraigHarris\/gpdb,yazun\/postgres-xl,snaga\/postgres-xl,lpetrov-pivotal\/gpdb,yazun\/postgres-xl,cjcjameson\/gpdb,adam8157\/gpdb,arcivanov\/postgres-xl,ashwinstar\/gpdb,lintzc\/gpdb,arcivanov\/postgres-xl,yuanzhao\/gpdb,adam8157\/gpdb,lisakowen\/gpdb,Chibin\/gpdb,Chibin\/gpdb,jmcatamney\/gpdb,kmjungersen\/PostgresXL,snaga\/postgres-xl,techdragon\/Postgres-XL,jmcatamney\/gpdb,adam8157\/gpdb,xinzweb\/gpdb,cjcjameson\/gpdb,xinzweb\/gpdb,edespino\/gpdb,edespino\/gpdb,lintzc\/gpdb,tangp3\/gpdb,50wu\/gpdb,zaksoup\/gpdb,yazun\/postgres-xl,Chibin\/gpdb,royc1\/gpdb,xinzweb\/gpdb,xuegang\/gpdb,lisakowen\/gpdb,chrishajas\/gpdb,cjcjameson\/gpdb,randomtask1155\/gpdb,foyzur\/gpdb,ashwinstar\/gpdb,royc1\/gpdb,foyzur\/gpdb,CraigHarris\/gpdb,tpostgres-projects\/tPostgres,0x0FFF\/gpdb,foyzur\/gpdb,oberstet\/postgres-xl,kaknikhil\/gpdb,snaga\/postgres-xl,snaga\/postgres-xl,randomtask1155\/gpdb,kmjungersen\/PostgresXL,Quikling\/gpdb,ahachete\/gpdb,Chibin\/gpdb,royc1\/gpdb,ovr\/postgres-xl,greenplum-db\/gpdb,0x0FFF\/gpdb,lisakowen\/gpdb,zeroae\/postgres-xl,Quikling\/gpdb,Chibin\/gpdb,zaksoup\/gpdb,kmjungersen\/PostgresXL,zaksoup\/gpdb,techdragon\/Postgres-XL,atris\/gpdb,lintzc\/gpdb,atris\/gpdb,randomtask1155\/gpdb,rvs\/gpdb,tangp3\/gpdb,janebeckman\/gpdb,xuegang\/gpdb,jmcatamney\/gpdb,postmind-net\/postgres-xl,kaknikhil\/gpdb,ahachete\/gpdb,xinzweb\/gpdb,50wu\/gpdb,janebeckman\/gpdb,0x0FFF\/gpdb,tangp3\/gpdb,0x0FFF\/gpdb,janebeckman\/gpdb,pavanvd\/postgres-xl,ashwinstar\/gpdb,postmind-net\/postgres-xl,ahachete\/gpdb,lisakowen\/gpdb,rvs\/gpdb,rubikloud\/gpdb,postmind-net\/postgres-xl,Quikling\/gpdb,arcivanov\/postgres-xl,Quikling\/gpdb,zaksoup\/gpdb,lintzc\/gpdb,tangp3\/gpdb,jmcatamney\/gpdb,tpostgres-projects\/tPostgres,50wu\/gpdb,zaksoup\/gpdb,rvs\/gpdb,jmcatamney\/gpdb,xuegang\/gpdb,greenplum-db\/gpdb,tangp3\/gpdb,50wu\/gpdb,50wu\/gpdb,Chibin\/gpdb,janebeckman\/gpdb,postmind-net\/postgres-xl,xuegang\/gpdb,janebeckman\/gpdb,Quikling\/gpdb,oberstet\/postgres-xl,tpostgres-projects\/tPostgres,ahachete\/gpdb,Chibin\/gpdb,lpetrov-pivotal\/gpdb,Quikling\/gpdb,rvs\/gpdb,Postgres-XL\/Postgres-XL,edespino\/gpdb,oberstet\/postgres-xl,atris\/gpdb,kaknikhil\/gpdb,rvs\/gpdb,cjcjameson\/gpdb,lintzc\/gpdb,Quikling\/gpdb,rubikloud\/gpdb,kaknikhil\/gpdb,ovr\/postgres-xl,ahachete\/gpdb,royc1\/gpdb,pavanvd\/postgres-xl,kaknikhil\/gpdb,kaknikhil\/gpdb,zaksoup\/gpdb,rubikloud\/gpdb,Chibin\/gpdb,lisakowen\/gpdb,oberstet\/postgres-xl,cjcjameson\/gpdb,foyzur\/gpdb,kaknikhil\/gpdb,oberstet\/postgres-xl,atris\/gpdb,yuanzhao\/gpdb,zaksoup\/gpdb,greenplum-db\/gpdb,ashwinstar\/gpdb,greenplum-db\/gpdb,zeroae\/postgres-xl,CraigHarris\/gpdb,tangp3\/gpdb,arcivanov\/postgres-xl,zaksoup\/gpdb,adam8157\/gpdb,CraigHarris\/gpdb,royc1\/gpdb,janebeckman\/gpdb,rvs\/gpdb,xuegang\/gpdb,adam8157\/gpdb,50wu\/gpdb,lintzc\/gpdb,lisakowen\/gpdb,Postgres-XL\/Postgres-XL,yuanzhao\/gpdb,royc1\/gpdb,postmind-net\/postgres-xl,lisakowen\/gpdb,foyzur\/gpdb,CraigHarris\/gpdb,lpetrov-pivotal\/gpdb"} {"commit":"49c893bd1e9f6e8bd808f517c37aaf053dcbea8b","old_file":"test\/CodeGen\/fp128_complex.c","new_file":"test\/CodeGen\/fp128_complex.c","old_contents":"\/\/ RUN: %clang -target aarch64-linux-gnuabi %s -O3 -S -emit-llvm -o - | FileCheck %s\n#include \n\ncomplex long double a, b, c, d;\nvoid test_fp128_compound_assign(void) {\n \/\/ CHECK: tail call { fp128, fp128 } @__multc3\n a *= b;\n \/\/ CHECK: tail call { fp128, fp128 } @__divtc3\n c \/= d;\n}\n","new_contents":"\/\/ RUN: %clang -target aarch64-linux-gnuabi %s -O3 -S -emit-llvm -o - | FileCheck %s\n\n_Complex long double a, b, c, d;\nvoid test_fp128_compound_assign(void) {\n \/\/ CHECK: tail call { fp128, fp128 } @__multc3\n a *= b;\n \/\/ CHECK: tail call { fp128, fp128 } @__divtc3\n c \/= d;\n}\n","subject":"Remove including in test case, and change to use _Complex instead.","message":"Remove including in test case, and change to use _Complex instead.\n\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@220258 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/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,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang"} {"commit":"5ced8e4fdfa8fd781c0a39b29597762cedcedec6","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(MBEDTLS_CONFIG_HW_SUPPORT)\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(DEVICE_RTC)\n#define MBEDTLS_HAVE_TIME_DATE\n#endif\n\n#if defined(MBEDTLS_CONFIG_HW_SUPPORT)\n#include \"mbedtls_device.h\"\n#endif\n","subject":"Integrate mbed OS RTC with mbed TLS","message":"Integrate mbed OS RTC with mbed TLS\n\nThe integration is simply to define the macro MBEDTLS_HAVE_TIME_DATE\nin the features\/mbedtls\/platform\/inc\/platform_mbed.h. The default\nimplementation of the mbedtls_time() function provided by mbed TLS is\nsufficient to work with mbed OS because both use POSIX functions.\n","lang":"C","license":"apache-2.0","repos":"c1728p9\/mbed-os,mbedmicro\/mbed,andcor02\/mbed-os,mbedmicro\/mbed,mbedmicro\/mbed,mbedmicro\/mbed,mbedmicro\/mbed,andcor02\/mbed-os,kjbracey-arm\/mbed,betzw\/mbed-os,kjbracey-arm\/mbed,kjbracey-arm\/mbed,c1728p9\/mbed-os,betzw\/mbed-os,c1728p9\/mbed-os,andcor02\/mbed-os,andcor02\/mbed-os,betzw\/mbed-os,andcor02\/mbed-os,c1728p9\/mbed-os,betzw\/mbed-os,andcor02\/mbed-os,betzw\/mbed-os,kjbracey-arm\/mbed,betzw\/mbed-os,c1728p9\/mbed-os,c1728p9\/mbed-os"} {"commit":"7ab32e65bd6fb6d0cb0c475186fb4e3830f9fa82","old_file":"cell.h","new_file":"cell.h","old_contents":"#ifndef CELL_H\n#define CELL_H\n\n#include \n#include \n\n#include \"number.h\"\n\nclass Cell {\npublic:\n Cell();\n explicit Cell(const Cell &rhs);\n explicit Cell(Cell *value);\n explicit Cell(bool value);\n explicit Cell(Number value);\n explicit Cell(const std::string &value);\n explicit Cell(const char *value);\n explicit Cell(const std::vector &value);\n explicit Cell(const std::map &value);\n Cell &operator=(const Cell &rhs);\n bool operator==(const Cell &rhs) const;\n\n Cell *address_value;\n bool boolean_value;\n Number number_value;\n std::string string_value;\n std::vector array_value;\n std::map dictionary_value;\n};\n\n#endif\n","new_contents":"#ifndef CELL_H\n#define CELL_H\n\n#include \n#include \n\n#include \"number.h\"\n\nclass Cell {\npublic:\n Cell();\n Cell(const Cell &rhs);\n explicit Cell(Cell *value);\n explicit Cell(bool value);\n explicit Cell(Number value);\n explicit Cell(const std::string &value);\n explicit Cell(const char *value);\n explicit Cell(const std::vector &value);\n explicit Cell(const std::map &value);\n Cell &operator=(const Cell &rhs);\n bool operator==(const Cell &rhs) const;\n\n Cell *address_value;\n bool boolean_value;\n Number number_value;\n std::string string_value;\n std::vector array_value;\n std::map dictionary_value;\n};\n\n#endif\n","subject":"Remove 'explicit' on copy constructor","message":"Remove 'explicit' on copy constructor","lang":"C","license":"mit","repos":"ghewgill\/neon-lang,gitlarryf\/neon-lang,gitlarryf\/neon-lang,ghewgill\/neon-lang,ghewgill\/neon-lang,gitlarryf\/neon-lang,ghewgill\/neon-lang,gitlarryf\/neon-lang,gitlarryf\/neon-lang,gitlarryf\/neon-lang,ghewgill\/neon-lang,gitlarryf\/neon-lang,ghewgill\/neon-lang,ghewgill\/neon-lang,ghewgill\/neon-lang,gitlarryf\/neon-lang,ghewgill\/neon-lang,gitlarryf\/neon-lang,ghewgill\/neon-lang,gitlarryf\/neon-lang"} {"commit":"90209fa8998819f0379546da17e0f739424b8d56","old_file":"test\/testquazip.h","new_file":"test\/testquazip.h","old_contents":"#ifndef QUAZIP_TEST_QUAZIP_H\n#define QUAZIP_TEST_QUAZIP_H\n\n#include \n\nclass TestQuaZip: public QObject {\n Q_OBJECT\nprivate slots:\n void getFileList_data();\n void getFileList();\n void getZip();\n};\n\n#endif \/\/ QUAZIP_TEST_QUAZIP_H\n","new_contents":"#ifndef QUAZIP_TEST_QUAZIP_H\n#define QUAZIP_TEST_QUAZIP_H\n\n#include \n\nclass TestQuaZip: public QObject {\n Q_OBJECT\nprivate slots:\n void getFileList_data();\n void getFileList();\n};\n\n#endif \/\/ QUAZIP_TEST_QUAZIP_H\n","subject":"Remove getZip() which got there by mistake","message":"Remove getZip() which got there by mistake\n\ngit-svn-id: 8ee2d06cc183b55da409a55e9abc82a01a576498@113 bf82bb6f-4128-0410-aed8-a7a134390cb4\n","lang":"C","license":"lgpl-2.1","repos":"comargo\/QuaZIP,slopjong\/QuaZIP,slopjong\/QuaZIP,comargo\/QuaZIP"} {"commit":"349c1d995eeede38b604a3284d0761d3c571c280","old_file":"src\/fake-lock-screen-pattern.h","new_file":"src\/fake-lock-screen-pattern.h","old_contents":"#ifndef _FAKE_LOCK_SCREEN_PATTERN_H_\n#define _FAKE_LOCK_SCREEN_PATTERN_H_\n\n#include \n\n#if !GTK_CHECK_VERSION(3, 0, 0)\ntypedef struct {\n gdouble red;\n gdouble green;\n gdouble blue;\n gdouble alpha;\n} GdkRGBA;\n#endif\n\ntypedef struct _FakeLockOption {\n void *module;\n gchar *real;\n gchar *dummy;\n} FakeLockOption;\n\ntypedef struct {\n gboolean marked;\n gint value;\n GdkPoint top_left;\n GdkPoint bottom_right;\n} FakeLockPatternPoint;\n\ntypedef enum {\n FLSP_ONE_STROKE,\n FLSP_ON_BOARD,\n FLSP_N_PATTERN,\n} FakeLockScreenPattern;\n\nvoid flsp_draw_circle(cairo_t *context,\n gint x, gint y, gint radius,\n GdkRGBA circle, GdkRGBA border);\n\ngboolean is_marked(gint x, gint y,\n gint *marked, void *user_data);\n\n#endif\n","new_contents":"#ifndef _FAKE_LOCK_SCREEN_PATTERN_H_\n#define _FAKE_LOCK_SCREEN_PATTERN_H_\n\n#include \n\n#if !GTK_CHECK_VERSION(3, 0, 0)\ntypedef struct {\n gdouble red;\n gdouble green;\n gdouble blue;\n gdouble alpha;\n} GdkRGBA;\n#endif\n\ntypedef struct _FakeLockOption {\n void *module;\n gchar *real;\n gchar *dummy;\n} FakeLockOption;\n\ntypedef struct {\n gint mark;\n gint value;\n GdkPoint top_left;\n GdkPoint bottom_right;\n} FakeLockPatternPoint;\n\ntypedef enum {\n FLSP_ONE_STROKE,\n FLSP_ON_BOARD,\n FLSP_N_PATTERN,\n} FakeLockScreenPattern;\n\nvoid flsp_draw_circle(cairo_t *context,\n gint x, gint y, gint radius,\n GdkRGBA circle, GdkRGBA border);\n\ngboolean is_marked(gint x, gint y,\n gint *marked, void *user_data);\n\n#endif\n","subject":"Use gint to store index","message":"Use gint to store index\n","lang":"C","license":"mit","repos":"kenhys\/fake-lock-screen-pattern,kenhys\/fake-lock-screen-pattern"} {"commit":"42ce77eef9b32dd518d8f35f98f176950d2ef53a","old_file":"utils\/commander.c","new_file":"utils\/commander.c","old_contents":"","new_contents":"#ifndef _WISH_COMMANDER\n#define _WISH_COMMANDER\n\n#include \n#include \n#include \n#include \n#include \n#include \n\nchar *exit_color;\n\nint execute(char *path, char *arg_arr[]) {\n int pid;\n if (!(pid = fork())) {\n execvp(path, arg_arr);\n \/\/ This is only reached if the execvp function fails\n exit(-1);\n } else {\n int status;\n wait(&status);\n return status;\n }\n}\n\nint get_and_run_userin() {\n char buff[256];\n fgets(buff, sizeof(buff), stdin);\n\n \/\/ Buff will have space-separated command line arguments, then a newline,\n \/\/ then a terminating null. We can use strsep to get rid of the newline.\n \/\/ Since fgets will terminate on the first newline, we can be certain there\n \/\/ is no next command after it\n\n char *ptr_to_buff = buff;\n char *command = strsep(&ptr_to_buff, \"\\n\");\n \/\/ Blank lines should just return 0, since a blank command doesn't 'crash'\n if (!(*command)) {\n return 0;\n }\n int num_args = 1;\n int i; for (i = 0; command[i]; i++) {\n if (command[i] == ' ') num_args++;\n }\n char *args[num_args + 1];\n for (i = 0; i < num_args; i++) {\n args[i] = strsep(&command, \" \");\n }\n args[num_args] = NULL;\n\n return execute(args[0], args);\n}\n\n#endif\n\n","subject":"Add file to handle executing commands from stdin","message":"Add file to handle executing commands from stdin\n","lang":"C","license":"mit","repos":"elc1798\/wish"} {"commit":"5b7bc8baba35bc816c7dc94768d9fae05c7b78ec","old_file":"zephyr\/shim\/include\/zephyr_host_command.h","new_file":"zephyr\/shim\/include\/zephyr_host_command.h","old_contents":"\/* Copyright 2021 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\n#if !defined(__CROS_EC_HOST_COMMAND_H) || \\\n\tdefined(__CROS_EC_ZEPHYR_HOST_COMMAND_H)\n#error \"This file must only be included from host_command.h. \" \\\n\t\"Include host_command.h directly\"\n#endif\n#define __CROS_EC_ZEPHYR_HOST_COMMAND_H\n\n#include \n\n#ifdef CONFIG_PLATFORM_EC_HOSTCMD\n\n\/**\n * See include\/host_command.h for documentation.\n *\/\n#define DECLARE_HOST_COMMAND(_command, _routine, _version_mask) \\\n\tSTRUCT_SECTION_ITERABLE(host_command, _cros_hcmd_##_command) = { \\\n\t\t.command = _command, \\\n\t\t.handler = _routine, \\\n\t\t.version_mask = _version_mask, \\\n\t}\n#else \/* !CONFIG_PLATFORM_EC_HOSTCMD *\/\n#ifdef __clang__\n#define DECLARE_HOST_COMMAND(command, routine, version_mask)\n#else\n#define DECLARE_HOST_COMMAND(command, routine, version_mask) \\\n\tenum ec_status (routine)(struct host_cmd_handler_args *args) \\\n\t\t__attribute__((unused))\n#endif \/* __clang__ *\/\n#endif \/* CONFIG_PLATFORM_EC_HOSTCMD *\/\n","new_contents":"\/* Copyright 2021 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\n#if !defined(__CROS_EC_HOST_COMMAND_H) || \\\n\tdefined(__CROS_EC_ZEPHYR_HOST_COMMAND_H)\n#error \"This file must only be included from host_command.h. \" \\\n\t\"Include host_command.h directly\"\n#endif\n#define __CROS_EC_ZEPHYR_HOST_COMMAND_H\n\n#include \n\n#ifdef CONFIG_PLATFORM_EC_HOSTCMD\n\n\/**\n * See include\/host_command.h for documentation.\n *\/\n#define DECLARE_HOST_COMMAND(_command, _routine, _version_mask) \\\n\tSTRUCT_SECTION_ITERABLE(host_command, _cros_hcmd_##_command) = { \\\n\t\t.command = _command, \\\n\t\t.handler = _routine, \\\n\t\t.version_mask = _version_mask, \\\n\t}\n#else \/* !CONFIG_PLATFORM_EC_HOSTCMD *\/\n\n\/*\n * Create a fake routine to call the function. The linker should\n * garbage-collect it since it is behind 'if (0)'\n *\/\n#define DECLARE_HOST_COMMAND(command, routine, version_mask)\t\t\\\n\tint __remove_ ## command(void)\t\t\t\t\t\\\n\t{\t\t\t\t\t\t\t\t\\\n\t\tif (0)\t\t\t\t\t\t\t\\\n\t\t\troutine(NULL);\t\t\t\t\t\\\n\t\treturn 0;\t\t\t\t\t\t\\\n\t}\n\n#endif \/* CONFIG_PLATFORM_EC_HOSTCMD *\/\n","subject":"Use a different way of handling no host commands","message":"zephyr: Use a different way of handling no host commands\n\nWhen CONFIG_PLATFORM_EC_HOSTCMD is not enabled we want to silently drop\nthe handler routines from the build. The current approach works for gcc\nbut not for clang.\n\nUse an exported function instead.\n\nBUG=b:208648337\nBRANCH=none\nTEST=CQ and gitlab\n\nSigned-off-by: Simon Glass \nChange-Id: I63f74e8081556c726472782f60bddbbfbc3e9bf0\nReviewed-on: https:\/\/chromium-review.googlesource.com\/c\/chromiumos\/platform\/ec\/+\/3313320\nReviewed-by: Jeremy Bettis <4df7b5147fee087dca33c181f288ee7dbf56e022@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":"f6a808e5190055af32abe8060bbe7d4ab2d5d6d4","old_file":"Nocilla\/LSNocilla.h","new_file":"Nocilla\/LSNocilla.h","old_contents":"#import \n#import \"Nocilla.h\"\n#import \"LSHTTPRequest.h\"\n\n@class LSStubRequest;\n@class LSStubResponse;\n\nextern NSString * const LSUnexpectedRequest;\n\n@interface LSNocilla : NSObject\n+ (LSNocilla *)sharedInstance;\n\n@property (nonatomic, strong, readonly) NSArray *stubbedRequests;\n- (void)start;\n- (void)stop;\n- (void)addStubbedRequest:(LSStubRequest *)request;\n- (void)clearStubs;\n\n- (LSStubResponse *)responseForRequest:(id)request;\n@end\n","new_contents":"#import \n#import \"Nocilla.h\"\n\n@class LSStubRequest;\n@class LSStubResponse;\n@protocol LSHTTPRequest;\n\nextern NSString * const LSUnexpectedRequest;\n\n@interface LSNocilla : NSObject\n+ (LSNocilla *)sharedInstance;\n\n@property (nonatomic, strong, readonly) NSArray *stubbedRequests;\n- (void)start;\n- (void)stop;\n- (void)addStubbedRequest:(LSStubRequest *)request;\n- (void)clearStubs;\n\n- (LSStubResponse *)responseForRequest:(id)request;\n@end\n","subject":"Replace import with forward declaration.","message":"Replace import with forward declaration.\n","lang":"C","license":"mit","repos":"pcantrell\/Nocilla,ileitch\/Nocilla,luisobo\/Nocilla,0xmax\/Nocilla,patcheng\/Nocilla,tomguthrie\/Nocilla,Panajev\/Nocilla,luxe-eng\/valet-ios.Nocilla,SanjoDeundiak\/Nocilla,TheAdamBorek\/Nocilla,luxe-eng\/valet-ios.Nocilla,0xmax\/Nocilla,TheAdamBorek\/Nocilla"} {"commit":"f42bb8f845e08da0982a5b8c1c57374ddffdc0b3","old_file":"Queue\/array_queue.c","new_file":"Queue\/array_queue.c","old_contents":"","new_contents":"#include \n#include \n#include \n\/* This is Queue Implementation using Array *\/\n\n#define MAXSIZE 101\n#define BOOL_PRINT(bool_expr) \"%s\\n\", (bool_expr) ? \"true\" : \"false\"\n\nint A[MAXSIZE];\nint front_q = -1;\nint end_q = -1;\n\nvoid enq(int data){\n\n\tif(isEmpty()){\n\t\tA[++end_q]=data;\n\t\tfront_q ++;\n\t\treturn;\n\t}\n\tif (end_q < MAXSIZE-1){\n\t\tA[++end_q] = data;\n\t}\n\telse{\n\t\tprintf(\"Error: Queue is full \\n\");\n\t\treturn;\n\t}\n}\n\nint deq(){\n\tif(front_q != -1 && front_q <= end_q){\n\treturn A[front_q++];\n\t}\n\n\telse{\n\t\tprintf(\"Error: Queue is empty \\n\");\n\t\treturn -1;\n\t}\n}\n\n\n\nint isEmpty(){\n\tif(front_q!= -1) return false;\n\telse return true;\n}\n\nvoid q_print(){\n\tprintf(\"Queue is : \");\n\tint i,data;\n\tint count =end_q;\n\tint start = front_q;\n\n\tfor(i =start; i<=count;i++){\n\t\t data = deq();\n\t\tprintf(\"%d \", data);\n\t}\n\tprintf(\"\\n\");\n}\n\nint main(){\n\t\n\tint i;\n\tprintf(\"is queue empty? \\n\");\n\tprintf(BOOL_PRINT(isEmpty()));\n\t\n\tenq(10);\n\tprintf(\"front_q is at %d end_q is at %d \\n\",front_q,end_q);\n\n\tenq(11);\n\tprintf(\"front_q is at %d end_q is at %d \\n\",front_q,end_q);\n\tenq(12);\n\tprintf(\"front_q is at %d end_q is at %d \\n\",front_q,end_q);\n\tenq(15);\n\tprintf(\"front_q is at %d end_q is at %d \\n\",front_q,end_q);\n\n\ti = deq();\n\tprintf(\"Popped data is %d\\n\",i );\n\n\tprintf(\"front_q is at %d end_q is at %d \\n\",front_q,end_q);\n\n\tq_print(); \/\/ Note: this is just for vizualizing and this actually results in loss of queue data\n\n\treturn 0;\n}","subject":"Add array implementation of queue","message":"Add array implementation of queue\n","lang":"C","license":"mit","repos":"anaghajoshi\/C_DataStructures_Algorithms"} {"commit":"14870a46f26f2586a29731508842e04ac48cc5ca","old_file":"display_device.h","new_file":"display_device.h","old_contents":"","new_contents":"\/*\tCopyright (c) 2013 Adam Dej\n\t\n\tPermission is hereby granted, free of charge, to any person obtaining a copy\n\tof this software and associated documentation files (the \"Software\"), to deal\n\tin the Software without restriction, including without limitation the rights\n\tto use, copy, modify, merge, publish, distribute, sublicense, and\/or sell\n\tcopies of the Software, and to permit persons to whom the Software is\n\tfurnished to do so, subject to the following conditions:\n\n\tThe above copyright notice and this permission notice shall be included in\n\tall copies or substantial portions of the Software.\n\n\tTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\tIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\tFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\tAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\tLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\tOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\tTHE SOFTWARE. *\/\n\n#ifndef __DISPLAY_DEVICE_H\n#define __DISPLAY_DEVICE_H\n\n#include \n#include \n\n#ifdef EMBDEGFX_16\n\ttypedef uint16_t uintpix;\n#else\n\ttypedef uint8_t uintpix;\n#endif\n\ntypedef struct {\n\tvoid *data;\n\tbool (*set_pixel)(uintpix x, uintpix y, void *data);\n\tbool (*unset_pixel)(uintpix x, uintpix y, void *data);\n\tbool (*clear_display)(void *data);\n\tbool (*commit)(void *data);\n} DISPLAY_1BIT;\n\ntypedef struct {\n\t\/\/TODO\n} DISPLAY_8BIT;\n\ntypedef struct {\n\t\/\/TODO\n} DISPLAY_24BIT;\n\n\/\/If none of those modes is suitable feel free to add your own\n\n#endif","subject":"Add header with structs representing basic display types","message":"Add header with structs representing basic display types\n","lang":"C","license":"mit","repos":"adam-dej\/embegfx,adam-dej\/embegfx,adam-dej\/embegfx"} {"commit":"ad24240e3d614bf8c10199590571a48ac3debc6e","old_file":"test\/profile\/instrprof-basic.c","new_file":"test\/profile\/instrprof-basic.c","old_contents":"\/\/ RUN: %clang_profgen -o %t -O3 -flto %s\n\/\/ RUN: env LLVM_PROFILE_FILE=%t.profraw %t\n\/\/ RUN: llvm-profdata merge -o %t.profdata %t.profraw\n\/\/ RUN: %clang_profuse=%t.profdata -o - -S -emit-llvm %s | FileCheck %s\n\nint main(int argc, const char *argv[]) {\n \/\/ CHECK: br i1 %{{.*}}, label %{{.*}}, label %{{.*}}, !prof !1\n if (argc)\n return 0;\n return 1;\n}\n\/\/ CHECK: !1 = metadata !{metadata !\"branch_weights\", i32 2, i32 1}\n","new_contents":"\/\/ RUN: %clang_profgen -o %t -O3 %s\n\/\/ RUN: env LLVM_PROFILE_FILE=%t.profraw %t\n\/\/ RUN: llvm-profdata merge -o %t.profdata %t.profraw\n\/\/ RUN: %clang_profuse=%t.profdata -o - -S -emit-llvm %s | FileCheck %s\n\nint main(int argc, const char *argv[]) {\n \/\/ CHECK: br i1 %{{.*}}, label %{{.*}}, label %{{.*}}, !prof !1\n if (argc)\n return 0;\n return 1;\n}\n\/\/ CHECK: !1 = metadata !{metadata !\"branch_weights\", i32 2, i32 1}\n","subject":"Remove LTO dependency from test","message":"InstrProf: Remove LTO dependency from test\n\nThe -flto flag relies on linker features that are not available on all\nplatforms.\n\n\n\ngit-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@205318 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":"ee12c53b52716c08c50bf0c64b644c9af5be10de","old_file":"SAMCategories\/SAMCategories.h","new_file":"SAMCategories\/SAMCategories.h","old_contents":"\/\/\n\/\/ SAMCategories.h\n\/\/ SAMCategories\n\/\/\n\/\/ Created by Sam Soffes on 7\/17\/13.\n\/\/ Copyright 2013 Sam Soffes. All rights reserved.\n\/\/\n\n\/\/ Foundation\n#import \"NSArray+SAMAdditions.h\"\n#import \"NSData+SAMAdditions.h\"\n#import \"NSDate+SAMAdditions.h\"\n#import \"NSDictionary+SAMAdditions.h\"\n#import \"NSNumber+SAMAdditions.h\"\n#import \"NSObject+SAMAdditions.h\"\n#import \"NSString+SAMAdditions.h\"\n#import \"NSURL+SAMAdditions.h\"\n\n\/\/ UIKit\n#if TARGET_OS_IPHONE\n\t#import \"UIApplication+SAMAdditions.h\"\n\t#import \"UIColor+SAMAdditions.h\"\n\t#import \"UIDevice+SAMAdditions.h\"\n\t#import \"UIScreen+SAMAdditions.h\"\n\t#import \"UIScrollView+SAMAdditions.h\"\n\t#import \"UIView+SAMAdditions.h\"\n\t#import \"UIViewController+SAMAdditions.h\"\n#endif\n","new_contents":"\/\/\n\/\/ SAMCategories.h\n\/\/ SAMCategories\n\/\/\n\/\/ Created by Sam Soffes on 7\/17\/13.\n\/\/ Copyright 2013 Sam Soffes. All rights reserved.\n\/\/\n\n\/\/ Foundation\n#import \"NSArray+SAMAdditions.h\"\n#import \"NSData+SAMAdditions.h\"\n#import \"NSDate+SAMAdditions.h\"\n#import \"NSDictionary+SAMAdditions.h\"\n#import \"NSNumber+SAMAdditions.h\"\n#import \"NSObject+SAMAdditions.h\"\n#import \"NSString+SAMAdditions.h\"\n#import \"NSURL+SAMAdditions.h\"\n\n\/\/ UIKit\n#if TARGET_OS_IPHONE\n\t#import \"UIApplication+SAMAdditions.h\"\n\t#import \"UIColor+SAMAdditions.h\"\n\t#import \"UIControl+SAMAdditions.h\"\n\t#import \"UIDevice+SAMAdditions.h\"\n\t#import \"UIScreen+SAMAdditions.h\"\n\t#import \"UIScrollView+SAMAdditions.h\"\n\t#import \"UIView+SAMAdditions.h\"\n\t#import \"UIViewController+SAMAdditions.h\"\n#endif\n","subject":"Add missing import for UIControl+SAMAdditions.h","message":"Add missing import for UIControl+SAMAdditions.h\n","lang":"C","license":"mit","repos":"soffes\/SAMCategories,cloudjanak\/SAMCategories"} {"commit":"91dbe918a3ed65fa8a057d7ced6ffc2016857d50","old_file":"SwiftDevHints\/SwiftDevHints.h","new_file":"SwiftDevHints\/SwiftDevHints.h","old_contents":"\/\/\n\/\/ SwiftDevHints.h\n\/\/ SwiftDevHints\n\/\/\n\/\/ Created by ZHOU DENGFENG on 15\/7\/17.\n\/\/ Copyright © 2017 ZHOU DENGFENG DEREK. All rights reserved.\n\/\/\n\n#import \n\n#import \n\n\/\/! Project version number for SwiftDevHints.\nFOUNDATION_EXPORT double SwiftDevHintsVersionNumber;\n\n\/\/! Project version string for SwiftDevHints.\nFOUNDATION_EXPORT const unsigned char SwiftDevHintsVersionString[];\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\/\/ SwiftDevHints.h\n\/\/ SwiftDevHints\n\/\/\n\/\/ Created by ZHOU DENGFENG on 15\/7\/17.\n\/\/ Copyright © 2017 ZHOU DENGFENG DEREK. All rights reserved.\n\/\/\n\n@import Foundation;\n\n#import \n\n\/\/! Project version number for SwiftDevHints.\nFOUNDATION_EXPORT double SwiftDevHintsVersionNumber;\n\n\/\/! Project version string for SwiftDevHints.\nFOUNDATION_EXPORT const unsigned char SwiftDevHintsVersionString[];\n\n\/\/ In this header, you should import all the public headers of your framework using statements like #import \n\n\n","subject":"Remove UIKit import to support macOS","message":"Remove UIKit import to support macOS\n","lang":"C","license":"mit","repos":"derekcoder\/SwiftDevHints,derekcoder\/SwiftDevHints"} {"commit":"8ad9143cc688ba501223684d2eb723f5c46237b2","old_file":"test\/wasm\/soft\/float\/addtf3.c","new_file":"test\/wasm\/soft\/float\/addtf3.c","old_contents":"#include \"src\/math\/reinterpret.h\"\n#include \n\nlong double __addtf3(long double, long double);\n\nstatic _Bool equivalent(long double x, long double y)\n{\n if (x != x)\n return y != y;\n\n return reinterpret(unsigned __int128, x) == reinterpret(unsigned __int128, y);\n}\n\nstatic _Bool run(long double x, long double y)\n{\n return equivalent(x + y, __addtf3(x, y));\n}\n\n#define TEST(x, y) do { \\\n _Static_assert(__builtin_constant_p((long double)(x) + (long double)(y)), \"This test requires compile-time constants\"); \\\n assert(run(x, y)); \\\n} while (0)\n","new_contents":"#include \"src\/math\/reinterpret.h\"\n#include \n#include \n\nlong double __addtf3(long double, long double);\n\nstatic _Bool run(long double x, long double y)\n{\n return reinterpret(unsigned __int128, x + y) == reinterpret(unsigned __int128, __addtf3(x, y));\n}\n\nint main(void)\n{\n assert(isnan(__addtf3(NAN, NAN)));\n assert(isnan(__addtf3(NAN, INFINITY)));\n assert(isnan(__addtf3(NAN, 0x1.23456789abcdefp+3L)));\n assert(isnan(__addtf3(INFINITY, -INFINITY)));\n\n assert(run(INFINITY, INFINITY));\n assert(run(INFINITY, -0x1.23456789abcdefp+3849L));\n}\n","subject":"Test non-finite soft float addition","message":"Test non-finite soft float addition\n","lang":"C","license":"mit","repos":"jdh8\/metallic,jdh8\/metallic,jdh8\/metallic,jdh8\/metallic,jdh8\/metallic"} {"commit":"7bed25a23f0967cc5a57bfe913416a85a59fd913","old_file":"tests-clar\/attr\/attr_expect.h","new_file":"tests-clar\/attr\/attr_expect.h","old_contents":"#ifndef __CLAR_TEST_ATTR_EXPECT__\n#define __CLAR_TEST_ATTR_EXPECT__\n\nenum attr_expect_t {\n\tEXPECT_FALSE,\n\tEXPECT_TRUE,\n\tEXPECT_UNDEFINED,\n\tEXPECT_STRING\n};\n\nstruct attr_expected {\n\tconst char *path;\n\tconst char *attr;\n\tenum attr_expect_t expected;\n\tconst char *expected_str;\n};\n\nstatic inline void attr_check_expected(\n\tenum attr_expect_t expected,\n\tconst char *expected_str,\n\tconst char *value)\n{\n\tswitch (expected) {\n\tcase EXPECT_TRUE:\n\t\tcl_assert(GIT_ATTR_TRUE(value));\n\t\tbreak;\n\n\tcase EXPECT_FALSE:\n\t\tcl_assert(GIT_ATTR_FALSE(value));\n\t\tbreak;\n\n\tcase EXPECT_UNDEFINED:\n\t\tcl_assert(GIT_ATTR_UNSPECIFIED(value));\n\t\tbreak;\n\n\tcase EXPECT_STRING:\n\t\tcl_assert_strequal(expected_str, value);\n\t\tbreak;\n\t}\n}\n\n#endif\n","new_contents":"#ifndef __CLAR_TEST_ATTR_EXPECT__\n#define __CLAR_TEST_ATTR_EXPECT__\n\nenum attr_expect_t {\n\tEXPECT_FALSE,\n\tEXPECT_TRUE,\n\tEXPECT_UNDEFINED,\n\tEXPECT_STRING\n};\n\nstruct attr_expected {\n\tconst char *path;\n\tconst char *attr;\n\tenum attr_expect_t expected;\n\tconst char *expected_str;\n};\n\nGIT_INLINE(void) attr_check_expected(\n\tenum attr_expect_t expected,\n\tconst char *expected_str,\n\tconst char *value)\n{\n\tswitch (expected) {\n\tcase EXPECT_TRUE:\n\t\tcl_assert(GIT_ATTR_TRUE(value));\n\t\tbreak;\n\n\tcase EXPECT_FALSE:\n\t\tcl_assert(GIT_ATTR_FALSE(value));\n\t\tbreak;\n\n\tcase EXPECT_UNDEFINED:\n\t\tcl_assert(GIT_ATTR_UNSPECIFIED(value));\n\t\tbreak;\n\n\tcase EXPECT_STRING:\n\t\tcl_assert_strequal(expected_str, value);\n\t\tbreak;\n\t}\n}\n\n#endif\n","subject":"Fix the build on Windows","message":"Fix the build on Windows\n","lang":"C","license":"lgpl-2.1","repos":"saurabhsuniljain\/libgit2,joshtriplett\/libgit2,stewid\/libgit2,magnus98\/TEST,mrksrm\/Mingijura,swisspol\/DEMO-libgit2,oaastest\/libgit2,Tousiph\/Demo1,maxiaoqian\/libgit2,Corillian\/libgit2,amyvmiwei\/libgit2,kenprice\/libgit2,t0xicCode\/libgit2,Snazz2001\/libgit2,sygool\/libgit2,evhan\/libgit2,maxiaoqian\/libgit2,mrksrm\/Mingijura,JIghtuse\/libgit2,nacho\/libgit2,amyvmiwei\/libgit2,falqas\/libgit2,rcorre\/libgit2,kenprice\/libgit2,MrHacky\/libgit2,zodiac\/libgit2.js,mingyaaaa\/libgit2,JIghtuse\/libgit2,jflesch\/libgit2-mariadb,KTXSoftware\/libgit2,linquize\/libgit2,nacho\/libgit2,maxiaoqian\/libgit2,linquize\/libgit2,Snazz2001\/libgit2,sim0629\/libgit2,Corillian\/libgit2,dleehr\/libgit2,chiayolin\/libgit2,since2014\/libgit2,Corillian\/libgit2,swisspol\/DEMO-libgit2,MrHacky\/libgit2,ardumont\/libgit2,chiayolin\/libgit2,spraints\/libgit2,swisspol\/DEMO-libgit2,JIghtuse\/libgit2,iankronquist\/libgit2,amyvmiwei\/libgit2,jeffhostetler\/public_libgit2,yosefhackmon\/libgit2,saurabhsuniljain\/libgit2,Snazz2001\/libgit2,saurabhsuniljain\/libgit2,spraints\/libgit2,mingyaaaa\/libgit2,claudelee\/libgit2,linquize\/libgit2,ardumont\/libgit2,saurabhsuniljain\/libgit2,dleehr\/libgit2,mcanthony\/libgit2,mhp\/libgit2,zodiac\/libgit2.js,nokiddin\/libgit2,spraints\/libgit2,Aorjoa\/libgit2_maked_lib,leoyanggit\/libgit2,whoisj\/libgit2,t0xicCode\/libgit2,Aorjoa\/libgit2_maked_lib,yosefhackmon\/libgit2,Tousiph\/Demo1,Corillian\/libgit2,MrHacky\/libgit2,oaastest\/libgit2,stewid\/libgit2,nokiddin\/libgit2,kissthink\/libgit2,t0xicCode\/libgit2,saurabhsuniljain\/libgit2,whoisj\/libgit2,JIghtuse\/libgit2,zodiac\/libgit2.js,stewid\/libgit2,kissthink\/libgit2,kenprice\/libgit2,falqas\/libgit2,dleehr\/libgit2,leoyanggit\/libgit2,leoyanggit\/libgit2,linquize\/libgit2,linquize\/libgit2,dleehr\/libgit2,mhp\/libgit2,rcorre\/libgit2,jeffhostetler\/public_libgit2,whoisj\/libgit2,JIghtuse\/libgit2,since2014\/libgit2,amyvmiwei\/libgit2,stewid\/libgit2,jflesch\/libgit2-mariadb,sygool\/libgit2,Tousiph\/Demo1,ardumont\/libgit2,KTXSoftware\/libgit2,maxiaoqian\/libgit2,sim0629\/libgit2,claudelee\/libgit2,jflesch\/libgit2-mariadb,JIghtuse\/libgit2,claudelee\/libgit2,t0xicCode\/libgit2,yosefhackmon\/libgit2,yongthecoder\/libgit2,stewid\/libgit2,nacho\/libgit2,falqas\/libgit2,ardumont\/libgit2,MrHacky\/libgit2,KTXSoftware\/libgit2,kissthink\/libgit2,mcanthony\/libgit2,raybrad\/libit2,jamieleecool\/ptest,iankronquist\/libgit2,Corillian\/libgit2,yosefhackmon\/libgit2,iankronquist\/libgit2,sygool\/libgit2,jflesch\/libgit2-mariadb,mhp\/libgit2,nokiddin\/libgit2,dleehr\/libgit2,chiayolin\/libgit2,jamieleecool\/ptest,magnus98\/TEST,raybrad\/libit2,since2014\/libgit2,mrksrm\/Mingijura,Snazz2001\/libgit2,jamieleecool\/ptest,claudelee\/libgit2,dleehr\/libgit2,magnus98\/TEST,iankronquist\/libgit2,joshtriplett\/libgit2,Snazz2001\/libgit2,skabel\/manguse,since2014\/libgit2,claudelee\/libgit2,skabel\/manguse,oaastest\/libgit2,jeffhostetler\/public_libgit2,joshtriplett\/libgit2,falqas\/libgit2,jamieleecool\/ptest,Aorjoa\/libgit2_maked_lib,yosefhackmon\/libgit2,swisspol\/DEMO-libgit2,raybrad\/libit2,kenprice\/libgit2,sygool\/libgit2,Tousiph\/Demo1,sim0629\/libgit2,raybrad\/libit2,kissthink\/libgit2,stewid\/libgit2,Aorjoa\/libgit2_maked_lib,saurabhsuniljain\/libgit2,skabel\/manguse,zodiac\/libgit2.js,amyvmiwei\/libgit2,joshtriplett\/libgit2,nacho\/libgit2,yongthecoder\/libgit2,mingyaaaa\/libgit2,Aorjoa\/libgit2_maked_lib,nokiddin\/libgit2,oaastest\/libgit2,nokiddin\/libgit2,magnus98\/TEST,yosefhackmon\/libgit2,yongthecoder\/libgit2,ardumont\/libgit2,Tousiph\/Demo1,whoisj\/libgit2,kissthink\/libgit2,mhp\/libgit2,jflesch\/libgit2-mariadb,mingyaaaa\/libgit2,yongthecoder\/libgit2,mcanthony\/libgit2,kenprice\/libgit2,zodiac\/libgit2.js,falqas\/libgit2,spraints\/libgit2,mcanthony\/libgit2,whoisj\/libgit2,since2014\/libgit2,sim0629\/libgit2,kissthink\/libgit2,KTXSoftware\/libgit2,maxiaoqian\/libgit2,iankronquist\/libgit2,sim0629\/libgit2,evhan\/libgit2,oaastest\/libgit2,iankronquist\/libgit2,t0xicCode\/libgit2,skabel\/manguse,leoyanggit\/libgit2,swisspol\/DEMO-libgit2,joshtriplett\/libgit2,sim0629\/libgit2,chiayolin\/libgit2,skabel\/manguse,whoisj\/libgit2,spraints\/libgit2,spraints\/libgit2,mingyaaaa\/libgit2,mingyaaaa\/libgit2,since2014\/libgit2,joshtriplett\/libgit2,rcorre\/libgit2,mcanthony\/libgit2,mrksrm\/Mingijura,jflesch\/libgit2-mariadb,oaastest\/libgit2,skabel\/manguse,leoyanggit\/libgit2,claudelee\/libgit2,KTXSoftware\/libgit2,Tousiph\/Demo1,mhp\/libgit2,jeffhostetler\/public_libgit2,rcorre\/libgit2,sygool\/libgit2,ardumont\/libgit2,evhan\/libgit2,mrksrm\/Mingijura,Snazz2001\/libgit2,chiayolin\/libgit2,mrksrm\/Mingijura,rcorre\/libgit2,Corillian\/libgit2,falqas\/libgit2,maxiaoqian\/libgit2,chiayolin\/libgit2,sygool\/libgit2,amyvmiwei\/libgit2,yongthecoder\/libgit2,KTXSoftware\/libgit2,mhp\/libgit2,kenprice\/libgit2,rcorre\/libgit2,linquize\/libgit2,yongthecoder\/libgit2,raybrad\/libit2,magnus98\/TEST,leoyanggit\/libgit2,nokiddin\/libgit2,MrHacky\/libgit2,swisspol\/DEMO-libgit2,jeffhostetler\/public_libgit2,evhan\/libgit2,t0xicCode\/libgit2,magnus98\/TEST,jeffhostetler\/public_libgit2,MrHacky\/libgit2,mcanthony\/libgit2"} {"commit":"dc2edbb5925de782ba73ce7e2e496c17b5427cff","old_file":"reptyr.h","new_file":"reptyr.h","old_contents":"\/*\n * Copyright (C) 2011 by Nelson Elhage\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#define REPTYR_VERSION \"0.4\"\n\nint attach_child(pid_t pid, const char *pty, int force_stdio);\n#define __printf __attribute__((format(printf, 1, 2)))\nvoid __printf die(const char *msg, ...);\nvoid __printf debug(const char *msg, ...);\nvoid __printf error(const char *msg, ...);\n","new_contents":"\/*\n * Copyright (C) 2011 by Nelson Elhage\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#define REPTYR_VERSION \"0.4dev\"\n\nint attach_child(pid_t pid, const char *pty, int force_stdio);\n#define __printf __attribute__((format(printf, 1, 2)))\nvoid __printf die(const char *msg, ...);\nvoid __printf debug(const char *msg, ...);\nvoid __printf error(const char *msg, ...);\n","subject":"Bump the version number for development.","message":"Bump the version number for development.\n","lang":"C","license":"mit","repos":"nelhage\/reptyr,jerome-pouiller\/reredirect,yatsek\/reptyr,yatsek\/reptyr,nelhage\/reptyr,yatsek\/reptyr,developerfm\/reptyr,developerfm\/reptyr,developerfm\/reptyr,nelhage\/reptyr,jerome-pouiller\/reredirect"} {"commit":"b4324c4e201ad7a0ee1f5a316cbc119cd8be33c2","old_file":"OpenMRS-iOS\/EditPatientForm.h","new_file":"OpenMRS-iOS\/EditPatientForm.h","old_contents":"\/\/\n\/\/ EditPatientForm.h\n\/\/ OpenMRS-iOS\n\/\/\n\/\/ Created by Yousef Hamza on 7\/5\/15.\n\/\/ Copyright (c) 2015 Erway Software. All rights reserved.\n\/\/\n\n#import \"XLForm.h\"\n#import \"XLFormViewController.h\"\n#import \"MRSPatient.h\"\n\n@interface EditPatientForm : XLFormViewController \n\n- (instancetype)initWithPatient:(MRSPatient *)patient;\n@property (nonatomic, strong) MRSPatient *patient;\n\n@end","new_contents":"\/\/\n\/\/ EditPatientForm.h\n\/\/ OpenMRS-iOS\n\/\/\n\/\/ Created by Yousef Hamza on 7\/5\/15.\n\/\/ Copyright (c) 2015 Erway Software. All rights reserved.\n\/\/\n\n#import \"XLForm.h\"\n#import \"XLFormViewController.h\"\n#import \"MRSPatient.h\"\n\n@interface EditPatientForm : XLFormViewController \n\n@property (nonatomic, strong) MRSPatient *patient;\n\n- (instancetype)initWithPatient:(MRSPatient *)patient;\n\n@end","subject":"Move method after property declaration","message":"Move method after property declaration\n","lang":"C","license":"mpl-2.0","repos":"Undo1\/openmrs-contrib-ios-client,Undo1\/openmrs-contrib-ios-client,yousefhamza\/openmrs-contrib-ios-client,yousefhamza\/openmrs-contrib-ios-client"} {"commit":"b781d46789fdbe4ae039ba622d1285b3a09afda3","old_file":"arch\/mvme88k\/include\/setjmp.h","new_file":"arch\/mvme88k\/include\/setjmp.h","old_contents":"\/*\t$OpenBSD: setjmp.h,v 1.6 2001\/08\/12 12:03:02 heko Exp $\t*\/\n\n\/*\n * machine\/setjmp.h: machine dependent setjmp-related information.\n *\/\n#ifndef __MACHINE_SETJMP_H__\n#define __MACHINE_SETJMP_H__\n#define\t_JBLEN\t22\t\t\/* size, in longs, of a jmp_buf *\/\n#endif \/* __MACHINE_SETJMP_H__ *\/\n","new_contents":"\/*\t$OpenBSD: setjmp.h,v 1.7 2003\/08\/01 07:41:33 miod Exp $\t*\/\n\n\/*\n * machine\/setjmp.h: machine dependent setjmp-related information.\n *\/\n#ifndef __MACHINE_SETJMP_H__\n#define __MACHINE_SETJMP_H__\n#define\t_JBLEN\t21\t\t\/* size, in longs, of a jmp_buf *\/\n#endif \/* __MACHINE_SETJMP_H__ *\/\n","subject":"Fix the *longjmp() behaviour - it is legal to reuse a jmp_buf several times. Gets us a working perl 5.8.","message":"Fix the *longjmp() behaviour - it is legal to reuse a jmp_buf several times.\nGets us a working perl 5.8.\n","lang":"C","license":"isc","repos":"orumin\/openbsd-efivars,orumin\/openbsd-efivars,orumin\/openbsd-efivars,orumin\/openbsd-efivars"} {"commit":"5662584a00d224dbfc0510fa97fcc96f0dfdbb1e","old_file":"lib\/vpsc\/blocks.h","new_file":"lib\/vpsc\/blocks.h","old_contents":"","new_contents":"\/**\n * \\brief A block structure defined over the variables\n *\n * A block structure defined over the variables such that each block contains\n * 1 or more variables, with the invariant that all constraints inside a block\n * are satisfied by keeping the variables fixed relative to one another\n *\n * Authors:\n * Tim Dwyer \n *\n * Copyright (C) 2005 Authors\n *\n * This version is released under the CPL (Common Public License) with\n * the Graphviz distribution.\n * A version is also available under the LGPL as part of the Adaptagrams\n * project: http:\/\/sourceforge.net\/projects\/adaptagrams. \n * If you make improvements or bug fixes to this code it would be much\n * appreciated if you could also contribute those changes back to the\n * Adaptagrams repository.\n *\/\n\n#ifndef SEEN_REMOVEOVERLAP_BLOCKS_H\n#define SEEN_REMOVEOVERLAP_BLOCKS_H\n\n#ifdef RECTANGLE_OVERLAP_LOGGING\n#define LOGFILE \"cRectangleOverlap.log\"\n#endif\n\n#include \n#include \n\nclass Block;\nclass Variable;\nclass Constraint;\n\/**\n * A block structure defined over the variables such that each block contains\n * 1 or more variables, with the invariant that all constraints inside a block\n * are satisfied by keeping the variables fixed relative to one another\n *\/\nclass Blocks : public std::set\n{\npublic:\n\tBlocks(const int n, Variable *vs[]);\n\t~Blocks(void);\n\tvoid mergeLeft(Block *r);\n\tvoid mergeRight(Block *l);\n\tvoid split(Block *b, Block *&l, Block *&r, Constraint *c);\n\tstd::list *totalOrder();\n\tvoid cleanup();\n\tdouble cost();\nprivate:\n\tvoid dfsVisit(Variable *v, std::list *order);\n\tvoid removeBlock(Block *doomed);\n\tVariable **vs;\n\tint nvs;\n};\n\nextern long blockTimeCtr;\n#endif \/\/ SEEN_REMOVEOVERLAP_BLOCKS_H\n","subject":"Add the vpsc library for IPSEPCOLA features","message":"Add the vpsc library for IPSEPCOLA features\n","lang":"C","license":"epl-1.0","repos":"ellson\/graphviz,MjAbuz\/graphviz,BMJHayward\/graphviz,ellson\/graphviz,BMJHayward\/graphviz,pixelglow\/graphviz,BMJHayward\/graphviz,ellson\/graphviz,pixelglow\/graphviz,MjAbuz\/graphviz,tkelman\/graphviz,pixelglow\/graphviz,tkelman\/graphviz,kbrock\/graphviz,jho1965us\/graphviz,BMJHayward\/graphviz,tkelman\/graphviz,ellson\/graphviz,ellson\/graphviz,MjAbuz\/graphviz,pixelglow\/graphviz,MjAbuz\/graphviz,jho1965us\/graphviz,jho1965us\/graphviz,pixelglow\/graphviz,jho1965us\/graphviz,kbrock\/graphviz,tkelman\/graphviz,jho1965us\/graphviz,MjAbuz\/graphviz,MjAbuz\/graphviz,kbrock\/graphviz,BMJHayward\/graphviz,MjAbuz\/graphviz,kbrock\/graphviz,ellson\/graphviz,tkelman\/graphviz,ellson\/graphviz,kbrock\/graphviz,tkelman\/graphviz,tkelman\/graphviz,tkelman\/graphviz,kbrock\/graphviz,ellson\/graphviz,ellson\/graphviz,kbrock\/graphviz,kbrock\/graphviz,jho1965us\/graphviz,BMJHayward\/graphviz,MjAbuz\/graphviz,MjAbuz\/graphviz,BMJHayward\/graphviz,ellson\/graphviz,BMJHayward\/graphviz,BMJHayward\/graphviz,kbrock\/graphviz,kbrock\/graphviz,pixelglow\/graphviz,jho1965us\/graphviz,pixelglow\/graphviz,jho1965us\/graphviz,jho1965us\/graphviz,pixelglow\/graphviz,MjAbuz\/graphviz,tkelman\/graphviz,jho1965us\/graphviz,pixelglow\/graphviz,pixelglow\/graphviz,tkelman\/graphviz,tkelman\/graphviz,BMJHayward\/graphviz,jho1965us\/graphviz,ellson\/graphviz,MjAbuz\/graphviz,kbrock\/graphviz,pixelglow\/graphviz,BMJHayward\/graphviz"} {"commit":"42d282fd4f4dc53389fe62eba8b934cb7174acf0","old_file":"include\/lldb\/lldb-python.h","new_file":"include\/lldb\/lldb-python.h","old_contents":"\/\/===-- lldb-python.h --------------------------------------------*- 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 LLDB_lldb_python_h_\n#define LLDB_lldb_python_h_\n\n\/\/ Python.h needs to be included before any system headers in order to avoid redefinition of macros\n\n#ifdef LLDB_DISABLE_PYTHON\n\n\/\/ Python is disabled in this build\n\n#else\n\n#include \n\n#endif \/\/ LLDB_DISABLE_PYTHON\n\n#endif \/\/ LLDB_lldb_python_h_\n","new_contents":"\/\/===-- lldb-python.h --------------------------------------------*- 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 LLDB_lldb_python_h_\n#define LLDB_lldb_python_h_\n\n\/\/ Python.h needs to be included before any system headers in order to avoid redefinition of macros\n\n#ifdef LLDB_DISABLE_PYTHON\n\n\/\/ Python is disabled in this build\n\n#else\n\n#ifdef __FreeBSD__\n#include \n#else\n#include \n#endif\n\n#endif \/\/ LLDB_DISABLE_PYTHON\n\n#endif \/\/ LLDB_lldb_python_h_\n","subject":"Fix build on FreeBSD after r196141","message":"Fix build on FreeBSD after r196141\n\nThis should probably be replaced with build infrastructure support for\na platform-specific canonical Python include path, but for now it should\nrestore the FreeBSD buildbot.\n\n\ngit-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@196167 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"llvm-mirror\/lldb,apple\/swift-lldb,apple\/swift-lldb,llvm-mirror\/lldb,llvm-mirror\/lldb,apple\/swift-lldb,llvm-mirror\/lldb,apple\/swift-lldb,apple\/swift-lldb,apple\/swift-lldb,llvm-mirror\/lldb"} {"commit":"963c9b00874672a03e4f1251bcdde9f5d929a81a","old_file":"src\/math\/p_itof.c","new_file":"src\/math\/p_itof.c","old_contents":"#include \n\n\/**\n *\n * Converts integer values in 'a' to floating point values.\n *\n * @param a Pointer to input vector\n *\n * @param c Pointer to output vector\n *\n * @param n Size of 'a' and 'c' vector.\n *\n * @param p Number of processor to use (task parallelism)\n *\n * @param team Team to work with \n *\n * @return None\n *\n *\/\n#include \nvoid p_itof(int *a, float *c, int n, int p, p_team_t team) {\n\tint i;\n\tfor(i = 0; i < n; i++) {\n\t\t*(c + i) = (float)(*(a + i));\n\t}\n}\n","new_contents":"#include \n\n\/**\n *\n * Converts integer values in 'a' to floating point values.\n *\n * @param a Pointer to input vector\n *\n * @param c Pointer to output vector\n *\n * @param n Size of 'a' and 'c' vector.\n *\n * @param p Number of processor to use (task parallelism)\n *\n * @param team Team to work with \n *\n * @return None\n *\n *\/\n#include \nvoid p_itof(int *a, float *c, int n, int p, p_team_t team) {\n\tfor(int i = 0; i < n; i++) {\n\t\t*(c + i) = (float)(*(a + i));\n\t}\n}\n","subject":"Initialize variable in the declaration","message":"Initialize variable in the declaration\n\nGoogle style guide http:\/\/google-styleguide.googlecode.com\/svn\/trunk\/cppguide.html#Local_Variables\r\n\"Place a function's variables in the narrowest scope possible, and initialize variables in the declaration.\"\r\n\r\nSigned-off-by: Tom Anderson ","lang":"C","license":"apache-2.0","repos":"eliteraspberries\/pal,RafaelRMA\/pal,8l\/pal,debug-de-su-ka\/pal,mateunho\/pal,aolofsson\/pal,Adamszk\/pal3,parallella\/pal,olajep\/pal,eliteraspberries\/pal,parallella\/pal,mateunho\/pal,Adamszk\/pal3,RafaelRMA\/pal,RafaelRMA\/pal,8l\/pal,debug-de-su-ka\/pal,8l\/pal,debug-de-su-ka\/pal,olajep\/pal,aolofsson\/pal,parallella\/pal,mateunho\/pal,Adamszk\/pal3,debug-de-su-ka\/pal,olajep\/pal,parallella\/pal,eliteraspberries\/pal,eliteraspberries\/pal,debug-de-su-ka\/pal,parallella\/pal,aolofsson\/pal,aolofsson\/pal,8l\/pal,mateunho\/pal,RafaelRMA\/pal,mateunho\/pal,Adamszk\/pal3,olajep\/pal,eliteraspberries\/pal"} {"commit":"e194d0bc205719c2359ab339be64b93154106500","old_file":"src\/pythoninlua.h","new_file":"src\/pythoninlua.h","old_contents":"\/*\n\n Lunatic Python\n --------------\n \n Copyright (c) 2002-2005 Gustavo Niemeyer \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, write to the Free Software\n Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n\n*\/\n#ifndef PYTHONINLUA_H\n#define PYTHONINLUA_H\n\n#define POBJECT \"POBJECT\"\n\nint py_convert(lua_State *L, PyObject *o, int withnone);\n\ntypedef struct {\n\tPyObject *o;\n\tint asindx;\n} py_object;\n\nvoid stackDump(lua_State *L);\nvoid tableDump(lua_State *L, int t);\n\npy_object *check_py_object(lua_State *L, int ud);\n\nLUA_API int luaopen_python(lua_State *L);\n\n#endif\n","new_contents":"\/*\n\n Lunatic Python\n --------------\n \n Copyright (c) 2002-2005 Gustavo Niemeyer \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, write to the Free Software\n Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n\n*\/\n#ifndef PYTHONINLUA_H\n#define PYTHONINLUA_H\n\n#define POBJECT \"PyObject\"\n\nint py_convert(lua_State *L, PyObject *o, int withnone);\n\ntypedef struct {\n\tPyObject *o;\n\tint asindx;\n} py_object;\n\nvoid stackDump(lua_State *L);\nvoid tableDump(lua_State *L, int t);\n\npy_object *check_py_object(lua_State *L, int ud);\n\nLUA_API int luaopen_python(lua_State *L);\n\n#endif\n","subject":"Change Lua registry key to PythonObject.","message":"Change Lua registry key to PythonObject.\n","lang":"C","license":"lgpl-2.1","repos":"dmcooke\/Lunatic-Python,dmcooke\/Lunatic-Python"} {"commit":"847d68b622b46fa558ddade13a1b04f9cf9a24b9","old_file":"PWG3\/PWG3LinkDef.h","new_file":"PWG3\/PWG3LinkDef.h","old_contents":"#ifdef __CINT__\n\n#pragma link off all glols;\n#pragma link off all classes;\n#pragma link off all functions;\n\n\n\n#endif\n","new_contents":"#ifdef __CINT__\n\n#pragma link off all glols;\n#pragma link off all classes;\n#pragma link off all functions;\n\n#pragma link C++ class AliD0toKpi+;\n#pragma link C++ class AliD0toKpiAnalysis+;\n#pragma link C++ class AliBtoJPSItoEle+;\n#pragma link C++ class AliBtoJPSItoEleAnalysis+;\n\n\n#endif\n","subject":"Move AliD0toKpi* and AliBtoJPSI* from libPWG3base to libPWG3 (Andrea)","message":"Move AliD0toKpi* and AliBtoJPSI* from libPWG3base to libPWG3 (Andrea)\n\n","lang":"C","license":"bsd-3-clause","repos":"fcolamar\/AliPhysics,dmuhlhei\/AliPhysics,pbuehler\/AliPhysics,carstooon\/AliPhysics,rderradi\/AliPhysics,mbjadhav\/AliPhysics,fbellini\/AliPhysics,preghenella\/AliPhysics,mkrzewic\/AliPhysics,btrzecia\/AliPhysics,kreisl\/AliPhysics,mazimm\/AliPhysics,nschmidtALICE\/AliPhysics,lcunquei\/AliPhysics,fcolamar\/AliPhysics,kreisl\/AliPhysics,amatyja\/AliPhysics,mkrzewic\/AliPhysics,ALICEHLT\/AliPhysics,amatyja\/AliPhysics,lfeldkam\/AliPhysics,adriansev\/AliPhysics,ppribeli\/AliPhysics,pbatzing\/AliPhysics,rihanphys\/AliPhysics,SHornung1\/AliPhysics,jmargutt\/AliPhysics,pbuehler\/AliPhysics,pbuehler\/AliPhysics,dstocco\/AliPhysics,akubera\/AliPhysics,preghenella\/AliPhysics,fcolamar\/AliPhysics,AMechler\/AliPhysics,akubera\/AliPhysics,pbuehler\/AliPhysics,nschmidtALICE\/AliPhysics,mbjadhav\/AliPhysics,carstooon\/AliPhysics,hcab14\/AliPhysics,mbjadhav\/AliPhysics,AudreyFrancisco\/AliPhysics,akubera\/AliPhysics,kreisl\/AliPhysics,kreisl\/AliPhysics,sebaleh\/AliPhysics,rihanphys\/AliPhysics,hzanoli\/AliPhysics,dstocco\/AliPhysics,lfeldkam\/AliPhysics,lfeldkam\/AliPhysics,btrzecia\/AliPhysics,rbailhac\/AliPhysics,aaniin\/AliPhysics,lfeldkam\/AliPhysics,rderradi\/AliPhysics,lcunquei\/AliPhysics,dmuhlhei\/AliPhysics,pchrista\/AliPhysics,lfeldkam\/AliPhysics,rihanphys\/AliPhysics,alisw\/AliPhysics,nschmidtALICE\/AliPhysics,amatyja\/AliPhysics,nschmidtALICE\/AliPhysics,aaniin\/AliPhysics,amaringarcia\/AliPhysics,mpuccio\/AliPhysics,preghenella\/AliPhysics,pbuehler\/AliPhysics,jgronefe\/AliPhysics,pchrista\/AliPhysics,amatyja\/AliPhysics,hcab14\/AliPhysics,rihanphys\/AliPhysics,mpuccio\/AliPhysics,hcab14\/AliPhysics,sebaleh\/AliPhysics,fcolamar\/AliPhysics,AudreyFrancisco\/AliPhysics,preghenella\/AliPhysics,mazimm\/AliPhysics,adriansev\/AliPhysics,aaniin\/AliPhysics,mkrzewic\/AliPhysics,jgronefe\/AliPhysics,btrzecia\/AliPhysics,jgronefe\/AliPhysics,fbellini\/AliPhysics,ALICEHLT\/AliPhysics,fbellini\/AliPhysics,rbailhac\/AliPhysics,fbellini\/AliPhysics,AMechler\/AliPhysics,ALICEHLT\/AliPhysics,dlodato\/AliPhysics,jmargutt\/AliPhysics,AMechler\/AliPhysics,carstooon\/AliPhysics,dmuhlhei\/AliPhysics,amaringarcia\/AliPhysics,mkrzewic\/AliPhysics,mvala\/AliPhysics,mpuccio\/AliPhysics,yowatana\/AliPhysics,rihanphys\/AliPhysics,SHornung1\/AliPhysics,lfeldkam\/AliPhysics,mkrzewic\/AliPhysics,sebaleh\/AliPhysics,lfeldkam\/AliPhysics,rbailhac\/AliPhysics,mazimm\/AliPhysics,AMechler\/AliPhysics,dmuhlhei\/AliPhysics,pbatzing\/AliPhysics,mvala\/AliPhysics,SHornung1\/AliPhysics,sebaleh\/AliPhysics,mpuccio\/AliPhysics,amaringarcia\/AliPhysics,pbuehler\/AliPhysics,mkrzewic\/AliPhysics,ppribeli\/AliPhysics,aaniin\/AliPhysics,adriansev\/AliPhysics,yowatana\/AliPhysics,victor-gonzalez\/AliPhysics,sebaleh\/AliPhysics,pchrista\/AliPhysics,hcab14\/AliPhysics,rihanphys\/AliPhysics,victor-gonzalez\/AliPhysics,lcunquei\/AliPhysics,alisw\/AliPhysics,yowatana\/AliPhysics,jgronefe\/AliPhysics,btrzecia\/AliPhysics,ppribeli\/AliPhysics,ALICEHLT\/AliPhysics,fcolamar\/AliPhysics,SHornung1\/AliPhysics,dstocco\/AliPhysics,pchrista\/AliPhysics,dmuhlhei\/AliPhysics,mkrzewic\/AliPhysics,carstooon\/AliPhysics,jmargutt\/AliPhysics,fbellini\/AliPhysics,sebaleh\/AliPhysics,ppribeli\/AliPhysics,mbjadhav\/AliPhysics,pbatzing\/AliPhysics,SHornung1\/AliPhysics,mazimm\/AliPhysics,amatyja\/AliPhysics,adriansev\/AliPhysics,preghenella\/AliPhysics,alisw\/AliPhysics,aaniin\/AliPhysics,aaniin\/AliPhysics,dmuhlhei\/AliPhysics,kreisl\/AliPhysics,btrzecia\/AliPhysics,alisw\/AliPhysics,jgronefe\/AliPhysics,pbatzing\/AliPhysics,hcab14\/AliPhysics,hzanoli\/AliPhysics,hzanoli\/AliPhysics,victor-gonzalez\/AliPhysics,mpuccio\/AliPhysics,dlodato\/AliPhysics,fbellini\/AliPhysics,SHornung1\/AliPhysics,rbailhac\/AliPhysics,mazimm\/AliPhysics,sebaleh\/AliPhysics,ppribeli\/AliPhysics,mvala\/AliPhysics,mvala\/AliPhysics,mazimm\/AliPhysics,adriansev\/AliPhysics,hzanoli\/AliPhysics,mvala\/AliPhysics,ALICEHLT\/AliPhysics,fcolamar\/AliPhysics,amatyja\/AliPhysics,dmuhlhei\/AliPhysics,jgronefe\/AliPhysics,mvala\/AliPhysics,jmargutt\/AliPhysics,carstooon\/AliPhysics,dlodato\/AliPhysics,alisw\/AliPhysics,amatyja\/AliPhysics,AMechler\/AliPhysics,lcunquei\/AliPhysics,preghenella\/AliPhysics,mpuccio\/AliPhysics,hzanoli\/AliPhysics,AudreyFrancisco\/AliPhysics,SHornung1\/AliPhysics,rderradi\/AliPhysics,btrzecia\/AliPhysics,amaringarcia\/AliPhysics,pbatzing\/AliPhysics,adriansev\/AliPhysics,AudreyFrancisco\/AliPhysics,nschmidtALICE\/AliPhysics,rderradi\/AliPhysics,amaringarcia\/AliPhysics,pbatzing\/AliPhysics,aaniin\/AliPhysics,yowatana\/AliPhysics,ppribeli\/AliPhysics,hzanoli\/AliPhysics,alisw\/AliPhysics,AudreyFrancisco\/AliPhysics,akubera\/AliPhysics,lcunquei\/AliPhysics,yowatana\/AliPhysics,jmargutt\/AliPhysics,AMechler\/AliPhysics,victor-gonzalez\/AliPhysics,AudreyFrancisco\/AliPhysics,mbjadhav\/AliPhysics,amaringarcia\/AliPhysics,mbjadhav\/AliPhysics,kreisl\/AliPhysics,akubera\/AliPhysics,rderradi\/AliPhysics,dlodato\/AliPhysics,fcolamar\/AliPhysics,lcunquei\/AliPhysics,dstocco\/AliPhysics,jmargutt\/AliPhysics,victor-gonzalez\/AliPhysics,dlodato\/AliPhysics,dlodato\/AliPhysics,yowatana\/AliPhysics,pbuehler\/AliPhysics,dlodato\/AliPhysics,yowatana\/AliPhysics,jmargutt\/AliPhysics,ppribeli\/AliPhysics,victor-gonzalez\/AliPhysics,mvala\/AliPhysics,jgronefe\/AliPhysics,nschmidtALICE\/AliPhysics,hcab14\/AliPhysics,rbailhac\/AliPhysics,carstooon\/AliPhysics,kreisl\/AliPhysics,dstocco\/AliPhysics,fbellini\/AliPhysics,AudreyFrancisco\/AliPhysics,rihanphys\/AliPhysics,preghenella\/AliPhysics,alisw\/AliPhysics,pbatzing\/AliPhysics,mpuccio\/AliPhysics,mazimm\/AliPhysics,hzanoli\/AliPhysics,akubera\/AliPhysics,rderradi\/AliPhysics,lcunquei\/AliPhysics,ALICEHLT\/AliPhysics,AMechler\/AliPhysics,amaringarcia\/AliPhysics,carstooon\/AliPhysics,rderradi\/AliPhysics,mbjadhav\/AliPhysics,pchrista\/AliPhysics,adriansev\/AliPhysics,ALICEHLT\/AliPhysics,rbailhac\/AliPhysics,nschmidtALICE\/AliPhysics,akubera\/AliPhysics,pchrista\/AliPhysics,rbailhac\/AliPhysics,dstocco\/AliPhysics,pchrista\/AliPhysics,btrzecia\/AliPhysics,victor-gonzalez\/AliPhysics,hcab14\/AliPhysics,dstocco\/AliPhysics"} {"commit":"3aca30dc730b96e1ac50933bae2914c81a3a3c67","old_file":"cod.c","new_file":"cod.c","old_contents":"#include \n\nunsigned int x;\nchar in;\n\nvoid input(void);\n\nvoid main(void){\n x = 0;\n input();\n}\n\nvoid input(void){\n printf(\">> \"); \/* Bash-like input *\/\n scanf(\"%c\", &in); \/* Get char input *\/\n\n \/* Boundary checks *\/\n if(x == 256 || x == -1) x = 0;\n \n \/* Operators *\/\n switch(in){\n case 'i': case 'x':\n x++;\n case 'd':\n x--;\n case 'o': case 'c':\n printf(\"%d\\n\", x);\n case 's': case 'k':\n x = x*x;\n default:\n printf(\"\\n\");\n }\n\n input(); \/* Loop *\/\n}\n","new_contents":"#include \n\nunsigned int x;\nchar in;\n\nvoid input(void);\nvoid run(char c);\n\nvoid main(void){\n x = 0;\n input();\n}\n\nvoid input(void){\n printf(\">> \"); \/* Bash-like input *\/\n scanf(\"%c\", &in); \/* Get char input *\/\n run(in);\n input(); \/* Loop *\/\n}\n\nvoid run(char c){\n \/* Boundary checks *\/\n if(x == 256 || x == -1) x = 0;\n \n \/* Operators *\/\n switch(in){\n case 'i': case 'x':\n x++;\n case 'd':\n x--;\n case 'o': case 'c':\n printf(\"%d\\n\", x);\n case 's': case 'k':\n x = x*x;\n default:\n printf(\"\\n\");\n } \n}\n","subject":"Move run into new method","message":"Move run into new method","lang":"C","license":"mit","repos":"phase\/cod"} {"commit":"5c217b60fed39ed2ac6a2e8b788df4a74fa68878","old_file":"arch\/ia64\/kernel\/irq_lsapic.c","new_file":"arch\/ia64\/kernel\/irq_lsapic.c","old_contents":"\/*\n * LSAPIC Interrupt Controller\n *\n * This takes care of interrupts that are generated by the CPU's\n * internal Streamlined Advanced Programmable Interrupt Controller\n * (LSAPIC), such as the ITC and IPI interrupts.\n *\n * Copyright (C) 1999 VA Linux Systems\n * Copyright (C) 1999 Walt Drummond \n * Copyright (C) 2000 Hewlett-Packard Co\n * Copyright (C) 2000 David Mosberger-Tang \n *\/\n\n#include \n#include \n\nstatic unsigned int\nlsapic_noop_startup (unsigned int irq)\n{\n\treturn 0;\n}\n\nstatic void\nlsapic_noop (unsigned int irq)\n{\n\t\/* nothing to do... *\/\n}\n\nstatic int lsapic_retrigger(unsigned int irq)\n{\n\tia64_resend_irq(irq);\n\n\treturn 1;\n}\n\nstruct irq_chip irq_type_ia64_lsapic = {\n\t.name =\t\t\"LSAPIC\",\n\t.startup =\tlsapic_noop_startup,\n\t.shutdown =\tlsapic_noop,\n\t.enable =\tlsapic_noop,\n\t.disable =\tlsapic_noop,\n\t.ack =\t\tlsapic_noop,\n\t.retrigger =\tlsapic_retrigger,\n};\n","new_contents":"\/*\n * LSAPIC Interrupt Controller\n *\n * This takes care of interrupts that are generated by the CPU's\n * internal Streamlined Advanced Programmable Interrupt Controller\n * (LSAPIC), such as the ITC and IPI interrupts.\n *\n * Copyright (C) 1999 VA Linux Systems\n * Copyright (C) 1999 Walt Drummond \n * Copyright (C) 2000 Hewlett-Packard Co\n * Copyright (C) 2000 David Mosberger-Tang \n *\/\n\n#include \n#include \n\nstatic unsigned int\nlsapic_noop_startup (struct irq_data *data)\n{\n\treturn 0;\n}\n\nstatic void\nlsapic_noop (struct irq_data *data)\n{\n\t\/* nothing to do... *\/\n}\n\nstatic int lsapic_retrigger(struct irq_data *data)\n{\n\tia64_resend_irq(data->irq);\n\n\treturn 1;\n}\n\nstruct irq_chip irq_type_ia64_lsapic = {\n\t.name =\t\t\t\"LSAPIC\",\n\t.irq_startup =\t\tlsapic_noop_startup,\n\t.irq_shutdown =\t\tlsapic_noop,\n\t.irq_enable =\t\tlsapic_noop,\n\t.irq_disable =\t\tlsapic_noop,\n\t.irq_ack =\t\tlsapic_noop,\n\t.irq_retrigger =\tlsapic_retrigger,\n};\n","subject":"Convert lsapic to new irq_chip functions","message":"ia64: Convert lsapic to new irq_chip functions\n\nSigned-off-by: Thomas Gleixner <00e4cf8f46a57000a44449bf9dd8cbbcc209fd2a@linutronix.de>\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,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs"} {"commit":"c6998bbba2a0dc57e5dbb2ceff2146cfd52a34d5","old_file":"include\/PurchaseEvent.h","new_file":"include\/PurchaseEvent.h","old_contents":"#ifndef _PURCHASEEVENT_H_\n#define _PURCHASEEVENT_H_\n\n#include \n\nclass PurchaseEvent : public Event {\npublic:\n enum Type {\n PURCHASE_STATUS\n };\n PurchaseEvent(double _timestamp, int _productId, Type _type, bool _newPurchase) : Event(_timestamp), type(_type), newPurchase(_newPurchase), productId(_productId) { }\n\n Event * dup() const override { return new PurchaseEvent(*this); }\n void dispatch(EventHandler & element) override;\n bool isBroadcast() const override { return true; }\n \n Type getType() { return type; }\n bool isNew() { return newPurchase; }\n int getProductId() { return productId; }\n\n private:\n Type type;\n bool newPurchase;\n int productId;\n};\n\n#endif\n","new_contents":"#ifndef _PURCHASEEVENT_H_\n#define _PURCHASEEVENT_H_\n\n#include \n\nclass PurchaseEvent : public Event {\npublic:\n enum Type {\n PURCHASE_STATUS\n };\n PurchaseEvent(double _timestamp, std::string _productId, Type _type, bool _newPurchase) : Event(_timestamp), type(_type), newPurchase(_newPurchase), productId(_productId) { }\n\n Event * dup() const override { return new PurchaseEvent(*this); }\n void dispatch(EventHandler & element) override;\n bool isBroadcast() const override { return true; }\n \n Type getType() { return type; }\n bool isNew() { return newPurchase; }\n std::string getProductId() { return productId; }\n\n private:\n Type type;\n bool newPurchase;\n std::string productId;\n};\n\n#endif\n","subject":"Change product Id to string","message":"Change product Id to string","lang":"C","license":"mit","repos":"Sometrik\/framework,Sometrik\/framework,Sometrik\/framework"} {"commit":"8f533f0b1a6a6a5b4d2d966269658efdb15319e6","old_file":"Source\/HaxeInit\/Private\/StubUObject.h","new_file":"Source\/HaxeInit\/Private\/StubUObject.h","old_contents":"","new_contents":"#pragma once\n#include \n#include \"StubUObject.generated.h\"\n\n\/\/ This class is only here to make sure we're visible to UHT.\n\/\/ We need to be visible to UHT so that UE4HaxeExternGenerator works correctly\n\/\/ (as any script generator must return a module name that is visible to UHT)\n\/\/ see IScriptGeneratorPluginInterface::GetGeneratedCodeModuleName for the related code\nUCLASS()\nclass HAXEINIT_API UObjectStub : public UObject {\n GENERATED_BODY()\n};\n","subject":"Add uobject stub to make the script generator plugin happy","message":"Add uobject stub to make the script generator plugin happy\n","lang":"C","license":"mit","repos":"proletariatgames\/unreal.hx,proletariatgames\/unreal.hx,proletariatgames\/unreal.hx"} {"commit":"80d38eb7f25cd0fe2483a52ab225fa7331615f18","old_file":"test\/Parser\/ms-inline-asm.c","new_file":"test\/Parser\/ms-inline-asm.c","old_contents":"\/\/ RUN: %clang_cc1 %s -verify -fasm-blocks\n\n#define M __asm int 0x2c\n#define M2 int\n\nvoid t1(void) { M }\nvoid t2(void) { __asm int 0x2c }\nvoid t3(void) { __asm M2 0x2c }\nvoid t4(void) { __asm mov eax, fs:[0x10] }\nvoid t5() {\n __asm {\n int 0x2c ; } asm comments are fun! }{\n }\n __asm {}\n}\nint t6() {\n __asm int 3 ; } comments for single-line asm\n __asm {}\n\n __asm int 4\n return 10;\n}\nvoid t7() {\n __asm {\n push ebx\n mov ebx, 0x07\n pop ebx\n }\n}\nvoid t8() {\n __asm nop __asm nop __asm nop\n}\nvoid t9() {\n __asm nop __asm nop ; __asm nop\n}\nint t_fail() { \/\/ expected-note {{to match this}}\n __asm \n __asm { \/\/ expected-error 3 {{expected}} expected-note {{to match this}}\n","new_contents":"\/\/ REQUIRES: x86-64-registered-target\n\/\/ RUN: %clang_cc1 %s -verify -fasm-blocks\n\n#define M __asm int 0x2c\n#define M2 int\n\nvoid t1(void) { M }\nvoid t2(void) { __asm int 0x2c }\nvoid t3(void) { __asm M2 0x2c }\nvoid t4(void) { __asm mov eax, fs:[0x10] }\nvoid t5() {\n __asm {\n int 0x2c ; } asm comments are fun! }{\n }\n __asm {}\n}\nint t6() {\n __asm int 3 ; } comments for single-line asm\n __asm {}\n\n __asm int 4\n return 10;\n}\nvoid t7() {\n __asm {\n push ebx\n mov ebx, 0x07\n pop ebx\n }\n}\nvoid t8() {\n __asm nop __asm nop __asm nop\n}\nvoid t9() {\n __asm nop __asm nop ; __asm nop\n}\nint t_fail() { \/\/ expected-note {{to match this}}\n __asm \n __asm { \/\/ expected-error 3 {{expected}} expected-note {{to match this}}\n","subject":"Add x86 requirement to hopefully fix ppc bots.","message":"Add x86 requirement to hopefully fix ppc bots.\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@173190 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"apple\/swift-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,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang"} {"commit":"38f0051c77a1057fe0547eeefb9c83d067f8265c","old_file":"kernel\/types.h","new_file":"kernel\/types.h","old_contents":"\/\/ The Mordax Microkernel\n\/\/ (c) Kristian Klomsten Skordal 2013 \n\/\/ Report bugs and issues on \n\n#ifndef MORDAX_TYPES_H\n#define MORDAX_TYPES_H\n\n#include \n\n\/** Object size type. *\/\ntypedef uint32_t size_t;\n\n\/** Physical pointer type. *\/\ntypedef void * physical_ptr;\n\n\/** 64-bit generic big endian type. *\/\ntypedef uint64_t be64;\n\/** 32-bit generic big endian type. *\/\ntypedef uint32_t be32;\n\n\/** 64-bit generic little endian type. *\/\ntypedef uint64_t le64;\n\/** 32-bit generic little endian type. *\/\ntypedef uint32_t le32;\n\n#endif\n\n","new_contents":"\/\/ The Mordax Microkernel\n\/\/ (c) Kristian Klomsten Skordal 2013 \n\/\/ Report bugs and issues on \n\n#ifndef MORDAX_TYPES_H\n#define MORDAX_TYPES_H\n\n#include \n#include \n\n\/** Object size type. *\/\ntypedef uint32_t size_t;\n\n\/** Physical pointer type. *\/\ntypedef void * physical_ptr;\n\n\/** 64-bit generic big endian type. *\/\ntypedef uint64_t be64;\n\/** 32-bit generic big endian type. *\/\ntypedef uint32_t be32;\n\n\/** 64-bit generic little endian type. *\/\ntypedef uint64_t le64;\n\/** 32-bit generic little endian type. *\/\ntypedef uint32_t le32;\n\n#endif\n\n","subject":"Add stdbool to the datatype header","message":"Add stdbool to the datatype header\n","lang":"C","license":"bsd-3-clause","repos":"skordal\/mordax"} {"commit":"b4aeaf99c621d17a147acf431d7e131c6860f5ac","old_file":"bmmap.c","new_file":"bmmap.c","old_contents":"#include \"bmmap.h\"\n#include \"vty.h\"\n\nvoid bmmap_init() {\n}\n\nvoid bmmap_print() { \n vty_puts(\"BIOS memory map:\\n\");\n vty_printf(\"%d entries at %p\\n\",\n *bios_memmap_entries_ptr,\n bios_memmap_ptr);\n vty_printf(\"ADDR LOW ADDR HI LEN LOW LEN HI TYPE RESERVED\\n\");\n for(int i = 0; i < *bios_memmap_entries_ptr; i++) {\n BmmapEntry * entry = &(*bios_memmap_ptr)[i];\n vty_printf(\"%08x %08x %08x %08x %08x %08x\\n\",\n entry->base_addr_low,\n entry->base_addr_high,\n entry->length_low,\n entry->length_high,\n entry->type,\n entry->reserved);\n }\n}\n","new_contents":"#include \"bmmap.h\"\n#include \"vty.h\"\n\nvoid bmmap_init() {\n}\n\nvoid bmmap_print() { \n vty_puts(\"BIOS memory map:\\n\");\n vty_printf(\"%d entries at %p\\n\",\n *bios_memmap_entries_ptr,\n bios_memmap_ptr);\n vty_printf(\" ADDR LEN TYPE RESERVED\\n\");\n for(int i = 0; i < *bios_memmap_entries_ptr; i++) {\n BmmapEntry * entry = &(*bios_memmap_ptr)[i];\n vty_printf(\"%08x:%08x %08x:%08x %08x %08x\\n\",\n entry->base_addr_high,\n entry->base_addr_low,\n entry->length_high,\n entry->length_low,\n entry->type,\n entry->reserved);\n }\n}\n","subject":"Tweak display of BIOS memory map","message":"Tweak display of BIOS memory map\n","lang":"C","license":"mit","repos":"wconrad\/brazzle,wconrad\/brazzle"} {"commit":"73689e53255c6ac22a90b0cd01fe40180ec2bbba","old_file":"chrome\/browser\/desktop_notification_handler.h","new_file":"chrome\/browser\/desktop_notification_handler.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 CHROME_BROWSER_DESKTOP_NOTIFICATION_HANDLER_H_\n#define CHROME_BROWSER_DESKTOP_NOTIFICATION_HANDLER_H_\n#pragma once\n\n#include \"content\/browser\/renderer_host\/render_view_host_observer.h\"\n\nclass GURL;\nstruct DesktopNotificationHostMsg_Show_Params;\n\n\/\/ Per-tab Desktop notification handler. Handles desktop notification IPCs\n\/\/ coming in from the renderer.\nclass DesktopNotificationHandler : public RenderViewHostObserver {\n public:\n explicit DesktopNotificationHandler(RenderViewHost* render_view_host);\n virtual ~DesktopNotificationHandler();\n\n private:\n \/\/ RenderViewHostObserver implementation.\n virtual bool OnMessageReceived(const IPC::Message& message);\n\n \/\/ IPC handlers.\n void OnShow(const DesktopNotificationHostMsg_Show_Params& params);\n void OnCancel(int notification_id);\n void OnRequestPermission(const GURL& origin, int callback_id);\n\n private:\n DISALLOW_COPY_AND_ASSIGN(DesktopNotificationHandler);\n};\n\n#endif \/\/ CHROME_BROWSER_DESKTOP_NOTIFICATION_HANDLER_H_\n\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 CHROME_BROWSER_DESKTOP_NOTIFICATION_HANDLER_H_\n#define CHROME_BROWSER_DESKTOP_NOTIFICATION_HANDLER_H_\n#pragma once\n\n#include \"content\/browser\/renderer_host\/render_view_host_observer.h\"\n\nclass GURL;\nstruct DesktopNotificationHostMsg_Show_Params;\n\n\/\/ Per-tab Desktop notification handler. Handles desktop notification IPCs\n\/\/ coming in from the renderer.\nclass DesktopNotificationHandler : public RenderViewHostObserver {\n public:\n explicit DesktopNotificationHandler(RenderViewHost* render_view_host);\n virtual ~DesktopNotificationHandler();\n\n private:\n \/\/ RenderViewHostObserver implementation.\n bool OnMessageReceived(const IPC::Message& message);\n\n \/\/ IPC handlers.\n void OnShow(const DesktopNotificationHostMsg_Show_Params& params);\n void OnCancel(int notification_id);\n void OnRequestPermission(const GURL& origin, int callback_id);\n\n private:\n DISALLOW_COPY_AND_ASSIGN(DesktopNotificationHandler);\n};\n\n#endif \/\/ CHROME_BROWSER_DESKTOP_NOTIFICATION_HANDLER_H_\n\n","subject":"Revert 80939 - Fix clang error TBR=jam@chromium.org","message":"Revert 80939 - Fix clang error\nTBR=jam@chromium.org\n\ngit-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@80954 0039d316-1c4b-4281-b951-d872f2087c98\n","lang":"C","license":"bsd-3-clause","repos":"dushu1203\/chromium.src,anirudhSK\/chromium,ChromiumWebApps\/chromium,hujiajie\/pa-chromium,patrickm\/chromium.src,mogoweb\/chromium-crosswalk,Chilledheart\/chromium,pozdnyakov\/chromium-crosswalk,rogerwang\/chromium,Just-D\/chromium-1,dednal\/chromium.src,zcbenz\/cefode-chromium,robclark\/chromium,anirudhSK\/chromium,ondra-novak\/chromium.src,Just-D\/chromium-1,anirudhSK\/chromium,timopulkkinen\/BubbleFish,axinging\/chromium-crosswalk,hujiajie\/pa-chromium,robclark\/chromium,jaruba\/chromium.src,PeterWangIntel\/chromium-crosswalk,Jonekee\/chromium.src,Jonekee\/chromium.src,zcbenz\/cefode-chromium,bright-sparks\/chromium-spacewalk,anirudhSK\/chromium,TheTypoMaster\/chromium-crosswalk,ltilve\/chromium,ondra-novak\/chromium.src,nacl-webkit\/chrome_deps,zcbenz\/cefode-chromium,timopulkkinen\/BubbleFish,M4sse\/chromium.src,mohamed--abdel-maksoud\/chromium.src,robclark\/chromium,Pluto-tv\/chromium-crosswalk,anirudhSK\/chromium,rogerwang\/chromium,ltilve\/chromium,rogerwang\/chromium,TheTypoMaster\/chromium-crosswalk,anirudhSK\/chromium,chuan9\/chromium-crosswalk,junmin-zhu\/chromium-rivertrail,littlstar\/chromium.src,ChromiumWebApps\/chromium,dushu1203\/chromium.src,Fireblend\/chromium-crosswalk,rogerwang\/chromium,ondra-novak\/chromium.src,Chilledheart\/chromium,hgl888\/chromium-crosswalk-efl,bright-sparks\/chromium-spacewalk,nacl-webkit\/chrome_deps,mohamed--abdel-maksoud\/chromium.src,patrickm\/chromium.src,keishi\/chromium,axinging\/chromium-crosswalk,hgl888\/chromium-crosswalk,pozdnyakov\/chromium-crosswalk,ChromiumWebApps\/chromium,hujiajie\/pa-chromium,hgl888\/chromium-crosswalk-efl,dushu1203\/chromium.src,ChromiumWebApps\/chromium,Chilledheart\/chromium,crosswalk-project\/chromium-crosswalk-efl,timopulkkinen\/BubbleFish,anirudhSK\/chromium,crosswalk-project\/chromium-crosswalk-efl,pozdnyakov\/chromium-crosswalk,Fireblend\/chromium-crosswalk,hujiajie\/pa-chromium,keishi\/chromium,Fireblend\/chromium-crosswalk,markYoungH\/chromium.src,mogoweb\/chromium-crosswalk,keishi\/chromium,PeterWangIntel\/chromium-crosswalk,timopulkkinen\/BubbleFish,nacl-webkit\/chrome_deps,ChromiumWebApps\/chromium,Chilledheart\/chromium,zcbenz\/cefode-chromium,Jonekee\/chromium.src,ChromiumWebApps\/chromium,hgl888\/chromium-crosswalk,junmin-zhu\/chromium-rivertrail,mogoweb\/chromium-crosswalk,zcbenz\/cefode-chromium,ondra-novak\/chromium.src,ondra-novak\/chromium.src,PeterWangIntel\/chromium-crosswalk,hujiajie\/pa-chromium,jaruba\/chromium.src,M4sse\/chromium.src,ltilve\/chromium,PeterWangIntel\/chromium-crosswalk,dushu1203\/chromium.src,PeterWangIntel\/chromium-crosswalk,crosswalk-project\/chromium-crosswalk-efl,ChromiumWebApps\/chromium,mohamed--abdel-maksoud\/chromium.src,Fireblend\/chromium-crosswalk,rogerwang\/chromium,TheTypoMaster\/chromium-crosswalk,hujiajie\/pa-chromium,jaruba\/chromium.src,crosswalk-project\/chromium-crosswalk-efl,Pluto-tv\/chromium-crosswalk,pozdnyakov\/chromium-crosswalk,nacl-webkit\/chrome_deps,krieger-od\/nwjs_chromium.src,junmin-zhu\/chromium-rivertrail,Just-D\/chromium-1,nacl-webkit\/chrome_deps,jaruba\/chromium.src,patrickm\/chromium.src,ltilve\/chromium,M4sse\/chromium.src,axinging\/chromium-crosswalk,patrickm\/chromium.src,junmin-zhu\/chromium-rivertrail,fujunwei\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,pozdnyakov\/chromium-crosswalk,chuan9\/chromium-crosswalk,fujunwei\/chromium-crosswalk,crosswalk-project\/chromium-crosswalk-efl,mohamed--abdel-maksoud\/chromium.src,keishi\/chromium,M4sse\/chromium.src,keishi\/chromium,pozdnyakov\/chromium-crosswalk,fujunwei\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,krieger-od\/nwjs_chromium.src,nacl-webkit\/chrome_deps,hgl888\/chromium-crosswalk-efl,markYoungH\/chromium.src,pozdnyakov\/chromium-crosswalk,hgl888\/chromium-crosswalk-efl,Just-D\/chromium-1,Just-D\/chromium-1,mohamed--abdel-maksoud\/chromium.src,hgl888\/chromium-crosswalk-efl,rogerwang\/chromium,dednal\/chromium.src,jaruba\/chromium.src,hgl888\/chromium-crosswalk-efl,Jonekee\/chromium.src,jaruba\/chromium.src,robclark\/chromium,markYoungH\/chromium.src,junmin-zhu\/chromium-rivertrail,junmin-zhu\/chromium-rivertrail,fujunwei\/chromium-crosswalk,Pluto-tv\/chromium-crosswalk,Chilledheart\/chromium,M4sse\/chromium.src,M4sse\/chromium.src,dednal\/chromium.src,rogerwang\/chromium,ChromiumWebApps\/chromium,littlstar\/chromium.src,robclark\/chromium,dushu1203\/chromium.src,dednal\/chromium.src,chuan9\/chromium-crosswalk,crosswalk-project\/chromium-crosswalk-efl,jaruba\/chromium.src,axinging\/chromium-crosswalk,axinging\/chromium-crosswalk,Jonekee\/chromium.src,littlstar\/chromium.src,anirudhSK\/chromium,hgl888\/chromium-crosswalk,patrickm\/chromium.src,dednal\/chromium.src,hgl888\/chromium-crosswalk-efl,bright-sparks\/chromium-spacewalk,nacl-webkit\/chrome_deps,junmin-zhu\/chromium-rivertrail,chuan9\/chromium-crosswalk,chuan9\/chromium-crosswalk,Jonekee\/chromium.src,Just-D\/chromium-1,markYoungH\/chromium.src,timopulkkinen\/BubbleFish,bright-sparks\/chromium-spacewalk,pozdnyakov\/chromium-crosswalk,nacl-webkit\/chrome_deps,fujunwei\/chromium-crosswalk,Fireblend\/chromium-crosswalk,jaruba\/chromium.src,hgl888\/chromium-crosswalk,zcbenz\/cefode-chromium,Pluto-tv\/chromium-crosswalk,markYoungH\/chromium.src,dednal\/chromium.src,robclark\/chromium,ondra-novak\/chromium.src,TheTypoMaster\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,fujunwei\/chromium-crosswalk,keishi\/chromium,zcbenz\/cefode-chromium,ChromiumWebApps\/chromium,pozdnyakov\/chromium-crosswalk,Just-D\/chromium-1,krieger-od\/nwjs_chromium.src,robclark\/chromium,chuan9\/chromium-crosswalk,markYoungH\/chromium.src,Chilledheart\/chromium,timopulkkinen\/BubbleFish,robclark\/chromium,TheTypoMaster\/chromium-crosswalk,crosswalk-project\/chromium-crosswalk-efl,timopulkkinen\/BubbleFish,timopulkkinen\/BubbleFish,littlstar\/chromium.src,chuan9\/chromium-crosswalk,chuan9\/chromium-crosswalk,Just-D\/chromium-1,keishi\/chromium,TheTypoMaster\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,littlstar\/chromium.src,jaruba\/chromium.src,mohamed--abdel-maksoud\/chromium.src,Chilledheart\/chromium,mogoweb\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,dednal\/chromium.src,mohamed--abdel-maksoud\/chromium.src,junmin-zhu\/chromium-rivertrail,rogerwang\/chromium,junmin-zhu\/chromium-rivertrail,timopulkkinen\/BubbleFish,fujunwei\/chromium-crosswalk,ltilve\/chromium,zcbenz\/cefode-chromium,hujiajie\/pa-chromium,bright-sparks\/chromium-spacewalk,pozdnyakov\/chromium-crosswalk,hujiajie\/pa-chromium,nacl-webkit\/chrome_deps,Jonekee\/chromium.src,krieger-od\/nwjs_chromium.src,nacl-webkit\/chrome_deps,robclark\/chromium,zcbenz\/cefode-chromium,ltilve\/chromium,junmin-zhu\/chromium-rivertrail,Jonekee\/chromium.src,robclark\/chromium,axinging\/chromium-crosswalk,ondra-novak\/chromium.src,dednal\/chromium.src,anirudhSK\/chromium,zcbenz\/cefode-chromium,rogerwang\/chromium,dushu1203\/chromium.src,axinging\/chromium-crosswalk,dushu1203\/chromium.src,timopulkkinen\/BubbleFish,Pluto-tv\/chromium-crosswalk,mogoweb\/chromium-crosswalk,ltilve\/chromium,mogoweb\/chromium-crosswalk,Chilledheart\/chromium,dednal\/chromium.src,krieger-od\/nwjs_chromium.src,chuan9\/chromium-crosswalk,hujiajie\/pa-chromium,pozdnyakov\/chromium-crosswalk,markYoungH\/chromium.src,axinging\/chromium-crosswalk,axinging\/chromium-crosswalk,zcbenz\/cefode-chromium,Jonekee\/chromium.src,dednal\/chromium.src,Pluto-tv\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,hgl888\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,dushu1203\/chromium.src,mogoweb\/chromium-crosswalk,hgl888\/chromium-crosswalk,Jonekee\/chromium.src,TheTypoMaster\/chromium-crosswalk,anirudhSK\/chromium,hujiajie\/pa-chromium,axinging\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,mohamed--abdel-maksoud\/chromium.src,Just-D\/chromium-1,Fireblend\/chromium-crosswalk,keishi\/chromium,rogerwang\/chromium,patrickm\/chromium.src,crosswalk-project\/chromium-crosswalk-efl,hgl888\/chromium-crosswalk-efl,markYoungH\/chromium.src,M4sse\/chromium.src,ChromiumWebApps\/chromium,patrickm\/chromium.src,axinging\/chromium-crosswalk,TheTypoMaster\/chromium-crosswalk,ltilve\/chromium,junmin-zhu\/chromium-rivertrail,Fireblend\/chromium-crosswalk,dushu1203\/chromium.src,hujiajie\/pa-chromium,timopulkkinen\/BubbleFish,M4sse\/chromium.src,markYoungH\/chromium.src,crosswalk-project\/chromium-crosswalk-efl,littlstar\/chromium.src,keishi\/chromium,bright-sparks\/chromium-spacewalk,littlstar\/chromium.src,Pluto-tv\/chromium-crosswalk,littlstar\/chromium.src,krieger-od\/nwjs_chromium.src,jaruba\/chromium.src,bright-sparks\/chromium-spacewalk,keishi\/chromium,Pluto-tv\/chromium-crosswalk,Fireblend\/chromium-crosswalk,dushu1203\/chromium.src,mohamed--abdel-maksoud\/chromium.src,Pluto-tv\/chromium-crosswalk,Chilledheart\/chromium,dushu1203\/chromium.src,M4sse\/chromium.src,ltilve\/chromium,ondra-novak\/chromium.src,patrickm\/chromium.src,M4sse\/chromium.src,ChromiumWebApps\/chromium,ondra-novak\/chromium.src,TheTypoMaster\/chromium-crosswalk,hgl888\/chromium-crosswalk,anirudhSK\/chromium,fujunwei\/chromium-crosswalk,anirudhSK\/chromium,fujunwei\/chromium-crosswalk,dednal\/chromium.src,mogoweb\/chromium-crosswalk,nacl-webkit\/chrome_deps,Jonekee\/chromium.src,ChromiumWebApps\/chromium,markYoungH\/chromium.src,hgl888\/chromium-crosswalk-efl,patrickm\/chromium.src,bright-sparks\/chromium-spacewalk,PeterWangIntel\/chromium-crosswalk,mogoweb\/chromium-crosswalk,bright-sparks\/chromium-spacewalk,mohamed--abdel-maksoud\/chromium.src,hgl888\/chromium-crosswalk,Fireblend\/chromium-crosswalk,mogoweb\/chromium-crosswalk,keishi\/chromium,hgl888\/chromium-crosswalk-efl,hgl888\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,jaruba\/chromium.src,M4sse\/chromium.src,markYoungH\/chromium.src"} {"commit":"c6aef16d6f64fa9cd13ce6a1ceb89713455bc6b0","old_file":"modules\/electromagnetics\/include\/postprocessors\/ReflectionCoefficient.h","new_file":"modules\/electromagnetics\/include\/postprocessors\/ReflectionCoefficient.h","old_contents":"#ifndef REFLECTIONCOEFFICIENT_H\n#define REFLECTIONCOEFFICIENT_H\n\n#include \"SidePostprocessor.h\"\n#include \"MooseVariableInterface.h\"\n\nclass ReflectionCoefficient;\n\ntemplate <>\nInputParameters validParams();\n\nclass ReflectionCoefficient : public SidePostprocessor, public MooseVariableInterface\n{\npublic:\n ReflectionCoefficient(const InputParameters & parameters);\n\n virtual void initialize() override;\n virtual void execute() override;\n virtual PostprocessorValue getValue() override;\n\n virtual void threadJoin(const UserObject & y) override;\n\nprotected:\n virtual Real computeReflection();\n\n const VariableValue & _u;\n\n unsigned int _qp;\n\nprivate:\n const VariableValue & _coupled_imag;\n\n Real _theta;\n\n Real _length;\n\n Real _k;\n\n Real _coeff;\n\n Real _reflection_coefficient;\n};\n\n#endif \/\/ REFLECTIONCOEFFICIENT_H\n","new_contents":"#pragma once\n\n#include \"SidePostprocessor.h\"\n#include \"MooseVariableInterface.h\"\n\nclass ReflectionCoefficient;\n\ntemplate <>\nInputParameters validParams();\n\nclass ReflectionCoefficient : public SidePostprocessor, public MooseVariableInterface\n{\npublic:\n ReflectionCoefficient(const InputParameters & parameters);\n\n virtual void initialize() override;\n virtual void execute() override;\n virtual PostprocessorValue getValue() override;\n\n virtual void threadJoin(const UserObject & y) override;\n\nprotected:\n virtual Real computeReflection();\n\n const VariableValue & _u;\n\n unsigned int _qp;\n\nprivate:\n const VariableValue & _coupled_imag;\n\n Real _theta;\n\n Real _length;\n\n Real _k;\n\n Real _coeff;\n\n Real _reflection_coefficient;\n};\n","subject":"Convert postprocessors to pragma once","message":"Convert postprocessors to pragma once\n\nrefs #21085\n","lang":"C","license":"lgpl-2.1","repos":"harterj\/moose,dschwen\/moose,andrsd\/moose,sapitts\/moose,milljm\/moose,harterj\/moose,laagesen\/moose,harterj\/moose,harterj\/moose,laagesen\/moose,lindsayad\/moose,milljm\/moose,milljm\/moose,andrsd\/moose,dschwen\/moose,dschwen\/moose,sapitts\/moose,lindsayad\/moose,andrsd\/moose,laagesen\/moose,andrsd\/moose,milljm\/moose,sapitts\/moose,idaholab\/moose,lindsayad\/moose,laagesen\/moose,dschwen\/moose,idaholab\/moose,milljm\/moose,idaholab\/moose,harterj\/moose,laagesen\/moose,lindsayad\/moose,idaholab\/moose,sapitts\/moose,lindsayad\/moose,sapitts\/moose,dschwen\/moose,idaholab\/moose,andrsd\/moose"} {"commit":"85de995f9baa868dd53ed84986426a63ed9bdc99","old_file":"PC\/dl_nt.c","new_file":"PC\/dl_nt.c","old_contents":"\/*\n\nEntry point for the Windows NT DLL.\n\nAbout the only reason for having this, is so initall() can automatically\nbe called, removing that burden (and possible source of frustration if \nforgotten) from the programmer.\n\n*\/\n#include \"windows.h\"\n\n\/* NT and Python share these *\/\n#undef INCREF\n#undef DECREF\n#include \"config.h\"\n#include \"allobjects.h\"\n\nHMODULE PyWin_DLLhModule = NULL;\n\nBOOL\tWINAPI\tDllMain (HANDLE hInst, \n\t\t\t\t\t\tULONG ul_reason_for_call,\n\t\t\t\t\t\tLPVOID lpReserved)\n{\n\tswitch (ul_reason_for_call)\n\t{\n\t\tcase DLL_PROCESS_ATTACH:\n\t\t\tPyWin_DLLhModule = hInst;\n\t\t\tinitall();\n\t\t\tbreak;\n\t\tcase DLL_PROCESS_DETACH:\n\t\t\tbreak;\n\t}\n\treturn TRUE;\n}\n","new_contents":"\/*\n\nEntry point for the Windows NT DLL.\n\nAbout the only reason for having this, is so initall() can automatically\nbe called, removing that burden (and possible source of frustration if \nforgotten) from the programmer.\n\n*\/\n#include \"windows.h\"\n\n\/* NT and Python share these *\/\n#include \"config.h\"\n#include \"Python.h\"\n\nHMODULE PyWin_DLLhModule = NULL;\n\nBOOL\tWINAPI\tDllMain (HANDLE hInst, \n\t\t\t\t\t\tULONG ul_reason_for_call,\n\t\t\t\t\t\tLPVOID lpReserved)\n{\n\tswitch (ul_reason_for_call)\n\t{\n\t\tcase DLL_PROCESS_ATTACH:\n\t\t\tPyWin_DLLhModule = hInst;\n\t\t\t\/\/initall();\n\t\t\tbreak;\n\t\tcase DLL_PROCESS_DETACH:\n\t\t\tbreak;\n\t}\n\treturn TRUE;\n}\n","subject":"Use Python.h, not allobjects.h. Don't call initall() (Experimental incompatible change!!!!!!)","message":"Use Python.h, not allobjects.h.\nDon't call initall() (Experimental incompatible change!!!!!!)\n","lang":"C","license":"mit","repos":"sk-\/python2.7-type-annotator,sk-\/python2.7-type-annotator,sk-\/python2.7-type-annotator"} {"commit":"f6cbd04937a2b1503a4eaeeb6e18a8c31133d0b6","old_file":"hanoi.c","new_file":"hanoi.c","old_contents":"\/*\n * Copyright (C) 2014-2015 Pavel Dolgov\n *\n * See the LICENSE file for terms of use.\n *\/\n\n#include \n\n#define TOWER1 1\n#define TOWER2 3\n\nvoid hanoi(int a, int n1, int n2) {\n if (a == 1) { \/\/ end of recursion\n printf(\"%d %d %d\\n\", a, n1, n2);\n } else {\n int x, na;\n for (x = TOWER1; x <= TOWER2; x++) {\n if ((x != n1) && (x != n2)) {\n na = x;\n break;\n }\n }\n hanoi(a - 1, n1, na); \/\/ recursion\n printf(\"%d %d %d\\n\", a, n1, n2);\n hanoi(a - 1, na, n2); \/\/ recursion\n }\n}\n\nint main() {\n int n;\n scanf(\"%d\", &n);\n hanoi(n, TOWER1, TOWER2);\n}\n\n","new_contents":"\/*\n * Copyright (C) 2014-2015 Pavel Dolgov\n *\n * See the LICENSE file for terms of use.\n *\/\n\n#include \n\n#define TOWER1 1\n#define TOWER2 3\n\nvoid hanoi(int a, int n1, int n2) {\n if (a == 1) { \/\/ end of recursion\n printf(\"%d %d %d\\n\", a, n1, n2);\n } else {\n int x, na;\n for (x = TOWER1; x <= TOWER2; x++) {\n if ((x != n1) && (x != n2)) {\n na = x;\n break;\n }\n }\n hanoi(a - 1, n1, na); \/\/ recursion\n printf(\"%d %d %d\\n\", a, n1, n2);\n hanoi(a - 1, na, n2); \/\/ recursion\n }\n}\n\nint main() {\n int n;\n scanf(\"%d\", &n);\n hanoi(n, TOWER1, TOWER2);\n}\n","subject":"Fix layout (delete empty string)","message":"Fix layout (delete empty string)\n","lang":"C","license":"mit","repos":"zer0main\/hanoi_tower"} {"commit":"f9dedee2f091dd14a8da268399c34c00b6d37695","old_file":"Game.h","new_file":"Game.h","old_contents":"#pragma once \/\/ This guarantees that the code is included only once in the game.\n#include \"SFML\/Window.hpp\"\n#include \"SFML\/Graphics.hpp\"\n\nclass Game {\n public:\n \/\/ Objects declared static are allocated storage in static storage area, and have scope till the end of the program.\n static void Start(); \n private:\n static bool IsExiting();\n static void GameLoop();\n\n enum GameState {\n Uninitialized, ShowingSplash, Paused, ShowingMenu, Playing, Exiting\n }; \/\/ Represents the various states the game can be in. An enum is a user-defined type consisting of a set of named constants called enumerators. \n\n static GameState _gameState;\n static sf::RenderWindow _mainWindow;\n};\n","new_contents":"#ifndef GAME_H \/\/ This guarentees that the code is included only once in the game.\n#define GAME_H\n\n#include \"SFML\/Graphics.hpp\"\n#include \"SFML\/Window.hpp\"\n\nclass Game {\n public:\n \/\/ Objects declared static are allocated storage in static storage area, and have scope till the end of the program.\n static void start(); \n private:\n static bool is_exiting();\n static void game_loop();\n\n enum game_state {\n Uninitialized, ShowingSplash, Paused, ShowingMenu, Playing, Exiting\n }; \/\/ Represents the various states the game can be in. An enum is a user-defined type consisting of a set of named constants called enumerators. \n\n static game_state s_game_state;\n static sf::RenderWindow s_main_window;\n};\n\n#endif\n","subject":"Change styling convention of the variable names","message":"Change styling convention of the variable names\n","lang":"C","license":"mit","repos":"jessicaphuong\/pong-clone"} {"commit":"f533072ea6e6b4806db8166d10f40a3acb982c79","old_file":"modules\/solid_mechanics\/include\/materials\/nonlinear_strain\/Elastic.h","new_file":"modules\/solid_mechanics\/include\/materials\/nonlinear_strain\/Elastic.h","old_contents":"#ifndef ELASTIC_H\n#define ELASTIC_H\n\n#include \"MaterialModel.h\"\n\n\/\/ Forward declarations\nclass ElasticityTensor;\nclass Elastic;\n\ntemplate<>\nInputParameters validParams();\n\nclass Elastic : public MaterialModel\n{\npublic:\n Elastic( const std::string & name,\n InputParameters parameters );\n virtual ~Elastic();\n\nprotected:\n\n \/\/\/ Compute the stress (sigma += deltaSigma)\n virtual void computeStress();\n\n};\n\n#endif\n","new_contents":"#ifndef ELASTIC_H\n#define ELASTIC_H\n\n#include \"MaterialModel.h\"\n\n\/\/ Forward declarations\nclass ElasticityTensor;\nclass Elastic;\n\ntemplate<>\nInputParameters validParams();\n\nclass Elastic : public MaterialModel\n{\npublic:\n Elastic( const std::string & name,\n InputParameters parameters );\n virtual ~Elastic();\n\nprotected:\n\n \/\/\/ Compute the stress (sigma += deltaSigma)\n virtual void computeStress();\n\n};\n\n\n#endif\n","subject":"Update new files with SymmTensor changes","message":"Update new files with SymmTensor changes\n\nr5226\n","lang":"C","license":"lgpl-2.1","repos":"zzyfisherman\/moose,jasondhales\/moose,jhbradley\/moose,jessecarterMOOSE\/moose,cpritam\/moose,jhbradley\/moose,wgapl\/moose,YaqiWang\/moose,shanestafford\/moose,xy515258\/moose,raghavaggarwal\/moose,andrsd\/moose,Chuban\/moose,apc-llc\/moose,bwspenc\/moose,mellis13\/moose,xy515258\/moose,adamLange\/moose,giopastor\/moose,giopastor\/moose,stimpsonsg\/moose,harterj\/moose,sapitts\/moose,waxmanr\/moose,tonkmr\/moose,jiangwen84\/moose,roystgnr\/moose,laagesen\/moose,harterj\/moose,idaholab\/moose,katyhuff\/moose,stimpsonsg\/moose,yipenggao\/moose,liuwenf\/moose,jasondhales\/moose,shanestafford\/moose,lindsayad\/moose,wgapl\/moose,waxmanr\/moose,idaholab\/moose,tonkmr\/moose,zzyfisherman\/moose,sapitts\/moose,shanestafford\/moose,lindsayad\/moose,jinmm1992\/moose,SudiptaBiswas\/moose,markr622\/moose,permcody\/moose,zzyfisherman\/moose,lindsayad\/moose,liuwenf\/moose,adamLange\/moose,apc-llc\/moose,dschwen\/moose,bwspenc\/moose,friedmud\/moose,joshua-cogliati-inl\/moose,SudiptaBiswas\/moose,andrsd\/moose,harterj\/moose,joshua-cogliati-inl\/moose,joshua-cogliati-inl\/moose,cpritam\/moose,friedmud\/moose,jbair34\/moose,backmari\/moose,markr622\/moose,jiangwen84\/moose,raghavaggarwal\/moose,milljm\/moose,YaqiWang\/moose,sapitts\/moose,nuclear-wizard\/moose,danielru\/moose,YaqiWang\/moose,Chuban\/moose,roystgnr\/moose,backmari\/moose,friedmud\/moose,WilkAndy\/moose,jessecarterMOOSE\/moose,raghavaggarwal\/moose,nuclear-wizard\/moose,kasra83\/moose,nuclear-wizard\/moose,harterj\/moose,jessecarterMOOSE\/moose,roystgnr\/moose,laagesen\/moose,nuclear-wizard\/moose,milljm\/moose,WilkAndy\/moose,jhbradley\/moose,mellis13\/moose,permcody\/moose,tonkmr\/moose,dschwen\/moose,milljm\/moose,cpritam\/moose,liuwenf\/moose,laagesen\/moose,andrsd\/moose,roystgnr\/moose,WilkAndy\/moose,liuwenf\/moose,danielru\/moose,shanestafford\/moose,apc-llc\/moose,cpritam\/moose,laagesen\/moose,bwspenc\/moose,adamLange\/moose,xy515258\/moose,friedmud\/moose,danielru\/moose,mellis13\/moose,mellis13\/moose,zzyfisherman\/moose,dschwen\/moose,capitalaslash\/moose,jiangwen84\/moose,WilkAndy\/moose,jbair34\/moose,andrsd\/moose,markr622\/moose,jiangwen84\/moose,yipenggao\/moose,markr622\/moose,yipenggao\/moose,cpritam\/moose,apc-llc\/moose,giopastor\/moose,jasondhales\/moose,WilkAndy\/moose,katyhuff\/moose,idaholab\/moose,capitalaslash\/moose,waxmanr\/moose,wgapl\/moose,roystgnr\/moose,laagesen\/moose,Chuban\/moose,stimpsonsg\/moose,kasra83\/moose,bwspenc\/moose,backmari\/moose,idaholab\/moose,Chuban\/moose,roystgnr\/moose,katyhuff\/moose,jinmm1992\/moose,liuwenf\/moose,raghavaggarwal\/moose,YaqiWang\/moose,idaholab\/moose,shanestafford\/moose,lindsayad\/moose,lindsayad\/moose,joshua-cogliati-inl\/moose,sapitts\/moose,danielru\/moose,kasra83\/moose,adamLange\/moose,dschwen\/moose,permcody\/moose,jessecarterMOOSE\/moose,SudiptaBiswas\/moose,xy515258\/moose,capitalaslash\/moose,roystgnr\/moose,sapitts\/moose,backmari\/moose,SudiptaBiswas\/moose,liuwenf\/moose,zzyfisherman\/moose,jhbradley\/moose,zzyfisherman\/moose,milljm\/moose,WilkAndy\/moose,yipenggao\/moose,capitalaslash\/moose,tonkmr\/moose,SudiptaBiswas\/moose,milljm\/moose,dschwen\/moose,kasra83\/moose,cpritam\/moose,shanestafford\/moose,katyhuff\/moose,andrsd\/moose,bwspenc\/moose,stimpsonsg\/moose,waxmanr\/moose,jinmm1992\/moose,giopastor\/moose,jasondhales\/moose,harterj\/moose,permcody\/moose,jbair34\/moose,tonkmr\/moose,wgapl\/moose,jinmm1992\/moose,tonkmr\/moose,jbair34\/moose,jessecarterMOOSE\/moose"} {"commit":"d037fe2cca7e0cdc8bfe48b67480201458d083d0","old_file":"lib\/msun\/src\/w_dremf.c","new_file":"lib\/msun\/src\/w_dremf.c","old_contents":"\/*\n * dremf() wrapper for remainderf().\n *\n * Written by J.T. Conklin, \n * Placed into the Public Domain, 1994.\n *\/\n\n#include \"math.h\"\n#include \"math_private.h\"\n\nfloat\ndremf(x, y)\n\tfloat x, y;\n{\n\treturn remainderf(x, y);\n}\n","new_contents":"\/*\n * dremf() wrapper for remainderf().\n *\n * Written by J.T. Conklin, \n * Placed into the Public Domain, 1994.\n *\/\n\/* $FreeBSD$ *\/\n\n#include \"math.h\"\n#include \"math_private.h\"\n\nfloat\ndremf(float x, float y)\n{\n\treturn remainderf(x, y);\n}\n","subject":"Work around known GCC 3.4.x problem and use ANSI prototype for dremf().","message":"Work around known GCC 3.4.x problem and use ANSI prototype for dremf().\n","lang":"C","license":"bsd-3-clause","repos":"jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase"} {"commit":"9e9d12f6adaeaeddc5060b5ddd353bcbdd5794e2","old_file":"ex01-16.c","new_file":"ex01-16.c","old_contents":"","new_contents":"#include \n\n#define MAXLINE 10\/*00*\/ \/* maximum input size *\/\n\nint _getline(char line[], int maxline);\n\/* getline is a library function in POSIX; unfortunately on OS X the -ansi flag\n doesn't help *\/\nvoid copy(char to[], char from[]);\n\nmain() {\n int len;\n int max;\n char line[MAXLINE];\n char longest[MAXLINE];\n\n max = 0;\n while ((len = _getline(line, MAXLINE)) > 0)\n if (len > max) {\n max = len;\n copy(longest, line);\n }\n if (max > 0) { \/* there was a line *\/\n printf(\"%d\\n\", max);\n printf(\"%s\", longest);\n }\n return 0;\n}\n\n\/* _getline: read a line into s, return length *\/\nint _getline(char s[], int lim) {\n int c, i, length;\n\n i = length = 0;\n while ((c = getchar()) != EOF) {\n ++length;\n if (i < lim - 1) {\n s[i] = c;\n ++i;\n }\n if (c == '\\n') {\n break;\n }\n }\n s[i-1] = '\\n';\n s[i] = '\\0';\n return length;\n}\n\n\/* copy: copy 'from' into 'to'; assume to is big enough *\/\nvoid copy(char to[], char from[]) {\n int i;\n\n i = 0;\n while ((to[i] = from[i]) != '\\0')\n ++i;\n}\n","subject":"Add solution for exercise 16.","message":"Add solution for exercise 16.\n","lang":"C","license":"unlicense","repos":"kdungs\/exercises-KnR"} {"commit":"0f4df1ecbd2a1b0067ae779b28599668c7a27167","old_file":"inc\/scc.h","new_file":"inc\/scc.h","old_contents":"#include \n\nextern int debug;\n\n#ifndef NDEBUG\n#define DBG(...) dbg(__VA_ARGS__)\n#define DBGON() (debug = 1)\n#else\n#define DBG(...)\n#define DBGON()\n#endif\n\n#define TINT long long\n#define TUINT unsigned long long\n#define TFLOAT double\n\nstruct items {\n\tchar **s;\n\tunsigned n;\n};\n\ntypedef struct alloc Alloc;\n\nextern void die(const char *fmt, ...);\nextern void dbg(const char *fmt, ...);\nextern void newitem(struct items *items, char *item);\nextern void *xmalloc(size_t size);\nextern void *xcalloc(size_t nmemb, size_t size);\nextern char *xstrdup(const char *s);\nextern void *xrealloc(void *buff, register size_t size);\nextern Alloc *alloc(size_t size, size_t nmemb);\nextern void dealloc(Alloc *allocp);\nextern void *new(Alloc *allocp);\nextern void delete(Alloc *allocp, void *p);\nextern int casecmp(const char *s1, const char *s2);\nextern int lpack(unsigned char *dst, char *fmt, ...);\nextern int lunpack(unsigned char *src, char *fmt, ...);\n","new_contents":"#include \n\nextern int debug;\n\n#ifndef NDEBUG\n#define DBG(...) dbg(__VA_ARGS__)\n#define DBGON() (debug = 1)\n#else\n#define DBG(...)\n#define DBGON()\n#endif\n\n#define TINT long long\n#define TUINT unsigned long long\n#define TUINT_MAX ULLONG_MAX\n#define TINT_MAX LLONG_MAX\n#define TFLOAT double\n\nstruct items {\n\tchar **s;\n\tunsigned n;\n};\n\ntypedef struct alloc Alloc;\n\nextern void die(const char *fmt, ...);\nextern void dbg(const char *fmt, ...);\nextern void newitem(struct items *items, char *item);\nextern void *xmalloc(size_t size);\nextern void *xcalloc(size_t nmemb, size_t size);\nextern char *xstrdup(const char *s);\nextern void *xrealloc(void *buff, register size_t size);\nextern Alloc *alloc(size_t size, size_t nmemb);\nextern void dealloc(Alloc *allocp);\nextern void *new(Alloc *allocp);\nextern void delete(Alloc *allocp, void *p);\nextern int casecmp(const char *s1, const char *s2);\nextern int lpack(unsigned char *dst, char *fmt, ...);\nextern int lunpack(unsigned char *src, char *fmt, ...);\n","subject":"Add limits macros for TUINT and TINT","message":"Add limits macros for TUINT and TINT\n","lang":"C","license":"isc","repos":"k0gaMSX\/scc,k0gaMSX\/scc,k0gaMSX\/scc"} {"commit":"98c3fef74045aa6d8c7813f8ba8c511ab70ec59e","old_file":"tests\/regression\/36-octapron\/40-rational-bounds.c","new_file":"tests\/regression\/36-octapron\/40-rational-bounds.c","old_contents":"","new_contents":"\/\/ SKIP PARAM: --sets ana.activated[+] octApron\n#include \n\nvoid main() {\n int x;\n if (x <= 10) {\n assert((x \/ 3) <= 3);\n }\n}\n","subject":"Add test where octApron derives non-integer bounds","message":"Add test where octApron derives non-integer bounds\n","lang":"C","license":"mit","repos":"goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer"} {"commit":"c2b84152f437e86cc2b55c1cc0bbb35d3fa645b5","old_file":"example_no_runner.c","new_file":"example_no_runner.c","old_contents":"#include \n#include \n#include \n\n#include \"greatest.h\"\n\nTEST standalone_pass(void) {\n PASS();\n}\n\n\/* Add all the definitions that need to be in the test runner's main file. *\/\nGREATEST_MAIN_DEFS();\n\nint main(int argc, char **argv) {\n (void)argc;\n (void)argv;\n \n \/* Initialize greatest, but don't build the CLI test runner code. *\/\n GREATEST_INIT();\n\n RUN_TEST(standalone_pass);\n\n \/* Print report, but do not exit. *\/\n printf(\"\\nStandard report, as printed by greatest:\\n\");\n GREATEST_PRINT_REPORT();\n \n struct greatest_report_t report;\n greatest_get_report(&report);\n\n printf(\"\\nCustom report:\\n\");\n printf(\"pass %u, fail %u, skip %u, assertions %u\\n\",\n report.passed, report.failed, report.skipped, report.assertions);\n\n if (report.failed > 0) {\n return 1;\n }\n\n return 0;\n}\n","new_contents":"#include \n#include \n#include \n\n#include \"greatest.h\"\n\nTEST standalone_pass(void) {\n PASS();\n}\n\n\/* Add all the definitions that need to be in the test runner's main file. *\/\nGREATEST_MAIN_DEFS();\n\nint main(int argc, char **argv) {\n struct greatest_report_t report;\n (void)argc;\n (void)argv;\n \n \/* Initialize greatest, but don't build the CLI test runner code. *\/\n GREATEST_INIT();\n\n RUN_TEST(standalone_pass);\n\n \/* Print report, but do not exit. *\/\n printf(\"\\nStandard report, as printed by greatest:\\n\");\n GREATEST_PRINT_REPORT();\n \n greatest_get_report(&report);\n\n printf(\"\\nCustom report:\\n\");\n printf(\"pass %u, fail %u, skip %u, assertions %u\\n\",\n report.passed, report.failed, report.skipped, report.assertions);\n\n if (report.failed > 0) {\n return 1;\n }\n\n return 0;\n}\n","subject":"Fix warning for mixing declarations and code in ISO C90.","message":"Fix warning for mixing declarations and code in ISO C90.\n","lang":"C","license":"isc","repos":"silentbicycle\/greatest,silentbicycle\/greatest"} {"commit":"80bf0da7bfe646f94615ce6e3aa67cfa4648bc1d","old_file":"include\/libtrading\/byte-order.h","new_file":"include\/libtrading\/byte-order.h","old_contents":"#ifndef LIBTRADING_BYTE_ORDER_H\n#define LIBTRADING_BYTE_ORDER_H\n\n#include \"libtrading\/types.h\"\n\n#include \n\nstatic inline be16 cpu_to_be16(u16 value)\n{\n\treturn htons(value);\n}\n\nstatic inline be32 cpu_to_be32(u32 value)\n{\n\treturn htonl(value);\n}\n\nstatic inline u16 be16_to_cpu(be16 value)\n{\n\treturn ntohs(value);\n}\n\nstatic inline u32 be32_to_cpu(be32 value)\n{\n\treturn ntohl(value);\n}\n\n#endif\n","new_contents":"#ifndef LIBTRADING_BYTE_ORDER_H\n#define LIBTRADING_BYTE_ORDER_H\n\n#include \n\n\/*\n * Little Endian\n *\/\n\nstatic inline le16 cpu_to_le16(u16 value)\n{\n\treturn htole16(value);\n}\n\nstatic inline le32 cpu_to_le32(u32 value)\n{\n\treturn htole32(value);\n}\n\nstatic inline le64 cpu_to_le64(u64 value)\n{\n\treturn htole64(value);\n}\n\nstatic inline u16 le16_to_cpu(le16 value)\n{\n\treturn le16toh(value);\n}\n\nstatic inline u32 le32_to_cpu(le32 value)\n{\n\treturn le32toh(value);\n}\n\nstatic inline u64 le64_to_cpu(le64 value)\n{\n\treturn le64toh(value);\n}\n\n\/*\n * Big Endian\n *\/\n\nstatic inline be16 cpu_to_be16(u16 value)\n{\n\treturn htobe16(value);\n}\n\nstatic inline be32 cpu_to_be32(u32 value)\n{\n\treturn htobe32(value);\n}\n\nstatic inline be64 cpu_to_be64(u64 value)\n{\n\treturn htobe64(value);\n}\n\nstatic inline u16 be16_to_cpu(be16 value)\n{\n\treturn be16toh(value);\n}\n\nstatic inline u32 be32_to_cpu(be32 value)\n{\n\treturn be32toh(value);\n}\n\nstatic inline u64 be64_to_cpu(be64 value)\n{\n\treturn be64toh(value);\n}\n\n#endif\n","subject":"Use for byte order helpers","message":"Use for byte order helpers\n\nAlso add missing helper functions.\n\nSigned-off-by: Pekka Enberg \n","lang":"C","license":"bsd-2-clause","repos":"fengzhyuan\/libtrading,mstanichenko\/libtrading,etoestja\/libtrading,mstanichenko\/libtrading,NunoEdgarGub1\/libtrading,libtrading\/libtrading,libtrading\/libtrading,penberg\/libtrading,divaykin\/libtrading,etoestja\/libtrading,Bitcoinsulting\/libtrading,divaykin\/libtrading,femtotrader\/libtrading,femtotrader\/libtrading,jvirtanen\/libtrading,Bitcoinsulting\/libtrading,svdev\/libtrading,NunoEdgarGub1\/libtrading,svdev\/libtrading,penberg\/libtrading,jvirtanen\/libtrading,fengzhyuan\/libtrading"} {"commit":"54cfb51eabc5c61e3cdfdbc6e745a22d6f992e53","old_file":"WildcardPattern.h","new_file":"WildcardPattern.h","old_contents":"#import \n\n\n@interface WildcardPattern : NSObject {\n\tNSString* pattern_;\n}\n\n- (id) initWithString: (NSString*) s;\n- (BOOL) isMatch: (NSString*) s;\n\n@end\n","new_contents":"\/*\n * Copyright (c) 2006 KATO Kazuyoshi \n * This source code is released under the MIT license.\n *\/\n\n#import \n\n@interface WildcardPattern : NSObject {\n\tNSString* pattern_;\n}\n\n- (id) initWithString: (NSString*) s;\n- (BOOL) isMatch: (NSString*) s;\n\n@end\n","subject":"Add copyright and license header.","message":"Add copyright and license header.\n","lang":"C","license":"mit","repos":"torezzz\/greasekit"} {"commit":"601b1f4970926d2b09218265ba661346a89612ea","old_file":"src\/util.h","new_file":"src\/util.h","old_contents":"#ifndef LACO_UTIL_H\n#define LACO_UTIL_H\n\nstruct LacoState;\nstruct lua_State;\n\n\/**\n * Load a line into the lua stack to be evaluated later\n *\n * param pointer to LacoState\n *\n * return -1 if there is no line input to load\n *\/\nint laco_load_line(struct LacoState* laco);\n\n\/**\n * Called after laco_load_line, this evaluated the line as a function and\n * hands of the result for printing\n *\n * param pointer to LacoState\n *\/\nvoid laco_handle_line(struct LacoState* laco);\n\n\/**\n * Kills the loop with exiting message if specified\n *\n * param pointer to LacoState\n * param exit with status\n * param error message\n *\/\nvoid laco_kill(struct LacoState* laco, int status, const char* message);\n\n\/**\n * When there is a value on the lua stack, it will print out depending on\n * the type it is\n *\n * param pointer to lua_State\n *\n * return LUA_ERRSYNTAX if the value has some error\n *\/\nint laco_print_type(struct lua_State* L);\n\n\n\/**\n * Prints out and pops off errors pushed into the lua stack\n *\n * param pointer to lua_State\n * param incoming lua stack status\n *\/\nvoid laco_report_error(struct lua_State* L, int status);\n\nint laco_is_match(const char** matches, const char* test_string);\n\n#endif \/* LACO_UTIL_H *\/\n","new_contents":"#ifndef LACO_UTIL_H\n#define LACO_UTIL_H\n\nstruct LacoState;\n\n\/**\n * Load a line into the lua stack to be evaluated later\n *\n * param pointer to LacoState\n *\n * return -1 if there is no line input to load\n *\/\nint laco_load_line(struct LacoState* laco);\n\n\/**\n * Called after laco_load_line, this evaluated the line as a function and\n * hands of the result for printing\n *\n * param pointer to LacoState\n *\/\nvoid laco_handle_line(struct LacoState* laco);\n\n\/**\n * Kills the loop with exiting message if specified\n *\n * param pointer to LacoState\n * param exit with status\n * param error message\n *\/\nvoid laco_kill(struct LacoState* laco, int status, const char* message);\n\n\/**\n * When there is a value on the lua stack, it will print out depending on\n * the type it is\n *\n * param pointer to lua_State\n *\n * return LUA_ERRSYNTAX if the value has some error\n *\/\nint laco_print_type(struct LacoState* laco);\n\n\/**\n * Prints out and pops off errors pushed into the lua stack\n *\n * param pointer to lua_State\n * param incoming lua stack status\n *\/\nvoid laco_report_error(struct LacoState* laco, int status);\n\nint laco_is_match(const char** matches, const char* test_string);\n\n#endif \/* LACO_UTIL_H *\/\n","subject":"Change lua_State pointer to LacoState","message":"Change lua_State pointer to LacoState\n\nMostly for consistency in the API.\n","lang":"C","license":"bsd-2-clause","repos":"sourrust\/laco"} {"commit":"b232dd075cad8d21bffb4096afb081f097c3caab","old_file":"helpers\/pgrp_placeholder.c","new_file":"helpers\/pgrp_placeholder.c","old_contents":"\/*\nCopyright 2019 Google Inc. All rights reserved.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*\/\n\n\/*!\n *\\brief Process group placeholder.\n *\n * Does nothing except sitting around until killed. Spawned as extra process in\n * our process groups so that we can control on our own when the process group\n * ID is reclaimed to the kernel, namely by killing the entire process group.\n * This prevents a race condition of our process group getting reclaimed before\n * we try to kill possibly remaining processes in it, after which we would\n * possibly kill something else.\n *\n * Must be a separate executable so F_CLOEXEC applies as intended.\n *\/\n\n#include \n\nint main() {\n for (;;) {\n pause();\n }\n return 0;\n}\n","new_contents":"\/*\nCopyright 2019 Google Inc. All rights reserved.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*\/\n\n\/*!\n *\\brief Process group placeholder.\n *\n * Does nothing except sitting around until killed. Spawned as extra process in\n * our process groups so that we can control on our own when the process group\n * ID is reclaimed to the kernel, namely by killing the entire process group.\n * This prevents a race condition of our process group getting reclaimed before\n * we try to kill possibly remaining processes in it, after which we would\n * possibly kill something else.\n *\n * Must be a separate executable so F_CLOEXEC applies as intended.\n *\/\n\n#include \n#include \n\nint main() {\n for (;;) {\n pause();\n }\n \/\/ Cannot get here.\n abort();\n}\n","subject":"Return failure if the unexitable loop ever exits ;)","message":"Return failure if the unexitable loop ever exits ;)\n\n(cleaner)\n","lang":"C","license":"apache-2.0","repos":"google\/xsecurelock,google\/xsecurelock"} {"commit":"952e0be71291f6475cb4c86894e43dc531eb8980","old_file":"ir\/be\/test\/invsqrt.c","new_file":"ir\/be\/test\/invsqrt.c","old_contents":"","new_contents":"\/**\n * magical invsqrt function from Quake III code\n * see: http:\/\/www.codemaestro.com\/reviews\/9\n *\/\n\nfloat InvSqrt(float x)\n{\n\tfloat xhalf = 0.5f*x;\n\tint i = *(int*)&x;\n\ti = 0x5f3759df - (i>>1);\n\tx = *(float*)&i;\n\tx = x*(1.5f-xhalf*x*x);\n\treturn x;\n}\n\nint main(void) {\n\tint result = InvSqrt(0.00056);\n\tprintf(\"Result: %d (should be 42)\", result);\n\treturn result != 42;\n}\n","subject":"Test case for historical reasons","message":"Test case for historical reasons\n\n[r22410]\n","lang":"C","license":"lgpl-2.1","repos":"8l\/libfirm,MatzeB\/libfirm,killbug2004\/libfirm,libfirm\/libfirm,libfirm\/libfirm,killbug2004\/libfirm,libfirm\/libfirm,killbug2004\/libfirm,jonashaag\/libfirm,killbug2004\/libfirm,jonashaag\/libfirm,jonashaag\/libfirm,8l\/libfirm,MatzeB\/libfirm,8l\/libfirm,libfirm\/libfirm,8l\/libfirm,jonashaag\/libfirm,8l\/libfirm,davidgiven\/libfirm,davidgiven\/libfirm,MatzeB\/libfirm,libfirm\/libfirm,jonashaag\/libfirm,8l\/libfirm,8l\/libfirm,davidgiven\/libfirm,MatzeB\/libfirm,MatzeB\/libfirm,davidgiven\/libfirm,jonashaag\/libfirm,davidgiven\/libfirm,MatzeB\/libfirm,MatzeB\/libfirm,killbug2004\/libfirm,killbug2004\/libfirm,davidgiven\/libfirm,jonashaag\/libfirm,davidgiven\/libfirm,killbug2004\/libfirm"} {"commit":"d7ff6aa14bca10865795a218c863d3149263621f","old_file":"src\/debugger.h","new_file":"src\/debugger.h","old_contents":"#ifndef DEBUGGER_H\n#define DEBUGGER_H\n\nenum DebuggerState {\n\tDEBUGGER_PAUSED,\n\tDEBUGGER_RUNNING,\n\tDEBUGGER_EXITING\n};\n\nstruct ARMDebugger {\n\tenum DebuggerState state;\n\tstruct ARMCore* cpu;\n\n\tchar* lastCommand;\n};\n\nvoid ARMDebuggerInit(struct ARMDebugger*, struct ARMCore*);\nvoid ARMDebuggerRun(struct ARMDebugger*);\nvoid ARMDebuggerEnter(struct ARMDebugger*);\n\n#endif\n","new_contents":"#ifndef DEBUGGER_H\n#define DEBUGGER_H\n\nenum DebuggerState {\n\tDEBUGGER_PAUSED,\n\tDEBUGGER_RUNNING,\n\tDEBUGGER_EXITING\n};\n\nstruct ARMDebugger {\n\tenum DebuggerState state;\n\tstruct ARMCore* cpu;\n\n\tchar* lastCommand;\n\tstruct DebugBreakpoint* breakpoints;\n};\n\nvoid ARMDebuggerInit(struct ARMDebugger*, struct ARMCore*);\nvoid ARMDebuggerRun(struct ARMDebugger*);\nvoid ARMDebuggerEnter(struct ARMDebugger*);\n\n#endif\n","subject":"Add missing field for breakpoints","message":"Add missing field for breakpoints\n","lang":"C","license":"mpl-2.0","repos":"askotx\/mgba,fr500\/mgba,sergiobenrocha2\/mgba,Iniquitatis\/mgba,fr500\/mgba,mgba-emu\/mgba,libretro\/mgba,matthewbauer\/mgba,fr500\/mgba,Touched\/mgba,jeremyherbert\/mgba,cassos\/mgba,askotx\/mgba,fr500\/mgba,nattthebear\/mgba,Iniquitatis\/mgba,libretro\/mgba,jeremyherbert\/mgba,Touched\/mgba,libretro\/mgba,libretro\/mgba,nattthebear\/mgba,AdmiralCurtiss\/mgba,sergiobenrocha2\/mgba,sergiobenrocha2\/mgba,sergiobenrocha2\/mgba,mgba-emu\/mgba,Anty-Lemon\/mgba,iracigt\/mgba,cassos\/mgba,askotx\/mgba,cassos\/mgba,iracigt\/mgba,AdmiralCurtiss\/mgba,askotx\/mgba,bentley\/mgba,zerofalcon\/mgba,Anty-Lemon\/mgba,bentley\/mgba,mgba-emu\/mgba,mgba-emu\/mgba,zerofalcon\/mgba,iracigt\/mgba,MerryMage\/mgba,MerryMage\/mgba,MerryMage\/mgba,matthewbauer\/mgba,zerofalcon\/mgba,iracigt\/mgba,Anty-Lemon\/mgba,sergiobenrocha2\/mgba,jeremyherbert\/mgba,Anty-Lemon\/mgba,Touched\/mgba,Iniquitatis\/mgba,AdmiralCurtiss\/mgba,Iniquitatis\/mgba,libretro\/mgba,jeremyherbert\/mgba"} {"commit":"9614463119c6c28626ae237f9ce7225a638d32ef","old_file":"src\/commands\/i2c_test_command.c","new_file":"src\/commands\/i2c_test_command.c","old_contents":"#include \n#include \n\n#include \"obc.h\"\n#include \"system.h\"\n#include \"terminal.h\"\n\nvoid I2CTestCommandHandler(uint16_t argc, char* argv[])\n{\n UNREFERENCED_PARAMETER(argc);\n\n I2CBus* bus;\n\n if (strcmp(argv[0], \"system\") == 0)\n {\n bus = Main.I2C.System;\n }\n else if (strcmp(argv[0], \"payload\") == 0)\n {\n bus = Main.I2C.Payload;\n }\n else\n {\n TerminalPuts(\"Unknown bus\\n\");\n }\n\n const uint8_t device = (uint8_t)atoi(argv[1]);\n const uint8_t* data = (uint8_t*)argv[2];\n const size_t dataLength = strlen(argv[2]);\n\n uint8_t output[20] = {0};\n size_t outputLength = dataLength;\n\n const I2CResult result = bus->WriteRead(bus, device, data, dataLength, output, outputLength);\n\n if (result == I2CResultOK)\n {\n TerminalPuts((char*)output);\n }\n else\n {\n TerminalPrintf(\"Error %d\\n\", result);\n }\n}\n","new_contents":"#include \n#include \n\n#include \"obc.h\"\n#include \"system.h\"\n#include \"terminal.h\"\n\nvoid I2CTestCommandHandler(uint16_t argc, char* argv[])\n{\n UNREFERENCED_PARAMETER(argc);\n\n if (argc != 3)\n {\n TerminalPuts(\"i2c \\n\");\n return;\n }\n\n I2CBus* bus;\n\n if (strcmp(argv[0], \"system\") == 0)\n {\n bus = Main.I2C.System;\n }\n else if (strcmp(argv[0], \"payload\") == 0)\n {\n bus = Main.I2C.Payload;\n }\n else\n {\n TerminalPuts(\"Unknown bus\\n\");\n }\n\n const uint8_t device = (uint8_t)atoi(argv[1]);\n const uint8_t* data = (uint8_t*)argv[2];\n const size_t dataLength = strlen(argv[2]);\n\n uint8_t output[20] = {0};\n size_t outputLength = dataLength;\n\n const I2CResult result = bus->WriteRead(bus, device, data, dataLength, output, outputLength);\n\n if (result == I2CResultOK)\n {\n TerminalPuts((char*)output);\n }\n else\n {\n TerminalPrintf(\"Error %d\\n\", result);\n }\n}\n","subject":"Check args count in test i2c terminal command","message":"Check args count in test i2c terminal command\n","lang":"C","license":"agpl-3.0","repos":"PW-Sat2\/PWSat2OBC,PW-Sat2\/PWSat2OBC,PW-Sat2\/PWSat2OBC,PW-Sat2\/PWSat2OBC"} {"commit":"01a0794bfbc6dd31c4847d2562e890622eac1ee3","old_file":"Pod\/Classes\/GGReadabilityParser.h","new_file":"Pod\/Classes\/GGReadabilityParser.h","old_contents":"\/*\n Copyright (c) 2012 Curtis Hard - GeekyGoodness\n *\/\n\n\/*\n Modified by Denis Zamataev. 2014\n *\/\n\n#import \n\n#import \n\n#import \"DZReadability_constants.h\"\n\ntypedef void (^GGReadabilityParserCompletionHandler)( NSString * content );\ntypedef void (^GGReadabilityParserErrorHandler)( NSError * error );\n\n@interface GGReadabilityParser : NSObject {\n \n float loadProgress;\n \n@private\n GGReadabilityParserErrorHandler errorHandler;\n GGReadabilityParserCompletionHandler completionHandler;\n GGReadabilityParserOptions options;\n NSURL * URL;\n NSURL * baseURL;\n long long dataLength;\n NSMutableData * responseData;\n NSURLConnection * URLConnection;\n NSURLResponse * URLResponse;\n \n}\n\n@property ( nonatomic, assign ) float loadProgress;\n\n- (id)initWithOptions:(GGReadabilityParserOptions)parserOptions;\n- (id)initWithURL:(NSURL *)aURL\n options:(GGReadabilityParserOptions)parserOptions\ncompletionHandler:(GGReadabilityParserCompletionHandler)cHandler\n errorHandler:(GGReadabilityParserErrorHandler)eHandler;\n\n- (void)cancel;\n- (void)render;\n- (void)renderWithString:(NSString *)string;\n\n- (HTMLElement *)processXMLDocument:(HTMLDocument *)XML baseURL:(NSURL *)theBaseURL error:(NSError **)error;\n@end","new_contents":"\/*\n Copyright (c) 2012 Curtis Hard - GeekyGoodness\n *\/\n\n\/*\n Modified by Denis Zamataev. 2014\n *\/\n\n#import \n\n#import \"HTMLReader.h\"\n\n#import \"DZReadability_constants.h\"\n\ntypedef void (^GGReadabilityParserCompletionHandler)( NSString * content );\ntypedef void (^GGReadabilityParserErrorHandler)( NSError * error );\n\n@interface GGReadabilityParser : NSObject {\n \n float loadProgress;\n \n@private\n GGReadabilityParserErrorHandler errorHandler;\n GGReadabilityParserCompletionHandler completionHandler;\n GGReadabilityParserOptions options;\n NSURL * URL;\n NSURL * baseURL;\n long long dataLength;\n NSMutableData * responseData;\n NSURLConnection * URLConnection;\n NSURLResponse * URLResponse;\n \n}\n\n@property ( nonatomic, assign ) float loadProgress;\n\n- (id)initWithOptions:(GGReadabilityParserOptions)parserOptions;\n- (id)initWithURL:(NSURL *)aURL\n options:(GGReadabilityParserOptions)parserOptions\ncompletionHandler:(GGReadabilityParserCompletionHandler)cHandler\n errorHandler:(GGReadabilityParserErrorHandler)eHandler;\n\n- (void)cancel;\n- (void)render;\n- (void)renderWithString:(NSString *)string;\n\n- (HTMLElement *)processXMLDocument:(HTMLDocument *)XML baseURL:(NSURL *)theBaseURL error:(NSError **)error;\n@end\n","subject":"Fix HTMLReader include when using dynamic frameworks","message":"Fix HTMLReader include when using dynamic frameworks","lang":"C","license":"mit","repos":"DZamataev\/DZReadability,DZamataev\/DZReadability,DZamataev\/DZReadability,DZamataev\/DZReadability"} {"commit":"4f7bf9e92189558747c5298830afd2f9a591b5e8","old_file":"src\/game_state.h","new_file":"src\/game_state.h","old_contents":"\/\/\n\/\/ Created by Borin Ouch on 2016-03-22.\n\/\/\n\n#ifndef SFML_TEST_GAME_STATE_H\n#define SFML_TEST_GAME_STATE_H\n\n\n#include \"game.h\"\n\n\nclass GameState {\n\npublic:\n Game* game;\n\n virtual void draw(const float dt) = 0;\n virtual void update(const float dt) = 0;\n virtual void handleInput() = 0;\n};\n\n\n#endif \/\/SFML_TEST_GAME_STATE_H\n","new_contents":"\/\/\n\/\/ Created by Borin Ouch on 2016-03-22.\n\/\/\n\n#ifndef SFML_TEST_GAME_STATE_H\n#define SFML_TEST_GAME_STATE_H\n\n\n#include \"game.h\"\n\n\nclass GameState {\n\npublic:\n Game* game;\n\n virtual void draw(const float dt) = 0;\n virtual void update(const float dt) = 0;\n virtual void handleInput() = 0;\n\n virtual ~GameState() {};\n};\n\n\n#endif \/\/SFML_TEST_GAME_STATE_H\n","subject":"Add virtual destructor to game state","message":"Add virtual destructor to game state\n","lang":"C","license":"mit","repos":"aceiii\/sfml-city-builder"} {"commit":"7d38a5e83c37a40d8277b5bbb6097c25fd390c47","old_file":"include\/common.h","new_file":"include\/common.h","old_contents":"","new_contents":"#ifndef __SH_COMMON_H__\n#define __SH_COMMON_H__\n\n#include \n#include \n\n\/\/ ensure is kinda like assert but it is always executed\n#define ensure(p, msg) \\\ndo { \\\n if (!(p)) { \\\n burst_into_flames(__FILE__, __LINE__, msg); \\\n } \\\n} while(0)\n\nvoid burst_into_flames(const char* file, int line, const char* msg) {\n printf(\"%s - %s:%d\", msg, file, line);\n abort();\n}\n\n#endif \n","subject":"Add ensure for runtime assertion checking","message":"Add ensure for runtime assertion checking\n","lang":"C","license":"bsd-2-clause","repos":"GregBowyer\/softheap,GregBowyer\/softheap,GregBowyer\/softheap,GregBowyer\/softheap"} {"commit":"4740d588a16d45add192ed3ea58627f06cba9b3f","old_file":"src\/plugin\/synchronized_queue.h","new_file":"src\/plugin\/synchronized_queue.h","old_contents":"\/\/ This is a queue that can be accessed from multiple threads safely.\n\/\/\n\/\/ It's not well optimized, and requires obtaining a lock every time you check for a new value.\n\n#pragma once\n\n#include \n#include \n#include \n#include \n\ntemplate \nclass SynchronizedQueue {\n std::condition_variable cv_;\n std::mutex lock_;\n std::queue q_;\npublic:\n\n void push(T && t) {\n std::unique_lock l(lock_);\n q_.push(std::move(t));\n cv_.notify_one();\n }\n\n std::optional get() {\n std::unique_lock l(lock_);\n if(q_.empty()) {\n return std::nullopt;\n }\n\n T t = std::move(q_.front());\n q_.pop();\n return t;\n }\n\n T get_blocking() {\n std::unique_lock l(lock_);\n while(q_.empty()) {\n cv_.wait(l);\n }\n\n T t = std::move(q_.front());\n q_.pop();\n return std::move(t);\n }\n};","new_contents":"\/\/ This is a queue that can be accessed from multiple threads safely.\n\/\/\n\/\/ It's not well optimized, and requires obtaining a lock every time you check for a new value.\n\n#pragma once\n\n#include \n#include \n#include \n#include \n\ntemplate \nclass SynchronizedQueue {\n std::condition_variable cv_;\n std::mutex lock_;\n std::queue q_;\n std::atomic_uint64_t input_count{0}, output_count{0};\npublic:\n\n void push(T && t) {\n std::unique_lock l(lock_);\n q_.push(std::move(t));\n input_count++;\n cv_.notify_one();\n }\n\n std::optional get() {\n if(input_count == output_count) {\n return std::nullopt;\n }\n {\n std::unique_lock l(lock_);\n if(q_.empty()) {\n return std::nullopt;\n }\n\n output_count++;\n T t = std::move(q_.front());\n q_.pop();\n return t;\n }\n }\n\n T get_blocking() {\n std::unique_lock l(lock_);\n while(q_.empty()) {\n cv_.wait(l);\n }\n\n output_count++;\n T t = std::move(q_.front());\n q_.pop();\n return std::move(t);\n }\n};","subject":"Increase the efficiency of multithreading. This should slightly slightly increase frame rate.","message":"Increase the efficiency of multithreading. This should slightly slightly increase frame rate.\n","lang":"C","license":"mit","repos":"leecbaker\/datareftool,leecbaker\/datareftool,leecbaker\/datareftool"} {"commit":"e1aa0719162620c50ad6f402a1c58ed817f75bf7","old_file":"libedataserverui\/gtk-compat.h","new_file":"libedataserverui\/gtk-compat.h","old_contents":"#ifndef __GTK_COMPAT_H__\n#define __GTK_COMPAT_H__\n\n#include \n\n\/* Provide a compatibility layer for accessor functions introduced\n * in GTK+ 2.21.1 which we need to build with sealed GDK.\n * That way it is still possible to build with GTK+ 2.20.\n *\/\n\n#if (GTK_MAJOR_VERSION == 2 && GTK_MINOR_VERSION < 21) \\\n\t|| (GTK_MINOR_VERSION == 21 && GTK_MICRO_VERSION < 1)\n\n#define gdk_drag_context_get_actions(context) (context)->actions\n#define gdk_drag_context_get_suggested_action(context) (context)->suggested_action\n#define gdk_drag_context_get_selected_action(context) (context)->action\n\n#endif \n\n#if GTK_MAJOR_VERSION == 2 && GTK_MINOR_VERSION == 21 && GTK_MICRO_VERSION == 1\n#define gdk_drag_context_get_selected_action(context) gdk_drag_context_get_action(context)\n#endif\n\n#endif \/* __GTK_COMPAT_H__ *\/\n","new_contents":"#ifndef __GTK_COMPAT_H__\n#define __GTK_COMPAT_H__\n\n#include \n\n\/* Provide a compatibility layer for accessor functions introduced\n * in GTK+ 2.21.1 which we need to build with sealed GDK.\n * That way it is still possible to build with GTK+ 2.20.\n *\/\n\n#if (GTK_MAJOR_VERSION == 2 && GTK_MINOR_VERSION < 21) \\\n\t|| (GTK_MINOR_VERSION == 21 && GTK_MICRO_VERSION < 1)\n\n#define gdk_drag_context_get_actions(context) (context)->actions\n#define gdk_drag_context_get_suggested_action(context) (context)->suggested_action\n#define gdk_drag_context_get_selected_action(context) (context)->action\n\n#endif \n\n#if GTK_MAJOR_VERSION == 2 && GTK_MINOR_VERSION == 21 && GTK_MICRO_VERSION == 1\n#define gdk_drag_context_get_selected_action(context) gdk_drag_context_get_action(context)\n#endif\n\n#if GTK_CHECK_VERSION (2,90,5)\n\n\/* Recreate GdkRegion until we drop GTK2 compatibility. *\/\n\n#define GdkRegion cairo_region_t\n\n#define gdk_region_destroy(region) \\\n\t(cairo_region_destroy (region))\n\n#define gdk_region_point_in(region, x, y) \\\n\t(cairo_region_contains_point ((region), (x), (y)))\n\n#define gdk_region_rectangle(rectangle) \\\n\t(((rectangle)->width <= 0 || (rectangle->height <= 0)) ? \\\n\tcairo_region_create () : cairo_region_create_rectangle (rectangle))\n\n#endif\n\n#endif \/* __GTK_COMPAT_H__ *\/\n","subject":"Work around sudden disappearance of GdkRegion in GTK+ 2.90.5.","message":"Work around sudden disappearance of GdkRegion in GTK+ 2.90.5.\n\nAPI was deprecated and removed in less than two hours! Sheesh!\n","lang":"C","license":"lgpl-2.1","repos":"Distrotech\/evolution-data-server,tintou\/evolution-data-server,Distrotech\/evolution-data-server,matzipan\/evolution-data-server,matzipan\/evolution-data-server,gcampax\/evolution-data-server,tintou\/evolution-data-server,matzipan\/evolution-data-server,Distrotech\/evolution-data-server,tintou\/evolution-data-server,tintou\/evolution-data-server,gcampax\/evolution-data-server,matzipan\/evolution-data-server,Distrotech\/evolution-data-server,gcampax\/evolution-data-server,gcampax\/evolution-data-server,matzipan\/evolution-data-server,Distrotech\/evolution-data-server"} {"commit":"7efce87f280e015217514c73097a080a47a56f05","old_file":"src\/wclock_test.c","new_file":"src\/wclock_test.c","old_contents":"#include \n#include \n#include \n#include \n#include \"wclock.h\"\n#ifdef _WIN32\n# include \nstatic unsigned int sleep(unsigned int x) { Sleep(x * 1000); return 0; }\n#else\n# include \n#endif\n\nint main(void)\n{\n double res, t1, t2;\n wclock clock;\n\n if (wclock_init(&clock)) {\n abort();\n }\n\n res = wclock_get_res(&clock);\n printf(\"%.17g\\n\", res);\n assert(res > 0);\n assert(res < 2e-3); \/* presumably the clock has at least ms precision! *\/\n\n t1 = wclock_get(&clock);\n printf(\"%.17g\\n\", t1);\n\n sleep(1);\n\n t2 = wclock_get(&clock);\n printf(\"%.17g\\n\", t2);\n printf(\"%.17g\\n\", t2 - t1);\n assert(fabs(t2 - t1 - 1.) < 1e-1);\n\n return 0;\n}\n","new_contents":"#include \n#include \n#include \n#include \n#include \"wclock.h\"\n#ifdef _WIN32\n# include \nstatic unsigned int sleep(unsigned int x) { Sleep(x * 1000); return 0; }\n#else\n# include \n#endif\n\nint main(void)\n{\n double res, t1, t2;\n wclock clock;\n\n if (wclock_init(&clock)) {\n abort();\n }\n\n res = wclock_get_res(&clock);\n printf(\"%.17g\\n\", res);\n assert(res > 0);\n assert(res < 2e-3); \/* presumably the clock has at least ms precision! *\/\n\n t1 = wclock_get(&clock);\n printf(\"%.17g\\n\", t1);\n\n sleep(1);\n\n t2 = wclock_get(&clock);\n printf(\"%.17g\\n\", t2);\n printf(\"%.17g\\n\", t2 - t1);\n assert(t2 - t1 >= 0.9 && t2 - t1 < 1.4);\n\n return 0;\n}\n","subject":"Increase time tolerance to reduce flakiness on slow systems","message":"Increase time tolerance to reduce flakiness on slow systems\n","lang":"C","license":"mit","repos":"Rufflewind\/calico,Rufflewind\/calico,Rufflewind\/calico"} {"commit":"5da72a7cbfc9d388f6f22aabfefda2bc53ce56c8","old_file":"test\/assertions.h","new_file":"test\/assertions.h","old_contents":"#include \n#include \n#include \n\n#include \n\n#include \"cbor.h\"\n\n#ifndef ASSERTIONS_H_\n#define ASSERTIONS_H_\n\nvoid assert_uint8(cbor_item_t* item, uint8_t num);\nvoid assert_uint16(cbor_item_t* item, uint16_t num);\nvoid assert_uint32(cbor_item_t* item, uint32_t num);\nvoid assert_uint64(cbor_item_t* item, uint64_t num);\n\nvoid assert_decoder_result(size_t, enum cbor_decoder_status,\n struct cbor_decoder_result);\n\n\/\/ TODO: Docs\nvoid assert_decoder_result_nedata(size_t, struct cbor_decoder_result);\n\n\/**\n * Check that the streaming decoder will returns a correct CBOR_DECODER_NEDATA\n * result for all inputs from data[0..1] through data[0..(expected-1)].\n *\/\nvoid assert_minimum_input_size(size_t expected, cbor_data data);\n\n#endif\n","new_contents":"#include \n#include \n#include \n\n#include \n\n#include \"cbor.h\"\n\n#ifndef ASSERTIONS_H_\n#define ASSERTIONS_H_\n\nvoid assert_uint8(cbor_item_t* item, uint8_t num);\nvoid assert_uint16(cbor_item_t* item, uint16_t num);\nvoid assert_uint32(cbor_item_t* item, uint32_t num);\nvoid assert_uint64(cbor_item_t* item, uint64_t num);\n\n\/** Assert that result `status` and `read` are equal. *\/\nvoid assert_decoder_result(size_t read, enum cbor_decoder_status status,\n struct cbor_decoder_result result);\n\n\/**\n * Assert that the result is set to CBOR_DECODER_NEDATA with the given\n * `cbor_decoder_result.required` value.\n *\/\nvoid assert_decoder_result_nedata(size_t required,\n struct cbor_decoder_result result);\n\n\/**\n * Check that the streaming decoder returns a correct CBOR_DECODER_NEDATA\n * result for all inputs from data[0..1] through data[0..(expected-1)].\n *\/\nvoid assert_minimum_input_size(size_t expected, cbor_data data);\n\n#endif\n","subject":"Add inline docs for asserts","message":"Add inline docs for asserts\n","lang":"C","license":"mit","repos":"PJK\/libcbor,PJK\/libcbor,PJK\/libcbor,PJK\/libcbor,PJK\/libcbor"} {"commit":"8724b1ecb093cf58fc07d51501487c9fc6e07a4c","old_file":"chap16\/setfattr.c","new_file":"chap16\/setfattr.c","old_contents":"","new_contents":"\/* setfattr.c - sets user extended attributes for a file.\n *\n * This program can be viewed as a much simpler version of setfattr(1) utility,\n * used to set, remove and list a file's extended attributes. All this program\n * can do, however, is to set user EAs.\n *\n * Usage\n *\n * $ .\/setfattr \n *\n * - the name of the EA to be set. Note that the `user.` namespace\n * is added automatically.\n * - the value to be set.\n * - the file to which the program should add the EA.\n *\n * Author: Renato Mascarenhas Costa\n *\/\n\n#include \n#include \n#include \n\n#include \n#include \n#include \n\nstatic void helpAndLeave(const char *progname, int status);\nstatic void pexit(const char *fCall);\n\nint\nmain(int argc, char *argv[]) {\n if (argc != 4) {\n helpAndLeave(argv[0], EXIT_FAILURE);\n }\n\n char ea_name[BUFSIZ];\n char *name, *value, *file;\n\n name = argv[1];\n value = argv[2];\n file = argv[3];\n\n snprintf(ea_name, BUFSIZ, \"user.%s\", name);\n\n if (setxattr(file, ea_name, value, strlen(ea_name), 0) == -1) {\n pexit(\"setxattr\");\n }\n\n exit(EXIT_SUCCESS);\n}\n\nstatic void\nhelpAndLeave(const char *progname, int status) {\n FILE *stream = stderr;\n\n if (status == EXIT_SUCCESS) {\n stream = stdout;\n }\n\n fprintf(stream, \"Usage: %s \\n\", progname);\n exit(status);\n}\n\nstatic void\npexit(const char *fCall) {\n perror(fCall);\n exit(EXIT_FAILURE);\n}\n","subject":"Add or replace user extended attributes on a file.","message":"Add or replace user extended attributes on a file.\n\nChapter 16, exercise 1.\n","lang":"C","license":"mit","repos":"rmascarenhas\/lpi"} {"commit":"15828d06faf35837ae1efe22ac5ec05692af2521","old_file":"buzzLockU.h","new_file":"buzzLockU.h","old_contents":"#include \n#include \n#include \"vendor\/simclist.h\"\n\n#ifndef BUZZLOCK_H_\n#define BUZZLOCK_H_\n\n#define BZZ_BLACK 1\n#define BZZ_GOLD 0\n\ntypedef int useconds_t;\n\ntypedef struct {\n\tpid_t id;\n\tint color;\n\tdouble waiting_since;\n} bzz_thread_t;\n\ntypedef struct {\n\tpthread_mutex_t mutex;\n\tpthread_cond_t cond;\n\tint max_active_threads;\n\tint active_threads;\n\tuseconds_t timeout;\n\tlist_t threads;\n\tlist_t waiting_gold_threads;\n\tlist_t waiting_black_threads;\n} bzz_t;\n\n#include \"buzz.h\"\n\nvoid* get_thread(int, bzz_t);\nint full_active_threads(bzz_t);\nint is_black(bzz_thread_t*);\nint is_gold(bzz_thread_t*);\nint is_old(bzz_thread_t*, bzz_t);\nvoid add_to_waiting_threads(bzz_thread_t*, bzz_t);\nvoid wait(bzz_t);\ndouble time_with_usec();\nunsigned int num_black_waiting(bzz_t);\nunsigned int num_gold_waiting(bzz_t);\nunsigned int num_old_gold_waiting(bzz_t);\nvoid add_active(bzz_thread_t*, bzz_t);\n#endif\n","new_contents":"#include \n#include \n#include \n#include \"vendor\/simclist.h\"\n\n#ifndef BUZZLOCK_H_\n#define BUZZLOCK_H_\n\n#define BZZ_BLACK 1\n#define BZZ_GOLD 0\n\ntypedef struct {\n\tpid_t id;\n\tint color;\n\tdouble waiting_since;\n} bzz_thread_t;\n\ntypedef struct {\n\tpthread_mutex_t mutex;\n\tpthread_cond_t cond;\n\tint max_active_threads;\n\tint active_threads;\n\tuseconds_t timeout;\n\tlist_t threads;\n\tlist_t waiting_gold_threads;\n\tlist_t waiting_black_threads;\n} bzz_t;\n\n#include \"buzz.h\"\n\nvoid* get_thread(int, bzz_t);\nint full_active_threads(bzz_t);\nint is_black(bzz_thread_t*);\nint is_gold(bzz_thread_t*);\nint is_old(bzz_thread_t*, bzz_t);\nvoid add_to_waiting_threads(bzz_thread_t*, bzz_t);\nvoid wait(bzz_t);\ndouble time_with_usec();\nunsigned int num_black_waiting(bzz_t);\nunsigned int num_gold_waiting(bzz_t);\nunsigned int num_old_gold_waiting(bzz_t);\nvoid add_active(bzz_thread_t*, bzz_t);\n#endif\n","subject":"Use typedef of useconds_t in unistd","message":"Use typedef of useconds_t in unistd\n","lang":"C","license":"mit","repos":"skalnik\/3210-project-2"} {"commit":"ece2d63323bde9fd89956193167e09708802d73c","old_file":"src\/util.h","new_file":"src\/util.h","old_contents":"\/\/ Copyright 2011 Google Inc. 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#ifndef NINJA_UTIL_H_\n#define NINJA_UTIL_H_\n#pragma once\n\n#include \n\n\/\/ Dump a backtrace to stderr.\n\/\/ |skip_frames| is how many frames to skip;\n\/\/ DumpBacktrace implicitly skips itself already.\nvoid DumpBacktrace(int skip_frames);\n\n\/\/ Log a fatal message, dump a backtrace, and exit.\nvoid Fatal(const char* msg, ...);\n\n\/\/ Canonicalize a path like \"foo\/..\/bar.h\" into just \"bar.h\".\nbool CanonicalizePath(std::string* path, std::string* err);\n\n#endif \/\/ NINJA_UTIL_H_\n","new_contents":"\/\/ Copyright 2011 Google Inc. 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#ifndef NINJA_UTIL_H_\n#define NINJA_UTIL_H_\n#pragma once\n\n#include \n\n\/\/ Log a fatal message, dump a backtrace, and exit.\nvoid Fatal(const char* msg, ...);\n\n\/\/ Canonicalize a path like \"foo\/..\/bar.h\" into just \"bar.h\".\nbool CanonicalizePath(std::string* path, std::string* err);\n\n#endif \/\/ NINJA_UTIL_H_\n","subject":"Remove the declaration of DumpBacktrace.","message":"Remove the declaration of DumpBacktrace.\n\nThis function was removed on 01880fb3a2a13f9071e9729c3a13752846828ed2.\n","lang":"C","license":"apache-2.0","repos":"synaptek\/ninja,rjogrady\/ninja,maximuska\/ninja,dabrahams\/ninja,yannicklm\/ninja,hnney\/ninja,ninja-build\/ninja,dendy\/ninja,sorbits\/ninja,Ju2ender\/ninja,sgraham\/ninja,liukd\/ninja,purcell\/ninja,metti\/ninja,tychoish\/ninja,jimon\/ninja,justinsb\/ninja,nocnokneo\/ninja,dendy\/ninja,dabrahams\/ninja,jimon\/ninja,dabrahams\/ninja,dorgonman\/ninja,sxlin\/dist_ninja,ukai\/ninja,pathscale\/ninja,LuaDist\/ninja,mgaunard\/ninja,lizh06\/ninja,curinir\/ninja,juntalis\/ninja,chenyukang\/ninja,jimon\/ninja,maximuska\/ninja,nornagon\/ninja,tfarina\/ninja,iwadon\/ninja,mathstuf\/ninja,pcc\/ninja,dpwright\/ninja,mdempsky\/ninja,ilor\/ninja,mutac\/ninja,ndsol\/subninja,purcell\/ninja,chenyukang\/ninja,martine\/ninja,jsternberg\/ninja,okuoku\/ninja,justinsb\/ninja,tfarina\/ninja,ikarienator\/ninja,SByer\/ninja,automeka\/ninja,PetrWolf\/ninja,PetrWolf\/ninja-main,jendrikillner\/ninja,Maratyszcza\/ninja-pypi,glensc\/ninja,nocnokneo\/ninja,martine\/ninja,ilor\/ninja,bmeurer\/ninja,tychoish\/ninja,mohamed\/ninja,Qix-\/ninja,nafest\/ninja,kissthink\/ninja,jhanssen\/ninja,automeka\/ninja,maruel\/ninja,autopulated\/ninja,nocnokneo\/ninja,maruel\/ninja,TheOneRing\/ninja,ehird\/ninja,fifoforlifo\/ninja,nornagon\/ninja,bmeurer\/ninja,Maratyszcza\/ninja-pypi,iwadon\/ninja,vvvrrooomm\/ninja,lizh06\/ninja,kimgr\/ninja,atetubou\/ninja,sxlin\/dist_ninja,dorgonman\/ninja,ikarienator\/ninja,mgaunard\/ninja,pck\/ninja,rnk\/ninja,jsternberg\/ninja,ikarienator\/ninja,sgraham\/ninja,pck\/ninja,vvvrrooomm\/ninja,curinir\/ninja,ThiagoGarciaAlves\/ninja,bradking\/ninja,ehird\/ninja,rnk\/ninja,metti\/ninja,maruel\/ninja,PetrWolf\/ninja-main,TheOneRing\/ninja,jendrikillner\/ninja,mydongistiny\/ninja,tfarina\/ninja,AoD314\/ninja,mdempsky\/ninja,rnk\/ninja,okuoku\/ninja,ndsol\/subninja,kissthink\/ninja,PetrWolf\/ninja,ThiagoGarciaAlves\/ninja,metti\/ninja,barak\/ninja,ninja-build\/ninja,ctiller\/ninja,dpwright\/ninja,drbo\/ninja,syntheticpp\/ninja,iwadon\/ninja,atetubou\/ninja,nico\/ninja,bradking\/ninja,nornagon\/ninja,autopulated\/ninja,fifoforlifo\/ninja,kissthink\/ninja,mohamed\/ninja,nickhutchinson\/ninja,kissthink\/ninja,kimgr\/ninja,pcc\/ninja,drbo\/ninja,okuoku\/ninja,ThiagoGarciaAlves\/ninja,SByer\/ninja,nickhutchinson\/ninja,autopulated\/ninja,ctiller\/ninja,PetrWolf\/ninja,ikarienator\/ninja,juntalis\/ninja,colincross\/ninja,chenyukang\/ninja,martine\/ninja,nafest\/ninja,mutac\/ninja,vvvrrooomm\/ninja,PetrWolf\/ninja-main,hnney\/ninja,tfarina\/ninja,ukai\/ninja,sgraham\/ninja,martine\/ninja,nicolasdespres\/ninja,ctiller\/ninja,ignatenkobrain\/ninja,mydongistiny\/ninja,autopulated\/ninja,ehird\/ninja,dpwright\/ninja,rnk\/ninja,okuoku\/ninja,dorgonman\/ninja,Maratyszcza\/ninja-pypi,LuaDist\/ninja,PetrWolf\/ninja-main,rjogrady\/ninja,Ju2ender\/ninja,yannicklm\/ninja,TheOneRing\/ninja,tychoish\/ninja,ilor\/ninja,bmeurer\/ninja,ilor\/ninja,AoD314\/ninja,cipriancraciun\/ninja,Qix-\/ninja,mohamed\/ninja,jimon\/ninja,PetrWolf\/ninja,nico\/ninja,mathstuf\/ninja,ndsol\/subninja,juntalis\/ninja,automeka\/ninja,mohamed\/ninja,nafest\/ninja,yannicklm\/ninja,ninja-build\/ninja,mydongistiny\/ninja,nafest\/ninja,mgaunard\/ninja,syntheticpp\/ninja,glensc\/ninja,sorbits\/ninja,dendy\/ninja,Maratyszcza\/ninja-pypi,purcell\/ninja,pathscale\/ninja,Qix-\/ninja,drbo\/ninja,ThiagoGarciaAlves\/ninja,atetubou\/ninja,moroten\/ninja,jhanssen\/ninja,pathscale\/ninja,curinir\/ninja,iwadon\/ninja,synaptek\/ninja,fifoforlifo\/ninja,nornagon\/ninja,ignatenkobrain\/ninja,syntheticpp\/ninja,juntalis\/ninja,colincross\/ninja,mutac\/ninja,hnney\/ninja,justinsb\/ninja,lizh06\/ninja,syntheticpp\/ninja,LuaDist\/ninja,cipriancraciun\/ninja,ninja-build\/ninja,synaptek\/ninja,vvvrrooomm\/ninja,bradking\/ninja,mdempsky\/ninja,Ju2ender\/ninja,mgaunard\/ninja,atetubou\/ninja,glensc\/ninja,nicolasdespres\/ninja,nicolasdespres\/ninja,glensc\/ninja,chenyukang\/ninja,guiquanz\/ninja,ignatenkobrain\/ninja,colincross\/ninja,SByer\/ninja,jsternberg\/ninja,mathstuf\/ninja,dpwright\/ninja,ctiller\/ninja,nico\/ninja,pcc\/ninja,guiquanz\/ninja,maximuska\/ninja,maruel\/ninja,sorbits\/ninja,ignatenkobrain\/ninja,jendrikillner\/ninja,kimgr\/ninja,pathscale\/ninja,synaptek\/ninja,tychoish\/ninja,mathstuf\/ninja,dendy\/ninja,Qix-\/ninja,guiquanz\/ninja,jhanssen\/ninja,Ju2ender\/ninja,fuchsia-mirror\/third_party-ninja,ukai\/ninja,pck\/ninja,curinir\/ninja,dorgonman\/ninja,SByer\/ninja,mdempsky\/ninja,drbo\/ninja,rjogrady\/ninja,nicolasdespres\/ninja,hnney\/ninja,sxlin\/dist_ninja,yannicklm\/ninja,ehird\/ninja,liukd\/ninja,ndsol\/subninja,cipriancraciun\/ninja,jendrikillner\/ninja,LuaDist\/ninja,sxlin\/dist_ninja,fuchsia-mirror\/third_party-ninja,sorbits\/ninja,bmeurer\/ninja,AoD314\/ninja,colincross\/ninja,jhanssen\/ninja,fifoforlifo\/ninja,jsternberg\/ninja,metti\/ninja,barak\/ninja,liukd\/ninja,fuchsia-mirror\/third_party-ninja,barak\/ninja,mydongistiny\/ninja,nocnokneo\/ninja,sxlin\/dist_ninja,liukd\/ninja,sxlin\/dist_ninja,mutac\/ninja,guiquanz\/ninja,AoD314\/ninja,moroten\/ninja,moroten\/ninja,nico\/ninja,pck\/ninja,maximuska\/ninja,sxlin\/dist_ninja,pcc\/ninja,lizh06\/ninja,fuchsia-mirror\/third_party-ninja,kimgr\/ninja,justinsb\/ninja,bradking\/ninja,moroten\/ninja,ukai\/ninja,cipriancraciun\/ninja,barak\/ninja,purcell\/ninja,nickhutchinson\/ninja,automeka\/ninja,dabrahams\/ninja,sgraham\/ninja,TheOneRing\/ninja,rjogrady\/ninja,nickhutchinson\/ninja"} {"commit":"efec94aee0e0c8805645572b73dee3358abb0aac","old_file":"Category\/UIKit\/UIKitCategory.h","new_file":"Category\/UIKit\/UIKitCategory.h","old_contents":"\/\/\n\/\/ UIKitCategory.h\n\/\/ WWCategory\n\/\/\n\/\/ Created by ww on 2016. 1. 10..\n\/\/ Copyright © 2016년 Won Woo Choi. All rights reserved.\n\/\/\n\n#import \"UIApplication+Keyboard.h\"\n#import \"UIBezierPath+Drawing.h\"\n#import \"UIColor+CreateColor.h\"\n#import \"UIImage+CreateImage.h\"\n#import \"UIImage+ImageProcessing.h\"\n#import \"UIImageView+CreateImageView.h\"\n#import \"UIScreen+Size.h\"\n#import \"UIStoryboard+GetInstance.h\"\n#import \"UITextField+Color.h\"\n#import \"UIView+Capture.h\"\n#import \"UIView+Rounding.h\"\n","new_contents":"\/\/\n\/\/ UIKitCategory.h\n\/\/ WWCategory\n\/\/\n\/\/ Created by ww on 2016. 1. 10..\n\/\/ Copyright © 2016년 Won Woo Choi. All rights reserved.\n\/\/\n\n#import \"UIApplication+Keyboard.h\"\n#import \"UIApplication+TopmostViewController.h\"\n#import \"UIBarButtonItem+Block.h\"\n#import \"UIBezierPath+Drawing.h\"\n#import \"UIButton+Align.h\"\n#import \"UICollectionView+Register.h\"\n#import \"UIColor+CreateColor.h\"\n#import \"UIImage+CreateImage.h\"\n#import \"UIImage+ImageProcessing.h\"\n#import \"UIImageView+CreateImageView.h\"\n#import \"UIScreen+Size.h\"\n#import \"UIStoryboard+GetInstance.h\"\n#import \"UITableView+Register.h\"\n#import \"UITextField+Color.h\"\n#import \"UIView+Capture.h\"\n#import \"UIView+Rounding.h\"\n#import \"UIViewController+Present.h\"\n","subject":"Add category headers to global header.","message":"Add category headers to global header.\n","lang":"C","license":"mit","repos":"wonwoooochoi\/WWCategory"} {"commit":"5f955a6888dec963c35283899fd2b2f47f776466","old_file":"src\/sail\/game_struct.h","new_file":"src\/sail\/game_struct.h","old_contents":"","new_contents":"\/*\n * Copyright (C) 2015 Luke San Antonio\n * All rights reserved.\n *\/\n#pragma once\n#include \"..\/common\/id_map.hpp\"\n#include \"boat.h\"\n#include \"..\/collisionlib\/motion.h\"\nnamespace redc { namespace sail\n{\n struct Player\n {\n std::string name;\n bool spawned;\n\n Hull_Desc boat_config;\n collis::Motion boat_motion;\n };\n\n struct Game\n {\n ID_Map players;\n };\n} }\n","subject":"Add unified state of the game","message":"Add unified state of the game\n","lang":"C","license":"bsd-3-clause","repos":"RedCraneStudio\/redcrane-engine,RedCraneStudio\/redcrane-engine,RedCraneStudio\/redcrane-engine,RedCraneStudio\/redcrane-engine"} {"commit":"b502a1ea2f1c9735c7af7d67e275532437eb539f","old_file":"inet_ntop.c","new_file":"inet_ntop.c","old_contents":"\/**\n * \\file inet_ntop\n * inet_ntop emulation based on inet_ntoa.\n * \\author Matthias Andree\n * \n *\/\n#include \"config.h\"\n#ifndef HAVE_INET_NTOP\n#include \"leafnode.h\"\n#include \"mastring.h\"\n#include \n#include \n#include \n#include \n#include \n\n#ifdef WITH_DMALLOC\n#include \n#endif\n\n#include \n\nconst char *\ninet_ntop(int af, const void *s, char *dst, int x)\n{\n switch (af) {\n case AF_INET:\n\tmastrncpy(dst, inet_ntoa(*(const struct in_addr *)s), x);\n\treturn dst;\n\tbreak;\n default:\n\terrno = EINVAL;\n\treturn 0;\n\tbreak;\n }\n}\n#endif\n","new_contents":"\/**\n * \\file inet_ntop\n * inet_ntop emulation based on inet_ntoa.\n * \\author Matthias Andree\n * \n *\/\n#include \"config.h\"\n#if !HAVE_INET_NTOP\n#include \"leafnode.h\"\n#include \n#include \n#include \n#include \n#include \n\n#include \n\nconst char *\ninet_ntop(int af, const void *s, char *dst, int x)\n{\n switch (af) {\n case AF_INET:\n\tstrncpy(dst, inet_ntoa(*(const struct in_addr *)s), x);\n\tif (x) dst[x-1] = '\\0';\n\treturn dst;\n\tbreak;\n default:\n\terrno = EINVAL;\n\treturn 0;\n\tbreak;\n }\n}\n#endif\n","subject":"Drop dmalloc.h, not needed. Drop dmalloc.h, not needed. Use strncpy for portability, we do not want this function to rely on mastring.","message":"Drop dmalloc.h, not needed.\nDrop dmalloc.h, not needed.\nUse strncpy for portability, we do not want this function to rely on\nmastring.\n","lang":"C","license":"lgpl-2.1","repos":"BackupTheBerlios\/leafnode,BackupTheBerlios\/leafnode,BackupTheBerlios\/leafnode,BackupTheBerlios\/leafnode"} {"commit":"961e242c923ee1064fcdda28e7cb0d56c3da27f8","old_file":"misc\/read-region.c","new_file":"misc\/read-region.c","old_contents":"","new_contents":"\/* Test program to make a single openslide_read_region() call and write the\n result as a PPM. *\/\n\n#include \n#include \n#include \n#include \n#include \n#include \n\nint main(int argc, char **argv) {\n if (argc != 7) {\n printf(\"Arguments: slide out.ppm x y w h\\n\");\n return 1;\n }\n\n char *slide = argv[1];\n char *out = argv[2];\n int64_t x = atoi(argv[3]);\n int64_t y = atoi(argv[4]);\n int64_t w = atoi(argv[5]);\n int64_t h = atoi(argv[6]);\n\n uint32_t *buf = malloc(w * h * 4);\n openslide_t *osr = openslide_open(slide);\n assert(osr != NULL);\n openslide_read_region(osr, buf, x, y, 0, w, h);\n assert(openslide_get_error(osr) == NULL);\n openslide_close(osr);\n\n FILE *fp;\n fp = fopen(out, \"w\");\n assert(fp != NULL);\n fprintf(fp, \"P6\\n# Extraneous comment\\n%\"PRIu64\" %\"PRIu64\" 255\\n\", w, h);\n for (y = 0; y < h; y++) {\n for (x = 0; x < w; x++) {\n uint32_t sample = buf[y * h + x];\n \/\/ undo premultiplication, more or less\n double alpha = ((sample >> 24) ?: 1) \/ 255.0;\n uint8_t pixel[3] = {\n ((sample >> 16) & 0xff) \/ alpha,\n ((sample >> 8) & 0xff) \/ alpha,\n (sample & 0xff) \/ alpha,\n };\n fwrite(pixel, 1, sizeof(pixel), fp);\n }\n }\n fclose(fp);\n free(buf);\n}\n","subject":"Add program for testing large openslide_read_region() calls","message":"Add program for testing large openslide_read_region() calls\n\nUse nip2 to read the output.\n","lang":"C","license":"lgpl-2.1","repos":"openslide\/openslide,openslide\/openslide,openslide\/openslide,openslide\/openslide"} {"commit":"58f00f52de054b44bec79497e33805f57d8bc8e5","old_file":"EVGEN\/AliDecayer.h","new_file":"EVGEN\/AliDecayer.h","old_contents":"#ifndef ALI_DECAYER__H\n#define ALI_DECAYER__H\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#include \"RVersion.h\"\n#include \"TVirtualMCDecayer.h\"\n\ntypedef TVirtualMCDecayer AliDecayer;\n\n#if ROOT_VERSION_CODE >= 197633 \/\/Corresponds to Root v3-04-01\ntypedef enum \n{\n kSemiElectronic, kDiElectron, kSemiMuonic, kDiMuon,\n kBJpsiDiMuon, kBJpsiDiElectron, \n kBPsiPrimeDiMuon, kBPsiPrimeDiElectron, kPiToMu, kKaToMu, \n kNoDecay, kHadronicD, kOmega, kPhiKK, \n kAll, kNoDecayHeavy, kHardMuons, kBJpsi,\n kWToMuon,kWToCharm, kWToCharmToMuon\n} Decay_t;\n#endif\n\n#endif \/\/ALI_DECAYER__H\n\n","new_contents":"#ifndef ALI_DECAYER__H\n#define ALI_DECAYER__H\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#include \"RVersion.h\"\n#include \"TVirtualMCDecayer.h\"\n\ntypedef TVirtualMCDecayer AliDecayer;\n\n#if ROOT_VERSION_CODE >= 197633 \/\/Corresponds to Root v3-04-01\ntypedef enum \n{\n kSemiElectronic, kDiElectron, kSemiMuonic, kDiMuon,\n kBJpsiDiMuon, kBJpsiDiElectron, \n kBPsiPrimeDiMuon, kBPsiPrimeDiElectron, kPiToMu, kKaToMu, \n kNoDecay, kHadronicD, kOmega, kPhiKK, \n kAll, kNoDecayHeavy, kHardMuons, kBJpsi,\n kWToMuon,kWToCharm, kWToCharmToMuon, kNewTest\n} Decay_t;\n#endif\n\n#endif \/\/ALI_DECAYER__H\n\n","subject":"Test case for B0 -> mu","message":"Test case for B0 -> mu\n\n","lang":"C","license":"bsd-3-clause","repos":"jgrosseo\/AliRoot,alisw\/AliRoot,sebaleh\/AliRoot,alisw\/AliRoot,ecalvovi\/AliRoot,jgrosseo\/AliRoot,ALICEHLT\/AliRoot,coppedis\/AliRoot,mkrzewic\/AliRoot,coppedis\/AliRoot,jgrosseo\/AliRoot,ALICEHLT\/AliRoot,miranov25\/AliRoot,mkrzewic\/AliRoot,alisw\/AliRoot,ecalvovi\/AliRoot,coppedis\/AliRoot,sebaleh\/AliRoot,mkrzewic\/AliRoot,shahor02\/AliRoot,miranov25\/AliRoot,shahor02\/AliRoot,shahor02\/AliRoot,sebaleh\/AliRoot,jgrosseo\/AliRoot,coppedis\/AliRoot,shahor02\/AliRoot,ecalvovi\/AliRoot,alisw\/AliRoot,ALICEHLT\/AliRoot,alisw\/AliRoot,jgrosseo\/AliRoot,alisw\/AliRoot,shahor02\/AliRoot,coppedis\/AliRoot,sebaleh\/AliRoot,mkrzewic\/AliRoot,mkrzewic\/AliRoot,ALICEHLT\/AliRoot,coppedis\/AliRoot,miranov25\/AliRoot,alisw\/AliRoot,ALICEHLT\/AliRoot,mkrzewic\/AliRoot,shahor02\/AliRoot,ecalvovi\/AliRoot,mkrzewic\/AliRoot,coppedis\/AliRoot,sebaleh\/AliRoot,jgrosseo\/AliRoot,coppedis\/AliRoot,sebaleh\/AliRoot,shahor02\/AliRoot,alisw\/AliRoot,miranov25\/AliRoot,ALICEHLT\/AliRoot,jgrosseo\/AliRoot,ecalvovi\/AliRoot,sebaleh\/AliRoot,miranov25\/AliRoot,miranov25\/AliRoot,miranov25\/AliRoot,ecalvovi\/AliRoot,ALICEHLT\/AliRoot,ecalvovi\/AliRoot,miranov25\/AliRoot"} {"commit":"22c56c3a03b377d21d8363f737aa2a855d892458","old_file":"arch\/mips\/oprofile\/op_impl.h","new_file":"arch\/mips\/oprofile\/op_impl.h","old_contents":"\/**\n * @file arch\/alpha\/oprofile\/op_impl.h\n *\n * @remark Copyright 2002 OProfile authors\n * @remark Read the file COPYING\n *\n * @author Richard Henderson \n *\/\n\n#ifndef OP_IMPL_H\n#define OP_IMPL_H 1\n\nstruct pt_regs;\n\nextern int null_perf_irq(void);\nextern int (*perf_irq)(void);\n\n\/* Per-counter configuration as set via oprofilefs. *\/\nstruct op_counter_config {\n\tunsigned long enabled;\n\tunsigned long event;\n\tunsigned long count;\n\t\/* Dummies because I am too lazy to hack the userspace tools. *\/\n\tunsigned long kernel;\n\tunsigned long user;\n\tunsigned long exl;\n\tunsigned long unit_mask;\n};\n\n\/* Per-architecture configury and hooks. *\/\nstruct op_mips_model {\n\tvoid (*reg_setup) (struct op_counter_config *);\n\tvoid (*cpu_setup) (void * dummy);\n\tint (*init)(void);\n\tvoid (*exit)(void);\n\tvoid (*cpu_start)(void *args);\n\tvoid (*cpu_stop)(void *args);\n\tchar *cpu_type;\n\tunsigned char num_counters;\n};\n\n#endif\n","new_contents":"\/**\n * @file arch\/alpha\/oprofile\/op_impl.h\n *\n * @remark Copyright 2002 OProfile authors\n * @remark Read the file COPYING\n *\n * @author Richard Henderson \n *\/\n\n#ifndef OP_IMPL_H\n#define OP_IMPL_H 1\n\nextern int null_perf_irq(void);\nextern int (*perf_irq)(void);\n\n\/* Per-counter configuration as set via oprofilefs. *\/\nstruct op_counter_config {\n\tunsigned long enabled;\n\tunsigned long event;\n\tunsigned long count;\n\t\/* Dummies because I am too lazy to hack the userspace tools. *\/\n\tunsigned long kernel;\n\tunsigned long user;\n\tunsigned long exl;\n\tunsigned long unit_mask;\n};\n\n\/* Per-architecture configury and hooks. *\/\nstruct op_mips_model {\n\tvoid (*reg_setup) (struct op_counter_config *);\n\tvoid (*cpu_setup) (void * dummy);\n\tint (*init)(void);\n\tvoid (*exit)(void);\n\tvoid (*cpu_start)(void *args);\n\tvoid (*cpu_stop)(void *args);\n\tchar *cpu_type;\n\tunsigned char num_counters;\n};\n\n#endif\n","subject":"Delete unneeded pt_regs forward declaration.","message":"[MIPS] Delete unneeded pt_regs forward declaration.\n\nSigned-off-by: Ralf Baechle <92f48d309cda194c8eda36aa8f9ae28c488fa208@linux-mips.org>\n","lang":"C","license":"apache-2.0","repos":"TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,KristFoundation\/Programs,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,TeamVee-Kanas\/android_kernel_samsung_kanas"} {"commit":"a7540887e8b5cb34ee28c12bef863bad85c65b6f","old_file":"test\/Driver\/coverage.c","new_file":"test\/Driver\/coverage.c","old_contents":"\/\/ Test coverage flag.\n\/\/\n\/\/ RUN: %clang_cl -### -coverage %s -o foo\/bar.o 2>&1 | FileCheck -check-prefix=CLANG-CL-COVERAGE %s\n\/\/ CLANG-CL-COVERAGE-NOT: error:\n\/\/ CLANG-CL-COVERAGE-NOT: warning:\n\/\/ CLANG-CL-COVERAGE-NOT: argument unused\n\/\/ CLANG-CL-COVERAGE-NOT: unknown argument\n","new_contents":"\/\/ Test coverage flag.\n\/\/ REQUIRES: system-windows\n\/\/\n\/\/ RUN: %clang_cl -### -coverage %s -o foo\/bar.o 2>&1 | FileCheck -check-prefix=CLANG-CL-COVERAGE %s\n\/\/ CLANG-CL-COVERAGE-NOT: error:\n\/\/ CLANG-CL-COVERAGE-NOT: warning:\n\/\/ CLANG-CL-COVERAGE-NOT: argument unused\n\/\/ CLANG-CL-COVERAGE-NOT: unknown argument\n","subject":"Add a missing \"REQUIRES: system-windows\" to a Windows-only test.","message":"Add a missing \"REQUIRES: system-windows\" to a Windows-only test.\n\nThis un-breaks builds on other platforms. Otherwise, they fail due to warnings like:\n\nwarning: unable to find a Visual Studio installation; try running Clang from a developer command prompt [-Wmsvc-not-found]\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@317716 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"apple\/swift-clang,apple\/swift-clang,apple\/swift-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,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang"} {"commit":"6d31cc20116485bf732cdd9e3e8d7ebaa9b24f25","old_file":"master\/basic.h","new_file":"master\/basic.h","old_contents":"\/\/Basic master parser\nextern uint8_t MODBUSParseResponseBasic( union MODBUSParser * );\n","new_contents":"\/\/Basic master parser\nextern uint8_t MODBUSParseResponseBasic( union MODBUSParser *, union MODBUSParser * );\n","subject":"Add passing of request frame to parsing functions","message":"Add passing of request frame to parsing functions\n","lang":"C","license":"mit","repos":"Jacajack\/modlib"} {"commit":"8493cdb9c63ed7a720a4b8e6077c07fa1513659b","old_file":"test\/small2\/index1.c","new_file":"test\/small2\/index1.c","old_contents":"#include \"..\/small1\/testharness.h\"\n\n\/\/ NUMERRORS 1\n\nstruct foo {\n int a[8];\n int *b;\n} gfoo;\n\nstruct bar {\n int a[8];\n int *b;\n};\n\nint main() {\n int * __INDEX p = & gfoo.a[2]; \/\/ Force gfoo.a to have a length\n\n \/\/ This should be Ok, but pbar->b is gfoo.a[7]\n struct bar *pbar = (struct bar*)&gfoo;\n\n gfoo.a[7] = 5;\n pbar->b = 0; \n\n printf(\"Pointer is %lx\\n\", (unsigned long)pbar->b);\n *(pbar->b) = 0; \/\/ERROR(1): Null\n SUCCESS;\n}\n","new_contents":"#include \"..\/small1\/testharness.h\"\n#include \"..\/small1\/testkinds.h\"\n\n\/\/ NUMERRORS 3\n\nstruct foo {\n int a[8];\n int *b;\n} gfoo;\n\nstruct bar {\n int a[8];\n int *b;\n};\n\n#if ERROR == 2\nstruct s1 { \n int a[8];\n int *b;\n} * s1;\nstruct s2 {\n int *c;\n int d[8];\n} * s2; \n#endif\n\n#if ERROR == 3\nstruct s_with_index {\n int __INDEX arr[8] __INDEX;\n} * s1;\n\nstruct s_with_non_array {\n int a,b,c,d,e,f,g,h;\n} * s2; \n#endif\n\nint main() {\n int * __INDEX p = & gfoo.a[2]; \/\/ Force gfoo.a to have a length\n\n \/\/ This should be Ok, but pbar->b is gfoo.a[7]\n struct bar *pbar = (struct bar*)&gfoo;\n\n pbar->b = 0; \n gfoo.a[7] = 5;\n\n printf(\"Pointer is %lx\\n\", (unsigned long)pbar->b);\n *(pbar->b) = 0; \/\/ERROR(1): Null\n\n s1 = s2; if (HAS_KIND(s1, WILD_KIND)) E(2); \/\/ ERROR(2):Error\n\n#if ERROR == 3\n s1 = s2; \/\/ ERROR(3): compared with a non-array\n#endif\n\n SUCCESS;\n}\n","subject":"Change the solver handling of arrays. Previously we were calling compat on the pointers underneath matching arrays. However, this led to problems: union { char a[8]; int b[2]; } This is in fact fine, but we'd end up with compat edges between a node pointing to char and a node pointing to int and they wouldn't be congruent so they would end up being WILD. However, if one of them is INDEX, the other should be as well. So we remember whenever an array is compared against another array and we make sure that they have the same flags. However: union { char a[4] __INDEX; int b; } Should fail. So we remember whenever an array is compared with a non-array. Later, if any such array ends up being INDEX we die with an error in the solver.","message":"Change the solver handling of arrays. Previously we were calling compat on\nthe pointers underneath matching arrays. However, this led to problems:\n union {\n char a[8];\n int b[2];\n }\nThis is in fact fine, but we'd end up with compat edges between a node\npointing to char and a node pointing to int and they wouldn't be congruent\nso they would end up being WILD. However, if one of them is INDEX, the\nother should be as well. So we remember whenever an array is compared\nagainst another array and we make sure that they have the same flags.\nHowever:\n union {\n char a[4] __INDEX;\n int b;\n }\nShould fail. So we remember whenever an array is compared with a non-array.\nLater, if any such array ends up being INDEX we die with an error in the\nsolver.\n\nThis commit also beefs up the test-bad\/index1 testcase.\n","lang":"C","license":"bsd-3-clause","repos":"samuelhavron\/obliv-c,samuelhavron\/obliv-c,samuelhavron\/obliv-c,samuelhavron\/obliv-c"} {"commit":"9625f1629e5a43315077d066fe32bfa8bc415715","old_file":"alura\/c\/tabuada2.c","new_file":"alura\/c\/tabuada2.c","old_contents":"","new_contents":"#include \n\nvoid abertura(int m) {\n printf(\"Tabuada do %d\\n\", m);\n}\n\nint main() {\n\n int multiplicador = 2;\n\n abertura(multiplicador);\n\n for(int i = 1; i <= 10; i++) {\n printf(\"%d x %d = %d\\n\", multiplicador, i, multiplicador * i);\n }\n\n}\n","subject":"Update files, Alura, Introdução a C - Parte 2, Aula 4.3","message":"Update files, Alura, Introdução a C - Parte 2, Aula 4.3\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":"64a8dc5bd7c39e8ac93dc314d06aef8bba6bdd78","old_file":"test2\/parsing\/expr_if_assign.c","new_file":"test2\/parsing\/expr_if_assign.c","old_contents":"","new_contents":"\/\/ RUN: %check -e %s\n\nf(int a, int b, int dir)\n{\n\tstruct\n\t{\n\t\tint x, y;\n\t} c = { };\n\n\ta & b ? c.x += dir : c.y += dir; \/\/ CHECK: error: assignment to int\/if - not an lvalue\n}\n","subject":"Test for parsing assignment in a ?:'s rhs","message":"Test for parsing assignment in a ?:'s rhs\n","lang":"C","license":"mit","repos":"8l\/ucc-c-compiler,8l\/ucc-c-compiler,8l\/ucc-c-compiler,8l\/ucc-c-compiler"} {"commit":"7ed253755ce6b40f7b88662723aeff2d62e52336","old_file":"src\/lib\/VSDXDocumentStructure.h","new_file":"src\/lib\/VSDXDocumentStructure.h","old_contents":"","new_contents":"\/* libvisio\n * Copyright (C) 2011 Fridrich Strba \n * Copyright (C) 2011 Eilidh McAdam \n *\n * This library is free software; you can redistribute it and\/or\n * modify it under the terms of the GNU Library General Public\n * License as published by the Free Software Foundation; either\n * version 2 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 * Library General Public License for more details.\n *\n * You should have received a copy of the GNU Library General Public\n * License along with this library; if not, write to the\n * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n * Boston, MA 02111-1301 USA\n *\/\n\n#ifndef VSDXDOCUMENTSTRUCTURE_H\n#define VSDXDOCUMENTSTRUCTURE_H\n \n\n#endif \/* VSDXDOCUMENTSTRUCTURE_H *\/\n","subject":"Add an empty header that will contain defines concerning the document structure","message":"Add an empty header that will contain defines concerning the document structure\n","lang":"C","license":"mpl-2.0","repos":"LibreOffice\/libvisio,LibreOffice\/libvisio,sdteffen\/libvisio,sdteffen\/libvisio,LibreOffice\/libvisio,sdteffen\/libvisio,sdteffen\/libvisio"} {"commit":"6fe16f4a387a58169ee4fa48c25d76c362a41d6a","old_file":"Sub-Terra\/include\/Renderer.h","new_file":"Sub-Terra\/include\/Renderer.h","old_contents":"#pragma once\n\n#include \n#include \"System.h\"\n\nclass Renderer : public System {\nprotected:\n\tuint16_t width = 1280;\n\tuint16_t height = 720;\n\tDecimal fovPlus = glm::radians(10.0f);\n\tDecimal zNear = 0.05f;\n\tDecimal zFar = 48.0f;\n\tDecimal pixelDistanceFromScreen = 1000.0f;\npublic:\n\tbool showFPS = false;\n\tuint32_t time = 0;\n\n\tstatic bool IsSupported() { return false; }\n\tRenderer(Polar *engine) : System(engine) {}\n\n\tvirtual void MakePipeline(const boost::container::vector &) = 0;\n\tvirtual void SetClearColor(const Point4 &) = 0;\n\tvirtual Decimal GetUniformDecimal(const std::string &, const Decimal = 0) = 0;\n\tvirtual Point3 GetUniformPoint3(const std::string &, const Point3 = Point3(0)) = 0;\n\tvirtual void SetUniform(const std::string &, glm::uint32) = 0;\n\tvirtual void SetUniform(const std::string &, Decimal) = 0;\n\tvirtual void SetUniform(const std::string &, Point3) = 0;\n};\n","new_contents":"#pragma once\n\n#include \n#include \"System.h\"\n\nclass Renderer : public System {\nprotected:\n\tuint16_t width = 1280;\n\tuint16_t height = 720;\n\tDecimal fovPlus = glm::radians(10.0f);\n\tDecimal zNear = 0.05f;\n\tDecimal zFar = 48.0f;\n\tDecimal pixelDistanceFromScreen = 1000.0f;\npublic:\n\tbool showFPS = false;\n\tuint32_t time = 0;\n\n\tstatic bool IsSupported() { return false; }\n\tRenderer(Polar *engine) : System(engine) {}\n\n\tinline uint16_t GetWidth() { return width; }\n\tinline uint16_t GetHeight() { return height; }\n\n\tvirtual void MakePipeline(const boost::container::vector &) = 0;\n\tvirtual void SetClearColor(const Point4 &) = 0;\n\tvirtual Decimal GetUniformDecimal(const std::string &, const Decimal = 0) = 0;\n\tvirtual Point3 GetUniformPoint3(const std::string &, const Point3 = Point3(0)) = 0;\n\tvirtual void SetUniform(const std::string &, glm::uint32) = 0;\n\tvirtual void SetUniform(const std::string &, Decimal) = 0;\n\tvirtual void SetUniform(const std::string &, Point3) = 0;\n};\n","subject":"Add getters for width\/height of renderer","message":"Add getters for width\/height of renderer\n","lang":"C","license":"mpl-2.0","repos":"polar-engine\/polar,shockkolate\/polar4,polar-engine\/polar,shockkolate\/polar4,shockkolate\/polar4,shockkolate\/polar4"} {"commit":"2f947132e0af53bcb7863629589e989d8c6262f2","old_file":"packages\/Python\/lldbsuite\/test\/functionalities\/swift-runtime-reporting\/abi-v2\/library.h","new_file":"packages\/Python\/lldbsuite\/test\/functionalities\/swift-runtime-reporting\/abi-v2\/library.h","old_contents":"\/\/ library.h\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 https:\/\/swift.org\/LICENSE.txt for license information\n\/\/ See https:\/\/swift.org\/CONTRIBUTORS.txt for the list of Swift project authors\n\/\/\n\/\/ -----------------------------------------------------------------------------\n\n\/\/ From swift's include\/swift\/Runtime\/Debug.h file.\nstruct RuntimeErrorDetails {\n uintptr_t version;\n const char *errorType;\n const char *currentStackDescription;\n uintptr_t framesToSkip;\n void *memoryAddress;\n\n struct Thread {\n const char *description;\n uint64_t threadID;\n uintptr_t numFrames;\n void **frames;\n };\n\n uintptr_t numExtraThreads;\n Thread *threads;\n\n struct FixIt {\n const char *filename;\n uintptr_t startLine;\n uintptr_t startColumn;\n uintptr_t endLine;\n uintptr_t endColumn;\n const char *replacementText;\n };\n\n struct Note {\n const char *description;\n uintptr_t numFixIts;\n FixIt *fixIts;\n };\n\n uintptr_t numFixIts;\n FixIt *fixIts;\n\n uintptr_t numNotes;\n Note *notes;\n};\n\nenum: uintptr_t {\n RuntimeErrorFlagNone = 0,\n RuntimeErrorFlagFatal = 1 << 0\n};\n\nextern \"C\"\nvoid _swift_runtime_on_report(uintptr_t flags, const char *message, RuntimeErrorDetails *details);\n","new_contents":"\/\/ library.h\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 https:\/\/swift.org\/LICENSE.txt for license information\n\/\/ See https:\/\/swift.org\/CONTRIBUTORS.txt for the list of Swift project authors\n\/\/\n\/\/ -----------------------------------------------------------------------------\n\n#include \n\n\/\/ From swift's include\/swift\/Runtime\/Debug.h file.\nstruct RuntimeErrorDetails {\n uintptr_t version;\n const char *errorType;\n const char *currentStackDescription;\n uintptr_t framesToSkip;\n void *memoryAddress;\n\n struct Thread {\n const char *description;\n uint64_t threadID;\n uintptr_t numFrames;\n void **frames;\n };\n\n uintptr_t numExtraThreads;\n Thread *threads;\n\n struct FixIt {\n const char *filename;\n uintptr_t startLine;\n uintptr_t startColumn;\n uintptr_t endLine;\n uintptr_t endColumn;\n const char *replacementText;\n };\n\n struct Note {\n const char *description;\n uintptr_t numFixIts;\n FixIt *fixIts;\n };\n\n uintptr_t numFixIts;\n FixIt *fixIts;\n\n uintptr_t numNotes;\n Note *notes;\n};\n\nenum: uintptr_t {\n RuntimeErrorFlagNone = 0,\n RuntimeErrorFlagFatal = 1 << 0\n};\n\nextern \"C\"\nvoid _swift_runtime_on_report(uintptr_t flags, const char *message, RuntimeErrorDetails *details);\n","subject":"Include the necessary headers to make the swift-runtime-reporting test work.","message":"[testsuite] Include the necessary headers to make the swift-runtime-reporting test work.\n","lang":"C","license":"apache-2.0","repos":"apple\/swift-lldb,apple\/swift-lldb,apple\/swift-lldb,apple\/swift-lldb,apple\/swift-lldb,apple\/swift-lldb"} {"commit":"2f7233f074e58e9d8690af8ca2c3aa6a61661819","old_file":"projects\/com.oracle.truffle.llvm.test\/tests\/c\/address-to-function-ptr-call.c","new_file":"projects\/com.oracle.truffle.llvm.test\/tests\/c\/address-to-function-ptr-call.c","old_contents":"","new_contents":"void abort();\n\nint add(int a, int b) { return a + b; }\nint sub(int a, int b) { return a - b; }\nint mul(int a, int b) { return a * b; }\nint div(int a, int b) { return a \/ b; }\n\nint rem(int a, int b) { return a % b; }\n\nlong *arr[5] = {(long *)&add, (long *)&sub, (long *)&mul, (long *)&div, (long *)&rem };\n\nint main() {\n int i;\n int sum = 0;\n for (i = 0; i < 10000; i++) {\n int (*p)(int x, int y) = (int (*)(int x, int y))arr[i % 5];\n sum += p(i, 2);\n }\n if (sum != 44991000) {\n abort();\n }\n}\n","subject":"Add test case for casting addresses to function pointers","message":"Add test case for casting addresses to function pointers\n","lang":"C","license":"bsd-3-clause","repos":"lxp\/sulong,PrinzKatharina\/sulong,lxp\/sulong,lxp\/sulong,crbb\/sulong,PrinzKatharina\/sulong,crbb\/sulong,lxp\/sulong,PrinzKatharina\/sulong,crbb\/sulong,PrinzKatharina\/sulong,crbb\/sulong"} {"commit":"71c0305e5ae4e2734e92d3760992a3856b62f6be","old_file":"inc\/osvr\/Server\/ServerPtr.h","new_file":"inc\/osvr\/Server\/ServerPtr.h","old_contents":"\/** @file\n @brief Header\n\n @date 2014\n\n @author\n Ryan Pavlik\n \n \n*\/\n\n\/\/ Copyright 2014 Sensics, Inc.\n\/\/\n\/\/ All rights reserved.\n\/\/\n\/\/ (Final version intended to be licensed under\n\/\/ the Apache License, Version 2.0)\n\n#ifndef INCLUDED_ServerPtr_h_GUID_ED06F093_FC19_49B1_8905_16E7CE12D207\n#define INCLUDED_ServerPtr_h_GUID_ED06F093_FC19_49B1_8905_16E7CE12D207\n\n\/\/ Internal Includes\n#include \n\n\/\/ Library\/third-party includes\n\/\/ - none\n\n\/\/ Standard includes\n\/\/ - none\n\nnamespace osvr {\nnamespace server {\n class Server;\n \/\/\/ @brief How one should hold a Server.\n typedef shared_ptr ServerPtr;\n} \/\/ namespace server\n} \/\/ namespace osvr\n\n#endif \/\/ INCLUDED_ServerPtr_h_GUID_ED06F093_FC19_49B1_8905_16E7CE12D207\n","new_contents":"\/** @file\n @brief Header\n\n @date 2014\n\n @author\n Ryan Pavlik\n \n \n*\/\n\n\/\/ Copyright 2014 Sensics, Inc.\n\/\/\n\/\/ All rights reserved.\n\/\/\n\/\/ (Final version intended to be licensed under\n\/\/ the Apache License, Version 2.0)\n\n#ifndef INCLUDED_ServerPtr_h_GUID_ED06F093_FC19_49B1_8905_16E7CE12D207\n#define INCLUDED_ServerPtr_h_GUID_ED06F093_FC19_49B1_8905_16E7CE12D207\n\n\/\/ Internal Includes\n#include \n\n\/\/ Library\/third-party includes\n\/\/ - none\n\n\/\/ Standard includes\n\/\/ - none\n\nnamespace osvr {\nnamespace server {\n class Server;\n \/\/\/ @brief How one should hold a Server.\n typedef shared_ptr ServerPtr;\n \/\/\/ @brief How one might observe a Server without owning it.\n typedef weak_ptr ServerWeakPtr;\n} \/\/ namespace server\n} \/\/ namespace osvr\n\n#endif \/\/ INCLUDED_ServerPtr_h_GUID_ED06F093_FC19_49B1_8905_16E7CE12D207\n","subject":"Add a weak pointer type for the server.","message":"Add a weak pointer type for the server.\n","lang":"C","license":"apache-2.0","repos":"d235j\/OSVR-Core,leemichaelRazer\/OSVR-Core,Armada651\/OSVR-Core,OSVR\/OSVR-Core,OSVR\/OSVR-Core,feilen\/OSVR-Core,OSVR\/OSVR-Core,Armada651\/OSVR-Core,d235j\/OSVR-Core,feilen\/OSVR-Core,feilen\/OSVR-Core,leemichaelRazer\/OSVR-Core,leemichaelRazer\/OSVR-Core,d235j\/OSVR-Core,OSVR\/OSVR-Core,d235j\/OSVR-Core,feilen\/OSVR-Core,Armada651\/OSVR-Core,godbyk\/OSVR-Core,godbyk\/OSVR-Core,OSVR\/OSVR-Core,feilen\/OSVR-Core,Armada651\/OSVR-Core,d235j\/OSVR-Core,godbyk\/OSVR-Core,leemichaelRazer\/OSVR-Core,leemichaelRazer\/OSVR-Core,godbyk\/OSVR-Core,OSVR\/OSVR-Core,Armada651\/OSVR-Core,godbyk\/OSVR-Core,godbyk\/OSVR-Core"} {"commit":"7b30aba561165ee173059cd3a65c732bd5bc9056","old_file":"UIKitExtensions\/UIView\/Sizing.h","new_file":"UIKitExtensions\/UIView\/Sizing.h","old_contents":"\/\/\n\/\/ UIView+Sizing.h\n\/\/ aaah\n\/\/\n\/\/ Created by Stanislaw Pankevich on 5\/10\/13.\n\/\/ Copyright (c) 2013 IProjecting. All rights reserved.\n\/\/\n\n#import \n\n@interface UIView (Sizing)\n\n@property CGPoint origin;\n@property CGSize size;\n\n@property CGFloat x;\n@property CGFloat y;\n@property CGFloat height;\n@property CGFloat width;\n\n@property CGFloat centerX;\n@property CGFloat centerY;\n\n@end\n","new_contents":"\/\/ Inspired by FrameAccessor\n\/\/ https:\/\/github.com\/AlexDenisov\/FrameAccessor\/\n\n#import \n\n@interface UIView (Sizing)\n\n@property CGPoint origin;\n@property CGSize size;\n\n@property CGFloat x;\n@property CGFloat y;\n@property CGFloat height;\n@property CGFloat width;\n\n@property CGFloat centerX;\n@property CGFloat centerY;\n\n@end\n\n","subject":"Add a note about FrameAccessor","message":"Add a note about FrameAccessor\n","lang":"C","license":"mit","repos":"stanislaw\/UIKitExtensions,stanislaw\/UIKitExtensions,stanislaw\/UIKitExtensions,stanislaw\/UIKitExtensions"} {"commit":"dc336ecfd14b0b5007ea43faa780650030fa47ae","old_file":"os\/winapi\/alloc.c","new_file":"os\/winapi\/alloc.c","old_contents":"\/\/\n\/\/ os\/winapi\/alloc.h: Low-level WinAPI-based allocators.\n\/\/\n\/\/ CEN64: Cycle-Accurate Nintendo 64 Simulator.\n\/\/ Copyright (C) 2014, Tyler J. Stachecki.\n\/\/\n\/\/ This file is subject to the terms and conditions defined in\n\/\/ 'LICENSE', which is part of this source code package.\n\/\/\n\n#include \"common.h\"\n#include \"os\/common\/alloc.h\"\n#include \n#include \n\n\/\/ Allocates a block of (R\/W\/X) memory.\nvoid *cen64_alloc(struct cen64_mem *m, size_t size, bool exec) {\n int access = exec ? PAGE_EXECUTE_READWRITE : PAGE_READWRITE;\n\n if ((m->ptr = VirtualAlloc(NULL, size,\n MEM_COMMIT | MEM_RESERVE, access)) == NULL)\n return NULL;\n\n m->size = size;\n return m->ptr;\n}\n\n\/\/ Releases resources acquired by cen64_alloc_init.\nvoid cen64_alloc_cleanup(void) {\n}\n\n\/\/ Initializes CEN64's low-level allocator.\nint cen64_alloc_init(void) {\n return 0;\n}\n\n\/\/ Releases resources acquired by cen64_alloc.\nvoid cen64_free(struct cen64_mem *m) {\n VirtualFree(m->ptr, m->size, MEM_RELEASE);\n}\n\n","new_contents":"\/\/\n\/\/ os\/winapi\/alloc.h: Low-level WinAPI-based allocators.\n\/\/\n\/\/ CEN64: Cycle-Accurate Nintendo 64 Simulator.\n\/\/ Copyright (C) 2014, Tyler J. Stachecki.\n\/\/\n\/\/ This file is subject to the terms and conditions defined in\n\/\/ 'LICENSE', which is part of this source code package.\n\/\/\n\n#include \"common.h\"\n#include \"os\/common\/alloc.h\"\n#include \n#include \n\n\/\/ Allocates a block of (R\/W\/X) memory.\nvoid *cen64_alloc(struct cen64_mem *m, size_t size, bool exec) {\n int access = exec ? PAGE_EXECUTE_READWRITE : PAGE_READWRITE;\n\n if ((m->ptr = VirtualAlloc(NULL, size,\n MEM_COMMIT | MEM_RESERVE, access)) == NULL)\n return NULL;\n\n m->size = size;\n return m->ptr;\n}\n\n\/\/ Releases resources acquired by cen64_alloc_init.\nvoid cen64_alloc_cleanup(void) {\n}\n\n\/\/ Initializes CEN64's low-level allocator.\nint cen64_alloc_init(void) {\n return 0;\n}\n\n\/\/ Releases resources acquired by cen64_alloc.\nvoid cen64_free(struct cen64_mem *m) {\n VirtualFree(m->ptr, 0, MEM_RELEASE);\n}\n\n","subject":"Fix a WinAPI VirtualFree bug.","message":"Fix a WinAPI VirtualFree bug.\n\nThanks go out to izy for this commit.\n","lang":"C","license":"bsd-3-clause","repos":"tj90241\/cen64,tj90241\/cen64"} {"commit":"cacf3b0c49e4f63a8753493def5e51ac027e7350","old_file":"src\/ESPasyncJson.h","new_file":"src\/ESPasyncJson.h","old_contents":"","new_contents":"\/\/ ESPasyncJson.h\n\/*\n Async Response to use with arduinoJson and asyncwebserver\n Written by Andrew Melvin (SticilFace) with help from me-no-dev and BBlanchon.\n\n example of callback in use\n\n server.on(\"\/json\", HTTP_ANY, [](AsyncWebServerRequest * request) {\n\n AsyncJsonResponse * response = new AsyncJsonResponse();\n JsonObject& root = response->getRoot(); \n root[\"key1\"] = \"key number one\";\n JsonObject& nested = root.createNestedObject(\"nested\"); \n nested[\"key1\"] = \"key number one\";\n\n response->setLength();\n request->send(response); \n });\n\n*\/\n\n#pragma once\n#include \n\n\/*\n * Json Response\n * *\/\n\nclass ChunkPrint : public Print{\n private:\n uint8_t* _destination;\n size_t _to_skip;\n size_t _to_write;\n size_t _pos;\n public:\n ChunkPrint(uint8_t* destination, size_t from, size_t len)\n : _destination(destination), _to_skip(from), _to_write(len), _pos{0} {}\n size_t write(uint8_t c){\n if (_to_skip > 0) {\n _to_skip--;\n return 0; \n } else if (_to_write > 0) {\n _to_write--;\n _destination[_pos++] = c;\n return 1; \n }\n return 0;\n }\n};\n \nclass AsyncJsonResponse: public AsyncAbstractResponse {\n private:\n DynamicJsonBuffer _jsonBuffer;\n JsonVariant _root;\n bool _isValid; \n public:\n AsyncJsonResponse(): _isValid{false} {\n _code = 200;\n _contentType = \"text\/json\";\n _root = _jsonBuffer.createObject();\n }\n ~AsyncJsonResponse() {}\n JsonVariant & getRoot() { return _root; }\n bool _sourceValid() { return _isValid; }\n bool setLength() { \n\n _contentLength = _root.measureLength();\n if (_contentLength) { _isValid = true; }\n }\n \n size_t _fillBuffer(uint8_t *data, size_t len){\n ChunkPrint dest(data, _sentLength, len); \n _root.printTo( dest ) ;\n return len; \n }\n};","subject":"Add header to extend server for arduinojson","message":"Add header to extend server for arduinojson\n","lang":"C","license":"lgpl-2.1","repos":"Adam5Wu\/ESPAsyncWebServer,Adam5Wu\/ESPAsyncWebServer"} {"commit":"e27afdfbe608809f3a7961bc980e2183540c9214","old_file":"src\/main.h","new_file":"src\/main.h","old_contents":"#pragma once\n#include \n\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\nconst std::string BotVersion (\"3.0.0-devel\");\nconst unsigned int BotVersionNum = 2800;","new_contents":"#pragma once\n#include \n\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\nconst std::string BotVersion (\"3.0.0-devel\");\nconst unsigned int BotVersionNum = 2800;","subject":"Update includes with stuff I'll need","message":"Update includes with stuff I'll need\n","lang":"C","license":"mit","repos":"ElementalAlchemist\/RoBoBo,ElementalAlchemist\/RoBoBo"} {"commit":"ed97a4dfa37019c451d53f7c0ad945504c41a17d","old_file":"BlackJack\/src\/Game.h","new_file":"BlackJack\/src\/Game.h","old_contents":"\/*\n * Game.h\n *\n * Created on: 30.12.2016\n * Author: Stefan\n *\/\n\n#include \"Deck.h\"\n#include \"Dealer.h\"\n#include \n#include \"GlobalDeclarations.h\"\n#include \"PlayerStrategy.h\"\n\n#ifndef GAME_H_\n#define GAME_H_\n\n\/\/ Class game is the glue code which binds all other classes together.\n\/\/ It guides the game.\nclass Game {\n\tusing pPlayer = std::unique_ptr;\n\npublic:\n\tGame () : _deck(), _dealer(_deck), _players() {}\n\t\/\/ Not allowed to copy or assign game\n\tGame(Game const &) = delete ;\n\tvoid operator=(Game const&) = delete;\n\n\tvoid AddDecks();\n\tvoid PlayRound();\n\tvoid GetStartCards();\n\tvoid PlayCards();\n\tvoid Evaluate();\n\tvoid PutCardsBack();\n\tvoid RemoveBrokePlayers();\n\tvoid PrintNumPlayers () const;\n\n\tvirtual void SetWagers() = 0;\n\tvirtual bool PlayAnotherRound () const = 0;\n\nprotected:\n\tvirtual ~Game(){}; \/\/ Not allowed to polymorphic delete derivatives\n\n\tDeck _deck;\n\tDealer _dealer;\n\t\/\/ Players are pointers to avoid issues with card pointers\n\tstd::vector _players;\n};\n\n#endif \/* GAME_H_ *\/\n","new_contents":"\/*\n * Game.h\n *\n * Created on: 30.12.2016\n * Author: Stefan\n *\/\n\n#include \"Deck.h\"\n#include \"Dealer.h\"\n#include \n#include \"GlobalDeclarations.h\"\n#include \"PlayerStrategy.h\"\n\n#ifndef GAME_H_\n#define GAME_H_\n\n\/\/ Class game is the glue code which binds all other classes together.\n\/\/ It guides the game.\nclass Game {\n\tusing pPlayer = std::unique_ptr;\n\npublic:\n\tGame () : _deck(), _dealer(_deck), _players() {}\n\t\/\/ Not allowed to copy or assign game\n\tGame(Game const &) = delete ;\n\tvoid operator=(Game const&) = delete;\n\n\tvoid AddDecks();\n\tvoid PlayRound();\n\tvirtual bool PlayAnotherRound () const = 0;\n\n\tvoid PrintNumPlayers () const;\n\n\nprotected:\n\tvirtual ~Game(){}; \/\/ Not allowed to polymorphic delete derivatives\n\n\tvirtual void SetWagers() = 0;\n\n\tDeck _deck;\n\tDealer _dealer;\n\t\/\/ Players are pointers to avoid issues with card pointers\n\tstd::vector _players;\nprivate:\n\tvoid GetStartCards();\n\tvoid PlayCards();\n\tvoid Evaluate();\n\tvoid PutCardsBack();\n\tvoid RemoveBrokePlayers();\n\n};\n\n#endif \/* GAME_H_ *\/\n","subject":"Move functions in correct sectors in game class.","message":"Move functions in correct sectors in game class.\n","lang":"C","license":"mit","repos":"saccharios\/BlackJack,saccharios\/BlackJack,saccharios\/BlackJack"} {"commit":"6490f5fb931aa08df00017cb19a08456cd0cdc5b","old_file":"tests\/stream_redirector.h","new_file":"tests\/stream_redirector.h","old_contents":"","new_contents":"#include \n\n\/**\n * This class uses RAII to control redirecting the libMesh::err stream\n * to NULL and restoring it around some operation where we do not want\n * to see output to the screen.\n *\/\nclass StreamRedirector\n{\npublic:\n\n \/**\n * Constructor; saves the original libMesh::err streambuf.\n *\/\n StreamRedirector()\n : _errbuf(libMesh::err.rdbuf())\n {\n libMesh::err.rdbuf(libmesh_nullptr);\n }\n\n \/**\n * Destructor: restores the stream.\n *\/\n ~StreamRedirector()\n {\n libMesh::err.rdbuf(_errbuf);\n }\n\nprivate:\n std::streambuf * _errbuf;\n};\n","subject":"Add StreamRedirector class to handle stream resetting with RAII.","message":"Add StreamRedirector class to handle stream resetting with RAII.\n","lang":"C","license":"lgpl-2.1","repos":"vikramvgarg\/libmesh,balborian\/libmesh,dschwen\/libmesh,svallaghe\/libmesh,hrittich\/libmesh,vikramvgarg\/libmesh,balborian\/libmesh,pbauman\/libmesh,capitalaslash\/libmesh,roystgnr\/libmesh,capitalaslash\/libmesh,giorgiobornia\/libmesh,giorgiobornia\/libmesh,giorgiobornia\/libmesh,balborian\/libmesh,hrittich\/libmesh,libMesh\/libmesh,hrittich\/libmesh,90jrong\/libmesh,libMesh\/libmesh,BalticPinguin\/libmesh,BalticPinguin\/libmesh,90jrong\/libmesh,svallaghe\/libmesh,hrittich\/libmesh,dschwen\/libmesh,vikramvgarg\/libmesh,jwpeterson\/libmesh,libMesh\/libmesh,jwpeterson\/libmesh,balborian\/libmesh,vikramvgarg\/libmesh,vikramvgarg\/libmesh,roystgnr\/libmesh,90jrong\/libmesh,90jrong\/libmesh,roystgnr\/libmesh,giorgiobornia\/libmesh,svallaghe\/libmesh,roystgnr\/libmesh,pbauman\/libmesh,svallaghe\/libmesh,vikramvgarg\/libmesh,capitalaslash\/libmesh,libMesh\/libmesh,dschwen\/libmesh,giorgiobornia\/libmesh,90jrong\/libmesh,svallaghe\/libmesh,hrittich\/libmesh,BalticPinguin\/libmesh,jwpeterson\/libmesh,capitalaslash\/libmesh,svallaghe\/libmesh,pbauman\/libmesh,hrittich\/libmesh,dschwen\/libmesh,balborian\/libmesh,roystgnr\/libmesh,BalticPinguin\/libmesh,roystgnr\/libmesh,dschwen\/libmesh,pbauman\/libmesh,roystgnr\/libmesh,capitalaslash\/libmesh,giorgiobornia\/libmesh,balborian\/libmesh,jwpeterson\/libmesh,balborian\/libmesh,hrittich\/libmesh,balborian\/libmesh,libMesh\/libmesh,hrittich\/libmesh,libMesh\/libmesh,BalticPinguin\/libmesh,libMesh\/libmesh,capitalaslash\/libmesh,pbauman\/libmesh,pbauman\/libmesh,90jrong\/libmesh,vikramvgarg\/libmesh,svallaghe\/libmesh,jwpeterson\/libmesh,jwpeterson\/libmesh,pbauman\/libmesh,dschwen\/libmesh,pbauman\/libmesh,pbauman\/libmesh,balborian\/libmesh,svallaghe\/libmesh,giorgiobornia\/libmesh,svallaghe\/libmesh,90jrong\/libmesh,BalticPinguin\/libmesh,90jrong\/libmesh,vikramvgarg\/libmesh,capitalaslash\/libmesh,libMesh\/libmesh,jwpeterson\/libmesh,BalticPinguin\/libmesh,jwpeterson\/libmesh,giorgiobornia\/libmesh,90jrong\/libmesh,roystgnr\/libmesh,capitalaslash\/libmesh,giorgiobornia\/libmesh,vikramvgarg\/libmesh,dschwen\/libmesh,BalticPinguin\/libmesh,hrittich\/libmesh,balborian\/libmesh,dschwen\/libmesh"} {"commit":"60ad6d206abc1aecef270e4ec6e37e51deebc3a6","old_file":"main.c","new_file":"main.c","old_contents":"#include \n\n#include \"aes.h\"\n\nint\nmain(int argc, char **argv)\n{\n\taes_init();\n\n\treturn 0;\n}\n","new_contents":"#include \n#include \n\n#include \"aes.h\"\n\nint\nmain(int argc, char **argv)\n{\n\tlong blocks;\n\tchar *nptr;\n\n\taes_init();\n\n\tblocks = 10;\n\tif (argc > 1)\n\t{\n\t\tlong b = strtol(argv[1], &nptr, 10);\n\t\tif (argv[1] != nptr)\n\t\t{\n\t\t\tblocks = b;\n\t\t}\n\t}\n\n\treturn 0;\n}\n","subject":"Allow specifying number of blocks to test","message":"Allow specifying number of blocks to test\n","lang":"C","license":"bsd-2-clause","repos":"seankelly\/aesni,seankelly\/aesni"} {"commit":"f740bdd7dfea751bb9f7657ba58d44c4b2f5652d","old_file":"src\/core\/SkTextFormatParams.h","new_file":"src\/core\/SkTextFormatParams.h","old_contents":"\/*\n * Copyright 2010 The Android Open Source Project\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\n#ifndef SkTextFormatParams_DEFINES\n#define SkTextFormatParams_DEFINES\n\n#include \"include\/core\/SkScalar.h\"\n#include \"include\/core\/SkTypes.h\"\n\n\/\/ Fraction of the text size to lower a strike through line below the baseline.\n#define kStdStrikeThru_Offset (-SK_Scalar1 * 6 \/ 21)\n\/\/ Fraction of the text size to lower a underline below the baseline.\n#define kStdUnderline_Offset (SK_Scalar1 \/ 9)\n\/\/ Fraction of the text size to use for a strike through or under-line.\n#define kStdUnderline_Thickness (SK_Scalar1 \/ 18)\n\n\/\/ The fraction of text size to embolden fake bold text scales with text size.\n\/\/ At 9 points or below, the stroke width is increased by text size \/ 24.\n\/\/ At 36 points and above, it is increased by text size \/ 32. In between,\n\/\/ it is interpolated between those values.\nstatic const SkScalar kStdFakeBoldInterpKeys[] = {\n SK_Scalar1*9,\n SK_Scalar1*36,\n};\nstatic const SkScalar kStdFakeBoldInterpValues[] = {\n SK_Scalar1\/24,\n SK_Scalar1\/32,\n};\nstatic_assert(SK_ARRAY_COUNT(kStdFakeBoldInterpKeys) == SK_ARRAY_COUNT(kStdFakeBoldInterpValues),\n \"mismatched_array_size\");\nstatic const int kStdFakeBoldInterpLength = SK_ARRAY_COUNT(kStdFakeBoldInterpKeys);\n\n#endif \/\/SkTextFormatParams_DEFINES\n","new_contents":"\/*\n * Copyright 2010 The Android Open Source Project\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\n#ifndef SkTextFormatParams_DEFINES\n#define SkTextFormatParams_DEFINES\n\n#include \"include\/core\/SkScalar.h\"\n#include \"include\/core\/SkTypes.h\"\n\n\/\/ The fraction of text size to embolden fake bold text scales with text size.\n\/\/ At 9 points or below, the stroke width is increased by text size \/ 24.\n\/\/ At 36 points and above, it is increased by text size \/ 32. In between,\n\/\/ it is interpolated between those values.\nstatic const SkScalar kStdFakeBoldInterpKeys[] = {\n SK_Scalar1*9,\n SK_Scalar1*36,\n};\nstatic const SkScalar kStdFakeBoldInterpValues[] = {\n SK_Scalar1\/24,\n SK_Scalar1\/32,\n};\nstatic_assert(SK_ARRAY_COUNT(kStdFakeBoldInterpKeys) == SK_ARRAY_COUNT(kStdFakeBoldInterpValues),\n \"mismatched_array_size\");\nstatic const int kStdFakeBoldInterpLength = SK_ARRAY_COUNT(kStdFakeBoldInterpKeys);\n\n#endif \/\/SkTextFormatParams_DEFINES\n","subject":"Remove unused text format constants.","message":"Remove unused text format constants.\n\nA long time ago Skia used handle strike-thru and underlines as part of\nthe glyph masks. When it did so there were some overridable constants\nfor where they should go. Since this function has long since been\nremoved, remove these no longer used constants.\n\nChange-Id: I8bc7dbe03e82a5d244438aaaeaf024d8c95280d8\nReviewed-on: https:\/\/skia-review.googlesource.com\/c\/skia\/+\/477160\nCommit-Queue: Ben Wagner <53965154ffeecc4a10886eab9259e95965f2979a@google.com>\nCommit-Queue: Herb Derby <9e12a3d2bbf73546e47cc9958f6ba8f3215b7eaf@google.com>\nAuto-Submit: Ben Wagner <53965154ffeecc4a10886eab9259e95965f2979a@google.com>\nReviewed-by: Herb Derby <9e12a3d2bbf73546e47cc9958f6ba8f3215b7eaf@google.com>\n","lang":"C","license":"bsd-3-clause","repos":"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,aosp-mirror\/platform_external_skia,google\/skia,aosp-mirror\/platform_external_skia,google\/skia,aosp-mirror\/platform_external_skia,aosp-mirror\/platform_external_skia,google\/skia,aosp-mirror\/platform_external_skia,google\/skia,google\/skia,google\/skia,aosp-mirror\/platform_external_skia"} {"commit":"72939a4c9e1db029e42473a0b4e018c8e6f46cf8","old_file":"sql\/sqlite\/inc\/TSQLiteRow.h","new_file":"sql\/sqlite\/inc\/TSQLiteRow.h","old_contents":"\/\/ @(#)root\/sqlite:$Id$\n\/\/ Author: o.freyermuth , 01\/06\/2013\n\n\/*************************************************************************\n * Copyright (C) 1995-2013, Rene Brun and Fons Rademakers. *\n * All rights reserved. *\n * *\n * For the licensing terms see $ROOTSYS\/LICENSE. *\n * For the list of contributors see $ROOTSYS\/README\/CREDITS. *\n *************************************************************************\/\n\n#ifndef ROOT_TPgSQLRow\n#define ROOT_TPgSQLRow\n\n#ifndef ROOT_TSQLRow\n#include \"TSQLRow.h\"\n#endif\n\n#if !defined(__CINT__)\n#include \n#else\nstruct sqlite3_stmt;\n#endif\n\n\nclass TSQLiteRow : public TSQLRow {\n\nprivate:\n sqlite3_stmt *fResult; \/\/ current result set\n Bool_t IsValid(Int_t field);\n\npublic:\n TSQLiteRow(void *result, ULong_t rowHandle);\n ~TSQLiteRow();\n\n void Close(Option_t *opt=\"\");\n ULong_t GetFieldLength(Int_t field);\n const char *GetField(Int_t field);\n\n ClassDef(TSQLiteRow,0) \/\/ One row of SQLite query result\n};\n\n#endif\n","new_contents":"\/\/ @(#)root\/sqlite:\n\/\/ Author: o.freyermuth , 01\/06\/2013\n\n\/*************************************************************************\n * Copyright (C) 1995-2013, Rene Brun and Fons Rademakers. *\n * All rights reserved. *\n * *\n * For the licensing terms see $ROOTSYS\/LICENSE. *\n * For the list of contributors see $ROOTSYS\/README\/CREDITS. *\n *************************************************************************\/\n\n#ifndef ROOT_TSQLiteRow\n#define ROOT_TSQLiteRow\n\n#ifndef ROOT_TSQLRow\n#include \"TSQLRow.h\"\n#endif\n\n#if !defined(__CINT__)\n#include \n#else\nstruct sqlite3_stmt;\n#endif\n\n\nclass TSQLiteRow : public TSQLRow {\n\nprivate:\n sqlite3_stmt *fResult; \/\/ current result set\n Bool_t IsValid(Int_t field);\n\npublic:\n TSQLiteRow(void *result, ULong_t rowHandle);\n ~TSQLiteRow();\n\n void Close(Option_t *opt=\"\");\n ULong_t GetFieldLength(Int_t field);\n const char *GetField(Int_t field);\n\n ClassDef(TSQLiteRow,0) \/\/ One row of SQLite query result\n};\n\n#endif\n","subject":"Fix fatal typo in code guard","message":"Fix fatal typo in code guard\n","lang":"C","license":"lgpl-2.1","repos":"arch1tect0r\/root,zzxuanyuan\/root-compressor-dummy,davidlt\/root,BerserkerTroll\/root,Y--\/root,omazapa\/root-old,vukasinmilosevic\/root,sawenzel\/root,gbitzes\/root,sbinet\/cxx-root,omazapa\/root-old,arch1tect0r\/root,simonpf\/root,zzxuanyuan\/root,gbitzes\/root,omazapa\/root-old,dfunke\/root,zzxuanyuan\/root-compressor-dummy,esakellari\/root,omazapa\/root,esakellari\/my_root_for_test,0x0all\/ROOT,sirinath\/root,esakellari\/my_root_for_test,bbockelm\/root,Duraznos\/root,georgtroska\/root,thomaskeck\/root,vukasinmilosevic\/root,dfunke\/root,esakellari\/my_root_for_test,smarinac\/root,krafczyk\/root,mkret2\/root,zzxuanyuan\/root,simonpf\/root,root-mirror\/root,sawenzel\/root,abhinavmoudgil95\/root,gbitzes\/root,omazapa\/root,abhinavmoudgil95\/root,Duraznos\/root,nilqed\/root,buuck\/root,sbinet\/cxx-root,mattkretz\/root,jrtomps\/root,gbitzes\/root,bbockelm\/root,beniz\/root,root-mirror\/root,vukasinmilosevic\/root,zzxuanyuan\/root-compressor-dummy,CristinaCristescu\/root,gbitzes\/root,krafczyk\/root,Y--\/root,agarciamontoro\/root,krafczyk\/root,Y--\/root,lgiommi\/root,omazapa\/root,mkret2\/root,mattkretz\/root,BerserkerTroll\/root,gbitzes\/root,zzxuanyuan\/root,sbinet\/cxx-root,0x0all\/ROOT,satyarth934\/root,zzxuanyuan\/root,abhinavmoudgil95\/root,esakellari\/root,Duraznos\/root,abhinavmoudgil95\/root,root-mirror\/root,omazapa\/root,gbitzes\/root,agarciamontoro\/root,gganis\/root,bbockelm\/root,evgeny-boger\/root,karies\/root,mattkretz\/root,simonpf\/root,BerserkerTroll\/root,perovic\/root,buuck\/root,root-mirror\/root,gganis\/root,abhinavmoudgil95\/root,zzxuanyuan\/root-compressor-dummy,perovic\/root,omazapa\/root-old,smarinac\/root,omazapa\/root-old,jrtomps\/root,nilqed\/root,mhuwiler\/rootauto,sbinet\/cxx-root,pspe\/root,evgeny-boger\/root,olifre\/root,nilqed\/root,CristinaCristescu\/root,mhuwiler\/rootauto,omazapa\/root,karies\/root,CristinaCristescu\/root,abhinavmoudgil95\/root,sawenzel\/root,krafczyk\/root,lgiommi\/root,arch1tect0r\/root,gganis\/root,jrtomps\/root,smarinac\/root,esakellari\/my_root_for_test,evgeny-boger\/root,pspe\/root,smarinac\/root,mhuwiler\/rootauto,omazapa\/root-old,georgtroska\/root,beniz\/root,mkret2\/root,evgeny-boger\/root,olifre\/root,nilqed\/root,CristinaCristescu\/root,gbitzes\/root,0x0all\/ROOT,zzxuanyuan\/root-compressor-dummy,esakellari\/root,mhuwiler\/rootauto,Duraznos\/root,zzxuanyuan\/root-compressor-dummy,gganis\/root,abhinavmoudgil95\/root,olifre\/root,thomaskeck\/root,CristinaCristescu\/root,pspe\/root,krafczyk\/root,jrtomps\/root,georgtroska\/root,mattkretz\/root,simonpf\/root,pspe\/root,arch1tect0r\/root,veprbl\/root,lgiommi\/root,davidlt\/root,mkret2\/root,beniz\/root,georgtroska\/root,mattkretz\/root,zzxuanyuan\/root,simonpf\/root,sbinet\/cxx-root,perovic\/root,pspe\/root,perovic\/root,sirinath\/root,arch1tect0r\/root,evgeny-boger\/root,jrtomps\/root,simonpf\/root,vukasinmilosevic\/root,davidlt\/root,georgtroska\/root,BerserkerTroll\/root,zzxuanyuan\/root-compressor-dummy,beniz\/root,smarinac\/root,veprbl\/root,BerserkerTroll\/root,davidlt\/root,georgtroska\/root,zzxuanyuan\/root,omazapa\/root,sawenzel\/root,arch1tect0r\/root,perovic\/root,davidlt\/root,georgtroska\/root,lgiommi\/root,olifre\/root,abhinavmoudgil95\/root,simonpf\/root,olifre\/root,krafczyk\/root,pspe\/root,agarciamontoro\/root,veprbl\/root,karies\/root,satyarth934\/root,omazapa\/root,Y--\/root,omazapa\/root-old,lgiommi\/root,lgiommi\/root,pspe\/root,veprbl\/root,davidlt\/root,pspe\/root,Duraznos\/root,satyarth934\/root,vukasinmilosevic\/root,simonpf\/root,nilqed\/root,dfunke\/root,bbockelm\/root,gbitzes\/root,agarciamontoro\/root,mattkretz\/root,Y--\/root,buuck\/root,zzxuanyuan\/root,jrtomps\/root,karies\/root,root-mirror\/root,olifre\/root,satyarth934\/root,root-mirror\/root,Y--\/root,esakellari\/my_root_for_test,jrtomps\/root,evgeny-boger\/root,perovic\/root,jrtomps\/root,georgtroska\/root,BerserkerTroll\/root,esakellari\/my_root_for_test,mattkretz\/root,buuck\/root,esakellari\/root,beniz\/root,vukasinmilosevic\/root,dfunke\/root,karies\/root,mkret2\/root,veprbl\/root,agarciamontoro\/root,vukasinmilosevic\/root,0x0all\/ROOT,gganis\/root,zzxuanyuan\/root-compressor-dummy,sirinath\/root,zzxuanyuan\/root,sbinet\/cxx-root,georgtroska\/root,0x0all\/ROOT,satyarth934\/root,sirinath\/root,karies\/root,mkret2\/root,davidlt\/root,mhuwiler\/rootauto,olifre\/root,karies\/root,karies\/root,agarciamontoro\/root,thomaskeck\/root,zzxuanyuan\/root,arch1tect0r\/root,Y--\/root,zzxuanyuan\/root,lgiommi\/root,veprbl\/root,gbitzes\/root,karies\/root,CristinaCristescu\/root,dfunke\/root,karies\/root,root-mirror\/root,smarinac\/root,agarciamontoro\/root,sirinath\/root,Duraznos\/root,sawenzel\/root,gganis\/root,CristinaCristescu\/root,pspe\/root,karies\/root,perovic\/root,evgeny-boger\/root,sirinath\/root,lgiommi\/root,agarciamontoro\/root,dfunke\/root,dfunke\/root,mattkretz\/root,omazapa\/root-old,buuck\/root,krafczyk\/root,buuck\/root,jrtomps\/root,BerserkerTroll\/root,esakellari\/my_root_for_test,esakellari\/my_root_for_test,gganis\/root,pspe\/root,omazapa\/root,krafczyk\/root,esakellari\/my_root_for_test,sawenzel\/root,root-mirror\/root,mattkretz\/root,agarciamontoro\/root,sbinet\/cxx-root,satyarth934\/root,sirinath\/root,thomaskeck\/root,sirinath\/root,0x0all\/ROOT,smarinac\/root,veprbl\/root,simonpf\/root,sbinet\/cxx-root,BerserkerTroll\/root,esakellari\/root,arch1tect0r\/root,veprbl\/root,satyarth934\/root,beniz\/root,BerserkerTroll\/root,thomaskeck\/root,root-mirror\/root,satyarth934\/root,mhuwiler\/rootauto,gganis\/root,beniz\/root,sbinet\/cxx-root,beniz\/root,Y--\/root,satyarth934\/root,esakellari\/root,davidlt\/root,dfunke\/root,sawenzel\/root,bbockelm\/root,sawenzel\/root,smarinac\/root,mkret2\/root,mattkretz\/root,esakellari\/root,BerserkerTroll\/root,mhuwiler\/rootauto,omazapa\/root-old,arch1tect0r\/root,nilqed\/root,gganis\/root,mkret2\/root,omazapa\/root,vukasinmilosevic\/root,olifre\/root,CristinaCristescu\/root,olifre\/root,0x0all\/ROOT,thomaskeck\/root,nilqed\/root,agarciamontoro\/root,0x0all\/ROOT,veprbl\/root,davidlt\/root,root-mirror\/root,buuck\/root,gbitzes\/root,perovic\/root,abhinavmoudgil95\/root,lgiommi\/root,Duraznos\/root,Y--\/root,root-mirror\/root,omazapa\/root-old,pspe\/root,nilqed\/root,mhuwiler\/rootauto,abhinavmoudgil95\/root,mhuwiler\/rootauto,esakellari\/root,thomaskeck\/root,perovic\/root,dfunke\/root,buuck\/root,mhuwiler\/rootauto,zzxuanyuan\/root,lgiommi\/root,bbockelm\/root,nilqed\/root,omazapa\/root,lgiommi\/root,mkret2\/root,mkret2\/root,evgeny-boger\/root,jrtomps\/root,evgeny-boger\/root,zzxuanyuan\/root-compressor-dummy,sbinet\/cxx-root,veprbl\/root,mkret2\/root,simonpf\/root,krafczyk\/root,Duraznos\/root,sirinath\/root,Y--\/root,beniz\/root,zzxuanyuan\/root-compressor-dummy,satyarth934\/root,agarciamontoro\/root,beniz\/root,zzxuanyuan\/root,bbockelm\/root,perovic\/root,omazapa\/root-old,Y--\/root,smarinac\/root,arch1tect0r\/root,CristinaCristescu\/root,vukasinmilosevic\/root,abhinavmoudgil95\/root,davidlt\/root,evgeny-boger\/root,sawenzel\/root,bbockelm\/root,krafczyk\/root,vukasinmilosevic\/root,davidlt\/root,arch1tect0r\/root,thomaskeck\/root,thomaskeck\/root,simonpf\/root,0x0all\/ROOT,krafczyk\/root,evgeny-boger\/root,zzxuanyuan\/root-compressor-dummy,veprbl\/root,omazapa\/root,gganis\/root,olifre\/root,smarinac\/root,sbinet\/cxx-root,BerserkerTroll\/root,georgtroska\/root,esakellari\/root,CristinaCristescu\/root,dfunke\/root,mhuwiler\/rootauto,jrtomps\/root,perovic\/root,beniz\/root,esakellari\/root,buuck\/root,sawenzel\/root,Duraznos\/root,vukasinmilosevic\/root,CristinaCristescu\/root,esakellari\/root,sirinath\/root,buuck\/root,esakellari\/my_root_for_test,bbockelm\/root,buuck\/root,Duraznos\/root,gganis\/root,bbockelm\/root,olifre\/root,thomaskeck\/root,georgtroska\/root,sawenzel\/root,Duraznos\/root,bbockelm\/root,dfunke\/root,nilqed\/root,sirinath\/root,nilqed\/root,satyarth934\/root,mattkretz\/root"} {"commit":"69f10062ab629f12d111e538a4f1acb6d66327d4","old_file":"test\/Driver\/nozlibcompress.c","new_file":"test\/Driver\/nozlibcompress.c","old_contents":"\/\/ REQUIRES: nozlib\n\n\/\/ RUN: %clang -### -fintegrated-as -gz -c %s 2>&1 | FileCheck %s -check-prefix CHECK-WARN\n\/\/ RUN: %clang -### -fintegrated-as -gz=none -c %s 2>&1 | FileCheck -allow-empty -check-prefix CHECK-NOWARN %s\n\n\/\/ CHECK-WARN: warning: cannot compress debug sections (zlib not installed)\n\/\/ CHECK-NOWARN-NOT: warning: cannot compress debug sections (zlib not installed)\n","new_contents":"\/\/ REQUIRES: !zlib\n\n\/\/ RUN: %clang -### -fintegrated-as -gz -c %s 2>&1 | FileCheck %s -check-prefix CHECK-WARN\n\/\/ RUN: %clang -### -fintegrated-as -gz=none -c %s 2>&1 | FileCheck -allow-empty -check-prefix CHECK-NOWARN %s\n\n\/\/ CHECK-WARN: warning: cannot compress debug sections (zlib not installed)\n\/\/ CHECK-NOWARN-NOT: warning: cannot compress debug sections (zlib not installed)\n","subject":"Replace 'REQUIRES: nozlib' with '!zlib' because we don't need two ways to say the same thing.","message":"Replace 'REQUIRES: nozlib' with '!zlib' because we don't need two ways\nto say the same thing.\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@360452 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang"} {"commit":"a7d34e88287ab77caa99d58092c66da92546a10a","old_file":"ReactLocalization.h","new_file":"ReactLocalization.h","old_contents":"\/\/\n\/\/ The MIT License (MIT)\n\/\/\n\/\/ Copyright (c) 2015 Stefano Falda (stefano.falda@gmail.com)\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 all\n\/\/ 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 THE\n\/\/ SOFTWARE.\n\n#import \n#import \n#import \"RCTBridgeModule.h\"\n#import \"RCTLog.h\"\n@interface ReactLocalization : NSObject\n\n@end\n","new_contents":"\/\/\n\/\/ The MIT License (MIT)\n\/\/\n\/\/ Copyright (c) 2015 Stefano Falda (stefano.falda@gmail.com)\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 all\n\/\/ 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 THE\n\/\/ SOFTWARE.\n\n#import \n#import \n#if __has_include(\"RCTBridgeModule.h\")\n#import \"RCTBridgeModule.h\"\n#import \"RCTLog.h\"\n#else\n#import \n#import \n#endif\n@interface ReactLocalization : NSObject\n\n@end\n","subject":"Change headers for react-native 0.40 compatibility","message":"Change headers for react-native 0.40 compatibility\n","lang":"C","license":"mit","repos":"stefalda\/ReactNativeLocalization,stefalda\/ReactNativeLocalization,stefalda\/ReactNativeLocalization,stefalda\/ReactNativeLocalization"} {"commit":"9ba97cce3773e59677346e66484dbdc5c80f26a6","old_file":"test\/main.c","new_file":"test\/main.c","old_contents":"#include \n\n#include \"bincookie.h\"\n\nint main(int argc, char *argv[]) {\n if (argc != 2) {\n printf(\"Usage: %s [Full path to Cookies.binarycookies file]\\n\", argv[0]);\n printf(\"Example: %s Cookies.binarycookies\\n\", argv[0]);\n return 1;\n }\n\n binarycookies_t *bc = binarycookies_init(argv[1]);\n unsigned int i, j;\n\n \/\/ Output in Netscape cookies.txt format\n for (i = 0; i < bc->num_pages; i++) {\n for (j = 0; j < bc->pages[i]->number_of_cookies; j++) {\n \/\/ domain, flag, path, secure, expiration, name, value\n printf(\"%s\\t%s\\t%s\\t%s\\t%.f\\t%s\\t%s\\n\",\n bc->pages[i]->cookies[j]->domain,\n bc->pages[i]->cookies[j]->domain[0] == '.' ? \"TRUE\" : \"FALSE\",\n bc->pages[i]->cookies[j]->path,\n binarycookies_is_secure(bc->pages[i]->cookies[j]) ? \"TRUE\" : \"FALSE\",\n bc->pages[i]->cookies[j]->expiration_date,\n bc->pages[i]->cookies[j]->name,\n bc->pages[i]->cookies[j]->value);\n }\n }\n\n binarycookies_free(bc);\n\n return 0;\n}\n","new_contents":"#include \n\n#include \"bincookie.h\"\n\nint main(int argc, char *argv[]) {\n if (argc != 2) {\n printf(\"Usage: %s [Full path to Cookies.binarycookies file]\\n\", argv[0]);\n printf(\"Example: %s Cookies.binarycookies\\n\", argv[0]);\n return 1;\n }\n\n binarycookies_t *bc = binarycookies_init(argv[1]);\n unsigned int i, j;\n\n \/\/ Output in Netscape cookies.txt format\n for (i = 0; i < bc->num_pages; i++) {\n for (j = 0; j < bc->pages[i]->number_of_cookies; j++) {\n \/\/ domain, flag, path, secure, expiration, name, value\n printf(\"%s\\t%s\\t%s\\t%s\\t%.f\\t%s\\t%s\\n\",\n bc->pages[i]->cookies[j]->domain,\n binarycookies_domain_access_full(bc->pages[i]->cookies[j]) ? \"TRUE\" : \"FALSE\",\n bc->pages[i]->cookies[j]->path,\n binarycookies_is_secure(bc->pages[i]->cookies[j]) ? \"TRUE\" : \"FALSE\",\n bc->pages[i]->cookies[j]->expiration_date,\n bc->pages[i]->cookies[j]->name,\n bc->pages[i]->cookies[j]->value);\n }\n }\n\n binarycookies_free(bc);\n\n return 0;\n}\n","subject":"Use macro in example code","message":"Use macro in example code\n","lang":"C","license":"mit","repos":"Tatsh\/libbinarycookies,Tatsh\/libbinarycookies"} {"commit":"92bbf5c179d533c93c19a51a62770cf5392a95a5","old_file":"t\/04-nativecall\/04-pointers.c","new_file":"t\/04-nativecall\/04-pointers.c","old_contents":"#include \n#include \n\n#ifdef WIN32\n#define DLLEXPORT __declspec(dllexport)\n#else\n#define DLLEXPORT extern\n#endif\n\nDLLEXPORT void * ReturnSomePointer()\n{\n char *x = \"Got passed back the pointer I returned\";\n return x;\n}\n\nDLLEXPORT int CompareSomePointer(void *ptr)\n{\n int x = strcmp(\"Got passed back the pointer I returned\", ptr) == 0;\n return x;\n}\n\nDLLEXPORT void * ReturnNullPointer()\n{\n return NULL;\n}\n\nDLLEXPORT void * TakeTwoPointersToInt(int *ptr1, int *ptr2)\n{\n return NULL;\n}\n\nDLLEXPORT void * TakeCArrayToInt8(int array[]) {\n return NULL;\n}\n","new_contents":"#include \n#include \n\n#ifdef WIN32\n#define DLLEXPORT __declspec(dllexport)\n#else\n#define DLLEXPORT extern\n#endif\n\nDLLEXPORT void * ReturnSomePointer()\n{\n return strdup(\"Got passed back the pointer I returned\");\n}\n\nDLLEXPORT int CompareSomePointer(void *ptr)\n{\n int x = strcmp(\"Got passed back the pointer I returned\", ptr) == 0;\n free(ptr);\n return x;\n}\n\nDLLEXPORT void * ReturnNullPointer()\n{\n return NULL;\n}\n\nDLLEXPORT void * TakeTwoPointersToInt(int *ptr1, int *ptr2)\n{\n return NULL;\n}\n\nDLLEXPORT void * TakeCArrayToInt8(int array[]) {\n return NULL;\n}\n","subject":"Fix C issue in NativeCall tests.","message":"Fix C issue in NativeCall tests.\n\nOne of the pointer tests returned a pointer to astack allocated string outside\nof the function, which is not very safe. Replace it with a strdup()ed string\nthat's freed on verification.\n","lang":"C","license":"artistic-2.0","repos":"ab5tract\/rakudo,b2gills\/rakudo,niner\/rakudo,nbrown\/rakudo,sergot\/rakudo,cygx\/rakudo,samcv\/rakudo,rakudo\/rakudo,lucasbuchala\/rakudo,raydiak\/rakudo,b2gills\/rakudo,niner\/rakudo,niner\/rakudo,salortiz\/rakudo,rakudo\/rakudo,Gnouc\/rakudo,softmoth\/rakudo,paultcochrane\/rakudo,zostay\/rakudo,tony-o\/rakudo,nunorc\/rakudo,cygx\/rakudo,ungrim97\/rakudo,dankogai\/rakudo,salortiz\/rakudo,zostay\/rakudo,sergot\/rakudo,usev6\/rakudo,sjn\/rakudo,MasterDuke17\/rakudo,salortiz\/rakudo,MasterDuke17\/rakudo,ab5tract\/rakudo,cognominal\/rakudo,LLFourn\/rakudo,ab5tract\/rakudo,samcv\/rakudo,Gnouc\/rakudo,jonathanstowe\/rakudo,ungrim97\/rakudo,awwaiid\/rakudo,tbrowder\/rakudo,Leont\/rakudo,labster\/rakudo,rakudo\/rakudo,tony-o\/rakudo,salortiz\/rakudo,softmoth\/rakudo,zhuomingliang\/rakudo,labster\/rakudo,samcv\/rakudo,samcv\/rakudo,cygx\/rakudo,cognominal\/rakudo,sjn\/rakudo,jonathanstowe\/rakudo,labster\/rakudo,jonathanstowe\/rakudo,Gnouc\/rakudo,ugexe\/rakudo,skids\/rakudo,laben\/rakudo,nbrown\/rakudo,awwaiid\/rakudo,sjn\/rakudo,azawawi\/rakudo,LLFourn\/rakudo,tony-o\/rakudo,nunorc\/rakudo,laben\/rakudo,Gnouc\/rakudo,cygx\/rakudo,Leont\/rakudo,sergot\/rakudo,usev6\/rakudo,labster\/rakudo,ugexe\/rakudo,b2gills\/rakudo,paultcochrane\/rakudo,MasterDuke17\/rakudo,jonathanstowe\/rakudo,raydiak\/rakudo,skids\/rakudo,azawawi\/rakudo,MasterDuke17\/rakudo,nbrown\/rakudo,awwaiid\/rakudo,tbrowder\/rakudo,laben\/rakudo,paultcochrane\/rakudo,nunorc\/rakudo,paultcochrane\/rakudo,ab5tract\/rakudo,dankogai\/rakudo,zhuomingliang\/rakudo,jonathanstowe\/rakudo,cognominal\/rakudo,lucasbuchala\/rakudo,paultcochrane\/rakudo,MasterDuke17\/rakudo,azawawi\/rakudo,dankogai\/rakudo,labster\/rakudo,rakudo\/rakudo,tbrowder\/rakudo,lucasbuchala\/rakudo,dankogai\/rakudo,sjn\/rakudo,ugexe\/rakudo,nbrown\/rakudo,usev6\/rakudo,usev6\/rakudo,rakudo\/rakudo,salortiz\/rakudo,ugexe\/rakudo,sjn\/rakudo,cygx\/rakudo,LLFourn\/rakudo,rakudo\/rakudo,Gnouc\/rakudo,skids\/rakudo,LLFourn\/rakudo,cognominal\/rakudo,Leont\/rakudo,ungrim97\/rakudo,tony-o\/rakudo,nbrown\/rakudo,awwaiid\/rakudo,cognominal\/rakudo,samcv\/rakudo,niner\/rakudo,Leont\/rakudo,tbrowder\/rakudo,tbrowder\/rakudo,softmoth\/rakudo,sergot\/rakudo,softmoth\/rakudo,tony-o\/rakudo,salortiz\/rakudo,nunorc\/rakudo,zhuomingliang\/rakudo,laben\/rakudo,b2gills\/rakudo,lucasbuchala\/rakudo,ab5tract\/rakudo,awwaiid\/rakudo,nbrown\/rakudo,skids\/rakudo,usev6\/rakudo,zostay\/rakudo,zhuomingliang\/rakudo,b2gills\/rakudo,MasterDuke17\/rakudo,raydiak\/rakudo,skids\/rakudo,lucasbuchala\/rakudo,Gnouc\/rakudo,dankogai\/rakudo,LLFourn\/rakudo,tbrowder\/rakudo,labster\/rakudo,azawawi\/rakudo,raydiak\/rakudo,softmoth\/rakudo,ugexe\/rakudo,ungrim97\/rakudo,tony-o\/rakudo,zostay\/rakudo,azawawi\/rakudo,ungrim97\/rakudo"} {"commit":"a089ce29161267cca724bf76ad98602e90b30178","old_file":"tests\/test_utils.h","new_file":"tests\/test_utils.h","old_contents":"\/*\nCopyright libCellML Contributors\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*\/\n\n#pragma once\n\n#include \n\n#include \"test_exportdefinitions.h\"\n\nstd::string TEST_EXPORT resourcePath(const std::string &resourceRelativePath = \"\");\n\nstd::string TEST_EXPORT fileContents(const std::string &fileName);\n\nvoid TEST_EXPORT printErrors(const libcellml::Validator &v);\nvoid TEST_EXPORT printErrors(const libcellml::Parser &p);\nvoid TEST_EXPORT expectEqualErrors(const std::vector &errors, const libcellml::Logger &logger);\n\nlibcellml::ModelPtr TEST_EXPORT createModel(const std::string &name = \"\");\nlibcellml::ModelPtr TEST_EXPORT createModelWithComponent(const std::string &name = \"\");\n\n#define EXPECT_EQ_ERRORS(errors, logger) SCOPED_TRACE(\"Error occured here\");expectEqualErrors(errors, logger)\n","new_contents":"\/*\nCopyright libCellML Contributors\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*\/\n\n#pragma once\n\n#include \n\n#include \"test_exportdefinitions.h\"\n\nstd::string TEST_EXPORT resourcePath(const std::string &resourceRelativePath = \"\");\n\nstd::string TEST_EXPORT fileContents(const std::string &fileName);\n\nvoid TEST_EXPORT printErrors(const libcellml::Validator &v);\nvoid TEST_EXPORT printErrors(const libcellml::Parser &p);\nvoid TEST_EXPORT expectEqualErrors(const std::vector &errors, const libcellml::Logger &logger);\n\nlibcellml::ModelPtr TEST_EXPORT createModel(const std::string &name = \"\");\nlibcellml::ModelPtr TEST_EXPORT createModelWithComponent(const std::string &name = \"\");\n\n#define EXPECT_EQ_ERRORS(errors, logger) SCOPED_TRACE(\"Error occured here.\");expectEqualErrors(errors, logger)\n","subject":"Add fullstop for the pc crowd (punctually correct).","message":"Add fullstop for the pc crowd (punctually correct).\n","lang":"C","license":"apache-2.0","repos":"cellml\/libcellml,hsorby\/libcellml,nickerso\/libcellml,nickerso\/libcellml,cellml\/libcellml,nickerso\/libcellml,hsorby\/libcellml,cellml\/libcellml,cellml\/libcellml,MichaelClerx\/libcellml,hsorby\/libcellml,hsorby\/libcellml,MichaelClerx\/libcellml,MichaelClerx\/libcellml,nickerso\/libcellml"} {"commit":"e92cbeac89d4c7b228894a9b8eb37e3ac51afe73","old_file":"drivers\/net\/ixgbe\/ixgbe_fcoe.h","new_file":"drivers\/net\/ixgbe\/ixgbe_fcoe.h","old_contents":"","new_contents":"\/*******************************************************************************\n\n Intel 10 Gigabit PCI Express Linux driver\n Copyright(c) 1999 - 2009 Intel Corporation.\n\n This program is free software; you can redistribute it and\/or modify it\n under the terms and conditions of the GNU General Public License,\n version 2, as published by the Free Software Foundation.\n\n This program is distributed in the hope it will be useful, but WITHOUT\n ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\n FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for\n more details.\n\n You should have received a copy of the GNU General Public License along with\n this program; if not, write to the Free Software Foundation, Inc.,\n 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.\n\n The full GNU General Public License is included in this distribution in\n the file called \"COPYING\".\n\n Contact Information:\n e1000-devel Mailing List \n Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497\n\n*******************************************************************************\/\n\n#ifndef _IXGBE_FCOE_H\n#define _IXGBE_FCOE_H\n\n#include \n\n\/* shift bits within STAT fo FCSTAT *\/\n#define IXGBE_RXDADV_FCSTAT_SHIFT\t4\n\n\/* ddp user buffer *\/\n#define IXGBE_BUFFCNT_MAX\t256\t\/* 8 bits bufcnt *\/\n#define IXGBE_FCPTR_ALIGN\t16\n#define IXGBE_FCPTR_MAX\t(IXGBE_BUFFCNT_MAX * sizeof(dma_addr_t))\n#define IXGBE_FCBUFF_4KB\t0x0\n#define IXGBE_FCBUFF_8KB\t0x1\n#define IXGBE_FCBUFF_16KB\t0x2\n#define IXGBE_FCBUFF_64KB\t0x3\n#define IXGBE_FCBUFF_MAX\t65536\t\/* 64KB max *\/\n#define IXGBE_FCBUFF_MIN\t4096\t\/* 4KB min *\/\n#define IXGBE_FCOE_DDP_MAX\t512\t\/* 9 bits xid *\/\n\n\/* fcerr *\/\n#define IXGBE_FCERR_BADCRC 0x00100000\n\nstruct ixgbe_fcoe_ddp {\n\tint len;\n\tu32 err;\n\tunsigned int sgc;\n\tstruct scatterlist *sgl;\n\tdma_addr_t udp;\n\tunsigned long *udl;\n};\n\nstruct ixgbe_fcoe {\n\tspinlock_t lock;\n\tstruct pci_pool *pool;\n\tstruct ixgbe_fcoe_ddp ddp[IXGBE_FCOE_DDP_MAX];\n};\n\n#endif \/* _IXGBE_FCOE_H *\/\n","subject":"Add FCoE feature header to 82599","message":"ixgbe: Add FCoE feature header to 82599\n\nThis adds the FCoE feature header ixgbe_fcoe.h to 82599. This header includes\nthe defines and structures required by the ixgbe driver to support various\noffload features in 82599 for Fiber Channel over Ethernet (FCoE). These offloads\nfeatures include Fiber Channel CRC calculation, FCoE SOF\/EOF auto insertion,\nFCoE Sequence Offload (FSO) for large send, and Direct Data Placement (DDP)\nfor large receive.\n\nSigned-off-by: Yi Zou <5b3a821cf7a153d601945bbe257e1150110342e4@intel.com>\nSigned-off-by: Jeff Kirsher <87e35f5be20bb3e67f4ba6b86f5f6be3085b1b3a@intel.com>\nSigned-off-by: David S. Miller \n","lang":"C","license":"mit","repos":"KristFoundation\/Programs,KristFoundation\/Programs,KristFoundation\/Programs,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,TeamVee-Kanas\/android_kernel_samsung_kanas,TeamVee-Kanas\/android_kernel_samsung_kanas,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs"} {"commit":"7b731e9071b09adedb44d097a3ae7c04488e345c","old_file":"NSTimeZone+Offset.h","new_file":"NSTimeZone+Offset.h","old_contents":"\/\/\n\/\/ NSTimeZone+Offset.h\n\/\/ CocoaGit\n\/\/\n\/\/ Created by Geoffrey Garside on 28\/07\/2008.\n\/\/ Copyright 2008 ManicPanda.com. All rights reserved.\n\/\/\n\n#import \n\n@interface NSTimeZone (Offset)\n\n+ (id)timeZoneWithStringOffset:(NSString*)offset;\n- (NSString*)offsetString;\n@end\n","new_contents":"\/\/\n\/\/ NSTimeZone+Offset.h\n\/\/ CocoaGit\n\/\/\n\/\/ Created by Geoffrey Garside on 28\/07\/2008.\n\/\/ Copyright 2008 ManicPanda.com. All rights reserved.\n\/\/\n\n#import \n\n@interface NSTimeZone (Offset)\n\n\/*! Creates and returns a time zone with the specified offset.\n * The string is broken down into the hour and minute components\n * which are then used to work out the number of seconds from GMT.\n * \\param offset The timezone offset as a string such as \"+0100\"\n * \\return A time zone with the specified offset\n * \\see +timeZoneForSecondsFromGMT:\n *\/\n+ (id)timeZoneWithStringOffset:(NSString*)offset;\n\n\/*! Returns the receivers offset as an HHMM formatted string.\n * \\return The receivers offset as a string in HHMM format.\n *\/\n- (NSString*)offsetString;\n@end\n","subject":"Add documentation of the category methods on NSTimeZone","message":"Add documentation of the category methods on NSTimeZone\n","lang":"C","license":"mit","repos":"geoffgarside\/cocoagit,geoffgarside\/cocoagit,schacon\/cocoagit,schacon\/cocoagit"} {"commit":"b2dcde40c7dc565e51210b1fd505a3f7368bec23","old_file":"panda\/src\/audio\/audio.h","new_file":"panda\/src\/audio\/audio.h","old_contents":"\/\/ Filename: audio.h\n\/\/ Created by: frang (06Jul00)\n\/\/\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\/\/\n\/\/ PANDA 3D SOFTWARE\n\/\/ Copyright (c) Carnegie Mellon University. All rights reserved.\n\/\/\n\/\/ All use of this software is subject to the terms of the revised BSD\n\/\/ license. You should have received a copy of this license along\n\/\/ with this source code in a file named \"LICENSE.\"\n\/\/\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n#ifndef __AUDIO_H__\n#define __AUDIO_H__\n\n#include \"filterProperties.h\"\n#include \"audioSound.h\"\n#include \"audioManager.h\"\n\n#endif \/* __AUDIO_H__ *\/\n","new_contents":"\/\/ Filename: audio.h\n\/\/ Created by: frang (06Jul00)\n\/\/\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\/\/\n\/\/ PANDA 3D SOFTWARE\n\/\/ Copyright (c) Carnegie Mellon University. All rights reserved.\n\/\/\n\/\/ All use of this software is subject to the terms of the revised BSD\n\/\/ license. You should have received a copy of this license along\n\/\/ with this source code in a file named \"LICENSE.\"\n\/\/\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n#ifndef __AUDIO_H__\n#define __AUDIO_H__\n\n#include \"filterProperties.h\"\n#include \"audioLoadRequest.h\"\n#include \"audioSound.h\"\n#include \"audioManager.h\"\n\n#endif \/* __AUDIO_H__ *\/\n","subject":"Apply patch by Josh Enes","message":"Apply patch by Josh Enes\n","lang":"C","license":"bsd-3-clause","repos":"mgracer48\/panda3d,Wilee999\/panda3d,brakhane\/panda3d,jjkoletar\/panda3d,jjkoletar\/panda3d,tobspr\/panda3d,jjkoletar\/panda3d,Wilee999\/panda3d,grimfang\/panda3d,brakhane\/panda3d,brakhane\/panda3d,tobspr\/panda3d,hj3938\/panda3d,matthiascy\/panda3d,brakhane\/panda3d,hj3938\/panda3d,jjkoletar\/panda3d,ee08b397\/panda3d,tobspr\/panda3d,matthiascy\/panda3d,chandler14362\/panda3d,mgracer48\/panda3d,ee08b397\/panda3d,Wilee999\/panda3d,matthiascy\/panda3d,brakhane\/panda3d,hj3938\/panda3d,matthiascy\/panda3d,chandler14362\/panda3d,hj3938\/panda3d,chandler14362\/panda3d,mgracer48\/panda3d,hj3938\/panda3d,matthiascy\/panda3d,Wilee999\/panda3d,grimfang\/panda3d,Wilee999\/panda3d,mgracer48\/panda3d,ee08b397\/panda3d,grimfang\/panda3d,grimfang\/panda3d,chandler14362\/panda3d,chandler14362\/panda3d,mgracer48\/panda3d,Wilee999\/panda3d,matthiascy\/panda3d,cc272309126\/panda3d,hj3938\/panda3d,ee08b397\/panda3d,chandler14362\/panda3d,brakhane\/panda3d,cc272309126\/panda3d,brakhane\/panda3d,tobspr\/panda3d,matthiascy\/panda3d,tobspr\/panda3d,grimfang\/panda3d,jjkoletar\/panda3d,mgracer48\/panda3d,jjkoletar\/panda3d,cc272309126\/panda3d,jjkoletar\/panda3d,tobspr\/panda3d,cc272309126\/panda3d,cc272309126\/panda3d,hj3938\/panda3d,hj3938\/panda3d,chandler14362\/panda3d,brakhane\/panda3d,mgracer48\/panda3d,grimfang\/panda3d,grimfang\/panda3d,ee08b397\/panda3d,tobspr\/panda3d,ee08b397\/panda3d,jjkoletar\/panda3d,cc272309126\/panda3d,tobspr\/panda3d,ee08b397\/panda3d,grimfang\/panda3d,grimfang\/panda3d,chandler14362\/panda3d,ee08b397\/panda3d,jjkoletar\/panda3d,tobspr\/panda3d,matthiascy\/panda3d,Wilee999\/panda3d,chandler14362\/panda3d,Wilee999\/panda3d,cc272309126\/panda3d,ee08b397\/panda3d,cc272309126\/panda3d,Wilee999\/panda3d,chandler14362\/panda3d,matthiascy\/panda3d,grimfang\/panda3d,tobspr\/panda3d,hj3938\/panda3d,mgracer48\/panda3d,brakhane\/panda3d,cc272309126\/panda3d,mgracer48\/panda3d"} {"commit":"9cf087465ffee40dbe4657dc2e8ffeb63eeb53e9","old_file":"Synchronized\/ObjCSynchronized.h","new_file":"Synchronized\/ObjCSynchronized.h","old_contents":"\/\/ The MIT License (MIT)\n\/\/\n\/\/ Copyright (c) 2014-present James Ide\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\nvoid objc_synchronized(id object, __attribute__((noescape)) void (^closure)());\n","new_contents":"\/\/ The MIT License (MIT)\n\/\/\n\/\/ Copyright (c) 2014-present James Ide\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@import Foundation;\n\nNS_ASSUME_NONNULL_BEGIN\n\nvoid objc_synchronized(id object, __attribute__((noescape)) void (^closure)());\n\nNS_ASSUME_NONNULL_END\n","subject":"Use NS_ASSUME_NONNULL_BEGIN\/END macros in Obj-C header","message":"Use NS_ASSUME_NONNULL_BEGIN\/END macros in Obj-C header\n\nThe mutex object and block shouldn't be null. We could change the API to accept null but I don't think that's natural to do (and the Swift API forbids it anyway right now).\n","lang":"C","license":"mit","repos":"ide\/Synchronized,ide\/Synchronized"} {"commit":"5560daf0cbabab65b07476ca16285012a4f6489e","old_file":"src\/util\/tmpfile.c","new_file":"src\/util\/tmpfile.c","old_contents":"#define _XOPEN_SOURCE 500 \/* mkstemp *\/\n#include \n#include \n\n#include \"tmpfile.h\"\n#include \"alloc.h\"\n\nint tmpfile_prefix_out(const char *prefix, char **const fname)\n{\n\tchar *tmppath;\n\tint fd;\n\tchar *tmpdir = getenv(\"TMPDIR\");\n\n#ifdef P_tmpdir\n\tif(!tmpdir)\n\t\ttmpdir = P_tmpdir;\n#endif\n\tif(!tmpdir)\n\t\ttmpdir = \"\/tmp\";\n\n\ttmppath = ustrprintf(\"%s\/%sXXXXXX\", tmpdir, prefix);\n\tfd = mkstemp(tmppath);\n\n\tif(fd < 0){\n\t\tfree(tmppath);\n\t\ttmppath = NULL;\n\t}\n\n\tif(fname)\n\t\t*fname = tmppath;\n\telse\n\t\tfree(tmppath);\n\n\treturn fd;\n}\n","new_contents":"#define _XOPEN_SOURCE 500 \/* mkstemp *\/\n#include \n#include \n\n#include \"tmpfile.h\"\n#include \"alloc.h\"\n\nint tmpfile_prefix_out(const char *prefix, char **const fname)\n{\n\tchar *tmppath;\n\tint fd;\n\tchar *tmpdir = getenv(\"TMPDIR\");\n\n#ifdef P_tmpdir\n\tif(!tmpdir)\n\t\ttmpdir = P_tmpdir;\n#endif\n\tif(!tmpdir)\n\t\ttmpdir = \"\/tmp\";\n\n\ttmppath = ustrprintf(\"%s\/%sXXXXXX\", tmpdir, prefix);\n\tfd = mkstemp(tmppath);\n\n\tif(fname)\n\t\t*fname = tmppath;\n\telse\n\t\tfree(tmppath);\n\n\treturn fd;\n}\n","subject":"Revert \"Free tmppath on mkstemp() failure\" (moved to master)","message":"Revert \"Free tmppath on mkstemp() failure\" (moved to master)\n\nThis reverts commit 85598a0ccbea2d82303c5cb2daa9a29ec01eb3d2.\n","lang":"C","license":"mit","repos":"bobrippling\/ucc-c-compiler,bobrippling\/ucc-c-compiler,bobrippling\/ucc-c-compiler"} {"commit":"dd54e6b9aded46da7a74eede6f935b289a979912","old_file":"WidgetTimeInput.h","new_file":"WidgetTimeInput.h","old_contents":"\/**\n * @file WidgetTimeInput.h\n * @author Volodymyr Shymanskyy\n * @license This project is released under the MIT License (MIT)\n * @copyright Copyright (c) 2015 Volodymyr Shymanskyy\n * @date Aug 2016\n * @brief\n *\n *\/\n\n#ifndef WidgetTimeInput_h\n#define WidgetTimeInput_h\n\n#include \n#include \n\nclass TimeInputParam\n{\npublic:\n\n\tTimeInputParam(const BlynkParam& param)\n\t\t: mStart (param[0].asLong())\n\t\t, mStop (param[1].asLong())\n\t{\n\t\tmTZ = param[2].asLong();\n\t}\n\n\tBlynkDateTime& getStart() { return mStart; }\n\tBlynkDateTime& getStop() { return mStop; }\n long getTZ() const { return mTZ; }\n\nprivate:\n BlynkDateTime mStart;\n BlynkDateTime mStop;\n long mTZ;\n};\n\n#endif\n","new_contents":"\/**\n * @file WidgetTimeInput.h\n * @author Volodymyr Shymanskyy\n * @license This project is released under the MIT License (MIT)\n * @copyright Copyright (c) 2015 Volodymyr Shymanskyy\n * @date Aug 2016\n * @brief\n *\n *\/\n\n#ifndef WidgetTimeInput_h\n#define WidgetTimeInput_h\n\n#include \n#include \n\nclass TimeInputParam\n{\npublic:\n\n\tTimeInputParam(const BlynkParam& param)\n\t{\n\t\tif (strlen(param[0].asStr())) {\n\t\t\tmStart = param[0].asLong();\n\t\t}\n\t\tif (strlen(param[1].asStr())) {\n\t\t\tmStop = param[1].asLong();\n\t\t}\n\t\tmTZ = param[2].asLong();\n\t}\n\n\tBlynkTime& getStart() { return mStart; }\n\tBlynkTime& getStop() { return mStop; }\n long getTZ() const { return mTZ; }\n\nprivate:\n BlynkTime mStart;\n BlynkTime mStop;\n long mTZ;\n};\n\n#endif\n","subject":"Switch to Time instead of DateTime","message":"Switch to Time instead of DateTime\n","lang":"C","license":"mit","repos":"ivankravets\/blynk-library,blynkkk\/blynk-library,blynkkk\/blynk-library,ivankravets\/blynk-library,blynkkk\/blynk-library,blynkkk\/blynk-library,ivankravets\/blynk-library,ivankravets\/blynk-library,ivankravets\/blynk-library,blynkkk\/blynk-library"} {"commit":"c078961dce97d0126188b1d3df96f9af8fd2f00f","old_file":"projects\/com.oracle.truffle.llvm.test\/tests\/c\/truffle-c\/inlineTest\/inline0.c","new_file":"projects\/com.oracle.truffle.llvm.test\/tests\/c\/truffle-c\/inlineTest\/inline0.c","old_contents":"int foo(int a, int b, int c) {\n int arr[5] = { 1, 2, 3, 4, 5 };\n int d = 4;\n int *p = &d;\n return a + b + c + arr[4] + arr[0] + *p;\n}\n\nint main() {\n int a, b, c;\n a = 2;\n b = 1;\n c = 3;\n int d = 4;\n int *p = &d;\n int i;\n for (i = 0; i < 1234567; i++) {\n *p = foo(a, b, c);\n }\n return *p;\n}\n","new_contents":"int foo(int a, int b, int c) {\n int arr[5] = { 1, 2, 3, 4, 5 };\n int d = 4;\n int *p = &d;\n return a + b + c + arr[4] + arr[0] + *p;\n}\n\nint main() {\n int a, b, c;\n a = 2;\n b = 1;\n c = 3;\n int d = 4;\n int *p = &d;\n int i;\n for (i = 0; i < 12345; i++) {\n *p = foo(a, b, c);\n }\n return *p;\n}\n","subject":"Reduce the loop iteration count in test case to reduce the execution time","message":"Reduce the loop iteration count in test case to reduce the execution time\n","lang":"C","license":"bsd-3-clause","repos":"crbb\/sulong,PrinzKatharina\/sulong,lxp\/sulong,lxp\/sulong,PrinzKatharina\/sulong,PrinzKatharina\/sulong,crbb\/sulong,PrinzKatharina\/sulong,crbb\/sulong,crbb\/sulong,lxp\/sulong,lxp\/sulong"} {"commit":"faa2c3b0b4ff1b4d90d897aa15b90b58ce4bdbb6","old_file":"Classes\/LVTFolder.h","new_file":"Classes\/LVTFolder.h","old_contents":"\/\/\n\/\/ LVTFolder.h\n\/\/ LayerVaultAPIClient\n\/\/\n\/\/ Created by Matt Thomas on 12\/4\/13.\n\/\/ Copyright (c) 2013 codecaffeine. All rights reserved.\n\/\/\n\n#import \n#import \"LVTColor.h\"\n\n@interface LVTFolder : MTLModel \n\n@property (readonly, nonatomic, copy) NSString *name;\n@property (nonatomic) LVTColorLabel colorLabel;\n@property (readonly, nonatomic, copy) NSString *path;\n@property (readonly, nonatomic, copy) NSURL *fileURL;\n@property (readonly, nonatomic) NSDate *dateUpdated;\n@property (readonly, nonatomic) NSDate *dateDeleted;\n@property (readonly, nonatomic, copy) NSString *md5;\n@property (readonly, nonatomic, copy) NSURL *url;\n@property (readonly, nonatomic, copy) NSURL *shortURL;\n@property (readonly, nonatomic, copy) NSString *organizationPermalink;\n@property (readonly, nonatomic, copy) NSArray *folders;\n@property (readonly, nonatomic, copy) NSArray *files;\n\n@end\n","new_contents":"\/\/\n\/\/ LVTFolder.h\n\/\/ LayerVaultAPIClient\n\/\/\n\/\/ Created by Matt Thomas on 12\/4\/13.\n\/\/ Copyright (c) 2013 codecaffeine. All rights reserved.\n\/\/\n\n#import \n#import \"LVTColor.h\"\n\n@interface LVTFolder : MTLModel \n\n@property (readonly, nonatomic, copy) NSString *name;\n@property (nonatomic) LVTColorLabel colorLabel;\n@property (readonly, nonatomic, copy) NSString *path;\n@property (readonly, nonatomic, copy) NSURL *fileURL;\n@property (nonatomic) NSDate *dateUpdated;\n@property (readonly, nonatomic) NSDate *dateDeleted;\n@property (readonly, nonatomic, copy) NSString *md5;\n@property (readonly, nonatomic, copy) NSURL *url;\n@property (readonly, nonatomic, copy) NSURL *shortURL;\n@property (readonly, nonatomic, copy) NSString *organizationPermalink;\n@property (readonly, nonatomic, copy) NSArray *folders;\n@property (readonly, nonatomic, copy) NSArray *files;\n\n@end\n","subject":"Allow us to edit this","message":"Allow us to edit this","lang":"C","license":"mit","repos":"layervault\/LayerVaultAPI.objc"} {"commit":"9576c668aea5e0008311950e32c5d03fe496582e","old_file":"libqiprog\/include\/qiprog_usb.h","new_file":"libqiprog\/include\/qiprog_usb.h","old_contents":"","new_contents":"\/*\n * qiprog - Reference implementation of the QiProg protocol\n *\n * Copyright (C) 2013 Alexandru Gagniuc \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#ifndef __QIPROG_USB_H\n#define __QIPROG_USB_H\n\n#include \n\n\/**\n * @brief QiProg USB control request types for Control transfers\n *\n * @note\n * Note that all values transferred over the bus, including those in wValue,\n * wIndex and wLength fields, are LE coded! (The host side API likely translates\n * wLength automatically if necessary, but maybe not wValue and wIndex, and\n * certainly not the data. Check that your bytes are not swapped.)\n *\/\nenum qiprog_usb_ctrl_req_type {\n\tQIPROG_GET_CAPABILITIES = 0x00,\n\tQIPROG_SET_BUS = 0x01,\n\tQIPROG_SET_CLOCK = 0x02,\n\tQIPROG_READ_DEVICE_ID = 0x03,\n\tQIPROG_SET_ADDRESS = 0x04,\n\tQIPROG_SET_ERASE_SIZE = 0x05,\n\tQIPROG_SET_ERASE_COMMAND = 0x06,\n\tQIPROG_SET_WRITE_COMMAND = 0x07,\n\tQIPROG_SET_SPI_TIMING = 0x20,\n\tQIPROG_READ8 = 0x30,\n\tQIPROG_READ16 = 0x31,\n\tQIPROG_READ32 = 0x32,\n\tQIPROG_WRITE8 = 0x33,\n\tQIPROG_WRITE16 = 0x34,\n\tQIPROG_WRITE32 = 0x35,\n\tQIPROG_SET_VDD = 0xf0,\n};\n\n#endif\t\t\t\t\/* __QIPROG_USB_H *\/\n","subject":"Add USB control request definitions","message":"Add USB control request definitions\n\nAdd definitions for the bRequest values in QiProg USB control transactions.\n\nSigned-off-by: Alexandru Gagniuc \n","lang":"C","license":"mit","repos":"mrnuke\/qiprog"} {"commit":"ad83a4669be1681f314f54eee728d69543f9caa4","old_file":"sw\/device\/lib\/dif\/dif_pinmux.c","new_file":"sw\/device\/lib\/dif\/dif_pinmux.c","old_contents":"\/\/ Copyright lowRISC contributors.\n\/\/ Licensed under the Apache License, Version 2.0, see LICENSE for details.\n\/\/ SPDX-License-Identifier: Apache-2.0\n\n#include \"sw\/device\/lib\/dif\/dif_pinmux.h\"\n\n#include \"sw\/device\/lib\/dif\/dif_base.h\"\n\n#include \"pinmux_regs.h\" \/\/ Generated.\n\n\/\/ This just exists to check that the header compiles for now. The actual\n\/\/ implementation is work in progress.\n","new_contents":"\/\/ Copyright lowRISC contributors.\n\/\/ Licensed under the Apache License, Version 2.0, see LICENSE for details.\n\/\/ SPDX-License-Identifier: Apache-2.0\n\n#include \"sw\/device\/lib\/dif\/dif_pinmux.h\"\n\n#include \"sw\/device\/lib\/base\/bitfield.h\"\n#include \"sw\/device\/lib\/dif\/dif_base.h\"\n\n#include \"pinmux_regs.h\" \/\/ Generated.\n\n\/\/ This just exists to check that the header compiles for now. The actual\n\/\/ implementation is work in progress.\n\nOT_WARN_UNUSED_RESULT\ndif_result_t dif_pinmux_input_select(const dif_pinmux_t *pinmux,\n dif_pinmux_index_t peripheral_input,\n dif_pinmux_index_t insel) {\n if (pinmux == NULL || peripheral_input >= PINMUX_PARAM_N_MIO_PERIPH_IN ||\n insel >= (2 + PINMUX_PARAM_N_MIO_PADS)) {\n return kDifBadArg;\n }\n uint32_t reg_offset =\n PINMUX_MIO_PERIPH_INSEL_0_REG_OFFSET + (peripheral_input << 2);\n uint32_t reg_value =\n bitfield_field32_write(0, PINMUX_MIO_PERIPH_INSEL_0_IN_0_FIELD, insel);\n mmio_region_write32(pinmux->base_addr, reg_offset, reg_value);\n return kDifOk;\n}\n","subject":"Add DIF to set pinmux insel","message":"[sw\/pinmux] Add DIF to set pinmux insel\n\nSigned-off-by: Alexander Williams \n","lang":"C","license":"apache-2.0","repos":"lowRISC\/opentitan,lowRISC\/opentitan,lowRISC\/opentitan,lowRISC\/opentitan,lowRISC\/opentitan,lowRISC\/opentitan"} {"commit":"f99f3f4944bb8973899bffc52040c19bb31b6119","old_file":"test\/CFrontend\/exact-div-expr.c","new_file":"test\/CFrontend\/exact-div-expr.c","old_contents":"\/\/ RUN: %llvmgcc -S %s -o - -O | grep ashr\n\/\/ RUN: %llvmgcc -S %s -o - -O | not grep sdiv\n\nint test(int *A, int *B) {\n return A-B;\n}\n","new_contents":"\/\/ RUN: %llvmgcc -S %s -o - -O | grep ashr\n\/\/ RUN: %llvmgcc -S %s -o - -O | not grep sdiv\n\nlong long test(int *A, int *B) {\n return A-B;\n}\n","subject":"Fix for PR1567, which involves a weird bug on non-32bit architectures and silly C type sizes.","message":"Fix for PR1567, which involves a weird bug on non-32bit architectures and silly C type sizes.\n\n\ngit-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@40451 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"apple\/swift-llvm,chubbymaggie\/asap,llvm-mirror\/llvm,llvm-mirror\/llvm,apple\/swift-llvm,dslab-epfl\/asap,GPUOpen-Drivers\/llvm,apple\/swift-llvm,chubbymaggie\/asap,dslab-epfl\/asap,dslab-epfl\/asap,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,apple\/swift-llvm,apple\/swift-llvm,llvm-mirror\/llvm,llvm-mirror\/llvm,llvm-mirror\/llvm,apple\/swift-llvm,chubbymaggie\/asap,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,dslab-epfl\/asap,llvm-mirror\/llvm,dslab-epfl\/asap,apple\/swift-llvm,chubbymaggie\/asap,llvm-mirror\/llvm,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,chubbymaggie\/asap,apple\/swift-llvm,dslab-epfl\/asap,chubbymaggie\/asap,GPUOpen-Drivers\/llvm"} {"commit":"6c7885a58e1d1202fbad71e09d423f8d637e25f8","old_file":"cc1\/tests\/test011.c","new_file":"cc1\/tests\/test011.c","old_contents":"","new_contents":"\/*\nname: TEST011\ndescription: Basic test for goto\noutput:\nF1\nG1\tF1\tmain\n{\n-\nL2\n\tj\tL3\n\tyI\t#I1\nL4\n\tyI\t#I0\nL3\nL5\n\tj\tL4\n\tyI\t#I1\n}\n*\/\n\n#line 1\n\nint\nmain() {\n\tstart:\n\t\tgoto next;\n\t\treturn 1;\n\tsuccess:\n\t\treturn 0;\n\tnext:\n\tfoo:\n\t\tgoto success;\n\t\treturn 1;\n}\n","subject":"Add baisc test for goto","message":"Add baisc test for goto\n","lang":"C","license":"mit","repos":"8l\/scc,k0gaMSX\/kcc,k0gaMSX\/scc,k0gaMSX\/scc,8l\/scc,k0gaMSX\/kcc,8l\/scc,k0gaMSX\/scc"} {"commit":"ffeaf8d4204a555cb95858839378f36d0c5cc69e","old_file":"VENCore\/VENCore.h","new_file":"VENCore\/VENCore.h","old_contents":"@import Foundation;\n\n#import \n#import \n#import \n#import \n#import \n#import \n\nextern NSString *const VENErrorDomainCore;\n\ntypedef NS_ENUM(NSInteger, VENCoreErrorCode) {\n VENCoreErrorCodeNoDefaultCore,\n VENCoreErrorCodeNoAccessToken\n};\n\n@interface VENCore : NSObject\n\n@property (strong, nonatomic) VENHTTP *httpClient;\n@property (strong, nonatomic) NSString *accessToken;\n\n\n\/**\n * Sets the shared core object.\n * @param core The core object to share.\n *\/\n+ (void)setDefaultCore:(VENCore *)core;\n\n\n\/**\n * Returns the shared core object.\n * @return A VENCore object.\n *\/\n+ (instancetype)defaultCore;\n\n\n\/**\n * Sets the core object's access token.\n *\/\n- (void)setAccessToken:(NSString *)accessToken;\n\n@end\n","new_contents":"@import Foundation;\n\n#import \n#import \n#import \n#import \n#import \n#import \n#import \n#import \n#import \n#import \n#import \n\nextern NSString *const VENErrorDomainCore;\n\ntypedef NS_ENUM(NSInteger, VENCoreErrorCode) {\n VENCoreErrorCodeNoDefaultCore,\n VENCoreErrorCodeNoAccessToken\n};\n\n@interface VENCore : NSObject\n\n@property (strong, nonatomic) VENHTTP *httpClient;\n@property (strong, nonatomic) NSString *accessToken;\n\n\n\/**\n * Sets the shared core object.\n * @param core The core object to share.\n *\/\n+ (void)setDefaultCore:(VENCore *)core;\n\n\n\/**\n * Returns the shared core object.\n * @return A VENCore object.\n *\/\n+ (instancetype)defaultCore;\n\n\n\/**\n * Sets the core object's access token.\n *\/\n- (void)setAccessToken:(NSString *)accessToken;\n\n@end\n","subject":"Add formerly private headers to the umbrella header","message":"Add formerly private headers to the umbrella header\n","lang":"C","license":"mit","repos":"venmo\/VENCore"} {"commit":"20fa76952f07ba3538e7528444bdbf17a5433099","old_file":"c_solutions_1-10\/Euler_4.c","new_file":"c_solutions_1-10\/Euler_4.c","old_contents":"#include \"euler_util.h\"\n\n#include \n\n#define MAX 7 \n\n\nint main(int argc, char *argv[]) \n{\n float start = timeit();\n char product[MAX] = { '\\0' };\n int high = 0;\n\n for (int x=100; x < 1000; x++) {\n for (int y=x; y < 1000; y++) {\n\n int canidate = x * y;\n size_t int_len = snprintf(product, MAX, \"%d\", canidate);\n int head = 0, tail = int_len - 1;\n for (;head < tail && product[head] == product[tail]; head++, tail--)\n ;\n if (head > tail && canidate > high)\n high = canidate;\n }\n }\n\n\n float stop = timeit();\n\n printf(\"Answer: %d\\n\", high);\n printf(\"Time: %.8f\\n\", stop - start);\n\n return 0;\n}\n\n\n","new_contents":"#include \"euler_util.h\"\n\n#include \n\n#define MAX 7 \n\n\nint main(int argc, char *argv[]) \n{\n float start = timeit();\n char product[MAX] = { '\\0' };\n int high = 0;\n\n for (int x=100; x < 1000; x++) {\n for (int y=x; y < 1000; y++) {\n\n int canidate = x * y;\n if (canidate < high)\n continue;\n\n size_t int_len = snprintf(product, MAX, \"%d\", canidate);\n int head = 0, tail = int_len - 1;\n for (;head < tail && product[head] == product[tail]; head++, tail--)\n ;\n if (head > tail)\n high = canidate;\n }\n }\n\n\n float stop = timeit();\n\n printf(\"Answer: %d\\n\", high);\n printf(\"Time: %.8f\\n\", stop - start);\n\n return 0;\n}\n\n\n","subject":"Test against high before palindrome check down to ~0.01","message":"Test against high before palindrome check down to ~0.01\n","lang":"C","license":"mit","repos":"tijko\/Project-Euler,tijko\/Project-Euler,tijko\/Project-Euler,tijko\/Project-Euler,tijko\/Project-Euler,tijko\/Project-Euler,tijko\/Project-Euler,tijko\/Project-Euler"} {"commit":"c09fa15de38e00b487e7aa07ba65882d3cb9d635","old_file":"src\/c\/lib\/colors.h","new_file":"src\/c\/lib\/colors.h","old_contents":"\/*\n * Copyright (c) 2016 Jan Hoffmann\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#pragma once\n\n\n#define COLOR_WINDOW_BACKGROUND GColorWhite\n#define COLOR_WINDOW_FOREGROUND GColorBlack\n\n#define COLOR_WINDOW_PROGRESS_BACKGROUND PBL_IF_COLOR_ELSE(GColorLightGray,GColorWhite)\n#define COLOR_LAYER_PROGRESS_BACKGROUND PBL_IF_COLOR_ELSE(GColorBlack,GColorWhite)\n#define COLOR_LAYER_PROGRESS_FOREGROUND PBL_IF_COLOR_ELSE(GColorWhite,GColorBlack)\n\n#define COLOR_WINDOW_ERROR_BACKGROUND PBL_IF_COLOR_ELSE(GColorCobaltBlue,GColorBlack)\n#define COLOR_WINDOW_ERROR_FOREGROUND GColorWhite\n\n#define COLOR_MENU_NORMAL_BACKGROUND GColorWhite\n#define COLOR_MENU_NORMAL_FOREGROUND GColorBlack\n\n#define COLOR_MENU_HIGHLIGHT_BACKGROUND PBL_IF_COLOR_ELSE(GColorDarkGray,GColorBlack)\n#define COLOR_MENU_HIGHLIGHT_FOREGROUND PBL_IF_COLOR_ELSE(GColorWhite,GColorWhite)\n","new_contents":"\/*\n * Copyright (c) 2016 Jan Hoffmann\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#pragma once\n\n\n#define COLOR_WINDOW_BACKGROUND GColorWhite\n#define COLOR_WINDOW_FOREGROUND GColorBlack\n\n#define COLOR_WINDOW_PROGRESS_BACKGROUND PBL_IF_COLOR_ELSE(GColorLightGray,GColorWhite)\n#define COLOR_LAYER_PROGRESS_BACKGROUND PBL_IF_COLOR_ELSE(GColorBlack,GColorWhite)\n#define COLOR_LAYER_PROGRESS_FOREGROUND PBL_IF_COLOR_ELSE(GColorWhite,GColorBlack)\n\n#define COLOR_WINDOW_ERROR_BACKGROUND PBL_IF_COLOR_ELSE(GColorCobaltBlue,GColorBlack)\n#define COLOR_WINDOW_ERROR_FOREGROUND GColorWhite\n\n#define COLOR_MENU_NORMAL_BACKGROUND GColorWhite\n#define COLOR_MENU_NORMAL_FOREGROUND GColorBlack\n\n#define COLOR_MENU_HIGHLIGHT_BACKGROUND PBL_IF_COLOR_ELSE(GColorCobaltBlue,GColorBlack)\n#define COLOR_MENU_HIGHLIGHT_FOREGROUND PBL_IF_COLOR_ELSE(GColorWhite,GColorWhite)\n","subject":"Change color of list selection to dark blue","message":"Change color of list selection to dark blue\n","lang":"C","license":"mpl-2.0","repos":"janh\/mensa-stuttgart,janh\/mensa-stuttgart,janh\/mensa-stuttgart,janh\/mensa-stuttgart"} {"commit":"033dc1c92cf018d396e983d425b821dda420cfff","old_file":"contrib\/pg_xlogdump\/rmgrdesc.c","new_file":"contrib\/pg_xlogdump\/rmgrdesc.c","old_contents":"\/*\n * rmgrdesc.c\n *\n * pg_xlogdump resource managers definition\n *\n * contrib\/pg_xlogdump\/rmgrdesc.c\n *\/\n#define FRONTEND 1\n#include \"postgres.h\"\n\n#include \"access\/clog.h\"\n#include \"access\/gin.h\"\n#include \"access\/gist_private.h\"\n#include \"access\/hash.h\"\n#include \"access\/heapam_xlog.h\"\n#include \"access\/multixact.h\"\n#include \"access\/nbtree.h\"\n#include \"access\/rmgr.h\"\n#include \"access\/spgist.h\"\n#include \"access\/xact.h\"\n#include \"access\/xlog_internal.h\"\n#include \"catalog\/storage_xlog.h\"\n#include \"commands\/dbcommands.h\"\n#include \"commands\/sequence.h\"\n#include \"commands\/tablespace.h\"\n#include \"rmgrdesc.h\"\n#include \"storage\/standby.h\"\n#include \"utils\/relmapper.h\"\n\n#define PG_RMGR(symname,name,redo,desc,startup,cleanup,restartpoint) \\\n\t{ name, desc, },\n\nconst RmgrDescData RmgrDescTable[RM_MAX_ID + 1] = {\n#include \"access\/rmgrlist.h\"\n};\n","new_contents":"\/*\n * rmgrdesc.c\n *\n * pg_xlogdump resource managers definition\n *\n * contrib\/pg_xlogdump\/rmgrdesc.c\n *\/\n#define FRONTEND 1\n#include \"postgres.h\"\n\n#include \"access\/clog.h\"\n#include \"access\/gin.h\"\n#include \"access\/gist_private.h\"\n#include \"access\/hash.h\"\n#include \"access\/heapam_xlog.h\"\n#include \"access\/multixact.h\"\n#include \"access\/nbtree.h\"\n#include \"access\/rmgr.h\"\n#include \"access\/spgist.h\"\n#include \"access\/xact.h\"\n#include \"access\/xlog_internal.h\"\n#include \"catalog\/storage_xlog.h\"\n#include \"commands\/dbcommands.h\"\n#include \"commands\/sequence.h\"\n#include \"commands\/tablespace.h\"\n#include \"rmgrdesc.h\"\n#include \"storage\/standby.h\"\n#include \"utils\/relmapper.h\"\n\n#define PG_RMGR(symname,name,redo,desc,startup,cleanup) \\\n\t{ name, desc, },\n\nconst RmgrDescData RmgrDescTable[RM_MAX_ID + 1] = {\n#include \"access\/rmgrlist.h\"\n};\n","subject":"Fix compilation of pg_xlogdump, now that rm_safe_restartpoint is no more.","message":"Fix compilation of pg_xlogdump, now that rm_safe_restartpoint is no more.\n\nOops. Pointed out by Andres Freund.\n","lang":"C","license":"mpl-2.0","repos":"Postgres-XL\/Postgres-XL,ovr\/postgres-xl,oberstet\/postgres-xl,50wu\/gpdb,greenplum-db\/gpdb,xinzweb\/gpdb,ovr\/postgres-xl,adam8157\/gpdb,jmcatamney\/gpdb,pavanvd\/postgres-xl,ashwinstar\/gpdb,zeroae\/postgres-xl,techdragon\/Postgres-XL,lisakowen\/gpdb,adam8157\/gpdb,lisakowen\/gpdb,jmcatamney\/gpdb,greenplum-db\/gpdb,xinzweb\/gpdb,xinzweb\/gpdb,50wu\/gpdb,Postgres-XL\/Postgres-XL,lisakowen\/gpdb,ovr\/postgres-xl,greenplum-db\/gpdb,greenplum-db\/gpdb,yazun\/postgres-xl,Postgres-XL\/Postgres-XL,ashwinstar\/gpdb,yazun\/postgres-xl,zeroae\/postgres-xl,xinzweb\/gpdb,jmcatamney\/gpdb,pavanvd\/postgres-xl,ashwinstar\/gpdb,pavanvd\/postgres-xl,lisakowen\/gpdb,yazun\/postgres-xl,ashwinstar\/gpdb,techdragon\/Postgres-XL,jmcatamney\/gpdb,adam8157\/gpdb,50wu\/gpdb,xinzweb\/gpdb,lisakowen\/gpdb,lisakowen\/gpdb,zeroae\/postgres-xl,Postgres-XL\/Postgres-XL,Postgres-XL\/Postgres-XL,ovr\/postgres-xl,50wu\/gpdb,greenplum-db\/gpdb,pavanvd\/postgres-xl,jmcatamney\/gpdb,pavanvd\/postgres-xl,greenplum-db\/gpdb,oberstet\/postgres-xl,ashwinstar\/gpdb,ashwinstar\/gpdb,xinzweb\/gpdb,ashwinstar\/gpdb,adam8157\/gpdb,adam8157\/gpdb,50wu\/gpdb,oberstet\/postgres-xl,techdragon\/Postgres-XL,ovr\/postgres-xl,ashwinstar\/gpdb,lisakowen\/gpdb,50wu\/gpdb,oberstet\/postgres-xl,adam8157\/gpdb,jmcatamney\/gpdb,techdragon\/Postgres-XL,xinzweb\/gpdb,greenplum-db\/gpdb,zeroae\/postgres-xl,adam8157\/gpdb,adam8157\/gpdb,xinzweb\/gpdb,yazun\/postgres-xl,greenplum-db\/gpdb,jmcatamney\/gpdb,yazun\/postgres-xl,50wu\/gpdb,zeroae\/postgres-xl,50wu\/gpdb,techdragon\/Postgres-XL,jmcatamney\/gpdb,lisakowen\/gpdb,oberstet\/postgres-xl"} {"commit":"fc7e29bc154d67f627274c657b4157132a1503e8","old_file":"src\/auth\/mycrypt.c","new_file":"src\/auth\/mycrypt.c","old_contents":"#define _XOPEN_SOURCE 4\n#define _XOPEN_SOURCE_EXTENDED 1 \/* 1 needed for AIX *\/\n#define _XOPEN_VERSION 4\n#define _XPG4_2\n#include \n\n#include \"mycrypt.h\"\n\nchar *mycrypt(const char *key, const char *salt)\n{\n\treturn crypt(key, salt);\n}\n","new_contents":"#define _XOPEN_SOURCE 4\n#define _XOPEN_SOURCE_EXTENDED 1 \/* 1 needed for AIX *\/\n#define _XOPEN_VERSION 4\n#define _XPG4_2\n#ifdef CRYPT_USE_XPG6\n# define _XPG6 \/* Some Solaris versions require this, some break with this *\/\n#endif\n#include \n\n#include \"mycrypt.h\"\n\nchar *mycrypt(const char *key, const char *salt)\n{\n\treturn crypt(key, salt);\n}\n","subject":"Add _XPG6 macro if needed..","message":"Add _XPG6 macro if needed..\n","lang":"C","license":"mit","repos":"LTD-Beget\/dovecot,LTD-Beget\/dovecot,LTD-Beget\/dovecot,LTD-Beget\/dovecot,LTD-Beget\/dovecot"} {"commit":"c5b898743a202742847f9738382c9d928b0d8586","old_file":"arch\/arm\/core\/aarch64\/prep_c.c","new_file":"arch\/arm\/core\/aarch64\/prep_c.c","old_contents":"\/*\n * Copyright (c) 2019 Carlo Caione \n *\n * SPDX-License-Identifier: Apache-2.0\n *\/\n\n\/**\n * @file\n * @brief Full C support initialization\n *\n * Initialization of full C support: zero the .bss and call z_cstart().\n *\n * Stack is available in this module, but not the global data\/bss until their\n * initialization is performed.\n *\/\n\n#include \n\nextern FUNC_NORETURN void z_cstart(void);\n\/**\n *\n * @brief Prepare to and run C code\n *\n * This routine prepares for the execution of and runs C code.\n *\n * @return N\/A\n *\/\nvoid z_arm64_prep_c(void)\n{\n\tz_bss_zero();\n\tz_arm64_interrupt_init();\n\tz_cstart();\n\n\tCODE_UNREACHABLE;\n}\n","new_contents":"\/*\n * Copyright (c) 2019 Carlo Caione \n *\n * SPDX-License-Identifier: Apache-2.0\n *\/\n\n\/**\n * @file\n * @brief Full C support initialization\n *\n * Initialization of full C support: zero the .bss and call z_cstart().\n *\n * Stack is available in this module, but not the global data\/bss until their\n * initialization is performed.\n *\/\n\n#include \n#include \n\nextern FUNC_NORETURN void z_cstart(void);\n\nstatic inline void z_arm64_bss_zero(void)\n{\n\tuint64_t *p = (uint64_t *)__bss_start;\n\tuint64_t *end = (uint64_t *)__bss_end;\n\n\twhile (p < end) {\n\t\t*p++ = 0;\n\t}\n}\n\n\/**\n *\n * @brief Prepare to and run C code\n *\n * This routine prepares for the execution of and runs C code.\n *\n * @return N\/A\n *\/\nvoid z_arm64_prep_c(void)\n{\n\tz_arm64_bss_zero();\n\tz_arm64_interrupt_init();\n\tz_cstart();\n\n\tCODE_UNREACHABLE;\n}\n","subject":"Fix alignment fault on z_bss_zero()","message":"aarch64: Fix alignment fault on z_bss_zero()\n\nUsing newlibc with AArch64 is causing an alignement fault in\nz_bss_zero() when the code is run on real hardware (on QEMU the problem\nis not reproducible).\n\nThe main cause is that the memset() function exported by newlibc is\nusing 'DC ZVA' to zero out memory.\n\nWhile this is often a nice optimization, this is causing the issue on\nAArch64 because memset() is being used before the MMU is enabled, and\nwhen the MMU is disabled all data accesses will be treated as\nDevice_nGnRnE.\n\nThis is a problem because quoting from the ARM reference manual: \"If the\nmemory region being zeroed is any type of Device memory, then DC ZVA\ngenerates an Alignment fault which is prioritized in the same way as\nother alignment faults that are determined by the memory type\".\n\nnewlibc tries to be a bit smart about this reading the DCZID_EL0\nregister before deciding whether using 'DC ZVA' or not. While this is a\ngood idea for code running in EL0, currently the Zephyr kernel is\nrunning in EL1. This means that the value of the DCZID_EL0 register is\nactually retrieved from the HCR_EL2.TDZ bit, that is always 0 because\nEL2 is not currently supported \/ enabled. So the 'DC ZVA' instruction is\nunconditionally used in the newlibc memset() implementation.\n\nThe \"standard\" solution for this case is usually to use a different\nmemset routine to be specifically used for two cases: (1) against IO\nmemory or (2) against normal memory but with MMU disabled (which means\nall memory is considered device memory for data accesses).\n\nTo fix this issue in Zephyr we avoid calling memset() when clearing the\nbss, and instead we use a simple loop to zero the memory region.\n\nSigned-off-by: Carlo Caione \n","lang":"C","license":"apache-2.0","repos":"finikorg\/zephyr,galak\/zephyr,galak\/zephyr,Vudentz\/zephyr,nashif\/zephyr,finikorg\/zephyr,finikorg\/zephyr,Vudentz\/zephyr,finikorg\/zephyr,Vudentz\/zephyr,Vudentz\/zephyr,finikorg\/zephyr,nashif\/zephyr,zephyrproject-rtos\/zephyr,nashif\/zephyr,nashif\/zephyr,zephyrproject-rtos\/zephyr,Vudentz\/zephyr,galak\/zephyr,nashif\/zephyr,galak\/zephyr,zephyrproject-rtos\/zephyr,galak\/zephyr,Vudentz\/zephyr,zephyrproject-rtos\/zephyr,zephyrproject-rtos\/zephyr"} {"commit":"6b95983e0c50bc24cb0bca433bd93d00d8de276f","old_file":"src\/eigen_qdebug.h","new_file":"src\/eigen_qdebug.h","old_contents":"#ifndef SRC_EIGEN_QDEBUG_H_\n\n#define SRC_EIGEN_QDEBUG_H_\n\n#include \n#include \n#include \n\nQDebug operator<<(QDebug dbg, const Eigen::Vector2f &vector)\n{\n dbg << \"[\" << vector.x() << \"|\" << vector.y() << \"]\";\n\n return dbg.maybeSpace();\n}\n\nQDebug operator<<(QDebug dbg, const Eigen::Vector3f &vector)\n{\n dbg << \"[\" << vector.x() << \"|\" << vector.y() << \"|\" << vector.z() << \"]\";\n\n return dbg.maybeSpace();\n}\n\nQDebug operator<<(QDebug dbg, const Eigen::Matrix4f &vector)\n{\n const Eigen::IOFormat cleanFormat(4, 0, \", \", \"\\n\", \"[\", \"]\");\n std::stringstream stream;\n stream << vector.format(cleanFormat);\n dbg << stream.str().c_str();\n\n return dbg.maybeSpace();\n}\n\n#endif \/\/ SRC_EIGEN_QDEBUG_H_\n","new_contents":"#ifndef SRC_EIGEN_QDEBUG_H_\n\n#define SRC_EIGEN_QDEBUG_H_\n\n#include \n#include \n#include \n\nQDebug operator<<(QDebug dbg, const Eigen::Vector2f &vector)\n{\n dbg << \"[\" << vector.x() << \"|\" << vector.y() << \"]\";\n\n return dbg.maybeSpace();\n}\n\nQDebug operator<<(QDebug dbg, const Eigen::Vector3f &vector)\n{\n dbg << \"[\" << vector.x() << \"|\" << vector.y() << \"|\" << vector.z() << \"]\";\n\n return dbg.maybeSpace();\n}\n\nQDebug operator<<(QDebug dbg, const Eigen::Vector4f &vector)\n{\n dbg << \"[\" << vector.x() << \"|\" << vector.y() << \"|\" << vector.z() << \"|\"\n << vector.w() << \"]\";\n\n return dbg.maybeSpace();\n}\n\nQDebug operator<<(QDebug dbg, const Eigen::Matrix4f &vector)\n{\n const Eigen::IOFormat cleanFormat(4, 0, \", \", \"\\n\", \"[\", \"]\");\n std::stringstream stream;\n stream << vector.format(cleanFormat);\n dbg << stream.str().c_str();\n\n return dbg.maybeSpace();\n}\n\n#endif \/\/ SRC_EIGEN_QDEBUG_H_\n","subject":"Add overload for qDebug << and Eigen::Vector4f.","message":"Add overload for qDebug << and Eigen::Vector4f.\n","lang":"C","license":"mit","repos":"Christof\/voly-labeller,Christof\/voly-labeller,Christof\/voly-labeller,Christof\/voly-labeller"} {"commit":"34f3d3bba81d1714588ed7a0daf55d0b05a653f0","old_file":"src\/common\/halloc\/src\/macros.h","new_file":"src\/common\/halloc\/src\/macros.h","old_contents":"\/*\n *\tThis file is a part of Hierarchical Allocator library.\n *\tCopyright (c) 2004-2011 Alex Pankratov. All rights reserved.\n *\n *\thttp:\/\/swapped.cc\/halloc\n *\/\n\n\/*\n *\tThe program is distributed under terms of BSD license. \n *\tYou can obtain the copy of the license by visiting:\n *\n *\thttp:\/\/www.opensource.org\/licenses\/bsd-license.php\n *\/\n\n#ifndef _LIBP_MACROS_H_\n#define _LIBP_MACROS_H_\n\n#include \/* offsetof *\/\n\n\/*\n \trestore pointer to the structure by a pointer to its field\n *\/\n#define structof(p,t,f) ((t*)(- offsetof(t,f) + (void*)(p)))\n\n#endif\n\n","new_contents":"\/*\n *\tThis file is a part of Hierarchical Allocator library.\n *\tCopyright (c) 2004-2011 Alex Pankratov. All rights reserved.\n *\n *\thttp:\/\/swapped.cc\/halloc\n *\/\n\n\/*\n *\tThe program is distributed under terms of BSD license. \n *\tYou can obtain the copy of the license by visiting:\n *\n *\thttp:\/\/www.opensource.org\/licenses\/bsd-license.php\n *\/\n\n#ifndef _LIBP_MACROS_H_\n#define _LIBP_MACROS_H_\n\n#include \/* offsetof *\/\n#include \/* intptr_t *\/\n\n\/*\n \trestore pointer to the structure by a pointer to its field\n *\/\n#define structof(p,t,f) ((t*)(- offsetof(t,f) + (intptr_t)(p)))\n\n#endif\n\n","subject":"Fix pointer cast into integer type.","message":"Fix pointer cast into integer type.\n","lang":"C","license":"apache-2.0","repos":"fintler\/tomatodb,fintler\/tomatodb,fintler\/tomatodb"} {"commit":"a502e4bfc8c3a016f764df0c4baf9987ba7af1de","old_file":"src\/config\/mpich2.h","new_file":"src\/config\/mpich2.h","old_contents":"#ifndef PyMPI_CONFIG_MPICH2_H\n#define PyMPI_CONFIG_MPICH2_H\n\n#ifdef MS_WINDOWS\n#define PyMPI_MISSING_MPI_TYPE_CREATE_F90_INTEGER 1\n#define PyMPI_MISSING_MPI_TYPE_CREATE_F90_REAL 1\n#define PyMPI_MISSING_MPI_TYPE_CREATE_F90_COMPLEX 1\n#endif\n\n#ifndef ROMIO_VERSION\n#include \"mpich2io.h\"\n#endif \/* !ROMIO_VERSION *\/\n\n#endif \/* !PyMPI_CONFIG_MPICH2_H *\/\n","new_contents":"#ifndef PyMPI_CONFIG_MPICH2_H\n#define PyMPI_CONFIG_MPICH2_H\n\n#ifdef MS_WINDOWS\n#if !defined(MPICH2_NUMVERSION) || (MPICH2_NUMVERSION < 10100000)\n#define PyMPI_MISSING_MPI_TYPE_CREATE_F90_INTEGER 1\n#define PyMPI_MISSING_MPI_TYPE_CREATE_F90_REAL 1\n#define PyMPI_MISSING_MPI_TYPE_CREATE_F90_COMPLEX 1\n#endif \/* MPICH2 < 1.1.0 *\/\n#endif \/* MS_WINDOWS *\/\n\n#ifndef ROMIO_VERSION\n#include \"mpich2io.h\"\n#endif \/* !ROMIO_VERSION *\/\n\n#endif \/* !PyMPI_CONFIG_MPICH2_H *\/\n","subject":"Update for MPICH2 1.1 on Windows","message":"Update for MPICH2 1.1 on Windows","lang":"C","license":"bsd-2-clause","repos":"mpi4py\/mpi4py,pressel\/mpi4py,pressel\/mpi4py,mpi4py\/mpi4py,mpi4py\/mpi4py,pressel\/mpi4py,pressel\/mpi4py"} {"commit":"c49c79960407e33d6ba47d5de0c78500cbf3205f","old_file":"src\/cpp2\/expr_tok.h","new_file":"src\/cpp2\/expr_tok.h","old_contents":"#ifndef EXPR_TOK_H\n#define EXPR_TOK_H\n\nextern expr_n tok_cur_num;\n\nextern enum tok\n{\n\ttok_ident = -1,\n\ttok_num = -2,\n\ttok_eof = 0,\n\n\ttok_lparen = '(',\n\ttok_rparen = ')',\n\n\t\/* operators returned as char-value,\n\t * except for double-char ops\n\t *\/\n\n\t\/* binary *\/\n\ttok_multiply = '*',\n\ttok_divide = '\/',\n\ttok_modulus = '%',\n\ttok_plus = '+',\n\ttok_minus = '-',\n\ttok_xor = '^',\n\ttok_or = '|',\n\ttok_and = '&',\n\ttok_orsc = -1,\n\ttok_andsc = -2,\n\ttok_shiftl = -3,\n\ttok_shiftr = -4,\n\n\t\/* unary - TODO *\/\n\ttok_not = '!',\n\ttok_bnot = '~',\n\n\t\/* comparison *\/\n\ttok_eq = -5,\n\ttok_ne = -6,\n\ttok_le = -7,\n\ttok_lt = '<',\n\ttok_ge = -8,\n\ttok_gt = '>',\n\n\t\/* ternary *\/\n\ttok_question = '?',\n\ttok_colon = ':',\n\n#define MIN_OP -8\n} tok_cur;\n\nvoid tok_next(void);\nvoid tok_begin(char *);\nconst char *tok_last(void);\n\n#endif\n","new_contents":"#ifndef EXPR_TOK_H\n#define EXPR_TOK_H\n\nextern expr_n tok_cur_num;\n\nextern enum tok\n{\n\ttok_ident = -1,\n\ttok_num = -2,\n\ttok_eof = 0,\n\n\ttok_lparen = '(',\n\ttok_rparen = ')',\n\n\t\/* operators returned as char-value,\n\t * except for double-char ops\n\t *\/\n\n\t\/* binary *\/\n\ttok_multiply = '*',\n\ttok_divide = '\/',\n\ttok_modulus = '%',\n\ttok_plus = '+',\n\ttok_minus = '-',\n\ttok_xor = '^',\n\ttok_or = '|',\n\ttok_and = '&',\n\ttok_orsc = -3,\n\ttok_andsc = -4,\n\ttok_shiftl = -5,\n\ttok_shiftr = -6,\n\n\t\/* unary - TODO *\/\n\ttok_not = '!',\n\ttok_bnot = '~',\n\n\t\/* comparison *\/\n\ttok_eq = -7,\n\ttok_ne = -8,\n\ttok_le = -9,\n\ttok_lt = '<',\n\ttok_ge = -10,\n\ttok_gt = '>',\n\n\t\/* ternary *\/\n\ttok_question = '?',\n\ttok_colon = ':',\n\n#define MIN_OP -10\n} tok_cur;\n\nvoid tok_next(void);\nvoid tok_begin(char *);\nconst char *tok_last(void);\n\n#endif\n","subject":"Fix clash in cpp tokens","message":"Fix clash in cpp tokens\n","lang":"C","license":"mit","repos":"8l\/ucc-c-compiler,8l\/ucc-c-compiler,8l\/ucc-c-compiler,8l\/ucc-c-compiler"} {"commit":"208d638fa4fbf31ba83445861ad13c2e8c72e5f4","old_file":"include\/llvm\/Assembly\/CWriter.h","new_file":"include\/llvm\/Assembly\/CWriter.h","old_contents":"\/\/===-- llvm\/Assembly\/CWriter.h - C Printer for LLVM programs ---*- 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\/\/ This functionality is implemented by the lib\/CWriter library. This library\n\/\/ is used to print C language files to an iostream.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\n#ifndef LLVM_ASSEMBLY_CWRITER_H\n#define LLVM_ASSEMBLY_CWRITER_H\n\n#include \n\nnamespace llvm {\n\nclass Pass;\nPass *createWriteToCPass(std::ostream &o);\n\n} \/\/ End llvm namespace\n\n#endif\n","new_contents":"\/\/===-- llvm\/Assembly\/CWriter.h - C Printer for LLVM programs ---*- 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\/\/ This functionality is implemented by the lib\/CWriter library. This library\n\/\/ is used to print C language files to an iostream.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\n#ifndef LLVM_ASSEMBLY_CWRITER_H\n#define LLVM_ASSEMBLY_CWRITER_H\n\n#include \n\nnamespace llvm {\n\nclass PassManager;\nvoid AddPassesToWriteC(PassManager &PM, std::ostream &o);\n\n} \/\/ End llvm namespace\n\n#endif\n","subject":"Change access to the cwriter","message":"Change access to the cwriter\n\n\ngit-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@11406 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"GPUOpen-Drivers\/llvm,dslab-epfl\/asap,llvm-mirror\/llvm,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,dslab-epfl\/asap,llvm-mirror\/llvm,chubbymaggie\/asap,dslab-epfl\/asap,chubbymaggie\/asap,apple\/swift-llvm,llvm-mirror\/llvm,chubbymaggie\/asap,apple\/swift-llvm,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,chubbymaggie\/asap,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,GPUOpen-Drivers\/llvm,apple\/swift-llvm,chubbymaggie\/asap,apple\/swift-llvm,dslab-epfl\/asap,apple\/swift-llvm,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,apple\/swift-llvm,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,apple\/swift-llvm,apple\/swift-llvm,llvm-mirror\/llvm,chubbymaggie\/asap,llvm-mirror\/llvm,dslab-epfl\/asap"} {"commit":"ac7ac74083f27b98aebc6c2a3d370c609f3e0df5","old_file":"libgnomeui\/gnome-properties.h","new_file":"libgnomeui\/gnome-properties.h","old_contents":"#ifndef GNOME_PROPERTIES_H\n#define GNOME_PROPERTIES_H\n#include \n\nBEGIN_GNOME_DECLS\n\ntypedef struct {\n\tGtkWidget *notebook;\n\n\tGList *props;\n} GnomePropertyConfigurator;\n\n\/* This is the first parameter to the callback function *\/\ntypedef enum {\n\tGNOME_PROPERTY_READ,\n\tGNOME_PROPERTY_WRITE,\n\tGNOME_PROPERTY_APPLY,\n\tGNOME_PROPERTY_SETUP\n} GnomePropertyRequest;\n\nGnomePropertyConfigurator\n *gnome_property_configurator_new (void);\n \nvoid gnome_property_configurator_destroy (GnomePropertyConfigurator *);\nvoid gnome_property_configurator_register (GnomePropertyConfigurator *, \n\t\t\t\t\t int (*callback)(GnomePropertyRequest));\nvoid gnome_property_configurator_setup (GnomePropertyConfigurator *);\ngint gnome_property_configurator_request (GnomePropertyConfigurator *,\n\t\t\t\t\t GnomePropertyRequest);\nvoid gnome_property_configurator_request_foreach (GnomePropertyConfigurator *th,\n\t\t\t\t\t\t GnomePropertyRequest r);\n\nEND_GNOME_DECLS\n\n#endif\n","new_contents":"#ifndef GNOME_PROPERTIES_H\n#define GNOME_PROPERTIES_H\n#include \n\nBEGIN_GNOME_DECLS\n\ntypedef struct {\n\tGtkWidget *notebook;\n GtkWidget *property_box;\n\tGList *props;\n} GnomePropertyConfigurator;\n\n\/* This is the first parameter to the callback function *\/\ntypedef enum {\n\tGNOME_PROPERTY_READ,\n\tGNOME_PROPERTY_WRITE,\n\tGNOME_PROPERTY_APPLY,\n\tGNOME_PROPERTY_SETUP\n} GnomePropertyRequest;\n\nGnomePropertyConfigurator\n *gnome_property_configurator_new (void);\n \nvoid gnome_property_configurator_destroy (GnomePropertyConfigurator *);\nvoid gnome_property_configurator_register (GnomePropertyConfigurator *, \n\t\t\t\t\t int (*callback)(GnomePropertyRequest));\nvoid gnome_property_configurator_setup (GnomePropertyConfigurator *);\ngint gnome_property_configurator_request (GnomePropertyConfigurator *,\n\t\t\t\t\t GnomePropertyRequest);\nvoid gnome_property_configurator_request_foreach (GnomePropertyConfigurator *th,\n\t\t\t\t\t\t GnomePropertyRequest r);\n\nEND_GNOME_DECLS\n\n#endif\n","subject":"Add a property box field so this stuff compiles","message":"Add a property box field so this stuff compiles\n","lang":"C","license":"lgpl-2.1","repos":"Distrotech\/libgnomeui,Distrotech\/libgnomeui,Distrotech\/libgnomeui"} {"commit":"47ccf13ad405d2f0821b71eb3330c60ff209a172","old_file":"test2\/inline\/inline_addr_arg.c","new_file":"test2\/inline\/inline_addr_arg.c","old_contents":"","new_contents":"\/\/ RUN: %ocheck 3 %s\n\n__attribute((always_inline))\ninline f(int x)\n{\n\tint i = x;\n\t&x;\n\ti++;\n\treturn i;\n}\n\nmain()\n{\n\tint added = 5;\n\n\tadded = f(2);\n\n\treturn added;\n}\n","subject":"Test for lvalue-argument function inlinling","message":"Test for lvalue-argument function inlinling\n","lang":"C","license":"mit","repos":"bobrippling\/ucc-c-compiler,bobrippling\/ucc-c-compiler,bobrippling\/ucc-c-compiler"} {"commit":"af3145a1ba032338340c08d2c4922df2add97702","old_file":"tests\/testParseNativeHCIDump.c","new_file":"tests\/testParseNativeHCIDump.c","old_contents":"","new_contents":"#include \n#include \n#include \n#include \n\n\nstatic int UUID_SIZE = 16;\nchar toHexChar(int b) {\n char c;\n if(b < 10)\n c = '0' + b;\n else\n c = 'A' + b - 10;\n return c;\n}\nint main(int argc, char **argv) {\n int b = (0xa4 & 0xf0) >> 4;\n printf(\"c0=%c, %d\\n\", toHexChar(b), b);\n b = (0xa4 & 0x0f);\n printf(\"c1=%c, %d\\n\", toHexChar(b), b);\n \/\/ The raw data from the manufacturer's data packate\n uint8_t data[] = {0x4c,0x0,\n 0x2,0x15,\n 0xa4,0x95,0xde,0xad,0xc5,0xb1,0x4b,0x44,0xb5,\n 0x12,0x13,0x70,0xf0,0x2d,0x74,0xde,0x30,0x39,0xff,0xff,\n 0xc5};\n \/\/ Get the manufacturer code from the first two octets\n int index = 0;\n int manufacturer = 256 * data[index++] + data[index++];\n\n \/\/ Get the first octet of the beacon code\n int code = 256 * data[index++] + data[index++];\n\n \/\/ Get the proximity uuid\n char uuid[UUID_SIZE+1];\n int n;\n for(n = 0; n < UUID_SIZE; n += 2, index ++) {\n int b0 = (data[index] & 0xf0) >> 4;\n int b1 = data[index] & 0x0f;\n char c0 = toHexChar(b0);\n char c1 = toHexChar(b1);\n uuid[n] = c0;\n uuid[n+1] = c1;\n }\n uuid[UUID_SIZE] = '\\0';\n\n \/\/ Get the beacon major id\n int major = 256 * data[index++] + data[index++];\n \/\/ Get the beacon minor id\n int minor = 256 * data[index++] + data[index++];\n\n \/\/ Get the transmitted power, which is encoded as the 2's complement of the calibrated Tx Power\n int power = data[index] - 256;\n\n printf(\"uuid=%s, manufacturer=%d, code=%d, major=%d, minor=%d, power=%d\\n\", uuid, manufacturer, code, major, minor, power);\n}","subject":"Test the parse of the raw binary data seen in the hcidump integration for a manufacturer AD structure.","message":"Test the parse of the raw binary data seen in the hcidump integration for a manufacturer AD structure.\n","lang":"C","license":"apache-2.0","repos":"starksm64\/NativeRaspberryPiBeaconParser,starksm64\/NativeRaspberryPiBeaconParser,starksm64\/NativeRaspberryPiBeaconParser,starksm64\/NativeRaspberryPiBeaconParser,starksm64\/NativeRaspberryPiBeaconParser"} {"commit":"8dbc6a0bccf04bb4d2cbc7a403c607641a2aaa25","old_file":"optional\/capi\/ext\/proc_spec.c","new_file":"optional\/capi\/ext\/proc_spec.c","old_contents":"#include \n\n#include \"ruby.h\"\n#include \"rubyspec.h\"\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n#ifdef HAVE_RB_PROC_NEW\nVALUE concat_func(VALUE args) {\n int i;\n char buffer[500] = {0};\n if (TYPE(args) != T_ARRAY) return Qnil;\n for(i = 0; i < RARRAY_LEN(args); ++i) {\n VALUE v = RARRAY_PTR(args)[i];\n strcat(buffer, StringValuePtr(v));\n strcat(buffer, \"_\");\n }\n buffer[strlen(buffer) - 1] = 0;\n return rb_str_new2(buffer);\n\n}\n\nVALUE sp_underline_concat_proc(VALUE self) {\n return rb_proc_new(concat_func, Qnil);\n}\n#endif\n\nvoid Init_proc_spec() {\n VALUE cls;\n cls = rb_define_class(\"CApiProcSpecs\", rb_cObject);\n\n#ifdef HAVE_RB_PROC_NEW\n rb_define_method(cls, \"underline_concat_proc\", sp_underline_concat_proc, 0);\n#endif\n}\n\n#ifdef __cplusplus\n}\n#endif\n","new_contents":"#include \n\n#include \"ruby.h\"\n#include \"rubyspec.h\"\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n#ifdef HAVE_RB_PROC_NEW\nVALUE concat_func(VALUE args) {\n int i;\n char buffer[500] = {0};\n if (TYPE(val) != T_ARRAY) return Qnil;\n for(i = 0; i < RARRAY_LEN(args); ++i) {\n VALUE v = RARRAY_PTR(args)[i];\n strcat(buffer, StringValuePtr(v));\n strcat(buffer, \"_\");\n }\n buffer[strlen(buffer) - 1] = 0;\n return rb_str_new2(buffer);\n\n}\n\nVALUE sp_underline_concat_proc(VALUE self) {\n return rb_proc_new(concat_func, Qnil);\n}\n#endif\n\nvoid Init_proc_spec() {\n VALUE cls;\n cls = rb_define_class(\"CApiProcSpecs\", rb_cObject);\n\n#ifdef HAVE_RB_PROC_NEW\n rb_define_method(cls, \"underline_concat_proc\", sp_underline_concat_proc, 0);\n#endif\n}\n\n#ifdef __cplusplus\n}\n#endif\n","subject":"Revert \"Fix typo in the commit a5312c77.\"","message":"Revert \"Fix typo in the commit a5312c77.\"\n\nThis reverts commit 401825d6045ab8e3bd1514404e7c326a045a92ae.\n\nSee the following revert for an explanation.\n","lang":"C","license":"mit","repos":"calavera\/rubyspec,calavera\/rubyspec"} {"commit":"e38845ec04ed22b4e2190695bd0395a90dcc1794","old_file":"lib\/Common\/ChakraCoreVersion.h","new_file":"lib\/Common\/ChakraCoreVersion.h","old_contents":"\/\/-------------------------------------------------------------------------------------------------------\n\/\/ Copyright (C) Microsoft. All rights reserved.\n\/\/ Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.\n\/\/-------------------------------------------------------------------------------------------------------\n#pragma once\n\n#define CHAKRA_CORE_MAJOR_VERSION 1\n#define CHAKRA_CORE_MINOR_VERSION 3\n#define CHAKRA_CORE_VERSION_RELEASE 0\n#define CHAKRA_CORE_VERSION_PRERELEASE 0\n#define CHAKRA_CORE_VERSION_RELEASE_QFE 0\n\n#define CHAKRA_VERSION_RELEASE 0\n\n\/\/ NOTE: need to update the GUID in ByteCodeCacheReleaseFileVersion.h as well\n","new_contents":"\/\/-------------------------------------------------------------------------------------------------------\n\/\/ Copyright (C) Microsoft. All rights reserved.\n\/\/ Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.\n\/\/-------------------------------------------------------------------------------------------------------\n#pragma once\n\n#define CHAKRA_CORE_MAJOR_VERSION 1\n#define CHAKRA_CORE_MINOR_VERSION 4\n#define CHAKRA_CORE_VERSION_RELEASE 0\n#define CHAKRA_CORE_VERSION_PRERELEASE 0\n#define CHAKRA_CORE_VERSION_RELEASE_QFE 0\n\n#define CHAKRA_VERSION_RELEASE 0\n\n\/\/ NOTE: need to update the GUID in ByteCodeCacheReleaseFileVersion.h as well\n","subject":"Update master branch version to 1.4","message":"Update master branch version to 1.4\n","lang":"C","license":"mit","repos":"mrkmarron\/ChakraCore,mrkmarron\/ChakraCore,mrkmarron\/ChakraCore,Microsoft\/ChakraCore,mrkmarron\/ChakraCore,Microsoft\/ChakraCore,Microsoft\/ChakraCore,mrkmarron\/ChakraCore,Microsoft\/ChakraCore,Microsoft\/ChakraCore,Microsoft\/ChakraCore,mrkmarron\/ChakraCore,mrkmarron\/ChakraCore"} {"commit":"eadd77272d857d9478baaf94833210e9af5498ed","old_file":"Engine\/source\/gfx\/gl\/tGL\/tGL.h","new_file":"Engine\/source\/gfx\/gl\/tGL\/tGL.h","old_contents":"\/\/-----------------------------------------------------------------------------\n\/\/ Copyright (c) 2012 GarageGames, LLC\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\n\/\/ deal in the Software without restriction, including without limitation the\n\/\/ rights to use, copy, modify, merge, publish, distribute, sublicense, and\/or\n\/\/ sell 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\n\/\/ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n\/\/ IN THE SOFTWARE.\n\/\/-----------------------------------------------------------------------------\n\n#ifndef T_GL_H\n#define T_GL_H\n#include \"GL\/glew.h\"\n\n\/\/ Slower but reliably detects extensions\n#define gglHasExtension(EXTENSION) glewGetExtension(\"GL_\" # EXTENSION)\n\n#endif\n\n","new_contents":"\/\/-----------------------------------------------------------------------------\n\/\/ Copyright (c) 2012 GarageGames, LLC\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\n\/\/ deal in the Software without restriction, including without limitation the\n\/\/ rights to use, copy, modify, merge, publish, distribute, sublicense, and\/or\n\/\/ sell 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\n\/\/ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n\/\/ IN THE SOFTWARE.\n\/\/-----------------------------------------------------------------------------\n\n#ifndef T_GL_H\n#define T_GL_H\n#include \"GL\/glew.h\"\n\n#if defined (TORQUE_OS_WIN)\n\/\/ This doesn't work on Mesa drivers.\n#define gglHasExtension(EXTENSION) GLEW_##EXTENSION\n#else\n\/\/ Slower but reliably detects extensions on Mesa.\n#define gglHasExtension(EXTENSION) glewGetExtension(\"GL_\" # EXTENSION)\n#endif\n\n#endif\n\n","subject":"Add @Azaezel's exception for Win32","message":"Add @Azaezel's exception for Win32\n\n\"This chunk causes issues on the win8.1\/non-SDL side.\"\n","lang":"C","license":"mit","repos":"Bloodknight\/Torque3D,GarageGames\/Torque3D,Will-of-the-Wisp\/Torque3D,Azaezel\/Torque3D,lukaspj\/Speciality,chaigler\/Torque3D,rextimmy\/Torque3D,Azaezel\/Torque3D,Azaezel\/Torque3D,aaravamudan2014\/Torque3D,John3\/Torque3D,Will-of-the-Wisp\/Torque3D,GarageGames\/Torque3D,Will-of-the-Wisp\/Torque3D,Bloodknight\/Torque3D,Duion\/Torque3D,Torque3D-GameEngine\/Torque3D,aaravamudan2014\/Torque3D,chaigler\/Torque3D,Phantom139\/Torque3D,Phantom139\/Torque3D,rextimmy\/Torque3D,lukaspj\/Speciality,rextimmy\/Torque3D,John3\/Torque3D,Phantom139\/Torque3D,rextimmy\/Torque3D,elfprince13\/Torque3D,Bloodknight\/Torque3D,Bloodknight\/Torque3D,ValtoGameEngines\/Torque3D,elfprince13\/Torque3D,ValtoGameEngines\/Torque3D,GarageGames\/Torque3D,Bloodknight\/Torque3D,aaravamudan2014\/Torque3D,Duion\/Torque3D,John3\/Torque3D,Torque3D-GameEngine\/Torque3D,Torque3D-GameEngine\/Torque3D,Torque3D-GameEngine\/Torque3D,GarageGames\/Torque3D,Will-of-the-Wisp\/Torque3D,FITTeamIndecisive\/Torque3D,aaravamudan2014\/Torque3D,Bloodknight\/Torque3D,chaigler\/Torque3D,elfprince13\/Torque3D,chaigler\/Torque3D,JeffProgrammer\/Torque3D,lukaspj\/Speciality,elfprince13\/Torque3D,Phantom139\/Torque3D,Will-of-the-Wisp\/Torque3D,Azaezel\/Torque3D,Phantom139\/Torque3D,John3\/Torque3D,Torque3D-GameEngine\/Torque3D,JeffProgrammer\/Torque3D,Phantom139\/Torque3D,lukaspj\/Speciality,Duion\/Torque3D,ValtoGameEngines\/Torque3D,elfprince13\/Torque3D,ValtoGameEngines\/Torque3D,JeffProgrammer\/Torque3D,ValtoGameEngines\/Torque3D,GarageGames\/Torque3D,Azaezel\/Torque3D,John3\/Torque3D,Azaezel\/Torque3D,Torque3D-GameEngine\/Torque3D,rextimmy\/Torque3D,Will-of-the-Wisp\/Torque3D,Torque3D-GameEngine\/Torque3D,Phantom139\/Torque3D,GarageGames\/Torque3D,aaravamudan2014\/Torque3D,aaravamudan2014\/Torque3D,Azaezel\/Torque3D,FITTeamIndecisive\/Torque3D,lukaspj\/Speciality,FITTeamIndecisive\/Torque3D,John3\/Torque3D,Will-of-the-Wisp\/Torque3D,GarageGames\/Torque3D,Bloodknight\/Torque3D,JeffProgrammer\/Torque3D,Will-of-the-Wisp\/Torque3D,JeffProgrammer\/Torque3D,FITTeamIndecisive\/Torque3D,elfprince13\/Torque3D,FITTeamIndecisive\/Torque3D,Duion\/Torque3D,chaigler\/Torque3D,elfprince13\/Torque3D,elfprince13\/Torque3D,John3\/Torque3D,Bloodknight\/Torque3D,rextimmy\/Torque3D,aaravamudan2014\/Torque3D,Azaezel\/Torque3D,Phantom139\/Torque3D,JeffProgrammer\/Torque3D,rextimmy\/Torque3D,John3\/Torque3D,aaravamudan2014\/Torque3D,John3\/Torque3D,FITTeamIndecisive\/Torque3D,lukaspj\/Speciality,rextimmy\/Torque3D,Duion\/Torque3D,chaigler\/Torque3D,Azaezel\/Torque3D,Bloodknight\/Torque3D,Azaezel\/Torque3D,GarageGames\/Torque3D,Torque3D-GameEngine\/Torque3D,Will-of-the-Wisp\/Torque3D,ValtoGameEngines\/Torque3D,aaravamudan2014\/Torque3D,FITTeamIndecisive\/Torque3D,Will-of-the-Wisp\/Torque3D,Duion\/Torque3D,ValtoGameEngines\/Torque3D,ValtoGameEngines\/Torque3D,rextimmy\/Torque3D,Duion\/Torque3D,GarageGames\/Torque3D,FITTeamIndecisive\/Torque3D,elfprince13\/Torque3D,ValtoGameEngines\/Torque3D,rextimmy\/Torque3D,JeffProgrammer\/Torque3D,chaigler\/Torque3D,Phantom139\/Torque3D,lukaspj\/Speciality,Duion\/Torque3D,Will-of-the-Wisp\/Torque3D,lukaspj\/Speciality,ValtoGameEngines\/Torque3D,FITTeamIndecisive\/Torque3D,Duion\/Torque3D,Phantom139\/Torque3D,lukaspj\/Speciality,Torque3D-GameEngine\/Torque3D,Duion\/Torque3D,lukaspj\/Speciality,FITTeamIndecisive\/Torque3D,aaravamudan2014\/Torque3D,chaigler\/Torque3D,Torque3D-GameEngine\/Torque3D,John3\/Torque3D,JeffProgrammer\/Torque3D,chaigler\/Torque3D,elfprince13\/Torque3D"} {"commit":"2b78b93cc76b65b4f388d29431f70112c784d78d","old_file":"src\/graph.h","new_file":"src\/graph.h","old_contents":"#ifndef MOLCORE_GRAPH_H\n#define MOLCORE_GRAPH_H\n\n#include \"molcore.h\"\n\n#include \n\nnamespace MolCore {\n\nclass MOLCORE_EXPORT Graph\n{\npublic:\n \/\/ construction and destruction\n Graph();\n Graph(size_t size);\n ~Graph();\n\n \/\/ properties\n void setSize(size_t size);\n size_t size() const;\n bool isEmpty() const;\n void clear();\n\n \/\/ structure\n size_t addVertex();\n void removeVertex(size_t index);\n size_t vertexCount() const;\n void addEdge(size_t a, size_t b);\n void removeEdge(size_t a, size_t b);\n void removeEdges();\n void removeEdges(size_t index);\n size_t edgeCount() const;\n const std::vector& neighbors(size_t index) const;\n size_t degree(size_t index) const;\n bool containsEdge(size_t a, size_t b) const;\n\nprivate:\n std::vector > m_adjacencyList;\n};\n\n} \/\/ end MolCore namespace\n\n#endif \/\/ MOLCORE_GRAPH_H\n","new_contents":"#ifndef MOLCORE_GRAPH_H\n#define MOLCORE_GRAPH_H\n\n#include \"molcore.h\"\n\n#include \n#include \n\nnamespace MolCore {\n\nclass MOLCORE_EXPORT Graph\n{\npublic:\n \/\/ construction and destruction\n Graph();\n Graph(size_t size);\n ~Graph();\n\n \/\/ properties\n void setSize(size_t size);\n size_t size() const;\n bool isEmpty() const;\n void clear();\n\n \/\/ structure\n size_t addVertex();\n void removeVertex(size_t index);\n size_t vertexCount() const;\n void addEdge(size_t a, size_t b);\n void removeEdge(size_t a, size_t b);\n void removeEdges();\n void removeEdges(size_t index);\n size_t edgeCount() const;\n const std::vector& neighbors(size_t index) const;\n size_t degree(size_t index) const;\n bool containsEdge(size_t a, size_t b) const;\n\nprivate:\n std::vector > m_adjacencyList;\n};\n\n} \/\/ end MolCore namespace\n\n#endif \/\/ MOLCORE_GRAPH_H\n","subject":"Include cstddef for size_t in newer GCC.","message":"Include cstddef for size_t in newer GCC.\n","lang":"C","license":"bsd-3-clause","repos":"OpenChemistry\/avogadrolibs,cjh1\/mongochemweb-avogadrolibs,cjh1\/mongochemweb-avogadrolibs,ghutchis\/avogadrolibs,cjh1\/mongochemweb-avogadrolibs,OpenChemistry\/avogadrolibs,OpenChemistry\/avogadrolibs,OpenChemistry\/avogadrolibs,wadejong\/avogadrolibs,ghutchis\/avogadrolibs,wadejong\/avogadrolibs,wadejong\/avogadrolibs,qust113\/molcore,wadejong\/avogadrolibs,ghutchis\/avogadrolibs,qust113\/molcore,ghutchis\/avogadrolibs,cjh1\/mongochemweb-avogadrolibs,OpenChemistry\/avogadrolibs,ghutchis\/avogadrolibs"} {"commit":"a6cdef764509c20d7b17f5bab2db0bf1f1f90f2d","old_file":"md5.h","new_file":"md5.h","old_contents":"\/* File:\t\t\tconnection.h\n *\n * Description:\t\tSee \"md.h\"\n *\n * Comments:\t\tSee \"notice.txt\" for copyright and license information.\n *\n *\/\n\n#ifndef __MD5_H__\n#define __MD5_H__\n\n#include \"psqlodbc.h\"\n\n#include \n#include \n\n#ifdef\tWIN32\n#define\tMD5_ODBC\n#define\tFRONTEND\n#endif\n#define MD5_PASSWD_LEN\t35\n\n\/* From c.h *\/\n#ifndef __BEOS__\n\n#ifndef __cplusplus\n\n#ifndef bool\ntypedef char bool;\n#endif\n\n#ifndef true\n#define true\t((bool) 1)\n#endif\n\n#ifndef false\n#define false\t((bool) 0)\n#endif\n#endif \/* not C++ *\/\n#endif \/* __BEOS__ *\/\n\n\/* #if SIZEOF_UINT8 == 0 Can't get this from configure *\/\ntypedef unsigned char uint8;\t\/* == 8 bits *\/\ntypedef unsigned short uint16;\t\/* == 16 bits *\/\ntypedef unsigned int uint32;\t\/* == 32 bits *\/\n\/* #endif *\/\n\nextern bool EncryptMD5(const char *passwd, const char *salt,\n\t\t size_t salt_len, char *buf);\n\n\n#endif\n","new_contents":"\/* File:\t\t\tconnection.h\n *\n * Description:\t\tSee \"md.h\"\n *\n * Comments:\t\tSee \"notice.txt\" for copyright and license information.\n *\n *\/\n\n#ifndef __MD5_H__\n#define __MD5_H__\n\n#include \"psqlodbc.h\"\n\n#include \n#include \n\n#ifdef\tWIN32\n#define\tMD5_ODBC\n#define\tFRONTEND\n#endif\n#define MD5_PASSWD_LEN\t35\n\n\/* From c.h *\/\n#ifndef __BEOS__\n\n#ifndef __cplusplus\n\n#ifndef bool\ntypedef char bool;\n#endif\n\n#ifndef true\n#define true\t((bool) 1)\n#endif\n\n#ifndef false\n#define false\t((bool) 0)\n#endif\n#endif \/* not C++ *\/\n#endif \/* __BEOS__ *\/\n\n\/* Also defined in include\/c.h *\/\n#if SIZEOF_UINT8 == 0\ntypedef unsigned char uint8;\t\/* == 8 bits *\/\ntypedef unsigned short uint16;\t\/* == 16 bits *\/\ntypedef unsigned int uint32;\t\/* == 32 bits *\/\n#endif \/* SIZEOF_UINT8 == 0 *\/\n\nextern bool EncryptMD5(const char *passwd, const char *salt,\n\t\t size_t salt_len, char *buf);\n\n\n#endif\n","subject":"Add configure result checks on odbc, per Peter E.","message":"Add configure result checks on odbc, per Peter E.\n","lang":"C","license":"lgpl-2.1","repos":"gavioto\/psqlodbc,hlinnaka\/psqlodbc,treasure-data\/prestogres-odbc,hlinnaka\/psqlodbc,treasure-data\/prestogres-odbc,Distrotech\/psqlodbc,Distrotech\/psqlodbc,hlinnaka\/psqlodbc,treasure-data\/prestogres-odbc,gavioto\/psqlodbc,Distrotech\/psqlodbc,gavioto\/psqlodbc"} {"commit":"a3de6e9ab8fbd4c9462880dc5c138488b322efd0","old_file":"test\/FrontendC\/2003-08-21-WideString.c","new_file":"test\/FrontendC\/2003-08-21-WideString.c","old_contents":"\/\/ RUN: %llvmgcc -S %s -o - | llvm-as -f -o \/dev\/null\n\/\/ XFAIL: *\n\/\/ See PR2452\n\nstruct {\n int *name;\n} syms = { L\"NUL\" };\n","new_contents":"\/\/ RUN: %llvmgcc -S %s -o - | llvm-as -f -o \/dev\/null\n\n#include \n\nstruct {\n wchar_t *name;\n} syms = { L\"NUL\" };\n","subject":"Fix a warning, closing PR2452","message":"Fix a warning, closing PR2452\n\n\ngit-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@52529 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"bsd-2-clause","repos":"dslab-epfl\/asap,chubbymaggie\/asap,dslab-epfl\/asap,chubbymaggie\/asap,dslab-epfl\/asap,apple\/swift-llvm,llvm-mirror\/llvm,dslab-epfl\/asap,dslab-epfl\/asap,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,llvm-mirror\/llvm,apple\/swift-llvm,chubbymaggie\/asap,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,chubbymaggie\/asap,dslab-epfl\/asap,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,apple\/swift-llvm,chubbymaggie\/asap,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,chubbymaggie\/asap,apple\/swift-llvm,apple\/swift-llvm,dslab-epfl\/asap,apple\/swift-llvm,apple\/swift-llvm,apple\/swift-llvm,llvm-mirror\/llvm,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm"} {"commit":"3dbd3e6015ae8e703633e1a362d05561dbde2566","old_file":"NSTimeZone+Offset.h","new_file":"NSTimeZone+Offset.h","old_contents":"\/\/\n\/\/ NSTimeZone+Offset.h\n\/\/ CocoaGit\n\/\/\n\/\/ Created by Geoffrey Garside on 28\/07\/2008.\n\/\/ Copyright 2008 ManicPanda.com. All rights reserved.\n\/\/\n\n#import \n\n@interface NSTimeZone (Offset)\n\n+ (id)timeZoneWithStringOffset:(NSString*)offset;\n- (NSString*)offsetString;\n@end\n","new_contents":"\/\/\n\/\/ NSTimeZone+Offset.h\n\/\/ CocoaGit\n\/\/\n\/\/ Created by Geoffrey Garside on 28\/07\/2008.\n\/\/ Copyright 2008 ManicPanda.com. All rights reserved.\n\/\/\n\n#import \n\n@interface NSTimeZone (Offset)\n\n+ (id)timeZoneWithStringOffset:(NSString*)offset;\n- (NSString*)offsetString;\n@end\n","subject":"Change NSTimeZone category to only import NSTimeZone parent class instead of Cocoa","message":"Change NSTimeZone category to only import NSTimeZone parent class instead of Cocoa\n","lang":"C","license":"mit","repos":"schacon\/cocoagit,schacon\/cocoagit,geoffgarside\/cocoagit,geoffgarside\/cocoagit"} {"commit":"33e7f990e453efe202dde60ce3a2cb8609266a39","old_file":"src\/parse\/scanner.h","new_file":"src\/parse\/scanner.h","old_contents":"#ifndef SCANNER_H_\n#define SCANNER_H_\n\n\/\/ I want to remove this dependecy, equivalent to yy.tab.h ?\n#include \"parse\/GENERATED\/parser.hxx\"\n\n\n#undef yyFlexLexer \/\/ ugly hack, because is wonky\n#include \n\n#include \n\n\/\/ Tell flex how to define lexing fn\n#undef YY_DECL\n#define YY_DECL \\\n int GENERATED::Scanner::lex(GENERATED::Parser::semantic_type *yylval, \\\n GENERATED::Parser::location_type *yylloc)\n\nnamespace GENERATED {\nclass Scanner : public yyFlexLexer {\npublic:\n explicit Scanner(std::istream *in = nullptr,\n std::ostream *out = nullptr);\n\n int lex(GENERATED::Parser::semantic_type *yylval,\n GENERATED::Parser::location_type *yylloc);\n};\n}\n\n#endif \/\/ include-guard\n","new_contents":"#ifndef SCANNER_H_\n#define SCANNER_H_\n\n\/\/ I want to remove this dependecy, equivalent to yy.tab.h ?\n#include \"parse\/GENERATED\/parser.hxx\"\n\n\n#undef yyFlexLexer \/\/ ugly hack, because is wonky\n#include \n\n#include \n\n\/\/ Tell flex how to define lexing fn\n#undef YY_DECL\n#define YY_DECL \\\n int GENERATED::Scanner::lex(GENERATED::Parser::semantic_type *yylval, \\\n GENERATED::Parser::location_type *yylloc)\n\/\/ #define YY_DECL GENERATED::Parser::symbol_type GENERATED::Scanner::lex()\n\nnamespace GENERATED {\nclass Scanner : public yyFlexLexer {\npublic:\n explicit Scanner(std::istream *in = nullptr, std::ostream *out = nullptr);\n int lex(GENERATED::Parser::semantic_type *yylval,\n GENERATED::Parser::location_type *yylloc);\n \/\/ Parser::symbol_type lex();\n};\n}\n\n#endif \/\/ include-guard\n","subject":"Prepare for new lex interface","message":"Prepare for new lex interface\n","lang":"C","license":"mit","repos":"laokaplow\/tlc"} {"commit":"d2a07eee4c8fcc05e495a7a42295af294834c1b6","old_file":"ext\/libxml\/ruby_xml_node.h","new_file":"ext\/libxml\/ruby_xml_node.h","old_contents":"\/* $Id$ *\/\n\n\/* Please see the LICENSE file for copyright and distribution information *\/\n\n#ifndef __RUBY_XML_NODE__\n#define __RUBY_XML_NODE__\n\nextern VALUE cXMLNode;\nextern VALUE eXMLNodeSetNamespace;\nextern VALUE eXMLNodeFailedModify;\nextern VALUE eXMLNodeUnknownType;\n\nVALUE\nruby_xml_node2_wrap(VALUE class, xmlNodePtr xnode);\n\nvoid ruby_xml_node_free(xmlNodePtr xnode);\nvoid ruby_xml_node_mark_common(xmlNodePtr xnode);\nvoid ruby_init_xml_node(void);\n\nVALUE check_string_or_symbol(VALUE val);\n\nVALUE ruby_xml_node_child_set(VALUE self, VALUE obj);\nVALUE ruby_xml_node_name_get(VALUE self);\nVALUE ruby_xml_node_property_get(VALUE self, VALUE key);\nVALUE ruby_xml_node_property_set(VALUE self, VALUE key, VALUE val);\n#endif\n","new_contents":"\/* $Id$ *\/\n\n\/* Please see the LICENSE file for copyright and distribution information *\/\n\n#ifndef __RUBY_XML_NODE__\n#define __RUBY_XML_NODE__\n\nextern VALUE cXMLNode;\nextern VALUE eXMLNodeSetNamespace;\nextern VALUE eXMLNodeFailedModify;\nextern VALUE eXMLNodeUnknownType;\n\nVALUE ruby_xml_node2_wrap(VALUE class, xmlNodePtr xnode);\nVALUE check_string_or_symbol(VALUE val);\n#endif\n","subject":"Clean out needless declarations in the node.h header file.","message":"Clean out needless declarations in the node.h header file.\n","lang":"C","license":"mit","repos":"increments\/libxml-ruby,xml4r\/libxml-ruby,sferik\/libxml-ruby,sferik\/libxml-ruby,xml4r\/libxml-ruby,sferik\/libxml-ruby,increments\/libxml-ruby,sferik\/libxml-ruby,sferik\/libxml-ruby,sferik\/libxml-ruby,increments\/libxml-ruby,xml4r\/libxml-ruby"} {"commit":"2fcadfe262e7574183c6cd1af5dbde2901f92275","old_file":"test\/CodeGen\/debug-info-vector.c","new_file":"test\/CodeGen\/debug-info-vector.c","old_contents":"","new_contents":"\/\/ RUN: %clang_cc1 -emit-llvm -g %s -o - | FileCheck %s\ntypedef int v4si __attribute__((__vector_size__(16)));\n\nv4si a;\n\n\/\/ Test that we get an array type that's also a vector out of debug.\n\/\/ CHECK: [ DW_TAG_array_type ] [line 0, size 128, align 128, offset 0] [vector] [from int]\n","subject":"Add a test to make sure that vector output happens for debug info.","message":"Add a test to make sure that vector output happens for debug info.\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@171834 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,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-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"} {"commit":"f461284a46bf073de958c65df190adaa331d80d3","old_file":"testmud\/mud\/include\/game\/paths.h","new_file":"testmud\/mud\/include\/game\/paths.h","old_contents":"#include \n\n#define LIB_BULK\t\t(USR_DIR + \"\/Game\/lib\/bulk\")\n#define LIB_TIME\t\t(USR_DIR + \"\/Game\/lib\/time\")\n#define GAME_LIB_OBJECT\t\t(USR_DIR + \"\/Game\/lib\/object\")\n\n#define BULKD\t\t\t(USR_DIR + \"\/Game\/sys\/bulkd\")\n#define SNOOPD\t\t\t(USR_DIR + \"\/Game\/sys\/snoopd\")\n#define TIMED\t\t\t(USR_DIR + \"\/Game\/sys\/timed\")\n#define GAME_INITD\t\t(USR_DIR + \"\/Game\/initd\")\n#define GAME_HELPD\t\t(USR_DIR + \"\/Game\/sys\/helpd\")\n#define GAME_DRIVER\t\t(USR_DIR + \"\/Game\/sys\/driver\")\n#define GAME_ROOT\t\t(USR_DIR + \"\/Game\/sys\/root\")\n#define GAME_SUBD\t\t(USR_DIR + \"\/Game\/sys\/subd\")\n#define GAME_TESTD\t\t(USR_DIR + \"\/Game\/sys\/testd\")\n","new_contents":"#include \n\n#define LIB_ACTION\t\t(USR_DIR + \"\/Game\/lib\/action\")\n#define LIB_BULK\t\t(USR_DIR + \"\/Game\/lib\/bulk\")\n#define GAME_LIB_OBJECT\t\t(USR_DIR + \"\/Game\/lib\/object\")\n\n#define BULKD\t\t\t(USR_DIR + \"\/Game\/sys\/bulkd\")\n#define SNOOPD\t\t\t(USR_DIR + \"\/Game\/sys\/snoopd\")\n#define TIMED\t\t\t(USR_DIR + \"\/Game\/sys\/timed\")\n#define GAME_INITD\t\t(USR_DIR + \"\/Game\/initd\")\n#define GAME_HELPD\t\t(USR_DIR + \"\/Game\/sys\/helpd\")\n#define GAME_DRIVER\t\t(USR_DIR + \"\/Game\/sys\/driver\")\n#define GAME_ROOT\t\t(USR_DIR + \"\/Game\/sys\/root\")\n#define GAME_SUBD\t\t(USR_DIR + \"\/Game\/sys\/subd\")\n#define GAME_TESTD\t\t(USR_DIR + \"\/Game\/sys\/testd\")\n","subject":"Remove unwritten time library, add action library","message":"Remove unwritten time library, add action library\n","lang":"C","license":"agpl-3.0","repos":"shentino\/kotaka,shentino\/kotaka,shentino\/kotaka"} {"commit":"c7601bf508d348ccf30666254f762c8ee793c943","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 73\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 74\n#endif\n","subject":"Update Skia milestone to 74","message":"Update Skia milestone to 74\n\nBug: skia:\nChange-Id: Ief231cc48fd8a40bc10f21445884d599b27db799\nReviewed-on: https:\/\/skia-review.googlesource.com\/c\/186701\nReviewed-by: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>\nCommit-Queue: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>\nAuto-Submit: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>\n","lang":"C","license":"bsd-3-clause","repos":"google\/skia,google\/skia,google\/skia,google\/skia,rubenvb\/skia,HalCanary\/skia-hc,google\/skia,HalCanary\/skia-hc,Hikari-no-Tenshi\/android_external_skia,aosp-mirror\/platform_external_skia,HalCanary\/skia-hc,aosp-mirror\/platform_external_skia,rubenvb\/skia,Hikari-no-Tenshi\/android_external_skia,HalCanary\/skia-hc,rubenvb\/skia,HalCanary\/skia-hc,aosp-mirror\/platform_external_skia,google\/skia,aosp-mirror\/platform_external_skia,aosp-mirror\/platform_external_skia,rubenvb\/skia,HalCanary\/skia-hc,rubenvb\/skia,aosp-mirror\/platform_external_skia,rubenvb\/skia,Hikari-no-Tenshi\/android_external_skia,aosp-mirror\/platform_external_skia,rubenvb\/skia,aosp-mirror\/platform_external_skia,Hikari-no-Tenshi\/android_external_skia,google\/skia,aosp-mirror\/platform_external_skia,HalCanary\/skia-hc,Hikari-no-Tenshi\/android_external_skia,Hikari-no-Tenshi\/android_external_skia,HalCanary\/skia-hc,Hikari-no-Tenshi\/android_external_skia,rubenvb\/skia,Hikari-no-Tenshi\/android_external_skia,HalCanary\/skia-hc,rubenvb\/skia,google\/skia,HalCanary\/skia-hc,aosp-mirror\/platform_external_skia,google\/skia,rubenvb\/skia,google\/skia"} {"commit":"f48347635a849159f8733fcce1ee630d1cc34493","old_file":"folly\/detail\/Singleton.h","new_file":"folly\/detail\/Singleton.h","old_contents":"\/*\n * Copyright 2018-present Facebook, 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#pragma once\n\n#include \n\n#include \n\nnamespace folly {\nnamespace detail {\n\nstruct DefaultTag {};\n\ntemplate \nstruct DefaultMake {\n struct Heap {\n std::unique_ptr ptr{std::make_unique()};\n \/* implicit *\/ operator T&() {\n return *ptr;\n }\n };\n\n using is_returnable = StrictDisjunction<\n bool_constant<__cplusplus >= 201703ULL>,\n std::is_copy_constructible,\n std::is_move_constructible>;\n using type = std::conditional_t;\n\n T make(std::true_type) const {\n return T();\n }\n Heap make(std::false_type) const {\n return Heap();\n }\n\n type operator()() const {\n return make(is_returnable{});\n }\n};\n\ntemplate \nstruct TypeTuple {};\n\n} \/\/ namespace detail\n} \/\/ namespace folly\n","new_contents":"\/*\n * Copyright 2018-present Facebook, 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#pragma once\n\n#include \n\n#include \n\nnamespace folly {\nnamespace detail {\n\nstruct DefaultTag {};\n\ntemplate \nstruct DefaultMake {\n struct Heap {\n std::unique_ptr ptr{std::make_unique()};\n \/* implicit *\/ operator T&() {\n return *ptr;\n }\n };\n\n using is_returnable = StrictDisjunction<\n bool_constant<__cplusplus >= 201703ULL>,\n std::is_copy_constructible,\n std::is_move_constructible>;\n using type = std::conditional_t;\n\n type operator()() const {\n return type();\n }\n};\n\ntemplate \nstruct TypeTuple {};\n\n} \/\/ namespace detail\n} \/\/ namespace folly\n","subject":"Remove unnecessary verbosity in DefaultMake","message":"Remove unnecessary verbosity in DefaultMake\n\nSummary: [Folly] Remove unnecessary verbosity in `DefaultMake`. The shorter version does just as well.\n\nReviewed By: andriigrynenko\n\nDifferential Revision: D13254005\n\nfbshipit-source-id: 6520b813685a4621d8679b7feda24a1a0b75cfd5\n","lang":"C","license":"apache-2.0","repos":"facebook\/folly,facebook\/folly,facebook\/folly,facebook\/folly,facebook\/folly"} {"commit":"46aaff03bcb8e5dd55a70eab7fb3aa50ef49b07a","old_file":"src\/wren_debug.h","new_file":"src\/wren_debug.h","old_contents":"\/\/\n\/\/ wren_debug.h\n\/\/ wren\n\/\/\n\/\/ Created by Bob Nystrom on 11\/29\/13.\n\/\/ Copyright (c) 2013 Bob Nystrom. All rights reserved.\n\/\/\n\n#ifndef wren_wren_debug_h\n#define wren_wren_debug_h\n\n#include \"wren_value.h\"\n#include \"wren_vm.h\"\n\nvoid wrenDebugPrintStackTrace(WrenVM* vm, ObjFiber* fiber);\nint wrenDebugPrintInstruction(WrenVM* vm, ObjFn* fn, int i);\nvoid wrenDebugPrintCode(WrenVM* vm, ObjFn* fn);\nvoid wrenDebugPrintStack(ObjFiber* fiber);\n\n#endif\n","new_contents":"#ifndef wren_debug_h\n#define wren_debug_h\n\n#include \"wren_value.h\"\n#include \"wren_vm.h\"\n\nvoid wrenDebugPrintStackTrace(WrenVM* vm, ObjFiber* fiber);\nint wrenDebugPrintInstruction(WrenVM* vm, ObjFn* fn, int i);\nvoid wrenDebugPrintCode(WrenVM* vm, ObjFn* fn);\nvoid wrenDebugPrintStack(ObjFiber* fiber);\n\n#endif\n","subject":"Clean up debug header preamble.","message":"Clean up debug header preamble.\n","lang":"C","license":"mit","repos":"Nelarius\/wren,Nelarius\/wren,Nave-Neel\/wren,munificent\/wren,Nave-Neel\/wren,Rohansi\/wren,foresterre\/wren,Nelarius\/wren,Nelarius\/wren,munificent\/wren,munificent\/wren,minirop\/wren,minirop\/wren,munificent\/wren,bigdimboom\/wren,bigdimboom\/wren,Nave-Neel\/wren,bigdimboom\/wren,Nave-Neel\/wren,Rohansi\/wren,minirop\/wren,foresterre\/wren,foresterre\/wren,foresterre\/wren,minirop\/wren,Rohansi\/wren,munificent\/wren,bigdimboom\/wren,foresterre\/wren,minirop\/wren,munificent\/wren,Nelarius\/wren,Rohansi\/wren"} {"commit":"621ef4c87b34fe0e6f1f945192820f0f2e655205","old_file":"UIforETW\/Version.h","new_file":"UIforETW\/Version.h","old_contents":"#pragma once\r\n\r\n\/\/ const float in a header file can lead to duplication of the storage\r\n\/\/ but I don't really care in this case. Just don't do it with a header\r\n\/\/ that is included hundreds of times.\r\nconst float kCurrentVersion = 1.53f;\r\n\r\n\/\/ Put a \"#define VERSION_SUFFIX 'b'\" line here to add a minor version\r\n\/\/ increment that won't trigger the new-version checks, handy for minor\r\n\/\/ releases that I don't want to bother users about.\r\n\/\/#define VERSION_SUFFIX 'b'\r\n","new_contents":"#pragma once\r\n\r\n\/\/ const float in a header file can lead to duplication of the storage\r\n\/\/ but I don't really care in this case. Just don't do it with a header\r\n\/\/ that is included hundreds of times.\r\nconst float kCurrentVersion = 1.54f;\r\n\r\n\/\/ Put a \"#define VERSION_SUFFIX 'b'\" line here to add a minor version\r\n\/\/ increment that won't trigger the new-version checks, handy for minor\r\n\/\/ releases that I don't want to bother users about.\r\n\/\/#define VERSION_SUFFIX 'b'\r\n","subject":"Increment version number to 1.54","message":"Increment version number to 1.54\n","lang":"C","license":"apache-2.0","repos":"google\/UIforETW,google\/UIforETW,google\/UIforETW,google\/UIforETW"} {"commit":"613871d124370ab208ed89e467a91faadf15dc1f","old_file":"include\/NDS-controller.h","new_file":"include\/NDS-controller.h","old_contents":"","new_contents":"\/*\n * TODO add copyright notice and GPL licence thingey\n *\n *\n *\n *\/\n#include \n#include \n#include \n\n#include \n#include \n#include \n#include \n\n#define EMULATOR 1 \/\/TODO automate flipping this in the makefile\n\n\/**\n * Interactively lists WiFi connections, allow the user to select one and connect.\n * Supports open connections and WEP secured ones.\n *\/\nint ManualConnect(PrintConsole *top_screen, PrintConsole *bot_screen);\n\/**\n * Connect using credentials in WFC bank.\n * Writes output to supplied terminal, acts silently if none is provided.\n *\/\nint WFCConnect(PrintConsole *console);\n\n\n\/**\n * Standard keyboard callback placeholder\n *\/\nvoid OnKeyPressed(int key);\n\n\/**\n * Entry point of the application\n *\/\nint main();\n","subject":"Split the main file into .c and .h files to make breaking it up later easier.","message":"Split the main file into .c and .h files to make breaking it up later easier.\n","lang":"C","license":"mit","repos":"Louisvh\/NDS-controller"} {"commit":"0f3574df54fe9dc4e4d0a88a111f7787073af076","old_file":"Pod\/Classes\/DZVideoPlayerViewControllerConfiguration.h","new_file":"Pod\/Classes\/DZVideoPlayerViewControllerConfiguration.h","old_contents":"\/\/\n\/\/ DZVideoPlayerViewControllerConfiguration.h\n\/\/ Pods\n\/\/\n\/\/ Created by Denis Zamataev on 15\/07\/15.\n\/\/\n\/\/\n\n#import \n\n@interface DZVideoPlayerViewControllerConfiguration : NSObject\n\n@property (assign, nonatomic) BOOL isBackgroundPlaybackEnabled; \/\/ defaults to NO\n@property (strong, nonatomic) NSMutableArray *viewsToHideOnIdle; \/\/ has topToolbarView and bottomToolbarView by default\n@property (assign, nonatomic) NSTimeInterval delayBeforeHidingViewsOnIdle; \/\/ defaults to 3 seconds\n@property (assign, nonatomic) BOOL isShowFullscreenExpandAndShrinkButtonsEnabled; \/\/ defaults to YES\n@property (assign, nonatomic) BOOL isHideControlsOnIdleEnabled; \/\/ defaults to YES\n\n@end\n","new_contents":"\/\/\n\/\/ DZVideoPlayerViewControllerConfiguration.h\n\/\/ Pods\n\/\/\n\/\/ Created by Denis Zamataev on 15\/07\/15.\n\/\/\n\/\/\n\n#import \n\n@interface DZVideoPlayerViewControllerConfiguration : NSObject\n\n@property (assign, nonatomic) BOOL isBackgroundPlaybackEnabled; \/\/ defaults to YES\n@property (strong, nonatomic) NSMutableArray *viewsToHideOnIdle; \/\/ has topToolbarView and bottomToolbarView by default\n@property (assign, nonatomic) NSTimeInterval delayBeforeHidingViewsOnIdle; \/\/ defaults to 3 seconds\n@property (assign, nonatomic) BOOL isShowFullscreenExpandAndShrinkButtonsEnabled; \/\/ defaults to YES\n@property (assign, nonatomic) BOOL isHideControlsOnIdleEnabled; \/\/ defaults to YES\n\n@end\n","subject":"Fix wrong comment in configuration","message":"Fix wrong comment in configuration\n","lang":"C","license":"mit","repos":"MessuKilkain\/DZVideoPlayerViewController,MessuKilkain\/DZVideoPlayerViewController,MessuKilkain\/DZVideoPlayerViewController"} {"commit":"32007a555cc2d10207e65a163f6ab809534d47e4","old_file":"compiler\/cpp\/src\/parse\/t_enum.h","new_file":"compiler\/cpp\/src\/parse\/t_enum.h","old_contents":"\/\/ Copyright (c) 2006- Facebook\n\/\/ Distributed under the Thrift Software License\n\/\/\n\/\/ See accompanying file LICENSE or visit the Thrift site at:\n\/\/ http:\/\/developers.facebook.com\/thrift\/\n\n#ifndef T_ENUM_H\n#define T_ENUM_H\n\n#include \"t_enum_value.h\"\n#include \n\n\/**\n * An enumerated type. A list of constant objects with a name for the type.\n *\n * @author Mark Slee \n *\/\nclass t_enum : public t_type {\n public:\n t_enum(t_program* program) :\n t_type(program) {}\n\n void set_name(std::string name) {\n name_ = name;\n }\n \n void append(t_enum_value* constant) {\n constants_.push_back(constant);\n }\n\n const std::vector& get_constants() {\n return constants_;\n }\n\n bool is_enum() const {\n return true;\n }\n\n virtual std::string get_fingerprint_material() const {\n return \"enum\";\n }\n\n private:\n std::vector constants_;\n};\n\n#endif\n","new_contents":"\/\/ Copyright (c) 2006- Facebook\n\/\/ Distributed under the Thrift Software License\n\/\/\n\/\/ See accompanying file LICENSE or visit the Thrift site at:\n\/\/ http:\/\/developers.facebook.com\/thrift\/\n\n#ifndef T_ENUM_H\n#define T_ENUM_H\n\n#include \"t_enum_value.h\"\n#include \n\n\/**\n * An enumerated type. A list of constant objects with a name for the type.\n *\n * @author Mark Slee \n *\/\nclass t_enum : public t_type {\n public:\n t_enum(t_program* program) :\n t_type(program) {}\n\n void set_name(const std::string& name) {\n name_ = name;\n }\n\n void append(t_enum_value* constant) {\n constants_.push_back(constant);\n }\n\n const std::vector& get_constants() {\n return constants_;\n }\n\n bool is_enum() const {\n return true;\n }\n\n virtual std::string get_fingerprint_material() const {\n return \"enum\";\n }\n\n private:\n std::vector constants_;\n};\n\n#endif\n","subject":"Fix set_name compiler method signature","message":"Fix set_name compiler method signature\n\nReviewed By: kholst\n\nOther Notes: Follow up from 78130\n\n\ngit-svn-id: 8d8e29b1fb681c884914062b88f3633e3a187774@665434 13f79535-47bb-0310-9956-ffa450edef68\n","lang":"C","license":"apache-2.0","repos":"JoeEnnever\/thrift,authbox-lib\/thrift,ijuma\/thrift,collinmsn\/thrift,authbox-lib\/thrift,creker\/thrift,3013216027\/thrift,afds\/thrift,alfredtofu\/thrift,Jimdo\/thrift,msonnabaum\/thrift,theopolis\/thrift,i\/thrift,flandr\/thrift,selaselah\/thrift,Jimdo\/thrift,prathik\/thrift,bufferoverflow\/thrift,tanmaykm\/thrift,fernandobt8\/thrift,wfxiang08\/thrift,huahang\/thrift,ykwd\/thrift,chenbaihu\/thrift,Jens-G\/thrift,tanmaykm\/thrift,SirWellington\/thrift,lion117\/lib-thrift,ijuma\/thrift,zzmp\/thrift,zhaorui1\/thrift,pinterest\/thrift,spicavigo\/thrift,siemens\/thrift,mway08\/thrift,windofthesky\/thrift,windofthesky\/thrift,jeking3\/thrift,strava\/thrift,bmiklautz\/thrift,zzmp\/thrift,vashstorm\/thrift,siemens\/thrift,springheeledjak\/thrift,bufferoverflow\/thrift,jeking3\/thrift,springheeledjak\/thrift,bforbis\/thrift,dongjiaqiang\/thrift,NOMORECOFFEE\/thrift,terminalcloud\/thrift,msonnabaum\/thrift,SuperAwesomeLTD\/thrift,nsuke\/thrift,dtmuller\/thrift,evanweible-wf\/thrift,creker\/thrift,gadLinux\/thrift,markerickson-wf\/thrift,afds\/thrift,gadLinux\/thrift,yongju-hong\/thrift,dcelasun\/thrift,RobberPhex\/thrift,creker\/thrift,jeking3\/thrift,dongjiaqiang\/thrift,rewardStyle\/apache.thrift,adamvduke\/thrift-adamd,crisish\/thrift,edvakf\/thrift,bitfinder\/thrift,Fitbit\/thrift,ochinchina\/thrift,afds\/thrift,guodongxiaren\/thrift,authbox-lib\/thrift,msonnabaum\/thrift,jackscott\/thrift,ahnqirage\/thrift,windofthesky\/thrift,theopolis\/thrift,i\/thrift,wfxiang08\/thrift,EasonYi\/thrift,markerickson-wf\/thrift,Fitbit\/thrift,gadLinux\/thrift,Sean-Der\/thrift,reTXT\/thrift,BluechipSystems\/thrift,zhaorui1\/thrift,Pertino\/thrift,jeking3\/thrift,terminalcloud\/thrift,bufferoverflow\/thrift,timse\/thrift,vashstorm\/thrift,koofr\/thrift,msonnabaum\/thrift,prathik\/thrift,Jens-G\/thrift,dcelasun\/thrift,ijuma\/thrift,BluechipSystems\/thrift,flandr\/thrift,hcorg\/thrift,strava\/thrift,flamholz\/thrift,ykwd\/thrift,eonezhang\/thrift,yongju-hong\/thrift,zhaorui1\/thrift,roshan\/thrift,bufferoverflow\/thrift,akshaydeo\/thrift,bgould\/thrift,bgould\/thrift,rewardStyle\/apache.thrift,3013216027\/thrift,bforbis\/thrift,SirWellington\/thrift,msonnabaum\/thrift,roshan\/thrift,mindcandy\/thrift,reTXT\/thrift,koofr\/thrift,bholbrook73\/thrift,prashantv\/thrift,jfarrell\/thrift,jeking3\/thrift,windofthesky\/thrift,dcelasun\/thrift,bgould\/thrift,rewardStyle\/apache.thrift,jackscott\/thrift,jeking3\/thrift,jfarrell\/thrift,bmiklautz\/thrift,x1957\/thrift,chenbaihu\/thrift,rmhartog\/thrift,prashantv\/thrift,EasonYi\/thrift,Jimdo\/thrift,upfluence\/thrift,NOMORECOFFEE\/thrift,pinterest\/thrift,timse\/thrift,fernandobt8\/thrift,guodongxiaren\/thrift,flamholz\/thrift,rewardStyle\/apache.thrift,ahnqirage\/thrift,collinmsn\/thrift,roshan\/thrift,lion117\/lib-thrift,dwnld\/thrift,akshaydeo\/thrift,wfxiang08\/thrift,weweadsl\/thrift,weweadsl\/thrift,chenbaihu\/thrift,SuperAwesomeLTD\/thrift,jfarrell\/thrift,RobberPhex\/thrift,authbox-lib\/thrift,i\/thrift,reTXT\/thrift,crisish\/thrift,NOMORECOFFEE\/thrift,mindcandy\/thrift,tanmaykm\/thrift,chentao\/thrift,vashstorm\/thrift,gadLinux\/thrift,Fitbit\/thrift,RobberPhex\/thrift,jfarrell\/thrift,chentao\/thrift,chentao\/thrift,mway08\/thrift,theopolis\/thrift,terminalcloud\/thrift,prathik\/thrift,bmiklautz\/thrift,3013216027\/thrift,chenbaihu\/thrift,bgould\/thrift,markerickson-wf\/thrift,bgould\/thrift,strava\/thrift,apache\/thrift,jpgneves\/thrift,EasonYi\/thrift,ykwd\/thrift,nsuke\/thrift,lion117\/lib-thrift,wfxiang08\/thrift,apache\/thrift,BluechipSystems\/thrift,prashantv\/thrift,Jens-G\/thrift,crisish\/thrift,dsturnbull\/thrift,msonnabaum\/thrift,Fitbit\/thrift,evanweible-wf\/thrift,zzmp\/thrift,elloray\/thrift,afds\/thrift,timse\/thrift,hcorg\/thrift,springheeledjak\/thrift,RobberPhex\/thrift,koofr\/thrift,haruwo\/thrift-with-java-annotation-support,pinterest\/thrift,JoeEnnever\/thrift,tanmaykm\/thrift,strava\/thrift,Pertino\/thrift,elloray\/thrift,bforbis\/thrift,springheeledjak\/thrift,fernandobt8\/thrift,dwnld\/thrift,flandr\/thrift,i\/thrift,tanmaykm\/thrift,adamvduke\/thrift-adamd,ahnqirage\/thrift,bitemyapp\/thrift,tylertreat\/thrift,gadLinux\/thrift,RobberPhex\/thrift,bmiklautz\/thrift,bufferoverflow\/thrift,Pertino\/thrift,siemens\/thrift,nsuke\/thrift,project-zerus\/thrift,bitfinder\/thrift,cjmay\/thrift,dtmuller\/thrift,jeking3\/thrift,siemens\/thrift,zhaorui1\/thrift,Jens-G\/thrift,Sean-Der\/thrift,SentientTechnologies\/thrift,wfxiang08\/thrift,dwnld\/thrift,pinterest\/thrift,jackscott\/thrift,Fitbit\/thrift,elloray\/thrift,vashstorm\/thrift,creker\/thrift,pinterest\/thrift,Jens-G\/thrift,apache\/thrift,mway08\/thrift,koofr\/thrift,apache\/thrift,theopolis\/thrift,bitfinder\/thrift,theopolis\/thrift,BluechipSystems\/thrift,roshan\/thrift,project-zerus\/thrift,x1957\/thrift,msonnabaum\/thrift,jfarrell\/thrift,springheeledjak\/thrift,NOMORECOFFEE\/thrift,windofthesky\/thrift,tylertreat\/thrift,nsuke\/thrift,terminalcloud\/thrift,haruwo\/thrift-with-java-annotation-support,Jens-G\/thrift,NOMORECOFFEE\/thrift,bforbis\/thrift,jpgneves\/thrift,wingedkiwi\/thrift,Jens-G\/thrift,msonnabaum\/thrift,markerickson-wf\/thrift,joshuabezaleel\/thrift,zzmp\/thrift,timse\/thrift,lion117\/lib-thrift,roshan\/thrift,terminalcloud\/thrift,hcorg\/thrift,theopolis\/thrift,jackscott\/thrift,hcorg\/thrift,dtmuller\/thrift,jpgneves\/thrift,tylertreat\/thrift,guodongxiaren\/thrift,rewardStyle\/apache.thrift,3013216027\/thrift,alfredtofu\/thrift,pinterest\/thrift,SuperAwesomeLTD\/thrift,BluechipSystems\/thrift,jeking3\/thrift,Fitbit\/thrift,x1957\/thrift,chenbaihu\/thrift,vashstorm\/thrift,jpgneves\/thrift,ykwd\/thrift,windofthesky\/thrift,lion117\/lib-thrift,ochinchina\/thrift,ijuma\/thrift,theopolis\/thrift,SentientTechnologies\/thrift,theopolis\/thrift,evanweible-wf\/thrift,3013216027\/thrift,hcorg\/thrift,afds\/thrift,bitemyapp\/thrift,steven-sheffey-tungsten\/thrift,nsuke\/thrift,gadLinux\/thrift,bforbis\/thrift,collinmsn\/thrift,huahang\/thrift,cjmay\/thrift,bholbrook73\/thrift,akshaydeo\/thrift,Sean-Der\/thrift,yongju-hong\/thrift,project-zerus\/thrift,ahnqirage\/thrift,collinmsn\/thrift,prathik\/thrift,flandr\/thrift,jackscott\/thrift,flandr\/thrift,NOMORECOFFEE\/thrift,flandr\/thrift,hcorg\/thrift,rmhartog\/thrift,dtmuller\/thrift,mindcandy\/thrift,dwnld\/thrift,ijuma\/thrift,JoeEnnever\/thrift,eamosov\/thrift,dtmuller\/thrift,dtmuller\/thrift,terminalcloud\/thrift,joshuabezaleel\/thrift,Sean-Der\/thrift,ykwd\/thrift,Fitbit\/thrift,bitemyapp\/thrift,jfarrell\/thrift,markerickson-wf\/thrift,bgould\/thrift,tylertreat\/thrift,chentao\/thrift,bmiklautz\/thrift,apache\/thrift,SentientTechnologies\/thrift,upfluence\/thrift,dcelasun\/thrift,selaselah\/thrift,rmhartog\/thrift,ochinchina\/thrift,Pertino\/thrift,jpgneves\/thrift,timse\/thrift,3013216027\/thrift,SuperAwesomeLTD\/thrift,Sean-Der\/thrift,SuperAwesomeLTD\/thrift,NOMORECOFFEE\/thrift,crisish\/thrift,dsturnbull\/thrift,jfarrell\/thrift,windofthesky\/thrift,SentientTechnologies\/thrift,dsturnbull\/thrift,collinmsn\/thrift,yongju-hong\/thrift,RobberPhex\/thrift,bgould\/thrift,zzmp\/thrift,jfarrell\/thrift,wfxiang08\/thrift,windofthesky\/thrift,SentientTechnologies\/thrift,haruwo\/thrift-with-java-annotation-support,Pertino\/thrift,ahnqirage\/thrift,SirWellington\/thrift,akshaydeo\/thrift,SirWellington\/thrift,bitemyapp\/thrift,ahnqirage\/thrift,upfluence\/thrift,guodongxiaren\/thrift,SuperAwesomeLTD\/thrift,wfxiang08\/thrift,gadLinux\/thrift,siemens\/thrift,pinterest\/thrift,eamosov\/thrift,dcelasun\/thrift,afds\/thrift,collinmsn\/thrift,guodongxiaren\/thrift,afds\/thrift,selaselah\/thrift,EasonYi\/thrift,authbox-lib\/thrift,jpgneves\/thrift,yongju-hong\/thrift,elloray\/thrift,SentientTechnologies\/thrift,eonezhang\/thrift,project-zerus\/thrift,chentao\/thrift,weweadsl\/thrift,lion117\/lib-thrift,rewardStyle\/apache.thrift,yongju-hong\/thrift,spicavigo\/thrift,Pertino\/thrift,akshaydeo\/thrift,bitemyapp\/thrift,dongjiaqiang\/thrift,lion117\/lib-thrift,bitfinder\/thrift,bholbrook73\/thrift,guodongxiaren\/thrift,strava\/thrift,pinterest\/thrift,roshan\/thrift,gadLinux\/thrift,evanweible-wf\/thrift,mway08\/thrift,bufferoverflow\/thrift,apache\/thrift,crisish\/thrift,cjmay\/thrift,ykwd\/thrift,NOMORECOFFEE\/thrift,project-zerus\/thrift,bitemyapp\/thrift,joshuabezaleel\/thrift,joshuabezaleel\/thrift,afds\/thrift,mindcandy\/thrift,bitfinder\/thrift,dsturnbull\/thrift,jpgneves\/thrift,jfarrell\/thrift,jackscott\/thrift,spicavigo\/thrift,SuperAwesomeLTD\/thrift,dcelasun\/thrift,evanweible-wf\/thrift,msonnabaum\/thrift,dtmuller\/thrift,wingedkiwi\/thrift,3013216027\/thrift,roshan\/thrift,project-zerus\/thrift,spicavigo\/thrift,creker\/thrift,bufferoverflow\/thrift,NOMORECOFFEE\/thrift,weweadsl\/thrift,BluechipSystems\/thrift,weweadsl\/thrift,terminalcloud\/thrift,strava\/thrift,bitfinder\/thrift,yongju-hong\/thrift,pinterest\/thrift,wingedkiwi\/thrift,i\/thrift,upfluence\/thrift,JoeEnnever\/thrift,Sean-Der\/thrift,bforbis\/thrift,bgould\/thrift,dcelasun\/thrift,upfluence\/thrift,ochinchina\/thrift,elloray\/thrift,steven-sheffey-tungsten\/thrift,huahang\/thrift,bmiklautz\/thrift,jpgneves\/thrift,vashstorm\/thrift,joshuabezaleel\/thrift,Sean-Der\/thrift,jeking3\/thrift,authbox-lib\/thrift,bitfinder\/thrift,haruwo\/thrift-with-java-annotation-support,3013216027\/thrift,tanmaykm\/thrift,elloray\/thrift,jeking3\/thrift,haruwo\/thrift-with-java-annotation-support,project-zerus\/thrift,SentientTechnologies\/thrift,haruwo\/thrift-with-java-annotation-support,mway08\/thrift,roshan\/thrift,reTXT\/thrift,ijuma\/thrift,prathik\/thrift,markerickson-wf\/thrift,gadLinux\/thrift,dsturnbull\/thrift,apache\/thrift,project-zerus\/thrift,cjmay\/thrift,Jens-G\/thrift,windofthesky\/thrift,hcorg\/thrift,creker\/thrift,timse\/thrift,fernandobt8\/thrift,prashantv\/thrift,terminalcloud\/thrift,creker\/thrift,ahnqirage\/thrift,guodongxiaren\/thrift,Jens-G\/thrift,nsuke\/thrift,Jimdo\/thrift,joshuabezaleel\/thrift,Sean-Der\/thrift,jackscott\/thrift,alfredtofu\/thrift,reTXT\/thrift,dwnld\/thrift,wingedkiwi\/thrift,roshan\/thrift,akshaydeo\/thrift,jfarrell\/thrift,Jens-G\/thrift,eamosov\/thrift,yongju-hong\/thrift,huahang\/thrift,SirWellington\/thrift,haruwo\/thrift-with-java-annotation-support,bmiklautz\/thrift,3013216027\/thrift,crisish\/thrift,evanweible-wf\/thrift,dtmuller\/thrift,steven-sheffey-tungsten\/thrift,authbox-lib\/thrift,markerickson-wf\/thrift,jfarrell\/thrift,collinmsn\/thrift,eamosov\/thrift,guodongxiaren\/thrift,hcorg\/thrift,rmhartog\/thrift,jackscott\/thrift,zhaorui1\/thrift,Jimdo\/thrift,vashstorm\/thrift,bforbis\/thrift,nsuke\/thrift,creker\/thrift,adamvduke\/thrift-adamd,JoeEnnever\/thrift,hcorg\/thrift,collinmsn\/thrift,3013216027\/thrift,flandr\/thrift,strava\/thrift,prathik\/thrift,NOMORECOFFEE\/thrift,cjmay\/thrift,flamholz\/thrift,selaselah\/thrift,roshan\/thrift,gadLinux\/thrift,strava\/thrift,JoeEnnever\/thrift,markerickson-wf\/thrift,Jimdo\/thrift,flandr\/thrift,dcelasun\/thrift,edvakf\/thrift,hcorg\/thrift,bmiklautz\/thrift,SuperAwesomeLTD\/thrift,ijuma\/thrift,huahang\/thrift,bforbis\/thrift,zhaorui1\/thrift,creker\/thrift,jpgneves\/thrift,evanweible-wf\/thrift,steven-sheffey-tungsten\/thrift,flamholz\/thrift,SuperAwesomeLTD\/thrift,koofr\/thrift,SirWellington\/thrift,SirWellington\/thrift,wfxiang08\/thrift,roshan\/thrift,dsturnbull\/thrift,Pertino\/thrift,bmiklautz\/thrift,siemens\/thrift,flandr\/thrift,markerickson-wf\/thrift,x1957\/thrift,Sean-Der\/thrift,fernandobt8\/thrift,dwnld\/thrift,haruwo\/thrift-with-java-annotation-support,steven-sheffey-tungsten\/thrift,crisish\/thrift,timse\/thrift,gadLinux\/thrift,weweadsl\/thrift,creker\/thrift,SuperAwesomeLTD\/thrift,windofthesky\/thrift,adamvduke\/thrift-adamd,pinterest\/thrift,bholbrook73\/thrift,ykwd\/thrift,rewardStyle\/apache.thrift,tylertreat\/thrift,dongjiaqiang\/thrift,JoeEnnever\/thrift,bmiklautz\/thrift,gadLinux\/thrift,JoeEnnever\/thrift,JoeEnnever\/thrift,wingedkiwi\/thrift,zhaorui1\/thrift,strava\/thrift,guodongxiaren\/thrift,strava\/thrift,RobberPhex\/thrift,ahnqirage\/thrift,fernandobt8\/thrift,mway08\/thrift,upfluence\/thrift,dsturnbull\/thrift,wfxiang08\/thrift,Pertino\/thrift,rmhartog\/thrift,rewardStyle\/apache.thrift,eamosov\/thrift,steven-sheffey-tungsten\/thrift,afds\/thrift,tanmaykm\/thrift,weweadsl\/thrift,nsuke\/thrift,SuperAwesomeLTD\/thrift,msonnabaum\/thrift,weweadsl\/thrift,steven-sheffey-tungsten\/thrift,ykwd\/thrift,selaselah\/thrift,rmhartog\/thrift,dcelasun\/thrift,upfluence\/thrift,ochinchina\/thrift,apache\/thrift,prathik\/thrift,Jimdo\/thrift,Jimdo\/thrift,koofr\/thrift,x1957\/thrift,steven-sheffey-tungsten\/thrift,3013216027\/thrift,joshuabezaleel\/thrift,guodongxiaren\/thrift,hcorg\/thrift,evanweible-wf\/thrift,apache\/thrift,rmhartog\/thrift,bforbis\/thrift,reTXT\/thrift,prathik\/thrift,crisish\/thrift,ykwd\/thrift,bholbrook73\/thrift,SentientTechnologies\/thrift,akshaydeo\/thrift,BluechipSystems\/thrift,spicavigo\/thrift,dwnld\/thrift,eamosov\/thrift,alfredtofu\/thrift,eonezhang\/thrift,flandr\/thrift,edvakf\/thrift,ochinchina\/thrift,koofr\/thrift,chentao\/thrift,ahnqirage\/thrift,ykwd\/thrift,wfxiang08\/thrift,RobberPhex\/thrift,adamvduke\/thrift-adamd,bforbis\/thrift,flandr\/thrift,elloray\/thrift,eamosov\/thrift,tanmaykm\/thrift,nsuke\/thrift,ahnqirage\/thrift,flamholz\/thrift,RobberPhex\/thrift,authbox-lib\/thrift,nsuke\/thrift,lion117\/lib-thrift,steven-sheffey-tungsten\/thrift,selaselah\/thrift,tylertreat\/thrift,x1957\/thrift,bmiklautz\/thrift,nsuke\/thrift,eamosov\/thrift,dongjiaqiang\/thrift,timse\/thrift,i\/thrift,upfluence\/thrift,BluechipSystems\/thrift,creker\/thrift,siemens\/thrift,evanweible-wf\/thrift,prathik\/thrift,koofr\/thrift,reTXT\/thrift,koofr\/thrift,dwnld\/thrift,ochinchina\/thrift,dcelasun\/thrift,tylertreat\/thrift,koofr\/thrift,siemens\/thrift,dtmuller\/thrift,jackscott\/thrift,fernandobt8\/thrift,eamosov\/thrift,timse\/thrift,yongju-hong\/thrift,upfluence\/thrift,wingedkiwi\/thrift,roshan\/thrift,pinterest\/thrift,prashantv\/thrift,SirWellington\/thrift,fernandobt8\/thrift,collinmsn\/thrift,EasonYi\/thrift,dwnld\/thrift,BluechipSystems\/thrift,gadLinux\/thrift,vashstorm\/thrift,dongjiaqiang\/thrift,SentientTechnologies\/thrift,Sean-Der\/thrift,bufferoverflow\/thrift,siemens\/thrift,elloray\/thrift,bforbis\/thrift,cjmay\/thrift,jpgneves\/thrift,3013216027\/thrift,flandr\/thrift,huahang\/thrift,afds\/thrift,ochinchina\/thrift,joshuabezaleel\/thrift,tylertreat\/thrift,terminalcloud\/thrift,Sean-Der\/thrift,dongjiaqiang\/thrift,vashstorm\/thrift,alfredtofu\/thrift,zhaorui1\/thrift,afds\/thrift,JoeEnnever\/thrift,jeking3\/thrift,creker\/thrift,spicavigo\/thrift,markerickson-wf\/thrift,upfluence\/thrift,chenbaihu\/thrift,huahang\/thrift,msonnabaum\/thrift,bufferoverflow\/thrift,bitfinder\/thrift,BluechipSystems\/thrift,Jimdo\/thrift,Sean-Der\/thrift,bgould\/thrift,lion117\/lib-thrift,wingedkiwi\/thrift,jeking3\/thrift,project-zerus\/thrift,edvakf\/thrift,SuperAwesomeLTD\/thrift,bgould\/thrift,mway08\/thrift,theopolis\/thrift,chenbaihu\/thrift,huahang\/thrift,collinmsn\/thrift,akshaydeo\/thrift,bufferoverflow\/thrift,authbox-lib\/thrift,springheeledjak\/thrift,hcorg\/thrift,edvakf\/thrift,crisish\/thrift,dongjiaqiang\/thrift,mway08\/thrift,nsuke\/thrift,spicavigo\/thrift,prashantv\/thrift,cjmay\/thrift,chentao\/thrift,pinterest\/thrift,flamholz\/thrift,Fitbit\/thrift,alfredtofu\/thrift,springheeledjak\/thrift,mway08\/thrift,Fitbit\/thrift,joshuabezaleel\/thrift,Jimdo\/thrift,msonnabaum\/thrift,huahang\/thrift,ykwd\/thrift,selaselah\/thrift,authbox-lib\/thrift,crisish\/thrift,msonnabaum\/thrift,alfredtofu\/thrift,mindcandy\/thrift,chentao\/thrift,selaselah\/thrift,zzmp\/thrift,haruwo\/thrift-with-java-annotation-support,Fitbit\/thrift,Sean-Der\/thrift,chentao\/thrift,Pertino\/thrift,x1957\/thrift,theopolis\/thrift,zhaorui1\/thrift,prashantv\/thrift,evanweible-wf\/thrift,bgould\/thrift,mindcandy\/thrift,dongjiaqiang\/thrift,wingedkiwi\/thrift,springheeledjak\/thrift,zhaorui1\/thrift,siemens\/thrift,authbox-lib\/thrift,RobberPhex\/thrift,jeking3\/thrift,EasonYi\/thrift,springheeledjak\/thrift,dsturnbull\/thrift,afds\/thrift,alfredtofu\/thrift,bforbis\/thrift,spicavigo\/thrift,ykwd\/thrift,Jimdo\/thrift,EasonYi\/thrift,prathik\/thrift,spicavigo\/thrift,akshaydeo\/thrift,guodongxiaren\/thrift,wfxiang08\/thrift,elloray\/thrift,bholbrook73\/thrift,reTXT\/thrift,jackscott\/thrift,dtmuller\/thrift,lion117\/lib-thrift,zzmp\/thrift,nsuke\/thrift,nsuke\/thrift,SirWellington\/thrift,spicavigo\/thrift,RobberPhex\/thrift,SentientTechnologies\/thrift,jeking3\/thrift,Jens-G\/thrift,theopolis\/thrift,adamvduke\/thrift-adamd,mindcandy\/thrift,windofthesky\/thrift,3013216027\/thrift,rewardStyle\/apache.thrift,jpgneves\/thrift,bholbrook73\/thrift,edvakf\/thrift,ijuma\/thrift,ahnqirage\/thrift,eonezhang\/thrift,RobberPhex\/thrift,eamosov\/thrift,steven-sheffey-tungsten\/thrift,rmhartog\/thrift,cjmay\/thrift,prathik\/thrift,dongjiaqiang\/thrift,strava\/thrift,flamholz\/thrift,RobberPhex\/thrift,ochinchina\/thrift,huahang\/thrift,yongju-hong\/thrift,mway08\/thrift,Pertino\/thrift,reTXT\/thrift,jfarrell\/thrift,cjmay\/thrift,crisish\/thrift,i\/thrift,fernandobt8\/thrift,ijuma\/thrift,tanmaykm\/thrift,dcelasun\/thrift,Fitbit\/thrift,afds\/thrift,bholbrook73\/thrift,evanweible-wf\/thrift,upfluence\/thrift,x1957\/thrift,tanmaykm\/thrift,bitfinder\/thrift,reTXT\/thrift,tylertreat\/thrift,wfxiang08\/thrift,chentao\/thrift,EasonYi\/thrift,bforbis\/thrift,edvakf\/thrift,wfxiang08\/thrift,creker\/thrift,flamholz\/thrift,fernandobt8\/thrift,i\/thrift,edvakf\/thrift,eonezhang\/thrift,siemens\/thrift,ijuma\/thrift,zzmp\/thrift,eonezhang\/thrift,eamosov\/thrift,edvakf\/thrift,rmhartog\/thrift,Jens-G\/thrift,RobberPhex\/thrift,3013216027\/thrift,koofr\/thrift,dsturnbull\/thrift,Fitbit\/thrift,dcelasun\/thrift,mindcandy\/thrift,yongju-hong\/thrift,apache\/thrift,prashantv\/thrift,yongju-hong\/thrift,jfarrell\/thrift,dwnld\/thrift,apache\/thrift,gadLinux\/thrift,jfarrell\/thrift,x1957\/thrift,eonezhang\/thrift,bitemyapp\/thrift,Jens-G\/thrift,bholbrook73\/thrift,gadLinux\/thrift,bmiklautz\/thrift,rewardStyle\/apache.thrift,wfxiang08\/thrift,haruwo\/thrift-with-java-annotation-support,flamholz\/thrift,SentientTechnologies\/thrift,lion117\/lib-thrift,SirWellington\/thrift,weweadsl\/thrift,chenbaihu\/thrift,adamvduke\/thrift-adamd,afds\/thrift,bforbis\/thrift,RobberPhex\/thrift,Jens-G\/thrift,selaselah\/thrift,steven-sheffey-tungsten\/thrift,bufferoverflow\/thrift,haruwo\/thrift-with-java-annotation-support,adamvduke\/thrift-adamd,ochinchina\/thrift,apache\/thrift,edvakf\/thrift,project-zerus\/thrift,project-zerus\/thrift,hcorg\/thrift,chenbaihu\/thrift,guodongxiaren\/thrift,theopolis\/thrift,strava\/thrift,pinterest\/thrift,strava\/thrift,huahang\/thrift,dwnld\/thrift,apache\/thrift,Jimdo\/thrift,springheeledjak\/thrift,SentientTechnologies\/thrift,zzmp\/thrift,evanweible-wf\/thrift,cjmay\/thrift,vashstorm\/thrift,theopolis\/thrift,JoeEnnever\/thrift,Jens-G\/thrift,BluechipSystems\/thrift,strava\/thrift,gadLinux\/thrift,elloray\/thrift,ahnqirage\/thrift,eonezhang\/thrift,mindcandy\/thrift,weweadsl\/thrift,ijuma\/thrift,dongjiaqiang\/thrift,siemens\/thrift,vashstorm\/thrift,roshan\/thrift,bgould\/thrift,bmiklautz\/thrift,haruwo\/thrift-with-java-annotation-support,Fitbit\/thrift,eamosov\/thrift,i\/thrift,Pertino\/thrift,jackscott\/thrift,flamholz\/thrift,elloray\/thrift,NOMORECOFFEE\/thrift,siemens\/thrift,BluechipSystems\/thrift,chenbaihu\/thrift,huahang\/thrift,eonezhang\/thrift,chenbaihu\/thrift,chentao\/thrift,eonezhang\/thrift,terminalcloud\/thrift,alfredtofu\/thrift,nsuke\/thrift,Fitbit\/thrift,siemens\/thrift,chenbaihu\/thrift,prashantv\/thrift,adamvduke\/thrift-adamd,Fitbit\/thrift,yongju-hong\/thrift,rmhartog\/thrift,bholbrook73\/thrift,ochinchina\/thrift,jfarrell\/thrift,3013216027\/thrift,Jens-G\/thrift,tylertreat\/thrift,RobberPhex\/thrift,i\/thrift,mway08\/thrift,weweadsl\/thrift,zzmp\/thrift,tylertreat\/thrift,Fitbit\/thrift,chentao\/thrift,roshan\/thrift,adamvduke\/thrift-adamd,markerickson-wf\/thrift,springheeledjak\/thrift,reTXT\/thrift,joshuabezaleel\/thrift,markerickson-wf\/thrift,i\/thrift,akshaydeo\/thrift,dcelasun\/thrift,dwnld\/thrift,Jens-G\/thrift,cjmay\/thrift,dtmuller\/thrift,collinmsn\/thrift,project-zerus\/thrift,tanmaykm\/thrift,eamosov\/thrift,nsuke\/thrift,crisish\/thrift,cjmay\/thrift,windofthesky\/thrift,dtmuller\/thrift,eonezhang\/thrift,joshuabezaleel\/thrift,fernandobt8\/thrift,selaselah\/thrift,RobberPhex\/thrift,terminalcloud\/thrift,springheeledjak\/thrift,rmhartog\/thrift,akshaydeo\/thrift,ahnqirage\/thrift,apache\/thrift,bforbis\/thrift,EasonYi\/thrift,lion117\/lib-thrift,dtmuller\/thrift,mindcandy\/thrift,alfredtofu\/thrift,prashantv\/thrift,nsuke\/thrift,bforbis\/thrift,strava\/thrift,mindcandy\/thrift,mindcandy\/thrift,bufferoverflow\/thrift,bitemyapp\/thrift,yongju-hong\/thrift,bitfinder\/thrift,dtmuller\/thrift,selaselah\/thrift,yongju-hong\/thrift,SirWellington\/thrift,ijuma\/thrift,NOMORECOFFEE\/thrift,collinmsn\/thrift,eonezhang\/thrift,wingedkiwi\/thrift,dcelasun\/thrift,authbox-lib\/thrift,authbox-lib\/thrift,ochinchina\/thrift,edvakf\/thrift,edvakf\/thrift,vashstorm\/thrift,zzmp\/thrift,prathik\/thrift,tanmaykm\/thrift,EasonYi\/thrift,Jimdo\/thrift,yongju-hong\/thrift,i\/thrift,bitfinder\/thrift,elloray\/thrift,terminalcloud\/thrift,zhaorui1\/thrift,collinmsn\/thrift,prashantv\/thrift,jackscott\/thrift,ahnqirage\/thrift,hcorg\/thrift,Pertino\/thrift,cjmay\/thrift,jeking3\/thrift,jackscott\/thrift,bufferoverflow\/thrift,dsturnbull\/thrift,gadLinux\/thrift,dcelasun\/thrift,rewardStyle\/apache.thrift,Sean-Der\/thrift,terminalcloud\/thrift,msonnabaum\/thrift,SirWellington\/thrift,Jimdo\/thrift,upfluence\/thrift,x1957\/thrift,reTXT\/thrift,jpgneves\/thrift,dcelasun\/thrift,flamholz\/thrift,koofr\/thrift,markerickson-wf\/thrift,jfarrell\/thrift,bgould\/thrift,pinterest\/thrift,creker\/thrift,bitfinder\/thrift,eamosov\/thrift,weweadsl\/thrift,spicavigo\/thrift,EasonYi\/thrift,apache\/thrift,afds\/thrift,bitemyapp\/thrift,dsturnbull\/thrift,adamvduke\/thrift-adamd,theopolis\/thrift,SentientTechnologies\/thrift,yongju-hong\/thrift,chentao\/thrift,x1957\/thrift,eamosov\/thrift,bforbis\/thrift,jeking3\/thrift,mway08\/thrift,prashantv\/thrift,joshuabezaleel\/thrift,x1957\/thrift,fernandobt8\/thrift,project-zerus\/thrift,timse\/thrift,bitemyapp\/thrift,wfxiang08\/thrift,timse\/thrift,collinmsn\/thrift,EasonYi\/thrift,dcelasun\/thrift,bholbrook73\/thrift,timse\/thrift,zhaorui1\/thrift,ochinchina\/thrift,apache\/thrift,reTXT\/thrift,dwnld\/thrift,wingedkiwi\/thrift,BluechipSystems\/thrift,dongjiaqiang\/thrift,tylertreat\/thrift,selaselah\/thrift,Jens-G\/thrift,strava\/thrift,strava\/thrift,BluechipSystems\/thrift,bmiklautz\/thrift,steven-sheffey-tungsten\/thrift,reTXT\/thrift,apache\/thrift,bgould\/thrift,eamosov\/thrift,SentientTechnologies\/thrift,bitemyapp\/thrift,cjmay\/thrift,chentao\/thrift,bufferoverflow\/thrift,lion117\/lib-thrift,zzmp\/thrift,alfredtofu\/thrift,bgould\/thrift,prathik\/thrift,bholbrook73\/thrift,JoeEnnever\/thrift,wingedkiwi\/thrift,bitemyapp\/thrift,apache\/thrift,alfredtofu\/thrift,i\/thrift,markerickson-wf\/thrift"} {"commit":"1c5fa955cdf5999bcb941130f02528090a37981e","old_file":"src\/include\/access\/heaptuple.h","new_file":"src\/include\/access\/heaptuple.h","old_contents":"","new_contents":"\/*-------------------------------------------------------------------------\n *\n * heaptuple.h--\n * \n *\n *\n * Copyright (c) 1994, Regents of the University of California\n *\n * $Id: heaptuple.h,v 1.1 1996\/10\/18 17:58:33 scrappy Exp $\n *\n *-------------------------------------------------------------------------\n *\/\n#ifndef\tHEAPTUPLE_H\n#define HEAPTUPLE_H\n\nextern char *heap_getattr(HeapTuple tup,\n Buffer b,\n int attnum,\n TupleDesc tupleDesc,\n bool *isnull);\n\n#endif\t\/* HEAP_TUPLE_H *\/ \n","subject":"Add prototype for heap_getattr() to quiet compiler","message":"Add prototype for heap_getattr() to quiet compiler\n","lang":"C","license":"mpl-2.0","repos":"techdragon\/Postgres-XL,kaknikhil\/gpdb,yazun\/postgres-xl,arcivanov\/postgres-xl,zaksoup\/gpdb,atris\/gpdb,janebeckman\/gpdb,rvs\/gpdb,oberstet\/postgres-xl,xuegang\/gpdb,zaksoup\/gpdb,jmcatamney\/gpdb,jmcatamney\/gpdb,zaksoup\/gpdb,randomtask1155\/gpdb,lpetrov-pivotal\/gpdb,yuanzhao\/gpdb,greenplum-db\/gpdb,pavanvd\/postgres-xl,xuegang\/gpdb,zeroae\/postgres-xl,greenplum-db\/gpdb,0x0FFF\/gpdb,oberstet\/postgres-xl,zaksoup\/gpdb,xinzweb\/gpdb,rvs\/gpdb,kaknikhil\/gpdb,ahachete\/gpdb,xinzweb\/gpdb,xinzweb\/gpdb,Chibin\/gpdb,postmind-net\/postgres-xl,edespino\/gpdb,royc1\/gpdb,zeroae\/postgres-xl,ahachete\/gpdb,xuegang\/gpdb,chrishajas\/gpdb,techdragon\/Postgres-XL,kaknikhil\/gpdb,xuegang\/gpdb,0x0FFF\/gpdb,rubikloud\/gpdb,royc1\/gpdb,randomtask1155\/gpdb,cjcjameson\/gpdb,adam8157\/gpdb,ashwinstar\/gpdb,rvs\/gpdb,kaknikhil\/gpdb,Quikling\/gpdb,Chibin\/gpdb,tpostgres-projects\/tPostgres,jmcatamney\/gpdb,oberstet\/postgres-xl,rubikloud\/gpdb,zaksoup\/gpdb,tangp3\/gpdb,pavanvd\/postgres-xl,ovr\/postgres-xl,tangp3\/gpdb,atris\/gpdb,greenplum-db\/gpdb,zeroae\/postgres-xl,rvs\/gpdb,yuanzhao\/gpdb,cjcjameson\/gpdb,lpetrov-pivotal\/gpdb,chrishajas\/gpdb,rvs\/gpdb,chrishajas\/gpdb,greenplum-db\/gpdb,50wu\/gpdb,CraigHarris\/gpdb,royc1\/gpdb,CraigHarris\/gpdb,ahachete\/gpdb,yuanzhao\/gpdb,techdragon\/Postgres-XL,royc1\/gpdb,yuanzhao\/gpdb,lisakowen\/gpdb,tangp3\/gpdb,tangp3\/gpdb,lpetrov-pivotal\/gpdb,xinzweb\/gpdb,zeroae\/postgres-xl,lintzc\/gpdb,xuegang\/gpdb,0x0FFF\/gpdb,kaknikhil\/gpdb,Postgres-XL\/Postgres-XL,Quikling\/gpdb,lisakowen\/gpdb,atris\/gpdb,postmind-net\/postgres-xl,ashwinstar\/gpdb,foyzur\/gpdb,50wu\/gpdb,yuanzhao\/gpdb,chrishajas\/gpdb,snaga\/postgres-xl,CraigHarris\/gpdb,zeroae\/postgres-xl,ahachete\/gpdb,arcivanov\/postgres-xl,cjcjameson\/gpdb,Quikling\/gpdb,cjcjameson\/gpdb,tpostgres-projects\/tPostgres,randomtask1155\/gpdb,foyzur\/gpdb,CraigHarris\/gpdb,rubikloud\/gpdb,Chibin\/gpdb,edespino\/gpdb,postmind-net\/postgres-xl,greenplum-db\/gpdb,rvs\/gpdb,lintzc\/gpdb,randomtask1155\/gpdb,lisakowen\/gpdb,cjcjameson\/gpdb,techdragon\/Postgres-XL,ashwinstar\/gpdb,CraigHarris\/gpdb,randomtask1155\/gpdb,zaksoup\/gpdb,ovr\/postgres-xl,arcivanov\/postgres-xl,lisakowen\/gpdb,atris\/gpdb,lintzc\/gpdb,cjcjameson\/gpdb,chrishajas\/gpdb,pavanvd\/postgres-xl,cjcjameson\/gpdb,pavanvd\/postgres-xl,adam8157\/gpdb,kaknikhil\/gpdb,xuegang\/gpdb,jmcatamney\/gpdb,yuanzhao\/gpdb,snaga\/postgres-xl,lintzc\/gpdb,rvs\/gpdb,atris\/gpdb,adam8157\/gpdb,kmjungersen\/PostgresXL,kaknikhil\/gpdb,foyzur\/gpdb,foyzur\/gpdb,janebeckman\/gpdb,tpostgres-projects\/tPostgres,yuanzhao\/gpdb,Quikling\/gpdb,tpostgres-projects\/tPostgres,lpetrov-pivotal\/gpdb,Quikling\/gpdb,snaga\/postgres-xl,randomtask1155\/gpdb,CraigHarris\/gpdb,tangp3\/gpdb,lintzc\/gpdb,techdragon\/Postgres-XL,lisakowen\/gpdb,xuegang\/gpdb,0x0FFF\/gpdb,Postgres-XL\/Postgres-XL,royc1\/gpdb,adam8157\/gpdb,CraigHarris\/gpdb,lpetrov-pivotal\/gpdb,randomtask1155\/gpdb,janebeckman\/gpdb,CraigHarris\/gpdb,ahachete\/gpdb,xinzweb\/gpdb,Chibin\/gpdb,0x0FFF\/gpdb,edespino\/gpdb,50wu\/gpdb,postmind-net\/postgres-xl,Quikling\/gpdb,adam8157\/gpdb,xinzweb\/gpdb,janebeckman\/gpdb,rubikloud\/gpdb,lintzc\/gpdb,tpostgres-projects\/tPostgres,Chibin\/gpdb,chrishajas\/gpdb,kmjungersen\/PostgresXL,kmjungersen\/PostgresXL,lintzc\/gpdb,tangp3\/gpdb,yazun\/postgres-xl,janebeckman\/gpdb,rubikloud\/gpdb,50wu\/gpdb,50wu\/gpdb,edespino\/gpdb,ashwinstar\/gpdb,jmcatamney\/gpdb,ahachete\/gpdb,xuegang\/gpdb,ahachete\/gpdb,Quikling\/gpdb,lintzc\/gpdb,Chibin\/gpdb,postmind-net\/postgres-xl,pavanvd\/postgres-xl,yuanzhao\/gpdb,edespino\/gpdb,jmcatamney\/gpdb,lpetrov-pivotal\/gpdb,janebeckman\/gpdb,rvs\/gpdb,arcivanov\/postgres-xl,Postgres-XL\/Postgres-XL,0x0FFF\/gpdb,cjcjameson\/gpdb,lpetrov-pivotal\/gpdb,yazun\/postgres-xl,lintzc\/gpdb,ashwinstar\/gpdb,Quikling\/gpdb,adam8157\/gpdb,snaga\/postgres-xl,ovr\/postgres-xl,foyzur\/gpdb,tangp3\/gpdb,rubikloud\/gpdb,janebeckman\/gpdb,ashwinstar\/gpdb,50wu\/gpdb,atris\/gpdb,chrishajas\/gpdb,greenplum-db\/gpdb,jmcatamney\/gpdb,ovr\/postgres-xl,50wu\/gpdb,foyzur\/gpdb,edespino\/gpdb,snaga\/postgres-xl,rubikloud\/gpdb,royc1\/gpdb,janebeckman\/gpdb,kmjungersen\/PostgresXL,oberstet\/postgres-xl,adam8157\/gpdb,chrishajas\/gpdb,atris\/gpdb,kaknikhil\/gpdb,lisakowen\/gpdb,Chibin\/gpdb,zaksoup\/gpdb,ahachete\/gpdb,tangp3\/gpdb,oberstet\/postgres-xl,royc1\/gpdb,50wu\/gpdb,xinzweb\/gpdb,foyzur\/gpdb,edespino\/gpdb,kaknikhil\/gpdb,yuanzhao\/gpdb,greenplum-db\/gpdb,rubikloud\/gpdb,ashwinstar\/gpdb,xuegang\/gpdb,CraigHarris\/gpdb,Quikling\/gpdb,kaknikhil\/gpdb,zaksoup\/gpdb,edespino\/gpdb,Chibin\/gpdb,royc1\/gpdb,kmjungersen\/PostgresXL,jmcatamney\/gpdb,Postgres-XL\/Postgres-XL,Postgres-XL\/Postgres-XL,edespino\/gpdb,janebeckman\/gpdb,yuanzhao\/gpdb,ashwinstar\/gpdb,Chibin\/gpdb,atris\/gpdb,yazun\/postgres-xl,0x0FFF\/gpdb,yazun\/postgres-xl,cjcjameson\/gpdb,adam8157\/gpdb,randomtask1155\/gpdb,Quikling\/gpdb,xinzweb\/gpdb,janebeckman\/gpdb,0x0FFF\/gpdb,lisakowen\/gpdb,lpetrov-pivotal\/gpdb,rvs\/gpdb,rvs\/gpdb,edespino\/gpdb,arcivanov\/postgres-xl,Chibin\/gpdb,ovr\/postgres-xl,lisakowen\/gpdb,foyzur\/gpdb,cjcjameson\/gpdb,greenplum-db\/gpdb,arcivanov\/postgres-xl"} {"commit":"fadc5f679f9aae27b623c95f91208b2f139e089e","old_file":"tests\/embedded\/main.c","new_file":"tests\/embedded\/main.c","old_contents":"\/*\n * Copyright © 2009 CNRS, INRIA, Université Bordeaux 1\n * Copyright © 2009 Cisco Systems, Inc. All rights reserved.\n * See COPYING in top-level directory.\n *\/\n\n#include \n#include \n\nint main(int argc, char *argv[])\n{\n mytest_hwloc_topology_t topology;\n unsigned depth;\n hwloc_cpuset_t cpu_set;\n\n \/* Just call a bunch of functions to see if we can link and run *\/\n\n cpu_set = mytest_hwloc_cpuset_alloc();\n mytest_hwloc_topology_init(&topology);\n mytest_hwloc_topology_load(topology);\n depth = mytest_hwloc_topology_get_depth(topology);\n printf(\"Max depth: %u\\n\", depth);\n mytest_hwloc_topology_destroy(topology);\n mytest_hwloc_cpuset_free(cpu_set);\n\n return 0;\n}\n","new_contents":"\/*\n * Copyright © 2009 CNRS, INRIA, Université Bordeaux 1\n * Copyright © 2009 Cisco Systems, Inc. All rights reserved.\n * See COPYING in top-level directory.\n *\/\n\n#include \n#include \n\nint main(int argc, char *argv[])\n{\n mytest_hwloc_topology_t topology;\n unsigned depth;\n hwloc_cpuset_t cpu_set;\n\n \/* Just call a bunch of functions to see if we can link and run *\/\n\n printf(\"*** Test 1: cpuset alloc\\n\");\n cpu_set = mytest_hwloc_cpuset_alloc();\n printf(\"*** Test 2: topology init\\n\");\n mytest_hwloc_topology_init(&topology);\n printf(\"*** Test 3: topology load\\n\");\n mytest_hwloc_topology_load(topology);\n printf(\"*** Test 4: topology get depth\\n\");\n depth = mytest_hwloc_topology_get_depth(topology);\n printf(\" Max depth: %u\\n\", depth);\n printf(\"*** Test 5: topology destroy\\n\");\n mytest_hwloc_topology_destroy(topology);\n printf(\"*** Test 6: cpuset free\\n\");\n mytest_hwloc_cpuset_free(cpu_set);\n\n return 0;\n}\n","subject":"Add some more print statements to this test, ju...","message":"Add some more print statements to this test, ju...\n\nAdd some more print statements to this test, just to help\ndifferentiate the output when debugging is enabled\n\nThis commit was SVN r1752.\n","lang":"C","license":"bsd-3-clause","repos":"ggouaillardet\/hwloc,shekkbuilder\/hwloc,shekkbuilder\/hwloc,ggouaillardet\/hwloc,ggouaillardet\/hwloc,shekkbuilder\/hwloc,ggouaillardet\/hwloc,shekkbuilder\/hwloc"} {"commit":"a13c9cb6fcb83f58c111ec35cfe629e74cff13c3","old_file":"main.c","new_file":"main.c","old_contents":"#include \n#include \n#include \n#include \"julina.h\"\n\nint main(int argc, char **argv) {\n srand(time(NULL));\n\n double aa[] = {2, 0, 1,\n -2, 3, 4,\n -5, 5, 6};\n Matrix *a = new_matrix(aa, 3, 3);\n Matrix *ain = inverse(a);\n\n double bb[] = {1, -1, -2,\n 2, 4, 5,\n 6, 0, -3};\n Matrix *b = new_matrix(bb, 3, 3);\n Matrix *bin = inverse(b);\n\n print_matrix(a);\n if (ain == ERR_SINGULAR_MATRIX_INVERSE) {\n printf(\"Inverse of singular matrix.\\n\");\n } else {\n print_matrix(ain);\n }\n\n print_matrix(b);\n if (bin == ERR_SINGULAR_MATRIX_INVERSE) {\n printf(\"Inverse of singular matrix.\\n\");\n } else {\n print_matrix(bin);\n }\n\n free_matrix(a);\n free_matrix(ain);\n free_matrix(b);\n free_matrix(bin);\n}\n","new_contents":"#include \n#include \n#include \n#include \"julina.h\"\n\n#define VARIABLE_START 'A'\n#define VARIABLE_COUNT 26\nstatic Matrix *variables[VARIABLE_COUNT];\n\nMatrix *get_variable(int c) {\n if (c < 0 || c >= VARIABLE_COUNT) {\n return NULL;\n }\n return variables[c - VARIABLE_START];\n}\n\n\/\/ Returns -1 on failure, 0 on success.\nint set_variable(int c, Matrix *a) {\n if (c < 0 || c >= VARIABLE_COUNT) {\n return -1;\n }\n variables[c - VARIABLE_START] = a;\n return 0;\n}\n\n\/*\n * Format:\n * 3 2 : 1 2 3 4 5 6\n * Yields:\n * [[1 2]\n * [3 4]\n * [5 6]]\n *\/\nMatrix *read_matrix(char *s) {\n int rows, cols, size;\n rows = strtol(s, &s, 10);\n cols = strtol(s, &s, 10);\n size = rows * cols;\n double aa[size];\n s += 3; \/\/ space colon space\n int i;\n for (i = 0; i < size; i++) {\n aa[i] = strtol(s, &s, 10);\n }\n return new_matrix(aa, rows, cols);\n}\n\nint main(int argc, char **argv) {\n srand(time(NULL));\n\n Matrix *a = read_matrix(\"6 1 : 1 0 0 0 0 1\");\n print_matrix(a);\n free_matrix(a);\n}\n","subject":"Add variables and reading from string.","message":"Add variables and reading from string.\n","lang":"C","license":"mit","repos":"jlubi333\/Julina"} {"commit":"27caed992cd71fa50dcb6576b31f8a25b4611bee","old_file":"src\/include\/uapi\/libct-errors.h","new_file":"src\/include\/uapi\/libct-errors.h","old_contents":"#ifndef __LIBCT_ERRORS_H__\n#define __LIBCT_ERRORS_H__\n\/*\n * This file contains errors, that can be returned from various\n * library calls\n *\/\n\n\/* Generic *\/\n#define LCTERR_BADCTSTATE\t-2\t\/* Bad container state *\/\n#define LCTERR_BADFSTYPE\t-3\t\/* Bad FS type *\/\n#define LCTERR_BADNETTYPE\t-4\t\/* Bad Net type *\/\n#define LCTERR_BADOPTION\t-5\t\/* Bad option requested *\/\n\n\/* RPC-specific ones *\/\n#define LCTERR_BADCTRID\t\t-42\t\/* Bad container remote ID given *\/\n#define LCTERR_BADCTRNAME\t-43\t\/* Bad name on open *\/\n#define LCTERR_RPCUNKNOWN\t-44\t\/* Remote problem , but err is not given *\/\n#define LCTERR_RPCCOMM\t\t-45\t\/* Error communicating via channel *\/\n\n#endif \/* __LIBCT_ERRORS_H__ *\/\n","new_contents":"#ifndef __LIBCT_ERRORS_H__\n#define __LIBCT_ERRORS_H__\n\/*\n * This file contains errors, that can be returned from various\n * library calls\n *\/\n\n\/*\n * -1 is \"reserved\" for generic \"something went wrong\" result\n * since this value can be (well, is) widely explicitly used\n * all over the code.\n *\/\n\n\/* Generic *\/\n#define LCTERR_BADCTSTATE\t-2\t\/* Bad container state *\/\n#define LCTERR_BADFSTYPE\t-3\t\/* Bad FS type *\/\n#define LCTERR_BADNETTYPE\t-4\t\/* Bad Net type *\/\n#define LCTERR_BADOPTION\t-5\t\/* Bad option requested *\/\n\n\/* RPC-specific ones *\/\n#define LCTERR_BADCTRID\t\t-42\t\/* Bad container remote ID given *\/\n#define LCTERR_BADCTRNAME\t-43\t\/* Bad name on open *\/\n#define LCTERR_RPCUNKNOWN\t-44\t\/* Remote problem , but err is not given *\/\n#define LCTERR_RPCCOMM\t\t-45\t\/* Error communicating via channel *\/\n\n#endif \/* __LIBCT_ERRORS_H__ *\/\n","subject":"Add comment about \"reserved\" -1 value","message":"err: Add comment about \"reserved\" -1 value\n\nSigned-off-by: Pavel Emelyanov \n","lang":"C","license":"apache-2.0","repos":"LK4D4\/libct,avagin\/libct,xemul\/libct,cyrillos\/xemul-libct,xemul\/libct,cyrillos\/xemul-libct,LK4D4\/libct,hallyn\/libct,cyrillos\/xemul-libct,xemul\/libct,xemul\/libct,cyrillos\/xemul-libct,hallyn\/libct,avagin\/libct,avagin\/libct,hallyn\/libct,LK4D4\/libct"} {"commit":"3790101271d3fb24db76257b9ac491e7b6d4c4e4","old_file":"CPDAcknowledgements\/CPDStyle.h","new_file":"CPDAcknowledgements\/CPDStyle.h","old_contents":"@import Foundation;\n\nNS_ASSUME_NONNULL_BEGIN\n\n\/\/\/ Allows you to customize the style for the the view\n\/\/\/ controllers for your libraries.\n\n@interface CPDStyle : NSObject\n\n\/\/\/ HTML provided to the view controller, it's nothing too fancy\n\/\/\/ just a string which has a collection of string replacements on it.\n\/\/\/\n\/\/\/ This is the current default:\n\/\/\/ {{STYLESHEET}}<\/head>{{HEADER}}

{{BODY}}<\/p><\/body><\/html>\n\n@property (nonatomic, copy) NSString * _Nullable libraryHTML;\n\n\/\/\/ CSS for styling your library\n\/\/\/\n\/\/\/ This is the current default:\n\/\/\/