Permalink
Browse files

run erl_tidy and reformat using erlang-mode on all code

  • Loading branch information...
1 parent f296a0e commit e9ecab0b53622ad5497746e13f22506ba93b36ea @gleber committed Apr 17, 2012
Showing with 6,739 additions and 5,975 deletions.
  1. +224 −205 examples/eresye/auto.erl
  2. +217 −210 examples/eresye/cannibals.erl
  3. +79 −90 examples/eresye/journal.erl
  4. +134 −153 examples/eresye/journal_sample.erl
  5. +61 −64 examples/eresye/phil.erl
  6. +47 −47 examples/eresye/prodcons.erl
  7. +59 −75 examples/eresye/relatives.erl
  8. +61 −61 examples/eresye/sample.erl
  9. +50 −49 examples/eresye/sieve.erl
  10. +45 −60 examples/eresye/wine.erl
  11. +36 −39 examples/eresye/wine_sample.erl
  12. +26 −21 examples/jade/exat_agent.erl
  13. +50 −53 examples/original_exat/pingagent.erl
  14. +88 −90 examples/original_exat/pingeragent.erl
  15. +21 −34 examples/simple/simple_pingagent.erl
  16. +24 −39 examples/simple/simple_pingeragent.erl
  17. +323 −382 src/acl.erl
  18. +62 −78 src/aclscan.erl
  19. +82 −112 src/aclscanner.erl
  20. +178 −233 src/agent.erl
  21. +39 −59 src/ams.erl
  22. +86 −86 src/envelope.erl
  23. +623 −696 src/eresye.erl
  24. +417 −453 src/eresye_agenda.erl
  25. +339 −338 src/eresye_ontology.erl
  26. +80 −82 src/eresye_ontology_resolver.erl
  27. +159 −209 src/eresye_tree_list.erl
  28. +5 −7 src/eventmanager.erl
  29. +18 −30 src/exat.erl
  30. +34 −33 src/exat_app.erl
  31. +52 −42 src/exat_server.erl
  32. +39 −48 src/exat_sup.erl
  33. +1,525 −190 src/fipa_ontology_sl_codec.erl
  34. +37 −35 src/fipa_semantics_simple.erl
  35. +59 −82 src/http_server.erl
  36. +45 −55 src/logger.erl
  37. +61 −94 src/match_lib.erl
  38. +166 −175 src/mtp.erl
  39. +11 −9 src/mtp_utils.erl
  40. +9 −10 src/multisync.erl
  41. +157 −173 src/object.erl
  42. +572 −594 src/ontology.erl
  43. +51 −60 src/ontology_service.erl
  44. +32 −31 src/semantics.erl
  45. +72 −83 src/simple_agent.erl
  46. +54 −61 src/sl.erl
  47. +130 −145 src/sync.erl
