Before

…lines 1–8 unchanged (8 lines)
9
10class Zsh(Generic):
11 def app_alias(self, alias_name):
12 # It is VERY important to have the variables declared WITHIN the function
13 return '''
14 {name} () {{
15 TF_PREVIOUS=$(fc -ln -1 | tail -n 1);
16 TF_CMD=$(
17 TF_ALIAS={name}
18 TF_SHELL_ALIASES=$(alias)
19 PYTHONIOENCODING=utf-8
20 thefuck $TF_PREVIOUS {argument_placeholder} $*
21 ) && eval $TF_CMD;
22 {alter_history}
23 }}
24 '''.format(
25 name=alias_name,
26 argument_placeholder=ARGUMENT_PLACEHOLDER,
…lines 27–75 unchanged (49 lines)

After

…lines 1–8 unchanged (8 lines)
9
10class Zsh(Generic):
11 def app_alias(self, alias_name):
12 # It is VERY important to have the variables declared WITHIN the function
13 return '''
14 {name} () {{
15 TF_HISTORY=$(fc -ln -10)
16 TF_CMD=$(
17 TF_ALIAS={name}
18 TF_SHELL_ALIASES=$(alias)
19 TF_HISTORY=$TF_HISTORY
20 PYTHONIOENCODING=utf-8
21 thefuck {argument_placeholder} $*
22 ) && eval $TF_CMD;
23 {alter_history}
24 }}
25 '''.format(
26 name=alias_name,
27 argument_placeholder=ARGUMENT_PLACEHOLDER,
…lines 28–76 unchanged (49 lines)

Before

module
import_from_statement
from "from"
dotted_name
identifier "time"
import "import"
dotted_name
identifier "time"
import_statement
import "import"
dotted_name
identifier "os"
import_from_statement
from "from"
dotted_name
identifier "uuid"
import "import"
dotted_name
identifier "uuid4"
import_from_statement
from "from"
relative_import
import_prefix
. "."
. "."
dotted_name
identifier "conf"
import "import"
dotted_name
identifier "settings"
import_from_statement
from "from"
relative_import
import_prefix
. "."
. "."
dotted_name
identifier "const"
import "import"
dotted_name
identifier "ARGUMENT_PLACEHOLDER"
, ","
dotted_name
identifier "USER_COMMAND_MARK"
import_from_statement
from "from"
relative_import
import_prefix
. "."
. "."
dotted_name
identifier "utils"
import "import"
dotted_name
identifier "memoize"
import_from_statement
from "from"
relative_import
import_prefix
. "."
dotted_name
identifier "generic"
import "import"
dotted_name
identifier "Generic"
class_definition
class "class"
identifier "Zsh"
argument_list
( "("
identifier "Generic"
) ")"
: ":"
block
function_definition
def "def"
identifier "app_alias"
parameters
( "("
identifier "self"
, ","
identifier "alias_name"
) ")"
: ":"
comment "# It is VERY important to have the variables declared WITHIN"...
block
return_statement
return "return"
call
attribute
string
string_start "'''"
string_content "\n {name} () {{\n TF_PREVIOUS=$(fc -"...
string_end "'''"
. "."
identifier "format"
argument_list (+33 nodes collapsed)
function_definition (+116 nodes collapsed)
function_definition (+96 nodes collapsed)
decorated_definition (+81 nodes collapsed)
function_definition (+42 nodes collapsed)
function_definition (+37 nodes collapsed)
function_definition (+51 nodes collapsed)
function_definition (+42 nodes collapsed)

After

module
import_from_statement
from "from"
dotted_name
identifier "time"
import "import"
dotted_name
identifier "time"
import_statement
import "import"
dotted_name
identifier "os"
import_from_statement
from "from"
dotted_name
identifier "uuid"
import "import"
dotted_name
identifier "uuid4"
import_from_statement
from "from"
relative_import
import_prefix
. "."
. "."
dotted_name
identifier "conf"
import "import"
dotted_name
identifier "settings"
import_from_statement
from "from"
relative_import
import_prefix
. "."
. "."
dotted_name
identifier "const"
import "import"
dotted_name
identifier "ARGUMENT_PLACEHOLDER"
, ","
dotted_name
identifier "USER_COMMAND_MARK"
import_from_statement
from "from"
relative_import
import_prefix
. "."
. "."
dotted_name
identifier "utils"
import "import"
dotted_name
identifier "memoize"
import_from_statement
from "from"
relative_import
import_prefix
. "."
dotted_name
identifier "generic"
import "import"
dotted_name
identifier "Generic"
class_definition
class "class"
identifier "Zsh"
argument_list
( "("
identifier "Generic"
) ")"
: ":"
block
function_definition
def "def"
identifier "app_alias"
parameters
( "("
identifier "self"
, ","
identifier "alias_name"
) ")"
: ":"
comment "# It is VERY important to have the variables declared WITHIN"...
block
return_statement
return "return"
call
attribute
string
string_start "'''"
string_content "\n {name} () {{\n TF_HISTORY=$(fc -l"...
string_end "'''"
. "."
identifier "format"
argument_list (+33 nodes collapsed)
function_definition (+116 nodes collapsed)
function_definition (+96 nodes collapsed)
decorated_definition (+81 nodes collapsed)
function_definition (+42 nodes collapsed)
function_definition (+37 nodes collapsed)
function_definition (+51 nodes collapsed)
function_definition (+42 nodes collapsed)