Training a deep learning model on source code has gained significant traction recently. Since such models reason about vectors of numbers, source code needs to be converted to a code representation and then will be transformed into vectors. Numerous approaches have been proposed to represent source code, from sequences of tokens to abstract syntax trees. However, there is no systematic study to understand the effect of code representation on learning performance. Through a controlled experiment, we examine the impact of various code representations on model accuracy and usefulness in learning-based program repair. We train 21 different models, including 14 different homogeneous code representations, four mixed representations for the buggy and fixed code, and three different embeddings. We also conduct a user study to qualitatively evaluate the usefulness of inferred fixes in different code representations. Our results highlight the importance of code representation and its impact on learning and usefulness. Our findings indicate that (1) while code abstractions help the learning process, they can adversely impact the usefulness of inferred fixes from a developer's point of view; this emphasizes the need to look at the patches generated from the practitioner's perspective, which is often neglected in the literature, (2) mixed representations can outperform homogeneous code representations, (3) bug type can affect the effectiveness of different code representations; although current techniques use a single code representation for all bug types, there is no single best code representation applicable to all bug types. Table 1: Different code representations for the example of Listing 1 Representation ID (RID) Category Representation Example WT1 non-AST based Word tokenization [20, 21, 24] setTimeout ( delay , fn ) WT2 Enhanced word tokenization [27, 41] set Timeout ( delay , fn ) DB1 DeepBugs [58] ID setTimeout ( ID delay , ID fn ) DB2 DeepBugs with types and variable values ID setTimeout ( ID number delay , ID function fn ) DB3 DeepBugs with types without variable values ID setTimeout ( ID number , ID function ) FS1 Function signature setTimeout ( number , function ) FS2 Function signature with position anchors setTimeout ( arg0 number , arg1 function ) FS3 Function signature with LIT/ID setTimeout ( ID number , ID function ) FS4 Function signature with position anchors and LIT/ID setTimeout ( arg0 ID number , arg1 ID function ) SR1 SequenceR [11, 66, 68] setTimeout ( Number_1 , Method_1 )