code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
protected void initSynchronizations(Element root, CmsXmlContentDefinition contentDefinition) {
List<Element> elements = new ArrayList<Element>(CmsXmlGenericWrapper.elements(root, APPINFO_SYNCHRONIZATION));
for (Element element : elements) {
String elementName = el... | public class class_name {
protected void initSynchronizations(Element root, CmsXmlContentDefinition contentDefinition) {
List<Element> elements = new ArrayList<Element>(CmsXmlGenericWrapper.elements(root, APPINFO_SYNCHRONIZATION));
for (Element element : elements) {
String elementName = el... |
public class class_name {
public java.util.List<Artwork> getArtwork() {
if (artwork == null) {
artwork = new com.amazonaws.internal.SdkInternalList<Artwork>();
}
return artwork;
} } | public class class_name {
public java.util.List<Artwork> getArtwork() {
if (artwork == null) {
artwork = new com.amazonaws.internal.SdkInternalList<Artwork>(); // depends on control dependency: [if], data = [none]
}
return artwork;
} } |
public class class_name {
private int countCharsStart(final char ch, final boolean allowSpaces)
{
int count = 0;
for (int i = 0; i < this.value.length(); i++)
{
final char c = this.value.charAt(i);
if (c == ' ' && allowSpaces)
{
continue;
... | public class class_name {
private int countCharsStart(final char ch, final boolean allowSpaces)
{
int count = 0;
for (int i = 0; i < this.value.length(); i++)
{
final char c = this.value.charAt(i);
if (c == ' ' && allowSpaces)
{
continue;
... |
public class class_name {
public static String getCookieValue(String name, Cookies cookies) {
Cookie c = cookies.get(name);
if (c != null) {
return c.value();
}
return null;
} } | public class class_name {
public static String getCookieValue(String name, Cookies cookies) {
Cookie c = cookies.get(name);
if (c != null) {
return c.value(); // depends on control dependency: [if], data = [none]
}
return null;
} } |
public class class_name {
public static String unicodeCodePoint2PercentHexString(int codePoint, String charsetName) {
if (!Character.isDefined(codePoint))
throw new IllegalArgumentException(String.format("Given code point [U+%1$04X - %1$d] not assigned to an abstract character.", codePoint));
if (Charact... | public class class_name {
public static String unicodeCodePoint2PercentHexString(int codePoint, String charsetName) {
if (!Character.isDefined(codePoint))
throw new IllegalArgumentException(String.format("Given code point [U+%1$04X - %1$d] not assigned to an abstract character.", codePoint));
if (Charact... |
public class class_name {
@Override
protected void encode() {
eciProcess();
// mode 2 -> mode 3 if postal code isn't strictly numeric
if (mode == 2) {
for (int i = 0; i < 10 && i < primaryData.length(); i++) {
if ((primaryData.charAt(i) < '0') || (prima... | public class class_name {
@Override
protected void encode() {
eciProcess();
// mode 2 -> mode 3 if postal code isn't strictly numeric
if (mode == 2) {
for (int i = 0; i < 10 && i < primaryData.length(); i++) {
if ((primaryData.charAt(i) < '0') || (prima... |
public class class_name {
void exportToVariable(Object result) throws JspTagException {
/*
* Store the result, letting an IllegalArgumentException
* propagate back if the scope is invalid (e.g., if an attempt
* is made to store something in the session without any
* HttpSession ... | public class class_name {
void exportToVariable(Object result) throws JspTagException {
/*
* Store the result, letting an IllegalArgumentException
* propagate back if the scope is invalid (e.g., if an attempt
* is made to store something in the session without any
* HttpSession ... |
public class class_name {
public void getGroupHistories(final List<String> groupIds, final Integer maxMessages,
final GroupHistoriesCompletionListener completionListener) {
if (!isConnected()) {
getGroupHistoriesError(completionListener, "Can't complete request whe... | public class class_name {
public void getGroupHistories(final List<String> groupIds, final Integer maxMessages,
final GroupHistoriesCompletionListener completionListener) {
if (!isConnected()) {
getGroupHistoriesError(completionListener, "Can't complete request whe... |
public class class_name {
public static double dotInnerColumns( DMatrixSparseCSC A , int colA , DMatrixSparseCSC B , int colB ,
IGrowArray gw , DGrowArray gx)
{
if( A.numRows != B.numRows )
throw new IllegalArgumentException("Number of rows must match."... | public class class_name {
public static double dotInnerColumns( DMatrixSparseCSC A , int colA , DMatrixSparseCSC B , int colB ,
IGrowArray gw , DGrowArray gx)
{
if( A.numRows != B.numRows )
throw new IllegalArgumentException("Number of rows must match."... |
public class class_name {
@UsedByGeneratedCode
public static boolean instanceFieldInterceptionRequired(int ids, String name) {
if (nothingReloaded) {
return false;
}
int registryId = ids >>> 16;
int typeId = ids & 0xffff;
TypeRegistry typeRegistry = registryInstances[registryId].get();
ReloadableType r... | public class class_name {
@UsedByGeneratedCode
public static boolean instanceFieldInterceptionRequired(int ids, String name) {
if (nothingReloaded) {
return false; // depends on control dependency: [if], data = [none]
}
int registryId = ids >>> 16;
int typeId = ids & 0xffff;
TypeRegistry typeRegistry = r... |
public class class_name {
public void marshall(CancelWorkflowExecutionDecisionAttributes cancelWorkflowExecutionDecisionAttributes, ProtocolMarshaller protocolMarshaller) {
if (cancelWorkflowExecutionDecisionAttributes == null) {
throw new SdkClientException("Invalid argument passed to marshall(..... | public class class_name {
public void marshall(CancelWorkflowExecutionDecisionAttributes cancelWorkflowExecutionDecisionAttributes, ProtocolMarshaller protocolMarshaller) {
if (cancelWorkflowExecutionDecisionAttributes == null) {
throw new SdkClientException("Invalid argument passed to marshall(..... |
public class class_name {
public ServiceRefHandlerType<ServiceRefType<T>> getOrCreateHandler()
{
List<Node> nodeList = childNode.get("handler");
if (nodeList != null && nodeList.size() > 0)
{
return new ServiceRefHandlerTypeImpl<ServiceRefType<T>>(this, "handler", childNode, nodeList.get... | public class class_name {
public ServiceRefHandlerType<ServiceRefType<T>> getOrCreateHandler()
{
List<Node> nodeList = childNode.get("handler");
if (nodeList != null && nodeList.size() > 0)
{
return new ServiceRefHandlerTypeImpl<ServiceRefType<T>>(this, "handler", childNode, nodeList.get... |
public class class_name {
public void setDurationHistogram(java.util.Collection<HistogramEntry> durationHistogram) {
if (durationHistogram == null) {
this.durationHistogram = null;
return;
}
this.durationHistogram = new java.util.ArrayList<HistogramEntry>(durationHistog... | public class class_name {
public void setDurationHistogram(java.util.Collection<HistogramEntry> durationHistogram) {
if (durationHistogram == null) {
this.durationHistogram = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data... |
public class class_name {
@SuppressWarnings("unchecked")
public String asLiteral(Object o) {
if (o == null || o instanceof Null) {
return "null";
} else {
Type type = javaTypeMapping.getType(o.getClass());
if (type != null) {
return templates.seri... | public class class_name {
@SuppressWarnings("unchecked")
public String asLiteral(Object o) {
if (o == null || o instanceof Null) {
return "null"; // depends on control dependency: [if], data = [none]
} else {
Type type = javaTypeMapping.getType(o.getClass());
if ... |
public class class_name {
public static <I extends ScoreIter> double computeDCG(Predicate<? super I> predicate, I iter) {
double sum = 0.;
int i = 0, positive = 0, tied = 0;
while(iter.valid()) {
// positive or negative match?
do {
if(predicate.test(iter)) {
++positive;
... | public class class_name {
public static <I extends ScoreIter> double computeDCG(Predicate<? super I> predicate, I iter) {
double sum = 0.;
int i = 0, positive = 0, tied = 0;
while(iter.valid()) {
// positive or negative match?
do {
if(predicate.test(iter)) {
++positive; // dep... |
public class class_name {
public static TriFunction<JsonNode, List<String>, List<String>, List<String>> getSummaryFunctionWithStartTime(
final JDefaultDict<String, AtomicInteger> emptyCounts,
final JDefaultDict<String, AtomicInteger> nonEmptyCounts,
final JDefaultDict<String, AtomicBoolean> possibleIntegerFie... | public class class_name {
public static TriFunction<JsonNode, List<String>, List<String>, List<String>> getSummaryFunctionWithStartTime(
final JDefaultDict<String, AtomicInteger> emptyCounts,
final JDefaultDict<String, AtomicInteger> nonEmptyCounts,
final JDefaultDict<String, AtomicBoolean> possibleIntegerFie... |
public class class_name {
private Proxy lookupProxy(String hostKey, String portKey, Proxy.Type type, int defaultPort) {
String host = System.getProperty(hostKey);
if (host == null || host.isEmpty()) {
return null;
}
int port = getSystemPropertyInt(portKey, defaultPort);
... | public class class_name {
private Proxy lookupProxy(String hostKey, String portKey, Proxy.Type type, int defaultPort) {
String host = System.getProperty(hostKey);
if (host == null || host.isEmpty()) {
return null; // depends on control dependency: [if], data = [none]
}
int ... |
public class class_name {
protected int readConfigFileVersion() {
try {
return getConfig().getInt(getConfigVersionKey(), NO_CONFIG_VERSION);
} catch (ConversionException e) {
logger.error("Error while getting the version of the configurations: " + e.getMessage(), e);
... | public class class_name {
protected int readConfigFileVersion() {
try {
return getConfig().getInt(getConfigVersionKey(), NO_CONFIG_VERSION); // depends on control dependency: [try], data = [none]
} catch (ConversionException e) {
logger.error("Error while getting the version of ... |
public class class_name {
@Override
public int read(char[] buf, int offset, int length) throws IOException {
synchronized (lock) {
if (!isOpen()) {
throw new IOException("InputStreamReader is closed.");
}
if (offset < 0 || offset > buf.length - length || ... | public class class_name {
@Override
public int read(char[] buf, int offset, int length) throws IOException {
synchronized (lock) {
if (!isOpen()) {
throw new IOException("InputStreamReader is closed.");
}
if (offset < 0 || offset > buf.length - length || ... |
public class class_name {
public static String join(Set<?> items, String separator, Integer limit) {
if (separator == null || separator.equalsIgnoreCase("")) {
throw new IllegalArgumentException("Missing separator!");
}
if (items != null && items.size() > 0) {
Object[] array = items.toArray();
return ... | public class class_name {
public static String join(Set<?> items, String separator, Integer limit) {
if (separator == null || separator.equalsIgnoreCase("")) {
throw new IllegalArgumentException("Missing separator!");
}
if (items != null && items.size() > 0) {
Object[] array = items.toArray();
return ... |
public class class_name {
public ServiceQueryRRLoadBalancer getServiceQueryRRLoadBalancer(
String serviceName, ServiceInstanceQuery query) {
for (ServiceQueryRRLoadBalancer lb : svcQueryLBList) {
if (lb.getServiceName().equals(serviceName)
&& lb.getServiceInstanceQue... | public class class_name {
public ServiceQueryRRLoadBalancer getServiceQueryRRLoadBalancer(
String serviceName, ServiceInstanceQuery query) {
for (ServiceQueryRRLoadBalancer lb : svcQueryLBList) {
if (lb.getServiceName().equals(serviceName)
&& lb.getServiceInstanceQue... |
public class class_name {
public void shallowScramble(PrefabValues prefabValues, TypeTag enclosingType) {
for (Field field : FieldIterable.ofIgnoringSuper(type)) {
FieldAccessor accessor = new FieldAccessor(object, field);
accessor.changeField(prefabValues, enclosingType);
}
... | public class class_name {
public void shallowScramble(PrefabValues prefabValues, TypeTag enclosingType) {
for (Field field : FieldIterable.ofIgnoringSuper(type)) {
FieldAccessor accessor = new FieldAccessor(object, field);
accessor.changeField(prefabValues, enclosingType); // depends on... |
public class class_name {
public static void createIniFile(String... args) {
try {
// open up standard input
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String wikiid = null;
if (args.length > 0)
wikiid = args[0];
else
wikiid = getInput("w... | public class class_name {
public static void createIniFile(String... args) {
try {
// open up standard input
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String wikiid = null;
if (args.length > 0)
wikiid = args[0];
else
wikiid = getInput("w... |
public class class_name {
public void marshall(FunctionExecutionConfig functionExecutionConfig, ProtocolMarshaller protocolMarshaller) {
if (functionExecutionConfig == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... | public class class_name {
public void marshall(FunctionExecutionConfig functionExecutionConfig, ProtocolMarshaller protocolMarshaller) {
if (functionExecutionConfig == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... |
public class class_name {
public void addRequestedLocalization(final Object node, final String key, final String domain, final String locale, final Localization localization) {
final GenericProperty keyKey = new GenericProperty("key");
final GenericProperty domainKey = new GenericProperty("domain");
final Ge... | public class class_name {
public void addRequestedLocalization(final Object node, final String key, final String domain, final String locale, final Localization localization) {
final GenericProperty keyKey = new GenericProperty("key");
final GenericProperty domainKey = new GenericProperty("domain");
final Ge... |
public class class_name {
public MoneyKit[] allocate(long[] ratios) {
MoneyKit[] results = new MoneyKit[ratios.length];
long total = 0;
for (long ratio : ratios) {
total += ratio;
}
long remainder = cent;
for (int i = 0; i < results.length; i++) {
... | public class class_name {
public MoneyKit[] allocate(long[] ratios) {
MoneyKit[] results = new MoneyKit[ratios.length];
long total = 0;
for (long ratio : ratios) {
total += ratio; // depends on control dependency: [for], data = [ratio]
}
long remainder = cent;
... |
public class class_name {
@Override
protected void visitIfNode(IfNode node) {
IncrementalDomCodeBuilder jsCodeBuilder = getJsCodeBuilder();
SanitizedContentKind currentContentKind = jsCodeBuilder.getContentKind();
if (!isTextContent(currentContentKind)) {
super.generateNonExpressionIfNode(node);
... | public class class_name {
@Override
protected void visitIfNode(IfNode node) {
IncrementalDomCodeBuilder jsCodeBuilder = getJsCodeBuilder();
SanitizedContentKind currentContentKind = jsCodeBuilder.getContentKind();
if (!isTextContent(currentContentKind)) {
super.generateNonExpressionIfNode(node); /... |
public class class_name {
public List<MetaDataResult> getMetaDataResultList() {
JSONArray jsonArray = null;
try {
jsonArray = _jsonObject.getJSONArray(DATASETS_ARRAY_FIELD);
List<MetaDataResult> metaDataResults = new ArrayList<MetaDataResult>(jsonArray.length());
for (int i = 0; i < jsonArray... | public class class_name {
public List<MetaDataResult> getMetaDataResultList() {
JSONArray jsonArray = null;
try {
jsonArray = _jsonObject.getJSONArray(DATASETS_ARRAY_FIELD); // depends on control dependency: [try], data = [none]
List<MetaDataResult> metaDataResults = new ArrayList<MetaDataResult>(j... |
public class class_name {
public static Matcher<ExpressionTree> isVariable() {
return new Matcher<ExpressionTree>() {
@Override
public boolean matches(ExpressionTree expressionTree, VisitorState state) {
Symbol symbol = ASTHelpers.getSymbol(expressionTree);
if (symbol == null) {
... | public class class_name {
public static Matcher<ExpressionTree> isVariable() {
return new Matcher<ExpressionTree>() {
@Override
public boolean matches(ExpressionTree expressionTree, VisitorState state) {
Symbol symbol = ASTHelpers.getSymbol(expressionTree);
if (symbol == null) {
... |
public class class_name {
public Interval intersection(Interval other) {
Objects.requireNonNull(other, "other");
if (isConnected(other) == false) {
throw new DateTimeException("Intervals do not connect: " + this + " and " + other);
}
int cmpStart = start.compareTo(other.star... | public class class_name {
public Interval intersection(Interval other) {
Objects.requireNonNull(other, "other");
if (isConnected(other) == false) {
throw new DateTimeException("Intervals do not connect: " + this + " and " + other);
}
int cmpStart = start.compareTo(other.star... |
public class class_name {
private boolean determineIfWeShouldExit() {
boolean shouldStop = stop.get();
if (!shouldStop) {
Thread.interrupted();
} else {
System.out.println("Exiting processing loop as requested");
return true;
}
return false;
... | public class class_name {
private boolean determineIfWeShouldExit() {
boolean shouldStop = stop.get();
if (!shouldStop) {
Thread.interrupted(); // depends on control dependency: [if], data = [none]
} else {
System.out.println("Exiting processing loop as requested"); // d... |
public class class_name {
@Override
protected JSONObject extractData(MBeanInfo pMBeanInfo, String pNotification) {
JSONObject notMap = new JSONObject();
for (MBeanNotificationInfo notInfo : pMBeanInfo.getNotifications()) {
if (pNotification == null || notInfo.getName().equals(pNotificat... | public class class_name {
@Override
protected JSONObject extractData(MBeanInfo pMBeanInfo, String pNotification) {
JSONObject notMap = new JSONObject();
for (MBeanNotificationInfo notInfo : pMBeanInfo.getNotifications()) {
if (pNotification == null || notInfo.getName().equals(pNotificat... |
public class class_name {
private void minimize()
{
if (timer != null)
{
timer.stop();
timer = null;
}
currentHeight = getHeight();
double steps = (double)durationMS / delayMS;
double delta = currentHeight - minimizedHeight;... | public class class_name {
private void minimize()
{
if (timer != null)
{
timer.stop();
// depends on control dependency: [if], data = [none]
timer = null;
// depends on control dependency: [if], data = [none]
}
currentHeight = getHeight();
... |
public class class_name {
protected static void constructSignatureForRequestParameters(
List<NameValuePair> params, String secretKey, long currentTimeSeconds) {
// First, inject a 'timestamp=' parameter containing the current time in seconds since Jan 1st 1970
params.add(new BasicNameValueP... | public class class_name {
protected static void constructSignatureForRequestParameters(
List<NameValuePair> params, String secretKey, long currentTimeSeconds) {
// First, inject a 'timestamp=' parameter containing the current time in seconds since Jan 1st 1970
params.add(new BasicNameValueP... |
public class class_name {
public static base_responses update(nitro_service client, onlinkipv6prefix resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
onlinkipv6prefix updateresources[] = new onlinkipv6prefix[resources.length];
for (int i=0;i<resou... | public class class_name {
public static base_responses update(nitro_service client, onlinkipv6prefix resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
onlinkipv6prefix updateresources[] = new onlinkipv6prefix[resources.length];
for (int i=0;i<resou... |
public class class_name {
static int binarySearch(long keys[], int start, int len, long key) {
int high = start + len, low = start - 1, guess;
while (high - low > 1) {
// use >>> for average or we could get an integer overflow.
guess = (high + low) >>> 1;
long guesse... | public class class_name {
static int binarySearch(long keys[], int start, int len, long key) {
int high = start + len, low = start - 1, guess;
while (high - low > 1) {
// use >>> for average or we could get an integer overflow.
guess = (high + low) >>> 1; // depends on control d... |
public class class_name {
public String getStartupUri() {
String result = getSettings().getViewStartup();
if (result == null) {
// no specific startup URI is set, use view from user settings
result = getSettings().getViewUri();
} else {
// reset the startup ... | public class class_name {
public String getStartupUri() {
String result = getSettings().getViewStartup();
if (result == null) {
// no specific startup URI is set, use view from user settings
result = getSettings().getViewUri(); // depends on control dependency: [if], data = [no... |
public class class_name {
protected void handlePostBatchAsNeeded(
boolean resultSetEndReached,
int recordCount,
int eventCount,
BatchContext batchContext
) {
AtomicBoolean shouldEvict = new AtomicBoolean(resultSetEndReached);
// If we read at least one record, it's safe to drop the st... | public class class_name {
protected void handlePostBatchAsNeeded(
boolean resultSetEndReached,
int recordCount,
int eventCount,
BatchContext batchContext
) {
AtomicBoolean shouldEvict = new AtomicBoolean(resultSetEndReached);
// If we read at least one record, it's safe to drop the st... |
public class class_name {
private final void buildIfNeededMap() {
if ( map == null ) {
map = new HashMap<>( items.length );
for ( Entry<String, Value> miv : items ) {
if ( miv == null ) {
break;
}
map.put( miv.getKey()... | public class class_name {
private final void buildIfNeededMap() {
if ( map == null ) {
map = new HashMap<>( items.length ); // depends on control dependency: [if], data = [none]
for ( Entry<String, Value> miv : items ) {
if ( miv == null ) {
break;
... |
public class class_name {
public void marshall(GetMaintenanceWindowRequest getMaintenanceWindowRequest, ProtocolMarshaller protocolMarshaller) {
if (getMaintenanceWindowRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(GetMaintenanceWindowRequest getMaintenanceWindowRequest, ProtocolMarshaller protocolMarshaller) {
if (getMaintenanceWindowRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public void writeVariableAttributes(BaseType bt, DAS das) {
try {
AttributeTable attr = das.getAttributeTable(bt.getEncodedName());
if (attr != null) {
pWrt.print("<textarea name=\""
+ bt.getLongName().replac... | public class class_name {
public void writeVariableAttributes(BaseType bt, DAS das) {
try {
AttributeTable attr = das.getAttributeTable(bt.getEncodedName());
if (attr != null) {
pWrt.print("<textarea name=\""
+ bt.getLongName().replac... |
public class class_name {
public static List<X509GeneralName> getX509GeneralNames(GeneralNames genNames)
{
if (genNames == null) {
return null;
}
GeneralName[] names = genNames.getNames();
List<X509GeneralName> x509names = new ArrayList<X509GeneralName>(names.length);
... | public class class_name {
public static List<X509GeneralName> getX509GeneralNames(GeneralNames genNames)
{
if (genNames == null) {
return null; // depends on control dependency: [if], data = [none]
}
GeneralName[] names = genNames.getNames();
List<X509GeneralName> x509n... |
public class class_name {
public static char[] encode(final byte[] input, final int iOff, final int iLen) {
final int oDataLen = (iLen * CONSTANT_4 + 2) / CONSTANT_3; // output length without padding
final int oLen = ((iLen + 2) / CONSTANT_3) * CONSTANT_4; // output length including padding
char[]... | public class class_name {
public static char[] encode(final byte[] input, final int iOff, final int iLen) {
final int oDataLen = (iLen * CONSTANT_4 + 2) / CONSTANT_3; // output length without padding
final int oLen = ((iLen + 2) / CONSTANT_3) * CONSTANT_4; // output length including padding
char[]... |
public class class_name {
public boolean overlaps(BoundingBox o, double cutoff) {
if (this==o) return true;
// x dimension
if (!areOverlapping(xmin,xmax,o.xmin,o.xmax,cutoff)) {
return false;
}
// y dimension
if (!areOverlapping(ymin,ymax,o.ymin,o.ymax,cutoff)) {
return false;
}
// z dimension
... | public class class_name {
public boolean overlaps(BoundingBox o, double cutoff) {
if (this==o) return true;
// x dimension
if (!areOverlapping(xmin,xmax,o.xmin,o.xmax,cutoff)) {
return false; // depends on control dependency: [if], data = [none]
}
// y dimension
if (!areOverlapping(ymin,ymax,o.ymin,o.ym... |
public class class_name {
public final void setContext(Kind c) {
//NOTE: Put context specific link code here.
switch (c) {
case ALL_CLASSES_FRAME:
case PACKAGE_FRAME:
case IMPLEMENTED_CLASSES:
case SUBCLASSES:
case EXECUTABLE_ELEMENT_COPY:
... | public class class_name {
public final void setContext(Kind c) {
//NOTE: Put context specific link code here.
switch (c) {
case ALL_CLASSES_FRAME:
case PACKAGE_FRAME:
case IMPLEMENTED_CLASSES:
case SUBCLASSES:
case EXECUTABLE_ELEMENT_COPY:
... |
public class class_name {
@Override
public void inject(Configuration config) {
Context baseContext = ContextUtils.discover(config.getContext());
Set<Field> fields = config.getInjectionTargets(InjectionCategory.APPLICATION);
for (Field field : fields) {
try {
if(!field.isAccessible()) fi... | public class class_name {
@Override
public void inject(Configuration config) {
Context baseContext = ContextUtils.discover(config.getContext());
Set<Field> fields = config.getInjectionTargets(InjectionCategory.APPLICATION);
for (Field field : fields) {
try {
if(!field.isAccessible()) fi... |
public class class_name {
private static Map<String, ModelDescription> assigneModelsToViews(Map<ModelDescription,
XLinkConnectorView[]> modelsToViews) {
HashMap<String, ModelDescription> viewsToModels = new HashMap<String, ModelDescription>();
for (ModelDescription modelInfo : modelsToView... | public class class_name {
private static Map<String, ModelDescription> assigneModelsToViews(Map<ModelDescription,
XLinkConnectorView[]> modelsToViews) {
HashMap<String, ModelDescription> viewsToModels = new HashMap<String, ModelDescription>();
for (ModelDescription modelInfo : modelsToView... |
public class class_name {
public NumberExpression<Integer> milliSecond() {
if (milliseconds == null) {
milliseconds = Expressions.numberOperation(Integer.class, Ops.DateTimeOps.MILLISECOND, mixin);
}
return milliseconds;
} } | public class class_name {
public NumberExpression<Integer> milliSecond() {
if (milliseconds == null) {
milliseconds = Expressions.numberOperation(Integer.class, Ops.DateTimeOps.MILLISECOND, mixin); // depends on control dependency: [if], data = [none]
}
return milliseconds;
} } |
public class class_name {
@SuppressWarnings("unchecked")
public <T> T get(String... path) {
ExtensionAware root = searchRoot;
for (String name : path) {
ExtensionContainer children = root.getExtensions();
root = (ExtensionAware) children.getByName(name);
}
return (T) root; // this is pote... | public class class_name {
@SuppressWarnings("unchecked")
public <T> T get(String... path) {
ExtensionAware root = searchRoot;
for (String name : path) {
ExtensionContainer children = root.getExtensions();
root = (ExtensionAware) children.getByName(name); // depends on control dependency: [for], d... |
public class class_name {
private static boolean adjustNumber(Class<?>[] paramTypes, Object[] args, int index) {
if (paramTypes[index].isPrimitive()) {
if (paramTypes[index] == int.class) {
args[index] = LdiIntegerConversionUtil.toInteger(args[index]);
return true;
... | public class class_name {
private static boolean adjustNumber(Class<?>[] paramTypes, Object[] args, int index) {
if (paramTypes[index].isPrimitive()) {
if (paramTypes[index] == int.class) {
args[index] = LdiIntegerConversionUtil.toInteger(args[index]); // depends on control dependen... |
public class class_name {
public boolean addTask(Task task) throws SlotNotFoundException, SlotNotActiveException {
Preconditions.checkNotNull(task);
TaskSlot taskSlot = getTaskSlot(task.getAllocationId());
if (taskSlot != null) {
if (taskSlot.isActive(task.getJobID(), task.getAllocationId())) {
if (task... | public class class_name {
public boolean addTask(Task task) throws SlotNotFoundException, SlotNotActiveException {
Preconditions.checkNotNull(task);
TaskSlot taskSlot = getTaskSlot(task.getAllocationId());
if (taskSlot != null) {
if (taskSlot.isActive(task.getJobID(), task.getAllocationId())) {
if (task... |
public class class_name {
public static int lookup(String text, int filter) {
int type = UNKNOWN;
if (LOOKUP.containsKey(text)) {
type = LOOKUP.get(text);
if (filter != UNKNOWN && !ofType(type, filter)) {
type = UNKNOWN;
}
}
return t... | public class class_name {
public static int lookup(String text, int filter) {
int type = UNKNOWN;
if (LOOKUP.containsKey(text)) {
type = LOOKUP.get(text); // depends on control dependency: [if], data = [none]
if (filter != UNKNOWN && !ofType(type, filter)) {
typ... |
public class class_name {
public boolean compare( byte buf[], int offset ) {
if ( size == 4 ) {
int checksum = ( (buf[offset+0] & 0xff) << 24 ) |
( (buf[offset+1] & 0xff) << 16 ) |
( (buf[offset+2] & 0xff) << 8 ) |
( (buf[offset+3] & ... | public class class_name {
public boolean compare( byte buf[], int offset ) {
if ( size == 4 ) {
int checksum = ( (buf[offset+0] & 0xff) << 24 ) |
( (buf[offset+1] & 0xff) << 16 ) |
( (buf[offset+2] & 0xff) << 8 ) |
( (buf[offset+3] & ... |
public class class_name {
public void commence(HttpServletRequest request, HttpServletResponse response,
AuthenticationException authException) throws IOException, ServletException {
String redirectUrl = null;
if (useForward) {
if (forceHttps && "http".equals(request.getScheme())) {
// First redirect ... | public class class_name {
public void commence(HttpServletRequest request, HttpServletResponse response,
AuthenticationException authException) throws IOException, ServletException {
String redirectUrl = null;
if (useForward) {
if (forceHttps && "http".equals(request.getScheme())) {
// First redirect ... |
public class class_name {
public Instruction add(Instruction _instruction) {
if (head == null) {
head = _instruction;
} else {
_instruction.setPrevExpr(tail);
tail.setNextExpr(_instruction);
}
tail = _instruction;
logger.log(Level.FINE, "After PUSH of " + _in... | public class class_name {
public Instruction add(Instruction _instruction) {
if (head == null) {
head = _instruction; // depends on control dependency: [if], data = [none]
} else {
_instruction.setPrevExpr(tail); // depends on control dependency: [if], data = [none]
tail.setNext... |
public class class_name {
public EClass getIfcMetricValueSelect() {
if (ifcMetricValueSelectEClass == null) {
ifcMetricValueSelectEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(963);
}
return ifcMetricValueSelectEClass;
} } | public class class_name {
public EClass getIfcMetricValueSelect() {
if (ifcMetricValueSelectEClass == null) {
ifcMetricValueSelectEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(963);
// depends on control dependency: [if], data = [none]
}
re... |
public class class_name {
protected boolean isDataTableResultType(DefaultResultSetHandler resultSetHandler)
{
MappedStatement mappedStatement= reflect(resultSetHandler);
List<ResultMap> res=mappedStatement.getResultMaps();
if(res.size()==1&&res.get(0).getType().equals(DataTable.class))
... | public class class_name {
protected boolean isDataTableResultType(DefaultResultSetHandler resultSetHandler)
{
MappedStatement mappedStatement= reflect(resultSetHandler);
List<ResultMap> res=mappedStatement.getResultMaps();
if(res.size()==1&&res.get(0).getType().equals(DataTable.class))
... |
public class class_name {
public static Class getTypeClass(Type type)
{
Class typeClassClass = null;
if (type instanceof Class) {
typeClassClass = (Class) type;
} else if (type instanceof ParameterizedType) {
typeClassClass = (Class) ((ParameterizedType) type).getRa... | public class class_name {
public static Class getTypeClass(Type type)
{
Class typeClassClass = null;
if (type instanceof Class) {
typeClassClass = (Class) type;
} else if (type instanceof ParameterizedType) {
typeClassClass = (Class) ((ParameterizedType) type).getRa... |
public class class_name {
public long getFileOffset(SectionTable table) {
checkArgument(table != null, "section table must not be null");
Optional<SectionHeader> section = maybeGetSectionTableEntry(table);
if (section.isPresent()) {
long sectionRVA = section.get().getAlignedVirtual... | public class class_name {
public long getFileOffset(SectionTable table) {
checkArgument(table != null, "section table must not be null");
Optional<SectionHeader> section = maybeGetSectionTableEntry(table);
if (section.isPresent()) {
long sectionRVA = section.get().getAlignedVirtual... |
public class class_name {
public ListDeadLetterSourceQueuesResult withQueueUrls(String... queueUrls) {
if (this.queueUrls == null) {
setQueueUrls(new com.amazonaws.internal.SdkInternalList<String>(queueUrls.length));
}
for (String ele : queueUrls) {
this.queueUrls.add(el... | public class class_name {
public ListDeadLetterSourceQueuesResult withQueueUrls(String... queueUrls) {
if (this.queueUrls == null) {
setQueueUrls(new com.amazonaws.internal.SdkInternalList<String>(queueUrls.length)); // depends on control dependency: [if], data = [none]
}
for (Strin... |
public class class_name {
public String extractUserName() {
final String username = getUsername();
if (null != username && !"".equals(username)) {
return username;
}
return extractUserName(getHostname());
} } | public class class_name {
public String extractUserName() {
final String username = getUsername();
if (null != username && !"".equals(username)) {
return username; // depends on control dependency: [if], data = [none]
}
return extractUserName(getHostname());
} } |
public class class_name {
static Proxy parseProxySettings(String spec) {
try {
if (spec == null || spec.length() == 0) {
return null;
}
return new Proxy(spec);
} catch (URISyntaxException e) {
return null;
}
} } | public class class_name {
static Proxy parseProxySettings(String spec) {
try {
if (spec == null || spec.length() == 0) {
return null; // depends on control dependency: [if], data = [none]
}
return new Proxy(spec); // depends on control dependency: [try], dat... |
public class class_name {
@Override
public EClass getIfcShapeModel() {
if (ifcShapeModelEClass == null) {
ifcShapeModelEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(596);
}
return ifcShapeModelEClass;
} } | public class class_name {
@Override
public EClass getIfcShapeModel() {
if (ifcShapeModelEClass == null) {
ifcShapeModelEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(596);
// depends on control dependency: [if], data = [none]
}
return ifcShapeM... |
public class class_name {
public static boolean checkProcessWatchdog(final Watchdog watchdogAnnotation, final ProceedingJoinPoint proceedingJoinPoint, final Throwable throwable) {
// check if watchdog aspect processing is deactivated by annotation
if (watchdogAnnotation != null && watchdogAnnotation.is... | public class class_name {
public static boolean checkProcessWatchdog(final Watchdog watchdogAnnotation, final ProceedingJoinPoint proceedingJoinPoint, final Throwable throwable) {
// check if watchdog aspect processing is deactivated by annotation
if (watchdogAnnotation != null && watchdogAnnotation.is... |
public class class_name {
protected int _nextsib(int identity)
{
// Boiler-plate code for each of the _xxx functions, except for the array.
int info = (identity >= m_size) ? NOTPROCESSED : m_nextsib.elementAt(identity);
// Check to see if the information requested has been processed, and,
// if not,... | public class class_name {
protected int _nextsib(int identity)
{
// Boiler-plate code for each of the _xxx functions, except for the array.
int info = (identity >= m_size) ? NOTPROCESSED : m_nextsib.elementAt(identity);
// Check to see if the information requested has been processed, and,
// if not,... |
public class class_name {
public static List<String> getExpressionsNames(ReportLayout layout) {
List<String> expressions = new LinkedList<String>();
for (Band band : layout.getBands()) {
for (int i = 0, rows = band.getRowCount(); i < rows; i++) {
List<BandElement> list = band.getRow(i);
for (BandElement... | public class class_name {
public static List<String> getExpressionsNames(ReportLayout layout) {
List<String> expressions = new LinkedList<String>();
for (Band band : layout.getBands()) {
for (int i = 0, rows = band.getRowCount(); i < rows; i++) {
List<BandElement> list = band.getRow(i);
for (BandElement... |
public class class_name {
protected boolean podRunning(Json podStatus) {
if(podStatus == null) {
return false;
}
/*
* A pod can only be considered 'running' if the following conditions are all true:
* 1. status.phase == "Running",
* 2. status.mess... | public class class_name {
protected boolean podRunning(Json podStatus) {
if(podStatus == null) {
return false; // depends on control dependency: [if], data = [none]
}
/*
* A pod can only be considered 'running' if the following conditions are all true:
* 1... |
public class class_name {
public void setPeriodBeforeEnd(ReadablePeriod period) {
if (period == null) {
setStartMillis(getEndMillis());
} else {
setStartMillis(getChronology().add(period, getEndMillis(), -1));
}
} } | public class class_name {
public void setPeriodBeforeEnd(ReadablePeriod period) {
if (period == null) {
setStartMillis(getEndMillis()); // depends on control dependency: [if], data = [none]
} else {
setStartMillis(getChronology().add(period, getEndMillis(), -1)); // depends on c... |
public class class_name {
static void appendValues(final ResultRow rs,
final Appender ap,
final Charset charset,
final Formatting fmt,
final Iterator<ColumnType> cols,
final... | public class class_name {
static void appendValues(final ResultRow rs,
final Appender ap,
final Charset charset,
final Formatting fmt,
final Iterator<ColumnType> cols,
final... |
public class class_name {
public void marshall(ResolveCaseRequest resolveCaseRequest, ProtocolMarshaller protocolMarshaller) {
if (resolveCaseRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... | public class class_name {
public void marshall(ResolveCaseRequest resolveCaseRequest, ProtocolMarshaller protocolMarshaller) {
if (resolveCaseRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... |
public class class_name {
public EClass getIfcLabel() {
if (ifcLabelEClass == null) {
ifcLabelEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers()
.get(693);
}
return ifcLabelEClass;
} } | public class class_name {
public EClass getIfcLabel() {
if (ifcLabelEClass == null) {
ifcLabelEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers()
.get(693);
// depends on control dependency: [if], data = [none]
}
return ifcLabelEClass;
} } |
public class class_name {
public ScopeNode callMixin(String name, ArgumentsNode arguments) {
List<ExpressionGroupNode> argumentList = (arguments != null) ? NodeTreeUtils.getChildren(arguments, ExpressionGroupNode.class) : Collections.<ExpressionGroupNode>emptyList();
if (argumentList.size() > _paramete... | public class class_name {
public ScopeNode callMixin(String name, ArgumentsNode arguments) {
List<ExpressionGroupNode> argumentList = (arguments != null) ? NodeTreeUtils.getChildren(arguments, ExpressionGroupNode.class) : Collections.<ExpressionGroupNode>emptyList();
if (argumentList.size() > _paramete... |
public class class_name {
public final Object fe(Object... args) {
if (GWT.getUncaughtExceptionHandler() != null) {
try {
return f(args);
} catch (Exception e) {
GWT.getUncaughtExceptionHandler().onUncaughtException(e);
}
return true;
}
return f(args);
} } | public class class_name {
public final Object fe(Object... args) {
if (GWT.getUncaughtExceptionHandler() != null) {
try {
return f(args); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
GWT.getUncaughtExceptionHandler().onUncaughtException(e);
} // d... |
public class class_name {
private static boolean isRunningInWAS() {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(TRACE, "isRunningInWAS");
}
if (inWAS == null) {
inWAS = Boolean.TRUE;
}
if (TraceComponent.isAnyTracin... | public class class_name {
private static boolean isRunningInWAS() {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(TRACE, "isRunningInWAS"); // depends on control dependency: [if], data = [none]
}
if (inWAS == null) {
inWAS = Boolean.T... |
public class class_name {
public static void checkForMisplacedScopeAnnotations(
Class<?> type, Object source, Errors errors) {
if (Classes.isConcrete(type)) {
return;
}
Class<? extends Annotation> scopeAnnotation = findScopeAnnotation(errors, type);
if (scopeAnnotation != null
// W... | public class class_name {
public static void checkForMisplacedScopeAnnotations(
Class<?> type, Object source, Errors errors) {
if (Classes.isConcrete(type)) {
return; // depends on control dependency: [if], data = [none]
}
Class<? extends Annotation> scopeAnnotation = findScopeAnnotation(error... |
public class class_name {
public static List<TZID> getAvailableIDs(String provider) {
if (provider.equals("INCLUDE_ALIAS")) {
return zonalKeys.availablesAndAliases;
}
ZoneModelProvider zp = getProvider(provider);
if (zp == null) {
return Collections.emptyList(... | public class class_name {
public static List<TZID> getAvailableIDs(String provider) {
if (provider.equals("INCLUDE_ALIAS")) {
return zonalKeys.availablesAndAliases; // depends on control dependency: [if], data = [none]
}
ZoneModelProvider zp = getProvider(provider);
if (z... |
public class class_name {
public static String escape(String input, char echar, char[] special) {
StringBuilder sb = new StringBuilder();
for (Character character : special) {
sb.append(character);
}
sb.append(echar);
String s = Matcher.quoteReplacement(new String(ne... | public class class_name {
public static String escape(String input, char echar, char[] special) {
StringBuilder sb = new StringBuilder();
for (Character character : special) {
sb.append(character); // depends on control dependency: [for], data = [character]
}
sb.append(echar... |
public class class_name {
public synchronized List getList() {
if (tc.isEntryEnabled())
SibTr.entry(tc, "getList");
// Remove a List from the pool
List list = (List) listPool.remove();
// If the list is null then there was none available in the pool
// So create a ... | public class class_name {
public synchronized List getList() {
if (tc.isEntryEnabled())
SibTr.entry(tc, "getList");
// Remove a List from the pool
List list = (List) listPool.remove();
// If the list is null then there was none available in the pool
// So create a ... |
public class class_name {
public DescribeAutoScalingGroupsRequest withAutoScalingGroupNames(String... autoScalingGroupNames) {
if (this.autoScalingGroupNames == null) {
setAutoScalingGroupNames(new com.amazonaws.internal.SdkInternalList<String>(autoScalingGroupNames.length));
}
for ... | public class class_name {
public DescribeAutoScalingGroupsRequest withAutoScalingGroupNames(String... autoScalingGroupNames) {
if (this.autoScalingGroupNames == null) {
setAutoScalingGroupNames(new com.amazonaws.internal.SdkInternalList<String>(autoScalingGroupNames.length)); // depends on control ... |
public class class_name {
private String createConfiguration() {
CmsResourceManager resManager = OpenCms.getResourceManager();
if (resManager == null) {
// can happen during the OpenCms startup
return "";
}
List<I_CmsResourceType> resTypes = resManager.ge... | public class class_name {
private String createConfiguration() {
CmsResourceManager resManager = OpenCms.getResourceManager();
if (resManager == null) {
// can happen during the OpenCms startup
return "";
// depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public List<Long> getOffsets(OffsetRequest offsetRequest) {
ILog log = getLog(offsetRequest.topic, offsetRequest.partition);
if (log != null) {
return log.getOffsetsBefore(offsetRequest);
}
return ILog.EMPTY_OFFSETS;
} } | public class class_name {
public List<Long> getOffsets(OffsetRequest offsetRequest) {
ILog log = getLog(offsetRequest.topic, offsetRequest.partition);
if (log != null) {
return log.getOffsetsBefore(offsetRequest); // depends on control dependency: [if], data = [none]
}
retur... |
public class class_name {
public static String getStatusLabelDetailsInString(final String value, final String style, final String id) {
final StringBuilder val = new StringBuilder();
if (!StringUtils.isEmpty(value)) {
val.append("value:").append(value).append(",");
}
if (!St... | public class class_name {
public static String getStatusLabelDetailsInString(final String value, final String style, final String id) {
final StringBuilder val = new StringBuilder();
if (!StringUtils.isEmpty(value)) {
val.append("value:").append(value).append(","); // depends on control dep... |
public class class_name {
private void writeText(String value) {
if(this.rtfParser.isNewGroup()) {
this.rtfDoc.add(new RtfDirectContent("{"));
this.rtfParser.setNewGroup(false);
}
if(value.length() > 0) {
this.rtfDoc.add(new RtfDirectContent(value));
}
} } | public class class_name {
private void writeText(String value) {
if(this.rtfParser.isNewGroup()) {
this.rtfDoc.add(new RtfDirectContent("{")); // depends on control dependency: [if], data = [none]
this.rtfParser.setNewGroup(false); // depends on control dependency: [if], data = [none]
}
if(value.length() >... |
public class class_name {
protected void launchTasks(List<LaunchableTask> tasks) {
// Group the tasks by offer
Map<Protos.Offer, List<LaunchableTask>> tasksGroupByOffer = new HashMap<>();
for (LaunchableTask task : tasks) {
List<LaunchableTask> subTasks = tasksGroupByOffer.get(task.offer);
if (... | public class class_name {
protected void launchTasks(List<LaunchableTask> tasks) {
// Group the tasks by offer
Map<Protos.Offer, List<LaunchableTask>> tasksGroupByOffer = new HashMap<>();
for (LaunchableTask task : tasks) {
List<LaunchableTask> subTasks = tasksGroupByOffer.get(task.offer);
if (... |
public class class_name {
@Override
public T next() {
if (hasNext()) {
T current = next;
next = null;
return current;
} else {
throw new NoSuchElementException();
}
} } | public class class_name {
@Override
public T next() {
if (hasNext()) {
T current = next;
next = null; // depends on control dependency: [if], data = [none]
return current; // depends on control dependency: [if], data = [none]
} else {
throw new NoSuchElementException();
}
} } |
public class class_name {
@SuppressWarnings("unchecked")
public static <K,V> Region<K, V> getRegion(String regionName, JMX jmx)
{
Region<K, V> region = getClientCache(jmx).getRegion(regionName);
if (region == null)
{
//check if region exist on server
if(isExistingRegionOnServer(regionName,jmx))
... | public class class_name {
@SuppressWarnings("unchecked")
public static <K,V> Region<K, V> getRegion(String regionName, JMX jmx)
{
Region<K, V> region = getClientCache(jmx).getRegion(regionName);
if (region == null)
{
//check if region exist on server
if(isExistingRegionOnServer(regionName,jmx))
... |
public class class_name {
public static boolean isEqual(Type type1, Type type2)
{
if(type1 == null) {
return type2 == null;
}
if(type2 == null) {
return type1 == null;
}
if(!(type1 instanceof ParameterizedType)) {
return type1.equals(type2);
}
// handle para... | public class class_name {
public static boolean isEqual(Type type1, Type type2)
{
if(type1 == null) {
return type2 == null;
// depends on control dependency: [if], data = [none]
}
if(type2 == null) {
return type1 == null;
// depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public static void checkId(CmsUUID id, boolean canBeNull) {
if (canBeNull && (id == null)) {
return;
}
if ((!canBeNull && (id == null)) || id.isNullUUID()) {
throw new IllegalArgumentException(Messages.get().key(Messages.ERR_INVALID_UUID_1, id)... | public class class_name {
public static void checkId(CmsUUID id, boolean canBeNull) {
if (canBeNull && (id == null)) {
return; // depends on control dependency: [if], data = [none]
}
if ((!canBeNull && (id == null)) || id.isNullUUID()) {
throw new IllegalArgumentExcepti... |
public class class_name {
public RoadPath solve(Point2D<?, ?> startPoint, Point2D<?, ?> endPoint, RoadNetwork network) {
assert network != null && startPoint != null && endPoint != null;
final RoadSegment startSegment = network.getNearestSegment(startPoint);
if (startSegment != null) {
final RoadSegment endSe... | public class class_name {
public RoadPath solve(Point2D<?, ?> startPoint, Point2D<?, ?> endPoint, RoadNetwork network) {
assert network != null && startPoint != null && endPoint != null;
final RoadSegment startSegment = network.getNearestSegment(startPoint);
if (startSegment != null) {
final RoadSegment endSe... |
public class class_name {
public boolean isAuthorized(final String username, final String resource) {
if (username == null || resource == null)
return false;
if (getServerConfig() != null) {
// getUser() will throw an IllegalArgumentException if username is null or empty.
// However, a null ... | public class class_name {
public boolean isAuthorized(final String username, final String resource) {
if (username == null || resource == null)
return false;
if (getServerConfig() != null) {
// getUser() will throw an IllegalArgumentException if username is null or empty.
// However, a null ... |
public class class_name {
public static void parkAndSerialize(final FiberWriter writer) {
try {
Fiber.parkAndSerialize(writer);
} catch (SuspendExecution e) {
throw RuntimeSuspendExecution.of(e);
}
} } | public class class_name {
public static void parkAndSerialize(final FiberWriter writer) {
try {
Fiber.parkAndSerialize(writer); // depends on control dependency: [try], data = [none]
} catch (SuspendExecution e) {
throw RuntimeSuspendExecution.of(e);
} // depends on cont... |
public class class_name {
public void add(AsciiString name, String value){
if(name==null || value==null)
return;
Header head = entry(name, true);
if(head.value==null)
head.value = value;
else{
Header newHeader = newHeader(name);
newHeader.... | public class class_name {
public void add(AsciiString name, String value){
if(name==null || value==null)
return;
Header head = entry(name, true);
if(head.value==null)
head.value = value;
else{
Header newHeader = newHeader(name);
newHeader.... |
public class class_name {
protected void countTerms(TermedDocument termedDocument,
EntityStatistics entityStatistics) {
entityStatistics.countLabels += termedDocument.getLabels().size();
// for (MonolingualTextValue mtv : termedDocument.getLabels().values())
// {
// countKey(usageStatistics.labelCounts, mtv... | public class class_name {
protected void countTerms(TermedDocument termedDocument,
EntityStatistics entityStatistics) {
entityStatistics.countLabels += termedDocument.getLabels().size();
// for (MonolingualTextValue mtv : termedDocument.getLabels().values())
// {
// countKey(usageStatistics.labelCounts, mtv... |
public class class_name {
private void doServerShutdown() {
stopConnectionLostTimer();
if( decoders != null ) {
for( WebSocketWorker w : decoders ) {
w.interrupt();
}
}
if( selector != null ) {
try {
selector.close();
} catch ( IOException e ) {
log.error( "IOException during selector.c... | public class class_name {
private void doServerShutdown() {
stopConnectionLostTimer();
if( decoders != null ) {
for( WebSocketWorker w : decoders ) {
w.interrupt(); // depends on control dependency: [for], data = [w]
}
}
if( selector != null ) {
try {
selector.close(); // depends on control de... |
public class class_name {
private Object internalGetSuperType(JvmType rawType) {
if (rawType == type) {
return this;
}
if (isPrimitive() || isPrimitiveVoid()) {
return null;
}
EClass otherEClass = rawType.eClass();
if (otherEClass == TypesPackage.Literals.JVM_PRIMITIVE_TYPE || otherEClass == TypesPac... | public class class_name {
private Object internalGetSuperType(JvmType rawType) {
if (rawType == type) {
return this; // depends on control dependency: [if], data = [none]
}
if (isPrimitive() || isPrimitiveVoid()) {
return null; // depends on control dependency: [if], data = [none]
}
EClass otherEClass ... |
public class class_name {
@Override
public int iamin(INDArray arr) {
if (arr.isSparse()) {
return Nd4j.getSparseBlasWrapper().level1().iamin(arr);
} else {
throw new UnsupportedOperationException();
}
} } | public class class_name {
@Override
public int iamin(INDArray arr) {
if (arr.isSparse()) {
return Nd4j.getSparseBlasWrapper().level1().iamin(arr); // depends on control dependency: [if], data = [none]
} else {
throw new UnsupportedOperationException();
}
} } |
public class class_name {
public static String cutToIndexOf(String string, final String substring) {
int i = string.indexOf(substring);
if (i != -1) {
string = string.substring(0, i);
}
return string;
} } | public class class_name {
public static String cutToIndexOf(String string, final String substring) {
int i = string.indexOf(substring);
if (i != -1) {
string = string.substring(0, i); // depends on control dependency: [if], data = [none]
}
return string;
} } |
public class class_name {
public void addReferencedProperties(String identifier, List<PropertyData> refProperties)
{
boolean inTransaction = cache.isTransactionActive();
try
{
if (!inTransaction)
{
cache.beginTransaction();
}
cache.setLocal(... | public class class_name {
public void addReferencedProperties(String identifier, List<PropertyData> refProperties)
{
boolean inTransaction = cache.isTransactionActive();
try
{
if (!inTransaction)
{
cache.beginTransaction();
// depends on control dependency: [i... |
public class class_name {
void generateIronjacamarXml(Definition def, String outputDir)
{
try
{
String resourceDir = outputDir + File.separatorChar + "src" + File.separatorChar +
"main" + File.separatorChar + "resources";
writeIronjacamarXml(def, resourceDir);
... | public class class_name {
void generateIronjacamarXml(Definition def, String outputDir)
{
try
{
String resourceDir = outputDir + File.separatorChar + "src" + File.separatorChar +
"main" + File.separatorChar + "resources";
writeIronjacamarXml(def, resourceDir); // depends... |
public class class_name {
public static MediaType fromString(String text) {
Matcher matcher = MEDIA_TYPE_PATTERN.matcher(text);
if (!matcher.matches()) {
throw new IllegalArgumentException("Invalid media type string: " + text);
}
String type;
String subType;
... | public class class_name {
public static MediaType fromString(String text) {
Matcher matcher = MEDIA_TYPE_PATTERN.matcher(text);
if (!matcher.matches()) {
throw new IllegalArgumentException("Invalid media type string: " + text);
}
String type;
String subType;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.