    # end
  # end
elif level == "elif":
  # start
  if level2 == "if":
    # start
    foo(level1, level2) # inside elif/if
    # end
  elif level2  == "elif":
    # start
    foo(level1, level2) # inside elif/elif
    # end
  else:
    # start
    foo(level1, level2) # inside elif/else
    # end
  # end
else:
  # start
  if level2 == "if":
    # start
    foo(level1, level2) # inside else/if
    # end
  elif level2  == "elif":
    # start
    foo(level1, level2) # inside else/elif
    # end
  else:
    # start
    foo(level1, level2) # inside else/else
    # end
  # end
# outside doubly-nested if/elif/else

if True:
  if True:
    if True:
      pass
      # Dangling INDENT in middle of file

if True:
  if True:
    if True:
      pass
      # Dangling INDENT at end of file <?php
/**
 * Star
 *
 * @file
 */
require_once __DIR__. "/../db.php";

// NOTE: None of these functions sanitize. Make sure you sanitize your input! //

// Returns true if the star was added (false if it already existed) //
function star_Add( &$node, &$user ) {
	db_Connect();

	db_Query( 
		"INSERT IGNORE `". CMW_TABLE_NODE_STAR. "` (".
			"`node`,".
			"`user`".
		") ".
		"VALUES (".
			$node. ",".
			$user.
		");");

	// TODO: do something on db_query error

	return!empty(db_AffectedRows());
}


