Skip to content

Commit

Permalink
* scripts/linter: Handle and_others.
Browse files Browse the repository at this point in the history
  • Loading branch information
MLopez-Ibanez committed May 20, 2024
1 parent 5a77755 commit 226634c
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 24 deletions.
1 change: 1 addition & 0 deletions abbrev.bib
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ @PREAMBLE{
# "\providecommand{\proglang}[1]{{#1}} " }
@string{and = " and "}
@string{and_others = " and others"}
@string{Tam = "To appear"}
@string{ta = "to appear"}
@string{ip = "In press"}
Expand Down
48 changes: 24 additions & 24 deletions crossref.bib
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ @Proceedings{ANTS2000
Colonies to Artificial Ants: Second International
Workshop on Ant Algorithms",
fulleditor = Dorigo #and# Middendorf #and# Stuetzle,
editor = Dorigo # " and others ",
editor = Dorigo # and_others,
organization = iridia,
date = "2000-09-07/2000-09-09",
year = 2000,
Expand All @@ -366,7 +366,7 @@ @Book{ANTS2002
series = lncs,
volume = 2463,
fulleditor = Dorigo #and# DiCaro #and# Sampels_M,
editor = Dorigo # " and others ",
editor = Dorigo # and_others,
publisher = springer,
address = add-heidelberg,
}
Expand All @@ -378,7 +378,7 @@ @Book{ANTS2004
year = 2004,
fulleditor = Dorigo #and# Gambardella #and# Mondada #and# Stuetzle
#and# Birattari #and# Blum,
editor = Dorigo # " and others ",
editor = Dorigo # and_others,
volume = 3172,
series = lncs,
publisher = springer,
Expand All @@ -392,7 +392,7 @@ @Book{ANTS2006
International Workshop, ANTS 2006},
fulleditor = Dorigo #and# Gambardella #and# Birattari #and# "
Martinoli, A." #and# " Poli, R. " #and# Stuetzle,
editor = Dorigo # " and others ",
editor = Dorigo # and_others,
series = lncs,
volume = 4150,
year = 2006,
Expand All @@ -408,7 +408,7 @@ @Book{ANTS2008
year = 2008,
fulleditor = Dorigo #and# Birattari #and# Blum #and# Clerc_M
#and# Stuetzle #and# {A. F. T. Winfield},
editor = Dorigo # " and others ",
editor = Dorigo # and_others,
publisher = springer,
address = add-heidelberg,
series = lncs,
Expand All @@ -420,7 +420,7 @@ @Book{ANTS2010
International Conference, ANTS 2010},
booktitle = ants2010,
year = 2010,
editor = Dorigo # " and others ",
editor = Dorigo # and_others,
fulleditor = Dorigo #and# Birattari #and# DiCaro #and#
"Doursat, R. and Engelbrecht, A. P. and Floreano,
D. and Gambardella, L. M. and Gro\ss, R. and Sahin,
Expand All @@ -436,7 +436,7 @@ @Book{ANTS2012
International Conference, ANTS 2012},
booktitle = ants2012,
year = 2012,
editor = Dorigo # " and others ",
editor = Dorigo # and_others,
publisher = springer,
address = add-heidelberg,
series = lncs,
Expand All @@ -448,7 +448,7 @@ @Book{ANTS2014
International Conference, ANTS 2014},
booktitle = ants2014,
year = 2014,
editor = Dorigo # " and others ",
editor = Dorigo # and_others,
publisher = springer,
address = add-heidelberg,
series = lncs,
Expand Down Expand Up @@ -799,7 +799,7 @@ @Proceedings{CEC2009

@Proceedings{CEC2010,
key = "IEEE CEC",
editor = Ishibuchi #and# "others",
editor = Ishibuchi # and_others,
title = {Proceedings of the 2010 Congress on Evolutionary
Computation (CEC 2010)},
booktitle = cec2010,
Expand Down Expand Up @@ -1177,7 +1177,7 @@ @Book{EA1997
booktitle = "Artificial Evolution",
editor = Hao_JK #and# "Evelyne Lutton" #and# "Edmund M. A. Ronald"
#and# Schoenauer #and# "Dominique Snyers",
shorteditor = Hao_JK #and# "others",
shorteditor = Hao_JK # and_others,
doi = {10.1007/BFb0026589},
year = 1998,
publisher = springer,
Expand Down Expand Up @@ -1779,7 +1779,7 @@ @Book{EVOAPP2021
@Book{EVOAPP2022,
fulleditor = Jimenez_Laredo #and# "Hidalgo Perez, J. Ignacio " #and#
"Oluwatoyin Babaagba, Kehinde",
editor = Jimenez_Laredo #and# "others",
editor = Jimenez_Laredo # and_others,
title = {Applications of Evolutionary Computation -- 25th European
Conference, EvoApplications 2022, Held as Part of EvoStar
2022, Madrid, Spain, April 20-22, 2022, Proceedings},
Expand Down Expand Up @@ -1853,7 +1853,7 @@ @Book{EVOCOP2007
Evolutionary Computation in Combinatorial Optimisation},
booktitle = {Proceedings of EvoCOP 2007 -- Seventh European Conference on
Evolutionary Computation in Combinatorial Optimisation},
editor = Cotta #and# " others ",
editor = Cotta # and_others,
year = 2007,
volume = 4446,
series = lncs,
Expand Down Expand Up @@ -2153,7 +2153,7 @@ @Book{GECCO2000
year = 2000,
fulleditor = Whitley #and# Goldberg #and# "E. Cantu-Paz and L. Spector and
I. Parmee" #and# Beyer_HG,
editor = Whitley #and# "others",
editor = Whitley # and_others,
publisher = mk-s
}

Expand All @@ -2173,7 +2173,7 @@ @Book{GECCO2002
booktitle = "Proceedings of the Genetic and Evolutionary
Computation Conference, GECCO 2002",
year = 2002,
editor = Langdon_WB #and# {others},
editor = Langdon_WB # and_others,
publisher = mk-s
}

Expand All @@ -2197,7 +2197,7 @@ @Book{GECCO2004_1
booktitle = "Proceedings of the Genetic and Evolutionary
Computation Conference, GECCO 2004, Part I",
year = 2004,
editor = Deb # "and others",
editor = Deb # and_others,
volume = 3102,
series = lncs,
publisher = springer,
Expand All @@ -2211,7 +2211,7 @@ @Book{GECCO2004_2
booktitle = "Proceedings of the Genetic and Evolutionary
Computation Conference, GECCO 2004, Part II",
year = 2004,
editor = Deb # "and others",
editor = Deb # and_others,
volume = 3103,
series = lncs,
publisher = springer,
Expand Down Expand Up @@ -4063,7 +4063,7 @@ @Book{PPSN2000
year = 2000,
aeditor = Schoenauer #and# Deb #and# Rudolph_G #and# Yao_Xin
#and# "E. Lutton" #and# Merelo_JJ #and# Schwefel,
editor = Schoenauer # " and others",
editor = Schoenauer # and_others,
publisher = springer,
address = add-heidelberg,
anote = "IC.29",
Expand All @@ -4077,7 +4077,7 @@ @Book{PPSN2002
volume = 2439,
aeditor = Merelo_JJ #and# "P. Adamidis" #and# Beyer_HG #and#
"J.-L. Fern\'{a}ndez-Villacanas" #and# Schwefel,
editor = Merelo_JJ #and# "others",
editor = Merelo_JJ # and_others,
publisher = springer,
address = add-heidelberg,
anote = "IC.34",
Expand All @@ -4091,7 +4091,7 @@ @Book{PPSN2004
Jim and Merelo-Guerv{\'o}s, Juan Juli{\'a}n and Bullinaria,
John A. and Rowe, Jonathan E. and Ti{\v{n}}o, Peter and
Kab{\'a}n, Ata and Schwefel, Hans-Paul},
editor = Yao_Xin #and# {others},
editor = Yao_Xin # and_others,
publisher = springer,
address = add-heidelberg,
series = lncs,
Expand All @@ -4118,7 +4118,7 @@ @Book{PPSN2008
booktitle = ppsn10,
aeditor = Rudolph_G #and# {Thomas Jansen and Simon Lucas and
Carlo Poloni and Nicola Beume},
editor = Rudolph_G #and# {others},
editor = Rudolph_G # and_others,
publisher = springer,
address = add-heidelberg,
series = lncs,
Expand All @@ -4143,7 +4143,7 @@ @Book{PPSN2012-1
title = {Parallel Problem Solving from Nature, {PPSN} {XII}, 12th
International Conference, Taormina, Italy, September 1-5,
2012, Proceedings, Part {I}},
editor = Coello #and# "others",
editor = Coello # and_others,
fulleditor = Coello #and# "Vincenzo Cutello" #and# Deb #and# {Stephanie
Forrest and Giuseppe Nicosia and Mario Pavone},
series = lncs,
Expand All @@ -4158,7 +4158,7 @@ @Book{PPSN2012-2
title = {Parallel Problem Solving from Nature - {PPSN} {XII} - 12th
International Conference, Taormina, Italy, September 1-5,
2012, Proceedings, Part {II}},
editor = Coello #and# "others",
editor = Coello # and_others,
fulleditor = Coello #and# "Vincenzo Cutello" #and# Deb #and# {Stephanie
Forrest and Giuseppe Nicosia and Mario Pavone},
series = lncs,
Expand Down Expand Up @@ -4598,7 +4598,7 @@ @Proceedings{WCCI1994
}

@Proceedings{WCCI2002,
editor = fogel #and# {others},
editor = fogel # and_others,
key = "WCCI",
booktitle = wcci02,
title = wcci02,
Expand Down Expand Up @@ -4699,7 +4699,7 @@ @Book{evoworkshops2003
}

@Book{evoworkshops2004,
editor = Raidl #and# {others},
editor = Raidl # and_others,
title = evoworkshops04,
publisher = springer,
year = 2004,
Expand Down
4 changes: 4 additions & 0 deletions scripts/linter
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ for filename in "$@"; do
sed -i -E 's/^(\s*[a-zA-Z]+\s*=)/\L\1/g' $tmpfile
# "# and #" -> #and#
sed -i -E 's/#\s*and\s*#/#and#/g' $tmpfile
# '# " and others "' -> '# and_others
sed -i -E 's/#\s*["{]\s*and others\s*["}]/# and_others/g' $tmpfile
sed -i -E 's/#\s*and\s*#\s*["{]\s*others\s*["}]/# and_others/g' $tmpfile
sed -i -E 's/#\s*and_others/# and_others/g' $tmpfile

if ! diff -q "$filename" "$tmpfile" &> /dev/null; then
CHANGED=1
Expand Down

0 comments on commit 226634c

Please sign in to comment.