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 |
|---|---|---|---|---|---|---|
haf_grasping | haf_grasping-master/libsvm-3.12/svm.h | #ifndef _LIBSVM_H
#define _LIBSVM_H
#define LIBSVM_VERSION 312
#ifdef __cplusplus
extern "C" {
#endif
extern int libsvm_version;
struct svm_node
{
int index;
double value;
};
struct svm_problem
{
int l;
double *y;
struct svm_node **x;
};
enum { C_SVC, NU_SVC, ONE_CLASS, EPSILON_SVR, NU_SVR }; /* svm_type */
... | 3,129 | 29.686275 | 122 | h |
haf_grasping | haf_grasping-master/libsvm-3.12/svm-train.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include "svm.h"
#define Malloc(type,n) (type *)malloc((n)*sizeof(type))
void print_null(const char *s) {}
void exit_with_help()
{
printf(
"Usage: svm-train [options] training_set_file [model_file]\n"
"options:\n"
"-s... | 8,891 | 22.4 | 113 | c |
haf_grasping | haf_grasping-master/libsvm-3.12/matlab/svm_model_matlab.c | #include <stdlib.h>
#include <string.h>
#include "../svm.h"
#include "mex.h"
#ifdef MX_API_VER
#if MX_API_VER < 0x07030000
typedef int mwIndex;
#endif
#endif
#define NUM_OF_RETURN_FIELD 10
#define Malloc(type,n) (type *)malloc((n)*sizeof(type))
static const char *field_names[] = {
"Parameters",
"nr_class",
"tot... | 7,722 | 20.940341 | 99 | c |
haf_grasping | haf_grasping-master/libsvm-3.12/matlab/svmtrain.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "../svm.h"
#include "mex.h"
#include "svm_model_matlab.h"
#ifdef MX_API_VER
#if MX_API_VER < 0x07030000
typedef int mwIndex;
#endif
#endif
#define CMD_LEN 2048
#define Malloc(type,n) (type *)malloc((n)*sizeof(type))
void print_nu... | 11,371 | 22.941053 | 113 | c |
haf_grasping | haf_grasping-master/libsvm-3.12/svm-toy/gtk/callbacks.h | #include <gtk/gtk.h>
#ifdef __cplusplus
extern "C" {
#endif
void
on_window1_destroy (GtkObject *object,
gpointer user_data);
gboolean
on_draw_main_button_press_event (GtkWidget *widget,
GdkE... | 1,765 | 31.109091 | 68 | h |
haf_grasping | haf_grasping-master/libsvm-3.12/svm-toy/gtk/interface.c | /*
* DO NOT EDIT THIS FILE - it is generated by Glade.
*/
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>
#include "callbacks.h"
#include "interface.h"
GtkWidget*
create_window (void)
{
GtkWidget *window;
GtkWidget *vbox1;
... | 6,457 | 38.139394 | 85 | c |
haf_grasping | haf_grasping-master/include/CIntImage_to_Featurevec.h | /*
* David Fischinger -TUW
* 18.11.2011
*
* CLASS for calculating Feature Vector from Integral images
*
* OUTDATED!!!!!
*
* USAGE:
* - generate ListOfIIFilenames.txt in correct folder
* - change all Parameters
* - execute
*
*
* input:
* Filenames (generated with: "ls pcd* -1 > ListOfIIFilenames.txt"... | 1,904 | 22.8125 | 131 | h |
DeepWeeds | DeepWeeds-master/tensorrt/src/common/common.h | #ifndef _TRT_COMMON_H_
#define _TRT_COMMON_H_
#include "NvInfer.h"
#include "NvOnnxConfig.h"
#include "NvOnnxParser.h"
#include <cuda_runtime_api.h>
#include <algorithm>
#include <cassert>
#include <fstream>
#include <iostream>
#include <iterator>
#include <map>
#include <memory>
#include <numeric>
#include <string>
#i... | 12,234 | 29.359801 | 123 | h |
ParaPlan | ParaPlan-master/solver/reach.h | #pragma once
#include <unordered_set>
#include "succ.h"
#include "helpers.h"
#include "globals.h"
using namespace std;
bool isFinState(const size_t edgeIndex, const pair<double, double>& borders, const SPDIReachTask& reachTask);
pair<bool, pair<double, double>> IterateCycleAndCheckFinalState(
const vector<size... | 991 | 25.105263 | 109 | h |
ParaPlan | ParaPlan-master/solver/helpers.h | #pragma once
#include <string>
#include <vector>
#include <unordered_map>
#include "vec2.h"
#define inf 1000000
struct Edge {
Edge(const vec2& s, const vec2& e)
: Start(s)
, Dir(e - s)
{}
vec2 Start;
vec2 Dir;
};
struct SPDI {
std::vector<Edge> Edges;
std::vector<std::p... | 1,018 | 23.261905 | 91 | h |
ParaPlan | ParaPlan-master/generator/VParabola.h | #pragma once
#ifndef VParabola_h
#define VParabola_h
#include "VPoint.h"
#include "VEdge.h"
/*
Parabolas and events have pointers to each other, so we declare class VEvent, which will be defined later.
*/
class VEvent;
/*
A class that stores information about an item in beachline sequence (see Fortune's al... | 2,405 | 26.340909 | 110 | h |
ParaPlan | ParaPlan-master/generator/Voronoi.h | #pragma once
#ifndef Voronoi_h
#define Voronoi_h
#include <list>
#include <queue>
#include <set>
#include "VPoint.h"
#include "VEdge.h"
#include "VParabola.h"
#include "VEvent.h"
#include <functional>
namespace vor {
typedef std::list<VPoint*> Vertices;
typedef std::list<VEdge*> Edges;
class Voronoi {
... | 2,778 | 31.313953 | 115 | h |
ParaPlan | ParaPlan-master/generator/VEdge.h | #pragma once
#ifndef VEdge_h
#define VEdge_h
#include "VPoint.h"
#include <iostream>
/*
A class that stores an edge in Voronoi diagram
start : pointer to start point
end : pointer to end point
left : pointer to Voronoi place on the left side of edge
right : pointer to Voronoi... | 1,196 | 21.166667 | 132 | h |
ParaPlan | ParaPlan-master/generator/VEvent.h | #pragma once
#ifndef VEvent_h
#define VEvent_h
#include <iostream>
#include "VPoint.h"
#include "VParabola.h"
/*
The class for storing place / circle event in event queue.
point : the point at which current event occurs (top circle point for circle event, focus point for place event)
pe ... | 1,152 | 21.173077 | 123 | h |
libmutlock | libmutlock-master/src/mutlocks/sem_tcp2_mutlock.h | #ifndef _SEM_TCP2_FIN_MUTLOCK_H_
#define _SEM_TCP2_FIN_MUTLOCK_H_
#define NAME sem_tcp2
#define sem_tcp2_SPIN_API_INIT __FIFO_SPIN_API_INIT
#define sem_tcp2_SPIN_API_DESTROY __FIFO_SPIN_API_DESTROY
#define sem_tcp2_SPIN_API_LOCK __FIFO_SPIN_API_LOCK
#define sem_tcp2_SPIN_API_UNLOCK __FIFO_SPIN_API_UNLO... | 1,186 | 28.675 | 59 | h |
libmutlock | libmutlock-master/src/mutlocks/thc12_mutlock.h | #ifndef _THC12_FIN_MUTLOCK_H_
#define _THC12_FIN_MUTLOCK_H_
#define NAME thc12
#define thc12_SPIN_API_INIT __NOFIFO_SPIN_API_INIT
#define thc12_SPIN_API_DESTROY __NOFIFO_SPIN_API_DESTROY
#define thc12_SPIN_API_LOCK __NOFIFO_SPIN_API_LOCK
#define thc12_SPIN_API_UNLOCK __NOFIFO_SPIN_API_UNLOCK
#define t... | 1,169 | 28.25 | 58 | h |
libmutlock | libmutlock-master/src/mutlocks/sem_thc12_mutlock.h | #ifndef _SEM_THC12_FIN_MUTLOCK_H_
#define _SEM_THC12_FIN_MUTLOCK_H_
#define NAME sem_thc12
#define sem_thc12_SPIN_API_INIT __NOFIFO_SPIN_API_INIT
#define sem_thc12_SPIN_API_DESTROY __NOFIFO_SPIN_API_DESTROY
#define sem_thc12_SPIN_API_LOCK __NOFIFO_SPIN_API_LOCK
#define sem_thc12_SPIN_API_UNLOCK __NOFIF... | 1,205 | 29.15 | 62 | h |
libmutlock | libmutlock-master/src/mutlocks/sem_nss2_mutlock.h | #ifndef _SEM_NSS2_FIN_MUTLOCK_H_
#define _SEM_NSS2_FIN_MUTLOCK_H_
#define NAME sem_nss2
#define sem_nss2_SPIN_API_INIT __NOFIFO_SPIN_API_INIT
#define sem_nss2_SPIN_API_DESTROY __NOFIFO_SPIN_API_DESTROY
#define sem_nss2_SPIN_API_LOCK __NOFIFO_SPIN_API_LOCK
#define sem_nss2_SPIN_API_UNLOCK __NOFIFO_SPIN_... | 1,194 | 28.875 | 61 | h |
libmutlock | libmutlock-master/src/mutlocks/thc1_mutlock.h | #ifndef _THC1_FIN_MUTLOCK_H_
#define _THC1_FIN_MUTLOCK_H_
#define NAME thc1
#define thc1_SPIN_API_INIT __NOFIFO_SPIN_API_INIT
#define thc1_SPIN_API_DESTROY __NOFIFO_SPIN_API_DESTROY
#define thc1_SPIN_API_LOCK __NOFIFO_SPIN_API_LOCK
#define thc1_SPIN_API_UNLOCK __NOFIFO_SPIN_API_UNLOCK
#define thc1_SLE... | 1,158 | 27.975 | 57 | h |
libmutlock | libmutlock-master/src/mutlocks/sem_tcp_mutlock.h | #ifndef _SEM_TCP_FIN_MUTLOCK_H_
#define _SEM_TCP_FIN_MUTLOCK_H_
#define NAME sem_tcp
#define sem_tcp_SPIN_API_INIT __NOFIFO_SPIN_API_INIT
#define sem_tcp_SPIN_API_DESTROY __NOFIFO_SPIN_API_DESTROY
#define sem_tcp_SPIN_API_LOCK __NOFIFO_SPIN_API_LOCK
#define sem_tcp_SPIN_API_UNLOCK __NOFIFO_SPIN_API_UNL... | 1,183 | 28.6 | 60 | h |
libmutlock | libmutlock-master/src/mutlocks/sem_thc1_mutlock.h | #ifndef _SEM_THC1_FIN_MUTLOCK_H_
#define _SEM_THC1_FIN_MUTLOCK_H_
#define NAME sem_thc1
#define sem_thc1_SPIN_API_INIT __NOFIFO_SPIN_API_INIT
#define sem_thc1_SPIN_API_DESTROY __NOFIFO_SPIN_API_DESTROY
#define sem_thc1_SPIN_API_LOCK __NOFIFO_SPIN_API_LOCK
#define sem_thc1_SPIN_API_UNLOCK __NOFIFO_SPIN_... | 1,194 | 28.875 | 61 | h |
libmutlock | libmutlock-master/src/mutlocks/tcp_mutlock.h | #ifndef _TCP_FIN_MUTLOCK_H_
#define _TCP_FIN_MUTLOCK_H_
#define NAME tcp
#define tcp_SPIN_API_INIT __NOFIFO_SPIN_API_INIT
#define tcp_SPIN_API_DESTROY __NOFIFO_SPIN_API_DESTROY
#define tcp_SPIN_API_LOCK __NOFIFO_SPIN_API_LOCK
#define tcp_SPIN_API_UNLOCK __NOFIFO_SPIN_API_UNLOCK
#define tcp_SLEEP_API_I... | 1,147 | 27.7 | 56 | h |
libmutlock | libmutlock-master/src/mutlocks/freq_mutlock.c | #include "freq_mutlock.h"
#define NAME freq
/*
* Creates the mutable lock
*/
int freq_mutlock_wrap_init(freq_mutlock_wrapper_t* mutlock, __HLOCK_PARAM_OBJ(NAME)* params) {
if (!mutlock) return FAIL;
__HLOCK_OBJ(NAME)* lock = (__HLOCK_OBJ(NAME)*)mutlock;
MUTLOCK_INIT(lock);
mutlock->inccnt = 0;
mutlock->d... | 2,550 | 23.295238 | 95 | c |
libmutlock | libmutlock-master/src/mutlocks/freq_mutlock.h | #ifndef _FREQ_MUTLOCK_H_
#define _FREQ_MUTLOCK_H_
#define NAME freq
#define freq_SPIN_API_INIT __NOFIFO_SPIN_API_INIT
#define freq_SPIN_API_DESTROY __NOFIFO_SPIN_API_DESTROY
#define freq_SPIN_API_LOCK __NOFIFO_SPIN_API_LOCK
#define freq_SPIN_API_UNLOCK __NOFIFO_SPIN_API_UNLOCK
#define freq_SLEEP_API_I... | 1,820 | 25.779412 | 78 | h |
libmutlock | libmutlock-master/src/mutlocks/sem_nss_mutlock.h | #ifndef _SEM_NSS_FIN_MUTLOCK_H_
#define _SEM_NSS_FIN_MUTLOCK_H_
#define NAME sem_nss
#define sem_nss_SPIN_API_INIT __NOFIFO_SPIN_API_INIT
#define sem_nss_SPIN_API_DESTROY __NOFIFO_SPIN_API_DESTROY
#define sem_nss_SPIN_API_LOCK __NOFIFO_SPIN_API_LOCK
#define sem_nss_SPIN_API_UNLOCK __NOFIFO_SPIN_API_UNL... | 1,183 | 28.6 | 60 | h |
libmutlock | libmutlock-master/src/mutlocks/nss2_mutlock.h | #ifndef _NSS2_FIN_MUTLOCK_H_
#define _NSS2_FIN_MUTLOCK_H_
#define NAME nss2
#define nss2_SPIN_API_INIT __NOFIFO_SPIN_API_INIT
#define nss2_SPIN_API_DESTROY __NOFIFO_SPIN_API_DESTROY
#define nss2_SPIN_API_LOCK __NOFIFO_SPIN_API_LOCK
#define nss2_SPIN_API_UNLOCK __NOFIFO_SPIN_API_UNLOCK
#define nss2_SLE... | 1,158 | 27.975 | 57 | h |
libmutlock | libmutlock-master/src/mutlocks/nss_mutlock.h | #ifndef _NSS_FIN_MUTLOCK_H_
#define _NSS_FIN_MUTLOCK_H_
#define NAME nss
#define nss_SPIN_API_INIT __NOFIFO_SPIN_API_INIT
#define nss_SPIN_API_DESTROY __NOFIFO_SPIN_API_DESTROY
#define nss_SPIN_API_LOCK __NOFIFO_SPIN_API_LOCK
#define nss_SPIN_API_UNLOCK __NOFIFO_SPIN_API_UNLOCK
#define nss_SLEEP_API_I... | 1,147 | 27.7 | 56 | h |
libmutlock | libmutlock-master/src/mutlocks/sem_freq_mutlock.h | #ifndef _SEM_FREQ_MUTLOCK_H_
#define _SEM_FREQ_MUTLOCK_H_
#define NAME sem_freq
#define sem_freq_SPIN_API_INIT __NOFIFO_SPIN_API_INIT
#define sem_freq_SPIN_API_DESTROY __NOFIFO_SPIN_API_DESTROY
#define sem_freq_SPIN_API_LOCK __NOFIFO_SPIN_API_LOCK
#define sem_freq_SPIN_API_UNLOCK __NOFIFO_SPIN_API_UNLO... | 1,933 | 27.028986 | 86 | h |
libmutlock | libmutlock-master/src/mutlocks/mutlocks_common.h | #ifndef __MUTLOCKS_COMMON_OBJ__
#define __MUTLOCKS_COMMON_OBJ__
#ifndef NDEBUG
#define NDEBUG
#endif
#include <assert.h>
#include <stdlib.h>
#include <limits.h>
#include <sleep_utils.h>
#include <spin_utils.h>
#define MASK_SWS 0xffffffff00000000ULL
#define MASK_THC 0x00000000ffffffffULL
#define SLEPT_POS 0
#def... | 2,549 | 33.459459 | 102 | h |
libmutlock | libmutlock-master/src/mutlocks/sem_freq_mutlock.c | #include "sem_freq_mutlock.h"
#define NAME sem_freq
/*
* Creates the mutable lock
*/
int sem_freq_mutlock_wrap_init(sem_freq_mutlock_wrapper_t* mutlock, __HLOCK_PARAM_OBJ(NAME)* params) {
if (!mutlock) return FAIL;
__HLOCK_OBJ(NAME)* lock = (__HLOCK_OBJ(NAME)*)mutlock;
MUTLOCK_INIT(lock);
mutlock->inccnt ... | 2,590 | 23.67619 | 103 | c |
libmutlock | libmutlock-master/src/utils/utils.h | #ifndef _ATOMICS_H_
#define _ATOMICS_H_
#include <linux/futex.h>
#include <sys/syscall.h>
#include <unistd.h>
#include <stdlib.h>
/*
* GCC atomic builtins redefinitions
*/
#define fence() __sync_synchronize()
#define atomic_store(ptr, val) __sync_lock_test_and_set(ptr, val)
#define atomic_swap(ptr, val) __s... | 1,820 | 23.608108 | 109 | h |
libmutlock | libmutlock-master/src/utils/spin_utils.h | #ifndef __SPIN_UTILS__
#define __SPIN_UTILS__
#include <queued_spinlock.h>
#include <node_basket.h>
typedef volatile int __nofifo_spin_obj;
typedef queued_spinlock_t __fifo_spin_obj;
/*
#if defined(__FIFO_SPIN)
typedef __fifo_spin_obj spin_obj_t;
#define SPIN_API_INIT __FIFO_SPIN_API_INIT
#define SPIN_API_DESTR... | 2,970 | 21.007407 | 91 | h |
libmutlock | libmutlock-master/src/utils/sleep_utils.h | #ifndef __SLEEP_UTILS__
#define __SLEEP_UTILS__
#include <semaphore.h>
#include <linux/futex.h>
#include <sys/syscall.h>
#include <unistd.h>
typedef int __futex_obj;
typedef sem_t __sem_obj;
/*
#if defined(__SLEEP_SEM)
typedef __sem_obj sleep_obj_t;
#define SLEEP_API_INIT __SEM_API_INIT
#define SLEEP_API_DEST... | 1,419 | 27.4 | 95 | h |
FPConv | FPConv-master/fpconv/pointnet2/src/interpolate_gpu.h | #ifndef _INTERPOLATE_GPU_H
#define _INTERPOLATE_GPU_H
#include <torch/serialize/tensor.h>
#include<vector>
#include <cuda.h>
#include <cuda_runtime_api.h>
void three_nn_wrapper_fast(int b, int n, int m, at::Tensor unknown_tensor,
at::Tensor known_tensor, at::Tensor dist2_tensor, at::Tensor idx_tensor);
void thre... | 1,174 | 36.903226 | 100 | h |
FPConv | FPConv-master/fpconv/pointnet2/src/sampling_gpu.h | #ifndef _SAMPLING_GPU_H
#define _SAMPLING_GPU_H
#include <torch/serialize/tensor.h>
#include <ATen/cuda/CUDAContext.h>
#include<vector>
int gather_points_wrapper_fast(int b, int c, int n, int npoints,
at::Tensor points_tensor, at::Tensor idx_tensor, at::Tensor out_tensor);
void gather_points_kernel_launcher_fa... | 1,045 | 33.866667 | 86 | h |
FPConv | FPConv-master/fpconv/pointnet2/src/group_points_gpu.h | #ifndef _GROUP_POINTS_GPU_H
#define _GROUP_POINTS_GPU_H
#include <torch/serialize/tensor.h>
#include <cuda.h>
#include <cuda_runtime_api.h>
#include <vector>
int group_points_wrapper_fast(int b, int c, int n, int npoints, int nsample,
at::Tensor points_tensor, at::Tensor idx_tensor, at::Tensor out_tensor);
voi... | 836 | 35.391304 | 91 | h |
null | bwm-ng-main/src/curses_tools.c | /******************************************************************************
* bwm-ng curses stuff *
* *
* for more info read README. *
... | 5,016 | 32.006579 | 108 | c |
null | bwm-ng-main/src/help.h | /******************************************************************************
* bwm-ng help header *
* *
* for more info read README. *
... | 1,817 | 48.135135 | 79 | h |
null | bwm-ng-main/src/options.c | /******************************************************************************
* bwm-ng handle cmdline and config file options *
* *
* for more info read README. *
... | 16,317 | 31.185404 | 132 | c |
null | bwm-ng-main/src/help.c | /******************************************************************************
* bwm-ng online help *
* *
* for more info read README. *
... | 6,725 | 46.702128 | 121 | c |
null | bwm-ng-main/src/options.h | /******************************************************************************
* bwm-ng options header *
* *
* for more info read README. *
... | 1,933 | 41.977778 | 79 | h |
null | bwm-ng-main/src/bwm-ng.c | /******************************************************************************
* bwm-ng *
* *
* for more info read README. *
... | 9,102 | 27.182663 | 100 | c |
null | bwm-ng-main/src/curses_tools.h | /******************************************************************************
* bwm-ng *
* *
* for more info read README. *
... | 2,079 | 39.784314 | 79 | h |
null | bwm-ng-main/src/bwm-ng.h | /******************************************************************************
* bwm-ng *
* *
* for more info read README. *
... | 2,029 | 43.130435 | 79 | h |
null | bwm-ng-main/src/types.h | /******************************************************************************
* bwm-ng *
* *
* for more info read README. *
... | 2,946 | 30.688172 | 79 | h |
null | bwm-ng-main/src/global_vars.h | /******************************************************************************
* bwm-ng global variables *
* *
* for more info read README. *
... | 2,975 | 29.680412 | 79 | h |
null | bwm-ng-main/src/input/libstatgrab.c | /******************************************************************************
* bwm-ng parsing and retrieve stuff *
* *
* for more info read README. *
... | 3,894 | 41.336957 | 118 | c |
null | bwm-ng-main/src/input/libstatgrab.h | /******************************************************************************
* bwm-ng parsing and retrive stuff *
* *
* for more info read README. *
... | 1,825 | 51.171429 | 79 | h |
null | bwm-ng-main/src/input/retrieve.c | /******************************************************************************
* bwm-ng parsing and retrieve stuff *
* *
* for more info read README. *
... | 3,693 | 31.982143 | 79 | c |
null | bwm-ng-main/src/input/sysctl.h | /******************************************************************************
* bwm-ng parsing and retrive stuff *
* *
* for more info read README. *
... | 2,129 | 35.724138 | 79 | h |
null | bwm-ng-main/src/input/devstat.h | /******************************************************************************
* bwm-ng parsing and retrive stuff *
* *
* for more info read README. *
... | 1,789 | 47.378378 | 79 | h |
null | bwm-ng-main/src/input/proc_diskstats.h | /******************************************************************************
* bwm-ng parsing and retrive stuff *
* *
* for more info read README. *
... | 1,782 | 49.942857 | 79 | h |
null | bwm-ng-main/src/input/getifaddrs.h | /******************************************************************************
* bwm-ng parsing and retrive stuff *
* *
* for more info read README. *
... | 1,843 | 47.526316 | 79 | h |
null | bwm-ng-main/src/input/win32.h | /******************************************************************************
* bwm-ng parsing and retrive stuff *
* *
* for more info read README. *
... | 1,778 | 48.416667 | 79 | h |
null | bwm-ng-main/src/input/win32.c | /******************************************************************************
* bwm-ng parsing and retrieve stuff *
* *
* for more info read README. *
... | 3,400 | 42.050633 | 98 | c |
null | bwm-ng-main/src/input/retrieve.h | /******************************************************************************
* bwm-ng parsing and retrive stuff *
* *
* for more info read README. *
... | 2,319 | 34.692308 | 79 | h |
null | bwm-ng-main/src/input/proc_net_dev.h | /******************************************************************************
* bwm-ng parsing and retrive stuff *
* *
* for more info read README. *
... | 1,753 | 53.8125 | 79 | h |
null | bwm-ng-main/src/input/ioservice.c | /******************************************************************************
* bwm-ng parsing and retrieve stuff *
* *
* for more info read README. *
... | 5,388 | 46.27193 | 121 | c |
null | bwm-ng-main/src/input/netstat.h | /******************************************************************************
* bwm-ng parsing and retrive stuff *
* *
* for more info read README. *
... | 1,741 | 53.4375 | 79 | h |
null | bwm-ng-main/src/input/ioservice.h | /******************************************************************************
* bwm-ng parsing and retrive stuff *
* *
* for more info read README. *
... | 1,985 | 46.285714 | 79 | h |
null | bwm-ng-main/src/input/libkstat.h | /******************************************************************************
* bwm-ng parsing and retrive stuff *
* *
* for more info read README. *
... | 1,767 | 51 | 79 | h |
pmemkv-bench | pmemkv-bench-master/bench/util/csv.h | // SPDX-License-Identifier: Apache-2.0
/* Copyright 2020-2021, Intel Corporation */
#pragma once
#include <iostream>
#include <map>
#include <ostream>
#include <set>
#include <string>
template <typename IdType>
class CSV {
private:
/* Hold data in two-dimensional map of strings: data_matrix[row][column]
*/
std::... | 1,381 | 21.290323 | 73 | h |
pmemkv-bench | pmemkv-bench-master/bench/util/logging.h | // Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE-BSD file. See the AUTHORS file for names of contributors.
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020, Intel Corporation
// Must not be include... | 1,519 | 30.666667 | 81 | h |
pmemkv-bench | pmemkv-bench-master/bench/util/testutil.h | // Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE-BSD file. See the AUTHORS file for names of contributors.
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020, Intel Corporation
#ifndef STORAGE_LEVELD... | 1,984 | 28.191176 | 99 | h |
pmemkv-bench | pmemkv-bench-master/bench/util/mutexlock.h | // Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE-BSD file. See the AUTHORS file for names of contributors.
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020, Intel Corporation
#ifndef STORAGE_LEVELD... | 1,202 | 24.0625 | 81 | h |
pmemkv-bench | pmemkv-bench-master/bench/util/random.h | // Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE-BSD file. See the AUTHORS file for names of contributors.
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020, Intel Corporation
#ifndef STORAGE_LEVELD... | 2,202 | 26.886076 | 81 | h |
pmemkv-bench | pmemkv-bench-master/bench/util/posix_logger.h | // Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE-BSD file. See the AUTHORS file for names of contributors.
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020, Intel Corporation
//
// Logger implement... | 2,503 | 23.54902 | 81 | h |
pmemkv-bench | pmemkv-bench-master/bench/util/env_posix_test_helper.h | // Copyright 2017 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE-BSD file. See the AUTHORS file for names of contributors.
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020, Intel Corporation
#ifndef STORAGE_LEVELDB_UT... | 967 | 28.333333 | 81 | h |
pmemkv-bench | pmemkv-bench-master/bench/port/port_posix.h | // Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE-BSD file. See the AUTHORS file for names of contributors.
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020, Intel Corporation
// See port_example.h ... | 4,061 | 23.768293 | 98 | h |
pmemkv-bench | pmemkv-bench-master/bench/port/thread_annotations.h | // Copyright (c) 2012 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE-BSD file. See the AUTHORS file for names of contributors.
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020, Intel Corporation
#ifndef STORAGE_LEVELD... | 1,429 | 21.34375 | 81 | h |
pmemkv-bench | pmemkv-bench-master/bench/port/atomic_pointer.h | // Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE-BSD file. See the AUTHORS file for names of contributors.
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020, Intel Corporation
// AtomicPointer provi... | 7,207 | 23.26936 | 84 | h |
pmemkv-bench | pmemkv-bench-master/bench/include/leveldb/status.h | // Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE-BSD file. See the AUTHORS file for names of contributors.
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020, Intel Corporation
// A Status encapsulat... | 3,658 | 23.231788 | 81 | h |
pmemkv-bench | pmemkv-bench-master/bench/include/leveldb/slice.h | // Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE-BSD file. See the AUTHORS file for names of contributors.
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020, Intel Corporation
// Slice is a simple s... | 3,163 | 21.125874 | 81 | h |
pmemkv-bench | pmemkv-bench-master/bench/include/leveldb/env.h | // Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE-BSD file. See the AUTHORS file for names of contributors.
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020, Intel Corporation
// An Env is an interf... | 12,539 | 30.827411 | 93 | h |
pmemkv | pmemkv-master/examples/pmemkv_basic_c/pmemkv_basic.c | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2019-2021, Intel Corporation */
/*
* pmemkv_basic.c -- example usage of pmemkv.
*/
#include <assert.h>
#include <libpmemkv.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define ASSERT(expr) ... | 2,954 | 27.68932 | 90 | c |
pmemkv | pmemkv-master/examples/pmemkv_transaction_c/pmemkv_transaction.c | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2020-2021, Intel Corporation */
/*
* pmemkv_transaction.c -- example usage of pmemkv transactions.
*/
#include <assert.h>
#include <libpmemkv.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define ASSERT(expr) ... | 2,904 | 27.480392 | 90 | c |
pmemkv | pmemkv-master/examples/pmemkv_comparator_c/pmemkv_comparator.c | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2020-2021, Intel Corporation */
/*
* pmemkv_comparator.c -- example usage of pmemkv with custom comparator.
*/
#include <assert.h>
#include <libpmemkv.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define ASSERT(expr) ... | 2,932 | 26.669811 | 90 | c |
pmemkv | pmemkv-master/examples/pmemkv_iterator_c/pmemkv_iterator.c | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2020-2021, Intel Corporation */
/*
* pmemkv_iterator.c -- example usage of pmemkv's iterator.
*/
#include "libpmemkv.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define ASSERT(expr) ... | 3,444 | 26.125984 | 90 | c |
pmemkv | pmemkv-master/examples/pmemkv_config_c/pmemkv_basic_config.c | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2019-2021, Intel Corporation */
/*
* pmemkv_basic_config.c -- example usage for part of the pmemkv config API,
* which should be preferred. E.g. `put_size(...)` is less error-prone
* than `put_int64("size", ...)` and hence recommended.
*/
#include <assert.h>... | 2,683 | 31.731707 | 90 | c |
pmemkv | pmemkv-master/examples/pmemkv_config_c/pmemkv_config.c | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2019-2021, Intel Corporation */
/*
* pmemkv_config.c -- example usage of the part of the pmemkv config API
* to set and get data based on their data types.
*/
#include <assert.h>
#include <libpmemkv.h>
#include <libpmemkv_json_config.h>
#include <stdio.h>
#inc... | 2,981 | 27.673077 | 90 | c |
pmemkv | pmemkv-master/src/config.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2019-2021, Intel Corporation */
#ifndef LIBPMEMKV_CONFIG_H
#define LIBPMEMKV_CONFIG_H
#include <limits>
#include <string>
#include <unordered_map>
#include <vector>
#include "exceptions.h"
#include "libpmemkv.hpp"
namespace pmem
{
namespace kv
{
namespace intern... | 6,732 | 22.137457 | 82 | h |
pmemkv | pmemkv-master/src/libpmemkv.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2017-2021, Intel Corporation */
#ifndef LIBPMEMKV_H
#define LIBPMEMKV_H
#include <libpmemobj/pool_base.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
#define PMEMKV_STATUS_OK 0
#define PMEMKV_STATUS_UNKNOWN... | 6,991 | 43.253165 | 90 | h |
pmemkv | pmemkv-master/src/iterator.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2020-2021, Intel Corporation */
#ifndef LIBPMEMKV_ITERATOR_H
#define LIBPMEMKV_ITERATOR_H
#include "libpmemkv.hpp"
#include <libpmemobj++/pool.hpp>
#include <libpmemobj++/slice.hpp>
#include <libpmemobj++/transaction.hpp>
namespace pmem
{
namespace kv
{
namespac... | 1,799 | 22.076923 | 85 | h |
pmemkv | pmemkv-master/src/engine.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2019-2021, Intel Corporation */
#ifndef LIBPMEMKV_ENGINE_H
#define LIBPMEMKV_ENGINE_H
#include <map>
#include <memory>
#include <string>
#include "config.h"
#include "iterator.h"
#include "libpmemkv.hpp"
#include "transaction.h"
namespace pmem
{
namespace kv
{
... | 3,797 | 29.878049 | 82 | h |
pmemkv | pmemkv-master/src/fast_hash.h | /*
* The fast-hash algorithm is covered by the MIT License:
*
* Copyright (C) 2012 Zilong Tan (eric.zltan@gmail.com)
*
* 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
* restri... | 1,367 | 38.085714 | 70 | h |
pmemkv | pmemkv-master/src/pmemobj_engine.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2019-2021, Intel Corporation */
#ifndef LIBPMEMKV_PMEMOBJ_ENGINE_H
#define LIBPMEMKV_PMEMOBJ_ENGINE_H
#include "engine.h"
#include "libpmemkv.h"
#include <libpmemobj++/pool.hpp>
namespace pmem
{
/* Helper method which throws an exception when called in a tx */
s... | 3,371 | 24.545455 | 90 | h |
pmemkv | pmemkv-master/src/out.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2019-2021, Intel Corporation */
#ifndef LIBPMEMKV_OUT_H
#define LIBPMEMKV_OUT_H
#include <ostream>
std::ostream &out_err_stream(const char *func);
#define DO_LOG 0
#define LOG(msg) \
do { ... | 698 | 28.125 | 90 | h |
pmemkv | pmemkv-master/src/valgrind/memcheck.h |
/*
----------------------------------------------------------------
Notice that the following BSD-style license applies to this one
file (memcheck.h) only. The rest of Valgrind is licensed under the
terms of the GNU General Public License, version 2, unless
otherwise indicated. See the COPYING file i... | 14,570 | 47.089109 | 79 | h |
pmemkv | pmemkv-master/src/valgrind/pmemcheck.h | /*
* Copyright (c) 2014-2015, Intel Corporation
*
* 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
* notice, this list of conditions ... | 10,601 | 48.083333 | 77 | h |
pmemkv | pmemkv-master/src/engines-experimental/csmap.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2020-2021, Intel Corporation */
#ifndef LIBPMEMKV_CSMAP_H
#define LIBPMEMKV_CSMAP_H
#include "../comparator/pmemobj_comparator.h"
#include "../pmemobj_engine.h"
#include <libpmemobj++/container/string.hpp>
#include <libpmemobj++/experimental/concurrent_map.hpp>
#... | 5,380 | 25.121359 | 82 | h |
pmemkv | pmemkv-master/src/engines-experimental/robinhood.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2020-2021, Intel Corporation */
#ifndef LIBPMEMKV_ROBINHOOD_H
#define LIBPMEMKV_ROBINHOOD_H
#include <libpmemobj.h>
#include <stddef.h>
#include <stdint.h>
#include <mutex>
#include <shared_mutex>
#include <libpmemobj++/persistent_ptr.hpp>
#include "../comparat... | 3,516 | 20.84472 | 78 | h |
pmemkv | pmemkv-master/src/engines-experimental/radix.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2020-2021, Intel Corporation */
#ifndef LIBPMEMKV_RADIX_H
#define LIBPMEMKV_RADIX_H
#include "../comparator/pmemobj_comparator.h"
#include "../iterator.h"
#include "../pmemobj_engine.h"
#include <libpmemobj++/experimental/inline_string.hpp>
#include <libpmemobj++... | 15,879 | 27.925319 | 106 | h |
pmemkv | pmemkv-master/src/engines-experimental/tree3.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2017-2021, Intel Corporation */
#ifndef LIBPMEMKV_TREE3_H
#define LIBPMEMKV_TREE3_H
#include "../pmemobj_engine.h"
#include <libpmemobj++/make_persistent.hpp>
#include <libpmemobj++/make_persistent_array.hpp>
#include <libpmemobj++/p.hpp>
#include <libpmemobj++/p... | 6,594 | 26.365145 | 88 | h |
pmemkv | pmemkv-master/src/engines-experimental/stree.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2017-2021, Intel Corporation */
#ifndef LIBPMEMKV_STREE_H
#define LIBPMEMKV_STREE_H
#include <libpmemobj++/container/string.hpp>
#include <libpmemobj++/make_persistent.hpp>
#include <libpmemobj++/persistent_ptr.hpp>
#include "../comparator/pmemobj_comparator.h"
#... | 4,191 | 26.220779 | 83 | h |
pmemkv | pmemkv-master/src/engines/blackhole.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2017-2021, Intel Corporation */
#ifndef LIBPMEMKV_BLACKHOLE_H
#define LIBPMEMKV_BLACKHOLE_H
#include "../engine.h"
namespace pmem
{
namespace kv
{
class blackhole : public engine_base {
class blackhole_iterator;
public:
blackhole(std::unique_ptr<internal::con... | 2,244 | 26.716049 | 82 | h |
pmemkv | pmemkv-master/src/engines/vcmap.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2017-2021, Intel Corporation */
#ifndef LIBPMEMKV_VCMAP_H
#define LIBPMEMKV_VCMAP_H
#include "basic_vcmap.h"
#include "memkind_allocator_wrapper.h"
namespace pmem
{
namespace kv
{
namespace internal
{
class memkind_allocator_factory {
public:
template <typename... | 1,273 | 20.965517 | 83 | h |
pmemkv | pmemkv-master/src/engines/memkind_allocator_wrapper.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2021, Intel Corporation. */
#ifndef MEMKIND_ALLOCATOR_WRAPPER_H
#define MEMKIND_ALLOCATOR_WRAPPER_H
#include "pmem_allocator.h"
#ifdef USE_LIBMEMKIND_NAMESPACE
namespace memkind_ns = libmemkind::pmem;
#else
namespace memkind_ns = pmem;
#endif
namespace pmem
{
na... | 3,122 | 23.398438 | 87 | h |
pmemkv | pmemkv-master/src/engines/cmap.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2017-2021, Intel Corporation */
#ifndef LIBPMEMKV_CMAP_H
#define LIBPMEMKV_CMAP_H
#include "../iterator.h"
#include "../pmemobj_engine.h"
#include "../polymorphic_string.h"
#include <libpmemobj++/container/concurrent_hash_map.hpp>
#include <libpmemobj++/persisten... | 3,358 | 20.670968 | 80 | h |
pmemkv | pmemkv-master/src/engines/vsmap.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2017-2021, Intel Corporation */
#ifndef LIBPMEMKV_VSMAP_H
#define LIBPMEMKV_VSMAP_H
#include "../comparator/volatile_comparator.h"
#include "../engine.h"
#include "../iterator.h"
#include "pmem_allocator.h"
#include <map>
#include <scoped_allocator>
#include <str... | 4,025 | 26.575342 | 83 | h |
pmemkv | pmemkv-master/src/engines/basic_vcmap.h | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2017-2021, Intel Corporation */
#ifndef LIBPMEMKV_BASIC_VCMAP_H
#define LIBPMEMKV_BASIC_VCMAP_H
#include "../engine.h"
#include "../out.h"
#include <cassert>
#include <memory>
#include <scoped_allocator>
#include <string>
#include <tbb/concurrent_hash_map.h>
nam... | 8,611 | 27.328947 | 87 | h |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.