code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
private static String[] convertParameters(Class<?>[] params)
{
List<String> tmp = new ArrayList<String>();
for (Class<?> c : params)
{
if (c.isArray())
{
StringBuffer sb = new StringBuffer();
Class<?> subType = c.getComponentType(... | public class class_name {
private static String[] convertParameters(Class<?>[] params)
{
List<String> tmp = new ArrayList<String>();
for (Class<?> c : params)
{
if (c.isArray())
{
StringBuffer sb = new StringBuffer();
Class<?> subType = c.getComponentType(... |
public class class_name {
public void addTranslation (String oldname, String newname)
{
if (_translations == null) {
_translations = Maps.newHashMap();
}
_translations.put(oldname, newname);
} } | public class class_name {
public void addTranslation (String oldname, String newname)
{
if (_translations == null) {
_translations = Maps.newHashMap(); // depends on control dependency: [if], data = [none]
}
_translations.put(oldname, newname);
} } |
public class class_name {
private NamedOutputBlockContext findAndRemoveBlock(List<NamedOutputBlockContext> blocks, String name) {
if(blocks == null) {
return null;
}
Iterator<NamedOutputBlockContext> blockIter = blocks.iterator();
while (blockIter.hasNext()) {
NamedOutputBlockContext bloc... | public class class_name {
private NamedOutputBlockContext findAndRemoveBlock(List<NamedOutputBlockContext> blocks, String name) {
if(blocks == null) {
return null; // depends on control dependency: [if], data = [none]
}
Iterator<NamedOutputBlockContext> blockIter = blocks.iterator();
while (blo... |
public class class_name {
public void marshall(GetContentModerationRequest getContentModerationRequest, ProtocolMarshaller protocolMarshaller) {
if (getContentModerationRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(GetContentModerationRequest getContentModerationRequest, ProtocolMarshaller protocolMarshaller) {
if (getContentModerationRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public static void partialSortUsingHeap(Quicksortable q, int k, int size) {
Quicksortable revq = reverseQuicksortable(q);
makeHeap(revq, k);
for (int i = k; i < size; i++) {
if (q.compare(0, i) > 0) {
q.swap(0, i);
heapifyDow... | public class class_name {
public static void partialSortUsingHeap(Quicksortable q, int k, int size) {
Quicksortable revq = reverseQuicksortable(q);
makeHeap(revq, k);
for (int i = k; i < size; i++) {
if (q.compare(0, i) > 0) {
q.swap(0, i); // depends on control depe... |
public class class_name {
@Override
public void delete(Object entity, Object rowKey)
{
EntityMetadata m = KunderaMetadataManager.getEntityMetadata(kunderaMetadata, entity.getClass());
MetamodelImpl metaModel = (MetamodelImpl) kunderaMetadata.getApplicationMetadata().getMetamodel(
... | public class class_name {
@Override
public void delete(Object entity, Object rowKey)
{
EntityMetadata m = KunderaMetadataManager.getEntityMetadata(kunderaMetadata, entity.getClass());
MetamodelImpl metaModel = (MetamodelImpl) kunderaMetadata.getApplicationMetadata().getMetamodel(
... |
public class class_name {
public synchronized void addDeployedExtension(ModuleIdentifier identifier, ExtensionInfo extensionInfo) {
final ExtensionJar extensionJar = new ExtensionJar(identifier, extensionInfo);
Set<ExtensionJar> jars = this.extensions.get(extensionInfo.getName());
if (jars == n... | public class class_name {
public synchronized void addDeployedExtension(ModuleIdentifier identifier, ExtensionInfo extensionInfo) {
final ExtensionJar extensionJar = new ExtensionJar(identifier, extensionInfo);
Set<ExtensionJar> jars = this.extensions.get(extensionInfo.getName());
if (jars == n... |
public class class_name {
private void parseLiteral(String token) {
Matcher m = Pattern.compile(String.format(ESCAPED_LITERAL_PATTERN_TEMPLATE, escapeCharacter)).matcher(token);
while (m.find()) {
cleanedToken = trimSpecialCharacters(m.group(1));
if (tokenHasContent()) {
... | public class class_name {
private void parseLiteral(String token) {
Matcher m = Pattern.compile(String.format(ESCAPED_LITERAL_PATTERN_TEMPLATE, escapeCharacter)).matcher(token);
while (m.find()) {
cleanedToken = trimSpecialCharacters(m.group(1)); // depends on control dependency: [while], d... |
public class class_name {
public static Distribution create(
long count,
double sum,
double sumOfSquaredDeviations,
BucketOptions bucketOptions,
List<Bucket> buckets) {
Utils.checkArgument(count >= 0, "count should be non-negative.");
Utils.checkArgument(
sumOfSquaredDevia... | public class class_name {
public static Distribution create(
long count,
double sum,
double sumOfSquaredDeviations,
BucketOptions bucketOptions,
List<Bucket> buckets) {
Utils.checkArgument(count >= 0, "count should be non-negative.");
Utils.checkArgument(
sumOfSquaredDevia... |
public class class_name {
public String getTypeString() {
if (CmsResource.COPY_AS_SIBLING == m_type) {
return CmsConfigurationCopyResource.COPY_AS_SIBLING;
} else if (CmsResource.COPY_PRESERVE_SIBLING == m_type) {
return CmsConfigurationCopyResource.COPY_AS_PRESERVE;
}
... | public class class_name {
public String getTypeString() {
if (CmsResource.COPY_AS_SIBLING == m_type) {
return CmsConfigurationCopyResource.COPY_AS_SIBLING; // depends on control dependency: [if], data = [none]
} else if (CmsResource.COPY_PRESERVE_SIBLING == m_type) {
return Cms... |
public class class_name {
private static String[] split(String input) {
char macroStart = MACRO_START.charAt(0);
char macroEnd = MACRO_END.charAt(0);
int startIndex = 0;
boolean inMacro = false;
List<String> list = new ArrayList<String>();
for (int endIndex = 0; endIn... | public class class_name {
private static String[] split(String input) {
char macroStart = MACRO_START.charAt(0);
char macroEnd = MACRO_END.charAt(0);
int startIndex = 0;
boolean inMacro = false;
List<String> list = new ArrayList<String>();
for (int endIndex = 0; endIn... |
public class class_name {
@Override
public boolean addAll(int index, Collection<? extends Float> c) {
if (index < 0 || index > size) {
throw new IndexOutOfBoundsException();
}
ensureCapacity(size + c.size());
size += c.size();
for (int i = size + c.size() - 1, j = size - 1; j >= index; i--,... | public class class_name {
@Override
public boolean addAll(int index, Collection<? extends Float> c) {
if (index < 0 || index > size) {
throw new IndexOutOfBoundsException();
}
ensureCapacity(size + c.size());
size += c.size();
for (int i = size + c.size() - 1, j = size - 1; j >= index; i--,... |
public class class_name {
protected void fillItem(Item item, CmsUser user) {
item.getItemProperty(TableProperty.Name).setValue(user.getSimpleName());
item.getItemProperty(TableProperty.FullName).setValue(user.getFullName());
item.getItemProperty(TableProperty.SystemName).setValue(user.getName(... | public class class_name {
protected void fillItem(Item item, CmsUser user) {
item.getItemProperty(TableProperty.Name).setValue(user.getSimpleName());
item.getItemProperty(TableProperty.FullName).setValue(user.getFullName());
item.getItemProperty(TableProperty.SystemName).setValue(user.getName(... |
public class class_name {
private void loadOverridesFromCommandLine() {
final List<String> disallowedKeys = Arrays.asList("java.version", "java.vendorjava.vendor.url", "java.home", "java.vm.specification.version", "java.vm.specification.vendor", "java.vm.specification.name", "java.vm.version",
"java.vm.v... | public class class_name {
private void loadOverridesFromCommandLine() {
final List<String> disallowedKeys = Arrays.asList("java.version", "java.vendorjava.vendor.url", "java.home", "java.vm.specification.version", "java.vm.specification.vendor", "java.vm.specification.name", "java.vm.version",
"java.vm.v... |
public class class_name {
public static void setProperty(final Map<String, String> map,
final String key, final String value) {
if (value != null && !"".equals(value)) {
map.put(key, value);
}
} } | public class class_name {
public static void setProperty(final Map<String, String> map,
final String key, final String value) {
if (value != null && !"".equals(value)) {
map.put(key, value); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public static void write(Writer out, Object object) throws IOException {
if (object instanceof String) {
out.write((String) object);
} else if (object instanceof Object[]) {
out.write(toArrayString((Object[]) object));
} else if (object instance... | public class class_name {
public static void write(Writer out, Object object) throws IOException {
if (object instanceof String) {
out.write((String) object);
} else if (object instanceof Object[]) {
out.write(toArrayString((Object[]) object));
} else if (object instance... |
public class class_name {
public com.google.type.TimeOfDayOrBuilder getTimeValueOrBuilder() {
if (typeCase_ == 6) {
return (com.google.type.TimeOfDay) type_;
}
return com.google.type.TimeOfDay.getDefaultInstance();
} } | public class class_name {
public com.google.type.TimeOfDayOrBuilder getTimeValueOrBuilder() {
if (typeCase_ == 6) {
return (com.google.type.TimeOfDay) type_; // depends on control dependency: [if], data = [none]
}
return com.google.type.TimeOfDay.getDefaultInstance();
} } |
public class class_name {
protected final File createTempDir(String prefix) {
try {
File tempDir = File.createTempFile(prefix + ".", "." + getPort());
tempDir.delete();
tempDir.mkdir();
tempDir.deleteOnExit();
return tempDir;
}
catch (IOException ex) {
throw new WebServerException(
"Unable... | public class class_name {
protected final File createTempDir(String prefix) {
try {
File tempDir = File.createTempFile(prefix + ".", "." + getPort());
tempDir.delete(); // depends on control dependency: [try], data = [none]
tempDir.mkdir(); // depends on control dependency: [try], data = [none]
tempDir.d... |
public class class_name {
public void visitTypeInsn(int opcode, String type) {
if (mv != null) {
mv.visitTypeInsn(opcode, type);
}
} } | public class class_name {
public void visitTypeInsn(int opcode, String type) {
if (mv != null) {
mv.visitTypeInsn(opcode, type); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public void setRelatedFindingsProductArn(java.util.Collection<StringFilter> relatedFindingsProductArn) {
if (relatedFindingsProductArn == null) {
this.relatedFindingsProductArn = null;
return;
}
this.relatedFindingsProductArn = new java.util.Ar... | public class class_name {
public void setRelatedFindingsProductArn(java.util.Collection<StringFilter> relatedFindingsProductArn) {
if (relatedFindingsProductArn == null) {
this.relatedFindingsProductArn = null; // depends on control dependency: [if], data = [none]
return; // depends on ... |
public class class_name {
public byte[] toBytesFull(boolean withHeader)
{
int size = getFullStorageSize(numBuckets);
if (withHeader) {
size += SERDE_HEADER_SIZE;
}
ByteBuffer buf = ByteBuffer.allocate(size);
writeByteBufferFull(buf, withHeader);
return buf.array();
} } | public class class_name {
public byte[] toBytesFull(boolean withHeader)
{
int size = getFullStorageSize(numBuckets);
if (withHeader) {
size += SERDE_HEADER_SIZE; // depends on control dependency: [if], data = [none]
}
ByteBuffer buf = ByteBuffer.allocate(size);
writeByteBufferFull(buf, with... |
public class class_name {
public static int getType(String tag) {
if (ElementTags.SUBJECT.equals(tag)) {
return Element.SUBJECT;
}
if (ElementTags.KEYWORDS.equals(tag)) {
return Element.KEYWORDS;
}
if (ElementTags.AUTHOR.equals(tag)) {
return ... | public class class_name {
public static int getType(String tag) {
if (ElementTags.SUBJECT.equals(tag)) {
return Element.SUBJECT; // depends on control dependency: [if], data = [none]
}
if (ElementTags.KEYWORDS.equals(tag)) {
return Element.KEYWORDS; // depends on control... |
public class class_name {
private static Collection<Location> findMissedClassesDueToLackOfPackageEntry(
Iterable<URL> classpath, NormalizedResourceName resourceName) {
Set<Location> result = new HashSet<>();
for (Location location : archiveLocationsOf(classpath)) {
if (contains... | public class class_name {
private static Collection<Location> findMissedClassesDueToLackOfPackageEntry(
Iterable<URL> classpath, NormalizedResourceName resourceName) {
Set<Location> result = new HashSet<>();
for (Location location : archiveLocationsOf(classpath)) {
if (contains... |
public class class_name {
@Override
public EClass getIfcTextFontName() {
if (ifcTextFontNameEClass == null) {
ifcTextFontNameEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(877);
}
return ifcTextFontNameEClass;
} } | public class class_name {
@Override
public EClass getIfcTextFontName() {
if (ifcTextFontNameEClass == null) {
ifcTextFontNameEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(877);
// depends on control dependency: [if], data = [none]
}
return ifc... |
public class class_name {
protected void removeRencentlyLeastAccess(
Set<Map.Entry<K, ValueEntry>> entries) {
// 最小使用次数
int least = 0;
// 最久没有被访问
long earliest = 0;
K toBeRemovedByCount = null;
K toBeRemovedByTime = null;
Iterator<Map.... | public class class_name {
protected void removeRencentlyLeastAccess(
Set<Map.Entry<K, ValueEntry>> entries) {
// 最小使用次数
int least = 0;
// 最久没有被访问
long earliest = 0;
K toBeRemovedByCount = null;
K toBeRemovedByTime = null;
Iterator<Map.... |
public class class_name {
protected void internalResetLabelProvider() {
try {
final PackageExplorerLabelProvider provider = createLabelProvider();
this.reflect.set(this, "fLabelProvider", provider); //$NON-NLS-1$
provider.setIsFlatLayout(isFlatLayout());
final DecoratingJavaLabelProvider decoratingProvid... | public class class_name {
protected void internalResetLabelProvider() {
try {
final PackageExplorerLabelProvider provider = createLabelProvider();
this.reflect.set(this, "fLabelProvider", provider); //$NON-NLS-1$ // depends on control dependency: [try], data = [none]
provider.setIsFlatLayout(isFlatLayout())... |
public class class_name {
public static boolean createNewResourceEL(Resource res) {
try {
res.createFile(false);
return true;
}
catch (IOException e) {
return false;
}
} } | public class class_name {
public static boolean createNewResourceEL(Resource res) {
try {
res.createFile(false); // depends on control dependency: [try], data = [none]
return true; // depends on control dependency: [try], data = [none]
}
catch (IOException e) {
return false;
} // depends on control ... |
public class class_name {
public void increaseFontSize() {
// move INTO range if we have just moved OUT of lower virtual
if (inRange() || (atMin() && atLowerBoundary())) {
currentFontIndex++;
} else if (atMax()) {
upperVirtualCount++;
} else if (atMin() && inLowe... | public class class_name {
public void increaseFontSize() {
// move INTO range if we have just moved OUT of lower virtual
if (inRange() || (atMin() && atLowerBoundary())) {
currentFontIndex++; // depends on control dependency: [if], data = [none]
} else if (atMax()) {
upp... |
public class class_name {
public static InputStream openConfigurationFile(String filepath, ClassLoader classLoader) throws FileNotFoundException {
File file = getConfigurationFile(filepath);
if (file.exists()) {
logger.info("Located configuration file: " + file.getAbsolutePath());
... | public class class_name {
public static InputStream openConfigurationFile(String filepath, ClassLoader classLoader) throws FileNotFoundException {
File file = getConfigurationFile(filepath);
if (file.exists()) {
logger.info("Located configuration file: " + file.getAbsolutePath());
... |
public class class_name {
public static void validateAttributeValueLength(Object obj) throws IllegalArgumentException {
if (null != obj) {
Class cls = obj.getClass();
Field[] fields = cls.getDeclaredFields();
for (int i = 0; i < fields.length; i++) {// 遍历
try... | public class class_name {
public static void validateAttributeValueLength(Object obj) throws IllegalArgumentException {
if (null != obj) {
Class cls = obj.getClass();
Field[] fields = cls.getDeclaredFields();
for (int i = 0; i < fields.length; i++) {// 遍历
try... |
public class class_name {
public static <T> T[] arrayCopy(T[] items, int length, Class<T> tClass) {
// Make an array of the appropriate size. It's too bad that the JVM bothers to
// initialize this with nulls.
@SuppressWarnings("unchecked")
T[] newItems = (T[]) ((tClass == null) ? new ... | public class class_name {
public static <T> T[] arrayCopy(T[] items, int length, Class<T> tClass) {
// Make an array of the appropriate size. It's too bad that the JVM bothers to
// initialize this with nulls.
@SuppressWarnings("unchecked")
T[] newItems = (T[]) ((tClass == null) ? new ... |
public class class_name {
public static void showChannels(Object... channels){
// TODO this could share more code with the other show/hide(Only)Channels methods
for(LogRecordHandler handler : handlers){
if(handler instanceof VisibilityHandler){
VisibilityHandler visHandler = (VisibilityHandle... | public class class_name {
public static void showChannels(Object... channels){
// TODO this could share more code with the other show/hide(Only)Channels methods
for(LogRecordHandler handler : handlers){
if(handler instanceof VisibilityHandler){
VisibilityHandler visHandler = (VisibilityHandle... |
public class class_name {
public RuntimeEventListener getRuntimeEventListener() {
if (TraceComponent.isAnyTracingEnabled()
&& tc.isEntryEnabled()) {
SibTr.entry(tc, "getRuntimeEventListener");
SibTr.exit(tc, "getRuntimeEventListener", _runtimeEventListener);
}
... | public class class_name {
public RuntimeEventListener getRuntimeEventListener() {
if (TraceComponent.isAnyTracingEnabled()
&& tc.isEntryEnabled()) {
SibTr.entry(tc, "getRuntimeEventListener"); // depends on control dependency: [if], data = [none]
SibTr.exit(tc, "getRuntimeEv... |
public class class_name {
public ServiceCall<InputStream> getCoreMlModel(GetCoreMlModelOptions getCoreMlModelOptions) {
Validator.notNull(getCoreMlModelOptions, "getCoreMlModelOptions cannot be null");
String[] pathSegments = { "v3/classifiers", "core_ml_model" };
String[] pathParameters = { getCoreMlModel... | public class class_name {
public ServiceCall<InputStream> getCoreMlModel(GetCoreMlModelOptions getCoreMlModelOptions) {
Validator.notNull(getCoreMlModelOptions, "getCoreMlModelOptions cannot be null");
String[] pathSegments = { "v3/classifiers", "core_ml_model" };
String[] pathParameters = { getCoreMlModel... |
public class class_name {
void visitSubroutine(final Label JSR, final long id, final int nbSubroutines)
{
if (JSR != null) {
if ((status & VISITED) != 0) {
return;
}
status |= VISITED;
// adds JSR to the successors of this block, if it is a RE... | public class class_name {
void visitSubroutine(final Label JSR, final long id, final int nbSubroutines)
{
if (JSR != null) {
if ((status & VISITED) != 0) {
return; // depends on control dependency: [if], data = [none]
}
status |= VISITED; // depends on co... |
public class class_name {
private static Object transformType(Object value) {
if (value == null) {
return null;
}
String valueString = value.toString();
// check for boolean
boolean boolValue = BooleanUtils.toBoolean(valueString);
if (StringUtils.equals(valueString, Boolean.toString(bool... | public class class_name {
private static Object transformType(Object value) {
if (value == null) {
return null; // depends on control dependency: [if], data = [none]
}
String valueString = value.toString();
// check for boolean
boolean boolValue = BooleanUtils.toBoolean(valueString);
if ... |
public class class_name {
public void removeIndividual(Member member, String studyId) {
// Sanity check
if (member == null) {
logger.error("Individual is null.");
return;
}
removeIndividual(member.getName(), studyId);
} } | public class class_name {
public void removeIndividual(Member member, String studyId) {
// Sanity check
if (member == null) {
logger.error("Individual is null."); // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void addMatch(String name, PseudoClassType pseudoClass)
{
if (names == null)
names = new HashMap<String, Set<PseudoClassType>>();
Set<PseudoClassType> classes = names.get(name);
if (classes == null)
{
classes = new Ha... | public class class_name {
public void addMatch(String name, PseudoClassType pseudoClass)
{
if (names == null)
names = new HashMap<String, Set<PseudoClassType>>();
Set<PseudoClassType> classes = names.get(name);
if (classes == null)
{
classes = new Ha... |
public class class_name {
public static ClassNode getNextSuperClass(ClassNode clazz, ClassNode goalClazz) {
if (clazz.isArray()) {
if (!goalClazz.isArray()) return null;
ClassNode cn = getNextSuperClass(clazz.getComponentType(), goalClazz.getComponentType());
if (cn != null)... | public class class_name {
public static ClassNode getNextSuperClass(ClassNode clazz, ClassNode goalClazz) {
if (clazz.isArray()) {
if (!goalClazz.isArray()) return null;
ClassNode cn = getNextSuperClass(clazz.getComponentType(), goalClazz.getComponentType());
if (cn != null)... |
public class class_name {
private void setSentenceSpan(JSONObject cNode, JSONObject parent) {
try {
JSONObject data = cNode.getJSONObject("data");
int leftPosC = data.getInt(SENTENCE_LEFT);
int rightPosC = data.getInt(SENTENCE_RIGHT);
data = parent.getJSONObject("data");
if (data.h... | public class class_name {
private void setSentenceSpan(JSONObject cNode, JSONObject parent) {
try {
JSONObject data = cNode.getJSONObject("data");
int leftPosC = data.getInt(SENTENCE_LEFT);
int rightPosC = data.getInt(SENTENCE_RIGHT);
data = parent.getJSONObject("data"); // depends on con... |
public class class_name {
protected BigRational getFactor(int index) {
while (factors.size() <= index) {
BigRational factor = getCurrentFactor();
factors.add(factor);
calculateNextFactor();
}
return factors.get(index);
} } | public class class_name {
protected BigRational getFactor(int index) {
while (factors.size() <= index) {
BigRational factor = getCurrentFactor();
factors.add(factor);
// depends on control dependency: [while], data = [none]
calculateNextFactor();
// depends on control dependency: [while], data = [none]... |
public class class_name {
public void marshall(PutTraceSegmentsRequest putTraceSegmentsRequest, ProtocolMarshaller protocolMarshaller) {
if (putTraceSegmentsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... | public class class_name {
public void marshall(PutTraceSegmentsRequest putTraceSegmentsRequest, ProtocolMarshaller protocolMarshaller) {
if (putTraceSegmentsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... |
public class class_name {
public static final String formatPath(String path) {
if (path == null) {
return "";
}
path = path.trim();
if (path.isEmpty()) {
return path;
}
if (!path.startsWith("/")) {
path = '/' + path;
}
while (path.endsWith("/")) {
path = path.substring(0, path.l... | public class class_name {
public static final String formatPath(String path) {
if (path == null) {
return "";
// depends on control dependency: [if], data = [none]
}
path = path.trim();
if (path.isEmpty()) {
return path;
// depends on control dependency: [if], data = [none]
}
if (!path.starts... |
public class class_name {
public void perform(TaskRequest req, TaskResponse res) {
HttpServletResponse sres = (HttpServletResponse) response.evaluate(req, res);
String rsc = (String) resource.evaluate(req, res);
try {
// Send the redirect (HTTP status code 302)
sres.sendRedirect(rsc);
} catch (Throwa... | public class class_name {
public void perform(TaskRequest req, TaskResponse res) {
HttpServletResponse sres = (HttpServletResponse) response.evaluate(req, res);
String rsc = (String) resource.evaluate(req, res);
try {
// Send the redirect (HTTP status code 302)
sres.sendRedirect(rsc); // depends on cont... |
public class class_name {
private void applyAce(final AccessControllable node, final Ace toAdd, final boolean revoke) throws FrameworkException {
final String principalId = toAdd.getPrincipalId();
final List<String> permissions = toAdd.getPermissions();
final Principal principal = CMISObjectWrapper.trans... | public class class_name {
private void applyAce(final AccessControllable node, final Ace toAdd, final boolean revoke) throws FrameworkException {
final String principalId = toAdd.getPrincipalId();
final List<String> permissions = toAdd.getPermissions();
final Principal principal = CMISObjectWrapper.trans... |
public class class_name {
public final static void fireProbe(long probeId, Object instance, Object target, Object args) {
// Load statics onto the stack to avoid a window where they can be cleared
// between the test for null and the invocation of the method
Object proxyTarget = fireProbeTarget... | public class class_name {
public final static void fireProbe(long probeId, Object instance, Object target, Object args) {
// Load statics onto the stack to avoid a window where they can be cleared
// between the test for null and the invocation of the method
Object proxyTarget = fireProbeTarget... |
public class class_name {
public static Inet6Address getByAddress(String host, byte[] addr, int scope_id)
throws UnknownHostException {
if (host != null && host.length() > 0 && host.charAt(0) == '[') {
if (host.charAt(host.length()-1) == ']') {
host = host.substring(1, host.... | public class class_name {
public static Inet6Address getByAddress(String host, byte[] addr, int scope_id)
throws UnknownHostException {
if (host != null && host.length() > 0 && host.charAt(0) == '[') {
if (host.charAt(host.length()-1) == ']') {
host = host.substring(1, host.... |
public class class_name {
private String getDataFieldValue(String dataHeader, String fieldName) {
String value = null;
String token = StrUtil.format("{}=\"", fieldName);
int pos = dataHeader.indexOf(token);
if (pos > 0) {
int start = pos + token.length();
int end = dataHeader.indexOf('"', start);
... | public class class_name {
private String getDataFieldValue(String dataHeader, String fieldName) {
String value = null;
String token = StrUtil.format("{}=\"", fieldName);
int pos = dataHeader.indexOf(token);
if (pos > 0) {
int start = pos + token.length();
int end = dataHeader.indexOf('"', start);
... |
public class class_name {
public String removePrefix(final String path, final String prefix) {
String pathWithoutPrefix = path;
if (pathWithoutPrefix.startsWith(prefix)) {
pathWithoutPrefix = pathWithoutPrefix.substring(prefix.length());
while (pathWithoutPrefix.startsWith("/") || pathWithoutPrefix.startsW... | public class class_name {
public String removePrefix(final String path, final String prefix) {
String pathWithoutPrefix = path;
if (pathWithoutPrefix.startsWith(prefix)) {
pathWithoutPrefix = pathWithoutPrefix.substring(prefix.length()); // depends on control dependency: [if], data = [none]
while (pathWith... |
public class class_name {
public void setGenre(String genre, int type)
{
if (allow(type&ID3V1))
{
id3v1.setGenreString(genre);
}
if (allow(type&ID3V2))
{
id3v2.setTextFrame(ID3v2Frames.CONTENT_TYPE, genre);
}
} } | public class class_name {
public void setGenre(String genre, int type)
{
if (allow(type&ID3V1))
{
id3v1.setGenreString(genre); // depends on control dependency: [if], data = [none]
}
if (allow(type&ID3V2))
{
id3v2.setTextFrame(ID3v2Frames.CONTENT_TYPE, genre); // depends on control dependency: [if], d... |
public class class_name {
public static String[] getRootFolders() {
Configuration config = ConfigUtils.getCurrentConfig();
if (config != null) {
return config.getStringArray(ROOT_FOLDERS_CONFIG_KEY);
} else {
return null;
}
} } | public class class_name {
public static String[] getRootFolders() {
Configuration config = ConfigUtils.getCurrentConfig();
if (config != null) {
return config.getStringArray(ROOT_FOLDERS_CONFIG_KEY); // depends on control dependency: [if], data = [none]
} else {
return n... |
public class class_name {
private void updateMax(int idx, long v) {
AtomicLong current = max.getCurrent(idx);
long m = current.get();
while (v > m) {
if (current.compareAndSet(m, v)) {
break;
}
m = current.get();
}
} } | public class class_name {
private void updateMax(int idx, long v) {
AtomicLong current = max.getCurrent(idx);
long m = current.get();
while (v > m) {
if (current.compareAndSet(m, v)) {
break;
}
m = current.get(); // depends on control dependency: [while], data = [none]
}
} } |
public class class_name {
private static boolean mockitoInvocation(Tree tree, VisitorState state) {
if (!(tree instanceof JCMethodInvocation)) {
return false;
}
JCMethodInvocation invocation = (JCMethodInvocation) tree;
if (!(invocation.getMethodSelect() instanceof JCFieldAccess)) {
return ... | public class class_name {
private static boolean mockitoInvocation(Tree tree, VisitorState state) {
if (!(tree instanceof JCMethodInvocation)) {
return false; // depends on control dependency: [if], data = [none]
}
JCMethodInvocation invocation = (JCMethodInvocation) tree;
if (!(invocation.getMet... |
public class class_name {
public static long offset(long[] strides, long[] offsets) {
int ret = 0;
if (ArrayUtil.prod(offsets) == 1) {
for (int i = 0; i < offsets.length; i++) {
ret += offsets[i] * strides[i];
}
} else {
for (int i = 0; i < o... | public class class_name {
public static long offset(long[] strides, long[] offsets) {
int ret = 0;
if (ArrayUtil.prod(offsets) == 1) {
for (int i = 0; i < offsets.length; i++) {
ret += offsets[i] * strides[i]; // depends on control dependency: [for], data = [i]
... |
public class class_name {
private static String getRegistrationId(Context context) {
final SharedPreferences prefs = getGcmPreferences(context);
String registrationId = prefs.getString(PROPERTY_REG_ID, "");
if (registrationId.isEmpty()) {
return "";
}
// Check if app... | public class class_name {
private static String getRegistrationId(Context context) {
final SharedPreferences prefs = getGcmPreferences(context);
String registrationId = prefs.getString(PROPERTY_REG_ID, "");
if (registrationId.isEmpty()) {
return ""; // depends on control dependency:... |
public class class_name {
protected List<String> buildCommand(GitCommitOptions options, String message, List<File> paths) {
// TODO (jhl388): Add a unit test for this method (CliGitCommit.buildCommand()).
List<String> cmd = new ArrayList<String>();
cmd.add(JavaGitConfiguration.getGitCommand()... | public class class_name {
protected List<String> buildCommand(GitCommitOptions options, String message, List<File> paths) {
// TODO (jhl388): Add a unit test for this method (CliGitCommit.buildCommand()).
List<String> cmd = new ArrayList<String>();
cmd.add(JavaGitConfiguration.getGitCommand()... |
public class class_name {
public void appendWorkSheetColumns(WorkSheet worksheet) throws Exception {
ArrayList<String> newColumns = worksheet.getColumns();
this.addColumns(newColumns, "");
ArrayList<String> rows = this.getRows();
for (String row : rows) {
for (String col : newColumns) {
if (worksheet.... | public class class_name {
public void appendWorkSheetColumns(WorkSheet worksheet) throws Exception {
ArrayList<String> newColumns = worksheet.getColumns();
this.addColumns(newColumns, "");
ArrayList<String> rows = this.getRows();
for (String row : rows) {
for (String col : newColumns) {
if (worksheet.... |
public class class_name {
public BatchDisableStandardsRequest withStandardsSubscriptionArns(String... standardsSubscriptionArns) {
if (this.standardsSubscriptionArns == null) {
setStandardsSubscriptionArns(new java.util.ArrayList<String>(standardsSubscriptionArns.length));
}
for (St... | public class class_name {
public BatchDisableStandardsRequest withStandardsSubscriptionArns(String... standardsSubscriptionArns) {
if (this.standardsSubscriptionArns == null) {
setStandardsSubscriptionArns(new java.util.ArrayList<String>(standardsSubscriptionArns.length)); // depends on control dep... |
public class class_name {
public BreakpointInfo copyWithReplaceIdAndUrl(int replaceId, String newUrl) {
final BreakpointInfo info = new BreakpointInfo(replaceId, newUrl, parentFile,
filenameHolder.get(), taskOnlyProvidedParentPath);
info.chunked = this.chunked;
for (BlockInfo bl... | public class class_name {
public BreakpointInfo copyWithReplaceIdAndUrl(int replaceId, String newUrl) {
final BreakpointInfo info = new BreakpointInfo(replaceId, newUrl, parentFile,
filenameHolder.get(), taskOnlyProvidedParentPath);
info.chunked = this.chunked;
for (BlockInfo bl... |
public class class_name {
public List<IoDevice> getCompatibleIoDevices() {
List<IoDevice> ioDevices = new LinkedList<IoDevice>();
for (PriorityIoDeviceTuple tuple : mCompatibleDevices) {
ioDevices.add(tuple.getIoDevice());
}
return ioDevices;
} } | public class class_name {
public List<IoDevice> getCompatibleIoDevices() {
List<IoDevice> ioDevices = new LinkedList<IoDevice>();
for (PriorityIoDeviceTuple tuple : mCompatibleDevices) {
ioDevices.add(tuple.getIoDevice()); // depends on control dependency: [for], data = [tuple]
}
... |
public class class_name {
@Override
public boolean hasNext() {
try {
return hasNextValue();
} catch (JsonMappingException e) {
throw new RuntimeJsonMappingException(e.getMessage(), e);
} catch (IOException e) {
throw new RuntimeException(e.getMessage(), e... | public class class_name {
@Override
public boolean hasNext() {
try {
return hasNextValue(); // depends on control dependency: [try], data = [none]
} catch (JsonMappingException e) {
throw new RuntimeJsonMappingException(e.getMessage(), e);
} catch (IOException e) { /... |
public class class_name {
@Override
public void run() {
// early exit check
if (!running) {
return;
}
// this is the means to talk to FlinkKafkaConsumer's main thread
final Handover handover = this.handover;
// This method initializes the KafkaConsumer and guarantees it is torn down properly.
// Th... | public class class_name {
@Override
public void run() {
// early exit check
if (!running) {
return; // depends on control dependency: [if], data = [none]
}
// this is the means to talk to FlinkKafkaConsumer's main thread
final Handover handover = this.handover;
// This method initializes the KafkaCon... |
public class class_name {
private static boolean polygonContainsEnvelope_(Polygon polygon_a,
Envelope envelope_b, double tolerance,
ProgressTracker progress_tracker) {
// Quick envelope rejection test
Envelope2D env_a = new Envelope2D(), env_b = new Envelope2D();
polygon_a.queryEnvelope2D(env_a);
envelo... | public class class_name {
private static boolean polygonContainsEnvelope_(Polygon polygon_a,
Envelope envelope_b, double tolerance,
ProgressTracker progress_tracker) {
// Quick envelope rejection test
Envelope2D env_a = new Envelope2D(), env_b = new Envelope2D();
polygon_a.queryEnvelope2D(env_a);
envelo... |
public class class_name {
public static String clientOS(HttpServletRequest req) {
String userAgent = req.getHeader("User-Agent");
String cos = "unknow os";
Pattern p = Pattern.compile(".*(Windows NT 6\\.2).*");
Matcher m = p.matcher(userAgent);
if (m.find()) {
cos = ... | public class class_name {
public static String clientOS(HttpServletRequest req) {
String userAgent = req.getHeader("User-Agent");
String cos = "unknow os";
Pattern p = Pattern.compile(".*(Windows NT 6\\.2).*");
Matcher m = p.matcher(userAgent);
if (m.find()) {
cos = ... |
public class class_name {
public static void serializeTo( AbstractMessage message , RawDataBuffer out )
{
// Do we have a cached version of the raw message ?
RawDataBuffer rawMsg = message.getRawMessage();
if (rawMsg != null)
{
out.writeInt(rawMsg.size());
rawMsg.writ... | public class class_name {
public static void serializeTo( AbstractMessage message , RawDataBuffer out )
{
// Do we have a cached version of the raw message ?
RawDataBuffer rawMsg = message.getRawMessage();
if (rawMsg != null)
{
out.writeInt(rawMsg.size()); // depends on contro... |
public class class_name {
public Optional<? extends MethodExecutionHandle<?, Object>> findFallbackMethod(MethodInvocationContext<Object, Object> context) {
Class<?> declaringType = context.getDeclaringType();
Optional<? extends MethodExecutionHandle<?, Object>> result = beanContext
.fin... | public class class_name {
public Optional<? extends MethodExecutionHandle<?, Object>> findFallbackMethod(MethodInvocationContext<Object, Object> context) {
Class<?> declaringType = context.getDeclaringType();
Optional<? extends MethodExecutionHandle<?, Object>> result = beanContext
.fin... |
public class class_name {
private void convertColumnType(final int columnIndex, final Class<?> targetType) {
final List<Object> column = _columnList.get(columnIndex);
Object newValue = null;
for (int i = 0, len = size(); i < len; i++) {
newValue = N.convert(column.get(i), targ... | public class class_name {
private void convertColumnType(final int columnIndex, final Class<?> targetType) {
final List<Object> column = _columnList.get(columnIndex);
Object newValue = null;
for (int i = 0, len = size(); i < len; i++) {
newValue = N.convert(column.get(i), targ... |
public class class_name {
public OAuthAccessToken getAccessToken(Token requestToken, String verificationCode) throws JinxException {
JinxUtils.validateParams(requestToken, verificationCode);
try {
Verifier verifier = new Verifier(verificationCode);
Token accessToken = this.oAuthService.getAccessTok... | public class class_name {
public OAuthAccessToken getAccessToken(Token requestToken, String verificationCode) throws JinxException {
JinxUtils.validateParams(requestToken, verificationCode);
try {
Verifier verifier = new Verifier(verificationCode);
Token accessToken = this.oAuthService.getAccessTok... |
public class class_name {
public void addProfile(Profile profile) {
if (PROFILE_KIND.equals(profile.getKind())) {
this.profileList.add(profile.getSettings());
}
} } | public class class_name {
public void addProfile(Profile profile) {
if (PROFILE_KIND.equals(profile.getKind())) {
this.profileList.add(profile.getSettings()); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
private String escapeQuotes(String value)
{
StringBuilder sb = new StringBuilder();
int length = value.length();
char c;
sb.append('"');
for (int index = 0; index < length; index++)
{
c = value.charAt(index);
sb.append(c);
if... | public class class_name {
private String escapeQuotes(String value)
{
StringBuilder sb = new StringBuilder();
int length = value.length();
char c;
sb.append('"');
for (int index = 0; index < length; index++)
{
c = value.charAt(index); // depends on control dependency: [... |
public class class_name {
public FlatDataList getXColumn(Object column) {
FlatDataList flatDataList = new FlatDataList();
for(Record r : values()) {
flatDataList.add(r.getX().get(column));
}
return flatDataList;
} } | public class class_name {
public FlatDataList getXColumn(Object column) {
FlatDataList flatDataList = new FlatDataList();
for(Record r : values()) {
flatDataList.add(r.getX().get(column)); // depends on control dependency: [for], data = [r]
}
return flatDataList;
} } |
public class class_name {
@Override
public StringBuffer format(android.icu.math.BigDecimal number,
StringBuffer toAppendTo,
FieldPosition pos) {
if (MIN_VALUE.compareTo(number) >= 0 || MAX_VALUE.compareTo(number) <= 0) {
// We're out... | public class class_name {
@Override
public StringBuffer format(android.icu.math.BigDecimal number,
StringBuffer toAppendTo,
FieldPosition pos) {
if (MIN_VALUE.compareTo(number) >= 0 || MAX_VALUE.compareTo(number) <= 0) {
// We're out... |
public class class_name {
public static void useGeneratedKeys(XmlElement element, IntrospectedTable introspectedTable, String prefix) {
GeneratedKey gk = introspectedTable.getGeneratedKey();
if (gk != null) {
IntrospectedColumn introspectedColumn = IntrospectedTableTools.safeGetColumn(intro... | public class class_name {
public static void useGeneratedKeys(XmlElement element, IntrospectedTable introspectedTable, String prefix) {
GeneratedKey gk = introspectedTable.getGeneratedKey();
if (gk != null) {
IntrospectedColumn introspectedColumn = IntrospectedTableTools.safeGetColumn(intro... |
public class class_name {
public static int lastIndexOfSeparator(String filePath) {
if (StrUtil.isNotEmpty(filePath)) {
int i = filePath.length();
char c;
while (--i >= 0) {
c = filePath.charAt(i);
if (CharUtil.isFileSeparator(c)) {
return i;
}
}
}
return -1;
} } | public class class_name {
public static int lastIndexOfSeparator(String filePath) {
if (StrUtil.isNotEmpty(filePath)) {
int i = filePath.length();
char c;
while (--i >= 0) {
c = filePath.charAt(i);
// depends on control dependency: [while], data = [none]
if (CharUtil.isFileSeparator(c)) {
... |
public class class_name {
public void validate(String destName, String busName) throws SINotPossibleInCurrentConfigurationException
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "validate", new Object[] { destName, busName });
if (collector.contains(destName, busName))
{
// Throw ou... | public class class_name {
public void validate(String destName, String busName) throws SINotPossibleInCurrentConfigurationException
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "validate", new Object[] { destName, busName });
if (collector.contains(destName, busName))
{
// Throw ou... |
public class class_name {
public boolean add(Object listener) {
if (listener == null) {
return false;
}
checkListenerType(listener);
synchronized (this) {
if (listeners == EMPTY_OBJECT_ARRAY) {
listeners = new Object[] { listener };
}
else {
int listenersLength = listeners.length;
for (... | public class class_name {
public boolean add(Object listener) {
if (listener == null) {
return false; // depends on control dependency: [if], data = [none]
}
checkListenerType(listener);
synchronized (this) {
if (listeners == EMPTY_OBJECT_ARRAY) {
listeners = new Object[] { listener }; // depends on ... |
public class class_name {
public static boolean isFraction(final String text, final int start, final int len){
if(len < 3){
return false;
}
int index = -1;
for(int i=start; i<start+len; i++){
char c = text.charAt(i);
if(c=='.' || c=='/' || c=='/' || c... | public class class_name {
public static boolean isFraction(final String text, final int start, final int len){
if(len < 3){
return false; // depends on control dependency: [if], data = [none]
}
int index = -1;
for(int i=start; i<start+len; i++){
char c = text.cha... |
public class class_name {
protected void removeWorkspace(ManageableRepository mr, String workspaceName) throws RepositoryException
{
boolean isExists = false;
for (String wsName : mr.getWorkspaceNames())
if (workspaceName.equals(wsName))
{
isExists = true;
brea... | public class class_name {
protected void removeWorkspace(ManageableRepository mr, String workspaceName) throws RepositoryException
{
boolean isExists = false;
for (String wsName : mr.getWorkspaceNames())
if (workspaceName.equals(wsName))
{
isExists = true;
brea... |
public class class_name {
public synchronized void start(final StartContext context) throws StartException {
final JMSServerManager jmsManager = jmsServer.getValue();
final Runnable task = new Runnable() {
@Override
public void run() {
try {
j... | public class class_name {
public synchronized void start(final StartContext context) throws StartException {
final JMSServerManager jmsManager = jmsServer.getValue();
final Runnable task = new Runnable() {
@Override
public void run() {
try {
j... |
public class class_name {
@Override
protected void channelSelectorClose() {
synchronized (wqm.shutdownSync) {
try {
selector.close();
} catch (IOException e) {
// No FFDC code or exception handling needed since we are shutting down
}
... | public class class_name {
@Override
protected void channelSelectorClose() {
synchronized (wqm.shutdownSync) {
try {
selector.close(); // depends on control dependency: [try], data = [none]
} catch (IOException e) {
// No FFDC code or exception handlin... |
public class class_name {
private boolean rule5(double sample) {
if (!hasMean()) {
return false;
}
if (rule5LastThree.size() == 3) {
switch (rule5LastThree.removeLast()) {
case ">":
--rule5Above;
break;
... | public class class_name {
private boolean rule5(double sample) {
if (!hasMean()) {
return false; // depends on control dependency: [if], data = [none]
}
if (rule5LastThree.size() == 3) {
switch (rule5LastThree.removeLast()) {
case ">":
... |
public class class_name {
public void setEmailTags(java.util.Collection<MessageTag> emailTags) {
if (emailTags == null) {
this.emailTags = null;
return;
}
this.emailTags = new java.util.ArrayList<MessageTag>(emailTags);
} } | public class class_name {
public void setEmailTags(java.util.Collection<MessageTag> emailTags) {
if (emailTags == null) {
this.emailTags = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this.em... |
public class class_name {
public static BufferedImage loadImage(InputStream is){
try {
BufferedImage bimg = ImageIO.read(is);
if(bimg == null){
throw new ImageLoaderException("Could not load Image! ImageIO.read() returned null.");
}
return bimg;
} catch (IOException e) {
throw new ImageLoaderExc... | public class class_name {
public static BufferedImage loadImage(InputStream is){
try {
BufferedImage bimg = ImageIO.read(is);
if(bimg == null){
throw new ImageLoaderException("Could not load Image! ImageIO.read() returned null.");
}
return bimg; // depends on control dependency: [try], data = [none]
... |
public class class_name {
private void getResPathKeys(String[] keys, int depth) {
ICUResourceBundle b = this;
while (depth > 0) {
keys[--depth] = b.key;
b = b.container;
assert (depth == 0) == (b.container == null);
}
} } | public class class_name {
private void getResPathKeys(String[] keys, int depth) {
ICUResourceBundle b = this;
while (depth > 0) {
keys[--depth] = b.key; // depends on control dependency: [while], data = [none]
b = b.container; // depends on control dependency: [while], data = [n... |
public class class_name {
private InternalCacheEntry<WrappedBytes, WrappedBytes> performRemove(long bucketHeadAddress, long actualAddress,
WrappedBytes key, WrappedBytes value, boolean requireReturn) {
long prevAddress = 0;
// We only use the head pointer for the first iteration
long address... | public class class_name {
private InternalCacheEntry<WrappedBytes, WrappedBytes> performRemove(long bucketHeadAddress, long actualAddress,
WrappedBytes key, WrappedBytes value, boolean requireReturn) {
long prevAddress = 0;
// We only use the head pointer for the first iteration
long address... |
public class class_name {
protected List<String> getCellLines(String explanation) {
int startPos = 0;
List<String> cellLines = new ArrayList<>();
for (int commaPos = 0; commaPos > -1;) {
commaPos = explanation.indexOf(",", startPos);
if (commaPos >= 0) {
String cellLine = (explanation.subst... | public class class_name {
protected List<String> getCellLines(String explanation) {
int startPos = 0;
List<String> cellLines = new ArrayList<>();
for (int commaPos = 0; commaPos > -1;) {
commaPos = explanation.indexOf(",", startPos); // depends on control dependency: [for], data = [commaPos]
if (commaPos >... |
public class class_name {
static public WsByteBuffer[] putByteArray(WsByteBuffer[] buffers, byte[] value, int inOffset, int length, BNFHeadersImpl bnfObj) {
// LIDB2356-41: byte[]/offset/length support
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
// verify the input bu... | public class class_name {
static public WsByteBuffer[] putByteArray(WsByteBuffer[] buffers, byte[] value, int inOffset, int length, BNFHeadersImpl bnfObj) {
// LIDB2356-41: byte[]/offset/length support
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
// verify the input bu... |
public class class_name {
public void setStreamNames(java.util.Collection<String> streamNames) {
if (streamNames == null) {
this.streamNames = null;
return;
}
this.streamNames = new com.amazonaws.internal.SdkInternalList<String>(streamNames);
} } | public class class_name {
public void setStreamNames(java.util.Collection<String> streamNames) {
if (streamNames == null) {
this.streamNames = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
thi... |
public class class_name {
public void setPathScore(Term from, Map<String, Double> relationMap) {
// 维特比进行最优路径的构建
double score = MathUtil.compuScore(from, this, relationMap);
if (this.from == null || this.score == 0 || this.score >= score) {
this.setFromAndScore(from, score);
... | public class class_name {
public void setPathScore(Term from, Map<String, Double> relationMap) {
// 维特比进行最优路径的构建
double score = MathUtil.compuScore(from, this, relationMap);
if (this.from == null || this.score == 0 || this.score >= score) {
this.setFromAndScore(from, score); // depe... |
public class class_name {
@SuppressFBWarnings("RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE")
private C4Document save(Document document, C4Document base, boolean deletion)
throws LiteCoreException {
FLSliceResult body = null;
try {
int revFlags = 0;
if (deletion) { revFl... | public class class_name {
@SuppressFBWarnings("RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE")
private C4Document save(Document document, C4Document base, boolean deletion)
throws LiteCoreException {
FLSliceResult body = null;
try {
int revFlags = 0;
if (deletion) { revFl... |
public class class_name {
public static String stringFor(int n)
{
if (n == 0)
{
return "INVALID CUmemAttach_flags: "+n;
}
String result = "";
if ((n & CU_MEM_ATTACH_GLOBAL) != 0) result += "CU_MEM_ATTACH_GLOBAL ";
if ((n & CU_MEM_ATTACH_HOST) != 0... | public class class_name {
public static String stringFor(int n)
{
if (n == 0)
{
return "INVALID CUmemAttach_flags: "+n;
// depends on control dependency: [if], data = [none]
}
String result = "";
if ((n & CU_MEM_ATTACH_GLOBAL) != 0) result += "CU_MEM_ATTAC... |
public class class_name {
public final boolean overrideAllowed(final File file) {
if (isOverride()) {
// In general it's allowed to recreate existing files
if (overrideExclude == null) {
return true;
} else {
return !getOverrideExcludeFi... | public class class_name {
public final boolean overrideAllowed(final File file) {
if (isOverride()) {
// In general it's allowed to recreate existing files
if (overrideExclude == null) {
return true;
// depends on control dependency: [if], data = [none]
... |
public class class_name {
public M sequence(String sequenceKey, Long initialValue, Boolean increment) {
SequenceConfig cfg = defaultSequenceConfig();
if (null != initialValue) {
cfg.setInitialValue(initialValue);
}
if (null != increment) {
cfg.setDecrement(!incre... | public class class_name {
public M sequence(String sequenceKey, Long initialValue, Boolean increment) {
SequenceConfig cfg = defaultSequenceConfig();
if (null != initialValue) {
cfg.setInitialValue(initialValue); // depends on control dependency: [if], data = [initialValue)]
}
... |
public class class_name {
private static Point getShapeIntersection(Shape shape,
Line2D.Double line) {
PathIterator it = shape.getPathIterator(null);
double[] coords = new double[6];
double[] pos = new double[2];
Line2D.Double l = new Line2D... | public class class_name {
private static Point getShapeIntersection(Shape shape,
Line2D.Double line) {
PathIterator it = shape.getPathIterator(null);
double[] coords = new double[6];
double[] pos = new double[2];
Line2D.Double l = new Line2D... |
public class class_name {
public List<Message> getFilteredList( EMessageType messageType, Long fromTsMillis, Long toTsMillis, long limit )
throws Exception {
String tableName = TABLE_MESSAGES;
String sql = "select " + getQueryFieldsString() + " from " + tableName;
List<String> wher... | public class class_name {
public List<Message> getFilteredList( EMessageType messageType, Long fromTsMillis, Long toTsMillis, long limit )
throws Exception {
String tableName = TABLE_MESSAGES;
String sql = "select " + getQueryFieldsString() + " from " + tableName;
List<String> wher... |
public class class_name {
String getHost() {
LOGGER.entering();
String val = "";
InstanceType type = getType();
if (commands.contains(HOST_ARG)) {
val = commands.get(commands.indexOf(HOST_ARG) + 1);
LOGGER.exiting(val);
return val;
}
... | public class class_name {
String getHost() {
LOGGER.entering();
String val = "";
InstanceType type = getType();
if (commands.contains(HOST_ARG)) {
val = commands.get(commands.indexOf(HOST_ARG) + 1); // depends on control dependency: [if], data = [none]
LOGGER.ex... |
public class class_name {
public static Function<GHEventsSubscriber, Void> processEvent(final GHSubscriberEvent event) {
return new NullSafeFunction<GHEventsSubscriber, Void>() {
@Override
protected Void applyNullSafe(@Nonnull GHEventsSubscriber subscriber) {
try {
... | public class class_name {
public static Function<GHEventsSubscriber, Void> processEvent(final GHSubscriberEvent event) {
return new NullSafeFunction<GHEventsSubscriber, Void>() {
@Override
protected Void applyNullSafe(@Nonnull GHEventsSubscriber subscriber) {
try {
... |
public class class_name {
public void marshall(DescribeActivationsFilter describeActivationsFilter, ProtocolMarshaller protocolMarshaller) {
if (describeActivationsFilter == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
proto... | public class class_name {
public void marshall(DescribeActivationsFilter describeActivationsFilter, ProtocolMarshaller protocolMarshaller) {
if (describeActivationsFilter == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
proto... |
public class class_name {
public File archiveMessage(final MailMessage message) {
try {
String subject = message.getSubject();
String fileName = subject == null
? "no_subject"
: INVALID_FILE_NAME_CHARS.matcher(subject).replaceAll("_");
MutableInt counter = counterProvider.get();
File dir = new... | public class class_name {
public File archiveMessage(final MailMessage message) {
try {
String subject = message.getSubject();
String fileName = subject == null
? "no_subject"
: INVALID_FILE_NAME_CHARS.matcher(subject).replaceAll("_");
MutableInt counter = counterProvider.get();
File dir = new... |
public class class_name {
public void eachInRow(int i, VectorProcedure procedure) {
VectorIterator it = iteratorOfRow(i);
while (it.hasNext()) {
double x = it.next();
int j = it.index();
procedure.apply(j, x);
}
} } | public class class_name {
public void eachInRow(int i, VectorProcedure procedure) {
VectorIterator it = iteratorOfRow(i);
while (it.hasNext()) {
double x = it.next();
int j = it.index();
procedure.apply(j, x); // depends on control dependency: [while], data = [none]... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.