<commit_before>'use strict;'
import * as vscode from 'vscode';

var Trello = require("node-trello");

export default class TrelloClient {
	
	private _trello : any;
	private _key : string;
	private _token : string;
	
	public _boards : Array<any>;
	public _boardsIDs : Array<any>;
	
<<<<<<< HEAD
	private bID : string; 
=======
	public _lists : Array<any>;
	public _listsIDs : Array<any>;
	
	private bID : string; 
	private lID : string; 
>>>>>>> getListsForBoards

	
	constructor(key?: string, token?: string) {
		this._key = key;
		this._token = token;
		
		this._trello = new Trello(this._key, this._token);
	}
	
	public getMyBoards(){
		this._trello.get("/1/members/me/boards", (err, data) => {
  			if (err) throw err;
			this._boards = new Array<string>();
			this._boardsIDs = new Array<string>();
		  	
			for(var i = 0; i < data.length; i++){
				 this._boards.push(data[i].name);
				 this._boardsIDs.push(data[i].id);
			}
			
			vscode.window.showQuickPick(this._boards).then(x => {
				console.log(x);		
				//
				for (var j = 0; j <data.length; j++){
					if(this._boards[j] == x){
						this.bID = this._boardsIDs[j];
					}				 
<<<<<<< HEAD
				}
				
				this._getAllLists(this.bID);
			});
=======
				};
				
				this._getAllLists(this.bID);
			}, err => {});
>>>>>>> getListsForBoards
		});
	}
	
	private _getAllLists(boardID: string){
<<<<<<< HEAD
// 		this._trello.get("/1/members/me/boards"+boardID, function(err, data) {
//   			if (err) throw err;
//   			console.log(data);
// 
// 		});
// 
// 		
// 		//vscode.window.showQuickPick();
// 	}
}

// function getBoardsLists(boardID: any, TrelloClient:){
// 	var bID: string;
// 	bID = "/1/members/me/boards/" + boardID; 
// 	_trello.get(bID, function(err, data) {
// 		if (err) throw err;
// 		console.log(data);
// 		//JSON.parse(data);
// 	});
// }
=======
		this._trello.get("/1/boards/"+boardID + "/lists", (err, data) => {
			if (err) throw err;
			console.log(data);
			this._lists = new Array<string>();
			this._listsIDs = new Array<string>();
		  	
			for(var i = 0; i < data.length; i++){
				 this._lists.push(data[i].name);
				 this._listsIDs.push(data[i].id);
				 console.log(data[i].name);
				 console.log(data[i].id);
			}
			
			vscode.window.showQuickPick(this._lists).then(x => {
				console.log(x);		
				//find ID for selected list
				for (var j = 0; j <data.length; j++){
					if(this._lists[j] == x){
						this.lID = this._listsIDs[j];
						console.log(this.bID);
					}				 
				};
				
				this._getAllCards(this.lID);
			}, err => {});
			  	
		});

		
		//vscode.window.showQuickPick();
	}
	
	private _getAllCards(listID: string){
		console.log("getting all cards")
	}
}

>>>>>>> getListsForBoards<commit_msg>Added list for all cards for the selected list<commit_after>'use strict;'
import * as vscode from 'vscode';

var Trello = require("node-trello");

export default class TrelloClient {
	
	private _trello : any;
	private _key : string;
	private _token : string;
	
	public _boards : Array<any>;
	public _boardsIDs : Array<any>;
	
	public _lists : Array<any>;
	public _listsIDs : Array<any>;
	
	private _cards : Array<any>;
	
	private bID : string; 
	private lID : string; 
	private cID : string; 
	
	private currentCard : string; 

	
	constructor(key?: string, token?: string) {
		this._key = key;
		this._token = token;
		
		this._trello = new Trello(this._key, this._token);
	}
	
	public getMyBoards(){
		this._trello.get("/1/members/me/boards", (err, data) => {
  			if (err) throw err;
			this._boards = new Array<string>();
			this._boardsIDs = new Array<string>();
		  	
			for(var i = 0; i < data.length; i++){
				 this._boards.push(data[i].name);
				 this._boardsIDs.push(data[i].id);
			}
			
			vscode.window.showQuickPick(this._boards).then(x => {
				console.log(x);		
				//
				for (var j = 0; j <data.length; j++){
					if(this._boards[j] == x){
						this.bID = this._boardsIDs[j];
					}				 
				};
				
				this._getAllLists(this.bID);
			}, err => {});
		});
	}
	
	private _getAllLists(boardID: string){
		this._trello.get("/1/boards/"+boardID + "/lists", (err, data) => {
			if (err) throw err;
			console.log(data);
			this._lists = new Array<string>();
			this._listsIDs = new Array<string>();
		  	
			for(var i = 0; i < data.length; i++){
				 this._lists.push(data[i].name);
				 this._listsIDs.push(data[i].id);
				 console.log(data[i].name);
				 console.log(data[i].id);
			}
			
			vscode.window.showQuickPick(this._lists).then(x => {
				console.log(x);		
				//find ID for selected list
				for (var j = 0; j <data.length; j++){
					if(this._lists[j] == x){
						this.lID = this._listsIDs[j];
						console.log(this.bID);
					}				 
				};
				
				this._getAllCards(this.lID);
			}, err => {});
			  	
		});
	}
	
	private _getAllCards(listID: string){
		this._trello.get("/1/lists/"+listID + "/cards", (err, data) => {
			if (err) throw err;
			console.log(data);
			this._cards = new Array<string>();
		  	
			for(var i = 0; i < data.length; i++){
				 this._cards.push(data[i].name);
			}
			
			vscode.window.showQuickPick(this._cards).then(x => {	
				this.currentCard = x; 
				//currentCard
				console.log(this.currentCard);	
			}, err => {});
			  	
		});
	}
}

{'fraction_non_alphanumeric': 0.18857799923342278, 'fraction_numerical': 0.0030663089306247606, 'mean_word_length': 2.6727656579873327, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 57, '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': '5165319', 'n_tokens_mistral': 2384, 'n_tokens_neox': 1924, 'n_words': 369}