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/src/compressorTextLZEND64bit/libdivsufsort-2.0.1/lib/sssort.c | /*
* sssort.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... | 24,117 | 28.556373 | 89 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/libdivsufsort-2.0.1/lib/trsort.c | /*
* trsort.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... | 17,794 | 29.315162 | 88 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/libdivsufsort-2.0.1/lib/divsufsort.c | /*
* divsufsort.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 ... | 11,728 | 28.39599 | 83 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/libdivsufsort-2.0.1/include/config.h | /* include/config.h. Generated from config.h.in by configure. */
/* include/config.h.in. Generated from configure.ac by autoheader. */
/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1
/* Define to 1 if you have the <fcntl.h> header file. */
#define HAVE_FCNTL_H 1
/* Define to 1 if ... | 3,745 | 26.955224 | 78 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/libdivsufsort-2.0.1/include/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/libdivsufsort-2.0.1/include/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/libdivsufsort-2.0.1/include/divsufsort_private.h | /*
* divsufsort_private.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 ... | 5,672 | 26.274038 | 75 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/sa/SAu.c | /* SAu.c
Copyright (C) 2005, Rodrigo Gonzalez, all rights reserved.
This file contains an implementation of Suffix Array in a uncompressed
form.
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 S... | 12,316 | 27.185355 | 130 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/sa/ds/helped.c | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
helped.c
these routines sort a group of strings which have a common prefix
using induced sorting (if possible) or a deep-sort routine
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */
#include <stdlib.h>
#include <string.h... | 21,838 | 38.137993 | 91 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/sa/ds/suftest2.c | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
suftest2.c
Written by G. Manzini using the suftest.c code
by N. Jesper Larsson (Copyright N. Jesper Larsson 1999)
Program to test a suffix sorting function. Reads a sequence of bytes from
a file and calls the deep/shallo... | 14,557 | 29.266112 | 79 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/sa/ds/shallow.c | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
shallow.c
This is the multikey quicksort from bentley-sedgewick modified
so that it stops recursion when depth reaches Shallow_limit
(that is when two or more suffixes have Shallow_limit chars in common).
>>>>>>>>>>>>>>>>>>>>>>>>>>>>... | 17,681 | 30.295575 | 80 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/sa/ds/blind2.c | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
string sorting routine based on a blind tree
26-jun-01 ver 1.0
03-jul-01 ver 1.1 (get rid of node header)
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "common.h"
/* ========... | 12,408 | 26.698661 | 78 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/sa/ds/lcp_aux.c | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
lcp_aux.c
Ver 1.0 28-apr-2004
Functions for lightweight computation of the LCP array.
Copyright (C) 2004 Giovanni Manzini (manzini@mfn.unipmn.it)
This program is free software; you can redistribute it and/or modify
it under the term... | 9,930 | 33.96831 | 77 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/sa/ds/deep2.c | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
deep.c
"deep" sorting routines
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include "common.h"
/* ------ external global variables ------- */
extern UChar *Text; ... | 6,736 | 26.72428 | 78 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/sa/ds/unbwt.c | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
unbwt.c
Ver 1.0 6-oct-02
compute the inverse bwt.
The input file must be in the following format:
(bwt) N bytes + (eof position, LSB first) 4 bytes
The procedure currently uses 5N bytes.
Copyright (C) 2002 Giovanni Manzini ... | 8,673 | 27.162338 | 79 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/sa/ds/ds.c | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
ds.c
deep-shallow sorting algorithm. these routines are taken mainly by
Seward's d_copyEQ_u12.c
Buckets are sorted one at a time; when bucket Y is completely sorted
(except for YY) "pointer copying" is used to sort small buckets of ... | 9,364 | 30.32107 | 81 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/sa/ds/testlcp.c | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
testlcp.c
Ver 1.0 9-dec-03
Ver 1.1 28-apr-04 (uses bwt_aux)
Ver 1.2 28-may-04 (uses lcp_aux)
Test algorithms for computing the lcp array.
Copyright (C) 2004 Giovanni Manzini (manzini@mfn.unipmn.it)
This program is fr... | 9,432 | 29.041401 | 79 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/sa/ds/bwt.c | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
bwt.c
Ver 1.0 14-oct-02
compute the bwt using the ds_ssort routines
The output file has the following format:
(bwt) N bytes + (eof position, LSB first) 4 bytes
Copyright (C) 2002 Giovanni Manzini (manzini@mfn.unipmn.it)
This ... | 7,068 | 29.339056 | 79 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/sa/ds/lcp_aux.h |
// prototypes of the lcp construction procedures defined in
// bwtlcp.a (source files lcp_aux.c lcp5_aux.c)
// before including this file you must first include bwt_aux.h
int *_lcp_sa2lcp_13n(uint8 *t, int n, int *sa);
int *_lcp_sa2lcp_9125n(uint8 *t, int n, int *sa);
int *_lcp_sa2lcp_9n(uint8 *t, int n, int *sa, int... | 512 | 35.642857 | 62 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/sa/ds/common.h | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
global defintion for the ds suffix-sort algorithm
Giovanni Manzini
2-apr 2001
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */
/* ----------- use assertion if DEBUG!=0 ------------- */
#ifndef DEBUG
#define DEBUG 1 /* set DEBUG to 0 to remove ... | 1,434 | 23.322034 | 76 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/sa/ds/globals.c | /* *******************************************************************
globals.c
Ver 1.0 14-oct-02
This file contains the definition of the global variables
which can be defined by the user + some relate procedures
******************************************************************* */
#include <stdio.... | 3,873 | 28.12782 | 80 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/sa/ds/bwt_aux.c | /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
bwt_aux.c
Ver 1.0 3-mar-2004
Functions for computing and transforming various representations
of text and suffix array: t/sa/rank_next/rank_prev/bwt
Copyright (C) 2002 Giovanni Manzini (manzini@mfn.unipmn.it)
This program is free so... | 9,373 | 26.014409 | 77 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/sa/ds/bwt_aux.h | #define _BW_ALPHA_SIZE 256
typedef unsigned char uchar;
typedef unsigned char uint8;
typedef int int32;
// ---- struct containing the (uncompressed) bwt
typedef struct {
uchar *bwt;
int size;
int eof_pos;
} bwt_data;
// prototypes of bwt procedures defined in bwtlcp.a
void _bw_sa2bwt(uchar *t, int32 n, int3... | 912 | 31.607143 | 78 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/compressorTextLZEND64bit/OLD_Fari/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/compressorTextLZEND64bit/OLD_Fari/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/compressorTextLZEND64bit/OLD_Fari/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/compressorTextLZEND64bit/OLD_Fari/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/compressorTextLZEND64bit/OLD_Fari/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/utils/parseparamsII.c | /***********************************************************************************/
/*** FUNCTIONS USED FOR PARSING PARAMETERS FROM COMMAND LINE ***********************/
/* Three function to variables to manage parameters */
static bool is_delimeter_II(char *delimiters, char c) {
int i=0,len_delimiters=strlen(deli... | 1,529 | 33.772727 | 107 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/utils/scdc.h |
////////////////// Dense Codes ////////////////
#ifndef byte
#define byte unsigned char
#endif
#ifndef uint
#define uint unsigned int
#endif
#ifndef ulong
#define ulong unsigned long
#endif
#include "valstring.h"
void initializeSC_baseTable (uint s);
uint decodeETDC (byte *etdc, register uint pos, uint *num)... | 1,029 | 28.428571 | 132 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/utils/horspool.h | /* Searches using Horspool's algorithm adapted to
search inside a text compressed with End-Tagged Dense Code.
Lightweight Natural Language Text Compression: Information Retrieval 2006
Programmed by Antonio Fari�a.
Author's contact: Antonio Fari�a, Databases Lab, University of
A Coru�a. Campus de Elvi�a s/n. Spain ... | 1,968 | 30.758065 | 93 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/utils/scdc.c | #include "scdc.h"
////////////////// Dense Codes ////////////////
uint SS,CC;
uint TABLABASE[5]; // = {0,128,16512,2113664,270549120};
void initializeSC_baseTable (uint s){
uint c = 256 - s;
TABLABASE[0] = 0;
TABLABASE[1] = s;
TABLABASE[2] = TABLABASE[1] + s * c;
TABLABASE[3] = TABLABASE[2] + s * c*c;
TABLAB... | 2,760 | 26.068627 | 131 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/utils/defValues.h | #ifndef DEFVALUES_INCLUDED
#define DEFVALUES_INCLUDED
//#define FREQ_VECTOR_AVAILABLE //--> COUNT uses wcsa->freqs[] for 1 word and getPositions() for the malloc().
//-->otherwise... getPositions() is needed for count: malloc (wcsa->maxNumOccs);
#define MAX_SIZE_OF_WORD 32768 //255 //size of word
//f... | 1,135 | 27.4 | 113 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/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>
// Data types
#ifndef byte
#define byte unsigned c... | 2,381 | 21.903846 | 61 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/utils/iisvsETDCBlock.c | /*************************************************************************************************/
int getPositions (void *index, uchar *pattern, ulong length, uint *ids, uint nids, uint **list, uint *len) {
int retval;
uint i;
twcsa* wcsa = (twcsa *) index;
//intersecting lists
uint *candDocs;
uint numcand... | 5,708 | 25.188073 | 132 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/utils/horspool.c |
#include "horspool.h"
/*------------------------------------------------------------------
Initializes Horspool's d-vector (jumps for each letter)
------------------------------------------------------------------*/
void inicialize_d(byte *code, unsigned int len, byte *d) {
unsigned int c,k;
for (c=0;c<256;c... | 2,029 | 25.363636 | 125 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/utils/errors.c |
/*////////////////
//Error handling//
////////////////*/
char *error_index(int e){
static char err[100];
switch(e) {
case 0: strcpy(err, "No error"); break;
case 1: strcpy(err, "Out of memory"); break;
case 2: strcpy(err, "The text must end with a \\0"); break;
case 5: strcpy(err, "You can't free... | 999 | 36.037037 | 80 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/II_docs/src/utils/ii.h |
/** **********************************************************************/
/** Saving/Loading the index to/from disk **/
/** **********************************************************************/
// * loads the source text into memory
int loadTextInMem (byte **text, ulong *size, ch... | 3,036 | 38.960526 | 130 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EXPERIMENTS/experiments.20g/4.33.1.RepairSkippingMoffatGonzalo/appendLastLine.c | #include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
int system(const char *string);
int main (int argc, char *argv[]) {
if (argc < 3) {
printf("\n syntax: %s <file> <msg> \n", argv[0]);exit(0);
}
FILE * f= fopen(arg... | 1,097 | 20.96 | 101 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EXPERIMENTS/experiments.20g/4.33.1.RepairSkippingMoffatGonzalo/sampleK.c | #include <stdlib.h>
#include <stdio.h>
int system(const char *string);
int main (int argc, char *argv[]) {
if (argc < 3) {
printf("\n syntax: %s <index_base_name> <sampleK value> \n", argv[0]);exit(0);
}
printf("\n call to %s %s %s done \n",argv[0],argv[1],argv[2]);
char cmd[100];
sprintf(cmd,"echo ... | 543 | 21.666667 | 80 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EXPERIMENTS/experiments.20g/4.33.2.RepairSkippingSandersGonzalo/appendLastLine.c | #include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
int system(const char *string);
int main (int argc, char *argv[]) {
if (argc < 3) {
printf("\n syntax: %s <file> <msg> \n", argv[0]);exit(0);
}
FILE * f= fopen(arg... | 1,097 | 20.96 | 101 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/NOPOS/EXPERIMENTS/experiments.20g/4.33.2.RepairSkippingSandersGonzalo/sampleK.c | #include <stdlib.h>
#include <stdio.h>
int system(const char *string);
int main (int argc, char *argv[]) {
if (argc < 3) {
printf("\n syntax: %s <index_base_name> <sampleK value> \n", argv[0]);exit(0);
}
printf("\n call to %s %s %s done \n",argv[0],argv[1],argv[2]);
char cmd[100];
sprintf(cmd,"echo ... | 543 | 21.666667 | 80 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/others/genpatterns/ExtractorWords/3.GenerateRandomWords/options.h | /* RANDOM PATTERNS CHOOSER -------------
Given
A file cointaining a given number of words (and /or separators) with their lenght and frequency ...
A value #maxIters
A value #patternsPerIter1, #patternsPerIter2, ..., #patternsPerIterN
Chooses randomly #iters times #patternsPerIter random patterns,... | 1,716 | 37.155556 | 107 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/others/genpatterns/ExtractorWords/1.Obtain_words_vocab_filtered/src/BufferedReader.h | /* Words extractor --
Parses a text file and computes the different words in it.
Then, it applies a filter by frequency of word and/or the lenght
of the words, in such a way that only the "filtered words" are
output to the target file.
This target file is useful since it contains a set of patterns that
can be later ... | 2,732 | 28.706522 | 75 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/others/genpatterns/ExtractorWords/1.Obtain_words_vocab_filtered/src/BufferedReader.c | /* Words extractor --
Parses a text file and computes the different words in it.
Then, it applies a filter by frequency of word and/or the lenght
of the words, in such a way that only the "filtered words" are
output to the target file.
This target file is useful since it contains a set of patterns that
can be later ... | 5,108 | 27.071429 | 75 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/others/genpatterns/ExtractorWords/1.Obtain_words_vocab_filtered/src/MemoryManager.h | /* Words extractor --
Parses a text file and computes the different words in it.
Then, it applies a filter by frequency of word and/or the lenght
of the words, in such a way that only the "filtered words" are
output to the target file.
This target file is useful since it contains a set of patterns that
can be later ... | 2,872 | 38.902778 | 92 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/others/genpatterns/ExtractorWords/1.Obtain_words_vocab_filtered/src/MemoryManager.c | /* Words extractor --
Parses a text file and computes the different words in it.
Then, it applies a filter by frequency of word and/or the lenght
of the words, in such a way that only the "filtered words" are
output to the target file.
This target file is useful since it contains a set of patterns that
can be later ... | 4,160 | 33.106557 | 89 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/others/genpatterns/ExtractorWords/1.Obtain_words_vocab_filtered/src/valstring.h | /* End-Tagged Dense Code. --
A semistatic word-based byte oriented compressor for text files.
Lightweight Natural Language Text Compression: Information Retrieval 2006
Copyright (C) 2005 Antonio Faria.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public Li... | 1,629 | 32.265306 | 78 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/others/genpatterns/ExtractorWords/1.Obtain_words_vocab_filtered/src/constants.h | /* Words extractor --
Parses a text file and computes the different words in it.
Then, it applies a filter by frequency of word and/or the lenght
of the words, in such a way that only the "filtered words" are
output to the target file.
This target file is useful since it contains a set of patterns that
can be later ... | 1,489 | 32.863636 | 75 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/others/genpatterns/ExtractorWords/1.Obtain_words_vocab_filtered/src/extractor.h | /* Words extractor --
Parses a text file and computes the different words in it.
Then, it applies a filter by frequency of word and/or the lenght
of the words, in such a way that only the "filtered words" are
output to the target file.
This target file is useful since it contains a set of patterns that
can be later ... | 3,333 | 33.020408 | 88 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/others/genpatterns/ExtractorWords/1.Obtain_words_vocab_filtered/src/hash.c | /* Words extractor --
Parses a text file and computes the different words in it.
Then, it applies a filter by frequency of word and/or the lenght
of the words, in such a way that only the "filtered words" are
output to the target file.
This target file is useful since it contains a set of patterns that
can be later ... | 7,777 | 28.800766 | 117 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/others/genpatterns/ExtractorWords/1.Obtain_words_vocab_filtered/src/valstring.c | /* End-Tagged Dense Code. --
A semistatic word-based byte oriented compressor for text files.
Lightweight Natural Language Text Compression: Information Retrieval 2006
Copyright (C) 2005 Antonio Faria.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public Li... | 1,749 | 27.225806 | 78 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/others/genpatterns/ExtractorWords/1.Obtain_words_vocab_filtered/src/hash.h | /* Words extractor --
Parses a text file and computes the different words in it.
Then, it applies a filter by frequency of word and/or the lenght
of the words, in such a way that only the "filtered words" are
output to the target file.
This target file is useful since it contains a set of patterns that
can be later ... | 2,534 | 31.5 | 85 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/others/genpatterns/extractor.phrases.randLengh/src/defValues.h | #ifndef DEFVALUES_INCLUDED
#define DEFVALUES_INCLUDED
//#define MAX_LEN_VOCABULARY 3000000 //number of different words --> (number of variants)
#define MAX_MEANINGFUL_WORDS 100000000 //number of words (non separators)
#define MAX_SIZE_OF_WORD 1000000 //255 //size of word
#define MAX_SIZE_OF_GAP 1000000 //1000 //... | 1,511 | 28.647059 | 92 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/others/genpatterns/extractor.phrases.randLengh/src/constants.h | /* Words extractor --
Parses a text file and computes the different words in it.
Then, it applies a filter by frequency of word and/or the lenght
of the words, in such a way that only the "filtered words" are
output to the target file.
This target file is useful since it contains a set of patterns that
can be later ... | 1,554 | 32.085106 | 75 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/others/genpatterns/extractor.phrases.randLengh/src/hashStopWords.h | /*-----------------------------------------------------------------------
Hash: Definition of HashTable class (Linear Hash)
------------------------------------------------------------------------*/
#ifndef HASHSTOPWORDSINCLUDED
#define HASHSTOPWORDSINCLUDED
#include <string.h>
#include <stdlib.h>
#include <mat... | 2,296 | 28.448718 | 102 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/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,227 | 41.846154 | 113 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/src/buildFacade.h | /* only for getTime() */
#include <sys/time.h>
#include <sys/resource.h>
#include "utils/basics_wi.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"
#include "util... | 9,778 | 39.077869 | 121 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/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 im... | 3,975 | 32.982906 | 94 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/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,756 | 42.613636 | 121 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/src/compressorTextREPAIR64bit[Sampling]/interfazTextCompressorDocs.h | #include "RePairDocCompressor.h"
/***************************************************************************/
/** Creates a compressed representation of a collection of text documents **/
/***************************************************************************/
/* Creates the [compressed] representation of a c... | 2,213 | 40 | 102 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/src/compressorTextREPAIR64bit[Sampling]/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,928 | 30.494624 | 76 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/src/compressorTextREPAIR64bit[Sampling]/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,668 | 27.288136 | 75 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/src/compressorTextREPAIR64bit[Sampling]/RePair/basicsR.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,310 | 27.5 | 75 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/src/compressorTextREPAIR64bit[Sampling]/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,255 | 25.541176 | 119 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/src/compressorTextREPAIR64bit[Sampling]/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,670 | 26.85 | 75 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/src/compressorTextREPAIR64bit[Sampling]/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,332 | 27.45122 | 78 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/src/compressorTextREPAIR64bit[Sampling]/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,068 | 28.140845 | 75 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/src/compressorTextREPAIR64bit[Sampling]/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/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/src/compressorTextREPAIR64bit[Sampling]/utils/deltacodes.h | #include <fstream>
#include "libcdsBasics.h"
using namespace std;
using namespace cds_utils;
class DeltaCodes{
public:
DeltaCodes();
DeltaCodes(unsigned int* array, unsigned int n, unsigned int sampling);
virtual ~DeltaCodes();
unsigned int select(unsigned int total);
unsigned in... | 1,023 | 29.117647 | 88 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/src/compressorTextREPAIR64bit[Sampling]/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/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/src/compressorTextREPAIR64bit[Sampling]/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/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/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,227 | 39.509091 | 113 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/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,928 | 30.494624 | 76 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/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,668 | 27.288136 | 75 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/src/compressorTextREPAIR64bit/RePair/basicsR.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,310 | 27.5 | 75 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/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,255 | 25.541176 | 119 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/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,670 | 26.85 | 75 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/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,332 | 27.45122 | 78 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/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,068 | 28.140845 | 75 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/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/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/src/compressorTextREPAIR64bit/utils/deltacodes.h | #include <fstream>
#include "libcdsBasics.h"
using namespace std;
using namespace cds_utils;
class DeltaCodes{
public:
DeltaCodes();
DeltaCodes(unsigned int* array, unsigned int n, unsigned int sampling);
virtual ~DeltaCodes();
unsigned int select(unsigned int total);
unsigned in... | 1,023 | 29.117647 | 88 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/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/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/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/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/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/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/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/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/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/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/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/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/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/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/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,600 | 33.223684 | 113 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/src/compressorTextPlain64bit/compressor.c | #include "compressor.h"
/***************************************************************************/
/** Creates a compressed representation of a collection of text documents **/
/***************************************************************************/
/* Creates the [compressed] representation of a collection ... | 6,169 | 33.662921 | 114 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/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/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/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/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/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,192 | 41.173077 | 113 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/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,461 | 33.194444 | 113 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/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,858 | 29.741935 | 114 | c |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/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,193 | 40.396226 | 113 | h |
uiHRDC | uiHRDC-master/uiHRDC/indexes/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/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/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/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/POS/EliasFano.OV14/II_docs.EliasFano_formato.ver.leeme/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,530 | 33.671233 | 113 | h |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.