code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public static String byteToHex(byte b[]) {
int len = b.length;
char[] s = new char[len * 2];
for (int i = 0, j = 0; i < len; i++) {
int c = ((int) b[i]) & 0xff;
s[j++] = HEXCHAR[c >> 4 & 0xf];
s[j++] = HEXCHAR[c & 0xf];
... | public class class_name {
public static String byteToHex(byte b[]) {
int len = b.length;
char[] s = new char[len * 2];
for (int i = 0, j = 0; i < len; i++) {
int c = ((int) b[i]) & 0xff;
s[j++] = HEXCHAR[c >> 4 & 0xf]; // depends on control dependency: [for], dat... |
public class class_name {
protected void modify(Transaction t) {
try {
this.lock.writeLock().lock();
t.perform();
} finally {
this.lock.writeLock().unlock();
}
} } | public class class_name {
protected void modify(Transaction t) {
try {
this.lock.writeLock().lock(); // depends on control dependency: [try], data = [none]
t.perform(); // depends on control dependency: [try], data = [none]
} finally {
this.lock.writeLock().unlock();... |
public class class_name {
public Label newLabel(String labelStr, int options) {
if (options == TAG_LABEL) {
return new TaggedWord(null, labelStr);
}
return new TaggedWord(labelStr);
} } | public class class_name {
public Label newLabel(String labelStr, int options) {
if (options == TAG_LABEL) {
return new TaggedWord(null, labelStr);
// depends on control dependency: [if], data = [none]
}
return new TaggedWord(labelStr);
} } |
public class class_name {
@SuppressWarnings( {"UnusedDeclaration", "unchecked"} )
public <T> ObjectIdGenerator<T> findObjectIdGenerator( ObjectIdGenerator<T> gen ) {
if ( null != generators ) {
for ( ObjectIdGenerator<?> generator : generators ) {
if ( generator.canUseFor( gen )... | public class class_name {
@SuppressWarnings( {"UnusedDeclaration", "unchecked"} )
public <T> ObjectIdGenerator<T> findObjectIdGenerator( ObjectIdGenerator<T> gen ) {
if ( null != generators ) {
for ( ObjectIdGenerator<?> generator : generators ) {
if ( generator.canUseFor( gen )... |
public class class_name {
public void normalize() {
float base = 1;
// if(scores[0]>=0.0f)
// base = scores[0]/2;
float sum = 0;
for(int i=0;i<scores.length;i++){
float s = (float) Math.exp(scores[i]/base);
scores[i] = s;
sum +=s;
}
for(int i=0;i<scores.length;i++){
float s = sco... | public class class_name {
public void normalize() {
float base = 1;
// if(scores[0]>=0.0f)
// base = scores[0]/2;
float sum = 0;
for(int i=0;i<scores.length;i++){
float s = (float) Math.exp(scores[i]/base);
scores[i] = s;
// depends on control dependency: [for], data = [i]
sum +=s;
// dep... |
public class class_name {
public void shutdown () {
synchronized ( this.queueDiscoverers ) {
for (MBeanDestinationDiscovererScheduler oneDiscovererScheduler : this.queueDiscoverers.values()) {
oneDiscovererScheduler.stop();
}
}
synchronized ( this.broker... | public class class_name {
public void shutdown () {
synchronized ( this.queueDiscoverers ) {
for (MBeanDestinationDiscovererScheduler oneDiscovererScheduler : this.queueDiscoverers.values()) {
oneDiscovererScheduler.stop(); // depends on control dependency: [for], data = [oneDiscove... |
public class class_name {
public void marshall(TableDescription tableDescription, ProtocolMarshaller protocolMarshaller) {
if (tableDescription == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(tabl... | public class class_name {
public void marshall(TableDescription tableDescription, ProtocolMarshaller protocolMarshaller) {
if (tableDescription == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(tabl... |
public class class_name {
public Map<String, Map<String, Object>> getPropertyMetadataAndValuesAsMap() {
Map<String, Map<String, Object>> configMap = new HashMap<>();
for (ConfigurationProperty property : this) {
Map<String, Object> mapValue = new HashMap<>();
mapValue.put("isSec... | public class class_name {
public Map<String, Map<String, Object>> getPropertyMetadataAndValuesAsMap() {
Map<String, Map<String, Object>> configMap = new HashMap<>();
for (ConfigurationProperty property : this) {
Map<String, Object> mapValue = new HashMap<>();
mapValue.put("isSec... |
public class class_name {
public static Map<String, Object> toMap(XmlReaders readers){
Node root = readers.getNode("xml");
if (root == null){
return Collections.emptyMap();
}
NodeList children = root.getChildNodes();
if (children.getLength() == 0){
return... | public class class_name {
public static Map<String, Object> toMap(XmlReaders readers){
Node root = readers.getNode("xml");
if (root == null){
return Collections.emptyMap(); // depends on control dependency: [if], data = [none]
}
NodeList children = root.getChildNodes();
... |
public class class_name {
public String getSchemaLocation(MessageVersion recMessageVersion, String schemaLocation)
{
String location = this.getField(MessageControl.BASE_SCHEMA_LOCATION).toString();
if (location == null)
location = DBConstants.BLANK;
else if (!location.endsWith("... | public class class_name {
public String getSchemaLocation(MessageVersion recMessageVersion, String schemaLocation)
{
String location = this.getField(MessageControl.BASE_SCHEMA_LOCATION).toString();
if (location == null)
location = DBConstants.BLANK;
else if (!location.endsWith("... |
public class class_name {
Expression genCodeForParamAccess(String paramName, VarDefn varDefn) {
Expression source = OPT_DATA;
if (varDefn.isInjected()) {
// Special case for csp_nonce. It is created by the compiler itself, and users should not need
// to set it. So, instead of generating opt_ij_dat... | public class class_name {
Expression genCodeForParamAccess(String paramName, VarDefn varDefn) {
Expression source = OPT_DATA;
if (varDefn.isInjected()) {
// Special case for csp_nonce. It is created by the compiler itself, and users should not need
// to set it. So, instead of generating opt_ij_dat... |
public class class_name {
static <E> ImmutableList<E> asImmutableList(Object[] elements, int length) {
switch (length) {
case 0:
return of();
case 1:
@SuppressWarnings("unchecked") // collection had only Es in it
ImmutableList<E> list = new SingletonImmutableList<E>((E) elements... | public class class_name {
static <E> ImmutableList<E> asImmutableList(Object[] elements, int length) {
switch (length) {
case 0:
return of();
case 1:
@SuppressWarnings("unchecked") // collection had only Es in it
ImmutableList<E> list = new SingletonImmutableList<E>((E) elements... |
public class class_name {
@Override
public Set<Entry<String, Object>> entrySet() {
Map<String, Object> entries = new HashMap<String, Object>();
for (Property property : getProperties(_scope)) {
entries.put(property.getName(), property.getValue());
}
return entries.entryS... | public class class_name {
@Override
public Set<Entry<String, Object>> entrySet() {
Map<String, Object> entries = new HashMap<String, Object>();
for (Property property : getProperties(_scope)) {
entries.put(property.getName(), property.getValue()); // depends on control dependency: [for]... |
public class class_name {
public boolean areParamsValid() {
if (queryType == QueryType.COUNT) {
if (eventCollection == null || eventCollection.isEmpty()) {
return false;
}
}
if (queryType == QueryType.COUNT_UNIQUE
|| queryType == QueryTyp... | public class class_name {
public boolean areParamsValid() {
if (queryType == QueryType.COUNT) {
if (eventCollection == null || eventCollection.isEmpty()) {
return false; // depends on control dependency: [if], data = [none]
}
}
if (queryType == QueryType... |
public class class_name {
public boolean add( Object o )
{
boolean result = false;
if( o == null ) {
throw new IllegalArgumentException("Address sets do not support null.");
}
else if( o instanceof String ) {
result = super.add(convertAddress((String)o));
}
else if( o instanceof I... | public class class_name {
public boolean add( Object o )
{
boolean result = false;
if( o == null ) {
throw new IllegalArgumentException("Address sets do not support null.");
}
else if( o instanceof String ) {
result = super.add(convertAddress((String)o)); // depends on control dependency:... |
public class class_name {
private boolean existsIn(String element, String[] a) {
for (String s : a) {
if (element.equals(s)) {
return true;
}
}
return false;
} } | public class class_name {
private boolean existsIn(String element, String[] a) {
for (String s : a) {
if (element.equals(s)) {
return true; // depends on control dependency: [if], data = [none]
}
}
return false;
} } |
public class class_name {
public Planar<T> partialSpectrum(int ...which ) {
Planar<T> out = new Planar<>(getBandType(), which.length);
out.setWidth(width);
out.setHeight(height);
out.setStride(stride);
for (int i = 0; i < which.length; i++) {
out.setBand(i,getBand(which[i]));
}
return out;
} } | public class class_name {
public Planar<T> partialSpectrum(int ...which ) {
Planar<T> out = new Planar<>(getBandType(), which.length);
out.setWidth(width);
out.setHeight(height);
out.setStride(stride);
for (int i = 0; i < which.length; i++) {
out.setBand(i,getBand(which[i])); // depends on control depen... |
public class class_name {
public Service getService(String type, String name) {
for (int i = 0; i < configs.length; i++) {
Provider p = getProvider(i);
Service s = p.getService(type, name);
if (s != null) {
return s;
}
}
return nul... | public class class_name {
public Service getService(String type, String name) {
for (int i = 0; i < configs.length; i++) {
Provider p = getProvider(i);
Service s = p.getService(type, name);
if (s != null) {
return s; // depends on control dependency: [if], da... |
public class class_name {
void addBridgeIfNeeded(DiagnosticPosition pos,
Symbol sym,
ClassSymbol origin,
ListBuffer<JCTree> bridges) {
if (sym.kind == MTH &&
sym.name != names.init &&
(sym.flags() & (PRIVAT... | public class class_name {
void addBridgeIfNeeded(DiagnosticPosition pos,
Symbol sym,
ClassSymbol origin,
ListBuffer<JCTree> bridges) {
if (sym.kind == MTH &&
sym.name != names.init &&
(sym.flags() & (PRIVAT... |
public class class_name {
public synchronized void markCompleted(Piece piece) {
if (this.completedPieces.get(piece.getIndex())) {
return;
}
// A completed piece means that's that much data left to download for
// this torrent.
myTorrentStatistic.addLeft(-piece.size());
this.completedPiec... | public class class_name {
public synchronized void markCompleted(Piece piece) {
if (this.completedPieces.get(piece.getIndex())) {
return; // depends on control dependency: [if], data = [none]
}
// A completed piece means that's that much data left to download for
// this torrent.
myTorrentSt... |
public class class_name {
public Point twice() {
if (this.isInfinity()) {
// Twice identity element (point at infinity) is identity
return this;
}
if (this._y.toBigInteger().signum() == 0) {
// if y1 == 0, then (x1, y1) == (x1, -y1)
// and hence this = -this and t... | public class class_name {
public Point twice() {
if (this.isInfinity()) {
// Twice identity element (point at infinity) is identity
return this; // depends on control dependency: [if], data = [none]
}
if (this._y.toBigInteger().signum() == 0) {
// if y1 == 0, then (x1, y1)... |
public class class_name {
public boolean removeMessageFilter(MessageFilter messageFilter, boolean bFreeFilter)
{
boolean bSuccess = false;
try {
if (((BaseMessageFilter)messageFilter).getRemoteFilterID() == null)
bSuccess = true; // No remote filter to remove
... | public class class_name {
public boolean removeMessageFilter(MessageFilter messageFilter, boolean bFreeFilter)
{
boolean bSuccess = false;
try {
if (((BaseMessageFilter)messageFilter).getRemoteFilterID() == null)
bSuccess = true; // No remote filter to remove
... |
public class class_name {
public LocalDate plusDays(int days) {
if (days == 0) {
return this;
}
long instant = getChronology().days().add(getLocalMillis(), days);
return withLocalMillis(instant);
} } | public class class_name {
public LocalDate plusDays(int days) {
if (days == 0) {
return this; // depends on control dependency: [if], data = [none]
}
long instant = getChronology().days().add(getLocalMillis(), days);
return withLocalMillis(instant);
} } |
public class class_name {
public void auditPIXQueryV3Event(RFC3881EventOutcomeCodes eventOutcome,
String pixManagerUri, String receivingFacility, String receivingApp,
String sendingFacility, String sendingApp,
String hl7MessageId, String hl7QueryParameters,
String[] patientIds,
List<CodedValueType> p... | public class class_name {
public void auditPIXQueryV3Event(RFC3881EventOutcomeCodes eventOutcome,
String pixManagerUri, String receivingFacility, String receivingApp,
String sendingFacility, String sendingApp,
String hl7MessageId, String hl7QueryParameters,
String[] patientIds,
List<CodedValueType> p... |
public class class_name {
public static HttpStatusException of(int statusCode) {
if (statusCode < 0 || statusCode >= 1000) {
final HttpStatus status = HttpStatus.valueOf(statusCode);
if (Flags.verboseExceptions()) {
return new HttpStatusException(status);
} e... | public class class_name {
public static HttpStatusException of(int statusCode) {
if (statusCode < 0 || statusCode >= 1000) {
final HttpStatus status = HttpStatus.valueOf(statusCode);
if (Flags.verboseExceptions()) {
return new HttpStatusException(status); // depends on c... |
public class class_name {
public static URL getSentryApiUrl(URI sentryUri, String projectId) {
try {
String url = sentryUri.toString() + "api/" + projectId + "/store/";
return new URL(url);
} catch (MalformedURLException e) {
throw new IllegalArgumentException("Could... | public class class_name {
public static URL getSentryApiUrl(URI sentryUri, String projectId) {
try {
String url = sentryUri.toString() + "api/" + projectId + "/store/";
return new URL(url); // depends on control dependency: [try], data = [none]
} catch (MalformedURLException e) ... |
public class class_name {
static JapaneseEra from(LocalDate date) {
if (date.isBefore(MEIJI.since)) {
throw new DateTimeException("Date too early: " + date);
}
JapaneseEra[] known = KNOWN_ERAS.get();
for (int i = known.length - 1; i >= 0; i--) {
JapaneseEra era =... | public class class_name {
static JapaneseEra from(LocalDate date) {
if (date.isBefore(MEIJI.since)) {
throw new DateTimeException("Date too early: " + date);
}
JapaneseEra[] known = KNOWN_ERAS.get();
for (int i = known.length - 1; i >= 0; i--) {
JapaneseEra era =... |
public class class_name {
public static ClassLoader getDefaultClassLoader() {
ClassLoader cl = null;
try {
cl = Thread.currentThread().getContextClassLoader();
} catch (Throwable ex) {
// Cannot access thread context ClassLoader - falling back...
}
if (cl... | public class class_name {
public static ClassLoader getDefaultClassLoader() {
ClassLoader cl = null;
try {
cl = Thread.currentThread().getContextClassLoader(); // depends on control dependency: [try], data = [none]
} catch (Throwable ex) {
// Cannot access thread context... |
public class class_name {
public String toQueryString()
{
try
{
StringBuffer result = new StringBuffer();
if ((null != parameters) && !parameters.isEmpty())
{
result.append("?");
Iterator<Entry<String, List<String>>> iterator = parameters.entrySet().it... | public class class_name {
public String toQueryString()
{
try
{
StringBuffer result = new StringBuffer();
if ((null != parameters) && !parameters.isEmpty())
{
result.append("?"); // depends on control dependency: [if], data = [none]
Iterator<Entry<Stri... |
public class class_name {
@Override
public void createMinXFunction() {
createFunction(MIN_X_FUNCTION, new GeometryFunction() {
@Override
public Object execute(GeoPackageGeometryData data) {
Object value = null;
GeometryEnvelope envelope = getEnvelope(data);
if (envelope != null) {
value = env... | public class class_name {
@Override
public void createMinXFunction() {
createFunction(MIN_X_FUNCTION, new GeometryFunction() {
@Override
public Object execute(GeoPackageGeometryData data) {
Object value = null;
GeometryEnvelope envelope = getEnvelope(data);
if (envelope != null) {
value = env... |
public class class_name {
private void fsyncImpl(Result<Boolean> result, FsyncType fsyncType)
{
try {
flushData();
ArrayList<SegmentFsyncCallback> fsyncListeners
= new ArrayList<>(_fsyncListeners);
_fsyncListeners.clear();
Result<Boolean> resultNext = result.then((v,... | public class class_name {
private void fsyncImpl(Result<Boolean> result, FsyncType fsyncType)
{
try {
flushData(); // depends on control dependency: [try], data = [none]
ArrayList<SegmentFsyncCallback> fsyncListeners
= new ArrayList<>(_fsyncListeners);
_fsyncListeners.clear(); //... |
public class class_name {
public Matrix getH () {
Matrix X = new Matrix(m,n);
double[][] H = X.getArray();
for (int i = 0; i < m; i++) {
for (int j = 0; j < n; j++) {
if (i >= j) {
H[i][j] = QR[i][j];
} else {
H[i][j] = 0.0;
}
}
}
return X;
} } | public class class_name {
public Matrix getH () {
Matrix X = new Matrix(m,n);
double[][] H = X.getArray();
for (int i = 0; i < m; i++) {
for (int j = 0; j < n; j++) {
if (i >= j) {
H[i][j] = QR[i][j]; // depends on control dependency: [if], data = [none]
} else {
H[i][j] = 0.0; // depends on... |
public class class_name {
private static void addControlsRecursive(Interaction inter, Set<Interaction> set)
{
for (Control ctrl : inter.getControlledOf())
{
set.add(ctrl);
addControlsRecursive(ctrl, set);
}
} } | public class class_name {
private static void addControlsRecursive(Interaction inter, Set<Interaction> set)
{
for (Control ctrl : inter.getControlledOf())
{
set.add(ctrl); // depends on control dependency: [for], data = [ctrl]
addControlsRecursive(ctrl, set); // depends on control dependency: [for], data = ... |
public class class_name {
public void doFilter(final ServletRequest req, final ServletResponse res, final FilterChain chain)
throws IOException, ServletException {
final HttpServletRequest request = (HttpServletRequest) req;
final HttpServletResponse response = (HttpServletResponse) res;
try {
... | public class class_name {
public void doFilter(final ServletRequest req, final ServletResponse res, final FilterChain chain)
throws IOException, ServletException {
final HttpServletRequest request = (HttpServletRequest) req;
final HttpServletResponse response = (HttpServletResponse) res;
try {
... |
public class class_name {
@Action(name = "Clone Virtual Machine",
outputs = {
@Output(Outputs.RETURN_CODE),
@Output(Outputs.RETURN_RESULT),
@Output(Outputs.EXCEPTION)
},
responses = {
@Response(text = Ou... | public class class_name {
@Action(name = "Clone Virtual Machine",
outputs = {
@Output(Outputs.RETURN_CODE),
@Output(Outputs.RETURN_RESULT),
@Output(Outputs.EXCEPTION)
},
responses = {
@Response(text = Ou... |
public class class_name {
public Set<String> getParents(String pid) throws MelcoeXacmlException {
logger.debug("Obtaining parents for: {}", pid);
Set<String> parentPIDs = new HashSet<String>();
if (pid.equalsIgnoreCase(Constants.FEDORA_REPOSITORY_PID.uri)) {
return parentPIDs;
... | public class class_name {
public Set<String> getParents(String pid) throws MelcoeXacmlException {
logger.debug("Obtaining parents for: {}", pid);
Set<String> parentPIDs = new HashSet<String>();
if (pid.equalsIgnoreCase(Constants.FEDORA_REPOSITORY_PID.uri)) {
return parentPIDs;
... |
public class class_name {
public static String byteBufferToString (final ByteBuffer buffer) {
if (buffer == null) return "null";
final int numberOfBytes = buffer.limit();
final StringBuilder sb = new StringBuilder();
buffer.position(0);
int value;
for (int i ... | public class class_name {
public static String byteBufferToString (final ByteBuffer buffer) {
if (buffer == null) return "null";
final int numberOfBytes = buffer.limit();
final StringBuilder sb = new StringBuilder();
buffer.position(0);
int value;
for (int i ... |
public class class_name {
public static float noise1(float x) {
int bx0, bx1;
float rx0, rx1, sx, t, u, v;
if (start) {
start = false;
init();
}
t = x + N;
bx0 = ((int)t) & BM;
bx1 = (bx0+1) & BM;
rx0 = t - (int)t;
rx1 = ... | public class class_name {
public static float noise1(float x) {
int bx0, bx1;
float rx0, rx1, sx, t, u, v;
if (start) {
start = false; // depends on control dependency: [if], data = [none]
init(); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
protected void prepareTypeCondition(
CmsUUID projectId,
int type,
int mode,
StringBuffer conditions,
List<Object> params) {
if (type != CmsDriverManager.READ_IGNORE_TYPE) {
if ((mode & CmsDriverManager.READMODE_EXCLUDE_TYPE) > 0) {
... | public class class_name {
protected void prepareTypeCondition(
CmsUUID projectId,
int type,
int mode,
StringBuffer conditions,
List<Object> params) {
if (type != CmsDriverManager.READ_IGNORE_TYPE) {
if ((mode & CmsDriverManager.READMODE_EXCLUDE_TYPE) > 0) {
... |
public class class_name {
@Override
public synchronized void recordRemovedEvaluator(final String id) {
if (this.fileSystem != null && this.changeLogLocation != null) {
final String entry = REMOVE_FLAG + id + System.lineSeparator();
this.logContainerChange(entry);
}
} } | public class class_name {
@Override
public synchronized void recordRemovedEvaluator(final String id) {
if (this.fileSystem != null && this.changeLogLocation != null) {
final String entry = REMOVE_FLAG + id + System.lineSeparator();
this.logContainerChange(entry); // depends on control dependency: [if... |
public class class_name {
@Override
public void paint(final RenderContext renderContext) {
super.paint(renderContext);
UIContext uic = UIContextHolder.getCurrent();
if (LOG.isDebugEnabled()) {
UIContextDebugWrapper debugWrapper = new UIContextDebugWrapper(uic);
LOG.debug("Session usage after paint:\n" + ... | public class class_name {
@Override
public void paint(final RenderContext renderContext) {
super.paint(renderContext);
UIContext uic = UIContextHolder.getCurrent();
if (LOG.isDebugEnabled()) {
UIContextDebugWrapper debugWrapper = new UIContextDebugWrapper(uic);
LOG.debug("Session usage after paint:\n" + ... |
public class class_name {
private UiSelector buildSelector(int selectorId, Object selectorValue) {
if (selectorId == SELECTOR_CHILD || selectorId == SELECTOR_PARENT) {
throw new UnsupportedOperationException();
// selector.getLastSubSelector().mSelectorAttributes.put(selectorId, selector... | public class class_name {
private UiSelector buildSelector(int selectorId, Object selectorValue) {
if (selectorId == SELECTOR_CHILD || selectorId == SELECTOR_PARENT) {
throw new UnsupportedOperationException();
// selector.getLastSubSelector().mSelectorAttributes.put(selectorId, selector... |
public class class_name {
@Override
public void onDown(HumanInputEvent<?> event) {
if (dragging && leftWidget) {
// mouse was moved outside of widget
doSelect(event);
} else if (!isRightMouseButton(event)) {
// no point trying to select when there is no active layer
dragging = true;
leftWidget = f... | public class class_name {
@Override
public void onDown(HumanInputEvent<?> event) {
if (dragging && leftWidget) {
// mouse was moved outside of widget
doSelect(event); // depends on control dependency: [if], data = [none]
} else if (!isRightMouseButton(event)) {
// no point trying to select when there is... |
public class class_name {
public final EObject ruleXSwitchExpression() throws RecognitionException {
EObject current = null;
Token otherlv_1=null;
Token otherlv_2=null;
Token otherlv_4=null;
Token otherlv_6=null;
Token otherlv_8=null;
Token otherlv_10=null;
... | public class class_name {
public final EObject ruleXSwitchExpression() throws RecognitionException {
EObject current = null;
Token otherlv_1=null;
Token otherlv_2=null;
Token otherlv_4=null;
Token otherlv_6=null;
Token otherlv_8=null;
Token otherlv_10=null;
... |
public class class_name {
private static String makeBaseUri(URL url) {
String r = url.getProtocol().toLowerCase() + "://" +
url.getHost().toLowerCase();
if ((url.getProtocol().equalsIgnoreCase("http") &&
url.getPort() != -1 && url.getPort() != 80) ||
(url.getProtocol().equalsIgnoreCase("https") &&
... | public class class_name {
private static String makeBaseUri(URL url) {
String r = url.getProtocol().toLowerCase() + "://" +
url.getHost().toLowerCase();
if ((url.getProtocol().equalsIgnoreCase("http") &&
url.getPort() != -1 && url.getPort() != 80) ||
(url.getProtocol().equalsIgnoreCase("https") &&
... |
public class class_name {
public String createFieldTypeSignature(VariableElement variable) {
if (!hasGenericSignature(variable.asType())) {
return null;
}
StringBuilder sb = new StringBuilder();
genTypeSignature(variable.asType(), sb);
return sb.toString();
} } | public class class_name {
public String createFieldTypeSignature(VariableElement variable) {
if (!hasGenericSignature(variable.asType())) {
return null; // depends on control dependency: [if], data = [none]
}
StringBuilder sb = new StringBuilder();
genTypeSignature(variable.asType(), sb);
ret... |
public class class_name {
public MultiNote[] normalize() {
Hashtable splitter = new Hashtable();
for (int i=0; i<m_notes.size(); i++) {
Note note = (Note)m_notes.elementAt(i);
Short key = note.getStrictDuration();
if (splitter.containsKey(key))
((Vector)splitter.get(key)).addElement(note);... | public class class_name {
public MultiNote[] normalize() {
Hashtable splitter = new Hashtable();
for (int i=0; i<m_notes.size(); i++) {
Note note = (Note)m_notes.elementAt(i);
Short key = note.getStrictDuration();
if (splitter.containsKey(key))
((Vector)splitter.get(key)).addElement(note);... |
public class class_name {
public Logging withClusterLogging(LogSetup... clusterLogging) {
if (this.clusterLogging == null) {
setClusterLogging(new java.util.ArrayList<LogSetup>(clusterLogging.length));
}
for (LogSetup ele : clusterLogging) {
this.clusterLogging.add(ele);... | public class class_name {
public Logging withClusterLogging(LogSetup... clusterLogging) {
if (this.clusterLogging == null) {
setClusterLogging(new java.util.ArrayList<LogSetup>(clusterLogging.length)); // depends on control dependency: [if], data = [none]
}
for (LogSetup ele : clust... |
public class class_name {
public void readHeader(InputStream in) throws IOException {
CRC32 crc = new CRC32();
crc.reset();
if (!testGzipMagic(in, crc)) {
throw new NoGzipMagicException();
}
this.length += 2;
if (readByte(in, crc) != Deflater.DEFLATED) {
... | public class class_name {
public void readHeader(InputStream in) throws IOException {
CRC32 crc = new CRC32();
crc.reset();
if (!testGzipMagic(in, crc)) {
throw new NoGzipMagicException();
}
this.length += 2;
if (readByte(in, crc) != Deflater.DEFLATED) {
... |
public class class_name {
private boolean aquireFileLock() {
// PRE:
//
// raf is never null and is never closed upon entry.
//
// Rhetorical question to self: How does one tell if a RandomAccessFile
// is closed, short of invoking an operation and getting an IOExceptio... | public class class_name {
private boolean aquireFileLock() {
// PRE:
//
// raf is never null and is never closed upon entry.
//
// Rhetorical question to self: How does one tell if a RandomAccessFile
// is closed, short of invoking an operation and getting an IOExceptio... |
public class class_name {
protected double getFerrySpeed(ReaderWay way) {
long duration = 0;
try {
// During the reader process we have converted the duration value into a artificial tag called "duration:seconds".
duration = Long.parseLong(way.getTag("duration:seconds"));
... | public class class_name {
protected double getFerrySpeed(ReaderWay way) {
long duration = 0;
try {
// During the reader process we have converted the duration value into a artificial tag called "duration:seconds".
duration = Long.parseLong(way.getTag("duration:seconds")); // de... |
public class class_name {
public FileSystem getProxiedFileSystem(State properties, AuthType authType, String authPath, String uri, final Configuration conf)
throws IOException, InterruptedException, URISyntaxException {
Preconditions.checkArgument(StringUtils.isNotBlank(properties.getProp(ConfigurationKeys.F... | public class class_name {
public FileSystem getProxiedFileSystem(State properties, AuthType authType, String authPath, String uri, final Configuration conf)
throws IOException, InterruptedException, URISyntaxException {
Preconditions.checkArgument(StringUtils.isNotBlank(properties.getProp(ConfigurationKeys.F... |
public class class_name {
public void marshall(S3Destination s3Destination, ProtocolMarshaller protocolMarshaller) {
if (s3Destination == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(s3Destination... | public class class_name {
public void marshall(S3Destination s3Destination, ProtocolMarshaller protocolMarshaller) {
if (s3Destination == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(s3Destination... |
public class class_name {
public void setDay(Day d)
{
if (m_day != null)
{
m_parentCalendar.removeHoursFromDay(this);
}
m_day = d;
m_parentCalendar.attachHoursToDay(this);
} } | public class class_name {
public void setDay(Day d)
{
if (m_day != null)
{
m_parentCalendar.removeHoursFromDay(this); // depends on control dependency: [if], data = [none]
}
m_day = d;
m_parentCalendar.attachHoursToDay(this);
} } |
public class class_name {
public Element build(SVGPlot svgp, double x, double y, double width, double height) {
Element barchart = svgp.svgElement(SVGConstants.SVG_G_TAG);
// TODO: use style library for colors!
Element bar = svgp.svgRect(x, y, width, height);
bar.setAttribute(SVGConstants.SVG_FILL_ATT... | public class class_name {
public Element build(SVGPlot svgp, double x, double y, double width, double height) {
Element barchart = svgp.svgElement(SVGConstants.SVG_G_TAG);
// TODO: use style library for colors!
Element bar = svgp.svgRect(x, y, width, height);
bar.setAttribute(SVGConstants.SVG_FILL_ATT... |
public class class_name {
@Override
@Pure
public RoadPolyline getMapElementAt(int index) {
final Iterator<RoadSegment> segments = this.roadNetwork.iterator();
for (int i = 0; i < index - 1 && segments.hasNext(); ++i) {
segments.next();
}
if (segments.hasNext()) {
return (RoadPolyline) segments.next();
... | public class class_name {
@Override
@Pure
public RoadPolyline getMapElementAt(int index) {
final Iterator<RoadSegment> segments = this.roadNetwork.iterator();
for (int i = 0; i < index - 1 && segments.hasNext(); ++i) {
segments.next(); // depends on control dependency: [for], data = [none]
}
if (segments.... |
public class class_name {
public FieldDescriptor getFieldDescriptorForPath(String aPath, Map pathHints)
{
ArrayList desc = getAttributeDescriptorsForPath(aPath, pathHints);
FieldDescriptor fld = null;
Object temp;
if (!desc.isEmpty())
{
temp = desc.get(d... | public class class_name {
public FieldDescriptor getFieldDescriptorForPath(String aPath, Map pathHints)
{
ArrayList desc = getAttributeDescriptorsForPath(aPath, pathHints);
FieldDescriptor fld = null;
Object temp;
if (!desc.isEmpty())
{
temp = desc.get(d... |
public class class_name {
public boolean add(XEvent event) {
try {
events.append(event);
} catch (IOException e) {
e.printStackTrace();
return false;
}
return true;
} } | public class class_name {
public boolean add(XEvent event) {
try {
events.append(event); // depends on control dependency: [try], data = [none]
} catch (IOException e) {
e.printStackTrace();
return false;
} // depends on control dependency: [catch], data = [none]
return true;
} } |
public class class_name {
public EClass getIfcReinforcingElement() {
if (ifcReinforcingElementEClass == null) {
ifcReinforcingElementEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(435);
}
return ifcReinforcingElementEClass;
} } | public class class_name {
public EClass getIfcReinforcingElement() {
if (ifcReinforcingElementEClass == null) {
ifcReinforcingElementEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(435);
// depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public synchronized Collection<ContainerShutdownDescriptor> removeShutdownDescriptors(GavLabel gavLabel) {
List<ContainerShutdownDescriptor> descriptors;
if (gavLabel != null) {
descriptors = removeFromPomLabelMap(gavLabel);
removeFromPerContainerMap(de... | public class class_name {
public synchronized Collection<ContainerShutdownDescriptor> removeShutdownDescriptors(GavLabel gavLabel) {
List<ContainerShutdownDescriptor> descriptors;
if (gavLabel != null) {
descriptors = removeFromPomLabelMap(gavLabel); // depends on control dependency: [if], ... |
public class class_name {
public ClassTypeSignature getTypeSignature() {
if (typeSignatureStr == null) {
return null;
}
if (typeSignature == null) {
try {
typeSignature = ClassTypeSignature.parse(typeSignatureStr, this);
typeSignature.setS... | public class class_name {
public ClassTypeSignature getTypeSignature() {
if (typeSignatureStr == null) {
return null; // depends on control dependency: [if], data = [none]
}
if (typeSignature == null) {
try {
typeSignature = ClassTypeSignature.parse(typeS... |
public class class_name {
private void parseSegmentStartPayload(WsByteBuffer contextBuffer)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "parseSegmentStartPayload", contextBuffer);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) JFapUtils.debu... | public class class_name {
private void parseSegmentStartPayload(WsByteBuffer contextBuffer)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "parseSegmentStartPayload", contextBuffer);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) JFapUtils.debu... |
public class class_name {
public static Chunk getChunk(Properties attributes) {
Chunk chunk = new Chunk();
chunk.setFont(FontFactory.getFont(attributes));
String value;
value = attributes.getProperty(ElementTags.ITEXT);
if (value != null) {
chunk.append(value);
}
value = attributes.getProperty(Eleme... | public class class_name {
public static Chunk getChunk(Properties attributes) {
Chunk chunk = new Chunk();
chunk.setFont(FontFactory.getFont(attributes));
String value;
value = attributes.getProperty(ElementTags.ITEXT);
if (value != null) {
chunk.append(value); // depends on control dependency: [if], da... |
public class class_name {
public DataSink<T> output(OutputFormat<T> outputFormat) {
Validate.notNull(outputFormat);
// configure the type if needed
if (outputFormat instanceof InputTypeConfigurable) {
((InputTypeConfigurable) outputFormat).setInputType(this.type);
}
DataSink<T> sink = new DataSink<T... | public class class_name {
public DataSink<T> output(OutputFormat<T> outputFormat) {
Validate.notNull(outputFormat);
// configure the type if needed
if (outputFormat instanceof InputTypeConfigurable) {
((InputTypeConfigurable) outputFormat).setInputType(this.type); // depends on control dependency: [if], da... |
public class class_name {
protected static String qualifiedNameFromIdAndContext(String name, String context) {
if (!name.contains(".")) {
return context + "." + name;
}
return name;
} } | public class class_name {
protected static String qualifiedNameFromIdAndContext(String name, String context) {
if (!name.contains(".")) {
return context + "." + name; // depends on control dependency: [if], data = [none]
}
return name;
} } |
public class class_name {
private void processLibraryJarPersistenceXml(JPAApplInfo applInfo, Container libContainer,
String archiveName, String rootPrefix,
JPAPuScope scope, ClassLoader classLaoder) {
final boolea... | public class class_name {
private void processLibraryJarPersistenceXml(JPAApplInfo applInfo, Container libContainer,
String archiveName, String rootPrefix,
JPAPuScope scope, ClassLoader classLaoder) {
final boolea... |
public class class_name {
public ClientResponseImpl shouldAccept(String name, AuthSystem.AuthUser user,
final StoredProcedureInvocation task,
final Procedure catProc) {
if (user.isAuthEnabled()) {
InvocationPermissionPolicy deniedP... | public class class_name {
public ClientResponseImpl shouldAccept(String name, AuthSystem.AuthUser user,
final StoredProcedureInvocation task,
final Procedure catProc) {
if (user.isAuthEnabled()) {
InvocationPermissionPolicy deniedP... |
public class class_name {
@Override
public SchemaManager getSchemaManager(Map<String, Object> puProperties)
{
if (schemaManager == null)
{
initializePropertyReader();
setExternalProperties(puProperties);
schemaManager = new CouchbaseSchemaManager(CouchbaseCli... | public class class_name {
@Override
public SchemaManager getSchemaManager(Map<String, Object> puProperties)
{
if (schemaManager == null)
{
initializePropertyReader(); // depends on control dependency: [if], data = [none]
setExternalProperties(puProperties); // depends on... |
public class class_name {
protected void __setOutput(String path) {
try {
w_ = new BufferedWriter(new FileWriter(path));
} catch (Exception e) {
throw new FastRuntimeException(e.getMessage());
}
} } | public class class_name {
protected void __setOutput(String path) {
try {
w_ = new BufferedWriter(new FileWriter(path)); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
throw new FastRuntimeException(e.getMessage());
} // depends on control... |
public class class_name {
public FunctionDescr function( PackageDescrBuilder pkg ) throws RecognitionException {
FunctionDescrBuilder function = null;
try {
function = helper.start( pkg,
FunctionDescrBuilder.class,
nu... | public class class_name {
public FunctionDescr function( PackageDescrBuilder pkg ) throws RecognitionException {
FunctionDescrBuilder function = null;
try {
function = helper.start( pkg,
FunctionDescrBuilder.class,
nu... |
public class class_name {
@Override
public void configureConstraintWeight(Rule rule, SimpleScore constraintWeight) {
super.configureConstraintWeight(rule, constraintWeight);
BiConsumer<RuleContext, Integer> matchExecutor;
if (constraintWeight.equals(SimpleScore.ZERO)) {
matchExe... | public class class_name {
@Override
public void configureConstraintWeight(Rule rule, SimpleScore constraintWeight) {
super.configureConstraintWeight(rule, constraintWeight);
BiConsumer<RuleContext, Integer> matchExecutor;
if (constraintWeight.equals(SimpleScore.ZERO)) {
matchExe... |
public class class_name {
public void setOutboundInterface(InetSocketAddress inetSocketAddress) {
if(inetSocketAddress == null) {
throw new NullPointerException("outbound Interface param shouldn't be null");
}
String address = inetSocketAddress.getAddress().getHostAddress()
+ ":" + inetSocketAddress.g... | public class class_name {
public void setOutboundInterface(InetSocketAddress inetSocketAddress) {
if(inetSocketAddress == null) {
throw new NullPointerException("outbound Interface param shouldn't be null");
}
String address = inetSocketAddress.getAddress().getHostAddress()
+ ":" + inetSocketAddress.g... |
public class class_name {
public void setDedicatedIpPools(java.util.Collection<String> dedicatedIpPools) {
if (dedicatedIpPools == null) {
this.dedicatedIpPools = null;
return;
}
this.dedicatedIpPools = new java.util.ArrayList<String>(dedicatedIpPools);
} } | public class class_name {
public void setDedicatedIpPools(java.util.Collection<String> dedicatedIpPools) {
if (dedicatedIpPools == null) {
this.dedicatedIpPools = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public boolean process(MessageEnvelope envelope) {
if (this.event == null) {
return false;
}
boolean triggered = this.event.verifyEventCondition(envelope);
if (triggered) {
beforeReply(envelope);
if (this.reply != null) {
this.reply.reply(envelope);
}
afterReply(en... | public class class_name {
public boolean process(MessageEnvelope envelope) {
if (this.event == null) {
return false; // depends on control dependency: [if], data = [none]
}
boolean triggered = this.event.verifyEventCondition(envelope);
if (triggered) {
beforeReply(envelope); // depends on control depend... |
public class class_name {
public byte[] getBytes() {
if (token != null) {
try {
return token.getBytes();
} catch (Exception e) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "Exception occurred getting ... | public class class_name {
public byte[] getBytes() {
if (token != null) {
try {
return token.getBytes(); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
... |
public class class_name {
public void close() {
for (Entry<String, OResourcePool<String, DB>> pool : pools.entrySet()) {
for (DB db : pool.getValue().getResources()) {
pool.getValue().close();
try {
OLogManager.instance().debug(this, "Closing pooled database '%s'...", db.getNam... | public class class_name {
public void close() {
for (Entry<String, OResourcePool<String, DB>> pool : pools.entrySet()) {
for (DB db : pool.getValue().getResources()) {
pool.getValue().close();
// depends on control dependency: [for], data = [none]
try {
OLogManager.instance().d... |
public class class_name {
public void setAutoVerifiedAttributes(java.util.Collection<String> autoVerifiedAttributes) {
if (autoVerifiedAttributes == null) {
this.autoVerifiedAttributes = null;
return;
}
this.autoVerifiedAttributes = new java.util.ArrayList<String>(autoV... | public class class_name {
public void setAutoVerifiedAttributes(java.util.Collection<String> autoVerifiedAttributes) {
if (autoVerifiedAttributes == null) {
this.autoVerifiedAttributes = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency... |
public class class_name {
public DescribeSessionsRequest withFilters(SessionFilter... filters) {
if (this.filters == null) {
setFilters(new com.amazonaws.internal.SdkInternalList<SessionFilter>(filters.length));
}
for (SessionFilter ele : filters) {
this.filters.add(ele)... | public class class_name {
public DescribeSessionsRequest withFilters(SessionFilter... filters) {
if (this.filters == null) {
setFilters(new com.amazonaws.internal.SdkInternalList<SessionFilter>(filters.length)); // depends on control dependency: [if], data = [none]
}
for (SessionFil... |
public class class_name {
public void marshall(DescribeStreamProcessorRequest describeStreamProcessorRequest, ProtocolMarshaller protocolMarshaller) {
if (describeStreamProcessorRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(DescribeStreamProcessorRequest describeStreamProcessorRequest, ProtocolMarshaller protocolMarshaller) {
if (describeStreamProcessorRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public List<IUserLayoutNodeDescription> getFavoriteCollections(IUserLayout userLayout) {
if (null == userLayout) {
throw new IllegalArgumentException(
"Cannot get favorites collections from a null userLayout");
}
logger.trace("Extracti... | public class class_name {
public List<IUserLayoutNodeDescription> getFavoriteCollections(IUserLayout userLayout) {
if (null == userLayout) {
throw new IllegalArgumentException(
"Cannot get favorites collections from a null userLayout");
}
logger.trace("Extracti... |
public class class_name {
public void marshall(DataFormatConversionConfiguration dataFormatConversionConfiguration, ProtocolMarshaller protocolMarshaller) {
if (dataFormatConversionConfiguration == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... | public class class_name {
public void marshall(DataFormatConversionConfiguration dataFormatConversionConfiguration, ProtocolMarshaller protocolMarshaller) {
if (dataFormatConversionConfiguration == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... |
public class class_name {
public final EObject ruleOptionValue() throws RecognitionException {
EObject current = null;
Token lv_key_0_0=null;
Token otherlv_1=null;
Token otherlv_3=null;
AntlrDatatypeRuleToken lv_value_2_0 = null;
enterRule();
tr... | public class class_name {
public final EObject ruleOptionValue() throws RecognitionException {
EObject current = null;
Token lv_key_0_0=null;
Token otherlv_1=null;
Token otherlv_3=null;
AntlrDatatypeRuleToken lv_value_2_0 = null;
enterRule();
tr... |
public class class_name {
public void start() {
if (workers != null) throw new UnsupportedOperationException("Please shutdown connector!");
if (LOGGER.isLoggable(Level.INFO))
LOGGER.info("Starting " + name + " with " + config.getWorkerCount() + " workers");
handlers = new Co... | public class class_name {
public void start() {
if (workers != null) throw new UnsupportedOperationException("Please shutdown connector!");
if (LOGGER.isLoggable(Level.INFO))
LOGGER.info("Starting " + name + " with " + config.getWorkerCount() + " workers");
handlers = new Co... |
public class class_name {
public <R extends Runnable> AbstractModule run(final Class<R> klass) {
Closure initializer = new Closure() {
@Override
public void exec(Object... args) {
String m = "exec(Object...)";
try {
m = "creating task ... | public class class_name {
public <R extends Runnable> AbstractModule run(final Class<R> klass) {
Closure initializer = new Closure() {
@Override
public void exec(Object... args) {
String m = "exec(Object...)";
try {
m = "creating task ... |
public class class_name {
private static boolean isRpcTimeout(Annotation[] annotations) {
for (Annotation annotation : annotations) {
if (annotation.annotationType().equals(RpcTimeout.class)) {
return true;
}
}
return false;
} } | public class class_name {
private static boolean isRpcTimeout(Annotation[] annotations) {
for (Annotation annotation : annotations) {
if (annotation.annotationType().equals(RpcTimeout.class)) {
return true; // depends on control dependency: [if], data = [none]
}
}
return false;
} } |
public class class_name {
public static byte[] fileAsByteArray(File file) {
try {
return inputStreamAsByteArray(new FileInputStream(file));
} catch(FileNotFoundException e) {
throw LOG.fileNotFoundException(file.getAbsolutePath(), e);
}
} } | public class class_name {
public static byte[] fileAsByteArray(File file) {
try {
return inputStreamAsByteArray(new FileInputStream(file)); // depends on control dependency: [try], data = [none]
} catch(FileNotFoundException e) {
throw LOG.fileNotFoundException(file.getAbsolutePath(), e);
} // ... |
public class class_name {
@Override
public List<URL> getJarFileUrls() {
List<URL> urls = new ArrayList<>();
for (String url : persistenceUnitXml.getJarFile()) {
try {
urls.add(new URL(url));
} catch (MalformedURLException e) {
LOGGER.error("Ca... | public class class_name {
@Override
public List<URL> getJarFileUrls() {
List<URL> urls = new ArrayList<>();
for (String url : persistenceUnitXml.getJarFile()) {
try {
urls.add(new URL(url)); // depends on control dependency: [try], data = [none]
} catch (Malf... |
public class class_name {
public String jsonToXml(String json){
String xml = "";
// 處理直接以陣列開頭的JSON,並指定給予 row 的 tag
if ( "[".equals( json.substring(0,1) ) ){
xml = XML.toString(new JSONArray(json), "row");
}else{
xml = XML.toString(new JSONObject(json));
}... | public class class_name {
public String jsonToXml(String json){
String xml = "";
// 處理直接以陣列開頭的JSON,並指定給予 row 的 tag
if ( "[".equals( json.substring(0,1) ) ){
xml = XML.toString(new JSONArray(json), "row"); // depends on control dependency: [if], data = [none]
}else{
... |
public class class_name {
public static String subPath(String rootDir, File file) {
try {
return subPath(rootDir, file.getCanonicalPath());
} catch (IOException e) {
throw new IORuntimeException(e);
}
} } | public class class_name {
public static String subPath(String rootDir, File file) {
try {
return subPath(rootDir, file.getCanonicalPath());
// depends on control dependency: [try], data = [none]
} catch (IOException e) {
throw new IORuntimeException(e);
}
// depends on control dependency: [catch], da... |
public class class_name {
public void orizzonte5( double delta, int quadrata, double beta, double alfa, RandomIter elevImageIterator,
WritableRaster curvatureImage, int[][] shadow ) {
int rows = curvatureImage.getHeight();
int cols = curvatureImage.getWidth();
/*====================... | public class class_name {
public void orizzonte5( double delta, int quadrata, double beta, double alfa, RandomIter elevImageIterator,
WritableRaster curvatureImage, int[][] shadow ) {
int rows = curvatureImage.getHeight();
int cols = curvatureImage.getWidth();
/*====================... |
public class class_name {
public boolean remove(Object key, Object value) {
final Object curValue = get(key);
if (!Objects.equals(curValue, value) || (curValue == null && !containsKey(key))) {
return false;
}
remove(key);
return true;
} } | public class class_name {
public boolean remove(Object key, Object value) {
final Object curValue = get(key);
if (!Objects.equals(curValue, value) || (curValue == null && !containsKey(key))) {
return false;
// depends on control dependency: [if], data = [none]
}
rem... |
public class class_name {
public static List<InetSocketAddress> getMasterRpcAddresses(AlluxioConfiguration conf) {
// First check whether rpc addresses are explicitly configured.
if (conf.isSet(PropertyKey.MASTER_RPC_ADDRESSES)) {
return parseInetSocketAddresses(conf.getList(PropertyKey.MASTER_RPC_ADDRES... | public class class_name {
public static List<InetSocketAddress> getMasterRpcAddresses(AlluxioConfiguration conf) {
// First check whether rpc addresses are explicitly configured.
if (conf.isSet(PropertyKey.MASTER_RPC_ADDRESSES)) {
return parseInetSocketAddresses(conf.getList(PropertyKey.MASTER_RPC_ADDRES... |
public class class_name {
private void onEventListenerComponentAdded(ComponentDescriptorAddedEvent event, ComponentManager componentManager,
ComponentDescriptor<EventListener> descriptor)
{
try {
EventListener eventListener = componentManager.getInstance(EventListener.class, event.getRo... | public class class_name {
private void onEventListenerComponentAdded(ComponentDescriptorAddedEvent event, ComponentManager componentManager,
ComponentDescriptor<EventListener> descriptor)
{
try {
EventListener eventListener = componentManager.getInstance(EventListener.class, event.getRo... |
public class class_name {
private void onPopLevelProgress(Object source)
{
DefaultJobProgressStep parent = this.currentStep.getParent();
if (parent == null) {
LOGGER.warn("PopLevelProgressEvent was fired too many times. Don't forget "
+ "to match each PopLevelProgressEv... | public class class_name {
private void onPopLevelProgress(Object source)
{
DefaultJobProgressStep parent = this.currentStep.getParent();
if (parent == null) {
LOGGER.warn("PopLevelProgressEvent was fired too many times. Don't forget "
+ "to match each PopLevelProgressEv... |
public class class_name {
public void combine(CRFClassifier<IN> crf, double weight) {
Timing timer = new Timing();
// Check the CRFClassifiers are compatible
if (!this.pad.equals(crf.pad)) {
throw new RuntimeException("Incompatible CRFClassifier: pad does not match");
}
if (this.windo... | public class class_name {
public void combine(CRFClassifier<IN> crf, double weight) {
Timing timer = new Timing();
// Check the CRFClassifiers are compatible
if (!this.pad.equals(crf.pad)) {
throw new RuntimeException("Incompatible CRFClassifier: pad does not match");
}
if (this.windo... |
public class class_name {
public void setLoadBalancerPorts(java.util.Collection<Integer> loadBalancerPorts) {
if (loadBalancerPorts == null) {
this.loadBalancerPorts = null;
return;
}
this.loadBalancerPorts = new com.amazonaws.internal.SdkInternalList<Integer>(loadBalan... | public class class_name {
public void setLoadBalancerPorts(java.util.Collection<Integer> loadBalancerPorts) {
if (loadBalancerPorts == null) {
this.loadBalancerPorts = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [non... |
public class class_name {
public JobScheduleGetHeaders withLastModified(DateTime lastModified) {
if (lastModified == null) {
this.lastModified = null;
} else {
this.lastModified = new DateTimeRfc1123(lastModified);
}
return this;
} } | public class class_name {
public JobScheduleGetHeaders withLastModified(DateTime lastModified) {
if (lastModified == null) {
this.lastModified = null; // depends on control dependency: [if], data = [none]
} else {
this.lastModified = new DateTimeRfc1123(lastModified); // depends... |
public class class_name {
public boolean add(T element, Class<?> accessibleClass) {
boolean added = false;
while (accessibleClass != null && accessibleClass != this.baseClass) {
added |= this.addSingle(element, accessibleClass);
for (Class<?> interf : accessibleClass.getInterfaces()) {
this.addSingle(e... | public class class_name {
public boolean add(T element, Class<?> accessibleClass) {
boolean added = false;
while (accessibleClass != null && accessibleClass != this.baseClass) {
added |= this.addSingle(element, accessibleClass); // depends on control dependency: [while], data = [none]
for (Class<?> interf ... |
public class class_name {
public void submitMetrics(MetricsRecord metricsRecord) {
List<PoolMetadata> poolMetadatas = getPoolMetadataList();
PoolFairnessCalculator.calculateFairness(poolMetadatas, metricsRecord);
for (SchedulerForType scheduler: schedulersForTypes.values()) {
scheduler.submitMetrics(... | public class class_name {
public void submitMetrics(MetricsRecord metricsRecord) {
List<PoolMetadata> poolMetadatas = getPoolMetadataList();
PoolFairnessCalculator.calculateFairness(poolMetadatas, metricsRecord);
for (SchedulerForType scheduler: schedulersForTypes.values()) {
scheduler.submitMetrics(... |
public class class_name {
public boolean isSet(String propName) {
if (propName.equals("method")) {
return isSetMethod();
}
if (propName.equals("object")) {
return isSetObject();
}
if (propName.equals("attribute")) {
return isSetAttribute();
... | public class class_name {
public boolean isSet(String propName) {
if (propName.equals("method")) {
return isSetMethod(); // depends on control dependency: [if], data = [none]
}
if (propName.equals("object")) {
return isSetObject(); // depends on control dependency: [if],... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.