<commit_before>const child = require('child_process');


const check = child.execSync('git add -n -A').toString();
console.log(check === '');
console.log(check);

return;

const commands = [
  'git add -A',
  'git commit -m "before deploy"',
  'git branch deploy-azure',
  'git checkout deploy-azure',
  'git rebase master',
  'npm run build:azure',
  'git add -A',
  'git commit -m "build:azure"',
  'git push origin deploy-azure -f',
  'git checkout master',
  'git branch -D deploy-azure',
];

commands.forEach(command => {
  console.log('='.repeat(20), command);
  try {
    const result = child.execSync(command).toString();
    console.log('result:', result);
  } catch (err) {
    console.error('error:', err.Error);
  }
});


// try {
//   child.execSync('git branch deploy-azure');
// } catch (err) { }


// try {
//   child.execSync('git checkout deploy-azure');

//   child.execSync('git rebase master');
//   child.execSync('npm run build:azure');
//   child.execSync('git add -A');
//   child.execSync('git commit -m "build:azure"');
//   child.execSync('git push origin deploy-azure');
// } catch (err) {
//   throw err;
// }

// child.execSync('git checkout master');
<commit_msg>before deploy<commit_after>const child = require('child_process');


const check = child.execSync('git add -n -A').toString();
console.log('check:', check);
if (check) {
  console.log('Commit file changes before deploy!');
}


const commands = [
  'git add -A',
  'git commit -m "before deploy"',
  'git branch deploy-azure',
  'git checkout deploy-azure',
  'git rebase master',
  'npm run build:azure',
  'git add -A',
  'git commit -m "build:azure"',
  'git push origin deploy-azure -f',
  'git checkout master',
  'git branch -D deploy-azure',
];

commands.forEach(command => {
  console.log('='.repeat(20), command);
  try {
    const result = child.execSync(command).toString();
    console.log('result:', result);
  } catch (err) {
    console.error('error:', err.Error);
  }
});


// try {
//   child.execSync('git branch deploy-azure');
// } catch (err) { }


// try {
//   child.execSync('git checkout deploy-azure');

//   child.execSync('git rebase master');
//   child.execSync('npm run build:azure');
//   child.execSync('git add -A');
//   child.execSync('git commit -m "build:azure"');
//   child.execSync('git push origin deploy-azure');
// } catch (err) {
//   throw err;
// }

// child.execSync('git checkout master');

{'fraction_non_alphanumeric': 0.1960542540073983, 'fraction_numerical': 0.0016440608302507192, 'mean_word_length': 3.4094202898550723, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5981801', 'n_tokens_mistral': 832, 'n_tokens_neox': 811, 'n_words': 207}