Mentions légales du service

Skip to content
Snippets Groups Projects
  1. Apr 08, 2024
  2. Nov 17, 2023
  3. Jul 04, 2023
  4. Jan 23, 2023
  5. Jan 20, 2023
  6. Mar 22, 2021
  7. Mar 08, 2021
  8. Oct 13, 2020
  9. Sep 08, 2020
  10. Sep 07, 2020
  11. Jul 30, 2020
  12. Feb 12, 2020
  13. Aug 30, 2018
  14. Aug 24, 2018
  15. Aug 23, 2018
  16. Aug 16, 2018
  17. May 24, 2016
  18. Oct 30, 2015
  19. Oct 29, 2015
  20. 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
  21. Oct 27, 2015
    • Vincent Liard's avatar
      remove (void)s · 90e4e148
      Vincent Liard authored
      Functions with empty argument list should be declared f() rather than f(void).
      90e4e148
    • Vincent Liard's avatar
      uniformize headers · c4cac25a
      Vincent Liard authored
      Took aevol_run.cpp's header as reference header and set it for all Aevol source files.
      c4cac25a
    • Vincent Liard's avatar
      fix _member_variables to member_variables_ [epic] · 286881e3
      Vincent Liard authored
      * Find member variables that could clash
      
      : grep -rEo --no-filename '\w+' --include '*.cpp' --include '*.h' | sort -u | grep '^_' > _litigious_tokens.txt
      : grep -rEo --no-filename '\w+' --include '*.cpp' --include '*.h' | sort -u | grep '_$' > litigious_tokens_.txt
      : grep -Fx -f <(sed -e 's/_$//' litigious_tokens_.txt) <(sed -e 's/^_//' _litigious_tokens.txt)
      : cat clashes.txt
      : | xargs -n 1 -I% sh -c "echo --- % --- ; grep -rlE --include '*.cpp' --include '*.h' '\W_%'
      : | xargs grep -l '%_\W'"
      
      From the resulting list,
      files of interest, trimmed:
      ExpManager.h | t_end
      GeneticUnit.cpp | dna rna_list
      
      False positives removed (needed no action)
      Dna.cpp | indiv
      ExpManager_X11.cpp | win
      GeneticUnit.cpp | non_coding_computed
      GeneticUnit.cpp | transcribed
      Individual.cpp | modularity
      OutputManager.cpp | tree
      PhenotypicTargetHandler.cpp | var_sigma var_tau
      Protein.cpp | gen_unit height mean width
      ReplicationReport.cpp | indiv
      Rna.cpp | gen_unit
      StatRecord.cpp
      Stats.cpp | exp_m
      
      * Manual fixes
      [x] ExpManager.h | t_end
      [x] GeneticUnit.cpp | dna rna_list (almost false positive, would have caused no harm)
      
      * Automatic fix all other symbols
      : find ! -path '*test*' ! -path './libaevol/SFMT-src-1.4/*' \( -name '*.cpp' -o -name '*.h' \) -print0
      : | xargs -0 sed -i -r -e 's/([^a-zA-Z0-9_])_([a-zA-Z0-9][a-zA-Z0-9_]+)/\1\2_/g'
      
      * Minor afterhand fixes
      fix OPENMP_ and changed_ with similar `find | xargs sed`s
      
      * Check there are no more _members
      : grep -rEo --no-filename '[^a-zA-Z0-9_]_[a-zA-Z0-9][a-zA-Z0-9_]+' --include '*.cpp' --include '*.h' --exclude-dir tests
      : | sed -e 's/^.//' | sort -u
      286881e3
  22. Aug 12, 2015
  23. 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
  24. Jun 30, 2015
  25. Jun 29, 2015
  26. Jun 19, 2015
    • David Parsons's avatar
      Refactor tree management · b85cae02
      David Parsons authored
      The responsability of the creation of the tree was shared between
      different entities (the tree of course, but also the individuals
      and their dna).
      This made it really difficult to deal with.
      
      The solution presented here isn't optimal (yet ?). In particular,
      trees had to be temporarily disabled for experiments with plasmids.
      The tree now handles itself more independently. It is filled with
      naive ReplicationReports which will have to be :
        - initialized at the beginning of a replication
        - filled in at the end of a replication
        - finalized at the end of a generation
      
      In the future, it would be nice to implement that as an Observer
      pattern to decouple the involved classes
      b85cae02
  27. Jun 17, 2015
  28. Mar 12, 2015
Loading