<commit_before>import {Component} from '@angular/core';

import {APIService} from 'services/api.service';
import {GroupProvider} from '../group.component';
import {Group} from 'resources/group';
import {Publication} from 'resources/publication';
import {PostFormComponent} from './postform/postform.component';
import {PublicationComponent} from './publication/publication.component';


@Component({
    templateUrl: 'group-publications.component.html',
})
export class GroupPublicationsComponent {
    public group: Group;
    public publications: Publication[] = [];

    constructor(public grPr: GroupProvider, public api: APIService) {
        this.grPr.group.subscribe(
            (gr: Group) => {
                this.group = gr;
                this.api.store.find('group', this.group.pk, 'publications').then(p => {
                    p.forEach((obj) => { console.log("log");console.log(p);this.publications.push(obj);});
                });
            }
        );
    }
}<commit_msg>Last fix on GroupPublications<commit_after>import {Component} from '@angular/core';

import {APIService} from 'services/api.service';
import {GroupProvider} from '../group.component';
import {Group} from 'resources/group';
import {Publication} from 'resources/publication';
import {PostFormComponent} from './postform/postform.component';
import {PublicationComponent} from './publication/publication.component';


@Component({
    templateUrl: 'group-publications.component.html',
})
export class GroupPublicationsComponent {
    public group: Group;
    public publications: Publication[] = [];

    constructor(public grPr: GroupProvider, public api: APIService) {
        this.grPr.group.subscribe(
            (gr: Group) => {
                this.group = gr;
                this.api.store.find('group', this.group.pk, 'publications').then(p => {
                    p.forEach((obj) => {this.publications.push(obj);});
                });
            }
        );
    }
}
{'fraction_non_alphanumeric': 0.1449569183983781, 'fraction_numerical': 0.0, 'mean_word_length': 3.1210855949895615, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '6016037', 'n_tokens_mistral': 548, 'n_tokens_neox': 532, 'n_words': 115}