code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public static Platform detect() throws UnsupportedPlatformException {
String osArch = getProperty("os.arch");
String osName = getProperty("os.name");
for (Arch arch : Arch.values()) {
if (arch.pattern.matcher(osArch).matches()) {
for (OS os... | public class class_name {
public static Platform detect() throws UnsupportedPlatformException {
String osArch = getProperty("os.arch");
String osName = getProperty("os.name");
for (Arch arch : Arch.values()) {
if (arch.pattern.matcher(osArch).matches()) {
for (OS os... |
public class class_name {
final boolean select(int extension, ExplorationStep state) throws WrongFirstParentException {
if (this.allowExploration(extension, state)) {
return (this.next == null || this.next.select(extension, state));
} else {
PLCMCounters key = this.getCountersKey();
if (key != null) {
... | public class class_name {
final boolean select(int extension, ExplorationStep state) throws WrongFirstParentException {
if (this.allowExploration(extension, state)) {
return (this.next == null || this.next.select(extension, state));
} else {
PLCMCounters key = this.getCountersKey();
if (key != null) {
... |
public class class_name {
Violation areFieldsImmutable(
Optional<ClassTree> tree,
ImmutableSet<String> immutableTyParams,
ClassType classType,
ViolationReporter reporter) {
ClassSymbol classSym = (ClassSymbol) classType.tsym;
if (classSym.members() == null) {
return Violation.abse... | public class class_name {
Violation areFieldsImmutable(
Optional<ClassTree> tree,
ImmutableSet<String> immutableTyParams,
ClassType classType,
ViolationReporter reporter) {
ClassSymbol classSym = (ClassSymbol) classType.tsym;
if (classSym.members() == null) {
return Violation.abse... |
public class class_name {
public ImageDownloadResult getImageDownloadResult() throws Exception {
Future<ImageDownloadResult> future = pool.poll();
if (future == null) { // no completed tasks in the pool
return null;
} else {
try {
ImageDownloadResult imdr = future.get();
return imdr;
} c... | public class class_name {
public ImageDownloadResult getImageDownloadResult() throws Exception {
Future<ImageDownloadResult> future = pool.poll();
if (future == null) { // no completed tasks in the pool
return null;
} else {
try {
ImageDownloadResult imdr = future.get();
return imdr;
// dep... |
public class class_name {
protected boolean isSuppressed()
{
if (_suppressed == null)
{
// we haven't called this method before, so determine the suppressed
// value and cache it for later calls to this method.
if (isFacet())
{
// fac... | public class class_name {
protected boolean isSuppressed()
{
if (_suppressed == null)
{
// we haven't called this method before, so determine the suppressed
// value and cache it for later calls to this method.
if (isFacet())
{
// fac... |
public class class_name {
public ZooKeeperUpdatingListener build() {
final boolean internalClient;
if (client == null) {
client = CuratorFrameworkFactory.builder()
.connectString(connectionStr)
.retryPol... | public class class_name {
public ZooKeeperUpdatingListener build() {
final boolean internalClient;
if (client == null) {
client = CuratorFrameworkFactory.builder()
.connectString(connectionStr)
.retryPol... |
public class class_name {
public boolean deselectAll(Collection<Integer> IDs) {
boolean modified = false;
for(int ID : IDs){
if(deselect(ID)){
modified = true;
}
}
return modified;
} } | public class class_name {
public boolean deselectAll(Collection<Integer> IDs) {
boolean modified = false;
for(int ID : IDs){
if(deselect(ID)){
modified = true; // depends on control dependency: [if], data = [none]
}
}
return modified;
} } |
public class class_name {
protected void initialise()
throws InstallationException
{
if (!this.initialised) {
this.initialised = true;
this.cache.clear();
AppDependency.initialise();
for (final FileType fileType : FileType.values()) {
... | public class class_name {
protected void initialise()
throws InstallationException
{
if (!this.initialised) {
this.initialised = true;
this.cache.clear();
AppDependency.initialise();
for (final FileType fileType : FileType.values()) {
... |
public class class_name {
public void setConsumers(java.util.Collection<Consumer> consumers) {
if (consumers == null) {
this.consumers = null;
return;
}
this.consumers = new com.amazonaws.internal.SdkInternalList<Consumer>(consumers);
} } | public class class_name {
public void setConsumers(java.util.Collection<Consumer> consumers) {
if (consumers == null) {
this.consumers = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this.cons... |
public class class_name {
private static Observable<Bitmap> getThumbnailFromUriWithSizeAndKind(final Context context,
final Uri data, final int requiredWidth, final int requiredHeight, final int kind) {
return Observable.fromCallable(new Func0<Bitmap>() {
@Override
public Bitmap call() {
... | public class class_name {
private static Observable<Bitmap> getThumbnailFromUriWithSizeAndKind(final Context context,
final Uri data, final int requiredWidth, final int requiredHeight, final int kind) {
return Observable.fromCallable(new Func0<Bitmap>() {
@Override
public Bitmap call() {
... |
public class class_name {
public synchronized Schema create(URI id, String refFragmentPathDelimiters) {
if (!schemas.containsKey(id)) {
URI baseId = removeFragment(id);
JsonNode baseContent = contentResolver.resolve(baseId);
Schema baseSchema = new Schema(baseId, baseConte... | public class class_name {
public synchronized Schema create(URI id, String refFragmentPathDelimiters) {
if (!schemas.containsKey(id)) {
URI baseId = removeFragment(id);
JsonNode baseContent = contentResolver.resolve(baseId);
Schema baseSchema = new Schema(baseId, baseConte... |
public class class_name {
@Override
public void throwFailoverMessage(HostAddress failHostAddress, boolean wasMaster,
SQLException queryException,
boolean reconnected) throws SQLException {
String firstPart = "Communications link failure with "
+ (wasMaster ? "primary" : "secondary")
+... | public class class_name {
@Override
public void throwFailoverMessage(HostAddress failHostAddress, boolean wasMaster,
SQLException queryException,
boolean reconnected) throws SQLException {
String firstPart = "Communications link failure with "
+ (wasMaster ? "primary" : "secondary")
+... |
public class class_name {
private JLabel getAddedCountNameLabel() {
if (addedCountNameLabel == null) {
addedCountNameLabel = new JLabel();
addedCountNameLabel.setText(Constant.messages.getString("spider.toolbar.added.label"));
}
return addedCountNameLabel;
} } | public class class_name {
private JLabel getAddedCountNameLabel() {
if (addedCountNameLabel == null) {
addedCountNameLabel = new JLabel();
// depends on control dependency: [if], data = [none]
addedCountNameLabel.setText(Constant.messages.getString("spider.toolbar.added.label"));
}
return addedCountNa... |
public class class_name {
public static Type createParameterizedType(final Type ownerType0, final Type rawType0, final Type... actualTypeArguments0) {
if (ownerType0 == null && rawType0 instanceof Class) {
int count = 0;
for (Type t : actualTypeArguments0) {
if (isCl... | public class class_name {
public static Type createParameterizedType(final Type ownerType0, final Type rawType0, final Type... actualTypeArguments0) {
if (ownerType0 == null && rawType0 instanceof Class) {
int count = 0;
for (Type t : actualTypeArguments0) {
if (isCl... |
public class class_name {
private static void propagateResponse(BotMillNetworkResponse response) {
String output = response.getResponse();
if (response.isError()) {
// Parses the error message and logs it.
FacebookErrorMessage errorMessage = FbBotMillJsonUtils.fromJson(
output, FacebookErrorMessage.cl... | public class class_name {
private static void propagateResponse(BotMillNetworkResponse response) {
String output = response.getResponse();
if (response.isError()) {
// Parses the error message and logs it.
FacebookErrorMessage errorMessage = FbBotMillJsonUtils.fromJson(
output, FacebookErrorMessage.cl... |
public class class_name {
@Override
public TagAttribute[] getAll(String namespace) {
if (namespace==null) namespace="";
List<TagAttribute> list = new ArrayList<TagAttribute>();
for (TagAttribute a:attrs) {
if (namespace.equals(a.getNamespace())) {
list.add(a);
}
}
TagAtt... | public class class_name {
@Override
public TagAttribute[] getAll(String namespace) {
if (namespace==null) namespace="";
List<TagAttribute> list = new ArrayList<TagAttribute>();
for (TagAttribute a:attrs) {
if (namespace.equals(a.getNamespace())) {
list.add(a); // depends on control depe... |
public class class_name {
public void setDuration(TimeDuration duration) {
this.duration = duration;
useDuration = true;
if (useStart) {
this.isMoving = this.start.isPresent();
this.end = this.start.add(duration);
useEnd = false;
} else {
this.isMoving = this.end.isPresent();
... | public class class_name {
public void setDuration(TimeDuration duration) {
this.duration = duration;
useDuration = true;
if (useStart) {
this.isMoving = this.start.isPresent(); // depends on control dependency: [if], data = [none]
this.end = this.start.add(duration); // depends on control depe... |
public class class_name {
public static <T> T newInstance(final Class<T> clazz) {
Constructor<?>[] constructors = getAllConstructorsOfClass(clazz, true);
if (constructors == null || constructors.length == 0) {
return null;
}
Object[] initParameters = getInitParameters(constr... | public class class_name {
public static <T> T newInstance(final Class<T> clazz) {
Constructor<?>[] constructors = getAllConstructorsOfClass(clazz, true);
if (constructors == null || constructors.length == 0) {
return null; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
@Override
public Map<String, String> getRedisInfo() {
return PoolUtils.doWorkInPoolNicely(this.jedisPool, new PoolWork<Jedis, Map<String, String>>() {
/**
* {@inheritDoc}
*/
@Override
public Map<String, String> doWork(f... | public class class_name {
@Override
public Map<String, String> getRedisInfo() {
return PoolUtils.doWorkInPoolNicely(this.jedisPool, new PoolWork<Jedis, Map<String, String>>() {
/**
* {@inheritDoc}
*/
@Override
public Map<String, String> doWork(f... |
public class class_name {
public static float makeFloatValue( Object obj )
{
if( obj == null )
{
return Float.NaN;
}
return CommonServices.getCoercionManager().makePrimitiveFloatFrom( obj );
} } | public class class_name {
public static float makeFloatValue( Object obj )
{
if( obj == null )
{
return Float.NaN; // depends on control dependency: [if], data = [none]
}
return CommonServices.getCoercionManager().makePrimitiveFloatFrom( obj );
} } |
public class class_name {
private String getAuthMethod(final Deployment dep) {
for (final Endpoint ejbEndpoint : dep.getService().getEndpoints()) {
final String beanAuthMethod = ejb3SecurityAccessor.getAuthMethod(ejbEndpoint);
final boolean hasBeanAuthMethod = beanAuthMethod != null;
... | public class class_name {
private String getAuthMethod(final Deployment dep) {
for (final Endpoint ejbEndpoint : dep.getService().getEndpoints()) {
final String beanAuthMethod = ejb3SecurityAccessor.getAuthMethod(ejbEndpoint);
final boolean hasBeanAuthMethod = beanAuthMethod != null;
... |
public class class_name {
@Override
protected boolean loginToRemoteRegistry() {
Pair<Integer, InputStream> result;
try {
// Check if user already logged in to azure
isUserLoggedIn();
// If user isn't logged in, then login to azure via az cli.
if(!lo... | public class class_name {
@Override
protected boolean loginToRemoteRegistry() {
Pair<Integer, InputStream> result;
try {
// Check if user already logged in to azure
isUserLoggedIn(); // depends on control dependency: [try], data = [none]
// If user isn't logged... |
public class class_name {
public void addAttribute(String name, final String value)
{
if (m_elemContext.m_startTagOpen)
{
final String patchedName = patchName(name);
final String localName = getLocalName(patchedName);
final String uri = getNamespaceURI(patchedNam... | public class class_name {
public void addAttribute(String name, final String value)
{
if (m_elemContext.m_startTagOpen)
{
final String patchedName = patchName(name);
final String localName = getLocalName(patchedName);
final String uri = getNamespaceURI(patchedNam... |
public class class_name {
public static ObjectName makeObjectName(Object obj) {
JmxResource jmxResource = obj.getClass().getAnnotation(JmxResource.class);
if (obj instanceof JmxSelfNaming) {
return makeObjectName(jmxResource, (JmxSelfNaming) obj);
} else {
if (jmxResource == null) {
throw new IllegalAr... | public class class_name {
public static ObjectName makeObjectName(Object obj) {
JmxResource jmxResource = obj.getClass().getAnnotation(JmxResource.class);
if (obj instanceof JmxSelfNaming) {
return makeObjectName(jmxResource, (JmxSelfNaming) obj); // depends on control dependency: [if], data = [none]
} else {... |
public class class_name {
public Optional<Member> getOptionalMember(Object projectIdOrPath, Integer userId) {
try {
return (Optional.ofNullable(getMember(projectIdOrPath, userId)));
} catch (GitLabApiException glae) {
return (GitLabApi.createOptionalFromException(glae));
... | public class class_name {
public Optional<Member> getOptionalMember(Object projectIdOrPath, Integer userId) {
try {
return (Optional.ofNullable(getMember(projectIdOrPath, userId))); // depends on control dependency: [try], data = [none]
} catch (GitLabApiException glae) {
retur... |
public class class_name {
public void setDisabled(boolean disabled) {
this.disabled = disabled;
if (disabled) {
handlerManager.fireEvent(new ToolbarActionDisabledEvent());
} else {
handlerManager.fireEvent(new ToolbarActionEnabledEvent());
}
} } | public class class_name {
public void setDisabled(boolean disabled) {
this.disabled = disabled;
if (disabled) {
handlerManager.fireEvent(new ToolbarActionDisabledEvent()); // depends on control dependency: [if], data = [none]
} else {
handlerManager.fireEvent(new ToolbarActionEnabledEvent()); // depends on... |
public class class_name {
public static synchronized ModbusSlave createTCPSlave(InetAddress address, int port, int poolSize, boolean useRtuOverTcp) throws ModbusException {
String key = ModbusSlaveType.TCP.getKey(port);
if (slaves.containsKey(key)) {
return slaves.get(key);
}
... | public class class_name {
public static synchronized ModbusSlave createTCPSlave(InetAddress address, int port, int poolSize, boolean useRtuOverTcp) throws ModbusException {
String key = ModbusSlaveType.TCP.getKey(port);
if (slaves.containsKey(key)) {
return slaves.get(key); // depends on co... |
public class class_name {
public boolean isPanelsComment(QueryQuestionComment comment, Panel panel) {
Panel queryPanel = resourceController.getResourcePanel(comment.getQueryPage().getQuerySection().getQuery());
if (queryPanel == null || panel == null) {
return false;
}
return queryPanel.getI... | public class class_name {
public boolean isPanelsComment(QueryQuestionComment comment, Panel panel) {
Panel queryPanel = resourceController.getResourcePanel(comment.getQueryPage().getQuerySection().getQuery());
if (queryPanel == null || panel == null) {
return false; // depends on control dependency: [if... |
public class class_name {
public boolean fastUnorderedRemoveInt(final int value)
{
@DoNotSub final int index = indexOf(value);
if (-1 != index)
{
elements[index] = elements[--size];
return true;
}
return false;
} } | public class class_name {
public boolean fastUnorderedRemoveInt(final int value)
{
@DoNotSub final int index = indexOf(value);
if (-1 != index)
{
elements[index] = elements[--size]; // depends on control dependency: [if], data = [none]
return true; // depends on con... |
public class class_name {
public void wipeZeros() {
Set<T> objToBeRemoved = new HashSet<T>();
for (T obj : objToCounts.keySet()) {
if (shouldBeRemovedFromCounter(obj)) {
objToBeRemoved.add(obj);
}
}
for (T obj : objToBeRemoved) {
objTo... | public class class_name {
public void wipeZeros() {
Set<T> objToBeRemoved = new HashSet<T>();
for (T obj : objToCounts.keySet()) {
if (shouldBeRemovedFromCounter(obj)) {
objToBeRemoved.add(obj); // depends on control dependency: [if], data = [none]
}
}
... |
public class class_name {
public V get(K key, V defaultValue)
{
// Check if we only know an equal entry
V sharedValue = get(key);
if (sharedValue == null) {
// If no entry can be found, store and return the passed one
sharedValue = defaultValue;
// Make... | public class class_name {
public V get(K key, V defaultValue)
{
// Check if we only know an equal entry
V sharedValue = get(key);
if (sharedValue == null) {
// If no entry can be found, store and return the passed one
sharedValue = defaultValue; // depends on contro... |
public class class_name {
@Override
public List<Object> collectMilestoningOverlaps()
{
List<Object> duplicateData = FastList.newList();
for (SemiUniqueEntry obj : nonDatedTable)
{
collectMilestoningOverlaps(duplicateData, obj);
}
return duplicateData;... | public class class_name {
@Override
public List<Object> collectMilestoningOverlaps()
{
List<Object> duplicateData = FastList.newList();
for (SemiUniqueEntry obj : nonDatedTable)
{
collectMilestoningOverlaps(duplicateData, obj);
// depends on control dependency: [for],... |
public class class_name {
public void createTableIfNotExists(HBaseAdmin admin, byte[] tableName,
HTableDescriptor tableDescriptor,
byte[][] splitKeys,
long timeout, TimeUnit timeoutUnit) throws IOException {
... | public class class_name {
public void createTableIfNotExists(HBaseAdmin admin, byte[] tableName,
HTableDescriptor tableDescriptor,
byte[][] splitKeys,
long timeout, TimeUnit timeoutUnit) throws IOException {
... |
public class class_name {
protected void createExportBackupFolders(
File staticExport,
String exportPath,
int exportBackups,
String ruleBackupExtension) {
if (staticExport.exists()) {
String backupFolderName = exportPath.substring(0, exportPath.lastIndexOf(File.sepa... | public class class_name {
protected void createExportBackupFolders(
File staticExport,
String exportPath,
int exportBackups,
String ruleBackupExtension) {
if (staticExport.exists()) {
String backupFolderName = exportPath.substring(0, exportPath.lastIndexOf(File.sepa... |
public class class_name {
@Override
public EEnum getIfcEngineTypeEnum() {
if (ifcEngineTypeEnumEEnum == null) {
ifcEngineTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(982);
}
return ifcEngineTypeEnumEEnum;
} } | public class class_name {
@Override
public EEnum getIfcEngineTypeEnum() {
if (ifcEngineTypeEnumEEnum == null) {
ifcEngineTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(982);
// depends on control dependency: [if], data = [none]
}
return i... |
public class class_name {
public static List<ComputerPanelBox> all(Computer computer) {
List<ComputerPanelBox> boxs = new ArrayList<>();
for(ComputerPanelBox box: ExtensionList.lookup(ComputerPanelBox.class)){
box.setComputer(computer);
boxs.add(box);
}
return b... | public class class_name {
public static List<ComputerPanelBox> all(Computer computer) {
List<ComputerPanelBox> boxs = new ArrayList<>();
for(ComputerPanelBox box: ExtensionList.lookup(ComputerPanelBox.class)){
box.setComputer(computer); // depends on control dependency: [for], data = [box]... |
public class class_name {
private void blockBySessionOrIpFailedLoginAttempts(final String sessionId, final LoginBlockResultImpl loginBlockResultImpl) {
final ApplicationSession applicationSession = applicationSessionDAO
.findFirstByProperty(ApplicationSession_.sessionId, sessionId);
if (applicationSession != ... | public class class_name {
private void blockBySessionOrIpFailedLoginAttempts(final String sessionId, final LoginBlockResultImpl loginBlockResultImpl) {
final ApplicationSession applicationSession = applicationSessionDAO
.findFirstByProperty(ApplicationSession_.sessionId, sessionId);
if (applicationSession != ... |
public class class_name {
@Override
public boolean isSelected(final Comparable<E> value, final boolean caseSensitive)
{
if (!list.isEmpty() && list.get(0) instanceof String
&& !caseSensitive) { return list.contains(((String) value).toLowerCase()); }
return list.contains(value);
... | public class class_name {
@Override
public boolean isSelected(final Comparable<E> value, final boolean caseSensitive)
{
if (!list.isEmpty() && list.get(0) instanceof String
&& !caseSensitive) { return list.contains(((String) value).toLowerCase()); } // depends on control dependency: [if... |
public class class_name {
public String getClassName() {
switch (sort) {
case VOID:
return "void";
case BOOLEAN:
return "boolean";
case CHAR:
return "char";
case BYTE:
return "byte";
case... | public class class_name {
public String getClassName() {
switch (sort) {
case VOID:
return "void";
case BOOLEAN:
return "boolean";
case CHAR:
return "char";
case BYTE:
return "byte";
case... |
public class class_name {
public void marshall(PutLogEventsRequest putLogEventsRequest, ProtocolMarshaller protocolMarshaller) {
if (putLogEventsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... | public class class_name {
public void marshall(PutLogEventsRequest putLogEventsRequest, ProtocolMarshaller protocolMarshaller) {
if (putLogEventsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... |
public class class_name {
@Override
public void processClass (File source, Class<?> oclass)
throws Exception
{
// make sure we extend distributed object
if (!_doclass.isAssignableFrom(oclass) || _doclass.equals(oclass)) {
// System.err.println("Skipping " + oclass.getName() ... | public class class_name {
@Override
public void processClass (File source, Class<?> oclass)
throws Exception
{
// make sure we extend distributed object
if (!_doclass.isAssignableFrom(oclass) || _doclass.equals(oclass)) {
// System.err.println("Skipping " + oclass.getName() ... |
public class class_name {
public Collection<ValidationMessage<Origin>> getMessages(String messageKey) {
Collection<ValidationMessage<Origin>> result = new ArrayList<ValidationMessage<Origin>>();
for (ValidationMessage<Origin> message : messages) {
if (messageKey.equals(message.getMessageKey())) {
result.a... | public class class_name {
public Collection<ValidationMessage<Origin>> getMessages(String messageKey) {
Collection<ValidationMessage<Origin>> result = new ArrayList<ValidationMessage<Origin>>();
for (ValidationMessage<Origin> message : messages) {
if (messageKey.equals(message.getMessageKey())) {
result.a... |
public class class_name {
public static String formatAsDirectory(final String dotSep) {
if (dotSep == null || "".equals(dotSep)) {
return "";
}
return dotSep.replace(GROUP_SEPARATOR, PATH_SEPARATOR);
} } | public class class_name {
public static String formatAsDirectory(final String dotSep) {
if (dotSep == null || "".equals(dotSep)) {
return "";
// depends on control dependency: [if], data = [none]
}
return dotSep.replace(GROUP_SEPARATOR, PATH_SEPARATOR);
} } |
public class class_name {
private static MultiLineString splitMultiLineStringWithPoint(MultiLineString multiLineString, Point pointToSplit, double tolerance) {
ArrayList<LineString> linestrings = new ArrayList<LineString>();
boolean notChanged = true;
int nb = multiLineString.getNumGeometries()... | public class class_name {
private static MultiLineString splitMultiLineStringWithPoint(MultiLineString multiLineString, Point pointToSplit, double tolerance) {
ArrayList<LineString> linestrings = new ArrayList<LineString>();
boolean notChanged = true;
int nb = multiLineString.getNumGeometries()... |
public class class_name {
public void uninit() {
if (initialized.get()) {
log.debug("Uninit");
if (writer != null) {
if (writerFuture != null) {
try {
writerFuture.get();
} catch (Exception e) {
... | public class class_name {
public void uninit() {
if (initialized.get()) {
log.debug("Uninit");
// depends on control dependency: [if], data = [none]
if (writer != null) {
if (writerFuture != null) {
try {
writerFuture.get... |
public class class_name {
@Override
public String extract(OAuthRequest request) {
checkPreconditions(request);
final Map<String, String> parameters = request.getOauthParameters();
final StringBuilder header = new StringBuilder(PREAMBLE);
for (Map.Entry<String, String> parameter : ... | public class class_name {
@Override
public String extract(OAuthRequest request) {
checkPreconditions(request);
final Map<String, String> parameters = request.getOauthParameters();
final StringBuilder header = new StringBuilder(PREAMBLE);
for (Map.Entry<String, String> parameter : ... |
public class class_name {
public Observable<ServiceResponse<UserInner>> getPublishingUserWithServiceResponseAsync() {
if (this.apiVersion() == null) {
throw new IllegalArgumentException("Parameter this.apiVersion() is required and cannot be null.");
}
return service.getPublishingUse... | public class class_name {
public Observable<ServiceResponse<UserInner>> getPublishingUserWithServiceResponseAsync() {
if (this.apiVersion() == null) {
throw new IllegalArgumentException("Parameter this.apiVersion() is required and cannot be null.");
}
return service.getPublishingUse... |
public class class_name {
public synchronized Counter findCounter(Enum key) {
Counter counter = cache.get(key);
if (counter == null) {
Group group = getGroup(key.getDeclaringClass().getName());
counter = group.getCounterForName(key.toString());
cache.put(key, counter);
}
return counte... | public class class_name {
public synchronized Counter findCounter(Enum key) {
Counter counter = cache.get(key);
if (counter == null) {
Group group = getGroup(key.getDeclaringClass().getName());
counter = group.getCounterForName(key.toString()); // depends on control dependency: [if], data = [none]
... |
public class class_name {
private boolean processMultiBulkReply(ByteBuf in) {
final int length = lineLength();
if (length == 0) {
return false;
}
in.skipBytes(length);
int num = readInt(length - 2);
if (num == -1) {
return true;
}... | public class class_name {
private boolean processMultiBulkReply(ByteBuf in) {
final int length = lineLength();
if (length == 0) {
return false; // depends on control dependency: [if], data = [none]
}
in.skipBytes(length);
int num = readInt(length - 2);
... |
public class class_name {
private Project.Calendars.Calendar writeCalendar(ProjectCalendar bc)
{
//
// Create a calendar
//
Project.Calendars.Calendar calendar = m_factory.createProjectCalendarsCalendar();
calendar.setUID(NumberHelper.getBigInteger(bc.getUniqueID()));
calendar.se... | public class class_name {
private Project.Calendars.Calendar writeCalendar(ProjectCalendar bc)
{
//
// Create a calendar
//
Project.Calendars.Calendar calendar = m_factory.createProjectCalendarsCalendar();
calendar.setUID(NumberHelper.getBigInteger(bc.getUniqueID()));
calendar.se... |
public class class_name {
private void unbindValue(Session session, String name, Object value) {
if (value instanceof SessionBindingListener) {
((SessionBindingListener)value).valueUnbound(session, name, value);
}
} } | public class class_name {
private void unbindValue(Session session, String name, Object value) {
if (value instanceof SessionBindingListener) {
((SessionBindingListener)value).valueUnbound(session, name, value); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
private static <T> T withinLocale(final Callable<T> operation, final Locale locale)
{
DefaultICUContext ctx = context.get();
Locale oldLocale = ctx.getLocale();
try
{
ctx.setLocale(locale);
return operation.call();
} catch (... | public class class_name {
private static <T> T withinLocale(final Callable<T> operation, final Locale locale)
{
DefaultICUContext ctx = context.get();
Locale oldLocale = ctx.getLocale();
try
{
ctx.setLocale(locale); // depends on control dependency: [try], data = [none]... |
public class class_name {
public void setNames(java.util.Collection<String> names) {
if (names == null) {
this.names = null;
return;
}
this.names = new java.util.ArrayList<String>(names);
} } | public class class_name {
public void setNames(java.util.Collection<String> names) {
if (names == null) {
this.names = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this.names = new java.util.... |
public class class_name {
public static void warn(Object... message) {
StringBuilder builder = new StringBuilder(APP_WARN);
for (Object object : message) {
builder.append(object.toString());
}
warnStream.println(builder.toString());
} } | public class class_name {
public static void warn(Object... message) {
StringBuilder builder = new StringBuilder(APP_WARN);
for (Object object : message) {
builder.append(object.toString()); // depends on control dependency: [for], data = [object]
}
warnStream.println(builde... |
public class class_name {
public synchronized void putSITransaction(SITransaction transaction)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "putSITransaction", transaction);
Transaction commsTx = (Transaction)transaction;
int flags = -1;
if (transactio... | public class class_name {
public synchronized void putSITransaction(SITransaction transaction)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "putSITransaction", transaction);
Transaction commsTx = (Transaction)transaction;
int flags = -1;
if (transactio... |
public class class_name {
static boolean validateUsageParameterInterface(ComponentID id, boolean isSlee11, Class<?> usageInterface, List<UsageParameterDescriptor> parameters) {
boolean passed = true;
String errorBuffer = new String("");
try {
if (!usageInterface.isInterface()) {
passed = false;
... | public class class_name {
static boolean validateUsageParameterInterface(ComponentID id, boolean isSlee11, Class<?> usageInterface, List<UsageParameterDescriptor> parameters) {
boolean passed = true;
String errorBuffer = new String("");
try {
if (!usageInterface.isInterface()) {
passed = false;
//... |
public class class_name {
private static Prefix getPrefix(final String string, final Set<Prefix> set) {
for (final Iterator<Prefix> iter = set.iterator(); iter.hasNext();) {
final Prefix prefix = iter.next();
final int comp = prefix.compareTo(string);
if (comp == 0) {
return prefix;
}
if (comp > 0... | public class class_name {
private static Prefix getPrefix(final String string, final Set<Prefix> set) {
for (final Iterator<Prefix> iter = set.iterator(); iter.hasNext();) {
final Prefix prefix = iter.next();
final int comp = prefix.compareTo(string);
if (comp == 0) {
return prefix; // depends on contro... |
public class class_name {
public static ArrayList<Trajectory> splitTrackInSubTracks(Trajectory t, int windowWidth, boolean overlapping){
int increment = 1;
if(overlapping==false){
increment=windowWidth;
}
ArrayList<Trajectory> subTrajectories = new ArrayList<Trajectory>();
boolean trackEndReached = false;... | public class class_name {
public static ArrayList<Trajectory> splitTrackInSubTracks(Trajectory t, int windowWidth, boolean overlapping){
int increment = 1;
if(overlapping==false){
increment=windowWidth; // depends on control dependency: [if], data = [none]
}
ArrayList<Trajectory> subTrajectories = new Array... |
public class class_name {
protected IConstructorLinkingCandidate getKnownConstructor(XConstructorCall constructorCall, AbstractTypeComputationState state,
ResolvedTypes resolvedTypes) {
IConstructorLinkingCandidate result = resolvedTypes.getConstructor(constructorCall);
if (result != null) {
return result;
... | public class class_name {
protected IConstructorLinkingCandidate getKnownConstructor(XConstructorCall constructorCall, AbstractTypeComputationState state,
ResolvedTypes resolvedTypes) {
IConstructorLinkingCandidate result = resolvedTypes.getConstructor(constructorCall);
if (result != null) {
return result; /... |
public class class_name {
public ServiceCall<CounterexampleCollection> listCounterexamples(
ListCounterexamplesOptions listCounterexamplesOptions) {
Validator.notNull(listCounterexamplesOptions, "listCounterexamplesOptions cannot be null");
String[] pathSegments = { "v1/workspaces", "counterexamples" };
... | public class class_name {
public ServiceCall<CounterexampleCollection> listCounterexamples(
ListCounterexamplesOptions listCounterexamplesOptions) {
Validator.notNull(listCounterexamplesOptions, "listCounterexamplesOptions cannot be null");
String[] pathSegments = { "v1/workspaces", "counterexamples" };
... |
public class class_name {
public ItemList getItemList() {
if (!atomics.containsKey(mRTX)) {
atomics.put(mRTX, new ItemList());
}
return atomics.get(mRTX);
} } | public class class_name {
public ItemList getItemList() {
if (!atomics.containsKey(mRTX)) {
atomics.put(mRTX, new ItemList()); // depends on control dependency: [if], data = [none]
}
return atomics.get(mRTX);
} } |
public class class_name {
static IDataSet toDataSet(final DataSetDto dto) {
IDataSet dataSet = new DataSet(dto.name);
dataSet.setDataModelId(new DataModelId(dto.dataModelId));
for (List<Object> row : dto.table) {
IDsRow dsrow = dataSet.addRow();
for... | public class class_name {
static IDataSet toDataSet(final DataSetDto dto) {
IDataSet dataSet = new DataSet(dto.name);
dataSet.setDataModelId(new DataModelId(dto.dataModelId));
for (List<Object> row : dto.table) {
IDsRow dsrow = dataSet.addRow();
for... |
public class class_name {
private boolean sameKeys(KTypeSet<?> other) {
if (other.size() != size()) {
return false;
}
for (KTypeCursor<?> c : other) {
if (!contains(Intrinsics.<KType> cast(c.value))) {
return false;
}
}
return true;
} } | public class class_name {
private boolean sameKeys(KTypeSet<?> other) {
if (other.size() != size()) {
return false; // depends on control dependency: [if], data = [none]
}
for (KTypeCursor<?> c : other) {
if (!contains(Intrinsics.<KType> cast(c.value))) {
return false; // depends on co... |
public class class_name {
private PortalSearchResults getPortalSearchResults(PortletRequest request, String queryId) {
final PortletSession session = request.getPortletSession();
@SuppressWarnings("unchecked")
final Cache<String, PortalSearchResults> searchResultsCache =
(Cache<... | public class class_name {
private PortalSearchResults getPortalSearchResults(PortletRequest request, String queryId) {
final PortletSession session = request.getPortletSession();
@SuppressWarnings("unchecked")
final Cache<String, PortalSearchResults> searchResultsCache =
(Cache<... |
public class class_name {
@Override
public void sawOpcode(int seen) {
int pc = 0;
try {
stack.precomputation(this);
switch (state) {
case SAW_NOTHING:
pc = sawOpcodeAfterNothing(seen);
break;
case SAW_CTOR... | public class class_name {
@Override
public void sawOpcode(int seen) {
int pc = 0;
try {
stack.precomputation(this); // depends on control dependency: [try], data = [none]
switch (state) {
case SAW_NOTHING:
pc = sawOpcodeAfterNothing(seen)... |
public class class_name {
public static void setText(EfficientCacheView cacheView, int viewId, CharSequence text) {
View view = cacheView.findViewByIdEfficient(viewId);
if (view instanceof TextView) {
((TextView) view).setText(text);
}
} } | public class class_name {
public static void setText(EfficientCacheView cacheView, int viewId, CharSequence text) {
View view = cacheView.findViewByIdEfficient(viewId);
if (view instanceof TextView) {
((TextView) view).setText(text); // depends on control dependency: [if], data = [none]
... |
public class class_name {
private void initStack() {
if (log.isInfoEnabled()) {
log.info("Initializing Stack...");
}
InputStream is = null;
try {
//Parse dictionary, it is used for user friendly info.
dictionary.parseDictionary(this.getClass().getClassLoader().getResourceAsStre... | public class class_name {
private void initStack() {
if (log.isInfoEnabled()) {
log.info("Initializing Stack...");
// depends on control dependency: [if], data = [none]
}
InputStream is = null;
try {
//Parse dictionary, it is used for user friendly info.
dictionary.parseDiction... |
public class class_name {
@Override
public ConcurrentMap<String, Object> deserializeAttributes(final byte[] in ) {
if ( LOG.isDebugEnabled() ) {
LOG.debug( "Reading serialized data:\n" + new String( in ) );
}
return doDeserialize( in, "attributes" );
} } | public class class_name {
@Override
public ConcurrentMap<String, Object> deserializeAttributes(final byte[] in ) {
if ( LOG.isDebugEnabled() ) {
LOG.debug( "Reading serialized data:\n" + new String( in ) ); // depends on control dependency: [if], data = [none]
}
return doDeser... |
public class class_name {
public void meanShiftLocation( ChessboardCorner c ) {
float meanX = (float)c.x;
float meanY = (float)c.y;
// The peak in intensity will be in -r to r region, but smaller values will be -2*r to 2*r
int radius = this.shiRadius*2;
for (int iteration = 0; iteration < 5; iteration++) {
... | public class class_name {
public void meanShiftLocation( ChessboardCorner c ) {
float meanX = (float)c.x;
float meanY = (float)c.y;
// The peak in intensity will be in -r to r region, but smaller values will be -2*r to 2*r
int radius = this.shiRadius*2;
for (int iteration = 0; iteration < 5; iteration++) {
... |
public class class_name {
public org.inferred.freebuilder.processor.property.Property.Builder clearAccessorAnnotations() {
if (accessorAnnotations instanceof ImmutableList) {
accessorAnnotations = ImmutableList.of();
} else {
accessorAnnotations.clear();
}
return (org.inferred.freebuilder.p... | public class class_name {
public org.inferred.freebuilder.processor.property.Property.Builder clearAccessorAnnotations() {
if (accessorAnnotations instanceof ImmutableList) {
accessorAnnotations = ImmutableList.of(); // depends on control dependency: [if], data = [none]
} else {
accessorAnnotations... |
public class class_name {
public static String getHash(final String password, final String salt) {
if (StringUtils.isEmpty(salt)) {
return getSimpleHash(password);
}
return DigestUtils.sha512Hex(DigestUtils.sha512Hex(password).concat(salt));
} } | public class class_name {
public static String getHash(final String password, final String salt) {
if (StringUtils.isEmpty(salt)) {
return getSimpleHash(password); // depends on control dependency: [if], data = [none]
}
return DigestUtils.sha512Hex(DigestUtils.sha512Hex(password).concat(salt));
} } |
public class class_name {
public void update (T value)
{
// store our new current value
_value = value;
// notify our listeners; we snapshot our listeners before iterating to avoid problems if
// listeners add or remove themselves while we're dispatching this notification
f... | public class class_name {
public void update (T value)
{
// store our new current value
_value = value;
// notify our listeners; we snapshot our listeners before iterating to avoid problems if
// listeners add or remove themselves while we're dispatching this notification
f... |
public class class_name {
public int getNumberWaiting() {
final ReentrantLock lock = this.lock;
lock.lock();
try {
return parties - count;
} finally {
lock.unlock();
}
} } | public class class_name {
public int getNumberWaiting() {
final ReentrantLock lock = this.lock;
lock.lock();
try {
return parties - count; // depends on control dependency: [try], data = [none]
} finally {
lock.unlock();
}
} } |
public class class_name {
public void marshall(DeliveryOptions deliveryOptions, ProtocolMarshaller protocolMarshaller) {
if (deliveryOptions == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(deliver... | public class class_name {
public void marshall(DeliveryOptions deliveryOptions, ProtocolMarshaller protocolMarshaller) {
if (deliveryOptions == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(deliver... |
public class class_name {
public static GVRTexture loadFutureCubemapTexture(
GVRContext gvrContext, ResourceCache<GVRImage> textureCache,
GVRAndroidResource resource, int priority,
Map<String, Integer> faceIndexMap) {
GVRTexture tex = new GVRTexture(gvrContext);
GVRI... | public class class_name {
public static GVRTexture loadFutureCubemapTexture(
GVRContext gvrContext, ResourceCache<GVRImage> textureCache,
GVRAndroidResource resource, int priority,
Map<String, Integer> faceIndexMap) {
GVRTexture tex = new GVRTexture(gvrContext);
GVRI... |
public class class_name {
public void afterDistribute(RunReportHistory history, DistributionContext context) {
for (String username : users) {
try {
context.getSecurityService().grantUser(history.getPath(), username, PermissionUtil.getRead(), false);
} catch (Exception e... | public class class_name {
public void afterDistribute(RunReportHistory history, DistributionContext context) {
for (String username : users) {
try {
context.getSecurityService().grantUser(history.getPath(), username, PermissionUtil.getRead(), false); // depends on control dependency... |
public class class_name {
@Override
public void removeByUuid(String uuid) {
for (CPSpecificationOption cpSpecificationOption : findByUuid(uuid,
QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(cpSpecificationOption);
}
} } | public class class_name {
@Override
public void removeByUuid(String uuid) {
for (CPSpecificationOption cpSpecificationOption : findByUuid(uuid,
QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(cpSpecificationOption); // depends on control dependency: [for], data = [cpSpecificationOption]
}
} } |
public class class_name {
protected boolean parseLine(final ParserData parserData, final String line, int lineNumber) throws IndentationException {
assert line != null;
// Trim the whitespace
final String trimmedLine = line.trim();
// If the line is a blank or a comment, then nothing ... | public class class_name {
protected boolean parseLine(final ParserData parserData, final String line, int lineNumber) throws IndentationException {
assert line != null;
// Trim the whitespace
final String trimmedLine = line.trim();
// If the line is a blank or a comment, then nothing ... |
public class class_name {
public String getThreadDump(int depth, boolean onlyActive)
{
ThreadMXBean threadBean = ManagementFactory.getThreadMXBean();
long []ids = threadBean.getAllThreadIds();
ThreadInfo []info = threadBean.getThreadInfo(ids, depth);
StringBuilder sb = new StringBuilder();
sb.a... | public class class_name {
public String getThreadDump(int depth, boolean onlyActive)
{
ThreadMXBean threadBean = ManagementFactory.getThreadMXBean();
long []ids = threadBean.getAllThreadIds();
ThreadInfo []info = threadBean.getThreadInfo(ids, depth);
StringBuilder sb = new StringBuilder();
sb.a... |
public class class_name {
public static <T> VicariousThreadLocal<T> newThreadLocal(final java.util.concurrent.Callable<T> doCall) {
return new VicariousThreadLocal<T>() {
@Override
public T initialValue() {
try {
return doCall.call();
... | public class class_name {
public static <T> VicariousThreadLocal<T> newThreadLocal(final java.util.concurrent.Callable<T> doCall) {
return new VicariousThreadLocal<T>() {
@Override
public T initialValue() {
try {
return doCall.call(); // depends on co... |
public class class_name {
public Map<String, String> findMatches(String incoming) {
String[] pieces = incoming.split(PATH_SEPARATOR);
int i = 0;
//too many matchers, short circuit
if (path.size() > pieces.length)
return null;
Map<String, String> values = new HashMa... | public class class_name {
public Map<String, String> findMatches(String incoming) {
String[] pieces = incoming.split(PATH_SEPARATOR);
int i = 0;
//too many matchers, short circuit
if (path.size() > pieces.length)
return null;
Map<String, String> values = new HashMa... |
public class class_name {
public static void sleep(final TimeUnit timeUnit, final long units){
try{
timeUnit.sleep(units);
}catch(final InterruptedException ignored){
ignore(ignored);
}
} } | public class class_name {
public static void sleep(final TimeUnit timeUnit, final long units){
try{
timeUnit.sleep(units); // depends on control dependency: [try], data = [none]
}catch(final InterruptedException ignored){
ignore(ignored);
} // depends on control dependency: [catch], data = [non... |
public class class_name {
private String getRowLineBuf(int colCount, List<Integer> colMaxLenList, String[][] data) {
StringBuilder rowBuilder = new StringBuilder();
int colWidth = 0;
for (int i = 0; i < colCount; i++) {
colWidth = colMaxLenList.get(i) + 3;
for (int j = 0; j < colWi... | public class class_name {
private String getRowLineBuf(int colCount, List<Integer> colMaxLenList, String[][] data) {
StringBuilder rowBuilder = new StringBuilder();
int colWidth = 0;
for (int i = 0; i < colCount; i++) {
colWidth = colMaxLenList.get(i) + 3;
// depends on control dependency:... |
public class class_name {
private static long pickTTLMillis(long operationTTLMillis, long existingTTLMillis, MapConfig mapConfig,
boolean consultMapConfig) {
// if user set operationTTLMillis when calling operation, use it
if (operationTTLMillis > 0) {
... | public class class_name {
private static long pickTTLMillis(long operationTTLMillis, long existingTTLMillis, MapConfig mapConfig,
boolean consultMapConfig) {
// if user set operationTTLMillis when calling operation, use it
if (operationTTLMillis > 0) {
... |
public class class_name {
static Optional<ACLHandle> getEffectiveAcl(final FedoraResource resource, final boolean ancestorAcl,
final SessionFactory sessionFactory) {
try {
final FedoraResource aclResource = resource.getAcl();
if (aclReso... | public class class_name {
static Optional<ACLHandle> getEffectiveAcl(final FedoraResource resource, final boolean ancestorAcl,
final SessionFactory sessionFactory) {
try {
final FedoraResource aclResource = resource.getAcl();
if (aclReso... |
public class class_name {
private static int getNumberOfInserts(String messageKey) {
String unInsertedMessage = nls.getString(messageKey);
int numInserts = 0;
// Not much point in going any further than 20 inserts!
for (int i = 0; i < 20; i++) {
if (unInsertedMessage.indexO... | public class class_name {
private static int getNumberOfInserts(String messageKey) {
String unInsertedMessage = nls.getString(messageKey);
int numInserts = 0;
// Not much point in going any further than 20 inserts!
for (int i = 0; i < 20; i++) {
if (unInsertedMessage.indexO... |
public class class_name {
public static String printToString(Message message) {
try {
StringBuilder text = new StringBuilder();
print(message, text);
return text.toString();
} catch (IOException e) {
throw new RuntimeException("Writing to a StringBuilder ... | public class class_name {
public static String printToString(Message message) {
try {
StringBuilder text = new StringBuilder();
print(message, text); // depends on control dependency: [try], data = [none]
return text.toString(); // depends on control dependency: [try], data ... |
public class class_name {
public void setMemberAccounts(java.util.Collection<MemberAccount> memberAccounts) {
if (memberAccounts == null) {
this.memberAccounts = null;
return;
}
this.memberAccounts = new java.util.ArrayList<MemberAccount>(memberAccounts);
} } | public class class_name {
public void setMemberAccounts(java.util.Collection<MemberAccount> memberAccounts) {
if (memberAccounts == null) {
this.memberAccounts = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
protected void addDescription(MemberDoc member, Content dlTree, SearchIndexItem si) {
String name = (member instanceof ExecutableMemberDoc)?
member.name() + ((ExecutableMemberDoc)member).flatSignature() :
member.name();
si.setContainingPackage(utils.get... | public class class_name {
protected void addDescription(MemberDoc member, Content dlTree, SearchIndexItem si) {
String name = (member instanceof ExecutableMemberDoc)?
member.name() + ((ExecutableMemberDoc)member).flatSignature() :
member.name();
si.setContainingPackage(utils.get... |
public class class_name {
protected String embeddedIconsInConsole(String iconRef, String prefix) {
if (iconRef == null) {
return null;
}
if (iconRef.startsWith("icons/")) {
iconRef = iconRef.substring(6);
}
// special for fabric8 as its in a different d... | public class class_name {
protected String embeddedIconsInConsole(String iconRef, String prefix) {
if (iconRef == null) {
return null; // depends on control dependency: [if], data = [none]
}
if (iconRef.startsWith("icons/")) {
iconRef = iconRef.substring(6); // depends ... |
public class class_name {
public static Byte[] toObject(byte[] array) {
if (array == null) {
return null;
} else if (array.length == 0) {
return EMPTY_BYTE_OBJECT_ARRAY;
}
final Byte[] result = new Byte[array.length];
for (int i = 0; i < array.length; i++... | public class class_name {
public static Byte[] toObject(byte[] array) {
if (array == null) {
return null; // depends on control dependency: [if], data = [none]
} else if (array.length == 0) {
return EMPTY_BYTE_OBJECT_ARRAY; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public ArrayList readAllCreateObs(CancelTask cancel) throws IOException {
// see if its a station or point dataset
boolean hasStations = stnIdVName != null;
if (hasStations)
stnHash = new HashMap<Object, ucar.unidata.geoloc.Station>();
// get min and max date and lat,l... | public class class_name {
public ArrayList readAllCreateObs(CancelTask cancel) throws IOException {
// see if its a station or point dataset
boolean hasStations = stnIdVName != null;
if (hasStations)
stnHash = new HashMap<Object, ucar.unidata.geoloc.Station>();
// get min and max date and lat,l... |
public class class_name {
private String encodeBytesFromBuffer(int howMany) {
String result;
if (innerStreamHasMoreData) {
howMany = howMany - howMany % 3;
}
if (howMany == 0) {
return "";
}
byte[] encodeBuffer = new byte[howMany];
Syst... | public class class_name {
private String encodeBytesFromBuffer(int howMany) {
String result;
if (innerStreamHasMoreData) {
howMany = howMany - howMany % 3; // depends on control dependency: [if], data = [none]
}
if (howMany == 0) {
return ""; // depends on cont... |
public class class_name {
private String toTypeString(ClassTemplateSpec spec) {
// If we're supporting projections, all fields, even required ones, may be absent.
// To support this, we box all primitive field types.
if (spec.getSchema() == null) { // custom type
return escapedFullname(spec);
}
... | public class class_name {
private String toTypeString(ClassTemplateSpec spec) {
// If we're supporting projections, all fields, even required ones, may be absent.
// To support this, we box all primitive field types.
if (spec.getSchema() == null) { // custom type
return escapedFullname(spec); // depe... |
public class class_name {
public void gatherOutput() {
try {
final Copier errorCopier = new Copier(this.processErrorStream);
final Copier outputCopier = new Copier(this.processOutputStream);
errorCopier.start();
outputCopier.start();
errorCopier.join();
outputCopier.join();
... | public class class_name {
public void gatherOutput() {
try {
final Copier errorCopier = new Copier(this.processErrorStream);
final Copier outputCopier = new Copier(this.processOutputStream);
errorCopier.start(); // depends on control dependency: [try], data = [none]
outputCopier.start(); //... |
public class class_name {
public Task getTask(int index) {
final Lock readLock = lock.readLock();
try {
readLock.lock();
return tasks.get(index);
} finally {
readLock.unlock();
}
} } | public class class_name {
public Task getTask(int index) {
final Lock readLock = lock.readLock();
try {
readLock.lock();
// depends on control dependency: [try], data = [none]
return tasks.get(index);
// depends on control dependency: [try], data = [none]
} finally {
readLock.unlock();
}
} } |
public class class_name {
public void send(String toAddress, String subject, String message, List<File> attachments,
boolean highPriority) throws NamingException, MessagingException {
assert toAddress != null;
assert subject != null;
assert message != null;
final InternetAddress[] toAddresses = Interne... | public class class_name {
public void send(String toAddress, String subject, String message, List<File> attachments,
boolean highPriority) throws NamingException, MessagingException {
assert toAddress != null;
assert subject != null;
assert message != null;
final InternetAddress[] toAddresses = Interne... |
public class class_name {
public static <T> String listToString(List<T> list, final boolean justValue,
final String separator) {
StringBuilder s = new StringBuilder();
for (Iterator<T> wordIterator = list.iterator(); wordIterator.hasNext();) {
T o = wordIterato... | public class class_name {
public static <T> String listToString(List<T> list, final boolean justValue,
final String separator) {
StringBuilder s = new StringBuilder();
for (Iterator<T> wordIterator = list.iterator(); wordIterator.hasNext();) {
T o = wordIterato... |
public class class_name {
protected Variable[] createVariablesSub(int num, String component) {
Variable[] ret = createVariablesSub(num);
if (component != null) {
logger.finest("Set component of " + Arrays.toString(ret) + " to " + component);
this.setComponent(component, ret);
}
return ret;
} } | public class class_name {
protected Variable[] createVariablesSub(int num, String component) {
Variable[] ret = createVariablesSub(num);
if (component != null) {
logger.finest("Set component of " + Arrays.toString(ret) + " to " + component);
// depends on control dependency: [if], data = [none]
this.setC... |
public class class_name {
public OutlierResult run(Relation<V> relation) {
final int dim = RelationUtil.dimensionality(relation);
final int size = relation.size();
ArrayList<ArrayList<DBIDs>> ranges = buildRanges(relation);
ArrayList<int[]> Rk;
// Build a list of all subspaces
FiniteProgress p... | public class class_name {
public OutlierResult run(Relation<V> relation) {
final int dim = RelationUtil.dimensionality(relation);
final int size = relation.size();
ArrayList<ArrayList<DBIDs>> ranges = buildRanges(relation);
ArrayList<int[]> Rk;
// Build a list of all subspaces
FiniteProgress p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.