<commit_before>//
// Created by stefan on 12/24/15.
//


// Example copied from
// http://docs.opencv.org/2.4/modules/highgui/doc/reading_and_writing_images_and_video.html
#include "opencv2/opencv.hpp"
#include "Cube.h"
#include "CubeDrawer2D.h"

void drawStepTransform(Cube & cube, std::vector<CubeTransforms > & transforms)
{
    cv::Mat img(320, 320, CV_8UC3, cv::Scalar::all(0));
    cv::namedWindow("Rubik Solver", 1);

    for(auto t : transforms)
    {
        CubeDrawer2D dCube(cube);
        dCube.draw(img);
        imshow("Rubik Solver", img);
        cv::waitKey();
        cube.transform(t);
    }
}

void testAllTransforms()
{
    Cube cube;

    std::vector<CubeTransforms > tvec = {
            LEFT_CCW,
            LEFT_CW,
            LEFT_CW,
            LEFT_CCW,
            FRONT_CCW,
            FRONT_CW,
            FRONT_CW,
            FRONT_CCW,
            RIGHT_CCW,
            RIGHT_CW,
            RIGHT_CW,
            RIGHT_CCW,
            BACK_CCW,
            BACK_CW,
            BACK_CW,
            BACK_CCW,
            TOP_CCW,
            TOP_CW,
            TOP_CW,
            TOP_CCW,
            BOTTOM_CCW,
            BOTTOM_CW,
            BOTTOM_CW,
            BOTTOM_CCW
    };

    drawStepTransform(cube, tvec);
}

int main(int, char**)
{
    testAllTransforms();
    return 0;
}
<commit_msg>just for testing the ssh key access<commit_after>//
// Created by stefan on 12/24/15.
//


// Example copied from
// http://docs.opencv.org/2.4/modules/highgui/doc/reading_and_writing_images_and_video.html
#include "opencv2/opencv.hpp"
#include "Cube.h"
#include "CubeDrawer2D.h"

void drawStepTransform(Cube & cube, const std::vector<CubeTransforms > & transforms)
{
    cv::Mat img(320, 320, CV_8UC3, cv::Scalar::all(0));
    cv::namedWindow("Rubik Solver", 1);

    for(auto t : transforms)
    {
        CubeDrawer2D dCube(cube);
        dCube.draw(img);
        imshow("Rubik Solver", img);
        cv::waitKey();
        cube.transform(t);
    }
}

void testAllTransforms()
{
    Cube cube;

    std::vector<CubeTransforms > tvec = {
            LEFT_CCW,
            LEFT_CW,
            LEFT_CW,
            LEFT_CCW,
            FRONT_CCW,
            FRONT_CW,
            FRONT_CW,
            FRONT_CCW,
            RIGHT_CCW,
            RIGHT_CW,
            RIGHT_CW,
            RIGHT_CCW,
            BACK_CCW,
            BACK_CW,
            BACK_CW,
            BACK_CCW,
            TOP_CCW,
            TOP_CW,
            TOP_CW,
            TOP_CCW,
            BOTTOM_CCW,
            BOTTOM_CW,
            BOTTOM_CW,
            BOTTOM_CCW
    };

    drawStepTransform(cube, tvec);
}

int main(int, char**)
{
    Cube cube;
    drawStepTransform(cube, Cube::getRandomTransformVec(10));
    return 0;
}

{'fraction_non_alphanumeric': 0.11151079136690648, 'fraction_numerical': 0.016546762589928057, 'mean_word_length': 1.6973811833171677, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '4271825', 'n_tokens_mistral': 1089, 'n_tokens_neox': 985, 'n_words': 166}