code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
private void readUDFTypes(FieldContainer mpxj, List<UDFAssignmentType> udfs)
{
for (UDFAssignmentType udf : udfs)
{
FieldType fieldType = m_fieldTypeMap.get(Integer.valueOf(udf.getTypeObjectId()));
if (fieldType != null)
{
mpxj.set(fieldTy... | public class class_name {
private void readUDFTypes(FieldContainer mpxj, List<UDFAssignmentType> udfs)
{
for (UDFAssignmentType udf : udfs)
{
FieldType fieldType = m_fieldTypeMap.get(Integer.valueOf(udf.getTypeObjectId()));
if (fieldType != null)
{
mpxj.set(fieldTy... |
public class class_name {
public static void extractFile(File zipFile,
String entryName,
File destination) throws IOException {
ZipFile zip = new ZipFile(zipFile);
try {
ZipEntry entry = zip.getEntry(entryName);
... | public class class_name {
public static void extractFile(File zipFile,
String entryName,
File destination) throws IOException {
ZipFile zip = new ZipFile(zipFile);
try {
ZipEntry entry = zip.getEntry(entryName);
... |
public class class_name {
@Override
PaxDate plusMonths(long monthsToAdd) {
if (monthsToAdd == 0) {
return this;
}
long calcMonths = Math.addExact(getProlepticMonth(), monthsToAdd);
// "Regularize" the month count, as if years were all 13 months long.
long monthsR... | public class class_name {
@Override
PaxDate plusMonths(long monthsToAdd) {
if (monthsToAdd == 0) {
return this; // depends on control dependency: [if], data = [none]
}
long calcMonths = Math.addExact(getProlepticMonth(), monthsToAdd);
// "Regularize" the month count, as ... |
public class class_name {
public <U, E extends Exception> List<Pair<T, U>> rightJoin(final Collection<U> b, final Try.BiPredicate<? super T, ? super U, E> predicate) throws E {
final List<Pair<T, U>> result = new ArrayList<>(N.size(b));
if (N.isNullOrEmpty(b)) {
return result;
... | public class class_name {
public <U, E extends Exception> List<Pair<T, U>> rightJoin(final Collection<U> b, final Try.BiPredicate<? super T, ? super U, E> predicate) throws E {
final List<Pair<T, U>> result = new ArrayList<>(N.size(b));
if (N.isNullOrEmpty(b)) {
return result;
... |
public class class_name {
public OffsetDateTime getOffsetDateTime(final String fieldName) {
try {
if (_jsonObject.isNull(fieldName)) {
return null;
} else {
return OffsetDateTime.parse(_jsonObject.getString(fieldName), DATE_TIME_FORMATTER);
}
} catch (JSONException ex) {
... | public class class_name {
public OffsetDateTime getOffsetDateTime(final String fieldName) {
try {
if (_jsonObject.isNull(fieldName)) {
return null; // depends on control dependency: [if], data = [none]
} else {
return OffsetDateTime.parse(_jsonObject.getString(fieldName), DATE_TIME_FORM... |
public class class_name {
public static InsnList tableSwitch(InsnList indexInsnList, InsnList defaultInsnList, int caseStartIdx, InsnList... caseInsnLists) {
Validate.notNull(defaultInsnList);
Validate.notNull(indexInsnList);
Validate.isTrue(caseStartIdx >= 0);
Validate.notNull(caseInsn... | public class class_name {
public static InsnList tableSwitch(InsnList indexInsnList, InsnList defaultInsnList, int caseStartIdx, InsnList... caseInsnLists) {
Validate.notNull(defaultInsnList);
Validate.notNull(indexInsnList);
Validate.isTrue(caseStartIdx >= 0);
Validate.notNull(caseInsn... |
public class class_name {
protected final HtmlTemplate findTemplate(final List<HtmlTemplate> pHtmlTemplates, final Long pId) throws Exception {
for (HtmlTemplate tmpl : pHtmlTemplates) {
if (tmpl.getItsId().equals(pId)) {
return tmpl;
}
}
throw new Exception("Algorithm error/or template... | public class class_name {
protected final HtmlTemplate findTemplate(final List<HtmlTemplate> pHtmlTemplates, final Long pId) throws Exception {
for (HtmlTemplate tmpl : pHtmlTemplates) {
if (tmpl.getItsId().equals(pId)) {
return tmpl; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public void marshall(GetConnectionRequest getConnectionRequest, ProtocolMarshaller protocolMarshaller) {
if (getConnectionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... | public class class_name {
public void marshall(GetConnectionRequest getConnectionRequest, ProtocolMarshaller protocolMarshaller) {
if (getConnectionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... |
public class class_name {
private static boolean isAssignableFrom(TypeVariable<?> type1, TypeVariable<?> type2) {
if (type1.equals(type2)) {
return true;
}
// if a type variable extends another type variable, it cannot declare other bounds
if (type2.getBounds()[0] instanceof... | public class class_name {
private static boolean isAssignableFrom(TypeVariable<?> type1, TypeVariable<?> type2) {
if (type1.equals(type2)) {
return true; // depends on control dependency: [if], data = [none]
}
// if a type variable extends another type variable, it cannot declare ot... |
public class class_name {
public static boolean equalsIgnoreCase(String name, Iterable<String> patterns) {
for (String pattern : patterns) {
if (name.equalsIgnoreCase(pattern)) {
return true;
}
}
return false;
} } | public class class_name {
public static boolean equalsIgnoreCase(String name, Iterable<String> patterns) {
for (String pattern : patterns) {
if (name.equalsIgnoreCase(pattern)) {
return true; // depends on control dependency: [if], data = [none]
}
}
retu... |
public class class_name {
@Override
public final InternalQueryCache createNew(String cacheId) {
try {
QueryCacheConfig queryCacheConfig = initQueryCacheConfig(request, cacheId);
if (queryCacheConfig == null) {
// no matching configuration was found, `null` will
... | public class class_name {
@Override
public final InternalQueryCache createNew(String cacheId) {
try {
QueryCacheConfig queryCacheConfig = initQueryCacheConfig(request, cacheId);
if (queryCacheConfig == null) {
// no matching configuration was found, `null` will
... |
public class class_name {
public int[] updateBatch(@SQL @NotNull String sql, @NotNull List<? extends List<?>> argumentLists) {
SqlQuery query = SqlQuery.query(sql, "<batch-update>");
return withCurrentTransaction(query, tx -> {
logQuery(query);
try (PreparedStatement ps = tx.... | public class class_name {
public int[] updateBatch(@SQL @NotNull String sql, @NotNull List<? extends List<?>> argumentLists) {
SqlQuery query = SqlQuery.query(sql, "<batch-update>");
return withCurrentTransaction(query, tx -> {
logQuery(query);
try (PreparedStatement ps = tx.... |
public class class_name {
public boolean isTransitionRequired(@Nullable TransitionValues startValues, @Nullable TransitionValues endValues) {
boolean valuesChanged = false;
// if startValues null, then transition didn't care to stash values,
// and won't get canceled
if (startValues != ... | public class class_name {
public boolean isTransitionRequired(@Nullable TransitionValues startValues, @Nullable TransitionValues endValues) {
boolean valuesChanged = false;
// if startValues null, then transition didn't care to stash values,
// and won't get canceled
if (startValues != ... |
public class class_name {
public ListApplicationsResult withApplications(String... applications) {
if (this.applications == null) {
setApplications(new com.amazonaws.internal.SdkInternalList<String>(applications.length));
}
for (String ele : applications) {
this.applicat... | public class class_name {
public ListApplicationsResult withApplications(String... applications) {
if (this.applications == null) {
setApplications(new com.amazonaws.internal.SdkInternalList<String>(applications.length)); // depends on control dependency: [if], data = [none]
}
for (... |
public class class_name {
public static List<AbstractPlugin> getActiveScanRules(AddOn addOn, AddOnClassLoader addOnClassLoader) {
validateNotNull(addOn, "addOn");
validateNotNull(addOnClassLoader, "addOnClassLoader");
synchronized (addOn) {
if (addOn.isLoadedAscanrulesSet()) {
... | public class class_name {
public static List<AbstractPlugin> getActiveScanRules(AddOn addOn, AddOnClassLoader addOnClassLoader) {
validateNotNull(addOn, "addOn");
validateNotNull(addOnClassLoader, "addOnClassLoader");
synchronized (addOn) {
if (addOn.isLoadedAscanrulesSet()) {
... |
public class class_name {
public int calculateDxToMakeVisible(View view, int snapPreference) {
final RecyclerView.LayoutManager layoutManager = getLayoutManager();
if (!layoutManager.canScrollHorizontally()) {
return 0;
}
final RecyclerView.LayoutParams params = (RecyclerVie... | public class class_name {
public int calculateDxToMakeVisible(View view, int snapPreference) {
final RecyclerView.LayoutManager layoutManager = getLayoutManager();
if (!layoutManager.canScrollHorizontally()) {
return 0; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
@Override
public CommerceWishList fetchByU_LtC_First(long userId, Date createDate,
OrderByComparator<CommerceWishList> orderByComparator) {
List<CommerceWishList> list = findByU_LtC(userId, createDate, 0, 1,
orderByComparator);
if (!list.isEmpty()) {
return list.get(0);
}
... | public class class_name {
@Override
public CommerceWishList fetchByU_LtC_First(long userId, Date createDate,
OrderByComparator<CommerceWishList> orderByComparator) {
List<CommerceWishList> list = findByU_LtC(userId, createDate, 0, 1,
orderByComparator);
if (!list.isEmpty()) {
return list.get(0); // depe... |
public class class_name {
private static final String encode(String s) {
try {
return URLEncoder.encode(s, UTF_8);
} catch (UnsupportedEncodingException e) {
throw new Error("JVM unable to handle UTF-8");
}
} } | public class class_name {
private static final String encode(String s) {
try {
return URLEncoder.encode(s, UTF_8); // depends on control dependency: [try], data = [none]
} catch (UnsupportedEncodingException e) {
throw new Error("JVM unable to handle UTF-8");
} // depends on control dependency:... |
public class class_name {
private static int combineBins(
int leftBinCount,
float[] leftPositions,
long[] leftBins,
int rightBinCount,
float[] rightPositions,
long[] rightBins,
float[] mergedPositions,
long[] mergedBins,
float[] deltas
)
{
int i = 0;
in... | public class class_name {
private static int combineBins(
int leftBinCount,
float[] leftPositions,
long[] leftBins,
int rightBinCount,
float[] rightPositions,
long[] rightBins,
float[] mergedPositions,
long[] mergedBins,
float[] deltas
)
{
int i = 0;
in... |
public class class_name {
public AnnotationVisitor visitTypeAnnotation(
final int typeRef, final TypePath typePath, final String descriptor, final boolean visible) {
if (api < Opcodes.ASM5) {
throw new UnsupportedOperationException(REQUIRES_ASM5);
}
if (mv != null) {
return mv.visitTypeAn... | public class class_name {
public AnnotationVisitor visitTypeAnnotation(
final int typeRef, final TypePath typePath, final String descriptor, final boolean visible) {
if (api < Opcodes.ASM5) {
throw new UnsupportedOperationException(REQUIRES_ASM5);
}
if (mv != null) {
return mv.visitTypeAn... |
public class class_name {
@Override
public void evaluate(DoubleSolution solution) {
int numberOfVariables = solution.getNumberOfVariables();
int numberOfObjectives = solution.getNumberOfObjectives();
double[] x = new double[numberOfVariables];
double[] f = new double[numberOfObjectives];
... | public class class_name {
@Override
public void evaluate(DoubleSolution solution) {
int numberOfVariables = solution.getNumberOfVariables();
int numberOfObjectives = solution.getNumberOfObjectives();
double[] x = new double[numberOfVariables];
double[] f = new double[numberOfObjectives];
... |
public class class_name {
public void addListener(Record record, FileListener listener)
{
super.addListener(record, listener);
if (listener.getOwner() == this.getRecord()) // Only replicate listeners added to base.
{
Iterator<BaseTable> iterator = this.getTables();
... | public class class_name {
public void addListener(Record record, FileListener listener)
{
super.addListener(record, listener);
if (listener.getOwner() == this.getRecord()) // Only replicate listeners added to base.
{
Iterator<BaseTable> iterator = this.getTables();
... |
public class class_name {
@Override
public int countMissing() {
int count = 0;
for (int i = 0; i < size(); i++) {
if (valueIsMissing(getByte(i))) {
count++;
}
}
return count;
} } | public class class_name {
@Override
public int countMissing() {
int count = 0;
for (int i = 0; i < size(); i++) {
if (valueIsMissing(getByte(i))) {
count++; // depends on control dependency: [if], data = [none]
}
}
return count;
} } |
public class class_name {
public View getView(int id, int timeout) {
View v = null;
int RETRY_PERIOD = 250;
int retryNum = timeout / RETRY_PERIOD;
for (int i = 0; i < retryNum; i++) {
try {
v = super.getView(id);
} catch (Exception e) {}
... | public class class_name {
public View getView(int id, int timeout) {
View v = null;
int RETRY_PERIOD = 250;
int retryNum = timeout / RETRY_PERIOD;
for (int i = 0; i < retryNum; i++) {
try {
v = super.getView(id); // depends on control dependency: [try], data... |
public class class_name {
void get_cluster_features(final Context ctx,
final List<Integer> cluster4,
final List<Integer> cluster6,
final List<Integer> cluster,
List<Integer> features)
{
i... | public class class_name {
void get_cluster_features(final Context ctx,
final List<Integer> cluster4,
final List<Integer> cluster6,
final List<Integer> cluster,
List<Integer> features)
{
i... |
public class class_name {
public List<Group> getGroupsNotInPathProfile(
int profileId, int pathId) {
ArrayList<Group> allGroups = new ArrayList<Group>(findAllGroups());
ArrayList<Group> groupsNotInProfile = new ArrayList<Group>();
int[] groupIds = Utils.arrayFromStringOfIntegers(getGrou... | public class class_name {
public List<Group> getGroupsNotInPathProfile(
int profileId, int pathId) {
ArrayList<Group> allGroups = new ArrayList<Group>(findAllGroups());
ArrayList<Group> groupsNotInProfile = new ArrayList<Group>();
int[] groupIds = Utils.arrayFromStringOfIntegers(getGrou... |
public class class_name {
public void marshall(DescribeComplianceByConfigRuleRequest describeComplianceByConfigRuleRequest, ProtocolMarshaller protocolMarshaller) {
if (describeComplianceByConfigRuleRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
... | public class class_name {
public void marshall(DescribeComplianceByConfigRuleRequest describeComplianceByConfigRuleRequest, ProtocolMarshaller protocolMarshaller) {
if (describeComplianceByConfigRuleRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
... |
public class class_name {
public void showOptions() {
showOptionsHeader();
for (Option option : options) {
System.out.println(option.getInformation());
}
} } | public class class_name {
public void showOptions() {
showOptionsHeader();
for (Option option : options) {
System.out.println(option.getInformation()); // depends on control dependency: [for], data = [option]
}
} } |
public class class_name {
protected void onDDPConnect(DDPStateSingleton ddp) {
if (!ddp.isLoggedIn()) {
// override this to handle first time connection (usually to subscribe)
// if we have a login resume token, use it
String resumeToken = ddp.getResumeToken();
i... | public class class_name {
protected void onDDPConnect(DDPStateSingleton ddp) {
if (!ddp.isLoggedIn()) {
// override this to handle first time connection (usually to subscribe)
// if we have a login resume token, use it
String resumeToken = ddp.getResumeToken();
i... |
public class class_name {
public void findRouteWith(NavigationRoute.Builder builder) {
if (builder != null) {
navigationRoute = builder.build();
navigationRoute.getRoute(directionsResponseCallback);
}
} } | public class class_name {
public void findRouteWith(NavigationRoute.Builder builder) {
if (builder != null) {
navigationRoute = builder.build(); // depends on control dependency: [if], data = [none]
navigationRoute.getRoute(directionsResponseCallback); // depends on control dependency: [if], data = [no... |
public class class_name {
public SingleFieldConstraint getLHSBoundField(final String var) {
if (this.lhs == null) {
return null;
}
for (int i = 0; i < this.lhs.length; i++) {
IPattern pat = this.lhs[i];
SingleFieldConstraint fieldConstraint = getLHSBoundFiel... | public class class_name {
public SingleFieldConstraint getLHSBoundField(final String var) {
if (this.lhs == null) {
return null; // depends on control dependency: [if], data = [none]
}
for (int i = 0; i < this.lhs.length; i++) {
IPattern pat = this.lhs[i];
S... |
public class class_name {
protected Response ok(List<Object> entityList) {
for (int i = 0; i < entityList.size(); i++) {
entityList.set(i, mapResponseEntity(entityList.get(i)));
}
return buildResponse(Response.ok(entityList));
} } | public class class_name {
protected Response ok(List<Object> entityList) {
for (int i = 0; i < entityList.size(); i++) {
entityList.set(i, mapResponseEntity(entityList.get(i))); // depends on control dependency: [for], data = [i]
}
return buildResponse(Response.ok(entityList));
... |
public class class_name {
@Override
public void persistJoinTable(JoinTableData joinTableData)
{
String joinTableName = joinTableData.getJoinTableName();
String joinColumnName = joinTableData.getJoinColumnName();
String invJoinColumnName = joinTableData.getInverseJoinColumnName();
... | public class class_name {
@Override
public void persistJoinTable(JoinTableData joinTableData)
{
String joinTableName = joinTableData.getJoinTableName();
String joinColumnName = joinTableData.getJoinColumnName();
String invJoinColumnName = joinTableData.getInverseJoinColumnName();
... |
public class class_name {
public static Options getOptions() {
final Options options = new Options();
options.addOption(CLI_OPTION_CLASSPATH_SHORT, CLI_OPTION_CLASSPATH_LONG, true,
Messages.Boot_24);
options.addOption(CLI_OPTION_EMBEDDED_SHORT, CLI_OPTION_EMBEDDED_LONG, false,
Messages.Boot_5);
opti... | public class class_name {
public static Options getOptions() {
final Options options = new Options();
options.addOption(CLI_OPTION_CLASSPATH_SHORT, CLI_OPTION_CLASSPATH_LONG, true,
Messages.Boot_24);
options.addOption(CLI_OPTION_EMBEDDED_SHORT, CLI_OPTION_EMBEDDED_LONG, false,
Messages.Boot_5);
opti... |
public class class_name {
public void setRootNode(TreeElement rootNode)
{
_rootNode = rootNode;
if (rootNode.getName() == null) {
rootNode.setName("0");
}
} } | public class class_name {
public void setRootNode(TreeElement rootNode)
{
_rootNode = rootNode;
if (rootNode.getName() == null) {
rootNode.setName("0"); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public static boolean simpleMatch(Collection<String> patterns, String str) {
if (patterns != null) {
for (String pattern : patterns) {
if (simpleMatch(pattern, str)) {
return true;
}
}
}
return... | public class class_name {
public static boolean simpleMatch(Collection<String> patterns, String str) {
if (patterns != null) {
for (String pattern : patterns) {
if (simpleMatch(pattern, str)) {
return true; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public ClusterParameterGroupStatus withClusterParameterStatusList(ClusterParameterStatus... clusterParameterStatusList) {
if (this.clusterParameterStatusList == null) {
setClusterParameterStatusList(new com.amazonaws.internal.SdkInternalList<ClusterParameterStatus>(cluster... | public class class_name {
public ClusterParameterGroupStatus withClusterParameterStatusList(ClusterParameterStatus... clusterParameterStatusList) {
if (this.clusterParameterStatusList == null) {
setClusterParameterStatusList(new com.amazonaws.internal.SdkInternalList<ClusterParameterStatus>(cluster... |
public class class_name {
private static StringBuilder displayServiceProperties(ServiceReference reference) {
StringBuilder sb = new StringBuilder();
for (String propertyKey : reference.getPropertyKeys()) {
sb.append(String.format("%s = %s%n", propertyKey, reference.getProperty(propertyKe... | public class class_name {
private static StringBuilder displayServiceProperties(ServiceReference reference) {
StringBuilder sb = new StringBuilder();
for (String propertyKey : reference.getPropertyKeys()) {
sb.append(String.format("%s = %s%n", propertyKey, reference.getProperty(propertyKe... |
public class class_name {
@Override
public List<Object> findByRelation(String colName, Object colValue, Class entityClazz)
{
EntityMetadata m = KunderaMetadataManager.getEntityMetadata(kunderaMetadata, entityClazz);
String tableName = HBaseUtils.getHTableName(m.getSchema(), m.getTableName());
... | public class class_name {
@Override
public List<Object> findByRelation(String colName, Object colValue, Class entityClazz)
{
EntityMetadata m = KunderaMetadataManager.getEntityMetadata(kunderaMetadata, entityClazz);
String tableName = HBaseUtils.getHTableName(m.getSchema(), m.getTableName());
... |
public class class_name {
public final DSLMapParser.value_chunk_return value_chunk() throws RecognitionException {
DSLMapParser.value_chunk_return retval = new DSLMapParser.value_chunk_return();
retval.start = input.LT(1);
Object root_0 = null;
Token EQUALS21=null;
Token COMMA22=null;
Token DOT23=null;
... | public class class_name {
public final DSLMapParser.value_chunk_return value_chunk() throws RecognitionException {
DSLMapParser.value_chunk_return retval = new DSLMapParser.value_chunk_return();
retval.start = input.LT(1);
Object root_0 = null;
Token EQUALS21=null;
Token COMMA22=null;
Token DOT23=null;
... |
public class class_name {
public String format(INDArray arr, boolean summarize) {
if(arr.isEmpty())
return EMPTY_ARRAY_STR;
this.scientificFormat = "0.";
int addPrecision = this.precision;
while (addPrecision > 0) {
this.scientificFormat += "#";
addPr... | public class class_name {
public String format(INDArray arr, boolean summarize) {
if(arr.isEmpty())
return EMPTY_ARRAY_STR;
this.scientificFormat = "0.";
int addPrecision = this.precision;
while (addPrecision > 0) {
this.scientificFormat += "#";
addPr... |
public class class_name {
private void addRelevantProjectDependenciesToClasspath( List<Path> path )
throws MojoExecutionException
{
if ( this.includeProjectDependencies )
{
getLog().debug( "Project Dependencies will be included." );
List<Artifact> artifacts = new Ar... | public class class_name {
private void addRelevantProjectDependenciesToClasspath( List<Path> path )
throws MojoExecutionException
{
if ( this.includeProjectDependencies )
{
getLog().debug( "Project Dependencies will be included." );
List<Artifact> artifacts = new Ar... |
public class class_name {
@Override
protected void configure(ValueParser values) {
String altkey = values.getString("key");
if (altkey != null) {
setKey(altkey);
}
// allow changing skin key in the configuration
String altSkinKey = values.getString("skinKey");
if (altSkinKey != null) {... | public class class_name {
@Override
protected void configure(ValueParser values) {
String altkey = values.getString("key");
if (altkey != null) {
setKey(altkey); // depends on control dependency: [if], data = [(altkey]
}
// allow changing skin key in the configuration
String altSkinKey = v... |
public class class_name {
static int adjustEnd(String msg, int start, int originEnd) {
if (originEnd == msg.length()) {
// Already end of message.
return originEnd;
}
if (msg.charAt(originEnd) == '\n') {
// Already prior to '\n'.
return originEnd;
}
// Search back for '\n'.
... | public class class_name {
static int adjustEnd(String msg, int start, int originEnd) {
if (originEnd == msg.length()) {
// Already end of message.
return originEnd; // depends on control dependency: [if], data = [none]
}
if (msg.charAt(originEnd) == '\n') {
// Already prior to '\n'.
... |
public class class_name {
public void copyProviderDataToBuilder(TemplateBuilder builder,
TemplateBuilderDataProvider templateBuilderDataProvider) {
PageSize size = templateBuilderDataProvider.getPageSize();
if (templateBuilderDataProvider.isLandscape()) {
builder.setPageHeight(size.getWidth());
b... | public class class_name {
public void copyProviderDataToBuilder(TemplateBuilder builder,
TemplateBuilderDataProvider templateBuilderDataProvider) {
PageSize size = templateBuilderDataProvider.getPageSize();
if (templateBuilderDataProvider.isLandscape()) {
builder.setPageHeight(size.getWidth()); // d... |
public class class_name {
public static Config getFixedConfig(@Nullable final AbstractConfiguration ... configs)
{
final CombinedConfiguration cc = new CombinedConfiguration(new OverrideCombiner());
if (configs != null) {
for (final AbstractConfiguration config : configs) {
... | public class class_name {
public static Config getFixedConfig(@Nullable final AbstractConfiguration ... configs)
{
final CombinedConfiguration cc = new CombinedConfiguration(new OverrideCombiner());
if (configs != null) {
for (final AbstractConfiguration config : configs) {
... |
public class class_name {
private boolean checkBuffer(long offset) throws IOException {
if (offset - bufferOffset < 0 || offset - bufferOffset >= currentBufferSize) {
// the given offset is not contained in the buffer
bufferOffset = offset;
int index = 0;
input.seek(offset);
try {
... | public class class_name {
private boolean checkBuffer(long offset) throws IOException {
if (offset - bufferOffset < 0 || offset - bufferOffset >= currentBufferSize) {
// the given offset is not contained in the buffer
bufferOffset = offset;
int index = 0;
input.seek(offset);
try {
... |
public class class_name {
public static CmsResource getResourceWithHistory(CmsObject cms, String resourceUri) throws CmsException {
CmsResource resource = null;
if (resourceUri.contains(CmsRequestUtil.URL_DELIMITER)) {
int pos = resourceUri.indexOf(CmsRequestUtil.URL_DELIMITER);
... | public class class_name {
public static CmsResource getResourceWithHistory(CmsObject cms, String resourceUri) throws CmsException {
CmsResource resource = null;
if (resourceUri.contains(CmsRequestUtil.URL_DELIMITER)) {
int pos = resourceUri.indexOf(CmsRequestUtil.URL_DELIMITER);
... |
public class class_name {
protected boolean narrowArguments(Object[] args) {
boolean narrowed = false;
for (int a = 0; a < args.length; ++a) {
Object arg = args[a];
if (arg instanceof Number) {
Object narg = narrow((Number) arg);
if (narg != arg) {
narrowed = true;
... | public class class_name {
protected boolean narrowArguments(Object[] args) {
boolean narrowed = false;
for (int a = 0; a < args.length; ++a) {
Object arg = args[a];
if (arg instanceof Number) {
Object narg = narrow((Number) arg);
if (narg != arg) {
narrowed = true; // depe... |
public class class_name {
public Shape[] union(Shape target, Shape other) {
target = target.transform(new Transform());
other = other.transform(new Transform());
if (!target.intersects(other)) {
return new Shape[] {target, other};
}
// handle the case where intersects is true but really we'r... | public class class_name {
public Shape[] union(Shape target, Shape other) {
target = target.transform(new Transform());
other = other.transform(new Transform());
if (!target.intersects(other)) {
return new Shape[] {target, other};
// depends on control dependency: [if], data = [none]
}
// ha... |
public class class_name {
@Override
protected String doBuildColumnString(String dm) {
StringBuilder sb = new StringBuilder();
sb.append(dm).append(boostExpr);
sb.append(dm).append(createdBy);
sb.append(dm).append(createdTime);
sb.append(dm).append(sortOrder);
sb.appe... | public class class_name {
@Override
protected String doBuildColumnString(String dm) {
StringBuilder sb = new StringBuilder();
sb.append(dm).append(boostExpr);
sb.append(dm).append(createdBy);
sb.append(dm).append(createdTime);
sb.append(dm).append(sortOrder);
sb.appe... |
public class class_name {
public static Object toPrimitiveDoubleArray(List<?> values)
{
double[] array = new double[values.size()];
int cursor = 0;
for(Object o : values)
{
array[cursor] = (Double) o;
cursor ++;
}
return array;
} ... | public class class_name {
public static Object toPrimitiveDoubleArray(List<?> values)
{
double[] array = new double[values.size()];
int cursor = 0;
for(Object o : values)
{
array[cursor] = (Double) o; // depends on control dependency: [for], data = [o]
... |
public class class_name {
public static YearWeek from(TemporalAccessor temporal) {
if (temporal instanceof YearWeek) {
return (YearWeek) temporal;
}
Objects.requireNonNull(temporal, "temporal");
try {
if (!IsoChronology.INSTANCE.equals(Chronology.from(temporal)))... | public class class_name {
public static YearWeek from(TemporalAccessor temporal) {
if (temporal instanceof YearWeek) {
return (YearWeek) temporal; // depends on control dependency: [if], data = [none]
}
Objects.requireNonNull(temporal, "temporal");
try {
if (!Iso... |
public class class_name {
public static WriteableSymbolTable symbolTableEffectiveCopy(SymbolTable syms) {
if (syms instanceof ImmutableSymbolTable) {
return new UnionSymbolTable(syms);
}
if (syms instanceof UnionSymbolTable) {
return UnionSymbolTable.copyFrom((UnionSymbolTable) syms);
}
... | public class class_name {
public static WriteableSymbolTable symbolTableEffectiveCopy(SymbolTable syms) {
if (syms instanceof ImmutableSymbolTable) {
return new UnionSymbolTable(syms); // depends on control dependency: [if], data = [none]
}
if (syms instanceof UnionSymbolTable) {
return UnionSy... |
public class class_name {
@Override
public boolean onEvent(EventMessage<?> event) {
AuthorizationResultEvent resultEvent;
if (event.getPayload() instanceof AuthorizationResultEvent) {
resultEvent = (AuthorizationResultEvent) event.getPayload();
this.setResult(new Authoriza... | public class class_name {
@Override
public boolean onEvent(EventMessage<?> event) {
AuthorizationResultEvent resultEvent;
if (event.getPayload() instanceof AuthorizationResultEvent) {
resultEvent = (AuthorizationResultEvent) event.getPayload(); // depends on control dependency: [if], d... |
public class class_name {
public JSONObject getGroupUsers(String groupId, HashMap<String, String> options) {
AipRequest request = new AipRequest();
preOperation(request);
request.addBody("group_id", groupId);
if (options != null) {
request.addBody(options);
... | public class class_name {
public JSONObject getGroupUsers(String groupId, HashMap<String, String> options) {
AipRequest request = new AipRequest();
preOperation(request);
request.addBody("group_id", groupId);
if (options != null) {
request.addBody(options); // depen... |
public class class_name {
public String validateEnumValue(char[] cbuf, int start, int end,
boolean normalize,
WordResolver res)
{
/* Better NOT to build temporary Strings quite yet; can resolve
* matches via resolver more effi... | public class class_name {
public String validateEnumValue(char[] cbuf, int start, int end,
boolean normalize,
WordResolver res)
{
/* Better NOT to build temporary Strings quite yet; can resolve
* matches via resolver more effi... |
public class class_name {
private void onSetComment(CfDef cfDef, Properties cfProperties, StringBuilder builder)
{
String comment = cfProperties.getProperty(CassandraConstants.COMMENT);
if (comment != null)
{
if (builder != null)
{
String comment_Str ... | public class class_name {
private void onSetComment(CfDef cfDef, Properties cfProperties, StringBuilder builder)
{
String comment = cfProperties.getProperty(CassandraConstants.COMMENT);
if (comment != null)
{
if (builder != null)
{
String comment_Str ... |
public class class_name {
private String buildTemplates() {
String[] templateString = new String[model.getTemplates().size()];
for (int i = 0; i < (model.getTemplates().size()); i++) {
String templateLoaded = loadTemplateFile(
model.getTemplates().get(i));
if (templateLoaded != null) {
templateStrin... | public class class_name {
private String buildTemplates() {
String[] templateString = new String[model.getTemplates().size()];
for (int i = 0; i < (model.getTemplates().size()); i++) {
String templateLoaded = loadTemplateFile(
model.getTemplates().get(i));
if (templateLoaded != null) {
templateStrin... |
public class class_name {
private void captureUploadStateIfPossible() {
if (origReq.getSSECustomerKey() == null) {
persistableUpload = new PersistableUpload(origReq.getBucketName(),
origReq.getKey(), origReq.getFile()
.getAbsolutePath(), multipartUplo... | public class class_name {
private void captureUploadStateIfPossible() {
if (origReq.getSSECustomerKey() == null) {
persistableUpload = new PersistableUpload(origReq.getBucketName(),
origReq.getKey(), origReq.getFile()
.getAbsolutePath(), multipartUplo... |
public class class_name {
private List<Token> convertFactor(final Token.Factor factor) {
final String item = factor.getValue();
final int itemLength = item.length();
final List<Token> list = new ArrayList<>();
int idx = 0;
StringBuilder noTermC... | public class class_name {
private List<Token> convertFactor(final Token.Factor factor) {
final String item = factor.getValue();
final int itemLength = item.length();
final List<Token> list = new ArrayList<>();
int idx = 0;
StringBuilder noTermC... |
public class class_name {
private boolean isScrollUpEvent(final float x, final float y,
@NonNull final ViewGroup viewGroup) {
int location[] = new int[2];
viewGroup.getLocationOnScreen(location);
if (x >= location[0] && x <= location[0] + viewGroup.getWidth(... | public class class_name {
private boolean isScrollUpEvent(final float x, final float y,
@NonNull final ViewGroup viewGroup) {
int location[] = new int[2];
viewGroup.getLocationOnScreen(location);
if (x >= location[0] && x <= location[0] + viewGroup.getWidth(... |
public class class_name {
protected void arrangeHookPreparedAccessContext(AccessContextArranger arranger, Object hook, Method hookMethod, Cron4jJob job) {
final String moduleName = DfTypeUtil.toClassTitle(hook.getClass());
final AccessContext context = arranger.arrangePreparedAccessContext(new AccessCo... | public class class_name {
protected void arrangeHookPreparedAccessContext(AccessContextArranger arranger, Object hook, Method hookMethod, Cron4jJob job) {
final String moduleName = DfTypeUtil.toClassTitle(hook.getClass());
final AccessContext context = arranger.arrangePreparedAccessContext(new AccessCo... |
public class class_name {
private void closeDeletion(int d) {
// Adapted from Knuth Section 6.4 Algorithm R
Object[] tab = table;
int len = tab.length;
// Look for items to swap into newly vacated slot
// starting at index immediately following deletion,
// and continui... | public class class_name {
private void closeDeletion(int d) {
// Adapted from Knuth Section 6.4 Algorithm R
Object[] tab = table;
int len = tab.length;
// Look for items to swap into newly vacated slot
// starting at index immediately following deletion,
// and continui... |
public class class_name {
public UserPoolClientType withAllowedOAuthScopes(String... allowedOAuthScopes) {
if (this.allowedOAuthScopes == null) {
setAllowedOAuthScopes(new java.util.ArrayList<String>(allowedOAuthScopes.length));
}
for (String ele : allowedOAuthScopes) {
... | public class class_name {
public UserPoolClientType withAllowedOAuthScopes(String... allowedOAuthScopes) {
if (this.allowedOAuthScopes == null) {
setAllowedOAuthScopes(new java.util.ArrayList<String>(allowedOAuthScopes.length)); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public void setValues(PropertyValuesHolder... values) {
int numValues = values.length;
mValues = values;
mValuesMap = new HashMap<String, PropertyValuesHolder>(numValues);
for (int i = 0; i < numValues; ++i) {
PropertyValuesHolder valuesHolder = val... | public class class_name {
public void setValues(PropertyValuesHolder... values) {
int numValues = values.length;
mValues = values;
mValuesMap = new HashMap<String, PropertyValuesHolder>(numValues);
for (int i = 0; i < numValues; ++i) {
PropertyValuesHolder valuesHolder = val... |
public class class_name {
public static int findMaxCol(Sheet sheet) {
int maxCol = 0;
for (int i = 0, ii = sheet.getLastRowNum(); i <= ii; ++i) {
val row = sheet.getRow(i);
if (row == null) continue;
for (int j = row.getLastCellNum() - 1; j > maxCol; --j) {
... | public class class_name {
public static int findMaxCol(Sheet sheet) {
int maxCol = 0;
for (int i = 0, ii = sheet.getLastRowNum(); i <= ii; ++i) {
val row = sheet.getRow(i);
if (row == null) continue;
for (int j = row.getLastCellNum() - 1; j > maxCol; --j) {
... |
public class class_name {
@Override
public final <V> T fromValue(V value) {
checkStatus(Status.INITIALIZED);
try {
@SuppressWarnings("unchecked")
TypeAdapter<T,V> adapter = (TypeAdapter<T, V>) TypeAdapter.createAdapter(this.termClass,value.getClass());
for(T candidate:this.terms.values()) {
if(value.... | public class class_name {
@Override
public final <V> T fromValue(V value) {
checkStatus(Status.INITIALIZED);
try {
@SuppressWarnings("unchecked")
TypeAdapter<T,V> adapter = (TypeAdapter<T, V>) TypeAdapter.createAdapter(this.termClass,value.getClass());
for(T candidate:this.terms.values()) {
if(value.... |
public class class_name {
public void marshall(VoiceConnector voiceConnector, ProtocolMarshaller protocolMarshaller) {
if (voiceConnector == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(voiceConne... | public class class_name {
public void marshall(VoiceConnector voiceConnector, ProtocolMarshaller protocolMarshaller) {
if (voiceConnector == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(voiceConne... |
public class class_name {
public Complex_F64 getEigenvalue(int index ) {
if( is64 )
return ((EigenDecomposition_F64)eig).getEigenvalue(index);
else {
Complex_F64 c = ((EigenDecomposition_F64)eig).getEigenvalue(index);
return new Complex_F64(c.real, c.imaginary);
... | public class class_name {
public Complex_F64 getEigenvalue(int index ) {
if( is64 )
return ((EigenDecomposition_F64)eig).getEigenvalue(index);
else {
Complex_F64 c = ((EigenDecomposition_F64)eig).getEigenvalue(index);
return new Complex_F64(c.real, c.imaginary); // d... |
public class class_name {
protected String toQualifiedName(QName qName) {
String prefix = qName.getPrefix();
if (!StringUtils.hasLength(prefix)) {
return qName.getLocalPart();
} else {
return prefix + ":" + qName.getLocalPart();
}
} } | public class class_name {
protected String toQualifiedName(QName qName) {
String prefix = qName.getPrefix();
if (!StringUtils.hasLength(prefix)) {
return qName.getLocalPart(); // depends on control dependency: [if], data = [none]
} else {
return prefix + ":" + qName.getL... |
public class class_name {
@ObjectiveCName("formatFullServiceMessageWithSenderId:withContent:withIsChannel:")
public String formatFullServiceMessage(int senderId, ServiceContent content, boolean isChannel) {
String groupKey = isChannel ? "channels" : "groups";
if (content instanceof ServiceUserRegis... | public class class_name {
@ObjectiveCName("formatFullServiceMessageWithSenderId:withContent:withIsChannel:")
public String formatFullServiceMessage(int senderId, ServiceContent content, boolean isChannel) {
String groupKey = isChannel ? "channels" : "groups";
if (content instanceof ServiceUserRegis... |
public class class_name {
public InvCatalogImpl readXML(org.jdom2.Document jdomDoc, URI uri) {
// decide on converter based on namespace
Element root = jdomDoc.getRootElement();
if (!root.getName().equalsIgnoreCase("catalog")) {
throw new IllegalArgumentException("not a catalog");
}
String n... | public class class_name {
public InvCatalogImpl readXML(org.jdom2.Document jdomDoc, URI uri) {
// decide on converter based on namespace
Element root = jdomDoc.getRootElement();
if (!root.getName().equalsIgnoreCase("catalog")) {
throw new IllegalArgumentException("not a catalog");
}
String n... |
public class class_name {
public static int getPid()
{
String pid = ManagementFactory.getRuntimeMXBean().getName();
int indexOf = pid.indexOf('@');
if (indexOf > 0) {
pid = pid.substring(0, indexOf);
}
return Integer.parseInt(pid);
} } | public class class_name {
public static int getPid()
{
String pid = ManagementFactory.getRuntimeMXBean().getName();
int indexOf = pid.indexOf('@');
if (indexOf > 0) {
pid = pid.substring(0, indexOf); // depends on control dependency: [if], data = [none]
}
return Integer.parseInt(pid);
} } |
public class class_name {
public static void registerLogListener(@NonNull final Context context, @NonNull final DfuLogListener listener) {
if (mLogBroadcastReceiver == null) {
mLogBroadcastReceiver = new LogBroadcastReceiver();
final IntentFilter filter = new IntentFilter();
filter.addAction(DfuBaseService... | public class class_name {
public static void registerLogListener(@NonNull final Context context, @NonNull final DfuLogListener listener) {
if (mLogBroadcastReceiver == null) {
mLogBroadcastReceiver = new LogBroadcastReceiver(); // depends on control dependency: [if], data = [none]
final IntentFilter filter = ... |
public class class_name {
public void addMemberSummary(TypeElement tElement, Element member,
List<? extends DocTree> firstSentenceTags, List<Content> tableContents, int counter) {
HtmlTree tdSummaryType = new HtmlTree(HtmlTag.TD);
tdSummaryType.addStyle(HtmlStyle.colFirst);
writer.a... | public class class_name {
public void addMemberSummary(TypeElement tElement, Element member,
List<? extends DocTree> firstSentenceTags, List<Content> tableContents, int counter) {
HtmlTree tdSummaryType = new HtmlTree(HtmlTag.TD);
tdSummaryType.addStyle(HtmlStyle.colFirst);
writer.a... |
public class class_name {
public static <T extends Comparable<T>> String toSortedByKeysString(Counter<T> counter, String itemFormat, String joiner, String wrapperFormat) {
List<String> strings = new ArrayList<String>();
for (T key : CollectionUtils.sorted(counter.keySet())) {
strings.add(String.format... | public class class_name {
public static <T extends Comparable<T>> String toSortedByKeysString(Counter<T> counter, String itemFormat, String joiner, String wrapperFormat) {
List<String> strings = new ArrayList<String>();
for (T key : CollectionUtils.sorted(counter.keySet())) {
strings.add(String.format... |
public class class_name {
private void addEs6ModuleImportToGraph(NodeTraversal t, Node n) {
String moduleName = getEs6ModuleNameFromImportNode(t, n);
if (moduleName.startsWith("goog.")) {
t.getInput().addOrderedRequire(Require.BASE);
}
t.getInput().addOrderedRequire(Require.es6Import(moduleName, ... | public class class_name {
private void addEs6ModuleImportToGraph(NodeTraversal t, Node n) {
String moduleName = getEs6ModuleNameFromImportNode(t, n);
if (moduleName.startsWith("goog.")) {
t.getInput().addOrderedRequire(Require.BASE); // depends on control dependency: [if], data = [none]
}
t.getIn... |
public class class_name {
public static int checkPostconditionI(
final int value,
final IntPredicate predicate,
final IntFunction<String> describer)
{
final boolean ok;
try {
ok = predicate.test(value);
} catch (final Throwable e) {
throw failed(
e,
Integer.valueOf... | public class class_name {
public static int checkPostconditionI(
final int value,
final IntPredicate predicate,
final IntFunction<String> describer)
{
final boolean ok;
try {
ok = predicate.test(value); // depends on control dependency: [try], data = [none]
} catch (final Throwable e) {... |
public class class_name {
public final CompletionStage<V> getOrTimeout(Duration timeout, ScheduledExecutorService timeoutExecutor) {
if (GATE_UPDATER.get(this) == GATE_OPEN && timeoutScheduleFuture == null) {
this.timeoutScheduleFuture = timeoutExecutor.schedule(this::emit, timeout.toNanos(), Time... | public class class_name {
public final CompletionStage<V> getOrTimeout(Duration timeout, ScheduledExecutorService timeoutExecutor) {
if (GATE_UPDATER.get(this) == GATE_OPEN && timeoutScheduleFuture == null) {
this.timeoutScheduleFuture = timeoutExecutor.schedule(this::emit, timeout.toNanos(), Time... |
public class class_name {
protected final void populate() {
final int size = size();
mInternalItemList.clear();
mInternalItemList.ensureCapacity(size);
for (int a = 0; a < size; a++) {
mInternalItemList.add(createItem(a));
}
mInternalItemDisplayedList = null;
} } | public class class_name {
protected final void populate() {
final int size = size();
mInternalItemList.clear();
mInternalItemList.ensureCapacity(size);
for (int a = 0; a < size; a++) {
mInternalItemList.add(createItem(a)); // depends on control dependency: [for], data = [a]
}
mInternalItemDisplayedList ... |
public class class_name {
public String getNamespaceURI(String prefix)
{
String uri = null;
try
{
uri = namespaceRegistry.getURI(prefix);
}
catch (NamespaceException exc)
{
uri = namespaces.get(prefix);
}
catch (RepositoryException exc)
... | public class class_name {
public String getNamespaceURI(String prefix)
{
String uri = null;
try
{
uri = namespaceRegistry.getURI(prefix);
// depends on control dependency: [try], data = [none]
}
catch (NamespaceException exc)
{
uri = namespaces.get(pref... |
public class class_name {
public static boolean isAligned(Instant instant, Schedule schedule) {
// executionTime.isMatch ignores seconds for unix cron
// so we fail the check immediately if there is a sub-minute value
if (!instant.truncatedTo(ChronoUnit.MINUTES).equals(instant)) {
return false;
}... | public class class_name {
public static boolean isAligned(Instant instant, Schedule schedule) {
// executionTime.isMatch ignores seconds for unix cron
// so we fail the check immediately if there is a sub-minute value
if (!instant.truncatedTo(ChronoUnit.MINUTES).equals(instant)) {
return false; // de... |
public class class_name {
public synchronized boolean isLoaderFor(final ProviderIdent ident) {
final String[] strings = getClassnames();
for (final String classname : strings) {
try {
if (matchesProviderDeclaration(ident, loadClass(classname))) {
return t... | public class class_name {
public synchronized boolean isLoaderFor(final ProviderIdent ident) {
final String[] strings = getClassnames();
for (final String classname : strings) {
try {
if (matchesProviderDeclaration(ident, loadClass(classname))) {
return t... |
public class class_name {
protected boolean hasStereotype(Element element, List<String> stereotypes) {
if (element == null) {
return false;
}
if (stereotypes.contains(element.toString())) {
return true;
}
AnnotationMetadata annotationMetadata = getAnnotat... | public class class_name {
protected boolean hasStereotype(Element element, List<String> stereotypes) {
if (element == null) {
return false; // depends on control dependency: [if], data = [none]
}
if (stereotypes.contains(element.toString())) {
return true; // depends on ... |
public class class_name {
private Object addNTServiceParameter(NTService ntService, String key, String value) {
if ("runAsNT".equals(key)) {
ntService.setRunAsNT(Boolean.parseBoolean(value));
} else if ("startupType".equals(key)) {
ntService.setStartupType(value);
} else if ("loginAs".equals(key)) {
ntS... | public class class_name {
private Object addNTServiceParameter(NTService ntService, String key, String value) {
if ("runAsNT".equals(key)) {
ntService.setRunAsNT(Boolean.parseBoolean(value)); // depends on control dependency: [if], data = [none]
} else if ("startupType".equals(key)) {
ntService.setStartupTyp... |
public class class_name {
public List<LatLng> getPointsFromMarkers(List<Marker> markers) {
List<LatLng> points = new ArrayList<LatLng>();
for (Marker marker : markers) {
points.add(marker.getPosition());
}
return points;
} } | public class class_name {
public List<LatLng> getPointsFromMarkers(List<Marker> markers) {
List<LatLng> points = new ArrayList<LatLng>();
for (Marker marker : markers) {
points.add(marker.getPosition()); // depends on control dependency: [for], data = [marker]
}
return point... |
public class class_name {
@SuppressWarnings("unused")
private static final void dump(HttpClient client, HttpUriRequest req) {
if (logger.isTraceEnabled()) {
StringBuilder sb = new StringBuilder("\n=== Request ===");
sb.append("\n").append(req.getRequestLine());
for (Header h : req.getAllHeaders... | public class class_name {
@SuppressWarnings("unused")
private static final void dump(HttpClient client, HttpUriRequest req) {
if (logger.isTraceEnabled()) {
StringBuilder sb = new StringBuilder("\n=== Request ===");
sb.append("\n").append(req.getRequestLine()); // depends on control dependency: [if],... |
public class class_name {
private List<LoadBalancer> findLoadBalancers(@Nullable String loadBalancerId) throws CloudException, InternalException {
APITrace.begin(getProvider(), "LB.listLoadBalancers");
try {
// get all vips, optionally filtered by lbId
List<JSONObject> listeners... | public class class_name {
private List<LoadBalancer> findLoadBalancers(@Nullable String loadBalancerId) throws CloudException, InternalException {
APITrace.begin(getProvider(), "LB.listLoadBalancers");
try {
// get all vips, optionally filtered by lbId
List<JSONObject> listeners... |
public class class_name {
private InputSource getCMLType(String type) {
try {
InputStream ins = this.getClass().getClassLoader()
.getResourceAsStream("org/openscience/cdk/io/cml/data/" + type);
return new InputSource(new BufferedReader(new InputStreamReader(ins)));
... | public class class_name {
private InputSource getCMLType(String type) {
try {
InputStream ins = this.getClass().getClassLoader()
.getResourceAsStream("org/openscience/cdk/io/cml/data/" + type);
return new InputSource(new BufferedReader(new InputStreamReader(ins))); /... |
public class class_name {
private void firePropertyChanged(T property)
{
PropertyEvent<T> event = null;
for (PropertyListener<T> l : listeners)
{
if (event == null)
{
event = new PropertyEvent<T>(this, property);
}
... | public class class_name {
private void firePropertyChanged(T property)
{
PropertyEvent<T> event = null;
for (PropertyListener<T> l : listeners)
{
if (event == null)
{
event = new PropertyEvent<T>(this, property);
// depends on control depend... |
public class class_name {
private PreparedStatement prepareStatement(PreparedStatementCveDb key) throws DatabaseException {
PreparedStatement preparedStatement = null;
try {
final String statementString = statementBundle.getString(key.name());
if (key == INSERT_VULNERABILITY || ... | public class class_name {
private PreparedStatement prepareStatement(PreparedStatementCveDb key) throws DatabaseException {
PreparedStatement preparedStatement = null;
try {
final String statementString = statementBundle.getString(key.name());
if (key == INSERT_VULNERABILITY || ... |
public class class_name {
public List<JasperException> getJSPCompilationErrors() {
ArrayList<JasperException> ret = null;
Collection<JasperException> c = jspErrors.values();
if (c != null) {
ret = new ArrayList<JasperException>();
Iterator<JasperException> it = c.itera... | public class class_name {
public List<JasperException> getJSPCompilationErrors() {
ArrayList<JasperException> ret = null;
Collection<JasperException> c = jspErrors.values();
if (c != null) {
ret = new ArrayList<JasperException>(); // depends on control dependency: [if], data = [no... |
public class class_name {
private final static void checkEnvironment() {
// Check java support.!
boolean javaSupport = EnvUtil.isJDK7OrHigher();
if (!javaSupport) {
Log.error("Your Java version (", EnvUtil.getJavaersion(), ") is not supported for Audit4j. ",
ErrorGuide.getGuide(ErrorGuide.JAVA_VERSION_ER... | public class class_name {
private final static void checkEnvironment() {
// Check java support.!
boolean javaSupport = EnvUtil.isJDK7OrHigher();
if (!javaSupport) {
Log.error("Your Java version (", EnvUtil.getJavaersion(), ") is not supported for Audit4j. ",
ErrorGuide.getGuide(ErrorGuide.JAVA_VERSION_ER... |
public class class_name {
public boolean isConnected(String clusterName) {
boolean isConnected = false;
synchronized (connections) {
if (connections.containsKey(clusterName)) {
isConnected = connections.get(clusterName).isConnected();
}
}
return i... | public class class_name {
public boolean isConnected(String clusterName) {
boolean isConnected = false;
synchronized (connections) {
if (connections.containsKey(clusterName)) {
isConnected = connections.get(clusterName).isConnected(); // depends on control dependency: [if], ... |
public class class_name {
protected <T extends Annotation> T extractPropertyAnnotation(Method writeMethod, Method readMethod,
Class<T> annotationClass)
{
T parameterDescription = writeMethod.getAnnotation(annotationClass);
if (parameterDescription == null && readMethod != null) {
... | public class class_name {
protected <T extends Annotation> T extractPropertyAnnotation(Method writeMethod, Method readMethod,
Class<T> annotationClass)
{
T parameterDescription = writeMethod.getAnnotation(annotationClass);
if (parameterDescription == null && readMethod != null) {
... |
public class class_name {
public String createInsertValueStr4ModelEntry(Map dbColMap0,Map<String,MicroDbModelEntry> modelEntryMap){
if(dbColMap0==null){
return null;
}
//add 201902 ning
Map dbColMap=new CaseInsensitiveKeyMap();
if(dbColMap0!=null){
dbColMap.putAll(dbColMap0);
}
Cobj cr... | public class class_name {
public String createInsertValueStr4ModelEntry(Map dbColMap0,Map<String,MicroDbModelEntry> modelEntryMap){
if(dbColMap0==null){
return null;
// depends on control dependency: [if], data = [none]
}
//add 201902 ning
Map dbColMap=new CaseInsensitiveKeyMap();
if(dbColMap0!=null... |
public class class_name {
void restoreDynacacheProviderDefaults() { // restore commonConfig to Dynacache defaults
if (restoreDynacacheDefaults) {
if (cacheProviderName != CacheConfig.CACHE_PROVIDER_DYNACACHE) {
cacheProviderName = CacheConfig.CACHE_PROVIDER_DYNACACHE;
... | public class class_name {
void restoreDynacacheProviderDefaults() { // restore commonConfig to Dynacache defaults
if (restoreDynacacheDefaults) {
if (cacheProviderName != CacheConfig.CACHE_PROVIDER_DYNACACHE) {
cacheProviderName = CacheConfig.CACHE_PROVIDER_DYNACACHE; // depends on ... |
public class class_name {
@Override
public void clean() throws IOException {
if (this.isDatasetBlacklisted) {
this.log.info("Dataset blacklisted. Cleanup skipped for " + datasetRoot());
return;
}
boolean atLeastOneFailureSeen = false;
for (VersionFinderAndPolicy<T> versionFinderAndPoli... | public class class_name {
@Override
public void clean() throws IOException {
if (this.isDatasetBlacklisted) {
this.log.info("Dataset blacklisted. Cleanup skipped for " + datasetRoot());
return;
}
boolean atLeastOneFailureSeen = false;
for (VersionFinderAndPolicy<T> versionFinderAndPoli... |
public class class_name {
public EEnum getIfcTubeBundleTypeEnum() {
if (ifcTubeBundleTypeEnumEEnum == null) {
ifcTubeBundleTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(922);
}
return ifcTubeBundleTypeEnumEEnum;
} } | public class class_name {
public EEnum getIfcTubeBundleTypeEnum() {
if (ifcTubeBundleTypeEnumEEnum == null) {
ifcTubeBundleTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(922);
// depends on control dependency: [if], data = [none]
}
ret... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.