code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public static void applyTransform(GrayU8 input , int transform[] , GrayU8 output ) {
output.reshape(input.width,input.height);
if( BoofConcurrency.USE_CONCURRENT ) {
ImplEnhanceHistogram_MT.applyTransform(input, transform, output);
} else {
ImplEnhanceHistogram.applyTransform(inp... | public class class_name {
public static void applyTransform(GrayU8 input , int transform[] , GrayU8 output ) {
output.reshape(input.width,input.height);
if( BoofConcurrency.USE_CONCURRENT ) {
ImplEnhanceHistogram_MT.applyTransform(input, transform, output); // depends on control dependency: [if], data = [none]... |
public class class_name {
public void writeInferredDistributions(InstanceList instances,
File distributionsFile,
int numIterations, int thinning, int burnIn,
double threshold, int max) thro... | public class class_name {
public void writeInferredDistributions(InstanceList instances,
File distributionsFile,
int numIterations, int thinning, int burnIn,
double threshold, int max) thro... |
public class class_name {
public float getQ() {
String q = this.getParameter(Q_PARAM_NAME);
if(q != null) { // This is how the TCK expects to parse it. See AddressingServlet in TCK spec tests.
return Float.parseFloat(q);
} else { // I think this is not needed.
return ((SipURI)address.getURI()).getPara... | public class class_name {
public float getQ() {
String q = this.getParameter(Q_PARAM_NAME);
if(q != null) { // This is how the TCK expects to parse it. See AddressingServlet in TCK spec tests.
return Float.parseFloat(q);
// depends on control dependency: [if], data = [(q]
} else { // I think this is not n... |
public class class_name {
public Map<String, Object> getHeaders() {
Map<String, Object> map = new HashMap<>();
map.put("Content-length", "0");
map.put(CONTENT_TYPE, contentType);
map.put("Accept", "application/json");
for (Map.Entry<String, Object> entry : extraHeaders.entrySet(... | public class class_name {
public Map<String, Object> getHeaders() {
Map<String, Object> map = new HashMap<>();
map.put("Content-length", "0");
map.put(CONTENT_TYPE, contentType);
map.put("Accept", "application/json");
for (Map.Entry<String, Object> entry : extraHeaders.entrySet(... |
public class class_name {
private void complete(Symbol sym) throws CompletionFailure {
if (sym.kind == TYP) {
ClassSymbol c = (ClassSymbol)sym;
c.members_field = new Scope.ErrorScope(c); // make sure it's always defined
annotate.enterStart();
try {
... | public class class_name {
private void complete(Symbol sym) throws CompletionFailure {
if (sym.kind == TYP) {
ClassSymbol c = (ClassSymbol)sym;
c.members_field = new Scope.ErrorScope(c); // make sure it's always defined
annotate.enterStart();
try {
... |
public class class_name {
private static int getTrimmedXStart(BufferedImage img) {
int height = img.getHeight();
int width = img.getWidth();
int xStart = width;
for (int i = 0; i < height; i++) {
for (int j = 0; j < width; j++) {
if (img.getRGB(j, i) != Color.WHITE.getRGB() && j < xStart... | public class class_name {
private static int getTrimmedXStart(BufferedImage img) {
int height = img.getHeight();
int width = img.getWidth();
int xStart = width;
for (int i = 0; i < height; i++) {
for (int j = 0; j < width; j++) {
if (img.getRGB(j, i) != Color.WHITE.getRGB() && j < xStart... |
public class class_name {
public String resolveEndpointUri(Message message, String defaultUri) {
Map<String, Object> headers = message.getHeaders();
String requestUri;
if (headers.containsKey(ENDPOINT_URI_HEADER_NAME)) {
requestUri = headers.get(ENDPOINT_URI_HEADER_NAME).toString()... | public class class_name {
public String resolveEndpointUri(Message message, String defaultUri) {
Map<String, Object> headers = message.getHeaders();
String requestUri;
if (headers.containsKey(ENDPOINT_URI_HEADER_NAME)) {
requestUri = headers.get(ENDPOINT_URI_HEADER_NAME).toString()... |
public class class_name {
public int[] asArray() {
int arr[] = new int[size()];
OrdinalIterator iter = iterator();
int ordinal = iter.nextOrdinal();
int i = 0;
while(ordinal != NO_MORE_ORDINALS) {
arr[i++] = ordinal;
ordinal = iter.nextOrdinal();
}
retu... | public class class_name {
public int[] asArray() {
int arr[] = new int[size()];
OrdinalIterator iter = iterator();
int ordinal = iter.nextOrdinal();
int i = 0;
while(ordinal != NO_MORE_ORDINALS) {
arr[i++] = ordinal; // depends on control dependency: [while], data = [none]
... |
public class class_name {
public RawData as(final String mimeOrExtension) {
if (mimeOrExtension.contains(StringPool.SLASH)) {
this.mimeType = mimeOrExtension;
}
else {
this.mimeType = MimeTypes.getMimeType(mimeOrExtension);
}
return this;
} } | public class class_name {
public RawData as(final String mimeOrExtension) {
if (mimeOrExtension.contains(StringPool.SLASH)) {
this.mimeType = mimeOrExtension; // depends on control dependency: [if], data = [none]
}
else {
this.mimeType = MimeTypes.getMimeType(mimeOrExtension); // depends on control depende... |
public class class_name {
public static <A, B> ImmutableMultiset<B> transformedCopy(Multiset<A> ms,
Function<A, B> func) {
final ImmutableMultiset.Builder<B> ret = ImmutableMultiset.builder();
for (final Multiset.Entry<A> entry : ms.entrySet()) {
final B transformedElement = func.apply(entry.getEl... | public class class_name {
public static <A, B> ImmutableMultiset<B> transformedCopy(Multiset<A> ms,
Function<A, B> func) {
final ImmutableMultiset.Builder<B> ret = ImmutableMultiset.builder();
for (final Multiset.Entry<A> entry : ms.entrySet()) {
final B transformedElement = func.apply(entry.getEl... |
public class class_name {
public Object compactValue(String activeProperty, Map<String, Object> value) {
// 1)
int numberMembers = value.size();
// 2)
if (value.containsKey(JsonLdConsts.INDEX)
&& JsonLdConsts.INDEX.equals(this.getContainer(activeProperty))) {
... | public class class_name {
public Object compactValue(String activeProperty, Map<String, Object> value) {
// 1)
int numberMembers = value.size();
// 2)
if (value.containsKey(JsonLdConsts.INDEX)
&& JsonLdConsts.INDEX.equals(this.getContainer(activeProperty))) {
... |
public class class_name {
public ListWebACLsResult withWebACLs(WebACLSummary... webACLs) {
if (this.webACLs == null) {
setWebACLs(new java.util.ArrayList<WebACLSummary>(webACLs.length));
}
for (WebACLSummary ele : webACLs) {
this.webACLs.add(ele);
}
retur... | public class class_name {
public ListWebACLsResult withWebACLs(WebACLSummary... webACLs) {
if (this.webACLs == null) {
setWebACLs(new java.util.ArrayList<WebACLSummary>(webACLs.length)); // depends on control dependency: [if], data = [none]
}
for (WebACLSummary ele : webACLs) {
... |
public class class_name {
private static boolean[] createSafeOctets(String safeChars) {
int maxChar = -1;
char[] safeCharArray = safeChars.toCharArray();
for (char c : safeCharArray) {
maxChar = Math.max(c, maxChar);
}
boolean[] octets = new boolean[maxChar + 1];
for (char c : safeCharArr... | public class class_name {
private static boolean[] createSafeOctets(String safeChars) {
int maxChar = -1;
char[] safeCharArray = safeChars.toCharArray();
for (char c : safeCharArray) {
maxChar = Math.max(c, maxChar); // depends on control dependency: [for], data = [c]
}
boolean[] octets = new... |
public class class_name {
public static void checkClassExists(String className, String msg) {
try {
getDefaultClassLoader().loadClass(className);
} catch (ClassNotFoundException e) {
throw new WatcherDependencyNotFoundException(msg);
}
} } | public class class_name {
public static void checkClassExists(String className, String msg) {
try {
getDefaultClassLoader().loadClass(className); // depends on control dependency: [try], data = [none]
} catch (ClassNotFoundException e) {
throw new WatcherDependencyNotFoundException(msg);
} // depends on co... |
public class class_name {
protected void checkForCyclicDependencies(AccessControlGroup group, List<AccessControlGroup> groupList) {
for (AccessControlGroup inheritedGroup : group.getInherits()) {
if (groupList.contains(inheritedGroup)) {
StringBuilder sb = new StringBuilder("A cyclic dependency of a... | public class class_name {
protected void checkForCyclicDependencies(AccessControlGroup group, List<AccessControlGroup> groupList) {
for (AccessControlGroup inheritedGroup : group.getInherits()) {
if (groupList.contains(inheritedGroup)) {
StringBuilder sb = new StringBuilder("A cyclic dependency of a... |
public class class_name {
public void marshall(StartChannelRequest startChannelRequest, ProtocolMarshaller protocolMarshaller) {
if (startChannelRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... | public class class_name {
public void marshall(StartChannelRequest startChannelRequest, ProtocolMarshaller protocolMarshaller) {
if (startChannelRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... |
public class class_name {
public static void drawInliers(BufferedImage left, BufferedImage right, CameraPinholeBrown intrinsic,
List<AssociatedPair> normalized) {
Point2Transform2_F64 n_to_p = LensDistortionFactory.narrow(intrinsic).distort_F64(false,true);
List<AssociatedPair> pixels = new ArrayList<>... | public class class_name {
public static void drawInliers(BufferedImage left, BufferedImage right, CameraPinholeBrown intrinsic,
List<AssociatedPair> normalized) {
Point2Transform2_F64 n_to_p = LensDistortionFactory.narrow(intrinsic).distort_F64(false,true);
List<AssociatedPair> pixels = new ArrayList<>... |
public class class_name {
public boolean write(DataOutputStream daOut, boolean bFixedLength)
{
Object data = this.getData();
if (data == null)
data = Constants.BLANK;
ObjectOutputStream p = null;
try {
p = new ObjectOutputStream(daOut);
p.writeO... | public class class_name {
public boolean write(DataOutputStream daOut, boolean bFixedLength)
{
Object data = this.getData();
if (data == null)
data = Constants.BLANK;
ObjectOutputStream p = null;
try {
p = new ObjectOutputStream(daOut); // depends on contro... |
public class class_name {
final Table SYSTEM_ALLTYPEINFO() {
Table t = sysTables[SYSTEM_ALLTYPEINFO];
if (t == null) {
t = createBlankTable(sysTableHsqlNames[SYSTEM_ALLTYPEINFO]);
//-------------------------------------------
// same as SYSTEM_TYPEINFO:
... | public class class_name {
final Table SYSTEM_ALLTYPEINFO() {
Table t = sysTables[SYSTEM_ALLTYPEINFO];
if (t == null) {
t = createBlankTable(sysTableHsqlNames[SYSTEM_ALLTYPEINFO]); // depends on control dependency: [if], data = [none]
//----------------------------------------... |
public class class_name {
public void flushQueue() {
/*
Basically we just want to form GridOp and pass it to native executioner
But since we don't have GridOp interface yet, we'll send everything to underlying CudaExecutioner.
*/
// logger.info("Non-Blocking flush");... | public class class_name {
public void flushQueue() {
/*
Basically we just want to form GridOp and pass it to native executioner
But since we don't have GridOp interface yet, we'll send everything to underlying CudaExecutioner.
*/
// logger.info("Non-Blocking flush");... |
public class class_name {
public void savePNGKMNumRisk(String fileName) {
if (fileName.startsWith("null") || fileName.startsWith("Null") || fileName.startsWith("NULL")) {
return;
}
this.fileName = fileName;
NumbersAtRiskPanel numbersAtRiskPanel = new NumbersAtRiskPanel();
numbersAtRiskPanel.setKaplanMeie... | public class class_name {
public void savePNGKMNumRisk(String fileName) {
if (fileName.startsWith("null") || fileName.startsWith("Null") || fileName.startsWith("NULL")) {
return; // depends on control dependency: [if], data = [none]
}
this.fileName = fileName;
NumbersAtRiskPanel numbersAtRiskPanel = new Nu... |
public class class_name {
@Override
public void handleRequest(final HttpServerExchange exchange) throws Exception {
// parse the body to map or list if content type is application/json
String contentType = exchange.getRequestHeaders().getFirst(Headers.CONTENT_TYPE);
if (contentType != null)... | public class class_name {
@Override
public void handleRequest(final HttpServerExchange exchange) throws Exception {
// parse the body to map or list if content type is application/json
String contentType = exchange.getRequestHeaders().getFirst(Headers.CONTENT_TYPE);
if (contentType != null)... |
public class class_name {
public BaseMessageFilter linkRemoteSession(Object remoteSession)
{
if (remoteSession instanceof RemoteSession)
if (remoteSession instanceof RecordOwner) // Always
if (m_source == null)
{
String strTableName = (String)this.getProper... | public class class_name {
public BaseMessageFilter linkRemoteSession(Object remoteSession)
{
if (remoteSession instanceof RemoteSession)
if (remoteSession instanceof RecordOwner) // Always
if (m_source == null)
{
String strTableName = (String)this.getProper... |
public class class_name {
public static List<Element> toElementList(NodeList nodeList) {
List<Element> elements = new ArrayList<Element>();
for (int i = 0; i < nodeList.getLength(); i++) {
Node node = nodeList.item(i);
if (node instanceof Element) {
elements.add((Element) node);
}
}
return element... | public class class_name {
public static List<Element> toElementList(NodeList nodeList) {
List<Element> elements = new ArrayList<Element>();
for (int i = 0; i < nodeList.getLength(); i++) {
Node node = nodeList.item(i);
if (node instanceof Element) {
elements.add((Element) node); // depends on control dep... |
public class class_name {
public void setProperties( Map<String,String> properties ) {
Map<String,String> userProperties = systemSession.getUserProperties();
if ( userProperties == null ) {
userProperties = new HashMap<String,String>();
}
userProperties.putAll( properties );... | public class class_name {
public void setProperties( Map<String,String> properties ) {
Map<String,String> userProperties = systemSession.getUserProperties();
if ( userProperties == null ) {
userProperties = new HashMap<String,String>(); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public DatastreamVersion addVersion(Date createdDate) {
int n = versions.size();
while (hasVersion(id + "." + n)) {
n++;
}
DatastreamVersion dsv = new DatastreamVersion(id + "." + n,
createdDate);
versions.add(dsv);
r... | public class class_name {
public DatastreamVersion addVersion(Date createdDate) {
int n = versions.size();
while (hasVersion(id + "." + n)) {
n++; // depends on control dependency: [while], data = [none]
}
DatastreamVersion dsv = new DatastreamVersion(id + "." + n,
... |
public class class_name {
public LibraryComponent getComponentByID(LibraryID id) {
// get from repository
LibraryComponent component = componentRepository.getComponentByID(id);
if (component == null) {
// not found in repository, get it from deployable unit
component = deployableUnit.getLibraryComponents()... | public class class_name {
public LibraryComponent getComponentByID(LibraryID id) {
// get from repository
LibraryComponent component = componentRepository.getComponentByID(id);
if (component == null) {
// not found in repository, get it from deployable unit
component = deployableUnit.getLibraryComponents()... |
public class class_name {
public List<CmsGroup> getGroupsOfUser(
CmsDbContext dbc,
String username,
String ouFqn,
boolean includeChildOus,
boolean readRoles,
boolean directGroupsOnly,
String remoteAddress)
throws CmsException {
CmsUser user = readUse... | public class class_name {
public List<CmsGroup> getGroupsOfUser(
CmsDbContext dbc,
String username,
String ouFqn,
boolean includeChildOus,
boolean readRoles,
boolean directGroupsOnly,
String remoteAddress)
throws CmsException {
CmsUser user = readUse... |
public class class_name {
public void setCacheKeyParameters(java.util.Collection<String> cacheKeyParameters) {
if (cacheKeyParameters == null) {
this.cacheKeyParameters = null;
return;
}
this.cacheKeyParameters = new java.util.ArrayList<String>(cacheKeyParameters);
... | public class class_name {
public void setCacheKeyParameters(java.util.Collection<String> cacheKeyParameters) {
if (cacheKeyParameters == null) {
this.cacheKeyParameters = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [... |
public class class_name {
private void addSummary(MemberSummaryWriter writer,
VisibleMemberMap visibleMemberMap, boolean showInheritedSummary,
Content memberSummaryTree) {
LinkedList<Content> summaryTreeList = new LinkedList<Content>();
buildSummary(writer, visibleMemberMap, sum... | public class class_name {
private void addSummary(MemberSummaryWriter writer,
VisibleMemberMap visibleMemberMap, boolean showInheritedSummary,
Content memberSummaryTree) {
LinkedList<Content> summaryTreeList = new LinkedList<Content>();
buildSummary(writer, visibleMemberMap, sum... |
public class class_name {
private ProtoNetwork stage5(ProtoNetwork pn) {
beginStage(PHASE3_STAGE5_HDR, "5", NUM_PHASES);
final StringBuilder bldr = new StringBuilder();
if (!withGeneScaffoldingInjection() &&
!withNamedComplexInjection() &&
!withProteinFamilyInje... | public class class_name {
private ProtoNetwork stage5(ProtoNetwork pn) {
beginStage(PHASE3_STAGE5_HDR, "5", NUM_PHASES);
final StringBuilder bldr = new StringBuilder();
if (!withGeneScaffoldingInjection() &&
!withNamedComplexInjection() &&
!withProteinFamilyInje... |
public class class_name {
public DoubleRange getMzRange() {
if (isolationWindowMzLo != null && isolationWindowMzHi != null) {
return new DoubleRange(isolationWindowMzLo, isolationWindowMzHi);
}
return null;
} } | public class class_name {
public DoubleRange getMzRange() {
if (isolationWindowMzLo != null && isolationWindowMzHi != null) {
return new DoubleRange(isolationWindowMzLo, isolationWindowMzHi); // depends on control dependency: [if], data = [(isolationWindowMzLo]
}
return null;
} } |
public class class_name {
public static int search(char[] charArray, char value, int occurrence) {
if(occurrence <= 0 || occurrence > charArray.length) {
throw new IllegalArgumentException("Occurrence must be greater or equal to 1 and less than "
+ "the array length: " + occurre... | public class class_name {
public static int search(char[] charArray, char value, int occurrence) {
if(occurrence <= 0 || occurrence > charArray.length) {
throw new IllegalArgumentException("Occurrence must be greater or equal to 1 and less than "
+ "the array length: " + occurre... |
public class class_name {
@Override
public void stop(){
if(isStarted){
synchronized (this) {
if (isStarted) {
if (getLookupService() instanceof Closable) {
((Closable) getLookupService()).stop();
}
... | public class class_name {
@Override
public void stop(){
if(isStarted){
synchronized (this) { // depends on control dependency: [if], data = [none]
if (isStarted) {
if (getLookupService() instanceof Closable) {
((Closable) getLookupServ... |
public class class_name {
public void setSwitch(XExpression newSwitch)
{
if (newSwitch != switch_)
{
NotificationChain msgs = null;
if (switch_ != null)
msgs = ((InternalEObject)switch_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - XbasePackage.XSWITCH_EXPRESSION__SWITCH, null, msgs);
if (newSwitch ... | public class class_name {
public void setSwitch(XExpression newSwitch)
{
if (newSwitch != switch_)
{
NotificationChain msgs = null;
if (switch_ != null)
msgs = ((InternalEObject)switch_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - XbasePackage.XSWITCH_EXPRESSION__SWITCH, null, msgs);
if (newSwitch ... |
public class class_name {
public Result<FindRandomPointResult> findRandomPointAroundCircle(long startRef, float[] centerPos, float maxRadius,
QueryFilter filter, FRand frand) {
// Validate input
if (!m_nav.isValidPolyRef(startRef) || Objects.isNull(centerPos) || !vIsFinite(centerPos) || ma... | public class class_name {
public Result<FindRandomPointResult> findRandomPointAroundCircle(long startRef, float[] centerPos, float maxRadius,
QueryFilter filter, FRand frand) {
// Validate input
if (!m_nav.isValidPolyRef(startRef) || Objects.isNull(centerPos) || !vIsFinite(centerPos) || ma... |
public class class_name {
public java.util.List<PolicyTypeDescription> getPolicyTypeDescriptions() {
if (policyTypeDescriptions == null) {
policyTypeDescriptions = new com.amazonaws.internal.SdkInternalList<PolicyTypeDescription>();
}
return policyTypeDescriptions;
} } | public class class_name {
public java.util.List<PolicyTypeDescription> getPolicyTypeDescriptions() {
if (policyTypeDescriptions == null) {
policyTypeDescriptions = new com.amazonaws.internal.SdkInternalList<PolicyTypeDescription>(); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public void close() {
checkOpen();
open = false;
for (Object arg : arguments.values()) {
if (arg instanceof File) {
File file = (File) arg;
if (JournalHelper.isTempFile(file)) {
if (file.exists()) {
... | public class class_name {
public void close() {
checkOpen();
open = false;
for (Object arg : arguments.values()) {
if (arg instanceof File) {
File file = (File) arg;
if (JournalHelper.isTempFile(file)) {
if (file.exists()) {
... |
public class class_name {
protected String readLineWithMessage(String message)
{
System.out.print(message + " ");
try
{
BufferedReader rin = new BufferedReader(new InputStreamReader(System.in));
return rin.readLine();
}
catch (Exception e)
... | public class class_name {
protected String readLineWithMessage(String message)
{
System.out.print(message + " ");
try
{
BufferedReader rin = new BufferedReader(new InputStreamReader(System.in));
return rin.readLine();
// depends on control dependency: [try], d... |
public class class_name {
public boolean isTrusted() {
if (delayedCacheUpdate || farEndZID == null) {
return false;
}
cache.selectEntry(farEndZID);
return cache.getTrust();
} } | public class class_name {
public boolean isTrusted() {
if (delayedCacheUpdate || farEndZID == null) {
return false; // depends on control dependency: [if], data = [none]
}
cache.selectEntry(farEndZID);
return cache.getTrust();
} } |
public class class_name {
public Date getLastIndexed(FeatureIndexType type) {
Date lastIndexed = null;
if (type == null) {
lastIndexed = getLastIndexed();
} else {
switch (type) {
case GEOPACKAGE:
lastIndexed = featureTableIndex.getLastIndexed();
break;
case RTREE:
if (rTreeIndexTableDao.... | public class class_name {
public Date getLastIndexed(FeatureIndexType type) {
Date lastIndexed = null;
if (type == null) {
lastIndexed = getLastIndexed(); // depends on control dependency: [if], data = [none]
} else {
switch (type) {
case GEOPACKAGE:
lastIndexed = featureTableIndex.getLastIndexed();... |
public class class_name {
public DescribeFpgaImagesRequest withFpgaImageIds(String... fpgaImageIds) {
if (this.fpgaImageIds == null) {
setFpgaImageIds(new com.amazonaws.internal.SdkInternalList<String>(fpgaImageIds.length));
}
for (String ele : fpgaImageIds) {
this.fpgaI... | public class class_name {
public DescribeFpgaImagesRequest withFpgaImageIds(String... fpgaImageIds) {
if (this.fpgaImageIds == null) {
setFpgaImageIds(new com.amazonaws.internal.SdkInternalList<String>(fpgaImageIds.length)); // depends on control dependency: [if], data = [none]
}
fo... |
public class class_name {
public void marshall(ContainerDatasetAction containerDatasetAction, ProtocolMarshaller protocolMarshaller) {
if (containerDatasetAction == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarsha... | public class class_name {
public void marshall(ContainerDatasetAction containerDatasetAction, ProtocolMarshaller protocolMarshaller) {
if (containerDatasetAction == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarsha... |
public class class_name {
@SuppressWarnings({ "PMD.AvoidInstantiatingObjectsInLoops",
"PMD.LongVariable", "PMD.ExcessiveMethodLength",
"PMD.DataflowAnomalyAnalysis", "PMD.NcssMethodCount",
"PMD.NPathComplexity" })
private List<Token> parseTokenLogFileDefinition(final String toke... | public class class_name {
@SuppressWarnings({ "PMD.AvoidInstantiatingObjectsInLoops",
"PMD.LongVariable", "PMD.ExcessiveMethodLength",
"PMD.DataflowAnomalyAnalysis", "PMD.NcssMethodCount",
"PMD.NPathComplexity" })
private List<Token> parseTokenLogFileDefinition(final String toke... |
public class class_name {
protected void ensureElementsCapacity() {
final int elStackSize = elName.length;
// assert (depth + 1) >= elName.length;
// we add at least one extra slot ...
final int newSize = (depth >= 7 ? 2 * depth : 8) + 2; // = lucky 7 + 1
// //25
if (TRACE_SIZING) {
System... | public class class_name {
protected void ensureElementsCapacity() {
final int elStackSize = elName.length;
// assert (depth + 1) >= elName.length;
// we add at least one extra slot ...
final int newSize = (depth >= 7 ? 2 * depth : 8) + 2; // = lucky 7 + 1
// //25
if (TRACE_SIZING) {
System... |
public class class_name {
public AsciiString concat(CharSequence string) {
int thisLen = length();
int thatLen = string.length();
if (thatLen == 0) {
return this;
}
if (string.getClass() == AsciiString.class) {
AsciiString that = (AsciiString) string;
... | public class class_name {
public AsciiString concat(CharSequence string) {
int thisLen = length();
int thatLen = string.length();
if (thatLen == 0) {
return this; // depends on control dependency: [if], data = [none]
}
if (string.getClass() == AsciiString.class) {
... |
public class class_name {
public static boolean start(final RootDoc root) {
// Perform some reflective investigation of the RootDoc
final boolean toReturn = Standard.start(root);
eventSequence.add("start (root): " + toReturn);
// We should emit the eventSequence here.
for(int... | public class class_name {
public static boolean start(final RootDoc root) {
// Perform some reflective investigation of the RootDoc
final boolean toReturn = Standard.start(root);
eventSequence.add("start (root): " + toReturn);
// We should emit the eventSequence here.
for(int... |
public class class_name {
public ClassLoader getClassLoader(MavenProject project, final ClassLoader parent, Log log) throws DependencyResolutionRequiredException {
@SuppressWarnings("unchecked")
List<String> classpathElements = project.getCompileClasspathElements();
final List<URL> classpathU... | public class class_name {
public ClassLoader getClassLoader(MavenProject project, final ClassLoader parent, Log log) throws DependencyResolutionRequiredException {
@SuppressWarnings("unchecked")
List<String> classpathElements = project.getCompileClasspathElements();
final List<URL> classpathU... |
public class class_name {
public void nodeFeedback(String nodeName, List<ResourceType> resourceTypes,
NodeUsageReport usageReport) {
List<FaultStatsForType> faultStats = nodeToFaultStats.get(nodeName);
if (faultStats == null) {
LOG.info("Received node feedback for deleted node " + nodeName);
... | public class class_name {
public void nodeFeedback(String nodeName, List<ResourceType> resourceTypes,
NodeUsageReport usageReport) {
List<FaultStatsForType> faultStats = nodeToFaultStats.get(nodeName);
if (faultStats == null) {
LOG.info("Received node feedback for deleted node " + nodeName); // dep... |
public class class_name {
public static boolean isSelfConfig(String configAbsoluteClassPath, String keyPrefix, IConfigKey key) {
OneProperties configs = otherConfigs.get(configAbsoluteClassPath);
if (configs == null) {
addSelfConfigs(configAbsoluteClassPath, null);
configs =... | public class class_name {
public static boolean isSelfConfig(String configAbsoluteClassPath, String keyPrefix, IConfigKey key) {
OneProperties configs = otherConfigs.get(configAbsoluteClassPath);
if (configs == null) {
addSelfConfigs(configAbsoluteClassPath, null);
// depends on control... |
public class class_name {
@Override
public int compareTo(ComparableField rhs) {
if (rhs instanceof FieldDescriptor) {
return FieldOrMethodDescriptor.compareTo(this, (FieldDescriptor) rhs);
}
if (rhs instanceof XField) {
return XFactory.compare((XField) this, (XField... | public class class_name {
@Override
public int compareTo(ComparableField rhs) {
if (rhs instanceof FieldDescriptor) {
return FieldOrMethodDescriptor.compareTo(this, (FieldDescriptor) rhs); // depends on control dependency: [if], data = [none]
}
if (rhs instanceof XField) {
... |
public class class_name {
public void removePathPattern(String pathPattern) {
PathPattern p = new PathPattern(pathPattern);
T target = routes.remove(p);
if (target == null) {
return;
}
} } | public class class_name {
public void removePathPattern(String pathPattern) {
PathPattern p = new PathPattern(pathPattern);
T target = routes.remove(p);
if (target == null) {
return; // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
@Override
public Object doOutParameter(final String key, final Object val) {
if (getFilters().isEmpty()) {
return val;
}
Object obj = val;
for (final SqlFilter filter : getFilters()) {
obj = filter.doOutParameter(key, obj);
}
return obj;
} } | public class class_name {
@Override
public Object doOutParameter(final String key, final Object val) {
if (getFilters().isEmpty()) {
return val; // depends on control dependency: [if], data = [none]
}
Object obj = val;
for (final SqlFilter filter : getFilters()) {
obj = filter.doOutParameter(key, obj); ... |
public class class_name {
int writeModuleAttribute(ClassSymbol c) {
ModuleSymbol m = (ModuleSymbol) c.owner;
int alenIdx = writeAttr(names.Module);
databuf.appendChar(pool.put(m));
databuf.appendChar(ModuleFlags.value(m.flags)); // module_flags
databuf.appendChar(m.version != ... | public class class_name {
int writeModuleAttribute(ClassSymbol c) {
ModuleSymbol m = (ModuleSymbol) c.owner;
int alenIdx = writeAttr(names.Module);
databuf.appendChar(pool.put(m));
databuf.appendChar(ModuleFlags.value(m.flags)); // module_flags
databuf.appendChar(m.version != ... |
public class class_name {
public CellStyle getOrCreateRowStyle(int y) {
final Row row = getOrCreateRow(y);
CellStyle rowStyle = row.getRowStyle();
if (null == rowStyle) {
rowStyle = this.workbook.createCellStyle();
row.setRowStyle(rowStyle);
}
return rowStyle;
} } | public class class_name {
public CellStyle getOrCreateRowStyle(int y) {
final Row row = getOrCreateRow(y);
CellStyle rowStyle = row.getRowStyle();
if (null == rowStyle) {
rowStyle = this.workbook.createCellStyle();
// depends on control dependency: [if], data = [none]
row.setRowStyle(rowStyle);
// de... |
public class class_name {
@Override
public void mouseReleased(MouseEvent e) {
if (e.getComponent() == this
&& (e.getModifiers() & MouseEvent.BUTTON1_MASK) != 0) {
int y = e.getY();
Font font = fileWindow.textArea.getFont();
FontMetrics metrics = getFontMe... | public class class_name {
@Override
public void mouseReleased(MouseEvent e) {
if (e.getComponent() == this
&& (e.getModifiers() & MouseEvent.BUTTON1_MASK) != 0) {
int y = e.getY();
Font font = fileWindow.textArea.getFont();
FontMetrics metrics = getFontMe... |
public class class_name {
public float getCapacity(String queue) {
//Check done in order to return default capacity which can be negative
//In case of both capacity and default capacity not configured.
//Last check is if the configuration is specified and is marked as
//negative we throw exception
... | public class class_name {
public float getCapacity(String queue) {
//Check done in order to return default capacity which can be negative
//In case of both capacity and default capacity not configured.
//Last check is if the configuration is specified and is marked as
//negative we throw exception
... |
public class class_name {
protected void processGossipResponse(Tree data) throws Exception {
// Debug
if (debugHeartbeats) {
String sender = data.get("sender", (String) null);
logger.info("Gossip response received from \"" + sender + "\" node:\r\n" + data);
}
// Online / offline nodes in responnse
Tr... | public class class_name {
protected void processGossipResponse(Tree data) throws Exception {
// Debug
if (debugHeartbeats) {
String sender = data.get("sender", (String) null);
logger.info("Gossip response received from \"" + sender + "\" node:\r\n" + data);
}
// Online / offline nodes in responnse
Tr... |
public class class_name {
private static <T> void log(RedwoodChannels channels, String description, Iterable<T> iterable) {
Redwood.startTrack(description);
if (iterable == null) {
channels.log("(iterable is null)");
} else {
int index = 0;
for (T item : iterable) {
if (dis... | public class class_name {
private static <T> void log(RedwoodChannels channels, String description, Iterable<T> iterable) {
Redwood.startTrack(description);
if (iterable == null) {
channels.log("(iterable is null)");
// depends on control dependency: [if], data = [(iterable]
} else {
int i... |
public class class_name {
private List<CmsSelectWidgetOption> getProjectSelections() {
List<CmsSelectWidgetOption> result = new LinkedList<CmsSelectWidgetOption>();
List<CmsProject> projects = null;
try {
projects = OpenCms.getOrgUnitManager().getAllAccessibleProjects(getCms(), "",... | public class class_name {
private List<CmsSelectWidgetOption> getProjectSelections() {
List<CmsSelectWidgetOption> result = new LinkedList<CmsSelectWidgetOption>();
List<CmsProject> projects = null;
try {
projects = OpenCms.getOrgUnitManager().getAllAccessibleProjects(getCms(), "",... |
public class class_name {
@Override
public int getIdAttrIndex()
{
// Let's figure out the index only when needed
int ix = mIdAttrIndex;
if (ix == -2) {
ix = -1;
if (mCurrElem != null) {
DTDAttribute idAttr = mCurrElem.getIdAttribute();
... | public class class_name {
@Override
public int getIdAttrIndex()
{
// Let's figure out the index only when needed
int ix = mIdAttrIndex;
if (ix == -2) {
ix = -1; // depends on control dependency: [if], data = [none]
if (mCurrElem != null) {
DTDAttr... |
public class class_name {
public void addIceServers(List<PeerConnection.IceServer> iceServers){
if(this.iceServers!=null) {
iceServers.addAll(this.iceServers);
}
this.iceServers = iceServers;
} } | public class class_name {
public void addIceServers(List<PeerConnection.IceServer> iceServers){
if(this.iceServers!=null) {
iceServers.addAll(this.iceServers); // depends on control dependency: [if], data = [(this.iceServers]
}
this.iceServers = iceServers;
} } |
public class class_name {
private static boolean isPropertyTree(Node expectedGetprop) {
if (!expectedGetprop.isGetProp()) {
return false;
}
Node leftChild = expectedGetprop.getFirstChild();
if (!leftChild.isThis() && !isPropertyTree(leftChild)) {
return false;
}
Node retVal = left... | public class class_name {
private static boolean isPropertyTree(Node expectedGetprop) {
if (!expectedGetprop.isGetProp()) {
return false; // depends on control dependency: [if], data = [none]
}
Node leftChild = expectedGetprop.getFirstChild();
if (!leftChild.isThis() && !isPropertyTree(leftChild... |
public class class_name {
public final List<Change> diff(final HourRanges toOther) {
ensureSingleDayOnly("from", this);
ensureSingleDayOnly("to", toOther);
final BitSet thisMinutes = this.toMinutes();
final BitSet otherMinutes = toOther.toMinutes();
final BitSet addedMinutes ... | public class class_name {
public final List<Change> diff(final HourRanges toOther) {
ensureSingleDayOnly("from", this);
ensureSingleDayOnly("to", toOther);
final BitSet thisMinutes = this.toMinutes();
final BitSet otherMinutes = toOther.toMinutes();
final BitSet addedMinutes ... |
public class class_name {
private static ImmutableMap<String, Annotation> buildAnnotations(Iterable<String> whitelist) {
ImmutableMap.Builder<String, Annotation> annotationsBuilder = ImmutableMap.builder();
annotationsBuilder.putAll(Annotation.recognizedAnnotations);
for (String unrecognizedAnnotation : wh... | public class class_name {
private static ImmutableMap<String, Annotation> buildAnnotations(Iterable<String> whitelist) {
ImmutableMap.Builder<String, Annotation> annotationsBuilder = ImmutableMap.builder();
annotationsBuilder.putAll(Annotation.recognizedAnnotations);
for (String unrecognizedAnnotation : wh... |
public class class_name {
@Override
public void transform(Transform3D transform) {
if (transform!=null) {
Point3D p = new Point3d();
for(int i=0; i<this.numCoordsProperty.get();) {
p.set(this.coordsProperty[i].get(), this.coordsProperty[i+1].get(), this.coordsProperty[i+2].get());
transform.transform(... | public class class_name {
@Override
public void transform(Transform3D transform) {
if (transform!=null) {
Point3D p = new Point3d();
for(int i=0; i<this.numCoordsProperty.get();) {
p.set(this.coordsProperty[i].get(), this.coordsProperty[i+1].get(), this.coordsProperty[i+2].get()); // depends on control de... |
public class class_name {
public static AxisAligner getInstance(QuatSymmetryResults results) {
String symmetry = results.getSymmetry();
if (symmetry.equals("H")) {
return new HelixAxisAligner(results);
} else {
return new RotationAxisAligner(results);
}
} } | public class class_name {
public static AxisAligner getInstance(QuatSymmetryResults results) {
String symmetry = results.getSymmetry();
if (symmetry.equals("H")) {
return new HelixAxisAligner(results); // depends on control dependency: [if], data = [none]
} else {
return new RotationAxisAligner(results); ... |
public class class_name {
@Override
public Widget getWidget(int index) {
if (index == PAGE_LIMIT - 1) {
if (offPageContainer.isEmpty()) {
return offPageContainer.asWidget();
}
int deckIndex = offPageContainer.getSelectedDeck() == -1 ? 0 : offPageContainer... | public class class_name {
@Override
public Widget getWidget(int index) {
if (index == PAGE_LIMIT - 1) {
if (offPageContainer.isEmpty()) {
return offPageContainer.asWidget(); // depends on control dependency: [if], data = [none]
}
int deckIndex = offPageCo... |
public class class_name {
public TreeRule getRule(final int level, final int order) {
if (rules == null || rules.isEmpty()) {
return null;
}
TreeMap<Integer, TreeRule> rule_level = rules.get(level);
if (rule_level == null || rule_level.isEmpty()) {
return null;
}
return r... | public class class_name {
public TreeRule getRule(final int level, final int order) {
if (rules == null || rules.isEmpty()) {
return null; // depends on control dependency: [if], data = [none]
}
TreeMap<Integer, TreeRule> rule_level = rules.get(level);
if (rule_level == null || rule_level.i... |
public class class_name {
private void reportResults(boolean replace, I_CmsReport report, int nrOfFiles) {
// report entries
if (replace) {
// finish searching and replacing
report.println(
Messages.get().container(Messages.RPT_SOURCESEARCH_END_SEARCHING_REPLACI... | public class class_name {
private void reportResults(boolean replace, I_CmsReport report, int nrOfFiles) {
// report entries
if (replace) {
// finish searching and replacing
report.println(
Messages.get().container(Messages.RPT_SOURCESEARCH_END_SEARCHING_REPLACI... |
public class class_name {
private void loadPlugins() {
final List<T> finalPluginsList = new ArrayList<T>();
pluginsList = new ArrayList<T>();
pluginsMap = new HashMap<String, T>();
String className = null;
try {
final Class<T>[] classes = getClasses();
... | public class class_name {
private void loadPlugins() {
final List<T> finalPluginsList = new ArrayList<T>();
pluginsList = new ArrayList<T>();
pluginsMap = new HashMap<String, T>();
String className = null;
try {
final Class<T>[] classes = getClasses();
... |
public class class_name {
private int getPixelSize() {
if (getSize() == Size.NORMAL) {
return getResources().getDimensionPixelSize(R.dimen.floating_action_button_size_normal);
} else if (getSize() == Size.SMALL) {
return getResources().getDimensionPixelSize(R.dimen.floating_acti... | public class class_name {
private int getPixelSize() {
if (getSize() == Size.NORMAL) {
return getResources().getDimensionPixelSize(R.dimen.floating_action_button_size_normal); // depends on control dependency: [if], data = [none]
} else if (getSize() == Size.SMALL) {
return getR... |
public class class_name {
private Integer mapTaskID(Integer id)
{
Integer mappedID = m_clashMap.get(id);
if (mappedID == null)
{
mappedID = id;
}
return (mappedID);
} } | public class class_name {
private Integer mapTaskID(Integer id)
{
Integer mappedID = m_clashMap.get(id);
if (mappedID == null)
{
mappedID = id; // depends on control dependency: [if], data = [none]
}
return (mappedID);
} } |
public class class_name {
protected void startHtml(PrintWriter out) {
logger.entering(out);
try {
Template t = ve.getTemplate("/templates/header.part.html");
VelocityContext context = new VelocityContext();
StringBuilder output = new StringBuilder();
for... | public class class_name {
protected void startHtml(PrintWriter out) {
logger.entering(out);
try {
Template t = ve.getTemplate("/templates/header.part.html");
VelocityContext context = new VelocityContext();
StringBuilder output = new StringBuilder();
for... |
public class class_name {
@Override
public Set<SeparatorSet> getComputableOutboundMessages(Map<SeparatorSet, Factor> inboundMessages) {
Preconditions.checkNotNull(inboundMessages);
Set<SeparatorSet> possibleOutbound = Sets.newHashSet();
for (Map.Entry<SeparatorSet, Factor> inboundMessage : inboundMessag... | public class class_name {
@Override
public Set<SeparatorSet> getComputableOutboundMessages(Map<SeparatorSet, Factor> inboundMessages) {
Preconditions.checkNotNull(inboundMessages);
Set<SeparatorSet> possibleOutbound = Sets.newHashSet();
for (Map.Entry<SeparatorSet, Factor> inboundMessage : inboundMessag... |
public class class_name {
@GwtIncompatible("Unnecessary")
private ImmutableList<JSError> deduplicateIjsFiles(
List<FlagEntry<JsSourceType>> files, List<String> moduleRoots, boolean hasModuleSpecs) {
ImmutableList.Builder<JSError> errors = ImmutableList.builder();
// First pass: collect the (module roo... | public class class_name {
@GwtIncompatible("Unnecessary")
private ImmutableList<JSError> deduplicateIjsFiles(
List<FlagEntry<JsSourceType>> files, List<String> moduleRoots, boolean hasModuleSpecs) {
ImmutableList.Builder<JSError> errors = ImmutableList.builder();
// First pass: collect the (module roo... |
public class class_name {
public void execute() {
Iterator it = memberList.iterator();
while (it.hasNext()) {
GroupMember member = (GroupMember) it.next();
member.getCommand().execute();
}
} } | public class class_name {
public void execute() {
Iterator it = memberList.iterator();
while (it.hasNext()) {
GroupMember member = (GroupMember) it.next();
member.getCommand().execute(); // depends on control dependency: [while], data = [none]
}
} } |
public class class_name {
public EEnum getFontResolutionMetTech() {
if (fontResolutionMetTechEEnum == null) {
fontResolutionMetTechEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(85);
}
return fontResolutionMetTechEEnum;
} } | public class class_name {
public EEnum getFontResolutionMetTech() {
if (fontResolutionMetTechEEnum == null) {
fontResolutionMetTechEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(85); // depends on control dependency: [if], data = [none]
}
return fontResoluti... |
public class class_name {
public static List<String> listByPrefix(String directory, String prefix, String suffix) {
List<String> ret = new ArrayList<>();
File d = new File(directory);
if( !d.isDirectory() ) {
try {
URL url = new URL(directory);
if( url.getProtocol().equals("file")) {
d = new Fi... | public class class_name {
public static List<String> listByPrefix(String directory, String prefix, String suffix) {
List<String> ret = new ArrayList<>();
File d = new File(directory);
if( !d.isDirectory() ) {
try {
URL url = new URL(directory);
if( url.getProtocol().equals("file")) {
d = new Fi... |
public class class_name {
public static String getSuffix(File file) {
String filename = file.getName();
int index = filename.lastIndexOf(".");
if (index != -1) {
return filename.substring(index + 1);
}
return filename;
} } | public class class_name {
public static String getSuffix(File file) {
String filename = file.getName();
int index = filename.lastIndexOf(".");
if (index != -1) {
return filename.substring(index + 1); // depends on control dependency: [if], data = [(index]
}
return ... |
public class class_name {
private TableCellRenderer getCellRenderer(Class<?> type) {
// try to create one from the factory
TableCellRenderer renderer = getRendererFactory().createTableCellRenderer(type);
// if that fails, recursively try again with the superclass
if (renderer == n... | public class class_name {
private TableCellRenderer getCellRenderer(Class<?> type) {
// try to create one from the factory
TableCellRenderer renderer = getRendererFactory().createTableCellRenderer(type);
// if that fails, recursively try again with the superclass
if (renderer == n... |
public class class_name {
public void blockLocationInfoExpiresIfNeeded() {
if (blkLocInfoExpireTimeout < 0) {
return;
}
long timeNow = System.currentTimeMillis();
if (timeBlkLocInfoExpire < timeNow) {
this.writeLock();
try {
long newTimeBlockExpire = Long.MAX_VALUE;
Li... | public class class_name {
public void blockLocationInfoExpiresIfNeeded() {
if (blkLocInfoExpireTimeout < 0) {
return; // depends on control dependency: [if], data = [none]
}
long timeNow = System.currentTimeMillis();
if (timeBlkLocInfoExpire < timeNow) {
this.writeLock(); // depends on cont... |
public class class_name {
@SuppressWarnings("unchecked")
private void handlePublish(PublishRequest request) {
state.getLogger().trace("{} - Received {}", state.getSessionId(), request);
// If the request is for another session ID, this may be a session that was previously opened
// for this client.
... | public class class_name {
@SuppressWarnings("unchecked")
private void handlePublish(PublishRequest request) {
state.getLogger().trace("{} - Received {}", state.getSessionId(), request);
// If the request is for another session ID, this may be a session that was previously opened
// for this client.
... |
public class class_name {
public static IntStreamEx iterate(int seed, IntPredicate predicate, IntUnaryOperator f) {
Objects.requireNonNull(f);
Objects.requireNonNull(predicate);
Spliterator.OfInt spliterator = new Spliterators.AbstractIntSpliterator(Long.MAX_VALUE, Spliterator.ORDERED
... | public class class_name {
public static IntStreamEx iterate(int seed, IntPredicate predicate, IntUnaryOperator f) {
Objects.requireNonNull(f);
Objects.requireNonNull(predicate);
Spliterator.OfInt spliterator = new Spliterators.AbstractIntSpliterator(Long.MAX_VALUE, Spliterator.ORDERED
... |
public class class_name {
public static String encode(byte[] source) {
byte[] encoded = encodeBytesToBytes( source, source.length);
try {
return new String(encoded, "US-ASCII");
}
catch (java.io.UnsupportedEncodingException uue) {
return new String( encoded );
... | public class class_name {
public static String encode(byte[] source) {
byte[] encoded = encodeBytesToBytes( source, source.length);
try {
return new String(encoded, "US-ASCII"); // depends on control dependency: [try], data = [none]
}
catch (java.io.UnsupportedEncodingExcep... |
public class class_name {
public com.google.protobuf.ByteString
getInstanceClassBytes() {
java.lang.Object ref = instanceClass_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
... | public class class_name {
public com.google.protobuf.ByteString
getInstanceClassBytes() {
java.lang.Object ref = instanceClass_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
... |
public class class_name {
protected void scrubExportFolders(I_CmsReport report) {
if (report != null) {
report.println(
Messages.get().container(Messages.RPT_DELETING_EXPORT_FOLDERS_BEGIN_0),
I_CmsReport.FORMAT_HEADLINE);
}
synchronized (m_lockScrubE... | public class class_name {
protected void scrubExportFolders(I_CmsReport report) {
if (report != null) {
report.println(
Messages.get().container(Messages.RPT_DELETING_EXPORT_FOLDERS_BEGIN_0),
I_CmsReport.FORMAT_HEADLINE); // depends on control dependency: [if], data... |
public class class_name {
void init() throws V4L4JException{
try {
super.init();
setJPGQuality(quality);
} catch (ImageFormatException ife){
if(format == -1){
String msg ="v4l4j was unable to find image format supported by"
+ "the \nvideo device and that can be encoded in JPEG.\n"
+ "Please ... | public class class_name {
void init() throws V4L4JException{
try {
super.init();
setJPGQuality(quality);
} catch (ImageFormatException ife){
if(format == -1){
String msg ="v4l4j was unable to find image format supported by"
+ "the \nvideo device and that can be encoded in JPEG.\n"
+ "Please ... |
public class class_name {
public String printRelativeOrDateTime(
UnixTime moment,
Timezone tz,
TimeUnit precision,
long maxdelta,
TemporalFormatter<Moment> formatter
) {
UnixTime ref = this.getReferenceClock().currentTime();
Moment t1 = Moment.from(ref);
... | public class class_name {
public String printRelativeOrDateTime(
UnixTime moment,
Timezone tz,
TimeUnit precision,
long maxdelta,
TemporalFormatter<Moment> formatter
) {
UnixTime ref = this.getReferenceClock().currentTime();
Moment t1 = Moment.from(ref);
... |
public class class_name {
public String getTitle(int type)
{
if (allow(type&ID3V1))
{
return id3v1.getTitle();
}
if (allow(type&ID3V2))
{
return id3v2.getFrameDataString(ID3v2Frames.TITLE);
}
return null;
} } | public class class_name {
public String getTitle(int type)
{
if (allow(type&ID3V1))
{
return id3v1.getTitle(); // depends on control dependency: [if], data = [none]
}
if (allow(type&ID3V2))
{
return id3v2.getFrameDataString(ID3v2Frames.TITLE); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
private int combine_blocks(long addr)
throws IOException
{
long cum_length;
int length;
long next_addr = addr;
length = readInt();
if (length > 0) {
while ((length > 0) && (next_addr + length < tail_ptr)) {
next_addr... | public class class_name {
private int combine_blocks(long addr)
throws IOException
{
long cum_length;
int length;
long next_addr = addr;
length = readInt();
if (length > 0) {
while ((length > 0) && (next_addr + length < tail_ptr)) {
next_addr... |
public class class_name {
private void process(String tebase) {
deleteConfigFile(tebase);
docMain = builder.newDocument();
config = docMain.createElement("config");
docMain.appendChild(config);
scripts = docMain.createElement("scripts");
config.appendChild(scripts);
String scriptsDir = tebase + "scripts"... | public class class_name {
private void process(String tebase) {
deleteConfigFile(tebase);
docMain = builder.newDocument();
config = docMain.createElement("config");
docMain.appendChild(config);
scripts = docMain.createElement("scripts");
config.appendChild(scripts);
String scriptsDir = tebase + "scripts"... |
public class class_name {
protected Diff processRevision(final Revision revision)
throws UnsupportedEncodingException
{
// ----------------------------------------------------//
// ** HERE IS THE POINT TO INCLUDE ADDITIONAL FILTERS //
// TO REMOVE FAULTY REVISIONS FROM FURTHER PROCESSING //
// ------------... | public class class_name {
protected Diff processRevision(final Revision revision)
throws UnsupportedEncodingException
{
// ----------------------------------------------------//
// ** HERE IS THE POINT TO INCLUDE ADDITIONAL FILTERS //
// TO REMOVE FAULTY REVISIONS FROM FURTHER PROCESSING //
// ------------... |
public class class_name {
protected static void showBoot() {
logger.info("Lasta Di boot successfully.");
logger.info(" SmartDeploy Mode: {}", SmartDeployUtil.getDeployMode(container));
if (getContainer().hasComponentDef(NamingConvention.class)) { // just in case
final NamingConvent... | public class class_name {
protected static void showBoot() {
logger.info("Lasta Di boot successfully.");
logger.info(" SmartDeploy Mode: {}", SmartDeployUtil.getDeployMode(container));
if (getContainer().hasComponentDef(NamingConvention.class)) { // just in case
final NamingConvent... |
public class class_name {
public PageContextImpl initialize(HttpServlet servlet, HttpServletRequest req, HttpServletResponse rsp, String errorPageURL, boolean needsSession, int bufferSize,
boolean autoFlush, boolean isChild, boolean ignoreScopes) {
parent = null;
requestId = counter++;
appListenerType = Appli... | public class class_name {
public PageContextImpl initialize(HttpServlet servlet, HttpServletRequest req, HttpServletResponse rsp, String errorPageURL, boolean needsSession, int bufferSize,
boolean autoFlush, boolean isChild, boolean ignoreScopes) {
parent = null;
requestId = counter++;
appListenerType = Appli... |
public class class_name {
private void addAnnotation(PsiElementFactory elementFactory, JavaCodeStyleManager styleManager) {
boolean annotated = AnnotationUtil.isAnnotated(psiClass, ANNOTATION_PACKAGE+"."+ANNOTATION_NAME, false);
if (!annotated) {
styleManager.shortenClassReferences(psiClass.getModifier... | public class class_name {
private void addAnnotation(PsiElementFactory elementFactory, JavaCodeStyleManager styleManager) {
boolean annotated = AnnotationUtil.isAnnotated(psiClass, ANNOTATION_PACKAGE+"."+ANNOTATION_NAME, false);
if (!annotated) {
styleManager.shortenClassReferences(psiClass.getModifier... |
public class class_name {
@Override
public EClass getModelMergerPluginConfiguration() {
if (modelMergerPluginConfigurationEClass == null) {
modelMergerPluginConfigurationEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(StorePackage.eNS_URI).getEClassifiers().get(52);
}
return modelMergerPluginCo... | public class class_name {
@Override
public EClass getModelMergerPluginConfiguration() {
if (modelMergerPluginConfigurationEClass == null) {
modelMergerPluginConfigurationEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(StorePackage.eNS_URI).getEClassifiers().get(52);
// depends on control dependency:... |
public class class_name {
public void addAccessEntry(String key, String value) {
m_accessControl.put(key, value);
if (LOG.isDebugEnabled()) {
LOG.debug(Messages.get().getBundle().key(Messages.LOG_ADD_ACCESS_ENTRY_2, key, value));
}
} } | public class class_name {
public void addAccessEntry(String key, String value) {
m_accessControl.put(key, value);
if (LOG.isDebugEnabled()) {
LOG.debug(Messages.get().getBundle().key(Messages.LOG_ADD_ACCESS_ENTRY_2, key, value)); // depends on control dependency: [if], data = [none]
... |
public class class_name {
private synchronized static Context recoverAppContext()
{
try
{
final Class<?> activityThreadClass = Class.forName( "android.app.ActivityThread" );
final Method method = activityThreadClass.getMethod( "currentApplication" );
Application app = (Application) method.... | public class class_name {
private synchronized static Context recoverAppContext()
{
try
{
final Class<?> activityThreadClass = Class.forName( "android.app.ActivityThread" );
final Method method = activityThreadClass.getMethod( "currentApplication" );
Application app = (Application) method.... |
public class class_name {
@Override
public void changed(Database.ChangeEvent event) {
synchronized (changesLock) {
if (isTimeout)
return;
lastChangesTimestamp = System.currentTimeMillis();
// Stop timeout timer:
stopTimeout();
/... | public class class_name {
@Override
public void changed(Database.ChangeEvent event) {
synchronized (changesLock) {
if (isTimeout)
return;
lastChangesTimestamp = System.currentTimeMillis();
// Stop timeout timer:
stopTimeout();
/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.