<commit_before>package org.flexunit.ant;


/**
 * Launches a SWF on Windows.
 */
public class WindowsSWFLauncher extends SWFLauncher
{
   private static final String WINDOWS_CMD = "rundll32 url.dll,FileProtocolHandler ";
   private final String localTrustedDirectory = "C:\\WINDOWS\\system32\\Macromed\\Flash\\FlashPlayerTrust\\";

   public String getLocalTrustedDirectory()
   {
      return this.localTrustedDirectory;
   }

   protected void runTests(String swf) throws Exception
   {
      // Ideally we want to launch the SWF in the player so we can close
      // it, not so easy in a browser. We let 'rundll32' do the work based
      // on the extension of the file passed in.
      Runtime.getRuntime().exec(WINDOWS_CMD + swf);
   }
}<commit_msg>Patched SWF launcher for windows slashes<commit_after>package org.flexunit.ant;


/**
 * Launches a SWF on Windows.
 */
public class WindowsSWFLauncher extends SWFLauncher
{
   private static final String WINDOWS_CMD = "rundll32 url.dll,FileProtocolHandler ";
   private final String localTrustedDirectory = "C:\\WINDOWS\\system32\\Macromed\\Flash\\FlashPlayerTrust\\";

   public String getLocalTrustedDirectory()
   {
      return this.localTrustedDirectory;
   }

   protected void runTests(String swf) throws Exception
   {
      String nativeSwfPath = swf.replace("/", "\\");
      
      // Ideally we want to launch the SWF in the player so we can close
      // it, not so easy in a browser. We let 'rundll32' do the work based
      // on the extension of the file passed in.
      Runtime.getRuntime().exec(WINDOWS_CMD + nativeSwfPath);
   }
}
{'fraction_non_alphanumeric': 0.09136109384711001, 'fraction_numerical': 0.0074580484773151025, 'mean_word_length': 3.2146596858638743, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6646148', 'n_tokens_mistral': 493, 'n_tokens_neox': 470, 'n_words': 154}