text stringlengths 14 100k | source stringclasses 1
value | repo stringclasses 810
values | language stringclasses 13
values |
|---|---|---|---|
<|fim_suffix|> if (pendingCount == 1) {
// special case (for speed)
Segment seg = pending.first();
return seg.contains(offset);
}
Segment low = new Segment(offset - maxPageSize, 0);
Segment high = new Segment(offset + 1, 0);
// search pending ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2012 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>cutorTerminatedListener)
*/
void addExecutorTerminatedListener(ExecutorTerminatedListener listener);
/**
* Removes the given {@code listener} from the list of listeners that are notified when the
* executor terminates.
*
* @param listener the listener for termination
... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>chedule with default delay, when non zero.
*
* @throws RejectedExecutionException {@inheritDoc}
* @throws NullPointerException {@inheritDoc}
* @see #setIncrementalDefaultDelay(boolean)
* @see #schedule(Runnable, long, TimeUnit)
* @see #setDefaultDelay(long, TimeUnit)
*/
... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>Queue the queue to use for holding tasks before they are executed. This queue will
* hold only the {@code Runnable} tasks submitted by the {@code execute} method.
* @param handler the handler to use when execution is blocked because the thread bounds and
* queue capacities are reach... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>
@Override
void close();
}
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2015 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2015 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this <|fim_suffix|>s to be reset, to ini... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2010 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.<|fim_suffix|>10 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licen... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> if (stat.getKey().startsWith(keyPrefix)) {
map.put(stat.getKey(), stat.getValue());
}
}
return map;
}
public void clearAll() {
stats.clear();
}
public void clear(String keyPrefix) {
Iterator<Entry<String, Long>> iter = stat... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> listener.lowwaterMarkSet(key, value);
} catch (Exception e) {
LOGGER.error(e.getMessage(), e);
}
}
}
public static void setLowwaterMark(String site, String key, long value) {
for (StatsListener listener : listeners) {
try {... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>ite);
public void cleared(String keyPrefix);
public void cleared(String site, String keyPrefix);
}
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2016 The ZAP Development Team
*
* ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>aximum value
// now content was added => scroll down
source.setValue(source.getMaximum());
}
previousMaximum = source.getMaximum();
}
}
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web a... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2015 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2013 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2017 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2017 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>xception if an exception occurred while running the {@code Runnable}
* in the EDT.
*/
public static void invokeAndWait(Runnable runnable)
throws InvocationTargetException, InterruptedException {
if (!View.isInitialised() || EventQueue.isDispatchThread()) {
... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>rmat
*/
public static String getTimeStampedMessage(String message, String format) {
StringBuilder timeStampedMessage =
new StringBuilder(
format.length() + TIME_STAMP_DELIMITER.length() + message.length() + 2);
timeStampedMessage.append(cur... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>InputStream ois = new ObjectInputStream(bais);
return (T) ois.readObject();
} catch (IOException | ClassNotFoundException e) {
throw new RuntimeException(e);
}
}
}
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2011 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2015 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2022 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> ((DefaultCaret) getCaret()).setUpdatePolicy(DefaultCaret.NEVER_UPDATE);
}
}
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2017 The ZAP Development Team
*
* Licensed under the Apac... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>nValue = minValue;
this.maxValue = maxValue;
if (!isValidValue(defaultValue)) {
this.defaultValue = minValue;
} else {
this.defaultValue = defaultValue;
}
setModel(new SpinnerNumberModel(this.defaultValue, minValue, maxValue, 1));
JFo... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRAN... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2018 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>AX_VALUE;
public ZapSizeNumberSpinner(int defaultSize) {
super(MIN_SIZE, 0, MAX_SIZE);
}
}
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2014 The ZAP Development Team
*
* L... | fim | zaproxy/zaproxy | java |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2017 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>pTextArea(Document doc, String text, int rows, int columns) {
super(doc, text, rows, columns);
undoManager = new ZapTextComponentUndoManager(this);
}
/**
* Discards all undoable edits.
*
* @see ZapTextComponentUndoManager#discardAllEdits()
*/
public void d... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>/ul>
*
* The policy can be changed with the method {@code setUndoManagerPolicy}.
*
* <p>The {@code ZapTextComponentUndoManager} listens to changes to the {@code Document} of the
* {@code JTextComponent} used with the {@code ZapTextComponentUndoManager}, so there is no need to
* do anything if the do... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>pTextField} can hold.
*
* @param limit the new limit
* @see ZapTextComponentUndoManager#setLimit(int)
*/
public void setEditsLimit(int limit) {
undoManager.setLimit(limit);
}
/**
* Sets the policy of the undoable edits of this {@code ZapTextField}.
*
... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2011 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2010 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2010 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>elated class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2010 The ZAP Development Team
*
* 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 t... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>og sessionDialog) {
this.sessionDialog = sessionDialog;
}
/**
* Gets the UI shared context. The UI shared context is a duplicate of the Context to which the
* panel corresponds and should be used to load any data in the UI and store any changes done in
* the UI until perman... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2012 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> and
* limitations under the License.
*/
package org.zaproxy.zap.view;
import java.util.List;
import javax.swing.table.AbstractTableModel;
/**
* @author yhawke (2014)
* @param <E> the type of the options
*/
public abstract class AbstractMultipleOptionsBaseTableModel<E> extends AbstractTableModel {
... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2014 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> if (size > 0) {
getElements().forEach(e -> e.setEnabled(enabled));
fireTableColumnUpdated(0, size - 1, 0);
}
}
public void fireTableColumnUpdated(int firstRow, int lastRow, int column) {
fireTableChanged(
new TableModelEvent(this, first... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>S == e.getColumn()
|| TableModelEvent.INSERT == e.getType()
|| TableModelEvent.DELETE == e.getType()) {
boolean enabled = isEnabled() && getModel().getRowCount() > 0;
... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2015 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>, "Down" and "Bottom").
*/
@Override
public void setComponentEnabled(boolean enabled) {
super.setComponentEnabled(enabled);
boolean enable = enabled && getTable().getSelectionModel().getMinSelectionIndex() >= 0;
if (enable) {
updateMoveButtons();
}... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2014 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>omponent()
*/
private Component maximisedComponent;
/**
* Constructs a {@code ComponentMaximiser} with the given container.
*
* @param container the container that will be used to maximise components
* @throws IllegalArgumentException if the given {@code container} is {@c... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>ions and given
* component maximiser.
*
* <p>The view options to check (and update) if it's required a confirmation from the user to
* maximise the component.
*
* @param viewOptions the view options
* @param componentMaximiser the object responsible for maximising the co... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>playUtils.getScaledDimension(400, 300));
this.addTextField(NAME_FIELD, null);
this.addNodeSelectField(TOP_NODE, null, false, false);
this.addMultilineField(DESC_FIELD, "");
this.addCheckBoxField(IN_SCOPE_FIELD, true);
}
@Override
public void siteNodeSelected(St... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>ve to be unique, so precede with the context index
return contextId + ": " + PANEL_NAME;
}
/**
* Constructs a {@code ContextIncludePanel} for the given context.
*
* @param context the target context, must not be {@code null}.
*/
public ContextExcludePanel(Context c... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>ext.export.error.exists");
} else if (!f.getParentFile().canWrite()) {
return Constant.messages.getString("context.export.error.noaccess");
}
return null;
}
/**
* Sets the selected context.
*
* <p>The call to this method has no effect if the cont... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2012 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>Dialog());
this.setLayout(new CardLayout());
this.setName(getPanelName(getContextId()));
this.add(getPanelSession(), getPanelSession().getName());
}
/**
* This method initializes panelSession
*
* @return javax.swing.JPanel
*/
private JPanel getPane... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2012 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>nable) would be able to change here...
return false;
}
@Override
public void setValueAt(Object value, int row, int col) {
if (col == 2) {
this.values.get(row)[col] = value;
fireTableCellUpdated(row, col);
}
}
@Override
public String... | fim | zaproxy/zaproxy | java |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2012 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2014 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2012 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>ent =
contextsTree.getScrollableUnitIncrement(
visibleRect, orientation, direction);
if (unitIncrement != 0) {
return unitIncrement;
}
}
return sitesTree.getScrollableUnitInc... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>el,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus) {
super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus);
SiteNode node = null;
Target target = null;
if (value instanceof SiteNode)... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2017 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2013 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2014 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2011 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2011 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> *
* @param typeInfo the type info to add, must not be {@code null}.
* @throws NullPointerException if the given type info is {@code null}.
* @since 2.12.0
*/
public static void addType(HrefTypeInfo typeInfo) {
Objects.requireNonNull(typeInfo);
int type = typeIn... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>
componentDefaultViews.remove(viewFactoryName);
if (componentDefaultViews.isEmpty()) {
this.defaultViews.remove(componentName);
}
}
public void removeDefaultViewSelectors(
String componentName, String defaultViewSelector... | fim | zaproxy/zaproxy | java |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2014 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>Constraints();
gbc.gridx = x;
gbc.gridy = y;
if (insets != null) {
gbc.insets = insets;
}
gbc.anchor = anchor;
gbc.fill = fill;
gbc.weightx = weightx;
gbc.weighty = weighty;
gbc.gridwidth = width;
gbc.gridheight = ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>ridBagConstraints();
java.awt.GridBagConstraints gridBagConstraints5 = new GridBagConstraints();
jPanel = new JPanel();
jPanel.setLayout(new GridBagLayout());
gridBagConstraints5.gridx = 0;
gridBagConstraints5.gridy = 0;
gridBagConst... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2010 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>JXTreeTable) {
if (model instanceof TreeTableModel) {
((JXTreeTable) table).setTreeTableModel((TreeTableModel) model);
}
} else {
this.table.setModel(model);
}
JPanel panel = new JPanel(new BorderLayout());
panel.add(get... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> checkAndEnableConfirmButton();
}
private void checkAndEnableConfirmButton() {
setConfirmButtonEnabled(
!getRege... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2014 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2010 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> public Map<String, Object> getAttributes() {
return Map.of();
}
}
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2024 The ZAP Development Team
*
* Licensed under the Apache L... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2013 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> Constant.messages.getString("database.newsession.prompt.note")),
LayoutHelper.getGBC(0, 8, 2, 1.0D, new Insets(4, 4, 4, 4)));
JPanel buttonPanel = new JPanel();
buttonPanel.setLayout(new GridBagLayout());
JButton helpButton = new JButton(... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>only values greater than zero and has the minimum always set
* to zero.
*/
private static class PositiveValuesBoundedRangeModel extends DefaultBoundedRangeModel {
private static final long serialVersionUID = 1L;
/**
* Constructs a new {@code PositiveValuesBoundedRa... | fim | zaproxy/zaproxy | java |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2010 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2010 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> controller.pauseScan(scanner.getScanId());
} else {
controller.resumeScan(scanner.getScanId());
}
}
}
});
}... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>w.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governin... | fim | zaproxy/zaproxy | java |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2011 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>.gridheight = 1;
gridBagConstraints1.insets = new java.awt.Insets(10, 0, 5, 0);
gridBagConstraints1.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints1.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints1.weightx = 0.0D;
... | fim | zaproxy/zaproxy | java |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2011 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | fim | zaproxy/zaproxy | java |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2015 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2011 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2010 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
<|fim_suffix|> interface SiteMapListener {
void nodeSe... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2012 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>ope;
}
public boolean matches(SiteNode node) {
if (node.isRoot()) {
return true;
}
if (inScope && !node.isIncludedInScope()) {
return false;
}
if (historyFilter != null && node.getHistoryReference() != null) {
return hi... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2011 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>1, 0, 1, 0D, 0D, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2)));
this.tabPanels
.get(tabIndex)
.add(
tablePanel,
LayoutHelper.getGBC(
1,
... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2016 The ZAP Development Team
*
* Licensed under the Apache L<|fim_suffix|>
if (o == null) {
return 1;
}
return status.co... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2015 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2013 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>pose();
}
public int getLastIndex() {
return lastIndex;
}
public AbstractPanel getPanel() {
return panel;
}
public TabbedPanel2 getDetachedTabParent() {
return detachedTabParent;
}
public void setDetach... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2014 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Z<|fim_suffix|>ry<Tech, DefaultMutableTreeNode> node = iter.next();
TreePath tp = this.getPath(node.getValue());
Tech tech = node.getKey();
if (Tech.getTopLevel().contains(tech)) {
techTree.check(tp, containsAnyOfTopLevelTech(includedTech, tech));
... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2015 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2014 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | fim | zaproxy/zaproxy | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.