diff --git a/.metadata/.lock_info b/.metadata/.lock_info index 8cede54..19aec37 100644 --- a/.metadata/.lock_info +++ b/.metadata/.lock_info @@ -1,4 +1,4 @@ -#Wed Sep 09 15:38:19 CEST 2026 +#Thu Sep 10 12:58:40 CEST 2026 display=\:0 process-id=7 user=kotama diff --git a/.metadata/.log b/.metadata/.log index dd7f0bf..8e854dc 100644 --- a/.metadata/.log +++ b/.metadata/.log @@ -1521,3 +1521,49 @@ Caused by: java.net.UnknownHostException: CelesteKC-PC: Name or service not know !ENTRY ch.qos.logback.classic 1 0 2026-09-09 15:38:19.834 !MESSAGE Logback config file: /home/kotama/Silly-Jirafe/.metadata/.plugins/org.eclipse.m2e.logback/logback.2.7.101.20251017-1242.xml +!SESSION 2026-09-10 12:58:29.525 ----------------------------------------------- +eclipse.buildId=4.40.0.20260604-0652 +java.version=21.0.11 +java.vendor=Eclipse Adoptium +BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en +Framework arguments: -product org.eclipse.epp.package.java.product +Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.java.product + +!ENTRY ch.qos.logback.classic 1 0 2026-09-10 12:58:34.134 +!MESSAGE Activated before the state location was initialized. Retry after the state location is initialized. + +!ENTRY org.eclipse.ui.ide 4 0 2026-09-10 12:58:40.455 +!MESSAGE Failed to read host name. + +!ENTRY org.eclipse.ui.ide 4 0 2026-09-10 12:58:40.455 +!MESSAGE Failed to read host name. +!STACK 0 +java.net.UnknownHostException: CelesteKC-PC: CelesteKC-PC: Name or service not known + at java.base/java.net.InetAddress.getLocalHost(InetAddress.java:1936) + at org.eclipse.ui.internal.ide.application.IDEApplication.getHostName(IDEApplication.java:493) + at org.eclipse.ui.internal.ide.application.IDEApplication.writeWsLockInfo(IDEApplication.java:434) + at org.eclipse.ui.internal.ide.application.IDEApplication.checkInstanceLocation(IDEApplication.java:375) + at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:179) + at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:219) + at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:149) + at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:115) + at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:467) + at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:298) + at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) + at java.base/java.lang.reflect.Method.invoke(Method.java:580) + at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:615) + at org.eclipse.equinox.launcher.Main.basicRun(Main.java:563) + at org.eclipse.equinox.launcher.Main.run(Main.java:1415) + at org.eclipse.equinox.launcher.Main.main(Main.java:1387) +Caused by: java.net.UnknownHostException: CelesteKC-PC: Name or service not known + at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) + at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:52) + at java.base/java.net.InetAddress$PlatformResolver.lookupByName(InetAddress.java:1211) + at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1828) + at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:1139) + at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1818) + at java.base/java.net.InetAddress.getLocalHost(InetAddress.java:1931) + ... 15 more + +!ENTRY ch.qos.logback.classic 1 0 2026-09-10 12:58:41.272 +!MESSAGE Logback config file: /home/kotama/Silly-Jirafe/.metadata/.plugins/org.eclipse.m2e.logback/logback.2.7.101.20251017-1242.xml diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/21/a059b80507ad00111c90b3cc3652d2d3 b/.metadata/.plugins/org.eclipse.core.resources/.history/21/a059b80507ad00111c90b3cc3652d2d3 new file mode 100644 index 0000000..b69eb4c --- /dev/null +++ b/.metadata/.plugins/org.eclipse.core.resources/.history/21/a059b80507ad00111c90b3cc3652d2d3 @@ -0,0 +1,44 @@ +package org.sillyjirafe.json; + +import java.io.File; +import java.io.FileNotFoundException; +import java.util.Scanner; + +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.json.JSONArray; +import org.json.JSONObject; + +public class ApiKeys { + public static Map read() + { + + Path filePath = Paths.get("ApiKeys.json"); + try { + String jsonraw = Files.readString(filePath); + JSONObject json = new JSONObject(jsonraw); + Map ApiKeys = new HashMap(); + + JSONArray items = json.getJSONArray("keys"); + + for (int i = 0; i < items.length(); i++) { + JSONObject key = items.getJSONObject(i); + String bind = key.getString("bind"); + String password = key.getString("key"); + + ApiKeys.put(bind, password); + } + } catch (IOException e) { + System.err.println("I/O error: " + e.getMessage()); + } catch (SecurityException e) { + System.err.println("Access denied: " + e.getMessage()); + } + return null; + } +} diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/2b/60a61b900cad00111c90b3cc3652d2d3 b/.metadata/.plugins/org.eclipse.core.resources/.history/2b/60a61b900cad00111c90b3cc3652d2d3 new file mode 100644 index 0000000..fb72b3f --- /dev/null +++ b/.metadata/.plugins/org.eclipse.core.resources/.history/2b/60a61b900cad00111c90b3cc3652d2d3 @@ -0,0 +1,44 @@ +package org.sillyjirafe.uoapi.binds; + +import java.util.ArrayList; +import java.util.List; + +import org.json.JSONArray; +import org.json.JSONObject; +import org.sillyjirafe.uoapi.Api; +import org.sillyjirafe.uoapi.element; + +public class PixabayImagesApi implements Api +{ + public String getName() + { + return "PixabayImagesAPI"; + } + + public String getURL(int page, String apikey) { + return "https://pixabay.com/api/?per_page=200&page=" + page + "&key=" + apikey; + } + + public List Parse(String jsonRaw) { + List resultats = new ArrayList<>(); + + try { + JSONObject json = new JSONObject(jsonRaw); + JSONArray items = json.getJSONArray("hits"); + + for (int i = 0; i < items.length(); i++) { + JSONObject repo = items.getJSONObject(i); + + String titre = repo.getString("name"); + String url = repo.getString("pageURL"); + String licence = "CC0"; + + resultats.add(new element(titre, url, licence, "pixabay", "image")); + } + } catch (org.json.JSONException e) { + System.out.println("error but continue : " + e.getMessage()); + } + + return resultats; + } +} diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/66/50502fe707ad00111c90b3cc3652d2d3 b/.metadata/.plugins/org.eclipse.core.resources/.history/66/50502fe707ad00111c90b3cc3652d2d3 new file mode 100644 index 0000000..76ff9f8 --- /dev/null +++ b/.metadata/.plugins/org.eclipse.core.resources/.history/66/50502fe707ad00111c90b3cc3652d2d3 @@ -0,0 +1,45 @@ +package org.sillyjirafe.uoapi; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.sillyjirafe.uoapi.binds.*; + +public class Out { + List Apis = new ArrayList<>(); + + public List PreOut() + { + Apis.add(new GitHubMITApi()); + Apis.add(new GitHubLGPLApi()); + Apis.add(new GitHubApacheApi()); + Apis.add(new OpenVerseImagesApi()); + Apis.add(new OpenVerseAudiosApi()); + Apis.add(new PixabayImagesApi()); + List bindnames = new ArrayList<>(); + + for (Api api : Apis) + { + bindnames.add(api.getName()); + } + + return bindnames; + } + + public List out(Map bindpages, Map ApiKeys) throws Exception + { + List Elements = new ArrayList<>(); + + for (int i = 0; i < Apis.size(); i++) + { + List currentapi = Caller.CallApi(Apis.get(i), bindpages.get(Apis.get(i).getName()), ApiKeys.get(Apis.get(i).getName())); + for (int j = 0; j < currentapi.size(); j++) + { + Elements.add(currentapi.get(j)); + } + } + return Elements; + } +} diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/8/0035006a0bad00111c90b3cc3652d2d3 b/.metadata/.plugins/org.eclipse.core.resources/.history/8/0035006a0bad00111c90b3cc3652d2d3 new file mode 100644 index 0000000..ded96de --- /dev/null +++ b/.metadata/.plugins/org.eclipse.core.resources/.history/8/0035006a0bad00111c90b3cc3652d2d3 @@ -0,0 +1,44 @@ +package org.sillyjirafe.uoapi.binds; + +import java.util.ArrayList; +import java.util.List; + +import org.json.JSONArray; +import org.json.JSONObject; +import org.sillyjirafe.uoapi.Api; +import org.sillyjirafe.uoapi.element; + +public class PixabayImagesApi implements Api +{ + public String getName() + { + return "PixabayImagesAPI"; + } + + public String getURL(int page, String apikey) { + return "https://pixabay.com/api/?per_page=200&page=" + page + "&key=" + apikey; + } + + public List Parse(String jsonRaw) { + List resultats = new ArrayList<>(); + + try { + JSONObject json = new JSONObject(jsonRaw); + JSONArray items = json.getJSONArray(""); + + for (int i = 0; i < items.length(); i++) { + JSONObject repo = items.getJSONObject(i); + + String titre = repo.getString("name"); + String url = repo.getString("pageURL"); + String licence = "CC0"; + + resultats.add(new element(titre, url, licence, "pixabay", "image")); + } + } catch (org.json.JSONException e) { + System.out.println("error but continue : " + e.getMessage()); + } + + return resultats; + } +} diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/8a/6075ed6f09ad00111c90b3cc3652d2d3 b/.metadata/.plugins/org.eclipse.core.resources/.history/8a/6075ed6f09ad00111c90b3cc3652d2d3 new file mode 100644 index 0000000..fe6b091 --- /dev/null +++ b/.metadata/.plugins/org.eclipse.core.resources/.history/8a/6075ed6f09ad00111c90b3cc3652d2d3 @@ -0,0 +1,44 @@ +package org.sillyjirafe.uoapi.binds; + +import java.util.ArrayList; +import java.util.List; + +import org.json.JSONArray; +import org.json.JSONObject; +import org.sillyjirafe.uoapi.Api; +import org.sillyjirafe.uoapi.element; + +public class PixabayImagesApi implements Api +{ + public String getName() + { + return "PixabayImagesAPI"; + } + + public String getURL(int page, String apikey) { + return "https://pixabay.com/api/?page=" + page + "key=" + apikey; + } + + public List Parse(String jsonRaw) { + List resultats = new ArrayList<>(); + + try { + JSONObject json = new JSONObject(jsonRaw); + JSONArray items = json.getJSONArray(""); + + for (int i = 0; i < items.length(); i++) { + JSONObject repo = items.getJSONObject(i); + + String titre = repo.getString("full_name"); + String url = repo.getString("pageURL"); + String licence = repo.getJSONObject("license").getString("spdx_id"); + + resultats.add(new element(titre, url, licence, "pixabay", "image")); + } + } catch (org.json.JSONException e) { + System.out.println("error but continue : " + e.getMessage()); + } + + return resultats; + } +} diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/98/400969dc0cad00111c90b3cc3652d2d3 b/.metadata/.plugins/org.eclipse.core.resources/.history/98/400969dc0cad00111c90b3cc3652d2d3 new file mode 100644 index 0000000..cade396 --- /dev/null +++ b/.metadata/.plugins/org.eclipse.core.resources/.history/98/400969dc0cad00111c90b3cc3652d2d3 @@ -0,0 +1,44 @@ +package org.sillyjirafe.uoapi.binds; + +import java.util.ArrayList; +import java.util.List; + +import org.json.JSONArray; +import org.json.JSONObject; +import org.sillyjirafe.uoapi.Api; +import org.sillyjirafe.uoapi.element; + +public class PixabayImagesApi implements Api +{ + public String getName() + { + return "PixabayImagesApi"; + } + + public String getURL(int page, String apikey) { + return "https://pixabay.com/api/?per_page=200&page=" + page + "&key=" + apikey; + } + + public List Parse(String jsonRaw) { + List resultats = new ArrayList<>(); + + try { + JSONObject json = new JSONObject(jsonRaw); + JSONArray items = json.getJSONArray("hits"); + + for (int i = 0; i < items.length(); i++) { + JSONObject repo = items.getJSONObject(i); + + String titre = repo.getString("name"); + String url = repo.getString("pageURL"); + String licence = "CC0"; + + resultats.add(new element(titre, url, licence, "pixabay", "image")); + } + } catch (org.json.JSONException e) { + System.out.println("error but continue : " + e.getMessage()); + } + + return resultats; + } +} diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/b/c09a280c07ad00111c90b3cc3652d2d3 b/.metadata/.plugins/org.eclipse.core.resources/.history/b/c09a280c07ad00111c90b3cc3652d2d3 new file mode 100644 index 0000000..ae8f6bb --- /dev/null +++ b/.metadata/.plugins/org.eclipse.core.resources/.history/b/c09a280c07ad00111c90b3cc3652d2d3 @@ -0,0 +1,45 @@ +package org.sillyjirafe.json; + +import java.io.File; +import java.io.FileNotFoundException; +import java.util.Scanner; + +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.json.JSONArray; +import org.json.JSONObject; + +public class ApiKeys { + public static Map read() + { + + Path filePath = Paths.get("ApiKeys.json"); + Map ApiKeys = new HashMap(); + try { + String jsonraw = Files.readString(filePath); + JSONObject json = new JSONObject(jsonraw); + + + JSONArray items = json.getJSONArray("keys"); + + for (int i = 0; i < items.length(); i++) { + JSONObject key = items.getJSONObject(i); + String bind = key.getString("bind"); + String password = key.getString("key"); + + ApiKeys.put(bind, password); + } + } catch (IOException e) { + System.err.println("I/O error: " + e.getMessage()); + } catch (SecurityException e) { + System.err.println("Access denied: " + e.getMessage()); + } + return null; + } +} diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/b5/007c70d907ad00111c90b3cc3652d2d3 b/.metadata/.plugins/org.eclipse.core.resources/.history/b5/007c70d907ad00111c90b3cc3652d2d3 new file mode 100644 index 0000000..a0cab5c --- /dev/null +++ b/.metadata/.plugins/org.eclipse.core.resources/.history/b5/007c70d907ad00111c90b3cc3652d2d3 @@ -0,0 +1,44 @@ +package org.sillyjirafe.uoapi; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.sillyjirafe.uoapi.binds.*; +public class Out { + List Apis = new ArrayList<>(); + + public List PreOut() + { + Apis.add(new GitHubMITApi()); + Apis.add(new GitHubLGPLApi()); + Apis.add(new GitHubApacheApi()); + Apis.add(new OpenVerseImagesApi()); + Apis.add(new OpenVerseAudiosApi()); + Apis.add(new PixabayImagesApi()); + List bindnames = new ArrayList<>(); + + for (Api api : Apis) + { + bindnames.add(api.getName()); + } + + return bindnames; + } + + public List out(Map bindpages, Map ApiKeys) throws Exception + { + List Elements = new ArrayList<>(); + + for (int i = 0; i < Apis.size(); i++) + { + List currentapi = Caller.CallApi(Apis.get(i), bindpages.get(Apis.get(i).getName()), ApiKeys.get(Apis.get(i).getName())); + for (int j = 0; j < currentapi.size(); j++) + { + Elements.add(currentapi.get(j)); + } + } + return Elements; + } +} diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/b9/e0fc094b0aad00111c90b3cc3652d2d3 b/.metadata/.plugins/org.eclipse.core.resources/.history/b9/e0fc094b0aad00111c90b3cc3652d2d3 new file mode 100644 index 0000000..f9868db --- /dev/null +++ b/.metadata/.plugins/org.eclipse.core.resources/.history/b9/e0fc094b0aad00111c90b3cc3652d2d3 @@ -0,0 +1,44 @@ +package org.sillyjirafe.uoapi.binds; + +import java.util.ArrayList; +import java.util.List; + +import org.json.JSONArray; +import org.json.JSONObject; +import org.sillyjirafe.uoapi.Api; +import org.sillyjirafe.uoapi.element; + +public class PixabayImagesApi implements Api +{ + public String getName() + { + return "PixabayImagesAPI"; + } + + public String getURL(int page, String apikey) { + return "https://pixabay.com/api/?page=" + page + "key=" + apikey; + } + + public List Parse(String jsonRaw) { + List resultats = new ArrayList<>(); + + try { + JSONObject json = new JSONObject(jsonRaw); + JSONArray items = json.getJSONArray(""); + + for (int i = 0; i < items.length(); i++) { + JSONObject repo = items.getJSONObject(i); + + String titre = repo.getString("name"); + String url = repo.getString("pageURL"); + String licence = "CC0"; + + resultats.add(new element(titre, url, licence, "pixabay", "image")); + } + } catch (org.json.JSONException e) { + System.out.println("error but continue : " + e.getMessage()); + } + + return resultats; + } +} diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/c8/a0e8abd707ad00111c90b3cc3652d2d3 b/.metadata/.plugins/org.eclipse.core.resources/.history/c8/a0e8abd707ad00111c90b3cc3652d2d3 new file mode 100644 index 0000000..24aedcc --- /dev/null +++ b/.metadata/.plugins/org.eclipse.core.resources/.history/c8/a0e8abd707ad00111c90b3cc3652d2d3 @@ -0,0 +1,50 @@ +package org.sillyjirafe.uoapi; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.sillyjirafe.uoapi.binds.*; +import org.sillyjirafe.uoapi.binds.GitHubLGPLApi; +import org.sillyjirafe.uoapi.binds.GitHubMITApi; +import org.sillyjirafe.uoapi.binds.OpenVerseAudiosApi; +import org.sillyjirafe.uoapi.binds.OpenVerseImagesApi; +import org.sillyjirafe.uoapi.binds.PixabayImagesApi; + +public class Out { + List Apis = new ArrayList<>(); + + public List PreOut() + { + Apis.add(new GitHubMITApi()); + Apis.add(new GitHubLGPLApi()); + Apis.add(new GitHubApacheApi()); + Apis.add(new OpenVerseImagesApi()); + Apis.add(new OpenVerseAudiosApi()); + Apis.add(new PixabayImagesApi()); + List bindnames = new ArrayList<>(); + + for (Api api : Apis) + { + bindnames.add(api.getName()); + } + + return bindnames; + } + + public List out(Map bindpages, Map ApiKeys) throws Exception + { + List Elements = new ArrayList<>(); + + for (int i = 0; i < Apis.size(); i++) + { + List currentapi = Caller.CallApi(Apis.get(i), bindpages.get(Apis.get(i).getName()), ApiKeys.get(Apis.get(i).getName())); + for (int j = 0; j < currentapi.size(); j++) + { + Elements.add(currentapi.get(j)); + } + } + return Elements; + } +} diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/ca/60a86a7909ad00111c90b3cc3652d2d3 b/.metadata/.plugins/org.eclipse.core.resources/.history/ca/60a86a7909ad00111c90b3cc3652d2d3 new file mode 100644 index 0000000..449f10e --- /dev/null +++ b/.metadata/.plugins/org.eclipse.core.resources/.history/ca/60a86a7909ad00111c90b3cc3652d2d3 @@ -0,0 +1,44 @@ +package org.sillyjirafe.uoapi.binds; + +import java.util.ArrayList; +import java.util.List; + +import org.json.JSONArray; +import org.json.JSONObject; +import org.sillyjirafe.uoapi.Api; +import org.sillyjirafe.uoapi.element; + +public class PixabayImagesApi implements Api +{ + public String getName() + { + return "PixabayImagesAPI"; + } + + public String getURL(int page, String apikey) { + return "https://pixabay.com/api/?page=" + page + "key=" + apikey; + } + + public List Parse(String jsonRaw) { + List resultats = new ArrayList<>(); + + try { + JSONObject json = new JSONObject(jsonRaw); + JSONArray items = json.getJSONArray(""); + + for (int i = 0; i < items.length(); i++) { + JSONObject repo = items.getJSONObject(i); + + String titre = repo.getString("name"); + String url = repo.getString("pageURL"); + String licence = repo.getJSONObject("license").getString("spdx_id"); + + resultats.add(new element(titre, url, licence, "pixabay", "image")); + } + } catch (org.json.JSONException e) { + System.out.println("error but continue : " + e.getMessage()); + } + + return resultats; + } +} diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/e6/10f2bac707ad00111c90b3cc3652d2d3 b/.metadata/.plugins/org.eclipse.core.resources/.history/e6/10f2bac707ad00111c90b3cc3652d2d3 new file mode 100644 index 0000000..0684e44 --- /dev/null +++ b/.metadata/.plugins/org.eclipse.core.resources/.history/e6/10f2bac707ad00111c90b3cc3652d2d3 @@ -0,0 +1,49 @@ +package org.sillyjirafe.uoapi; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.sillyjirafe.uoapi.binds.GitHubApacheApi; +import org.sillyjirafe.uoapi.binds.GitHubLGPLApi; +import org.sillyjirafe.uoapi.binds.GitHubMITApi; +import org.sillyjirafe.uoapi.binds.OpenVerseAudiosApi; +import org.sillyjirafe.uoapi.binds.OpenVerseImagesApi; + +public class Out { + List Apis = new ArrayList<>(); + + public List PreOut() + { + Apis.add(new GitHubMITApi()); + Apis.add(new GitHubLGPLApi()); + Apis.add(new GitHubApacheApi()); + Apis.add(new OpenVerseImagesApi()); + Apis.add(new OpenVerseAudiosApi()); + + List bindnames = new ArrayList<>(); + + for (Api api : Apis) + { + bindnames.add(api.getName()); + } + + return bindnames; + } + + public List out(Map bindpages, Map ApiKeys) throws Exception + { + List Elements = new ArrayList<>(); + + for (int i = 0; i < Apis.size(); i++) + { + List currentapi = Caller.CallApi(Apis.get(i), bindpages.get(Apis.get(i).getName()), ApiKeys.get(Apis.get(i).getName())); + for (int j = 0; j < currentapi.size(); j++) + { + Elements.add(currentapi.get(j)); + } + } + return Elements; + } +} diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/fd/c06d9ad507ad00111c90b3cc3652d2d3 b/.metadata/.plugins/org.eclipse.core.resources/.history/fd/c06d9ad507ad00111c90b3cc3652d2d3 new file mode 100644 index 0000000..c70384f --- /dev/null +++ b/.metadata/.plugins/org.eclipse.core.resources/.history/fd/c06d9ad507ad00111c90b3cc3652d2d3 @@ -0,0 +1,49 @@ +package org.sillyjirafe.uoapi; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.sillyjirafe.uoapi.binds.GitHubApacheApi; +import org.sillyjirafe.uoapi.binds.GitHubLGPLApi; +import org.sillyjirafe.uoapi.binds.GitHubMITApi; +import org.sillyjirafe.uoapi.binds.OpenVerseAudiosApi; +import org.sillyjirafe.uoapi.binds.OpenVerseImagesApi; + +public class Out { + List Apis = new ArrayList<>(); + + public List PreOut() + { + Apis.add(new GitHubMITApi()); + Apis.add(new GitHubLGPLApi()); + Apis.add(new GitHubApacheApi()); + Apis.add(new OpenVerseImagesApi()); + Apis.add(new OpenVerseAudiosApi()); + Apis.add(new PixabayImagesApi()); + List bindnames = new ArrayList<>(); + + for (Api api : Apis) + { + bindnames.add(api.getName()); + } + + return bindnames; + } + + public List out(Map bindpages, Map ApiKeys) throws Exception + { + List Elements = new ArrayList<>(); + + for (int i = 0; i < Apis.size(); i++) + { + List currentapi = Caller.CallApi(Apis.get(i), bindpages.get(Apis.get(i).getName()), ApiKeys.get(Apis.get(i).getName())); + for (int j = 0; j < currentapi.size(); j++) + { + Elements.add(currentapi.get(j)); + } + } + return Elements; + } +} diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/.org.eclipse.egit.core.cmp/.markers.snap b/.metadata/.plugins/org.eclipse.core.resources/.projects/.org.eclipse.egit.core.cmp/.markers.snap new file mode 100644 index 0000000..fd766bf Binary files /dev/null and b/.metadata/.plugins/org.eclipse.core.resources/.projects/.org.eclipse.egit.core.cmp/.markers.snap differ diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/.org.eclipse.egit.core.cmp/.syncinfo.snap b/.metadata/.plugins/org.eclipse.core.resources/.projects/.org.eclipse.egit.core.cmp/.syncinfo.snap new file mode 100644 index 0000000..fd766bf Binary files /dev/null and b/.metadata/.plugins/org.eclipse.core.resources/.projects/.org.eclipse.egit.core.cmp/.syncinfo.snap differ diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/SillyJirafe.org/.indexes/e4/e4/90/40/history.index b/.metadata/.plugins/org.eclipse.core.resources/.projects/SillyJirafe.org/.indexes/e4/e4/90/40/history.index index d06607a..40c64f7 100644 Binary files a/.metadata/.plugins/org.eclipse.core.resources/.projects/SillyJirafe.org/.indexes/e4/e4/90/40/history.index and b/.metadata/.plugins/org.eclipse.core.resources/.projects/SillyJirafe.org/.indexes/e4/e4/90/40/history.index differ diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/SillyJirafe.org/.indexes/e4/e4/90/e8/history.index b/.metadata/.plugins/org.eclipse.core.resources/.projects/SillyJirafe.org/.indexes/e4/e4/90/e8/history.index index bb2b755..9b3f375 100644 Binary files a/.metadata/.plugins/org.eclipse.core.resources/.projects/SillyJirafe.org/.indexes/e4/e4/90/e8/history.index and b/.metadata/.plugins/org.eclipse.core.resources/.projects/SillyJirafe.org/.indexes/e4/e4/90/e8/history.index differ diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/SillyJirafe.org/.markers.snap b/.metadata/.plugins/org.eclipse.core.resources/.projects/SillyJirafe.org/.markers.snap new file mode 100644 index 0000000..9256d7a Binary files /dev/null and b/.metadata/.plugins/org.eclipse.core.resources/.projects/SillyJirafe.org/.markers.snap differ diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/SillyJirafe.org/.syncinfo.snap b/.metadata/.plugins/org.eclipse.core.resources/.projects/SillyJirafe.org/.syncinfo.snap new file mode 100644 index 0000000..fd766bf Binary files /dev/null and b/.metadata/.plugins/org.eclipse.core.resources/.projects/SillyJirafe.org/.syncinfo.snap differ diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/SillyJirafe.org/org.eclipse.jdt.core/state.dat b/.metadata/.plugins/org.eclipse.core.resources/.projects/SillyJirafe.org/org.eclipse.jdt.core/state.dat deleted file mode 100644 index f3beb45..0000000 Binary files a/.metadata/.plugins/org.eclipse.core.resources/.projects/SillyJirafe.org/org.eclipse.jdt.core/state.dat and /dev/null differ diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/sillyjirafe.org.api/.markers.snap b/.metadata/.plugins/org.eclipse.core.resources/.projects/sillyjirafe.org.api/.markers.snap new file mode 100644 index 0000000..fd766bf Binary files /dev/null and b/.metadata/.plugins/org.eclipse.core.resources/.projects/sillyjirafe.org.api/.markers.snap differ diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/sillyjirafe.org.api/.syncinfo.snap b/.metadata/.plugins/org.eclipse.core.resources/.projects/sillyjirafe.org.api/.syncinfo.snap new file mode 100644 index 0000000..fd766bf Binary files /dev/null and b/.metadata/.plugins/org.eclipse.core.resources/.projects/sillyjirafe.org.api/.syncinfo.snap differ diff --git a/.metadata/.plugins/org.eclipse.core.resources/.root/.markers.snap b/.metadata/.plugins/org.eclipse.core.resources/.root/.markers.snap new file mode 100644 index 0000000..bf279e7 Binary files /dev/null and b/.metadata/.plugins/org.eclipse.core.resources/.root/.markers.snap differ diff --git a/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources b/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources index da68cec..1c37cda 100644 Binary files a/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources and b/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources differ diff --git a/.metadata/.plugins/org.eclipse.core.resources/25.snap b/.metadata/.plugins/org.eclipse.core.resources/25.snap new file mode 100644 index 0000000..1924734 Binary files /dev/null and b/.metadata/.plugins/org.eclipse.core.resources/25.snap differ diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.debug.ui.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.debug.ui.prefs index a2e2ec3..4b54bf5 100644 --- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.debug.ui.prefs +++ b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.debug.ui.prefs @@ -1,3 +1,20 @@ eclipse.preferences.version=1 +org.eclipse.debug.ui.MemoryHistoryKnownColor=235,235,235 +org.eclipse.debug.ui.MemoryHistoryKnownColor,defaultValueBeforeOverriddenFromCSS=0,0,0 +org.eclipse.debug.ui.MemoryHistoryUnknownColor=170,175,185 +org.eclipse.debug.ui.MemoryHistoryUnknownColor,defaultValueBeforeOverriddenFromCSS=114,119,129 +org.eclipse.debug.ui.PREF_CHANGED_VALUE_BACKGROUND=150,80,115 +org.eclipse.debug.ui.PREF_CHANGED_VALUE_BACKGROUND,defaultValueBeforeOverriddenFromCSS=255,255,0 org.eclipse.debug.ui.PREF_LAUNCH_PERSPECTIVES=\n\n +org.eclipse.debug.ui.changedDebugElement=255,128,128 +org.eclipse.debug.ui.changedDebugElement,defaultValueBeforeOverriddenFromCSS=255,0,0 +org.eclipse.debug.ui.consoleBackground=53,53,53 +org.eclipse.debug.ui.consoleBackground,defaultValueBeforeOverriddenFromCSS=255,255,255 +org.eclipse.debug.ui.errorColor=225,30,70 +org.eclipse.debug.ui.errorColor,defaultValueBeforeOverriddenFromCSS=255,0,0 +org.eclipse.debug.ui.inColor=140,175,210 +org.eclipse.debug.ui.inColor,defaultValueBeforeOverriddenFromCSS=0,200,125 +org.eclipse.debug.ui.outColor=235,235,235 +org.eclipse.debug.ui.outColor,defaultValueBeforeOverriddenFromCSS=0,0,0 +overriddenByCSS=,org.eclipse.debug.ui.MemoryHistoryKnownColor,org.eclipse.debug.ui.MemoryHistoryUnknownColor,org.eclipse.debug.ui.PREF_CHANGED_VALUE_BACKGROUND,org.eclipse.debug.ui.changedDebugElement,org.eclipse.debug.ui.consoleBackground,org.eclipse.debug.ui.errorColor,org.eclipse.debug.ui.inColor,org.eclipse.debug.ui.outColor, preferredTargets=default\:default| diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs index ccc96c7..f01384c 100644 --- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs +++ b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs @@ -1,10 +1,158 @@ +content_assist_completion_replacement_background=200,200,0 +content_assist_completion_replacement_background,defaultValueBeforeOverriddenFromCSS=255,255,0 +content_assist_completion_replacement_foreground=200,0,0 +content_assist_completion_replacement_foreground,defaultValueBeforeOverriddenFromCSS=255,0,0 content_assist_disabled_computers=org.eclipse.jdt.ui.textProposalCategory\u0000org.eclipse.jdt.ui.javaPostfixProposalCategory\u0000org.eclipse.jdt.ui.javaAllProposalCategory\u0000org.eclipse.jdt.ui.javaTypeProposalCategory\u0000org.eclipse.jdt.ui.javaNoTypeProposalCategory\u0000org.eclipse.jdt.ui.javaChainProposalCategory\u0000 content_assist_lru_history= content_assist_number_of_computers=15 +content_assist_parameters_background=52,57,61 +content_assist_parameters_background,defaultValueBeforeOverriddenFromCSS=255,255,255 +content_assist_parameters_foreground=238,238,238 +content_assist_parameters_foreground,defaultValueBeforeOverriddenFromCSS=0,0,0 content_assist_proposals_background=20,22,24 content_assist_proposals_foreground=252,252,252 eclipse.preferences.version=1 +java_bracket=249,250,244 +java_bracket,defaultValueBeforeOverriddenFromCSS=0,0,0 +java_comment_task_tag=154,140,124 +java_comment_task_tag,defaultValueBeforeOverriddenFromCSS=127,159,191 +java_default=217,232,247 +java_default,defaultValueBeforeOverriddenFromCSS=0,0,0 +java_doc_default=128,128,128 +java_doc_default,defaultValueBeforeOverriddenFromCSS=63,95,191 +java_doc_keyword=154,140,124 +java_doc_keyword,defaultValueBeforeOverriddenFromCSS=127,159,191 +java_doc_link=169,156,140 +java_doc_link,defaultValueBeforeOverriddenFromCSS=63,63,191 +java_doc_tag=30,120,155 +java_doc_tag,defaultValueBeforeOverriddenFromCSS=127,127,159 +java_keyword=204,108,29 +java_keyword,defaultValueBeforeOverriddenFromCSS=127,0,85 +java_keyword_bold=false +java_keyword_bold,defaultValueBeforeOverriddenFromCSS=true +java_keyword_return=204,108,29 +java_keyword_return,defaultValueBeforeOverriddenFromCSS=127,0,85 +java_keyword_return_bold=false +java_keyword_return_bold,defaultValueBeforeOverriddenFromCSS=true +java_multi_line_comment=128,128,128 +java_multi_line_comment,defaultValueBeforeOverriddenFromCSS=63,127,95 +java_operator=230,230,250 +java_operator,defaultValueBeforeOverriddenFromCSS=0,0,0 +java_single_line_comment=128,128,128 +java_single_line_comment,defaultValueBeforeOverriddenFromCSS=63,127,95 +java_string=23,198,163 +java_string,defaultValueBeforeOverriddenFromCSS=42,0,255 +javadocElementsStyling.darkModeDefaultColors=true +matchingBracketsColor=249,250,244 +matchingBracketsColor,defaultValueBeforeOverriddenFromCSS=127,0,85 org.eclipse.jdt.ui.formatterprofiles.version=23 +overriddenByCSS=,content_assist_completion_replacement_background,content_assist_completion_replacement_foreground,content_assist_parameters_background,content_assist_parameters_foreground,java_bracket,java_comment_task_tag,java_default,java_doc_default,java_doc_keyword,java_doc_link,java_doc_tag,java_keyword,java_keyword_bold,java_keyword_return,java_keyword_return_bold,java_multi_line_comment,java_operator,java_single_line_comment,java_string,matchingBracketsColor,pf_coloring_argument,pf_coloring_assignment,pf_coloring_comment,pf_coloring_key,pf_coloring_value,semanticHighlighting.abstractClass.color,semanticHighlighting.abstractClass.enabled,semanticHighlighting.abstractMethodInvocation.color,semanticHighlighting.abstractMethodInvocation.enabled,semanticHighlighting.annotation.color,semanticHighlighting.annotation.enabled,semanticHighlighting.annotation.italic,semanticHighlighting.annotationElementReference.color,semanticHighlighting.annotationElementReference.enabled,semanticHighlighting.class.color,semanticHighlighting.class.enabled,semanticHighlighting.deprecatedMember.color,semanticHighlighting.deprecatedMember.enabled,semanticHighlighting.deprecatedMember.underline,semanticHighlighting.deprecatedMember.strikethrough,semanticHighlighting.enum.color,semanticHighlighting.enum.enabled,semanticHighlighting.enum.italic,semanticHighlighting.field.color,semanticHighlighting.field.enabled,semanticHighlighting.inheritedField.color,semanticHighlighting.inheritedMethodInvocation.color,semanticHighlighting.inheritedMethodInvocation.enabled,semanticHighlighting.interface.color,semanticHighlighting.interface.enabled,semanticHighlighting.localVariable.color,semanticHighlighting.localVariable.enabled,semanticHighlighting.localVariableDeclaration.color,semanticHighlighting.localVariableDeclaration.enabled,semanticHighlighting.localVariableDeclaration.bold,semanticHighlighting.method.color,semanticHighlighting.method.enabled,semanticHighlighting.methodDeclarationName.color,semanticHighlighting.methodDeclarationName.enabled,semanticHighlighting.methodDeclarationName.bold,semanticHighlighting.number.color,semanticHighlighting.number.enabled,semanticHighlighting.parameterVariable.color,semanticHighlighting.parameterVariable.enabled,semanticHighlighting.staticField.color,semanticHighlighting.staticField.enabled,semanticHighlighting.staticFinalField.color,semanticHighlighting.staticFinalField.enabled,semanticHighlighting.staticMethodInvocation.color,semanticHighlighting.staticMethodInvocation.enabled,semanticHighlighting.typeArgument.color,semanticHighlighting.typeArgument.enabled,semanticHighlighting.typeParameter.color,semanticHighlighting.typeParameter.enabled,semanticHighlighting.typeParameter.bold,semanticHighlighting.restrictedKeywords.color,semanticHighlighting.restrictedKeywords.bold,sourceHoverBackgroundColor,javadocElementsStyling.darkModeDefaultColors, +pf_coloring_argument=221,40,103 +pf_coloring_argument,defaultValueBeforeOverriddenFromCSS=127,0,85 +pf_coloring_assignment=217,232,247 +pf_coloring_assignment,defaultValueBeforeOverriddenFromCSS=0,0,0 +pf_coloring_comment=128,128,128 +pf_coloring_comment,defaultValueBeforeOverriddenFromCSS=63,127,95 +pf_coloring_key=217,232,247 +pf_coloring_key,defaultValueBeforeOverriddenFromCSS=0,0,0 +pf_coloring_value=23,198,163 +pf_coloring_value,defaultValueBeforeOverriddenFromCSS=42,0,255 +semanticHighlighting.abstractClass.color=62,171,230 +semanticHighlighting.abstractClass.color,defaultValueBeforeOverriddenFromCSS=139,136,22 +semanticHighlighting.abstractClass.enabled=true +semanticHighlighting.abstractClass.enabled,defaultValueBeforeOverriddenFromCSS=false +semanticHighlighting.abstractMethodInvocation.color=128,246,167 +semanticHighlighting.abstractMethodInvocation.color,defaultValueBeforeOverriddenFromCSS=0,0,0 +semanticHighlighting.abstractMethodInvocation.enabled=true +semanticHighlighting.abstractMethodInvocation.enabled,defaultValueBeforeOverriddenFromCSS=false +semanticHighlighting.annotation.color=160,160,160 +semanticHighlighting.annotation.color,defaultValueBeforeOverriddenFromCSS=100,100,100 +semanticHighlighting.annotation.enabled=true +semanticHighlighting.annotation.italic=true +semanticHighlighting.annotation.italic,defaultValueBeforeOverriddenFromCSS=false +semanticHighlighting.annotationElementReference.color=235,75,100 +semanticHighlighting.annotationElementReference.color,defaultValueBeforeOverriddenFromCSS=0,0,0 +semanticHighlighting.annotationElementReference.enabled=true +semanticHighlighting.annotationElementReference.enabled,defaultValueBeforeOverriddenFromCSS=false +semanticHighlighting.class.color=18,144,195 +semanticHighlighting.class.color,defaultValueBeforeOverriddenFromCSS=0,80,50 +semanticHighlighting.class.enabled=true +semanticHighlighting.class.enabled,defaultValueBeforeOverriddenFromCSS=false +semanticHighlighting.deprecatedMember.color=128,128,128 +semanticHighlighting.deprecatedMember.color,defaultValueBeforeOverriddenFromCSS=0,0,0 +semanticHighlighting.deprecatedMember.enabled=true +semanticHighlighting.deprecatedMember.strikethrough=true +semanticHighlighting.deprecatedMember.underline=false +semanticHighlighting.enum.color=204,129,186 +semanticHighlighting.enum.color,defaultValueBeforeOverriddenFromCSS=100,70,50 +semanticHighlighting.enum.enabled=true +semanticHighlighting.enum.enabled,defaultValueBeforeOverriddenFromCSS=false +semanticHighlighting.enum.italic=true +semanticHighlighting.enum.italic,defaultValueBeforeOverriddenFromCSS=false +semanticHighlighting.field.color=102,225,248 +semanticHighlighting.field.color,defaultValueBeforeOverriddenFromCSS=0,0,192 +semanticHighlighting.field.enabled=true +semanticHighlighting.inheritedField.color=143,143,191 +semanticHighlighting.inheritedField.color,defaultValueBeforeOverriddenFromCSS=0,0,192 +semanticHighlighting.inheritedMethodInvocation.color=205,246,104 +semanticHighlighting.inheritedMethodInvocation.color,defaultValueBeforeOverriddenFromCSS=0,0,0 +semanticHighlighting.inheritedMethodInvocation.enabled=true +semanticHighlighting.inheritedMethodInvocation.enabled,defaultValueBeforeOverriddenFromCSS=false +semanticHighlighting.interface.color=128,242,246 +semanticHighlighting.interface.color,defaultValueBeforeOverriddenFromCSS=50,63,112 +semanticHighlighting.interface.enabled=true +semanticHighlighting.interface.enabled,defaultValueBeforeOverriddenFromCSS=false +semanticHighlighting.localVariable.color=243,236,121 +semanticHighlighting.localVariable.color,defaultValueBeforeOverriddenFromCSS=106,62,62 +semanticHighlighting.localVariable.enabled=true +semanticHighlighting.localVariableDeclaration.bold=false +semanticHighlighting.localVariableDeclaration.bold,defaultValueBeforeOverriddenFromCSS=true +semanticHighlighting.localVariableDeclaration.color=242,242,0 +semanticHighlighting.localVariableDeclaration.color,defaultValueBeforeOverriddenFromCSS=106,62,62 +semanticHighlighting.localVariableDeclaration.enabled=true +semanticHighlighting.localVariableDeclaration.enabled,defaultValueBeforeOverriddenFromCSS=false +semanticHighlighting.method.color=167,236,33 +semanticHighlighting.method.color,defaultValueBeforeOverriddenFromCSS=0,0,0 +semanticHighlighting.method.enabled=true +semanticHighlighting.method.enabled,defaultValueBeforeOverriddenFromCSS=false +semanticHighlighting.methodDeclarationName.bold=false +semanticHighlighting.methodDeclarationName.bold,defaultValueBeforeOverriddenFromCSS=true +semanticHighlighting.methodDeclarationName.color=30,181,64 +semanticHighlighting.methodDeclarationName.color,defaultValueBeforeOverriddenFromCSS=0,0,0 +semanticHighlighting.methodDeclarationName.enabled=true +semanticHighlighting.methodDeclarationName.enabled,defaultValueBeforeOverriddenFromCSS=false +semanticHighlighting.number.color=104,151,187 +semanticHighlighting.number.color,defaultValueBeforeOverriddenFromCSS=42,0,255 +semanticHighlighting.number.enabled=true +semanticHighlighting.number.enabled,defaultValueBeforeOverriddenFromCSS=false +semanticHighlighting.parameterVariable.color=121,171,255 +semanticHighlighting.parameterVariable.color,defaultValueBeforeOverriddenFromCSS=106,62,62 +semanticHighlighting.parameterVariable.enabled=true +semanticHighlighting.parameterVariable.enabled,defaultValueBeforeOverriddenFromCSS=false +semanticHighlighting.restrictedKeywords.bold=false +semanticHighlighting.restrictedKeywords.bold,defaultValueBeforeOverriddenFromCSS=true +semanticHighlighting.restrictedKeywords.color=204,108,29 +semanticHighlighting.restrictedKeywords.color,defaultValueBeforeOverriddenFromCSS=127,0,85 +semanticHighlighting.staticField.color=141,218,248 +semanticHighlighting.staticField.color,defaultValueBeforeOverriddenFromCSS=0,0,192 +semanticHighlighting.staticField.enabled=true +semanticHighlighting.staticFinalField.color=141,218,248 +semanticHighlighting.staticFinalField.color,defaultValueBeforeOverriddenFromCSS=0,0,192 +semanticHighlighting.staticFinalField.enabled=true +semanticHighlighting.staticMethodInvocation.color=150,236,63 +semanticHighlighting.staticMethodInvocation.color,defaultValueBeforeOverriddenFromCSS=0,0,0 +semanticHighlighting.staticMethodInvocation.enabled=true +semanticHighlighting.typeArgument.color=177,102,218 +semanticHighlighting.typeArgument.color,defaultValueBeforeOverriddenFromCSS=13,100,0 +semanticHighlighting.typeArgument.enabled=true +semanticHighlighting.typeArgument.enabled,defaultValueBeforeOverriddenFromCSS=false +semanticHighlighting.typeParameter.bold=false +semanticHighlighting.typeParameter.bold,defaultValueBeforeOverriddenFromCSS=true +semanticHighlighting.typeParameter.color=191,164,164 +semanticHighlighting.typeParameter.color,defaultValueBeforeOverriddenFromCSS=100,70,50 +semanticHighlighting.typeParameter.enabled=true +semanticHighlighting.typeParameter.enabled,defaultValueBeforeOverriddenFromCSS=false +sourceHoverBackgroundColor=68,68,68 spelling_locale_initialized=true typefilter_migrated_2=true useAnnotationsPrefPage=true diff --git a/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi b/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi index cbf4068..470a692 100644 --- a/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi +++ b/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi @@ -1,8 +1,8 @@ - - + + activeSchemeId:org.eclipse.ui.defaultAcceleratorConfiguration - + @@ -11,9 +11,9 @@ topLevel shellMaximized - - - + + + persp.actionSet:org.eclipse.mylyn.tasks.ui.navigation persp.actionSet:org.eclipse.ui.cheatsheets.actionSet @@ -80,97 +80,97 @@ persp.editorOnboardingCommand:Show Key Assist$$$Shift+Ctrl+L persp.editorOnboardingCommand:New$$$Ctrl+N persp.editorOnboardingCommand:Open Type$$$Shift+Ctrl+T - - - + + + org.eclipse.e4.primaryNavigationStack - + View categoryTag:Java - + View categoryTag:Java - + View categoryTag:General - + View categoryTag:Java - - + + View categoryTag:Git - - - - + + + + org.eclipse.e4.secondaryNavigationStack - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:Mylyn - + View categoryTag:Java - + View categoryTag:Ant - + org.eclipse.e4.secondaryDataStack Minimized - + View categoryTag:General - + View categoryTag:Java - + View categoryTag:Java - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:Terminal @@ -179,2393 +179,2395 @@ - - + + View categoryTag:Help - + View categoryTag:General - + View categoryTag:Help - + View categoryTag:Help - + View categoryTag:General - + ViewMenu menuContribution:menu - + - + View categoryTag:Help - - + + EditorStack org.eclipse.e4.primaryDataStack active noFocus - - + + Editor removeOnHide org.eclipse.jdt.ui.CompilationUnitEditor - + Editor removeOnHide org.eclipse.jdt.ui.CompilationUnitEditor - - + + Editor removeOnHide org.eclipse.jdt.ui.CompilationUnitEditor - + Editor removeOnHide org.eclipse.jdt.ui.CompilationUnitEditor - + Editor removeOnHide org.eclipse.jdt.ui.CompilationUnitEditor - + Editor removeOnHide org.eclipse.jdt.ui.CompilationUnitEditor - + Editor removeOnHide org.eclipse.jdt.ui.CompilationUnitEditor - + Editor removeOnHide org.eclipse.jdt.ui.CompilationUnitEditor - - + + Editor removeOnHide org.eclipse.jdt.ui.CompilationUnitEditor - + Editor removeOnHide org.eclipse.jdt.ui.CompilationUnitEditor - + Editor removeOnHide org.eclipse.jdt.ui.CompilationUnitEditor - - + + Editor removeOnHide org.eclipse.jdt.ui.CompilationUnitEditor - + Editor removeOnHide org.eclipse.jdt.ui.CompilationUnitEditor - - + + Editor removeOnHide org.eclipse.jdt.ui.CompilationUnitEditor active - activeOnClose - + View categoryTag:Java - + ViewMenu menuContribution:menu - + - + View categoryTag:Java - + View categoryTag:General - + View categoryTag:General - + ViewMenu menuContribution:menu - + - + View categoryTag:Java - + View categoryTag:Java - + View categoryTag:General - + View categoryTag:General - + ViewMenu menuContribution:menu - + - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + ViewMenu menuContribution:menu - + - + View categoryTag:General - + View categoryTag:General - + View categoryTag:Mylyn - + ViewMenu menuContribution:menu - + - + View categoryTag:Terminal - + View categoryTag:Java - + View categoryTag:Git - + View categoryTag:Java - + View categoryTag:Ant - - + + toolbarSeparator - + - + Draggable - + - + toolbarSeparator - + - + Draggable - - + + - + toolbarSeparator - + - + Draggable - + Draggable - + Draggable - + Draggable - + toolbarSeparator - + - + Draggable - + - - toolbarSeparator - - - - toolbarSeparator - - - + Draggable - + + toolbarSeparator + + + + toolbarSeparator + + + + Draggable + + stretch SHOW_RESTORE_MENU - + Draggable HIDEABLE SHOW_RESTORE_MENU - - + + stretch - + Draggable - + Draggable - - + + TrimStack Draggable - + TrimStack Draggable - - + + TrimStack Draggable - + TrimStack Draggable - - - - - - - - - - - - - + + + + + + + + + + + + + platform:gtk - - - - + + + + platform:gtk - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + - - - - - + + + + + - - + + - - - - - - - - - + + + + + + + + + - - + + - - - + + + - - - - - + + + + + - - + + - - - + + + - - - + + + - - - - - - - - + + + + + + + + platform:gtk - - - - - + + + + + - - + + - - + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + - - + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + - - - - - - - - - - - + + + + + + + + + + + - - + + - - - - - - - + + + + + + + - - - - + + + + - - - - - - - - + + + + + + + + - - + + - - - - - - + + + + + + - - - - - - + + + + + + - - - - - - - - + + + + + + + + - - + + - - - - + + + + - - + + - - + + - - - + + + - - + + - - + + - - + + - - + + - - + + - - + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - - - - - - - - + + + + + + + + + - - - - - + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Editor removeOnHide - + View categoryTag:Ant - + View categoryTag:Gradle - + View categoryTag:Gradle - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Java - + View categoryTag:Git - + View categoryTag:Git - + View categoryTag:Git - + View categoryTag:Git NoRestore - + View categoryTag:Git - + View categoryTag:Help - + View categoryTag:Java - + View categoryTag:Java - + View categoryTag:Debug - + View categoryTag:Java - + View categoryTag:Java - + View categoryTag:Java - + View categoryTag:Java Browsing - + View categoryTag:Java Browsing - + View categoryTag:Java Browsing - + View categoryTag:Java Browsing - + View categoryTag:Java - + View categoryTag:General - + View categoryTag:Java - + View categoryTag:Java - + View categoryTag:Language Servers - + View categoryTag:Language Servers - + View categoryTag:Language Servers - + View categoryTag:Maven - + View categoryTag:Maven - + View categoryTag:Maven - + View categoryTag:Mylyn - + View categoryTag:Mylyn - + View categoryTag:Mylyn - + View categoryTag:Mylyn - + View categoryTag:Mylyn - + View categoryTag:Mylyn - + View categoryTag:Oomph - + View categoryTag:Oomph NoRestore - + View categoryTag:Plug-in Development - + View categoryTag:General - + View categoryTag:Version Control (Team) - + View categoryTag:Version Control (Team) - + View categoryTag:Terminal - + View categoryTag:Help - + View categoryTag:General - + View categoryTag:General - + View categoryTag:Help - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - - + + glue move_after:PerspectiveSpacer SHOW_RESTORE_MENU - + move_after:Spacer Glue HIDEABLE SHOW_RESTORE_MENU - + glue move_after:SearchField SHOW_RESTORE_MENU - - - - - + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - - - - - + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + - - - + + + - - - - - - - - + + + + + + + + - - - - - + + + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + - - - - - - - - - + + + + + + + + + - - - - - + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.metadata/.plugins/org.eclipse.jdt.core/1865797976.index b/.metadata/.plugins/org.eclipse.jdt.core/1865797976.index index 2d7eaec..028da6f 100644 Binary files a/.metadata/.plugins/org.eclipse.jdt.core/1865797976.index and b/.metadata/.plugins/org.eclipse.jdt.core/1865797976.index differ diff --git a/.metadata/.plugins/org.eclipse.jdt.core/206920101.index b/.metadata/.plugins/org.eclipse.jdt.core/206920101.index index ec8ceb0..82120c6 100644 Binary files a/.metadata/.plugins/org.eclipse.jdt.core/206920101.index and b/.metadata/.plugins/org.eclipse.jdt.core/206920101.index differ diff --git a/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/0.png b/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/0.png new file mode 100644 index 0000000..aba8b33 Binary files /dev/null and b/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/0.png differ diff --git a/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/1.png b/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/1.png new file mode 100644 index 0000000..f8696d9 Binary files /dev/null and b/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/1.png differ diff --git a/.metadata/.plugins/org.eclipse.m2e.logback/0.log b/.metadata/.plugins/org.eclipse.m2e.logback/0.log index 4b76ecc..1b95749 100644 --- a/.metadata/.plugins/org.eclipse.m2e.logback/0.log +++ b/.metadata/.plugins/org.eclipse.m2e.logback/0.log @@ -26,3 +26,4 @@ 2026-09-09 07:38:22,295 [Worker-6: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is out-of-date. Trying to update. 2026-09-09 07:38:22,392 [Worker-6: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Updating Gradle version information cache failed. Using outdated cache. 2026-09-09 15:38:26,321 [Worker-6: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is out-of-date. Trying to update. +2026-09-10 12:58:48,106 [Worker-6: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is up-to-date. Trying to read. diff --git a/.metadata/version.ini b/.metadata/version.ini index f71dd35..1da26da 100644 --- a/.metadata/version.ini +++ b/.metadata/version.ini @@ -1,3 +1,3 @@ -#Wed Sep 09 15:38:19 CEST 2026 +#Thu Sep 10 12:58:40 CEST 2026 org.eclipse.core.runtime=2 org.eclipse.platform=4.40.0.v20260601-0713 diff --git a/SillyJirafe.org/bin/org/sillyjirafe/json/ApiKeys.class b/SillyJirafe.org/bin/org/sillyjirafe/json/ApiKeys.class index 7ea317a..b84f6dc 100644 Binary files a/SillyJirafe.org/bin/org/sillyjirafe/json/ApiKeys.class and b/SillyJirafe.org/bin/org/sillyjirafe/json/ApiKeys.class differ diff --git a/SillyJirafe.org/bin/org/sillyjirafe/uoapi/Out.class b/SillyJirafe.org/bin/org/sillyjirafe/uoapi/Out.class index 0216713..2a59404 100644 Binary files a/SillyJirafe.org/bin/org/sillyjirafe/uoapi/Out.class and b/SillyJirafe.org/bin/org/sillyjirafe/uoapi/Out.class differ diff --git a/SillyJirafe.org/bin/org/sillyjirafe/uoapi/binds/PixabayImagesApi.class b/SillyJirafe.org/bin/org/sillyjirafe/uoapi/binds/PixabayImagesApi.class index 319cb3d..b4e0082 100644 Binary files a/SillyJirafe.org/bin/org/sillyjirafe/uoapi/binds/PixabayImagesApi.class and b/SillyJirafe.org/bin/org/sillyjirafe/uoapi/binds/PixabayImagesApi.class differ diff --git a/SillyJirafe.org/crawlstates.db b/SillyJirafe.org/crawlstates.db index 0a46214..cb021cb 100644 Binary files a/SillyJirafe.org/crawlstates.db and b/SillyJirafe.org/crawlstates.db differ diff --git a/SillyJirafe.org/elements.db b/SillyJirafe.org/elements.db index 23d448e..3d4f259 100644 Binary files a/SillyJirafe.org/elements.db and b/SillyJirafe.org/elements.db differ diff --git a/SillyJirafe.org/src/org/sillyjirafe/json/ApiKeys.java b/SillyJirafe.org/src/org/sillyjirafe/json/ApiKeys.java index b69eb4c..f34ab05 100644 --- a/SillyJirafe.org/src/org/sillyjirafe/json/ApiKeys.java +++ b/SillyJirafe.org/src/org/sillyjirafe/json/ApiKeys.java @@ -20,10 +20,11 @@ public class ApiKeys { { Path filePath = Paths.get("ApiKeys.json"); + Map ApiKeys = new HashMap(); try { String jsonraw = Files.readString(filePath); JSONObject json = new JSONObject(jsonraw); - Map ApiKeys = new HashMap(); + JSONArray items = json.getJSONArray("keys"); @@ -39,6 +40,6 @@ public class ApiKeys { } catch (SecurityException e) { System.err.println("Access denied: " + e.getMessage()); } - return null; + return ApiKeys; } } diff --git a/SillyJirafe.org/src/org/sillyjirafe/uoapi/Out.java b/SillyJirafe.org/src/org/sillyjirafe/uoapi/Out.java index 0684e44..9e66328 100644 --- a/SillyJirafe.org/src/org/sillyjirafe/uoapi/Out.java +++ b/SillyJirafe.org/src/org/sillyjirafe/uoapi/Out.java @@ -5,11 +5,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; -import org.sillyjirafe.uoapi.binds.GitHubApacheApi; -import org.sillyjirafe.uoapi.binds.GitHubLGPLApi; -import org.sillyjirafe.uoapi.binds.GitHubMITApi; -import org.sillyjirafe.uoapi.binds.OpenVerseAudiosApi; -import org.sillyjirafe.uoapi.binds.OpenVerseImagesApi; +import org.sillyjirafe.uoapi.binds.*; public class Out { List Apis = new ArrayList<>(); @@ -21,6 +17,7 @@ public class Out { Apis.add(new GitHubApacheApi()); Apis.add(new OpenVerseImagesApi()); Apis.add(new OpenVerseAudiosApi()); + Apis.add(new PixabayImagesApi()); List bindnames = new ArrayList<>(); diff --git a/SillyJirafe.org/src/org/sillyjirafe/uoapi/binds/PixabayImagesApi.java b/SillyJirafe.org/src/org/sillyjirafe/uoapi/binds/PixabayImagesApi.java index fe6b091..05c0619 100644 --- a/SillyJirafe.org/src/org/sillyjirafe/uoapi/binds/PixabayImagesApi.java +++ b/SillyJirafe.org/src/org/sillyjirafe/uoapi/binds/PixabayImagesApi.java @@ -12,11 +12,11 @@ public class PixabayImagesApi implements Api { public String getName() { - return "PixabayImagesAPI"; + return "PixabayImagesApi"; } public String getURL(int page, String apikey) { - return "https://pixabay.com/api/?page=" + page + "key=" + apikey; + return "https://pixabay.com/api/?per_page=200&page=" + page + "&key=" + apikey; } public List Parse(String jsonRaw) { @@ -24,14 +24,14 @@ public class PixabayImagesApi implements Api try { JSONObject json = new JSONObject(jsonRaw); - JSONArray items = json.getJSONArray(""); + JSONArray items = json.getJSONArray("hits"); for (int i = 0; i < items.length(); i++) { JSONObject repo = items.getJSONObject(i); - String titre = repo.getString("full_name"); + String titre = repo.getString("name"); String url = repo.getString("pageURL"); - String licence = repo.getJSONObject("license").getString("spdx_id"); + String licence = "cc0"; resultats.add(new element(titre, url, licence, "pixabay", "image")); }