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 |
|---|---|---|---|---|---|---|
qratpreplus | qratpreplus-master/stack.h | /*
This file is part of QRATPre+.
Copyright 2019
Florian Lonsing, Stanford University, USA.
Copyright 2018
Florian Lonsing, Vienna University of Technology, Austria.
QRATPre+ 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... | 2,935 | 30.913043 | 72 | h |
qratpreplus | qratpreplus-master/qratpreplus_main.c | /*
This file is part of QRATPre+.
Copyright 2019
Florian Lonsing, Stanford University, USA.
Copyright 2018
Florian Lonsing, Vienna University of Technology, Austria.
QRATPre+ 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... | 8,668 | 29.741135 | 109 | c |
qratpreplus | qratpreplus-master/examples/api-example.c | #include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <libgen.h>
#include <unistd.h>
#include <sys/wait.h>
#include "../qratpreplus.h"
int
main (int argc, char **argv)
{
if (argc < 2)
{
fprintf (stderr, "Error: expecting input filename as first argument!\n");
exit (1);
}
fprintf ... | 3,533 | 32.657143 | 83 | c |
null | seqHMM-main/src/log_forward_backward.h | #ifndef LFB_H
#define LFB_H
#include <RcppArmadillo.h>
void log_internalForwardx(const arma::mat& transition, const arma::cube& emission,
const arma::mat& init, const arma::ucube& obs, arma::cube& alpha, unsigned int threads);
void log_internalForward(const arma::mat& transition, const arma... | 636 | 36.470588 | 114 | h |
null | seqHMM-main/src/optcoef.h | #ifndef OPTCOEF_H
#define OPTCOEF_H
#include <RcppArmadillo.h>
unsigned int optCoef(arma::mat& weights, const arma::ucube& obs, const arma::cube& emission,
const arma::mat& bsi, arma::mat& coef, const arma::mat& X,
const arma::uvec& cumsumstate, const arma::uvec& numberOfStat... | 1,291 | 45.142857 | 120 | h |
null | seqHMM-main/src/forward_backward.h | #ifndef FB_H
#define FB_H
#include <RcppArmadillo.h>
void uvForward(const arma::sp_mat& transition_t, const arma::cube& emission, const arma::vec& init,
const arma::umat& obs, arma::mat& alpha, arma::vec& scales);
void uvBackward(const arma::sp_mat& transition, const arma::cube& emission,
const arma::umat& obs, a... | 1,180 | 52.681818 | 129 | h |
SatSpaceExpo | SatSpaceExpo-master/src/commons/utility/utility.h | #pragma once
#include "commons/clause/clause.h"
#include <boost/dynamic_bitset.hpp>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
#include <z3++.h>
typedef int var_t; // variable
typedef std::set<clause_t *> cpset_t; // clause_t point set
typedef std::set<var... | 3,388 | 34.673684 | 76 | h |
SatSpaceExpo | SatSpaceExpo-master/src/commons/program/program.h | #pragma once
#include "commons/bintree/binaryTree.h"
#include "commons/clause/clause.h"
#include "commons/dudg/DUDG.h"
#include "commons/udg/UDG.h"
#include "commons/utility/utility.h"
#include <iostream>
#include <map>
#include <set>
#include <string.h>
#include <vector>
#include <z3++.h>
cpset_t operator-(const cps... | 2,736 | 37.013889 | 78 | h |
SatSpaceExpo | SatSpaceExpo-master/src/commons/bintree/binaryTree.h | #pragma once
#include "commons/utility/utility.h"
#include <functional>
#include <utility>
#include <vector>
enum TRA_T { TRA_T_PRE_ORDER, TRA_T_IN_ORDER, TRA_T_POST_ORDER };
struct bin_tree_node {
// metadata
std::set<var_bitset *> delta_ps;
var_bitset union_delta;
var_bitset intersection_delta;
cpset_t s... | 1,341 | 28.173913 | 77 | h |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/inflate.h | /* inflate.h -- internal inflate state definition
* Copyright (C) 1995-2016 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/* WARNING: this file should *not* be used by applications. It is
part of the implementation of the compression library and is
subject to change. A... | 6,618 | 51.531746 | 79 | h |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/gzclose.c | /* gzclose.c -- zlib gzclose() function
* Copyright (C) 2004, 2010 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
#include "gzguts.h"
/* gzclose() is in a separate file so that it is linked in only if it is used.
That way the other gzclose functions can be used instead to... | 678 | 25.115385 | 79 | c |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/infback.c | /* infback.c -- inflate using a call-back interface
* Copyright (C) 1995-2016 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/*
This code is largely copied from inflate.c. Normally either infback.o or
inflate.o would be linked into an application--not both. The interf... | 22,715 | 34.438378 | 79 | c |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/gzread.c | /* gzread.c -- zlib functions for reading gzip files
* Copyright (C) 2004, 2005, 2010, 2011, 2012, 2013, 2016 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
#include "gzguts.h"
/* Local functions */
local int gz_load OF((gz_statep, unsigned char *, unsigned, unsigned *));
lo... | 20,428 | 30.189313 | 79 | c |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/trees.h | /* header created automatically with -DGEN_TREES_H */
local const ct_data static_ltree[L_CODES+2] = {
{{ 12},{ 8}}, {{140},{ 8}}, {{ 76},{ 8}}, {{204},{ 8}}, {{ 44},{ 8}},
{{172},{ 8}}, {{108},{ 8}}, {{236},{ 8}}, {{ 28},{ 8}}, {{156},{ 8}},
{{ 92},{ 8}}, {{220},{ 8}}, {{ 60},{ 8}}, {{188},{ 8}}, {{124},... | 8,472 | 64.682171 | 79 | h |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/zconf.h | /* zconf.h -- configuration of the zlib compression library
* Copyright (C) 1995-2016 Jean-loup Gailly, Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/* @(#) $Id$ */
#ifndef ZCONF_H
#define ZCONF_H
/*
* If you *really* need a unique prefix for all types and library functi... | 16,262 | 29.398131 | 79 | h |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/inffixed.h | /* inffixed.h -- table for decoding fixed codes
* Generated automatically by makefixed().
*/
/* WARNING: this file should *not* be used by applications.
It is part of the implementation of this library and is
subject to change. Applications should only use zlib.h.
*/
static co... | 6,332 | 65.663158 | 78 | h |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/inftrees.h | /* inftrees.h -- header to use inftrees.c
* Copyright (C) 1995-2005, 2010 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/* WARNING: this file should *not* be used by applications. It is
part of the implementation of the compression library and is
subject to change. App... | 2,928 | 45.492063 | 79 | h |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/inftrees.c | /* inftrees.c -- generate Huffman trees for efficient decoding
* Copyright (C) 1995-2017 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
#include "zutil.h"
#include "inftrees.h"
#define MAXBITS 15
const char inflate_copyright[] =
" inflate 1.2.11 Copyright 1995-2017 Mark ... | 12,999 | 41.622951 | 78 | c |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/zutil.h | /* zutil.h -- internal interface and configuration of the compression library
* Copyright (C) 1995-2016 Jean-loup Gailly, Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/* WARNING: this file should *not* be used by applications. It is
part of the implementation of the comp... | 7,127 | 25.205882 | 79 | h |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/zutil.c | /* zutil.c -- target dependent utility functions for the compression library
* Copyright (C) 1995-2017 Jean-loup Gailly
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/* @(#) $Id$ */
#include "zutil.h"
#ifndef Z_SOLO
# include "gzguts.h"
#endif
z_const char * const z_errmsg[10] = {
... | 7,304 | 21.407975 | 76 | c |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/inffast.c | /* inffast.c -- fast decoding
* Copyright (C) 1995-2017 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
#include "zutil.h"
#include "inftrees.h"
#include "inflate.h"
#include "inffast.h"
#ifdef ASMINF
# pragma message("Assembler code may have bugs -- use at your own risk")
#... | 12,978 | 39.058642 | 79 | c |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/crc32.c | /* crc32.c -- compute the CRC-32 of a data stream
* Copyright (C) 1995-2006, 2010, 2011, 2012, 2016 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*
* Thanks to Rodney Brown <rbrown64@csc.com.au> for his contribution of faster
* CRC methods: exclusive-oring 32 bits of data at a... | 14,053 | 30.724605 | 79 | c |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/gzwrite.c | /* gzwrite.c -- zlib functions for writing gzip files
* Copyright (C) 2004-2017 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
#include "gzguts.h"
/* Local functions */
local int gz_init OF((gz_statep));
local int gz_comp OF((gz_statep, int));
local int gz_zero OF((gz_statep... | 19,253 | 27.90991 | 79 | c |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/uncompr.c | /* uncompr.c -- decompress a memory buffer
* Copyright (C) 1995-2003, 2010, 2014, 2016 Jean-loup Gailly, Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/* @(#) $Id$ */
#define ZLIB_INTERNAL
#include "zlib.h"
/* ===============================================================... | 2,966 | 30.56383 | 79 | c |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/compress.c | /* compress.c -- compress a memory buffer
* Copyright (C) 1995-2005, 2014, 2016 Jean-loup Gailly, Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/* @(#) $Id$ */
#define ZLIB_INTERNAL
#include "zlib.h"
/* ======================================================================... | 2,699 | 30.034483 | 78 | c |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/deflate.h | /* deflate.h -- internal compression state
* Copyright (C) 1995-2016 Jean-loup Gailly
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/* WARNING: this file should *not* be used by applications. It is
part of the implementation of the compression library and is
subject to change. Ap... | 13,150 | 36.574286 | 79 | h |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/adler32.c | /* adler32.c -- compute the Adler-32 checksum of a data stream
* Copyright (C) 1995-2011, 2016 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/* @(#) $Id$ */
#include "zutil.h"
local uLong adler32_combine_ OF((uLong adler1, uLong adler2, z_off64_t len2));
#define BASE 6552... | 5,204 | 26.834225 | 79 | c |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/gzlib.c | /* gzlib.c -- zlib functions common to reading and writing gzip files
* Copyright (C) 2004-2017 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
#include "gzguts.h"
#if defined(_WIN32) && !defined(__BORLANDC__) && !defined(__MINGW32__)
# define LSEEK _lseeki64
#else
#if defin... | 16,599 | 25.018809 | 79 | c |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/gzguts.h | /* gzguts.h -- zlib internal header definitions for gz* operations
* Copyright (C) 2004, 2005, 2010, 2011, 2012, 2013, 2016 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
#ifdef _LARGEFILE64_SOURCE
# ifndef _LARGEFILE_SOURCE
# define _LARGEFILE_SOURCE 1
# endif
# ifdef ... | 6,819 | 30.141553 | 79 | h |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/examples/zpipe.c | /* zpipe.c: example of proper use of zlib's inflate() and deflate()
Not copyrighted -- provided to the public domain
Version 1.4 11 December 2005 Mark Adler */
/* Version history:
1.0 30 Oct 2004 First version
1.1 8 Nov 2004 Add void casting for unused return values
Use switch s... | 6,323 | 29.699029 | 78 | c |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/examples/gzlog.h | /* gzlog.h
Copyright (C) 2004, 2008, 2012 Mark Adler, all rights reserved
version 2.2, 14 Aug 2012
This software is provided 'as-is', without any express or implied
warranty. In no event will the author be held liable for any damages
arising from the use of this software.
Permission is granted to anyone ... | 4,557 | 48.543478 | 79 | h |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/examples/enough.c | /* enough.c -- determine the maximum size of inflate's Huffman code tables over
* all possible valid and complete Huffman codes, subject to a length limit.
* Copyright (C) 2007, 2008, 2012 Mark Adler
* Version 1.4 18 August 2012 Mark Adler
*/
/* Version history:
1.0 3 Jan 2007 First version (derived from c... | 24,338 | 41.47644 | 79 | c |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/examples/fitblk.c | /* fitblk.c: example of fitting compressed output to a specified size
Not copyrighted -- provided to the public domain
Version 1.1 25 November 2004 Mark Adler */
/* Version history:
1.0 24 Nov 2004 First version
1.1 25 Nov 2004 Change deflateInit2() to deflateInit()
Use fixed-siz... | 8,594 | 35.730769 | 70 | c |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/examples/zran.c | /* zran.c -- example of zlib/gzip stream indexing and random access
* Copyright (C) 2005, 2012 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
Version 1.1 29 Sep 2012 Mark Adler */
/* Version History:
1.0 29 May 2005 First version
1.1 29 Sep 2012 Fix memory reallocation... | 15,438 | 36.656098 | 79 | c |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/examples/gzjoin.c | /* gzjoin -- command to join gzip files into one gzip file
Copyright (C) 2004, 2005, 2012 Mark Adler, all rights reserved
version 1.2, 14 Aug 2012
This software is provided 'as-is', without any express or implied
warranty. In no event will the author be held liable for any damages
arising from the use of t... | 14,132 | 30.406667 | 79 | c |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/examples/gzappend.c | /* gzappend -- command to append to a gzip file
Copyright (C) 2003, 2012 Mark Adler, all rights reserved
version 1.2, 11 Oct 2012
This software is provided 'as-is', without any express or implied
warranty. In no event will the author be held liable for any damages
arising from the use of this software.
... | 16,977 | 32.619802 | 79 | c |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/test/minigzip.c | /* minigzip.c -- simulate gzip using the zlib compression library
* Copyright (C) 1995-2006, 2010, 2011, 2016 Jean-loup Gailly
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/*
* minigzip is a minimal implementation of the gzip utility. This is
* only an example of using zlib and isn'... | 15,797 | 23.230061 | 79 | c |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/test/infcover.c | /* infcover.c -- test zlib's inflate routines with full code coverage
* Copyright (C) 2011, 2016 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/* to use, do: ./configure --cover && make cover */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
... | 24,723 | 35.791667 | 79 | c |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/test/example.c | /* example.c -- usage example of the zlib compression library
* Copyright (C) 1995-2006, 2011, 2016 Jean-loup Gailly
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/* @(#) $Id$ */
#include "zlib.h"
#include <stdio.h>
#ifdef STDC
# include <string.h>
# include <stdlib.h>
#endif
#if ... | 16,888 | 27.008292 | 78 | c |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/contrib/iostream2/zstream.h | /*
*
* Copyright (c) 1997
* Christian Michelsen Research AS
* Advanced Computing
* Fantoftvegen 38, 5036 BERGEN, Norway
* http://www.cmr.no
*
* Permission to use, copy, modify, distribute and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above co... | 9,283 | 29.142857 | 80 | h |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/contrib/masmx64/inffas8664.c | /* inffas8664.c is a hand tuned assembler version of inffast.c - fast decoding
* version for AMD64 on Windows using Microsoft C compiler
*
* Copyright (C) 1995-2003 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*
* Copyright (C) 2003 Chris Anderson <christop@charm.net>
* Ple... | 7,391 | 38.529412 | 116 | c |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/contrib/blast/blast.c | /* blast.c
* Copyright (C) 2003, 2012, 2013 Mark Adler
* For conditions of distribution and use, see copyright notice in blast.h
* version 1.3, 24 Aug 2013
*
* blast.c decompresses data compressed by the PKWare Compression Library.
* This function provides functionality similar to the explode() function of
* the... | 18,162 | 37.892934 | 79 | c |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/contrib/blast/blast.h | /* blast.h -- interface for blast.c
Copyright (C) 2003, 2012, 2013 Mark Adler
version 1.3, 24 Aug 2013
This software is provided 'as-is', without any express or implied
warranty. In no event will the author be held liable for any damages
arising from the use of this software.
Permission is granted to any... | 3,865 | 45.02381 | 79 | h |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/contrib/iostream3/zfstream.h | /*
* A C++ I/O streams interface to the zlib gz* functions
*
* by Ludwig Schwardt <schwardt@sun.ac.za>
* original version by Kevin Ruland <kevin@rodin.wustl.edu>
*
* This version is standard-compliant and compatible with gcc 3.x.
*/
#ifndef ZFSTREAM_H
#define ZFSTREAM_H
#include <istream> // not iostream, sin... | 12,240 | 25.211991 | 81 | h |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/contrib/minizip/iowin32.h | /* iowin32.h -- IO base function header for compress/uncompress .zip
Version 1.1, February 14h, 2010
part of the MiniZip project - ( http://www.winimage.com/zLibDll/minizip.html )
Copyright (C) 1998-2010 Gilles Vollant (minizip) ( http://www.winimage.com/zLibDll/minizip.html )
Modification... | 851 | 28.37931 | 106 | h |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/contrib/minizip/unzip.h | /* unzip.h -- IO for uncompress .zip files using zlib
Version 1.1, February 14h, 2010
part of the MiniZip project - ( http://www.winimage.com/zLibDll/minizip.html )
Copyright (C) 1998-2010 Gilles Vollant (minizip) ( http://www.winimage.com/zLibDll/minizip.html )
Modifications of Unzip for Zip6... | 16,352 | 36.335616 | 106 | h |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/contrib/minizip/mztools.c | /*
Additional tools for Minizip
Code: Xavier Roche '2004
License: Same as ZLIB (www.gzip.org)
*/
/* Code */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "zlib.h"
#include "unzip.h"
#define READ_8(adr) ((unsigned char)*(adr))
#define READ_16(adr) ( READ_8(adr) | (READ_8(adr+1) << 8) )
#de... | 8,146 | 26.900685 | 83 | c |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/contrib/minizip/miniunz.c | /*
miniunz.c
Version 1.1, February 14h, 2010
sample part of the MiniZip project - ( http://www.winimage.com/zLibDll/minizip.html )
Copyright (C) 1998-2010 Gilles Vollant (minizip) ( http://www.winimage.com/zLibDll/minizip.html )
Modifications of Unzip for Zip64
Copyright (C) 2007-2... | 17,763 | 25.874433 | 121 | c |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/contrib/minizip/iowin32.c | /* iowin32.c -- IO base function header for compress/uncompress .zip
Version 1.1, February 14h, 2010
part of the MiniZip project - ( http://www.winimage.com/zLibDll/minizip.html )
Copyright (C) 1998-2010 Gilles Vollant (minizip) ( http://www.winimage.com/zLibDll/minizip.html )
Modification... | 14,223 | 29.721382 | 134 | c |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/contrib/minizip/ioapi.c | /* ioapi.h -- IO base function header for compress/uncompress .zip
part of the MiniZip project - ( http://www.winimage.com/zLibDll/minizip.html )
Copyright (C) 1998-2010 Gilles Vollant (minizip) ( http://www.winimage.com/zLibDll/minizip.html )
Modifications for Zip64 support
Copyright (C... | 8,225 | 32.169355 | 127 | c |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/contrib/minizip/minizip.c | /*
minizip.c
Version 1.1, February 14h, 2010
sample part of the MiniZip project - ( http://www.winimage.com/zLibDll/minizip.html )
Copyright (C) 1998-2010 Gilles Vollant (minizip) ( http://www.winimage.com/zLibDll/minizip.html )
Modifications of Unzip for Zip64
Copyright (C) 2007-2... | 15,034 | 27.857965 | 119 | c |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/contrib/minizip/zip.h | /* zip.h -- IO on .zip files using zlib
Version 1.1, February 14h, 2010
part of the MiniZip project - ( http://www.winimage.com/zLibDll/minizip.html )
Copyright (C) 1998-2010 Gilles Vollant (minizip) ( http://www.winimage.com/zLibDll/minizip.html )
Modifications for Zip64 support
Copy... | 15,366 | 41.333333 | 116 | h |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/contrib/minizip/crypt.h | /* crypt.h -- base code for crypt/uncrypt ZIPfile
Version 1.01e, February 12th, 2005
Copyright (C) 1998-2005 Gilles Vollant
This code is a modified version of crypting code in Infozip distribution
The encryption/decryption parts of this source code (as opposed to the
non-echoing password parts) were... | 4,735 | 34.878788 | 97 | h |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/contrib/puff/pufftest.c | /*
* pufftest.c
* Copyright (C) 2002-2013 Mark Adler
* For conditions of distribution and use, see copyright notice in puff.h
* version 2.3, 21 Jan 2013
*/
/* Example of how to use puff().
Usage: puff [-w] [-f] [-nnn] file
... | puff [-w] [-f] [-nnn]
where file is the input file with deflate dat... | 4,917 | 28.626506 | 79 | c |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/contrib/puff/puff.h | /* puff.h
Copyright (C) 2002-2013 Mark Adler, all rights reserved
version 2.3, 21 Jan 2013
This software is provided 'as-is', without any express or implied
warranty. In no event will the author be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use t... | 1,415 | 38.333333 | 76 | h |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/contrib/infback9/inffix9.h | /* inffix9.h -- table for decoding deflate64 fixed codes
* Generated automatically by makefixed9().
*/
/* WARNING: this file should *not* be used by applications.
It is part of the implementation of this library and is
subject to change. Applications should only use zlib.h.
*/
... | 6,599 | 60.111111 | 69 | h |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/contrib/infback9/infback9.h | /* infback9.h -- header for using inflateBack9 functions
* Copyright (C) 2003 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/*
* This header file and associated patches provide a decoder for PKWare's
* undocumented deflate64 compression method (method 9). Use with infback... | 1,594 | 40.973684 | 78 | h |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/contrib/infback9/inflate9.h | /* inflate9.h -- internal inflate state definition
* Copyright (C) 1995-2003 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/* WARNING: this file should *not* be used by applications. It is
part of the implementation of the compression library and is
subject to change. ... | 1,991 | 40.5 | 76 | h |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/contrib/infback9/inftree9.c | /* inftree9.c -- generate Huffman trees for efficient decoding
* Copyright (C) 1995-2017 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
#include "zutil.h"
#include "inftree9.h"
#define MAXBITS 15
const char inflate9_copyright[] =
" inflate9 1.2.11 Copyright 1995-2017 Mar... | 13,406 | 40.252308 | 79 | c |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/contrib/infback9/infback9.c | /* infback9.c -- inflate deflate64 data using a call-back interface
* Copyright (C) 1995-2008 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
#include "zutil.h"
#include "infback9.h"
#include "inftree9.h"
#include "inflate9.h"
#define WSIZE 65536UL
/*
strm provides memory... | 21,629 | 34.113636 | 79 | c |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/contrib/infback9/inftree9.h | /* inftree9.h -- header to use inftree9.c
* Copyright (C) 1995-2008 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/* WARNING: this file should *not* be used by applications. It is
part of the implementation of the compression library and is
subject to change. Applicati... | 2,901 | 45.806452 | 79 | h |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/contrib/testzlib/testzlib.c | #include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include "zlib.h"
void MyDoMinus64(LARGE_INTEGER *R,LARGE_INTEGER A,LARGE_INTEGER B)
{
R->HighPart = A.HighPart - B.HighPart;
if (A.LowPart >= B.LowPart)
R->LowPart = A.LowPart - B.LowPart;
else
{
R->LowPart = A.LowPart - B.L... | 7,368 | 25.699275 | 99 | c |
SatSpaceExpo | SatSpaceExpo-master/src/zlib/contrib/untgz/untgz.c | /*
* untgz.c -- Display contents and extract files from a gzip'd TAR file
*
* written by Pedro A. Aranda Gutierrez <paag@tid.es>
* adaptation to Unix by Jean-loup Gailly <jloup@gzip.org>
* various fixes by Cosmin Truta <cosmint@cs.ubbcluj.ro>
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include... | 16,542 | 23.508148 | 85 | c |
AIFcomparisons | AIFcomparisons-master/malaria/relapse.c | //
// c code to generate Figure 4 of
// "Accelerate iterated filtering"
// by D. Nguyen.
// It is based on source code from Roy Manojit.
//
#include <R.h>
#include <Rmath.h>
#include <R_ext/Rdynload.h>
double expit(double x){ return 1.0/(1.0+exp(-x)); }
double dot_product(int dim, const double *basis, const dou... | 6,211 | 24.775934 | 85 | c |
tiny | tiny-master/benchmark/training/visual_wake_words/trained_models/vww/vww_inputs.h | /* Copyright 2020 The MLPerf Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... | 970 | 39.458333 | 80 | h |
tiny | tiny-master/benchmark/training/visual_wake_words/trained_models/vww/vww_model_settings.h | /* Copyright 2020 The MLPerf Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... | 1,285 | 39.1875 | 80 | h |
tiny | tiny-master/benchmark/training/visual_wake_words/trained_models/vww/vww_model_data.h | /* Copyright 2020 The MLPerf Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... | 958 | 42.590909 | 80 | h |
tiny | tiny-master/benchmark/api/submitter_implemented.h | /*
Copyright 2020 EEMBC and The MLPerf Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law o... | 3,417 | 38.287356 | 80 | h |
tiny | tiny-master/benchmark/api/internally_implemented.h | /*
Copyright 2020 EEMBC and The MLPerf Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law o... | 2,228 | 34.380952 | 80 | h |
tiny | tiny-master/benchmark/util/quantization_helpers.h | /* Copyright 2020 The MLPerf Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... | 1,204 | 36.65625 | 80 | h |
tiny | tiny-master/benchmark/util/tf_micro_model_runner.h | /* Copyright 2020 The MLPerf Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... | 2,854 | 35.602564 | 80 | h |
tiny | tiny-master/benchmark/reference_submissions/person_detection/api/submitter_implemented.h | /*
Copyright 2020 EEMBC and The MLPerf Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law o... | 3,206 | 38.109756 | 80 | h |
tiny | tiny-master/benchmark/reference_submissions/keyword_spotting/api/submitter_implemented.h | /*
Copyright 2020 EEMBC and The MLPerf Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law o... | 3,205 | 38.097561 | 80 | h |
tiny | tiny-master/benchmark/reference_submissions/keyword_spotting/kws/kws_model_settings.h | /* Copyright 2020 The MLPerf Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... | 1,218 | 39.633333 | 80 | h |
tiny | tiny-master/benchmark/reference_submissions/keyword_spotting/kws/kws_input_data.h | /* Copyright 2020 The MLPerf Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... | 988 | 40.208333 | 80 | h |
tiny | tiny-master/benchmark/reference_submissions/image_classification/ic/ic_model_settings.h | /* Copyright 2020 The MLPerf Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... | 1,524 | 37.125 | 80 | h |
tiny | tiny-master/benchmark/reference_submissions/image_classification/ic/ic_inputs.h | /* Copyright 2020 The MLPerf Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... | 981 | 36.769231 | 80 | h |
tiny | tiny-master/benchmark/reference_submissions/image_classification/ic/ic_model_quant_data.h | /* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 895 | 37.956522 | 80 | h |
tiny | tiny-master/benchmark/reference_submissions/image_classification/api/submitter_implemented.h | /*
Copyright 2020 EEMBC and The MLPerf Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law o... | 3,205 | 38.097561 | 80 | h |
tiny | tiny-master/benchmark/reference_submissions/image_classification/api/internally_implemented.h | /*
Copyright 2020 EEMBC and The MLPerf Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law o... | 2,228 | 34.380952 | 80 | h |
tiny | tiny-master/benchmark/reference_submissions/image_classification/util/quantization_helpers.h | /* Copyright 2020 The MLPerf Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... | 1,204 | 36.65625 | 80 | h |
tiny | tiny-master/benchmark/reference_submissions/image_classification/util/tf_micro_model_runner.h | /* Copyright 2020 The MLPerf Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... | 2,854 | 35.602564 | 80 | h |
tiny | tiny-master/benchmark/reference_submissions/anomaly_detection/model.h | /* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 1,222 | 44.296296 | 83 | h |
tiny | tiny-master/benchmark/reference_submissions/anomaly_detection/micro_model_settings.h | /* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 1,465 | 47.866667 | 98 | h |
tiny | tiny-master/benchmark/reference_submissions/anomaly_detection/api/submitter_implemented.h | /*
Copyright 2020 EEMBC and The MLPerf Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law o... | 3,264 | 38.817073 | 98 | h |
Shouji | Shouji-master/CPU_Implementation/main.h | /*
* Copyright (c) <2016 - 2020>, Bilkent University and ETH Zurich
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notic... | 1,952 | 35.849057 | 86 | h |
Shouji | Shouji-master/CPU_Implementation/Shouji.h | /*
* Copyright (c) <2016 - 2020>, Bilkent University and ETH Zurich
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notic... | 2,010 | 36.943396 | 126 | h |
null | NearPMSW-main/baseline/logging/redis/redisClient/redisAdaptorCommon/common.h | #include <string.h>
#include <assert.h>
#include <string>
#include <unordered_map>
#include <arpa/inet.h>
#define ERROR -1;
// Constants
#define PMSWITCH_OPCODE_INVALID 0x00 // Not used
#define PMSWITCH_OPCODE_PERSIST_NEED_ACK 0x01 // Persist using PMSwitch Protocol
#define PMSWITCH_OPCODE_ACK ... | 3,275 | 34.608696 | 131 | h |
null | NearPMSW-main/baseline/logging/redis-background/src/anet.c | /* anet.c -- Basic TCP socket stuff made a bit less boring
*
* Copyright (c) 2006-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* ... | 20,633 | 30.454268 | 90 | c |
null | NearPMSW-main/baseline/logging/redis-background/src/blocked.c | /* blocked.c - generic support for blocking operations like BLPOP & WAIT.
*
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions ... | 7,966 | 40.712042 | 87 | c |
null | NearPMSW-main/baseline/logging/redis-background/src/help.h | /* Automatically generated by utils/generate-command-help.rb, do not edit. */
#ifndef __REDIS_HELP_H
#define __REDIS_HELP_H
static char *commandGroups[] = {
"generic",
"string",
"list",
"set",
"sorted_set",
"hash",
"pubsub",
"transactions",
"connection",
"server",
"scriptin... | 24,462 | 23.030452 | 134 | h |
null | NearPMSW-main/baseline/logging/redis-background/src/sha1.h | #ifndef SHA1_H
#define SHA1_H
/* ================ sha1.h ================ */
/*
SHA-1 in C
By Steve Reid <steve@edmweb.com>
100% Public Domain
*/
typedef struct {
uint32_t state[5];
uint32_t count[2];
unsigned char buffer[64];
} SHA1_CTX;
void SHA1Transform(uint32_t state[5], const unsigned char buffer[64... | 566 | 21.68 | 76 | h |
null | NearPMSW-main/baseline/logging/redis-background/src/config.h | /*
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above co... | 6,550 | 30.195238 | 130 | h |
null | NearPMSW-main/baseline/logging/redis-background/src/ae_epoll.c | /* Linux epoll(2) based ae.c module
*
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of ... | 4,846 | 34.639706 | 80 | c |
null | NearPMSW-main/baseline/logging/redis-background/src/ae_select.c | /* Select()-based ae.c module.
*
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of sourc... | 3,828 | 34.785047 | 78 | c |
null | NearPMSW-main/baseline/logging/redis-background/src/intset.c | /*
* Copyright (c) 2009-2012, Pieter Noordhuis <pcnoordhuis at gmail dot com>
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... | 16,271 | 32.006085 | 79 | c |
null | NearPMSW-main/baseline/logging/redis-background/src/bio.h | /*
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above co... | 2,073 | 48.380952 | 78 | h |
null | NearPMSW-main/baseline/logging/redis-background/src/setproctitle.c | /* ==========================================================================
* setproctitle.c - Linux/Darwin setproctitle.
* --------------------------------------------------------------------------
* Copyright (C) 2010 William Ahern
* Copyright (C) 2013 Salvatore Sanfilippo
* Copyright (C) 2013 Stam He
*
*... | 5,656 | 20.591603 | 92 | c |
null | NearPMSW-main/baseline/logging/redis-background/src/util.c | /*
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above co... | 22,734 | 29.394385 | 102 | c |
null | NearPMSW-main/baseline/logging/redis-background/src/ae.h | /* A simple event-driven programming library. Originally I wrote this code
* for the Jim's event-loop (Jim is a Tcl interpreter) but later translated
* it in form of a library for easy reuse.
*
* Copyright (c) 2006-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution an... | 4,681 | 36.758065 | 91 | h |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.