code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public void copyWeightsToLayer(org.deeplearning4j.nn.api.Layer layer) throws InvalidKerasConfigurationException {
if (this.getNumParams() > 0) {
String dl4jLayerName = layer.conf().getLayer().getLayerName();
String kerasLayerName = this.getLayerName();
... | public class class_name {
public void copyWeightsToLayer(org.deeplearning4j.nn.api.Layer layer) throws InvalidKerasConfigurationException {
if (this.getNumParams() > 0) {
String dl4jLayerName = layer.conf().getLayer().getLayerName();
String kerasLayerName = this.getLayerName();
... |
public class class_name {
public List<CmsSearchField> getSearchFields() {
I_CmsSearchIndex index = OpenCms.getSearchManager().getIndex(getParamIndexName());
List<CmsSearchField> result = new ArrayList<CmsSearchField>();
Iterator<CmsSearchField> i = index.getFieldConfiguration().getFields().ite... | public class class_name {
public List<CmsSearchField> getSearchFields() {
I_CmsSearchIndex index = OpenCms.getSearchManager().getIndex(getParamIndexName());
List<CmsSearchField> result = new ArrayList<CmsSearchField>();
Iterator<CmsSearchField> i = index.getFieldConfiguration().getFields().ite... |
public class class_name {
private Map<String, ColumnDefinition> makeColumnMap(ColumnDefinition[] columns)
{
Map<String, ColumnDefinition> map = new HashMap<String, ColumnDefinition>();
for (ColumnDefinition def : columns)
{
map.put(def.getName(), def);
}
return map;
} } | public class class_name {
private Map<String, ColumnDefinition> makeColumnMap(ColumnDefinition[] columns)
{
Map<String, ColumnDefinition> map = new HashMap<String, ColumnDefinition>();
for (ColumnDefinition def : columns)
{
map.put(def.getName(), def); // depends on control dependency: [f... |
public class class_name {
public static int minutesDiff(Date earlierDate, Date laterDate) {
if (earlierDate == null || laterDate == null) {
return 0;
}
return (int) ((laterDate.getTime() / MINUTE_MILLIS) - (earlierDate.getTime() / MINUTE_MILLIS));
} } | public class class_name {
public static int minutesDiff(Date earlierDate, Date laterDate) {
if (earlierDate == null || laterDate == null) {
return 0; // depends on control dependency: [if], data = [none]
}
return (int) ((laterDate.getTime() / MINUTE_MILLIS) - (earlierDate.getTime()... |
public class class_name {
public Object getNextElement() {
Object element = null;
while (currentIndex+1 < endIndex && element == null) {
currentIndex++;
element = getElement();
}
return element;
} } | public class class_name {
public Object getNextElement() {
Object element = null;
while (currentIndex+1 < endIndex && element == null) {
currentIndex++;
// depends on control dependency: [while], data = [none]
element = getElement();
// depends on control dependency: [while... |
public class class_name {
public void addNewMessageToSend(MessageID messageID, Collection<Address> destinations, long initialSequenceNumber,
boolean deliverToMyself) {
MessageInfo messageInfo = new MessageInfo(destinations, initialSequenceNumber, deliverToMyself);
if... | public class class_name {
public void addNewMessageToSend(MessageID messageID, Collection<Address> destinations, long initialSequenceNumber,
boolean deliverToMyself) {
MessageInfo messageInfo = new MessageInfo(destinations, initialSequenceNumber, deliverToMyself);
if... |
public class class_name {
private static List<SessionStatus> getEndStates() {
List<SessionStatus> endStatesRet = new ArrayList<SessionStatus>();
for (SessionStatus s : SessionStatus.values()) {
if (s != SessionStatus.RUNNING) {
endStatesRet.add(s);
}
}
return endStatesRet;
} } | public class class_name {
private static List<SessionStatus> getEndStates() {
List<SessionStatus> endStatesRet = new ArrayList<SessionStatus>();
for (SessionStatus s : SessionStatus.values()) {
if (s != SessionStatus.RUNNING) {
endStatesRet.add(s); // depends on control dependency: [if], data = [... |
public class class_name {
public OpenStackRequest<R> queryString(String queryString) {
if (queryString != null) {
String[] params = queryString.split("&");
for (String param : params) {
String[] s = param.split("=");
if (s[0] != null && s[1] != null) {
... | public class class_name {
public OpenStackRequest<R> queryString(String queryString) {
if (queryString != null) {
String[] params = queryString.split("&");
for (String param : params) {
String[] s = param.split("=");
if (s[0] != null && s[1] != null) {
... |
public class class_name {
public static <E> List<E> newArrayList(E... values) {
List<E> list = new ArrayList<E>(values.length);
for (E e : values) {
list.add(e);
}
return list;
} } | public class class_name {
public static <E> List<E> newArrayList(E... values) {
List<E> list = new ArrayList<E>(values.length);
for (E e : values) {
list.add(e); // depends on control dependency: [for], data = [e]
}
return list;
} } |
public class class_name {
public void dispatch_event(final EventData eventData) {
final TangoPipe tangoPipe = this;
if (EventUtil.graphicAvailable()) {
// Causes doRun.run() to be executed asynchronously
// on the AWT event dispatching thread.
Runnable do_wo... | public class class_name {
public void dispatch_event(final EventData eventData) {
final TangoPipe tangoPipe = this;
if (EventUtil.graphicAvailable()) {
// Causes doRun.run() to be executed asynchronously
// on the AWT event dispatching thread.
Runnable do_wo... |
public class class_name {
@Nullable
Object resolveTypeReference(Element element) {
if (element instanceof TypeElement) {
TypeElement typeElement = (TypeElement) element;
return resolveTypeReferenceForTypeElement(typeElement);
}
return null;
} } | public class class_name {
@Nullable
Object resolveTypeReference(Element element) {
if (element instanceof TypeElement) {
TypeElement typeElement = (TypeElement) element;
return resolveTypeReferenceForTypeElement(typeElement); // depends on control dependency: [if], data = [none]
... |
public class class_name {
final public void DotSuffix() throws ParseException {
/*@bgen(jjtree) DotSuffix */
AstDotSuffix jjtn000 = new AstDotSuffix(JJTDOTSUFFIX);
boolean jjtc000 = true;
jjtr... | public class class_name {
final public void DotSuffix() throws ParseException {
/*@bgen(jjtree) DotSuffix */
AstDotSuffix jjtn000 = new AstDotSuffix(JJTDOTSUFFIX);
boolean jjtc000 = true;
jjtr... |
public class class_name {
private final static void removeFolders(String folder, List<String> folderTemplates,
int numberOfDaysToKeepTempFolders) {
long dateToRemoveFiledAfter = (new Date()).getTime()
- (numberOfDaysToKeepTempFolders * MILLISECONDS_IN_DAY);
File tempFolder ... | public class class_name {
private final static void removeFolders(String folder, List<String> folderTemplates,
int numberOfDaysToKeepTempFolders) {
long dateToRemoveFiledAfter = (new Date()).getTime()
- (numberOfDaysToKeepTempFolders * MILLISECONDS_IN_DAY);
File tempFolder ... |
public class class_name {
Block[] getFileBlocks(String src) {
waitForReady();
byte[][] components = INodeDirectory.getPathComponents(src);
readLock();
try {
INode targetNode = rootDir.getNode(components);
if (targetNode == null)
return null;
if(targetNode.isDirectory())
... | public class class_name {
Block[] getFileBlocks(String src) {
waitForReady();
byte[][] components = INodeDirectory.getPathComponents(src);
readLock();
try {
INode targetNode = rootDir.getNode(components);
if (targetNode == null)
return null;
if(targetNode.isDirectory())
... |
public class class_name {
private static void rejectDefinedAttributeWithDefaultValue(ResourceTransformationDescriptionBuilder builder, AttributeDefinition... attrs) {
for (AttributeDefinition attr : attrs) {
builder.getAttributeBuilder()
.setDiscard(new DiscardAttributeValueChec... | public class class_name {
private static void rejectDefinedAttributeWithDefaultValue(ResourceTransformationDescriptionBuilder builder, AttributeDefinition... attrs) {
for (AttributeDefinition attr : attrs) {
builder.getAttributeBuilder()
.setDiscard(new DiscardAttributeValueChec... |
public class class_name {
public static Archiver createArchiver(FileType fileType) {
if (fileType == FileType.UNKNOWN) {
throw new IllegalArgumentException("Unknown file type");
}
if (fileType.isArchive() && fileType.isCompressed()) {
return createArchiver(fileType.getA... | public class class_name {
public static Archiver createArchiver(FileType fileType) {
if (fileType == FileType.UNKNOWN) {
throw new IllegalArgumentException("Unknown file type");
}
if (fileType.isArchive() && fileType.isCompressed()) {
return createArchiver(fileType.getA... |
public class class_name {
public void marshall(CreateVirtualServiceRequest createVirtualServiceRequest, ProtocolMarshaller protocolMarshaller) {
if (createVirtualServiceRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(CreateVirtualServiceRequest createVirtualServiceRequest, ProtocolMarshaller protocolMarshaller) {
if (createVirtualServiceRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public void deltaForget(long time)
{
forgetCount.incrementAndGet();
if (time > 0)
{
forgetTotalTime.addAndGet(time);
if (time > forgetMaxTime.get())
forgetMaxTime.set(time);
}
} } | public class class_name {
public void deltaForget(long time)
{
forgetCount.incrementAndGet();
if (time > 0)
{
forgetTotalTime.addAndGet(time); // depends on control dependency: [if], data = [(time]
if (time > forgetMaxTime.get())
forgetMaxTime.set(time);
}
... |
public class class_name {
public final ChartHelper getChartHelper() {
if ((this.chartHelper == null) && (this.parent != null)) {
this.chartHelper = new ChartHelper(parent);
}
return chartHelper;
} } | public class class_name {
public final ChartHelper getChartHelper() {
if ((this.chartHelper == null) && (this.parent != null)) {
this.chartHelper = new ChartHelper(parent);
// depends on control dependency: [if], data = [none]
}
return chartHelper;
} } |
public class class_name {
@Override
public void executionRecoveryJob(){
if (logger.isDebugEnabled()) {
logger.debug("ExecutionRecoveryJob woke up at " + new Date());
}
try {
executionRecoveryService.doRecovery();
}
catch (Exception e){
lo... | public class class_name {
@Override
public void executionRecoveryJob(){
if (logger.isDebugEnabled()) {
logger.debug("ExecutionRecoveryJob woke up at " + new Date()); // depends on control dependency: [if], data = [none]
}
try {
executionRecoveryService.doRecovery();... |
public class class_name {
public PolicyFactory toFactory() {
ImmutableSet.Builder<String> textContainerSet = ImmutableSet.builder();
for (Map.Entry<String, Boolean> textContainer
: this.textContainers.entrySet()) {
if (Boolean.TRUE.equals(textContainer.getValue())) {
textContainerSet.add... | public class class_name {
public PolicyFactory toFactory() {
ImmutableSet.Builder<String> textContainerSet = ImmutableSet.builder();
for (Map.Entry<String, Boolean> textContainer
: this.textContainers.entrySet()) {
if (Boolean.TRUE.equals(textContainer.getValue())) {
textContainerSet.add... |
public class class_name {
final List<DBColumn> getPrimaryKeyColumnList() {
final List<DBColumn> primaryKeyColumnList = new ArrayList<DBColumn>();
final Set<String> columnNameSet = getAllColumnNames();
for (String columnName : columnNameSet) {
final D6ModelClassFieldInfo fieldInfo = getFieldInfo(columnName... | public class class_name {
final List<DBColumn> getPrimaryKeyColumnList() {
final List<DBColumn> primaryKeyColumnList = new ArrayList<DBColumn>();
final Set<String> columnNameSet = getAllColumnNames();
for (String columnName : columnNameSet) {
final D6ModelClassFieldInfo fieldInfo = getFieldInfo(columnName... |
public class class_name {
public void setSectionIconsVisible(final boolean VISIBLE) {
if (null == sectionIconsVisible) {
_sectionIconsVisible = VISIBLE;
fireTileEvent(REDRAW_EVENT);
} else {
sectionIconsVisible.set(VISIBLE);
}
} } | public class class_name {
public void setSectionIconsVisible(final boolean VISIBLE) {
if (null == sectionIconsVisible) {
_sectionIconsVisible = VISIBLE; // depends on control dependency: [if], data = [none]
fireTileEvent(REDRAW_EVENT); // depends on control dependency: [if], data = [non... |
public class class_name {
private static String getUpdateSql() {
if (updateSql == null) {
updateSql =
"UPDATE "
+ LOCK_TABLE
+ " SET "
+ EXPIRATION_TIME_COLUMN
+ EQ
... | public class class_name {
private static String getUpdateSql() {
if (updateSql == null) {
updateSql =
"UPDATE "
+ LOCK_TABLE
+ " SET "
+ EXPIRATION_TIME_COLUMN
+ EQ
... |
public class class_name {
private void makeIncoming() {
if (stays == null && move == null) {
for (BitSet in : ins) {
in.clear();
}
stays = new BitSet();
move = new BitSet();
for (int i = 0; i < hosts.length; i++) {
if (... | public class class_name {
private void makeIncoming() {
if (stays == null && move == null) {
for (BitSet in : ins) {
in.clear(); // depends on control dependency: [for], data = [in]
}
stays = new BitSet(); // depends on control dependency: [if], data = [none]... |
public class class_name {
public static String substring(String input, int beginIndex, int endIndex) {
if (beginIndex < 0) {
beginIndex = 0;
}
if (endIndex < 0 || endIndex > input.length()) {
endIndex = input.length();
}
if (endIndex < beginIndex) {
... | public class class_name {
public static String substring(String input, int beginIndex, int endIndex) {
if (beginIndex < 0) {
beginIndex = 0; // depends on control dependency: [if], data = [none]
}
if (endIndex < 0 || endIndex > input.length()) {
endIndex = input.length()... |
public class class_name {
void setButtonsLocation(int location) {
if (currentButtonsLocation == location) {
mainBreakButtons.setVisible(location == 0 && isMainToolBarHidden());
return;
}
currentButtonsLocation = location;
switch (location) {
case 0:
requestBreakButtons.setVisible(false);
... | public class class_name {
void setButtonsLocation(int location) {
if (currentButtonsLocation == location) {
mainBreakButtons.setVisible(location == 0 && isMainToolBarHidden());
// depends on control dependency: [if], data = [none]
return;
// depends on control dependency: [if], data = [none]
}
current... |
public class class_name {
public void updateDeployedComponents() {
try {
// Get the SLEE Component Repo
ComponentRepository componentRepository = sleeContainerDeployer.getSleeContainer().getComponentRepository();
// First we'll put the components in a temp Collection
ConcurrentLinkedQueue<... | public class class_name {
public void updateDeployedComponents() {
try {
// Get the SLEE Component Repo
ComponentRepository componentRepository = sleeContainerDeployer.getSleeContainer().getComponentRepository();
// First we'll put the components in a temp Collection
ConcurrentLinkedQueue<... |
public class class_name {
public static InternalServerError of(int errorCode, Throwable cause) {
if (_localizedErrorMsg()) {
return of(errorCode, cause, defaultMessage(INTERNAL_SERVER_ERROR));
} else {
touchPayload().errorCode(errorCode).cause(cause);
return _INSTANC... | public class class_name {
public static InternalServerError of(int errorCode, Throwable cause) {
if (_localizedErrorMsg()) {
return of(errorCode, cause, defaultMessage(INTERNAL_SERVER_ERROR)); // depends on control dependency: [if], data = [none]
} else {
touchPayload().errorCod... |
public class class_name {
protected BufferedImage create_BACKGROUND_Image(final int WIDTH, final String TITLE, final String UNIT_STRING, BufferedImage image) {
if (WIDTH <= 0) {
return null;
}
if (image == null) {
image = UTIL.createImage(WIDTH, WIDTH, Transparency.TRAN... | public class class_name {
protected BufferedImage create_BACKGROUND_Image(final int WIDTH, final String TITLE, final String UNIT_STRING, BufferedImage image) {
if (WIDTH <= 0) {
return null; // depends on control dependency: [if], data = [none]
}
if (image == null) {
im... |
public class class_name {
protected void dontNotifyRequestListenersForRequestInternal(final SpiceRequest<?> request) {
lockSendRequestsToService.lock();
try {
final boolean requestNotPassedToServiceYet = removeListenersOfCachedRequestToLaunch(request);
Ln.v("Removed from reques... | public class class_name {
protected void dontNotifyRequestListenersForRequestInternal(final SpiceRequest<?> request) {
lockSendRequestsToService.lock();
try {
final boolean requestNotPassedToServiceYet = removeListenersOfCachedRequestToLaunch(request);
Ln.v("Removed from reques... |
public class class_name {
public Observable<ComapiResult<List<Conversation>>> getConversations(final boolean isPublic) {
final String token = getToken();
if (sessionController.isCreatingSession()) {
return getTaskQueue().queueGetConversationsExt(isPublic ? Scope.PUBLIC : Scope.PARTICIPANT... | public class class_name {
public Observable<ComapiResult<List<Conversation>>> getConversations(final boolean isPublic) {
final String token = getToken();
if (sessionController.isCreatingSession()) {
return getTaskQueue().queueGetConversationsExt(isPublic ? Scope.PUBLIC : Scope.PARTICIPANT... |
public class class_name {
public static String underscoresToCamelCase(String input, boolean capitializeNextLetter) {
StringBuilder result = new StringBuilder();
for (int i = 0; i < input.length(); i++) {
char ch = input.charAt(i);
if ('a' <= ch && ch <= 'z') {
if (capitializeNextLetter) {
... | public class class_name {
public static String underscoresToCamelCase(String input, boolean capitializeNextLetter) {
StringBuilder result = new StringBuilder();
for (int i = 0; i < input.length(); i++) {
char ch = input.charAt(i);
if ('a' <= ch && ch <= 'z') {
if (capitializeNextLetter) {
... |
public class class_name {
@Override
public void handleMessageToClient(WebSocketSession session, Message<?> message) {
if (!(message instanceof WampMessage)) {
logger.error("Expected WampMessage. Ignoring " + message + ".");
return;
}
boolean closeWebSocketSession = false;
try {
String json = ((WampM... | public class class_name {
@Override
public void handleMessageToClient(WebSocketSession session, Message<?> message) {
if (!(message instanceof WampMessage)) {
logger.error("Expected WampMessage. Ignoring " + message + "."); // depends on control dependency: [if], data = [none]
return; // depends on control de... |
public class class_name {
public EClass getIfcTubeBundleType() {
if (ifcTubeBundleTypeEClass == null) {
ifcTubeBundleTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(624);
}
return ifcTubeBundleTypeEClass;
} } | public class class_name {
public EClass getIfcTubeBundleType() {
if (ifcTubeBundleTypeEClass == null) {
ifcTubeBundleTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(624);
// depends on control dependency: [if], data = [none]
}
return ifcT... |
public class class_name {
public Cursor swapCursor(Cursor newCursor) {
if (newCursor == mCursor) {
return null;
}
Cursor oldCursor = mCursor;
if (oldCursor != null) {
if (mChangeObserver != null) oldCursor.unregisterContentObserver(mChangeObserver);
i... | public class class_name {
public Cursor swapCursor(Cursor newCursor) {
if (newCursor == mCursor) {
return null; // depends on control dependency: [if], data = [none]
}
Cursor oldCursor = mCursor;
if (oldCursor != null) {
if (mChangeObserver != null) oldCursor.unr... |
public class class_name {
public DateMidnight plusYears(int years) {
if (years == 0) {
return this;
}
long instant = getChronology().years().add(getMillis(), years);
return withMillis(instant);
} } | public class class_name {
public DateMidnight plusYears(int years) {
if (years == 0) {
return this; // depends on control dependency: [if], data = [none]
}
long instant = getChronology().years().add(getMillis(), years);
return withMillis(instant);
} } |
public class class_name {
public static String mapToString(Map<String, ?> map) {
StringBuilder sb = new StringBuilder();
sb.append("{\n");
for (String key : map.keySet()) {
if (map.get(key) != null) {
sb.append(key + ": " + map.get(key) + "\n ");
} else {... | public class class_name {
public static String mapToString(Map<String, ?> map) {
StringBuilder sb = new StringBuilder();
sb.append("{\n");
for (String key : map.keySet()) {
if (map.get(key) != null) {
sb.append(key + ": " + map.get(key) + "\n "); // depends on contro... |
public class class_name {
private boolean estimateClose() {
// estimate 2D motion
if (!planeMotion.process(planeSamples.toList()))
return false;
// save solutions
closeMotionKeyToCurr = planeMotion.getModelParameters();
closeInlierCount = planeMotion.getMatchSet().size();
// mark inliers as used
fo... | public class class_name {
private boolean estimateClose() {
// estimate 2D motion
if (!planeMotion.process(planeSamples.toList()))
return false;
// save solutions
closeMotionKeyToCurr = planeMotion.getModelParameters();
closeInlierCount = planeMotion.getMatchSet().size();
// mark inliers as used
fo... |
public class class_name {
@Override
public final void handleRequest(final Request request) {
if (!beforeHandleRequest(request)) {
return;
}
setChangedInLastRequest(false);
if (isDisabled() || isReadOnly()) {
// Protect against client-side tampering of disabled/read-only fields.
return;
}
if (i... | public class class_name {
@Override
public final void handleRequest(final Request request) {
if (!beforeHandleRequest(request)) {
return; // depends on control dependency: [if], data = [none]
}
setChangedInLastRequest(false);
if (isDisabled() || isReadOnly()) {
// Protect against client-side tampering... |
public class class_name {
private static MyNode compactForm(MyNode n) {
if (n.node.getNodeType() == Node.TEXT_NODE) {
n.out = n.node.getNodeValue().trim();
} else {
n.out = n.node.getNodeName();
if (n.out.startsWith("m:")) {
n.out = n.out.substring(2)... | public class class_name {
private static MyNode compactForm(MyNode n) {
if (n.node.getNodeType() == Node.TEXT_NODE) {
n.out = n.node.getNodeValue().trim();
} else {
n.out = n.node.getNodeName();
if (n.out.startsWith("m:")) {
n.out = n.out.substring(2)... |
public class class_name {
protected AbcNode getParseTree(String abcString) {
long startTime = System.currentTimeMillis();
AbcGrammar grammar = AbcGrammar.getInstance();
// AbcGrammar parser = Parboiled.createParser(AbcGrammar.class);
ParsingResult<?> result = RecoveringParseRunner.run(grammar.AbcFile(),
... | public class class_name {
protected AbcNode getParseTree(String abcString) {
long startTime = System.currentTimeMillis();
AbcGrammar grammar = AbcGrammar.getInstance();
// AbcGrammar parser = Parboiled.createParser(AbcGrammar.class);
ParsingResult<?> result = RecoveringParseRunner.run(grammar.AbcFile(),
... |
public class class_name {
public static Pattern createPattern(final String pattern, final int flags) {
if (pattern == null) {
LOGGER.debug("Pattern cannot be null");
return MATCH_NOTHING_PATTERN;
}
try {
return Pattern.compile(pattern, flags);
} catch... | public class class_name {
public static Pattern createPattern(final String pattern, final int flags) {
if (pattern == null) {
LOGGER.debug("Pattern cannot be null"); // depends on control dependency: [if], data = [none]
return MATCH_NOTHING_PATTERN; // depends on control dependency: [if... |
public class class_name {
@Override
public ServerEvaluationCall addVariableAs(String name, Object value) {
if (value == null) return this;
Class<?> as = value.getClass();
AbstractWriteHandle writeHandle = null;
if (AbstractWriteHandle.class.isAssignableFrom(as)) {
writeHandle = (AbstractWriteH... | public class class_name {
@Override
public ServerEvaluationCall addVariableAs(String name, Object value) {
if (value == null) return this;
Class<?> as = value.getClass();
AbstractWriteHandle writeHandle = null;
if (AbstractWriteHandle.class.isAssignableFrom(as)) {
writeHandle = (AbstractWriteH... |
public class class_name {
public HpackHeaderField getEntry(int index) {
if (index <= 0 || index > length()) {
throw new IndexOutOfBoundsException();
}
int i = head - index;
if (i < 0) {
return hpackHeaderFields[i + hpackHeaderFields.length];
} else {
... | public class class_name {
public HpackHeaderField getEntry(int index) {
if (index <= 0 || index > length()) {
throw new IndexOutOfBoundsException();
}
int i = head - index;
if (i < 0) {
return hpackHeaderFields[i + hpackHeaderFields.length]; // depends on control... |
public class class_name {
public Optional<FileStatus> getFileStatus(final FileSystem fs, final Path path) throws IOException {
try {
return this.fileStatusCache.get(fs.makeQualified(path), new Callable<Optional<FileStatus>>() {
@Override
public Optional<FileStatus> call()
throws E... | public class class_name {
public Optional<FileStatus> getFileStatus(final FileSystem fs, final Path path) throws IOException {
try {
return this.fileStatusCache.get(fs.makeQualified(path), new Callable<Optional<FileStatus>>() {
@Override
public Optional<FileStatus> call()
throws E... |
public class class_name {
public void moveToBack(Object parent, String name) {
Element parentElement = getGroup(parent);
if (parentElement == null) {
throw new IllegalArgumentException("moveToBack failed: could not find parent group.");
}
Element element = getElement(parent, name);
if (element == null) {... | public class class_name {
public void moveToBack(Object parent, String name) {
Element parentElement = getGroup(parent);
if (parentElement == null) {
throw new IllegalArgumentException("moveToBack failed: could not find parent group.");
}
Element element = getElement(parent, name);
if (element == null) {... |
public class class_name {
public ListCustomVerificationEmailTemplatesResult withCustomVerificationEmailTemplates(CustomVerificationEmailTemplate... customVerificationEmailTemplates) {
if (this.customVerificationEmailTemplates == null) {
setCustomVerificationEmailTemplates(new com.amazonaws.internal... | public class class_name {
public ListCustomVerificationEmailTemplatesResult withCustomVerificationEmailTemplates(CustomVerificationEmailTemplate... customVerificationEmailTemplates) {
if (this.customVerificationEmailTemplates == null) {
setCustomVerificationEmailTemplates(new com.amazonaws.internal... |
public class class_name {
public final void dirCopy(File in, File out, boolean skipHiddenFiles) throws IOException {
assert in != null;
assert out != null;
getLog().debug(in.toString() + "->" + out.toString()); //$NON-NLS-1$
getLog().debug("Ignore hidden files: " + skipHiddenFiles); //$NON-NLS-1$
out.mkdirs(... | public class class_name {
public final void dirCopy(File in, File out, boolean skipHiddenFiles) throws IOException {
assert in != null;
assert out != null;
getLog().debug(in.toString() + "->" + out.toString()); //$NON-NLS-1$
getLog().debug("Ignore hidden files: " + skipHiddenFiles); //$NON-NLS-1$
out.mkdirs(... |
public class class_name {
private void addLibraryInternal(final JobID jobID, final Path name, final long size, final DataInput in)
throws IOException {
if (size > (long) Integer.MAX_VALUE) {
throw new IOException("Submitted jar file " + name + " is too large");
}
// Map the entire jar file to memory
fi... | public class class_name {
private void addLibraryInternal(final JobID jobID, final Path name, final long size, final DataInput in)
throws IOException {
if (size > (long) Integer.MAX_VALUE) {
throw new IOException("Submitted jar file " + name + " is too large");
}
// Map the entire jar file to memory
fi... |
public class class_name {
public void clear()
{
for (int i = 0; i < _values.length; i++) {
_keys[i] = null;
_values[i] = 0;
}
_size = 0;
} } | public class class_name {
public void clear()
{
for (int i = 0; i < _values.length; i++) {
_keys[i] = null; // depends on control dependency: [for], data = [i]
_values[i] = 0; // depends on control dependency: [for], data = [i]
}
_size = 0;
} } |
public class class_name {
List<SPFPersona> getAvailablePersonas() {
SQLiteDatabase db = getReadableDatabase();
String table = Contract.TABLE_PERSONAS;
String[] columns = { Contract.COLUMN_PERSONA };
String selection = null;
String[] selectionArgs = null;
String groupBy = null;
String having = null;
Str... | public class class_name {
List<SPFPersona> getAvailablePersonas() {
SQLiteDatabase db = getReadableDatabase();
String table = Contract.TABLE_PERSONAS;
String[] columns = { Contract.COLUMN_PERSONA };
String selection = null;
String[] selectionArgs = null;
String groupBy = null;
String having = null;
Str... |
public class class_name {
public void register(final Class<? extends OCompression> compression) {
try {
final OCompression tempInstance = compression.newInstance();
final String name = tempInstance.name();
if (compressions.containsKey(name))
throw new IllegalArgumentException("Compressi... | public class class_name {
public void register(final Class<? extends OCompression> compression) {
try {
final OCompression tempInstance = compression.newInstance();
final String name = tempInstance.name();
if (compressions.containsKey(name))
throw new IllegalArgumentException("Compressi... |
public class class_name {
String getLogicalScope(CharacterFilter filter, char delimiter, int reporterIndex) {
if (logicalScopeStrings.length == 0 || (reporterIndex < 0 || reporterIndex >= logicalScopeStrings.length)) {
return createLogicalScope(filter, delimiter);
} else {
if (logicalScopeStrings[reporterInd... | public class class_name {
String getLogicalScope(CharacterFilter filter, char delimiter, int reporterIndex) {
if (logicalScopeStrings.length == 0 || (reporterIndex < 0 || reporterIndex >= logicalScopeStrings.length)) {
return createLogicalScope(filter, delimiter); // depends on control dependency: [if], data = [n... |
public class class_name {
@SneakyThrows
public static <T, R> Function<T, R> doIf(final Predicate<Object> condition, final Supplier<R> trueFunction,
final Supplier<R> falseFunction) {
return t -> {
try {
if (condition.test(t)) {
... | public class class_name {
@SneakyThrows
public static <T, R> Function<T, R> doIf(final Predicate<Object> condition, final Supplier<R> trueFunction,
final Supplier<R> falseFunction) {
return t -> {
try {
if (condition.test(t)) {
... |
public class class_name {
public static double logpdf(double val, double shape, double location, double scale) {
if(val < location) {
return Double.NEGATIVE_INFINITY;
}
val = (val - location) / scale;
final double lval = FastMath.log(val);
if(lval == Double.POSITIVE_INFINITY) {
return D... | public class class_name {
public static double logpdf(double val, double shape, double location, double scale) {
if(val < location) {
return Double.NEGATIVE_INFINITY; // depends on control dependency: [if], data = [none]
}
val = (val - location) / scale;
final double lval = FastMath.log(val);
... |
public class class_name {
@SuppressWarnings({ "unchecked", "rawtypes" })
private EventDispatcher getEventDispatcher(Class<?> eventType, boolean createIfNotExists) {
EventDispatcher<?> dispatcher = this.eventType2dispatcherMap.get(eventType);
if (dispatcher == null) {
Class<?> parentType = eventType.ge... | public class class_name {
@SuppressWarnings({ "unchecked", "rawtypes" })
private EventDispatcher getEventDispatcher(Class<?> eventType, boolean createIfNotExists) {
EventDispatcher<?> dispatcher = this.eventType2dispatcherMap.get(eventType);
if (dispatcher == null) {
Class<?> parentType = eventType.ge... |
public class class_name {
public static void writeToFile(InputStream uploadedInputStream,
String uploadedFileLocation) throws IOException {
File file = new File(uploadedFileLocation);
file.getParentFile().mkdirs();
int read = 0;
byte[] bytes = new byte[1024];
try ... | public class class_name {
public static void writeToFile(InputStream uploadedInputStream,
String uploadedFileLocation) throws IOException {
File file = new File(uploadedFileLocation);
file.getParentFile().mkdirs();
int read = 0;
byte[] bytes = new byte[1024];
try ... |
public class class_name {
public static JsonObject matchCommand(JsonObject commandsJson, String commandName, String storageService) {
for (String key : commandsJson.keySet()) {
if (key.equals(storageService)) {
JsonObject commandCats = commandsJson.getJsonObject(key);
... | public class class_name {
public static JsonObject matchCommand(JsonObject commandsJson, String commandName, String storageService) {
for (String key : commandsJson.keySet()) {
if (key.equals(storageService)) {
JsonObject commandCats = commandsJson.getJsonObject(key);
... |
public class class_name {
public static ModbusResponse createModbusResponse(int functionCode) {
ModbusResponse response;
switch (functionCode) {
case Modbus.READ_COILS:
response = new ReadCoilsResponse();
break;
case Modbus.READ_INPUT_DISCRETES:
... | public class class_name {
public static ModbusResponse createModbusResponse(int functionCode) {
ModbusResponse response;
switch (functionCode) {
case Modbus.READ_COILS:
response = new ReadCoilsResponse();
break;
case Modbus.READ_INPUT_DISCRETES:
... |
public class class_name {
public boolean proofStep(ResolutionState state)
{
Functor isOp = state.getGoalStack().poll().getFunctor();
// Evaluate the second argument as a fully instantiated numeric value.
Term expressionValue = BuiltInUtils.evaluateAsNumeric(isOp.getArgument(1));
/... | public class class_name {
public boolean proofStep(ResolutionState state)
{
Functor isOp = state.getGoalStack().poll().getFunctor();
// Evaluate the second argument as a fully instantiated numeric value.
Term expressionValue = BuiltInUtils.evaluateAsNumeric(isOp.getArgument(1));
/... |
public class class_name {
public void setRelationships(java.util.Collection<Relationship> relationships) {
if (relationships == null) {
this.relationships = null;
return;
}
this.relationships = new java.util.ArrayList<Relationship>(relationships);
} } | public class class_name {
public void setRelationships(java.util.Collection<Relationship> relationships) {
if (relationships == null) {
this.relationships = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
private static String getName(String name, Field field) {
if (isEmpty(name)) {
name = field.getName();
}
return name;
} } | public class class_name {
private static String getName(String name, Field field) {
if (isEmpty(name)) {
name = field.getName(); // depends on control dependency: [if], data = [none]
}
return name;
} } |
public class class_name {
public void marshall(CreateGovCloudAccountRequest createGovCloudAccountRequest, ProtocolMarshaller protocolMarshaller) {
if (createGovCloudAccountRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(CreateGovCloudAccountRequest createGovCloudAccountRequest, ProtocolMarshaller protocolMarshaller) {
if (createGovCloudAccountRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public static <T extends Executable> Predicate<T> executableHasSameParameterTypesAs(T reference) {
return candidate -> {
if (candidate == null) {
return false;
}
Class<?>[] candidateParameterTypes = candidate.getParameterTypes();
... | public class class_name {
public static <T extends Executable> Predicate<T> executableHasSameParameterTypesAs(T reference) {
return candidate -> {
if (candidate == null) {
return false;
}
Class<?>[] candidateParameterTypes = candidate.getParameterTypes();
... |
public class class_name {
public Map<String, Object> getModuleFieldsFilters() {
final Map<String, Object> params = new HashMap<String, Object>();
for(final Filter filter: filters){
params.putAll(filter.moduleFilterFields());
}
return params;
} } | public class class_name {
public Map<String, Object> getModuleFieldsFilters() {
final Map<String, Object> params = new HashMap<String, Object>();
for(final Filter filter: filters){
params.putAll(filter.moduleFilterFields()); // depends on control dependency: [for], data = [filter]
... |
public class class_name {
public void setProviders(Map<String, IPermissionTargetProvider> providers) {
this.providers.clear();
for (Map.Entry<String, IPermissionTargetProvider> provider : providers.entrySet()) {
this.providers.put(provider.getKey(), provider.getValue());
}
} } | public class class_name {
public void setProviders(Map<String, IPermissionTargetProvider> providers) {
this.providers.clear();
for (Map.Entry<String, IPermissionTargetProvider> provider : providers.entrySet()) {
this.providers.put(provider.getKey(), provider.getValue()); // depends on contr... |
public class class_name {
public boolean generateAndSort(final Iterator<? extends T> iterator, final TransformationStrategy<? super T> transform, final long seed) {
// We cache all variables for faster access
final int[] d = this.d;
final int[] e = new int[3];
cleanUpIfNecessary();
/* We build the XOR'd edg... | public class class_name {
public boolean generateAndSort(final Iterator<? extends T> iterator, final TransformationStrategy<? super T> transform, final long seed) {
// We cache all variables for faster access
final int[] d = this.d;
final int[] e = new int[3];
cleanUpIfNecessary();
/* We build the XOR'd edg... |
public class class_name {
@FFDCIgnore({ IOException.class, InterruptedException.class })
public static List<String> executeProgramWithInput(String input, String... commandLine) throws OperatingSystemException {
try {
ProcessBuilder builder = new ProcessBuilder();
builder.command(co... | public class class_name {
@FFDCIgnore({ IOException.class, InterruptedException.class })
public static List<String> executeProgramWithInput(String input, String... commandLine) throws OperatingSystemException {
try {
ProcessBuilder builder = new ProcessBuilder();
builder.command(co... |
public class class_name {
public static List<String> tokenize_path(String path) {
String[] tokens = path.split(SEPARATOR);
java.util.ArrayList<String> rtn = new ArrayList<>();
for (String str : tokens) {
if (!str.isEmpty()) {
rtn.add(str);
}
}
... | public class class_name {
public static List<String> tokenize_path(String path) {
String[] tokens = path.split(SEPARATOR);
java.util.ArrayList<String> rtn = new ArrayList<>();
for (String str : tokens) {
if (!str.isEmpty()) {
rtn.add(str); // depends on control depen... |
public class class_name {
public Set<String> getNamesPerSurname(final String surname) {
if (surname == null) {
return Collections.emptySet();
}
if (!surnameIndex.containsKey(surname)) {
return Collections.emptySet();
}
return Collections.unmodifiableSet(s... | public class class_name {
public Set<String> getNamesPerSurname(final String surname) {
if (surname == null) {
return Collections.emptySet(); // depends on control dependency: [if], data = [none]
}
if (!surnameIndex.containsKey(surname)) {
return Collections.emptySet(); ... |
public class class_name {
@VisibleForTesting
static boolean viewMatches(URI view, String requested) {
// test that the requested options are a subset of the final options
Map<String, String> requestedOptions = optionsForUri(URI.create(requested));
Map<String, String> finalOptions = optionsForUri(view);
... | public class class_name {
@VisibleForTesting
static boolean viewMatches(URI view, String requested) {
// test that the requested options are a subset of the final options
Map<String, String> requestedOptions = optionsForUri(URI.create(requested));
Map<String, String> finalOptions = optionsForUri(view);
... |
public class class_name {
protected void loadCharacterData()
{
frc = new FontRenderContext(null, true, true);
float totalWidth = 0;
for (char c = 0; c < 256; c++)
{
String s = "" + c;
LineMetrics lm = font.getLineMetrics(s, frc);
Rectangle2D bounds = font.getStringBounds(s, frc);
CharData cd = ne... | public class class_name {
protected void loadCharacterData()
{
frc = new FontRenderContext(null, true, true);
float totalWidth = 0;
for (char c = 0; c < 256; c++)
{
String s = "" + c;
LineMetrics lm = font.getLineMetrics(s, frc);
Rectangle2D bounds = font.getStringBounds(s, frc);
CharData cd = ne... |
public class class_name {
public void setWorkingDirectory(Path dir) {
if (!dir.isAbsolute()) {
FileSystem.LogForCollect
.info("set job working directory to non absolute path: " + dir
+ " working directory: " + getWorkingDirectory());
}
dir = new Path(getWorkingDirectory(), dir... | public class class_name {
public void setWorkingDirectory(Path dir) {
if (!dir.isAbsolute()) {
FileSystem.LogForCollect
.info("set job working directory to non absolute path: " + dir
+ " working directory: " + getWorkingDirectory()); // depends on control dependency: [if], data = [non... |
public class class_name {
public void processResponseEvent(HttpClientNIOResponseEvent event, HttpClientNIORequestActivityImpl activity) {
HttpClientNIORequestActivityHandle ah = new HttpClientNIORequestActivityHandle(activity.getId());
if (tracer.isFineEnabled())
tracer.fine("==== FI... | public class class_name {
public void processResponseEvent(HttpClientNIOResponseEvent event, HttpClientNIORequestActivityImpl activity) {
HttpClientNIORequestActivityHandle ah = new HttpClientNIORequestActivityHandle(activity.getId());
if (tracer.isFineEnabled())
tracer.fine("==== FI... |
public class class_name {
public String[] decodeSequences(final String[] preds) {
final List<String> decodedSequences = new ArrayList<>();
for (String pred : preds) {
pred = startPattern.matcher(pred).replaceAll("B-$1");
pred = contPattern.matcher(pred).replaceAll("I-$1");
pred = lastPattern.... | public class class_name {
public String[] decodeSequences(final String[] preds) {
final List<String> decodedSequences = new ArrayList<>();
for (String pred : preds) {
pred = startPattern.matcher(pred).replaceAll("B-$1"); // depends on control dependency: [for], data = [pred]
pred = contPattern.matc... |
public class class_name {
public EClass getBRS() {
if (brsEClass == null) {
brsEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(222);
}
return brsEClass;
} } | public class class_name {
public EClass getBRS() {
if (brsEClass == null) {
brsEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(222); // depends on control dependency: [if], data = [none]
}
return brsEClass;
} } |
public class class_name {
public Diff build() {
final DOMDifferenceEngine d = new DOMDifferenceEngine();
final CollectResultsListener collectResultsListener = new CollectResultsListener(comparisonResultsToCheck);
d.addDifferenceListener(collectResultsListener);
if (nodeMatcher != null)... | public class class_name {
public Diff build() {
final DOMDifferenceEngine d = new DOMDifferenceEngine();
final CollectResultsListener collectResultsListener = new CollectResultsListener(comparisonResultsToCheck);
d.addDifferenceListener(collectResultsListener);
if (nodeMatcher != null)... |
public class class_name {
boolean isUniqueWithColumns(int[] cols) {
if (constType != UNIQUE || core.mainCols.length != cols.length) {
return false;
}
return ArrayUtil.haveEqualSets(core.mainCols, cols, cols.length);
} } | public class class_name {
boolean isUniqueWithColumns(int[] cols) {
if (constType != UNIQUE || core.mainCols.length != cols.length) {
return false; // depends on control dependency: [if], data = [none]
}
return ArrayUtil.haveEqualSets(core.mainCols, cols, cols.length);
} } |
public class class_name {
public static String resolveUrl(String genericUrl, MessageParameters parameters) {
Preconditions.checkState(parameters.isResolved(), "Not all mandatory message parameters were resolved.");
StringBuilder path = new StringBuilder(genericUrl);
StringBuilder queryParameters = new StringBuil... | public class class_name {
public static String resolveUrl(String genericUrl, MessageParameters parameters) {
Preconditions.checkState(parameters.isResolved(), "Not all mandatory message parameters were resolved.");
StringBuilder path = new StringBuilder(genericUrl);
StringBuilder queryParameters = new StringBuil... |
public class class_name {
public String getUrlForPageReference(String pageReference) {
String url = pageReferenceToPageUrlMap.get(pageReference);
if (url == null) {
fail("No url is found for page name: '" + pageReference + "'. Available page references are: " + pageReferenceToPageUrlMap.key... | public class class_name {
public String getUrlForPageReference(String pageReference) {
String url = pageReferenceToPageUrlMap.get(pageReference);
if (url == null) {
fail("No url is found for page name: '" + pageReference + "'. Available page references are: " + pageReferenceToPageUrlMap.key... |
public class class_name {
public static void topBorderLabel(
final LabelPositionCollector labels, final GeometryFactory geometryFactory,
final Polygon rotatedBounds, final String unit, final double x,
final AffineTransform worldToScreenTransform,
final MathTransform toLa... | public class class_name {
public static void topBorderLabel(
final LabelPositionCollector labels, final GeometryFactory geometryFactory,
final Polygon rotatedBounds, final String unit, final double x,
final AffineTransform worldToScreenTransform,
final MathTransform toLa... |
public class class_name {
private Map<ScopeService, Service> createServices(final Set<ScopeService> services) {
Map<ScopeService, Service> actualServices = Maps.newTreeMap();
for (ScopeService requiredService : services) {
if (availableServices.containsKey(requiredService)) {
for (ScopeService a... | public class class_name {
private Map<ScopeService, Service> createServices(final Set<ScopeService> services) {
Map<ScopeService, Service> actualServices = Maps.newTreeMap();
for (ScopeService requiredService : services) {
if (availableServices.containsKey(requiredService)) {
for (ScopeService a... |
public class class_name {
public boolean await(Object taskGroupId, long timeout, TimeUnit unit) {
CountDownLatch latch = taskKeyToLatch.get(taskGroupId);
if (latch == null)
throw new IllegalArgumentException(
"Unknown task group: " + taskGroupId);
try {
i... | public class class_name {
public boolean await(Object taskGroupId, long timeout, TimeUnit unit) {
CountDownLatch latch = taskKeyToLatch.get(taskGroupId);
if (latch == null)
throw new IllegalArgumentException(
"Unknown task group: " + taskGroupId);
try {
i... |
public class class_name {
private static OptionalEntity<RelatedQuery> getEntity(final CreateForm form, final String username, final long currentTime) {
switch (form.crudMode) {
case CrudMode.CREATE:
return OptionalEntity.of(new RelatedQuery()).map(entity -> {
entity.setCreat... | public class class_name {
private static OptionalEntity<RelatedQuery> getEntity(final CreateForm form, final String username, final long currentTime) {
switch (form.crudMode) {
case CrudMode.CREATE:
return OptionalEntity.of(new RelatedQuery()).map(entity -> {
entity.setCreat... |
public class class_name {
public StringColumn set(Selection rowSelection, String newValue) {
for (int row : rowSelection) {
set(row, newValue);
}
return this;
} } | public class class_name {
public StringColumn set(Selection rowSelection, String newValue) {
for (int row : rowSelection) {
set(row, newValue); // depends on control dependency: [for], data = [row]
}
return this;
} } |
public class class_name {
public boolean isCrossPartitionQuery(@NonNull List<String> partitionKeys) {
if (partitionKeys.isEmpty()) {
return true;
}
return partitionKeys.stream().filter(this::isCrossPartitionQuery)
.findFirst()
.map(p -> true)
... | public class class_name {
public boolean isCrossPartitionQuery(@NonNull List<String> partitionKeys) {
if (partitionKeys.isEmpty()) {
return true; // depends on control dependency: [if], data = [none]
}
return partitionKeys.stream().filter(this::isCrossPartitionQuery)
... |
public class class_name {
public static String getFormattedCount(Long count) {
final String unit;
final Double dbl;
final DecimalFormat format = new DecimalFormat("#.#");
if (count < 1000) {
return format.format(count);
} else if (count < 1000000) {
unit ... | public class class_name {
public static String getFormattedCount(Long count) {
final String unit;
final Double dbl;
final DecimalFormat format = new DecimalFormat("#.#");
if (count < 1000) {
return format.format(count); // depends on control dependency: [if], data = [(count]... |
public class class_name {
boolean makeAccessibleWithUnsafe(AccessibleObject ao) {
if (theUnsafe != null && overrideField != null) {
try {
Method method = unsafeClass.getMethod("objectFieldOffset", Field.class);
long overrideOffset = (Long) method.invoke(theUnsafe, overrideField); // long ove... | public class class_name {
boolean makeAccessibleWithUnsafe(AccessibleObject ao) {
if (theUnsafe != null && overrideField != null) {
try {
Method method = unsafeClass.getMethod("objectFieldOffset", Field.class);
long overrideOffset = (Long) method.invoke(theUnsafe, overrideField); // long ove... |
public class class_name {
public void removeWorstFit() {
// find the observation with the most error
int worstIndex=-1;
double worstError = -1;
for( int i = 0; i < y.numRows; i++ ) {
double predictedObs = 0;
for( int j = 0; j < coef.numRows; j++ ) {
... | public class class_name {
public void removeWorstFit() {
// find the observation with the most error
int worstIndex=-1;
double worstError = -1;
for( int i = 0; i < y.numRows; i++ ) {
double predictedObs = 0;
for( int j = 0; j < coef.numRows; j++ ) {
... |
public class class_name {
@Override
public void destroy() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Destroy " + getExternalName());
}
// Destroy the server socket
if (this.endPoint != null) {
this.endPoint.destroyServe... | public class class_name {
@Override
public void destroy() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Destroy " + getExternalName()); // depends on control dependency: [if], data = [none]
}
// Destroy the server socket
if (this.endP... |
public class class_name {
private void setCalTypeAttributes(Variable image, int calType) {
String longName = "image values";
//String unit = "";
switch (calType) {
case Calibrator.CAL_ALB:
longName = "albedo";
//unit = "%";
break;
case Calibrator.CAL_... | public class class_name {
private void setCalTypeAttributes(Variable image, int calType) {
String longName = "image values";
//String unit = "";
switch (calType) {
case Calibrator.CAL_ALB:
longName = "albedo";
//unit = "%";
break;
case Calibrator.CAL_... |
public class class_name {
public T error(int errorRes) {
if (view!=null && view instanceof TextView) {
((TextView) view).setError(context.getString(errorRes));
}
return self();
} } | public class class_name {
public T error(int errorRes) {
if (view!=null && view instanceof TextView) {
((TextView) view).setError(context.getString(errorRes)); // depends on control dependency: [if], data = [none]
}
return self();
} } |
public class class_name {
public void marshall(RegexPatternSetSummary regexPatternSetSummary, ProtocolMarshaller protocolMarshaller) {
if (regexPatternSetSummary == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarsha... | public class class_name {
public void marshall(RegexPatternSetSummary regexPatternSetSummary, ProtocolMarshaller protocolMarshaller) {
if (regexPatternSetSummary == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarsha... |
public class class_name {
public static void divideElements(final int j, final int numRows , final double[] u,
final int startU ,
final double realA, final double imagA ) {
double mag2 = realA*realA + imagA*imagA;
int index =... | public class class_name {
public static void divideElements(final int j, final int numRows , final double[] u,
final int startU ,
final double realA, final double imagA ) {
double mag2 = realA*realA + imagA*imagA;
int index =... |
public class class_name {
public static URI getRelativePath(final URI base, final URI ref) {
final String baseScheme = base.getScheme();
final String refScheme = ref.getScheme();
final String baseAuth = base.getAuthority();
final String refAuth = ref.getAuthority();
if (!(((base... | public class class_name {
public static URI getRelativePath(final URI base, final URI ref) {
final String baseScheme = base.getScheme();
final String refScheme = ref.getScheme();
final String baseAuth = base.getAuthority();
final String refAuth = ref.getAuthority();
if (!(((base... |
public class class_name {
public int doSetData(Object data, boolean bDisplayOption, int iMoveMode)
{
if (!m_bReadOnly)
{
Object bookmark = null;
BaseBuffer buffer = null; // In case a temp buffer is needed
boolean bSuccess = false;
Object oldBuff = th... | public class class_name {
public int doSetData(Object data, boolean bDisplayOption, int iMoveMode)
{
if (!m_bReadOnly)
{
Object bookmark = null;
BaseBuffer buffer = null; // In case a temp buffer is needed
boolean bSuccess = false;
Object oldBuff = th... |
public class class_name {
public final String getApiMessageId() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getApiMessageId");
String value = null;
/* The ApiMessageId is held as hexBinary & so we need to convert to an */
/* I... | public class class_name {
public final String getApiMessageId() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getApiMessageId");
String value = null;
/* The ApiMessageId is held as hexBinary & so we need to convert to an */
/* I... |
public class class_name {
public UOWCoordinator getUOWCoord()
{
if (tc.isEntryEnabled()) Tr.entry(tc, "getUOWCoord", this);
UOWCoordinator uow = (UOWCoordinator)_coord;
if (uow == null)
{
// see if there is a global tran ...
if (_currentTM != null)
... | public class class_name {
public UOWCoordinator getUOWCoord()
{
if (tc.isEntryEnabled()) Tr.entry(tc, "getUOWCoord", this);
UOWCoordinator uow = (UOWCoordinator)_coord;
if (uow == null)
{
// see if there is a global tran ...
if (_currentTM != null)
... |
public class class_name {
private ResourceGrant waitForJTGrant(
ResourceTracker resourceTracker,
SessionDriver sessionDriver,
List<ResourceGrant> previousGrants)
throws IOException, InterruptedException {
LOG.info("Waiting for JT grant for " + attemptJobId);
ResourceRequest req = resource... | public class class_name {
private ResourceGrant waitForJTGrant(
ResourceTracker resourceTracker,
SessionDriver sessionDriver,
List<ResourceGrant> previousGrants)
throws IOException, InterruptedException {
LOG.info("Waiting for JT grant for " + attemptJobId);
ResourceRequest req = resource... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.