code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public static DiscreteVariable sequence(String name, int size) {
List<Integer> values = null;
if (sequenceCache.containsKey(size)) {
values = sequenceCache.get(size);
} else {
values = Lists.newArrayList();
for (int i = 0; i < size; i++) {
values.add(i);
... | public class class_name {
public static DiscreteVariable sequence(String name, int size) {
List<Integer> values = null;
if (sequenceCache.containsKey(size)) {
values = sequenceCache.get(size); // depends on control dependency: [if], data = [none]
} else {
values = Lists.newArrayList(); // depen... |
public class class_name {
int insert(long start, long end, int n) {
splitAt(start);
splitAt(end);
int peak = 0;
for (Map.Entry<Long, int[]> e : data.tailMap(start).headMap(end).entrySet()) {
peak = max(peak, e.getValue()[0] += n);
}
return peak;
} } | public class class_name {
int insert(long start, long end, int n) {
splitAt(start);
splitAt(end);
int peak = 0;
for (Map.Entry<Long, int[]> e : data.tailMap(start).headMap(end).entrySet()) {
peak = max(peak, e.getValue()[0] += n); // depends on control dependency: [for], da... |
public class class_name {
public Boolean send(String message) {
TextWebSocketFrame frame = new TextWebSocketFrame(message);
if (getCh() != null) {
getCh().writeAndFlush(frame);
return true;
}
return false;
} } | public class class_name {
public Boolean send(String message) {
TextWebSocketFrame frame = new TextWebSocketFrame(message);
if (getCh() != null) {
getCh().writeAndFlush(frame); // depends on control dependency: [if], data = [none]
return true; // depends on control dependency: [... |
public class class_name {
public ServiceReference<V> putReferenceIfAbsent(K key, ServiceReference<V> reference) {
// If the key is null we can't do anything
if (key == null)
return null;
if (reference == null) {
// If the reference is null we can't add it to the map but ... | public class class_name {
public ServiceReference<V> putReferenceIfAbsent(K key, ServiceReference<V> reference) {
// If the key is null we can't do anything
if (key == null)
return null;
if (reference == null) {
// If the reference is null we can't add it to the map but ... |
public class class_name {
public final void setItsDate(final Date pItsDate) {
if (pItsDate == null) {
this.itsDate = null;
} else {
this.itsDate = new Date(pItsDate.getTime());
}
} } | public class class_name {
public final void setItsDate(final Date pItsDate) {
if (pItsDate == null) {
this.itsDate = null; // depends on control dependency: [if], data = [none]
} else {
this.itsDate = new Date(pItsDate.getTime()); // depends on control dependency: [if], data = [(pItsDate]
}
}... |
public class class_name {
protected static String getPartialEndedWord(String str, int pos){
assert(pos < str.length() && pos >= 0);
if( posIsAtWord(str, pos) ){
int prevSpace = findLastNonLetterOrDigit(str, pos);
return str.substring(prevSpace+1, pos+1);
}
return null;
} } | public class class_name {
protected static String getPartialEndedWord(String str, int pos){
assert(pos < str.length() && pos >= 0);
if( posIsAtWord(str, pos) ){
int prevSpace = findLastNonLetterOrDigit(str, pos);
return str.substring(prevSpace+1, pos+1); // depends on control dependency: [if], data = [none... |
public class class_name {
public static void scheduleAsync(@NonNull final JobRequest.Builder baseBuilder, final long startMs, final long endMs,
@NonNull final JobRequest.JobScheduledCallback callback) {
JobPreconditions.checkNotNull(callback);
JobConfig.getExecutorS... | public class class_name {
public static void scheduleAsync(@NonNull final JobRequest.Builder baseBuilder, final long startMs, final long endMs,
@NonNull final JobRequest.JobScheduledCallback callback) {
JobPreconditions.checkNotNull(callback);
JobConfig.getExecutorS... |
public class class_name {
private <T> BindingInject<T> findBean(Key<T> key)
{
for (InjectProvider provider : _providerList) {
BindingInject<T> bean = (BindingInject) provider.lookup(key.rawClass());
if (bean != null) {
return bean;
}
}
return null;
} } | public class class_name {
private <T> BindingInject<T> findBean(Key<T> key)
{
for (InjectProvider provider : _providerList) {
BindingInject<T> bean = (BindingInject) provider.lookup(key.rawClass());
if (bean != null) {
return bean; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public static final KeyPressHandler getUpperAsciiKeyPressHandler() { // NOPMD it's thread save!
if (HandlerFactory.upperAsciiKeyPressHandler == null) {
synchronized (UpperAsciiKeyPressHandler.class) {
if (HandlerFactory.upperAsciiKeyPressHandler == null) {
HandlerF... | public class class_name {
public static final KeyPressHandler getUpperAsciiKeyPressHandler() { // NOPMD it's thread save!
if (HandlerFactory.upperAsciiKeyPressHandler == null) {
synchronized (UpperAsciiKeyPressHandler.class) { // depends on control dependency: [if], data = [none]
if (HandlerFactory.u... |
public class class_name {
public SPIStatistic getStatistic(int id) {
for (int i = 0; i < _stats.length; i++) {
if (_stats[i] != null && _stats[i].getId() == id) {
return _stats[i];
/*
* ~~~~~~~~~~~~~~ commented ~~~~~~~~~~~~~~
* // d... | public class class_name {
public SPIStatistic getStatistic(int id) {
for (int i = 0; i < _stats.length; i++) {
if (_stats[i] != null && _stats[i].getId() == id) {
return _stats[i]; // depends on control dependency: [if], data = [none]
/*
* ~~~~~~~~~... |
public class class_name {
@Override
public View findViewByPosition(int position) {
final int childCount = getChildCount();
if (childCount == 0) {
return null;
}
final int firstChild = getPosition(getChildAt(0));
final int viewPosition = position - firstChild;
... | public class class_name {
@Override
public View findViewByPosition(int position) {
final int childCount = getChildCount();
if (childCount == 0) {
return null; // depends on control dependency: [if], data = [none]
}
final int firstChild = getPosition(getChildAt(0));
... |
public class class_name {
@Pure
public SortedSet<Integer> toSortedSet() {
final SortedSet<Integer> theset = new TreeSet<>();
if (this.values != null) {
for (int idxStart = 0; idxStart < this.values.length - 1; idxStart += 2) {
for (int n = this.values[idxStart]; n <= this.values[idxStart + 1]; ++n) {
... | public class class_name {
@Pure
public SortedSet<Integer> toSortedSet() {
final SortedSet<Integer> theset = new TreeSet<>();
if (this.values != null) {
for (int idxStart = 0; idxStart < this.values.length - 1; idxStart += 2) {
for (int n = this.values[idxStart]; n <= this.values[idxStart + 1]; ++n) {
... |
public class class_name {
public void setTerminationPolicies(java.util.Collection<String> terminationPolicies) {
if (terminationPolicies == null) {
this.terminationPolicies = null;
return;
}
this.terminationPolicies = new com.amazonaws.internal.SdkInternalList<String>(t... | public class class_name {
public void setTerminationPolicies(java.util.Collection<String> terminationPolicies) {
if (terminationPolicies == null) {
this.terminationPolicies = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data... |
public class class_name {
public DelayStat findRealtimeDelayStat(Long pipelineId) {
Assert.assertNotNull(pipelineId);
DelayStatDO delayStatDO = delayStatDao.findRealtimeDelayStat(pipelineId);
DelayStat delayStat = new DelayStat();
if (delayStatDO != null) {
delayStat = delay... | public class class_name {
public DelayStat findRealtimeDelayStat(Long pipelineId) {
Assert.assertNotNull(pipelineId);
DelayStatDO delayStatDO = delayStatDao.findRealtimeDelayStat(pipelineId);
DelayStat delayStat = new DelayStat();
if (delayStatDO != null) {
delayStat = delay... |
public class class_name {
private Page findIndexPage(final SecurityContext securityContext, List<Page> pages, final EditMode edit) throws FrameworkException {
final PropertyKey<Integer> positionKey = StructrApp.key(Page.class, "position");
if (pages == null) {
pages = StructrApp.getInstance(securityContext).... | public class class_name {
private Page findIndexPage(final SecurityContext securityContext, List<Page> pages, final EditMode edit) throws FrameworkException {
final PropertyKey<Integer> positionKey = StructrApp.key(Page.class, "position");
if (pages == null) {
pages = StructrApp.getInstance(securityContext).... |
public class class_name {
@SuppressWarnings("WeakerAccess")
protected final void injectVariables(Map<String, String> variables, By element) {
if (element instanceof VariablesAware) {
((VariablesAware) element).setVariables(variables);
}
} } | public class class_name {
@SuppressWarnings("WeakerAccess")
protected final void injectVariables(Map<String, String> variables, By element) {
if (element instanceof VariablesAware) {
((VariablesAware) element).setVariables(variables); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void run() {
try {
String archiveName = "testApp-" + (++appCount) + ".war";
try {
WebArchive app = ShrinkWrap.create(WebArchive.class, archiveName);
for (Class<?> clazz : classes) {
app = app.addClass(c... | public class class_name {
public void run() {
try {
String archiveName = "testApp-" + (++appCount) + ".war";
try {
WebArchive app = ShrinkWrap.create(WebArchive.class, archiveName);
for (Class<?> clazz : classes) {
app = app.addClass(c... |
public class class_name {
protected String createDefaultLogLine(String msg, int level, Date date, StackTraceElement trace) {
String[] levels = {"NON", "ERR", "WRN", "INF", "DBG", "DB2", "INT"};
StringBuffer ret = new StringBuffer(128);
ret.append("<").append(levels[level]).append("> ");
... | public class class_name {
protected String createDefaultLogLine(String msg, int level, Date date, StackTraceElement trace) {
String[] levels = {"NON", "ERR", "WRN", "INF", "DBG", "DB2", "INT"};
StringBuffer ret = new StringBuffer(128);
ret.append("<").append(levels[level]).append("> ");
... |
public class class_name {
protected ICompilableTypeInternal isMemberOnEnclosingType(IReducedSymbol symbol)
{
if( !_cc().isNonStaticInnerClass() )
{
return null;
}
// If the symbol is on this class, or any ancestors, it's not enclosed
//noinspection SuspiciousMethodCalls
IType symbolCla... | public class class_name {
protected ICompilableTypeInternal isMemberOnEnclosingType(IReducedSymbol symbol)
{
if( !_cc().isNonStaticInnerClass() )
{
return null; // depends on control dependency: [if], data = [none]
}
// If the symbol is on this class, or any ancestors, it's not enclosed
//... |
public class class_name {
private long getJitterFreePTS(long bufferPts, long bufferSamplesNum) {
long correctedPts = 0;
long bufferDuration = (1000000 * bufferSamplesNum) / (mEncoderCore.mSampleRate);
bufferPts -= bufferDuration; // accounts for the delay of acquiring the audio buffer
i... | public class class_name {
private long getJitterFreePTS(long bufferPts, long bufferSamplesNum) {
long correctedPts = 0;
long bufferDuration = (1000000 * bufferSamplesNum) / (mEncoderCore.mSampleRate);
bufferPts -= bufferDuration; // accounts for the delay of acquiring the audio buffer
i... |
public class class_name {
public List<NodeData> getChildNodesByPage(final NodeData parent, final int fromOrderNum)
{
// get list of children uuids
final Map<Integer, Set<String>> pages =
(Map<Integer, Set<String>>)cache.get(new CacheNodesByPageId(getOwnerId(), parent.getIdentifier()));
... | public class class_name {
public List<NodeData> getChildNodesByPage(final NodeData parent, final int fromOrderNum)
{
// get list of children uuids
final Map<Integer, Set<String>> pages =
(Map<Integer, Set<String>>)cache.get(new CacheNodesByPageId(getOwnerId(), parent.getIdentifier()));
... |
public class class_name {
public void setActiveScan(ActiveScan scan) {
this.scan = scan;
if (scan == null) {
return;
}
getHostSelect().removeAll();
for (HostProcess hp : scan.getHostProcesses()) {
getHostSelect().addItem(hp.getHostAndPort());
}
... | public class class_name {
public void setActiveScan(ActiveScan scan) {
this.scan = scan;
if (scan == null) {
return; // depends on control dependency: [if], data = [none]
}
getHostSelect().removeAll();
for (HostProcess hp : scan.getHostProcesses()) {
getHos... |
public class class_name {
public void onNotify(RequestEvent event, ActivityContextInterface aci) {
if (tracer.isFineEnabled())
tracer.fine("Received Notify, on activity: " + aci.getActivity() + "\nRequest:\n" + event.getRequest());
Request request = event.getRequest();
SubscriptionData subscriptionData = g... | public class class_name {
public void onNotify(RequestEvent event, ActivityContextInterface aci) {
if (tracer.isFineEnabled())
tracer.fine("Received Notify, on activity: " + aci.getActivity() + "\nRequest:\n" + event.getRequest());
Request request = event.getRequest();
SubscriptionData subscriptionData = g... |
public class class_name {
public List<ESigItem> findItems(ESigFilter filter) {
List<ESigItem> list = new ArrayList<ESigItem>();
if (filter == null) {
list.addAll(items);
} else {
for (ESigItem item : items) {
if (filter.matches(item)) {
... | public class class_name {
public List<ESigItem> findItems(ESigFilter filter) {
List<ESigItem> list = new ArrayList<ESigItem>();
if (filter == null) {
list.addAll(items); // depends on control dependency: [if], data = [none]
} else {
for (ESigItem item : items) {... |
public class class_name {
protected Boolean _hasSideEffects(XVariableDeclaration expression, ISideEffectContext context) {
if (hasSideEffects(expression.getRight(), context)) {
return true;
}
context.declareVariable(expression.getIdentifier(), expression.getRight());
return false;
} } | public class class_name {
protected Boolean _hasSideEffects(XVariableDeclaration expression, ISideEffectContext context) {
if (hasSideEffects(expression.getRight(), context)) {
return true; // depends on control dependency: [if], data = [none]
}
context.declareVariable(expression.getIdentifier(), expression.g... |
public class class_name {
@Override
public CsvFile readData(String filePath) throws IOException, InvalidFileException {
Path path = Paths.get(filePath);
List<Object[]> tokensList = new ArrayList<Object[]>();
try (BufferedReader reader = Files.newBufferedReader(path, charset);) {
String line =... | public class class_name {
@Override
public CsvFile readData(String filePath) throws IOException, InvalidFileException {
Path path = Paths.get(filePath);
List<Object[]> tokensList = new ArrayList<Object[]>();
try (BufferedReader reader = Files.newBufferedReader(path, charset);) {
String line =... |
public class class_name {
public void setTunnelConnections( Iterable<String> pathAndSpecList ) throws JSchException {
Map<String, Set<Tunnel>> tunnelMap = new HashMap<String, Set<Tunnel>>();
for ( String pathAndSpecString : pathAndSpecList ) {
String[] pathAndSpec = pathAndSpecString.trim()... | public class class_name {
public void setTunnelConnections( Iterable<String> pathAndSpecList ) throws JSchException {
Map<String, Set<Tunnel>> tunnelMap = new HashMap<String, Set<Tunnel>>();
for ( String pathAndSpecString : pathAndSpecList ) {
String[] pathAndSpec = pathAndSpecString.trim()... |
public class class_name {
public void actionChangeSecureExport() throws JspException {
// save initialized instance of this class in request attribute for included sub-elements
getJsp().getRequest().setAttribute(SESSION_WORKPLACE_CLASS, this);
String filename = getParamResource();
tr... | public class class_name {
public void actionChangeSecureExport() throws JspException {
// save initialized instance of this class in request attribute for included sub-elements
getJsp().getRequest().setAttribute(SESSION_WORKPLACE_CLASS, this);
String filename = getParamResource();
tr... |
public class class_name {
protected void processGeneratedBigIntegerKey(Model<?> model, String pKey, Object v) {
if (v instanceof BigInteger) {
model.set(pKey, (BigInteger)v);
} else if (v instanceof Number) {
Number n = (Number)v;
model.set(pKey, BigInteger.valueOf(n.longValue()));
} else {
mo... | public class class_name {
protected void processGeneratedBigIntegerKey(Model<?> model, String pKey, Object v) {
if (v instanceof BigInteger) {
model.set(pKey, (BigInteger)v);
// depends on control dependency: [if], data = [none]
} else if (v instanceof Number) {
Number n = (Number)v;
model.set(pKey, ... |
public class class_name {
private boolean isDomainAlwaysInScope(String domain) {
for (DomainAlwaysInScopeMatcher domainInScope : domainsAlwaysInScope) {
if (domainInScope.matches(domain)) {
return true;
}
}
return false;
} } | public class class_name {
private boolean isDomainAlwaysInScope(String domain) {
for (DomainAlwaysInScopeMatcher domainInScope : domainsAlwaysInScope) {
if (domainInScope.matches(domain)) {
return true; // depends on control dependency: [if], data = [none]
}
}
return false;
} } |
public class class_name {
@Deprecated
@ObjectiveCName("formatDialogText:")
public String formatDialogText(Dialog dialog) {
// Detecting if dialog is empty
if (dialog.getSenderId() == 0) {
return "";
} else {
String contentText = formatContentText(dialog.getSender... | public class class_name {
@Deprecated
@ObjectiveCName("formatDialogText:")
public String formatDialogText(Dialog dialog) {
// Detecting if dialog is empty
if (dialog.getSenderId() == 0) {
return ""; // depends on control dependency: [if], data = [none]
} else {
S... |
public class class_name {
public ComputeNodeListNextOptions withOcpDate(DateTime ocpDate) {
if (ocpDate == null) {
this.ocpDate = null;
} else {
this.ocpDate = new DateTimeRfc1123(ocpDate);
}
return this;
} } | public class class_name {
public ComputeNodeListNextOptions withOcpDate(DateTime ocpDate) {
if (ocpDate == null) {
this.ocpDate = null; // depends on control dependency: [if], data = [none]
} else {
this.ocpDate = new DateTimeRfc1123(ocpDate); // depends on control dependency: [... |
public class class_name {
private void readTasks(Project project)
{
Project.Tasks tasks = project.getTasks();
if (tasks != null)
{
int tasksWithoutIDCount = 0;
for (Project.Tasks.Task task : tasks.getTask())
{
Task mpxjTask = readTask(task);
if (... | public class class_name {
private void readTasks(Project project)
{
Project.Tasks tasks = project.getTasks();
if (tasks != null)
{
int tasksWithoutIDCount = 0;
for (Project.Tasks.Task task : tasks.getTask())
{
Task mpxjTask = readTask(task);
if (... |
public class class_name {
private static int decode4to3(byte[] src,
int len,
byte[] dest,
int offset) {
// Example: Dk or Dk==
if (len == 2 || (src[2] == EQUALS_SIGN && src[3] == EQUALS_SIGN)) {
... | public class class_name {
private static int decode4to3(byte[] src,
int len,
byte[] dest,
int offset) {
// Example: Dk or Dk==
if (len == 2 || (src[2] == EQUALS_SIGN && src[3] == EQUALS_SIGN)) {
... |
public class class_name {
public ListDeploymentInstancesResult withInstancesList(String... instancesList) {
if (this.instancesList == null) {
setInstancesList(new com.amazonaws.internal.SdkInternalList<String>(instancesList.length));
}
for (String ele : instancesList) {
... | public class class_name {
public ListDeploymentInstancesResult withInstancesList(String... instancesList) {
if (this.instancesList == null) {
setInstancesList(new com.amazonaws.internal.SdkInternalList<String>(instancesList.length)); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
@RequestMapping(params = {"query", "queryId"})
public ModelAndView showSearchResults(
PortletRequest request,
@RequestParam(value = "query") String query,
@RequestParam(value = "queryId") String queryId) {
final Map<String, Object> model = new ... | public class class_name {
@RequestMapping(params = {"query", "queryId"})
public ModelAndView showSearchResults(
PortletRequest request,
@RequestParam(value = "query") String query,
@RequestParam(value = "queryId") String queryId) {
final Map<String, Object> model = new ... |
public class class_name {
public UserDetail withUserPolicyList(PolicyDetail... userPolicyList) {
if (this.userPolicyList == null) {
setUserPolicyList(new com.amazonaws.internal.SdkInternalList<PolicyDetail>(userPolicyList.length));
}
for (PolicyDetail ele : userPolicyList) {
... | public class class_name {
public UserDetail withUserPolicyList(PolicyDetail... userPolicyList) {
if (this.userPolicyList == null) {
setUserPolicyList(new com.amazonaws.internal.SdkInternalList<PolicyDetail>(userPolicyList.length)); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
private Budget getBudget() {
Budget budget = Budget.Factory.newInstance();
Map<Integer, String> budgetMap = new HashMap<>();
for (AnswerContract questionnaireAnswer : getPropDevQuestionAnswerService().getQuestionnaireAnswers(pdDoc.getDevelopmentProposal().getProposalNumber(), getNamesp... | public class class_name {
private Budget getBudget() {
Budget budget = Budget.Factory.newInstance();
Map<Integer, String> budgetMap = new HashMap<>();
for (AnswerContract questionnaireAnswer : getPropDevQuestionAnswerService().getQuestionnaireAnswers(pdDoc.getDevelopmentProposal().getProposalNumber(), getNamesp... |
public class class_name {
public WebSocketStepPublisher publish() {
if (connected.getAndSet(true) == false) {
try {
log.info("Connecting");
boolean connected = chorusWebSocketClient.connectBlocking();
if ( ! connected) {
throw ne... | public class class_name {
public WebSocketStepPublisher publish() {
if (connected.getAndSet(true) == false) {
try {
log.info("Connecting");
boolean connected = chorusWebSocketClient.connectBlocking();
if ( ! connected) {
throw ne... |
public class class_name {
boolean isJenkinsServerSecuredWithCSRF(String url) throws BuildDriverException {
try {
JenkinsBuildDriverModuleConfig config = configuration
.getModuleConfig(new PncConfigProvider<JenkinsBuildDriverModuleConfig>(JenkinsBuildDriverModuleConfig.class));
... | public class class_name {
boolean isJenkinsServerSecuredWithCSRF(String url) throws BuildDriverException {
try {
JenkinsBuildDriverModuleConfig config = configuration
.getModuleConfig(new PncConfigProvider<JenkinsBuildDriverModuleConfig>(JenkinsBuildDriverModuleConfig.class));
... |
public class class_name {
public void addMouseListenerToHeaderInTable(JTable table)
{
table.setColumnSelectionAllowed(false);
MouseListener mouseListener = new MouseAdapter()
{
public void mouseClicked(MouseEvent e)
{
if (e.getSource() instanceof JT... | public class class_name {
public void addMouseListenerToHeaderInTable(JTable table)
{
table.setColumnSelectionAllowed(false);
MouseListener mouseListener = new MouseAdapter()
{
public void mouseClicked(MouseEvent e)
{
if (e.getSource() instanceof JT... |
public class class_name {
@Override
public void updateDeployments(Iterable<Deployment> deployments) {
Deployment oldDeployment = deploymentColumn.getSelectedItem();
Deployment newDeployment = null;
if (oldDeployment != null) {
for (Deployment d : deployments) {
... | public class class_name {
@Override
public void updateDeployments(Iterable<Deployment> deployments) {
Deployment oldDeployment = deploymentColumn.getSelectedItem();
Deployment newDeployment = null;
if (oldDeployment != null) {
for (Deployment d : deployments) {
... |
public class class_name {
public void arc(float x1, float y1, float x2, float y2, float startAng, float extent) {
ArrayList ar = bezierArc(x1, y1, x2, y2, startAng, extent);
if (ar.isEmpty())
return;
float pt[] = (float [])ar.get(0);
moveTo(pt[0], pt[1]);
for (int k ... | public class class_name {
public void arc(float x1, float y1, float x2, float y2, float startAng, float extent) {
ArrayList ar = bezierArc(x1, y1, x2, y2, startAng, extent);
if (ar.isEmpty())
return;
float pt[] = (float [])ar.get(0);
moveTo(pt[0], pt[1]);
for (int k ... |
public class class_name {
public void marshall(CreateGeoMatchSetRequest createGeoMatchSetRequest, ProtocolMarshaller protocolMarshaller) {
if (createGeoMatchSetRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocol... | public class class_name {
public void marshall(CreateGeoMatchSetRequest createGeoMatchSetRequest, ProtocolMarshaller protocolMarshaller) {
if (createGeoMatchSetRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocol... |
public class class_name {
public final void setItemId(final Long pItemId) {
this.itemId = pItemId;
if (this.itsId == null) {
this.itsId = new IdI18nSpecificInList();
}
this.itsId.setItemId(this.itemId);
} } | public class class_name {
public final void setItemId(final Long pItemId) {
this.itemId = pItemId;
if (this.itsId == null) {
this.itsId = new IdI18nSpecificInList(); // depends on control dependency: [if], data = [none]
}
this.itsId.setItemId(this.itemId);
} } |
public class class_name {
public boolean getBoolean(String name, boolean defaultValue) {
String valueString = getTrimmed(name);
if (null == valueString || "".equals(valueString)) {
return defaultValue;
}
valueString = valueString.toLowerCase();
if ("true".equals(valueString)) {
return... | public class class_name {
public boolean getBoolean(String name, boolean defaultValue) {
String valueString = getTrimmed(name);
if (null == valueString || "".equals(valueString)) {
return defaultValue; // depends on control dependency: [if], data = [none]
}
valueString = valueString.toLowerCase(... |
public class class_name {
public java.util.List<String> getEcsClusterArns() {
if (ecsClusterArns == null) {
ecsClusterArns = new com.amazonaws.internal.SdkInternalList<String>();
}
return ecsClusterArns;
} } | public class class_name {
public java.util.List<String> getEcsClusterArns() {
if (ecsClusterArns == null) {
ecsClusterArns = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none]
}
return ecsClusterArns;
} } |
public class class_name {
public Scheduler getScheduler() {
if (scheduler == null) {
scheduler = new Scheduler();
scheduler.setDaemon(true);
scheduler.start();
}
return scheduler;
} } | public class class_name {
public Scheduler getScheduler() {
if (scheduler == null) {
scheduler = new Scheduler(); // depends on control dependency: [if], data = [none]
scheduler.setDaemon(true); // depends on control dependency: [if], data = [none]
scheduler.start(); // depends on control depende... |
public class class_name {
@SuppressWarnings({"SameParameterValue", "WeakerAccess"})
public static void createMetadataCache(final SlotReference slot, final int playlistId,
final File cache, final MetadataCacheCreationListener listener)
throws Exception {
Conne... | public class class_name {
@SuppressWarnings({"SameParameterValue", "WeakerAccess"})
public static void createMetadataCache(final SlotReference slot, final int playlistId,
final File cache, final MetadataCacheCreationListener listener)
throws Exception {
Conne... |
public class class_name {
public java.lang.String getResult() {
java.lang.Object ref = result_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStr... | public class class_name {
public java.lang.String getResult() {
java.lang.Object ref = result_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref; // depends on control dependency: [if], data = [none]
} else {
com.google.protobuf.ByteString bs =
(com.google.protobu... |
public class class_name {
public void setBackgroundColor(final Color COLOR) {
if (null == backgroundColor) {
_backgroundColor = COLOR;
fireTileEvent(REDRAW_EVENT);
} else {
backgroundColor.set(COLOR);
}
} } | public class class_name {
public void setBackgroundColor(final Color COLOR) {
if (null == backgroundColor) {
_backgroundColor = COLOR; // depends on control dependency: [if], data = [none]
fireTileEvent(REDRAW_EVENT); // depends on control dependency: [if], data = [none]
} else ... |
public class class_name {
public void insertSequence(final List<Group> groups) {
if (groups != null && !groups.isEmpty() && !sequenceMap.containsValue(groups)) {
sequenceMap.put(groups.get(0).getSequence(), groups);
}
} } | public class class_name {
public void insertSequence(final List<Group> groups) {
if (groups != null && !groups.isEmpty() && !sequenceMap.containsValue(groups)) {
sequenceMap.put(groups.get(0).getSequence(), groups); // depends on control dependency: [if], data = [(groups]
}
} } |
public class class_name {
@SuppressWarnings("unchecked")
private Repository<Entity> decorateRepository(
Repository<Entity> repository, DecoratorConfiguration configuration) {
Map<String, Map<String, Object>> parameterMap = getParameterMap(configuration);
List<DecoratorParameters> decoratorParameters =
... | public class class_name {
@SuppressWarnings("unchecked")
private Repository<Entity> decorateRepository(
Repository<Entity> repository, DecoratorConfiguration configuration) {
Map<String, Map<String, Object>> parameterMap = getParameterMap(configuration);
List<DecoratorParameters> decoratorParameters =
... |
public class class_name {
private static int partition(Object[] a, int start, int end, Comparator<Object> cmp) {
final int p = median(a, start, end, cmp);
final Object pivot = a[p];
a[p] = a[start];
a[start] = pivot;
int i = start;
int j = end + 1;
while (true)... | public class class_name {
private static int partition(Object[] a, int start, int end, Comparator<Object> cmp) {
final int p = median(a, start, end, cmp);
final Object pivot = a[p];
a[p] = a[start];
a[start] = pivot;
int i = start;
int j = end + 1;
while (true)... |
public class class_name {
private boolean refreshChildPadding(int i, ChildDrawable r) {
if (r.mDrawable != null) {
final Rect rect = mTmpRect;
r.mDrawable.getPadding(rect);
if (rect.left != mPaddingL[i] || rect.top != mPaddingT[i] ||
rect.right != mPaddin... | public class class_name {
private boolean refreshChildPadding(int i, ChildDrawable r) {
if (r.mDrawable != null) {
final Rect rect = mTmpRect;
r.mDrawable.getPadding(rect); // depends on control dependency: [if], data = [none]
if (rect.left != mPaddingL[i] || rect.top != mPa... |
public class class_name {
public static boolean isBetweenDate(Date startDate, Date endDate, Date specificDate) {
long startTm = getDateCeil(startDate).getTimeInMillis();
long endTm = getDateCeil(endDate).getTimeInMillis();
long specificTm = getDateCeil(specificDate).getTimeInMillis();
... | public class class_name {
public static boolean isBetweenDate(Date startDate, Date endDate, Date specificDate) {
long startTm = getDateCeil(startDate).getTimeInMillis();
long endTm = getDateCeil(endDate).getTimeInMillis();
long specificTm = getDateCeil(specificDate).getTimeInMillis();
... |
public class class_name {
private double[] parseVector(String s) {
String[] entries = WHITESPACE_PATTERN.split(s);
double[] d = new double[entries.length];
for(int i = 0; i < entries.length; i++) {
try {
d[i] = ParseUtil.parseDouble(entries[i]);
}
catch(NumberFormatException e) {
... | public class class_name {
private double[] parseVector(String s) {
String[] entries = WHITESPACE_PATTERN.split(s);
double[] d = new double[entries.length];
for(int i = 0; i < entries.length; i++) {
try {
d[i] = ParseUtil.parseDouble(entries[i]); // depends on control dependency: [try], data =... |
public class class_name {
public List<FacesConfigFlowDefinitionViewType<FacesConfigFlowDefinitionType<T>>> getAllView()
{
List<FacesConfigFlowDefinitionViewType<FacesConfigFlowDefinitionType<T>>> list = new ArrayList<FacesConfigFlowDefinitionViewType<FacesConfigFlowDefinitionType<T>>>();
List<Node> node... | public class class_name {
public List<FacesConfigFlowDefinitionViewType<FacesConfigFlowDefinitionType<T>>> getAllView()
{
List<FacesConfigFlowDefinitionViewType<FacesConfigFlowDefinitionType<T>>> list = new ArrayList<FacesConfigFlowDefinitionViewType<FacesConfigFlowDefinitionType<T>>>();
List<Node> node... |
public class class_name {
protected String createRoleQuery(String mainQuery, boolean includeSubOus, boolean readRoles) {
String sqlQuery = m_sqlManager.readQuery(mainQuery);
sqlQuery += " ";
if (includeSubOus) {
sqlQuery += m_sqlManager.readQuery("C_GROUPS_GROUP_OU_LIKE_1");
... | public class class_name {
protected String createRoleQuery(String mainQuery, boolean includeSubOus, boolean readRoles) {
String sqlQuery = m_sqlManager.readQuery(mainQuery);
sqlQuery += " ";
if (includeSubOus) {
sqlQuery += m_sqlManager.readQuery("C_GROUPS_GROUP_OU_LIKE_1"); // dep... |
public class class_name {
public static boolean compareStreams( InputStream in1, InputStream in2 )
throws IOException
{
boolean moreOnIn1;
do
{
int v1 = in1.read();
int v2 = in2.read();
if( v1 != v2 )
{
return false;
... | public class class_name {
public static boolean compareStreams( InputStream in1, InputStream in2 )
throws IOException
{
boolean moreOnIn1;
do
{
int v1 = in1.read();
int v2 = in2.read();
if( v1 != v2 )
{
return false; //... |
public class class_name {
private static void writeRow(final PrintWriter writer, final UicStats.Stat stat) {
writer.print("<tr>");
writer.print("<td>" + stat.getClassName() + "</td>");
writer.print("<td>" + stat.getModelStateAsString() + "</td>");
if (stat.getSerializedSize() > 0) {
writer.print("<td>" + s... | public class class_name {
private static void writeRow(final PrintWriter writer, final UicStats.Stat stat) {
writer.print("<tr>");
writer.print("<td>" + stat.getClassName() + "</td>");
writer.print("<td>" + stat.getModelStateAsString() + "</td>");
if (stat.getSerializedSize() > 0) {
writer.print("<td>" + s... |
public class class_name {
public static double parseDouble(final byte[] str, final int start, final int end) {
if(start >= end) {
throw EMPTY_STRING;
}
// Current position and character.
int pos = start;
byte cur = str[pos];
// Match for NaN spellings
if(matchNaN(str, cur, pos, end))... | public class class_name {
public static double parseDouble(final byte[] str, final int start, final int end) {
if(start >= end) {
throw EMPTY_STRING;
}
// Current position and character.
int pos = start;
byte cur = str[pos];
// Match for NaN spellings
if(matchNaN(str, cur, pos, end))... |
public class class_name {
public double getLongitudeSpan() {
if (this.mapView.getWidth() > 0 && this.mapView.getHeight() > 0) {
LatLong left = fromPixels(0, 0);
LatLong right = fromPixels(this.mapView.getWidth(), 0);
return Math.abs(left.longitude - right.longitude);
... | public class class_name {
public double getLongitudeSpan() {
if (this.mapView.getWidth() > 0 && this.mapView.getHeight() > 0) {
LatLong left = fromPixels(0, 0);
LatLong right = fromPixels(this.mapView.getWidth(), 0);
return Math.abs(left.longitude - right.longitude); // depe... |
public class class_name {
public TaskDeleteOptions withOcpDate(DateTime ocpDate) {
if (ocpDate == null) {
this.ocpDate = null;
} else {
this.ocpDate = new DateTimeRfc1123(ocpDate);
}
return this;
} } | public class class_name {
public TaskDeleteOptions withOcpDate(DateTime ocpDate) {
if (ocpDate == null) {
this.ocpDate = null; // depends on control dependency: [if], data = [none]
} else {
this.ocpDate = new DateTimeRfc1123(ocpDate); // depends on control dependency: [if], data... |
public class class_name {
protected void addSearchField(
CmsXmlContentDefinition contentDefinition,
CmsSearchField field,
I_CmsXmlContentHandler.MappingType type) {
Locale locale = null;
if (field instanceof CmsSolrField) {
locale = ((CmsSolrField)field).getLocale()... | public class class_name {
protected void addSearchField(
CmsXmlContentDefinition contentDefinition,
CmsSearchField field,
I_CmsXmlContentHandler.MappingType type) {
Locale locale = null;
if (field instanceof CmsSolrField) {
locale = ((CmsSolrField)field).getLocale()... |
public class class_name {
public void setSorting(List<SortProperty> newSorting) {
Validate.notNull(newSorting, "Sorting required");
if (!sorting.equals(newSorting)) {
sorting.clear();
sorting.addAll(newSorting);
selectionIndex = -1;
clearCache();
}
} } | public class class_name {
public void setSorting(List<SortProperty> newSorting) {
Validate.notNull(newSorting, "Sorting required");
if (!sorting.equals(newSorting)) {
sorting.clear(); // depends on control dependency: [if], data = [none]
sorting.addAll(newSorting); // depends on control dependency: [if], da... |
public class class_name {
private String buildPrimaryKey(final IClassContainer container) {
final Map<Field, FieldContainer> containerMap = container.getFormatSupported(Format.SQL);
for (Map.Entry<Field, FieldContainer> entry : containerMap.entrySet()) {
if (entry.getValue().isEnumerable()... | public class class_name {
private String buildPrimaryKey(final IClassContainer container) {
final Map<Field, FieldContainer> containerMap = container.getFormatSupported(Format.SQL);
for (Map.Entry<Field, FieldContainer> entry : containerMap.entrySet()) {
if (entry.getValue().isEnumerable()... |
public class class_name {
protected List<String> buildArgumentList() {
// Use file.separator as a wild guess as to whether this is Windows
final List<String> args = new ArrayList<>();
if (!StringUtils.isEmpty(getSettings().getString(Settings.KEYS.ANALYZER_ASSEMBLY_DOTNET_PATH))) {
a... | public class class_name {
protected List<String> buildArgumentList() {
// Use file.separator as a wild guess as to whether this is Windows
final List<String> args = new ArrayList<>();
if (!StringUtils.isEmpty(getSettings().getString(Settings.KEYS.ANALYZER_ASSEMBLY_DOTNET_PATH))) {
a... |
public class class_name {
public void setTrajectoryInfo( Dimension trajDim, Variable trajVar,
Dimension timeDim, Variable timeVar,
Variable latVar, Variable lonVar, Variable elevVar )
throws IOException
{
this.trajDim = trajDim;
this... | public class class_name {
public void setTrajectoryInfo( Dimension trajDim, Variable trajVar,
Dimension timeDim, Variable timeVar,
Variable latVar, Variable lonVar, Variable elevVar )
throws IOException
{
this.trajDim = trajDim;
this... |
public class class_name {
private List<TimephasedCost> getTimephasedActualCostFixedAmount()
{
List<TimephasedCost> result = new LinkedList<TimephasedCost>();
double actualCost = getActualCost().doubleValue();
if (actualCost > 0)
{
AccrueType accrueAt = getResource().getAccrueAt();... | public class class_name {
private List<TimephasedCost> getTimephasedActualCostFixedAmount()
{
List<TimephasedCost> result = new LinkedList<TimephasedCost>();
double actualCost = getActualCost().doubleValue();
if (actualCost > 0)
{
AccrueType accrueAt = getResource().getAccrueAt();... |
public class class_name {
private void readEmbeddable(Object key, List<String> columnsToSelect, EntityMetadata entityMetadata,
MetamodelImpl metamodel, Table schemaTable, RecordValue value, Attribute attribute)
{
EmbeddableType embeddableId = metamodel.embeddable(((AbstractAttribute) attribute)... | public class class_name {
private void readEmbeddable(Object key, List<String> columnsToSelect, EntityMetadata entityMetadata,
MetamodelImpl metamodel, Table schemaTable, RecordValue value, Attribute attribute)
{
EmbeddableType embeddableId = metamodel.embeddable(((AbstractAttribute) attribute)... |
public class class_name {
private void checkNonNullParam(Location location, ConstantPoolGen cpg, TypeDataflow typeDataflow,
InvokeInstruction invokeInstruction, BitSet nullArgSet, BitSet definitelyNullArgSet) {
if (inExplicitCatchNullBlock(location)) {
return;
}
boolean... | public class class_name {
private void checkNonNullParam(Location location, ConstantPoolGen cpg, TypeDataflow typeDataflow,
InvokeInstruction invokeInstruction, BitSet nullArgSet, BitSet definitelyNullArgSet) {
if (inExplicitCatchNullBlock(location)) {
return; // depends on control dep... |
public class class_name {
public ExtServletContext getServletContext(HttpContext httpContext) {
synchronized (this.contextMap) {
ExtServletContext context = this.contextMap.get(httpContext);
if (context == null) {
context = addServletContext(httpContext);
}
... | public class class_name {
public ExtServletContext getServletContext(HttpContext httpContext) {
synchronized (this.contextMap) {
ExtServletContext context = this.contextMap.get(httpContext);
if (context == null) {
context = addServletContext(httpContext); // depends on c... |
public class class_name {
@Override
public synchronized void becomeNonCron() {
verifyCanScheduleState();
if (JobChangeLog.isEnabled()) {
JobChangeLog.log("#job ...Becoming non-cron: {}", toString());
}
cron4jId.ifPresent(id -> {
cron4jTask.becomeNonCrom();
... | public class class_name {
@Override
public synchronized void becomeNonCron() {
verifyCanScheduleState();
if (JobChangeLog.isEnabled()) {
JobChangeLog.log("#job ...Becoming non-cron: {}", toString()); // depends on control dependency: [if], data = [none]
}
cron4jId.ifPres... |
public class class_name {
public static List<String> getMustacheKeys(final String template) {
final Set<String> keys = new HashSet<>();
if (StringUtils.isNotEmpty(template)) {
final Matcher matcher = MUSTACHE_PATTERN.matcher(template);
while(matcher.find()) {
k... | public class class_name {
public static List<String> getMustacheKeys(final String template) {
final Set<String> keys = new HashSet<>();
if (StringUtils.isNotEmpty(template)) {
final Matcher matcher = MUSTACHE_PATTERN.matcher(template);
while(matcher.find()) {
k... |
public class class_name {
public <V extends Object, C extends RTSpan<V>> void applyEffect(Effect<V, C> effect, V value) {
if (mUseRTFormatting && !mIsSelectionChanging && !mIsSaving) {
Spannable oldSpannable = mIgnoreTextChanges ? null : cloneSpannable();
effect.applyToSelection(this, ... | public class class_name {
public <V extends Object, C extends RTSpan<V>> void applyEffect(Effect<V, C> effect, V value) {
if (mUseRTFormatting && !mIsSelectionChanging && !mIsSaving) {
Spannable oldSpannable = mIgnoreTextChanges ? null : cloneSpannable();
effect.applyToSelection(this, ... |
public class class_name {
@SuppressWarnings("unchecked")
private void decreaseKey(Node<K, V> n, K newKey) {
int c = ((Comparable<? super K>) newKey).compareTo(n.key);
if (c > 0) {
throw new IllegalArgumentException("Keys can only be decreased!");
}
n.key = newKey;
... | public class class_name {
@SuppressWarnings("unchecked")
private void decreaseKey(Node<K, V> n, K newKey) {
int c = ((Comparable<? super K>) newKey).compareTo(n.key);
if (c > 0) {
throw new IllegalArgumentException("Keys can only be decreased!");
}
n.key = newKey;
... |
public class class_name {
public MPConnection removeConnection(MEConnection conn)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "removeConnection", new Object[] { conn });
MPConnection mpConn;
synchronized(_mpConnectionsByMEConnection)
{
//remove the ... | public class class_name {
public MPConnection removeConnection(MEConnection conn)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "removeConnection", new Object[] { conn });
MPConnection mpConn;
synchronized(_mpConnectionsByMEConnection)
{
//remove the ... |
public class class_name {
protected List<Parameter> getParameters(Type type, List<Annotation> annotations, Set<Type> typesToSkip) {
if (!hasValidAnnotations(annotations) || isApiParamHidden(annotations)) {
return Collections.emptyList();
}
Iterator<SwaggerExtension> chain = Swagger... | public class class_name {
protected List<Parameter> getParameters(Type type, List<Annotation> annotations, Set<Type> typesToSkip) {
if (!hasValidAnnotations(annotations) || isApiParamHidden(annotations)) {
return Collections.emptyList(); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public String generate(HTMLLinkPolicy links, List<StructureDefinition> structures) {
ST shex_def = tmplt(SHEX_TEMPLATE);
String start_cmd;
if(completeModel || structures.get(0).getKind().equals(StructureDefinition.StructureDefinitionKind.RESOURCE))
// || structure... | public class class_name {
public String generate(HTMLLinkPolicy links, List<StructureDefinition> structures) {
ST shex_def = tmplt(SHEX_TEMPLATE);
String start_cmd;
if(completeModel || structures.get(0).getKind().equals(StructureDefinition.StructureDefinitionKind.RESOURCE))
// || structure... |
public class class_name {
public static HashMap<String, Double> contentElementsToHistogram(NodeList nodes) {
final HashMap<String, Double> histogram = new HashMap<>();
for (int i = 0; i < nodes.getLength(); i++) {
Node node = nodes.item(i);
String contentElementName = node.getT... | public class class_name {
public static HashMap<String, Double> contentElementsToHistogram(NodeList nodes) {
final HashMap<String, Double> histogram = new HashMap<>();
for (int i = 0; i < nodes.getLength(); i++) {
Node node = nodes.item(i);
String contentElementName = node.getT... |
public class class_name {
@Override
public String getBhRestToken() {
String bhRestToken = null;
try {
bhRestToken = restSession.getBhRestToken();
} catch (RestApiException e) {
log.error("Error getting bhRestToken! ", e);
}
return bhRestToken;
} } | public class class_name {
@Override
public String getBhRestToken() {
String bhRestToken = null;
try {
bhRestToken = restSession.getBhRestToken(); // depends on control dependency: [try], data = [none]
} catch (RestApiException e) {
log.error("Error getting bhRestToke... |
public class class_name {
public static boolean isPotentiallyEncryptedString(String string) {
checkNotNull(string, "string");
// String is base64 encoded
byte[] encryptedBytes;
try {
encryptedBytes = BaseEncoding.base64().omitPadding().decode(string);
} catch (Illeg... | public class class_name {
public static boolean isPotentiallyEncryptedString(String string) {
checkNotNull(string, "string");
// String is base64 encoded
byte[] encryptedBytes;
try {
encryptedBytes = BaseEncoding.base64().omitPadding().decode(string); // depends on control ... |
public class class_name {
private void setValueForOtherLocales(CmsObject cms, I_CmsXmlContentValue value, String requiredParent) {
if (!value.isSimpleType()) {
throw new IllegalArgumentException();
}
for (Locale locale : getLocales()) {
if (locale.equals(value.getLocale... | public class class_name {
private void setValueForOtherLocales(CmsObject cms, I_CmsXmlContentValue value, String requiredParent) {
if (!value.isSimpleType()) {
throw new IllegalArgumentException();
}
for (Locale locale : getLocales()) {
if (locale.equals(value.getLocale... |
public class class_name {
public void controlsToFields()
{
super.controlsToFields();
for (int iRowIndex = 0; iRowIndex < m_vComponentCache.size(); iRowIndex++)
{
ComponentCache componentCache = (ComponentCache)m_vComponentCache.elementAt(iRowIndex);
if (componentCach... | public class class_name {
public void controlsToFields()
{
super.controlsToFields();
for (int iRowIndex = 0; iRowIndex < m_vComponentCache.size(); iRowIndex++)
{
ComponentCache componentCache = (ComponentCache)m_vComponentCache.elementAt(iRowIndex);
if (componentCach... |
public class class_name {
<R> R wrapSqlException(SqlAction<R> action) {
try {
return action.perform();
} catch (SQLException sqlException) {
throw excTranslator.translate("StreamResultSetExtractor", sql, sqlException);
}
} } | public class class_name {
<R> R wrapSqlException(SqlAction<R> action) {
try {
return action.perform(); // depends on control dependency: [try], data = [none]
} catch (SQLException sqlException) {
throw excTranslator.translate("StreamResultSetExtractor", sql, sqlException);
... |
public class class_name {
public final EObject ruleXAnnotationOrExpression() throws RecognitionException {
EObject current = null;
EObject this_XAnnotation_0 = null;
EObject this_XExpression_1 = null;
enterRule();
try {
// InternalSARL.g:11988:2: ( (this_XAnno... | public class class_name {
public final EObject ruleXAnnotationOrExpression() throws RecognitionException {
EObject current = null;
EObject this_XAnnotation_0 = null;
EObject this_XExpression_1 = null;
enterRule();
try {
// InternalSARL.g:11988:2: ( (this_XAnno... |
public class class_name {
public MethodMember getCurrentMethod(String name, String descriptor) {
if (liveVersion == null) {
return getMethod(name, descriptor);
}
else {
return liveVersion.getReloadableMethod(name, descriptor);
}
} } | public class class_name {
public MethodMember getCurrentMethod(String name, String descriptor) {
if (liveVersion == null) {
return getMethod(name, descriptor); // depends on control dependency: [if], data = [none]
}
else {
return liveVersion.getReloadableMethod(name, descriptor); // depends on control depe... |
public class class_name {
public static MmtfSummaryDataBean getStructureInfo(Structure structure) {
MmtfSummaryDataBean mmtfSummaryDataBean = new MmtfSummaryDataBean();
// Get all the atoms
List<Atom> theseAtoms = new ArrayList<>();
List<Chain> allChains = new ArrayList<>();
Map<String, Integer> chainIdToInd... | public class class_name {
public static MmtfSummaryDataBean getStructureInfo(Structure structure) {
MmtfSummaryDataBean mmtfSummaryDataBean = new MmtfSummaryDataBean();
// Get all the atoms
List<Atom> theseAtoms = new ArrayList<>();
List<Chain> allChains = new ArrayList<>();
Map<String, Integer> chainIdToInd... |
public class class_name {
protected void resync(int XAEntries) {
if (tc.isEntryEnabled())
Tr.entry(tc, "resync", XAEntries);
try {
boolean XArecovered = (XAEntries == 0);
boolean auditRecovery = ConfigurationProviderManager.getConfigurationProvider().getAuditRecover... | public class class_name {
protected void resync(int XAEntries) {
if (tc.isEntryEnabled())
Tr.entry(tc, "resync", XAEntries);
try {
boolean XArecovered = (XAEntries == 0);
boolean auditRecovery = ConfigurationProviderManager.getConfigurationProvider().getAuditRecover... |
public class class_name {
public DescribeSMBFileSharesResult withSMBFileShareInfoList(SMBFileShareInfo... sMBFileShareInfoList) {
if (this.sMBFileShareInfoList == null) {
setSMBFileShareInfoList(new com.amazonaws.internal.SdkInternalList<SMBFileShareInfo>(sMBFileShareInfoList.length));
}
... | public class class_name {
public DescribeSMBFileSharesResult withSMBFileShareInfoList(SMBFileShareInfo... sMBFileShareInfoList) {
if (this.sMBFileShareInfoList == null) {
setSMBFileShareInfoList(new com.amazonaws.internal.SdkInternalList<SMBFileShareInfo>(sMBFileShareInfoList.length)); // depends o... |
public class class_name {
@Override
protected boolean onRequestFocusInDescendants(int direction,
Rect previouslyFocusedRect) {
int index;
int increment;
int end;
int count = getChildCount();
if ((direction & FOCUS_FORWARD) !=... | public class class_name {
@Override
protected boolean onRequestFocusInDescendants(int direction,
Rect previouslyFocusedRect) {
int index;
int increment;
int end;
int count = getChildCount();
if ((direction & FOCUS_FORWARD) !=... |
public class class_name {
public void setBillingRecords(java.util.Collection<BillingRecord> billingRecords) {
if (billingRecords == null) {
this.billingRecords = null;
return;
}
this.billingRecords = new com.amazonaws.internal.SdkInternalList<BillingRecord>(billingRecor... | public class class_name {
public void setBillingRecords(java.util.Collection<BillingRecord> billingRecords) {
if (billingRecords == null) {
this.billingRecords = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
private void scheduleSendTask(boolean runNow) {
TimerTask task = new TimerTask() {
@Override
public void run() {
byte[] packet;
try {
packet = packets.get(0);
} catch (IndexOutOfBoundsExcept... | public class class_name {
private void scheduleSendTask(boolean runNow) {
TimerTask task = new TimerTask() {
@Override
public void run() {
byte[] packet;
try {
packet = packets.get(0); // depends on control dependency: [try], data = ... |
public class class_name {
public static RecursionDetection detectRecursiveInjection(Throwable t) {
RecursionDetection rd;
boolean recursiveInjection = false;
boolean logged = false;
Throwable cause = t;
Throwable lastCause = null;
while (cause != null && cause != lastCau... | public class class_name {
public static RecursionDetection detectRecursiveInjection(Throwable t) {
RecursionDetection rd;
boolean recursiveInjection = false;
boolean logged = false;
Throwable cause = t;
Throwable lastCause = null;
while (cause != null && cause != lastCau... |
public class class_name {
private void updateTable(KsDef ksDef, TableInfo tableInfo) throws Exception
{
for (CfDef cfDef : ksDef.getCf_defs())
{
if (cfDef.getName().equals(tableInfo.getTableName())
&& cfDef.getColumn_type().equals(ColumnFamilyType.getInstanceOf(table... | public class class_name {
private void updateTable(KsDef ksDef, TableInfo tableInfo) throws Exception
{
for (CfDef cfDef : ksDef.getCf_defs())
{
if (cfDef.getName().equals(tableInfo.getTableName())
&& cfDef.getColumn_type().equals(ColumnFamilyType.getInstanceOf(table... |
public class class_name {
public static void setLocation(HttpServletRequest request, HttpServletResponse response, String location) {
if(request.getAttribute(IS_INCLUDED_REQUEST_ATTRIBUTE_NAME) == null) {
// Not included, setHeader directly
response.setHeader("Location", location);
} else {
// Is included... | public class class_name {
public static void setLocation(HttpServletRequest request, HttpServletResponse response, String location) {
if(request.getAttribute(IS_INCLUDED_REQUEST_ATTRIBUTE_NAME) == null) {
// Not included, setHeader directly
response.setHeader("Location", location); // depends on control depend... |
public class class_name {
public final boolean negotiate (TargetServer target, final LoginStage loginStage, final boolean leadingConnection, final boolean initialPdu, final String key, final String values, final Collection<String> responseKeyValuePairs) {
// (re)check key (just in case), this should have be... | public class class_name {
public final boolean negotiate (TargetServer target, final LoginStage loginStage, final boolean leadingConnection, final boolean initialPdu, final String key, final String values, final Collection<String> responseKeyValuePairs) {
// (re)check key (just in case), this should have be... |
public class class_name {
@Override
public Byte convert(Object value) {
if (value instanceof Number) {
double d = ((Number)value).doubleValue();
if (Double.isNaN(d) || Math.round(d)!=d) throw new IllegalArgumentException("Not a valid byte: " + value);
long l = ((Number)v... | public class class_name {
@Override
public Byte convert(Object value) {
if (value instanceof Number) {
double d = ((Number)value).doubleValue();
if (Double.isNaN(d) || Math.round(d)!=d) throw new IllegalArgumentException("Not a valid byte: " + value);
long l = ((Number)v... |
public class class_name {
public CreateDeploymentRequest withLayerIds(String... layerIds) {
if (this.layerIds == null) {
setLayerIds(new com.amazonaws.internal.SdkInternalList<String>(layerIds.length));
}
for (String ele : layerIds) {
this.layerIds.add(ele);
}
... | public class class_name {
public CreateDeploymentRequest withLayerIds(String... layerIds) {
if (this.layerIds == null) {
setLayerIds(new com.amazonaws.internal.SdkInternalList<String>(layerIds.length)); // depends on control dependency: [if], data = [none]
}
for (String ele : layerI... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.