code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
private void removeTransactionSession(String xferId, String sessionId) {
List<String> sessions = transactionSessions.get(xferId);
if(sessions != null){
final boolean removal = sessions.remove(sessionId);
if (removal) {
ascpCount--;
}
}
} } | public class class_name {
private void removeTransactionSession(String xferId, String sessionId) {
List<String> sessions = transactionSessions.get(xferId);
if(sessions != null){
final boolean removal = sessions.remove(sessionId);
if (removal) {
ascpCount--; // depends on control dependency: [if], data =... |
public class class_name {
private void printNewLine(PrintWriter writer, LineSeparator lineSeparator) {
if(null == lineSeparator) {
//默认换行符
writer.println();
}else {
//自定义换行符
writer.print(lineSeparator.getValue());
}
} } | public class class_name {
private void printNewLine(PrintWriter writer, LineSeparator lineSeparator) {
if(null == lineSeparator) {
//默认换行符
writer.println();
// depends on control dependency: [if], data = [none]
}else {
//自定义换行符
writer.print(lineSeparator.getValue());
// depends on control depend... |
public class class_name {
protected double calcDistTSAndPattern(double[] ts, double[] pValue) {
double INF = 10000000000000000000f;
double bestDist = INF;
int patternLen = pValue.length;
int lastStartP = ts.length - pValue.length + 1;
if (lastStartP < 1)
return bestDist;
Random... | public class class_name {
protected double calcDistTSAndPattern(double[] ts, double[] pValue) {
double INF = 10000000000000000000f;
double bestDist = INF;
int patternLen = pValue.length;
int lastStartP = ts.length - pValue.length + 1;
if (lastStartP < 1)
return bestDist;
Random... |
public class class_name {
public static ChannelFramework getFramework() {
final CHFWBundle chfw = getCHFWBundle();
if (null == chfw) {
return ChannelFrameworkFactory.getChannelFramework();
}
return chfw.getFramework();
} } | public class class_name {
public static ChannelFramework getFramework() {
final CHFWBundle chfw = getCHFWBundle();
if (null == chfw) {
return ChannelFrameworkFactory.getChannelFramework(); // depends on control dependency: [if], data = [none]
}
return chfw.getFramework();
... |
public class class_name {
public static int enc_lag3( /* output: Return index of encoding */
int T0, /* input : Pitch delay */
int T0_frac, /* input : Fractional pitch delay */
IntegerPointer T0_min, /* in/out: Minimum search delay */
IntegerPointer T0_max, /* i... | public class class_name {
public static int enc_lag3( /* output: Return index of encoding */
int T0, /* input : Pitch delay */
int T0_frac, /* input : Fractional pitch delay */
IntegerPointer T0_min, /* in/out: Minimum search delay */
IntegerPointer T0_max, /* i... |
public class class_name {
public boolean validateTLSA(URL url) throws ValidSelfSignedCertException {
TLSARecord tlsaRecord = getTLSARecord(url);
if(tlsaRecord == null) {
return false;
}
List<Certificate> certs = getUrlCerts(url);
if(certs == null || certs.size() ==... | public class class_name {
public boolean validateTLSA(URL url) throws ValidSelfSignedCertException {
TLSARecord tlsaRecord = getTLSARecord(url);
if(tlsaRecord == null) {
return false;
}
List<Certificate> certs = getUrlCerts(url);
if(certs == null || certs.size() ==... |
public class class_name {
public BidiWrappingText unicodeWrappingText(@Nullable Dir dir, String str, boolean isHtml) {
if (dir == null) {
dir = estimateDirection(str, isHtml);
}
StringBuilder beforeText = new StringBuilder();
StringBuilder afterText = new StringBuilder();
if (dir != Dir.NEUTR... | public class class_name {
public BidiWrappingText unicodeWrappingText(@Nullable Dir dir, String str, boolean isHtml) {
if (dir == null) {
dir = estimateDirection(str, isHtml); // depends on control dependency: [if], data = [none]
}
StringBuilder beforeText = new StringBuilder();
StringBuilder aft... |
public class class_name {
@Pure
public DoubleProperty depthProperty() {
if (this.depth == null) {
this.depth = new ReadOnlyDoubleWrapper(this, MathFXAttributeNames.DEPTH);
this.depth.bind(Bindings.subtract(maxZProperty(), minZProperty()));
}
return this.depth;
} } | public class class_name {
@Pure
public DoubleProperty depthProperty() {
if (this.depth == null) {
this.depth = new ReadOnlyDoubleWrapper(this, MathFXAttributeNames.DEPTH); // depends on control dependency: [if], data = [none]
this.depth.bind(Bindings.subtract(maxZProperty(), minZProperty())); // depends on co... |
public class class_name {
static private void populateCache() {
if (cacheIsPopulated) {
return;
}
cacheIsPopulated = true;
/* Schema:
*
* units{
* duration{
* day{
* one{"{0} ден"}
* other{"{0} де... | public class class_name {
static private void populateCache() {
if (cacheIsPopulated) {
return; // depends on control dependency: [if], data = [none]
}
cacheIsPopulated = true;
/* Schema:
*
* units{
* duration{
* day{
*... |
public class class_name {
public static boolean isAnyEmpty(final CharSequence... css) {
if (ArrayUtils.isEmpty(css)) {
return false;
}
for (final CharSequence cs : css){
if (isEmpty(cs)) {
return true;
}
}
return false;
} } | public class class_name {
public static boolean isAnyEmpty(final CharSequence... css) {
if (ArrayUtils.isEmpty(css)) {
return false; // depends on control dependency: [if], data = [none]
}
for (final CharSequence cs : css){
if (isEmpty(cs)) {
return true; // depends on contr... |
public class class_name {
public static Atom[] findLinkage(final Group group1, final Group group2,
String nameOfAtomOnGroup1, String nameOfAtomOnGroup2,
double bondLengthTolerance) {
Atom[] ret = new Atom[2];
ret[0] = group1.getAtom(nameOfAtomOnGroup1);
ret[1] = group2.getAtom(nameOfAtomOnGroup2);
if ... | public class class_name {
public static Atom[] findLinkage(final Group group1, final Group group2,
String nameOfAtomOnGroup1, String nameOfAtomOnGroup2,
double bondLengthTolerance) {
Atom[] ret = new Atom[2];
ret[0] = group1.getAtom(nameOfAtomOnGroup1);
ret[1] = group2.getAtom(nameOfAtomOnGroup2);
if ... |
public class class_name {
private static String hexFormat(int trgt) {
String s = Integer.toHexString(trgt);
int sz = s.length();
if (sz == 8) {
return s;
}
int fill = 8 - sz;
StringBuilder buf = new StringBuilder();
for (int i = 0; i < fill; ++i) {
// add leading zeros
b... | public class class_name {
private static String hexFormat(int trgt) {
String s = Integer.toHexString(trgt);
int sz = s.length();
if (sz == 8) {
return s; // depends on control dependency: [if], data = [none]
}
int fill = 8 - sz;
StringBuilder buf = new StringBuilder();
for (int i = ... |
public class class_name {
@Override
public void setProfileImportExportCache(
Cache<Tuple<String, String>, UserProfile> profileCache) {
if (profileCache == null) {
profileCacheHolder.remove();
} else {
profileCacheHolder.set(profileCache);
}
} } | public class class_name {
@Override
public void setProfileImportExportCache(
Cache<Tuple<String, String>, UserProfile> profileCache) {
if (profileCache == null) {
profileCacheHolder.remove(); // depends on control dependency: [if], data = [none]
} else {
profileC... |
public class class_name {
private final boolean matchPattern(byte[][] patterns, int bufferIndex)
{
boolean match = false;
for (byte[] pattern : patterns)
{
int index = 0;
match = true;
for (byte b : pattern)
{
if (b != m_buffer[bufferIndex + index])
... | public class class_name {
private final boolean matchPattern(byte[][] patterns, int bufferIndex)
{
boolean match = false;
for (byte[] pattern : patterns)
{
int index = 0;
match = true; // depends on control dependency: [for], data = [none]
for (byte b : pattern)
... |
public class class_name {
@Override
public void stop() {
synchronized (this.lifecycleMonitor) {
if (isRunning()) {
log.info("stop: Stopping ConnectorManager");
try {
connector.stop();
} finally {
running = f... | public class class_name {
@Override
public void stop() {
synchronized (this.lifecycleMonitor) {
if (isRunning()) {
log.info("stop: Stopping ConnectorManager"); // depends on control dependency: [if], data = [none]
try {
connector.stop(); // de... |
public class class_name {
public static void wipePSinplace(ByteBuffer _in, Collection<ByteBuffer> spsList, Collection<ByteBuffer> ppsList) {
ByteBuffer dup = _in.duplicate();
while (dup.hasRemaining()) {
ByteBuffer buf = H264Utils.nextNALUnit(dup);
if (buf == null)
... | public class class_name {
public static void wipePSinplace(ByteBuffer _in, Collection<ByteBuffer> spsList, Collection<ByteBuffer> ppsList) {
ByteBuffer dup = _in.duplicate();
while (dup.hasRemaining()) {
ByteBuffer buf = H264Utils.nextNALUnit(dup);
if (buf == null)
... |
public class class_name {
private static String buildOverloadParameterString(Class<?> parameterType) {
String name = "_";
int arrayDimensions = 0;
while (parameterType.isArray()) {
arrayDimensions++;
parameterType = parameterType.getComponentType();
}
/... | public class class_name {
private static String buildOverloadParameterString(Class<?> parameterType) {
String name = "_";
int arrayDimensions = 0;
while (parameterType.isArray()) {
arrayDimensions++; // depends on control dependency: [while], data = [none]
parameterType... |
public class class_name {
public static Optional<Capabilities> importFromResource(ResourceModel resourceModel, Context context) {
Object resource = resourceModel.getResource();
try {
@SuppressWarnings("unchecked")
HashMap<String, Boolean> hashMap = (HashMap<String, Boolean>) res... | public class class_name {
public static Optional<Capabilities> importFromResource(ResourceModel resourceModel, Context context) {
Object resource = resourceModel.getResource();
try {
@SuppressWarnings("unchecked")
HashMap<String, Boolean> hashMap = (HashMap<String, Boolean>) res... |
public class class_name {
public static synchronized AsyncTaskManager getAsyncTaskManager() throws JMSException
{
if (asyncTaskManager == null)
{
int threadPoolMinSize = getSettings().getIntProperty(FFMQCoreSettings.ASYNC_TASK_MANAGER_DELIVERY_THREAD_POOL_MINSIZE,0);
int threadPoolMaxIdle = getSetting... | public class class_name {
public static synchronized AsyncTaskManager getAsyncTaskManager() throws JMSException
{
if (asyncTaskManager == null)
{
int threadPoolMinSize = getSettings().getIntProperty(FFMQCoreSettings.ASYNC_TASK_MANAGER_DELIVERY_THREAD_POOL_MINSIZE,0);
int threadPoolMaxIdle = getSetting... |
public class class_name {
@Override
public void upgradeFromPreviousVersion(OpenImmoDocument doc) {
doc.setDocumentVersion(OpenImmoVersion.V1_2_4);
if (doc instanceof OpenImmoTransferDocument) {
try {
this.upgradeAnzahlBalkonTerrassenElements(doc.getDocument());
... | public class class_name {
@Override
public void upgradeFromPreviousVersion(OpenImmoDocument doc) {
doc.setDocumentVersion(OpenImmoVersion.V1_2_4);
if (doc instanceof OpenImmoTransferDocument) {
try {
this.upgradeAnzahlBalkonTerrassenElements(doc.getDocument()); // depen... |
public class class_name {
public void close() throws IOException, InterruptedException {
for(OutputContext outputContext : this.outputContexts.values()) {
outputContext.recordWriter.close(outputContext.taskAttemptContext);
outputContext.outputCommitter.commitTask(outputContext.taskAttemptContext);
// This i... | public class class_name {
public void close() throws IOException, InterruptedException {
for(OutputContext outputContext : this.outputContexts.values()) {
outputContext.recordWriter.close(outputContext.taskAttemptContext);
outputContext.outputCommitter.commitTask(outputContext.taskAttemptContext);
// This i... |
public class class_name {
public final ProtoParser.service_block_return service_block(Proto proto, Message message) throws RecognitionException {
ProtoParser.service_block_return retval = new ProtoParser.service_block_return();
retval.start = input.LT(1);
Object root_0 = null;
Token S... | public class class_name {
public final ProtoParser.service_block_return service_block(Proto proto, Message message) throws RecognitionException {
ProtoParser.service_block_return retval = new ProtoParser.service_block_return();
retval.start = input.LT(1);
Object root_0 = null;
Token S... |
public class class_name {
protected <T extends Serializable> void postSerializer(T serializableObject, Map<String, Object> objReferences) {
for(Field field : ReflectionMethods.getAllFields(new LinkedList<>(), serializableObject.getClass())) {
String fieldName = field.getName();
Object ... | public class class_name {
protected <T extends Serializable> void postSerializer(T serializableObject, Map<String, Object> objReferences) {
for(Field field : ReflectionMethods.getAllFields(new LinkedList<>(), serializableObject.getClass())) {
String fieldName = field.getName();
Object ... |
public class class_name {
public LocaleEncodingMappingListType<WebFragmentType<T>> getOrCreateLocaleEncodingMappingList()
{
List<Node> nodeList = childNode.get("locale-encoding-mapping-list");
if (nodeList != null && nodeList.size() > 0)
{
return new LocaleEncodingMappingListTypeImpl<Web... | public class class_name {
public LocaleEncodingMappingListType<WebFragmentType<T>> getOrCreateLocaleEncodingMappingList()
{
List<Node> nodeList = childNode.get("locale-encoding-mapping-list");
if (nodeList != null && nodeList.size() > 0)
{
return new LocaleEncodingMappingListTypeImpl<Web... |
public class class_name {
private void addChangeSets(Build build, JSONObject buildJson) {
JSONObject changeSet = (JSONObject) buildJson.get("changes");
// Map<String, String> revisionToUrl = new HashMap<>();
// // Build a map of revision to module (scm url). This is not always
// // prov... | public class class_name {
private void addChangeSets(Build build, JSONObject buildJson) {
JSONObject changeSet = (JSONObject) buildJson.get("changes");
// Map<String, String> revisionToUrl = new HashMap<>();
// // Build a map of revision to module (scm url). This is not always
// // prov... |
public class class_name {
private List<String> _readRecord() throws IOException {
while (true) {
int c = reader.read();
if (c < 0) {
return null;
} else if (!Character.isWhitespace(c)) {
if (commentStart != null && commentStart.indexOf(c) >= 0) {
while (c != '\n') {
c = reader.read();
... | public class class_name {
private List<String> _readRecord() throws IOException {
while (true) {
int c = reader.read();
if (c < 0) {
return null; // depends on control dependency: [if], data = [none]
} else if (!Character.isWhitespace(c)) {
if (commentStart != null && commentStart.indexOf(c) >= 0) {... |
public class class_name {
@FFDCIgnore(IllegalArgumentException.class)
private LdapSearchScope evaluateCallerSearchScope(boolean immediateOnly) {
try {
return elHelper.processLdapSearchScope("callerSearchScopeExpression", this.idStoreDefinition.callerSearchScopeExpression(), this.idStoreDefiniti... | public class class_name {
@FFDCIgnore(IllegalArgumentException.class)
private LdapSearchScope evaluateCallerSearchScope(boolean immediateOnly) {
try {
return elHelper.processLdapSearchScope("callerSearchScopeExpression", this.idStoreDefinition.callerSearchScopeExpression(), this.idStoreDefiniti... |
public class class_name {
@Override
public void removeByUuid_C(String uuid, long companyId) {
for (CPDefinitionOptionValueRel cpDefinitionOptionValueRel : findByUuid_C(
uuid, companyId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(cpDefinitionOptionValueRel);
}
} } | public class class_name {
@Override
public void removeByUuid_C(String uuid, long companyId) {
for (CPDefinitionOptionValueRel cpDefinitionOptionValueRel : findByUuid_C(
uuid, companyId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
remove(cpDefinitionOptionValueRel); // depends on control dependency: [for],... |
public class class_name {
public void init() {
turnOff();
// initialization
command(setDisplayClock((byte) 0, (byte) 8));
command(setMultiplexRatio(size.height));
command(setDisplayOffset(0)); // no offset
command(setDisplayStartLine(0)); // line #0
... | public class class_name {
public void init() {
turnOff();
// initialization
command(setDisplayClock((byte) 0, (byte) 8));
command(setMultiplexRatio(size.height));
command(setDisplayOffset(0)); // no offset
command(setDisplayStartLine(0)); // line #0
... |
public class class_name {
@Override
public void reset() {
updatesLock.writeLock().lock();
if (storage != null) {
storage.assign(0.0f);
}
if (updates != null)
updates.assign(0.0f);
updatesLock.writeLock().unlock();
} } | public class class_name {
@Override
public void reset() {
updatesLock.writeLock().lock();
if (storage != null) {
storage.assign(0.0f); // depends on control dependency: [if], data = [none]
}
if (updates != null)
updates.assign(0.0f);
updatesLock.wr... |
public class class_name {
public void search() {
if (layer != null) {
// First we try to get the list of criteria:
List<SearchCriterion> criteria = getSearchCriteria();
if (criteria != null && !criteria.isEmpty()) {
SearchFeatureRequest request = new SearchFeatureRequest();
String value = (String) l... | public class class_name {
public void search() {
if (layer != null) {
// First we try to get the list of criteria:
List<SearchCriterion> criteria = getSearchCriteria();
if (criteria != null && !criteria.isEmpty()) {
SearchFeatureRequest request = new SearchFeatureRequest();
String value = (String) l... |
public class class_name {
public void close() throws CGateException
{
if (!connected)
return;
synchronized (ping_connections)
{
try
{
sendCommand("quit").toArray();
}
catch (Exception e) {}
try
... | public class class_name {
public void close() throws CGateException
{
if (!connected)
return;
synchronized (ping_connections)
{
try
{
sendCommand("quit").toArray(); // depends on control dependency: [try], data = [none]
}
... |
public class class_name {
@GuardedBy("evictionLock")
void evictFromMain(int candidates) {
int victimQueue = PROBATION;
Node<K, V> victim = accessOrderProbationDeque().peekFirst();
Node<K, V> candidate = accessOrderProbationDeque().peekLast();
while (weightedSize() > maximum()) {
// Stop trying ... | public class class_name {
@GuardedBy("evictionLock")
void evictFromMain(int candidates) {
int victimQueue = PROBATION;
Node<K, V> victim = accessOrderProbationDeque().peekFirst();
Node<K, V> candidate = accessOrderProbationDeque().peekLast();
while (weightedSize() > maximum()) {
// Stop trying ... |
public class class_name {
public void toStringRep(String indent, Map<String, String> nss,
XNAppender out, Consumer<? super XRepresentationRecord> callback) {
Map<String, String> nss0 = new HashMap<>(nss);
out.append(indent);
if (callback != null) {
... | public class class_name {
public void toStringRep(String indent, Map<String, String> nss,
XNAppender out, Consumer<? super XRepresentationRecord> callback) {
Map<String, String> nss0 = new HashMap<>(nss);
out.append(indent);
if (callback != null) {
... |
public class class_name {
public GetIntentResult withSlots(Slot... slots) {
if (this.slots == null) {
setSlots(new java.util.ArrayList<Slot>(slots.length));
}
for (Slot ele : slots) {
this.slots.add(ele);
}
return this;
} } | public class class_name {
public GetIntentResult withSlots(Slot... slots) {
if (this.slots == null) {
setSlots(new java.util.ArrayList<Slot>(slots.length)); // depends on control dependency: [if], data = [none]
}
for (Slot ele : slots) {
this.slots.add(ele); // depends o... |
public class class_name {
public static double klDivergence(double[] p, double[] q) {
if (p.length != q.length) {
throw new IllegalStateException("The length of p and q must be the same.");
}
double delta = 1e-8;
if (!Multinomials.isMultinomial(p, delta)) {
throw... | public class class_name {
public static double klDivergence(double[] p, double[] q) {
if (p.length != q.length) {
throw new IllegalStateException("The length of p and q must be the same.");
}
double delta = 1e-8;
if (!Multinomials.isMultinomial(p, delta)) {
throw... |
public class class_name {
public static <T extends AbstractConfiguration> T findConfiguration(Class<?> klass) {
// Look for static methods first
List<Method> methods = findStaticMethodsAnnotatedWith(klass, TestServerConfiguration.class);
List<Field> fields = findStaticFieldsAnnotatedWith(klass, TestServerConfigu... | public class class_name {
public static <T extends AbstractConfiguration> T findConfiguration(Class<?> klass) {
// Look for static methods first
List<Method> methods = findStaticMethodsAnnotatedWith(klass, TestServerConfiguration.class);
List<Field> fields = findStaticFieldsAnnotatedWith(klass, TestServerConfigu... |
public class class_name {
public static AnchorSize getAnchorSize(final Sheet sheet1,
final FacesCell fcell, final Cell cell,
final ClientAnchor anchor) {
if (!(sheet1 instanceof XSSFSheet)) {
return null;
}
double picWidth = 0.0;
double picHeight = 0.0;
int left = anchor.getDx1()
/ or... | public class class_name {
public static AnchorSize getAnchorSize(final Sheet sheet1,
final FacesCell fcell, final Cell cell,
final ClientAnchor anchor) {
if (!(sheet1 instanceof XSSFSheet)) {
return null;
// depends on control dependency: [if], data = [none]
}
double picWidth = 0.0;
double pi... |
public class class_name {
public EClass getIfcRelProjectsElement() {
if (ifcRelProjectsElementEClass == null) {
ifcRelProjectsElementEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(479);
}
return ifcRelProjectsElementEClass;
} } | public class class_name {
public EClass getIfcRelProjectsElement() {
if (ifcRelProjectsElementEClass == null) {
ifcRelProjectsElementEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(479);
// depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public String getType(int i) {
if (i < 0 || i >= types.size()) {
return null;
}
return types.get(i);
} } | public class class_name {
public String getType(int i) {
if (i < 0 || i >= types.size()) {
return null; // depends on control dependency: [if], data = [none]
}
return types.get(i);
} } |
public class class_name {
@SuppressWarnings("unchecked")
public static <T> T newInstance(Class<T> classToInstantiate) {
int modifiers = classToInstantiate.getModifiers();
final Object object;
if (Modifier.isInterface(modifiers)) {
object = Proxy.newProxyInstance(WhiteboxImpl.cl... | public class class_name {
@SuppressWarnings("unchecked")
public static <T> T newInstance(Class<T> classToInstantiate) {
int modifiers = classToInstantiate.getModifiers();
final Object object;
if (Modifier.isInterface(modifiers)) {
object = Proxy.newProxyInstance(WhiteboxImpl.cl... |
public class class_name {
private void populateValuesOfSwModule() {
if (baseSwModuleId == null) {
return;
}
editSwModule = Boolean.TRUE;
softwareModuleManagement.get(baseSwModuleId).ifPresent(swModule -> {
nameTextField.setValue(swModule.getName());
v... | public class class_name {
private void populateValuesOfSwModule() {
if (baseSwModuleId == null) {
return; // depends on control dependency: [if], data = [none]
}
editSwModule = Boolean.TRUE;
softwareModuleManagement.get(baseSwModuleId).ifPresent(swModule -> {
nam... |
public class class_name {
public static boolean isFloatNoExponent(String str)
{
int len = str.length();
if (len == 0)
{
return false;
}
// skip first char if sign char
char c = str.charAt(0);
int i = ((c == '-') || (c == '+')) ? 1 : 0;
... | public class class_name {
public static boolean isFloatNoExponent(String str)
{
int len = str.length();
if (len == 0)
{
return false; // depends on control dependency: [if], data = [none]
}
// skip first char if sign char
char c = str.charAt(0);
... |
public class class_name {
public DescribeHsmClientCertificatesResult withHsmClientCertificates(HsmClientCertificate... hsmClientCertificates) {
if (this.hsmClientCertificates == null) {
setHsmClientCertificates(new com.amazonaws.internal.SdkInternalList<HsmClientCertificate>(hsmClientCertificates.l... | public class class_name {
public DescribeHsmClientCertificatesResult withHsmClientCertificates(HsmClientCertificate... hsmClientCertificates) {
if (this.hsmClientCertificates == null) {
setHsmClientCertificates(new com.amazonaws.internal.SdkInternalList<HsmClientCertificate>(hsmClientCertificates.l... |
public class class_name {
public SyncToolConfig processCommandLine(String[] args) {
SyncToolConfig config = null;
try {
config = processConfigFileOptions(args);
} catch (ParseException e) {
printHelp(e.getMessage());
}
return config;
} } | public class class_name {
public SyncToolConfig processCommandLine(String[] args) {
SyncToolConfig config = null;
try {
config = processConfigFileOptions(args); // depends on control dependency: [try], data = [none]
} catch (ParseException e) {
printHelp(e.getMessage());... |
public class class_name {
@Override
protected String toStringInternal(final boolean useSimpleNames) {
final StringBuilder buf = new StringBuilder();
buf.append(
useSimpleNames ? elementTypeSignature.toStringWithSimpleNames() : elementTypeSignature.toString());
for (int i = 0... | public class class_name {
@Override
protected String toStringInternal(final boolean useSimpleNames) {
final StringBuilder buf = new StringBuilder();
buf.append(
useSimpleNames ? elementTypeSignature.toStringWithSimpleNames() : elementTypeSignature.toString());
for (int i = 0... |
public class class_name {
public void marshall(StreamSummary streamSummary, ProtocolMarshaller protocolMarshaller) {
if (streamSummary == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(streamSummary... | public class class_name {
public void marshall(StreamSummary streamSummary, ProtocolMarshaller protocolMarshaller) {
if (streamSummary == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(streamSummary... |
public class class_name {
private Object writeMap(SerIterator itemIterator) {
if (itemIterator.size() == 0) {
return new LinkedHashMap<>();
}
// if key type is known and convertible use short key format, else use full bean format
if (settings.getConverter().isConvertible(ite... | public class class_name {
private Object writeMap(SerIterator itemIterator) {
if (itemIterator.size() == 0) {
return new LinkedHashMap<>(); // depends on control dependency: [if], data = [none]
}
// if key type is known and convertible use short key format, else use full bean format... |
public class class_name {
@SuppressWarnings("unused") // called in SoyFileParser.jj
public static final String calculateFullCalleeName(
Identifier ident, SoyFileHeaderInfo header, ErrorReporter errorReporter) {
String name = ident.identifier();
switch (ident.type()) {
case DOT_IDENT:
// ... | public class class_name {
@SuppressWarnings("unused") // called in SoyFileParser.jj
public static final String calculateFullCalleeName(
Identifier ident, SoyFileHeaderInfo header, ErrorReporter errorReporter) {
String name = ident.identifier();
switch (ident.type()) {
case DOT_IDENT:
// ... |
public class class_name {
public void closeAndRemoveWebSocket(String chargingStationIdentifier, @Nullable WebSocket webSocket) {
if (webSocket != null && webSocket.isOpen()) {
// received a web socket, close it no matter what
webSocket.close();
}
WebSocketWrapper existi... | public class class_name {
public void closeAndRemoveWebSocket(String chargingStationIdentifier, @Nullable WebSocket webSocket) {
if (webSocket != null && webSocket.isOpen()) {
// received a web socket, close it no matter what
webSocket.close(); // depends on control dependency: [if], da... |
public class class_name {
private Component prepareDateFacets(CmsSolrResultList solrResultList, CmsSearchResultWrapper resultWrapper) {
RangeFacet<?, ?> dateFacets = resultWrapper.getRangeFacet().get(CmsListManager.FIELD_DATE_FACET_NAME);
I_CmsSearchControllerFacetRange facetController = resultWrapper... | public class class_name {
private Component prepareDateFacets(CmsSolrResultList solrResultList, CmsSearchResultWrapper resultWrapper) {
RangeFacet<?, ?> dateFacets = resultWrapper.getRangeFacet().get(CmsListManager.FIELD_DATE_FACET_NAME);
I_CmsSearchControllerFacetRange facetController = resultWrapper... |
public class class_name {
private Boolean termin(Long channelId, final TerminType type) throws Exception {
Channel channel = ArbitrateConfigUtils.getChannelByChannelId(channelId);
List<Pipeline> pipelines = channel.getPipelines();
List<Future<Boolean>> futures = new ArrayList<Future<Boolean>>()... | public class class_name {
private Boolean termin(Long channelId, final TerminType type) throws Exception {
Channel channel = ArbitrateConfigUtils.getChannelByChannelId(channelId);
List<Pipeline> pipelines = channel.getPipelines();
List<Future<Boolean>> futures = new ArrayList<Future<Boolean>>()... |
public class class_name {
public PolygonOptions toPolygon(Polygon polygon) {
PolygonOptions polygonOptions = new PolygonOptions();
List<LineString> rings = polygon.getRings();
if (!rings.isEmpty()) {
Double z = null;
// Add the polygon points
LineString ... | public class class_name {
public PolygonOptions toPolygon(Polygon polygon) {
PolygonOptions polygonOptions = new PolygonOptions();
List<LineString> rings = polygon.getRings();
if (!rings.isEmpty()) {
Double z = null;
// Add the polygon points
LineString ... |
public class class_name {
protected boolean updateState()
{
if (!overrideKeyboardInput)
{
return false; // Let the class do the default thing.
}
// Update movement:
mTicksSinceLastVelocityChange++;
if (mTicksSinceLastVelocityChange <= mInertiaTicks)
... | public class class_name {
protected boolean updateState()
{
if (!overrideKeyboardInput)
{
return false; // Let the class do the default thing. // depends on control dependency: [if], data = [none]
}
// Update movement:
mTicksSinceLastVelocityChange++;
i... |
public class class_name {
private void addSwatchToRow(TableRow row, View swatch, int rowNumber) {
if (rowNumber % 2 == 0) {
row.addView(swatch);
} else {
row.addView(swatch, 0);
}
} } | public class class_name {
private void addSwatchToRow(TableRow row, View swatch, int rowNumber) {
if (rowNumber % 2 == 0) {
row.addView(swatch); // depends on control dependency: [if], data = [none]
} else {
row.addView(swatch, 0); // depends on control dependency: [if], data = ... |
public class class_name {
@Override
public CloseableReference<Bitmap> decodeFromEncodedImageWithColorSpace(
final EncodedImage encodedImage,
Bitmap.Config bitmapConfig,
@Nullable Rect regionToDecode,
@Nullable final ColorSpace colorSpace) {
BitmapFactory.Options options = getBitmapFactory... | public class class_name {
@Override
public CloseableReference<Bitmap> decodeFromEncodedImageWithColorSpace(
final EncodedImage encodedImage,
Bitmap.Config bitmapConfig,
@Nullable Rect regionToDecode,
@Nullable final ColorSpace colorSpace) {
BitmapFactory.Options options = getBitmapFactory... |
public class class_name {
@Deprecated
public TraceMethod entry(String methodSignature) {
synchronized (this.syncObject) {
out().printIndentln("ENTRY--" + methodSignature + "--" + Thread.currentThread().getName() + "[" + Thread.currentThread().getId() + "]");
}
TraceMethod traceMethod = null;... | public class class_name {
@Deprecated
public TraceMethod entry(String methodSignature) {
synchronized (this.syncObject) {
out().printIndentln("ENTRY--" + methodSignature + "--" + Thread.currentThread().getName() + "[" + Thread.currentThread().getId() + "]");
}
TraceMethod traceMethod = null;... |
public class class_name {
@Override
public final boolean isValid(final String pvalue, final ConstraintValidatorContext pcontext) {
if (StringUtils.isEmpty(pvalue)) {
return true;
}
if (pvalue.length() > LENGTH_CREDIT_CARDNUMBER) {
// credit card number is to long, but that's handled by size a... | public class class_name {
@Override
public final boolean isValid(final String pvalue, final ConstraintValidatorContext pcontext) {
if (StringUtils.isEmpty(pvalue)) {
return true; // depends on control dependency: [if], data = [none]
}
if (pvalue.length() > LENGTH_CREDIT_CARDNUMBER) {
// credi... |
public class class_name {
private static void updateLocalConfiguration(final JavaSparkContext sparkContext,
final Configuration configuration) {
/*
* While we could enumerate over the entire SparkConfiguration and copy into the Thread
* Local p... | public class class_name {
private static void updateLocalConfiguration(final JavaSparkContext sparkContext,
final Configuration configuration) {
/*
* While we could enumerate over the entire SparkConfiguration and copy into the Thread
* Local p... |
public class class_name {
public void registerDereferencedListener(
final Provider.DereferenceListener onProviderFreedListener) {
if (uiThreadRunner.isOnUiThread()) {
graph.registerDereferencedListener(onProviderFreedListener);
} else {
uiThreadRunner.post(new Runnab... | public class class_name {
public void registerDereferencedListener(
final Provider.DereferenceListener onProviderFreedListener) {
if (uiThreadRunner.isOnUiThread()) {
graph.registerDereferencedListener(onProviderFreedListener); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public Collection<H> lowerDescendants( BitSet key ) {
List<H> vals = new LinkedList<H>();
int l = key.length();
if ( l == 0 || line.isEmpty() ) {
return new ArrayList( getSortedMembers() );
}
int n = line.lastKey().length();
if ( l ... | public class class_name {
public Collection<H> lowerDescendants( BitSet key ) {
List<H> vals = new LinkedList<H>();
int l = key.length();
if ( l == 0 || line.isEmpty() ) {
return new ArrayList( getSortedMembers() ); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
@Override
protected Query makeQuery(Token lower, Token upper, boolean includeLower, boolean includeUpper) {
Long start = lower == null ? null : (Long) lower.getTokenValue();
Long stop = upper == null ? null : (Long) upper.getTokenValue();
if (lower != null && lower... | public class class_name {
@Override
protected Query makeQuery(Token lower, Token upper, boolean includeLower, boolean includeUpper) {
Long start = lower == null ? null : (Long) lower.getTokenValue();
Long stop = upper == null ? null : (Long) upper.getTokenValue();
if (lower != null && lower... |
public class class_name {
private void clear(IntSet segments, boolean keepSegments) {
for (Iterator<K> keyIterator = entries.keySet().iterator(); keyIterator.hasNext(); ) {
K key = keyIterator.next();
int keySegment = getSegmentForKey(key);
if (keepSegments != segments.contains(keySegm... | public class class_name {
private void clear(IntSet segments, boolean keepSegments) {
for (Iterator<K> keyIterator = entries.keySet().iterator(); keyIterator.hasNext(); ) {
K key = keyIterator.next();
int keySegment = getSegmentForKey(key);
if (keepSegments != segments.contains(keySegm... |
public class class_name {
@Override
protected LessLockingUniversalPgSQLQueue createQueueInstance(final QueueSpec spec) {
LessLockingUniversalPgSQLQueue queue = new LessLockingUniversalPgSQLQueue();
queue.setFifo(defaultFifo);
Boolean fifo = spec.getField(SPEC_FIELD_FIFO, Boolean.class);
... | public class class_name {
@Override
protected LessLockingUniversalPgSQLQueue createQueueInstance(final QueueSpec spec) {
LessLockingUniversalPgSQLQueue queue = new LessLockingUniversalPgSQLQueue();
queue.setFifo(defaultFifo);
Boolean fifo = spec.getField(SPEC_FIELD_FIFO, Boolean.class);
... |
public class class_name {
public EntityBeanType<EnterpriseBeansType<T>> getOrCreateEntity()
{
List<Node> nodeList = childNode.get("entity");
if (nodeList != null && nodeList.size() > 0)
{
return new EntityBeanTypeImpl<EnterpriseBeansType<T>>(this, "entity", childNode, nodeList.get(0));
... | public class class_name {
public EntityBeanType<EnterpriseBeansType<T>> getOrCreateEntity()
{
List<Node> nodeList = childNode.get("entity");
if (nodeList != null && nodeList.size() > 0)
{
return new EntityBeanTypeImpl<EnterpriseBeansType<T>>(this, "entity", childNode, nodeList.get(0)); /... |
public class class_name {
public UpdateDescription merge(@Nullable final UpdateDescription otherDescription) {
if (otherDescription != null) {
for (final Map.Entry<String, BsonValue> entry : this.updatedFields.entrySet()) {
if (otherDescription.removedFields.contains(entry.getKey())) {
this... | public class class_name {
public UpdateDescription merge(@Nullable final UpdateDescription otherDescription) {
if (otherDescription != null) {
for (final Map.Entry<String, BsonValue> entry : this.updatedFields.entrySet()) {
if (otherDescription.removedFields.contains(entry.getKey())) {
this... |
public class class_name {
@Override
public WebSphereBeanDeploymentArchive getBeanDeploymentArchive(Class<?> beanClass) {
// Note this method looks for BDA containing a **bean** of the given class
// We think this is the correct behavior for the weld CDI11Deployment interfaces
for (WebSphere... | public class class_name {
@Override
public WebSphereBeanDeploymentArchive getBeanDeploymentArchive(Class<?> beanClass) {
// Note this method looks for BDA containing a **bean** of the given class
// We think this is the correct behavior for the weld CDI11Deployment interfaces
for (WebSphere... |
public class class_name {
@Override
public void showErrors(List<EditorError> errors) {
if (errorHandler != null) {
if (errors == null || errors.isEmpty()) {
errorHandler.clearErrors();
return;
}
errorHandler.showErrors(errors);
}
... | public class class_name {
@Override
public void showErrors(List<EditorError> errors) {
if (errorHandler != null) {
if (errors == null || errors.isEmpty()) {
errorHandler.clearErrors(); // depends on control dependency: [if], data = [none]
return; // depends on co... |
public class class_name {
public void setLocalMatrix(int boneindex, Matrix4f mtx)
{
Bone bone = mBones[boneindex];
int parentid = mSkeleton.getParentBoneIndex(boneindex);
bone.LocalMatrix.set(mtx);
bone.Changed = Bone.LOCAL_ROT;
if (parentid < 0)
{
... | public class class_name {
public void setLocalMatrix(int boneindex, Matrix4f mtx)
{
Bone bone = mBones[boneindex];
int parentid = mSkeleton.getParentBoneIndex(boneindex);
bone.LocalMatrix.set(mtx);
bone.Changed = Bone.LOCAL_ROT;
if (parentid < 0)
{
... |
public class class_name {
public BsonDocument toUpdateDocument() {
final List<BsonElement> unsets = new ArrayList<>();
for (final String removedField : this.removedFields) {
unsets.add(new BsonElement(removedField, new BsonBoolean(true)));
}
final BsonDocument updateDocument = new BsonDocument();... | public class class_name {
public BsonDocument toUpdateDocument() {
final List<BsonElement> unsets = new ArrayList<>();
for (final String removedField : this.removedFields) {
unsets.add(new BsonElement(removedField, new BsonBoolean(true))); // depends on control dependency: [for], data = [removedField]
... |
public class class_name {
protected void sendMessage(CmsUUID toUserId, String message, boolean hasErrors) {
CmsDbContext dbc = m_dbContextFactory.getDbContext();
try {
CmsUser toUser = m_driverManager.readUser(dbc, toUserId);
CmsUserSettings settings = new CmsUserSettings(toUse... | public class class_name {
protected void sendMessage(CmsUUID toUserId, String message, boolean hasErrors) {
CmsDbContext dbc = m_dbContextFactory.getDbContext();
try {
CmsUser toUser = m_driverManager.readUser(dbc, toUserId);
CmsUserSettings settings = new CmsUserSettings(toUse... |
public class class_name {
private void checkReturnValue(Decl.FunctionOrMethod d, Environment last) {
if (d.match(Modifier.Native.class) == null && last != FlowTypeUtils.BOTTOM && d.getReturns().size() != 0) {
// In this case, code reaches the end of the function or method and,
// furthermore, that this require... | public class class_name {
private void checkReturnValue(Decl.FunctionOrMethod d, Environment last) {
if (d.match(Modifier.Native.class) == null && last != FlowTypeUtils.BOTTOM && d.getReturns().size() != 0) {
// In this case, code reaches the end of the function or method and,
// furthermore, that this require... |
public class class_name {
static String getFieldNameByGetter(Method getter, boolean forceCamelCase) {
String getterName = getter.getName();
String fieldNameWithUpperCamelCase = "";
if ( getterName.startsWith("get") ) {
fieldNameWithUpperCamelCase = getterName.substring("get".length... | public class class_name {
static String getFieldNameByGetter(Method getter, boolean forceCamelCase) {
String getterName = getter.getName();
String fieldNameWithUpperCamelCase = "";
if ( getterName.startsWith("get") ) {
fieldNameWithUpperCamelCase = getterName.substring("get".length... |
public class class_name {
public static void printHelp(final Options options) {
Collection<Option> c = options.getOptions();
System.out.println("Command line options are:");
int longestLongOption = 0;
for (Option op : c) {
if (op.getLongOpt().length() > longestLongOption) {
... | public class class_name {
public static void printHelp(final Options options) {
Collection<Option> c = options.getOptions();
System.out.println("Command line options are:");
int longestLongOption = 0;
for (Option op : c) {
if (op.getLongOpt().length() > longestLongOption) {
... |
public class class_name {
private Object invoke(String methodName, Object returnValueIfNonExistent,
Class<?>[] paramTypes, Object[] params)
throws DocletInvokeException {
Method meth;
try {
meth = docletClass.getMethod(methodName, paramTypes);
... | public class class_name {
private Object invoke(String methodName, Object returnValueIfNonExistent,
Class<?>[] paramTypes, Object[] params)
throws DocletInvokeException {
Method meth;
try {
meth = docletClass.getMethod(methodName, paramTypes);
... |
public class class_name {
private static String[] readSqlStatements(URL url) {
try {
char buffer[] = new char[256];
StringBuilder result = new StringBuilder();
InputStreamReader reader = new InputStreamReader(url.openStream(), "UTF-8");
while (true) {
... | public class class_name {
private static String[] readSqlStatements(URL url) {
try {
char buffer[] = new char[256];
StringBuilder result = new StringBuilder();
InputStreamReader reader = new InputStreamReader(url.openStream(), "UTF-8");
while (true) {
... |
public class class_name {
public Object getObject(int key) {
if (key < 0) Kit.codeBug();
if (values != null) {
int index = findIndex(key);
if (0 <= index) {
return values[index];
}
}
return null;
} } | public class class_name {
public Object getObject(int key) {
if (key < 0) Kit.codeBug();
if (values != null) {
int index = findIndex(key);
if (0 <= index) {
return values[index]; // depends on control dependency: [if], data = [none]
}
}
... |
public class class_name {
public List<CmsXmlSitemapUrlBean> generateSitemapBeans() throws CmsException {
String baseSitePath = m_siteGuestCms.getRequestContext().removeSiteRoot(m_baseFolderRootPath);
initializeFileData(baseSitePath);
for (CmsResource resource : getDirectPages()) {
... | public class class_name {
public List<CmsXmlSitemapUrlBean> generateSitemapBeans() throws CmsException {
String baseSitePath = m_siteGuestCms.getRequestContext().removeSiteRoot(m_baseFolderRootPath);
initializeFileData(baseSitePath);
for (CmsResource resource : getDirectPages()) {
... |
public class class_name {
private void internalSearchNext(
DeleteStack stack,
int v1,
int x1)
{
SearchComparator comp = searchComparator(SearchComparator.GT);
_s = 0;
... | public class class_name {
private void internalSearchNext(
DeleteStack stack,
int v1,
int x1)
{
SearchComparator comp = searchComparator(SearchComparator.GT);
_s = 0;
... |
public class class_name {
@Override
@SuppressWarnings("unchecked")
public StandardRule<T> using(String... factNames) {
List<String> factNameList = Stream.of(factNames)
.filter(name -> _factType.isInstance(_facts.getValue(name)))
.collect(Collectors.toList());
if (_factNameMap.containsKey((g... | public class class_name {
@Override
@SuppressWarnings("unchecked")
public StandardRule<T> using(String... factNames) {
List<String> factNameList = Stream.of(factNames)
.filter(name -> _factType.isInstance(_facts.getValue(name)))
.collect(Collectors.toList());
if (_factNameMap.containsKey((g... |
public class class_name {
@Override
public synchronized void onNext(final RuntimeStart runtimeStart) {
LOG.log(Level.FINEST, "HttpRuntimeStartHandler: {0}", runtimeStart);
try {
httpServer.start();
LOG.log(Level.FINEST, "HttpRuntimeStartHandler complete.");
} catch (final Exception e) {
... | public class class_name {
@Override
public synchronized void onNext(final RuntimeStart runtimeStart) {
LOG.log(Level.FINEST, "HttpRuntimeStartHandler: {0}", runtimeStart);
try {
httpServer.start(); // depends on control dependency: [try], data = [none]
LOG.log(Level.FINEST, "HttpRuntimeStartHandl... |
public class class_name {
public void marshall(PutScalingPolicyRequest putScalingPolicyRequest, ProtocolMarshaller protocolMarshaller) {
if (putScalingPolicyRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... | public class class_name {
public void marshall(PutScalingPolicyRequest putScalingPolicyRequest, ProtocolMarshaller protocolMarshaller) {
if (putScalingPolicyRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... |
public class class_name {
public void parseReferences(ArrayList<String> name)
{
String foreignTable = parseIdentifier();
Token token = scanToken();
ArrayList<String> foreignColumns = new ArrayList<String>();
if (token == Token.LPAREN) {
_token = token;
foreignColumns = parseColumnName... | public class class_name {
public void parseReferences(ArrayList<String> name)
{
String foreignTable = parseIdentifier();
Token token = scanToken();
ArrayList<String> foreignColumns = new ArrayList<String>();
if (token == Token.LPAREN) {
_token = token; // depends on control dependency: [if],... |
public class class_name {
public JsonObject toJson() {
final JsonObjectBuilder builder = Json.createObjectBuilder();
builder.add(EL_DATA_TYPE, dataType);
builder.add(EL_DATA_CONTENT_TYPE, dataContentTypeStr);
if (meta == null) {
return builder.build();
}
buil... | public class class_name {
public JsonObject toJson() {
final JsonObjectBuilder builder = Json.createObjectBuilder();
builder.add(EL_DATA_TYPE, dataType);
builder.add(EL_DATA_CONTENT_TYPE, dataContentTypeStr);
if (meta == null) {
return builder.build(); // depends on control ... |
public class class_name {
@SuppressWarnings("unchecked")
public void setSpellCheckerClass(String className)
{
try
{
Class<?> clazz = ClassLoading.forName(className, this);
if (SpellChecker.class.isAssignableFrom(clazz))
{
spellCheckerClass = (Class<? extends Spe... | public class class_name {
@SuppressWarnings("unchecked")
public void setSpellCheckerClass(String className)
{
try
{
Class<?> clazz = ClassLoading.forName(className, this);
if (SpellChecker.class.isAssignableFrom(clazz))
{
spellCheckerClass = (Class<? extends Spe... |
public class class_name {
private JSType getJSType(Node n) {
JSType jsType = n.getJSType();
if (jsType == null) {
// TODO(nicksantos): This branch indicates a compiler bug, not worthy of
// halting the compilation but we should log this and analyze to track
// down why it happens. This is not... | public class class_name {
private JSType getJSType(Node n) {
JSType jsType = n.getJSType();
if (jsType == null) {
// TODO(nicksantos): This branch indicates a compiler bug, not worthy of
// halting the compilation but we should log this and analyze to track
// down why it happens. This is not... |
public class class_name {
private opendap.dap.Attribute getAliasAttribute(AttributeTable att, Vector aNames)
throws MalformedAliasException, UnresolvedAliasException
{
// Get the first node name form the vector.
String aName = (String) aNames.get(0);
// Get the list of ... | public class class_name {
private opendap.dap.Attribute getAliasAttribute(AttributeTable att, Vector aNames)
throws MalformedAliasException, UnresolvedAliasException
{
// Get the first node name form the vector.
String aName = (String) aNames.get(0);
// Get the list of ... |
public class class_name {
static void setFieldValue(DBObject document, Object entityObject, Attribute column, boolean isLob)
{
Object value = null;
if (document != null)
{
value = isLob ? ((DBObject) document.get("metadata")).get(((AbstractAttribute) column).getJPAColumnN... | public class class_name {
static void setFieldValue(DBObject document, Object entityObject, Attribute column, boolean isLob)
{
Object value = null;
if (document != null)
{
value = isLob ? ((DBObject) document.get("metadata")).get(((AbstractAttribute) column).getJPAColumnN... |
public class class_name {
public boolean replace(JsonElement e1, JsonElement e2) {
int index = indexOf(e1);
if(index>=0) {
set(index, e2);
return true;
} else {
return false;
}
} } | public class class_name {
public boolean replace(JsonElement e1, JsonElement e2) {
int index = indexOf(e1);
if(index>=0) {
set(index, e2); // depends on control dependency: [if], data = [(index]
return true; // depends on control dependency: [if], data = [none]
} else {
... |
public class class_name {
private static <L> Map<Name, TypeSet<ResourceType<L>>> buildTypeMapForConstructor(
Collection<ResourceType<L>> allTypes) {
TypeSetBuilder<ResourceType<L>> bldr = TypeSet.<ResourceType<L>> builder();
bldr.enabled(true);
bldr.name(new Name("all"));
fo... | public class class_name {
private static <L> Map<Name, TypeSet<ResourceType<L>>> buildTypeMapForConstructor(
Collection<ResourceType<L>> allTypes) {
TypeSetBuilder<ResourceType<L>> bldr = TypeSet.<ResourceType<L>> builder();
bldr.enabled(true);
bldr.name(new Name("all"));
fo... |
public class class_name {
public static void filters(Filter filter, Filter... additionalFilters) {
Validate.notNull(filter, "Filter cannot be null");
RestAssured.filters.add(filter);
if (additionalFilters != null) {
Collections.addAll(RestAssured.filters, additionalFilters);
... | public class class_name {
public static void filters(Filter filter, Filter... additionalFilters) {
Validate.notNull(filter, "Filter cannot be null");
RestAssured.filters.add(filter);
if (additionalFilters != null) {
Collections.addAll(RestAssured.filters, additionalFilters); // depe... |
public class class_name {
Dimension getNetcdfStrlenDim(DODSVariable v) {
AttributeTable table = das.getAttributeTableN(v.getFullName()); // LOOK this probably doesnt work for nested variables
if (table == null) return null;
opendap.dap.Attribute dodsAtt = table.getAttribute("DODS");
if (dodsAtt == nul... | public class class_name {
Dimension getNetcdfStrlenDim(DODSVariable v) {
AttributeTable table = das.getAttributeTableN(v.getFullName()); // LOOK this probably doesnt work for nested variables
if (table == null) return null;
opendap.dap.Attribute dodsAtt = table.getAttribute("DODS");
if (dodsAtt == nul... |
public class class_name {
public static String getCharsetFromContentType(String type) {
init();
if (type == null) {
return null;
}
int semi = type.indexOf(";");
if (semi == -1) {
return null;
}
String afterSemi = type.substring(semi + 1);
... | public class class_name {
public static String getCharsetFromContentType(String type) {
init();
if (type == null) {
return null; // depends on control dependency: [if], data = [none]
}
int semi = type.indexOf(";");
if (semi == -1) {
return null; // depends... |
public class class_name {
public static Set<String> process(CopyResourcesMojo copyResourcesMojo,
Set<String> excludes, Set<String> files) {
copyResourcesMojo.getLog().debug("Start exclude.");
if (excludes == null || files == null) {
return files;
}
Set<String> retval = new HashSet<String>();
AntPathMat... | public class class_name {
public static Set<String> process(CopyResourcesMojo copyResourcesMojo,
Set<String> excludes, Set<String> files) {
copyResourcesMojo.getLog().debug("Start exclude.");
if (excludes == null || files == null) {
return files; // depends on control dependency: [if], data = [none]
}
Se... |
public class class_name {
public static final Date parseDateTime(String value)
{
Date result = null;
try
{
if (value != null && !value.isEmpty())
{
result = DATE_TIME_FORMAT.get().parse(value);
}
}
catch (ParseException ex)
{
// Ig... | public class class_name {
public static final Date parseDateTime(String value)
{
Date result = null;
try
{
if (value != null && !value.isEmpty())
{
result = DATE_TIME_FORMAT.get().parse(value); // depends on control dependency: [if], data = [(value]
}
... |
public class class_name {
public List<String> introspect() {
List<String> rc = new LinkedList<String>();
String prefix = getClass().getSimpleName() + "@" + hashCode() + ": ";
rc.add(prefix + "closed=" + this.closed);
rc.add(prefix + "processClose=" + this.processClose);
rc.add(p... | public class class_name {
public List<String> introspect() {
List<String> rc = new LinkedList<String>();
String prefix = getClass().getSimpleName() + "@" + hashCode() + ": ";
rc.add(prefix + "closed=" + this.closed);
rc.add(prefix + "processClose=" + this.processClose);
rc.add(p... |
public class class_name {
void genCode(String name, ArrayList<JFile> ilist,
ArrayList<JRecord> rlist, String destDir, ArrayList<String> options)
throws IOException {
name = new File(destDir, (new File(name)).getName()).getAbsolutePath();
FileWriter cc = new FileWriter(name+".cc");
try {... | public class class_name {
void genCode(String name, ArrayList<JFile> ilist,
ArrayList<JRecord> rlist, String destDir, ArrayList<String> options)
throws IOException {
name = new File(destDir, (new File(name)).getName()).getAbsolutePath();
FileWriter cc = new FileWriter(name+".cc");
try {... |
public class class_name {
private boolean checkPlTaxNumber(final String ptaxNumber) {
final int checkSum = ptaxNumber.charAt(ptaxNumber.length() - 1) - '0';
int calculatedCheckSum;
if (StringUtils.length(ptaxNumber) == 11) {
// PESEL
final int sum = (ptaxNumber.charAt(0) - '0') * 1 //
... | public class class_name {
private boolean checkPlTaxNumber(final String ptaxNumber) {
final int checkSum = ptaxNumber.charAt(ptaxNumber.length() - 1) - '0';
int calculatedCheckSum;
if (StringUtils.length(ptaxNumber) == 11) {
// PESEL
final int sum = (ptaxNumber.charAt(0) - '0') * 1 //
... |
public class class_name {
public List<Set<K>> kmeans(int nclusters)
{
Cluster<K> cluster = new Cluster<K>();
for (Document<K> document : documents_.values())
{
cluster.add_document(document);
}
cluster.section(nclusters);
refine_clusters(cluster.sectioned... | public class class_name {
public List<Set<K>> kmeans(int nclusters)
{
Cluster<K> cluster = new Cluster<K>();
for (Document<K> document : documents_.values())
{
cluster.add_document(document); // depends on control dependency: [for], data = [document]
}
cluster.se... |
public class class_name {
private static List<CharSequence> splitHeader(CharSequence header) {
final StringBuilder builder = new StringBuilder(header.length());
final List<CharSequence> protocols = new ArrayList<CharSequence>(4);
for (int i = 0; i < header.length(); ++i) {
char c = ... | public class class_name {
private static List<CharSequence> splitHeader(CharSequence header) {
final StringBuilder builder = new StringBuilder(header.length());
final List<CharSequence> protocols = new ArrayList<CharSequence>(4);
for (int i = 0; i < header.length(); ++i) {
char c = ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.