code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public static void annotateOnHttpResponseBuffer(String key) {
TracyThreadContext ctx = threadContext.get();
if (isValidContext(ctx)) {
ctx.annotateOnHttpResponseBuffer(key);
}
} } | public class class_name {
public static void annotateOnHttpResponseBuffer(String key) {
TracyThreadContext ctx = threadContext.get();
if (isValidContext(ctx)) {
ctx.annotateOnHttpResponseBuffer(key); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public static String getClassPath(Class<?> c) {
String strClassFullName = c.getName();
String strClassName = strClassFullName.substring(strClassFullName
.lastIndexOf(".") + 1);
String strClassPathName = getClassPathName(c);
ClassLoader cl = c.getClassLoader();
if (cl == ... | public class class_name {
public static String getClassPath(Class<?> c) {
String strClassFullName = c.getName();
String strClassName = strClassFullName.substring(strClassFullName
.lastIndexOf(".") + 1);
String strClassPathName = getClassPathName(c);
ClassLoader cl = c.getClassLoader();
if (cl == ... |
public class class_name {
@Override
public String getModuleName() {
String moduleName = moduleRef.getName();
if (moduleName == null || moduleName.isEmpty()) {
moduleName = moduleNameFromModuleDescriptor;
}
return moduleName == null || moduleName.isEmpty() ? null : module... | public class class_name {
@Override
public String getModuleName() {
String moduleName = moduleRef.getName();
if (moduleName == null || moduleName.isEmpty()) {
moduleName = moduleNameFromModuleDescriptor; // depends on control dependency: [if], data = [none]
}
return modu... |
public class class_name {
public final String getCopyright()
{
if ( copyright == null )
{
StringBuilder sb = new StringBuilder();
sb.append( COPYRIGHT_PREAMBLE )
.append( " " )
.append( Calendar.getInstance().get( Calendar.YEAR ) )
.... | public class class_name {
public final String getCopyright()
{
if ( copyright == null )
{
StringBuilder sb = new StringBuilder();
sb.append( COPYRIGHT_PREAMBLE )
.append( " " )
.append( Calendar.getInstance().get( Calendar.YEAR ) )
.... |
public class class_name {
public void setDatabase(String databaseKey) {
m_databaseKey = databaseKey;
String vfsDriver;
String userDriver;
String projectDriver;
String historyDriver;
String subscriptionDriver;
String sqlManager;
vfsDriver = getDbProperty(... | public class class_name {
public void setDatabase(String databaseKey) {
m_databaseKey = databaseKey;
String vfsDriver;
String userDriver;
String projectDriver;
String historyDriver;
String subscriptionDriver;
String sqlManager;
vfsDriver = getDbProperty(... |
public class class_name {
@Override
public boolean createParentDirectory(PrintStream stdout, File file) {
File parent = file.getParentFile();
if (parent == null) {
return true;
}
if (!parent.exists()) {
if (!createParentDirectory(stdout, parent)) {
... | public class class_name {
@Override
public boolean createParentDirectory(PrintStream stdout, File file) {
File parent = file.getParentFile();
if (parent == null) {
return true; // depends on control dependency: [if], data = [none]
}
if (!parent.exists()) {
if... |
public class class_name {
@SuppressWarnings({ "rawtypes", "unchecked" })
protected ISynchronizationPoint<? extends Exception> serializeMapValue(
SerializationContext context, Map<?,?> map, TypeDefinition typeDef, String path, List<SerializationRule> rules
) {
TypeDefinition type = new TypeDefinition(MapEntry... | public class class_name {
@SuppressWarnings({ "rawtypes", "unchecked" })
protected ISynchronizationPoint<? extends Exception> serializeMapValue(
SerializationContext context, Map<?,?> map, TypeDefinition typeDef, String path, List<SerializationRule> rules
) {
TypeDefinition type = new TypeDefinition(MapEntry... |
public class class_name {
@CheckForNull
public static OffsetDateTime parseOffsetDateTimeQuietly(@Nullable String s) {
OffsetDateTime datetime = null;
if (s != null) {
try {
datetime = parseOffsetDateTime(s);
} catch (RuntimeException e) {
// ignore
}
}
return dateti... | public class class_name {
@CheckForNull
public static OffsetDateTime parseOffsetDateTimeQuietly(@Nullable String s) {
OffsetDateTime datetime = null;
if (s != null) {
try {
datetime = parseOffsetDateTime(s); // depends on control dependency: [try], data = [none]
} catch (RuntimeException ... |
public class class_name {
@Override public Double getCurrency(String name)
{
Double value = getDouble(name);
if (value != null)
{
value = Double.valueOf(value.doubleValue() / 100);
}
return (value);
} } | public class class_name {
@Override public Double getCurrency(String name)
{
Double value = getDouble(name);
if (value != null)
{
value = Double.valueOf(value.doubleValue() / 100); // depends on control dependency: [if], data = [(value]
}
return (value);
} } |
public class class_name {
private void swapByteOrder() {
// NB: we are setting bigEndian to be opposite the system arch
String arch = System.getProperty("os.arch");
if (arch.equals("x86") || // Windows, Linux
arch.equals("arm") || // Window CE
... | public class class_name {
private void swapByteOrder() {
// NB: we are setting bigEndian to be opposite the system arch
String arch = System.getProperty("os.arch");
if (arch.equals("x86") || // Windows, Linux
arch.equals("arm") || // Window CE
... |
public class class_name {
@Override
public void onUnregistered(Context context) {
if(notificationCallback != null) {
notificationCallback.onUnregister(context);
if(logger != null && logger.isDebugEnabled()) {
logger.debug("SocializeC2DMReceiver successfully unregistered");
}
}
else {
logWarn... | public class class_name {
@Override
public void onUnregistered(Context context) {
if(notificationCallback != null) {
notificationCallback.onUnregister(context); // depends on control dependency: [if], data = [none]
if(logger != null && logger.isDebugEnabled()) {
logger.debug("SocializeC2DMReceiver suc... |
public class class_name {
public static SkbShellArgument[] newArgumentArray(SkbShellArgument ... args){
if(args==null){
return null;
}
Set<SkbShellArgument> ret = new HashSet<>();
for(SkbShellArgument arg : args){
if(arg!=null){
ret.add(arg);
}
}
return ret.toArray(new SkbShellArgument[args.le... | public class class_name {
public static SkbShellArgument[] newArgumentArray(SkbShellArgument ... args){
if(args==null){
return null; // depends on control dependency: [if], data = [none]
}
Set<SkbShellArgument> ret = new HashSet<>();
for(SkbShellArgument arg : args){
if(arg!=null){
ret.add(arg); // d... |
public class class_name {
@Override
public RequestCtx handleRequest(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {
if (logger.isDebugEnabled()) {
logger.debug("{}/handleRequest!", this.getClass().g... | public class class_name {
@Override
public RequestCtx handleRequest(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {
if (logger.isDebugEnabled()) {
logger.debug("{}/handleRequest!", this.getClass().g... |
public class class_name {
private void trainRuleOnInstance(int ruleID, Instance instance) {
//System.out.println("Processor:"+this.processorId+": Rule:"+ruleID+" -> Counter="+counter);
Iterator<ActiveRule> ruleIterator= this.ruleSet.iterator();
while (ruleIterator.hasNext()) {
ActiveRule rule = ruleIter... | public class class_name {
private void trainRuleOnInstance(int ruleID, Instance instance) {
//System.out.println("Processor:"+this.processorId+": Rule:"+ruleID+" -> Counter="+counter);
Iterator<ActiveRule> ruleIterator= this.ruleSet.iterator();
while (ruleIterator.hasNext()) {
ActiveRule rule = ruleIter... |
public class class_name {
private void ensureClassRef(ReferenceDescriptorDef refDef, String checkLevel) throws ConstraintException
{
if (CHECKLEVEL_NONE.equals(checkLevel))
{
return;
}
if (!refDef.hasProperty(PropertyHelper.OJB_PROPERTY_CLASS_REF))
{
... | public class class_name {
private void ensureClassRef(ReferenceDescriptorDef refDef, String checkLevel) throws ConstraintException
{
if (CHECKLEVEL_NONE.equals(checkLevel))
{
return;
}
if (!refDef.hasProperty(PropertyHelper.OJB_PROPERTY_CLASS_REF))
{
... |
public class class_name {
private void parseFunctionDefinitions(BeanDefinitionBuilder builder, Element element) {
ManagedMap<String, Object> functions = new ManagedMap<String, Object>();
for (Element function : DomUtils.getChildElementsByTagName(element, "function")) {
if (function.hasAttri... | public class class_name {
private void parseFunctionDefinitions(BeanDefinitionBuilder builder, Element element) {
ManagedMap<String, Object> functions = new ManagedMap<String, Object>();
for (Element function : DomUtils.getChildElementsByTagName(element, "function")) {
if (function.hasAttri... |
public class class_name {
private void markGoogModuleExportsAsConst(Module googModule) {
for (Binding binding : googModule.namespace().values()) {
Node exportedNode = binding.originatingExport().exportNode();
undeclaredNamesForClosure.add(exportedNode);
}
} } | public class class_name {
private void markGoogModuleExportsAsConst(Module googModule) {
for (Binding binding : googModule.namespace().values()) {
Node exportedNode = binding.originatingExport().exportNode();
undeclaredNamesForClosure.add(exportedNode); // depends on control dependency: [for], data = [... |
public class class_name {
public void setRow(int i, double value) {
VectorIterator it = iteratorOfRow(i);
while (it.hasNext()) {
it.next();
it.set(value);
}
} } | public class class_name {
public void setRow(int i, double value) {
VectorIterator it = iteratorOfRow(i);
while (it.hasNext()) {
it.next(); // depends on control dependency: [while], data = [none]
it.set(value); // depends on control dependency: [while], data = [none]
}... |
public class class_name {
public String getNameByReflection(Object obj)
{
Object name = null;
try {
java.lang.reflect.Method method = obj.getClass().getMethod("getName");
if (method != null)
name = method.invoke(obj);
} catch (Exception e... | public class class_name {
public String getNameByReflection(Object obj)
{
Object name = null;
try {
java.lang.reflect.Method method = obj.getClass().getMethod("getName");
if (method != null)
name = method.invoke(obj);
} catch (Exception e... |
public class class_name {
public synchronized WroModel transform(final WroModel input) {
final WroModel model = input;
for (final Group group : model.getGroups()) {
final List<Resource> resources = group.getResources();
for (final Resource resource : resources) {
processResource(group, res... | public class class_name {
public synchronized WroModel transform(final WroModel input) {
final WroModel model = input;
for (final Group group : model.getGroups()) {
final List<Resource> resources = group.getResources();
for (final Resource resource : resources) {
processResource(group, res... |
public class class_name {
public void setOutboundInterface(InetAddress inetAddress) {
if(inetAddress == null) {
throw new NullPointerException("outbound Interface param shouldn't be null");
}
String address = inetAddress.getHostAddress();
List<SipURI> list = this.sipFactoryImpl.getSipNetworkInterfaceMa... | public class class_name {
public void setOutboundInterface(InetAddress inetAddress) {
if(inetAddress == null) {
throw new NullPointerException("outbound Interface param shouldn't be null");
}
String address = inetAddress.getHostAddress();
List<SipURI> list = this.sipFactoryImpl.getSipNetworkInterfaceMa... |
public class class_name {
static private boolean isInsideCharClass(String s, int pos) {
boolean openBracketFound = false;
boolean closeBracketFound = false;
// find last non-escaped open-bracket
String s2 = s.substring(0, pos);
int posOpen = pos;
while ((posOpen = s2.l... | public class class_name {
static private boolean isInsideCharClass(String s, int pos) {
boolean openBracketFound = false;
boolean closeBracketFound = false;
// find last non-escaped open-bracket
String s2 = s.substring(0, pos);
int posOpen = pos;
while ((posOpen = s2.l... |
public class class_name {
public Histogram<T> setSignificantFigures( int significantFigures ) {
if (significantFigures != this.significantFigures) {
this.significantFigures = significantFigures;
this.bucketWidth = null;
this.buckets.clear();
}
return this;
... | public class class_name {
public Histogram<T> setSignificantFigures( int significantFigures ) {
if (significantFigures != this.significantFigures) {
this.significantFigures = significantFigures; // depends on control dependency: [if], data = [none]
this.bucketWidth = null; // depends on... |
public class class_name {
public void remove(T element, Class<?> accessibleClass) {
while (accessibleClass != null && accessibleClass != this.baseClass) {
this.removeSingle(element, accessibleClass);
for (Class<?> interf : accessibleClass.getInterfaces()) {
this.removeSingle(element, interf);
}
acc... | public class class_name {
public void remove(T element, Class<?> accessibleClass) {
while (accessibleClass != null && accessibleClass != this.baseClass) {
this.removeSingle(element, accessibleClass); // depends on control dependency: [while], data = [none]
for (Class<?> interf : accessibleClass.getInterfaces(... |
public class class_name {
public void batch(Runnable transaction) {
// TODO: 不支持嵌套事务
try (Connection c = pool.getConnection()) {
boolean commit = c.getAutoCommit();
try {
c.setAutoCommit(false);
} catch (SQLException e) {
throw new TransactionException("transaction setAutoComm... | public class class_name {
public void batch(Runnable transaction) {
// TODO: 不支持嵌套事务
try (Connection c = pool.getConnection()) {
boolean commit = c.getAutoCommit();
try {
c.setAutoCommit(false); // depends on control dependency: [try], data = [none]
} catch (SQLException e) {
... |
public class class_name {
public static CompileStates instance(Context context) {
CompileStates instance = context.get(compileStatesKey);
if (instance == null) {
instance = new CompileStates(context);
}
return instance;
} } | public class class_name {
public static CompileStates instance(Context context) {
CompileStates instance = context.get(compileStatesKey);
if (instance == null) {
instance = new CompileStates(context); // depends on control dependency: [if], data = [none]
}
return instance;
... |
public class class_name {
public AttributeValue withNS(java.util.Collection<String> nS) {
if (nS == null) {
this.nS = null;
} else {
java.util.List<String> nSCopy = new java.util.ArrayList<String>(nS.size());
nSCopy.addAll(nS);
this.nS = nSCopy;
}... | public class class_name {
public AttributeValue withNS(java.util.Collection<String> nS) {
if (nS == null) {
this.nS = null; // depends on control dependency: [if], data = [none]
} else {
java.util.List<String> nSCopy = new java.util.ArrayList<String>(nS.size());
nSCo... |
public class class_name {
public final void selectNavigationPreference(final int index,
@Nullable final Bundle arguments) {
if (isAdapterCreated()) {
adapter.selectNavigationPreference(index, arguments);
}
} } | public class class_name {
public final void selectNavigationPreference(final int index,
@Nullable final Bundle arguments) {
if (isAdapterCreated()) {
adapter.selectNavigationPreference(index, arguments); // depends on control dependency: [if], data =... |
public class class_name {
@SuppressWarnings("unchecked")
public static <T> T[] toArray(Collection<T> collection, Class<T> clazz) {
if (collection == null) {
return null;
}
return collection.toArray((T[]) Array.newInstance(clazz, collection.size()));
} } | public class class_name {
@SuppressWarnings("unchecked")
public static <T> T[] toArray(Collection<T> collection, Class<T> clazz) {
if (collection == null) {
return null; // depends on control dependency: [if], data = [none]
}
return collection.toArray((T[]) Array.newInstance(cla... |
public class class_name {
public JSONObject makeHttpRequest(String url) throws IOException {
InputStream is = null;
JSONObject jObj = null;
String json = null;
// Making HTTP request
try {
is = new URL(url).openStream();
} catch (Exception ex) {
... | public class class_name {
public JSONObject makeHttpRequest(String url) throws IOException {
InputStream is = null;
JSONObject jObj = null;
String json = null;
// Making HTTP request
try {
is = new URL(url).openStream();
} catch (Exception ex) {
... |
public class class_name {
public static void validatePath(final Session session, final String path) {
final NamespaceRegistry namespaceRegistry = getNamespaceRegistry(session);
final String[] pathSegments = path.replaceAll("^/+", "").replaceAll("/+$", "").split("/");
for (final String segment ... | public class class_name {
public static void validatePath(final Session session, final String path) {
final NamespaceRegistry namespaceRegistry = getNamespaceRegistry(session);
final String[] pathSegments = path.replaceAll("^/+", "").replaceAll("/+$", "").split("/");
for (final String segment ... |
public class class_name {
@Override
public void getSharesById(SocializeSession session, ShareListener listener, long... ids) {
if(ids != null) {
String[] strIds = new String[ids.length];
for (int i = 0; i < ids.length; i++) {
strIds[i] = String.valueOf(ids[i]);
}
listAsync(session, ENDPOINT,... | public class class_name {
@Override
public void getSharesById(SocializeSession session, ShareListener listener, long... ids) {
if(ids != null) {
String[] strIds = new String[ids.length];
for (int i = 0; i < ids.length; i++) {
strIds[i] = String.valueOf(ids[i]); // depends on control dependency: [for],... |
public class class_name {
public final void release(OPointer pointer) {
if (TRACK) {
pointerMapping.remove(pointer);
}
long poolSize = pointersPoolSize.incrementAndGet();
if (poolSize > this.poolSize) {
pointersPoolSize.decrementAndGet();
allocator.deallocate(pointer);
} else {
... | public class class_name {
public final void release(OPointer pointer) {
if (TRACK) {
pointerMapping.remove(pointer); // depends on control dependency: [if], data = [none]
}
long poolSize = pointersPoolSize.incrementAndGet();
if (poolSize > this.poolSize) {
pointersPoolSize.decrementAndGet(... |
public class class_name {
public int renderNodes(final StringBuilder stringBuilder,
final List<Node> nodes,
final int index,
final List<String> mustacheKeys,
final Map<Integer, Node> cachedNodes) {
int n... | public class class_name {
public int renderNodes(final StringBuilder stringBuilder,
final List<Node> nodes,
final int index,
final List<String> mustacheKeys,
final Map<Integer, Node> cachedNodes) {
int n... |
public class class_name {
private static int getServicePort(URL casServiceUrl) {
int port = casServiceUrl.getPort();
if (port == -1) {
port = casServiceUrl.getDefaultPort();
}
return port;
} } | public class class_name {
private static int getServicePort(URL casServiceUrl) {
int port = casServiceUrl.getPort();
if (port == -1) {
port = casServiceUrl.getDefaultPort(); // depends on control dependency: [if], data = [none]
}
return port;
} } |
public class class_name {
private boolean validateProcessInstance(ProcessInstance processInst) {
Integer status = processInst.getStatusCode();
if (WorkStatus.STATUS_CANCELLED.equals(status)) {
logger.info("ProcessInstance has been cancelled. ProcessInstanceId = " + processInst.getId());
... | public class class_name {
private boolean validateProcessInstance(ProcessInstance processInst) {
Integer status = processInst.getStatusCode();
if (WorkStatus.STATUS_CANCELLED.equals(status)) {
logger.info("ProcessInstance has been cancelled. ProcessInstanceId = " + processInst.getId()); // ... |
public class class_name {
public void marshall(CreateLifecyclePolicyRequest createLifecyclePolicyRequest, ProtocolMarshaller protocolMarshaller) {
if (createLifecyclePolicyRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(CreateLifecyclePolicyRequest createLifecyclePolicyRequest, ProtocolMarshaller protocolMarshaller) {
if (createLifecyclePolicyRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
@Transformer
public static int len(Object o) {
if (o instanceof Collection) {
return ((Collection)o).size();
} else if (o instanceof Map) {
return ((Map)o).size();
} else if (o.getClass().isArray()) {
return Array.getLength(o);
... | public class class_name {
@Transformer
public static int len(Object o) {
if (o instanceof Collection) {
return ((Collection)o).size(); // depends on control dependency: [if], data = [none]
} else if (o instanceof Map) {
return ((Map)o).size(); // depends on control dependenc... |
public class class_name {
public void makeSceneSelectable(GVRScene scene) {
if (this.scene == scene) {
//do nothing return
return;
}
//cleanup on the currently set scene if there is one
if (this.scene != null) {
//false to remove
updateCu... | public class class_name {
public void makeSceneSelectable(GVRScene scene) {
if (this.scene == scene) {
//do nothing return
return; // depends on control dependency: [if], data = [none]
}
//cleanup on the currently set scene if there is one
if (this.scene != null... |
public class class_name {
public static String arrayToPath(final String[] array) {
if (array == null) {
return "";
}
return Joiner.on(",").skipNulls().join(array);
} } | public class class_name {
public static String arrayToPath(final String[] array) {
if (array == null) {
return ""; // depends on control dependency: [if], data = [none]
}
return Joiner.on(",").skipNulls().join(array);
} } |
public class class_name {
@Override
public void handleMessage(final Channel channel, final DataInput input, final ManagementProtocolHeader header) throws IOException {
final byte type = header.getType();
if(type == ManagementProtocol.TYPE_RESPONSE) {
// Handle response to local requests... | public class class_name {
@Override
public void handleMessage(final Channel channel, final DataInput input, final ManagementProtocolHeader header) throws IOException {
final byte type = header.getType();
if(type == ManagementProtocol.TYPE_RESPONSE) {
// Handle response to local requests... |
public class class_name {
public void processLinkListRelationshipInjections(final SpecNodeWithRelationships specNode, final Document doc, final Element node,
final boolean useFixedUrls) {
// Make sure we have some links to inject
if (specNode.getLinkListRelationships().isEmpty()) return;
... | public class class_name {
public void processLinkListRelationshipInjections(final SpecNodeWithRelationships specNode, final Document doc, final Element node,
final boolean useFixedUrls) {
// Make sure we have some links to inject
if (specNode.getLinkListRelationships().isEmpty()) return;
... |
public class class_name {
private List<BindingConfiguration> getPersistenceContextRefs(DeploymentUnit deploymentUnit, DeploymentDescriptorEnvironment environment, ClassLoader classLoader, DeploymentReflectionIndex deploymentReflectionIndex, ResourceInjectionTarget resourceInjectionTarget) throws
DeploymentUnit... | public class class_name {
private List<BindingConfiguration> getPersistenceContextRefs(DeploymentUnit deploymentUnit, DeploymentDescriptorEnvironment environment, ClassLoader classLoader, DeploymentReflectionIndex deploymentReflectionIndex, ResourceInjectionTarget resourceInjectionTarget) throws
DeploymentUnit... |
public class class_name {
public static String unescape(String s) {
StringBuilder buf = new StringBuilder();
int[] pos = new int[1];
for (int i=0; i<s.length(); ) {
char c = s.charAt(i++);
if (c == '\\') {
pos[0] = i;
int e = unescapeAt(s,... | public class class_name {
public static String unescape(String s) {
StringBuilder buf = new StringBuilder();
int[] pos = new int[1];
for (int i=0; i<s.length(); ) {
char c = s.charAt(i++);
if (c == '\\') {
pos[0] = i; // depends on control dependency: [if... |
public class class_name {
public int compare(CaptureSearchResult o1, CaptureSearchResult o2) {
String k1 = objectToKey(o1);
String k2 = objectToKey(o2);
if(backwards) {
return k2.compareTo(k1);
}
return k1.compareTo(k2);
} } | public class class_name {
public int compare(CaptureSearchResult o1, CaptureSearchResult o2) {
String k1 = objectToKey(o1);
String k2 = objectToKey(o2);
if(backwards) {
return k2.compareTo(k1); // depends on control dependency: [if], data = [none]
}
return k1.compareTo(k2);
} } |
public class class_name {
public static float normalizeAngle (float a) {
while (a < -FloatMath.PI) {
a += TWO_PI;
}
while (a >= FloatMath.PI) {
a -= TWO_PI;
}
return a;
} } | public class class_name {
public static float normalizeAngle (float a) {
while (a < -FloatMath.PI) {
a += TWO_PI; // depends on control dependency: [while], data = [none]
}
while (a >= FloatMath.PI) {
a -= TWO_PI; // depends on control dependency: [while], data = [none]
... |
public class class_name {
public void clearPendingComposingMessage() {
ConversationProxy conversation = getConversation();
if (conversation != null) {
conversation.setMessageCenterPendingMessage(null);
conversation.setMessageCenterPendingAttachments(null);
}
} } | public class class_name {
public void clearPendingComposingMessage() {
ConversationProxy conversation = getConversation();
if (conversation != null) {
conversation.setMessageCenterPendingMessage(null); // depends on control dependency: [if], data = [null)]
conversation.setMessageCenterPendingAttachments(null... |
public class class_name {
public <T> FluentValidator onEach(T[] t, final Validator<T> v) {
Preconditions.checkNotNull(v, "Validator should not be NULL");
if (ArrayUtil.isEmpty(t)) {
lastAddCount = 0;
return this;
}
return onEach(Arrays.asList(t), v);
} } | public class class_name {
public <T> FluentValidator onEach(T[] t, final Validator<T> v) {
Preconditions.checkNotNull(v, "Validator should not be NULL");
if (ArrayUtil.isEmpty(t)) {
lastAddCount = 0; // depends on control dependency: [if], data = [none]
return this; // depends o... |
public class class_name {
private void calcAlignedOrbits() {
Map<Double, List<Integer>> depthMap = new TreeMap<Double, List<Integer>>();
double[] depth = getSubunitZDepth();
alignedOrbits = calcOrbits();
// calculate the mean depth of orbit along z-axis
for (List<Integer> orbit: alignedOrbits) {
// calcu... | public class class_name {
private void calcAlignedOrbits() {
Map<Double, List<Integer>> depthMap = new TreeMap<Double, List<Integer>>();
double[] depth = getSubunitZDepth();
alignedOrbits = calcOrbits();
// calculate the mean depth of orbit along z-axis
for (List<Integer> orbit: alignedOrbits) {
// calcu... |
public class class_name {
public ReportInstanceStatusRequest withInstances(String... instances) {
if (this.instances == null) {
setInstances(new com.amazonaws.internal.SdkInternalList<String>(instances.length));
}
for (String ele : instances) {
this.instances.add(ele);
... | public class class_name {
public ReportInstanceStatusRequest withInstances(String... instances) {
if (this.instances == null) {
setInstances(new com.amazonaws.internal.SdkInternalList<String>(instances.length)); // depends on control dependency: [if], data = [none]
}
for (String ele... |
public class class_name {
public void marshall(GetRouteResponsesRequest getRouteResponsesRequest, ProtocolMarshaller protocolMarshaller) {
if (getRouteResponsesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocol... | public class class_name {
public void marshall(GetRouteResponsesRequest getRouteResponsesRequest, ProtocolMarshaller protocolMarshaller) {
if (getRouteResponsesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocol... |
public class class_name {
public static void guessEntityFieldColumnType(NutMappingField ef) {
Mirror<?> mirror = ef.getTypeMirror();
// 整型
if (mirror.isInt()) {
ef.setColumnType(ColType.INT);
ef.setWidth(8);
}
// 字符串
else if (mirror.isStringLike(... | public class class_name {
public static void guessEntityFieldColumnType(NutMappingField ef) {
Mirror<?> mirror = ef.getTypeMirror();
// 整型
if (mirror.isInt()) {
ef.setColumnType(ColType.INT); // depends on control dependency: [if], data = [none]
ef.setWidth(8); // depen... |
public class class_name {
public void marshall(DeploymentTarget deploymentTarget, ProtocolMarshaller protocolMarshaller) {
if (deploymentTarget == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(depl... | public class class_name {
public void marshall(DeploymentTarget deploymentTarget, ProtocolMarshaller protocolMarshaller) {
if (deploymentTarget == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(depl... |
public class class_name {
protected static void printLogStatic(String className, String msg, Object...args) {
if (args != null) {
msg = String.format(msg, args);
}
String header = String.format("%s [%s] ",
ZonedDateTime.now().format(TIME_FORMAT),
clas... | public class class_name {
protected static void printLogStatic(String className, String msg, Object...args) {
if (args != null) {
msg = String.format(msg, args); // depends on control dependency: [if], data = [none]
}
String header = String.format("%s [%s] ",
ZonedDa... |
public class class_name {
public void setInput( I input ) {
this.inputImage = input;
// reset the state flag so that everything need sto be computed
if( stale != null ) {
for( int i = 0; i < stale.length; i++) {
boolean a[] = stale[i];
for( int j = 0; j < a.length; j++ ) {
a[j] = true;
}
... | public class class_name {
public void setInput( I input ) {
this.inputImage = input;
// reset the state flag so that everything need sto be computed
if( stale != null ) {
for( int i = 0; i < stale.length; i++) {
boolean a[] = stale[i];
for( int j = 0; j < a.length; j++ ) {
a[j] = true; // depend... |
public class class_name {
public Index<SecondaryTable<T>> getOrCreateIndex()
{
List<Node> nodeList = childNode.get("index");
if (nodeList != null && nodeList.size() > 0)
{
return new IndexImpl<SecondaryTable<T>>(this, "index", childNode, nodeList.get(0));
}
return createIndex... | public class class_name {
public Index<SecondaryTable<T>> getOrCreateIndex()
{
List<Node> nodeList = childNode.get("index");
if (nodeList != null && nodeList.size() > 0)
{
return new IndexImpl<SecondaryTable<T>>(this, "index", childNode, nodeList.get(0)); // depends on control dependency... |
public class class_name {
public void marshall(ListBackupsRequest listBackupsRequest, ProtocolMarshaller protocolMarshaller) {
if (listBackupsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... | public class class_name {
public void marshall(ListBackupsRequest listBackupsRequest, ProtocolMarshaller protocolMarshaller) {
if (listBackupsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshal... |
public class class_name {
@Override
public void visit(NodeVisitor v) {
if (v.visit(this)) {
left.visit(v);
right.visit(v);
}
} } | public class class_name {
@Override
public void visit(NodeVisitor v) {
if (v.visit(this)) {
left.visit(v); // depends on control dependency: [if], data = [none]
right.visit(v); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
public static List<FileItem> readMultipartFileItems(HttpServletRequest request, String tempFolderPath) {
if (!ServletFileUpload.isMultipartContent(request)) {
return null;
}
DiskFileItemFactory factory = new DiskFileItemFactory();
// maximum size t... | public class class_name {
public static List<FileItem> readMultipartFileItems(HttpServletRequest request, String tempFolderPath) {
if (!ServletFileUpload.isMultipartContent(request)) {
return null; // depends on control dependency: [if], data = [none]
}
DiskFileItemFactory factory ... |
public class class_name {
private Collection<CopyrightInfo> extractCopyrights(File file) {
Collection<CopyrightInfo> copyrights = new ArrayList<>();
try {
boolean commentBlock = false;
Iterator<String> iterator = FileUtils.readLines(file).iterator();
int lineIndex = ... | public class class_name {
private Collection<CopyrightInfo> extractCopyrights(File file) {
Collection<CopyrightInfo> copyrights = new ArrayList<>();
try {
boolean commentBlock = false;
Iterator<String> iterator = FileUtils.readLines(file).iterator();
int lineIndex = ... |
public class class_name {
public void run() {
final Scanner scanner = getScanner();
// start the process by loading all of the trees in the system
final List<Tree> trees;
try {
trees = Tree.fetchAllTrees(tsdb).joinUninterruptibly();
LOG.info("[" + thread_id + "] Complete");
} catch (Ex... | public class class_name {
public void run() {
final Scanner scanner = getScanner();
// start the process by loading all of the trees in the system
final List<Tree> trees;
try {
trees = Tree.fetchAllTrees(tsdb).joinUninterruptibly(); // depends on control dependency: [try], data = [none]
LO... |
public class class_name {
public void marshall(PostToConnectionRequest postToConnectionRequest, ProtocolMarshaller protocolMarshaller) {
if (postToConnectionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... | public class class_name {
public void marshall(PostToConnectionRequest postToConnectionRequest, ProtocolMarshaller protocolMarshaller) {
if (postToConnectionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... |
public class class_name {
public void marshall(CaptionSelector captionSelector, ProtocolMarshaller protocolMarshaller) {
if (captionSelector == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(caption... | public class class_name {
public void marshall(CaptionSelector captionSelector, ProtocolMarshaller protocolMarshaller) {
if (captionSelector == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(caption... |
public class class_name {
@Deprecated
public SocketFactory getSocketFactory() {
if (socketFactory != null) {
return socketFactory;
} else if (getSslSettings().isEnabled()) {
return sslContext == null ? DEFAULT_SSL_SOCKET_FACTORY : sslContext.getSocketFactory();
} els... | public class class_name {
@Deprecated
public SocketFactory getSocketFactory() {
if (socketFactory != null) {
return socketFactory; // depends on control dependency: [if], data = [none]
} else if (getSslSettings().isEnabled()) {
return sslContext == null ? DEFAULT_SSL_SOCKET_... |
public class class_name {
public boolean detectWebkit()
{
if ((this.initCompleted == true) ||
(this.isWebkit == true))
return this.isWebkit;
if (userAgent.indexOf(engineWebKit) != -1) {
return true;
}
return false;
} } | public class class_name {
public boolean detectWebkit()
{
if ((this.initCompleted == true) ||
(this.isWebkit == true))
return this.isWebkit;
if (userAgent.indexOf(engineWebKit) != -1) {
return true; // depends on control dependency: [if], data = [none]
}
ret... |
public class class_name {
public void marshall(DeleteTagOptionRequest deleteTagOptionRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteTagOptionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarsha... | public class class_name {
public void marshall(DeleteTagOptionRequest deleteTagOptionRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteTagOptionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarsha... |
public class class_name {
@Override
public List<IndexableField> indexableFields(Columns columns) {
Double lon = readLongitude(columns);
Double lat = readLatitude(columns);
if (lon == null && lat == null) {
return Collections.emptyList();
} else if (lat == null) {
... | public class class_name {
@Override
public List<IndexableField> indexableFields(Columns columns) {
Double lon = readLongitude(columns);
Double lat = readLatitude(columns);
if (lon == null && lat == null) {
return Collections.emptyList(); // depends on control dependency: [if],... |
public class class_name {
@Scheduled(fixedRate = 60000) // run every minute
public void invalidateOldTokens() {
List<String> invalidTokens = new ArrayList<String>(); // tokens to invalidate
for (Map.Entry<String, TokenContainer> entry : tokens.entrySet()) {
if (!entry.getValue().isValid()) {
invalidTokens.... | public class class_name {
@Scheduled(fixedRate = 60000) // run every minute
public void invalidateOldTokens() {
List<String> invalidTokens = new ArrayList<String>(); // tokens to invalidate
for (Map.Entry<String, TokenContainer> entry : tokens.entrySet()) {
if (!entry.getValue().isValid()) {
invalidTokens.... |
public class class_name {
private boolean isLocked(String path) {
// get lock for path
CmsRepositoryLockInfo lock = m_session.getLock(path);
if (lock == null) {
return false;
}
// check if found lock fits to the lock token from request
// String curr... | public class class_name {
private boolean isLocked(String path) {
// get lock for path
CmsRepositoryLockInfo lock = m_session.getLock(path);
if (lock == null) {
return false; // depends on control dependency: [if], data = [none]
}
// check if found lock fits to the... |
public class class_name {
public Object call(Object value) {
if (value == null) { return new Integer(0); }
return new Integer(String.valueOf(value).length());
} } | public class class_name {
public Object call(Object value) {
if (value == null) { return new Integer(0); } // depends on control dependency: [if], data = [none]
return new Integer(String.valueOf(value).length());
} } |
public class class_name {
public void marshall(UserStorage userStorage, ProtocolMarshaller protocolMarshaller) {
if (userStorage == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(userStorage.getCapa... | public class class_name {
public void marshall(UserStorage userStorage, ProtocolMarshaller protocolMarshaller) {
if (userStorage == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(userStorage.getCapa... |
public class class_name {
public static Optional<Class> resolveSuperGenericTypeArgument(Class type) {
try {
Type genericSuperclass = type.getGenericSuperclass();
if (genericSuperclass instanceof ParameterizedType) {
return resolveSingleTypeArgument(genericSuperclass);
... | public class class_name {
public static Optional<Class> resolveSuperGenericTypeArgument(Class type) {
try {
Type genericSuperclass = type.getGenericSuperclass();
if (genericSuperclass instanceof ParameterizedType) {
return resolveSingleTypeArgument(genericSuperclass); //... |
public class class_name {
@Override
protected boolean prepare(final Context2D context, final Attributes attr, final double alpha)
{
final double end = attr.getEndAngle();
final double beg = attr.getStartAngle();
if (beg == end)
{
return false;
}
fin... | public class class_name {
@Override
protected boolean prepare(final Context2D context, final Attributes attr, final double alpha)
{
final double end = attr.getEndAngle();
final double beg = attr.getStartAngle();
if (beg == end)
{
return false; // depends on control... |
public class class_name {
public synchronized JtxTransactionMode getTxMode(final Class type, final String methodName, final Class[] methodArgTypes, final String unique) {
String signature = type.getName() + '#' + methodName + '%' + unique;
JtxTransactionMode txMode = txmap.get(signature);
if (txMode == null) {
... | public class class_name {
public synchronized JtxTransactionMode getTxMode(final Class type, final String methodName, final Class[] methodArgTypes, final String unique) {
String signature = type.getName() + '#' + methodName + '%' + unique;
JtxTransactionMode txMode = txmap.get(signature);
if (txMode == null) {
... |
public class class_name {
public String getRemoteAddr() {
if(getTransaction() != null) {
if(((SIPTransaction)getTransaction()).getPeerPacketSourceAddress() != null &&
((SIPTransaction)getTransaction()).getPeerPacketSourceAddress().getHostAddress() != null) {
return ((SIPTransaction)getTransaction()).getP... | public class class_name {
public String getRemoteAddr() {
if(getTransaction() != null) {
if(((SIPTransaction)getTransaction()).getPeerPacketSourceAddress() != null &&
((SIPTransaction)getTransaction()).getPeerPacketSourceAddress().getHostAddress() != null) {
return ((SIPTransaction)getTransaction()).getP... |
public class class_name {
private synchronized TableBucket getNextBucketFromExistingBatch() {
if (this.currentBatch != null) {
TableBucket next = this.currentBatch.next();
if (!this.currentBatch.hasNext()) {
this.currentBatch = null;
}
return nex... | public class class_name {
private synchronized TableBucket getNextBucketFromExistingBatch() {
if (this.currentBatch != null) {
TableBucket next = this.currentBatch.next();
if (!this.currentBatch.hasNext()) {
this.currentBatch = null; // depends on control dependency: [if... |
public class class_name {
@Nullable
public static DayOfTheWeek valueOf(@Nullable final DayOfWeek dayOfWeek) {
if (dayOfWeek == null) {
return null;
}
final int value = dayOfWeek.getValue();
for (final DayOfTheWeek dow : ALL) {
if (value == dow.id) {
... | public class class_name {
@Nullable
public static DayOfTheWeek valueOf(@Nullable final DayOfWeek dayOfWeek) {
if (dayOfWeek == null) {
return null; // depends on control dependency: [if], data = [none]
}
final int value = dayOfWeek.getValue();
for (final DayOfTheWeek dow... |
public class class_name {
public int getValueIndex() {
int result = 0;
Node previousSibling = getElement().getPreviousSibling();
while (previousSibling != null) {
result++;
previousSibling = previousSibling.getPreviousSibling();
}
return result;
... | public class class_name {
public int getValueIndex() {
int result = 0;
Node previousSibling = getElement().getPreviousSibling();
while (previousSibling != null) {
result++;
// depends on control dependency: [while], data = [none]
previousSibling = previousSibling.... |
public class class_name {
public static ScryptKDFParams getInstance(Object obj)
{
if (obj instanceof ScryptKDFParams) {
return (ScryptKDFParams) obj;
}
if (obj != null) {
return new ScryptKDFParams(ASN1Sequence.getInstance(obj));
}
return null;
} ... | public class class_name {
public static ScryptKDFParams getInstance(Object obj)
{
if (obj instanceof ScryptKDFParams) {
return (ScryptKDFParams) obj; // depends on control dependency: [if], data = [none]
}
if (obj != null) {
return new ScryptKDFParams(ASN1Sequence.ge... |
public class class_name {
private static Family findFamily(final FamS fams) {
if (!fams.isSet()) {
return new Family();
}
final Family foundFamily = (Family) fams.find(fams.getToString());
if (foundFamily == null) {
return new Family();
}
return f... | public class class_name {
private static Family findFamily(final FamS fams) {
if (!fams.isSet()) {
return new Family(); // depends on control dependency: [if], data = [none]
}
final Family foundFamily = (Family) fams.find(fams.getToString());
if (foundFamily == null) {
... |
public class class_name {
public EEnum getIfcArithmeticOperatorEnum() {
if (ifcArithmeticOperatorEnumEEnum == null) {
ifcArithmeticOperatorEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(781);
}
return ifcArithmeticOperatorEnumEEnum;
} } | public class class_name {
public EEnum getIfcArithmeticOperatorEnum() {
if (ifcArithmeticOperatorEnumEEnum == null) {
ifcArithmeticOperatorEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(781);
// depends on control dependency: [if], data = [none... |
public class class_name {
@Override
public final void setSpecifics(final SpecificsOfItem pSpecifics) {
this.specifics = pSpecifics;
if (this.itsId == null) {
this.itsId = new SeServiceSpecificsId();
}
this.itsId.setSpecifics(this.specifics);
} } | public class class_name {
@Override
public final void setSpecifics(final SpecificsOfItem pSpecifics) {
this.specifics = pSpecifics;
if (this.itsId == null) {
this.itsId = new SeServiceSpecificsId(); // depends on control dependency: [if], data = [none]
}
this.itsId.setSpecifics(this.specifics);... |
public class class_name {
public EClass getIfcConstraintAggregationRelationship() {
if (ifcConstraintAggregationRelationshipEClass == null) {
ifcConstraintAggregationRelationshipEClass = (EClass) EPackage.Registry.INSTANCE
.getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(108);
}
return i... | public class class_name {
public EClass getIfcConstraintAggregationRelationship() {
if (ifcConstraintAggregationRelationshipEClass == null) {
ifcConstraintAggregationRelationshipEClass = (EClass) EPackage.Registry.INSTANCE
.getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(108);
// depends on c... |
public class class_name {
private <T> void preFlightCheckFields(final T target) {
ClassStreams.selfAndSupertypes(target.getClass())
.map(Class::getDeclaredFields)
.flatMap(Arrays::stream)
.filter(field -> field.getAnnotation(CliOptionGroup.class) != ... | public class class_name {
private <T> void preFlightCheckFields(final T target) {
ClassStreams.selfAndSupertypes(target.getClass())
.map(Class::getDeclaredFields)
.flatMap(Arrays::stream)
.filter(field -> field.getAnnotation(CliOptionGroup.class) != ... |
public class class_name {
static boolean containsDisallowedQuantileLabelForSummary(List<String> labelNames, Type type) {
if (!Type.SUMMARY.equals(type)) {
return false;
}
for (String label : labelNames) {
if (LABEL_NAME_QUANTILE.equals(label)) {
return true;
}
}
return fal... | public class class_name {
static boolean containsDisallowedQuantileLabelForSummary(List<String> labelNames, Type type) {
if (!Type.SUMMARY.equals(type)) {
return false; // depends on control dependency: [if], data = [none]
}
for (String label : labelNames) {
if (LABEL_NAME_QUANTILE.equals(label... |
public class class_name {
public void setLongProperty(String pstrSection, String pstrProp,
long plngVal, String pstrComments)
{
INISection objSec = null;
objSec = (INISection) this.mhmapSections.get(pstrSection);
if (objSec == null)
{
o... | public class class_name {
public void setLongProperty(String pstrSection, String pstrProp,
long plngVal, String pstrComments)
{
INISection objSec = null;
objSec = (INISection) this.mhmapSections.get(pstrSection);
if (objSec == null)
{
o... |
public class class_name {
String getWhereClause() {
final StringGrabber sgWhere = new StringGrabber();
List<Field> primaryKeyFieldList = getPrimaryKeyFieldList();
if (primaryKeyFieldList.size() > 0) {
sgWhere.append("WHERE ");
for (Field field : primaryKey... | public class class_name {
String getWhereClause() {
final StringGrabber sgWhere = new StringGrabber();
List<Field> primaryKeyFieldList = getPrimaryKeyFieldList();
if (primaryKeyFieldList.size() > 0) {
sgWhere.append("WHERE ");
// depends on control dependency: [if], dat... |
public class class_name {
public void setValidatorFactory(ValidatorFactory validatorFactory) {
// Si le paramètre n'est pas null
if(validatorFactory != null) {
// On positionne la fabrique
this.validatorFactory = validatorFactory;
// On construit le validateur
this.validator = vali... | public class class_name {
public void setValidatorFactory(ValidatorFactory validatorFactory) {
// Si le paramètre n'est pas null
if(validatorFactory != null) {
// On positionne la fabrique
this.validatorFactory = validatorFactory;
// depends on control dependency: [if], data = [none]
/... |
public class class_name {
@Deprecated
@PublicEvolving
public DataSink<T> sortLocalOutput(String fieldExpression, Order order) {
int numFields;
int[] fields;
Order[] orders;
// compute flat field positions for (nested) sorting fields
Keys.ExpressionKeys<T> ek = new Keys.ExpressionKeys<>(fieldExpression, t... | public class class_name {
@Deprecated
@PublicEvolving
public DataSink<T> sortLocalOutput(String fieldExpression, Order order) {
int numFields;
int[] fields;
Order[] orders;
// compute flat field positions for (nested) sorting fields
Keys.ExpressionKeys<T> ek = new Keys.ExpressionKeys<>(fieldExpression, t... |
public class class_name {
public void addImportName(ClassDesc classDesc, String importedClassName) {
String packageName = ClassUtil.getPackageName(importedClassName);
if (isImportTargetPackage(classDesc, packageName)) {
classDesc.addImportName(importedClassName);
}
} } | public class class_name {
public void addImportName(ClassDesc classDesc, String importedClassName) {
String packageName = ClassUtil.getPackageName(importedClassName);
if (isImportTargetPackage(classDesc, packageName)) {
classDesc.addImportName(importedClassName); // depends on control dependency: [if], d... |
public class class_name {
protected final void clearAuthenticationAttributes() {
HttpSession session = http.getCurrentRequest().getSession(false);
if (session == null) {
return;
}
session.removeAttribute(WebAttributes.AUTHENTICATION_EXCEPTION);
} } | public class class_name {
protected final void clearAuthenticationAttributes() {
HttpSession session = http.getCurrentRequest().getSession(false);
if (session == null) {
return; // depends on control dependency: [if], data = [none]
}
session.removeAttribute(WebAttributes.A... |
public class class_name {
public static Map<String, String> parseFragment(String fragment)
{
Map<String, String> result = new TreeMap<String, String>();
fragment = StringUtils.removeStart(fragment, "!");
String[] split = StringUtils.split(fragment, "&");
for (String s : split)
{
String[] ... | public class class_name {
public static Map<String, String> parseFragment(String fragment)
{
Map<String, String> result = new TreeMap<String, String>();
fragment = StringUtils.removeStart(fragment, "!");
String[] split = StringUtils.split(fragment, "&");
for (String s : split)
{
String[] ... |
public class class_name {
private void setMentsu(Mentsu mentsu) {
if (mentsu instanceof Toitsu) {
toitsuList.add((Toitsu) mentsu);
} else if (mentsu instanceof Shuntsu) {
shuntsuList.add((Shuntsu) mentsu);
} else if (mentsu instanceof Kotsu) {
kotsuList.add((... | public class class_name {
private void setMentsu(Mentsu mentsu) {
if (mentsu instanceof Toitsu) {
toitsuList.add((Toitsu) mentsu); // depends on control dependency: [if], data = [none]
} else if (mentsu instanceof Shuntsu) {
shuntsuList.add((Shuntsu) mentsu); // depends on contr... |
public class class_name {
@Override
public void destroyAll() {
for (Layer layer : this.layerManager.getLayers()) {
this.layerManager.getLayers().remove(layer);
layer.onDestroy();
if (layer instanceof TileLayer) {
((TileLayer<?>) layer).getTileCache().dest... | public class class_name {
@Override
public void destroyAll() {
for (Layer layer : this.layerManager.getLayers()) {
this.layerManager.getLayers().remove(layer); // depends on control dependency: [for], data = [layer]
layer.onDestroy(); // depends on control dependency: [for], data = ... |
public class class_name {
public static Properties getPropertiesFromClasspath(String fileName)
throws PropertiesFileNotFoundException {
Properties props = new Properties();
try {
InputStream is = ClassLoader.getSystemResourceAsStream(fileName);
if (is == null) { // try this instead
i... | public class class_name {
public static Properties getPropertiesFromClasspath(String fileName)
throws PropertiesFileNotFoundException {
Properties props = new Properties();
try {
InputStream is = ClassLoader.getSystemResourceAsStream(fileName);
if (is == null) { // try this instead
i... |
public class class_name {
void addTrigger(TriggerDef td, HsqlName otherName) {
int index = triggerList.length;
if (otherName != null) {
int pos = getTriggerIndex(otherName.name);
if (pos != -1) {
index = pos + 1;
}
}
triggerList = ... | public class class_name {
void addTrigger(TriggerDef td, HsqlName otherName) {
int index = triggerList.length;
if (otherName != null) {
int pos = getTriggerIndex(otherName.name);
if (pos != -1) {
index = pos + 1; // depends on control dependency: [if], data = ... |
public class class_name {
public void marshall(AudioSelector audioSelector, ProtocolMarshaller protocolMarshaller) {
if (audioSelector == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(audioSelector... | public class class_name {
public void marshall(AudioSelector audioSelector, ProtocolMarshaller protocolMarshaller) {
if (audioSelector == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(audioSelector... |
public class class_name {
protected QB appendCanonicalizedAttributeToQuery(final QB queryBuilder, final String queryAttribute, final String dataAttribute, final List<Object> queryValues) {
// All logging messages were previously in generateQuery() and were
// copy/pasted verbatim
final List<Obj... | public class class_name {
protected QB appendCanonicalizedAttributeToQuery(final QB queryBuilder, final String queryAttribute, final String dataAttribute, final List<Object> queryValues) {
// All logging messages were previously in generateQuery() and were
// copy/pasted verbatim
final List<Obj... |
public class class_name {
public static TypeInformation<?> PRIMITIVE_ARRAY(TypeInformation<?> elementType) {
if (elementType == BOOLEAN) {
return PrimitiveArrayTypeInfo.BOOLEAN_PRIMITIVE_ARRAY_TYPE_INFO;
} else if (elementType == BYTE) {
return PrimitiveArrayTypeInfo.BYTE_PRIMITIVE_ARRAY_TYPE_INFO;
} else ... | public class class_name {
public static TypeInformation<?> PRIMITIVE_ARRAY(TypeInformation<?> elementType) {
if (elementType == BOOLEAN) {
return PrimitiveArrayTypeInfo.BOOLEAN_PRIMITIVE_ARRAY_TYPE_INFO; // depends on control dependency: [if], data = [none]
} else if (elementType == BYTE) {
return PrimitiveA... |
public class class_name {
@SuppressWarnings("unchecked")
public O withConstantSetFirst(String... constantSetFirst) {
if (this.udfSemantics == null) {
this.udfSemantics = new DualInputSemanticProperties();
}
SemanticPropUtil.getSemanticPropsDualFromString(this.udfSemantics, constantSetFirst, null,
null... | public class class_name {
@SuppressWarnings("unchecked")
public O withConstantSetFirst(String... constantSetFirst) {
if (this.udfSemantics == null) {
this.udfSemantics = new DualInputSemanticProperties(); // depends on control dependency: [if], data = [none]
}
SemanticPropUtil.getSemanticPropsDualFromStri... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.