repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
granum-space/cansat-2017-2018 | research/omnubus-reborn/system-usr/src/granum_common.c | #include "stdbool.h"
#include "stm32f4xx_hal_i2c.h"
#include "stm32f4xx_hal_spi.h"
#include "granum_common.h"
static I2C_HandleTypeDef i2c1 = {// FIXME настройки неточные, если что
.Instance = I2C1,
.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT,
.Init.ClockSpeed = 100000,
.Init.DualAddressMode = I2C_DUALADDRES... |
granum-space/cansat-2017-2018 | src/board/omnibus/apps/examples/nsh/nsh_main.c | <reponame>granum-space/cansat-2017-2018
/****************************************************************************
* examples/nsh/nsh_main.c
*
* Copyright (C) 2007-2013, 2017 <NAME>. All rights reserved.
* Author: <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* mo... |
Shawn5141/lab0-c | queue.c | #include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "harness.h"
#include "queue.h"
/* Notice: sometimes, Cppcheck would find the potential NULL pointer bugs,
* but some of them cannot occur. You can suppress them by adding the
* following line.
* cppcheck-suppress nullPointer
... |
rodrigo-romano/m1-controller-code | src/actuators/segment7/M1SA_F_Control_S7.h | <filename>src/actuators/segment7/M1SA_F_Control_S7.h
/*
* File: M1SA_F_Control_S7.h
*
* Code generated for Simulink model 'M1SA_F_Control_S7'.
*
* Model version : 1.966
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Wed Mar 9 10:44:51 2022
*
* T... |
rodrigo-romano/m1-controller-code | src/actuators/segment1/M1SA_F_Control_S1.c | <filename>src/actuators/segment1/M1SA_F_Control_S1.c
/*
* File: M1SA_F_Control_S1.c
*
* Code generated for Simulink model 'M1SA_F_Control_S1'.
*
* Model version : 1.966
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Wed Mar 9 10:39:46 2022
*
* T... |
rodrigo-romano/m1-controller-code | src/actuators/segment5/M1SA_F_Control_S5.c | /*
* File: M1SA_F_Control_S5.c
*
* Code generated for Simulink model 'M1SA_F_Control_S5'.
*
* Model version : 1.966
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Wed Mar 9 10:39:46 2022
*
* Target selection: ert.tlc
* Embedded hardware selecti... |
rodrigo-romano/m1-controller-code | src/actuators/outer/M1SA_F_Control_OA.c | <gh_stars>0
/*
* File: M1SA_F_Control_OA.c
*
* Code generated for Simulink model 'M1SA_F_Control_OA'.
*
* Model version : 1.966
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Wed Mar 9 10:39:46 2022
*
* Target selection: ert.tlc
* Embedded hard... |
rodrigo-romano/m1-controller-code | src/actuators/segment3/M1SA_F_Control_S3.c | <reponame>rodrigo-romano/m1-controller-code<filename>src/actuators/segment3/M1SA_F_Control_S3.c<gh_stars>0
/*
* File: M1SA_F_Control_S3.c
*
* Code generated for Simulink model 'M1SA_F_Control_S3'.
*
* Model version : 1.966
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ sourc... |
rodrigo-romano/m1-controller-code | src/local_controller/M1LocalControl.h | <reponame>rodrigo-romano/m1-controller-code
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
/*
* File: M1LocalControl.h
*
* Code generated for Simulink model 'M1LocalControl'.
*
* Model version : 1.642
* Simulink Coder version : 8.14 (R2018a) 06-Feb-2018
* C/C++ source code generated o... |
rodrigo-romano/m1-controller-code | src/local_controller/M1LocalControl_data.c | <gh_stars>0
/*
* File: M1LocalControl_data.c
*
* Code generated for Simulink model 'M1LocalControl'.
*
* Model version : 1.642
* Simulink Coder version : 8.14 (R2018a) 06-Feb-2018
* C/C++ source code generated on : Thu Jun 4 20:11:46 2020
*
* Target selection: ert.tlc
* Embedded hard... |
rodrigo-romano/m1-controller-code | src/actuators/segment6/M1SA_F_Control_S6.c | <gh_stars>0
/*
* File: M1SA_F_Control_S6.c
*
* Code generated for Simulink model 'M1SA_F_Control_S6'.
*
* Model version : 1.966
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Wed Mar 9 10:39:46 2022
*
* Target selection: ert.tlc
* Embedded hard... |
rodrigo-romano/m1-controller-code | src/actuators/segment7/M1SA_F_Control_S7.c | /*
* File: M1SA_F_Control_S7.c
*
* Code generated for Simulink model 'M1SA_F_Control_S7'.
*
* Model version : 1.966
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Wed Mar 9 10:44:51 2022
*
* Target selection: ert.tlc
* Embedded hardware selecti... |
rodrigo-romano/m1-controller-code | src/actuators/segment4/M1SA_F_Control_S4.c | /*
* File: M1SA_F_Control_S4.c
*
* Code generated for Simulink model 'M1SA_F_Control_S4'.
*
* Model version : 1.966
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Wed Mar 9 10:39:46 2022
*
* Target selection: ert.tlc
* Embedded hardware selecti... |
rodrigo-romano/m1-controller-code | src/hp_load_cells/M1_HP_loadcells.c | <gh_stars>0
/*
* File: M1_HP_loadcells.c
*
* Code generated for Simulink model 'M1_HP_loadcells'.
*
* Model version : 1.788
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Thu Feb 10 11:47:20 2022
*
* Target selection: ert.tlc
* Embedded hardware... |
rodrigo-romano/m1-controller-code | src/actuators/center/M1SA_F_Control_CS.c | /*
* File: M1SA_F_Control_CS.c
*
* Code generated for Simulink model 'M1SA_F_Control_CS'.
*
* Model version : 1.966
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Wed Mar 9 10:44:51 2022
*
* Target selection: ert.tlc
* Embedded hardware selecti... |
rodrigo-romano/m1-controller-code | src/cg_controller/M1OFL_Control.h | <gh_stars>0
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
/*
* File: M1OFL_Control.h
*
* Code generated for Simulink model 'M1OFL_Control'.
*
* Model version : 1.758
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Tue Mar 2 10:27:22 2021
*
* ... |
rodrigo-romano/m1-controller-code | src/actuators/segment2/M1SA_F_Control_S2.c | <reponame>rodrigo-romano/m1-controller-code<filename>src/actuators/segment2/M1SA_F_Control_S2.c
/*
* File: M1SA_F_Control_S2.c
*
* Code generated for Simulink model 'M1SA_F_Control_S2'.
*
* Model version : 1.966
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code gene... |
rodrigo-romano/m1-controller-code | src/actuators/segment2/M1SA_F_Control_S2_data.c | /*
* File: M1SA_F_Control_S2_data.c
*
* Code generated for Simulink model 'M1SA_F_Control_S2'.
*
* Model version : 1.966
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Wed Mar 9 10:39:46 2022
*
* Target selection: ert.tlc
* Embedded hardware se... |
rodrigo-romano/m1-controller-code | src/hp_dynamics/M1_HP_Dyn.c | /*
* File: M1_HP_Dyn.c
*
* Code generated for Simulink model 'M1_HP_Dyn'.
*
* Model version : 1.960
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Fri Feb 11 10:27:20 2022
*
* Target selection: ert.tlc
* Embedded hardware selection: Intel->x86-6... |
rodrigo-romano/m1-controller-code | src/local_controller/M1LocalControl.c | <reponame>rodrigo-romano/m1-controller-code<filename>src/local_controller/M1LocalControl.c
/*
* File: M1LocalControl.c
*
* Code generated for Simulink model 'M1LocalControl'.
*
* Model version : 1.642
* Simulink Coder version : 8.14 (R2018a) 06-Feb-2018
* C/C++ source code generated on :... |
rodrigo-romano/m1-controller-code | src/local_controller/M1LocalControl_types.h | <filename>src/local_controller/M1LocalControl_types.h
/*
* File: M1LocalControl_types.h
*
* Code generated for Simulink model 'M1LocalControl'.
*
* Model version : 1.642
* Simulink Coder version : 8.14 (R2018a) 06-Feb-2018
* C/C++ source code generated on : Thu Jun 4 20:11:46 2020
*
*... |
rodrigo-romano/m1-controller-code | src/cg_controller/M1OFL_Control.c | /*
* File: M1OFL_Control.c
*
* Code generated for Simulink model 'M1OFL_Control'.
*
* Model version : 1.758
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Tue Mar 2 10:27:22 2021
*
* Target selection: ert.tlc
* Embedded hardware selection: Inte... |
rodrigo-romano/m1-controller-code | src/actuators/center/M1SA_F_Control_CS.h | /*
* File: M1SA_F_Control_CS.h
*
* Code generated for Simulink model 'M1SA_F_Control_CS'.
*
* Model version : 1.966
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Wed Mar 9 10:44:51 2022
*
* Target selection: ert.tlc
* Embedded hardware selecti... |
rodrigo-romano/m1-controller-code | src/cg_controller/M1OFL_Control_data.c | /*
* File: M1OFL_Control_data.c
*
* Code generated for Simulink model 'M1OFL_Control'.
*
* Model version : 1.758
* Simulink Coder version : 9.0 (R2018b) 24-May-2018
* C/C++ source code generated on : Tue Mar 2 10:27:22 2021
*
* Target selection: ert.tlc
* Embedded hardware selection:... |
scchan/CARE | src/care/DefaultMacros.h | //////////////////////////////////////////////////////////////////////////////////////
// Copyright 2020 Lawrence Livermore National Security, LLC and other CARE developers.
// See the top-level LICENSE file for details.
//
// SPDX-License-Identifier: BSD-3-Clause
///////////////////////////////////////////////////////... |
scchan/CARE | src/care/algorithm_decl.h | //////////////////////////////////////////////////////////////////////////////////////
// Copyright 2020 Lawrence Livermore National Security, LLC and other CARE developers.
// See the top-level LICENSE file for details.
//
// SPDX-License-Identifier: BSD-3-Clause
///////////////////////////////////////////////////////... |
scchan/CARE | src/care/scan.h | <gh_stars>10-100
//////////////////////////////////////////////////////////////////////////////////////
// Copyright 2020 Lawrence Livermore National Security, LLC and other CARE developers.
// See the top-level LICENSE file for details.
//
// SPDX-License-Identifier: BSD-3-Clause
//////////////////////////////////////... |
scchan/CARE | src/care/host_ptr.h | <filename>src/care/host_ptr.h<gh_stars>0
//////////////////////////////////////////////////////////////////////////////////////
// Copyright 2020 Lawrence Livermore National Security, LLC and other CARE developers.
// See the top-level LICENSE file for details.
//
// SPDX-License-Identifier: BSD-3-Clause
//////////////... |
scchan/CARE | src/care/forall.h | <filename>src/care/forall.h
//////////////////////////////////////////////////////////////////////////////////////
// Copyright 2020 Lawrence Livermore National Security, LLC and other CARE developers.
// See the top-level LICENSE file for details.
//
// SPDX-License-Identifier: BSD-3-Clause
///////////////////////////... |
scchan/CARE | src/care/util.h | //////////////////////////////////////////////////////////////////////////////////////
// Copyright 2020 Lawrence Livermore National Security, LLC and other CARE developers.
// See the top-level LICENSE file for details.
//
// SPDX-License-Identifier: BSD-3-Clause
///////////////////////////////////////////////////////... |
scchan/CARE | src/care/policies.h | //////////////////////////////////////////////////////////////////////////////////////
// Copyright 2020 Lawrence Livermore National Security, LLC and other CARE developers.
// See the top-level LICENSE file for details.
//
// SPDX-License-Identifier: BSD-3-Clause
///////////////////////////////////////////////////////... |
scchan/CARE | src/care/LoopFuser.h | //////////////////////////////////////////////////////////////////////////////////////
// Copyright 2020 Lawrence Livermore National Security, LLC and other CARE developers.
// See the top-level LICENSE file for details.
//
// SPDX-License-Identifier: BSD-3-Clause
///////////////////////////////////////////////////////... |
benknoble/junk-drawer | code/some.c | #include <stdio.h>
int main(void) {
if (-2) {
puts("True");
} else {
puts("False");
}
return 0;
}
|
benknoble/junk-drawer | code/threads.c | <reponame>benknoble/junk-drawer
#include <pthread.h>
#include <semaphore.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#define NUM_OPERATIONS 15
#define OUTPUT_LENGTH 20
#define T1_WAIT_SECONDS 5
#define T2_WAIT_SECONDS 1
char shared_str[OUTPUT_LENGTH];
int print_count = 0;
sem_t ... |
benknoble/junk-drawer | code/int.c | <reponame>benknoble/junk-drawer<filename>code/int.c<gh_stars>1-10
#include <stdio.h>
int main(int argc, char **argv) {
char c = 1;
char d = (char)1;
char e = (char)(-1);
printf("%zu\t%zu\n", sizeof(c), sizeof(d));
printf("%c\n", e);
}
|
benknoble/junk-drawer | code/func_params.c | <filename>code/func_params.c
#include <stdio.h>
int sum(int a, int b) {
return a + b;
}
int inc (int a) {
return a + 1;
}
void displayResult(int (*f) (int, int), int a, int b) {
printf("%d\n", (*f)(a,b));
}
int main(int argc, char **argv) {
displayResult(sum, 3, 4);
displayResult(inc, 3, 4);
}
|
benknoble/junk-drawer | code/read.c | <gh_stars>1-10
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv) {
FILE *f = fopen("dne", "r");
if (f == NULL)
exit(1);
printf("%c\n", fgetc(f));
}
|
benknoble/junk-drawer | code/error.c | #include <unistd.h>
#include <stdio.h>
int main() {
execlp("dne", "dne");
perror("my_program");
}
|
a-sennov/ALS-Refactored | Source/ALS/Public/Settings/AlsMovementAnimationSettings.h | <reponame>a-sennov/ALS-Refactored
#pragma once
#include "AlsMovementAnimationSettings.generated.h"
class UCurveFloat;
USTRUCT(BlueprintType)
struct ALS_API FAlsMovementAnimationSettings
{
GENERATED_BODY()
UPROPERTY(EditAnywhere, BlueprintReadWrite, Meta = (ClampMin = 0))
float AnimatedWalkSpeed{150.0f};
UPROP... |
a-sennov/ALS-Refactored | Source/ALSEditor/Public/AlsAnimationModifier_CreateCurves.h | #pragma once
#include "AnimationModifier.h"
#include "Utility/AlsConstants.h"
#include "AlsAnimationModifier_CreateCurves.generated.h"
USTRUCT(BlueprintType)
struct ALSEDITOR_API FAlsAnimationCurveKey
{
GENERATED_BODY()
UPROPERTY(EditAnywhere, BlueprintReadWrite, Meta = (ClampMin = 0))
int32 Frame{0};
UPROPER... |
a-sennov/ALS-Refactored | Source/ALSExample/Public/AlsCharacterExample.h | #pragma once
#include "AlsCharacter.h"
#include "AlsCharacterExample.generated.h"
class UAlsCameraComponent;
UCLASS()
class ALSEXAMPLE_API AAlsCharacterExample : public AAlsCharacter
{
GENERATED_BODY()
private:
UPROPERTY(VisibleDefaultsOnly, BlueprintReadOnly, Meta = (AllowPrivateAccess))
UAlsCameraComponent* A... |
a-sennov/ALS-Refactored | Source/ALS/Public/State/Enumerations/AlsMovementDirection.h | #pragma once
#include "AlsMovementDirection.generated.h"
UENUM(BlueprintType)
enum class EAlsMovementDirection : uint8
{
Forward,
Backward,
Left,
Right
};
USTRUCT(BlueprintType)
struct ALS_API FAlsMovementDirection
{
GENERATED_BODY()
private:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Meta = (AllowPrivateAc... |
a-sennov/ALS-Refactored | Source/ALS/Public/State/Enumerations/AlsLocomotionMode.h | #pragma once
#include "AlsLocomotionMode.generated.h"
UENUM(BlueprintType)
enum class EAlsLocomotionMode : uint8
{
None,
Grounded,
InAir,
};
USTRUCT(BlueprintType)
struct ALS_API FAlsLocomotionMode
{
GENERATED_BODY()
private:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Meta = (AllowPrivateAccess))
EAlsLocomo... |
a-sennov/ALS-Refactored | Source/ALS/Public/Settings/AlsInAirRotationMode.h | #pragma once
#include "AlsInAirRotationMode.generated.h"
UENUM(BlueprintType)
enum class EAlsInAirRotationMode : uint8
{
RotateToVelocityOnJump,
KeepRelativeRotation,
KeepWorldRotation
};
|
a-sennov/ALS-Refactored | Source/ALSCamera/Public/Notify/AlsAnimNotify_CameraShake.h | #pragma once
#include "Animation/AnimNotifies/AnimNotify.h"
#include "Templates/SubclassOf.h"
#include "AlsAnimNotify_CameraShake.generated.h"
class UCameraShakeBase;
UCLASS(DisplayName = "Als Camera Shake Animation Notify")
class ALSCAMERA_API UAlsAnimNotify_CameraShake : public UAnimNotify
{
GENERATED_BODY()
pr... |
a-sennov/ALS-Refactored | Source/ALS/Public/Utility/GameplayTags/AlsLocomotionActionTags.h | #pragma once
#include "GameplayTagContainer.h"
struct ALS_API FAlsLocomotionActionTags : public FGameplayTagNativeAdder
{
private:
static const FAlsLocomotionActionTags Instance;
public:
FGameplayTag Mantling;
FGameplayTag Ragdolling;
FGameplayTag GettingUp;
FGameplayTag Rolling;
public:
virtual void AddTags... |
a-sennov/ALS-Refactored | Source/ALS/Public/State/Structures/AlsLocomotionAnimationState.h | <filename>Source/ALS/Public/State/Structures/AlsLocomotionAnimationState.h
#pragma once
#include "AlsLocomotionAnimationState.generated.h"
USTRUCT(BlueprintType)
struct ALS_API FAlsLocomotionAnimationState
{
GENERATED_BODY()
UPROPERTY(EditAnywhere, BlueprintReadWrite)
bool bHasInput{false};
UPROPERTY(EditAnywh... |
a-sennov/ALS-Refactored | Source/ALSCamera/Public/AlsCameraAnimationInstance.h | #pragma once
#include "GameplayTagContainer.h"
#include "Animation/AnimInstance.h"
#include "State/Enumerations/AlsGait.h"
#include "State/Enumerations/AlsLocomotionMode.h"
#include "State/Enumerations/AlsRotationMode.h"
#include "State/Enumerations/AlsStance.h"
#include "State/Enumerations/AlsViewMode.h"
#include "A... |
a-sennov/ALS-Refactored | Source/ALS/Public/Settings/AlsGeneralAnimationSettings.h | #pragma once
#include "AlsGeneralAnimationSettings.generated.h"
class UCurveFloat;
USTRUCT(BlueprintType)
struct ALS_API FAlsGeneralAnimationSettings
{
GENERATED_BODY()
UPROPERTY(EditAnywhere, BlueprintReadWrite)
bool bUseHandIkBones{true};
UPROPERTY(EditAnywhere, BlueprintReadWrite)
bool bUseFootIkBones{tru... |
a-sennov/ALS-Refactored | Source/ALS/Public/Notify/AlsAnimNotify_FootstepEffects.h | #pragma once
#include "Animation/AnimNotifies/AnimNotify.h"
#include "Settings/AlsFootstepsEffectsSettings.h"
#include "AlsAnimNotify_FootstepEffects.generated.h"
UCLASS(DisplayName = "Als Footstep Effects Animation Notify")
class ALS_API UAlsAnimNotify_FootstepEffects : public UAnimNotify
{
GENERATED_BODY()
priva... |
a-sennov/ALS-Refactored | Source/ALS/Public/State/Structures/AlsMovementState.h | <reponame>a-sennov/ALS-Refactored
#pragma once
#include "AlsMovementState.generated.h"
UENUM(BlueprintType)
enum class EAlsHipsDirection : uint8
{
Forward,
Backward,
LeftForward,
LeftBackward,
RightForward,
RightBackward,
};
USTRUCT(BlueprintType)
struct ALS_API FAlsVelocityBlendState
{
GENERATED_BODY()
UP... |
a-sennov/ALS-Refactored | Source/ALS/Public/State/Structures/AlsViewState.h | <gh_stars>10-100
#pragma once
#include "AlsViewState.generated.h"
USTRUCT(BlueprintType)
struct ALS_API FAlsViewState
{
GENERATED_BODY()
UPROPERTY(EditAnywhere, BlueprintReadWrite)
FRotator SmoothRotation{ForceInit};
UPROPERTY(EditAnywhere, BlueprintReadWrite, Meta = (ClampMin = 0))
float YawSpeed{0.0f};
UP... |
a-sennov/ALS-Refactored | Source/ALS/Public/State/Enumerations/AlsMantlingType.h | <filename>Source/ALS/Public/State/Enumerations/AlsMantlingType.h
#pragma once
#include "AlsMantlingType.generated.h"
UENUM(BlueprintType)
enum class EAlsMantlingType : uint8
{
High,
Low,
InAir
};
|
a-sennov/ALS-Refactored | Source/ALS/Public/Utility/AlsLog.h | #pragma once
#include "Logging/LogMacros.h"
ALS_API DECLARE_LOG_CATEGORY_EXTERN(LogAls, Log, All)
|
a-sennov/ALS-Refactored | Source/ALS/Public/Settings/AlsFootstepsEffectsSettings.h | <reponame>a-sennov/ALS-Refactored<gh_stars>0
#pragma once
#include "Chaos/ChaosEngineInterface.h"
#include "Engine/DataAsset.h"
#include "Engine/EngineTypes.h"
#include "AlsFootstepsEffectsSettings.generated.h"
class USoundBase;
class UMaterialInterface;
class UNiagaraSystem;
UENUM(BlueprintType)
enum class EAlsFoo... |
a-sennov/ALS-Refactored | Source/ALSEditor/Public/AlsAnimationModifier_CreateLayeringCurves.h | <filename>Source/ALSEditor/Public/AlsAnimationModifier_CreateLayeringCurves.h
#pragma once
#include "AnimationModifier.h"
#include "Utility/AlsConstants.h"
#include "AlsAnimationModifier_CreateLayeringCurves.generated.h"
UCLASS(DisplayName = "Als Create Layering Curves Animation Modifier")
class ALSEDITOR_API UAlsA... |
a-sennov/ALS-Refactored | Source/ALS/Public/State/Structures/AlsLeanState.h | #pragma once
#include "AlsLeanState.generated.h"
USTRUCT(BlueprintType)
struct ALS_API FAlsLeanState
{
GENERATED_BODY()
UPROPERTY(EditAnywhere, BlueprintReadWrite, Meta = (ClampMin = -1, ClampMax = 1))
float RightAmount{0.0f};
UPROPERTY(EditAnywhere, BlueprintReadWrite, Meta = (ClampMin = -1, ClampMax = 1))
f... |
a-sennov/ALS-Refactored | Source/ALS/Public/Settings/AlsDynamicTransitionSettings.h | <reponame>a-sennov/ALS-Refactored
#pragma once
#include "AlsDynamicTransitionSettings.generated.h"
class UAnimSequenceBase;
USTRUCT(BlueprintType)
struct ALS_API FAlsDynamicTransitionSettings
{
GENERATED_BODY()
UPROPERTY(EditAnywhere, BlueprintReadWrite, Meta = (ClampMin = 0))
float FootIkDistanceThreshold{8.0f... |
a-sennov/ALS-Refactored | Source/ALS/Public/Utility/AlsEnumerationUtility.h | <reponame>a-sennov/ALS-Refactored
#pragma once
template <typename Enumeration>
static int32 GetEnumValueIndex(const Enumeration Value)
{
return StaticEnum<Enumeration>()->GetIndexByValue(static_cast<int64>(Value));
}
template <typename Enumeration>
static FString GetEnumValueString(const Enumeration Value)
{
retur... |
a-sennov/ALS-Refactored | Source/ALS/Public/Settings/AlsMantlingSettings.h | <gh_stars>0
#pragma once
#include "Engine/DataAsset.h"
#include "Engine/EngineTypes.h"
#include "State/Enumerations/AlsMantlingType.h"
#include "AlsMantlingSettings.generated.h"
class UAnimMontage;
class UCurveFloat;
class UCurveVector;
USTRUCT(BlueprintType)
struct ALS_API FAlsMantlingParameters
{
GENERATED_BODY... |
a-sennov/ALS-Refactored | Source/ALS/Public/State/Structures/AlsLocomotionState.h | <reponame>a-sennov/ALS-Refactored<filename>Source/ALS/Public/State/Structures/AlsLocomotionState.h
#pragma once
#include "AlsLocomotionState.generated.h"
USTRUCT(BlueprintType)
struct ALS_API FAlsLocomotionState
{
GENERATED_BODY()
UPROPERTY(EditAnywhere, BlueprintReadWrite)
bool bHasInput{false};
UPROPERTY(Edi... |
a-sennov/ALS-Refactored | Source/ALSCamera/Public/AlsCameraComponent.h | #pragma once
#include "Camera/CameraTypes.h"
#include "Components/SkeletalMeshComponent.h"
#include "Utility/AlsConstants.h"
#include "Utility/AlsMath.h"
#include "AlsCameraComponent.generated.h"
class AAlsCharacter;
USTRUCT(BlueprintType)
struct ALSCAMERA_API FAlsFirstPersonCameraSettings
{
GENERATED_BODY()
UPR... |
a-sennov/ALS-Refactored | Source/ALS/Public/Node/AlsAnimNode_GameplayTagsBlend.h | #pragma once
#include "GameplayTagContainer.h"
#include "AnimNodes/AnimNode_BlendListBase.h"
#include "AlsAnimNode_GameplayTagsBlend.generated.h"
USTRUCT()
struct ALS_API FAlsAnimNode_GameplayTagsBlend : public FAnimNode_BlendListBase
{
GENERATED_BODY()
public:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category... |
a-sennov/ALS-Refactored | Source/ALS/Public/Utility/GameplayTags/AlsGroundedEntryModeTags.h | <reponame>a-sennov/ALS-Refactored<filename>Source/ALS/Public/Utility/GameplayTags/AlsGroundedEntryModeTags.h
#pragma once
#include "GameplayTagContainer.h"
struct ALS_API FAlsGroundedEntryModeTags : public FGameplayTagNativeAdder
{
private:
static const FAlsGroundedEntryModeTags Instance;
public:
FGameplayTag Def... |
mokagio/ImplicitSignednessKit | Example/DataSource.h | <filename>Example/DataSource.h
//
// DataSource.h
// ImplicitSignednessKit
//
// Created by Giovanni on 9/05/2015.
//
//
#import <UIKit/UIKit.h>
@interface DataSource : NSObject <UITableViewDataSource>
@end
|
mokagio/ImplicitSignednessKit | ImplicitSignednessKit/NSArray/NSArray+Signedness.h | #import <Foundation/Foundation.h>
@interface NSArray (Signedness)
/**
* The number of objects in the array, type-casted to NSInteger.
*
* @return The number of objects in the array.
*/
- (NSInteger)integerCount;
@end
|
mokagio/ImplicitSignednessKit | ImplicitSignednessKit/NSIndexPath/NSIndexPath+Signedness.h | <filename>ImplicitSignednessKit/NSIndexPath/NSIndexPath+Signedness.h
#import <UIKit/UIKit.h>
@interface NSIndexPath (Signedness)
/**
* An index number identifying a section, type-casted to unsigned integer. (read-only)
*/
@property (nonatomic, assign, readonly) NSUInteger unsignedSection;
/**
* An index number ... |
mokagio/ImplicitSignednessKit | Example/ViewController.h | //
// ViewController.h
// Example
//
// Created by Giovanni on 9/05/2015.
//
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
|
mokagio/ImplicitSignednessKit | ImplicitSignednessKit/ImplicitSignednessKit.h | <gh_stars>0
#ifndef ImplicitSignednessKit_ImplicitSignednessKit_h
#define ImplicitSignednessKit_ImplicitSignednessKit_h
#import "NSArray+Signedness.h"
#import "NSIndexPath+Signedness.h"
#endif
|
ronggong/TensorFlowTTS | examples/cppwin2/TensorflowTTSCppInference/EnglishPhoneticProcessor.h | <filename>examples/cppwin2/TensorflowTTSCppInference/EnglishPhoneticProcessor.h<gh_stars>0
#pragma once
#include <fstream>
#include "TextTokenizer.h"
#include "Phonemizer.h"
#include "VoxCommon.hpp"
#include "PerceptronTagger.h"
#include "G2pseq.h"
#include "TextUtils.h"
struct DictEntry {
std::string Word;
std::st... |
ronggong/TensorFlowTTS | examples/cppwin2/TensorflowTTSCppInference/FastSpeech2.h | <reponame>ronggong/TensorFlowTTS
#pragma once
#include "ext/CppFlow/include/Model.h"
#include "VoxCommon.hpp"
class FastSpeech2
{
private:
//Model* FastSpeech;
std::unique_ptr<Model> FastSpeech;
public:
FastSpeech2();
FastSpeech2(const std::string& SavedModelFolder);
/*
Initialize and load the model
-> Save... |
ronggong/TensorFlowTTS | examples/cppwin2/TensorflowTTSCppInference/G2pseq.h | #pragma once
#include <vector>
#include <fstream>
#include <iostream>
#include <string>
#include <unordered_map>
#include <Eigen/Dense>
#include "json/json.h"
using namespace Eigen;
class G2pseq {
private:
std::vector<std::string> graphemes;
std::vector<std::string> phonemes;
std::unordered_map<std::string, size_t... |
ronggong/TensorFlowTTS | examples/cppwin2/TensorflowTTSCppInference/MultiBandMelGAN.h | <reponame>ronggong/TensorFlowTTS
#pragma once
#include "ext/CppFlow/include/Model.h"
#include "VoxCommon.hpp"
class MultiBandMelGAN
{
private:
//Model* MelGAN;
std::unique_ptr<Model> MelGAN;
public:
bool Initialize(const std::string& VocoderPath);
// Do MultiBand MelGAN inference including PQMF
// -> InMel: M... |
ronggong/TensorFlowTTS | examples/cppwin2/TensorflowTTSCppInference/MultiBandMelGANCppFlow2.h | #pragma once
#include "ext/CppFlow2/cppflow.h"
#include "VoxCommon.hpp"
class MultiBandMelGANCppFlow2
{
private:
//Model* MelGAN;
std::unique_ptr<cppflow::model> melgan;
public:
bool Initialize(const std::string& VocoderPath);
// Do MultiBand MelGAN inference including PQMF
// -> InMel: Mel spectrogram (shape... |
ronggong/TensorFlowTTS | examples/cppwin2/TensorflowTTSCppInference/PerceptronTagger.h | <filename>examples/cppwin2/TensorflowTTSCppInference/PerceptronTagger.h
#pragma once
#include <set>
#include <limits>
#include <fstream>
#include <iostream>
#include <vector>
#include <unordered_map>
#include "TextUtils.h"
#include "json/json.h"
// Implementation inference of PerceptronTagger in nltk
class Perceptron... |
ronggong/TensorFlowTTS | examples/cppwin2/TensorflowTTSCppInference/Processor.h | #pragma once
#include <vector>
#include <string>
#include <regex>
#include <unordered_map>
//#include <algorithm>
#include "TextUtils.h"
#include "EnglishPhoneticProcessor.h"
#include "Phonemizer.h"
class Processor {
private:
const std::vector<std::string> VALID_SYMBOLS{
"AA", "AA0", "AA1", "AA2", "AE", "... |
ronggong/TensorFlowTTS | examples/cppwin2/TensorflowTTSCppInference/TextUtils.h | <reponame>ronggong/TensorFlowTTS<filename>examples/cppwin2/TensorflowTTSCppInference/TextUtils.h
#pragma once
#include <string>
#include <algorithm>
const std::string PUNCT = "!'(),.:;?";
class TextUtils {
public:
static void lowercase(std::string& text);
static bool isDigits(const std::string& text);
}; |
ronggong/TensorFlowTTS | examples/cppwin2/TensorflowTTSCppInference/TextTokenizer.h | <filename>examples/cppwin2/TensorflowTTSCppInference/TextTokenizer.h
#pragma once
#include <vector>
#include <string>
#include "VoxCommon.hpp"
class TextTokenizer
{
private:
std::string AllowedChars;
public:
TextTokenizer();
~TextTokenizer();
std::vector<std::string> Tokenize(const std::string& InTxt,
ETTSLang... |
ronggong/TensorFlowTTS | examples/cppwin2/TensorflowTTSCppInference/Phonemizer.h | <reponame>ronggong/TensorFlowTTS<gh_stars>0
#pragma once
#ifndef PHONEMIZER_H
#define PHONEMIZER_H
#include <vector>
#include <iostream>
#include <string>
#include <tuple>
#include <set>
#include <algorithm>
#include <unordered_map>
#include "TextUtils.h"
struct IdStr {
int32_t ID;
std::string STR;
};
struct... |
ronggong/TensorFlowTTS | examples/cppwin2/TensorflowTTSCppInference/FastSpeech2CppFlow2.h | #pragma once
#include "ext/CppFlow2/cppflow.h"
#include "VoxCommon.hpp"
class FastSpeech2CppFlow2
{
private:
//Model* FastSpeech;
std::unique_ptr<cppflow::model> fastspeech;
public:
FastSpeech2CppFlow2();
FastSpeech2CppFlow2(const std::string& SavedModelFolder);
/*
Initialize and load the model
-> SavedMode... |
ronggong/TensorFlowTTS | examples/cppwin2/TensorflowTTSCppInference/ext/CppFlow2/context.h | <gh_stars>0
//
// Created by serizba on 27/6/20.
//
#ifndef CPPFLOW2_CONTEXT_H
#define CPPFLOW2_CONTEXT_H
#include <memory>
#include <stdexcept>
#include <utility>
#include <tensorflow/c/c_api.h>
#include <tensorflow/c/eager/c_api.h>
namespace cppflow {
inline bool status_check(TF_Status* status) {
if ... |
ronggong/TensorFlowTTS | examples/cppwin2/TensorflowTTSCppInference/ext/CppFlow2/datatype.h | //
// Created by serizba on 12/7/20.
//
#ifndef CPPFLOW2_DATATYPE_H
#define CPPFLOW2_DATATYPE_H
namespace cppflow {
using datatype = TF_DataType;
/**
* @return A string representing dt
*
*/
inline std::string to_string(datatype dt) {
switch (dt) {
case TF_FLOAT:
... |
Oreder/PVS | 03/lab-tcp/net/c4/root/echosrv.c | /* Простейший TCP-сервер, отправляющий все полученные данные обратно клиенту */
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string.h>
#include <time.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#define BUFSIZE 512
/* обслу... |
Oreder/PVS | 03/lab-tcp/net/c5/root/echocl.c | <gh_stars>1-10
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string.h>
#include <time.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#define BUFSIZE 512
int main(int argc, char **argv) {
struct sockaddr_in addr; /* для ... |
Oreder/PVS | 03/lab-tcp/net/c1/root/nagle.c | <reponame>Oreder/PVS
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <libgen.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <unistd.h>
int usage(char *name)
{
fprintf(stderr, "Usage: %s cork|n... |
Oreder/PVS | 03/lab-tcp/net/c1/root/replay/replay.c | //
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <libgen.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <unistd.h>
#define CMD_NOOP 0
// write $arg bytes to socket
#define CMD_SEND 1
// slee... |
Oreder/PVS | 03/lab-tcp/net/c4/root/win.c | <reponame>Oreder/PVS
//
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <libgen.h>
#include <unistd.h>
int usage(char *name)
{
fprintf(stderr, "Usage: %s <port> <delay_sec> [max_packets]\n", basenam... |
Oreder/PVS | 02/lab-rip-hw/net/r1/root/ripcatch.c | <filename>02/lab-rip-hw/net/r1/root/ripcatch.c<gh_stars>0
/* Перехватчик RIP-трафика */
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string.h>
#include <time.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
/* размер буфера для... |
chrisliebert/rust-genbind | examples/cmake_C_example/example.c | <reponame>chrisliebert/rust-genbind
// Copyright (C) 2017 <NAME>
#include <assert.h>
#include <stdbool.h>
#include "example.h"
int main(int argc, char** argv) {
print_hello();
print_cstr("This is a c string");
print_int(add_ints(5, 6));
print_double(add_doubles(22.5, 3.34));
IntVector3 iv3a;
i... |
chrisliebert/rust-genbind | examples/cmake_C_example/test.c | // Copyright (C) 2017 <NAME>
#include <assert.h>
#include <stdbool.h>
#include <stdio.h>
#include "example.h"
int main(int argc, char** argv) {
assert(add_ints(3, 7) == 10);
assert(add_ints(-5, 4) == -1);
assert(add_doubles(-10.0, 10.0) == 0.0);
IntVector3 iv3a;
iv3a.x = 5;
iv3a.y = 6;
iv3... |
AutoOrganizationDemo/MediatorOilCategory | MediatorOilCategory/Classes/CTMediator+ModuleOilActions.h | //
// CTMediator+ModuleOilActions.h
// CTMediator
//
// Created by 王雪剑 on 2019/6/13.
//
#import <CTMediator/CTMediator.h>
@interface CTMediator (ModuleOilActions)
//传参数
- (UIViewController *)enterOilControllerWithParams:(NSDictionary *)dic;
//传参数+执行方法
- (UIViewController *)enterOilControllerWithDoSomeThing:(NSDic... |
AutoOrganizationDemo/MediatorOilCategory | Example/MediatorOilCategory/YFAppDelegate.h | //
// YFAppDelegate.h
// MediatorOilCategory
//
// Created by <EMAIL> on 06/13/2019.
// Copyright (c) 2019 <EMAIL>. All rights reserved.
//
@import UIKit;
@interface YFAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
AutoOrganizationDemo/MediatorOilCategory | Example/Pods/Target Support Files/MediatorOilCategory/MediatorOilCategory-umbrella.h | <filename>Example/Pods/Target Support Files/MediatorOilCategory/MediatorOilCategory-umbrella.h
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
#import "CTMediator+ModuleOilA... |
cloud8421/blinkchain | src/fake_ws2811.c | // This is a bare-bones implementation of the ws2811 API
// to make it easier to test on non-Raspberry Pi hardware
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include "rpi_ws281x/ws2811.h"
#include "port_interface.h"
#define RPI_PWM_CHANNELS 2
ws2811_return_t ws2811_init(ws2811_t... |
davidbrownellWork/onnxruntime | onnxruntime/core/providers/dml/OperatorAuthorHelper/OperatorHelper.h | <gh_stars>1-10
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include "Common.h"
#include "Attributes.h"
#include "MLOperatorAuthorHelper.h"
#include "core/common/common.h"
namespace OperatorHelper {
bool ContainsEmptyDimensions(gsl::span<const Dimension... |
davidbrownellWork/onnxruntime | winml/lib/Common/inc/winrt_headers.h | <filename>winml/lib/Common/inc/winrt_headers.h
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include "common.h"
#include <winrt/windows.media.h>
#include "winrt/windows.graphics.imaging.h"
#include "winrt/windows.foundation.h"
#include "winrt/windows.f... |
davidbrownellWork/onnxruntime | winml/lib/Common/inc/onnx.h | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include "common.h"
// Needed to work around the fact that OnnxRuntime defines ERROR
#ifdef ERROR
#undef ERROR
#endif
#include "core/session/inference_session.h"
// Restore ERROR define
#define ERROR 0
#ifd... |
muk343/pmml | PMMLNode.h | <filename>PMMLNode.h
#include<iostream>
#include<vector>
using namespace std;
class Node{
public:
double score;
vector<double> score_distribution;
double node_record_count;
string predicate_feature;
string predicate_operator;
double predicate_value;
vector<Node*> childNodes;
Node(int score... |
muk343/pmml | GraphGenerator.h | #include <iostream>
#include <sstream>
#include <string>
#include <stack>
#include "PMMLNode.h"
#include "tinyxml.h"
using namespace std;
class GraphGenerator{
public:
void populatePredicate(Node* node, TiXmlElement* pElement) ;
pair<double, double> getScoreDistribution(TiXmlElement* pEleme... |
connorcl/genetic-simulation | src/helper/numbers.h | <reponame>connorcl/genetic-simulation<filename>src/helper/numbers.h
#pragma once
namespace GeneticSimulation
{
// commonly used numbers
extern const int one_million;
extern const float pi;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.