<commit_before><?php

require('vendor/autoload.php');
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

$app = new Silex\Application();
$app['debug'] = true;

//database initial
$dbopts = parse_url(getenv('DATABASE_URL'));
// Register the Database service
$app->register(new Herrera\Pdo\PdoServiceProvider(),
  array(
    'pdo.dsn' => 'pgsql:dbname='.ltrim($dbopts["path"],'/').';host='.$dbopts["host"],
    'pdo.port' => $dbopts["port"],
    'pdo.username' => $dbopts["user"],
    'pdo.password' => $dbopts["pass"]
  )
);

// Register the monolog logging service
$app->register(new Silex\Provider\MonologServiceProvider(), array(
  'monolog.logfile' => 'php://stderr',
));

// Our web handlers
$app->get('/', function() use($app) {
  $app['monolog']->addDebug('logging output.');
  return 'Running';
});

$app->post('/send-message', function(Request $request) {
	$message = $request->get('message');
	$number = $request->get('number');
	require('../web/class.googlevoice.php');
	$gv = new GoogleVoice("<EMAIL>", "crowdcheersccs");
	$gv->sms($number, $message);
	return new Response('Post',201);
});

$app->get('/send-message', function() use($app) {
  $app['monolog']->addDebug('logging output.');
  return 'get';
});

/*//Database initial
$app->get('/db/initial',funtion() use($app){
	$st = $app['pdo']->prepare('CREATE TABLE user(
			UID		INT PRIMARY KEY  NOT NULL,
			Phone				CHAR(20),
			Nickname			TEXT,
			VerifyCode			INT
		)');
	try {
		$st->execute(); 
	} catch (PDOException $e) {
		return $st->errorCode();
	}
	return 'done';
})
//Database create new user
$app->post('/db/new-user',function(Request $request) {
	$number = $request->get('number');
})*/

$app->run();

?><commit_msg>trying something<commit_after><?php

require('vendor/autoload.php');
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

$app = new Silex\Application();
$app['debug'] = true;

//database initial
$dbopts = parse_url(getenv('DATABASE_URL'));
// Register the Database service
/*$app->register(new Herrera\Pdo\PdoServiceProvider(),
  array(
    'pdo.dsn' => 'pgsql:dbname='.ltrim($dbopts["path"],'/').';host='.$dbopts["host"],
    'pdo.port' => $dbopts["port"],
    'pdo.username' => $dbopts["user"],
    'pdo.password' => $dbo<PASSWORD>["pass"]
  )
);

// Register the monolog logging service
$app->register(new Silex\Provider\MonologServiceProvider(), array(
  'monolog.logfile' => 'php://stderr',
));
*/
// Our web handlers
$app->get('/', function() use($app) {
  $app['monolog']->addDebug('logging output.');
  return 'Running';
});
/*
$app->post('/send-message', function(Request $request) {
	$message = $request->get('message');
	$number = $request->get('number');
	require('../web/class.googlevoice.php');
	$gv = new GoogleVoice("<EMAIL>", "crowdcheersccs");
	$gv->sms($number, $message);
	return new Response('Post',201);
});

$app->get('/send-message', function() use($app) {
  $app['monolog']->addDebug('logging output.');
  return 'get';
});

/*//Database initial
$app->get('/db/initial',funtion() use($app){
	$st = $app['pdo']->prepare('CREATE TABLE user(
			UID		INT PRIMARY KEY  NOT NULL,
			Phone				CHAR(20),
			Nickname			TEXT,
			VerifyCode			INT
		)');
	try {
		$st->execute(); 
	} catch (PDOException $e) {
		return $st->errorCode();
	}
	return 'done';
})
//Database create new user
$app->post('/db/new-user',function(Request $request) {
	$number = $request->get('number');
})*/
*/
$app->run();

?>
{'fraction_non_alphanumeric': 0.2289639381797367, 'fraction_numerical': 0.0028620492272467086, 'mean_word_length': 4.805647840531561, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 52, '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': '5138672', 'n_tokens_mistral': 1293, 'n_tokens_neox': 1246, 'n_words': 225}