Within the ADF their is a directory called "Apps" (/ADF/apps). The Apps directory is where your CommonSpot applications will reside. For instance, if you downloaded the Profile Application you would place the code in the /ADF/apps directory.
It is a best practice to not change any code located in the /ADF/apps/ directory directly. Instead it is best to override that code at the site level.