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
DIMES-main/TSP/torch_sampling/csrc/torch_scatter.h
/** adopted from torch_scatter library **/ /** @link https://github.com/rusty1s/pytorch_scatter **/ #include <torch/extension.h> extern std::tuple<torch::Tensor, torch::optional<torch::Tensor>> segment_csr_cpu( torch::Tensor src, torch::Tensor indptr, torch::optional<torch::Tensor> optional_out, ...
795
27.428571
98
h
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/wmis/extern/argtable3-3.0.3/argtable3.h
/******************************************************************************* * This file is part of the argtable3 library. * * Copyright (C) 1998-2001,2003-2011,2013 Stewart Heitmann * <sheitmann@users.sourceforge.net> * All rights reserved. * * Redistribution and use in source and binary forms, with or with...
11,087
35.235294
119
h
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/wmis/extern/argtable3-3.0.3/examples/testargtable3.c
#include "argtable3.h" /* global arg_xxx structs */ struct arg_lit *a, *b, *c, *verb, *help, *version; struct arg_int *scal; struct arg_file *o, *file; struct arg_end *end; int main(int argc, char *argv[]) { /* the global arg_xxx structs are initialised within the argtable */ void *argtable[] = { help...
1,969
32.389831
77
c
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/wmis/extern/argtable3-3.0.3/examples/ls.c
/******************************************************************************* * Example source code for using the argtable3 library to implement: * * ls [-aAbBcCdDfFgGhHiklLmnNopqQrRsStuUvxX1] [--author] * [--block-size=SIZE] [--color=[WHEN]] [--format=WORD] [--full-time] * [--si] [--dereference-command-...
16,761
50.259939
118
c
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/wmis/extern/argtable3-3.0.3/examples/uname.c
/******************************************************************************* * Example source code for using the argtable3 library to implement: * * uname [-asnrvmpio] [--help] [--version] * * This file is part of the argtable3 library. * * Copyright (C) 1998-2001,2003-2011,2013 Stewart Heitmann * <sh...
5,974
42.297101
129
c
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/wmis/extern/argtable3-3.0.3/examples/multisyntax.c
/******************************************************************************* * Example source code for using the argtable3 library to implement * a multi-syntax command line argument program * * usage 1: multisyntax [-nvR] insert <file> [<file>]... [-o <output>] * usage 2: multisyntax [-nv] remove <fi...
10,404
42.354167
101
c
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/wmis/extern/argtable3-3.0.3/examples/myprog_C89.c
/******************************************************************************* * This example source code is an alternate version of myprog.c * that adheres to ansi C89 standards rather than ansi C99. * The only difference being that C89 does not permit the argtable array * to be statically initialized with the c...
6,858
40.319277
112
c
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/wmis/extern/argtable3-3.0.3/examples/echo.c
/******************************************************************************* * Example source code for using the argtable3 library to implement: * * echo [-neE] [--help] [--version] [STRING]... * * This file is part of the argtable3 library. * * Copyright (C) 1998-2001,2003-2011,2013 Stewart Heitmann ...
5,558
42.093023
130
c
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/wmis/extern/argtable3-3.0.3/examples/myprog.c
/******************************************************************************* * Example source code for using the argtable3 library to implement: * * myprog [-lRv] [-k <int>] [-D MACRO]... [-o <output>] [--help] * [--version] <file> [<file>]... * * This file is part of the argtable3 library. * *...
6,311
41.648649
112
c
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/wmis/extern/argtable3-3.0.3/tests/testargrex.c
/******************************************************************************* * This file is part of the argtable3 library. * * Copyright (C) 2013-2014 Tom G. Huang * <tomghuang@gmail.com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permit...
13,187
41.134185
112
c
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/wmis/extern/argtable3-3.0.3/tests/testargstr.c
/******************************************************************************* * This file is part of the argtable3 library. * * Copyright (C) 2013-2014 Tom G. Huang * <tomghuang@gmail.com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permit...
22,381
39.183124
114
c
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/wmis/extern/argtable3-3.0.3/tests/testargdate.c
/******************************************************************************* * This file is part of the argtable3 library. * * Copyright (C) 2013-2014 Tom G. Huang * <tomghuang@gmail.com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permit...
15,949
39.792839
110
c
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/wmis/extern/argtable3-3.0.3/tests/testall.c
#include <stdio.h> #include "CuTest.h" CuSuite* get_arglit_testsuite(); CuSuite* get_argstr_testsuite(); CuSuite* get_argint_testsuite(); CuSuite* get_argdate_testsuite(); CuSuite* get_argdbl_testsuite(); CuSuite* get_argfile_testsuite(); CuSuite* get_argrex_testsuite(); void RunAllTests(void) { CuString *output = ...
883
22.891892
49
c
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/wmis/extern/argtable3-3.0.3/tests/testarglit.c
/******************************************************************************* * This file is part of the argtable3 library. * * Copyright (C) 2013-2014 Tom G. Huang * <tomghuang@gmail.com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permit...
21,822
37.556537
94
c
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/wmis/extern/argtable3-3.0.3/tests/CuTest.c
#include <assert.h> #include <setjmp.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include "CuTest.h" /*-------------------------------------------------------------------------* * CuStr *-------------------------------------------------------------------------*/ char* CuStrAlloc...
8,103
22.835294
99
c
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/wmis/extern/argtable3-3.0.3/tests/testargdbl.c
/******************************************************************************* * This file is part of the argtable3 library. * * Copyright (C) 2013-2014 Tom G. Huang * <tomghuang@gmail.com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permit...
18,636
38.235789
97
c
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/wmis/extern/argtable3-3.0.3/tests/CuTest.h
#ifndef CU_TEST_H #define CU_TEST_H #include <setjmp.h> #include <stdarg.h> #define CUTEST_VERSION "CuTest 1.5" /* CuString */ char* CuStrAlloc(int size); char* CuStrCopy(const char* old); #define CU_ALLOC(TYPE) ((TYPE*) malloc(sizeof(TYPE))) #define HUGE_STRING_LEN 8192 #define STRING_MAX 256 #define STRING_I...
4,097
34.025641
115
h
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/wmis/extern/KaHIP/interface/kaHIP_interface.h
/****************************************************************************** * kaffpa_interface.h * * Source of KaHIP -- Karlsruhe High Quality Partitioning. * *****************************************************************************/ #ifndef KAFFPA_INTERFACE_RYEEZ6WJ #define KAFFPA_INTERFACE_RYEEZ6WJ #...
1,514
29.918367
81
h
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/wmis/app/configuration_mis.h
/** * configuration.h * Purpose: Contains preset configurations for the evolutionary algorithms. * *****************************************************************************/ #ifndef _CONFIGURATION_MIS_H_ #define _CONFIGURATION_MIS_H_ #include "definitions.h" #include "mis_config.h" class configuration_mis { ...
1,536
28
92
h
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/extern/argtable3-3.0.3/argtable3.h
/******************************************************************************* * This file is part of the argtable3 library. * * Copyright (C) 1998-2001,2003-2011,2013 Stewart Heitmann * <sheitmann@users.sourceforge.net> * All rights reserved. * * Redistribution and use in source and binary forms, with or with...
11,087
35.235294
119
h
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/extern/argtable3-3.0.3/examples/testargtable3.c
#include "argtable3.h" /* global arg_xxx structs */ struct arg_lit *a, *b, *c, *verb, *help, *version; struct arg_int *scal; struct arg_file *o, *file; struct arg_end *end; int main(int argc, char *argv[]) { /* the global arg_xxx structs are initialised within the argtable */ void *argtable[] = { help...
1,969
32.389831
77
c
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/extern/argtable3-3.0.3/examples/ls.c
/******************************************************************************* * Example source code for using the argtable3 library to implement: * * ls [-aAbBcCdDfFgGhHiklLmnNopqQrRsStuUvxX1] [--author] * [--block-size=SIZE] [--color=[WHEN]] [--format=WORD] [--full-time] * [--si] [--dereference-command-...
16,761
50.259939
118
c
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/extern/argtable3-3.0.3/examples/uname.c
/******************************************************************************* * Example source code for using the argtable3 library to implement: * * uname [-asnrvmpio] [--help] [--version] * * This file is part of the argtable3 library. * * Copyright (C) 1998-2001,2003-2011,2013 Stewart Heitmann * <sh...
5,974
42.297101
129
c
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/extern/argtable3-3.0.3/examples/multisyntax.c
/******************************************************************************* * Example source code for using the argtable3 library to implement * a multi-syntax command line argument program * * usage 1: multisyntax [-nvR] insert <file> [<file>]... [-o <output>] * usage 2: multisyntax [-nv] remove <fi...
10,404
42.354167
101
c
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/extern/argtable3-3.0.3/examples/myprog_C89.c
/******************************************************************************* * This example source code is an alternate version of myprog.c * that adheres to ansi C89 standards rather than ansi C99. * The only difference being that C89 does not permit the argtable array * to be statically initialized with the c...
6,858
40.319277
112
c
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/extern/argtable3-3.0.3/examples/echo.c
/******************************************************************************* * Example source code for using the argtable3 library to implement: * * echo [-neE] [--help] [--version] [STRING]... * * This file is part of the argtable3 library. * * Copyright (C) 1998-2001,2003-2011,2013 Stewart Heitmann ...
5,558
42.093023
130
c
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/extern/argtable3-3.0.3/examples/myprog.c
/******************************************************************************* * Example source code for using the argtable3 library to implement: * * myprog [-lRv] [-k <int>] [-D MACRO]... [-o <output>] [--help] * [--version] <file> [<file>]... * * This file is part of the argtable3 library. * *...
6,311
41.648649
112
c
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/extern/argtable3-3.0.3/tests/testargrex.c
/******************************************************************************* * This file is part of the argtable3 library. * * Copyright (C) 2013-2014 Tom G. Huang * <tomghuang@gmail.com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permit...
13,187
41.134185
112
c
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/extern/argtable3-3.0.3/tests/testargstr.c
/******************************************************************************* * This file is part of the argtable3 library. * * Copyright (C) 2013-2014 Tom G. Huang * <tomghuang@gmail.com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permit...
22,381
39.183124
114
c
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/extern/argtable3-3.0.3/tests/testargdate.c
/******************************************************************************* * This file is part of the argtable3 library. * * Copyright (C) 2013-2014 Tom G. Huang * <tomghuang@gmail.com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permit...
15,949
39.792839
110
c
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/extern/argtable3-3.0.3/tests/testall.c
#include <stdio.h> #include "CuTest.h" CuSuite* get_arglit_testsuite(); CuSuite* get_argstr_testsuite(); CuSuite* get_argint_testsuite(); CuSuite* get_argdate_testsuite(); CuSuite* get_argdbl_testsuite(); CuSuite* get_argfile_testsuite(); CuSuite* get_argrex_testsuite(); void RunAllTests(void) { CuString *output = ...
883
22.891892
49
c
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/extern/argtable3-3.0.3/tests/testarglit.c
/******************************************************************************* * This file is part of the argtable3 library. * * Copyright (C) 2013-2014 Tom G. Huang * <tomghuang@gmail.com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permit...
21,822
37.556537
94
c
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/extern/argtable3-3.0.3/tests/CuTest.c
#include <assert.h> #include <setjmp.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include "CuTest.h" /*-------------------------------------------------------------------------* * CuStr *-------------------------------------------------------------------------*/ char* CuStrAlloc...
8,103
22.835294
99
c
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/extern/argtable3-3.0.3/tests/testargdbl.c
/******************************************************************************* * This file is part of the argtable3 library. * * Copyright (C) 2013-2014 Tom G. Huang * <tomghuang@gmail.com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permit...
18,636
38.235789
97
c
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/extern/argtable3-3.0.3/tests/CuTest.h
#ifndef CU_TEST_H #define CU_TEST_H #include <setjmp.h> #include <stdarg.h> #define CUTEST_VERSION "CuTest 1.5" /* CuString */ char* CuStrAlloc(int size); char* CuStrCopy(const char* old); #define CU_ALLOC(TYPE) ((TYPE*) malloc(sizeof(TYPE))) #define HUGE_STRING_LEN 8192 #define STRING_MAX 256 #define STRING_I...
4,097
34.025641
115
h
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/extern/KaHIP/interface/kaHIP_interface.h
/****************************************************************************** * kaffpa_interface.h * * Source of KaHIP -- Karlsruhe High Quality Partitioning. * *****************************************************************************/ #ifndef KAFFPA_INTERFACE_RYEEZ6WJ #define KAFFPA_INTERFACE_RYEEZ6WJ #...
1,525
30.142857
81
h
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/extern/KaHIP/app/configuration.h
/****************************************************************************** * configuration.h * * Source of KaHIP -- Karlsruhe High Quality Partitioning. * *****************************************************************************/ #ifndef CONFIGURATION_3APG5V7Z #define CONFIGURATION_3APG5V7Z #include "...
18,484
54.014881
111
h
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/app/parse_parameters_omis.h
/** * parse_parameters.h * Purpose: Parse command line parameters. * *****************************************************************************/ #ifndef _PARSE_PARAMETERS_H_ #define _PARSE_PARAMETERS_H_ #include <omp.h> #include "configuration_mis.h" /** * Parse the given parameters and apply them to the co...
3,421
29.283186
80
h
null
DIMES-main/MIS/solvers/intel_treesearch/KaMIS/app/configuration_mis.h
/** * configuration.h * Purpose: Contains preset configurations for the evolutionary algorithms. * *****************************************************************************/ #ifndef _CONFIGURATION_MIS_H_ #define _CONFIGURATION_MIS_H_ #include "definitions.h" #include "mis_config.h" #ifdef OMIS const int FAST...
5,294
34.536913
79
h
cctools
cctools-master/resource_monitor/src/rmonitor_helper_comm.h
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #include <inttypes.h> #include "timestamp.h" #ifndef RMONITOR_HELPER_COMM_H #define RMONITOR_HELPER_COMM_H #define RESOURCE_MONITOR_HELPER_ENV_VAR "CCTOOLS_RES...
1,752
29.224138
118
h
cctools
cctools-master/resource_monitor/src/rmonitor_poll_example.c
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #include <stdio.h> #include <sys/types.h> #include <unistd.h> #include <string.h> #include "rmonitor_poll.h" #include "rmsummary.h" int main(int argc, char **argv...
892
22.5
93
c
cctools
cctools-master/makeflow/src/makeflow_viz.c
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #include <string.h> #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <errno.h> #include <sys/stat.h> #include <sys/types.h> #include <signal.h> #i...
10,065
29.877301
122
c
cctools
cctools-master/makeflow/src/makeflow_catalog_reporter.c
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #include "dag.h" #include "timestamp.h" #include "stringtools.h" #include "list.h" #include "makeflow_summary.h" #include "catalog_query.h" #include "json.h" #inclu...
5,885
31.340659
122
c
cctools
cctools-master/makeflow/src/dag_node_footprint.c
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #include "dag.h" #include "dag_node_footprint.h" #include "dag_node.h" #include "debug.h" #include "rmsummary.h" #include "list.h" #include "stringtools.h" #includ...
24,372
32.115489
109
c
cctools
cctools-master/makeflow/src/dag.h
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #ifndef MAKEFLOW_DAG_H #define MAKEFLOW_DAG_H #include "dag_node.h" #include "dag_file.h" #include "dag_variable.h" #include "itable.h" #include "string_set.h" #i...
3,318
39.975309
130
h
cctools
cctools-master/makeflow/src/makeflow_gc.c
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #include "debug.h" #include "xxmalloc.h" #include "set.h" #include "timestamp.h" #include "host_disk_info.h" #include "stringtools.h" #include "copy_tree.h" #includ...
10,932
28.154667
119
c
cctools
cctools-master/makeflow/src/makeflow_gc.h
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #ifndef MAKEFLOW_GC_H #define MAKEFLOW_GC_H #include "makeflow_hook.h" /* This module implements garbage collection on the dag. Files that are no longer needed as...
1,965
39.122449
130
h
cctools
cctools-master/makeflow/src/makeflow_module_resource_monitor.c
#include "create_dir.h" #include "debug.h" #include "jx.h" #include "path.h" #include "rmonitor.h" #include "stringtools.h" #include "xxmalloc.h" #include "batch_task.h" #include "batch_wrapper.h" #include "dag.h" #include "dag_file.h" #include "dag_node.h" #include "makeflow_hook.h" #include "makeflow_log.h" #incl...
12,772
30.773632
128
c
cctools
cctools-master/makeflow/src/parser_jx.c
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #include "dag.h" #include "dag_node.h" #include "dag_variable.h" #include "dag_resources.h" #include "parser_jx.h" #include "xxmalloc.h" #include "set.h" #include "...
10,464
28.562147
117
c
cctools
cctools-master/makeflow/src/dag_variable.h
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #ifndef DAG_VARIABLE_H #define DAG_VARIABLE_H /* * dag_variable_value records a single instance of a variable's value and location */ struct dag_variable_value ...
2,242
34.046875
112
h
cctools
cctools-master/makeflow/src/dag_node.c
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #include "dag.h" #include "dag_node_footprint.h" #include "dag_node.h" #include "debug.h" #include "batch_task.h" #include "rmsummary.h" #include "list.h" #include...
12,382
25.978214
132
c
cctools
cctools-master/makeflow/src/makeflow_module_singularity.c
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #include "stringtools.h" #include "xxmalloc.h" #include "debug.h" #include "batch_wrapper.h" #include "dag.h" #include "dag_file.h" #include "makeflow_gc.h" #i...
2,763
25.32381
104
c
cctools
cctools-master/makeflow/src/makeflow_module_docker.c
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #include <errno.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include "batch_task.h" #include "batch_wrapper.h" #include "debug.h" #include "p...
4,014
26.312925
101
c
cctools
cctools-master/makeflow/src/makeflow_module_shared_fs.c
#include <assert.h> #include "debug.h" #include "itable.h" #include "makeflow_hook.h" #include "xxmalloc.h" #include "makeflow_log.h" #include "makeflow_alloc.h" #include "batch_task.h" #include "dag.h" #include "dag_node.h" #include "dag_node_footprint.h" #include "dag_file.h" #include "jx.h" struct shared_fs_insta...
6,470
28.547945
120
c
cctools
cctools-master/makeflow/src/makeflow_module_sandbox.c
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #include "dag_file.h" #include "makeflow_log.h" #include "makeflow_hook.h" #include "batch_task.h" #include "batch_wrapper.h" #include "debug.h" #include "lis...
3,247
31.48
126
c
cctools
cctools-master/makeflow/src/makeflow_local_resources.c
#include "makeflow_local_resources.h" #include "host_disk_info.h" #include "host_memory_info.h" #include "load_average.h" #include "macros.h" #include "debug.h" void makeflow_local_resources_print( struct rmsummary *r ) { printf("local resources: %s, ", rmsummary_resource_to_str("cores", r->cores, 1)); printf("%s ...
1,912
29.854839
105
c
cctools
cctools-master/makeflow/src/dag.c
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <math.h> #include "debug.h" #include "xxmalloc.h" #incl...
11,633
24.401747
104
c
cctools
cctools-master/makeflow/src/dag_file.c
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #include "dag.h" #include "dag_file.h" #include "xxmalloc.h" #include "list.h" #include "macros.h" #include <stdlib.h> struct dag_file * dag_file_create( const c...
3,903
21.056497
70
c
cctools
cctools-master/makeflow/src/makeflow_analyze.c
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #include <string.h> #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <errno.h> #include <sys/stat.h> #include <sys/types.h> #include <signal.h> #i...
9,870
25.534946
122
c
cctools
cctools-master/makeflow/src/dag_resources.c
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #include "category.h" #include "dag.h" #include "hash_table.h" struct category *makeflow_category_lookup_or_create(const struct dag *d, const char *name) { struct...
529
23.090909
92
c
cctools
cctools-master/makeflow/src/dag_node_footprint.h
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #ifndef DAG_NODE_FOOTPRINT_H #define DAG_NODE_FOOTPRINT_H #include "batch_job.h" #include "dag_node.h" #include "category.h" #include "set.h" #include "hash_table....
4,686
42.398148
102
h
cctools
cctools-master/makeflow/src/dag_node.h
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #ifndef DAG_NODE_H #define DAG_NODE_H #include "batch_job.h" #include "batch_task.h" #include "category.h" #include "set.h" #include "hash_table.h" #include "itabl...
6,371
45.852941
118
h
cctools
cctools-master/makeflow/src/makeflow_module_vc3_builder.c
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #include "path.h" #include "stringtools.h" #include "xxmalloc.h" #include "debug.h" #include "batch_wrapper.h" #include "dag.h" #include "dag_file.h" #include ...
3,447
25.728682
94
c
cctools
cctools-master/makeflow/src/makeflow_module_enforcement.c
/* * Copyright (C) 2022 The University of Notre Dame * This software is distributed under the GNU General Public License. * See the file COPYING for details. * */ #include "stringtools.h" #include "xxmalloc.h" #include "copy_stream.h" #include "debug.h" #include "envtools.h" #include "list.h" #include "dag.h" #in...
9,163
31.381625
105
c
cctools
cctools-master/makeflow/src/makeflow_status.c
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ /* * File: makeflow_status.c * Author: Kyle D. Sweeney * * Created on July 21, 2016 */ #include "timestamp.h" #include "jx_table.h" #include "jx_print.h"...
5,272
22.859729
113
c
cctools
cctools-master/makeflow/src/makeflow_hook_example.c
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #include "makeflow_hook.h" #include <stdio.h> /* * Simple create function that prints out a message. */ static int makeflow_hook_example_create(void ** inst...
759
23.516129
82
c
cctools
cctools-master/makeflow/src/makeflow_local_resources.h
#ifndef MAKEFLOW_LOCAL_RESOURCES_H #define MAKEFLOW_LOCAL_RESOURCES_H #include "dag_node.h" #include "rmsummary.h" void makeflow_local_resources_print( struct rmsummary *r ); void makeflow_local_resources_measure( struct rmsummary *r ); int makeflow_local_resources_available( struct rmsummary *r, const struct rmsum...
504
30.5625
93
h
cctools
cctools-master/makeflow/src/parser.h
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #ifndef PARSER_H #define PARSER_H /* the type of a dependency specified in the mountfile */ typedef enum { DAG_SYNTAX_MAKE = 1, DAG_SYNTAX_JSON, DAG_SYNTAX_JX }...
575
23
89
h
cctools
cctools-master/makeflow/src/makeflow_module_basic_wrapper.c
/* * Copyright (C) 2022 The University of Notre Dame * This software is distributed under the GNU General Public License. * See the file COPYING for details. * */ #include "rmonitor.h" #include "stringtools.h" #include "list.h" #include "xxmalloc.h" #include "batch_task.h" #include "dag.h" #include "makeflow_hoo...
6,559
25.135458
108
c
cctools
cctools-master/makeflow/src/makeflow_module_fail_dir.c
#include "makeflow_hook.h" #include "xxmalloc.h" #include "debug.h" #include "stringtools.h" #include "makeflow_gc.h" #include "makeflow_log.h" #include "dag.h" #include "dag_node.h" #include "dag_file.h" #include "jx.h" #include "jx_pretty_print.h" #include <assert.h> #include <unistd.h> #include <errno.h> #include ...
6,228
27.705069
114
c
cctools
cctools-master/makeflow/src/dag_variable.c
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #include "dag.h" #include "dag_variable.h" #include "dag_resources.h" #include "hash_table.h" #include "xxmalloc.h" #include "debug.h" #include <string.h> #include...
5,826
20.742537
111
c
cctools
cctools-master/makeflow/src/dag_file.h
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #ifndef DAG_FILE_H #define DAG_FILE_H #include "dag.h" /* struct dag_file represents a file, input or output, of the * workflow. filename is the path given in th...
5,987
39.459459
108
h
cctools
cctools-master/makeflow/src/lexer.h
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ /* Makeflow lexer. Converts a makeflow file into a series of tokens so that the parser can easily reconstruct the DAG. The lexer is implemented with a...
5,724
32.479532
90
h
cctools
cctools-master/makeflow/src/makeflow_module_storage_allocation.c
#include "debug.h" #include "makeflow_hook.h" #include "xxmalloc.h" #include "makeflow_log.h" #include "makeflow_alloc.h" #include "batch_task.h" #include "dag.h" #include "dag_node.h" #include "dag_node_footprint.h" #include "dag_file.h" #include "jx.h" static struct makeflow_alloc *storage_allocation = NULL; /* Va...
5,983
27.631579
111
c
cctools
cctools-master/makeflow/src/makeflow_catalog_reporter.h
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ /* * File: makeflow_catalog_reporter.h * Author: Kyle D. Sweeney * * Created on July 20, 2016, 10:51 AM * Modified on Nov 30, 2020, 04:46 PM by Thanh Son Ph...
1,216
30.205128
121
h
cctools
cctools-master/grow/src/grow.h
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #ifndef GROW_H #define GROW_H #define GROW_LINE_MAX 4096 #define GROW_EPOCH 1199163600 #include <stdint.h> #include <stdio.h> #include <time.h> #include <sys/stat...
1,746
24.318841
92
h
cctools
cctools-master/grow/src/grow_fuse.c
/* * Copyright (C) 2022 The University of Notre Dame * This software is distributed under the GNU General Public License. * See the file COPYING for details. */ #define FUSE_USE_VERSION 26 #include <assert.h> #include <dirent.h> #include <errno.h> #include <fcntl.h> #include <fuse.h> #include <limits.h> #include ...
11,722
25.403153
124
c
cctools
cctools-master/dttools/src/rmonitor_poll.h
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #ifndef RMONITOR_POLL_H #define RMONITOR_POLL_H #include "rmsummary.h" struct rmsummary *rmonitor_measure_process(pid_t pid); int rmonitor_measure_process_update_...
683
22.586207
77
h
cctools
cctools-master/dttools/src/jx_getopt.c
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #include <assert.h> #include <inttypes.h> #include <stdbool.h> #include <string.h> #include "list.h" #include "jx_getopt.h" #include "stringtools.h" #include "xxma...
2,797
21.747967
115
c
cctools
cctools-master/dttools/src/luapatt.c
/* Unmodified pattern matcher from Lua 5.2.3: lstrlib.c:187:510 * * See top-level COPYING file for Lua's license. */ /* ** {====================================================== ** PATTERN MATCHING ** ======================================================= */ #define CAP_UNFINISHED (-1) #define CAP_POSITION (-2)...
9,740
28.518182
80
c
cctools
cctools-master/dttools/src/address.h
#ifndef ADDRESS_H #define ADDRESS_H #include <netinet/in.h> #include <sys/socket.h> #include <sys/types.h> #include <netdb.h> #ifndef SOCKLEN_T #if defined(__GLIBC__) || defined(CCTOOLS_OPSYS_DARWIN) || defined(__MUSL__) #define SOCKLEN_T socklen_t #else #define SOCKLEN_T int #endif #endif #define IP_ADDRESS_MAX 48 ...
698
25.884615
101
h
cctools
cctools-master/dttools/src/int_sizes.h
#ifndef __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS #endif #include <inttypes.h> /* Eventually this file should disappear, and only inttypes.h should be used.*/ #ifndef INT_SIZES_H #define INT_SIZES_H #define INT8_T int8_t #define INT16_T int16_t #define INT32_T int32_t #define INT64_T int64_t #define PTR...
861
21.684211
79
h
cctools
cctools-master/dttools/src/url_encode.h
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #ifndef URL_ENCODE_H #define URL_ENCODE_H /** @file url_encode.h provides routines for encoding strings according to RFC-2396. This is typically used to constructi...
1,364
34
84
h
cctools
cctools-master/dttools/src/catalog_query.h
/* Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #ifndef CATALOG_QUERY_H #define CATALOG_QUERY_H #include <time.h> #include "jx.h" /** @file c...
2,893
39.760563
105
h
cctools
cctools-master/dttools/src/host_memory_info.h
/* Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #ifndef MEMORY_INFO_H #define MEMORY_INFO_H #include "int_sizes.h" /** @file host_memory_inf...
1,107
33.625
94
h
cctools
cctools-master/dttools/src/jx_function.h
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #ifndef JX_FUNCTION_H #define JX_FUNCTION_H #include "jx.h" #include <stdio.h> struct jx *jx_function_eval(const char *funcname, struct jx *args, struct jx *ctx);...
1,406
36.026316
83
h
cctools
cctools-master/dttools/src/itable.h
/* Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #ifndef ITABLE_H #define ITABLE_H #include "int_sizes.h" /** @file itable.h An integer-index...
3,897
24.986667
112
h
cctools
cctools-master/dttools/src/auth_address.c
/* Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ /* Copyright (C) 2003-2004 Douglas Thain Copyright (C) 2022 The University of Notre Dame This w...
1,592
20.527027
82
c
cctools
cctools-master/dttools/src/s3_file_io.c
/* * * Author: Vlad Korolev, <vlad[@]v-lad.org > * Modified s3_get and s3_put. Also added s3_check: Nicholas Potteiger * */ /*! \mainpage This is a small library that provides Amazon Web Services binding for C programs. The s3_file_io leverages CURL and OPENSSL libraries for HTTP transfer and cry...
11,736
25.375281
92
c
cctools
cctools-master/dttools/src/cctools_endian.h
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #ifndef CCTOOLS_ENDIAN_H #define CCTOOLS_ENDIAN_H #include <stdint.h> /** @file cctools_endian.h Byte order conversions. * * Posix includes functions for perfo...
1,102
28.810811
66
h
cctools
cctools-master/dttools/src/macros.h
/* Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #ifndef MACROS_H #define MACROS_H #ifndef MAX #define MAX(a,b) ( ((a)>(b)) ? (a) : (b) ) #end...
958
20.311111
108
h
cctools
cctools-master/dttools/src/change_process_title.h
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #ifndef CHANGE_PROCESS_TITLE_H #define CHANGE_PROCESS_TITLE_H /** @file change_process_title.h Change the title of a process in ps and top. This module only works ...
837
25.1875
80
h
cctools
cctools-master/dttools/src/jx2json.c
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #include <assert.h> #include <errno.h> #include <stdbool.h> #include <stdio.h> #include <string.h> #include "cctools.h" #include "getopt.h" #include "jx.h" #includ...
3,936
21.497143
82
c
cctools
cctools-master/dttools/src/bucketing.c
#include <stdlib.h> #include <math.h> #include <stdio.h> #include <string.h> #include "bucketing.h" #include "random.h" #include "xxmalloc.h" #include "debug.h" #include "bucketing_greedy.h" #include "bucketing_exhaust.h" /** Begin: internals **/ /* Create a bucketing point * @param val value of point * @param sig ...
11,090
24.793023
105
c
cctools
cctools-master/dttools/src/make_int_sizes.c
/* Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #include <stdlib.h> #include <stdio.h> #include <string.h> char *findformat(char *type) { if...
2,677
30.505882
85
c
cctools
cctools-master/dttools/src/unlink_recursive.h
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #ifndef UNLINK_RECURSIVE_H #define UNLINK_RECURSIVE_H #include "compat-at.h" #include <fcntl.h> /** @file unlink_recursive.h Unlink recursively. */ /** Delete a...
882
23.527778
77
h
cctools
cctools-master/dttools/src/auth.c
/* Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #include "auth.h" #include "catch.h" #include "debug.h" #include "stringtools.h" #include "dom...
5,274
20.707819
83
c
cctools
cctools-master/dttools/src/trash.c
#include "random.h" #include "create_dir.h" #include "unlink_recursive.h" #include "stringtools.h" #include "debug.h" #include "timestamp.h" #include <sys/stat.h> #include <string.h> #include <errno.h> #include "trash.h" static char *trashdir = 0; void trash_setup( const char *dir ) { if(trashdir) { no...
1,794
23.589041
103
c
cctools
cctools-master/dttools/src/dpopen.h
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #ifndef DPOPEN_H #define DPOPEN_H #include <unistd.h> #include <stdio.h> /** @file dpopen.h Double Pipe process invocation. */ /** Fast process invocation. @ref ...
1,452
38.27027
122
h
cctools
cctools-master/dttools/src/envtools.c
/* Copyright (C) 2022 The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #include "debug.h" #include "stringtools.h" #include "xxmalloc.h" #include <ctype.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> ...
2,873
21.107692
99
c