Copy+Attentional Convolutional


Original Name mul,trans,unsafe

mul

<SENTENCE_START> { out . s = q . c * r . s - q . s * r . c ; out . c = q . c * r . c + q . s * r . s ; } <SENTENCE_END/>

(Copy Probability: 2.1%)

<SENTENCE_START> { out . s = q . c * r . s - q . s * r . c ; out . c = q . c * r . c + q . s * r . s ; } <SENTENCE_END/>

trans

<SENTENCE_START> { out . s = q . c * r . s - q . s * r . c ; out . c = q . c * r . c + q . s * r . s ; } <SENTENCE_END/>

(Copy Probability: 1.2%)

<SENTENCE_START> { out . s = q . c * r . s - q . s * r . c ; out . c = q . c * r . c + q . s * r . s ; } <SENTENCE_END/>

unsafe

<SENTENCE_START> { out . s = q . c * r . s - q . s * r . c ; out . c = q . c * r . c + q . s * r . s ; } <SENTENCE_END/>

(Copy Probability: 1.3%)

<SENTENCE_START> { out . s = q . c * r . s - q . s * r . c ; out . c = q . c * r . c + q . s * r . s ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { out . s = q . c * r . s - q . s * r . c ; out . c = q . c * r . c + q . s * r . s ; } <SENTENCE_END/>

(Copy Probability: 1.5%)

<SENTENCE_START> { out . s = q . c * r . s - q . s * r . c ; out . c = q . c * r . c + q . s * r . s ; } <SENTENCE_END/>


Original Name mul,to,out

mul

<SENTENCE_START> { float tempy = q . s * v . x + q . c * v . y ; out . x = q . c * v . x - q . s * v . y ; out . y = tempy ; } <SENTENCE_END/>

(Copy Probability: 1.8%)

<SENTENCE_START> { float tempy = q . s * v . x + q . c * v . y ; out . x = q . c * v . x - q . s * v . y ; out . y = tempy ; } <SENTENCE_END/>

to

<SENTENCE_START> { float tempy = q . s * v . x + q . c * v . y ; out . x = q . c * v . x - q . s * v . y ; out . y = tempy ; } <SENTENCE_END/>

(Copy Probability: 0.9%)

<SENTENCE_START> { float tempy = q . s * v . x + q . c * v . y ; out . x = q . c * v . x - q . s * v . y ; out . y = tempy ; } <SENTENCE_END/>

out

<SENTENCE_START> { float tempy = q . s * v . x + q . c * v . y ; out . x = q . c * v . x - q . s * v . y ; out . y = tempy ; } <SENTENCE_END/>

(Copy Probability: 1.1%)

<SENTENCE_START> { float tempy = q . s * v . x + q . c * v . y ; out . x = q . c * v . x - q . s * v . y ; out . y = tempy ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { float tempy = q . s * v . x + q . c * v . y ; out . x = q . c * v . x - q . s * v . y ; out . y = tempy ; } <SENTENCE_END/>

(Copy Probability: 1.7%)

<SENTENCE_START> { float tempy = q . s * v . x + q . c * v . y ; out . x = q . c * v . x - q . s * v . y ; out . y = tempy ; } <SENTENCE_END/>


Original Name mul,to,out,unsafe

mul

<SENTENCE_START> { out . x = q . c * v . x - q . s * v . y ; out . y = q . s * v . x + q . c * v . y ; } <SENTENCE_END/>

(Copy Probability: 1.4%)

<SENTENCE_START> { out . x = q . c * v . x - q . s * v . y ; out . y = q . s * v . x + q . c * v . y ; } <SENTENCE_END/>

to

<SENTENCE_START> { out . x = q . c * v . x - q . s * v . y ; out . y = q . s * v . x + q . c * v . y ; } <SENTENCE_END/>

(Copy Probability: 1.1%)

<SENTENCE_START> { out . x = q . c * v . x - q . s * v . y ; out . y = q . s * v . x + q . c * v . y ; } <SENTENCE_END/>

out

<SENTENCE_START> { out . x = q . c * v . x - q . s * v . y ; out . y = q . s * v . x + q . c * v . y ; } <SENTENCE_END/>

(Copy Probability: 1.1%)

<SENTENCE_START> { out . x = q . c * v . x - q . s * v . y ; out . y = q . s * v . x + q . c * v . y ; } <SENTENCE_END/>

unsafe

<SENTENCE_START> { out . x = q . c * v . x - q . s * v . y ; out . y = q . s * v . x + q . c * v . y ; } <SENTENCE_END/>

(Copy Probability: 1.4%)

<SENTENCE_START> { out . x = q . c * v . x - q . s * v . y ; out . y = q . s * v . x + q . c * v . y ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { out . x = q . c * v . x - q . s * v . y ; out . y = q . s * v . x + q . c * v . y ; } <SENTENCE_END/>

(Copy Probability: 3.7%)

<SENTENCE_START> { out . x = q . c * v . x - q . s * v . y ; out . y = q . s * v . x + q . c * v . y ; } <SENTENCE_END/>


Original Name mul,trans

mul

<SENTENCE_START> { final float tempy = - q . s * v . x + q . c * v . y ; out . x = q . c * v . x + q . s * v . y ; out . y = tempy ; } <SENTENCE_END/>

(Copy Probability: 1.7%)

<SENTENCE_START> { final float tempy = - q . s * v . x + q . c * v . y ; out . x = q . c * v . x + q . s * v . y ; out . y = tempy ; } <SENTENCE_END/>

trans

<SENTENCE_START> { final float tempy = - q . s * v . x + q . c * v . y ; out . x = q . c * v . x + q . s * v . y ; out . y = tempy ; } <SENTENCE_END/>

(Copy Probability: 0.8%)

<SENTENCE_START> { final float tempy = - q . s * v . x + q . c * v . y ; out . x = q . c * v . x + q . s * v . y ; out . y = tempy ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { final float tempy = - q . s * v . x + q . c * v . y ; out . x = q . c * v . x + q . s * v . y ; out . y = tempy ; } <SENTENCE_END/>

(Copy Probability: 1.1%)

<SENTENCE_START> { final float tempy = - q . s * v . x + q . c * v . y ; out . x = q . c * v . x + q . s * v . y ; out . y = tempy ; } <SENTENCE_END/>


Original Name mul,trans,unsafe

mul

<SENTENCE_START> { out . x = q . c * v . x + q . s * v . y ; out . y = - q . s * v . x + q . c * v . y ; } <SENTENCE_END/>

(Copy Probability: 1.3%)

<SENTENCE_START> { out . x = q . c * v . x + q . s * v . y ; out . y = - q . s * v . x + q . c * v . y ; } <SENTENCE_END/>

trans

<SENTENCE_START> { out . x = q . c * v . x + q . s * v . y ; out . y = - q . s * v . x + q . c * v . y ; } <SENTENCE_END/>

(Copy Probability: 1.1%)

<SENTENCE_START> { out . x = q . c * v . x + q . s * v . y ; out . y = - q . s * v . x + q . c * v . y ; } <SENTENCE_END/>

unsafe

<SENTENCE_START> { out . x = q . c * v . x + q . s * v . y ; out . y = - q . s * v . x + q . c * v . y ; } <SENTENCE_END/>

(Copy Probability: 1.0%)

<SENTENCE_START> { out . x = q . c * v . x + q . s * v . y ; out . y = - q . s * v . x + q . c * v . y ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { out . x = q . c * v . x + q . s * v . y ; out . y = - q . s * v . x + q . c * v . y ; } <SENTENCE_END/>

(Copy Probability: 0.8%)

<SENTENCE_START> { out . x = q . c * v . x + q . s * v . y ; out . y = - q . s * v . x + q . c * v . y ; } <SENTENCE_END/>


Original Name initialize

initialize

<SENTENCE_START> { main loop thread = new thread ( "HeadlessApplication" ) { @ override public void run ( ) { try { headless application . this . main loop ( ) ; } catch ( throwable t ) { if ( t instanceof runtime exception ) throw ( runtime exception ) t ; else throw new gdx runtime exception ( t ) ; } } } ; main loop thread . start ( ) ; } <SENTENCE_END/>

(Copy Probability: 2.7%)

<SENTENCE_START> { main loop thread = new thread ( "HeadlessApplication" ) { @ override public void run ( ) { try { headless application . this . main loop ( ) ; } catch ( throwable t ) { if ( t instanceof runtime exception ) throw ( runtime exception ) t ; else throw new gdx runtime exception ( t ) ; } } } ; main loop thread . start ( ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { main loop thread = new thread ( "HeadlessApplication" ) { @ override public void run ( ) { try { headless application . this . main loop ( ) ; } catch ( throwable t ) { if ( t instanceof runtime exception ) throw ( runtime exception ) t ; else throw new gdx runtime exception ( t ) ; } } } ; main loop thread . start ( ) ; } <SENTENCE_END/>

(Copy Probability: 5.7%)

<SENTENCE_START> { main loop thread = new thread ( "HeadlessApplication" ) { @ override public void run ( ) { try { headless application . this . main loop ( ) ; } catch ( throwable t ) { if ( t instanceof runtime exception ) throw ( runtime exception ) t ; else throw new gdx runtime exception ( t ) ; } } } ; main loop thread . start ( ) ; } <SENTENCE_END/>


Original Name main,loop

main

<SENTENCE_START> { array < lifecycle listener > lifecycle listeners = this . lifecycle listeners ; listener . create ( ) ; boolean was active = true ; long t = time utils . nano time ( ) + render interval ; if ( render interval >= 0f ) { while ( running ) { final long n = time utils . nano time ( ) ; if ( t > n ) { try { thread . sleep ( ( t - n ) / 1000000 ) ; } catch ( interrupted exception e ) { } t = time utils . nano time ( ) + render interval ; } else t = n + render interval ; execute runnables ( ) ; graphics . increment frame id ( ) ; listener . render ( ) ; graphics . update time ( ) ; if ( ! running ) break ; } } synchronized ( lifecycle listeners ) { for ( lifecycle listener listener : lifecycle listeners ) { listener . pause ( ) ; listener . dispose ( ) ; } } listener . pause ( ) ; listener . dispose ( ) ; } <SENTENCE_END/>

(Copy Probability: 4.7%)

<SENTENCE_START> { array < lifecycle listener > lifecycle listeners = this . lifecycle listeners ; listener . create ( ) ; boolean was active = true ; long t = time utils . nano time ( ) + render interval ; if ( render interval >= 0f ) { while ( running ) { final long n = time utils . nano time ( ) ; if ( t > n ) { try { thread . sleep ( ( t - n ) / 1000000 ) ; } catch ( interrupted exception e ) { } t = time utils . nano time ( ) + render interval ; } else t = n + render interval ; execute runnables ( ) ; graphics . increment frame id ( ) ; listener . render ( ) ; graphics . update time ( ) ; if ( ! running ) break ; } } synchronized ( lifecycle listeners ) { for ( lifecycle listener listener : lifecycle listeners ) { listener . pause ( ) ; listener . dispose ( ) ; } } listener . pause ( ) ; listener . dispose ( ) ; } <SENTENCE_END/>

loop

<SENTENCE_START> { array < lifecycle listener > lifecycle listeners = this . lifecycle listeners ; listener . create ( ) ; boolean was active = true ; long t = time utils . nano time ( ) + render interval ; if ( render interval >= 0f ) { while ( running ) { final long n = time utils . nano time ( ) ; if ( t > n ) { try { thread . sleep ( ( t - n ) / 1000000 ) ; } catch ( interrupted exception e ) { } t = time utils . nano time ( ) + render interval ; } else t = n + render interval ; execute runnables ( ) ; graphics . increment frame id ( ) ; listener . render ( ) ; graphics . update time ( ) ; if ( ! running ) break ; } } synchronized ( lifecycle listeners ) { for ( lifecycle listener listener : lifecycle listeners ) { listener . pause ( ) ; listener . dispose ( ) ; } } listener . pause ( ) ; listener . dispose ( ) ; } <SENTENCE_END/>

(Copy Probability: 45.4%)

<SENTENCE_START> { array < lifecycle listener > lifecycle listeners = this . lifecycle listeners ; listener . create ( ) ; boolean was active = true ; long t = time utils . nano time ( ) + render interval ; if ( render interval >= 0f ) { while ( running ) { final long n = time utils . nano time ( ) ; if ( t > n ) { try { thread . sleep ( ( t - n ) / 1000000 ) ; } catch ( interrupted exception e ) { } t = time utils . nano time ( ) + render interval ; } else t = n + render interval ; execute runnables ( ) ; graphics . increment frame id ( ) ; listener . render ( ) ; graphics . update time ( ) ; if ( ! running ) break ; } } synchronized ( lifecycle listeners ) { for ( lifecycle listener listener : lifecycle listeners ) { listener . pause ( ) ; listener . dispose ( ) ; } } listener . pause ( ) ; listener . dispose ( ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { array < lifecycle listener > lifecycle listeners = this . lifecycle listeners ; listener . create ( ) ; boolean was active = true ; long t = time utils . nano time ( ) + render interval ; if ( render interval >= 0f ) { while ( running ) { final long n = time utils . nano time ( ) ; if ( t > n ) { try { thread . sleep ( ( t - n ) / 1000000 ) ; } catch ( interrupted exception e ) { } t = time utils . nano time ( ) + render interval ; } else t = n + render interval ; execute runnables ( ) ; graphics . increment frame id ( ) ; listener . render ( ) ; graphics . update time ( ) ; if ( ! running ) break ; } } synchronized ( lifecycle listeners ) { for ( lifecycle listener listener : lifecycle listeners ) { listener . pause ( ) ; listener . dispose ( ) ; } } listener . pause ( ) ; listener . dispose ( ) ; } <SENTENCE_END/>

(Copy Probability: 23.0%)

<SENTENCE_START> { array < lifecycle listener > lifecycle listeners = this . lifecycle listeners ; listener . create ( ) ; boolean was active = true ; long t = time utils . nano time ( ) + render interval ; if ( render interval >= 0f ) { while ( running ) { final long n = time utils . nano time ( ) ; if ( t > n ) { try { thread . sleep ( ( t - n ) / 1000000 ) ; } catch ( interrupted exception e ) { } t = time utils . nano time ( ) + render interval ; } else t = n + render interval ; execute runnables ( ) ; graphics . increment frame id ( ) ; listener . render ( ) ; graphics . update time ( ) ; if ( ! running ) break ; } } synchronized ( lifecycle listeners ) { for ( lifecycle listener listener : lifecycle listeners ) { listener . pause ( ) ; listener . dispose ( ) ; } } listener . pause ( ) ; listener . dispose ( ) ; } <SENTENCE_END/>


Original Name execute,runnables

execute

<SENTENCE_START> { synchronized ( runnables ) { for ( int i = runnables . size - 1 ; i >= 0 ; i -- ) executed runnables . add ( runnables . get ( i ) ) ; runnables . clear ( ) ; } if ( executed runnables . size == 0 ) return false ; for ( int i = executed runnables . size - 1 ; i >= 0 ; i -- ) executed runnables . remove index ( i ) . run ( ) ; return true ; } <SENTENCE_END/>

(Copy Probability: 6.8%)

<SENTENCE_START> { synchronized ( runnables ) { for ( int i = runnables . size - 1 ; i >= 0 ; i -- ) executed runnables . add ( runnables . get ( i ) ) ; runnables . clear ( ) ; } if ( executed runnables . size == 0 ) return false ; for ( int i = executed runnables . size - 1 ; i >= 0 ; i -- ) executed runnables . remove index ( i ) . run ( ) ; return true ; } <SENTENCE_END/>

runnables

<SENTENCE_START> { synchronized ( runnables ) { for ( int i = runnables . size - 1 ; i >= 0 ; i -- ) executed runnables . add ( runnables . get ( i ) ) ; runnables . clear ( ) ; } if ( executed runnables . size == 0 ) return false ; for ( int i = executed runnables . size - 1 ; i >= 0 ; i -- ) executed runnables . remove index ( i ) . run ( ) ; return true ; } <SENTENCE_END/>

(Copy Probability: 47.6%)

<SENTENCE_START> { synchronized ( runnables ) { for ( int i = runnables . size - 1 ; i >= 0 ; i -- ) executed runnables . add ( runnables . get ( i ) ) ; runnables . clear ( ) ; } if ( executed runnables . size == 0 ) return false ; for ( int i = executed runnables . size - 1 ; i >= 0 ; i -- ) executed runnables . remove index ( i ) . run ( ) ; return true ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { synchronized ( runnables ) { for ( int i = runnables . size - 1 ; i >= 0 ; i -- ) executed runnables . add ( runnables . get ( i ) ) ; runnables . clear ( ) ; } if ( executed runnables . size == 0 ) return false ; for ( int i = executed runnables . size - 1 ; i >= 0 ; i -- ) executed runnables . remove index ( i ) . run ( ) ; return true ; } <SENTENCE_END/>

(Copy Probability: 6.9%)

<SENTENCE_START> { synchronized ( runnables ) { for ( int i = runnables . size - 1 ; i >= 0 ; i -- ) executed runnables . add ( runnables . get ( i ) ) ; runnables . clear ( ) ; } if ( executed runnables . size == 0 ) return false ; for ( int i = executed runnables . size - 1 ; i >= 0 ; i -- ) executed runnables . remove index ( i ) . run ( ) ; return true ; } <SENTENCE_END/>


Original Name get,c,ptr

get

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

(Copy Probability: 1.5%)

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

c

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

(Copy Probability: 99.7%)

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

ptr

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

(Copy Probability: 99.8%)

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

(Copy Probability: 3.7%)

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>


Original Name set,flags

set

<SENTENCE_START> { collision jni . bt triangle info data flags set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 1.8%)

<SENTENCE_START> { collision jni . bt triangle info data flags set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

flags

<SENTENCE_START> { collision jni . bt triangle info data flags set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 99.8%)

<SENTENCE_START> { collision jni . bt triangle info data flags set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { collision jni . bt triangle info data flags set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 0.8%)

<SENTENCE_START> { collision jni . bt triangle info data flags set ( swig c ptr , this , value ) ; } <SENTENCE_END/>


Original Name get,flags

get

<SENTENCE_START> { return collision jni . bt triangle info data flags get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 1.7%)

<SENTENCE_START> { return collision jni . bt triangle info data flags get ( swig c ptr , this ) ; } <SENTENCE_END/>

flags

<SENTENCE_START> { return collision jni . bt triangle info data flags get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 99.8%)

<SENTENCE_START> { return collision jni . bt triangle info data flags get ( swig c ptr , this ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return collision jni . bt triangle info data flags get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 1.2%)

<SENTENCE_START> { return collision jni . bt triangle info data flags get ( swig c ptr , this ) ; } <SENTENCE_END/>


Original Name set,edge,v,0,v,1,angle

set

<SENTENCE_START> { collision jni . bt triangle info data edge v 0 v 1 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 3.2%)

<SENTENCE_START> { collision jni . bt triangle info data edge v 0 v 1 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

edge

<SENTENCE_START> { collision jni . bt triangle info data edge v 0 v 1 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 99.6%)

<SENTENCE_START> { collision jni . bt triangle info data edge v 0 v 1 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

v

<SENTENCE_START> { collision jni . bt triangle info data edge v 0 v 1 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 99.6%)

<SENTENCE_START> { collision jni . bt triangle info data edge v 0 v 1 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

0

<SENTENCE_START> { collision jni . bt triangle info data edge v 0 v 1 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 96.8%)

<SENTENCE_START> { collision jni . bt triangle info data edge v 0 v 1 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

v

<SENTENCE_START> { collision jni . bt triangle info data edge v 0 v 1 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 45.3%)

<SENTENCE_START> { collision jni . bt triangle info data edge v 0 v 1 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

1

<SENTENCE_START> { collision jni . bt triangle info data edge v 0 v 1 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 13.1%)

<SENTENCE_START> { collision jni . bt triangle info data edge v 0 v 1 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

angle

<SENTENCE_START> { collision jni . bt triangle info data edge v 0 v 1 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 13.1%)

<SENTENCE_START> { collision jni . bt triangle info data edge v 0 v 1 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { collision jni . bt triangle info data edge v 0 v 1 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 12.0%)

<SENTENCE_START> { collision jni . bt triangle info data edge v 0 v 1 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>


Original Name get,edge,v,0,v,1,angle

get

<SENTENCE_START> { return collision jni . bt triangle info data edge v 0 v 1 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 2.5%)

<SENTENCE_START> { return collision jni . bt triangle info data edge v 0 v 1 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

edge

<SENTENCE_START> { return collision jni . bt triangle info data edge v 0 v 1 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 99.6%)

<SENTENCE_START> { return collision jni . bt triangle info data edge v 0 v 1 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

v

<SENTENCE_START> { return collision jni . bt triangle info data edge v 0 v 1 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 99.7%)

<SENTENCE_START> { return collision jni . bt triangle info data edge v 0 v 1 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

0

<SENTENCE_START> { return collision jni . bt triangle info data edge v 0 v 1 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 96.1%)

<SENTENCE_START> { return collision jni . bt triangle info data edge v 0 v 1 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

v

<SENTENCE_START> { return collision jni . bt triangle info data edge v 0 v 1 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 39.6%)

<SENTENCE_START> { return collision jni . bt triangle info data edge v 0 v 1 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

1

<SENTENCE_START> { return collision jni . bt triangle info data edge v 0 v 1 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 11.1%)

<SENTENCE_START> { return collision jni . bt triangle info data edge v 0 v 1 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

angle

<SENTENCE_START> { return collision jni . bt triangle info data edge v 0 v 1 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 11.1%)

<SENTENCE_START> { return collision jni . bt triangle info data edge v 0 v 1 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return collision jni . bt triangle info data edge v 0 v 1 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 10.2%)

<SENTENCE_START> { return collision jni . bt triangle info data edge v 0 v 1 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>


Original Name set,edge,v,1,v,2,angle

set

<SENTENCE_START> { collision jni . bt triangle info data edge v 1 v 2 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 3.2%)

<SENTENCE_START> { collision jni . bt triangle info data edge v 1 v 2 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

edge

<SENTENCE_START> { collision jni . bt triangle info data edge v 1 v 2 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 99.6%)

<SENTENCE_START> { collision jni . bt triangle info data edge v 1 v 2 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

v

<SENTENCE_START> { collision jni . bt triangle info data edge v 1 v 2 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 99.6%)

<SENTENCE_START> { collision jni . bt triangle info data edge v 1 v 2 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

1

<SENTENCE_START> { collision jni . bt triangle info data edge v 1 v 2 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 95.8%)

<SENTENCE_START> { collision jni . bt triangle info data edge v 1 v 2 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

v

<SENTENCE_START> { collision jni . bt triangle info data edge v 1 v 2 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 39.1%)

<SENTENCE_START> { collision jni . bt triangle info data edge v 1 v 2 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

2

<SENTENCE_START> { collision jni . bt triangle info data edge v 1 v 2 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 12.5%)

<SENTENCE_START> { collision jni . bt triangle info data edge v 1 v 2 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

angle

<SENTENCE_START> { collision jni . bt triangle info data edge v 1 v 2 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 12.5%)

<SENTENCE_START> { collision jni . bt triangle info data edge v 1 v 2 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { collision jni . bt triangle info data edge v 1 v 2 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 12.2%)

<SENTENCE_START> { collision jni . bt triangle info data edge v 1 v 2 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>


Original Name get,edge,v,1,v,2,angle

get

<SENTENCE_START> { return collision jni . bt triangle info data edge v 1 v 2 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 2.5%)

<SENTENCE_START> { return collision jni . bt triangle info data edge v 1 v 2 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

edge

<SENTENCE_START> { return collision jni . bt triangle info data edge v 1 v 2 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 99.4%)

<SENTENCE_START> { return collision jni . bt triangle info data edge v 1 v 2 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

v

<SENTENCE_START> { return collision jni . bt triangle info data edge v 1 v 2 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 99.6%)

<SENTENCE_START> { return collision jni . bt triangle info data edge v 1 v 2 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

1

<SENTENCE_START> { return collision jni . bt triangle info data edge v 1 v 2 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 94.8%)

<SENTENCE_START> { return collision jni . bt triangle info data edge v 1 v 2 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

v

<SENTENCE_START> { return collision jni . bt triangle info data edge v 1 v 2 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 34.3%)

<SENTENCE_START> { return collision jni . bt triangle info data edge v 1 v 2 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

2

<SENTENCE_START> { return collision jni . bt triangle info data edge v 1 v 2 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 10.9%)

<SENTENCE_START> { return collision jni . bt triangle info data edge v 1 v 2 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

angle

<SENTENCE_START> { return collision jni . bt triangle info data edge v 1 v 2 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 10.9%)

<SENTENCE_START> { return collision jni . bt triangle info data edge v 1 v 2 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return collision jni . bt triangle info data edge v 1 v 2 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 10.6%)

<SENTENCE_START> { return collision jni . bt triangle info data edge v 1 v 2 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>


Original Name set,edge,v,2,v,0,angle

set

<SENTENCE_START> { collision jni . bt triangle info data edge v 2 v 0 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 2.5%)

<SENTENCE_START> { collision jni . bt triangle info data edge v 2 v 0 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

edge

<SENTENCE_START> { collision jni . bt triangle info data edge v 2 v 0 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 99.5%)

<SENTENCE_START> { collision jni . bt triangle info data edge v 2 v 0 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

v

<SENTENCE_START> { collision jni . bt triangle info data edge v 2 v 0 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 99.0%)

<SENTENCE_START> { collision jni . bt triangle info data edge v 2 v 0 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

2

<SENTENCE_START> { collision jni . bt triangle info data edge v 2 v 0 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 90.8%)

<SENTENCE_START> { collision jni . bt triangle info data edge v 2 v 0 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

v

<SENTENCE_START> { collision jni . bt triangle info data edge v 2 v 0 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 23.9%)

<SENTENCE_START> { collision jni . bt triangle info data edge v 2 v 0 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

0

<SENTENCE_START> { collision jni . bt triangle info data edge v 2 v 0 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 7.3%)

<SENTENCE_START> { collision jni . bt triangle info data edge v 2 v 0 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

angle

<SENTENCE_START> { collision jni . bt triangle info data edge v 2 v 0 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 7.3%)

<SENTENCE_START> { collision jni . bt triangle info data edge v 2 v 0 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { collision jni . bt triangle info data edge v 2 v 0 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 7.1%)

<SENTENCE_START> { collision jni . bt triangle info data edge v 2 v 0 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>


Original Name get,edge,v,2,v,0,angle

get

<SENTENCE_START> { return collision jni . bt triangle info data edge v 2 v 0 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 1.9%)

<SENTENCE_START> { return collision jni . bt triangle info data edge v 2 v 0 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

edge

<SENTENCE_START> { return collision jni . bt triangle info data edge v 2 v 0 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 99.2%)

<SENTENCE_START> { return collision jni . bt triangle info data edge v 2 v 0 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

v

<SENTENCE_START> { return collision jni . bt triangle info data edge v 2 v 0 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 98.9%)

<SENTENCE_START> { return collision jni . bt triangle info data edge v 2 v 0 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

2

<SENTENCE_START> { return collision jni . bt triangle info data edge v 2 v 0 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 87.3%)

<SENTENCE_START> { return collision jni . bt triangle info data edge v 2 v 0 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

v

<SENTENCE_START> { return collision jni . bt triangle info data edge v 2 v 0 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 18.7%)

<SENTENCE_START> { return collision jni . bt triangle info data edge v 2 v 0 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

0

<SENTENCE_START> { return collision jni . bt triangle info data edge v 2 v 0 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 5.9%)

<SENTENCE_START> { return collision jni . bt triangle info data edge v 2 v 0 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

angle

<SENTENCE_START> { return collision jni . bt triangle info data edge v 2 v 0 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 5.9%)

<SENTENCE_START> { return collision jni . bt triangle info data edge v 2 v 0 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return collision jni . bt triangle info data edge v 2 v 0 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 5.7%)

<SENTENCE_START> { return collision jni . bt triangle info data edge v 2 v 0 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>


Original Name get,c,ptr

get

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

(Copy Probability: 1.5%)

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

c

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

(Copy Probability: 99.7%)

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

ptr

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

(Copy Probability: 99.8%)

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

(Copy Probability: 3.7%)

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>


Original Name set,flags

set

<SENTENCE_START> { collision jni . bt triangle info flags set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 1.5%)

<SENTENCE_START> { collision jni . bt triangle info flags set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

flags

<SENTENCE_START> { collision jni . bt triangle info flags set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 99.5%)

<SENTENCE_START> { collision jni . bt triangle info flags set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { collision jni . bt triangle info flags set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 0.8%)

<SENTENCE_START> { collision jni . bt triangle info flags set ( swig c ptr , this , value ) ; } <SENTENCE_END/>


Original Name get,flags

get

<SENTENCE_START> { return collision jni . bt triangle info flags get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 1.4%)

<SENTENCE_START> { return collision jni . bt triangle info flags get ( swig c ptr , this ) ; } <SENTENCE_END/>

flags

<SENTENCE_START> { return collision jni . bt triangle info flags get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 99.5%)

<SENTENCE_START> { return collision jni . bt triangle info flags get ( swig c ptr , this ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return collision jni . bt triangle info flags get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 0.8%)

<SENTENCE_START> { return collision jni . bt triangle info flags get ( swig c ptr , this ) ; } <SENTENCE_END/>


Original Name set,edge,v,0,v,1,angle

set

<SENTENCE_START> { collision jni . bt triangle info edge v 0 v 1 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 3.1%)

<SENTENCE_START> { collision jni . bt triangle info edge v 0 v 1 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

edge

<SENTENCE_START> { collision jni . bt triangle info edge v 0 v 1 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 99.6%)

<SENTENCE_START> { collision jni . bt triangle info edge v 0 v 1 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

v

<SENTENCE_START> { collision jni . bt triangle info edge v 0 v 1 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 99.8%)

<SENTENCE_START> { collision jni . bt triangle info edge v 0 v 1 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

0

<SENTENCE_START> { collision jni . bt triangle info edge v 0 v 1 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 97.1%)

<SENTENCE_START> { collision jni . bt triangle info edge v 0 v 1 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

v

<SENTENCE_START> { collision jni . bt triangle info edge v 0 v 1 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 43.1%)

<SENTENCE_START> { collision jni . bt triangle info edge v 0 v 1 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

1

<SENTENCE_START> { collision jni . bt triangle info edge v 0 v 1 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 14.6%)

<SENTENCE_START> { collision jni . bt triangle info edge v 0 v 1 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

angle

<SENTENCE_START> { collision jni . bt triangle info edge v 0 v 1 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 14.6%)

<SENTENCE_START> { collision jni . bt triangle info edge v 0 v 1 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { collision jni . bt triangle info edge v 0 v 1 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 15.4%)

<SENTENCE_START> { collision jni . bt triangle info edge v 0 v 1 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>


Original Name get,edge,v,0,v,1,angle

get

<SENTENCE_START> { return collision jni . bt triangle info edge v 0 v 1 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 2.4%)

<SENTENCE_START> { return collision jni . bt triangle info edge v 0 v 1 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

edge

<SENTENCE_START> { return collision jni . bt triangle info edge v 0 v 1 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 99.5%)

<SENTENCE_START> { return collision jni . bt triangle info edge v 0 v 1 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

v

<SENTENCE_START> { return collision jni . bt triangle info edge v 0 v 1 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 99.8%)

<SENTENCE_START> { return collision jni . bt triangle info edge v 0 v 1 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

0

<SENTENCE_START> { return collision jni . bt triangle info edge v 0 v 1 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 96.0%)

<SENTENCE_START> { return collision jni . bt triangle info edge v 0 v 1 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

v

<SENTENCE_START> { return collision jni . bt triangle info edge v 0 v 1 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 39.3%)

<SENTENCE_START> { return collision jni . bt triangle info edge v 0 v 1 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

1

<SENTENCE_START> { return collision jni . bt triangle info edge v 0 v 1 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 13.6%)

<SENTENCE_START> { return collision jni . bt triangle info edge v 0 v 1 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

angle

<SENTENCE_START> { return collision jni . bt triangle info edge v 0 v 1 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 13.6%)

<SENTENCE_START> { return collision jni . bt triangle info edge v 0 v 1 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return collision jni . bt triangle info edge v 0 v 1 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 12.8%)

<SENTENCE_START> { return collision jni . bt triangle info edge v 0 v 1 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>


Original Name set,edge,v,1,v,2,angle

set

<SENTENCE_START> { collision jni . bt triangle info edge v 1 v 2 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 2.8%)

<SENTENCE_START> { collision jni . bt triangle info edge v 1 v 2 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

edge

<SENTENCE_START> { collision jni . bt triangle info edge v 1 v 2 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 99.6%)

<SENTENCE_START> { collision jni . bt triangle info edge v 1 v 2 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

v

<SENTENCE_START> { collision jni . bt triangle info edge v 1 v 2 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 99.6%)

<SENTENCE_START> { collision jni . bt triangle info edge v 1 v 2 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

1

<SENTENCE_START> { collision jni . bt triangle info edge v 1 v 2 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 92.6%)

<SENTENCE_START> { collision jni . bt triangle info edge v 1 v 2 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

v

<SENTENCE_START> { collision jni . bt triangle info edge v 1 v 2 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 31.7%)

<SENTENCE_START> { collision jni . bt triangle info edge v 1 v 2 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

2

<SENTENCE_START> { collision jni . bt triangle info edge v 1 v 2 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 13.2%)

<SENTENCE_START> { collision jni . bt triangle info edge v 1 v 2 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

angle

<SENTENCE_START> { collision jni . bt triangle info edge v 1 v 2 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 13.2%)

<SENTENCE_START> { collision jni . bt triangle info edge v 1 v 2 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { collision jni . bt triangle info edge v 1 v 2 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 13.0%)

<SENTENCE_START> { collision jni . bt triangle info edge v 1 v 2 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>


Original Name get,edge,v,1,v,2,angle

get

<SENTENCE_START> { return collision jni . bt triangle info edge v 1 v 2 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 2.1%)

<SENTENCE_START> { return collision jni . bt triangle info edge v 1 v 2 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

edge

<SENTENCE_START> { return collision jni . bt triangle info edge v 1 v 2 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 99.5%)

<SENTENCE_START> { return collision jni . bt triangle info edge v 1 v 2 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

v

<SENTENCE_START> { return collision jni . bt triangle info edge v 1 v 2 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 99.6%)

<SENTENCE_START> { return collision jni . bt triangle info edge v 1 v 2 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

1

<SENTENCE_START> { return collision jni . bt triangle info edge v 1 v 2 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 89.7%)

<SENTENCE_START> { return collision jni . bt triangle info edge v 1 v 2 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

v

<SENTENCE_START> { return collision jni . bt triangle info edge v 1 v 2 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 27.5%)

<SENTENCE_START> { return collision jni . bt triangle info edge v 1 v 2 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

2

<SENTENCE_START> { return collision jni . bt triangle info edge v 1 v 2 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 11.7%)

<SENTENCE_START> { return collision jni . bt triangle info edge v 1 v 2 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

angle

<SENTENCE_START> { return collision jni . bt triangle info edge v 1 v 2 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 11.7%)

<SENTENCE_START> { return collision jni . bt triangle info edge v 1 v 2 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return collision jni . bt triangle info edge v 1 v 2 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 11.6%)

<SENTENCE_START> { return collision jni . bt triangle info edge v 1 v 2 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>


Original Name set,edge,v,2,v,0,angle

set

<SENTENCE_START> { collision jni . bt triangle info edge v 2 v 0 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 1.9%)

<SENTENCE_START> { collision jni . bt triangle info edge v 2 v 0 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

edge

<SENTENCE_START> { collision jni . bt triangle info edge v 2 v 0 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 99.3%)

<SENTENCE_START> { collision jni . bt triangle info edge v 2 v 0 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

v

<SENTENCE_START> { collision jni . bt triangle info edge v 2 v 0 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 99.6%)

<SENTENCE_START> { collision jni . bt triangle info edge v 2 v 0 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

2

<SENTENCE_START> { collision jni . bt triangle info edge v 2 v 0 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 88.3%)

<SENTENCE_START> { collision jni . bt triangle info edge v 2 v 0 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

v

<SENTENCE_START> { collision jni . bt triangle info edge v 2 v 0 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 26.3%)

<SENTENCE_START> { collision jni . bt triangle info edge v 2 v 0 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

0

<SENTENCE_START> { collision jni . bt triangle info edge v 2 v 0 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 9.2%)

<SENTENCE_START> { collision jni . bt triangle info edge v 2 v 0 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

angle

<SENTENCE_START> { collision jni . bt triangle info edge v 2 v 0 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 9.3%)

<SENTENCE_START> { collision jni . bt triangle info edge v 2 v 0 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { collision jni . bt triangle info edge v 2 v 0 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 9.1%)

<SENTENCE_START> { collision jni . bt triangle info edge v 2 v 0 angle set ( swig c ptr , this , value ) ; } <SENTENCE_END/>


Original Name get,edge,v,2,v,0,angle

get

<SENTENCE_START> { return collision jni . bt triangle info edge v 2 v 0 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 1.4%)

<SENTENCE_START> { return collision jni . bt triangle info edge v 2 v 0 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

edge

<SENTENCE_START> { return collision jni . bt triangle info edge v 2 v 0 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 99.1%)

<SENTENCE_START> { return collision jni . bt triangle info edge v 2 v 0 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

v

<SENTENCE_START> { return collision jni . bt triangle info edge v 2 v 0 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 99.5%)

<SENTENCE_START> { return collision jni . bt triangle info edge v 2 v 0 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

2

<SENTENCE_START> { return collision jni . bt triangle info edge v 2 v 0 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 83.7%)

<SENTENCE_START> { return collision jni . bt triangle info edge v 2 v 0 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

v

<SENTENCE_START> { return collision jni . bt triangle info edge v 2 v 0 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 23.0%)

<SENTENCE_START> { return collision jni . bt triangle info edge v 2 v 0 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

0

<SENTENCE_START> { return collision jni . bt triangle info edge v 2 v 0 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 8.5%)

<SENTENCE_START> { return collision jni . bt triangle info edge v 2 v 0 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

angle

<SENTENCE_START> { return collision jni . bt triangle info edge v 2 v 0 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 8.6%)

<SENTENCE_START> { return collision jni . bt triangle info edge v 2 v 0 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return collision jni . bt triangle info edge v 2 v 0 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 8.4%)

<SENTENCE_START> { return collision jni . bt triangle info edge v 2 v 0 angle get ( swig c ptr , this ) ; } <SENTENCE_END/>


Original Name create

create

<SENTENCE_START> { pixmap = new pixmap ( 800 , 480 , pixmap . format . rgba 8888 ) ; texture = new texture ( 1024 , 1024 , pixmap . format . rgba 8888 ) ; texture . set filter ( texture . texture filter . nearest , texture . texture filter . linear ) ; texture . set wrap ( texture . texture wrap . clamp to edge , texture . texture wrap . clamp to edge ) ; pixmap . set color ( 1.0f , 0.0f , 0.0f , 1.0f ) ; pixmap . draw line ( 0 , 0 , 100 , 100 ) ; pixmap . set color ( 0.0f , 0.0f , 1.0f , 1.0f ) ; pixmap . draw line ( 100 , 100 , 200 , 0 ) ; pixmap . set color ( 0.0f , 1.0f , 0.0f , 1.0f ) ; pixmap . draw line ( 100 , 0 , 100 , 100 ) ; pixmap . set color ( 1.0f , 1.0f , 1.0f , 1.0f ) ; pixmap . draw circle ( 400 , 300 , 100 ) ; texture . draw ( pixmap , 0 , 0 ) ; region = new texture region ( texture , 0 , 0 , 800 , 480 ) ; batch = new sprite batch ( ) ; pixmap pixmap = new pixmap ( 512 , 1024 , pixmap . format . rgba 8888 ) ; for ( int y = 0 ; y < pixmap . get height ( ) ; y ++ ) { for ( int x = 0 ; x < pixmap . get width ( ) ; x ++ ) { pixmap . get pixel ( x , y ) ; } } pixmap . dispose ( ) ; } <SENTENCE_END/>

(Copy Probability: 3.6%)

<SENTENCE_START> { pixmap = new pixmap ( 800 , 480 , pixmap . format . rgba 8888 ) ; texture = new texture ( 1024 , 1024 , pixmap . format . rgba 8888 ) ; texture . set filter ( texture . texture filter . nearest , texture . texture filter . linear ) ; texture . set wrap ( texture . texture wrap . clamp to edge , texture . texture wrap . clamp to edge ) ; pixmap . set color ( 1.0f , 0.0f , 0.0f , 1.0f ) ; pixmap . draw line ( 0 , 0 , 100 , 100 ) ; pixmap . set color ( 0.0f , 0.0f , 1.0f , 1.0f ) ; pixmap . draw line ( 100 , 100 , 200 , 0 ) ; pixmap . set color ( 0.0f , 1.0f , 0.0f , 1.0f ) ; pixmap . draw line ( 100 , 0 , 100 , 100 ) ; pixmap . set color ( 1.0f , 1.0f , 1.0f , 1.0f ) ; pixmap . draw circle ( 400 , 300 , 100 ) ; texture . draw ( pixmap , 0 , 0 ) ; region = new texture region ( texture , 0 , 0 , 800 , 480 ) ; batch = new sprite batch ( ) ; pixmap pixmap = new pixmap ( 512 , 1024 , pixmap . format . rgba 8888 ) ; for ( int y = 0 ; y < pixmap . get height ( ) ; y ++ ) { for ( int x = 0 ; x < pixmap . get width ( ) ; x ++ ) { pixmap . get pixel ( x , y ) ; } } pixmap . dispose ( ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { pixmap = new pixmap ( 800 , 480 , pixmap . format . rgba 8888 ) ; texture = new texture ( 1024 , 1024 , pixmap . format . rgba 8888 ) ; texture . set filter ( texture . texture filter . nearest , texture . texture filter . linear ) ; texture . set wrap ( texture . texture wrap . clamp to edge , texture . texture wrap . clamp to edge ) ; pixmap . set color ( 1.0f , 0.0f , 0.0f , 1.0f ) ; pixmap . draw line ( 0 , 0 , 100 , 100 ) ; pixmap . set color ( 0.0f , 0.0f , 1.0f , 1.0f ) ; pixmap . draw line ( 100 , 100 , 200 , 0 ) ; pixmap . set color ( 0.0f , 1.0f , 0.0f , 1.0f ) ; pixmap . draw line ( 100 , 0 , 100 , 100 ) ; pixmap . set color ( 1.0f , 1.0f , 1.0f , 1.0f ) ; pixmap . draw circle ( 400 , 300 , 100 ) ; texture . draw ( pixmap , 0 , 0 ) ; region = new texture region ( texture , 0 , 0 , 800 , 480 ) ; batch = new sprite batch ( ) ; pixmap pixmap = new pixmap ( 512 , 1024 , pixmap . format . rgba 8888 ) ; for ( int y = 0 ; y < pixmap . get height ( ) ; y ++ ) { for ( int x = 0 ; x < pixmap . get width ( ) ; x ++ ) { pixmap . get pixel ( x , y ) ; } } pixmap . dispose ( ) ; } <SENTENCE_END/>

(Copy Probability: 13.1%)

<SENTENCE_START> { pixmap = new pixmap ( 800 , 480 , pixmap . format . rgba 8888 ) ; texture = new texture ( 1024 , 1024 , pixmap . format . rgba 8888 ) ; texture . set filter ( texture . texture filter . nearest , texture . texture filter . linear ) ; texture . set wrap ( texture . texture wrap . clamp to edge , texture . texture wrap . clamp to edge ) ; pixmap . set color ( 1.0f , 0.0f , 0.0f , 1.0f ) ; pixmap . draw line ( 0 , 0 , 100 , 100 ) ; pixmap . set color ( 0.0f , 0.0f , 1.0f , 1.0f ) ; pixmap . draw line ( 100 , 100 , 200 , 0 ) ; pixmap . set color ( 0.0f , 1.0f , 0.0f , 1.0f ) ; pixmap . draw line ( 100 , 0 , 100 , 100 ) ; pixmap . set color ( 1.0f , 1.0f , 1.0f , 1.0f ) ; pixmap . draw circle ( 400 , 300 , 100 ) ; texture . draw ( pixmap , 0 , 0 ) ; region = new texture region ( texture , 0 , 0 , 800 , 480 ) ; batch = new sprite batch ( ) ; pixmap pixmap = new pixmap ( 512 , 1024 , pixmap . format . rgba 8888 ) ; for ( int y = 0 ; y < pixmap . get height ( ) ; y ++ ) { for ( int x = 0 ; x < pixmap . get width ( ) ; x ++ ) { pixmap . get pixel ( x , y ) ; } } pixmap . dispose ( ) ; } <SENTENCE_END/>


Original Name render

render

<SENTENCE_START> { gdx . gl . gl clear color ( 0.6f , 0.6f , 0.6f , 1 ) ; gdx . gl . gl clear ( gl 20 . gl color buffer bit ) ; batch . begin ( ) ; batch . draw ( region , 0 , 0 ) ; batch . end ( ) ; } <SENTENCE_END/>

(Copy Probability: 2.4%)

<SENTENCE_START> { gdx . gl . gl clear color ( 0.6f , 0.6f , 0.6f , 1 ) ; gdx . gl . gl clear ( gl 20 . gl color buffer bit ) ; batch . begin ( ) ; batch . draw ( region , 0 , 0 ) ; batch . end ( ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { gdx . gl . gl clear color ( 0.6f , 0.6f , 0.6f , 1 ) ; gdx . gl . gl clear ( gl 20 . gl color buffer bit ) ; batch . begin ( ) ; batch . draw ( region , 0 , 0 ) ; batch . end ( ) ; } <SENTENCE_END/>

(Copy Probability: 5.2%)

<SENTENCE_START> { gdx . gl . gl clear color ( 0.6f , 0.6f , 0.6f , 1 ) ; gdx . gl . gl clear ( gl 20 . gl color buffer bit ) ; batch . begin ( ) ; batch . draw ( region , 0 , 0 ) ; batch . end ( ) ; } <SENTENCE_END/>


Original Name get,loaded,music

get

<SENTENCE_START> { return music ; } <SENTENCE_END/>

(Copy Probability: 0.4%)

<SENTENCE_START> { return music ; } <SENTENCE_END/>

loaded

<SENTENCE_START> { return music ; } <SENTENCE_END/>

(Copy Probability: 81.9%)

<SENTENCE_START> { return music ; } <SENTENCE_END/>

music

<SENTENCE_START> { return music ; } <SENTENCE_END/>

(Copy Probability: 1.0%)

<SENTENCE_START> { return music ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return music ; } <SENTENCE_END/>

(Copy Probability: 0.4%)

<SENTENCE_START> { return music ; } <SENTENCE_END/>


Original Name init

init

<SENTENCE_START> { m step = def . step ; m count = def . count ; if ( m position constraints . length < m count ) { contact position constraint [ ] old = m position constraints ; m position constraints = new contact position constraint [ math utils . max ( old . length * 2 , m count ) ] ; system . arraycopy ( old , 0 , m position constraints , 0 , old . length ) ; for ( int i = old . length ; i < m position constraints . length ; i ++ ) { m position constraints [ i ] = new contact position constraint ( ) ; } } if ( m velocity constraints . length < m count ) { contact velocity constraint [ ] old = m velocity constraints ; m velocity constraints = new contact velocity constraint [ math utils . max ( old . length * 2 , m count ) ] ; system . arraycopy ( old , 0 , m velocity constraints , 0 , old . length ) ; for ( int i = old . length ; i < m velocity constraints . length ; i ++ ) { m velocity constraints [ i ] = new contact velocity constraint ( ) ; } } m positions = def . positions ; m velocities = def . velocities ; m contacts = def . contacts ; for ( int i = 0 ; i < m count ; ++ i ) { final contact contact = m contacts [ i ] ; final fixture fixture a = contact . m fixture a ; final fixture fixture b = contact . m fixture b ; final shape shape a = fixture a . get shape ( ) ; final shape shape b = fixture b . get shape ( ) ; final float radius a = shape a . m radius ; final float radius b = shape b . m radius ; final body body a = fixture a . get body ( ) ; final body body b = fixture b . get body ( ) ; final manifold manifold = contact . get manifold ( ) ; int point count = manifold . point count ; assert ( point count > 0 ) ; contact velocity constraint vc = m velocity constraints [ i ] ; vc . friction = contact . m friction ; vc . restitution = contact . m restitution ; vc . tangent speed = contact . m tangent speed ; vc . index a = body a . m island index ; vc . index b = body b . m island index ; vc . inv mass a = body a . m inv mass ; vc . inv mass b = body b . m inv mass ; vc . inv ia = body a . m inv i ; vc . inv ib = body b . m inv i ; vc . contact index = i ; vc . point count = point count ; vc . k . set zero ( ) ; vc . normal mass . set zero ( ) ; contact position constraint pc = m position constraints [ i ] ; pc . index a = body a . m island index ; pc . index b = body b . m island index ; pc . inv mass a = body a . m inv mass ; pc . inv mass b = body b . m inv mass ; pc . local center a . set ( body a . m sweep . local center ) ; pc . local center b . set ( body b . m sweep . local center ) ; pc . inv ia = body a . m inv i ; pc . inv ib = body b . m inv i ; pc . local normal . set ( manifold . local normal ) ; pc . local point . set ( manifold . local point ) ; pc . point count = point count ; pc . radius a = radius a ; pc . radius b = radius b ; pc . type = manifold . type ; for ( int j = 0 ; j < point count ; j ++ ) { manifold point cp = manifold . points [ j ] ; velocity constraint point vcp = vc . points [ j ] ; if ( m step . warm starting ) { vcp . normal impulse = m step . dt ratio * cp . normal impulse ; vcp . tangent impulse = m step . dt ratio * cp . tangent impulse ; } else { vcp . normal impulse = 0 ; vcp . tangent impulse = 0 ; } vcp . r a . set zero ( ) ; vcp . r b . set zero ( ) ; vcp . normal mass = 0 ; vcp . tangent mass = 0 ; vcp . velocity bias = 0 ; pc . local points [ j ] . x = cp . local point . x ; pc . local points [ j ] . y = cp . local point . y ; } } } <SENTENCE_END/>

(Copy Probability: 5.9%)

<SENTENCE_START> { m step = def . step ; m count = def . count ; if ( m position constraints . length < m count ) { contact position constraint [ ] old = m position constraints ; m position constraints = new contact position constraint [ math utils . max ( old . length * 2 , m count ) ] ; system . arraycopy ( old , 0 , m position constraints , 0 , old . length ) ; for ( int i = old . length ; i < m position constraints . length ; i ++ ) { m position constraints [ i ] = new contact position constraint ( ) ; } } if ( m velocity constraints . length < m count ) { contact velocity constraint [ ] old = m velocity constraints ; m velocity constraints = new contact velocity constraint [ math utils . max ( old . length * 2 , m count ) ] ; system . arraycopy ( old , 0 , m velocity constraints , 0 , old . length ) ; for ( int i = old . length ; i < m velocity constraints . length ; i ++ ) { m velocity constraints [ i ] = new contact velocity constraint ( ) ; } } m positions = def . positions ; m velocities = def . velocities ; m contacts = def . contacts ; for ( int i = 0 ; i < m count ; ++ i ) { final contact contact = m contacts [ i ] ; final fixture fixture a = contact . m fixture a ; final fixture fixture b = contact . m fixture b ; final shape shape a = fixture a . get shape ( ) ; final shape shape b = fixture b . get shape ( ) ; final float radius a = shape a . m radius ; final float radius b = shape b . m radius ; final body body a = fixture a . get body ( ) ; final body body b = fixture b . get body ( ) ; final manifold manifold = contact . get manifold ( ) ; int point count = manifold . point count ; assert ( point count > 0 ) ; contact velocity constraint vc = m velocity constraints [ i ] ; vc . friction = contact . m friction ; vc . restitution = contact . m restitution ; vc . tangent speed = contact . m tangent speed ; vc . index a = body a . m island index ; vc . index b = body b . m island index ; vc . inv mass a = body a . m inv mass ; vc . inv mass b = body b . m inv mass ; vc . inv ia = body a . m inv i ; vc . inv ib = body b . m inv i ; vc . contact index = i ; vc . point count = point count ; vc . k . set zero ( ) ; vc . normal mass . set zero ( ) ; contact position constraint pc = m position constraints [ i ] ; pc . index a = body a . m island index ; pc . index b = body b . m island index ; pc . inv mass a = body a . m inv mass ; pc . inv mass b = body b . m inv mass ; pc . local center a . set ( body a . m sweep . local center ) ; pc . local center b . set ( body b . m sweep . local center ) ; pc . inv ia = body a . m inv i ; pc . inv ib = body b . m inv i ; pc . local normal . set ( manifold . local normal ) ; pc . local point . set ( manifold . local point ) ; pc . point count = point count ; pc . radius a = radius a ; pc . radius b = radius b ; pc . type = manifold . type ; for ( int j = 0 ; j < point count ; j ++ ) { manifold point cp = manifold . points [ j ] ; velocity constraint point vcp = vc . points [ j ] ; if ( m step . warm starting ) { vcp . normal impulse = m step . dt ratio * cp . normal impulse ; vcp . tangent impulse = m step . dt ratio * cp . tangent impulse ; } else { vcp . normal impulse = 0 ; vcp . tangent impulse = 0 ; } vcp . r a . set zero ( ) ; vcp . r b . set zero ( ) ; vcp . normal mass = 0 ; vcp . tangent mass = 0 ; vcp . velocity bias = 0 ; pc . local points [ j ] . x = cp . local point . x ; pc . local points [ j ] . y = cp . local point . y ; } } } <SENTENCE_END/>

%END%

<SENTENCE_START> { m step = def . step ; m count = def . count ; if ( m position constraints . length < m count ) { contact position constraint [ ] old = m position constraints ; m position constraints = new contact position constraint [ math utils . max ( old . length * 2 , m count ) ] ; system . arraycopy ( old , 0 , m position constraints , 0 , old . length ) ; for ( int i = old . length ; i < m position constraints . length ; i ++ ) { m position constraints [ i ] = new contact position constraint ( ) ; } } if ( m velocity constraints . length < m count ) { contact velocity constraint [ ] old = m velocity constraints ; m velocity constraints = new contact velocity constraint [ math utils . max ( old . length * 2 , m count ) ] ; system . arraycopy ( old , 0 , m velocity constraints , 0 , old . length ) ; for ( int i = old . length ; i < m velocity constraints . length ; i ++ ) { m velocity constraints [ i ] = new contact velocity constraint ( ) ; } } m positions = def . positions ; m velocities = def . velocities ; m contacts = def . contacts ; for ( int i = 0 ; i < m count ; ++ i ) { final contact contact = m contacts [ i ] ; final fixture fixture a = contact . m fixture a ; final fixture fixture b = contact . m fixture b ; final shape shape a = fixture a . get shape ( ) ; final shape shape b = fixture b . get shape ( ) ; final float radius a = shape a . m radius ; final float radius b = shape b . m radius ; final body body a = fixture a . get body ( ) ; final body body b = fixture b . get body ( ) ; final manifold manifold = contact . get manifold ( ) ; int point count = manifold . point count ; assert ( point count > 0 ) ; contact velocity constraint vc = m velocity constraints [ i ] ; vc . friction = contact . m friction ; vc . restitution = contact . m restitution ; vc . tangent speed = contact . m tangent speed ; vc . index a = body a . m island index ; vc . index b = body b . m island index ; vc . inv mass a = body a . m inv mass ; vc . inv mass b = body b . m inv mass ; vc . inv ia = body a . m inv i ; vc . inv ib = body b . m inv i ; vc . contact index = i ; vc . point count = point count ; vc . k . set zero ( ) ; vc . normal mass . set zero ( ) ; contact position constraint pc = m position constraints [ i ] ; pc . index a = body a . m island index ; pc . index b = body b . m island index ; pc . inv mass a = body a . m inv mass ; pc . inv mass b = body b . m inv mass ; pc . local center a . set ( body a . m sweep . local center ) ; pc . local center b . set ( body b . m sweep . local center ) ; pc . inv ia = body a . m inv i ; pc . inv ib = body b . m inv i ; pc . local normal . set ( manifold . local normal ) ; pc . local point . set ( manifold . local point ) ; pc . point count = point count ; pc . radius a = radius a ; pc . radius b = radius b ; pc . type = manifold . type ; for ( int j = 0 ; j < point count ; j ++ ) { manifold point cp = manifold . points [ j ] ; velocity constraint point vcp = vc . points [ j ] ; if ( m step . warm starting ) { vcp . normal impulse = m step . dt ratio * cp . normal impulse ; vcp . tangent impulse = m step . dt ratio * cp . tangent impulse ; } else { vcp . normal impulse = 0 ; vcp . tangent impulse = 0 ; } vcp . r a . set zero ( ) ; vcp . r b . set zero ( ) ; vcp . normal mass = 0 ; vcp . tangent mass = 0 ; vcp . velocity bias = 0 ; pc . local points [ j ] . x = cp . local point . x ; pc . local points [ j ] . y = cp . local point . y ; } } } <SENTENCE_END/>

(Copy Probability: 11.1%)

<SENTENCE_START> { m step = def . step ; m count = def . count ; if ( m position constraints . length < m count ) { contact position constraint [ ] old = m position constraints ; m position constraints = new contact position constraint [ math utils . max ( old . length * 2 , m count ) ] ; system . arraycopy ( old , 0 , m position constraints , 0 , old . length ) ; for ( int i = old . length ; i < m position constraints . length ; i ++ ) { m position constraints [ i ] = new contact position constraint ( ) ; } } if ( m velocity constraints . length < m count ) { contact velocity constraint [ ] old = m velocity constraints ; m velocity constraints = new contact velocity constraint [ math utils . max ( old . length * 2 , m count ) ] ; system . arraycopy ( old , 0 , m velocity constraints , 0 , old . length ) ; for ( int i = old . length ; i < m velocity constraints . length ; i ++ ) { m velocity constraints [ i ] = new contact velocity constraint ( ) ; } } m positions = def . positions ; m velocities = def . velocities ; m contacts = def . contacts ; for ( int i = 0 ; i < m count ; ++ i ) { final contact contact = m contacts [ i ] ; final fixture fixture a = contact . m fixture a ; final fixture fixture b = contact . m fixture b ; final shape shape a = fixture a . get shape ( ) ; final shape shape b = fixture b . get shape ( ) ; final float radius a = shape a . m radius ; final float radius b = shape b . m radius ; final body body a = fixture a . get body ( ) ; final body body b = fixture b . get body ( ) ; final manifold manifold = contact . get manifold ( ) ; int point count = manifold . point count ; assert ( point count > 0 ) ; contact velocity constraint vc = m velocity constraints [ i ] ; vc . friction = contact . m friction ; vc . restitution = contact . m restitution ; vc . tangent speed = contact . m tangent speed ; vc . index a = body a . m island index ; vc . index b = body b . m island index ; vc . inv mass a = body a . m inv mass ; vc . inv mass b = body b . m inv mass ; vc . inv ia = body a . m inv i ; vc . inv ib = body b . m inv i ; vc . contact index = i ; vc . point count = point count ; vc . k . set zero ( ) ; vc . normal mass . set zero ( ) ; contact position constraint pc = m position constraints [ i ] ; pc . index a = body a . m island index ; pc . index b = body b . m island index ; pc . inv mass a = body a . m inv mass ; pc . inv mass b = body b . m inv mass ; pc . local center a . set ( body a . m sweep . local center ) ; pc . local center b . set ( body b . m sweep . local center ) ; pc . inv ia = body a . m inv i ; pc . inv ib = body b . m inv i ; pc . local normal . set ( manifold . local normal ) ; pc . local point . set ( manifold . local point ) ; pc . point count = point count ; pc . radius a = radius a ; pc . radius b = radius b ; pc . type = manifold . type ; for ( int j = 0 ; j < point count ; j ++ ) { manifold point cp = manifold . points [ j ] ; velocity constraint point vcp = vc . points [ j ] ; if ( m step . warm starting ) { vcp . normal impulse = m step . dt ratio * cp . normal impulse ; vcp . tangent impulse = m step . dt ratio * cp . tangent impulse ; } else { vcp . normal impulse = 0 ; vcp . tangent impulse = 0 ; } vcp . r a . set zero ( ) ; vcp . r b . set zero ( ) ; vcp . normal mass = 0 ; vcp . tangent mass = 0 ; vcp . velocity bias = 0 ; pc . local points [ j ] . x = cp . local point . x ; pc . local points [ j ] . y = cp . local point . y ; } } } <SENTENCE_END/>


Original Name warm,start

warm

<SENTENCE_START> { for ( int i = 0 ; i < m count ; ++ i ) { final contact velocity constraint vc = m velocity constraints [ i ] ; int index a = vc . index a ; int index b = vc . index b ; float m a = vc . inv mass a ; float i a = vc . inv ia ; float m b = vc . inv mass b ; float i b = vc . inv ib ; int point count = vc . point count ; vec 2 v a = m velocities [ index a ] . v ; float w a = m velocities [ index a ] . w ; vec 2 v b = m velocities [ index b ] . v ; float w b = m velocities [ index b ] . w ; vec 2 normal = vc . normal ; float tangentx = 1.0f * normal . y ; float tangenty = - 1.0f * normal . x ; for ( int j = 0 ; j < point count ; ++ j ) { velocity constraint point vcp = vc . points [ j ] ; float px = tangentx * vcp . tangent impulse + normal . x * vcp . normal impulse ; float py = tangenty * vcp . tangent impulse + normal . y * vcp . normal impulse ; w a -= i a * ( vcp . r a . x * py - vcp . r a . y * px ) ; v a . x -= px * m a ; v a . y -= py * m a ; w b += i b * ( vcp . r b . x * py - vcp . r b . y * px ) ; v b . x += px * m b ; v b . y += py * m b ; } m velocities [ index a ] . w = w a ; m velocities [ index b ] . w = w b ; } } <SENTENCE_END/>

(Copy Probability: 3.9%)

<SENTENCE_START> { for ( int i = 0 ; i < m count ; ++ i ) { final contact velocity constraint vc = m velocity constraints [ i ] ; int index a = vc . index a ; int index b = vc . index b ; float m a = vc . inv mass a ; float i a = vc . inv ia ; float m b = vc . inv mass b ; float i b = vc . inv ib ; int point count = vc . point count ; vec 2 v a = m velocities [ index a ] . v ; float w a = m velocities [ index a ] . w ; vec 2 v b = m velocities [ index b ] . v ; float w b = m velocities [ index b ] . w ; vec 2 normal = vc . normal ; float tangentx = 1.0f * normal . y ; float tangenty = - 1.0f * normal . x ; for ( int j = 0 ; j < point count ; ++ j ) { velocity constraint point vcp = vc . points [ j ] ; float px = tangentx * vcp . tangent impulse + normal . x * vcp . normal impulse ; float py = tangenty * vcp . tangent impulse + normal . y * vcp . normal impulse ; w a -= i a * ( vcp . r a . x * py - vcp . r a . y * px ) ; v a . x -= px * m a ; v a . y -= py * m a ; w b += i b * ( vcp . r b . x * py - vcp . r b . y * px ) ; v b . x += px * m b ; v b . y += py * m b ; } m velocities [ index a ] . w = w a ; m velocities [ index b ] . w = w b ; } } <SENTENCE_END/>

start

<SENTENCE_START> { for ( int i = 0 ; i < m count ; ++ i ) { final contact velocity constraint vc = m velocity constraints [ i ] ; int index a = vc . index a ; int index b = vc . index b ; float m a = vc . inv mass a ; float i a = vc . inv ia ; float m b = vc . inv mass b ; float i b = vc . inv ib ; int point count = vc . point count ; vec 2 v a = m velocities [ index a ] . v ; float w a = m velocities [ index a ] . w ; vec 2 v b = m velocities [ index b ] . v ; float w b = m velocities [ index b ] . w ; vec 2 normal = vc . normal ; float tangentx = 1.0f * normal . y ; float tangenty = - 1.0f * normal . x ; for ( int j = 0 ; j < point count ; ++ j ) { velocity constraint point vcp = vc . points [ j ] ; float px = tangentx * vcp . tangent impulse + normal . x * vcp . normal impulse ; float py = tangenty * vcp . tangent impulse + normal . y * vcp . normal impulse ; w a -= i a * ( vcp . r a . x * py - vcp . r a . y * px ) ; v a . x -= px * m a ; v a . y -= py * m a ; w b += i b * ( vcp . r b . x * py - vcp . r b . y * px ) ; v b . x += px * m b ; v b . y += py * m b ; } m velocities [ index a ] . w = w a ; m velocities [ index b ] . w = w b ; } } <SENTENCE_END/>

(Copy Probability: 6.3%)

<SENTENCE_START> { for ( int i = 0 ; i < m count ; ++ i ) { final contact velocity constraint vc = m velocity constraints [ i ] ; int index a = vc . index a ; int index b = vc . index b ; float m a = vc . inv mass a ; float i a = vc . inv ia ; float m b = vc . inv mass b ; float i b = vc . inv ib ; int point count = vc . point count ; vec 2 v a = m velocities [ index a ] . v ; float w a = m velocities [ index a ] . w ; vec 2 v b = m velocities [ index b ] . v ; float w b = m velocities [ index b ] . w ; vec 2 normal = vc . normal ; float tangentx = 1.0f * normal . y ; float tangenty = - 1.0f * normal . x ; for ( int j = 0 ; j < point count ; ++ j ) { velocity constraint point vcp = vc . points [ j ] ; float px = tangentx * vcp . tangent impulse + normal . x * vcp . normal impulse ; float py = tangenty * vcp . tangent impulse + normal . y * vcp . normal impulse ; w a -= i a * ( vcp . r a . x * py - vcp . r a . y * px ) ; v a . x -= px * m a ; v a . y -= py * m a ; w b += i b * ( vcp . r b . x * py - vcp . r b . y * px ) ; v b . x += px * m b ; v b . y += py * m b ; } m velocities [ index a ] . w = w a ; m velocities [ index b ] . w = w b ; } } <SENTENCE_END/>

%END%

<SENTENCE_START> { for ( int i = 0 ; i < m count ; ++ i ) { final contact velocity constraint vc = m velocity constraints [ i ] ; int index a = vc . index a ; int index b = vc . index b ; float m a = vc . inv mass a ; float i a = vc . inv ia ; float m b = vc . inv mass b ; float i b = vc . inv ib ; int point count = vc . point count ; vec 2 v a = m velocities [ index a ] . v ; float w a = m velocities [ index a ] . w ; vec 2 v b = m velocities [ index b ] . v ; float w b = m velocities [ index b ] . w ; vec 2 normal = vc . normal ; float tangentx = 1.0f * normal . y ; float tangenty = - 1.0f * normal . x ; for ( int j = 0 ; j < point count ; ++ j ) { velocity constraint point vcp = vc . points [ j ] ; float px = tangentx * vcp . tangent impulse + normal . x * vcp . normal impulse ; float py = tangenty * vcp . tangent impulse + normal . y * vcp . normal impulse ; w a -= i a * ( vcp . r a . x * py - vcp . r a . y * px ) ; v a . x -= px * m a ; v a . y -= py * m a ; w b += i b * ( vcp . r b . x * py - vcp . r b . y * px ) ; v b . x += px * m b ; v b . y += py * m b ; } m velocities [ index a ] . w = w a ; m velocities [ index b ] . w = w b ; } } <SENTENCE_END/>

(Copy Probability: 6.2%)

<SENTENCE_START> { for ( int i = 0 ; i < m count ; ++ i ) { final contact velocity constraint vc = m velocity constraints [ i ] ; int index a = vc . index a ; int index b = vc . index b ; float m a = vc . inv mass a ; float i a = vc . inv ia ; float m b = vc . inv mass b ; float i b = vc . inv ib ; int point count = vc . point count ; vec 2 v a = m velocities [ index a ] . v ; float w a = m velocities [ index a ] . w ; vec 2 v b = m velocities [ index b ] . v ; float w b = m velocities [ index b ] . w ; vec 2 normal = vc . normal ; float tangentx = 1.0f * normal . y ; float tangenty = - 1.0f * normal . x ; for ( int j = 0 ; j < point count ; ++ j ) { velocity constraint point vcp = vc . points [ j ] ; float px = tangentx * vcp . tangent impulse + normal . x * vcp . normal impulse ; float py = tangenty * vcp . tangent impulse + normal . y * vcp . normal impulse ; w a -= i a * ( vcp . r a . x * py - vcp . r a . y * px ) ; v a . x -= px * m a ; v a . y -= py * m a ; w b += i b * ( vcp . r b . x * py - vcp . r b . y * px ) ; v b . x += px * m b ; v b . y += py * m b ; } m velocities [ index a ] . w = w a ; m velocities [ index b ] . w = w b ; } } <SENTENCE_END/>


Original Name initialize,velocity,constraints

initialize

<SENTENCE_START> { for ( int i = 0 ; i < m count ; ++ i ) { contact velocity constraint vc = m velocity constraints [ i ] ; contact position constraint pc = m position constraints [ i ] ; float radius a = pc . radius a ; float radius b = pc . radius b ; manifold manifold = m contacts [ vc . contact index ] . get manifold ( ) ; int index a = vc . index a ; int index b = vc . index b ; float m a = vc . inv mass a ; float m b = vc . inv mass b ; float i a = vc . inv ia ; float i b = vc . inv ib ; vec 2 local center a = pc . local center a ; vec 2 local center b = pc . local center b ; vec 2 c a = m positions [ index a ] . c ; float a a = m positions [ index a ] . a ; vec 2 v a = m velocities [ index a ] . v ; float w a = m velocities [ index a ] . w ; vec 2 c b = m positions [ index b ] . c ; float a b = m positions [ index b ] . a ; vec 2 v b = m velocities [ index b ] . v ; float w b = m velocities [ index b ] . w ; assert ( manifold . point count > 0 ) ; final rot xf aq = xf a . q ; final rot xf bq = xf b . q ; xf aq . set ( a a ) ; xf bq . set ( a b ) ; xf a . p . x = c a . x - ( xf aq . c * local center a . x - xf aq . s * local center a . y ) ; xf a . p . y = c a . y - ( xf aq . s * local center a . x + xf aq . c * local center a . y ) ; xf b . p . x = c b . x - ( xf bq . c * local center b . x - xf bq . s * local center b . y ) ; xf b . p . y = c b . y - ( xf bq . s * local center b . x + xf bq . c * local center b . y ) ; world manifold . initialize ( manifold , xf a , radius a , xf b , radius b ) ; final vec 2 vcnormal = vc . normal ; vcnormal . x = world manifold . normal . x ; vcnormal . y = world manifold . normal . y ; int point count = vc . point count ; for ( int j = 0 ; j < point count ; ++ j ) { velocity constraint point vcp = vc . points [ j ] ; vec 2 wm pj = world manifold . points [ j ] ; final vec 2 vcpr a = vcp . r a ; final vec 2 vcpr b = vcp . r b ; vcpr a . x = wm pj . x - c a . x ; vcpr a . y = wm pj . y - c a . y ; vcpr b . x = wm pj . x - c b . x ; vcpr b . y = wm pj . y - c b . y ; float rn a = vcpr a . x * vcnormal . y - vcpr a . y * vcnormal . x ; float rn b = vcpr b . x * vcnormal . y - vcpr b . y * vcnormal . x ; float k normal = m a + m b + i a * rn a * rn a + i b * rn b * rn b ; vcp . normal mass = k normal > 0.0f ? 1.0f / k normal : 0.0f ; float tangentx = 1.0f * vcnormal . y ; float tangenty = - 1.0f * vcnormal . x ; float rt a = vcpr a . x * tangenty - vcpr a . y * tangentx ; float rt b = vcpr b . x * tangenty - vcpr b . y * tangentx ; float k tangent = m a + m b + i a * rt a * rt a + i b * rt b * rt b ; vcp . tangent mass = k tangent > 0.0f ? 1.0f / k tangent : 0.0f ; vcp . velocity bias = 0.0f ; float tempx = v b . x + - w b * vcpr b . y - v a . x - ( - w a * vcpr a . y ) ; float tempy = v b . y + w b * vcpr b . x - v a . y - ( w a * vcpr a . x ) ; float v rel = vcnormal . x * tempx + vcnormal . y * tempy ; if ( v rel < - settings . velocity threshold ) { vcp . velocity bias = - vc . restitution * v rel ; } } if ( vc . point count == 2 ) { velocity constraint point vcp 1 = vc . points [ 0 ] ; velocity constraint point vcp 2 = vc . points [ 1 ] ; float rn 1 a = vcp 1 . r a . x * vcnormal . y - vcp 1 . r a . y * vcnormal . x ; float rn 1 b = vcp 1 . r b . x * vcnormal . y - vcp 1 . r b . y * vcnormal . x ; float rn 2 a = vcp 2 . r a . x * vcnormal . y - vcp 2 . r a . y * vcnormal . x ; float rn 2 b = vcp 2 . r b . x * vcnormal . y - vcp 2 . r b . y * vcnormal . x ; float k 11 = m a + m b + i a * rn 1 a * rn 1 a + i b * rn 1 b * rn 1 b ; float k 22 = m a + m b + i a * rn 2 a * rn 2 a + i b * rn 2 b * rn 2 b ; float k 12 = m a + m b + i a * rn 1 a * rn 2 a + i b * rn 1 b * rn 2 b ; if ( k 11 * k 11 < k max condition number * ( k 11 * k 22 - k 12 * k 12 ) ) { vc . k . ex . x = k 11 ; vc . k . ex . y = k 12 ; vc . k . ey . x = k 12 ; vc . k . ey . y = k 22 ; vc . k . invert to out ( vc . normal mass ) ; } else { vc . point count = 1 ; } } } } <SENTENCE_END/>

(Copy Probability: 3.2%)

<SENTENCE_START> { for ( int i = 0 ; i < m count ; ++ i ) { contact velocity constraint vc = m velocity constraints [ i ] ; contact position constraint pc = m position constraints [ i ] ; float radius a = pc . radius a ; float radius b = pc . radius b ; manifold manifold = m contacts [ vc . contact index ] . get manifold ( ) ; int index a = vc . index a ; int index b = vc . index b ; float m a = vc . inv mass a ; float m b = vc . inv mass b ; float i a = vc . inv ia ; float i b = vc . inv ib ; vec 2 local center a = pc . local center a ; vec 2 local center b = pc . local center b ; vec 2 c a = m positions [ index a ] . c ; float a a = m positions [ index a ] . a ; vec 2 v a = m velocities [ index a ] . v ; float w a = m velocities [ index a ] . w ; vec 2 c b = m positions [ index b ] . c ; float a b = m positions [ index b ] . a ; vec 2 v b = m velocities [ index b ] . v ; float w b = m velocities [ index b ] . w ; assert ( manifold . point count > 0 ) ; final rot xf aq = xf a . q ; final rot xf bq = xf b . q ; xf aq . set ( a a ) ; xf bq . set ( a b ) ; xf a . p . x = c a . x - ( xf aq . c * local center a . x - xf aq . s * local center a . y ) ; xf a . p . y = c a . y - ( xf aq . s * local center a . x + xf aq . c * local center a . y ) ; xf b . p . x = c b . x - ( xf bq . c * local center b . x - xf bq . s * local center b . y ) ; xf b . p . y = c b . y - ( xf bq . s * local center b . x + xf bq . c * local center b . y ) ; world manifold . initialize ( manifold , xf a , radius a , xf b , radius b ) ; final vec 2 vcnormal = vc . normal ; vcnormal . x = world manifold . normal . x ; vcnormal . y = world manifold . normal . y ; int point count = vc . point count ; for ( int j = 0 ; j < point count ; ++ j ) { velocity constraint point vcp = vc . points [ j ] ; vec 2 wm pj = world manifold . points [ j ] ; final vec 2 vcpr a = vcp . r a ; final vec 2 vcpr b = vcp . r b ; vcpr a . x = wm pj . x - c a . x ; vcpr a . y = wm pj . y - c a . y ; vcpr b . x = wm pj . x - c b . x ; vcpr b . y = wm pj . y - c b . y ; float rn a = vcpr a . x * vcnormal . y - vcpr a . y * vcnormal . x ; float rn b = vcpr b . x * vcnormal . y - vcpr b . y * vcnormal . x ; float k normal = m a + m b + i a * rn a * rn a + i b * rn b * rn b ; vcp . normal mass = k normal > 0.0f ? 1.0f / k normal : 0.0f ; float tangentx = 1.0f * vcnormal . y ; float tangenty = - 1.0f * vcnormal . x ; float rt a = vcpr a . x * tangenty - vcpr a . y * tangentx ; float rt b = vcpr b . x * tangenty - vcpr b . y * tangentx ; float k tangent = m a + m b + i a * rt a * rt a + i b * rt b * rt b ; vcp . tangent mass = k tangent > 0.0f ? 1.0f / k tangent : 0.0f ; vcp . velocity bias = 0.0f ; float tempx = v b . x + - w b * vcpr b . y - v a . x - ( - w a * vcpr a . y ) ; float tempy = v b . y + w b * vcpr b . x - v a . y - ( w a * vcpr a . x ) ; float v rel = vcnormal . x * tempx + vcnormal . y * tempy ; if ( v rel < - settings . velocity threshold ) { vcp . velocity bias = - vc . restitution * v rel ; } } if ( vc . point count == 2 ) { velocity constraint point vcp 1 = vc . points [ 0 ] ; velocity constraint point vcp 2 = vc . points [ 1 ] ; float rn 1 a = vcp 1 . r a . x * vcnormal . y - vcp 1 . r a . y * vcnormal . x ; float rn 1 b = vcp 1 . r b . x * vcnormal . y - vcp 1 . r b . y * vcnormal . x ; float rn 2 a = vcp 2 . r a . x * vcnormal . y - vcp 2 . r a . y * vcnormal . x ; float rn 2 b = vcp 2 . r b . x * vcnormal . y - vcp 2 . r b . y * vcnormal . x ; float k 11 = m a + m b + i a * rn 1 a * rn 1 a + i b * rn 1 b * rn 1 b ; float k 22 = m a + m b + i a * rn 2 a * rn 2 a + i b * rn 2 b * rn 2 b ; float k 12 = m a + m b + i a * rn 1 a * rn 2 a + i b * rn 1 b * rn 2 b ; if ( k 11 * k 11 < k max condition number * ( k 11 * k 22 - k 12 * k 12 ) ) { vc . k . ex . x = k 11 ; vc . k . ex . y = k 12 ; vc . k . ey . x = k 12 ; vc . k . ey . y = k 22 ; vc . k . invert to out ( vc . normal mass ) ; } else { vc . point count = 1 ; } } } } <SENTENCE_END/>

velocity

<SENTENCE_START> { for ( int i = 0 ; i < m count ; ++ i ) { contact velocity constraint vc = m velocity constraints [ i ] ; contact position constraint pc = m position constraints [ i ] ; float radius a = pc . radius a ; float radius b = pc . radius b ; manifold manifold = m contacts [ vc . contact index ] . get manifold ( ) ; int index a = vc . index a ; int index b = vc . index b ; float m a = vc . inv mass a ; float m b = vc . inv mass b ; float i a = vc . inv ia ; float i b = vc . inv ib ; vec 2 local center a = pc . local center a ; vec 2 local center b = pc . local center b ; vec 2 c a = m positions [ index a ] . c ; float a a = m positions [ index a ] . a ; vec 2 v a = m velocities [ index a ] . v ; float w a = m velocities [ index a ] . w ; vec 2 c b = m positions [ index b ] . c ; float a b = m positions [ index b ] . a ; vec 2 v b = m velocities [ index b ] . v ; float w b = m velocities [ index b ] . w ; assert ( manifold . point count > 0 ) ; final rot xf aq = xf a . q ; final rot xf bq = xf b . q ; xf aq . set ( a a ) ; xf bq . set ( a b ) ; xf a . p . x = c a . x - ( xf aq . c * local center a . x - xf aq . s * local center a . y ) ; xf a . p . y = c a . y - ( xf aq . s * local center a . x + xf aq . c * local center a . y ) ; xf b . p . x = c b . x - ( xf bq . c * local center b . x - xf bq . s * local center b . y ) ; xf b . p . y = c b . y - ( xf bq . s * local center b . x + xf bq . c * local center b . y ) ; world manifold . initialize ( manifold , xf a , radius a , xf b , radius b ) ; final vec 2 vcnormal = vc . normal ; vcnormal . x = world manifold . normal . x ; vcnormal . y = world manifold . normal . y ; int point count = vc . point count ; for ( int j = 0 ; j < point count ; ++ j ) { velocity constraint point vcp = vc . points [ j ] ; vec 2 wm pj = world manifold . points [ j ] ; final vec 2 vcpr a = vcp . r a ; final vec 2 vcpr b = vcp . r b ; vcpr a . x = wm pj . x - c a . x ; vcpr a . y = wm pj . y - c a . y ; vcpr b . x = wm pj . x - c b . x ; vcpr b . y = wm pj . y - c b . y ; float rn a = vcpr a . x * vcnormal . y - vcpr a . y * vcnormal . x ; float rn b = vcpr b . x * vcnormal . y - vcpr b . y * vcnormal . x ; float k normal = m a + m b + i a * rn a * rn a + i b * rn b * rn b ; vcp . normal mass = k normal > 0.0f ? 1.0f / k normal : 0.0f ; float tangentx = 1.0f * vcnormal . y ; float tangenty = - 1.0f * vcnormal . x ; float rt a = vcpr a . x * tangenty - vcpr a . y * tangentx ; float rt b = vcpr b . x * tangenty - vcpr b . y * tangentx ; float k tangent = m a + m b + i a * rt a * rt a + i b * rt b * rt b ; vcp . tangent mass = k tangent > 0.0f ? 1.0f / k tangent : 0.0f ; vcp . velocity bias = 0.0f ; float tempx = v b . x + - w b * vcpr b . y - v a . x - ( - w a * vcpr a . y ) ; float tempy = v b . y + w b * vcpr b . x - v a . y - ( w a * vcpr a . x ) ; float v rel = vcnormal . x * tempx + vcnormal . y * tempy ; if ( v rel < - settings . velocity threshold ) { vcp . velocity bias = - vc . restitution * v rel ; } } if ( vc . point count == 2 ) { velocity constraint point vcp 1 = vc . points [ 0 ] ; velocity constraint point vcp 2 = vc . points [ 1 ] ; float rn 1 a = vcp 1 . r a . x * vcnormal . y - vcp 1 . r a . y * vcnormal . x ; float rn 1 b = vcp 1 . r b . x * vcnormal . y - vcp 1 . r b . y * vcnormal . x ; float rn 2 a = vcp 2 . r a . x * vcnormal . y - vcp 2 . r a . y * vcnormal . x ; float rn 2 b = vcp 2 . r b . x * vcnormal . y - vcp 2 . r b . y * vcnormal . x ; float k 11 = m a + m b + i a * rn 1 a * rn 1 a + i b * rn 1 b * rn 1 b ; float k 22 = m a + m b + i a * rn 2 a * rn 2 a + i b * rn 2 b * rn 2 b ; float k 12 = m a + m b + i a * rn 1 a * rn 2 a + i b * rn 1 b * rn 2 b ; if ( k 11 * k 11 < k max condition number * ( k 11 * k 22 - k 12 * k 12 ) ) { vc . k . ex . x = k 11 ; vc . k . ex . y = k 12 ; vc . k . ey . x = k 12 ; vc . k . ey . y = k 22 ; vc . k . invert to out ( vc . normal mass ) ; } else { vc . point count = 1 ; } } } } <SENTENCE_END/>

(Copy Probability: 6.5%)

<SENTENCE_START> { for ( int i = 0 ; i < m count ; ++ i ) { contact velocity constraint vc = m velocity constraints [ i ] ; contact position constraint pc = m position constraints [ i ] ; float radius a = pc . radius a ; float radius b = pc . radius b ; manifold manifold = m contacts [ vc . contact index ] . get manifold ( ) ; int index a = vc . index a ; int index b = vc . index b ; float m a = vc . inv mass a ; float m b = vc . inv mass b ; float i a = vc . inv ia ; float i b = vc . inv ib ; vec 2 local center a = pc . local center a ; vec 2 local center b = pc . local center b ; vec 2 c a = m positions [ index a ] . c ; float a a = m positions [ index a ] . a ; vec 2 v a = m velocities [ index a ] . v ; float w a = m velocities [ index a ] . w ; vec 2 c b = m positions [ index b ] . c ; float a b = m positions [ index b ] . a ; vec 2 v b = m velocities [ index b ] . v ; float w b = m velocities [ index b ] . w ; assert ( manifold . point count > 0 ) ; final rot xf aq = xf a . q ; final rot xf bq = xf b . q ; xf aq . set ( a a ) ; xf bq . set ( a b ) ; xf a . p . x = c a . x - ( xf aq . c * local center a . x - xf aq . s * local center a . y ) ; xf a . p . y = c a . y - ( xf aq . s * local center a . x + xf aq . c * local center a . y ) ; xf b . p . x = c b . x - ( xf bq . c * local center b . x - xf bq . s * local center b . y ) ; xf b . p . y = c b . y - ( xf bq . s * local center b . x + xf bq . c * local center b . y ) ; world manifold . initialize ( manifold , xf a , radius a , xf b , radius b ) ; final vec 2 vcnormal = vc . normal ; vcnormal . x = world manifold . normal . x ; vcnormal . y = world manifold . normal . y ; int point count = vc . point count ; for ( int j = 0 ; j < point count ; ++ j ) { velocity constraint point vcp = vc . points [ j ] ; vec 2 wm pj = world manifold . points [ j ] ; final vec 2 vcpr a = vcp . r a ; final vec 2 vcpr b = vcp . r b ; vcpr a . x = wm pj . x - c a . x ; vcpr a . y = wm pj . y - c a . y ; vcpr b . x = wm pj . x - c b . x ; vcpr b . y = wm pj . y - c b . y ; float rn a = vcpr a . x * vcnormal . y - vcpr a . y * vcnormal . x ; float rn b = vcpr b . x * vcnormal . y - vcpr b . y * vcnormal . x ; float k normal = m a + m b + i a * rn a * rn a + i b * rn b * rn b ; vcp . normal mass = k normal > 0.0f ? 1.0f / k normal : 0.0f ; float tangentx = 1.0f * vcnormal . y ; float tangenty = - 1.0f * vcnormal . x ; float rt a = vcpr a . x * tangenty - vcpr a . y * tangentx ; float rt b = vcpr b . x * tangenty - vcpr b . y * tangentx ; float k tangent = m a + m b + i a * rt a * rt a + i b * rt b * rt b ; vcp . tangent mass = k tangent > 0.0f ? 1.0f / k tangent : 0.0f ; vcp . velocity bias = 0.0f ; float tempx = v b . x + - w b * vcpr b . y - v a . x - ( - w a * vcpr a . y ) ; float tempy = v b . y + w b * vcpr b . x - v a . y - ( w a * vcpr a . x ) ; float v rel = vcnormal . x * tempx + vcnormal . y * tempy ; if ( v rel < - settings . velocity threshold ) { vcp . velocity bias = - vc . restitution * v rel ; } } if ( vc . point count == 2 ) { velocity constraint point vcp 1 = vc . points [ 0 ] ; velocity constraint point vcp 2 = vc . points [ 1 ] ; float rn 1 a = vcp 1 . r a . x * vcnormal . y - vcp 1 . r a . y * vcnormal . x ; float rn 1 b = vcp 1 . r b . x * vcnormal . y - vcp 1 . r b . y * vcnormal . x ; float rn 2 a = vcp 2 . r a . x * vcnormal . y - vcp 2 . r a . y * vcnormal . x ; float rn 2 b = vcp 2 . r b . x * vcnormal . y - vcp 2 . r b . y * vcnormal . x ; float k 11 = m a + m b + i a * rn 1 a * rn 1 a + i b * rn 1 b * rn 1 b ; float k 22 = m a + m b + i a * rn 2 a * rn 2 a + i b * rn 2 b * rn 2 b ; float k 12 = m a + m b + i a * rn 1 a * rn 2 a + i b * rn 1 b * rn 2 b ; if ( k 11 * k 11 < k max condition number * ( k 11 * k 22 - k 12 * k 12 ) ) { vc . k . ex . x = k 11 ; vc . k . ex . y = k 12 ; vc . k . ey . x = k 12 ; vc . k . ey . y = k 22 ; vc . k . invert to out ( vc . normal mass ) ; } else { vc . point count = 1 ; } } } } <SENTENCE_END/>

constraints

<SENTENCE_START> { for ( int i = 0 ; i < m count ; ++ i ) { contact velocity constraint vc = m velocity constraints [ i ] ; contact position constraint pc = m position constraints [ i ] ; float radius a = pc . radius a ; float radius b = pc . radius b ; manifold manifold = m contacts [ vc . contact index ] . get manifold ( ) ; int index a = vc . index a ; int index b = vc . index b ; float m a = vc . inv mass a ; float m b = vc . inv mass b ; float i a = vc . inv ia ; float i b = vc . inv ib ; vec 2 local center a = pc . local center a ; vec 2 local center b = pc . local center b ; vec 2 c a = m positions [ index a ] . c ; float a a = m positions [ index a ] . a ; vec 2 v a = m velocities [ index a ] . v ; float w a = m velocities [ index a ] . w ; vec 2 c b = m positions [ index b ] . c ; float a b = m positions [ index b ] . a ; vec 2 v b = m velocities [ index b ] . v ; float w b = m velocities [ index b ] . w ; assert ( manifold . point count > 0 ) ; final rot xf aq = xf a . q ; final rot xf bq = xf b . q ; xf aq . set ( a a ) ; xf bq . set ( a b ) ; xf a . p . x = c a . x - ( xf aq . c * local center a . x - xf aq . s * local center a . y ) ; xf a . p . y = c a . y - ( xf aq . s * local center a . x + xf aq . c * local center a . y ) ; xf b . p . x = c b . x - ( xf bq . c * local center b . x - xf bq . s * local center b . y ) ; xf b . p . y = c b . y - ( xf bq . s * local center b . x + xf bq . c * local center b . y ) ; world manifold . initialize ( manifold , xf a , radius a , xf b , radius b ) ; final vec 2 vcnormal = vc . normal ; vcnormal . x = world manifold . normal . x ; vcnormal . y = world manifold . normal . y ; int point count = vc . point count ; for ( int j = 0 ; j < point count ; ++ j ) { velocity constraint point vcp = vc . points [ j ] ; vec 2 wm pj = world manifold . points [ j ] ; final vec 2 vcpr a = vcp . r a ; final vec 2 vcpr b = vcp . r b ; vcpr a . x = wm pj . x - c a . x ; vcpr a . y = wm pj . y - c a . y ; vcpr b . x = wm pj . x - c b . x ; vcpr b . y = wm pj . y - c b . y ; float rn a = vcpr a . x * vcnormal . y - vcpr a . y * vcnormal . x ; float rn b = vcpr b . x * vcnormal . y - vcpr b . y * vcnormal . x ; float k normal = m a + m b + i a * rn a * rn a + i b * rn b * rn b ; vcp . normal mass = k normal > 0.0f ? 1.0f / k normal : 0.0f ; float tangentx = 1.0f * vcnormal . y ; float tangenty = - 1.0f * vcnormal . x ; float rt a = vcpr a . x * tangenty - vcpr a . y * tangentx ; float rt b = vcpr b . x * tangenty - vcpr b . y * tangentx ; float k tangent = m a + m b + i a * rt a * rt a + i b * rt b * rt b ; vcp . tangent mass = k tangent > 0.0f ? 1.0f / k tangent : 0.0f ; vcp . velocity bias = 0.0f ; float tempx = v b . x + - w b * vcpr b . y - v a . x - ( - w a * vcpr a . y ) ; float tempy = v b . y + w b * vcpr b . x - v a . y - ( w a * vcpr a . x ) ; float v rel = vcnormal . x * tempx + vcnormal . y * tempy ; if ( v rel < - settings . velocity threshold ) { vcp . velocity bias = - vc . restitution * v rel ; } } if ( vc . point count == 2 ) { velocity constraint point vcp 1 = vc . points [ 0 ] ; velocity constraint point vcp 2 = vc . points [ 1 ] ; float rn 1 a = vcp 1 . r a . x * vcnormal . y - vcp 1 . r a . y * vcnormal . x ; float rn 1 b = vcp 1 . r b . x * vcnormal . y - vcp 1 . r b . y * vcnormal . x ; float rn 2 a = vcp 2 . r a . x * vcnormal . y - vcp 2 . r a . y * vcnormal . x ; float rn 2 b = vcp 2 . r b . x * vcnormal . y - vcp 2 . r b . y * vcnormal . x ; float k 11 = m a + m b + i a * rn 1 a * rn 1 a + i b * rn 1 b * rn 1 b ; float k 22 = m a + m b + i a * rn 2 a * rn 2 a + i b * rn 2 b * rn 2 b ; float k 12 = m a + m b + i a * rn 1 a * rn 2 a + i b * rn 1 b * rn 2 b ; if ( k 11 * k 11 < k max condition number * ( k 11 * k 22 - k 12 * k 12 ) ) { vc . k . ex . x = k 11 ; vc . k . ex . y = k 12 ; vc . k . ey . x = k 12 ; vc . k . ey . y = k 22 ; vc . k . invert to out ( vc . normal mass ) ; } else { vc . point count = 1 ; } } } } <SENTENCE_END/>

(Copy Probability: 7.8%)

<SENTENCE_START> { for ( int i = 0 ; i < m count ; ++ i ) { contact velocity constraint vc = m velocity constraints [ i ] ; contact position constraint pc = m position constraints [ i ] ; float radius a = pc . radius a ; float radius b = pc . radius b ; manifold manifold = m contacts [ vc . contact index ] . get manifold ( ) ; int index a = vc . index a ; int index b = vc . index b ; float m a = vc . inv mass a ; float m b = vc . inv mass b ; float i a = vc . inv ia ; float i b = vc . inv ib ; vec 2 local center a = pc . local center a ; vec 2 local center b = pc . local center b ; vec 2 c a = m positions [ index a ] . c ; float a a = m positions [ index a ] . a ; vec 2 v a = m velocities [ index a ] . v ; float w a = m velocities [ index a ] . w ; vec 2 c b = m positions [ index b ] . c ; float a b = m positions [ index b ] . a ; vec 2 v b = m velocities [ index b ] . v ; float w b = m velocities [ index b ] . w ; assert ( manifold . point count > 0 ) ; final rot xf aq = xf a . q ; final rot xf bq = xf b . q ; xf aq . set ( a a ) ; xf bq . set ( a b ) ; xf a . p . x = c a . x - ( xf aq . c * local center a . x - xf aq . s * local center a . y ) ; xf a . p . y = c a . y - ( xf aq . s * local center a . x + xf aq . c * local center a . y ) ; xf b . p . x = c b . x - ( xf bq . c * local center b . x - xf bq . s * local center b . y ) ; xf b . p . y = c b . y - ( xf bq . s * local center b . x + xf bq . c * local center b . y ) ; world manifold . initialize ( manifold , xf a , radius a , xf b , radius b ) ; final vec 2 vcnormal = vc . normal ; vcnormal . x = world manifold . normal . x ; vcnormal . y = world manifold . normal . y ; int point count = vc . point count ; for ( int j = 0 ; j < point count ; ++ j ) { velocity constraint point vcp = vc . points [ j ] ; vec 2 wm pj = world manifold . points [ j ] ; final vec 2 vcpr a = vcp . r a ; final vec 2 vcpr b = vcp . r b ; vcpr a . x = wm pj . x - c a . x ; vcpr a . y = wm pj . y - c a . y ; vcpr b . x = wm pj . x - c b . x ; vcpr b . y = wm pj . y - c b . y ; float rn a = vcpr a . x * vcnormal . y - vcpr a . y * vcnormal . x ; float rn b = vcpr b . x * vcnormal . y - vcpr b . y * vcnormal . x ; float k normal = m a + m b + i a * rn a * rn a + i b * rn b * rn b ; vcp . normal mass = k normal > 0.0f ? 1.0f / k normal : 0.0f ; float tangentx = 1.0f * vcnormal . y ; float tangenty = - 1.0f * vcnormal . x ; float rt a = vcpr a . x * tangenty - vcpr a . y * tangentx ; float rt b = vcpr b . x * tangenty - vcpr b . y * tangentx ; float k tangent = m a + m b + i a * rt a * rt a + i b * rt b * rt b ; vcp . tangent mass = k tangent > 0.0f ? 1.0f / k tangent : 0.0f ; vcp . velocity bias = 0.0f ; float tempx = v b . x + - w b * vcpr b . y - v a . x - ( - w a * vcpr a . y ) ; float tempy = v b . y + w b * vcpr b . x - v a . y - ( w a * vcpr a . x ) ; float v rel = vcnormal . x * tempx + vcnormal . y * tempy ; if ( v rel < - settings . velocity threshold ) { vcp . velocity bias = - vc . restitution * v rel ; } } if ( vc . point count == 2 ) { velocity constraint point vcp 1 = vc . points [ 0 ] ; velocity constraint point vcp 2 = vc . points [ 1 ] ; float rn 1 a = vcp 1 . r a . x * vcnormal . y - vcp 1 . r a . y * vcnormal . x ; float rn 1 b = vcp 1 . r b . x * vcnormal . y - vcp 1 . r b . y * vcnormal . x ; float rn 2 a = vcp 2 . r a . x * vcnormal . y - vcp 2 . r a . y * vcnormal . x ; float rn 2 b = vcp 2 . r b . x * vcnormal . y - vcp 2 . r b . y * vcnormal . x ; float k 11 = m a + m b + i a * rn 1 a * rn 1 a + i b * rn 1 b * rn 1 b ; float k 22 = m a + m b + i a * rn 2 a * rn 2 a + i b * rn 2 b * rn 2 b ; float k 12 = m a + m b + i a * rn 1 a * rn 2 a + i b * rn 1 b * rn 2 b ; if ( k 11 * k 11 < k max condition number * ( k 11 * k 22 - k 12 * k 12 ) ) { vc . k . ex . x = k 11 ; vc . k . ex . y = k 12 ; vc . k . ey . x = k 12 ; vc . k . ey . y = k 22 ; vc . k . invert to out ( vc . normal mass ) ; } else { vc . point count = 1 ; } } } } <SENTENCE_END/>

%END%

<SENTENCE_START> { for ( int i = 0 ; i < m count ; ++ i ) { contact velocity constraint vc = m velocity constraints [ i ] ; contact position constraint pc = m position constraints [ i ] ; float radius a = pc . radius a ; float radius b = pc . radius b ; manifold manifold = m contacts [ vc . contact index ] . get manifold ( ) ; int index a = vc . index a ; int index b = vc . index b ; float m a = vc . inv mass a ; float m b = vc . inv mass b ; float i a = vc . inv ia ; float i b = vc . inv ib ; vec 2 local center a = pc . local center a ; vec 2 local center b = pc . local center b ; vec 2 c a = m positions [ index a ] . c ; float a a = m positions [ index a ] . a ; vec 2 v a = m velocities [ index a ] . v ; float w a = m velocities [ index a ] . w ; vec 2 c b = m positions [ index b ] . c ; float a b = m positions [ index b ] . a ; vec 2 v b = m velocities [ index b ] . v ; float w b = m velocities [ index b ] . w ; assert ( manifold . point count > 0 ) ; final rot xf aq = xf a . q ; final rot xf bq = xf b . q ; xf aq . set ( a a ) ; xf bq . set ( a b ) ; xf a . p . x = c a . x - ( xf aq . c * local center a . x - xf aq . s * local center a . y ) ; xf a . p . y = c a . y - ( xf aq . s * local center a . x + xf aq . c * local center a . y ) ; xf b . p . x = c b . x - ( xf bq . c * local center b . x - xf bq . s * local center b . y ) ; xf b . p . y = c b . y - ( xf bq . s * local center b . x + xf bq . c * local center b . y ) ; world manifold . initialize ( manifold , xf a , radius a , xf b , radius b ) ; final vec 2 vcnormal = vc . normal ; vcnormal . x = world manifold . normal . x ; vcnormal . y = world manifold . normal . y ; int point count = vc . point count ; for ( int j = 0 ; j < point count ; ++ j ) { velocity constraint point vcp = vc . points [ j ] ; vec 2 wm pj = world manifold . points [ j ] ; final vec 2 vcpr a = vcp . r a ; final vec 2 vcpr b = vcp . r b ; vcpr a . x = wm pj . x - c a . x ; vcpr a . y = wm pj . y - c a . y ; vcpr b . x = wm pj . x - c b . x ; vcpr b . y = wm pj . y - c b . y ; float rn a = vcpr a . x * vcnormal . y - vcpr a . y * vcnormal . x ; float rn b = vcpr b . x * vcnormal . y - vcpr b . y * vcnormal . x ; float k normal = m a + m b + i a * rn a * rn a + i b * rn b * rn b ; vcp . normal mass = k normal > 0.0f ? 1.0f / k normal : 0.0f ; float tangentx = 1.0f * vcnormal . y ; float tangenty = - 1.0f * vcnormal . x ; float rt a = vcpr a . x * tangenty - vcpr a . y * tangentx ; float rt b = vcpr b . x * tangenty - vcpr b . y * tangentx ; float k tangent = m a + m b + i a * rt a * rt a + i b * rt b * rt b ; vcp . tangent mass = k tangent > 0.0f ? 1.0f / k tangent : 0.0f ; vcp . velocity bias = 0.0f ; float tempx = v b . x + - w b * vcpr b . y - v a . x - ( - w a * vcpr a . y ) ; float tempy = v b . y + w b * vcpr b . x - v a . y - ( w a * vcpr a . x ) ; float v rel = vcnormal . x * tempx + vcnormal . y * tempy ; if ( v rel < - settings . velocity threshold ) { vcp . velocity bias = - vc . restitution * v rel ; } } if ( vc . point count == 2 ) { velocity constraint point vcp 1 = vc . points [ 0 ] ; velocity constraint point vcp 2 = vc . points [ 1 ] ; float rn 1 a = vcp 1 . r a . x * vcnormal . y - vcp 1 . r a . y * vcnormal . x ; float rn 1 b = vcp 1 . r b . x * vcnormal . y - vcp 1 . r b . y * vcnormal . x ; float rn 2 a = vcp 2 . r a . x * vcnormal . y - vcp 2 . r a . y * vcnormal . x ; float rn 2 b = vcp 2 . r b . x * vcnormal . y - vcp 2 . r b . y * vcnormal . x ; float k 11 = m a + m b + i a * rn 1 a * rn 1 a + i b * rn 1 b * rn 1 b ; float k 22 = m a + m b + i a * rn 2 a * rn 2 a + i b * rn 2 b * rn 2 b ; float k 12 = m a + m b + i a * rn 1 a * rn 2 a + i b * rn 1 b * rn 2 b ; if ( k 11 * k 11 < k max condition number * ( k 11 * k 22 - k 12 * k 12 ) ) { vc . k . ex . x = k 11 ; vc . k . ex . y = k 12 ; vc . k . ey . x = k 12 ; vc . k . ey . y = k 22 ; vc . k . invert to out ( vc . normal mass ) ; } else { vc . point count = 1 ; } } } } <SENTENCE_END/>

(Copy Probability: 5.2%)

<SENTENCE_START> { for ( int i = 0 ; i < m count ; ++ i ) { contact velocity constraint vc = m velocity constraints [ i ] ; contact position constraint pc = m position constraints [ i ] ; float radius a = pc . radius a ; float radius b = pc . radius b ; manifold manifold = m contacts [ vc . contact index ] . get manifold ( ) ; int index a = vc . index a ; int index b = vc . index b ; float m a = vc . inv mass a ; float m b = vc . inv mass b ; float i a = vc . inv ia ; float i b = vc . inv ib ; vec 2 local center a = pc . local center a ; vec 2 local center b = pc . local center b ; vec 2 c a = m positions [ index a ] . c ; float a a = m positions [ index a ] . a ; vec 2 v a = m velocities [ index a ] . v ; float w a = m velocities [ index a ] . w ; vec 2 c b = m positions [ index b ] . c ; float a b = m positions [ index b ] . a ; vec 2 v b = m velocities [ index b ] . v ; float w b = m velocities [ index b ] . w ; assert ( manifold . point count > 0 ) ; final rot xf aq = xf a . q ; final rot xf bq = xf b . q ; xf aq . set ( a a ) ; xf bq . set ( a b ) ; xf a . p . x = c a . x - ( xf aq . c * local center a . x - xf aq . s * local center a . y ) ; xf a . p . y = c a . y - ( xf aq . s * local center a . x + xf aq . c * local center a . y ) ; xf b . p . x = c b . x - ( xf bq . c * local center b . x - xf bq . s * local center b . y ) ; xf b . p . y = c b . y - ( xf bq . s * local center b . x + xf bq . c * local center b . y ) ; world manifold . initialize ( manifold , xf a , radius a , xf b , radius b ) ; final vec 2 vcnormal = vc . normal ; vcnormal . x = world manifold . normal . x ; vcnormal . y = world manifold . normal . y ; int point count = vc . point count ; for ( int j = 0 ; j < point count ; ++ j ) { velocity constraint point vcp = vc . points [ j ] ; vec 2 wm pj = world manifold . points [ j ] ; final vec 2 vcpr a = vcp . r a ; final vec 2 vcpr b = vcp . r b ; vcpr a . x = wm pj . x - c a . x ; vcpr a . y = wm pj . y - c a . y ; vcpr b . x = wm pj . x - c b . x ; vcpr b . y = wm pj . y - c b . y ; float rn a = vcpr a . x * vcnormal . y - vcpr a . y * vcnormal . x ; float rn b = vcpr b . x * vcnormal . y - vcpr b . y * vcnormal . x ; float k normal = m a + m b + i a * rn a * rn a + i b * rn b * rn b ; vcp . normal mass = k normal > 0.0f ? 1.0f / k normal : 0.0f ; float tangentx = 1.0f * vcnormal . y ; float tangenty = - 1.0f * vcnormal . x ; float rt a = vcpr a . x * tangenty - vcpr a . y * tangentx ; float rt b = vcpr b . x * tangenty - vcpr b . y * tangentx ; float k tangent = m a + m b + i a * rt a * rt a + i b * rt b * rt b ; vcp . tangent mass = k tangent > 0.0f ? 1.0f / k tangent : 0.0f ; vcp . velocity bias = 0.0f ; float tempx = v b . x + - w b * vcpr b . y - v a . x - ( - w a * vcpr a . y ) ; float tempy = v b . y + w b * vcpr b . x - v a . y - ( w a * vcpr a . x ) ; float v rel = vcnormal . x * tempx + vcnormal . y * tempy ; if ( v rel < - settings . velocity threshold ) { vcp . velocity bias = - vc . restitution * v rel ; } } if ( vc . point count == 2 ) { velocity constraint point vcp 1 = vc . points [ 0 ] ; velocity constraint point vcp 2 = vc . points [ 1 ] ; float rn 1 a = vcp 1 . r a . x * vcnormal . y - vcp 1 . r a . y * vcnormal . x ; float rn 1 b = vcp 1 . r b . x * vcnormal . y - vcp 1 . r b . y * vcnormal . x ; float rn 2 a = vcp 2 . r a . x * vcnormal . y - vcp 2 . r a . y * vcnormal . x ; float rn 2 b = vcp 2 . r b . x * vcnormal . y - vcp 2 . r b . y * vcnormal . x ; float k 11 = m a + m b + i a * rn 1 a * rn 1 a + i b * rn 1 b * rn 1 b ; float k 22 = m a + m b + i a * rn 2 a * rn 2 a + i b * rn 2 b * rn 2 b ; float k 12 = m a + m b + i a * rn 1 a * rn 2 a + i b * rn 1 b * rn 2 b ; if ( k 11 * k 11 < k max condition number * ( k 11 * k 22 - k 12 * k 12 ) ) { vc . k . ex . x = k 11 ; vc . k . ex . y = k 12 ; vc . k . ey . x = k 12 ; vc . k . ey . y = k 22 ; vc . k . invert to out ( vc . normal mass ) ; } else { vc . point count = 1 ; } } } } <SENTENCE_END/>


Original Name solve,velocity,constraints

solve

<SENTENCE_START> { for ( int i = 0 ; i < m count ; ++ i ) { final contact velocity constraint vc = m velocity constraints [ i ] ; int index a = vc . index a ; int index b = vc . index b ; float m a = vc . inv mass a ; float m b = vc . inv mass b ; float i a = vc . inv ia ; float i b = vc . inv ib ; int point count = vc . point count ; vec 2 v a = m velocities [ index a ] . v ; float w a = m velocities [ index a ] . w ; vec 2 v b = m velocities [ index b ] . v ; float w b = m velocities [ index b ] . w ; vec 2 normal = vc . normal ; final float normalx = normal . x ; final float normaly = normal . y ; float tangentx = 1.0f * vc . normal . y ; float tangenty = - 1.0f * vc . normal . x ; final float friction = vc . friction ; assert ( point count == 1 || point count == 2 ) ; for ( int j = 0 ; j < point count ; ++ j ) { final velocity constraint point vcp = vc . points [ j ] ; final vec 2 a = vcp . r a ; float dvx = - w b * vcp . r b . y + v b . x - v a . x + w a * a . y ; float dvy = w b * vcp . r b . x + v b . y - v a . y - w a * a . x ; final float vt = dvx * tangentx + dvy * tangenty - vc . tangent speed ; float lambda = vcp . tangent mass * ( - vt ) ; final float max friction = friction * vcp . normal impulse ; final float new impulse = math utils . clamp ( vcp . tangent impulse + lambda , - max friction , max friction ) ; lambda = new impulse - vcp . tangent impulse ; vcp . tangent impulse = new impulse ; final float px = tangentx * lambda ; final float py = tangenty * lambda ; v a . x -= px * m a ; v a . y -= py * m a ; w a -= i a * ( vcp . r a . x * py - vcp . r a . y * px ) ; v b . x += px * m b ; v b . y += py * m b ; w b += i b * ( vcp . r b . x * py - vcp . r b . y * px ) ; } if ( vc . point count == 1 ) { final velocity constraint point vcp = vc . points [ 0 ] ; float dvx = - w b * vcp . r b . y + v b . x - v a . x + w a * vcp . r a . y ; float dvy = w b * vcp . r b . x + v b . y - v a . y - w a * vcp . r a . x ; final float vn = dvx * normalx + dvy * normaly ; float lambda = - vcp . normal mass * ( vn - vcp . velocity bias ) ; float a = vcp . normal impulse + lambda ; final float new impulse = ( a > 0.0f ? a : 0.0f ) ; lambda = new impulse - vcp . normal impulse ; vcp . normal impulse = new impulse ; float px = normalx * lambda ; float py = normaly * lambda ; v a . x -= px * m a ; v a . y -= py * m a ; w a -= i a * ( vcp . r a . x * py - vcp . r a . y * px ) ; v b . x += px * m b ; v b . y += py * m b ; w b += i b * ( vcp . r b . x * py - vcp . r b . y * px ) ; } else { final velocity constraint point cp 1 = vc . points [ 0 ] ; final velocity constraint point cp 2 = vc . points [ 1 ] ; final vec 2 cp 1 r a = cp 1 . r a ; final vec 2 cp 1 r b = cp 1 . r b ; final vec 2 cp 2 r a = cp 2 . r a ; final vec 2 cp 2 r b = cp 2 . r b ; float ax = cp 1 . normal impulse ; float ay = cp 2 . normal impulse ; assert ( ax >= 0.0f && ay >= 0.0f ) ; float dv 1 x = - w b * cp 1 r b . y + v b . x - v a . x + w a * cp 1 r a . y ; float dv 1 y = w b * cp 1 r b . x + v b . y - v a . y - w a * cp 1 r a . x ; float dv 2 x = - w b * cp 2 r b . y + v b . x - v a . x + w a * cp 2 r a . y ; float dv 2 y = w b * cp 2 r b . x + v b . y - v a . y - w a * cp 2 r a . x ; float vn 1 = dv 1 x * normalx + dv 1 y * normaly ; float vn 2 = dv 2 x * normalx + dv 2 y * normaly ; float bx = vn 1 - cp 1 . velocity bias ; float by = vn 2 - cp 2 . velocity bias ; mat 22 r = vc . k ; bx -= r . ex . x * ax + r . ey . x * ay ; by -= r . ex . y * ax + r . ey . y * ay ; for ( ; ; ) { mat 22 r 1 = vc . normal mass ; float xx = r 1 . ex . x * bx + r 1 . ey . x * by ; float xy = r 1 . ex . y * bx + r 1 . ey . y * by ; xx *= - 1 ; xy *= - 1 ; if ( xx >= 0.0f && xy >= 0.0f ) { float dx = xx - ax ; float dy = xy - ay ; float p 1 x = dx * normalx ; float p 1 y = dx * normaly ; float p 2 x = dy * normalx ; float p 2 y = dy * normaly ; v a . x -= m a * ( p 1 x + p 2 x ) ; v a . y -= m a * ( p 1 y + p 2 y ) ; v b . x += m b * ( p 1 x + p 2 x ) ; v b . y += m b * ( p 1 y + p 2 y ) ; w a -= i a * ( cp 1 r a . x * p 1 y - cp 1 r a . y * p 1 x + ( cp 2 r a . x * p 2 y - cp 2 r a . y * p 2 x ) ) ; w b += i b * ( cp 1 r b . x * p 1 y - cp 1 r b . y * p 1 x + ( cp 2 r b . x * p 2 y - cp 2 r b . y * p 2 x ) ) ; cp 1 . normal impulse = xx ; cp 2 . normal impulse = xy ; if ( debug solver ) { vec 2 dv 1 = v b . add ( vec 2 . cross ( w b , cp 1 r b ) . sub local ( v a ) . sub local ( vec 2 . cross ( w a , cp 1 r a ) ) ) ; vec 2 dv 2 = v b . add ( vec 2 . cross ( w b , cp 2 r b ) . sub local ( v a ) . sub local ( vec 2 . cross ( w a , cp 2 r a ) ) ) ; vn 1 = vec 2 . dot ( dv 1 , normal ) ; vn 2 = vec 2 . dot ( dv 2 , normal ) ; assert ( math utils . abs ( vn 1 - cp 1 . velocity bias ) < k error tol ) ; assert ( math utils . abs ( vn 2 - cp 2 . velocity bias ) < k error tol ) ; } break ; } xx = - cp 1 . normal mass * bx ; xy = 0.0f ; vn 1 = 0.0f ; vn 2 = vc . k . ex . y * xx + by ; if ( xx >= 0.0f && vn 2 >= 0.0f ) { float dx = xx - ax ; float dy = xy - ay ; float p 1 x = normalx * dx ; float p 1 y = normaly * dx ; float p 2 x = normalx * dy ; float p 2 y = normaly * dy ; v a . x -= m a * ( p 1 x + p 2 x ) ; v a . y -= m a * ( p 1 y + p 2 y ) ; v b . x += m b * ( p 1 x + p 2 x ) ; v b . y += m b * ( p 1 y + p 2 y ) ; w a -= i a * ( cp 1 r a . x * p 1 y - cp 1 r a . y * p 1 x + ( cp 2 r a . x * p 2 y - cp 2 r a . y * p 2 x ) ) ; w b += i b * ( cp 1 r b . x * p 1 y - cp 1 r b . y * p 1 x + ( cp 2 r b . x * p 2 y - cp 2 r b . y * p 2 x ) ) ; cp 1 . normal impulse = xx ; cp 2 . normal impulse = xy ; if ( debug solver ) { vec 2 dv 1 = v b . add ( vec 2 . cross ( w b , cp 1 r b ) . sub local ( v a ) . sub local ( vec 2 . cross ( w a , cp 1 r a ) ) ) ; vn 1 = vec 2 . dot ( dv 1 , normal ) ; assert ( math utils . abs ( vn 1 - cp 1 . velocity bias ) < k error tol ) ; } break ; } xx = 0.0f ; xy = - cp 2 . normal mass * by ; vn 1 = vc . k . ey . x * xy + bx ; vn 2 = 0.0f ; if ( xy >= 0.0f && vn 1 >= 0.0f ) { float dx = xx - ax ; float dy = xy - ay ; float p 1 x = normalx * dx ; float p 1 y = normaly * dx ; float p 2 x = normalx * dy ; float p 2 y = normaly * dy ; v a . x -= m a * ( p 1 x + p 2 x ) ; v a . y -= m a * ( p 1 y + p 2 y ) ; v b . x += m b * ( p 1 x + p 2 x ) ; v b . y += m b * ( p 1 y + p 2 y ) ; w a -= i a * ( cp 1 r a . x * p 1 y - cp 1 r a . y * p 1 x + ( cp 2 r a . x * p 2 y - cp 2 r a . y * p 2 x ) ) ; w b += i b * ( cp 1 r b . x * p 1 y - cp 1 r b . y * p 1 x + ( cp 2 r b . x * p 2 y - cp 2 r b . y * p 2 x ) ) ; cp 1 . normal impulse = xx ; cp 2 . normal impulse = xy ; if ( debug solver ) { vec 2 dv 2 = v b . add ( vec 2 . cross ( w b , cp 2 r b ) . sub local ( v a ) . sub local ( vec 2 . cross ( w a , cp 2 r a ) ) ) ; vn 2 = vec 2 . dot ( dv 2 , normal ) ; assert ( math utils . abs ( vn 2 - cp 2 . velocity bias ) < k error tol ) ; } break ; } xx = 0.0f ; xy = 0.0f ; vn 1 = bx ; vn 2 = by ; if ( vn 1 >= 0.0f && vn 2 >= 0.0f ) { float dx = xx - ax ; float dy = xy - ay ; float p 1 x = normalx * dx ; float p 1 y = normaly * dx ; float p 2 x = normalx * dy ; float p 2 y = normaly * dy ; v a . x -= m a * ( p 1 x + p 2 x ) ; v a . y -= m a * ( p 1 y + p 2 y ) ; v b . x += m b * ( p 1 x + p 2 x ) ; v b . y += m b * ( p 1 y + p 2 y ) ; w a -= i a * ( cp 1 r a . x * p 1 y - cp 1 r a . y * p 1 x + ( cp 2 r a . x * p 2 y - cp 2 r a . y * p 2 x ) ) ; w b += i b * ( cp 1 r b . x * p 1 y - cp 1 r b . y * p 1 x + ( cp 2 r b . x * p 2 y - cp 2 r b . y * p 2 x ) ) ; cp 1 . normal impulse = xx ; cp 2 . normal impulse = xy ; break ; } break ; } } m velocities [ index a ] . w = w a ; m velocities [ index b ] . w = w b ; } } <SENTENCE_END/>

(Copy Probability: 3.4%)

<SENTENCE_START> { for ( int i = 0 ; i < m count ; ++ i ) { final contact velocity constraint vc = m velocity constraints [ i ] ; int index a = vc . index a ; int index b = vc . index b ; float m a = vc . inv mass a ; float m b = vc . inv mass b ; float i a = vc . inv ia ; float i b = vc . inv ib ; int point count = vc . point count ; vec 2 v a = m velocities [ index a ] . v ; float w a = m velocities [ index a ] . w ; vec 2 v b = m velocities [ index b ] . v ; float w b = m velocities [ index b ] . w ; vec 2 normal = vc . normal ; final float normalx = normal . x ; final float normaly = normal . y ; float tangentx = 1.0f * vc . normal . y ; float tangenty = - 1.0f * vc . normal . x ; final float friction = vc . friction ; assert ( point count == 1 || point count == 2 ) ; for ( int j = 0 ; j < point count ; ++ j ) { final velocity constraint point vcp = vc . points [ j ] ; final vec 2 a = vcp . r a ; float dvx = - w b * vcp . r b . y + v b . x - v a . x + w a * a . y ; float dvy = w b * vcp . r b . x + v b . y - v a . y - w a * a . x ; final float vt = dvx * tangentx + dvy * tangenty - vc . tangent speed ; float lambda = vcp . tangent mass * ( - vt ) ; final float max friction = friction * vcp . normal impulse ; final float new impulse = math utils . clamp ( vcp . tangent impulse + lambda , - max friction , max friction ) ; lambda = new impulse - vcp . tangent impulse ; vcp . tangent impulse = new impulse ; final float px = tangentx * lambda ; final float py = tangenty * lambda ; v a . x -= px * m a ; v a . y -= py * m a ; w a -= i a * ( vcp . r a . x * py - vcp . r a . y * px ) ; v b . x += px * m b ; v b . y += py * m b ; w b += i b * ( vcp . r b . x * py - vcp . r b . y * px ) ; } if ( vc . point count == 1 ) { final velocity constraint point vcp = vc . points [ 0 ] ; float dvx = - w b * vcp . r b . y + v b . x - v a . x + w a * vcp . r a . y ; float dvy = w b * vcp . r b . x + v b . y - v a . y - w a * vcp . r a . x ; final float vn = dvx * normalx + dvy * normaly ; float lambda = - vcp . normal mass * ( vn - vcp . velocity bias ) ; float a = vcp . normal impulse + lambda ; final float new impulse = ( a > 0.0f ? a : 0.0f ) ; lambda = new impulse - vcp . normal impulse ; vcp . normal impulse = new impulse ; float px = normalx * lambda ; float py = normaly * lambda ; v a . x -= px * m a ; v a . y -= py * m a ; w a -= i a * ( vcp . r a . x * py - vcp . r a . y * px ) ; v b . x += px * m b ; v b . y += py * m b ; w b += i b * ( vcp . r b . x * py - vcp . r b . y * px ) ; } else { final velocity constraint point cp 1 = vc . points [ 0 ] ; final velocity constraint point cp 2 = vc . points [ 1 ] ; final vec 2 cp 1 r a = cp 1 . r a ; final vec 2 cp 1 r b = cp 1 . r b ; final vec 2 cp 2 r a = cp 2 . r a ; final vec 2 cp 2 r b = cp 2 . r b ; float ax = cp 1 . normal impulse ; float ay = cp 2 . normal impulse ; assert ( ax >= 0.0f && ay >= 0.0f ) ; float dv 1 x = - w b * cp 1 r b . y + v b . x - v a . x + w a * cp 1 r a . y ; float dv 1 y = w b * cp 1 r b . x + v b . y - v a . y - w a * cp 1 r a . x ; float dv 2 x = - w b * cp 2 r b . y + v b . x - v a . x + w a * cp 2 r a . y ; float dv 2 y = w b * cp 2 r b . x + v b . y - v a . y - w a * cp 2 r a . x ; float vn 1 = dv 1 x * normalx + dv 1 y * normaly ; float vn 2 = dv 2 x * normalx + dv 2 y * normaly ; float bx = vn 1 - cp 1 . velocity bias ; float by = vn 2 - cp 2 . velocity bias ; mat 22 r = vc . k ; bx -= r . ex . x * ax + r . ey . x * ay ; by -= r . ex . y * ax + r . ey . y * ay ; for ( ; ; ) { mat 22 r 1 = vc . normal mass ; float xx = r 1 . ex . x * bx + r 1 . ey . x * by ; float xy = r 1 . ex . y * bx + r 1 . ey . y * by ; xx *= - 1 ; xy *= - 1 ; if ( xx >= 0.0f && xy >= 0.0f ) { float dx = xx - ax ; float dy = xy - ay ; float p 1 x = dx * normalx ; float p 1 y = dx * normaly ; float p 2 x = dy * normalx ; float p 2 y = dy * normaly ; v a . x -= m a * ( p 1 x + p 2 x ) ; v a . y -= m a * ( p 1 y + p 2 y ) ; v b . x += m b * ( p 1 x + p 2 x ) ; v b . y += m b * ( p 1 y + p 2 y ) ; w a -= i a * ( cp 1 r a . x * p 1 y - cp 1 r a . y * p 1 x + ( cp 2 r a . x * p 2 y - cp 2 r a . y * p 2 x ) ) ; w b += i b * ( cp 1 r b . x * p 1 y - cp 1 r b . y * p 1 x + ( cp 2 r b . x * p 2 y - cp 2 r b . y * p 2 x ) ) ; cp 1 . normal impulse = xx ; cp 2 . normal impulse = xy ; if ( debug solver ) { vec 2 dv 1 = v b . add ( vec 2 . cross ( w b , cp 1 r b ) . sub local ( v a ) . sub local ( vec 2 . cross ( w a , cp 1 r a ) ) ) ; vec 2 dv 2 = v b . add ( vec 2 . cross ( w b , cp 2 r b ) . sub local ( v a ) . sub local ( vec 2 . cross ( w a , cp 2 r a ) ) ) ; vn 1 = vec 2 . dot ( dv 1 , normal ) ; vn 2 = vec 2 . dot ( dv 2 , normal ) ; assert ( math utils . abs ( vn 1 - cp 1 . velocity bias ) < k error tol ) ; assert ( math utils . abs ( vn 2 - cp 2 . velocity bias ) < k error tol ) ; } break ; } xx = - cp 1 . normal mass * bx ; xy = 0.0f ; vn 1 = 0.0f ; vn 2 = vc . k . ex . y * xx + by ; if ( xx >= 0.0f && vn 2 >= 0.0f ) { float dx = xx - ax ; float dy = xy - ay ; float p 1 x = normalx * dx ; float p 1 y = normaly * dx ; float p 2 x = normalx * dy ; float p 2 y = normaly * dy ; v a . x -= m a * ( p 1 x + p 2 x ) ; v a . y -= m a * ( p 1 y + p 2 y ) ; v b . x += m b * ( p 1 x + p 2 x ) ; v b . y += m b * ( p 1 y + p 2 y ) ; w a -= i a * ( cp 1 r a . x * p 1 y - cp 1 r a . y * p 1 x + ( cp 2 r a . x * p 2 y - cp 2 r a . y * p 2 x ) ) ; w b += i b * ( cp 1 r b . x * p 1 y - cp 1 r b . y * p 1 x + ( cp 2 r b . x * p 2 y - cp 2 r b . y * p 2 x ) ) ; cp 1 . normal impulse = xx ; cp 2 . normal impulse = xy ; if ( debug solver ) { vec 2 dv 1 = v b . add ( vec 2 . cross ( w b , cp 1 r b ) . sub local ( v a ) . sub local ( vec 2 . cross ( w a , cp 1 r a ) ) ) ; vn 1 = vec 2 . dot ( dv 1 , normal ) ; assert ( math utils . abs ( vn 1 - cp 1 . velocity bias ) < k error tol ) ; } break ; } xx = 0.0f ; xy = - cp 2 . normal mass * by ; vn 1 = vc . k . ey . x * xy + bx ; vn 2 = 0.0f ; if ( xy >= 0.0f && vn 1 >= 0.0f ) { float dx = xx - ax ; float dy = xy - ay ; float p 1 x = normalx * dx ; float p 1 y = normaly * dx ; float p 2 x = normalx * dy ; float p 2 y = normaly * dy ; v a . x -= m a * ( p 1 x + p 2 x ) ; v a . y -= m a * ( p 1 y + p 2 y ) ; v b . x += m b * ( p 1 x + p 2 x ) ; v b . y += m b * ( p 1 y + p 2 y ) ; w a -= i a * ( cp 1 r a . x * p 1 y - cp 1 r a . y * p 1 x + ( cp 2 r a . x * p 2 y - cp 2 r a . y * p 2 x ) ) ; w b += i b * ( cp 1 r b . x * p 1 y - cp 1 r b . y * p 1 x + ( cp 2 r b . x * p 2 y - cp 2 r b . y * p 2 x ) ) ; cp 1 . normal impulse = xx ; cp 2 . normal impulse = xy ; if ( debug solver ) { vec 2 dv 2 = v b . add ( vec 2 . cross ( w b , cp 2 r b ) . sub local ( v a ) . sub local ( vec 2 . cross ( w a , cp 2 r a ) ) ) ; vn 2 = vec 2 . dot ( dv 2 , normal ) ; assert ( math utils . abs ( vn 2 - cp 2 . velocity bias ) < k error tol ) ; } break ; } xx = 0.0f ; xy = 0.0f ; vn 1 = bx ; vn 2 = by ; if ( vn 1 >= 0.0f && vn 2 >= 0.0f ) { float dx = xx - ax ; float dy = xy - ay ; float p 1 x = normalx * dx ; float p 1 y = normaly * dx ; float p 2 x = normalx * dy ; float p 2 y = normaly * dy ; v a . x -= m a * ( p 1 x + p 2 x ) ; v a . y -= m a * ( p 1 y + p 2 y ) ; v b . x += m b * ( p 1 x + p 2 x ) ; v b . y += m b * ( p 1 y + p 2 y ) ; w a -= i a * ( cp 1 r a . x * p 1 y - cp 1 r a . y * p 1 x + ( cp 2 r a . x * p 2 y - cp 2 r a . y * p 2 x ) ) ; w b += i b * ( cp 1 r b . x * p 1 y - cp 1 r b . y * p 1 x + ( cp 2 r b . x * p 2 y - cp 2 r b . y * p 2 x ) ) ; cp 1 . normal impulse = xx ; cp 2 . normal impulse = xy ; break ; } break ; } } m velocities [ index a ] . w = w a ; m velocities [ index b ] . w = w b ; } } <SENTENCE_END/>

velocity

<SENTENCE_START> { for ( int i = 0 ; i < m count ; ++ i ) { final contact velocity constraint vc = m velocity constraints [ i ] ; int index a = vc . index a ; int index b = vc . index b ; float m a = vc . inv mass a ; float m b = vc . inv mass b ; float i a = vc . inv ia ; float i b = vc . inv ib ; int point count = vc . point count ; vec 2 v a = m velocities [ index a ] . v ; float w a = m velocities [ index a ] . w ; vec 2 v b = m velocities [ index b ] . v ; float w b = m velocities [ index b ] . w ; vec 2 normal = vc . normal ; final float normalx = normal . x ; final float normaly = normal . y ; float tangentx = 1.0f * vc . normal . y ; float tangenty = - 1.0f * vc . normal . x ; final float friction = vc . friction ; assert ( point count == 1 || point count == 2 ) ; for ( int j = 0 ; j < point count ; ++ j ) { final velocity constraint point vcp = vc . points [ j ] ; final vec 2 a = vcp . r a ; float dvx = - w b * vcp . r b . y + v b . x - v a . x + w a * a . y ; float dvy = w b * vcp . r b . x + v b . y - v a . y - w a * a . x ; final float vt = dvx * tangentx + dvy * tangenty - vc . tangent speed ; float lambda = vcp . tangent mass * ( - vt ) ; final float max friction = friction * vcp . normal impulse ; final float new impulse = math utils . clamp ( vcp . tangent impulse + lambda , - max friction , max friction ) ; lambda = new impulse - vcp . tangent impulse ; vcp . tangent impulse = new impulse ; final float px = tangentx * lambda ; final float py = tangenty * lambda ; v a . x -= px * m a ; v a . y -= py * m a ; w a -= i a * ( vcp . r a . x * py - vcp . r a . y * px ) ; v b . x += px * m b ; v b . y += py * m b ; w b += i b * ( vcp . r b . x * py - vcp . r b . y * px ) ; } if ( vc . point count == 1 ) { final velocity constraint point vcp = vc . points [ 0 ] ; float dvx = - w b * vcp . r b . y + v b . x - v a . x + w a * vcp . r a . y ; float dvy = w b * vcp . r b . x + v b . y - v a . y - w a * vcp . r a . x ; final float vn = dvx * normalx + dvy * normaly ; float lambda = - vcp . normal mass * ( vn - vcp . velocity bias ) ; float a = vcp . normal impulse + lambda ; final float new impulse = ( a > 0.0f ? a : 0.0f ) ; lambda = new impulse - vcp . normal impulse ; vcp . normal impulse = new impulse ; float px = normalx * lambda ; float py = normaly * lambda ; v a . x -= px * m a ; v a . y -= py * m a ; w a -= i a * ( vcp . r a . x * py - vcp . r a . y * px ) ; v b . x += px * m b ; v b . y += py * m b ; w b += i b * ( vcp . r b . x * py - vcp . r b . y * px ) ; } else { final velocity constraint point cp 1 = vc . points [ 0 ] ; final velocity constraint point cp 2 = vc . points [ 1 ] ; final vec 2 cp 1 r a = cp 1 . r a ; final vec 2 cp 1 r b = cp 1 . r b ; final vec 2 cp 2 r a = cp 2 . r a ; final vec 2 cp 2 r b = cp 2 . r b ; float ax = cp 1 . normal impulse ; float ay = cp 2 . normal impulse ; assert ( ax >= 0.0f && ay >= 0.0f ) ; float dv 1 x = - w b * cp 1 r b . y + v b . x - v a . x + w a * cp 1 r a . y ; float dv 1 y = w b * cp 1 r b . x + v b . y - v a . y - w a * cp 1 r a . x ; float dv 2 x = - w b * cp 2 r b . y + v b . x - v a . x + w a * cp 2 r a . y ; float dv 2 y = w b * cp 2 r b . x + v b . y - v a . y - w a * cp 2 r a . x ; float vn 1 = dv 1 x * normalx + dv 1 y * normaly ; float vn 2 = dv 2 x * normalx + dv 2 y * normaly ; float bx = vn 1 - cp 1 . velocity bias ; float by = vn 2 - cp 2 . velocity bias ; mat 22 r = vc . k ; bx -= r . ex . x * ax + r . ey . x * ay ; by -= r . ex . y * ax + r . ey . y * ay ; for ( ; ; ) { mat 22 r 1 = vc . normal mass ; float xx = r 1 . ex . x * bx + r 1 . ey . x * by ; float xy = r 1 . ex . y * bx + r 1 . ey . y * by ; xx *= - 1 ; xy *= - 1 ; if ( xx >= 0.0f && xy >= 0.0f ) { float dx = xx - ax ; float dy = xy - ay ; float p 1 x = dx * normalx ; float p 1 y = dx * normaly ; float p 2 x = dy * normalx ; float p 2 y = dy * normaly ; v a . x -= m a * ( p 1 x + p 2 x ) ; v a . y -= m a * ( p 1 y + p 2 y ) ; v b . x += m b * ( p 1 x + p 2 x ) ; v b . y += m b * ( p 1 y + p 2 y ) ; w a -= i a * ( cp 1 r a . x * p 1 y - cp 1 r a . y * p 1 x + ( cp 2 r a . x * p 2 y - cp 2 r a . y * p 2 x ) ) ; w b += i b * ( cp 1 r b . x * p 1 y - cp 1 r b . y * p 1 x + ( cp 2 r b . x * p 2 y - cp 2 r b . y * p 2 x ) ) ; cp 1 . normal impulse = xx ; cp 2 . normal impulse = xy ; if ( debug solver ) { vec 2 dv 1 = v b . add ( vec 2 . cross ( w b , cp 1 r b ) . sub local ( v a ) . sub local ( vec 2 . cross ( w a , cp 1 r a ) ) ) ; vec 2 dv 2 = v b . add ( vec 2 . cross ( w b , cp 2 r b ) . sub local ( v a ) . sub local ( vec 2 . cross ( w a , cp 2 r a ) ) ) ; vn 1 = vec 2 . dot ( dv 1 , normal ) ; vn 2 = vec 2 . dot ( dv 2 , normal ) ; assert ( math utils . abs ( vn 1 - cp 1 . velocity bias ) < k error tol ) ; assert ( math utils . abs ( vn 2 - cp 2 . velocity bias ) < k error tol ) ; } break ; } xx = - cp 1 . normal mass * bx ; xy = 0.0f ; vn 1 = 0.0f ; vn 2 = vc . k . ex . y * xx + by ; if ( xx >= 0.0f && vn 2 >= 0.0f ) { float dx = xx - ax ; float dy = xy - ay ; float p 1 x = normalx * dx ; float p 1 y = normaly * dx ; float p 2 x = normalx * dy ; float p 2 y = normaly * dy ; v a . x -= m a * ( p 1 x + p 2 x ) ; v a . y -= m a * ( p 1 y + p 2 y ) ; v b . x += m b * ( p 1 x + p 2 x ) ; v b . y += m b * ( p 1 y + p 2 y ) ; w a -= i a * ( cp 1 r a . x * p 1 y - cp 1 r a . y * p 1 x + ( cp 2 r a . x * p 2 y - cp 2 r a . y * p 2 x ) ) ; w b += i b * ( cp 1 r b . x * p 1 y - cp 1 r b . y * p 1 x + ( cp 2 r b . x * p 2 y - cp 2 r b . y * p 2 x ) ) ; cp 1 . normal impulse = xx ; cp 2 . normal impulse = xy ; if ( debug solver ) { vec 2 dv 1 = v b . add ( vec 2 . cross ( w b , cp 1 r b ) . sub local ( v a ) . sub local ( vec 2 . cross ( w a , cp 1 r a ) ) ) ; vn 1 = vec 2 . dot ( dv 1 , normal ) ; assert ( math utils . abs ( vn 1 - cp 1 . velocity bias ) < k error tol ) ; } break ; } xx = 0.0f ; xy = - cp 2 . normal mass * by ; vn 1 = vc . k . ey . x * xy + bx ; vn 2 = 0.0f ; if ( xy >= 0.0f && vn 1 >= 0.0f ) { float dx = xx - ax ; float dy = xy - ay ; float p 1 x = normalx * dx ; float p 1 y = normaly * dx ; float p 2 x = normalx * dy ; float p 2 y = normaly * dy ; v a . x -= m a * ( p 1 x + p 2 x ) ; v a . y -= m a * ( p 1 y + p 2 y ) ; v b . x += m b * ( p 1 x + p 2 x ) ; v b . y += m b * ( p 1 y + p 2 y ) ; w a -= i a * ( cp 1 r a . x * p 1 y - cp 1 r a . y * p 1 x + ( cp 2 r a . x * p 2 y - cp 2 r a . y * p 2 x ) ) ; w b += i b * ( cp 1 r b . x * p 1 y - cp 1 r b . y * p 1 x + ( cp 2 r b . x * p 2 y - cp 2 r b . y * p 2 x ) ) ; cp 1 . normal impulse = xx ; cp 2 . normal impulse = xy ; if ( debug solver ) { vec 2 dv 2 = v b . add ( vec 2 . cross ( w b , cp 2 r b ) . sub local ( v a ) . sub local ( vec 2 . cross ( w a , cp 2 r a ) ) ) ; vn 2 = vec 2 . dot ( dv 2 , normal ) ; assert ( math utils . abs ( vn 2 - cp 2 . velocity bias ) < k error tol ) ; } break ; } xx = 0.0f ; xy = 0.0f ; vn 1 = bx ; vn 2 = by ; if ( vn 1 >= 0.0f && vn 2 >= 0.0f ) { float dx = xx - ax ; float dy = xy - ay ; float p 1 x = normalx * dx ; float p 1 y = normaly * dx ; float p 2 x = normalx * dy ; float p 2 y = normaly * dy ; v a . x -= m a * ( p 1 x + p 2 x ) ; v a . y -= m a * ( p 1 y + p 2 y ) ; v b . x += m b * ( p 1 x + p 2 x ) ; v b . y += m b * ( p 1 y + p 2 y ) ; w a -= i a * ( cp 1 r a . x * p 1 y - cp 1 r a . y * p 1 x + ( cp 2 r a . x * p 2 y - cp 2 r a . y * p 2 x ) ) ; w b += i b * ( cp 1 r b . x * p 1 y - cp 1 r b . y * p 1 x + ( cp 2 r b . x * p 2 y - cp 2 r b . y * p 2 x ) ) ; cp 1 . normal impulse = xx ; cp 2 . normal impulse = xy ; break ; } break ; } } m velocities [ index a ] . w = w a ; m velocities [ index b ] . w = w b ; } } <SENTENCE_END/>

(Copy Probability: 4.3%)

<SENTENCE_START> { for ( int i = 0 ; i < m count ; ++ i ) { final contact velocity constraint vc = m velocity constraints [ i ] ; int index a = vc . index a ; int index b = vc . index b ; float m a = vc . inv mass a ; float m b = vc . inv mass b ; float i a = vc . inv ia ; float i b = vc . inv ib ; int point count = vc . point count ; vec 2 v a = m velocities [ index a ] . v ; float w a = m velocities [ index a ] . w ; vec 2 v b = m velocities [ index b ] . v ; float w b = m velocities [ index b ] . w ; vec 2 normal = vc . normal ; final float normalx = normal . x ; final float normaly = normal . y ; float tangentx = 1.0f * vc . normal . y ; float tangenty = - 1.0f * vc . normal . x ; final float friction = vc . friction ; assert ( point count == 1 || point count == 2 ) ; for ( int j = 0 ; j < point count ; ++ j ) { final velocity constraint point vcp = vc . points [ j ] ; final vec 2 a = vcp . r a ; float dvx = - w b * vcp . r b . y + v b . x - v a . x + w a * a . y ; float dvy = w b * vcp . r b . x + v b . y - v a . y - w a * a . x ; final float vt = dvx * tangentx + dvy * tangenty - vc . tangent speed ; float lambda = vcp . tangent mass * ( - vt ) ; final float max friction = friction * vcp . normal impulse ; final float new impulse = math utils . clamp ( vcp . tangent impulse + lambda , - max friction , max friction ) ; lambda = new impulse - vcp . tangent impulse ; vcp . tangent impulse = new impulse ; final float px = tangentx * lambda ; final float py = tangenty * lambda ; v a . x -= px * m a ; v a . y -= py * m a ; w a -= i a * ( vcp . r a . x * py - vcp . r a . y * px ) ; v b . x += px * m b ; v b . y += py * m b ; w b += i b * ( vcp . r b . x * py - vcp . r b . y * px ) ; } if ( vc . point count == 1 ) { final velocity constraint point vcp = vc . points [ 0 ] ; float dvx = - w b * vcp . r b . y + v b . x - v a . x + w a * vcp . r a . y ; float dvy = w b * vcp . r b . x + v b . y - v a . y - w a * vcp . r a . x ; final float vn = dvx * normalx + dvy * normaly ; float lambda = - vcp . normal mass * ( vn - vcp . velocity bias ) ; float a = vcp . normal impulse + lambda ; final float new impulse = ( a > 0.0f ? a : 0.0f ) ; lambda = new impulse - vcp . normal impulse ; vcp . normal impulse = new impulse ; float px = normalx * lambda ; float py = normaly * lambda ; v a . x -= px * m a ; v a . y -= py * m a ; w a -= i a * ( vcp . r a . x * py - vcp . r a . y * px ) ; v b . x += px * m b ; v b . y += py * m b ; w b += i b * ( vcp . r b . x * py - vcp . r b . y * px ) ; } else { final velocity constraint point cp 1 = vc . points [ 0 ] ; final velocity constraint point cp 2 = vc . points [ 1 ] ; final vec 2 cp 1 r a = cp 1 . r a ; final vec 2 cp 1 r b = cp 1 . r b ; final vec 2 cp 2 r a = cp 2 . r a ; final vec 2 cp 2 r b = cp 2 . r b ; float ax = cp 1 . normal impulse ; float ay = cp 2 . normal impulse ; assert ( ax >= 0.0f && ay >= 0.0f ) ; float dv 1 x = - w b * cp 1 r b . y + v b . x - v a . x + w a * cp 1 r a . y ; float dv 1 y = w b * cp 1 r b . x + v b . y - v a . y - w a * cp 1 r a . x ; float dv 2 x = - w b * cp 2 r b . y + v b . x - v a . x + w a * cp 2 r a . y ; float dv 2 y = w b * cp 2 r b . x + v b . y - v a . y - w a * cp 2 r a . x ; float vn 1 = dv 1 x * normalx + dv 1 y * normaly ; float vn 2 = dv 2 x * normalx + dv 2 y * normaly ; float bx = vn 1 - cp 1 . velocity bias ; float by = vn 2 - cp 2 . velocity bias ; mat 22 r = vc . k ; bx -= r . ex . x * ax + r . ey . x * ay ; by -= r . ex . y * ax + r . ey . y * ay ; for ( ; ; ) { mat 22 r 1 = vc . normal mass ; float xx = r 1 . ex . x * bx + r 1 . ey . x * by ; float xy = r 1 . ex . y * bx + r 1 . ey . y * by ; xx *= - 1 ; xy *= - 1 ; if ( xx >= 0.0f && xy >= 0.0f ) { float dx = xx - ax ; float dy = xy - ay ; float p 1 x = dx * normalx ; float p 1 y = dx * normaly ; float p 2 x = dy * normalx ; float p 2 y = dy * normaly ; v a . x -= m a * ( p 1 x + p 2 x ) ; v a . y -= m a * ( p 1 y + p 2 y ) ; v b . x += m b * ( p 1 x + p 2 x ) ; v b . y += m b * ( p 1 y + p 2 y ) ; w a -= i a * ( cp 1 r a . x * p 1 y - cp 1 r a . y * p 1 x + ( cp 2 r a . x * p 2 y - cp 2 r a . y * p 2 x ) ) ; w b += i b * ( cp 1 r b . x * p 1 y - cp 1 r b . y * p 1 x + ( cp 2 r b . x * p 2 y - cp 2 r b . y * p 2 x ) ) ; cp 1 . normal impulse = xx ; cp 2 . normal impulse = xy ; if ( debug solver ) { vec 2 dv 1 = v b . add ( vec 2 . cross ( w b , cp 1 r b ) . sub local ( v a ) . sub local ( vec 2 . cross ( w a , cp 1 r a ) ) ) ; vec 2 dv 2 = v b . add ( vec 2 . cross ( w b , cp 2 r b ) . sub local ( v a ) . sub local ( vec 2 . cross ( w a , cp 2 r a ) ) ) ; vn 1 = vec 2 . dot ( dv 1 , normal ) ; vn 2 = vec 2 . dot ( dv 2 , normal ) ; assert ( math utils . abs ( vn 1 - cp 1 . velocity bias ) < k error tol ) ; assert ( math utils . abs ( vn 2 - cp 2 . velocity bias ) < k error tol ) ; } break ; } xx = - cp 1 . normal mass * bx ; xy = 0.0f ; vn 1 = 0.0f ; vn 2 = vc . k . ex . y * xx + by ; if ( xx >= 0.0f && vn 2 >= 0.0f ) { float dx = xx - ax ; float dy = xy - ay ; float p 1 x = normalx * dx ; float p 1 y = normaly * dx ; float p 2 x = normalx * dy ; float p 2 y = normaly * dy ; v a . x -= m a * ( p 1 x + p 2 x ) ; v a . y -= m a * ( p 1 y + p 2 y ) ; v b . x += m b * ( p 1 x + p 2 x ) ; v b . y += m b * ( p 1 y + p 2 y ) ; w a -= i a * ( cp 1 r a . x * p 1 y - cp 1 r a . y * p 1 x + ( cp 2 r a . x * p 2 y - cp 2 r a . y * p 2 x ) ) ; w b += i b * ( cp 1 r b . x * p 1 y - cp 1 r b . y * p 1 x + ( cp 2 r b . x * p 2 y - cp 2 r b . y * p 2 x ) ) ; cp 1 . normal impulse = xx ; cp 2 . normal impulse = xy ; if ( debug solver ) { vec 2 dv 1 = v b . add ( vec 2 . cross ( w b , cp 1 r b ) . sub local ( v a ) . sub local ( vec 2 . cross ( w a , cp 1 r a ) ) ) ; vn 1 = vec 2 . dot ( dv 1 , normal ) ; assert ( math utils . abs ( vn 1 - cp 1 . velocity bias ) < k error tol ) ; } break ; } xx = 0.0f ; xy = - cp 2 . normal mass * by ; vn 1 = vc . k . ey . x * xy + bx ; vn 2 = 0.0f ; if ( xy >= 0.0f && vn 1 >= 0.0f ) { float dx = xx - ax ; float dy = xy - ay ; float p 1 x = normalx * dx ; float p 1 y = normaly * dx ; float p 2 x = normalx * dy ; float p 2 y = normaly * dy ; v a . x -= m a * ( p 1 x + p 2 x ) ; v a . y -= m a * ( p 1 y + p 2 y ) ; v b . x += m b * ( p 1 x + p 2 x ) ; v b . y += m b * ( p 1 y + p 2 y ) ; w a -= i a * ( cp 1 r a . x * p 1 y - cp 1 r a . y * p 1 x + ( cp 2 r a . x * p 2 y - cp 2 r a . y * p 2 x ) ) ; w b += i b * ( cp 1 r b . x * p 1 y - cp 1 r b . y * p 1 x + ( cp 2 r b . x * p 2 y - cp 2 r b . y * p 2 x ) ) ; cp 1 . normal impulse = xx ; cp 2 . normal impulse = xy ; if ( debug solver ) { vec 2 dv 2 = v b . add ( vec 2 . cross ( w b , cp 2 r b ) . sub local ( v a ) . sub local ( vec 2 . cross ( w a , cp 2 r a ) ) ) ; vn 2 = vec 2 . dot ( dv 2 , normal ) ; assert ( math utils . abs ( vn 2 - cp 2 . velocity bias ) < k error tol ) ; } break ; } xx = 0.0f ; xy = 0.0f ; vn 1 = bx ; vn 2 = by ; if ( vn 1 >= 0.0f && vn 2 >= 0.0f ) { float dx = xx - ax ; float dy = xy - ay ; float p 1 x = normalx * dx ; float p 1 y = normaly * dx ; float p 2 x = normalx * dy ; float p 2 y = normaly * dy ; v a . x -= m a * ( p 1 x + p 2 x ) ; v a . y -= m a * ( p 1 y + p 2 y ) ; v b . x += m b * ( p 1 x + p 2 x ) ; v b . y += m b * ( p 1 y + p 2 y ) ; w a -= i a * ( cp 1 r a . x * p 1 y - cp 1 r a . y * p 1 x + ( cp 2 r a . x * p 2 y - cp 2 r a . y * p 2 x ) ) ; w b += i b * ( cp 1 r b . x * p 1 y - cp 1 r b . y * p 1 x + ( cp 2 r b . x * p 2 y - cp 2 r b . y * p 2 x ) ) ; cp 1 . normal impulse = xx ; cp 2 . normal impulse = xy ; break ; } break ; } } m velocities [ index a ] . w = w a ; m velocities [ index b ] . w = w b ; } } <SENTENCE_END/>

constraints

<SENTENCE_START> { for ( int i = 0 ; i < m count ; ++ i ) { final contact velocity constraint vc = m velocity constraints [ i ] ; int index a = vc . index a ; int index b = vc . index b ; float m a = vc . inv mass a ; float m b = vc . inv mass b ; float i a = vc . inv ia ; float i b = vc . inv ib ; int point count = vc . point count ; vec 2 v a = m velocities [ index a ] . v ; float w a = m velocities [ index a ] . w ; vec 2 v b = m velocities [ index b ] . v ; float w b = m velocities [ index b ] . w ; vec 2 normal = vc . normal ; final float normalx = normal . x ; final float normaly = normal . y ; float tangentx = 1.0f * vc . normal . y ; float tangenty = - 1.0f * vc . normal . x ; final float friction = vc . friction ; assert ( point count == 1 || point count == 2 ) ; for ( int j = 0 ; j < point count ; ++ j ) { final velocity constraint point vcp = vc . points [ j ] ; final vec 2 a = vcp . r a ; float dvx = - w b * vcp . r b . y + v b . x - v a . x + w a * a . y ; float dvy = w b * vcp . r b . x + v b . y - v a . y - w a * a . x ; final float vt = dvx * tangentx + dvy * tangenty - vc . tangent speed ; float lambda = vcp . tangent mass * ( - vt ) ; final float max friction = friction * vcp . normal impulse ; final float new impulse = math utils . clamp ( vcp . tangent impulse + lambda , - max friction , max friction ) ; lambda = new impulse - vcp . tangent impulse ; vcp . tangent impulse = new impulse ; final float px = tangentx * lambda ; final float py = tangenty * lambda ; v a . x -= px * m a ; v a . y -= py * m a ; w a -= i a * ( vcp . r a . x * py - vcp . r a . y * px ) ; v b . x += px * m b ; v b . y += py * m b ; w b += i b * ( vcp . r b . x * py - vcp . r b . y * px ) ; } if ( vc . point count == 1 ) { final velocity constraint point vcp = vc . points [ 0 ] ; float dvx = - w b * vcp . r b . y + v b . x - v a . x + w a * vcp . r a . y ; float dvy = w b * vcp . r b . x + v b . y - v a . y - w a * vcp . r a . x ; final float vn = dvx * normalx + dvy * normaly ; float lambda = - vcp . normal mass * ( vn - vcp . velocity bias ) ; float a = vcp . normal impulse + lambda ; final float new impulse = ( a > 0.0f ? a : 0.0f ) ; lambda = new impulse - vcp . normal impulse ; vcp . normal impulse = new impulse ; float px = normalx * lambda ; float py = normaly * lambda ; v a . x -= px * m a ; v a . y -= py * m a ; w a -= i a * ( vcp . r a . x * py - vcp . r a . y * px ) ; v b . x += px * m b ; v b . y += py * m b ; w b += i b * ( vcp . r b . x * py - vcp . r b . y * px ) ; } else { final velocity constraint point cp 1 = vc . points [ 0 ] ; final velocity constraint point cp 2 = vc . points [ 1 ] ; final vec 2 cp 1 r a = cp 1 . r a ; final vec 2 cp 1 r b = cp 1 . r b ; final vec 2 cp 2 r a = cp 2 . r a ; final vec 2 cp 2 r b = cp 2 . r b ; float ax = cp 1 . normal impulse ; float ay = cp 2 . normal impulse ; assert ( ax >= 0.0f && ay >= 0.0f ) ; float dv 1 x = - w b * cp 1 r b . y + v b . x - v a . x + w a * cp 1 r a . y ; float dv 1 y = w b * cp 1 r b . x + v b . y - v a . y - w a * cp 1 r a . x ; float dv 2 x = - w b * cp 2 r b . y + v b . x - v a . x + w a * cp 2 r a . y ; float dv 2 y = w b * cp 2 r b . x + v b . y - v a . y - w a * cp 2 r a . x ; float vn 1 = dv 1 x * normalx + dv 1 y * normaly ; float vn 2 = dv 2 x * normalx + dv 2 y * normaly ; float bx = vn 1 - cp 1 . velocity bias ; float by = vn 2 - cp 2 . velocity bias ; mat 22 r = vc . k ; bx -= r . ex . x * ax + r . ey . x * ay ; by -= r . ex . y * ax + r . ey . y * ay ; for ( ; ; ) { mat 22 r 1 = vc . normal mass ; float xx = r 1 . ex . x * bx + r 1 . ey . x * by ; float xy = r 1 . ex . y * bx + r 1 . ey . y * by ; xx *= - 1 ; xy *= - 1 ; if ( xx >= 0.0f && xy >= 0.0f ) { float dx = xx - ax ; float dy = xy - ay ; float p 1 x = dx * normalx ; float p 1 y = dx * normaly ; float p 2 x = dy * normalx ; float p 2 y = dy * normaly ; v a . x -= m a * ( p 1 x + p 2 x ) ; v a . y -= m a * ( p 1 y + p 2 y ) ; v b . x += m b * ( p 1 x + p 2 x ) ; v b . y += m b * ( p 1 y + p 2 y ) ; w a -= i a * ( cp 1 r a . x * p 1 y - cp 1 r a . y * p 1 x + ( cp 2 r a . x * p 2 y - cp 2 r a . y * p 2 x ) ) ; w b += i b * ( cp 1 r b . x * p 1 y - cp 1 r b . y * p 1 x + ( cp 2 r b . x * p 2 y - cp 2 r b . y * p 2 x ) ) ; cp 1 . normal impulse = xx ; cp 2 . normal impulse = xy ; if ( debug solver ) { vec 2 dv 1 = v b . add ( vec 2 . cross ( w b , cp 1 r b ) . sub local ( v a ) . sub local ( vec 2 . cross ( w a , cp 1 r a ) ) ) ; vec 2 dv 2 = v b . add ( vec 2 . cross ( w b , cp 2 r b ) . sub local ( v a ) . sub local ( vec 2 . cross ( w a , cp 2 r a ) ) ) ; vn 1 = vec 2 . dot ( dv 1 , normal ) ; vn 2 = vec 2 . dot ( dv 2 , normal ) ; assert ( math utils . abs ( vn 1 - cp 1 . velocity bias ) < k error tol ) ; assert ( math utils . abs ( vn 2 - cp 2 . velocity bias ) < k error tol ) ; } break ; } xx = - cp 1 . normal mass * bx ; xy = 0.0f ; vn 1 = 0.0f ; vn 2 = vc . k . ex . y * xx + by ; if ( xx >= 0.0f && vn 2 >= 0.0f ) { float dx = xx - ax ; float dy = xy - ay ; float p 1 x = normalx * dx ; float p 1 y = normaly * dx ; float p 2 x = normalx * dy ; float p 2 y = normaly * dy ; v a . x -= m a * ( p 1 x + p 2 x ) ; v a . y -= m a * ( p 1 y + p 2 y ) ; v b . x += m b * ( p 1 x + p 2 x ) ; v b . y += m b * ( p 1 y + p 2 y ) ; w a -= i a * ( cp 1 r a . x * p 1 y - cp 1 r a . y * p 1 x + ( cp 2 r a . x * p 2 y - cp 2 r a . y * p 2 x ) ) ; w b += i b * ( cp 1 r b . x * p 1 y - cp 1 r b . y * p 1 x + ( cp 2 r b . x * p 2 y - cp 2 r b . y * p 2 x ) ) ; cp 1 . normal impulse = xx ; cp 2 . normal impulse = xy ; if ( debug solver ) { vec 2 dv 1 = v b . add ( vec 2 . cross ( w b , cp 1 r b ) . sub local ( v a ) . sub local ( vec 2 . cross ( w a , cp 1 r a ) ) ) ; vn 1 = vec 2 . dot ( dv 1 , normal ) ; assert ( math utils . abs ( vn 1 - cp 1 . velocity bias ) < k error tol ) ; } break ; } xx = 0.0f ; xy = - cp 2 . normal mass * by ; vn 1 = vc . k . ey . x * xy + bx ; vn 2 = 0.0f ; if ( xy >= 0.0f && vn 1 >= 0.0f ) { float dx = xx - ax ; float dy = xy - ay ; float p 1 x = normalx * dx ; float p 1 y = normaly * dx ; float p 2 x = normalx * dy ; float p 2 y = normaly * dy ; v a . x -= m a * ( p 1 x + p 2 x ) ; v a . y -= m a * ( p 1 y + p 2 y ) ; v b . x += m b * ( p 1 x + p 2 x ) ; v b . y += m b * ( p 1 y + p 2 y ) ; w a -= i a * ( cp 1 r a . x * p 1 y - cp 1 r a . y * p 1 x + ( cp 2 r a . x * p 2 y - cp 2 r a . y * p 2 x ) ) ; w b += i b * ( cp 1 r b . x * p 1 y - cp 1 r b . y * p 1 x + ( cp 2 r b . x * p 2 y - cp 2 r b . y * p 2 x ) ) ; cp 1 . normal impulse = xx ; cp 2 . normal impulse = xy ; if ( debug solver ) { vec 2 dv 2 = v b . add ( vec 2 . cross ( w b , cp 2 r b ) . sub local ( v a ) . sub local ( vec 2 . cross ( w a , cp 2 r a ) ) ) ; vn 2 = vec 2 . dot ( dv 2 , normal ) ; assert ( math utils . abs ( vn 2 - cp 2 . velocity bias ) < k error tol ) ; } break ; } xx = 0.0f ; xy = 0.0f ; vn 1 = bx ; vn 2 = by ; if ( vn 1 >= 0.0f && vn 2 >= 0.0f ) { float dx = xx - ax ; float dy = xy - ay ; float p 1 x = normalx * dx ; float p 1 y = normaly * dx ; float p 2 x = normalx * dy ; float p 2 y = normaly * dy ; v a . x -= m a * ( p 1 x + p 2 x ) ; v a . y -= m a * ( p 1 y + p 2 y ) ; v b . x += m b * ( p 1 x + p 2 x ) ; v b . y += m b * ( p 1 y + p 2 y ) ; w a -= i a * ( cp 1 r a . x * p 1 y - cp 1 r a . y * p 1 x + ( cp 2 r a . x * p 2 y - cp 2 r a . y * p 2 x ) ) ; w b += i b * ( cp 1 r b . x * p 1 y - cp 1 r b . y * p 1 x + ( cp 2 r b . x * p 2 y - cp 2 r b . y * p 2 x ) ) ; cp 1 . normal impulse = xx ; cp 2 . normal impulse = xy ; break ; } break ; } } m velocities [ index a ] . w = w a ; m velocities [ index b ] . w = w b ; } } <SENTENCE_END/>

(Copy Probability: 4.0%)

<SENTENCE_START> { for ( int i = 0 ; i < m count ; ++ i ) { final contact velocity constraint vc = m velocity constraints [ i ] ; int index a = vc . index a ; int index b = vc . index b ; float m a = vc . inv mass a ; float m b = vc . inv mass b ; float i a = vc . inv ia ; float i b = vc . inv ib ; int point count = vc . point count ; vec 2 v a = m velocities [ index a ] . v ; float w a = m velocities [ index a ] . w ; vec 2 v b = m velocities [ index b ] . v ; float w b = m velocities [ index b ] . w ; vec 2 normal = vc . normal ; final float normalx = normal . x ; final float normaly = normal . y ; float tangentx = 1.0f * vc . normal . y ; float tangenty = - 1.0f * vc . normal . x ; final float friction = vc . friction ; assert ( point count == 1 || point count == 2 ) ; for ( int j = 0 ; j < point count ; ++ j ) { final velocity constraint point vcp = vc . points [ j ] ; final vec 2 a = vcp . r a ; float dvx = - w b * vcp . r b . y + v b . x - v a . x + w a * a . y ; float dvy = w b * vcp . r b . x + v b . y - v a . y - w a * a . x ; final float vt = dvx * tangentx + dvy * tangenty - vc . tangent speed ; float lambda = vcp . tangent mass * ( - vt ) ; final float max friction = friction * vcp . normal impulse ; final float new impulse = math utils . clamp ( vcp . tangent impulse + lambda , - max friction , max friction ) ; lambda = new impulse - vcp . tangent impulse ; vcp . tangent impulse = new impulse ; final float px = tangentx * lambda ; final float py = tangenty * lambda ; v a . x -= px * m a ; v a . y -= py * m a ; w a -= i a * ( vcp . r a . x * py - vcp . r a . y * px ) ; v b . x += px * m b ; v b . y += py * m b ; w b += i b * ( vcp . r b . x * py - vcp . r b . y * px ) ; } if ( vc . point count == 1 ) { final velocity constraint point vcp = vc . points [ 0 ] ; float dvx = - w b * vcp . r b . y + v b . x - v a . x + w a * vcp . r a . y ; float dvy = w b * vcp . r b . x + v b . y - v a . y - w a * vcp . r a . x ; final float vn = dvx * normalx + dvy * normaly ; float lambda = - vcp . normal mass * ( vn - vcp . velocity bias ) ; float a = vcp . normal impulse + lambda ; final float new impulse = ( a > 0.0f ? a : 0.0f ) ; lambda = new impulse - vcp . normal impulse ; vcp . normal impulse = new impulse ; float px = normalx * lambda ; float py = normaly * lambda ; v a . x -= px * m a ; v a . y -= py * m a ; w a -= i a * ( vcp . r a . x * py - vcp . r a . y * px ) ; v b . x += px * m b ; v b . y += py * m b ; w b += i b * ( vcp . r b . x * py - vcp . r b . y * px ) ; } else { final velocity constraint point cp 1 = vc . points [ 0 ] ; final velocity constraint point cp 2 = vc . points [ 1 ] ; final vec 2 cp 1 r a = cp 1 . r a ; final vec 2 cp 1 r b = cp 1 . r b ; final vec 2 cp 2 r a = cp 2 . r a ; final vec 2 cp 2 r b = cp 2 . r b ; float ax = cp 1 . normal impulse ; float ay = cp 2 . normal impulse ; assert ( ax >= 0.0f && ay >= 0.0f ) ; float dv 1 x = - w b * cp 1 r b . y + v b . x - v a . x + w a * cp 1 r a . y ; float dv 1 y = w b * cp 1 r b . x + v b . y - v a . y - w a * cp 1 r a . x ; float dv 2 x = - w b * cp 2 r b . y + v b . x - v a . x + w a * cp 2 r a . y ; float dv 2 y = w b * cp 2 r b . x + v b . y - v a . y - w a * cp 2 r a . x ; float vn 1 = dv 1 x * normalx + dv 1 y * normaly ; float vn 2 = dv 2 x * normalx + dv 2 y * normaly ; float bx = vn 1 - cp 1 . velocity bias ; float by = vn 2 - cp 2 . velocity bias ; mat 22 r = vc . k ; bx -= r . ex . x * ax + r . ey . x * ay ; by -= r . ex . y * ax + r . ey . y * ay ; for ( ; ; ) { mat 22 r 1 = vc . normal mass ; float xx = r 1 . ex . x * bx + r 1 . ey . x * by ; float xy = r 1 . ex . y * bx + r 1 . ey . y * by ; xx *= - 1 ; xy *= - 1 ; if ( xx >= 0.0f && xy >= 0.0f ) { float dx = xx - ax ; float dy = xy - ay ; float p 1 x = dx * normalx ; float p 1 y = dx * normaly ; float p 2 x = dy * normalx ; float p 2 y = dy * normaly ; v a . x -= m a * ( p 1 x + p 2 x ) ; v a . y -= m a * ( p 1 y + p 2 y ) ; v b . x += m b * ( p 1 x + p 2 x ) ; v b . y += m b * ( p 1 y + p 2 y ) ; w a -= i a * ( cp 1 r a . x * p 1 y - cp 1 r a . y * p 1 x + ( cp 2 r a . x * p 2 y - cp 2 r a . y * p 2 x ) ) ; w b += i b * ( cp 1 r b . x * p 1 y - cp 1 r b . y * p 1 x + ( cp 2 r b . x * p 2 y - cp 2 r b . y * p 2 x ) ) ; cp 1 . normal impulse = xx ; cp 2 . normal impulse = xy ; if ( debug solver ) { vec 2 dv 1 = v b . add ( vec 2 . cross ( w b , cp 1 r b ) . sub local ( v a ) . sub local ( vec 2 . cross ( w a , cp 1 r a ) ) ) ; vec 2 dv 2 = v b . add ( vec 2 . cross ( w b , cp 2 r b ) . sub local ( v a ) . sub local ( vec 2 . cross ( w a , cp 2 r a ) ) ) ; vn 1 = vec 2 . dot ( dv 1 , normal ) ; vn 2 = vec 2 . dot ( dv 2 , normal ) ; assert ( math utils . abs ( vn 1 - cp 1 . velocity bias ) < k error tol ) ; assert ( math utils . abs ( vn 2 - cp 2 . velocity bias ) < k error tol ) ; } break ; } xx = - cp 1 . normal mass * bx ; xy = 0.0f ; vn 1 = 0.0f ; vn 2 = vc . k . ex . y * xx + by ; if ( xx >= 0.0f && vn 2 >= 0.0f ) { float dx = xx - ax ; float dy = xy - ay ; float p 1 x = normalx * dx ; float p 1 y = normaly * dx ; float p 2 x = normalx * dy ; float p 2 y = normaly * dy ; v a . x -= m a * ( p 1 x + p 2 x ) ; v a . y -= m a * ( p 1 y + p 2 y ) ; v b . x += m b * ( p 1 x + p 2 x ) ; v b . y += m b * ( p 1 y + p 2 y ) ; w a -= i a * ( cp 1 r a . x * p 1 y - cp 1 r a . y * p 1 x + ( cp 2 r a . x * p 2 y - cp 2 r a . y * p 2 x ) ) ; w b += i b * ( cp 1 r b . x * p 1 y - cp 1 r b . y * p 1 x + ( cp 2 r b . x * p 2 y - cp 2 r b . y * p 2 x ) ) ; cp 1 . normal impulse = xx ; cp 2 . normal impulse = xy ; if ( debug solver ) { vec 2 dv 1 = v b . add ( vec 2 . cross ( w b , cp 1 r b ) . sub local ( v a ) . sub local ( vec 2 . cross ( w a , cp 1 r a ) ) ) ; vn 1 = vec 2 . dot ( dv 1 , normal ) ; assert ( math utils . abs ( vn 1 - cp 1 . velocity bias ) < k error tol ) ; } break ; } xx = 0.0f ; xy = - cp 2 . normal mass * by ; vn 1 = vc . k . ey . x * xy + bx ; vn 2 = 0.0f ; if ( xy >= 0.0f && vn 1 >= 0.0f ) { float dx = xx - ax ; float dy = xy - ay ; float p 1 x = normalx * dx ; float p 1 y = normaly * dx ; float p 2 x = normalx * dy ; float p 2 y = normaly * dy ; v a . x -= m a * ( p 1 x + p 2 x ) ; v a . y -= m a * ( p 1 y + p 2 y ) ; v b . x += m b * ( p 1 x + p 2 x ) ; v b . y += m b * ( p 1 y + p 2 y ) ; w a -= i a * ( cp 1 r a . x * p 1 y - cp 1 r a . y * p 1 x + ( cp 2 r a . x * p 2 y - cp 2 r a . y * p 2 x ) ) ; w b += i b * ( cp 1 r b . x * p 1 y - cp 1 r b . y * p 1 x + ( cp 2 r b . x * p 2 y - cp 2 r b . y * p 2 x ) ) ; cp 1 . normal impulse = xx ; cp 2 . normal impulse = xy ; if ( debug solver ) { vec 2 dv 2 = v b . add ( vec 2 . cross ( w b , cp 2 r b ) . sub local ( v a ) . sub local ( vec 2 . cross ( w a , cp 2 r a ) ) ) ; vn 2 = vec 2 . dot ( dv 2 , normal ) ; assert ( math utils . abs ( vn 2 - cp 2 . velocity bias ) < k error tol ) ; } break ; } xx = 0.0f ; xy = 0.0f ; vn 1 = bx ; vn 2 = by ; if ( vn 1 >= 0.0f && vn 2 >= 0.0f ) { float dx = xx - ax ; float dy = xy - ay ; float p 1 x = normalx * dx ; float p 1 y = normaly * dx ; float p 2 x = normalx * dy ; float p 2 y = normaly * dy ; v a . x -= m a * ( p 1 x + p 2 x ) ; v a . y -= m a * ( p 1 y + p 2 y ) ; v b . x += m b * ( p 1 x + p 2 x ) ; v b . y += m b * ( p 1 y + p 2 y ) ; w a -= i a * ( cp 1 r a . x * p 1 y - cp 1 r a . y * p 1 x + ( cp 2 r a . x * p 2 y - cp 2 r a . y * p 2 x ) ) ; w b += i b * ( cp 1 r b . x * p 1 y - cp 1 r b . y * p 1 x + ( cp 2 r b . x * p 2 y - cp 2 r b . y * p 2 x ) ) ; cp 1 . normal impulse = xx ; cp 2 . normal impulse = xy ; break ; } break ; } } m velocities [ index a ] . w = w a ; m velocities [ index b ] . w = w b ; } } <SENTENCE_END/>

%END%

<SENTENCE_START> { for ( int i = 0 ; i < m count ; ++ i ) { final contact velocity constraint vc = m velocity constraints [ i ] ; int index a = vc . index a ; int index b = vc . index b ; float m a = vc . inv mass a ; float m b = vc . inv mass b ; float i a = vc . inv ia ; float i b = vc . inv ib ; int point count = vc . point count ; vec 2 v a = m velocities [ index a ] . v ; float w a = m velocities [ index a ] . w ; vec 2 v b = m velocities [ index b ] . v ; float w b = m velocities [ index b ] . w ; vec 2 normal = vc . normal ; final float normalx = normal . x ; final float normaly = normal . y ; float tangentx = 1.0f * vc . normal . y ; float tangenty = - 1.0f * vc . normal . x ; final float friction = vc . friction ; assert ( point count == 1 || point count == 2 ) ; for ( int j = 0 ; j < point count ; ++ j ) { final velocity constraint point vcp = vc . points [ j ] ; final vec 2 a = vcp . r a ; float dvx = - w b * vcp . r b . y + v b . x - v a . x + w a * a . y ; float dvy = w b * vcp . r b . x + v b . y - v a . y - w a * a . x ; final float vt = dvx * tangentx + dvy * tangenty - vc . tangent speed ; float lambda = vcp . tangent mass * ( - vt ) ; final float max friction = friction * vcp . normal impulse ; final float new impulse = math utils . clamp ( vcp . tangent impulse + lambda , - max friction , max friction ) ; lambda = new impulse - vcp . tangent impulse ; vcp . tangent impulse = new impulse ; final float px = tangentx * lambda ; final float py = tangenty * lambda ; v a . x -= px * m a ; v a . y -= py * m a ; w a -= i a * ( vcp . r a . x * py - vcp . r a . y * px ) ; v b . x += px * m b ; v b . y += py * m b ; w b += i b * ( vcp . r b . x * py - vcp . r b . y * px ) ; } if ( vc . point count == 1 ) { final velocity constraint point vcp = vc . points [ 0 ] ; float dvx = - w b * vcp . r b . y + v b . x - v a . x + w a * vcp . r a . y ; float dvy = w b * vcp . r b . x + v b . y - v a . y - w a * vcp . r a . x ; final float vn = dvx * normalx + dvy * normaly ; float lambda = - vcp . normal mass * ( vn - vcp . velocity bias ) ; float a = vcp . normal impulse + lambda ; final float new impulse = ( a > 0.0f ? a : 0.0f ) ; lambda = new impulse - vcp . normal impulse ; vcp . normal impulse = new impulse ; float px = normalx * lambda ; float py = normaly * lambda ; v a . x -= px * m a ; v a . y -= py * m a ; w a -= i a * ( vcp . r a . x * py - vcp . r a . y * px ) ; v b . x += px * m b ; v b . y += py * m b ; w b += i b * ( vcp . r b . x * py - vcp . r b . y * px ) ; } else { final velocity constraint point cp 1 = vc . points [ 0 ] ; final velocity constraint point cp 2 = vc . points [ 1 ] ; final vec 2 cp 1 r a = cp 1 . r a ; final vec 2 cp 1 r b = cp 1 . r b ; final vec 2 cp 2 r a = cp 2 . r a ; final vec 2 cp 2 r b = cp 2 . r b ; float ax = cp 1 . normal impulse ; float ay = cp 2 . normal impulse ; assert ( ax >= 0.0f && ay >= 0.0f ) ; float dv 1 x = - w b * cp 1 r b . y + v b . x - v a . x + w a * cp 1 r a . y ; float dv 1 y = w b * cp 1 r b . x + v b . y - v a . y - w a * cp 1 r a . x ; float dv 2 x = - w b * cp 2 r b . y + v b . x - v a . x + w a * cp 2 r a . y ; float dv 2 y = w b * cp 2 r b . x + v b . y - v a . y - w a * cp 2 r a . x ; float vn 1 = dv 1 x * normalx + dv 1 y * normaly ; float vn 2 = dv 2 x * normalx + dv 2 y * normaly ; float bx = vn 1 - cp 1 . velocity bias ; float by = vn 2 - cp 2 . velocity bias ; mat 22 r = vc . k ; bx -= r . ex . x * ax + r . ey . x * ay ; by -= r . ex . y * ax + r . ey . y * ay ; for ( ; ; ) { mat 22 r 1 = vc . normal mass ; float xx = r 1 . ex . x * bx + r 1 . ey . x * by ; float xy = r 1 . ex . y * bx + r 1 . ey . y * by ; xx *= - 1 ; xy *= - 1 ; if ( xx >= 0.0f && xy >= 0.0f ) { float dx = xx - ax ; float dy = xy - ay ; float p 1 x = dx * normalx ; float p 1 y = dx * normaly ; float p 2 x = dy * normalx ; float p 2 y = dy * normaly ; v a . x -= m a * ( p 1 x + p 2 x ) ; v a . y -= m a * ( p 1 y + p 2 y ) ; v b . x += m b * ( p 1 x + p 2 x ) ; v b . y += m b * ( p 1 y + p 2 y ) ; w a -= i a * ( cp 1 r a . x * p 1 y - cp 1 r a . y * p 1 x + ( cp 2 r a . x * p 2 y - cp 2 r a . y * p 2 x ) ) ; w b += i b * ( cp 1 r b . x * p 1 y - cp 1 r b . y * p 1 x + ( cp 2 r b . x * p 2 y - cp 2 r b . y * p 2 x ) ) ; cp 1 . normal impulse = xx ; cp 2 . normal impulse = xy ; if ( debug solver ) { vec 2 dv 1 = v b . add ( vec 2 . cross ( w b , cp 1 r b ) . sub local ( v a ) . sub local ( vec 2 . cross ( w a , cp 1 r a ) ) ) ; vec 2 dv 2 = v b . add ( vec 2 . cross ( w b , cp 2 r b ) . sub local ( v a ) . sub local ( vec 2 . cross ( w a , cp 2 r a ) ) ) ; vn 1 = vec 2 . dot ( dv 1 , normal ) ; vn 2 = vec 2 . dot ( dv 2 , normal ) ; assert ( math utils . abs ( vn 1 - cp 1 . velocity bias ) < k error tol ) ; assert ( math utils . abs ( vn 2 - cp 2 . velocity bias ) < k error tol ) ; } break ; } xx = - cp 1 . normal mass * bx ; xy = 0.0f ; vn 1 = 0.0f ; vn 2 = vc . k . ex . y * xx + by ; if ( xx >= 0.0f && vn 2 >= 0.0f ) { float dx = xx - ax ; float dy = xy - ay ; float p 1 x = normalx * dx ; float p 1 y = normaly * dx ; float p 2 x = normalx * dy ; float p 2 y = normaly * dy ; v a . x -= m a * ( p 1 x + p 2 x ) ; v a . y -= m a * ( p 1 y + p 2 y ) ; v b . x += m b * ( p 1 x + p 2 x ) ; v b . y += m b * ( p 1 y + p 2 y ) ; w a -= i a * ( cp 1 r a . x * p 1 y - cp 1 r a . y * p 1 x + ( cp 2 r a . x * p 2 y - cp 2 r a . y * p 2 x ) ) ; w b += i b * ( cp 1 r b . x * p 1 y - cp 1 r b . y * p 1 x + ( cp 2 r b . x * p 2 y - cp 2 r b . y * p 2 x ) ) ; cp 1 . normal impulse = xx ; cp 2 . normal impulse = xy ; if ( debug solver ) { vec 2 dv 1 = v b . add ( vec 2 . cross ( w b , cp 1 r b ) . sub local ( v a ) . sub local ( vec 2 . cross ( w a , cp 1 r a ) ) ) ; vn 1 = vec 2 . dot ( dv 1 , normal ) ; assert ( math utils . abs ( vn 1 - cp 1 . velocity bias ) < k error tol ) ; } break ; } xx = 0.0f ; xy = - cp 2 . normal mass * by ; vn 1 = vc . k . ey . x * xy + bx ; vn 2 = 0.0f ; if ( xy >= 0.0f && vn 1 >= 0.0f ) { float dx = xx - ax ; float dy = xy - ay ; float p 1 x = normalx * dx ; float p 1 y = normaly * dx ; float p 2 x = normalx * dy ; float p 2 y = normaly * dy ; v a . x -= m a * ( p 1 x + p 2 x ) ; v a . y -= m a * ( p 1 y + p 2 y ) ; v b . x += m b * ( p 1 x + p 2 x ) ; v b . y += m b * ( p 1 y + p 2 y ) ; w a -= i a * ( cp 1 r a . x * p 1 y - cp 1 r a . y * p 1 x + ( cp 2 r a . x * p 2 y - cp 2 r a . y * p 2 x ) ) ; w b += i b * ( cp 1 r b . x * p 1 y - cp 1 r b . y * p 1 x + ( cp 2 r b . x * p 2 y - cp 2 r b . y * p 2 x ) ) ; cp 1 . normal impulse = xx ; cp 2 . normal impulse = xy ; if ( debug solver ) { vec 2 dv 2 = v b . add ( vec 2 . cross ( w b , cp 2 r b ) . sub local ( v a ) . sub local ( vec 2 . cross ( w a , cp 2 r a ) ) ) ; vn 2 = vec 2 . dot ( dv 2 , normal ) ; assert ( math utils . abs ( vn 2 - cp 2 . velocity bias ) < k error tol ) ; } break ; } xx = 0.0f ; xy = 0.0f ; vn 1 = bx ; vn 2 = by ; if ( vn 1 >= 0.0f && vn 2 >= 0.0f ) { float dx = xx - ax ; float dy = xy - ay ; float p 1 x = normalx * dx ; float p 1 y = normaly * dx ; float p 2 x = normalx * dy ; float p 2 y = normaly * dy ; v a . x -= m a * ( p 1 x + p 2 x ) ; v a . y -= m a * ( p 1 y + p 2 y ) ; v b . x += m b * ( p 1 x + p 2 x ) ; v b . y += m b * ( p 1 y + p 2 y ) ; w a -= i a * ( cp 1 r a . x * p 1 y - cp 1 r a . y * p 1 x + ( cp 2 r a . x * p 2 y - cp 2 r a . y * p 2 x ) ) ; w b += i b * ( cp 1 r b . x * p 1 y - cp 1 r b . y * p 1 x + ( cp 2 r b . x * p 2 y - cp 2 r b . y * p 2 x ) ) ; cp 1 . normal impulse = xx ; cp 2 . normal impulse = xy ; break ; } break ; } } m velocities [ index a ] . w = w a ; m velocities [ index b ] . w = w b ; } } <SENTENCE_END/>

(Copy Probability: 3.8%)

<SENTENCE_START> { for ( int i = 0 ; i < m count ; ++ i ) { final contact velocity constraint vc = m velocity constraints [ i ] ; int index a = vc . index a ; int index b = vc . index b ; float m a = vc . inv mass a ; float m b = vc . inv mass b ; float i a = vc . inv ia ; float i b = vc . inv ib ; int point count = vc . point count ; vec 2 v a = m velocities [ index a ] . v ; float w a = m velocities [ index a ] . w ; vec 2 v b = m velocities [ index b ] . v ; float w b = m velocities [ index b ] . w ; vec 2 normal = vc . normal ; final float normalx = normal . x ; final float normaly = normal . y ; float tangentx = 1.0f * vc . normal . y ; float tangenty = - 1.0f * vc . normal . x ; final float friction = vc . friction ; assert ( point count == 1 || point count == 2 ) ; for ( int j = 0 ; j < point count ; ++ j ) { final velocity constraint point vcp = vc . points [ j ] ; final vec 2 a = vcp . r a ; float dvx = - w b * vcp . r b . y + v b . x - v a . x + w a * a . y ; float dvy = w b * vcp . r b . x + v b . y - v a . y - w a * a . x ; final float vt = dvx * tangentx + dvy * tangenty - vc . tangent speed ; float lambda = vcp . tangent mass * ( - vt ) ; final float max friction = friction * vcp . normal impulse ; final float new impulse = math utils . clamp ( vcp . tangent impulse + lambda , - max friction , max friction ) ; lambda = new impulse - vcp . tangent impulse ; vcp . tangent impulse = new impulse ; final float px = tangentx * lambda ; final float py = tangenty * lambda ; v a . x -= px * m a ; v a . y -= py * m a ; w a -= i a * ( vcp . r a . x * py - vcp . r a . y * px ) ; v b . x += px * m b ; v b . y += py * m b ; w b += i b * ( vcp . r b . x * py - vcp . r b . y * px ) ; } if ( vc . point count == 1 ) { final velocity constraint point vcp = vc . points [ 0 ] ; float dvx = - w b * vcp . r b . y + v b . x - v a . x + w a * vcp . r a . y ; float dvy = w b * vcp . r b . x + v b . y - v a . y - w a * vcp . r a . x ; final float vn = dvx * normalx + dvy * normaly ; float lambda = - vcp . normal mass * ( vn - vcp . velocity bias ) ; float a = vcp . normal impulse + lambda ; final float new impulse = ( a > 0.0f ? a : 0.0f ) ; lambda = new impulse - vcp . normal impulse ; vcp . normal impulse = new impulse ; float px = normalx * lambda ; float py = normaly * lambda ; v a . x -= px * m a ; v a . y -= py * m a ; w a -= i a * ( vcp . r a . x * py - vcp . r a . y * px ) ; v b . x += px * m b ; v b . y += py * m b ; w b += i b * ( vcp . r b . x * py - vcp . r b . y * px ) ; } else { final velocity constraint point cp 1 = vc . points [ 0 ] ; final velocity constraint point cp 2 = vc . points [ 1 ] ; final vec 2 cp 1 r a = cp 1 . r a ; final vec 2 cp 1 r b = cp 1 . r b ; final vec 2 cp 2 r a = cp 2 . r a ; final vec 2 cp 2 r b = cp 2 . r b ; float ax = cp 1 . normal impulse ; float ay = cp 2 . normal impulse ; assert ( ax >= 0.0f && ay >= 0.0f ) ; float dv 1 x = - w b * cp 1 r b . y + v b . x - v a . x + w a * cp 1 r a . y ; float dv 1 y = w b * cp 1 r b . x + v b . y - v a . y - w a * cp 1 r a . x ; float dv 2 x = - w b * cp 2 r b . y + v b . x - v a . x + w a * cp 2 r a . y ; float dv 2 y = w b * cp 2 r b . x + v b . y - v a . y - w a * cp 2 r a . x ; float vn 1 = dv 1 x * normalx + dv 1 y * normaly ; float vn 2 = dv 2 x * normalx + dv 2 y * normaly ; float bx = vn 1 - cp 1 . velocity bias ; float by = vn 2 - cp 2 . velocity bias ; mat 22 r = vc . k ; bx -= r . ex . x * ax + r . ey . x * ay ; by -= r . ex . y * ax + r . ey . y * ay ; for ( ; ; ) { mat 22 r 1 = vc . normal mass ; float xx = r 1 . ex . x * bx + r 1 . ey . x * by ; float xy = r 1 . ex . y * bx + r 1 . ey . y * by ; xx *= - 1 ; xy *= - 1 ; if ( xx >= 0.0f && xy >= 0.0f ) { float dx = xx - ax ; float dy = xy - ay ; float p 1 x = dx * normalx ; float p 1 y = dx * normaly ; float p 2 x = dy * normalx ; float p 2 y = dy * normaly ; v a . x -= m a * ( p 1 x + p 2 x ) ; v a . y -= m a * ( p 1 y + p 2 y ) ; v b . x += m b * ( p 1 x + p 2 x ) ; v b . y += m b * ( p 1 y + p 2 y ) ; w a -= i a * ( cp 1 r a . x * p 1 y - cp 1 r a . y * p 1 x + ( cp 2 r a . x * p 2 y - cp 2 r a . y * p 2 x ) ) ; w b += i b * ( cp 1 r b . x * p 1 y - cp 1 r b . y * p 1 x + ( cp 2 r b . x * p 2 y - cp 2 r b . y * p 2 x ) ) ; cp 1 . normal impulse = xx ; cp 2 . normal impulse = xy ; if ( debug solver ) { vec 2 dv 1 = v b . add ( vec 2 . cross ( w b , cp 1 r b ) . sub local ( v a ) . sub local ( vec 2 . cross ( w a , cp 1 r a ) ) ) ; vec 2 dv 2 = v b . add ( vec 2 . cross ( w b , cp 2 r b ) . sub local ( v a ) . sub local ( vec 2 . cross ( w a , cp 2 r a ) ) ) ; vn 1 = vec 2 . dot ( dv 1 , normal ) ; vn 2 = vec 2 . dot ( dv 2 , normal ) ; assert ( math utils . abs ( vn 1 - cp 1 . velocity bias ) < k error tol ) ; assert ( math utils . abs ( vn 2 - cp 2 . velocity bias ) < k error tol ) ; } break ; } xx = - cp 1 . normal mass * bx ; xy = 0.0f ; vn 1 = 0.0f ; vn 2 = vc . k . ex . y * xx + by ; if ( xx >= 0.0f && vn 2 >= 0.0f ) { float dx = xx - ax ; float dy = xy - ay ; float p 1 x = normalx * dx ; float p 1 y = normaly * dx ; float p 2 x = normalx * dy ; float p 2 y = normaly * dy ; v a . x -= m a * ( p 1 x + p 2 x ) ; v a . y -= m a * ( p 1 y + p 2 y ) ; v b . x += m b * ( p 1 x + p 2 x ) ; v b . y += m b * ( p 1 y + p 2 y ) ; w a -= i a * ( cp 1 r a . x * p 1 y - cp 1 r a . y * p 1 x + ( cp 2 r a . x * p 2 y - cp 2 r a . y * p 2 x ) ) ; w b += i b * ( cp 1 r b . x * p 1 y - cp 1 r b . y * p 1 x + ( cp 2 r b . x * p 2 y - cp 2 r b . y * p 2 x ) ) ; cp 1 . normal impulse = xx ; cp 2 . normal impulse = xy ; if ( debug solver ) { vec 2 dv 1 = v b . add ( vec 2 . cross ( w b , cp 1 r b ) . sub local ( v a ) . sub local ( vec 2 . cross ( w a , cp 1 r a ) ) ) ; vn 1 = vec 2 . dot ( dv 1 , normal ) ; assert ( math utils . abs ( vn 1 - cp 1 . velocity bias ) < k error tol ) ; } break ; } xx = 0.0f ; xy = - cp 2 . normal mass * by ; vn 1 = vc . k . ey . x * xy + bx ; vn 2 = 0.0f ; if ( xy >= 0.0f && vn 1 >= 0.0f ) { float dx = xx - ax ; float dy = xy - ay ; float p 1 x = normalx * dx ; float p 1 y = normaly * dx ; float p 2 x = normalx * dy ; float p 2 y = normaly * dy ; v a . x -= m a * ( p 1 x + p 2 x ) ; v a . y -= m a * ( p 1 y + p 2 y ) ; v b . x += m b * ( p 1 x + p 2 x ) ; v b . y += m b * ( p 1 y + p 2 y ) ; w a -= i a * ( cp 1 r a . x * p 1 y - cp 1 r a . y * p 1 x + ( cp 2 r a . x * p 2 y - cp 2 r a . y * p 2 x ) ) ; w b += i b * ( cp 1 r b . x * p 1 y - cp 1 r b . y * p 1 x + ( cp 2 r b . x * p 2 y - cp 2 r b . y * p 2 x ) ) ; cp 1 . normal impulse = xx ; cp 2 . normal impulse = xy ; if ( debug solver ) { vec 2 dv 2 = v b . add ( vec 2 . cross ( w b , cp 2 r b ) . sub local ( v a ) . sub local ( vec 2 . cross ( w a , cp 2 r a ) ) ) ; vn 2 = vec 2 . dot ( dv 2 , normal ) ; assert ( math utils . abs ( vn 2 - cp 2 . velocity bias ) < k error tol ) ; } break ; } xx = 0.0f ; xy = 0.0f ; vn 1 = bx ; vn 2 = by ; if ( vn 1 >= 0.0f && vn 2 >= 0.0f ) { float dx = xx - ax ; float dy = xy - ay ; float p 1 x = normalx * dx ; float p 1 y = normaly * dx ; float p 2 x = normalx * dy ; float p 2 y = normaly * dy ; v a . x -= m a * ( p 1 x + p 2 x ) ; v a . y -= m a * ( p 1 y + p 2 y ) ; v b . x += m b * ( p 1 x + p 2 x ) ; v b . y += m b * ( p 1 y + p 2 y ) ; w a -= i a * ( cp 1 r a . x * p 1 y - cp 1 r a . y * p 1 x + ( cp 2 r a . x * p 2 y - cp 2 r a . y * p 2 x ) ) ; w b += i b * ( cp 1 r b . x * p 1 y - cp 1 r b . y * p 1 x + ( cp 2 r b . x * p 2 y - cp 2 r b . y * p 2 x ) ) ; cp 1 . normal impulse = xx ; cp 2 . normal impulse = xy ; break ; } break ; } } m velocities [ index a ] . w = w a ; m velocities [ index b ] . w = w b ; } } <SENTENCE_END/>


Original Name store,impulses

store

<SENTENCE_START> { for ( int i = 0 ; i < m count ; i ++ ) { final contact velocity constraint vc = m velocity constraints [ i ] ; final manifold manifold = m contacts [ vc . contact index ] . get manifold ( ) ; for ( int j = 0 ; j < vc . point count ; j ++ ) { manifold . points [ j ] . normal impulse = vc . points [ j ] . normal impulse ; manifold . points [ j ] . tangent impulse = vc . points [ j ] . tangent impulse ; } } } <SENTENCE_END/>

(Copy Probability: 5.7%)

<SENTENCE_START> { for ( int i = 0 ; i < m count ; i ++ ) { final contact velocity constraint vc = m velocity constraints [ i ] ; final manifold manifold = m contacts [ vc . contact index ] . get manifold ( ) ; for ( int j = 0 ; j < vc . point count ; j ++ ) { manifold . points [ j ] . normal impulse = vc . points [ j ] . normal impulse ; manifold . points [ j ] . tangent impulse = vc . points [ j ] . tangent impulse ; } } } <SENTENCE_END/>

impulses

<SENTENCE_START> { for ( int i = 0 ; i < m count ; i ++ ) { final contact velocity constraint vc = m velocity constraints [ i ] ; final manifold manifold = m contacts [ vc . contact index ] . get manifold ( ) ; for ( int j = 0 ; j < vc . point count ; j ++ ) { manifold . points [ j ] . normal impulse = vc . points [ j ] . normal impulse ; manifold . points [ j ] . tangent impulse = vc . points [ j ] . tangent impulse ; } } } <SENTENCE_END/>

(Copy Probability: 28.2%)

<SENTENCE_START> { for ( int i = 0 ; i < m count ; i ++ ) { final contact velocity constraint vc = m velocity constraints [ i ] ; final manifold manifold = m contacts [ vc . contact index ] . get manifold ( ) ; for ( int j = 0 ; j < vc . point count ; j ++ ) { manifold . points [ j ] . normal impulse = vc . points [ j ] . normal impulse ; manifold . points [ j ] . tangent impulse = vc . points [ j ] . tangent impulse ; } } } <SENTENCE_END/>

%END%

<SENTENCE_START> { for ( int i = 0 ; i < m count ; i ++ ) { final contact velocity constraint vc = m velocity constraints [ i ] ; final manifold manifold = m contacts [ vc . contact index ] . get manifold ( ) ; for ( int j = 0 ; j < vc . point count ; j ++ ) { manifold . points [ j ] . normal impulse = vc . points [ j ] . normal impulse ; manifold . points [ j ] . tangent impulse = vc . points [ j ] . tangent impulse ; } } } <SENTENCE_END/>

(Copy Probability: 29.6%)

<SENTENCE_START> { for ( int i = 0 ; i < m count ; i ++ ) { final contact velocity constraint vc = m velocity constraints [ i ] ; final manifold manifold = m contacts [ vc . contact index ] . get manifold ( ) ; for ( int j = 0 ; j < vc . point count ; j ++ ) { manifold . points [ j ] . normal impulse = vc . points [ j ] . normal impulse ; manifold . points [ j ] . tangent impulse = vc . points [ j ] . tangent impulse ; } } } <SENTENCE_END/>


Original Name solve,position,constraints

solve

<SENTENCE_START> { float min separation = 0.0f ; for ( int i = 0 ; i < m count ; ++ i ) { contact position constraint pc = m position constraints [ i ] ; int index a = pc . index a ; int index b = pc . index b ; float m a = pc . inv mass a ; float i a = pc . inv ia ; vec 2 local center a = pc . local center a ; final float local center ax = local center a . x ; final float local center ay = local center a . y ; float m b = pc . inv mass b ; float i b = pc . inv ib ; vec 2 local center b = pc . local center b ; final float local center bx = local center b . x ; final float local center by = local center b . y ; int point count = pc . point count ; vec 2 c a = m positions [ index a ] . c ; float a a = m positions [ index a ] . a ; vec 2 c b = m positions [ index b ] . c ; float a b = m positions [ index b ] . a ; for ( int j = 0 ; j < point count ; ++ j ) { final rot xf aq = xf a . q ; final rot xf bq = xf b . q ; xf aq . set ( a a ) ; xf bq . set ( a b ) ; xf a . p . x = c a . x - xf aq . c * local center ax + xf aq . s * local center ay ; xf a . p . y = c a . y - xf aq . s * local center ax - xf aq . c * local center ay ; xf b . p . x = c b . x - xf bq . c * local center bx + xf bq . s * local center by ; xf b . p . y = c b . y - xf bq . s * local center bx - xf bq . c * local center by ; final position solver manifold psm = psolver ; psm . initialize ( pc , xf a , xf b , j ) ; final vec 2 normal = psm . normal ; final vec 2 point = psm . point ; final float separation = psm . separation ; float r ax = point . x - c a . x ; float r ay = point . y - c a . y ; float r bx = point . x - c b . x ; float r by = point . y - c b . y ; min separation = math utils . min ( min separation , separation ) ; final float c = math utils . clamp ( settings . baumgarte * ( separation + settings . linear slop ) , - settings . max linear correction , 0.0f ) ; final float rn a = r ax * normal . y - r ay * normal . x ; final float rn b = r bx * normal . y - r by * normal . x ; final float k = m a + m b + i a * rn a * rn a + i b * rn b * rn b ; final float impulse = k > 0.0f ? - c / k : 0.0f ; float px = normal . x * impulse ; float py = normal . y * impulse ; c a . x -= px * m a ; c a . y -= py * m a ; a a -= i a * ( r ax * py - r ay * px ) ; c b . x += px * m b ; c b . y += py * m b ; a b += i b * ( r bx * py - r by * px ) ; } m positions [ index a ] . a = a a ; m positions [ index b ] . a = a b ; } return min separation >= - 3.0f * settings . linear slop ; } <SENTENCE_END/>

(Copy Probability: 3.4%)

<SENTENCE_START> { float min separation = 0.0f ; for ( int i = 0 ; i < m count ; ++ i ) { contact position constraint pc = m position constraints [ i ] ; int index a = pc . index a ; int index b = pc . index b ; float m a = pc . inv mass a ; float i a = pc . inv ia ; vec 2 local center a = pc . local center a ; final float local center ax = local center a . x ; final float local center ay = local center a . y ; float m b = pc . inv mass b ; float i b = pc . inv ib ; vec 2 local center b = pc . local center b ; final float local center bx = local center b . x ; final float local center by = local center b . y ; int point count = pc . point count ; vec 2 c a = m positions [ index a ] . c ; float a a = m positions [ index a ] . a ; vec 2 c b = m positions [ index b ] . c ; float a b = m positions [ index b ] . a ; for ( int j = 0 ; j < point count ; ++ j ) { final rot xf aq = xf a . q ; final rot xf bq = xf b . q ; xf aq . set ( a a ) ; xf bq . set ( a b ) ; xf a . p . x = c a . x - xf aq . c * local center ax + xf aq . s * local center ay ; xf a . p . y = c a . y - xf aq . s * local center ax - xf aq . c * local center ay ; xf b . p . x = c b . x - xf bq . c * local center bx + xf bq . s * local center by ; xf b . p . y = c b . y - xf bq . s * local center bx - xf bq . c * local center by ; final position solver manifold psm = psolver ; psm . initialize ( pc , xf a , xf b , j ) ; final vec 2 normal = psm . normal ; final vec 2 point = psm . point ; final float separation = psm . separation ; float r ax = point . x - c a . x ; float r ay = point . y - c a . y ; float r bx = point . x - c b . x ; float r by = point . y - c b . y ; min separation = math utils . min ( min separation , separation ) ; final float c = math utils . clamp ( settings . baumgarte * ( separation + settings . linear slop ) , - settings . max linear correction , 0.0f ) ; final float rn a = r ax * normal . y - r ay * normal . x ; final float rn b = r bx * normal . y - r by * normal . x ; final float k = m a + m b + i a * rn a * rn a + i b * rn b * rn b ; final float impulse = k > 0.0f ? - c / k : 0.0f ; float px = normal . x * impulse ; float py = normal . y * impulse ; c a . x -= px * m a ; c a . y -= py * m a ; a a -= i a * ( r ax * py - r ay * px ) ; c b . x += px * m b ; c b . y += py * m b ; a b += i b * ( r bx * py - r by * px ) ; } m positions [ index a ] . a = a a ; m positions [ index b ] . a = a b ; } return min separation >= - 3.0f * settings . linear slop ; } <SENTENCE_END/>

position

<SENTENCE_START> { float min separation = 0.0f ; for ( int i = 0 ; i < m count ; ++ i ) { contact position constraint pc = m position constraints [ i ] ; int index a = pc . index a ; int index b = pc . index b ; float m a = pc . inv mass a ; float i a = pc . inv ia ; vec 2 local center a = pc . local center a ; final float local center ax = local center a . x ; final float local center ay = local center a . y ; float m b = pc . inv mass b ; float i b = pc . inv ib ; vec 2 local center b = pc . local center b ; final float local center bx = local center b . x ; final float local center by = local center b . y ; int point count = pc . point count ; vec 2 c a = m positions [ index a ] . c ; float a a = m positions [ index a ] . a ; vec 2 c b = m positions [ index b ] . c ; float a b = m positions [ index b ] . a ; for ( int j = 0 ; j < point count ; ++ j ) { final rot xf aq = xf a . q ; final rot xf bq = xf b . q ; xf aq . set ( a a ) ; xf bq . set ( a b ) ; xf a . p . x = c a . x - xf aq . c * local center ax + xf aq . s * local center ay ; xf a . p . y = c a . y - xf aq . s * local center ax - xf aq . c * local center ay ; xf b . p . x = c b . x - xf bq . c * local center bx + xf bq . s * local center by ; xf b . p . y = c b . y - xf bq . s * local center bx - xf bq . c * local center by ; final position solver manifold psm = psolver ; psm . initialize ( pc , xf a , xf b , j ) ; final vec 2 normal = psm . normal ; final vec 2 point = psm . point ; final float separation = psm . separation ; float r ax = point . x - c a . x ; float r ay = point . y - c a . y ; float r bx = point . x - c b . x ; float r by = point . y - c b . y ; min separation = math utils . min ( min separation , separation ) ; final float c = math utils . clamp ( settings . baumgarte * ( separation + settings . linear slop ) , - settings . max linear correction , 0.0f ) ; final float rn a = r ax * normal . y - r ay * normal . x ; final float rn b = r bx * normal . y - r by * normal . x ; final float k = m a + m b + i a * rn a * rn a + i b * rn b * rn b ; final float impulse = k > 0.0f ? - c / k : 0.0f ; float px = normal . x * impulse ; float py = normal . y * impulse ; c a . x -= px * m a ; c a . y -= py * m a ; a a -= i a * ( r ax * py - r ay * px ) ; c b . x += px * m b ; c b . y += py * m b ; a b += i b * ( r bx * py - r by * px ) ; } m positions [ index a ] . a = a a ; m positions [ index b ] . a = a b ; } return min separation >= - 3.0f * settings . linear slop ; } <SENTENCE_END/>

(Copy Probability: 6.8%)

<SENTENCE_START> { float min separation = 0.0f ; for ( int i = 0 ; i < m count ; ++ i ) { contact position constraint pc = m position constraints [ i ] ; int index a = pc . index a ; int index b = pc . index b ; float m a = pc . inv mass a ; float i a = pc . inv ia ; vec 2 local center a = pc . local center a ; final float local center ax = local center a . x ; final float local center ay = local center a . y ; float m b = pc . inv mass b ; float i b = pc . inv ib ; vec 2 local center b = pc . local center b ; final float local center bx = local center b . x ; final float local center by = local center b . y ; int point count = pc . point count ; vec 2 c a = m positions [ index a ] . c ; float a a = m positions [ index a ] . a ; vec 2 c b = m positions [ index b ] . c ; float a b = m positions [ index b ] . a ; for ( int j = 0 ; j < point count ; ++ j ) { final rot xf aq = xf a . q ; final rot xf bq = xf b . q ; xf aq . set ( a a ) ; xf bq . set ( a b ) ; xf a . p . x = c a . x - xf aq . c * local center ax + xf aq . s * local center ay ; xf a . p . y = c a . y - xf aq . s * local center ax - xf aq . c * local center ay ; xf b . p . x = c b . x - xf bq . c * local center bx + xf bq . s * local center by ; xf b . p . y = c b . y - xf bq . s * local center bx - xf bq . c * local center by ; final position solver manifold psm = psolver ; psm . initialize ( pc , xf a , xf b , j ) ; final vec 2 normal = psm . normal ; final vec 2 point = psm . point ; final float separation = psm . separation ; float r ax = point . x - c a . x ; float r ay = point . y - c a . y ; float r bx = point . x - c b . x ; float r by = point . y - c b . y ; min separation = math utils . min ( min separation , separation ) ; final float c = math utils . clamp ( settings . baumgarte * ( separation + settings . linear slop ) , - settings . max linear correction , 0.0f ) ; final float rn a = r ax * normal . y - r ay * normal . x ; final float rn b = r bx * normal . y - r by * normal . x ; final float k = m a + m b + i a * rn a * rn a + i b * rn b * rn b ; final float impulse = k > 0.0f ? - c / k : 0.0f ; float px = normal . x * impulse ; float py = normal . y * impulse ; c a . x -= px * m a ; c a . y -= py * m a ; a a -= i a * ( r ax * py - r ay * px ) ; c b . x += px * m b ; c b . y += py * m b ; a b += i b * ( r bx * py - r by * px ) ; } m positions [ index a ] . a = a a ; m positions [ index b ] . a = a b ; } return min separation >= - 3.0f * settings . linear slop ; } <SENTENCE_END/>

constraints

<SENTENCE_START> { float min separation = 0.0f ; for ( int i = 0 ; i < m count ; ++ i ) { contact position constraint pc = m position constraints [ i ] ; int index a = pc . index a ; int index b = pc . index b ; float m a = pc . inv mass a ; float i a = pc . inv ia ; vec 2 local center a = pc . local center a ; final float local center ax = local center a . x ; final float local center ay = local center a . y ; float m b = pc . inv mass b ; float i b = pc . inv ib ; vec 2 local center b = pc . local center b ; final float local center bx = local center b . x ; final float local center by = local center b . y ; int point count = pc . point count ; vec 2 c a = m positions [ index a ] . c ; float a a = m positions [ index a ] . a ; vec 2 c b = m positions [ index b ] . c ; float a b = m positions [ index b ] . a ; for ( int j = 0 ; j < point count ; ++ j ) { final rot xf aq = xf a . q ; final rot xf bq = xf b . q ; xf aq . set ( a a ) ; xf bq . set ( a b ) ; xf a . p . x = c a . x - xf aq . c * local center ax + xf aq . s * local center ay ; xf a . p . y = c a . y - xf aq . s * local center ax - xf aq . c * local center ay ; xf b . p . x = c b . x - xf bq . c * local center bx + xf bq . s * local center by ; xf b . p . y = c b . y - xf bq . s * local center bx - xf bq . c * local center by ; final position solver manifold psm = psolver ; psm . initialize ( pc , xf a , xf b , j ) ; final vec 2 normal = psm . normal ; final vec 2 point = psm . point ; final float separation = psm . separation ; float r ax = point . x - c a . x ; float r ay = point . y - c a . y ; float r bx = point . x - c b . x ; float r by = point . y - c b . y ; min separation = math utils . min ( min separation , separation ) ; final float c = math utils . clamp ( settings . baumgarte * ( separation + settings . linear slop ) , - settings . max linear correction , 0.0f ) ; final float rn a = r ax * normal . y - r ay * normal . x ; final float rn b = r bx * normal . y - r by * normal . x ; final float k = m a + m b + i a * rn a * rn a + i b * rn b * rn b ; final float impulse = k > 0.0f ? - c / k : 0.0f ; float px = normal . x * impulse ; float py = normal . y * impulse ; c a . x -= px * m a ; c a . y -= py * m a ; a a -= i a * ( r ax * py - r ay * px ) ; c b . x += px * m b ; c b . y += py * m b ; a b += i b * ( r bx * py - r by * px ) ; } m positions [ index a ] . a = a a ; m positions [ index b ] . a = a b ; } return min separation >= - 3.0f * settings . linear slop ; } <SENTENCE_END/>

(Copy Probability: 5.9%)

<SENTENCE_START> { float min separation = 0.0f ; for ( int i = 0 ; i < m count ; ++ i ) { contact position constraint pc = m position constraints [ i ] ; int index a = pc . index a ; int index b = pc . index b ; float m a = pc . inv mass a ; float i a = pc . inv ia ; vec 2 local center a = pc . local center a ; final float local center ax = local center a . x ; final float local center ay = local center a . y ; float m b = pc . inv mass b ; float i b = pc . inv ib ; vec 2 local center b = pc . local center b ; final float local center bx = local center b . x ; final float local center by = local center b . y ; int point count = pc . point count ; vec 2 c a = m positions [ index a ] . c ; float a a = m positions [ index a ] . a ; vec 2 c b = m positions [ index b ] . c ; float a b = m positions [ index b ] . a ; for ( int j = 0 ; j < point count ; ++ j ) { final rot xf aq = xf a . q ; final rot xf bq = xf b . q ; xf aq . set ( a a ) ; xf bq . set ( a b ) ; xf a . p . x = c a . x - xf aq . c * local center ax + xf aq . s * local center ay ; xf a . p . y = c a . y - xf aq . s * local center ax - xf aq . c * local center ay ; xf b . p . x = c b . x - xf bq . c * local center bx + xf bq . s * local center by ; xf b . p . y = c b . y - xf bq . s * local center bx - xf bq . c * local center by ; final position solver manifold psm = psolver ; psm . initialize ( pc , xf a , xf b , j ) ; final vec 2 normal = psm . normal ; final vec 2 point = psm . point ; final float separation = psm . separation ; float r ax = point . x - c a . x ; float r ay = point . y - c a . y ; float r bx = point . x - c b . x ; float r by = point . y - c b . y ; min separation = math utils . min ( min separation , separation ) ; final float c = math utils . clamp ( settings . baumgarte * ( separation + settings . linear slop ) , - settings . max linear correction , 0.0f ) ; final float rn a = r ax * normal . y - r ay * normal . x ; final float rn b = r bx * normal . y - r by * normal . x ; final float k = m a + m b + i a * rn a * rn a + i b * rn b * rn b ; final float impulse = k > 0.0f ? - c / k : 0.0f ; float px = normal . x * impulse ; float py = normal . y * impulse ; c a . x -= px * m a ; c a . y -= py * m a ; a a -= i a * ( r ax * py - r ay * px ) ; c b . x += px * m b ; c b . y += py * m b ; a b += i b * ( r bx * py - r by * px ) ; } m positions [ index a ] . a = a a ; m positions [ index b ] . a = a b ; } return min separation >= - 3.0f * settings . linear slop ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { float min separation = 0.0f ; for ( int i = 0 ; i < m count ; ++ i ) { contact position constraint pc = m position constraints [ i ] ; int index a = pc . index a ; int index b = pc . index b ; float m a = pc . inv mass a ; float i a = pc . inv ia ; vec 2 local center a = pc . local center a ; final float local center ax = local center a . x ; final float local center ay = local center a . y ; float m b = pc . inv mass b ; float i b = pc . inv ib ; vec 2 local center b = pc . local center b ; final float local center bx = local center b . x ; final float local center by = local center b . y ; int point count = pc . point count ; vec 2 c a = m positions [ index a ] . c ; float a a = m positions [ index a ] . a ; vec 2 c b = m positions [ index b ] . c ; float a b = m positions [ index b ] . a ; for ( int j = 0 ; j < point count ; ++ j ) { final rot xf aq = xf a . q ; final rot xf bq = xf b . q ; xf aq . set ( a a ) ; xf bq . set ( a b ) ; xf a . p . x = c a . x - xf aq . c * local center ax + xf aq . s * local center ay ; xf a . p . y = c a . y - xf aq . s * local center ax - xf aq . c * local center ay ; xf b . p . x = c b . x - xf bq . c * local center bx + xf bq . s * local center by ; xf b . p . y = c b . y - xf bq . s * local center bx - xf bq . c * local center by ; final position solver manifold psm = psolver ; psm . initialize ( pc , xf a , xf b , j ) ; final vec 2 normal = psm . normal ; final vec 2 point = psm . point ; final float separation = psm . separation ; float r ax = point . x - c a . x ; float r ay = point . y - c a . y ; float r bx = point . x - c b . x ; float r by = point . y - c b . y ; min separation = math utils . min ( min separation , separation ) ; final float c = math utils . clamp ( settings . baumgarte * ( separation + settings . linear slop ) , - settings . max linear correction , 0.0f ) ; final float rn a = r ax * normal . y - r ay * normal . x ; final float rn b = r bx * normal . y - r by * normal . x ; final float k = m a + m b + i a * rn a * rn a + i b * rn b * rn b ; final float impulse = k > 0.0f ? - c / k : 0.0f ; float px = normal . x * impulse ; float py = normal . y * impulse ; c a . x -= px * m a ; c a . y -= py * m a ; a a -= i a * ( r ax * py - r ay * px ) ; c b . x += px * m b ; c b . y += py * m b ; a b += i b * ( r bx * py - r by * px ) ; } m positions [ index a ] . a = a a ; m positions [ index b ] . a = a b ; } return min separation >= - 3.0f * settings . linear slop ; } <SENTENCE_END/>

(Copy Probability: 4.4%)

<SENTENCE_START> { float min separation = 0.0f ; for ( int i = 0 ; i < m count ; ++ i ) { contact position constraint pc = m position constraints [ i ] ; int index a = pc . index a ; int index b = pc . index b ; float m a = pc . inv mass a ; float i a = pc . inv ia ; vec 2 local center a = pc . local center a ; final float local center ax = local center a . x ; final float local center ay = local center a . y ; float m b = pc . inv mass b ; float i b = pc . inv ib ; vec 2 local center b = pc . local center b ; final float local center bx = local center b . x ; final float local center by = local center b . y ; int point count = pc . point count ; vec 2 c a = m positions [ index a ] . c ; float a a = m positions [ index a ] . a ; vec 2 c b = m positions [ index b ] . c ; float a b = m positions [ index b ] . a ; for ( int j = 0 ; j < point count ; ++ j ) { final rot xf aq = xf a . q ; final rot xf bq = xf b . q ; xf aq . set ( a a ) ; xf bq . set ( a b ) ; xf a . p . x = c a . x - xf aq . c * local center ax + xf aq . s * local center ay ; xf a . p . y = c a . y - xf aq . s * local center ax - xf aq . c * local center ay ; xf b . p . x = c b . x - xf bq . c * local center bx + xf bq . s * local center by ; xf b . p . y = c b . y - xf bq . s * local center bx - xf bq . c * local center by ; final position solver manifold psm = psolver ; psm . initialize ( pc , xf a , xf b , j ) ; final vec 2 normal = psm . normal ; final vec 2 point = psm . point ; final float separation = psm . separation ; float r ax = point . x - c a . x ; float r ay = point . y - c a . y ; float r bx = point . x - c b . x ; float r by = point . y - c b . y ; min separation = math utils . min ( min separation , separation ) ; final float c = math utils . clamp ( settings . baumgarte * ( separation + settings . linear slop ) , - settings . max linear correction , 0.0f ) ; final float rn a = r ax * normal . y - r ay * normal . x ; final float rn b = r bx * normal . y - r by * normal . x ; final float k = m a + m b + i a * rn a * rn a + i b * rn b * rn b ; final float impulse = k > 0.0f ? - c / k : 0.0f ; float px = normal . x * impulse ; float py = normal . y * impulse ; c a . x -= px * m a ; c a . y -= py * m a ; a a -= i a * ( r ax * py - r ay * px ) ; c b . x += px * m b ; c b . y += py * m b ; a b += i b * ( r bx * py - r by * px ) ; } m positions [ index a ] . a = a a ; m positions [ index b ] . a = a b ; } return min separation >= - 3.0f * settings . linear slop ; } <SENTENCE_END/>


Original Name solve,toi,position,constraints

solve

<SENTENCE_START> { float min separation = 0.0f ; for ( int i = 0 ; i < m count ; ++ i ) { contact position constraint pc = m position constraints [ i ] ; int index a = pc . index a ; int index b = pc . index b ; vec 2 local center a = pc . local center a ; vec 2 local center b = pc . local center b ; final float local center ax = local center a . x ; final float local center ay = local center a . y ; final float local center bx = local center b . x ; final float local center by = local center b . y ; int point count = pc . point count ; float m a = 0.0f ; float i a = 0.0f ; if ( index a == toi index a || index a == toi index b ) { m a = pc . inv mass a ; i a = pc . inv ia ; } float m b = 0f ; float i b = 0f ; if ( index b == toi index a || index b == toi index b ) { m b = pc . inv mass b ; i b = pc . inv ib ; } vec 2 c a = m positions [ index a ] . c ; float a a = m positions [ index a ] . a ; vec 2 c b = m positions [ index b ] . c ; float a b = m positions [ index b ] . a ; for ( int j = 0 ; j < point count ; ++ j ) { final rot xf aq = xf a . q ; final rot xf bq = xf b . q ; xf aq . set ( a a ) ; xf bq . set ( a b ) ; xf a . p . x = c a . x - xf aq . c * local center ax + xf aq . s * local center ay ; xf a . p . y = c a . y - xf aq . s * local center ax - xf aq . c * local center ay ; xf b . p . x = c b . x - xf bq . c * local center bx + xf bq . s * local center by ; xf b . p . y = c b . y - xf bq . s * local center bx - xf bq . c * local center by ; final position solver manifold psm = psolver ; psm . initialize ( pc , xf a , xf b , j ) ; vec 2 normal = psm . normal ; vec 2 point = psm . point ; float separation = psm . separation ; float r ax = point . x - c a . x ; float r ay = point . y - c a . y ; float r bx = point . x - c b . x ; float r by = point . y - c b . y ; min separation = math utils . min ( min separation , separation ) ; float c = math utils . clamp ( settings . toi baugarte * ( separation + settings . linear slop ) , - settings . max linear correction , 0.0f ) ; float rn a = r ax * normal . y - r ay * normal . x ; float rn b = r bx * normal . y - r by * normal . x ; float k = m a + m b + i a * rn a * rn a + i b * rn b * rn b ; float impulse = k > 0.0f ? - c / k : 0.0f ; float px = normal . x * impulse ; float py = normal . y * impulse ; c a . x -= px * m a ; c a . y -= py * m a ; a a -= i a * ( r ax * py - r ay * px ) ; c b . x += px * m b ; c b . y += py * m b ; a b += i b * ( r bx * py - r by * px ) ; } m positions [ index a ] . a = a a ; m positions [ index b ] . a = a b ; } return min separation >= - 1.5f * settings . linear slop ; } <SENTENCE_END/>

(Copy Probability: 3.4%)

<SENTENCE_START> { float min separation = 0.0f ; for ( int i = 0 ; i < m count ; ++ i ) { contact position constraint pc = m position constraints [ i ] ; int index a = pc . index a ; int index b = pc . index b ; vec 2 local center a = pc . local center a ; vec 2 local center b = pc . local center b ; final float local center ax = local center a . x ; final float local center ay = local center a . y ; final float local center bx = local center b . x ; final float local center by = local center b . y ; int point count = pc . point count ; float m a = 0.0f ; float i a = 0.0f ; if ( index a == toi index a || index a == toi index b ) { m a = pc . inv mass a ; i a = pc . inv ia ; } float m b = 0f ; float i b = 0f ; if ( index b == toi index a || index b == toi index b ) { m b = pc . inv mass b ; i b = pc . inv ib ; } vec 2 c a = m positions [ index a ] . c ; float a a = m positions [ index a ] . a ; vec 2 c b = m positions [ index b ] . c ; float a b = m positions [ index b ] . a ; for ( int j = 0 ; j < point count ; ++ j ) { final rot xf aq = xf a . q ; final rot xf bq = xf b . q ; xf aq . set ( a a ) ; xf bq . set ( a b ) ; xf a . p . x = c a . x - xf aq . c * local center ax + xf aq . s * local center ay ; xf a . p . y = c a . y - xf aq . s * local center ax - xf aq . c * local center ay ; xf b . p . x = c b . x - xf bq . c * local center bx + xf bq . s * local center by ; xf b . p . y = c b . y - xf bq . s * local center bx - xf bq . c * local center by ; final position solver manifold psm = psolver ; psm . initialize ( pc , xf a , xf b , j ) ; vec 2 normal = psm . normal ; vec 2 point = psm . point ; float separation = psm . separation ; float r ax = point . x - c a . x ; float r ay = point . y - c a . y ; float r bx = point . x - c b . x ; float r by = point . y - c b . y ; min separation = math utils . min ( min separation , separation ) ; float c = math utils . clamp ( settings . toi baugarte * ( separation + settings . linear slop ) , - settings . max linear correction , 0.0f ) ; float rn a = r ax * normal . y - r ay * normal . x ; float rn b = r bx * normal . y - r by * normal . x ; float k = m a + m b + i a * rn a * rn a + i b * rn b * rn b ; float impulse = k > 0.0f ? - c / k : 0.0f ; float px = normal . x * impulse ; float py = normal . y * impulse ; c a . x -= px * m a ; c a . y -= py * m a ; a a -= i a * ( r ax * py - r ay * px ) ; c b . x += px * m b ; c b . y += py * m b ; a b += i b * ( r bx * py - r by * px ) ; } m positions [ index a ] . a = a a ; m positions [ index b ] . a = a b ; } return min separation >= - 1.5f * settings . linear slop ; } <SENTENCE_END/>

toi

<SENTENCE_START> { float min separation = 0.0f ; for ( int i = 0 ; i < m count ; ++ i ) { contact position constraint pc = m position constraints [ i ] ; int index a = pc . index a ; int index b = pc . index b ; vec 2 local center a = pc . local center a ; vec 2 local center b = pc . local center b ; final float local center ax = local center a . x ; final float local center ay = local center a . y ; final float local center bx = local center b . x ; final float local center by = local center b . y ; int point count = pc . point count ; float m a = 0.0f ; float i a = 0.0f ; if ( index a == toi index a || index a == toi index b ) { m a = pc . inv mass a ; i a = pc . inv ia ; } float m b = 0f ; float i b = 0f ; if ( index b == toi index a || index b == toi index b ) { m b = pc . inv mass b ; i b = pc . inv ib ; } vec 2 c a = m positions [ index a ] . c ; float a a = m positions [ index a ] . a ; vec 2 c b = m positions [ index b ] . c ; float a b = m positions [ index b ] . a ; for ( int j = 0 ; j < point count ; ++ j ) { final rot xf aq = xf a . q ; final rot xf bq = xf b . q ; xf aq . set ( a a ) ; xf bq . set ( a b ) ; xf a . p . x = c a . x - xf aq . c * local center ax + xf aq . s * local center ay ; xf a . p . y = c a . y - xf aq . s * local center ax - xf aq . c * local center ay ; xf b . p . x = c b . x - xf bq . c * local center bx + xf bq . s * local center by ; xf b . p . y = c b . y - xf bq . s * local center bx - xf bq . c * local center by ; final position solver manifold psm = psolver ; psm . initialize ( pc , xf a , xf b , j ) ; vec 2 normal = psm . normal ; vec 2 point = psm . point ; float separation = psm . separation ; float r ax = point . x - c a . x ; float r ay = point . y - c a . y ; float r bx = point . x - c b . x ; float r by = point . y - c b . y ; min separation = math utils . min ( min separation , separation ) ; float c = math utils . clamp ( settings . toi baugarte * ( separation + settings . linear slop ) , - settings . max linear correction , 0.0f ) ; float rn a = r ax * normal . y - r ay * normal . x ; float rn b = r bx * normal . y - r by * normal . x ; float k = m a + m b + i a * rn a * rn a + i b * rn b * rn b ; float impulse = k > 0.0f ? - c / k : 0.0f ; float px = normal . x * impulse ; float py = normal . y * impulse ; c a . x -= px * m a ; c a . y -= py * m a ; a a -= i a * ( r ax * py - r ay * px ) ; c b . x += px * m b ; c b . y += py * m b ; a b += i b * ( r bx * py - r by * px ) ; } m positions [ index a ] . a = a a ; m positions [ index b ] . a = a b ; } return min separation >= - 1.5f * settings . linear slop ; } <SENTENCE_END/>

(Copy Probability: 6.8%)

<SENTENCE_START> { float min separation = 0.0f ; for ( int i = 0 ; i < m count ; ++ i ) { contact position constraint pc = m position constraints [ i ] ; int index a = pc . index a ; int index b = pc . index b ; vec 2 local center a = pc . local center a ; vec 2 local center b = pc . local center b ; final float local center ax = local center a . x ; final float local center ay = local center a . y ; final float local center bx = local center b . x ; final float local center by = local center b . y ; int point count = pc . point count ; float m a = 0.0f ; float i a = 0.0f ; if ( index a == toi index a || index a == toi index b ) { m a = pc . inv mass a ; i a = pc . inv ia ; } float m b = 0f ; float i b = 0f ; if ( index b == toi index a || index b == toi index b ) { m b = pc . inv mass b ; i b = pc . inv ib ; } vec 2 c a = m positions [ index a ] . c ; float a a = m positions [ index a ] . a ; vec 2 c b = m positions [ index b ] . c ; float a b = m positions [ index b ] . a ; for ( int j = 0 ; j < point count ; ++ j ) { final rot xf aq = xf a . q ; final rot xf bq = xf b . q ; xf aq . set ( a a ) ; xf bq . set ( a b ) ; xf a . p . x = c a . x - xf aq . c * local center ax + xf aq . s * local center ay ; xf a . p . y = c a . y - xf aq . s * local center ax - xf aq . c * local center ay ; xf b . p . x = c b . x - xf bq . c * local center bx + xf bq . s * local center by ; xf b . p . y = c b . y - xf bq . s * local center bx - xf bq . c * local center by ; final position solver manifold psm = psolver ; psm . initialize ( pc , xf a , xf b , j ) ; vec 2 normal = psm . normal ; vec 2 point = psm . point ; float separation = psm . separation ; float r ax = point . x - c a . x ; float r ay = point . y - c a . y ; float r bx = point . x - c b . x ; float r by = point . y - c b . y ; min separation = math utils . min ( min separation , separation ) ; float c = math utils . clamp ( settings . toi baugarte * ( separation + settings . linear slop ) , - settings . max linear correction , 0.0f ) ; float rn a = r ax * normal . y - r ay * normal . x ; float rn b = r bx * normal . y - r by * normal . x ; float k = m a + m b + i a * rn a * rn a + i b * rn b * rn b ; float impulse = k > 0.0f ? - c / k : 0.0f ; float px = normal . x * impulse ; float py = normal . y * impulse ; c a . x -= px * m a ; c a . y -= py * m a ; a a -= i a * ( r ax * py - r ay * px ) ; c b . x += px * m b ; c b . y += py * m b ; a b += i b * ( r bx * py - r by * px ) ; } m positions [ index a ] . a = a a ; m positions [ index b ] . a = a b ; } return min separation >= - 1.5f * settings . linear slop ; } <SENTENCE_END/>

position

<SENTENCE_START> { float min separation = 0.0f ; for ( int i = 0 ; i < m count ; ++ i ) { contact position constraint pc = m position constraints [ i ] ; int index a = pc . index a ; int index b = pc . index b ; vec 2 local center a = pc . local center a ; vec 2 local center b = pc . local center b ; final float local center ax = local center a . x ; final float local center ay = local center a . y ; final float local center bx = local center b . x ; final float local center by = local center b . y ; int point count = pc . point count ; float m a = 0.0f ; float i a = 0.0f ; if ( index a == toi index a || index a == toi index b ) { m a = pc . inv mass a ; i a = pc . inv ia ; } float m b = 0f ; float i b = 0f ; if ( index b == toi index a || index b == toi index b ) { m b = pc . inv mass b ; i b = pc . inv ib ; } vec 2 c a = m positions [ index a ] . c ; float a a = m positions [ index a ] . a ; vec 2 c b = m positions [ index b ] . c ; float a b = m positions [ index b ] . a ; for ( int j = 0 ; j < point count ; ++ j ) { final rot xf aq = xf a . q ; final rot xf bq = xf b . q ; xf aq . set ( a a ) ; xf bq . set ( a b ) ; xf a . p . x = c a . x - xf aq . c * local center ax + xf aq . s * local center ay ; xf a . p . y = c a . y - xf aq . s * local center ax - xf aq . c * local center ay ; xf b . p . x = c b . x - xf bq . c * local center bx + xf bq . s * local center by ; xf b . p . y = c b . y - xf bq . s * local center bx - xf bq . c * local center by ; final position solver manifold psm = psolver ; psm . initialize ( pc , xf a , xf b , j ) ; vec 2 normal = psm . normal ; vec 2 point = psm . point ; float separation = psm . separation ; float r ax = point . x - c a . x ; float r ay = point . y - c a . y ; float r bx = point . x - c b . x ; float r by = point . y - c b . y ; min separation = math utils . min ( min separation , separation ) ; float c = math utils . clamp ( settings . toi baugarte * ( separation + settings . linear slop ) , - settings . max linear correction , 0.0f ) ; float rn a = r ax * normal . y - r ay * normal . x ; float rn b = r bx * normal . y - r by * normal . x ; float k = m a + m b + i a * rn a * rn a + i b * rn b * rn b ; float impulse = k > 0.0f ? - c / k : 0.0f ; float px = normal . x * impulse ; float py = normal . y * impulse ; c a . x -= px * m a ; c a . y -= py * m a ; a a -= i a * ( r ax * py - r ay * px ) ; c b . x += px * m b ; c b . y += py * m b ; a b += i b * ( r bx * py - r by * px ) ; } m positions [ index a ] . a = a a ; m positions [ index b ] . a = a b ; } return min separation >= - 1.5f * settings . linear slop ; } <SENTENCE_END/>

(Copy Probability: 9.2%)

<SENTENCE_START> { float min separation = 0.0f ; for ( int i = 0 ; i < m count ; ++ i ) { contact position constraint pc = m position constraints [ i ] ; int index a = pc . index a ; int index b = pc . index b ; vec 2 local center a = pc . local center a ; vec 2 local center b = pc . local center b ; final float local center ax = local center a . x ; final float local center ay = local center a . y ; final float local center bx = local center b . x ; final float local center by = local center b . y ; int point count = pc . point count ; float m a = 0.0f ; float i a = 0.0f ; if ( index a == toi index a || index a == toi index b ) { m a = pc . inv mass a ; i a = pc . inv ia ; } float m b = 0f ; float i b = 0f ; if ( index b == toi index a || index b == toi index b ) { m b = pc . inv mass b ; i b = pc . inv ib ; } vec 2 c a = m positions [ index a ] . c ; float a a = m positions [ index a ] . a ; vec 2 c b = m positions [ index b ] . c ; float a b = m positions [ index b ] . a ; for ( int j = 0 ; j < point count ; ++ j ) { final rot xf aq = xf a . q ; final rot xf bq = xf b . q ; xf aq . set ( a a ) ; xf bq . set ( a b ) ; xf a . p . x = c a . x - xf aq . c * local center ax + xf aq . s * local center ay ; xf a . p . y = c a . y - xf aq . s * local center ax - xf aq . c * local center ay ; xf b . p . x = c b . x - xf bq . c * local center bx + xf bq . s * local center by ; xf b . p . y = c b . y - xf bq . s * local center bx - xf bq . c * local center by ; final position solver manifold psm = psolver ; psm . initialize ( pc , xf a , xf b , j ) ; vec 2 normal = psm . normal ; vec 2 point = psm . point ; float separation = psm . separation ; float r ax = point . x - c a . x ; float r ay = point . y - c a . y ; float r bx = point . x - c b . x ; float r by = point . y - c b . y ; min separation = math utils . min ( min separation , separation ) ; float c = math utils . clamp ( settings . toi baugarte * ( separation + settings . linear slop ) , - settings . max linear correction , 0.0f ) ; float rn a = r ax * normal . y - r ay * normal . x ; float rn b = r bx * normal . y - r by * normal . x ; float k = m a + m b + i a * rn a * rn a + i b * rn b * rn b ; float impulse = k > 0.0f ? - c / k : 0.0f ; float px = normal . x * impulse ; float py = normal . y * impulse ; c a . x -= px * m a ; c a . y -= py * m a ; a a -= i a * ( r ax * py - r ay * px ) ; c b . x += px * m b ; c b . y += py * m b ; a b += i b * ( r bx * py - r by * px ) ; } m positions [ index a ] . a = a a ; m positions [ index b ] . a = a b ; } return min separation >= - 1.5f * settings . linear slop ; } <SENTENCE_END/>

constraints

<SENTENCE_START> { float min separation = 0.0f ; for ( int i = 0 ; i < m count ; ++ i ) { contact position constraint pc = m position constraints [ i ] ; int index a = pc . index a ; int index b = pc . index b ; vec 2 local center a = pc . local center a ; vec 2 local center b = pc . local center b ; final float local center ax = local center a . x ; final float local center ay = local center a . y ; final float local center bx = local center b . x ; final float local center by = local center b . y ; int point count = pc . point count ; float m a = 0.0f ; float i a = 0.0f ; if ( index a == toi index a || index a == toi index b ) { m a = pc . inv mass a ; i a = pc . inv ia ; } float m b = 0f ; float i b = 0f ; if ( index b == toi index a || index b == toi index b ) { m b = pc . inv mass b ; i b = pc . inv ib ; } vec 2 c a = m positions [ index a ] . c ; float a a = m positions [ index a ] . a ; vec 2 c b = m positions [ index b ] . c ; float a b = m positions [ index b ] . a ; for ( int j = 0 ; j < point count ; ++ j ) { final rot xf aq = xf a . q ; final rot xf bq = xf b . q ; xf aq . set ( a a ) ; xf bq . set ( a b ) ; xf a . p . x = c a . x - xf aq . c * local center ax + xf aq . s * local center ay ; xf a . p . y = c a . y - xf aq . s * local center ax - xf aq . c * local center ay ; xf b . p . x = c b . x - xf bq . c * local center bx + xf bq . s * local center by ; xf b . p . y = c b . y - xf bq . s * local center bx - xf bq . c * local center by ; final position solver manifold psm = psolver ; psm . initialize ( pc , xf a , xf b , j ) ; vec 2 normal = psm . normal ; vec 2 point = psm . point ; float separation = psm . separation ; float r ax = point . x - c a . x ; float r ay = point . y - c a . y ; float r bx = point . x - c b . x ; float r by = point . y - c b . y ; min separation = math utils . min ( min separation , separation ) ; float c = math utils . clamp ( settings . toi baugarte * ( separation + settings . linear slop ) , - settings . max linear correction , 0.0f ) ; float rn a = r ax * normal . y - r ay * normal . x ; float rn b = r bx * normal . y - r by * normal . x ; float k = m a + m b + i a * rn a * rn a + i b * rn b * rn b ; float impulse = k > 0.0f ? - c / k : 0.0f ; float px = normal . x * impulse ; float py = normal . y * impulse ; c a . x -= px * m a ; c a . y -= py * m a ; a a -= i a * ( r ax * py - r ay * px ) ; c b . x += px * m b ; c b . y += py * m b ; a b += i b * ( r bx * py - r by * px ) ; } m positions [ index a ] . a = a a ; m positions [ index b ] . a = a b ; } return min separation >= - 1.5f * settings . linear slop ; } <SENTENCE_END/>

(Copy Probability: 5.5%)

<SENTENCE_START> { float min separation = 0.0f ; for ( int i = 0 ; i < m count ; ++ i ) { contact position constraint pc = m position constraints [ i ] ; int index a = pc . index a ; int index b = pc . index b ; vec 2 local center a = pc . local center a ; vec 2 local center b = pc . local center b ; final float local center ax = local center a . x ; final float local center ay = local center a . y ; final float local center bx = local center b . x ; final float local center by = local center b . y ; int point count = pc . point count ; float m a = 0.0f ; float i a = 0.0f ; if ( index a == toi index a || index a == toi index b ) { m a = pc . inv mass a ; i a = pc . inv ia ; } float m b = 0f ; float i b = 0f ; if ( index b == toi index a || index b == toi index b ) { m b = pc . inv mass b ; i b = pc . inv ib ; } vec 2 c a = m positions [ index a ] . c ; float a a = m positions [ index a ] . a ; vec 2 c b = m positions [ index b ] . c ; float a b = m positions [ index b ] . a ; for ( int j = 0 ; j < point count ; ++ j ) { final rot xf aq = xf a . q ; final rot xf bq = xf b . q ; xf aq . set ( a a ) ; xf bq . set ( a b ) ; xf a . p . x = c a . x - xf aq . c * local center ax + xf aq . s * local center ay ; xf a . p . y = c a . y - xf aq . s * local center ax - xf aq . c * local center ay ; xf b . p . x = c b . x - xf bq . c * local center bx + xf bq . s * local center by ; xf b . p . y = c b . y - xf bq . s * local center bx - xf bq . c * local center by ; final position solver manifold psm = psolver ; psm . initialize ( pc , xf a , xf b , j ) ; vec 2 normal = psm . normal ; vec 2 point = psm . point ; float separation = psm . separation ; float r ax = point . x - c a . x ; float r ay = point . y - c a . y ; float r bx = point . x - c b . x ; float r by = point . y - c b . y ; min separation = math utils . min ( min separation , separation ) ; float c = math utils . clamp ( settings . toi baugarte * ( separation + settings . linear slop ) , - settings . max linear correction , 0.0f ) ; float rn a = r ax * normal . y - r ay * normal . x ; float rn b = r bx * normal . y - r by * normal . x ; float k = m a + m b + i a * rn a * rn a + i b * rn b * rn b ; float impulse = k > 0.0f ? - c / k : 0.0f ; float px = normal . x * impulse ; float py = normal . y * impulse ; c a . x -= px * m a ; c a . y -= py * m a ; a a -= i a * ( r ax * py - r ay * px ) ; c b . x += px * m b ; c b . y += py * m b ; a b += i b * ( r bx * py - r by * px ) ; } m positions [ index a ] . a = a a ; m positions [ index b ] . a = a b ; } return min separation >= - 1.5f * settings . linear slop ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { float min separation = 0.0f ; for ( int i = 0 ; i < m count ; ++ i ) { contact position constraint pc = m position constraints [ i ] ; int index a = pc . index a ; int index b = pc . index b ; vec 2 local center a = pc . local center a ; vec 2 local center b = pc . local center b ; final float local center ax = local center a . x ; final float local center ay = local center a . y ; final float local center bx = local center b . x ; final float local center by = local center b . y ; int point count = pc . point count ; float m a = 0.0f ; float i a = 0.0f ; if ( index a == toi index a || index a == toi index b ) { m a = pc . inv mass a ; i a = pc . inv ia ; } float m b = 0f ; float i b = 0f ; if ( index b == toi index a || index b == toi index b ) { m b = pc . inv mass b ; i b = pc . inv ib ; } vec 2 c a = m positions [ index a ] . c ; float a a = m positions [ index a ] . a ; vec 2 c b = m positions [ index b ] . c ; float a b = m positions [ index b ] . a ; for ( int j = 0 ; j < point count ; ++ j ) { final rot xf aq = xf a . q ; final rot xf bq = xf b . q ; xf aq . set ( a a ) ; xf bq . set ( a b ) ; xf a . p . x = c a . x - xf aq . c * local center ax + xf aq . s * local center ay ; xf a . p . y = c a . y - xf aq . s * local center ax - xf aq . c * local center ay ; xf b . p . x = c b . x - xf bq . c * local center bx + xf bq . s * local center by ; xf b . p . y = c b . y - xf bq . s * local center bx - xf bq . c * local center by ; final position solver manifold psm = psolver ; psm . initialize ( pc , xf a , xf b , j ) ; vec 2 normal = psm . normal ; vec 2 point = psm . point ; float separation = psm . separation ; float r ax = point . x - c a . x ; float r ay = point . y - c a . y ; float r bx = point . x - c b . x ; float r by = point . y - c b . y ; min separation = math utils . min ( min separation , separation ) ; float c = math utils . clamp ( settings . toi baugarte * ( separation + settings . linear slop ) , - settings . max linear correction , 0.0f ) ; float rn a = r ax * normal . y - r ay * normal . x ; float rn b = r bx * normal . y - r by * normal . x ; float k = m a + m b + i a * rn a * rn a + i b * rn b * rn b ; float impulse = k > 0.0f ? - c / k : 0.0f ; float px = normal . x * impulse ; float py = normal . y * impulse ; c a . x -= px * m a ; c a . y -= py * m a ; a a -= i a * ( r ax * py - r ay * px ) ; c b . x += px * m b ; c b . y += py * m b ; a b += i b * ( r bx * py - r by * px ) ; } m positions [ index a ] . a = a a ; m positions [ index b ] . a = a b ; } return min separation >= - 1.5f * settings . linear slop ; } <SENTENCE_END/>

(Copy Probability: 4.2%)

<SENTENCE_START> { float min separation = 0.0f ; for ( int i = 0 ; i < m count ; ++ i ) { contact position constraint pc = m position constraints [ i ] ; int index a = pc . index a ; int index b = pc . index b ; vec 2 local center a = pc . local center a ; vec 2 local center b = pc . local center b ; final float local center ax = local center a . x ; final float local center ay = local center a . y ; final float local center bx = local center b . x ; final float local center by = local center b . y ; int point count = pc . point count ; float m a = 0.0f ; float i a = 0.0f ; if ( index a == toi index a || index a == toi index b ) { m a = pc . inv mass a ; i a = pc . inv ia ; } float m b = 0f ; float i b = 0f ; if ( index b == toi index a || index b == toi index b ) { m b = pc . inv mass b ; i b = pc . inv ib ; } vec 2 c a = m positions [ index a ] . c ; float a a = m positions [ index a ] . a ; vec 2 c b = m positions [ index b ] . c ; float a b = m positions [ index b ] . a ; for ( int j = 0 ; j < point count ; ++ j ) { final rot xf aq = xf a . q ; final rot xf bq = xf b . q ; xf aq . set ( a a ) ; xf bq . set ( a b ) ; xf a . p . x = c a . x - xf aq . c * local center ax + xf aq . s * local center ay ; xf a . p . y = c a . y - xf aq . s * local center ax - xf aq . c * local center ay ; xf b . p . x = c b . x - xf bq . c * local center bx + xf bq . s * local center by ; xf b . p . y = c b . y - xf bq . s * local center bx - xf bq . c * local center by ; final position solver manifold psm = psolver ; psm . initialize ( pc , xf a , xf b , j ) ; vec 2 normal = psm . normal ; vec 2 point = psm . point ; float separation = psm . separation ; float r ax = point . x - c a . x ; float r ay = point . y - c a . y ; float r bx = point . x - c b . x ; float r by = point . y - c b . y ; min separation = math utils . min ( min separation , separation ) ; float c = math utils . clamp ( settings . toi baugarte * ( separation + settings . linear slop ) , - settings . max linear correction , 0.0f ) ; float rn a = r ax * normal . y - r ay * normal . x ; float rn b = r bx * normal . y - r by * normal . x ; float k = m a + m b + i a * rn a * rn a + i b * rn b * rn b ; float impulse = k > 0.0f ? - c / k : 0.0f ; float px = normal . x * impulse ; float py = normal . y * impulse ; c a . x -= px * m a ; c a . y -= py * m a ; a a -= i a * ( r ax * py - r ay * px ) ; c b . x += px * m b ; c b . y += py * m b ; a b += i b * ( r bx * py - r by * px ) ; } m positions [ index a ] . a = a a ; m positions [ index b ] . a = a b ; } return min separation >= - 1.5f * settings . linear slop ; } <SENTENCE_END/>


Original Name initialize

initialize

<SENTENCE_START> { assert ( pc . point count > 0 ) ; final rot xf aq = xf a . q ; final rot xf bq = xf b . q ; final vec 2 pc local points i = pc . local points [ index ] ; switch ( pc . type ) { case circles : { final vec 2 plocal point = pc . local point ; final vec 2 p local points 0 = pc . local points [ 0 ] ; final float point ax = ( xf aq . c * plocal point . x - xf aq . s * plocal point . y ) + xf a . p . x ; final float point ay = ( xf aq . s * plocal point . x + xf aq . c * plocal point . y ) + xf a . p . y ; final float point bx = ( xf bq . c * p local points 0 . x - xf bq . s * p local points 0 . y ) + xf b . p . x ; final float point by = ( xf bq . s * p local points 0 . x + xf bq . c * p local points 0 . y ) + xf b . p . y ; normal . x = point bx - point ax ; normal . y = point by - point ay ; normal . normalize ( ) ; point . x = ( point ax + point bx ) * .5f ; point . y = ( point ay + point by ) * .5f ; final float tempx = point bx - point ax ; final float tempy = point by - point ay ; separation = tempx * normal . x + tempy * normal . y - pc . radius a - pc . radius b ; break ; } case face a : { final vec 2 pc local normal = pc . local normal ; final vec 2 pc local point = pc . local point ; normal . x = xf aq . c * pc local normal . x - xf aq . s * pc local normal . y ; normal . y = xf aq . s * pc local normal . x + xf aq . c * pc local normal . y ; final float plane pointx = ( xf aq . c * pc local point . x - xf aq . s * pc local point . y ) + xf a . p . x ; final float plane pointy = ( xf aq . s * pc local point . x + xf aq . c * pc local point . y ) + xf a . p . y ; final float clip pointx = ( xf bq . c * pc local points i . x - xf bq . s * pc local points i . y ) + xf b . p . x ; final float clip pointy = ( xf bq . s * pc local points i . x + xf bq . c * pc local points i . y ) + xf b . p . y ; final float tempx = clip pointx - plane pointx ; final float tempy = clip pointy - plane pointy ; separation = tempx * normal . x + tempy * normal . y - pc . radius a - pc . radius b ; point . x = clip pointx ; point . y = clip pointy ; break ; } case face b : { final vec 2 pc local normal = pc . local normal ; final vec 2 pc local point = pc . local point ; normal . x = xf bq . c * pc local normal . x - xf bq . s * pc local normal . y ; normal . y = xf bq . s * pc local normal . x + xf bq . c * pc local normal . y ; final float plane pointx = ( xf bq . c * pc local point . x - xf bq . s * pc local point . y ) + xf b . p . x ; final float plane pointy = ( xf bq . s * pc local point . x + xf bq . c * pc local point . y ) + xf b . p . y ; final float clip pointx = ( xf aq . c * pc local points i . x - xf aq . s * pc local points i . y ) + xf a . p . x ; final float clip pointy = ( xf aq . s * pc local points i . x + xf aq . c * pc local points i . y ) + xf a . p . y ; final float tempx = clip pointx - plane pointx ; final float tempy = clip pointy - plane pointy ; separation = tempx * normal . x + tempy * normal . y - pc . radius a - pc . radius b ; point . x = clip pointx ; point . y = clip pointy ; normal . x *= - 1 ; normal . y *= - 1 ; } break ; } } <SENTENCE_END/>

(Copy Probability: 3.5%)

<SENTENCE_START> { assert ( pc . point count > 0 ) ; final rot xf aq = xf a . q ; final rot xf bq = xf b . q ; final vec 2 pc local points i = pc . local points [ index ] ; switch ( pc . type ) { case circles : { final vec 2 plocal point = pc . local point ; final vec 2 p local points 0 = pc . local points [ 0 ] ; final float point ax = ( xf aq . c * plocal point . x - xf aq . s * plocal point . y ) + xf a . p . x ; final float point ay = ( xf aq . s * plocal point . x + xf aq . c * plocal point . y ) + xf a . p . y ; final float point bx = ( xf bq . c * p local points 0 . x - xf bq . s * p local points 0 . y ) + xf b . p . x ; final float point by = ( xf bq . s * p local points 0 . x + xf bq . c * p local points 0 . y ) + xf b . p . y ; normal . x = point bx - point ax ; normal . y = point by - point ay ; normal . normalize ( ) ; point . x = ( point ax + point bx ) * .5f ; point . y = ( point ay + point by ) * .5f ; final float tempx = point bx - point ax ; final float tempy = point by - point ay ; separation = tempx * normal . x + tempy * normal . y - pc . radius a - pc . radius b ; break ; } case face a : { final vec 2 pc local normal = pc . local normal ; final vec 2 pc local point = pc . local point ; normal . x = xf aq . c * pc local normal . x - xf aq . s * pc local normal . y ; normal . y = xf aq . s * pc local normal . x + xf aq . c * pc local normal . y ; final float plane pointx = ( xf aq . c * pc local point . x - xf aq . s * pc local point . y ) + xf a . p . x ; final float plane pointy = ( xf aq . s * pc local point . x + xf aq . c * pc local point . y ) + xf a . p . y ; final float clip pointx = ( xf bq . c * pc local points i . x - xf bq . s * pc local points i . y ) + xf b . p . x ; final float clip pointy = ( xf bq . s * pc local points i . x + xf bq . c * pc local points i . y ) + xf b . p . y ; final float tempx = clip pointx - plane pointx ; final float tempy = clip pointy - plane pointy ; separation = tempx * normal . x + tempy * normal . y - pc . radius a - pc . radius b ; point . x = clip pointx ; point . y = clip pointy ; break ; } case face b : { final vec 2 pc local normal = pc . local normal ; final vec 2 pc local point = pc . local point ; normal . x = xf bq . c * pc local normal . x - xf bq . s * pc local normal . y ; normal . y = xf bq . s * pc local normal . x + xf bq . c * pc local normal . y ; final float plane pointx = ( xf bq . c * pc local point . x - xf bq . s * pc local point . y ) + xf b . p . x ; final float plane pointy = ( xf bq . s * pc local point . x + xf bq . c * pc local point . y ) + xf b . p . y ; final float clip pointx = ( xf aq . c * pc local points i . x - xf aq . s * pc local points i . y ) + xf a . p . x ; final float clip pointy = ( xf aq . s * pc local points i . x + xf aq . c * pc local points i . y ) + xf a . p . y ; final float tempx = clip pointx - plane pointx ; final float tempy = clip pointy - plane pointy ; separation = tempx * normal . x + tempy * normal . y - pc . radius a - pc . radius b ; point . x = clip pointx ; point . y = clip pointy ; normal . x *= - 1 ; normal . y *= - 1 ; } break ; } } <SENTENCE_END/>

%END%

<SENTENCE_START> { assert ( pc . point count > 0 ) ; final rot xf aq = xf a . q ; final rot xf bq = xf b . q ; final vec 2 pc local points i = pc . local points [ index ] ; switch ( pc . type ) { case circles : { final vec 2 plocal point = pc . local point ; final vec 2 p local points 0 = pc . local points [ 0 ] ; final float point ax = ( xf aq . c * plocal point . x - xf aq . s * plocal point . y ) + xf a . p . x ; final float point ay = ( xf aq . s * plocal point . x + xf aq . c * plocal point . y ) + xf a . p . y ; final float point bx = ( xf bq . c * p local points 0 . x - xf bq . s * p local points 0 . y ) + xf b . p . x ; final float point by = ( xf bq . s * p local points 0 . x + xf bq . c * p local points 0 . y ) + xf b . p . y ; normal . x = point bx - point ax ; normal . y = point by - point ay ; normal . normalize ( ) ; point . x = ( point ax + point bx ) * .5f ; point . y = ( point ay + point by ) * .5f ; final float tempx = point bx - point ax ; final float tempy = point by - point ay ; separation = tempx * normal . x + tempy * normal . y - pc . radius a - pc . radius b ; break ; } case face a : { final vec 2 pc local normal = pc . local normal ; final vec 2 pc local point = pc . local point ; normal . x = xf aq . c * pc local normal . x - xf aq . s * pc local normal . y ; normal . y = xf aq . s * pc local normal . x + xf aq . c * pc local normal . y ; final float plane pointx = ( xf aq . c * pc local point . x - xf aq . s * pc local point . y ) + xf a . p . x ; final float plane pointy = ( xf aq . s * pc local point . x + xf aq . c * pc local point . y ) + xf a . p . y ; final float clip pointx = ( xf bq . c * pc local points i . x - xf bq . s * pc local points i . y ) + xf b . p . x ; final float clip pointy = ( xf bq . s * pc local points i . x + xf bq . c * pc local points i . y ) + xf b . p . y ; final float tempx = clip pointx - plane pointx ; final float tempy = clip pointy - plane pointy ; separation = tempx * normal . x + tempy * normal . y - pc . radius a - pc . radius b ; point . x = clip pointx ; point . y = clip pointy ; break ; } case face b : { final vec 2 pc local normal = pc . local normal ; final vec 2 pc local point = pc . local point ; normal . x = xf bq . c * pc local normal . x - xf bq . s * pc local normal . y ; normal . y = xf bq . s * pc local normal . x + xf bq . c * pc local normal . y ; final float plane pointx = ( xf bq . c * pc local point . x - xf bq . s * pc local point . y ) + xf b . p . x ; final float plane pointy = ( xf bq . s * pc local point . x + xf bq . c * pc local point . y ) + xf b . p . y ; final float clip pointx = ( xf aq . c * pc local points i . x - xf aq . s * pc local points i . y ) + xf a . p . x ; final float clip pointy = ( xf aq . s * pc local points i . x + xf aq . c * pc local points i . y ) + xf a . p . y ; final float tempx = clip pointx - plane pointx ; final float tempy = clip pointy - plane pointy ; separation = tempx * normal . x + tempy * normal . y - pc . radius a - pc . radius b ; point . x = clip pointx ; point . y = clip pointy ; normal . x *= - 1 ; normal . y *= - 1 ; } break ; } } <SENTENCE_END/>

(Copy Probability: 7.2%)

<SENTENCE_START> { assert ( pc . point count > 0 ) ; final rot xf aq = xf a . q ; final rot xf bq = xf b . q ; final vec 2 pc local points i = pc . local points [ index ] ; switch ( pc . type ) { case circles : { final vec 2 plocal point = pc . local point ; final vec 2 p local points 0 = pc . local points [ 0 ] ; final float point ax = ( xf aq . c * plocal point . x - xf aq . s * plocal point . y ) + xf a . p . x ; final float point ay = ( xf aq . s * plocal point . x + xf aq . c * plocal point . y ) + xf a . p . y ; final float point bx = ( xf bq . c * p local points 0 . x - xf bq . s * p local points 0 . y ) + xf b . p . x ; final float point by = ( xf bq . s * p local points 0 . x + xf bq . c * p local points 0 . y ) + xf b . p . y ; normal . x = point bx - point ax ; normal . y = point by - point ay ; normal . normalize ( ) ; point . x = ( point ax + point bx ) * .5f ; point . y = ( point ay + point by ) * .5f ; final float tempx = point bx - point ax ; final float tempy = point by - point ay ; separation = tempx * normal . x + tempy * normal . y - pc . radius a - pc . radius b ; break ; } case face a : { final vec 2 pc local normal = pc . local normal ; final vec 2 pc local point = pc . local point ; normal . x = xf aq . c * pc local normal . x - xf aq . s * pc local normal . y ; normal . y = xf aq . s * pc local normal . x + xf aq . c * pc local normal . y ; final float plane pointx = ( xf aq . c * pc local point . x - xf aq . s * pc local point . y ) + xf a . p . x ; final float plane pointy = ( xf aq . s * pc local point . x + xf aq . c * pc local point . y ) + xf a . p . y ; final float clip pointx = ( xf bq . c * pc local points i . x - xf bq . s * pc local points i . y ) + xf b . p . x ; final float clip pointy = ( xf bq . s * pc local points i . x + xf bq . c * pc local points i . y ) + xf b . p . y ; final float tempx = clip pointx - plane pointx ; final float tempy = clip pointy - plane pointy ; separation = tempx * normal . x + tempy * normal . y - pc . radius a - pc . radius b ; point . x = clip pointx ; point . y = clip pointy ; break ; } case face b : { final vec 2 pc local normal = pc . local normal ; final vec 2 pc local point = pc . local point ; normal . x = xf bq . c * pc local normal . x - xf bq . s * pc local normal . y ; normal . y = xf bq . s * pc local normal . x + xf bq . c * pc local normal . y ; final float plane pointx = ( xf bq . c * pc local point . x - xf bq . s * pc local point . y ) + xf b . p . x ; final float plane pointy = ( xf bq . s * pc local point . x + xf bq . c * pc local point . y ) + xf b . p . y ; final float clip pointx = ( xf aq . c * pc local points i . x - xf aq . s * pc local points i . y ) + xf a . p . x ; final float clip pointy = ( xf aq . s * pc local points i . x + xf aq . c * pc local points i . y ) + xf a . p . y ; final float tempx = clip pointx - plane pointx ; final float tempy = clip pointy - plane pointy ; separation = tempx * normal . x + tempy * normal . y - pc . radius a - pc . radius b ; point . x = clip pointx ; point . y = clip pointy ; normal . x *= - 1 ; normal . y *= - 1 ; } break ; } } <SENTENCE_END/>


Original Name begin

begin

<SENTENCE_START> { last percent = 0 ; } <SENTENCE_END/>

(Copy Probability: 0.6%)

<SENTENCE_START> { last percent = 0 ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { last percent = 0 ; } <SENTENCE_END/>

(Copy Probability: 30.3%)

<SENTENCE_START> { last percent = 0 ; } <SENTENCE_END/>


Original Name update

update

<SENTENCE_START> { update relative ( percent - last percent ) ; last percent = percent ; } <SENTENCE_END/>

(Copy Probability: 1.0%)

<SENTENCE_START> { update relative ( percent - last percent ) ; last percent = percent ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { update relative ( percent - last percent ) ; last percent = percent ; } <SENTENCE_END/>

(Copy Probability: 45.2%)

<SENTENCE_START> { update relative ( percent - last percent ) ; last percent = percent ; } <SENTENCE_END/>


Original Name get,c,ptr

get

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

(Copy Probability: 1.5%)

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

c

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

(Copy Probability: 99.7%)

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

ptr

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

(Copy Probability: 99.8%)

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

(Copy Probability: 3.7%)

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>


Original Name get,dispatcher,flags

get

<SENTENCE_START> { return collision jni . bt collision dispatcher get dispatcher flags ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 5.2%)

<SENTENCE_START> { return collision jni . bt collision dispatcher get dispatcher flags ( swig c ptr , this ) ; } <SENTENCE_END/>

dispatcher

<SENTENCE_START> { return collision jni . bt collision dispatcher get dispatcher flags ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 99.9%)

<SENTENCE_START> { return collision jni . bt collision dispatcher get dispatcher flags ( swig c ptr , this ) ; } <SENTENCE_END/>

flags

<SENTENCE_START> { return collision jni . bt collision dispatcher get dispatcher flags ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 97.1%)

<SENTENCE_START> { return collision jni . bt collision dispatcher get dispatcher flags ( swig c ptr , this ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return collision jni . bt collision dispatcher get dispatcher flags ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 2.6%)

<SENTENCE_START> { return collision jni . bt collision dispatcher get dispatcher flags ( swig c ptr , this ) ; } <SENTENCE_END/>


Original Name set,dispatcher,flags

set

<SENTENCE_START> { collision jni . bt collision dispatcher set dispatcher flags ( swig c ptr , this , flags ) ; } <SENTENCE_END/>

(Copy Probability: 5.8%)

<SENTENCE_START> { collision jni . bt collision dispatcher set dispatcher flags ( swig c ptr , this , flags ) ; } <SENTENCE_END/>

dispatcher

<SENTENCE_START> { collision jni . bt collision dispatcher set dispatcher flags ( swig c ptr , this , flags ) ; } <SENTENCE_END/>

(Copy Probability: 99.8%)

<SENTENCE_START> { collision jni . bt collision dispatcher set dispatcher flags ( swig c ptr , this , flags ) ; } <SENTENCE_END/>

flags

<SENTENCE_START> { collision jni . bt collision dispatcher set dispatcher flags ( swig c ptr , this , flags ) ; } <SENTENCE_END/>

(Copy Probability: 97.2%)

<SENTENCE_START> { collision jni . bt collision dispatcher set dispatcher flags ( swig c ptr , this , flags ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { collision jni . bt collision dispatcher set dispatcher flags ( swig c ptr , this , flags ) ; } <SENTENCE_END/>

(Copy Probability: 2.3%)

<SENTENCE_START> { collision jni . bt collision dispatcher set dispatcher flags ( swig c ptr , this , flags ) ; } <SENTENCE_END/>


Original Name register,collision,create,func

register

<SENTENCE_START> { collision jni . bt collision dispatcher register collision create func ( swig c ptr , this , proxy type 0 , proxy type 1 , bt collision algorithm create func . get c ptr ( create func ) , create func ) ; } <SENTENCE_END/>

(Copy Probability: 9.3%)

<SENTENCE_START> { collision jni . bt collision dispatcher register collision create func ( swig c ptr , this , proxy type 0 , proxy type 1 , bt collision algorithm create func . get c ptr ( create func ) , create func ) ; } <SENTENCE_END/>

collision

<SENTENCE_START> { collision jni . bt collision dispatcher register collision create func ( swig c ptr , this , proxy type 0 , proxy type 1 , bt collision algorithm create func . get c ptr ( create func ) , create func ) ; } <SENTENCE_END/>

(Copy Probability: 99.6%)

<SENTENCE_START> { collision jni . bt collision dispatcher register collision create func ( swig c ptr , this , proxy type 0 , proxy type 1 , bt collision algorithm create func . get c ptr ( create func ) , create func ) ; } <SENTENCE_END/>

create

<SENTENCE_START> { collision jni . bt collision dispatcher register collision create func ( swig c ptr , this , proxy type 0 , proxy type 1 , bt collision algorithm create func . get c ptr ( create func ) , create func ) ; } <SENTENCE_END/>

(Copy Probability: 97.0%)

<SENTENCE_START> { collision jni . bt collision dispatcher register collision create func ( swig c ptr , this , proxy type 0 , proxy type 1 , bt collision algorithm create func . get c ptr ( create func ) , create func ) ; } <SENTENCE_END/>

func

<SENTENCE_START> { collision jni . bt collision dispatcher register collision create func ( swig c ptr , this , proxy type 0 , proxy type 1 , bt collision algorithm create func . get c ptr ( create func ) , create func ) ; } <SENTENCE_END/>

(Copy Probability: 40.7%)

<SENTENCE_START> { collision jni . bt collision dispatcher register collision create func ( swig c ptr , this , proxy type 0 , proxy type 1 , bt collision algorithm create func . get c ptr ( create func ) , create func ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { collision jni . bt collision dispatcher register collision create func ( swig c ptr , this , proxy type 0 , proxy type 1 , bt collision algorithm create func . get c ptr ( create func ) , create func ) ; } <SENTENCE_END/>

(Copy Probability: 34.0%)

<SENTENCE_START> { collision jni . bt collision dispatcher register collision create func ( swig c ptr , this , proxy type 0 , proxy type 1 , bt collision algorithm create func . get c ptr ( create func ) , create func ) ; } <SENTENCE_END/>


Original Name get,manifold,by,index,internal

get

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get manifold by index internal swig 0 ( swig c ptr , this , index ) ; return ( c ptr == 0 ) ? null : new bt persistent manifold ( c ptr , false ) ; } <SENTENCE_END/>

(Copy Probability: 7.4%)

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get manifold by index internal swig 0 ( swig c ptr , this , index ) ; return ( c ptr == 0 ) ? null : new bt persistent manifold ( c ptr , false ) ; } <SENTENCE_END/>

manifold

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get manifold by index internal swig 0 ( swig c ptr , this , index ) ; return ( c ptr == 0 ) ? null : new bt persistent manifold ( c ptr , false ) ; } <SENTENCE_END/>

(Copy Probability: 99.8%)

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get manifold by index internal swig 0 ( swig c ptr , this , index ) ; return ( c ptr == 0 ) ? null : new bt persistent manifold ( c ptr , false ) ; } <SENTENCE_END/>

by

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get manifold by index internal swig 0 ( swig c ptr , this , index ) ; return ( c ptr == 0 ) ? null : new bt persistent manifold ( c ptr , false ) ; } <SENTENCE_END/>

(Copy Probability: 100.0%)

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get manifold by index internal swig 0 ( swig c ptr , this , index ) ; return ( c ptr == 0 ) ? null : new bt persistent manifold ( c ptr , false ) ; } <SENTENCE_END/>

index

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get manifold by index internal swig 0 ( swig c ptr , this , index ) ; return ( c ptr == 0 ) ? null : new bt persistent manifold ( c ptr , false ) ; } <SENTENCE_END/>

(Copy Probability: 79.6%)

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get manifold by index internal swig 0 ( swig c ptr , this , index ) ; return ( c ptr == 0 ) ? null : new bt persistent manifold ( c ptr , false ) ; } <SENTENCE_END/>

internal

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get manifold by index internal swig 0 ( swig c ptr , this , index ) ; return ( c ptr == 0 ) ? null : new bt persistent manifold ( c ptr , false ) ; } <SENTENCE_END/>

(Copy Probability: 20.1%)

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get manifold by index internal swig 0 ( swig c ptr , this , index ) ; return ( c ptr == 0 ) ? null : new bt persistent manifold ( c ptr , false ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get manifold by index internal swig 0 ( swig c ptr , this , index ) ; return ( c ptr == 0 ) ? null : new bt persistent manifold ( c ptr , false ) ; } <SENTENCE_END/>

(Copy Probability: 20.3%)

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get manifold by index internal swig 0 ( swig c ptr , this , index ) ; return ( c ptr == 0 ) ? null : new bt persistent manifold ( c ptr , false ) ; } <SENTENCE_END/>


Original Name find,algorithm

find

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher find algorithm swig 0 ( swig c ptr , this , bt collision object wrapper . get c ptr ( body 0 wrap ) , body 0 wrap , bt collision object wrapper . get c ptr ( body 1 wrap ) , body 1 wrap , bt persistent manifold . get c ptr ( shared manifold ) , shared manifold ) ; return ( c ptr == 0 ) ? null : new bt collision algorithm ( c ptr , false ) ; } <SENTENCE_END/>

(Copy Probability: 19.9%)

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher find algorithm swig 0 ( swig c ptr , this , bt collision object wrapper . get c ptr ( body 0 wrap ) , body 0 wrap , bt collision object wrapper . get c ptr ( body 1 wrap ) , body 1 wrap , bt persistent manifold . get c ptr ( shared manifold ) , shared manifold ) ; return ( c ptr == 0 ) ? null : new bt collision algorithm ( c ptr , false ) ; } <SENTENCE_END/>

algorithm

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher find algorithm swig 0 ( swig c ptr , this , bt collision object wrapper . get c ptr ( body 0 wrap ) , body 0 wrap , bt collision object wrapper . get c ptr ( body 1 wrap ) , body 1 wrap , bt persistent manifold . get c ptr ( shared manifold ) , shared manifold ) ; return ( c ptr == 0 ) ? null : new bt collision algorithm ( c ptr , false ) ; } <SENTENCE_END/>

(Copy Probability: 99.3%)

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher find algorithm swig 0 ( swig c ptr , this , bt collision object wrapper . get c ptr ( body 0 wrap ) , body 0 wrap , bt collision object wrapper . get c ptr ( body 1 wrap ) , body 1 wrap , bt persistent manifold . get c ptr ( shared manifold ) , shared manifold ) ; return ( c ptr == 0 ) ? null : new bt collision algorithm ( c ptr , false ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher find algorithm swig 0 ( swig c ptr , this , bt collision object wrapper . get c ptr ( body 0 wrap ) , body 0 wrap , bt collision object wrapper . get c ptr ( body 1 wrap ) , body 1 wrap , bt persistent manifold . get c ptr ( shared manifold ) , shared manifold ) ; return ( c ptr == 0 ) ? null : new bt collision algorithm ( c ptr , false ) ; } <SENTENCE_END/>

(Copy Probability: 31.8%)

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher find algorithm swig 0 ( swig c ptr , this , bt collision object wrapper . get c ptr ( body 0 wrap ) , body 0 wrap , bt collision object wrapper . get c ptr ( body 1 wrap ) , body 1 wrap , bt persistent manifold . get c ptr ( shared manifold ) , shared manifold ) ; return ( c ptr == 0 ) ? null : new bt collision algorithm ( c ptr , false ) ; } <SENTENCE_END/>


Original Name find,algorithm

find

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher find algorithm swig 1 ( swig c ptr , this , bt collision object wrapper . get c ptr ( body 0 wrap ) , body 0 wrap , bt collision object wrapper . get c ptr ( body 1 wrap ) , body 1 wrap ) ; return ( c ptr == 0 ) ? null : new bt collision algorithm ( c ptr , false ) ; } <SENTENCE_END/>

(Copy Probability: 21.4%)

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher find algorithm swig 1 ( swig c ptr , this , bt collision object wrapper . get c ptr ( body 0 wrap ) , body 0 wrap , bt collision object wrapper . get c ptr ( body 1 wrap ) , body 1 wrap ) ; return ( c ptr == 0 ) ? null : new bt collision algorithm ( c ptr , false ) ; } <SENTENCE_END/>

algorithm

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher find algorithm swig 1 ( swig c ptr , this , bt collision object wrapper . get c ptr ( body 0 wrap ) , body 0 wrap , bt collision object wrapper . get c ptr ( body 1 wrap ) , body 1 wrap ) ; return ( c ptr == 0 ) ? null : new bt collision algorithm ( c ptr , false ) ; } <SENTENCE_END/>

(Copy Probability: 99.5%)

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher find algorithm swig 1 ( swig c ptr , this , bt collision object wrapper . get c ptr ( body 0 wrap ) , body 0 wrap , bt collision object wrapper . get c ptr ( body 1 wrap ) , body 1 wrap ) ; return ( c ptr == 0 ) ? null : new bt collision algorithm ( c ptr , false ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher find algorithm swig 1 ( swig c ptr , this , bt collision object wrapper . get c ptr ( body 0 wrap ) , body 0 wrap , bt collision object wrapper . get c ptr ( body 1 wrap ) , body 1 wrap ) ; return ( c ptr == 0 ) ? null : new bt collision algorithm ( c ptr , false ) ; } <SENTENCE_END/>

(Copy Probability: 37.3%)

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher find algorithm swig 1 ( swig c ptr , this , bt collision object wrapper . get c ptr ( body 0 wrap ) , body 0 wrap , bt collision object wrapper . get c ptr ( body 1 wrap ) , body 1 wrap ) ; return ( c ptr == 0 ) ? null : new bt collision algorithm ( c ptr , false ) ; } <SENTENCE_END/>


Original Name set,near,callback

set

<SENTENCE_START> { collision jni . bt collision dispatcher set near callback ( swig c ptr , this , swigtype p f r bt broadphase pair r bt collision dispatcher r q const bt dispatcher info void . get c ptr ( near callback ) ) ; } <SENTENCE_END/>

(Copy Probability: 4.1%)

<SENTENCE_START> { collision jni . bt collision dispatcher set near callback ( swig c ptr , this , swigtype p f r bt broadphase pair r bt collision dispatcher r q const bt dispatcher info void . get c ptr ( near callback ) ) ; } <SENTENCE_END/>

near

<SENTENCE_START> { collision jni . bt collision dispatcher set near callback ( swig c ptr , this , swigtype p f r bt broadphase pair r bt collision dispatcher r q const bt dispatcher info void . get c ptr ( near callback ) ) ; } <SENTENCE_END/>

(Copy Probability: 99.6%)

<SENTENCE_START> { collision jni . bt collision dispatcher set near callback ( swig c ptr , this , swigtype p f r bt broadphase pair r bt collision dispatcher r q const bt dispatcher info void . get c ptr ( near callback ) ) ; } <SENTENCE_END/>

callback

<SENTENCE_START> { collision jni . bt collision dispatcher set near callback ( swig c ptr , this , swigtype p f r bt broadphase pair r bt collision dispatcher r q const bt dispatcher info void . get c ptr ( near callback ) ) ; } <SENTENCE_END/>

(Copy Probability: 97.5%)

<SENTENCE_START> { collision jni . bt collision dispatcher set near callback ( swig c ptr , this , swigtype p f r bt broadphase pair r bt collision dispatcher r q const bt dispatcher info void . get c ptr ( near callback ) ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { collision jni . bt collision dispatcher set near callback ( swig c ptr , this , swigtype p f r bt broadphase pair r bt collision dispatcher r q const bt dispatcher info void . get c ptr ( near callback ) ) ; } <SENTENCE_END/>

(Copy Probability: 17.5%)

<SENTENCE_START> { collision jni . bt collision dispatcher set near callback ( swig c ptr , this , swigtype p f r bt broadphase pair r bt collision dispatcher r q const bt dispatcher info void . get c ptr ( near callback ) ) ; } <SENTENCE_END/>


Original Name get,near,callback

get

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get near callback ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new swigtype p f r bt broadphase pair r bt collision dispatcher r q const bt dispatcher info void ( c ptr , false ) ; } <SENTENCE_END/>

(Copy Probability: 3.9%)

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get near callback ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new swigtype p f r bt broadphase pair r bt collision dispatcher r q const bt dispatcher info void ( c ptr , false ) ; } <SENTENCE_END/>

near

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get near callback ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new swigtype p f r bt broadphase pair r bt collision dispatcher r q const bt dispatcher info void ( c ptr , false ) ; } <SENTENCE_END/>

(Copy Probability: 99.6%)

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get near callback ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new swigtype p f r bt broadphase pair r bt collision dispatcher r q const bt dispatcher info void ( c ptr , false ) ; } <SENTENCE_END/>

callback

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get near callback ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new swigtype p f r bt broadphase pair r bt collision dispatcher r q const bt dispatcher info void ( c ptr , false ) ; } <SENTENCE_END/>

(Copy Probability: 94.7%)

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get near callback ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new swigtype p f r bt broadphase pair r bt collision dispatcher r q const bt dispatcher info void ( c ptr , false ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get near callback ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new swigtype p f r bt broadphase pair r bt collision dispatcher r q const bt dispatcher info void ( c ptr , false ) ; } <SENTENCE_END/>

(Copy Probability: 10.2%)

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get near callback ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new swigtype p f r bt broadphase pair r bt collision dispatcher r q const bt dispatcher info void ( c ptr , false ) ; } <SENTENCE_END/>


Original Name default,near,callback

default

<SENTENCE_START> { collision jni . bt collision dispatcher default near callback ( collision pair , bt collision dispatcher . get c ptr ( dispatcher ) , dispatcher , bt dispatcher info . get c ptr ( dispatch info ) , dispatch info ) ; } <SENTENCE_END/>

(Copy Probability: 11.8%)

<SENTENCE_START> { collision jni . bt collision dispatcher default near callback ( collision pair , bt collision dispatcher . get c ptr ( dispatcher ) , dispatcher , bt dispatcher info . get c ptr ( dispatch info ) , dispatch info ) ; } <SENTENCE_END/>

near

<SENTENCE_START> { collision jni . bt collision dispatcher default near callback ( collision pair , bt collision dispatcher . get c ptr ( dispatcher ) , dispatcher , bt dispatcher info . get c ptr ( dispatch info ) , dispatch info ) ; } <SENTENCE_END/>

(Copy Probability: 98.7%)

<SENTENCE_START> { collision jni . bt collision dispatcher default near callback ( collision pair , bt collision dispatcher . get c ptr ( dispatcher ) , dispatcher , bt dispatcher info . get c ptr ( dispatch info ) , dispatch info ) ; } <SENTENCE_END/>

callback

<SENTENCE_START> { collision jni . bt collision dispatcher default near callback ( collision pair , bt collision dispatcher . get c ptr ( dispatcher ) , dispatcher , bt dispatcher info . get c ptr ( dispatch info ) , dispatch info ) ; } <SENTENCE_END/>

(Copy Probability: 98.0%)

<SENTENCE_START> { collision jni . bt collision dispatcher default near callback ( collision pair , bt collision dispatcher . get c ptr ( dispatcher ) , dispatcher , bt dispatcher info . get c ptr ( dispatch info ) , dispatch info ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { collision jni . bt collision dispatcher default near callback ( collision pair , bt collision dispatcher . get c ptr ( dispatcher ) , dispatcher , bt dispatcher info . get c ptr ( dispatch info ) , dispatch info ) ; } <SENTENCE_END/>

(Copy Probability: 61.9%)

<SENTENCE_START> { collision jni . bt collision dispatcher default near callback ( collision pair , bt collision dispatcher . get c ptr ( dispatcher ) , dispatcher , bt dispatcher info . get c ptr ( dispatch info ) , dispatch info ) ; } <SENTENCE_END/>


Original Name get,collision,configuration

get

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get collision configuration swig 0 ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new bt collision configuration ( c ptr , false ) ; } <SENTENCE_END/>

(Copy Probability: 6.8%)

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get collision configuration swig 0 ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new bt collision configuration ( c ptr , false ) ; } <SENTENCE_END/>

collision

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get collision configuration swig 0 ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new bt collision configuration ( c ptr , false ) ; } <SENTENCE_END/>

(Copy Probability: 99.8%)

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get collision configuration swig 0 ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new bt collision configuration ( c ptr , false ) ; } <SENTENCE_END/>

configuration

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get collision configuration swig 0 ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new bt collision configuration ( c ptr , false ) ; } <SENTENCE_END/>

(Copy Probability: 99.9%)

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get collision configuration swig 0 ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new bt collision configuration ( c ptr , false ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get collision configuration swig 0 ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new bt collision configuration ( c ptr , false ) ; } <SENTENCE_END/>

(Copy Probability: 33.6%)

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get collision configuration swig 0 ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new bt collision configuration ( c ptr , false ) ; } <SENTENCE_END/>


Original Name set,collision,configuration

set

<SENTENCE_START> { collision jni . bt collision dispatcher set collision configuration ( swig c ptr , this , bt collision configuration . get c ptr ( config ) , config ) ; } <SENTENCE_END/>

(Copy Probability: 7.6%)

<SENTENCE_START> { collision jni . bt collision dispatcher set collision configuration ( swig c ptr , this , bt collision configuration . get c ptr ( config ) , config ) ; } <SENTENCE_END/>

collision

<SENTENCE_START> { collision jni . bt collision dispatcher set collision configuration ( swig c ptr , this , bt collision configuration . get c ptr ( config ) , config ) ; } <SENTENCE_END/>

(Copy Probability: 99.8%)

<SENTENCE_START> { collision jni . bt collision dispatcher set collision configuration ( swig c ptr , this , bt collision configuration . get c ptr ( config ) , config ) ; } <SENTENCE_END/>

configuration

<SENTENCE_START> { collision jni . bt collision dispatcher set collision configuration ( swig c ptr , this , bt collision configuration . get c ptr ( config ) , config ) ; } <SENTENCE_END/>

(Copy Probability: 99.8%)

<SENTENCE_START> { collision jni . bt collision dispatcher set collision configuration ( swig c ptr , this , bt collision configuration . get c ptr ( config ) , config ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { collision jni . bt collision dispatcher set collision configuration ( swig c ptr , this , bt collision configuration . get c ptr ( config ) , config ) ; } <SENTENCE_END/>

(Copy Probability: 16.8%)

<SENTENCE_START> { collision jni . bt collision dispatcher set collision configuration ( swig c ptr , this , bt collision configuration . get c ptr ( config ) , config ) ; } <SENTENCE_END/>


Original Name get,internal,manifold,pool

get

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get internal manifold pool swig 0 ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new bt pool allocator ( c ptr , false ) ; } <SENTENCE_END/>

(Copy Probability: 7.5%)

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get internal manifold pool swig 0 ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new bt pool allocator ( c ptr , false ) ; } <SENTENCE_END/>

internal

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get internal manifold pool swig 0 ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new bt pool allocator ( c ptr , false ) ; } <SENTENCE_END/>

(Copy Probability: 99.8%)

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get internal manifold pool swig 0 ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new bt pool allocator ( c ptr , false ) ; } <SENTENCE_END/>

manifold

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get internal manifold pool swig 0 ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new bt pool allocator ( c ptr , false ) ; } <SENTENCE_END/>

(Copy Probability: 100.0%)

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get internal manifold pool swig 0 ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new bt pool allocator ( c ptr , false ) ; } <SENTENCE_END/>

pool

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get internal manifold pool swig 0 ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new bt pool allocator ( c ptr , false ) ; } <SENTENCE_END/>

(Copy Probability: 98.0%)

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get internal manifold pool swig 0 ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new bt pool allocator ( c ptr , false ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get internal manifold pool swig 0 ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new bt pool allocator ( c ptr , false ) ; } <SENTENCE_END/>

(Copy Probability: 11.2%)

<SENTENCE_START> { long c ptr = collision jni . bt collision dispatcher get internal manifold pool swig 0 ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new bt pool allocator ( c ptr , false ) ; } <SENTENCE_END/>


Original Name delegate

delegate

<SENTENCE_START> { if ( time < duration ) { time += delta ; if ( time < duration ) return false ; delta = time - duration ; } if ( action == null ) return true ; return action . act ( delta ) ; } <SENTENCE_END/>

(Copy Probability: 3.0%)

<SENTENCE_START> { if ( time < duration ) { time += delta ; if ( time < duration ) return false ; delta = time - duration ; } if ( action == null ) return true ; return action . act ( delta ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { if ( time < duration ) { time += delta ; if ( time < duration ) return false ; delta = time - duration ; } if ( action == null ) return true ; return action . act ( delta ) ; } <SENTENCE_END/>

(Copy Probability: 2.9%)

<SENTENCE_START> { if ( time < duration ) { time += delta ; if ( time < duration ) return false ; delta = time - duration ; } if ( action == null ) return true ; return action . act ( delta ) ; } <SENTENCE_END/>


Original Name finish

finish

<SENTENCE_START> { time = duration ; } <SENTENCE_END/>

(Copy Probability: 0.4%)

<SENTENCE_START> { time = duration ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { time = duration ; } <SENTENCE_END/>

(Copy Probability: 8.0%)

<SENTENCE_START> { time = duration ; } <SENTENCE_END/>


Original Name restart

restart

<SENTENCE_START> { super . %SELF% ( ) ; time = 0 ; } <SENTENCE_END/>

(Copy Probability: 0.7%)

<SENTENCE_START> { super . %SELF% ( ) ; time = 0 ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { super . %SELF% ( ) ; time = 0 ; } <SENTENCE_END/>

(Copy Probability: 1.1%)

<SENTENCE_START> { super . %SELF% ( ) ; time = 0 ; } <SENTENCE_END/>


Original Name get,time

get

<SENTENCE_START> { return time ; } <SENTENCE_END/>

(Copy Probability: 0.4%)

<SENTENCE_START> { return time ; } <SENTENCE_END/>

time

<SENTENCE_START> { return time ; } <SENTENCE_END/>

(Copy Probability: 89.7%)

<SENTENCE_START> { return time ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return time ; } <SENTENCE_END/>

(Copy Probability: 2.8%)

<SENTENCE_START> { return time ; } <SENTENCE_END/>


Original Name set,time

set

<SENTENCE_START> { this . time = time ; } <SENTENCE_END/>

(Copy Probability: 1.6%)

<SENTENCE_START> { this . time = time ; } <SENTENCE_END/>

time

<SENTENCE_START> { this . time = time ; } <SENTENCE_END/>

(Copy Probability: 99.6%)

<SENTENCE_START> { this . time = time ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { this . time = time ; } <SENTENCE_END/>

(Copy Probability: 4.6%)

<SENTENCE_START> { this . time = time ; } <SENTENCE_END/>


Original Name get,duration

get

<SENTENCE_START> { return duration ; } <SENTENCE_END/>

(Copy Probability: 0.3%)

<SENTENCE_START> { return duration ; } <SENTENCE_END/>

duration

<SENTENCE_START> { return duration ; } <SENTENCE_END/>

(Copy Probability: 21.8%)

<SENTENCE_START> { return duration ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return duration ; } <SENTENCE_END/>

(Copy Probability: 0.7%)

<SENTENCE_START> { return duration ; } <SENTENCE_END/>


Original Name set,duration

set

<SENTENCE_START> { this . duration = duration ; } <SENTENCE_END/>

(Copy Probability: 0.7%)

<SENTENCE_START> { this . duration = duration ; } <SENTENCE_END/>

duration

<SENTENCE_START> { this . duration = duration ; } <SENTENCE_END/>

(Copy Probability: 51.7%)

<SENTENCE_START> { this . duration = duration ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { this . duration = duration ; } <SENTENCE_END/>

(Copy Probability: 0.3%)

<SENTENCE_START> { this . duration = duration ; } <SENTENCE_END/>


Original Name get,type

get

<SENTENCE_START> { return type ; } <SENTENCE_END/>

(Copy Probability: 0.3%)

<SENTENCE_START> { return type ; } <SENTENCE_END/>

type

<SENTENCE_START> { return type ; } <SENTENCE_END/>

(Copy Probability: 69.6%)

<SENTENCE_START> { return type ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return type ; } <SENTENCE_END/>

(Copy Probability: 3.1%)

<SENTENCE_START> { return type ; } <SENTENCE_END/>


Original Name set,type

set

<SENTENCE_START> { this . type = type ; } <SENTENCE_END/>

(Copy Probability: 1.0%)

<SENTENCE_START> { this . type = type ; } <SENTENCE_END/>

type

<SENTENCE_START> { this . type = type ; } <SENTENCE_END/>

(Copy Probability: 97.7%)

<SENTENCE_START> { this . type = type ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { this . type = type ; } <SENTENCE_END/>

(Copy Probability: 3.3%)

<SENTENCE_START> { this . type = type ; } <SENTENCE_END/>


Original Name get,user,data

get

<SENTENCE_START> { return user data ; } <SENTENCE_END/>

(Copy Probability: 0.6%)

<SENTENCE_START> { return user data ; } <SENTENCE_END/>

user

<SENTENCE_START> { return user data ; } <SENTENCE_END/>

(Copy Probability: 99.3%)

<SENTENCE_START> { return user data ; } <SENTENCE_END/>

data

<SENTENCE_START> { return user data ; } <SENTENCE_END/>

(Copy Probability: 98.8%)

<SENTENCE_START> { return user data ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return user data ; } <SENTENCE_END/>

(Copy Probability: 3.9%)

<SENTENCE_START> { return user data ; } <SENTENCE_END/>


Original Name set,user,data

set

<SENTENCE_START> { this . user data = user data ; } <SENTENCE_END/>

(Copy Probability: 0.9%)

<SENTENCE_START> { this . user data = user data ; } <SENTENCE_END/>

user

<SENTENCE_START> { this . user data = user data ; } <SENTENCE_END/>

(Copy Probability: 99.7%)

<SENTENCE_START> { this . user data = user data ; } <SENTENCE_END/>

data

<SENTENCE_START> { this . user data = user data ; } <SENTENCE_END/>

(Copy Probability: 98.6%)

<SENTENCE_START> { this . user data = user data ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { this . user data = user data ; } <SENTENCE_END/>

(Copy Probability: 4.4%)

<SENTENCE_START> { this . user data = user data ; } <SENTENCE_END/>


Original Name get,position

get

<SENTENCE_START> { return position ; } <SENTENCE_END/>

(Copy Probability: 0.3%)

<SENTENCE_START> { return position ; } <SENTENCE_END/>

position

<SENTENCE_START> { return position ; } <SENTENCE_END/>

(Copy Probability: 59.2%)

<SENTENCE_START> { return position ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return position ; } <SENTENCE_END/>

(Copy Probability: 1.1%)

<SENTENCE_START> { return position ; } <SENTENCE_END/>


Original Name set,position

set

<SENTENCE_START> { this . position = position ; } <SENTENCE_END/>

(Copy Probability: 0.8%)

<SENTENCE_START> { this . position = position ; } <SENTENCE_END/>

position

<SENTENCE_START> { this . position = position ; } <SENTENCE_END/>

(Copy Probability: 93.4%)

<SENTENCE_START> { this . position = position ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { this . position = position ; } <SENTENCE_END/>

(Copy Probability: 0.7%)

<SENTENCE_START> { this . position = position ; } <SENTENCE_END/>


Original Name get,angle

get

<SENTENCE_START> { return angle ; } <SENTENCE_END/>

(Copy Probability: 0.4%)

<SENTENCE_START> { return angle ; } <SENTENCE_END/>

angle

<SENTENCE_START> { return angle ; } <SENTENCE_END/>

(Copy Probability: 74.9%)

<SENTENCE_START> { return angle ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return angle ; } <SENTENCE_END/>

(Copy Probability: 0.9%)

<SENTENCE_START> { return angle ; } <SENTENCE_END/>


Original Name set,angle

set

<SENTENCE_START> { this . angle = angle ; } <SENTENCE_END/>

(Copy Probability: 1.3%)

<SENTENCE_START> { this . angle = angle ; } <SENTENCE_END/>

angle

<SENTENCE_START> { this . angle = angle ; } <SENTENCE_END/>

(Copy Probability: 97.6%)

<SENTENCE_START> { this . angle = angle ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { this . angle = angle ; } <SENTENCE_END/>

(Copy Probability: 1.0%)

<SENTENCE_START> { this . angle = angle ; } <SENTENCE_END/>


Original Name get,linear,velocity

get

<SENTENCE_START> { return linear velocity ; } <SENTENCE_END/>

(Copy Probability: 0.7%)

<SENTENCE_START> { return linear velocity ; } <SENTENCE_END/>

linear

<SENTENCE_START> { return linear velocity ; } <SENTENCE_END/>

(Copy Probability: 98.0%)

<SENTENCE_START> { return linear velocity ; } <SENTENCE_END/>

velocity

<SENTENCE_START> { return linear velocity ; } <SENTENCE_END/>

(Copy Probability: 96.9%)

<SENTENCE_START> { return linear velocity ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return linear velocity ; } <SENTENCE_END/>

(Copy Probability: 11.7%)

<SENTENCE_START> { return linear velocity ; } <SENTENCE_END/>


Original Name set,linear,velocity

set

<SENTENCE_START> { this . linear velocity = linear velocity ; } <SENTENCE_END/>

(Copy Probability: 1.4%)

<SENTENCE_START> { this . linear velocity = linear velocity ; } <SENTENCE_END/>

linear

<SENTENCE_START> { this . linear velocity = linear velocity ; } <SENTENCE_END/>

(Copy Probability: 99.6%)

<SENTENCE_START> { this . linear velocity = linear velocity ; } <SENTENCE_END/>

velocity

<SENTENCE_START> { this . linear velocity = linear velocity ; } <SENTENCE_END/>

(Copy Probability: 98.5%)

<SENTENCE_START> { this . linear velocity = linear velocity ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { this . linear velocity = linear velocity ; } <SENTENCE_END/>

(Copy Probability: 14.4%)

<SENTENCE_START> { this . linear velocity = linear velocity ; } <SENTENCE_END/>


Original Name get,angular,velocity

get

<SENTENCE_START> { return angular velocity ; } <SENTENCE_END/>

(Copy Probability: 0.7%)

<SENTENCE_START> { return angular velocity ; } <SENTENCE_END/>

angular

<SENTENCE_START> { return angular velocity ; } <SENTENCE_END/>

(Copy Probability: 98.4%)

<SENTENCE_START> { return angular velocity ; } <SENTENCE_END/>

velocity

<SENTENCE_START> { return angular velocity ; } <SENTENCE_END/>

(Copy Probability: 97.7%)

<SENTENCE_START> { return angular velocity ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return angular velocity ; } <SENTENCE_END/>

(Copy Probability: 9.9%)

<SENTENCE_START> { return angular velocity ; } <SENTENCE_END/>


Original Name set,angular,velocity

set

<SENTENCE_START> { this . angular velocity = angular velocity ; } <SENTENCE_END/>

(Copy Probability: 1.4%)

<SENTENCE_START> { this . angular velocity = angular velocity ; } <SENTENCE_END/>

angular

<SENTENCE_START> { this . angular velocity = angular velocity ; } <SENTENCE_END/>

(Copy Probability: 99.7%)

<SENTENCE_START> { this . angular velocity = angular velocity ; } <SENTENCE_END/>

velocity

<SENTENCE_START> { this . angular velocity = angular velocity ; } <SENTENCE_END/>

(Copy Probability: 98.7%)

<SENTENCE_START> { this . angular velocity = angular velocity ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { this . angular velocity = angular velocity ; } <SENTENCE_END/>

(Copy Probability: 11.7%)

<SENTENCE_START> { this . angular velocity = angular velocity ; } <SENTENCE_END/>


Original Name get,linear,damping

get

<SENTENCE_START> { return linear damping ; } <SENTENCE_END/>

(Copy Probability: 0.6%)

<SENTENCE_START> { return linear damping ; } <SENTENCE_END/>

linear

<SENTENCE_START> { return linear damping ; } <SENTENCE_END/>

(Copy Probability: 97.1%)

<SENTENCE_START> { return linear damping ; } <SENTENCE_END/>

damping

<SENTENCE_START> { return linear damping ; } <SENTENCE_END/>

(Copy Probability: 93.2%)

<SENTENCE_START> { return linear damping ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return linear damping ; } <SENTENCE_END/>

(Copy Probability: 7.1%)

<SENTENCE_START> { return linear damping ; } <SENTENCE_END/>


Original Name set,linear,damping

set

<SENTENCE_START> { this . linear damping = linear damping ; } <SENTENCE_END/>

(Copy Probability: 1.1%)

<SENTENCE_START> { this . linear damping = linear damping ; } <SENTENCE_END/>

linear

<SENTENCE_START> { this . linear damping = linear damping ; } <SENTENCE_END/>

(Copy Probability: 99.4%)

<SENTENCE_START> { this . linear damping = linear damping ; } <SENTENCE_END/>

damping

<SENTENCE_START> { this . linear damping = linear damping ; } <SENTENCE_END/>

(Copy Probability: 91.4%)

<SENTENCE_START> { this . linear damping = linear damping ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { this . linear damping = linear damping ; } <SENTENCE_END/>

(Copy Probability: 5.5%)

<SENTENCE_START> { this . linear damping = linear damping ; } <SENTENCE_END/>


Original Name get,angular,damping

get

<SENTENCE_START> { return angular damping ; } <SENTENCE_END/>

(Copy Probability: 0.6%)

<SENTENCE_START> { return angular damping ; } <SENTENCE_END/>

angular

<SENTENCE_START> { return angular damping ; } <SENTENCE_END/>

(Copy Probability: 97.9%)

<SENTENCE_START> { return angular damping ; } <SENTENCE_END/>

damping

<SENTENCE_START> { return angular damping ; } <SENTENCE_END/>

(Copy Probability: 95.1%)

<SENTENCE_START> { return angular damping ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return angular damping ; } <SENTENCE_END/>

(Copy Probability: 6.2%)

<SENTENCE_START> { return angular damping ; } <SENTENCE_END/>


Original Name set,angular,damping

set

<SENTENCE_START> { this . angular damping = angular damping ; } <SENTENCE_END/>

(Copy Probability: 1.1%)

<SENTENCE_START> { this . angular damping = angular damping ; } <SENTENCE_END/>

angular

<SENTENCE_START> { this . angular damping = angular damping ; } <SENTENCE_END/>

(Copy Probability: 99.6%)

<SENTENCE_START> { this . angular damping = angular damping ; } <SENTENCE_END/>

damping

<SENTENCE_START> { this . angular damping = angular damping ; } <SENTENCE_END/>

(Copy Probability: 93.0%)

<SENTENCE_START> { this . angular damping = angular damping ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { this . angular damping = angular damping ; } <SENTENCE_END/>

(Copy Probability: 4.7%)

<SENTENCE_START> { this . angular damping = angular damping ; } <SENTENCE_END/>


Original Name is,allow,sleep

is

<SENTENCE_START> { return allow sleep ; } <SENTENCE_END/>

(Copy Probability: 0.3%)

<SENTENCE_START> { return allow sleep ; } <SENTENCE_END/>

allow

<SENTENCE_START> { return allow sleep ; } <SENTENCE_END/>

(Copy Probability: 0.8%)

<SENTENCE_START> { return allow sleep ; } <SENTENCE_END/>

sleep

<SENTENCE_START> { return allow sleep ; } <SENTENCE_END/>

(Copy Probability: 0.8%)

<SENTENCE_START> { return allow sleep ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return allow sleep ; } <SENTENCE_END/>

(Copy Probability: 0.4%)

<SENTENCE_START> { return allow sleep ; } <SENTENCE_END/>


Original Name set,allow,sleep

set

<SENTENCE_START> { this . allow sleep = allow sleep ; } <SENTENCE_END/>

(Copy Probability: 0.5%)

<SENTENCE_START> { this . allow sleep = allow sleep ; } <SENTENCE_END/>

allow

<SENTENCE_START> { this . allow sleep = allow sleep ; } <SENTENCE_END/>

(Copy Probability: 3.5%)

<SENTENCE_START> { this . allow sleep = allow sleep ; } <SENTENCE_END/>

sleep

<SENTENCE_START> { this . allow sleep = allow sleep ; } <SENTENCE_END/>

(Copy Probability: 3.2%)

<SENTENCE_START> { this . allow sleep = allow sleep ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { this . allow sleep = allow sleep ; } <SENTENCE_END/>

(Copy Probability: 0.8%)

<SENTENCE_START> { this . allow sleep = allow sleep ; } <SENTENCE_END/>


Original Name is,awake

is

<SENTENCE_START> { return awake ; } <SENTENCE_END/>

(Copy Probability: 0.3%)

<SENTENCE_START> { return awake ; } <SENTENCE_END/>

awake

<SENTENCE_START> { return awake ; } <SENTENCE_END/>

(Copy Probability: 80.5%)

<SENTENCE_START> { return awake ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return awake ; } <SENTENCE_END/>

(Copy Probability: 0.5%)

<SENTENCE_START> { return awake ; } <SENTENCE_END/>


Original Name set,awake

set

<SENTENCE_START> { this . awake = awake ; } <SENTENCE_END/>

(Copy Probability: 1.2%)

<SENTENCE_START> { this . awake = awake ; } <SENTENCE_END/>

awake

<SENTENCE_START> { this . awake = awake ; } <SENTENCE_END/>

(Copy Probability: 99.0%)

<SENTENCE_START> { this . awake = awake ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { this . awake = awake ; } <SENTENCE_END/>

(Copy Probability: 0.9%)

<SENTENCE_START> { this . awake = awake ; } <SENTENCE_END/>


Original Name is,fixed,rotation

is

<SENTENCE_START> { return fixed rotation ; } <SENTENCE_END/>

(Copy Probability: 0.8%)

<SENTENCE_START> { return fixed rotation ; } <SENTENCE_END/>

fixed

<SENTENCE_START> { return fixed rotation ; } <SENTENCE_END/>

(Copy Probability: 98.5%)

<SENTENCE_START> { return fixed rotation ; } <SENTENCE_END/>

rotation

<SENTENCE_START> { return fixed rotation ; } <SENTENCE_END/>

(Copy Probability: 94.9%)

<SENTENCE_START> { return fixed rotation ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return fixed rotation ; } <SENTENCE_END/>

(Copy Probability: 2.9%)

<SENTENCE_START> { return fixed rotation ; } <SENTENCE_END/>


Original Name set,fixed,rotation

set

<SENTENCE_START> { this . fixed rotation = fixed rotation ; } <SENTENCE_END/>

(Copy Probability: 1.4%)

<SENTENCE_START> { this . fixed rotation = fixed rotation ; } <SENTENCE_END/>

fixed

<SENTENCE_START> { this . fixed rotation = fixed rotation ; } <SENTENCE_END/>

(Copy Probability: 99.4%)

<SENTENCE_START> { this . fixed rotation = fixed rotation ; } <SENTENCE_END/>

rotation

<SENTENCE_START> { this . fixed rotation = fixed rotation ; } <SENTENCE_END/>

(Copy Probability: 94.7%)

<SENTENCE_START> { this . fixed rotation = fixed rotation ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { this . fixed rotation = fixed rotation ; } <SENTENCE_END/>

(Copy Probability: 2.0%)

<SENTENCE_START> { this . fixed rotation = fixed rotation ; } <SENTENCE_END/>


Original Name is,bullet

is

<SENTENCE_START> { return bullet ; } <SENTENCE_END/>

(Copy Probability: 0.4%)

<SENTENCE_START> { return bullet ; } <SENTENCE_END/>

bullet

<SENTENCE_START> { return bullet ; } <SENTENCE_END/>

(Copy Probability: 85.6%)

<SENTENCE_START> { return bullet ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return bullet ; } <SENTENCE_END/>

(Copy Probability: 0.6%)

<SENTENCE_START> { return bullet ; } <SENTENCE_END/>


Original Name set,bullet

set

<SENTENCE_START> { this . bullet = bullet ; } <SENTENCE_END/>

(Copy Probability: 1.5%)

<SENTENCE_START> { this . bullet = bullet ; } <SENTENCE_END/>

bullet

<SENTENCE_START> { this . bullet = bullet ; } <SENTENCE_END/>

(Copy Probability: 98.9%)

<SENTENCE_START> { this . bullet = bullet ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { this . bullet = bullet ; } <SENTENCE_END/>

(Copy Probability: 1.1%)

<SENTENCE_START> { this . bullet = bullet ; } <SENTENCE_END/>


Original Name is,active

is

<SENTENCE_START> { return active ; } <SENTENCE_END/>

(Copy Probability: 0.3%)

<SENTENCE_START> { return active ; } <SENTENCE_END/>

active

<SENTENCE_START> { return active ; } <SENTENCE_END/>

(Copy Probability: 53.3%)

<SENTENCE_START> { return active ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return active ; } <SENTENCE_END/>

(Copy Probability: 0.4%)

<SENTENCE_START> { return active ; } <SENTENCE_END/>


Original Name set,active

set

<SENTENCE_START> { this . active = active ; } <SENTENCE_END/>

(Copy Probability: 1.1%)

<SENTENCE_START> { this . active = active ; } <SENTENCE_END/>

active

<SENTENCE_START> { this . active = active ; } <SENTENCE_END/>

(Copy Probability: 96.0%)

<SENTENCE_START> { this . active = active ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { this . active = active ; } <SENTENCE_END/>

(Copy Probability: 0.8%)

<SENTENCE_START> { this . active = active ; } <SENTENCE_END/>


Original Name get,gravity,scale

get

<SENTENCE_START> { return gravity scale ; } <SENTENCE_END/>

(Copy Probability: 0.8%)

<SENTENCE_START> { return gravity scale ; } <SENTENCE_END/>

gravity

<SENTENCE_START> { return gravity scale ; } <SENTENCE_END/>

(Copy Probability: 99.4%)

<SENTENCE_START> { return gravity scale ; } <SENTENCE_END/>

scale

<SENTENCE_START> { return gravity scale ; } <SENTENCE_END/>

(Copy Probability: 94.0%)

<SENTENCE_START> { return gravity scale ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return gravity scale ; } <SENTENCE_END/>

(Copy Probability: 0.9%)

<SENTENCE_START> { return gravity scale ; } <SENTENCE_END/>


Original Name set,gravity,scale

set

<SENTENCE_START> { this . gravity scale = gravity scale ; } <SENTENCE_END/>

(Copy Probability: 1.3%)

<SENTENCE_START> { this . gravity scale = gravity scale ; } <SENTENCE_END/>

gravity

<SENTENCE_START> { this . gravity scale = gravity scale ; } <SENTENCE_END/>

(Copy Probability: 99.7%)

<SENTENCE_START> { this . gravity scale = gravity scale ; } <SENTENCE_END/>

scale

<SENTENCE_START> { this . gravity scale = gravity scale ; } <SENTENCE_END/>

(Copy Probability: 91.3%)

<SENTENCE_START> { this . gravity scale = gravity scale ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { this . gravity scale = gravity scale ; } <SENTENCE_END/>

(Copy Probability: 1.4%)

<SENTENCE_START> { this . gravity scale = gravity scale ; } <SENTENCE_END/>


Original Name window,closed

window

<SENTENCE_START> { system . exit ( 0 ) ; } <SENTENCE_END/>

(Copy Probability: 0.3%)

<SENTENCE_START> { system . exit ( 0 ) ; } <SENTENCE_END/>

closed

<SENTENCE_START> { system . exit ( 0 ) ; } <SENTENCE_END/>

(Copy Probability: 0.1%)

<SENTENCE_START> { system . exit ( 0 ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { system . exit ( 0 ) ; } <SENTENCE_END/>

(Copy Probability: 0.1%)

<SENTENCE_START> { system . exit ( 0 ) ; } <SENTENCE_END/>


Original Name initialize

initialize

<SENTENCE_START> { initialize components ( ) ; initialize menus ( ) ; initialize events ( ) ; set size ( 1024 , 600 ) ; set location relative to ( null ) ; set default close operation ( j frame . dispose on close ) ; } <SENTENCE_END/>

(Copy Probability: 3.0%)

<SENTENCE_START> { initialize components ( ) ; initialize menus ( ) ; initialize events ( ) ; set size ( 1024 , 600 ) ; set location relative to ( null ) ; set default close operation ( j frame . dispose on close ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { initialize components ( ) ; initialize menus ( ) ; initialize events ( ) ; set size ( 1024 , 600 ) ; set location relative to ( null ) ; set default close operation ( j frame . dispose on close ) ; } <SENTENCE_END/>

(Copy Probability: 10.7%)

<SENTENCE_START> { initialize components ( ) ; initialize menus ( ) ; initialize events ( ) ; set size ( 1024 , 600 ) ; set location relative to ( null ) ; set default close operation ( j frame . dispose on close ) ; } <SENTENCE_END/>


Original Name parse,args

parse

<SENTENCE_START> { float scale = 1f ; for ( int i = 0 ; i < args . length ; i ++ ) { final string param = args [ i ] ; final boolean more = i < args . length - 1 ; if ( param . equals ( "-b" ) || param . equals ( "--batch" ) ) { batch mode = true ; } else if ( more && ( param . equals ( "-s" ) || param . equals ( "--scale" ) ) ) { scale = float . parse float ( args [ ++ i ] ) ; } else if ( more && ( param . equals ( "-i" ) || param . equals ( "--input" ) ) ) { file f = new file ( args [ ++ i ] ) ; open ( f ) ; font file radio . set text ( "" ) ; update font ( ) ; } else if ( more && ( param . equals ( "-o" ) || param . equals ( "--output" ) ) ) { file f = new file ( args [ ++ i ] ) ; save bm ( f ) ; } else { system . err . println ( "Unknown parameter: " + param ) ; exit ( 3 ) ; } } font size spinner . set value ( ( int ) ( 0.5f + math . max ( 4 , scale * ( ( integer ) font size spinner . get value ( ) ) ) ) ) ; } <SENTENCE_END/>

(Copy Probability: 4.2%)

<SENTENCE_START> { float scale = 1f ; for ( int i = 0 ; i < args . length ; i ++ ) { final string param = args [ i ] ; final boolean more = i < args . length - 1 ; if ( param . equals ( "-b" ) || param . equals ( "--batch" ) ) { batch mode = true ; } else if ( more && ( param . equals ( "-s" ) || param . equals ( "--scale" ) ) ) { scale = float . parse float ( args [ ++ i ] ) ; } else if ( more && ( param . equals ( "-i" ) || param . equals ( "--input" ) ) ) { file f = new file ( args [ ++ i ] ) ; open ( f ) ; font file radio . set text ( "" ) ; update font ( ) ; } else if ( more && ( param . equals ( "-o" ) || param . equals ( "--output" ) ) ) { file f = new file ( args [ ++ i ] ) ; save bm ( f ) ; } else { system . err . println ( "Unknown parameter: " + param ) ; exit ( 3 ) ; } } font size spinner . set value ( ( int ) ( 0.5f + math . max ( 4 , scale * ( ( integer ) font size spinner . get value ( ) ) ) ) ) ; } <SENTENCE_END/>

args

<SENTENCE_START> { float scale = 1f ; for ( int i = 0 ; i < args . length ; i ++ ) { final string param = args [ i ] ; final boolean more = i < args . length - 1 ; if ( param . equals ( "-b" ) || param . equals ( "--batch" ) ) { batch mode = true ; } else if ( more && ( param . equals ( "-s" ) || param . equals ( "--scale" ) ) ) { scale = float . parse float ( args [ ++ i ] ) ; } else if ( more && ( param . equals ( "-i" ) || param . equals ( "--input" ) ) ) { file f = new file ( args [ ++ i ] ) ; open ( f ) ; font file radio . set text ( "" ) ; update font ( ) ; } else if ( more && ( param . equals ( "-o" ) || param . equals ( "--output" ) ) ) { file f = new file ( args [ ++ i ] ) ; save bm ( f ) ; } else { system . err . println ( "Unknown parameter: " + param ) ; exit ( 3 ) ; } } font size spinner . set value ( ( int ) ( 0.5f + math . max ( 4 , scale * ( ( integer ) font size spinner . get value ( ) ) ) ) ) ; } <SENTENCE_END/>

(Copy Probability: 20.7%)

<SENTENCE_START> { float scale = 1f ; for ( int i = 0 ; i < args . length ; i ++ ) { final string param = args [ i ] ; final boolean more = i < args . length - 1 ; if ( param . equals ( "-b" ) || param . equals ( "--batch" ) ) { batch mode = true ; } else if ( more && ( param . equals ( "-s" ) || param . equals ( "--scale" ) ) ) { scale = float . parse float ( args [ ++ i ] ) ; } else if ( more && ( param . equals ( "-i" ) || param . equals ( "--input" ) ) ) { file f = new file ( args [ ++ i ] ) ; open ( f ) ; font file radio . set text ( "" ) ; update font ( ) ; } else if ( more && ( param . equals ( "-o" ) || param . equals ( "--output" ) ) ) { file f = new file ( args [ ++ i ] ) ; save bm ( f ) ; } else { system . err . println ( "Unknown parameter: " + param ) ; exit ( 3 ) ; } } font size spinner . set value ( ( int ) ( 0.5f + math . max ( 4 , scale * ( ( integer ) font size spinner . get value ( ) ) ) ) ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { float scale = 1f ; for ( int i = 0 ; i < args . length ; i ++ ) { final string param = args [ i ] ; final boolean more = i < args . length - 1 ; if ( param . equals ( "-b" ) || param . equals ( "--batch" ) ) { batch mode = true ; } else if ( more && ( param . equals ( "-s" ) || param . equals ( "--scale" ) ) ) { scale = float . parse float ( args [ ++ i ] ) ; } else if ( more && ( param . equals ( "-i" ) || param . equals ( "--input" ) ) ) { file f = new file ( args [ ++ i ] ) ; open ( f ) ; font file radio . set text ( "" ) ; update font ( ) ; } else if ( more && ( param . equals ( "-o" ) || param . equals ( "--output" ) ) ) { file f = new file ( args [ ++ i ] ) ; save bm ( f ) ; } else { system . err . println ( "Unknown parameter: " + param ) ; exit ( 3 ) ; } } font size spinner . set value ( ( int ) ( 0.5f + math . max ( 4 , scale * ( ( integer ) font size spinner . get value ( ) ) ) ) ) ; } <SENTENCE_END/>

(Copy Probability: 6.1%)

<SENTENCE_START> { float scale = 1f ; for ( int i = 0 ; i < args . length ; i ++ ) { final string param = args [ i ] ; final boolean more = i < args . length - 1 ; if ( param . equals ( "-b" ) || param . equals ( "--batch" ) ) { batch mode = true ; } else if ( more && ( param . equals ( "-s" ) || param . equals ( "--scale" ) ) ) { scale = float . parse float ( args [ ++ i ] ) ; } else if ( more && ( param . equals ( "-i" ) || param . equals ( "--input" ) ) ) { file f = new file ( args [ ++ i ] ) ; open ( f ) ; font file radio . set text ( "" ) ; update font ( ) ; } else if ( more && ( param . equals ( "-o" ) || param . equals ( "--output" ) ) ) { file f = new file ( args [ ++ i ] ) ; save bm ( f ) ; } else { system . err . println ( "Unknown parameter: " + param ) ; exit ( 3 ) ; } } font size spinner . set value ( ( int ) ( 0.5f + math . max ( 4 , scale * ( ( integer ) font size spinner . get value ( ) ) ) ) ) ; } <SENTENCE_END/>


Original Name update,font,selector

update

<SENTENCE_START> { final boolean use file = font file radio . is selected ( ) ; font list . set enabled ( ! use file ) ; font file text . set enabled ( use file ) ; browse button . set enabled ( use file ) ; } <SENTENCE_END/>

(Copy Probability: 2.1%)

<SENTENCE_START> { final boolean use file = font file radio . is selected ( ) ; font list . set enabled ( ! use file ) ; font file text . set enabled ( use file ) ; browse button . set enabled ( use file ) ; } <SENTENCE_END/>

font

<SENTENCE_START> { final boolean use file = font file radio . is selected ( ) ; font list . set enabled ( ! use file ) ; font file text . set enabled ( use file ) ; browse button . set enabled ( use file ) ; } <SENTENCE_END/>

(Copy Probability: 22.6%)

<SENTENCE_START> { final boolean use file = font file radio . is selected ( ) ; font list . set enabled ( ! use file ) ; font file text . set enabled ( use file ) ; browse button . set enabled ( use file ) ; } <SENTENCE_END/>

selector

<SENTENCE_START> { final boolean use file = font file radio . is selected ( ) ; font list . set enabled ( ! use file ) ; font file text . set enabled ( use file ) ; browse button . set enabled ( use file ) ; } <SENTENCE_END/>

(Copy Probability: 24.4%)

<SENTENCE_START> { final boolean use file = font file radio . is selected ( ) ; font list . set enabled ( ! use file ) ; font file text . set enabled ( use file ) ; browse button . set enabled ( use file ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { final boolean use file = font file radio . is selected ( ) ; font list . set enabled ( ! use file ) ; font file text . set enabled ( use file ) ; browse button . set enabled ( use file ) ; } <SENTENCE_END/>

(Copy Probability: 7.7%)

<SENTENCE_START> { final boolean use file = font file radio . is selected ( ) ; font list . set enabled ( ! use file ) ; font file text . set enabled ( use file ) ; browse button . set enabled ( use file ) ; } <SENTENCE_END/>


Original Name update,font

update

<SENTENCE_START> { int font size = ( ( integer ) font size spinner . get value ( ) ) . int value ( ) ; file file = null ; if ( font file radio . is selected ( ) ) { file = new file ( font file text . get text ( ) ) ; if ( ! file . exists ( ) || ! file . is file ( ) ) file = null ; } boolean is free type = free type radio . is selected ( ) ; boolean is native = native radio . is selected ( ) ; boolean is java = java radio . is selected ( ) ; add effect button . set visible ( is java ) ; effects scroll . set visible ( is java ) ; applied effects scroll . set visible ( is java ) ; bold check box . set enabled ( ! is free type ) ; italic check box . set enabled ( ! is free type ) ; bitmap panel . set visible ( is free type ) ; unicode panel . set visible ( ! is free type ) ; update font selector ( ) ; unicode font unicode font = null ; if ( file != null ) { try { unicode font = new unicode font ( font file text . get text ( ) , font size , bold check box . is selected ( ) , italic check box . is selected ( ) ) ; } catch ( throwable ex ) { ex . print stack trace ( ) ; font file radio . set selected ( false ) ; } } if ( unicode font == null ) { unicode font = new unicode font ( font . decode ( ( string ) font list . get selected value ( ) ) , font size , bold check box . is selected ( ) , italic check box . is selected ( ) ) ; } unicode font . set mono ( mono check box . is selected ( ) ) ; unicode font . set gamma ( ( ( double ) gamma spinner . get value ( ) ) . float value ( ) ) ; unicode font . set padding top ( ( ( integer ) pad top spinner . get value ( ) ) . int value ( ) ) ; unicode font . set padding right ( ( ( integer ) pad right spinner . get value ( ) ) . int value ( ) ) ; unicode font . set padding bottom ( ( ( integer ) pad bottom spinner . get value ( ) ) . int value ( ) ) ; unicode font . set padding left ( ( ( integer ) pad left spinner . get value ( ) ) . int value ( ) ) ; unicode font . set padding advance x ( ( ( integer ) pad advance x spinner . get value ( ) ) . int value ( ) ) ; unicode font . set padding advance y ( ( ( integer ) pad advance y spinner . get value ( ) ) . int value ( ) ) ; unicode font . set glyph page width ( ( ( integer ) glyph page width combo . get selected item ( ) ) . int value ( ) ) ; unicode font . set glyph page height ( ( ( integer ) glyph page height combo . get selected item ( ) ) . int value ( ) ) ; if ( native radio . is selected ( ) ) unicode font . set render type ( render type . native ) ; else if ( free type radio . is selected ( ) ) unicode font . set render type ( render type . free type ) ; else unicode font . set render type ( render type . java ) ; for ( iterator iter = effect panels . iterator ( ) ; iter . has next ( ) ; ) { effect panel panel = ( effect panel ) iter . next ( ) ; unicode font . get effects ( ) . add ( panel . get effect ( ) ) ; } int size = sample text pane . get font ( ) . get size ( ) ; if ( size < 14 ) size = 14 ; sample text pane . set font ( unicode font . get font ( ) . derive font ( ( float ) size ) ) ; if ( this . unicode font != null ) this . unicode font . dispose ( ) ; this . unicode font = unicode font ; update font selector ( ) ; } <SENTENCE_END/>

(Copy Probability: 3.3%)

<SENTENCE_START> { int font size = ( ( integer ) font size spinner . get value ( ) ) . int value ( ) ; file file = null ; if ( font file radio . is selected ( ) ) { file = new file ( font file text . get text ( ) ) ; if ( ! file . exists ( ) || ! file . is file ( ) ) file = null ; } boolean is free type = free type radio . is selected ( ) ; boolean is native = native radio . is selected ( ) ; boolean is java = java radio . is selected ( ) ; add effect button . set visible ( is java ) ; effects scroll . set visible ( is java ) ; applied effects scroll . set visible ( is java ) ; bold check box . set enabled ( ! is free type ) ; italic check box . set enabled ( ! is free type ) ; bitmap panel . set visible ( is free type ) ; unicode panel . set visible ( ! is free type ) ; update font selector ( ) ; unicode font unicode font = null ; if ( file != null ) { try { unicode font = new unicode font ( font file text . get text ( ) , font size , bold check box . is selected ( ) , italic check box . is selected ( ) ) ; } catch ( throwable ex ) { ex . print stack trace ( ) ; font file radio . set selected ( false ) ; } } if ( unicode font == null ) { unicode font = new unicode font ( font . decode ( ( string ) font list . get selected value ( ) ) , font size , bold check box . is selected ( ) , italic check box . is selected ( ) ) ; } unicode font . set mono ( mono check box . is selected ( ) ) ; unicode font . set gamma ( ( ( double ) gamma spinner . get value ( ) ) . float value ( ) ) ; unicode font . set padding top ( ( ( integer ) pad top spinner . get value ( ) ) . int value ( ) ) ; unicode font . set padding right ( ( ( integer ) pad right spinner . get value ( ) ) . int value ( ) ) ; unicode font . set padding bottom ( ( ( integer ) pad bottom spinner . get value ( ) ) . int value ( ) ) ; unicode font . set padding left ( ( ( integer ) pad left spinner . get value ( ) ) . int value ( ) ) ; unicode font . set padding advance x ( ( ( integer ) pad advance x spinner . get value ( ) ) . int value ( ) ) ; unicode font . set padding advance y ( ( ( integer ) pad advance y spinner . get value ( ) ) . int value ( ) ) ; unicode font . set glyph page width ( ( ( integer ) glyph page width combo . get selected item ( ) ) . int value ( ) ) ; unicode font . set glyph page height ( ( ( integer ) glyph page height combo . get selected item ( ) ) . int value ( ) ) ; if ( native radio . is selected ( ) ) unicode font . set render type ( render type . native ) ; else if ( free type radio . is selected ( ) ) unicode font . set render type ( render type . free type ) ; else unicode font . set render type ( render type . java ) ; for ( iterator iter = effect panels . iterator ( ) ; iter . has next ( ) ; ) { effect panel panel = ( effect panel ) iter . next ( ) ; unicode font . get effects ( ) . add ( panel . get effect ( ) ) ; } int size = sample text pane . get font ( ) . get size ( ) ; if ( size < 14 ) size = 14 ; sample text pane . set font ( unicode font . get font ( ) . derive font ( ( float ) size ) ) ; if ( this . unicode font != null ) this . unicode font . dispose ( ) ; this . unicode font = unicode font ; update font selector ( ) ; } <SENTENCE_END/>

font

<SENTENCE_START> { int font size = ( ( integer ) font size spinner . get value ( ) ) . int value ( ) ; file file = null ; if ( font file radio . is selected ( ) ) { file = new file ( font file text . get text ( ) ) ; if ( ! file . exists ( ) || ! file . is file ( ) ) file = null ; } boolean is free type = free type radio . is selected ( ) ; boolean is native = native radio . is selected ( ) ; boolean is java = java radio . is selected ( ) ; add effect button . set visible ( is java ) ; effects scroll . set visible ( is java ) ; applied effects scroll . set visible ( is java ) ; bold check box . set enabled ( ! is free type ) ; italic check box . set enabled ( ! is free type ) ; bitmap panel . set visible ( is free type ) ; unicode panel . set visible ( ! is free type ) ; update font selector ( ) ; unicode font unicode font = null ; if ( file != null ) { try { unicode font = new unicode font ( font file text . get text ( ) , font size , bold check box . is selected ( ) , italic check box . is selected ( ) ) ; } catch ( throwable ex ) { ex . print stack trace ( ) ; font file radio . set selected ( false ) ; } } if ( unicode font == null ) { unicode font = new unicode font ( font . decode ( ( string ) font list . get selected value ( ) ) , font size , bold check box . is selected ( ) , italic check box . is selected ( ) ) ; } unicode font . set mono ( mono check box . is selected ( ) ) ; unicode font . set gamma ( ( ( double ) gamma spinner . get value ( ) ) . float value ( ) ) ; unicode font . set padding top ( ( ( integer ) pad top spinner . get value ( ) ) . int value ( ) ) ; unicode font . set padding right ( ( ( integer ) pad right spinner . get value ( ) ) . int value ( ) ) ; unicode font . set padding bottom ( ( ( integer ) pad bottom spinner . get value ( ) ) . int value ( ) ) ; unicode font . set padding left ( ( ( integer ) pad left spinner . get value ( ) ) . int value ( ) ) ; unicode font . set padding advance x ( ( ( integer ) pad advance x spinner . get value ( ) ) . int value ( ) ) ; unicode font . set padding advance y ( ( ( integer ) pad advance y spinner . get value ( ) ) . int value ( ) ) ; unicode font . set glyph page width ( ( ( integer ) glyph page width combo . get selected item ( ) ) . int value ( ) ) ; unicode font . set glyph page height ( ( ( integer ) glyph page height combo . get selected item ( ) ) . int value ( ) ) ; if ( native radio . is selected ( ) ) unicode font . set render type ( render type . native ) ; else if ( free type radio . is selected ( ) ) unicode font . set render type ( render type . free type ) ; else unicode font . set render type ( render type . java ) ; for ( iterator iter = effect panels . iterator ( ) ; iter . has next ( ) ; ) { effect panel panel = ( effect panel ) iter . next ( ) ; unicode font . get effects ( ) . add ( panel . get effect ( ) ) ; } int size = sample text pane . get font ( ) . get size ( ) ; if ( size < 14 ) size = 14 ; sample text pane . set font ( unicode font . get font ( ) . derive font ( ( float ) size ) ) ; if ( this . unicode font != null ) this . unicode font . dispose ( ) ; this . unicode font = unicode font ; update font selector ( ) ; } <SENTENCE_END/>

(Copy Probability: 9.7%)

<SENTENCE_START> { int font size = ( ( integer ) font size spinner . get value ( ) ) . int value ( ) ; file file = null ; if ( font file radio . is selected ( ) ) { file = new file ( font file text . get text ( ) ) ; if ( ! file . exists ( ) || ! file . is file ( ) ) file = null ; } boolean is free type = free type radio . is selected ( ) ; boolean is native = native radio . is selected ( ) ; boolean is java = java radio . is selected ( ) ; add effect button . set visible ( is java ) ; effects scroll . set visible ( is java ) ; applied effects scroll . set visible ( is java ) ; bold check box . set enabled ( ! is free type ) ; italic check box . set enabled ( ! is free type ) ; bitmap panel . set visible ( is free type ) ; unicode panel . set visible ( ! is free type ) ; update font selector ( ) ; unicode font unicode font = null ; if ( file != null ) { try { unicode font = new unicode font ( font file text . get text ( ) , font size , bold check box . is selected ( ) , italic check box . is selected ( ) ) ; } catch ( throwable ex ) { ex . print stack trace ( ) ; font file radio . set selected ( false ) ; } } if ( unicode font == null ) { unicode font = new unicode font ( font . decode ( ( string ) font list . get selected value ( ) ) , font size , bold check box . is selected ( ) , italic check box . is selected ( ) ) ; } unicode font . set mono ( mono check box . is selected ( ) ) ; unicode font . set gamma ( ( ( double ) gamma spinner . get value ( ) ) . float value ( ) ) ; unicode font . set padding top ( ( ( integer ) pad top spinner . get value ( ) ) . int value ( ) ) ; unicode font . set padding right ( ( ( integer ) pad right spinner . get value ( ) ) . int value ( ) ) ; unicode font . set padding bottom ( ( ( integer ) pad bottom spinner . get value ( ) ) . int value ( ) ) ; unicode font . set padding left ( ( ( integer ) pad left spinner . get value ( ) ) . int value ( ) ) ; unicode font . set padding advance x ( ( ( integer ) pad advance x spinner . get value ( ) ) . int value ( ) ) ; unicode font . set padding advance y ( ( ( integer ) pad advance y spinner . get value ( ) ) . int value ( ) ) ; unicode font . set glyph page width ( ( ( integer ) glyph page width combo . get selected item ( ) ) . int value ( ) ) ; unicode font . set glyph page height ( ( ( integer ) glyph page height combo . get selected item ( ) ) . int value ( ) ) ; if ( native radio . is selected ( ) ) unicode font . set render type ( render type . native ) ; else if ( free type radio . is selected ( ) ) unicode font . set render type ( render type . free type ) ; else unicode font . set render type ( render type . java ) ; for ( iterator iter = effect panels . iterator ( ) ; iter . has next ( ) ; ) { effect panel panel = ( effect panel ) iter . next ( ) ; unicode font . get effects ( ) . add ( panel . get effect ( ) ) ; } int size = sample text pane . get font ( ) . get size ( ) ; if ( size < 14 ) size = 14 ; sample text pane . set font ( unicode font . get font ( ) . derive font ( ( float ) size ) ) ; if ( this . unicode font != null ) this . unicode font . dispose ( ) ; this . unicode font = unicode font ; update font selector ( ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { int font size = ( ( integer ) font size spinner . get value ( ) ) . int value ( ) ; file file = null ; if ( font file radio . is selected ( ) ) { file = new file ( font file text . get text ( ) ) ; if ( ! file . exists ( ) || ! file . is file ( ) ) file = null ; } boolean is free type = free type radio . is selected ( ) ; boolean is native = native radio . is selected ( ) ; boolean is java = java radio . is selected ( ) ; add effect button . set visible ( is java ) ; effects scroll . set visible ( is java ) ; applied effects scroll . set visible ( is java ) ; bold check box . set enabled ( ! is free type ) ; italic check box . set enabled ( ! is free type ) ; bitmap panel . set visible ( is free type ) ; unicode panel . set visible ( ! is free type ) ; update font selector ( ) ; unicode font unicode font = null ; if ( file != null ) { try { unicode font = new unicode font ( font file text . get text ( ) , font size , bold check box . is selected ( ) , italic check box . is selected ( ) ) ; } catch ( throwable ex ) { ex . print stack trace ( ) ; font file radio . set selected ( false ) ; } } if ( unicode font == null ) { unicode font = new unicode font ( font . decode ( ( string ) font list . get selected value ( ) ) , font size , bold check box . is selected ( ) , italic check box . is selected ( ) ) ; } unicode font . set mono ( mono check box . is selected ( ) ) ; unicode font . set gamma ( ( ( double ) gamma spinner . get value ( ) ) . float value ( ) ) ; unicode font . set padding top ( ( ( integer ) pad top spinner . get value ( ) ) . int value ( ) ) ; unicode font . set padding right ( ( ( integer ) pad right spinner . get value ( ) ) . int value ( ) ) ; unicode font . set padding bottom ( ( ( integer ) pad bottom spinner . get value ( ) ) . int value ( ) ) ; unicode font . set padding left ( ( ( integer ) pad left spinner . get value ( ) ) . int value ( ) ) ; unicode font . set padding advance x ( ( ( integer ) pad advance x spinner . get value ( ) ) . int value ( ) ) ; unicode font . set padding advance y ( ( ( integer ) pad advance y spinner . get value ( ) ) . int value ( ) ) ; unicode font . set glyph page width ( ( ( integer ) glyph page width combo . get selected item ( ) ) . int value ( ) ) ; unicode font . set glyph page height ( ( ( integer ) glyph page height combo . get selected item ( ) ) . int value ( ) ) ; if ( native radio . is selected ( ) ) unicode font . set render type ( render type . native ) ; else if ( free type radio . is selected ( ) ) unicode font . set render type ( render type . free type ) ; else unicode font . set render type ( render type . java ) ; for ( iterator iter = effect panels . iterator ( ) ; iter . has next ( ) ; ) { effect panel panel = ( effect panel ) iter . next ( ) ; unicode font . get effects ( ) . add ( panel . get effect ( ) ) ; } int size = sample text pane . get font ( ) . get size ( ) ; if ( size < 14 ) size = 14 ; sample text pane . set font ( unicode font . get font ( ) . derive font ( ( float ) size ) ) ; if ( this . unicode font != null ) this . unicode font . dispose ( ) ; this . unicode font = unicode font ; update font selector ( ) ; } <SENTENCE_END/>

(Copy Probability: 9.0%)

<SENTENCE_START> { int font size = ( ( integer ) font size spinner . get value ( ) ) . int value ( ) ; file file = null ; if ( font file radio . is selected ( ) ) { file = new file ( font file text . get text ( ) ) ; if ( ! file . exists ( ) || ! file . is file ( ) ) file = null ; } boolean is free type = free type radio . is selected ( ) ; boolean is native = native radio . is selected ( ) ; boolean is java = java radio . is selected ( ) ; add effect button . set visible ( is java ) ; effects scroll . set visible ( is java ) ; applied effects scroll . set visible ( is java ) ; bold check box . set enabled ( ! is free type ) ; italic check box . set enabled ( ! is free type ) ; bitmap panel . set visible ( is free type ) ; unicode panel . set visible ( ! is free type ) ; update font selector ( ) ; unicode font unicode font = null ; if ( file != null ) { try { unicode font = new unicode font ( font file text . get text ( ) , font size , bold check box . is selected ( ) , italic check box . is selected ( ) ) ; } catch ( throwable ex ) { ex . print stack trace ( ) ; font file radio . set selected ( false ) ; } } if ( unicode font == null ) { unicode font = new unicode font ( font . decode ( ( string ) font list . get selected value ( ) ) , font size , bold check box . is selected ( ) , italic check box . is selected ( ) ) ; } unicode font . set mono ( mono check box . is selected ( ) ) ; unicode font . set gamma ( ( ( double ) gamma spinner . get value ( ) ) . float value ( ) ) ; unicode font . set padding top ( ( ( integer ) pad top spinner . get value ( ) ) . int value ( ) ) ; unicode font . set padding right ( ( ( integer ) pad right spinner . get value ( ) ) . int value ( ) ) ; unicode font . set padding bottom ( ( ( integer ) pad bottom spinner . get value ( ) ) . int value ( ) ) ; unicode font . set padding left ( ( ( integer ) pad left spinner . get value ( ) ) . int value ( ) ) ; unicode font . set padding advance x ( ( ( integer ) pad advance x spinner . get value ( ) ) . int value ( ) ) ; unicode font . set padding advance y ( ( ( integer ) pad advance y spinner . get value ( ) ) . int value ( ) ) ; unicode font . set glyph page width ( ( ( integer ) glyph page width combo . get selected item ( ) ) . int value ( ) ) ; unicode font . set glyph page height ( ( ( integer ) glyph page height combo . get selected item ( ) ) . int value ( ) ) ; if ( native radio . is selected ( ) ) unicode font . set render type ( render type . native ) ; else if ( free type radio . is selected ( ) ) unicode font . set render type ( render type . free type ) ; else unicode font . set render type ( render type . java ) ; for ( iterator iter = effect panels . iterator ( ) ; iter . has next ( ) ; ) { effect panel panel = ( effect panel ) iter . next ( ) ; unicode font . get effects ( ) . add ( panel . get effect ( ) ) ; } int size = sample text pane . get font ( ) . get size ( ) ; if ( size < 14 ) size = 14 ; sample text pane . set font ( unicode font . get font ( ) . derive font ( ( float ) size ) ) ; if ( this . unicode font != null ) this . unicode font . dispose ( ) ; this . unicode font = unicode font ; update font selector ( ) ; } <SENTENCE_END/>


Original Name save,bm

save

<SENTENCE_START> { save bm font file = file ; } <SENTENCE_END/>

(Copy Probability: 1.0%)

<SENTENCE_START> { save bm font file = file ; } <SENTENCE_END/>

bm

<SENTENCE_START> { save bm font file = file ; } <SENTENCE_END/>

(Copy Probability: 95.9%)

<SENTENCE_START> { save bm font file = file ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { save bm font file = file ; } <SENTENCE_END/>

(Copy Probability: 77.7%)

<SENTENCE_START> { save bm font file = file ; } <SENTENCE_END/>


Original Name save

save

<SENTENCE_START> { hiero settings settings = new hiero settings ( ) ; settings . set font name ( ( string ) font list . get selected value ( ) ) ; settings . set font size ( ( ( integer ) font size spinner . get value ( ) ) . int value ( ) ) ; settings . set font 2 file ( font file text . get text ( ) ) ; settings . set font 2 active ( font file radio . is selected ( ) ) ; settings . set bold ( bold check box . is selected ( ) ) ; settings . set italic ( italic check box . is selected ( ) ) ; settings . set mono ( mono check box . is selected ( ) ) ; settings . set gamma ( ( ( double ) gamma spinner . get value ( ) ) . float value ( ) ) ; settings . set padding top ( ( ( integer ) pad top spinner . get value ( ) ) . int value ( ) ) ; settings . set padding right ( ( ( integer ) pad right spinner . get value ( ) ) . int value ( ) ) ; settings . set padding bottom ( ( ( integer ) pad bottom spinner . get value ( ) ) . int value ( ) ) ; settings . set padding left ( ( ( integer ) pad left spinner . get value ( ) ) . int value ( ) ) ; settings . set padding advance x ( ( ( integer ) pad advance x spinner . get value ( ) ) . int value ( ) ) ; settings . set padding advance y ( ( ( integer ) pad advance y spinner . get value ( ) ) . int value ( ) ) ; settings . set glyph page width ( ( ( integer ) glyph page width combo . get selected item ( ) ) . int value ( ) ) ; settings . set glyph page height ( ( ( integer ) glyph page height combo . get selected item ( ) ) . int value ( ) ) ; settings . set glyph text ( sample text pane . get text ( ) ) ; for ( iterator iter = effect panels . iterator ( ) ; iter . has next ( ) ; ) { effect panel panel = ( effect panel ) iter . next ( ) ; settings . get effects ( ) . add ( panel . get effect ( ) ) ; } settings . %SELF% ( file ) ; } <SENTENCE_END/>

(Copy Probability: 3.8%)

<SENTENCE_START> { hiero settings settings = new hiero settings ( ) ; settings . set font name ( ( string ) font list . get selected value ( ) ) ; settings . set font size ( ( ( integer ) font size spinner . get value ( ) ) . int value ( ) ) ; settings . set font 2 file ( font file text . get text ( ) ) ; settings . set font 2 active ( font file radio . is selected ( ) ) ; settings . set bold ( bold check box . is selected ( ) ) ; settings . set italic ( italic check box . is selected ( ) ) ; settings . set mono ( mono check box . is selected ( ) ) ; settings . set gamma ( ( ( double ) gamma spinner . get value ( ) ) . float value ( ) ) ; settings . set padding top ( ( ( integer ) pad top spinner . get value ( ) ) . int value ( ) ) ; settings . set padding right ( ( ( integer ) pad right spinner . get value ( ) ) . int value ( ) ) ; settings . set padding bottom ( ( ( integer ) pad bottom spinner . get value ( ) ) . int value ( ) ) ; settings . set padding left ( ( ( integer ) pad left spinner . get value ( ) ) . int value ( ) ) ; settings . set padding advance x ( ( ( integer ) pad advance x spinner . get value ( ) ) . int value ( ) ) ; settings . set padding advance y ( ( ( integer ) pad advance y spinner . get value ( ) ) . int value ( ) ) ; settings . set glyph page width ( ( ( integer ) glyph page width combo . get selected item ( ) ) . int value ( ) ) ; settings . set glyph page height ( ( ( integer ) glyph page height combo . get selected item ( ) ) . int value ( ) ) ; settings . set glyph text ( sample text pane . get text ( ) ) ; for ( iterator iter = effect panels . iterator ( ) ; iter . has next ( ) ; ) { effect panel panel = ( effect panel ) iter . next ( ) ; settings . get effects ( ) . add ( panel . get effect ( ) ) ; } settings . %SELF% ( file ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { hiero settings settings = new hiero settings ( ) ; settings . set font name ( ( string ) font list . get selected value ( ) ) ; settings . set font size ( ( ( integer ) font size spinner . get value ( ) ) . int value ( ) ) ; settings . set font 2 file ( font file text . get text ( ) ) ; settings . set font 2 active ( font file radio . is selected ( ) ) ; settings . set bold ( bold check box . is selected ( ) ) ; settings . set italic ( italic check box . is selected ( ) ) ; settings . set mono ( mono check box . is selected ( ) ) ; settings . set gamma ( ( ( double ) gamma spinner . get value ( ) ) . float value ( ) ) ; settings . set padding top ( ( ( integer ) pad top spinner . get value ( ) ) . int value ( ) ) ; settings . set padding right ( ( ( integer ) pad right spinner . get value ( ) ) . int value ( ) ) ; settings . set padding bottom ( ( ( integer ) pad bottom spinner . get value ( ) ) . int value ( ) ) ; settings . set padding left ( ( ( integer ) pad left spinner . get value ( ) ) . int value ( ) ) ; settings . set padding advance x ( ( ( integer ) pad advance x spinner . get value ( ) ) . int value ( ) ) ; settings . set padding advance y ( ( ( integer ) pad advance y spinner . get value ( ) ) . int value ( ) ) ; settings . set glyph page width ( ( ( integer ) glyph page width combo . get selected item ( ) ) . int value ( ) ) ; settings . set glyph page height ( ( ( integer ) glyph page height combo . get selected item ( ) ) . int value ( ) ) ; settings . set glyph text ( sample text pane . get text ( ) ) ; for ( iterator iter = effect panels . iterator ( ) ; iter . has next ( ) ; ) { effect panel panel = ( effect panel ) iter . next ( ) ; settings . get effects ( ) . add ( panel . get effect ( ) ) ; } settings . %SELF% ( file ) ; } <SENTENCE_END/>

(Copy Probability: 23.6%)

<SENTENCE_START> { hiero settings settings = new hiero settings ( ) ; settings . set font name ( ( string ) font list . get selected value ( ) ) ; settings . set font size ( ( ( integer ) font size spinner . get value ( ) ) . int value ( ) ) ; settings . set font 2 file ( font file text . get text ( ) ) ; settings . set font 2 active ( font file radio . is selected ( ) ) ; settings . set bold ( bold check box . is selected ( ) ) ; settings . set italic ( italic check box . is selected ( ) ) ; settings . set mono ( mono check box . is selected ( ) ) ; settings . set gamma ( ( ( double ) gamma spinner . get value ( ) ) . float value ( ) ) ; settings . set padding top ( ( ( integer ) pad top spinner . get value ( ) ) . int value ( ) ) ; settings . set padding right ( ( ( integer ) pad right spinner . get value ( ) ) . int value ( ) ) ; settings . set padding bottom ( ( ( integer ) pad bottom spinner . get value ( ) ) . int value ( ) ) ; settings . set padding left ( ( ( integer ) pad left spinner . get value ( ) ) . int value ( ) ) ; settings . set padding advance x ( ( ( integer ) pad advance x spinner . get value ( ) ) . int value ( ) ) ; settings . set padding advance y ( ( ( integer ) pad advance y spinner . get value ( ) ) . int value ( ) ) ; settings . set glyph page width ( ( ( integer ) glyph page width combo . get selected item ( ) ) . int value ( ) ) ; settings . set glyph page height ( ( ( integer ) glyph page height combo . get selected item ( ) ) . int value ( ) ) ; settings . set glyph text ( sample text pane . get text ( ) ) ; for ( iterator iter = effect panels . iterator ( ) ; iter . has next ( ) ; ) { effect panel panel = ( effect panel ) iter . next ( ) ; settings . get effects ( ) . add ( panel . get effect ( ) ) ; } settings . %SELF% ( file ) ; } <SENTENCE_END/>


Original Name open

open

<SENTENCE_START> { effect panel [ ] panels = ( effect panel [ ] ) effect panels . to array ( new effect panel [ effect panels . size ( ) ] ) ; for ( int i = 0 ; i < panels . length ; i ++ ) panels [ i ] . remove ( ) ; hiero settings settings = new hiero settings ( file . get absolute path ( ) ) ; font list . set selected value ( settings . get font name ( ) , true ) ; font size spinner . set value ( new integer ( settings . get font size ( ) ) ) ; bold check box . set selected ( settings . is bold ( ) ) ; italic check box . set selected ( settings . is italic ( ) ) ; mono check box . set selected ( settings . is mono ( ) ) ; gamma spinner . set value ( new float ( settings . get gamma ( ) ) ) ; pad top spinner . set value ( new integer ( settings . get padding top ( ) ) ) ; pad right spinner . set value ( new integer ( settings . get padding right ( ) ) ) ; pad bottom spinner . set value ( new integer ( settings . get padding bottom ( ) ) ) ; pad left spinner . set value ( new integer ( settings . get padding left ( ) ) ) ; pad advance x spinner . set value ( new integer ( settings . get padding advance x ( ) ) ) ; pad advance y spinner . set value ( new integer ( settings . get padding advance y ( ) ) ) ; glyph page width combo . set selected item ( new integer ( settings . get glyph page width ( ) ) ) ; glyph page height combo . set selected item ( new integer ( settings . get glyph page height ( ) ) ) ; string gt = settings . get glyph text ( ) ; if ( gt . length ( ) > 0 ) { sample text pane . set text ( settings . get glyph text ( ) ) ; } final string font 2 = settings . get font 2 file ( ) ; if ( font 2 . length ( ) > 0 ) font file text . set text ( font 2 ) ; else font file text . set text ( prefs . get ( "font.file" , "" ) ) ; font file radio . set selected ( settings . is font 2 active ( ) ) ; system font radio . set selected ( ! settings . is font 2 active ( ) ) ; for ( iterator iter = settings . get effects ( ) . iterator ( ) ; iter . has next ( ) ; ) { configurable effect settings effect = ( configurable effect ) iter . next ( ) ; for ( int i = 0 , n = effects list model . get size ( ) ; i < n ; i ++ ) { configurable effect effect = ( configurable effect ) effects list model . get element at ( i ) ; if ( effect . get class ( ) == settings effect . get class ( ) ) { effect . set values ( settings effect . get values ( ) ) ; new effect panel ( effect ) ; break ; } } } update font ( ) ; } <SENTENCE_END/>

(Copy Probability: 3.5%)

<SENTENCE_START> { effect panel [ ] panels = ( effect panel [ ] ) effect panels . to array ( new effect panel [ effect panels . size ( ) ] ) ; for ( int i = 0 ; i < panels . length ; i ++ ) panels [ i ] . remove ( ) ; hiero settings settings = new hiero settings ( file . get absolute path ( ) ) ; font list . set selected value ( settings . get font name ( ) , true ) ; font size spinner . set value ( new integer ( settings . get font size ( ) ) ) ; bold check box . set selected ( settings . is bold ( ) ) ; italic check box . set selected ( settings . is italic ( ) ) ; mono check box . set selected ( settings . is mono ( ) ) ; gamma spinner . set value ( new float ( settings . get gamma ( ) ) ) ; pad top spinner . set value ( new integer ( settings . get padding top ( ) ) ) ; pad right spinner . set value ( new integer ( settings . get padding right ( ) ) ) ; pad bottom spinner . set value ( new integer ( settings . get padding bottom ( ) ) ) ; pad left spinner . set value ( new integer ( settings . get padding left ( ) ) ) ; pad advance x spinner . set value ( new integer ( settings . get padding advance x ( ) ) ) ; pad advance y spinner . set value ( new integer ( settings . get padding advance y ( ) ) ) ; glyph page width combo . set selected item ( new integer ( settings . get glyph page width ( ) ) ) ; glyph page height combo . set selected item ( new integer ( settings . get glyph page height ( ) ) ) ; string gt = settings . get glyph text ( ) ; if ( gt . length ( ) > 0 ) { sample text pane . set text ( settings . get glyph text ( ) ) ; } final string font 2 = settings . get font 2 file ( ) ; if ( font 2 . length ( ) > 0 ) font file text . set text ( font 2 ) ; else font file text . set text ( prefs . get ( "font.file" , "" ) ) ; font file radio . set selected ( settings . is font 2 active ( ) ) ; system font radio . set selected ( ! settings . is font 2 active ( ) ) ; for ( iterator iter = settings . get effects ( ) . iterator ( ) ; iter . has next ( ) ; ) { configurable effect settings effect = ( configurable effect ) iter . next ( ) ; for ( int i = 0 , n = effects list model . get size ( ) ; i < n ; i ++ ) { configurable effect effect = ( configurable effect ) effects list model . get element at ( i ) ; if ( effect . get class ( ) == settings effect . get class ( ) ) { effect . set values ( settings effect . get values ( ) ) ; new effect panel ( effect ) ; break ; } } } update font ( ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { effect panel [ ] panels = ( effect panel [ ] ) effect panels . to array ( new effect panel [ effect panels . size ( ) ] ) ; for ( int i = 0 ; i < panels . length ; i ++ ) panels [ i ] . remove ( ) ; hiero settings settings = new hiero settings ( file . get absolute path ( ) ) ; font list . set selected value ( settings . get font name ( ) , true ) ; font size spinner . set value ( new integer ( settings . get font size ( ) ) ) ; bold check box . set selected ( settings . is bold ( ) ) ; italic check box . set selected ( settings . is italic ( ) ) ; mono check box . set selected ( settings . is mono ( ) ) ; gamma spinner . set value ( new float ( settings . get gamma ( ) ) ) ; pad top spinner . set value ( new integer ( settings . get padding top ( ) ) ) ; pad right spinner . set value ( new integer ( settings . get padding right ( ) ) ) ; pad bottom spinner . set value ( new integer ( settings . get padding bottom ( ) ) ) ; pad left spinner . set value ( new integer ( settings . get padding left ( ) ) ) ; pad advance x spinner . set value ( new integer ( settings . get padding advance x ( ) ) ) ; pad advance y spinner . set value ( new integer ( settings . get padding advance y ( ) ) ) ; glyph page width combo . set selected item ( new integer ( settings . get glyph page width ( ) ) ) ; glyph page height combo . set selected item ( new integer ( settings . get glyph page height ( ) ) ) ; string gt = settings . get glyph text ( ) ; if ( gt . length ( ) > 0 ) { sample text pane . set text ( settings . get glyph text ( ) ) ; } final string font 2 = settings . get font 2 file ( ) ; if ( font 2 . length ( ) > 0 ) font file text . set text ( font 2 ) ; else font file text . set text ( prefs . get ( "font.file" , "" ) ) ; font file radio . set selected ( settings . is font 2 active ( ) ) ; system font radio . set selected ( ! settings . is font 2 active ( ) ) ; for ( iterator iter = settings . get effects ( ) . iterator ( ) ; iter . has next ( ) ; ) { configurable effect settings effect = ( configurable effect ) iter . next ( ) ; for ( int i = 0 , n = effects list model . get size ( ) ; i < n ; i ++ ) { configurable effect effect = ( configurable effect ) effects list model . get element at ( i ) ; if ( effect . get class ( ) == settings effect . get class ( ) ) { effect . set values ( settings effect . get values ( ) ) ; new effect panel ( effect ) ; break ; } } } update font ( ) ; } <SENTENCE_END/>

(Copy Probability: 10.4%)

<SENTENCE_START> { effect panel [ ] panels = ( effect panel [ ] ) effect panels . to array ( new effect panel [ effect panels . size ( ) ] ) ; for ( int i = 0 ; i < panels . length ; i ++ ) panels [ i ] . remove ( ) ; hiero settings settings = new hiero settings ( file . get absolute path ( ) ) ; font list . set selected value ( settings . get font name ( ) , true ) ; font size spinner . set value ( new integer ( settings . get font size ( ) ) ) ; bold check box . set selected ( settings . is bold ( ) ) ; italic check box . set selected ( settings . is italic ( ) ) ; mono check box . set selected ( settings . is mono ( ) ) ; gamma spinner . set value ( new float ( settings . get gamma ( ) ) ) ; pad top spinner . set value ( new integer ( settings . get padding top ( ) ) ) ; pad right spinner . set value ( new integer ( settings . get padding right ( ) ) ) ; pad bottom spinner . set value ( new integer ( settings . get padding bottom ( ) ) ) ; pad left spinner . set value ( new integer ( settings . get padding left ( ) ) ) ; pad advance x spinner . set value ( new integer ( settings . get padding advance x ( ) ) ) ; pad advance y spinner . set value ( new integer ( settings . get padding advance y ( ) ) ) ; glyph page width combo . set selected item ( new integer ( settings . get glyph page width ( ) ) ) ; glyph page height combo . set selected item ( new integer ( settings . get glyph page height ( ) ) ) ; string gt = settings . get glyph text ( ) ; if ( gt . length ( ) > 0 ) { sample text pane . set text ( settings . get glyph text ( ) ) ; } final string font 2 = settings . get font 2 file ( ) ; if ( font 2 . length ( ) > 0 ) font file text . set text ( font 2 ) ; else font file text . set text ( prefs . get ( "font.file" , "" ) ) ; font file radio . set selected ( settings . is font 2 active ( ) ) ; system font radio . set selected ( ! settings . is font 2 active ( ) ) ; for ( iterator iter = settings . get effects ( ) . iterator ( ) ; iter . has next ( ) ; ) { configurable effect settings effect = ( configurable effect ) iter . next ( ) ; for ( int i = 0 , n = effects list model . get size ( ) ; i < n ; i ++ ) { configurable effect effect = ( configurable effect ) effects list model . get element at ( i ) ; if ( effect . get class ( ) == settings effect . get class ( ) ) { effect . set values ( settings effect . get values ( ) ) ; new effect panel ( effect ) ; break ; } } } update font ( ) ; } <SENTENCE_END/>


Original Name exit

exit

<SENTENCE_START> { renderer canvas . stop ( ) ; event queue . invoke later ( new runnable ( ) { public void run ( ) { system . %SELF% ( exit code ) ; } } ) ; } <SENTENCE_END/>

(Copy Probability: 1.6%)

<SENTENCE_START> { renderer canvas . stop ( ) ; event queue . invoke later ( new runnable ( ) { public void run ( ) { system . %SELF% ( exit code ) ; } } ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { renderer canvas . stop ( ) ; event queue . invoke later ( new runnable ( ) { public void run ( ) { system . %SELF% ( exit code ) ; } } ) ; } <SENTENCE_END/>

(Copy Probability: 3.6%)

<SENTENCE_START> { renderer canvas . stop ( ) ; event queue . invoke later ( new runnable ( ) { public void run ( ) { system . %SELF% ( exit code ) ; } } ) ; } <SENTENCE_END/>


Original Name run

run

<SENTENCE_START> { system . exit ( exit code ) ; } <SENTENCE_END/>

(Copy Probability: 0.5%)

<SENTENCE_START> { system . exit ( exit code ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { system . exit ( exit code ) ; } <SENTENCE_END/>

(Copy Probability: 0.2%)

<SENTENCE_START> { system . exit ( exit code ) ; } <SENTENCE_END/>


Original Name initialize,events

initialize

<SENTENCE_START> { font list . add list selection listener ( new list selection listener ( ) { public void value changed ( list selection event evt ) { if ( evt . get value is adjusting ( ) ) return ; prefs . put ( "system.font" , ( string ) font list . get selected value ( ) ) ; update font ( ) ; } } ) ; class font update listener implements change listener , action listener { public void state changed ( change event evt ) { update font ( ) ; } public void action performed ( action event evt ) { update font ( ) ; } public void add spinners ( j spinner [ ] spinners ) { for ( int i = 0 ; i < spinners . length ; i ++ ) { final j spinner spinner = spinners [ i ] ; spinner . add change listener ( this ) ; ( ( j spinner . default editor ) spinner . get editor ( ) ) . get text field ( ) . add key listener ( new key adapter ( ) { string last text ; public void key released ( key event evt ) { j formatted text field text field = ( ( j spinner . default editor ) spinner . get editor ( ) ) . get text field ( ) ; string text = text field . get text ( ) ; if ( text . length ( ) == 0 ) return ; if ( text . equals ( last text ) ) return ; last text = text ; int caret position = text field . get caret position ( ) ; try { spinner . set value ( integer . value of ( text ) ) ; } catch ( number format exception ex ) { } text field . set caret position ( caret position ) ; } } ) ; } } } font update listener listener = new font update listener ( ) ; listener . add spinners ( new j spinner [ ] { pad top spinner , pad right spinner , pad bottom spinner , pad left spinner , pad advance x spinner , pad advance y spinner } ) ; font size spinner . add change listener ( listener ) ; gamma spinner . add change listener ( listener ) ; glyph page width combo . add action listener ( listener ) ; glyph page height combo . add action listener ( listener ) ; bold check box . add action listener ( listener ) ; italic check box . add action listener ( listener ) ; mono check box . add action listener ( listener ) ; reset cache button . add action listener ( listener ) ; java radio . add action listener ( listener ) ; native radio . add action listener ( listener ) ; free type radio . add action listener ( listener ) ; sample text radio . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { glyph cache panel . set visible ( false ) ; } } ) ; glyph cache radio . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { glyph cache panel . set visible ( true ) ; } } ) ; font file text . get document ( ) . add document listener ( new document listener ( ) { public void remove update ( document event evt ) { changed ( ) ; } public void insert update ( document event evt ) { changed ( ) ; } public void changed update ( document event evt ) { changed ( ) ; } private void changed ( ) { file file = new file ( font file text . get text ( ) ) ; if ( font list . is enabled ( ) && ( ! file . exists ( ) || ! file . is file ( ) ) ) return ; prefs . put ( "font.file" , font file text . get text ( ) ) ; update font ( ) ; } } ) ; final action listener al = new action listener ( ) { public void action performed ( action event evt ) { update font selector ( ) ; update font ( ) ; } } ; system font radio . add action listener ( al ) ; font file radio . add action listener ( al ) ; browse button . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { file dialog dialog = new file dialog ( hiero . this , "Choose TrueType font file" , file dialog . load ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.ttf" ) ; dialog . set directory ( prefs . get ( "dir.font" , "" ) ) ; dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.font" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; font file text . set text ( new file ( dialog . get directory ( ) , file name ) . get absolute path ( ) ) ; } } ) ; background color label . add mouse listener ( new mouse adapter ( ) { public void mouse clicked ( mouse event evt ) { java . awt . color color = j color chooser . show dialog ( null , "Choose a background color" , effect util . from string ( prefs . get ( "background" , "000000" ) ) ) ; if ( color == null ) return ; rendering background color = new color ( color . get red ( ) / 255f , color . get green ( ) / 255f , color . get blue ( ) / 255f , 1 ) ; background color label . set icon ( get color icon ( color ) ) ; prefs . put ( "background" , effect util . to string ( color ) ) ; } } ) ; effects list . add list selection listener ( new list selection listener ( ) { public void value changed ( list selection event evt ) { configurable effect selected effect = ( configurable effect ) effects list . get selected value ( ) ; boolean enabled = selected effect != null ; for ( iterator iter = effect panels . iterator ( ) ; iter . has next ( ) ; ) { configurable effect effect = ( ( effect panel ) iter . next ( ) ) . get effect ( ) ; if ( effect == selected effect ) { enabled = false ; break ; } } add effect button . set enabled ( enabled ) ; } } ) ; effects list . add mouse listener ( new mouse adapter ( ) { public void mouse clicked ( mouse event evt ) { if ( evt . get click count ( ) == 2 && add effect button . is enabled ( ) ) add effect button . do click ( ) ; } } ) ; add effect button . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { new effect panel ( ( configurable effect ) effects list . get selected value ( ) ) ; } } ) ; open menu item . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { file dialog dialog = new file dialog ( hiero . this , "Open Hiero settings file" , file dialog . load ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.hiero" ) ; dialog . set directory ( prefs . get ( "dir.open" , "" ) ) ; dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.open" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; last open filename = file name ; open ( new file ( dialog . get directory ( ) , file name ) ) ; } } ) ; save menu item . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { file dialog dialog = new file dialog ( hiero . this , "Save Hiero settings file" , file dialog . save ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.hiero" ) ; dialog . set directory ( prefs . get ( "dir.save" , "" ) ) ; if ( last save filename . length ( ) > 0 ) { dialog . set file ( last save filename ) ; } else if ( last open filename . length ( ) > 0 ) { dialog . set file ( last open filename ) ; } dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.save" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; if ( ! file name . ends with ( ".hiero" ) ) file name += ".hiero" ; last save filename = file name ; file file = new file ( dialog . get directory ( ) , file name ) ; try { save ( file ) ; } catch ( io exception ex ) { throw new runtime exception ( "Error saving Hiero settings file: " + file . get absolute path ( ) , ex ) ; } } } ) ; save bm font menu item . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { file dialog dialog = new file dialog ( hiero . this , "Save BMFont files" , file dialog . save ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.fnt" ) ; dialog . set directory ( prefs . get ( "dir.savebm" , "" ) ) ; if ( last save bm filename . length ( ) > 0 ) { dialog . set file ( last save bm filename ) ; } else if ( last open filename . length ( ) > 0 ) { dialog . set file ( last open filename . replace ( ".hiero" , ".fnt" ) ) ; } dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.savebm" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; last save bm filename = file name ; save bm ( new file ( dialog . get directory ( ) , file name ) ) ; } } ) ; exit menu item . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { dispose ( ) ; } } ) ; sample nehe button . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { sample text pane . set text ( nehe chars ) ; reset cache button . do click ( ) ; } } ) ; sample ascii button . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { string builder buffer = new string builder ( ) ; buffer . append ( nehe chars ) ; buffer . append ( '|n' ) ; int count = 0 ; for ( int i = 33 ; i <= 255 ; i ++ ) { if ( buffer . index of ( character . to string ( ( char ) i ) ) != - 1 ) continue ; buffer . append ( ( char ) i ) ; if ( ++ count % 30 == 0 ) buffer . append ( '|n' ) ; } sample text pane . set text ( buffer . to string ( ) ) ; reset cache button . do click ( ) ; } } ) ; sample extended button . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { sample text pane . set text ( extended chars ) ; reset cache button . do click ( ) ; } } ) ; } <SENTENCE_END/>

(Copy Probability: 4.3%)

<SENTENCE_START> { font list . add list selection listener ( new list selection listener ( ) { public void value changed ( list selection event evt ) { if ( evt . get value is adjusting ( ) ) return ; prefs . put ( "system.font" , ( string ) font list . get selected value ( ) ) ; update font ( ) ; } } ) ; class font update listener implements change listener , action listener { public void state changed ( change event evt ) { update font ( ) ; } public void action performed ( action event evt ) { update font ( ) ; } public void add spinners ( j spinner [ ] spinners ) { for ( int i = 0 ; i < spinners . length ; i ++ ) { final j spinner spinner = spinners [ i ] ; spinner . add change listener ( this ) ; ( ( j spinner . default editor ) spinner . get editor ( ) ) . get text field ( ) . add key listener ( new key adapter ( ) { string last text ; public void key released ( key event evt ) { j formatted text field text field = ( ( j spinner . default editor ) spinner . get editor ( ) ) . get text field ( ) ; string text = text field . get text ( ) ; if ( text . length ( ) == 0 ) return ; if ( text . equals ( last text ) ) return ; last text = text ; int caret position = text field . get caret position ( ) ; try { spinner . set value ( integer . value of ( text ) ) ; } catch ( number format exception ex ) { } text field . set caret position ( caret position ) ; } } ) ; } } } font update listener listener = new font update listener ( ) ; listener . add spinners ( new j spinner [ ] { pad top spinner , pad right spinner , pad bottom spinner , pad left spinner , pad advance x spinner , pad advance y spinner } ) ; font size spinner . add change listener ( listener ) ; gamma spinner . add change listener ( listener ) ; glyph page width combo . add action listener ( listener ) ; glyph page height combo . add action listener ( listener ) ; bold check box . add action listener ( listener ) ; italic check box . add action listener ( listener ) ; mono check box . add action listener ( listener ) ; reset cache button . add action listener ( listener ) ; java radio . add action listener ( listener ) ; native radio . add action listener ( listener ) ; free type radio . add action listener ( listener ) ; sample text radio . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { glyph cache panel . set visible ( false ) ; } } ) ; glyph cache radio . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { glyph cache panel . set visible ( true ) ; } } ) ; font file text . get document ( ) . add document listener ( new document listener ( ) { public void remove update ( document event evt ) { changed ( ) ; } public void insert update ( document event evt ) { changed ( ) ; } public void changed update ( document event evt ) { changed ( ) ; } private void changed ( ) { file file = new file ( font file text . get text ( ) ) ; if ( font list . is enabled ( ) && ( ! file . exists ( ) || ! file . is file ( ) ) ) return ; prefs . put ( "font.file" , font file text . get text ( ) ) ; update font ( ) ; } } ) ; final action listener al = new action listener ( ) { public void action performed ( action event evt ) { update font selector ( ) ; update font ( ) ; } } ; system font radio . add action listener ( al ) ; font file radio . add action listener ( al ) ; browse button . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { file dialog dialog = new file dialog ( hiero . this , "Choose TrueType font file" , file dialog . load ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.ttf" ) ; dialog . set directory ( prefs . get ( "dir.font" , "" ) ) ; dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.font" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; font file text . set text ( new file ( dialog . get directory ( ) , file name ) . get absolute path ( ) ) ; } } ) ; background color label . add mouse listener ( new mouse adapter ( ) { public void mouse clicked ( mouse event evt ) { java . awt . color color = j color chooser . show dialog ( null , "Choose a background color" , effect util . from string ( prefs . get ( "background" , "000000" ) ) ) ; if ( color == null ) return ; rendering background color = new color ( color . get red ( ) / 255f , color . get green ( ) / 255f , color . get blue ( ) / 255f , 1 ) ; background color label . set icon ( get color icon ( color ) ) ; prefs . put ( "background" , effect util . to string ( color ) ) ; } } ) ; effects list . add list selection listener ( new list selection listener ( ) { public void value changed ( list selection event evt ) { configurable effect selected effect = ( configurable effect ) effects list . get selected value ( ) ; boolean enabled = selected effect != null ; for ( iterator iter = effect panels . iterator ( ) ; iter . has next ( ) ; ) { configurable effect effect = ( ( effect panel ) iter . next ( ) ) . get effect ( ) ; if ( effect == selected effect ) { enabled = false ; break ; } } add effect button . set enabled ( enabled ) ; } } ) ; effects list . add mouse listener ( new mouse adapter ( ) { public void mouse clicked ( mouse event evt ) { if ( evt . get click count ( ) == 2 && add effect button . is enabled ( ) ) add effect button . do click ( ) ; } } ) ; add effect button . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { new effect panel ( ( configurable effect ) effects list . get selected value ( ) ) ; } } ) ; open menu item . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { file dialog dialog = new file dialog ( hiero . this , "Open Hiero settings file" , file dialog . load ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.hiero" ) ; dialog . set directory ( prefs . get ( "dir.open" , "" ) ) ; dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.open" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; last open filename = file name ; open ( new file ( dialog . get directory ( ) , file name ) ) ; } } ) ; save menu item . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { file dialog dialog = new file dialog ( hiero . this , "Save Hiero settings file" , file dialog . save ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.hiero" ) ; dialog . set directory ( prefs . get ( "dir.save" , "" ) ) ; if ( last save filename . length ( ) > 0 ) { dialog . set file ( last save filename ) ; } else if ( last open filename . length ( ) > 0 ) { dialog . set file ( last open filename ) ; } dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.save" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; if ( ! file name . ends with ( ".hiero" ) ) file name += ".hiero" ; last save filename = file name ; file file = new file ( dialog . get directory ( ) , file name ) ; try { save ( file ) ; } catch ( io exception ex ) { throw new runtime exception ( "Error saving Hiero settings file: " + file . get absolute path ( ) , ex ) ; } } } ) ; save bm font menu item . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { file dialog dialog = new file dialog ( hiero . this , "Save BMFont files" , file dialog . save ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.fnt" ) ; dialog . set directory ( prefs . get ( "dir.savebm" , "" ) ) ; if ( last save bm filename . length ( ) > 0 ) { dialog . set file ( last save bm filename ) ; } else if ( last open filename . length ( ) > 0 ) { dialog . set file ( last open filename . replace ( ".hiero" , ".fnt" ) ) ; } dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.savebm" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; last save bm filename = file name ; save bm ( new file ( dialog . get directory ( ) , file name ) ) ; } } ) ; exit menu item . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { dispose ( ) ; } } ) ; sample nehe button . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { sample text pane . set text ( nehe chars ) ; reset cache button . do click ( ) ; } } ) ; sample ascii button . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { string builder buffer = new string builder ( ) ; buffer . append ( nehe chars ) ; buffer . append ( '|n' ) ; int count = 0 ; for ( int i = 33 ; i <= 255 ; i ++ ) { if ( buffer . index of ( character . to string ( ( char ) i ) ) != - 1 ) continue ; buffer . append ( ( char ) i ) ; if ( ++ count % 30 == 0 ) buffer . append ( '|n' ) ; } sample text pane . set text ( buffer . to string ( ) ) ; reset cache button . do click ( ) ; } } ) ; sample extended button . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { sample text pane . set text ( extended chars ) ; reset cache button . do click ( ) ; } } ) ; } <SENTENCE_END/>

events

<SENTENCE_START> { font list . add list selection listener ( new list selection listener ( ) { public void value changed ( list selection event evt ) { if ( evt . get value is adjusting ( ) ) return ; prefs . put ( "system.font" , ( string ) font list . get selected value ( ) ) ; update font ( ) ; } } ) ; class font update listener implements change listener , action listener { public void state changed ( change event evt ) { update font ( ) ; } public void action performed ( action event evt ) { update font ( ) ; } public void add spinners ( j spinner [ ] spinners ) { for ( int i = 0 ; i < spinners . length ; i ++ ) { final j spinner spinner = spinners [ i ] ; spinner . add change listener ( this ) ; ( ( j spinner . default editor ) spinner . get editor ( ) ) . get text field ( ) . add key listener ( new key adapter ( ) { string last text ; public void key released ( key event evt ) { j formatted text field text field = ( ( j spinner . default editor ) spinner . get editor ( ) ) . get text field ( ) ; string text = text field . get text ( ) ; if ( text . length ( ) == 0 ) return ; if ( text . equals ( last text ) ) return ; last text = text ; int caret position = text field . get caret position ( ) ; try { spinner . set value ( integer . value of ( text ) ) ; } catch ( number format exception ex ) { } text field . set caret position ( caret position ) ; } } ) ; } } } font update listener listener = new font update listener ( ) ; listener . add spinners ( new j spinner [ ] { pad top spinner , pad right spinner , pad bottom spinner , pad left spinner , pad advance x spinner , pad advance y spinner } ) ; font size spinner . add change listener ( listener ) ; gamma spinner . add change listener ( listener ) ; glyph page width combo . add action listener ( listener ) ; glyph page height combo . add action listener ( listener ) ; bold check box . add action listener ( listener ) ; italic check box . add action listener ( listener ) ; mono check box . add action listener ( listener ) ; reset cache button . add action listener ( listener ) ; java radio . add action listener ( listener ) ; native radio . add action listener ( listener ) ; free type radio . add action listener ( listener ) ; sample text radio . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { glyph cache panel . set visible ( false ) ; } } ) ; glyph cache radio . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { glyph cache panel . set visible ( true ) ; } } ) ; font file text . get document ( ) . add document listener ( new document listener ( ) { public void remove update ( document event evt ) { changed ( ) ; } public void insert update ( document event evt ) { changed ( ) ; } public void changed update ( document event evt ) { changed ( ) ; } private void changed ( ) { file file = new file ( font file text . get text ( ) ) ; if ( font list . is enabled ( ) && ( ! file . exists ( ) || ! file . is file ( ) ) ) return ; prefs . put ( "font.file" , font file text . get text ( ) ) ; update font ( ) ; } } ) ; final action listener al = new action listener ( ) { public void action performed ( action event evt ) { update font selector ( ) ; update font ( ) ; } } ; system font radio . add action listener ( al ) ; font file radio . add action listener ( al ) ; browse button . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { file dialog dialog = new file dialog ( hiero . this , "Choose TrueType font file" , file dialog . load ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.ttf" ) ; dialog . set directory ( prefs . get ( "dir.font" , "" ) ) ; dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.font" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; font file text . set text ( new file ( dialog . get directory ( ) , file name ) . get absolute path ( ) ) ; } } ) ; background color label . add mouse listener ( new mouse adapter ( ) { public void mouse clicked ( mouse event evt ) { java . awt . color color = j color chooser . show dialog ( null , "Choose a background color" , effect util . from string ( prefs . get ( "background" , "000000" ) ) ) ; if ( color == null ) return ; rendering background color = new color ( color . get red ( ) / 255f , color . get green ( ) / 255f , color . get blue ( ) / 255f , 1 ) ; background color label . set icon ( get color icon ( color ) ) ; prefs . put ( "background" , effect util . to string ( color ) ) ; } } ) ; effects list . add list selection listener ( new list selection listener ( ) { public void value changed ( list selection event evt ) { configurable effect selected effect = ( configurable effect ) effects list . get selected value ( ) ; boolean enabled = selected effect != null ; for ( iterator iter = effect panels . iterator ( ) ; iter . has next ( ) ; ) { configurable effect effect = ( ( effect panel ) iter . next ( ) ) . get effect ( ) ; if ( effect == selected effect ) { enabled = false ; break ; } } add effect button . set enabled ( enabled ) ; } } ) ; effects list . add mouse listener ( new mouse adapter ( ) { public void mouse clicked ( mouse event evt ) { if ( evt . get click count ( ) == 2 && add effect button . is enabled ( ) ) add effect button . do click ( ) ; } } ) ; add effect button . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { new effect panel ( ( configurable effect ) effects list . get selected value ( ) ) ; } } ) ; open menu item . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { file dialog dialog = new file dialog ( hiero . this , "Open Hiero settings file" , file dialog . load ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.hiero" ) ; dialog . set directory ( prefs . get ( "dir.open" , "" ) ) ; dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.open" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; last open filename = file name ; open ( new file ( dialog . get directory ( ) , file name ) ) ; } } ) ; save menu item . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { file dialog dialog = new file dialog ( hiero . this , "Save Hiero settings file" , file dialog . save ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.hiero" ) ; dialog . set directory ( prefs . get ( "dir.save" , "" ) ) ; if ( last save filename . length ( ) > 0 ) { dialog . set file ( last save filename ) ; } else if ( last open filename . length ( ) > 0 ) { dialog . set file ( last open filename ) ; } dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.save" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; if ( ! file name . ends with ( ".hiero" ) ) file name += ".hiero" ; last save filename = file name ; file file = new file ( dialog . get directory ( ) , file name ) ; try { save ( file ) ; } catch ( io exception ex ) { throw new runtime exception ( "Error saving Hiero settings file: " + file . get absolute path ( ) , ex ) ; } } } ) ; save bm font menu item . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { file dialog dialog = new file dialog ( hiero . this , "Save BMFont files" , file dialog . save ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.fnt" ) ; dialog . set directory ( prefs . get ( "dir.savebm" , "" ) ) ; if ( last save bm filename . length ( ) > 0 ) { dialog . set file ( last save bm filename ) ; } else if ( last open filename . length ( ) > 0 ) { dialog . set file ( last open filename . replace ( ".hiero" , ".fnt" ) ) ; } dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.savebm" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; last save bm filename = file name ; save bm ( new file ( dialog . get directory ( ) , file name ) ) ; } } ) ; exit menu item . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { dispose ( ) ; } } ) ; sample nehe button . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { sample text pane . set text ( nehe chars ) ; reset cache button . do click ( ) ; } } ) ; sample ascii button . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { string builder buffer = new string builder ( ) ; buffer . append ( nehe chars ) ; buffer . append ( '|n' ) ; int count = 0 ; for ( int i = 33 ; i <= 255 ; i ++ ) { if ( buffer . index of ( character . to string ( ( char ) i ) ) != - 1 ) continue ; buffer . append ( ( char ) i ) ; if ( ++ count % 30 == 0 ) buffer . append ( '|n' ) ; } sample text pane . set text ( buffer . to string ( ) ) ; reset cache button . do click ( ) ; } } ) ; sample extended button . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { sample text pane . set text ( extended chars ) ; reset cache button . do click ( ) ; } } ) ; } <SENTENCE_END/>

(Copy Probability: 8.2%)

<SENTENCE_START> { font list . add list selection listener ( new list selection listener ( ) { public void value changed ( list selection event evt ) { if ( evt . get value is adjusting ( ) ) return ; prefs . put ( "system.font" , ( string ) font list . get selected value ( ) ) ; update font ( ) ; } } ) ; class font update listener implements change listener , action listener { public void state changed ( change event evt ) { update font ( ) ; } public void action performed ( action event evt ) { update font ( ) ; } public void add spinners ( j spinner [ ] spinners ) { for ( int i = 0 ; i < spinners . length ; i ++ ) { final j spinner spinner = spinners [ i ] ; spinner . add change listener ( this ) ; ( ( j spinner . default editor ) spinner . get editor ( ) ) . get text field ( ) . add key listener ( new key adapter ( ) { string last text ; public void key released ( key event evt ) { j formatted text field text field = ( ( j spinner . default editor ) spinner . get editor ( ) ) . get text field ( ) ; string text = text field . get text ( ) ; if ( text . length ( ) == 0 ) return ; if ( text . equals ( last text ) ) return ; last text = text ; int caret position = text field . get caret position ( ) ; try { spinner . set value ( integer . value of ( text ) ) ; } catch ( number format exception ex ) { } text field . set caret position ( caret position ) ; } } ) ; } } } font update listener listener = new font update listener ( ) ; listener . add spinners ( new j spinner [ ] { pad top spinner , pad right spinner , pad bottom spinner , pad left spinner , pad advance x spinner , pad advance y spinner } ) ; font size spinner . add change listener ( listener ) ; gamma spinner . add change listener ( listener ) ; glyph page width combo . add action listener ( listener ) ; glyph page height combo . add action listener ( listener ) ; bold check box . add action listener ( listener ) ; italic check box . add action listener ( listener ) ; mono check box . add action listener ( listener ) ; reset cache button . add action listener ( listener ) ; java radio . add action listener ( listener ) ; native radio . add action listener ( listener ) ; free type radio . add action listener ( listener ) ; sample text radio . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { glyph cache panel . set visible ( false ) ; } } ) ; glyph cache radio . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { glyph cache panel . set visible ( true ) ; } } ) ; font file text . get document ( ) . add document listener ( new document listener ( ) { public void remove update ( document event evt ) { changed ( ) ; } public void insert update ( document event evt ) { changed ( ) ; } public void changed update ( document event evt ) { changed ( ) ; } private void changed ( ) { file file = new file ( font file text . get text ( ) ) ; if ( font list . is enabled ( ) && ( ! file . exists ( ) || ! file . is file ( ) ) ) return ; prefs . put ( "font.file" , font file text . get text ( ) ) ; update font ( ) ; } } ) ; final action listener al = new action listener ( ) { public void action performed ( action event evt ) { update font selector ( ) ; update font ( ) ; } } ; system font radio . add action listener ( al ) ; font file radio . add action listener ( al ) ; browse button . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { file dialog dialog = new file dialog ( hiero . this , "Choose TrueType font file" , file dialog . load ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.ttf" ) ; dialog . set directory ( prefs . get ( "dir.font" , "" ) ) ; dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.font" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; font file text . set text ( new file ( dialog . get directory ( ) , file name ) . get absolute path ( ) ) ; } } ) ; background color label . add mouse listener ( new mouse adapter ( ) { public void mouse clicked ( mouse event evt ) { java . awt . color color = j color chooser . show dialog ( null , "Choose a background color" , effect util . from string ( prefs . get ( "background" , "000000" ) ) ) ; if ( color == null ) return ; rendering background color = new color ( color . get red ( ) / 255f , color . get green ( ) / 255f , color . get blue ( ) / 255f , 1 ) ; background color label . set icon ( get color icon ( color ) ) ; prefs . put ( "background" , effect util . to string ( color ) ) ; } } ) ; effects list . add list selection listener ( new list selection listener ( ) { public void value changed ( list selection event evt ) { configurable effect selected effect = ( configurable effect ) effects list . get selected value ( ) ; boolean enabled = selected effect != null ; for ( iterator iter = effect panels . iterator ( ) ; iter . has next ( ) ; ) { configurable effect effect = ( ( effect panel ) iter . next ( ) ) . get effect ( ) ; if ( effect == selected effect ) { enabled = false ; break ; } } add effect button . set enabled ( enabled ) ; } } ) ; effects list . add mouse listener ( new mouse adapter ( ) { public void mouse clicked ( mouse event evt ) { if ( evt . get click count ( ) == 2 && add effect button . is enabled ( ) ) add effect button . do click ( ) ; } } ) ; add effect button . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { new effect panel ( ( configurable effect ) effects list . get selected value ( ) ) ; } } ) ; open menu item . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { file dialog dialog = new file dialog ( hiero . this , "Open Hiero settings file" , file dialog . load ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.hiero" ) ; dialog . set directory ( prefs . get ( "dir.open" , "" ) ) ; dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.open" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; last open filename = file name ; open ( new file ( dialog . get directory ( ) , file name ) ) ; } } ) ; save menu item . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { file dialog dialog = new file dialog ( hiero . this , "Save Hiero settings file" , file dialog . save ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.hiero" ) ; dialog . set directory ( prefs . get ( "dir.save" , "" ) ) ; if ( last save filename . length ( ) > 0 ) { dialog . set file ( last save filename ) ; } else if ( last open filename . length ( ) > 0 ) { dialog . set file ( last open filename ) ; } dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.save" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; if ( ! file name . ends with ( ".hiero" ) ) file name += ".hiero" ; last save filename = file name ; file file = new file ( dialog . get directory ( ) , file name ) ; try { save ( file ) ; } catch ( io exception ex ) { throw new runtime exception ( "Error saving Hiero settings file: " + file . get absolute path ( ) , ex ) ; } } } ) ; save bm font menu item . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { file dialog dialog = new file dialog ( hiero . this , "Save BMFont files" , file dialog . save ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.fnt" ) ; dialog . set directory ( prefs . get ( "dir.savebm" , "" ) ) ; if ( last save bm filename . length ( ) > 0 ) { dialog . set file ( last save bm filename ) ; } else if ( last open filename . length ( ) > 0 ) { dialog . set file ( last open filename . replace ( ".hiero" , ".fnt" ) ) ; } dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.savebm" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; last save bm filename = file name ; save bm ( new file ( dialog . get directory ( ) , file name ) ) ; } } ) ; exit menu item . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { dispose ( ) ; } } ) ; sample nehe button . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { sample text pane . set text ( nehe chars ) ; reset cache button . do click ( ) ; } } ) ; sample ascii button . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { string builder buffer = new string builder ( ) ; buffer . append ( nehe chars ) ; buffer . append ( '|n' ) ; int count = 0 ; for ( int i = 33 ; i <= 255 ; i ++ ) { if ( buffer . index of ( character . to string ( ( char ) i ) ) != - 1 ) continue ; buffer . append ( ( char ) i ) ; if ( ++ count % 30 == 0 ) buffer . append ( '|n' ) ; } sample text pane . set text ( buffer . to string ( ) ) ; reset cache button . do click ( ) ; } } ) ; sample extended button . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { sample text pane . set text ( extended chars ) ; reset cache button . do click ( ) ; } } ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { font list . add list selection listener ( new list selection listener ( ) { public void value changed ( list selection event evt ) { if ( evt . get value is adjusting ( ) ) return ; prefs . put ( "system.font" , ( string ) font list . get selected value ( ) ) ; update font ( ) ; } } ) ; class font update listener implements change listener , action listener { public void state changed ( change event evt ) { update font ( ) ; } public void action performed ( action event evt ) { update font ( ) ; } public void add spinners ( j spinner [ ] spinners ) { for ( int i = 0 ; i < spinners . length ; i ++ ) { final j spinner spinner = spinners [ i ] ; spinner . add change listener ( this ) ; ( ( j spinner . default editor ) spinner . get editor ( ) ) . get text field ( ) . add key listener ( new key adapter ( ) { string last text ; public void key released ( key event evt ) { j formatted text field text field = ( ( j spinner . default editor ) spinner . get editor ( ) ) . get text field ( ) ; string text = text field . get text ( ) ; if ( text . length ( ) == 0 ) return ; if ( text . equals ( last text ) ) return ; last text = text ; int caret position = text field . get caret position ( ) ; try { spinner . set value ( integer . value of ( text ) ) ; } catch ( number format exception ex ) { } text field . set caret position ( caret position ) ; } } ) ; } } } font update listener listener = new font update listener ( ) ; listener . add spinners ( new j spinner [ ] { pad top spinner , pad right spinner , pad bottom spinner , pad left spinner , pad advance x spinner , pad advance y spinner } ) ; font size spinner . add change listener ( listener ) ; gamma spinner . add change listener ( listener ) ; glyph page width combo . add action listener ( listener ) ; glyph page height combo . add action listener ( listener ) ; bold check box . add action listener ( listener ) ; italic check box . add action listener ( listener ) ; mono check box . add action listener ( listener ) ; reset cache button . add action listener ( listener ) ; java radio . add action listener ( listener ) ; native radio . add action listener ( listener ) ; free type radio . add action listener ( listener ) ; sample text radio . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { glyph cache panel . set visible ( false ) ; } } ) ; glyph cache radio . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { glyph cache panel . set visible ( true ) ; } } ) ; font file text . get document ( ) . add document listener ( new document listener ( ) { public void remove update ( document event evt ) { changed ( ) ; } public void insert update ( document event evt ) { changed ( ) ; } public void changed update ( document event evt ) { changed ( ) ; } private void changed ( ) { file file = new file ( font file text . get text ( ) ) ; if ( font list . is enabled ( ) && ( ! file . exists ( ) || ! file . is file ( ) ) ) return ; prefs . put ( "font.file" , font file text . get text ( ) ) ; update font ( ) ; } } ) ; final action listener al = new action listener ( ) { public void action performed ( action event evt ) { update font selector ( ) ; update font ( ) ; } } ; system font radio . add action listener ( al ) ; font file radio . add action listener ( al ) ; browse button . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { file dialog dialog = new file dialog ( hiero . this , "Choose TrueType font file" , file dialog . load ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.ttf" ) ; dialog . set directory ( prefs . get ( "dir.font" , "" ) ) ; dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.font" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; font file text . set text ( new file ( dialog . get directory ( ) , file name ) . get absolute path ( ) ) ; } } ) ; background color label . add mouse listener ( new mouse adapter ( ) { public void mouse clicked ( mouse event evt ) { java . awt . color color = j color chooser . show dialog ( null , "Choose a background color" , effect util . from string ( prefs . get ( "background" , "000000" ) ) ) ; if ( color == null ) return ; rendering background color = new color ( color . get red ( ) / 255f , color . get green ( ) / 255f , color . get blue ( ) / 255f , 1 ) ; background color label . set icon ( get color icon ( color ) ) ; prefs . put ( "background" , effect util . to string ( color ) ) ; } } ) ; effects list . add list selection listener ( new list selection listener ( ) { public void value changed ( list selection event evt ) { configurable effect selected effect = ( configurable effect ) effects list . get selected value ( ) ; boolean enabled = selected effect != null ; for ( iterator iter = effect panels . iterator ( ) ; iter . has next ( ) ; ) { configurable effect effect = ( ( effect panel ) iter . next ( ) ) . get effect ( ) ; if ( effect == selected effect ) { enabled = false ; break ; } } add effect button . set enabled ( enabled ) ; } } ) ; effects list . add mouse listener ( new mouse adapter ( ) { public void mouse clicked ( mouse event evt ) { if ( evt . get click count ( ) == 2 && add effect button . is enabled ( ) ) add effect button . do click ( ) ; } } ) ; add effect button . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { new effect panel ( ( configurable effect ) effects list . get selected value ( ) ) ; } } ) ; open menu item . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { file dialog dialog = new file dialog ( hiero . this , "Open Hiero settings file" , file dialog . load ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.hiero" ) ; dialog . set directory ( prefs . get ( "dir.open" , "" ) ) ; dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.open" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; last open filename = file name ; open ( new file ( dialog . get directory ( ) , file name ) ) ; } } ) ; save menu item . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { file dialog dialog = new file dialog ( hiero . this , "Save Hiero settings file" , file dialog . save ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.hiero" ) ; dialog . set directory ( prefs . get ( "dir.save" , "" ) ) ; if ( last save filename . length ( ) > 0 ) { dialog . set file ( last save filename ) ; } else if ( last open filename . length ( ) > 0 ) { dialog . set file ( last open filename ) ; } dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.save" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; if ( ! file name . ends with ( ".hiero" ) ) file name += ".hiero" ; last save filename = file name ; file file = new file ( dialog . get directory ( ) , file name ) ; try { save ( file ) ; } catch ( io exception ex ) { throw new runtime exception ( "Error saving Hiero settings file: " + file . get absolute path ( ) , ex ) ; } } } ) ; save bm font menu item . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { file dialog dialog = new file dialog ( hiero . this , "Save BMFont files" , file dialog . save ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.fnt" ) ; dialog . set directory ( prefs . get ( "dir.savebm" , "" ) ) ; if ( last save bm filename . length ( ) > 0 ) { dialog . set file ( last save bm filename ) ; } else if ( last open filename . length ( ) > 0 ) { dialog . set file ( last open filename . replace ( ".hiero" , ".fnt" ) ) ; } dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.savebm" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; last save bm filename = file name ; save bm ( new file ( dialog . get directory ( ) , file name ) ) ; } } ) ; exit menu item . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { dispose ( ) ; } } ) ; sample nehe button . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { sample text pane . set text ( nehe chars ) ; reset cache button . do click ( ) ; } } ) ; sample ascii button . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { string builder buffer = new string builder ( ) ; buffer . append ( nehe chars ) ; buffer . append ( '|n' ) ; int count = 0 ; for ( int i = 33 ; i <= 255 ; i ++ ) { if ( buffer . index of ( character . to string ( ( char ) i ) ) != - 1 ) continue ; buffer . append ( ( char ) i ) ; if ( ++ count % 30 == 0 ) buffer . append ( '|n' ) ; } sample text pane . set text ( buffer . to string ( ) ) ; reset cache button . do click ( ) ; } } ) ; sample extended button . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { sample text pane . set text ( extended chars ) ; reset cache button . do click ( ) ; } } ) ; } <SENTENCE_END/>

(Copy Probability: 5.2%)

<SENTENCE_START> { font list . add list selection listener ( new list selection listener ( ) { public void value changed ( list selection event evt ) { if ( evt . get value is adjusting ( ) ) return ; prefs . put ( "system.font" , ( string ) font list . get selected value ( ) ) ; update font ( ) ; } } ) ; class font update listener implements change listener , action listener { public void state changed ( change event evt ) { update font ( ) ; } public void action performed ( action event evt ) { update font ( ) ; } public void add spinners ( j spinner [ ] spinners ) { for ( int i = 0 ; i < spinners . length ; i ++ ) { final j spinner spinner = spinners [ i ] ; spinner . add change listener ( this ) ; ( ( j spinner . default editor ) spinner . get editor ( ) ) . get text field ( ) . add key listener ( new key adapter ( ) { string last text ; public void key released ( key event evt ) { j formatted text field text field = ( ( j spinner . default editor ) spinner . get editor ( ) ) . get text field ( ) ; string text = text field . get text ( ) ; if ( text . length ( ) == 0 ) return ; if ( text . equals ( last text ) ) return ; last text = text ; int caret position = text field . get caret position ( ) ; try { spinner . set value ( integer . value of ( text ) ) ; } catch ( number format exception ex ) { } text field . set caret position ( caret position ) ; } } ) ; } } } font update listener listener = new font update listener ( ) ; listener . add spinners ( new j spinner [ ] { pad top spinner , pad right spinner , pad bottom spinner , pad left spinner , pad advance x spinner , pad advance y spinner } ) ; font size spinner . add change listener ( listener ) ; gamma spinner . add change listener ( listener ) ; glyph page width combo . add action listener ( listener ) ; glyph page height combo . add action listener ( listener ) ; bold check box . add action listener ( listener ) ; italic check box . add action listener ( listener ) ; mono check box . add action listener ( listener ) ; reset cache button . add action listener ( listener ) ; java radio . add action listener ( listener ) ; native radio . add action listener ( listener ) ; free type radio . add action listener ( listener ) ; sample text radio . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { glyph cache panel . set visible ( false ) ; } } ) ; glyph cache radio . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { glyph cache panel . set visible ( true ) ; } } ) ; font file text . get document ( ) . add document listener ( new document listener ( ) { public void remove update ( document event evt ) { changed ( ) ; } public void insert update ( document event evt ) { changed ( ) ; } public void changed update ( document event evt ) { changed ( ) ; } private void changed ( ) { file file = new file ( font file text . get text ( ) ) ; if ( font list . is enabled ( ) && ( ! file . exists ( ) || ! file . is file ( ) ) ) return ; prefs . put ( "font.file" , font file text . get text ( ) ) ; update font ( ) ; } } ) ; final action listener al = new action listener ( ) { public void action performed ( action event evt ) { update font selector ( ) ; update font ( ) ; } } ; system font radio . add action listener ( al ) ; font file radio . add action listener ( al ) ; browse button . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { file dialog dialog = new file dialog ( hiero . this , "Choose TrueType font file" , file dialog . load ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.ttf" ) ; dialog . set directory ( prefs . get ( "dir.font" , "" ) ) ; dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.font" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; font file text . set text ( new file ( dialog . get directory ( ) , file name ) . get absolute path ( ) ) ; } } ) ; background color label . add mouse listener ( new mouse adapter ( ) { public void mouse clicked ( mouse event evt ) { java . awt . color color = j color chooser . show dialog ( null , "Choose a background color" , effect util . from string ( prefs . get ( "background" , "000000" ) ) ) ; if ( color == null ) return ; rendering background color = new color ( color . get red ( ) / 255f , color . get green ( ) / 255f , color . get blue ( ) / 255f , 1 ) ; background color label . set icon ( get color icon ( color ) ) ; prefs . put ( "background" , effect util . to string ( color ) ) ; } } ) ; effects list . add list selection listener ( new list selection listener ( ) { public void value changed ( list selection event evt ) { configurable effect selected effect = ( configurable effect ) effects list . get selected value ( ) ; boolean enabled = selected effect != null ; for ( iterator iter = effect panels . iterator ( ) ; iter . has next ( ) ; ) { configurable effect effect = ( ( effect panel ) iter . next ( ) ) . get effect ( ) ; if ( effect == selected effect ) { enabled = false ; break ; } } add effect button . set enabled ( enabled ) ; } } ) ; effects list . add mouse listener ( new mouse adapter ( ) { public void mouse clicked ( mouse event evt ) { if ( evt . get click count ( ) == 2 && add effect button . is enabled ( ) ) add effect button . do click ( ) ; } } ) ; add effect button . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { new effect panel ( ( configurable effect ) effects list . get selected value ( ) ) ; } } ) ; open menu item . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { file dialog dialog = new file dialog ( hiero . this , "Open Hiero settings file" , file dialog . load ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.hiero" ) ; dialog . set directory ( prefs . get ( "dir.open" , "" ) ) ; dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.open" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; last open filename = file name ; open ( new file ( dialog . get directory ( ) , file name ) ) ; } } ) ; save menu item . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { file dialog dialog = new file dialog ( hiero . this , "Save Hiero settings file" , file dialog . save ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.hiero" ) ; dialog . set directory ( prefs . get ( "dir.save" , "" ) ) ; if ( last save filename . length ( ) > 0 ) { dialog . set file ( last save filename ) ; } else if ( last open filename . length ( ) > 0 ) { dialog . set file ( last open filename ) ; } dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.save" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; if ( ! file name . ends with ( ".hiero" ) ) file name += ".hiero" ; last save filename = file name ; file file = new file ( dialog . get directory ( ) , file name ) ; try { save ( file ) ; } catch ( io exception ex ) { throw new runtime exception ( "Error saving Hiero settings file: " + file . get absolute path ( ) , ex ) ; } } } ) ; save bm font menu item . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { file dialog dialog = new file dialog ( hiero . this , "Save BMFont files" , file dialog . save ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.fnt" ) ; dialog . set directory ( prefs . get ( "dir.savebm" , "" ) ) ; if ( last save bm filename . length ( ) > 0 ) { dialog . set file ( last save bm filename ) ; } else if ( last open filename . length ( ) > 0 ) { dialog . set file ( last open filename . replace ( ".hiero" , ".fnt" ) ) ; } dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.savebm" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; last save bm filename = file name ; save bm ( new file ( dialog . get directory ( ) , file name ) ) ; } } ) ; exit menu item . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { dispose ( ) ; } } ) ; sample nehe button . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { sample text pane . set text ( nehe chars ) ; reset cache button . do click ( ) ; } } ) ; sample ascii button . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { string builder buffer = new string builder ( ) ; buffer . append ( nehe chars ) ; buffer . append ( '|n' ) ; int count = 0 ; for ( int i = 33 ; i <= 255 ; i ++ ) { if ( buffer . index of ( character . to string ( ( char ) i ) ) != - 1 ) continue ; buffer . append ( ( char ) i ) ; if ( ++ count % 30 == 0 ) buffer . append ( '|n' ) ; } sample text pane . set text ( buffer . to string ( ) ) ; reset cache button . do click ( ) ; } } ) ; sample extended button . add action listener ( new action listener ( ) { public void action performed ( action event evt ) { sample text pane . set text ( extended chars ) ; reset cache button . do click ( ) ; } } ) ; } <SENTENCE_END/>


Original Name value,changed

value

<SENTENCE_START> { if ( evt . get value is adjusting ( ) ) return ; prefs . put ( "system.font" , ( string ) font list . get selected value ( ) ) ; update font ( ) ; } <SENTENCE_END/>

(Copy Probability: 1.7%)

<SENTENCE_START> { if ( evt . get value is adjusting ( ) ) return ; prefs . put ( "system.font" , ( string ) font list . get selected value ( ) ) ; update font ( ) ; } <SENTENCE_END/>

changed

<SENTENCE_START> { if ( evt . get value is adjusting ( ) ) return ; prefs . put ( "system.font" , ( string ) font list . get selected value ( ) ) ; update font ( ) ; } <SENTENCE_END/>

(Copy Probability: 23.0%)

<SENTENCE_START> { if ( evt . get value is adjusting ( ) ) return ; prefs . put ( "system.font" , ( string ) font list . get selected value ( ) ) ; update font ( ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { if ( evt . get value is adjusting ( ) ) return ; prefs . put ( "system.font" , ( string ) font list . get selected value ( ) ) ; update font ( ) ; } <SENTENCE_END/>

(Copy Probability: 1.9%)

<SENTENCE_START> { if ( evt . get value is adjusting ( ) ) return ; prefs . put ( "system.font" , ( string ) font list . get selected value ( ) ) ; update font ( ) ; } <SENTENCE_END/>


Original Name state,changed

state

<SENTENCE_START> { update font ( ) ; } <SENTENCE_END/>

(Copy Probability: 0.5%)

<SENTENCE_START> { update font ( ) ; } <SENTENCE_END/>

changed

<SENTENCE_START> { update font ( ) ; } <SENTENCE_END/>

(Copy Probability: 5.9%)

<SENTENCE_START> { update font ( ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { update font ( ) ; } <SENTENCE_END/>

(Copy Probability: 0.8%)

<SENTENCE_START> { update font ( ) ; } <SENTENCE_END/>


Original Name action,performed

action

<SENTENCE_START> { update font ( ) ; } <SENTENCE_END/>

(Copy Probability: 0.5%)

<SENTENCE_START> { update font ( ) ; } <SENTENCE_END/>

performed

<SENTENCE_START> { update font ( ) ; } <SENTENCE_END/>

(Copy Probability: 5.9%)

<SENTENCE_START> { update font ( ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { update font ( ) ; } <SENTENCE_END/>

(Copy Probability: 0.5%)

<SENTENCE_START> { update font ( ) ; } <SENTENCE_END/>


Original Name add,spinners

add

<SENTENCE_START> { for ( int i = 0 ; i < spinners . length ; i ++ ) { final j spinner spinner = spinners [ i ] ; spinner . add change listener ( this ) ; ( ( j spinner . default editor ) spinner . get editor ( ) ) . get text field ( ) . add key listener ( new key adapter ( ) { string last text ; public void key released ( key event evt ) { j formatted text field text field = ( ( j spinner . default editor ) spinner . get editor ( ) ) . get text field ( ) ; string text = text field . get text ( ) ; if ( text . length ( ) == 0 ) return ; if ( text . equals ( last text ) ) return ; last text = text ; int caret position = text field . get caret position ( ) ; try { spinner . set value ( integer . value of ( text ) ) ; } catch ( number format exception ex ) { } text field . set caret position ( caret position ) ; } } ) ; } } <SENTENCE_END/>

(Copy Probability: 3.4%)

<SENTENCE_START> { for ( int i = 0 ; i < spinners . length ; i ++ ) { final j spinner spinner = spinners [ i ] ; spinner . add change listener ( this ) ; ( ( j spinner . default editor ) spinner . get editor ( ) ) . get text field ( ) . add key listener ( new key adapter ( ) { string last text ; public void key released ( key event evt ) { j formatted text field text field = ( ( j spinner . default editor ) spinner . get editor ( ) ) . get text field ( ) ; string text = text field . get text ( ) ; if ( text . length ( ) == 0 ) return ; if ( text . equals ( last text ) ) return ; last text = text ; int caret position = text field . get caret position ( ) ; try { spinner . set value ( integer . value of ( text ) ) ; } catch ( number format exception ex ) { } text field . set caret position ( caret position ) ; } } ) ; } } <SENTENCE_END/>

spinners

<SENTENCE_START> { for ( int i = 0 ; i < spinners . length ; i ++ ) { final j spinner spinner = spinners [ i ] ; spinner . add change listener ( this ) ; ( ( j spinner . default editor ) spinner . get editor ( ) ) . get text field ( ) . add key listener ( new key adapter ( ) { string last text ; public void key released ( key event evt ) { j formatted text field text field = ( ( j spinner . default editor ) spinner . get editor ( ) ) . get text field ( ) ; string text = text field . get text ( ) ; if ( text . length ( ) == 0 ) return ; if ( text . equals ( last text ) ) return ; last text = text ; int caret position = text field . get caret position ( ) ; try { spinner . set value ( integer . value of ( text ) ) ; } catch ( number format exception ex ) { } text field . set caret position ( caret position ) ; } } ) ; } } <SENTENCE_END/>

(Copy Probability: 14.8%)

<SENTENCE_START> { for ( int i = 0 ; i < spinners . length ; i ++ ) { final j spinner spinner = spinners [ i ] ; spinner . add change listener ( this ) ; ( ( j spinner . default editor ) spinner . get editor ( ) ) . get text field ( ) . add key listener ( new key adapter ( ) { string last text ; public void key released ( key event evt ) { j formatted text field text field = ( ( j spinner . default editor ) spinner . get editor ( ) ) . get text field ( ) ; string text = text field . get text ( ) ; if ( text . length ( ) == 0 ) return ; if ( text . equals ( last text ) ) return ; last text = text ; int caret position = text field . get caret position ( ) ; try { spinner . set value ( integer . value of ( text ) ) ; } catch ( number format exception ex ) { } text field . set caret position ( caret position ) ; } } ) ; } } <SENTENCE_END/>

%END%

<SENTENCE_START> { for ( int i = 0 ; i < spinners . length ; i ++ ) { final j spinner spinner = spinners [ i ] ; spinner . add change listener ( this ) ; ( ( j spinner . default editor ) spinner . get editor ( ) ) . get text field ( ) . add key listener ( new key adapter ( ) { string last text ; public void key released ( key event evt ) { j formatted text field text field = ( ( j spinner . default editor ) spinner . get editor ( ) ) . get text field ( ) ; string text = text field . get text ( ) ; if ( text . length ( ) == 0 ) return ; if ( text . equals ( last text ) ) return ; last text = text ; int caret position = text field . get caret position ( ) ; try { spinner . set value ( integer . value of ( text ) ) ; } catch ( number format exception ex ) { } text field . set caret position ( caret position ) ; } } ) ; } } <SENTENCE_END/>

(Copy Probability: 4.5%)

<SENTENCE_START> { for ( int i = 0 ; i < spinners . length ; i ++ ) { final j spinner spinner = spinners [ i ] ; spinner . add change listener ( this ) ; ( ( j spinner . default editor ) spinner . get editor ( ) ) . get text field ( ) . add key listener ( new key adapter ( ) { string last text ; public void key released ( key event evt ) { j formatted text field text field = ( ( j spinner . default editor ) spinner . get editor ( ) ) . get text field ( ) ; string text = text field . get text ( ) ; if ( text . length ( ) == 0 ) return ; if ( text . equals ( last text ) ) return ; last text = text ; int caret position = text field . get caret position ( ) ; try { spinner . set value ( integer . value of ( text ) ) ; } catch ( number format exception ex ) { } text field . set caret position ( caret position ) ; } } ) ; } } <SENTENCE_END/>


Original Name key,released

key

<SENTENCE_START> { j formatted text field text field = ( ( j spinner . default editor ) spinner . get editor ( ) ) . get text field ( ) ; string text = text field . get text ( ) ; if ( text . length ( ) == 0 ) return ; if ( text . equals ( last text ) ) return ; last text = text ; int caret position = text field . get caret position ( ) ; try { spinner . set value ( integer . value of ( text ) ) ; } catch ( number format exception ex ) { } text field . set caret position ( caret position ) ; } <SENTENCE_END/>

(Copy Probability: 3.5%)

<SENTENCE_START> { j formatted text field text field = ( ( j spinner . default editor ) spinner . get editor ( ) ) . get text field ( ) ; string text = text field . get text ( ) ; if ( text . length ( ) == 0 ) return ; if ( text . equals ( last text ) ) return ; last text = text ; int caret position = text field . get caret position ( ) ; try { spinner . set value ( integer . value of ( text ) ) ; } catch ( number format exception ex ) { } text field . set caret position ( caret position ) ; } <SENTENCE_END/>

released

<SENTENCE_START> { j formatted text field text field = ( ( j spinner . default editor ) spinner . get editor ( ) ) . get text field ( ) ; string text = text field . get text ( ) ; if ( text . length ( ) == 0 ) return ; if ( text . equals ( last text ) ) return ; last text = text ; int caret position = text field . get caret position ( ) ; try { spinner . set value ( integer . value of ( text ) ) ; } catch ( number format exception ex ) { } text field . set caret position ( caret position ) ; } <SENTENCE_END/>

(Copy Probability: 22.9%)

<SENTENCE_START> { j formatted text field text field = ( ( j spinner . default editor ) spinner . get editor ( ) ) . get text field ( ) ; string text = text field . get text ( ) ; if ( text . length ( ) == 0 ) return ; if ( text . equals ( last text ) ) return ; last text = text ; int caret position = text field . get caret position ( ) ; try { spinner . set value ( integer . value of ( text ) ) ; } catch ( number format exception ex ) { } text field . set caret position ( caret position ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { j formatted text field text field = ( ( j spinner . default editor ) spinner . get editor ( ) ) . get text field ( ) ; string text = text field . get text ( ) ; if ( text . length ( ) == 0 ) return ; if ( text . equals ( last text ) ) return ; last text = text ; int caret position = text field . get caret position ( ) ; try { spinner . set value ( integer . value of ( text ) ) ; } catch ( number format exception ex ) { } text field . set caret position ( caret position ) ; } <SENTENCE_END/>

(Copy Probability: 3.4%)

<SENTENCE_START> { j formatted text field text field = ( ( j spinner . default editor ) spinner . get editor ( ) ) . get text field ( ) ; string text = text field . get text ( ) ; if ( text . length ( ) == 0 ) return ; if ( text . equals ( last text ) ) return ; last text = text ; int caret position = text field . get caret position ( ) ; try { spinner . set value ( integer . value of ( text ) ) ; } catch ( number format exception ex ) { } text field . set caret position ( caret position ) ; } <SENTENCE_END/>


Original Name action,performed

action

<SENTENCE_START> { glyph cache panel . set visible ( false ) ; } <SENTENCE_END/>

(Copy Probability: 0.6%)

<SENTENCE_START> { glyph cache panel . set visible ( false ) ; } <SENTENCE_END/>

performed

<SENTENCE_START> { glyph cache panel . set visible ( false ) ; } <SENTENCE_END/>

(Copy Probability: 25.5%)

<SENTENCE_START> { glyph cache panel . set visible ( false ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { glyph cache panel . set visible ( false ) ; } <SENTENCE_END/>

(Copy Probability: 7.4%)

<SENTENCE_START> { glyph cache panel . set visible ( false ) ; } <SENTENCE_END/>


Original Name action,performed

action

<SENTENCE_START> { glyph cache panel . set visible ( true ) ; } <SENTENCE_END/>

(Copy Probability: 0.6%)

<SENTENCE_START> { glyph cache panel . set visible ( true ) ; } <SENTENCE_END/>

performed

<SENTENCE_START> { glyph cache panel . set visible ( true ) ; } <SENTENCE_END/>

(Copy Probability: 28.9%)

<SENTENCE_START> { glyph cache panel . set visible ( true ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { glyph cache panel . set visible ( true ) ; } <SENTENCE_END/>

(Copy Probability: 8.0%)

<SENTENCE_START> { glyph cache panel . set visible ( true ) ; } <SENTENCE_END/>


Original Name remove,update

remove

<SENTENCE_START> { changed ( ) ; } <SENTENCE_END/>

(Copy Probability: 0.3%)

<SENTENCE_START> { changed ( ) ; } <SENTENCE_END/>

update

<SENTENCE_START> { changed ( ) ; } <SENTENCE_END/>

(Copy Probability: 0.1%)

<SENTENCE_START> { changed ( ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { changed ( ) ; } <SENTENCE_END/>

(Copy Probability: 0.1%)

<SENTENCE_START> { changed ( ) ; } <SENTENCE_END/>


Original Name insert,update

insert

<SENTENCE_START> { changed ( ) ; } <SENTENCE_END/>

(Copy Probability: 0.3%)

<SENTENCE_START> { changed ( ) ; } <SENTENCE_END/>

update

<SENTENCE_START> { changed ( ) ; } <SENTENCE_END/>

(Copy Probability: 0.1%)

<SENTENCE_START> { changed ( ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { changed ( ) ; } <SENTENCE_END/>

(Copy Probability: 0.1%)

<SENTENCE_START> { changed ( ) ; } <SENTENCE_END/>


Original Name changed,update

changed

<SENTENCE_START> { changed ( ) ; } <SENTENCE_END/>

(Copy Probability: 0.3%)

<SENTENCE_START> { changed ( ) ; } <SENTENCE_END/>

update

<SENTENCE_START> { changed ( ) ; } <SENTENCE_END/>

(Copy Probability: 0.1%)

<SENTENCE_START> { changed ( ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { changed ( ) ; } <SENTENCE_END/>

(Copy Probability: 0.1%)

<SENTENCE_START> { changed ( ) ; } <SENTENCE_END/>


Original Name changed

changed

<SENTENCE_START> { file file = new file ( font file text . get text ( ) ) ; if ( font list . is enabled ( ) && ( ! file . exists ( ) || ! file . is file ( ) ) ) return ; prefs . put ( "font.file" , font file text . get text ( ) ) ; update font ( ) ; } <SENTENCE_END/>

(Copy Probability: 2.3%)

<SENTENCE_START> { file file = new file ( font file text . get text ( ) ) ; if ( font list . is enabled ( ) && ( ! file . exists ( ) || ! file . is file ( ) ) ) return ; prefs . put ( "font.file" , font file text . get text ( ) ) ; update font ( ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { file file = new file ( font file text . get text ( ) ) ; if ( font list . is enabled ( ) && ( ! file . exists ( ) || ! file . is file ( ) ) ) return ; prefs . put ( "font.file" , font file text . get text ( ) ) ; update font ( ) ; } <SENTENCE_END/>

(Copy Probability: 8.5%)

<SENTENCE_START> { file file = new file ( font file text . get text ( ) ) ; if ( font list . is enabled ( ) && ( ! file . exists ( ) || ! file . is file ( ) ) ) return ; prefs . put ( "font.file" , font file text . get text ( ) ) ; update font ( ) ; } <SENTENCE_END/>


Original Name action,performed

action

<SENTENCE_START> { update font selector ( ) ; update font ( ) ; } <SENTENCE_END/>

(Copy Probability: 0.8%)

<SENTENCE_START> { update font selector ( ) ; update font ( ) ; } <SENTENCE_END/>

performed

<SENTENCE_START> { update font selector ( ) ; update font ( ) ; } <SENTENCE_END/>

(Copy Probability: 9.5%)

<SENTENCE_START> { update font selector ( ) ; update font ( ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { update font selector ( ) ; update font ( ) ; } <SENTENCE_END/>

(Copy Probability: 1.0%)

<SENTENCE_START> { update font selector ( ) ; update font ( ) ; } <SENTENCE_END/>


Original Name action,performed

action

<SENTENCE_START> { file dialog dialog = new file dialog ( hiero . this , "Choose TrueType font file" , file dialog . load ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.ttf" ) ; dialog . set directory ( prefs . get ( "dir.font" , "" ) ) ; dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.font" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; font file text . set text ( new file ( dialog . get directory ( ) , file name ) . get absolute path ( ) ) ; } <SENTENCE_END/>

(Copy Probability: 5.6%)

<SENTENCE_START> { file dialog dialog = new file dialog ( hiero . this , "Choose TrueType font file" , file dialog . load ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.ttf" ) ; dialog . set directory ( prefs . get ( "dir.font" , "" ) ) ; dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.font" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; font file text . set text ( new file ( dialog . get directory ( ) , file name ) . get absolute path ( ) ) ; } <SENTENCE_END/>

performed

<SENTENCE_START> { file dialog dialog = new file dialog ( hiero . this , "Choose TrueType font file" , file dialog . load ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.ttf" ) ; dialog . set directory ( prefs . get ( "dir.font" , "" ) ) ; dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.font" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; font file text . set text ( new file ( dialog . get directory ( ) , file name ) . get absolute path ( ) ) ; } <SENTENCE_END/>

(Copy Probability: 89.5%)

<SENTENCE_START> { file dialog dialog = new file dialog ( hiero . this , "Choose TrueType font file" , file dialog . load ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.ttf" ) ; dialog . set directory ( prefs . get ( "dir.font" , "" ) ) ; dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.font" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; font file text . set text ( new file ( dialog . get directory ( ) , file name ) . get absolute path ( ) ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { file dialog dialog = new file dialog ( hiero . this , "Choose TrueType font file" , file dialog . load ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.ttf" ) ; dialog . set directory ( prefs . get ( "dir.font" , "" ) ) ; dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.font" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; font file text . set text ( new file ( dialog . get directory ( ) , file name ) . get absolute path ( ) ) ; } <SENTENCE_END/>

(Copy Probability: 22.6%)

<SENTENCE_START> { file dialog dialog = new file dialog ( hiero . this , "Choose TrueType font file" , file dialog . load ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.ttf" ) ; dialog . set directory ( prefs . get ( "dir.font" , "" ) ) ; dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.font" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; font file text . set text ( new file ( dialog . get directory ( ) , file name ) . get absolute path ( ) ) ; } <SENTENCE_END/>


Original Name mouse,clicked

mouse

<SENTENCE_START> { java . awt . color color = j color chooser . show dialog ( null , "Choose a background color" , effect util . from string ( prefs . get ( "background" , "000000" ) ) ) ; if ( color == null ) return ; rendering background color = new color ( color . get red ( ) / 255f , color . get green ( ) / 255f , color . get blue ( ) / 255f , 1 ) ; background color label . set icon ( get color icon ( color ) ) ; prefs . put ( "background" , effect util . to string ( color ) ) ; } <SENTENCE_END/>

(Copy Probability: 3.2%)

<SENTENCE_START> { java . awt . color color = j color chooser . show dialog ( null , "Choose a background color" , effect util . from string ( prefs . get ( "background" , "000000" ) ) ) ; if ( color == null ) return ; rendering background color = new color ( color . get red ( ) / 255f , color . get green ( ) / 255f , color . get blue ( ) / 255f , 1 ) ; background color label . set icon ( get color icon ( color ) ) ; prefs . put ( "background" , effect util . to string ( color ) ) ; } <SENTENCE_END/>

clicked

<SENTENCE_START> { java . awt . color color = j color chooser . show dialog ( null , "Choose a background color" , effect util . from string ( prefs . get ( "background" , "000000" ) ) ) ; if ( color == null ) return ; rendering background color = new color ( color . get red ( ) / 255f , color . get green ( ) / 255f , color . get blue ( ) / 255f , 1 ) ; background color label . set icon ( get color icon ( color ) ) ; prefs . put ( "background" , effect util . to string ( color ) ) ; } <SENTENCE_END/>

(Copy Probability: 21.0%)

<SENTENCE_START> { java . awt . color color = j color chooser . show dialog ( null , "Choose a background color" , effect util . from string ( prefs . get ( "background" , "000000" ) ) ) ; if ( color == null ) return ; rendering background color = new color ( color . get red ( ) / 255f , color . get green ( ) / 255f , color . get blue ( ) / 255f , 1 ) ; background color label . set icon ( get color icon ( color ) ) ; prefs . put ( "background" , effect util . to string ( color ) ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { java . awt . color color = j color chooser . show dialog ( null , "Choose a background color" , effect util . from string ( prefs . get ( "background" , "000000" ) ) ) ; if ( color == null ) return ; rendering background color = new color ( color . get red ( ) / 255f , color . get green ( ) / 255f , color . get blue ( ) / 255f , 1 ) ; background color label . set icon ( get color icon ( color ) ) ; prefs . put ( "background" , effect util . to string ( color ) ) ; } <SENTENCE_END/>

(Copy Probability: 12.3%)

<SENTENCE_START> { java . awt . color color = j color chooser . show dialog ( null , "Choose a background color" , effect util . from string ( prefs . get ( "background" , "000000" ) ) ) ; if ( color == null ) return ; rendering background color = new color ( color . get red ( ) / 255f , color . get green ( ) / 255f , color . get blue ( ) / 255f , 1 ) ; background color label . set icon ( get color icon ( color ) ) ; prefs . put ( "background" , effect util . to string ( color ) ) ; } <SENTENCE_END/>


Original Name value,changed

value

<SENTENCE_START> { configurable effect selected effect = ( configurable effect ) effects list . get selected value ( ) ; boolean enabled = selected effect != null ; for ( iterator iter = effect panels . iterator ( ) ; iter . has next ( ) ; ) { configurable effect effect = ( ( effect panel ) iter . next ( ) ) . get effect ( ) ; if ( effect == selected effect ) { enabled = false ; break ; } } add effect button . set enabled ( enabled ) ; } <SENTENCE_END/>

(Copy Probability: 3.5%)

<SENTENCE_START> { configurable effect selected effect = ( configurable effect ) effects list . get selected value ( ) ; boolean enabled = selected effect != null ; for ( iterator iter = effect panels . iterator ( ) ; iter . has next ( ) ; ) { configurable effect effect = ( ( effect panel ) iter . next ( ) ) . get effect ( ) ; if ( effect == selected effect ) { enabled = false ; break ; } } add effect button . set enabled ( enabled ) ; } <SENTENCE_END/>

changed

<SENTENCE_START> { configurable effect selected effect = ( configurable effect ) effects list . get selected value ( ) ; boolean enabled = selected effect != null ; for ( iterator iter = effect panels . iterator ( ) ; iter . has next ( ) ; ) { configurable effect effect = ( ( effect panel ) iter . next ( ) ) . get effect ( ) ; if ( effect == selected effect ) { enabled = false ; break ; } } add effect button . set enabled ( enabled ) ; } <SENTENCE_END/>

(Copy Probability: 28.3%)

<SENTENCE_START> { configurable effect selected effect = ( configurable effect ) effects list . get selected value ( ) ; boolean enabled = selected effect != null ; for ( iterator iter = effect panels . iterator ( ) ; iter . has next ( ) ; ) { configurable effect effect = ( ( effect panel ) iter . next ( ) ) . get effect ( ) ; if ( effect == selected effect ) { enabled = false ; break ; } } add effect button . set enabled ( enabled ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { configurable effect selected effect = ( configurable effect ) effects list . get selected value ( ) ; boolean enabled = selected effect != null ; for ( iterator iter = effect panels . iterator ( ) ; iter . has next ( ) ; ) { configurable effect effect = ( ( effect panel ) iter . next ( ) ) . get effect ( ) ; if ( effect == selected effect ) { enabled = false ; break ; } } add effect button . set enabled ( enabled ) ; } <SENTENCE_END/>

(Copy Probability: 13.9%)

<SENTENCE_START> { configurable effect selected effect = ( configurable effect ) effects list . get selected value ( ) ; boolean enabled = selected effect != null ; for ( iterator iter = effect panels . iterator ( ) ; iter . has next ( ) ; ) { configurable effect effect = ( ( effect panel ) iter . next ( ) ) . get effect ( ) ; if ( effect == selected effect ) { enabled = false ; break ; } } add effect button . set enabled ( enabled ) ; } <SENTENCE_END/>


Original Name mouse,clicked

mouse

<SENTENCE_START> { if ( evt . get click count ( ) == 2 && add effect button . is enabled ( ) ) add effect button . do click ( ) ; } <SENTENCE_END/>

(Copy Probability: 2.3%)

<SENTENCE_START> { if ( evt . get click count ( ) == 2 && add effect button . is enabled ( ) ) add effect button . do click ( ) ; } <SENTENCE_END/>

clicked

<SENTENCE_START> { if ( evt . get click count ( ) == 2 && add effect button . is enabled ( ) ) add effect button . do click ( ) ; } <SENTENCE_END/>

(Copy Probability: 11.9%)

<SENTENCE_START> { if ( evt . get click count ( ) == 2 && add effect button . is enabled ( ) ) add effect button . do click ( ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { if ( evt . get click count ( ) == 2 && add effect button . is enabled ( ) ) add effect button . do click ( ) ; } <SENTENCE_END/>

(Copy Probability: 9.6%)

<SENTENCE_START> { if ( evt . get click count ( ) == 2 && add effect button . is enabled ( ) ) add effect button . do click ( ) ; } <SENTENCE_END/>


Original Name action,performed

action

<SENTENCE_START> { new effect panel ( ( configurable effect ) effects list . get selected value ( ) ) ; } <SENTENCE_END/>

(Copy Probability: 0.8%)

<SENTENCE_START> { new effect panel ( ( configurable effect ) effects list . get selected value ( ) ) ; } <SENTENCE_END/>

performed

<SENTENCE_START> { new effect panel ( ( configurable effect ) effects list . get selected value ( ) ) ; } <SENTENCE_END/>

(Copy Probability: 1.9%)

<SENTENCE_START> { new effect panel ( ( configurable effect ) effects list . get selected value ( ) ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { new effect panel ( ( configurable effect ) effects list . get selected value ( ) ) ; } <SENTENCE_END/>

(Copy Probability: 1.6%)

<SENTENCE_START> { new effect panel ( ( configurable effect ) effects list . get selected value ( ) ) ; } <SENTENCE_END/>


Original Name action,performed

action

<SENTENCE_START> { file dialog dialog = new file dialog ( hiero . this , "Open Hiero settings file" , file dialog . load ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.hiero" ) ; dialog . set directory ( prefs . get ( "dir.open" , "" ) ) ; dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.open" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; last open filename = file name ; open ( new file ( dialog . get directory ( ) , file name ) ) ; } <SENTENCE_END/>

(Copy Probability: 5.6%)

<SENTENCE_START> { file dialog dialog = new file dialog ( hiero . this , "Open Hiero settings file" , file dialog . load ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.hiero" ) ; dialog . set directory ( prefs . get ( "dir.open" , "" ) ) ; dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.open" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; last open filename = file name ; open ( new file ( dialog . get directory ( ) , file name ) ) ; } <SENTENCE_END/>

performed

<SENTENCE_START> { file dialog dialog = new file dialog ( hiero . this , "Open Hiero settings file" , file dialog . load ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.hiero" ) ; dialog . set directory ( prefs . get ( "dir.open" , "" ) ) ; dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.open" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; last open filename = file name ; open ( new file ( dialog . get directory ( ) , file name ) ) ; } <SENTENCE_END/>

(Copy Probability: 89.5%)

<SENTENCE_START> { file dialog dialog = new file dialog ( hiero . this , "Open Hiero settings file" , file dialog . load ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.hiero" ) ; dialog . set directory ( prefs . get ( "dir.open" , "" ) ) ; dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.open" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; last open filename = file name ; open ( new file ( dialog . get directory ( ) , file name ) ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { file dialog dialog = new file dialog ( hiero . this , "Open Hiero settings file" , file dialog . load ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.hiero" ) ; dialog . set directory ( prefs . get ( "dir.open" , "" ) ) ; dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.open" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; last open filename = file name ; open ( new file ( dialog . get directory ( ) , file name ) ) ; } <SENTENCE_END/>

(Copy Probability: 22.2%)

<SENTENCE_START> { file dialog dialog = new file dialog ( hiero . this , "Open Hiero settings file" , file dialog . load ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.hiero" ) ; dialog . set directory ( prefs . get ( "dir.open" , "" ) ) ; dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.open" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; last open filename = file name ; open ( new file ( dialog . get directory ( ) , file name ) ) ; } <SENTENCE_END/>


Original Name action,performed

action

<SENTENCE_START> { file dialog dialog = new file dialog ( hiero . this , "Save Hiero settings file" , file dialog . save ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.hiero" ) ; dialog . set directory ( prefs . get ( "dir.save" , "" ) ) ; if ( last save filename . length ( ) > 0 ) { dialog . set file ( last save filename ) ; } else if ( last open filename . length ( ) > 0 ) { dialog . set file ( last open filename ) ; } dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.save" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; if ( ! file name . ends with ( ".hiero" ) ) file name += ".hiero" ; last save filename = file name ; file file = new file ( dialog . get directory ( ) , file name ) ; try { save ( file ) ; } catch ( io exception ex ) { throw new runtime exception ( "Error saving Hiero settings file: " + file . get absolute path ( ) , ex ) ; } } <SENTENCE_END/>

(Copy Probability: 5.1%)

<SENTENCE_START> { file dialog dialog = new file dialog ( hiero . this , "Save Hiero settings file" , file dialog . save ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.hiero" ) ; dialog . set directory ( prefs . get ( "dir.save" , "" ) ) ; if ( last save filename . length ( ) > 0 ) { dialog . set file ( last save filename ) ; } else if ( last open filename . length ( ) > 0 ) { dialog . set file ( last open filename ) ; } dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.save" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; if ( ! file name . ends with ( ".hiero" ) ) file name += ".hiero" ; last save filename = file name ; file file = new file ( dialog . get directory ( ) , file name ) ; try { save ( file ) ; } catch ( io exception ex ) { throw new runtime exception ( "Error saving Hiero settings file: " + file . get absolute path ( ) , ex ) ; } } <SENTENCE_END/>

performed

<SENTENCE_START> { file dialog dialog = new file dialog ( hiero . this , "Save Hiero settings file" , file dialog . save ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.hiero" ) ; dialog . set directory ( prefs . get ( "dir.save" , "" ) ) ; if ( last save filename . length ( ) > 0 ) { dialog . set file ( last save filename ) ; } else if ( last open filename . length ( ) > 0 ) { dialog . set file ( last open filename ) ; } dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.save" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; if ( ! file name . ends with ( ".hiero" ) ) file name += ".hiero" ; last save filename = file name ; file file = new file ( dialog . get directory ( ) , file name ) ; try { save ( file ) ; } catch ( io exception ex ) { throw new runtime exception ( "Error saving Hiero settings file: " + file . get absolute path ( ) , ex ) ; } } <SENTENCE_END/>

(Copy Probability: 80.1%)

<SENTENCE_START> { file dialog dialog = new file dialog ( hiero . this , "Save Hiero settings file" , file dialog . save ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.hiero" ) ; dialog . set directory ( prefs . get ( "dir.save" , "" ) ) ; if ( last save filename . length ( ) > 0 ) { dialog . set file ( last save filename ) ; } else if ( last open filename . length ( ) > 0 ) { dialog . set file ( last open filename ) ; } dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.save" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; if ( ! file name . ends with ( ".hiero" ) ) file name += ".hiero" ; last save filename = file name ; file file = new file ( dialog . get directory ( ) , file name ) ; try { save ( file ) ; } catch ( io exception ex ) { throw new runtime exception ( "Error saving Hiero settings file: " + file . get absolute path ( ) , ex ) ; } } <SENTENCE_END/>

%END%

<SENTENCE_START> { file dialog dialog = new file dialog ( hiero . this , "Save Hiero settings file" , file dialog . save ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.hiero" ) ; dialog . set directory ( prefs . get ( "dir.save" , "" ) ) ; if ( last save filename . length ( ) > 0 ) { dialog . set file ( last save filename ) ; } else if ( last open filename . length ( ) > 0 ) { dialog . set file ( last open filename ) ; } dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.save" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; if ( ! file name . ends with ( ".hiero" ) ) file name += ".hiero" ; last save filename = file name ; file file = new file ( dialog . get directory ( ) , file name ) ; try { save ( file ) ; } catch ( io exception ex ) { throw new runtime exception ( "Error saving Hiero settings file: " + file . get absolute path ( ) , ex ) ; } } <SENTENCE_END/>

(Copy Probability: 15.7%)

<SENTENCE_START> { file dialog dialog = new file dialog ( hiero . this , "Save Hiero settings file" , file dialog . save ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.hiero" ) ; dialog . set directory ( prefs . get ( "dir.save" , "" ) ) ; if ( last save filename . length ( ) > 0 ) { dialog . set file ( last save filename ) ; } else if ( last open filename . length ( ) > 0 ) { dialog . set file ( last open filename ) ; } dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.save" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; if ( ! file name . ends with ( ".hiero" ) ) file name += ".hiero" ; last save filename = file name ; file file = new file ( dialog . get directory ( ) , file name ) ; try { save ( file ) ; } catch ( io exception ex ) { throw new runtime exception ( "Error saving Hiero settings file: " + file . get absolute path ( ) , ex ) ; } } <SENTENCE_END/>


Original Name action,performed

action

<SENTENCE_START> { file dialog dialog = new file dialog ( hiero . this , "Save BMFont files" , file dialog . save ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.fnt" ) ; dialog . set directory ( prefs . get ( "dir.savebm" , "" ) ) ; if ( last save bm filename . length ( ) > 0 ) { dialog . set file ( last save bm filename ) ; } else if ( last open filename . length ( ) > 0 ) { dialog . set file ( last open filename . replace ( ".hiero" , ".fnt" ) ) ; } dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.savebm" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; last save bm filename = file name ; save bm ( new file ( dialog . get directory ( ) , file name ) ) ; } <SENTENCE_END/>

(Copy Probability: 5.2%)

<SENTENCE_START> { file dialog dialog = new file dialog ( hiero . this , "Save BMFont files" , file dialog . save ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.fnt" ) ; dialog . set directory ( prefs . get ( "dir.savebm" , "" ) ) ; if ( last save bm filename . length ( ) > 0 ) { dialog . set file ( last save bm filename ) ; } else if ( last open filename . length ( ) > 0 ) { dialog . set file ( last open filename . replace ( ".hiero" , ".fnt" ) ) ; } dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.savebm" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; last save bm filename = file name ; save bm ( new file ( dialog . get directory ( ) , file name ) ) ; } <SENTENCE_END/>

performed

<SENTENCE_START> { file dialog dialog = new file dialog ( hiero . this , "Save BMFont files" , file dialog . save ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.fnt" ) ; dialog . set directory ( prefs . get ( "dir.savebm" , "" ) ) ; if ( last save bm filename . length ( ) > 0 ) { dialog . set file ( last save bm filename ) ; } else if ( last open filename . length ( ) > 0 ) { dialog . set file ( last open filename . replace ( ".hiero" , ".fnt" ) ) ; } dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.savebm" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; last save bm filename = file name ; save bm ( new file ( dialog . get directory ( ) , file name ) ) ; } <SENTENCE_END/>

(Copy Probability: 80.9%)

<SENTENCE_START> { file dialog dialog = new file dialog ( hiero . this , "Save BMFont files" , file dialog . save ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.fnt" ) ; dialog . set directory ( prefs . get ( "dir.savebm" , "" ) ) ; if ( last save bm filename . length ( ) > 0 ) { dialog . set file ( last save bm filename ) ; } else if ( last open filename . length ( ) > 0 ) { dialog . set file ( last open filename . replace ( ".hiero" , ".fnt" ) ) ; } dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.savebm" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; last save bm filename = file name ; save bm ( new file ( dialog . get directory ( ) , file name ) ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { file dialog dialog = new file dialog ( hiero . this , "Save BMFont files" , file dialog . save ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.fnt" ) ; dialog . set directory ( prefs . get ( "dir.savebm" , "" ) ) ; if ( last save bm filename . length ( ) > 0 ) { dialog . set file ( last save bm filename ) ; } else if ( last open filename . length ( ) > 0 ) { dialog . set file ( last open filename . replace ( ".hiero" , ".fnt" ) ) ; } dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.savebm" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; last save bm filename = file name ; save bm ( new file ( dialog . get directory ( ) , file name ) ) ; } <SENTENCE_END/>

(Copy Probability: 17.3%)

<SENTENCE_START> { file dialog dialog = new file dialog ( hiero . this , "Save BMFont files" , file dialog . save ) ; dialog . set location relative to ( null ) ; dialog . set file ( "*.fnt" ) ; dialog . set directory ( prefs . get ( "dir.savebm" , "" ) ) ; if ( last save bm filename . length ( ) > 0 ) { dialog . set file ( last save bm filename ) ; } else if ( last open filename . length ( ) > 0 ) { dialog . set file ( last open filename . replace ( ".hiero" , ".fnt" ) ) ; } dialog . set visible ( true ) ; if ( dialog . get directory ( ) != null ) { prefs . put ( "dir.savebm" , dialog . get directory ( ) ) ; } string file name = dialog . get file ( ) ; if ( file name == null ) return ; last save bm filename = file name ; save bm ( new file ( dialog . get directory ( ) , file name ) ) ; } <SENTENCE_END/>


Original Name action,performed

action

<SENTENCE_START> { dispose ( ) ; } <SENTENCE_END/>

(Copy Probability: 0.2%)

<SENTENCE_START> { dispose ( ) ; } <SENTENCE_END/>

performed

<SENTENCE_START> { dispose ( ) ; } <SENTENCE_END/>

(Copy Probability: 0.1%)

<SENTENCE_START> { dispose ( ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { dispose ( ) ; } <SENTENCE_END/>

(Copy Probability: 0.1%)

<SENTENCE_START> { dispose ( ) ; } <SENTENCE_END/>


Original Name action,performed

action

<SENTENCE_START> { sample text pane . set text ( nehe chars ) ; reset cache button . do click ( ) ; } <SENTENCE_END/>

(Copy Probability: 1.3%)

<SENTENCE_START> { sample text pane . set text ( nehe chars ) ; reset cache button . do click ( ) ; } <SENTENCE_END/>

performed

<SENTENCE_START> { sample text pane . set text ( nehe chars ) ; reset cache button . do click ( ) ; } <SENTENCE_END/>

(Copy Probability: 12.2%)

<SENTENCE_START> { sample text pane . set text ( nehe chars ) ; reset cache button . do click ( ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { sample text pane . set text ( nehe chars ) ; reset cache button . do click ( ) ; } <SENTENCE_END/>

(Copy Probability: 3.4%)

<SENTENCE_START> { sample text pane . set text ( nehe chars ) ; reset cache button . do click ( ) ; } <SENTENCE_END/>


Original Name action,performed

action

<SENTENCE_START> { string builder buffer = new string builder ( ) ; buffer . append ( nehe chars ) ; buffer . append ( '|n' ) ; int count = 0 ; for ( int i = 33 ; i <= 255 ; i ++ ) { if ( buffer . index of ( character . to string ( ( char ) i ) ) != - 1 ) continue ; buffer . append ( ( char ) i ) ; if ( ++ count % 30 == 0 ) buffer . append ( '|n' ) ; } sample text pane . set text ( buffer . to string ( ) ) ; reset cache button . do click ( ) ; } <SENTENCE_END/>

(Copy Probability: 2.9%)

<SENTENCE_START> { string builder buffer = new string builder ( ) ; buffer . append ( nehe chars ) ; buffer . append ( '|n' ) ; int count = 0 ; for ( int i = 33 ; i <= 255 ; i ++ ) { if ( buffer . index of ( character . to string ( ( char ) i ) ) != - 1 ) continue ; buffer . append ( ( char ) i ) ; if ( ++ count % 30 == 0 ) buffer . append ( '|n' ) ; } sample text pane . set text ( buffer . to string ( ) ) ; reset cache button . do click ( ) ; } <SENTENCE_END/>

performed

<SENTENCE_START> { string builder buffer = new string builder ( ) ; buffer . append ( nehe chars ) ; buffer . append ( '|n' ) ; int count = 0 ; for ( int i = 33 ; i <= 255 ; i ++ ) { if ( buffer . index of ( character . to string ( ( char ) i ) ) != - 1 ) continue ; buffer . append ( ( char ) i ) ; if ( ++ count % 30 == 0 ) buffer . append ( '|n' ) ; } sample text pane . set text ( buffer . to string ( ) ) ; reset cache button . do click ( ) ; } <SENTENCE_END/>

(Copy Probability: 15.1%)

<SENTENCE_START> { string builder buffer = new string builder ( ) ; buffer . append ( nehe chars ) ; buffer . append ( '|n' ) ; int count = 0 ; for ( int i = 33 ; i <= 255 ; i ++ ) { if ( buffer . index of ( character . to string ( ( char ) i ) ) != - 1 ) continue ; buffer . append ( ( char ) i ) ; if ( ++ count % 30 == 0 ) buffer . append ( '|n' ) ; } sample text pane . set text ( buffer . to string ( ) ) ; reset cache button . do click ( ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { string builder buffer = new string builder ( ) ; buffer . append ( nehe chars ) ; buffer . append ( '|n' ) ; int count = 0 ; for ( int i = 33 ; i <= 255 ; i ++ ) { if ( buffer . index of ( character . to string ( ( char ) i ) ) != - 1 ) continue ; buffer . append ( ( char ) i ) ; if ( ++ count % 30 == 0 ) buffer . append ( '|n' ) ; } sample text pane . set text ( buffer . to string ( ) ) ; reset cache button . do click ( ) ; } <SENTENCE_END/>

(Copy Probability: 4.2%)

<SENTENCE_START> { string builder buffer = new string builder ( ) ; buffer . append ( nehe chars ) ; buffer . append ( '|n' ) ; int count = 0 ; for ( int i = 33 ; i <= 255 ; i ++ ) { if ( buffer . index of ( character . to string ( ( char ) i ) ) != - 1 ) continue ; buffer . append ( ( char ) i ) ; if ( ++ count % 30 == 0 ) buffer . append ( '|n' ) ; } sample text pane . set text ( buffer . to string ( ) ) ; reset cache button . do click ( ) ; } <SENTENCE_END/>


Original Name action,performed

action

<SENTENCE_START> { sample text pane . set text ( extended chars ) ; reset cache button . do click ( ) ; } <SENTENCE_END/>

(Copy Probability: 1.3%)

<SENTENCE_START> { sample text pane . set text ( extended chars ) ; reset cache button . do click ( ) ; } <SENTENCE_END/>

performed

<SENTENCE_START> { sample text pane . set text ( extended chars ) ; reset cache button . do click ( ) ; } <SENTENCE_END/>

(Copy Probability: 12.2%)

<SENTENCE_START> { sample text pane . set text ( extended chars ) ; reset cache button . do click ( ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { sample text pane . set text ( extended chars ) ; reset cache button . do click ( ) ; } <SENTENCE_END/>

(Copy Probability: 3.4%)

<SENTENCE_START> { sample text pane . set text ( extended chars ) ; reset cache button . do click ( ) ; } <SENTENCE_END/>


Original Name initialize,components

initialize

<SENTENCE_START> { get content pane ( ) . set layout ( new grid bag layout ( ) ) ; j panel left side panel = new j panel ( ) ; left side panel . set layout ( new grid bag layout ( ) ) ; get content pane ( ) . add ( left side panel , new grid bag constraints ( 0 , 1 , 1 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; { j panel font panel = new j panel ( ) ; left side panel . add ( font panel , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 5 , 5 , 5 , 5 ) , 0 , 0 ) ) ; font panel . set layout ( new grid bag layout ( ) ) ; font panel . set border ( border factory . create titled border ( "Font" ) ) ; { font size spinner = new j spinner ( new spinner number model ( 32 , 0 , 256 , 1 ) ) ; font panel . add ( font size spinner , new grid bag constraints ( 1 , 3 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 10 ) , 0 , 0 ) ) ; ( ( j spinner . default editor ) font size spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { j scroll pane font scroll = new j scroll pane ( ) ; font panel . add ( font scroll , new grid bag constraints ( 1 , 1 , 3 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; { font list model = new default combo box model ( graphics environment . get local graphics environment ( ) . get available font family names ( ) ) ; font list = new j list ( ) ; font scroll . set viewport view ( font list ) ; font list . set model ( font list model ) ; font list . set visible row count ( 6 ) ; font list . set selected index ( 0 ) ; font scroll . set minimum size ( new dimension ( 220 , font list . get preferred scrollable viewport size ( ) . height ) ) ; } } { system font radio = new j radio button ( "System:" , true ) ; font panel . add ( system font radio , new grid bag constraints ( 0 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . northeast , grid bag constraints . none , new insets ( 0 , 5 , 0 , 5 ) , 0 , 0 ) ) ; system font radio . set margin ( new insets ( 0 , 0 , 0 , 0 ) ) ; } { font file radio = new j radio button ( "File:" ) ; font panel . add ( font file radio , new grid bag constraints ( 0 , 2 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; font file radio . set margin ( new insets ( 0 , 0 , 0 , 0 ) ) ; } { font file text = new j text field ( ) ; font panel . add ( font file text , new grid bag constraints ( 1 , 2 , 2 , 1 , 1.0 , 0.0 , grid bag constraints . center , grid bag constraints . horizontal , new insets ( 0 , 0 , 5 , 0 ) , 0 , 0 ) ) ; } { font panel . add ( new j label ( "Size:" ) , new grid bag constraints ( 0 , 3 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { unicode panel = new j panel ( new grid bag layout ( ) ) ; font panel . add ( unicode panel , new grid bag constraints ( 2 , 3 , 2 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . horizontal , new insets ( 0 , 0 , 0 , 5 ) , 0 , 0 ) ) ; { bold check box = new j check box ( "Bold" ) ; unicode panel . add ( bold check box , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { italic check box = new j check box ( "Italic" ) ; unicode panel . add ( italic check box , new grid bag constraints ( 1 , 0 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } } { bitmap panel = new j panel ( new grid bag layout ( ) ) ; font panel . add ( bitmap panel , new grid bag constraints ( 2 , 3 , 2 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 0 , 5 ) , 0 , 0 ) ) ; { bitmap panel . add ( new j label ( "Gamma:" ) , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { gamma spinner = new j spinner ( new spinner number model ( 1.8f , 0 , 30 , 0.01 ) ) ; ( ( j spinner . default editor ) gamma spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; bitmap panel . add ( gamma spinner , new grid bag constraints ( 1 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 10 ) , 0 , 0 ) ) ; } { mono check box = new j check box ( "Mono" ) ; bitmap panel . add ( mono check box , new grid bag constraints ( 2 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } } { browse button = new j button ( "..." ) ; font panel . add ( browse button , new grid bag constraints ( 3 , 2 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; browse button . set margin ( new insets ( 0 , 0 , 0 , 0 ) ) ; } { font panel . add ( new j label ( "Rendering:" ) , new grid bag constraints ( 0 , 4 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . northeast , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { j panel rendering panel = new j panel ( new grid bag layout ( ) ) ; font panel . add ( rendering panel , new grid bag constraints ( 1 , 4 , 3 , 1 , 0.0 , 0.0 , grid bag constraints . northwest , grid bag constraints . none , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; { free type radio = new j radio button ( "FreeType" ) ; rendering panel . add ( free type radio , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { java radio = new j radio button ( "Java" ) ; rendering panel . add ( java radio , new grid bag constraints ( 1 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { native radio = new j radio button ( "Native" ) ; rendering panel . add ( native radio , new grid bag constraints ( 2 , 0 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } } button group button group = new button group ( ) ; button group . add ( system font radio ) ; button group . add ( font file radio ) ; button group = new button group ( ) ; button group . add ( free type radio ) ; button group . add ( java radio ) ; button group . add ( native radio ) ; free type radio . set selected ( true ) ; } { j panel sample panel = new j panel ( ) ; left side panel . add ( sample panel , new grid bag constraints ( 1 , 0 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 5 , 0 , 5 , 5 ) , 0 , 0 ) ) ; sample panel . set layout ( new grid bag layout ( ) ) ; sample panel . set border ( border factory . create titled border ( "Sample Text" ) ) ; { j scroll pane text scroll = new j scroll pane ( ) ; sample panel . add ( text scroll , new grid bag constraints ( 0 , 0 , 4 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; { sample text pane = new j text pane ( ) ; text scroll . set viewport view ( sample text pane ) ; } } { sample nehe button = new j button ( ) ; sample nehe button . set text ( "NEHE" ) ; sample panel . add ( sample nehe button , new grid bag constraints ( 2 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { sample ascii button = new j button ( ) ; sample ascii button . set text ( "ASCII" ) ; sample panel . add ( sample ascii button , new grid bag constraints ( 3 , 1 , 1 , 1 , 0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { sample extended button = new j button ( ) ; sample extended button . set text ( "Extended" ) ; sample panel . add ( sample extended button , new grid bag constraints ( 1 , 1 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } } { j panel rendering panel = new j panel ( ) ; left side panel . add ( rendering panel , new grid bag constraints ( 0 , 1 , 2 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; rendering panel . set border ( border factory . create titled border ( "Rendering" ) ) ; rendering panel . set layout ( new grid bag layout ( ) ) ; { j panel wrapper panel = new j panel ( ) ; rendering panel . add ( wrapper panel , new grid bag constraints ( 0 , 1 , 1 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; wrapper panel . set layout ( new border layout ( ) ) ; wrapper panel . set background ( java . awt . color . white ) ; { game panel = new j panel ( ) ; wrapper panel . add ( game panel ) ; game panel . set layout ( new border layout ( ) ) ; game panel . set background ( java . awt . color . white ) ; } } { glyph cache panel = new j panel ( ) { private int max width ; public dimension get preferred size ( ) { dimension size = super . get preferred size ( ) ; max width = math . max ( max width , size . width ) ; size . width = max width ; return size ; } } ; glyph cache panel . set visible ( false ) ; rendering panel . add ( glyph cache panel , new grid bag constraints ( 1 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . north , grid bag constraints . horizontal , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; glyph cache panel . set layout ( new grid bag layout ( ) ) ; { glyph cache panel . add ( new j label ( "Glyphs:" ) , new grid bag constraints ( 0 , 4 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph cache panel . add ( new j label ( "Pages:" ) , new grid bag constraints ( 0 , 3 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph cache panel . add ( new j label ( "Page width:" ) , new grid bag constraints ( 0 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph cache panel . add ( new j label ( "Page height:" ) , new grid bag constraints ( 0 , 2 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph page width combo = new j combo box ( new default combo box model ( new integer [ ] { new integer ( 32 ) , new integer ( 64 ) , new integer ( 128 ) , new integer ( 256 ) , new integer ( 512 ) , new integer ( 1024 ) , new integer ( 2048 ) } ) ) ; glyph cache panel . add ( glyph page width combo , new grid bag constraints ( 1 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; glyph page width combo . set selected index ( 4 ) ; } { glyph page height combo = new j combo box ( new default combo box model ( new integer [ ] { new integer ( 32 ) , new integer ( 64 ) , new integer ( 128 ) , new integer ( 256 ) , new integer ( 512 ) , new integer ( 1024 ) , new integer ( 2048 ) } ) ) ; glyph cache panel . add ( glyph page height combo , new grid bag constraints ( 1 , 2 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; glyph page height combo . set selected index ( 4 ) ; } { reset cache button = new j button ( "Reset Cache" ) ; glyph cache panel . add ( reset cache button , new grid bag constraints ( 0 , 6 , 2 , 1 , 1.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph pages total label = new j label ( "1" ) ; glyph cache panel . add ( glyph pages total label , new grid bag constraints ( 1 , 3 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { glyphs total label = new j label ( "0" ) ; glyph cache panel . add ( glyphs total label , new grid bag constraints ( 1 , 4 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph page combo model = new default combo box model ( ) ; glyph page combo = new j combo box ( ) ; glyph cache panel . add ( glyph page combo , new grid bag constraints ( 1 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; glyph page combo . set model ( glyph page combo model ) ; } { glyph cache panel . add ( new j label ( "View:" ) , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } } { j panel radio buttons panel = new j panel ( ) ; rendering panel . add ( radio buttons panel , new grid bag constraints ( 0 , 0 , 2 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; radio buttons panel . set layout ( new grid bag layout ( ) ) ; { sample text radio = new j radio button ( "Sample text" ) ; radio buttons panel . add ( sample text radio , new grid bag constraints ( 2 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; sample text radio . set selected ( true ) ; } { glyph cache radio = new j radio button ( "Glyph cache" ) ; radio buttons panel . add ( glyph cache radio , new grid bag constraints ( 3 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { radio buttons panel . add ( new j label ( "Background:" ) , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { background color label = new j label ( ) ; radio buttons panel . add ( background color label , new grid bag constraints ( 1 , 0 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } button group button group = new button group ( ) ; button group . add ( glyph cache radio ) ; button group . add ( sample text radio ) ; } } j panel right side panel = new j panel ( ) ; right side panel . set layout ( new grid bag layout ( ) ) ; get content pane ( ) . add ( right side panel , new grid bag constraints ( 1 , 0 , 1 , 2 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; { j panel padding panel = new j panel ( ) ; padding panel . set layout ( new grid bag layout ( ) ) ; right side panel . add ( padding panel , new grid bag constraints ( 0 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; padding panel . set border ( border factory . create titled border ( "Padding" ) ) ; { pad top spinner = new j spinner ( new spinner number model ( 1 , 0 , 999 , 1 ) ) ; padding panel . add ( pad top spinner , new grid bag constraints ( 1 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; ( ( j spinner . default editor ) pad top spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { pad right spinner = new j spinner ( new spinner number model ( 1 , 0 , 999 , 1 ) ) ; padding panel . add ( pad right spinner , new grid bag constraints ( 2 , 2 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 0 , 5 ) , 0 , 0 ) ) ; ( ( j spinner . default editor ) pad right spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { pad left spinner = new j spinner ( new spinner number model ( 1 , 0 , 999 , 1 ) ) ; padding panel . add ( pad left spinner , new grid bag constraints ( 0 , 2 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 0 , 0 ) , 0 , 0 ) ) ; ( ( j spinner . default editor ) pad left spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { pad bottom spinner = new j spinner ( new spinner number model ( 1 , 0 , 999 , 1 ) ) ; padding panel . add ( pad bottom spinner , new grid bag constraints ( 1 , 3 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; ( ( j spinner . default editor ) pad bottom spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { j panel advance panel = new j panel ( ) ; flow layout advance panel layout = new flow layout ( ) ; advance panel . set layout ( advance panel layout ) ; padding panel . add ( advance panel , new grid bag constraints ( 0 , 4 , 3 , 1 , 1.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; { advance panel . add ( new j label ( "X:" ) ) ; } { pad advance x spinner = new j spinner ( new spinner number model ( - 2 , - 999 , 999 , 1 ) ) ; advance panel . add ( pad advance x spinner ) ; ( ( j spinner . default editor ) pad advance x spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { advance panel . add ( new j label ( "Y:" ) ) ; } { pad advance y spinner = new j spinner ( new spinner number model ( - 2 , - 999 , 999 , 1 ) ) ; advance panel . add ( pad advance y spinner ) ; ( ( j spinner . default editor ) pad advance y spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } } } { effects panel = new j panel ( ) ; effects panel . set layout ( new grid bag layout ( ) ) ; right side panel . add ( effects panel , new grid bag constraints ( 0 , 0 , 1 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 5 , 0 , 5 , 5 ) , 0 , 0 ) ) ; effects panel . set border ( border factory . create titled border ( "Effects" ) ) ; effects panel . set minimum size ( new dimension ( 210 , 1 ) ) ; { effects scroll = new j scroll pane ( ) ; effects panel . add ( effects scroll , new grid bag constraints ( 1 , 0 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . north , grid bag constraints . horizontal , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; { effects list model = new default combo box model ( ) ; effects list = new j list ( ) ; effects scroll . set viewport view ( effects list ) ; effects list . set model ( effects list model ) ; effects list . set visible row count ( 7 ) ; effects scroll . set minimum size ( effects list . get preferred scrollable viewport size ( ) ) ; } } { add effect button = new j button ( "Add" ) ; effects panel . add ( add effect button , new grid bag constraints ( 1 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 6 , 5 ) , 0 , 0 ) ) ; add effect button . set enabled ( false ) ; } { applied effects scroll = new j scroll pane ( ) ; effects panel . add ( applied effects scroll , new grid bag constraints ( 1 , 3 , 1 , 1 , 1.0 , 1.0 , grid bag constraints . north , grid bag constraints . both , new insets ( 0 , 0 , 5 , 0 ) , 0 , 0 ) ) ; applied effects scroll . set border ( new empty border ( 0 , 0 , 0 , 0 ) ) ; applied effects scroll . set horizontal scroll bar policy ( scroll pane constants . horizontal scrollbar never ) ; { j panel panel = new j panel ( ) ; panel . set layout ( new grid bag layout ( ) ) ; applied effects scroll . set viewport view ( panel ) ; { applied effects panel = new j panel ( ) ; applied effects panel . set layout ( new grid bag layout ( ) ) ; panel . add ( applied effects panel , new grid bag constraints ( 0 , 0 , 1 , 1 , 1.0 , 1.0 , grid bag constraints . north , grid bag constraints . horizontal , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; applied effects panel . set border ( border factory . create matte border ( 1 , 0 , 0 , 0 , java . awt . color . black ) ) ; } } } } } <SENTENCE_END/>

(Copy Probability: 3.4%)

<SENTENCE_START> { get content pane ( ) . set layout ( new grid bag layout ( ) ) ; j panel left side panel = new j panel ( ) ; left side panel . set layout ( new grid bag layout ( ) ) ; get content pane ( ) . add ( left side panel , new grid bag constraints ( 0 , 1 , 1 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; { j panel font panel = new j panel ( ) ; left side panel . add ( font panel , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 5 , 5 , 5 , 5 ) , 0 , 0 ) ) ; font panel . set layout ( new grid bag layout ( ) ) ; font panel . set border ( border factory . create titled border ( "Font" ) ) ; { font size spinner = new j spinner ( new spinner number model ( 32 , 0 , 256 , 1 ) ) ; font panel . add ( font size spinner , new grid bag constraints ( 1 , 3 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 10 ) , 0 , 0 ) ) ; ( ( j spinner . default editor ) font size spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { j scroll pane font scroll = new j scroll pane ( ) ; font panel . add ( font scroll , new grid bag constraints ( 1 , 1 , 3 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; { font list model = new default combo box model ( graphics environment . get local graphics environment ( ) . get available font family names ( ) ) ; font list = new j list ( ) ; font scroll . set viewport view ( font list ) ; font list . set model ( font list model ) ; font list . set visible row count ( 6 ) ; font list . set selected index ( 0 ) ; font scroll . set minimum size ( new dimension ( 220 , font list . get preferred scrollable viewport size ( ) . height ) ) ; } } { system font radio = new j radio button ( "System:" , true ) ; font panel . add ( system font radio , new grid bag constraints ( 0 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . northeast , grid bag constraints . none , new insets ( 0 , 5 , 0 , 5 ) , 0 , 0 ) ) ; system font radio . set margin ( new insets ( 0 , 0 , 0 , 0 ) ) ; } { font file radio = new j radio button ( "File:" ) ; font panel . add ( font file radio , new grid bag constraints ( 0 , 2 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; font file radio . set margin ( new insets ( 0 , 0 , 0 , 0 ) ) ; } { font file text = new j text field ( ) ; font panel . add ( font file text , new grid bag constraints ( 1 , 2 , 2 , 1 , 1.0 , 0.0 , grid bag constraints . center , grid bag constraints . horizontal , new insets ( 0 , 0 , 5 , 0 ) , 0 , 0 ) ) ; } { font panel . add ( new j label ( "Size:" ) , new grid bag constraints ( 0 , 3 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { unicode panel = new j panel ( new grid bag layout ( ) ) ; font panel . add ( unicode panel , new grid bag constraints ( 2 , 3 , 2 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . horizontal , new insets ( 0 , 0 , 0 , 5 ) , 0 , 0 ) ) ; { bold check box = new j check box ( "Bold" ) ; unicode panel . add ( bold check box , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { italic check box = new j check box ( "Italic" ) ; unicode panel . add ( italic check box , new grid bag constraints ( 1 , 0 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } } { bitmap panel = new j panel ( new grid bag layout ( ) ) ; font panel . add ( bitmap panel , new grid bag constraints ( 2 , 3 , 2 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 0 , 5 ) , 0 , 0 ) ) ; { bitmap panel . add ( new j label ( "Gamma:" ) , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { gamma spinner = new j spinner ( new spinner number model ( 1.8f , 0 , 30 , 0.01 ) ) ; ( ( j spinner . default editor ) gamma spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; bitmap panel . add ( gamma spinner , new grid bag constraints ( 1 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 10 ) , 0 , 0 ) ) ; } { mono check box = new j check box ( "Mono" ) ; bitmap panel . add ( mono check box , new grid bag constraints ( 2 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } } { browse button = new j button ( "..." ) ; font panel . add ( browse button , new grid bag constraints ( 3 , 2 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; browse button . set margin ( new insets ( 0 , 0 , 0 , 0 ) ) ; } { font panel . add ( new j label ( "Rendering:" ) , new grid bag constraints ( 0 , 4 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . northeast , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { j panel rendering panel = new j panel ( new grid bag layout ( ) ) ; font panel . add ( rendering panel , new grid bag constraints ( 1 , 4 , 3 , 1 , 0.0 , 0.0 , grid bag constraints . northwest , grid bag constraints . none , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; { free type radio = new j radio button ( "FreeType" ) ; rendering panel . add ( free type radio , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { java radio = new j radio button ( "Java" ) ; rendering panel . add ( java radio , new grid bag constraints ( 1 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { native radio = new j radio button ( "Native" ) ; rendering panel . add ( native radio , new grid bag constraints ( 2 , 0 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } } button group button group = new button group ( ) ; button group . add ( system font radio ) ; button group . add ( font file radio ) ; button group = new button group ( ) ; button group . add ( free type radio ) ; button group . add ( java radio ) ; button group . add ( native radio ) ; free type radio . set selected ( true ) ; } { j panel sample panel = new j panel ( ) ; left side panel . add ( sample panel , new grid bag constraints ( 1 , 0 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 5 , 0 , 5 , 5 ) , 0 , 0 ) ) ; sample panel . set layout ( new grid bag layout ( ) ) ; sample panel . set border ( border factory . create titled border ( "Sample Text" ) ) ; { j scroll pane text scroll = new j scroll pane ( ) ; sample panel . add ( text scroll , new grid bag constraints ( 0 , 0 , 4 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; { sample text pane = new j text pane ( ) ; text scroll . set viewport view ( sample text pane ) ; } } { sample nehe button = new j button ( ) ; sample nehe button . set text ( "NEHE" ) ; sample panel . add ( sample nehe button , new grid bag constraints ( 2 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { sample ascii button = new j button ( ) ; sample ascii button . set text ( "ASCII" ) ; sample panel . add ( sample ascii button , new grid bag constraints ( 3 , 1 , 1 , 1 , 0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { sample extended button = new j button ( ) ; sample extended button . set text ( "Extended" ) ; sample panel . add ( sample extended button , new grid bag constraints ( 1 , 1 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } } { j panel rendering panel = new j panel ( ) ; left side panel . add ( rendering panel , new grid bag constraints ( 0 , 1 , 2 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; rendering panel . set border ( border factory . create titled border ( "Rendering" ) ) ; rendering panel . set layout ( new grid bag layout ( ) ) ; { j panel wrapper panel = new j panel ( ) ; rendering panel . add ( wrapper panel , new grid bag constraints ( 0 , 1 , 1 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; wrapper panel . set layout ( new border layout ( ) ) ; wrapper panel . set background ( java . awt . color . white ) ; { game panel = new j panel ( ) ; wrapper panel . add ( game panel ) ; game panel . set layout ( new border layout ( ) ) ; game panel . set background ( java . awt . color . white ) ; } } { glyph cache panel = new j panel ( ) { private int max width ; public dimension get preferred size ( ) { dimension size = super . get preferred size ( ) ; max width = math . max ( max width , size . width ) ; size . width = max width ; return size ; } } ; glyph cache panel . set visible ( false ) ; rendering panel . add ( glyph cache panel , new grid bag constraints ( 1 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . north , grid bag constraints . horizontal , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; glyph cache panel . set layout ( new grid bag layout ( ) ) ; { glyph cache panel . add ( new j label ( "Glyphs:" ) , new grid bag constraints ( 0 , 4 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph cache panel . add ( new j label ( "Pages:" ) , new grid bag constraints ( 0 , 3 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph cache panel . add ( new j label ( "Page width:" ) , new grid bag constraints ( 0 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph cache panel . add ( new j label ( "Page height:" ) , new grid bag constraints ( 0 , 2 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph page width combo = new j combo box ( new default combo box model ( new integer [ ] { new integer ( 32 ) , new integer ( 64 ) , new integer ( 128 ) , new integer ( 256 ) , new integer ( 512 ) , new integer ( 1024 ) , new integer ( 2048 ) } ) ) ; glyph cache panel . add ( glyph page width combo , new grid bag constraints ( 1 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; glyph page width combo . set selected index ( 4 ) ; } { glyph page height combo = new j combo box ( new default combo box model ( new integer [ ] { new integer ( 32 ) , new integer ( 64 ) , new integer ( 128 ) , new integer ( 256 ) , new integer ( 512 ) , new integer ( 1024 ) , new integer ( 2048 ) } ) ) ; glyph cache panel . add ( glyph page height combo , new grid bag constraints ( 1 , 2 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; glyph page height combo . set selected index ( 4 ) ; } { reset cache button = new j button ( "Reset Cache" ) ; glyph cache panel . add ( reset cache button , new grid bag constraints ( 0 , 6 , 2 , 1 , 1.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph pages total label = new j label ( "1" ) ; glyph cache panel . add ( glyph pages total label , new grid bag constraints ( 1 , 3 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { glyphs total label = new j label ( "0" ) ; glyph cache panel . add ( glyphs total label , new grid bag constraints ( 1 , 4 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph page combo model = new default combo box model ( ) ; glyph page combo = new j combo box ( ) ; glyph cache panel . add ( glyph page combo , new grid bag constraints ( 1 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; glyph page combo . set model ( glyph page combo model ) ; } { glyph cache panel . add ( new j label ( "View:" ) , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } } { j panel radio buttons panel = new j panel ( ) ; rendering panel . add ( radio buttons panel , new grid bag constraints ( 0 , 0 , 2 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; radio buttons panel . set layout ( new grid bag layout ( ) ) ; { sample text radio = new j radio button ( "Sample text" ) ; radio buttons panel . add ( sample text radio , new grid bag constraints ( 2 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; sample text radio . set selected ( true ) ; } { glyph cache radio = new j radio button ( "Glyph cache" ) ; radio buttons panel . add ( glyph cache radio , new grid bag constraints ( 3 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { radio buttons panel . add ( new j label ( "Background:" ) , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { background color label = new j label ( ) ; radio buttons panel . add ( background color label , new grid bag constraints ( 1 , 0 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } button group button group = new button group ( ) ; button group . add ( glyph cache radio ) ; button group . add ( sample text radio ) ; } } j panel right side panel = new j panel ( ) ; right side panel . set layout ( new grid bag layout ( ) ) ; get content pane ( ) . add ( right side panel , new grid bag constraints ( 1 , 0 , 1 , 2 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; { j panel padding panel = new j panel ( ) ; padding panel . set layout ( new grid bag layout ( ) ) ; right side panel . add ( padding panel , new grid bag constraints ( 0 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; padding panel . set border ( border factory . create titled border ( "Padding" ) ) ; { pad top spinner = new j spinner ( new spinner number model ( 1 , 0 , 999 , 1 ) ) ; padding panel . add ( pad top spinner , new grid bag constraints ( 1 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; ( ( j spinner . default editor ) pad top spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { pad right spinner = new j spinner ( new spinner number model ( 1 , 0 , 999 , 1 ) ) ; padding panel . add ( pad right spinner , new grid bag constraints ( 2 , 2 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 0 , 5 ) , 0 , 0 ) ) ; ( ( j spinner . default editor ) pad right spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { pad left spinner = new j spinner ( new spinner number model ( 1 , 0 , 999 , 1 ) ) ; padding panel . add ( pad left spinner , new grid bag constraints ( 0 , 2 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 0 , 0 ) , 0 , 0 ) ) ; ( ( j spinner . default editor ) pad left spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { pad bottom spinner = new j spinner ( new spinner number model ( 1 , 0 , 999 , 1 ) ) ; padding panel . add ( pad bottom spinner , new grid bag constraints ( 1 , 3 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; ( ( j spinner . default editor ) pad bottom spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { j panel advance panel = new j panel ( ) ; flow layout advance panel layout = new flow layout ( ) ; advance panel . set layout ( advance panel layout ) ; padding panel . add ( advance panel , new grid bag constraints ( 0 , 4 , 3 , 1 , 1.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; { advance panel . add ( new j label ( "X:" ) ) ; } { pad advance x spinner = new j spinner ( new spinner number model ( - 2 , - 999 , 999 , 1 ) ) ; advance panel . add ( pad advance x spinner ) ; ( ( j spinner . default editor ) pad advance x spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { advance panel . add ( new j label ( "Y:" ) ) ; } { pad advance y spinner = new j spinner ( new spinner number model ( - 2 , - 999 , 999 , 1 ) ) ; advance panel . add ( pad advance y spinner ) ; ( ( j spinner . default editor ) pad advance y spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } } } { effects panel = new j panel ( ) ; effects panel . set layout ( new grid bag layout ( ) ) ; right side panel . add ( effects panel , new grid bag constraints ( 0 , 0 , 1 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 5 , 0 , 5 , 5 ) , 0 , 0 ) ) ; effects panel . set border ( border factory . create titled border ( "Effects" ) ) ; effects panel . set minimum size ( new dimension ( 210 , 1 ) ) ; { effects scroll = new j scroll pane ( ) ; effects panel . add ( effects scroll , new grid bag constraints ( 1 , 0 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . north , grid bag constraints . horizontal , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; { effects list model = new default combo box model ( ) ; effects list = new j list ( ) ; effects scroll . set viewport view ( effects list ) ; effects list . set model ( effects list model ) ; effects list . set visible row count ( 7 ) ; effects scroll . set minimum size ( effects list . get preferred scrollable viewport size ( ) ) ; } } { add effect button = new j button ( "Add" ) ; effects panel . add ( add effect button , new grid bag constraints ( 1 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 6 , 5 ) , 0 , 0 ) ) ; add effect button . set enabled ( false ) ; } { applied effects scroll = new j scroll pane ( ) ; effects panel . add ( applied effects scroll , new grid bag constraints ( 1 , 3 , 1 , 1 , 1.0 , 1.0 , grid bag constraints . north , grid bag constraints . both , new insets ( 0 , 0 , 5 , 0 ) , 0 , 0 ) ) ; applied effects scroll . set border ( new empty border ( 0 , 0 , 0 , 0 ) ) ; applied effects scroll . set horizontal scroll bar policy ( scroll pane constants . horizontal scrollbar never ) ; { j panel panel = new j panel ( ) ; panel . set layout ( new grid bag layout ( ) ) ; applied effects scroll . set viewport view ( panel ) ; { applied effects panel = new j panel ( ) ; applied effects panel . set layout ( new grid bag layout ( ) ) ; panel . add ( applied effects panel , new grid bag constraints ( 0 , 0 , 1 , 1 , 1.0 , 1.0 , grid bag constraints . north , grid bag constraints . horizontal , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; applied effects panel . set border ( border factory . create matte border ( 1 , 0 , 0 , 0 , java . awt . color . black ) ) ; } } } } } <SENTENCE_END/>

components

<SENTENCE_START> { get content pane ( ) . set layout ( new grid bag layout ( ) ) ; j panel left side panel = new j panel ( ) ; left side panel . set layout ( new grid bag layout ( ) ) ; get content pane ( ) . add ( left side panel , new grid bag constraints ( 0 , 1 , 1 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; { j panel font panel = new j panel ( ) ; left side panel . add ( font panel , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 5 , 5 , 5 , 5 ) , 0 , 0 ) ) ; font panel . set layout ( new grid bag layout ( ) ) ; font panel . set border ( border factory . create titled border ( "Font" ) ) ; { font size spinner = new j spinner ( new spinner number model ( 32 , 0 , 256 , 1 ) ) ; font panel . add ( font size spinner , new grid bag constraints ( 1 , 3 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 10 ) , 0 , 0 ) ) ; ( ( j spinner . default editor ) font size spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { j scroll pane font scroll = new j scroll pane ( ) ; font panel . add ( font scroll , new grid bag constraints ( 1 , 1 , 3 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; { font list model = new default combo box model ( graphics environment . get local graphics environment ( ) . get available font family names ( ) ) ; font list = new j list ( ) ; font scroll . set viewport view ( font list ) ; font list . set model ( font list model ) ; font list . set visible row count ( 6 ) ; font list . set selected index ( 0 ) ; font scroll . set minimum size ( new dimension ( 220 , font list . get preferred scrollable viewport size ( ) . height ) ) ; } } { system font radio = new j radio button ( "System:" , true ) ; font panel . add ( system font radio , new grid bag constraints ( 0 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . northeast , grid bag constraints . none , new insets ( 0 , 5 , 0 , 5 ) , 0 , 0 ) ) ; system font radio . set margin ( new insets ( 0 , 0 , 0 , 0 ) ) ; } { font file radio = new j radio button ( "File:" ) ; font panel . add ( font file radio , new grid bag constraints ( 0 , 2 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; font file radio . set margin ( new insets ( 0 , 0 , 0 , 0 ) ) ; } { font file text = new j text field ( ) ; font panel . add ( font file text , new grid bag constraints ( 1 , 2 , 2 , 1 , 1.0 , 0.0 , grid bag constraints . center , grid bag constraints . horizontal , new insets ( 0 , 0 , 5 , 0 ) , 0 , 0 ) ) ; } { font panel . add ( new j label ( "Size:" ) , new grid bag constraints ( 0 , 3 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { unicode panel = new j panel ( new grid bag layout ( ) ) ; font panel . add ( unicode panel , new grid bag constraints ( 2 , 3 , 2 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . horizontal , new insets ( 0 , 0 , 0 , 5 ) , 0 , 0 ) ) ; { bold check box = new j check box ( "Bold" ) ; unicode panel . add ( bold check box , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { italic check box = new j check box ( "Italic" ) ; unicode panel . add ( italic check box , new grid bag constraints ( 1 , 0 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } } { bitmap panel = new j panel ( new grid bag layout ( ) ) ; font panel . add ( bitmap panel , new grid bag constraints ( 2 , 3 , 2 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 0 , 5 ) , 0 , 0 ) ) ; { bitmap panel . add ( new j label ( "Gamma:" ) , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { gamma spinner = new j spinner ( new spinner number model ( 1.8f , 0 , 30 , 0.01 ) ) ; ( ( j spinner . default editor ) gamma spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; bitmap panel . add ( gamma spinner , new grid bag constraints ( 1 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 10 ) , 0 , 0 ) ) ; } { mono check box = new j check box ( "Mono" ) ; bitmap panel . add ( mono check box , new grid bag constraints ( 2 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } } { browse button = new j button ( "..." ) ; font panel . add ( browse button , new grid bag constraints ( 3 , 2 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; browse button . set margin ( new insets ( 0 , 0 , 0 , 0 ) ) ; } { font panel . add ( new j label ( "Rendering:" ) , new grid bag constraints ( 0 , 4 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . northeast , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { j panel rendering panel = new j panel ( new grid bag layout ( ) ) ; font panel . add ( rendering panel , new grid bag constraints ( 1 , 4 , 3 , 1 , 0.0 , 0.0 , grid bag constraints . northwest , grid bag constraints . none , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; { free type radio = new j radio button ( "FreeType" ) ; rendering panel . add ( free type radio , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { java radio = new j radio button ( "Java" ) ; rendering panel . add ( java radio , new grid bag constraints ( 1 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { native radio = new j radio button ( "Native" ) ; rendering panel . add ( native radio , new grid bag constraints ( 2 , 0 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } } button group button group = new button group ( ) ; button group . add ( system font radio ) ; button group . add ( font file radio ) ; button group = new button group ( ) ; button group . add ( free type radio ) ; button group . add ( java radio ) ; button group . add ( native radio ) ; free type radio . set selected ( true ) ; } { j panel sample panel = new j panel ( ) ; left side panel . add ( sample panel , new grid bag constraints ( 1 , 0 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 5 , 0 , 5 , 5 ) , 0 , 0 ) ) ; sample panel . set layout ( new grid bag layout ( ) ) ; sample panel . set border ( border factory . create titled border ( "Sample Text" ) ) ; { j scroll pane text scroll = new j scroll pane ( ) ; sample panel . add ( text scroll , new grid bag constraints ( 0 , 0 , 4 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; { sample text pane = new j text pane ( ) ; text scroll . set viewport view ( sample text pane ) ; } } { sample nehe button = new j button ( ) ; sample nehe button . set text ( "NEHE" ) ; sample panel . add ( sample nehe button , new grid bag constraints ( 2 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { sample ascii button = new j button ( ) ; sample ascii button . set text ( "ASCII" ) ; sample panel . add ( sample ascii button , new grid bag constraints ( 3 , 1 , 1 , 1 , 0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { sample extended button = new j button ( ) ; sample extended button . set text ( "Extended" ) ; sample panel . add ( sample extended button , new grid bag constraints ( 1 , 1 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } } { j panel rendering panel = new j panel ( ) ; left side panel . add ( rendering panel , new grid bag constraints ( 0 , 1 , 2 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; rendering panel . set border ( border factory . create titled border ( "Rendering" ) ) ; rendering panel . set layout ( new grid bag layout ( ) ) ; { j panel wrapper panel = new j panel ( ) ; rendering panel . add ( wrapper panel , new grid bag constraints ( 0 , 1 , 1 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; wrapper panel . set layout ( new border layout ( ) ) ; wrapper panel . set background ( java . awt . color . white ) ; { game panel = new j panel ( ) ; wrapper panel . add ( game panel ) ; game panel . set layout ( new border layout ( ) ) ; game panel . set background ( java . awt . color . white ) ; } } { glyph cache panel = new j panel ( ) { private int max width ; public dimension get preferred size ( ) { dimension size = super . get preferred size ( ) ; max width = math . max ( max width , size . width ) ; size . width = max width ; return size ; } } ; glyph cache panel . set visible ( false ) ; rendering panel . add ( glyph cache panel , new grid bag constraints ( 1 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . north , grid bag constraints . horizontal , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; glyph cache panel . set layout ( new grid bag layout ( ) ) ; { glyph cache panel . add ( new j label ( "Glyphs:" ) , new grid bag constraints ( 0 , 4 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph cache panel . add ( new j label ( "Pages:" ) , new grid bag constraints ( 0 , 3 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph cache panel . add ( new j label ( "Page width:" ) , new grid bag constraints ( 0 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph cache panel . add ( new j label ( "Page height:" ) , new grid bag constraints ( 0 , 2 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph page width combo = new j combo box ( new default combo box model ( new integer [ ] { new integer ( 32 ) , new integer ( 64 ) , new integer ( 128 ) , new integer ( 256 ) , new integer ( 512 ) , new integer ( 1024 ) , new integer ( 2048 ) } ) ) ; glyph cache panel . add ( glyph page width combo , new grid bag constraints ( 1 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; glyph page width combo . set selected index ( 4 ) ; } { glyph page height combo = new j combo box ( new default combo box model ( new integer [ ] { new integer ( 32 ) , new integer ( 64 ) , new integer ( 128 ) , new integer ( 256 ) , new integer ( 512 ) , new integer ( 1024 ) , new integer ( 2048 ) } ) ) ; glyph cache panel . add ( glyph page height combo , new grid bag constraints ( 1 , 2 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; glyph page height combo . set selected index ( 4 ) ; } { reset cache button = new j button ( "Reset Cache" ) ; glyph cache panel . add ( reset cache button , new grid bag constraints ( 0 , 6 , 2 , 1 , 1.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph pages total label = new j label ( "1" ) ; glyph cache panel . add ( glyph pages total label , new grid bag constraints ( 1 , 3 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { glyphs total label = new j label ( "0" ) ; glyph cache panel . add ( glyphs total label , new grid bag constraints ( 1 , 4 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph page combo model = new default combo box model ( ) ; glyph page combo = new j combo box ( ) ; glyph cache panel . add ( glyph page combo , new grid bag constraints ( 1 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; glyph page combo . set model ( glyph page combo model ) ; } { glyph cache panel . add ( new j label ( "View:" ) , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } } { j panel radio buttons panel = new j panel ( ) ; rendering panel . add ( radio buttons panel , new grid bag constraints ( 0 , 0 , 2 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; radio buttons panel . set layout ( new grid bag layout ( ) ) ; { sample text radio = new j radio button ( "Sample text" ) ; radio buttons panel . add ( sample text radio , new grid bag constraints ( 2 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; sample text radio . set selected ( true ) ; } { glyph cache radio = new j radio button ( "Glyph cache" ) ; radio buttons panel . add ( glyph cache radio , new grid bag constraints ( 3 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { radio buttons panel . add ( new j label ( "Background:" ) , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { background color label = new j label ( ) ; radio buttons panel . add ( background color label , new grid bag constraints ( 1 , 0 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } button group button group = new button group ( ) ; button group . add ( glyph cache radio ) ; button group . add ( sample text radio ) ; } } j panel right side panel = new j panel ( ) ; right side panel . set layout ( new grid bag layout ( ) ) ; get content pane ( ) . add ( right side panel , new grid bag constraints ( 1 , 0 , 1 , 2 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; { j panel padding panel = new j panel ( ) ; padding panel . set layout ( new grid bag layout ( ) ) ; right side panel . add ( padding panel , new grid bag constraints ( 0 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; padding panel . set border ( border factory . create titled border ( "Padding" ) ) ; { pad top spinner = new j spinner ( new spinner number model ( 1 , 0 , 999 , 1 ) ) ; padding panel . add ( pad top spinner , new grid bag constraints ( 1 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; ( ( j spinner . default editor ) pad top spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { pad right spinner = new j spinner ( new spinner number model ( 1 , 0 , 999 , 1 ) ) ; padding panel . add ( pad right spinner , new grid bag constraints ( 2 , 2 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 0 , 5 ) , 0 , 0 ) ) ; ( ( j spinner . default editor ) pad right spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { pad left spinner = new j spinner ( new spinner number model ( 1 , 0 , 999 , 1 ) ) ; padding panel . add ( pad left spinner , new grid bag constraints ( 0 , 2 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 0 , 0 ) , 0 , 0 ) ) ; ( ( j spinner . default editor ) pad left spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { pad bottom spinner = new j spinner ( new spinner number model ( 1 , 0 , 999 , 1 ) ) ; padding panel . add ( pad bottom spinner , new grid bag constraints ( 1 , 3 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; ( ( j spinner . default editor ) pad bottom spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { j panel advance panel = new j panel ( ) ; flow layout advance panel layout = new flow layout ( ) ; advance panel . set layout ( advance panel layout ) ; padding panel . add ( advance panel , new grid bag constraints ( 0 , 4 , 3 , 1 , 1.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; { advance panel . add ( new j label ( "X:" ) ) ; } { pad advance x spinner = new j spinner ( new spinner number model ( - 2 , - 999 , 999 , 1 ) ) ; advance panel . add ( pad advance x spinner ) ; ( ( j spinner . default editor ) pad advance x spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { advance panel . add ( new j label ( "Y:" ) ) ; } { pad advance y spinner = new j spinner ( new spinner number model ( - 2 , - 999 , 999 , 1 ) ) ; advance panel . add ( pad advance y spinner ) ; ( ( j spinner . default editor ) pad advance y spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } } } { effects panel = new j panel ( ) ; effects panel . set layout ( new grid bag layout ( ) ) ; right side panel . add ( effects panel , new grid bag constraints ( 0 , 0 , 1 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 5 , 0 , 5 , 5 ) , 0 , 0 ) ) ; effects panel . set border ( border factory . create titled border ( "Effects" ) ) ; effects panel . set minimum size ( new dimension ( 210 , 1 ) ) ; { effects scroll = new j scroll pane ( ) ; effects panel . add ( effects scroll , new grid bag constraints ( 1 , 0 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . north , grid bag constraints . horizontal , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; { effects list model = new default combo box model ( ) ; effects list = new j list ( ) ; effects scroll . set viewport view ( effects list ) ; effects list . set model ( effects list model ) ; effects list . set visible row count ( 7 ) ; effects scroll . set minimum size ( effects list . get preferred scrollable viewport size ( ) ) ; } } { add effect button = new j button ( "Add" ) ; effects panel . add ( add effect button , new grid bag constraints ( 1 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 6 , 5 ) , 0 , 0 ) ) ; add effect button . set enabled ( false ) ; } { applied effects scroll = new j scroll pane ( ) ; effects panel . add ( applied effects scroll , new grid bag constraints ( 1 , 3 , 1 , 1 , 1.0 , 1.0 , grid bag constraints . north , grid bag constraints . both , new insets ( 0 , 0 , 5 , 0 ) , 0 , 0 ) ) ; applied effects scroll . set border ( new empty border ( 0 , 0 , 0 , 0 ) ) ; applied effects scroll . set horizontal scroll bar policy ( scroll pane constants . horizontal scrollbar never ) ; { j panel panel = new j panel ( ) ; panel . set layout ( new grid bag layout ( ) ) ; applied effects scroll . set viewport view ( panel ) ; { applied effects panel = new j panel ( ) ; applied effects panel . set layout ( new grid bag layout ( ) ) ; panel . add ( applied effects panel , new grid bag constraints ( 0 , 0 , 1 , 1 , 1.0 , 1.0 , grid bag constraints . north , grid bag constraints . horizontal , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; applied effects panel . set border ( border factory . create matte border ( 1 , 0 , 0 , 0 , java . awt . color . black ) ) ; } } } } } <SENTENCE_END/>

(Copy Probability: 5.1%)

<SENTENCE_START> { get content pane ( ) . set layout ( new grid bag layout ( ) ) ; j panel left side panel = new j panel ( ) ; left side panel . set layout ( new grid bag layout ( ) ) ; get content pane ( ) . add ( left side panel , new grid bag constraints ( 0 , 1 , 1 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; { j panel font panel = new j panel ( ) ; left side panel . add ( font panel , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 5 , 5 , 5 , 5 ) , 0 , 0 ) ) ; font panel . set layout ( new grid bag layout ( ) ) ; font panel . set border ( border factory . create titled border ( "Font" ) ) ; { font size spinner = new j spinner ( new spinner number model ( 32 , 0 , 256 , 1 ) ) ; font panel . add ( font size spinner , new grid bag constraints ( 1 , 3 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 10 ) , 0 , 0 ) ) ; ( ( j spinner . default editor ) font size spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { j scroll pane font scroll = new j scroll pane ( ) ; font panel . add ( font scroll , new grid bag constraints ( 1 , 1 , 3 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; { font list model = new default combo box model ( graphics environment . get local graphics environment ( ) . get available font family names ( ) ) ; font list = new j list ( ) ; font scroll . set viewport view ( font list ) ; font list . set model ( font list model ) ; font list . set visible row count ( 6 ) ; font list . set selected index ( 0 ) ; font scroll . set minimum size ( new dimension ( 220 , font list . get preferred scrollable viewport size ( ) . height ) ) ; } } { system font radio = new j radio button ( "System:" , true ) ; font panel . add ( system font radio , new grid bag constraints ( 0 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . northeast , grid bag constraints . none , new insets ( 0 , 5 , 0 , 5 ) , 0 , 0 ) ) ; system font radio . set margin ( new insets ( 0 , 0 , 0 , 0 ) ) ; } { font file radio = new j radio button ( "File:" ) ; font panel . add ( font file radio , new grid bag constraints ( 0 , 2 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; font file radio . set margin ( new insets ( 0 , 0 , 0 , 0 ) ) ; } { font file text = new j text field ( ) ; font panel . add ( font file text , new grid bag constraints ( 1 , 2 , 2 , 1 , 1.0 , 0.0 , grid bag constraints . center , grid bag constraints . horizontal , new insets ( 0 , 0 , 5 , 0 ) , 0 , 0 ) ) ; } { font panel . add ( new j label ( "Size:" ) , new grid bag constraints ( 0 , 3 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { unicode panel = new j panel ( new grid bag layout ( ) ) ; font panel . add ( unicode panel , new grid bag constraints ( 2 , 3 , 2 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . horizontal , new insets ( 0 , 0 , 0 , 5 ) , 0 , 0 ) ) ; { bold check box = new j check box ( "Bold" ) ; unicode panel . add ( bold check box , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { italic check box = new j check box ( "Italic" ) ; unicode panel . add ( italic check box , new grid bag constraints ( 1 , 0 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } } { bitmap panel = new j panel ( new grid bag layout ( ) ) ; font panel . add ( bitmap panel , new grid bag constraints ( 2 , 3 , 2 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 0 , 5 ) , 0 , 0 ) ) ; { bitmap panel . add ( new j label ( "Gamma:" ) , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { gamma spinner = new j spinner ( new spinner number model ( 1.8f , 0 , 30 , 0.01 ) ) ; ( ( j spinner . default editor ) gamma spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; bitmap panel . add ( gamma spinner , new grid bag constraints ( 1 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 10 ) , 0 , 0 ) ) ; } { mono check box = new j check box ( "Mono" ) ; bitmap panel . add ( mono check box , new grid bag constraints ( 2 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } } { browse button = new j button ( "..." ) ; font panel . add ( browse button , new grid bag constraints ( 3 , 2 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; browse button . set margin ( new insets ( 0 , 0 , 0 , 0 ) ) ; } { font panel . add ( new j label ( "Rendering:" ) , new grid bag constraints ( 0 , 4 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . northeast , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { j panel rendering panel = new j panel ( new grid bag layout ( ) ) ; font panel . add ( rendering panel , new grid bag constraints ( 1 , 4 , 3 , 1 , 0.0 , 0.0 , grid bag constraints . northwest , grid bag constraints . none , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; { free type radio = new j radio button ( "FreeType" ) ; rendering panel . add ( free type radio , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { java radio = new j radio button ( "Java" ) ; rendering panel . add ( java radio , new grid bag constraints ( 1 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { native radio = new j radio button ( "Native" ) ; rendering panel . add ( native radio , new grid bag constraints ( 2 , 0 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } } button group button group = new button group ( ) ; button group . add ( system font radio ) ; button group . add ( font file radio ) ; button group = new button group ( ) ; button group . add ( free type radio ) ; button group . add ( java radio ) ; button group . add ( native radio ) ; free type radio . set selected ( true ) ; } { j panel sample panel = new j panel ( ) ; left side panel . add ( sample panel , new grid bag constraints ( 1 , 0 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 5 , 0 , 5 , 5 ) , 0 , 0 ) ) ; sample panel . set layout ( new grid bag layout ( ) ) ; sample panel . set border ( border factory . create titled border ( "Sample Text" ) ) ; { j scroll pane text scroll = new j scroll pane ( ) ; sample panel . add ( text scroll , new grid bag constraints ( 0 , 0 , 4 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; { sample text pane = new j text pane ( ) ; text scroll . set viewport view ( sample text pane ) ; } } { sample nehe button = new j button ( ) ; sample nehe button . set text ( "NEHE" ) ; sample panel . add ( sample nehe button , new grid bag constraints ( 2 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { sample ascii button = new j button ( ) ; sample ascii button . set text ( "ASCII" ) ; sample panel . add ( sample ascii button , new grid bag constraints ( 3 , 1 , 1 , 1 , 0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { sample extended button = new j button ( ) ; sample extended button . set text ( "Extended" ) ; sample panel . add ( sample extended button , new grid bag constraints ( 1 , 1 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } } { j panel rendering panel = new j panel ( ) ; left side panel . add ( rendering panel , new grid bag constraints ( 0 , 1 , 2 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; rendering panel . set border ( border factory . create titled border ( "Rendering" ) ) ; rendering panel . set layout ( new grid bag layout ( ) ) ; { j panel wrapper panel = new j panel ( ) ; rendering panel . add ( wrapper panel , new grid bag constraints ( 0 , 1 , 1 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; wrapper panel . set layout ( new border layout ( ) ) ; wrapper panel . set background ( java . awt . color . white ) ; { game panel = new j panel ( ) ; wrapper panel . add ( game panel ) ; game panel . set layout ( new border layout ( ) ) ; game panel . set background ( java . awt . color . white ) ; } } { glyph cache panel = new j panel ( ) { private int max width ; public dimension get preferred size ( ) { dimension size = super . get preferred size ( ) ; max width = math . max ( max width , size . width ) ; size . width = max width ; return size ; } } ; glyph cache panel . set visible ( false ) ; rendering panel . add ( glyph cache panel , new grid bag constraints ( 1 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . north , grid bag constraints . horizontal , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; glyph cache panel . set layout ( new grid bag layout ( ) ) ; { glyph cache panel . add ( new j label ( "Glyphs:" ) , new grid bag constraints ( 0 , 4 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph cache panel . add ( new j label ( "Pages:" ) , new grid bag constraints ( 0 , 3 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph cache panel . add ( new j label ( "Page width:" ) , new grid bag constraints ( 0 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph cache panel . add ( new j label ( "Page height:" ) , new grid bag constraints ( 0 , 2 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph page width combo = new j combo box ( new default combo box model ( new integer [ ] { new integer ( 32 ) , new integer ( 64 ) , new integer ( 128 ) , new integer ( 256 ) , new integer ( 512 ) , new integer ( 1024 ) , new integer ( 2048 ) } ) ) ; glyph cache panel . add ( glyph page width combo , new grid bag constraints ( 1 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; glyph page width combo . set selected index ( 4 ) ; } { glyph page height combo = new j combo box ( new default combo box model ( new integer [ ] { new integer ( 32 ) , new integer ( 64 ) , new integer ( 128 ) , new integer ( 256 ) , new integer ( 512 ) , new integer ( 1024 ) , new integer ( 2048 ) } ) ) ; glyph cache panel . add ( glyph page height combo , new grid bag constraints ( 1 , 2 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; glyph page height combo . set selected index ( 4 ) ; } { reset cache button = new j button ( "Reset Cache" ) ; glyph cache panel . add ( reset cache button , new grid bag constraints ( 0 , 6 , 2 , 1 , 1.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph pages total label = new j label ( "1" ) ; glyph cache panel . add ( glyph pages total label , new grid bag constraints ( 1 , 3 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { glyphs total label = new j label ( "0" ) ; glyph cache panel . add ( glyphs total label , new grid bag constraints ( 1 , 4 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph page combo model = new default combo box model ( ) ; glyph page combo = new j combo box ( ) ; glyph cache panel . add ( glyph page combo , new grid bag constraints ( 1 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; glyph page combo . set model ( glyph page combo model ) ; } { glyph cache panel . add ( new j label ( "View:" ) , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } } { j panel radio buttons panel = new j panel ( ) ; rendering panel . add ( radio buttons panel , new grid bag constraints ( 0 , 0 , 2 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; radio buttons panel . set layout ( new grid bag layout ( ) ) ; { sample text radio = new j radio button ( "Sample text" ) ; radio buttons panel . add ( sample text radio , new grid bag constraints ( 2 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; sample text radio . set selected ( true ) ; } { glyph cache radio = new j radio button ( "Glyph cache" ) ; radio buttons panel . add ( glyph cache radio , new grid bag constraints ( 3 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { radio buttons panel . add ( new j label ( "Background:" ) , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { background color label = new j label ( ) ; radio buttons panel . add ( background color label , new grid bag constraints ( 1 , 0 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } button group button group = new button group ( ) ; button group . add ( glyph cache radio ) ; button group . add ( sample text radio ) ; } } j panel right side panel = new j panel ( ) ; right side panel . set layout ( new grid bag layout ( ) ) ; get content pane ( ) . add ( right side panel , new grid bag constraints ( 1 , 0 , 1 , 2 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; { j panel padding panel = new j panel ( ) ; padding panel . set layout ( new grid bag layout ( ) ) ; right side panel . add ( padding panel , new grid bag constraints ( 0 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; padding panel . set border ( border factory . create titled border ( "Padding" ) ) ; { pad top spinner = new j spinner ( new spinner number model ( 1 , 0 , 999 , 1 ) ) ; padding panel . add ( pad top spinner , new grid bag constraints ( 1 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; ( ( j spinner . default editor ) pad top spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { pad right spinner = new j spinner ( new spinner number model ( 1 , 0 , 999 , 1 ) ) ; padding panel . add ( pad right spinner , new grid bag constraints ( 2 , 2 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 0 , 5 ) , 0 , 0 ) ) ; ( ( j spinner . default editor ) pad right spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { pad left spinner = new j spinner ( new spinner number model ( 1 , 0 , 999 , 1 ) ) ; padding panel . add ( pad left spinner , new grid bag constraints ( 0 , 2 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 0 , 0 ) , 0 , 0 ) ) ; ( ( j spinner . default editor ) pad left spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { pad bottom spinner = new j spinner ( new spinner number model ( 1 , 0 , 999 , 1 ) ) ; padding panel . add ( pad bottom spinner , new grid bag constraints ( 1 , 3 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; ( ( j spinner . default editor ) pad bottom spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { j panel advance panel = new j panel ( ) ; flow layout advance panel layout = new flow layout ( ) ; advance panel . set layout ( advance panel layout ) ; padding panel . add ( advance panel , new grid bag constraints ( 0 , 4 , 3 , 1 , 1.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; { advance panel . add ( new j label ( "X:" ) ) ; } { pad advance x spinner = new j spinner ( new spinner number model ( - 2 , - 999 , 999 , 1 ) ) ; advance panel . add ( pad advance x spinner ) ; ( ( j spinner . default editor ) pad advance x spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { advance panel . add ( new j label ( "Y:" ) ) ; } { pad advance y spinner = new j spinner ( new spinner number model ( - 2 , - 999 , 999 , 1 ) ) ; advance panel . add ( pad advance y spinner ) ; ( ( j spinner . default editor ) pad advance y spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } } } { effects panel = new j panel ( ) ; effects panel . set layout ( new grid bag layout ( ) ) ; right side panel . add ( effects panel , new grid bag constraints ( 0 , 0 , 1 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 5 , 0 , 5 , 5 ) , 0 , 0 ) ) ; effects panel . set border ( border factory . create titled border ( "Effects" ) ) ; effects panel . set minimum size ( new dimension ( 210 , 1 ) ) ; { effects scroll = new j scroll pane ( ) ; effects panel . add ( effects scroll , new grid bag constraints ( 1 , 0 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . north , grid bag constraints . horizontal , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; { effects list model = new default combo box model ( ) ; effects list = new j list ( ) ; effects scroll . set viewport view ( effects list ) ; effects list . set model ( effects list model ) ; effects list . set visible row count ( 7 ) ; effects scroll . set minimum size ( effects list . get preferred scrollable viewport size ( ) ) ; } } { add effect button = new j button ( "Add" ) ; effects panel . add ( add effect button , new grid bag constraints ( 1 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 6 , 5 ) , 0 , 0 ) ) ; add effect button . set enabled ( false ) ; } { applied effects scroll = new j scroll pane ( ) ; effects panel . add ( applied effects scroll , new grid bag constraints ( 1 , 3 , 1 , 1 , 1.0 , 1.0 , grid bag constraints . north , grid bag constraints . both , new insets ( 0 , 0 , 5 , 0 ) , 0 , 0 ) ) ; applied effects scroll . set border ( new empty border ( 0 , 0 , 0 , 0 ) ) ; applied effects scroll . set horizontal scroll bar policy ( scroll pane constants . horizontal scrollbar never ) ; { j panel panel = new j panel ( ) ; panel . set layout ( new grid bag layout ( ) ) ; applied effects scroll . set viewport view ( panel ) ; { applied effects panel = new j panel ( ) ; applied effects panel . set layout ( new grid bag layout ( ) ) ; panel . add ( applied effects panel , new grid bag constraints ( 0 , 0 , 1 , 1 , 1.0 , 1.0 , grid bag constraints . north , grid bag constraints . horizontal , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; applied effects panel . set border ( border factory . create matte border ( 1 , 0 , 0 , 0 , java . awt . color . black ) ) ; } } } } } <SENTENCE_END/>

%END%

<SENTENCE_START> { get content pane ( ) . set layout ( new grid bag layout ( ) ) ; j panel left side panel = new j panel ( ) ; left side panel . set layout ( new grid bag layout ( ) ) ; get content pane ( ) . add ( left side panel , new grid bag constraints ( 0 , 1 , 1 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; { j panel font panel = new j panel ( ) ; left side panel . add ( font panel , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 5 , 5 , 5 , 5 ) , 0 , 0 ) ) ; font panel . set layout ( new grid bag layout ( ) ) ; font panel . set border ( border factory . create titled border ( "Font" ) ) ; { font size spinner = new j spinner ( new spinner number model ( 32 , 0 , 256 , 1 ) ) ; font panel . add ( font size spinner , new grid bag constraints ( 1 , 3 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 10 ) , 0 , 0 ) ) ; ( ( j spinner . default editor ) font size spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { j scroll pane font scroll = new j scroll pane ( ) ; font panel . add ( font scroll , new grid bag constraints ( 1 , 1 , 3 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; { font list model = new default combo box model ( graphics environment . get local graphics environment ( ) . get available font family names ( ) ) ; font list = new j list ( ) ; font scroll . set viewport view ( font list ) ; font list . set model ( font list model ) ; font list . set visible row count ( 6 ) ; font list . set selected index ( 0 ) ; font scroll . set minimum size ( new dimension ( 220 , font list . get preferred scrollable viewport size ( ) . height ) ) ; } } { system font radio = new j radio button ( "System:" , true ) ; font panel . add ( system font radio , new grid bag constraints ( 0 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . northeast , grid bag constraints . none , new insets ( 0 , 5 , 0 , 5 ) , 0 , 0 ) ) ; system font radio . set margin ( new insets ( 0 , 0 , 0 , 0 ) ) ; } { font file radio = new j radio button ( "File:" ) ; font panel . add ( font file radio , new grid bag constraints ( 0 , 2 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; font file radio . set margin ( new insets ( 0 , 0 , 0 , 0 ) ) ; } { font file text = new j text field ( ) ; font panel . add ( font file text , new grid bag constraints ( 1 , 2 , 2 , 1 , 1.0 , 0.0 , grid bag constraints . center , grid bag constraints . horizontal , new insets ( 0 , 0 , 5 , 0 ) , 0 , 0 ) ) ; } { font panel . add ( new j label ( "Size:" ) , new grid bag constraints ( 0 , 3 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { unicode panel = new j panel ( new grid bag layout ( ) ) ; font panel . add ( unicode panel , new grid bag constraints ( 2 , 3 , 2 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . horizontal , new insets ( 0 , 0 , 0 , 5 ) , 0 , 0 ) ) ; { bold check box = new j check box ( "Bold" ) ; unicode panel . add ( bold check box , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { italic check box = new j check box ( "Italic" ) ; unicode panel . add ( italic check box , new grid bag constraints ( 1 , 0 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } } { bitmap panel = new j panel ( new grid bag layout ( ) ) ; font panel . add ( bitmap panel , new grid bag constraints ( 2 , 3 , 2 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 0 , 5 ) , 0 , 0 ) ) ; { bitmap panel . add ( new j label ( "Gamma:" ) , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { gamma spinner = new j spinner ( new spinner number model ( 1.8f , 0 , 30 , 0.01 ) ) ; ( ( j spinner . default editor ) gamma spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; bitmap panel . add ( gamma spinner , new grid bag constraints ( 1 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 10 ) , 0 , 0 ) ) ; } { mono check box = new j check box ( "Mono" ) ; bitmap panel . add ( mono check box , new grid bag constraints ( 2 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } } { browse button = new j button ( "..." ) ; font panel . add ( browse button , new grid bag constraints ( 3 , 2 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; browse button . set margin ( new insets ( 0 , 0 , 0 , 0 ) ) ; } { font panel . add ( new j label ( "Rendering:" ) , new grid bag constraints ( 0 , 4 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . northeast , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { j panel rendering panel = new j panel ( new grid bag layout ( ) ) ; font panel . add ( rendering panel , new grid bag constraints ( 1 , 4 , 3 , 1 , 0.0 , 0.0 , grid bag constraints . northwest , grid bag constraints . none , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; { free type radio = new j radio button ( "FreeType" ) ; rendering panel . add ( free type radio , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { java radio = new j radio button ( "Java" ) ; rendering panel . add ( java radio , new grid bag constraints ( 1 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { native radio = new j radio button ( "Native" ) ; rendering panel . add ( native radio , new grid bag constraints ( 2 , 0 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } } button group button group = new button group ( ) ; button group . add ( system font radio ) ; button group . add ( font file radio ) ; button group = new button group ( ) ; button group . add ( free type radio ) ; button group . add ( java radio ) ; button group . add ( native radio ) ; free type radio . set selected ( true ) ; } { j panel sample panel = new j panel ( ) ; left side panel . add ( sample panel , new grid bag constraints ( 1 , 0 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 5 , 0 , 5 , 5 ) , 0 , 0 ) ) ; sample panel . set layout ( new grid bag layout ( ) ) ; sample panel . set border ( border factory . create titled border ( "Sample Text" ) ) ; { j scroll pane text scroll = new j scroll pane ( ) ; sample panel . add ( text scroll , new grid bag constraints ( 0 , 0 , 4 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; { sample text pane = new j text pane ( ) ; text scroll . set viewport view ( sample text pane ) ; } } { sample nehe button = new j button ( ) ; sample nehe button . set text ( "NEHE" ) ; sample panel . add ( sample nehe button , new grid bag constraints ( 2 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { sample ascii button = new j button ( ) ; sample ascii button . set text ( "ASCII" ) ; sample panel . add ( sample ascii button , new grid bag constraints ( 3 , 1 , 1 , 1 , 0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { sample extended button = new j button ( ) ; sample extended button . set text ( "Extended" ) ; sample panel . add ( sample extended button , new grid bag constraints ( 1 , 1 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } } { j panel rendering panel = new j panel ( ) ; left side panel . add ( rendering panel , new grid bag constraints ( 0 , 1 , 2 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; rendering panel . set border ( border factory . create titled border ( "Rendering" ) ) ; rendering panel . set layout ( new grid bag layout ( ) ) ; { j panel wrapper panel = new j panel ( ) ; rendering panel . add ( wrapper panel , new grid bag constraints ( 0 , 1 , 1 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; wrapper panel . set layout ( new border layout ( ) ) ; wrapper panel . set background ( java . awt . color . white ) ; { game panel = new j panel ( ) ; wrapper panel . add ( game panel ) ; game panel . set layout ( new border layout ( ) ) ; game panel . set background ( java . awt . color . white ) ; } } { glyph cache panel = new j panel ( ) { private int max width ; public dimension get preferred size ( ) { dimension size = super . get preferred size ( ) ; max width = math . max ( max width , size . width ) ; size . width = max width ; return size ; } } ; glyph cache panel . set visible ( false ) ; rendering panel . add ( glyph cache panel , new grid bag constraints ( 1 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . north , grid bag constraints . horizontal , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; glyph cache panel . set layout ( new grid bag layout ( ) ) ; { glyph cache panel . add ( new j label ( "Glyphs:" ) , new grid bag constraints ( 0 , 4 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph cache panel . add ( new j label ( "Pages:" ) , new grid bag constraints ( 0 , 3 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph cache panel . add ( new j label ( "Page width:" ) , new grid bag constraints ( 0 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph cache panel . add ( new j label ( "Page height:" ) , new grid bag constraints ( 0 , 2 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph page width combo = new j combo box ( new default combo box model ( new integer [ ] { new integer ( 32 ) , new integer ( 64 ) , new integer ( 128 ) , new integer ( 256 ) , new integer ( 512 ) , new integer ( 1024 ) , new integer ( 2048 ) } ) ) ; glyph cache panel . add ( glyph page width combo , new grid bag constraints ( 1 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; glyph page width combo . set selected index ( 4 ) ; } { glyph page height combo = new j combo box ( new default combo box model ( new integer [ ] { new integer ( 32 ) , new integer ( 64 ) , new integer ( 128 ) , new integer ( 256 ) , new integer ( 512 ) , new integer ( 1024 ) , new integer ( 2048 ) } ) ) ; glyph cache panel . add ( glyph page height combo , new grid bag constraints ( 1 , 2 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; glyph page height combo . set selected index ( 4 ) ; } { reset cache button = new j button ( "Reset Cache" ) ; glyph cache panel . add ( reset cache button , new grid bag constraints ( 0 , 6 , 2 , 1 , 1.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph pages total label = new j label ( "1" ) ; glyph cache panel . add ( glyph pages total label , new grid bag constraints ( 1 , 3 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { glyphs total label = new j label ( "0" ) ; glyph cache panel . add ( glyphs total label , new grid bag constraints ( 1 , 4 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph page combo model = new default combo box model ( ) ; glyph page combo = new j combo box ( ) ; glyph cache panel . add ( glyph page combo , new grid bag constraints ( 1 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; glyph page combo . set model ( glyph page combo model ) ; } { glyph cache panel . add ( new j label ( "View:" ) , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } } { j panel radio buttons panel = new j panel ( ) ; rendering panel . add ( radio buttons panel , new grid bag constraints ( 0 , 0 , 2 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; radio buttons panel . set layout ( new grid bag layout ( ) ) ; { sample text radio = new j radio button ( "Sample text" ) ; radio buttons panel . add ( sample text radio , new grid bag constraints ( 2 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; sample text radio . set selected ( true ) ; } { glyph cache radio = new j radio button ( "Glyph cache" ) ; radio buttons panel . add ( glyph cache radio , new grid bag constraints ( 3 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { radio buttons panel . add ( new j label ( "Background:" ) , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { background color label = new j label ( ) ; radio buttons panel . add ( background color label , new grid bag constraints ( 1 , 0 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } button group button group = new button group ( ) ; button group . add ( glyph cache radio ) ; button group . add ( sample text radio ) ; } } j panel right side panel = new j panel ( ) ; right side panel . set layout ( new grid bag layout ( ) ) ; get content pane ( ) . add ( right side panel , new grid bag constraints ( 1 , 0 , 1 , 2 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; { j panel padding panel = new j panel ( ) ; padding panel . set layout ( new grid bag layout ( ) ) ; right side panel . add ( padding panel , new grid bag constraints ( 0 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; padding panel . set border ( border factory . create titled border ( "Padding" ) ) ; { pad top spinner = new j spinner ( new spinner number model ( 1 , 0 , 999 , 1 ) ) ; padding panel . add ( pad top spinner , new grid bag constraints ( 1 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; ( ( j spinner . default editor ) pad top spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { pad right spinner = new j spinner ( new spinner number model ( 1 , 0 , 999 , 1 ) ) ; padding panel . add ( pad right spinner , new grid bag constraints ( 2 , 2 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 0 , 5 ) , 0 , 0 ) ) ; ( ( j spinner . default editor ) pad right spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { pad left spinner = new j spinner ( new spinner number model ( 1 , 0 , 999 , 1 ) ) ; padding panel . add ( pad left spinner , new grid bag constraints ( 0 , 2 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 0 , 0 ) , 0 , 0 ) ) ; ( ( j spinner . default editor ) pad left spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { pad bottom spinner = new j spinner ( new spinner number model ( 1 , 0 , 999 , 1 ) ) ; padding panel . add ( pad bottom spinner , new grid bag constraints ( 1 , 3 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; ( ( j spinner . default editor ) pad bottom spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { j panel advance panel = new j panel ( ) ; flow layout advance panel layout = new flow layout ( ) ; advance panel . set layout ( advance panel layout ) ; padding panel . add ( advance panel , new grid bag constraints ( 0 , 4 , 3 , 1 , 1.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; { advance panel . add ( new j label ( "X:" ) ) ; } { pad advance x spinner = new j spinner ( new spinner number model ( - 2 , - 999 , 999 , 1 ) ) ; advance panel . add ( pad advance x spinner ) ; ( ( j spinner . default editor ) pad advance x spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { advance panel . add ( new j label ( "Y:" ) ) ; } { pad advance y spinner = new j spinner ( new spinner number model ( - 2 , - 999 , 999 , 1 ) ) ; advance panel . add ( pad advance y spinner ) ; ( ( j spinner . default editor ) pad advance y spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } } } { effects panel = new j panel ( ) ; effects panel . set layout ( new grid bag layout ( ) ) ; right side panel . add ( effects panel , new grid bag constraints ( 0 , 0 , 1 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 5 , 0 , 5 , 5 ) , 0 , 0 ) ) ; effects panel . set border ( border factory . create titled border ( "Effects" ) ) ; effects panel . set minimum size ( new dimension ( 210 , 1 ) ) ; { effects scroll = new j scroll pane ( ) ; effects panel . add ( effects scroll , new grid bag constraints ( 1 , 0 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . north , grid bag constraints . horizontal , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; { effects list model = new default combo box model ( ) ; effects list = new j list ( ) ; effects scroll . set viewport view ( effects list ) ; effects list . set model ( effects list model ) ; effects list . set visible row count ( 7 ) ; effects scroll . set minimum size ( effects list . get preferred scrollable viewport size ( ) ) ; } } { add effect button = new j button ( "Add" ) ; effects panel . add ( add effect button , new grid bag constraints ( 1 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 6 , 5 ) , 0 , 0 ) ) ; add effect button . set enabled ( false ) ; } { applied effects scroll = new j scroll pane ( ) ; effects panel . add ( applied effects scroll , new grid bag constraints ( 1 , 3 , 1 , 1 , 1.0 , 1.0 , grid bag constraints . north , grid bag constraints . both , new insets ( 0 , 0 , 5 , 0 ) , 0 , 0 ) ) ; applied effects scroll . set border ( new empty border ( 0 , 0 , 0 , 0 ) ) ; applied effects scroll . set horizontal scroll bar policy ( scroll pane constants . horizontal scrollbar never ) ; { j panel panel = new j panel ( ) ; panel . set layout ( new grid bag layout ( ) ) ; applied effects scroll . set viewport view ( panel ) ; { applied effects panel = new j panel ( ) ; applied effects panel . set layout ( new grid bag layout ( ) ) ; panel . add ( applied effects panel , new grid bag constraints ( 0 , 0 , 1 , 1 , 1.0 , 1.0 , grid bag constraints . north , grid bag constraints . horizontal , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; applied effects panel . set border ( border factory . create matte border ( 1 , 0 , 0 , 0 , java . awt . color . black ) ) ; } } } } } <SENTENCE_END/>

(Copy Probability: 5.2%)

<SENTENCE_START> { get content pane ( ) . set layout ( new grid bag layout ( ) ) ; j panel left side panel = new j panel ( ) ; left side panel . set layout ( new grid bag layout ( ) ) ; get content pane ( ) . add ( left side panel , new grid bag constraints ( 0 , 1 , 1 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; { j panel font panel = new j panel ( ) ; left side panel . add ( font panel , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 5 , 5 , 5 , 5 ) , 0 , 0 ) ) ; font panel . set layout ( new grid bag layout ( ) ) ; font panel . set border ( border factory . create titled border ( "Font" ) ) ; { font size spinner = new j spinner ( new spinner number model ( 32 , 0 , 256 , 1 ) ) ; font panel . add ( font size spinner , new grid bag constraints ( 1 , 3 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 10 ) , 0 , 0 ) ) ; ( ( j spinner . default editor ) font size spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { j scroll pane font scroll = new j scroll pane ( ) ; font panel . add ( font scroll , new grid bag constraints ( 1 , 1 , 3 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; { font list model = new default combo box model ( graphics environment . get local graphics environment ( ) . get available font family names ( ) ) ; font list = new j list ( ) ; font scroll . set viewport view ( font list ) ; font list . set model ( font list model ) ; font list . set visible row count ( 6 ) ; font list . set selected index ( 0 ) ; font scroll . set minimum size ( new dimension ( 220 , font list . get preferred scrollable viewport size ( ) . height ) ) ; } } { system font radio = new j radio button ( "System:" , true ) ; font panel . add ( system font radio , new grid bag constraints ( 0 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . northeast , grid bag constraints . none , new insets ( 0 , 5 , 0 , 5 ) , 0 , 0 ) ) ; system font radio . set margin ( new insets ( 0 , 0 , 0 , 0 ) ) ; } { font file radio = new j radio button ( "File:" ) ; font panel . add ( font file radio , new grid bag constraints ( 0 , 2 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; font file radio . set margin ( new insets ( 0 , 0 , 0 , 0 ) ) ; } { font file text = new j text field ( ) ; font panel . add ( font file text , new grid bag constraints ( 1 , 2 , 2 , 1 , 1.0 , 0.0 , grid bag constraints . center , grid bag constraints . horizontal , new insets ( 0 , 0 , 5 , 0 ) , 0 , 0 ) ) ; } { font panel . add ( new j label ( "Size:" ) , new grid bag constraints ( 0 , 3 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { unicode panel = new j panel ( new grid bag layout ( ) ) ; font panel . add ( unicode panel , new grid bag constraints ( 2 , 3 , 2 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . horizontal , new insets ( 0 , 0 , 0 , 5 ) , 0 , 0 ) ) ; { bold check box = new j check box ( "Bold" ) ; unicode panel . add ( bold check box , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { italic check box = new j check box ( "Italic" ) ; unicode panel . add ( italic check box , new grid bag constraints ( 1 , 0 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } } { bitmap panel = new j panel ( new grid bag layout ( ) ) ; font panel . add ( bitmap panel , new grid bag constraints ( 2 , 3 , 2 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 0 , 5 ) , 0 , 0 ) ) ; { bitmap panel . add ( new j label ( "Gamma:" ) , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { gamma spinner = new j spinner ( new spinner number model ( 1.8f , 0 , 30 , 0.01 ) ) ; ( ( j spinner . default editor ) gamma spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; bitmap panel . add ( gamma spinner , new grid bag constraints ( 1 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 10 ) , 0 , 0 ) ) ; } { mono check box = new j check box ( "Mono" ) ; bitmap panel . add ( mono check box , new grid bag constraints ( 2 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } } { browse button = new j button ( "..." ) ; font panel . add ( browse button , new grid bag constraints ( 3 , 2 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; browse button . set margin ( new insets ( 0 , 0 , 0 , 0 ) ) ; } { font panel . add ( new j label ( "Rendering:" ) , new grid bag constraints ( 0 , 4 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . northeast , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { j panel rendering panel = new j panel ( new grid bag layout ( ) ) ; font panel . add ( rendering panel , new grid bag constraints ( 1 , 4 , 3 , 1 , 0.0 , 0.0 , grid bag constraints . northwest , grid bag constraints . none , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; { free type radio = new j radio button ( "FreeType" ) ; rendering panel . add ( free type radio , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { java radio = new j radio button ( "Java" ) ; rendering panel . add ( java radio , new grid bag constraints ( 1 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { native radio = new j radio button ( "Native" ) ; rendering panel . add ( native radio , new grid bag constraints ( 2 , 0 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } } button group button group = new button group ( ) ; button group . add ( system font radio ) ; button group . add ( font file radio ) ; button group = new button group ( ) ; button group . add ( free type radio ) ; button group . add ( java radio ) ; button group . add ( native radio ) ; free type radio . set selected ( true ) ; } { j panel sample panel = new j panel ( ) ; left side panel . add ( sample panel , new grid bag constraints ( 1 , 0 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 5 , 0 , 5 , 5 ) , 0 , 0 ) ) ; sample panel . set layout ( new grid bag layout ( ) ) ; sample panel . set border ( border factory . create titled border ( "Sample Text" ) ) ; { j scroll pane text scroll = new j scroll pane ( ) ; sample panel . add ( text scroll , new grid bag constraints ( 0 , 0 , 4 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; { sample text pane = new j text pane ( ) ; text scroll . set viewport view ( sample text pane ) ; } } { sample nehe button = new j button ( ) ; sample nehe button . set text ( "NEHE" ) ; sample panel . add ( sample nehe button , new grid bag constraints ( 2 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { sample ascii button = new j button ( ) ; sample ascii button . set text ( "ASCII" ) ; sample panel . add ( sample ascii button , new grid bag constraints ( 3 , 1 , 1 , 1 , 0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { sample extended button = new j button ( ) ; sample extended button . set text ( "Extended" ) ; sample panel . add ( sample extended button , new grid bag constraints ( 1 , 1 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } } { j panel rendering panel = new j panel ( ) ; left side panel . add ( rendering panel , new grid bag constraints ( 0 , 1 , 2 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; rendering panel . set border ( border factory . create titled border ( "Rendering" ) ) ; rendering panel . set layout ( new grid bag layout ( ) ) ; { j panel wrapper panel = new j panel ( ) ; rendering panel . add ( wrapper panel , new grid bag constraints ( 0 , 1 , 1 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; wrapper panel . set layout ( new border layout ( ) ) ; wrapper panel . set background ( java . awt . color . white ) ; { game panel = new j panel ( ) ; wrapper panel . add ( game panel ) ; game panel . set layout ( new border layout ( ) ) ; game panel . set background ( java . awt . color . white ) ; } } { glyph cache panel = new j panel ( ) { private int max width ; public dimension get preferred size ( ) { dimension size = super . get preferred size ( ) ; max width = math . max ( max width , size . width ) ; size . width = max width ; return size ; } } ; glyph cache panel . set visible ( false ) ; rendering panel . add ( glyph cache panel , new grid bag constraints ( 1 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . north , grid bag constraints . horizontal , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; glyph cache panel . set layout ( new grid bag layout ( ) ) ; { glyph cache panel . add ( new j label ( "Glyphs:" ) , new grid bag constraints ( 0 , 4 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph cache panel . add ( new j label ( "Pages:" ) , new grid bag constraints ( 0 , 3 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph cache panel . add ( new j label ( "Page width:" ) , new grid bag constraints ( 0 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph cache panel . add ( new j label ( "Page height:" ) , new grid bag constraints ( 0 , 2 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph page width combo = new j combo box ( new default combo box model ( new integer [ ] { new integer ( 32 ) , new integer ( 64 ) , new integer ( 128 ) , new integer ( 256 ) , new integer ( 512 ) , new integer ( 1024 ) , new integer ( 2048 ) } ) ) ; glyph cache panel . add ( glyph page width combo , new grid bag constraints ( 1 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; glyph page width combo . set selected index ( 4 ) ; } { glyph page height combo = new j combo box ( new default combo box model ( new integer [ ] { new integer ( 32 ) , new integer ( 64 ) , new integer ( 128 ) , new integer ( 256 ) , new integer ( 512 ) , new integer ( 1024 ) , new integer ( 2048 ) } ) ) ; glyph cache panel . add ( glyph page height combo , new grid bag constraints ( 1 , 2 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; glyph page height combo . set selected index ( 4 ) ; } { reset cache button = new j button ( "Reset Cache" ) ; glyph cache panel . add ( reset cache button , new grid bag constraints ( 0 , 6 , 2 , 1 , 1.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph pages total label = new j label ( "1" ) ; glyph cache panel . add ( glyph pages total label , new grid bag constraints ( 1 , 3 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { glyphs total label = new j label ( "0" ) ; glyph cache panel . add ( glyphs total label , new grid bag constraints ( 1 , 4 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { glyph page combo model = new default combo box model ( ) ; glyph page combo = new j combo box ( ) ; glyph cache panel . add ( glyph page combo , new grid bag constraints ( 1 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; glyph page combo . set model ( glyph page combo model ) ; } { glyph cache panel . add ( new j label ( "View:" ) , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } } { j panel radio buttons panel = new j panel ( ) ; rendering panel . add ( radio buttons panel , new grid bag constraints ( 0 , 0 , 2 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; radio buttons panel . set layout ( new grid bag layout ( ) ) ; { sample text radio = new j radio button ( "Sample text" ) ; radio buttons panel . add ( sample text radio , new grid bag constraints ( 2 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; sample text radio . set selected ( true ) ; } { glyph cache radio = new j radio button ( "Glyph cache" ) ; radio buttons panel . add ( glyph cache radio , new grid bag constraints ( 3 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } { radio buttons panel . add ( new j label ( "Background:" ) , new grid bag constraints ( 0 , 0 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; } { background color label = new j label ( ) ; radio buttons panel . add ( background color label , new grid bag constraints ( 1 , 0 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; } button group button group = new button group ( ) ; button group . add ( glyph cache radio ) ; button group . add ( sample text radio ) ; } } j panel right side panel = new j panel ( ) ; right side panel . set layout ( new grid bag layout ( ) ) ; get content pane ( ) . add ( right side panel , new grid bag constraints ( 1 , 0 , 1 , 2 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; { j panel padding panel = new j panel ( ) ; padding panel . set layout ( new grid bag layout ( ) ) ; right side panel . add ( padding panel , new grid bag constraints ( 0 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 0 , 0 , 5 , 5 ) , 0 , 0 ) ) ; padding panel . set border ( border factory . create titled border ( "Padding" ) ) ; { pad top spinner = new j spinner ( new spinner number model ( 1 , 0 , 999 , 1 ) ) ; padding panel . add ( pad top spinner , new grid bag constraints ( 1 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; ( ( j spinner . default editor ) pad top spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { pad right spinner = new j spinner ( new spinner number model ( 1 , 0 , 999 , 1 ) ) ; padding panel . add ( pad right spinner , new grid bag constraints ( 2 , 2 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . none , new insets ( 0 , 0 , 0 , 5 ) , 0 , 0 ) ) ; ( ( j spinner . default editor ) pad right spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { pad left spinner = new j spinner ( new spinner number model ( 1 , 0 , 999 , 1 ) ) ; padding panel . add ( pad left spinner , new grid bag constraints ( 0 , 2 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 0 , 0 ) , 0 , 0 ) ) ; ( ( j spinner . default editor ) pad left spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { pad bottom spinner = new j spinner ( new spinner number model ( 1 , 0 , 999 , 1 ) ) ; padding panel . add ( pad bottom spinner , new grid bag constraints ( 1 , 3 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; ( ( j spinner . default editor ) pad bottom spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { j panel advance panel = new j panel ( ) ; flow layout advance panel layout = new flow layout ( ) ; advance panel . set layout ( advance panel layout ) ; padding panel . add ( advance panel , new grid bag constraints ( 0 , 4 , 3 , 1 , 1.0 , 0.0 , grid bag constraints . center , grid bag constraints . none , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; { advance panel . add ( new j label ( "X:" ) ) ; } { pad advance x spinner = new j spinner ( new spinner number model ( - 2 , - 999 , 999 , 1 ) ) ; advance panel . add ( pad advance x spinner ) ; ( ( j spinner . default editor ) pad advance x spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } { advance panel . add ( new j label ( "Y:" ) ) ; } { pad advance y spinner = new j spinner ( new spinner number model ( - 2 , - 999 , 999 , 1 ) ) ; advance panel . add ( pad advance y spinner ) ; ( ( j spinner . default editor ) pad advance y spinner . get editor ( ) ) . get text field ( ) . set columns ( 2 ) ; } } } { effects panel = new j panel ( ) ; effects panel . set layout ( new grid bag layout ( ) ) ; right side panel . add ( effects panel , new grid bag constraints ( 0 , 0 , 1 , 1 , 1.0 , 1.0 , grid bag constraints . center , grid bag constraints . both , new insets ( 5 , 0 , 5 , 5 ) , 0 , 0 ) ) ; effects panel . set border ( border factory . create titled border ( "Effects" ) ) ; effects panel . set minimum size ( new dimension ( 210 , 1 ) ) ; { effects scroll = new j scroll pane ( ) ; effects panel . add ( effects scroll , new grid bag constraints ( 1 , 0 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . north , grid bag constraints . horizontal , new insets ( 0 , 5 , 5 , 5 ) , 0 , 0 ) ) ; { effects list model = new default combo box model ( ) ; effects list = new j list ( ) ; effects scroll . set viewport view ( effects list ) ; effects list . set model ( effects list model ) ; effects list . set visible row count ( 7 ) ; effects scroll . set minimum size ( effects list . get preferred scrollable viewport size ( ) ) ; } } { add effect button = new j button ( "Add" ) ; effects panel . add ( add effect button , new grid bag constraints ( 1 , 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 5 , 6 , 5 ) , 0 , 0 ) ) ; add effect button . set enabled ( false ) ; } { applied effects scroll = new j scroll pane ( ) ; effects panel . add ( applied effects scroll , new grid bag constraints ( 1 , 3 , 1 , 1 , 1.0 , 1.0 , grid bag constraints . north , grid bag constraints . both , new insets ( 0 , 0 , 5 , 0 ) , 0 , 0 ) ) ; applied effects scroll . set border ( new empty border ( 0 , 0 , 0 , 0 ) ) ; applied effects scroll . set horizontal scroll bar policy ( scroll pane constants . horizontal scrollbar never ) ; { j panel panel = new j panel ( ) ; panel . set layout ( new grid bag layout ( ) ) ; applied effects scroll . set viewport view ( panel ) ; { applied effects panel = new j panel ( ) ; applied effects panel . set layout ( new grid bag layout ( ) ) ; panel . add ( applied effects panel , new grid bag constraints ( 0 , 0 , 1 , 1 , 1.0 , 1.0 , grid bag constraints . north , grid bag constraints . horizontal , new insets ( 0 , 0 , 0 , 0 ) , 0 , 0 ) ) ; applied effects panel . set border ( border factory . create matte border ( 1 , 0 , 0 , 0 , java . awt . color . black ) ) ; } } } } } <SENTENCE_END/>


Original Name get,preferred,size

get

<SENTENCE_START> { dimension size = super . %SELF% ( ) ; max width = math . max ( max width , size . width ) ; size . width = max width ; return size ; } <SENTENCE_END/>

(Copy Probability: 1.8%)

<SENTENCE_START> { dimension size = super . %SELF% ( ) ; max width = math . max ( max width , size . width ) ; size . width = max width ; return size ; } <SENTENCE_END/>

preferred

<SENTENCE_START> { dimension size = super . %SELF% ( ) ; max width = math . max ( max width , size . width ) ; size . width = max width ; return size ; } <SENTENCE_END/>

(Copy Probability: 6.8%)

<SENTENCE_START> { dimension size = super . %SELF% ( ) ; max width = math . max ( max width , size . width ) ; size . width = max width ; return size ; } <SENTENCE_END/>

size

<SENTENCE_START> { dimension size = super . %SELF% ( ) ; max width = math . max ( max width , size . width ) ; size . width = max width ; return size ; } <SENTENCE_END/>

(Copy Probability: 2.7%)

<SENTENCE_START> { dimension size = super . %SELF% ( ) ; max width = math . max ( max width , size . width ) ; size . width = max width ; return size ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { dimension size = super . %SELF% ( ) ; max width = math . max ( max width , size . width ) ; size . width = max width ; return size ; } <SENTENCE_END/>

(Copy Probability: 2.2%)

<SENTENCE_START> { dimension size = super . %SELF% ( ) ; max width = math . max ( max width , size . width ) ; size . width = max width ; return size ; } <SENTENCE_END/>


Original Name initialize,menus

initialize

<SENTENCE_START> { { j menu bar menu bar = new j menu bar ( ) ; set j menu bar ( menu bar ) ; { j menu file menu = new j menu ( ) ; menu bar . add ( file menu ) ; file menu . set text ( "File" ) ; file menu . set mnemonic ( key event . vk f ) ; { open menu item = new j menu item ( "Open Hiero settings file..." ) ; open menu item . set mnemonic ( key event . vk o ) ; open menu item . set accelerator ( key stroke . get key stroke ( key event . vk o , key event . ctrl mask ) ) ; file menu . add ( open menu item ) ; } { save menu item = new j menu item ( "Save Hiero settings file..." ) ; save menu item . set mnemonic ( key event . vk s ) ; save menu item . set accelerator ( key stroke . get key stroke ( key event . vk s , key event . ctrl mask ) ) ; file menu . add ( save menu item ) ; } file menu . add separator ( ) ; { save bm font menu item = new j menu item ( "Save BMFont files (text)..." ) ; save bm font menu item . set mnemonic ( key event . vk b ) ; save bm font menu item . set accelerator ( key stroke . get key stroke ( key event . vk b , key event . ctrl mask ) ) ; file menu . add ( save bm font menu item ) ; } file menu . add separator ( ) ; { exit menu item = new j menu item ( "Exit" ) ; exit menu item . set mnemonic ( key event . vk x ) ; file menu . add ( exit menu item ) ; } } } } <SENTENCE_END/>

(Copy Probability: 3.5%)

<SENTENCE_START> { { j menu bar menu bar = new j menu bar ( ) ; set j menu bar ( menu bar ) ; { j menu file menu = new j menu ( ) ; menu bar . add ( file menu ) ; file menu . set text ( "File" ) ; file menu . set mnemonic ( key event . vk f ) ; { open menu item = new j menu item ( "Open Hiero settings file..." ) ; open menu item . set mnemonic ( key event . vk o ) ; open menu item . set accelerator ( key stroke . get key stroke ( key event . vk o , key event . ctrl mask ) ) ; file menu . add ( open menu item ) ; } { save menu item = new j menu item ( "Save Hiero settings file..." ) ; save menu item . set mnemonic ( key event . vk s ) ; save menu item . set accelerator ( key stroke . get key stroke ( key event . vk s , key event . ctrl mask ) ) ; file menu . add ( save menu item ) ; } file menu . add separator ( ) ; { save bm font menu item = new j menu item ( "Save BMFont files (text)..." ) ; save bm font menu item . set mnemonic ( key event . vk b ) ; save bm font menu item . set accelerator ( key stroke . get key stroke ( key event . vk b , key event . ctrl mask ) ) ; file menu . add ( save bm font menu item ) ; } file menu . add separator ( ) ; { exit menu item = new j menu item ( "Exit" ) ; exit menu item . set mnemonic ( key event . vk x ) ; file menu . add ( exit menu item ) ; } } } } <SENTENCE_END/>

menus

<SENTENCE_START> { { j menu bar menu bar = new j menu bar ( ) ; set j menu bar ( menu bar ) ; { j menu file menu = new j menu ( ) ; menu bar . add ( file menu ) ; file menu . set text ( "File" ) ; file menu . set mnemonic ( key event . vk f ) ; { open menu item = new j menu item ( "Open Hiero settings file..." ) ; open menu item . set mnemonic ( key event . vk o ) ; open menu item . set accelerator ( key stroke . get key stroke ( key event . vk o , key event . ctrl mask ) ) ; file menu . add ( open menu item ) ; } { save menu item = new j menu item ( "Save Hiero settings file..." ) ; save menu item . set mnemonic ( key event . vk s ) ; save menu item . set accelerator ( key stroke . get key stroke ( key event . vk s , key event . ctrl mask ) ) ; file menu . add ( save menu item ) ; } file menu . add separator ( ) ; { save bm font menu item = new j menu item ( "Save BMFont files (text)..." ) ; save bm font menu item . set mnemonic ( key event . vk b ) ; save bm font menu item . set accelerator ( key stroke . get key stroke ( key event . vk b , key event . ctrl mask ) ) ; file menu . add ( save bm font menu item ) ; } file menu . add separator ( ) ; { exit menu item = new j menu item ( "Exit" ) ; exit menu item . set mnemonic ( key event . vk x ) ; file menu . add ( exit menu item ) ; } } } } <SENTENCE_END/>

(Copy Probability: 9.8%)

<SENTENCE_START> { { j menu bar menu bar = new j menu bar ( ) ; set j menu bar ( menu bar ) ; { j menu file menu = new j menu ( ) ; menu bar . add ( file menu ) ; file menu . set text ( "File" ) ; file menu . set mnemonic ( key event . vk f ) ; { open menu item = new j menu item ( "Open Hiero settings file..." ) ; open menu item . set mnemonic ( key event . vk o ) ; open menu item . set accelerator ( key stroke . get key stroke ( key event . vk o , key event . ctrl mask ) ) ; file menu . add ( open menu item ) ; } { save menu item = new j menu item ( "Save Hiero settings file..." ) ; save menu item . set mnemonic ( key event . vk s ) ; save menu item . set accelerator ( key stroke . get key stroke ( key event . vk s , key event . ctrl mask ) ) ; file menu . add ( save menu item ) ; } file menu . add separator ( ) ; { save bm font menu item = new j menu item ( "Save BMFont files (text)..." ) ; save bm font menu item . set mnemonic ( key event . vk b ) ; save bm font menu item . set accelerator ( key stroke . get key stroke ( key event . vk b , key event . ctrl mask ) ) ; file menu . add ( save bm font menu item ) ; } file menu . add separator ( ) ; { exit menu item = new j menu item ( "Exit" ) ; exit menu item . set mnemonic ( key event . vk x ) ; file menu . add ( exit menu item ) ; } } } } <SENTENCE_END/>

%END%

<SENTENCE_START> { { j menu bar menu bar = new j menu bar ( ) ; set j menu bar ( menu bar ) ; { j menu file menu = new j menu ( ) ; menu bar . add ( file menu ) ; file menu . set text ( "File" ) ; file menu . set mnemonic ( key event . vk f ) ; { open menu item = new j menu item ( "Open Hiero settings file..." ) ; open menu item . set mnemonic ( key event . vk o ) ; open menu item . set accelerator ( key stroke . get key stroke ( key event . vk o , key event . ctrl mask ) ) ; file menu . add ( open menu item ) ; } { save menu item = new j menu item ( "Save Hiero settings file..." ) ; save menu item . set mnemonic ( key event . vk s ) ; save menu item . set accelerator ( key stroke . get key stroke ( key event . vk s , key event . ctrl mask ) ) ; file menu . add ( save menu item ) ; } file menu . add separator ( ) ; { save bm font menu item = new j menu item ( "Save BMFont files (text)..." ) ; save bm font menu item . set mnemonic ( key event . vk b ) ; save bm font menu item . set accelerator ( key stroke . get key stroke ( key event . vk b , key event . ctrl mask ) ) ; file menu . add ( save bm font menu item ) ; } file menu . add separator ( ) ; { exit menu item = new j menu item ( "Exit" ) ; exit menu item . set mnemonic ( key event . vk x ) ; file menu . add ( exit menu item ) ; } } } } <SENTENCE_END/>

(Copy Probability: 8.3%)

<SENTENCE_START> { { j menu bar menu bar = new j menu bar ( ) ; set j menu bar ( menu bar ) ; { j menu file menu = new j menu ( ) ; menu bar . add ( file menu ) ; file menu . set text ( "File" ) ; file menu . set mnemonic ( key event . vk f ) ; { open menu item = new j menu item ( "Open Hiero settings file..." ) ; open menu item . set mnemonic ( key event . vk o ) ; open menu item . set accelerator ( key stroke . get key stroke ( key event . vk o , key event . ctrl mask ) ) ; file menu . add ( open menu item ) ; } { save menu item = new j menu item ( "Save Hiero settings file..." ) ; save menu item . set mnemonic ( key event . vk s ) ; save menu item . set accelerator ( key stroke . get key stroke ( key event . vk s , key event . ctrl mask ) ) ; file menu . add ( save menu item ) ; } file menu . add separator ( ) ; { save bm font menu item = new j menu item ( "Save BMFont files (text)..." ) ; save bm font menu item . set mnemonic ( key event . vk b ) ; save bm font menu item . set accelerator ( key stroke . get key stroke ( key event . vk b , key event . ctrl mask ) ) ; file menu . add ( save bm font menu item ) ; } file menu . add separator ( ) ; { exit menu item = new j menu item ( "Exit" ) ; exit menu item . set mnemonic ( key event . vk x ) ; file menu . add ( exit menu item ) ; } } } } <SENTENCE_END/>


Original Name get,color,icon

get

<SENTENCE_START> { buffered image image = new buffered image ( 32 , 16 , buffered image . type int rgb ) ; java . awt . graphics g = image . get graphics ( ) ; g . set color ( color ) ; g . fill rect ( 1 , 1 , 30 , 14 ) ; g . set color ( java . awt . color . black ) ; g . draw rect ( 0 , 0 , 31 , 15 ) ; return new image icon ( image ) ; } <SENTENCE_END/>

(Copy Probability: 5.0%)

<SENTENCE_START> { buffered image image = new buffered image ( 32 , 16 , buffered image . type int rgb ) ; java . awt . graphics g = image . get graphics ( ) ; g . set color ( color ) ; g . fill rect ( 1 , 1 , 30 , 14 ) ; g . set color ( java . awt . color . black ) ; g . draw rect ( 0 , 0 , 31 , 15 ) ; return new image icon ( image ) ; } <SENTENCE_END/>

color

<SENTENCE_START> { buffered image image = new buffered image ( 32 , 16 , buffered image . type int rgb ) ; java . awt . graphics g = image . get graphics ( ) ; g . set color ( color ) ; g . fill rect ( 1 , 1 , 30 , 14 ) ; g . set color ( java . awt . color . black ) ; g . draw rect ( 0 , 0 , 31 , 15 ) ; return new image icon ( image ) ; } <SENTENCE_END/>

(Copy Probability: 89.8%)

<SENTENCE_START> { buffered image image = new buffered image ( 32 , 16 , buffered image . type int rgb ) ; java . awt . graphics g = image . get graphics ( ) ; g . set color ( color ) ; g . fill rect ( 1 , 1 , 30 , 14 ) ; g . set color ( java . awt . color . black ) ; g . draw rect ( 0 , 0 , 31 , 15 ) ; return new image icon ( image ) ; } <SENTENCE_END/>

icon

<SENTENCE_START> { buffered image image = new buffered image ( 32 , 16 , buffered image . type int rgb ) ; java . awt . graphics g = image . get graphics ( ) ; g . set color ( color ) ; g . fill rect ( 1 , 1 , 30 , 14 ) ; g . set color ( java . awt . color . black ) ; g . draw rect ( 0 , 0 , 31 , 15 ) ; return new image icon ( image ) ; } <SENTENCE_END/>

(Copy Probability: 19.2%)

<SENTENCE_START> { buffered image image = new buffered image ( 32 , 16 , buffered image . type int rgb ) ; java . awt . graphics g = image . get graphics ( ) ; g . set color ( color ) ; g . fill rect ( 1 , 1 , 30 , 14 ) ; g . set color ( java . awt . color . black ) ; g . draw rect ( 0 , 0 , 31 , 15 ) ; return new image icon ( image ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { buffered image image = new buffered image ( 32 , 16 , buffered image . type int rgb ) ; java . awt . graphics g = image . get graphics ( ) ; g . set color ( color ) ; g . fill rect ( 1 , 1 , 30 , 14 ) ; g . set color ( java . awt . color . black ) ; g . draw rect ( 0 , 0 , 31 , 15 ) ; return new image icon ( image ) ; } <SENTENCE_END/>

(Copy Probability: 2.7%)

<SENTENCE_START> { buffered image image = new buffered image ( 32 , 16 , buffered image . type int rgb ) ; java . awt . graphics g = image . get graphics ( ) ; g . set color ( color ) ; g . fill rect ( 1 , 1 , 30 , 14 ) ; g . set color ( java . awt . color . black ) ; g . draw rect ( 0 , 0 , 31 , 15 ) ; return new image icon ( image ) ; } <SENTENCE_END/>


Original Name remove,layout,component

remove

<SENTENCE_START> { } <SENTENCE_END/>

(Copy Probability: 0.1%)

<SENTENCE_START> { } <SENTENCE_END/>

layout

<SENTENCE_START> { } <SENTENCE_END/>

(Copy Probability: 0.0%)

<SENTENCE_START> { } <SENTENCE_END/>

component

<SENTENCE_START> { } <SENTENCE_END/>

(Copy Probability: 0.1%)

<SENTENCE_START> { } <SENTENCE_END/>

%END%

<SENTENCE_START> { } <SENTENCE_END/>

(Copy Probability: 0.1%)

<SENTENCE_START> { } <SENTENCE_END/>


Original Name preferred,layout,size

preferred

<SENTENCE_START> { return null ; } <SENTENCE_END/>

(Copy Probability: 0.2%)

<SENTENCE_START> { return null ; } <SENTENCE_END/>

layout

<SENTENCE_START> { return null ; } <SENTENCE_END/>

(Copy Probability: 2.8%)

<SENTENCE_START> { return null ; } <SENTENCE_END/>

size

<SENTENCE_START> { return null ; } <SENTENCE_END/>

(Copy Probability: 0.3%)

<SENTENCE_START> { return null ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return null ; } <SENTENCE_END/>

(Copy Probability: 0.2%)

<SENTENCE_START> { return null ; } <SENTENCE_END/>


Original Name minimum,layout,size

minimum

<SENTENCE_START> { return null ; } <SENTENCE_END/>

(Copy Probability: 0.2%)

<SENTENCE_START> { return null ; } <SENTENCE_END/>

layout

<SENTENCE_START> { return null ; } <SENTENCE_END/>

(Copy Probability: 2.8%)

<SENTENCE_START> { return null ; } <SENTENCE_END/>

size

<SENTENCE_START> { return null ; } <SENTENCE_END/>

(Copy Probability: 0.3%)

<SENTENCE_START> { return null ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return null ; } <SENTENCE_END/>

(Copy Probability: 0.2%)

<SENTENCE_START> { return null ; } <SENTENCE_END/>


Original Name layout,container

layout

<SENTENCE_START> { dimension button size = up button . get preferred size ( ) ; int up button x = get width ( ) - button size . width * 3 - 6 - 5 ; up button . set bounds ( up button x , 0 , button size . width , button size . height ) ; down button . set bounds ( get width ( ) - button size . width * 2 - 3 - 5 , 0 , button size . width , button size . height ) ; delete button . set bounds ( get width ( ) - button size . width - 5 , 0 , button size . width , button size . height ) ; dimension label size = name label . get preferred size ( ) ; name label . set bounds ( 5 , button size . height / 2 - label size . height / 2 , get width ( ) - 5 , label size . height ) ; } <SENTENCE_END/>

(Copy Probability: 2.4%)

<SENTENCE_START> { dimension button size = up button . get preferred size ( ) ; int up button x = get width ( ) - button size . width * 3 - 6 - 5 ; up button . set bounds ( up button x , 0 , button size . width , button size . height ) ; down button . set bounds ( get width ( ) - button size . width * 2 - 3 - 5 , 0 , button size . width , button size . height ) ; delete button . set bounds ( get width ( ) - button size . width - 5 , 0 , button size . width , button size . height ) ; dimension label size = name label . get preferred size ( ) ; name label . set bounds ( 5 , button size . height / 2 - label size . height / 2 , get width ( ) - 5 , label size . height ) ; } <SENTENCE_END/>

container

<SENTENCE_START> { dimension button size = up button . get preferred size ( ) ; int up button x = get width ( ) - button size . width * 3 - 6 - 5 ; up button . set bounds ( up button x , 0 , button size . width , button size . height ) ; down button . set bounds ( get width ( ) - button size . width * 2 - 3 - 5 , 0 , button size . width , button size . height ) ; delete button . set bounds ( get width ( ) - button size . width - 5 , 0 , button size . width , button size . height ) ; dimension label size = name label . get preferred size ( ) ; name label . set bounds ( 5 , button size . height / 2 - label size . height / 2 , get width ( ) - 5 , label size . height ) ; } <SENTENCE_END/>

(Copy Probability: 20.5%)

<SENTENCE_START> { dimension button size = up button . get preferred size ( ) ; int up button x = get width ( ) - button size . width * 3 - 6 - 5 ; up button . set bounds ( up button x , 0 , button size . width , button size . height ) ; down button . set bounds ( get width ( ) - button size . width * 2 - 3 - 5 , 0 , button size . width , button size . height ) ; delete button . set bounds ( get width ( ) - button size . width - 5 , 0 , button size . width , button size . height ) ; dimension label size = name label . get preferred size ( ) ; name label . set bounds ( 5 , button size . height / 2 - label size . height / 2 , get width ( ) - 5 , label size . height ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { dimension button size = up button . get preferred size ( ) ; int up button x = get width ( ) - button size . width * 3 - 6 - 5 ; up button . set bounds ( up button x , 0 , button size . width , button size . height ) ; down button . set bounds ( get width ( ) - button size . width * 2 - 3 - 5 , 0 , button size . width , button size . height ) ; delete button . set bounds ( get width ( ) - button size . width - 5 , 0 , button size . width , button size . height ) ; dimension label size = name label . get preferred size ( ) ; name label . set bounds ( 5 , button size . height / 2 - label size . height / 2 , get width ( ) - 5 , label size . height ) ; } <SENTENCE_END/>

(Copy Probability: 17.3%)

<SENTENCE_START> { dimension button size = up button . get preferred size ( ) ; int up button x = get width ( ) - button size . width * 3 - 6 - 5 ; up button . set bounds ( up button x , 0 , button size . width , button size . height ) ; down button . set bounds ( get width ( ) - button size . width * 2 - 3 - 5 , 0 , button size . width , button size . height ) ; delete button . set bounds ( get width ( ) - button size . width - 5 , 0 , button size . width , button size . height ) ; dimension label size = name label . get preferred size ( ) ; name label . set bounds ( 5 , button size . height / 2 - label size . height / 2 , get width ( ) - 5 , label size . height ) ; } <SENTENCE_END/>


Original Name add,layout,component

add

<SENTENCE_START> { } <SENTENCE_END/>

(Copy Probability: 0.1%)

<SENTENCE_START> { } <SENTENCE_END/>

layout

<SENTENCE_START> { } <SENTENCE_END/>

(Copy Probability: 0.0%)

<SENTENCE_START> { } <SENTENCE_END/>

component

<SENTENCE_START> { } <SENTENCE_END/>

(Copy Probability: 0.1%)

<SENTENCE_START> { } <SENTENCE_END/>

%END%

<SENTENCE_START> { } <SENTENCE_END/>

(Copy Probability: 0.1%)

<SENTENCE_START> { } <SENTENCE_END/>


Original Name action,performed

action

<SENTENCE_START> { int current index = effect panels . index of ( effect panel . this ) ; if ( current index > 0 ) { move effect ( current index - 1 ) ; update font ( ) ; update up down buttons ( ) ; } } <SENTENCE_END/>

(Copy Probability: 2.2%)

<SENTENCE_START> { int current index = effect panels . index of ( effect panel . this ) ; if ( current index > 0 ) { move effect ( current index - 1 ) ; update font ( ) ; update up down buttons ( ) ; } } <SENTENCE_END/>

performed

<SENTENCE_START> { int current index = effect panels . index of ( effect panel . this ) ; if ( current index > 0 ) { move effect ( current index - 1 ) ; update font ( ) ; update up down buttons ( ) ; } } <SENTENCE_END/>

(Copy Probability: 6.8%)

<SENTENCE_START> { int current index = effect panels . index of ( effect panel . this ) ; if ( current index > 0 ) { move effect ( current index - 1 ) ; update font ( ) ; update up down buttons ( ) ; } } <SENTENCE_END/>

%END%

<SENTENCE_START> { int current index = effect panels . index of ( effect panel . this ) ; if ( current index > 0 ) { move effect ( current index - 1 ) ; update font ( ) ; update up down buttons ( ) ; } } <SENTENCE_END/>

(Copy Probability: 4.2%)

<SENTENCE_START> { int current index = effect panels . index of ( effect panel . this ) ; if ( current index > 0 ) { move effect ( current index - 1 ) ; update font ( ) ; update up down buttons ( ) ; } } <SENTENCE_END/>


Original Name action,performed

action

<SENTENCE_START> { int current index = effect panels . index of ( effect panel . this ) ; if ( current index < effect panels . size ( ) - 1 ) { move effect ( current index + 1 ) ; update font ( ) ; update up down buttons ( ) ; } } <SENTENCE_END/>

(Copy Probability: 2.5%)

<SENTENCE_START> { int current index = effect panels . index of ( effect panel . this ) ; if ( current index < effect panels . size ( ) - 1 ) { move effect ( current index + 1 ) ; update font ( ) ; update up down buttons ( ) ; } } <SENTENCE_END/>

performed

<SENTENCE_START> { int current index = effect panels . index of ( effect panel . this ) ; if ( current index < effect panels . size ( ) - 1 ) { move effect ( current index + 1 ) ; update font ( ) ; update up down buttons ( ) ; } } <SENTENCE_END/>

(Copy Probability: 6.0%)

<SENTENCE_START> { int current index = effect panels . index of ( effect panel . this ) ; if ( current index < effect panels . size ( ) - 1 ) { move effect ( current index + 1 ) ; update font ( ) ; update up down buttons ( ) ; } } <SENTENCE_END/>

%END%

<SENTENCE_START> { int current index = effect panels . index of ( effect panel . this ) ; if ( current index < effect panels . size ( ) - 1 ) { move effect ( current index + 1 ) ; update font ( ) ; update up down buttons ( ) ; } } <SENTENCE_END/>

(Copy Probability: 4.3%)

<SENTENCE_START> { int current index = effect panels . index of ( effect panel . this ) ; if ( current index < effect panels . size ( ) - 1 ) { move effect ( current index + 1 ) ; update font ( ) ; update up down buttons ( ) ; } } <SENTENCE_END/>


Original Name action,performed

action

<SENTENCE_START> { remove ( ) ; update font ( ) ; update up down buttons ( ) ; } <SENTENCE_END/>

(Copy Probability: 1.3%)

<SENTENCE_START> { remove ( ) ; update font ( ) ; update up down buttons ( ) ; } <SENTENCE_END/>

performed

<SENTENCE_START> { remove ( ) ; update font ( ) ; update up down buttons ( ) ; } <SENTENCE_END/>

(Copy Probability: 4.3%)

<SENTENCE_START> { remove ( ) ; update font ( ) ; update up down buttons ( ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { remove ( ) ; update font ( ) ; update up down buttons ( ) ; } <SENTENCE_END/>

(Copy Probability: 2.2%)

<SENTENCE_START> { remove ( ) ; update font ( ) ; update up down buttons ( ) ; } <SENTENCE_END/>


Original Name remove

remove

<SENTENCE_START> { effect panels . %SELF% ( this ) ; applied effects panel . %SELF% ( effect panel . this ) ; get content pane ( ) . validate ( ) ; effects list . get list selection listeners ( ) [ 0 ] . value changed ( null ) ; } <SENTENCE_END/>

(Copy Probability: 2.3%)

<SENTENCE_START> { effect panels . %SELF% ( this ) ; applied effects panel . %SELF% ( effect panel . this ) ; get content pane ( ) . validate ( ) ; effects list . get list selection listeners ( ) [ 0 ] . value changed ( null ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { effect panels . %SELF% ( this ) ; applied effects panel . %SELF% ( effect panel . this ) ; get content pane ( ) . validate ( ) ; effects list . get list selection listeners ( ) [ 0 ] . value changed ( null ) ; } <SENTENCE_END/>

(Copy Probability: 8.0%)

<SENTENCE_START> { effect panels . %SELF% ( this ) ; applied effects panel . %SELF% ( effect panel . this ) ; get content pane ( ) . validate ( ) ; effects list . get list selection listeners ( ) [ 0 ] . value changed ( null ) ; } <SENTENCE_END/>


Original Name update,values

update

<SENTENCE_START> { prefs . put ( "foreground" , effect util . to string ( color effect . get color ( ) ) ) ; values panel . remove all ( ) ; values = effect . get values ( ) ; for ( iterator iter = values . iterator ( ) ; iter . has next ( ) ; ) add value ( ( value ) iter . next ( ) ) ; } <SENTENCE_END/>

(Copy Probability: 2.8%)

<SENTENCE_START> { prefs . put ( "foreground" , effect util . to string ( color effect . get color ( ) ) ) ; values panel . remove all ( ) ; values = effect . get values ( ) ; for ( iterator iter = values . iterator ( ) ; iter . has next ( ) ; ) add value ( ( value ) iter . next ( ) ) ; } <SENTENCE_END/>

values

<SENTENCE_START> { prefs . put ( "foreground" , effect util . to string ( color effect . get color ( ) ) ) ; values panel . remove all ( ) ; values = effect . get values ( ) ; for ( iterator iter = values . iterator ( ) ; iter . has next ( ) ; ) add value ( ( value ) iter . next ( ) ) ; } <SENTENCE_END/>

(Copy Probability: 4.8%)

<SENTENCE_START> { prefs . put ( "foreground" , effect util . to string ( color effect . get color ( ) ) ) ; values panel . remove all ( ) ; values = effect . get values ( ) ; for ( iterator iter = values . iterator ( ) ; iter . has next ( ) ; ) add value ( ( value ) iter . next ( ) ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { prefs . put ( "foreground" , effect util . to string ( color effect . get color ( ) ) ) ; values panel . remove all ( ) ; values = effect . get values ( ) ; for ( iterator iter = values . iterator ( ) ; iter . has next ( ) ; ) add value ( ( value ) iter . next ( ) ) ; } <SENTENCE_END/>

(Copy Probability: 3.6%)

<SENTENCE_START> { prefs . put ( "foreground" , effect util . to string ( color effect . get color ( ) ) ) ; values panel . remove all ( ) ; values = effect . get values ( ) ; for ( iterator iter = values . iterator ( ) ; iter . has next ( ) ; ) add value ( ( value ) iter . next ( ) ) ; } <SENTENCE_END/>


Original Name update,up,down,buttons

update

<SENTENCE_START> { for ( int index = 0 ; index < effect panels . size ( ) ; index ++ ) { effect panel effect panel = effect panels . get ( index ) ; if ( index == 0 ) { effect panel . up button . set enabled ( false ) ; } else { effect panel . up button . set enabled ( true ) ; } if ( index == effect panels . size ( ) - 1 ) { effect panel . down button . set enabled ( false ) ; } else { effect panel . down button . set enabled ( true ) ; } } } <SENTENCE_END/>

(Copy Probability: 3.5%)

<SENTENCE_START> { for ( int index = 0 ; index < effect panels . size ( ) ; index ++ ) { effect panel effect panel = effect panels . get ( index ) ; if ( index == 0 ) { effect panel . up button . set enabled ( false ) ; } else { effect panel . up button . set enabled ( true ) ; } if ( index == effect panels . size ( ) - 1 ) { effect panel . down button . set enabled ( false ) ; } else { effect panel . down button . set enabled ( true ) ; } } } <SENTENCE_END/>

up

<SENTENCE_START> { for ( int index = 0 ; index < effect panels . size ( ) ; index ++ ) { effect panel effect panel = effect panels . get ( index ) ; if ( index == 0 ) { effect panel . up button . set enabled ( false ) ; } else { effect panel . up button . set enabled ( true ) ; } if ( index == effect panels . size ( ) - 1 ) { effect panel . down button . set enabled ( false ) ; } else { effect panel . down button . set enabled ( true ) ; } } } <SENTENCE_END/>

(Copy Probability: 40.9%)

<SENTENCE_START> { for ( int index = 0 ; index < effect panels . size ( ) ; index ++ ) { effect panel effect panel = effect panels . get ( index ) ; if ( index == 0 ) { effect panel . up button . set enabled ( false ) ; } else { effect panel . up button . set enabled ( true ) ; } if ( index == effect panels . size ( ) - 1 ) { effect panel . down button . set enabled ( false ) ; } else { effect panel . down button . set enabled ( true ) ; } } } <SENTENCE_END/>

down

<SENTENCE_START> { for ( int index = 0 ; index < effect panels . size ( ) ; index ++ ) { effect panel effect panel = effect panels . get ( index ) ; if ( index == 0 ) { effect panel . up button . set enabled ( false ) ; } else { effect panel . up button . set enabled ( true ) ; } if ( index == effect panels . size ( ) - 1 ) { effect panel . down button . set enabled ( false ) ; } else { effect panel . down button . set enabled ( true ) ; } } } <SENTENCE_END/>

(Copy Probability: 24.9%)

<SENTENCE_START> { for ( int index = 0 ; index < effect panels . size ( ) ; index ++ ) { effect panel effect panel = effect panels . get ( index ) ; if ( index == 0 ) { effect panel . up button . set enabled ( false ) ; } else { effect panel . up button . set enabled ( true ) ; } if ( index == effect panels . size ( ) - 1 ) { effect panel . down button . set enabled ( false ) ; } else { effect panel . down button . set enabled ( true ) ; } } } <SENTENCE_END/>

buttons

<SENTENCE_START> { for ( int index = 0 ; index < effect panels . size ( ) ; index ++ ) { effect panel effect panel = effect panels . get ( index ) ; if ( index == 0 ) { effect panel . up button . set enabled ( false ) ; } else { effect panel . up button . set enabled ( true ) ; } if ( index == effect panels . size ( ) - 1 ) { effect panel . down button . set enabled ( false ) ; } else { effect panel . down button . set enabled ( true ) ; } } } <SENTENCE_END/>

(Copy Probability: 5.4%)

<SENTENCE_START> { for ( int index = 0 ; index < effect panels . size ( ) ; index ++ ) { effect panel effect panel = effect panels . get ( index ) ; if ( index == 0 ) { effect panel . up button . set enabled ( false ) ; } else { effect panel . up button . set enabled ( true ) ; } if ( index == effect panels . size ( ) - 1 ) { effect panel . down button . set enabled ( false ) ; } else { effect panel . down button . set enabled ( true ) ; } } } <SENTENCE_END/>

%END%

<SENTENCE_START> { for ( int index = 0 ; index < effect panels . size ( ) ; index ++ ) { effect panel effect panel = effect panels . get ( index ) ; if ( index == 0 ) { effect panel . up button . set enabled ( false ) ; } else { effect panel . up button . set enabled ( true ) ; } if ( index == effect panels . size ( ) - 1 ) { effect panel . down button . set enabled ( false ) ; } else { effect panel . down button . set enabled ( true ) ; } } } <SENTENCE_END/>

(Copy Probability: 5.5%)

<SENTENCE_START> { for ( int index = 0 ; index < effect panels . size ( ) ; index ++ ) { effect panel effect panel = effect panels . get ( index ) ; if ( index == 0 ) { effect panel . up button . set enabled ( false ) ; } else { effect panel . up button . set enabled ( true ) ; } if ( index == effect panels . size ( ) - 1 ) { effect panel . down button . set enabled ( false ) ; } else { effect panel . down button . set enabled ( true ) ; } } } <SENTENCE_END/>


Original Name move,effect

move

<SENTENCE_START> { applied effects panel . remove ( this ) ; effect panels . remove ( this ) ; applied effects panel . add ( this , constrains , new index ) ; effect panels . add ( new index , this ) ; } <SENTENCE_END/>

(Copy Probability: 5.4%)

<SENTENCE_START> { applied effects panel . remove ( this ) ; effect panels . remove ( this ) ; applied effects panel . add ( this , constrains , new index ) ; effect panels . add ( new index , this ) ; } <SENTENCE_END/>

effect

<SENTENCE_START> { applied effects panel . remove ( this ) ; effect panels . remove ( this ) ; applied effects panel . add ( this , constrains , new index ) ; effect panels . add ( new index , this ) ; } <SENTENCE_END/>

(Copy Probability: 38.4%)

<SENTENCE_START> { applied effects panel . remove ( this ) ; effect panels . remove ( this ) ; applied effects panel . add ( this , constrains , new index ) ; effect panels . add ( new index , this ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { applied effects panel . remove ( this ) ; effect panels . remove ( this ) ; applied effects panel . add ( this , constrains , new index ) ; effect panels . add ( new index , this ) ; } <SENTENCE_END/>

(Copy Probability: 5.6%)

<SENTENCE_START> { applied effects panel . remove ( this ) ; effect panels . remove ( this ) ; applied effects panel . add ( this , constrains , new index ) ; effect panels . add ( new index , this ) ; } <SENTENCE_END/>


Original Name add,value

add

<SENTENCE_START> { j label value name label = new j label ( value . get name ( ) + ":" ) ; values panel . add ( value name label , new grid bag constraints ( 0 , - 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 0 , 5 ) , 0 , 0 ) ) ; final j label value value label = new j label ( ) ; values panel . add ( value value label , new grid bag constraints ( 1 , - 1 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . both , new insets ( 0 , 0 , 0 , 5 ) , 0 , 0 ) ) ; value value label . set opaque ( true ) ; if ( value . get object ( ) instanceof java . awt . color ) value value label . set icon ( get color icon ( ( java . awt . color ) value . get object ( ) ) ) ; else value value label . set text ( value . to string ( ) ) ; value value label . add mouse listener ( new mouse adapter ( ) { public void mouse entered ( mouse event evt ) { value value label . set background ( selected color ) ; } public void mouse exited ( mouse event evt ) { value value label . set background ( null ) ; } public void mouse clicked ( mouse event evt ) { object old object = value . get object ( ) ; value . show dialog ( ) ; if ( ! value . get object ( ) . equals ( old object ) ) { effect . set values ( values ) ; update values ( ) ; update font ( ) ; } } } ) ; } <SENTENCE_END/>

(Copy Probability: 4.4%)

<SENTENCE_START> { j label value name label = new j label ( value . get name ( ) + ":" ) ; values panel . add ( value name label , new grid bag constraints ( 0 , - 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 0 , 5 ) , 0 , 0 ) ) ; final j label value value label = new j label ( ) ; values panel . add ( value value label , new grid bag constraints ( 1 , - 1 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . both , new insets ( 0 , 0 , 0 , 5 ) , 0 , 0 ) ) ; value value label . set opaque ( true ) ; if ( value . get object ( ) instanceof java . awt . color ) value value label . set icon ( get color icon ( ( java . awt . color ) value . get object ( ) ) ) ; else value value label . set text ( value . to string ( ) ) ; value value label . add mouse listener ( new mouse adapter ( ) { public void mouse entered ( mouse event evt ) { value value label . set background ( selected color ) ; } public void mouse exited ( mouse event evt ) { value value label . set background ( null ) ; } public void mouse clicked ( mouse event evt ) { object old object = value . get object ( ) ; value . show dialog ( ) ; if ( ! value . get object ( ) . equals ( old object ) ) { effect . set values ( values ) ; update values ( ) ; update font ( ) ; } } } ) ; } <SENTENCE_END/>

value

<SENTENCE_START> { j label value name label = new j label ( value . get name ( ) + ":" ) ; values panel . add ( value name label , new grid bag constraints ( 0 , - 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 0 , 5 ) , 0 , 0 ) ) ; final j label value value label = new j label ( ) ; values panel . add ( value value label , new grid bag constraints ( 1 , - 1 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . both , new insets ( 0 , 0 , 0 , 5 ) , 0 , 0 ) ) ; value value label . set opaque ( true ) ; if ( value . get object ( ) instanceof java . awt . color ) value value label . set icon ( get color icon ( ( java . awt . color ) value . get object ( ) ) ) ; else value value label . set text ( value . to string ( ) ) ; value value label . add mouse listener ( new mouse adapter ( ) { public void mouse entered ( mouse event evt ) { value value label . set background ( selected color ) ; } public void mouse exited ( mouse event evt ) { value value label . set background ( null ) ; } public void mouse clicked ( mouse event evt ) { object old object = value . get object ( ) ; value . show dialog ( ) ; if ( ! value . get object ( ) . equals ( old object ) ) { effect . set values ( values ) ; update values ( ) ; update font ( ) ; } } } ) ; } <SENTENCE_END/>

(Copy Probability: 7.3%)

<SENTENCE_START> { j label value name label = new j label ( value . get name ( ) + ":" ) ; values panel . add ( value name label , new grid bag constraints ( 0 , - 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 0 , 5 ) , 0 , 0 ) ) ; final j label value value label = new j label ( ) ; values panel . add ( value value label , new grid bag constraints ( 1 , - 1 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . both , new insets ( 0 , 0 , 0 , 5 ) , 0 , 0 ) ) ; value value label . set opaque ( true ) ; if ( value . get object ( ) instanceof java . awt . color ) value value label . set icon ( get color icon ( ( java . awt . color ) value . get object ( ) ) ) ; else value value label . set text ( value . to string ( ) ) ; value value label . add mouse listener ( new mouse adapter ( ) { public void mouse entered ( mouse event evt ) { value value label . set background ( selected color ) ; } public void mouse exited ( mouse event evt ) { value value label . set background ( null ) ; } public void mouse clicked ( mouse event evt ) { object old object = value . get object ( ) ; value . show dialog ( ) ; if ( ! value . get object ( ) . equals ( old object ) ) { effect . set values ( values ) ; update values ( ) ; update font ( ) ; } } } ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { j label value name label = new j label ( value . get name ( ) + ":" ) ; values panel . add ( value name label , new grid bag constraints ( 0 , - 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 0 , 5 ) , 0 , 0 ) ) ; final j label value value label = new j label ( ) ; values panel . add ( value value label , new grid bag constraints ( 1 , - 1 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . both , new insets ( 0 , 0 , 0 , 5 ) , 0 , 0 ) ) ; value value label . set opaque ( true ) ; if ( value . get object ( ) instanceof java . awt . color ) value value label . set icon ( get color icon ( ( java . awt . color ) value . get object ( ) ) ) ; else value value label . set text ( value . to string ( ) ) ; value value label . add mouse listener ( new mouse adapter ( ) { public void mouse entered ( mouse event evt ) { value value label . set background ( selected color ) ; } public void mouse exited ( mouse event evt ) { value value label . set background ( null ) ; } public void mouse clicked ( mouse event evt ) { object old object = value . get object ( ) ; value . show dialog ( ) ; if ( ! value . get object ( ) . equals ( old object ) ) { effect . set values ( values ) ; update values ( ) ; update font ( ) ; } } } ) ; } <SENTENCE_END/>

(Copy Probability: 4.2%)

<SENTENCE_START> { j label value name label = new j label ( value . get name ( ) + ":" ) ; values panel . add ( value name label , new grid bag constraints ( 0 , - 1 , 1 , 1 , 0.0 , 0.0 , grid bag constraints . east , grid bag constraints . none , new insets ( 0 , 0 , 0 , 5 ) , 0 , 0 ) ) ; final j label value value label = new j label ( ) ; values panel . add ( value value label , new grid bag constraints ( 1 , - 1 , 1 , 1 , 1.0 , 0.0 , grid bag constraints . west , grid bag constraints . both , new insets ( 0 , 0 , 0 , 5 ) , 0 , 0 ) ) ; value value label . set opaque ( true ) ; if ( value . get object ( ) instanceof java . awt . color ) value value label . set icon ( get color icon ( ( java . awt . color ) value . get object ( ) ) ) ; else value value label . set text ( value . to string ( ) ) ; value value label . add mouse listener ( new mouse adapter ( ) { public void mouse entered ( mouse event evt ) { value value label . set background ( selected color ) ; } public void mouse exited ( mouse event evt ) { value value label . set background ( null ) ; } public void mouse clicked ( mouse event evt ) { object old object = value . get object ( ) ; value . show dialog ( ) ; if ( ! value . get object ( ) . equals ( old object ) ) { effect . set values ( values ) ; update values ( ) ; update font ( ) ; } } } ) ; } <SENTENCE_END/>


Original Name mouse,entered

mouse

<SENTENCE_START> { value value label . set background ( selected color ) ; } <SENTENCE_END/>

(Copy Probability: 0.5%)

<SENTENCE_START> { value value label . set background ( selected color ) ; } <SENTENCE_END/>

entered

<SENTENCE_START> { value value label . set background ( selected color ) ; } <SENTENCE_END/>

(Copy Probability: 8.9%)

<SENTENCE_START> { value value label . set background ( selected color ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { value value label . set background ( selected color ) ; } <SENTENCE_END/>

(Copy Probability: 1.1%)

<SENTENCE_START> { value value label . set background ( selected color ) ; } <SENTENCE_END/>


Original Name mouse,exited

mouse

<SENTENCE_START> { value value label . set background ( null ) ; } <SENTENCE_END/>

(Copy Probability: 0.7%)

<SENTENCE_START> { value value label . set background ( null ) ; } <SENTENCE_END/>

exited

<SENTENCE_START> { value value label . set background ( null ) ; } <SENTENCE_END/>

(Copy Probability: 38.6%)

<SENTENCE_START> { value value label . set background ( null ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { value value label . set background ( null ) ; } <SENTENCE_END/>

(Copy Probability: 1.5%)

<SENTENCE_START> { value value label . set background ( null ) ; } <SENTENCE_END/>


Original Name mouse,clicked

mouse

<SENTENCE_START> { object old object = value . get object ( ) ; value . show dialog ( ) ; if ( ! value . get object ( ) . equals ( old object ) ) { effect . set values ( values ) ; update values ( ) ; update font ( ) ; } } <SENTENCE_END/>

(Copy Probability: 2.6%)

<SENTENCE_START> { object old object = value . get object ( ) ; value . show dialog ( ) ; if ( ! value . get object ( ) . equals ( old object ) ) { effect . set values ( values ) ; update values ( ) ; update font ( ) ; } } <SENTENCE_END/>

clicked

<SENTENCE_START> { object old object = value . get object ( ) ; value . show dialog ( ) ; if ( ! value . get object ( ) . equals ( old object ) ) { effect . set values ( values ) ; update values ( ) ; update font ( ) ; } } <SENTENCE_END/>

(Copy Probability: 10.7%)

<SENTENCE_START> { object old object = value . get object ( ) ; value . show dialog ( ) ; if ( ! value . get object ( ) . equals ( old object ) ) { effect . set values ( values ) ; update values ( ) ; update font ( ) ; } } <SENTENCE_END/>

%END%

<SENTENCE_START> { object old object = value . get object ( ) ; value . show dialog ( ) ; if ( ! value . get object ( ) . equals ( old object ) ) { effect . set values ( values ) ; update values ( ) ; update font ( ) ; } } <SENTENCE_END/>

(Copy Probability: 3.2%)

<SENTENCE_START> { object old object = value . get object ( ) ; value . show dialog ( ) ; if ( ! value . get object ( ) . equals ( old object ) ) { effect . set values ( values ) ; update values ( ) ; update font ( ) ; } } <SENTENCE_END/>


Original Name get,effect

get

<SENTENCE_START> { return effect ; } <SENTENCE_END/>

(Copy Probability: 0.4%)

<SENTENCE_START> { return effect ; } <SENTENCE_END/>

effect

<SENTENCE_START> { return effect ; } <SENTENCE_END/>

(Copy Probability: 64.7%)

<SENTENCE_START> { return effect ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return effect ; } <SENTENCE_END/>

(Copy Probability: 2.6%)

<SENTENCE_START> { return effect ; } <SENTENCE_END/>


Original Name equals

equals

<SENTENCE_START> { if ( this == obj ) return true ; if ( obj == null ) return false ; if ( get class ( ) != obj . get class ( ) ) return false ; final effect panel other = ( effect panel ) obj ; if ( effect == null ) { if ( other . effect != null ) return false ; } else if ( ! effect . %SELF% ( other . effect ) ) return false ; return true ; } <SENTENCE_END/>

(Copy Probability: 2.9%)

<SENTENCE_START> { if ( this == obj ) return true ; if ( obj == null ) return false ; if ( get class ( ) != obj . get class ( ) ) return false ; final effect panel other = ( effect panel ) obj ; if ( effect == null ) { if ( other . effect != null ) return false ; } else if ( ! effect . %SELF% ( other . effect ) ) return false ; return true ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { if ( this == obj ) return true ; if ( obj == null ) return false ; if ( get class ( ) != obj . get class ( ) ) return false ; final effect panel other = ( effect panel ) obj ; if ( effect == null ) { if ( other . effect != null ) return false ; } else if ( ! effect . %SELF% ( other . effect ) ) return false ; return true ; } <SENTENCE_END/>

(Copy Probability: 36.5%)

<SENTENCE_START> { if ( this == obj ) return true ; if ( obj == null ) return false ; if ( get class ( ) != obj . get class ( ) ) return false ; final effect panel other = ( effect panel ) obj ; if ( effect == null ) { if ( other . effect != null ) return false ; } else if ( ! effect . %SELF% ( other . effect ) ) return false ; return true ; } <SENTENCE_END/>


Original Name close

close

<SENTENCE_START> { final long end time = system . current time millis ( ) ; new thread ( new runnable ( ) { public void run ( ) { if ( end time - start time < min millis ) { add mouse listener ( new mouse adapter ( ) { public void mouse pressed ( mouse event evt ) { dispose ( ) ; } } ) ; try { thread . sleep ( min millis - ( end time - start time ) ) ; } catch ( interrupted exception ignored ) { } } event queue . invoke later ( new runnable ( ) { public void run ( ) { dispose ( ) ; } } ) ; } } , "Splash" ) . start ( ) ; } <SENTENCE_END/>

(Copy Probability: 2.5%)

<SENTENCE_START> { final long end time = system . current time millis ( ) ; new thread ( new runnable ( ) { public void run ( ) { if ( end time - start time < min millis ) { add mouse listener ( new mouse adapter ( ) { public void mouse pressed ( mouse event evt ) { dispose ( ) ; } } ) ; try { thread . sleep ( min millis - ( end time - start time ) ) ; } catch ( interrupted exception ignored ) { } } event queue . invoke later ( new runnable ( ) { public void run ( ) { dispose ( ) ; } } ) ; } } , "Splash" ) . start ( ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { final long end time = system . current time millis ( ) ; new thread ( new runnable ( ) { public void run ( ) { if ( end time - start time < min millis ) { add mouse listener ( new mouse adapter ( ) { public void mouse pressed ( mouse event evt ) { dispose ( ) ; } } ) ; try { thread . sleep ( min millis - ( end time - start time ) ) ; } catch ( interrupted exception ignored ) { } } event queue . invoke later ( new runnable ( ) { public void run ( ) { dispose ( ) ; } } ) ; } } , "Splash" ) . start ( ) ; } <SENTENCE_END/>

(Copy Probability: 4.9%)

<SENTENCE_START> { final long end time = system . current time millis ( ) ; new thread ( new runnable ( ) { public void run ( ) { if ( end time - start time < min millis ) { add mouse listener ( new mouse adapter ( ) { public void mouse pressed ( mouse event evt ) { dispose ( ) ; } } ) ; try { thread . sleep ( min millis - ( end time - start time ) ) ; } catch ( interrupted exception ignored ) { } } event queue . invoke later ( new runnable ( ) { public void run ( ) { dispose ( ) ; } } ) ; } } , "Splash" ) . start ( ) ; } <SENTENCE_END/>


Original Name run

run

<SENTENCE_START> { if ( end time - start time < min millis ) { add mouse listener ( new mouse adapter ( ) { public void mouse pressed ( mouse event evt ) { dispose ( ) ; } } ) ; try { thread . sleep ( min millis - ( end time - start time ) ) ; } catch ( interrupted exception ignored ) { } } event queue . invoke later ( new runnable ( ) { public void %SELF% ( ) { dispose ( ) ; } } ) ; } <SENTENCE_END/>

(Copy Probability: 2.4%)

<SENTENCE_START> { if ( end time - start time < min millis ) { add mouse listener ( new mouse adapter ( ) { public void mouse pressed ( mouse event evt ) { dispose ( ) ; } } ) ; try { thread . sleep ( min millis - ( end time - start time ) ) ; } catch ( interrupted exception ignored ) { } } event queue . invoke later ( new runnable ( ) { public void %SELF% ( ) { dispose ( ) ; } } ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { if ( end time - start time < min millis ) { add mouse listener ( new mouse adapter ( ) { public void mouse pressed ( mouse event evt ) { dispose ( ) ; } } ) ; try { thread . sleep ( min millis - ( end time - start time ) ) ; } catch ( interrupted exception ignored ) { } } event queue . invoke later ( new runnable ( ) { public void %SELF% ( ) { dispose ( ) ; } } ) ; } <SENTENCE_END/>

(Copy Probability: 5.0%)

<SENTENCE_START> { if ( end time - start time < min millis ) { add mouse listener ( new mouse adapter ( ) { public void mouse pressed ( mouse event evt ) { dispose ( ) ; } } ) ; try { thread . sleep ( min millis - ( end time - start time ) ) ; } catch ( interrupted exception ignored ) { } } event queue . invoke later ( new runnable ( ) { public void %SELF% ( ) { dispose ( ) ; } } ) ; } <SENTENCE_END/>


Original Name mouse,pressed

mouse

<SENTENCE_START> { dispose ( ) ; } <SENTENCE_END/>

(Copy Probability: 0.2%)

<SENTENCE_START> { dispose ( ) ; } <SENTENCE_END/>

pressed

<SENTENCE_START> { dispose ( ) ; } <SENTENCE_END/>

(Copy Probability: 0.1%)

<SENTENCE_START> { dispose ( ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { dispose ( ) ; } <SENTENCE_END/>

(Copy Probability: 0.0%)

<SENTENCE_START> { dispose ( ) ; } <SENTENCE_END/>


Original Name run

run

<SENTENCE_START> { dispose ( ) ; } <SENTENCE_END/>

(Copy Probability: 0.2%)

<SENTENCE_START> { dispose ( ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { dispose ( ) ; } <SENTENCE_END/>

(Copy Probability: 0.1%)

<SENTENCE_START> { dispose ( ) ; } <SENTENCE_END/>


Original Name main

main

<SENTENCE_START> { swing utilities . invoke later ( new runnable ( ) { public void run ( ) { new hiero ( args ) ; } } ) ; } <SENTENCE_END/>

(Copy Probability: 1.4%)

<SENTENCE_START> { swing utilities . invoke later ( new runnable ( ) { public void run ( ) { new hiero ( args ) ; } } ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { swing utilities . invoke later ( new runnable ( ) { public void run ( ) { new hiero ( args ) ; } } ) ; } <SENTENCE_END/>

(Copy Probability: 2.1%)

<SENTENCE_START> { swing utilities . invoke later ( new runnable ( ) { public void run ( ) { new hiero ( args ) ; } } ) ; } <SENTENCE_END/>


Original Name run

run

<SENTENCE_START> { new hiero ( args ) ; } <SENTENCE_END/>

(Copy Probability: 0.5%)

<SENTENCE_START> { new hiero ( args ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { new hiero ( args ) ; } <SENTENCE_END/>

(Copy Probability: 2.0%)

<SENTENCE_START> { new hiero ( args ) ; } <SENTENCE_END/>


Original Name create

create

<SENTENCE_START> { float width = gdx . graphics . get width ( ) ; float height = gdx . graphics . get height ( ) ; camera = new perspective camera ( 45 , gdx . graphics . get width ( ) , gdx . graphics . get height ( ) ) ; camera . near = 1 ; camera . far = 300 ; camera . position . set ( 0 , 0 , 5 ) ; controller = new perspective cam controller ( camera ) ; gdx . input . set input processor ( controller ) ; batch = new decal batch ( new camera group strategy ( camera ) ) ; texture region [ ] textures = { new texture region ( new texture ( gdx . files . internal ( "data/egg.png" ) ) ) , new texture region ( new texture ( gdx . files . internal ( "data/wheel.png" ) ) ) , new texture region ( new texture ( gdx . files . internal ( "data/badlogic.jpg" ) ) ) } ; decal decal = decal . new decal ( 1 , 1 , textures [ 1 ] ) ; decal . set position ( 0 , 0 , 0 ) ; decals . add ( decal ) ; decal = decal . new decal ( 1 , 1 , textures [ 0 ] , true ) ; decal . set position ( 0.5f , 0.5f , 1 ) ; decals . add ( decal ) ; decal = decal . new decal ( 1 , 1 , textures [ 0 ] , true ) ; decal . set position ( 1 , 1 , - 1 ) ; decals . add ( decal ) ; decal = decal . new decal ( 1 , 1 , textures [ 2 ] ) ; decal . set position ( 1.5f , 1.5f , - 2 ) ; decals . add ( decal ) ; decal = decal . new decal ( 1 , 1 , textures [ 1 ] ) ; decal . set position ( 2 , 2 , - 1.5f ) ; decals . add ( decal ) ; } <SENTENCE_END/>

(Copy Probability: 7.4%)

<SENTENCE_START> { float width = gdx . graphics . get width ( ) ; float height = gdx . graphics . get height ( ) ; camera = new perspective camera ( 45 , gdx . graphics . get width ( ) , gdx . graphics . get height ( ) ) ; camera . near = 1 ; camera . far = 300 ; camera . position . set ( 0 , 0 , 5 ) ; controller = new perspective cam controller ( camera ) ; gdx . input . set input processor ( controller ) ; batch = new decal batch ( new camera group strategy ( camera ) ) ; texture region [ ] textures = { new texture region ( new texture ( gdx . files . internal ( "data/egg.png" ) ) ) , new texture region ( new texture ( gdx . files . internal ( "data/wheel.png" ) ) ) , new texture region ( new texture ( gdx . files . internal ( "data/badlogic.jpg" ) ) ) } ; decal decal = decal . new decal ( 1 , 1 , textures [ 1 ] ) ; decal . set position ( 0 , 0 , 0 ) ; decals . add ( decal ) ; decal = decal . new decal ( 1 , 1 , textures [ 0 ] , true ) ; decal . set position ( 0.5f , 0.5f , 1 ) ; decals . add ( decal ) ; decal = decal . new decal ( 1 , 1 , textures [ 0 ] , true ) ; decal . set position ( 1 , 1 , - 1 ) ; decals . add ( decal ) ; decal = decal . new decal ( 1 , 1 , textures [ 2 ] ) ; decal . set position ( 1.5f , 1.5f , - 2 ) ; decals . add ( decal ) ; decal = decal . new decal ( 1 , 1 , textures [ 1 ] ) ; decal . set position ( 2 , 2 , - 1.5f ) ; decals . add ( decal ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { float width = gdx . graphics . get width ( ) ; float height = gdx . graphics . get height ( ) ; camera = new perspective camera ( 45 , gdx . graphics . get width ( ) , gdx . graphics . get height ( ) ) ; camera . near = 1 ; camera . far = 300 ; camera . position . set ( 0 , 0 , 5 ) ; controller = new perspective cam controller ( camera ) ; gdx . input . set input processor ( controller ) ; batch = new decal batch ( new camera group strategy ( camera ) ) ; texture region [ ] textures = { new texture region ( new texture ( gdx . files . internal ( "data/egg.png" ) ) ) , new texture region ( new texture ( gdx . files . internal ( "data/wheel.png" ) ) ) , new texture region ( new texture ( gdx . files . internal ( "data/badlogic.jpg" ) ) ) } ; decal decal = decal . new decal ( 1 , 1 , textures [ 1 ] ) ; decal . set position ( 0 , 0 , 0 ) ; decals . add ( decal ) ; decal = decal . new decal ( 1 , 1 , textures [ 0 ] , true ) ; decal . set position ( 0.5f , 0.5f , 1 ) ; decals . add ( decal ) ; decal = decal . new decal ( 1 , 1 , textures [ 0 ] , true ) ; decal . set position ( 1 , 1 , - 1 ) ; decals . add ( decal ) ; decal = decal . new decal ( 1 , 1 , textures [ 2 ] ) ; decal . set position ( 1.5f , 1.5f , - 2 ) ; decals . add ( decal ) ; decal = decal . new decal ( 1 , 1 , textures [ 1 ] ) ; decal . set position ( 2 , 2 , - 1.5f ) ; decals . add ( decal ) ; } <SENTENCE_END/>

(Copy Probability: 34.1%)

<SENTENCE_START> { float width = gdx . graphics . get width ( ) ; float height = gdx . graphics . get height ( ) ; camera = new perspective camera ( 45 , gdx . graphics . get width ( ) , gdx . graphics . get height ( ) ) ; camera . near = 1 ; camera . far = 300 ; camera . position . set ( 0 , 0 , 5 ) ; controller = new perspective cam controller ( camera ) ; gdx . input . set input processor ( controller ) ; batch = new decal batch ( new camera group strategy ( camera ) ) ; texture region [ ] textures = { new texture region ( new texture ( gdx . files . internal ( "data/egg.png" ) ) ) , new texture region ( new texture ( gdx . files . internal ( "data/wheel.png" ) ) ) , new texture region ( new texture ( gdx . files . internal ( "data/badlogic.jpg" ) ) ) } ; decal decal = decal . new decal ( 1 , 1 , textures [ 1 ] ) ; decal . set position ( 0 , 0 , 0 ) ; decals . add ( decal ) ; decal = decal . new decal ( 1 , 1 , textures [ 0 ] , true ) ; decal . set position ( 0.5f , 0.5f , 1 ) ; decals . add ( decal ) ; decal = decal . new decal ( 1 , 1 , textures [ 0 ] , true ) ; decal . set position ( 1 , 1 , - 1 ) ; decals . add ( decal ) ; decal = decal . new decal ( 1 , 1 , textures [ 2 ] ) ; decal . set position ( 1.5f , 1.5f , - 2 ) ; decals . add ( decal ) ; decal = decal . new decal ( 1 , 1 , textures [ 1 ] ) ; decal . set position ( 2 , 2 , - 1.5f ) ; decals . add ( decal ) ; } <SENTENCE_END/>


Original Name render

render

<SENTENCE_START> { gdx . gl . gl clear ( gl 20 . gl color buffer bit | gl 20 . gl depth buffer bit ) ; gdx . gl . gl enable ( gl 20 . gl depth test ) ; camera . update ( ) ; for ( int i = 0 ; i < decals . size ; i ++ ) { decal decal = decals . get ( i ) ; if ( billboard ) { decal . look at ( camera . position , camera . up ) ; } batch . add ( decal ) ; } batch . flush ( ) ; logger . log ( ) ; } <SENTENCE_END/>

(Copy Probability: 6.8%)

<SENTENCE_START> { gdx . gl . gl clear ( gl 20 . gl color buffer bit | gl 20 . gl depth buffer bit ) ; gdx . gl . gl enable ( gl 20 . gl depth test ) ; camera . update ( ) ; for ( int i = 0 ; i < decals . size ; i ++ ) { decal decal = decals . get ( i ) ; if ( billboard ) { decal . look at ( camera . position , camera . up ) ; } batch . add ( decal ) ; } batch . flush ( ) ; logger . log ( ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { gdx . gl . gl clear ( gl 20 . gl color buffer bit | gl 20 . gl depth buffer bit ) ; gdx . gl . gl enable ( gl 20 . gl depth test ) ; camera . update ( ) ; for ( int i = 0 ; i < decals . size ; i ++ ) { decal decal = decals . get ( i ) ; if ( billboard ) { decal . look at ( camera . position , camera . up ) ; } batch . add ( decal ) ; } batch . flush ( ) ; logger . log ( ) ; } <SENTENCE_END/>

(Copy Probability: 63.8%)

<SENTENCE_START> { gdx . gl . gl clear ( gl 20 . gl color buffer bit | gl 20 . gl depth buffer bit ) ; gdx . gl . gl enable ( gl 20 . gl depth test ) ; camera . update ( ) ; for ( int i = 0 ; i < decals . size ; i ++ ) { decal decal = decals . get ( i ) ; if ( billboard ) { decal . look at ( camera . position , camera . up ) ; } batch . add ( decal ) ; } batch . flush ( ) ; logger . log ( ) ; } <SENTENCE_END/>


Original Name ensure,size

ensure

<SENTENCE_START> { if ( buffer . capacity ( ) < n ) { buffer = byte buffer . allocate direct ( n ) . order ( byte order . native order ( ) ) ; buffer int = buffer . as int buffer ( ) ; buffer float = buffer . as float buffer ( ) ; } } <SENTENCE_END/>

(Copy Probability: 4.5%)

<SENTENCE_START> { if ( buffer . capacity ( ) < n ) { buffer = byte buffer . allocate direct ( n ) . order ( byte order . native order ( ) ) ; buffer int = buffer . as int buffer ( ) ; buffer float = buffer . as float buffer ( ) ; } } <SENTENCE_END/>

size

<SENTENCE_START> { if ( buffer . capacity ( ) < n ) { buffer = byte buffer . allocate direct ( n ) . order ( byte order . native order ( ) ) ; buffer int = buffer . as int buffer ( ) ; buffer float = buffer . as float buffer ( ) ; } } <SENTENCE_END/>

(Copy Probability: 38.1%)

<SENTENCE_START> { if ( buffer . capacity ( ) < n ) { buffer = byte buffer . allocate direct ( n ) . order ( byte order . native order ( ) ) ; buffer int = buffer . as int buffer ( ) ; buffer float = buffer . as float buffer ( ) ; } } <SENTENCE_END/>

%END%

<SENTENCE_START> { if ( buffer . capacity ( ) < n ) { buffer = byte buffer . allocate direct ( n ) . order ( byte order . native order ( ) ) ; buffer int = buffer . as int buffer ( ) ; buffer float = buffer . as float buffer ( ) ; } } <SENTENCE_END/>

(Copy Probability: 7.7%)

<SENTENCE_START> { if ( buffer . capacity ( ) < n ) { buffer = byte buffer . allocate direct ( n ) . order ( byte order . native order ( ) ) ; buffer int = buffer . as int buffer ( ) ; buffer float = buffer . as float buffer ( ) ; } } <SENTENCE_END/>


Original Name to,buffer

to

<SENTENCE_START> { int n = src . length - offset ; ensure size ( n ) ; buffer . position ( 0 ) ; for ( boolean value : src ) buffer . put ( value ? ( byte ) 1 : 0 ) ; return buffer ; } <SENTENCE_END/>

(Copy Probability: 2.4%)

<SENTENCE_START> { int n = src . length - offset ; ensure size ( n ) ; buffer . position ( 0 ) ; for ( boolean value : src ) buffer . put ( value ? ( byte ) 1 : 0 ) ; return buffer ; } <SENTENCE_END/>

buffer

<SENTENCE_START> { int n = src . length - offset ; ensure size ( n ) ; buffer . position ( 0 ) ; for ( boolean value : src ) buffer . put ( value ? ( byte ) 1 : 0 ) ; return buffer ; } <SENTENCE_END/>

(Copy Probability: 17.0%)

<SENTENCE_START> { int n = src . length - offset ; ensure size ( n ) ; buffer . position ( 0 ) ; for ( boolean value : src ) buffer . put ( value ? ( byte ) 1 : 0 ) ; return buffer ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { int n = src . length - offset ; ensure size ( n ) ; buffer . position ( 0 ) ; for ( boolean value : src ) buffer . put ( value ? ( byte ) 1 : 0 ) ; return buffer ; } <SENTENCE_END/>

(Copy Probability: 2.0%)

<SENTENCE_START> { int n = src . length - offset ; ensure size ( n ) ; buffer . position ( 0 ) ; for ( boolean value : src ) buffer . put ( value ? ( byte ) 1 : 0 ) ; return buffer ; } <SENTENCE_END/>


Original Name to,buffer

to

<SENTENCE_START> { int n = src . length - offset ; ensure size ( n * 4 ) ; buffer int . position ( 0 ) ; buffer int . put ( src , offset , n ) ; return buffer int ; } <SENTENCE_END/>

(Copy Probability: 3.6%)

<SENTENCE_START> { int n = src . length - offset ; ensure size ( n * 4 ) ; buffer int . position ( 0 ) ; buffer int . put ( src , offset , n ) ; return buffer int ; } <SENTENCE_END/>

buffer

<SENTENCE_START> { int n = src . length - offset ; ensure size ( n * 4 ) ; buffer int . position ( 0 ) ; buffer int . put ( src , offset , n ) ; return buffer int ; } <SENTENCE_END/>

(Copy Probability: 15.5%)

<SENTENCE_START> { int n = src . length - offset ; ensure size ( n * 4 ) ; buffer int . position ( 0 ) ; buffer int . put ( src , offset , n ) ; return buffer int ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { int n = src . length - offset ; ensure size ( n * 4 ) ; buffer int . position ( 0 ) ; buffer int . put ( src , offset , n ) ; return buffer int ; } <SENTENCE_END/>

(Copy Probability: 4.9%)

<SENTENCE_START> { int n = src . length - offset ; ensure size ( n * 4 ) ; buffer int . position ( 0 ) ; buffer int . put ( src , offset , n ) ; return buffer int ; } <SENTENCE_END/>


Original Name to,buffer

to

<SENTENCE_START> { int n = src . length - offset ; ensure size ( n * 4 ) ; buffer float . position ( 0 ) ; buffer float . put ( src , offset , n ) ; return buffer float ; } <SENTENCE_END/>

(Copy Probability: 3.3%)

<SENTENCE_START> { int n = src . length - offset ; ensure size ( n * 4 ) ; buffer float . position ( 0 ) ; buffer float . put ( src , offset , n ) ; return buffer float ; } <SENTENCE_END/>

buffer

<SENTENCE_START> { int n = src . length - offset ; ensure size ( n * 4 ) ; buffer float . position ( 0 ) ; buffer float . put ( src , offset , n ) ; return buffer float ; } <SENTENCE_END/>

(Copy Probability: 12.2%)

<SENTENCE_START> { int n = src . length - offset ; ensure size ( n * 4 ) ; buffer float . position ( 0 ) ; buffer float . put ( src , offset , n ) ; return buffer float ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { int n = src . length - offset ; ensure size ( n * 4 ) ; buffer float . position ( 0 ) ; buffer float . put ( src , offset , n ) ; return buffer float ; } <SENTENCE_END/>

(Copy Probability: 5.7%)

<SENTENCE_START> { int n = src . length - offset ; ensure size ( n * 4 ) ; buffer float . position ( 0 ) ; buffer float . put ( src , offset , n ) ; return buffer float ; } <SENTENCE_END/>


Original Name to,array

to

<SENTENCE_START> { for ( int i = 0 ; i < dst . length - offset ; i ++ ) { dst [ i + offset ] = src . get ( i ) != 0 ; } } <SENTENCE_END/>

(Copy Probability: 2.1%)

<SENTENCE_START> { for ( int i = 0 ; i < dst . length - offset ; i ++ ) { dst [ i + offset ] = src . get ( i ) != 0 ; } } <SENTENCE_END/>

array

<SENTENCE_START> { for ( int i = 0 ; i < dst . length - offset ; i ++ ) { dst [ i + offset ] = src . get ( i ) != 0 ; } } <SENTENCE_END/>

(Copy Probability: 3.4%)

<SENTENCE_START> { for ( int i = 0 ; i < dst . length - offset ; i ++ ) { dst [ i + offset ] = src . get ( i ) != 0 ; } } <SENTENCE_END/>

%END%

<SENTENCE_START> { for ( int i = 0 ; i < dst . length - offset ; i ++ ) { dst [ i + offset ] = src . get ( i ) != 0 ; } } <SENTENCE_END/>

(Copy Probability: 1.3%)

<SENTENCE_START> { for ( int i = 0 ; i < dst . length - offset ; i ++ ) { dst [ i + offset ] = src . get ( i ) != 0 ; } } <SENTENCE_END/>


Original Name to,array

to

<SENTENCE_START> { src . position ( 0 ) ; src . get ( dst , offset , dst . length - offset ) ; } <SENTENCE_END/>

(Copy Probability: 1.3%)

<SENTENCE_START> { src . position ( 0 ) ; src . get ( dst , offset , dst . length - offset ) ; } <SENTENCE_END/>

array

<SENTENCE_START> { src . position ( 0 ) ; src . get ( dst , offset , dst . length - offset ) ; } <SENTENCE_END/>

(Copy Probability: 0.7%)

<SENTENCE_START> { src . position ( 0 ) ; src . get ( dst , offset , dst . length - offset ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { src . position ( 0 ) ; src . get ( dst , offset , dst . length - offset ) ; } <SENTENCE_END/>

(Copy Probability: 0.7%)

<SENTENCE_START> { src . position ( 0 ) ; src . get ( dst , offset , dst . length - offset ) ; } <SENTENCE_END/>


Original Name to,array

to

<SENTENCE_START> { src . position ( 0 ) ; src . get ( dst , offset , dst . length - offset ) ; } <SENTENCE_END/>

(Copy Probability: 1.3%)

<SENTENCE_START> { src . position ( 0 ) ; src . get ( dst , offset , dst . length - offset ) ; } <SENTENCE_END/>

array

<SENTENCE_START> { src . position ( 0 ) ; src . get ( dst , offset , dst . length - offset ) ; } <SENTENCE_END/>

(Copy Probability: 0.7%)

<SENTENCE_START> { src . position ( 0 ) ; src . get ( dst , offset , dst . length - offset ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { src . position ( 0 ) ; src . get ( dst , offset , dst . length - offset ) ; } <SENTENCE_END/>

(Copy Probability: 0.7%)

<SENTENCE_START> { src . position ( 0 ) ; src . get ( dst , offset , dst . length - offset ) ; } <SENTENCE_END/>


Original Name reallocate,buffer

reallocate

<SENTENCE_START> { assert ( new capacity > old capacity ) ; @ suppress warnings ( "unchecked" ) t [ ] new buffer = ( t [ ] ) array reflection . new instance ( klass , new capacity ) ; if ( old buffer != null ) { system . arraycopy ( old buffer , 0 , new buffer , 0 , old capacity ) ; } for ( int i = old capacity ; i < new capacity ; i ++ ) { try { new buffer [ i ] = class reflection . new instance ( klass ) ; } catch ( exception e ) { throw new runtime exception ( e ) ; } } return new buffer ; } <SENTENCE_END/>

(Copy Probability: 2.8%)

<SENTENCE_START> { assert ( new capacity > old capacity ) ; @ suppress warnings ( "unchecked" ) t [ ] new buffer = ( t [ ] ) array reflection . new instance ( klass , new capacity ) ; if ( old buffer != null ) { system . arraycopy ( old buffer , 0 , new buffer , 0 , old capacity ) ; } for ( int i = old capacity ; i < new capacity ; i ++ ) { try { new buffer [ i ] = class reflection . new instance ( klass ) ; } catch ( exception e ) { throw new runtime exception ( e ) ; } } return new buffer ; } <SENTENCE_END/>

buffer

<SENTENCE_START> { assert ( new capacity > old capacity ) ; @ suppress warnings ( "unchecked" ) t [ ] new buffer = ( t [ ] ) array reflection . new instance ( klass , new capacity ) ; if ( old buffer != null ) { system . arraycopy ( old buffer , 0 , new buffer , 0 , old capacity ) ; } for ( int i = old capacity ; i < new capacity ; i ++ ) { try { new buffer [ i ] = class reflection . new instance ( klass ) ; } catch ( exception e ) { throw new runtime exception ( e ) ; } } return new buffer ; } <SENTENCE_END/>

(Copy Probability: 10.5%)

<SENTENCE_START> { assert ( new capacity > old capacity ) ; @ suppress warnings ( "unchecked" ) t [ ] new buffer = ( t [ ] ) array reflection . new instance ( klass , new capacity ) ; if ( old buffer != null ) { system . arraycopy ( old buffer , 0 , new buffer , 0 , old capacity ) ; } for ( int i = old capacity ; i < new capacity ; i ++ ) { try { new buffer [ i ] = class reflection . new instance ( klass ) ; } catch ( exception e ) { throw new runtime exception ( e ) ; } } return new buffer ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { assert ( new capacity > old capacity ) ; @ suppress warnings ( "unchecked" ) t [ ] new buffer = ( t [ ] ) array reflection . new instance ( klass , new capacity ) ; if ( old buffer != null ) { system . arraycopy ( old buffer , 0 , new buffer , 0 , old capacity ) ; } for ( int i = old capacity ; i < new capacity ; i ++ ) { try { new buffer [ i ] = class reflection . new instance ( klass ) ; } catch ( exception e ) { throw new runtime exception ( e ) ; } } return new buffer ; } <SENTENCE_END/>

(Copy Probability: 4.0%)

<SENTENCE_START> { assert ( new capacity > old capacity ) ; @ suppress warnings ( "unchecked" ) t [ ] new buffer = ( t [ ] ) array reflection . new instance ( klass , new capacity ) ; if ( old buffer != null ) { system . arraycopy ( old buffer , 0 , new buffer , 0 , old capacity ) ; } for ( int i = old capacity ; i < new capacity ; i ++ ) { try { new buffer [ i ] = class reflection . new instance ( klass ) ; } catch ( exception e ) { throw new runtime exception ( e ) ; } } return new buffer ; } <SENTENCE_END/>


Original Name reallocate,buffer

reallocate

<SENTENCE_START> { assert ( new capacity > old capacity ) ; int [ ] new buffer = new int [ new capacity ] ; if ( old buffer != null ) { system . arraycopy ( old buffer , 0 , new buffer , 0 , old capacity ) ; } return new buffer ; } <SENTENCE_END/>

(Copy Probability: 3.5%)

<SENTENCE_START> { assert ( new capacity > old capacity ) ; int [ ] new buffer = new int [ new capacity ] ; if ( old buffer != null ) { system . arraycopy ( old buffer , 0 , new buffer , 0 , old capacity ) ; } return new buffer ; } <SENTENCE_END/>

buffer

<SENTENCE_START> { assert ( new capacity > old capacity ) ; int [ ] new buffer = new int [ new capacity ] ; if ( old buffer != null ) { system . arraycopy ( old buffer , 0 , new buffer , 0 , old capacity ) ; } return new buffer ; } <SENTENCE_END/>

(Copy Probability: 19.6%)

<SENTENCE_START> { assert ( new capacity > old capacity ) ; int [ ] new buffer = new int [ new capacity ] ; if ( old buffer != null ) { system . arraycopy ( old buffer , 0 , new buffer , 0 , old capacity ) ; } return new buffer ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { assert ( new capacity > old capacity ) ; int [ ] new buffer = new int [ new capacity ] ; if ( old buffer != null ) { system . arraycopy ( old buffer , 0 , new buffer , 0 , old capacity ) ; } return new buffer ; } <SENTENCE_END/>

(Copy Probability: 2.6%)

<SENTENCE_START> { assert ( new capacity > old capacity ) ; int [ ] new buffer = new int [ new capacity ] ; if ( old buffer != null ) { system . arraycopy ( old buffer , 0 , new buffer , 0 , old capacity ) ; } return new buffer ; } <SENTENCE_END/>


Original Name reallocate,buffer

reallocate

<SENTENCE_START> { assert ( new capacity > old capacity ) ; float [ ] new buffer = new float [ new capacity ] ; if ( old buffer != null ) { system . arraycopy ( old buffer , 0 , new buffer , 0 , old capacity ) ; } return new buffer ; } <SENTENCE_END/>

(Copy Probability: 3.3%)

<SENTENCE_START> { assert ( new capacity > old capacity ) ; float [ ] new buffer = new float [ new capacity ] ; if ( old buffer != null ) { system . arraycopy ( old buffer , 0 , new buffer , 0 , old capacity ) ; } return new buffer ; } <SENTENCE_END/>

buffer

<SENTENCE_START> { assert ( new capacity > old capacity ) ; float [ ] new buffer = new float [ new capacity ] ; if ( old buffer != null ) { system . arraycopy ( old buffer , 0 , new buffer , 0 , old capacity ) ; } return new buffer ; } <SENTENCE_END/>

(Copy Probability: 16.1%)

<SENTENCE_START> { assert ( new capacity > old capacity ) ; float [ ] new buffer = new float [ new capacity ] ; if ( old buffer != null ) { system . arraycopy ( old buffer , 0 , new buffer , 0 , old capacity ) ; } return new buffer ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { assert ( new capacity > old capacity ) ; float [ ] new buffer = new float [ new capacity ] ; if ( old buffer != null ) { system . arraycopy ( old buffer , 0 , new buffer , 0 , old capacity ) ; } return new buffer ; } <SENTENCE_END/>

(Copy Probability: 2.6%)

<SENTENCE_START> { assert ( new capacity > old capacity ) ; float [ ] new buffer = new float [ new capacity ] ; if ( old buffer != null ) { system . arraycopy ( old buffer , 0 , new buffer , 0 , old capacity ) ; } return new buffer ; } <SENTENCE_END/>


Original Name reallocate,buffer

reallocate

<SENTENCE_START> { assert ( new capacity > old capacity ) ; assert ( user supplied capacity == 0 || new capacity <= user supplied capacity ) ; if ( ( ! deferred || buffer != null ) && user supplied capacity == 0 ) { buffer = %SELF% ( klass , buffer , old capacity , new capacity ) ; } return buffer ; } <SENTENCE_END/>

(Copy Probability: 3.4%)

<SENTENCE_START> { assert ( new capacity > old capacity ) ; assert ( user supplied capacity == 0 || new capacity <= user supplied capacity ) ; if ( ( ! deferred || buffer != null ) && user supplied capacity == 0 ) { buffer = %SELF% ( klass , buffer , old capacity , new capacity ) ; } return buffer ; } <SENTENCE_END/>

buffer

<SENTENCE_START> { assert ( new capacity > old capacity ) ; assert ( user supplied capacity == 0 || new capacity <= user supplied capacity ) ; if ( ( ! deferred || buffer != null ) && user supplied capacity == 0 ) { buffer = %SELF% ( klass , buffer , old capacity , new capacity ) ; } return buffer ; } <SENTENCE_END/>

(Copy Probability: 19.9%)

<SENTENCE_START> { assert ( new capacity > old capacity ) ; assert ( user supplied capacity == 0 || new capacity <= user supplied capacity ) ; if ( ( ! deferred || buffer != null ) && user supplied capacity == 0 ) { buffer = %SELF% ( klass , buffer , old capacity , new capacity ) ; } return buffer ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { assert ( new capacity > old capacity ) ; assert ( user supplied capacity == 0 || new capacity <= user supplied capacity ) ; if ( ( ! deferred || buffer != null ) && user supplied capacity == 0 ) { buffer = %SELF% ( klass , buffer , old capacity , new capacity ) ; } return buffer ; } <SENTENCE_END/>

(Copy Probability: 4.7%)

<SENTENCE_START> { assert ( new capacity > old capacity ) ; assert ( user supplied capacity == 0 || new capacity <= user supplied capacity ) ; if ( ( ! deferred || buffer != null ) && user supplied capacity == 0 ) { buffer = %SELF% ( klass , buffer , old capacity , new capacity ) ; } return buffer ; } <SENTENCE_END/>


Original Name reallocate,buffer

reallocate

<SENTENCE_START> { assert ( new capacity > old capacity ) ; assert ( user supplied capacity == 0 || new capacity <= user supplied capacity ) ; if ( ( ! deferred || buffer != null ) && user supplied capacity == 0 ) { buffer = %SELF% ( buffer , old capacity , new capacity ) ; } return buffer ; } <SENTENCE_END/>

(Copy Probability: 3.4%)

<SENTENCE_START> { assert ( new capacity > old capacity ) ; assert ( user supplied capacity == 0 || new capacity <= user supplied capacity ) ; if ( ( ! deferred || buffer != null ) && user supplied capacity == 0 ) { buffer = %SELF% ( buffer , old capacity , new capacity ) ; } return buffer ; } <SENTENCE_END/>

buffer

<SENTENCE_START> { assert ( new capacity > old capacity ) ; assert ( user supplied capacity == 0 || new capacity <= user supplied capacity ) ; if ( ( ! deferred || buffer != null ) && user supplied capacity == 0 ) { buffer = %SELF% ( buffer , old capacity , new capacity ) ; } return buffer ; } <SENTENCE_END/>

(Copy Probability: 17.6%)

<SENTENCE_START> { assert ( new capacity > old capacity ) ; assert ( user supplied capacity == 0 || new capacity <= user supplied capacity ) ; if ( ( ! deferred || buffer != null ) && user supplied capacity == 0 ) { buffer = %SELF% ( buffer , old capacity , new capacity ) ; } return buffer ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { assert ( new capacity > old capacity ) ; assert ( user supplied capacity == 0 || new capacity <= user supplied capacity ) ; if ( ( ! deferred || buffer != null ) && user supplied capacity == 0 ) { buffer = %SELF% ( buffer , old capacity , new capacity ) ; } return buffer ; } <SENTENCE_END/>

(Copy Probability: 4.6%)

<SENTENCE_START> { assert ( new capacity > old capacity ) ; assert ( user supplied capacity == 0 || new capacity <= user supplied capacity ) ; if ( ( ! deferred || buffer != null ) && user supplied capacity == 0 ) { buffer = %SELF% ( buffer , old capacity , new capacity ) ; } return buffer ; } <SENTENCE_END/>


Original Name reallocate,buffer

reallocate

<SENTENCE_START> { assert ( new capacity > old capacity ) ; assert ( user supplied capacity == 0 || new capacity <= user supplied capacity ) ; if ( ( ! deferred || buffer != null ) && user supplied capacity == 0 ) { buffer = %SELF% ( buffer , old capacity , new capacity ) ; } return buffer ; } <SENTENCE_END/>

(Copy Probability: 3.4%)

<SENTENCE_START> { assert ( new capacity > old capacity ) ; assert ( user supplied capacity == 0 || new capacity <= user supplied capacity ) ; if ( ( ! deferred || buffer != null ) && user supplied capacity == 0 ) { buffer = %SELF% ( buffer , old capacity , new capacity ) ; } return buffer ; } <SENTENCE_END/>

buffer

<SENTENCE_START> { assert ( new capacity > old capacity ) ; assert ( user supplied capacity == 0 || new capacity <= user supplied capacity ) ; if ( ( ! deferred || buffer != null ) && user supplied capacity == 0 ) { buffer = %SELF% ( buffer , old capacity , new capacity ) ; } return buffer ; } <SENTENCE_END/>

(Copy Probability: 17.6%)

<SENTENCE_START> { assert ( new capacity > old capacity ) ; assert ( user supplied capacity == 0 || new capacity <= user supplied capacity ) ; if ( ( ! deferred || buffer != null ) && user supplied capacity == 0 ) { buffer = %SELF% ( buffer , old capacity , new capacity ) ; } return buffer ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { assert ( new capacity > old capacity ) ; assert ( user supplied capacity == 0 || new capacity <= user supplied capacity ) ; if ( ( ! deferred || buffer != null ) && user supplied capacity == 0 ) { buffer = %SELF% ( buffer , old capacity , new capacity ) ; } return buffer ; } <SENTENCE_END/>

(Copy Probability: 4.6%)

<SENTENCE_START> { assert ( new capacity > old capacity ) ; assert ( user supplied capacity == 0 || new capacity <= user supplied capacity ) ; if ( ( ! deferred || buffer != null ) && user supplied capacity == 0 ) { buffer = %SELF% ( buffer , old capacity , new capacity ) ; } return buffer ; } <SENTENCE_END/>


Original Name rotate

rotate

<SENTENCE_START> { int next = new first ; while ( next != first ) { t temp = ray [ first ] ; ray [ first ] = ray [ next ] ; ray [ next ] = temp ; first ++ ; next ++ ; if ( next == last ) { next = new first ; } else if ( first == new first ) { new first = next ; } } } <SENTENCE_END/>

(Copy Probability: 2.9%)

<SENTENCE_START> { int next = new first ; while ( next != first ) { t temp = ray [ first ] ; ray [ first ] = ray [ next ] ; ray [ next ] = temp ; first ++ ; next ++ ; if ( next == last ) { next = new first ; } else if ( first == new first ) { new first = next ; } } } <SENTENCE_END/>

%END%

<SENTENCE_START> { int next = new first ; while ( next != first ) { t temp = ray [ first ] ; ray [ first ] = ray [ next ] ; ray [ next ] = temp ; first ++ ; next ++ ; if ( next == last ) { next = new first ; } else if ( first == new first ) { new first = next ; } } } <SENTENCE_END/>

(Copy Probability: 8.0%)

<SENTENCE_START> { int next = new first ; while ( next != first ) { t temp = ray [ first ] ; ray [ first ] = ray [ next ] ; ray [ next ] = temp ; first ++ ; next ++ ; if ( next == last ) { next = new first ; } else if ( first == new first ) { new first = next ; } } } <SENTENCE_END/>


Original Name rotate

rotate

<SENTENCE_START> { int next = new first ; while ( next != first ) { int temp = ray [ first ] ; ray [ first ] = ray [ next ] ; ray [ next ] = temp ; first ++ ; next ++ ; if ( next == last ) { next = new first ; } else if ( first == new first ) { new first = next ; } } } <SENTENCE_END/>

(Copy Probability: 2.9%)

<SENTENCE_START> { int next = new first ; while ( next != first ) { int temp = ray [ first ] ; ray [ first ] = ray [ next ] ; ray [ next ] = temp ; first ++ ; next ++ ; if ( next == last ) { next = new first ; } else if ( first == new first ) { new first = next ; } } } <SENTENCE_END/>

%END%

<SENTENCE_START> { int next = new first ; while ( next != first ) { int temp = ray [ first ] ; ray [ first ] = ray [ next ] ; ray [ next ] = temp ; first ++ ; next ++ ; if ( next == last ) { next = new first ; } else if ( first == new first ) { new first = next ; } } } <SENTENCE_END/>

(Copy Probability: 8.1%)

<SENTENCE_START> { int next = new first ; while ( next != first ) { int temp = ray [ first ] ; ray [ first ] = ray [ next ] ; ray [ next ] = temp ; first ++ ; next ++ ; if ( next == last ) { next = new first ; } else if ( first == new first ) { new first = next ; } } } <SENTENCE_END/>


Original Name rotate

rotate

<SENTENCE_START> { int next = new first ; while ( next != first ) { float temp = ray [ first ] ; ray [ first ] = ray [ next ] ; ray [ next ] = temp ; first ++ ; next ++ ; if ( next == last ) { next = new first ; } else if ( first == new first ) { new first = next ; } } } <SENTENCE_END/>

(Copy Probability: 2.9%)

<SENTENCE_START> { int next = new first ; while ( next != first ) { float temp = ray [ first ] ; ray [ first ] = ray [ next ] ; ray [ next ] = temp ; first ++ ; next ++ ; if ( next == last ) { next = new first ; } else if ( first == new first ) { new first = next ; } } } <SENTENCE_END/>

%END%

<SENTENCE_START> { int next = new first ; while ( next != first ) { float temp = ray [ first ] ; ray [ first ] = ray [ next ] ; ray [ next ] = temp ; first ++ ; next ++ ; if ( next == last ) { next = new first ; } else if ( first == new first ) { new first = next ; } } } <SENTENCE_END/>

(Copy Probability: 8.0%)

<SENTENCE_START> { int next = new first ; while ( next != first ) { float temp = ray [ first ] ; ray [ first ] = ray [ next ] ; ray [ next ] = temp ; first ++ ; next ++ ; if ( next == last ) { next = new first ; } else if ( first == new first ) { new first = next ; } } } <SENTENCE_END/>


Original Name write

write

<SENTENCE_START> { %SELF% ( buf , 0 , buf . length ) ; } <SENTENCE_END/>

(Copy Probability: 0.4%)

<SENTENCE_START> { %SELF% ( buf , 0 , buf . length ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { %SELF% ( buf , 0 , buf . length ) ; } <SENTENCE_END/>

(Copy Probability: 0.1%)

<SENTENCE_START> { %SELF% ( buf , 0 , buf . length ) ; } <SENTENCE_END/>


Original Name write

write

<SENTENCE_START> { synchronized ( lock ) { char one char array [ ] = new char [ 1 ] ; one char array [ 0 ] = ( char ) one char ; %SELF% ( one char array ) ; } } <SENTENCE_END/>

(Copy Probability: 1.9%)

<SENTENCE_START> { synchronized ( lock ) { char one char array [ ] = new char [ 1 ] ; one char array [ 0 ] = ( char ) one char ; %SELF% ( one char array ) ; } } <SENTENCE_END/>

%END%

<SENTENCE_START> { synchronized ( lock ) { char one char array [ ] = new char [ 1 ] ; one char array [ 0 ] = ( char ) one char ; %SELF% ( one char array ) ; } } <SENTENCE_END/>

(Copy Probability: 7.3%)

<SENTENCE_START> { synchronized ( lock ) { char one char array [ ] = new char [ 1 ] ; one char array [ 0 ] = ( char ) one char ; %SELF% ( one char array ) ; } } <SENTENCE_END/>


Original Name write

write

<SENTENCE_START> { %SELF% ( str , 0 , str . length ( ) ) ; } <SENTENCE_END/>

(Copy Probability: 0.6%)

<SENTENCE_START> { %SELF% ( str , 0 , str . length ( ) ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { %SELF% ( str , 0 , str . length ( ) ) ; } <SENTENCE_END/>

(Copy Probability: 0.2%)

<SENTENCE_START> { %SELF% ( str , 0 , str . length ( ) ) ; } <SENTENCE_END/>


Original Name write

write

<SENTENCE_START> { if ( count < 0 ) { throw new string index out of bounds exception ( ) ; } char buf [ ] = new char [ count ] ; str . get chars ( offset , offset + count , buf , 0 ) ; synchronized ( lock ) { %SELF% ( buf , 0 , buf . length ) ; } } <SENTENCE_END/>

(Copy Probability: 2.4%)

<SENTENCE_START> { if ( count < 0 ) { throw new string index out of bounds exception ( ) ; } char buf [ ] = new char [ count ] ; str . get chars ( offset , offset + count , buf , 0 ) ; synchronized ( lock ) { %SELF% ( buf , 0 , buf . length ) ; } } <SENTENCE_END/>

%END%

<SENTENCE_START> { if ( count < 0 ) { throw new string index out of bounds exception ( ) ; } char buf [ ] = new char [ count ] ; str . get chars ( offset , offset + count , buf , 0 ) ; synchronized ( lock ) { %SELF% ( buf , 0 , buf . length ) ; } } <SENTENCE_END/>

(Copy Probability: 2.7%)

<SENTENCE_START> { if ( count < 0 ) { throw new string index out of bounds exception ( ) ; } char buf [ ] = new char [ count ] ; str . get chars ( offset , offset + count , buf , 0 ) ; synchronized ( lock ) { %SELF% ( buf , 0 , buf . length ) ; } } <SENTENCE_END/>


Original Name append

append

<SENTENCE_START> { write ( c ) ; return this ; } <SENTENCE_END/>

(Copy Probability: 0.5%)

<SENTENCE_START> { write ( c ) ; return this ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { write ( c ) ; return this ; } <SENTENCE_END/>

(Copy Probability: 0.5%)

<SENTENCE_START> { write ( c ) ; return this ; } <SENTENCE_END/>


Original Name append

append

<SENTENCE_START> { if ( null == csq ) { write ( token null ) ; } else { write ( csq . to string ( ) ) ; } return this ; } <SENTENCE_END/>

(Copy Probability: 1.6%)

<SENTENCE_START> { if ( null == csq ) { write ( token null ) ; } else { write ( csq . to string ( ) ) ; } return this ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { if ( null == csq ) { write ( token null ) ; } else { write ( csq . to string ( ) ) ; } return this ; } <SENTENCE_END/>

(Copy Probability: 1.5%)

<SENTENCE_START> { if ( null == csq ) { write ( token null ) ; } else { write ( csq . to string ( ) ) ; } return this ; } <SENTENCE_END/>


Original Name append

append

<SENTENCE_START> { if ( null == csq ) { write ( token null . substring ( start , end ) ) ; } else { write ( csq . sub sequence ( start , end ) . to string ( ) ) ; } return this ; } <SENTENCE_END/>

(Copy Probability: 1.4%)

<SENTENCE_START> { if ( null == csq ) { write ( token null . substring ( start , end ) ) ; } else { write ( csq . sub sequence ( start , end ) . to string ( ) ) ; } return this ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { if ( null == csq ) { write ( token null . substring ( start , end ) ) ; } else { write ( csq . sub sequence ( start , end ) . to string ( ) ) ; } return this ; } <SENTENCE_END/>

(Copy Probability: 2.7%)

<SENTENCE_START> { if ( null == csq ) { write ( token null . substring ( start , end ) ) ; } else { write ( csq . sub sequence ( start , end ) . to string ( ) ) ; } return this ; } <SENTENCE_END/>


Original Name check,error

check

<SENTENCE_START> { return false ; } <SENTENCE_END/>

(Copy Probability: 0.2%)

<SENTENCE_START> { return false ; } <SENTENCE_END/>

error

<SENTENCE_START> { return false ; } <SENTENCE_END/>

(Copy Probability: 0.3%)

<SENTENCE_START> { return false ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return false ; } <SENTENCE_END/>

(Copy Probability: 0.1%)

<SENTENCE_START> { return false ; } <SENTENCE_END/>


Original Name float,to,int,bits

float

<SENTENCE_START> { return numbers . %SELF% ( value ) ; } <SENTENCE_END/>

(Copy Probability: 0.7%)

<SENTENCE_START> { return numbers . %SELF% ( value ) ; } <SENTENCE_END/>

to

<SENTENCE_START> { return numbers . %SELF% ( value ) ; } <SENTENCE_END/>

(Copy Probability: 3.0%)

<SENTENCE_START> { return numbers . %SELF% ( value ) ; } <SENTENCE_END/>

int

<SENTENCE_START> { return numbers . %SELF% ( value ) ; } <SENTENCE_END/>

(Copy Probability: 0.4%)

<SENTENCE_START> { return numbers . %SELF% ( value ) ; } <SENTENCE_END/>

bits

<SENTENCE_START> { return numbers . %SELF% ( value ) ; } <SENTENCE_END/>

(Copy Probability: 1.5%)

<SENTENCE_START> { return numbers . %SELF% ( value ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return numbers . %SELF% ( value ) ; } <SENTENCE_END/>

(Copy Probability: 2.3%)

<SENTENCE_START> { return numbers . %SELF% ( value ) ; } <SENTENCE_END/>


Original Name float,to,raw,int,bits

float

<SENTENCE_START> { return numbers . float to int bits ( value ) ; } <SENTENCE_END/>

(Copy Probability: 1.1%)

<SENTENCE_START> { return numbers . float to int bits ( value ) ; } <SENTENCE_END/>

to

<SENTENCE_START> { return numbers . float to int bits ( value ) ; } <SENTENCE_END/>

(Copy Probability: 94.2%)

<SENTENCE_START> { return numbers . float to int bits ( value ) ; } <SENTENCE_END/>

raw

<SENTENCE_START> { return numbers . float to int bits ( value ) ; } <SENTENCE_END/>

(Copy Probability: 1.8%)

<SENTENCE_START> { return numbers . float to int bits ( value ) ; } <SENTENCE_END/>

int

<SENTENCE_START> { return numbers . float to int bits ( value ) ; } <SENTENCE_END/>

(Copy Probability: 1.5%)

<SENTENCE_START> { return numbers . float to int bits ( value ) ; } <SENTENCE_END/>

bits

<SENTENCE_START> { return numbers . float to int bits ( value ) ; } <SENTENCE_END/>

(Copy Probability: 1.8%)

<SENTENCE_START> { return numbers . float to int bits ( value ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return numbers . float to int bits ( value ) ; } <SENTENCE_END/>

(Copy Probability: 2.3%)

<SENTENCE_START> { return numbers . float to int bits ( value ) ; } <SENTENCE_END/>


Original Name float,to,int,color

float

<SENTENCE_START> { return numbers . float to int bits ( value ) ; } <SENTENCE_END/>

(Copy Probability: 1.1%)

<SENTENCE_START> { return numbers . float to int bits ( value ) ; } <SENTENCE_END/>

to

<SENTENCE_START> { return numbers . float to int bits ( value ) ; } <SENTENCE_END/>

(Copy Probability: 94.2%)

<SENTENCE_START> { return numbers . float to int bits ( value ) ; } <SENTENCE_END/>

int

<SENTENCE_START> { return numbers . float to int bits ( value ) ; } <SENTENCE_END/>

(Copy Probability: 1.8%)

<SENTENCE_START> { return numbers . float to int bits ( value ) ; } <SENTENCE_END/>

color

<SENTENCE_START> { return numbers . float to int bits ( value ) ; } <SENTENCE_END/>

(Copy Probability: 1.5%)

<SENTENCE_START> { return numbers . float to int bits ( value ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return numbers . float to int bits ( value ) ; } <SENTENCE_END/>

(Copy Probability: 2.2%)

<SENTENCE_START> { return numbers . float to int bits ( value ) ; } <SENTENCE_END/>


Original Name int,to,float,color

int

<SENTENCE_START> { return numbers . int bits to float ( value & 0xfeffffff ) ; } <SENTENCE_END/>

(Copy Probability: 1.0%)

<SENTENCE_START> { return numbers . int bits to float ( value & 0xfeffffff ) ; } <SENTENCE_END/>

to

<SENTENCE_START> { return numbers . int bits to float ( value & 0xfeffffff ) ; } <SENTENCE_END/>

(Copy Probability: 36.7%)

<SENTENCE_START> { return numbers . int bits to float ( value & 0xfeffffff ) ; } <SENTENCE_END/>

float

<SENTENCE_START> { return numbers . int bits to float ( value & 0xfeffffff ) ; } <SENTENCE_END/>

(Copy Probability: 1.5%)

<SENTENCE_START> { return numbers . int bits to float ( value & 0xfeffffff ) ; } <SENTENCE_END/>

color

<SENTENCE_START> { return numbers . int bits to float ( value & 0xfeffffff ) ; } <SENTENCE_END/>

(Copy Probability: 2.1%)

<SENTENCE_START> { return numbers . int bits to float ( value & 0xfeffffff ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return numbers . int bits to float ( value & 0xfeffffff ) ; } <SENTENCE_END/>

(Copy Probability: 4.1%)

<SENTENCE_START> { return numbers . int bits to float ( value & 0xfeffffff ) ; } <SENTENCE_END/>


Original Name int,bits,to,float

int

<SENTENCE_START> { return numbers . %SELF% ( value ) ; } <SENTENCE_END/>

(Copy Probability: 0.7%)

<SENTENCE_START> { return numbers . %SELF% ( value ) ; } <SENTENCE_END/>

bits

<SENTENCE_START> { return numbers . %SELF% ( value ) ; } <SENTENCE_END/>

(Copy Probability: 3.0%)

<SENTENCE_START> { return numbers . %SELF% ( value ) ; } <SENTENCE_END/>

to

<SENTENCE_START> { return numbers . %SELF% ( value ) ; } <SENTENCE_END/>

(Copy Probability: 0.3%)

<SENTENCE_START> { return numbers . %SELF% ( value ) ; } <SENTENCE_END/>

float

<SENTENCE_START> { return numbers . %SELF% ( value ) ; } <SENTENCE_END/>

(Copy Probability: 0.4%)

<SENTENCE_START> { return numbers . %SELF% ( value ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return numbers . %SELF% ( value ) ; } <SENTENCE_END/>

(Copy Probability: 2.0%)

<SENTENCE_START> { return numbers . %SELF% ( value ) ; } <SENTENCE_END/>


Original Name double,to,long,bits

double

<SENTENCE_START> { return 0 ; } <SENTENCE_END/>

(Copy Probability: 0.2%)

<SENTENCE_START> { return 0 ; } <SENTENCE_END/>

to

<SENTENCE_START> { return 0 ; } <SENTENCE_END/>

(Copy Probability: 1.1%)

<SENTENCE_START> { return 0 ; } <SENTENCE_END/>

long

<SENTENCE_START> { return 0 ; } <SENTENCE_END/>

(Copy Probability: 0.4%)

<SENTENCE_START> { return 0 ; } <SENTENCE_END/>

bits

<SENTENCE_START> { return 0 ; } <SENTENCE_END/>

(Copy Probability: 1.0%)

<SENTENCE_START> { return 0 ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return 0 ; } <SENTENCE_END/>

(Copy Probability: 0.3%)

<SENTENCE_START> { return 0 ; } <SENTENCE_END/>


Original Name long,bits,to,double

long

<SENTENCE_START> { return 0 ; } <SENTENCE_END/>

(Copy Probability: 0.2%)

<SENTENCE_START> { return 0 ; } <SENTENCE_END/>

bits

<SENTENCE_START> { return 0 ; } <SENTENCE_END/>

(Copy Probability: 1.1%)

<SENTENCE_START> { return 0 ; } <SENTENCE_END/>

to

<SENTENCE_START> { return 0 ; } <SENTENCE_END/>

(Copy Probability: 0.2%)

<SENTENCE_START> { return 0 ; } <SENTENCE_END/>

double

<SENTENCE_START> { return 0 ; } <SENTENCE_END/>

(Copy Probability: 0.2%)

<SENTENCE_START> { return 0 ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return 0 ; } <SENTENCE_END/>

(Copy Probability: 1.3%)

<SENTENCE_START> { return 0 ; } <SENTENCE_END/>


Original Name get,c,ptr

get

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

(Copy Probability: 1.5%)

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

c

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

(Copy Probability: 99.7%)

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

ptr

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

(Copy Probability: 99.8%)

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

(Copy Probability: 3.7%)

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>


Original Name set,me

set

<SENTENCE_START> { collision jni . closest not me convex result callback me set ( swig c ptr , this , bt collision object . get c ptr ( value ) , value ) ; } <SENTENCE_END/>

(Copy Probability: 2.1%)

<SENTENCE_START> { collision jni . closest not me convex result callback me set ( swig c ptr , this , bt collision object . get c ptr ( value ) , value ) ; } <SENTENCE_END/>

me

<SENTENCE_START> { collision jni . closest not me convex result callback me set ( swig c ptr , this , bt collision object . get c ptr ( value ) , value ) ; } <SENTENCE_END/>

(Copy Probability: 97.2%)

<SENTENCE_START> { collision jni . closest not me convex result callback me set ( swig c ptr , this , bt collision object . get c ptr ( value ) , value ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { collision jni . closest not me convex result callback me set ( swig c ptr , this , bt collision object . get c ptr ( value ) , value ) ; } <SENTENCE_END/>

(Copy Probability: 5.6%)

<SENTENCE_START> { collision jni . closest not me convex result callback me set ( swig c ptr , this , bt collision object . get c ptr ( value ) , value ) ; } <SENTENCE_END/>


Original Name get,me

get

<SENTENCE_START> { return bt collision object . get instance ( collision jni . closest not me convex result callback me get ( swig c ptr , this ) , false ) ; } <SENTENCE_END/>

(Copy Probability: 1.9%)

<SENTENCE_START> { return bt collision object . get instance ( collision jni . closest not me convex result callback me get ( swig c ptr , this ) , false ) ; } <SENTENCE_END/>

me

<SENTENCE_START> { return bt collision object . get instance ( collision jni . closest not me convex result callback me get ( swig c ptr , this ) , false ) ; } <SENTENCE_END/>

(Copy Probability: 78.2%)

<SENTENCE_START> { return bt collision object . get instance ( collision jni . closest not me convex result callback me get ( swig c ptr , this ) , false ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return bt collision object . get instance ( collision jni . closest not me convex result callback me get ( swig c ptr , this ) , false ) ; } <SENTENCE_END/>

(Copy Probability: 2.9%)

<SENTENCE_START> { return bt collision object . get instance ( collision jni . closest not me convex result callback me get ( swig c ptr , this ) , false ) ; } <SENTENCE_END/>


Original Name set,allowed,penetration

set

<SENTENCE_START> { collision jni . closest not me convex result callback allowed penetration set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 1.3%)

<SENTENCE_START> { collision jni . closest not me convex result callback allowed penetration set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

allowed

<SENTENCE_START> { collision jni . closest not me convex result callback allowed penetration set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 99.7%)

<SENTENCE_START> { collision jni . closest not me convex result callback allowed penetration set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

penetration

<SENTENCE_START> { collision jni . closest not me convex result callback allowed penetration set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 99.2%)

<SENTENCE_START> { collision jni . closest not me convex result callback allowed penetration set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { collision jni . closest not me convex result callback allowed penetration set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 11.7%)

<SENTENCE_START> { collision jni . closest not me convex result callback allowed penetration set ( swig c ptr , this , value ) ; } <SENTENCE_END/>


Original Name get,allowed,penetration

get

<SENTENCE_START> { return collision jni . closest not me convex result callback allowed penetration get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 1.5%)

<SENTENCE_START> { return collision jni . closest not me convex result callback allowed penetration get ( swig c ptr , this ) ; } <SENTENCE_END/>

allowed

<SENTENCE_START> { return collision jni . closest not me convex result callback allowed penetration get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 99.7%)

<SENTENCE_START> { return collision jni . closest not me convex result callback allowed penetration get ( swig c ptr , this ) ; } <SENTENCE_END/>

penetration

<SENTENCE_START> { return collision jni . closest not me convex result callback allowed penetration get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 99.3%)

<SENTENCE_START> { return collision jni . closest not me convex result callback allowed penetration get ( swig c ptr , this ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return collision jni . closest not me convex result callback allowed penetration get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 11.2%)

<SENTENCE_START> { return collision jni . closest not me convex result callback allowed penetration get ( swig c ptr , this ) ; } <SENTENCE_END/>


Original Name needs,collision

needs

<SENTENCE_START> { return collision jni . closest not me convex result callback needs collision ( swig c ptr , this , bt broadphase proxy . get c ptr ( proxy 0 ) , proxy 0 ) ; } <SENTENCE_END/>

(Copy Probability: 12.4%)

<SENTENCE_START> { return collision jni . closest not me convex result callback needs collision ( swig c ptr , this , bt broadphase proxy . get c ptr ( proxy 0 ) , proxy 0 ) ; } <SENTENCE_END/>

collision

<SENTENCE_START> { return collision jni . closest not me convex result callback needs collision ( swig c ptr , this , bt broadphase proxy . get c ptr ( proxy 0 ) , proxy 0 ) ; } <SENTENCE_END/>

(Copy Probability: 94.6%)

<SENTENCE_START> { return collision jni . closest not me convex result callback needs collision ( swig c ptr , this , bt broadphase proxy . get c ptr ( proxy 0 ) , proxy 0 ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return collision jni . closest not me convex result callback needs collision ( swig c ptr , this , bt broadphase proxy . get c ptr ( proxy 0 ) , proxy 0 ) ; } <SENTENCE_END/>

(Copy Probability: 11.0%)

<SENTENCE_START> { return collision jni . closest not me convex result callback needs collision ( swig c ptr , this , bt broadphase proxy . get c ptr ( proxy 0 ) , proxy 0 ) ; } <SENTENCE_END/>


Original Name get,c,ptr

get

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

(Copy Probability: 1.5%)

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

c

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

(Copy Probability: 99.7%)

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

ptr

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

(Copy Probability: 99.8%)

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

(Copy Probability: 3.7%)

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>


Original Name mul

mul

<SENTENCE_START> { float x = vals [ pos x ] + vals [ cos ] * v . x + - vals [ sin ] * v . y ; float y = vals [ pos y ] + vals [ sin ] * v . x + vals [ cos ] * v . y ; v . x = x ; v . y = y ; return v ; } <SENTENCE_END/>

(Copy Probability: 2.0%)

<SENTENCE_START> { float x = vals [ pos x ] + vals [ cos ] * v . x + - vals [ sin ] * v . y ; float y = vals [ pos y ] + vals [ sin ] * v . x + vals [ cos ] * v . y ; v . x = x ; v . y = y ; return v ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { float x = vals [ pos x ] + vals [ cos ] * v . x + - vals [ sin ] * v . y ; float y = vals [ pos y ] + vals [ sin ] * v . x + vals [ cos ] * v . y ; v . x = x ; v . y = y ; return v ; } <SENTENCE_END/>

(Copy Probability: 3.4%)

<SENTENCE_START> { float x = vals [ pos x ] + vals [ cos ] * v . x + - vals [ sin ] * v . y ; float y = vals [ pos y ] + vals [ sin ] * v . x + vals [ cos ] * v . y ; v . x = x ; v . y = y ; return v ; } <SENTENCE_END/>


Original Name get,position

get

<SENTENCE_START> { return position . set ( vals [ 0 ] , vals [ 1 ] ) ; } <SENTENCE_END/>

(Copy Probability: 0.9%)

<SENTENCE_START> { return position . set ( vals [ 0 ] , vals [ 1 ] ) ; } <SENTENCE_END/>

position

<SENTENCE_START> { return position . set ( vals [ 0 ] , vals [ 1 ] ) ; } <SENTENCE_END/>

(Copy Probability: 12.3%)

<SENTENCE_START> { return position . set ( vals [ 0 ] , vals [ 1 ] ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return position . set ( vals [ 0 ] , vals [ 1 ] ) ; } <SENTENCE_END/>

(Copy Probability: 0.9%)

<SENTENCE_START> { return position . set ( vals [ 0 ] , vals [ 1 ] ) ; } <SENTENCE_END/>


Original Name set,rotation

set

<SENTENCE_START> { float c = ( float ) math . cos ( angle ) , s = ( float ) math . sin ( angle ) ; vals [ cos ] = c ; vals [ sin ] = s ; } <SENTENCE_END/>

(Copy Probability: 2.2%)

<SENTENCE_START> { float c = ( float ) math . cos ( angle ) , s = ( float ) math . sin ( angle ) ; vals [ cos ] = c ; vals [ sin ] = s ; } <SENTENCE_END/>

rotation

<SENTENCE_START> { float c = ( float ) math . cos ( angle ) , s = ( float ) math . sin ( angle ) ; vals [ cos ] = c ; vals [ sin ] = s ; } <SENTENCE_END/>

(Copy Probability: 2.3%)

<SENTENCE_START> { float c = ( float ) math . cos ( angle ) , s = ( float ) math . sin ( angle ) ; vals [ cos ] = c ; vals [ sin ] = s ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { float c = ( float ) math . cos ( angle ) , s = ( float ) math . sin ( angle ) ; vals [ cos ] = c ; vals [ sin ] = s ; } <SENTENCE_END/>

(Copy Probability: 1.1%)

<SENTENCE_START> { float c = ( float ) math . cos ( angle ) , s = ( float ) math . sin ( angle ) ; vals [ cos ] = c ; vals [ sin ] = s ; } <SENTENCE_END/>


Original Name get,rotation

get

<SENTENCE_START> { return ( float ) math . atan 2 ( vals [ sin ] , vals [ cos ] ) ; } <SENTENCE_END/>

(Copy Probability: 1.8%)

<SENTENCE_START> { return ( float ) math . atan 2 ( vals [ sin ] , vals [ cos ] ) ; } <SENTENCE_END/>

rotation

<SENTENCE_START> { return ( float ) math . atan 2 ( vals [ sin ] , vals [ cos ] ) ; } <SENTENCE_END/>

(Copy Probability: 6.5%)

<SENTENCE_START> { return ( float ) math . atan 2 ( vals [ sin ] , vals [ cos ] ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return ( float ) math . atan 2 ( vals [ sin ] , vals [ cos ] ) ; } <SENTENCE_END/>

(Copy Probability: 0.6%)

<SENTENCE_START> { return ( float ) math . atan 2 ( vals [ sin ] , vals [ cos ] ) ; } <SENTENCE_END/>


Original Name set,position

set

<SENTENCE_START> { this . vals [ pos x ] = pos . x ; this . vals [ pos y ] = pos . y ; } <SENTENCE_END/>

(Copy Probability: 1.1%)

<SENTENCE_START> { this . vals [ pos x ] = pos . x ; this . vals [ pos y ] = pos . y ; } <SENTENCE_END/>

position

<SENTENCE_START> { this . vals [ pos x ] = pos . x ; this . vals [ pos y ] = pos . y ; } <SENTENCE_END/>

(Copy Probability: 1.4%)

<SENTENCE_START> { this . vals [ pos x ] = pos . x ; this . vals [ pos y ] = pos . y ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { this . vals [ pos x ] = pos . x ; this . vals [ pos y ] = pos . y ; } <SENTENCE_END/>

(Copy Probability: 0.8%)

<SENTENCE_START> { this . vals [ pos x ] = pos . x ; this . vals [ pos y ] = pos . y ; } <SENTENCE_END/>


Original Name is

is

<SENTENCE_START> { return ( mask & mask ) != 0 ; } <SENTENCE_END/>

(Copy Probability: 0.5%)

<SENTENCE_START> { return ( mask & mask ) != 0 ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return ( mask & mask ) != 0 ; } <SENTENCE_END/>

(Copy Probability: 0.3%)

<SENTENCE_START> { return ( mask & mask ) != 0 ; } <SENTENCE_END/>


Original Name create,ambient

create

<SENTENCE_START> { return new color attribute ( ambient , color ) ; } <SENTENCE_END/>

(Copy Probability: 1.0%)

<SENTENCE_START> { return new color attribute ( ambient , color ) ; } <SENTENCE_END/>

ambient

<SENTENCE_START> { return new color attribute ( ambient , color ) ; } <SENTENCE_END/>

(Copy Probability: 62.9%)

<SENTENCE_START> { return new color attribute ( ambient , color ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return new color attribute ( ambient , color ) ; } <SENTENCE_END/>

(Copy Probability: 1.2%)

<SENTENCE_START> { return new color attribute ( ambient , color ) ; } <SENTENCE_END/>


Original Name create,ambient

create

<SENTENCE_START> { return new color attribute ( ambient , r , g , b , a ) ; } <SENTENCE_END/>

(Copy Probability: 1.4%)

<SENTENCE_START> { return new color attribute ( ambient , r , g , b , a ) ; } <SENTENCE_END/>

ambient

<SENTENCE_START> { return new color attribute ( ambient , r , g , b , a ) ; } <SENTENCE_END/>

(Copy Probability: 69.5%)

<SENTENCE_START> { return new color attribute ( ambient , r , g , b , a ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return new color attribute ( ambient , r , g , b , a ) ; } <SENTENCE_END/>

(Copy Probability: 1.0%)

<SENTENCE_START> { return new color attribute ( ambient , r , g , b , a ) ; } <SENTENCE_END/>


Original Name create,diffuse

create

<SENTENCE_START> { return new color attribute ( diffuse , color ) ; } <SENTENCE_END/>

(Copy Probability: 0.9%)

<SENTENCE_START> { return new color attribute ( diffuse , color ) ; } <SENTENCE_END/>

diffuse

<SENTENCE_START> { return new color attribute ( diffuse , color ) ; } <SENTENCE_END/>

(Copy Probability: 54.8%)

<SENTENCE_START> { return new color attribute ( diffuse , color ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return new color attribute ( diffuse , color ) ; } <SENTENCE_END/>

(Copy Probability: 1.3%)

<SENTENCE_START> { return new color attribute ( diffuse , color ) ; } <SENTENCE_END/>


Original Name create,diffuse

create

<SENTENCE_START> { return new color attribute ( diffuse , r , g , b , a ) ; } <SENTENCE_END/>

(Copy Probability: 1.4%)

<SENTENCE_START> { return new color attribute ( diffuse , r , g , b , a ) ; } <SENTENCE_END/>

diffuse

<SENTENCE_START> { return new color attribute ( diffuse , r , g , b , a ) ; } <SENTENCE_END/>

(Copy Probability: 65.8%)

<SENTENCE_START> { return new color attribute ( diffuse , r , g , b , a ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return new color attribute ( diffuse , r , g , b , a ) ; } <SENTENCE_END/>

(Copy Probability: 0.9%)

<SENTENCE_START> { return new color attribute ( diffuse , r , g , b , a ) ; } <SENTENCE_END/>


Original Name create,specular

create

<SENTENCE_START> { return new color attribute ( specular , color ) ; } <SENTENCE_END/>

(Copy Probability: 0.9%)

<SENTENCE_START> { return new color attribute ( specular , color ) ; } <SENTENCE_END/>

specular

<SENTENCE_START> { return new color attribute ( specular , color ) ; } <SENTENCE_END/>

(Copy Probability: 56.8%)

<SENTENCE_START> { return new color attribute ( specular , color ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return new color attribute ( specular , color ) ; } <SENTENCE_END/>

(Copy Probability: 1.5%)

<SENTENCE_START> { return new color attribute ( specular , color ) ; } <SENTENCE_END/>


Original Name create,specular

create

<SENTENCE_START> { return new color attribute ( specular , r , g , b , a ) ; } <SENTENCE_END/>

(Copy Probability: 1.4%)

<SENTENCE_START> { return new color attribute ( specular , r , g , b , a ) ; } <SENTENCE_END/>

specular

<SENTENCE_START> { return new color attribute ( specular , r , g , b , a ) ; } <SENTENCE_END/>

(Copy Probability: 66.2%)

<SENTENCE_START> { return new color attribute ( specular , r , g , b , a ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return new color attribute ( specular , r , g , b , a ) ; } <SENTENCE_END/>

(Copy Probability: 1.4%)

<SENTENCE_START> { return new color attribute ( specular , r , g , b , a ) ; } <SENTENCE_END/>


Original Name create,reflection

create

<SENTENCE_START> { return new color attribute ( reflection , color ) ; } <SENTENCE_END/>

(Copy Probability: 0.7%)

<SENTENCE_START> { return new color attribute ( reflection , color ) ; } <SENTENCE_END/>

reflection

<SENTENCE_START> { return new color attribute ( reflection , color ) ; } <SENTENCE_END/>

(Copy Probability: 14.4%)

<SENTENCE_START> { return new color attribute ( reflection , color ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return new color attribute ( reflection , color ) ; } <SENTENCE_END/>

(Copy Probability: 0.6%)

<SENTENCE_START> { return new color attribute ( reflection , color ) ; } <SENTENCE_END/>


Original Name create,reflection

create

<SENTENCE_START> { return new color attribute ( reflection , r , g , b , a ) ; } <SENTENCE_END/>

(Copy Probability: 1.0%)

<SENTENCE_START> { return new color attribute ( reflection , r , g , b , a ) ; } <SENTENCE_END/>

reflection

<SENTENCE_START> { return new color attribute ( reflection , r , g , b , a ) ; } <SENTENCE_END/>

(Copy Probability: 24.6%)

<SENTENCE_START> { return new color attribute ( reflection , r , g , b , a ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return new color attribute ( reflection , r , g , b , a ) ; } <SENTENCE_END/>

(Copy Probability: 1.0%)

<SENTENCE_START> { return new color attribute ( reflection , r , g , b , a ) ; } <SENTENCE_END/>


Original Name get,c,ptr

get

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

(Copy Probability: 1.5%)

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

c

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

(Copy Probability: 99.7%)

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

ptr

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

(Copy Probability: 99.8%)

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

(Copy Probability: 3.7%)

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>


Original Name set,indices

set

<SENTENCE_START> { collision jni . bt face indices set ( swig c ptr , this , swigtype p bt aligned object array t int t . get c ptr ( value ) ) ; } <SENTENCE_END/>

(Copy Probability: 2.4%)

<SENTENCE_START> { collision jni . bt face indices set ( swig c ptr , this , swigtype p bt aligned object array t int t . get c ptr ( value ) ) ; } <SENTENCE_END/>

indices

<SENTENCE_START> { collision jni . bt face indices set ( swig c ptr , this , swigtype p bt aligned object array t int t . get c ptr ( value ) ) ; } <SENTENCE_END/>

(Copy Probability: 99.8%)

<SENTENCE_START> { collision jni . bt face indices set ( swig c ptr , this , swigtype p bt aligned object array t int t . get c ptr ( value ) ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { collision jni . bt face indices set ( swig c ptr , this , swigtype p bt aligned object array t int t . get c ptr ( value ) ) ; } <SENTENCE_END/>

(Copy Probability: 2.0%)

<SENTENCE_START> { collision jni . bt face indices set ( swig c ptr , this , swigtype p bt aligned object array t int t . get c ptr ( value ) ) ; } <SENTENCE_END/>


Original Name get,indices

get

<SENTENCE_START> { long c ptr = collision jni . bt face indices get ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new swigtype p bt aligned object array t int t ( c ptr , false ) ; } <SENTENCE_END/>

(Copy Probability: 2.3%)

<SENTENCE_START> { long c ptr = collision jni . bt face indices get ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new swigtype p bt aligned object array t int t ( c ptr , false ) ; } <SENTENCE_END/>

indices

<SENTENCE_START> { long c ptr = collision jni . bt face indices get ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new swigtype p bt aligned object array t int t ( c ptr , false ) ; } <SENTENCE_END/>

(Copy Probability: 99.8%)

<SENTENCE_START> { long c ptr = collision jni . bt face indices get ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new swigtype p bt aligned object array t int t ( c ptr , false ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { long c ptr = collision jni . bt face indices get ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new swigtype p bt aligned object array t int t ( c ptr , false ) ; } <SENTENCE_END/>

(Copy Probability: 3.0%)

<SENTENCE_START> { long c ptr = collision jni . bt face indices get ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new swigtype p bt aligned object array t int t ( c ptr , false ) ; } <SENTENCE_END/>


Original Name set,plane

set

<SENTENCE_START> { collision jni . bt face plane set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 1.7%)

<SENTENCE_START> { collision jni . bt face plane set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

plane

<SENTENCE_START> { collision jni . bt face plane set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 99.0%)

<SENTENCE_START> { collision jni . bt face plane set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { collision jni . bt face plane set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 0.6%)

<SENTENCE_START> { collision jni . bt face plane set ( swig c ptr , this , value ) ; } <SENTENCE_END/>


Original Name get,plane

get

<SENTENCE_START> { return collision jni . bt face plane get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 1.7%)

<SENTENCE_START> { return collision jni . bt face plane get ( swig c ptr , this ) ; } <SENTENCE_END/>

plane

<SENTENCE_START> { return collision jni . bt face plane get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 98.6%)

<SENTENCE_START> { return collision jni . bt face plane get ( swig c ptr , this ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return collision jni . bt face plane get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 1.0%)

<SENTENCE_START> { return collision jni . bt face plane get ( swig c ptr , this ) ; } <SENTENCE_END/>


Original Name initialize,components

initialize

<SENTENCE_START> { int i = 0 ; add content ( i ++ , 0 , tint panel = new gradient panel ( editor , emitter . color value , "Tint" , "" , false ) ) ; add content ( i ++ , 0 , alpha panel = new percentage panel ( editor , emitter . alpha value , "Life" , "Transparency" , "" ) ) ; tint panel . show content ( true ) ; alpha panel . show content ( true ) ; } <SENTENCE_END/>

(Copy Probability: 3.3%)

<SENTENCE_START> { int i = 0 ; add content ( i ++ , 0 , tint panel = new gradient panel ( editor , emitter . color value , "Tint" , "" , false ) ) ; add content ( i ++ , 0 , alpha panel = new percentage panel ( editor , emitter . alpha value , "Life" , "Transparency" , "" ) ) ; tint panel . show content ( true ) ; alpha panel . show content ( true ) ; } <SENTENCE_END/>

components

<SENTENCE_START> { int i = 0 ; add content ( i ++ , 0 , tint panel = new gradient panel ( editor , emitter . color value , "Tint" , "" , false ) ) ; add content ( i ++ , 0 , alpha panel = new percentage panel ( editor , emitter . alpha value , "Life" , "Transparency" , "" ) ) ; tint panel . show content ( true ) ; alpha panel . show content ( true ) ; } <SENTENCE_END/>

(Copy Probability: 29.7%)

<SENTENCE_START> { int i = 0 ; add content ( i ++ , 0 , tint panel = new gradient panel ( editor , emitter . color value , "Tint" , "" , false ) ) ; add content ( i ++ , 0 , alpha panel = new percentage panel ( editor , emitter . alpha value , "Life" , "Transparency" , "" ) ) ; tint panel . show content ( true ) ; alpha panel . show content ( true ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { int i = 0 ; add content ( i ++ , 0 , tint panel = new gradient panel ( editor , emitter . color value , "Tint" , "" , false ) ) ; add content ( i ++ , 0 , alpha panel = new percentage panel ( editor , emitter . alpha value , "Life" , "Transparency" , "" ) ) ; tint panel . show content ( true ) ; alpha panel . show content ( true ) ; } <SENTENCE_END/>

(Copy Probability: 13.4%)

<SENTENCE_START> { int i = 0 ; add content ( i ++ , 0 , tint panel = new gradient panel ( editor , emitter . color value , "Tint" , "" , false ) ) ; add content ( i ++ , 0 , alpha panel = new percentage panel ( editor , emitter . alpha value , "Life" , "Transparency" , "" ) ) ; tint panel . show content ( true ) ; alpha panel . show content ( true ) ; } <SENTENCE_END/>


Original Name reset,cursor

reset

<SENTENCE_START> { ( ( gwt application ) gdx . app ) . graphics . canvas . get style ( ) . set property ( "cursor" , "auto" ) ; } <SENTENCE_END/>

(Copy Probability: 1.7%)

<SENTENCE_START> { ( ( gwt application ) gdx . app ) . graphics . canvas . get style ( ) . set property ( "cursor" , "auto" ) ; } <SENTENCE_END/>

cursor

<SENTENCE_START> { ( ( gwt application ) gdx . app ) . graphics . canvas . get style ( ) . set property ( "cursor" , "auto" ) ; } <SENTENCE_END/>

(Copy Probability: 11.0%)

<SENTENCE_START> { ( ( gwt application ) gdx . app ) . graphics . canvas . get style ( ) . set property ( "cursor" , "auto" ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { ( ( gwt application ) gdx . app ) . graphics . canvas . get style ( ) . set property ( "cursor" , "auto" ) ; } <SENTENCE_END/>

(Copy Probability: 2.2%)

<SENTENCE_START> { ( ( gwt application ) gdx . app ) . graphics . canvas . get style ( ) . set property ( "cursor" , "auto" ) ; } <SENTENCE_END/>


Original Name performance,test

performance

<SENTENCE_START> { gdx . app . log ( "UBJsonTest" , "--- performanceTest ---" ) ; long start = system . current time millis ( ) ; ub json writer uw = new ub json writer ( gdx . files . external ( fn ) . write ( false , 8192 ) ) ; uw . object ( ) ; uw . set ( "0floats" , new float [ ] { } ) ; uw . set ( "3floats" , new float [ ] { 1 , 2 , 3.456789f } ) ; uw . set ( "xfloats" , new float [ ] { float . min value , float . max value , float . na n , float . negative infinity } ) ; uw . set ( "double" , 0.000000000000000000001 ) ; uw . set ( "long" , long . max value ) ; uw . array ( "arr" ) ; uw . object ( ) . pop ( ) ; for ( int i = 0 ; i < 50000 ; i ++ ) { uw . value ( true ) . value ( false ) . value ( true ) ; uw . value ( ( byte ) 254 ) ; uw . value ( ( byte ) ( - 2 ) ) ; uw . value ( ( short ) - 32000 ) ; uw . value ( ( int ) - 123456 ) ; uw . value ( ( long ) ( - ( ( 1 << 63 ) - 1 ) ) ) ; uw . value ( long string ) ; } uw . pop ( ) ; uw . pop ( ) ; uw . close ( ) ; gdx . app . log ( "UBJsonTest" , "Writing the test file took " + ( system . current time millis ( ) - start ) + "ms" ) ; gdx . app . log ( "UBJsonTest" , "File size is " + gdx . files . external ( fn ) . length ( ) ) ; ub json reader ur = new ub json reader ( ) ; ur . old format = false ; start = system . current time millis ( ) ; ur . parse ( gdx . files . external ( fn ) ) ; gdx . app . log ( "UBJsonTest" , "Parsing the test file took " + ( system . current time millis ( ) - start ) + "ms" ) ; } <SENTENCE_END/>

(Copy Probability: 3.3%)

<SENTENCE_START> { gdx . app . log ( "UBJsonTest" , "--- performanceTest ---" ) ; long start = system . current time millis ( ) ; ub json writer uw = new ub json writer ( gdx . files . external ( fn ) . write ( false , 8192 ) ) ; uw . object ( ) ; uw . set ( "0floats" , new float [ ] { } ) ; uw . set ( "3floats" , new float [ ] { 1 , 2 , 3.456789f } ) ; uw . set ( "xfloats" , new float [ ] { float . min value , float . max value , float . na n , float . negative infinity } ) ; uw . set ( "double" , 0.000000000000000000001 ) ; uw . set ( "long" , long . max value ) ; uw . array ( "arr" ) ; uw . object ( ) . pop ( ) ; for ( int i = 0 ; i < 50000 ; i ++ ) { uw . value ( true ) . value ( false ) . value ( true ) ; uw . value ( ( byte ) 254 ) ; uw . value ( ( byte ) ( - 2 ) ) ; uw . value ( ( short ) - 32000 ) ; uw . value ( ( int ) - 123456 ) ; uw . value ( ( long ) ( - ( ( 1 << 63 ) - 1 ) ) ) ; uw . value ( long string ) ; } uw . pop ( ) ; uw . pop ( ) ; uw . close ( ) ; gdx . app . log ( "UBJsonTest" , "Writing the test file took " + ( system . current time millis ( ) - start ) + "ms" ) ; gdx . app . log ( "UBJsonTest" , "File size is " + gdx . files . external ( fn ) . length ( ) ) ; ub json reader ur = new ub json reader ( ) ; ur . old format = false ; start = system . current time millis ( ) ; ur . parse ( gdx . files . external ( fn ) ) ; gdx . app . log ( "UBJsonTest" , "Parsing the test file took " + ( system . current time millis ( ) - start ) + "ms" ) ; } <SENTENCE_END/>

test

<SENTENCE_START> { gdx . app . log ( "UBJsonTest" , "--- performanceTest ---" ) ; long start = system . current time millis ( ) ; ub json writer uw = new ub json writer ( gdx . files . external ( fn ) . write ( false , 8192 ) ) ; uw . object ( ) ; uw . set ( "0floats" , new float [ ] { } ) ; uw . set ( "3floats" , new float [ ] { 1 , 2 , 3.456789f } ) ; uw . set ( "xfloats" , new float [ ] { float . min value , float . max value , float . na n , float . negative infinity } ) ; uw . set ( "double" , 0.000000000000000000001 ) ; uw . set ( "long" , long . max value ) ; uw . array ( "arr" ) ; uw . object ( ) . pop ( ) ; for ( int i = 0 ; i < 50000 ; i ++ ) { uw . value ( true ) . value ( false ) . value ( true ) ; uw . value ( ( byte ) 254 ) ; uw . value ( ( byte ) ( - 2 ) ) ; uw . value ( ( short ) - 32000 ) ; uw . value ( ( int ) - 123456 ) ; uw . value ( ( long ) ( - ( ( 1 << 63 ) - 1 ) ) ) ; uw . value ( long string ) ; } uw . pop ( ) ; uw . pop ( ) ; uw . close ( ) ; gdx . app . log ( "UBJsonTest" , "Writing the test file took " + ( system . current time millis ( ) - start ) + "ms" ) ; gdx . app . log ( "UBJsonTest" , "File size is " + gdx . files . external ( fn ) . length ( ) ) ; ub json reader ur = new ub json reader ( ) ; ur . old format = false ; start = system . current time millis ( ) ; ur . parse ( gdx . files . external ( fn ) ) ; gdx . app . log ( "UBJsonTest" , "Parsing the test file took " + ( system . current time millis ( ) - start ) + "ms" ) ; } <SENTENCE_END/>

(Copy Probability: 4.1%)

<SENTENCE_START> { gdx . app . log ( "UBJsonTest" , "--- performanceTest ---" ) ; long start = system . current time millis ( ) ; ub json writer uw = new ub json writer ( gdx . files . external ( fn ) . write ( false , 8192 ) ) ; uw . object ( ) ; uw . set ( "0floats" , new float [ ] { } ) ; uw . set ( "3floats" , new float [ ] { 1 , 2 , 3.456789f } ) ; uw . set ( "xfloats" , new float [ ] { float . min value , float . max value , float . na n , float . negative infinity } ) ; uw . set ( "double" , 0.000000000000000000001 ) ; uw . set ( "long" , long . max value ) ; uw . array ( "arr" ) ; uw . object ( ) . pop ( ) ; for ( int i = 0 ; i < 50000 ; i ++ ) { uw . value ( true ) . value ( false ) . value ( true ) ; uw . value ( ( byte ) 254 ) ; uw . value ( ( byte ) ( - 2 ) ) ; uw . value ( ( short ) - 32000 ) ; uw . value ( ( int ) - 123456 ) ; uw . value ( ( long ) ( - ( ( 1 << 63 ) - 1 ) ) ) ; uw . value ( long string ) ; } uw . pop ( ) ; uw . pop ( ) ; uw . close ( ) ; gdx . app . log ( "UBJsonTest" , "Writing the test file took " + ( system . current time millis ( ) - start ) + "ms" ) ; gdx . app . log ( "UBJsonTest" , "File size is " + gdx . files . external ( fn ) . length ( ) ) ; ub json reader ur = new ub json reader ( ) ; ur . old format = false ; start = system . current time millis ( ) ; ur . parse ( gdx . files . external ( fn ) ) ; gdx . app . log ( "UBJsonTest" , "Parsing the test file took " + ( system . current time millis ( ) - start ) + "ms" ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { gdx . app . log ( "UBJsonTest" , "--- performanceTest ---" ) ; long start = system . current time millis ( ) ; ub json writer uw = new ub json writer ( gdx . files . external ( fn ) . write ( false , 8192 ) ) ; uw . object ( ) ; uw . set ( "0floats" , new float [ ] { } ) ; uw . set ( "3floats" , new float [ ] { 1 , 2 , 3.456789f } ) ; uw . set ( "xfloats" , new float [ ] { float . min value , float . max value , float . na n , float . negative infinity } ) ; uw . set ( "double" , 0.000000000000000000001 ) ; uw . set ( "long" , long . max value ) ; uw . array ( "arr" ) ; uw . object ( ) . pop ( ) ; for ( int i = 0 ; i < 50000 ; i ++ ) { uw . value ( true ) . value ( false ) . value ( true ) ; uw . value ( ( byte ) 254 ) ; uw . value ( ( byte ) ( - 2 ) ) ; uw . value ( ( short ) - 32000 ) ; uw . value ( ( int ) - 123456 ) ; uw . value ( ( long ) ( - ( ( 1 << 63 ) - 1 ) ) ) ; uw . value ( long string ) ; } uw . pop ( ) ; uw . pop ( ) ; uw . close ( ) ; gdx . app . log ( "UBJsonTest" , "Writing the test file took " + ( system . current time millis ( ) - start ) + "ms" ) ; gdx . app . log ( "UBJsonTest" , "File size is " + gdx . files . external ( fn ) . length ( ) ) ; ub json reader ur = new ub json reader ( ) ; ur . old format = false ; start = system . current time millis ( ) ; ur . parse ( gdx . files . external ( fn ) ) ; gdx . app . log ( "UBJsonTest" , "Parsing the test file took " + ( system . current time millis ( ) - start ) + "ms" ) ; } <SENTENCE_END/>

(Copy Probability: 4.4%)

<SENTENCE_START> { gdx . app . log ( "UBJsonTest" , "--- performanceTest ---" ) ; long start = system . current time millis ( ) ; ub json writer uw = new ub json writer ( gdx . files . external ( fn ) . write ( false , 8192 ) ) ; uw . object ( ) ; uw . set ( "0floats" , new float [ ] { } ) ; uw . set ( "3floats" , new float [ ] { 1 , 2 , 3.456789f } ) ; uw . set ( "xfloats" , new float [ ] { float . min value , float . max value , float . na n , float . negative infinity } ) ; uw . set ( "double" , 0.000000000000000000001 ) ; uw . set ( "long" , long . max value ) ; uw . array ( "arr" ) ; uw . object ( ) . pop ( ) ; for ( int i = 0 ; i < 50000 ; i ++ ) { uw . value ( true ) . value ( false ) . value ( true ) ; uw . value ( ( byte ) 254 ) ; uw . value ( ( byte ) ( - 2 ) ) ; uw . value ( ( short ) - 32000 ) ; uw . value ( ( int ) - 123456 ) ; uw . value ( ( long ) ( - ( ( 1 << 63 ) - 1 ) ) ) ; uw . value ( long string ) ; } uw . pop ( ) ; uw . pop ( ) ; uw . close ( ) ; gdx . app . log ( "UBJsonTest" , "Writing the test file took " + ( system . current time millis ( ) - start ) + "ms" ) ; gdx . app . log ( "UBJsonTest" , "File size is " + gdx . files . external ( fn ) . length ( ) ) ; ub json reader ur = new ub json reader ( ) ; ur . old format = false ; start = system . current time millis ( ) ; ur . parse ( gdx . files . external ( fn ) ) ; gdx . app . log ( "UBJsonTest" , "Parsing the test file took " + ( system . current time millis ( ) - start ) + "ms" ) ; } <SENTENCE_END/>


Original Name touch,down

touch

<SENTENCE_START> { flinging = false ; initial scale = camera . zoom ; return false ; } <SENTENCE_END/>

(Copy Probability: 0.7%)

<SENTENCE_START> { flinging = false ; initial scale = camera . zoom ; return false ; } <SENTENCE_END/>

down

<SENTENCE_START> { flinging = false ; initial scale = camera . zoom ; return false ; } <SENTENCE_END/>

(Copy Probability: 2.8%)

<SENTENCE_START> { flinging = false ; initial scale = camera . zoom ; return false ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { flinging = false ; initial scale = camera . zoom ; return false ; } <SENTENCE_END/>

(Copy Probability: 1.5%)

<SENTENCE_START> { flinging = false ; initial scale = camera . zoom ; return false ; } <SENTENCE_END/>


Original Name update

update

<SENTENCE_START> { if ( flinging ) { vel x *= 0.98f ; vel y *= 0.98f ; camera . position . add ( - vel x * gdx . graphics . get delta time ( ) , vel y * gdx . graphics . get delta time ( ) , 0 ) ; if ( math . abs ( vel x ) < 0.01f ) vel x = 0 ; if ( math . abs ( vel y ) < 0.01f ) vel y = 0 ; } } <SENTENCE_END/>

(Copy Probability: 3.5%)

<SENTENCE_START> { if ( flinging ) { vel x *= 0.98f ; vel y *= 0.98f ; camera . position . add ( - vel x * gdx . graphics . get delta time ( ) , vel y * gdx . graphics . get delta time ( ) , 0 ) ; if ( math . abs ( vel x ) < 0.01f ) vel x = 0 ; if ( math . abs ( vel y ) < 0.01f ) vel y = 0 ; } } <SENTENCE_END/>

%END%

<SENTENCE_START> { if ( flinging ) { vel x *= 0.98f ; vel y *= 0.98f ; camera . position . add ( - vel x * gdx . graphics . get delta time ( ) , vel y * gdx . graphics . get delta time ( ) , 0 ) ; if ( math . abs ( vel x ) < 0.01f ) vel x = 0 ; if ( math . abs ( vel y ) < 0.01f ) vel y = 0 ; } } <SENTENCE_END/>

(Copy Probability: 6.4%)

<SENTENCE_START> { if ( flinging ) { vel x *= 0.98f ; vel y *= 0.98f ; camera . position . add ( - vel x * gdx . graphics . get delta time ( ) , vel y * gdx . graphics . get delta time ( ) , 0 ) ; if ( math . abs ( vel x ) < 0.01f ) vel x = 0 ; if ( math . abs ( vel y ) < 0.01f ) vel y = 0 ; } } <SENTENCE_END/>


Original Name get,c,ptr

get

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

(Copy Probability: 1.5%)

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

c

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

(Copy Probability: 99.7%)

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

ptr

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

(Copy Probability: 99.8%)

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

(Copy Probability: 3.7%)

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>


Original Name set,num,materials

set

<SENTENCE_START> { collision jni . bt material properties num materials set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 1.3%)

<SENTENCE_START> { collision jni . bt material properties num materials set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

num

<SENTENCE_START> { collision jni . bt material properties num materials set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 99.9%)

<SENTENCE_START> { collision jni . bt material properties num materials set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

materials

<SENTENCE_START> { collision jni . bt material properties num materials set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 97.6%)

<SENTENCE_START> { collision jni . bt material properties num materials set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { collision jni . bt material properties num materials set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 3.6%)

<SENTENCE_START> { collision jni . bt material properties num materials set ( swig c ptr , this , value ) ; } <SENTENCE_END/>


Original Name get,num,materials

get

<SENTENCE_START> { return collision jni . bt material properties num materials get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 1.2%)

<SENTENCE_START> { return collision jni . bt material properties num materials get ( swig c ptr , this ) ; } <SENTENCE_END/>

num

<SENTENCE_START> { return collision jni . bt material properties num materials get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 99.9%)

<SENTENCE_START> { return collision jni . bt material properties num materials get ( swig c ptr , this ) ; } <SENTENCE_END/>

materials

<SENTENCE_START> { return collision jni . bt material properties num materials get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 97.9%)

<SENTENCE_START> { return collision jni . bt material properties num materials get ( swig c ptr , this ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return collision jni . bt material properties num materials get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 3.4%)

<SENTENCE_START> { return collision jni . bt material properties num materials get ( swig c ptr , this ) ; } <SENTENCE_END/>


Original Name set,material,base

set

<SENTENCE_START> { assert value . is direct ( ) : "Buffer must be allocated direct." ; { collision jni . bt material properties material base set ( swig c ptr , this , value ) ; } } <SENTENCE_END/>

(Copy Probability: 1.7%)

<SENTENCE_START> { assert value . is direct ( ) : "Buffer must be allocated direct." ; { collision jni . bt material properties material base set ( swig c ptr , this , value ) ; } } <SENTENCE_END/>

material

<SENTENCE_START> { assert value . is direct ( ) : "Buffer must be allocated direct." ; { collision jni . bt material properties material base set ( swig c ptr , this , value ) ; } } <SENTENCE_END/>

(Copy Probability: 99.2%)

<SENTENCE_START> { assert value . is direct ( ) : "Buffer must be allocated direct." ; { collision jni . bt material properties material base set ( swig c ptr , this , value ) ; } } <SENTENCE_END/>

base

<SENTENCE_START> { assert value . is direct ( ) : "Buffer must be allocated direct." ; { collision jni . bt material properties material base set ( swig c ptr , this , value ) ; } } <SENTENCE_END/>

(Copy Probability: 85.0%)

<SENTENCE_START> { assert value . is direct ( ) : "Buffer must be allocated direct." ; { collision jni . bt material properties material base set ( swig c ptr , this , value ) ; } } <SENTENCE_END/>

%END%

<SENTENCE_START> { assert value . is direct ( ) : "Buffer must be allocated direct." ; { collision jni . bt material properties material base set ( swig c ptr , this , value ) ; } } <SENTENCE_END/>

(Copy Probability: 2.2%)

<SENTENCE_START> { assert value . is direct ( ) : "Buffer must be allocated direct." ; { collision jni . bt material properties material base set ( swig c ptr , this , value ) ; } } <SENTENCE_END/>


Original Name get,material,base

get

<SENTENCE_START> { return collision jni . bt material properties material base get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 1.1%)

<SENTENCE_START> { return collision jni . bt material properties material base get ( swig c ptr , this ) ; } <SENTENCE_END/>

material

<SENTENCE_START> { return collision jni . bt material properties material base get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 99.8%)

<SENTENCE_START> { return collision jni . bt material properties material base get ( swig c ptr , this ) ; } <SENTENCE_END/>

base

<SENTENCE_START> { return collision jni . bt material properties material base get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 81.9%)

<SENTENCE_START> { return collision jni . bt material properties material base get ( swig c ptr , this ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return collision jni . bt material properties material base get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 1.8%)

<SENTENCE_START> { return collision jni . bt material properties material base get ( swig c ptr , this ) ; } <SENTENCE_END/>


Original Name set,material,stride

set

<SENTENCE_START> { collision jni . bt material properties material stride set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 1.4%)

<SENTENCE_START> { collision jni . bt material properties material stride set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

material

<SENTENCE_START> { collision jni . bt material properties material stride set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 99.9%)

<SENTENCE_START> { collision jni . bt material properties material stride set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

stride

<SENTENCE_START> { collision jni . bt material properties material stride set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 91.3%)

<SENTENCE_START> { collision jni . bt material properties material stride set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { collision jni . bt material properties material stride set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 1.5%)

<SENTENCE_START> { collision jni . bt material properties material stride set ( swig c ptr , this , value ) ; } <SENTENCE_END/>


Original Name get,material,stride

get

<SENTENCE_START> { return collision jni . bt material properties material stride get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 1.3%)

<SENTENCE_START> { return collision jni . bt material properties material stride get ( swig c ptr , this ) ; } <SENTENCE_END/>

material

<SENTENCE_START> { return collision jni . bt material properties material stride get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 99.8%)

<SENTENCE_START> { return collision jni . bt material properties material stride get ( swig c ptr , this ) ; } <SENTENCE_END/>

stride

<SENTENCE_START> { return collision jni . bt material properties material stride get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 89.1%)

<SENTENCE_START> { return collision jni . bt material properties material stride get ( swig c ptr , this ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return collision jni . bt material properties material stride get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 1.8%)

<SENTENCE_START> { return collision jni . bt material properties material stride get ( swig c ptr , this ) ; } <SENTENCE_END/>


Original Name set,material,type

set

<SENTENCE_START> { collision jni . bt material properties material type set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 1.2%)

<SENTENCE_START> { collision jni . bt material properties material type set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

material

<SENTENCE_START> { collision jni . bt material properties material type set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 99.9%)

<SENTENCE_START> { collision jni . bt material properties material type set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

type

<SENTENCE_START> { collision jni . bt material properties material type set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 96.6%)

<SENTENCE_START> { collision jni . bt material properties material type set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { collision jni . bt material properties material type set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 1.7%)

<SENTENCE_START> { collision jni . bt material properties material type set ( swig c ptr , this , value ) ; } <SENTENCE_END/>


Original Name get,material,type

get

<SENTENCE_START> { return collision jni . bt material properties material type get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 1.1%)

<SENTENCE_START> { return collision jni . bt material properties material type get ( swig c ptr , this ) ; } <SENTENCE_END/>

material

<SENTENCE_START> { return collision jni . bt material properties material type get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 99.8%)

<SENTENCE_START> { return collision jni . bt material properties material type get ( swig c ptr , this ) ; } <SENTENCE_END/>

type

<SENTENCE_START> { return collision jni . bt material properties material type get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 96.1%)

<SENTENCE_START> { return collision jni . bt material properties material type get ( swig c ptr , this ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return collision jni . bt material properties material type get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 2.0%)

<SENTENCE_START> { return collision jni . bt material properties material type get ( swig c ptr , this ) ; } <SENTENCE_END/>


Original Name set,num,triangles

set

<SENTENCE_START> { collision jni . bt material properties num triangles set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 1.6%)

<SENTENCE_START> { collision jni . bt material properties num triangles set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

num

<SENTENCE_START> { collision jni . bt material properties num triangles set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 99.9%)

<SENTENCE_START> { collision jni . bt material properties num triangles set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

triangles

<SENTENCE_START> { collision jni . bt material properties num triangles set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 98.5%)

<SENTENCE_START> { collision jni . bt material properties num triangles set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { collision jni . bt material properties num triangles set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 4.7%)

<SENTENCE_START> { collision jni . bt material properties num triangles set ( swig c ptr , this , value ) ; } <SENTENCE_END/>


Original Name get,num,triangles

get

<SENTENCE_START> { return collision jni . bt material properties num triangles get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 1.4%)

<SENTENCE_START> { return collision jni . bt material properties num triangles get ( swig c ptr , this ) ; } <SENTENCE_END/>

num

<SENTENCE_START> { return collision jni . bt material properties num triangles get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 99.8%)

<SENTENCE_START> { return collision jni . bt material properties num triangles get ( swig c ptr , this ) ; } <SENTENCE_END/>

triangles

<SENTENCE_START> { return collision jni . bt material properties num triangles get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 98.8%)

<SENTENCE_START> { return collision jni . bt material properties num triangles get ( swig c ptr , this ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return collision jni . bt material properties num triangles get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 5.4%)

<SENTENCE_START> { return collision jni . bt material properties num triangles get ( swig c ptr , this ) ; } <SENTENCE_END/>


Original Name set,triangle,materials,base

set

<SENTENCE_START> { assert value . is direct ( ) : "Buffer must be allocated direct." ; { collision jni . bt material properties triangle materials base set ( swig c ptr , this , value ) ; } } <SENTENCE_END/>

(Copy Probability: 2.9%)

<SENTENCE_START> { assert value . is direct ( ) : "Buffer must be allocated direct." ; { collision jni . bt material properties triangle materials base set ( swig c ptr , this , value ) ; } } <SENTENCE_END/>

triangle

<SENTENCE_START> { assert value . is direct ( ) : "Buffer must be allocated direct." ; { collision jni . bt material properties triangle materials base set ( swig c ptr , this , value ) ; } } <SENTENCE_END/>

(Copy Probability: 99.7%)

<SENTENCE_START> { assert value . is direct ( ) : "Buffer must be allocated direct." ; { collision jni . bt material properties triangle materials base set ( swig c ptr , this , value ) ; } } <SENTENCE_END/>

materials

<SENTENCE_START> { assert value . is direct ( ) : "Buffer must be allocated direct." ; { collision jni . bt material properties triangle materials base set ( swig c ptr , this , value ) ; } } <SENTENCE_END/>

(Copy Probability: 99.9%)

<SENTENCE_START> { assert value . is direct ( ) : "Buffer must be allocated direct." ; { collision jni . bt material properties triangle materials base set ( swig c ptr , this , value ) ; } } <SENTENCE_END/>

base

<SENTENCE_START> { assert value . is direct ( ) : "Buffer must be allocated direct." ; { collision jni . bt material properties triangle materials base set ( swig c ptr , this , value ) ; } } <SENTENCE_END/>

(Copy Probability: 87.3%)

<SENTENCE_START> { assert value . is direct ( ) : "Buffer must be allocated direct." ; { collision jni . bt material properties triangle materials base set ( swig c ptr , this , value ) ; } } <SENTENCE_END/>

%END%

<SENTENCE_START> { assert value . is direct ( ) : "Buffer must be allocated direct." ; { collision jni . bt material properties triangle materials base set ( swig c ptr , this , value ) ; } } <SENTENCE_END/>

(Copy Probability: 8.4%)

<SENTENCE_START> { assert value . is direct ( ) : "Buffer must be allocated direct." ; { collision jni . bt material properties triangle materials base set ( swig c ptr , this , value ) ; } } <SENTENCE_END/>


Original Name get,triangle,materials,base

get

<SENTENCE_START> { return collision jni . bt material properties triangle materials base get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 1.9%)

<SENTENCE_START> { return collision jni . bt material properties triangle materials base get ( swig c ptr , this ) ; } <SENTENCE_END/>

triangle

<SENTENCE_START> { return collision jni . bt material properties triangle materials base get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 99.8%)

<SENTENCE_START> { return collision jni . bt material properties triangle materials base get ( swig c ptr , this ) ; } <SENTENCE_END/>

materials

<SENTENCE_START> { return collision jni . bt material properties triangle materials base get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 100.0%)

<SENTENCE_START> { return collision jni . bt material properties triangle materials base get ( swig c ptr , this ) ; } <SENTENCE_END/>

base

<SENTENCE_START> { return collision jni . bt material properties triangle materials base get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 89.5%)

<SENTENCE_START> { return collision jni . bt material properties triangle materials base get ( swig c ptr , this ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return collision jni . bt material properties triangle materials base get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 7.3%)

<SENTENCE_START> { return collision jni . bt material properties triangle materials base get ( swig c ptr , this ) ; } <SENTENCE_END/>


Original Name set,triangle,material,stride

set

<SENTENCE_START> { collision jni . bt material properties triangle material stride set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 2.2%)

<SENTENCE_START> { collision jni . bt material properties triangle material stride set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

triangle

<SENTENCE_START> { collision jni . bt material properties triangle material stride set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 99.8%)

<SENTENCE_START> { collision jni . bt material properties triangle material stride set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

material

<SENTENCE_START> { collision jni . bt material properties triangle material stride set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 99.9%)

<SENTENCE_START> { collision jni . bt material properties triangle material stride set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

stride

<SENTENCE_START> { collision jni . bt material properties triangle material stride set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 74.9%)

<SENTENCE_START> { collision jni . bt material properties triangle material stride set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { collision jni . bt material properties triangle material stride set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 12.1%)

<SENTENCE_START> { collision jni . bt material properties triangle material stride set ( swig c ptr , this , value ) ; } <SENTENCE_END/>


Original Name get,triangle,material,stride

get

<SENTENCE_START> { return collision jni . bt material properties triangle material stride get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 2.0%)

<SENTENCE_START> { return collision jni . bt material properties triangle material stride get ( swig c ptr , this ) ; } <SENTENCE_END/>

triangle

<SENTENCE_START> { return collision jni . bt material properties triangle material stride get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 99.8%)

<SENTENCE_START> { return collision jni . bt material properties triangle material stride get ( swig c ptr , this ) ; } <SENTENCE_END/>

material

<SENTENCE_START> { return collision jni . bt material properties triangle material stride get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 99.9%)

<SENTENCE_START> { return collision jni . bt material properties triangle material stride get ( swig c ptr , this ) ; } <SENTENCE_END/>

stride

<SENTENCE_START> { return collision jni . bt material properties triangle material stride get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 81.4%)

<SENTENCE_START> { return collision jni . bt material properties triangle material stride get ( swig c ptr , this ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return collision jni . bt material properties triangle material stride get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 15.3%)

<SENTENCE_START> { return collision jni . bt material properties triangle material stride get ( swig c ptr , this ) ; } <SENTENCE_END/>


Original Name set,triangle,type

set

<SENTENCE_START> { collision jni . bt material properties triangle type set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 1.7%)

<SENTENCE_START> { collision jni . bt material properties triangle type set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

triangle

<SENTENCE_START> { collision jni . bt material properties triangle type set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 99.9%)

<SENTENCE_START> { collision jni . bt material properties triangle type set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

type

<SENTENCE_START> { collision jni . bt material properties triangle type set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 99.7%)

<SENTENCE_START> { collision jni . bt material properties triangle type set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { collision jni . bt material properties triangle type set ( swig c ptr , this , value ) ; } <SENTENCE_END/>

(Copy Probability: 12.5%)

<SENTENCE_START> { collision jni . bt material properties triangle type set ( swig c ptr , this , value ) ; } <SENTENCE_END/>


Original Name get,triangle,type

get

<SENTENCE_START> { return collision jni . bt material properties triangle type get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 1.5%)

<SENTENCE_START> { return collision jni . bt material properties triangle type get ( swig c ptr , this ) ; } <SENTENCE_END/>

triangle

<SENTENCE_START> { return collision jni . bt material properties triangle type get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 99.9%)

<SENTENCE_START> { return collision jni . bt material properties triangle type get ( swig c ptr , this ) ; } <SENTENCE_END/>

type

<SENTENCE_START> { return collision jni . bt material properties triangle type get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 99.8%)

<SENTENCE_START> { return collision jni . bt material properties triangle type get ( swig c ptr , this ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return collision jni . bt material properties triangle type get ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 16.7%)

<SENTENCE_START> { return collision jni . bt material properties triangle type get ( swig c ptr , this ) ; } <SENTENCE_END/>


Original Name main

main

<SENTENCE_START> { string path = "../../tests/gdx-tests-android/assets/data/maps/" ; string input = path + "tiled-atlas-src" ; string output = path + "tiled-atlas-processed/deleteMe" ; string verbose opt = "-v" ; string unused = "--strip-unused" ; string combine = "--combine-tilesets" ; string bad opt = "bad" ; file output dir = new file ( output ) ; if ( output dir . exists ( ) ) { system . out . println ( "Please run TiledMapPackerTestRender or delete "deleteMe" folder located in" ) ; system . out . println ( "gdx-tests-android: assets/data/maps/tiled-atlas-processed/deleteMe" ) ; return ; } test type test type = test type . default usage ; string [ ] no args = { } ; string [ ] default usage = { input , output } ; string [ ] verbose = { input , output , verbose opt } ; string [ ] strip unused = { input , output , unused } ; string [ ] combine tilesets = { input , output , combine } ; string [ ] unused and combine = { input , output , unused , combine } ; string [ ] bad option = { input , output , unused , verbose opt , combine , bad opt } ; switch ( test type ) { case no args : tiled map packer . %SELF% ( no args ) ; break ; case default usage : tiled map packer . %SELF% ( default usage ) ; break ; case verbose : tiled map packer . %SELF% ( verbose ) ; break ; case strip unused : tiled map packer . %SELF% ( strip unused ) ; break ; case combine tilesets : tiled map packer . %SELF% ( combine tilesets ) ; break ; case unused and combine : tiled map packer . %SELF% ( unused and combine ) ; break ; case bad option : tiled map packer . %SELF% ( bad option ) ; break ; default : break ; } } <SENTENCE_END/>

(Copy Probability: 4.1%)

<SENTENCE_START> { string path = "../../tests/gdx-tests-android/assets/data/maps/" ; string input = path + "tiled-atlas-src" ; string output = path + "tiled-atlas-processed/deleteMe" ; string verbose opt = "-v" ; string unused = "--strip-unused" ; string combine = "--combine-tilesets" ; string bad opt = "bad" ; file output dir = new file ( output ) ; if ( output dir . exists ( ) ) { system . out . println ( "Please run TiledMapPackerTestRender or delete "deleteMe" folder located in" ) ; system . out . println ( "gdx-tests-android: assets/data/maps/tiled-atlas-processed/deleteMe" ) ; return ; } test type test type = test type . default usage ; string [ ] no args = { } ; string [ ] default usage = { input , output } ; string [ ] verbose = { input , output , verbose opt } ; string [ ] strip unused = { input , output , unused } ; string [ ] combine tilesets = { input , output , combine } ; string [ ] unused and combine = { input , output , unused , combine } ; string [ ] bad option = { input , output , unused , verbose opt , combine , bad opt } ; switch ( test type ) { case no args : tiled map packer . %SELF% ( no args ) ; break ; case default usage : tiled map packer . %SELF% ( default usage ) ; break ; case verbose : tiled map packer . %SELF% ( verbose ) ; break ; case strip unused : tiled map packer . %SELF% ( strip unused ) ; break ; case combine tilesets : tiled map packer . %SELF% ( combine tilesets ) ; break ; case unused and combine : tiled map packer . %SELF% ( unused and combine ) ; break ; case bad option : tiled map packer . %SELF% ( bad option ) ; break ; default : break ; } } <SENTENCE_END/>

%END%

<SENTENCE_START> { string path = "../../tests/gdx-tests-android/assets/data/maps/" ; string input = path + "tiled-atlas-src" ; string output = path + "tiled-atlas-processed/deleteMe" ; string verbose opt = "-v" ; string unused = "--strip-unused" ; string combine = "--combine-tilesets" ; string bad opt = "bad" ; file output dir = new file ( output ) ; if ( output dir . exists ( ) ) { system . out . println ( "Please run TiledMapPackerTestRender or delete "deleteMe" folder located in" ) ; system . out . println ( "gdx-tests-android: assets/data/maps/tiled-atlas-processed/deleteMe" ) ; return ; } test type test type = test type . default usage ; string [ ] no args = { } ; string [ ] default usage = { input , output } ; string [ ] verbose = { input , output , verbose opt } ; string [ ] strip unused = { input , output , unused } ; string [ ] combine tilesets = { input , output , combine } ; string [ ] unused and combine = { input , output , unused , combine } ; string [ ] bad option = { input , output , unused , verbose opt , combine , bad opt } ; switch ( test type ) { case no args : tiled map packer . %SELF% ( no args ) ; break ; case default usage : tiled map packer . %SELF% ( default usage ) ; break ; case verbose : tiled map packer . %SELF% ( verbose ) ; break ; case strip unused : tiled map packer . %SELF% ( strip unused ) ; break ; case combine tilesets : tiled map packer . %SELF% ( combine tilesets ) ; break ; case unused and combine : tiled map packer . %SELF% ( unused and combine ) ; break ; case bad option : tiled map packer . %SELF% ( bad option ) ; break ; default : break ; } } <SENTENCE_END/>

(Copy Probability: 13.6%)

<SENTENCE_START> { string path = "../../tests/gdx-tests-android/assets/data/maps/" ; string input = path + "tiled-atlas-src" ; string output = path + "tiled-atlas-processed/deleteMe" ; string verbose opt = "-v" ; string unused = "--strip-unused" ; string combine = "--combine-tilesets" ; string bad opt = "bad" ; file output dir = new file ( output ) ; if ( output dir . exists ( ) ) { system . out . println ( "Please run TiledMapPackerTestRender or delete "deleteMe" folder located in" ) ; system . out . println ( "gdx-tests-android: assets/data/maps/tiled-atlas-processed/deleteMe" ) ; return ; } test type test type = test type . default usage ; string [ ] no args = { } ; string [ ] default usage = { input , output } ; string [ ] verbose = { input , output , verbose opt } ; string [ ] strip unused = { input , output , unused } ; string [ ] combine tilesets = { input , output , combine } ; string [ ] unused and combine = { input , output , unused , combine } ; string [ ] bad option = { input , output , unused , verbose opt , combine , bad opt } ; switch ( test type ) { case no args : tiled map packer . %SELF% ( no args ) ; break ; case default usage : tiled map packer . %SELF% ( default usage ) ; break ; case verbose : tiled map packer . %SELF% ( verbose ) ; break ; case strip unused : tiled map packer . %SELF% ( strip unused ) ; break ; case combine tilesets : tiled map packer . %SELF% ( combine tilesets ) ; break ; case unused and combine : tiled map packer . %SELF% ( unused and combine ) ; break ; case bad option : tiled map packer . %SELF% ( bad option ) ; break ; default : break ; } } <SENTENCE_END/>


Original Name get,c,ptr

get

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

(Copy Probability: 1.5%)

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

c

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

(Copy Probability: 99.7%)

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

ptr

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

(Copy Probability: 99.8%)

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>

(Copy Probability: 3.7%)

<SENTENCE_START> { return ( obj == null ) ? 0 : obj . swig c ptr ; } <SENTENCE_END/>


Original Name set,bound

set

<SENTENCE_START> { collision jni . gim bvh tree node bound set ( swig c ptr , this , bt aabb . get c ptr ( value ) , value ) ; } <SENTENCE_END/>

(Copy Probability: 2.9%)

<SENTENCE_START> { collision jni . gim bvh tree node bound set ( swig c ptr , this , bt aabb . get c ptr ( value ) , value ) ; } <SENTENCE_END/>

bound

<SENTENCE_START> { collision jni . gim bvh tree node bound set ( swig c ptr , this , bt aabb . get c ptr ( value ) , value ) ; } <SENTENCE_END/>

(Copy Probability: 99.8%)

<SENTENCE_START> { collision jni . gim bvh tree node bound set ( swig c ptr , this , bt aabb . get c ptr ( value ) , value ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { collision jni . gim bvh tree node bound set ( swig c ptr , this , bt aabb . get c ptr ( value ) , value ) ; } <SENTENCE_END/>

(Copy Probability: 99.8%)

<SENTENCE_START> { collision jni . gim bvh tree node bound set ( swig c ptr , this , bt aabb . get c ptr ( value ) , value ) ; } <SENTENCE_END/>


Original Name get,bound

get

<SENTENCE_START> { long c ptr = collision jni . gim bvh tree node bound get ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new bt aabb ( c ptr , false ) ; } <SENTENCE_END/>

(Copy Probability: 2.9%)

<SENTENCE_START> { long c ptr = collision jni . gim bvh tree node bound get ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new bt aabb ( c ptr , false ) ; } <SENTENCE_END/>

bound

<SENTENCE_START> { long c ptr = collision jni . gim bvh tree node bound get ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new bt aabb ( c ptr , false ) ; } <SENTENCE_END/>

(Copy Probability: 99.8%)

<SENTENCE_START> { long c ptr = collision jni . gim bvh tree node bound get ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new bt aabb ( c ptr , false ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { long c ptr = collision jni . gim bvh tree node bound get ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new bt aabb ( c ptr , false ) ; } <SENTENCE_END/>

(Copy Probability: 99.8%)

<SENTENCE_START> { long c ptr = collision jni . gim bvh tree node bound get ( swig c ptr , this ) ; return ( c ptr == 0 ) ? null : new bt aabb ( c ptr , false ) ; } <SENTENCE_END/>


Original Name is,leaf,node

is

<SENTENCE_START> { return collision jni . gim bvh tree node is leaf node ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 2.8%)

<SENTENCE_START> { return collision jni . gim bvh tree node is leaf node ( swig c ptr , this ) ; } <SENTENCE_END/>

leaf

<SENTENCE_START> { return collision jni . gim bvh tree node is leaf node ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 97.4%)

<SENTENCE_START> { return collision jni . gim bvh tree node is leaf node ( swig c ptr , this ) ; } <SENTENCE_END/>

node

<SENTENCE_START> { return collision jni . gim bvh tree node is leaf node ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 85.5%)

<SENTENCE_START> { return collision jni . gim bvh tree node is leaf node ( swig c ptr , this ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return collision jni . gim bvh tree node is leaf node ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 16.0%)

<SENTENCE_START> { return collision jni . gim bvh tree node is leaf node ( swig c ptr , this ) ; } <SENTENCE_END/>


Original Name get,escape,index

get

<SENTENCE_START> { return collision jni . gim bvh tree node get escape index ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 1.7%)

<SENTENCE_START> { return collision jni . gim bvh tree node get escape index ( swig c ptr , this ) ; } <SENTENCE_END/>

escape

<SENTENCE_START> { return collision jni . gim bvh tree node get escape index ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 98.5%)

<SENTENCE_START> { return collision jni . gim bvh tree node get escape index ( swig c ptr , this ) ; } <SENTENCE_END/>

index

<SENTENCE_START> { return collision jni . gim bvh tree node get escape index ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 98.1%)

<SENTENCE_START> { return collision jni . gim bvh tree node get escape index ( swig c ptr , this ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return collision jni . gim bvh tree node get escape index ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 15.1%)

<SENTENCE_START> { return collision jni . gim bvh tree node get escape index ( swig c ptr , this ) ; } <SENTENCE_END/>


Original Name set,escape,index

set

<SENTENCE_START> { collision jni . gim bvh tree node set escape index ( swig c ptr , this , index ) ; } <SENTENCE_END/>

(Copy Probability: 1.7%)

<SENTENCE_START> { collision jni . gim bvh tree node set escape index ( swig c ptr , this , index ) ; } <SENTENCE_END/>

escape

<SENTENCE_START> { collision jni . gim bvh tree node set escape index ( swig c ptr , this , index ) ; } <SENTENCE_END/>

(Copy Probability: 97.4%)

<SENTENCE_START> { collision jni . gim bvh tree node set escape index ( swig c ptr , this , index ) ; } <SENTENCE_END/>

index

<SENTENCE_START> { collision jni . gim bvh tree node set escape index ( swig c ptr , this , index ) ; } <SENTENCE_END/>

(Copy Probability: 96.4%)

<SENTENCE_START> { collision jni . gim bvh tree node set escape index ( swig c ptr , this , index ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { collision jni . gim bvh tree node set escape index ( swig c ptr , this , index ) ; } <SENTENCE_END/>

(Copy Probability: 11.2%)

<SENTENCE_START> { collision jni . gim bvh tree node set escape index ( swig c ptr , this , index ) ; } <SENTENCE_END/>


Original Name get,data,index

get

<SENTENCE_START> { return collision jni . gim bvh tree node get data index ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 1.4%)

<SENTENCE_START> { return collision jni . gim bvh tree node get data index ( swig c ptr , this ) ; } <SENTENCE_END/>

data

<SENTENCE_START> { return collision jni . gim bvh tree node get data index ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 99.4%)

<SENTENCE_START> { return collision jni . gim bvh tree node get data index ( swig c ptr , this ) ; } <SENTENCE_END/>

index

<SENTENCE_START> { return collision jni . gim bvh tree node get data index ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 94.7%)

<SENTENCE_START> { return collision jni . gim bvh tree node get data index ( swig c ptr , this ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return collision jni . gim bvh tree node get data index ( swig c ptr , this ) ; } <SENTENCE_END/>

(Copy Probability: 5.6%)

<SENTENCE_START> { return collision jni . gim bvh tree node get data index ( swig c ptr , this ) ; } <SENTENCE_END/>


Original Name set,data,index

set

<SENTENCE_START> { collision jni . gim bvh tree node set data index ( swig c ptr , this , index ) ; } <SENTENCE_END/>

(Copy Probability: 1.7%)

<SENTENCE_START> { collision jni . gim bvh tree node set data index ( swig c ptr , this , index ) ; } <SENTENCE_END/>

data

<SENTENCE_START> { collision jni . gim bvh tree node set data index ( swig c ptr , this , index ) ; } <SENTENCE_END/>

(Copy Probability: 99.4%)

<SENTENCE_START> { collision jni . gim bvh tree node set data index ( swig c ptr , this , index ) ; } <SENTENCE_END/>

index

<SENTENCE_START> { collision jni . gim bvh tree node set data index ( swig c ptr , this , index ) ; } <SENTENCE_END/>

(Copy Probability: 92.2%)

<SENTENCE_START> { collision jni . gim bvh tree node set data index ( swig c ptr , this , index ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { collision jni . gim bvh tree node set data index ( swig c ptr , this , index ) ; } <SENTENCE_END/>

(Copy Probability: 4.2%)

<SENTENCE_START> { collision jni . gim bvh tree node set data index ( swig c ptr , this , index ) ; } <SENTENCE_END/>


Original Name set

set

<SENTENCE_START> { return this . %SELF% ( matrix . val ) ; } <SENTENCE_END/>

(Copy Probability: 0.5%)

<SENTENCE_START> { return this . %SELF% ( matrix . val ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return this . %SELF% ( matrix . val ) ; } <SENTENCE_END/>

(Copy Probability: 0.3%)

<SENTENCE_START> { return this . %SELF% ( matrix . val ) ; } <SENTENCE_END/>


Original Name set

set

<SENTENCE_START> { system . arraycopy ( values , 0 , val , 0 , val . length ) ; return this ; } <SENTENCE_END/>

(Copy Probability: 0.7%)

<SENTENCE_START> { system . arraycopy ( values , 0 , val , 0 , val . length ) ; return this ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { system . arraycopy ( values , 0 , val , 0 , val . length ) ; return this ; } <SENTENCE_END/>

(Copy Probability: 0.7%)

<SENTENCE_START> { system . arraycopy ( values , 0 , val , 0 , val . length ) ; return this ; } <SENTENCE_END/>


Original Name set

set

<SENTENCE_START> { return %SELF% ( quaternion . x , quaternion . y , quaternion . z , quaternion . w ) ; } <SENTENCE_END/>

(Copy Probability: 0.9%)

<SENTENCE_START> { return %SELF% ( quaternion . x , quaternion . y , quaternion . z , quaternion . w ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return %SELF% ( quaternion . x , quaternion . y , quaternion . z , quaternion . w ) ; } <SENTENCE_END/>

(Copy Probability: 0.5%)

<SENTENCE_START> { return %SELF% ( quaternion . x , quaternion . y , quaternion . z , quaternion . w ) ; } <SENTENCE_END/>


Original Name set

set

<SENTENCE_START> { return %SELF% ( 0f , 0f , 0f , quaternion x , quaternion y , quaternion z , quaternion w ) ; } <SENTENCE_END/>

(Copy Probability: 0.9%)

<SENTENCE_START> { return %SELF% ( 0f , 0f , 0f , quaternion x , quaternion y , quaternion z , quaternion w ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return %SELF% ( 0f , 0f , 0f , quaternion x , quaternion y , quaternion z , quaternion w ) ; } <SENTENCE_END/>

(Copy Probability: 0.7%)

<SENTENCE_START> { return %SELF% ( 0f , 0f , 0f , quaternion x , quaternion y , quaternion z , quaternion w ) ; } <SENTENCE_END/>


Original Name set

set

<SENTENCE_START> { return %SELF% ( position . x , position . y , position . z , orientation . x , orientation . y , orientation . z , orientation . w ) ; } <SENTENCE_END/>

(Copy Probability: 1.5%)

<SENTENCE_START> { return %SELF% ( position . x , position . y , position . z , orientation . x , orientation . y , orientation . z , orientation . w ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return %SELF% ( position . x , position . y , position . z , orientation . x , orientation . y , orientation . z , orientation . w ) ; } <SENTENCE_END/>

(Copy Probability: 1.2%)

<SENTENCE_START> { return %SELF% ( position . x , position . y , position . z , orientation . x , orientation . y , orientation . z , orientation . w ) ; } <SENTENCE_END/>


Original Name set

set

<SENTENCE_START> { final float xs = quaternion x * 2f , ys = quaternion y * 2f , zs = quaternion z * 2f ; final float wx = quaternion w * xs , wy = quaternion w * ys , wz = quaternion w * zs ; final float xx = quaternion x * xs , xy = quaternion x * ys , xz = quaternion x * zs ; final float yy = quaternion y * ys , yz = quaternion y * zs , zz = quaternion z * zs ; val [ m 00 ] = ( 1.0f - ( yy + zz ) ) ; val [ m 01 ] = ( xy - wz ) ; val [ m 02 ] = ( xz + wy ) ; val [ m 03 ] = translation x ; val [ m 10 ] = ( xy + wz ) ; val [ m 11 ] = ( 1.0f - ( xx + zz ) ) ; val [ m 12 ] = ( yz - wx ) ; val [ m 13 ] = translation y ; val [ m 20 ] = ( xz - wy ) ; val [ m 21 ] = ( yz + wx ) ; val [ m 22 ] = ( 1.0f - ( xx + yy ) ) ; val [ m 23 ] = translation z ; val [ m 30 ] = 0.f ; val [ m 31 ] = 0.f ; val [ m 32 ] = 0.f ; val [ m 33 ] = 1.0f ; return this ; } <SENTENCE_END/>

(Copy Probability: 2.8%)

<SENTENCE_START> { final float xs = quaternion x * 2f , ys = quaternion y * 2f , zs = quaternion z * 2f ; final float wx = quaternion w * xs , wy = quaternion w * ys , wz = quaternion w * zs ; final float xx = quaternion x * xs , xy = quaternion x * ys , xz = quaternion x * zs ; final float yy = quaternion y * ys , yz = quaternion y * zs , zz = quaternion z * zs ; val [ m 00 ] = ( 1.0f - ( yy + zz ) ) ; val [ m 01 ] = ( xy - wz ) ; val [ m 02 ] = ( xz + wy ) ; val [ m 03 ] = translation x ; val [ m 10 ] = ( xy + wz ) ; val [ m 11 ] = ( 1.0f - ( xx + zz ) ) ; val [ m 12 ] = ( yz - wx ) ; val [ m 13 ] = translation y ; val [ m 20 ] = ( xz - wy ) ; val [ m 21 ] = ( yz + wx ) ; val [ m 22 ] = ( 1.0f - ( xx + yy ) ) ; val [ m 23 ] = translation z ; val [ m 30 ] = 0.f ; val [ m 31 ] = 0.f ; val [ m 32 ] = 0.f ; val [ m 33 ] = 1.0f ; return this ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { final float xs = quaternion x * 2f , ys = quaternion y * 2f , zs = quaternion z * 2f ; final float wx = quaternion w * xs , wy = quaternion w * ys , wz = quaternion w * zs ; final float xx = quaternion x * xs , xy = quaternion x * ys , xz = quaternion x * zs ; final float yy = quaternion y * ys , yz = quaternion y * zs , zz = quaternion z * zs ; val [ m 00 ] = ( 1.0f - ( yy + zz ) ) ; val [ m 01 ] = ( xy - wz ) ; val [ m 02 ] = ( xz + wy ) ; val [ m 03 ] = translation x ; val [ m 10 ] = ( xy + wz ) ; val [ m 11 ] = ( 1.0f - ( xx + zz ) ) ; val [ m 12 ] = ( yz - wx ) ; val [ m 13 ] = translation y ; val [ m 20 ] = ( xz - wy ) ; val [ m 21 ] = ( yz + wx ) ; val [ m 22 ] = ( 1.0f - ( xx + yy ) ) ; val [ m 23 ] = translation z ; val [ m 30 ] = 0.f ; val [ m 31 ] = 0.f ; val [ m 32 ] = 0.f ; val [ m 33 ] = 1.0f ; return this ; } <SENTENCE_END/>

(Copy Probability: 3.8%)

<SENTENCE_START> { final float xs = quaternion x * 2f , ys = quaternion y * 2f , zs = quaternion z * 2f ; final float wx = quaternion w * xs , wy = quaternion w * ys , wz = quaternion w * zs ; final float xx = quaternion x * xs , xy = quaternion x * ys , xz = quaternion x * zs ; final float yy = quaternion y * ys , yz = quaternion y * zs , zz = quaternion z * zs ; val [ m 00 ] = ( 1.0f - ( yy + zz ) ) ; val [ m 01 ] = ( xy - wz ) ; val [ m 02 ] = ( xz + wy ) ; val [ m 03 ] = translation x ; val [ m 10 ] = ( xy + wz ) ; val [ m 11 ] = ( 1.0f - ( xx + zz ) ) ; val [ m 12 ] = ( yz - wx ) ; val [ m 13 ] = translation y ; val [ m 20 ] = ( xz - wy ) ; val [ m 21 ] = ( yz + wx ) ; val [ m 22 ] = ( 1.0f - ( xx + yy ) ) ; val [ m 23 ] = translation z ; val [ m 30 ] = 0.f ; val [ m 31 ] = 0.f ; val [ m 32 ] = 0.f ; val [ m 33 ] = 1.0f ; return this ; } <SENTENCE_END/>


Original Name set

set

<SENTENCE_START> { return %SELF% ( position . x , position . y , position . z , orientation . x , orientation . y , orientation . z , orientation . w , scale . x , scale . y , scale . z ) ; } <SENTENCE_END/>

(Copy Probability: 2.2%)

<SENTENCE_START> { return %SELF% ( position . x , position . y , position . z , orientation . x , orientation . y , orientation . z , orientation . w , scale . x , scale . y , scale . z ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return %SELF% ( position . x , position . y , position . z , orientation . x , orientation . y , orientation . z , orientation . w , scale . x , scale . y , scale . z ) ; } <SENTENCE_END/>

(Copy Probability: 1.4%)

<SENTENCE_START> { return %SELF% ( position . x , position . y , position . z , orientation . x , orientation . y , orientation . z , orientation . w , scale . x , scale . y , scale . z ) ; } <SENTENCE_END/>


Original Name set

set

<SENTENCE_START> { final float xs = quaternion x * 2f , ys = quaternion y * 2f , zs = quaternion z * 2f ; final float wx = quaternion w * xs , wy = quaternion w * ys , wz = quaternion w * zs ; final float xx = quaternion x * xs , xy = quaternion x * ys , xz = quaternion x * zs ; final float yy = quaternion y * ys , yz = quaternion y * zs , zz = quaternion z * zs ; val [ m 00 ] = scale x * ( 1.0f - ( yy + zz ) ) ; val [ m 01 ] = scale y * ( xy - wz ) ; val [ m 02 ] = scale z * ( xz + wy ) ; val [ m 03 ] = translation x ; val [ m 10 ] = scale x * ( xy + wz ) ; val [ m 11 ] = scale y * ( 1.0f - ( xx + zz ) ) ; val [ m 12 ] = scale z * ( yz - wx ) ; val [ m 13 ] = translation y ; val [ m 20 ] = scale x * ( xz - wy ) ; val [ m 21 ] = scale y * ( yz + wx ) ; val [ m 22 ] = scale z * ( 1.0f - ( xx + yy ) ) ; val [ m 23 ] = translation z ; val [ m 30 ] = 0.f ; val [ m 31 ] = 0.f ; val [ m 32 ] = 0.f ; val [ m 33 ] = 1.0f ; return this ; } <SENTENCE_END/>

(Copy Probability: 2.8%)

<SENTENCE_START> { final float xs = quaternion x * 2f , ys = quaternion y * 2f , zs = quaternion z * 2f ; final float wx = quaternion w * xs , wy = quaternion w * ys , wz = quaternion w * zs ; final float xx = quaternion x * xs , xy = quaternion x * ys , xz = quaternion x * zs ; final float yy = quaternion y * ys , yz = quaternion y * zs , zz = quaternion z * zs ; val [ m 00 ] = scale x * ( 1.0f - ( yy + zz ) ) ; val [ m 01 ] = scale y * ( xy - wz ) ; val [ m 02 ] = scale z * ( xz + wy ) ; val [ m 03 ] = translation x ; val [ m 10 ] = scale x * ( xy + wz ) ; val [ m 11 ] = scale y * ( 1.0f - ( xx + zz ) ) ; val [ m 12 ] = scale z * ( yz - wx ) ; val [ m 13 ] = translation y ; val [ m 20 ] = scale x * ( xz - wy ) ; val [ m 21 ] = scale y * ( yz + wx ) ; val [ m 22 ] = scale z * ( 1.0f - ( xx + yy ) ) ; val [ m 23 ] = translation z ; val [ m 30 ] = 0.f ; val [ m 31 ] = 0.f ; val [ m 32 ] = 0.f ; val [ m 33 ] = 1.0f ; return this ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { final float xs = quaternion x * 2f , ys = quaternion y * 2f , zs = quaternion z * 2f ; final float wx = quaternion w * xs , wy = quaternion w * ys , wz = quaternion w * zs ; final float xx = quaternion x * xs , xy = quaternion x * ys , xz = quaternion x * zs ; final float yy = quaternion y * ys , yz = quaternion y * zs , zz = quaternion z * zs ; val [ m 00 ] = scale x * ( 1.0f - ( yy + zz ) ) ; val [ m 01 ] = scale y * ( xy - wz ) ; val [ m 02 ] = scale z * ( xz + wy ) ; val [ m 03 ] = translation x ; val [ m 10 ] = scale x * ( xy + wz ) ; val [ m 11 ] = scale y * ( 1.0f - ( xx + zz ) ) ; val [ m 12 ] = scale z * ( yz - wx ) ; val [ m 13 ] = translation y ; val [ m 20 ] = scale x * ( xz - wy ) ; val [ m 21 ] = scale y * ( yz + wx ) ; val [ m 22 ] = scale z * ( 1.0f - ( xx + yy ) ) ; val [ m 23 ] = translation z ; val [ m 30 ] = 0.f ; val [ m 31 ] = 0.f ; val [ m 32 ] = 0.f ; val [ m 33 ] = 1.0f ; return this ; } <SENTENCE_END/>

(Copy Probability: 3.0%)

<SENTENCE_START> { final float xs = quaternion x * 2f , ys = quaternion y * 2f , zs = quaternion z * 2f ; final float wx = quaternion w * xs , wy = quaternion w * ys , wz = quaternion w * zs ; final float xx = quaternion x * xs , xy = quaternion x * ys , xz = quaternion x * zs ; final float yy = quaternion y * ys , yz = quaternion y * zs , zz = quaternion z * zs ; val [ m 00 ] = scale x * ( 1.0f - ( yy + zz ) ) ; val [ m 01 ] = scale y * ( xy - wz ) ; val [ m 02 ] = scale z * ( xz + wy ) ; val [ m 03 ] = translation x ; val [ m 10 ] = scale x * ( xy + wz ) ; val [ m 11 ] = scale y * ( 1.0f - ( xx + zz ) ) ; val [ m 12 ] = scale z * ( yz - wx ) ; val [ m 13 ] = translation y ; val [ m 20 ] = scale x * ( xz - wy ) ; val [ m 21 ] = scale y * ( yz + wx ) ; val [ m 22 ] = scale z * ( 1.0f - ( xx + yy ) ) ; val [ m 23 ] = translation z ; val [ m 30 ] = 0.f ; val [ m 31 ] = 0.f ; val [ m 32 ] = 0.f ; val [ m 33 ] = 1.0f ; return this ; } <SENTENCE_END/>


Original Name set

set

<SENTENCE_START> { val [ m 00 ] = x axis . x ; val [ m 01 ] = x axis . y ; val [ m 02 ] = x axis . z ; val [ m 10 ] = y axis . x ; val [ m 11 ] = y axis . y ; val [ m 12 ] = y axis . z ; val [ m 20 ] = z axis . x ; val [ m 21 ] = z axis . y ; val [ m 22 ] = z axis . z ; val [ m 03 ] = pos . x ; val [ m 13 ] = pos . y ; val [ m 23 ] = pos . z ; val [ m 30 ] = 0 ; val [ m 31 ] = 0 ; val [ m 32 ] = 0 ; val [ m 33 ] = 1 ; return this ; } <SENTENCE_END/>

(Copy Probability: 2.5%)

<SENTENCE_START> { val [ m 00 ] = x axis . x ; val [ m 01 ] = x axis . y ; val [ m 02 ] = x axis . z ; val [ m 10 ] = y axis . x ; val [ m 11 ] = y axis . y ; val [ m 12 ] = y axis . z ; val [ m 20 ] = z axis . x ; val [ m 21 ] = z axis . y ; val [ m 22 ] = z axis . z ; val [ m 03 ] = pos . x ; val [ m 13 ] = pos . y ; val [ m 23 ] = pos . z ; val [ m 30 ] = 0 ; val [ m 31 ] = 0 ; val [ m 32 ] = 0 ; val [ m 33 ] = 1 ; return this ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { val [ m 00 ] = x axis . x ; val [ m 01 ] = x axis . y ; val [ m 02 ] = x axis . z ; val [ m 10 ] = y axis . x ; val [ m 11 ] = y axis . y ; val [ m 12 ] = y axis . z ; val [ m 20 ] = z axis . x ; val [ m 21 ] = z axis . y ; val [ m 22 ] = z axis . z ; val [ m 03 ] = pos . x ; val [ m 13 ] = pos . y ; val [ m 23 ] = pos . z ; val [ m 30 ] = 0 ; val [ m 31 ] = 0 ; val [ m 32 ] = 0 ; val [ m 33 ] = 1 ; return this ; } <SENTENCE_END/>

(Copy Probability: 3.8%)

<SENTENCE_START> { val [ m 00 ] = x axis . x ; val [ m 01 ] = x axis . y ; val [ m 02 ] = x axis . z ; val [ m 10 ] = y axis . x ; val [ m 11 ] = y axis . y ; val [ m 12 ] = y axis . z ; val [ m 20 ] = z axis . x ; val [ m 21 ] = z axis . y ; val [ m 22 ] = z axis . z ; val [ m 03 ] = pos . x ; val [ m 13 ] = pos . y ; val [ m 23 ] = pos . z ; val [ m 30 ] = 0 ; val [ m 31 ] = 0 ; val [ m 32 ] = 0 ; val [ m 33 ] = 1 ; return this ; } <SENTENCE_END/>


Original Name cpy

cpy

<SENTENCE_START> { return new matrix 4 ( this ) ; } <SENTENCE_END/>

(Copy Probability: 0.5%)

<SENTENCE_START> { return new matrix 4 ( this ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return new matrix 4 ( this ) ; } <SENTENCE_END/>

(Copy Probability: 0.3%)

<SENTENCE_START> { return new matrix 4 ( this ) ; } <SENTENCE_END/>


Original Name trn

trn

<SENTENCE_START> { val [ m 03 ] += vector . x ; val [ m 13 ] += vector . y ; val [ m 23 ] += vector . z ; return this ; } <SENTENCE_END/>

(Copy Probability: 1.3%)

<SENTENCE_START> { val [ m 03 ] += vector . x ; val [ m 13 ] += vector . y ; val [ m 23 ] += vector . z ; return this ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { val [ m 03 ] += vector . x ; val [ m 13 ] += vector . y ; val [ m 23 ] += vector . z ; return this ; } <SENTENCE_END/>

(Copy Probability: 0.9%)

<SENTENCE_START> { val [ m 03 ] += vector . x ; val [ m 13 ] += vector . y ; val [ m 23 ] += vector . z ; return this ; } <SENTENCE_END/>


Original Name trn

trn

<SENTENCE_START> { val [ m 03 ] += x ; val [ m 13 ] += y ; val [ m 23 ] += z ; return this ; } <SENTENCE_END/>

(Copy Probability: 1.1%)

<SENTENCE_START> { val [ m 03 ] += x ; val [ m 13 ] += y ; val [ m 23 ] += z ; return this ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { val [ m 03 ] += x ; val [ m 13 ] += y ; val [ m 23 ] += z ; return this ; } <SENTENCE_END/>

(Copy Probability: 0.9%)

<SENTENCE_START> { val [ m 03 ] += x ; val [ m 13 ] += y ; val [ m 23 ] += z ; return this ; } <SENTENCE_END/>


Original Name get,values

get

<SENTENCE_START> { return val ; } <SENTENCE_END/>

(Copy Probability: 0.2%)

<SENTENCE_START> { return val ; } <SENTENCE_END/>

values

<SENTENCE_START> { return val ; } <SENTENCE_END/>

(Copy Probability: 6.5%)

<SENTENCE_START> { return val ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return val ; } <SENTENCE_END/>

(Copy Probability: 0.7%)

<SENTENCE_START> { return val ; } <SENTENCE_END/>


Original Name mul

mul

<SENTENCE_START> { %SELF% ( val , matrix . val ) ; return this ; } <SENTENCE_END/>

(Copy Probability: 0.4%)

<SENTENCE_START> { %SELF% ( val , matrix . val ) ; return this ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { %SELF% ( val , matrix . val ) ; return this ; } <SENTENCE_END/>

(Copy Probability: 0.2%)

<SENTENCE_START> { %SELF% ( val , matrix . val ) ; return this ; } <SENTENCE_END/>


Original Name mul,left

mul

<SENTENCE_START> { tmp mat . set ( matrix ) ; mul ( tmp mat . val , this . val ) ; return set ( tmp mat ) ; } <SENTENCE_END/>

(Copy Probability: 1.3%)

<SENTENCE_START> { tmp mat . set ( matrix ) ; mul ( tmp mat . val , this . val ) ; return set ( tmp mat ) ; } <SENTENCE_END/>

left

<SENTENCE_START> { tmp mat . set ( matrix ) ; mul ( tmp mat . val , this . val ) ; return set ( tmp mat ) ; } <SENTENCE_END/>

(Copy Probability: 1.4%)

<SENTENCE_START> { tmp mat . set ( matrix ) ; mul ( tmp mat . val , this . val ) ; return set ( tmp mat ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { tmp mat . set ( matrix ) ; mul ( tmp mat . val , this . val ) ; return set ( tmp mat ) ; } <SENTENCE_END/>

(Copy Probability: 1.9%)

<SENTENCE_START> { tmp mat . set ( matrix ) ; mul ( tmp mat . val , this . val ) ; return set ( tmp mat ) ; } <SENTENCE_END/>


Original Name tra

tra

<SENTENCE_START> { tmp [ m 00 ] = val [ m 00 ] ; tmp [ m 01 ] = val [ m 10 ] ; tmp [ m 02 ] = val [ m 20 ] ; tmp [ m 03 ] = val [ m 30 ] ; tmp [ m 10 ] = val [ m 01 ] ; tmp [ m 11 ] = val [ m 11 ] ; tmp [ m 12 ] = val [ m 21 ] ; tmp [ m 13 ] = val [ m 31 ] ; tmp [ m 20 ] = val [ m 02 ] ; tmp [ m 21 ] = val [ m 12 ] ; tmp [ m 22 ] = val [ m 22 ] ; tmp [ m 23 ] = val [ m 32 ] ; tmp [ m 30 ] = val [ m 03 ] ; tmp [ m 31 ] = val [ m 13 ] ; tmp [ m 32 ] = val [ m 23 ] ; tmp [ m 33 ] = val [ m 33 ] ; return set ( tmp ) ; } <SENTENCE_END/>

(Copy Probability: 2.3%)

<SENTENCE_START> { tmp [ m 00 ] = val [ m 00 ] ; tmp [ m 01 ] = val [ m 10 ] ; tmp [ m 02 ] = val [ m 20 ] ; tmp [ m 03 ] = val [ m 30 ] ; tmp [ m 10 ] = val [ m 01 ] ; tmp [ m 11 ] = val [ m 11 ] ; tmp [ m 12 ] = val [ m 21 ] ; tmp [ m 13 ] = val [ m 31 ] ; tmp [ m 20 ] = val [ m 02 ] ; tmp [ m 21 ] = val [ m 12 ] ; tmp [ m 22 ] = val [ m 22 ] ; tmp [ m 23 ] = val [ m 32 ] ; tmp [ m 30 ] = val [ m 03 ] ; tmp [ m 31 ] = val [ m 13 ] ; tmp [ m 32 ] = val [ m 23 ] ; tmp [ m 33 ] = val [ m 33 ] ; return set ( tmp ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { tmp [ m 00 ] = val [ m 00 ] ; tmp [ m 01 ] = val [ m 10 ] ; tmp [ m 02 ] = val [ m 20 ] ; tmp [ m 03 ] = val [ m 30 ] ; tmp [ m 10 ] = val [ m 01 ] ; tmp [ m 11 ] = val [ m 11 ] ; tmp [ m 12 ] = val [ m 21 ] ; tmp [ m 13 ] = val [ m 31 ] ; tmp [ m 20 ] = val [ m 02 ] ; tmp [ m 21 ] = val [ m 12 ] ; tmp [ m 22 ] = val [ m 22 ] ; tmp [ m 23 ] = val [ m 32 ] ; tmp [ m 30 ] = val [ m 03 ] ; tmp [ m 31 ] = val [ m 13 ] ; tmp [ m 32 ] = val [ m 23 ] ; tmp [ m 33 ] = val [ m 33 ] ; return set ( tmp ) ; } <SENTENCE_END/>

(Copy Probability: 3.1%)

<SENTENCE_START> { tmp [ m 00 ] = val [ m 00 ] ; tmp [ m 01 ] = val [ m 10 ] ; tmp [ m 02 ] = val [ m 20 ] ; tmp [ m 03 ] = val [ m 30 ] ; tmp [ m 10 ] = val [ m 01 ] ; tmp [ m 11 ] = val [ m 11 ] ; tmp [ m 12 ] = val [ m 21 ] ; tmp [ m 13 ] = val [ m 31 ] ; tmp [ m 20 ] = val [ m 02 ] ; tmp [ m 21 ] = val [ m 12 ] ; tmp [ m 22 ] = val [ m 22 ] ; tmp [ m 23 ] = val [ m 32 ] ; tmp [ m 30 ] = val [ m 03 ] ; tmp [ m 31 ] = val [ m 13 ] ; tmp [ m 32 ] = val [ m 23 ] ; tmp [ m 33 ] = val [ m 33 ] ; return set ( tmp ) ; } <SENTENCE_END/>


Original Name idt

idt

<SENTENCE_START> { val [ m 00 ] = 1 ; val [ m 01 ] = 0 ; val [ m 02 ] = 0 ; val [ m 03 ] = 0 ; val [ m 10 ] = 0 ; val [ m 11 ] = 1 ; val [ m 12 ] = 0 ; val [ m 13 ] = 0 ; val [ m 20 ] = 0 ; val [ m 21 ] = 0 ; val [ m 22 ] = 1 ; val [ m 23 ] = 0 ; val [ m 30 ] = 0 ; val [ m 31 ] = 0 ; val [ m 32 ] = 0 ; val [ m 33 ] = 1 ; return this ; } <SENTENCE_END/>

(Copy Probability: 2.4%)

<SENTENCE_START> { val [ m 00 ] = 1 ; val [ m 01 ] = 0 ; val [ m 02 ] = 0 ; val [ m 03 ] = 0 ; val [ m 10 ] = 0 ; val [ m 11 ] = 1 ; val [ m 12 ] = 0 ; val [ m 13 ] = 0 ; val [ m 20 ] = 0 ; val [ m 21 ] = 0 ; val [ m 22 ] = 1 ; val [ m 23 ] = 0 ; val [ m 30 ] = 0 ; val [ m 31 ] = 0 ; val [ m 32 ] = 0 ; val [ m 33 ] = 1 ; return this ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { val [ m 00 ] = 1 ; val [ m 01 ] = 0 ; val [ m 02 ] = 0 ; val [ m 03 ] = 0 ; val [ m 10 ] = 0 ; val [ m 11 ] = 1 ; val [ m 12 ] = 0 ; val [ m 13 ] = 0 ; val [ m 20 ] = 0 ; val [ m 21 ] = 0 ; val [ m 22 ] = 1 ; val [ m 23 ] = 0 ; val [ m 30 ] = 0 ; val [ m 31 ] = 0 ; val [ m 32 ] = 0 ; val [ m 33 ] = 1 ; return this ; } <SENTENCE_END/>

(Copy Probability: 3.1%)

<SENTENCE_START> { val [ m 00 ] = 1 ; val [ m 01 ] = 0 ; val [ m 02 ] = 0 ; val [ m 03 ] = 0 ; val [ m 10 ] = 0 ; val [ m 11 ] = 1 ; val [ m 12 ] = 0 ; val [ m 13 ] = 0 ; val [ m 20 ] = 0 ; val [ m 21 ] = 0 ; val [ m 22 ] = 1 ; val [ m 23 ] = 0 ; val [ m 30 ] = 0 ; val [ m 31 ] = 0 ; val [ m 32 ] = 0 ; val [ m 33 ] = 1 ; return this ; } <SENTENCE_END/>


Original Name inv

inv

<SENTENCE_START> { float l det = val [ m 30 ] * val [ m 21 ] * val [ m 12 ] * val [ m 03 ] - val [ m 20 ] * val [ m 31 ] * val [ m 12 ] * val [ m 03 ] - val [ m 30 ] * val [ m 11 ] * val [ m 22 ] * val [ m 03 ] + val [ m 10 ] * val [ m 31 ] * val [ m 22 ] * val [ m 03 ] + val [ m 20 ] * val [ m 11 ] * val [ m 32 ] * val [ m 03 ] - val [ m 10 ] * val [ m 21 ] * val [ m 32 ] * val [ m 03 ] - val [ m 30 ] * val [ m 21 ] * val [ m 02 ] * val [ m 13 ] + val [ m 20 ] * val [ m 31 ] * val [ m 02 ] * val [ m 13 ] + val [ m 30 ] * val [ m 01 ] * val [ m 22 ] * val [ m 13 ] - val [ m 00 ] * val [ m 31 ] * val [ m 22 ] * val [ m 13 ] - val [ m 20 ] * val [ m 01 ] * val [ m 32 ] * val [ m 13 ] + val [ m 00 ] * val [ m 21 ] * val [ m 32 ] * val [ m 13 ] + val [ m 30 ] * val [ m 11 ] * val [ m 02 ] * val [ m 23 ] - val [ m 10 ] * val [ m 31 ] * val [ m 02 ] * val [ m 23 ] - val [ m 30 ] * val [ m 01 ] * val [ m 12 ] * val [ m 23 ] + val [ m 00 ] * val [ m 31 ] * val [ m 12 ] * val [ m 23 ] + val [ m 10 ] * val [ m 01 ] * val [ m 32 ] * val [ m 23 ] - val [ m 00 ] * val [ m 11 ] * val [ m 32 ] * val [ m 23 ] - val [ m 20 ] * val [ m 11 ] * val [ m 02 ] * val [ m 33 ] + val [ m 10 ] * val [ m 21 ] * val [ m 02 ] * val [ m 33 ] + val [ m 20 ] * val [ m 01 ] * val [ m 12 ] * val [ m 33 ] - val [ m 00 ] * val [ m 21 ] * val [ m 12 ] * val [ m 33 ] - val [ m 10 ] * val [ m 01 ] * val [ m 22 ] * val [ m 33 ] + val [ m 00 ] * val [ m 11 ] * val [ m 22 ] * val [ m 33 ] ; if ( l det == 0f ) throw new runtime exception ( "non-invertible matrix" ) ; float inv det = 1.0f / l det ; tmp [ m 00 ] = val [ m 12 ] * val [ m 23 ] * val [ m 31 ] - val [ m 13 ] * val [ m 22 ] * val [ m 31 ] + val [ m 13 ] * val [ m 21 ] * val [ m 32 ] - val [ m 11 ] * val [ m 23 ] * val [ m 32 ] - val [ m 12 ] * val [ m 21 ] * val [ m 33 ] + val [ m 11 ] * val [ m 22 ] * val [ m 33 ] ; tmp [ m 01 ] = val [ m 03 ] * val [ m 22 ] * val [ m 31 ] - val [ m 02 ] * val [ m 23 ] * val [ m 31 ] - val [ m 03 ] * val [ m 21 ] * val [ m 32 ] + val [ m 01 ] * val [ m 23 ] * val [ m 32 ] + val [ m 02 ] * val [ m 21 ] * val [ m 33 ] - val [ m 01 ] * val [ m 22 ] * val [ m 33 ] ; tmp [ m 02 ] = val [ m 02 ] * val [ m 13 ] * val [ m 31 ] - val [ m 03 ] * val [ m 12 ] * val [ m 31 ] + val [ m 03 ] * val [ m 11 ] * val [ m 32 ] - val [ m 01 ] * val [ m 13 ] * val [ m 32 ] - val [ m 02 ] * val [ m 11 ] * val [ m 33 ] + val [ m 01 ] * val [ m 12 ] * val [ m 33 ] ; tmp [ m 03 ] = val [ m 03 ] * val [ m 12 ] * val [ m 21 ] - val [ m 02 ] * val [ m 13 ] * val [ m 21 ] - val [ m 03 ] * val [ m 11 ] * val [ m 22 ] + val [ m 01 ] * val [ m 13 ] * val [ m 22 ] + val [ m 02 ] * val [ m 11 ] * val [ m 23 ] - val [ m 01 ] * val [ m 12 ] * val [ m 23 ] ; tmp [ m 10 ] = val [ m 13 ] * val [ m 22 ] * val [ m 30 ] - val [ m 12 ] * val [ m 23 ] * val [ m 30 ] - val [ m 13 ] * val [ m 20 ] * val [ m 32 ] + val [ m 10 ] * val [ m 23 ] * val [ m 32 ] + val [ m 12 ] * val [ m 20 ] * val [ m 33 ] - val [ m 10 ] * val [ m 22 ] * val [ m 33 ] ; tmp [ m 11 ] = val [ m 02 ] * val [ m 23 ] * val [ m 30 ] - val [ m 03 ] * val [ m 22 ] * val [ m 30 ] + val [ m 03 ] * val [ m 20 ] * val [ m 32 ] - val [ m 00 ] * val [ m 23 ] * val [ m 32 ] - val [ m 02 ] * val [ m 20 ] * val [ m 33 ] + val [ m 00 ] * val [ m 22 ] * val [ m 33 ] ; tmp [ m 12 ] = val [ m 03 ] * val [ m 12 ] * val [ m 30 ] - val [ m 02 ] * val [ m 13 ] * val [ m 30 ] - val [ m 03 ] * val [ m 10 ] * val [ m 32 ] + val [ m 00 ] * val [ m 13 ] * val [ m 32 ] + val [ m 02 ] * val [ m 10 ] * val [ m 33 ] - val [ m 00 ] * val [ m 12 ] * val [ m 33 ] ; tmp [ m 13 ] = val [ m 02 ] * val [ m 13 ] * val [ m 20 ] - val [ m 03 ] * val [ m 12 ] * val [ m 20 ] + val [ m 03 ] * val [ m 10 ] * val [ m 22 ] - val [ m 00 ] * val [ m 13 ] * val [ m 22 ] - val [ m 02 ] * val [ m 10 ] * val [ m 23 ] + val [ m 00 ] * val [ m 12 ] * val [ m 23 ] ; tmp [ m 20 ] = val [ m 11 ] * val [ m 23 ] * val [ m 30 ] - val [ m 13 ] * val [ m 21 ] * val [ m 30 ] + val [ m 13 ] * val [ m 20 ] * val [ m 31 ] - val [ m 10 ] * val [ m 23 ] * val [ m 31 ] - val [ m 11 ] * val [ m 20 ] * val [ m 33 ] + val [ m 10 ] * val [ m 21 ] * val [ m 33 ] ; tmp [ m 21 ] = val [ m 03 ] * val [ m 21 ] * val [ m 30 ] - val [ m 01 ] * val [ m 23 ] * val [ m 30 ] - val [ m 03 ] * val [ m 20 ] * val [ m 31 ] + val [ m 00 ] * val [ m 23 ] * val [ m 31 ] + val [ m 01 ] * val [ m 20 ] * val [ m 33 ] - val [ m 00 ] * val [ m 21 ] * val [ m 33 ] ; tmp [ m 22 ] = val [ m 01 ] * val [ m 13 ] * val [ m 30 ] - val [ m 03 ] * val [ m 11 ] * val [ m 30 ] + val [ m 03 ] * val [ m 10 ] * val [ m 31 ] - val [ m 00 ] * val [ m 13 ] * val [ m 31 ] - val [ m 01 ] * val [ m 10 ] * val [ m 33 ] + val [ m 00 ] * val [ m 11 ] * val [ m 33 ] ; tmp [ m 23 ] = val [ m 03 ] * val [ m 11 ] * val [ m 20 ] - val [ m 01 ] * val [ m 13 ] * val [ m 20 ] - val [ m 03 ] * val [ m 10 ] * val [ m 21 ] + val [ m 00 ] * val [ m 13 ] * val [ m 21 ] + val [ m 01 ] * val [ m 10 ] * val [ m 23 ] - val [ m 00 ] * val [ m 11 ] * val [ m 23 ] ; tmp [ m 30 ] = val [ m 12 ] * val [ m 21 ] * val [ m 30 ] - val [ m 11 ] * val [ m 22 ] * val [ m 30 ] - val [ m 12 ] * val [ m 20 ] * val [ m 31 ] + val [ m 10 ] * val [ m 22 ] * val [ m 31 ] + val [ m 11 ] * val [ m 20 ] * val [ m 32 ] - val [ m 10 ] * val [ m 21 ] * val [ m 32 ] ; tmp [ m 31 ] = val [ m 01 ] * val [ m 22 ] * val [ m 30 ] - val [ m 02 ] * val [ m 21 ] * val [ m 30 ] + val [ m 02 ] * val [ m 20 ] * val [ m 31 ] - val [ m 00 ] * val [ m 22 ] * val [ m 31 ] - val [ m 01 ] * val [ m 20 ] * val [ m 32 ] + val [ m 00 ] * val [ m 21 ] * val [ m 32 ] ; tmp [ m 32 ] = val [ m 02 ] * val [ m 11 ] * val [ m 30 ] - val [ m 01 ] * val [ m 12 ] * val [ m 30 ] - val [ m 02 ] * val [ m 10 ] * val [ m 31 ] + val [ m 00 ] * val [ m 12 ] * val [ m 31 ] + val [ m 01 ] * val [ m 10 ] * val [ m 32 ] - val [ m 00 ] * val [ m 11 ] * val [ m 32 ] ; tmp [ m 33 ] = val [ m 01 ] * val [ m 12 ] * val [ m 20 ] - val [ m 02 ] * val [ m 11 ] * val [ m 20 ] + val [ m 02 ] * val [ m 10 ] * val [ m 21 ] - val [ m 00 ] * val [ m 12 ] * val [ m 21 ] - val [ m 01 ] * val [ m 10 ] * val [ m 22 ] + val [ m 00 ] * val [ m 11 ] * val [ m 22 ] ; val [ m 00 ] = tmp [ m 00 ] * inv det ; val [ m 01 ] = tmp [ m 01 ] * inv det ; val [ m 02 ] = tmp [ m 02 ] * inv det ; val [ m 03 ] = tmp [ m 03 ] * inv det ; val [ m 10 ] = tmp [ m 10 ] * inv det ; val [ m 11 ] = tmp [ m 11 ] * inv det ; val [ m 12 ] = tmp [ m 12 ] * inv det ; val [ m 13 ] = tmp [ m 13 ] * inv det ; val [ m 20 ] = tmp [ m 20 ] * inv det ; val [ m 21 ] = tmp [ m 21 ] * inv det ; val [ m 22 ] = tmp [ m 22 ] * inv det ; val [ m 23 ] = tmp [ m 23 ] * inv det ; val [ m 30 ] = tmp [ m 30 ] * inv det ; val [ m 31 ] = tmp [ m 31 ] * inv det ; val [ m 32 ] = tmp [ m 32 ] * inv det ; val [ m 33 ] = tmp [ m 33 ] * inv det ; return this ; } <SENTENCE_END/>

(Copy Probability: 2.9%)

<SENTENCE_START> { float l det = val [ m 30 ] * val [ m 21 ] * val [ m 12 ] * val [ m 03 ] - val [ m 20 ] * val [ m 31 ] * val [ m 12 ] * val [ m 03 ] - val [ m 30 ] * val [ m 11 ] * val [ m 22 ] * val [ m 03 ] + val [ m 10 ] * val [ m 31 ] * val [ m 22 ] * val [ m 03 ] + val [ m 20 ] * val [ m 11 ] * val [ m 32 ] * val [ m 03 ] - val [ m 10 ] * val [ m 21 ] * val [ m 32 ] * val [ m 03 ] - val [ m 30 ] * val [ m 21 ] * val [ m 02 ] * val [ m 13 ] + val [ m 20 ] * val [ m 31 ] * val [ m 02 ] * val [ m 13 ] + val [ m 30 ] * val [ m 01 ] * val [ m 22 ] * val [ m 13 ] - val [ m 00 ] * val [ m 31 ] * val [ m 22 ] * val [ m 13 ] - val [ m 20 ] * val [ m 01 ] * val [ m 32 ] * val [ m 13 ] + val [ m 00 ] * val [ m 21 ] * val [ m 32 ] * val [ m 13 ] + val [ m 30 ] * val [ m 11 ] * val [ m 02 ] * val [ m 23 ] - val [ m 10 ] * val [ m 31 ] * val [ m 02 ] * val [ m 23 ] - val [ m 30 ] * val [ m 01 ] * val [ m 12 ] * val [ m 23 ] + val [ m 00 ] * val [ m 31 ] * val [ m 12 ] * val [ m 23 ] + val [ m 10 ] * val [ m 01 ] * val [ m 32 ] * val [ m 23 ] - val [ m 00 ] * val [ m 11 ] * val [ m 32 ] * val [ m 23 ] - val [ m 20 ] * val [ m 11 ] * val [ m 02 ] * val [ m 33 ] + val [ m 10 ] * val [ m 21 ] * val [ m 02 ] * val [ m 33 ] + val [ m 20 ] * val [ m 01 ] * val [ m 12 ] * val [ m 33 ] - val [ m 00 ] * val [ m 21 ] * val [ m 12 ] * val [ m 33 ] - val [ m 10 ] * val [ m 01 ] * val [ m 22 ] * val [ m 33 ] + val [ m 00 ] * val [ m 11 ] * val [ m 22 ] * val [ m 33 ] ; if ( l det == 0f ) throw new runtime exception ( "non-invertible matrix" ) ; float inv det = 1.0f / l det ; tmp [ m 00 ] = val [ m 12 ] * val [ m 23 ] * val [ m 31 ] - val [ m 13 ] * val [ m 22 ] * val [ m 31 ] + val [ m 13 ] * val [ m 21 ] * val [ m 32 ] - val [ m 11 ] * val [ m 23 ] * val [ m 32 ] - val [ m 12 ] * val [ m 21 ] * val [ m 33 ] + val [ m 11 ] * val [ m 22 ] * val [ m 33 ] ; tmp [ m 01 ] = val [ m 03 ] * val [ m 22 ] * val [ m 31 ] - val [ m 02 ] * val [ m 23 ] * val [ m 31 ] - val [ m 03 ] * val [ m 21 ] * val [ m 32 ] + val [ m 01 ] * val [ m 23 ] * val [ m 32 ] + val [ m 02 ] * val [ m 21 ] * val [ m 33 ] - val [ m 01 ] * val [ m 22 ] * val [ m 33 ] ; tmp [ m 02 ] = val [ m 02 ] * val [ m 13 ] * val [ m 31 ] - val [ m 03 ] * val [ m 12 ] * val [ m 31 ] + val [ m 03 ] * val [ m 11 ] * val [ m 32 ] - val [ m 01 ] * val [ m 13 ] * val [ m 32 ] - val [ m 02 ] * val [ m 11 ] * val [ m 33 ] + val [ m 01 ] * val [ m 12 ] * val [ m 33 ] ; tmp [ m 03 ] = val [ m 03 ] * val [ m 12 ] * val [ m 21 ] - val [ m 02 ] * val [ m 13 ] * val [ m 21 ] - val [ m 03 ] * val [ m 11 ] * val [ m 22 ] + val [ m 01 ] * val [ m 13 ] * val [ m 22 ] + val [ m 02 ] * val [ m 11 ] * val [ m 23 ] - val [ m 01 ] * val [ m 12 ] * val [ m 23 ] ; tmp [ m 10 ] = val [ m 13 ] * val [ m 22 ] * val [ m 30 ] - val [ m 12 ] * val [ m 23 ] * val [ m 30 ] - val [ m 13 ] * val [ m 20 ] * val [ m 32 ] + val [ m 10 ] * val [ m 23 ] * val [ m 32 ] + val [ m 12 ] * val [ m 20 ] * val [ m 33 ] - val [ m 10 ] * val [ m 22 ] * val [ m 33 ] ; tmp [ m 11 ] = val [ m 02 ] * val [ m 23 ] * val [ m 30 ] - val [ m 03 ] * val [ m 22 ] * val [ m 30 ] + val [ m 03 ] * val [ m 20 ] * val [ m 32 ] - val [ m 00 ] * val [ m 23 ] * val [ m 32 ] - val [ m 02 ] * val [ m 20 ] * val [ m 33 ] + val [ m 00 ] * val [ m 22 ] * val [ m 33 ] ; tmp [ m 12 ] = val [ m 03 ] * val [ m 12 ] * val [ m 30 ] - val [ m 02 ] * val [ m 13 ] * val [ m 30 ] - val [ m 03 ] * val [ m 10 ] * val [ m 32 ] + val [ m 00 ] * val [ m 13 ] * val [ m 32 ] + val [ m 02 ] * val [ m 10 ] * val [ m 33 ] - val [ m 00 ] * val [ m 12 ] * val [ m 33 ] ; tmp [ m 13 ] = val [ m 02 ] * val [ m 13 ] * val [ m 20 ] - val [ m 03 ] * val [ m 12 ] * val [ m 20 ] + val [ m 03 ] * val [ m 10 ] * val [ m 22 ] - val [ m 00 ] * val [ m 13 ] * val [ m 22 ] - val [ m 02 ] * val [ m 10 ] * val [ m 23 ] + val [ m 00 ] * val [ m 12 ] * val [ m 23 ] ; tmp [ m 20 ] = val [ m 11 ] * val [ m 23 ] * val [ m 30 ] - val [ m 13 ] * val [ m 21 ] * val [ m 30 ] + val [ m 13 ] * val [ m 20 ] * val [ m 31 ] - val [ m 10 ] * val [ m 23 ] * val [ m 31 ] - val [ m 11 ] * val [ m 20 ] * val [ m 33 ] + val [ m 10 ] * val [ m 21 ] * val [ m 33 ] ; tmp [ m 21 ] = val [ m 03 ] * val [ m 21 ] * val [ m 30 ] - val [ m 01 ] * val [ m 23 ] * val [ m 30 ] - val [ m 03 ] * val [ m 20 ] * val [ m 31 ] + val [ m 00 ] * val [ m 23 ] * val [ m 31 ] + val [ m 01 ] * val [ m 20 ] * val [ m 33 ] - val [ m 00 ] * val [ m 21 ] * val [ m 33 ] ; tmp [ m 22 ] = val [ m 01 ] * val [ m 13 ] * val [ m 30 ] - val [ m 03 ] * val [ m 11 ] * val [ m 30 ] + val [ m 03 ] * val [ m 10 ] * val [ m 31 ] - val [ m 00 ] * val [ m 13 ] * val [ m 31 ] - val [ m 01 ] * val [ m 10 ] * val [ m 33 ] + val [ m 00 ] * val [ m 11 ] * val [ m 33 ] ; tmp [ m 23 ] = val [ m 03 ] * val [ m 11 ] * val [ m 20 ] - val [ m 01 ] * val [ m 13 ] * val [ m 20 ] - val [ m 03 ] * val [ m 10 ] * val [ m 21 ] + val [ m 00 ] * val [ m 13 ] * val [ m 21 ] + val [ m 01 ] * val [ m 10 ] * val [ m 23 ] - val [ m 00 ] * val [ m 11 ] * val [ m 23 ] ; tmp [ m 30 ] = val [ m 12 ] * val [ m 21 ] * val [ m 30 ] - val [ m 11 ] * val [ m 22 ] * val [ m 30 ] - val [ m 12 ] * val [ m 20 ] * val [ m 31 ] + val [ m 10 ] * val [ m 22 ] * val [ m 31 ] + val [ m 11 ] * val [ m 20 ] * val [ m 32 ] - val [ m 10 ] * val [ m 21 ] * val [ m 32 ] ; tmp [ m 31 ] = val [ m 01 ] * val [ m 22 ] * val [ m 30 ] - val [ m 02 ] * val [ m 21 ] * val [ m 30 ] + val [ m 02 ] * val [ m 20 ] * val [ m 31 ] - val [ m 00 ] * val [ m 22 ] * val [ m 31 ] - val [ m 01 ] * val [ m 20 ] * val [ m 32 ] + val [ m 00 ] * val [ m 21 ] * val [ m 32 ] ; tmp [ m 32 ] = val [ m 02 ] * val [ m 11 ] * val [ m 30 ] - val [ m 01 ] * val [ m 12 ] * val [ m 30 ] - val [ m 02 ] * val [ m 10 ] * val [ m 31 ] + val [ m 00 ] * val [ m 12 ] * val [ m 31 ] + val [ m 01 ] * val [ m 10 ] * val [ m 32 ] - val [ m 00 ] * val [ m 11 ] * val [ m 32 ] ; tmp [ m 33 ] = val [ m 01 ] * val [ m 12 ] * val [ m 20 ] - val [ m 02 ] * val [ m 11 ] * val [ m 20 ] + val [ m 02 ] * val [ m 10 ] * val [ m 21 ] - val [ m 00 ] * val [ m 12 ] * val [ m 21 ] - val [ m 01 ] * val [ m 10 ] * val [ m 22 ] + val [ m 00 ] * val [ m 11 ] * val [ m 22 ] ; val [ m 00 ] = tmp [ m 00 ] * inv det ; val [ m 01 ] = tmp [ m 01 ] * inv det ; val [ m 02 ] = tmp [ m 02 ] * inv det ; val [ m 03 ] = tmp [ m 03 ] * inv det ; val [ m 10 ] = tmp [ m 10 ] * inv det ; val [ m 11 ] = tmp [ m 11 ] * inv det ; val [ m 12 ] = tmp [ m 12 ] * inv det ; val [ m 13 ] = tmp [ m 13 ] * inv det ; val [ m 20 ] = tmp [ m 20 ] * inv det ; val [ m 21 ] = tmp [ m 21 ] * inv det ; val [ m 22 ] = tmp [ m 22 ] * inv det ; val [ m 23 ] = tmp [ m 23 ] * inv det ; val [ m 30 ] = tmp [ m 30 ] * inv det ; val [ m 31 ] = tmp [ m 31 ] * inv det ; val [ m 32 ] = tmp [ m 32 ] * inv det ; val [ m 33 ] = tmp [ m 33 ] * inv det ; return this ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { float l det = val [ m 30 ] * val [ m 21 ] * val [ m 12 ] * val [ m 03 ] - val [ m 20 ] * val [ m 31 ] * val [ m 12 ] * val [ m 03 ] - val [ m 30 ] * val [ m 11 ] * val [ m 22 ] * val [ m 03 ] + val [ m 10 ] * val [ m 31 ] * val [ m 22 ] * val [ m 03 ] + val [ m 20 ] * val [ m 11 ] * val [ m 32 ] * val [ m 03 ] - val [ m 10 ] * val [ m 21 ] * val [ m 32 ] * val [ m 03 ] - val [ m 30 ] * val [ m 21 ] * val [ m 02 ] * val [ m 13 ] + val [ m 20 ] * val [ m 31 ] * val [ m 02 ] * val [ m 13 ] + val [ m 30 ] * val [ m 01 ] * val [ m 22 ] * val [ m 13 ] - val [ m 00 ] * val [ m 31 ] * val [ m 22 ] * val [ m 13 ] - val [ m 20 ] * val [ m 01 ] * val [ m 32 ] * val [ m 13 ] + val [ m 00 ] * val [ m 21 ] * val [ m 32 ] * val [ m 13 ] + val [ m 30 ] * val [ m 11 ] * val [ m 02 ] * val [ m 23 ] - val [ m 10 ] * val [ m 31 ] * val [ m 02 ] * val [ m 23 ] - val [ m 30 ] * val [ m 01 ] * val [ m 12 ] * val [ m 23 ] + val [ m 00 ] * val [ m 31 ] * val [ m 12 ] * val [ m 23 ] + val [ m 10 ] * val [ m 01 ] * val [ m 32 ] * val [ m 23 ] - val [ m 00 ] * val [ m 11 ] * val [ m 32 ] * val [ m 23 ] - val [ m 20 ] * val [ m 11 ] * val [ m 02 ] * val [ m 33 ] + val [ m 10 ] * val [ m 21 ] * val [ m 02 ] * val [ m 33 ] + val [ m 20 ] * val [ m 01 ] * val [ m 12 ] * val [ m 33 ] - val [ m 00 ] * val [ m 21 ] * val [ m 12 ] * val [ m 33 ] - val [ m 10 ] * val [ m 01 ] * val [ m 22 ] * val [ m 33 ] + val [ m 00 ] * val [ m 11 ] * val [ m 22 ] * val [ m 33 ] ; if ( l det == 0f ) throw new runtime exception ( "non-invertible matrix" ) ; float inv det = 1.0f / l det ; tmp [ m 00 ] = val [ m 12 ] * val [ m 23 ] * val [ m 31 ] - val [ m 13 ] * val [ m 22 ] * val [ m 31 ] + val [ m 13 ] * val [ m 21 ] * val [ m 32 ] - val [ m 11 ] * val [ m 23 ] * val [ m 32 ] - val [ m 12 ] * val [ m 21 ] * val [ m 33 ] + val [ m 11 ] * val [ m 22 ] * val [ m 33 ] ; tmp [ m 01 ] = val [ m 03 ] * val [ m 22 ] * val [ m 31 ] - val [ m 02 ] * val [ m 23 ] * val [ m 31 ] - val [ m 03 ] * val [ m 21 ] * val [ m 32 ] + val [ m 01 ] * val [ m 23 ] * val [ m 32 ] + val [ m 02 ] * val [ m 21 ] * val [ m 33 ] - val [ m 01 ] * val [ m 22 ] * val [ m 33 ] ; tmp [ m 02 ] = val [ m 02 ] * val [ m 13 ] * val [ m 31 ] - val [ m 03 ] * val [ m 12 ] * val [ m 31 ] + val [ m 03 ] * val [ m 11 ] * val [ m 32 ] - val [ m 01 ] * val [ m 13 ] * val [ m 32 ] - val [ m 02 ] * val [ m 11 ] * val [ m 33 ] + val [ m 01 ] * val [ m 12 ] * val [ m 33 ] ; tmp [ m 03 ] = val [ m 03 ] * val [ m 12 ] * val [ m 21 ] - val [ m 02 ] * val [ m 13 ] * val [ m 21 ] - val [ m 03 ] * val [ m 11 ] * val [ m 22 ] + val [ m 01 ] * val [ m 13 ] * val [ m 22 ] + val [ m 02 ] * val [ m 11 ] * val [ m 23 ] - val [ m 01 ] * val [ m 12 ] * val [ m 23 ] ; tmp [ m 10 ] = val [ m 13 ] * val [ m 22 ] * val [ m 30 ] - val [ m 12 ] * val [ m 23 ] * val [ m 30 ] - val [ m 13 ] * val [ m 20 ] * val [ m 32 ] + val [ m 10 ] * val [ m 23 ] * val [ m 32 ] + val [ m 12 ] * val [ m 20 ] * val [ m 33 ] - val [ m 10 ] * val [ m 22 ] * val [ m 33 ] ; tmp [ m 11 ] = val [ m 02 ] * val [ m 23 ] * val [ m 30 ] - val [ m 03 ] * val [ m 22 ] * val [ m 30 ] + val [ m 03 ] * val [ m 20 ] * val [ m 32 ] - val [ m 00 ] * val [ m 23 ] * val [ m 32 ] - val [ m 02 ] * val [ m 20 ] * val [ m 33 ] + val [ m 00 ] * val [ m 22 ] * val [ m 33 ] ; tmp [ m 12 ] = val [ m 03 ] * val [ m 12 ] * val [ m 30 ] - val [ m 02 ] * val [ m 13 ] * val [ m 30 ] - val [ m 03 ] * val [ m 10 ] * val [ m 32 ] + val [ m 00 ] * val [ m 13 ] * val [ m 32 ] + val [ m 02 ] * val [ m 10 ] * val [ m 33 ] - val [ m 00 ] * val [ m 12 ] * val [ m 33 ] ; tmp [ m 13 ] = val [ m 02 ] * val [ m 13 ] * val [ m 20 ] - val [ m 03 ] * val [ m 12 ] * val [ m 20 ] + val [ m 03 ] * val [ m 10 ] * val [ m 22 ] - val [ m 00 ] * val [ m 13 ] * val [ m 22 ] - val [ m 02 ] * val [ m 10 ] * val [ m 23 ] + val [ m 00 ] * val [ m 12 ] * val [ m 23 ] ; tmp [ m 20 ] = val [ m 11 ] * val [ m 23 ] * val [ m 30 ] - val [ m 13 ] * val [ m 21 ] * val [ m 30 ] + val [ m 13 ] * val [ m 20 ] * val [ m 31 ] - val [ m 10 ] * val [ m 23 ] * val [ m 31 ] - val [ m 11 ] * val [ m 20 ] * val [ m 33 ] + val [ m 10 ] * val [ m 21 ] * val [ m 33 ] ; tmp [ m 21 ] = val [ m 03 ] * val [ m 21 ] * val [ m 30 ] - val [ m 01 ] * val [ m 23 ] * val [ m 30 ] - val [ m 03 ] * val [ m 20 ] * val [ m 31 ] + val [ m 00 ] * val [ m 23 ] * val [ m 31 ] + val [ m 01 ] * val [ m 20 ] * val [ m 33 ] - val [ m 00 ] * val [ m 21 ] * val [ m 33 ] ; tmp [ m 22 ] = val [ m 01 ] * val [ m 13 ] * val [ m 30 ] - val [ m 03 ] * val [ m 11 ] * val [ m 30 ] + val [ m 03 ] * val [ m 10 ] * val [ m 31 ] - val [ m 00 ] * val [ m 13 ] * val [ m 31 ] - val [ m 01 ] * val [ m 10 ] * val [ m 33 ] + val [ m 00 ] * val [ m 11 ] * val [ m 33 ] ; tmp [ m 23 ] = val [ m 03 ] * val [ m 11 ] * val [ m 20 ] - val [ m 01 ] * val [ m 13 ] * val [ m 20 ] - val [ m 03 ] * val [ m 10 ] * val [ m 21 ] + val [ m 00 ] * val [ m 13 ] * val [ m 21 ] + val [ m 01 ] * val [ m 10 ] * val [ m 23 ] - val [ m 00 ] * val [ m 11 ] * val [ m 23 ] ; tmp [ m 30 ] = val [ m 12 ] * val [ m 21 ] * val [ m 30 ] - val [ m 11 ] * val [ m 22 ] * val [ m 30 ] - val [ m 12 ] * val [ m 20 ] * val [ m 31 ] + val [ m 10 ] * val [ m 22 ] * val [ m 31 ] + val [ m 11 ] * val [ m 20 ] * val [ m 32 ] - val [ m 10 ] * val [ m 21 ] * val [ m 32 ] ; tmp [ m 31 ] = val [ m 01 ] * val [ m 22 ] * val [ m 30 ] - val [ m 02 ] * val [ m 21 ] * val [ m 30 ] + val [ m 02 ] * val [ m 20 ] * val [ m 31 ] - val [ m 00 ] * val [ m 22 ] * val [ m 31 ] - val [ m 01 ] * val [ m 20 ] * val [ m 32 ] + val [ m 00 ] * val [ m 21 ] * val [ m 32 ] ; tmp [ m 32 ] = val [ m 02 ] * val [ m 11 ] * val [ m 30 ] - val [ m 01 ] * val [ m 12 ] * val [ m 30 ] - val [ m 02 ] * val [ m 10 ] * val [ m 31 ] + val [ m 00 ] * val [ m 12 ] * val [ m 31 ] + val [ m 01 ] * val [ m 10 ] * val [ m 32 ] - val [ m 00 ] * val [ m 11 ] * val [ m 32 ] ; tmp [ m 33 ] = val [ m 01 ] * val [ m 12 ] * val [ m 20 ] - val [ m 02 ] * val [ m 11 ] * val [ m 20 ] + val [ m 02 ] * val [ m 10 ] * val [ m 21 ] - val [ m 00 ] * val [ m 12 ] * val [ m 21 ] - val [ m 01 ] * val [ m 10 ] * val [ m 22 ] + val [ m 00 ] * val [ m 11 ] * val [ m 22 ] ; val [ m 00 ] = tmp [ m 00 ] * inv det ; val [ m 01 ] = tmp [ m 01 ] * inv det ; val [ m 02 ] = tmp [ m 02 ] * inv det ; val [ m 03 ] = tmp [ m 03 ] * inv det ; val [ m 10 ] = tmp [ m 10 ] * inv det ; val [ m 11 ] = tmp [ m 11 ] * inv det ; val [ m 12 ] = tmp [ m 12 ] * inv det ; val [ m 13 ] = tmp [ m 13 ] * inv det ; val [ m 20 ] = tmp [ m 20 ] * inv det ; val [ m 21 ] = tmp [ m 21 ] * inv det ; val [ m 22 ] = tmp [ m 22 ] * inv det ; val [ m 23 ] = tmp [ m 23 ] * inv det ; val [ m 30 ] = tmp [ m 30 ] * inv det ; val [ m 31 ] = tmp [ m 31 ] * inv det ; val [ m 32 ] = tmp [ m 32 ] * inv det ; val [ m 33 ] = tmp [ m 33 ] * inv det ; return this ; } <SENTENCE_END/>

(Copy Probability: 3.0%)

<SENTENCE_START> { float l det = val [ m 30 ] * val [ m 21 ] * val [ m 12 ] * val [ m 03 ] - val [ m 20 ] * val [ m 31 ] * val [ m 12 ] * val [ m 03 ] - val [ m 30 ] * val [ m 11 ] * val [ m 22 ] * val [ m 03 ] + val [ m 10 ] * val [ m 31 ] * val [ m 22 ] * val [ m 03 ] + val [ m 20 ] * val [ m 11 ] * val [ m 32 ] * val [ m 03 ] - val [ m 10 ] * val [ m 21 ] * val [ m 32 ] * val [ m 03 ] - val [ m 30 ] * val [ m 21 ] * val [ m 02 ] * val [ m 13 ] + val [ m 20 ] * val [ m 31 ] * val [ m 02 ] * val [ m 13 ] + val [ m 30 ] * val [ m 01 ] * val [ m 22 ] * val [ m 13 ] - val [ m 00 ] * val [ m 31 ] * val [ m 22 ] * val [ m 13 ] - val [ m 20 ] * val [ m 01 ] * val [ m 32 ] * val [ m 13 ] + val [ m 00 ] * val [ m 21 ] * val [ m 32 ] * val [ m 13 ] + val [ m 30 ] * val [ m 11 ] * val [ m 02 ] * val [ m 23 ] - val [ m 10 ] * val [ m 31 ] * val [ m 02 ] * val [ m 23 ] - val [ m 30 ] * val [ m 01 ] * val [ m 12 ] * val [ m 23 ] + val [ m 00 ] * val [ m 31 ] * val [ m 12 ] * val [ m 23 ] + val [ m 10 ] * val [ m 01 ] * val [ m 32 ] * val [ m 23 ] - val [ m 00 ] * val [ m 11 ] * val [ m 32 ] * val [ m 23 ] - val [ m 20 ] * val [ m 11 ] * val [ m 02 ] * val [ m 33 ] + val [ m 10 ] * val [ m 21 ] * val [ m 02 ] * val [ m 33 ] + val [ m 20 ] * val [ m 01 ] * val [ m 12 ] * val [ m 33 ] - val [ m 00 ] * val [ m 21 ] * val [ m 12 ] * val [ m 33 ] - val [ m 10 ] * val [ m 01 ] * val [ m 22 ] * val [ m 33 ] + val [ m 00 ] * val [ m 11 ] * val [ m 22 ] * val [ m 33 ] ; if ( l det == 0f ) throw new runtime exception ( "non-invertible matrix" ) ; float inv det = 1.0f / l det ; tmp [ m 00 ] = val [ m 12 ] * val [ m 23 ] * val [ m 31 ] - val [ m 13 ] * val [ m 22 ] * val [ m 31 ] + val [ m 13 ] * val [ m 21 ] * val [ m 32 ] - val [ m 11 ] * val [ m 23 ] * val [ m 32 ] - val [ m 12 ] * val [ m 21 ] * val [ m 33 ] + val [ m 11 ] * val [ m 22 ] * val [ m 33 ] ; tmp [ m 01 ] = val [ m 03 ] * val [ m 22 ] * val [ m 31 ] - val [ m 02 ] * val [ m 23 ] * val [ m 31 ] - val [ m 03 ] * val [ m 21 ] * val [ m 32 ] + val [ m 01 ] * val [ m 23 ] * val [ m 32 ] + val [ m 02 ] * val [ m 21 ] * val [ m 33 ] - val [ m 01 ] * val [ m 22 ] * val [ m 33 ] ; tmp [ m 02 ] = val [ m 02 ] * val [ m 13 ] * val [ m 31 ] - val [ m 03 ] * val [ m 12 ] * val [ m 31 ] + val [ m 03 ] * val [ m 11 ] * val [ m 32 ] - val [ m 01 ] * val [ m 13 ] * val [ m 32 ] - val [ m 02 ] * val [ m 11 ] * val [ m 33 ] + val [ m 01 ] * val [ m 12 ] * val [ m 33 ] ; tmp [ m 03 ] = val [ m 03 ] * val [ m 12 ] * val [ m 21 ] - val [ m 02 ] * val [ m 13 ] * val [ m 21 ] - val [ m 03 ] * val [ m 11 ] * val [ m 22 ] + val [ m 01 ] * val [ m 13 ] * val [ m 22 ] + val [ m 02 ] * val [ m 11 ] * val [ m 23 ] - val [ m 01 ] * val [ m 12 ] * val [ m 23 ] ; tmp [ m 10 ] = val [ m 13 ] * val [ m 22 ] * val [ m 30 ] - val [ m 12 ] * val [ m 23 ] * val [ m 30 ] - val [ m 13 ] * val [ m 20 ] * val [ m 32 ] + val [ m 10 ] * val [ m 23 ] * val [ m 32 ] + val [ m 12 ] * val [ m 20 ] * val [ m 33 ] - val [ m 10 ] * val [ m 22 ] * val [ m 33 ] ; tmp [ m 11 ] = val [ m 02 ] * val [ m 23 ] * val [ m 30 ] - val [ m 03 ] * val [ m 22 ] * val [ m 30 ] + val [ m 03 ] * val [ m 20 ] * val [ m 32 ] - val [ m 00 ] * val [ m 23 ] * val [ m 32 ] - val [ m 02 ] * val [ m 20 ] * val [ m 33 ] + val [ m 00 ] * val [ m 22 ] * val [ m 33 ] ; tmp [ m 12 ] = val [ m 03 ] * val [ m 12 ] * val [ m 30 ] - val [ m 02 ] * val [ m 13 ] * val [ m 30 ] - val [ m 03 ] * val [ m 10 ] * val [ m 32 ] + val [ m 00 ] * val [ m 13 ] * val [ m 32 ] + val [ m 02 ] * val [ m 10 ] * val [ m 33 ] - val [ m 00 ] * val [ m 12 ] * val [ m 33 ] ; tmp [ m 13 ] = val [ m 02 ] * val [ m 13 ] * val [ m 20 ] - val [ m 03 ] * val [ m 12 ] * val [ m 20 ] + val [ m 03 ] * val [ m 10 ] * val [ m 22 ] - val [ m 00 ] * val [ m 13 ] * val [ m 22 ] - val [ m 02 ] * val [ m 10 ] * val [ m 23 ] + val [ m 00 ] * val [ m 12 ] * val [ m 23 ] ; tmp [ m 20 ] = val [ m 11 ] * val [ m 23 ] * val [ m 30 ] - val [ m 13 ] * val [ m 21 ] * val [ m 30 ] + val [ m 13 ] * val [ m 20 ] * val [ m 31 ] - val [ m 10 ] * val [ m 23 ] * val [ m 31 ] - val [ m 11 ] * val [ m 20 ] * val [ m 33 ] + val [ m 10 ] * val [ m 21 ] * val [ m 33 ] ; tmp [ m 21 ] = val [ m 03 ] * val [ m 21 ] * val [ m 30 ] - val [ m 01 ] * val [ m 23 ] * val [ m 30 ] - val [ m 03 ] * val [ m 20 ] * val [ m 31 ] + val [ m 00 ] * val [ m 23 ] * val [ m 31 ] + val [ m 01 ] * val [ m 20 ] * val [ m 33 ] - val [ m 00 ] * val [ m 21 ] * val [ m 33 ] ; tmp [ m 22 ] = val [ m 01 ] * val [ m 13 ] * val [ m 30 ] - val [ m 03 ] * val [ m 11 ] * val [ m 30 ] + val [ m 03 ] * val [ m 10 ] * val [ m 31 ] - val [ m 00 ] * val [ m 13 ] * val [ m 31 ] - val [ m 01 ] * val [ m 10 ] * val [ m 33 ] + val [ m 00 ] * val [ m 11 ] * val [ m 33 ] ; tmp [ m 23 ] = val [ m 03 ] * val [ m 11 ] * val [ m 20 ] - val [ m 01 ] * val [ m 13 ] * val [ m 20 ] - val [ m 03 ] * val [ m 10 ] * val [ m 21 ] + val [ m 00 ] * val [ m 13 ] * val [ m 21 ] + val [ m 01 ] * val [ m 10 ] * val [ m 23 ] - val [ m 00 ] * val [ m 11 ] * val [ m 23 ] ; tmp [ m 30 ] = val [ m 12 ] * val [ m 21 ] * val [ m 30 ] - val [ m 11 ] * val [ m 22 ] * val [ m 30 ] - val [ m 12 ] * val [ m 20 ] * val [ m 31 ] + val [ m 10 ] * val [ m 22 ] * val [ m 31 ] + val [ m 11 ] * val [ m 20 ] * val [ m 32 ] - val [ m 10 ] * val [ m 21 ] * val [ m 32 ] ; tmp [ m 31 ] = val [ m 01 ] * val [ m 22 ] * val [ m 30 ] - val [ m 02 ] * val [ m 21 ] * val [ m 30 ] + val [ m 02 ] * val [ m 20 ] * val [ m 31 ] - val [ m 00 ] * val [ m 22 ] * val [ m 31 ] - val [ m 01 ] * val [ m 20 ] * val [ m 32 ] + val [ m 00 ] * val [ m 21 ] * val [ m 32 ] ; tmp [ m 32 ] = val [ m 02 ] * val [ m 11 ] * val [ m 30 ] - val [ m 01 ] * val [ m 12 ] * val [ m 30 ] - val [ m 02 ] * val [ m 10 ] * val [ m 31 ] + val [ m 00 ] * val [ m 12 ] * val [ m 31 ] + val [ m 01 ] * val [ m 10 ] * val [ m 32 ] - val [ m 00 ] * val [ m 11 ] * val [ m 32 ] ; tmp [ m 33 ] = val [ m 01 ] * val [ m 12 ] * val [ m 20 ] - val [ m 02 ] * val [ m 11 ] * val [ m 20 ] + val [ m 02 ] * val [ m 10 ] * val [ m 21 ] - val [ m 00 ] * val [ m 12 ] * val [ m 21 ] - val [ m 01 ] * val [ m 10 ] * val [ m 22 ] + val [ m 00 ] * val [ m 11 ] * val [ m 22 ] ; val [ m 00 ] = tmp [ m 00 ] * inv det ; val [ m 01 ] = tmp [ m 01 ] * inv det ; val [ m 02 ] = tmp [ m 02 ] * inv det ; val [ m 03 ] = tmp [ m 03 ] * inv det ; val [ m 10 ] = tmp [ m 10 ] * inv det ; val [ m 11 ] = tmp [ m 11 ] * inv det ; val [ m 12 ] = tmp [ m 12 ] * inv det ; val [ m 13 ] = tmp [ m 13 ] * inv det ; val [ m 20 ] = tmp [ m 20 ] * inv det ; val [ m 21 ] = tmp [ m 21 ] * inv det ; val [ m 22 ] = tmp [ m 22 ] * inv det ; val [ m 23 ] = tmp [ m 23 ] * inv det ; val [ m 30 ] = tmp [ m 30 ] * inv det ; val [ m 31 ] = tmp [ m 31 ] * inv det ; val [ m 32 ] = tmp [ m 32 ] * inv det ; val [ m 33 ] = tmp [ m 33 ] * inv det ; return this ; } <SENTENCE_END/>


Original Name det

det

<SENTENCE_START> { return val [ m 30 ] * val [ m 21 ] * val [ m 12 ] * val [ m 03 ] - val [ m 20 ] * val [ m 31 ] * val [ m 12 ] * val [ m 03 ] - val [ m 30 ] * val [ m 11 ] * val [ m 22 ] * val [ m 03 ] + val [ m 10 ] * val [ m 31 ] * val [ m 22 ] * val [ m 03 ] + val [ m 20 ] * val [ m 11 ] * val [ m 32 ] * val [ m 03 ] - val [ m 10 ] * val [ m 21 ] * val [ m 32 ] * val [ m 03 ] - val [ m 30 ] * val [ m 21 ] * val [ m 02 ] * val [ m 13 ] + val [ m 20 ] * val [ m 31 ] * val [ m 02 ] * val [ m 13 ] + val [ m 30 ] * val [ m 01 ] * val [ m 22 ] * val [ m 13 ] - val [ m 00 ] * val [ m 31 ] * val [ m 22 ] * val [ m 13 ] - val [ m 20 ] * val [ m 01 ] * val [ m 32 ] * val [ m 13 ] + val [ m 00 ] * val [ m 21 ] * val [ m 32 ] * val [ m 13 ] + val [ m 30 ] * val [ m 11 ] * val [ m 02 ] * val [ m 23 ] - val [ m 10 ] * val [ m 31 ] * val [ m 02 ] * val [ m 23 ] - val [ m 30 ] * val [ m 01 ] * val [ m 12 ] * val [ m 23 ] + val [ m 00 ] * val [ m 31 ] * val [ m 12 ] * val [ m 23 ] + val [ m 10 ] * val [ m 01 ] * val [ m 32 ] * val [ m 23 ] - val [ m 00 ] * val [ m 11 ] * val [ m 32 ] * val [ m 23 ] - val [ m 20 ] * val [ m 11 ] * val [ m 02 ] * val [ m 33 ] + val [ m 10 ] * val [ m 21 ] * val [ m 02 ] * val [ m 33 ] + val [ m 20 ] * val [ m 01 ] * val [ m 12 ] * val [ m 33 ] - val [ m 00 ] * val [ m 21 ] * val [ m 12 ] * val [ m 33 ] - val [ m 10 ] * val [ m 01 ] * val [ m 22 ] * val [ m 33 ] + val [ m 00 ] * val [ m 11 ] * val [ m 22 ] * val [ m 33 ] ; } <SENTENCE_END/>

(Copy Probability: 2.4%)

<SENTENCE_START> { return val [ m 30 ] * val [ m 21 ] * val [ m 12 ] * val [ m 03 ] - val [ m 20 ] * val [ m 31 ] * val [ m 12 ] * val [ m 03 ] - val [ m 30 ] * val [ m 11 ] * val [ m 22 ] * val [ m 03 ] + val [ m 10 ] * val [ m 31 ] * val [ m 22 ] * val [ m 03 ] + val [ m 20 ] * val [ m 11 ] * val [ m 32 ] * val [ m 03 ] - val [ m 10 ] * val [ m 21 ] * val [ m 32 ] * val [ m 03 ] - val [ m 30 ] * val [ m 21 ] * val [ m 02 ] * val [ m 13 ] + val [ m 20 ] * val [ m 31 ] * val [ m 02 ] * val [ m 13 ] + val [ m 30 ] * val [ m 01 ] * val [ m 22 ] * val [ m 13 ] - val [ m 00 ] * val [ m 31 ] * val [ m 22 ] * val [ m 13 ] - val [ m 20 ] * val [ m 01 ] * val [ m 32 ] * val [ m 13 ] + val [ m 00 ] * val [ m 21 ] * val [ m 32 ] * val [ m 13 ] + val [ m 30 ] * val [ m 11 ] * val [ m 02 ] * val [ m 23 ] - val [ m 10 ] * val [ m 31 ] * val [ m 02 ] * val [ m 23 ] - val [ m 30 ] * val [ m 01 ] * val [ m 12 ] * val [ m 23 ] + val [ m 00 ] * val [ m 31 ] * val [ m 12 ] * val [ m 23 ] + val [ m 10 ] * val [ m 01 ] * val [ m 32 ] * val [ m 23 ] - val [ m 00 ] * val [ m 11 ] * val [ m 32 ] * val [ m 23 ] - val [ m 20 ] * val [ m 11 ] * val [ m 02 ] * val [ m 33 ] + val [ m 10 ] * val [ m 21 ] * val [ m 02 ] * val [ m 33 ] + val [ m 20 ] * val [ m 01 ] * val [ m 12 ] * val [ m 33 ] - val [ m 00 ] * val [ m 21 ] * val [ m 12 ] * val [ m 33 ] - val [ m 10 ] * val [ m 01 ] * val [ m 22 ] * val [ m 33 ] + val [ m 00 ] * val [ m 11 ] * val [ m 22 ] * val [ m 33 ] ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return val [ m 30 ] * val [ m 21 ] * val [ m 12 ] * val [ m 03 ] - val [ m 20 ] * val [ m 31 ] * val [ m 12 ] * val [ m 03 ] - val [ m 30 ] * val [ m 11 ] * val [ m 22 ] * val [ m 03 ] + val [ m 10 ] * val [ m 31 ] * val [ m 22 ] * val [ m 03 ] + val [ m 20 ] * val [ m 11 ] * val [ m 32 ] * val [ m 03 ] - val [ m 10 ] * val [ m 21 ] * val [ m 32 ] * val [ m 03 ] - val [ m 30 ] * val [ m 21 ] * val [ m 02 ] * val [ m 13 ] + val [ m 20 ] * val [ m 31 ] * val [ m 02 ] * val [ m 13 ] + val [ m 30 ] * val [ m 01 ] * val [ m 22 ] * val [ m 13 ] - val [ m 00 ] * val [ m 31 ] * val [ m 22 ] * val [ m 13 ] - val [ m 20 ] * val [ m 01 ] * val [ m 32 ] * val [ m 13 ] + val [ m 00 ] * val [ m 21 ] * val [ m 32 ] * val [ m 13 ] + val [ m 30 ] * val [ m 11 ] * val [ m 02 ] * val [ m 23 ] - val [ m 10 ] * val [ m 31 ] * val [ m 02 ] * val [ m 23 ] - val [ m 30 ] * val [ m 01 ] * val [ m 12 ] * val [ m 23 ] + val [ m 00 ] * val [ m 31 ] * val [ m 12 ] * val [ m 23 ] + val [ m 10 ] * val [ m 01 ] * val [ m 32 ] * val [ m 23 ] - val [ m 00 ] * val [ m 11 ] * val [ m 32 ] * val [ m 23 ] - val [ m 20 ] * val [ m 11 ] * val [ m 02 ] * val [ m 33 ] + val [ m 10 ] * val [ m 21 ] * val [ m 02 ] * val [ m 33 ] + val [ m 20 ] * val [ m 01 ] * val [ m 12 ] * val [ m 33 ] - val [ m 00 ] * val [ m 21 ] * val [ m 12 ] * val [ m 33 ] - val [ m 10 ] * val [ m 01 ] * val [ m 22 ] * val [ m 33 ] + val [ m 00 ] * val [ m 11 ] * val [ m 22 ] * val [ m 33 ] ; } <SENTENCE_END/>

(Copy Probability: 2.3%)

<SENTENCE_START> { return val [ m 30 ] * val [ m 21 ] * val [ m 12 ] * val [ m 03 ] - val [ m 20 ] * val [ m 31 ] * val [ m 12 ] * val [ m 03 ] - val [ m 30 ] * val [ m 11 ] * val [ m 22 ] * val [ m 03 ] + val [ m 10 ] * val [ m 31 ] * val [ m 22 ] * val [ m 03 ] + val [ m 20 ] * val [ m 11 ] * val [ m 32 ] * val [ m 03 ] - val [ m 10 ] * val [ m 21 ] * val [ m 32 ] * val [ m 03 ] - val [ m 30 ] * val [ m 21 ] * val [ m 02 ] * val [ m 13 ] + val [ m 20 ] * val [ m 31 ] * val [ m 02 ] * val [ m 13 ] + val [ m 30 ] * val [ m 01 ] * val [ m 22 ] * val [ m 13 ] - val [ m 00 ] * val [ m 31 ] * val [ m 22 ] * val [ m 13 ] - val [ m 20 ] * val [ m 01 ] * val [ m 32 ] * val [ m 13 ] + val [ m 00 ] * val [ m 21 ] * val [ m 32 ] * val [ m 13 ] + val [ m 30 ] * val [ m 11 ] * val [ m 02 ] * val [ m 23 ] - val [ m 10 ] * val [ m 31 ] * val [ m 02 ] * val [ m 23 ] - val [ m 30 ] * val [ m 01 ] * val [ m 12 ] * val [ m 23 ] + val [ m 00 ] * val [ m 31 ] * val [ m 12 ] * val [ m 23 ] + val [ m 10 ] * val [ m 01 ] * val [ m 32 ] * val [ m 23 ] - val [ m 00 ] * val [ m 11 ] * val [ m 32 ] * val [ m 23 ] - val [ m 20 ] * val [ m 11 ] * val [ m 02 ] * val [ m 33 ] + val [ m 10 ] * val [ m 21 ] * val [ m 02 ] * val [ m 33 ] + val [ m 20 ] * val [ m 01 ] * val [ m 12 ] * val [ m 33 ] - val [ m 00 ] * val [ m 21 ] * val [ m 12 ] * val [ m 33 ] - val [ m 10 ] * val [ m 01 ] * val [ m 22 ] * val [ m 33 ] + val [ m 00 ] * val [ m 11 ] * val [ m 22 ] * val [ m 33 ] ; } <SENTENCE_END/>


Original Name det,3,x,3

det

<SENTENCE_START> { return val [ m 00 ] * val [ m 11 ] * val [ m 22 ] + val [ m 01 ] * val [ m 12 ] * val [ m 20 ] + val [ m 02 ] * val [ m 10 ] * val [ m 21 ] - val [ m 00 ] * val [ m 12 ] * val [ m 21 ] - val [ m 01 ] * val [ m 10 ] * val [ m 22 ] - val [ m 02 ] * val [ m 11 ] * val [ m 20 ] ; } <SENTENCE_END/>

(Copy Probability: 1.7%)

<SENTENCE_START> { return val [ m 00 ] * val [ m 11 ] * val [ m 22 ] + val [ m 01 ] * val [ m 12 ] * val [ m 20 ] + val [ m 02 ] * val [ m 10 ] * val [ m 21 ] - val [ m 00 ] * val [ m 12 ] * val [ m 21 ] - val [ m 01 ] * val [ m 10 ] * val [ m 22 ] - val [ m 02 ] * val [ m 11 ] * val [ m 20 ] ; } <SENTENCE_END/>

3

<SENTENCE_START> { return val [ m 00 ] * val [ m 11 ] * val [ m 22 ] + val [ m 01 ] * val [ m 12 ] * val [ m 20 ] + val [ m 02 ] * val [ m 10 ] * val [ m 21 ] - val [ m 00 ] * val [ m 12 ] * val [ m 21 ] - val [ m 01 ] * val [ m 10 ] * val [ m 22 ] - val [ m 02 ] * val [ m 11 ] * val [ m 20 ] ; } <SENTENCE_END/>

(Copy Probability: 1.6%)

<SENTENCE_START> { return val [ m 00 ] * val [ m 11 ] * val [ m 22 ] + val [ m 01 ] * val [ m 12 ] * val [ m 20 ] + val [ m 02 ] * val [ m 10 ] * val [ m 21 ] - val [ m 00 ] * val [ m 12 ] * val [ m 21 ] - val [ m 01 ] * val [ m 10 ] * val [ m 22 ] - val [ m 02 ] * val [ m 11 ] * val [ m 20 ] ; } <SENTENCE_END/>

x

<SENTENCE_START> { return val [ m 00 ] * val [ m 11 ] * val [ m 22 ] + val [ m 01 ] * val [ m 12 ] * val [ m 20 ] + val [ m 02 ] * val [ m 10 ] * val [ m 21 ] - val [ m 00 ] * val [ m 12 ] * val [ m 21 ] - val [ m 01 ] * val [ m 10 ] * val [ m 22 ] - val [ m 02 ] * val [ m 11 ] * val [ m 20 ] ; } <SENTENCE_END/>

(Copy Probability: 1.1%)

<SENTENCE_START> { return val [ m 00 ] * val [ m 11 ] * val [ m 22 ] + val [ m 01 ] * val [ m 12 ] * val [ m 20 ] + val [ m 02 ] * val [ m 10 ] * val [ m 21 ] - val [ m 00 ] * val [ m 12 ] * val [ m 21 ] - val [ m 01 ] * val [ m 10 ] * val [ m 22 ] - val [ m 02 ] * val [ m 11 ] * val [ m 20 ] ; } <SENTENCE_END/>

3

<SENTENCE_START> { return val [ m 00 ] * val [ m 11 ] * val [ m 22 ] + val [ m 01 ] * val [ m 12 ] * val [ m 20 ] + val [ m 02 ] * val [ m 10 ] * val [ m 21 ] - val [ m 00 ] * val [ m 12 ] * val [ m 21 ] - val [ m 01 ] * val [ m 10 ] * val [ m 22 ] - val [ m 02 ] * val [ m 11 ] * val [ m 20 ] ; } <SENTENCE_END/>

(Copy Probability: 1.7%)

<SENTENCE_START> { return val [ m 00 ] * val [ m 11 ] * val [ m 22 ] + val [ m 01 ] * val [ m 12 ] * val [ m 20 ] + val [ m 02 ] * val [ m 10 ] * val [ m 21 ] - val [ m 00 ] * val [ m 12 ] * val [ m 21 ] - val [ m 01 ] * val [ m 10 ] * val [ m 22 ] - val [ m 02 ] * val [ m 11 ] * val [ m 20 ] ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return val [ m 00 ] * val [ m 11 ] * val [ m 22 ] + val [ m 01 ] * val [ m 12 ] * val [ m 20 ] + val [ m 02 ] * val [ m 10 ] * val [ m 21 ] - val [ m 00 ] * val [ m 12 ] * val [ m 21 ] - val [ m 01 ] * val [ m 10 ] * val [ m 22 ] - val [ m 02 ] * val [ m 11 ] * val [ m 20 ] ; } <SENTENCE_END/>

(Copy Probability: 2.5%)

<SENTENCE_START> { return val [ m 00 ] * val [ m 11 ] * val [ m 22 ] + val [ m 01 ] * val [ m 12 ] * val [ m 20 ] + val [ m 02 ] * val [ m 10 ] * val [ m 21 ] - val [ m 00 ] * val [ m 12 ] * val [ m 21 ] - val [ m 01 ] * val [ m 10 ] * val [ m 22 ] - val [ m 02 ] * val [ m 11 ] * val [ m 20 ] ; } <SENTENCE_END/>


Original Name set,to,projection

set

<SENTENCE_START> { idt ( ) ; float l fd = ( float ) ( 1.0 / math . tan ( ( fovy * ( math . pi / 180 ) ) / 2.0 ) ) ; float l a 1 = ( far + near ) / ( near - far ) ; float l a 2 = ( 2 * far * near ) / ( near - far ) ; val [ m 00 ] = l fd / aspect ratio ; val [ m 10 ] = 0 ; val [ m 20 ] = 0 ; val [ m 30 ] = 0 ; val [ m 01 ] = 0 ; val [ m 11 ] = l fd ; val [ m 21 ] = 0 ; val [ m 31 ] = 0 ; val [ m 02 ] = 0 ; val [ m 12 ] = 0 ; val [ m 22 ] = l a 1 ; val [ m 32 ] = - 1 ; val [ m 03 ] = 0 ; val [ m 13 ] = 0 ; val [ m 23 ] = l a 2 ; val [ m 33 ] = 0 ; return this ; } <SENTENCE_END/>

(Copy Probability: 2.4%)

<SENTENCE_START> { idt ( ) ; float l fd = ( float ) ( 1.0 / math . tan ( ( fovy * ( math . pi / 180 ) ) / 2.0 ) ) ; float l a 1 = ( far + near ) / ( near - far ) ; float l a 2 = ( 2 * far * near ) / ( near - far ) ; val [ m 00 ] = l fd / aspect ratio ; val [ m 10 ] = 0 ; val [ m 20 ] = 0 ; val [ m 30 ] = 0 ; val [ m 01 ] = 0 ; val [ m 11 ] = l fd ; val [ m 21 ] = 0 ; val [ m 31 ] = 0 ; val [ m 02 ] = 0 ; val [ m 12 ] = 0 ; val [ m 22 ] = l a 1 ; val [ m 32 ] = - 1 ; val [ m 03 ] = 0 ; val [ m 13 ] = 0 ; val [ m 23 ] = l a 2 ; val [ m 33 ] = 0 ; return this ; } <SENTENCE_END/>

to

<SENTENCE_START> { idt ( ) ; float l fd = ( float ) ( 1.0 / math . tan ( ( fovy * ( math . pi / 180 ) ) / 2.0 ) ) ; float l a 1 = ( far + near ) / ( near - far ) ; float l a 2 = ( 2 * far * near ) / ( near - far ) ; val [ m 00 ] = l fd / aspect ratio ; val [ m 10 ] = 0 ; val [ m 20 ] = 0 ; val [ m 30 ] = 0 ; val [ m 01 ] = 0 ; val [ m 11 ] = l fd ; val [ m 21 ] = 0 ; val [ m 31 ] = 0 ; val [ m 02 ] = 0 ; val [ m 12 ] = 0 ; val [ m 22 ] = l a 1 ; val [ m 32 ] = - 1 ; val [ m 03 ] = 0 ; val [ m 13 ] = 0 ; val [ m 23 ] = l a 2 ; val [ m 33 ] = 0 ; return this ; } <SENTENCE_END/>

(Copy Probability: 2.8%)

<SENTENCE_START> { idt ( ) ; float l fd = ( float ) ( 1.0 / math . tan ( ( fovy * ( math . pi / 180 ) ) / 2.0 ) ) ; float l a 1 = ( far + near ) / ( near - far ) ; float l a 2 = ( 2 * far * near ) / ( near - far ) ; val [ m 00 ] = l fd / aspect ratio ; val [ m 10 ] = 0 ; val [ m 20 ] = 0 ; val [ m 30 ] = 0 ; val [ m 01 ] = 0 ; val [ m 11 ] = l fd ; val [ m 21 ] = 0 ; val [ m 31 ] = 0 ; val [ m 02 ] = 0 ; val [ m 12 ] = 0 ; val [ m 22 ] = l a 1 ; val [ m 32 ] = - 1 ; val [ m 03 ] = 0 ; val [ m 13 ] = 0 ; val [ m 23 ] = l a 2 ; val [ m 33 ] = 0 ; return this ; } <SENTENCE_END/>

projection

<SENTENCE_START> { idt ( ) ; float l fd = ( float ) ( 1.0 / math . tan ( ( fovy * ( math . pi / 180 ) ) / 2.0 ) ) ; float l a 1 = ( far + near ) / ( near - far ) ; float l a 2 = ( 2 * far * near ) / ( near - far ) ; val [ m 00 ] = l fd / aspect ratio ; val [ m 10 ] = 0 ; val [ m 20 ] = 0 ; val [ m 30 ] = 0 ; val [ m 01 ] = 0 ; val [ m 11 ] = l fd ; val [ m 21 ] = 0 ; val [ m 31 ] = 0 ; val [ m 02 ] = 0 ; val [ m 12 ] = 0 ; val [ m 22 ] = l a 1 ; val [ m 32 ] = - 1 ; val [ m 03 ] = 0 ; val [ m 13 ] = 0 ; val [ m 23 ] = l a 2 ; val [ m 33 ] = 0 ; return this ; } <SENTENCE_END/>

(Copy Probability: 2.3%)

<SENTENCE_START> { idt ( ) ; float l fd = ( float ) ( 1.0 / math . tan ( ( fovy * ( math . pi / 180 ) ) / 2.0 ) ) ; float l a 1 = ( far + near ) / ( near - far ) ; float l a 2 = ( 2 * far * near ) / ( near - far ) ; val [ m 00 ] = l fd / aspect ratio ; val [ m 10 ] = 0 ; val [ m 20 ] = 0 ; val [ m 30 ] = 0 ; val [ m 01 ] = 0 ; val [ m 11 ] = l fd ; val [ m 21 ] = 0 ; val [ m 31 ] = 0 ; val [ m 02 ] = 0 ; val [ m 12 ] = 0 ; val [ m 22 ] = l a 1 ; val [ m 32 ] = - 1 ; val [ m 03 ] = 0 ; val [ m 13 ] = 0 ; val [ m 23 ] = l a 2 ; val [ m 33 ] = 0 ; return this ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { idt ( ) ; float l fd = ( float ) ( 1.0 / math . tan ( ( fovy * ( math . pi / 180 ) ) / 2.0 ) ) ; float l a 1 = ( far + near ) / ( near - far ) ; float l a 2 = ( 2 * far * near ) / ( near - far ) ; val [ m 00 ] = l fd / aspect ratio ; val [ m 10 ] = 0 ; val [ m 20 ] = 0 ; val [ m 30 ] = 0 ; val [ m 01 ] = 0 ; val [ m 11 ] = l fd ; val [ m 21 ] = 0 ; val [ m 31 ] = 0 ; val [ m 02 ] = 0 ; val [ m 12 ] = 0 ; val [ m 22 ] = l a 1 ; val [ m 32 ] = - 1 ; val [ m 03 ] = 0 ; val [ m 13 ] = 0 ; val [ m 23 ] = l a 2 ; val [ m 33 ] = 0 ; return this ; } <SENTENCE_END/>

(Copy Probability: 3.4%)

<SENTENCE_START> { idt ( ) ; float l fd = ( float ) ( 1.0 / math . tan ( ( fovy * ( math . pi / 180 ) ) / 2.0 ) ) ; float l a 1 = ( far + near ) / ( near - far ) ; float l a 2 = ( 2 * far * near ) / ( near - far ) ; val [ m 00 ] = l fd / aspect ratio ; val [ m 10 ] = 0 ; val [ m 20 ] = 0 ; val [ m 30 ] = 0 ; val [ m 01 ] = 0 ; val [ m 11 ] = l fd ; val [ m 21 ] = 0 ; val [ m 31 ] = 0 ; val [ m 02 ] = 0 ; val [ m 12 ] = 0 ; val [ m 22 ] = l a 1 ; val [ m 32 ] = - 1 ; val [ m 03 ] = 0 ; val [ m 13 ] = 0 ; val [ m 23 ] = l a 2 ; val [ m 33 ] = 0 ; return this ; } <SENTENCE_END/>


Original Name set,to,projection

set

<SENTENCE_START> { float x = 2.0f * near / ( right - left ) ; float y = 2.0f * near / ( top - bottom ) ; float a = ( right + left ) / ( right - left ) ; float b = ( top + bottom ) / ( top - bottom ) ; float l a 1 = ( far + near ) / ( near - far ) ; float l a 2 = ( 2 * far * near ) / ( near - far ) ; val [ m 00 ] = x ; val [ m 10 ] = 0 ; val [ m 20 ] = 0 ; val [ m 30 ] = 0 ; val [ m 01 ] = 0 ; val [ m 11 ] = y ; val [ m 21 ] = 0 ; val [ m 31 ] = 0 ; val [ m 02 ] = a ; val [ m 12 ] = b ; val [ m 22 ] = l a 1 ; val [ m 32 ] = - 1 ; val [ m 03 ] = 0 ; val [ m 13 ] = 0 ; val [ m 23 ] = l a 2 ; val [ m 33 ] = 0 ; return this ; } <SENTENCE_END/>

(Copy Probability: 2.5%)

<SENTENCE_START> { float x = 2.0f * near / ( right - left ) ; float y = 2.0f * near / ( top - bottom ) ; float a = ( right + left ) / ( right - left ) ; float b = ( top + bottom ) / ( top - bottom ) ; float l a 1 = ( far + near ) / ( near - far ) ; float l a 2 = ( 2 * far * near ) / ( near - far ) ; val [ m 00 ] = x ; val [ m 10 ] = 0 ; val [ m 20 ] = 0 ; val [ m 30 ] = 0 ; val [ m 01 ] = 0 ; val [ m 11 ] = y ; val [ m 21 ] = 0 ; val [ m 31 ] = 0 ; val [ m 02 ] = a ; val [ m 12 ] = b ; val [ m 22 ] = l a 1 ; val [ m 32 ] = - 1 ; val [ m 03 ] = 0 ; val [ m 13 ] = 0 ; val [ m 23 ] = l a 2 ; val [ m 33 ] = 0 ; return this ; } <SENTENCE_END/>

to

<SENTENCE_START> { float x = 2.0f * near / ( right - left ) ; float y = 2.0f * near / ( top - bottom ) ; float a = ( right + left ) / ( right - left ) ; float b = ( top + bottom ) / ( top - bottom ) ; float l a 1 = ( far + near ) / ( near - far ) ; float l a 2 = ( 2 * far * near ) / ( near - far ) ; val [ m 00 ] = x ; val [ m 10 ] = 0 ; val [ m 20 ] = 0 ; val [ m 30 ] = 0 ; val [ m 01 ] = 0 ; val [ m 11 ] = y ; val [ m 21 ] = 0 ; val [ m 31 ] = 0 ; val [ m 02 ] = a ; val [ m 12 ] = b ; val [ m 22 ] = l a 1 ; val [ m 32 ] = - 1 ; val [ m 03 ] = 0 ; val [ m 13 ] = 0 ; val [ m 23 ] = l a 2 ; val [ m 33 ] = 0 ; return this ; } <SENTENCE_END/>

(Copy Probability: 3.0%)

<SENTENCE_START> { float x = 2.0f * near / ( right - left ) ; float y = 2.0f * near / ( top - bottom ) ; float a = ( right + left ) / ( right - left ) ; float b = ( top + bottom ) / ( top - bottom ) ; float l a 1 = ( far + near ) / ( near - far ) ; float l a 2 = ( 2 * far * near ) / ( near - far ) ; val [ m 00 ] = x ; val [ m 10 ] = 0 ; val [ m 20 ] = 0 ; val [ m 30 ] = 0 ; val [ m 01 ] = 0 ; val [ m 11 ] = y ; val [ m 21 ] = 0 ; val [ m 31 ] = 0 ; val [ m 02 ] = a ; val [ m 12 ] = b ; val [ m 22 ] = l a 1 ; val [ m 32 ] = - 1 ; val [ m 03 ] = 0 ; val [ m 13 ] = 0 ; val [ m 23 ] = l a 2 ; val [ m 33 ] = 0 ; return this ; } <SENTENCE_END/>

projection

<SENTENCE_START> { float x = 2.0f * near / ( right - left ) ; float y = 2.0f * near / ( top - bottom ) ; float a = ( right + left ) / ( right - left ) ; float b = ( top + bottom ) / ( top - bottom ) ; float l a 1 = ( far + near ) / ( near - far ) ; float l a 2 = ( 2 * far * near ) / ( near - far ) ; val [ m 00 ] = x ; val [ m 10 ] = 0 ; val [ m 20 ] = 0 ; val [ m 30 ] = 0 ; val [ m 01 ] = 0 ; val [ m 11 ] = y ; val [ m 21 ] = 0 ; val [ m 31 ] = 0 ; val [ m 02 ] = a ; val [ m 12 ] = b ; val [ m 22 ] = l a 1 ; val [ m 32 ] = - 1 ; val [ m 03 ] = 0 ; val [ m 13 ] = 0 ; val [ m 23 ] = l a 2 ; val [ m 33 ] = 0 ; return this ; } <SENTENCE_END/>

(Copy Probability: 1.9%)

<SENTENCE_START> { float x = 2.0f * near / ( right - left ) ; float y = 2.0f * near / ( top - bottom ) ; float a = ( right + left ) / ( right - left ) ; float b = ( top + bottom ) / ( top - bottom ) ; float l a 1 = ( far + near ) / ( near - far ) ; float l a 2 = ( 2 * far * near ) / ( near - far ) ; val [ m 00 ] = x ; val [ m 10 ] = 0 ; val [ m 20 ] = 0 ; val [ m 30 ] = 0 ; val [ m 01 ] = 0 ; val [ m 11 ] = y ; val [ m 21 ] = 0 ; val [ m 31 ] = 0 ; val [ m 02 ] = a ; val [ m 12 ] = b ; val [ m 22 ] = l a 1 ; val [ m 32 ] = - 1 ; val [ m 03 ] = 0 ; val [ m 13 ] = 0 ; val [ m 23 ] = l a 2 ; val [ m 33 ] = 0 ; return this ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { float x = 2.0f * near / ( right - left ) ; float y = 2.0f * near / ( top - bottom ) ; float a = ( right + left ) / ( right - left ) ; float b = ( top + bottom ) / ( top - bottom ) ; float l a 1 = ( far + near ) / ( near - far ) ; float l a 2 = ( 2 * far * near ) / ( near - far ) ; val [ m 00 ] = x ; val [ m 10 ] = 0 ; val [ m 20 ] = 0 ; val [ m 30 ] = 0 ; val [ m 01 ] = 0 ; val [ m 11 ] = y ; val [ m 21 ] = 0 ; val [ m 31 ] = 0 ; val [ m 02 ] = a ; val [ m 12 ] = b ; val [ m 22 ] = l a 1 ; val [ m 32 ] = - 1 ; val [ m 03 ] = 0 ; val [ m 13 ] = 0 ; val [ m 23 ] = l a 2 ; val [ m 33 ] = 0 ; return this ; } <SENTENCE_END/>

(Copy Probability: 3.4%)

<SENTENCE_START> { float x = 2.0f * near / ( right - left ) ; float y = 2.0f * near / ( top - bottom ) ; float a = ( right + left ) / ( right - left ) ; float b = ( top + bottom ) / ( top - bottom ) ; float l a 1 = ( far + near ) / ( near - far ) ; float l a 2 = ( 2 * far * near ) / ( near - far ) ; val [ m 00 ] = x ; val [ m 10 ] = 0 ; val [ m 20 ] = 0 ; val [ m 30 ] = 0 ; val [ m 01 ] = 0 ; val [ m 11 ] = y ; val [ m 21 ] = 0 ; val [ m 31 ] = 0 ; val [ m 02 ] = a ; val [ m 12 ] = b ; val [ m 22 ] = l a 1 ; val [ m 32 ] = - 1 ; val [ m 03 ] = 0 ; val [ m 13 ] = 0 ; val [ m 23 ] = l a 2 ; val [ m 33 ] = 0 ; return this ; } <SENTENCE_END/>


Original Name set,to,ortho,2,d

set

<SENTENCE_START> { set to ortho ( x , x + width , y , y + height , 0 , 1 ) ; return this ; } <SENTENCE_END/>

(Copy Probability: 1.3%)

<SENTENCE_START> { set to ortho ( x , x + width , y , y + height , 0 , 1 ) ; return this ; } <SENTENCE_END/>

to

<SENTENCE_START> { set to ortho ( x , x + width , y , y + height , 0 , 1 ) ; return this ; } <SENTENCE_END/>

(Copy Probability: 63.8%)

<SENTENCE_START> { set to ortho ( x , x + width , y , y + height , 0 , 1 ) ; return this ; } <SENTENCE_END/>

ortho

<SENTENCE_START> { set to ortho ( x , x + width , y , y + height , 0 , 1 ) ; return this ; } <SENTENCE_END/>

(Copy Probability: 82.8%)

<SENTENCE_START> { set to ortho ( x , x + width , y , y + height , 0 , 1 ) ; return this ; } <SENTENCE_END/>

2

<SENTENCE_START> { set to ortho ( x , x + width , y , y + height , 0 , 1 ) ; return this ; } <SENTENCE_END/>

(Copy Probability: 13.3%)

<SENTENCE_START> { set to ortho ( x , x + width , y , y + height , 0 , 1 ) ; return this ; } <SENTENCE_END/>

d

<SENTENCE_START> { set to ortho ( x , x + width , y , y + height , 0 , 1 ) ; return this ; } <SENTENCE_END/>

(Copy Probability: 4.4%)

<SENTENCE_START> { set to ortho ( x , x + width , y , y + height , 0 , 1 ) ; return this ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { set to ortho ( x , x + width , y , y + height , 0 , 1 ) ; return this ; } <SENTENCE_END/>

(Copy Probability: 4.4%)

<SENTENCE_START> { set to ortho ( x , x + width , y , y + height , 0 , 1 ) ; return this ; } <SENTENCE_END/>


Original Name set,to,ortho,2,d

set

<SENTENCE_START> { set to ortho ( x , x + width , y , y + height , near , far ) ; return this ; } <SENTENCE_END/>

(Copy Probability: 1.3%)

<SENTENCE_START> { set to ortho ( x , x + width , y , y + height , near , far ) ; return this ; } <SENTENCE_END/>

to

<SENTENCE_START> { set to ortho ( x , x + width , y , y + height , near , far ) ; return this ; } <SENTENCE_END/>

(Copy Probability: 73.3%)

<SENTENCE_START> { set to ortho ( x , x + width , y , y + height , near , far ) ; return this ; } <SENTENCE_END/>

ortho

<SENTENCE_START> { set to ortho ( x , x + width , y , y + height , near , far ) ; return this ; } <SENTENCE_END/>

(Copy Probability: 88.5%)

<SENTENCE_START> { set to ortho ( x , x + width , y , y + height , near , far ) ; return this ; } <SENTENCE_END/>

2

<SENTENCE_START> { set to ortho ( x , x + width , y , y + height , near , far ) ; return this ; } <SENTENCE_END/>

(Copy Probability: 13.2%)

<SENTENCE_START> { set to ortho ( x , x + width , y , y + height , near , far ) ; return this ; } <SENTENCE_END/>

d

<SENTENCE_START> { set to ortho ( x , x + width , y , y + height , near , far ) ; return this ; } <SENTENCE_END/>

(Copy Probability: 4.3%)

<SENTENCE_START> { set to ortho ( x , x + width , y , y + height , near , far ) ; return this ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { set to ortho ( x , x + width , y , y + height , near , far ) ; return this ; } <SENTENCE_END/>

(Copy Probability: 4.4%)

<SENTENCE_START> { set to ortho ( x , x + width , y , y + height , near , far ) ; return this ; } <SENTENCE_END/>


Original Name set,to,ortho

set

<SENTENCE_START> { this . idt ( ) ; float x orth = 2 / ( right - left ) ; float y orth = 2 / ( top - bottom ) ; float z orth = - 2 / ( far - near ) ; float tx = - ( right + left ) / ( right - left ) ; float ty = - ( top + bottom ) / ( top - bottom ) ; float tz = - ( far + near ) / ( far - near ) ; val [ m 00 ] = x orth ; val [ m 10 ] = 0 ; val [ m 20 ] = 0 ; val [ m 30 ] = 0 ; val [ m 01 ] = 0 ; val [ m 11 ] = y orth ; val [ m 21 ] = 0 ; val [ m 31 ] = 0 ; val [ m 02 ] = 0 ; val [ m 12 ] = 0 ; val [ m 22 ] = z orth ; val [ m 32 ] = 0 ; val [ m 03 ] = tx ; val [ m 13 ] = ty ; val [ m 23 ] = tz ; val [ m 33 ] = 1 ; return this ; } <SENTENCE_END/>

(Copy Probability: 2.4%)

<SENTENCE_START> { this . idt ( ) ; float x orth = 2 / ( right - left ) ; float y orth = 2 / ( top - bottom ) ; float z orth = - 2 / ( far - near ) ; float tx = - ( right + left ) / ( right - left ) ; float ty = - ( top + bottom ) / ( top - bottom ) ; float tz = - ( far + near ) / ( far - near ) ; val [ m 00 ] = x orth ; val [ m 10 ] = 0 ; val [ m 20 ] = 0 ; val [ m 30 ] = 0 ; val [ m 01 ] = 0 ; val [ m 11 ] = y orth ; val [ m 21 ] = 0 ; val [ m 31 ] = 0 ; val [ m 02 ] = 0 ; val [ m 12 ] = 0 ; val [ m 22 ] = z orth ; val [ m 32 ] = 0 ; val [ m 03 ] = tx ; val [ m 13 ] = ty ; val [ m 23 ] = tz ; val [ m 33 ] = 1 ; return this ; } <SENTENCE_END/>

to

<SENTENCE_START> { this . idt ( ) ; float x orth = 2 / ( right - left ) ; float y orth = 2 / ( top - bottom ) ; float z orth = - 2 / ( far - near ) ; float tx = - ( right + left ) / ( right - left ) ; float ty = - ( top + bottom ) / ( top - bottom ) ; float tz = - ( far + near ) / ( far - near ) ; val [ m 00 ] = x orth ; val [ m 10 ] = 0 ; val [ m 20 ] = 0 ; val [ m 30 ] = 0 ; val [ m 01 ] = 0 ; val [ m 11 ] = y orth ; val [ m 21 ] = 0 ; val [ m 31 ] = 0 ; val [ m 02 ] = 0 ; val [ m 12 ] = 0 ; val [ m 22 ] = z orth ; val [ m 32 ] = 0 ; val [ m 03 ] = tx ; val [ m 13 ] = ty ; val [ m 23 ] = tz ; val [ m 33 ] = 1 ; return this ; } <SENTENCE_END/>

(Copy Probability: 2.8%)

<SENTENCE_START> { this . idt ( ) ; float x orth = 2 / ( right - left ) ; float y orth = 2 / ( top - bottom ) ; float z orth = - 2 / ( far - near ) ; float tx = - ( right + left ) / ( right - left ) ; float ty = - ( top + bottom ) / ( top - bottom ) ; float tz = - ( far + near ) / ( far - near ) ; val [ m 00 ] = x orth ; val [ m 10 ] = 0 ; val [ m 20 ] = 0 ; val [ m 30 ] = 0 ; val [ m 01 ] = 0 ; val [ m 11 ] = y orth ; val [ m 21 ] = 0 ; val [ m 31 ] = 0 ; val [ m 02 ] = 0 ; val [ m 12 ] = 0 ; val [ m 22 ] = z orth ; val [ m 32 ] = 0 ; val [ m 03 ] = tx ; val [ m 13 ] = ty ; val [ m 23 ] = tz ; val [ m 33 ] = 1 ; return this ; } <SENTENCE_END/>

ortho

<SENTENCE_START> { this . idt ( ) ; float x orth = 2 / ( right - left ) ; float y orth = 2 / ( top - bottom ) ; float z orth = - 2 / ( far - near ) ; float tx = - ( right + left ) / ( right - left ) ; float ty = - ( top + bottom ) / ( top - bottom ) ; float tz = - ( far + near ) / ( far - near ) ; val [ m 00 ] = x orth ; val [ m 10 ] = 0 ; val [ m 20 ] = 0 ; val [ m 30 ] = 0 ; val [ m 01 ] = 0 ; val [ m 11 ] = y orth ; val [ m 21 ] = 0 ; val [ m 31 ] = 0 ; val [ m 02 ] = 0 ; val [ m 12 ] = 0 ; val [ m 22 ] = z orth ; val [ m 32 ] = 0 ; val [ m 03 ] = tx ; val [ m 13 ] = ty ; val [ m 23 ] = tz ; val [ m 33 ] = 1 ; return this ; } <SENTENCE_END/>

(Copy Probability: 2.7%)

<SENTENCE_START> { this . idt ( ) ; float x orth = 2 / ( right - left ) ; float y orth = 2 / ( top - bottom ) ; float z orth = - 2 / ( far - near ) ; float tx = - ( right + left ) / ( right - left ) ; float ty = - ( top + bottom ) / ( top - bottom ) ; float tz = - ( far + near ) / ( far - near ) ; val [ m 00 ] = x orth ; val [ m 10 ] = 0 ; val [ m 20 ] = 0 ; val [ m 30 ] = 0 ; val [ m 01 ] = 0 ; val [ m 11 ] = y orth ; val [ m 21 ] = 0 ; val [ m 31 ] = 0 ; val [ m 02 ] = 0 ; val [ m 12 ] = 0 ; val [ m 22 ] = z orth ; val [ m 32 ] = 0 ; val [ m 03 ] = tx ; val [ m 13 ] = ty ; val [ m 23 ] = tz ; val [ m 33 ] = 1 ; return this ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { this . idt ( ) ; float x orth = 2 / ( right - left ) ; float y orth = 2 / ( top - bottom ) ; float z orth = - 2 / ( far - near ) ; float tx = - ( right + left ) / ( right - left ) ; float ty = - ( top + bottom ) / ( top - bottom ) ; float tz = - ( far + near ) / ( far - near ) ; val [ m 00 ] = x orth ; val [ m 10 ] = 0 ; val [ m 20 ] = 0 ; val [ m 30 ] = 0 ; val [ m 01 ] = 0 ; val [ m 11 ] = y orth ; val [ m 21 ] = 0 ; val [ m 31 ] = 0 ; val [ m 02 ] = 0 ; val [ m 12 ] = 0 ; val [ m 22 ] = z orth ; val [ m 32 ] = 0 ; val [ m 03 ] = tx ; val [ m 13 ] = ty ; val [ m 23 ] = tz ; val [ m 33 ] = 1 ; return this ; } <SENTENCE_END/>

(Copy Probability: 3.1%)

<SENTENCE_START> { this . idt ( ) ; float x orth = 2 / ( right - left ) ; float y orth = 2 / ( top - bottom ) ; float z orth = - 2 / ( far - near ) ; float tx = - ( right + left ) / ( right - left ) ; float ty = - ( top + bottom ) / ( top - bottom ) ; float tz = - ( far + near ) / ( far - near ) ; val [ m 00 ] = x orth ; val [ m 10 ] = 0 ; val [ m 20 ] = 0 ; val [ m 30 ] = 0 ; val [ m 01 ] = 0 ; val [ m 11 ] = y orth ; val [ m 21 ] = 0 ; val [ m 31 ] = 0 ; val [ m 02 ] = 0 ; val [ m 12 ] = 0 ; val [ m 22 ] = z orth ; val [ m 32 ] = 0 ; val [ m 03 ] = tx ; val [ m 13 ] = ty ; val [ m 23 ] = tz ; val [ m 33 ] = 1 ; return this ; } <SENTENCE_END/>


Original Name set,translation

set

<SENTENCE_START> { val [ m 03 ] = vector . x ; val [ m 13 ] = vector . y ; val [ m 23 ] = vector . z ; return this ; } <SENTENCE_END/>

(Copy Probability: 1.2%)

<SENTENCE_START> { val [ m 03 ] = vector . x ; val [ m 13 ] = vector . y ; val [ m 23 ] = vector . z ; return this ; } <SENTENCE_END/>

translation

<SENTENCE_START> { val [ m 03 ] = vector . x ; val [ m 13 ] = vector . y ; val [ m 23 ] = vector . z ; return this ; } <SENTENCE_END/>

(Copy Probability: 1.4%)

<SENTENCE_START> { val [ m 03 ] = vector . x ; val [ m 13 ] = vector . y ; val [ m 23 ] = vector . z ; return this ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { val [ m 03 ] = vector . x ; val [ m 13 ] = vector . y ; val [ m 23 ] = vector . z ; return this ; } <SENTENCE_END/>

(Copy Probability: 1.3%)

<SENTENCE_START> { val [ m 03 ] = vector . x ; val [ m 13 ] = vector . y ; val [ m 23 ] = vector . z ; return this ; } <SENTENCE_END/>


Original Name set,translation

set

<SENTENCE_START> { val [ m 03 ] = x ; val [ m 13 ] = y ; val [ m 23 ] = z ; return this ; } <SENTENCE_END/>

(Copy Probability: 0.9%)

<SENTENCE_START> { val [ m 03 ] = x ; val [ m 13 ] = y ; val [ m 23 ] = z ; return this ; } <SENTENCE_END/>

translation

<SENTENCE_START> { val [ m 03 ] = x ; val [ m 13 ] = y ; val [ m 23 ] = z ; return this ; } <SENTENCE_END/>

(Copy Probability: 1.3%)

<SENTENCE_START> { val [ m 03 ] = x ; val [ m 13 ] = y ; val [ m 23 ] = z ; return this ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { val [ m 03 ] = x ; val [ m 13 ] = y ; val [ m 23 ] = z ; return this ; } <SENTENCE_END/>

(Copy Probability: 0.9%)

<SENTENCE_START> { val [ m 03 ] = x ; val [ m 13 ] = y ; val [ m 23 ] = z ; return this ; } <SENTENCE_END/>


Original Name set,to,translation

set

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = vector . x ; val [ m 13 ] = vector . y ; val [ m 23 ] = vector . z ; return this ; } <SENTENCE_END/>

(Copy Probability: 1.3%)

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = vector . x ; val [ m 13 ] = vector . y ; val [ m 23 ] = vector . z ; return this ; } <SENTENCE_END/>

to

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = vector . x ; val [ m 13 ] = vector . y ; val [ m 23 ] = vector . z ; return this ; } <SENTENCE_END/>

(Copy Probability: 1.3%)

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = vector . x ; val [ m 13 ] = vector . y ; val [ m 23 ] = vector . z ; return this ; } <SENTENCE_END/>

translation

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = vector . x ; val [ m 13 ] = vector . y ; val [ m 23 ] = vector . z ; return this ; } <SENTENCE_END/>

(Copy Probability: 0.9%)

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = vector . x ; val [ m 13 ] = vector . y ; val [ m 23 ] = vector . z ; return this ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = vector . x ; val [ m 13 ] = vector . y ; val [ m 23 ] = vector . z ; return this ; } <SENTENCE_END/>

(Copy Probability: 2.8%)

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = vector . x ; val [ m 13 ] = vector . y ; val [ m 23 ] = vector . z ; return this ; } <SENTENCE_END/>


Original Name set,to,translation

set

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = x ; val [ m 13 ] = y ; val [ m 23 ] = z ; return this ; } <SENTENCE_END/>

(Copy Probability: 1.0%)

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = x ; val [ m 13 ] = y ; val [ m 23 ] = z ; return this ; } <SENTENCE_END/>

to

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = x ; val [ m 13 ] = y ; val [ m 23 ] = z ; return this ; } <SENTENCE_END/>

(Copy Probability: 1.2%)

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = x ; val [ m 13 ] = y ; val [ m 23 ] = z ; return this ; } <SENTENCE_END/>

translation

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = x ; val [ m 13 ] = y ; val [ m 23 ] = z ; return this ; } <SENTENCE_END/>

(Copy Probability: 0.5%)

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = x ; val [ m 13 ] = y ; val [ m 23 ] = z ; return this ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = x ; val [ m 13 ] = y ; val [ m 23 ] = z ; return this ; } <SENTENCE_END/>

(Copy Probability: 2.4%)

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = x ; val [ m 13 ] = y ; val [ m 23 ] = z ; return this ; } <SENTENCE_END/>


Original Name set,to,translation,and,scaling

set

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = translation . x ; val [ m 13 ] = translation . y ; val [ m 23 ] = translation . z ; val [ m 00 ] = scaling . x ; val [ m 11 ] = scaling . y ; val [ m 22 ] = scaling . z ; return this ; } <SENTENCE_END/>

(Copy Probability: 2.2%)

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = translation . x ; val [ m 13 ] = translation . y ; val [ m 23 ] = translation . z ; val [ m 00 ] = scaling . x ; val [ m 11 ] = scaling . y ; val [ m 22 ] = scaling . z ; return this ; } <SENTENCE_END/>

to

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = translation . x ; val [ m 13 ] = translation . y ; val [ m 23 ] = translation . z ; val [ m 00 ] = scaling . x ; val [ m 11 ] = scaling . y ; val [ m 22 ] = scaling . z ; return this ; } <SENTENCE_END/>

(Copy Probability: 2.7%)

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = translation . x ; val [ m 13 ] = translation . y ; val [ m 23 ] = translation . z ; val [ m 00 ] = scaling . x ; val [ m 11 ] = scaling . y ; val [ m 22 ] = scaling . z ; return this ; } <SENTENCE_END/>

translation

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = translation . x ; val [ m 13 ] = translation . y ; val [ m 23 ] = translation . z ; val [ m 00 ] = scaling . x ; val [ m 11 ] = scaling . y ; val [ m 22 ] = scaling . z ; return this ; } <SENTENCE_END/>

(Copy Probability: 1.2%)

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = translation . x ; val [ m 13 ] = translation . y ; val [ m 23 ] = translation . z ; val [ m 00 ] = scaling . x ; val [ m 11 ] = scaling . y ; val [ m 22 ] = scaling . z ; return this ; } <SENTENCE_END/>

and

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = translation . x ; val [ m 13 ] = translation . y ; val [ m 23 ] = translation . z ; val [ m 00 ] = scaling . x ; val [ m 11 ] = scaling . y ; val [ m 22 ] = scaling . z ; return this ; } <SENTENCE_END/>

(Copy Probability: 2.6%)

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = translation . x ; val [ m 13 ] = translation . y ; val [ m 23 ] = translation . z ; val [ m 00 ] = scaling . x ; val [ m 11 ] = scaling . y ; val [ m 22 ] = scaling . z ; return this ; } <SENTENCE_END/>

scaling

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = translation . x ; val [ m 13 ] = translation . y ; val [ m 23 ] = translation . z ; val [ m 00 ] = scaling . x ; val [ m 11 ] = scaling . y ; val [ m 22 ] = scaling . z ; return this ; } <SENTENCE_END/>

(Copy Probability: 3.7%)

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = translation . x ; val [ m 13 ] = translation . y ; val [ m 23 ] = translation . z ; val [ m 00 ] = scaling . x ; val [ m 11 ] = scaling . y ; val [ m 22 ] = scaling . z ; return this ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = translation . x ; val [ m 13 ] = translation . y ; val [ m 23 ] = translation . z ; val [ m 00 ] = scaling . x ; val [ m 11 ] = scaling . y ; val [ m 22 ] = scaling . z ; return this ; } <SENTENCE_END/>

(Copy Probability: 2.9%)

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = translation . x ; val [ m 13 ] = translation . y ; val [ m 23 ] = translation . z ; val [ m 00 ] = scaling . x ; val [ m 11 ] = scaling . y ; val [ m 22 ] = scaling . z ; return this ; } <SENTENCE_END/>


Original Name set,to,translation,and,scaling

set

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = translation x ; val [ m 13 ] = translation y ; val [ m 23 ] = translation z ; val [ m 00 ] = scaling x ; val [ m 11 ] = scaling y ; val [ m 22 ] = scaling z ; return this ; } <SENTENCE_END/>

(Copy Probability: 1.7%)

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = translation x ; val [ m 13 ] = translation y ; val [ m 23 ] = translation z ; val [ m 00 ] = scaling x ; val [ m 11 ] = scaling y ; val [ m 22 ] = scaling z ; return this ; } <SENTENCE_END/>

to

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = translation x ; val [ m 13 ] = translation y ; val [ m 23 ] = translation z ; val [ m 00 ] = scaling x ; val [ m 11 ] = scaling y ; val [ m 22 ] = scaling z ; return this ; } <SENTENCE_END/>

(Copy Probability: 4.3%)

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = translation x ; val [ m 13 ] = translation y ; val [ m 23 ] = translation z ; val [ m 00 ] = scaling x ; val [ m 11 ] = scaling y ; val [ m 22 ] = scaling z ; return this ; } <SENTENCE_END/>

translation

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = translation x ; val [ m 13 ] = translation y ; val [ m 23 ] = translation z ; val [ m 00 ] = scaling x ; val [ m 11 ] = scaling y ; val [ m 22 ] = scaling z ; return this ; } <SENTENCE_END/>

(Copy Probability: 1.4%)

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = translation x ; val [ m 13 ] = translation y ; val [ m 23 ] = translation z ; val [ m 00 ] = scaling x ; val [ m 11 ] = scaling y ; val [ m 22 ] = scaling z ; return this ; } <SENTENCE_END/>

and

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = translation x ; val [ m 13 ] = translation y ; val [ m 23 ] = translation z ; val [ m 00 ] = scaling x ; val [ m 11 ] = scaling y ; val [ m 22 ] = scaling z ; return this ; } <SENTENCE_END/>

(Copy Probability: 2.6%)

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = translation x ; val [ m 13 ] = translation y ; val [ m 23 ] = translation z ; val [ m 00 ] = scaling x ; val [ m 11 ] = scaling y ; val [ m 22 ] = scaling z ; return this ; } <SENTENCE_END/>

scaling

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = translation x ; val [ m 13 ] = translation y ; val [ m 23 ] = translation z ; val [ m 00 ] = scaling x ; val [ m 11 ] = scaling y ; val [ m 22 ] = scaling z ; return this ; } <SENTENCE_END/>

(Copy Probability: 4.7%)

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = translation x ; val [ m 13 ] = translation y ; val [ m 23 ] = translation z ; val [ m 00 ] = scaling x ; val [ m 11 ] = scaling y ; val [ m 22 ] = scaling z ; return this ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = translation x ; val [ m 13 ] = translation y ; val [ m 23 ] = translation z ; val [ m 00 ] = scaling x ; val [ m 11 ] = scaling y ; val [ m 22 ] = scaling z ; return this ; } <SENTENCE_END/>

(Copy Probability: 3.2%)

<SENTENCE_START> { idt ( ) ; val [ m 03 ] = translation x ; val [ m 13 ] = translation y ; val [ m 23 ] = translation z ; val [ m 00 ] = scaling x ; val [ m 11 ] = scaling y ; val [ m 22 ] = scaling z ; return this ; } <SENTENCE_END/>


Original Name set,to,rotation

set

<SENTENCE_START> { if ( degrees == 0 ) { idt ( ) ; return this ; } return set ( quat . set ( axis , degrees ) ) ; } <SENTENCE_END/>

(Copy Probability: 1.0%)

<SENTENCE_START> { if ( degrees == 0 ) { idt ( ) ; return this ; } return set ( quat . set ( axis , degrees ) ) ; } <SENTENCE_END/>

to

<SENTENCE_START> { if ( degrees == 0 ) { idt ( ) ; return this ; } return set ( quat . set ( axis , degrees ) ) ; } <SENTENCE_END/>

(Copy Probability: 1.5%)

<SENTENCE_START> { if ( degrees == 0 ) { idt ( ) ; return this ; } return set ( quat . set ( axis , degrees ) ) ; } <SENTENCE_END/>

rotation

<SENTENCE_START> { if ( degrees == 0 ) { idt ( ) ; return this ; } return set ( quat . set ( axis , degrees ) ) ; } <SENTENCE_END/>

(Copy Probability: 0.6%)

<SENTENCE_START> { if ( degrees == 0 ) { idt ( ) ; return this ; } return set ( quat . set ( axis , degrees ) ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { if ( degrees == 0 ) { idt ( ) ; return this ; } return set ( quat . set ( axis , degrees ) ) ; } <SENTENCE_END/>

(Copy Probability: 1.9%)

<SENTENCE_START> { if ( degrees == 0 ) { idt ( ) ; return this ; } return set ( quat . set ( axis , degrees ) ) ; } <SENTENCE_END/>


Original Name set,to,rotation,rad

set

<SENTENCE_START> { if ( radians == 0 ) { idt ( ) ; return this ; } return set ( quat . set from axis rad ( axis , radians ) ) ; } <SENTENCE_END/>

(Copy Probability: 1.1%)

<SENTENCE_START> { if ( radians == 0 ) { idt ( ) ; return this ; } return set ( quat . set from axis rad ( axis , radians ) ) ; } <SENTENCE_END/>

to

<SENTENCE_START> { if ( radians == 0 ) { idt ( ) ; return this ; } return set ( quat . set from axis rad ( axis , radians ) ) ; } <SENTENCE_END/>

(Copy Probability: 5.3%)

<SENTENCE_START> { if ( radians == 0 ) { idt ( ) ; return this ; } return set ( quat . set from axis rad ( axis , radians ) ) ; } <SENTENCE_END/>

rotation

<SENTENCE_START> { if ( radians == 0 ) { idt ( ) ; return this ; } return set ( quat . set from axis rad ( axis , radians ) ) ; } <SENTENCE_END/>

(Copy Probability: 1.4%)

<SENTENCE_START> { if ( radians == 0 ) { idt ( ) ; return this ; } return set ( quat . set from axis rad ( axis , radians ) ) ; } <SENTENCE_END/>

rad

<SENTENCE_START> { if ( radians == 0 ) { idt ( ) ; return this ; } return set ( quat . set from axis rad ( axis , radians ) ) ; } <SENTENCE_END/>

(Copy Probability: 2.1%)

<SENTENCE_START> { if ( radians == 0 ) { idt ( ) ; return this ; } return set ( quat . set from axis rad ( axis , radians ) ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { if ( radians == 0 ) { idt ( ) ; return this ; } return set ( quat . set from axis rad ( axis , radians ) ) ; } <SENTENCE_END/>

(Copy Probability: 3.2%)

<SENTENCE_START> { if ( radians == 0 ) { idt ( ) ; return this ; } return set ( quat . set from axis rad ( axis , radians ) ) ; } <SENTENCE_END/>


Original Name set,to,rotation

set

<SENTENCE_START> { if ( degrees == 0 ) { idt ( ) ; return this ; } return set ( quat . set from axis ( axis x , axis y , axis z , degrees ) ) ; } <SENTENCE_END/>

(Copy Probability: 1.0%)

<SENTENCE_START> { if ( degrees == 0 ) { idt ( ) ; return this ; } return set ( quat . set from axis ( axis x , axis y , axis z , degrees ) ) ; } <SENTENCE_END/>

to

<SENTENCE_START> { if ( degrees == 0 ) { idt ( ) ; return this ; } return set ( quat . set from axis ( axis x , axis y , axis z , degrees ) ) ; } <SENTENCE_END/>

(Copy Probability: 3.6%)

<SENTENCE_START> { if ( degrees == 0 ) { idt ( ) ; return this ; } return set ( quat . set from axis ( axis x , axis y , axis z , degrees ) ) ; } <SENTENCE_END/>

rotation

<SENTENCE_START> { if ( degrees == 0 ) { idt ( ) ; return this ; } return set ( quat . set from axis ( axis x , axis y , axis z , degrees ) ) ; } <SENTENCE_END/>

(Copy Probability: 2.0%)

<SENTENCE_START> { if ( degrees == 0 ) { idt ( ) ; return this ; } return set ( quat . set from axis ( axis x , axis y , axis z , degrees ) ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { if ( degrees == 0 ) { idt ( ) ; return this ; } return set ( quat . set from axis ( axis x , axis y , axis z , degrees ) ) ; } <SENTENCE_END/>

(Copy Probability: 1.9%)

<SENTENCE_START> { if ( degrees == 0 ) { idt ( ) ; return this ; } return set ( quat . set from axis ( axis x , axis y , axis z , degrees ) ) ; } <SENTENCE_END/>


Original Name set,to,rotation,rad

set

<SENTENCE_START> { if ( radians == 0 ) { idt ( ) ; return this ; } return set ( quat . set from axis rad ( axis x , axis y , axis z , radians ) ) ; } <SENTENCE_END/>

(Copy Probability: 1.3%)

<SENTENCE_START> { if ( radians == 0 ) { idt ( ) ; return this ; } return set ( quat . set from axis rad ( axis x , axis y , axis z , radians ) ) ; } <SENTENCE_END/>

to

<SENTENCE_START> { if ( radians == 0 ) { idt ( ) ; return this ; } return set ( quat . set from axis rad ( axis x , axis y , axis z , radians ) ) ; } <SENTENCE_END/>

(Copy Probability: 10.3%)

<SENTENCE_START> { if ( radians == 0 ) { idt ( ) ; return this ; } return set ( quat . set from axis rad ( axis x , axis y , axis z , radians ) ) ; } <SENTENCE_END/>

rotation

<SENTENCE_START> { if ( radians == 0 ) { idt ( ) ; return this ; } return set ( quat . set from axis rad ( axis x , axis y , axis z , radians ) ) ; } <SENTENCE_END/>

(Copy Probability: 3.5%)

<SENTENCE_START> { if ( radians == 0 ) { idt ( ) ; return this ; } return set ( quat . set from axis rad ( axis x , axis y , axis z , radians ) ) ; } <SENTENCE_END/>

rad

<SENTENCE_START> { if ( radians == 0 ) { idt ( ) ; return this ; } return set ( quat . set from axis rad ( axis x , axis y , axis z , radians ) ) ; } <SENTENCE_END/>

(Copy Probability: 2.4%)

<SENTENCE_START> { if ( radians == 0 ) { idt ( ) ; return this ; } return set ( quat . set from axis rad ( axis x , axis y , axis z , radians ) ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { if ( radians == 0 ) { idt ( ) ; return this ; } return set ( quat . set from axis rad ( axis x , axis y , axis z , radians ) ) ; } <SENTENCE_END/>

(Copy Probability: 3.4%)

<SENTENCE_START> { if ( radians == 0 ) { idt ( ) ; return this ; } return set ( quat . set from axis rad ( axis x , axis y , axis z , radians ) ) ; } <SENTENCE_END/>


Original Name set,to,rotation

set

<SENTENCE_START> { return set ( quat . set from cross ( v 1 , v 2 ) ) ; } <SENTENCE_END/>

(Copy Probability: 0.6%)

<SENTENCE_START> { return set ( quat . set from cross ( v 1 , v 2 ) ) ; } <SENTENCE_END/>

to

<SENTENCE_START> { return set ( quat . set from cross ( v 1 , v 2 ) ) ; } <SENTENCE_END/>

(Copy Probability: 2.0%)

<SENTENCE_START> { return set ( quat . set from cross ( v 1 , v 2 ) ) ; } <SENTENCE_END/>

rotation

<SENTENCE_START> { return set ( quat . set from cross ( v 1 , v 2 ) ) ; } <SENTENCE_END/>

(Copy Probability: 1.5%)

<SENTENCE_START> { return set ( quat . set from cross ( v 1 , v 2 ) ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return set ( quat . set from cross ( v 1 , v 2 ) ) ; } <SENTENCE_END/>

(Copy Probability: 1.9%)

<SENTENCE_START> { return set ( quat . set from cross ( v 1 , v 2 ) ) ; } <SENTENCE_END/>


Original Name set,to,rotation

set

<SENTENCE_START> { return set ( quat . set from cross ( x 1 , y 1 , z 1 , x 2 , y 2 , z 2 ) ) ; } <SENTENCE_END/>

(Copy Probability: 1.5%)

<SENTENCE_START> { return set ( quat . set from cross ( x 1 , y 1 , z 1 , x 2 , y 2 , z 2 ) ) ; } <SENTENCE_END/>

to

<SENTENCE_START> { return set ( quat . set from cross ( x 1 , y 1 , z 1 , x 2 , y 2 , z 2 ) ) ; } <SENTENCE_END/>

(Copy Probability: 3.8%)

<SENTENCE_START> { return set ( quat . set from cross ( x 1 , y 1 , z 1 , x 2 , y 2 , z 2 ) ) ; } <SENTENCE_END/>

rotation

<SENTENCE_START> { return set ( quat . set from cross ( x 1 , y 1 , z 1 , x 2 , y 2 , z 2 ) ) ; } <SENTENCE_END/>

(Copy Probability: 2.1%)

<SENTENCE_START> { return set ( quat . set from cross ( x 1 , y 1 , z 1 , x 2 , y 2 , z 2 ) ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { return set ( quat . set from cross ( x 1 , y 1 , z 1 , x 2 , y 2 , z 2 ) ) ; } <SENTENCE_END/>

(Copy Probability: 2.7%)

<SENTENCE_START> { return set ( quat . set from cross ( x 1 , y 1 , z 1 , x 2 , y 2 , z 2 ) ) ; } <SENTENCE_END/>


Original Name set,from,euler,angles

set

<SENTENCE_START> { quat . set euler angles ( yaw , pitch , roll ) ; return set ( quat ) ; } <SENTENCE_END/>

(Copy Probability: 1.1%)

<SENTENCE_START> { quat . set euler angles ( yaw , pitch , roll ) ; return set ( quat ) ; } <SENTENCE_END/>

from

<SENTENCE_START> { quat . set euler angles ( yaw , pitch , roll ) ; return set ( quat ) ; } <SENTENCE_END/>

(Copy Probability: 53.7%)

<SENTENCE_START> { quat . set euler angles ( yaw , pitch , roll ) ; return set ( quat ) ; } <SENTENCE_END/>

euler

<SENTENCE_START> { quat . set euler angles ( yaw , pitch , roll ) ; return set ( quat ) ; } <SENTENCE_END/>

(Copy Probability: 16.6%)

<SENTENCE_START> { quat . set euler angles ( yaw , pitch , roll ) ; return set ( quat ) ; } <SENTENCE_END/>

angles

<SENTENCE_START> { quat . set euler angles ( yaw , pitch , roll ) ; return set ( quat ) ; } <SENTENCE_END/>

(Copy Probability: 2.6%)

<SENTENCE_START> { quat . set euler angles ( yaw , pitch , roll ) ; return set ( quat ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { quat . set euler angles ( yaw , pitch , roll ) ; return set ( quat ) ; } <SENTENCE_END/>

(Copy Probability: 3.9%)

<SENTENCE_START> { quat . set euler angles ( yaw , pitch , roll ) ; return set ( quat ) ; } <SENTENCE_END/>


Original Name set,from,euler,angles,rad

set

<SENTENCE_START> { quat . set euler angles rad ( yaw , pitch , roll ) ; return set ( quat ) ; } <SENTENCE_END/>

(Copy Probability: 1.7%)

<SENTENCE_START> { quat . set euler angles rad ( yaw , pitch , roll ) ; return set ( quat ) ; } <SENTENCE_END/>

from

<SENTENCE_START> { quat . set euler angles rad ( yaw , pitch , roll ) ; return set ( quat ) ; } <SENTENCE_END/>

(Copy Probability: 88.9%)

<SENTENCE_START> { quat . set euler angles rad ( yaw , pitch , roll ) ; return set ( quat ) ; } <SENTENCE_END/>

euler

<SENTENCE_START> { quat . set euler angles rad ( yaw , pitch , roll ) ; return set ( quat ) ; } <SENTENCE_END/>

(Copy Probability: 71.7%)

<SENTENCE_START> { quat . set euler angles rad ( yaw , pitch , roll ) ; return set ( quat ) ; } <SENTENCE_END/>

angles

<SENTENCE_START> { quat . set euler angles rad ( yaw , pitch , roll ) ; return set ( quat ) ; } <SENTENCE_END/>

(Copy Probability: 7.3%)

<SENTENCE_START> { quat . set euler angles rad ( yaw , pitch , roll ) ; return set ( quat ) ; } <SENTENCE_END/>

rad

<SENTENCE_START> { quat . set euler angles rad ( yaw , pitch , roll ) ; return set ( quat ) ; } <SENTENCE_END/>

(Copy Probability: 4.2%)

<SENTENCE_START> { quat . set euler angles rad ( yaw , pitch , roll ) ; return set ( quat ) ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { quat . set euler angles rad ( yaw , pitch , roll ) ; return set ( quat ) ; } <SENTENCE_END/>

(Copy Probability: 4.2%)

<SENTENCE_START> { quat . set euler angles rad ( yaw , pitch , roll ) ; return set ( quat ) ; } <SENTENCE_END/>


Original Name set,to,scaling

set

<SENTENCE_START> { idt ( ) ; val [ m 00 ] = vector . x ; val [ m 11 ] = vector . y ; val [ m 22 ] = vector . z ; return this ; } <SENTENCE_END/>

(Copy Probability: 1.5%)

<SENTENCE_START> { idt ( ) ; val [ m 00 ] = vector . x ; val [ m 11 ] = vector . y ; val [ m 22 ] = vector . z ; return this ; } <SENTENCE_END/>

to

<SENTENCE_START> { idt ( ) ; val [ m 00 ] = vector . x ; val [ m 11 ] = vector . y ; val [ m 22 ] = vector . z ; return this ; } <SENTENCE_END/>

(Copy Probability: 1.7%)

<SENTENCE_START> { idt ( ) ; val [ m 00 ] = vector . x ; val [ m 11 ] = vector . y ; val [ m 22 ] = vector . z ; return this ; } <SENTENCE_END/>

scaling

<SENTENCE_START> { idt ( ) ; val [ m 00 ] = vector . x ; val [ m 11 ] = vector . y ; val [ m 22 ] = vector . z ; return this ; } <SENTENCE_END/>

(Copy Probability: 0.9%)

<SENTENCE_START> { idt ( ) ; val [ m 00 ] = vector . x ; val [ m 11 ] = vector . y ; val [ m 22 ] = vector . z ; return this ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { idt ( ) ; val [ m 00 ] = vector . x ; val [ m 11 ] = vector . y ; val [ m 22 ] = vector . z ; return this ; } <SENTENCE_END/>

(Copy Probability: 2.8%)

<SENTENCE_START> { idt ( ) ; val [ m 00 ] = vector . x ; val [ m 11 ] = vector . y ; val [ m 22 ] = vector . z ; return this ; } <SENTENCE_END/>


Original Name set,to,scaling

set

<SENTENCE_START> { idt ( ) ; val [ m 00 ] = x ; val [ m 11 ] = y ; val [ m 22 ] = z ; return this ; } <SENTENCE_END/>

(Copy Probability: 1.5%)

<SENTENCE_START> { idt ( ) ; val [ m 00 ] = x ; val [ m 11 ] = y ; val [ m 22 ] = z ; return this ; } <SENTENCE_END/>

to

<SENTENCE_START> { idt ( ) ; val [ m 00 ] = x ; val [ m 11 ] = y ; val [ m 22 ] = z ; return this ; } <SENTENCE_END/>

(Copy Probability: 2.0%)

<SENTENCE_START> { idt ( ) ; val [ m 00 ] = x ; val [ m 11 ] = y ; val [ m 22 ] = z ; return this ; } <SENTENCE_END/>

scaling

<SENTENCE_START> { idt ( ) ; val [ m 00 ] = x ; val [ m 11 ] = y ; val [ m 22 ] = z ; return this ; } <SENTENCE_END/>

(Copy Probability: 0.5%)

<SENTENCE_START> { idt ( ) ; val [ m 00 ] = x ; val [ m 11 ] = y ; val [ m 22 ] = z ; return this ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { idt ( ) ; val [ m 00 ] = x ; val [ m 11 ] = y ; val [ m 22 ] = z ; return this ; } <SENTENCE_END/>

(Copy Probability: 1.8%)

<SENTENCE_START> { idt ( ) ; val [ m 00 ] = x ; val [ m 11 ] = y ; val [ m 22 ] = z ; return this ; } <SENTENCE_END/>


Original Name set,to,look,at

set

<SENTENCE_START> { l vez . set ( direction ) . nor ( ) ; l vex . set ( direction ) . nor ( ) ; l vex . crs ( up ) . nor ( ) ; l vey . set ( l vex ) . crs ( l vez ) . nor ( ) ; idt ( ) ; val [ m 00 ] = l vex . x ; val [ m 01 ] = l vex . y ; val [ m 02 ] = l vex . z ; val [ m 10 ] = l vey . x ; val [ m 11 ] = l vey . y ; val [ m 12 ] = l vey . z ; val [ m 20 ] = - l vez . x ; val [ m 21 ] = - l vez . y ; val [ m 22 ] = - l vez . z ; return this ; } <SENTENCE_END/>

(Copy Probability: 2.2%)

<SENTENCE_START> { l vez . set ( direction ) . nor ( ) ; l vex . set ( direction ) . nor ( ) ; l vex . crs ( up ) . nor ( ) ; l vey . set ( l vex ) . crs ( l vez ) . nor ( ) ; idt ( ) ; val [ m 00 ] = l vex . x ; val [ m 01 ] = l vex . y ; val [ m 02 ] = l vex . z ; val [ m 10 ] = l vey . x ; val [ m 11 ] = l vey . y ; val [ m 12 ] = l vey . z ; val [ m 20 ] = - l vez . x ; val [ m 21 ] = - l vez . y ; val [ m 22 ] = - l vez . z ; return this ; } <SENTENCE_END/>

to

<SENTENCE_START> { l vez . set ( direction ) . nor ( ) ; l vex . set ( direction ) . nor ( ) ; l vex . crs ( up ) . nor ( ) ; l vey . set ( l vex ) . crs ( l vez ) . nor ( ) ; idt ( ) ; val [ m 00 ] = l vex . x ; val [ m 01 ] = l vex . y ; val [ m 02 ] = l vex . z ; val [ m 10 ] = l vey . x ; val [ m 11 ] = l vey . y ; val [ m 12 ] = l vey . z ; val [ m 20 ] = - l vez . x ; val [ m 21 ] = - l vez . y ; val [ m 22 ] = - l vez . z ; return this ; } <SENTENCE_END/>

(Copy Probability: 3.0%)

<SENTENCE_START> { l vez . set ( direction ) . nor ( ) ; l vex . set ( direction ) . nor ( ) ; l vex . crs ( up ) . nor ( ) ; l vey . set ( l vex ) . crs ( l vez ) . nor ( ) ; idt ( ) ; val [ m 00 ] = l vex . x ; val [ m 01 ] = l vex . y ; val [ m 02 ] = l vex . z ; val [ m 10 ] = l vey . x ; val [ m 11 ] = l vey . y ; val [ m 12 ] = l vey . z ; val [ m 20 ] = - l vez . x ; val [ m 21 ] = - l vez . y ; val [ m 22 ] = - l vez . z ; return this ; } <SENTENCE_END/>

look

<SENTENCE_START> { l vez . set ( direction ) . nor ( ) ; l vex . set ( direction ) . nor ( ) ; l vex . crs ( up ) . nor ( ) ; l vey . set ( l vex ) . crs ( l vez ) . nor ( ) ; idt ( ) ; val [ m 00 ] = l vex . x ; val [ m 01 ] = l vex . y ; val [ m 02 ] = l vex . z ; val [ m 10 ] = l vey . x ; val [ m 11 ] = l vey . y ; val [ m 12 ] = l vey . z ; val [ m 20 ] = - l vez . x ; val [ m 21 ] = - l vez . y ; val [ m 22 ] = - l vez . z ; return this ; } <SENTENCE_END/>

(Copy Probability: 1.9%)

<SENTENCE_START> { l vez . set ( direction ) . nor ( ) ; l vex . set ( direction ) . nor ( ) ; l vex . crs ( up ) . nor ( ) ; l vey . set ( l vex ) . crs ( l vez ) . nor ( ) ; idt ( ) ; val [ m 00 ] = l vex . x ; val [ m 01 ] = l vex . y ; val [ m 02 ] = l vex . z ; val [ m 10 ] = l vey . x ; val [ m 11 ] = l vey . y ; val [ m 12 ] = l vey . z ; val [ m 20 ] = - l vez . x ; val [ m 21 ] = - l vez . y ; val [ m 22 ] = - l vez . z ; return this ; } <SENTENCE_END/>

at

<SENTENCE_START> { l vez . set ( direction ) . nor ( ) ; l vex . set ( direction ) . nor ( ) ; l vex . crs ( up ) . nor ( ) ; l vey . set ( l vex ) . crs ( l vez ) . nor ( ) ; idt ( ) ; val [ m 00 ] = l vex . x ; val [ m 01 ] = l vex . y ; val [ m 02 ] = l vex . z ; val [ m 10 ] = l vey . x ; val [ m 11 ] = l vey . y ; val [ m 12 ] = l vey . z ; val [ m 20 ] = - l vez . x ; val [ m 21 ] = - l vez . y ; val [ m 22 ] = - l vez . z ; return this ; } <SENTENCE_END/>

(Copy Probability: 2.7%)

<SENTENCE_START> { l vez . set ( direction ) . nor ( ) ; l vex . set ( direction ) . nor ( ) ; l vex . crs ( up ) . nor ( ) ; l vey . set ( l vex ) . crs ( l vez ) . nor ( ) ; idt ( ) ; val [ m 00 ] = l vex . x ; val [ m 01 ] = l vex . y ; val [ m 02 ] = l vex . z ; val [ m 10 ] = l vey . x ; val [ m 11 ] = l vey . y ; val [ m 12 ] = l vey . z ; val [ m 20 ] = - l vez . x ; val [ m 21 ] = - l vez . y ; val [ m 22 ] = - l vez . z ; return this ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { l vez . set ( direction ) . nor ( ) ; l vex . set ( direction ) . nor ( ) ; l vex . crs ( up ) . nor ( ) ; l vey . set ( l vex ) . crs ( l vez ) . nor ( ) ; idt ( ) ; val [ m 00 ] = l vex . x ; val [ m 01 ] = l vex . y ; val [ m 02 ] = l vex . z ; val [ m 10 ] = l vey . x ; val [ m 11 ] = l vey . y ; val [ m 12 ] = l vey . z ; val [ m 20 ] = - l vez . x ; val [ m 21 ] = - l vez . y ; val [ m 22 ] = - l vez . z ; return this ; } <SENTENCE_END/>

(Copy Probability: 3.8%)

<SENTENCE_START> { l vez . set ( direction ) . nor ( ) ; l vex . set ( direction ) . nor ( ) ; l vex . crs ( up ) . nor ( ) ; l vey . set ( l vex ) . crs ( l vez ) . nor ( ) ; idt ( ) ; val [ m 00 ] = l vex . x ; val [ m 01 ] = l vex . y ; val [ m 02 ] = l vex . z ; val [ m 10 ] = l vey . x ; val [ m 11 ] = l vey . y ; val [ m 12 ] = l vey . z ; val [ m 20 ] = - l vez . x ; val [ m 21 ] = - l vez . y ; val [ m 22 ] = - l vez . z ; return this ; } <SENTENCE_END/>


Original Name set,to,look,at

set

<SENTENCE_START> { tmp vec . set ( target ) . sub ( position ) ; %SELF% ( tmp vec , up ) ; this . mul ( tmp mat . set to translation ( - position . x , - position . y , - position . z ) ) ; return this ; } <SENTENCE_END/>

(Copy Probability: 1.7%)

<SENTENCE_START> { tmp vec . set ( target ) . sub ( position ) ; %SELF% ( tmp vec , up ) ; this . mul ( tmp mat . set to translation ( - position . x , - position . y , - position . z ) ) ; return this ; } <SENTENCE_END/>

to

<SENTENCE_START> { tmp vec . set ( target ) . sub ( position ) ; %SELF% ( tmp vec , up ) ; this . mul ( tmp mat . set to translation ( - position . x , - position . y , - position . z ) ) ; return this ; } <SENTENCE_END/>

(Copy Probability: 4.2%)

<SENTENCE_START> { tmp vec . set ( target ) . sub ( position ) ; %SELF% ( tmp vec , up ) ; this . mul ( tmp mat . set to translation ( - position . x , - position . y , - position . z ) ) ; return this ; } <SENTENCE_END/>

look

<SENTENCE_START> { tmp vec . set ( target ) . sub ( position ) ; %SELF% ( tmp vec , up ) ; this . mul ( tmp mat . set to translation ( - position . x , - position . y , - position . z ) ) ; return this ; } <SENTENCE_END/>

(Copy Probability: 1.4%)

<SENTENCE_START> { tmp vec . set ( target ) . sub ( position ) ; %SELF% ( tmp vec , up ) ; this . mul ( tmp mat . set to translation ( - position . x , - position . y , - position . z ) ) ; return this ; } <SENTENCE_END/>

at

<SENTENCE_START> { tmp vec . set ( target ) . sub ( position ) ; %SELF% ( tmp vec , up ) ; this . mul ( tmp mat . set to translation ( - position . x , - position . y , - position . z ) ) ; return this ; } <SENTENCE_END/>

(Copy Probability: 1.9%)

<SENTENCE_START> { tmp vec . set ( target ) . sub ( position ) ; %SELF% ( tmp vec , up ) ; this . mul ( tmp mat . set to translation ( - position . x , - position . y , - position . z ) ) ; return this ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { tmp vec . set ( target ) . sub ( position ) ; %SELF% ( tmp vec , up ) ; this . mul ( tmp mat . set to translation ( - position . x , - position . y , - position . z ) ) ; return this ; } <SENTENCE_END/>

(Copy Probability: 3.3%)

<SENTENCE_START> { tmp vec . set ( target ) . sub ( position ) ; %SELF% ( tmp vec , up ) ; this . mul ( tmp mat . set to translation ( - position . x , - position . y , - position . z ) ) ; return this ; } <SENTENCE_END/>


Original Name set,to,world

set

<SENTENCE_START> { tmp forward . set ( forward ) . nor ( ) ; right . set ( tmp forward ) . crs ( up ) . nor ( ) ; tmp up . set ( right ) . crs ( tmp forward ) . nor ( ) ; this . set ( right , tmp up , tmp forward . scl ( - 1 ) , position ) ; return this ; } <SENTENCE_END/>

(Copy Probability: 1.8%)

<SENTENCE_START> { tmp forward . set ( forward ) . nor ( ) ; right . set ( tmp forward ) . crs ( up ) . nor ( ) ; tmp up . set ( right ) . crs ( tmp forward ) . nor ( ) ; this . set ( right , tmp up , tmp forward . scl ( - 1 ) , position ) ; return this ; } <SENTENCE_END/>

to

<SENTENCE_START> { tmp forward . set ( forward ) . nor ( ) ; right . set ( tmp forward ) . crs ( up ) . nor ( ) ; tmp up . set ( right ) . crs ( tmp forward ) . nor ( ) ; this . set ( right , tmp up , tmp forward . scl ( - 1 ) , position ) ; return this ; } <SENTENCE_END/>

(Copy Probability: 2.8%)

<SENTENCE_START> { tmp forward . set ( forward ) . nor ( ) ; right . set ( tmp forward ) . crs ( up ) . nor ( ) ; tmp up . set ( right ) . crs ( tmp forward ) . nor ( ) ; this . set ( right , tmp up , tmp forward . scl ( - 1 ) , position ) ; return this ; } <SENTENCE_END/>

world

<SENTENCE_START> { tmp forward . set ( forward ) . nor ( ) ; right . set ( tmp forward ) . crs ( up ) . nor ( ) ; tmp up . set ( right ) . crs ( tmp forward ) . nor ( ) ; this . set ( right , tmp up , tmp forward . scl ( - 1 ) , position ) ; return this ; } <SENTENCE_END/>

(Copy Probability: 1.2%)

<SENTENCE_START> { tmp forward . set ( forward ) . nor ( ) ; right . set ( tmp forward ) . crs ( up ) . nor ( ) ; tmp up . set ( right ) . crs ( tmp forward ) . nor ( ) ; this . set ( right , tmp up , tmp forward . scl ( - 1 ) , position ) ; return this ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { tmp forward . set ( forward ) . nor ( ) ; right . set ( tmp forward ) . crs ( up ) . nor ( ) ; tmp up . set ( right ) . crs ( tmp forward ) . nor ( ) ; this . set ( right , tmp up , tmp forward . scl ( - 1 ) , position ) ; return this ; } <SENTENCE_END/>

(Copy Probability: 3.0%)

<SENTENCE_START> { tmp forward . set ( forward ) . nor ( ) ; right . set ( tmp forward ) . crs ( up ) . nor ( ) ; tmp up . set ( right ) . crs ( tmp forward ) . nor ( ) ; this . set ( right , tmp up , tmp forward . scl ( - 1 ) , position ) ; return this ; } <SENTENCE_END/>


Original Name lerp

lerp

<SENTENCE_START> { for ( int i = 0 ; i < 16 ; i ++ ) this . val [ i ] = this . val [ i ] * ( 1 - alpha ) + matrix . val [ i ] * alpha ; return this ; } <SENTENCE_END/>

(Copy Probability: 1.6%)

<SENTENCE_START> { for ( int i = 0 ; i < 16 ; i ++ ) this . val [ i ] = this . val [ i ] * ( 1 - alpha ) + matrix . val [ i ] * alpha ; return this ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { for ( int i = 0 ; i < 16 ; i ++ ) this . val [ i ] = this . val [ i ] * ( 1 - alpha ) + matrix . val [ i ] * alpha ; return this ; } <SENTENCE_END/>

(Copy Probability: 1.3%)

<SENTENCE_START> { for ( int i = 0 ; i < 16 ; i ++ ) this . val [ i ] = this . val [ i ] * ( 1 - alpha ) + matrix . val [ i ] * alpha ; return this ; } <SENTENCE_END/>


Original Name avg

avg

<SENTENCE_START> { get scale ( tmp vec ) ; other . get scale ( tmp forward ) ; get rotation ( quat ) ; other . get rotation ( quat 2 ) ; get translation ( tmp up ) ; other . get translation ( right ) ; set to scaling ( tmp vec . scl ( w ) . add ( tmp forward . scl ( 1 - w ) ) ) ; rotate ( quat . slerp ( quat 2 , 1 - w ) ) ; set translation ( tmp up . scl ( w ) . add ( right . scl ( 1 - w ) ) ) ; return this ; } <SENTENCE_END/>

(Copy Probability: 2.6%)

<SENTENCE_START> { get scale ( tmp vec ) ; other . get scale ( tmp forward ) ; get rotation ( quat ) ; other . get rotation ( quat 2 ) ; get translation ( tmp up ) ; other . get translation ( right ) ; set to scaling ( tmp vec . scl ( w ) . add ( tmp forward . scl ( 1 - w ) ) ) ; rotate ( quat . slerp ( quat 2 , 1 - w ) ) ; set translation ( tmp up . scl ( w ) . add ( right . scl ( 1 - w ) ) ) ; return this ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { get scale ( tmp vec ) ; other . get scale ( tmp forward ) ; get rotation ( quat ) ; other . get rotation ( quat 2 ) ; get translation ( tmp up ) ; other . get translation ( right ) ; set to scaling ( tmp vec . scl ( w ) . add ( tmp forward . scl ( 1 - w ) ) ) ; rotate ( quat . slerp ( quat 2 , 1 - w ) ) ; set translation ( tmp up . scl ( w ) . add ( right . scl ( 1 - w ) ) ) ; return this ; } <SENTENCE_END/>

(Copy Probability: 7.6%)

<SENTENCE_START> { get scale ( tmp vec ) ; other . get scale ( tmp forward ) ; get rotation ( quat ) ; other . get rotation ( quat 2 ) ; get translation ( tmp up ) ; other . get translation ( right ) ; set to scaling ( tmp vec . scl ( w ) . add ( tmp forward . scl ( 1 - w ) ) ) ; rotate ( quat . slerp ( quat 2 , 1 - w ) ) ; set translation ( tmp up . scl ( w ) . add ( right . scl ( 1 - w ) ) ) ; return this ; } <SENTENCE_END/>


Original Name avg

avg

<SENTENCE_START> { final float w = 1.0f / t . length ; tmp vec . set ( t [ 0 ] . get scale ( tmp up ) . scl ( w ) ) ; quat . set ( t [ 0 ] . get rotation ( quat 2 ) . exp ( w ) ) ; tmp forward . set ( t [ 0 ] . get translation ( tmp up ) . scl ( w ) ) ; for ( int i = 1 ; i < t . length ; i ++ ) { tmp vec . add ( t [ i ] . get scale ( tmp up ) . scl ( w ) ) ; quat . mul ( t [ i ] . get rotation ( quat 2 ) . exp ( w ) ) ; tmp forward . add ( t [ i ] . get translation ( tmp up ) . scl ( w ) ) ; } quat . nor ( ) ; set to scaling ( tmp vec ) ; rotate ( quat ) ; set translation ( tmp forward ) ; return this ; } <SENTENCE_END/>

(Copy Probability: 2.8%)

<SENTENCE_START> { final float w = 1.0f / t . length ; tmp vec . set ( t [ 0 ] . get scale ( tmp up ) . scl ( w ) ) ; quat . set ( t [ 0 ] . get rotation ( quat 2 ) . exp ( w ) ) ; tmp forward . set ( t [ 0 ] . get translation ( tmp up ) . scl ( w ) ) ; for ( int i = 1 ; i < t . length ; i ++ ) { tmp vec . add ( t [ i ] . get scale ( tmp up ) . scl ( w ) ) ; quat . mul ( t [ i ] . get rotation ( quat 2 ) . exp ( w ) ) ; tmp forward . add ( t [ i ] . get translation ( tmp up ) . scl ( w ) ) ; } quat . nor ( ) ; set to scaling ( tmp vec ) ; rotate ( quat ) ; set translation ( tmp forward ) ; return this ; } <SENTENCE_END/>

%END%

<SENTENCE_START> { final float w = 1.0f / t . length ; tmp vec . set ( t [ 0 ] . get scale ( tmp up ) . scl ( w ) ) ; quat . set ( t [ 0 ] . get rotation ( quat 2 ) . exp ( w ) ) ; tmp forward . set ( t [ 0 ] . get translation ( tmp up ) . scl ( w ) ) ; for ( int i = 1 ; i < t . length ; i ++ ) { tmp vec . add ( t [ i ] . get scale ( tmp up ) . scl ( w ) ) ; quat . mul ( t [ i ] . get rotation ( quat 2 ) . exp ( w ) ) ; tmp forward . add ( t [ i ] . get translation ( tmp up ) . scl ( w ) ) ; } quat . nor ( ) ; set to scaling ( tmp vec ) ; rotate ( quat ) ; set translation ( tmp forward ) ; return this ; } <SENTENCE_END/>

(Copy Probability: 4.7%)

<SENTENCE_START> { final float w = 1.0f / t . length ; tmp vec . set ( t [ 0 ] . get scale ( tmp up ) . scl ( w ) ) ; quat . set ( t [ 0 ] . get rotation ( quat 2 ) . exp ( w ) ) ; tmp forward . set ( t [ 0 ] . get translation ( tmp up ) . scl ( w ) ) ; for ( int i = 1 ; i < t . length ; i ++ ) { tmp vec . add ( t [ i ] . get scale ( tmp up ) . scl ( w ) ) ; quat . mul ( t [ i ] . get rotation ( quat 2 ) . exp ( w ) ) ; tmp forward . add ( t [ i ] . get translation ( tmp up ) . scl ( w ) ) ; } quat . nor ( ) ; set to scaling ( tmp vec ) ; rotate ( quat ) ; set translation ( tmp forward ) ; return this ; } <SENTENCE_END/>