code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
@Override
public byte[] call(final byte[] memento) {
LOG.log(Level.FINE, "Task started: sleep for: {0} msec.", this.delay);
final long ts = System.currentTimeMillis();
for (long period = this.delay; period > 0; period -= System.currentTimeMillis() - ts) {
try {
Thr... | public class class_name {
@Override
public byte[] call(final byte[] memento) {
LOG.log(Level.FINE, "Task started: sleep for: {0} msec.", this.delay);
final long ts = System.currentTimeMillis();
for (long period = this.delay; period > 0; period -= System.currentTimeMillis() - ts) {
try {
Thr... |
public class class_name {
public void backoffActualHighWatermark() {
JsonElement lowWatermark = this.workUnit.getLowWatermark();
if (lowWatermark == null) {
return;
}
setProp(ConfigurationKeys.WORK_UNIT_STATE_ACTUAL_HIGH_WATER_MARK_KEY, lowWatermark.toString());
} } | public class class_name {
public void backoffActualHighWatermark() {
JsonElement lowWatermark = this.workUnit.getLowWatermark();
if (lowWatermark == null) {
return; // depends on control dependency: [if], data = [none]
}
setProp(ConfigurationKeys.WORK_UNIT_STATE_ACTUAL_HIGH_WATER_MARK_KEY, lowWat... |
public class class_name {
private static void adjustQuality(Map<String, Float> pFormatQuality, String pFormat, float pFactor) {
Float oldValue = pFormatQuality.get(pFormat);
if (oldValue != null) {
pFormatQuality.put(pFormat, oldValue * pFactor);
//System.out.println("New va... | public class class_name {
private static void adjustQuality(Map<String, Float> pFormatQuality, String pFormat, float pFactor) {
Float oldValue = pFormatQuality.get(pFormat);
if (oldValue != null) {
pFormatQuality.put(pFormat, oldValue * pFactor);
// depends on control dependency: [if], ... |
public class class_name {
protected String buildFlashVarsString(Map<String, String> flashVars) {
try {
StringBuilder flashvarsString = new StringBuilder();
Iterator<Map.Entry<String, String>> flashvarsIterator = flashVars.entrySet().iterator();
while (flashvarsIterator.hasNext()) {
Map.En... | public class class_name {
protected String buildFlashVarsString(Map<String, String> flashVars) {
try {
StringBuilder flashvarsString = new StringBuilder();
Iterator<Map.Entry<String, String>> flashvarsIterator = flashVars.entrySet().iterator();
while (flashvarsIterator.hasNext()) {
Map.En... |
public class class_name {
public static synchronized void loadLibrary(File jar) throws NoAvailableBackendException {
try {
/*We are using reflection here to circumvent encapsulation; addURL is not public*/
java.net.URLClassLoader loader = (java.net.URLClassLoader) ClassLoader.getSystemC... | public class class_name {
public static synchronized void loadLibrary(File jar) throws NoAvailableBackendException {
try {
/*We are using reflection here to circumvent encapsulation; addURL is not public*/
java.net.URLClassLoader loader = (java.net.URLClassLoader) ClassLoader.getSystemC... |
public class class_name {
private String buildWhereClause() {
StringBuilder sqlBuf = new StringBuilder();
String join = null;
boolean first = true;
for (Enumeration where = mTables.elements(); where.hasMoreElements();) {
join = (String) where.nextElement()... | public class class_name {
private String buildWhereClause() {
StringBuilder sqlBuf = new StringBuilder();
String join = null;
boolean first = true;
for (Enumeration where = mTables.elements(); where.hasMoreElements();) {
join = (String) where.nextElement()... |
public class class_name {
public synchronized void run(){
while (true){
try {
if (incoming == null) {
wait();
}
System.out.println("Socket opening ...");
BufferedReader in = new BufferedReader(new InputStreamReader(
incoming.getInputStream(), "... | public class class_name {
public synchronized void run(){
while (true){
try {
if (incoming == null) {
wait();
// depends on control dependency: [if], data = [none]
}
System.out.println("Socket opening ...");
// depends on control dependency: [try], data =... |
public class class_name {
public UpdateReturnState update(final byte[] data) {
if ((data == null) || (data.length == 0)) {
return RejectedNullOrEmpty;
}
return hashUpdate(hash(data, getSeed())[0] >>> 1);
} } | public class class_name {
public UpdateReturnState update(final byte[] data) {
if ((data == null) || (data.length == 0)) {
return RejectedNullOrEmpty; // depends on control dependency: [if], data = [none]
}
return hashUpdate(hash(data, getSeed())[0] >>> 1);
} } |
public class class_name {
protected void fill() {
m_list.clear();
List<CmsResourceStatusRelationBean> relationBeans = getRelationBeans();
if (relationBeans.isEmpty()) {
CmsSimpleListItem item = new CmsSimpleListItem();
item.add(new Label(getEmptyMessage()));
... | public class class_name {
protected void fill() {
m_list.clear();
List<CmsResourceStatusRelationBean> relationBeans = getRelationBeans();
if (relationBeans.isEmpty()) {
CmsSimpleListItem item = new CmsSimpleListItem();
item.add(new Label(getEmptyMessage()));
// d... |
public class class_name {
public synchronized void close() {
if(!isClosed) {
if(bucket != null) {
LOG.debug("Closing Couchbase bucket");
bucket.close();
}
if(cluster != null) {
LOG.debug("Disconnecting Couchbase cluster");
cluster.disconnect();
}
if(... | public class class_name {
public synchronized void close() {
if(!isClosed) {
if(bucket != null) {
LOG.debug("Closing Couchbase bucket"); // depends on control dependency: [if], data = [none]
bucket.close(); // depends on control dependency: [if], data = [none]
}
if(cluster != nu... |
public class class_name {
public List<V> getAll(final String name) {
LinkedList<V> values = new LinkedList<>();
int h = hash(name);
int i = index(h);
MapEntry<V> e = entries[i];
while (e != null) {
if (e.hash == h && eq(name, e.key)) {
values.addFirst(e.getValue());
}
e = e.next;
}
return v... | public class class_name {
public List<V> getAll(final String name) {
LinkedList<V> values = new LinkedList<>();
int h = hash(name);
int i = index(h);
MapEntry<V> e = entries[i];
while (e != null) {
if (e.hash == h && eq(name, e.key)) {
values.addFirst(e.getValue()); // depends on control dependency: ... |
public class class_name {
private Set<Result> evaluatePids(Set<String> dsids,
String pid,
HttpServletRequest request,
DataResponseWrapper response)
throws ServletException {
RequestCtx[] r... | public class class_name {
private Set<Result> evaluatePids(Set<String> dsids,
String pid,
HttpServletRequest request,
DataResponseWrapper response)
throws ServletException {
RequestCtx[] r... |
public class class_name {
protected final boolean isSatisfied(AnalyzedToken aToken,
Map<String, List<String>> uFeatures) {
if (allFeatsIn && equivalencesMatched.isEmpty()) {
return false;
}
if (uFeatures == null) {
throw new RuntimeException("isSatisfied called without features being set... | public class class_name {
protected final boolean isSatisfied(AnalyzedToken aToken,
Map<String, List<String>> uFeatures) {
if (allFeatsIn && equivalencesMatched.isEmpty()) {
return false; // depends on control dependency: [if], data = [none]
}
if (uFeatures == null) {
throw new RuntimeEx... |
public class class_name {
private void invokeIgnoreExceptions(Object obj, String method,
Object... args) {
try {
invoke(obj, method, args);
} catch (NoSuchMethodException e) {
logger.trace("Unable to log progress", e);
} catch (InvocationTargetException e) {
... | public class class_name {
private void invokeIgnoreExceptions(Object obj, String method,
Object... args) {
try {
invoke(obj, method, args); // depends on control dependency: [try], data = [none]
} catch (NoSuchMethodException e) {
logger.trace("Unable to log progress... |
public class class_name {
public RedBlackTreeNode<Key, Value> ceilingNode(Key key) {
if (isEmpty()) {
return null;
}
RedBlackTreeNode<Key, Value> x = ceiling(root, key);
if (x == null) {
return null;
} else {
return x;
}
} } | public class class_name {
public RedBlackTreeNode<Key, Value> ceilingNode(Key key) {
if (isEmpty()) {
return null; // depends on control dependency: [if], data = [none]
}
RedBlackTreeNode<Key, Value> x = ceiling(root, key);
if (x == null) {
return null; // depends on control dependency: [if], data = [non... |
public class class_name {
public static void configureBigQueryOutput(
Configuration config,
String projectId,
String datasetId,
String tableId,
String tableSchema)
throws IOException {
// Check preconditions.
Preconditions.checkArgument(
!Strings.isNullOrEmpty(datase... | public class class_name {
public static void configureBigQueryOutput(
Configuration config,
String projectId,
String datasetId,
String tableId,
String tableSchema)
throws IOException {
// Check preconditions.
Preconditions.checkArgument(
!Strings.isNullOrEmpty(datase... |
public class class_name {
public Observable<ServiceResponse<PredictionQueryResult>> queryPredictionsWithServiceResponseAsync(UUID projectId, PredictionQueryToken query) {
if (projectId == null) {
throw new IllegalArgumentException("Parameter projectId is required and cannot be null.");
}
... | public class class_name {
public Observable<ServiceResponse<PredictionQueryResult>> queryPredictionsWithServiceResponseAsync(UUID projectId, PredictionQueryToken query) {
if (projectId == null) {
throw new IllegalArgumentException("Parameter projectId is required and cannot be null.");
}
... |
public class class_name {
public final void readLELongs(long lbuf[], int n) throws IOException {
int nLeft = n;
int lCount = 0;
int nToRead = kLongs;
while (nLeft > 0) {
if (nToRead > nLeft)
nToRead = nLeft;
readFully(byteWorkSpace, 0, 8 * nToRead);
int j = 0;
for (int i... | public class class_name {
public final void readLELongs(long lbuf[], int n) throws IOException {
int nLeft = n;
int lCount = 0;
int nToRead = kLongs;
while (nLeft > 0) {
if (nToRead > nLeft)
nToRead = nLeft;
readFully(byteWorkSpace, 0, 8 * nToRead);
int j = 0;
for (int i... |
public class class_name {
public static String encode(byte[] data)
{
StringBuffer result = new StringBuffer();
for (int i = 0; i < data.length; i++) {
result.append(trans[(data[i] >> 4) & 0xf]);
result.append(trans[data[i] & 0xf]);
}
return result.toString();
} } | public class class_name {
public static String encode(byte[] data)
{
StringBuffer result = new StringBuffer();
for (int i = 0; i < data.length; i++) {
result.append(trans[(data[i] >> 4) & 0xf]); // depends on control dependency: [for], data = [i]
result.append(trans[data[i] & 0xf]); // depends on c... |
public class class_name {
public static <T> T getRestApiResponseAsObject(String uri,
TypeReference<T> typeReference) {
try {
return JMJson.withJsonString(getResponseAsString(uri),
typeReference);
} catch (Exception e) {
throw JMExceptionManager.ha... | public class class_name {
public static <T> T getRestApiResponseAsObject(String uri,
TypeReference<T> typeReference) {
try {
return JMJson.withJsonString(getResponseAsString(uri),
typeReference); // depends on control dependency: [try], data = [none]
} catch ... |
public class class_name {
public void marshall(UserStackAssociationError userStackAssociationError, ProtocolMarshaller protocolMarshaller) {
if (userStackAssociationError == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
proto... | public class class_name {
public void marshall(UserStackAssociationError userStackAssociationError, ProtocolMarshaller protocolMarshaller) {
if (userStackAssociationError == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
proto... |
public class class_name {
public void putInt(int pos, int i) {
adaptSize(pos + 4);
ByteBuffer bb = getBuffer(pos);
int index = pos % _bufferSize;
if (bb.limit() - index >= 4) {
bb.putInt(index, i);
} else {
byte b0 = (byte)i;
byte b1 = (byte)(i >> 8);
byte b2 = (byte)(i >> 16);
byte b3 = (byte... | public class class_name {
public void putInt(int pos, int i) {
adaptSize(pos + 4);
ByteBuffer bb = getBuffer(pos);
int index = pos % _bufferSize;
if (bb.limit() - index >= 4) {
bb.putInt(index, i); // depends on control dependency: [if], data = [none]
} else {
byte b0 = (byte)i;
byte b1 = (byte)(i >... |
public class class_name {
public static void calculateDsspSecondaryStructure(Structure bioJavaStruct) {
SecStrucCalc ssp = new SecStrucCalc();
try{
ssp.calculate(bioJavaStruct, true);
}
catch(StructureException e) {
LOGGER.warn("Could not calculate secondary structure (error {}). Will try to get a DSSP ... | public class class_name {
public static void calculateDsspSecondaryStructure(Structure bioJavaStruct) {
SecStrucCalc ssp = new SecStrucCalc();
try{
ssp.calculate(bioJavaStruct, true); // depends on control dependency: [try], data = [none]
}
catch(StructureException e) {
LOGGER.warn("Could not calculate ... |
public class class_name {
public FieldList setHandle(Object bookmark, int iHandleType) throws DBException
{
if ((iHandleType == DBConstants.BOOKMARK_HANDLE) && (bookmark instanceof String)) // It is okay to pass in a string, but convert it first!
if ((this.getRecord().getCounterField() != n... | public class class_name {
public FieldList setHandle(Object bookmark, int iHandleType) throws DBException
{
if ((iHandleType == DBConstants.BOOKMARK_HANDLE) && (bookmark instanceof String)) // It is okay to pass in a string, but convert it first!
if ((this.getRecord().getCounterField() != n... |
public class class_name {
private String resolve(String cdr, Function<String,String> map) {
StringBuilder res = new StringBuilder(cdr.length()*2);
int state = 0;
String var = "";
for (int i=0; i < cdr.length(); i++ ) {
char c = cdr.charAt(i);
if ( c == '$' ) {
... | public class class_name {
private String resolve(String cdr, Function<String,String> map) {
StringBuilder res = new StringBuilder(cdr.length()*2);
int state = 0;
String var = "";
for (int i=0; i < cdr.length(); i++ ) {
char c = cdr.charAt(i);
if ( c == '$' ) {
... |
public class class_name {
private JButton makeButton(String imageName, String actionCommand, String toolTipText, String altText) {
//Look for the image.
String imgLocation = "images/" + imageName + "16.png";
URL imageURL = PlotCanvas.class.getResource(imgLocation);
//Create and initial... | public class class_name {
private JButton makeButton(String imageName, String actionCommand, String toolTipText, String altText) {
//Look for the image.
String imgLocation = "images/" + imageName + "16.png";
URL imageURL = PlotCanvas.class.getResource(imgLocation);
//Create and initial... |
public class class_name {
@Override
public EClass getIfcProductSelect() {
if (ifcProductSelectEClass == null) {
ifcProductSelectEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(1151);
}
return ifcProductSelectEClass;
} } | public class class_name {
@Override
public EClass getIfcProductSelect() {
if (ifcProductSelectEClass == null) {
ifcProductSelectEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(1151);
// depends on control dependency: [if], data = [none]
}
return... |
public class class_name {
private static <E> boolean addAllImpl(Multiset<E> self, Multiset<? extends E> elements) {
if (elements.isEmpty()) {
return false;
}
elements.forEachEntry(self::add);
return true;
} } | public class class_name {
private static <E> boolean addAllImpl(Multiset<E> self, Multiset<? extends E> elements) {
if (elements.isEmpty()) {
return false; // depends on control dependency: [if], data = [none]
}
elements.forEachEntry(self::add);
return true;
} } |
public class class_name {
@Override
public CompletableFuture<Acknowledge> updatePartitions(
final ExecutionAttemptID executionAttemptID,
Iterable<PartitionInfo> partitionInfos,
Time timeout) {
final Task task = taskSlotTable.getTask(executionAttemptID);
if (task != null) {
for (final PartitionInfo pa... | public class class_name {
@Override
public CompletableFuture<Acknowledge> updatePartitions(
final ExecutionAttemptID executionAttemptID,
Iterable<PartitionInfo> partitionInfos,
Time timeout) {
final Task task = taskSlotTable.getTask(executionAttemptID);
if (task != null) {
for (final PartitionInfo pa... |
public class class_name {
public static void outputString(final HttpServletResponse response, final Object obj) {
try {
response.setContentType("text/javascript");
response.setCharacterEncoding("utf-8");
disableCache(response);
response.getWriter().write(obj.toSt... | public class class_name {
public static void outputString(final HttpServletResponse response, final Object obj) {
try {
response.setContentType("text/javascript"); // depends on control dependency: [try], data = [none]
response.setCharacterEncoding("utf-8"); // depends on control depend... |
public class class_name {
public Double[] exportImaginary()
{
Double[] ad = new Double[indexSet.size()];
int i = 0;
for (IndexMN index: indexSet) {
if (imaginary.containsKey(index)) {
ad[i] = imaginary.get(index);
} else {
ad[i] = 0.0;... | public class class_name {
public Double[] exportImaginary()
{
Double[] ad = new Double[indexSet.size()];
int i = 0;
for (IndexMN index: indexSet) {
if (imaginary.containsKey(index)) {
ad[i] = imaginary.get(index); // depends on control dependency: [if], data = [n... |
public class class_name {
public AlphabeticIndex<V> clearRecords() {
if (inputList != null && !inputList.isEmpty()) {
inputList.clear();
buckets = null;
}
return this;
} } | public class class_name {
public AlphabeticIndex<V> clearRecords() {
if (inputList != null && !inputList.isEmpty()) {
inputList.clear(); // depends on control dependency: [if], data = [none]
buckets = null; // depends on control dependency: [if], data = [none]
}
return t... |
public class class_name {
public String getValidationDescription() {
final JvmOperation feature = getOperation();
String message = null;
if (!getDeclaredTypeParameters().isEmpty()) {
message = MessageFormat.format(Messages.CastOperatorLinkingCandidate_0,
getFeatureTypeParametersAsString(true),
featu... | public class class_name {
public String getValidationDescription() {
final JvmOperation feature = getOperation();
String message = null;
if (!getDeclaredTypeParameters().isEmpty()) {
message = MessageFormat.format(Messages.CastOperatorLinkingCandidate_0,
getFeatureTypeParametersAsString(true),
featu... |
public class class_name {
public String getMenuLink(Record recMenu)
{
String strRecordClass = recMenu.getClass().getName();
String strLink = HtmlConstants.SERVLET_LINK;
strLink = Utility.addURLParam(strLink, DBParams.RECORD, strRecordClass);
strLink = Utility.addURLParam(strLink, DB... | public class class_name {
public String getMenuLink(Record recMenu)
{
String strRecordClass = recMenu.getClass().getName();
String strLink = HtmlConstants.SERVLET_LINK;
strLink = Utility.addURLParam(strLink, DBParams.RECORD, strRecordClass);
strLink = Utility.addURLParam(strLink, DB... |
public class class_name {
public void revokeService(Class serviceClass, BeanContextServiceProvider serviceProvider, boolean revokeCurrentServicesNow) {
// todo: for multithreaded usage this block needs to be synchronized
if (!_serviceProviders.containsKey(serviceClass)) {
return;
}
... | public class class_name {
public void revokeService(Class serviceClass, BeanContextServiceProvider serviceProvider, boolean revokeCurrentServicesNow) {
// todo: for multithreaded usage this block needs to be synchronized
if (!_serviceProviders.containsKey(serviceClass)) {
return; // depends... |
public class class_name {
@Override
public void onFatalError(Throwable exception) {
LOG.error("Fatal error occurred while executing the TaskManager. Shutting it down...", exception);
if (ExceptionUtils.isJvmFatalOrOutOfMemoryError(exception)) {
terminateJVM();
} else {
closeAsync();
FutureUtils.orTim... | public class class_name {
@Override
public void onFatalError(Throwable exception) {
LOG.error("Fatal error occurred while executing the TaskManager. Shutting it down...", exception);
if (ExceptionUtils.isJvmFatalOrOutOfMemoryError(exception)) {
terminateJVM(); // depends on control dependency: [if], data = [n... |
public class class_name {
public String unescapeJavaScript(final Object target) {
if (target == null) {
return null;
}
return StringUtils.unescapeJavaScript(target);
} } | public class class_name {
public String unescapeJavaScript(final Object target) {
if (target == null) {
return null; // depends on control dependency: [if], data = [none]
}
return StringUtils.unescapeJavaScript(target);
} } |
public class class_name {
private List<Float> interpolateUpwards(float min, int steps) {
List<Float> result = new ArrayList<Float>();
for (int i = 0; i < steps; i++) {
result.add(new Float(min + 1 + i));
}
return result;
} } | public class class_name {
private List<Float> interpolateUpwards(float min, int steps) {
List<Float> result = new ArrayList<Float>();
for (int i = 0; i < steps; i++) {
result.add(new Float(min + 1 + i));
// depends on control dependency: [for], data = [i]
}
return res... |
public class class_name {
public final void mHexLiteral() throws RecognitionException {
try {
int _type = HexLiteral;
int _channel = DEFAULT_TOKEN_CHANNEL;
// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:1302:12: ( '0' ( 'x' | 'X' ) ( HexDigit )+ ( IntegerTypeSuffix )? )
// src/mai... | public class class_name {
public final void mHexLiteral() throws RecognitionException {
try {
int _type = HexLiteral;
int _channel = DEFAULT_TOKEN_CHANNEL;
// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:1302:12: ( '0' ( 'x' | 'X' ) ( HexDigit )+ ( IntegerTypeSuffix )? )
// src/mai... |
public class class_name {
public String escapeLikeExpression(String likeExpression) {
String normalizeLikeExpression = likeExpression;
if (likeExpression != null && !likeExpression.isEmpty()) {
normalizeLikeExpression = normalizeLikeExpression.replace(ESCAPE_CHAR, DOUBLE_ESCAPE_CHAR);
for (String charToEscap... | public class class_name {
public String escapeLikeExpression(String likeExpression) {
String normalizeLikeExpression = likeExpression;
if (likeExpression != null && !likeExpression.isEmpty()) {
normalizeLikeExpression = normalizeLikeExpression.replace(ESCAPE_CHAR, DOUBLE_ESCAPE_CHAR); // depends on control depe... |
public class class_name {
private final void step3() {
if (k == 0) {
return;
}
switch (b[k - 1]) {
case 'a':
if (endWith("ational")) {
r("ate");
break;
}
if (endWith("tional")) {
... | public class class_name {
private final void step3() {
if (k == 0) {
return; // depends on control dependency: [if], data = [none]
}
switch (b[k - 1]) {
case 'a':
if (endWith("ational")) {
r("ate"); // depends on control dependency: [... |
public class class_name {
public final void addObject(Object object) {
if (object instanceof Iterable) {
// Iterable
for (Object o : (Iterable<?>) object) {
objects.add(o);
}
} else if (object.getClass().isArray()) {
// Array
f... | public class class_name {
public final void addObject(Object object) {
if (object instanceof Iterable) {
// Iterable
for (Object o : (Iterable<?>) object) {
objects.add(o); // depends on control dependency: [for], data = [o]
}
} else if (object.getCla... |
public class class_name {
@SuppressWarnings({"unused", "WeakerAccess"})
public void pushEvent(String eventName, Map<String, Object> eventActions) {
if (eventName == null || eventName.equals(""))
return;
ValidationResult validationResult = validator.isRestrictedEventName(eventName);
... | public class class_name {
@SuppressWarnings({"unused", "WeakerAccess"})
public void pushEvent(String eventName, Map<String, Object> eventActions) {
if (eventName == null || eventName.equals(""))
return;
ValidationResult validationResult = validator.isRestrictedEventName(eventName);
... |
public class class_name {
public void marshall(AssociateSkillGroupWithRoomRequest associateSkillGroupWithRoomRequest, ProtocolMarshaller protocolMarshaller) {
if (associateSkillGroupWithRoomRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... | public class class_name {
public void marshall(AssociateSkillGroupWithRoomRequest associateSkillGroupWithRoomRequest, ProtocolMarshaller protocolMarshaller) {
if (associateSkillGroupWithRoomRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... |
public class class_name {
private static Integer[] getAdjustedCycle(int cycleNumber) {
Integer[] cycles;
try {
cycles = ADJUSTED_CYCLE_YEARS.get(Integer.valueOf(cycleNumber));
} catch (ArrayIndexOutOfBoundsException e) {
cycles = null;
}
if (cycles == nul... | public class class_name {
private static Integer[] getAdjustedCycle(int cycleNumber) {
Integer[] cycles;
try {
cycles = ADJUSTED_CYCLE_YEARS.get(Integer.valueOf(cycleNumber)); // depends on control dependency: [try], data = [none]
} catch (ArrayIndexOutOfBoundsException e) {
... |
public class class_name {
public static String getName(String s, String separator) {
if (s.length() == 1) { // handle common case
return getName(s.charAt(0));
}
int cp;
StringBuilder sb = new StringBuilder();
for (int i = 0; i < s.length(); i += Character.charCount(c... | public class class_name {
public static String getName(String s, String separator) {
if (s.length() == 1) { // handle common case
return getName(s.charAt(0)); // depends on control dependency: [if], data = [none]
}
int cp;
StringBuilder sb = new StringBuilder();
for ... |
public class class_name {
private final static Class convertToJavaClass(String name,
ClassLoader cl)
throws ClassNotFoundException
{
int arraySize = 0;
while (name.endsWith("[]"))
{
name = name.substring(0, name.length() - 2);
... | public class class_name {
private final static Class convertToJavaClass(String name,
ClassLoader cl)
throws ClassNotFoundException
{
int arraySize = 0;
while (name.endsWith("[]"))
{
name = name.substring(0, name.length() - 2);
... |
public class class_name {
public void setInsights(java.util.Collection<Insight> insights) {
if (insights == null) {
this.insights = null;
return;
}
this.insights = new java.util.ArrayList<Insight>(insights);
} } | public class class_name {
public void setInsights(java.util.Collection<Insight> insights) {
if (insights == null) {
this.insights = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this.insights ... |
public class class_name {
public static String decode(String file, String ref) {
StringBuffer buf = new StringBuffer();
StringTokenizer tokenizer = new StringTokenizer(file, "/", true); //$NON-NLS-1$
while (tokenizer.hasMoreTokens()) {
String token = tokenizer.nextToken();
... | public class class_name {
public static String decode(String file, String ref) {
StringBuffer buf = new StringBuffer();
StringTokenizer tokenizer = new StringTokenizer(file, "/", true); //$NON-NLS-1$
while (tokenizer.hasMoreTokens()) {
String token = tokenizer.nextToken();
... |
public class class_name {
private void calculateRows()
{
//create the sorted list of points
GridPoint points[] = new GridPoint[areas.size() * 2];
int pi = 0;
for (Area area : areas)
{
points[pi] = new GridPoint(area.getY1(), area, true);
points[pi+1] ... | public class class_name {
private void calculateRows()
{
//create the sorted list of points
GridPoint points[] = new GridPoint[areas.size() * 2];
int pi = 0;
for (Area area : areas)
{
points[pi] = new GridPoint(area.getY1(), area, true); // depends on control dep... |
public class class_name {
public static boolean toBooleanValue(Object o, boolean defaultValue) {
if (o instanceof Boolean) return ((Boolean) o).booleanValue();
else if (o instanceof Double) return toBooleanValue(((Double) o).doubleValue());
else if (o instanceof Number) return toBooleanValue(((Number) o).doubleValu... | public class class_name {
public static boolean toBooleanValue(Object o, boolean defaultValue) {
if (o instanceof Boolean) return ((Boolean) o).booleanValue();
else if (o instanceof Double) return toBooleanValue(((Double) o).doubleValue());
else if (o instanceof Number) return toBooleanValue(((Number) o).doubleValu... |
public class class_name {
public MimeType getPreferredAccept(Set<MimeType> supportedTypes) {
// Starts from the highest.
for (AcceptHeaderEntry clientSupported : entries) {
for (MimeType serverSupported : supportedTypes) {
if (isSameOrSubtype(serverSupported, clientSupported... | public class class_name {
public MimeType getPreferredAccept(Set<MimeType> supportedTypes) {
// Starts from the highest.
for (AcceptHeaderEntry clientSupported : entries) {
for (MimeType serverSupported : supportedTypes) {
if (isSameOrSubtype(serverSupported, clientSupported... |
public class class_name {
public OSchemaHelper oProperty(String propertyName, OType type)
{
checkOClass();
lastProperty = lastClass.getProperty(propertyName);
if(lastProperty==null)
{
lastProperty = lastClass.createProperty(propertyName, type);
}
else
{
if(!type.equals(lastProperty.getType()))
... | public class class_name {
public OSchemaHelper oProperty(String propertyName, OType type)
{
checkOClass();
lastProperty = lastClass.getProperty(propertyName);
if(lastProperty==null)
{
lastProperty = lastClass.createProperty(propertyName, type); // depends on control dependency: [if], data = [none]
}
el... |
public class class_name {
@Override
public FeatureDao getFeatureDao(String tableName) {
GeometryColumnsDao dao = getGeometryColumnsDao();
List<GeometryColumns> geometryColumnsList;
try {
geometryColumnsList = dao.queryForEq(
GeometryColumns.COLUMN_TABLE_NAME,... | public class class_name {
@Override
public FeatureDao getFeatureDao(String tableName) {
GeometryColumnsDao dao = getGeometryColumnsDao();
List<GeometryColumns> geometryColumnsList;
try {
geometryColumnsList = dao.queryForEq(
GeometryColumns.COLUMN_TABLE_NAME,... |
public class class_name {
protected void readFilterConfigParameters(final FilterConfig filterConfig, final Object target, final String... parameters) {
for (String parameter : parameters) {
String value = filterConfig.getInitParameter(parameter);
if (value != null) {
BeanUtil.declared.setProperty(target, ... | public class class_name {
protected void readFilterConfigParameters(final FilterConfig filterConfig, final Object target, final String... parameters) {
for (String parameter : parameters) {
String value = filterConfig.getInitParameter(parameter);
if (value != null) {
BeanUtil.declared.setProperty(target, ... |
public class class_name {
public EClass getIfcAirTerminalType() {
if (ifcAirTerminalTypeEClass == null) {
ifcAirTerminalTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(8);
}
return ifcAirTerminalTypeEClass;
} } | public class class_name {
public EClass getIfcAirTerminalType() {
if (ifcAirTerminalTypeEClass == null) {
ifcAirTerminalTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(8);
// depends on control dependency: [if], data = [none]
}
return ifc... |
public class class_name {
public void marshall(GetCostForecastRequest getCostForecastRequest, ProtocolMarshaller protocolMarshaller) {
if (getCostForecastRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarsha... | public class class_name {
public void marshall(GetCostForecastRequest getCostForecastRequest, ProtocolMarshaller protocolMarshaller) {
if (getCostForecastRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarsha... |
public class class_name {
protected String[] getPaths (String pkgPath, String key)
{
String bundle = _loader.getBundle(pkgPath);
Preconditions.checkNotNull(bundle,
"Unable to find the bundle name for a package [package=%s, key=%s]", pkgPath, key);
String[] names = _loader.getPa... | public class class_name {
protected String[] getPaths (String pkgPath, String key)
{
String bundle = _loader.getBundle(pkgPath);
Preconditions.checkNotNull(bundle,
"Unable to find the bundle name for a package [package=%s, key=%s]", pkgPath, key);
String[] names = _loader.getPa... |
public class class_name {
private List<SiteNode> getChildren(SiteNode siteNode) {
int childCount = siteNode.getChildCount();
if (childCount == 0) {
return Collections.emptyList();
}
List<SiteNode> children = new ArrayList<>(childCount);
for (int i = 0; i < childCount; i++) {
children.add((Site... | public class class_name {
private List<SiteNode> getChildren(SiteNode siteNode) {
int childCount = siteNode.getChildCount();
if (childCount == 0) {
return Collections.emptyList();
// depends on control dependency: [if], data = [none]
}
List<SiteNode> children = new ArrayList<>(childCount);
for (in... |
public class class_name {
public StringIndex getNameIndex() {
try {
if (nameIndex == null) {
FileSystemResource res = new FileSystemResource(context.getFileSystem(), RES_NAME_INDEX);
if (res.exists()) {
nameIndex = super.getNameIndex();
... | public class class_name {
public StringIndex getNameIndex() {
try {
if (nameIndex == null) {
FileSystemResource res = new FileSystemResource(context.getFileSystem(), RES_NAME_INDEX);
if (res.exists()) {
nameIndex = super.getNameIndex(); // depends... |
public class class_name {
public static <R> Mono<R> zipDelayError(Function<? super Object[], ? extends R>
combinator, Mono<?>... monos) {
if (monos.length == 0) {
return empty();
}
if (monos.length == 1) {
return monos[0].map(d -> combinator.apply(new Object[]{d}));
}
return onAssembly(new MonoZip<... | public class class_name {
public static <R> Mono<R> zipDelayError(Function<? super Object[], ? extends R>
combinator, Mono<?>... monos) {
if (monos.length == 0) {
return empty(); // depends on control dependency: [if], data = [none]
}
if (monos.length == 1) {
return monos[0].map(d -> combinator.apply(n... |
public class class_name {
public AnnotatedTypeBuilder<X> addToMethodParameter(Method method, int position, Annotation annotation) {
if (!methods.containsKey(method)) {
methods.put(method, new AnnotationBuilder());
}
if (methodParameters.get(method) == null) {
methodParameters... | public class class_name {
public AnnotatedTypeBuilder<X> addToMethodParameter(Method method, int position, Annotation annotation) {
if (!methods.containsKey(method)) {
methods.put(method, new AnnotationBuilder()); // depends on control dependency: [if], data = [none]
}
if (methodParamet... |
public class class_name {
@SuppressWarnings("unchecked")
protected <C extends Compound> Sequence<C> reverseSequence(Sequence<C> sequence) {
if(getStrand() != Strand.NEGATIVE) {
return sequence;
}
Sequence<C> reversed = new ReversedSequenceView<C>(sequence);
// "safe" operation as we have tried to check th... | public class class_name {
@SuppressWarnings("unchecked")
protected <C extends Compound> Sequence<C> reverseSequence(Sequence<C> sequence) {
if(getStrand() != Strand.NEGATIVE) {
return sequence; // depends on control dependency: [if], data = [none]
}
Sequence<C> reversed = new ReversedSequenceView<C>(sequenc... |
public class class_name {
@SuppressWarnings("TryWithIdenticalCatches")
private static Map<View, FormValidator.FieldInfo> findFieldsToValidate(Object target) {
final Field[] fields = target.getClass().getDeclaredFields();
if (fields == null || fields.length == 0) {
return Collections.emptyMap();
}
final We... | public class class_name {
@SuppressWarnings("TryWithIdenticalCatches")
private static Map<View, FormValidator.FieldInfo> findFieldsToValidate(Object target) {
final Field[] fields = target.getClass().getDeclaredFields();
if (fields == null || fields.length == 0) {
return Collections.emptyMap(); // depends on c... |
public class class_name {
public static String buildSubscript(Iterable<Object> subscripts) {
StringBuilder sb = new StringBuilder();
for (Object subscript : subscripts) {
String value = toString(subscript);
if (value.isEmpty()) {
throw new RuntimeException("Nul... | public class class_name {
public static String buildSubscript(Iterable<Object> subscripts) {
StringBuilder sb = new StringBuilder();
for (Object subscript : subscripts) {
String value = toString(subscript);
if (value.isEmpty()) {
throw new RuntimeException("Nul... |
public class class_name {
private void socketClosedHandler() {
// If the book-keeping has already been completed earlier, then
// we should just bail.
if (getReadyState() == ReadyState.CLOSED) {
return;
}
// TODO: Determine whether channels need to be cleane... | public class class_name {
private void socketClosedHandler() {
// If the book-keeping has already been completed earlier, then
// we should just bail.
if (getReadyState() == ReadyState.CLOSED) {
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public OqlBuilder<T> orderBy(final List<Order> orders) {
if (null != orders) {
if (isNotEmpty(statement)) { throw new RuntimeException("cannot add order by to a exists statement."); }
this.orders.addAll(orders);
}
return this;
} } | public class class_name {
public OqlBuilder<T> orderBy(final List<Order> orders) {
if (null != orders) {
if (isNotEmpty(statement)) { throw new RuntimeException("cannot add order by to a exists statement."); }
this.orders.addAll(orders); // depends on control dependency: [if], data = [orders)]
}
... |
public class class_name {
public int run(String argv[]) throws Exception {
if (argv.length < 1) {
printUsage();
return -1;
}
AvatarShellCommand cmd = AvatarShellCommand.parseCommand(argv);
if (cmd == null) {
printUsage();
return -1;
}
int exitCode = 0;
i... | public class class_name {
public int run(String argv[]) throws Exception {
if (argv.length < 1) {
printUsage();
return -1;
}
AvatarShellCommand cmd = AvatarShellCommand.parseCommand(argv);
if (cmd == null) {
printUsage();
return -1;
}
int exitCode = 0;
i... |
public class class_name {
public static String convertSessionIdBytesToSessionId(byte[] pBytes, int sessionIdLength) {
// int numBits = pBytes.length * 8;
char[] chars = new char[sessionIdLength];
int byteNum = 0;
int bitNum = 0;
int pos = 0;
while (byteNum < pBytes.leng... | public class class_name {
public static String convertSessionIdBytesToSessionId(byte[] pBytes, int sessionIdLength) {
// int numBits = pBytes.length * 8;
char[] chars = new char[sessionIdLength];
int byteNum = 0;
int bitNum = 0;
int pos = 0;
while (byteNum < pBytes.leng... |
public class class_name {
public void marshall(AutoScalingPolicyDescription autoScalingPolicyDescription, ProtocolMarshaller protocolMarshaller) {
if (autoScalingPolicyDescription == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(AutoScalingPolicyDescription autoScalingPolicyDescription, ProtocolMarshaller protocolMarshaller) {
if (autoScalingPolicyDescription == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public NoteAbstract getHighestNoteBewteen(MusicElement elmtBegin,
MusicElement elmtEnd) throws IllegalArgumentException {
NoteAbstract highestNote = null;
int highestNoteHeight = Note.REST;
if (elmtBegin instanceof NoteAbstract) {
if (!((elmtBegin instanceof Note) && ((Note) ... | public class class_name {
public NoteAbstract getHighestNoteBewteen(MusicElement elmtBegin,
MusicElement elmtEnd) throws IllegalArgumentException {
NoteAbstract highestNote = null;
int highestNoteHeight = Note.REST;
if (elmtBegin instanceof NoteAbstract) {
if (!((elmtBegin instanceof Note) && ((Note) ... |
public class class_name {
public PointExpression<Point> pointOnSurface() {
if (pointOnSurface == null) {
pointOnSurface = GeometryExpressions.pointOperation(SpatialOps.POINT_ON_SURFACE, mixin);
}
return pointOnSurface;
} } | public class class_name {
public PointExpression<Point> pointOnSurface() {
if (pointOnSurface == null) {
pointOnSurface = GeometryExpressions.pointOperation(SpatialOps.POINT_ON_SURFACE, mixin); // depends on control dependency: [if], data = [none]
}
return pointOnSurface;
} } |
public class class_name {
@Nullable
static <T> T removeFirstMatching(Iterable<T> removeFrom, Predicate<? super T> predicate) {
checkNotNull(predicate);
Iterator<T> iterator = removeFrom.iterator();
while (iterator.hasNext()) {
T next = iterator.next();
if (predicate.apply(next)) {
ite... | public class class_name {
@Nullable
static <T> T removeFirstMatching(Iterable<T> removeFrom, Predicate<? super T> predicate) {
checkNotNull(predicate);
Iterator<T> iterator = removeFrom.iterator();
while (iterator.hasNext()) {
T next = iterator.next();
if (predicate.apply(next)) {
ite... |
public class class_name {
private String limitString(int rowIndex){
if(params.length != 2){
throw new IllegalArgumentException("Wrong number of Parameters for limit string expression");
}
final RecordList.Record currentRecord = recordList.getRecords().get(rowIndex);
final ... | public class class_name {
private String limitString(int rowIndex){
if(params.length != 2){
throw new IllegalArgumentException("Wrong number of Parameters for limit string expression");
}
final RecordList.Record currentRecord = recordList.getRecords().get(rowIndex);
final ... |
public class class_name {
public void setChecks(java.util.Collection<TrustedAdvisorCheckDescription> checks) {
if (checks == null) {
this.checks = null;
return;
}
this.checks = new com.amazonaws.internal.SdkInternalList<TrustedAdvisorCheckDescription>(checks);
} } | public class class_name {
public void setChecks(java.util.Collection<TrustedAdvisorCheckDescription> checks) {
if (checks == null) {
this.checks = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public static double root(double eps, int maxIterations, double a, double b, Function1D f)
{
double x1 = a;
double x2 = b;
double fx1 = f.f(x1);
double fx2 = f.f(x2);
double halfEps = eps*0.5;
if(fx1* fx2 >= 0)
throw new... | public class class_name {
public static double root(double eps, int maxIterations, double a, double b, Function1D f)
{
double x1 = a;
double x2 = b;
double fx1 = f.f(x1);
double fx2 = f.f(x2);
double halfEps = eps*0.5;
if(fx1* fx2 >= 0)
throw new... |
public class class_name {
public DBObject getObject(TableDefinition tableDef, String objID) {
checkServiceState();
String storeName = objectsStoreName(tableDef);
Tenant tenant = Tenant.getTenant(tableDef);
Iterator<DColumn> colIter = DBService.instance(tenant).getAllColumns(storeNam... | public class class_name {
public DBObject getObject(TableDefinition tableDef, String objID) {
checkServiceState();
String storeName = objectsStoreName(tableDef);
Tenant tenant = Tenant.getTenant(tableDef);
Iterator<DColumn> colIter = DBService.instance(tenant).getAllColumns(storeNam... |
public class class_name {
@SuppressWarnings("unchecked")
public <T> Optional<T> invoke(Object target) {
Object resolvedTarget = resolveTarget(target);
Method method = getMethod();
try {
return Optional.ofNullable((T) method.invoke(resolvedTarget, getArguments()));
}
catch (IllegalAccessExc... | public class class_name {
@SuppressWarnings("unchecked")
public <T> Optional<T> invoke(Object target) {
Object resolvedTarget = resolveTarget(target);
Method method = getMethod();
try {
return Optional.ofNullable((T) method.invoke(resolvedTarget, getArguments())); // depends on control dependency:... |
public class class_name {
private static int merging3_2(int[] buffer, int x) {
int cnt1;
int cnt2;
int cnt = 0;
for (int i = x; i < x + 48; i += 6) {
cnt1 = buffer[i + 1];
cnt2 = buffer[i + 3];
final int w = buffer[i + 5];
cnt1 = cnt1 - ((cnt1 >>> 1) & 0x55555555) + (w & 0x55555555);
cn... | public class class_name {
private static int merging3_2(int[] buffer, int x) {
int cnt1;
int cnt2;
int cnt = 0;
for (int i = x; i < x + 48; i += 6) {
cnt1 = buffer[i + 1];
// depends on control dependency: [for], data = [i]
cnt2 = buffer[i + 3];
// depends on control dependency: [for], data = [i]
... |
public class class_name {
@Override
public CommerceAccountUserRel fetchByCommerceAccountId_Last(
long commerceAccountId,
OrderByComparator<CommerceAccountUserRel> orderByComparator) {
int count = countByCommerceAccountId(commerceAccountId);
if (count == 0) {
return null;
}
List<CommerceAccountUserRel... | public class class_name {
@Override
public CommerceAccountUserRel fetchByCommerceAccountId_Last(
long commerceAccountId,
OrderByComparator<CommerceAccountUserRel> orderByComparator) {
int count = countByCommerceAccountId(commerceAccountId);
if (count == 0) {
return null; // depends on control dependency: ... |
public class class_name {
@SuppressWarnings("CompareToUsesNonFinalVariable")
@Override
public int compareTo(IntSet o)
{
// empty set cases
if (this.isEmpty() && o.isEmpty()) {
return 0;
}
if (this.isEmpty()) {
return -1;
}
if (o.isEmpty()) {
return 1;
}
... | public class class_name {
@SuppressWarnings("CompareToUsesNonFinalVariable")
@Override
public int compareTo(IntSet o)
{
// empty set cases
if (this.isEmpty() && o.isEmpty()) {
return 0;
// depends on control dependency: [if], data = [none]
}
if (this.isEmpty()) {
return -1;
... |
public class class_name {
protected void writeClassInfo(ClassInfo info) {
Node currentNode = this.currentNode;
Element tmp = doc.createElementNS(XML_URI, "class");
currentNode.appendChild(tmp);
this.currentNode = tmp;
addAccessFlags(info);
if (info.getName() != null)
... | public class class_name {
protected void writeClassInfo(ClassInfo info) {
Node currentNode = this.currentNode;
Element tmp = doc.createElementNS(XML_URI, "class");
currentNode.appendChild(tmp);
this.currentNode = tmp;
addAccessFlags(info);
if (info.getName() != null)
... |
public class class_name {
public static List<? extends IResource> chain(IResource resource)
{
List<IResource> chain = new ArrayList<IResource>();
while (true)
{
chain.add(resource);
if (!resource.hasParent())
break;
resource = resource.getPare... | public class class_name {
public static List<? extends IResource> chain(IResource resource)
{
List<IResource> chain = new ArrayList<IResource>();
while (true)
{
chain.add(resource); // depends on control dependency: [while], data = [none]
if (!resource.hasParent())
... |
public class class_name {
@SuppressWarnings("unchecked")
@Override
public <E> int batchInsert(final Class<E> entityType, final Stream<E> entities,
final InsertsCondition<? super E> condition) {
@SuppressWarnings("rawtypes")
EntityHandler handler = this.getEntityHandler();
if (!handler.getEntityType().isAssi... | public class class_name {
@SuppressWarnings("unchecked")
@Override
public <E> int batchInsert(final Class<E> entityType, final Stream<E> entities,
final InsertsCondition<? super E> condition) {
@SuppressWarnings("rawtypes")
EntityHandler handler = this.getEntityHandler();
if (!handler.getEntityType().isAssi... |
public class class_name {
public Observable<ServiceResponseWithHeaders<Page<NodeFile>, FileListFromComputeNodeHeaders>> listFromComputeNodeWithServiceResponseAsync(final String poolId, final String nodeId, final Boolean recursive, final FileListFromComputeNodeOptions fileListFromComputeNodeOptions) {
return li... | public class class_name {
public Observable<ServiceResponseWithHeaders<Page<NodeFile>, FileListFromComputeNodeHeaders>> listFromComputeNodeWithServiceResponseAsync(final String poolId, final String nodeId, final Boolean recursive, final FileListFromComputeNodeOptions fileListFromComputeNodeOptions) {
return li... |
public class class_name {
public static final void shift(Structure structure, Atom a ){
AtomIterator iter = new AtomIterator(structure) ;
while (iter.hasNext() ) {
Atom atom = null ;
atom = iter.next() ;
Atom natom = add(atom,a);
double x = natom.getX();
double y = natom.getY() ;
double z = n... | public class class_name {
public static final void shift(Structure structure, Atom a ){
AtomIterator iter = new AtomIterator(structure) ;
while (iter.hasNext() ) {
Atom atom = null ;
atom = iter.next() ; // depends on control dependency: [while], data = [none]
Atom natom = add(atom,a);
double x = n... |
public class class_name {
public void setDataPoints(java.util.Collection<DataPoint> dataPoints) {
if (dataPoints == null) {
this.dataPoints = null;
return;
}
this.dataPoints = new java.util.ArrayList<DataPoint>(dataPoints);
} } | public class class_name {
public void setDataPoints(java.util.Collection<DataPoint> dataPoints) {
if (dataPoints == null) {
this.dataPoints = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this... |
public class class_name {
public String getName()
{
if ( name == null )
{
name = MessageFormat.format( "{0}-{1}{2}.{3}", new Object[]{ artifactId, getTimestampVersion(),
( classifier == null ? "" : "-" + classifier ), type } );
}
return name;
} } | public class class_name {
public String getName()
{
if ( name == null )
{
name = MessageFormat.format( "{0}-{1}{2}.{3}", new Object[]{ artifactId, getTimestampVersion(),
( classifier == null ? "" : "-" + classifier ), type } ); // depends on control dependency: [if], dat... |
public class class_name {
public ServiceCall<LanguageModel> createLanguageModel(CreateLanguageModelOptions createLanguageModelOptions) {
Validator.notNull(createLanguageModelOptions, "createLanguageModelOptions cannot be null");
String[] pathSegments = { "v1/customizations" };
RequestBuilder builder = Requ... | public class class_name {
public ServiceCall<LanguageModel> createLanguageModel(CreateLanguageModelOptions createLanguageModelOptions) {
Validator.notNull(createLanguageModelOptions, "createLanguageModelOptions cannot be null");
String[] pathSegments = { "v1/customizations" };
RequestBuilder builder = Requ... |
public class class_name {
public Vector mlsd(String path)
throws ServerException, ClientException, IOException {
ByteArrayDataSink sink = new ByteArrayDataSink();
mlsd(path, sink);
ByteArrayOutputStream received = sink.getData();
// transfer done. Data is in received stream.... | public class class_name {
public Vector mlsd(String path)
throws ServerException, ClientException, IOException {
ByteArrayDataSink sink = new ByteArrayDataSink();
mlsd(path, sink);
ByteArrayOutputStream received = sink.getData();
// transfer done. Data is in received stream.... |
public class class_name {
public static boolean classAllowed(String className) {
for (String name: BLACK_LIST) {
if (className.startsWith(name)) {
return false;
}
}
return true;
} } | public class class_name {
public static boolean classAllowed(String className) {
for (String name: BLACK_LIST) {
if (className.startsWith(name)) {
return false; // depends on control dependency: [if], data = [none]
}
}
return true;
} } |
public class class_name {
synchronized Spanner getSpanner(String projectId, Credentials credentials, String host) {
SpannerKey key = SpannerKey.of(host, projectId, credentials);
Spanner spanner = spanners.get(key);
if (spanner == null) {
spanner = createSpanner(key);
spanners.put(key, span... | public class class_name {
synchronized Spanner getSpanner(String projectId, Credentials credentials, String host) {
SpannerKey key = SpannerKey.of(host, projectId, credentials);
Spanner spanner = spanners.get(key);
if (spanner == null) {
spanner = createSpanner(key);
// depends on control depend... |
public class class_name {
final Mappings mappingsOf(final Class<?> clazz) {
if (!mappings.containsKey(clazz)) {
mappings.putIfAbsent(clazz, new Mappings(clazz));
}
return mappings.get(clazz);
} } | public class class_name {
final Mappings mappingsOf(final Class<?> clazz) {
if (!mappings.containsKey(clazz)) {
mappings.putIfAbsent(clazz, new Mappings(clazz)); // depends on control dependency: [if], data = [none]
}
return mappings.get(clazz);
} } |
public class class_name {
@Override
public boolean modelExampleClassGenerated(TopLevelClass topLevelClass, IntrospectedTable introspectedTable) {
List<InnerClass> innerClasses = topLevelClass.getInnerClasses();
for (int i = 0; i < innerClasses.size(); i++) {
InnerClass innerClass = inne... | public class class_name {
@Override
public boolean modelExampleClassGenerated(TopLevelClass topLevelClass, IntrospectedTable introspectedTable) {
List<InnerClass> innerClasses = topLevelClass.getInnerClasses();
for (int i = 0; i < innerClasses.size(); i++) {
InnerClass innerClass = inne... |
public class class_name {
public void setComposite(Composite comp) {
if (comp instanceof AlphaComposite) {
AlphaComposite composite = (AlphaComposite) comp;
if (composite.getRule() == 3) {
alpha = composite.getAlpha();
this.composite = composite;
if (realPaint != null && (realPaint ins... | public class class_name {
public void setComposite(Composite comp) {
if (comp instanceof AlphaComposite) {
AlphaComposite composite = (AlphaComposite) comp;
if (composite.getRule() == 3) {
alpha = composite.getAlpha(); // depends on control dependency: [if], data = [none]
this.composite = c... |
public class class_name {
public void marshall(CreateFileSystemFromBackupRequest createFileSystemFromBackupRequest, ProtocolMarshaller protocolMarshaller) {
if (createFileSystemFromBackupRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... | public class class_name {
public void marshall(CreateFileSystemFromBackupRequest createFileSystemFromBackupRequest, ProtocolMarshaller protocolMarshaller) {
if (createFileSystemFromBackupRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
... |
public class class_name {
protected List<CmsUser> getUsersFromFile() {
String separator = null;
List values = null;
FileReader fileReader;
BufferedReader bufferedReader;
List<CmsUser> users = null;
boolean keepPasswordIfPossible = m_importPasswords.getValue().booleanV... | public class class_name {
protected List<CmsUser> getUsersFromFile() {
String separator = null;
List values = null;
FileReader fileReader;
BufferedReader bufferedReader;
List<CmsUser> users = null;
boolean keepPasswordIfPossible = m_importPasswords.getValue().booleanV... |
public class class_name {
public static void restoreSignal(int[] residual, int dataLen, int order, int[] data, int startAt) {
int idataLen = (int) dataLen;
switch (order) {
case 0 :
for (int i = 0; i < idataLen; i++) {
data[i + startAt] = residua... | public class class_name {
public static void restoreSignal(int[] residual, int dataLen, int order, int[] data, int startAt) {
int idataLen = (int) dataLen;
switch (order) {
case 0 :
for (int i = 0; i < idataLen; i++) {
data[i + startAt] = residua... |
public class class_name {
@Deprecated
protected List<GenPackage> loadReferencedGenModels(ResourceSet rs) {
List<GenPackage> result = Lists.newArrayList();
if (getReferencedGenModels() != null) {
for (String uri : getReferencedGenModels().split(",")) {
try {
Resource resource = rs.getResource(URI.creat... | public class class_name {
@Deprecated
protected List<GenPackage> loadReferencedGenModels(ResourceSet rs) {
List<GenPackage> result = Lists.newArrayList();
if (getReferencedGenModels() != null) {
for (String uri : getReferencedGenModels().split(",")) {
try {
Resource resource = rs.getResource(URI.creat... |
public class class_name {
protected boolean isNoException(String token,
AnalyzedTokenReadings[] tokens, int i, int j,
boolean precSpace,
boolean follSpace, UnsyncStack<SymbolLocator> symbolStack) {
String tokenStr... | public class class_name {
protected boolean isNoException(String token,
AnalyzedTokenReadings[] tokens, int i, int j,
boolean precSpace,
boolean follSpace, UnsyncStack<SymbolLocator> symbolStack) {
String tokenStr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.