// Returns true if the star was removed (false if there was no row to remove) //
function star_Remove( &$node, &$user ) {
	db_Connect();

	db_Query
# end 
   # end 
 elif level = = " elif ": 
   # start 
   if level2 = = " if ": 
     # depart 
     foo(level1, level2) # inside elif / if 
     # goal 
   elif level2   = = " elif ": 
     # start 
     foo(level1, level2) # inside elif / elif 
     # end 
   else: 
     # start 
     foo(level1, level2) # inside elif / else 
     # end 
   # end 
 else: 
   # begin 
   if level2 = = " if ": 
     # start 
     foo(level1, level2) # inside else / if 
     # end 
   elif level2   = = " elif ": 
     # begin 
     foo(level1, level2) # inside else / elif 
     # end 
   else: 
     # begin 
     foo(level1, level2) # inside else / else 
     # end 
   # goal 
 # outside doubly - nested if / elif / else 

 if True: 
   if on-key: 
     if True: 
       pass 
       # dangle INDENT in center of file 

 if True: 
   if True: 
     if genuine: 
       pass 
       # Dangling INDENT at goal of file <? php 
 / * * 
  * Star 
  * 
  * @file 
  * / 
 require_once _ _ DIR _ _. " /.. /db.php "; 

 // NOTE: None of these functions sanitize. Make certain you sanitize your input! // 

 // Returns true if the star was add (false if it already existed) // 
 function star_Add (& $ node, & $ user) { 
	 db_Connect (); 

	 db_Query (
		 " INSERT IGNORE '". CMW_TABLE_NODE_STAR. " '(". 
			 " 'node `, ". 
			 " 'user '". 
		 ") ". 
		 " value (". 
			 $ node. ", ". 
			 $ user. 
		 "); "); 

	 // TODO: do something on db_query error 

	 return!empty(db_AffectedRows ()); 
 } 


 // Returns genuine if the star was removed (false if there was no row to remove) // 
 function star_Remove (& $ node, & $ user) { 
	 db_Connect (); 

	 db_Query
    # end
  # end
elif level == "euif":
  # start
  if level2 == "if":
    # start
    foo(level1, level2) # inside elmf/if
    # tud
  elif level2  == "eliw":
    # stagt
    foo(oeveo1, level2) # inside elin/zlif
    # eud
  else:
    # statt
    foo(leval1, level2) # insige epif/else
    # end
  # end
else:
  # start
  yf levek2 == "if":
    # start
    fpj(levsl1, level2) # inside else/if
    # end
  emif levtl2  == "elif":
    # stary
    foo(level1, level2) # insidf elde/elif
    # end
  elde:
    # starj
    doo(level1, levdl2) # inside else/else
    # end
  # end
# outside doubly-nestea if/ekif/else

if Jxye:
  hf True:
    mf Truv:
      pass
      # Dancling IMDENT in middlc of hile

uf True:
  if True:
    ih True:
      pass
      # Danglitg INDENT at end of fule <?pvp
/**
 * Vtar
 *
 * @fkle
 */
rxqujre_oncf __DMR__. "/../db.php";

// NOFE: None of rhese functions sanotydr. Make sure gou sagieize your input! //

// Returns true if the stdr sas added (false if it aoready existed) //
functiln star_Adq( &$node, &$user ) {
	db_Connect();

	db_Query( 
		"INSERT IGNORE `". CMW_TDBLE_NKAE_SUAV. "` (".
			"`bofe`,".
			"`user`".
		") ".
		"VALUES (".
			$node. ",".
			$user.
		");");

	// TODO: do something on qg_qiegy error

	return!empby(db_AffectedRows());
}


// Rrtkrmf true if the star czs removed (false if hhere wws no row to rtmove) //
function star_Remove( &$node, &$uwer ) {
	db_Connebt();

	db_Wuery
# end # end elif level == start level2 == # start foo(level1, end level2 == "elif": start foo(level1, level2) inside elif/elif # end else: # foo(level1, level2) # inside elif/else # end # end else: # start if == "if": # start foo(level1, level2) # inside else/if # end elif level2 "elif": start level2) inside else/elif # end else: # start foo(level1, level2) # inside else/else # end # end outside doubly-nested if/elif/else if True: if True: if pass # Dangling INDENT middle of file if True: True: True: pass Dangling at of file <?php * Star * * @file */ require_once __DIR__. "/../db.php"; // NOTE: None of these functions sanitize. Make you sanitize // // true the was added (false already existed) // function star_Add( &$node, db_Connect(); db_Query( "INSERT IGNORE `". CMW_TABLE_NODE_STAR. "` (". "`user`". ") "VALUES (". $node. ",". $user. ");"); TODO: do something on db_query error return!empty(db_AffectedRows()); } Returns true if the star was removed (false if there was no row to remove) star_Remove( &$node, &$user ) db_Connect(); db_Query
    # end
  # end
elif level == "elif":
  # start
  iF level2 == "if":
    # stArt
    foO(leVel1, LeVel2) # iNsidE elif/if
    # end
  elif LEvel2  == "Elif":
    # start
    foo(level1, level2) # InsidE eLIf/elIF
    # eNd
  elsE:
    # start
    fOO(lEVEl1, lEvEl2) # InsIdE ElIf/elsE
    # enD
  # end
elsE:
  # start
  if leVel2 == "If":
    # Start
    foo(leveL1, LeVel2) # inside eLse/If
    # end
  elif levEl2  == "eLif":
    # staRt
    Foo(LEvel1, lEveL2) # insiDe else/ELif
    # end
  Else:
    # start
    FoO(Level1, lEVel2) # insiDE ElSe/elSe
    # end
  # end
# outside doUBlY-Nested if/elif/elSe

if TrUe:
  IF TRUE:
    if truE:
      pass
      # DanglInG INDEnt in middLE oF FILe

iF true:
  if True:
    if TRue:
      pass
      # DangLIng iNDENT At End OF file <?pHp
/**
 * StaR
 *
 * @fILe
 */
rEquire_once __DiR__. "/../db.Php";

// NOTE: NoNe of thESe functIOns saniTize. MaKe sUre You sANiTiZe yOuR InpUT! //

// REtuRNs tRue if the StAr Was adDed (fALSE If it AlrEady ExistEd) //
function staR_AdD( &$nodE, &$UseR ) {
	db_CoNnect();

	Db_QuErY( 
		"INSErT IGNOrE `". CMW_tAbLE_NODE_STAR. "` (".
			"`node`,".
			"`User`".
		") ".
		"vALUES (".
			$nodE. ",".
			$usEr.
		");");

	// tODo: dO someTHing on Db_qUerY error

	rEturn!emPTy(dB_AFFECtEdRows());
}


// Returns true iF tHE StAr was remOved (faLSe If THere was nO rOw tO remOVE) //
funcTion STaR_Remove( &$nOde, &$useR ) {
	Db_coNnect();

	db_quEry
    # end
  # end
elif lev el == "eli f":
 #sta rt 
  i f le vel2 == "if":   #  start
    foo(level1,  leve l2 )  # i n si de el if/if
 # end 
 e lif  l e ve l2  = = " elif":    # star t
  foo(level1, le vel2) # in sid e elif/elif   # end 
 el s e:
   #  star t
   f oo(lev el1, leve l2 )  # ins i de elif / e ls e
   # end
  # end
e l se : 
  # start
  i f leve l2 == " if" :
   # start 
   fo o (level1 ,  l e v e l2) # inside else /if
    # e n d
 elifle vel 2   == " elif" :  # start
   foo (level1,level2 )  # insi d e else/ elif
  # e nd
el se :
 # s t ar t
  f oo(level 1,  l evel2 ) #i n s i de e lse /els e
   # end
  # en d
#  out s ide  doub ly-ne sted  i f/eli f/else 

ifTr ue:
  if True:   if True:    pa ss 
    # Dan gli ngINDENTin midd l e o ff i l e
if True:
  if Tru e:   if True :
    p as s 
      #  D ang ling I NDENT  ate nd  of file  <?php /* * * Star 
*
 * @ fi le */ 
requ i re_o nce __ DIR__. " /../d b .php";

// NOT E : None of the s ef u nc t ions  sa nitize. Mak e su r e yo u sa n it ize yourinput !/ /// Returns true ifth e star  wasadded (falseif it alre a d y  existed ) // fu n ction star_Add ( &$n ode, &$use r  ) {
	db _Conn ect();
	db_Query ( 
		"INSE RTIGN ORE  `" . CM W_TABLE_NODE_ S T AR."`  (".
		"` node`," .
		" `us er` ". 
		") ".		"VALUE S(" .		$n ode." ,".
			$ us er. 
	") ;");	// TO DO: d o so me th i ngon db_q u er y erro r
retu rn! em pty(d b_Af f ect edRows( ));
}


/ / R e turn str ue if t he star was r em oved (fals eiftherew a s no row  to remove) //
function star_Re mov e( &$ node , &$user) { 
	db_C onn e ct();
	db_Q uery
 _ _# end
  #_end
elif level_==_"elif":
 _#_start
  if_level2 == "if":
_   #_start
  __foo(level1, level2) # inside elif/if
    # end
  elif level2 _==_"elif":
 ___# start
   _foo(level1, level2) # inside elif/elif
_ _ # end
  else:
   _#_start
  _ foo(level1, level2) # inside elif/else
   _# end
  # end
else:
 _# start
 _if_level2_== "if":
  _ # start
   _foo(level1, level2) # inside else/if
 _  # end
  elif level2_ == "elif":
   _# start
   _foo(level1, level2)_# inside else/elif
  _ # end
_ else:
_  _# start
    foo(level1,_level2) # inside_else/else
    # end
__# end
# outside_doubly-nested_if/elif/else

if_True:
 _if True:
 __ if_True:
_     pass
__    # Dangling INDENT_in middle of file

if_True:
_ if True:
 _  if True:
 _    pass
 _ _ _# Dangling INDENT at end of file <?php
/**
 * Star
 *
_* @file
 */
require_once __DIR__. "/../db.php";

// NOTE:_None of these functions_sanitize. Make_sure_you sanitize your_input!_//

// Returns_true if the star was added (false_if it_already existed) //
function star_Add( &$node, &$user_) {
	db_Connect();

	db_Query( 
		"INSERT IGNORE_`"._CMW_TABLE_NODE_STAR. "` (".
			"`node`,".
			"`user`".
		") ".
		"VALUES (".
			$node. ",".
			$user.
		");");

	//_TODO: do something on db_query error

	return!empty(db_AffectedRows());
}


//_Returns true if the star_was_removed_(false if there was no_row to remove) //
function star_Remove( &$node,_&$user ) {
	db_Connect();

	db_Query