{"commit":"d1d2f358c84830e4266273cb1d2ab5179695b0e1","old_file":"src\/util-events.ads","new_file":"src\/util-events.ads","old_contents":"-----------------------------------------------------------------------\n-- util-events -- Events\n-- Copyright (C) 2001, 2002, 2003, 2009, 2010 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Ada.Calendar;\npackage Util.Events is\n\n type Event is tagged private;\n\n -- Get the time identifying when the event was created.\n function Get_Time (Ev : Event) return Ada.Calendar.Time;\n\n type Event_Listener is limited interface;\n\nprivate\n\n type Event is tagged record\n Date : Ada.Calendar.Time := Ada.Calendar.Clock;\n end record;\n\nend Util.Events;\n","new_contents":"-----------------------------------------------------------------------\n-- util-events -- Events\n-- Copyright (C) 2001, 2002, 2003, 2009, 2010, 2011 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Ada.Calendar;\npackage Util.Events is\n\n type Event is tagged limited private;\n\n -- Get the time identifying when the event was created.\n function Get_Time (Ev : Event) return Ada.Calendar.Time;\n\n type Event_Listener is limited interface;\n\nprivate\n\n type Event is tagged limited record\n Date : Ada.Calendar.Time := Ada.Calendar.Clock;\n end record;\n\nend Util.Events;\n","subject":"Change the Event type to a limited type","message":"Change the Event type to a limited type\n","lang":"Ada","license":"apache-2.0","repos":"Letractively\/ada-util,flottokarotto\/ada-util,Letractively\/ada-util,flottokarotto\/ada-util"} {"commit":"03237add331b06e61a262343dcd94772313315e7","old_file":"src\/gen-commands-info.ads","new_file":"src\/gen-commands-info.ads","old_contents":"-----------------------------------------------------------------------\n-- gen-commands-info -- Collect and give information about the project\n-- Copyright (C) 2011 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Info is\n\n -- ------------------------------\n -- Project Information Command\n -- ------------------------------\n -- This command collects information about the project and print it.\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n procedure Execute (Cmd : in Command;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n procedure Help (Cmd : in Command;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Info;\n","new_contents":"-----------------------------------------------------------------------\n-- gen-commands-info -- Collect and give information about the project\n-- Copyright (C) 2011, 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Info is\n\n -- ------------------------------\n -- Project Information Command\n -- ------------------------------\n -- This command collects information about the project and print it.\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n overriding\n procedure Execute (Cmd : in Command;\n Name : in String;\n Args : in Argument_List'Class;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Cmd : in Command;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Info;\n","subject":"Update to use the new command implementation","message":"Update to use the new command implementation\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/dynamo,stcarrez\/dynamo,stcarrez\/dynamo"} {"commit":"d0ab12f36377fddc0c022062223506a1dc863dbd","old_file":"src\/gen-commands-docs.ads","new_file":"src\/gen-commands-docs.ads","old_contents":"-----------------------------------------------------------------------\n-- gen-commands-docs -- Extract and generate documentation for the project\n-- Copyright (C) 2012 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Docs is\n\n -- ------------------------------\n -- Documentation Command\n -- ------------------------------\n -- This command extracts documentation from the project files and collect them\n -- together to build the project documentation.\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n procedure Execute (Cmd : in Command;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n procedure Help (Cmd : in Command;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Docs;\n","new_contents":"-----------------------------------------------------------------------\n-- gen-commands-docs -- Extract and generate documentation for the project\n-- Copyright (C) 2012, 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Docs is\n\n -- ------------------------------\n -- Documentation Command\n -- ------------------------------\n -- This command extracts documentation from the project files and collect them\n -- together to build the project documentation.\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n overriding\n procedure Execute (Cmd : in Command;\n Name : in String;\n Args : in Argument_List'Class;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Cmd : in Command;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Docs;\n","subject":"Update to use the new command implementation","message":"Update to use the new command implementation\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/dynamo,stcarrez\/dynamo,stcarrez\/dynamo"} {"commit":"ea4dd9f87719743362a2abfacd4abd89ef217cf7","old_file":"src\/gen-commands-page.ads","new_file":"src\/gen-commands-page.ads","old_contents":"-----------------------------------------------------------------------\n-- gen-commands-page -- Page creation command for dynamo\n-- Copyright (C) 2011, 2017, 2018 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Page is\n\n -- ------------------------------\n -- Page Creation Command\n -- ------------------------------\n -- This command adds a XHTML page to the web application.\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n overriding\n procedure Execute (Cmd : in out Command;\n Name : in String;\n Args : in Argument_List'Class;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Cmd : in out Command;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Page;\n","new_contents":"-----------------------------------------------------------------------\n-- gen-commands-page -- Page creation command for dynamo\n-- Copyright (C) 2011, 2017, 2018, 2019 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Page is\n\n -- ------------------------------\n -- Page Creation Command\n -- ------------------------------\n -- This command adds a XHTML page to the web application.\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n overriding\n procedure Execute (Cmd : in out Command;\n Name : in String;\n Args : in Argument_List'Class;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Cmd : in out Command;\n Name : in String;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Page;\n","subject":"Add Name parameter to the Help procedure","message":"Add Name parameter to the Help procedure\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/dynamo,stcarrez\/dynamo,stcarrez\/dynamo"} {"commit":"21f82397c418c064056bbe9a13f43e47129653ff","old_file":"awa\/plugins\/awa-questions\/regtests\/awa-questions-services-tests.ads","new_file":"awa\/plugins\/awa-questions\/regtests\/awa-questions-services-tests.ads","old_contents":"-----------------------------------------------------------------------\n-- awa-questions-services-tests -- Unit tests for question service\n-- Copyright (C) 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\nwith AWA.Tests;\n\npackage AWA.Questions.Services.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new AWA.Tests.Test with record\n Manager : AWA.Questions.Services.Question_Service_Access;\n end record;\n\n -- Test creation of a question.\n procedure Test_Create_Question (T : in out Test);\n\n -- Test list of questions.\n procedure Test_List_Questions (T : in out Test);\n\nend AWA.Questions.Services.Tests;\n","new_contents":"-----------------------------------------------------------------------\n-- awa-questions-services-tests -- Unit tests for question service\n-- Copyright (C) 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\nwith AWA.Tests;\n\npackage AWA.Questions.Services.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new AWA.Tests.Test with record\n Manager : AWA.Questions.Services.Question_Service_Access;\n end record;\n\n -- Test creation of a question.\n procedure Test_Create_Question (T : in out Test);\n\n -- Test list of questions.\n procedure Test_List_Questions (T : in out Test);\n\n -- Test anonymous user voting for a question.\n procedure Test_Question_Vote_Anonymous (T : in out Test);\n\n -- Test voting for a question.\n procedure Test_Question_Vote (T : in out Test);\n\nprivate\n\n -- Do a vote on a question through the question vote bean.\n procedure Do_Vote (T : in out Test);\n\nend AWA.Questions.Services.Tests;\n","subject":"Add unit tests for the questionVote bean","message":"Add unit tests for the questionVote bean\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa"} {"commit":"024e51ab76465425bc7eb8a738bb5b64cd1f45ea","old_file":"src\/gen-commands-layout.ads","new_file":"src\/gen-commands-layout.ads","old_contents":"-----------------------------------------------------------------------\n-- gen-commands-layout -- Layout creation command for dynamo\n-- Copyright (C) 2011 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Layout is\n\n -- ------------------------------\n -- Layout Creation Command\n -- ------------------------------\n -- This command adds a XHTML layout to the web application.\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n procedure Execute (Cmd : in Command;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n procedure Help (Cmd : in Command;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Layout;\n","new_contents":"-----------------------------------------------------------------------\n-- gen-commands-layout -- Layout creation command for dynamo\n-- Copyright (C) 2011, 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Layout is\n\n -- ------------------------------\n -- Layout Creation Command\n -- ------------------------------\n -- This command adds a XHTML layout to the web application.\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n overriding\n procedure Execute (Cmd : in Command;\n Name : in String;\n Args : in Argument_List'Class;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Cmd : in Command;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Layout;\n","subject":"Update to use the new command implementation","message":"Update to use the new command implementation\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/dynamo,stcarrez\/dynamo,stcarrez\/dynamo"} {"commit":"9a00519d1c63d366087a34d065172766c6535a39","old_file":"mat\/src\/mat-readers-files.ads","new_file":"mat\/src\/mat-readers-files.ads","old_contents":"-----------------------------------------------------------------------\n-- mat-readers-files -- Reader for files\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Util.Streams.Buffered;\nwith Util.Streams.Files;\npackage MAT.Readers.Files is\n\n type File_Reader_Type is new Manager_Base with private;\n\n -- Open the file.\n procedure Open (Reader : in out File_Reader_Type;\n Path : in String);\n\n procedure Read_All (Reader : in out File_Reader_Type);\n\nprivate\n\n type File_Reader_Type is new Manager_Base with record\n File : aliased Util.Streams.Files.File_Stream;\n Stream : Util.Streams.Buffered.Buffered_Stream;\n end record;\n\nend MAT.Readers.Files;\n","new_contents":"-----------------------------------------------------------------------\n-- mat-readers-files -- Reader for files\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Util.Streams.Buffered;\nwith Util.Streams.Files;\nwith MAT.Readers.Streams;\npackage MAT.Readers.Files is\n\n type File_Reader_Type is new MAT.Readers.Streams.Stream_Reader_Type with private;\n\n -- Open the file.\n procedure Open (Reader : in out File_Reader_Type;\n Path : in String);\n\nprivate\n\n type File_Reader_Type is new MAT.Readers.Streams.Stream_Reader_Type with record\n File : aliased Util.Streams.Files.File_Stream;\n end record;\n\nend MAT.Readers.Files;\n","subject":"Use the MAT.Readers.Streams package for the file reader implementation","message":"Use the MAT.Readers.Streams package for the file reader implementation\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/mat,stcarrez\/mat,stcarrez\/mat"} {"commit":"a8a3b7f6797a6c27d37d3031e130f52fec143a91","old_file":"regtests\/ado-drivers-tests.ads","new_file":"regtests\/ado-drivers-tests.ads","old_contents":"-----------------------------------------------------------------------\n-- ado-drivers-tests -- Unit tests for database drivers\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\npackage ADO.Drivers.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n -- Test the Get_Config operation.\n procedure Test_Get_Config (T : in out Test);\n\n -- Test the Get_Driver operation.\n procedure Test_Get_Driver (T : in out Test);\n\n -- Test loading some invalid database driver.\n procedure Test_Load_Invalid_Driver (T : in out Test);\n\n -- Test the Get_Driver_Index operation.\n procedure Test_Get_Driver_Index (T : in out Test);\n\nend ADO.Drivers.Tests;\n","new_contents":"-----------------------------------------------------------------------\n-- ado-drivers-tests -- Unit tests for database drivers\n-- Copyright (C) 2014, 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\npackage ADO.Drivers.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n -- Test the Get_Config operation.\n procedure Test_Get_Config (T : in out Test);\n\n -- Test the Get_Driver operation.\n procedure Test_Get_Driver (T : in out Test);\n\n -- Test loading some invalid database driver.\n procedure Test_Load_Invalid_Driver (T : in out Test);\n\n -- Test the Get_Driver_Index operation.\n procedure Test_Get_Driver_Index (T : in out Test);\n\n -- Test the Set_Connection procedure with several error cases.\n procedure Test_Set_Connection_Error (T : in out Test);\n\nend ADO.Drivers.Tests;\n","subject":"Declare the Test_Set_Connection_Error test procedure","message":"Declare the Test_Set_Connection_Error test procedure\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-ado"} {"commit":"6ae7c11cfd399db0f9bf3285cc2a41ac08658d44","old_file":"tools\/druss-commands-status.ads","new_file":"tools\/druss-commands-status.ads","old_contents":"-----------------------------------------------------------------------\n-- druss-commands-status -- Druss status commands\n-- Copyright (C) 2017, 2018 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Druss.Commands.Status is\n\n type Command_Type is new Druss.Commands.Drivers.Command_Type with null record;\n\n procedure Do_Status (Command : in Command_Type;\n Args : in Argument_List'Class;\n Context : in out Context_Type);\n\n -- Execute a status command to report information about the Bbox.\n overriding\n procedure Execute (Command : in out Command_Type;\n Name : in String;\n Args : in Argument_List'Class;\n Context : in out Context_Type);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Command : in Command_Type;\n Context : in out Context_Type);\n\nend Druss.Commands.Status;\n","new_contents":"-----------------------------------------------------------------------\n-- druss-commands-status -- Druss status commands\n-- Copyright (C) 2017, 2018, 2019 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Druss.Commands.Status is\n\n type Command_Type is new Druss.Commands.Drivers.Command_Type with null record;\n\n procedure Do_Status (Command : in Command_Type;\n Args : in Argument_List'Class;\n Context : in out Context_Type);\n\n -- Execute a status command to report information about the Bbox.\n overriding\n procedure Execute (Command : in out Command_Type;\n Name : in String;\n Args : in Argument_List'Class;\n Context : in out Context_Type);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Command : in out Command_Type;\n Context : in out Context_Type);\n\nend Druss.Commands.Status;\n","subject":"Change Help command to accept in out command","message":"Change Help command to accept in out command\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/bbox-ada-api"} {"commit":"655325db4f269f9472a62ac3a5ae49763ffaae64","old_file":"mat\/src\/mat-readers-streams.ads","new_file":"mat\/src\/mat-readers-streams.ads","old_contents":"-----------------------------------------------------------------------\n-- mat-readers-streams -- Reader for streams\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Util.Streams.Buffered;\npackage MAT.Readers.Streams is\n\n type Stream_Reader_Type is new Manager_Base with private;\n\n -- Read the events from the stream and stop when the end of the stream is reached.\n procedure Read_All (Reader : in out Stream_Reader_Type);\n\n -- Read a message from the stream.\n overriding\n procedure Read_Message (Reader : in out Stream_Reader_Type;\n Msg : in out Message);\n\nprivate\n\n type Stream_Reader_Type is new Manager_Base with record\n Stream : Util.Streams.Buffered.Buffered_Stream;\n end record;\n\nend MAT.Readers.Streams;\n","new_contents":"-----------------------------------------------------------------------\n-- mat-readers-streams -- Reader for streams\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Util.Streams.Buffered;\npackage MAT.Readers.Streams is\n\n type Stream_Reader_Type is new Manager_Base with private;\n\n -- Read the events from the stream and stop when the end of the stream is reached.\n procedure Read_All (Reader : in out Stream_Reader_Type);\n\n -- Read a message from the stream.\n overriding\n procedure Read_Message (Reader : in out Stream_Reader_Type;\n Msg : in out Message);\n\nprivate\n\n type Stream_Reader_Type is new Manager_Base with record\n Stream : Util.Streams.Buffered.Buffered_Stream;\n Data : Util.Streams.Buffered.Buffer_Access;\n end record;\n\nend MAT.Readers.Streams;\n","subject":"Add the data buffer in the Stream_Reader_Type type","message":"Add the data buffer in the Stream_Reader_Type type\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/mat,stcarrez\/mat,stcarrez\/mat"} {"commit":"210d73c3b779f1568daf80f23ca6bd280a3e65cc","old_file":"awa\/regtests\/awa_harness.adb","new_file":"awa\/regtests\/awa_harness.adb","old_contents":"-----------------------------------------------------------------------\n-- AWA - Unit tests\n-- Copyright (C) 2009, 2010, 2011 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith AWA.Testsuite;\n\nwith Util.Tests;\nwith AWA.Tests;\nprocedure AWA_Harness is\n\n procedure Harness is new Util.Tests.Harness (AWA.Testsuite.Suite,\n AWA.Tests.Initialize);\n\nbegin\n Harness (\"awa-tests.xml\");\nend AWA_Harness;\n","new_contents":"-----------------------------------------------------------------------\n-- AWA - Unit tests\n-- Copyright (C) 2009, 2010, 2011, 2012 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith AWA.Testsuite;\n\nwith Util.Tests;\nwith AWA.Tests;\nprocedure AWA_Harness is\n\n procedure Harness is new Util.Tests.Harness (AWA.Testsuite.Suite,\n AWA.Tests.Initialize,\n AWA.Tests.Finish);\n\nbegin\n Harness (\"awa-tests.xml\");\nend AWA_Harness;\n","subject":"Call the Finish procedure after executing the testsuite Finish will destroy the AWA application that was allocated dynamically","message":"Call the Finish procedure after executing the testsuite\nFinish will destroy the AWA application that was allocated dynamically\n","lang":"Ada","license":"apache-2.0","repos":"Letractively\/ada-awa,tectronics\/ada-awa,Letractively\/ada-awa,tectronics\/ada-awa,Letractively\/ada-awa,tectronics\/ada-awa"} {"commit":"ad5f598a5a6d99a236054747dccd1f295fe74be9","old_file":"mat\/regtests\/mat-testsuite.adb","new_file":"mat\/regtests\/mat-testsuite.adb","old_contents":"-----------------------------------------------------------------------\n-- mat-testsuite - MAT Testsuite\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith MAT.Readers.Tests;\nwith MAT.Targets.Tests;\nwith MAT.Frames.Tests;\nwith MAT.Memory.Tests;\npackage body MAT.Testsuite is\n\n Tests : aliased Util.Tests.Test_Suite;\n\n function Suite return Util.Tests.Access_Test_Suite is\n Result : constant Util.Tests.Access_Test_Suite := Tests'Access;\n begin\n MAT.Frames.Tests.Add_Tests (Result);\n MAT.Memory.Tests.Add_Tests (Result);\n MAT.Readers.Tests.Add_Tests (Result);\n MAT.Targets.Tests.Add_Tests (Result);\n return Result;\n end Suite;\n\nend MAT.Testsuite;\n","new_contents":"-----------------------------------------------------------------------\n-- mat-testsuite - MAT Testsuite\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith MAT.Readers.Tests;\nwith MAT.Targets.Tests;\nwith MAT.Frames.Tests;\nwith MAT.Memory.Tests;\nwith MAT.Expressions.Tests;\npackage body MAT.Testsuite is\n\n Tests : aliased Util.Tests.Test_Suite;\n\n function Suite return Util.Tests.Access_Test_Suite is\n Result : constant Util.Tests.Access_Test_Suite := Tests'Access;\n begin\n MAT.Expressions.Tests.Add_Tests (Result);\n MAT.Frames.Tests.Add_Tests (Result);\n MAT.Memory.Tests.Add_Tests (Result);\n MAT.Readers.Tests.Add_Tests (Result);\n MAT.Targets.Tests.Add_Tests (Result);\n return Result;\n end Suite;\n\nend MAT.Testsuite;\n","subject":"Add the new unit tests","message":"Add the new unit tests\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/mat,stcarrez\/mat,stcarrez\/mat"} {"commit":"fdd736f163dc4171df927ab8958869fa3dd562a9","old_file":"regtests\/util-locales-tests.ads","new_file":"regtests\/util-locales-tests.ads","old_contents":"-----------------------------------------------------------------------\n-- locales.tests -- Unit tests for Locales\n-- Copyright (C) 2009, 2010, 2011 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\n\npackage Util.Locales.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n procedure Test_Get_Locale (T : in out Test);\n procedure Test_Hash_Locale (T : in out Test);\n procedure Test_Compare_Locale (T : in out Test);\n procedure Test_Get_Locales (T : in out Test);\n\nend Util.Locales.Tests;\n","new_contents":"-----------------------------------------------------------------------\n-- util-locales-tests -- Unit tests for Locales\n-- Copyright (C) 2009, 2010, 2011, 2022 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\n\npackage Util.Locales.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n procedure Test_Get_Locale (T : in out Test);\n procedure Test_Hash_Locale (T : in out Test);\n procedure Test_Compare_Locale (T : in out Test);\n procedure Test_Get_Locales (T : in out Test);\n procedure Test_Null_Locale (T : in out Test);\n\nend Util.Locales.Tests;\n","subject":"Declare the new Test_Null_Locale procedure","message":"Declare the new Test_Null_Locale procedure\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"f7031e582d729d6bf57c2c28a86f9b853167c008","old_file":"src\/definitions.ads","new_file":"src\/definitions.ads","old_contents":"-- This file is covered by the Internet Software Consortium (ISC) License\n-- Reference: ..\/License.txt\n\npackage Definitions is\n\n pragma Pure;\n\n synth_version_major : constant String := \"1\";\n synth_version_minor : constant String := \"21\";\n copyright_years : constant String := \"2015-2016\";\n host_localbase : constant String := \"\/usr\/local\";\n host_pkg8 : constant String := host_localbase & \"\/sbin\/pkg\";\n jobs_per_cpu : constant := 2;\n\n type cpu_range is range 1 .. 32;\n type scanners is range cpu_range'First .. cpu_range'Last;\n type builders is range cpu_range'First .. cpu_range'Last * jobs_per_cpu;\n\nend Definitions;\n","new_contents":"-- This file is covered by the Internet Software Consortium (ISC) License\n-- Reference: ..\/License.txt\n\npackage Definitions is\n\n pragma Pure;\n\n synth_version_major : constant String := \"1\";\n synth_version_minor : constant String := \"22\";\n copyright_years : constant String := \"2015-2016\";\n host_localbase : constant String := \"\/usr\/local\";\n host_pkg8 : constant String := host_localbase & \"\/sbin\/pkg\";\n jobs_per_cpu : constant := 2;\n\n type cpu_range is range 1 .. 32;\n type scanners is range cpu_range'First .. cpu_range'Last;\n type builders is range cpu_range'First .. cpu_range'Last * jobs_per_cpu;\n\nend Definitions;\n","subject":"Upgrade version 1.21 => 1.22","message":"ports-mgmt\/synth: Upgrade version 1.21 => 1.22\n\nTwo minor bug fixes:\n * A specific check during test mode would emit a failure to stdout when\n testing devel\/py-setuptools27. It turns out that there's a file there\n with a space in the filename. The filename was an argument for\n \/usr\/bin\/\/file and it wasn't escaped. The file in question had\n parentheses too which the shell was trying to process. The fix was\n to escape the filename in the \/usr\/bin\/file command.\n * The builders were mounting the source directory from \"\/usr\/src\", not\n $sysroot\/usr\/src as intended. This potentially causes breakage when\n the $sysroot reflects a different versions\/release than the host\n machine has (e.g. making FreeBSD 10.2 packages on FreeBSD 11-current).\n Now the source directory mount is relative to profile's $sysroot.\n","lang":"Ada","license":"isc","repos":"jrmarino\/synth,jrmarino\/synth,jrmarino\/synth,jrmarino\/synth"} {"commit":"11273ac359e6d79c6e7efb1ede26b9bbfdd15083","old_file":"awa\/regtests\/awa-commands-tests.ads","new_file":"awa\/regtests\/awa-commands-tests.ads","old_contents":"-----------------------------------------------------------------------\n-- awa-commands-tests -- Test the AWA.Commands\n-- Copyright (C) 2020 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\nwith Ada.Strings.Unbounded;\n\npackage AWA.Commands.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n -- Test start and stop command.\n procedure Test_Start_Stop (T : in out Test);\n\n procedure Execute (T : in out Test;\n Command : in String;\n Input : in String;\n Output : in String;\n Result : out Ada.Strings.Unbounded.Unbounded_String;\n Status : in Natural := 0);\n\nend AWA.Commands.Tests;\n","new_contents":"-----------------------------------------------------------------------\n-- awa-commands-tests -- Test the AWA.Commands\n-- Copyright (C) 2020 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\nwith Ada.Strings.Unbounded;\n\npackage AWA.Commands.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n -- Test start and stop command.\n procedure Test_Start_Stop (T : in out Test);\n\n procedure Test_List_Tables (T : in out Test);\n\n procedure Execute (T : in out Test;\n Command : in String;\n Input : in String;\n Output : in String;\n Result : out Ada.Strings.Unbounded.Unbounded_String;\n Status : in Natural := 0);\n\nend AWA.Commands.Tests;\n","subject":"Declare the Test_List_Tables procedure to test the 'list -t' command","message":"Declare the Test_List_Tables procedure to test the 'list -t' command\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa"} {"commit":"e223e201134ee99a44185842f8349f21c8b2bcae","old_file":"regtests\/security-testsuite.adb","new_file":"regtests\/security-testsuite.adb","old_contents":"-----------------------------------------------------------------------\n-- Security testsuite - Ada Security Test suite\n-- Copyright (C) 2011, 2012, 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Security.OpenID.Tests;\nwith Security.Permissions.Tests;\nwith Security.Policies.Tests;\nwith Security.OAuth.JWT.Tests;\npackage body Security.Testsuite is\n\n Tests : aliased Util.Tests.Test_Suite;\n\n function Suite return Util.Tests.Access_Test_Suite is\n Ret : constant Util.Tests.Access_Test_Suite := Tests'Access;\n begin\n Security.OAuth.JWT.Tests.Add_Tests (Ret);\n Security.OpenID.Tests.Add_Tests (Ret);\n Security.Permissions.Tests.Add_Tests (Ret);\n Security.Policies.Tests.Add_Tests (Ret);\n return Ret;\n end Suite;\n\nend Security.Testsuite;\n","new_contents":"-----------------------------------------------------------------------\n-- Security testsuite - Ada Security Test suite\n-- Copyright (C) 2011, 2012, 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Security.OpenID.Tests;\nwith Security.Permissions.Tests;\nwith Security.Policies.Tests;\nwith Security.OAuth.JWT.Tests;\nwith Security.OAuth.Clients.Tests;\npackage body Security.Testsuite is\n\n Tests : aliased Util.Tests.Test_Suite;\n\n function Suite return Util.Tests.Access_Test_Suite is\n Ret : constant Util.Tests.Access_Test_Suite := Tests'Access;\n begin\n Security.OAuth.JWT.Tests.Add_Tests (Ret);\n Security.OpenID.Tests.Add_Tests (Ret);\n Security.Permissions.Tests.Add_Tests (Ret);\n Security.Policies.Tests.Add_Tests (Ret);\n Security.OAuth.Clients.Tests.Add_Tests (Ret);\n return Ret;\n end Suite;\n\nend Security.Testsuite;\n","subject":"Add the new unit tests","message":"Add the new unit tests\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-security"} {"commit":"8b2d4a837b9804f6a97f091c9580c6f19d5d9d00","old_file":"mat\/regtests\/mat-testsuite.adb","new_file":"mat\/regtests\/mat-testsuite.adb","old_contents":"-----------------------------------------------------------------------\n-- mat-testsuite - MAT Testsuite\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith MAT.Readers.Tests;\npackage body MAT.Testsuite is\n\n Tests : aliased Util.Tests.Test_Suite;\n\n function Suite return Util.Tests.Access_Test_Suite is\n Result : constant Util.Tests.Access_Test_Suite := Tests'Access;\n begin\n MAT.Readers.Tests.Add_Tests (Result);\n return Result;\n end Suite;\n\nend MAT.Testsuite;\n","new_contents":"-----------------------------------------------------------------------\n-- mat-testsuite - MAT Testsuite\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith MAT.Readers.Tests;\nwith MAT.Targets.Tests;\npackage body MAT.Testsuite is\n\n Tests : aliased Util.Tests.Test_Suite;\n\n function Suite return Util.Tests.Access_Test_Suite is\n Result : constant Util.Tests.Access_Test_Suite := Tests'Access;\n begin\n MAT.Readers.Tests.Add_Tests (Result);\n MAT.Targets.Tests.Add_Tests (Result);\n return Result;\n end Suite;\n\nend MAT.Testsuite;\n","subject":"Add the new unit tests","message":"Add the new unit tests\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/mat,stcarrez\/mat,stcarrez\/mat"} {"commit":"89671b58bfe23174debacc207afbb95060c27ee4","old_file":"regtests\/util_harness.adb","new_file":"regtests\/util_harness.adb","old_contents":"-----------------------------------------------------------------------\n-- Util -- Utilities\n-- Copyright (C) 2009, 2010 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Testsuite;\nwith Util.Tests;\nprocedure Util_Harness is\n\n procedure Harness is new Util.Tests.Harness (Util.Testsuite.Suite);\n\nbegin\n Harness (\"util-tests.xml\");\nend Util_Harness;\n","new_contents":"-----------------------------------------------------------------------\n-- Util -- Utilities\n-- Copyright (C) 2009, 2010 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Ada.Directories;\nwith Util.Testsuite;\nwith Util.Tests;\nwith Util.Properties;\nprocedure Util_Harness is\n\n procedure Initialize (Props : in Util.Properties.Manager);\n\n procedure Harness is new Util.Tests.Harness (Util.Testsuite.Suite, Initialize);\n\n procedure Initialize (Props : in Util.Properties.Manager) is\n pragma Unreferenced (Props);\n\n Path : constant String := Util.Tests.Get_Test_Path (\"regtests\/result\");\n begin\n if not Ada.Directories.Exists (Path) then\n Ada.Directories.Create_Directory (Path);\n end if;\n end Initialize;\n\nbegin\n Harness (\"util-tests.xml\");\nend Util_Harness;\n","subject":"Fix running the testsuite with AUnit: create the 'regtests\/result' directory if it does not exist","message":"Fix running the testsuite with AUnit: create the 'regtests\/result' directory if it does not exist\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"67f5cf9d4cbbd08eff3503e0f094e24a78aa60c1","old_file":"regtests\/security-permissions-tests.ads","new_file":"regtests\/security-permissions-tests.ads","old_contents":"-----------------------------------------------------------------------\n-- Security-permissions-tests - Unit tests for Security.Permissions\n-- Copyright (C) 2011 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\n\npackage Security.Permissions.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n -- Test Add_Permission and Get_Permission_Index\n procedure Test_Add_Permission (T : in out Test);\n\nend Security.Permissions.Tests;\n","new_contents":"-----------------------------------------------------------------------\n-- Security-permissions-tests - Unit tests for Security.Permissions\n-- Copyright (C) 2011, 2012 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\n\npackage Security.Permissions.Tests is\n\n package P_Admin is new Permissions.Definition (\"admin\");\n package P_Create is new Permissions.Definition (\"create\");\n package P_Update is new Permissions.Definition (\"update\");\n package P_Delete is new Permissions.Definition (\"delete\");\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n -- Test Add_Permission and Get_Permission_Index\n procedure Test_Add_Permission (T : in out Test);\n\n -- Test the permission created by the Definition package.\n procedure Test_Define_Permission (T : in out Test);\n\n -- Test Get_Permission on invalid permission name.\n procedure Test_Get_Invalid_Permission (T : in out Test);\n\nend Security.Permissions.Tests;\n","subject":"Add new unit tests to check the Permissions.Definition package","message":"Add new unit tests to check the Permissions.Definition package\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-security"} {"commit":"f9882b7793e2459ee9a53ca8f07f62eb19bc4c88","old_file":"awa\/plugins\/awa-workspaces\/src\/awa-workspaces.ads","new_file":"awa\/plugins\/awa-workspaces\/src\/awa-workspaces.ads","old_contents":"-----------------------------------------------------------------------\n-- awa-workspaces -- Module workspaces\n-- Copyright (C) 2011, 2012 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-- == Introduction ==\n-- The *workspaces* plugin defines a workspace area for other plugins.\n--\n-- == Data Model ==\n-- @include Workspace.hbm.xml\n--\npackage AWA.Workspaces is\nend AWA.Workspaces;\n","new_contents":"-----------------------------------------------------------------------\n-- awa-workspaces -- Module workspaces\n-- Copyright (C) 2011, 2012 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-- == Introduction ==\n-- The *workspaces* plugin defines a workspace area for other plugins.\n--\n-- == Ada Beans ==\n-- @include workspaces.xml\n--\n-- == Data Model ==\n-- @include Workspace.hbm.xml\n--\npackage AWA.Workspaces is\nend AWA.Workspaces;\n","subject":"Add the Ada beans in the workspace documentation","message":"Add the Ada beans in the workspace documentation\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa"} {"commit":"1c583d65cb0a555f08a7e97508e428c44304a854","old_file":"src\/gen-commands.ads","new_file":"src\/gen-commands.ads","old_contents":"-----------------------------------------------------------------------\n-- gen-commands -- Commands for dynamo\n-- Copyright (C) 2011, 2012, 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Commands.Drivers;\nwith Gen.Generator;\npackage Gen.Commands is\n\n package Drivers is\n new Util.Commands.Drivers (Context_Type => Gen.Generator.Handler,\n Driver_Name => \"gen-commands\");\n\n subtype Command is Drivers.Command_Type;\n subtype Command_Access is Drivers.Command_Access;\n subtype Argument_List is Util.Commands.Argument_List;\n\n Driver : Drivers.Driver_Type;\n\n -- Print dynamo usage\n procedure Usage;\n\n -- Print dynamo short usage.\n procedure Short_Help_Usage;\n\nend Gen.Commands;\n","new_contents":"-----------------------------------------------------------------------\n-- gen-commands -- Commands for dynamo\n-- Copyright (C) 2011, 2012, 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Commands.Drivers;\nwith Gen.Generator;\npackage Gen.Commands is\n\n package Drivers is\n new Util.Commands.Drivers (Context_Type => Gen.Generator.Handler,\n Driver_Name => \"gen-commands\");\n\n subtype Command is Drivers.Command_Type;\n subtype Command_Access is Drivers.Command_Access;\n subtype Argument_List is Util.Commands.Argument_List;\n\n Driver : Drivers.Driver_Type;\n\n -- Print dynamo short usage.\n procedure Short_Help_Usage;\n\nend Gen.Commands;\n","subject":"Remove the declaration of Usage procedure","message":"Remove the declaration of Usage procedure\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/dynamo,stcarrez\/dynamo,stcarrez\/dynamo"} {"commit":"db6fcb876c53a3836c759d0c6d0f5dc9d6e7fe6f","old_file":"src\/util-commands.ads","new_file":"src\/util-commands.ads","old_contents":"-----------------------------------------------------------------------\n-- util-commands -- Support to make command line tools\n-- Copyright (C) 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Util.Strings.Vectors;\npackage Util.Commands is\n\n subtype Argument_List is Util.Strings.Vectors.Vector;\n\nend Util.Commands;\n","new_contents":"-----------------------------------------------------------------------\n-- util-commands -- Support to make command line tools\n-- Copyright (C) 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\npackage Util.Commands is\n\n -- The argument list interface that gives access to command arguments.\n type Argument_List is limited interface;\n\n -- Get the number of arguments available.\n function Get_Count (List : in Argument_List) return Natural is abstract;\n\n -- Get the argument at the given position.\n function Get_Argument (List : in Argument_List;\n Pos : in Positive) return String is abstract;\n\nend Util.Commands;\n","subject":"Change the Argument_List to an interface with a Get_Count and Get_Argument operation","message":"Change the Argument_List to an interface with a Get_Count and Get_Argument operation\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"322393f29a7d1bae390cef18fbcac3a7a8711d62","old_file":"awa\/plugins\/awa-wikis\/regtests\/awa-wikis-modules-tests.ads","new_file":"awa\/plugins\/awa-wikis\/regtests\/awa-wikis-modules-tests.ads","old_contents":"-----------------------------------------------------------------------\n-- awa-wikis-modules-tests -- Unit tests for wikis service\n-- Copyright (C) 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\nwith AWA.Tests;\n\npackage AWA.Wikis.Modules.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new AWA.Tests.Test with record\n Manager : AWA.Wikis.Modules.Wiki_Module_Access;\n end record;\n\n -- Test creation of a wiki space.\n procedure Test_Create_Wiki_Space (T : in out Test);\n\n -- Test creation of a wiki page.\n procedure Test_Create_Wiki_Page (T : in out Test);\n\nend AWA.Wikis.Modules.Tests;\n","new_contents":"-----------------------------------------------------------------------\n-- awa-wikis-modules-tests -- Unit tests for wikis service\n-- Copyright (C) 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\nwith AWA.Tests;\n\npackage AWA.Wikis.Modules.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new AWA.Tests.Test with record\n Manager : AWA.Wikis.Modules.Wiki_Module_Access;\n end record;\n\n -- Test creation of a wiki space.\n procedure Test_Create_Wiki_Space (T : in out Test);\n\n -- Test creation of a wiki page.\n procedure Test_Create_Wiki_Page (T : in out Test);\n\n -- Test creation of a wiki page content.\n procedure Test_Create_Wiki_Content (T : in out Test);\n\nend AWA.Wikis.Modules.Tests;\n","subject":"Add the Test_Create_Wiki_Content unit test","message":"Add the Test_Create_Wiki_Content unit test\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa"} {"commit":"d26f95c8b01338ce7fa7f7e14db72b88fbad2356","old_file":"awa\/plugins\/awa-changelogs\/regtests\/awa-changelogs-modules-tests.ads","new_file":"awa\/plugins\/awa-changelogs\/regtests\/awa-changelogs-modules-tests.ads","old_contents":"-----------------------------------------------------------------------\n-- awa-changelogs-tests -- Tests for changelogs\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\npackage AWA.Changelogs.Modules.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n procedure Test_Add_Log (T : in out Test);\n\nend AWA.Changelogs.Modules.Tests;\n","new_contents":"-----------------------------------------------------------------------\n-- awa-changelogs-tests -- Tests for changelogs\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\nwith AWA.Tests;\n\npackage AWA.Changelogs.Modules.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new AWA.Tests.Test with null record;\n\n procedure Test_Add_Log (T : in out Test);\n\nend AWA.Changelogs.Modules.Tests;\n","subject":"Fix the unit test to use AWA.Tests.Test for the correct test setup","message":"Fix the unit test to use AWA.Tests.Test for the correct test setup\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa"} {"commit":"d0c1a2f378949a2f9bb5a29e019e408069cf82c6","old_file":"awa\/plugins\/awa-sysadmin\/src\/awa-sysadmin.ads","new_file":"awa\/plugins\/awa-sysadmin\/src\/awa-sysadmin.ads","old_contents":"-----------------------------------------------------------------------\n-- awa-sysadmin -- \n-- Copyright (C) 2019 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\npackage AWA.Sysadmin is\n\n pragma Pure;\n\nend AWA.Sysadmin;\n","new_contents":"-----------------------------------------------------------------------\n-- awa-sysadmin -- sysadmin module\n-- Copyright (C) 2019, 2022 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\npackage AWA.Sysadmin is\n\n pragma Pure;\n\nend AWA.Sysadmin;\n","subject":"Fix style warnings: add missing overriding and update and then\/or else conditions","message":"Fix style warnings: add missing overriding and update and then\/or else conditions\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa"} {"commit":"4b6cb4655b33b7ccf6d41dc7ed0ab7fe9ca90042","old_file":"testutil\/aunit\/util-test_caller.adb","new_file":"testutil\/aunit\/util-test_caller.adb","old_contents":"-----------------------------------------------------------------------\n-- AUnit utils - Helper for writing unit tests\n-- Copyright (C) 2009, 2010, 2011 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage body Util.Test_Caller is\n\n procedure Add_Test (Suite : in Util.Tests.Access_Test_Suite;\n Test_Name : in String;\n Method : in Caller.Test_Method) is\n begin\n Suite.Add_Test (Caller.Create (Test_Name, Method));\n end Add_Test;\n\nend Util.Test_Caller;\n","new_contents":"-----------------------------------------------------------------------\n-- AUnit utils - Helper for writing unit tests\n-- Copyright (C) 2009, 2010, 2011, 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage body Util.Test_Caller is\n\n procedure Add_Test (Suite : in Util.Tests.Access_Test_Suite;\n Test_Name : in String;\n Method : in Caller.Test_Method) is\n begin\n if Util.Tests.Is_Test_Enabled (Test_Name) then\n Suite.Add_Test (Caller.Create (Test_Name, Method));\n end if;\n end Add_Test;\n\nend Util.Test_Caller;\n","subject":"Use the Is_Test_Enabled function to ignore or take into account the test when it is added in the testsuite.","message":"Use the Is_Test_Enabled function to ignore or take into account the\ntest when it is added in the testsuite.\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"be9a12a2de15ff47e8e37350bdb9f8de0a307156","old_file":"src\/gen-commands-propset.ads","new_file":"src\/gen-commands-propset.ads","old_contents":"-----------------------------------------------------------------------\n-- gen-commands-propset -- Set a property on dynamo project\n-- Copyright (C) 2011, 2017, 2018 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Propset is\n\n -- ------------------------------\n -- Propset Command\n -- ------------------------------\n -- This command sets a property in the dynamo project configuration.\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n overriding\n procedure Execute (Cmd : in out Command;\n Name : in String;\n Args : in Argument_List'Class;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Cmd : in out Command;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Propset;\n","new_contents":"-----------------------------------------------------------------------\n-- gen-commands-propset -- Set a property on dynamo project\n-- Copyright (C) 2011, 2017, 2018, 2019 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Propset is\n\n -- ------------------------------\n -- Propset Command\n -- ------------------------------\n -- This command sets a property in the dynamo project configuration.\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n overriding\n procedure Execute (Cmd : in out Command;\n Name : in String;\n Args : in Argument_List'Class;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Cmd : in out Command;\n Name : in String;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Propset;\n","subject":"Add Name parameter to the Help procedure","message":"Add Name parameter to the Help procedure\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/dynamo,stcarrez\/dynamo,stcarrez\/dynamo"} {"commit":"51609ba9fcb7467fa3c4ae6f247d75c86158a0fe","old_file":"src\/gen.ads","new_file":"src\/gen.ads","old_contents":"-----------------------------------------------------------------------\n-- Gen -- Code Generator\n-- Copyright (C) 2009, 2010, 2011 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen is\n\n -- Library SVN identification\n SVN_URL : constant String := \"https:\/\/ada-gen.googlecode.com\/svn\/trunk\";\n\n -- Revision used (must run 'make version' to update)\n SVN_REV : constant Positive := 1095;\n\nend Gen;\n","new_contents":"-----------------------------------------------------------------------\n-- gen -- Code Generator\n-- Copyright (C) 2009, 2010, 2011, 2021 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Ada.Strings.Unbounded;\npackage Gen is\n\n -- Library SVN identification\n SVN_URL : constant String := \"https:\/\/ada-gen.googlecode.com\/svn\/trunk\";\n\n -- Revision used (must run 'make version' to update)\n SVN_REV : constant Positive := 1095;\n\n subtype UString is Ada.Strings.Unbounded.Unbounded_String;\n\n function To_UString (Value : in String) return UString\n renames Ada.Strings.Unbounded.To_Unbounded_String;\n\n function To_String (Value : in UString) return String\n renames Ada.Strings.Unbounded.To_String;\n\n function Length (Value : in UString) return Natural\n renames Ada.Strings.Unbounded.Length;\n\n function \"=\" (Left, Right : in UString) return Boolean\n renames Ada.Strings.Unbounded.\"=\";\n function \"=\" (Left : in UString; Right : in String) return Boolean\n renames Ada.Strings.Unbounded.\"=\";\n\nend Gen;\n","subject":"Declare the UString subtype to simplify the implementation and use of Unbounded_String","message":"Declare the UString subtype to simplify the implementation and use of Unbounded_String\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/dynamo,stcarrez\/dynamo,stcarrez\/dynamo"} {"commit":"bea375106da24b7c7cb8af2fb789fd15ccafe787","old_file":"mat\/src\/mat-formats.ads","new_file":"mat\/src\/mat-formats.ads","old_contents":"-----------------------------------------------------------------------\n-- mat-formats - Format various types for the console or GUI interface\n-- Copyright (C) 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith MAT.Types;\npackage MAT.Formats is\n\n -- Format the address into a string.\n function Addr (Value : in MAT.Types.Target_Addr) return String;\n\n -- Format the size into a string.\n function Size (Value : in MAT.Types.Target_Size) return String;\n\nend MAT.Formats;\n","new_contents":"-----------------------------------------------------------------------\n-- mat-formats - Format various types for the console or GUI interface\n-- Copyright (C) 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Ada.Strings.Unbounded;\n\nwith MAT.Types;\npackage MAT.Formats is\n\n -- Format the address into a string.\n function Addr (Value : in MAT.Types.Target_Addr) return String;\n\n -- Format the size into a string.\n function Size (Value : in MAT.Types.Target_Size) return String;\n\n -- Format a file, line, function information into a string.\n function Location (File : in Ada.Strings.Unbounded.Unbounded_String;\n Line : in Natural;\n Func : in Ada.Strings.Unbounded.Unbounded_String) return String;\n\nend MAT.Formats;\n","subject":"Declare the Location function to format a file,line,function code location","message":"Declare the Location function to format a file,line,function code location\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/mat,stcarrez\/mat,stcarrez\/mat"} {"commit":"560eff37d2893ed598e42721e862521e5b653bf5","old_file":"mat\/src\/mat-formats.adb","new_file":"mat\/src\/mat-formats.adb","old_contents":"-----------------------------------------------------------------------\n-- mat-formats - Format various types for the console or GUI interface\n-- Copyright (C) 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage body MAT.Formats is\n\n -- ------------------------------\n -- Format the address into a string.\n -- ------------------------------\n function Addr (Value : in MAT.Types.Target_Addr) return String is\n Hex : constant String := MAT.Types.Hex_Image (Value);\n begin\n return Hex;\n end Addr;\n\nend MAT.Formats;\n","new_contents":"-----------------------------------------------------------------------\n-- mat-formats - Format various types for the console or GUI interface\n-- Copyright (C) 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage body MAT.Formats is\n\n -- ------------------------------\n -- Format the address into a string.\n -- ------------------------------\n function Addr (Value : in MAT.Types.Target_Addr) return String is\n Hex : constant String := MAT.Types.Hex_Image (Value);\n begin\n return Hex;\n end Addr;\n\n -- ------------------------------\n -- Format the size into a string.\n -- ------------------------------\n function Size (Value : in MAT.Types.Target_Size) return String is\n Result : constant String := MAT.Types.Target_Size'Image (Value);\n begin\n if Result (Result'First) = ' ' then\n return Result (Result'First + 1 .. Result'Last);\n else\n return Result;\n end if;\n end Size;\n\nend MAT.Formats;\n","subject":"Implement the Size function to format sizes","message":"Implement the Size function to format sizes\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/mat,stcarrez\/mat,stcarrez\/mat"} {"commit":"8394c019a158014ea7d09749006d2ba48c358c14","old_file":"mat\/src\/matp.adb","new_file":"mat\/src\/matp.adb","old_contents":"-----------------------------------------------------------------------\n-- mat-types -- Global types\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Ada.IO_Exceptions;\nwith Readline;\nwith MAT.Commands;\nwith MAT.Targets;\nprocedure Matp is\n\n procedure Interactive_Loop is\n Target : MAT.Targets.Target_Type;\n begin\n loop\n declare\n Line : constant String := Readline.Get_Line (\"matp>\");\n begin\n MAT.Commands.Execute (Target, Line);\n\n exception\n when MAT.Commands.Stop_Interp =>\n return;\n end;\n end loop;\n\n exception\n\n when Ada.IO_Exceptions.End_Error =>\n return;\n\n end Interactive_Loop;\n\nbegin\n Interactive_Loop;\nend Matp;\n","new_contents":"-----------------------------------------------------------------------\n-- mat-types -- Global types\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Ada.IO_Exceptions;\nwith Readline;\nwith MAT.Commands;\nwith MAT.Targets;\nwith Util.Log.Loggers;\nprocedure Matp is\n\n procedure Interactive_Loop is\n Target : MAT.Targets.Target_Type;\n begin\n loop\n declare\n Line : constant String := Readline.Get_Line (\"matp>\");\n begin\n MAT.Commands.Execute (Target, Line);\n\n exception\n when MAT.Commands.Stop_Interp =>\n return;\n end;\n end loop;\n\n exception\n\n when Ada.IO_Exceptions.End_Error =>\n return;\n\n end Interactive_Loop;\n\nbegin\n Util.Log.Loggers.Initialize (\"matp.properties\");\n Interactive_Loop;\nend Matp;\n","subject":"Use Util.Log.Loggers.Initialize to configure the loggers","message":"Use Util.Log.Loggers.Initialize to configure the loggers\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/mat,stcarrez\/mat,stcarrez\/mat"} {"commit":"74816706bdf72c1c44fe655232dbf4ee092a5827","old_file":"mat\/src\/mat-readers-streams.ads","new_file":"mat\/src\/mat-readers-streams.ads","old_contents":"-----------------------------------------------------------------------\n-- mat-readers-streams -- Reader for streams\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Util.Streams.Buffered;\npackage MAT.Readers.Streams is\n\n type Stream_Reader_Type is new Manager_Base with private;\n\n -- Read the events from the stream and stop when the end of the stream is reached.\n procedure Read_All (Reader : in out Stream_Reader_Type);\n\n -- Read a message from the stream.\n overriding\n procedure Read_Message (Reader : in out Stream_Reader_Type;\n Msg : in out Message);\n\nprivate\n\n type Stream_Reader_Type is new Manager_Base with record\n Stream : Util.Streams.Buffered.Buffered_Stream;\n Data : Util.Streams.Buffered.Buffer_Access;\n end record;\n\nend MAT.Readers.Streams;\n","new_contents":"-----------------------------------------------------------------------\n-- mat-readers-streams -- Reader for streams\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Util.Streams.Buffered;\nwith MAT.Events.Probes;\nwith MAT.Events.Targets;\npackage MAT.Readers.Streams is\n\n type Stream_Reader_Type is new MAT.Events.Probes.Probe_Manager_Type with private;\n\n -- Read the events from the stream and stop when the end of the stream is reached.\n procedure Read_All (Reader : in out Stream_Reader_Type);\n\n -- Read a message from the stream.\n overriding\n procedure Read_Message (Reader : in out Stream_Reader_Type;\n Msg : in out Message_Type);\n\nprivate\n\n type Stream_Reader_Type is new MAT.Events.Probes.Probe_Manager_Type with record\n Stream : Util.Streams.Buffered.Buffered_Stream;\n Data : Util.Streams.Buffered.Buffer_Access;\n end record;\n\nend MAT.Readers.Streams;\n","subject":"Use the Message_Type and MAT.Events.Probes.Probe_Manager_Type types","message":"Use the Message_Type and MAT.Events.Probes.Probe_Manager_Type types\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/mat,stcarrez\/mat,stcarrez\/mat"} {"commit":"1675d4fd3e2e89bfadff5dc40e99edaedd36b52b","old_file":"t0026.adb","new_file":"t0026.adb","old_contents":"-- t0026.adb - Sat Jan 11 23:18:41 2014\n--\n-- (c) Warren W. Gay VE3WWG ve3wwg@gmail.com\n--\n-- Protected under the following license:\n-- GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999\n\nwith Ada.Text_IO;\n\nwith Posix;\nuse Posix;\n\nprocedure T0026 is\n use Ada.Text_IO; \n\n Child : pid_t := -1;\n Resource : s_rusage;\n Status : int_t := 0;\n Error : errno_t;\n pragma Volatile(Error);\nbegin\n\n Put_Line(\"Test 0026 - Wait3\");\n\n Fork(Child,Error);\n pragma Assert(Error = 0);\n\n if Child = 0 then\n -- Child fork\n for Count in Natural(0)..10000000 loop\n Error := 0;\n end loop; \n\n Sys_Exit(42);\n end if;\n\n Wait3(Child,0,Status,Resource,Error);\n pragma Assert(Error = 0);\n pragma Assert(WIFEXITED(Status));\n pragma Assert(WEXITSTATUS(Status) = 42);\n pragma Assert(Resource.ru_utime.tv_usec > 0);\n pragma Assert(Resource.ru_stime.tv_usec > 0);\n\n Put_Line(\"Test 0026 Passed.\");\n\nend T0026;\n","new_contents":"-- t0026.adb - Sat Jan 11 23:18:41 2014\n--\n-- (c) Warren W. Gay VE3WWG ve3wwg@gmail.com\n--\n-- Protected under the following license:\n-- GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999\n\nwith Ada.Text_IO;\n\nwith Posix;\nuse Posix;\n\nprocedure T0026 is\n use Ada.Text_IO; \n\n Child : pid_t := -1;\n Resource : s_rusage;\n Status : int_t := 0;\n Error : errno_t;\n pragma Volatile(Error);\nbegin\n\n Put_Line(\"Test 0026 - Wait3\");\n\n Fork(Child,Error);\n pragma Assert(Error = 0);\n\n if Child = 0 then\n -- Child fork\n for Count in Natural(0)..10000000 loop\n Error := 0;\n end loop; \n\n Sys_Exit(42);\n end if;\n\n Wait3(Child,0,Status,Resource,Error);\n pragma Assert(Error = 0);\n pragma Assert(WIFEXITED(Status));\n pragma Assert(WEXITSTATUS(Status) = 42);\n pragma Assert(Resource.ru_utime.tv_usec > 0);\n pragma Assert(Resource.ru_stime.tv_usec >= 0);\n\n Put_Line(\"Test 0026 Passed.\");\n\nend T0026;\n","subject":"Fix applied for Linux resource usage","message":"Fix applied for Linux resource usage\n","lang":"Ada","license":"lgpl-2.1","repos":"ve3wwg\/adafpx,ve3wwg\/adafpx"} {"commit":"4d5fba7eb890124b4b91115499f206fe59aa273c","old_file":"regtests\/security-permissions-tests.ads","new_file":"regtests\/security-permissions-tests.ads","old_contents":"-----------------------------------------------------------------------\n-- Security-permissions-tests - Unit tests for Security.Permissions\n-- Copyright (C) 2011 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\n\npackage Security.Permissions.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n -- Test Add_Permission and Get_Permission_Index\n procedure Test_Add_Permission (T : in out Test);\n\nend Security.Permissions.Tests;\n","new_contents":"-----------------------------------------------------------------------\n-- Security-permissions-tests - Unit tests for Security.Permissions\n-- Copyright (C) 2011, 2012 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\n\npackage Security.Permissions.Tests is\n\n package P_Admin is new Permissions.Definition (\"admin\");\n package P_Create is new Permissions.Definition (\"create\");\n package P_Update is new Permissions.Definition (\"update\");\n package P_Delete is new Permissions.Definition (\"delete\");\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n -- Test Add_Permission and Get_Permission_Index\n procedure Test_Add_Permission (T : in out Test);\n\n -- Test the permission created by the Definition package.\n procedure Test_Define_Permission (T : in out Test);\n\n -- Test Get_Permission on invalid permission name.\n procedure Test_Get_Invalid_Permission (T : in out Test);\n\nend Security.Permissions.Tests;\n","subject":"Add new unit tests to check the Permissions.Definition package","message":"Add new unit tests to check the Permissions.Definition package\n","lang":"Ada","license":"apache-2.0","repos":"Letractively\/ada-security"} {"commit":"f388fa078726275e0d24a53d741047dff9565d95","old_file":"src\/gen-commands-distrib.ads","new_file":"src\/gen-commands-distrib.ads","old_contents":"-----------------------------------------------------------------------\n-- gen-commands-distrib -- Distrib command for dynamo\n-- Copyright (C) 2012, 2017, 2018 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Distrib is\n\n -- ------------------------------\n -- Distrib Command\n -- ------------------------------\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n overriding\n procedure Execute (Cmd : in out Command;\n Name : in String;\n Args : in Argument_List'Class;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Cmd : in out Command;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Distrib;\n","new_contents":"-----------------------------------------------------------------------\n-- gen-commands-distrib -- Distrib command for dynamo\n-- Copyright (C) 2012, 2017, 2018, 2019 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Distrib is\n\n -- ------------------------------\n -- Distrib Command\n -- ------------------------------\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n overriding\n procedure Execute (Cmd : in out Command;\n Name : in String;\n Args : in Argument_List'Class;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Cmd : in out Command;\n Name : in String;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Distrib;\n","subject":"Add Name parameter to the Help procedure","message":"Add Name parameter to the Help procedure\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/dynamo,stcarrez\/dynamo,stcarrez\/dynamo"} {"commit":"b8142102bb9b3e3db2789803aa7a21cd049af3a5","old_file":"src\/gen-commands-project.ads","new_file":"src\/gen-commands-project.ads","old_contents":"-----------------------------------------------------------------------\n-- gen-commands-project -- Project creation command for dynamo\n-- Copyright (C) 2011, 2017, 2018 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Project is\n\n -- ------------------------------\n -- Generator Command\n -- ------------------------------\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n overriding\n procedure Execute (Cmd : in out Command;\n Name : in String;\n Args : in Argument_List'Class;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Cmd : in out Command;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Project;\n","new_contents":"-----------------------------------------------------------------------\n-- gen-commands-project -- Project creation command for dynamo\n-- Copyright (C) 2011, 2017, 2018, 2019 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Project is\n\n -- ------------------------------\n -- Generator Command\n -- ------------------------------\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n overriding\n procedure Execute (Cmd : in out Command;\n Name : in String;\n Args : in Argument_List'Class;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Cmd : in out Command;\n Name : in String;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Project;\n","subject":"Add Name parameter to the Help procedure","message":"Add Name parameter to the Help procedure\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/dynamo,stcarrez\/dynamo,stcarrez\/dynamo"} {"commit":"61493baf4057e4e14797584dddb594fcf091987d","old_file":"awa\/awaunit\/awa-tests-helpers.ads","new_file":"awa\/awaunit\/awa-tests-helpers.ads","old_contents":"-----------------------------------------------------------------------\n-- Aawa-tests-helpers - Helpers for AWA unit tests\n-- Copyright (C) 2011 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage AWA.Tests.Helpers is\n\nend AWA.Tests.Helpers;\n","new_contents":"-----------------------------------------------------------------------\n-- awa-tests-helpers - Helpers for AWA unit tests\n-- Copyright (C) 2011, 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith ASF.Responses.Mockup;\nwith Ada.Strings.Unbounded;\npackage AWA.Tests.Helpers is\n\n -- Extract from the Location header the part that is after the given base string.\n -- If the Location header does not start with the base string, returns the empty\n -- string.\n function Extract_Redirect (Reply : in ASF.Responses.Mockup.Response'Class;\n Base : in String) return String;\n\n function Extract_Redirect (Reply : in ASF.Responses.Mockup.Response'Class;\n Base : in String) return Ada.Strings.Unbounded.Unbounded_String;\n\nend AWA.Tests.Helpers;\n","subject":"Declare the Extract_Redirect function to help a unit test in extracting the result from a redirection","message":"Declare the Extract_Redirect function to help a unit test in extracting\nthe result from a redirection\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa"} {"commit":"024f5bc835ccca4108d9082285ad14d4a18b9504","old_file":"src\/babel-files-signatures.ads","new_file":"src\/babel-files-signatures.ads","old_contents":"-----------------------------------------------------------------------\r\n-- babel-files-signatures -- Signatures calculation\r\n-- Copyright (C) 2014 Stephane.Carrez\r\n-- Written by Stephane.Carrez (Stephane.Carrez@gmail.com)\r\n--\r\n-- Licensed under the Apache License, Version 2.0 (the \"License\");\r\n-- you may not use this file except in compliance with the License.\r\n-- You may obtain a copy of the License at\r\n--\r\n-- http:\/\/www.apache.org\/licenses\/LICENSE-2.0\r\n--\r\n-- Unless required by applicable law or agreed to in writing, software\r\n-- distributed under the License is distributed on an \"AS IS\" BASIS,\r\n-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n-- See the License for the specific language governing permissions and\r\n-- limitations under the License.\r\n-----------------------------------------------------------------------\r\nwith Babel.Files;\r\nwith Babel.Files.Buffers;\r\nwith Babel.Files.Maps;\r\npackage Babel.Files.Signatures is\r\n\r\n -- Compute the SHA1 signature of the data stored in the buffer.\r\n procedure Sha1 (Buffer : in Babel.Files.Buffers.Buffer;\r\n Result : out Util.Encoders.SHA1.Hash_Array);\r\n\r\n -- Write the SHA1 checksum for the files stored in the map.\r\n procedure Save_Checksum (Path : in String;\r\n Files : in Babel.Files.Maps.File_Map);\r\n\r\nend Babel.Files.Signatures;\r\n","new_contents":"-----------------------------------------------------------------------\n-- babel-files-signatures -- Signatures calculation\n-- Copyright (C) 2014, 2015, 2016 Stephane.Carrez\n-- Written by Stephane.Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Babel.Files;\nwith Babel.Files.Buffers;\nwith Babel.Files.Maps;\nwith Babel.Streams.Refs;\npackage Babel.Files.Signatures is\n\n -- Compute the SHA1 signature of the data stored in the buffer.\n procedure Sha1 (Buffer : in Babel.Files.Buffers.Buffer;\n Result : out Util.Encoders.SHA1.Hash_Array);\n\n -- Compute the SHA1 signature of the file stream.\n procedure Sha1 (Stream : in Babel.Streams.Refs.Stream_Ref;\n Result : out Util.Encoders.SHA1.Hash_Array);\n\n -- Write the SHA1 checksum for the files stored in the map.\n procedure Save_Checksum (Path : in String;\n Files : in Babel.Files.Maps.File_Map);\n\nend Babel.Files.Signatures;\n","subject":"Define Sha1 procedure with a Stream_Ref object","message":"Define Sha1 procedure with a Stream_Ref object\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/babel"} {"commit":"eba9a555ab50dd65ae403dc7faf9c9c2a668ffc8","old_file":"regtests\/util-streams-tests.ads","new_file":"regtests\/util-streams-tests.ads","old_contents":"-----------------------------------------------------------------------\n-- util-streams-tests -- Unit tests for encoding buffered streams\n-- Copyright (C) 2017, 2019 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\n\npackage Util.Streams.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n procedure Test_Base64_Stream (T : in out Test);\n\n procedure Test_AES_Stream (T : in out Test);\n\nend Util.Streams.Tests;\n","new_contents":"-----------------------------------------------------------------------\n-- util-streams-tests -- Unit tests for encoding buffered streams\n-- Copyright (C) 2017, 2019 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\nwith Util.Encoders.AES;\n\npackage Util.Streams.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n procedure Test_AES (T : in out Test;\n Item : in String;\n Count : in Positive;\n Mode : in Util.Encoders.AES.AES_Mode;\n Label : in String);\n\n procedure Test_Base64_Stream (T : in out Test);\n\nend Util.Streams.Tests;\n","subject":"Declare Test_AES procedure and remove Test_AES_Stream","message":"Declare Test_AES procedure and remove Test_AES_Stream\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"2c4d8079f873f7ebe084c43df5e26ceb7c51bbc8","old_file":"regtests\/security-testsuite.adb","new_file":"regtests\/security-testsuite.adb","old_contents":"-----------------------------------------------------------------------\n-- Security testsuite - Ada Security Test suite\n-- Copyright (C) 2011, 2012, 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Security.OpenID.Tests;\nwith Security.Permissions.Tests;\nwith Security.Policies.Tests;\nwith Security.OAuth.JWT.Tests;\npackage body Security.Testsuite is\n\n Tests : aliased Util.Tests.Test_Suite;\n\n function Suite return Util.Tests.Access_Test_Suite is\n Ret : constant Util.Tests.Access_Test_Suite := Tests'Access;\n begin\n Security.OAuth.JWT.Tests.Add_Tests (Ret);\n Security.OpenID.Tests.Add_Tests (Ret);\n Security.Permissions.Tests.Add_Tests (Ret);\n Security.Policies.Tests.Add_Tests (Ret);\n return Ret;\n end Suite;\n\nend Security.Testsuite;\n","new_contents":"-----------------------------------------------------------------------\n-- Security testsuite - Ada Security Test suite\n-- Copyright (C) 2011, 2012, 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Security.OpenID.Tests;\nwith Security.Permissions.Tests;\nwith Security.Policies.Tests;\nwith Security.OAuth.JWT.Tests;\nwith Security.OAuth.Clients.Tests;\npackage body Security.Testsuite is\n\n Tests : aliased Util.Tests.Test_Suite;\n\n function Suite return Util.Tests.Access_Test_Suite is\n Ret : constant Util.Tests.Access_Test_Suite := Tests'Access;\n begin\n Security.OAuth.JWT.Tests.Add_Tests (Ret);\n Security.OpenID.Tests.Add_Tests (Ret);\n Security.Permissions.Tests.Add_Tests (Ret);\n Security.Policies.Tests.Add_Tests (Ret);\n Security.OAuth.Clients.Tests.Add_Tests (Ret);\n return Ret;\n end Suite;\n\nend Security.Testsuite;\n","subject":"Add the new unit tests","message":"Add the new unit tests\n","lang":"Ada","license":"apache-2.0","repos":"Letractively\/ada-security"} {"commit":"bdc4b53e045a85fcefc7112c32f709799bf05ede","old_file":"regtests\/regtests.ads","new_file":"regtests\/regtests.ads","old_contents":"-----------------------------------------------------------------------\n-- ADO Tests -- Database sequence generator\n-- Copyright (C) 2009, 2010 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith ADO.Databases;\nwith ADO.Sessions;\n\npackage Regtests is\n\n -- ------------------------------\n -- Get the database manager to be used for the unit tests\n -- ------------------------------\n function Get_Controller return ADO.Databases.DataSource'Class;\n\n -- ------------------------------\n -- Get the readonly connection database to be used for the unit tests\n -- ------------------------------\n function Get_Database return ADO.Sessions.Session;\n\n -- ------------------------------\n -- Get the writeable connection database to be used for the unit tests\n -- ------------------------------\n function Get_Master_Database return ADO.Sessions.Master_Session;\n\n -- ------------------------------\n -- Initialize the test database\n -- ------------------------------\n procedure Initialize (Name : in String);\n\nend Regtests;\n","new_contents":"-----------------------------------------------------------------------\n-- ADO Tests -- Database sequence generator\n-- Copyright (C) 2009, 2010, 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith ADO.Sessions;\nwith ADO.Sessions.Sources;\npackage Regtests is\n\n -- ------------------------------\n -- Get the database manager to be used for the unit tests\n -- ------------------------------\n function Get_Controller return ADO.Sessions.Sources.Data_Source'Class;\n\n -- ------------------------------\n -- Get the readonly connection database to be used for the unit tests\n -- ------------------------------\n function Get_Database return ADO.Sessions.Session;\n\n -- ------------------------------\n -- Get the writeable connection database to be used for the unit tests\n -- ------------------------------\n function Get_Master_Database return ADO.Sessions.Master_Session;\n\n -- ------------------------------\n -- Initialize the test database\n -- ------------------------------\n procedure Initialize (Name : in String);\n\nend Regtests;\n","subject":"Update the unit test declaration","message":"Update the unit test declaration\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-ado"} {"commit":"1aeac022f5a25ab65e3e6b74c8217364dc254b4d","old_file":"test\/FrontendAda\/element_copy.adb","new_file":"test\/FrontendAda\/element_copy.adb","old_contents":"-- RUN: %llvmgcc -S -O2 %s -I%p\/Support -o - | grep 105 | count 2\npackage body Element_Copy is\n function F return VariableSizedField is\n X : VariableSizedField;\n begin\n return X;\n end;\nend;\n","new_contents":"-- RUN: %llvmgcc -S -O2 %s -I%p\/Support -o - | grep 6899714\npackage body Element_Copy is\n function F return VariableSizedField is\n X : VariableSizedField;\n begin\n return X;\n end;\nend;\n","subject":"Adjust this test for recent sroa improvements.","message":"Adjust this test for recent sroa improvements.\n\n\ngit-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@66791 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"Ada","license":"bsd-2-clause","repos":"chubbymaggie\/asap,llvm-mirror\/llvm,apple\/swift-llvm,chubbymaggie\/asap,chubbymaggie\/asap,apple\/swift-llvm,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,dslab-epfl\/asap,llvm-mirror\/llvm,apple\/swift-llvm,apple\/swift-llvm,apple\/swift-llvm,chubbymaggie\/asap,dslab-epfl\/asap,apple\/swift-llvm,apple\/swift-llvm,llvm-mirror\/llvm,apple\/swift-llvm,chubbymaggie\/asap,dslab-epfl\/asap,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,llvm-mirror\/llvm,dslab-epfl\/asap,GPUOpen-Drivers\/llvm,chubbymaggie\/asap,llvm-mirror\/llvm,llvm-mirror\/llvm,dslab-epfl\/asap,GPUOpen-Drivers\/llvm"} {"commit":"a3dd9b6c434d7a2c0db8b29b947a30b6bf5f52a3","old_file":"src\/security.ads","new_file":"src\/security.ads","old_contents":"-----------------------------------------------------------------------\n-- security -- Security\n-- Copyright (C) 2010, 2011, 2012 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-- == Introduction ==\n--\n--\n-- @include security-contexts.ads\n-- @include security-controllers.ads\npackage Security is\n\nend Security;\n","new_contents":"-----------------------------------------------------------------------\n-- security -- Security\n-- Copyright (C) 2010, 2011, 2012 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-- == Introduction ==\n-- The Security<\/tt> package provides security frameworks that allows\n-- an application to use OpenID or OAuth security frameworks. This security\n-- framework was first developed within the Ada Server Faces project.\n--\n-- @include security-permissions.ads\n-- @include security-openid.ads\n-- @include security-oauth.ads\n-- @include security-contexts.ads\n-- @include security-controllers.ads\npackage Security is\n\nend Security;\n","subject":"Add the permission in the documentation","message":"Add the permission in the documentation\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-security"} {"commit":"7c4e3a3b77475bf67e44f203280c38e5f10486c1","old_file":"src\/asf-components-widgets-factory.ads","new_file":"src\/asf-components-widgets-factory.ads","old_contents":"-----------------------------------------------------------------------\n-- widgets-factory -- Factory for widget Components\n-- Copyright (C) 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith ASF.Factory;\n\npackage ASF.Components.Widgets.Factory is\n\n -- Get the widget component factory.\n function Definition return ASF.Factory.Factory_Bindings_Access;\n\nend ASF.Components.Widgets.Factory;\n","new_contents":"-----------------------------------------------------------------------\n-- widgets-factory -- Factory for widget Components\n-- Copyright (C) 2013, 2018 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith ASF.Factory;\n\npackage ASF.Components.Widgets.Factory is\n\n -- Register the widget component factory.\n procedure Register (Factory : in out ASF.Factory.Component_Factory);\n\nend ASF.Components.Widgets.Factory;\n","subject":"Change the Definition function into a Register procedure","message":"Change the Definition function into a Register procedure\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-asf,stcarrez\/ada-asf,stcarrez\/ada-asf"} {"commit":"be033632c13720576f95913a73f79a6687ce8a89","old_file":"src\/gen-commands-plugins.ads","new_file":"src\/gen-commands-plugins.ads","old_contents":"-----------------------------------------------------------------------\n-- gen-commands-plugins -- Plugin creation and management commands for dynamo\n-- Copyright (C) 2012 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Plugins is\n\n -- ------------------------------\n -- Generator Command\n -- ------------------------------\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n procedure Execute (Cmd : in Command;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n procedure Help (Cmd : in Command;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Plugins;\n","new_contents":"-----------------------------------------------------------------------\n-- gen-commands-plugins -- Plugin creation and management commands for dynamo\n-- Copyright (C) 2012, 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Plugins is\n\n -- ------------------------------\n -- Generator Command\n -- ------------------------------\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n overriding\n procedure Execute (Cmd : in Command;\n Name : in String;\n Args : in Argument_List'Class;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Cmd : in Command;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Plugins;\n","subject":"Update to use the new command implementation","message":"Update to use the new command implementation\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/dynamo,stcarrez\/dynamo,stcarrez\/dynamo"} {"commit":"1fc028c368771c2a72503ab95889f77136869cb7","old_file":"src\/wiki-plugins.ads","new_file":"src\/wiki-plugins.ads","old_contents":"-----------------------------------------------------------------------\n-- wiki-plugins -- Wiki plugins\n-- Copyright (C) 2016 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Wiki.Attributes;\nwith Wiki.Nodes;\n\n-- == Plugins ==\n-- The Wiki.Plugins<\/b> package defines the plugin interface that is used by the wiki\n-- engine to provide pluggable extensions in the Wiki.\n--\npackage Wiki.Plugins is\n\n pragma Preelaborate;\n\n type Wiki_Plugin is limited interface;\n type Wiki_Plugin_Access is access all Wiki_Plugin'Class;\n\n -- Expand the plugin configured with the parameters for the document.\n procedure Expand (Plugin : in out Wiki_Plugin;\n Document : in out Wiki.Nodes.Document;\n Params : in out Wiki.Attributes.Attribute_List) is abstract;\n\nend Wiki.Plugins;\n","new_contents":"-----------------------------------------------------------------------\n-- wiki-plugins -- Wiki plugins\n-- Copyright (C) 2016 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Wiki.Attributes;\nwith Wiki.Documents;\n\n-- == Plugins ==\n-- The Wiki.Plugins<\/b> package defines the plugin interface that is used by the wiki\n-- engine to provide pluggable extensions in the Wiki.\n--\npackage Wiki.Plugins is\n\n pragma Preelaborate;\n\n type Wiki_Plugin is limited interface;\n type Wiki_Plugin_Access is access all Wiki_Plugin'Class;\n\n -- Expand the plugin configured with the parameters for the document.\n procedure Expand (Plugin : in out Wiki_Plugin;\n Document : in out Wiki.Documents.Document;\n Params : in out Wiki.Attributes.Attribute_List) is abstract;\n\nend Wiki.Plugins;\n","subject":"Move the Document type to Wiki.Documents package","message":"Move the Document type to Wiki.Documents package\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-wiki,stcarrez\/ada-wiki"} {"commit":"fce3c4215f2288d770733561b0ff3b32b79a6e12","old_file":"mat\/src\/matp.adb","new_file":"mat\/src\/matp.adb","old_contents":"-----------------------------------------------------------------------\n-- mat-types -- Global types\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Ada.IO_Exceptions;\n\nwith MAT.Commands;\nwith MAT.Targets;\nwith MAT.Consoles.Text;\nwith MAT.Readers.Streams.Sockets;\nprocedure Matp is\n Target : MAT.Targets.Target_Type;\n Options : MAT.Commands.Options_Type;\n Console : aliased MAT.Consoles.Text.Console_Type;\n Server : MAT.Readers.Streams.Sockets.Socket_Listener_Type;\nbegin\n Target.Console (Console'Unchecked_Access);\n MAT.Commands.Initialize_Options (Target, Options);\n MAT.Commands.Initialize_Files (Target);\n Server.Start (Options.Address);\n MAT.Commands.Interactive (Target);\n Server.Stop;\n\nexception\n when Ada.IO_Exceptions.End_Error | MAT.Commands.Usage_Error =>\n Server.Stop;\nend Matp;\n","new_contents":"-----------------------------------------------------------------------\n-- mat-types -- Global types\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Ada.IO_Exceptions;\n\nwith MAT.Commands;\nwith MAT.Targets;\nwith MAT.Consoles.Text;\nwith MAT.Readers.Streams.Sockets;\nprocedure Matp is\n Target : MAT.Targets.Target_Type;\n Console : aliased MAT.Consoles.Text.Console_Type;\n Server : MAT.Readers.Streams.Sockets.Socket_Listener_Type;\nbegin\n Target.Console (Console'Unchecked_Access);\n Target.Initialize_Options;\n MAT.Commands.Initialize_Files (Target);\n Server.Start (Options.Address);\n MAT.Commands.Interactive (Target);\n Server.Stop;\n\nexception\n when Ada.IO_Exceptions.End_Error | MAT.Targets.Usage_Error =>\n Server.Stop;\nend Matp;\n","subject":"Update to use the target Initialize_Options procedure","message":"Update to use the target Initialize_Options procedure\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/mat,stcarrez\/mat,stcarrez\/mat"} {"commit":"86cbf7e168b4ccd66c1f6ce7199feee586b2b12b","old_file":"awa\/plugins\/awa-workspaces\/regtests\/awa-workspaces-tests.ads","new_file":"awa\/plugins\/awa-workspaces\/regtests\/awa-workspaces-tests.ads","old_contents":"-----------------------------------------------------------------------\n-- awa-workspaces-tests -- Unit tests for workspaces and invitations\n-- Copyright (C) 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\nwith AWA.Tests;\n\npackage AWA.Workspaces.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new AWA.Tests.Test with null record;\n\n -- Test sending an invitation.\n procedure Test_Invite_User (T : in out Test);\n\nend AWA.Workspaces.Tests;\n","new_contents":"-----------------------------------------------------------------------\n-- awa-workspaces-tests -- Unit tests for workspaces and invitations\n-- Copyright (C) 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\nwith AWA.Tests;\n\npackage AWA.Workspaces.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new AWA.Tests.Test with null record;\n\n -- Verify the anonymous access for the invitation page.\n procedure Verify_Anonymous (T : in out Test;\n Key : in String);\n\n -- Test sending an invitation.\n procedure Test_Invite_User (T : in out Test);\n\nend AWA.Workspaces.Tests;\n","subject":"Declare the Verify_Anonymous procedure to check the invitation page","message":"Declare the Verify_Anonymous procedure to check the invitation page\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa"} {"commit":"df3f9b981865ac5e840647000e5b919fa2c3f0c0","old_file":"awa\/plugins\/awa-storages\/src\/awa-storages.adb","new_file":"awa\/plugins\/awa-storages\/src\/awa-storages.adb","old_contents":"-----------------------------------------------------------------------\r\n-- awa-storages -- Storage module\r\n-- Copyright (C) 2012 Stephane Carrez\r\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\r\n--\r\n-- Licensed under the Apache License, Version 2.0 (the \"License\");\r\n-- you may not use this file except in compliance with the License.\r\n-- You may obtain a copy of the License at\r\n--\r\n-- http:\/\/www.apache.org\/licenses\/LICENSE-2.0\r\n--\r\n-- Unless required by applicable law or agreed to in writing, software\r\n-- distributed under the License is distributed on an \"AS IS\" BASIS,\r\n-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n-- See the License for the specific language governing permissions and\r\n-- limitations under the License.\r\n-----------------------------------------------------------------------\r\n\r\npackage body AWA.Storages is\r\n\r\n -- ------------------------------\r\n -- Get the path to get access to the file.\r\n -- ------------------------------\r\n function Get_Path (File : in Storage_File) return String is\r\n begin\r\n return Ada.Strings.Unbounded.To_String (File.Path);\r\n end Get_Path;\r\n\r\nend AWA.Storages;\r\n","new_contents":"-----------------------------------------------------------------------\n-- awa-storages -- Storage module\n-- Copyright (C) 2012, 2016 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Ada.Directories;\npackage body AWA.Storages is\n\n -- ------------------------------\n -- Get the path to get access to the file.\n -- ------------------------------\n function Get_Path (File : in Storage_File) return String is\n begin\n return Ada.Strings.Unbounded.To_String (File.Path);\n end Get_Path;\n\n -- ------------------------------\n -- Get the path to get access to the file.\n -- ------------------------------\n function Get_Path (File : in Temporary_File) return String is\n begin\n return Ada.Strings.Unbounded.To_String (File.Path);\n end Get_Path;\n\n overriding\n procedure Finalize (File : in out Temporary_File) is\n Path : constant String := Ada.Strings.Unbounded.To_String (File.Path);\n begin\n if Path'Length > 0 and then Ada.Directories.Exists (Path) then\n Ada.Directories.Delete_File (Path);\n end if;\n end Finalize;\n\nend AWA.Storages;\n","subject":"Implement Get_Path and Finalize procedures for Temporary_File type","message":"Implement Get_Path and Finalize procedures for Temporary_File type\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa"} {"commit":"e2df7b9b01e86ea2d4ffbb842d92ef0858ccac62","old_file":"mat\/src\/gtk\/gtkmatp.adb","new_file":"mat\/src\/gtk\/gtkmatp.adb","old_contents":"-----------------------------------------------------------------------\n-- gtkmatp -- Gtk MAT application\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Ada.IO_Exceptions;\n\nwith MAT.Commands;\nwith MAT.Targets;\nwith MAT.Consoles.Text;\nwith MAT.Targets.Gtkmat;\n\nwith Gtk.Main;\nwith Gtk.Widget;\nprocedure GtkMatp is\n Main : Gtk.Widget.Gtk_Widget;\n Target : MAT.Targets.Gtkmat.Target_Type;\nbegin\n Target.Initialize_Options;\n Target.Initialize_Widget (Main);\n MAT.Commands.Initialize_Files (Target);\n Target.Start;\n MAT.Commands.Interactive (Target);\n Target.Stop;\n\n Gtk.Main.Main;\nend GtkMatp;\n","new_contents":"-----------------------------------------------------------------------\n-- gtkmatp -- Gtk MAT application\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Ada.IO_Exceptions;\n\nwith MAT.Commands;\nwith MAT.Targets;\nwith MAT.Consoles.Text;\nwith MAT.Targets.Gtkmat;\n\nwith Gtk.Widget;\nprocedure GtkMatp is\n Main : Gtk.Widget.Gtk_Widget;\n Target : MAT.Targets.Gtkmat.Target_Type;\nbegin\n Target.Initialize_Options;\n Target.Initialize_Widget (Main);\n MAT.Commands.Initialize_Files (Target);\n Target.Start;\n MAT.Commands.Interactive (Target);\n Target.Stop;\nend GtkMatp;\n","subject":"Remove the Gtk main loop","message":"Remove the Gtk main loop\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/mat,stcarrez\/mat,stcarrez\/mat"} {"commit":"5ba0ff1950cda97c019401e56cba37a5eeec0596","old_file":"resources\/scripts\/scrape\/duckduckgo.ads","new_file":"resources\/scripts\/scrape\/duckduckgo.ads","old_contents":"-- Copyright 2021 Jeff Foley. All rights reserved.\n-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.\n\nname = \"DuckDuckGo\"\ntype = \"scrape\"\n\nfunction start()\n setratelimit(1)\nend\n\nfunction vertical(ctx, domain)\n scrape(ctx, {['url']=\"https:\/\/html.duckduckgo.com\/html\/?q=site:\" .. domain})\nend\n","new_contents":"-- Copyright 2021 Jeff Foley. All rights reserved.\n-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.\n\nname = \"DuckDuckGo\"\ntype = \"scrape\"\n\nfunction start()\n setratelimit(1)\nend\n\nfunction vertical(ctx, domain)\n scrape(ctx, {['url']=buildurl(domain)})\nend\n\nfunction buildurl(domain)\n return \"https:\/\/html.duckduckgo.com\/html\/?q=site:\" .. domain .. \" -site:www.\" .. domain\nend\n","subject":"Exclude www from DuckDuckGo search result","message":"Exclude www from DuckDuckGo search result","lang":"Ada","license":"apache-2.0","repos":"caffix\/amass,caffix\/amass"} {"commit":"c73b2a83da61a709a748b9a3aa4ddad94be9ac66","old_file":"src\/gen-commands-info.ads","new_file":"src\/gen-commands-info.ads","old_contents":"-----------------------------------------------------------------------\n-- gen-commands-info -- Collect and give information about the project\n-- Copyright (C) 2011, 2017, 2018 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Info is\n\n -- ------------------------------\n -- Project Information Command\n -- ------------------------------\n -- This command collects information about the project and print it.\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n overriding\n procedure Execute (Cmd : in out Command;\n Name : in String;\n Args : in Argument_List'Class;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Cmd : in out Command;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Info;\n","new_contents":"-----------------------------------------------------------------------\n-- gen-commands-info -- Collect and give information about the project\n-- Copyright (C) 2011, 2017, 2018, 2019 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Info is\n\n -- ------------------------------\n -- Project Information Command\n -- ------------------------------\n -- This command collects information about the project and print it.\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n overriding\n procedure Execute (Cmd : in out Command;\n Name : in String;\n Args : in Argument_List'Class;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Cmd : in out Command;\n Name : in String;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Info;\n","subject":"Add Name parameter to the Help procedure","message":"Add Name parameter to the Help procedure\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/dynamo,stcarrez\/dynamo,stcarrez\/dynamo"} {"commit":"dd579e30f700d1950577dd153ee69603fda22434","old_file":"awa\/regtests\/awa-mail-modules-tests.ads","new_file":"awa\/regtests\/awa-mail-modules-tests.ads","old_contents":"-----------------------------------------------------------------------\n-- awa-mail-module-tests -- Unit tests for Mail module\n-- Copyright (C) 2012 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\nwith AWA.Tests;\n\npackage AWA.Mail.Modules.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new AWA.Tests.Test with null record;\n\n -- Create an email message and verify its content.\n procedure Test_Create_Message (T : in out Test);\n\nend AWA.Mail.Modules.Tests;\n","new_contents":"-----------------------------------------------------------------------\n-- awa-mail-module-tests -- Unit tests for Mail module\n-- Copyright (C) 2012, 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\nwith AWA.Tests;\n\npackage AWA.Mail.Modules.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new AWA.Tests.Test with null record;\n\n -- Create an email message with the given template and verify its content.\n procedure Test_Mail_Message (T : in out Test;\n Name : in String);\n\n -- Create an email message and verify its content.\n procedure Test_Create_Message (T : in out Test);\n\n -- Create an email message with Cc: and verify its content.\n procedure Test_Cc_Message (T : in out Test);\n\n -- Create an email message with Bcc: and verify its content.\n procedure Test_Bcc_Message (T : in out Test);\n\nend AWA.Mail.Modules.Tests;\n","subject":"Add new tests for mail Cc and Bcc","message":"Add new tests for mail Cc and Bcc\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa"} {"commit":"827c3ce72ca31f16885f809a4c436d3beed1ff3e","old_file":"awa\/plugins\/awa-counters\/src\/awa-counters-definition.ads","new_file":"awa\/plugins\/awa-counters\/src\/awa-counters-definition.ads","old_contents":"-----------------------------------------------------------------------\n-- awa-counters-definition -- Counter definition\n-- Copyright (C) 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-- The AWA.Counters.Definition<\/tt> package is instantiated for each counter definition.\ngeneric\n Table : ADO.Schemas.Class_Mapping_Access;\n Field : String;\npackage AWA.Counters.Definition is\n\n Def_Name : aliased constant String := Field;\n\n -- Get the counter definition index.\n function Index return Counter_Index_Type;\n\nprivate\n\n package Def is new Counter_Arrays.Definition (Counter_Def '(Table, Def_Name'Access));\n\n -- Get the counter definition index.\n function Index return Counter_Index_Type renames Def.Kind;\n\nend AWA.Counters.Definition;\n","new_contents":"-----------------------------------------------------------------------\n-- awa-counters-definition -- Counter definition\n-- Copyright (C) 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-- The AWA.Counters.Definition<\/tt> package is instantiated for each counter definition.\ngeneric\n Table : ADO.Schemas.Class_Mapping_Access;\n Field : String := \"\";\npackage AWA.Counters.Definition is\n\n Def_Name : aliased constant String := Field;\n\n -- Get the counter definition index.\n function Index return Counter_Index_Type;\n\nprivate\n\n package Def is new Counter_Arrays.Definition (Counter_Def '(Table, Def_Name'Access));\n\n -- Get the counter definition index.\n function Index return Counter_Index_Type renames Def.Kind;\n\nend AWA.Counters.Definition;\n","subject":"Change the Field parameter to be optional","message":"Change the Field parameter to be optional\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa"} {"commit":"75baa9b76472b63a7a2a119922787c85014b5e5f","old_file":"mat\/src\/matp.adb","new_file":"mat\/src\/matp.adb","old_contents":"-----------------------------------------------------------------------\n-- mat-types -- Global types\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Ada.IO_Exceptions;\n\nwith MAT.Commands;\nwith MAT.Targets;\nwith MAT.Consoles.Text;\nwith MAT.Readers.Streams.Sockets;\nprocedure Matp is\n Target : MAT.Targets.Target_Type;\n Options : MAT.Commands.Options_Type;\n Console : aliased MAT.Consoles.Text.Console_Type;\n Server : MAT.Readers.Streams.Sockets.Socket_Listener_Type;\nbegin\n Target.Console (Console'Unchecked_Access);\n MAT.Commands.Initialize_Options (Target, Options);\n Server.Start (Options.Address);\n MAT.Commands.Interactive (Target);\n Server.Stop;\n\nexception\n when Ada.IO_Exceptions.End_Error | MAT.Commands.Usage_Error =>\n Server.Stop;\nend Matp;\n","new_contents":"-----------------------------------------------------------------------\n-- mat-types -- Global types\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Ada.IO_Exceptions;\n\nwith MAT.Commands;\nwith MAT.Targets;\nwith MAT.Consoles.Text;\nwith MAT.Readers.Streams.Sockets;\nprocedure Matp is\n Target : MAT.Targets.Target_Type;\n Options : MAT.Commands.Options_Type;\n Console : aliased MAT.Consoles.Text.Console_Type;\n Server : MAT.Readers.Streams.Sockets.Socket_Listener_Type;\nbegin\n Target.Console (Console'Unchecked_Access);\n MAT.Commands.Initialize_Options (Target, Options);\n MAT.Commands.Initialize_Files (Target);\n Server.Start (Options.Address);\n MAT.Commands.Interactive (Target);\n Server.Stop;\n\nexception\n when Ada.IO_Exceptions.End_Error | MAT.Commands.Usage_Error =>\n Server.Stop;\nend Matp;\n","subject":"Load the MAT files passed in the command line argument","message":"Load the MAT files passed in the command line argument\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/mat,stcarrez\/mat,stcarrez\/mat"} {"commit":"c07896268b3a1be5d6cb418504473e15530165a7","old_file":"src\/util-commands.ads","new_file":"src\/util-commands.ads","old_contents":"-----------------------------------------------------------------------\n-- util-commands -- Support to make command line tools\n-- Copyright (C) 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\npackage Util.Commands is\n\n -- The argument list interface that gives access to command arguments.\n type Argument_List is limited interface;\n\n -- Get the number of arguments available.\n function Get_Count (List : in Argument_List) return Natural is abstract;\n\n -- Get the argument at the given position.\n function Get_Argument (List : in Argument_List;\n Pos : in Positive) return String is abstract;\n\nend Util.Commands;\n","new_contents":"-----------------------------------------------------------------------\n-- util-commands -- Support to make command line tools\n-- Copyright (C) 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\npackage Util.Commands is\n\n -- The argument list interface that gives access to command arguments.\n type Argument_List is limited interface;\n\n -- Get the number of arguments available.\n function Get_Count (List : in Argument_List) return Natural is abstract;\n\n -- Get the argument at the given position.\n function Get_Argument (List : in Argument_List;\n Pos : in Positive) return String is abstract;\n\n type Default_Argument_List (Offset : Natural) is new Argument_List with null record;\n\n -- Get the number of arguments available.\n overriding\n function Get_Count (List : in Default_Argument_List) return Natural;\n\n -- Get the argument at the given position.\n overriding\n function Get_Argument (List : in Default_Argument_List;\n Pos : in Positive) return String;\n\nend Util.Commands;\n","subject":"Declare the Default_Argument_List and override the Get_Count and Get_Argument operations","message":"Declare the Default_Argument_List and override the Get_Count and Get_Argument operations\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"5b0b4a558b5c3205044fb5a57dfa8417c61cfd26","old_file":"src\/asf-lifecycles-default.ads","new_file":"src\/asf-lifecycles-default.ads","old_contents":"-----------------------------------------------------------------------\n-- asf-lifecycles-default -- Default Lifecycle handler\n-- Copyright (C) 2010 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage ASF.Lifecycles.Default is\n\n type Lifecycle is new ASF.Lifecycles.Lifecycle with null record;\n\n -- Creates the phase controllers by invoking the Set_Controller<\/b>\n -- procedure for each phase. This is called by Initialize<\/b> to build\n -- the lifecycle handler.\n procedure Create_Phase_Controllers (Controller : in out Lifecycle);\n\n -- Initialize the the lifecycle handler.\n overriding\n procedure Initialize (Controller : in out Lifecycle;\n App : access ASF.Applications.Main.Application'Class);\n\nend ASF.Lifecycles.Default;\n","new_contents":"-----------------------------------------------------------------------\n-- asf-lifecycles-default -- Default Lifecycle handler\n-- Copyright (C) 2010, 2018 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage ASF.Lifecycles.Default is\n\n type Lifecycle is new ASF.Lifecycles.Lifecycle with null record;\n\n -- Creates the phase controllers by invoking the Set_Controller<\/b>\n -- procedure for each phase. This is called by Initialize<\/b> to build\n -- the lifecycle handler.\n procedure Create_Phase_Controllers (Controller : in out Lifecycle);\n\n -- Initialize the the lifecycle handler.\n overriding\n procedure Initialize (Controller : in out Lifecycle;\n Views : access ASF.Applications.Views.View_Handler'Class);\n\nend ASF.Lifecycles.Default;\n","subject":"Update Initialize to use a ASF.Applications.Views.View_Handler'Class","message":"Update Initialize to use a ASF.Applications.Views.View_Handler'Class\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-asf,stcarrez\/ada-asf,stcarrez\/ada-asf"} {"commit":"4371ca7c8bd1a5f86fd7bc9694f74274d79d76e4","old_file":"regtests\/util-dates-tests.ads","new_file":"regtests\/util-dates-tests.ads","old_contents":"-----------------------------------------------------------------------\n-- util-dates-tests - Test for dates\n-- Copyright (C) 2018, 2020 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\npackage Util.Dates.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n -- Test converting a date in ISO8601.\n procedure Test_ISO8601_Image (T : in out Test);\n\n -- Test converting a string in ISO8601 into a date.\n procedure Test_ISO8601_Value (T : in out Test);\n\n -- Test value convertion errors.\n procedure Test_ISO8601_Error (T : in out Test);\n\nend Util.Dates.Tests;\n","new_contents":"-----------------------------------------------------------------------\n-- util-dates-tests - Test for dates\n-- Copyright (C) 2018, 2020 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\npackage Util.Dates.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n -- Test converting a date in ISO8601.\n procedure Test_ISO8601_Image (T : in out Test);\n\n -- Test converting a string in ISO8601 into a date.\n procedure Test_ISO8601_Value (T : in out Test);\n\n -- Test value convertion errors.\n procedure Test_ISO8601_Error (T : in out Test);\n\n -- Test Is_Same_Day operation.\n procedure Test_Is_Same_Day (T : in out Test);\n\nend Util.Dates.Tests;\n","subject":"Add Test_Is_Same_Day to check the Is_Same_Day operation","message":"Add Test_Is_Same_Day to check the Is_Same_Day operation\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"67dd28110d63a9d0eb65cd8623ac9deb8ac2551c","old_file":"src\/gen-commands-project.ads","new_file":"src\/gen-commands-project.ads","old_contents":"-----------------------------------------------------------------------\n-- gen-commands-project -- Project creation command for dynamo\n-- Copyright (C) 2011 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Project is\n\n -- ------------------------------\n -- Generator Command\n -- ------------------------------\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n procedure Execute (Cmd : in Command;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n procedure Help (Cmd : in Command;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Project;\n","new_contents":"-----------------------------------------------------------------------\n-- gen-commands-project -- Project creation command for dynamo\n-- Copyright (C) 2011, 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Project is\n\n -- ------------------------------\n -- Generator Command\n -- ------------------------------\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n overriding\n procedure Execute (Cmd : in Command;\n Name : in String;\n Args : in Argument_List'Class;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Cmd : in Command;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Project;\n","subject":"Update to use the new command implementation","message":"Update to use the new command implementation\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/dynamo,stcarrez\/dynamo,stcarrez\/dynamo"} {"commit":"221c3eb5dbed978e8e1310dfa06d561b2dc97767","old_file":"src\/definitions.ads","new_file":"src\/definitions.ads","old_contents":"-- This file is covered by the Internet Software Consortium (ISC) License\n-- Reference: ..\/License.txt\n\npackage Definitions is\n\n pragma Pure;\n\n synth_version_major : constant String := \"1\";\n synth_version_minor : constant String := \"02\";\n copyright_years : constant String := \"2015-2016\";\n host_localbase : constant String := \"\/usr\/local\";\n host_pkg8 : constant String := host_localbase & \"\/sbin\/pkg\";\n jobs_per_cpu : constant := 2;\n\n type cpu_range is range 1 .. 32;\n type scanners is range cpu_range'First .. cpu_range'Last;\n type builders is range cpu_range'First .. cpu_range'Last * jobs_per_cpu;\n\nend Definitions;\n","new_contents":"-- This file is covered by the Internet Software Consortium (ISC) License\n-- Reference: ..\/License.txt\n\npackage Definitions is\n\n pragma Pure;\n\n synth_version_major : constant String := \"1\";\n synth_version_minor : constant String := \"03\";\n copyright_years : constant String := \"2015-2016\";\n host_localbase : constant String := \"\/usr\/local\";\n host_pkg8 : constant String := host_localbase & \"\/sbin\/pkg\";\n jobs_per_cpu : constant := 2;\n\n type cpu_range is range 1 .. 32;\n type scanners is range cpu_range'First .. cpu_range'Last;\n type builders is range cpu_range'First .. cpu_range'Last * jobs_per_cpu;\n\nend Definitions;\n","subject":"Bump to version 1.03 (term\/dtrace fixes self-confirmed)","message":"Bump to version 1.03 (term\/dtrace fixes self-confirmed)\n","lang":"Ada","license":"isc","repos":"jrmarino\/synth,jrmarino\/synth,jrmarino\/synth,jrmarino\/synth"} {"commit":"80d8835ded5d6289555075188f352813f694a933","old_file":"regtests\/security-testsuite.adb","new_file":"regtests\/security-testsuite.adb","old_contents":"-----------------------------------------------------------------------\n-- Security testsuite - Ada Security Test suite\n-- Copyright (C) 2011, 2012 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Security.OpenID.Tests;\nwith Security.Permissions.Tests;\nwith Security.Policies.Tests;\npackage body Security.Testsuite is\n\n Tests : aliased Util.Tests.Test_Suite;\n\n function Suite return Util.Tests.Access_Test_Suite is\n Ret : constant Util.Tests.Access_Test_Suite := Tests'Access;\n begin\n Security.OpenID.Tests.Add_Tests (Ret);\n Security.Permissions.Tests.Add_Tests (Ret);\n Security.Policies.Tests.Add_Tests (Ret);\n return Ret;\n end Suite;\n\nend Security.Testsuite;\n","new_contents":"-----------------------------------------------------------------------\n-- Security testsuite - Ada Security Test suite\n-- Copyright (C) 2011, 2012, 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Security.OpenID.Tests;\nwith Security.Permissions.Tests;\nwith Security.Policies.Tests;\nwith Security.OAuth.JWT.Tests;\npackage body Security.Testsuite is\n\n Tests : aliased Util.Tests.Test_Suite;\n\n function Suite return Util.Tests.Access_Test_Suite is\n Ret : constant Util.Tests.Access_Test_Suite := Tests'Access;\n begin\n Security.OAuth.JWT.Tests.Add_Tests (Ret);\n Security.OpenID.Tests.Add_Tests (Ret);\n Security.Permissions.Tests.Add_Tests (Ret);\n Security.Policies.Tests.Add_Tests (Ret);\n return Ret;\n end Suite;\n\nend Security.Testsuite;\n","subject":"Add the new unit tests","message":"Add the new unit tests\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-security"} {"commit":"9ec7dc42a5848802e292cf5c6381f3784bd5b5ff","old_file":"awa\/plugins\/awa-tags\/src\/awa-tags.ads","new_file":"awa\/plugins\/awa-tags\/src\/awa-tags.ads","old_contents":"-----------------------------------------------------------------------\n-- awa-tags -- Tags management\n-- Copyright (C) 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-- == Introduction ==\n-- The Tags<\/b> module allows to associate general purpose tags to any database entity.\n--\n-- == Model ==\n-- [http:\/\/ada-awa.googlecode.com\/svn\/wiki\/awa_tags_model.png]\n--\n-- @include awa-tags-modules.ads\npackage AWA.Tags is\n\n pragma Pure;\n\nend AWA.Tags;\n","new_contents":"-----------------------------------------------------------------------\n-- awa-tags -- Tags management\n-- Copyright (C) 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-- == Introduction ==\n-- The Tags<\/b> module allows to associate general purpose tags to any database entity.\n-- It provides a JSF component that allows to insert easily a list of tags in a page and\n-- in a form. An application can use the bean types defined in AWA.Tags.Beans<\/tt>\n-- to define the tags and it will use the awa:tagList<\/tt> component to display them.\n--\n-- == Model ==\n-- [http:\/\/ada-awa.googlecode.com\/svn\/wiki\/awa_tags_model.png]\n--\n-- @include awa-tags-modules.ads\n-- @include awa-tags-beans.ads\n-- @include awa-tags-components.ads\n--\npackage AWA.Tags is\n\n pragma Pure;\n\nend AWA.Tags;\n","subject":"Document the Tags plugin in AWA","message":"Document the Tags plugin in AWA","lang":"Ada","license":"apache-2.0","repos":"Letractively\/ada-awa,tectronics\/ada-awa,Letractively\/ada-awa,tectronics\/ada-awa,tectronics\/ada-awa,Letractively\/ada-awa"} {"commit":"69efcb859896e91d312d8b07e551511816c72cf6","old_file":"regtests\/asf-requests-tests.ads","new_file":"regtests\/asf-requests-tests.ads","old_contents":"-----------------------------------------------------------------------\n-- asf-requests-tests - Unit tests for requests\n-- Copyright (C) 2012 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\n\npackage ASF.Requests.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n -- Test the Split_Header procedure.\n procedure Test_Split_Header (T : in out Test);\n\n -- Test the Accept_Locales procedure.\n procedure Test_Accept_Locales (T : in out Test);\n\nend ASF.Requests.Tests;\n","new_contents":"-----------------------------------------------------------------------\n-- asf-requests-tests - Unit tests for requests\n-- Copyright (C) 2012, 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\n\npackage ASF.Requests.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n -- Test the Split_Header procedure.\n procedure Test_Split_Header (T : in out Test);\n\n -- Test the Accept_Locales procedure.\n procedure Test_Accept_Locales (T : in out Test);\n\n -- Test the Set_Attribute procedure.\n procedure Test_Set_Attribute (T : in out Test);\n\nend ASF.Requests.Tests;\n","subject":"Declare the Test_Set_Attribute procedure to check the Set\/Get\/Remove attribute","message":"Declare the Test_Set_Attribute procedure to check the Set\/Get\/Remove attribute\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-asf,stcarrez\/ada-asf,stcarrez\/ada-asf"} {"commit":"95880958f105d4b3a56bfffe99308c2e53c9554b","old_file":"src\/util-processes-tools.ads","new_file":"src\/util-processes-tools.ads","old_contents":"-----------------------------------------------------------------------\n-- util-processes-tools -- System specific and low level operations\n-- Copyright (C) 2018 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Strings.Vectors;\n\npackage Util.Processes.Tools is\n\n -- Execute the command and append the output in the vector array.\n -- The program output is read line by line and the standard input is closed.\n -- Return the program exit status.\n procedure Execute (Command : in String;\n Output : in out Util.Strings.Vectors.Vector;\n Status : out Integer);\n\nend Util.Processes.Tools;\n","new_contents":"-----------------------------------------------------------------------\n-- util-processes-tools -- System specific and low level operations\n-- Copyright (C) 2018 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Strings.Vectors;\nwith Util.Streams.Pipes;\npackage Util.Processes.Tools is\n\n -- Execute the command and append the output in the vector array.\n -- The program output is read line by line and the standard input is closed.\n -- Return the program exit status.\n procedure Execute (Command : in String;\n Output : in out Util.Strings.Vectors.Vector;\n Status : out Integer);\n\n procedure Execute (Command : in String;\n Input_Path : in String;\n Output : in out Util.Strings.Vectors.Vector;\n Status : out Integer);\n\n procedure Execute (Command : in String;\n Process : in out Util.Streams.Pipes.Pipe_Stream;\n Output : in out Util.Strings.Vectors.Vector;\n Status : out Integer);\n\nend Util.Processes.Tools;\n","subject":"Declare more Execute procedures as helper to launch a command and get the output","message":"Declare more Execute procedures as helper to launch a command and get the output\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"95be7c3737b22b8f447dfed41202288270d31d37","old_file":"awa\/plugins\/awa-blogs\/regtests\/awa-blogs-tests.ads","new_file":"awa\/plugins\/awa-blogs\/regtests\/awa-blogs-tests.ads","old_contents":"-----------------------------------------------------------------------\n-- awa-blogs-tests -- Unit tests for blogs module\n-- Copyright (C) 2011 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\n\npackage AWA.Blogs.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n -- Test creation of blog by simulating web requests.\n procedure Test_Create_Blog (T : in out Test);\n\nend AWA.Blogs.Tests;\n","new_contents":"-----------------------------------------------------------------------\n-- awa-blogs-tests -- Unit tests for blogs module\n-- Copyright (C) 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\nwith Ada.Strings.Unbounded;\n\npackage AWA.Blogs.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with record\n Blog_Ident : Ada.Strings.Unbounded.Unbounded_String;\n Post_Ident : Ada.Strings.Unbounded.Unbounded_String;\n Post_Uri : Ada.Strings.Unbounded.Unbounded_String;\n end record;\n\n -- Get some access on the blog as anonymous users.\n procedure Verify_Anonymous (T : in out Test;\n Post : in String);\n\n -- Test access to the blog as anonymous user.\n procedure Test_Anonymous_Access (T : in out Test);\n\n -- Test creation of blog by simulating web requests.\n procedure Test_Create_Blog (T : in out Test);\n\n -- Test updating a post by simulating web requests.\n procedure Test_Update_Post (T : in out Test);\n\nend AWA.Blogs.Tests;\n","subject":"Declare two new unit tests Test_Update_Post and Test_Anonymous_Access","message":"Declare two new unit tests Test_Update_Post and Test_Anonymous_Access\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa"} {"commit":"5a3538c864f35bc5184b009d674572c3c67066a6","old_file":"src\/mysql\/ado-mysql.adb","new_file":"src\/mysql\/ado-mysql.adb","old_contents":"-----------------------------------------------------------------------\n-- ado-mysql -- Database Drivers\n-- Copyright (C) 2019 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith ADO.Configs;\nwith ADO.Connections.Mysql;\n\npackage body ADO.Mysql is\n\n -- ------------------------------\n -- Initialize the drivers and the library by reading the property file\n -- and configure the runtime with it.\n -- ------------------------------\n procedure Initialize (Config : in String) is\n begin\n ADO.Configs.Initialize (Config);\n ADO.Connections.Mysql.Initialize;\n end Initialize;\n\n -- ------------------------------\n -- Initialize the drivers and the library and configure the runtime with the given properties.\n -- ------------------------------\n procedure Initialize (Config : in Util.Properties.Manager'Class) is\n begin\n ADO.Configs.Initialize (Config);\n ADO.Connections.Mysql.Initialize;\n end Initialize;\n\nend ADO.Mysql;\n","new_contents":"-----------------------------------------------------------------------\n-- ado-mysql -- Database Drivers\n-- Copyright (C) 2019 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith ADO.Configs;\nwith ADO.Connections.Mysql;\n\npackage body ADO.Mysql is\n\n -- ------------------------------\n -- Initialize the Mysql driver.\n -- ------------------------------\n procedure Initialize is\n begin\n ADO.Connections.Mysql.Initialize;\n end Initialize;\n\n -- ------------------------------\n -- Initialize the drivers and the library by reading the property file\n -- and configure the runtime with it.\n -- ------------------------------\n procedure Initialize (Config : in String) is\n begin\n ADO.Configs.Initialize (Config);\n Initialize;\n end Initialize;\n\n -- ------------------------------\n -- Initialize the drivers and the library and configure the runtime with the given properties.\n -- ------------------------------\n procedure Initialize (Config : in Util.Properties.Manager'Class) is\n begin\n ADO.Configs.Initialize (Config);\n Initialize;\n end Initialize;\n\nend ADO.Mysql;\n","subject":"Implement the Initialize procedure and use it","message":"Implement the Initialize procedure and use it\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-ado"} {"commit":"fb8f7f1cf7a663a6ff22cbd2255abb8b7de8ebae","old_file":"awa\/regtests\/awa_harness.adb","new_file":"awa\/regtests\/awa_harness.adb","old_contents":"-----------------------------------------------------------------------\n-- AWA - Unit tests\n-- Copyright (C) 2009, 2010, 2011 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith AWA.Testsuite;\n\nwith Util.Tests;\nwith AWA.Tests;\nprocedure AWA_Harness is\n\n procedure Harness is new Util.Tests.Harness (AWA.Testsuite.Suite,\n AWA.Tests.Initialize);\n\nbegin\n Harness (\"awa-tests.xml\");\nend AWA_Harness;\n","new_contents":"-----------------------------------------------------------------------\n-- AWA - Unit tests\n-- Copyright (C) 2009, 2010, 2011, 2012 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith AWA.Testsuite;\n\nwith Util.Tests;\nwith AWA.Tests;\nprocedure AWA_Harness is\n\n procedure Harness is new Util.Tests.Harness (AWA.Testsuite.Suite,\n AWA.Tests.Initialize,\n AWA.Tests.Finish);\n\nbegin\n Harness (\"awa-tests.xml\");\nend AWA_Harness;\n","subject":"Call the Finish procedure after executing the testsuite Finish will destroy the AWA application that was allocated dynamically","message":"Call the Finish procedure after executing the testsuite\nFinish will destroy the AWA application that was allocated dynamically\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa"} {"commit":"689e10214201b442c0563f6c0044e726ac1c28f2","old_file":"regtests\/security-testsuite.adb","new_file":"regtests\/security-testsuite.adb","old_contents":"-----------------------------------------------------------------------\n-- Security testsuite - Ada Security Test suite\n-- Copyright (C) 2011, 2012 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Security.OpenID.Tests;\nwith Security.Permissions.Tests;\nwith Security.Policies.Tests;\npackage body Security.Testsuite is\n\n Tests : aliased Util.Tests.Test_Suite;\n\n function Suite return Util.Tests.Access_Test_Suite is\n Ret : constant Util.Tests.Access_Test_Suite := Tests'Access;\n begin\n Security.OpenID.Tests.Add_Tests (Ret);\n Security.Permissions.Tests.Add_Tests (Ret);\n Security.Policies.Tests.Add_Tests (Ret);\n return Ret;\n end Suite;\n\nend Security.Testsuite;\n","new_contents":"-----------------------------------------------------------------------\n-- Security testsuite - Ada Security Test suite\n-- Copyright (C) 2011, 2012, 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Security.OpenID.Tests;\nwith Security.Permissions.Tests;\nwith Security.Policies.Tests;\nwith Security.OAuth.JWT.Tests;\npackage body Security.Testsuite is\n\n Tests : aliased Util.Tests.Test_Suite;\n\n function Suite return Util.Tests.Access_Test_Suite is\n Ret : constant Util.Tests.Access_Test_Suite := Tests'Access;\n begin\n Security.OAuth.JWT.Tests.Add_Tests (Ret);\n Security.OpenID.Tests.Add_Tests (Ret);\n Security.Permissions.Tests.Add_Tests (Ret);\n Security.Policies.Tests.Add_Tests (Ret);\n return Ret;\n end Suite;\n\nend Security.Testsuite;\n","subject":"Add the new unit tests","message":"Add the new unit tests\n","lang":"Ada","license":"apache-2.0","repos":"Letractively\/ada-security"} {"commit":"ca75e6900380036a05c5ce6330dc232c0c79af27","old_file":"mat\/src\/mat-formats.ads","new_file":"mat\/src\/mat-formats.ads","old_contents":"-----------------------------------------------------------------------\n-- mat-formats - Format various types for the console or GUI interface\n-- Copyright (C) 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Ada.Strings.Unbounded;\n\nwith MAT.Types;\npackage MAT.Formats is\n\n -- Format the address into a string.\n function Addr (Value : in MAT.Types.Target_Addr) return String;\n\n -- Format the size into a string.\n function Size (Value : in MAT.Types.Target_Size) return String;\n\n -- Format a file, line, function information into a string.\n function Location (File : in Ada.Strings.Unbounded.Unbounded_String;\n Line : in Natural;\n Func : in Ada.Strings.Unbounded.Unbounded_String) return String;\n\nend MAT.Formats;\n","new_contents":"-----------------------------------------------------------------------\n-- mat-formats - Format various types for the console or GUI interface\n-- Copyright (C) 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Ada.Strings.Unbounded;\n\nwith MAT.Types;\nwith MAT.Events.Targets;\npackage MAT.Formats is\n\n -- Format the address into a string.\n function Addr (Value : in MAT.Types.Target_Addr) return String;\n\n -- Format the size into a string.\n function Size (Value : in MAT.Types.Target_Size) return String;\n\n -- Format a file, line, function information into a string.\n function Location (File : in Ada.Strings.Unbounded.Unbounded_String;\n Line : in Natural;\n Func : in Ada.Strings.Unbounded.Unbounded_String) return String;\n\n -- Format a short description of the event.\n function Event (Item : in MAT.Events.Targets.Probe_Event_Type;\n Related : in MAT.Events.Targets.Target_Event_Vector) return String;\n\nend MAT.Formats;\n","subject":"Declare the Event function to format an event in a printable short description","message":"Declare the Event function to format an event in a printable short description\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/mat,stcarrez\/mat,stcarrez\/mat"} {"commit":"225ddf74376da5a89f53dbcde8eea57064ecee76","old_file":"src\/gen-commands-distrib.ads","new_file":"src\/gen-commands-distrib.ads","old_contents":"-----------------------------------------------------------------------\r\n-- gen-commands-distrib -- Distrib command for dynamo\r\n-- Copyright (C) 2012 Stephane Carrez\r\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\r\n--\r\n-- Licensed under the Apache License, Version 2.0 (the \"License\");\r\n-- you may not use this file except in compliance with the License.\r\n-- You may obtain a copy of the License at\r\n--\r\n-- http:\/\/www.apache.org\/licenses\/LICENSE-2.0\r\n--\r\n-- Unless required by applicable law or agreed to in writing, software\r\n-- distributed under the License is distributed on an \"AS IS\" BASIS,\r\n-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n-- See the License for the specific language governing permissions and\r\n-- limitations under the License.\r\n-----------------------------------------------------------------------\r\n\r\npackage Gen.Commands.Distrib is\r\n\r\n -- ------------------------------\r\n -- Distrib Command\r\n -- ------------------------------\r\n type Command is new Gen.Commands.Command with null record;\r\n\r\n -- Execute the command with the arguments.\r\n procedure Execute (Cmd : in Command;\r\n Generator : in out Gen.Generator.Handler);\r\n\r\n -- Write the help associated with the command.\r\n procedure Help (Cmd : in Command;\r\n Generator : in out Gen.Generator.Handler);\r\n\r\nend Gen.Commands.Distrib;\r\n","new_contents":"-----------------------------------------------------------------------\n-- gen-commands-distrib -- Distrib command for dynamo\n-- Copyright (C) 2012, 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Distrib is\n\n -- ------------------------------\n -- Distrib Command\n -- ------------------------------\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n overriding\n procedure Execute (Cmd : in Command;\n Name : in String;\n Args : in Argument_List'Class;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Cmd : in Command;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Distrib;\n","subject":"Update to use the new command implementation","message":"Update to use the new command implementation\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/dynamo,stcarrez\/dynamo,stcarrez\/dynamo"} {"commit":"f16023ad92a6be1cf7665cdc9c6cc44e4b920d21","old_file":"src\/gen-commands.ads","new_file":"src\/gen-commands.ads","old_contents":"-----------------------------------------------------------------------\n-- gen-commands -- Commands for dynamo\n-- Copyright (C) 2011, 2012, 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Commands.Drivers;\nwith Gen.Generator;\npackage Gen.Commands is\n\n package Drivers is\n new Util.Commands.Drivers (Context_Type => Gen.Generator.Handler,\n Driver_Name => \"gen-commands\");\n\n subtype Command is Drivers.Command_Type;\n subtype Command_Access is Drivers.Command_Access;\n subtype Argument_List is Util.Commands.Argument_List;\n\n Driver : Drivers.Driver_Type;\n\n -- Print dynamo short usage.\n procedure Short_Help_Usage;\n\nend Gen.Commands;\n","new_contents":"-----------------------------------------------------------------------\n-- gen-commands -- Commands for dynamo\n-- Copyright (C) 2011, 2012, 2017, 2018 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Commands.Drivers;\nwith Util.Commands.Parsers;\nwith Gen.Generator;\npackage Gen.Commands is\n\n package Drivers is\n new Util.Commands.Drivers (Context_Type => Gen.Generator.Handler,\n Config_Parser => Util.Commands.Parsers.No_Parser,\n Driver_Name => \"gen-commands\");\n\n subtype Command is Drivers.Command_Type;\n subtype Command_Access is Drivers.Command_Access;\n subtype Argument_List is Util.Commands.Argument_List;\n\n Driver : Drivers.Driver_Type;\n\n -- Print dynamo short usage.\n procedure Short_Help_Usage;\n\nend Gen.Commands;\n","subject":"Update to use the No_Parser for commands","message":"Update to use the No_Parser for commands\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/dynamo,stcarrez\/dynamo,stcarrez\/dynamo"} {"commit":"012dc4bd70fdfd05692dcf8de01d1bb8eefff8cc","old_file":"awa\/plugins\/awa-workspaces\/src\/awa-workspaces.ads","new_file":"awa\/plugins\/awa-workspaces\/src\/awa-workspaces.ads","old_contents":"-----------------------------------------------------------------------\n-- awa-workspaces -- Module workspaces\n-- Copyright (C) 2011, 2012 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-- == Introduction ==\n-- The *workspaces* plugin defines a workspace area for other plugins.\n--\n-- == Data Model ==\n-- @include Workspace.hbm.xml\n--\npackage AWA.Workspaces is\nend AWA.Workspaces;\n","new_contents":"-----------------------------------------------------------------------\n-- awa-workspaces -- Module workspaces\n-- Copyright (C) 2011, 2012 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-- == Introduction ==\n-- The *workspaces* plugin defines a workspace area for other plugins.\n--\n-- == Ada Beans ==\n-- @include workspaces.xml\n--\n-- == Data Model ==\n-- @include Workspace.hbm.xml\n--\npackage AWA.Workspaces is\nend AWA.Workspaces;\n","subject":"Add the Ada beans in the workspace documentation","message":"Add the Ada beans in the workspace documentation\n","lang":"Ada","license":"apache-2.0","repos":"Letractively\/ada-awa,tectronics\/ada-awa,tectronics\/ada-awa,Letractively\/ada-awa,tectronics\/ada-awa,Letractively\/ada-awa"} {"commit":"0b34b35ce477b31573529b60f8bf2f4eab3c0138","old_file":"src\/base\/beans\/util-beans-objects-time.ads","new_file":"src\/base\/beans\/util-beans-objects-time.ads","old_contents":"-----------------------------------------------------------------------\n-- Util.Beans.Objects.Time -- Helper conversion for Ada Calendar Time\n-- Copyright (C) 2010 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Ada.Calendar;\npackage Util.Beans.Objects.Time is\n\n -- Create an object from the given value.\n function To_Object (Value : in Ada.Calendar.Time) return Object;\n\n -- Convert the object into a time.\n -- Raises Constraint_Error if the object cannot be converter to the target type.\n function To_Time (Value : in Object) return Ada.Calendar.Time;\n\n -- Force the object to be a time.\n function Cast_Time (Value : Object) return Object;\n\nend Util.Beans.Objects.Time;\n","new_contents":"-----------------------------------------------------------------------\n-- util-beans-objects-time -- Helper conversion for Ada Calendar Time\n-- Copyright (C) 2010, 2019 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Ada.Calendar;\nwith Util.Nullables;\npackage Util.Beans.Objects.Time is\n\n -- Create an object from the given value.\n function To_Object (Value : in Ada.Calendar.Time) return Object;\n\n function To_Object (Value : in Nullables.Nullable_Time) return Object;\n\n -- Convert the object into a time.\n -- Raises Constraint_Error if the object cannot be converter to the target type.\n function To_Time (Value : in Object) return Ada.Calendar.Time;\n\n function To_Time (Value : in Object) return Nullables.Nullable_Time;\n\n -- Force the object to be a time.\n function Cast_Time (Value : Object) return Object;\n\nend Util.Beans.Objects.Time;\n","subject":"Add To_Object and To_Time with a Nullable_Time type","message":"Add To_Object and To_Time with a Nullable_Time type\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"e4ea0b00f0f9deb3c8aca8acce9c64b3ed159280","old_file":"awa\/plugins\/awa-tags\/src\/awa-tags.ads","new_file":"awa\/plugins\/awa-tags\/src\/awa-tags.ads","old_contents":"-----------------------------------------------------------------------\n-- awa-tags -- Tags management\n-- Copyright (C) 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-- == Introduction ==\n-- The Tags<\/b> module allows to associate general purpose tags to any database entity.\n--\n-- == Model ==\n-- [http:\/\/ada-awa.googlecode.com\/svn\/wiki\/awa_tags_model.png]\n--\n-- @include awa-tags-modules.ads\npackage AWA.Tags is\n\n pragma Pure;\n\nend AWA.Tags;\n","new_contents":"-----------------------------------------------------------------------\n-- awa-tags -- Tags management\n-- Copyright (C) 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-- == Introduction ==\n-- The Tags<\/b> module allows to associate general purpose tags to any database entity.\n-- It provides a JSF component that allows to insert easily a list of tags in a page and\n-- in a form. An application can use the bean types defined in AWA.Tags.Beans<\/tt>\n-- to define the tags and it will use the awa:tagList<\/tt> component to display them.\n--\n-- == Model ==\n-- [http:\/\/ada-awa.googlecode.com\/svn\/wiki\/awa_tags_model.png]\n--\n-- @include awa-tags-modules.ads\n-- @include awa-tags-beans.ads\n-- @include awa-tags-components.ads\n--\npackage AWA.Tags is\n\n pragma Pure;\n\nend AWA.Tags;\n","subject":"Document the Tags plugin in AWA","message":"Document the Tags plugin in AWA\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa"} {"commit":"3d649c52302f22085d57e3422b43f295ed936779","old_file":"src\/gen-commands-database.ads","new_file":"src\/gen-commands-database.ads","old_contents":"-----------------------------------------------------------------------\n-- gen-commands-database -- Database creation from application model\n-- Copyright (C) 2011 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Database is\n\n -- ------------------------------\n -- Database Creation Command\n -- ------------------------------\n -- This command creates the database for the application.\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n procedure Execute (Cmd : in Command;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n procedure Help (Cmd : in Command;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Database;\n","new_contents":"-----------------------------------------------------------------------\n-- gen-commands-database -- Database creation from application model\n-- Copyright (C) 2011, 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Database is\n\n -- ------------------------------\n -- Database Creation Command\n -- ------------------------------\n -- This command creates the database for the application.\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n overriding\n procedure Execute (Cmd : in Command;\n Name : in String;\n Args : in Argument_List'Class;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Cmd : in Command;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Database;\n","subject":"Update to use the new command implementation","message":"Update to use the new command implementation\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/dynamo,stcarrez\/dynamo,stcarrez\/dynamo"} {"commit":"c44636eef7002c239dde452cab4d5ae3bfc2f16e","old_file":"src\/gen-commands-propset.ads","new_file":"src\/gen-commands-propset.ads","old_contents":"-----------------------------------------------------------------------\n-- gen-commands-propset -- Set a property on dynamo project\n-- Copyright (C) 2011 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Propset is\n\n -- ------------------------------\n -- Propset Command\n -- ------------------------------\n -- This command sets a property in the dynamo project configuration.\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n procedure Execute (Cmd : in Command;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n procedure Help (Cmd : in Command;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Propset;\n","new_contents":"-----------------------------------------------------------------------\n-- gen-commands-propset -- Set a property on dynamo project\n-- Copyright (C) 2011, 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Propset is\n\n -- ------------------------------\n -- Propset Command\n -- ------------------------------\n -- This command sets a property in the dynamo project configuration.\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n overriding\n procedure Execute (Cmd : in Command;\n Name : in String;\n Args : in Argument_List'Class;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Cmd : in Command;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Propset;\n","subject":"Update to use the new command implementation","message":"Update to use the new command implementation\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/dynamo,stcarrez\/dynamo,stcarrez\/dynamo"} {"commit":"31f10974b069933e9c0691f9e45d740bc6373484","old_file":"tools\/druss-commands-devices.ads","new_file":"tools\/druss-commands-devices.ads","old_contents":"-----------------------------------------------------------------------\n-- druss-commands-devices -- Print information about the devices\n-- Copyright (C) 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Druss.Commands.Devices is\n\n type Command_Type is new Druss.Commands.Drivers.Command_Type with null record;\n\n procedure Do_List (Command : in Command_Type;\n Args : in Argument_List'Class;\n Context : in out Context_Type);\n\n -- Execute a status command to report information about the Bbox.\n overriding\n procedure Execute (Command : in Command_Type;\n Name : in String;\n Args : in Argument_List'Class;\n Context : in out Context_Type);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Command : in Command_Type;\n Context : in out Context_Type);\n\nend Druss.Commands.Devices;\n","new_contents":"-----------------------------------------------------------------------\n-- druss-commands-devices -- Print information about the devices\n-- Copyright (C) 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Druss.Commands.Devices is\n\n type Command_Type is new Druss.Commands.Drivers.Command_Type with null record;\n\n procedure Do_List (Command : in Command_Type;\n Args : in Argument_List'Class;\n Selector : in Device_Selector_Type;\n Context : in out Context_Type);\n\n -- Execute a status command to report information about the Bbox.\n overriding\n procedure Execute (Command : in Command_Type;\n Name : in String;\n Args : in Argument_List'Class;\n Context : in out Context_Type);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Command : in Command_Type;\n Context : in out Context_Type);\n\nend Druss.Commands.Devices;\n","subject":"Add a device selector to the Do_List procedure","message":"Add a device selector to the Do_List procedure\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/bbox-ada-api"} {"commit":"233b030fe6c6e48276b77d6a35bf0f692b00f325","old_file":"src\/ado-schemas-databases.ads","new_file":"src\/ado-schemas-databases.ads","old_contents":"-----------------------------------------------------------------------\n-- ado-schemas-databases -- Database creation\n-- Copyright (C) 2018 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Strings.Vectors;\nwith ADO.Sessions;\nwith ADO.Configs;\npackage ADO.Schemas.Databases is\n\n -- Create the database and initialize it with the schema SQL file.\n procedure Create_Database (Session : in out Sessions.Master_Session;\n Config : in Configs.Configuration'Class;\n Schema_Path : in String;\n Messages : out Util.Strings.Vectors.Vector);\n\nend ADO.Schemas.Databases;\n","new_contents":"-----------------------------------------------------------------------\n-- ado-schemas-databases -- Database creation\n-- Copyright (C) 2018 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Strings.Vectors;\nwith ADO.Sessions.Sources;\npackage ADO.Schemas.Databases is\n\n -- Create the database and initialize it with the schema SQL file.\n -- The `Admin` parameter describes the database connection with administrator access.\n -- The `Config` parameter describes the target database connection: this is the\n -- database that must be created and configured. The `Schema_Path` is the path\n -- of the SQL file that can be used to populate the database with the schema.\n -- The `Messages` vector will contain the messages produced during the setup and\n -- configuration of the database.\n --\n -- For the `sqlite` driver, the `Admin` parameter is not used.\n procedure Create_Database (Admin : in ADO.Sessions.Sources.Data_Source'Class;\n Config : in ADO.Sessions.Sources.Data_Source'Class;\n Schema_Path : in String;\n Messages : out Util.Strings.Vectors.Vector);\n\nend ADO.Schemas.Databases;\n","subject":"Update the Create_Database to use a Data_Source as configuration parameters","message":"Update the Create_Database to use a Data_Source as configuration parameters\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-ado"} {"commit":"9496af418a57a78692fc1585c2cf4c2e2ca201a3","old_file":"resources\/scripts\/api\/gitlab.ads","new_file":"resources\/scripts\/api\/gitlab.ads","old_contents":"-- Copyright 2021 Jeff Foley. All rights reserved.\n-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.\n\nname = \"GitLab\"\ntype = \"api\"\n\nfunction start()\n set_rate_limit(1)\nend\n\nfunction check()\n local c\n local cfg = datasrc_config()\n if cfg ~= nil then\n c = cfg.credentials\n end\n\n if (c ~= nil and c.key ~= nil and c.key ~= \"\") then\n return true\n end\n return false\nend\n\nfunction vertical(ctx, domain)\n local c\n local cfg = datasrc_config()\n if cfg ~= nil then\n c = cfg.credentials\n end\n\n if (c == nil or c.key == nil or c.key == \"\") then\n return\n end\n\n local scopes = {\"issues\", \"blobs\", \"notes\"}\n for _, s in pairs(scopes) do\n scrape(ctx, {\n url=build_url(domain, s),\n headers={['PRIVATE-TOKEN']=c.key},\n })\n end\nend\n\nfunction build_url(domain, scope)\n return \"https:\/\/gitlab.com\/api\/v4\/search?scope=\" .. scope .. \"&search=\" .. domain\nend\n","new_contents":"-- Copyright 2021 Jeff Foley. All rights reserved.\n-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.\n\nname = \"GitLab\"\ntype = \"api\"\n\nfunction start()\n set_rate_limit(1)\nend\n\nfunction check()\n local c\n local cfg = datasrc_config()\n if cfg ~= nil then\n c = cfg.credentials\n end\n\n if (c ~= nil and c.key ~= nil and c.key ~= \"\") then\n return true\n end\n return false\nend\n\nfunction vertical(ctx, domain)\n local c\n local cfg = datasrc_config()\n if cfg ~= nil then\n c = cfg.credentials\n end\n\n if (c == nil or c.key == nil or c.key == \"\") then\n return\n end\n\n local scopes = {\"issues\", \"blobs\", \"notes\"}\n for _, s in pairs(scopes) do\n scrape(ctx, {\n url=build_url(domain, s),\n headers={['PRIVATE-TOKEN']=c.key},\n })\n end\nend\n\nfunction build_url(domain, scope)\n return \"https:\/\/gitlab.com\/api\/v4\/search?scope=\" .. scope .. \"&search=\" .. domain:gsub(\"%.\", \"[.]\")\nend\n","subject":"Fix Gitlab data source script","message":"Fix Gitlab data source script","lang":"Ada","license":"apache-2.0","repos":"caffix\/amass,caffix\/amass"} {"commit":"f8c0c5014e96fbeb001cb9d3e00e4f695ca9a456","old_file":"ibv_message_passing_ada_project\/source\/coverage_for_ada_task\/coverage_for_ada_task.adb","new_file":"ibv_message_passing_ada_project\/source\/coverage_for_ada_task\/coverage_for_ada_task.adb","old_contents":"-- @file coverage_for_ada_task.adb\n-- @date 28 May 2022\n-- @author Chester Gillon\n-- @brief Example program to test getting coverage for an Ada task\n\nwith Ada.Text_IO;\n\nprocedure Coverage_For_Ada_Task is\n task Print_Task is\n entry Print;\n end Print_Task;\n\n task body Print_Task is\n begin\n loop\n select\n accept Print do\n Ada.Text_IO.Put_Line (\"In task Print_Task\");\n end Print;\n or\n terminate;\n end select;\n end loop;\n end Print_Task;\nbegin\n for index in 1..3\n loop\n Print_Task.Print;\n end loop;\n Ada.Text_IO.Put_Line (\"In main\");\nend Coverage_For_Ada_Task;\n","new_contents":"-- @file coverage_for_ada_task.adb\n-- @date 28 May 2022\n-- @author Chester Gillon\n-- @brief Example program to test getting coverage for an Ada task\n\nwith Ada.Text_IO;\n\nprocedure Coverage_For_Ada_Task is\n generic\n Name : String;\n package Generic_Name is\n procedure Display_Name;\n end Generic_Name;\n\n package body Generic_Name is\n procedure Display_Name is\n begin\n Ada.Text_IO.Put_Line (\"My name is \" & Name);\n end Display_Name;\n end Generic_Name;\n\n task Print_Task is\n entry Print;\n end Print_Task;\n\n task body Print_Task is\n begin\n loop\n select\n accept Print do\n Ada.Text_IO.Put_Line (\"In task Print_Task\");\n end Print;\n or\n terminate;\n end select;\n end loop;\n end Print_Task;\n\n package Package_A is new Generic_Name (\"A\");\n package Package_B is new Generic_Name (\"B\");\nbegin\n Package_A.Display_Name;\n for index in 1..3\n loop\n Print_Task.Print;\n end loop;\n Package_B.Display_Name;\n Ada.Text_IO.Put_Line (\"In main\");\nend Coverage_For_Ada_Task;\n","subject":"Add coverage test for simple generic package","message":"Add coverage test for simple generic package\n","lang":"Ada","license":"mit","repos":"Chester-Gillon\/ibv_message_passing,Chester-Gillon\/ibv_message_passing,Chester-Gillon\/ibv_message_passing"} {"commit":"26441e9cc26bebfa7c85b0711f59facb415ba5fd","old_file":"t0032.adb","new_file":"t0032.adb","old_contents":"-- t0032.adb - Tue Jan 14 20:20:46 2014\n--\n-- (c) Warren W. Gay VE3WWG ve3wwg@gmail.com\n--\n-- Protected under the following license:\n-- GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999\n\nwith Ada.Text_IO;\n\nwith Posix;\nuse Posix;\n\nprocedure T0032 is\n use Ada.Text_IO; \n\n Res : s_rusage;\n Error : errno_t;\n pragma Volatile(Error);\nbegin\n\n Put_Line(\"Test 0032 - Getrlimit\/Setrlimit\");\n\n Error := 0;\n\n for X in 0..999999 loop\n if Error < 32000 then\n Error := Error + 1;\n else\n Error := 0;\n end if;\n end loop;\n\n Getrusage(RUSAGE_SELF,Res,Error);\n pragma Assert(Error = 0);\n pragma Assert(Res.ru_utime.tv_sec >= 0);\n pragma Assert(Res.ru_utime.tv_usec > 0 or else Res.ru_utime.tv_sec > 0);\n\n Put_Line(\"Test 0032 Passed.\");\n\nend T0032;\n","new_contents":"-- t0032.adb - Tue Jan 14 20:20:46 2014\n--\n-- (c) Warren W. Gay VE3WWG ve3wwg@gmail.com\n--\n-- Protected under the following license:\n-- GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999\n\nwith Ada.Text_IO;\n\nwith Posix;\nuse Posix;\n\nprocedure T0032 is\n use Ada.Text_IO; \n\n Res : s_rusage;\n Error : errno_t;\n pragma Volatile(Error);\nbegin\n\n Put_Line(\"Test 0032 - Getrlimit\/Setrlimit\");\n\n Error := 0;\n\n for X in 0..9999999 loop\n if Error < 32000 then\n Error := Error + 1;\n else\n Error := 0;\n end if;\n end loop;\n\n Getrusage(RUSAGE_SELF,Res,Error);\n pragma Assert(Error = 0);\n pragma Assert(Res.ru_utime.tv_sec >= 0);\n pragma Assert(Res.ru_utime.tv_usec > 0 or else Res.ru_utime.tv_sec > 0);\n\n Put_Line(\"Test 0032 Passed.\");\n\nend T0032;\n","subject":"Increase loop for FreeBSD test","message":"Increase loop for FreeBSD test\n","lang":"Ada","license":"lgpl-2.1","repos":"ve3wwg\/adafpx,ve3wwg\/adafpx"} {"commit":"8548eca4d803a079f89ee0a0249108b48f800e74","old_file":"src\/asf-security.ads","new_file":"src\/asf-security.ads","old_contents":"-----------------------------------------------------------------------\n-- asf-security -- ASF Security\n-- Copyright (C) 2012 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith EL.Functions;\npackage ASF.Security is\n\n -- EL function name exposed by Set_Functions.\n HAS_PERMISSION_FN : constant String := \"hasPermission\";\n\n -- URI for the EL functions exposed by the security package (See Set_Functions).\n AUTH_NAMESPACE_URI : constant String := \"http:\/\/code.google.com\/p\/ada-asf\/auth\";\n\n -- Register a set of functions in the namespace\n -- xmlns:fn=\"http:\/\/code.google.com\/p\/ada-asf\/auth\"\n -- Functions:\n -- hasPermission(NAME) -- Returns True if the permission NAME is granted\n procedure Set_Functions (Mapper : in out EL.Functions.Function_Mapper'Class);\n\nend ASF.Security;\n","new_contents":"-----------------------------------------------------------------------\n-- asf-security -- ASF Security\n-- Copyright (C) 2012 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith EL.Functions;\npackage ASF.Security is\n\n -- EL function name exposed by Set_Functions.\n HAS_PERMISSION_FN : constant String := \"hasPermission\";\n\n -- URI for the EL functions exposed by the security package (See Set_Functions).\n AUTH_NAMESPACE_URI : constant String := \"http:\/\/code.google.com\/p\/ada-asf\/auth\";\n\n -- Register a set of functions in the namespace\n -- xmlns:fn=\"http:\/\/code.google.com\/p\/ada-asf\/auth\"\n -- Functions:\n -- hasPermission(NAME) -- Returns True if the permission NAME is granted\n procedure Set_Functions (Mapper : in out EL.Functions.Function_Mapper'Class);\n\nend ASF.Security;\n","subject":"Package ASF.Security moved to Servlet.Security","message":"Package ASF.Security moved to Servlet.Security\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-asf,stcarrez\/ada-asf,stcarrez\/ada-asf"} {"commit":"6f371af13a8ba870eee9b1ad5c3b256adc39e763","old_file":"awa\/plugins\/awa-blogs\/src\/awa-blogs.ads","new_file":"awa\/plugins\/awa-blogs\/src\/awa-blogs.ads","old_contents":"-----------------------------------------------------------------------\r\n-- awa-blogs -- Blogs module\r\n-- Copyright (C) 2011 Stephane Carrez\r\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\r\n--\r\n-- Licensed under the Apache License, Version 2.0 (the \"License\");\r\n-- you may not use this file except in compliance with the License.\r\n-- You may obtain a copy of the License at\r\n--\r\n-- http:\/\/www.apache.org\/licenses\/LICENSE-2.0\r\n--\r\n-- Unless required by applicable law or agreed to in writing, software\r\n-- distributed under the License is distributed on an \"AS IS\" BASIS,\r\n-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n-- See the License for the specific language governing permissions and\r\n-- limitations under the License.\r\n-----------------------------------------------------------------------\r\n\r\n-- == Introduction ==\r\n-- The *blogs* plugin is a small blog application which allows users to publish articles.\r\n--\r\n-- @include blogs.xml\r\n--\r\n-- == Model ==\r\n-- [http:\/\/ada-awa.googlecode.com\/svn\/wiki\/awa_blogs_model.png]\r\n--\r\n-- @include Blog.hbm.xml\r\n--\r\npackage AWA.Blogs is\r\n\r\nend AWA.Blogs;\r\n","new_contents":"-----------------------------------------------------------------------\r\n-- awa-blogs -- Blogs module\r\n-- Copyright (C) 2011 Stephane Carrez\r\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\r\n--\r\n-- Licensed under the Apache License, Version 2.0 (the \"License\");\r\n-- you may not use this file except in compliance with the License.\r\n-- You may obtain a copy of the License at\r\n--\r\n-- http:\/\/www.apache.org\/licenses\/LICENSE-2.0\r\n--\r\n-- Unless required by applicable law or agreed to in writing, software\r\n-- distributed under the License is distributed on an \"AS IS\" BASIS,\r\n-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n-- See the License for the specific language governing permissions and\r\n-- limitations under the License.\r\n-----------------------------------------------------------------------\r\n\r\n-- == Introduction ==\r\n-- The *blogs* plugin is a small blog application which allows users to publish articles.\r\n--\r\n-- == Ada Beans ==\r\n-- @include blogs.xml\r\n--\r\n-- == Queries ==\r\n-- @include blog-admin-post-list.xml\r\n-- @include blog-post-list.xml\r\n-- @include blog-list.xml\r\n--\r\n-- == Model ==\r\n-- [http:\/\/ada-awa.googlecode.com\/svn\/wiki\/awa_blogs_model.png]\r\n--\r\n-- @include Blog.hbm.xml\r\n--\r\npackage AWA.Blogs is\r\n\r\nend AWA.Blogs;\r\n","subject":"Add the specific queries and Ada beans in the documentation","message":"Add the specific queries and Ada beans in the documentation\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa"} {"commit":"e9f4160d35e7a5cc739ee49b7040ae1091f9d007","old_file":"awa\/plugins\/awa-blogs\/src\/awa-blogs.ads","new_file":"awa\/plugins\/awa-blogs\/src\/awa-blogs.ads","old_contents":"-----------------------------------------------------------------------\r\n-- awa-blogs -- Blogs module\r\n-- Copyright (C) 2011 Stephane Carrez\r\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\r\n--\r\n-- Licensed under the Apache License, Version 2.0 (the \"License\");\r\n-- you may not use this file except in compliance with the License.\r\n-- You may obtain a copy of the License at\r\n--\r\n-- http:\/\/www.apache.org\/licenses\/LICENSE-2.0\r\n--\r\n-- Unless required by applicable law or agreed to in writing, software\r\n-- distributed under the License is distributed on an \"AS IS\" BASIS,\r\n-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n-- See the License for the specific language governing permissions and\r\n-- limitations under the License.\r\n-----------------------------------------------------------------------\r\n\r\n-- == Introduction ==\r\n-- The *blogs* plugin is a small blog application which allows users to publish articles.\r\n--\r\n-- @include blogs.xml\r\n--\r\n-- == Model ==\r\n-- [http:\/\/ada-awa.googlecode.com\/svn\/wiki\/awa_blogs_model.png]\r\n--\r\n-- @include Blog.hbm.xml\r\n--\r\npackage AWA.Blogs is\r\n\r\nend AWA.Blogs;\r\n","new_contents":"-----------------------------------------------------------------------\r\n-- awa-blogs -- Blogs module\r\n-- Copyright (C) 2011 Stephane Carrez\r\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\r\n--\r\n-- Licensed under the Apache License, Version 2.0 (the \"License\");\r\n-- you may not use this file except in compliance with the License.\r\n-- You may obtain a copy of the License at\r\n--\r\n-- http:\/\/www.apache.org\/licenses\/LICENSE-2.0\r\n--\r\n-- Unless required by applicable law or agreed to in writing, software\r\n-- distributed under the License is distributed on an \"AS IS\" BASIS,\r\n-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n-- See the License for the specific language governing permissions and\r\n-- limitations under the License.\r\n-----------------------------------------------------------------------\r\n\r\n-- == Introduction ==\r\n-- The *blogs* plugin is a small blog application which allows users to publish articles.\r\n--\r\n-- == Ada Beans ==\r\n-- @include blogs.xml\r\n--\r\n-- == Queries ==\r\n-- @include blog-admin-post-list.xml\r\n-- @include blog-post-list.xml\r\n-- @include blog-list.xml\r\n--\r\n-- == Model ==\r\n-- [http:\/\/ada-awa.googlecode.com\/svn\/wiki\/awa_blogs_model.png]\r\n--\r\n-- @include Blog.hbm.xml\r\n--\r\npackage AWA.Blogs is\r\n\r\nend AWA.Blogs;\r\n","subject":"Add the specific queries and Ada beans in the documentation","message":"Add the specific queries and Ada beans in the documentation\n","lang":"Ada","license":"apache-2.0","repos":"tectronics\/ada-awa,Letractively\/ada-awa,Letractively\/ada-awa,tectronics\/ada-awa,tectronics\/ada-awa,Letractively\/ada-awa"} {"commit":"2833042551b4031f930f280c89dbaf1695ec0359","old_file":"awa\/plugins\/awa-storages\/src\/awa-storages.ads","new_file":"awa\/plugins\/awa-storages\/src\/awa-storages.ads","old_contents":"-----------------------------------------------------------------------\n-- awa-storages -- Storage module\n-- Copyright (C) 2012 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-- == Introduction ==\n-- The Storages<\/b> module provides a set of storage services allowing an application\n-- to store data files, documents, images in a persistent area.\n--\n-- == Data Model ==\n-- @include Storages.hbm.xml\npackage AWA.Storages is\n\nend AWA.Storages;\n","new_contents":"-----------------------------------------------------------------------\n-- awa-storages -- Storage module\n-- Copyright (C) 2012 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-- == Introduction ==\n-- The Storages<\/b> module provides a set of storage services allowing an application\n-- to store data files, documents, images in a persistent area.\n--\n-- == Ada Beans ==\n-- @include storages.xml\n--\n-- == Data Model ==\n-- @include Storages.hbm.xml\npackage AWA.Storages is\n\nend AWA.Storages;\n","subject":"Add the Ada beans in the Storages plugin documentation","message":"Add the Ada beans in the Storages plugin documentation\n","lang":"Ada","license":"apache-2.0","repos":"Letractively\/ada-awa,Letractively\/ada-awa,tectronics\/ada-awa,tectronics\/ada-awa,Letractively\/ada-awa,tectronics\/ada-awa"} {"commit":"2efb5be733d8c5694781fd4c0e47520d141a1f41","old_file":"tools\/druss-commands-wifi.ads","new_file":"tools\/druss-commands-wifi.ads","old_contents":"-----------------------------------------------------------------------\n-- druss-commands-wifi -- Wifi related commands\n-- Copyright (C) 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Druss.Commands.Wifi is\n\n type Command_Type is new Druss.Commands.Drivers.Command_Type with null record;\n\n -- Execute a command to control or get status about the Wifi.\n overriding\n procedure Execute (Command : in Command_Type;\n Name : in String;\n Args : in Argument_List'Class;\n Context : in out Context_Type);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Command : in Command_Type;\n Context : in out Context_Type);\n\nend Druss.Commands.Wifi;\n","new_contents":"-----------------------------------------------------------------------\n-- druss-commands-wifi -- Wifi related commands\n-- Copyright (C) 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Druss.Commands.Wifi is\n\n type Command_Type is new Druss.Commands.Drivers.Command_Type with null record;\n\n -- Enable or disable with wifi radio.\n procedure Set_Enable (Command : in Command_Type;\n Args : in Argument_List'Class;\n Value : in String;\n Context : in out Context_Type);\n\n -- Execute the wifi 'status' command to print the Wifi current status.\n procedure Do_Status (Command : in Command_Type;\n Args : in Argument_List'Class;\n Context : in out Context_Type);\n\n -- Execute a command to control or get status about the Wifi.\n overriding\n procedure Execute (Command : in Command_Type;\n Name : in String;\n Args : in Argument_List'Class;\n Context : in out Context_Type);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Command : in Command_Type;\n Context : in out Context_Type);\n\nend Druss.Commands.Wifi;\n","subject":"Declare the Set_Enable and Do_Status operations","message":"Declare the Set_Enable and Do_Status operations\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/bbox-ada-api"} {"commit":"9772acdb4718191e696148306a9a5e4b81382403","old_file":"test\/FrontendAda\/negative_field_offset.adb","new_file":"test\/FrontendAda\/negative_field_offset.adb","old_contents":"-- RUN: %llvmgcc -c %s\nwith System;\nprocedure Negative_Field_Offset (N : Integer) is\n type String_Pointer is access String;\n -- Force use of a thin pointer.\n for String_Pointer'Size use System.Word_Size;\n P : String_Pointer;\nbegin\n P := new String (1 .. N);\nend;\n","new_contents":"-- RUN: %llvmgcc -c %s\nwith System;\nprocedure Negative_Field_Offset (N : Integer) is\n type String_Pointer is access String;\n -- Force use of a thin pointer.\n for String_Pointer'Size use System.Word_Size;\n P : String_Pointer;\n\n procedure Q (P : String_Pointer) is\n begin\n P (1) := 'Z';\n end;\nbegin\n P := new String (1 .. N);\n Q (P);\nend;\n","subject":"Check that accessing a struct field that occurs before the start of the struct (!) works correctly.","message":"Check that accessing a struct field that occurs before the start\nof the struct (!) works correctly.\n\n\ngit-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@84853 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"Ada","license":"bsd-2-clause","repos":"dslab-epfl\/asap,dslab-epfl\/asap,dslab-epfl\/asap,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,apple\/swift-llvm,chubbymaggie\/asap,apple\/swift-llvm,apple\/swift-llvm,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,GPUOpen-Drivers\/llvm,apple\/swift-llvm,dslab-epfl\/asap,apple\/swift-llvm,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,chubbymaggie\/asap,chubbymaggie\/asap,llvm-mirror\/llvm,dslab-epfl\/asap,GPUOpen-Drivers\/llvm,chubbymaggie\/asap,llvm-mirror\/llvm,apple\/swift-llvm,apple\/swift-llvm,llvm-mirror\/llvm,chubbymaggie\/asap,chubbymaggie\/asap,apple\/swift-llvm,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,dslab-epfl\/asap,llvm-mirror\/llvm"} {"commit":"8418a148e1b87f0a87e6771384069b20b3ad4866","old_file":"src\/security.ads","new_file":"src\/security.ads","old_contents":"-----------------------------------------------------------------------\n-- security -- Security\n-- Copyright (C) 2010, 2011, 2012 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-- == Introduction ==\n--\n--\n-- @include security-contexts.ads\n-- @include security-controllers.ads\npackage Security is\n\nend Security;\n","new_contents":"-----------------------------------------------------------------------\n-- security -- Security\n-- Copyright (C) 2010, 2011, 2012 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-- == Introduction ==\n-- The Security<\/tt> package provides security frameworks that allows\n-- an application to use OpenID or OAuth security frameworks. This security\n-- framework was first developed within the Ada Server Faces project.\n--\n-- @include security-permissions.ads\n-- @include security-openid.ads\n-- @include security-oauth.ads\n-- @include security-contexts.ads\n-- @include security-controllers.ads\npackage Security is\n\nend Security;\n","subject":"Add the permission in the documentation","message":"Add the permission in the documentation\n","lang":"Ada","license":"apache-2.0","repos":"Letractively\/ada-security"} {"commit":"0323d352d90970d5a86901fd42cf1cf0010eb12c","old_file":"examples\/usart_interruptive_echo\/src\/main.adb","new_file":"examples\/usart_interruptive_echo\/src\/main.adb","old_contents":"#if MCU=\"ATMEGA2560\" then\nwith AVR.USART;\nwith AVR.INTERRUPTS;\n#end if;\n\nprocedure Main is\n -- Out_Flag_Char : Character;\n\nbegin\n#if MCU=\"ATMEGA2560\" then\n\n AVR.INTERRUPTS.Disable;\n\n AVR.USART.Initialize\n (In_Port => AVR.USART.USART1,\n In_Setup =>\n (Sync_Mode => AVR.USART.ASYNCHRONOUS,\n Double_Speed => True,\n Baud_Rate => 9600,\n Data_Bits => AVR.USART.BITS_8,\n Parity => AVR.USART.NONE,\n Stop_Bits => 1,\n Model => AVR.USART.INTERRUPTIVE));\n\n AVR.USART.Put_Line\n (Port => AVR.USART.USART1,\n Data => \"#### Initialization ok. ####\");\n\n AVR.INTERRUPTS.Enable;\n\n loop\n -- Out_Flag_Char := AVR.USART.Get;\n -- AVR.USART.Put\n -- (Port => AVR.USART.USART1,\n -- Data => Out_Flag_Char);\n null;\n end loop;\n\n#else\n null;\n#end if;\nend Main;\n","new_contents":"#if MCU=\"ATMEGA2560\" then\nwith AVR.USART;\nwith AVR.INTERRUPTS;\n#end if;\n\nprocedure Main is\n Counter : Long_Integer := 0;\n Out_Buffer : AVR.USART.Buffer_64_Type;\n\nbegin\n#if MCU=\"ATMEGA2560\" then\n\n AVR.INTERRUPTS.Disable;\n\n AVR.USART.Initialize\n (In_Port => AVR.USART.USART1,\n In_Setup =>\n (Sync_Mode => AVR.USART.ASYNCHRONOUS,\n Double_Speed => True,\n Baud_Rate => 9600,\n Data_Bits => AVR.USART.BITS_8,\n Parity => AVR.USART.NONE,\n Stop_Bits => 1,\n Model => AVR.USART.INTERRUPTIVE));\n\n AVR.USART.Put_Line\n (Port => AVR.USART.USART1,\n Data => \"#### Initialization ok. ####\");\n\n AVR.INTERRUPTS.Enable;\n\n loop\n Counter := Counter + 1;\n\n if AVR.USART.Get_Raw_Buffer\n (In_Port => AVR.USART.USART1,\n Out_Data => Out_Buffer)\n then\n AVR.USART.Put_Buffer (In_Port => AVR.USART.USART1);\n end if;\n\n end loop;\n\n#else\n null;\n#end if;\nend Main;\n","subject":"Read from usart1 in interruptive mode.","message":"Read from usart1 in interruptive mode.\n","lang":"Ada","license":"mit","repos":"pvrego\/adaino,pvrego\/adaino"} {"commit":"9c2ffadf3fb29c01739edc1509e3cb45a0dedd73","old_file":"src\/babel-base.ads","new_file":"src\/babel-base.ads","old_contents":"-----------------------------------------------------------------------\r\n-- babel-base -- File filters\r\n-- Copyright (C) 2014 Stephane.Carrez\r\n-- Written by Stephane.Carrez (Stephane.Carrez@gmail.com)\r\n--\r\n-- Licensed under the Apache License, Version 2.0 (the \"License\");\r\n-- you may not use this file except in compliance with the License.\r\n-- You may obtain a copy of the License at\r\n--\r\n-- http:\/\/www.apache.org\/licenses\/LICENSE-2.0\r\n--\r\n-- Unless required by applicable law or agreed to in writing, software\r\n-- distributed under the License is distributed on an \"AS IS\" BASIS,\r\n-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n-- See the License for the specific language governing permissions and\r\n-- limitations under the License.\r\n-----------------------------------------------------------------------\r\n\r\npackage Babel.Base is\r\n\r\nend Babel.Base;\r\n","new_contents":"-----------------------------------------------------------------------\r\n-- babel-base -- Database for files\r\n-- Copyright (C) 2014 Stephane.Carrez\r\n-- Written by Stephane.Carrez (Stephane.Carrez@gmail.com)\r\n--\r\n-- Licensed under the Apache License, Version 2.0 (the \"License\");\r\n-- you may not use this file except in compliance with the License.\r\n-- You may obtain a copy of the License at\r\n--\r\n-- http:\/\/www.apache.org\/licenses\/LICENSE-2.0\r\n--\r\n-- Unless required by applicable law or agreed to in writing, software\r\n-- distributed under the License is distributed on an \"AS IS\" BASIS,\r\n-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n-- See the License for the specific language governing permissions and\r\n-- limitations under the License.\r\n-----------------------------------------------------------------------\r\nwith Ada.Finalization;\r\nwith ADO;\r\n\r\npackage Babel.Base is\r\n\r\n type Database is abstract new Ada.Finalization.Limited_Controlled with private;\r\n\r\nprivate\r\n\r\n type Database is abstract new Ada.Finalization.Limited_Controlled with record\r\n Name : Integer;\r\n end record;\r\n\r\nend Babel.Base;\r\n","subject":"Define the abstract Database type to represent the database of backup files","message":"Define the abstract Database type to represent the database of backup files\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/babel"} {"commit":"b8d99d444be9277ac70b052bc3f94fc20e4bcfe5","old_file":"awa\/awaunit\/awa-tests-helpers.ads","new_file":"awa\/awaunit\/awa-tests-helpers.ads","old_contents":"-----------------------------------------------------------------------\n-- awa-tests-helpers - Helpers for AWA unit tests\n-- Copyright (C) 2011, 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith ASF.Responses.Mockup;\nwith Ada.Strings.Unbounded;\npackage AWA.Tests.Helpers is\n\n -- Extract from the Location header the part that is after the given base string.\n -- If the Location header does not start with the base string, returns the empty\n -- string.\n function Extract_Redirect (Reply : in ASF.Responses.Mockup.Response'Class;\n Base : in String) return String;\n\n function Extract_Redirect (Reply : in ASF.Responses.Mockup.Response'Class;\n Base : in String) return Ada.Strings.Unbounded.Unbounded_String;\n\nend AWA.Tests.Helpers;\n","new_contents":"-----------------------------------------------------------------------\n-- awa-tests-helpers - Helpers for AWA unit tests\n-- Copyright (C) 2011, 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith ASF.Responses.Mockup;\nwith Ada.Strings.Unbounded;\npackage AWA.Tests.Helpers is\n\n -- Extract from the Location header the part that is after the given base string.\n -- If the Location header does not start with the base string, returns the empty\n -- string.\n function Extract_Redirect (Reply : in ASF.Responses.Mockup.Response'Class;\n Base : in String) return String;\n\n function Extract_Redirect (Reply : in ASF.Responses.Mockup.Response'Class;\n Base : in String) return Ada.Strings.Unbounded.Unbounded_String;\n\n -- Extract from the response content a link with a given title.\n function Extract_Link (Content : in String;\n Title : in String) return String;\n\nend AWA.Tests.Helpers;\n","subject":"Declare the Extract_Link function to extract a href from a HTML response","message":"Declare the Extract_Link function to extract a href from a HTML response\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa"} {"commit":"74f4071f8cacf6671e0387d5beaa133e5b7a2927","old_file":"src\/asf-components-ajax-factory.ads","new_file":"src\/asf-components-ajax-factory.ads","old_contents":"-----------------------------------------------------------------------\n-- components-ajax-factory -- Factory for AJAX Components\n-- Copyright (C) 2011 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith ASF.Factory;\npackage ASF.Components.Ajax.Factory is\n\n use ASF;\n\n -- Get the Ajax component factory.\n function Definition return ASF.Factory.Factory_Bindings_Access;\n\nend ASF.Components.Ajax.Factory;\n","new_contents":"-----------------------------------------------------------------------\n-- components-ajax-factory -- Factory for AJAX Components\n-- Copyright (C) 2011, 2018 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith ASF.Factory;\npackage ASF.Components.Ajax.Factory is\n\n -- Register the Ajax component factory.\n procedure Register (Factory : in out ASF.Factory.Component_Factory);\n\nend ASF.Components.Ajax.Factory;\n","subject":"Change the Definition function into a Register procedure","message":"Change the Definition function into a Register procedure\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-asf,stcarrez\/ada-asf,stcarrez\/ada-asf"} {"commit":"a54ef28f1ba98cadc3572310adf2884a2aeb59c1","old_file":"awa\/plugins\/awa-votes\/regtests\/awa-votes-modules-tests.ads","new_file":"awa\/plugins\/awa-votes\/regtests\/awa-votes-modules-tests.ads","old_contents":"-----------------------------------------------------------------------\n-- awa-votes-modules-tests -- Unit tests for vote service\n-- Copyright (C) 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\nwith AWA.Tests;\n\npackage AWA.Votes.Modules.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new AWA.Tests.Test with record\n Manager : AWA.Votes.Modules.Vote_Module_Access;\n end record;\n\n -- Test vote.\n procedure Test_Vote_Up (T : in out Test);\n\nend AWA.Votes.Modules.Tests;\n","new_contents":"-----------------------------------------------------------------------\n-- awa-votes-modules-tests -- Unit tests for vote service\n-- Copyright (C) 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\nwith AWA.Tests;\n\npackage AWA.Votes.Modules.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new AWA.Tests.Test with record\n Manager : AWA.Votes.Modules.Vote_Module_Access;\n end record;\n\n -- Test vote.\n procedure Test_Vote_Up (T : in out Test);\n\n -- Test vote.\n procedure Test_Vote_Undo (T : in out Test);\n\nend AWA.Votes.Modules.Tests;\n","subject":"Add unit test for undo vote","message":"Add unit test for undo vote\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa"} {"commit":"1a999614af4680bd7f6db1b7b5ba4bc669740872","old_file":"mat\/src\/mat-targets.ads","new_file":"mat\/src\/mat-targets.ads","old_contents":"-----------------------------------------------------------------------\n-- Targets - Representation of target information\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith MAT.Types;\nwith Ada.Strings.Unbounded;\nwith MAT.Memory.Targets;\nwith MAT.Readers;\npackage MAT.Targets is\n\n type Target_Type is tagged limited private;\n type Target_Type_Access is access all Target_Type'Class;\n\n -- Initialize the target object to manage the memory slots, the stack frames\n -- and setup the reader to analyze the memory and other events.\n procedure Initialize (Target : in out Target_Type;\n Reader : in out MAT.Readers.Manager_Base'Class);\n\nprivate\n\n type Target_Type is tagged limited record\n Memory : MAT.Memory.Targets.Target_Memory;\n end record;\n\nend MAT.Targets;\n","new_contents":"-----------------------------------------------------------------------\n-- Targets - Representation of target information\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith MAT.Types;\nwith Ada.Strings.Unbounded;\nwith MAT.Memory.Targets;\nwith MAT.Symbols.Targets;\nwith MAT.Readers;\npackage MAT.Targets is\n\n-- type Target_Type is tagged limited private;\n\n type Target_Type is tagged limited record\n Memory : MAT.Memory.Targets.Target_Memory;\n Symbols : MAT.Symbols.Targets.Target_Symbols;\n end record;\n\n type Target_Type_Access is access all Target_Type'Class;\n\n -- Initialize the target object to manage the memory slots, the stack frames\n -- and setup the reader to analyze the memory and other events.\n procedure Initialize (Target : in out Target_Type;\n Reader : in out MAT.Readers.Manager_Base'Class);\n--\n-- private\n--\n-- type Target_Type is tagged limited record\n-- Memory : MAT.Memory.Targets.Target_Memory;\n-- end record;\n\nend MAT.Targets;\n","subject":"Add the symbols in the target object","message":"Add the symbols in the target object\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/mat,stcarrez\/mat,stcarrez\/mat"} {"commit":"955ee4407f9d071729cf67278695300e06262722","old_file":"regtests\/util-streams-tests.ads","new_file":"regtests\/util-streams-tests.ads","old_contents":"-----------------------------------------------------------------------\n-- util-streams-tests -- Unit tests for encoding buffered streams\n-- Copyright (C) 2017, 2019 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\nwith Util.Encoders.AES;\n\npackage Util.Streams.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n procedure Test_AES (T : in out Test;\n Item : in String;\n Count : in Positive;\n Mode : in Util.Encoders.AES.AES_Mode;\n Label : in String);\n\n procedure Test_Base64_Stream (T : in out Test);\n\nend Util.Streams.Tests;\n","new_contents":"-----------------------------------------------------------------------\n-- util-streams-tests -- Unit tests for encoding buffered streams\n-- Copyright (C) 2017, 2019, 2021 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\nwith Util.Encoders.AES;\n\npackage Util.Streams.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n procedure Test_AES (T : in out Test;\n Item : in String;\n Count : in Positive;\n Mode : in Util.Encoders.AES.AES_Mode;\n Label : in String);\n\n procedure Test_Base64_Stream (T : in out Test);\n\n procedure Test_Copy_Stream (T : in out Test);\n\nend Util.Streams.Tests;\n","subject":"Declare the Test_Copy_Stream procedure to test the Util.Streams.Copy procedures","message":"Declare the Test_Copy_Stream procedure to test the Util.Streams.Copy procedures\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"d603fd0bb2519543a4f128dde437863325ef1c66","old_file":"awa\/plugins\/awa-counters\/src\/awa-counters-definition.ads","new_file":"awa\/plugins\/awa-counters\/src\/awa-counters-definition.ads","old_contents":"-----------------------------------------------------------------------\n-- awa-counters-definition -- Counter definition\n-- Copyright (C) 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-- The AWA.Counters.Definition<\/tt> package is instantiated for each counter definition.\ngeneric\n Table : ADO.Schemas.Class_Mapping_Access;\n Field : String;\npackage AWA.Counters.Definition is\n\n Def_Name : aliased constant String := Field;\n\n package Def is new Counter_Arrays.Definition (Counter_Def '(Table, Def_Name'Access));\n\n -- Get the counter definition index.\n function Index return Counter_Index_Type renames Def.Kind;\n\nend AWA.Counters.Definition;\n","new_contents":"-----------------------------------------------------------------------\n-- awa-counters-definition -- Counter definition\n-- Copyright (C) 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-- The AWA.Counters.Definition<\/tt> package is instantiated for each counter definition.\ngeneric\n Table : ADO.Schemas.Class_Mapping_Access;\n Field : String;\npackage AWA.Counters.Definition is\n\n Def_Name : aliased constant String := Field;\n\n -- Get the counter definition index.\n function Index return Counter_Index_Type;\n\nprivate\n\n package Def is new Counter_Arrays.Definition (Counter_Def '(Table, Def_Name'Access));\n\n -- Get the counter definition index.\n function Index return Counter_Index_Type renames Def.Kind;\n\nend AWA.Counters.Definition;\n","subject":"Move the Counter_Arrays.Definition package instantiation in the private part","message":"Move the Counter_Arrays.Definition package instantiation in the private part\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa"} {"commit":"44c319c4ab59e5dabc029a4f187256e6484f58d9","old_file":"src\/sqlite\/ado-sqlite.adb","new_file":"src\/sqlite\/ado-sqlite.adb","old_contents":"-----------------------------------------------------------------------\n-- ado-sqlite -- SQLite Database Drivers\n-- Copyright (C) 2019 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith ADO.Configs;\nwith ADO.Connections.Sqlite;\n\npackage body ADO.Sqlite is\n\n -- ------------------------------\n -- Initialize the drivers and the library by reading the property file\n -- and configure the runtime with it.\n -- ------------------------------\n procedure Initialize (Config : in String) is\n begin\n ADO.Configs.Initialize (Config);\n ADO.Connections.Sqlite.Initialize;\n end Initialize;\n\n -- ------------------------------\n -- Initialize the drivers and the library and configure the runtime with the given properties.\n -- ------------------------------\n procedure Initialize (Config : in Util.Properties.Manager'Class) is\n begin\n ADO.Configs.Initialize (Config);\n ADO.Connections.Sqlite.Initialize;\n end Initialize;\n\nend ADO.Sqlite;\n","new_contents":"-----------------------------------------------------------------------\n-- ado-sqlite -- SQLite Database Drivers\n-- Copyright (C) 2019 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith ADO.Configs;\nwith ADO.Connections.Sqlite;\n\npackage body ADO.Sqlite is\n\n -- ------------------------------\n -- Initialize the SQLite driver.\n -- ------------------------------\n procedure Initialize is\n begin\n ADO.Connections.Sqlite.Initialize;\n end Initialize;\n\n -- ------------------------------\n -- Initialize the drivers and the library by reading the property file\n -- and configure the runtime with it.\n -- ------------------------------\n procedure Initialize (Config : in String) is\n begin\n ADO.Configs.Initialize (Config);\n Initialize;\n end Initialize;\n\n -- ------------------------------\n -- Initialize the drivers and the library and configure the runtime with the given properties.\n -- ------------------------------\n procedure Initialize (Config : in Util.Properties.Manager'Class) is\n begin\n ADO.Configs.Initialize (Config);\n Initialize;\n end Initialize;\n\nend ADO.Sqlite;\n","subject":"Implement the Initialize procedure and use it","message":"Implement the Initialize procedure and use it\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-ado"} {"commit":"8c5858c3859a982abaed7ea3b2aebe1e92667ad1","old_file":"src\/babel-base.ads","new_file":"src\/babel-base.ads","old_contents":"-----------------------------------------------------------------------\r\n-- babel-base -- Database for files\r\n-- Copyright (C) 2014 Stephane.Carrez\r\n-- Written by Stephane.Carrez (Stephane.Carrez@gmail.com)\r\n--\r\n-- Licensed under the Apache License, Version 2.0 (the \"License\");\r\n-- you may not use this file except in compliance with the License.\r\n-- You may obtain a copy of the License at\r\n--\r\n-- http:\/\/www.apache.org\/licenses\/LICENSE-2.0\r\n--\r\n-- Unless required by applicable law or agreed to in writing, software\r\n-- distributed under the License is distributed on an \"AS IS\" BASIS,\r\n-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n-- See the License for the specific language governing permissions and\r\n-- limitations under the License.\r\n-----------------------------------------------------------------------\r\nwith Ada.Finalization;\r\nwith ADO;\r\n\r\nwith Babel.Files;\r\npackage Babel.Base is\r\n\r\n type Database is abstract new Ada.Finalization.Limited_Controlled with private;\r\n type Database_Access is access all Database'Class;\r\n\r\n -- Insert the file in the database.\r\n procedure Insert (Into : in out Database;\r\n File : in Babel.Files.File_Type) is abstract;\r\n\r\nprivate\r\n\r\n type Database is abstract new Ada.Finalization.Limited_Controlled with record\r\n Name : Integer;\r\n end record;\r\n\r\nend Babel.Base;\r\n","new_contents":"-----------------------------------------------------------------------\n-- babel-base -- Database for files\n-- Copyright (C) 2014 Stephane.Carrez\n-- Written by Stephane.Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Ada.Finalization;\nwith ADO;\n\nwith Babel.Files;\npackage Babel.Base is\n\n type Database is abstract new Ada.Finalization.Limited_Controlled with private;\n type Database_Access is access all Database'Class;\n\n -- Insert the file in the database.\n procedure Insert (Into : in out Database;\n File : in Babel.Files.File_Type) is abstract;\n\n procedure Iterate (From : in Database;\n Process : not null access\n procedure (File : in Babel.Files.File_Type)) is abstract;\n\n procedure Copy (Into : in out Database'Class;\n From : in Database'Class);\n\nprivate\n\n type Database is abstract new Ada.Finalization.Limited_Controlled with record\n Name : Integer;\n end record;\n\nend Babel.Base;\n","subject":"Declare the Iterate and Copy procedures","message":"Declare the Iterate and Copy procedures\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/babel"} {"commit":"ec9594bdf26c1d6a71b30dd376f746f0d3999a6f","old_file":"src\/gen-commands-model.ads","new_file":"src\/gen-commands-model.ads","old_contents":"-----------------------------------------------------------------------\n-- gen-commands-model -- Model creation command for dynamo\n-- Copyright (C) 2011 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Model is\n\n -- ------------------------------\n -- Model Creation Command\n -- ------------------------------\n -- This command adds a model file to the web application.\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n procedure Execute (Cmd : in Command;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n procedure Help (Cmd : in Command;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Model;\n","new_contents":"-----------------------------------------------------------------------\n-- gen-commands-model -- Model creation command for dynamo\n-- Copyright (C) 2011, 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Model is\n\n -- ------------------------------\n -- Model Creation Command\n -- ------------------------------\n -- This command adds a model file to the web application.\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n overriding\n procedure Execute (Cmd : in Command;\n Name : in String;\n Args : in Argument_List'Class;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Cmd : in Command;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Model;\n","subject":"Update to use the new command implementation","message":"Update to use the new command implementation\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/dynamo,stcarrez\/dynamo,stcarrez\/dynamo"} {"commit":"ee209a391c4829f918c315179d01e778235a93c1","old_file":"regtests\/ado-schemas-tests.ads","new_file":"regtests\/ado-schemas-tests.ads","old_contents":"-----------------------------------------------------------------------\n-- schemas Tests -- Test loading of database schema\n-- Copyright (C) 2009, 2010, 2011, 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\npackage ADO.Schemas.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n -- Test reading the entity cache and the Find_Entity_Type operation\n procedure Test_Find_Entity_Type (T : in out Test);\n\n -- Test calling Find_Entity_Type with an invalid table.\n procedure Test_Find_Entity_Type_Error (T : in out Test);\n\n -- Test the Load_Schema operation and check the result schema.\n procedure Test_Load_Schema (T : in out Test);\n\nend ADO.Schemas.Tests;\n","new_contents":"-----------------------------------------------------------------------\n-- schemas Tests -- Test loading of database schema\n-- Copyright (C) 2009, 2010, 2011, 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\npackage ADO.Schemas.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n -- Test reading the entity cache and the Find_Entity_Type operation\n procedure Test_Find_Entity_Type (T : in out Test);\n\n -- Test calling Find_Entity_Type with an invalid table.\n procedure Test_Find_Entity_Type_Error (T : in out Test);\n\n -- Test the Load_Schema operation and check the result schema.\n procedure Test_Load_Schema (T : in out Test);\n\n -- Test the Table_Cursor operations and check the result schema.\n procedure Test_Table_Iterator (T : in out Test);\n\nend ADO.Schemas.Tests;\n","subject":"Declare Test_Table_Iterator procedure to test the table iterator","message":"Declare Test_Table_Iterator procedure to test the table iterator\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-ado"} {"commit":"ce0281f49c4ba2ddb05804df0431a5489107284d","old_file":"src\/asf-streams-json.adb","new_file":"src\/asf-streams-json.adb","old_contents":"-----------------------------------------------------------------------\n-- asf-streams-json -- JSON Print streams for servlets\n-- Copyright (C) 2016 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Serialize.IO.JSON;\npackage body ASF.Streams.JSON is\n\n -- ------------------------------\n -- Initialize the stream\n -- ------------------------------\n procedure Initialize (Stream : in out Print_Stream;\n To : in ASF.Streams.Print_Stream'Class) is\n begin\n Stream.Initialize (To.Target);\n end Initialize;\n\nend ASF.Streams.JSON;\n","new_contents":"-----------------------------------------------------------------------\n-- asf-streams-json -- JSON Print streams for servlets\n-- Copyright (C) 2016, 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage body ASF.Streams.JSON is\n\n -- ------------------------------\n -- Initialize the stream\n -- ------------------------------\n procedure Initialize (Stream : in out Print_Stream;\n To : in ASF.Streams.Print_Stream'Class) is\n begin\n Stream.Initialize (To.Target);\n end Initialize;\n\nend ASF.Streams.JSON;\n","subject":"Remove unused with clause Util.Serialize.IO.JSON","message":"Remove unused with clause Util.Serialize.IO.JSON\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-asf,stcarrez\/ada-asf,stcarrez\/ada-asf"} {"commit":"6b2e3a8e9276050f46a5425823a8ed39f3747f91","old_file":"tools\/druss-config.ads","new_file":"tools\/druss-config.ads","old_contents":"-----------------------------------------------------------------------\n-- druss-config -- Configuration management for Druss\n-- Copyright (C) 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Properties;\nwith Druss.Gateways;\npackage Druss.Config is\n\n -- Initialize the configuration.\n procedure Initialize;\n\n -- Get the configuration parameter.\n function Get (Name : in String) return String;\n\n -- Initalize the list of gateways from the configuration file.\n procedure Get_Gateways (List : in out Druss.Gateways.Gateway_Vector);\n\nend Druss.Config;\n","new_contents":"-----------------------------------------------------------------------\n-- druss-config -- Configuration management for Druss\n-- Copyright (C) 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Druss.Gateways;\npackage Druss.Config is\n\n -- Initialize the configuration.\n procedure Initialize (Path : in String);\n\n -- Get the configuration parameter.\n function Get (Name : in String) return String;\n\n -- Initalize the list of gateways from the configuration file.\n procedure Get_Gateways (List : in out Druss.Gateways.Gateway_Vector);\n\nend Druss.Config;\n","subject":"Add a Path parameter to the Initialize procedure","message":"Add a Path parameter to the Initialize procedure\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/bbox-ada-api"} {"commit":"0c030d1de447711c6b0636f64d8dfc65ed35babb","old_file":"src\/gen-commands-database.ads","new_file":"src\/gen-commands-database.ads","old_contents":"-----------------------------------------------------------------------\n-- gen-commands-database -- Database creation from application model\n-- Copyright (C) 2011, 2017, 2018 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Database is\n\n -- ------------------------------\n -- Database Creation Command\n -- ------------------------------\n -- This command creates the database for the application.\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n overriding\n procedure Execute (Cmd : in out Command;\n Name : in String;\n Args : in Argument_List'Class;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Cmd : in out Command;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Database;\n","new_contents":"-----------------------------------------------------------------------\n-- gen-commands-database -- Database creation from application model\n-- Copyright (C) 2011, 2017, 2018, 2019 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Database is\n\n -- ------------------------------\n -- Database Creation Command\n -- ------------------------------\n -- This command creates the database for the application.\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n overriding\n procedure Execute (Cmd : in out Command;\n Name : in String;\n Args : in Argument_List'Class;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Cmd : in out Command;\n Name : in String;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Database;\n","subject":"Add Name parameter to the Help procedure","message":"Add Name parameter to the Help procedure\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/dynamo,stcarrez\/dynamo,stcarrez\/dynamo"} {"commit":"de321942df923f89366c4b60d58036d939cd7e06","old_file":"orka\/src\/orka\/interface\/orka-atomics.ads","new_file":"orka\/src\/orka\/interface\/orka-atomics.ads","old_contents":"-- SPDX-License-Identifier: Apache-2.0\n--\n-- Copyright (c) 2017 onox \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\npackage Orka.Atomics is\n pragma Pure;\n\n protected type Counter (Initial_Value : Natural) is\n procedure Add (Addition : Natural);\n\n procedure Increment;\n\n procedure Decrement (Zero : out Boolean);\n\n procedure Reset;\n\n function Count return Natural;\n private\n Value : Natural := Initial_Value;\n end Counter;\n\nend Orka.Atomics;\n","new_contents":"-- SPDX-License-Identifier: Apache-2.0\n--\n-- Copyright (c) 2017 onox \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\npackage Orka.Atomics is\n pragma Pure;\n\n protected type Counter (Initial_Value : Natural) is\n pragma Lock_Free;\n\n procedure Add (Addition : Natural);\n\n procedure Increment;\n\n procedure Decrement (Zero : out Boolean);\n\n procedure Reset;\n\n function Count return Natural;\n private\n Value : Natural := Initial_Value;\n end Counter;\n\nend Orka.Atomics;\n","subject":"Make protected type Counter lock free","message":"orka: Make protected type Counter lock free\n\nSigned-off-by: onox <34c1d3d2d1347bea60a26f46574de21a7a79b6d5@gmail.com>\n","lang":"Ada","license":"apache-2.0","repos":"onox\/orka"} {"commit":"aa02552f0c12d01ba0b9e63ca22d6d562611a000","old_file":"src\/gen-commands-propset.ads","new_file":"src\/gen-commands-propset.ads","old_contents":"-----------------------------------------------------------------------\n-- gen-commands-propset -- Set a property on dynamo project\n-- Copyright (C) 2011, 2017, 2018 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Propset is\n\n -- ------------------------------\n -- Propset Command\n -- ------------------------------\n -- This command sets a property in the dynamo project configuration.\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n overriding\n procedure Execute (Cmd : in out Command;\n Name : in String;\n Args : in Argument_List'Class;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Cmd : in Command;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Propset;\n","new_contents":"-----------------------------------------------------------------------\n-- gen-commands-propset -- Set a property on dynamo project\n-- Copyright (C) 2011, 2017, 2018 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Propset is\n\n -- ------------------------------\n -- Propset Command\n -- ------------------------------\n -- This command sets a property in the dynamo project configuration.\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n overriding\n procedure Execute (Cmd : in out Command;\n Name : in String;\n Args : in Argument_List'Class;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Cmd : in out Command;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Propset;\n","subject":"Update to use an in out parameter for Help procedure","message":"Update to use an in out parameter for Help procedure\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/dynamo,stcarrez\/dynamo,stcarrez\/dynamo"} {"commit":"26e68a922285d96b523d6d265e3b32b7f7e1a99d","old_file":"src\/wiki-parsers-markdown.ads","new_file":"src\/wiki-parsers-markdown.ads","old_contents":"-----------------------------------------------------------------------\n-- wiki-parsers-markdown -- Markdown parser operations\n-- Copyright (C) 2016 - 2022 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nprivate package Wiki.Parsers.Markdown is\n\n pragma Preelaborate;\n subtype Parser_Type is Parser;\n\n -- Parse a markdown table\/column.\n -- Example:\n -- | col1 | col2 | ... | colN |\n procedure Parse_Table (P : in out Parser;\n Token : in Wiki.Strings.WChar);\n\n procedure Parse_Line (Parser : in out Parser_Type;\n Text : in Wiki.Buffers.Buffer_Access);\n\n procedure Parse_Inline_Text (Parser : in out Parser_Type;\n Text : in Wiki.Buffers.Buffer_Access);\n\nend Wiki.Parsers.Markdown;\n","new_contents":"-----------------------------------------------------------------------\n-- wiki-parsers-markdown -- Markdown parser operations\n-- Copyright (C) 2016 - 2022 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nprivate package Wiki.Parsers.Markdown is\n\n pragma Preelaborate;\n subtype Parser_Type is Parser;\n\n procedure Parse_Line (Parser : in out Parser_Type;\n Text : in Wiki.Buffers.Buffer_Access);\n\n procedure Parse_Inline_Text (Parser : in out Parser_Type;\n Text : in Wiki.Buffers.Buffer_Access);\n\nend Wiki.Parsers.Markdown;\n","subject":"Remove declaration of internal Parse_Table procedure","message":"Remove declaration of internal Parse_Table procedure\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-wiki,stcarrez\/ada-wiki"} {"commit":"6818a85e4d41cb6d11aa9bdd1ef06b15f5f03b44","old_file":"src\/gen-commands-generate.ads","new_file":"src\/gen-commands-generate.ads","old_contents":"-----------------------------------------------------------------------\n-- gen-commands-generate -- Generate command for dynamo\n-- Copyright (C) 2011 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Generate is\n\n -- ------------------------------\n -- Generator Command\n -- ------------------------------\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n procedure Execute (Cmd : in Command;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n procedure Help (Cmd : in Command;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Generate;\n","new_contents":"-----------------------------------------------------------------------\n-- gen-commands-generate -- Generate command for dynamo\n-- Copyright (C) 2011, 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Generate is\n\n -- ------------------------------\n -- Generator Command\n -- ------------------------------\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n overriding\n procedure Execute (Cmd : in Command;\n Name : in String;\n Args : in Argument_List'Class;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Cmd : in Command;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Generate;\n","subject":"Update to use the new command implementation","message":"Update to use the new command implementation\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/dynamo,stcarrez\/dynamo,stcarrez\/dynamo"} {"commit":"ad2daf98cb80fb425c86a4927ea73ce16b752333","old_file":"src\/wiki-helpers-parser.ads","new_file":"src\/wiki-helpers-parser.ads","old_contents":"-----------------------------------------------------------------------\n-- wiki-helpers-parser -- Generic procedure for the wiki parser\n-- Copyright (C) 2016 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Wiki.Strings;\nwith Wiki.Documents;\nwith Wiki.Streams;\ngeneric\n type Engine_Type is limited private;\n type Element_Type is limited private;\n with function Element (Item : in Element_Type;\n Pos : in Natural) return Wiki.Strings.WChar is <>;\n with function Length (Item : in Element_Type) return Natural is <>;\n with procedure Parse (Engine : in out Engine_Type;\n Stream : in Wiki.Streams.Input_Stream_Access;\n Doc : in out Wiki.Documents.Document) is <>;\nprocedure Wiki.Helpers.Parser (Engine : in out Engine_Type;\n Content : in Element_Type;\n Doc : in out Wiki.Documents.Document);\npragma Preelaborate (Wiki.Helpers.Parser);\n","new_contents":"-----------------------------------------------------------------------\n-- wiki-helpers-parser -- Generic procedure for the wiki parser\n-- Copyright (C) 2016 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Wiki.Strings;\nwith Wiki.Documents;\nwith Wiki.Streams;\ngeneric\n type Engine_Type is limited private;\n type Element_Type (<>) is limited private;\n with procedure Element (Item : in Element_Type;\n Pos : in out Natural;\n Char : out Wiki.Strings.WChar) is <>;\n with function Length (Item : in Element_Type) return Natural is <>;\n with procedure Parse (Engine : in out Engine_Type;\n Stream : in Wiki.Streams.Input_Stream_Access;\n Doc : in out Wiki.Documents.Document) is <>;\nprocedure Wiki.Helpers.Parser (Engine : in out Engine_Type;\n Content : in Element_Type;\n Doc : in out Wiki.Documents.Document);\npragma Preelaborate (Wiki.Helpers.Parser);\n","subject":"Change the Element operation to a procedure that gets and updates the position","message":"Change the Element operation to a procedure that gets and updates the position\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-wiki,stcarrez\/ada-wiki"} {"commit":"1bf422dc6949d3fdf4a63040b9be0af2d92ce86e","old_file":"ARM\/STMicro\/STM32\/components\/lcd\/rortech_stm32f7disco\/stm32-lcd.ads","new_file":"ARM\/STMicro\/STM32\/components\/lcd\/rortech_stm32f7disco\/stm32-lcd.ads","old_contents":"with STM32.LTDC;\nwith STM32.LCDInit;\n\npackage STM32.LCD is new\n STM32.LTDC (LCD_Width => 480,\n LCD_Height => 272,\n LCD_HSync => 41,\n LCD_HBP => 13,\n LCD_HFP => 32,\n LCD_VSYNC => 10,\n LCD_VBP => 2,\n LCD_VFP => 2,\n PLLSAI_N => 429,\n PLLSAI_R => 5,\n DivR => 2,\n Pre_LTDC_Initialize => STM32.LCDInit.Initialize,\n Post_LTDC_Initialize => STM32.LCDInit.Post_Init);\n","new_contents":"with STM32.LTDC;\nwith STM32.LCDInit;\n\npackage STM32.LCD is new\n STM32.LTDC (LCD_Width => 480,\n LCD_Height => 272,\n LCD_HSync => 41,\n LCD_HBP => 13,\n LCD_HFP => 32,\n LCD_VSYNC => 10,\n LCD_VBP => 2,\n LCD_VFP => 2,\n PLLSAI_N => 200,\n PLLSAI_R => 5,\n DivR => 2,\n Pre_LTDC_Initialize => STM32.LCDInit.Initialize,\n Post_LTDC_Initialize => STM32.LCDInit.Post_Init);\n","subject":"Fix LCD too slow on the STM32F7-Disco.","message":"Fix LCD too slow on the STM32F7-Disco.\n","lang":"Ada","license":"bsd-3-clause","repos":"lambourg\/Ada_Drivers_Library,AdaCore\/Ada_Drivers_Library,Fabien-Chouteau\/Ada_Drivers_Library,Fabien-Chouteau\/Ada_Drivers_Library,simonjwright\/Ada_Drivers_Library,AdaCore\/Ada_Drivers_Library,ellamosi\/Ada_BMP_Library,simonjwright\/Ada_Drivers_Library"} {"commit":"b68c3779eb4d9f2043bb97e60fa34ca4e9a215c5","old_file":"src\/asf-helpers-beans.ads","new_file":"src\/asf-helpers-beans.ads","old_contents":"-----------------------------------------------------------------------\n-- asf-helpers-beans -- Helper packages to write ASF applications\n-- Copyright (C) 2012 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Util.Beans.Basic;\n\npackage ASF.Helpers.Beans is\n\n -- Get a bean instance associated under the given name from the current faces context.\n -- A null value is returned if the bean does not exist or is not of the good type.\n generic\n type Element_Type is new Util.Beans.Basic.Readonly_Bean with private;\n type Element_Access is access all Element_Type'Class;\n function Get_Bean (Name : in String) return Element_Access;\n\nend ASF.Helpers.Beans;\n","new_contents":"-----------------------------------------------------------------------\n-- asf-helpers-beans -- Helper packages to write ASF applications\n-- Copyright (C) 2012, 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Util.Beans.Basic;\n\nwith ASF.Requests;\npackage ASF.Helpers.Beans is\n\n -- Get a bean instance associated under the given name from the current faces context.\n -- A null value is returned if the bean does not exist or is not of the good type.\n generic\n type Element_Type is new Util.Beans.Basic.Readonly_Bean with private;\n type Element_Access is access all Element_Type'Class;\n function Get_Bean (Name : in String) return Element_Access;\n\n -- Get a bean instance associated under the given name from the request.\n -- A null value is returned if the bean does not exist or is not of the good type.\n generic\n type Element_Type is new Util.Beans.Basic.Readonly_Bean with private;\n type Element_Access is access all Element_Type'Class;\n function Get_Request_Bean (Request : in ASF.Requests.Request'Class;\n Name : in String) return Element_Access;\n\nend ASF.Helpers.Beans;\n","subject":"Declare the Get_Request_Bean generic function","message":"Declare the Get_Request_Bean generic function\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-asf,stcarrez\/ada-asf,stcarrez\/ada-asf"} {"commit":"431d39042769bfb6005b2b9ea0350bb3982b4dac","old_file":"src\/gen-commands-layout.ads","new_file":"src\/gen-commands-layout.ads","old_contents":"-----------------------------------------------------------------------\n-- gen-commands-layout -- Layout creation command for dynamo\n-- Copyright (C) 2011, 2017, 2018 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Layout is\n\n -- ------------------------------\n -- Layout Creation Command\n -- ------------------------------\n -- This command adds a XHTML layout to the web application.\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n overriding\n procedure Execute (Cmd : in out Command;\n Name : in String;\n Args : in Argument_List'Class;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Cmd : in out Command;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Layout;\n","new_contents":"-----------------------------------------------------------------------\n-- gen-commands-layout -- Layout creation command for dynamo\n-- Copyright (C) 2011, 2017, 2018, 2019 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Layout is\n\n -- ------------------------------\n -- Layout Creation Command\n -- ------------------------------\n -- This command adds a XHTML layout to the web application.\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n overriding\n procedure Execute (Cmd : in out Command;\n Name : in String;\n Args : in Argument_List'Class;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Cmd : in out Command;\n Name : in String;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Layout;\n","subject":"Add Name parameter to the Help procedure","message":"Add Name parameter to the Help procedure\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/dynamo,stcarrez\/dynamo,stcarrez\/dynamo"} {"commit":"15592ccd524fe7003ddea8f74285b424cc1f8f66","old_file":"src\/gen-commands-plugins.ads","new_file":"src\/gen-commands-plugins.ads","old_contents":"-----------------------------------------------------------------------\n-- gen-commands-plugins -- Plugin creation and management commands for dynamo\n-- Copyright (C) 2012, 2017, 2018 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Plugins is\n\n -- ------------------------------\n -- Generator Command\n -- ------------------------------\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n overriding\n procedure Execute (Cmd : in out Command;\n Name : in String;\n Args : in Argument_List'Class;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Cmd : in out Command;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Plugins;\n","new_contents":"-----------------------------------------------------------------------\n-- gen-commands-plugins -- Plugin creation and management commands for dynamo\n-- Copyright (C) 2012, 2017, 2018, 2019 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Plugins is\n\n -- ------------------------------\n -- Generator Command\n -- ------------------------------\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n overriding\n procedure Execute (Cmd : in out Command;\n Name : in String;\n Args : in Argument_List'Class;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Cmd : in out Command;\n Name : in String;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Plugins;\n","subject":"Add Name parameter to the Help procedure","message":"Add Name parameter to the Help procedure\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/dynamo,stcarrez\/dynamo,stcarrez\/dynamo"} {"commit":"bcffe2bfc9a85fadcfd69015b3f2b56b33228c45","old_file":"src\/babel-base.ads","new_file":"src\/babel-base.ads","old_contents":"-----------------------------------------------------------------------\r\n-- babel-base -- Database for files\r\n-- Copyright (C) 2014 Stephane.Carrez\r\n-- Written by Stephane.Carrez (Stephane.Carrez@gmail.com)\r\n--\r\n-- Licensed under the Apache License, Version 2.0 (the \"License\");\r\n-- you may not use this file except in compliance with the License.\r\n-- You may obtain a copy of the License at\r\n--\r\n-- http:\/\/www.apache.org\/licenses\/LICENSE-2.0\r\n--\r\n-- Unless required by applicable law or agreed to in writing, software\r\n-- distributed under the License is distributed on an \"AS IS\" BASIS,\r\n-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n-- See the License for the specific language governing permissions and\r\n-- limitations under the License.\r\n-----------------------------------------------------------------------\r\nwith Ada.Finalization;\r\nwith ADO;\r\n\r\npackage Babel.Base is\r\n\r\n type Database is abstract new Ada.Finalization.Limited_Controlled with private;\r\n\r\nprivate\r\n\r\n type Database is abstract new Ada.Finalization.Limited_Controlled with record\r\n Name : Integer;\r\n end record;\r\n\r\nend Babel.Base;\r\n","new_contents":"-----------------------------------------------------------------------\r\n-- babel-base -- Database for files\r\n-- Copyright (C) 2014 Stephane.Carrez\r\n-- Written by Stephane.Carrez (Stephane.Carrez@gmail.com)\r\n--\r\n-- Licensed under the Apache License, Version 2.0 (the \"License\");\r\n-- you may not use this file except in compliance with the License.\r\n-- You may obtain a copy of the License at\r\n--\r\n-- http:\/\/www.apache.org\/licenses\/LICENSE-2.0\r\n--\r\n-- Unless required by applicable law or agreed to in writing, software\r\n-- distributed under the License is distributed on an \"AS IS\" BASIS,\r\n-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n-- See the License for the specific language governing permissions and\r\n-- limitations under the License.\r\n-----------------------------------------------------------------------\r\nwith Ada.Finalization;\r\nwith ADO;\r\n\r\nwith Babel.Files;\r\npackage Babel.Base is\r\n\r\n type Database is abstract new Ada.Finalization.Limited_Controlled with private;\r\n\r\n -- Insert the file in the database.\r\n procedure Insert (Into : in out Database;\r\n File : in Babel.Files.File_Type) is abstract;\r\n\r\nprivate\r\n\r\n type Database is abstract new Ada.Finalization.Limited_Controlled with record\r\n Name : Integer;\r\n end record;\r\n\r\nend Babel.Base;\r\n","subject":"Define the Insert operation on the Database abstract type","message":"Define the Insert operation on the Database abstract type\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/babel"} {"commit":"2e6b5e880fe1f45d39331661543dae568a3f613e","old_file":"tools\/druss-commands-ping.ads","new_file":"tools\/druss-commands-ping.ads","old_contents":"-----------------------------------------------------------------------\n-- druss-commands-ping -- Ping devices from the gateway\n-- Copyright (C) 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Druss.Commands.Ping is\n\n type Command_Type is new Druss.Commands.Drivers.Command_Type with null record;\n\n procedure Do_Ping (Command : in Command_Type;\n Args : in Argument_List'Class;\n Context : in out Context_Type);\n\n -- Execute a ping from the gateway to each device.\n overriding\n procedure Execute (Command : in Command_Type;\n Name : in String;\n Args : in Argument_List'Class;\n Context : in out Context_Type);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Command : in Command_Type;\n Context : in out Context_Type);\n\nend Druss.Commands.Ping;\n","new_contents":"-----------------------------------------------------------------------\n-- druss-commands-ping -- Ping devices from the gateway\n-- Copyright (C) 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Druss.Commands.Ping is\n\n type Command_Type is new Druss.Commands.Drivers.Command_Type with null record;\n\n procedure Do_Ping (Command : in Command_Type;\n Args : in Argument_List'Class;\n Selector : in Device_Selector_Type;\n Context : in out Context_Type);\n\n -- Execute a ping from the gateway to each device.\n overriding\n procedure Execute (Command : in Command_Type;\n Name : in String;\n Args : in Argument_List'Class;\n Context : in out Context_Type);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Command : in Command_Type;\n Context : in out Context_Type);\n\nend Druss.Commands.Ping;\n","subject":"Add a device selector to the Do_Ping procedure","message":"Add a device selector to the Do_Ping procedure\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/bbox-ada-api"} {"commit":"f2c66ba99bd0dc5aaf84b5764b59b24e6f5486f4","old_file":"src\/gen-commands-generate.ads","new_file":"src\/gen-commands-generate.ads","old_contents":"-----------------------------------------------------------------------\n-- gen-commands-generate -- Generate command for dynamo\n-- Copyright (C) 2011, 2017, 2018 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Generate is\n\n -- ------------------------------\n -- Generator Command\n -- ------------------------------\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n overriding\n procedure Execute (Cmd : in out Command;\n Name : in String;\n Args : in Argument_List'Class;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Cmd : in out Command;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Generate;\n","new_contents":"-----------------------------------------------------------------------\n-- gen-commands-generate -- Generate command for dynamo\n-- Copyright (C) 2011, 2017, 2018, 2019 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Generate is\n\n -- ------------------------------\n -- Generator Command\n -- ------------------------------\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n overriding\n procedure Execute (Cmd : in out Command;\n Name : in String;\n Args : in Argument_List'Class;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Cmd : in out Command;\n Name : in String;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Generate;\n","subject":"Add Name parameter to the Help procedure","message":"Add Name parameter to the Help procedure\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/dynamo,stcarrez\/dynamo,stcarrez\/dynamo"} {"commit":"f1549e07ad371d50186db25711292fc3fb7d1803","old_file":"src\/gen-commands-model.ads","new_file":"src\/gen-commands-model.ads","old_contents":"-----------------------------------------------------------------------\n-- gen-commands-model -- Model creation command for dynamo\n-- Copyright (C) 2011, 2017, 2018 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Model is\n\n -- ------------------------------\n -- Model Creation Command\n -- ------------------------------\n -- This command adds a model file to the web application.\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n overriding\n procedure Execute (Cmd : in out Command;\n Name : in String;\n Args : in Argument_List'Class;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Cmd : in out Command;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Model;\n","new_contents":"-----------------------------------------------------------------------\n-- gen-commands-model -- Model creation command for dynamo\n-- Copyright (C) 2011, 2017, 2018, 2019 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Commands.Model is\n\n -- ------------------------------\n -- Model Creation Command\n -- ------------------------------\n -- This command adds a model file to the web application.\n type Command is new Gen.Commands.Command with null record;\n\n -- Execute the command with the arguments.\n overriding\n procedure Execute (Cmd : in out Command;\n Name : in String;\n Args : in Argument_List'Class;\n Generator : in out Gen.Generator.Handler);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Cmd : in out Command;\n Name : in String;\n Generator : in out Gen.Generator.Handler);\n\nend Gen.Commands.Model;\n","subject":"Add Name parameter to the Help procedure","message":"Add Name parameter to the Help procedure\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/dynamo,stcarrez\/dynamo,stcarrez\/dynamo"} {"commit":"37917bb9370ede46abcb209ab7235462d3a90875","old_file":"lumen.ads","new_file":"lumen.ads","old_contents":"\n-- Lumen -- A simple graphical user interface library based on OpenGL\n--\n-- Chip Richards, NiEstu, Phoenix AZ, Spring 2010\n\n-- Lumen would not be possible without the support and contributions of a cast\n-- of thousands, including and primarily Rod Kay.\n\n-- This code is covered by the ISC License:\n--\n-- Copyright (c) 2010, NiEstu\n--\n-- Permission to use, copy, modify, and\/or distribute this software for any\n-- purpose with or without fee is hereby granted, provided that the above\n-- copyright notice and this permission notice appear in all copies.\n--\n-- THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n-- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n-- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY\n-- SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n-- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n-- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR\n-- IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n\npackage Lumen is\n pragma Pure (Lumen);\n\nend Lumen;\n\n","new_contents":"\n-- Lumen -- A simple graphical user interface library based on OpenGL\n--\n-- Chip Richards, NiEstu, Phoenix AZ, Spring 2010\n\n-- Lumen would not be possible without the support and contributions of a cast\n-- of thousands, including and primarily Rod Kay.\n\n-- This code is covered by the ISC License:\n--\n-- Copyright (c) 2010, NiEstu\n--\n-- Permission to use, copy, modify, and\/or distribute this software for any\n-- purpose with or without fee is hereby granted, provided that the above\n-- copyright notice and this permission notice appear in all copies.\n--\n-- The software is provided \"as is\" and the author disclaims all warranties\n-- with regard to this software including all implied warranties of\n-- merchantability and fitness. In no event shall the author be liable for any\n-- special, direct, indirect, or consequential damages or any damages\n-- whatsoever resulting from loss of use, data or profits, whether in an\n-- action of contract, negligence or other tortious action, arising out of or\n-- in connection with the use or performance of this software.\n\npackage Lumen is\n pragma Pure (Lumen);\n\nend Lumen;\n\n","subject":"Change license text to mixed case instead of SHOUTING it","message":"Change license text to mixed case instead of SHOUTING it\n","lang":"Ada","license":"isc","repos":"darkestkhan\/lumen2,darkestkhan\/lumen"} {"commit":"b92bccd7ab3b96d73c78b48966ad152cf9aa628d","old_file":"src\/asf-components-html-factory.ads","new_file":"src\/asf-components-html-factory.ads","old_contents":"-----------------------------------------------------------------------\n-- html-factory -- Factory for HTML UI Components\n-- Copyright (C) 2009, 2010 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith ASF.Factory;\npackage ASF.Components.Html.Factory is\n\n use ASF;\n\n -- Get the HTML component factory.\n function Definition return ASF.Factory.Factory_Bindings_Access;\n\nend ASF.Components.Html.Factory;\n","new_contents":"-----------------------------------------------------------------------\n-- html-factory -- Factory for HTML UI Components\n-- Copyright (C) 2009, 2010, 2018 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith ASF.Factory;\npackage ASF.Components.Html.Factory is\n\n -- Register the HTML component factory.\n procedure Register (Factory : in out ASF.Factory.Component_Factory);\n\nend ASF.Components.Html.Factory;\n","subject":"Change the Definition function into a Register procedure","message":"Change the Definition function into a Register procedure\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-asf,stcarrez\/ada-asf,stcarrez\/ada-asf"} {"commit":"1f75cb5f92bd5ed8b546955ba065ef30d8531ef7","old_file":"src\/sys\/os-win32\/util-systems-constants.ads","new_file":"src\/sys\/os-win32\/util-systems-constants.ads","old_contents":"-- Generated by utildgen.c from system includes\r\nwith Interfaces.C;\r\npackage Util.Systems.Constants is\r\n\r\n pragma Pure;\r\n\r\n -- Flags used when opening a file with open\/creat.\r\n O_RDONLY : constant Interfaces.C.int := 8#000000#;\r\n O_WRONLY : constant Interfaces.C.int := 8#000001#;\r\n O_RDWR : constant Interfaces.C.int := 8#000002#;\r\n O_CREAT : constant Interfaces.C.int := 8#000400#;\r\n O_EXCL : constant Interfaces.C.int := 8#002000#;\r\n O_TRUNC : constant Interfaces.C.int := 8#001000#;\r\n O_APPEND : constant Interfaces.C.int := 8#000010#;\r\n\r\n\r\n DLL_OPTIONS : constant String := \"\";\r\n SYMBOL_PREFIX : constant String := \"\";\r\n\r\nend Util.Systems.Constants;\r\n","new_contents":"-- Generated by utildgen.c from system includes\nwith Interfaces.C;\npackage Util.Systems.Constants is\n\n pragma Pure;\n\n -- Flags used when opening a file with open\/creat.\n O_RDONLY : constant Interfaces.C.int := 8#000000#;\n O_WRONLY : constant Interfaces.C.int := 8#000001#;\n O_RDWR : constant Interfaces.C.int := 8#000002#;\n O_CREAT : constant Interfaces.C.int := 8#000400#;\n O_EXCL : constant Interfaces.C.int := 8#002000#;\n O_TRUNC : constant Interfaces.C.int := 8#001000#;\n O_APPEND : constant Interfaces.C.int := 8#000010#;\n O_CLOEXEC : constant Interfaces.C.int := 0;\n O_SYNC : constant Interfaces.C.int := 0;\n O_DIRECT : constant Interfaces.C.int := 0;\n\n\n DLL_OPTIONS : constant String := \"\";\n SYMBOL_PREFIX : constant String := \"\";\n\nend Util.Systems.Constants;\n","subject":"Fix O_CLOEXEC undefined in keystore-io-files.adb (win32)","message":"Fix O_CLOEXEC undefined in keystore-io-files.adb (win32)\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"ec084716b9199c3b823ecbec044a841f2baa5c2d","old_file":"src\/util-dates-iso8601.ads","new_file":"src\/util-dates-iso8601.ads","old_contents":"-----------------------------------------------------------------------\n-- util-dates-iso8601 -- ISO8601 dates\n-- Copyright (C) 2011, 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Ada.Calendar;\npackage Util.Dates.ISO8601 is\n\n -- Parses an ISO8601 date and return it as a calendar time.\n -- Raises Constraint_Error if the date format is not recognized.\n function Value (Date : in String) return Ada.Calendar.Time;\n\n -- Return the ISO8601 date.\n function Image (Date : in Ada.Calendar.Time) return String;\n function Image (Date : in Date_Record) return String;\n\nend Util.Dates.ISO8601;\n","new_contents":"-----------------------------------------------------------------------\n-- util-dates-iso8601 -- ISO8601 dates\n-- Copyright (C) 2011, 2013, 2016 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Ada.Calendar;\npackage Util.Dates.ISO8601 is\n\n type Precision_Type is (YEAR, MONTH, DAY, HOUR, MINUTE, SECOND, SUBSECOND);\n\n -- Parses an ISO8601 date and return it as a calendar time.\n -- Raises Constraint_Error if the date format is not recognized.\n function Value (Date : in String) return Ada.Calendar.Time;\n\n -- Return the ISO8601 date.\n function Image (Date : in Ada.Calendar.Time) return String;\n function Image (Date : in Date_Record) return String;\n function Image (Date : in Ada.Calendar.Time;\n Precision : in Precision_Type) return String;\n function Image (Date : in Date_Record;\n Precision : in Precision_Type) return String;\n\nend Util.Dates.ISO8601;\n","subject":"Declare Precision_Type enumeration Declare new Image function","message":"Declare Precision_Type enumeration\nDeclare new Image function\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"7e0a6f0575cc39219eacd23c2f58f084530e4466","old_file":"awa\/src\/awa.ads","new_file":"awa\/src\/awa.ads","old_contents":"-----------------------------------------------------------------------\n-- awa -- Ada Web Application\n-- Copyright (C) 2009 - 2020 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-- = AWA Core ==\n--\n-- @include awa-applications.ads\n-- @include awa-modules.ads\n-- @include awa-permissions.ads\n-- @include awa-events.ads\n-- @include awa.xml\npackage AWA is\n\n pragma Pure;\n\nend AWA;\n","new_contents":"-----------------------------------------------------------------------\n-- awa -- Ada Web Application\n-- Copyright (C) 2009 - 2020 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-- = AWA Core ==\n--\n-- @include awa-applications.ads\n-- @include awa-modules.ads\n-- @include awa-permissions.ads\n-- @include awa-events.ads\n-- @include awa-commands.ads\n-- @include awa.xml\npackage AWA is\n\n pragma Pure;\n\nend AWA;\n","subject":"Include the AWA commands documentation","message":"Include the AWA commands documentation\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa"} {"commit":"58868546577bd497edaa337d1d0a59c7bda8a408","old_file":"src\/util-events.ads","new_file":"src\/util-events.ads","old_contents":"-----------------------------------------------------------------------\n-- util-events -- Events\n-- Copyright (C) 2001, 2002, 2003, 2009, 2010 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Ada.Calendar;\npackage Util.Events is\n\n type Event is tagged private;\n\n -- Get the time identifying when the event was created.\n function Get_Time (Ev : Event) return Ada.Calendar.Time;\n\n type Event_Listener is limited interface;\n\nprivate\n\n type Event is tagged record\n Date : Ada.Calendar.Time := Ada.Calendar.Clock;\n end record;\n\nend Util.Events;\n","new_contents":"-----------------------------------------------------------------------\n-- util-events -- Events\n-- Copyright (C) 2001, 2002, 2003, 2009, 2010, 2011 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Ada.Calendar;\npackage Util.Events is\n\n type Event is tagged limited private;\n\n -- Get the time identifying when the event was created.\n function Get_Time (Ev : Event) return Ada.Calendar.Time;\n\n type Event_Listener is limited interface;\n\nprivate\n\n type Event is tagged limited record\n Date : Ada.Calendar.Time := Ada.Calendar.Clock;\n end record;\n\nend Util.Events;\n","subject":"Change the Event type to a limited type","message":"Change the Event type to a limited type\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"926364568a81d03a08a83fdf83d1e442e657c176","old_file":"awa\/plugins\/awa-votes\/regtests\/awa-votes-modules-tests.ads","new_file":"awa\/plugins\/awa-votes\/regtests\/awa-votes-modules-tests.ads","old_contents":"-----------------------------------------------------------------------\n-- awa-votes-modules-tests -- Unit tests for vote service\n-- Copyright (C) 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\nwith AWA.Tests;\n\npackage AWA.Votes.Modules.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new AWA.Tests.Test with record\n Manager : AWA.Votes.Modules.Vote_Module_Access;\n end record;\n\n -- Test vote.\n procedure Test_Vote_Up (T : in out Test);\n\nend AWA.Votes.Modules.Tests;\n","new_contents":"-----------------------------------------------------------------------\n-- awa-votes-modules-tests -- Unit tests for vote service\n-- Copyright (C) 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\nwith AWA.Tests;\n\npackage AWA.Votes.Modules.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new AWA.Tests.Test with record\n Manager : AWA.Votes.Modules.Vote_Module_Access;\n end record;\n\n -- Test vote.\n procedure Test_Vote_Up (T : in out Test);\n\n -- Test vote.\n procedure Test_Vote_Undo (T : in out Test);\n\nend AWA.Votes.Modules.Tests;\n","subject":"Add unit test for undo vote","message":"Add unit test for undo vote","lang":"Ada","license":"apache-2.0","repos":"tectronics\/ada-awa,Letractively\/ada-awa,tectronics\/ada-awa,Letractively\/ada-awa,tectronics\/ada-awa,Letractively\/ada-awa"} {"commit":"e7d02a1cc2114950c4a4c4e6fe6620879c395bd9","old_file":"src\/asf-components-core-factory.ads","new_file":"src\/asf-components-core-factory.ads","old_contents":"-----------------------------------------------------------------------\r\n-- core-factory -- Factory for UI Core Components\r\n-- Copyright (C) 2009, 2010 Stephane Carrez\r\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\r\n--\r\n-- Licensed under the Apache License, Version 2.0 (the \"License\");\r\n-- you may not use this file except in compliance with the License.\r\n-- You may obtain a copy of the License at\r\n--\r\n-- http:\/\/www.apache.org\/licenses\/LICENSE-2.0\r\n--\r\n-- Unless required by applicable law or agreed to in writing, software\r\n-- distributed under the License is distributed on an \"AS IS\" BASIS,\r\n-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n-- See the License for the specific language governing permissions and\r\n-- limitations under the License.\r\n-----------------------------------------------------------------------\r\n\r\nwith ASF.Factory;\r\npackage ASF.Components.Core.Factory is\r\n\r\n use ASF;\r\n\r\n -- Get the Core component factory.\r\n function Definition return ASF.Factory.Factory_Bindings_Access;\r\n\r\nend ASF.Components.Core.Factory;\r\n","new_contents":"-----------------------------------------------------------------------\r\n-- core-factory -- Factory for UI Core Components\r\n-- Copyright (C) 2009, 2010, 2018 Stephane Carrez\r\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\r\n--\r\n-- Licensed under the Apache License, Version 2.0 (the \"License\");\r\n-- you may not use this file except in compliance with the License.\r\n-- You may obtain a copy of the License at\r\n--\r\n-- http:\/\/www.apache.org\/licenses\/LICENSE-2.0\r\n--\r\n-- Unless required by applicable law or agreed to in writing, software\r\n-- distributed under the License is distributed on an \"AS IS\" BASIS,\r\n-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n-- See the License for the specific language governing permissions and\r\n-- limitations under the License.\r\n-----------------------------------------------------------------------\r\n\r\nwith ASF.Factory;\r\npackage ASF.Components.Core.Factory is\r\n\r\n -- Register the Core component factory.\r\n procedure Register (Factory : in out ASF.Factory.Component_Factory);\r\n\r\nend ASF.Components.Core.Factory;\r\n","subject":"Change the Definition function into a Register procedure","message":"Change the Definition function into a Register procedure\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-asf,stcarrez\/ada-asf,stcarrez\/ada-asf"} {"commit":"4f069f1ea3979f0b4bed3f91fb2134724e206f65","old_file":"regtests\/util-serialize-io-json-tests.ads","new_file":"regtests\/util-serialize-io-json-tests.ads","old_contents":"-----------------------------------------------------------------------\n-- serialize-io-json-tests -- Unit tests for JSON parser\n-- Copyright (C) 2011 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\n\npackage Util.Serialize.IO.JSON.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n procedure Test_Parse_Error (T : in out Test);\n\n procedure Test_Parser (T : in out Test);\n\nend Util.Serialize.IO.JSON.Tests;\n","new_contents":"-----------------------------------------------------------------------\n-- serialize-io-json-tests -- Unit tests for JSON parser\n-- Copyright (C) 2011, 2016 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\n\npackage Util.Serialize.IO.JSON.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n procedure Test_Parse_Error (T : in out Test);\n\n procedure Test_Parser (T : in out Test);\n\n -- Generate some output stream for the test.\n procedure Write_Stream (Stream : in out Util.Serialize.IO.Output_Stream'Class);\n\n -- Test the JSON output stream generation.\n procedure Test_Output (T : in out Test);\n\nend Util.Serialize.IO.JSON.Tests;\n","subject":"Declare Test_Output and Write_Stream procedures","message":"Declare Test_Output and Write_Stream procedures\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"b474166df879b452873d9e50e9292498b7ba711f","old_file":"mat\/src\/matp.adb","new_file":"mat\/src\/matp.adb","old_contents":"-----------------------------------------------------------------------\n-- mat-types -- Global types\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Ada.IO_Exceptions;\n\nwith MAT.Commands;\nwith MAT.Targets;\nwith MAT.Consoles.Text;\nwith MAT.Readers.Streams.Sockets;\nprocedure Matp is\n Target : MAT.Targets.Target_Type;\n Console : aliased MAT.Consoles.Text.Console_Type;\n Server : MAT.Readers.Streams.Sockets.Socket_Listener_Type;\nbegin\n Target.Console (Console'Unchecked_Access);\n Target.Initialize_Options;\n MAT.Commands.Initialize_Files (Target);\n Server.Start (Options.Address);\n MAT.Commands.Interactive (Target);\n Server.Stop;\n\nexception\n when Ada.IO_Exceptions.End_Error | MAT.Targets.Usage_Error =>\n Server.Stop;\nend Matp;\n","new_contents":"-----------------------------------------------------------------------\n-- mat-types -- Global types\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Ada.IO_Exceptions;\n\nwith MAT.Commands;\nwith MAT.Targets;\nwith MAT.Consoles.Text;\nwith MAT.Readers.Streams.Sockets;\nprocedure Matp is\n Target : MAT.Targets.Target_Type;\n Console : aliased MAT.Consoles.Text.Console_Type;\n Server : MAT.Readers.Streams.Sockets.Socket_Listener_Type;\nbegin\n Target.Console (Console'Unchecked_Access);\n Target.Initialize_Options;\n MAT.Commands.Initialize_Files (Target);\n Target.Start;\n MAT.Commands.Interactive (Target);\n Server.Stop;\n\nexception\n when Ada.IO_Exceptions.End_Error | MAT.Targets.Usage_Error =>\n Server.Stop;\nend Matp;\n","subject":"Update to call the target Start procedure","message":"Update to call the target Start procedure\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/mat,stcarrez\/mat,stcarrez\/mat"} {"commit":"f62527203709bd722a16c19bfa579322cb33ad3d","old_file":"awa\/plugins\/awa-questions\/regtests\/awa-questions-services-tests.ads","new_file":"awa\/plugins\/awa-questions\/regtests\/awa-questions-services-tests.ads","old_contents":"-----------------------------------------------------------------------\n-- awa-questions-services-tests -- Unit tests for question service\n-- Copyright (C) 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\nwith AWA.Tests;\n\npackage AWA.Questions.Services.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new AWA.Tests.Test with record\n Manager : AWA.Questions.Services.Question_Service_Access;\n end record;\n\n -- Test creation of a question.\n procedure Test_Create_Question (T : in out Test);\n\n -- Test list of questions.\n procedure Test_List_Questions (T : in out Test);\n\nend AWA.Questions.Services.Tests;\n","new_contents":"-----------------------------------------------------------------------\n-- awa-questions-services-tests -- Unit tests for question service\n-- Copyright (C) 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\nwith AWA.Tests;\n\npackage AWA.Questions.Services.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new AWA.Tests.Test with record\n Manager : AWA.Questions.Services.Question_Service_Access;\n end record;\n\n -- Test creation of a question.\n procedure Test_Create_Question (T : in out Test);\n\n -- Test list of questions.\n procedure Test_List_Questions (T : in out Test);\n\n -- Test anonymous user voting for a question.\n procedure Test_Question_Vote_Anonymous (T : in out Test);\n\n -- Test voting for a question.\n procedure Test_Question_Vote (T : in out Test);\n\nprivate\n\n -- Do a vote on a question through the question vote bean.\n procedure Do_Vote (T : in out Test);\n\nend AWA.Questions.Services.Tests;\n","subject":"Add unit tests for the questionVote bean","message":"Add unit tests for the questionVote bean","lang":"Ada","license":"apache-2.0","repos":"Letractively\/ada-awa,tectronics\/ada-awa,Letractively\/ada-awa,tectronics\/ada-awa,tectronics\/ada-awa,Letractively\/ada-awa"} {"commit":"b6b6d68814fc5833de259c95dc5979112a3646b8","old_file":"mat\/regtests\/mat-testsuite.adb","new_file":"mat\/regtests\/mat-testsuite.adb","old_contents":"-----------------------------------------------------------------------\n-- mat-testsuite - MAT Testsuite\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith MAT.Readers.Tests;\nwith MAT.Targets.Tests;\npackage body MAT.Testsuite is\n\n Tests : aliased Util.Tests.Test_Suite;\n\n function Suite return Util.Tests.Access_Test_Suite is\n Result : constant Util.Tests.Access_Test_Suite := Tests'Access;\n begin\n MAT.Readers.Tests.Add_Tests (Result);\n MAT.Targets.Tests.Add_Tests (Result);\n return Result;\n end Suite;\n\nend MAT.Testsuite;\n","new_contents":"-----------------------------------------------------------------------\n-- mat-testsuite - MAT Testsuite\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith MAT.Readers.Tests;\nwith MAT.Targets.Tests;\nwith MAT.Frames.Tests;\npackage body MAT.Testsuite is\n\n Tests : aliased Util.Tests.Test_Suite;\n\n function Suite return Util.Tests.Access_Test_Suite is\n Result : constant Util.Tests.Access_Test_Suite := Tests'Access;\n begin\n MAT.Frames.Tests.Add_Tests (Result);\n MAT.Readers.Tests.Add_Tests (Result);\n MAT.Targets.Tests.Add_Tests (Result);\n return Result;\n end Suite;\n\nend MAT.Testsuite;\n","subject":"Add the stack frames unit tests","message":"Add the stack frames unit tests\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/mat,stcarrez\/mat,stcarrez\/mat"} {"commit":"edaaf48ed03608b6cc9d348b9f184b8cbb0addb2","old_file":"mat\/src\/gtk\/mat-targets-gtkmat.ads","new_file":"mat\/src\/gtk\/mat-targets-gtkmat.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- mat-targets-gtkmat - Gtk target management\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Gtk.Widget;\nwith Gtkada.Builder;\npackage MAT.Targets.Gtkmat is\n\n type Target_Type is new MAT.Targets.Target_Type with private;\n\n -- Initialize the widgets and create the Gtk gui.\n procedure Initialize_Widget (Target : in out Target_Type;\n Widget : out Gtk.Widget.Gtk_Widget);\n\n -- Create a process instance to hold and keep track of memory and other information about\n -- the given process ID.\n overriding\n procedure Create_Process (Target : in out Target_Type;\n Pid : in MAT.Types.Target_Process_Ref;\n Path : in Ada.Strings.Unbounded.Unbounded_String;\n Process : out Target_Process_Type_Access);\n\nprivate\n\n type Target_Type is new MAT.Targets.Target_Type with record\n Builder : Gtkada.Builder.Gtkada_Builder;\n end record;\n\nend MAT.Targets.Gtkmat;\n","subject":"Define a targets package for the Gtk UI","message":"Define a targets package for the Gtk UI\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/mat,stcarrez\/mat,stcarrez\/mat"} {"commit":"84123815e19f71efe25504cfcbad0e4f6f9a9543","old_file":"regtests\/ado-datasets-tests.adb","new_file":"regtests\/ado-datasets-tests.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- ado-datasets-tests -- Test executing queries and using datasets\n-- Copyright (C) 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Util.Test_Caller;\nwith Util.Properties;\n\nwith Regtests.Simple.Model;\nwith ADO.Queries.Loaders;\npackage body ADO.Datasets.Tests is\n\n package Caller is new Util.Test_Caller (Test, \"ADO.Datasets\");\n\n package User_List_Query_File is\n new ADO.Queries.Loaders.File (Path => \"regtests\/files\/user-list.xml\",\n Sha1 => \"\");\n\n package User_List_Query is\n new ADO.Queries.Loaders.Query (Name => \"user-list\",\n File => User_List_Query_File.File'Access);\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite) is\n begin\n Caller.Add_Test (Suite, \"Test ADO.Datasets.List\",\n Test_List'Access);\n end Add_Tests;\n\n procedure Test_List (T : in out Test) is\n DB : ADO.Sessions.Master_Session := Regtests.Get_Master_Database;\n Query : ADO.Queries.Context;\n Data : ADO.Datasets.Dataset;\n Props : constant Util.Properties.Manager := Util.Tests.Get_Properties;\n begin\n -- Configure the XML query loader.\n ADO.Queries.Loaders.Initialize (Props.Get (\"ado.queries.paths\", \".;db\"),\n Props.Get (\"ado.queries.load\", \"false\") = \"true\");\n for I in 1 .. 100 loop\n declare\n User : Regtests.Simple.Model.User_Ref;\n begin\n User.Set_Name (\"John \" & Integer'Image (I));\n User.Set_Select_Name (\"test-list\");\n User.Set_Value (ADO.Identifier (I));\n User.Save (DB);\n end;\n end loop;\n DB.Commit;\n\n Query.Set_Query (User_List_Query.Query'Access);\n Query.Bind_Param (\"filter\", String '(\"test-list\"));\n ADO.Datasets.List (Data, DB, Query);\n Util.Tests.Assert_Equals (T, 100, Data.Get_Count, \"Invalid dataset size\");\n end Test_List;\n\nend ADO.Datasets.Tests;\n","subject":"Implement the unit test on datasets","message":"Implement the unit test on datasets\n","lang":"Ada","license":"apache-2.0","repos":"Letractively\/ada-ado"} {"commit":"8100b19dd2b2ab4959f75774ee95064c268bb3d7","old_file":"src\/babel-files-queues.adb","new_file":"src\/babel-files-queues.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- babel-files-queues -- File and directory queues\n-- Copyright (C) 2014 Stephane.Carrez\n-- Written by Stephane.Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Ada.Strings.Unbounded;\nwith Ada.Calendar;\nwith Ada.Directories;\nwith Ada.Containers.Vectors;\nwith Util.Encoders.SHA1;\nwith Util.Concurrent.Fifos;\nwith Util.Strings.Vectors;\nwith ADO;\nwith Babel.Base.Models;\npackage body Babel.Files.Queues is\n\n -- ------------------------------\n -- Returns true if there is a directory in the queue.\n -- ------------------------------\n function Has_Directory (Queue : in Directory_Queue) return Boolean is\n begin\n return not Queue.Directories.Is_Empty;\n end Has_Directory;\n\n -- ------------------------------\n -- Get the next directory from the queue.\n -- ------------------------------\n procedure Peek_Directory (Queue : in out Directory_Queue;\n Directory : out Directory_Type) is\n begin\n Directory := Queue.Directories.Last_Element;\n Queue.Directories.Delete_Last;\n end Peek_Directory;\n\nend Babel.Files.Queues;\n","subject":"Implement the Has_Directory and Peek_Directory operation for the Directory_Queue","message":"Implement the Has_Directory and Peek_Directory operation for the Directory_Queue\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/babel"} {"commit":"fb0065f3a78757517efd34e11c09a3b6481df38d","old_file":"src\/wiki-helpers-parser.adb","new_file":"src\/wiki-helpers-parser.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- wiki-helpers-parser -- Generic procedure for the wiki parser\n-- Copyright (C) 2016 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Wiki.Helpers;\nwith Wiki.Streams;\nprocedure Wiki.Helpers.Parser (Engine : in out Engine_Type;\n Content : in Element_Type;\n Doc : in out Wiki.Documents.Document) is\n\n use type Wiki.Streams.Input_Stream_Access;\n\n type Wide_Input is new Wiki.Streams.Input_Stream with record\n Pos : Positive;\n Len : Natural;\n end record;\n\n overriding\n procedure Read (Buf : in out Wide_Input;\n Token : out Wiki.Strings.WChar;\n Is_Eof : out Boolean);\n\n procedure Read (Buf : in out Wide_Input;\n Token : out Wiki.Strings.WChar;\n Is_Eof : out Boolean) is\n begin\n if Buf.Pos > Buf.Len then\n Is_Eof := True;\n Token := Wiki.Helpers.CR;\n else\n Token := Element (Content, Buf.Pos);\n Buf.Pos := Buf.Pos + 1;\n Is_Eof := False;\n end if;\n end Read;\n\n Buffer : aliased Wide_Input;\nbegin\n Buffer.Pos := 1;\n Buffer.Len := Length (Content);\n Parse (Engine, Buffer'Unchecked_Access, Doc);\nend Wiki.Helpers.Parser;\n\n\n","subject":"Implement the generic procedure Wiki.Helpers.Parser to allow easily provide a Parser with various content types","message":"Implement the generic procedure Wiki.Helpers.Parser to allow easily\nprovide a Parser with various content types\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-wiki,stcarrez\/ada-wiki"} {"commit":"4cb8bf1cae8997eeee3dde138a2579c1e1bd7d80","old_file":"awa\/plugins\/awa-counters\/src\/awa-counters-components.ads","new_file":"awa\/plugins\/awa-counters\/src\/awa-counters-components.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- awa-counters-components -- Counter UI component\n-- Copyright (C) 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith ASF.Factory;\nwith ASF.Contexts.Faces;\nwith ASF.Components.Html;\n\n-- == Counter Component ==\n--\npackage AWA.Counters.Components is\n\n type UICounter is new ASF.Components.Html.UIHtmlComponent with private;\n\n -- Render the counter component. Starts the DL\/DD list and write the input\n -- component with the possible associated error message.\n overriding\n procedure Encode_Begin (UI : in UICounter;\n Context : in out ASF.Contexts.Faces.Faces_Context'Class);\n\n -- Get the AWA Counter component factory.\n function Definition return ASF.Factory.Factory_Bindings_Access;\n\nprivate\n\n type UICounter is new ASF.Components.Html.UIHtmlComponent with null record;\n\nend AWA.Counters.Components;\n","subject":"Change the UICounter to use the UIHtmlComponent base type","message":"Change the UICounter to use the UIHtmlComponent base type\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa"} {"commit":"4a1aa56936cf5b0f32f33fd6d51002b0285171db","old_file":"src\/asis\/a4g-itests.ads","new_file":"src\/asis\/a4g-itests.ads","old_contents":"","new_contents":"------------------------------------------------------------------------------\n-- --\n-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --\n-- --\n-- A 4 G . I T E S T S --\n-- --\n-- S p e c --\n-- --\n-- Copyright (c) 1995-1999, Free Software Foundation, Inc. --\n-- --\n-- ASIS-for-GNAT is free software; you can redistribute it and\/or modify it --\n-- under terms of the GNU General Public License as published by the Free --\n-- Software Foundation; either version 2, or (at your option) any later --\n-- version. ASIS-for-GNAT is distributed in the hope that it will be use- --\n-- ful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- --\n-- CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General --\n-- Public License for more details. You should have received a copy of the --\n-- GNU General Public License distributed with ASIS-for-GNAT; see file --\n-- COPYING. If not, write to the Free Software Foundation, 59 Temple Place --\n-- - Suite 330, Boston, MA 02111-1307, USA. --\n-- --\n-- --\n-- --\n-- --\n-- --\n-- --\n-- --\n-- --\n-- ASIS-for-GNAT was originally developed by the ASIS-for-GNAT team at the --\n-- Software Engineering Laboratory of the Swiss Federal Institute of --\n-- Technology (LGL-EPFL) in Lausanne, Switzerland, in cooperation with the --\n-- Scientific Research Computer Center of Moscow State University (SRCC --\n-- MSU), Russia, with funding partially provided by grants from the Swiss --\n-- National Science Foundation and the Swiss Academy of Engineering --\n-- Sciences. ASIS-for-GNAT is now maintained by Ada Core Technologies Inc --\n-- (http:\/\/www.gnat.com). --\n-- --\n------------------------------------------------------------------------------\n\n-- This package defines tests for defining if an Element based on the\n-- given node should test Is_Implicit, Is_Inherited and Is_From_Instance\n\nwith Types; use Types;\n\npackage A4G.Itests is\n\n function Is_Inherited_Discriminant (N : Node_Id) return Boolean;\n -- Tests if N corresponds to the defining occurrence of an inherited\n -- discriminant. N should be of N_Defining_Identifier kind\n --\n -- INCOMPLETE and INRELIABLE for now!\n\n function Is_From_Instance (N : Node_Id) return Boolean;\n -- Tests if N corresponds to an implicit or explicit construction from\n -- the result of some generic instantiation (that is, from an expanded\n -- generic template)\n\nend A4G.Itests;\n","subject":"Add the ASIS file $i","message":"Add the ASIS file $i","lang":"Ada","license":"apache-2.0","repos":"Letractively\/ada-gen,Letractively\/ada-gen,Letractively\/ada-gen,Letractively\/ada-gen"} {"commit":"455313528c5043594b74c35289d782fc17a32af2","old_file":"src\/wiki-streams-html-stream.ads","new_file":"src\/wiki-streams-html-stream.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- wiki-streams-html-stream -- Generic Wiki HTML output stream\n-- Copyright (C) 2016, 2020 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Wiki.Strings;\n\ngeneric\n type Output_Stream is limited new Wiki.Streams.Output_Stream with private;\npackage Wiki.Streams.Html.Stream is\n\n type Html_Output_Stream is limited new Output_Stream\n and Html.Html_Output_Stream with private;\n\n -- Write an XML attribute within an XML element.\n -- The attribute value is escaped according to the XML escape rules.\n overriding\n procedure Write_Wide_Attribute (Stream : in out Html_Output_Stream;\n Name : in String;\n Content : in Wiki.Strings.UString);\n\n -- Write an XML attribute within an XML element.\n -- The attribute value is escaped according to the XML escape rules.\n overriding\n procedure Write_Wide_Attribute (Stream : in out Html_Output_Stream;\n Name : in String;\n Content : in Wide_Wide_String);\n\n -- Start an XML element with the given name.\n overriding\n procedure Start_Element (Stream : in out Html_Output_Stream;\n Name : in String);\n\n -- Closes an XML element of the given name.\n overriding\n procedure End_Element (Stream : in out Html_Output_Stream;\n Name : in String);\n\n -- Write a text escaping any character as necessary.\n overriding\n procedure Write_Wide_Text (Stream : in out Html_Output_Stream;\n Content : in Wiki.Strings.WString);\n\nprivate\n\n type Html_Output_Stream is limited new Output_Stream\n and Html.Html_Output_Stream with record\n -- Whether an XML element must be closed (that is a '>' is necessary)\n Close_Start : Boolean := False;\n end record;\n\nend Wiki.Streams.Html.Stream;\n","subject":"Refactor the HTML Text_IO stream into a generic package","message":"Refactor the HTML Text_IO stream into a generic package\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-wiki,stcarrez\/ada-wiki"} {"commit":"6d1eefae2d8522dfa8782c1a050674e450d7d7f4","old_file":"mat\/src\/readline\/readline.ads","new_file":"mat\/src\/readline\/readline.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- readline -- A simple readline binding\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Interfaces;\npackage Readline is\n\n -- Print the prompt and a read a line from the terminal.\n -- Raise the Ada.IO_Exceptions.End_Error when the EOF is reached.\n function Get_Line (Prompt : in String) return String;\n\nend Readline;\n","subject":"Define the Readline package with the Get_Line operation","message":"Define the Readline package with the Get_Line operation\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/mat,stcarrez\/mat,stcarrez\/mat"} {"commit":"8b5b8d763f4a8bc71f0e2523cab116d49c5c27a9","old_file":"src\/asis\/asis-exceptions.ads","new_file":"src\/asis\/asis-exceptions.ads","old_contents":"","new_contents":"------------------------------------------------------------------------------\n-- --\n-- ASIS-for-GNAT INTERFACE COMPONENTS --\n-- --\n-- A S I S . E X C E P T I O N S --\n-- --\n-- S p e c --\n-- --\n-- $Revision: 14416 $\n-- --\n-- This specification is adapted from the Ada Semantic Interface --\n-- Specification Standard (ISO\/IEC 15291) for use with GNAT. In accordance --\n-- with the copyright of that document, you can freely copy and modify this --\n-- specification, provided that if you redistribute a modified version, any --\n-- changes that you have made are clearly indicated. --\n-- --\n------------------------------------------------------------------------------\n\n------------------------------------------------------------------------------\n-- 5 package Asis.Exceptions\n------------------------------------------------------------------------------\n------------------------------------------------------------------------------\npackage Asis.Exceptions is\n------------------------------------------------------------------------------\n------------------------------------------------------------------------------\n-- ASIS exceptions are:\n\n ASIS_Inappropriate_Context : exception;\n\n------------------------------------------------------------------------------\n-- Raised when ASIS is passed a Context value that is not appropriate for the\n-- operation. This exception will typically indicate that a user error\n-- has occurred within the application.\n------------------------------------------------------------------------------\n\n ASIS_Inappropriate_Container : exception;\n\n------------------------------------------------------------------------------\n-- Raised when ASIS is passed a Container value that is not appropriate for\n-- the operation. This exception will typically indicate that a user error\n-- has occurred within the application.\n------------------------------------------------------------------------------\n\n ASIS_Inappropriate_Compilation_Unit : exception;\n\n------------------------------------------------------------------------------\n-- Raised when ASIS is passed a Compilation_Unit value that is not\n-- appropriate. This exception will typically indicate that a user\n-- error has occurred within the application.\n------------------------------------------------------------------------------\n\n ASIS_Inappropriate_Element : exception;\n\n------------------------------------------------------------------------------\n-- Raised when ASIS is given an Element value that is not appropriate. This\n-- exception will typically indicate that a user error has occurred within\n-- the application.\n------------------------------------------------------------------------------\n\n ASIS_Inappropriate_Line : exception;\n\n------------------------------------------------------------------------------\n-- Raised when ASIS is given a Line value that is not appropriate.\n------------------------------------------------------------------------------\n\n ASIS_Inappropriate_Line_Number : exception;\n\n------------------------------------------------------------------------------\n-- Raised when ASIS is given a Line_Number value that is not appropriate.\n-- This exception will typically indicate that a user error has occurred\n-- within the application.\n------------------------------------------------------------------------------\n\n ASIS_Failed : exception;\n\n------------------------------------------------------------------------------\n-- This is a catch-all exception that may be raised for different reasons\n-- in different ASIS implementations. All ASIS routines may raise ASIS_Failed\n-- whenever they cannot normally complete their operation. This exception\n-- will typically indicate a failure of the underlying ASIS implementation.\n------------------------------------------------------------------------------\nend Asis.Exceptions;\n","subject":"Add the ASIS file $i","message":"Add the ASIS file $i\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/dynamo,stcarrez\/dynamo,stcarrez\/dynamo"} {"commit":"cf9de94b13f8447306f4e72e7cf1dd0f23a7b00b","old_file":"matp\/src\/mat-interrupts.adb","new_file":"matp\/src\/mat-interrupts.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- mat-interrupts - SIGINT management to stop long running commands\n-- Copyright (C) 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Ada.Interrupts;\nwith Ada.Interrupts.Names;\n\nwith Util.Log.Loggers;\npackage body MAT.Interrupts is\n\n pragma Interrupt_State (Name => Ada.Interrupts.Names.SIGINT,\n State => USER);\n\n -- The logger\n Log : constant Util.Log.Loggers.Logger := Util.Log.Loggers.Create (\"MAT.Interrupts\");\n\n protected Interrupts is\n procedure Interrupt;\n pragma Interrupt_Handler (Interrupt);\n\n function Is_Interrupted return Boolean;\n\n procedure Clear;\n\n private\n Interrupted : Boolean;\n end Interrupts;\n\n protected body Interrupts is\n\n function Is_Interrupted return Boolean is\n begin\n return Interrupted;\n end Is_Interrupted;\n\n procedure Clear is\n begin\n Interrupted := False;\n end Clear;\n\n procedure Interrupt is\n begin\n Interrupted := True;\n Log.Info (\"SIGINT signal received\");\n end Interrupt;\n\n end Interrupts;\n\n -- ------------------------------\n -- Install the SIGINT handler.\n -- ------------------------------\n procedure Install is\n begin\n Ada.Interrupts.Attach_Handler (Interrupts.Interrupt'Access,\n Ada.Interrupts.Names.SIGINT);\n Log.Info (\"Interrupt handler for SIGINT is installed\");\n end Install;\n\n -- ------------------------------\n -- Reset the interrupted flag.\n -- ------------------------------\n procedure Clear is\n begin\n Interrupts.Clear;\n end Clear;\n\n -- ------------------------------\n -- Check if we have been interrupted.\n -- ------------------------------\n function Is_Interrupted return Boolean is\n begin\n return Interrupts.Is_Interrupted;\n end Is_Interrupted;\n\nend MAT.Interrupts;\n","subject":"Implement the SIGINT interrupt handler with operations to install, check and clear the interrupt flag","message":"Implement the SIGINT interrupt handler with operations to install, check\nand clear the interrupt flag\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/mat,stcarrez\/mat,stcarrez\/mat"} {"commit":"e0c0d518354777d494bb839fd96c92b6cf20cbd1","old_file":"src\/wiki-plugins-variables.adb","new_file":"src\/wiki-plugins-variables.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- wiki-plugins-variables -- Variables plugin\n-- Copyright (C) 2020 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Wiki.Filters.Variables;\npackage body Wiki.Plugins.Variables is\n\n -- ------------------------------\n -- Set or update a variable in the `Wiki.Filters.Variable` filter.\n -- ------------------------------\n overriding\n procedure Expand (Plugin : in out Variable_Plugin;\n Document : in out Wiki.Documents.Document;\n Params : in out Wiki.Attributes.Attribute_List;\n Context : in Plugin_Context) is\n pragma Unreferenced (Plugin, Document);\n begin\n if Wiki.Attributes.Length (Params) >= 3 then\n declare\n First : Wiki.Attributes.Cursor := Wiki.Attributes.First (Params);\n Second : Wiki.Attributes.Cursor;\n begin\n Wiki.Attributes.Next (First);\n Second := First;\n Wiki.Attributes.Next (Second);\n Wiki.Filters.Variables.Add_Variable (Context.Filters,\n Wiki.Attributes.Get_Wide_Value (First),\n Wiki.Attributes.Get_Wide_Value (Second));\n end;\n end if;\n end Expand;\n\nend Wiki.Plugins.Variables;\n","subject":"Implement the variables plugin to set variables from wiki text","message":"Implement the variables plugin to set variables from wiki text\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-wiki,stcarrez\/ada-wiki"} {"commit":"a824bdb40f380bc024645528b141559565b31ea8","old_file":"regtests\/asf-navigations-tests.ads","new_file":"regtests\/asf-navigations-tests.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- asf-navigations-tests - Tests for ASF navigation\n-- Copyright (C) 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\n\npackage ASF.Navigations.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n -- Initialize the test application\n overriding\n procedure Set_Up (T : in out Test);\n\n -- Test a form navigation with an exact match (view, outcome, action).\n procedure Test_Exact_Navigation (T : in out Test);\n\n -- Test a form navigation with a partial match (view, outcome).\n procedure Test_Partial_Navigation (T : in out Test);\n\n -- Test a form navigation with a exception match (view, outcome).\n procedure Test_Exception_Navigation (T : in out Test);\n\n -- Check the navigation for an URI and expect the result to match the regular expression.\n procedure Check_Navigation (T : in out Test;\n Name : in String;\n Match : in String;\n Raise_Flag : in Boolean := False);\n\nend ASF.Navigations.Tests;\n","subject":"Add navigation rule unit test","message":"Add navigation rule unit test","lang":"Ada","license":"apache-2.0","repos":"Letractively\/ada-asf,Letractively\/ada-asf,Letractively\/ada-asf"} {"commit":"732dd630adec0c350cc988743f6fa08efb2d87e8","old_file":"regtests\/util-properties-form-tests.adb","new_file":"regtests\/util-properties-form-tests.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- util-properties-form-tests -- Test reading JSON file into properties\n-- Copyright (C) 2020 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Test_Caller;\nwith Util.Files;\npackage body Util.Properties.Form.Tests is\n\n package Caller is new Util.Test_Caller (Test, \"Properties.Properties.Form\");\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite) is\n begin\n Caller.Add_Test (Suite, \"Test Util.Properties.Form.Parse_Form\",\n Test_Parse_Form'Access);\n end Add_Tests;\n\n -- Test loading a JSON file into a properties object.\n procedure Test_Parse_Form (T : in out Test) is\n procedure Check (Name : in String;\n Value : in String);\n\n P : Util.Properties.Manager;\n\n procedure Check (Name : in String;\n Value : in String) is\n begin\n T.Assert (P.Exists (Name), \"Missing property: \" & Name);\n Util.Tests.Assert_Equals (T, Value, String '(P.Get (Name)),\n \"Invalid property: \" & Name);\n end Check;\n\n Path : constant String := Util.Tests.Get_Test_Path (\"regtests\/files\/test-1.form\");\n S : Ada.Strings.Unbounded.Unbounded_String;\n begin\n Util.Files.Read_File (Path, S);\n Util.Properties.Form.Parse_Form (P, Ada.Strings.Unbounded.To_String (S));\n\n Check (\"access_token\", \"97356\");\n Check (\"token_type\", \"bearer\");\n Check (\"refresh_token_expires_in\", \"15724800\");\n Check (\"refresh_token\", \"r1.714b6\");\n Check (\"scope\", \"\");\n Check (\"scope\", \"\");\n end Test_Parse_Form;\n\nend Util.Properties.Form.Tests;\n","subject":"Implement new test for Parse_Form and register it for execution","message":"Implement new test for Parse_Form and register it for execution\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"678225b830678911d6f6ed9a1bca01d5fe4474a7","old_file":"regtests\/babel-base-users-tests.adb","new_file":"regtests\/babel-base-users-tests.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- babel-base-users-tests - Unit tests for babel users\n-- Copyright (C) 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Util.Test_Caller;\n\npackage body Babel.Base.Users.Tests is\n\n use type Util.Strings.Name_Access;\n\n package Caller is new Util.Test_Caller (Test, \"Base.Users\");\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite) is\n begin\n Caller.Add_Test (Suite, \"Test Babel.Base.Users.Find\",\n Test_Find'Access);\n end Add_Tests;\n\n -- ------------------------------\n -- Test the Find function resolving some existing user.\n -- ------------------------------\n procedure Test_Find (T : in out Test) is\n Db : Babel.Base.Users.Database;\n User : User_Type;\n begin\n User := Db.Find (0, 0);\n T.Assert (User.Name \/= null, \"User uid=0 was not found\");\n T.Assert (User.Group \/= null, \"User gid=0 was not found\");\n Util.Tests.Assert_Equals (T, \"root\", User.Name.all, \"Invalid root user name\");\n Util.Tests.Assert_Equals (T, \"root\", User.Group.all, \"Invalid root group name\");\n end Test_Find;\n\nend Babel.Base.Users.Tests;\n","subject":"Implement a simple unit test for the Find operation","message":"Implement a simple unit test for the Find operation\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/babel"} {"commit":"436af7a953dfbbfc83e436f099111fdf92598e97","old_file":"src\/asf-components-widgets-factory.adb","new_file":"src\/asf-components-widgets-factory.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\r\n-- widgets-factory -- Factory for widget Components\r\n-- Copyright (C) 2013 Stephane Carrez\r\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\r\n--\r\n-- Licensed under the Apache License, Version 2.0 (the \"License\");\r\n-- you may not use this file except in compliance with the License.\r\n-- You may obtain a copy of the License at\r\n--\r\n-- http:\/\/www.apache.org\/licenses\/LICENSE-2.0\r\n--\r\n-- Unless required by applicable law or agreed to in writing, software\r\n-- distributed under the License is distributed on an \"AS IS\" BASIS,\r\n-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n-- See the License for the specific language governing permissions and\r\n-- limitations under the License.\r\n-----------------------------------------------------------------------\r\nwith ASF.Views.Nodes;\r\nwith ASF.Components.Base;\r\nwith ASF.Components.Widgets.Inputs;\r\n\r\npackage body ASF.Components.Widgets.Factory is\r\n\r\n use ASF.Components.Base;\r\n\r\n function Create_Input return UIComponent_Access;\r\n\r\n -- -------------------------\r\n -- ------------------------------\r\n -- Create a UIFile component\r\n -- ------------------------------\r\n function Create_Input return UIComponent_Access is\r\n begin\r\n return new ASF.Components.Widgets.Inputs.UIInput;\r\n end Create_Input;\r\n\r\n use ASF.Views.Nodes;\r\n\r\n URI : aliased constant String := \"http:\/\/code.google.com\/p\/ada-asf\/widget\";\r\n INPUT_TEXT_TAG : aliased constant String := \"inputText\";\r\n\r\n Widget_Bindings : aliased constant ASF.Factory.Binding_Array\r\n := (1 => (Name => INPUT_TEXT_TAG'Access,\r\n Component => Create_Input'Access,\r\n Tag => Create_Component_Node'Access)\r\n );\r\n\r\n Core_Factory : aliased constant ASF.Factory.Factory_Bindings\r\n := (URI => URI'Access, Bindings => Widget_Bindings'Access);\r\n\r\n -- ------------------------------\r\n -- Get the widget component factory.\r\n -- ------------------------------\r\n function Definition return ASF.Factory.Factory_Bindings_Access is\r\n begin\r\n return Core_Factory'Access;\r\n end Definition;\r\n\r\nend ASF.Components.Widgets.Factory;\r\n","subject":"Implement the widget component factory","message":"Implement the widget component factory\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-asf,stcarrez\/ada-asf,stcarrez\/ada-asf"} {"commit":"2e225359ac059445f4b90c7a3c4b7c1ed7238fe3","old_file":"matp\/src\/events\/mat-events-tools.adb","new_file":"matp\/src\/events\/mat-events-tools.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- mat-events-tools - Profiler Events Description\n-- Copyright (C) 2014, 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\npackage body MAT.Events.Tools is\n\n -- ------------------------------\n -- Find in the list the first event with the given type.\n -- Raise Not_Found<\/tt> if the list does not contain such event.\n -- ------------------------------\n function Find (List : in Target_Event_Vector;\n Kind : in Probe_Index_Type) return Target_Event_Type is\n Iter : Target_Event_Cursor := List.First;\n Event : Target_Event_Type;\n begin\n while Target_Event_Vectors.Has_Element (Iter) loop\n Event := Target_Event_Vectors.Element (Iter);\n if Event.Index = Kind then\n return Event;\n end if;\n Target_Event_Vectors.Next (Iter);\n end loop;\n raise Not_Found;\n end Find;\n\n\nend MAT.Events.Tools;\n","subject":"Implement the MAT.Events.Tools package with the Find operation","message":"Implement the MAT.Events.Tools package with the Find operation\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/mat,stcarrez\/mat,stcarrez\/mat"} {"commit":"4c85c10ca64cac1b8e22c32bf092436c17d71d82","old_file":"mat\/src\/memory\/mat-memory-readers.ads","new_file":"mat\/src\/memory\/mat-memory-readers.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- Memory Events - Definition and Analysis of memory events\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith MAT.Types;\nwith MAT.Events;\n-- with MAT.Ipc;\nwith Util.Events;\nwith MAT.Readers;\nwith MAT.Memory.Targets;\n-- with MAT.Memory.Clients;\n-- with MAT.Ipc.Clients;\n-- with MAT.Events; use MAT.Events;\npackage MAT.Memory.Readers is\n\n type Memory_Servant is new MAT.Readers.Reader_Base with record\n Data : MAT.Memory.Targets.Client_Memory;\n-- Slots : Client_Memory_Ref;\n-- Impl : Client_Memory_Ref;\n end record;\n -- The memory servant is a proxy for the generic communication\n -- channel to process incomming events (such as memory allocations).\n\n overriding\n procedure Dispatch (For_Servant : in out Memory_Servant;\n Id : in MAT.Events.Internal_Reference;\n Params : in MAT.Events.Const_Attribute_Table_Access;\n Msg : in out MAT.Readers.Message);\n\n procedure Bind (For_Servant : in out Memory_Servant);\n -- Bind the servant with the object adapter to register the\n -- events it recognizes.\n\nend MAT.Memory.Readers;\n","subject":"Package to read the memory events","message":"Package to read the memory events\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/mat,stcarrez\/mat,stcarrez\/mat"} {"commit":"b5e48cc3525fbcfc2c2671236be8e98a5a0ba0d3","old_file":"src\/asf-rest-definition.adb","new_file":"src\/asf-rest-definition.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- asf-rest -- REST Support\n-- Copyright (C) 2016 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage body ASF.Rest.Definition is\n\n overriding\n procedure Dispatch (Handler : in Descriptor;\n Req : in out ASF.Rest.Request'Class;\n Reply : in out ASF.Rest.Response'Class) is\n Object : Object_Type;\n begin\n Handler.Handler (Object, Req, Reply);\n end Dispatch;\n\n package body Definition is\n P : aliased String := Pattern;\n begin\n Instance.Method := Method;\n Instance.Permission := Permission;\n Instance.Handler := Handler;\n Instance.Pattern := P'Access;\n ASF.Rest.Register (Entries, Instance'Access);\n end Definition;\n\nend ASF.Rest.Definition;\n","subject":"Implement the Rest definition package to dispatch the request to the API handler","message":"Implement the Rest definition package to dispatch the request to the API handler\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-asf,stcarrez\/ada-asf,stcarrez\/ada-asf"} {"commit":"5412d9facbf5cf8b5a280be79bb9dee9a44d6889","old_file":"mat\/regtests\/mat-expressions-tests.ads","new_file":"mat\/regtests\/mat-expressions-tests.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- mat-expressions-tests -- Unit tests for MAT expressions\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\n\npackage MAT.Expressions.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n procedure Test_Parse_Expression (T : in out Test);\n\nend MAT.Expressions.Tests;\n","subject":"Add unit tests for MAT.Expressions","message":"Add unit tests for MAT.Expressions\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/mat,stcarrez\/mat,stcarrez\/mat"} {"commit":"9dd3130f9fbb5ad2d6fc00420eabfc60f05fe84d","old_file":"awa\/plugins\/awa-counters\/src\/awa-counters-definition.ads","new_file":"awa\/plugins\/awa-counters\/src\/awa-counters-definition.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- awa-counters-definition -- Counter definition\n-- Copyright (C) 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-- The AWA.Counters.Definition<\/tt> package is instantiated for each counter definition.\ngeneric\n Table : ADO.Schemas.Class_Mapping_Access;\n Field : String;\npackage AWA.Counters.Definition is\n\n Def_Name : aliased constant String := Field;\n\n package Def is new Counter_Arrays.Definition (Counter_Def '(Table, Def_Name'Access));\n\n -- Get the counter definition index.\n function Index return Counter_Index_Type renames Def.Kind;\n\nend AWA.Counters.Definition;\n","subject":"Define the generic package for a counter definition","message":"Define the generic package for a counter definition\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa"} {"commit":"edd174bcca7ded13835bc622b01ff1380cbc4dea","old_file":"test\/AdaFrontend\/vce.adb","new_file":"test\/AdaFrontend\/vce.adb","old_contents":"","new_contents":"-- RUN: %llvmgcc -c %s -o \/dev\/null\nprocedure VCE is\n S : String (1 .. 2);\n B : Character := 'B';\nbegin\n S := 'A' & B;\nend;\n","subject":"Test that the size of a view converted object is determined by the target type, not the source type.","message":"Test that the size of a view converted object is determined by the target\ntype, not the source type.\n\n\ngit-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@35106 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"Ada","license":"apache-2.0","repos":"llvm-mirror\/llvm,dslab-epfl\/asap,apple\/swift-llvm,GPUOpen-Drivers\/llvm,apple\/swift-llvm,chubbymaggie\/asap,dslab-epfl\/asap,apple\/swift-llvm,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,chubbymaggie\/asap,apple\/swift-llvm,dslab-epfl\/asap,dslab-epfl\/asap,llvm-mirror\/llvm,apple\/swift-llvm,chubbymaggie\/asap,llvm-mirror\/llvm,dslab-epfl\/asap,chubbymaggie\/asap,apple\/swift-llvm,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,apple\/swift-llvm,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,chubbymaggie\/asap,apple\/swift-llvm,llvm-mirror\/llvm,chubbymaggie\/asap,GPUOpen-Drivers\/llvm,dslab-epfl\/asap"} {"commit":"daf4b5c5cec0dae4e79c4d68f52d685223a7c729","old_file":"src\/asf-components-widgets-gravatars.ads","new_file":"src\/asf-components-widgets-gravatars.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- components-widgets-gravatars -- Gravatar Components\n-- Copyright (C) 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith ASF.Components.Html;\nwith ASF.Contexts.Faces;\npackage ASF.Components.Widgets.Gravatars is\n\n -- Given an Email address, return the Gravatar link to the user image.\n -- (See http:\/\/en.gravatar.com\/site\/implement\/hash\/ and\n -- http:\/\/en.gravatar.com\/site\/implement\/images\/)\n function Get_Link (Email : in String;\n Secure : in Boolean := False) return String;\n\n -- ------------------------------\n -- UIGravatar\n -- ------------------------------\n -- The UIGravatar<\/b> component displays a small image whose link is created\n -- from a user email address.\n type UIGravatar is new ASF.Components.Html.UIHtmlComponent with null record;\n\n -- Render an image with the source link created from an email address to the Gravatars service.\n overriding\n procedure Encode_Begin (UI : in UIGravatar;\n Context : in out ASF.Contexts.Faces.Faces_Context'Class);\n\nend ASF.Components.Widgets.Gravatars;\n","subject":"Define the gravatar UI component","message":"Define the gravatar UI component\n","lang":"Ada","license":"apache-2.0","repos":"Letractively\/ada-asf,Letractively\/ada-asf,Letractively\/ada-asf"} {"commit":"820003ded1b4a142d19221523fc9d06ef0a38f31","old_file":"regtests\/wiki-filters-html-tests.ads","new_file":"regtests\/wiki-filters-html-tests.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- wiki-filters-html-tests -- Unit tests for wiki HTML filters\n-- Copyright (C) 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\n\npackage Wiki.Filters.Html.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n -- Test Find_Tag operation.\n procedure Test_Find_Tag (T : in out Test);\n\nend Wiki.Filters.Html.Tests;\n","subject":"Add a unit test for HTML filter internals","message":"Add a unit test for HTML filter internals\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-wiki,stcarrez\/ada-wiki"} {"commit":"887839d755e172fd6e8560acc456e97ef2d4ba5f","old_file":"test\/AdaFrontend\/array_range_ref.adb","new_file":"test\/AdaFrontend\/array_range_ref.adb","old_contents":"","new_contents":"-- RUN: %llvmgcc -c %s -o \/dev\/null\nprocedure Array_Range_Ref is\n A : String (1 .. 3);\n B : String := A (A'RANGE)(1 .. 3);\nbegin\n null;\nend;\n","subject":"Test that ARRAY_RANGE_REF returns an array not an element.","message":"Test that ARRAY_RANGE_REF returns an array not an element.\n\n\ngit-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@35209 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"Ada","license":"apache-2.0","repos":"llvm-mirror\/llvm,apple\/swift-llvm,apple\/swift-llvm,llvm-mirror\/llvm,chubbymaggie\/asap,apple\/swift-llvm,chubbymaggie\/asap,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,chubbymaggie\/asap,dslab-epfl\/asap,GPUOpen-Drivers\/llvm,chubbymaggie\/asap,dslab-epfl\/asap,apple\/swift-llvm,llvm-mirror\/llvm,apple\/swift-llvm,llvm-mirror\/llvm,apple\/swift-llvm,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,apple\/swift-llvm,chubbymaggie\/asap,apple\/swift-llvm,dslab-epfl\/asap,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,GPUOpen-Drivers\/llvm,chubbymaggie\/asap,llvm-mirror\/llvm,llvm-mirror\/llvm,llvm-mirror\/llvm,llvm-mirror\/llvm,dslab-epfl\/asap"} {"commit":"94eb9c33db2894a82e1828820a42941564aef8a2","old_file":"src\/asf-rest-operation.ads","new_file":"src\/asf-rest-operation.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- asf-rest-operation -- REST API Operation Definition\n-- Copyright (C) 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\ngeneric\n Handler : Operation_Access;\n Method : Method_Type := GET;\n URI : String;\n Permission : Security.Permissions.Permission_Index := Security.Permissions.NONE;\npackage ASF.Rest.Operation is\n\n function Definition return Descriptor_Access;\n\nend ASF.Rest.Operation;\n","subject":"Define new generic package for the REST API definition","message":"Define new generic package for the REST API definition\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-asf,stcarrez\/ada-asf,stcarrez\/ada-asf"} {"commit":"681b412f80de32a5714cd70e22176fab026d3f01","old_file":"src\/asis\/a4g-span_end.ads","new_file":"src\/asis\/a4g-span_end.ads","old_contents":"","new_contents":"------------------------------------------------------------------------------\n-- --\n-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --\n-- --\n-- A 4 G . S P A N _ E N D --\n-- --\n-- S p e c --\n-- --\n-- Copyright (c) 1995-1999, Free Software Foundation, Inc. --\n-- --\n-- ASIS-for-GNAT is free software; you can redistribute it and\/or modify it --\n-- under terms of the GNU General Public License as published by the Free --\n-- Software Foundation; either version 2, or (at your option) any later --\n-- version. ASIS-for-GNAT is distributed in the hope that it will be use- --\n-- ful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- --\n-- CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General --\n-- Public License for more details. You should have received a copy of the --\n-- GNU General Public License distributed with ASIS-for-GNAT; see file --\n-- COPYING. If not, write to the Free Software Foundation, 59 Temple Place --\n-- - Suite 330, Boston, MA 02111-1307, USA. --\n-- --\n-- --\n-- --\n-- --\n-- --\n-- --\n-- --\n-- --\n-- ASIS-for-GNAT was originally developed by the ASIS-for-GNAT team at the --\n-- Software Engineering Laboratory of the Swiss Federal Institute of --\n-- Technology (LGL-EPFL) in Lausanne, Switzerland, in cooperation with the --\n-- Scientific Research Computer Center of Moscow State University (SRCC --\n-- MSU), Russia, with funding partially provided by grants from the Swiss --\n-- National Science Foundation and the Swiss Academy of Engineering --\n-- Sciences. ASIS-for-GNAT is now maintained by Ada Core Technologies Inc --\n-- (http:\/\/www.gnat.com). --\n-- --\n------------------------------------------------------------------------------\n\nwith Asis; use Asis;\n\nwith Types; use Types;\n\npackage A4G.Span_End is\n\n -- This package encapsulates queries needed to find the end of Element's\n -- Span (as the pointer to the Source Buffer).\n\n function Set_Image_End (E : Asis.Element) return Source_Ptr;\n -- This is the main function in this package. It returns the pointer\n -- to the last character of the given element in the Source Buffer\n\nend A4G.Span_End;\n","subject":"Add the ASIS file $i","message":"Add the ASIS file $i\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/dynamo,stcarrez\/dynamo,stcarrez\/dynamo"} {"commit":"1ab3dcf5e3d63d16fd4ada43368f9b329980abf0","old_file":"regtests\/util-mail-tests.adb","new_file":"regtests\/util-mail-tests.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- util-mail-tests -- Unit tests for mail\n-- Copyright (C) 2018 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Test_Caller;\n\npackage body Util.Mail.Tests is\n\n package Caller is new Util.Test_Caller (Test, \"Strings\");\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite) is\n begin\n Caller.Add_Test (Suite, \"Test Util.Mail.Parse_Address\",\n Test_Parse_Address'Access);\n end Add_Tests;\n\n procedure Test_Parse_Address (T : in out Test) is\n use Ada.Strings.Unbounded;\n\n procedure Check (Value : in String;\n Name : in String;\n Email : in String);\n procedure Check (Value : in String;\n Name : in String;\n Email : in String) is\n A : constant Email_Address := Parse_Address (Value);\n begin\n Util.Tests.Assert_Equals (T, Name, To_String (A.Name),\n \"Invalid name for: \" & Value);\n Util.Tests.Assert_Equals (T, Email, To_String (A.Address),\n \"Invalid email for: \" & Value);\n end Check;\n\n begin\n Check (\"Luke Jedi \", \"Luke Jedi\", \"Luke@skywalker.universe\");\n Check (\" \", \"Anakin\", \"Anakin@skywalker.universe\");\n Check (\" Vador@skywalker.universe \", \"Vador\", \"Vador@skywalker.universe\");\n end Test_Parse_Address;\n\nend Util.Mail.Tests;\n","subject":"Implement new unit test for Parse_Address","message":"Implement new unit test for Parse_Address\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"6fc616d2b2a06cbdbb14291f233472668026d168","old_file":"regtests\/security-oauth-clients-tests.ads","new_file":"regtests\/security-oauth-clients-tests.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- Security-oauth-clients-tests - Unit tests for OAuth\n-- Copyright (C) 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\n\npackage Security.OAuth.Clients.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n -- Test Create_Nonce operation.\n procedure Test_Create_Nonce (T : in out Test);\n\nend Security.OAuth.Clients.Tests;\n","subject":"Add OAuth client unit tests","message":"Add OAuth client unit tests\n","lang":"Ada","license":"apache-2.0","repos":"Letractively\/ada-security"} {"commit":"8642486eff375a6c2b875423157f09a78a311aa9","old_file":"src\/asf-parts-upload_method.ads","new_file":"src\/asf-parts-upload_method.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- asf-parts -- ASF Parts\n-- Copyright (C) 2011, 2012 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith EL.Methods.Proc_In;\n\npackage ASF.Parts.Upload_Method is\n new EL.Methods.Proc_In (Param1_Type => ASF.Parts.Part'Class);\n","subject":"Define a method and binding for an Ada bean to receive an uploaded file","message":"Define a method and binding for an Ada bean to receive an uploaded file\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-asf,stcarrez\/ada-asf,stcarrez\/ada-asf"} {"commit":"acb5908775e0ec0c3c897b1f0296d55c3db9f8ff","old_file":"testutil\/aunit\/util-test_caller.adb","new_file":"testutil\/aunit\/util-test_caller.adb","old_contents":"-----------------------------------------------------------------------\n-- AUnit utils - Helper for writing unit tests\n-- Copyright (C) 2009, 2010, 2011 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage body Util.Test_Caller is\n\n procedure Add_Test (Suite : in Util.Tests.Access_Test_Suite;\n Test_Name : in String;\n Method : in Caller.Test_Method) is\n begin\n Suite.Add_Test (Caller.Create (Test_Name, Method));\n end Add_Test;\n\nend Util.Test_Caller;\n","new_contents":"-----------------------------------------------------------------------\n-- AUnit utils - Helper for writing unit tests\n-- Copyright (C) 2009, 2010, 2011, 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage body Util.Test_Caller is\n\n procedure Add_Test (Suite : in Util.Tests.Access_Test_Suite;\n Test_Name : in String;\n Method : in Caller.Test_Method) is\n begin\n if Util.Tests.Is_Test_Enabled (Test_Name) then\n Suite.Add_Test (Caller.Create (Test_Name, Method));\n end if;\n end Add_Test;\n\nend Util.Test_Caller;\n","subject":"Use the Is_Test_Enabled function to ignore or take into account the test when it is added in the testsuite.","message":"Use the Is_Test_Enabled function to ignore or take into account the\ntest when it is added in the testsuite.\n","lang":"Ada","license":"apache-2.0","repos":"Letractively\/ada-util,Letractively\/ada-util,flottokarotto\/ada-util,flottokarotto\/ada-util"} {"commit":"bf4a56cf8ab8938f28d3fd822a4f59d84c8a2190","old_file":"src\/wiki-utils.adb","new_file":"src\/wiki-utils.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- wiki-utils -- Wiki utility operations\n-- Copyright (C) 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Wiki.Render.Text;\nwith Wiki.Render.Html;\nwith Wiki.Writers.Builders;\npackage body Wiki.Utils is\n\n -- ------------------------------\n -- Render the wiki text according to the wiki syntax in HTML into a string.\n -- ------------------------------\n function To_Html (Text : in Wide_Wide_String;\n Syntax : in Wiki.Parsers.Wiki_Syntax_Type) return String is\n Writer : aliased Wiki.Writers.Builders.Html_Writer_Type;\n Renderer : aliased Wiki.Render.Html.Html_Writer;\n begin\n Renderer.Set_Writer (Writer'Unchecked_Access);\n Wiki.Parsers.Parse (Renderer'Unchecked_Access, Text, Syntax);\n return Writer.To_String;\n end To_Html;\n\n -- ------------------------------\n -- Render the wiki text according to the wiki syntax in text into a string.\n -- Wiki formatting and decoration are removed.\n -- ------------------------------\n function To_Text (Text : in Wide_Wide_String;\n Syntax : in Wiki.Parsers.Wiki_Syntax_Type) return String is\n Writer : aliased Wiki.Writers.Builders.Writer_Builder_Type;\n Renderer : aliased Wiki.Render.Text.Text_Renderer;\n begin\n Renderer.Set_Writer (Writer'Unchecked_Access);\n Wiki.Parsers.Parse (Renderer'Unchecked_Access, Text, Syntax);\n return Writer.To_String;\n end To_Text;\n\nend Wiki.Utils;\n","subject":"Implement the To_Html and To_Text functions","message":"Implement the To_Html and To_Text functions\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-wiki,stcarrez\/ada-wiki"} {"commit":"706a072ee124b2438fb1d3d6b6be29e9da1c52c3","old_file":"src\/asf-components-widgets-factory.ads","new_file":"src\/asf-components-widgets-factory.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- widgets-factory -- Factory for widget Components\n-- Copyright (C) 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith ASF.Factory;\n\npackage ASF.Components.Widgets.Factory is\n\n -- Get the widget component factory.\n function Definition return ASF.Factory.Factory_Bindings_Access;\n\nend ASF.Components.Widgets.Factory;\n","subject":"Define the factory for the creation of widget components","message":"Define the factory for the creation of widget components\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-asf,stcarrez\/ada-asf,stcarrez\/ada-asf"} {"commit":"ba81cf12b19410c8883501faf698f519205cf35e","old_file":"src\/wiki-nodes-lists.ads","new_file":"src\/wiki-nodes-lists.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- wiki-nodes-lists -- Wiki Document Internal representation\n-- Copyright (C) 2016, 2019 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Util.Refs;\n\npackage Wiki.Nodes.Lists is\n\n pragma Preelaborate;\n\n package Node_List_Refs is new Util.Refs.General_References (Node_List, Finalize);\n\n type Node_List_Ref is new Node_List_Refs.Ref with null record;\n\n -- Append a node to the node list.\n procedure Append (Into : in out Node_List_Ref;\n Node : in Node_Type_Access);\n\n -- Iterate over the nodes of the list and call the Process<\/tt> procedure with\n -- each node instance.\n procedure Iterate (List : in Node_List_Access;\n Process : not null access procedure (Node : in Node_Type));\n\n -- Iterate over the nodes of the list and call the Process<\/tt> procedure with\n -- each node instance.\n procedure Iterate (List : in Node_List_Ref;\n Process : not null access procedure (Node : in Node_Type));\n\n -- Returns True if the list reference is empty.\n function Is_Empty (List : in Node_List_Ref) return Boolean;\n\n -- Get the number of nodes in the list.\n function Length (List : in Node_List_Ref) return Natural;\n\nprivate\n\n subtype Node_List_Accessor is Node_List_Refs.Element_Accessor;\n\n procedure Iterate (List : in Node_List_Accessor;\n Process : not null access procedure (Node : in Node_Type));\n\nend Wiki.Nodes.Lists;\n","subject":"Refactor Node_List and references to use Ada Util general references","message":"Refactor Node_List and references to use Ada Util general references\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-wiki,stcarrez\/ada-wiki"} {"commit":"62895c53ba5c3a0fe6482efd1eda4cac07863c08","old_file":"src\/wiki-filters-toc.adb","new_file":"src\/wiki-filters-toc.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- wiki-filters-toc -- Filter for the creation of Table Of Contents\n-- Copyright (C) 2016 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Wiki.Nodes;\npackage body Wiki.Filters.TOC is\n\n -- ------------------------------\n -- Add a section header with the given level in the document.\n -- ------------------------------\n overriding\n procedure Add_Header (Filter : in out TOC_Filter;\n Document : in out Wiki.Documents.Document;\n Header : in Wiki.Strings.WString;\n Level : in Natural) is\n T : Wiki.Nodes.Node_List_Ref;\n begin\n Document.Get_TOC (T);\n Wiki.Nodes.Append (T, new Wiki.Nodes.Node_Type '(Kind => Wiki.Nodes.N_TOC_ENTRY,\n Len => Header'Length,\n Header => Header,\n Level => Level));\n Filter_Type (Filter).Add_Header (Document, Header, Level);\n end Add_Header;\n\nend Wiki.Filters.TOC;\n","subject":"Implement the TOC filter to collect the table of content","message":"Implement the TOC filter to collect the table of content\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-wiki,stcarrez\/ada-wiki"} {"commit":"c1805eee3bf5cb522cea1001dbeaaab55099572c","old_file":"regtests\/security-oauth-clients-tests.adb","new_file":"regtests\/security-oauth-clients-tests.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- Security-oauth-clients-tests - Unit tests for OAuth\n-- Copyright (C) 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Test_Caller;\nwith Util.Measures;\nwith Util.Strings.Sets;\n\npackage body Security.OAuth.Clients.Tests is\n\n package Caller is new Util.Test_Caller (Test, \"Security.OAuth.Clients\");\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite) is\n begin\n Caller.Add_Test (Suite, \"Test Security.OAuth.Clients.Create_Nonce\",\n Test_Create_Nonce'Access);\n end Add_Tests;\n\n -- ------------------------------\n -- Test Create_Nonce operation.\n -- ------------------------------\n procedure Test_Create_Nonce (T : in out Test) is\n Nonces : Util.Strings.Sets.Set;\n begin\n for I in 1 .. 1_000 loop\n for I in 32 .. 734 loop\n declare\n S : constant String := Create_Nonce (I * 3);\n begin\n T.Assert (not Nonces.Contains (S), \"Nonce was not unique: \" & S);\n Nonces.Include (S);\n end;\n end loop;\n end loop;\n declare\n S : Util.Measures.Stamp;\n begin\n for I in 1 .. 1_000 loop\n declare\n Nonce : constant String := Create_Nonce (128);\n pragma Unreferenced (Nonce);\n begin\n null;\n end;\n end loop;\n Util.Measures.Report (S, \"128 bits nonce generation (1000 calls)\");\n end;\n end Test_Create_Nonce;\n\nend Security.OAuth.Clients.Tests;\n","subject":"Add unit tests for OAuth package and Create_Nonce operation","message":"Add unit tests for OAuth package and Create_Nonce operation\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-security"} {"commit":"2f342af96d307e83d6c8532714e59e50edf36588","old_file":"src\/asm-intrinsic\/util-concurrent-counters.adb","new_file":"src\/asm-intrinsic\/util-concurrent-counters.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- Util.Concurrent -- Concurrent Counters\n-- Copyright (C) 2009, 2010, 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage body Util.Concurrent.Counters is\n\n use Interfaces;\n\n function Sync_Add_And_Fetch\n (Ptr : access Interfaces.Unsigned_32;\n Value : Interfaces.Integer_32) return Interfaces.Unsigned_32;\n pragma Import (Intrinsic, Sync_Add_And_Fetch,\n External_Name => \"__sync_add_and_fetch_4\");\n\n function Sync_Fetch_And_Add\n (Ptr : access Interfaces.Unsigned_32;\n Value : Interfaces.Integer_32) return Interfaces.Unsigned_32;\n pragma Import (Intrinsic, Sync_Fetch_And_Add,\n External_Name => \"__sync_fetch_and_add_4\");\n\n procedure Sync_Add\n (Ptr : access Interfaces.Unsigned_32;\n Value : Interfaces.Unsigned_32);\n pragma Import (Intrinsic, Sync_Add,\n External_Name => \"__sync_add_and_fetch_4\");\n\n -- ------------------------------\n -- Increment the counter atomically.\n -- ------------------------------\n procedure Increment (C : in out Counter) is\n begin\n Sync_Add (C.Value'Unrestricted_Access, 1);\n end Increment;\n\n -- ------------------------------\n -- Increment the counter atomically and return the value before increment.\n -- ------------------------------\n procedure Increment (C : in out Counter;\n Value : out Integer) is\n begin\n Value := Integer (Sync_Fetch_And_Add (C.Value'Unrestricted_Access, 1));\n end Increment;\n\n -- ------------------------------\n -- Decrement the counter atomically.\n -- ------------------------------\n procedure Decrement (C : in out Counter) is\n begin\n Sync_Add (C.Value'Unrestricted_Access, -1);\n end Decrement;\n\n -- ------------------------------\n -- Decrement the counter atomically and return a status.\n -- ------------------------------\n procedure Decrement (C : in out Counter;\n Is_Zero : out Boolean) is\n Value : Unsigned_32;\n begin\n Value := Sync_Add_And_Fetch (C.Value'Unrestricted_Access, -1);\n Is_Zero := Value \/= 0;\n end Decrement;\n\n -- ------------------------------\n -- Get the counter value\n -- ------------------------------\n function Value (C : in Counter) return Integer is\n begin\n return Integer (C.Value);\n end Value;\n\nend Util.Concurrent.Counters;\n","subject":"Implement the atomic counters using the gcc builtins __sync_add_and_fetch_4 and __sync_fetch_and_add_4","message":"Implement the atomic counters using the gcc builtins __sync_add_and_fetch_4 and __sync_fetch_and_add_4\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"c9f14e6e0efee9b1ed0af2f5b487948cb5dd8557","old_file":"src\/asis\/a4g-span_end.ads","new_file":"src\/asis\/a4g-span_end.ads","old_contents":"","new_contents":"------------------------------------------------------------------------------\n-- --\n-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --\n-- --\n-- A 4 G . S P A N _ E N D --\n-- --\n-- S p e c --\n-- --\n-- Copyright (c) 1995-1999, Free Software Foundation, Inc. --\n-- --\n-- ASIS-for-GNAT is free software; you can redistribute it and\/or modify it --\n-- under terms of the GNU General Public License as published by the Free --\n-- Software Foundation; either version 2, or (at your option) any later --\n-- version. ASIS-for-GNAT is distributed in the hope that it will be use- --\n-- ful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- --\n-- CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General --\n-- Public License for more details. You should have received a copy of the --\n-- GNU General Public License distributed with ASIS-for-GNAT; see file --\n-- COPYING. If not, write to the Free Software Foundation, 59 Temple Place --\n-- - Suite 330, Boston, MA 02111-1307, USA. --\n-- --\n-- --\n-- --\n-- --\n-- --\n-- --\n-- --\n-- --\n-- ASIS-for-GNAT was originally developed by the ASIS-for-GNAT team at the --\n-- Software Engineering Laboratory of the Swiss Federal Institute of --\n-- Technology (LGL-EPFL) in Lausanne, Switzerland, in cooperation with the --\n-- Scientific Research Computer Center of Moscow State University (SRCC --\n-- MSU), Russia, with funding partially provided by grants from the Swiss --\n-- National Science Foundation and the Swiss Academy of Engineering --\n-- Sciences. ASIS-for-GNAT is now maintained by Ada Core Technologies Inc --\n-- (http:\/\/www.gnat.com). --\n-- --\n------------------------------------------------------------------------------\n\nwith Asis; use Asis;\n\nwith Types; use Types;\n\npackage A4G.Span_End is\n\n -- This package encapsulates queries needed to find the end of Element's\n -- Span (as the pointer to the Source Buffer).\n\n function Set_Image_End (E : Asis.Element) return Source_Ptr;\n -- This is the main function in this package. It returns the pointer\n -- to the last character of the given element in the Source Buffer\n\nend A4G.Span_End;\n","subject":"Add the ASIS file $i","message":"Add the ASIS file $i","lang":"Ada","license":"apache-2.0","repos":"Letractively\/ada-gen,Letractively\/ada-gen,Letractively\/ada-gen,Letractively\/ada-gen"} {"commit":"9793de1bac2738e3f7b070cd678657e1230f6008","old_file":"regtests\/security-oauth-jwt-tests.ads","new_file":"regtests\/security-oauth-jwt-tests.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- Security-oayth-jwt-tests - Unit tests for JSON Web Token\n-- Copyright (C) 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\n\npackage Security.OAuth.JWT.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n -- Test Decode operation with errors.\n procedure Test_Decode_Error (T : in out Test);\n\n generic\n with function Get (From : in Token) return String;\n Value : String;\n procedure Test_Operation (T : in out Test);\n\n generic\n with function Get (From : in Token) return Ada.Calendar.Time;\n Value : String;\n procedure Test_Time_Operation (T : in out Test);\n\nend Security.OAuth.JWT.Tests;\n","subject":"Add unit tests for JWT","message":"Add unit tests for JWT\n","lang":"Ada","license":"apache-2.0","repos":"Letractively\/ada-security"} {"commit":"f2145816fcef15d943cf6ee651d54f5b63fec0c6","old_file":"regtests\/util-streams-buffered-lzma-tests.ads","new_file":"regtests\/util-streams-buffered-lzma-tests.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- util-streams-buffered-lzma-tests -- Unit tests for LZMA buffered streams\n-- Copyright (C) 2018 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\n\npackage Util.Streams.Buffered.Lzma.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n procedure Test_Compress_Stream (T : in out Test);\n\nend Util.Streams.Buffered.Lzma.Tests;\n","subject":"Add a new test for Compress_Stream using LZMA","message":"Add a new test for Compress_Stream using LZMA\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"fb36f928e9706247c1dff891fe6417281c8c90c0","old_file":"regtests\/asf-converters-tests.ads","new_file":"regtests\/asf-converters-tests.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- asf-converters-tests - Unit tests for ASF.Converters\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\n\nwith ASF.Contexts.Faces.Tests;\npackage ASF.Converters.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new ASF.Contexts.Faces.Tests.Test with null record;\n\n -- Test the date short converter.\n procedure Test_Date_Short_Converter (T : in out Test);\n\n -- Test the date medium converter.\n procedure Test_Date_Medium_Converter (T : in out Test);\n\n -- Test the date long converter.\n procedure Test_Date_Long_Converter (T : in out Test);\n\n -- Test the date full converter.\n procedure Test_Date_Full_Converter (T : in out Test);\n\n -- Test the time short converter.\n procedure Test_Time_Short_Converter (T : in out Test);\n\n -- Test the time short converter.\n procedure Test_Time_Medium_Converter (T : in out Test);\n\n -- Test the time long converter.\n procedure Test_Time_Long_Converter (T : in out Test);\n\nend ASF.Converters.Tests;\n","subject":"Add a new set of unit tests for the date converter","message":"Add a new set of unit tests for the date converter\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-asf,stcarrez\/ada-asf,stcarrez\/ada-asf"} {"commit":"52c7c02304231ebf7f276fec23422017e144755a","old_file":"matp\/src\/events\/mat-events-tools.ads","new_file":"matp\/src\/events\/mat-events-tools.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- mat-events-tools - Profiler Events Description\n-- Copyright (C) 2014, 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Ada.Containers.Vectors;\npackage MAT.Events.Tools is\n\n Not_Found : exception;\n\n package Target_Event_Vectors is\n new Ada.Containers.Vectors (Positive, Target_Event_Type);\n\n subtype Target_Event_Vector is Target_Event_Vectors.Vector;\n subtype Target_Event_Cursor is Target_Event_Vectors.Cursor;\n\n -- Find in the list the first event with the given type.\n -- Raise Not_Found<\/tt> if the list does not contain such event.\n function Find (List : in Target_Event_Vector;\n Kind : in Probe_Index_Type) return Target_Event_Type;\n\n\nend MAT.Events.Tools;\n","subject":"Declare the MAT.Events.Tools package and move the Target_Event_Vectors definition in it","message":"Declare the MAT.Events.Tools package and move the Target_Event_Vectors definition in it\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/mat,stcarrez\/mat,stcarrez\/mat"} {"commit":"3c4d2524f21d19c44fedbab44c450ef402b62d9e","old_file":"src\/asf-security.ads","new_file":"src\/asf-security.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- asf-security -- ASF Security\n-- Copyright (C) 2012 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\npackage ASF.Security is\n\nend ASF.Security;\n","subject":"Define an ASF Security package","message":"Define an ASF Security package\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-asf,stcarrez\/ada-asf,stcarrez\/ada-asf"} {"commit":"30c937b73f55f3f31d3e0ba3410ee42d9c9ee4d7","old_file":"src\/babel-stores.ads","new_file":"src\/babel-stores.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\r\n-- babel-stores -- Storage management\r\n-- Copyright (C) 2014 Stephane.Carrez\r\n-- Written by Stephane.Carrez (Stephane.Carrez@gmail.com)\r\n--\r\n-- Licensed under the Apache License, Version 2.0 (the \"License\");\r\n-- you may not use this file except in compliance with the License.\r\n-- You may obtain a copy of the License at\r\n--\r\n-- http:\/\/www.apache.org\/licenses\/LICENSE-2.0\r\n--\r\n-- Unless required by applicable law or agreed to in writing, software\r\n-- distributed under the License is distributed on an \"AS IS\" BASIS,\r\n-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n-- See the License for the specific language governing permissions and\r\n-- limitations under the License.\r\n-----------------------------------------------------------------------\r\nwith Babel.Files;\r\nwith Babel.Files.Buffers;\r\nwith Babel.Filters;\r\npackage Babel.Stores is\r\n\r\n type Store_Type is limited interface;\r\n type Store_Type_Access is access all Store_Type'Class;\r\n\r\n procedure Read (Store : in out Store_Type;\r\n Path : in String;\r\n Into : in out Babel.Files.Buffers.Buffer) is abstract;\r\n\r\n procedure Write (Store : in out Store_Type;\r\n Path : in String;\r\n Into : in Babel.Files.Buffers.Buffer) is abstract;\r\n\r\n procedure Scan (Store : in out Store_Type;\r\n Path : in String;\r\n Into : in out Babel.Files.File_Container'Class;\r\n Filter : in Babel.Filters.Filter_Type'Class) is abstract;\r\n\r\nend Babel.Stores;\r\n","subject":"Backup store to access files (local, remote, ...)","message":"Backup store to access files (local, remote, ...)\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/babel"} {"commit":"a71abb25b07fe19e6b9b8583bec474d23035a0f4","old_file":"src\/gen-artifacts-docs-googlecode.adb","new_file":"src\/gen-artifacts-docs-googlecode.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- gen-artifacts-docs-googlecode -- Artifact for Googlecode documentation format\n-- Copyright (C) 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage body Gen.Artifacts.Docs.Googlecode is\n\n -- ------------------------------\n -- Get the document name from the file document (ex: .wiki or .md).\n -- ------------------------------\n overriding\n function Get_Document_Name (Formatter : in Document_Formatter;\n Document : in File_Document) return String is\n begin\n return Ada.Strings.Unbounded.To_String (Document.Name) & \".wiki\";\n end Get_Document_Name;\n\nend Gen.Artifacts.Docs.Googlecode;\n","subject":"Implement the Get_Document_Name function for the Google Code wiki syntax","message":"Implement the Get_Document_Name function for the Google Code wiki syntax\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/dynamo,stcarrez\/dynamo,stcarrez\/dynamo"} {"commit":"c04c809196c2770c439c09ecee3deccbedc10f6f","old_file":"src\/ado-utils-streams.adb","new_file":"src\/ado-utils-streams.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- ado-utils-streams -- IO stream utilities\n-- Copyright (C) 2018 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage body ADO.Utils.Streams is\n\n use type Ada.Streams.Stream_Element_Offset;\n subtype Offset is Ada.Streams.Stream_Element_Offset;\n\n -- ------------------------------\n -- Initialize the blob stream to read the content of the blob.\n -- ------------------------------\n procedure Initialize (Stream : in out Blob_Stream;\n Blob : in ADO.Blob_Ref) is\n begin\n Stream.Data := Blob;\n Stream.Pos := 1;\n end Initialize;\n\n -- ------------------------------\n -- Read into the buffer as many bytes as possible and return in\n -- last<\/b> the position of the last byte read.\n -- ------------------------------\n overriding\n procedure Read (Stream : in out Blob_Stream;\n Into : out Ada.Streams.Stream_Element_Array;\n Last : out Ada.Streams.Stream_Element_Offset) is\n Blob : constant Blob_Access := Stream.Data.Value;\n Avail : Offset;\n begin\n if Blob = null then\n Last := Into'First - 1;\n else\n Avail := Blob.Data'Last - Stream.Pos + 1;\n if Avail > Into'Length then\n Avail := Into'Length;\n end if;\n Last := Into'First + Avail - 1;\n if Avail > 0 then\n Into (Into'First .. Last) := Blob.Data (Stream.Pos .. Stream.Pos + Avail - 1);\n Stream.Pos := Stream.Pos + Avail;\n end if;\n end if;\n end Read;\n\n function Get_Blob (Stream : in Blob_Output_Stream) return Blob_Ref is\n Size : constant Offset := Offset (Stream.Get_Size);\n Buffer : constant Util.Streams.Buffered.Buffer_Access := Stream.Get_Buffer;\n begin\n return Create_Blob (Data => Buffer (Buffer'First .. Buffer'First + Size - 1));\n end Get_Blob;\n\nend ADO.Utils.Streams;\n","subject":"Implement operations for blob streams","message":"Implement operations for blob streams\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-ado"} {"commit":"95e4c6bf2d8ed371b3d4c7d0c10c323373f9fe75","old_file":"regtests\/wiki-filters-html-tests.adb","new_file":"regtests\/wiki-filters-html-tests.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- wiki-filters-html-tests -- Unit tests for wiki HTML filters\n-- Copyright (C) 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Test_Caller;\nwith Util.Assertions;\nwith Util.Strings;\nwith Util.Log.Loggers;\n\npackage body Wiki.Filters.Html.Tests is\n\n Log : constant Util.Log.Loggers.Logger := Util.Log.Loggers.Create (\"Wiki.Filters\");\n\n package Caller is new Util.Test_Caller (Test, \"Wikis.Filters.Html\");\n\n procedure Assert_Equals is\n new Util.Assertions.Assert_Equals_T (Html_Tag_Type);\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite) is\n begin\n Caller.Add_Test (Suite, \"Test Wiki.Filters.Html.Find_Tag\",\n Test_Find_Tag'Access);\n end Add_Tests;\n\n -- Test Find_Tag operation.\n procedure Test_Find_Tag (T : in out Test) is\n begin\n for I in Html_Tag_Type'Range loop\n declare\n Name : constant String := Html_Tag_Type'Image (I);\n Wname : constant Wide_Wide_String := Html_Tag_Type'Wide_Wide_Image (I);\n Pos : constant Natural := Util.Strings.Index (Name, '_');\n Tag : constant Html_Tag_Type := Find_Tag (WName (WName'First .. Pos - 1));\n begin\n Log.Info (\"Checking tag {0}\", Name);\n Assert_Equals (T, I, Tag, \"Find_Tag failed\");\n end;\n end loop;\n end Test_Find_Tag;\n\nend Wiki.Filters.Html.Tests;\n","subject":"Implement a new test for the HTML filters internal operations","message":"Implement a new test for the HTML filters internal operations\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-wiki,stcarrez\/ada-wiki"} {"commit":"f8fb79133291c1fe993dea1190f5c8fb37462ca4","old_file":"src\/wiki-utils.ads","new_file":"src\/wiki-utils.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- wiki-utils -- Wiki utility operations\n-- Copyright (C) 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Wiki.Parsers;\n\npackage Wiki.Utils is\n\n -- Render the wiki text according to the wiki syntax in HTML into a string.\n function To_Html (Text : in Wide_Wide_String;\n Syntax : in Wiki.Parsers.Wiki_Syntax_Type) return String;\n\n -- Render the wiki text according to the wiki syntax in text into a string.\n -- Wiki formatting and decoration are removed.\n function To_Text (Text : in Wide_Wide_String;\n Syntax : in Wiki.Parsers.Wiki_Syntax_Type) return String;\n\nend Wiki.Utils;\n","subject":"Define the Wiki.Utils package with To_Html and To_Text functions","message":"Define the Wiki.Utils package with To_Html and To_Text functions\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-wiki,stcarrez\/ada-wiki"} {"commit":"71024c54c6685826f84cf8a97067a89bb0f75300","old_file":"src\/el-contexts-tls.ads","new_file":"src\/el-contexts-tls.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- EL.Contexts.TLS -- EL context and Thread Local Support\n-- Copyright (C) 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith EL.Contexts.Default;\n\n-- == EL TLS Context ==\n-- The TLS_Context<\/tt> type defines an expression context that associates itself to\n-- a per-thread context information. By declaring a variable with this type, the expression\n-- context is associated with the current thread and it can be retrieved at any time by using the\n-- Current<\/tt> function. As soon as the variable is finalized, the current thread context\n-- is updated.\n--\n-- The expression context may be declared as follows:\n--\n-- Context : EL.Contexts.TLS.TLS_Context;\n--\n-- And at any time, a function or procedure that needs to evaluate an expression can use it:\n--\n-- Expr : EL.Expressions.Expression;\n-- ...\n-- Value : Util.Beans.Objects.Object := Expr.Get_Value (EL.Contexts.TLS.Current.all);\n--\npackage EL.Contexts.TLS is\n\n -- ------------------------------\n -- TLS Context\n -- ------------------------------\n -- Context information for expression evaluation.\n type TLS_Context is new EL.Contexts.Default.Default_Context with private;\n\n -- Get the current EL context associated with the current thread.\n function Current return EL.Contexts.ELContext_Access;\n\nprivate\n\n type TLS_Context is new EL.Contexts.Default.Default_Context with record\n Previous : EL.Contexts.ELContext_Access;\n end record;\n\n -- Initialize and setup a new per-thread EL context.\n overriding\n procedure Initialize (Obj : in out TLS_Context);\n\n -- Restore the previouse per-thread EL context.\n overriding\n procedure Finalize (Obj : in out TLS_Context);\n\nend EL.Contexts.TLS;\n","subject":"Declare the TLS package for thread local context support","message":"Declare the TLS package for thread local context support\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-el"} {"commit":"1c56ba76fb3e0fbfd4c8eafd8851153d95eb450b","old_file":"samples\/serialize_xml.adb","new_file":"samples\/serialize_xml.adb","old_contents":"","new_contents":"with Ada.Text_IO;\r\nwith Util.Serialize.IO.XML;\r\nwith Util.Streams.Texts;\r\nprocedure Serialize_Xml is\r\n Output : aliased Util.Streams.Texts.Print_Stream;\r\n Stream : Util.Serialize.IO.XML.Output_Stream;\r\nbegin\r\n Output.Initialize (Size => 10000);\r\n Stream.Initialize (Output => Output'Unchecked_Access);\r\n -- Stream.Start_Document;\r\n Stream.Start_Entity (\"person\");\r\n Stream.Write_Entity (\"name\", \"Harry Potter\");\r\n Stream.Write_Entity (\"gender\", \"male\");\r\n Stream.Write_Entity (\"age\", 17);\r\n Stream.End_Entity (\"person\");\r\n -- Stream.End_Document;\r\n Ada.Text_IO.Put_Line (Util.Streams.Texts.To_String (Output));\r\nend Serialize_Xml;\r\n","subject":"Add example for XML serialization","message":"Add example for XML serialization\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"e7e55a0ac7aabdf42e86137880f41cf952da6d6c","old_file":"src\/util-strings-sets.ads","new_file":"src\/util-strings-sets.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- Util-strings-sets -- Set of strings\n-- Copyright (C) 2011 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Ada.Strings.Hash;\nwith Ada.Containers.Indefinite_Hashed_Sets;\n\n-- The Util.Strings.Sets<\/b> package provides an instantiation\n-- of a hashed set with Strings.\npackage Util.Strings.Sets is new Ada.Containers.Indefinite_Hashed_Sets\n (Element_Type => String,\n Hash => Ada.Strings.Hash,\n Equivalent_Elements => \"=\");\n","subject":"Define the set of string package","message":"Define the set of string package\n","lang":"Ada","license":"apache-2.0","repos":"Letractively\/ada-util,flottokarotto\/ada-util,flottokarotto\/ada-util,Letractively\/ada-util"} {"commit":"308499888f5f31876b10335cf1c4e01a1b5051e7","old_file":"regtests\/util-beans-objects-datasets-tests.adb","new_file":"regtests\/util-beans-objects-datasets-tests.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- util-beans-objects-datasets-tests -- Unit tests for dataset beans\n-- Copyright (C) 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\nwith Util.Test_Caller;\n\npackage body Util.Beans.Objects.Datasets.Tests is\n\n package Caller is new Util.Test_Caller (Test, \"Objects.Datasets\");\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite) is\n begin\n Caller.Add_Test (Suite, \"Test Util.Beans.Objects.Datasets\",\n Test_Fill_Dataset'Access);\n end Add_Tests;\n\n -- Test the creation, initialization and retrieval of dataset content.\n procedure Test_Fill_Dataset (T : in out Test) is\n Set : Dataset;\n\n procedure Fill (Row : in out Object_Array) is\n begin\n Row (Row'First) := To_Object (String '(\"john\"));\n Row (Row'First + 1) := To_Object (String '(\"jj@gmail.com\"));\n Row (Row'First + 2) := To_Object (Set.Get_Count);\n end Fill;\n\n begin\n Set.Add_Column (\"name\");\n Set.Add_Column (\"email\");\n Set.Add_Column (\"age\");\n\n for I in 1 .. 100 loop\n Set.Append (Fill'Access);\n end loop;\n Util.Tests.Assert_Equals (T, 100, Set.Get_Count, \"Invalid number of rows\");\n\n for I in 1 .. 100 loop\n Set.Set_Row_Index (I);\n declare\n R : Object := Set.Get_Row;\n\n begin\n T.Assert (not Is_Null (R), \"Row is null\");\n Util.Tests.Assert_Equals (T, \"john\", To_String (Get_Value (R, \"name\")),\n \"Invalid 'name' attribute\");\n Util.Tests.Assert_Equals (T, I, To_Integer (Get_Value (R, \"age\")),\n \"Invalid 'age' attribute\");\n end;\n end loop;\n end Test_Fill_Dataset;\n\nend Util.Beans.Objects.Datasets.Tests;\n","subject":"Implement the unit tests on datasets to verify the creation, insertion and retrieval of datasets through bean interfaces","message":"Implement the unit tests on datasets to verify the creation,\ninsertion and retrieval of datasets through bean interfaces\n","lang":"Ada","license":"apache-2.0","repos":"Letractively\/ada-util,flottokarotto\/ada-util,flottokarotto\/ada-util,Letractively\/ada-util"} {"commit":"641703d109c3c8f28ff999124d0c2ba77a9b5f7a","old_file":"src\/asis\/asis-errors.ads","new_file":"src\/asis\/asis-errors.ads","old_contents":"","new_contents":"------------------------------------------------------------------------------\n-- --\n-- ASIS-for-GNAT INTERFACE COMPONENTS --\n-- --\n-- A S I S . E R R O R S --\n-- --\n-- S p e c --\n-- --\n-- $Revision: 14416 $\n-- --\n-- This specification is adapted from the Ada Semantic Interface --\n-- Specification Standard (ISO\/IEC 15291) for use with GNAT. In accordance --\n-- with the copyright of that document, you can freely copy and modify this --\n-- specification, provided that if you redistribute a modified version, any --\n-- changes that you have made are clearly indicated. --\n-- --\n------------------------------------------------------------------------------\n\n------------------------------------------------------------------------------\n-- 4 package Asis.Errors\n------------------------------------------------------------------------------\n------------------------------------------------------------------------------\npackage Asis.Errors is\n------------------------------------------------------------------------------\n------------------------------------------------------------------------------\n--\n-- ASIS reports all operational errors by raising an exception. Whenever an\n-- ASIS implementation raises one of the exceptions declared in package\n-- Asis.Exceptions, it will previously have set the values returned by the\n-- Status and Diagnosis queries to indicate the cause of the error. The\n-- possible values for Status are indicated in the definition of Error_Kinds\n-- below, with suggestions for the associated contents of the Diagnosis\n-- string as a comment.\n--\n-- The Diagnosis and Status queries are provided in the Asis.Implementation\n-- package to supply more information about the reasons for raising any\n-- exception.\n--\n-- ASIS applications are encouraged to follow this same convention whenever\n-- they explicitly raise any ASIS exception--always record a Status and\n-- Diagnosis prior to raising the exception.\n------------------------------------------------------------------------------\n-- 4.1 type Error_Kinds\n------------------------------------------------------------------------------\n-- This enumeration type describes the various kinds of errors.\n--\n\n type Error_Kinds is (\n\n Not_An_Error, -- No error is presently recorded\n Value_Error, -- Routine argument value invalid\n Initialization_Error, -- ASIS is uninitialized\n Environment_Error, -- ASIS could not initialize\n Parameter_Error, -- Bad Parameter given to Initialize\n Capacity_Error, -- Implementation overloaded\n Name_Error, -- Context\/unit not found\n Use_Error, -- Context\/unit not use\/open-able\n Data_Error, -- Context\/unit bad\/invalid\/corrupt\n Text_Error, -- The program text cannot be located\n Storage_Error, -- Storage_Error suppressed\n Obsolete_Reference_Error, -- Argument or result is invalid due to\n -- and inconsistent compilation unit\n Unhandled_Exception_Error, -- Unexpected exception suppressed\n Not_Implemented_Error, -- Functionality not implemented\n Internal_Error); -- Implementation internal failure\n\nend Asis.Errors;\n","subject":"Add the ASIS file $i","message":"Add the ASIS file $i\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/dynamo,stcarrez\/dynamo,stcarrez\/dynamo"} {"commit":"90cc3902449a670a24377356a0d329d59e201f36","old_file":"src\/el-beans-methods.ads","new_file":"src\/el-beans-methods.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- EL.Beans.Methods -- Bean methods\n-- Copyright (C) 2010 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Strings;\npackage EL.Beans.Methods is\n\n pragma Preelaborate;\n\n type Method_Binding is tagged limited record\n Name : Util.Strings.Name_Access;\n end record;\n type Method_Binding_Access is access constant Method_Binding'Class;\n\n type Method_Binding_Array is array (Natural range <>) of Method_Binding_Access;\n type Method_Binding_Array_Access is access constant Method_Binding_Array;\n\n type Method_Bean is limited Interface;\n type Method_Bean_Access is access all Method_Bean'Class;\n\n function Get_Method_Bindings (From : in Method_Bean)\n return Method_Binding_Array_Access is abstract;\n\nend EL.Beans.Methods;\n","subject":"Declare the method binding types","message":"Declare the method binding types\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-el"} {"commit":"dc369c1be258440825c0bd5c2ef0ec504c75ded4","old_file":"src\/util-strings-sets.ads","new_file":"src\/util-strings-sets.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- Util-strings-sets -- Set of strings\n-- Copyright (C) 2011 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Ada.Strings.Hash;\nwith Ada.Containers.Indefinite_Hashed_Sets;\n\n-- The Util.Strings.Sets<\/b> package provides an instantiation\n-- of a hashed set with Strings.\npackage Util.Strings.Sets is new Ada.Containers.Indefinite_Hashed_Sets\n (Element_Type => String,\n Hash => Ada.Strings.Hash,\n Equivalent_Elements => \"=\");\n","subject":"Define the set of string package","message":"Define the set of string package\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"941d83b00691a6e5bb481181be53abbace7c044f","old_file":"src\/asf-routes-servlets-rest.ads","new_file":"src\/asf-routes-servlets-rest.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- asf-reoutes-servlets-rest -- Route for the REST API\n-- Copyright (C) 2016 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith ASF.Rest;\n\npackage ASF.Routes.Servlets.Rest is\n\n type Descriptor_Array is array (ASF.Rest.Method_Type) of ASF.Rest.Descriptor_Access;\n\n -- The route has one descriptor for each REST method.\n type API_Route_Type is new ASF.Routes.Servlets.Servlet_Route_Type with record\n Descriptors : Descriptor_Array;\n end record;\n\nend ASF.Routes.Servlets.Rest;\n","subject":"Define the ASF.Routes.Servlets.Rest package for the REST route","message":"Define the ASF.Routes.Servlets.Rest package for the REST route\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-asf,stcarrez\/ada-asf,stcarrez\/ada-asf"} {"commit":"cc54f6dd2e877e152bdcf944bdcb375b6a8b4a06","old_file":"src\/wiki-plugins-templates.ads","new_file":"src\/wiki-plugins-templates.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- wiki-plugins-template -- Template Plugin\n-- Copyright (C) 2016 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Wiki.Strings;\n\n-- === Template Plugins ===\n-- The Wiki.Plugins.Templates<\/b> package defines an abstract template plugin.\n-- To use the template plugin, the Get_Template<\/tt> procedure must be implemented.\n-- It is responsible for getting the template content according to the plugin parameters.\n--\npackage Wiki.Plugins.Templates is\n\n pragma Preelaborate;\n\n type Template_Plugin is abstract new Wiki_Plugin with null record;\n\n -- Get the template content for the plugin evaluation.\n procedure Get_Template (Plugin : in out Template_Plugin;\n Params : in out Wiki.Attributes.Attribute_List;\n Template : out Wiki.Strings.UString) is abstract;\n\n -- Expand the template configured with the parameters for the document.\n -- The Get_Template<\/tt> operation is called and the template content returned\n -- by that operation is parsed in the current document. Template parameters are passed\n -- in the Context<\/tt> instance and they can be evaluated within the template\n -- while parsing the template content.\n overriding\n procedure Expand (Plugin : in out Template_Plugin;\n Document : in out Wiki.Documents.Document;\n Params : in out Wiki.Attributes.Attribute_List;\n Context : in Plugin_Context);\n\nend Wiki.Plugins.Templates;\n","subject":"Declare the Wiki.Plugins.Templates package with the Template_Plugin type","message":"Declare the Wiki.Plugins.Templates package with the Template_Plugin type\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-wiki,stcarrez\/ada-wiki"} {"commit":"054fa8fddbebf3e040b7fe8d888e33e5095c2295","old_file":"test\/AdaFrontend\/vce_lv.adb","new_file":"test\/AdaFrontend\/vce_lv.adb","old_contents":"","new_contents":"-- RUN: %llvmgcc -c %s -o \/dev\/null\nprocedure VCE_LV is\n type P is access String ;\n type T is new P (5 .. 7);\n subtype U is String (5 .. 7);\n X : T := new U'(others => 'A');\nbegin\n null;\nend;\n","subject":"Test that a VIEW_CONVERT_EXPR used as an lvalue has the right type.","message":"Test that a VIEW_CONVERT_EXPR used as an lvalue has the right type.\n\n\ngit-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@35387 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"Ada","license":"apache-2.0","repos":"apple\/swift-llvm,llvm-mirror\/llvm,dslab-epfl\/asap,llvm-mirror\/llvm,chubbymaggie\/asap,chubbymaggie\/asap,GPUOpen-Drivers\/llvm,chubbymaggie\/asap,llvm-mirror\/llvm,dslab-epfl\/asap,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,apple\/swift-llvm,dslab-epfl\/asap,llvm-mirror\/llvm,chubbymaggie\/asap,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,apple\/swift-llvm,apple\/swift-llvm,chubbymaggie\/asap,dslab-epfl\/asap,apple\/swift-llvm,GPUOpen-Drivers\/llvm,chubbymaggie\/asap,apple\/swift-llvm,llvm-mirror\/llvm"} {"commit":"059d023ec56579b471707c48fb2d0f24e1ac4150","old_file":"src\/util-serialize-mappers.adb","new_file":"src\/util-serialize-mappers.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\r\n-- util-serialize-mappers -- Serialize objects in various formats\r\n-- Copyright (C) 2010 Stephane Carrez\r\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\r\n--\r\n-- Licensed under the Apache License, Version 2.0 (the \"License\");\r\n-- you may not use this file except in compliance with the License.\r\n-- You may obtain a copy of the License at\r\n--\r\n-- http:\/\/www.apache.org\/licenses\/LICENSE-2.0\r\n--\r\n-- Unless required by applicable law or agreed to in writing, software\r\n-- distributed under the License is distributed on an \"AS IS\" BASIS,\r\n-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n-- See the License for the specific language governing permissions and\r\n-- limitations under the License.\r\n-----------------------------------------------------------------------\r\n\r\npackage body Util.Serialize.Mappers is\r\n\r\n -- -----------------------\r\n -- Bind the name and the handler in the current mapper.\r\n -- -----------------------\r\n procedure Add_Member (Controller : in out Mapper;\r\n Name : in String;\r\n Handler : in Mapper_Access) is\r\n begin\r\n Controller.Mapping.Insert (Key => Name,\n New_Item => Handler);\r\n end Add_Member;\r\n\r\n -- -----------------------\r\n -- Add the member to the current mapper.\r\n -- -----------------------\r\n procedure Add_Member (Controller : in out Mapper;\r\n Name : in String) is\r\n begin\r\n Controller.Mapping.Insert (Key => Name, New_Item => null);\r\n end Add_Member;\r\n\r\n -- -----------------------\r\n -- Find the mapper associated with the given name.\r\n -- Returns null if there is no mapper.\r\n -- -----------------------\r\n function Find_Mapper (Controller : in Mapper;\r\n Name : in String) return Mapper_Access is\r\n Pos : constant Mapper_Map.Cursor := Controller.Mapping.Find (Key => Name);\r\n begin\r\n if Mapper_Map.Has_Element (Pos) then\r\n return Mapper_Map.Element (Pos);\r\n else\r\n return null;\r\n end if;\r\n end Find_Mapper;\r\n\r\nend Util.Serialize.Mappers;\r\n","subject":"Add operations to specify the mapping","message":"Add operations to specify the mapping\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"35bd62d5429b5982544c8e6ec9639e6b6417e28c","old_file":"src\/util-streams-texts-wtr.ads","new_file":"src\/util-streams-texts-wtr.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- util-streams-texts-tr -- Text translation utilities on streams\n-- Copyright (C) 2010, 2011, 2012, 2015, 2016, 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Util.Texts.Transforms;\nwith Ada.Wide_Wide_Characters.Handling;\npackage Util.Streams.Texts.WTR is\n new Util.Texts.Transforms (Stream => Print_Stream'Class,\n Char => Wide_Wide_Character,\n Input => Wide_Wide_String,\n Put => Write_Char,\n To_Upper => Ada.Wide_Wide_Characters.Handling.To_Upper,\n To_Lower => Ada.Wide_Wide_Characters.Handling.To_Lower);\n","subject":"Refactor Buffered_Stream and Print_Stream - move the WTR package instantiation in a separate file","message":"Refactor Buffered_Stream and Print_Stream\n- move the WTR package instantiation in a separate file\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"b7f3273a231c30ca9f9b0f6dba6e92820ff90540","old_file":"src\/wiki-parsers-html.ads","new_file":"src\/wiki-parsers-html.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- wiki-parsers-html -- Wiki HTML parser\n-- Copyright (C) 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-- This is a small HTML parser that is called to deal with embedded HTML in wiki text.\n-- The parser is intended to handle incorrect HTML and clean the result as much as possible.\n-- We cannot use a real XML\/Sax parser (such as XML\/Ada) because we must handle errors and\n-- backtrack from HTML parsing to wiki or raw text parsing.\n--\n-- When parsing HTML content, we call the Start_Element<\/tt> or End_Element<\/tt>\n-- operations. The renderer is then able to handle the HTML tag according to its needs.\nprivate package Wiki.Parsers.Html is\n\n pragma Preelaborate;\n\n -- Parse a HTML element \n -- or parse an end of HTML element <\/XXX>\n procedure Parse_Element (P : in out Parser);\n\nend Wiki.Parsers.Html;\n","subject":"Define a simple HTML parser that can be used to parse HTML text embedded in wiki text","message":"Define a simple HTML parser that can be used to parse HTML text embedded in wiki text\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-wiki,stcarrez\/ada-wiki"} {"commit":"1d4d948d333104e0423ebed08bdd7a276abc75a2","old_file":"awa\/src\/awa-oauth-filters.ads","new_file":"awa\/src\/awa-oauth-filters.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- awa-oauth-filters -- OAuth filter\n-- Copyright (C) 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Ada.Strings.Unbounded;\n\nwith ASF.Requests;\nwith ASF.Responses;\nwith ASF.Sessions;\nwith ASF.Principals;\nwith ASF.Filters;\nwith ASF.Servlets;\nwith ASF.Security.Filters;\n\nwith AWA.Users.Principals;\nwith AWA.OAuth.Services;\npackage AWA.OAuth.Filters is\n\n -- ------------------------------\n -- OAuth Authentication filter\n -- ------------------------------\n -- The Auth_Filter<\/b> verifies that the access token passed for the OAuth\n -- operation is valid and it extracts the user to configure the request principal.\n type Auth_Filter is new ASF.Filters.Filter with private;\n\n -- Initialize the filter.\n overriding\n procedure Initialize (Filter : in out Auth_Filter;\n Config : in ASF.Servlets.Filter_Config);\n\n -- The Do_Filter method of the Filter is called by the container each time\n -- a request\/response pair is passed through the chain due to a client request\n -- for a resource at the end of the chain. The Filter_Chain passed in to this\n -- method allows the Filter to pass on the request and response to the next\n -- entity in the chain.\n --\n -- Before passing the control to the next filter, initialize the service\n -- context to give access to the current application, current user and\n -- manage possible transaction rollbacks.\n overriding\n procedure Do_Filter (F : in Auth_Filter;\n Request : in out ASF.Requests.Request'Class;\n Response : in out ASF.Responses.Response'Class;\n Chain : in out ASF.Servlets.Filter_Chain);\n\nprivate\n\n use Ada.Strings.Unbounded;\n\n type Auth_Filter is new ASF.Filters.Filter with record\n Realm : AWA.OAuth.Services.Auth_Manager_Access;\n end record;\n\nend AWA.OAuth.Filters;\n","subject":"Define the OAuth security filter for AWA applications","message":"Define the OAuth security filter for AWA applications\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa"} {"commit":"bc4445378b6f457993c62077a3dfe45f8e8c36d3","old_file":"regtests\/util-commands-tests.ads","new_file":"regtests\/util-commands-tests.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- util-commands-tests - Test for commands\n-- Copyright (C) 2018 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\npackage Util.Commands.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n -- Tests when the execution of commands.\n procedure Test_Execute (T : in out Test);\n\n -- Test execution of help.\n procedure Test_Help (T : in out Test);\n\n -- Test usage operation.\n procedure Test_Usage (T : in out Test);\n\nend Util.Commands.Tests;\n","subject":"Add tests for the Util.Commands.Drivers package","message":"Add tests for the Util.Commands.Drivers package\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"77119f2b27d96aa3979a4f4dadf9e6ff1b39329b","old_file":"tools\/druss-commands-ping.ads","new_file":"tools\/druss-commands-ping.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- druss-commands-ping -- Ping devices from the gateway\n-- Copyright (C) 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Druss.Commands.Ping is\n\n type Command_Type is new Druss.Commands.Drivers.Command_Type with null record;\n\n procedure Do_Ping (Command : in Command_Type;\n Args : in Argument_List'Class;\n Context : in out Context_Type);\n\n -- Execute a ping from the gateway to each device.\n overriding\n procedure Execute (Command : in Command_Type;\n Name : in String;\n Args : in Argument_List'Class;\n Context : in out Context_Type);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Command : in Command_Type;\n Context : in out Context_Type);\n\nend Druss.Commands.Ping;\n","subject":"Define the ping command to ask the Bbox to ping the known devices","message":"Define the ping command to ask the Bbox to ping the known devices\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/bbox-ada-api"} {"commit":"725753adcc28d0b9a854d134dddcfe320e1b06f9","old_file":"src\/util-commands.adb","new_file":"src\/util-commands.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- util-commands -- Support to make command line tools\n-- Copyright (C) 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Ada.Command_Line;\npackage body Util.Commands is\n\n -- ------------------------------\n -- Get the number of arguments available.\n -- ------------------------------\n overriding\n function Get_Count (List : in Default_Argument_List) return Natural is\n begin\n return Ada.Command_Line.Argument_Count - List.Offset;\n end Get_Count;\n\n -- ------------------------------\n -- Get the argument at the given position.\n -- ------------------------------\n overriding\n function Get_Argument (List : in Default_Argument_List;\n Pos : in Positive) return String is\n begin\n return Ada.Command_Line.Argument (Pos - List.Offset);\n end Get_Argument;\n\nend Util.Commands;\n","subject":"Implement the Get_Count and Get_Argument operations","message":"Implement the Get_Count and Get_Argument operations\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"6bcae9852379443b18b1aa640c93bceaa3f3caf2","old_file":"mat\/src\/mat-targets-readers.adb","new_file":"mat\/src\/mat-targets-readers.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- mat-targets-readers - Definition and Analysis of process start events\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Util.Log.Loggers;\n\npackage body MAT.Targets.Readers is\n\n -- The logger\n Log : constant Util.Log.Loggers.Logger := Util.Log.Loggers.Create (\"MAT.Targets.Readers\");\n\n MSG_BEGIN : constant MAT.Events.Internal_Reference := 0;\n MSG_END : constant MAT.Events.Internal_Reference := 1;\n\n M_PID : constant MAT.Events.Internal_Reference := 1;\n M_EXE : constant MAT.Events.Internal_Reference := 2;\n\n PID_NAME : aliased constant String := \"pid\";\n EXE_NAME : aliased constant String := \"exe\";\n\n Process_Attributes : aliased constant MAT.Events.Attribute_Table :=\n (1 => (Name => PID_NAME'Access, Size => 0,\n Kind => MAT.Events.T_SIZE_T, Ref => M_PID),\n 2 => (Name => EXE_NAME'Access, Size => 0,\n Kind => MAT.Events.T_FRAME, Ref => M_EXE));\n\n procedure Create_Process (For_Servant : in out Process_Servant;\n Pid : in MAT.Types.Target_Process_Ref) is\n begin\n MAT.Memory.Targets.Initialize (Memory => For_Servant.Process.Memory,\n Reader => For_Servant.Reader.all);\n end Create_Process;\n\n overriding\n procedure Dispatch (For_Servant : in out Process_Servant;\n Id : in MAT.Events.Internal_Reference;\n Params : in MAT.Events.Const_Attribute_Table_Access;\n Frame : in MAT.Events.Frame_Info;\n Msg : in out MAT.Readers.Message) is\n begin\n case Id is\n when MSG_BEGIN =>\n null;\n\n when MSG_END =>\n null;\n\n when others =>\n null;\n\n end case;\n end Dispatch;\n\n -- Register the reader to extract and analyze process events.\n procedure Register (Into : in out MAT.Readers.Manager_Base'Class;\n Reader : in Process_Reader_Access) is\n begin\n Into.Register_Reader (Reader.all'Access, \"begin\", MSG_BEGIN,\n Process_Attributes'Access);\n Into.Register_Reader (Reader.all'Access, \"end\", MSG_END,\n Process_Attributes'Access);\n end Register;\n\nend MAT.Targets.Readers;\n","subject":"Implement the package to read the begin\/end events and create the process instance","message":"Implement the package to read the begin\/end events and create the process instance\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/mat,stcarrez\/mat,stcarrez\/mat"} {"commit":"44c560358e27dd3dc2bb7141db0b68f1394b553f","old_file":"samples\/objcalc.adb","new_file":"samples\/objcalc.adb","old_contents":"","new_contents":"with Ada.Text_IO;\nwith Ada.Command_Line;\nwith Util.Beans.Objects;\nprocedure ObjCalc is\n\n package UBO renames Util.Beans.Objects;\n\n use type UBO.Object;\n\n Value : UBO.Object := UBO.To_Object (Integer (0));\nbegin\n Value := Value + UBO.To_Object (Integer (123));\n Value := Value - UBO.To_Object (String '(\"12\"));\n\n -- Should print '111'\n Ada.Text_IO.Put_Line (UBO.To_String (Value));\nend ObjCalc;\n","subject":"Add very simple examples for Objects","message":"Add very simple examples for Objects\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"1e9f773279eb4ffb37ff960027b3727a3fec1a36","old_file":"mat\/regtests\/mat-targets-tests.adb","new_file":"mat\/regtests\/mat-targets-tests.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- mat-readers-tests -- Unit tests for MAT readers\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Ada.Directories;\nwith Util.Test_Caller;\n\nwith MAT.Readers.Files;\npackage body MAT.Targets.Tests is\n\n use Util.Tests;\n\n package Caller is new Util.Test_Caller (Test, \"Files\");\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite) is\n begin\n Caller.Add_Test (Suite, \"Test MAT.Targets.Read_File\",\n Test_Read_File'Access);\n end Add_Tests;\n\n -- ------------------------------\n -- Test reading a file into a string\n -- Reads this ada source file and checks we have read it correctly\n -- ------------------------------\n procedure Test_Read_File (T : in out Test) is\n Path : constant String := Util.Tests.Get_Test_Path (\"regtests\/files\/file-v1.dat\");\n Target : MAT.Targets.Target_Type;\n Reader : MAT.Readers.Files.File_Reader_Type;\n begin\n Target.Initialize (Reader);\n Reader.Open (Path);\n Reader.Read_All;\n end Test_Read_File;\n\nend MAT.Targets.Tests;\n","subject":"Implement a simple unit test for MAT.Targets package","message":"Implement a simple unit test for MAT.Targets package\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/mat,stcarrez\/mat,stcarrez\/mat"} {"commit":"f3d0cd715516dfc5aa8eb80bbc046487401693b6","old_file":"regtests\/util-events-timers-tests.ads","new_file":"regtests\/util-events-timers-tests.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- util-events-timers-tests -- Unit tests for timers\n-- Copyright (C) 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\n\npackage Util.Events.Timers.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test\n and Util.Events.Timers.Timer with record\n Count : Natural := 0;\n end record;\n\n overriding\n procedure Time_Handler (Sub : in out Test;\n Event : in out Timer_Ref'Class);\n\n procedure Test_Timer_Event (T : in out Test);\n\nend Util.Events.Timers.Tests;\n","subject":"Add new unit tests for the timer management package","message":"Add new unit tests for the timer management package\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"1fdd3a7d6a46a0b94aa29b3ad90b4da207414686","old_file":"src\/asis\/a4g-a_stand.ads","new_file":"src\/asis\/a4g-a_stand.ads","old_contents":"","new_contents":"------------------------------------------------------------------------------\n-- --\n-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --\n-- --\n-- A 4 G . A _ S T A N D --\n-- --\n-- S p e c --\n-- --\n-- $Revision: 15117 $\n-- --\n-- Copyright (c) 2002, Free Software Foundation, Inc. --\n-- --\n-- ASIS-for-GNAT is free software; you can redistribute it and\/or modify it --\n-- under terms of the GNU General Public License as published by the Free --\n-- Software Foundation; either version 2, or (at your option) any later --\n-- version. ASIS-for-GNAT is distributed in the hope that it will be use- --\n-- ful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- --\n-- CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General --\n-- Public License for more details. You should have received a copy of the --\n-- GNU General Public License distributed with ASIS-for-GNAT; see file --\n-- COPYING. If not, write to the Free Software Foundation, 59 Temple Place --\n-- - Suite 330, Boston, MA 02111-1307, USA. --\n-- --\n-- --\n-- --\n-- --\n-- --\n-- --\n-- --\n-- --\n-- ASIS-for-GNAT was originally developed by the ASIS-for-GNAT team at the --\n-- Software Engineering Laboratory of the Swiss Federal Institute of --\n-- Technology (LGL-EPFL) in Lausanne, Switzerland, in cooperation with the --\n-- Scientific Research Computer Center of Moscow State University (SRCC --\n-- MSU), Russia, with funding partially provided by grants from the Swiss --\n-- National Science Foundation and the Swiss Academy of Engineering --\n-- Sciences. ASIS-for-GNAT is now maintained by Ada Core Technologies Inc --\n-- (http:\/\/www.gnat.com). --\n-- --\n------------------------------------------------------------------------------\n\n-- We need this renaming because the GNAT Stand package and the ASIS A4G.Stand\n-- package conflict if mentioned in the same context clause. This renaming\n-- seems to be the cheapest way to correct the old bad choice of the name\n-- of the ASIS package (A4G.Stand)\n\nwith A4G.Stand;\n\npackage A4G.A_Stand renames A4G.Stand;\n","subject":"Add the ASIS file $i","message":"Add the ASIS file $i\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/dynamo,stcarrez\/dynamo,stcarrez\/dynamo"} {"commit":"26ed1ef0aa7c7edba7a4c2eec2f6b65121d07252","old_file":"awa\/plugins\/awa-mail\/src\/aws\/awa-mail-clients-aws_smtp-initialize_ssl.adb","new_file":"awa\/plugins\/awa-mail\/src\/aws\/awa-mail-clients-aws_smtp-initialize_ssl.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- awa-mail-clients-aws_smtp-initialize -- Initialize SMTP client with SSL support\n-- Copyright (C) 2016 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nseparate (AWA.Mail.Clients.AWS_SMTP)\n\nprocedure Initialize (Client : in out AWS_Mail_Manager'Class;\n Props : in Util.Properties.Manager'Class) is\n\n Server : constant String := Props.Get (Name => \"smtp.host\", Default => \"localhost\");\n User : constant String := Props.Get (Name => \"smtp.user\", Default => \"\");\n Passwd : constant String := Props.Get (Name => \"smtp.password\", Default => \"\");\n Secure : constant String := Props.Get (Name => \"smtp.ssl\", Default => \"0\");\nbegin\n Client.Secure := Secure = \"1\" or Secure = \"yes\" or Secure = \"true\";\n if User'Length > 0 then\n Client.Creds := AWS.SMTP.Authentication.Plain.Initialize (User, Passwd);\n Client.Server := AWS.SMTP.Client.Initialize (Server_Name => Server,\n Port => Client.Port,\n Secure => Client.Secure,\n Credential => Client.Creds'Access);\n else\n Client.Server := AWS.SMTP.Client.Initialize (Server_Name => Server,\n Port => Client.Port,\n Secure => Client.Secure);\n end if;\nend Initialize;\n","subject":"Implement the Initialize procedure with SSL support (AWS version starting from gnat-2015)","message":"Implement the Initialize procedure with SSL support (AWS version starting from gnat-2015)\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa"} {"commit":"4333b1bcaa297968d1e17d9ac7be13ee055e76ce","old_file":"regtests\/check_build\/gen-tests-packages.ads","new_file":"regtests\/check_build\/gen-tests-packages.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- Test -- Test the code generation\n-- Copyright (C) 2012 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Tests.Packages is\n\nend Gen.Tests.Packages;\n","subject":"Add the package to build the generated Ada packages (UML packages test)","message":"Add the package to build the generated Ada packages (UML packages test)\n","lang":"Ada","license":"apache-2.0","repos":"Letractively\/ada-gen,Letractively\/ada-gen,Letractively\/ada-gen,Letractively\/ada-gen"} {"commit":"68b6898995e461a39bcb7edfa212a2b394bba929","old_file":"src\/security-auth-oauth-facebook.ads","new_file":"src\/security-auth-oauth-facebook.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- security-auth-oauth-facebook -- Facebook OAuth based authentication\n-- Copyright (C) 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Security.OAuth.Clients;\npackage Security.Auth.OAuth.Facebook is\n\n -- ------------------------------\n -- OAuth Manager\n -- ------------------------------\n -- The Manager<\/b> provides the core operations for the OAuth authorization process.\n type Manager is new Security.Auth.OAuth.Manager with private;\n\n -- Verify the OAuth access token and retrieve information about the user.\n overriding\n procedure Verify_Access_Token (Realm : in Manager;\n Assoc : in Association;\n Request : in Parameters'Class;\n Token : in Security.OAuth.Clients.Access_Token_Access;\n Result : in out Authentication);\n\nprivate\n\n type Manager is new Security.Auth.OAuth.Manager with null record;\n\nend Security.Auth.OAuth.Facebook;\n","subject":"Define the Facebook authentication by using OAuth and Facebook Graph API","message":"Define the Facebook authentication by using OAuth and Facebook Graph API\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-security"} {"commit":"0fb91254d56bbf2d5930942952ec4bbd3d20d0cc","old_file":"regtests\/gen-artifacts-yaml-tests.adb","new_file":"regtests\/gen-artifacts-yaml-tests.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- gen-artifacts-yaml-tests -- Tests for YAML model files\n-- Copyright (C) 2018 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Ada.Strings.Unbounded;\n\nwith Util.Test_Caller;\n\nwith Gen.Configs;\nwith Gen.Generator;\npackage body Gen.Artifacts.Yaml.Tests is\n\n use Ada.Strings.Unbounded;\n\n package Caller is new Util.Test_Caller (Test, \"Gen.Yaml\");\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite) is\n begin\n Caller.Add_Test (Suite, \"Test Gen.Yaml.Read_Model\",\n Test_Read_Yaml'Access);\n end Add_Tests;\n\n -- ------------------------------\n -- Test reading the YAML files defines in regression tests.\n -- ------------------------------\n procedure Test_Read_Yaml (T : in out Test) is\n\n A : Artifact;\n G : Gen.Generator.Handler;\n C : constant String := Util.Tests.Get_Parameter (\"config_dir\", \"config\");\n\n Path : constant String := Util.Tests.Get_Path (\"regtests\/files\/users.yaml\");\n Model : Gen.Model.Packages.Model_Definition;\n Iter : Gen.Model.Packages.Package_Cursor;\n Cnt : Natural := 0;\n begin\n Gen.Generator.Initialize (G, Ada.Strings.Unbounded.To_Unbounded_String (C), False);\n A.Read_Model (Path, Model, G);\n\n Iter := Model.First;\n while Gen.Model.Packages.Has_Element (Iter) loop\n Cnt := Cnt + 1;\n Gen.Model.Packages.Next (Iter);\n end loop;\n Util.Tests.Assert_Equals (T, 1, Cnt, \"Missing some packages\");\n end Test_Read_Yaml;\n\nend Gen.Artifacts.Yaml.Tests;\n","subject":"Add test for YAML model support","message":"Add test for YAML model support\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/dynamo,stcarrez\/dynamo,stcarrez\/dynamo"} {"commit":"8ababa1ca39b8d8a902e7b931064abcd3bdd67fc","old_file":"samples\/escape.adb","new_file":"samples\/escape.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- escape -- Text Transformations\n-- Copyright (C) 2001, 2002, 2003, 2006, 2008, 2009, 2010 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Util.Strings.Transforms;\nwith Ada.Strings.Unbounded;\nwith Ada.Text_IO;\nwith Ada.Command_Line;\n\nprocedure Escape is\n\n use Ada.Strings.Unbounded;\n\n Count : constant Natural := Ada.Command_Line.Argument_Count;\nbegin\n if Count = 0 then\n Ada.Text_IO.Put_Line (\"Usage: escape string...\");\n return;\n end if;\n for I in 1 .. Count loop\n declare\n S : constant String := Ada.Command_Line.Argument (I);\n begin\n Ada.Text_IO.Put_Line (\"Escape javascript : \"\n & Util.Strings.Transforms.Escape_Javascript (S));\n Ada.Text_IO.Put_Line (\"Escape XML : \"\n & Util.Strings.Transforms.Escape_Xml (S));\n end;\n end loop;\nend Escape;\n","subject":"Add simple example for text transformations","message":"Add simple example for text transformations\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"5c024f1dee98004b825686a6331fba5ccd0f8b21","old_file":"regtests\/util-streams-buffered-encoders-tests.adb","new_file":"regtests\/util-streams-buffered-encoders-tests.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- util-streams-buffered-encoders-tests -- Unit tests for encoding buffered streams\n-- Copyright (C) 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Util.Test_Caller;\nwith Util.Streams.Files;\nwith Util.Streams.Texts;\nwith Util.Files;\nwith Ada.Streams.Stream_IO;\npackage body Util.Streams.Buffered.Encoders.Tests is\n\n use Util.Tests;\n use Util.Streams.Files;\n use Ada.Streams.Stream_IO;\n\n package Caller is new Util.Test_Caller (Test, \"Streams.Buffered.Encoders\");\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite) is\n begin\n Caller.Add_Test (Suite, \"Test Util.Streams.Buffered.Encoders.Write, Read\",\n Test_Base64_Stream'Access);\n end Add_Tests;\n\n procedure Test_Base64_Stream (T : in out Test) is\n Stream : aliased File_Stream;\n Buffer : aliased Util.Streams.Buffered.Encoders.Encoding_Stream;\n Print : Util.Streams.Texts.Print_Stream;\n Path : constant String := Util.Tests.Get_Test_Path (\"regtests\/result\/test-stream.b64\");\n Expect : constant String := Util.Tests.Get_Path (\"regtests\/expect\/test-stream.b64\");\n begin\n Print.Initialize (Output => Buffer'Unchecked_Access, Size => 5);\n Buffer.Initialize (Output => Stream'Unchecked_Access,\n Size => 1024,\n Format => Util.Encoders.BASE_64);\n Stream.Create (Mode => Out_File, Name => Path);\n for I in 1 .. 32 loop\n Print.Write (\"abcd\");\n Print.Write (\" fghij\");\n Print.Write (ASCII.LF);\n end loop;\n Print.Flush;\n Stream.Close;\n\n Util.Tests.Assert_Equal_Files (T => T,\n Expect => Expect,\n Test => Path,\n Message => \"Base64 stream\");\n end Test_Base64_Stream;\n\nend Util.Streams.Buffered.Encoders.Tests;\n","subject":"Implement a new test to verify the Base64 encoding stream","message":"Implement a new test to verify the Base64 encoding stream\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"6c92da4b4a18fd130e2bdee09bb2fc4a148978d3","old_file":"src\/util-encoders-sha256.adb","new_file":"src\/util-encoders-sha256.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- util-encoders-sha256 -- Compute SHA-1 hash\n-- Copyright (C) 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Util.Encoders.Base64;\n\npackage body Util.Encoders.SHA256 is\n\n -- ------------------------------\n -- Computes the SHA256 hash and returns the raw binary hash in Hash<\/b>.\n -- ------------------------------\n procedure Finish (E : in out Context;\n Hash : out Hash_Array) is\n begin\n Hash := GNAT.SHA256.Digest (E);\n E := GNAT.SHA256.Initial_Context;\n end Finish;\n\n -- ------------------------------\n -- Computes the SHA256 hash and returns the hexadecimal hash in Hash<\/b>.\n -- ------------------------------\n procedure Finish (E : in out Context;\n Hash : out Digest) is\n begin\n Hash := GNAT.SHA256.Digest (E);\n E := GNAT.SHA256.Initial_Context;\n end Finish;\n\n -- ------------------------------\n -- Computes the SHA256 hash and returns the base64 hash in Hash<\/b>.\n -- ------------------------------\n procedure Finish_Base64 (E : in out Context;\n Hash : out Base64_Digest) is\n Buf : Ada.Streams.Stream_Element_Array (1 .. Hash'Length);\n for Buf'Address use Hash'Address;\n pragma Import (Ada, Buf);\n\n H : Hash_Array;\n B : Util.Encoders.Base64.Encoder;\n Last : Ada.Streams.Stream_Element_Offset;\n Encoded : Ada.Streams.Stream_Element_Offset;\n begin\n Finish (E, H);\n E := GNAT.SHA256.Initial_Context;\n B.Transform (Data => H, Into => Buf, Last => Last, Encoded => Encoded);\n end Finish_Base64;\n\nend Util.Encoders.SHA256;\n","subject":"Implement the operations for the SHA256 package","message":"Implement the operations for the SHA256 package\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"7a3790a903d91013b2fbc9119e23c8da361bf9af","old_file":"orka_simd\/src\/x86\/gnat\/orka-simd-avx-longs-convert.ads","new_file":"orka_simd\/src\/x86\/gnat\/orka-simd-avx-longs-convert.ads","old_contents":"","new_contents":"-- SPDX-License-Identifier: Apache-2.0\n--\n-- Copyright (c) 2021 onox \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\nwith Orka.SIMD.AVX.Doubles;\n\npackage Orka.SIMD.AVX.Longs.Convert is\n pragma Pure;\n\n use SIMD.AVX.Doubles;\n\n function Convert (Elements : m256d) return m256l\n with Import, Convention => Intrinsic, External_Name => \"__builtin_ia32_cvtpd2dq256\";\n\n function Convert (Elements : m256l) return m256d\n with Import, Convention => Intrinsic, External_Name => \"__builtin_ia32_cvtdq2pd256\";\n\nend Orka.SIMD.AVX.Longs.Convert;\n","subject":"Add missing ads file for package Orka.SIMD.AVX.Longs.Convert","message":"simd: Add missing ads file for package Orka.SIMD.AVX.Longs.Convert\n\nSigned-off-by: onox <34c1d3d2d1347bea60a26f46574de21a7a79b6d5@gmail.com>\n","lang":"Ada","license":"apache-2.0","repos":"onox\/orka"} {"commit":"2026df8bec7e0468de8afcde7b119d84e369b255","old_file":"src\/asf-filters-cache_control.ads","new_file":"src\/asf-filters-cache_control.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- asf-filters-cache_control -- HTTP response Cache-Control settings\n-- Copyright (C) 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Ada.Strings.Unbounded;\n\nwith ASF.Requests;\nwith ASF.Responses;\nwith ASF.Servlets;\n\n-- The ASF.Filters.Cache_Control<\/b> package implements a servlet filter to add\n-- cache control headers in a response.\n--\npackage ASF.Filters.Cache_Control is\n\n -- Filter configuration parameter, when not empty, add a Vary header in the response.\n VARY_HEADER_PARAM : constant String := \"header.vary\";\n\n -- Filter configuration parameter, defines the expiration date in seconds relative\n -- to the current date. When 0, disable browser caching.\n CACHE_CONTROL_PARAM : constant String := \"header.cache-control\";\n\n type Cache_Control_Filter is new ASF.Filters.Filter with record\n Vary : Ada.Strings.Unbounded.Unbounded_String;\n Cache_Control_Header : Ada.Strings.Unbounded.Unbounded_String;\n end record;\n\n -- The Do_Filter method of the Filter is called by the container each time\n -- a request\/response pair is passed through the chain due to a client request\n -- for a resource at the end of the chain. The Cache_Control<\/b> filter adds\n -- a Cache-Control<\/tt>, Expires<\/tt>, Pragma<\/tt> and optionally a\n -- Vary<\/tt> header in the HTTP response.\n overriding\n procedure Do_Filter (F : in Cache_Control_Filter;\n Request : in out Requests.Request'Class;\n Response : in out Responses.Response'Class;\n Chain : in out ASF.Servlets.Filter_Chain);\n\n -- Called by the servlet container to indicate to a filter that the filter\n -- instance is being placed into service.\n procedure Initialize (Server : in out Cache_Control_Filter;\n Config : in ASF.Servlets.Filter_Config);\n\nend ASF.Filters.Cache_Control;\n","subject":"Define the Cache_Control package with Cache_Control_Filter type to add a Cache-Control, Vary headers in the HTTP response","message":"Define the Cache_Control package with Cache_Control_Filter type to add\na Cache-Control, Vary headers in the HTTP response\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-asf,stcarrez\/ada-asf,stcarrez\/ada-asf"} {"commit":"e3e5c90ba726d8d051ea00d80e7c71cfa58f1bad","old_file":"awa\/plugins\/awa-counters\/src\/awa-counters-beans.adb","new_file":"awa\/plugins\/awa-counters\/src\/awa-counters-beans.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- awa-counters-beans -- Counter bean definition\n-- Copyright (C) 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage body AWA.Counters.Beans is\n\n -- ------------------------------\n -- Get the value identified by the name.\n -- ------------------------------\n overriding\n function Get_Value (From : in Counter_Bean;\n Name : in String) return Util.Beans.Objects.Object is\n begin\n return Util.Beans.Objects.To_Object (From.Value);\n end Get_Value;\n\nend AWA.Counters.Beans;\n","subject":"Implement the Get_Value procedure for the Counter_Bean","message":"Implement the Get_Value procedure for the Counter_Bean\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa"} {"commit":"f1bf7d2f673d7ae956fd9bfe21f1cc70a65c8c20","old_file":"awa\/plugins\/awa-mail\/src\/aws\/awa-mail-clients-aws_smtp-initialize_nossl.adb","new_file":"awa\/plugins\/awa-mail\/src\/aws\/awa-mail-clients-aws_smtp-initialize_nossl.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- awa-mail-clients-aws_smtp-initialize -- Initialize SMTP client without SSL support\n-- Copyright (C) 2016 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nseparate (AWA.Mail.Clients.AWS_SMTP)\n\nprocedure Initialize (Client : in out AWS_Mail_Manager'Class;\n Props : in Util.Properties.Manager'Class) is\n\n Server : constant String := Props.Get (Name => \"smtp.host\", Default => \"localhost\");\n User : constant String := Props.Get (Name => \"smtp.user\", Default => \"\");\n Passwd : constant String := Props.Get (Name => \"smtp.password\", Default => \"\");\nbegin\n if User'Length > 0 then\n Client.Creds := AWS.SMTP.Authentication.Plain.Initialize (User, Passwd);\n Client.Server := AWS.SMTP.Client.Initialize (Server_Name => Server,\n Port => Client.Port,\n Credential => Client.Creds'Access);\n else\n Client.Server := AWS.SMTP.Client.Initialize (Server_Name => Server,\n Port => Client.Port);\n end if;\nend Initialize;\n","subject":"Implement the Initialize procedure for AWS version before gnat-2015 (aws 3.1)","message":"Implement the Initialize procedure for AWS version before gnat-2015 (aws 3.1)\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa"} {"commit":"53d8446e039e408d2703f3d62ed3935fba45fa0f","old_file":"src\/asis\/a4g.ads","new_file":"src\/asis\/a4g.ads","old_contents":"","new_contents":"------------------------------------------------------------------------------\n-- --\n-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --\n-- --\n-- A 4 G . A _ S E M --\n-- --\n-- S p e c --\n-- --\n-- Copyright (C) 1995-2012, Free Software Foundation, Inc. --\n-- --\n-- ASIS-for-GNAT is free software; you can redistribute it and\/or modify it --\n-- under terms of the GNU General Public License as published by the Free --\n-- Software Foundation; either version 2, or (at your option) any later --\n-- version. ASIS-for-GNAT is distributed in the hope that it will be use- --\n-- ful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- --\n-- CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General --\n-- Public License for more details. You should have received a copy of the --\n-- GNU General Public License distributed with ASIS-for-GNAT; see file --\n-- COPYING. If not, write to the Free Software Foundation, 59 Temple Place --\n-- - Suite 330, Boston, MA 02111-1307, USA. --\n-- --\n-- --\n-- --\n-- --\n-- --\n-- --\n-- --\n-- --\n-- ASIS-for-GNAT was originally developed by the ASIS-for-GNAT team at the --\n-- Software Engineering Laboratory of the Swiss Federal Institute of --\n-- Technology (LGL-EPFL) in Lausanne, Switzerland, in cooperation with the --\n-- Scientific Research Computer Center of Moscow State University (SRCC --\n-- MSU), Russia, with funding partially provided by grants from the Swiss --\n-- National Science Foundation and the Swiss Academy of Engineering --\n-- Sciences. ASIS-for-GNAT is now maintained by Ada Core Technologies Inc --\n-- (http:\/\/www.gnat.com). --\n-- --\n------------------------------------------------------------------------------\n\n-- This package is the root of the ASIS-for-GNAT implementation hierarchy.\n-- All the implementation components, except Asis.Set_Get and\n-- Asis.Text.Set_Get (which need access to the private parts of the\n-- corresponding ASIS interface packages), are children or grandchildren of\n-- A4G. (A4G stands for Asis For GNAT).\n--\n-- The primary aim of this package is to constrain the pollution of the user\n-- namespace when using the ASIS library to create ASIS applications, by\n-- children of A4G.\n\npackage A4G is\n pragma Pure (A4G);\nend A4G;\n","subject":"Add the ASIS file $i","message":"Add the ASIS file $i","lang":"Ada","license":"apache-2.0","repos":"Letractively\/ada-gen,Letractively\/ada-gen,Letractively\/ada-gen,Letractively\/ada-gen"} {"commit":"54d9999913c0380c7b754917efbe2902d266f20d","old_file":"src\/security-auth-oauth-facebook.ads","new_file":"src\/security-auth-oauth-facebook.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- security-auth-oauth-facebook -- Facebook OAuth based authentication\n-- Copyright (C) 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Security.OAuth.Clients;\npackage Security.Auth.OAuth.Facebook is\n\n -- ------------------------------\n -- OAuth Manager\n -- ------------------------------\n -- The Manager<\/b> provides the core operations for the OAuth authorization process.\n type Manager is new Security.Auth.OAuth.Manager with private;\n\n -- Verify the OAuth access token and retrieve information about the user.\n overriding\n procedure Verify_Access_Token (Realm : in Manager;\n Assoc : in Association;\n Request : in Parameters'Class;\n Token : in Security.OAuth.Clients.Access_Token_Access;\n Result : in out Authentication);\n\nprivate\n\n type Manager is new Security.Auth.OAuth.Manager with null record;\n\nend Security.Auth.OAuth.Facebook;\n","subject":"Define the Facebook authentication by using OAuth and Facebook Graph API","message":"Define the Facebook authentication by using OAuth and Facebook Graph API\n","lang":"Ada","license":"apache-2.0","repos":"Letractively\/ada-security"} {"commit":"5c106d6d731043c44152c504e1b4e4228a9a23e4","old_file":"regtests\/util-events-timers-tests.adb","new_file":"regtests\/util-events-timers-tests.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- util-events-timers-tests -- Unit tests for timers\n-- Copyright (C) 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\nwith Util.Test_Caller;\n\npackage body Util.Events.Timers.Tests is\n\n use Util.Tests;\n use type Ada.Real_Time.Time;\n\n package Caller is new Util.Test_Caller (Test, \"Events.Timers\");\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite) is\n begin\n Caller.Add_Test (Suite, \"Test Util.Events.Channels.Post_Event\",\n Test_Timer_Event'Access);\n end Add_Tests;\n\n overriding\n procedure Time_Handler (Sub : in out Test;\n Event : in out Timer_Ref'Class) is\n begin\n Sub.Count := Sub.Count + 1;\n end Time_Handler;\n\n procedure Test_Timer_Event (T : in out Test) is\n M : Timer_List;\n R : Timer_Ref;\n Start : Ada.Real_Time.Time := Ada.Real_Time.Clock;\n Deadline : Ada.Real_Time.Time;\n Now : Ada.Real_Time.Time;\n begin\n T.Assert (not R.Is_Scheduled, \"Empty timer should not be scheduled\");\n for Retry in 1 .. 10 loop\n M.Set_Timer (T'Unchecked_Access, R, Start + Ada.Real_Time.Milliseconds (10));\n M.Process (Deadline);\n Now := Ada.Real_Time.Clock;\n exit when Now < Deadline;\n end loop;\n T.Assert (Now < Deadline, \"The timer deadline is not correct\");\n delay until Deadline;\n M.Process (Deadline);\n Assert_Equals (T, 1, T.Count, \"The timer handler was not called\");\n end Test_Timer_Event;\n\nend Util.Events.Timers.Tests;\n","subject":"Implement the new unit tests for the timer management","message":"Implement the new unit tests for the timer management\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"1a693428d2729913570a5daa668c9d869edb1d68","old_file":"src\/wiki-plugins-conditions.ads","new_file":"src\/wiki-plugins-conditions.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- wiki-plugins-conditions -- Condition Plugin\n-- Copyright (C) 2016 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Wiki.Strings;\n\n-- === Conditions Plugins ===\n-- The Wiki.Plugins.Conditions<\/b> package defines a set of conditional plugins\n-- to show or hide wiki content according to some conditions evaluated during the parsing phase.\n--\npackage Wiki.Plugins.Conditions is\n\n MAX_CONDITION_DEPTH : constant Natural := 31;\n\n type Condition_Depth is new Natural range 0 .. MAX_CONDITION_DEPTH;\n\n type Condition_Type is (CONDITION_IF, CONDITION_ELSIF, CONDITION_ELSE, CONDITION_END);\n\n type Condition_Plugin is new Wiki_Plugin with private;\n\n -- Evaluate the condition and return it as a boolean status.\n function Evaluate (Plugin : in Condition_Plugin;\n Params : in Wiki.Attributes.Attribute_List) return Boolean;\n\n -- Get the type of condition (IF, ELSE, ELSIF, END) represented by the plugin.\n function Get_Condition_Kind (Plugin : in Condition_Plugin;\n Params : in Wiki.Attributes.Attribute_List)\n return Condition_Type;\n\n -- Evaluate the condition described by the parameters and hide or show the wiki\n -- content.\n overriding\n procedure Expand (Plugin : in out Condition_Plugin;\n Document : in out Wiki.Documents.Document;\n Params : in out Wiki.Attributes.Attribute_List;\n Context : in Plugin_Context);\n\n -- Append the attribute name\/value to the condition plugin parameter list.\n procedure Append (Plugin : in out Condition_Plugin;\n Name : in Wiki.Strings.WString;\n Value : in Wiki.Strings.WString);\n\nprivate\n\n type Boolean_Array is array (Condition_Depth) of Boolean;\n pragma Pack (Boolean_Array);\n\n type Condition_Plugin is new Wiki_Plugin with record\n Depth : Condition_Depth := 1;\n Values : Boolean_Array := (others => False);\n Params : Wiki.Attributes.Attribute_List;\n end record;\n\nend Wiki.Plugins.Conditions;\n","subject":"Declare the Conditions package with the Condition_Plugin type for the support of conditional inclusion in wiki text","message":"Declare the Conditions package with the Condition_Plugin type for the\nsupport of conditional inclusion in wiki text\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-wiki,stcarrez\/ada-wiki"} {"commit":"0a218952eaf96cb0031e33cb23e62404d11e73e1","old_file":"src\/asf-rest.adb","new_file":"src\/asf-rest.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- asf-rest -- REST Support\n-- Copyright (C) 2016 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage body ASF.Rest is\n\n -- ------------------------------\n -- Get the permission index associated with the REST operation.\n -- ------------------------------\n function Get_Permission (Handler : in Descriptor)\n return Security.Permissions.Permission_Index is\n begin\n return Handler.Permission;\n end Get_Permission;\n\n -- ------------------------------\n -- Register the API descriptor in a list.\n -- ------------------------------\n procedure Register (List : in out Descriptor_Access;\n Item : in Descriptor_Access) is\n begin\n Item.Next := Item;\n List := Item;\n end Register;\n\nend ASF.Rest;\n","subject":"Implement the Get_Permission and Register operations","message":"Implement the Get_Permission and Register operations\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-asf,stcarrez\/ada-asf,stcarrez\/ada-asf"} {"commit":"752bf742c903771675043ab532f7af8829238c29","old_file":"regtests\/ado-drivers-tests.ads","new_file":"regtests\/ado-drivers-tests.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- ado-drivers-tests -- Unit tests for database drivers\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\npackage ADO.Drivers.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n -- Test the Get_Config operation.\n procedure Test_Get_Config (T : in out Test);\n\n -- Test the Get_Driver operation.\n procedure Test_Get_Driver (T : in out Test);\n\n -- Test loading some invalid database driver.\n procedure Test_Load_Invalid_Driver (T : in out Test);\n\n -- Test the Get_Driver_Index operation.\n procedure Test_Get_Driver_Index (T : in out Test);\n\nend ADO.Drivers.Tests;\n","subject":"Define some new tests for the database drivers support","message":"Define some new tests for the database drivers support\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-ado"} {"commit":"42ef168f4785ea2ae235595127974b66fd3effae","old_file":"regtests\/util-http-headers-tests.adb","new_file":"regtests\/util-http-headers-tests.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- util-http-headers-tests - Unit tests for Headers\n-- Copyright (C) 2022 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Test_Caller;\npackage body Util.Http.Headers.Tests is\n\n use Util.Tests;\n\n package Caller is new Util.Test_Caller (Test, \"Headers\");\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite) is\n begin\n Caller.Add_Test (Suite, \"Test Util.Http.Headers.Get_Accepted\",\n Test_Get_Accepted'Access);\n end Add_Tests;\n\n -- ------------------------------\n -- Test the Get_Accepted function.\n -- ------------------------------\n procedure Test_Get_Accepted (T : in out Test) is\n use type Mimes.Mime_Access;\n\n M : Mimes.Mime_Access;\n begin\n M := Get_Accepted (\"image\/gif\", Mimes.Images);\n T.Assert (M \/= null, \"Null mime returned\");\n T.Assert_Equals (M.all, Mimes.Gif, \"Bad accept\");\n\n M := Get_Accepted (\"image\/*\", Mimes.Images);\n T.Assert (M \/= null, \"Null mime returned\");\n T.Assert_Equals (M.all, Mimes.Jpg, \"Bad accept\");\n\n M := Get_Accepted (\"image\/* q=0.2, image\/svg+xml\", Mimes.Images);\n T.Assert (M \/= null, \"Null mime returned\");\n T.Assert_Equals (M.all, Mimes.Svg, \"Bad accept\");\n\n M := Get_Accepted (\"image\/* q=0.2, image\/svg+xml\", Mimes.Api);\n T.Assert (M = null, \"Should not match\");\n end Test_Get_Accepted;\n\nend Util.Http.Headers.Tests;\n","subject":"Add the new tests for Headers package","message":"Add the new tests for Headers package\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"7512864f63963e1afc2aa53fe42094f3f30da841","old_file":"awa\/plugins\/awa-storages\/src\/awa-storages-stores.ads","new_file":"awa\/plugins\/awa-storages\/src\/awa-storages-stores.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- awa-storages-stores -- The storage interface\n-- Copyright (C) 2012 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith ADO.Sessions;\n\nwith AWA.Storages.Models;\npackage AWA.Storages.Stores is\n\n -- ------------------------------\n -- Store Service\n -- ------------------------------\n type Store is limited interface;\n type Store_Access is access all Store'Class;\n\n procedure Save (Storage : in Store;\n Into : in out AWA.Storages.Models.Storage_Ref'Class;\n Path : in String) is abstract;\n\n procedure Load (Storage : in Store;\n From : in AWA.Storages.Models.Storage_Ref'Class;\n Into : in String) is abstract;\n\nend AWA.Storages.Stores;\n","subject":"Define the store interface to support several storage services (file, database, Amazon)","message":"Define the store interface to support several storage services (file, database, Amazon)\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa"} {"commit":"1aa454e87a39af72582305c5b9f5d9f50a18bc46","old_file":"src\/asis\/a4g.ads","new_file":"src\/asis\/a4g.ads","old_contents":"","new_contents":"------------------------------------------------------------------------------\n-- --\n-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --\n-- --\n-- A 4 G . A _ S E M --\n-- --\n-- S p e c --\n-- --\n-- Copyright (C) 1995-2012, Free Software Foundation, Inc. --\n-- --\n-- ASIS-for-GNAT is free software; you can redistribute it and\/or modify it --\n-- under terms of the GNU General Public License as published by the Free --\n-- Software Foundation; either version 2, or (at your option) any later --\n-- version. ASIS-for-GNAT is distributed in the hope that it will be use- --\n-- ful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- --\n-- CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General --\n-- Public License for more details. You should have received a copy of the --\n-- GNU General Public License distributed with ASIS-for-GNAT; see file --\n-- COPYING. If not, write to the Free Software Foundation, 59 Temple Place --\n-- - Suite 330, Boston, MA 02111-1307, USA. --\n-- --\n-- --\n-- --\n-- --\n-- --\n-- --\n-- --\n-- --\n-- ASIS-for-GNAT was originally developed by the ASIS-for-GNAT team at the --\n-- Software Engineering Laboratory of the Swiss Federal Institute of --\n-- Technology (LGL-EPFL) in Lausanne, Switzerland, in cooperation with the --\n-- Scientific Research Computer Center of Moscow State University (SRCC --\n-- MSU), Russia, with funding partially provided by grants from the Swiss --\n-- National Science Foundation and the Swiss Academy of Engineering --\n-- Sciences. ASIS-for-GNAT is now maintained by Ada Core Technologies Inc --\n-- (http:\/\/www.gnat.com). --\n-- --\n------------------------------------------------------------------------------\n\n-- This package is the root of the ASIS-for-GNAT implementation hierarchy.\n-- All the implementation components, except Asis.Set_Get and\n-- Asis.Text.Set_Get (which need access to the private parts of the\n-- corresponding ASIS interface packages), are children or grandchildren of\n-- A4G. (A4G stands for Asis For GNAT).\n--\n-- The primary aim of this package is to constrain the pollution of the user\n-- namespace when using the ASIS library to create ASIS applications, by\n-- children of A4G.\n\npackage A4G is\n pragma Pure (A4G);\nend A4G;\n","subject":"Add the ASIS file $i","message":"Add the ASIS file $i\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/dynamo,stcarrez\/dynamo,stcarrez\/dynamo"} {"commit":"ce89b61f503806b4ea588d29d54ddfb87a74b752","old_file":"src\/ado-caches.adb","new_file":"src\/ado-caches.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- ado-cache -- Simple cache management\n-- Copyright (C) 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Ada.Unchecked_Deallocation;\npackage body ADO.Caches is\n\n -- --------------------\n -- Expand the name from the given group into a target parameter value to be used in\n -- the SQL query. The expander can look in a cache or in some configuration to find\n -- the value associated with the name and return it. The Expander can return a\n -- T_NULL when a value is not found or it may also raise some exception.\n -- --------------------\n overriding\n function Expand (Instance : in Cache_Manager;\n Group : in String;\n Name : in String) return ADO.Parameters.Parameter is\n use type Ada.Strings.Unbounded.Unbounded_String;\n C : Cache_Type_Access := Instance.First;\n begin\n while C \/= null loop\n if C.Name = Group then\n return C.Expand (Name);\n end if;\n C := C.Next;\n end loop;\n raise No_Value;\n end Expand;\n\n -- --------------------\n -- Insert a new cache in the manager. The cache is identified by the given name.\n -- --------------------\n procedure Add_Cache (Manager : in out Cache_Manager;\n Name : in String;\n Cache : in Cache_Type_Access) is\n begin\n Cache.Next := Manager.First;\n Cache.Name := Ada.Strings.Unbounded.To_Unbounded_String (Name);\n Manager.First := Cache;\n end Add_Cache;\n\n -- --------------------\n -- Finalize the cache manager releasing every cache group.\n -- --------------------\n overriding\n procedure Finalize (Manager : in out Cache_Manager) is\n procedure Free is\n new Ada.Unchecked_Deallocation (Object => Cache_Type'Class,\n Name => Cache_Type_Access);\n Cache : Cache_Type_Access;\n begin\n loop\n Cache := Manager.First;\n exit when Cache = null;\n Manager.First := Cache.Next;\n Free (Cache);\n end loop;\n end Finalize;\n\nend ADO.Caches;\n","subject":"Implement the cache manager operation","message":"Implement the cache manager operation\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-ado"} {"commit":"342f736daf481f0e1212d864d48af3bc61e99d12","old_file":"regtests\/asf-filters-tests.adb","new_file":"regtests\/asf-filters-tests.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- Filters Tests - Unit tests for ASF.Filters\n-- Copyright (C) 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage body ASF.Filters.Tests is\n\n -- ------------------------------\n -- Increment the counter each time Do_Filter is called.\n -- ------------------------------\n procedure Do_Filter (F : in Test_Filter;\n Request : in out Requests.Request'Class;\n Response : in out Responses.Response'Class;\n Chain : in out ASF.Servlets.Filter_Chain) is\n begin\n F.Count.all := F.Count.all + 1;\n ASF.Servlets.Do_Filter (Chain => Chain, Request => Request, Response => Response);\n end Do_Filter;\n\n -- ------------------------------\n -- Initialize the test filter.\n -- ------------------------------\n overriding\n procedure Initialize (Server : in out Test_Filter;\n Context : in ASF.Servlets.Servlet_Registry'Class) is\n pragma Unreferenced (Context);\n begin\n Server.Count := Server.Counter'Unchecked_Access;\n end Initialize;\n\nend ASF.Filters.Tests;\n","subject":"Implement a test filter that counts the number of times it is traversed","message":"Implement a test filter that counts the number of times it is traversed\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-asf,stcarrez\/ada-asf,stcarrez\/ada-asf"} {"commit":"ec855f10061f888423fd59d429cf26b0349f4ae6","old_file":"src\/security-auth-oauth.ads","new_file":"src\/security-auth-oauth.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- security-auth-oauth -- OAuth based authentication\n-- Copyright (C) 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Security.OAuth.Clients;\nprivate package Security.Auth.OAuth is\n\n -- ------------------------------\n -- OAuth Manager\n -- ------------------------------\n -- The Manager<\/b> provides the core operations for the OAuth authorization process.\n type Manager is abstract new Security.Auth.Manager with private;\n\n -- Initialize the authentication realm.\n overriding\n procedure Initialize (Realm : in out Manager;\n Params : in Parameters'Class;\n Provider : in String := PROVIDER_OPENID);\n\n -- Discover the OpenID provider that must be used to authenticate the user.\n -- The Name<\/b> can be an URL or an alias that identifies the provider.\n -- A cached OpenID provider can be returned.\n -- Read the XRDS document from the URI and initialize the OpenID provider end point.\n -- (See OpenID Section 7.3 Discovery)\n overriding\n procedure Discover (Realm : in out Manager;\n Name : in String;\n Result : out End_Point);\n\n -- Associate the application (relying party) with the OpenID provider.\n -- The association can be cached.\n -- (See OpenID Section 8 Establishing Associations)\n overriding\n procedure Associate (Realm : in out Manager;\n OP : in End_Point;\n Result : out Association);\n\n overriding\n function Get_Authentication_URL (Realm : in Manager;\n OP : in End_Point;\n Assoc : in Association) return String;\n\n -- Verify the authentication result\n overriding\n procedure Verify (Realm : in out Manager;\n Assoc : in Association;\n Request : in Parameters'Class;\n Result : out Authentication);\n\n -- Verify the OAuth access token and retrieve information about the user.\n procedure Verify_Access_Token (Realm : in Manager;\n Assoc : in Association;\n Request : in Parameters'Class;\n Token : in Security.OAuth.Clients.Access_Token_Access;\n Result : in out Authentication) is abstract;\n\nprivate\n\n type Manager is abstract new Security.Auth.Manager with record\n Return_To : Unbounded_String;\n Realm : Unbounded_String;\n Scope : Unbounded_String;\n App : Security.OAuth.Clients.Application;\n end record;\n\nend Security.Auth.OAuth;\n","subject":"Define the OAuth based authorization","message":"Define the OAuth based authorization\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-security"} {"commit":"e8004e3c6907487bd7180bbb326536a0872e56b7","old_file":"src\/asf-parts-upload_method.ads","new_file":"src\/asf-parts-upload_method.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- asf-parts -- ASF Parts\n-- Copyright (C) 2011, 2012 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith EL.Methods.Proc_In;\n\npackage ASF.Parts.Upload_Method is\n new EL.Methods.Proc_In (Param1_Type => ASF.Parts.Part'Class);\n","subject":"Define a method and binding for an Ada bean to receive an uploaded file","message":"Define a method and binding for an Ada bean to receive an uploaded file\n","lang":"Ada","license":"apache-2.0","repos":"Letractively\/ada-asf,Letractively\/ada-asf,Letractively\/ada-asf"} {"commit":"0822601ab5f0e98e1d1fa590d1e1dcfd1dbd8e76","old_file":"src\/wiki-streams-html-builders.ads","new_file":"src\/wiki-streams-html-builders.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- wiki-streams-html-builders -- Wiki writer to a string builder\n-- Copyright (C) 2011, 2012, 2013, 2015, 2016 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Wiki.Streams.Builders;\n\n-- == Writer interfaces ==\n-- The Wiki.Writers<\/tt> package defines the interfaces used by the renderer to write\n-- their outputs.\n--\npackage Wiki.Streams.Html.Builders is\n\n type Html_Output_Builder_Stream is limited new Wiki.Streams.Builders.Output_Builder_Stream\n and Wiki.Streams.Html.Html_Output_Stream with private;\n type Html_Output_Builder_Stream_Access is access all Html_Output_Builder_Stream'Class;\n\n overriding\n procedure Write_Wide_Element (Stream : in out Html_Output_Builder_Stream;\n Name : in String;\n Content : in Wiki.Strings.WString);\n\n overriding\n procedure Write_Wide_Attribute (Stream : in out Html_Output_Builder_Stream;\n Name : in String;\n Content : in Unbounded_Wide_Wide_String);\n\n -- Write an XML attribute within an XML element.\n -- The attribute value is escaped according to the XML escape rules.\n overriding\n procedure Write_Wide_Attribute (Stream : in out Html_Output_Builder_Stream;\n Name : in String;\n Content : in Wiki.Strings.WString);\n\n overriding\n procedure Start_Element (Stream : in out Html_Output_Builder_Stream;\n Name : in String);\n\n overriding\n procedure End_Element (Stream : in out Html_Output_Builder_Stream;\n Name : in String);\n\n overriding\n procedure Write_Wide_Text (Stream : in out Html_Output_Builder_Stream;\n Content : in Wiki.Strings.WString);\n\nprivate\n\n type Html_Output_Builder_Stream is limited new Wiki.Streams.Builders.Output_Builder_Stream\n and Wiki.Streams.Html.Html_Output_Stream with record\n -- Whether an XML element must be closed (that is a '>' is necessary)\n Close_Start : Boolean := False;\n end record;\n\nend Wiki.Streams.Html.Builders;\n","subject":"Declare the Wiki.Streams.Html.Builders package for the HTML output stream","message":"Declare the Wiki.Streams.Html.Builders package for the HTML output stream\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-wiki,stcarrez\/ada-wiki"} {"commit":"d0c70ad30d82ad1685a47254bd057165d71e0629","old_file":"src\/el-beans-methods.ads","new_file":"src\/el-beans-methods.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- EL.Beans.Methods -- Bean methods\n-- Copyright (C) 2010 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Strings;\npackage EL.Beans.Methods is\n\n pragma Preelaborate;\n\n type Method_Binding is tagged limited record\n Name : Util.Strings.Name_Access;\n end record;\n type Method_Binding_Access is access constant Method_Binding'Class;\n\n type Method_Binding_Array is array (Natural range <>) of Method_Binding_Access;\n type Method_Binding_Array_Access is access constant Method_Binding_Array;\n\n type Method_Bean is limited Interface;\n type Method_Bean_Access is access all Method_Bean'Class;\n\n function Get_Method_Bindings (From : in Method_Bean)\n return Method_Binding_Array_Access is abstract;\n\nend EL.Beans.Methods;\n","subject":"Declare the method binding types","message":"Declare the method binding types\n","lang":"Ada","license":"apache-2.0","repos":"Letractively\/ada-el"} {"commit":"c6ece4d4f43f0124c8c7c2ff24ede06860c0b80e","old_file":"src\/ado-utils.adb","new_file":"src\/ado-utils.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- ado-utils -- Utility operations for ADO\n-- Copyright (C) 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage body ADO.Utils is\n\n -- ------------------------------\n -- Build a bean object from the identifier.\n -- ------------------------------\n function To_Object (Id : in ADO.Identifier) return Util.Beans.Objects.Object is\n begin\n if Id = ADO.NO_IDENTIFIER then\n return Util.Beans.Objects.Null_Object;\n else\n return Util.Beans.Objects.To_Object (Long_Long_Integer (Id));\n end if;\n end To_Object;\n\n -- ------------------------------\n -- Build the identifier from the bean object.\n -- ------------------------------\n function To_Identifier (Value : in Util.Beans.Objects.Object) return ADO.Identifier is\n begin\n if Util.Beans.Objects.Is_Null (Value) then\n return ADO.NO_IDENTIFIER;\n else\n return ADO.Identifier (Util.Beans.Objects.To_Long_Long_Integer (Value));\n end if;\n end To_Identifier;\n\nend ADO.Utils;\n","subject":"Implement To_Identifier and To_Object operations","message":"Implement To_Identifier and To_Object operations\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-ado"} {"commit":"7fab750eecd0897e0a55bcedf03b94d62a192e7c","old_file":"src\/asf-components-widgets-selects.adb","new_file":"src\/asf-components-widgets-selects.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- components-widgets-selects -- Select component with jQuery Chosen\n-- Copyright (C) 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith ASF.Contexts.Writer;\nwith ASF.Components.Base;\npackage body ASF.Components.Widgets.Selects is\n\n -- ------------------------------\n -- Render the chosen configuration script.\n -- ------------------------------\n overriding\n procedure Encode_End (UI : in UIChosen;\n Context : in out ASF.Contexts.Faces.Faces_Context'Class) is\n use type ASF.Components.Base.UIComponent_Access;\n\n procedure Process (Content : in String);\n\n Writer : constant Contexts.Writer.Response_Writer_Access := Context.Get_Response_Writer;\n Facets : ASF.Components.Base.UIComponent_Access;\n\n procedure Process (Content : in String) is\n begin\n Writer.Queue_Script (Content);\n end Process;\n\n begin\n if not UI.Is_Rendered (Context) then\n return;\n end if;\n Writer.Queue_Script (\"$('#\");\n Writer.Queue_Script (UI.Get_Client_Id);\n Writer.Queue_Script (\"').chosen({\");\n\n -- If there is an options facet, render it now.\n Facets := UI.Get_Facet (OPTIONS_FACET_NAME);\n if Facets \/= null then\n Facets.Wrap_Encode_Children (Context, Process'Access);\n end if;\n Writer.Queue_Script (\"})\");\n\n Facets := UI.Get_Facet (EVENTS_FACET_NAME);\n if Facets \/= null then\n Facets.Wrap_Encode_Children (Context, Process'Access);\n end if;\n\n Writer.Queue_Script (\";\");\n end Encode_End;\n\nend ASF.Components.Widgets.Selects;\n","subject":"Implement the UIChosen support to generate the jQuery chosen activation script","message":"Implement the UIChosen support to generate the jQuery chosen activation script\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-asf,stcarrez\/ada-asf,stcarrez\/ada-asf"} {"commit":"7bf39aa32ee428ed6636ec8a1ac25b0aa6bb4fa8","old_file":"awa\/src\/awa-oauth-services.ads","new_file":"awa\/src\/awa-oauth-services.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- awa-oauth-services -- OAuth Server Side\n-- Copyright (C) 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Security.OAuth.Servers;\npackage AWA.OAuth.Services is\n\n type Auth_Manager is new Security.OAuth.Servers.Auth_Manager with private;\n type Auth_Manager_Access is access all Auth_Manager'Class;\n\nprivate\n\n type Auth_Manager is new Security.OAuth.Servers.Auth_Manager with record\n N : Natural; \n end record;\n\nend AWA.OAuth.Services;\n","subject":"Declare the AWA.OAuth.Services package with the Auth_Manager","message":"Declare the AWA.OAuth.Services package with the Auth_Manager\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa"} {"commit":"e91ebec06bf858ee75cac5ccd264f2a9369d502c","old_file":"rts\/boards\/i386\/adainclude\/last_chance_handler.ads","new_file":"rts\/boards\/i386\/adainclude\/last_chance_handler.ads","old_contents":"-- -*- Mode: Ada -*-\n-- Filename : last_chance_handler.ads\n-- Description : Definition of the exception handler for the kernel.\n-- Author : Luke A. Guest\n-- Created On : Thu Jun 14 12:06:21 2012\n-- Licence : See LICENCE in the root directory.\nwith System;\n\nprocedure Last_Chance_Handler\n (Source_Location : System.Address; Line : Integer);\npragma Export (C, Last_Chance_Handler, \"__gnat_last_chance_handler\");\n","new_contents":"-- -*- Mode: Ada -*-\n-- Filename : last_chance_handler.ads\n-- Description : Definition of the exception handler for the kernel.\n-- Author : Luke A. Guest\n-- Created On : Thu Jun 14 12:06:21 2012\n-- Licence : See LICENCE in the root directory.\nwith System;\n\nprocedure Last_Chance_Handler\n (Source_Location : System.Address; Line : Integer);\npragma Export (C, Last_Chance_Handler, \"__gnat_last_chance_handler\");\npragma Preelaborate (Last_Chance_Handler);\n","subject":"Make this package Preelaborate so a-except can depend on it.","message":"Make this package Preelaborate so a-except can depend on it.\n","lang":"Ada","license":"bsd-2-clause","repos":"Lucretia\/tamp2,Lucretia\/bare_bones,robdaemon\/bare_bones"} {"commit":"0016f157639026a64feda2aa716041301d3c6f94","old_file":"tools\/druss-config.adb","new_file":"tools\/druss-config.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- druss-config -- Configuration management for Druss\n-- Copyright (C) 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Ada.Environment_Variables;\nwith Ada.Directories;\nwith Util.Files;\npackage body Druss.Config is\n\n Cfg : Util.Properties.Manager;\n\n -- ------------------------------\n -- Initialize the configuration.\n -- ------------------------------\n procedure Initialize is\n Home : constant String := Ada.Environment_Variables.Value (\"HOME\");\n Path : constant String := Util.Files.Compose (Home, \".config\/druss\/druss.properties\");\n begin\n if Ada.Directories.Exists (Path) then\n Cfg.Load_Properties (Path);\n end if;\n end Initialize;\n\n -- ------------------------------\n -- Get the configuration parameter.\n -- ------------------------------\n function Get (Name : in String) return String is\n begin\n return Cfg.Get (Name);\n end Get;\n\n -- ------------------------------\n -- Initalize the list of gateways from the configuration file.\n -- ------------------------------\n procedure Get_Gateways (List : in out Druss.Gateways.Gateway_Vector) is\n begin\n Druss.Gateways.Initialize (Cfg, List);\n end Get_Gateways;\n\nend Druss.Config;\n","subject":"Implement the Initialize, Get and Get_Gateways operations","message":"Implement the Initialize, Get and Get_Gateways operations\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/bbox-ada-api"} {"commit":"2c7068102650cf005a7ae89db3452db403b4c3d3","old_file":"awa\/src\/awa-commands-info.ads","new_file":"awa\/src\/awa-commands-info.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- akt-commands-info -- Info command to describe the current configuration\n-- Copyright (C) 2020 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith GNAT.Command_Line;\nwith AWA.Commands.Drivers;\nwith AWA.Applications;\nwith AWA.Modules;\nwith ASF.Locales;\ngeneric\n with package Command_Drivers is new AWA.Commands.Drivers (<>);\npackage AWA.Commands.Info is\n\n type Command_Type is new Command_Drivers.Application_Command_Type with record\n Bundle : ASF.Locales.Bundle;\n Long_List : aliased Boolean := False;\n Value_Length : Positive := 50;\n end record;\n\n -- Print the configuration about the application.\n overriding\n procedure Execute (Command : in out Command_Type;\n Application : in out AWA.Applications.Application'Class;\n Args : in Argument_List'Class;\n Context : in out Context_Type);\n\n -- Setup the command before parsing the arguments and executing it.\n overriding\n procedure Setup (Command : in out Command_Type;\n Config : in out GNAT.Command_Line.Command_Line_Configuration;\n Context : in out Context_Type);\n\n -- Write the help associated with the command.\n overriding\n procedure Help (Command : in out Command_Type;\n Name : in String;\n Context : in out Context_Type);\n\n -- Print the configuration identified by the given name.\n procedure Print (Command : in out Command_Type;\n Name : in String;\n Value : in String;\n Default : in String;\n Context : in out Context_Type);\n procedure Print (Command : in out Command_Type;\n Application : in out AWA.Applications.Application'Class;\n Name : in String;\n Default : in String;\n Context : in out Context_Type);\n procedure Print (Command : in out Command_Type;\n Module : in AWA.Modules.Module'Class;\n Name : in String;\n Default : in String;\n Context : in out Context_Type);\n\n Command : aliased Command_Type;\n\nend AWA.Commands.Info;\n","subject":"Add package AWA.Commands.Info to report configuration information","message":"Add package AWA.Commands.Info to report configuration information\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa"} {"commit":"78a114cf9bef01e1d03e0642d37d8edd4e6866f2","old_file":"src\/util-commands-parsers-gnat_parser.adb","new_file":"src\/util-commands-parsers-gnat_parser.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- util-commands-parsers.gnat_parser -- GNAT command line parser for command drivers\n-- Copyright (C) 2018 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith GNAT.OS_Lib;\n\npackage body Util.Commands.Parsers.GNAT_Parser is\n\n function To_OS_Lib_Argument_List (Args : in Argument_List'Class)\n return GNAT.OS_Lib.Argument_List_Access;\n\n function To_OS_Lib_Argument_List (Args : in Argument_List'Class)\n return GNAT.OS_Lib.Argument_List_Access is\n Count : constant Natural := Args.Get_Count;\n New_Arg : GNAT.OS_Lib.Argument_List (1 .. Count);\n begin\n for I in 1 .. Count loop\n New_Arg (I) := new String '(Args.Get_Argument (I));\n end loop;\n return new GNAT.OS_Lib.Argument_List '(New_Arg);\n end To_OS_Lib_Argument_List;\n\n procedure Execute (Config : in out Config_Type;\n Args : in Util.Commands.Argument_List'Class;\n Process : access procedure (Cmd_Args : in Commands.Argument_List'Class)) is\n Parser : GNAT.Command_Line.Opt_Parser;\n Cmd_Args : Dynamic_Argument_List;\n Params : GNAT.OS_Lib.Argument_List_Access\n := To_OS_Lib_Argument_List (Args);\n begin\n GNAT.Command_Line.Initialize_Option_Scan (Parser, Params);\n GNAT.Command_Line.Getopt (Config => Config, Parser => Parser);\n loop\n declare\n S : constant String := GNAT.Command_Line.Get_Argument (Parser => Parser);\n begin\n exit when S'Length = 0;\n Cmd_Args.List.Append (S);\n end;\n end loop;\n Process (Cmd_Args);\n GNAT.OS_Lib.Free (Params);\n\n exception\n when others =>\n GNAT.OS_Lib.Free (Params);\n raise;\n end Execute;\n\nend Util.Commands.Parsers.GNAT_Parser;\n","subject":"Implement the GNAT_Parser package to parse arguments using GNAT Getopt","message":"Implement the GNAT_Parser package to parse arguments using GNAT Getopt\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"0d8338abcf522ca5acdd3782bdc1b3446a523fb4","old_file":"regtests\/ado-datasets-tests.adb","new_file":"regtests\/ado-datasets-tests.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- ado-datasets-tests -- Test executing queries and using datasets\n-- Copyright (C) 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Util.Test_Caller;\nwith Util.Properties;\n\nwith Regtests.Simple.Model;\nwith ADO.Queries.Loaders;\npackage body ADO.Datasets.Tests is\n\n package Caller is new Util.Test_Caller (Test, \"ADO.Datasets\");\n\n package User_List_Query_File is\n new ADO.Queries.Loaders.File (Path => \"regtests\/files\/user-list.xml\",\n Sha1 => \"\");\n\n package User_List_Query is\n new ADO.Queries.Loaders.Query (Name => \"user-list\",\n File => User_List_Query_File.File'Access);\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite) is\n begin\n Caller.Add_Test (Suite, \"Test ADO.Datasets.List\",\n Test_List'Access);\n end Add_Tests;\n\n procedure Test_List (T : in out Test) is\n DB : ADO.Sessions.Master_Session := Regtests.Get_Master_Database;\n Query : ADO.Queries.Context;\n Data : ADO.Datasets.Dataset;\n Props : constant Util.Properties.Manager := Util.Tests.Get_Properties;\n begin\n -- Configure the XML query loader.\n ADO.Queries.Loaders.Initialize (Props.Get (\"ado.queries.paths\", \".;db\"),\n Props.Get (\"ado.queries.load\", \"false\") = \"true\");\n for I in 1 .. 100 loop\n declare\n User : Regtests.Simple.Model.User_Ref;\n begin\n User.Set_Name (\"John \" & Integer'Image (I));\n User.Set_Select_Name (\"test-list\");\n User.Set_Value (ADO.Identifier (I));\n User.Save (DB);\n end;\n end loop;\n DB.Commit;\n\n Query.Set_Query (User_List_Query.Query'Access);\n Query.Bind_Param (\"filter\", String '(\"test-list\"));\n ADO.Datasets.List (Data, DB, Query);\n Util.Tests.Assert_Equals (T, 100, Data.Get_Count, \"Invalid dataset size\");\n end Test_List;\n\nend ADO.Datasets.Tests;\n","subject":"Implement the unit test on datasets","message":"Implement the unit test on datasets\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-ado"} {"commit":"4815f17ef303cd21d740cc22b2e222c4b069d3e3","old_file":"regtests\/asf-converters-tests.ads","new_file":"regtests\/asf-converters-tests.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- asf-converters-tests - Unit tests for ASF.Converters\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\n\nwith ASF.Contexts.Faces.Tests;\npackage ASF.Converters.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new ASF.Contexts.Faces.Tests.Test with null record;\n\n -- Test the date short converter.\n procedure Test_Date_Short_Converter (T : in out Test);\n\n -- Test the date medium converter.\n procedure Test_Date_Medium_Converter (T : in out Test);\n\n -- Test the date long converter.\n procedure Test_Date_Long_Converter (T : in out Test);\n\n -- Test the date full converter.\n procedure Test_Date_Full_Converter (T : in out Test);\n\n -- Test the time short converter.\n procedure Test_Time_Short_Converter (T : in out Test);\n\n -- Test the time short converter.\n procedure Test_Time_Medium_Converter (T : in out Test);\n\n -- Test the time long converter.\n procedure Test_Time_Long_Converter (T : in out Test);\n\nend ASF.Converters.Tests;\n","subject":"Add a new set of unit tests for the date converter","message":"Add a new set of unit tests for the date converter\n","lang":"Ada","license":"apache-2.0","repos":"Letractively\/ada-asf,Letractively\/ada-asf,Letractively\/ada-asf"} {"commit":"2a72eabad91c61aa64053875cb56a750331889ea","old_file":"mat\/src\/gtk\/mat-events-gtkmat.ads","new_file":"mat\/src\/gtk\/mat-events-gtkmat.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- gprofiler-events - Profiler Events Description\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Cairo;\nwith Gtk.Drawing_Area;\n\nwith MAT.Events.Targets;\npackage MAT.Events.Gtkmat is\n\n type Event_Drawing_Type is record\n Drawing : Gtk.Drawing_Area.Gtk_Drawing_Area;\n List : MAT.Events.Targets.Target_Event_Vector;\n end record;\n type Event_Drawing_Type_Access is access Event_Drawing_Type;\n\n procedure Create (Drawing : in out Event_Drawing_Type);\n\n procedure Draw (Onto : in Event_Drawing_Type;\n Cr : in Cairo.Cairo_Context);\n\nend MAT.Events.Gtkmat;\n","subject":"Define the MAT.Events.Gtkmat package to display the events in some window","message":"Define the MAT.Events.Gtkmat package to display the events in some window\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/mat,stcarrez\/mat,stcarrez\/mat"} {"commit":"8adcce963d886f70aeb06021b96c92b64207a636","old_file":"matp\/src\/frames\/mat-frames-targets.adb","new_file":"matp\/src\/frames\/mat-frames-targets.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- mat-frames-targets - Representation of stack frames\n-- Copyright (C) 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage body MAT.Frames.Targets is\n\n -- ------------------------------\n -- Insert in the frame tree the new stack frame represented by Pc<\/tt>.\n -- If the frame is already known, the frame reference counter is incremented.\n -- The frame represented by Pc<\/tt> is returned in Result<\/tt>.\n -- ------------------------------\n procedure Insert (Frame : in out Target_Frames;\n Pc : in Frame_Table;\n Result : out Frame_Type) is\n begin\n Frame.Frames.Insert (Pc, Result);\n end Insert;\n\n protected body Frames_Type is\n\n -- ------------------------------\n -- Insert in the frame tree the new stack frame represented by Pc<\/tt>.\n -- If the frame is already known, the frame reference counter is incremented.\n -- The frame represented by Pc<\/tt> is returned in Result<\/tt>.\n -- ------------------------------\n procedure Insert (Pc : in Frame_Table;\n Result : out Frame_Type) is\n begin\n MAT.Frames.Insert (Root, Pc, Result);\n end Insert;\n\n -- ------------------------------\n -- Clear and destroy all the frame instances.\n -- ------------------------------\n procedure Clear is\n begin\n Destroy (Root);\n end Clear;\n\n end Frames_Type;\n\n -- ------------------------------\n -- Release all the stack frames.\n -- ------------------------------\n overriding\n procedure Finalize (Frames : in out Target_Frames) is\n begin\n Frames.Frames.Clear;\n end Finalize;\n\nend MAT.Frames.Targets;\n","subject":"Implement the Frames_Types package to protect the frame creation in multi-threaded contexts","message":"Implement the Frames_Types package to protect the frame creation in multi-threaded contexts\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/mat,stcarrez\/mat,stcarrez\/mat"} {"commit":"6cf6ebf217385c20a0fe35cf6986114871366836","old_file":"awa\/plugins\/awa-mail\/src\/awa-mail-components-attachments.adb","new_file":"awa\/plugins\/awa-mail\/src\/awa-mail-components-attachments.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- awa-mail-components-attachments -- Mail UI Attachments\n-- Copyright (C) 2020 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Ada.Strings.Unbounded;\nwith Util.Beans.Objects;\npackage body AWA.Mail.Components.Attachments is\n\n use Ada.Strings.Unbounded;\n\n -- ------------------------------\n -- Render the mail subject and initializes the message with its content.\n -- ------------------------------\n overriding\n procedure Encode_Children (UI : in UIMailAttachment;\n Context : in out ASF.Contexts.Faces.Faces_Context'Class) is\n procedure Process (Content : in Unbounded_String);\n\n Content_Type : Util.Beans.Objects.Object;\n File_Name : Util.Beans.Objects.Object;\n Id : constant Unbounded_String := UI.Get_Client_Id;\n\n procedure Process (Content : in Unbounded_String) is\n Msg : constant AWA.Mail.Clients.Mail_Message_Access := UI.Get_Message;\n Typ : constant String :=\n (if Util.Beans.Objects.Is_Empty (Content_Type) then \"\"\n else Util.Beans.Objects.To_String (Content_Type));\n begin\n Msg.Add_Attachment (Content, To_String (Id), Typ);\n end Process;\n\n begin\n Content_Type := UI.Get_Attribute (Name => \"contentType\", Context => Context);\n File_Name := UI.Get_Attribute (Name => \"fileName\", Context => Context);\n UI.Wrap_Encode_Children (Context, Process'Access);\n end Encode_Children;\n\nend AWA.Mail.Components.Attachments;\n","subject":"Implement the operations for the component","message":"Implement the operations for the component\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa"} {"commit":"e5ae09f7a84425592d4f70cf6c1213fc4dd87fe4","old_file":"regtests\/asf-navigations-tests.ads","new_file":"regtests\/asf-navigations-tests.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- asf-navigations-tests - Tests for ASF navigation\n-- Copyright (C) 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\n\npackage ASF.Navigations.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n -- Initialize the test application\n overriding\n procedure Set_Up (T : in out Test);\n\n -- Test a form navigation with an exact match (view, outcome, action).\n procedure Test_Exact_Navigation (T : in out Test);\n\n -- Test a form navigation with a partial match (view, outcome).\n procedure Test_Partial_Navigation (T : in out Test);\n\n -- Test a form navigation with a exception match (view, outcome).\n procedure Test_Exception_Navigation (T : in out Test);\n\n -- Check the navigation for an URI and expect the result to match the regular expression.\n procedure Check_Navigation (T : in out Test;\n Name : in String;\n Match : in String;\n Raise_Flag : in Boolean := False);\n\nend ASF.Navigations.Tests;\n","subject":"Add navigation rule unit test","message":"Add navigation rule unit test\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-asf,stcarrez\/ada-asf,stcarrez\/ada-asf"} {"commit":"60d255e30bf6630231c5d5687e06fbda85b0cabd","old_file":"regtests\/babel-streams-tests.ads","new_file":"regtests\/babel-streams-tests.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- babel-streams-tests - Unit tests for babel streams\n-- Copyright (C) 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\n\npackage Babel.Streams.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n -- Test the Find function resolving some existing user.\n procedure Test_Stream_Composition (T : in out Test);\n\nend Babel.Streams.Tests;\n","subject":"Add a unit test for the babel stream compositions","message":"Add a unit test for the babel stream compositions\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/babel"} {"commit":"10c4cf9f6dcef1aea50ef5e217726646f176cb3b","old_file":"regtests\/check_build\/gen-tests-packages.ads","new_file":"regtests\/check_build\/gen-tests-packages.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- Test -- Test the code generation\n-- Copyright (C) 2012 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage Gen.Tests.Packages is\n\nend Gen.Tests.Packages;\n","subject":"Add the package to build the generated Ada packages (UML packages test)","message":"Add the package to build the generated Ada packages (UML packages test)\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/dynamo,stcarrez\/dynamo,stcarrez\/dynamo"} {"commit":"b3292faecbf07e57cdbb7b668b210946fff9242d","old_file":"src\/util-beans-objects-vectors.ads","new_file":"src\/util-beans-objects-vectors.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- Util.Beans.Objects.Vectors -- Object vectors\n-- Copyright (C) 2011 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Ada.Containers.Vectors;\npackage Util.Beans.Objects.Vectors is new\nAda.Containers.Vectors (Index_Type => Natural,\n Element_Type => Object);\n","subject":"Define a vectors of objects","message":"Define a vectors of objects\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"e779bd13d49d2f9b8962248ac2eb9c88087dc981","old_file":"src\/asis\/a4g-a_stand.ads","new_file":"src\/asis\/a4g-a_stand.ads","old_contents":"","new_contents":"------------------------------------------------------------------------------\n-- --\n-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --\n-- --\n-- A 4 G . A _ S T A N D --\n-- --\n-- S p e c --\n-- --\n-- $Revision: 15117 $\n-- --\n-- Copyright (c) 2002, Free Software Foundation, Inc. --\n-- --\n-- ASIS-for-GNAT is free software; you can redistribute it and\/or modify it --\n-- under terms of the GNU General Public License as published by the Free --\n-- Software Foundation; either version 2, or (at your option) any later --\n-- version. ASIS-for-GNAT is distributed in the hope that it will be use- --\n-- ful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- --\n-- CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General --\n-- Public License for more details. You should have received a copy of the --\n-- GNU General Public License distributed with ASIS-for-GNAT; see file --\n-- COPYING. If not, write to the Free Software Foundation, 59 Temple Place --\n-- - Suite 330, Boston, MA 02111-1307, USA. --\n-- --\n-- --\n-- --\n-- --\n-- --\n-- --\n-- --\n-- --\n-- ASIS-for-GNAT was originally developed by the ASIS-for-GNAT team at the --\n-- Software Engineering Laboratory of the Swiss Federal Institute of --\n-- Technology (LGL-EPFL) in Lausanne, Switzerland, in cooperation with the --\n-- Scientific Research Computer Center of Moscow State University (SRCC --\n-- MSU), Russia, with funding partially provided by grants from the Swiss --\n-- National Science Foundation and the Swiss Academy of Engineering --\n-- Sciences. ASIS-for-GNAT is now maintained by Ada Core Technologies Inc --\n-- (http:\/\/www.gnat.com). --\n-- --\n------------------------------------------------------------------------------\n\n-- We need this renaming because the GNAT Stand package and the ASIS A4G.Stand\n-- package conflict if mentioned in the same context clause. This renaming\n-- seems to be the cheapest way to correct the old bad choice of the name\n-- of the ASIS package (A4G.Stand)\n\nwith A4G.Stand;\n\npackage A4G.A_Stand renames A4G.Stand;\n","subject":"Add the ASIS file $i","message":"Add the ASIS file $i","lang":"Ada","license":"apache-2.0","repos":"Letractively\/ada-gen,Letractively\/ada-gen,Letractively\/ada-gen,Letractively\/ada-gen"} {"commit":"599942656c3ca398426e0f5f1b00c5c69c4f0c5c","old_file":"src\/asf-servlets-files.ads","new_file":"src\/asf-servlets-files.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- asf-servlets-files -- Files servlet\n-- Copyright (C) 2018 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Servlet.Core.Files;\n\npackage ASF.Servlets.Files renames Servlet.Core.Files;\npragma Obsolescent (\"use the 'Servlet.Core.Files' package\");\n","subject":"Package ASF.Servlets.Files renames Servlet.Core.Files but make it obscolesent (provided as backward compatibility)","message":"Package ASF.Servlets.Files renames Servlet.Core.Files but make it obscolesent\n(provided as backward compatibility)\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-asf,stcarrez\/ada-asf,stcarrez\/ada-asf"} {"commit":"9fd4f3a57d55fad2940e60cc5a64c2b96c1eafea","old_file":"regtests\/security-oauth-clients-tests.adb","new_file":"regtests\/security-oauth-clients-tests.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- Security-oauth-clients-tests - Unit tests for OAuth\n-- Copyright (C) 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Test_Caller;\nwith Util.Measures;\nwith Util.Strings.Sets;\n\npackage body Security.OAuth.Clients.Tests is\n\n package Caller is new Util.Test_Caller (Test, \"Security.OAuth.Clients\");\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite) is\n begin\n Caller.Add_Test (Suite, \"Test Security.OAuth.Clients.Create_Nonce\",\n Test_Create_Nonce'Access);\n end Add_Tests;\n\n -- ------------------------------\n -- Test Create_Nonce operation.\n -- ------------------------------\n procedure Test_Create_Nonce (T : in out Test) is\n Nonces : Util.Strings.Sets.Set;\n begin\n for I in 1 .. 1_000 loop\n for I in 32 .. 734 loop\n declare\n S : constant String := Create_Nonce (I * 3);\n begin\n T.Assert (not Nonces.Contains (S), \"Nonce was not unique: \" & S);\n Nonces.Include (S);\n end;\n end loop;\n end loop;\n declare\n S : Util.Measures.Stamp;\n begin\n for I in 1 .. 1_000 loop\n declare\n Nonce : constant String := Create_Nonce (128);\n pragma Unreferenced (Nonce);\n begin\n null;\n end;\n end loop;\n Util.Measures.Report (S, \"128 bits nonce generation (1000 calls)\");\n end;\n end Test_Create_Nonce;\n\nend Security.OAuth.Clients.Tests;\n","subject":"Add unit tests for OAuth package and Create_Nonce operation","message":"Add unit tests for OAuth package and Create_Nonce operation\n","lang":"Ada","license":"apache-2.0","repos":"Letractively\/ada-security"} {"commit":"efcc3fe0254c2e21d4ff6c95a99f5372ea30a320","old_file":"src\/security-auth-oauth.ads","new_file":"src\/security-auth-oauth.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- security-auth-oauth -- OAuth based authentication\n-- Copyright (C) 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Security.OAuth.Clients;\nprivate package Security.Auth.OAuth is\n\n -- ------------------------------\n -- OAuth Manager\n -- ------------------------------\n -- The Manager<\/b> provides the core operations for the OAuth authorization process.\n type Manager is abstract new Security.Auth.Manager with private;\n\n -- Initialize the authentication realm.\n overriding\n procedure Initialize (Realm : in out Manager;\n Params : in Parameters'Class;\n Provider : in String := PROVIDER_OPENID);\n\n -- Discover the OpenID provider that must be used to authenticate the user.\n -- The Name<\/b> can be an URL or an alias that identifies the provider.\n -- A cached OpenID provider can be returned.\n -- Read the XRDS document from the URI and initialize the OpenID provider end point.\n -- (See OpenID Section 7.3 Discovery)\n overriding\n procedure Discover (Realm : in out Manager;\n Name : in String;\n Result : out End_Point);\n\n -- Associate the application (relying party) with the OpenID provider.\n -- The association can be cached.\n -- (See OpenID Section 8 Establishing Associations)\n overriding\n procedure Associate (Realm : in out Manager;\n OP : in End_Point;\n Result : out Association);\n\n overriding\n function Get_Authentication_URL (Realm : in Manager;\n OP : in End_Point;\n Assoc : in Association) return String;\n\n -- Verify the authentication result\n overriding\n procedure Verify (Realm : in out Manager;\n Assoc : in Association;\n Request : in Parameters'Class;\n Result : out Authentication);\n\n -- Verify the OAuth access token and retrieve information about the user.\n procedure Verify_Access_Token (Realm : in Manager;\n Assoc : in Association;\n Request : in Parameters'Class;\n Token : in Security.OAuth.Clients.Access_Token_Access;\n Result : in out Authentication) is abstract;\n\nprivate\n\n type Manager is abstract new Security.Auth.Manager with record\n Return_To : Unbounded_String;\n Realm : Unbounded_String;\n Scope : Unbounded_String;\n App : Security.OAuth.Clients.Application;\n end record;\n\nend Security.Auth.OAuth;\n","subject":"Define the OAuth based authorization","message":"Define the OAuth based authorization\n","lang":"Ada","license":"apache-2.0","repos":"Letractively\/ada-security"} {"commit":"5c5676f511b36e860d758bc77d14be368029039b","old_file":"src\/babel-streams.adb","new_file":"src\/babel-streams.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- babel-Streams -- Stream management\n-- Copyright (C) 2014, 2015 Stephane.Carrez\n-- Written by Stephane.Carrez (Stephane.Carrez@gmail.com)\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\npackage body Babel.Streams is\n\n -- ------------------------------\n -- Set the internal buffer that the stream can use.\n -- ------------------------------\n procedure Set_Buffer (Stream : in out Stream_Type;\n Buffer : in Babel.Files.Buffers.Buffer_Access) is\n begin\n Stream.Buffer := Buffer;\n end Set_Buffer;\n\n -- ------------------------------\n -- Release the stream buffer if there is one.\n -- ------------------------------\n overriding\n procedure Finalize (Stream : in out Stream_Type) is\n use type Babel.Files.Buffers.Buffer_Access;\n begin\n if Stream.Buffer \/= null then\n Babel.Files.Buffers.Release (Stream.Buffer);\n end if;\n end Finalize;\n\nend Babel.Streams;\n","subject":"Implement the Set_Buffer and Finalize procedures","message":"Implement the Set_Buffer and Finalize procedures\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/babel"} {"commit":"51d959c8348cd12a7a2badff1990e3052c49e572","old_file":"src\/asf-filters-cache_control.adb","new_file":"src\/asf-filters-cache_control.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- asf-filters-cache_control -- HTTP response Cache-Control settings\n-- Copyright (C) 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage body ASF.Filters.Cache_Control is\n\n -- ------------------------------\n -- The Do_Filter method of the Filter is called by the container each time\n -- a request\/response pair is passed through the chain due to a client request\n -- for a resource at the end of the chain. The Cache_Control<\/b> filter adds\n -- a Cache-Control<\/tt>, Expires<\/tt>, Pragma<\/tt> and optionally a\n -- Vary<\/tt> header in the HTTP response.\n -- ------------------------------\n overriding\n procedure Do_Filter (F : in Cache_Control_Filter;\n Request : in out Requests.Request'Class;\n Response : in out Responses.Response'Class;\n Chain : in out ASF.Servlets.Filter_Chain) is\n use Ada.Strings.Unbounded;\n begin\n if Length (F.Cache_Control_Header) > 0 then\n Response.Add_Header (\"Cache-Control\", To_String (F.Cache_Control_Header));\n end if;\n if Length (F.Vary) > 0 then\n Response.Add_Header (\"Vary\", To_String (F.Vary));\n end if;\n ASF.Servlets.Do_Filter (Chain => Chain,\n Request => Request,\n Response => Response);\n end Do_Filter;\n\n -- ------------------------------\n -- Called by the servlet container to indicate to a filter that the filter\n -- instance is being placed into service.\n -- ------------------------------\n procedure Initialize (Server : in out Cache_Control_Filter;\n Config : in ASF.Servlets.Filter_Config) is\n begin\n Server.Vary := Servlets.Get_Init_Parameter (Config, VARY_HEADER_PARAM);\n Server.Cache_Control_Header := Servlets.Get_Init_Parameter (Config, CACHE_CONTROL_PARAM);\n end Initialize;\n\nend ASF.Filters.Cache_Control;\n","subject":"Implement the Cache_Control_Filter to add a Cache-Control and Vary header in the HTTP response","message":"Implement the Cache_Control_Filter to add a Cache-Control and Vary\nheader in the HTTP response\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-asf,stcarrez\/ada-asf,stcarrez\/ada-asf"} {"commit":"8dbca6176474df22e769a92254be6be49dd3129d","old_file":"src\/asis\/asis-errors.ads","new_file":"src\/asis\/asis-errors.ads","old_contents":"","new_contents":"------------------------------------------------------------------------------\n-- --\n-- ASIS-for-GNAT INTERFACE COMPONENTS --\n-- --\n-- A S I S . E R R O R S --\n-- --\n-- S p e c --\n-- --\n-- $Revision: 14416 $\n-- --\n-- This specification is adapted from the Ada Semantic Interface --\n-- Specification Standard (ISO\/IEC 15291) for use with GNAT. In accordance --\n-- with the copyright of that document, you can freely copy and modify this --\n-- specification, provided that if you redistribute a modified version, any --\n-- changes that you have made are clearly indicated. --\n-- --\n------------------------------------------------------------------------------\n\n------------------------------------------------------------------------------\n-- 4 package Asis.Errors\n------------------------------------------------------------------------------\n------------------------------------------------------------------------------\npackage Asis.Errors is\n------------------------------------------------------------------------------\n------------------------------------------------------------------------------\n--\n-- ASIS reports all operational errors by raising an exception. Whenever an\n-- ASIS implementation raises one of the exceptions declared in package\n-- Asis.Exceptions, it will previously have set the values returned by the\n-- Status and Diagnosis queries to indicate the cause of the error. The\n-- possible values for Status are indicated in the definition of Error_Kinds\n-- below, with suggestions for the associated contents of the Diagnosis\n-- string as a comment.\n--\n-- The Diagnosis and Status queries are provided in the Asis.Implementation\n-- package to supply more information about the reasons for raising any\n-- exception.\n--\n-- ASIS applications are encouraged to follow this same convention whenever\n-- they explicitly raise any ASIS exception--always record a Status and\n-- Diagnosis prior to raising the exception.\n------------------------------------------------------------------------------\n-- 4.1 type Error_Kinds\n------------------------------------------------------------------------------\n-- This enumeration type describes the various kinds of errors.\n--\n\n type Error_Kinds is (\n\n Not_An_Error, -- No error is presently recorded\n Value_Error, -- Routine argument value invalid\n Initialization_Error, -- ASIS is uninitialized\n Environment_Error, -- ASIS could not initialize\n Parameter_Error, -- Bad Parameter given to Initialize\n Capacity_Error, -- Implementation overloaded\n Name_Error, -- Context\/unit not found\n Use_Error, -- Context\/unit not use\/open-able\n Data_Error, -- Context\/unit bad\/invalid\/corrupt\n Text_Error, -- The program text cannot be located\n Storage_Error, -- Storage_Error suppressed\n Obsolete_Reference_Error, -- Argument or result is invalid due to\n -- and inconsistent compilation unit\n Unhandled_Exception_Error, -- Unexpected exception suppressed\n Not_Implemented_Error, -- Functionality not implemented\n Internal_Error); -- Implementation internal failure\n\nend Asis.Errors;\n","subject":"Add the ASIS file $i","message":"Add the ASIS file $i","lang":"Ada","license":"apache-2.0","repos":"Letractively\/ada-gen,Letractively\/ada-gen,Letractively\/ada-gen,Letractively\/ada-gen"} {"commit":"efe6befe85acf018b0b3d5a911f78dbffc397708","old_file":"awa\/plugins\/awa-images\/src\/awa-images-servlets.ads","new_file":"awa\/plugins\/awa-images\/src\/awa-images-servlets.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- awa-images-servlets -- Serve images saved in the storage service\n-- Copyright (C) 2016 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Ada.Strings.Unbounded;\nwith Ada.Calendar;\n\nwith ASF.Requests;\nwith AWA.Storages.Servlets;\n\nwith ADO;\npackage AWA.Images.Servlets is\n\n -- The Image_Servlet<\/b> represents the component that will handle\n -- an HTTP request received by the server.\n type Image_Servlet is new AWA.Storages.Servlets.Storage_Servlet with private;\n\n -- Load the data content that correspond to the GET request and get the name as well\n -- as mime-type and date.\n overriding\n procedure Load (Server : in Image_Servlet;\n Request : in out ASF.Requests.Request'Class;\n Name : out Ada.Strings.Unbounded.Unbounded_String;\n Mime : out Ada.Strings.Unbounded.Unbounded_String;\n Date : out Ada.Calendar.Time;\n Data : out ADO.Blob_Ref);\n\nprivate\n\n type Image_Servlet is new AWA.Storages.Servlets.Storage_Servlet with null record;\n\nend AWA.Images.Servlets;\n","subject":"Declare the AWA.Images.Servlets package with the Image_Servlet type","message":"Declare the AWA.Images.Servlets package with the Image_Servlet type\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa"} {"commit":"822f9cf1ab2b4542f0f44d18a03cdd36b4558181","old_file":"src\/asf-rest.ads","new_file":"src\/asf-rest.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- asf-rest -- REST Support\n-- Copyright (C) 2016 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Util.Strings;\nwith ASF.Requests;\nwith ASF.Responses;\nwith Security.Permissions;\n\n-- == REST ==\n-- The ASF.Rest<\/tt> package provides support to implement easily some RESTful API.\npackage ASF.Rest is\n\n type Request is abstract new ASF.Requests.Request with null record;\n\n type Response is abstract new ASF.Responses.Response with null record;\n\n -- The HTTP rest method.\n type Method_Type is (GET, HEAD, POST, PUT, DELETE, OPTIONS);\n\n type Descriptor is abstract tagged limited private;\n type Descriptor_Access is access all Descriptor'Class;\n\n -- Get the permission index associated with the REST operation.\n function Get_Permission (Handler : in Descriptor)\n return Security.Permissions.Permission_Index;\n\n -- Dispatch the request to the API handler.\n procedure Dispatch (Handler : in Descriptor;\n Req : in out ASF.Rest.Request'Class;\n Reply : in out ASF.Rest.Response'Class) is abstract;\n\nprivate\n\n type Descriptor is abstract tagged limited record\n Next : Descriptor_Access;\n Method : Method_Type;\n Pattern : Util.Strings.Name_Access;\n Permission : Security.Permissions.Permission_Index := 0;\n end record;\n\n -- Register the API descriptor in a list.\n procedure Register (List : in out Descriptor_Access;\n Item : in Descriptor_Access);\n\nend ASF.Rest;\n","subject":"Define ASF.Rest package for the server-side API REST support","message":"Define ASF.Rest package for the server-side API REST support\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-asf,stcarrez\/ada-asf,stcarrez\/ada-asf"} {"commit":"de586c213d20a228649a3c26c3814a7d64631078","old_file":"regtests\/security-oauth-jwt-tests.ads","new_file":"regtests\/security-oauth-jwt-tests.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- Security-oayth-jwt-tests - Unit tests for JSON Web Token\n-- Copyright (C) 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\n\npackage Security.OAuth.JWT.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n -- Test Decode operation with errors.\n procedure Test_Decode_Error (T : in out Test);\n\n generic\n with function Get (From : in Token) return String;\n Value : String;\n procedure Test_Operation (T : in out Test);\n\n generic\n with function Get (From : in Token) return Ada.Calendar.Time;\n Value : String;\n procedure Test_Time_Operation (T : in out Test);\n\nend Security.OAuth.JWT.Tests;\n","subject":"Add unit tests for JWT","message":"Add unit tests for JWT\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-security"} {"commit":"10ded9639c07cc2fe97aab1dad472c60ae38de3a","old_file":"src\/sqlite\/ado-schemas-sqlite.ads","new_file":"src\/sqlite\/ado-schemas-sqlite.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- ado-schemas-sqlite -- SQLite Database Schemas\n-- Copyright (C) 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith ADO.Drivers.Connections;\npackage ADO.Schemas.Sqlite is\n\n -- Load the database schema\n procedure Load_Schema (C : in ADO.Drivers.Connections.Database_Connection'Class;\n Schema : out Schema_Definition);\n\nend ADO.Schemas.Sqlite;\n","subject":"Package to implement the Load_Schema procedure","message":"Package to implement the Load_Schema procedure\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-ado"} {"commit":"d58d24a9f258c94567011528531fb52fe37a590c","old_file":"src\/util-streams-texts-tr.ads","new_file":"src\/util-streams-texts-tr.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- util-streams-texts-tr -- Text translation utilities on streams\n-- Copyright (C) 2010, 2011, 2012, 2015, 2016, 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Util.Texts.Transforms;\nwith Ada.Characters.Handling;\npackage Util.Streams.Texts.TR is\n new Util.Texts.Transforms (Stream => Print_Stream'Class,\n Char => Character,\n Input => String,\n Put => Write_Char,\n To_Upper => Ada.Characters.Handling.To_Upper,\n To_Lower => Ada.Characters.Handling.To_Lower);\n","subject":"Refactor Buffered_Stream and Print_Stream - move the TR package instantiation in a separate file","message":"Refactor Buffered_Stream and Print_Stream\n- move the TR package instantiation in a separate file\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"8ff370c0fa8abacd91d89d82d9bb3286dab803ce","old_file":"src\/sys\/streams\/util-streams-aes.adb","new_file":"src\/sys\/streams\/util-streams-aes.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- util-streams-aes -- AES encoding and decoding streams\n-- Copyright (C) 2019 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage body Util.Streams.AES is\n\n -- -----------------------\n -- Set the encryption key and mode to be used.\n -- -----------------------\n procedure Set_Key (Stream : in out Encoding_Stream;\n Data : in Ada.Streams.Stream_Element_Array;\n Mode : in Util.Encoders.AES.AES_Mode := Util.Encoders.AES.CBC) is\n begin\n Stream.Transform.Set_Key (Data, Mode);\n end Set_Key;\n\n -- -----------------------\n -- Set the encryption initialization vector before starting the encryption.\n -- -----------------------\n procedure Set_IV (Stream : in out Encoding_Stream;\n IV : in Util.Encoders.AES.Word_Block_Type) is\n begin\n Stream.Transform.Set_IV (IV);\n end Set_IV;\n\n -- -----------------------\n -- Set the encryption key and mode to be used.\n -- -----------------------\n procedure Set_Key (Stream : in out Decoding_Stream;\n Data : in Ada.Streams.Stream_Element_Array;\n Mode : in Util.Encoders.AES.AES_Mode := Util.Encoders.AES.CBC) is\n begin\n Stream.Transform.Set_Key (Data, Mode);\n end Set_Key;\n\n -- -----------------------\n -- Set the encryption initialization vector before starting the encryption.\n -- -----------------------\n procedure Set_IV (Stream : in out Decoding_Stream;\n IV : in Util.Encoders.AES.Word_Block_Type) is\n begin\n Stream.Transform.Set_IV (IV);\n end Set_IV;\n\nend Util.Streams.AES;\n","subject":"Implement operations to set the key and IV for AES-128\/196\/256 encryption and decryption streams","message":"Implement operations to set the key and IV for AES-128\/196\/256 encryption and decryption streams\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"3b72f5fd875a2a8711c20861bd4bc4addd898339","old_file":"mat\/src\/mat-consoles.adb","new_file":"mat\/src\/mat-consoles.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- mat-consoles - Console interface\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage body MAT.Consoles is\n\n -- ------------------------------\n -- Format the address and print it for the given field.\n -- ------------------------------\n procedure Print_Field (Console : in out Console_Type;\n Field : in Field_Type;\n Addr : in MAT.Types.Target_Addr) is\n Value : constant String := MAT.Types.Hex_Image (Addr);\n begin\n Console_Type'Class (Console).Print_Field (Field, Value);\n end Print_Field;\n\nend MAT.Consoles;\n","subject":"Implement the Print_Field procedure for addresses","message":"Implement the Print_Field procedure for addresses\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/mat,stcarrez\/mat,stcarrez\/mat"} {"commit":"4e55afefbadee70d87661adeee432b8a22c0d6d4","old_file":"src\/sys\/http\/util-http-headers.adb","new_file":"src\/sys\/http\/util-http-headers.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- util-http-headers -- HTTP Headers\n-- Copyright (C) 2022 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Ada.Strings.Fixed;\n\nwith Util.Strings.Tokenizers;\npackage body Util.Http.Headers is\n\n -- Split an accept like header into multiple tokens and a quality value.\n -- Invoke the `Process` procedure for each token. Example:\n --\n -- Accept-Language: de, en;q=0.7, jp, fr;q=0.8, ru\n --\n -- The `Process` will be called for \"de\", \"en\" with quality 0.7,\n -- and \"jp\", \"fr\" with quality 0.8 and then \"ru\" with quality 1.0.\n procedure Split_Header (Header : in String;\n Process : access procedure (Item : in String;\n Quality : in Quality_Type)) is\n use Util.Strings;\n procedure Process_Token (Token : in String;\n Done : out Boolean);\n\n Quality : Quality_Type := 1.0;\n\n procedure Process_Token (Token : in String;\n Done : out Boolean) is\n Name : constant String := Ada.Strings.Fixed.Trim (Token, Ada.Strings.Both);\n begin\n Process (Name, Quality);\n Done := False;\n end Process_Token;\n\n Q, N, Pos : Natural;\n Last : Natural := Header'First;\n begin\n while Last < Header'Last loop\n Quality := 1.0;\n Pos := Index (Header, ';', Last);\n if Pos > 0 then\n N := Index (Header, ',', Pos);\n if N = 0 then\n N := Header'Last + 1;\n end if;\n Q := Pos + 1;\n while Q < N loop\n if Header (Q .. Q + 1) = \"q=\" then\n begin\n Quality := Quality_Type'Value (Header (Q + 2 .. N - 1));\n exception\n when others =>\n null;\n end;\n exit;\n\n elsif Header (Q) \/= ' ' then\n exit;\n\n end if;\n Q := Q + 1;\n end loop;\n\n Util.Strings.Tokenizers.Iterate_Tokens (Content => Header (Last .. Pos - 1),\n Pattern => \",\",\n Process => Process_Token'Access);\n Last := N + 1;\n else\n Util.Strings.Tokenizers.Iterate_Tokens (Content => Header (Last .. Header'Last),\n Pattern => \",\",\n Process => Process_Token'Access);\n return;\n end if;\n end loop;\n end Split_Header;\n\nend Util.Http.Headers;\n","subject":"Add Split_Header (moved from Ada Server Faces)","message":"Add Split_Header (moved from Ada Server Faces)\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"65a168cff33acba4136ef47b1d3611daec369a12","old_file":"test\/FrontendAda\/negative_field_offset.adb","new_file":"test\/FrontendAda\/negative_field_offset.adb","old_contents":"","new_contents":"-- RUN: %llvmgcc -c %s\nwith System;\nprocedure Negative_Field_Offset (N : Integer) is\n type String_Pointer is access String;\n -- Force use of a thin pointer.\n for String_Pointer'Size use System.Word_Size;\n P : String_Pointer;\nbegin\n P := new String (1 .. N);\nend;\n","subject":"Test handling of record fields with negative offsets.","message":"Test handling of record fields with negative offsets.\n\n\ngit-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@84851 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"Ada","license":"apache-2.0","repos":"llvm-mirror\/llvm,apple\/swift-llvm,chubbymaggie\/asap,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,apple\/swift-llvm,apple\/swift-llvm,chubbymaggie\/asap,apple\/swift-llvm,llvm-mirror\/llvm,dslab-epfl\/asap,chubbymaggie\/asap,dslab-epfl\/asap,llvm-mirror\/llvm,llvm-mirror\/llvm,llvm-mirror\/llvm,llvm-mirror\/llvm,dslab-epfl\/asap,llvm-mirror\/llvm,dslab-epfl\/asap,apple\/swift-llvm,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,chubbymaggie\/asap,apple\/swift-llvm,apple\/swift-llvm,GPUOpen-Drivers\/llvm,chubbymaggie\/asap,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,apple\/swift-llvm,llvm-mirror\/llvm,chubbymaggie\/asap,GPUOpen-Drivers\/llvm"} {"commit":"3718050bb594704a42f70d006745a938ff3564ce","old_file":"test\/AdaFrontend\/array_ref.adb","new_file":"test\/AdaFrontend\/array_ref.adb","old_contents":"","new_contents":"-- RUN: %llvmgcc -c %s -o \/dev\/null\nprocedure Array_Ref is\n type A is array (Natural range <>, Natural range <>) of Boolean;\n type A_Access is access A;\n function Get (X : A_Access) return Boolean is\n begin\n return X (0, 0);\n end;\nbegin\n null;\nend;\n","subject":"Test handling of ARRAY_REF when the component type is of unknown size.","message":"Test handling of ARRAY_REF when the component type is of unknown size.\n\n\ngit-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@35176 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"Ada","license":"bsd-2-clause","repos":"chubbymaggie\/asap,apple\/swift-llvm,dslab-epfl\/asap,apple\/swift-llvm,llvm-mirror\/llvm,apple\/swift-llvm,apple\/swift-llvm,chubbymaggie\/asap,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,dslab-epfl\/asap,chubbymaggie\/asap,apple\/swift-llvm,chubbymaggie\/asap,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,chubbymaggie\/asap,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,llvm-mirror\/llvm,apple\/swift-llvm,dslab-epfl\/asap,dslab-epfl\/asap,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,llvm-mirror\/llvm,apple\/swift-llvm,chubbymaggie\/asap,llvm-mirror\/llvm,llvm-mirror\/llvm,apple\/swift-llvm"} {"commit":"7826120ce04952b29a6410dae02a430da276f9e7","old_file":"samples\/escape.adb","new_file":"samples\/escape.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- escape -- Text Transformations\n-- Copyright (C) 2001, 2002, 2003, 2006, 2008, 2009, 2010 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Util.Strings.Transforms;\nwith Ada.Strings.Unbounded;\nwith Ada.Text_IO;\nwith Ada.Command_Line;\n\nprocedure Escape is\n\n use Ada.Strings.Unbounded;\n\n Count : constant Natural := Ada.Command_Line.Argument_Count;\nbegin\n if Count = 0 then\n Ada.Text_IO.Put_Line (\"Usage: escape string...\");\n return;\n end if;\n for I in 1 .. Count loop\n declare\n S : constant String := Ada.Command_Line.Argument (I);\n begin\n Ada.Text_IO.Put_Line (\"Escape javascript : \"\n & Util.Strings.Transforms.Escape_Javascript (S));\n Ada.Text_IO.Put_Line (\"Escape XML : \"\n & Util.Strings.Transforms.Escape_Xml (S));\n end;\n end loop;\nend Escape;\n","subject":"Add simple example for text transformations","message":"Add simple example for text transformations\n","lang":"Ada","license":"apache-2.0","repos":"Letractively\/ada-util,flottokarotto\/ada-util,flottokarotto\/ada-util,Letractively\/ada-util"} {"commit":"9e06964c79ef936f0022737b1b1cc08a897df421","old_file":"src\/asf-beans-requests.adb","new_file":"src\/asf-beans-requests.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- asf-beans-requests -- Bean giving access to the request object\n-- Copyright (C) 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith ASF.Contexts.Faces;\nwith ASF.Requests;\npackage body ASF.Beans.Requests is\n\n Bean : aliased Request_Bean;\n\n -- ------------------------------\n -- Get from the request object the value identified by the given name.\n -- Returns Null_Object if the request does not define such name.\n -- ------------------------------\n overriding\n function Get_Value (Bean : in Request_Bean;\n Name : in String) return Util.Beans.Objects.Object is\n pragma Unreferenced (Bean);\n use type ASF.Contexts.Faces.Faces_Context_Access;\n\n Ctx : constant ASF.Contexts.Faces.Faces_Context_Access := ASF.Contexts.Faces.Current;\n begin\n if Ctx = null then\n return Util.Beans.Objects.Null_Object;\n end if;\n declare\n Req : constant ASF.Requests.Request_Access := Ctx.Get_Request;\n begin\n return Req.Get_Attribute (Name);\n end;\n end Get_Value;\n\n -- ------------------------------\n -- Return the Request_Bean instance.\n -- ------------------------------\n function Instance return Util.Beans.Objects.Object is\n begin\n return Util.Beans.Objects.To_Object (Bean'Access, Util.Beans.Objects.STATIC);\n end Instance;\n\nend ASF.Beans.Requests;\n","subject":"Implement the implicit object 'requestScope'","message":"Implement the implicit object 'requestScope'\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-asf,stcarrez\/ada-asf,stcarrez\/ada-asf"} {"commit":"20c643894f38c1ac7e5cc2abdc34b206aabd304f","old_file":"mat\/src\/events\/mat-events-targets.adb","new_file":"mat\/src\/events\/mat-events-targets.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- mat-events-targets - Events received and collected from a target\n-- Copyright (C) 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\npackage body MAT.Events.Targets is\n\n -- ------------------------------\n -- Add the event in the list of events and increment the event counter.\n -- ------------------------------\n procedure Insert (Target : in out Target_Events;\n Event : in MAT.Types.Uint16;\n Frame : in MAT.Events.Frame_Info) is\n begin\n Target.Events.Insert (Event, Frame);\n Util.Concurrent.Counters.Increment (Target.Event_Count);\n end Insert;\n\n -- ------------------------------\n -- Get the current event counter.\n -- ------------------------------\n function Get_Event_Counter (Target : in Target_Events) return Integer is\n begin\n return Util.Concurrent.Counters.Value (Target.Event_Count);\n end Get_EVent_Counter;\n\n protected body Event_Collector is\n\n -- ------------------------------\n -- Add the event in the list of events.\n -- ------------------------------\n procedure Insert (Event : in MAT.Types.Uint16;\n Frame : in MAT.Events.Frame_Info) is\n begin\n null;\n end Insert;\n\n end Event_Collector;\n\nend MAT.Events.Targets;\n","subject":"Implement the Insert and Get_Event_Counter operations","message":"Implement the Insert and Get_Event_Counter operations\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/mat,stcarrez\/mat,stcarrez\/mat"} {"commit":"66b841250889674cb08826b818dab2859e3ac446","old_file":"awa\/src\/awa-mail-clients.ads","new_file":"awa\/src\/awa-mail-clients.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- awa-mail-client -- Mail client interface\n-- Copyright (C) 2012 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-- The AWA.Mail.Clients<\/b> package defines a mail client API used by the mail module.\n-- It defines two interfaces that must be implemented. This allows to have an implementation\n-- based on an external application such as sendmail<\/tt> and other implementation that\n-- use an SMTP connection.\npackage AWA.Mail.Clients is\n\n type Recipient_Type is (TO, CC, BCC);\n\n -- ------------------------------\n -- Mail Message\n -- ------------------------------\n -- The Mail_Message<\/b> represents an abstract mail message that can be initialized\n -- before being sent.\n type Mail_Message is limited interface;\n type Mail_Message_Access is access all Mail_Message'Class;\n\n -- Set the From<\/tt> part of the message.\n procedure Set_From (Message : in out Mail_Message;\n Name : in String;\n Address : in String) is abstract;\n\n -- Add a recipient for the message.\n procedure Add_Recipient (Message : in out Mail_Message;\n Kind : in Recipient_Type;\n Name : in String;\n Address : in String) is abstract;\n\n -- Set the subject of the message.\n procedure Set_Subject (Message : in out Mail_Message;\n Subject : in String) is abstract;\n\n -- Set the body of the message.\n procedure Set_Body (Message : in out Mail_Message;\n Content : in String) is abstract;\n\n -- Send the email message.\n procedure Send (Message : in out Mail_Message) is abstract;\n\n -- ------------------------------\n -- Mail Manager\n -- ------------------------------\n -- The Mail_Manager<\/b> is the entry point to create a new mail message\n -- and be able to send it.\n type Mail_Manager is limited interface;\n type Mail_Manager_Access is access all Mail_Manager'Class;\n\n -- Create a new mail message.\n function Create_Message (Manager : in Mail_Manager) return Mail_Message_Access is abstract;\n\nend AWA.Mail.Clients;\n","subject":"Define a set of interface to send an email and have several possible implementations","message":"Define a set of interface to send an email and have several possible implementations\n\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa"} {"commit":"0faab9a1d332931ddce2cd32bec02fbd571d46a1","old_file":"regtests\/util-properties-form-tests.ads","new_file":"regtests\/util-properties-form-tests.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- util-properties-form-tests -- Test reading form file into properties\n-- Copyright (C) 2020 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\n\npackage Util.Properties.Form.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n -- Test loading a form file into a properties object.\n procedure Test_Parse_Form (T : in out Test);\n\nend Util.Properties.Form.Tests;\n","subject":"Add unit test for Parse_Form procedure","message":"Add unit test for Parse_Form procedure\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-util,stcarrez\/ada-util"} {"commit":"ff36b874aba5a39aa754da01ae800bfa62826148","old_file":"regtests\/babel-stores-local-tests.ads","new_file":"regtests\/babel-stores-local-tests.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- babel-stores-local-tests - Unit tests for babel streams\n-- Copyright (C) 2016 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith Util.Tests;\n\npackage Babel.Stores.Local.Tests is\n\n procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite);\n\n type Test is new Util.Tests.Test with null record;\n\n -- Test the Read_File and Write_File operations.\n procedure Test_Read_File (T : in out Test);\n\nend Babel.Stores.Local.Tests;\n","subject":"Add unit tests for local store and Read_File\/Write_File operations","message":"Add unit tests for local store and Read_File\/Write_File operations\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/babel"} {"commit":"7db778609de7d1a427526874ead015e65d876e6c","old_file":"awa\/plugins\/awa-blogs\/src\/awa-blogs-servlets.ads","new_file":"awa\/plugins\/awa-blogs\/src\/awa-blogs-servlets.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- awa-blogs-servlets -- Serve files saved in the storage service\n-- Copyright (C) 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\nwith Ada.Strings.Unbounded;\nwith Ada.Calendar;\n\nwith ADO;\n\nwith ASF.Requests;\nwith AWA.Storages.Servlets;\npackage AWA.Blogs.Servlets is\n\n -- The Storage_Servlet<\/b> represents the component that will handle\n -- an HTTP request received by the server.\n type Image_Servlet is new AWA.Storages.Servlets.Storage_Servlet with private;\n\n -- Load the data content that correspond to the GET request and get the name as well\n -- as mime-type and date.\n procedure Load (Server : in Image_Servlet;\n Request : in out ASF.Requests.Request'Class;\n Name : out Ada.Strings.Unbounded.Unbounded_String;\n Mime : out Ada.Strings.Unbounded.Unbounded_String;\n Date : out Ada.Calendar.Time;\n Data : out ADO.Blob_Ref);\n\nprivate\n\n type Image_Servlet is new AWA.Storages.Servlets.Storage_Servlet with null record;\n\nend AWA.Blogs.Servlets;\n","subject":"Add blog servlets definition with Image_Servlet type","message":"Add blog servlets definition with Image_Servlet type\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa,stcarrez\/ada-awa"} {"commit":"b7ade23a81a621a19feca3d7c57033e83e321b50","old_file":"src\/asf-components-widgets-factory.ads","new_file":"src\/asf-components-widgets-factory.ads","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- widgets-factory -- Factory for widget Components\n-- Copyright (C) 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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\nwith ASF.Factory;\n\npackage ASF.Components.Widgets.Factory is\n\n -- Get the widget component factory.\n function Definition return ASF.Factory.Factory_Bindings_Access;\n\nend ASF.Components.Widgets.Factory;\n","subject":"Define the factory for the creation of widget components","message":"Define the factory for the creation of widget components\n","lang":"Ada","license":"apache-2.0","repos":"Letractively\/ada-asf,Letractively\/ada-asf,Letractively\/ada-asf"} {"commit":"8021b592741bde72af9f26e8cff376e48fd57cc5","old_file":"src\/asf-rest-operation.adb","new_file":"src\/asf-rest-operation.adb","old_contents":"","new_contents":"-----------------------------------------------------------------------\n-- asf-rest-operation -- REST API Operation Definition\n-- Copyright (C) 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)\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-----------------------------------------------------------------------\npackage body ASF.Rest.Operation is\n\n URI_Mapping : aliased String := URI;\n Desc : aliased Static_Descriptor\n := (Next => null,\n Method => Method,\n Handler => Handler,\n Pattern => URI_Mapping'Access,\n Permission => Permission);\n\n function Definition return Descriptor_Access is\n begin\n return Desc'Access;\n end Definition;\n\nend ASF.Rest.Operation;\n","subject":"Implement the REST API definition package","message":"Implement the REST API definition package\n","lang":"Ada","license":"apache-2.0","repos":"stcarrez\/ada-asf,stcarrez\/ada-asf,stcarrez\/ada-asf"}