code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public static base_responses delete(nitro_service client, location resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
location deleteresources[] = new location[resources.length];
for (int i=0;i<resources.length;i++){
de... | public class class_name {
public static base_responses delete(nitro_service client, location resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
location deleteresources[] = new location[resources.length];
for (int i=0;i<resources.length;i++){
de... |
public class class_name {
@Override
public void refresh(final boolean layoutUpdated) {
final RecyclerView contentView = getContentView();
if (contentView == null) {
return;
}
if (contentView.getScrollState() != RecyclerView.SCROLL_STATE_IDLE) {
// contentVi... | public class class_name {
@Override
public void refresh(final boolean layoutUpdated) {
final RecyclerView contentView = getContentView();
if (contentView == null) {
return; // depends on control dependency: [if], data = [none]
}
if (contentView.getScrollState() != Recy... |
public class class_name {
protected final void closeSession() {
if (sessionTracker != null) {
Session currentSession = sessionTracker.getOpenSession();
if (currentSession != null) {
currentSession.close();
}
}
} } | public class class_name {
protected final void closeSession() {
if (sessionTracker != null) {
Session currentSession = sessionTracker.getOpenSession();
if (currentSession != null) {
currentSession.close(); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public static String encode(byte[] a) {
// check input
if (a == null || a.length == 0) {
// bogus shift, no data
return "x";
}
// determine count
int[] cnt = new int[256];
for (int i = 0 ; i < a.length; i++) {
cnt[a[i] & 0xff]++;
}
// determine shift for minimum number ... | public class class_name {
public static String encode(byte[] a) {
// check input
if (a == null || a.length == 0) {
// bogus shift, no data
return "x"; // depends on control dependency: [if], data = [none]
}
// determine count
int[] cnt = new int[256];
for (int i = 0 ; i < a.length; i++) {
cnt[a[i]... |
public class class_name {
public void setMaxProgress(int newMaxProgress) {
if (getProgress() <= newMaxProgress) {
maxProgress = newMaxProgress;
}
else {
throw new IllegalArgumentException(
String.format("MaxProgress cant be smaller than the current pr... | public class class_name {
public void setMaxProgress(int newMaxProgress) {
if (getProgress() <= newMaxProgress) {
maxProgress = newMaxProgress; // depends on control dependency: [if], data = [none]
}
else {
throw new IllegalArgumentException(
String.f... |
public class class_name {
@Nonnull
public static String escapeXML(CharSequence s) {
// double quote -- quot
// ampersand -- amp
// less than -- lt
// greater than -- gt
// apostrophe -- apos
StringBuilder sb = new StringBuilder(s.length() * 2);
for (int i = 0... | public class class_name {
@Nonnull
public static String escapeXML(CharSequence s) {
// double quote -- quot
// ampersand -- amp
// less than -- lt
// greater than -- gt
// apostrophe -- apos
StringBuilder sb = new StringBuilder(s.length() * 2);
for (int i = 0... |
public class class_name {
public static <T> DelegatingGenericResponse<T> create(T body, Response rawResponse) {
if (rawResponse == null) {
throw new NullPointerException("rawResponse:null");
}
ErrorBody errorBody = null;
int code = rawResponse.getStatus();
if (code < 200 || code >= 300) {
... | public class class_name {
public static <T> DelegatingGenericResponse<T> create(T body, Response rawResponse) {
if (rawResponse == null) {
throw new NullPointerException("rawResponse:null");
}
ErrorBody errorBody = null;
int code = rawResponse.getStatus();
if (code < 200 || code >= 300) {
... |
public class class_name {
public Limits withStorageTypes(StorageType... storageTypes) {
if (this.storageTypes == null) {
setStorageTypes(new java.util.ArrayList<StorageType>(storageTypes.length));
}
for (StorageType ele : storageTypes) {
this.storageTypes.add(ele);
... | public class class_name {
public Limits withStorageTypes(StorageType... storageTypes) {
if (this.storageTypes == null) {
setStorageTypes(new java.util.ArrayList<StorageType>(storageTypes.length)); // depends on control dependency: [if], data = [none]
}
for (StorageType ele : storage... |
public class class_name {
public boolean removeExpire() {
try {
if(!isBinary)return getJedisCommands(groupName).persist(key) == 1;
if(isCluster(groupName)){
return getBinaryJedisClusterCommands(groupName).persist(keyBytes) == 1;
}
return getBinaryJedisCommands(groupName).persist(keyBytes) == 1;
} f... | public class class_name {
public boolean removeExpire() {
try {
if(!isBinary)return getJedisCommands(groupName).persist(key) == 1;
if(isCluster(groupName)){
return getBinaryJedisClusterCommands(groupName).persist(keyBytes) == 1; // depends on control dependency: [if], data = [none]
}
return getBinary... |
public class class_name {
public Range<T> intersectionWith(Range<T> other) {
if (!this.isOverlappedBy(other)) { throw new IllegalArgumentException(String.format(
"Cannot calculate intersection with non-overlapping range %s", other)); }
if (this.equals(other)) { return this; }
T min = this.comparato... | public class class_name {
public Range<T> intersectionWith(Range<T> other) {
if (!this.isOverlappedBy(other)) { throw new IllegalArgumentException(String.format(
"Cannot calculate intersection with non-overlapping range %s", other)); }
if (this.equals(other)) { return this; } // depends on control depe... |
public class class_name {
public boolean setCovariance( double a11 , double a12, double a22 ) {
Q.data[0] = a11;
Q.data[1] = a12;
Q.data[2] = a12;
Q.data[3] = a22;
if( !eigen.decompose(Q) ) {
System.err.println("Eigenvalue decomposition failed!");
return false;
}
Complex_F64 v0 = eigen.getEigenva... | public class class_name {
public boolean setCovariance( double a11 , double a12, double a22 ) {
Q.data[0] = a11;
Q.data[1] = a12;
Q.data[2] = a12;
Q.data[3] = a22;
if( !eigen.decompose(Q) ) {
System.err.println("Eigenvalue decomposition failed!"); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void fieldsToControls()
{
super.fieldsToControls();
for (int iRowIndex = 0; iRowIndex < m_vComponentCache.size(); iRowIndex++)
{
ComponentCache componentCache = (ComponentCache)m_vComponentCache.elementAt(iRowIndex);
if (componentCach... | public class class_name {
public void fieldsToControls()
{
super.fieldsToControls();
for (int iRowIndex = 0; iRowIndex < m_vComponentCache.size(); iRowIndex++)
{
ComponentCache componentCache = (ComponentCache)m_vComponentCache.elementAt(iRowIndex);
if (componentCach... |
public class class_name {
public final void print(CharSequence separator, int charsPerLine) {
boolean first = true;
int len = 0;
for (T v : this) {
String s = String.valueOf(v);
if (first) {
System.out.print(s);
len += s.length();
... | public class class_name {
public final void print(CharSequence separator, int charsPerLine) {
boolean first = true;
int len = 0;
for (T v : this) {
String s = String.valueOf(v);
if (first) {
System.out.print(s); // depends on control dependency: [if], ... |
public class class_name {
public void marshall(GetIPSetRequest getIPSetRequest, ProtocolMarshaller protocolMarshaller) {
if (getIPSetRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(getIPSe... | public class class_name {
public void marshall(GetIPSetRequest getIPSetRequest, ProtocolMarshaller protocolMarshaller) {
if (getIPSetRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(getIPSe... |
public class class_name {
public static Float stringToFloat(String strString, int ibScale) throws Exception
{
Number objData;
initGlobals(); // Make sure you have the utilities
if ((strString == null) || (strString.equals(Constant.BLANK)))
return null;
strString = D... | public class class_name {
public static Float stringToFloat(String strString, int ibScale) throws Exception
{
Number objData;
initGlobals(); // Make sure you have the utilities
if ((strString == null) || (strString.equals(Constant.BLANK)))
return null;
strString = D... |
public class class_name {
public void detachAll(final Object self, final boolean nonProxiedInstance, final Map<Object, Object> alreadyDetached,
final Map<Object, Object> lazyObjects) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException {
final Class<?> selfClass = self.getClass();
... | public class class_name {
public void detachAll(final Object self, final boolean nonProxiedInstance, final Map<Object, Object> alreadyDetached,
final Map<Object, Object> lazyObjects) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException {
final Class<?> selfClass = self.getClass();
... |
public class class_name {
private static int buildTreeNode(FastRandomTree node, int nodeId, Node parentPMMLNode) {
Instances instance = node.m_MotherForest.m_Info;
addScoreDistribution(parentPMMLNode, node.m_ClassProbs, instance);
if (node.m_Attribute == -1) {
// Leaf: Add the nod... | public class class_name {
private static int buildTreeNode(FastRandomTree node, int nodeId, Node parentPMMLNode) {
Instances instance = node.m_MotherForest.m_Info;
addScoreDistribution(parentPMMLNode, node.m_ClassProbs, instance);
if (node.m_Attribute == -1) {
// Leaf: Add the nod... |
public class class_name {
@Override
public InternalResourceProvider doCreateResourceProvider(String rootPath)
{
try
{
return new FileResourceProvider(new File(_root, rootPath));
}
catch(IOException e)
{
throw new RuntimeException(e);
}
} } | public class class_name {
@Override
public InternalResourceProvider doCreateResourceProvider(String rootPath)
{
try
{
return new FileResourceProvider(new File(_root, rootPath)); // depends on control dependency: [try], data = [none]
}
catch(IOException e)
{
throw new RuntimeExceptio... |
public class class_name {
@Programmatic
public List<NotableLink> findByNotableInDateRange(
final Object notable,
final LocalDate startDate,
final LocalDate endDate) {
if(notable == null) {
return null;
}
final Bookmark bookmark = bookmarkServi... | public class class_name {
@Programmatic
public List<NotableLink> findByNotableInDateRange(
final Object notable,
final LocalDate startDate,
final LocalDate endDate) {
if(notable == null) {
return null; // depends on control dependency: [if], data = [none]
... |
public class class_name {
private void writeTitleProperty(Node node, Hashtable properties) {
String title = "";
// the title string is stored in the first child node
NodeList children = node.getChildNodes();
if (children != null) {
Node titleNode = children.item(0);
... | public class class_name {
private void writeTitleProperty(Node node, Hashtable properties) {
String title = "";
// the title string is stored in the first child node
NodeList children = node.getChildNodes();
if (children != null) {
Node titleNode = children.item(0);
... |
public class class_name {
public XmlWrapperSerializer createSerializer(Writer output) {
try {
XMLSerializer xmlStreamWriter=new XMLSerializer(output);
return new XmlWrapperSerializer(xmlStreamWriter);
} catch (Exception e) {
e.printStackTrace();
throw new KriptonRuntimeException(e);
} ... | public class class_name {
public XmlWrapperSerializer createSerializer(Writer output) {
try {
XMLSerializer xmlStreamWriter=new XMLSerializer(output);
return new XmlWrapperSerializer(xmlStreamWriter); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
e.printStackTr... |
public class class_name {
public List<T> getPlugins() {
if (!initialized) {
this.plugins = initialize(this.plugins);
this.initialized = true;
}
return plugins;
} } | public class class_name {
public List<T> getPlugins() {
if (!initialized) {
this.plugins = initialize(this.plugins); // depends on control dependency: [if], data = [none]
this.initialized = true; // depends on control dependency: [if], data = [none]
}
return plugins;
} } |
public class class_name {
public List<R> getRuns() {
List<R> resultList = new ArrayList<>();
for (IndexedRun run : runs) {
resultList.add(run.getRun());
}
return resultList;
} } | public class class_name {
public List<R> getRuns() {
List<R> resultList = new ArrayList<>();
for (IndexedRun run : runs) {
resultList.add(run.getRun()); // depends on control dependency: [for], data = [run]
}
return resultList;
} } |
public class class_name {
private boolean cancelRequestInternal(
AORequestedTick requestedTick,
boolean expiry)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
tc,
"cancelRequestInternal",
new Object[] { requestedTick, Boolean.valueOf(expiry)}... | public class class_name {
private boolean cancelRequestInternal(
AORequestedTick requestedTick,
boolean expiry)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(
tc,
"cancelRequestInternal",
new Object[] { requestedTick, Boolean.valueOf(expiry)}... |
public class class_name {
public String scanName() throws IOException {
// load more characters, if needed
if (fCurrentEntity.position == fCurrentEntity.count) {
load(0, true);
}
// scan name
int offset = fCurrentEntity.position;
if (XMLChar.isNameStart(fCurrentEntity.ch[offset])) {
if (++fCurrentE... | public class class_name {
public String scanName() throws IOException {
// load more characters, if needed
if (fCurrentEntity.position == fCurrentEntity.count) {
load(0, true);
}
// scan name
int offset = fCurrentEntity.position;
if (XMLChar.isNameStart(fCurrentEntity.ch[offset])) {
if (++fCurrentE... |
public class class_name {
public static ExpectedCondition<WebElement> atLeastOneOfTheseElementsIsPresent(final By... locators) {
return new ExpectedCondition<WebElement>() {
@Override
public WebElement apply(@Nullable WebDriver driver) {
WebElement element = null;
... | public class class_name {
public static ExpectedCondition<WebElement> atLeastOneOfTheseElementsIsPresent(final By... locators) {
return new ExpectedCondition<WebElement>() {
@Override
public WebElement apply(@Nullable WebDriver driver) {
WebElement element = null;
... |
public class class_name {
public static String addFolderSlashIfNeeded(String folderName) {
if (!"".equals(folderName) && !folderName.endsWith("/")) {
return folderName + "/";
} else {
return folderName;
}
} } | public class class_name {
public static String addFolderSlashIfNeeded(String folderName) {
if (!"".equals(folderName) && !folderName.endsWith("/")) {
return folderName + "/"; // depends on control dependency: [if], data = [none]
} else {
return folderName; // depends on control ... |
public class class_name {
public static String interpolate(File dockerFile, FixedStringSearchInterpolator interpolator) throws IOException {
StringBuilder ret = new StringBuilder();
try (BufferedReader reader = new BufferedReader(new FileReader(dockerFile))) {
String line;
while... | public class class_name {
public static String interpolate(File dockerFile, FixedStringSearchInterpolator interpolator) throws IOException {
StringBuilder ret = new StringBuilder();
try (BufferedReader reader = new BufferedReader(new FileReader(dockerFile))) {
String line;
while... |
public class class_name {
private RelBuilder createSelectDistinct(RelBuilder relBuilder,
Aggregate aggregate, List<Integer> argList, int filterArg,
Map<Integer, Integer> sourceOf) {
relBuilder.push(aggregate.getInput());
final List<Pair<RexNode, String>> projects = new ArrayList<>();
final List<RelDataType... | public class class_name {
private RelBuilder createSelectDistinct(RelBuilder relBuilder,
Aggregate aggregate, List<Integer> argList, int filterArg,
Map<Integer, Integer> sourceOf) {
relBuilder.push(aggregate.getInput());
final List<Pair<RexNode, String>> projects = new ArrayList<>();
final List<RelDataType... |
public class class_name {
public LifecycleCallbackType<InterceptorType<T>> getOrCreatePostConstruct()
{
List<Node> nodeList = childNode.get("post-construct");
if (nodeList != null && nodeList.size() > 0)
{
return new LifecycleCallbackTypeImpl<InterceptorType<T>>(this, "post-construct", c... | public class class_name {
public LifecycleCallbackType<InterceptorType<T>> getOrCreatePostConstruct()
{
List<Node> nodeList = childNode.get("post-construct");
if (nodeList != null && nodeList.size() > 0)
{
return new LifecycleCallbackTypeImpl<InterceptorType<T>>(this, "post-construct", c... |
public class class_name {
@SuppressWarnings("unchecked")
public final T duplicate() {
if (backing instanceof ByteBuffer) {
return (T) ((ByteBuffer) backing).duplicate();
}
if (backing instanceof CharBuffer) {
return (T) ((CharBuffer) backing).duplicate();
}
... | public class class_name {
@SuppressWarnings("unchecked")
public final T duplicate() {
if (backing instanceof ByteBuffer) {
return (T) ((ByteBuffer) backing).duplicate(); // depends on control dependency: [if], data = [none]
}
if (backing instanceof CharBuffer) {
retu... |
public class class_name {
static String stripLeadingHyphens(String str)
{
if (str == null)
{
return null;
}
if (str.startsWith("--"))
{
return str.substring(2, str.length());
}
else if (str.startsWith("-"))
{
return... | public class class_name {
static String stripLeadingHyphens(String str)
{
if (str == null)
{
return null; // depends on control dependency: [if], data = [none]
}
if (str.startsWith("--"))
{
return str.substring(2, str.length()); // depends on control ... |
public class class_name {
public void setAttachedPolicies(java.util.Collection<AttachedPolicy> attachedPolicies) {
if (attachedPolicies == null) {
this.attachedPolicies = null;
return;
}
this.attachedPolicies = new com.amazonaws.internal.SdkInternalList<AttachedPolicy>(... | public class class_name {
public void setAttachedPolicies(java.util.Collection<AttachedPolicy> attachedPolicies) {
if (attachedPolicies == null) {
this.attachedPolicies = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [... |
public class class_name {
public static List<BundleModel> bundles(BundleContext context) {
List<BundleModel> bundles = new ArrayList<>();
for (Bundle bundle : context.getBundles()) {
bundles.add(new BundleModel(bundle));
}
return bundles;
} } | public class class_name {
public static List<BundleModel> bundles(BundleContext context) {
List<BundleModel> bundles = new ArrayList<>();
for (Bundle bundle : context.getBundles()) {
bundles.add(new BundleModel(bundle)); // depends on control dependency: [for], data = [bundle]
}
... |
public class class_name {
public static String join(String[] strings, String separator) {
if (strings == null || strings.length == 0) {
return EMPTY;
}
StringBuilder sb = new StringBuilder();
for (String string : strings) {
if (isNotBlank(string)) {
... | public class class_name {
public static String join(String[] strings, String separator) {
if (strings == null || strings.length == 0) {
return EMPTY; // depends on control dependency: [if], data = [none]
}
StringBuilder sb = new StringBuilder();
for (String string : strings)... |
public class class_name {
public UNode toDoc() {
UNode userNode = UNode.createMapNode(m_userID, "user");
if (!Utils.isEmpty(m_password)) {
userNode.addValueNode("password", m_password, true);
}
if (!Utils.isEmpty(m_hash)) {
userNode.addValueNode("hash", m_hash, t... | public class class_name {
public UNode toDoc() {
UNode userNode = UNode.createMapNode(m_userID, "user");
if (!Utils.isEmpty(m_password)) {
userNode.addValueNode("password", m_password, true); // depends on control dependency: [if], data = [none]
}
if (!Utils.isEmpty(m_hash))... |
public class class_name {
public void setSearchFilter(String searchFilter) {
if (!m_metadata.isSearchable()) {
return;
}
if (searchFilter == null) {
searchFilter = "";
}
m_searchFilter = searchFilter;
boolean showAll = CmsStringUtil.isNotEmptyOrW... | public class class_name {
public void setSearchFilter(String searchFilter) {
if (!m_metadata.isSearchable()) {
return; // depends on control dependency: [if], data = [none]
}
if (searchFilter == null) {
searchFilter = ""; // depends on control dependency: [if], data = [... |
public class class_name {
public static Object convertToArray(Object source, Class<?> target) throws ConversionException {
try {
Class<?> targetType = target.getComponentType();
if (source.getClass().isArray()) {
Object targetInstance = Array.newInstance(targetType, ... | public class class_name {
public static Object convertToArray(Object source, Class<?> target) throws ConversionException {
try {
Class<?> targetType = target.getComponentType();
if (source.getClass().isArray()) {
Object targetInstance = Array.newInstance(targetType, ... |
public class class_name {
private Set<File> getReadLocks() {
final Set<File> readLocks = new HashSet<File>();
File[] lckFiles = this.lockPath.listFiles(lockFilter);
for (final File lckFile : lckFiles) {
if (lockFilter.isReaderLockFile(lckFile)) {
readLocks.add(lckFil... | public class class_name {
private Set<File> getReadLocks() {
final Set<File> readLocks = new HashSet<File>();
File[] lckFiles = this.lockPath.listFiles(lockFilter);
for (final File lckFile : lckFiles) {
if (lockFilter.isReaderLockFile(lckFile)) {
readLocks.add(lckFil... |
public class class_name {
public static String getRegion(Locale locale) {
String region = locale.getUnicodeLocaleType("rg");
if ((region != null) && (region.length() == 6)) {
String upper = region.toUpperCase(Locale.US);
if (upper.endsWith("ZZZZ")) {
return upp... | public class class_name {
public static String getRegion(Locale locale) {
String region = locale.getUnicodeLocaleType("rg");
if ((region != null) && (region.length() == 6)) {
String upper = region.toUpperCase(Locale.US);
if (upper.endsWith("ZZZZ")) {
return upp... |
public class class_name {
private void initTrack(Benchmark... benchs) {
if (!useTrack) return;
String tpl = "<div id=%ID%horse class=horse><nobr><img class=himg src=images/bench/horse.gif><span>%ID%</span></nobr></div>";
GQuery g = $("#racefield").html("");
for (Benchmark b : benchs) {
String id ... | public class class_name {
private void initTrack(Benchmark... benchs) {
if (!useTrack) return;
String tpl = "<div id=%ID%horse class=horse><nobr><img class=himg src=images/bench/horse.gif><span>%ID%</span></nobr></div>";
GQuery g = $("#racefield").html("");
for (Benchmark b : benchs) {
String id ... |
public class class_name {
public String getFractionalSizeAsString()
{
if(_size == 0)
return "0";
long sizeInBytes = getSizeInBytes();
// determine the biggest size unit with non 0 size
for(SizeUnit sizeUnit : ORDERED_SIZE_UNIT)
{
if(sizeUnit == SizeUnit.BYTE)
return String.v... | public class class_name {
public String getFractionalSizeAsString()
{
if(_size == 0)
return "0";
long sizeInBytes = getSizeInBytes();
// determine the biggest size unit with non 0 size
for(SizeUnit sizeUnit : ORDERED_SIZE_UNIT)
{
if(sizeUnit == SizeUnit.BYTE)
return String.v... |
public class class_name {
public byte[] getBytes() {
// avoid copy if `base` is `byte[]`
if (offset == BYTE_ARRAY_OFFSET && base instanceof byte[]
&& ((byte[]) base).length == numBytes) {
return (byte[]) base;
} else {
byte[] bytes = new byte[numBytes];
copyMemory(base, offset, byte... | public class class_name {
public byte[] getBytes() {
// avoid copy if `base` is `byte[]`
if (offset == BYTE_ARRAY_OFFSET && base instanceof byte[]
&& ((byte[]) base).length == numBytes) {
return (byte[]) base; // depends on control dependency: [if], data = [none]
} else {
byte[] bytes = n... |
public class class_name {
public void addListeners()
{
super.addListeners();
Record record = this.getMainRecord();
record.setKeyArea(DBConstants.MAIN_KEY_AREA);
record.getCounterField().setString(this.getProperty(DBConstants.OBJECT_ID));
try {
if (!record.seek(nu... | public class class_name {
public void addListeners()
{
super.addListeners();
Record record = this.getMainRecord();
record.setKeyArea(DBConstants.MAIN_KEY_AREA);
record.getCounterField().setString(this.getProperty(DBConstants.OBJECT_ID));
try {
if (!record.seek(nu... |
public class class_name {
public void buildContents(XMLNode node, Content contentTree) {
Content contentListTree = writer.getContentsHeader();
PackageDoc[] packages = configuration.packages;
printedPackageHeaders = new HashSet<String>();
for (int i = 0; i < packages.length; i++) {
... | public class class_name {
public void buildContents(XMLNode node, Content contentTree) {
Content contentListTree = writer.getContentsHeader();
PackageDoc[] packages = configuration.packages;
printedPackageHeaders = new HashSet<String>();
for (int i = 0; i < packages.length; i++) {
... |
public class class_name {
private static boolean isPartialRow(Iterable<ExpandedPair> pairs, Iterable<ExpandedRow> rows) {
for (ExpandedRow r : rows) {
boolean allFound = true;
for (ExpandedPair p : pairs) {
boolean found = false;
for (ExpandedPair pp : r.getPairs()) {
if (p.eq... | public class class_name {
private static boolean isPartialRow(Iterable<ExpandedPair> pairs, Iterable<ExpandedRow> rows) {
for (ExpandedRow r : rows) {
boolean allFound = true;
for (ExpandedPair p : pairs) {
boolean found = false;
for (ExpandedPair pp : r.getPairs()) {
if (p.eq... |
public class class_name {
private View compileView(String viewName, Map<String, Object> viewProps) {
String language = (String) viewProps.get("language");
if (language == null) {
language = "javascript";
}
String mapSource = (String) viewProps.get("map");
if (mapSour... | public class class_name {
private View compileView(String viewName, Map<String, Object> viewProps) {
String language = (String) viewProps.get("language");
if (language == null) {
language = "javascript"; // depends on control dependency: [if], data = [none]
}
String mapSourc... |
public class class_name {
public void marshall(BrokerInstanceOption brokerInstanceOption, ProtocolMarshaller protocolMarshaller) {
if (brokerInstanceOption == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... | public class class_name {
public void marshall(BrokerInstanceOption brokerInstanceOption, ProtocolMarshaller protocolMarshaller) {
if (brokerInstanceOption == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... |
public class class_name {
public void marshall(CreateRelationalDatabaseRequest createRelationalDatabaseRequest, ProtocolMarshaller protocolMarshaller) {
if (createRelationalDatabaseRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {... | public class class_name {
public void marshall(CreateRelationalDatabaseRequest createRelationalDatabaseRequest, ProtocolMarshaller protocolMarshaller) {
if (createRelationalDatabaseRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {... |
public class class_name {
protected LightblueClientConfiguration baseLightblueClientConfiguration() {
String propertiesFilePath = context.getInitParameter(LIGHTBLUE_CLIENT_PROPERTIES_PATH_KEY);
if (propertiesFilePath == null) {
return PropertiesLightblueClientConfiguration.fromDefault();
... | public class class_name {
protected LightblueClientConfiguration baseLightblueClientConfiguration() {
String propertiesFilePath = context.getInitParameter(LIGHTBLUE_CLIENT_PROPERTIES_PATH_KEY);
if (propertiesFilePath == null) {
return PropertiesLightblueClientConfiguration.fromDefault(); /... |
public class class_name {
private String sqlProcess(String originSql, Map<String, Object> params) {
if (params == null || params.size() == 0)
return originSql;
String newSql = originSql;
for (Entry<String, Object> entry : params.entrySet()) {
String paramName = entry.g... | public class class_name {
private String sqlProcess(String originSql, Map<String, Object> params) {
if (params == null || params.size() == 0)
return originSql;
String newSql = originSql;
for (Entry<String, Object> entry : params.entrySet()) {
String paramName = entry.g... |
public class class_name {
public final ReadFuture read() {
if (!getConfig().isUseReadOperation()) {
throw new IllegalStateException("useReadOperation is not enabled.");
}
Queue<ReadFuture> readyReadFutures = getReadyReadFutures();
ReadFuture future;
synchronized (re... | public class class_name {
public final ReadFuture read() {
if (!getConfig().isUseReadOperation()) {
throw new IllegalStateException("useReadOperation is not enabled.");
}
Queue<ReadFuture> readyReadFutures = getReadyReadFutures();
ReadFuture future;
synchronized (re... |
public class class_name {
private void setUpSimpleRelation(Entity entity, ForeignKey fk) {
Relation forwardRelation = buildSimpleRelation(entity, fk);
entity.addRelation(forwardRelation);
if (shouldCreateInverse(forwardRelation)) {
Relation reverseRelation = forwardRelation.createI... | public class class_name {
private void setUpSimpleRelation(Entity entity, ForeignKey fk) {
Relation forwardRelation = buildSimpleRelation(entity, fk);
entity.addRelation(forwardRelation);
if (shouldCreateInverse(forwardRelation)) {
Relation reverseRelation = forwardRelation.createI... |
public class class_name {
public void startElement(String uri, String name, String qName, Attributes atts)
{
boolean isDebug = logger.isDebugEnabled();
m_CurrentString = null;
try
{
switch (getLiteralId(qName))
{
case MAPPING_REPOSIT... | public class class_name {
public void startElement(String uri, String name, String qName, Attributes atts)
{
boolean isDebug = logger.isDebugEnabled();
m_CurrentString = null;
try
{
switch (getLiteralId(qName))
{
case MAPPING_REPOSIT... |
public class class_name {
public Space merge(Space other) {
float minx = Math.min(x, other.x);
float miny = Math.min(y, other.y);
float newwidth = width+other.width;
float newheight = height+other.height;
if (x == other.x) {
newwidth = width;
} else {
newheight = height;
}
return new Space(min... | public class class_name {
public Space merge(Space other) {
float minx = Math.min(x, other.x);
float miny = Math.min(y, other.y);
float newwidth = width+other.width;
float newheight = height+other.height;
if (x == other.x) {
newwidth = width; // depends on control dependency: [if], data = [none]
} el... |
public class class_name {
private static Optional<String> findFirstManifestAttribute(File jarFile, String... attributes) throws IOException {
if (attributes.length == 0) {
return Optional.empty();
}
try (JarFile f = new JarFile(jarFile)) {
return findFirstManifestAttribute(f, attributes);
}
} } | public class class_name {
private static Optional<String> findFirstManifestAttribute(File jarFile, String... attributes) throws IOException {
if (attributes.length == 0) {
return Optional.empty(); // depends on control dependency: [if], data = [none]
}
try (JarFile f = new JarFile(jarFile)) {
return findFi... |
public class class_name {
@Override
@FFDCIgnore({ IOException.class })
public void run() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()){
Tr.debug(tc, "Run WriteListenerRunnable start, WriteListener enabled: " + this._listener +" , current thread -->"+ Thread.currentTh... | public class class_name {
@Override
@FFDCIgnore({ IOException.class })
public void run() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()){
Tr.debug(tc, "Run WriteListenerRunnable start, WriteListener enabled: " + this._listener +" , current thread -->"+ Thread.currentTh... |
public class class_name {
private String fetchOfferings() {
DiscovererFetchallResult allOfferings = null;
try {
String discovererOutput = discovererClient.getRequest("fetch_all", Collections.EMPTY_LIST);
ObjectMapper mapper = new ObjectMapper();
allOfferings = mapper... | public class class_name {
private String fetchOfferings() {
DiscovererFetchallResult allOfferings = null;
try {
String discovererOutput = discovererClient.getRequest("fetch_all", Collections.EMPTY_LIST);
ObjectMapper mapper = new ObjectMapper();
allOfferings = mapper... |
public class class_name {
final KeyAwareLockPromise lockOrRegisterBackupLock(TxInvocationContext<?> ctx, Object key, long lockTimeout)
throws InterruptedException {
switch (cdl.getCacheTopology().getDistribution(key).writeOwnership()) {
case PRIMARY:
if (trace) {
getL... | public class class_name {
final KeyAwareLockPromise lockOrRegisterBackupLock(TxInvocationContext<?> ctx, Object key, long lockTimeout)
throws InterruptedException {
switch (cdl.getCacheTopology().getDistribution(key).writeOwnership()) {
case PRIMARY:
if (trace) {
getL... |
public class class_name {
@Timed
@Override
public String get() {
try {
LOGGER.debug("mintPid()");
final HttpResponse resp = client.execute( minterRequest() );
return responseToPid( EntityUtils.toString(resp.getEntity()) );
} catch ( final IOException ex ) {
... | public class class_name {
@Timed
@Override
public String get() {
try {
LOGGER.debug("mintPid()"); // depends on control dependency: [try], data = [none]
final HttpResponse resp = client.execute( minterRequest() );
return responseToPid( EntityUtils.toString(resp.getEn... |
public class class_name {
public static Optional<AnnotationMirror> getAnnotationMirror(Element element,
Class<? extends Annotation> annotationClass) {
String annotationClassName = annotationClass.getCanonicalName();
for (AnnotationMirror annotationMirror : element.getAnnotationMirrors()) {
TypeElem... | public class class_name {
public static Optional<AnnotationMirror> getAnnotationMirror(Element element,
Class<? extends Annotation> annotationClass) {
String annotationClassName = annotationClass.getCanonicalName();
for (AnnotationMirror annotationMirror : element.getAnnotationMirrors()) {
TypeElem... |
public class class_name {
@Override
public void remove(final String id, final Callback<Void> callback) {
THREAD_POOL_EXECUTOR.execute(new Runnable() {
Exception exception = null;
@Override
public void run() {
try {
RestAdapter.this.r... | public class class_name {
@Override
public void remove(final String id, final Callback<Void> callback) {
THREAD_POOL_EXECUTOR.execute(new Runnable() {
Exception exception = null;
@Override
public void run() {
try {
RestAdapter.this.r... |
public class class_name {
private void fillNode(final ResourceXMLParser.Entity entity, final NodeEntryImpl node) {
node.setUsername(entity.getProperty(NODE_USERNAME));
node.setHostname(entity.getProperty(NODE_HOSTNAME));
node.setOsArch(entity.getProperty(NODE_OS_ARCH));
node.setOsFamily... | public class class_name {
private void fillNode(final ResourceXMLParser.Entity entity, final NodeEntryImpl node) {
node.setUsername(entity.getProperty(NODE_USERNAME));
node.setHostname(entity.getProperty(NODE_HOSTNAME));
node.setOsArch(entity.getProperty(NODE_OS_ARCH));
node.setOsFamily... |
public class class_name {
public boolean queueAt(Alarm alarm, long wakeTime)
{
boolean isEarliest = false;
long prevNextAlarmTime;
do {
prevNextAlarmTime = _nextAlarmTime.get();
} while (wakeTime > 0 && wakeTime < prevNextAlarmTime
&& ! _nextAlarmTime.compareAndSet(prevN... | public class class_name {
public boolean queueAt(Alarm alarm, long wakeTime)
{
boolean isEarliest = false;
long prevNextAlarmTime;
do {
prevNextAlarmTime = _nextAlarmTime.get();
} while (wakeTime > 0 && wakeTime < prevNextAlarmTime
&& ! _nextAlarmTime.compareAndSet(prevN... |
public class class_name {
public void parseRawValue(String value)
{
int valueIndex = 0;
int elementIndex = 0;
m_elements.clear();
while (valueIndex < value.length() && elementIndex < m_elements.size())
{
int elementLength = m_lengths.get(elementIndex).intValue();
if (... | public class class_name {
public void parseRawValue(String value)
{
int valueIndex = 0;
int elementIndex = 0;
m_elements.clear();
while (valueIndex < value.length() && elementIndex < m_elements.size())
{
int elementLength = m_lengths.get(elementIndex).intValue();
if (... |
public class class_name {
public static BigDecimal inverse(final BigDecimal value) {
if (isNotZero(value)) {
return BigDecimal.ONE.setScale(MAX_SCALE_FOR_INVERSE).divide(value, BigDecimal.ROUND_HALF_UP);
}
return null;
} } | public class class_name {
public static BigDecimal inverse(final BigDecimal value) {
if (isNotZero(value)) {
return BigDecimal.ONE.setScale(MAX_SCALE_FOR_INVERSE).divide(value, BigDecimal.ROUND_HALF_UP);
// depends on control dependency: [if], data = [none]
}
return null;
}... |
public class class_name {
public static void normalizeL2( TupleDesc_F64 desc ) {
double norm = 0;
for (int i = 0; i < desc.size(); i++) {
double v = desc.value[i];
norm += v*v;
}
if( norm == 0 )
return;
norm = Math.sqrt(norm);
for (int i = 0; i < desc.size(); i++) {
desc.value[i] /= norm;
}
... | public class class_name {
public static void normalizeL2( TupleDesc_F64 desc ) {
double norm = 0;
for (int i = 0; i < desc.size(); i++) {
double v = desc.value[i];
norm += v*v; // depends on control dependency: [for], data = [none]
}
if( norm == 0 )
return;
norm = Math.sqrt(norm);
for (int i = 0;... |
public class class_name {
@Override
protected List<Driver> createDrivers(TaskContext taskContext)
{
if (probeDriverFactory == null) {
List<Type> ordersTypes = getColumnTypes("orders", "orderkey", "totalprice");
OperatorFactory ordersTableScan = createTableScanOperator(0, new Pla... | public class class_name {
@Override
protected List<Driver> createDrivers(TaskContext taskContext)
{
if (probeDriverFactory == null) {
List<Type> ordersTypes = getColumnTypes("orders", "orderkey", "totalprice");
OperatorFactory ordersTableScan = createTableScanOperator(0, new Pla... |
public class class_name {
public void startElement(String uri, String lname, String name,
Attributes attrs) {
// System.err.println("Start: " + name);
// super.handleStartingTags is replaced with handleStartingTags
// suggestion by Vu Ngoc Tan/Hop
name = name.toLowerCase();
... | public class class_name {
public void startElement(String uri, String lname, String name,
Attributes attrs) {
// System.err.println("Start: " + name);
// super.handleStartingTags is replaced with handleStartingTags
// suggestion by Vu Ngoc Tan/Hop
name = name.toLowerCase();
... |
public class class_name {
public void marshall(Condition condition, ProtocolMarshaller protocolMarshaller) {
if (condition == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(condition.getConditionTyp... | public class class_name {
public void marshall(Condition condition, ProtocolMarshaller protocolMarshaller) {
if (condition == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(condition.getConditionTyp... |
public class class_name {
public int doRecordChange(FieldInfo field, int iChangeType, boolean bDisplayOption)
{ // Read a valid record
int iErrorCode = DBConstants.NORMAL_RETURN;
switch (iChangeType)
{
case DBConstants.DELETE_TYPE:
m_recDependent = this.getSubRec... | public class class_name {
public int doRecordChange(FieldInfo field, int iChangeType, boolean bDisplayOption)
{ // Read a valid record
int iErrorCode = DBConstants.NORMAL_RETURN;
switch (iChangeType)
{
case DBConstants.DELETE_TYPE:
m_recDependent = this.getSubRec... |
public class class_name {
public static String camelCaseToSnakeCase(String camelCase) {
if (null == camelCase || camelCase.length()==0)
return camelCase;
StringBuilder snakeCase = new StringBuilder(camelCase.length()+3);
snakeCase.append(camelCase.charAt(0));
boolean hasCamelCase=false;
for (int i = 1; i ... | public class class_name {
public static String camelCaseToSnakeCase(String camelCase) {
if (null == camelCase || camelCase.length()==0)
return camelCase;
StringBuilder snakeCase = new StringBuilder(camelCase.length()+3);
snakeCase.append(camelCase.charAt(0));
boolean hasCamelCase=false;
for (int i = 1; i ... |
public class class_name {
public static <T> CellValidator cellValidator(T obj) {
if (obj == null) {
return null;
}
Kind kind = Kind.objectToKind(obj);
AbstractType<?> tAbstractType = CassandraUtils.marshallerInstance(obj);
String validatorClassName = tAbstractType.g... | public class class_name {
public static <T> CellValidator cellValidator(T obj) {
if (obj == null) {
return null; // depends on control dependency: [if], data = [none]
}
Kind kind = Kind.objectToKind(obj);
AbstractType<?> tAbstractType = CassandraUtils.marshallerInstance(obj... |
public class class_name {
Node createGetProps(Node receiver, String firstPropName, String... otherPropNames) {
Node result = createGetProp(receiver, firstPropName);
for (String propertyName : otherPropNames) {
result = createGetProp(result, propertyName);
}
return result;
} } | public class class_name {
Node createGetProps(Node receiver, String firstPropName, String... otherPropNames) {
Node result = createGetProp(receiver, firstPropName);
for (String propertyName : otherPropNames) {
result = createGetProp(result, propertyName); // depends on control dependency: [for], data = [... |
public class class_name {
@Override
public <R> MethodResult<R> run(Callable<R> callable) {
if (!semaphore.tryAcquire()) {
metrics.incrementBulkheadRejectedCount();
return MethodResult.failure(new BulkheadException());
}
long startTime = System.nanoTime();
m... | public class class_name {
@Override
public <R> MethodResult<R> run(Callable<R> callable) {
if (!semaphore.tryAcquire()) {
metrics.incrementBulkheadRejectedCount(); // depends on control dependency: [if], data = [none]
return MethodResult.failure(new BulkheadException()); // depends... |
public class class_name {
@Override
protected void deltaScheduleWorkAccepted()
{
if (trace)
log.trace("deltaScheduleWorkAccepted");
super.deltaScheduleWorkAccepted();
if (distributedStatisticsEnabled && distributedStatistics != null && transport != null)
{
try
... | public class class_name {
@Override
protected void deltaScheduleWorkAccepted()
{
if (trace)
log.trace("deltaScheduleWorkAccepted");
super.deltaScheduleWorkAccepted();
if (distributedStatisticsEnabled && distributedStatistics != null && transport != null)
{
try
... |
public class class_name {
@Override
protected Measurement[] getModelMeasurementsImpl() {
Measurement[] measurements = new Measurement[this.maxStoredCount];
for (int m = 0; m < this.maxMemberCount; m++) {
measurements[m] = new Measurement("Member weight " + (m + 1), -1);
}
... | public class class_name {
@Override
protected Measurement[] getModelMeasurementsImpl() {
Measurement[] measurements = new Measurement[this.maxStoredCount];
for (int m = 0; m < this.maxMemberCount; m++) {
measurements[m] = new Measurement("Member weight " + (m + 1), -1); // depends on c... |
public class class_name {
public static String stringify(final JsonNode json) {
try {
return json != null ? createObjectMapper().writeValueAsString(json) : "{}";
} catch (JsonProcessingException jpx) {
throw new RuntimeException("A problem occurred while stringifying a JsonNode:... | public class class_name {
public static String stringify(final JsonNode json) {
try {
return json != null ? createObjectMapper().writeValueAsString(json) : "{}"; // depends on control dependency: [try], data = [none]
} catch (JsonProcessingException jpx) {
throw new RuntimeExcep... |
public class class_name {
public MemberSelector reset() {
if (selectionsIterator != null) {
this.selections = strategy.selectConnections(leader, Lists.newLinkedList(members));
this.selectionsIterator = null;
}
return this;
} } | public class class_name {
public MemberSelector reset() {
if (selectionsIterator != null) {
this.selections = strategy.selectConnections(leader, Lists.newLinkedList(members)); // depends on control dependency: [if], data = [none]
this.selectionsIterator = null; // depends on control dependency: [if], d... |
public class class_name {
public boolean isNew(String identifier)
{
ItemState lastState = changesLog.getItemState(identifier);
if (lastState == null || lastState.isDeleted())
{
return false;
}
return changesLog.getItemState(identifier, ItemState.ADDED) != null;
} } | public class class_name {
public boolean isNew(String identifier)
{
ItemState lastState = changesLog.getItemState(identifier);
if (lastState == null || lastState.isDeleted())
{
return false; // depends on control dependency: [if], data = [none]
}
return changesLog.getItemSt... |
public class class_name {
private boolean isHeaderinSuppressedHeadersList(String headername)
{
if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
checkRequestObjectInUse();
}
boolean suppressHeader = false;
if(headername != null){
Iterator itList = suppres... | public class class_name {
private boolean isHeaderinSuppressedHeadersList(String headername)
{
if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
checkRequestObjectInUse(); // depends on control dependency: [if], data = [none]
}
boolean suppressHeader = false;
if(head... |
public class class_name {
@Override
public void afterCompletion(int status) {
if (tc.isEntryEnabled()) {
Tr.entry(this, tc, "afterCompletion");
}
if (tc.isDebugEnabled()) {
Tr.debug(
tc,
"Using transaction wrapper@" + Integ... | public class class_name {
@Override
public void afterCompletion(int status) {
if (tc.isEntryEnabled()) {
Tr.entry(this, tc, "afterCompletion"); // depends on control dependency: [if], data = [none]
}
if (tc.isDebugEnabled()) {
Tr.debug(
tc,
... |
public class class_name {
public void marshall(DeleteDirectConnectGatewayRequest deleteDirectConnectGatewayRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteDirectConnectGatewayRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... | public class class_name {
public void marshall(DeleteDirectConnectGatewayRequest deleteDirectConnectGatewayRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteDirectConnectGatewayRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... |
public class class_name {
private List<CmsSelectWidgetOption> getProjectWidgetConfiguration() {
List<CmsSelectWidgetOption> result = new ArrayList<CmsSelectWidgetOption>();
try {
List<CmsProject> projects = OpenCms.getOrgUnitManager().getAllManageableProjects(getCms(), "", true);
... | public class class_name {
private List<CmsSelectWidgetOption> getProjectWidgetConfiguration() {
List<CmsSelectWidgetOption> result = new ArrayList<CmsSelectWidgetOption>();
try {
List<CmsProject> projects = OpenCms.getOrgUnitManager().getAllManageableProjects(getCms(), "", true);
... |
public class class_name {
public Collection<User> list(String name, String role)
{
List<User> ret = new ArrayList<User>();
Collection<User> users = list();
for(User user : users)
{
if((name == null || user.getName().toLowerCase().indexOf(name) != -1)
&& (... | public class class_name {
public Collection<User> list(String name, String role)
{
List<User> ret = new ArrayList<User>();
Collection<User> users = list();
for(User user : users)
{
if((name == null || user.getName().toLowerCase().indexOf(name) != -1)
&& (... |
public class class_name {
public static HttpContextActivationFilter getContextActivationFilter(BeanManagerImpl manager, ServletContext context) {
HttpContextActivationFilter filter = manager.getServices().get(HttpContextActivationFilter.class);
final String pattern = context.getInitParameter(InitParame... | public class class_name {
public static HttpContextActivationFilter getContextActivationFilter(BeanManagerImpl manager, ServletContext context) {
HttpContextActivationFilter filter = manager.getServices().get(HttpContextActivationFilter.class);
final String pattern = context.getInitParameter(InitParame... |
public class class_name {
@Override
public void run() {
int received;
// noinspection InfiniteLoopStatement
while (true) {
// System.out.println("In PollThread loop (sleep=" + sleep +
// ")....");
try {
if (sleep != 0) {
received = get_command(sleep);
} else {
received = POLL_TIM... | public class class_name {
@Override
public void run() {
int received;
// noinspection InfiniteLoopStatement
while (true) {
// System.out.println("In PollThread loop (sleep=" + sleep +
// ")....");
try {
if (sleep != 0) {
received = get_command(sleep); // depends on control dependency: [i... |
public class class_name {
public static float min(final float a, final float b) {
if (Float.isNaN(a)) {
return b;
} else if (Float.isNaN(b)) {
return a;
} else {
return Math.min(a, b);
}
} } | public class class_name {
public static float min(final float a, final float b) {
if (Float.isNaN(a)) {
return b;
// depends on control dependency: [if], data = [none]
} else if (Float.isNaN(b)) {
return a;
// depends on control dependency: [if], data = [none]
} els... |
public class class_name {
private String getDirectory(String timedObjectId) {
String dirName = directories.get(timedObjectId);
if (dirName == null) {
dirName = baseDir.getAbsolutePath() + File.separator + timedObjectId.replace(File.separator, "-");
File file = new File(dirName);... | public class class_name {
private String getDirectory(String timedObjectId) {
String dirName = directories.get(timedObjectId);
if (dirName == null) {
dirName = baseDir.getAbsolutePath() + File.separator + timedObjectId.replace(File.separator, "-"); // depends on control dependency: [if], da... |
public class class_name {
public static void asyncExecute(Runnable runnable) {
if (runnable != null) {
try {
Para.getExecutorService().execute(runnable);
} catch (RejectedExecutionException ex) {
logger.warn(ex.getMessage());
try {
runnable.run();
} catch (Exception e) {
logger.error(... | public class class_name {
public static void asyncExecute(Runnable runnable) {
if (runnable != null) {
try {
Para.getExecutorService().execute(runnable); // depends on control dependency: [try], data = [none]
} catch (RejectedExecutionException ex) {
logger.warn(ex.getMessage());
try {
runnabl... |
public class class_name {
private void needNewBuffer(int newSize) {
int delta = newSize - size;
int newBufferSize = Math.max(minChunkLen, delta);
currentBufferIndex++;
currentBuffer = (E[]) new Object[newBufferSize];
offset = 0;
// add buffer
if (currentBufferI... | public class class_name {
private void needNewBuffer(int newSize) {
int delta = newSize - size;
int newBufferSize = Math.max(minChunkLen, delta);
currentBufferIndex++;
currentBuffer = (E[]) new Object[newBufferSize];
offset = 0;
// add buffer
if (currentBufferI... |
public class class_name {
public void realInverseFull(final float[] a, final int offa, boolean scale) {
final int twon = 2 * n;
switch (plan) {
case SPLIT_RADIX:{
realInverse2(a, offa, scale);
int idx1, idx2;
for (int k = 0; k < n / 2; k++) {
idx1 = 2 * k;
idx2 = offa + ((twon - idx1) % tw... | public class class_name {
public void realInverseFull(final float[] a, final int offa, boolean scale) {
final int twon = 2 * n;
switch (plan) {
case SPLIT_RADIX:{
realInverse2(a, offa, scale);
int idx1, idx2;
for (int k = 0; k < n / 2; k++) {
idx1 = 2 * k; // depends on control dependency: [for... |
public class class_name {
protected String createSQLStatement()
throws EFapsException
{
final SQLSelect select = new SQLSelect()
.column(0, "ID")
.from(getBaseType().getMainTable().getSqlTable(), 0);
// if the main table has a column for the type it is selected also... | public class class_name {
protected String createSQLStatement()
throws EFapsException
{
final SQLSelect select = new SQLSelect()
.column(0, "ID")
.from(getBaseType().getMainTable().getSqlTable(), 0);
// if the main table has a column for the type it is selected also... |
public class class_name {
public static int asciiSizeInBytes(long v) {
if (v == 0) return 1;
if (v == Long.MIN_VALUE) return 20;
boolean negative = false;
if (v < 0) {
v = -v; // making this positive allows us to compare using less-than
negative = true;
}
int width =
v < 1000... | public class class_name {
public static int asciiSizeInBytes(long v) {
if (v == 0) return 1;
if (v == Long.MIN_VALUE) return 20;
boolean negative = false;
if (v < 0) {
v = -v; // making this positive allows us to compare using less-than // depends on control dependency: [if], data = [none]
... |
public class class_name {
private HttpHandler setupSecurityHandlers(HttpHandler initialHandler) {
final DeploymentInfo deploymentInfo = deployment.getDeploymentInfo();
final LoginConfig loginConfig = deploymentInfo.getLoginConfig();
HttpHandler current = initialHandler;
current = new S... | public class class_name {
private HttpHandler setupSecurityHandlers(HttpHandler initialHandler) {
final DeploymentInfo deploymentInfo = deployment.getDeploymentInfo();
final LoginConfig loginConfig = deploymentInfo.getLoginConfig();
HttpHandler current = initialHandler;
current = new S... |
public class class_name {
public void marshall(PutActionRevisionRequest putActionRevisionRequest, ProtocolMarshaller protocolMarshaller) {
if (putActionRevisionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocol... | public class class_name {
public void marshall(PutActionRevisionRequest putActionRevisionRequest, ProtocolMarshaller protocolMarshaller) {
if (putActionRevisionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocol... |
public class class_name {
public static String formatSize(double size) {
double kiloByte = size / 1024;
if (kiloByte < 1) {
return size + "Byte";
}
double megaByte = kiloByte / 1024;
if (megaByte < 1) {
BigDecimal result1 = new BigDecimal(Double.toString... | public class class_name {
public static String formatSize(double size) {
double kiloByte = size / 1024;
if (kiloByte < 1) {
return size + "Byte"; // depends on control dependency: [if], data = [none]
}
double megaByte = kiloByte / 1024;
if (megaByte < 1) {
... |
public class class_name {
public PolygonOptions toCurvePolygon(CurvePolygon curvePolygon) {
PolygonOptions polygonOptions = new PolygonOptions();
List<Curve> rings = curvePolygon.getRings();
if (!rings.isEmpty()) {
Double z = null;
// Add the polygon points
... | public class class_name {
public PolygonOptions toCurvePolygon(CurvePolygon curvePolygon) {
PolygonOptions polygonOptions = new PolygonOptions();
List<Curve> rings = curvePolygon.getRings();
if (!rings.isEmpty()) {
Double z = null;
// Add the polygon points
... |
public class class_name {
@Override
public List<ApplicationTemplate> listApplicationTemplates( String exactName, String exactQualifier, String tag ) {
// Log
if( this.logger.isLoggable( Level.FINE )) {
if( exactName == null && exactQualifier == null ) {
this.logger.fine( "Request: list all the application... | public class class_name {
@Override
public List<ApplicationTemplate> listApplicationTemplates( String exactName, String exactQualifier, String tag ) {
// Log
if( this.logger.isLoggable( Level.FINE )) {
if( exactName == null && exactQualifier == null ) {
this.logger.fine( "Request: list all the application... |
public class class_name {
@VisibleForTesting
Config updateNumContainersIfNeeded(Config initialConfig,
TopologyAPI.Topology initialTopology,
PackingPlan packingPlan) {
int configNumStreamManagers = TopologyUtils.getNumContainers(initialTop... | public class class_name {
@VisibleForTesting
Config updateNumContainersIfNeeded(Config initialConfig,
TopologyAPI.Topology initialTopology,
PackingPlan packingPlan) {
int configNumStreamManagers = TopologyUtils.getNumContainers(initialTop... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.