<commit_before>! Copyright (C) 2009 <NAME>.
! See http://factorcode.org/license.txt for BSD license.
USING: accessors classes.struct cocoa cocoa.classes
cocoa.subclassing core-graphics.types kernel math ;
IN: tools.deploy.test.14

CLASS: {
    { +superclass+ "NSObject" }
    { +name+ "Bar" }
} {
    "bar:"
    float
    { id SEL NSRect }
    [
        [ origin>> [ x>> ] [ y>> ] bi + ]
        [ size>> [ w>> ] [ h>> ] bi + ]
        bi +
    ]
} ;

: main ( -- )
    Bar -> alloc -> init
    S{ CGRect f S{ CGPoint f 1.0 2.0 } S{ CGSize f 3.0 4.0 } } -> bar:
    10.0 assert= ;

MAIN: main
<commit_msg>fix tools.deploy test<commit_after>! Copyright (C) 2009 <NAME>.
! See http://factorcode.org/license.txt for BSD license.
USING: accessors classes.struct cocoa cocoa.classes
cocoa.runtime cocoa.subclassing cocoa.types core-graphics.types
kernel math ;
FROM: alien.c-types => float ;
IN: tools.deploy.test.14

CLASS: {
    { +superclass+ "NSObject" }
    { +name+ "Bar" }
} {
    "bar:"
    float
    { id SEL NSRect }
    [
        [ origin>> [ x>> ] [ y>> ] bi + ]
        [ size>> [ w>> ] [ h>> ] bi + ]
        bi +
    ]
} ;

: main ( -- )
    Bar -> alloc -> init
    S{ CGRect f S{ CGPoint f 1.0 2.0 } S{ CGSize f 3.0 4.0 } } -> bar:
    10.0 assert= ;

MAIN: main

{'fraction_non_alphanumeric': 0.17333333333333334, 'fraction_numerical': 0.02666666666666667, 'mean_word_length': 2.1506172839506172, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 36, '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': '2538970', 'n_tokens_mistral': 520, 'n_tokens_neox': 476, 'n_words': 131}