<commit_before>package com.continuuity.internal.app.scheduler;

import com.continuuity.app.Id;
import com.continuuity.app.services.AppFabricService;
import com.continuuity.app.services.AuthToken;
import com.continuuity.internal.app.services.AppFabricServer;
import com.continuuity.test.internal.TestHelper;
import com.continuuity.weave.filesystem.LocalLocationFactory;
import junit.framework.Assert;
import org.junit.Test;

import java.util.concurrent.TimeUnit;

/**
 * Tests if Workflows are scheduled.
 */
public class ScheduleRunnerTest {

  @Test
  public void testRunner() throws Exception {
    AppFabricServer appFabricServer = TestHelper.getInjector().getInstance(AppFabricServer.class);

    Assert.assertEquals(0, SampleApplication.hasRun);
    appFabricServer.startAndWait();

    AppFabricService.Iface appFabricService = TestHelper.getInjector().getInstance(AppFabricService.Iface.class);

    TestHelper.deployApplication(appFabricService, new LocalLocationFactory(),
                                 Id.Account.from("developer"), new AuthToken("token"), "SampleApplication",
                                 "app", SampleApplication.class);

    TimeUnit.SECONDS.sleep(30);

    Assert.assertEquals(1, SampleApplication.hasRun);
    appFabricServer.stopAndWait();
  }
}
<commit_msg>fixing an unrelated unit-test<commit_after>package com.continuuity.internal.app.scheduler;

import com.continuuity.app.Id;
import com.continuuity.app.services.AppFabricService;
import com.continuuity.app.services.AuthToken;
import com.continuuity.internal.app.services.AppFabricServer;
import com.continuuity.test.internal.TestHelper;
import com.continuuity.weave.filesystem.LocalLocationFactory;
import junit.framework.Assert;
import org.junit.Test;

import java.util.concurrent.TimeUnit;

/**
 * Tests if Workflows are scheduled.
 */
public class ScheduleRunnerTest {

  @Test
  public void testRunner() throws Exception {
    AppFabricServer appFabricServer = TestHelper.getInjector().getInstance(AppFabricServer.class);

    Assert.assertEquals(0, SampleApplication.hasRun);
    appFabricServer.startAndWait();
    try {
      AppFabricService.Iface appFabricService = TestHelper.getInjector().getInstance(AppFabricService.Iface.class);

      TestHelper.deployApplication(appFabricService, new LocalLocationFactory(),
                                   Id.Account.from("developer"), new AuthToken("token"), "SampleApplication",
                                   "app", SampleApplication.class);

      TimeUnit.SECONDS.sleep(30);

      Assert.assertEquals(1, SampleApplication.hasRun);
    } finally {
      appFabricServer.stopAndWait();
    }
  }
}

{'fraction_non_alphanumeric': 0.10282485875706214, 'fraction_numerical': 0.0030131826741996233, 'mean_word_length': 4.1875, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5221450', 'n_tokens_mistral': 787, 'n_tokens_neox': 748, 'n_words': 117}