Mentions légales du service

Skip to content
Snippets Groups Projects
  1. Apr 08, 2024
  2. Nov 17, 2023
  3. Mar 16, 2020
    • Théotime Grohens's avatar
      Remove formatting warning in Mutation files · 1fec1f62
      Théotime Grohens authored
      This commit fixes the formatting warning in the Mutation classes.
      
      - For mut_type() and sense() calls, we changed the PRId8 format specification
        to PRId32
      - For the -1 constants, we explicitly cast them to the right size
        (int8_t or int16_t) to reflect the format specification
      1fec1f62
  4. Feb 12, 2020
  5. Oct 29, 2015
    • Vincent Liard's avatar
      rename remaining get_xxx() to xxx() · 3244d2e1
      Vincent Liard authored
      Magic command for reference:
      find ! -path '*test*' ! -path './libaevol/SFMT-src-1.4/*' \( -name '*.cpp' -o -name '*.h' \) -print0 | xargs -0 sed -i -r 's/\bget_(\w+)\b/\1/g'
      3244d2e1
  6. Oct 28, 2015
    • Vincent Liard's avatar
      shorten safe getter names · e10a4e7a
      Vincent Liard authored
      Looking forward to honour Google Style guide, the purpose is to rename getters
      from get_var() to var(). Many of such renames cause conflicts, though. In this
      commit, only the safe names were changed.
      
      grep -rEo '\bget_\w+\(' --include '*.h' --no-filename --exclude-dir tests \
       | sed -e 's/get_//' -e 's/($//' \
       | sort -u \
       | xargs -n 1 -I% sh -c "grep -roq '\b%\b' --include '*.cpp' --include '*.h' --exclude-dir tests || echo %" \
       | xargs -n1 -I% sh -c "find ! -path '*test*' ! -path './libaevol/SFMT-src-1.4/*' \( -name '*.cpp' -o -name '*.h' \) -print0 \
       | xargs -0 sed -i -r 's/\bget_%\(/%\(/g'"
      
      Yes. I know...
      
      http://google-styleguide.googlecode.com/svn/trunk/cppguide.html#Function_Names
      e10a4e7a
  7. Oct 23, 2015
  8. Jul 06, 2015
    • David Parsons's avatar
      aevol-2 Create mutation class hierarchy · 6615dbb4
      David Parsons authored
      Instead of a single class with switches everywhere, mutations are now
      handled through a proper polymorphism.
      
      Here is the class hierarchy:
      Mutation
        <-- LocalMutation
              <-- PointMutation
              <-- SmallInsertion
              <-- SmallDeletion
        <-- Rearrangement
              <-- Duplication
              <-- Deletion
              <-- Translocation
              <-- Inversion
        <-- HT
              <-- InsertionHT
              <-- ReplacementHT
      6615dbb4
Loading