<commit_before>// 将最新文件同步到项目主页中
var Client = require('ftp');
// ftp的配置信息，包括host，user，password
var syncConfig=require('./sync-config');

var c = new Client();
c.on('ready', function() {
    console.log('start sync');
    c.put('dist/mdeditor.min.css','/demo/mdeditor/css/mdeditor.min.css',function(err){
        if(err) throw err;
        c.end();
        console.log('mdeditor.min.css sync success');
    })
    c.put('dist/mdeditor.min.js','/demo/mdeditor/js/mdeditor.min.js',function(err){
        if(err) throw err;
        c.end();
        console.log('mdeditor.min.js sync success');
    });
    c.put('dist/mdeditor.grammer.iframe.min.js','/demo/mdeditor/js/mdeditor.grammer.iframe.min.js',function(err){
        if(err) throw err;
        c.end();
        console.log('mdeditor.grammer.iframe.min.js sync success');
    })
    c.put('demo/index.html','/demo/mdeditor/index.html',function(err){
        if(err) throw err;
        c.end();
        console.log('index.html sync success');
    })

});<commit_msg>no commit message<commit_after>// 将最新文件同步到项目主页中
var Client = require('ftp');
// ftp的配置信息，包括host，user，password
var syncConfig = require('./sync-config');

var c = new Client();
c.on('ready', function () {
    console.log('start sync');
    c.put('dist/mdeditor.min.css', '/demo/mdeditor/css/mdeditor.min.css', function (err) {
        if (err) throw err;
        c.end();
        console.log('mdeditor.min.css sync success');
    })
    c.put('dist/mdeditor.min.js', '/demo/mdeditor/js/mdeditor.min.js', function (err) {
        if (err) throw err;
        c.end();
        console.log('mdeditor.min.js sync success');
    });
    c.put('dist/mdeditor.grammer.iframe.min.js', '/demo/mdeditor/js/mdeditor.grammer.iframe.min.js', function (err) {
        if (err) throw err;
        c.end();
        console.log('mdeditor.grammer.iframe.min.js sync success');
    })
    c.put('demo/index.html', '/demo/mdeditor/index.html', function (err) {
        if (err) throw err;
        c.end();
        console.log('index.html sync success');
    })

});
{'fraction_non_alphanumeric': 0.1913550267119961, 'fraction_numerical': 0.0, 'mean_word_length': 2.814814814814815, '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': '2686452', 'n_tokens_mistral': 737, 'n_tokens_neox': 762, 'n_words': 115}