crisdev commited on
Commit
1210dc3
1 Parent(s): 7828861

Upload validation.jsonl

Browse files
Files changed (1) hide show
  1. validation.jsonl +40 -0
validation.jsonl ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"code": "public List < Block > blockList ( ) { return blocks ; }", "nl": "Devuelve la lista de bloques que se habrían eliminado o se eliminaron del evento de explosión."}
2
+ {"code": "public QRCallbackBuilder withCallbackIndex ( int index ) { this . callbackIndex = index ; return this ; }", "nl": "Establezca el índice de devolución de llamada para asignar a la devolución de llamada."}
3
+ {"code": "public static LogoutResponse generateResponse ( Status status , String inResponseTo , Issuer issuer , String realm , String hostRole , String remoteEntity ) { if ( status == null ) { status = SAML2Utils . generateStatus ( SAML2Constants . SUCCESS , SAML2Utils . bundle . getString ( \"requestSuccess\" ) ) ; } LogoutResponse logoutResponse = ProtocolFactory . getInstance ( ) . createLogoutResponse ( ) ; String responseID = SAMLUtils . generateID ( ) ; try { logoutResponse . setStatus ( status ) ; logoutResponse . setID ( responseID ) ; logoutResponse . setInResponseTo ( inResponseTo ) ; logoutResponse . setVersion ( SAML2Constants . VERSION_2_0 ) ; logoutResponse . setIssueInstant ( newDate ( ) ) ; logoutResponse . setIssuer ( issuer ) ; } catch ( SAML2Exception e ) { debug . error ( \"Error in generating LogoutResponse.\" , e ) ; } return logoutResponse ; }", "nl": "Construye el <código> logoOutResponse </ Code> para ser enviado a IDP."}
4
+ {"code": "public PrincipalHolder ( ) { }", "nl": "Construye un nuevo objeto <código> director </ código> con su campo </ code> inicializado en <código> null </ code>."}
5
+ {"code": "public PdfName generate ( PdfResources resources ) { PdfName newName = new PdfName ( prefix + counter ++ ) ; PdfDictionary r = resources . getPdfObject ( ) ; if ( r . containsKey ( resourceType ) ) { while ( r . getAsDictionary ( resourceType ) . containsKey ( newName ) ) { newName = new PdfName ( prefix + counter ++ ) ; } } return newName ; }", "nl": "Genera nuevo nombre de recurso (único)."}
6
+ {"code": "public static void main ( final String [ ] args ) { if ( args . length != 2 ) { System . err . println ( \"Usage: host port\" ) ; System . err . println ( \"For example: localhost 1389\" ) ; System . exit ( 1 ) ; } final String host = args [ 0 ] ; final int port = Integer . parseInt ( args [ 1 ] ) ; final LDAPConnectionFactory factory = new LDAPConnectionFactory ( host , port ) ; Connection connection = null ; try { connection = factory . getConnection ( ) ; String name = \"uid=kvaughan,ou=People,dc=example,dc=com\" ; char [ ] password = \"bribery\" . toCharArray ( ) ; connection . bind ( name , password ) ; updateEntry ( connection , name , \"description\" ) ; final SearchResultEntry entry = connection . readEntry ( name , \"cn\" , \"objectClass\" , \"hasSubordinates\" , \"numSubordinates\" , \"isMemberOf\" , \"modifyTimestamp\" ) ; DN dn = entry . getName ( ) ; Set < String > cn = entry . parseAttribute ( \"cn\" ) . asSetOfString ( \"\" ) ; Set < AttributeDescription > objectClasses = entry . parseAttribute ( \"objectClass\" ) . asSetOfAttributeDescription ( ) ; boolean hasChildren = entry . parseAttribute ( \"hasSubordinates\" ) . asBoolean ( ) ; int numChildren = entry . parseAttribute ( \"numSubordinates\" ) . asInteger ( 0 ) ; Set < DN > groups = entry . parseAttribute ( \"isMemberOf\" ) . usingSchema ( Schema . getDefaultSchema ( ) ) . asSetOfDN ( ) ; Calendar timestamp = entry . parseAttribute ( \"modifyTimestamp\" ) . asGeneralizedTime ( ) . toCalendar ( ) ; entry . setName ( dn ) ; Entry newEntry = new LinkedHashMapEntry ( name ) . addAttribute ( \"cn\" , cn . toArray ( ) ) . addAttribute ( \"objectClass\" , objectClasses . toArray ( ) ) . addAttribute ( \"hasChildren\" , hasChildren ) . addAttribute ( \"numChildren\" , numChildren ) . addAttribute ( \"groups\" , groups . toArray ( ) ) . addAttribute ( \"timestamp\" , timestamp . getTimeInMillis ( ) ) ; final LDIFEntryWriter writer = new LDIFEntryWriter ( System . out ) ; writer . writeEntry ( newEntry ) ; writer . close ( ) ; } catch ( final LdapException e ) { System . err . println ( e . getMessage ( ) ) ; System . exit ( e . getResult ( ) . getResultCode ( ) . intValue ( ) ) ; return ; } catch ( IOException e ) { System . err . println ( e . getMessage ( ) ) ; System . exit ( ResultCode . CLIENT_SIDE_LOCAL_ERROR . intValue ( ) ) ; } finally { if ( connection != null ) { connection . close ( ) ; } } }", "nl": "Conecte al servidor, y luego intente usar algunos controles LDAP."}
7
+ {"code": "public static void closeQuietly ( final Connection conn ) { if ( conn != null ) { try { conn . close ( ) ; } catch ( final Exception e ) { } } }", "nl": "Cierra la conexión (que puede ser nula)."}
8
+ {"code": "public static boolean isEmptyMessage ( MessageType msgType ) { return msgType . getFields ( ) . size ( ) == 0 ; }", "nl": "Devuelve si el MessageType dado no tiene campos"}
9
+ {"code": "public void removeBeanContextMembershipListener ( BeanContextMembershipListener bcml ) { if ( bcml == null ) throw new NullPointerException ( \"listener\" ) ; synchronized ( bcmListeners ) { if ( ! bcmListeners . contains ( bcml ) ) return ; else bcmListeners . remove ( bcml ) ; } }", "nl": "Elimina un beanContextMemberShipListener"}
10
+ {"code": "public void new_line ( ) throws IOException { write ( \"\\n\" ) ; for ( int i = 0 ; i < current_indent_level ; ++ i ) write ( INDENT_STRING ) ; }", "nl": "Comienza una nueva línea dentro de un alcance."}
11
+ {"code": "private void skipToEndOfLine ( ) { for ( ; pos < in . length ( ) ; pos ++ ) { char c = in . charAt ( pos ) ; if ( c == '\\r' || c == '\\n' ) { pos ++ ; break ; } } }", "nl": "Avanza la posición hasta después del siguiente personaje de nueva línea.Si la línea se termina por \"\\ R \\ N\", el '\\ N' debe consumirse como espacio en blanco por la persona que llama."}
12
+ {"code": "private CTSDataLayer ( ) { }", "nl": "No permita que esta clase sea instanciada."}
13
+ {"code": "public PluginResult . PostOperation invokePostOperationExtendedPlugins ( PostOperationExtendedOperation extendedOperation ) { PluginResult . PostOperation result = null ; PluginResult . PostOperation finalResult = null ; ArrayList < DirectoryServerPlugin > skippedPlugins = skippedPreOperationPlugins . remove ( extendedOperation ) ; for ( DirectoryServerPlugin p : postOperationExtendedPlugins ) { if ( isInternalOperation ( extendedOperation , p ) || isSkipped ( skippedPlugins , p ) ) { continue ; } try { result = p . doPostOperation ( extendedOperation ) ; } catch ( Exception e ) { logException ( extendedOperation , p , e , ERR_PLUGIN_POST_OPERATION_PLUGIN_EXCEPTION ) ; } if ( result == null ) { logNullResult ( extendedOperation , p , ERR_PLUGIN_POST_OPERATION_PLUGIN_RETURNED_NULL ) ; } else if ( ! result . continueProcessing ( ) ) { finalResult = result ; } } if ( result == null ) { finalResult = PluginResult . PostOperation . continueOperationProcessing ( ) ; } else if ( finalResult == null ) { finalResult = result ; } return finalResult ; }", "nl": "Invoca el conjunto de complementos extendidos post-operación que se han configurado en el servidor de directorios."}
14
+ {"code": "public static void main ( final String [ ] args ) { DOMTestCase . doMain ( attrnextsiblingnull . class , args ) ; }", "nl": "Ejecuta esta prueba de la línea de comandos."}
15
+ {"code": "public static String trim ( String value ) { return value != null ? value . trim ( ) : null ; }", "nl": "Devuelve una copia de una cadena con espacios en blanco líderes y finales omitidos."}
16
+ {"code": "public IdentityHashMap ( Map < ? extends K , ? extends V > map ) { this ( map . size ( ) < 6 ? 11 : map . size ( ) * 2 ) ; putAllImpl ( map ) ; }", "nl": "Crea un IdentityHashMap con el mapa dado como valores iniciales."}
17
+ {"code": "public void executeCharsToContentHandler ( XPathContext xctxt , ContentHandler handler ) throws javax . xml . transform . TransformerException , org . xml . sax . SAXException { if ( Arg0IsNodesetExpr ( ) ) { int node = getArg0AsNode ( xctxt ) ; if ( DTM . NULL != node ) { DTM dtm = xctxt . getDTM ( node ) ; dtm . dispatchCharactersEvents ( node , handler , true ) ; } } else { XObject obj = execute ( xctxt ) ; obj . dispatchCharactersEvents ( handler ) ; } }", "nl": "Ejecute una expresión en el contexto de tiempo de ejecución de XPath y devuelva el resultado de la expresión."}
18
+ {"code": "public static char [ ] copyOfRange ( char [ ] original , int from , int to ) { int newLength = to - from ; if ( newLength < 0 ) throw new IllegalArgumentException ( from + \" > \" + to ) ; char [ ] copy = new char [ newLength ] ; System . arraycopy ( original , from , copy , 0 , Math . min ( original . length - from , newLength ) ) ; return copy ; }", "nl": "Copia el rango especificado de la matriz especificada en una nueva matriz.El índice inicial del rango (<tt> de </ tt>) debe estar entre cero y <tt> original.length </ tt>, inclusive.El valor en <tt> original [de] </ tT> se coloca en el elemento inicial de la copia (a menos que <tt> de == original.length </ tt> o <tt> de == a </ tt>).Los valores de los elementos subsiguientes en la matriz original se colocan en elementos posteriores en la copia.El índice final del rango (<tt> a </ tT>), que debe ser mayor o igual que <tt> de </ tt>, puede ser mayor que <tt> original.length </ tt>, enEl caso <tt> '\\\\ u000' </ tt> se coloca en todos los elementos de la copia cuyo índice es mayor o igual que <tt> original.length - de </ tt>.La longitud de la matriz devuelta será <tt> a - desde </ tt>."}
19
+ {"code": "public ShortLookupTable ( int offset , short data [ ] [ ] ) { super ( offset , data . length ) ; numComponents = data . length ; numEntries = data [ 0 ] . length ; this . data = new short [ numComponents ] [ ] ; for ( int i = 0 ; i < numComponents ; i ++ ) { this . data [ i ] = data [ i ] ; } }", "nl": "Construye un objeto breveupible de una matriz de matrices cortas que representan una tabla de búsqueda para cada banda.El desplazamiento se restará de los valores de entrada antes de indexarlos en las matrices.El número de bandas es la longitud del argumento de datos.La matriz de datos para cada banda se almacena como referencia."}
20
+ {"code": "public boolean equals ( Object o ) { if ( o == this ) return true ; if ( ! ( o instanceof Set ) ) return false ; Collection < ? > c = ( Collection < ? > ) o ; if ( c . size ( ) != size ( ) ) return false ; try { return containsAll ( c ) ; } catch ( ClassCastException unused ) { return false ; } catch ( NullPointerException unused ) { return false ; } }", "nl": "Compara el objeto especificado con este conjunto para la igualdad.Devoluciones <TT> True </ TT> Si el objeto dado también es un conjunto, los dos conjuntos tienen el mismo tamaño, y cada miembro del conjunto dado está contenido en este conjunto.Esto asegura que el método <tt> es igual a </ tt> funciona correctamente en diferentes implementaciones de la interfaz <TT> Configuración </ TT>. <P> Esta implementación primero comprueba si el objeto especificado es este conjunto;Si es así, devuelve <tt> true </ tt>.Luego, verifica si el objeto especificado es un conjunto cuyo tamaño es idéntico al tamaño de este conjunto;Si no, devuelve FALSO.Si es así, devuelve <tt> contiene ((cobro) o) </ tt>."}
21
+ {"code": "public static void main ( final String [ ] args ) { DOMTestCase . doMain ( getNamedItemNS01 . class , args ) ; }", "nl": "Ejecuta esta prueba de la línea de comandos."}
22
+ {"code": "public static final void updateAllWidgets ( Context context , boolean updateFull ) { updateFull = updateFull || ! GlobalFlags . partialUpdate ( context ) ; final AppWidgetManager awm = AppWidgetManager . getInstance ( context ) ; sPollBattery = false ; for ( int widgetId : awm . getAppWidgetIds ( new ComponentName ( context , PCWidgetActivity . class ) ) ) { sPollBattery |= updateWidget ( awm , context , widgetId , updateFull ) ; } sPollBattery |= updateStatusbarWidget ( context ) ; setBatteryAlarm ( context ) ; QTStorage . updateAllWidgets ( context , updateFull ) ; if ( sUpdateHook != null ) { sUpdateHook . run ( ) ; } }", "nl": "Actualiza todos los widgets visibles."}
23
+ {"code": "public static String addMetaAlias ( String url , String metaAlias ) { if ( url == null || url . length ( ) == 0 || metaAlias == null || metaAlias . length ( ) == 0 ) { return url ; } else { if ( url . indexOf ( IFSConstants . QUESTION_MARK ) == - 1 ) { return url + IFSConstants . QUESTION_MARK + IFSConstants . META_ALIAS + IFSConstants . EQUAL_TO + metaAlias ; } else { return url + IFSConstants . AMPERSAND + IFSConstants . META_ALIAS + IFSConstants . EQUAL_TO + metaAlias ; } } }", "nl": "Anexa meta alias a la URL."}
24
+ {"code": "static boolean isValidKeyEventForKeyBindings ( KeyEvent e ) { return true ; }", "nl": "Devuelve VERDADERO si el <CÓDIGO> E </ CODE> es un teclado válido para usar en el procesamiento de los enlaces clave asociados con JComponents."}
25
+ {"code": "public void autoroute_selected_items ( ) { if ( board_is_read_only ) return ; if ( ! ( interactive_state instanceof StateSelectedItem ) ) return ; r_board . generate_snapshot ( ) ; interactive_action_thread = new IteraAutorouteThread ( this ) ; interactive_action_thread . start ( ) ; }", "nl": "Autorute los elementos seleccionados."}
26
+ {"code": "public Iterator < E > iterator ( ) { return new Itr ( ) ; }", "nl": "Devuelve un iterador sobre los elementos en esta lista en la secuencia correcta.<p> El iterador devuelto es <a href=\"#fail-fast\"> <i> Fail-Fast </ i> </a>."}
27
+ {"code": "public boolean hasPurchase ( String sku ) { return mPurchaseMap . containsKey ( sku ) ; }", "nl": "Devuelve si existe o no una compra del producto dado."}
28
+ {"code": "public static int computeNumberOfThreads ( int minimumValue , float cpuMultiplier ) { Reject . ifTrue ( cpuMultiplier < 0 , \"Multiplier must be a positive number\" ) ; return Math . max ( minimumValue , ( int ) ( Runtime . getRuntime ( ) . availableProcessors ( ) * cpuMultiplier ) ) ; }", "nl": "Calcula el número de hilos de repetición / trabajador / limpiador según el número de CPU en el sistema.Permite que se especifique un multiplicador y se devuelva un valor mínimo si no hay suficientes procesadores presentes en el sistema."}
29
+ {"code": "public static void main ( final String [ ] args ) { DOMTestCase . doMain ( characterdatareplacedataexceedslengthofdata . class , args ) ; }", "nl": "Ejecuta esta prueba de la línea de comandos."}
30
+ {"code": "protected String paramString ( ) { return super . paramString ( ) ; }", "nl": "Devuelve una representación de cadena de este jradiobutton.Este método está destinado a ser utilizado solo para fines de depuración, y el contenido y el formato de la cadena devuelta pueden variar entre las implementaciones.La cadena devuelta puede estar vacía, pero puede que no sea <código> NULL </ CODE>."}
31
+ {"code": "public boolean check_move ( ) { if ( ! all_items_movable ) return false ; TimeLimit time_limit = new TimeLimit ( 3 ) ; Collection < BrdItem > ignore_items = new LinkedList < BrdItem > ( ) ; for ( SortedItemDouble an_item : item_group_arr ) { boolean move_ok ; if ( an_item . item instanceof BrdAbit ) { BrdAbit curr_drill_item = ( BrdAbit ) an_item . item ; if ( translate_vector . distance ( ) >= curr_drill_item . min_width ( ) ) { move_ok = false ; } else { move_ok = r_board . move_drill_algo . check ( curr_drill_item , translate_vector , max_recursion_depth , max_via_recursion_depth , ignore_items , time_limit ) ; } } else { move_ok = r_board . check_item_move ( an_item . item , translate_vector , ignore_items ) ; } if ( ! move_ok ) return false ; } return true ; }", "nl": "Los controles, si todos los elementos del grupo se pueden mover, enviando un obstáculo, separado sin crear violaciones de liquidación."}
32
+ {"code": "AccessControlContext optimize ( ) { AccessControlContext acc ; DomainCombiner combiner = null ; AccessControlContext parent = null ; Permission [ ] permissions = null ; if ( isPrivileged ) { acc = privilegedContext ; if ( acc != null ) { if ( acc . isWrapped ) { permissions = acc . permissions ; parent = acc . parent ; } } } else { acc = AccessController . getInheritedAccessControlContext ( ) ; if ( acc != null ) { if ( acc . isLimited ) { parent = acc ; } } } boolean skipStack = ( context == null ) ; boolean skipAssigned = ( acc == null || acc . context == null ) ; ProtectionDomain [ ] assigned = ( skipAssigned ) ? null : acc . context ; ProtectionDomain [ ] pd ; boolean skipLimited = ( ( acc == null || ! acc . isWrapped ) && parent == null ) ; if ( acc != null && acc . combiner != null ) { if ( getDebug ( ) != null ) { debug . println ( \"AccessControlContext invoking the Combiner\" ) ; } combiner = acc . combiner ; pd = combiner . combine ( context , assigned ) ; } else { if ( skipStack ) { if ( skipAssigned ) { calculateFields ( acc , parent , permissions ) ; return this ; } else if ( skipLimited ) { return acc ; } } else if ( assigned != null ) { if ( skipLimited ) { if ( context . length == 1 && context [ 0 ] == assigned [ 0 ] ) { return acc ; } } } pd = combine ( context , assigned ) ; if ( skipLimited && ! skipAssigned && pd == assigned ) { return acc ; } else if ( skipAssigned && pd == context ) { calculateFields ( acc , parent , permissions ) ; return this ; } } this . context = pd ; this . combiner = combiner ; this . isPrivileged = false ; calculateFields ( acc , parent , permissions ) ; return this ; }", "nl": "Tome el contexto basado en la pila (esto) y combínelo con el contexto privilegiado o heredado, si es necesario.Cualquier ámbito de privilegio limitado está marcado, independientemente de si el contexto asignado proviene de un encerramiento inmediato de DOPRIVILEGED ().El ámbito de privilegio limitado puede fluir indirectamente desde el hilo de los padres heredados o un contexto asignado anteriormente capturado por GetContext ()."}
33
+ {"code": "public void resetActionPath ( ) { application = null ; modelAction = null ; ruleAction = null ; ruleActionDataOld = null ; }", "nl": "Restablecer todos los elementos utilizados para crear una nueva acción."}
34
+ {"code": "private void detach ( ) { if ( prevTakeIndex >= 0 ) { prevTakeIndex = DETACHED ; itrs . doSomeSweeping ( true ) ; } }", "nl": "Llamado cuando los ITRS deben dejar de rastrear este iterador, ya sea porque no hay más índices para actualizar (Cursor <0 && NextIndex <0 && Lastret <0) o como una excepción especial, cuando se vuelve a hacer clic en Lastart ().Retorno falso por primera vez.Llame solo desde el hilo de iteración."}
35
+ {"code": "public boolean isLockedOut ( AccountLockoutInfo acInfo ) { boolean isLockedOut = acInfo . isLockout ( ) ; if ( debug . messageEnabled ( ) ) { debug . message ( \"ISAccoutLockout.isLockedOut : \" + isLockedOut ) ; } if ( ( acInfo != null ) && isLockedOut ) { long now = currentTimeMillis ( ) ; long lockOutTime = acInfo . getLockoutAt ( ) ; if ( ( lockOutTime + acInfo . getActualLockoutDuration ( ) ) < now ) { if ( debug . messageEnabled ( ) ) { debug . message ( \"isLockedOut returns false. \" + \"loginFailureLockoutDuration=\" + acInfo . getActualLockoutDuration ( ) + \" lockOutTime=\" + lockOutTime + \" now=\" + now ) ; } isLockedOut = false ; } } return isLockedOut ; }", "nl": "Devuelve <código> Verdadero </ código> si la cuenta está bloqueada.Cheques Si la cuenta del usuario está bloqueada según la información del bloqueo del usuario.Este método es para el bloqueo de la memoria.Si este método devuelve falso, entonces la cuenta está desbloqueada, es decir.La duración del bloqueo de memoria ha transcurrido.Las personas que llaman de este método deben actualizar el hash de bloqueo de cuenta si la cuenta está desbloqueada."}
36
+ {"code": "public ServiceConfigurationError ( String msg ) { super ( msg ) ; }", "nl": "Construye una nueva instancia con el mensaje especificado."}
37
+ {"code": "public static long readSwappedUnsignedInteger ( byte [ ] data , int offset ) { long low = ( ( ( data [ offset + 0 ] & 0xff ) << 0 ) + ( ( data [ offset + 1 ] & 0xff ) << 8 ) + ( ( data [ offset + 2 ] & 0xff ) << 16 ) ) ; long high = data [ offset + 3 ] & 0xff ; return ( high << 24 ) + ( 0xffffffffL & low ) ; }", "nl": "Lee un valor entero no firmado (32 bits) desde una matriz de bytes en un desplazamiento determinado.El valor se convierte en el sistema de endian opuesto al leer."}
38
+ {"code": "public static AddRequest newAddRequest ( final DN name ) { return Requests . newAddRequest ( name ) . addControl ( TransactionIdControl . newControl ( AuditRequestContext . createSubTransactionIdValue ( ) ) ) ; }", "nl": "Crea una solicitud Agregar LDAP que propague la ID de transacción de auditoría común si el servidor LDAP de destino lo respalda (es decir, es OpenDJ)."}
39
+ {"code": "public void runTest ( ) throws Throwable { Document doc ; Element rootNode ; NodeList childList ; Node childToRemove ; Node removedChild ; Node parentNode ; doc = ( Document ) load ( \"staff\" , true ) ; rootNode = doc . getDocumentElement ( ) ; childList = rootNode . getChildNodes ( ) ; childToRemove = childList . item ( 1 ) ; removedChild = rootNode . removeChild ( childToRemove ) ; parentNode = removedChild . getParentNode ( ) ; assertNull ( \"nodeRemoveChildAssert1\" , parentNode ) ; }", "nl": "Ejecuta el caso de prueba."}
40
+ {"code": "@ Parameters ( { \"logtest-realm\" } ) @ AfterSuite ( groups = { \"api-adminwrite\" , \"api-adminread\" } ) public void suiteTearDown ( String realm ) { }", "nl": "SuitteTaDown Deshacer ¿Qué asignó la configuración: o configure la configuración de la configuración del Servicio de registro de Realm, si es necesario"}