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 |
|---|---|---|---|---|---|---|
null | matplotlib-main/extern/agg24-svn/include/agg_trans_bilinear.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 5,442 | 31.592814 | 86 | h |
null | matplotlib-main/extern/agg24-svn/include/agg_rasterizer_scanline_aa.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 16,593 | 33.427386 | 93 | h |
null | matplotlib-main/extern/agg24-svn/include/agg_span_solid.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 1,702 | 30.537037 | 78 | h |
null | matplotlib-main/extern/agg24-svn/include/agg_span_gradient.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 12,187 | 31.243386 | 96 | h |
null | matplotlib-main/extern/agg24-svn/include/agg_font_cache_manager.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 14,668 | 34.778049 | 87 | h |
null | matplotlib-main/extern/agg24-svn/include/agg_vcgen_contour.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 3,452 | 35.347368 | 86 | h |
null | matplotlib-main/extern/agg24-svn/include/agg_bounding_rect.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 3,586 | 29.65812 | 79 | h |
null | matplotlib-main/extern/agg24-svn/include/agg_rasterizer_outline.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 4,260 | 27.790541 | 78 | h |
null | matplotlib-main/extern/agg24-svn/include/agg_vpgen_clip_polygon.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 2,414 | 27.75 | 78 | h |
null | matplotlib-main/extern/agg24-svn/include/agg_span_converter.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 1,950 | 33.22807 | 82 | h |
null | matplotlib-main/extern/agg24-svn/include/platform/win32/agg_win32_bmp.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 4,138 | 34.076271 | 78 | h |
null | matplotlib-main/extern/agg24-svn/include/platform/mac/agg_mac_pmap.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (McSeem)
// Copyright (C) 2002 Hansruedi Baer (MacOS support)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided ... | 2,680 | 29.465909 | 82 | h |
null | matplotlib-main/extern/agg24-svn/include/util/agg_color_conv_rgb16.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 10,701 | 36.41958 | 108 | h |
null | matplotlib-main/extern/agg24-svn/include/util/agg_color_conv.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 3,882 | 29.100775 | 90 | h |
null | matplotlib-main/extern/agg24-svn/include/util/agg_color_conv_rgb8.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 18,054 | 36.851153 | 108 | h |
null | matplotlib-main/extern/agg24-svn/include/ctrl/agg_polygon_ctrl.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 5,200 | 30.143713 | 78 | h |
null | matplotlib-main/extern/agg24-svn/include/ctrl/agg_bezier_ctrl.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 6,291 | 30.939086 | 78 | h |
null | matplotlib-main/extern/agg24-svn/include/ctrl/agg_rbox_ctrl.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 4,506 | 30.739437 | 86 | h |
null | matplotlib-main/extern/agg24-svn/include/ctrl/agg_spline_ctrl.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 5,718 | 34.74375 | 78 | h |
null | matplotlib-main/extern/agg24-svn/include/ctrl/agg_ctrl.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 3,849 | 31.352941 | 82 | h |
null | matplotlib-main/extern/agg24-svn/include/ctrl/agg_slider_ctrl.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 4,689 | 30.059603 | 88 | h |
null | matplotlib-main/extern/agg24-svn/include/ctrl/agg_scale_ctrl.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 4,369 | 28.727891 | 87 | h |
null | matplotlib-main/extern/agg24-svn/include/ctrl/agg_gamma_spline.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 3,758 | 38.15625 | 81 | h |
null | matplotlib-main/extern/agg24-svn/include/ctrl/agg_gamma_ctrl.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 6,218 | 35.368421 | 87 | h |
null | matplotlib-main/extern/agg24-svn/include/ctrl/agg_cbox_ctrl.h | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 3,621 | 31.053097 | 81 | h |
null | matplotlib-main/extern/ttconv/truetype.h | /* -*- mode: c; c-basic-offset: 4 -*- */
/*
* Modified for use within matplotlib
* 5 July 2007
* Michael Droettboom
*/
#include <stdio.h>
/*
** ~ppr/src/include/typetype.h
**
** Permission to use, copy, modify, and distribute this software and its
** documentation for any purpose and without fee is hereby grante... | 4,333 | 32.338462 | 87 | h |
null | matplotlib-main/extern/ttconv/pprdrv.h | /* -*- mode: c++; c-basic-offset: 4 -*- */
/*
* Modified for use within matplotlib
* 5 July 2007
* Michael Droettboom
*/
/*
** ~ppr/src/include/pprdrv.h
** Copyright 1995, Trinity College Computing Center.
** Written by David Chappell.
**
** Permission to use, copy, modify, and distribute this software and its
**... | 2,453 | 22.825243 | 122 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/src/for.c | /*
* Copyright (C) 2005-2015 Christoph Rupp (chris@crupp.de).
*
* 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 b... | 12,007 | 24.068894 | 80 | c |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/advancedbenchmarking/include/maropuparser.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
#ifndef SIMDCompressionAndIntersection_MAROPUPARSER_H_
#define SIMDCompressionAndIntersection_MAROPUPARSER_H_
#include <stdexcept>
#include <sstream>
#include <stdio... | 4,229 | 24.481928 | 78 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/advancedbenchmarking/include/statisticsrecorder.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
*/
#
#ifndef SIMDCompressionAndIntersection_STATISTICSRECORDER_H_
#define SIMDCompressionAndIntersection_STATISTICSRECORDER_H_
#include "common.h"
#include "timer.h"
class StatisticsRecorder {
public:
Statisti... | 2,446 | 25.89011 | 80 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/advancedbenchmarking/include/budgetedpostingcollector.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
*/
#ifndef SIMDCompressionAndIntersection_BUDGETEDPOSTINGCOLLECTOR_H_
#define SIMDCompressionAndIntersection_BUDGETEDPOSTINGCOLLECTOR_H_
#include "common.h"
#include "util.h"
#include "maropuparser.h"
#include "in... | 7,864 | 31.90795 | 80 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/include/skipping.h | /*
* This is a simple implementation of a skipping data structure and algorithms similar to
* what is described in
*
* Sanders and Transier, Intersection in Integer Inverted Indices, ALENEX 2007, 2007.
*
* As suggested in their conclusion, we leave the higher-level structure uncompressed. We also
* use differen... | 9,526 | 31.515358 | 94 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/include/simdbitpacking.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire
*/
#ifndef SIMDCompressionAndIntersection_SIMDBITPACKING_H_
#define SIMDCompressionAndIntersection_SIMDBITPACKING_H_
#include "common.h"
namespace SIMDCompressionLib {
void __SIMD_fastunpack... | 5,990 | 49.771186 | 63 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/include/deltatemplates.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Leonid Boytsov, Nathan Kurz and Daniel Lemire
*/
#ifndef SIMDCompressionAndIntersection_DELTATEMPLATES_H_
#define SIMDCompressionAndIntersection_DELTATEMPLATES_H_
#include "common.h"
namespace SIMDCompres... | 5,158 | 29.892216 | 81 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/include/boolarray.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
*/
#ifndef SIMDCompressionAndIntersection_BOOLARRAY_H_
#define SIMDCompressionAndIntersection_BOOLARRAY_H_
#include "common.h"
namespace SIMDCompressionLib {
using namespace std;
static inline int numberOfTrai... | 5,351 | 28.406593 | 79 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/include/simdvariablebyte.h | /**
* (c) Part of the copyright is to Indeed.com
* Licensed under the Apache License Version 2.0
*/
/*
* Based on an initial design by Jeff Plaisance and
* improved by Nathan Kurz.
*/
#ifndef SIMDCompressionAndIntersection_SIMDVARIABLEBYTE_H_
#define SIMDCompressionAndIntersection_SIMDVARIABLEBYTE_H_
#include ... | 15,987 | 31.364372 | 80 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/include/delta.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Leonid Boytsov, Nathan Kurz and Daniel Lemire
*/
#ifndef SIMDCompressionAndIntersection_DELTA_H_
#define SIMDCompressionAndIntersection_DELTA_H_
#include "common.h"
namespace SIMDCompressionLib {
/**
* ... | 2,132 | 23.517241 | 80 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/include/timer.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
*/
#ifndef SIMDCompressionAndIntersection_TIMER_H_
#define SIMDCompressionAndIntersection_TIMER_H_
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
namespace SIMDCompressionLib {
class WallClo... | 1,884 | 20.918605 | 76 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/include/compositecodec.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
#ifndef SIMDCompressionAndIntersection_COMPOSITECODEC_H_
#define SIMDCompressionAndIntersection_COMPOSITECODEC_H_
#include "common.h"
#include "util.h"
#include "codec... | 2,195 | 30.371429 | 80 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/include/synthetic.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire
*/
#ifndef SIMDCompressionAndIntersection_SYNTHETIC_H_
#define SIMDCompressionAndIntersection_SYNTHETIC_H_
#include "common.h"
#include "util.h"
#include "mersenne.h"
#include "intersection.h... | 11,535 | 28.579487 | 86 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/include/platform.h | /* platform.h: Cross-platform macros and compatibility shims. */
#pragma once
#include <stdint.h>
#if defined(_MSC_VER)
#define ALWAYS_INLINE __forceinline
#define CONST_FUNCTION
#define PURE_FUNCTION
#define __restrict__ __restrict
#define SIMDCOMP_ALIGNED(x) __declspec(align(x))
#else
#if defined(__GNUC__)
#define... | 1,291 | 26.489362 | 78 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/include/simdbinarypacking.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
#ifndef SIMDCompressionAndIntersection_SIMDBINARYPACKING_H_
#define SIMDCompressionAndIntersection_SIMDBINARYPACKING_H_
#include "codecs.h"
#include "simdbitpackinghe... | 15,192 | 36.606436 | 80 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/include/bitpacking.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
#ifndef SIMDCompressionAndIntersection_BITPACKING
#define SIMDCompressionAndIntersection_BITPACKING
#include <stdint.h>
#include "platform.h"
namespace SIMDCompression... | 10,143 | 56.965714 | 80 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/include/sortedbitpacking.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
#ifndef SIMDCompressionAndIntersection_SORTEDBITPACKING_H_
#define SIMDCompressionAndIntersection_SORTEDBITPACKING_H_
#include "common.h"
#include "simdbitpacking.h"
... | 5,544 | 26.587065 | 79 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/include/simdfastpfor.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
#ifndef SIMDCompressionAndIntersection_SIMDFASTPFOR_H_
#define SIMDCompressionAndIntersection_SIMDFASTPFOR_H_
#include "common.h"
#include "codecs.h"
#include "sortedb... | 9,574 | 33.196429 | 81 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/include/binarypacking.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
#ifndef SIMDCompressionAndIntersection_BINARYPACKING_H_
#define SIMDCompressionAndIntersection_BINARYPACKING_H_
#include "codecs.h"
#include "bitpackinghelpers.h"
#in... | 6,892 | 35.664894 | 79 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/include/for.h | /*
* Copyright (C) 2005-2015 Christoph Rupp (chris@crupp.de).
*
* 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 b... | 10,154 | 34.506993 | 80 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/include/frameofreference.h |
#ifndef INCLUDE_FRAMEOFREFERENCE_H_
#define INCLUDE_FRAMEOFREFERENCE_H_
#include "common.h"
#include "codecs.h"
#include "util.h"
namespace SIMDCompressionLib {
/**
* Simple implementation of FOR compression using blocks of
* 32 integers.
*
* This implementation is inferior to ForCODEC. Please use
* ForCODEC ... | 4,497 | 32.318519 | 80 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/include/util.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire
*/
#ifndef SIMDCompressionAndIntersection_UTIL_H_
#define SIMDCompressionAndIntersection_UTIL_H_
#include "common.h"
namespace SIMDCompressionLib {
inline uint32_t random(int b) {
if (b =... | 3,563 | 27.062992 | 80 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/include/streamvariablebyte.h | #ifndef SIMDCompressionAndIntersection_STREAMVARIABLEBYTE_
#define SIMDCompressionAndIntersection_STREAMVARIABLEBYTE_
#include "common.h"
#include "codecs.h"
namespace SIMDCompressionLib {
/**
* StreamVByte is an integer CODEC invented by Nathan Kurz.
*/
extern "C" {
uint64_t svb_encode(uint8_t *out, const uint32... | 9,874 | 38.818548 | 80 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/include/intersection.h |
#ifndef SIMDCompressionAndIntersection_INTERSECTION_H_
#define SIMDCompressionAndIntersection_INTERSECTION_H_
#include "common.h"
namespace SIMDCompressionLib {
using namespace std;
/*
* Given two arrays, this writes the intersection to out. Returns the
* cardinality of the intersection.
*/
typedef size_t (*int... | 3,421 | 30.394495 | 80 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/include/hybm2.h | /*
* This is an implementation of the hyb+m2 method proposed in:
*
* J. S. Culpepper and A. Moffat. Efficient set intersection for
* inverted indexing. ACM Trans. Inf. Syst., 29(1):1:1�1:25, Dec. 2010.
*
* Implemented by Daniel Lemire
*/
#ifndef SIMDCompressionAndIntersection_HYBM2_H_
#define SIMDCompressi... | 21,561 | 32.533437 | 81 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/include/usimdbitpacking.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire
*/
#ifndef SIMDCompressionAndIntersection_USIMDBITPACKING_H_
#define SIMDCompressionAndIntersection_USIMDBITPACKING_H_
#include "common.h"
namespace SIMDCompressionLib {
void __uSIMD_fastunp... | 9,556 | 62.291391 | 79 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/include/forcodec.h | /*
* Copyright (C) 2005-2015 Christoph Rupp (chris@crupp.de).
*
* 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 b... | 2,843 | 29.580645 | 78 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/include/integratedbitpacking.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
#ifndef SIMDCompressionAndIntersection_INTEGRATEDBITPACKING
#define SIMDCompressionAndIntersection_INTEGRATEDBITPACKING
#include <stdint.h>
#include "platform.h"
names... | 12,002 | 54.313364 | 62 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/include/fastpfor.h | /*
* This is the non-SIMD version of FastPFOR.
* It is not recommended per se, only provided for
* comparison purposes.
*/
#ifndef SIMDCompressionAndIntersection_FASTPFOR_H_
#define SIMDCompressionAndIntersection_FASTPFOR_H_
#include "common.h"
#include "codecs.h"
#include "bitpackinghelpers.h"
#include "util.h"
... | 11,680 | 30.741848 | 81 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/include/simdbitpackinghelpers.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Leonid Boytsov, Nathan Kurz and Daniel Lemire
*/
#ifndef SIMDCompressionAndIntersection_SIMD_BITPACKING_HELPERS_H_
#define SIMDCompressionAndIntersection_SIMD_BITPACKING_HELPERS_H_
#include "common.h"
#inc... | 13,422 | 41.210692 | 106 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/include/codecfactory.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
#ifndef SIMDCompressionAndIntersection_CODECFACTORY_H_
#define SIMDCompressionAndIntersection_CODECFACTORY_H_
#include "common.h"
#include "codecs.h"
#include "common... | 2,892 | 25.787037 | 77 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/include/codecs.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Daniel Lemire, http://lemire.me/en/
*/
#ifndef SIMDCompressionAndIntersection_CODECS_H_
#define SIMDCompressionAndIntersection_CODECS_H_
#include "common.h"
#include "util.h"
#include "bitpackinghelpers.h"... | 4,583 | 33.727273 | 80 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/include/VarIntG8IU.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*/
#ifndef __SSSE3__
#pragma message \
"Disabling varintg8iu due to lack of SSSE3 support, try adding -mssse3 or the equivalent on your compiler"
#els... | 7,205 | 29.277311 | 110 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/include/mersenne.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*/
#ifndef SIMDCompressionAndIntersection_MERSENNE_H_
#define SIMDCompressionAndIntersection_MERSENNE_H_
#include "common.h"
#include "util.h"
namespace SIMDCompressionLib {
/**
* Mersenne twister - random numbe... | 2,324 | 23.734043 | 80 | h |
SIMDCompressionAndIntersection | SIMDCompressionAndIntersection-master/include/bitpackinghelpers.h | /**
* This code is released under the
* Apache License Version 2.0 http://www.apache.org/licenses/.
*
* (c) Leonid Boytsov, Nathan Kurz and Daniel Lemire
*/
#ifndef SIMDCompressionAndIntersection_BITPACKINGHELPERS_H_
#define SIMDCompressionAndIntersection_BITPACKINGHELPERS_H_
#include "bitpacking.h"
#include "in... | 17,882 | 24.842486 | 80 | h |
null | HyperPUT-main/hyperput.h | /* ================================================================================================
*
* FILE:
* hyperput.h
*
* DESCRIPTION:
* List of transformations to produce PUTs.
*
* ================================================================================================
*/
// List ... | 4,620 | 23.579787 | 106 | h |
null | HyperPUT-main/initial_progr/argv-fuzz-inl-default.h | /*
american fuzzy lop++ - sample argv fuzzing wrapper
------------------------------------------------
Originally written by Michal Zalewski
Copyright 2015 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance... | 2,224 | 23.450549 | 78 | h |
null | HyperPUT-main/initial_progr/argv-fuzz-inl.h | /*
american fuzzy lop++ - sample argv fuzzing wrapper
------------------------------------------------
Originally written by Michal Zalewski
Copyright 2015 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance... | 2,224 | 23.450549 | 78 | h |
MAMoC-iOS | MAMoC-iOS-master/Pods/Target Support Files/SystemServices/SystemServices-umbrella.h | #ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
#import "SystemServices.h"
#import "route.h"
#import "SSAccelerometerInfo.h"
#import "SSAccessoryInfo.h"
#import "SSApplicati... | 741 | 21.484848 | 68 | h |
MAMoC-iOS | MAMoC-iOS-master/Pods/SystemServices/System Services/SystemServices.h | //
// SystemServices.h
// SystemServicesDemo
//
// Created by Shmoopi LLC on 9/15/12.
// Copyright (c) 2012 Shmoopi LLC. All rights reserved.
//
#import "SSAccelerometerInfo.h"
#import "SSAccessoryInfo.h"
#import "SSApplicationInfo.h"
#import "SSBatteryInfo.h"
#import "SSCarrierInfo.h"
#import "SSDiskInfo.h"
#impo... | 7,939 | 26.569444 | 81 | h |
MAMoC-iOS | MAMoC-iOS-master/Pods/SystemServices/System Services/Utilities/route.h | /*
* Copyright (c) 2000-2016 Apple Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file exc... | 10,830 | 42.324 | 77 | h |
MAMoC-iOS | MAMoC-iOS-master/Pods/SystemServices/System Services/Utilities/SSAccelerometerInfo.h | //
// SSAccelerometerInfo.h
// SystemServicesDemo
//
// Created by Shmoopi LLC on 9/20/12.
// Copyright (c) 2012 Shmoopi LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
// Core Motion
#import <CoreMotion/CoreMotion.h>
@interface SSAccelerometerInfo : NSObject {
CMMotion... | 1,875 | 25.8 | 85 | h |
NLSTV | NLSTV-master/mexFunctions/source/proxSpMat2xNc.c | #include <stdlib.h>
#include <mex.h>
#include <math.h>
#include <omp.h>
#include "matrix.h"
#include "matLib2xNc.h"
/*mex -v mexFunctions/source/proxSpMat2xNc.c -lmwblas
* CFLAGS="\$CFLAGS -fopenmp -std=c99" LDFLAGS="\$LDFLAGS -fopenmp" -largeArrayDims
* -ImexFunctions/headers/ -outdir mexFunctions/source/ */
/* I... | 3,221 | 27.767857 | 109 | c |
codeql | codeql-master/cpp/ql/src/Security/CWE/CWE-190/ComparisonWithWiderType.c | void main(int argc, char **argv) {
uint32_t big_num = INT32_MAX;
char buf[big_num];
int16_t bytes_received = 0;
int max_get = INT16_MAX + 1;
// BAD: 'bytes_received' is compared with a value of a wider type.
// 'bytes_received' overflows before reaching 'max_get',
// causing an infinite loop
while (bytes_rece... | 678 | 22.413793 | 69 | c |
codeql | codeql-master/cpp/ql/src/Security/CWE/CWE-457/ConditionallyUninitializedVariableGood.c | struct DeviceConfig {
bool isEnabled;
int channel;
};
int initDeviceConfig(DeviceConfig *ref, int deviceNumber) {
if (deviceNumber >= getMaxDevices()) {
// No device with that number, return -1 to indicate failure
return -1;
}
// Device with that number, fetch parameters and initialize struct
ref->... | 774 | 26.678571 | 88 | c |
codeql | codeql-master/cpp/ql/src/Security/CWE/CWE-457/ConditionallyUninitializedVariableBad.c | struct DeviceConfig {
bool isEnabled;
int channel;
};
int initDeviceConfig(DeviceConfig *ref, int deviceNumber) {
if (deviceNumber >= getMaxDevices()) {
// No device with that number, return -1 to indicate failure
return -1;
}
// Device with that number, fetch parameters and initialize struct
ref->... | 705 | 26.153846 | 72 | c |
codeql | codeql-master/cpp/ql/src/Security/CWE/CWE-079/CgiXss.c | void bad_server() {
char* query = getenv("QUERY_STRING");
puts("<p>Query results for ");
// BAD: Printing out an HTTP parameter with no escaping
puts(query);
puts("\n<p>\n");
puts(do_search(query));
}
void good_server() {
char* query = getenv("QUERY_STRING");
puts("<p>Query results for ");
// GOOD: E... | 504 | 23.047619 | 57 | c |
codeql | codeql-master/cpp/ql/src/Security/CWE/CWE-022/TaintedPath.c | int main(int argc, char** argv) {
char *userAndFile = argv[2];
{
char fileBuffer[FILENAME_MAX] = "/home/";
char *fileName = fileBuffer;
size_t len = strlen(fileName);
strncat(fileName+len, userAndFile, FILENAME_MAX-len-1);
// BAD: a string from the user is used in a filename
fopen(fileNam... | 606 | 25.391304 | 59 | c |
codeql | codeql-master/cpp/ql/src/Security/CWE/CWE-313/CleartextSqliteDatabase.c |
void bad(void) {
char *password = "cleartext password";
sqlite3 *credentialsDB;
sqlite3_stmt *stmt;
if (sqlite3_open("credentials.db", &credentialsDB) == SQLITE_OK) {
// BAD: database opened without encryption being enabled
sqlite3_exec(credentialsDB, "CREATE TABLE IF NOT EXISTS creds (password TEXT);... | 1,319 | 34.675676 | 115 | c |
codeql | codeql-master/cpp/ql/src/Security/CWE/CWE-078/ExecTainted.c | int main(int argc, char** argv) {
char *userName = argv[2];
{
// BAD: a string from the user is injected directly into
// a command line.
char command1[1000] = {0};
sprintf(command1, "userinfo -v \"%s\"", userName);
system(command1);
}
{
// GOOD: the user string is encoded by a lib... | 543 | 24.904762 | 61 | c |
codeql | codeql-master/cpp/ql/test/successor-tests/switchstmt/switchbody/switchbody.c | // In a standard switch statement, each exit node of the conditional expression
// has an edge to the block statement of the body, and this block statement
// has an edge to each switch case.
int switch_block(int i) {
switch (i < 0 ? -i : i) {
case 0:
return 1;
default:
return i;
}
}
// If the body of ... | 953 | 25.5 | 79 | c |
codeql | codeql-master/cpp/ql/test/library-tests/syntax-zoo/builtin.c | // semmle-extractor-options: --clang
#define vector(elcount, type) __attribute__((vector_size((elcount)*sizeof(type)))) type
int builtin(int x, int y) {
int acc;
acc += __builtin_choose_expr(0, x+0, y);
__builtin_assume(x != 42);
acc += (int)__builtin_readcyclecounter();
vector(4, int) vec = { 0, 1, 2,... | 1,433 | 23.724138 | 88 | c |
codeql | codeql-master/cpp/ql/test/library-tests/syntax-zoo/switchbody.c | // In a standard switch statement, each exit node of the conditional expression
// has an edge to the block statement of the body, and this block statement
// has an edge to each switch case.
int switch_block(int i) {
switch (i < 0 ? -i : i) {
case 0:
return 1;
default:
return i;
}
}
// If the body of ... | 953 | 25.5 | 79 | c |
codeql | codeql-master/cpp/ql/test/library-tests/builtins/functions_file/test.c | long f(int a, int b, int c) {
// A builtin from the builtin_functions_file.
int i1 = __builtin_foobar(a);
// A builtin that's not in the file, but the extractor should handle, given the
// --gnu_version flag we pass in.
int i2;
__builtin_add_overflow(a, b, &i2);
// A builtin that would normally be defin... | 701 | 32.428571 | 109 | c |
codeql | codeql-master/cpp/ql/test/library-tests/macros/arguments/test.c | #include "top_and_nested.h"
#define ID(x) x
// semmle-extractor-options: -DCMD_LINE_MACRO(x,y)=x+y
top(1)
top("\"Hello "
"world\""
)
top(
top(2) /* comment here top(3) */ nested(4)
)
// This code is rejected by any sensible compiler. It is included in this test
// to ensure that it does not crash the extr... | 2,039 | 22.448276 | 79 | c |
codeql | codeql-master/cpp/ql/test/library-tests/exprs/unevaluated/typeinfo.h | namespace std {
class exception {
};
class type_info
{
public:
virtual ~type_info();
bool operator==(const type_info& rhs) const noexcept;
bool operator!=(const type_info& rhs) const noexcept;
bool before(const type_info& rhs) const noexcept;
int hash_code() const noexcept;
const char* name() c... | 883 | 23.555556 | 57 | h |
codeql | codeql-master/cpp/ql/test/library-tests/scanf/test.c | /** standard printf functions */
#define FILE void
typedef unsigned int wchar_t;
int scanf(const char *format, ...);
int fscanf(FILE *stream, const char *format, ...);
int sscanf(const char *s, const char *format, ...);
int swscanf(const wchar_t* ws, const wchar_t* format, ...);
int main(int argc, char *argv[])
{
c... | 531 | 21.166667 | 59 | c |
codeql | codeql-master/cpp/ql/test/library-tests/rangeanalysis/SimpleRangeAnalysis/minmax.c | // semmle-extractor-options: --gnu_version 40400
// Note: this file uses statement expressions, which are a GNU extension,
// so it has an options file to specify the compiler version. The statement
// expression extension is described here:
// https://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html
int printf(const c... | 748 | 25.75 | 75 | c |
codeql | codeql-master/cpp/ql/test/library-tests/rangeanalysis/SimpleRangeAnalysis/inline_assembly.c | // The ASM statements are
// causing problems, because our SSA analysis does not notice that they
// might change the value of `x`. This was a latent bug that came out
// of the woodwork when we added support for statement expressions.
int printf(const char *format, ...);
int main() {
unsigned int x = 0, y;
y = 1... | 644 | 24.8 | 92 | c |
codeql | codeql-master/cpp/ql/test/library-tests/blocks/c/blocks.c | // Compilable with:
// clang -fblocks -c blocks.c
void (*functionPtrReturningVoidWithVoidArgument)(void);
int (*functionPtrReturningIntWithIntAndCharArguments)(int, char);
void (*arrayOfTenFunctionPtrsReturningVoidWithIntArgument[10])(int);
void (^blockReturningVoidWithVoidArgument)(void);
int (^blockReturningIntWith... | 2,186 | 25.670732 | 111 | c |
codeql | codeql-master/cpp/ql/test/library-tests/attributes/type_attributes/type_attributes.c | // Compilable with
// gcc -c type_attributes.c
// clang -c type_attributes.c
struct __attribute__((__packed__)) my_packed_struct {
char c;
int i;
};
typedef union __attribute__((__transparent_union__)) {
int i;
int j;
} tu;
// This union can't be made transparent, as the types aren't the same size
... | 580 | 20.518519 | 74 | c |
codeql | codeql-master/cpp/ql/test/library-tests/attributes/routine_attributes/routine_attributes.c | static int dummy() {}
static int named_weakref() __attribute__ ((weakref ("dummy")));
static int aliased_weakref() __attribute__ ((weakref, alias ("dummy")));
static int plain_weakref() __attribute__ ((weakref));
static int plain_alias() __attribute__ ((alias ("dummy")));
static int init_fn() __attribute__((construct... | 897 | 39.818182 | 108 | c |
codeql | codeql-master/cpp/ql/test/library-tests/attributes/enumerators/enumerators.c | // Some source code checks for enumerator_attributes prior to using enumerator attributes:
enum OperationMode {
OM_Invalid,
OM_Normal,
OM_Terrified
#if __has_feature(enumerator_attributes)
__attribute__((deprecated))
#endif
,
OM_AbortOnError
#if __has_feature(enumerator_attributes)
__attribute__((deprecat... | 703 | 28.333333 | 101 | c |
codeql | codeql-master/cpp/ql/test/library-tests/attributes/gnu_visibility/visibility.c | int h_var __attribute__((visibility("hidden")));
int p_var __attribute__((visibility("protected")));
int i_var __attribute__((visibility("internal")));
int d_var __attribute__((visibility("default")));
__attribute__((visibility("hidden"))) void h_rout();
__attribute__((visibility("protected"))) void p_rout();
__att... | 664 | 43.333333 | 58 | c |
codeql | codeql-master/cpp/ql/test/library-tests/padding/test.c | #include "size_asserts.h"
CASSERT_MSVC(sizeof(long) == 4);
CASSERT_GCC(sizeof(long) == sizeof(void*));
struct Integers_Packed
{
// 0
unsigned long long ull;
// 8
long long ll;
// 16
unsigned long ul;
// 24(GCC64); 20(GCC32, MSVC)
long l;
// 32(GCC64); 24(GCC32, MSVC)
unsigned int ui;
// 36(GCC64);... | 3,057 | 21.992481 | 54 | c |
codeql | codeql-master/cpp/ql/test/library-tests/padding/bitfields.c | #include "size_asserts.h"
// Bitfield packing:
// (1) A struct containing a bitfield with declared type T (e.g. T bf : 7) will be aligned as if it
// contained an actual member variable of type T. Thus, a struct containing a bitfield 'unsigned int bf : 8'
// will have an alignment of at least alignof(unsigned ... | 5,346 | 23.869767 | 113 | c |
codeql | codeql-master/cpp/ql/test/library-tests/padding/size_asserts.h | // Static assert macro
#define CASSERT(condition) typedef char cassertTypedef[((condition) != 0) ? 1 : -1]
#if defined(_MSC_VER)
#define CASSERT_MSVC(condition) CASSERT(condition)
#define CASSERT_GCC(condition)
#if defined(_WIN64)
#define TARGET_BIT_SIZE 64
#else
#define TARGET_BIT_SIZE 32
#endif
#elif defined(__GNUC_... | 1,115 | 22.744681 | 83 | h |
codeql | codeql-master/cpp/ql/test/library-tests/structs/compatible_c/b1.c | // semmle-extractor-options: --microsoft --edg --c99
struct AppleCompatible { // Definitions of Apple are exactly the same in b1.c and b2.c
int apple_x;
};
// Definitions of Banana are compatible but this copy uses int for the field type
struct BananaCompatible {
int banana_x;
};
// Definitions of Cherry are not ... | 2,390 | 27.129412 | 99 | c |
codeql | codeql-master/cpp/ql/test/library-tests/structs/compatible_c/a1.c | // Note: files `a1.c` and `a2.c` are completely identical.
// The structs behind the two `anon_empty_t` types in `a1.c` and `a2.c` are
// extracted as anonymous structs. We should still identify them as the same
// struct, since they are considered compatible types according to the language.
typedef struct { } anon_em... | 1,160 | 27.317073 | 81 | c |
codeql | codeql-master/cpp/ql/test/library-tests/structs/compatible_c/b2.c | // semmle-extractor-options: --microsoft --edg --c99
struct AppleCompatible { // Definitions of Apple are exactly the same in b1.c and b2.c
int apple_x;
};
// Definitions of Banana are compatible but this copy uses a typedef
typedef int MyInt;
typedef MyInt IntType;
struct BananaCompatible {
IntType banana_x;
};
... | 2,271 | 26.047619 | 99 | c |
codeql | codeql-master/cpp/ql/test/library-tests/structs/compatible_c/a2.c | // Note: files `a1.c` and `a2.c` are completely identical.
// The structs behind the two `anon_empty_t` types in `a1.c` and `a2.c` are
// extracted as anonymous structs. We should still identify them as the same
// struct, since they are considered compatible types according to the language.
typedef struct { } anon_em... | 1,160 | 27.317073 | 81 | c |
codeql | codeql-master/cpp/ql/test/library-tests/structs/mutual_recursion/a.c | struct Node {
struct Node *next;
};
struct CompatibleB;
struct CompatibleC;
struct CompatibleA {
struct CompatibleB *b;
};
struct CompatibleB {
struct CompatibleC *c;
};
// The 2 definitions of CompatibleC use different but compatible types for x
struct CompatibleC {
struct CompatibleA *a;
int x;
};
// T... | 1,455 | 22.483871 | 100 | c |
codeql | codeql-master/cpp/ql/test/library-tests/abi/packed.c |
struct stru {
union {
int i;
char s[6];
} __attribute__((packed));
};
void f(void)
{
char test1[((int)sizeof(int)) - 5]; // 4 - 5 = -1 error
char test2[((int)sizeof(int)) - 4]; // 4 - 4 = 0
char test3[((int)sizeof(int)) - 3]; // 4 - 3 = 1
char test4[((... | 684 | 30.136364 | 67 | c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.