<commit_before>import { Injectable } from '@angular/core';
import { Http, Headers } from '@angular/http';
import { Platform } from 'ionic-angular';
import 'rxjs/add/operator/map';
import { Observable } from 'rxjs';

import { BackandService } from '@backand/angular2-sdk';

/*
  Generated class for the BackandDB provider.

  See https://angular.io/docs/ts/latest/guide/dependency-injection.html
  for more info on providers and Angular 2 DI.
*/
@Injectable()
export class BackandDB {

	constructor(public http: Http, public platform: Platform, private backand: BackandService) {
	    console.log('Hello BackandDB Provider');

	    backand.init({
	        appName: 'backandcrudrealtime',
	        signUpToken: '<PASSWORD>',
	        anonymousToken: '<PASSWORD>',
	        runSocket: true,
	        isMobile: platform.is('mobile')
	    });
	}


	getMarkers(options): Observable<any> {   
		let filter = {
			loc:  { $withinKilometers: [[options.lat, options.lng], options.maxDistance] }
	    };
	 
	    return Observable.fromPromise(this.backand.object.getList('markers', filter));
	}

	createMarker(marker): Observable<any> {
		return Observable.fromPromise(this.backand.object.create('markers', marker));
	}

	signin(authenticationDetails: any): Observable<any>  {
		return Observable.fromPromise(this.backand.signin(authenticationDetails.username, authenticationDetails.password));
	}

	signup(userDetails: any): Observable<any>  {
		return Observable.fromPromise(this.backand.signup(userDetails.email, userDetails.signUpPassword, userDetails.confirmPassword, userDetails.firstName, userDetails.lastName));
	}

	socialSignin(provider: string): Observable<any>  {
		return Observable.fromPromise(this.backand.socialSignin(provider));
	}

	on(eventName: string, callback?: (data?: any) => void)  {
		this.backand.on(eventName, callback);
	}

	getOneMarker(id: string): Observable<any> {
		return Observable.fromPromise(this.backand.object.getOne('markers', id));
	} 

}
<commit_msg>Fix Order of Signup Parameters<commit_after>import { Injectable } from '@angular/core';
import { Http, Headers } from '@angular/http';
import { Platform } from 'ionic-angular';
import 'rxjs/add/operator/map';
import { Observable } from 'rxjs';

import { BackandService } from '@backand/angular2-sdk';

/*
  Generated class for the BackandDB provider.

  See https://angular.io/docs/ts/latest/guide/dependency-injection.html
  for more info on providers and Angular 2 DI.
*/
@Injectable()
export class BackandDB {

	constructor(public http: Http, public platform: Platform, private backand: BackandService) {
	    console.log('Hello BackandDB Provider');

	    backand.init({
	        appName: 'backandcrudrealtime',
	        signUpToken: '<PASSWORD>',
	        anonymousToken: '<PASSWORD>',
	        runSocket: true,
	        isMobile: platform.is('mobile')
	    });
	}


	getMarkers(options): Observable<any> {   
		let filter = {
			loc:  { $withinKilometers: [[options.lat, options.lng], options.maxDistance] }
	    };
	 
	    return Observable.fromPromise(this.backand.object.getList('markers', filter));
	}

	createMarker(marker): Observable<any> {
		return Observable.fromPromise(this.backand.object.create('markers', marker));
	}

	signin(authenticationDetails: any): Observable<any>  {
		return Observable.fromPromise(this.backand.signin(authenticationDetails.username, authenticationDetails.password));
	}

	signup(userDetails: any): Observable<any>  {
		return Observable.fromPromise(this.backand.signup(userDetails.firstName, userDetails.lastName, userDetails.email, userDetails.signUpPassword, userDetails.confirmPassword));
	}

	socialSignin(provider: string): Observable<any>  {
		return Observable.fromPromise(this.backand.socialSignin(provider));
	}

	on(eventName: string, callback?: (data?: any) => void)  {
		this.backand.on(eventName, callback);
	}

	getOneMarker(id: string): Observable<any> {
		return Observable.fromPromise(this.backand.object.getOne('markers', id));
	} 

}

{'fraction_non_alphanumeric': 0.13370193515958784, 'fraction_numerical': 0.0010052777079668257, 'mean_word_length': 4.6776034236804565, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 21, 'https://': 2, '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': '5257965', 'n_tokens_mistral': 1278, 'n_tokens_neox': 1199, 'n_words': 240}