<commit_before>/* realtime.c */

/*  
    Fetch GTFS-RT updates over Websockets
    Depends on https://github.com/warmcat/libwebsockets
    compile with -lwebsockets -lprotobuf-c
    
    protoc-c --c_out . protobuf/gtfs-realtime.proto    
    clang -O2 -c gtfs-realtime.pb-c.c -o gtfs-realtime.pb-c.o
    clang -O2 realtime.c gtfs-realtime.pb-c.o -o rrrrealtime -lwebsockets -lprotobuf-c

*/

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdint.h>
#include <stdbool.h>
#include <getopt.h>
#include <string.h>
#include <signal.h>

#include <libwebsockets.h>
#include "gtfs-realtime.pb-c.h"

#include <GL/gl.h>
#include "SDL.h"
#include "wgs84.h"
#include <libshp/shapefil.h>

/* screen width, height, and bit depth */
#define SCREEN_WIDTH  1040
#define SCREEN_HEIGHT 480
#define SCREEN_BPP     16

/* Define our booleans */
#define TRUE  1
#define FALSE 0

SHPHandle hSHP = NULL;

#define ID_LENGTH 32

struct vehicle {
    GLfloat x1, y1;
    GLfloat x2, y2;
    char id[ID_LENGTH];
    int32_t delay;<commit_msg>look for libshp headers in default install location<commit_after>/* realtime.c */

/*  
    Fetch GTFS-RT updates over Websockets
    Depends on https://github.com/warmcat/libwebsockets
    compile with -lwebsockets -lprotobuf-c
    
    protoc-c --c_out . protobuf/gtfs-realtime.proto    
    clang -O2 -c gtfs-realtime.pb-c.c -o gtfs-realtime.pb-c.o
    clang -O2 realtime.c gtfs-realtime.pb-c.o -o rrrrealtime -lwebsockets -lprotobuf-c

*/

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdint.h>
#include <stdbool.h>
#include <getopt.h>
#include <string.h>
#include <signal.h>

#include <libwebsockets.h>
#include "gtfs-realtime.pb-c.h"

#include <GL/gl.h>
#include "SDL.h"
#include "wgs84.h"
#include <shapefil.h>

/* screen width, height, and bit depth */
#define SCREEN_WIDTH  1040
#define SCREEN_HEIGHT 480
#define SCREEN_BPP     16

/* Define our booleans */
#define TRUE  1
#define FALSE 0

SHPHandle hSHP = NULL;

#define ID_LENGTH 32

struct vehicle {
    GLfloat x1, y1;
    GLfloat x2, y2;
    char id[ID_LENGTH];
    int32_t delay;
{'fraction_non_alphanumeric': 0.1305173232083531, 'fraction_numerical': 0.021831988609397248, 'mean_word_length': 3.293279022403259, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '7436415', 'n_tokens_mistral': 900, 'n_tokens_neox': 854, 'n_words': 208}