<commit_before><?php
namespace Craft;

class InstaCraft_FileTask extends BaseTask
{

    /**
     * Defined settings
     * @return array
     */
    protected function defineSettings()
    {
        return array(
            'folderId' => AttributeType::Number,
            'imageId' => AttributeType::String,
            'url' => AttributeType::String,
            'text' => AttributeType::String,
        );
    }

    /**
     * Return description
     * @return string
     */
    public function getDescription()
    {
        return Craft::t('Instagram download');
    }

    /**
     * Total steps to run
     * @return int
     */
    public function getTotalSteps()
    {
        return 3;
    }

    /**
     * Run each step
     * @param  int  $step
     * @return boolean
     */
    public function runStep($step)
    {
        if(!craft()->instaCraft_file->fileExists($settings->folderId, $settings->imageId)) {
          $settings = $this->getSettings();
          switch ($step) {
              case 0:
                  return craft()->instaCraft_file->downloadImage($settings->url, $settings->imageId);
              break;
              case 1:
                  return craft()->instaCraft_file->moveImage($settings->folderId);
              break;
              case 2:
                  return craft()->instaCraft_file->removeTmpImage();
              break;
          }
        }
    }
}<commit_msg>Added return value for runstep<commit_after><?php
namespace Craft;

class InstaCraft_FileTask extends BaseTask
{

    /**
     * Defined settings
     * @return array
     */
    protected function defineSettings()
    {
        return array(
            'folderId' => AttributeType::Number,
            'imageId' => AttributeType::String,
            'url' => AttributeType::String,
            'text' => AttributeType::String,
        );
    }

    /**
     * Return description
     * @return string
     */
    public function getDescription()
    {
        return Craft::t('Instagram download');
    }

    /**
     * Total steps to run
     * @return int
     */
    public function getTotalSteps()
    {
        return 3;
    }

    /**
     * Run each step
     * @param  int  $step
     * @return boolean
     */
    public function runStep($step)
    {
        if(!craft()->instaCraft_file->fileExists($settings->folderId, $settings->imageId)) {
          $settings = $this->getSettings();
          switch ($step) {
              case 0:
                  return craft()->instaCraft_file->downloadImage($settings->url, $settings->imageId);
              break;
              case 1:
                  return craft()->instaCraft_file->moveImage($settings->folderId);
              break;
              case 2:
                  return craft()->instaCraft_file->removeTmpImage();
              break;
          }
        }
        return true;
    }
}
{'fraction_non_alphanumeric': 0.12179042331714088, 'fraction_numerical': 0.002775850104094379, 'mean_word_length': 1.6522539098436062, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 39, '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': '5499870', 'n_tokens_mistral': 791, 'n_tokens_neox': 769, 'n_words': 162}