repo
stringlengths
1
152
file
stringlengths
14
221
code
stringlengths
501
25k
file_length
int64
501
25k
avg_line_length
float64
20
99.5
max_line_length
int64
21
134
extension_type
stringclasses
2 values
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/1.5.riceRLE/src/utils/sort_alg.c
#include "sort_alg.h" /** sorting a uint-vector ascending, (O(n^2)) but valid as n<< **/ int simplesortAsc(tsort *V, uint n) { register uint i,j; register uint min,tmp; for (i=0; i< n-1;i++) { min =i; for (j=i+1;j<n;j++) { if ( V[min].key > V[j].key ) min = j; } tmp =V[i].key; V[i].key=V[min].key; ...
1,777
21.506329
69
c
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/1.5.riceRLE/src/ilists/ilerrors.c
/*//////////////// //Error handling// ////////////////*/ /* char *error_il(int e){ switch(e) { case 0: return "No error"; break; case 1: return "Out of memory"; break; case 30: return "Error reading source posting lists";break; case 31: return "Empty Source list or incomplete !!";break; case 40: retu...
2,558
38.369231
83
c
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/1.5.riceRLE/src/ilists/bc.h
/* ##uncomment one of the following lines##... choosing how g_parameter is computed for each list */ #define REGULAR_GOLOMB_RICE_TYPE //#define WWW2009_GOLOMB_RICE_TYPE /* ##uncoment one of the following options. */ /** Table indexed by "unsigned char" **/ #define GOL_TYPE (unsigned char) #define GOL_TYPE_BY...
10,004
27.423295
101
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/1.5.riceRLE/src/ilists/ildatatypes.h
#ifndef DATA_TYPES_IL_INCLUDED #define DATA_TYPES_IL_INCLUDED typedef struct{ int (*defaultFsearch) (void *ail, uint id, uint value); int (*defaultIntersect2) (void *ail, uint id1, uint id2, uint *noccs, uint **occs ); int (*defaultIntersectN) (void *ail, uint *ids, uint nids, uint *noccs, uint **occs ); ...
1,879
33.181818
103
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/1.5.riceRLE/src/ilists/notused/ii.h
/** **********************************************************************/ /** Saving/Loading the index to/from disk **/ /** **********************************************************************/ // // * loads the compressed text (ETDC) into memory // int loadTextInMem (byte **text, u...
2,971
40.859155
98
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/1.4Golomb_bitmap_NoSampling[Log_enabled]/linker/search_il - copia.c
/* * Run Queries */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include "interface.h" /* only for getTime() */ #include <sys/time.h> #include <sys/resource.h> #define EXTRACT ('E') #define EXTRACTNOMALLOC ('e') #define INTERSECT2 ('I') #define INTERSECTN ('N') #define VERBOS...
17,072
25.306626
118
c
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/1.4Golomb_bitmap_NoSampling[Log_enabled]/linker/interface.h
/**********************************************************************************/ /* General interface for using compressed representations of posting lists * /* Any alternative representation must implement all these functions * /****************************************************************...
4,018
31.674797
84
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/1.4Golomb_bitmap_NoSampling[Log_enabled]/linker/build_il.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "interface.h" /* only for getTime() */ #include <sys/time.h> #include <sys/resource.h> /* macro to detect and notify errors */ #define IFERRORIL(error) {{if (error) { fprintf(stderr, "%s\n", error_il(error)); exit(1); }}} int read_file(char *f...
3,503
24.391304
98
c
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/1.4Golomb_bitmap_NoSampling[Log_enabled]/src/ilspire07gol.h
/* only for getTime() */ #include <sys/time.h> #include <sys/resource.h> #include "utils/basics.h" #include "utils/sort_alg.h" //#include "utils/fileInfo.h" #include "ilists/ildefconfig.h" #include "ilists/bc.h" #include "ilists/ildatatypes.h" #include "ilists/ilerrors.c" #define FILLERUINT 0000 #define DOCid_ADD...
6,722
36.35
105
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/1.4Golomb_bitmap_NoSampling[Log_enabled]/src/interface.h
/**********************************************************************************/ /* General interface for using compressed representations of posting lists * /* Any alternative representation must implement all these functions * /****************************************************************...
4,023
31.715447
84
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/1.4Golomb_bitmap_NoSampling[Log_enabled]/src/utils/bitrankw32int.h
/* bitarray.h Copyright (C) 2005, Rodrigo Gonzalez, all rights reserved. New RANK, SELECT, SELECT-NEXT and SPARSE RANK implementations. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foun...
2,030
28.867647
88
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/1.4Golomb_bitmap_NoSampling[Log_enabled]/src/utils/basics.h
// Basics #ifndef BASICSINCLUDED #define BASICSINCLUDED // Includes #include <sys/types.h> #include <stdio.h> #include <fcntl.h> #include <stdlib.h> #include <sys/stat.h> #include <sys/times.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <stdarg.h> // Memory management /* #define ...
2,997
22.793651
86
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/1.4Golomb_bitmap_NoSampling[Log_enabled]/src/utils/sort_alg.c
#include "sort_alg.h" /** sorting a uint-vector ascending, (O(n^2)) but valid as n<< **/ int simplesortAsc(tsort *V, uint n) { register int i,j; register uint min,tmp; for (i=0; i< n-1;i++) { min =i; for (j=i+1;j<n;j++) { if ( V[min].key > V[j].key ) min = j; } tmp =V[i].key; V[i].key =V[min].key; V...
1,879
23.102564
69
c
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/1.4Golomb_bitmap_NoSampling[Log_enabled]/src/utils/basics.c
// Basics // #include "basics.h" included later to avoid macro recursion for malloc #include <sys/types.h> #include <stdio.h> #include <stdlib.h> /* // Memory management void *Malloc (size_t n) { void *p; if (n == 0) return NULL; p = (void*) malloc (n); if (p == NULL) { fprint...
3,459
20.097561
81
c
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/1.4Golomb_bitmap_NoSampling[Log_enabled]/src/ilists/ilerrors.c
/*//////////////// //Error handling// ////////////////*/ /* char *error_il(int e){ switch(e) { case 0: return "No error"; break; case 1: return "Out of memory"; break; case 30: return "Error reading source posting lists";break; case 31: return "Empty Source list or incomplete !!";break; case 40: retu...
2,558
38.369231
83
c
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/1.4Golomb_bitmap_NoSampling[Log_enabled]/src/ilists/bc.h
/* ##uncomment one of the following lines##... choosing how g_parameter is computed for each list */ #define REGULAR_GOLOMB_RICE_TYPE //#define WWW2009_GOLOMB_RICE_TYPE /* ##uncomment the following line if needed##... using golomb_decoding_tables or not */ #define USE_DECODING_TABLES /* ##uncoment one of the fo...
18,593
31.793651
121
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/1.4Golomb_bitmap_NoSampling[Log_enabled]/src/ilists/ildatatypes.h
#ifndef DATA_TYPES_IL_INCLUDED #define DATA_TYPES_IL_INCLUDED typedef struct{ int (*defaultFsearch) (void *ail, uint id, uint value); int (*defaultIntersect2) (void *ail, uint id1, uint id2, uint *noccs, uint **occs ); int (*defaultIntersectN) (void *ail, uint *ids, uint nids, uint *noccs, uint **occs ); ...
1,872
33.054545
101
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/1.4Golomb_bitmap_NoSampling[Log_enabled]/src/ilists/notused/ii.h
/** **********************************************************************/ /** Saving/Loading the index to/from disk **/ /** **********************************************************************/ // // * loads the compressed text (ETDC) into memory // int loadTextInMem (byte **text, u...
2,971
40.859155
98
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/2.1vbyte_bitmap_NoSampling[Log_enabled]/linker/interface.h
/**********************************************************************************/ /* General interface for using compressed representations of posting lists * /* Any alternative representation must implement all these functions * /****************************************************************...
4,018
31.674797
84
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/2.1vbyte_bitmap_NoSampling[Log_enabled]/linker/build_il.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "interface.h" /* only for getTime() */ #include <sys/time.h> #include <sys/resource.h> /* macro to detect and notify errors */ #define IFERRORIL(error) {{if (error) { fprintf(stderr, "%s\n", error_il(error)); exit(1); }}} int read_file(char *f...
3,503
24.391304
98
c
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/2.1vbyte_bitmap_NoSampling[Log_enabled]/src/interface.h
/**********************************************************************************/ /* General interface for using compressed representations of posting lists * /* Any alternative representation must implement all these functions * /****************************************************************...
4,023
31.715447
84
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/2.1vbyte_bitmap_NoSampling[Log_enabled]/src/ilspire07.h
/* only for getTime() */ #include <sys/time.h> #include <sys/resource.h> #include "utils/basics.h" #include "utils/sort_alg.h" //#include "utils/fileInfo.h" #include "ilists/ildefconfig.h" #include "ilists/bc.h" #include "ilists/ildatatypes.h" #include "ilists/ilerrors.c" #define DOCid_ADD 1 /* *******************...
6,121
36.329268
88
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/2.1vbyte_bitmap_NoSampling[Log_enabled]/src/utils/bitrankw32int.h
/* bitarray.h Copyright (C) 2005, Rodrigo Gonzalez, all rights reserved. New RANK, SELECT, SELECT-NEXT and SPARSE RANK implementations. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foun...
2,030
28.867647
88
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/2.1vbyte_bitmap_NoSampling[Log_enabled]/src/utils/basics.h
// Basics #ifndef BASICSINCLUDED #define BASICSINCLUDED // Includes #include <sys/types.h> #include <stdio.h> #include <fcntl.h> #include <stdlib.h> #include <sys/stat.h> #include <sys/times.h> #include <unistd.h> #include <errno.h> #include <string.h> // Memory management #define malloc(n) Malloc(n) #defi...
2,571
21.964286
61
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/2.1vbyte_bitmap_NoSampling[Log_enabled]/src/utils/sort_alg.c
#include "sort_alg.h" /** sorting a uint-vector ascending, (O(n^2)) but valid as n<< **/ int simplesortAsc(tsort *V, uint n) { register int i,j; register uint min,tmp; for (i=0; i< n-1;i++) { min =i; for (j=i+1;j<n;j++) { if ( V[min].key > V[j].key ) min = j; } tmp =V[i].key; V[i].key=V[min].key; V...
1,741
21.921053
69
c
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/2.1vbyte_bitmap_NoSampling[Log_enabled]/src/ilists/ilerrors.c
/*//////////////// //Error handling// ////////////////*/ /* char *error_il(int e){ switch(e) { case 0: return "No error"; break; case 1: return "Out of memory"; break; case 30: return "Error reading source posting lists";break; case 31: return "Empty Source list or incomplete !!";break; case 40: retu...
2,558
38.369231
83
c
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/2.1vbyte_bitmap_NoSampling[Log_enabled]/src/ilists/bc.h
#define OFFSET_LOWEST_VALUE (1) //#define OFFSET_LOWEST_VALUE (1) //AS "ZERO" IS NEVER ENCODED... value OFFSET_LOWEST_VALUE will //will be encoded as "0"... OFFSET_LOWEST_VALUE +1 as "1", etc. //const unsigned long TABLABASE[5] = {0,128,16512,2113664,270549120}; ////decoding for ETDC //uint decode ...
3,054
31.849462
106
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/2.1vbyte_bitmap_NoSampling[Log_enabled]/src/ilists/ildatatypes.h
#ifndef DATA_TYPES_IL_INCLUDED #define DATA_TYPES_IL_INCLUDED typedef struct{ int (*defaultFsearch) (void *ail, uint id, uint value); int (*defaultIntersect2) (void *ail, uint id1, uint id2, uint *noccs, uint **occs ); int (*defaultIntersectN) (void *ail, uint *ids, uint nids, uint *noccs, uint **occs ); ...
1,581
33.391304
101
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/9.qmx.bis/linker/interface.h
/**********************************************************************************/ /* General interface for using compressed representations of posting lists */ /* Any alternative representation must implement all these functions */ /**************************************************************...
4,020
31.691057
84
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/9.qmx.bis/linker/build_il.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "interface.h" /* only for getTime() */ #include <sys/time.h> #include <sys/resource.h> /* macro to detect and notify errors */ #define IFERRORIL(error) {{if (error) { fprintf(stderr, "%s\n", error_il(error)); exit(1); }}} int read_file(char *f...
3,517
24.492754
109
c
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/9.qmx.bis/src/interface.h
/**********************************************************************************/ /* General interface for using compressed representations of posting lists * /* Any alternative representation must implement all these functions * /****************************************************************...
4,023
31.715447
84
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/9.qmx.bis/src/utils/bitrankw32int.h
/* bitarray.h Copyright (C) 2005, Rodrigo Gonzalez, all rights reserved. New RANK, SELECT, SELECT-NEXT and SPARSE RANK implementations. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foun...
2,030
28.867647
88
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/9.qmx.bis/src/utils/basics.h
// Basics #ifndef BASICSINCLUDED #define BASICSINCLUDED // Includes #include <sys/types.h> #include <stdio.h> #include <fcntl.h> #include <stdlib.h> #include <sys/stat.h> #include <sys/times.h> #include <unistd.h> #include <errno.h> #include <string.h> // Memory management #define malloc(n) Malloc(n) #defi...
2,575
22
61
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/9.qmx.bis/src/utils/sort_alg.c
#include "sort_alg.h" /** sorting a uint-vector ascending, (O(n^2)) but valid as n<< **/ int simplesortAsc(tsort *V, uint n) { register uint i,j; register uint min,tmp; for (i=0; i< n-1;i++) { min =i; for (j=i+1;j<n;j++) { if ( V[min].key > V[j].key ) min = j; } tmp =V[i].key; V[i].key=V[min].key; ...
1,777
21.506329
69
c
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/9.qmx.bis/src/ilists/qmx_coding.h
//PforDelta. //Interface by Antonio Fariña (University of A Coruña) in May 2011. //Cannot compress gaps >= 2^28! (due to S16-limitations). #ifndef QMX_CODING_H_ #define QMX_CODING_H_ #define QMX_BS2 (512*4) #include <stdio.h> //public: /** compresses the "size" uints in "input". * the encoded secuence is set ...
1,148
36.064516
104
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/9.qmx.bis/src/ilists/qmx_coding.c
//PforDelta. //Interface by Antonio Fariña (University of A Coruña) in May 2011. //Cannot compress gaps >= 2^28! (due to S16-limitations). #include "qmx_coding.h" #include "compress_qmx.c" /* compresses size integers from $input$. * stores the compressed data in $output$ and returns its size (as numb of uints) * N...
1,371
28.191489
88
c
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/9.qmx.bis/src/ilists/ilerrors.c
/*//////////////// //Error handling// ////////////////*/ /* char *error_il(int e){ switch(e) { case 0: return "No error"; break; case 1: return "Out of memory"; break; case 30: return "Error reading source posting lists";break; case 31: return "Empty Source list or incomplete !!";break; case 40: retu...
2,558
38.369231
83
c
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/9.qmx.bis/src/ilists/bc.h
#define OFFSET_LOWEST_VALUE (0) //#define OFFSET_LOWEST_VALUE (1) //AS "ZERO" IS NEVER ENCODED... value OFFSET_LOWEST_VALUE will //will be encoded as "0"... OFFSET_LOWEST_VALUE +1 as "1", etc. //const unsigned long TABLABASE[5] = {0,128,16512,2113664,270549120}; ////decoding for ETDC //uint decode ...
3,054
31.849462
106
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/ilists.imp/9.qmx.bis/src/ilists/ildatatypes.h
#ifndef DATA_TYPES_IL_INCLUDED #define DATA_TYPES_IL_INCLUDED typedef struct{ //int (*defaultFsearch) (void *ail, uint id, uint value); int (*defaultIntersect2) (void *ail, uint id1, uint id2, uint *noccs, uint **occs ); int (*defaultIntersectN) (void *ail, uint *ids, uint nids, uint *noccs, uint **occs )...
2,059
36.454545
117
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/interfazTextCompressorDocs.h
/***************************************************************************/ /** Creates a compressed representation of a collection of text documents **/ /***************************************************************************/ /* Creates the [compressed] representation of a collection of text documents who...
2,009
39.2
102
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/buildFacade.h
/* only for getTime() */ #include <sys/time.h> #include <sys/resource.h> #include <time.h> #include "utils/basics.h" //#include "utils/errors.c" #include "interface_il.h" #include "utils/valstring.h" #include "utils/defValues.h" #include "utils/fileInfo.h" #include "utils/hashWords.h" #include "utils/horspool.h" #...
9,155
36.991701
121
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/interface_il.h
#define IFERRORIL(error) {{if (error) { fprintf(stderr, "%s\n", error_il(error)); exit(1); }}} /**********************************************************************************/ /* General interface for using compressed representations of posting lists */ /* Any alternative representation must i...
3,977
33
94
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/interface.h
/* General interface for using the compressed index libraries */ #ifndef uchar #define uchar unsigned char #endif #ifndef uint #define uint unsigned int #endif #ifndef ulong #define ulong unsigned long #endif /* Error management */ /* Returns a string describing the error associated with error number ...
5,116
41.641667
121
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextREPAIR64bit/RePairDocCompressor.h
/* RePair.h * Copyright (C) 2010, Rodrigo Canovas & Miguel A. Martinez-Prieto * all rights reserved. * * RePair for repetitive text collections * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Softwa...
2,282
29.851351
120
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextREPAIR64bit/interfazTextCompressorDocs.h
#include "RePairDocCompressor.h" /***************************************************************************/ /** Creates a compressed representation of a collection of text documents **/ /***************************************************************************/ /* Creates the [compressed] representation of a c...
2,043
38.307692
102
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextREPAIR64bit/RePair/heap.h
/* Repair -- an implementation of Larsson and Moffat's compression and decompression algorithms. Copyright (C) 2010-current_year Gonzalo Navarro This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; eith...
2,927
30.483871
76
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextREPAIR64bit/RePair/arrayg.h
/* Repair -- an implementation of Larsson and Moffat's compression and decompression algorithms. Copyright (C) 2010-current_year Gonzalo Navarro This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; eithe...
1,667
27.271186
75
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextREPAIR64bit/RePair/IRePair.h
/* Repair -- an implementation of Larsson and Moffat's compression and decompression algorithms. Copyright (C) 2010-current_year Gonzalo Navarro This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; eithe...
2,254
25.529412
119
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextREPAIR64bit/RePair/basics.h
/* Repair -- an implementation of Larsson and Moffat's compression and decompression algorithms. Copyright (C) 2010-current_year Gonzalo Navarro This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; eith...
1,303
27.977778
75
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextREPAIR64bit/RePair/dictionary.h
/* Repair -- an implementation of Larsson and Moffat's compression and decompression algorithms. Copyright (C) 2010-current_year Gonzalo Navarro This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; eith...
1,669
26.833333
75
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextREPAIR64bit/RePair/records.h
/* Repair -- an implementation of Larsson and Moffat's compression and decompression algorithms. Copyright (C) 2010-current_year Gonzalo Navarro This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; eith...
2,331
27.439024
78
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextREPAIR64bit/RePair/hash.h
/* Repair -- an implementation of Larsson and Moffat's compression and decompression algorithms. Copyright (C) 2010-current_year Gonzalo Navarro This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; eith...
2,067
28.126761
75
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextREPAIR64bit/utils/cppUtils.h
#ifndef _CPPUTILS #define _CPPUTILS #include "libcdsBasics.h" #include "cppUtils.h" namespace cds_utils { uint transform(const string & s); template <typename T> void saveValue(ofstream & out, const T val) { assert(out.good()); out.write((char*)&val,sizeof(T)); } template <typename...
1,227
22.615385
91
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextREPAIR64bit/utils/Array.h
/* array.h * Copyright (C) 2009, Francisco Claude, all rights reserved. * * Array interface * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, ...
5,817
31.870056
102
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextREPAIR64bit/utils/libcdsBasics.h
/* basics.h * Copyright (C) 2005, Rodrigo Gonzalez, all rights reserved. * * Some preliminary stuff * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the L...
8,639
36.402597
103
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextREPAIR64bit.fari.nocompress/compressor.h
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <string.h> #include "interfazTextCompressorDocs.h" #define COMPRESSED_REPRESENTATION_EXT_FILE "compRepresentation" typedef struct { unsigned int *docBeginnings; unsigned int numdocs;...
2,416
32.109589
102
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextREPAIR64bit.fari.nocompress/compressor.c
#include "compressor.h" /***************************************************************************/ /** Creates a compressed representation of a collection of text documents **/ /***************************************************************************/ /* Creates the [compressed] representation of a collection ...
4,656
33.753731
103
c
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextREPAIR64bit.fari.nocompress/bitrankw32int.h
/* bitarray.h Copyright (C) 2005, Rodrigo Gonzalez, all rights reserved. New RANK, SELECT, SELECT-NEXT and SPARSE RANK implementations. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foun...
2,028
29.283582
88
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextREPAIR64bit.fari.nocompress/RepairPost.h
#ifndef REPAIRDECOMPRESSOR #define REPAIRDECOMPRESSOR #include <iostream> #include <cassert> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "bitrankw32int.h" #include "basic.h" using namespace std; class RepairPost { public: unsigned char *text; unsigned long textSize; unsigned long b...
1,529
21.173913
89
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextREPAIR64bit.fari.nocompress/interfazTextCompressorDocs.h
/***************************************************************************/ /** Creates a compressed representation of a collection of text documents **/ /***************************************************************************/ /* Creates the [compressed] representation of a collection of text documents who...
2,009
39.2
102
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextPlain64bit/compressor.h
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <string.h> #include "interfazTextCompressorDocs.h" #define COMPRESSED_REPRESENTATION_EXT_FILE "compRepresentation" typedef struct { unsigned int *docBeginnings; unsigned int numdocs;...
2,416
32.109589
102
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextPlain64bit/compressor.c
#include "compressor.h" /***************************************************************************/ /** Creates a compressed representation of a collection of text documents **/ /***************************************************************************/ /* Creates the [compressed] representation of a collection ...
5,847
33.19883
103
c
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextPlain64bit/bitrankw32int.h
/* bitarray.h Copyright (C) 2005, Rodrigo Gonzalez, all rights reserved. New RANK, SELECT, SELECT-NEXT and SPARSE RANK implementations. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foun...
2,028
29.283582
88
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextPlain64bit/RepairPost.h
#ifndef REPAIRDECOMPRESSOR #define REPAIRDECOMPRESSOR #include <iostream> #include <cassert> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "bitrankw32int.h" #include "basic.h" using namespace std; class RepairPost { public: unsigned char *text; unsigned long textSize; unsigned long b...
1,529
21.173913
89
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextPlain64bit/interfazTextCompressorDocs.h
/***************************************************************************/ /** Creates a compressed representation of a collection of text documents **/ /***************************************************************************/ /* Creates the [compressed] representation of a collection of text documents who...
2,009
39.2
102
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextNull64bit/compressor.h
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <string.h> #include "interfazTextCompressorDocs.h" typedef struct { unsigned int length; } trep; /***************************************************************************/ /** C...
2,277
32.014493
102
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextNull64bit/compressor.c
#include "compressor.h" /***************************************************************************/ /** Creates a compressed representation of a collection of text documents **/ /***************************************************************************/ /* Creates the [compressed] representation of a collection ...
2,541
28.905882
103
c
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextNull64bit/interfazTextCompressorDocs.h
/***************************************************************************/ /** Creates a compressed representation of a collection of text documents **/ /***************************************************************************/ /* Creates the [compressed] representation of a collection of text documents who...
2,009
39.2
102
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/utils.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "utils.h" /*construction sa*/ /*#include "interface.h"*/ #include "divsufsort.h" #include "lfs.h" #include <sys/time.h> #include <time.h> struct timeval tv1,tv2; void startTime(){ gettimeofday(&tv1,NULL); } unsigned long end...
10,336
29.402941
111
c
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/treelist.c
#include <stdlib.h> #include <stdio.h> #include "treelist.h" TreeList* newTreeList(){ TreeList* l; l = (TreeList*)malloc(sizeof(TreeList)); if(l){ l->prev=NULL; l->next=NULL; l->left=NULL; l->right=NULL; l->val=-1; } return l; } TreeList* findValue(TreeList* l,int val){ ...
2,390
20.93578
71
c
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/compressor.h
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <string.h> #include "interfazTextCompressorDocs.h" #define DELTA_SAMPLING (16) typedef struct{ void* extractor; void* doc_array; unsigned int docs; } lzdoc; /*************...
2,346
32.528571
102
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/static_bitsequence_builder_brw32.h
/* static_bitsequence_builder_brw32.h * Copyright (C) 2008, Francisco Claude, all rights reserved. * * static_bitsequence_builder_brw32 definition * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Soft...
1,499
35.585366
77
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/lfs.h
/* * lfs.h for libdivsufsort * Copyright (c) 2003-2008 Yuta Mori All Rights Reserved. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitat...
1,689
28.649123
68
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/static_bitsequence_brw32.h
/* static_bitsequence_brw32.h Copyright (C) 2005, Rodrigo Gonzalez, all rights reserved. New RANK, SELECT, SELECT-NEXT and SPARSE RANK implementations. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Fr...
2,716
33.392405
88
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/extractor77.h
#ifndef __EXTRACTOR77_H__ #define __EXTRACTOR77_H__ #include "extractor.h" class Extractor77: public Extractor{ public: Extractor77(char* filename, unsigned int sampling); ~Extractor77(); virtual unsigned char* extract(unsigned int start, unsigned int end); protected: void char...
577
33
131
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/LZend.nuevo.h
#ifndef __LZEND2_H__ #define __LZEND2_H__ #include "LZ77.h" #include "RMQ.h" #include "static_permutation.h" class LZEnd2: public LZparser{ public: LZEnd2(char* filename); virtual ~LZEnd2(); /* generates the LZ parsing of filename and returns the number of phrases * creates 3 diff...
1,490
32.886364
106
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/RMQ_succinct.h
#ifndef _RMQ_succinct_hpp_ #define _RMQ_succinct_hpp_ //#define MEM_COUNT #include <math.h> typedef int DT; // use long for 64bit-version (but take care of fast log!) typedef unsigned int DTidx; // for indexing in arrays #include <stdlib.h> #include <limits.h> #include <iostream> using namespace...
2,405
21.277778
90
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/utils.h
#ifndef __UTILS_H__ #define __UTILS_H__ void startTime(); unsigned long endTime(); unsigned long endTime2(); unsigned char* readText(char* filename,unsigned int* length); int saveText(unsigned char* text,int length,char* filename); unsigned int* invertSA(unsigned int* sa,int len); unsigned int* readArray(char* filenam...
796
40.947368
90
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/interfazTextCompressorDocs.h
/***************************************************************************/ /** Creates a compressed representation of a collection of text documents **/ /***************************************************************************/ /* Creates the [compressed] representation of a collection of text documents who...
2,009
39.2
102
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/deltacodes.h
class DeltaCodes{ public: DeltaCodes(unsigned int* array, unsigned int n, unsigned int sampling); virtual ~DeltaCodes(); unsigned int select(unsigned int total); unsigned int rank(unsigned int pos); unsigned int access(unsigned int pos); unsigned int rank_select(unsig...
810
37.619048
88
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/perm.h
/* perm.h * Copyright (C) 2005, Diego Arroyuelo, all rights reserved. * * Permutation * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at...
2,191
23.629213
93
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/static_permutation_mrrr.h
/* static_permutation_mrrr.h * Copyright (C) 2008, Francisco Claude, all rights reserved. * * Permutation * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of...
1,826
34.134615
97
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/LZend (copia).h
#ifndef __LZend_H__ #define __LZend_H__ #include "LZ77.h" #include "RMQ.h" class LZend: public LZparser{ public: LZend(char* filename); virtual ~LZend(); /* generates the LZ parsing of filename and returns the number of phrases * creates 3 different files (arrays): * f...
1,080
29.027778
94
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/extractor.h
#ifndef __EXTRACTOR_H__ #define __EXTRACTOR_H__ //#include "basics.h" //#include "bitmap.h" #include "deltacodes.h" class Extractor{ public: Extractor(char* filename, unsigned int sampling);//sampling for deltacoding virtual ~Extractor(); virtual unsigned char* extract(unsigned int start, ...
836
26
83
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/static_bitsequence_builder.h
/* static_bitsequence_builder.h * Copyright (C) 2008, Francisco Claude, all rights reserved. * * static_bitsequence_builder definition * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundat...
1,401
36.891892
79
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/basics.h
/* basics.h * Copyright (C) 2005, Rodrigo Gonzalez, all rights reserved. * * Some preliminary stuff * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the L...
7,907
31.146341
97
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/static_bitsequence.h
/* static_bitsequence.h * Copyright (C) 2008, Francisco Claude, all rights reserved. * * static_bitsequence definition * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * v...
2,716
27.6
90
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/interface.h
#ifdef __cplusplus extern "C" { #endif /* General interface for using the compressed index libraries */ #ifndef uchar #define uchar unsigned char #endif #ifndef uint #define uint unsigned int #endif #ifndef ulong #define ulong unsigned long #endif /* Error management */ /* Returns a string describing the er...
3,639
34.339806
79
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/divsufsort.h
/* * divsufsort.h for libdivsufsort * Copyright (c) 2003-2008 Yuta Mori All Rights Reserved. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without ...
5,442
29.071823
88
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/static_permutation.h
/* static_permutation.h * Copyright (C) 2008, Francisco Claude, all rights reserved. * * Permutation * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the ...
1,599
31
77
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/LZparser.h
#ifndef __LZPARSER_H__ #define __LZPARSER_H__ #include <cstdio> class LZparser{ public: LZparser(char* filename); virtual ~LZparser(); /* generates the LZ parsing of filename and returns the number of phrases * creates 3 different files (arrays): * filename.start (4*le...
1,103
29.666667
103
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/LZ77_2.h
#ifndef __LZ77_2_H__ #define __LZ77_2_H__ #include "LZparser.h" #include "RMQ.h" class LZ77_2: public LZparser{ public: LZ77_2(char* filename); virtual ~LZ77_2(); /* generates the LZ parsing of filename and returns the number of phrases * creates 3 different files (arrays): ...
960
34.592593
107
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/LZend.h
#ifndef __LZend_H__ #define __LZend_H__ #include "LZ77.h" #include "RMQ.h" #include "static_permutation.h" class LZend: public LZparser{ public: LZend(char* filename); virtual ~LZend(); /* generates the LZ parsing of filename and returns the number of phrases * creates 3 different...
1,247
30.2
94
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/LZ77.h
#ifndef __LZ77_H__ #define __LZ77_H__ #include "LZparser.h" #include "RMQ.h" class LZ77: public LZparser{ public: LZ77(char* filename); virtual ~LZ77(); /* generates the LZ parsing of filename and returns the number of phrases * creates 3 different files (arrays): * fi...
950
34.222222
107
h
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/libdivsufsort-2.0.1/examples/mksary.c
/* * mksary.c for libdivsufsort * Copyright (c) 2003-2008 Yuta Mori All Rights Reserved. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limi...
5,309
26.371134
83
c
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/libdivsufsort-2.0.1/examples/unbwt.c
/* * unbwt.c for libdivsufsort * Copyright (c) 2003-2008 Yuta Mori All Rights Reserved. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limit...
5,667
26.25
79
c
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/libdivsufsort-2.0.1/examples/suftest.c
/* * suftest.c for libdivsufsort * Copyright (c) 2003-2008 Yuta Mori All Rights Reserved. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without lim...
4,506
26.315152
83
c
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/libdivsufsort-2.0.1/examples/sasearch.c
/* * sasearch.c for libdivsufsort * Copyright (c) 2003-2008 Yuta Mori All Rights Reserved. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without li...
4,424
25.656627
77
c
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/libdivsufsort-2.0.1/examples/bwt.c
/* * bwt.c for libdivsufsort * Copyright (c) 2003-2008 Yuta Mori All Rights Reserved. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitat...
6,248
27.276018
86
c
uiHRDC
uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/libdivsufsort-2.0.1/lib/utils.c
/* * utils.c for libdivsufsort * Copyright (c) 2003-2008 Yuta Mori All Rights Reserved. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limit...
9,862
24.819372
83
c