<commit_before>var express = require('express'),
    serveStatic = require('serve-static'),
    fs = require('fs'),
    http = require('http'),
    https = require('https'),
    bodyParser = require('body-parser'),
    ipn = require('paypal-ipn'),
    ParseServer = require('parse-server').ParseServer;

var app = express()
var settings = {
  "appId": process.env.APPLICATION_ID || "APPLICATION_ID",
  "appName": process.env.APPLICATION_NAME || "Yorick",
  "masterKey": process.env.MASTER_KEY || "MASTER_KEY",
  "databaseURI": process.env.MONGODB_URI || "mongodb://localhost:27017/anotherstore",
  "mountPath": process.env.MOUNT_PATH || "/parse/1",
  "cloud": process.env.CLOUD_CODE_MAIN || "/home/ubuntu/workspace/cloud/main.js",
  "verbose": true,
  "publicServerURL": process.env.PUBLIC_SERVER_URL || "https://yorick-latest-parse-server-gnu-lorien.c9users.io/parse/1",
  "serverURL": "http://0.0.0.0:" + process.env.PORT + "/parse/1",
  "auth": {
      "facebook": {
          "appIds": process.env.FACEBOOK_APP_IDS || ""
      }
  }
}

var api = new ParseServer(settings);
app.use('/parse/1', api);

app.get('/deez', function (req, res) {
    new Parse.Query("Vampire").first({useMasterKey: true}).then(function (v) {
        res.send("I got something named what exactly? " + v.get("name"));
    }).fail(function (error) {
        res.send(error.message);
    });
});

app.use(bodyParser.urlencoded({extended: false}));
app.use(bodyParser.json());

app.post('/deez', function (req, res) {
    console.log(JSON.stringify(req.body));
    ipn.verify(req.body, {allow_sandbox: true}, function (err, msg) {
        if (err) {
            console.error(err);
        } else {
            console.log("I verified it");
            var PaymentPaypal = Parse.Object.extend("PaymentPaypal");
            var p = new PaymentPaypal;
            p.save(req.body, {useMasterKey: true}).then(function (newpaymente) {
                console.log("Boom new payment");
            }).fail(function (error) {
                console.error(error.message);
            })
        }
    })
    res.send("I found something");
})

http.createServer(app).listen(process.env.PORT, '0.0.0.0');<commit_msg>Another attempt to configure Facebook<commit_after>var express = require('express'),
    serveStatic = require('serve-static'),
    fs = require('fs'),
    http = require('http'),
    https = require('https'),
    bodyParser = require('body-parser'),
    ipn = require('paypal-ipn'),
    ParseServer = require('parse-server').ParseServer;

var app = express()
var settings = {
  "appId": process.env.APPLICATION_ID || "APPLICATION_ID",
  "appName": process.env.APPLICATION_NAME || "Yorick",
  "masterKey": process.env.MASTER_KEY || "MASTER_KEY",
  "databaseURI": process.env.MONGODB_URI || "mongodb://localhost:27017/anotherstore",
  "mountPath": process.env.MOUNT_PATH || "/parse/1",
  "cloud": process.env.CLOUD_CODE_MAIN || "/home/ubuntu/workspace/cloud/main.js",
  "verbose": true,
  "publicServerURL": process.env.PUBLIC_SERVER_URL || "https://yorick-latest-parse-server-gnu-lorien.c9users.io/parse/1",
  "serverURL": "http://0.0.0.0:" + process.env.PORT + "/parse/1",
  "oauth": {
      "facebook": {
          "appIds": process.env.FACEBOOK_APP_IDS || ""
      }
  }
}

var api = new ParseServer(settings);
app.use('/parse/1', api);

app.get('/deez', function (req, res) {
    new Parse.Query("Vampire").first({useMasterKey: true}).then(function (v) {
        res.send("I got something named what exactly? " + v.get("name"));
    }).fail(function (error) {
        res.send(error.message);
    });
});

app.use(bodyParser.urlencoded({extended: false}));
app.use(bodyParser.json());

app.post('/deez', function (req, res) {
    console.log(JSON.stringify(req.body));
    ipn.verify(req.body, {allow_sandbox: true}, function (err, msg) {
        if (err) {
            console.error(err);
        } else {
            console.log("I verified it");
            var PaymentPaypal = Parse.Object.extend("PaymentPaypal");
            var p = new PaymentPaypal;
            p.save(req.body, {useMasterKey: true}).then(function (newpaymente) {
                console.log("Boom new payment");
            }).fail(function (error) {
                console.error(error.message);
            })
        }
    })
    res.send("I found something");
})

http.createServer(app).listen(process.env.PORT, '0.0.0.0');
{'fraction_non_alphanumeric': 0.18318523581681476, 'fraction_numerical': 0.008202323991797676, 'mean_word_length': 3.169040835707502, 'pattern_counts': {'":': 24, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6897048', 'n_tokens_mistral': 1469, 'n_tokens_neox': 1437, 'n_words': 243}