<commit_before># API

## Events

An event is one chronologically delimited total of sessions. Like a yearly conference.

### GET `/events`

```` javascript
[{
	"id": "rp14",
	"title": "re:publica 14",
	"slogan": "into the wild",
	"begin": "2014-05-06",
	"end": "2014-05-08",
	"locations": [{
		"label": "Station Berlin",
		"coords": [52.49814,13.374538] // lat, lon
	}],
	"url": "http://14.re-publica.de/"
},{
	"id": "rp13",
	"title": "re:publica 13",
	"slogan": "IN/SIDE/OUT",
	"begin": "2013-05-06",
	"end": "2013-05-08",
	"locations": [{
		"label": "Station Berlin",
		"coords": [52.49814,13.374538] // lat, lon
	}],
	"url": "http://13.re-publica.de/"
}]
````

### GET `/events/<event-id>`

*single object, as above*

## Sessions

### GET `/<event-id>/sessions`

```` javascript
[{
	"id": "rp14-session-1",
	"title": "Eröffnung",
	"abstract": "...",
	"description": "...",
	"url": "http://14.re-publica.de/session/1"
	"begin": "2014-05-06T10:00:00.0Z",
	"end": "2014-05-06T11:00:00.0Z",
	"duration": 45,
	"day": {
		"id": "rp14-day-1",
		"label_de": "6. Mai"
		"label_en": "6. May"
		"date": "2014-05-06"
	},
	"location": {
		"id": "rp14-location-stage-7",
		"label_de": "Stage 7",
		"label_en": "Stage 7"
	},
	"track": {
		"id": "media",
		"label_de": "Media",
		"label_en": "Media"
	},
	"format": {
		"id": "talk",
		"label_de": "Vortrag",
		"label_en": "Talk"
	},
	"level": {
		"id": "beginner",
		"label_de": "Beginner",
		"label_en": "Beginner"
	},
	"lang": {
		"id": "de",
		"label_de": "Deutsch",
		"label_en": "German"
	},
	"speakers": [
		{
        	"id": "rp13-speaker-81",
        	"name": "<NAME>"
        } //...
	],
	"last_modified": "2013-12-04T15:50:00.0Z"
}]
````

### GET `/<event-id>/sessions/<session-id>`

*single object, as above*

## Speakers

Speakers are people performing sessions.

### GET `/<event-id>/speakers`

```` javascript
[
	{
    	"id": "rp13-session-1",
    	"event": "rp13",
    	"type": "speaker",
    	"name": "<NAME>",
    	"photo": "http://13.re-publica.de/sites/13.re-publica.de/files/pictures/picture-48.png",
    	"organization": "Spreeblick",
    	"position": "",
    	"biography": "Born in Berlin in 1964, <NAME> founded the award-winning weblog Spreeblick in 2002. He is also a radio DJ and a member of post-punkrock band Plan B, which is touring again since 2012.....",
    	"sessions": [
    		{
            	"id": "rp13-session-5117",
            	"title": "Comic Misunderstanding – A conversation with <NAME> (IT Crowd)"
            },
            {
            	"id": "rp13-session-5866",
            	"title": "YouTube macht die Stars von heute"
            } //...
    	]
    } //...
]
````

### GET `/<event-id>/speakers/<id>`

*single object, as above*

## Tracks

Tracks are topic-based collections of sessions

### GET `/<event-id>/tracks`

```` javascript
[
	{
		"id": "research-education",
		"label_de": "Research & Education",
		"label_en": "Research & Education",
    	"sessions": [
    		{
        		"id": "rp13-session-1714",
        		"title": "Street fighting data science"
        	} //...
         ]
	},{
    	"id": "politics-society",
    	"label_de": "Politics & Society",
    	"label_en": "Politics & Society",
    	"sessions": [
			{
				"id": "rp13-session-1781",
				"title": "Algorithmen-Ethik"
			} //...
    	]
    } //...
]
````

### GET `/<event-id>/tracks/<track-id>`<commit_msg>updating doc<commit_after># API

## Events

An event is one chronologically delimited total of sessions. Like a yearly conference.

### GET `/events`

