<commit_before>/*
# Copyright (c) 2015, <NAME> <<EMAIL>>
# All rights reserved.
#
# OpenFX-Arena is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2. You should have received a copy of the GNU General Public License version 2 along with OpenFX-Arena. If not, see http://www.gnu.org/licenses/.
# OpenFX-Arena is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
*/

#include "ofxsMacros.h"
#include "ofxsMultiThread.h"
#include "ofxsImageEffect.h"
#include <Magick++.h>
#include <iostream>
#include <stdint.h>
#include <cmath>
#include "ofxNatron.h"
#include <cstring>

#define kPluginName "PolaroidOFX"
#define kPluginGrouping "Extra/Misc"
#define kPluginIdentifier "net.fxarena.openfx.Polaroid"
#define kPluginVersionMajor 1
#define kPluginVersionMinor 4

#define kParamText "caption"
#define kParamTextLabel "Caption"
#define kParamTextHint "Add caption to polaroid"

#define kParamAngle "angle"
#define kParamAngleLabel "Angle"
#define kParamAngleHint "Adjust polaroid angle"
#define kParamAngleDefault 5

#define kParamFontSize "size"
#define kParamFontSizeLabel "Font size"
#define kParamFontSizeHint "The height of the characters to render in pixels"
#define kParamFontSizeDefault 64

#define kParamFontName "font"
#define kParamFontNameLabel "Font family"
#define kParamFontNameHint "The name of the font to be used"
#define kParamFontNameDefault "Arial"
#define kParamFontNameAltDefault "DejaVu-Sans" // failsafe on Linux/BSD

#define kParamFont "selectedFont"
#define kParamFontLabel "Font"
#define kParamFontHint "Selected font"

#define kSupportsTiles 0
#define kSupportsMultiResolution 1
#define kSupportsRenderScale 1
#define kRenderThreadSafety eRenderFullySafe
#define kHostFrameThreading false

#define kParamOpenMP "openmp"<commit_msg>Polaroid: minor fix<commit_after>/*
# Copyright (c) 2015, <NAME> <<EMAIL>>
# All rights reserved.
#
# OpenFX-Arena is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2. You should have received a copy of the GNU General Public License version 2 along with OpenFX-Arena. If not, see http://www.gnu.org/licenses/.
# OpenFX-Arena is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
*/

#include "ofxsMacros.h"
#include "ofxsMultiThread.h"
#include "ofxsImageEffect.h"
#include <Magick++.h>
#include <iostream>
#include <stdint.h>
#include <cmath>
#include "ofxNatron.h"
#include <cstring>

#define kPluginName "PolaroidOFX"
#define kPluginGrouping "Extra/Misc"
#define kPluginIdentifier "net.fxarena.openfx.Polaroid"
#define kPluginVersionMajor 1
#define kPluginVersionMinor 4

#define kParamText "caption"
#define kParamTextLabel "Caption"
#define kParamTextHint "Add caption to polaroid"

#define kParamAngle "angle"
#define kParamAngleLabel "Angle"
#define kParamAngleHint "Adjust polaroid angle"
#define kParamAngleDefault 5

#define kParamFontSize "size"
#define kParamFontSizeLabel "Font size"
#define kParamFontSizeHint "The height of the characters to render in pixels"
#define kParamFontSizeDefault 64

#define kParamFontName "font"
#define kParamFontNameLabel "Font family"
#define kParamFontNameHint "The name of the font to be used"
#define kParamFontNameDefault "Arial"
#define kParamFontNameAltDefault "DejaVu-Sans-Book" // failsafe on Linux/BSD

#define kParamFont "selectedFont"
#define kParamFontLabel "Font"
#define kParamFontHint "Selected font"

#define kSupportsTiles 0
#define kSupportsMultiResolution 1
#define kSupportsRenderScale 1
#define kRenderThreadSafety eRenderFullySafe
#define kHostFrameThreading false

#define kParamOpenMP "openmp"
{'fraction_non_alphanumeric': 0.08142231383664005, 'fraction_numerical': 0.007214635403246586, 'mean_word_length': 6.380228136882129, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1733333', 'n_tokens_mistral': 1226, 'n_tokens_neox': 1187, 'n_words': 429}