crisdev commited on
Commit
7aebe38
1 Parent(s): 74ac144

Upload test.jsonl

Browse files
Files changed (1) hide show
  1. test.jsonl +40 -0
test.jsonl ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"code": "public static String unEscapeString ( String str , char escapeChar , char charToEscape ) { return unEscapeString ( str , escapeChar , new char [ ] { charToEscape } ) ; }", "nl": "Unescape <code> chamoescape </ code> en la cadena con el cuadro de escape <código> Escapechar </ code>"}
2
+ {"code": "public void checkNextPoissonConsistency ( double mean ) { final int sampleSize = 1000 ; final int minExpectedCount = 7 ; long maxObservedValue = 0 ; final double alpha = 0.001 ; UnitTestUtils . Frequency < Long > frequency = new UnitTestUtils . Frequency < Long > ( ) ; for ( int i = 0 ; i < sampleSize ; i ++ ) { long value = randomData . nextPoisson ( mean ) ; if ( value > maxObservedValue ) { maxObservedValue = value ; } frequency . addValue ( value ) ; } PoissonDistribution poissonDistribution = new PoissonDistribution ( mean ) ; int lower = 1 ; while ( poissonDistribution . cumulativeProbability ( lower - 1 ) * sampleSize < minExpectedCount ) { lower ++ ; } int upper = ( int ) ( 5 * mean ) ; while ( ( 1 - poissonDistribution . cumulativeProbability ( upper - 1 ) ) * sampleSize < minExpectedCount ) { upper -- ; } int binWidth = 0 ; boolean widthSufficient = false ; double lowerBinMass = 0 ; double upperBinMass = 0 ; while ( ! widthSufficient ) { binWidth ++ ; lowerBinMass = poissonDistribution . probability ( lower - 1 , lower + binWidth - 1 ) ; upperBinMass = poissonDistribution . probability ( upper - binWidth - 1 , upper - 1 ) ; widthSufficient = FastMath . min ( lowerBinMass , upperBinMass ) * sampleSize >= minExpectedCount ; } List < Integer > binBounds = new ArrayList < Integer > ( ) ; binBounds . add ( lower ) ; int bound = lower + binWidth ; while ( bound < upper - binWidth ) { binBounds . add ( bound ) ; bound += binWidth ; } binBounds . add ( upper ) ; final int binCount = binBounds . size ( ) + 1 ; long [ ] observed = new long [ binCount ] ; double [ ] expected = new double [ binCount ] ; observed [ 0 ] = 0 ; for ( int i = 0 ; i < lower ; i ++ ) { observed [ 0 ] += frequency . getCount ( ( long ) i ) ; } expected [ 0 ] = poissonDistribution . cumulativeProbability ( lower - 1 ) * sampleSize ; observed [ binCount - 1 ] = 0 ; for ( int i = upper ; i <= maxObservedValue ; i ++ ) { observed [ binCount - 1 ] += frequency . getCount ( ( long ) i ) ; } expected [ binCount - 1 ] = ( 1 - poissonDistribution . cumulativeProbability ( upper - 1 ) ) * sampleSize ; for ( int i = 1 ; i < binCount - 1 ; i ++ ) { observed [ i ] = 0 ; for ( int j = binBounds . get ( i - 1 ) ; j < binBounds . get ( i ) ; j ++ ) { observed [ i ] += frequency . getCount ( ( long ) j ) ; } expected [ i ] = ( poissonDistribution . cumulativeProbability ( binBounds . get ( i ) - 1 ) - poissonDistribution . cumulativeProbability ( binBounds . get ( i - 1 ) - 1 ) ) * sampleSize ; } if ( UnitTestUtils . chiSquareTest ( expected , observed ) < alpha ) { StringBuilder msgBuffer = new StringBuilder ( ) ; DecimalFormat df = new DecimalFormat ( \"#.##\" ) ; msgBuffer . append ( \"Chisquare test failed for mean = \" ) ; msgBuffer . append ( mean ) ; msgBuffer . append ( \" p-value = \" ) ; msgBuffer . append ( UnitTestUtils . chiSquareTest ( expected , observed ) ) ; msgBuffer . append ( \" chisquare statistic = \" ) ; msgBuffer . append ( UnitTestUtils . chiSquare ( expected , observed ) ) ; msgBuffer . append ( \". \\n\" ) ; msgBuffer . append ( \"bin\\t\\texpected\\tobserved\\n\" ) ; for ( int i = 0 ; i < expected . length ; i ++ ) { msgBuffer . append ( \"[\" ) ; msgBuffer . append ( i == 0 ? 1 : binBounds . get ( i - 1 ) ) ; msgBuffer . append ( \",\" ) ; msgBuffer . append ( i == binBounds . size ( ) ? \"inf\" : binBounds . get ( i ) ) ; msgBuffer . append ( \")\" ) ; msgBuffer . append ( \"\\t\\t\" ) ; msgBuffer . append ( df . format ( expected [ i ] ) ) ; msgBuffer . append ( \"\\t\\t\" ) ; msgBuffer . append ( observed [ i ] ) ; msgBuffer . append ( \"\\n\" ) ; } msgBuffer . append ( \"This test can fail randomly due to sampling error with probability \" ) ; msgBuffer . append ( alpha ) ; msgBuffer . append ( \".\" ) ; Assert . fail ( msgBuffer . toString ( ) ) ; } }", "nl": "Verifica que NEXTPOISSON (MEDIA) genera una distribución empírica de los valores consistentes con PoissondInministrIVEIMPL al generar 1000 valores, calculando una distribución de frecuencia agrupada de los valores observados y comparando esta distribución a la distribución esperada correspondiente calculada utilizando PoissondistributInMPL.Utiliza la prueba de la bondad de la bondad de la bondad para evaluar la hipótesis nula de que las distribuciones son las mismas.Si la hipótesis nula puede ser rechazada con confianza 1 - alfa, la verificación falla."}
3
+ {"code": "public DefaultJobRowBuilder ( Function < Map < JobField , String > , String > idGenerator , Function < SecurityContext , String > userIdExtractor , Clock timestampGenerator ) { this . idGenerator = idGenerator ; this . userIdExtractor = userIdExtractor ; this . timestampGenerator = timestampGenerator ; }", "nl": "Construye una fábrica para generar jobrows con una función personalizada para extraer un ID de usuario de la solicitud de solicitud de solicitud."}
4
+ {"code": "protected final boolean handleAllocNode ( AllocNode src ) { boolean ret = false ; Node [ ] targets = pag . allocLookup ( src ) ; for ( Node element : targets ) { if ( element . makeP2Set ( ) . add ( src ) ) { varNodeWorkList . add ( ( VarNode ) element ) ; ret = true ; } } return ret ; }", "nl": "Propaga nuevos puntos: a la información del nodo SRC a todos sus sucesores."}
5
+ {"code": "@ Override protected FieldConfigBase createCopy ( FieldConfigBase fieldConfigBase ) { FieldConfigWKT copy = null ; if ( fieldConfigBase != null ) { copy = new FieldConfigWKT ( fieldConfigBase . getCommonData ( ) ) ; } return copy ; }", "nl": "Crea una copia del campo."}
6
+ {"code": "public void handleEntryExpiredSA ( EntryExpiredBusPacket packet ) throws Exception { handleEntryExpiredCoreSA ( packet . getEntryHolder ( ) , packet . getTransaction ( ) , packet . isFromReplication ( ) ) ; }", "nl": "Manejará los paquetes en Entrados."}
7
+ {"code": "public static SM_SYSTEM_MESSAGE STR_EXTRACT_GATHER_SUCCESS_1_BASIC ( DescriptionId descriptionId ) { return new SM_SYSTEM_MESSAGE ( 1330078 , descriptionId ) ; }", "nl": "Has recogido% 0."}
8
+ {"code": "public void toggle ( Animation animIn , Animation animOut ) { toggle ( true , animIn , animOut ) ; }", "nl": "Alternar la visibilidad de la insignia en la interfaz de usuario."}
9
+ {"code": "private boolean isInSameEvolutionChain ( Pokemon p1 , Pokemon p2 ) { ArrayList < Pokemon > evolutionLine = getEvolutionLine ( p1 ) ; for ( Pokemon poke : evolutionLine ) { if ( poke . number == p2 . number ) { return true ; } } return false ; }", "nl": "Compruebe si dos Pokemon están en la misma cadena de evolución completa.Jolteon y Vaporeon volverían verdaderos."}
10
+ {"code": "public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_Aura_END_ME_TO_B ( String skillname ) { return new SM_SYSTEM_MESSAGE ( 1200459 , skillname ) ; }", "nl": "Usted deja de usar [% SkillName]."}
11
+ {"code": "public PhotosGetUploadServerQuery ( VkApiClient client , UserActor actor ) { super ( client , \"photos.getUploadServer\" , PhotoUpload . class ) ; accessToken ( actor . getAccessToken ( ) ) ; }", "nl": "Crea una instancia abstractQueryBuilder que se puede usar para construir una solicitud API con varios parámetros"}
12
+ {"code": "public ChangeReport onEquipmentUnitAdd ( final EquipmentUnitAdd equipmentUnitAdd ) { log . debug ( \"onEquipmentUnitAdd - entering onEquipmentUnitAdd()..\" ) ; ChangeReport changeReport = new ChangeReport ( equipmentUnitAdd ) ; changeReport . setState ( CHANGE_STATE . SUCCESS ) ; ProcessConfiguration processConfiguration = configurationController . getProcessConfiguration ( ) ; if ( processConfiguration . getEquipmentConfiguration ( equipmentUnitAdd . getEquipmentId ( ) ) != null ) { changeReport . appendError ( \"onEquipmentUnitAdd - Equipment unit id: \" + equipmentUnitAdd . getEquipmentId ( ) + \" is already registered\" ) ; changeReport . setState ( CHANGE_STATE . FAIL ) ; return changeReport ; } EquipmentConfiguration conf = null ; try { conf = equipmentConfigurationFactory . createEquipmentConfiguration ( equipmentUnitAdd . getEquipmentUnitXml ( ) ) ; } catch ( Exception ex ) { changeReport . setState ( CHANGE_STATE . FAIL ) ; changeReport . appendError ( StackTraceHelper . getStackTrace ( ex ) ) ; return changeReport ; } EquipmentMessageHandler equnit = null ; boolean dynamicTimeDeadbandEnabled = environment . getRequiredProperty ( Options . DYNAMIC_TIME_DEADBAND_ENABLED , Boolean . class ) ; conf . setDynamicTimeDeadbandEnabled ( dynamicTimeDeadbandEnabled ) ; log . info ( \"onEquipmentUnitAdd - Dynamic timedeadband enabled for equipment id: \" + conf . getId ( ) + \" enabled: \" + dynamicTimeDeadbandEnabled ) ; EquipmentLoggerFactory equipmentLoggerFactory = EquipmentLoggerFactory . createFactory ( conf , processConfiguration , environment . getProperty ( \"c2mon.daq.logging.useEquipmentLoggers\" , Boolean . class , false ) , environment . getProperty ( \"c2mon.daq.logging.useEquipmentAppendersOnly\" , Boolean . class , false ) ) ; EquipmentMessageSender equipmentMessageSender = ( EquipmentMessageSender ) applicationContext . getBean ( EQUIPMENT_MESSAGE_SENDER ) ; equipmentMessageSender . init ( conf , equipmentLoggerFactory ) ; configurationController . addCoreDataTagChanger ( conf . getId ( ) , equipmentMessageSender ) ; try { validateDataTags ( conf , equipmentMessageSender ) ; validateCommandTags ( conf , equipmentMessageSender ) ; equnit = EquipmentMessageHandler . createEquipmentMessageHandler ( conf . getHandlerClassName ( ) , new EquipmentCommandHandler ( conf . getId ( ) , requestController ) , new EquipmentConfigurationHandler ( conf . getId ( ) , configurationController ) , equipmentMessageSender ) ; equnit . setEquipmentLoggerFactory ( equipmentLoggerFactory ) ; processConfiguration . addEquipmentConfiguration ( conf ) ; } catch ( InstantiationException e ) { String msg = \"Error while instantiating \" + conf . getHandlerClassName ( ) ; equipmentMessageSender . confirmEquipmentStateIncorrect ( msg + \": \" + e . getMessage ( ) ) ; log . error ( msg , e ) ; } catch ( IllegalAccessException e ) { String msg = \"Access error while calling constructor of \" + conf . getHandlerClassName ( ) ; equipmentMessageSender . confirmEquipmentStateIncorrect ( \"Error in code: \" + msg ) ; log . error ( msg , e ) ; } catch ( ClassNotFoundException e ) { String msg = \"Handler class not found: \" + conf . getHandlerClassName ( ) ; equipmentMessageSender . confirmEquipmentStateIncorrect ( \"Error during configuration: \" + msg ) ; log . error ( msg , e ) ; } if ( equnit != null ) { if ( ! registerNewEquipmentUnit ( equnit ) ) { changeReport . setState ( CHANGE_STATE . REBOOT ) ; changeReport . appendWarn ( \"problem detected while registering new equipment. You need to restart the DAQ\" ) ; } } return changeReport ; }", "nl": "Actualiza el DAQ al inyectar nueva unidad de equipos."}
13
+ {"code": "private void requestNewPhotosOrders ( Context c , int page , boolean refresh ) { page = refresh ? 1 : page + 1 ; listener = new OnRequestPhotosListener ( c , page , Mysplash . CATEGORY_TOTAL_NEW , refresh , false ) ; model . getService ( ) . requestPhotos ( page , Mysplash . DEFAULT_PER_PAGE , model . getPhotosOrder ( ) , listener ) ; }", "nl": "<br> utils."}
14
+ {"code": "public static void picture ( double x , double y , String filename , double scaledWidth , double scaledHeight , double degrees ) { if ( scaledWidth < 0 ) throw new IllegalArgumentException ( \"width is negative: \" + scaledWidth ) ; if ( scaledHeight < 0 ) throw new IllegalArgumentException ( \"height is negative: \" + scaledHeight ) ; Image image = getImage ( filename ) ; double xs = scaleX ( x ) ; double ys = scaleY ( y ) ; double ws = factorX ( scaledWidth ) ; double hs = factorY ( scaledHeight ) ; if ( ws < 0 || hs < 0 ) throw new IllegalArgumentException ( \"image \" + filename + \" is corrupt\" ) ; if ( ws <= 1 && hs <= 1 ) pixel ( x , y ) ; offscreen . rotate ( Math . toRadians ( - degrees ) , xs , ys ) ; offscreen . drawImage ( image , ( int ) Math . round ( xs - ws / 2.0 ) , ( int ) Math . round ( ys - hs / 2.0 ) , ( int ) Math . round ( ws ) , ( int ) Math . round ( hs ) , null ) ; offscreen . rotate ( Math . toRadians ( + degrees ) , xs , ys ) ; draw ( ) ; }", "nl": "Dibuja la imagen especificada centrada en (<em> x </ em>, <em> y </ em>), rotó el número de grados y se reveló al cuadro de límite especificado.Los formatos de imagen soportados son JPEG, PNG y GIF."}
15
+ {"code": "public VisualTable ( Visualization vis , String group , Schema schema ) { super ( TableVisualItem . class ) ; init ( vis , group , schema ) ; }", "nl": "Crea una nueva mesa visual sin una tabla para padres."}
16
+ {"code": "public boolean isCritical ( ) { return false ; }", "nl": "¿Es este un comando crítico que solo se puede ejecutar cuando no se está ejecutando otro comando?"}
17
+ {"code": "public static DataTag buildCreateBasicDataTag ( Properties properties ) { if ( properties == null ) { properties = new Properties ( ) ; } DataTag dataTag = DataTag . create ( \"DataTag\" , Integer . class , new DataTagAddress ( ) ) . build ( ) ; dataTag . setEquipmentId ( 10L ) ; properties . setProperty ( \"name\" , \"DataTag\" ) ; properties . setProperty ( \"description\" , \"<no description provided>\" ) ; properties . setProperty ( \"mode\" , String . valueOf ( TagMode . OPERATIONAL . ordinal ( ) ) ) ; properties . setProperty ( \"dataType\" , Integer . class . getName ( ) ) ; properties . setProperty ( \"isLogged\" , String . valueOf ( true ) ) ; properties . setProperty ( \"equipmentId\" , String . valueOf ( 10l ) ) ; properties . setProperty ( \"address\" , new DataTagAddress ( ) . toConfigXML ( ) ) ; return dataTag ; }", "nl": "La identificación generada esperada es 100. El identificador principal esperado es 10."}
18
+ {"code": "protected void updateRowCount ( ) { int maxrow = m_rows . getMaximumRow ( ) + 1 ; Iterator cols = getColumns ( ) ; while ( cols . hasNext ( ) ) { Column c = ( Column ) cols . next ( ) ; c . setMaximumRow ( maxrow ) ; } }", "nl": "Método interno que actualiza los conteos de fila para las columnas de datos locales."}
19
+ {"code": "public boolean isSelected ( ) { ClusterViewer viewer = getViewer ( ) ; return viewer . getPcoaTab ( ) != null && viewer . getPcoaTab ( ) . isShowTriPlot ( ) ; }", "nl": "Esto está actualmente seleccionado?"}
20
+ {"code": "public int hashCode ( ) { return ( int ) ( ConnectionRelativeTime . class . hashCode ( ) + time ) ; }", "nl": "Devuelve un valor de código hash para este objeto."}
21
+ {"code": "protected VideoRemoveTagQuery videoId ( int value ) { return unsafeParam ( \"video_id\" , value ) ; }", "nl": "ID de video."}
22
+ {"code": "public static void cover ( String dest , int w , int h , List < String > sources ) throws Exception { if ( sources == null ) { throw new Exception ( \"no source!\" ) ; } int len = sources . size ( ) ; if ( len == 4 || len == 9 ) { BufferedImage src [ ] = new BufferedImage [ len ] ; for ( int i = 0 ; i < len ; i ++ ) { src [ i ] = ImageIO . read ( new File ( sources . get ( i ) ) ) ; } BufferedImage out = new BufferedImage ( w , h , BufferedImage . TYPE_3BYTE_BGR ) ; Graphics g = out . getGraphics ( ) ; g . setColor ( Color . WHITE ) ; g . fillRect ( 0 , 0 , w , h ) ; g . setColor ( new Color ( 0xCCD4D0 ) ) ; int size = len == 4 ? 2 : 3 ; int space = len == 4 ? 4 : 2 ; int w1 = ( w - 1 ) / size ; int h1 = ( h - 1 ) / size ; float fd = ( ( float ) w1 ) / h1 ; for ( int i = 0 ; i < len ; i ++ ) { BufferedImage img = src [ i ] ; int w2 = img . getWidth ( ) ; int h2 = img . getHeight ( ) ; float fs = ( ( float ) w2 ) / h2 ; if ( fs > fd ) { w2 = w1 ; h2 = ( int ) ( w2 / fs ) ; } else if ( fs < fd ) { h2 = h1 ; w2 = ( int ) ( h2 * fs ) ; } else { w2 = w1 ; h2 = h1 ; } Image tmp = img . getScaledInstance ( w2 , h2 , Image . SCALE_SMOOTH ) ; int x = ( i % size ) * w1 ; int y = ( i / size ) * h1 ; g . drawImage ( tmp , x + space + ( w1 - w2 ) / 2 , y + space + ( h1 - h2 ) / 2 , w2 - 2 * space , h2 - 2 * space , null ) ; g . drawRect ( x , y , w1 , h1 ) ; } ImageIO . write ( out , \"jpg\" , new File ( dest ) ) ; } else { throw new Exception ( \"sources MUST is 4 or 9 picutures!\" + len ) ; } }", "nl": "Hacer una cubierta por imágenes de origen."}
23
+ {"code": "public Bindings add ( String property , JRadioButton [ ] cs , int defaultValue ) { registerPropertyChangeListener ( cs ) ; return add ( new JRadioButtonBinding ( property , cs , defaultValue ) ) ; }", "nl": "Maneja jradiobutton"}
24
+ {"code": "public void cancelAlarm ( Context context ) { if ( alarmMgr != null ) { alarmMgr . cancel ( alarmIntent ) ; } ComponentName receiver = new ComponentName ( context , BootReceiver . class ) ; PackageManager pm = context . getPackageManager ( ) ; pm . setComponentEnabledSetting ( receiver , PackageManager . COMPONENT_ENABLED_STATE_DISABLED , PackageManager . DONT_KILL_APP ) ; }", "nl": "Cancela la alarma."}
25
+ {"code": "public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_DispelNPCBuff_A_TO_SELF ( String skillcaster , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1201257 , skillcaster , skillname ) ; }", "nl": "[% Skillcaster] disipó sus pulseras mágicas utilizando [% de habilidad]."}
26
+ {"code": "public static < T > T findValueOfType ( Collection < T > collection , Class < ? extends T > [ ] types ) { if ( isEmpty ( collection ) || ObjectUtils . isEmpty ( types ) ) return null ; for ( Class < ? extends T > type : types ) { T value = findValueOfType ( collection , type ) ; if ( value != null ) return value ; } return null ; }", "nl": "Encuentre un valor de uno de los tipos dados en la colección dada: Buscar la colección por un valor del primer tipo, luego buscando un valor del segundo tipo, etc."}
27
+ {"code": "private static long writeLogSegment ( DistributedLogManager dlm , int numRecords , long startTxId , int flushPerNumRecords , boolean emptyRecord ) throws IOException { long txid = startTxId ; LogWriter writer = dlm . startLogSegmentNonPartitioned ( ) ; for ( long j = 1 ; j <= numRecords ; j ++ ) { if ( emptyRecord ) { writer . write ( DLMTestUtil . getEmptyLogRecordInstance ( txid ++ ) ) ; } else { writer . write ( DLMTestUtil . getLargeLogRecordInstance ( txid ++ ) ) ; } if ( j % flushPerNumRecords == 0 ) { writer . setReadyToFlush ( ) ; writer . flushAndSync ( ) ; } } writer . setReadyToFlush ( ) ; writer . flushAndSync ( ) ; writer . close ( ) ; return txid ; }", "nl": "Escriba <CÓDIGO> NUMRECORDS </ CODE> registra en el registro, comenzando con <código> STARTTXID </ CODE>.Enjuaga todos los registros </ code> Flushpernumrecords </ Code>."}
28
+ {"code": "@ Override public void characters ( char [ ] ch , int start , int length ) throws SAXException { }", "nl": "Pathelement es el único elemento que tiene valores dentro de -> nada que hacer aquí.No le importa el estado actual de análisis."}
29
+ {"code": "protected boolean runTestsOnEdt ( ) { return true ; }", "nl": "Anular para ejecutar pruebas fuera del EDT."}
30
+ {"code": "@ Override public Histogram histogram ( ) { return hist ; }", "nl": "Devuelve el histograma que se aproxima a la distribución de unión de los valores de campo de los resultados de la consulta."}
31
+ {"code": "public CountriesExample ( ) { oredCriteria = new ArrayList < Criteria > ( ) ; }", "nl": "Este método fue generado por MyBatis Generator.Este método corresponde a la tabla de la base de datos Public.Countries"}
32
+ {"code": "public Pair < Integer , Set < Long > > writeTable ( long uuid ) { preBufferAccess ( ) ; int offset = _buffer . position ( ) ; try { if ( _buffer . remaining ( ) < 4 ) { return Pair . < Integer , Set < Long > > create ( - 1 , ImmutableSet . < Long > of ( ) ) ; } _buffer . position ( offset + 4 ) ; Set < Long > uuids ; try { ByteBuffer tableBuffer = _buffer . slice ( ) ; uuids = getTableSerializer ( ) . loadAndSerialize ( uuid , new ByteBufferOutputStream ( tableBuffer ) ) ; tableBuffer . flip ( ) ; int length = tableBuffer . limit ( ) ; _buffer . position ( offset ) ; _buffer . putInt ( length ) ; _buffer . position ( offset + 4 + length ) ; } catch ( UnknownTableException | DroppedTableException e ) { uuids = ImmutableSet . of ( uuid ) ; writeUnknownOrDroppedTable ( offset , e ) ; } _modified = true ; return Pair . create ( offset , uuids ) ; } catch ( BufferOverflowException e ) { _buffer . position ( offset ) ; if ( offset == 0 ) { _log . error ( \"Table with UUID {} is too large to fit in a single block\" , uuid ) ; throw new IllegalArgumentException ( \"Table too large\" ) ; } return Pair . < Integer , Set < Long > > create ( - 1 , ImmutableSet . < Long > of ( ) ) ; } catch ( IOException e ) { throw Throwables . propagate ( e ) ; } finally { postBufferAccess ( ) ; } }", "nl": "Escribe una mesa a la cuadra.Devuelve el desplazamiento en este bloque donde se escribió la tabla, o -1 si no había una habitación insuficiente en el bloque para escribir toda la tabla."}
33
+ {"code": "public static boolean isBehind ( VisibleObject object1 , VisibleObject object2 ) { float angle = MathUtil . convertHeadingToDegree ( object1 . getHeading ( ) ) + 90 ; if ( angle >= 360 ) { angle -= 360 ; } double radian = Math . toRadians ( angle ) ; float x0 = object1 . getX ( ) ; float y0 = object1 . getY ( ) ; float x1 = ( float ) ( Math . cos ( radian ) * 5 ) + x0 ; float y1 = ( float ) ( Math . sin ( radian ) * 5 ) + y0 ; float xA = object2 . getX ( ) ; float yA = object2 . getY ( ) ; float temp = ( x1 - x0 ) * ( yA - y0 ) - ( y1 - y0 ) * ( xA - x0 ) ; return temp > 0 ; }", "nl": "Analizar dos posiciones de objeto por coordenadas."}
34
+ {"code": "void assignToBlock ( BlockId blk ) { internalLock . writeLock ( ) . lock ( ) ; try { flush ( ) ; this . blk = blk ; contents . read ( blk ) ; pins = 0 ; lastLsn = LogSeqNum . readFromPage ( contents , LAST_LSN_OFFSET ) ; } finally { internalLock . writeLock ( ) . unlock ( ) ; } }", "nl": "Lee los contenidos del bloque especificado en la página del búfer.Si el búfer estaba sucio, entonces los contenidos de la página anterior se escriben primero en el disco."}
35
+ {"code": "public boolean contains ( int index ) { return index >= getFirst ( ) && index <= getLast ( ) ; }", "nl": "Prueba si el artículo está contenido por rango"}
36
+ {"code": "@ Override public boolean hasPassword ( ) { return propertyMap . containsKey ( PASSWORD_KEY ) ; }", "nl": "Cheques para la contraseña."}
37
+ {"code": "public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_Protect_A_TO_ME ( String skillcaster , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1200701 , skillcaster , skillname ) ; }", "nl": "[% Skillcaster] le ha protegido usando [% SkillName]."}
38
+ {"code": "protected Highlight buildHighlight ( IDataSet set , int dataSetIndex , float xVal , DataSet . Rounding rounding ) { final Entry e = set . getEntryForXPos ( xVal , rounding ) ; if ( e == null ) return null ; MPPointD pixels = mChart . getTransformer ( set . getAxisDependency ( ) ) . getPixelsForValues ( e . getX ( ) , e . getY ( ) ) ; return new Highlight ( e . getX ( ) , e . getY ( ) , ( float ) pixels . x , ( float ) pixels . y , dataSetIndex , set . getAxisDependency ( ) ) ; }", "nl": "Devuelve el objeto resaltado correspondiente a la XValue y DataSetIdex seleccionados."}
39
+ {"code": "public static SM_SYSTEM_MESSAGE STR_MSG_MY_PARTY_STATE ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1390135 , value0 ) ; }", "nl": "Cambiaste el grupo al estado% 0."}
40
+ {"code": "private static void storeAsTypeWithSignaturesImport ( String strTypeToImport , @ Nullable Function objScope , PhpIndex objIndex , HashSet < String > objTypesSet ) { if ( strTypeToImport . contains ( \"|\" ) ) { for ( String strOneType : strTypeToImport . split ( \"\\\\|\" ) ) { storeAsTypeWithSignaturesImport ( Types . getType ( strOneType ) , objScope , objIndex , objTypesSet ) ; } return ; } if ( StringUtil . isEmpty ( strTypeToImport ) || strTypeToImport . equals ( \"?\" ) ) { return ; } if ( strTypeToImport . contains ( \"#\" ) ) { TypeFromSignatureResolvingUtil . resolveSignature ( strTypeToImport , objScope , objIndex , objTypesSet ) ; return ; } objTypesSet . add ( Types . getType ( strTypeToImport ) ) ; }", "nl": "Agrega Tipo, Manejo |y #, invocando firmas resolviendo"}