325d88c95defcf89e98dcf2ac9ac7d53bbea1b99,explainshell/parser.py,CommandLineParser,parse_redirections,#CommandLineParser#Any#,284
Before Change
// an fd to redirect and pop it, else leave it in as part of
// the command line.
try:
try_num = int(node.command[-1] )
if try_num > 0:
num = try_num
node.command.pop()
After Change
n = int(self.peek.t)
redirect_target = ("&", n)
self.consume("number")
parts.append(Node(kind="redirect", input=num, type=redirect_kind,
output=redirect_target, pos=(start, self.token.end)) )
tt = self.peek_token()
return parts, node is None
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: idank/explainshell
Commit Name: 325d88c95defcf89e98dcf2ac9ac7d53bbea1b99
Time: 2013-09-07
Author: idankk86@gmail.com
File Name: explainshell/parser.py
Class Name: CommandLineParser
Method Name: parse_redirections
Project Name: onnx/onnx-coreml
Commit Name: fb77632a28e3338cb7e5a0d0c0f2c7ba76cdb984
Time: 2018-03-29
Author: aseem.elec@gmail.com
File Name: onnx_coreml/_transformers.py
Class Name: PixelShuffleFuser
Method Name: merge
Project Name: idank/explainshell
Commit Name: 325d88c95defcf89e98dcf2ac9ac7d53bbea1b99
Time: 2013-09-07
Author: idankk86@gmail.com
File Name: explainshell/parser.py
Class Name: CommandLineParser
Method Name: parse_simple_command