buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
private static final QName ELEMENT_NAME = new QName(Namespace.CURRENT.getUriString(), Element.ROOT_LOGGER.getLocalName()); RootLoggerElement() { } BatchServiceBuilder<Logger> createService(final BatchBuilder builder) { return builder.addService(LoggingSubsystemElement.JBOSS_LOGGING.append("log...
private static final QName ELEMENT_NAME = new QName(Namespace.CURRENT.getUriString(), Element.ROOT_LOGGER.getLocalName()); RootLoggerElement() { } BatchServiceBuilder<Logger> createService(final BatchBuilder builder) { return builder.addService(LoggingSubsystemElement.JBOSS_LOGGING.append("log...
package org.springframework.lang; /* * Copyright 2002-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICE...
package org.springframework.lang; /* * Copyright 2002-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICE...
package org.springframework.lang; /* * Copyright 2002-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICE...
package org.springframework.lang; /* * Copyright 2002-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICE...
package org.springframework.lang; /* * Copyright 2002-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICE...
package org.springframework.lang; /* * Copyright 2002-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICE...
protected void run(ModelControllerClient client) throws Exception { // system properties runSysProperties(client); // paths runPaths(client); // interfaces runInterface(client); } void runSysProperties(final ModelControllerClient client) throws Exception { ...
protected void run(ModelControllerClient client) throws Exception { // system properties runSysProperties(client); // paths runPaths(client); // interfaces runInterface(client); } void runSysProperties(final ModelControllerClient client) throws Exception { ...
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { if (context.hasFailureDescription()) { // abort context.setRollbackOnly(); context.completeStep(); return; } final Map<String, Pr...
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { if (context.hasFailureDescription()) { // abort context.setRollbackOnly(); context.completeStep(); return; } final Map<String, Pr...
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { ServiceRegistry registry = context.getServiceRegistry(false); final ServiceName ...
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { ServiceRegistry registry = context.getServiceRegistry(false); final ServiceName ...
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR)); ...
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR)); ...
private Map populateFromCentralDirectory() throws IOException { HashMap noUTF8Flag = new HashMap(); positionAtCentralDirectory(); byte[] cfh = new byte[CFH_LEN]; byte[] signatureBytes = new byte[WORD]; archive.readFully(signatureBytes); long sig = ZipLong.g...
private Map populateFromCentralDirectory() throws IOException { HashMap noUTF8Flag = new HashMap(); positionAtCentralDirectory(); byte[] cfh = new byte[CFH_LEN]; byte[] signatureBytes = new byte[WORD]; archive.readFully(signatureBytes); long sig = ZipLong.g...
public ArrayFieldVector(Field<T> field, T[] v1, T[] v2) { if (v1.length + v2.length == 0) { throw new ZeroException(LocalizedFormats.VECTOR_MUST_HAVE_AT_LEAST_ONE_ELEMENT); } data = buildArray(v1.length + v2.length); System.arraycopy(v1, 0, data, 0, v1.length); Sy...
public ArrayFieldVector(Field<T> field, T[] v1, T[] v2) { if (v1.length + v2.length == 0) { throw new ZeroException(LocalizedFormats.VECTOR_MUST_HAVE_AT_LEAST_ONE_ELEMENT); } data = buildArray(v1.length + v2.length); System.arraycopy(v1, 0, data, 0, v1.length); Sy...
private String cleanInput(String input) { if (input == null) { return null; } input = input.trim(); if (input.length() == 0) { return null; } return input.toUpperCase(); }
private String cleanInput(String input) { if (input == null) { return null; } input = input.trim(); if (input.length() == 0) { return null; } return input.toUpperCase(java.util.Locale.ENGLISH); }
public double getNumericalVariance() { final double s = shape; final double ss = s * s; return (FastMath.exp(ss) - 1) * FastMath.exp(2 * scale + ss); }
public double getNumericalVariance() { final double s = shape; final double ss = s * s; return (FastMath.expm1(ss)) * FastMath.exp(2 * scale + ss); }
public double inverseCumulativeProbability(double p) { double ret; if (p < 0.0 || p > 1.0) { throw new OutOfRangeException(p, 0.0, 1.0); } else if (p == 0) { ret = 0.0; } else if (p == 1) { ret = Double.POSITIVE_INFINITY; } else { ...
public double inverseCumulativeProbability(double p) { double ret; if (p < 0.0 || p > 1.0) { throw new OutOfRangeException(p, 0.0, 1.0); } else if (p == 0) { ret = 0.0; } else if (p == 1) { ret = Double.POSITIVE_INFINITY; } else { ...
public void undeploy(DeploymentUnit context) { } /** * Processes the injection targets of a resource binding * * * @param injectionSource The injection source for the injection target * @param classLoader The module class loader * @param deploymentRefle...
public void undeploy(DeploymentUnit context) { } /** * Processes the injection targets of a resource binding * * * @param injectionSource The injection source for the injection target * @param classLoader The module class loader * @param deploymentRefle...
protected void execute(DeploymentProcessorTarget processorTarget) { ROOT_LOGGER.debug("Activating EE subsystem"); processorTarget.addDeploymentProcessor(EeExtension.SUBSYSTEM_NAME, Phase.STRUCTURE, Phase.STRUCTURE_EE_DEPLOYMENT_PROPERTIES, new DeploymentPropertiesProcessor(...
protected void execute(DeploymentProcessorTarget processorTarget) { ROOT_LOGGER.debug("Activating EE subsystem"); processorTarget.addDeploymentProcessor(EeExtension.SUBSYSTEM_NAME, Phase.STRUCTURE, Phase.STRUCTURE_EE_DEPLOYMENT_PROPERTIES, new DeploymentPropertiesProcessor(...
protected void execute(DeploymentProcessorTarget processorTarget) { // keep the statements ordered by phase + priority processorTarget.addDeploymentProcessor(MessagingExtension.SUBSYSTEM_NAME, Phase.PARSE, Phase.PARSE_EE_ANNOTATIONS, new MessagingJMSDefinitionAnnotationParser...
protected void execute(DeploymentProcessorTarget processorTarget) { // keep the statements ordered by phase + priority processorTarget.addDeploymentProcessor(MessagingExtension.SUBSYSTEM_NAME, Phase.PARSE, Phase.PARSE_EE_ANNOTATIONS, new MessagingJMSDefinitionAnnotationParser...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final ConnectorXmlDescriptor connectorXmlDescriptor = phaseContext.getAttachment(ConnectorXmlDescriptor.ATTACHMENT_KEY); if(connectorXmlDescriptor == null) { return; // Skip non ra deploym...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final ConnectorXmlDescriptor connectorXmlDescriptor = phaseContext.getDeploymentUnitContext().getAttachment(ConnectorXmlDescriptor.ATTACHMENT_KEY); if(connectorXmlDescriptor == null) { retu...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final VirtualFile deploymentRoot = phaseContext.getAttachment(Attachments.DEPLOYMENT_ROOT); if (deploymentRoot == null || !deploymentRoot.exists()) return; final String deployment...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final VirtualFile deploymentRoot = phaseContext.getAttachment(Attachments.DEPLOYMENT_ROOT); if (deploymentRoot == null || !deploymentRoot.exists()) return; final String deployment...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final ConnectorXmlDescriptor connectorXmlDescriptor = phaseContext.getAttachment(ConnectorXmlDescriptor.ATTACHMENT_KEY); if(connectorXmlDescriptor == null) { return; // Skip non ra deploym...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final ConnectorXmlDescriptor connectorXmlDescriptor = phaseContext.getDeploymentUnitContext().getAttachment(ConnectorXmlDescriptor.ATTACHMENT_KEY); if(connectorXmlDescriptor == null) { retu...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { if(phaseContext.getAttachment(ConnectorXmlDescriptor.ATTACHMENT_KEY) == null) { return; // Skip non ra deployments } phaseContext.addToAttachmentList(Attachments.MODULE_DEPENDENCIE...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { if(phaseContext.getDeploymentUnitContext().getAttachment(ConnectorXmlDescriptor.ATTACHMENT_KEY) == null) { return; // Skip non ra deployments } phaseContext.addToAttachmentList(Att...
public void testPreconditions() { try { TDistribution dist = new TDistributionImpl(0); fail("Expecting NotStrictlyPositiveException for df = 0"); } catch (NotStrictlyPositiveException ex) { // expected } }
public void testPreconditions() { try { new TDistributionImpl(0); fail("Expecting NotStrictlyPositiveException for df = 0"); } catch (NotStrictlyPositiveException ex) { // expected } }
public void handleChanges(Collection<FileChangeEvent> changes) { synchronized (VirtualFileResourceManager.this) { String basePath = base.getAbsolutePath(); final List<ResourceChangeEvent> events = new ArrayList<ResourceC...
public void handleChanges(Collection<FileChangeEvent> changes) { synchronized (VirtualFileResourceManager.this) { String basePath = base.getAbsolutePath(); final List<ResourceChangeEvent> events = new ArrayList<ResourceC...
public String decode(byte[] data) throws IOException { if (this.charset == null) { return new String(data); // TODO is it correct to use the default charset here? } else { return new String(data,this.charset); } }
public String decode(byte[] data) throws IOException { if (this.charset == null) { return new String(data); } else { return new String(data,this.charset); } }
private void processDeployment(final WarMetaData warMetaData, final DeploymentUnit deploymentUnit, final ServiceTarget serviceTarget, String hostName) throws DeploymentUnitProcessingException { final VirtualFile deploymentRoot = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT).getRoot()...
private void processDeployment(final WarMetaData warMetaData, final DeploymentUnit deploymentUnit, final ServiceTarget serviceTarget, String hostName) throws DeploymentUnitProcessingException { final VirtualFile deploymentRoot = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT).getRoot()...
private void audit(String level, AuditManager auditManager, Principal userPrincipal) { AuditEvent auditEvent = new AuditEvent(level); Map<String, Object> ctxMap = new HashMap<String, Object>(); ctxMap.put("principal", userPrincipal != null ? userPrincipal.getName() : "null"); ctxMap....
private void audit(String level, AuditManager auditManager, Principal userPrincipal) { AuditEvent auditEvent = new AuditEvent(AuditLevel.SUCCESS); Map<String, Object> ctxMap = new HashMap<String, Object>(); ctxMap.put("principal", userPrincipal != null ? userPrincipal.getName() : "null"); ...
package org.springframework.web.socket.sockjs.support.frame; /* * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.ap...
package org.springframework.web.socket.sockjs.support.frame; /* * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.ap...
public void handleRequestInternal(ServerHttpRequest request, ServerHttpResponse response, AbstractHttpServerSession session) throws Exception { String callback = request.getQueryParams().getFirst("c"); if (! StringUtils.hasText(callback)) { response.setStatusCode(HttpStatus.INTERNAL_SERVER_ERROR); respon...
public void handleRequestInternal(ServerHttpRequest request, ServerHttpResponse response, AbstractHttpServerSockJsSession session) throws Exception { String callback = request.getQueryParams().getFirst("c"); if (! StringUtils.hasText(callback)) { response.setStatusCode(HttpStatus.INTERNAL_SERVER_ERROR); ...
public void uri() throws InterruptedException, URISyntaxException { String result = template.getForObject(URI + "/uri/{query}", String.class, "Z\u00fcrich"); assertEquals("Invalid request URI", "/uri/Z%FCrich", result); result = template.getForObject(URI + "/uri/query={query}", String.class, "foo@bar"); asser...
public void uri() throws InterruptedException, URISyntaxException { String result = template.getForObject(URI + "/uri/{query}", String.class, "Z\u00fcrich"); assertEquals("Invalid request URI", "/uri/Z%C3%BCrich", result); result = template.getForObject(URI + "/uri/query={query}", String.class, "foo@bar"); as...
public Dfp divide(Dfp divisor) { int dividend[]; // current status of the dividend int quotient[]; // quotient int remainder[];// remainder int qd; // current quotient digit we're working with int nsqd; // number of significant quotient digits we have in...
public Dfp divide(Dfp divisor) { int dividend[]; // current status of the dividend int quotient[]; // quotient int remainder[];// remainder int qd; // current quotient digit we're working with int nsqd; // number of significant quotient digits we have in...
private InputStream createDeploymentPlan(String deploymentFile) throws Exception { boolean webInf = false; String jbossDescriptorName = null; if (deploymentFile.endsWith(".war")) { jbossDescriptorName = WAR_JBOSS_FILE; webInf = true; } else if (deploymentFile...
private InputStream createDeploymentPlan(String deploymentFile) throws Exception { boolean webInf = false; String jbossDescriptorName = null; if (deploymentFile.endsWith(".war")) { jbossDescriptorName = WAR_JBOSS_FILE; webInf = true; } else if (deploymentFile...
public static PropertyDescriptor[] getPropertyDescriptors(Class<?> clazz) throws BeansException { CachedIntrospectionResults cr = CachedIntrospectionResults.forClass(clazz); return cr.getBeanInfo().getPropertyDescriptors(); }
public static PropertyDescriptor[] getPropertyDescriptors(Class<?> clazz) throws BeansException { CachedIntrospectionResults cr = CachedIntrospectionResults.forClass(clazz); return cr.getPropertyDescriptors(); }
public PropertyDescriptor[] getPropertyDescriptors() { return getCachedIntrospectionResults().getBeanInfo().getPropertyDescriptors(); }
public PropertyDescriptor[] getPropertyDescriptors() { return getCachedIntrospectionResults().getPropertyDescriptors(); }
public Object getValue() { return BooleanUtils.toBooleanObject(this.value); }
public Object getValue() { return Boolean.valueOf(this.value); }
public BeanFactoryReference useBeanFactory(String factoryKey) throws BeansException { synchronized (this.bfgInstancesByKey) { BeanFactoryGroup bfg = this.bfgInstancesByKey.get(this.resourceLocation); if (bfg != null) { bfg.refCount++; } else { // This group definition doesn't exist, we need to t...
public BeanFactoryReference useBeanFactory(String factoryKey) throws BeansException { synchronized (this.bfgInstancesByKey) { BeanFactoryGroup bfg = this.bfgInstancesByKey.get(this.resourceLocation); if (bfg != null) { bfg.refCount++; } else { // This group definition doesn't exist, we need to t...
public void testToArray2() { List<String> list = new ArrayList<String>(); list.add("One"); list.add("Two"); list.add(null); String[] result = (String[]) IteratorUtils.toArray(list.iterator(), String.class); assertEquals(list, Arrays.asList(result)); }
public void testToArray2() { List<String> list = new ArrayList<String>(); list.add("One"); list.add("Two"); list.add(null); String[] result = IteratorUtils.toArray(list.iterator(), String.class); assertEquals(list, Arrays.asList(result)); }
public StringEncoderComparator() { stringEncoder = null; // Trying to use this will cause things to break }
public StringEncoderComparator() { this.stringEncoder = null; // Trying to use this will cause things to break }
private List<String> getServerLaunchCommand(Standalone serverConfig) { JvmElement jvm = serverConfig.getJvm(); List<String> command = new ArrayList<String>(); // if (false) { // // Example: run at high priority on *NIX // args.add("/usr/bin/nice"); /...
private List<String> getServerLaunchCommand(Standalone serverConfig) { JvmElement jvm = serverConfig.getJvm(); List<String> command = new ArrayList<String>(); // if (false) { // // Example: run at high priority on *NIX // args.add("/usr/bin/nice"); /...
public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) { if (sourceType.isAssignableTo(targetType)) { return source; } TypeDescriptor sourceElementType = sourceType.getElementTypeDescriptor(); TypeDescriptor targetElementType = targetType.getElementTypeDescriptor(); Obj...
public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) { if (sourceType.isAssignableTo(targetType)) { return source; } TypeDescriptor sourceElementType = sourceType.getElementTypeDescriptor(); TypeDescriptor targetElementType = targetType.getElementTypeDescriptor(); Obj...
public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) { int length = Array.getLength(source); Collection collection = CollectionFactory.createCollection(targetType.getType(), length); TypeDescriptor sourceElementType = sourceType.getElementTypeDescriptor(); TypeDescriptor t...
public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) { int length = Array.getLength(source); Collection collection = CollectionFactory.createCollection(targetType.getType(), length); TypeDescriptor sourceElementType = sourceType.getElementTypeDescriptor(); TypeDescriptor t...
public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) { int length = Array.getLength(source); if (length == 0) { return null; } else { TypeDescriptor sourceElementType = sourceType.getElementTypeDescriptor(); if (sourceElementType.isAssignableTo(targetType)) { re...
public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) { int length = Array.getLength(source); if (length == 0) { return null; } else { TypeDescriptor sourceElementType = sourceType.getElementTypeDescriptor(); if (sourceElementType.isAssignableTo(targetType)) { re...
public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) { Collection sourceCollection = (Collection) source; TypeDescriptor sourceElementType = sourceType.getElementTypeDescriptor(); if (sourceElementType == TypeDescriptor.NULL) { sourceElementType = getElementType(sourceCol...
public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) { Collection sourceCollection = (Collection) source; TypeDescriptor sourceElementType = sourceType.getElementTypeDescriptor(); if (sourceElementType == TypeDescriptor.NULL) { sourceElementType = getElementType(sourceCol...
public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) { TypeDescriptor targetElementType = targetType.getElementTypeDescriptor(); Object target = Array.newInstance(targetElementType.getType(), 1); if (sourceType.isAssignableTo(targetElementType)) { Array.set(target, 0, sou...
public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) { TypeDescriptor targetElementType = targetType.getElementTypeDescriptor(); Object target = Array.newInstance(targetElementType.getType(), 1); if (sourceType.isAssignableTo(targetElementType)) { Array.set(target, 0, sou...
public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) { Collection target = CollectionFactory.createCollection(targetType.getType(), 1); TypeDescriptor targetElementType = targetType.getElementTypeDescriptor(); if (targetElementType == TypeDescriptor.NULL || sourceType.isAssi...
public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) { Collection target = CollectionFactory.createCollection(targetType.getType(), 1); TypeDescriptor targetElementType = targetType.getElementTypeDescriptor(); if (targetElementType == TypeDescriptor.NULL || sourceType.isAssi...
public static void copy(FirstMoment source, FirstMoment dest) { dest.n = source.n; dest.m1 = source.m1; dest.dev = source.dev; dest.nDev = dest.nDev; }
public static void copy(FirstMoment source, FirstMoment dest) { dest.n = source.n; dest.m1 = source.m1; dest.dev = source.dev; dest.nDev = source.nDev; }
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { final String driverName = operation.require(DRIVER_NAME.getName()).asString(); fi...
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { final String driverName = operation.require(DRIVER_NAME.getName()).asString(); fi...
import org.apache.commons.math.exception.FunctionEvaluationException; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to...
import org.apache.commons.math.exception.FunctionEvaluationException; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to...
import org.apache.commons.math.exception.FunctionEvaluationException; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to...
import org.apache.commons.math.exception.FunctionEvaluationException; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to...
import org.apache.commons.math.exception.FunctionEvaluationException; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to...
import org.apache.commons.math.exception.FunctionEvaluationException; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to...
import org.apache.commons.math.exception.FunctionEvaluationException; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to...
import org.apache.commons.math.exception.FunctionEvaluationException; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to...
import org.apache.commons.math.exception.FunctionEvaluationException; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to...
import org.apache.commons.math.exception.FunctionEvaluationException; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to...
import org.apache.commons.math.exception.FunctionEvaluationException; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to...
import org.apache.commons.math.exception.FunctionEvaluationException; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to...
import org.apache.commons.math.exception.FunctionEvaluationException; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to...
import org.apache.commons.math.exception.FunctionEvaluationException; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to...
import org.apache.commons.math.exception.FunctionEvaluationException; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to...
import org.apache.commons.math.exception.FunctionEvaluationException; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to...
import org.apache.commons.math.exception.FunctionEvaluationException; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to...
import org.apache.commons.math.exception.FunctionEvaluationException; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to...
import org.apache.commons.math.exception.FunctionEvaluationException; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to...
import org.apache.commons.math.exception.FunctionEvaluationException; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to...
import org.apache.commons.math.exception.FunctionEvaluationException; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to...
import org.apache.commons.math.exception.FunctionEvaluationException; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to...
import org.apache.commons.math.exception.FunctionEvaluationException; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to...
import org.apache.commons.math.exception.FunctionEvaluationException; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to...
import org.apache.commons.math.exception.FunctionEvaluationException; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to...
import org.apache.commons.math.exception.FunctionEvaluationException; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to...
import org.apache.commons.math.exception.FunctionEvaluationException; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to...
import org.apache.commons.math.exception.FunctionEvaluationException; /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to...
protected void recoverServices(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException { PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR)); String name = address.getLastElement().getValue(); ServiceName svcName = SocketBinding.J...
protected void recoverServices(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException { PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR)); String name = address.getLastElement().getValue(); ServiceName svcName = SocketBinding.J...
RuntimeException cacheLoaderFailure(@Cause Throwable cause); /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is f...
RuntimeException cacheLoaderFailure(@Cause Throwable cause); /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is f...
import org.infinispan.commons.marshall.AdvancedExternalizer; /* * JBoss, Home of Professional Open Source. * Copyright 2012, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is f...
import org.infinispan.commons.marshall.AdvancedExternalizer; /* * JBoss, Home of Professional Open Source. * Copyright 2012, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is f...
public String toString() { return container.getCacheManagerConfiguration().globalJmxStatistics().cacheManagerName() + "." + this.cacheName; } }
public String toString() { return this.container.getCacheManagerConfiguration().globalJmxStatistics().cacheManagerName() + "." + this.cacheName; } }
public TypedValue getValueInternal(ExpressionState state) throws EvaluationException { TypedValue value = children[0].getValueInternal(state); if (value.getValue()!=null) { return value; } else { return children[1].getValueInternal(state); } }
public TypedValue getValueInternal(ExpressionState state) throws EvaluationException { TypedValue value = children[0].getValueInternal(state); if (value.getValue()!=null && !((value.getValue() instanceof String) && ((String)value.getValue()).length()==0)) { return value; } else { return children[1].getValu...
UnivariateDifferentiable differentiate(UnivariateFunction function); /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to ...
UnivariateDifferentiable differentiate(UnivariateFunction function); /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to ...
protected EJBComponent(final EJBComponentCreateService ejbComponentCreateService) { super(ejbComponentCreateService); this.applicationExceptions = Collections.unmodifiableMap(ejbComponentCreateService.getEjbJarConfiguration().getApplicationExceptions()); this.utilities = ejbComponentCreat...
protected EJBComponent(final EJBComponentCreateService ejbComponentCreateService) { super(ejbComponentCreateService); this.applicationExceptions = Collections.unmodifiableMap(ejbComponentCreateService.getApplicationExceptions().getApplicationExceptions()); this.utilities = ejbComponentCre...
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); deploymentUnit.removeAttachment(EjbDeploymentAttachmentKeys.EJB_INJECTIONS); deploymentUnit.removeAttachment(EjbDep...
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); deploymentUnit.removeAttachment(EjbDeploymentAttachmentKeys.EJB_INJECTIONS); deploymentUnit.removeAttachment(EjbDep...
public String toString() { return "ClassIndex{" + "moduleClass=" + moduleClass + '}'; }
public String toString() { return "ClassIndex{" + "moduleClass=" + moduleClass + " ClassLoader " + moduleClass.getClassLoader() + '}'; }
public ServerEnvironment(Properties props, Map<String, String> env, boolean standalone) { this.standalone = standalone; if (props == null) { throw new IllegalArgumentException("props is null"); } // Calculate host and default server name String hostName = props.g...
public ServerEnvironment(Properties props, Map<String, String> env, boolean standalone) { this.standalone = standalone; if (props == null) { throw new IllegalArgumentException("props is null"); } // Calculate host and default server name String hostName = props.g...
public CalendarTimer(String id, TimerServiceImpl timerService, CalendarBasedTimeout calendarTimeout, Serializable info, boolean persistent, Method timeoutMethod, Object primaryKey) { super(id, timerService, calendarTimeout.getFirstTimeout() == null ? null : calendarTimeout.getFirstT...
public CalendarTimer(String id, TimerServiceImpl timerService, CalendarBasedTimeout calendarTimeout, Serializable info, boolean persistent, Method timeoutMethod, Object primaryKey) { super(id, timerService, calendarTimeout.getFirstTimeout() == null ? null : calendarTimeout.getFirstT...
private void getAllChildAddressesForRemove(PathAddress address, List<PathAddress> addresses, Resource resource) { List<PathElement> childElements = new ArrayList<PathElement>(); for (String type : resource.getChildTypes()) { for (String childName : resource.getChildrenNames(type)) { ...
private void getAllChildAddressesForRemove(PathAddress address, List<PathAddress> addresses, Resource resource) { List<PathElement> childElements = new ArrayList<PathElement>(); for (String type : resource.getChildTypes()) { for (String childName : resource.getChildrenNames(type)) { ...
public InfinispanSubsystemTransformer_1_3() { super(1, 3); }
public InfinispanSubsystemTransformer_1_3() { super(1, 3, 0); }
public void initialize(ExtensionContext context) { final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, 1, 0); final ManagementResourceRegistration registration = subsystem.registerSubsystemModel(DependencySubsystemProviders.SUBSYSTEM); //We always need to add an...
public void initialize(ExtensionContext context) { final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, 1, 0, 0); final ManagementResourceRegistration registration = subsystem.registerSubsystemModel(DependencySubsystemProviders.SUBSYSTEM); //We always need to add...
public void initialize(ExtensionContext context) { final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, 1, 0); final ManagementResourceRegistration registration = subsystem.registerSubsystemModel(MainSubsystemProviders.SUBSYSTEM); //We always need to add an 'add'...
public void initialize(ExtensionContext context) { final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, 1, 0, 0); final ManagementResourceRegistration registration = subsystem.registerSubsystemModel(MainSubsystemProviders.SUBSYSTEM); //We always need to add an 'a...
public void initialize(ExtensionContext context) { final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, 1, 0); final ManagementResourceRegistration registration = subsystem.registerSubsystemModel(OtherServicesSubsystemProviders.SUBSYSTEM); //We always need to add...
public void initialize(ExtensionContext context) { final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, 1, 0, 0); final ManagementResourceRegistration registration = subsystem.registerSubsystemModel(OtherServicesSubsystemProviders.SUBSYSTEM); //We always need to ...
public void initialize(ExtensionContext context) { final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, 1, 0); final ManagementResourceRegistration registration = subsystem.registerSubsystemModel(SimpleSubsystemProviders.SUBSYSTEM); //We always need to add an 'ad...
public void initialize(ExtensionContext context) { final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, 1, 0, 0); final ManagementResourceRegistration registration = subsystem.registerSubsystemModel(SimpleSubsystemProviders.SUBSYSTEM); //We always need to add an ...
package org.jboss.as.webservices.dmr; /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can r...
package org.jboss.as.webservices.dmr; /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can r...
public PatchingResult applyPatch(final InputStream is, final ContentVerificationPolicy contentPolicy) throws PatchingException { File workDir = null; try { // Create a working dir workDir = IdentityPatchRunner.createTempDir(); // Save the content fina...
public PatchingResult applyPatch(final InputStream is, final ContentVerificationPolicy contentPolicy) throws PatchingException { File workDir = null; try { // Create a working dir workDir = IdentityPatchRunner.createTempDir(); // Save the content fina...
public static String encodeHost(String host, String encoding) throws UnsupportedEncodingException { return HierarchicalUriComponents .encodeUriComponent(host, encoding, HierarchicalUriComponents.Type.HOST); }
public static String encodeHost(String host, String encoding) throws UnsupportedEncodingException { return HierarchicalUriComponents .encodeUriComponent(host, encoding, HierarchicalUriComponents.Type.HOST_IPV4); }
public void tearDown() { try { FileUtils.deleteDirectory( getTestDirectory() ); } catch( IOException ioe ) { // Ignore, because by this time, it is too late. } }
public void tearDown() { try { FileUtils.deleteDirectory( getTestDirectory() ); } catch( IOException ioe ) { throw new RuntimeException("Could not clear up "+getTestDirectory()); } }
public Object[][] getContents() { return (Object[][]) contents.clone(); }
public Object[][] getContents() { return contents.clone(); }
protected static double[] differentiate(double[] coefficients) { int n = coefficients.length; if (n < 1) { throw new IllegalArgumentException("Coefficient array must have positive length for differentiation"); } if (n == 1) { return new double[]{0}; } ...
protected static double[] differentiate(double[] coefficients) { int n = coefficients.length; if (n < 1) { throw new IllegalArgumentException("Coefficient array must have positive length for differentiation"); } if (n == 1) { return new double[]{0}; } ...
public RealPointValuePair[] getOptima() throws IllegalStateException { if (optima == null) { throw MathRuntimeException.createIllegalStateException("no optimum computed yet"); } return (RealPointValuePair[]) optima.clone(); }
public RealPointValuePair[] getOptima() throws IllegalStateException { if (optima == null) { throw MathRuntimeException.createIllegalStateException("no optimum computed yet"); } return optima.clone(); }
public VectorialPointValuePair[] getOptima() throws IllegalStateException { if (optima == null) { throw MathRuntimeException.createIllegalStateException("no optimum computed yet"); } return (VectorialPointValuePair[]) optima.clone(); }
public VectorialPointValuePair[] getOptima() throws IllegalStateException { if (optima == null) { throw MathRuntimeException.createIllegalStateException("no optimum computed yet"); } return optima.clone(); }
public CorrelatedRandomVectorGenerator(double[] mean, RealMatrix covariance, double small, NormalizedRandomGenerator generator) throws NotPositiveDefiniteMatrixException, DimensionMismatchException { int order = covar...
public CorrelatedRandomVectorGenerator(double[] mean, RealMatrix covariance, double small, NormalizedRandomGenerator generator) throws NotPositiveDefiniteMatrixException, DimensionMismatchException { int order = covar...
public void increment(final double d) { if (n == 0) { m1 = 0.0; } n++; double n0 = (double) n; dev = d - m1; nDev = dev / n0; m1 += nDev; }
public void increment(final double d) { if (n == 0) { m1 = 0.0; } n++; double n0 = n; dev = d - m1; nDev = dev / n0; m1 += nDev; }
public void increment(final double d) { if (n < 1) { m4 = 0.0; m3 = 0.0; m2 = 0.0; m1 = 0.0; } double prevM3 = m3; double prevM2 = m2; super.increment(d); double n0 = (double) n; m4 = m4 - 4.0...
public void increment(final double d) { if (n < 1) { m4 = 0.0; m3 = 0.0; m2 = 0.0; m1 = 0.0; } double prevM3 = m3; double prevM2 = m2; super.increment(d); double n0 = n; m4 = m4 - 4.0 * nDev *...
public static void copy(StandardDeviation source, StandardDeviation dest) { dest.variance = (Variance) source.variance.copy(); }
public static void copy(StandardDeviation source, StandardDeviation dest) { dest.variance = source.variance.copy(); }
public void increment(final double d) { if (n < 1) { m3 = m2 = m1 = 0.0; } double prevM2 = m2; super.increment(d); nDevSq = nDev * nDev; double n0 = (double) n; m3 = m3 - 3.0 * nDev * prevM2 + (n0 - 1) * (n0 - 2) * nDevSq * dev; }
public void increment(final double d) { if (n < 1) { m3 = m2 = m1 = 0.0; } double prevM2 = m2; super.increment(d); nDevSq = nDev * nDev; double n0 = n; m3 = m3 - 3.0 * nDev * prevM2 + (n0 - 1) * (n0 - 2) * nDevSq * dev; }
public double evaluate(final double[] values, final int begin, final int length, final double p) { test(values, begin, length); if ((p > 100) || (p <= 0)) { throw new IllegalArgumentException("invalid quantile value: " + p); } if (length == 0) { ...
public double evaluate(final double[] values, final int begin, final int length, final double p) { test(values, begin, length); if ((p > 100) || (p <= 0)) { throw new IllegalArgumentException("invalid quantile value: " + p); } if (length == 0) { ...
public NumberTransformer getTransformer(Class<?> key) { return (NumberTransformer) map.get(key); }
public NumberTransformer getTransformer(Class<?> key) { return map.get(key); }
protected void buildEnterpriseBeansMetaData(final Deployment dep, final EJBArchiveMetaData ejbArchiveMD) { final List<EJBMetaData> wsEjbsMD = new LinkedList<EJBMetaData>(); final JBossWebservicesMetaData jbossWebservicesMD = WSHelper.getOptionalAttachment(dep, JBossWebservicesMetaData.class); ...
protected void buildEnterpriseBeansMetaData(final Deployment dep, final EJBArchiveMetaData ejbArchiveMD) { final List<EJBMetaData> wsEjbsMD = new LinkedList<EJBMetaData>(); final JBossWebservicesMetaData jbossWebservicesMD = WSHelper.getOptionalAttachment(dep, JBossWebservicesMetaData.class); ...
protected void buildEnterpriseBeansMetaData(final Deployment dep, final EJBArchiveMetaData ejbArchiveMD) { if (!WSHelper.isJaxwsJseDeployment(dep)) { // [AS7-1605] support final JBossWebMetaData jbossWebMD = WSHelper.getOptionalAttachment(dep, JBossWebMetaData.class); final String co...
protected void buildEnterpriseBeansMetaData(final Deployment dep, final EJBArchiveMetaData ejbArchiveMD) { if (!WSHelper.isJaxwsJseDeployment(dep)) { // [AS7-1605] support final JBossWebMetaData jbossWebMD = WSHelper.getOptionalAttachment(dep, JBossWebMetaData.class); final String co...
private void parseProtocol(XMLExtendedStreamReader reader, ModelNode protocol, Class<? extends Protocol> targetClass) throws XMLStreamException { for (int i = 0; i < reader.getAttributeCount(); i++) { String value = reader.getAttributeValue(i); Attribute attribute = Attribute.forName...
private void parseProtocol(XMLExtendedStreamReader reader, ModelNode protocol, Class<? extends Protocol> targetClass) throws XMLStreamException { for (int i = 0; i < reader.getAttributeCount(); i++) { String value = reader.getAttributeValue(i); Attribute attribute = Attribute.forName...
protected static final SimpleAttributeDefinition DEFAULT_WEB_MODULE = new SimpleAttributeDefinitionBuilder(Constants.DEFAULT_WEB_MODULE, ModelType.STRING, true) .setXmlName(Constants.DEFAULT_WEB_MODULE) .setFlags(AttributeAccess.Flag.RESTART_RESOURCE_SERVICES) ...
protected static final SimpleAttributeDefinition DEFAULT_WEB_MODULE = new SimpleAttributeDefinitionBuilder(Constants.DEFAULT_WEB_MODULE, ModelType.STRING, true) .setXmlName(Constants.DEFAULT_WEB_MODULE) .setFlags(AttributeAccess.Flag.RESTART_RESOURCE_SERVICES) ...
public synchronized void start(StartContext context) throws StartException { final StandardHost host = new StandardHost(); host.setAppBase(pathManagerInjector.getValue().getPathEntry(tempPathName).resolvePath()); host.setName(name); for(final String alias : aliases) { hos...
public synchronized void start(StartContext context) throws StartException { final StandardHost host = new StandardHost(); host.setAppBase(pathManagerInjector.getValue().getPathEntry(tempPathName).resolvePath()); host.setName(name); for(final String alias : aliases) { hos...
public KryoValuesDeserializer(Map conf) { _kryo = SerializationFactory.getKryo(conf); }
public KryoValuesDeserializer(Map conf) { _kryo = KryoFactory.getKryo(conf); }
public KryoValuesSerializer(Map conf) { _kryo = SerializationFactory.getKryo(conf); _delegate = new ListDelegate(); }
public KryoValuesSerializer(Map conf) { _kryo = KryoFactory.getKryo(conf); _delegate = new ListDelegate(); }
public void getHeaders() throws Exception { HttpHeaders headers = response.getHeaders(); String headerName = "MyHeader"; String headerValue1 = "value1"; headers.add(headerName, headerValue1); String headerValue2 = "value2"; headers.add(headerName, headerValue2); headers.setContentType(new MediaType("text...
public void getHeaders() throws Exception { HttpHeaders headers = response.getHeaders(); String headerName = "MyHeader"; String headerValue1 = "value1"; headers.add(headerName, headerValue1); String headerValue2 = "value2"; headers.add(headerName, headerValue2); headers.setContentType(new MediaType("text...
public void connectController(String protocol, String host, int port) throws CommandLineException { if (host == null) { host = defaultControllerHost; } if (port < 0) { port = defaultControllerPort; } if(protocol == null) { protocol = defa...
public void connectController(String protocol, String host, int port) throws CommandLineException { if (host == null) { host = defaultControllerHost; } if (port < 0) { port = defaultControllerPort; } if(protocol == null) { protocol = defa...