```` javascript
[{
	"id": "rp14",
	"title": "re:publica 14",
	"slogan": "into the wild",
	"begin": "2014-05-06",
	"end": "2014-05-08",
	"locations": [{
		"label": "Station Berlin",
		"coords": [52.49814,13.374538] // lat, lon
	}],
	"url": "http://14.re-publica.de/"
},{
	"id": "rp13",
	"title": "re:publica 13",
	"slogan": "IN/SIDE/OUT",
	"begin": "2013-05-06",
	"end": "2013-05-08",
	"locations": [{
		"label": "Station Berlin",
		"coords": [52.49814,13.374538] // lat, lon
	}],
	"url": "http://13.re-publica.de/"
}]
````

### GET `/events/<event-id>`

*single object, as above*

## Sessions

### GET `/<event-id>/sessions`

```` javascript
[{
	"id": "rp14-session-1",
	"title": "Eröffnung",
	"abstract": "...",
	"description": "...",
	"url": "http://14.re-publica.de/session/1"
	"begin": "2014-05-06T10:00:00.0Z",
	"end": "2014-05-06T11:00:00.0Z",
	"duration": 45,
	"day": {
		"id": "rp14-day-1",
		"label_de": "6. Mai"
		"label_en": "6. May"
		"date": "2014-05-06"
	},
	"location": {
		"id": "rp14-location-stage-7",
		"label_de": "Stage 7",
		"label_en": "Stage 7"
	},
	"track": {
		"id": "media",
		"label_de": "Medien",
		"label_en": "Media"
	},
	"format": {
		"id": "talk",
		"label_de": "Vortrag",
		"label_en": "Talk"
	},
	"level": {
		"id": "beginner",
		"label_de": "Beginner",
		"label_en": "Beginner"
	},
	"lang": {
		"id": "de",
		"label_de": "Deutsch",
		"label_en": "German"
	},
	"speakers": [
		{
        	"id": "rp13-speaker-81",
        	"name": "<NAME>"
        } //...
	],
	"last_modified": "2013-12-04T15:50:00.0Z"
}]
````

### GET `/<event-id>/sessions/<session-id>`

*single object, as above*

## Speakers

Speakers are people performing sessions.

### GET `/<event-id>/speakers`

```` javascript
[
	{
    	"id": "rp13-session-1",
    	"event": "rp13",
    	"type": "speaker",
    	"name": "<NAME>",
    	"photo": "http://13.re-publica.de/sites/13.re-publica.de/files/pictures/picture-48.png",
    	"organization": "Spreeblick",
    	"position": "",
    	"biography": "Born in Berlin in 1964, <NAME> founded the award-winning weblog Spreeblick in 2002. He is also a radio DJ and a member of post-punkrock band Plan B, which is touring again since 2012.....",
    	"sessions": [
    		{
            	"id": "rp13-session-5117",
            	"title": "Comic Misunderstanding – A conversation with <NAME> (IT Crowd)"
            },
            {
            	"id": "rp13-session-5866",
            	"title": "YouTube macht die Stars von heute"
            } //...
    	]
    } //...
]
````

### GET `/<event-id>/speakers/<id>`

*single object, as above*

## Tracks

Tracks are topic-based collections of sessions

### GET `/<event-id>/tracks`

```` javascript
[
	{
		"id": "research-education",
		"label_de": "Forschung & Bildung",
		"label_en": "Research & Education",
    	"sessions": [
    		{
        		"id": "rp13-session-1714",
        		"title": "Street fighting data science"
        	} //...
         ]
	},{
    	"id": "politics-society",
    	"label_de": "Politik & Gesellschaft",
    	"label_en": "Politics & Society",
    	"sessions": [
			{
				"id": "rp13-session-1781",
				"title": "Algorithmen-Ethik"
			} //...
    	]
    } //...
]
````

### GET `/<event-id>/tracks/<track-id>`
{'fraction_non_alphanumeric': 0.23807400802496656, 'fraction_numerical': 0.05825531282508545, 'mean_word_length': 2.7305986696230597, 'pattern_counts': {'":': 160, '<': 31, '<?xml version=': 0, '>': 31, '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': '589376', 'n_tokens_mistral': 3129, 'n_tokens_neox': 2749, 'n_words': 546}