<commit_before>import System.IO
import GHC.IO.Handle
import GHC.IO.FD as FD

main = do
  (fd, _) <- FD.openFile "4808.hs" ReadWriteMode
  hdl <- mkDuplexHandle fd "4808.hs" Nothing nativeNewlineMode
  hClose hdl
  (fd2, _) <- FD.openFile "4808.hs" ReadWriteMode
  print (fdFD fd == fdFD fd2) -- should be True
  hGetLine hdl >>= print -- should fail with an exception
<commit_msg>Test 4808: Follow change in GHC.IO.FD.openFile definition<commit_after>import System.IO
import GHC.IO.Handle
import GHC.IO.FD as FD

main = do
  (fd, _) <- FD.openFile "4808.hs" ReadWriteMode False
  hdl <- mkDuplexHandle fd "4808.hs" Nothing nativeNewlineMode
  hClose hdl
  (fd2, _) <- FD.openFile "4808.hs" ReadWriteMode False
  print (fdFD fd == fdFD fd2) -- should be True
  hGetLine hdl >>= print -- should fail with an exception

{'fraction_non_alphanumeric': 0.11029411764705882, 'fraction_numerical': 0.0392156862745098, 'mean_word_length': 3.6420454545454546, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '121914', 'n_tokens_mistral': 326, 'n_tokens_neox': 298, 'n_words': 92}