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
cctools
cctools-master/taskvine/src/manager/vine_worker_info.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 "vine_worker_info.h" #include "vine_file_replica.h" #include "vine_protocol.h" #include "vine_task.h" #include "vine_resources.h" struct vine_worker_info...
3,185
24.086614
75
c
cctools
cctools-master/taskvine/src/manager/vine_runtime_dir.c
/* Copyright (C) 2023- 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 <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include "taskvine.h" #include "vine_manager.h" #include "assert.h" #include ...
3,991
24.106918
80
c
cctools
cctools-master/taskvine/src/manager/vine_factory_info.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 VINE_FACTORY_INFO_H #define VINE_FACTORY_INFO_H #include "vine_manager.h" struct vine_factory_info { char *name; int connected_workers; int max_w...
668
23.777778
95
h
cctools
cctools-master/taskvine/src/manager/vine_current_transfers.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 "vine_worker_info.h" #include "uuid.h" #define VINE_FILE_SOURCE_MAX_TRANSFERS 1 #define VINE_WORKER_SOURCE_MAX_TRANSFERS 3 // static 1 until if/when mult...
1,052
31.90625
132
h
cctools
cctools-master/taskvine/src/manager/vine_file_replica_table.c
/* This software is distributed under the GNU General Public License. Copyright (C) 2022- The University of Notre Dame See the file COPYING for details. */ #include "vine_manager.h" #include "vine_file.h" #include "vine_file_replica.h" #include "vine_worker_info.h" #include "vine_file_replica_table.h" #include "vine_c...
2,336
28.582278
124
c
cctools
cctools-master/taskvine/src/manager/vine_protocol.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 vine_protocol.h This file describes a handful of constants that are necessary for a common implementation of the protocol between the manager, worker, an...
555
25.47619
79
h
cctools
cctools-master/taskvine/src/manager/vine_file_replica_table.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. */ /* * Abstract the files posessed by the workers to a single "table" */ #ifndef VINE_FILE_REPLICA_TABLE_H #define VINE_FILE_REPLICA_TABLE_H #include "taskvine...
887
27.645161
125
h
cctools
cctools-master/taskvine/src/manager/vine_manager_summarize.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 "vine_manager_summarize.h" #include "vine_worker_info.h" #include "rmsummary.h" #include "hash_table.h" #include "debug.h" #include "stringtools.h" #inc...
3,785
26.434783
130
c
cctools
cctools-master/taskvine/src/manager/vine_checksum.c
/* Copyright (C) 2023- The University of Notre Dame This software is distributed under the GNU General Public License. See the file COPYING for details. */ #include "vine_checksum.h" #include "stringtools.h" #include "string_array.h" #include "sort_dir.h" #include "md5.h" #include "xxmalloc.h" #include <debug.h> #in...
2,479
22.17757
101
c
cctools
cctools-master/taskvine/src/manager/vine_blocklist.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 "vine_blocklist.h" #include "hash_table.h" #include "debug.h" #include <stdlib.h> struct vine_blocklist_info * vine_blocklist_info_create() { struct v...
2,715
23.690909
132
c
cctools
cctools-master/taskvine/src/manager/vine_resources.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 VINE_RESOURCES_H #define VINE_RESOURCES_H #include "link.h" #include "jx.h" struct vine_resource { int64_t inuse; int64_t total; int64_t smallest; in...
1,249
30.25
102
h
cctools
cctools-master/taskvine/src/manager/vine_current_transfers.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 "vine_manager.h" #include "vine_current_transfers.h" #include "debug.h" static struct vine_transfer_pair *vine_transfer_pair_create(struct vine_worker_i...
2,816
25.828571
124
c
cctools
cctools-master/taskvine/src/manager/vine_catalog.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 "vine_catalog.h" #include "catalog_query.h" #include "jx.h" #include "list.h" #include "debug.h" #include "stringtools.h" #include "xxmalloc.h" #include ...
2,745
24.90566
112
c
cctools
cctools-master/taskvine/src/manager/vine_blocklist.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 VINE_BLOCKLIST_H #define VINE_BLOCKLIST_H #include "vine_manager.h" struct vine_blocklist_info { int blocked; int times_blocked; time_t release...
966
28.30303
96
h
cctools
cctools-master/taskvine/src/manager/vine_perf_log.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 VINE_PERF_LOG_H #define VINE_PERF_LOG_H /* Implementation of the manager's performance log, which records numbers of tasks, workers, etc present over time...
572
23.913043
80
h
cctools
cctools-master/taskvine/src/manager/vine_file_replica.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 VINE_REMOTE_FILE_INFO_H #define VINE_REMOTE_FILE_INFO_H #include "taskvine.h" struct vine_file_replica { int64_t size; time_t mtim...
548
21.875
82
h
cctools
cctools-master/taskvine/src/examples/vine_example_gutenberg.c
/* This example shows some of the remote data handling features of taskvine. It performs an all-to-all comparison of twenty (relatively small) documents downloaded from the Gutenberg public archive. A small shell script (vine_example_guteberg_task.sh) is used to perform a simple text comparison of each pair of files. ...
3,660
29.508333
103
c
cctools
cctools-master/taskvine/src/examples/vine_example_mosaic.c
/* This example program produces a mosaic of images, each one transformed with a different amount of swirl. It demonstrates several features of taskvine: - Each task consumes remote data accessed via url, cached and shared among all tasks on that machine. - Each task uses the "convert" program, which may or may not ...
3,822
27.318519
124
c
cctools
cctools-master/taskvine/src/examples/vine_example_blast.c
/* This example shows some of the data handling features of taskvine. It performs a BLAST search of the "Landmark" model organism database. It works by constructing tasks that download the blast executable and landmark database from NCBI, and then performs a short query. Each task in the workflow performs a query of t...
6,287
34.325843
116
c
cctools
cctools-master/taskvine/src/examples/vine_example_poncho.c
/* An example of a task using a minitask (vine_declare_poncho) to unpack a dependency before using it. */ #include "taskvine.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <unistd.h> int main(int argc, char *argv[]) { struct vine_manager *m; struct vine_task *t; int i; ...
1,578
22.567164
99
c
cctools
cctools-master/taskvine/src/examples/vine_example_watch.c
/* This example program shows the behavior of the VINE_WATCH flag. If a task produces output to a file incrementally as it runs, it can be helpful to see that output piece by piece as it is produced. By simply adding the VINE_WATCH flag to the output of the program, taskvine will periodically check for output and retu...
2,243
27.405063
108
c
cctools
cctools-master/doc/man/manual_html.h
define(HEADER,<html><head><title>$1(1)</title></head><body><h1>$1(1)</h1>)dnl define(SECTION,<h2>$1</h2>)dnl define(SUBSECTION,<h3>$1</h3>)dnl define(SUBSUBSECTION,<h4>$1</h4>)dnl define(PARA,<p>)dnl define(LINK,<a href=$2>$1</a>)dnl define(MANUAL,LINK($1,$2))dnl define(MANPAGE,LINK($1($2),$1.html))dnl define(BOLD,<b>$...
1,364
31.5
98
h
cctools
cctools-master/doc/man/manual_md.h
changequote([,]) define(HEADER,[#] $1(1))dnl define(SECTION,[##] $1)dnl define(SUBSECTION,[###] $1)dnl define(SUBSUBSECTION,[####] $1)dnl changequote define(PARA,)dnl define(LINK,[$1]($2))dnl define(MANUAL,LINK($1,$2))dnl define(MANPAGE,LINK($1($2),$1.md))dnl define(BOLD,**$1**)dnl define(ITALIC,_$1_)dnl define(COD...
1,076
24.642857
82
h
cctools
cctools-master/batch_job/src/batch_job_mesos.c
/* Copyright (c) 2016- The University of Notre Dame. This software is distributed under the GNU General Public License. See the file COPYING for details. */ /* * Principle of Operation: * * Each time when makeflow submit a task, the information of the task is written into * mesos_task_info file. Meanwhile...
11,081
25.198582
118
c
cctools
cctools-master/batch_job/src/batch_task.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 BATCH_TASK_H #define BATCH_TASK_H #include "batch_file.h" #include "list.h" #include "sha1.h" #include "jx.h" #include "rmsummary.h" struct batch_task { ...
5,051
39.416
122
h
cctools
cctools-master/batch_job/src/batch_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 BATCH_FILE_H #define BATCH_FILE_H #include <errno.h> #include <sys/types.h> #include <dirent.h> #include "batch_job.h" #include "sha1.h" #include "list.h" ...
2,631
33.181818
113
h
cctools
cctools-master/batch_job/src/batch_wrapper.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 BATCH_WRAPPER_H #define BATCH_WRAPPER_H #include "batch_task.h" /** Create a builder for a batch wrapper. * Use batch_wrapper_pre, batch_wrapper_cmd, etc...
3,391
35.869565
78
h
cctools
cctools-master/batch_job/src/batch_job_k8s_script.c
"\ #!/bin/bash\n\ \n\ action=$1\n\ pod_id=$2\n\ job_id=$3\n\ inps=$4\n\ cmd=$5\n\ oups=$6\n\ \n\ cmd_retry()\n\ {\n\ retry=0\n\ /bin/bash -c \"$1\"\n\ while [[ \"$?\" -ne 0 && \"$retry\" -lt 5 ]]\n\ do \n\ echo \"$1 failed $retry times, will retry in 10 seconds\"\n\ retry=$((retry+1))\n\ sleep 10\n\ /bin/ba...
2,388
21.537736
104
c
cctools
cctools-master/batch_job/src/batch_task.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 <errno.h> #include "batch_task.h" #include "batch_file.h" #include "batch_wrapper.h" #include "sha1.h" #include "stringtools.h" #inclu...
6,000
26.277273
121
c
cctools
cctools-master/batch_job/src/batch_job_k8s.c
#include "batch_job.h" #include "batch_job_internal.h" #include "debug.h" #include "process.h" #include "macros.h" #include "stringtools.h" #include "uuid.h" #include "path.h" #include "list.h" #include "itable.h" #include "xxmalloc.h" #include "jx.h" #include "jx_parse.h" #include "jx_print.h" #include "jx_match.h" #...
19,170
25.442759
117
c
cctools
cctools-master/batch_job/src/mesos_task.h
#ifndef MESOS_TASK_H_ #define MESOS_TASK_H_ #include "stdlib.h" #include "text_list.h" #include "xxmalloc.h" #include "path.h" #include "stringtools.h" // mesos task struct struct mesos_task{ int task_id; char *task_cmd; struct text_list *task_input_files; struct text_list *task_output_files; }; stru...
552
20.269231
71
h
cctools
cctools-master/batch_job/src/mesos_task.c
#include "mesos_task.h" struct mesos_task *mesos_task_create(int task_id, const char *cmd, const char *extra_input_files, const char *extra_output_files) { struct mesos_task *mt = malloc(sizeof(*mt)); mt->task_id = task_id; mt->task_cmd = xxstrdup(cmd); if (extra_input_files != NULL) { mt->task_input_file...
1,138
24.886364
69
c
cctools
cctools-master/batch_job/src/batch_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 <assert.h> #include <string.h> #include <errno.h> #include <stdlib.h> #include <stdio.h> #include "batch_wrapper.h" #include "list.h" #include "debug.h" #...
7,597
21.087209
84
c
SynthText3D
SynthText3D-master/Code/myCameraRecordPawn.h
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "GameFramework/Pawn.h" #include "myCameraRecordPawn.generated.h" UCLASS() class UNREALTEXT_API AmyCameraRecordPawn : public APawn { GENERATED_BODY() public: // Sets default values for this...
987
21.454545
94
h
SynthText3D
SynthText3D-master/Code/Unrealtext-Source/UnrealCV/Public/ExecStatus.h
#pragma once class FExecStatus; DECLARE_DELEGATE_RetVal(FExecStatus, FPromiseDelegate); // Check task status /** * Return by async task, used to check status to see whether the task is finished. */ class FPromise { private: /** The method to check whether this promise is alreay completed */ FPromiseDelegate Promi...
3,179
30.485149
105
h
SynthText3D
SynthText3D-master/Code/Unrealtext-Source/UnrealCV/Public/ViewMode.h
#pragma once #include "Engine.h" /** * A helper class to set EngineShowFlags */ class UNREALCV_API FViewMode { public: /** Deprecated: Set game to normal rendering */ // static void Lit(FEngineShowFlags& ShowFlags); /** Deprecated: Set game to buffer visualization mode */ static void BufferVisualization(FEngine...
868
27.966667
79
h
SynthText3D
SynthText3D-master/Code/Unrealtext-Source/UnrealCV/Public/UE4CVServer.h
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "TcpServer.h" #include "Tickable.h" #include "ServerConfig.h" class FCommandDispatcher; class FCommandHandler; class FAsyncRecord { public: bool bIsCompleted; static TArray<FAsyncRecord*> Records; // Tracking all ...
2,796
21.92623
113
h
SynthText3D
SynthText3D-master/Code/Unrealtext-Source/UnrealCV/Public/PlayerViewMode.h
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CommandDispatcher.h" /** * Define different ViewModes of the scene * Provide functions for vset /viewmode */ class UNREALCV_API FPlayerViewMode { public: static FPlayerViewMode& Get(); ~FPlayerViewMode(); void D...
1,187
26
89
h
SynthText3D
SynthText3D-master/Code/Unrealtext-Source/UnrealCV/Public/ScreenCapture.h
/** ScreenCapture(.h,.cpp) contains the ways to capture screenshot from UE4. There are several ways to capture screenshot with different limitations 1. Sync capture This operation will wait until the capture finished, but the limitation is it can only be used within UE4 editor, can not be used in a standalone game. ...
753
34.904762
77
h
SynthText3D
SynthText3D-master/Code/Unrealtext-Source/UnrealCV/Public/TextPawnMovementComponent.h
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "GameFramework/PawnMovementComponent.h" #include "TextPawnMovementComponent.generated.h" UCLASS() class UNREALCV_API UTextPawnMovementComponent : public UPawnMovementComponent { GENERATED_BO...
597
32.222222
129
h
SynthText3D
SynthText3D-master/Code/Unrealtext-Source/UnrealCV/Public/ConsoleHelper.h
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CommandDispatcher.h" #include "EngineUtils.h" /** * Helper class to bind UnrealCV commands to Unreal Engine console */ class FConsoleHelper { public: // FConsoleHelper(FCommandDispatcher* CommandDispatcher); stat...
1,026
28.342857
84
h
SynthText3D
SynthText3D-master/Code/Unrealtext-Source/UnrealCV/Public/ObjectPainter.h
#pragma once #include "ExecStatus.h" /* * Annotate objects in the scene with a unique color * Used to paint vertex color */ class UNREALCV_API FObjectPainter { private: /** The level this ObjectPainter associated with */ ULevel* Level; FObjectPainter() {} /** The assigned color for each object */ TMap<FString, F...
1,041
23.809524
87
h
SynthText3D
SynthText3D-master/Code/Unrealtext-Source/UnrealCV/Public/CommandDispatcher.h
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "Regex.h" #include "ExecStatus.h" // DECLARE_DELEGATE(FCallbackDelegate); DECLARE_DELEGATE_OneParam(FCallbackDelegate, FExecStatus); // Callback needs to be set before Exec, accept ExecStatus DECLARE_DELEGATE_RetVal_O...
1,875
35.076923
123
h
SynthText3D
SynthText3D-master/Code/Unrealtext-Source/UnrealCV/Public/TcpServer.h
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "Object.h" #include "Networking.h" #include "NetworkMessage.h" #include "TcpServer.generated.h" /** * a simplified version from FNFSMessageHeader of UnrealEngine4, without CRC check */ class FSocketMessageHeader { ...
3,726
28.579365
110
h
SynthText3D
SynthText3D-master/Code/Unrealtext-Source/UnrealCV/Public/PugTextPawn.h
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "GameFramework/Pawn.h" #include "ProceduralMeshComponent.h" #include "Components/DecalComponent.h" #include "Engine/Texture2D.h" //#include " #include "PugTextPawn.generated.h" UCLASS() class...
3,152
22.706767
103
h
SynthText3D
SynthText3D-master/Code/Unrealtext-Source/UnrealCV/Private/libs/cnpy.h
// Copyright (C) 2011 Carl Rogers // Released under MIT License // Simplied by Weichao Qiu (qiuwch@gmail.com) from https://github.com/rogersce/cnpy #pragma once #include <string> #include <vector> #include <string> namespace cnpy { template<typename T> std::vector<char> create_npy_header(const T* data, const std::v...
768
27.481481
83
h
SynthText3D
SynthText3D-master/Code/Unrealtext-Source/UnrealCV/Private/Commands/ObjectHandler.h
#pragma once #include "CommandDispatcher.h" #include "GTCaptureComponent.h" #include "Runtime/Engine/Classes/Engine/GameViewportClient.h" class FObjectCommandHandler : public FCommandHandler { public: FObjectCommandHandler(FCommandDispatcher* InCommandDispatcher) : FCommandHandler(InCommandDispatcher) {} void Regis...
2,790
32.22619
102
h
SynthText3D
SynthText3D-master/Code/Unrealtext-Source/UnrealCV/Private/Commands/PluginHandler.h
#pragma once #include "CommandDispatcher.h" class FPluginCommandHandler : public FCommandHandler { public: FPluginCommandHandler(FCommandDispatcher* InCommandDispatcher) : FCommandHandler(InCommandDispatcher) {} void RegisterCommands(); FExecStatus GetPort(const TArray<FString>& Args); FExecStatus SetPort(const ...
727
30.652174
102
h
SynthText3D
SynthText3D-master/Code/Unrealtext-Source/UnrealCV/Private/Commands/CameraHandler.h
#pragma once #include "CommandHandler.h" #include "GTCaptureComponent.h" class FCameraCommandHandler : public FCommandHandler { public: FCameraCommandHandler(FCommandDispatcher* InCommandDispatcher) : FCommandHandler(InCommandDispatcher) {} void RegisterCommands(); /** vget /camera/horizontal_fieldofview */ FExe...
3,447
41.04878
111
h
SynthText3D
SynthText3D-master/Code/Unrealtext-Source/UnrealCV/Private/Commands/ActionHandler.h
#pragma once #include "CommandHandler.h" class FActionCommandHandler : public FCommandHandler { public: FActionCommandHandler(FCommandDispatcher* InCommandDispatcher) : FCommandHandler(InCommandDispatcher) {} void RegisterCommands(); /** vset /action/game/pause */ FExecStatus PauseGame(const TArray<FString>& Arg...
938
27.454545
102
h
vilbert_beta
vilbert_beta-master/tools/refer/external/maskApi.c
/************************************************************************** * Microsoft COCO Toolbox. version 2.0 * Data, paper, and tutorials available at: http://mscoco.org/ * Code written by Piotr Dollar and Tsung-Yi Lin, 2015. * Licensed under the Simplified BSD License [see coco/license.txt] ****************...
8,249
34.714286
75
c
vilbert_beta
vilbert_beta-master/tools/refer/external/maskApi.h
/************************************************************************** * Microsoft COCO Toolbox. version 2.0 * Data, paper, and tutorials available at: http://mscoco.org/ * Code written by Piotr Dollar and Tsung-Yi Lin, 2015. * Licensed under the Simplified BSD License [see coco/license.txt] ****************...
2,176
34.688525
75
h
LLVM.jl
LLVM.jl-master/deps/LLVMExtra/include/Orc.h
#ifndef LLVMEXTRA_ORC_H #define LLVMEXTRA_ORC_H #include <llvm-c/Core.h> #include <llvm-c/Orc.h> #if LLVM_VERSION_MAJOR == 12 LLVM_C_EXTERN_C_BEGIN typedef enum { LLVMJITSymbolGenericFlagsCallable = 1U << 2, LLVMJITSymbolGenericFlagsMaterializationSideEffectsOnly = 1U << 3 } LLVMExtraJITSymbolGenericFlags; /**...
8,908
34.779116
89
h
LLVM.jl
LLVM.jl-master/deps/LLVMExtra/include/LLVMExtra.h
#ifndef LLVMEXTRA_H #define LLVMEXTRA_H #include "llvm/Config/llvm-config.h" #include <llvm-c/Core.h> #include <llvm-c/Orc.h> #include <llvm-c/Target.h> #include <llvm-c/Types.h> #include <llvm/Support/CBindingWrapping.h> LLVM_C_EXTERN_C_BEGIN LLVMBool LLVMExtraInitializeNativeTarget(void); LLVMBool LLVMExtraInitial...
8,568
41.631841
95
h
GACT-ICML-release_v6/gact/gact/cpp_extension/ext_common.h
GACT-ICML-release_v6/gact/gact/cpp_extension/ext_common.h
// Helper for type check #define CHECK_CUDA_TENSOR_DIM_TYPE(name, n_dim, type) \ TORCH_CHECK(name.device().is_cuda(), #name " must be a CUDA tensor!"); \ TORCH_CHECK(name.is_contiguous(), #name " must be contiguous!"); \ TORCH_CHECK(name.dim() == n_dim, "The dim...
1,784
60.551724
83
h
ndcurves
ndcurves-master/python/ndcurves/python_variables.h
#include <Eigen/Dense> #include <eigenpy/eigenpy.hpp> #include <eigenpy/geometry.hpp> #include <eigenpy/memory.hpp> #include <vector> #include "ndcurves/bernstein.h" #include "ndcurves/bezier_curve.h" #include "ndcurves/constant_curve.h" #include "ndcurves/cubic_hermite_spline.h" #include "ndcurves/curve_constraint.h"...
2,351
30.783784
74
h
ndcurves
ndcurves-master/python/ndcurves/namespace.h
// // Copyright (c) 2019 INRIA // #ifndef __python_namespace_h__ #define __python_namespace_h__ // Silence a warning about a deprecated use of boost bind by boost python // at least fo boost 1.73 to 1.75 // ref. https://github.com/stack-of-tasks/tsid/issues/128 #define BOOST_BIND_GLOBAL_PLACEHOLDERS #include <boost/p...
808
25.096774
76
h
ndcurves
ndcurves-master/python/ndcurves/archive_python_binding.h
// Copyright (c) 2015-2018, CNRS // Authors: Justin Carpentier <jcarpent@laas.fr> #ifndef __curves_python_serialization_archive_hpp__ #define __curves_python_serialization_archive_hpp__ #include <boost/python.hpp> namespace ndcurves { namespace bp = boost::python; template <typename Derived> struct SerializableVisit...
1,372
35.131579
87
h
ndcurves
ndcurves-master/tests/load_problem.h
#ifndef _CLASS_LOAD_TEST_PROBLEMS #define _CLASS_LOAD_TEST_PROBLEMS #include <stdlib.h> #include <fstream> #include <iostream> #include <string> #include "ndcurves/bezier_curve.h" #include "ndcurves/exact_cubic.h" #include "ndcurves/helpers/effector_spline.h" #include "ndcurves/helpers/effector_spline_rotation.h" #...
3,235
29.819048
75
h
ndcurves
ndcurves-master/include/ndcurves/constant_curve.h
/** * \file constant_curve.h * \brief class allowing to create a constant_curve curve. * \author Pierre Fernbach * \version 0.4 * \date 29/04/2020 */ #ifndef _CLASS_CONSTANTCURVE #define _CLASS_CONSTANTCURVE #include "curve_abc.h" namespace ndcurves { /// \class constant_curve. /// \brief Represents a constant...
7,315
34.687805
80
h
ndcurves
ndcurves-master/include/ndcurves/bernstein.h
/** * \file bezier_curve.h * \brief class allowing to create a Bezier curve of dimension 1 <= n <= 3. * \author Steve T. * \version 0.1 * \date 06/17/2013 */ #ifndef _CLASS_BERNSTEIN #define _CLASS_BERNSTEIN #include <math.h> #include <stdexcept> #include <vector> #include "MathDefs.h" #include "curve_abc.h" ...
3,105
29.15534
80
h
ndcurves
ndcurves-master/include/ndcurves/curve_conversion.h
#ifndef _CLASS_CURVE_CONVERSION #define _CLASS_CURVE_CONVERSION #include <iostream> #include <stdexcept> #include <vector> #include "MathDefs.h" #include "bernstein.h" #include "curve_abc.h" #include "curve_constraint.h" namespace ndcurves { /// \brief Converts a cubic hermite spline or a bezier curve to a polynomia...
3,944
36.932692
80
h
ndcurves
ndcurves-master/include/ndcurves/sinusoidal.h
/** * \file sinusoidal.h * \brief class allowing to create a sinusoidal curve. * \author Pierre Fernbach * \version 0.4 * \date 29/04/2020 */ #ifndef _CLASS_SINUSOIDALCURVE #define _CLASS_SINUSOIDALCURVE #include <cmath> #include "curve_abc.h" namespace ndcurves { /// \class sinusoidal. /// \brief Represents ...
9,552
36.316406
80
h
ndcurves
ndcurves-master/include/ndcurves/quadratic_variable.h
/** * \file quadratic_variable.h * \brief storage for variable points of the form p_i = x' A_i x + B_i x + c_i * \author Steve T. * \version 0.1 * \date 07/02/2019 */ #ifndef _CLASS_QUADRATIC_VARIABLE #define _CLASS_QUADRATIC_VARIABLE #include <math.h> #include <Eigen/Core> #include <stdexcept> #include <vecto...
5,811
26.942308
80
h
ndcurves
ndcurves-master/include/ndcurves/curve_constraint.h
/** * \file curve_constraint.h * \brief struct to define constraints on start / end velocities and * acceleration on a curve \author Steve T. \version 0.1 \date 04/05/2017 * */ #ifndef _CLASS_CURVE_CONSTRAINT #define _CLASS_CURVE_CONSTRAINT #include <functional> #include <vector> #include "MathDefs.h" #include ...
2,777
32.071429
73
h
ndcurves
ndcurves-master/include/ndcurves/se3_curve.h
#ifndef _STRUCT_SE3_CURVE_H #define _STRUCT_SE3_CURVE_H #include <Eigen/Dense> #include <boost/math/constants/constants.hpp> #include "MathDefs.h" #include "curve_abc.h" #include "polynomial.h" #include "so3_linear.h" namespace ndcurves { /// \class SE3Curve. /// \brief Composition of a curve of any type of dimensi...
12,187
37.692063
80
h
ndcurves
ndcurves-master/include/ndcurves/cross_implementation.h
/** * \file cross_implementation.h * \brief class allowing to create a cubic hermite spline of any dimension. * \author Steve Tonneau * \date 09/2020 */ #ifndef _CLASS_CROSSIMP #define _CLASS_CROSSIMP #include "ndcurves/fwd.h" namespace ndcurves { inline Eigen::Vector3d cross(const Eigen::VectorXd& a, ...
996
24.564103
75
h
ndcurves
ndcurves-master/include/ndcurves/cubic_hermite_spline.h
/** * \file cubic_hermite_spline.h * \brief class allowing to create a cubic hermite spline of any dimension. * \author Justin Carpentier <jcarpent@laas.fr> modified by Jason Chemin * <jchemin@laas.fr> \date 05/2019 */ #ifndef _CLASS_CUBICHERMITESPLINE #define _CLASS_CUBICHERMITESPLINE #include <boost/serializat...
16,012
37.40048
80
h
ndcurves
ndcurves-master/include/ndcurves/curve_abc.h
/** * \file curve_abc.h * \brief interface for a Curve of arbitrary dimension. * \author Steve T. * \version 0.1 * \date 06/17/2013 * * Interface for a curve */ #ifndef _STRUCT_CURVE_ABC #define _STRUCT_CURVE_ABC #include <boost/serialization/shared_ptr.hpp> #include <boost/smart_ptr/shared_ptr.hpp> #include ...
5,898
33.098266
80
h
ndcurves
ndcurves-master/include/ndcurves/MathDefs.h
/** * \file Math.h * \brief Linear algebra and other maths definitions. Based on Eigen 3 or more * \author Steve T. * \version 0.1 * \date 06/17/2013 * * This file contains math definitions used * used throughout the library. * Preprocessors definition are used to use eitheir float * or double values, and 3 d...
1,575
26.649123
79
h
ndcurves
ndcurves-master/include/ndcurves/fwd.h
/** * \file fwd.h * \brief forward declaration of all curves class * \author Pierre Fernbach * \version 0.1 * \date 27/11/19 * */ #ifndef CURVES_FWD_H #define CURVES_FWD_H #include <Eigen/Dense> #include <boost/smart_ptr/shared_ptr.hpp> #include <vector> namespace ndcurves { template <typename Time, typename ...
4,675
34.694656
78
h
ndcurves
ndcurves-master/include/ndcurves/so3_linear.h
#ifndef _STRUCT_SO3_LINEAR_H #define _STRUCT_SO3_LINEAR_H #include <Eigen/Geometry> #include <boost/math/constants/constants.hpp> #include <boost/serialization/split_free.hpp> #include <boost/serialization/vector.hpp> #include "MathDefs.h" #include "constant_curve.h" #include "curve_abc.h" namespace ndcurves { /// ...
12,434
34.226629
80
h
ndcurves
ndcurves-master/include/ndcurves/exact_cubic.h
/** * \file exact_cubic.h * \brief class allowing to create an Exact cubic spline. * \author Steve T. * \version 0.1 * \date 06/17/2013 * * This file contains definitions for the ExactCubic class. * Given a set of waypoints (x_i*) and timestep (t_i), it provides the unique * set of cubic splines fulfulling tho...
12,651
37.809816
80
h
ndcurves
ndcurves-master/include/ndcurves/linear_variable.h
/** * \file linear_variable.h * \brief storage for variable points of the form p_i = B_i x + c_i * \author Steve T. * \version 0.1 * \date 07/02/2019 */ #ifndef _CLASS_LINEAR_VARIABLE #define _CLASS_LINEAR_VARIABLE #include <math.h> #include <Eigen/Core> #include <stdexcept> #include <vector> #include "MathDe...
10,561
33.18123
80
h
ndcurves
ndcurves-master/include/ndcurves/helpers/effector_spline.h
/** * \file exact_cubic.h * \brief class allowing to create an Exact cubic spline. * \author Steve T. * \version 0.1 * \date 06/17/2013 * * This file contains definitions for the ExactCubic class. * Given a set of waypoints (x_i*) and timestep (t_i), it provides the unique * set of cubic splines fulfulling tho...
5,647
42.114504
80
h
ndcurves
ndcurves-master/include/ndcurves/helpers/effector_spline_rotation.h
/** * \file exact_cubic.h * \brief class allowing to create an Exact cubic spline. * \author Steve T. * \version 0.1 * \date 06/17/2013 * * This file contains definitions for the ExactCubic class. * Given a set of waypoints (x_i*) and timestep (t_i), it provides the unique * set of cubic splines fulfulling tho...
14,008
41.710366
80
h
ndcurves
ndcurves-master/include/ndcurves/python/python_definitions.h
#include <vector> #include "ndcurves/bezier_curve.h" #include "ndcurves/fwd.h" #include "ndcurves/linear_variable.h" #include "ndcurves/polynomial.h" #include "ndcurves/quadratic_variable.h" #ifndef _DEFINITION_PYTHON_BINDINGS #define _DEFINITION_PYTHON_BINDINGS namespace ndcurves { /*** TEMPLATE SPECIALIZATION FOR ...
2,079
31
74
h
ndcurves
ndcurves-master/include/ndcurves/optimization/details.h
/** * \file bezier_curve.h * \brief class allowing to create a Bezier curve of dimension 1 <= n <= 3. * \author Steve T. * \version 0.1 * \date 06/17/2013 */ #ifndef _CLASS_LINEAR_PROBLEM_DETAILS #define _CLASS_LINEAR_PROBLEM_DETAILS #include <ndcurves/bernstein.h> #include <ndcurves/bezier_curve.h> #include <n...
14,921
37.658031
80
h
ndcurves
ndcurves-master/include/ndcurves/optimization/quadratic_problem.h
/** * \file bezier_curve.h * \brief class allowing to create a Bezier curve of dimension 1 <= n <= 3. * \author Steve T. * \version 0.1 * \date 06/17/2013 */ #ifndef _CLASS_LINEAR_PROBLEM #define _CLASS_LINEAR_PROBLEM #include <Eigen/Core> #include "ndcurves/optimization/definitions.h" #include "ndcurves/optim...
1,445
29.765957
75
h
ndcurves
ndcurves-master/include/ndcurves/optimization/definitions.h
/** * \file definitions.h * \brief utils for defining optimization problems * \author Steve T. * \version 0.1 * \date 06/17/2013 */ #ifndef _CLASS_DEFINITIONS_H #define _CLASS_DEFINITIONS_H #include <ndcurves/bezier_curve.h> #include <ndcurves/curve_constraint.h> #include <ndcurves/linear_variable.h> #include <...
2,506
27.488636
74
h
ndcurves
ndcurves-master/include/ndcurves/optimization/integral_cost.h
/** * \file bezier_curve.h * \brief class allowing to create a Bezier curve of dimension 1 <= n <= 3. * \author Steve T. * \version 0.1 * \date 06/17/2013 */ #ifndef _CLASS_QUADRATIC_COST #define _CLASS_QUADRATIC_COST #include <Eigen/Core> #include "ndcurves/optimization/definitions.h" #include "ndcurves/optim...
1,559
28.433962
80
h
mono-vo
mono-vo-master/src/vo_features.h
/* The MIT License Copyright (c) 2015 Avi Singh Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,...
2,854
33.817073
120
h
CLF_reactive_planning_system-release_v0/external/cereal/include/cereal/external/rapidjson/stream.h
CLF_reactive_planning_system-release_v0/external/cereal/include/cereal/external/rapidjson/stream.h
// Tencent is pleased to support the open source community by making RapidJSON available. // // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved. // // Licensed under the MIT License (the "License"); you may not use this file except // in compliance with the License. You may obt...
5,536
29.761111
95
h
CLF_reactive_planning_system-release_v0/external/cereal/include/cereal/external/rapidjson/ostreamwrapper.h
CLF_reactive_planning_system-release_v0/external/cereal/include/cereal/external/rapidjson/ostreamwrapper.h
// Tencent is pleased to support the open source community by making RapidJSON available. // // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved. // // Licensed under the MIT License (the "License"); you may not use this file except // in compliance with the License. You may obt...
2,422
28.54878
92
h
CLF_reactive_planning_system-release_v0/external/cereal/include/cereal/external/rapidjson/memorybuffer.h
CLF_reactive_planning_system-release_v0/external/cereal/include/cereal/external/rapidjson/memorybuffer.h
// Tencent is pleased to support the open source community by making RapidJSON available. // // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved. // // Licensed under the MIT License (the "License"); you may not use this file except // in compliance with the License. You may obt...
2,595
35.56338
129
h
CLF_reactive_planning_system-release_v0/external/cereal/include/cereal/external/rapidjson/fwd.h
CLF_reactive_planning_system-release_v0/external/cereal/include/cereal/external/rapidjson/fwd.h
// Tencent is pleased to support the open source community by making RapidJSON available. // // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved. // // Licensed under the MIT License (the "License"); you may not use this file except // in compliance with the License. You may obt...
4,070
25.782895
127
h
CLF_reactive_planning_system-release_v0/external/cereal/include/cereal/external/rapidjson/stringbuffer.h
CLF_reactive_planning_system-release_v0/external/cereal/include/cereal/external/rapidjson/stringbuffer.h
// Tencent is pleased to support the open source community by making RapidJSON available. // // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved. // // Licensed under the MIT License (the "License"); you may not use this file except // in compliance with the License. You may obt...
3,868
31.788136
118
h
CLF_reactive_planning_system-release_v0/external/cereal/include/cereal/external/rapidjson/istreamwrapper.h
CLF_reactive_planning_system-release_v0/external/cereal/include/cereal/external/rapidjson/istreamwrapper.h
// Tencent is pleased to support the open source community by making RapidJSON available. // // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved. // // Licensed under the MIT License (the "License"); you may not use this file except // in compliance with the License. You may obta...
3,767
31.205128
104
h
CLF_reactive_planning_system-release_v0/external/cereal/include/cereal/external/rapidjson/msinttypes/inttypes.h
CLF_reactive_planning_system-release_v0/external/cereal/include/cereal/external/rapidjson/msinttypes/inttypes.h
// ISO C9x compliant inttypes.h for Microsoft Visual Studio // Based on ISO/IEC 9899:TC2 Committee draft (May 6, 2005) WG14/N1124 // // Copyright (c) 2006-2013 Alexander Chemeris // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following cond...
8,372
25.413249
94
h
CLF_reactive_planning_system-release_v0/external/cereal/include/cereal/external/rapidjson/error/error.h
CLF_reactive_planning_system-release_v0/external/cereal/include/cereal/external/rapidjson/error/error.h
// Tencent is pleased to support the open source community by making RapidJSON available. // // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved. // // Licensed under the MIT License (the "License"); you may not use this file except // in compliance with the License. You may obt...
5,985
37.371795
103
h
CLF_reactive_planning_system-release_v0/external/cereal/include/cereal/external/rapidjson/internal/itoa.h
CLF_reactive_planning_system-release_v0/external/cereal/include/cereal/external/rapidjson/internal/itoa.h
// Tencent is pleased to support the open source community by making RapidJSON available. // // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved. // // Licensed under the MIT License (the "License"); you may not use this file except // in compliance with the License. You may obt...
10,341
32.908197
92
h
CLF_reactive_planning_system-release_v0/external/cereal/include/cereal/external/rapidjson/internal/meta.h
CLF_reactive_planning_system-release_v0/external/cereal/include/cereal/external/rapidjson/internal/meta.h
// Tencent is pleased to support the open source community by making RapidJSON available. // // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved. // // Licensed under the MIT License (the "License"); you may not use this file except // in compliance with the License. You may obt...
6,803
36.384615
114
h
CLF_reactive_planning_system-release_v0/external/cereal/include/cereal/external/rapidjson/internal/strtod.h
CLF_reactive_planning_system-release_v0/external/cereal/include/cereal/external/rapidjson/internal/strtod.h
// Tencent is pleased to support the open source community by making RapidJSON available. // // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved. // // Licensed under the MIT License (the "License"); you may not use this file except // in compliance with the License. You may obt...
8,791
31.562963
126
h
CLF_reactive_planning_system-release_v0/external/cereal/include/cereal/external/rapidjson/internal/ieee754.h
CLF_reactive_planning_system-release_v0/external/cereal/include/cereal/external/rapidjson/internal/ieee754.h
// Tencent is pleased to support the open source community by making RapidJSON available. // // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved. // // Licensed under the MIT License (the "License"); you may not use this file except // in compliance with the License. You may obt...
3,092
38.151899
113
h
CLF_reactive_planning_system-release_v0/external/cereal/include/cereal/external/rapidjson/internal/strfunc.h
CLF_reactive_planning_system-release_v0/external/cereal/include/cereal/external/rapidjson/internal/strfunc.h
// Tencent is pleased to support the open source community by making RapidJSON available. // // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved. // // Licensed under the MIT License (the "License"); you may not use this file except // in compliance with the License. You may obt...
1,932
33.517857
104
h
CLF_reactive_planning_system-release_v0/external/cereal/include/cereal/external/rapidjson/internal/swap.h
CLF_reactive_planning_system-release_v0/external/cereal/include/cereal/external/rapidjson/internal/swap.h
// Tencent is pleased to support the open source community by making RapidJSON available. // // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved. // // Licensed under the MIT License (the "License"); you may not use this file except // in compliance with the License. You may obta...
1,482
30.553191
98
h
CLF_reactive_planning_system-release_v0/external/cereal/include/cereal/external/rapidjson/internal/biginteger.h
CLF_reactive_planning_system-release_v0/external/cereal/include/cereal/external/rapidjson/internal/biginteger.h
// Tencent is pleased to support the open source community by making RapidJSON available. // // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved. // // Licensed under the MIT License (the "License"); you may not use this file except // in compliance with the License. You may obt...
9,223
30.697595
111
h
CLF_reactive_planning_system-release_v0/external/cereal/include/cereal/external/rapidjson/internal/diyfp.h
CLF_reactive_planning_system-release_v0/external/cereal/include/cereal/external/rapidjson/internal/diyfp.h
// Tencent is pleased to support the open source community by making RapidJSON available. // // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved. // // Licensed under the MIT License (the "License"); you may not use this file except // in compliance with the License. You may obt...
12,226
46.208494
111
h
CLF_reactive_planning_system-release_v0/src/planner_info_to_controller_t.c
CLF_reactive_planning_system-release_v0/src/planner_info_to_controller_t.c
#include "planner_info_to_controller_t.h" #include <stddef.h> #include <string.h> void pack_planner_info_to_controller_t(const planner_info_to_controller_t *bus, unsigned char bytes[2136]) { float x; unsigned char y[4]; int i0; unsigned char b_y[12]; float b_x[3]; unsigned char c_y[4]; unsigned char d_...
4,572
25.131429
81
c
CLF_reactive_planning_system-release_v0/src/info_to_robot_t.c
CLF_reactive_planning_system-release_v0/src/info_to_robot_t.c
#include "info_to_robot_t.h" #include <stddef.h> #include <string.h> #include <stdio.h> void pack_info_to_robot_t(const info_to_robot_t *bus, unsigned char bytes[188]) { int i0; unsigned char y[28]; float x[7]; unsigned char b_y[160]; float b_x[40]; // copy pose to x for (i0 = 0; i0 < 7; ...
1,777
21.794872
84
c