View
Oops, something went wrong.
Oops, something went wrong.
View
@@ -1,98 +1,87 @@
--module (journal).
--include ("journal.hrl").
--export ([is_class/1, is_a/2, 'journal'/1,'international-journal'/1,'national-journal'/1, childof/1]).
+-module(journal).
-is_class ('journal') -> true;
-is_class ('international-journal') -> true;
-is_class ('national-journal') -> true;
-is_class ('IEEE-journal') -> true;
-is_class ('ACM-journal') -> true;
-is_class ('italian-journal') -> true;
-is_class (_) -> false.
+-include("journal.hrl").
-is_a ('international-journal','journal') -> true;
-is_a ('national-journal','journal') -> true;
-is_a ('IEEE-journal','international-journal') -> true;
-is_a ('IEEE-journal','journal') -> true;
-is_a ('ACM-journal','international-journal') -> true;
-is_a ('ACM-journal','journal') -> true;
-is_a ('italian-journal','national-journal') -> true;
-is_a ('italian-journal','journal') -> true;
-is_a (_,_) -> false.
+-export([childof/1, 'international-journal'/1, is_a/2,
+ is_class/1, journal/1, 'national-journal'/1]).
-childof ('journal') -> ['international-journal',
- 'national-journal',
- 'IEEE-journal',
- 'ACM-journal',
- 'italian-journal'];
-childof ('international-journal') -> ['IEEE-journal','ACM-journal'];
-childof ('national-journal') -> ['italian-journal'];
-childof ('IEEE-journal') -> [];
-childof ('ACM-journal') -> [];
-childof ('italian-journal') -> [];
-childof (_) -> exit (undef_class).
+is_class(journal) -> true;
+is_class('international-journal') -> true;
+is_class('national-journal') -> true;
+is_class('IEEE-journal') -> true;
+is_class('ACM-journal') -> true;
+is_class('italian-journal') -> true;
+is_class(_) -> false.
-'journal' (X = #'international-journal'{}) ->
- #'journal'{
- 'title' = X#'international-journal'.'title',
- 'main_topic' = X#'international-journal'.'main_topic',
- 'publisher' = X#'international-journal'.'publisher',
- 'type' = X#'international-journal'.'type',
- 'impact_factor' = X#'international-journal'.'impact_factor'};
+is_a('international-journal', journal) -> true;
+is_a('national-journal', journal) -> true;
+is_a('IEEE-journal', 'international-journal') -> true;
+is_a('IEEE-journal', journal) -> true;
+is_a('ACM-journal', 'international-journal') -> true;
+is_a('ACM-journal', journal) -> true;
+is_a('italian-journal', 'national-journal') -> true;
+is_a('italian-journal', journal) -> true;
+is_a(_, _) -> false.
-'journal' (X = #'national-journal'{}) ->
- #'journal'{
- 'title' = X#'national-journal'.'title',
- 'main_topic' = X#'national-journal'.'main_topic',
- 'publisher' = X#'national-journal'.'publisher',
- 'type' = X#'national-journal'.'type',
- 'impact_factor' = X#'national-journal'.'impact_factor'};
+childof(journal) ->
+ ['international-journal', 'national-journal',
+ 'IEEE-journal', 'ACM-journal', 'italian-journal'];
+childof('international-journal') ->
+ ['IEEE-journal', 'ACM-journal'];
+childof('national-journal') -> ['italian-journal'];
+childof('IEEE-journal') -> [];
+childof('ACM-journal') -> [];
+childof('italian-journal') -> [];
+childof(_) -> exit(undef_class).
-'journal' (X = #'IEEE-journal'{}) ->
- #'journal'{
- 'title' = X#'IEEE-journal'.'title',
- 'main_topic' = X#'IEEE-journal'.'main_topic',
- 'publisher' = X#'IEEE-journal'.'publisher',
- 'type' = X#'IEEE-journal'.'type',
- 'impact_factor' = X#'IEEE-journal'.'impact_factor'};
+journal(X = #'international-journal'{}) ->
+ #journal{title = X#'international-journal'.title,
+ main_topic = X#'international-journal'.main_topic,
+ publisher = X#'international-journal'.publisher,
+ type = X#'international-journal'.type,
+ impact_factor =
+ X#'international-journal'.impact_factor};
+journal(X = #'national-journal'{}) ->
+ #journal{title = X#'national-journal'.title,
+ main_topic = X#'national-journal'.main_topic,
+ publisher = X#'national-journal'.publisher,
+ type = X#'national-journal'.type,
+ impact_factor = X#'national-journal'.impact_factor};
+journal(X = #'IEEE-journal'{}) ->
+ #journal{title = X#'IEEE-journal'.title,
+ main_topic = X#'IEEE-journal'.main_topic,
+ publisher = X#'IEEE-journal'.publisher,
+ type = X#'IEEE-journal'.type,
+ impact_factor = X#'IEEE-journal'.impact_factor};
+journal(X = #'ACM-journal'{}) ->
+ #journal{title = X#'ACM-journal'.title,
+ main_topic = X#'ACM-journal'.main_topic,
+ publisher = X#'ACM-journal'.publisher,
+ type = X#'ACM-journal'.type,
+ impact_factor = X#'ACM-journal'.impact_factor};
+journal(X = #'italian-journal'{}) ->
+ #journal{title = X#'italian-journal'.title,
+ main_topic = X#'italian-journal'.main_topic,
+ publisher = X#'italian-journal'.publisher,
+ type = X#'italian-journal'.type,
+ impact_factor = X#'italian-journal'.impact_factor}.
-'journal' (X = #'ACM-journal'{}) ->
- #'journal'{
- 'title' = X#'ACM-journal'.'title',
- 'main_topic' = X#'ACM-journal'.'main_topic',
- 'publisher' = X#'ACM-journal'.'publisher',
- 'type' = X#'ACM-journal'.'type',
- 'impact_factor' = X#'ACM-journal'.'impact_factor'};
-
-'journal' (X = #'italian-journal'{}) ->
- #'journal'{
- 'title' = X#'italian-journal'.'title',
- 'main_topic' = X#'italian-journal'.'main_topic',
- 'publisher' = X#'italian-journal'.'publisher',
- 'type' = X#'italian-journal'.'type',
- 'impact_factor' = X#'italian-journal'.'impact_factor'}.
-
-'international-journal' (X = #'IEEE-journal'{}) ->
- #'international-journal'{
- 'title' = X#'IEEE-journal'.'title',
- 'main_topic' = X#'IEEE-journal'.'main_topic',
- 'publisher' = X#'IEEE-journal'.'publisher',
- 'type' = X#'IEEE-journal'.'type',
- 'impact_factor' = X#'IEEE-journal'.'impact_factor'};
-
-'international-journal' (X = #'ACM-journal'{}) ->
- #'international-journal'{
- 'title' = X#'ACM-journal'.'title',
- 'main_topic' = X#'ACM-journal'.'main_topic',
- 'publisher' = X#'ACM-journal'.'publisher',
- 'type' = X#'ACM-journal'.'type',
- 'impact_factor' = X#'ACM-journal'.'impact_factor'}.
-
-'national-journal' (X = #'italian-journal'{}) ->
- #'national-journal'{
- 'title' = X#'italian-journal'.'title',
- 'main_topic' = X#'italian-journal'.'main_topic',
- 'publisher' = X#'italian-journal'.'publisher',
- 'type' = X#'italian-journal'.'type',
- 'impact_factor' = X#'italian-journal'.'impact_factor'}.
+'international-journal'(X = #'IEEE-journal'{}) ->
+ #'international-journal'{title = X#'IEEE-journal'.title,
+ main_topic = X#'IEEE-journal'.main_topic,
+ publisher = X#'IEEE-journal'.publisher,
+ type = X#'IEEE-journal'.type,
+ impact_factor = X#'IEEE-journal'.impact_factor};
+'international-journal'(X = #'ACM-journal'{}) ->
+ #'international-journal'{title = X#'ACM-journal'.title,
+ main_topic = X#'ACM-journal'.main_topic,
+ publisher = X#'ACM-journal'.publisher,
+ type = X#'ACM-journal'.type,
+ impact_factor = X#'ACM-journal'.impact_factor}.
+'national-journal'(X = #'italian-journal'{}) ->
+ #'national-journal'{title = X#'italian-journal'.title,
+ main_topic = X#'italian-journal'.main_topic,
+ publisher = X#'italian-journal'.publisher,
+ type = X#'italian-journal'.type,
+ impact_factor = X#'italian-journal'.impact_factor}.
Oops, something went wrong.

0 comments on commit e9ecab0

Please sign in to comment.