git code swarm
1. generate git log
[~/dev/aurora-prototype] $ git log --name-status --pretty=format:'%n------------------------------------------------------------------------%nr%h | %ae | %ai (%aD) | x lines%nChanged paths: %N'>ctivity.log
2. covert logs
python convert_logs.py -g activity.log -o activity.xml
-g means it's a git log format
# This is a sample configuration file for code_swarm
# Frame width
Width=800
# Frame height
Height=600
# Input file
InputFile=data/aurora.xml
# Particle sprite file
ParticleSpriteFile=src/particle.png
#Font Settings
Font=SansSerif
FontSize=20
BoldFontSize=22
# Project time per frame
#MillisecondsPerFrame=21600000
# Maximum number of Background processes
MaxThreads=4
# Optional Method instead of MillisecondsPerFrame
FramesPerDay=18
# Background in R,G,B
Background=0,0,0
# Color assignment rules
# Keep in order, do not skip numbers. Numbers start
# at 1.
#
# Pattern: "Label", "regex", R,G,B, R,G,B
# Label is optional. If it is omitted, the regex
# will be used.
#
ColorAssign1="javascripts","(.*js.*)|(.*coffee.*)", 149,204,79, 149,204,79
ColorAssign2="styles","(.less)|(.css)|(.scss)", 255,255,0, 255,255,0
ColorAssign3="templates","(.htm)|(.html)|(.hbs)|(.mustache)", 255,0,0, 255,0,0
ColorAssign4="house keeping","(.sh)|(.rb)|(.log)|(.lock)|(Gemfile)|(.gitkeep)", 238,102,68, 238,102,68
# Save each frame to an image?
TakeSnapshots=true
# Where to save each frame
SnapshotLocation=frames/code_swarm-#####.png
# Draw names (combinatory) :
# Draw sharp names?
DrawNamesSharp=true
# And draw a glow around names? (Runs slower)
DrawNamesHalos=false
# Draw files (combinatory) :
# Draw sharp files
DrawFilesSharp=true
# Draw fuzzy files
DrawFilesFuzzy=false
# Draw jelly files
DrawFilesJelly=true
# Show the Legend at start
ShowLegend=true
# Show the History at start
ShowHistory=true
# Show the Date at start
ShowDate=true
# Show edges between authors and files, mostly for debug purpose
ShowEdges=true
# Turn on Debug counts.
ShowDebug=false
# Natural distance of files to people
EdgeLength=50
# Amount of life to decrement
EdgeDecrement=-2
FileDecrement=-2
PersonDecrement=-1
#Speeds.
#Optional: NodeSpeed=7.0, If used, FileSpeed and PersonSpeed need not be set.
#
FileSpeed=7.0
PersonSpeed=1.5
#Masses
FileMass=1.0
PersonMass=20.0
# Life of an Edge
EdgeLife=250
# Life of a File
FileLife=200
# Life of a Person
PersonLife=255
# Highlight percent.
# This is the amount of time that the person or
# file will be highlighted.
HighlightPct=10
## Physics engine selection and configuration
# Directory physics engine config files reside in.
PhysicsEngineConfigDir=physics_engine
# Force calculation algorithms ("PhysicsEngineLegacy", "PhysicsEngineSimple"...) :
PhysicsEngineSelection=PhysicsEngineLegacy
# OpenGL is experimental. Use at your own risk.
UseOpenGL=false
沒有留言:
張貼留言