code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public void marshall(CreateAccountRequest createAccountRequest, ProtocolMarshaller protocolMarshaller) { if (createAccountRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.m...
public class class_name { public void marshall(CreateAccountRequest createAccountRequest, ProtocolMarshaller protocolMarshaller) { if (createAccountRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.m...
public class class_name { private static long computeMsgIdHelper( ImmutableList<SoyMsgPart> msgParts, boolean doUseBracedPhs, @Nullable String meaning, @Nullable String contentType) { // Important: Do not change this algorithm. Doing so will break backwards compatibility. String msgCo...
public class class_name { private static long computeMsgIdHelper( ImmutableList<SoyMsgPart> msgParts, boolean doUseBracedPhs, @Nullable String meaning, @Nullable String contentType) { // Important: Do not change this algorithm. Doing so will break backwards compatibility. String msgCo...
public class class_name { public void addTranslation (String className, String streamedName) { if (_translations == null) { _translations = Maps.newHashMap(); } _translations.put(className, streamedName); } }
public class class_name { public void addTranslation (String className, String streamedName) { if (_translations == null) { _translations = Maps.newHashMap(); // depends on control dependency: [if], data = [none] } _translations.put(className, streamedName); } }
public class class_name { public static void goTo(ShanksSimulation simulation, MobileShanksAgent agent, Location currentLocation, Location targetLocation, double speed) { if (currentLocation.is2DLocation() && targetLocation.is2DLocation()) { ShanksAgentMovementCapability...
public class class_name { public static void goTo(ShanksSimulation simulation, MobileShanksAgent agent, Location currentLocation, Location targetLocation, double speed) { if (currentLocation.is2DLocation() && targetLocation.is2DLocation()) { ShanksAgentMovementCapability...
public class class_name { private final void startHeartbeat() { if (timerTask == null || HsqlTimer.isCancelled(timerTask)) { Runnable runner = new HeartbeatRunner(); timerTask = timer.schedulePeriodicallyAfter(0, HEARTBEAT_INTERVAL, runner, true); } } }
public class class_name { private final void startHeartbeat() { if (timerTask == null || HsqlTimer.isCancelled(timerTask)) { Runnable runner = new HeartbeatRunner(); timerTask = timer.schedulePeriodicallyAfter(0, HEARTBEAT_INTERVAL, runner, true); // depends on con...
public class class_name { public static Option provision(final InputStream... streams) { validateNotNull(streams, "streams"); final UrlProvisionOption[] options = new UrlProvisionOption[streams.length]; int i = 0; for (InputStream stream : streams) { options[i++] = streamBu...
public class class_name { public static Option provision(final InputStream... streams) { validateNotNull(streams, "streams"); final UrlProvisionOption[] options = new UrlProvisionOption[streams.length]; int i = 0; for (InputStream stream : streams) { options[i++] = streamBu...
public class class_name { private static String openTag(String tag, String clazz, String style, boolean contentIsHtml, String... content) { StringBuilder result = new StringBuilder("<").append(tag); if (clazz != null && !"".equals(clazz)) { result.append(" ").append(Html.Attribute.CLASS).append("='").append(cla...
public class class_name { private static String openTag(String tag, String clazz, String style, boolean contentIsHtml, String... content) { StringBuilder result = new StringBuilder("<").append(tag); if (clazz != null && !"".equals(clazz)) { result.append(" ").append(Html.Attribute.CLASS).append("='").append(cla...
public class class_name { private boolean addInactive(PeerAddress peerAddress) { lock.lock(); try { // Deduplicate if (backoffMap.containsKey(peerAddress)) return false; backoffMap.put(peerAddress, new ExponentialBackoff(peerBackoffParams)); ...
public class class_name { private boolean addInactive(PeerAddress peerAddress) { lock.lock(); try { // Deduplicate if (backoffMap.containsKey(peerAddress)) return false; backoffMap.put(peerAddress, new ExponentialBackoff(peerBackoffParams)); // depend...
public class class_name { @EachBean(ServiceHttpClientConfiguration.class) @Requires(condition = ServiceHttpClientCondition.class) DefaultHttpClient serviceHttpClient( @Parameter ServiceHttpClientConfiguration configuration, @Parameter StaticServiceInstanceList instanceList) { Li...
public class class_name { @EachBean(ServiceHttpClientConfiguration.class) @Requires(condition = ServiceHttpClientCondition.class) DefaultHttpClient serviceHttpClient( @Parameter ServiceHttpClientConfiguration configuration, @Parameter StaticServiceInstanceList instanceList) { Li...
public class class_name { public String describeMismatch(final Request request) { final Description desc = new StringDescription(); boolean first = true; for (final Iterator<Matcher<? super Request>> it = this.predicates.iterator(); it.hasNext();) { final Matcher<? super Re...
public class class_name { public String describeMismatch(final Request request) { final Description desc = new StringDescription(); boolean first = true; for (final Iterator<Matcher<? super Request>> it = this.predicates.iterator(); it.hasNext();) { final Matcher<? super Re...
public class class_name { public ModelNode addOperationParameterDescription(final ResourceBundle bundle, final String prefix, final ModelNode operationDescription) { final ModelNode param = getNoTextDescription(true); param.get(ModelDescriptionConstants.DESCRIPTION).set(getAttributeTextDescription(bund...
public class class_name { public ModelNode addOperationParameterDescription(final ResourceBundle bundle, final String prefix, final ModelNode operationDescription) { final ModelNode param = getNoTextDescription(true); param.get(ModelDescriptionConstants.DESCRIPTION).set(getAttributeTextDescription(bund...
public class class_name { private void notifyStatus(SmsMessage message) { URI callback = message.getStatusCallback(); if (callback != null) { String method = message.getStatusCallbackMethod(); if (method != null && !method.isEmpty()) { if (!org.apache.http.clien...
public class class_name { private void notifyStatus(SmsMessage message) { URI callback = message.getStatusCallback(); if (callback != null) { String method = message.getStatusCallbackMethod(); if (method != null && !method.isEmpty()) { if (!org.apache.http.clien...
public class class_name { public static NodeExtension create(Node node, List<String> extensionPriorityList) { try { ClassLoader classLoader = node.getConfigClassLoader(); Class<NodeExtension> chosenExtension = null; int chosenPriority = Integer.MAX_VALUE; for (It...
public class class_name { public static NodeExtension create(Node node, List<String> extensionPriorityList) { try { ClassLoader classLoader = node.getConfigClassLoader(); Class<NodeExtension> chosenExtension = null; // depends on control dependency: [try], data = [none] int ...
public class class_name { public static List<Object> extract(Iterable<?> collection, Editor<Object> editor, boolean ignoreNull) { final List<Object> fieldValueList = new ArrayList<>(); Object value; for (Object bean : collection) { value = editor.edit(bean); if (null == value && ignoreNull) { con...
public class class_name { public static List<Object> extract(Iterable<?> collection, Editor<Object> editor, boolean ignoreNull) { final List<Object> fieldValueList = new ArrayList<>(); Object value; for (Object bean : collection) { value = editor.edit(bean); // depends on control dependency: [for], data ...
public class class_name { public TypeMapping[] getPropertyTypes(InternalQName propName) { synchronized (typeMapping) { TypeMapping[] types = typeMapping.get(propName); if (types != null) { return types; } else { return EMPTY; ...
public class class_name { public TypeMapping[] getPropertyTypes(InternalQName propName) { synchronized (typeMapping) { TypeMapping[] types = typeMapping.get(propName); if (types != null) { return types; // depends on control dependency: [if], data = [none] ...
public class class_name { private <T> CompletableFuture<T> executeOnTransientConnection( Address address, Function<ClientConnection, CompletableFuture<T>> callback, Executor executor) { CompletableFuture<T> future = new CompletableFuture<>(); if (address.equals(returnAddress)) { callbac...
public class class_name { private <T> CompletableFuture<T> executeOnTransientConnection( Address address, Function<ClientConnection, CompletableFuture<T>> callback, Executor executor) { CompletableFuture<T> future = new CompletableFuture<>(); if (address.equals(returnAddress)) { callbac...
public class class_name { public void setTableIndex(TableIndex tableIndex) { this.tableIndex = tableIndex; if (tableIndex != null) { tableName = tableIndex.getTableName(); } else { tableName = null; } } }
public class class_name { public void setTableIndex(TableIndex tableIndex) { this.tableIndex = tableIndex; if (tableIndex != null) { tableName = tableIndex.getTableName(); // depends on control dependency: [if], data = [none] } else { tableName = null; // depends on control dependency: [if], data = [none] ...
public class class_name { private static void columnOpTransform(Matrix M, int low, int high, int n, double q, double p, int shift) { double z; for (int i = low; i <= high; i++) { z = M.get(i, n+shift); M.set(i, n+shift, q * z + p * M.get(i, n)); M.set(i,...
public class class_name { private static void columnOpTransform(Matrix M, int low, int high, int n, double q, double p, int shift) { double z; for (int i = low; i <= high; i++) { z = M.get(i, n+shift); // depends on control dependency: [for], data = [i] M.set(i, n+sh...
public class class_name { private void initialize() { if(this.initialized) { return; } if (LoggingUtil.SESSION_LOGGER_CORE.isLoggable(Level.INFO)) { if (this.sessionStoreService==null) { LoggingUtil.SESSION_LOGGER_CORE.logp(Level.INFO, methodClassName, "i...
public class class_name { private void initialize() { if(this.initialized) { return; // depends on control dependency: [if], data = [none] } if (LoggingUtil.SESSION_LOGGER_CORE.isLoggable(Level.INFO)) { if (this.sessionStoreService==null) { LoggingUtil.SE...
public class class_name { @Override public void installTheme(Theme theme) { this.removeCssLinks(); if (this.currentTheme != null) { for (CssLink link : this.currentTheme.getLinks()) { link.getLink().removeFromParent(); } } this.currentTheme = theme; this.resetTheme(); } }
public class class_name { @Override public void installTheme(Theme theme) { this.removeCssLinks(); if (this.currentTheme != null) { for (CssLink link : this.currentTheme.getLinks()) { link.getLink().removeFromParent(); // depends on control dependency: [for], data = [link] } } this.currentTheme = th...
public class class_name { public final ProtoParser.enum_field_return enum_field(Proto proto, Message message, EnumGroup enumGroup) throws RecognitionException { ProtoParser.enum_field_return retval = new ProtoParser.enum_field_return(); retval.start = input.LT(1); Object root_0 = null; ...
public class class_name { public final ProtoParser.enum_field_return enum_field(Proto proto, Message message, EnumGroup enumGroup) throws RecognitionException { ProtoParser.enum_field_return retval = new ProtoParser.enum_field_return(); retval.start = input.LT(1); Object root_0 = null; ...
public class class_name { protected String addExchangeToken(final String url, final OAuth2AccessToken accessToken) { final FacebookProfileDefinition profileDefinition = (FacebookProfileDefinition) configuration.getProfileDefinition(); final FacebookConfiguration facebookConfiguration = (FacebookConfigu...
public class class_name { protected String addExchangeToken(final String url, final OAuth2AccessToken accessToken) { final FacebookProfileDefinition profileDefinition = (FacebookProfileDefinition) configuration.getProfileDefinition(); final FacebookConfiguration facebookConfiguration = (FacebookConfigu...
public class class_name { private boolean hasScopeAnnotation(final Class<?> type, final boolean hkManaged) { boolean found = false; for (Annotation ann : type.getAnnotations()) { final Class<? extends Annotation> annType = ann.annotationType(); if (annType.isAnnotationPresent(Sc...
public class class_name { private boolean hasScopeAnnotation(final Class<?> type, final boolean hkManaged) { boolean found = false; for (Annotation ann : type.getAnnotations()) { final Class<? extends Annotation> annType = ann.annotationType(); if (annType.isAnnotationPresent(Sc...
public class class_name { private void printImage(PrintStream out, ItemDocument itemDocument) { String imageFile = null; if (itemDocument != null) { for (StatementGroup sg : itemDocument.getStatementGroups()) { boolean isImage = "P18".equals(sg.getProperty().getId()); if (!isImage) { continue; ...
public class class_name { private void printImage(PrintStream out, ItemDocument itemDocument) { String imageFile = null; if (itemDocument != null) { for (StatementGroup sg : itemDocument.getStatementGroups()) { boolean isImage = "P18".equals(sg.getProperty().getId()); if (!isImage) { continue; ...
public class class_name { protected Map<String, String> initMapping() { final Map<String, String> map = new TreeMap<>(); if (!this.converterReader.initializeConversions(map, this.context) && this.initializer != null) { this.initializer.initializeConversions((simpleName, source, target) -> { map.put(source, ...
public class class_name { protected Map<String, String> initMapping() { final Map<String, String> map = new TreeMap<>(); if (!this.converterReader.initializeConversions(map, this.context) && this.initializer != null) { this.initializer.initializeConversions((simpleName, source, target) -> { map.put(source, ...
public class class_name { private void generateText(final INodeReadTrx paramRtx) { try { mContHandler.characters(paramRtx.getValueOfCurrentNode().toCharArray(), 0, paramRtx .getValueOfCurrentNode().length()); } catch (final SAXException exc) { exc.printStackTrace...
public class class_name { private void generateText(final INodeReadTrx paramRtx) { try { mContHandler.characters(paramRtx.getValueOfCurrentNode().toCharArray(), 0, paramRtx .getValueOfCurrentNode().length()); // depends on control dependency: [try], data = [none] } catch (fi...
public class class_name { private void launchServer() { try { log.info("Configuring Android SDK"); if (config.getAndroidHome() != null) { AndroidSdk.setAndroidHome(config.getAndroidHome()); } if (config.getAndroidSdkVersion() != null) { AndroidSdk.setAndroidSdkVersion(config...
public class class_name { private void launchServer() { try { log.info("Configuring Android SDK"); // depends on control dependency: [try], data = [none] if (config.getAndroidHome() != null) { AndroidSdk.setAndroidHome(config.getAndroidHome()); // depends on control dependency: [if], data = [(c...
public class class_name { protected AuthenticationResult processExternalLogin(RequestContext requestContext, String externalId, List<String> emails, String firstName, String lastName) { UserEmailDAO userEmailDAO = new UserEmailDAO(); UserIdentificationDAO userIdentificationDAO = new UserIdentificationDAO(); ...
public class class_name { protected AuthenticationResult processExternalLogin(RequestContext requestContext, String externalId, List<String> emails, String firstName, String lastName) { UserEmailDAO userEmailDAO = new UserEmailDAO(); UserIdentificationDAO userIdentificationDAO = new UserIdentificationDAO(); ...
public class class_name { public Pair<Atom> getAxisEnds(Atom[] atoms) { // Project each Atom onto the rotation axis to determine limits double min, max; min = max = Calc.scalarProduct(rotationAxis,atoms[0]); for(int i=1;i<atoms.length;i++) { double prod = Calc.scalarProduct(rotationAxis,atoms[i]); if(pro...
public class class_name { public Pair<Atom> getAxisEnds(Atom[] atoms) { // Project each Atom onto the rotation axis to determine limits double min, max; min = max = Calc.scalarProduct(rotationAxis,atoms[0]); for(int i=1;i<atoms.length;i++) { double prod = Calc.scalarProduct(rotationAxis,atoms[i]); if(pro...
public class class_name { boolean scanDire() { String id = null; StringBuilder para = null; Token idToken = null; Token paraToken = null; while (true) { switch (state) { case 0: if (peek() == '#') { // # next(); skipBlanks(); state = 1; continue ; } ret...
public class class_name { boolean scanDire() { String id = null; StringBuilder para = null; Token idToken = null; Token paraToken = null; while (true) { switch (state) { case 0: if (peek() == '#') { // # next(); // depends on control dependency: [if], data = [none] skipBlank...
public class class_name { private void doGenerateBrownianMotion() { if(brownianIncrements != null) { return; // Nothing to do } // Create random number sequence generator MersenneTwister mersenneTwister = new MersenneTwister(seed); // Allocate memory double[][][] brownianIncrementsArray = new double[t...
public class class_name { private void doGenerateBrownianMotion() { if(brownianIncrements != null) { return; // Nothing to do // depends on control dependency: [if], data = [none] } // Create random number sequence generator MersenneTwister mersenneTwister = new MersenneTwister(seed); // Allocate memory...
public class class_name { public boolean extend(SpatialComparable obj) { final int dim = min.length; assert (obj.getDimensionality() == dim); boolean extended = false; for(int i = 0; i < dim; i++) { final double omin = obj.getMin(i); final double omax = obj.getMax(i); if(omin < min[i]...
public class class_name { public boolean extend(SpatialComparable obj) { final int dim = min.length; assert (obj.getDimensionality() == dim); boolean extended = false; for(int i = 0; i < dim; i++) { final double omin = obj.getMin(i); final double omax = obj.getMax(i); if(omin < min[i]...
public class class_name { private void safeCustomDelay(PollingStrategyContext pollingStrategyContext) { try { pollingStrategy.getDelayStrategy().delayBeforeNextRetry(pollingStrategyContext); } catch (InterruptedException e) { Thread.currentThread().interrupt(); throw...
public class class_name { private void safeCustomDelay(PollingStrategyContext pollingStrategyContext) { try { pollingStrategy.getDelayStrategy().delayBeforeNextRetry(pollingStrategyContext); // depends on control dependency: [try], data = [none] } catch (InterruptedException e) { ...
public class class_name { public Collection getReaders(Object obj) { Collection result = null; try { Identity oid = new Identity(obj, getBroker()); byte selector = (byte) 'r'; byte[] requestBarr = buildRequestArray(oid, selector); ...
public class class_name { public Collection getReaders(Object obj) { Collection result = null; try { Identity oid = new Identity(obj, getBroker()); byte selector = (byte) 'r'; byte[] requestBarr = buildRequestArray(oid, selector); ...
public class class_name { public java.util.List<String> getCcEmailAddresses() { if (ccEmailAddresses == null) { ccEmailAddresses = new com.amazonaws.internal.SdkInternalList<String>(); } return ccEmailAddresses; } }
public class class_name { public java.util.List<String> getCcEmailAddresses() { if (ccEmailAddresses == null) { ccEmailAddresses = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none] } return ccEmailAddresses; } }
public class class_name { protected void setPost(JSONObject post) throws JSONException { params_ = post; if (getBranchRemoteAPIVersion() == BRANCH_API_VERSION.V2) { try { JSONObject userDataObj = new JSONObject(); params_.put(Defines.Jsonkey.UserData.getKey()...
public class class_name { protected void setPost(JSONObject post) throws JSONException { params_ = post; if (getBranchRemoteAPIVersion() == BRANCH_API_VERSION.V2) { try { JSONObject userDataObj = new JSONObject(); params_.put(Defines.Jsonkey.UserData.getKey()...
public class class_name { protected void init(CollectorConfiguration config) { for (String btxn : config.getTransactions().keySet()) { TransactionConfig btc = config.getTransactions().get(btxn); init(btxn, btc); } onlyNamedTransactions = new Boolean(config.getProperty( ...
public class class_name { protected void init(CollectorConfiguration config) { for (String btxn : config.getTransactions().keySet()) { TransactionConfig btc = config.getTransactions().get(btxn); init(btxn, btc); // depends on control dependency: [for], data = [btxn] } o...
public class class_name { static void register(String group, long durationMillis) { for (ProfilingListener listener : LISTENERS) { listener.register(group, durationMillis); } } }
public class class_name { static void register(String group, long durationMillis) { for (ProfilingListener listener : LISTENERS) { listener.register(group, durationMillis); // depends on control dependency: [for], data = [listener] } } }
public class class_name { @Override public EClass getPluginBundle() { if (pluginBundleEClass == null) { pluginBundleEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(StorePackage.eNS_URI).getEClassifiers().get(106); } return pluginBundleEClass; } }
public class class_name { @Override public EClass getPluginBundle() { if (pluginBundleEClass == null) { pluginBundleEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(StorePackage.eNS_URI).getEClassifiers().get(106); // depends on control dependency: [if], data = [none] } return pluginBundleEClass...
public class class_name { public static List<Integer> getCandidates(INDArray x,List<RPTree> roots,String similarityFunction) { Set<Integer> ret = new LinkedHashSet<>(); for(RPTree tree : roots) { RPNode root = tree.getRoot(); RPNode query = query(root,tree.getRpHyperPlanes(),x,s...
public class class_name { public static List<Integer> getCandidates(INDArray x,List<RPTree> roots,String similarityFunction) { Set<Integer> ret = new LinkedHashSet<>(); for(RPTree tree : roots) { RPNode root = tree.getRoot(); RPNode query = query(root,tree.getRpHyperPlanes(),x,s...
public class class_name { public static Feed buildFeed(FeedDesc feedDesc){ Feed feed = null; NitFactory nitFactory = new NitFactory(); NitDesc nitDesc = nitDescFromDynamic(feedDesc); nitDesc.setConstructorParameters(new Class [] { Map.class }); nitDesc.setConstructorArguments(new Object[] { feedDes...
public class class_name { public static Feed buildFeed(FeedDesc feedDesc){ Feed feed = null; NitFactory nitFactory = new NitFactory(); NitDesc nitDesc = nitDescFromDynamic(feedDesc); nitDesc.setConstructorParameters(new Class [] { Map.class }); nitDesc.setConstructorArguments(new Object[] { feedDes...
public class class_name { private static boolean validateTermWithStartValue(BytesRef term, ComponentTermVector termVector) { if (termVector.startValue == null) { return true; } else if (termVector.subComponentFunction.sortType .equals(CodecUtil.SORT_TERM)) { if (term.length > termVect...
public class class_name { private static boolean validateTermWithStartValue(BytesRef term, ComponentTermVector termVector) { if (termVector.startValue == null) { return true; // depends on control dependency: [if], data = [none] } else if (termVector.subComponentFunction.sortType .equals(Co...
public class class_name { @Deprecated public void canUploadVersion(String name, long fileSize, String parentID) { URL url = CONTENT_URL_TEMPLATE.build(this.getAPI().getBaseURL(), this.getID()); BoxJSONRequest request = new BoxJSONRequest(this.getAPI(), url, "OPTIONS"); JsonObject parent = ...
public class class_name { @Deprecated public void canUploadVersion(String name, long fileSize, String parentID) { URL url = CONTENT_URL_TEMPLATE.build(this.getAPI().getBaseURL(), this.getID()); BoxJSONRequest request = new BoxJSONRequest(this.getAPI(), url, "OPTIONS"); JsonObject parent = ...
public class class_name { public List<CmsUUID> getRemoveIds() { List<CmsUUID> toRemove = new ArrayList<CmsUUID>(); for (Map.Entry<CmsUUID, CmsPublishItemStatus> entry : m_status.entrySet()) { CmsUUID key = entry.getKey(); CmsPublishItemStatus status = entry.getValue(); ...
public class class_name { public List<CmsUUID> getRemoveIds() { List<CmsUUID> toRemove = new ArrayList<CmsUUID>(); for (Map.Entry<CmsUUID, CmsPublishItemStatus> entry : m_status.entrySet()) { CmsUUID key = entry.getKey(); CmsPublishItemStatus status = entry.getValue(); ...
public class class_name { private void resetJcsegTaskConfig(JcsegTaskConfig config, JSONObject json) { if ( json.has("jcseg_maxlen") ) { config.setMaxLength(json.getInt("jcseg_maxlen")); } if ( json.has("jcseg_icnname") ) { config.setICnName(json.getBoolean("jcseg_ic...
public class class_name { private void resetJcsegTaskConfig(JcsegTaskConfig config, JSONObject json) { if ( json.has("jcseg_maxlen") ) { config.setMaxLength(json.getInt("jcseg_maxlen")); // depends on control dependency: [if], data = [none] } if ( json.has("jcseg_icnname") ) { ...
public class class_name { private void initDefaultLoginFilter(H http) { DefaultLoginPageGeneratingFilter loginPageGeneratingFilter = http .getSharedObject(DefaultLoginPageGeneratingFilter.class); if (loginPageGeneratingFilter != null && !isCustomLoginPage()) { loginPageGeneratingFilter.setOpenIdEnabled(true...
public class class_name { private void initDefaultLoginFilter(H http) { DefaultLoginPageGeneratingFilter loginPageGeneratingFilter = http .getSharedObject(DefaultLoginPageGeneratingFilter.class); if (loginPageGeneratingFilter != null && !isCustomLoginPage()) { loginPageGeneratingFilter.setOpenIdEnabled(true...
public class class_name { protected static void applyDefaults(final TableRequestOptions modifiedOptions) { Utility.assertNotNull("modifiedOptions", modifiedOptions); RequestOptions.applyBaseDefaultsInternal(modifiedOptions); if (modifiedOptions.getTablePayloadFormat() == null) { mod...
public class class_name { protected static void applyDefaults(final TableRequestOptions modifiedOptions) { Utility.assertNotNull("modifiedOptions", modifiedOptions); RequestOptions.applyBaseDefaultsInternal(modifiedOptions); if (modifiedOptions.getTablePayloadFormat() == null) { mod...
public class class_name { public static Stream<JarEntry> asStream( final JarInputStream pInputStream ) { return StreamSupport.stream(Spliterators.spliteratorUnknownSize( new Iterator<JarEntry>() { JarEntry entry = null; public boolean hasNext() { ...
public class class_name { public static Stream<JarEntry> asStream( final JarInputStream pInputStream ) { return StreamSupport.stream(Spliterators.spliteratorUnknownSize( new Iterator<JarEntry>() { JarEntry entry = null; public boolean hasNext() { ...
public class class_name { public Problem getProblem(final String letter) { if (letter.isEmpty() || letter.length() > 1) { return null; } final char identifier = letter.toUpperCase().charAt(0); final int index = (int) identifier - (int) 'A'; final List<Problem> problems = info.getProblems(); if (index < ...
public class class_name { public Problem getProblem(final String letter) { if (letter.isEmpty() || letter.length() > 1) { return null; // depends on control dependency: [if], data = [none] } final char identifier = letter.toUpperCase().charAt(0); final int index = (int) identifier - (int) 'A'; final List<...
public class class_name { public static boolean isMethodNode(ASTNode node, String methodNamePattern, Integer numArguments, Class returnType) { if (!(node instanceof MethodNode)) { return false; } if (!(((MethodNode) node).getName().matches(methodNamePattern))) { ret...
public class class_name { public static boolean isMethodNode(ASTNode node, String methodNamePattern, Integer numArguments, Class returnType) { if (!(node instanceof MethodNode)) { return false; // depends on control dependency: [if], data = [none] } if (!(((MethodNode) node).get...
public class class_name { public static String readContentAsString(File file, String encoding) { try { return readContentAsString(new FileInputStream(file), encoding); } catch (FileNotFoundException e) { throw new RuntimeException(e); } } }
public class class_name { public static String readContentAsString(File file, String encoding) { try { return readContentAsString(new FileInputStream(file), encoding); // depends on control dependency: [try], data = [none] } catch (FileNotFoundException e) { throw new RuntimeExc...
public class class_name { public void restore(BackupMetaData backup, File destinationFile) throws Exception { File tempFile = File.createTempFile("exhibitor-backup", ".tmp"); OutputStream out = new FileOutputStream(tempFile); InputStream in = null; try { backupProvider.g...
public class class_name { public void restore(BackupMetaData backup, File destinationFile) throws Exception { File tempFile = File.createTempFile("exhibitor-backup", ".tmp"); OutputStream out = new FileOutputStream(tempFile); InputStream in = null; try { backupProvider.g...
public class class_name { public Integer getAbsoluteSourcePort() { if (this.getSourcePort() == null) { return null; } if (this.fixedSourcePort) { return this.sourcePort; } final int portOffset = this.socketBindingManager.getPortOffset(); return th...
public class class_name { public Integer getAbsoluteSourcePort() { if (this.getSourcePort() == null) { return null; // depends on control dependency: [if], data = [none] } if (this.fixedSourcePort) { return this.sourcePort; // depends on control dependency: [if], data = ...
public class class_name { public void setContentView(View contentView, FrameLayout.LayoutParams params) { if(params == null) { params = new FrameLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, Gravity.CENTER); final int margin = getResources().getDimensionPixel...
public class class_name { public void setContentView(View contentView, FrameLayout.LayoutParams params) { if(params == null) { params = new FrameLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, Gravity.CENTER); // depends on control dependency: [if], data = [none] ...
public class class_name { public final EObject ruleParameter() throws RecognitionException { EObject current = null; Token lv_name_0_0=null; enterRule(); try { // InternalXtext.g:901:2: ( ( (lv_name_0_0= RULE_ID ) ) ) // InternalXtext.g:902:2: ( (lv_name_0_0...
public class class_name { public final EObject ruleParameter() throws RecognitionException { EObject current = null; Token lv_name_0_0=null; enterRule(); try { // InternalXtext.g:901:2: ( ( (lv_name_0_0= RULE_ID ) ) ) // InternalXtext.g:902:2: ( (lv_name_0_0...
public class class_name { public static ZMatrixRMaj[] columnsToVector(ZMatrixRMaj A, ZMatrixRMaj[] v) { ZMatrixRMaj[]ret; if( v == null || v.length < A.numCols ) { ret = new ZMatrixRMaj[ A.numCols ]; } else { ret = v; } for( int i = 0; i < ret.length...
public class class_name { public static ZMatrixRMaj[] columnsToVector(ZMatrixRMaj A, ZMatrixRMaj[] v) { ZMatrixRMaj[]ret; if( v == null || v.length < A.numCols ) { ret = new ZMatrixRMaj[ A.numCols ]; // depends on control dependency: [if], data = [none] } else { ret ...
public class class_name { static Visibility getEffectiveVisibilityForOverriddenProperty( Visibility visibility, @Nullable Visibility fileOverviewVisibility, String propertyName, @Nullable CodingConvention codingConvention) { if (codingConvention != null && codingConvention.isPrivate(propert...
public class class_name { static Visibility getEffectiveVisibilityForOverriddenProperty( Visibility visibility, @Nullable Visibility fileOverviewVisibility, String propertyName, @Nullable CodingConvention codingConvention) { if (codingConvention != null && codingConvention.isPrivate(propert...
public class class_name { public void awaitTermination(boolean waitQuietPeriod) { LOG.info("{}: Journal checkpointer shutdown has been initiated.", mMaster.getName()); mWaitQuietPeriod = waitQuietPeriod; mShutdownInitiated = true; // Actively interrupt to cancel slow checkpoints. synchronized (mChe...
public class class_name { public void awaitTermination(boolean waitQuietPeriod) { LOG.info("{}: Journal checkpointer shutdown has been initiated.", mMaster.getName()); mWaitQuietPeriod = waitQuietPeriod; mShutdownInitiated = true; // Actively interrupt to cancel slow checkpoints. synchronized (mChe...
public class class_name { protected void release() { if (!releaseNeeded.get()) { return; // there is no point in releasing if we do not wait. Avoid excessive releasing. } releaseNeeded.set(false);// release is under way backgroundExecutor.execute(new Runnable() { ...
public class class_name { protected void release() { if (!releaseNeeded.get()) { return; // there is no point in releasing if we do not wait. Avoid excessive releasing. // depends on control dependency: [if], data = [none] } releaseNeeded.set(false);// release is under way ...
public class class_name { public void writeTag(int tagClass, boolean primitive, int tag) throws AsnException { if (tag < 0) throw new AsnException("Tag must not be negative"); if (tag <= 30) { int toEncode = (tagClass & 0x03) << 6; toEncode |= (primitive ? 0 : 1) << 5; toEncode |= tag ...
public class class_name { public void writeTag(int tagClass, boolean primitive, int tag) throws AsnException { if (tag < 0) throw new AsnException("Tag must not be negative"); if (tag <= 30) { int toEncode = (tagClass & 0x03) << 6; toEncode |= (primitive ? 0 : 1) << 5; toEncode |= tag ...
public class class_name { public static String getJsonString(Object object) { ObjectMapper objectMapper = new ObjectMapper(); String json = null; try { json = objectMapper.writeValueAsString(object); } catch (JsonProcessingException e) { e.printStackTrace(); ...
public class class_name { public static String getJsonString(Object object) { ObjectMapper objectMapper = new ObjectMapper(); String json = null; try { json = objectMapper.writeValueAsString(object); // depends on control dependency: [try], data = [none] } catch (JsonProcess...
public class class_name { public static String relativizeLink(final String baseDirUri, final String link) { // taken from org.apache.maven.doxia.site.decoration.inheritance.DecorationModelInheritanceAssembler if (link == null || baseDirUri == null) { return link; } // this shouldn't be necessar...
public class class_name { public static String relativizeLink(final String baseDirUri, final String link) { // taken from org.apache.maven.doxia.site.decoration.inheritance.DecorationModelInheritanceAssembler if (link == null || baseDirUri == null) { return link; // depends on control dependency: [if], ...
public class class_name { public static byte[] encodeLength(int length, int offset) { if (length < SIZE_THRESHOLD) { byte firstByte = (byte) (length + offset); return new byte[] { firstByte }; } else if (length < MAX_ITEM_LENGTH) { byte[] binaryLength; if...
public class class_name { public static byte[] encodeLength(int length, int offset) { if (length < SIZE_THRESHOLD) { byte firstByte = (byte) (length + offset); return new byte[] { firstByte }; // depends on control dependency: [if], data = [none] } else if (length < MAX_ITEM_LEN...
public class class_name { private static ConsistencyLevel downgrade( ConsistencyLevel current, int acknowledgements, DriverException original) { if (acknowledgements >= 3) { return DefaultConsistencyLevel.THREE; } if (acknowledgements == 2) { return DefaultConsistencyLevel.TWO; } ...
public class class_name { private static ConsistencyLevel downgrade( ConsistencyLevel current, int acknowledgements, DriverException original) { if (acknowledgements >= 3) { return DefaultConsistencyLevel.THREE; // depends on control dependency: [if], data = [none] } if (acknowledgements == 2) ...
public class class_name { public void doFormat(double number, StringBuilder toInsertInto, int pos, int recursionCount) { // first, insert the rule's rule text into toInsertInto at the // specified position, then insert the results of the substitutions // into the right places in toInsertInto ...
public class class_name { public void doFormat(double number, StringBuilder toInsertInto, int pos, int recursionCount) { // first, insert the rule's rule text into toInsertInto at the // specified position, then insert the results of the substitutions // into the right places in toInsertInto ...
public class class_name { public static BigDecimal mantissa(BigDecimal value) { int exponent = exponent(value); if (exponent == 0) { return value; } return value.movePointLeft(exponent); } }
public class class_name { public static BigDecimal mantissa(BigDecimal value) { int exponent = exponent(value); if (exponent == 0) { return value; // depends on control dependency: [if], data = [none] } return value.movePointLeft(exponent); } }
public class class_name { public static void decodeTo(InputStream in, MultiMap<String> map, Charset charset, int maxLength, int maxKeys) throws IOException { //no charset present, use the configured default if (charset == null) charset = ENCODING; if (StandardCharsets.U...
public class class_name { public static void decodeTo(InputStream in, MultiMap<String> map, Charset charset, int maxLength, int maxKeys) throws IOException { //no charset present, use the configured default if (charset == null) charset = ENCODING; if (StandardCharsets.U...
public class class_name { public static File createTempFile(final String prefix, final String suffix, final File tempDir) throws IOException { int exceptionsCount = ZERO; while (true) { try { return File.createTempFile(prefix, suffix, tempDir).getCanonicalFile(); } catch (IOException ioex) { // fixes ja...
public class class_name { public static File createTempFile(final String prefix, final String suffix, final File tempDir) throws IOException { int exceptionsCount = ZERO; while (true) { try { return File.createTempFile(prefix, suffix, tempDir).getCanonicalFile(); // depends on control dependency: [try], dat...
public class class_name { protected void handleNonListenerError(String msg, Exception error) { if(logger != null) { logger.error(msg, error); } else { Log.e("Socialize", msg, error); } } }
public class class_name { protected void handleNonListenerError(String msg, Exception error) { if(logger != null) { logger.error(msg, error); // depends on control dependency: [if], data = [none] } else { Log.e("Socialize", msg, error); // depends on control dependency: [if], data = [none] } } }
public class class_name { public String getFileType() { if (fileTypeOrName != null && fileTypeOrName.contains(".")) { return FileUtils.getExtension(fileTypeOrName); } else { return fileTypeOrName; } } }
public class class_name { public String getFileType() { if (fileTypeOrName != null && fileTypeOrName.contains(".")) { return FileUtils.getExtension(fileTypeOrName); // depends on control dependency: [if], data = [(fileTypeOrName] } else { return fileTypeOrName; // depends on con...
public class class_name { @Deprecated public static Locale getLocale() { Locale locale = null; FacesContext facesContext = FacesContext.getCurrentInstance(); if (facesContext != null && facesContext.getViewRoot() != null) { locale = facesContext.getViewRoot().getLocale(); ...
public class class_name { @Deprecated public static Locale getLocale() { Locale locale = null; FacesContext facesContext = FacesContext.getCurrentInstance(); if (facesContext != null && facesContext.getViewRoot() != null) { locale = facesContext.getViewRoot().getLocale(); // de...
public class class_name { @Override public boolean clientSelectOneByExampleWithBLOBsMethodGenerated(Method method, Interface interfaze, IntrospectedTable introspectedTable) { for (ISelectOneByExamplePluginHook plugin : this.getPlugins(ISelectOneByExamplePluginHook.class)) { if (!plugin.clientSe...
public class class_name { @Override public boolean clientSelectOneByExampleWithBLOBsMethodGenerated(Method method, Interface interfaze, IntrospectedTable introspectedTable) { for (ISelectOneByExamplePluginHook plugin : this.getPlugins(ISelectOneByExamplePluginHook.class)) { if (!plugin.clientSe...
public class class_name { @SuppressWarnings ("unchecked") public ABTreeMap<K,V> updated (K key, V value) { final UpdateResult result = _updated (key, value); if (result.optRight == null) { return result.left; } // This is the only place where the tree depth can grow. ...
public class class_name { @SuppressWarnings ("unchecked") public ABTreeMap<K,V> updated (K key, V value) { final UpdateResult result = _updated (key, value); if (result.optRight == null) { return result.left; // depends on control dependency: [if], data = [none] } // T...
public class class_name { private void addPostParams(final Request request) { if (language != null) { request.addPostParam("Language", language); } if (value != null) { request.addPostParam("Value", value); } if (synonymOf != null) { request...
public class class_name { private void addPostParams(final Request request) { if (language != null) { request.addPostParam("Language", language); // depends on control dependency: [if], data = [none] } if (value != null) { request.addPostParam("Value", value); // depend...
public class class_name { public <T extends AbstractJaxb> void saveToStringWriter(T tag, StringWriter writer) { // add one white space into script tag // having empty content. for (Script script : tag.getDescendants(Script.class)) { if (script.getContent() == null || sc...
public class class_name { public <T extends AbstractJaxb> void saveToStringWriter(T tag, StringWriter writer) { // add one white space into script tag // having empty content. for (Script script : tag.getDescendants(Script.class)) { if (script.getContent() == null || sc...
public class class_name { private double distance(Instance inst1, double[] inst2){ double distance = 0.0; for (int i = 0; i < numDims; i++) { double d = inst1.value(i) - inst2[i]; distance += d * d; } return Math.sqrt(distance); } }
public class class_name { private double distance(Instance inst1, double[] inst2){ double distance = 0.0; for (int i = 0; i < numDims; i++) { double d = inst1.value(i) - inst2[i]; distance += d * d; // depends on control dependency: [for], data = [none] } return ...
public class class_name { public void setDefault(Currency currency) { if (currencyList.containsKey(currency.getName())) { Common.getInstance().getStorageHandler().getStorageEngine().setDefaultCurrency(currency); defaultCurrency = currency; currency.setDefault(true); ...
public class class_name { public void setDefault(Currency currency) { if (currencyList.containsKey(currency.getName())) { Common.getInstance().getStorageHandler().getStorageEngine().setDefaultCurrency(currency); // depends on control dependency: [if], data = [none] defaultCurrency = cur...
public class class_name { public FacesConfigReferencedBeanType<WebFacesConfigDescriptor> getOrCreateReferencedBean() { List<Node> nodeList = model.get("referenced-bean"); if (nodeList != null && nodeList.size() > 0) { return new FacesConfigReferencedBeanTypeImpl<WebFacesConfigDescriptor>...
public class class_name { public FacesConfigReferencedBeanType<WebFacesConfigDescriptor> getOrCreateReferencedBean() { List<Node> nodeList = model.get("referenced-bean"); if (nodeList != null && nodeList.size() > 0) { return new FacesConfigReferencedBeanTypeImpl<WebFacesConfigDescriptor>...
public class class_name { private static List<Field> findFields() { List<Field> result = new ArrayList<Field>(); for (Field f : LoadStatistics.class.getFields()) { if (Modifier.isPublic(f.getModifiers()) && MultiStageTimeSeries.class.isAssignableFrom(f.getType()) && f.ge...
public class class_name { private static List<Field> findFields() { List<Field> result = new ArrayList<Field>(); for (Field f : LoadStatistics.class.getFields()) { if (Modifier.isPublic(f.getModifiers()) && MultiStageTimeSeries.class.isAssignableFrom(f.getType()) && f.ge...
public class class_name { void onCompletion(Collection<ApplicationDependency> dependencies) { if (!dependencies.isEmpty()) { for (ApplicationDependency dependency : dependencies) { dependency.onCompletion(this); } } } }
public class class_name { void onCompletion(Collection<ApplicationDependency> dependencies) { if (!dependencies.isEmpty()) { for (ApplicationDependency dependency : dependencies) { dependency.onCompletion(this); // depends on control dependency: [for], data = [dependency] ...
public class class_name { public Object getValueAt(int iRowIndex, int iColumnIndex) { int iEditMode = Constants.EDIT_NONE; try { if (iRowIndex >= 0) { FieldList fieldList = this.makeRowCurrent(iRowIndex, false); if (fieldList != null) ...
public class class_name { public Object getValueAt(int iRowIndex, int iColumnIndex) { int iEditMode = Constants.EDIT_NONE; try { if (iRowIndex >= 0) { FieldList fieldList = this.makeRowCurrent(iRowIndex, false); if (fieldList != null) ...
public class class_name { private ExtractionInfo extractSingleLineBlock() { // Get the current starting point. stream.update(); int lineno = stream.getLineno(); int charno = stream.getCharno() + 1; String line = getRemainingJSDocLine().trim(); // Record the textual description. if (line....
public class class_name { private ExtractionInfo extractSingleLineBlock() { // Get the current starting point. stream.update(); int lineno = stream.getLineno(); int charno = stream.getCharno() + 1; String line = getRemainingJSDocLine().trim(); // Record the textual description. if (line....
public class class_name { public String computefqn() { List<DapNode> path = getPath(); // excludes root/wrt StringBuilder fqn = new StringBuilder(); DapNode parent = path.get(0); for(int i = 1; i < path.size(); i++) { // start at 1 to skip root DapNode current = pa...
public class class_name { public String computefqn() { List<DapNode> path = getPath(); // excludes root/wrt StringBuilder fqn = new StringBuilder(); DapNode parent = path.get(0); for(int i = 1; i < path.size(); i++) { // start at 1 to skip root DapNode current = pa...
public class class_name { @Override public int executeBatch() { if (batchSize > 0) { boolean nodeAutoIndexingEnabled = indexer.isNodeAutoIndexingEnabled(factory.getConnection()); boolean relationshipAutoIndexingEnabled = indexer .isRelationshipAutoInd...
public class class_name { @Override public int executeBatch() { if (batchSize > 0) { boolean nodeAutoIndexingEnabled = indexer.isNodeAutoIndexingEnabled(factory.getConnection()); boolean relationshipAutoIndexingEnabled = indexer .isRelationshipAutoInd...
public class class_name { public EClass getIfcRelationship() { if (ifcRelationshipEClass == null) { ifcRelationshipEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(486); } return ifcRelationshipEClass; } }
public class class_name { public EClass getIfcRelationship() { if (ifcRelationshipEClass == null) { ifcRelationshipEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(486); // depends on control dependency: [if], data = [none] } return ifcRelatio...
public class class_name { public static String trimWhitespace(final String str) { if (!StringUtils.hasLength(str)) { return str; } int beginIndex = 0; int endIndex = str.length() - 1; while (beginIndex <= endIndex && Character.isWhitespace(str.charAt(beginIndex))) { beginIndex++; ...
public class class_name { public static String trimWhitespace(final String str) { if (!StringUtils.hasLength(str)) { return str; // depends on control dependency: [if], data = [none] } int beginIndex = 0; int endIndex = str.length() - 1; while (beginIndex <= endIndex && Character.isWhitespa...
public class class_name { public static base_responses delete(nitro_service client, String ipfrom[]) throws Exception { base_responses result = null; if (ipfrom != null && ipfrom.length > 0) { location deleteresources[] = new location[ipfrom.length]; for (int i=0;i<ipfrom.length;i++){ deleteresources[i] ...
public class class_name { public static base_responses delete(nitro_service client, String ipfrom[]) throws Exception { base_responses result = null; if (ipfrom != null && ipfrom.length > 0) { location deleteresources[] = new location[ipfrom.length]; for (int i=0;i<ipfrom.length;i++){ deleteresources[i] ...
public class class_name { private void verifyIfBundleIsModified(JoinableResourceBundleImpl bundle, List<String> mappings, PropertiesConfigHelper props) { // Retrieves current available variant Map<String, VariantSet> variants = new TreeMap<>(); for (String mapping : mappings) { variants = VariantUtils.con...
public class class_name { private void verifyIfBundleIsModified(JoinableResourceBundleImpl bundle, List<String> mappings, PropertiesConfigHelper props) { // Retrieves current available variant Map<String, VariantSet> variants = new TreeMap<>(); for (String mapping : mappings) { variants = VariantUtils.con...
public class class_name { private Rectangle2D getBounds(ServletRequest pReq, BufferedImage pImage, double pAng) { // Get dimensions of original image int width = pImage.getWidth(); // loads the image int height = pImage.getHeight(); // Test if we...
public class class_name { private Rectangle2D getBounds(ServletRequest pReq, BufferedImage pImage, double pAng) { // Get dimensions of original image int width = pImage.getWidth(); // loads the image int height = pImage.getHeight(); // Test if we...
public class class_name { public void undo() { if (hasUndo()) { ChangeType type = m_current.getType(); String entityId = m_current.getEntityId(); String attributeName = m_current.getAttributeName(); int valueIndex = m_current.getValueIndex(); m_redo....
public class class_name { public void undo() { if (hasUndo()) { ChangeType type = m_current.getType(); String entityId = m_current.getEntityId(); String attributeName = m_current.getAttributeName(); int valueIndex = m_current.getValueIndex(); m_redo....
public class class_name { public void setMonth(int month) { calendar.set(Calendar.MONTH, month); int maxDays = calendar.getActualMaximum(Calendar.DAY_OF_MONTH); int adjustedDay = day; if (day > maxDays) { adjustedDay = maxDays; setDay(adjustedDay); } drawDays(); } }
public class class_name { public void setMonth(int month) { calendar.set(Calendar.MONTH, month); int maxDays = calendar.getActualMaximum(Calendar.DAY_OF_MONTH); int adjustedDay = day; if (day > maxDays) { adjustedDay = maxDays; // depends on control dependency: [if], data = [none] setDay(adjustedDay);...
public class class_name { public CreateIndexRequest withOrderedIndexedAttributeList(AttributeKey... orderedIndexedAttributeList) { if (this.orderedIndexedAttributeList == null) { setOrderedIndexedAttributeList(new java.util.ArrayList<AttributeKey>(orderedIndexedAttributeList.length)); } ...
public class class_name { public CreateIndexRequest withOrderedIndexedAttributeList(AttributeKey... orderedIndexedAttributeList) { if (this.orderedIndexedAttributeList == null) { setOrderedIndexedAttributeList(new java.util.ArrayList<AttributeKey>(orderedIndexedAttributeList.length)); // depends on...
public class class_name { public static void main(String[] args) { try { Stemming.useStemmer(new PTStemmer(), args); } catch (Exception e) { e.printStackTrace(); } } }
public class class_name { public static void main(String[] args) { try { Stemming.useStemmer(new PTStemmer(), args); // depends on control dependency: [try], data = [none] } catch (Exception e) { e.printStackTrace(); } // depends on control dependency: [catch], data = [none] } }
public class class_name { private double calculateC(ExampleSet data) //throws Exception { String svmCost = parameter.getProperty("svm-cost"); if (svmCost != null) return Integer.parseInt(svmCost); logger.info("calculate default SVM cost parameter C"); //double c = 1; double avr = 0; // the example s...
public class class_name { private double calculateC(ExampleSet data) //throws Exception { String svmCost = parameter.getProperty("svm-cost"); if (svmCost != null) return Integer.parseInt(svmCost); logger.info("calculate default SVM cost parameter C"); //double c = 1; double avr = 0; // the example s...
public class class_name { @Override public JsonArray deepCopy() { if (!elements.isEmpty()) { JsonArray result = new JsonArray(elements.size()); for (JsonElement element : elements) { result.add(element.deepCopy()); } return result; } return new JsonArray(); } }
public class class_name { @Override public JsonArray deepCopy() { if (!elements.isEmpty()) { JsonArray result = new JsonArray(elements.size()); for (JsonElement element : elements) { result.add(element.deepCopy()); // depends on control dependency: [for], data = [element] } return...
public class class_name { public void setSqlRunConfigurations(java.util.Collection<SqlRunConfiguration> sqlRunConfigurations) { if (sqlRunConfigurations == null) { this.sqlRunConfigurations = null; return; } this.sqlRunConfigurations = new java.util.ArrayList<SqlRunConf...
public class class_name { public void setSqlRunConfigurations(java.util.Collection<SqlRunConfiguration> sqlRunConfigurations) { if (sqlRunConfigurations == null) { this.sqlRunConfigurations = null; // depends on control dependency: [if], data = [none] return; // depends on control depen...
public class class_name { public static boolean validateSign(Map<String,String> map,String sign_type,String key){ if(map.get("sign") == null){ return false; } return map.get("sign").equals(generateSign(map,sign_type,key)); } }
public class class_name { public static boolean validateSign(Map<String,String> map,String sign_type,String key){ if(map.get("sign") == null){ return false; // depends on control dependency: [if], data = [none] } return map.get("sign").equals(generateSign(map,sign_type,key)); } }
public class class_name { public static SparseTensor vector(int dimensionNumber, int dimensionSize, double[] values) { long[] keyNums = new long[dimensionSize]; double[] outcomeValues = new double[dimensionSize]; int numEntries = 0; for (int i = 0; i < dimensionSize; i++) { if (values[i] != 0.0)...
public class class_name { public static SparseTensor vector(int dimensionNumber, int dimensionSize, double[] values) { long[] keyNums = new long[dimensionSize]; double[] outcomeValues = new double[dimensionSize]; int numEntries = 0; for (int i = 0; i < dimensionSize; i++) { if (values[i] != 0.0)...
public class class_name { public synchronized EvaluatorContext getContext(final String contextId) { for (final EvaluatorContext context : this.contextStack) { if (context.getId().equals(contextId)) { return context; } } throw new RuntimeException("Unknown evaluator context " + contextId...
public class class_name { public synchronized EvaluatorContext getContext(final String contextId) { for (final EvaluatorContext context : this.contextStack) { if (context.getId().equals(contextId)) { return context; // depends on control dependency: [if], data = [none] } } throw new Run...
public class class_name { public Map<String, String> getSkeletons(Map<String, String> result) { if (result == null) { result = new LinkedHashMap<String, String>(); } for (DateTimeMatcher item : skeleton2pattern.keySet()) { PatternWithSkeletonFlag patternWithSkelFlag = sk...
public class class_name { public Map<String, String> getSkeletons(Map<String, String> result) { if (result == null) { result = new LinkedHashMap<String, String>(); // depends on control dependency: [if], data = [none] } for (DateTimeMatcher item : skeleton2pattern.keySet()) { ...