text:
@article{dunck2021sotte,
 abstract = {Priority effects are stochastic processes that consider the influence of the order of arrival of species on community dynamics and structure. We evaluated the short-term effects of stream eutrophication and colonization time in freshwater benthic communities (primary producers - periphytic algae, decomposers – fungi, and consumers - macroinvertebrates) to test whether (i) beta diversity is higher in eutrophic streams due to priority effects driven by stochastic community formation processes (ecological drift or random dispersal), and (ii) in the early stages of colonization, priority effects drive the history of the formation and the initial establishment of the community in the stream, resulting in higher beta diversity. The present study was conducted in situ over 28 days in temperate streams along a trophic gradient, with colonization being evaluated every seven days. The study identified 84 species of alga, 43 families of macroinvertebrates, and 44 species of aquatic fungi. Our results demonstrated that deterministic processes were responsible for the formation of aquatic producers, while priority effects (stochasticity) were more important for the aquatic decomposers and consumers. In the case of the producers, beta diversity was highest in the hypertrophic stream, but did not vary significantly over colonization time. The beta diversity of the decomposers was highest in the hypertrophic stream and in the later stages of succession, due primarily to mechanisms of facilitation. The beta diversity of the consumers was lowest in the hypertrophic stream due primarily to the priority and inhibitory effects of the predominant groups, and highest at seven and 21 days of colonization. As these three taxonomic groups differ in their intrinsic biological characteristics, and in their functional role in the ecosystem, our short-term field study demonstrated that both stochastic and deterministic processes combine to influence the configuration of the community, and that the relative importance of the two processes varies systematically along a trophic gradient.},
 author = {Dunck, Bárbara and Rodrigues, Liliana and Lima-Fernandes, Eva and Cássio, Fernanda and Pascoal, Cláudia and Cottenie, Karl},
 copyright = {All rights reserved},
 doi = {10.1016/j.scitotenv.2021.149106},
 file = {dunck_2021_priority_effects_of_stream_eutrophication_and_assembly_history_on_beta.pdf:/Users/karlcottenie/Google Drive/zotero-library/2021/dunck_2021_priority_effects_of_stream_eutrophication_and_assembly_history_on_beta.pdf:application/pdf},
 issn = {0048-9697},
 journal = {Science of The Total Environment},
 keywords = {Algae, Fungi, Macroinvertebrates, Periphyton, Stochastic processes},
 language = {en},
 month = {November},
 pages = {149106},
 title = {Priority effects of stream eutrophication and assembly history on beta diversity across aquatic consumers, decomposers and producers},
 url = {https://www.sciencedirect.com/science/article/pii/S0048969721041784},
 urldate = {2021-08-03},
 volume = {797},
 year = {2021}
}

repository: karl-cottenie/academic-kickstart

repo_name: karl-cottenie/academic-kickstart


text:
# This is a TI specific version of the wpa-supplicant recipe for use with the
# wl18xx wlan module.

require wpa-supplicant.inc

LICENSE = "GPLv2 | BSD"
LIC_FILES_CHKSUM = "file://../COPYING;md5=ab87f20cd7e8c0d0a6539b34d3791d0e \
                    file://../README;md5=ba46b65db36e3c82244a3815b3738d63 \
                    file://wpa_supplicant.c;beginline=1;endline=17;md5=8835156c8ab8cad6356ec7f39ebe3aba"

FILESEXTRAPATHS_append := "${THISDIR}/wpa-supplicant:"

# Tag: R8.5
SRCREV = "2710d0ae31fa2dc31f653f346a985268d8d7795c"
BRANCH = "ap_p2p"
PR_append = "c"

# Add ti to the PV to indicate that this is a TI modify version of wpa-supplicant.
PV = "R8.5-devel-ti+git${SRCPV}"

PROVIDES += "wpa-supplicant"
RPROVIDES_${PN}  += "wpa-supplicant"
RREPLACES_${PN}  += "wpa-supplicant"
RCONFLICTS_${PN}  += "wpa-supplicant"
RDEPENDS_${PN} += "wpa-supplicant-cli wpa-supplicant-passphrase"

license: MIT

repository: varigit/meta-arago-var

license_type: permissive

repo_name: varigit/meta-arago-var

branch_name: refs/heads/master

extension: bb


text:
#include "algostuff.hpp"
using namespace std;

int main()
{
    deque<int> coll1;
    vector<int> coll6(6);    // initialize with 6 elements
    vector<int> coll30(30);  // initialize with 30 elements

    INSERT_ELEMENTS(coll1, 3, 7);
    INSERT_ELEMENTS(coll1, 2, 6);
    INSERT_ELEMENTS(coll1, 1, 5);
    PRINT_ELEMENTS(coll1);

    vector<int>::const_iterator pos6;
    pos6 = partial_sort_copy(coll1.cbegin(), coll1.cend(), coll6.begin(), coll6.end());

    copy(coll6.cbegin(), pos6, ostream_iterator<int>(cout, " "));
    cout << endl;

    vector<int>::const_iterator pos30;
    pos30 = partial_sort_copy(coll1.cbegin(), coll1.cend(), coll30.begin(), coll30.end(), greater<int>());

    copy(coll30.cbegin(), pos30, ostream_iterator<int>(cout, " "));
    cout << endl;

    return 0;
}

repository: bashell/CppStandardLibrary

repo_name: bashell/CppStandardLibrary

extension: cpp


text:
package jk

import (
	"reflect"
	"testing"
)

func checkMrph(t *testing.T, m, gold *Morpheme) {
	if m.Surface != gold.Surface {
		t.Errorf("Surface Error: expected %s but got %s", gold.Surface, m.Surface)
	}
	if m.Pronunciation != gold.Pronunciation {
		t.Errorf("Pronunciation Error: expected %s but got %s", gold.Pronunciation, m.Pronunciation)
	}
	if m.RootForm != gold.RootForm {
		t.Errorf("RootForm Error: expected %s but got %s", gold.RootForm, m.RootForm)
	}
	if m.Pos0 != gold.Pos0 {
		t.Errorf("Pos0 Error: expected %s but got %s", gold.Pos0, m.Pos0)
	}
	if m.Pos0ID != gold.Pos0ID {
		t.Errorf("Pos0ID Error: expected %d but got %d", gold.Pos0ID, m.Pos0ID)
	}
	if m.Pos1 != gold.Pos1 {
		t.Errorf("Pos1 Error: expected %s but got %s", gold.Pos1, m.Pos1)
	}
	if m.Pos1ID != gold.Pos1ID {
		t.Errorf("Pos1ID Error: expected %d but got %d", gold.Pos1ID, m.Pos1ID)
	}
	if m.CType != gold.CType {
		t.Errorf("CType Error: expected %s but got %s", gold.CType, m.CType)
	}
	if m.CTypeID != gold.CTypeID {
		t.Errorf("CTypeID Error: expected %d but got %d", gold.CTypeID, m.CTypeID)
	}
	if m.CForm != gold.CForm {
		t.Errorf("CForm Error: expected %s but got %s", gold.CForm, m.CForm)
	}
	if m.CFormID != gold.CFormID {
		t.Errorf("CFormID Error: expected %d but got %d", gold.CFormID, m.CFormID)
	}
	if m.Seminfo != gold.Seminfo {
		t.Errorf("Seminfo Error: expected %s but got %s", gold.Seminfo, m.Seminfo)
	}
	if m.Rep != gold.Rep {
		t.Errorf("Rep Error: expected %s but got %s", gold.Rep, m.Rep)
	}
	if !reflect.DeepEqual(m.Doukeis, gold.Doukeis) {
		t.Errorf("Doukeis Error: expected %v but got %v", gold.Doukeis, m.Doukeis)
	}
	if !reflect.DeepEqual(m.Features, gold.Features) {
		t.Errorf("Features Error: expected %v but got %v", gold.Features, m.Features)
	}
}

func TestMorpheme(t *testing.T) {
	tests := []struct {
		line string
		gold Morpheme
	}{
		{
			line: "探して さがして 探す 動詞 2 * 0 子音動詞サ行 5 タ系連用テ形 14 \"代表表記:探す/さがす\"",
			gold: Morpheme{
				Surface:       "探して",
				Pronunciation: "さがして",
				RootForm:      "探す",
				Pos0:          "動詞",
				Pos0ID:        2,
				Pos1:          "*",
				Pos1ID:        0,
				CType:         "子音動詞サ行",
				CTypeID:       5,
				CForm:         "タ系連用テ形",
				CFormID:       14,
				Seminfo:       "代表表記:探す/さがす",
				Rep:           "探す/さがす",
			},
		},
		{
			line: `を を を 助詞 9 格助詞 1 * 0 * 0 NIL <かな漢字><ひらがな><付属>`,
			gold: Morpheme{
				Surface:       "を",
				Pronunciation: "を",
				RootForm:      "を",
				Pos0:          "助詞",
				Pos0ID:        9,
				Pos1:          "格助詞",
				Pos1ID:        1,
				CType:         "*",
				CTypeID:       0,
				CForm:         "*",
				CFormID:       0,
				Seminfo:       "",
				Rep:           "を/を",
				Features:      Features{"かな漢字": "", "ひらがな": "", "付属": ""},
			},
		},
		{ // KNP style
			line: "構文 こうぶん 構文 名詞 6 普通名詞 1 * 0 * 0 \"代表表記:構文/こうぶん カテゴリ:抽象物\" " + sampleFeature,
			gold: Morpheme{
				Surface:       "構文",
				Pronunciation: "こうぶん",
				RootForm:      "構文",
				Pos0:          "名詞",
				Pos0ID:        6,
				Pos1:          "普通名詞",
				Pos1ID:        1,
				CType:         "*",
				CTypeID:       0,
				CForm:         "*",
				CFormID:       0,
				Seminfo:       "代表表記:構文/こうぶん カテゴリ:抽象物",
				Rep:           "構文/こうぶん",
				Features:      Features{`代表表記`: `構文/こうぶん`, `カテゴリ`: `抽象物`, `正規化代表表記`: `構文/こうぶん`, `漢字`: ``},
			},
		},
		{ // blank in JUMAN
			line: `  \  \  特殊 1 空白 6 * 0 * 0 NIL`,
			gold: Morpheme{
				Surface:       " ",
				Pronunciation: " ",
				RootForm:      " ",
				Pos0:          "特殊",
				Pos0ID:        1,
				Pos1:          "空白",
				Pos1ID:        6,
				CType:         "*",
				CTypeID:       0,
				CForm:         "*",
				CFormID:       0,
				Rep:           " / ",
			},
		},
		{ // blank in JUMAN++
			line: `\  \  \  特殊 1 空白 6 * 0 * 0 "代表表記: / "`,
			gold: Morpheme{
				Surface:       " ",
				Pronunciation: " ",
				RootForm:      " ",
				Pos0:          "特殊",
				Pos0ID:        1,
				Pos1:          "空白",
				Pos1ID:        6,
				CType:         "*",
				CTypeID:       0,
				CForm:         "*",
				CFormID:       0,
				Seminfo:       "代表表記: / ",
				Rep:           "",
			},
		},
		{ // morpheme with blank in JUMAN++
			line: `\ X \ X \ X 未定義語 15 その他 1 * 0 * 0 "品詞推定:名詞"`,
			gold: Morpheme{
				Surface:       " X",
				Pronunciation: " X",
				RootForm:      " X",
				Pos0:          "未定義語",
				Pos0ID:        15,
				Pos1:          "その他",
				Pos1ID:        1,
				CType:         "*",
				CTypeID:       0,
				CForm:         "*",
				CFormID:       0,
				Rep:           " X/ X",
				Seminfo:       `品詞推定:名詞`,
			},
		},
	}

	for _, test := range tests {
		m, err := NewMorpheme(test.line)
		if err != nil {
			t.Fatal(err)
		}
		checkMrph(t, m, &test.gold)
	}
}

repository: shirayu/go-jk

repo_name: shirayu/go-jk

extension: go