code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public void loadKeyStores(Map<String, WSKeyStore> config) {
// now process each keystore in the provided config
for (Entry<String, WSKeyStore> current : config.entrySet()) {
try {
String name = current.getKey();
WSKeyStore keystore =... | public class class_name {
public void loadKeyStores(Map<String, WSKeyStore> config) {
// now process each keystore in the provided config
for (Entry<String, WSKeyStore> current : config.entrySet()) {
try {
String name = current.getKey();
WSKeyStore keystore =... |
public class class_name {
public void marshall(WavSettings wavSettings, ProtocolMarshaller protocolMarshaller) {
if (wavSettings == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(wavSettings.getBitD... | public class class_name {
public void marshall(WavSettings wavSettings, ProtocolMarshaller protocolMarshaller) {
if (wavSettings == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(wavSettings.getBitD... |
public class class_name {
@Override
public <V> Observable<V> mapGet(final String docId, final String key, Class<V> valueType) {
final Func1<DocumentFragment<Lookup>, V> mapResult = new Func1<DocumentFragment<Lookup>, V>() {
@Override
public V call(DocumentFragment<Lookup> documentFr... | public class class_name {
@Override
public <V> Observable<V> mapGet(final String docId, final String key, Class<V> valueType) {
final Func1<DocumentFragment<Lookup>, V> mapResult = new Func1<DocumentFragment<Lookup>, V>() {
@Override
public V call(DocumentFragment<Lookup> documentFr... |
public class class_name {
public IPersistentMap meta() {
if (_meta == null) {
_meta = new PersistentArrayMap(new Object[]{makeKeyword("stream"), getSourceStreamId(),
makeKeyword("component"), getSourceComponent(), makeKeyword("task"), getSourceTask()});
}
return ... | public class class_name {
public IPersistentMap meta() {
if (_meta == null) {
_meta = new PersistentArrayMap(new Object[]{makeKeyword("stream"), getSourceStreamId(),
makeKeyword("component"), getSourceComponent(), makeKeyword("task"), getSourceTask()}); // depends on control dep... |
public class class_name {
protected boolean isSubsetContainedIn(Set<String> selectedListItems, Set<String> distinctFacetValues) {
boolean isPresent = false;
for (String selectedListItem : selectedListItems) {
isPresent = distinctFacetValues.contains(selectedListItem);
}
retu... | public class class_name {
protected boolean isSubsetContainedIn(Set<String> selectedListItems, Set<String> distinctFacetValues) {
boolean isPresent = false;
for (String selectedListItem : selectedListItems) {
isPresent = distinctFacetValues.contains(selectedListItem); // depends on control ... |
public class class_name {
public static Pool<Jedis> createJedisPool(final Config jesqueConfig, final GenericObjectPoolConfig poolConfig) {
if (jesqueConfig == null) {
throw new IllegalArgumentException("jesqueConfig must not be null");
}
if (poolConfig == null) {
throw n... | public class class_name {
public static Pool<Jedis> createJedisPool(final Config jesqueConfig, final GenericObjectPoolConfig poolConfig) {
if (jesqueConfig == null) {
throw new IllegalArgumentException("jesqueConfig must not be null");
}
if (poolConfig == null) {
throw n... |
public class class_name {
private Choice parseChoice(CharSequenceScanner scanner) {
Filter<Object> condition = parseCondition(scanner);
List<Segment> segments = new ArrayList<>();
while (scanner.hasNext()) {
int index = scanner.getCurrentIndex();
char c = scanner.peek();
String literal =... | public class class_name {
private Choice parseChoice(CharSequenceScanner scanner) {
Filter<Object> condition = parseCondition(scanner);
List<Segment> segments = new ArrayList<>();
while (scanner.hasNext()) {
int index = scanner.getCurrentIndex();
char c = scanner.peek();
String literal =... |
public class class_name {
@Override
public String getCommandLine() {
final StringBuilder commandLineString = new StringBuilder();
String tempString;
commandLineString.append(callerArguments.getClass().getSimpleName());
// positional args first
if( positionalArgumentDefiniti... | public class class_name {
@Override
public String getCommandLine() {
final StringBuilder commandLineString = new StringBuilder();
String tempString;
commandLineString.append(callerArguments.getClass().getSimpleName());
// positional args first
if( positionalArgumentDefiniti... |
public class class_name {
public boolean isMisspelled(final String word) {
// dictionaries usually do not contain punctuation
String wordToCheck = word;
if (!dictionaryMetadata.getInputConversionPairs().isEmpty()) {
wordToCheck = DictionaryLookup.applyReplacements(word, dictionaryMetadata.getInpu... | public class class_name {
public boolean isMisspelled(final String word) {
// dictionaries usually do not contain punctuation
String wordToCheck = word;
if (!dictionaryMetadata.getInputConversionPairs().isEmpty()) {
wordToCheck = DictionaryLookup.applyReplacements(word, dictionaryMetadata.getInpu... |
public class class_name {
protected void registerRevision(final String _application,
final InstallFile _installFile,
final Instance _objInst)
throws InstallationException
{
try {
if (CIAdminCommon.Application.getTyp... | public class class_name {
protected void registerRevision(final String _application,
final InstallFile _installFile,
final Instance _objInst)
throws InstallationException
{
try {
if (CIAdminCommon.Application.getTyp... |
public class class_name {
public static String render(List<Node> nodes) {
StringBuilder buf = new StringBuilder();
for (Node node : nodes) {
if (node instanceof Text) {
String text = ((Text) node).text;
boolean inquote = false;
for (int i = 0; i < text.length(); i++) {
c... | public class class_name {
public static String render(List<Node> nodes) {
StringBuilder buf = new StringBuilder();
for (Node node : nodes) {
if (node instanceof Text) {
String text = ((Text) node).text;
boolean inquote = false;
for (int i = 0; i < text.length(); i++) {
c... |
public class class_name {
public static String removeEnd(final String s, final char c) {
if (endWith(s, c)) {
return s.substring(0, s.length() - 1);
}
return s;
} } | public class class_name {
public static String removeEnd(final String s, final char c) {
if (endWith(s, c)) {
return s.substring(0, s.length() - 1); // depends on control dependency: [if], data = [none]
}
return s;
} } |
public class class_name {
public static String getStringOptional(
final Properties properties,
final String key,
final String other)
{
Objects.requireNonNull(properties, "Properties");
Objects.requireNonNull(key, "Key");
Objects.requireNonNull(other, "Default value");
final String value ... | public class class_name {
public static String getStringOptional(
final Properties properties,
final String key,
final String other)
{
Objects.requireNonNull(properties, "Properties");
Objects.requireNonNull(key, "Key");
Objects.requireNonNull(other, "Default value");
final String value ... |
public class class_name {
@PublicEvolving
@Deprecated
public <OUT> DataStreamSource<OUT> readFile(FileInputFormat<OUT> inputFormat,
String filePath,
FileProcessingMode watchType,
long interval,
FilePathFilter filter) {
inputFormat.setFilesFilter(filter);
TypeInfor... | public class class_name {
@PublicEvolving
@Deprecated
public <OUT> DataStreamSource<OUT> readFile(FileInputFormat<OUT> inputFormat,
String filePath,
FileProcessingMode watchType,
long interval,
FilePathFilter filter) {
inputFormat.setFilesFilter(filter);
TypeInfor... |
public class class_name {
public List<InputType> getLayerActivationTypes(@NonNull InputType inputType) {
List<InputType> out = new ArrayList<>();
int nLayers = confs.size();
for (int i = 0; i < nLayers; i++) {
InputPreProcessor preproc = getInputPreProcess(i);
if (prepro... | public class class_name {
public List<InputType> getLayerActivationTypes(@NonNull InputType inputType) {
List<InputType> out = new ArrayList<>();
int nLayers = confs.size();
for (int i = 0; i < nLayers; i++) {
InputPreProcessor preproc = getInputPreProcess(i);
if (prepro... |
public class class_name {
void dispatch(String line, DispatchCallback callback) {
if (line == null) {
// exit
exit = true;
return;
}
if (line.trim().length() == 0) {
callback.setStatus(DispatchCallback.Status.SUCCESS);
return;
}
if (isComment(line)) {
callback.... | public class class_name {
void dispatch(String line, DispatchCallback callback) {
if (line == null) {
// exit
exit = true; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
if (line.trim().length() == 0) {
callback... |
public class class_name {
synchronized void paintComponent(Graphics componentGraphics) {
int width = getWidth();
int height = getHeight();
this.scrollController.updateModel(
virtualTerminal.getBufferLineCount() * getFontHeight(),
height);
boolean needTo... | public class class_name {
synchronized void paintComponent(Graphics componentGraphics) {
int width = getWidth();
int height = getHeight();
this.scrollController.updateModel(
virtualTerminal.getBufferLineCount() * getFontHeight(),
height);
boolean needTo... |
public class class_name {
Arc findarc(int type, short co) {
for (Arc a = outs; a != null; a = a.outchain) {
if (a.type == type && a.co == co) {
return a;
}
}
return null;
} } | public class class_name {
Arc findarc(int type, short co) {
for (Arc a = outs; a != null; a = a.outchain) {
if (a.type == type && a.co == co) {
return a; // depends on control dependency: [if], data = [none]
}
}
return null;
} } |
public class class_name {
@CheckReturnValue
@SchedulerSupport(SchedulerSupport.NONE)
public final <R> Observable<R> switchMap(Function<? super T, ? extends ObservableSource<? extends R>> mapper, int bufferSize) {
ObjectHelper.requireNonNull(mapper, "mapper is null");
ObjectHelper.verifyPositive... | public class class_name {
@CheckReturnValue
@SchedulerSupport(SchedulerSupport.NONE)
public final <R> Observable<R> switchMap(Function<? super T, ? extends ObservableSource<? extends R>> mapper, int bufferSize) {
ObjectHelper.requireNonNull(mapper, "mapper is null");
ObjectHelper.verifyPositive... |
public class class_name {
public BatchGetQueryExecutionRequest withQueryExecutionIds(String... queryExecutionIds) {
if (this.queryExecutionIds == null) {
setQueryExecutionIds(new java.util.ArrayList<String>(queryExecutionIds.length));
}
for (String ele : queryExecutionIds) {
... | public class class_name {
public BatchGetQueryExecutionRequest withQueryExecutionIds(String... queryExecutionIds) {
if (this.queryExecutionIds == null) {
setQueryExecutionIds(new java.util.ArrayList<String>(queryExecutionIds.length)); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public static String stringDefaultValue(String bytes) {
try {
return new String(bytes.getBytes("ISO-8859-1"), "UTF-8");
} catch (UnsupportedEncodingException e) {
// This should never happen since all JVMs are required to implement
// both of the above character sets... | public class class_name {
public static String stringDefaultValue(String bytes) {
try {
return new String(bytes.getBytes("ISO-8859-1"), "UTF-8"); // depends on control dependency: [try], data = [none]
} catch (UnsupportedEncodingException e) {
// This should never happen since all JVMs are required... |
public class class_name {
@VisibleForTesting
String getActiveDomain(String taskType, String[] domains) {
if (domains == null || domains.length == 0) {
return null;
}
return Arrays.stream(domains)
.filter(domain -> !domain.equalsIgnoreCase("NO_DOMAIN"))
... | public class class_name {
@VisibleForTesting
String getActiveDomain(String taskType, String[] domains) {
if (domains == null || domains.length == 0) {
return null; // depends on control dependency: [if], data = [none]
}
return Arrays.stream(domains)
.filter(doma... |
public class class_name {
public static Object getScopedSessionAttr( String attrName, HttpServletRequest request )
{
HttpSession session = request.getSession( false );
if ( session != null )
{
return session.getAttribute( getScopedSessionAttrName( attrName, request ) );... | public class class_name {
public static Object getScopedSessionAttr( String attrName, HttpServletRequest request )
{
HttpSession session = request.getSession( false );
if ( session != null )
{
return session.getAttribute( getScopedSessionAttrName( attrName, request ) );... |
public class class_name {
private void cumulateSoil( List<Coordinate> pathCoordinates, List<Boolean> isBetweenSlopesCondition ) {
// pm.beginTask("Cumulate Soil...", pathCoordinates.size());
java.awt.Point point = new java.awt.Point();
GridGeometry2D gridGeometry = inSoil.getGridGeometry();
... | public class class_name {
private void cumulateSoil( List<Coordinate> pathCoordinates, List<Boolean> isBetweenSlopesCondition ) {
// pm.beginTask("Cumulate Soil...", pathCoordinates.size());
java.awt.Point point = new java.awt.Point();
GridGeometry2D gridGeometry = inSoil.getGridGeometry();
... |
public class class_name {
<T extends WriterSegmentProcessor> long getLowestUncommittedSequenceNumber(Iterable<T> processors) {
// We need to find the lowest value across all processors that have uncommitted data.
long result = Long.MAX_VALUE;
for (WriterSegmentProcessor p : processors) {
... | public class class_name {
<T extends WriterSegmentProcessor> long getLowestUncommittedSequenceNumber(Iterable<T> processors) {
// We need to find the lowest value across all processors that have uncommitted data.
long result = Long.MAX_VALUE;
for (WriterSegmentProcessor p : processors) {
... |
public class class_name {
@Override
public void run() {
while (!stop) {
EventModel event;
try {
event = blockingQueueHandling(); //gets the new Event if one was added to the blockingQueue
} catch (InterruptedException e) {
getContext().ge... | public class class_name {
@Override
public void run() {
while (!stop) {
EventModel event;
try {
event = blockingQueueHandling(); //gets the new Event if one was added to the blockingQueue // depends on control dependency: [try], data = [none]
} catch (In... |
public class class_name {
private int getHalogenCount(IAtomContainer ac, IAtom atom) {
List<IAtom> neighbours = ac.getConnectedAtomsList(atom);
int acounter = 0;
for (IAtom neighbour : neighbours) {
if (neighbour.getSymbol().equals("F") || neighbour.getSymbol().equals("I")
... | public class class_name {
private int getHalogenCount(IAtomContainer ac, IAtom atom) {
List<IAtom> neighbours = ac.getConnectedAtomsList(atom);
int acounter = 0;
for (IAtom neighbour : neighbours) {
if (neighbour.getSymbol().equals("F") || neighbour.getSymbol().equals("I")
... |
public class class_name {
public void marshall(ProvisionedProductDetail provisionedProductDetail, ProtocolMarshaller protocolMarshaller) {
if (provisionedProductDetail == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocol... | public class class_name {
public void marshall(ProvisionedProductDetail provisionedProductDetail, ProtocolMarshaller protocolMarshaller) {
if (provisionedProductDetail == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocol... |
public class class_name {
protected boolean isConditionColor(final Token.Condition token) {
if(MSColor.valueOfKnownColor(token.getCondition()) != null) {
return true;
}
return PATTERN_CONDITION_INDEX_COLOR.matcher(token.getValue()).matches();
} } | public class class_name {
protected boolean isConditionColor(final Token.Condition token) {
if(MSColor.valueOfKnownColor(token.getCondition()) != null) {
return true;
// depends on control dependency: [if], data = [none]
}
return PATTERN_CONDITION_INDEX_COLOR.matcher(token.getVa... |
public class class_name {
public static String asString(Object o) {
if (o == null) {
return NULL;
} else if (o instanceof Stringable) {
return ((Stringable) o).asString();
} else if (o instanceof Numeric) {
return String.format("%d", ((Numeric) o).asInteger()... | public class class_name {
public static String asString(Object o) {
if (o == null) {
return NULL; // depends on control dependency: [if], data = [none]
} else if (o instanceof Stringable) {
return ((Stringable) o).asString(); // depends on control dependency: [if], data = [none]... |
public class class_name {
static public boolean canRepresent(CharSequence str0) {
if (str0 == null) {
return true;
}
int len = str0.length();
for (int i = 0; i < len; i++) {
// get the char in this string
char c = str0.charAt(i);
// simpl... | public class class_name {
static public boolean canRepresent(CharSequence str0) {
if (str0 == null) {
return true; // depends on control dependency: [if], data = [none]
}
int len = str0.length();
for (int i = 0; i < len; i++) {
// get the char in this string
... |
public class class_name {
public Iterator getSelectedRows() {
TreePath[] paths = table.getSelectionPaths();
if ((paths == null) || (paths.length < 1))
return null;
HashSet set = new HashSet(2 * paths.length);
for (TreePath path : paths) {
model.addRowsToSetFromPath(table.getTree(), path, s... | public class class_name {
public Iterator getSelectedRows() {
TreePath[] paths = table.getSelectionPaths();
if ((paths == null) || (paths.length < 1))
return null;
HashSet set = new HashSet(2 * paths.length);
for (TreePath path : paths) {
model.addRowsToSetFromPath(table.getTree(), path, s... |
public class class_name {
private static String getAttributeName(XsdAttribute attribute) {
String name = ATTRIBUTE_PREFIX + getCleanName(attribute);
if (attributeHasEnum(attribute)) {
return name + getEnumName(attribute).replaceAll(name, "");
}
String javaType = getFullJav... | public class class_name {
private static String getAttributeName(XsdAttribute attribute) {
String name = ATTRIBUTE_PREFIX + getCleanName(attribute);
if (attributeHasEnum(attribute)) {
return name + getEnumName(attribute).replaceAll(name, ""); // depends on control dependency: [if], data = ... |
public class class_name {
protected TypeData mergeTypeData(final XExpression expression, List<TypeData> allValues, boolean returnType, boolean nullIfEmpty) {
int allSize = allValues.size();
if (nullIfEmpty && allSize == 0) {
return null;
}
final List<TypeData> values;
if (allSize == 1) {
TypeData resul... | public class class_name {
protected TypeData mergeTypeData(final XExpression expression, List<TypeData> allValues, boolean returnType, boolean nullIfEmpty) {
int allSize = allValues.size();
if (nullIfEmpty && allSize == 0) {
return null; // depends on control dependency: [if], data = [none]
}
final List<Typ... |
public class class_name {
public static Set<Path> getDeepestLevelRenamedDirsWithFileExistence (FileSystem fs, Set<Path> paths) throws IOException {
Set<Path> renamedDirs = Sets.newHashSet();
for (FileStatus fileStatus : FileListUtils.listFilesRecursively(fs, paths)) {
if (fileStatus.getPath().getParent()... | public class class_name {
public static Set<Path> getDeepestLevelRenamedDirsWithFileExistence (FileSystem fs, Set<Path> paths) throws IOException {
Set<Path> renamedDirs = Sets.newHashSet();
for (FileStatus fileStatus : FileListUtils.listFilesRecursively(fs, paths)) {
if (fileStatus.getPath().getParent()... |
public class class_name {
public void setClusterListEntries(java.util.Collection<ClusterListEntry> clusterListEntries) {
if (clusterListEntries == null) {
this.clusterListEntries = null;
return;
}
this.clusterListEntries = new java.util.ArrayList<ClusterListEntry>(clust... | public class class_name {
public void setClusterListEntries(java.util.Collection<ClusterListEntry> clusterListEntries) {
if (clusterListEntries == null) {
this.clusterListEntries = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if]... |
public class class_name {
@Override
public Optional<Property.Builder> getPropertyNames(
TypeElement valueType, ExecutableElement method) {
boolean declaredOnValueType = method.getEnclosingElement().equals(valueType);
String name = method.getSimpleName().toString();
Matcher getterMatcher = GETTER_PA... | public class class_name {
@Override
public Optional<Property.Builder> getPropertyNames(
TypeElement valueType, ExecutableElement method) {
boolean declaredOnValueType = method.getEnclosingElement().equals(valueType);
String name = method.getSimpleName().toString();
Matcher getterMatcher = GETTER_PA... |
public class class_name {
protected boolean isMatch(String[] words, String filter)
{
for (String word : words)
{
int len = filter.length();
if (word.regionMatches(ignoreCase, 0, filter, 0, len))
{
return true;
}... | public class class_name {
protected boolean isMatch(String[] words, String filter)
{
for (String word : words)
{
int len = filter.length();
if (word.regionMatches(ignoreCase, 0, filter, 0, len))
{
return true;
// depends on con... |
public class class_name {
public static String pingSoapHttpUrl(String soapHttpUrl) {
soapHttpUrl += "?wsdl";
try {
URL url = new URL(soapHttpUrl);
Object content = url.getContent();
InputStream is = (InputStream)content;
String c = MiscUtil.convertStreamToString(is);
boolean isWsdl = c.contains(... | public class class_name {
public static String pingSoapHttpUrl(String soapHttpUrl) {
soapHttpUrl += "?wsdl";
try {
URL url = new URL(soapHttpUrl);
Object content = url.getContent();
InputStream is = (InputStream)content;
String c = MiscUtil.convertStreamToString(is);
boolean isWsdl = c.contains(... |
public class class_name {
public static String[] allUpperCase(String... strings){
String[] tmp = new String[strings.length];
for(int idx=0;idx<strings.length;idx++){
if(strings[idx] != null){
tmp[idx] = strings[idx].toUpperCase();
}
}
return tmp;
} } | public class class_name {
public static String[] allUpperCase(String... strings){
String[] tmp = new String[strings.length];
for(int idx=0;idx<strings.length;idx++){
if(strings[idx] != null){
tmp[idx] = strings[idx].toUpperCase(); // depends on control dependency: [if], data = [none]
}
}
return tmp;
... |
public class class_name {
protected void applyParseHandlers() {
sequenceFlows = new HashMap<String, SequenceFlow>();
for (Process process : bpmnModel.getProcesses()) {
currentProcess = process;
if (process.isExecutable()) {
bpmnParserHandlers.parseElement(this, process);
}
}
} } | public class class_name {
protected void applyParseHandlers() {
sequenceFlows = new HashMap<String, SequenceFlow>();
for (Process process : bpmnModel.getProcesses()) {
currentProcess = process; // depends on control dependency: [for], data = [process]
if (process.isExecutable()) {
bpmnParse... |
public class class_name {
public Observable<ServiceResponse<Page<CertificateItem>>> getCertificateVersionsNextWithServiceResponseAsync(final String nextPageLink) {
return getCertificateVersionsNextSinglePageAsync(nextPageLink)
.concatMap(new Func1<ServiceResponse<Page<CertificateItem>>, Observable<... | public class class_name {
public Observable<ServiceResponse<Page<CertificateItem>>> getCertificateVersionsNextWithServiceResponseAsync(final String nextPageLink) {
return getCertificateVersionsNextSinglePageAsync(nextPageLink)
.concatMap(new Func1<ServiceResponse<Page<CertificateItem>>, Observable<... |
public class class_name {
public static BeanInfoManager getBeanInfoManager(Class pClass) {
BeanInfoManager ret = (BeanInfoManager)
mBeanInfoManagerByClass.get(pClass);
if (ret == null) {
ret = createBeanInfoManager(pClass);
}
return ret;
} } | public class class_name {
public static BeanInfoManager getBeanInfoManager(Class pClass) {
BeanInfoManager ret = (BeanInfoManager)
mBeanInfoManagerByClass.get(pClass);
if (ret == null) {
ret = createBeanInfoManager(pClass); // depends on control dependency: [if], data = [non... |
public class class_name {
public static String trim(final String value, final boolean trimmed) {
if(!trimmed || value == null) {
return value;
}
return value.trim();
} } | public class class_name {
public static String trim(final String value, final boolean trimmed) {
if(!trimmed || value == null) {
return value;
// depends on control dependency: [if], data = [none]
}
return value.trim();
} } |
public class class_name {
@SuppressWarnings({"unused", "WeakerAccess"})
public void addMultiValueForKey(String key, String value) {
//noinspection ConstantConditions
if (value == null || value.isEmpty()) {
_generateEmptyMultiValueError(key);
return;
}
addMu... | public class class_name {
@SuppressWarnings({"unused", "WeakerAccess"})
public void addMultiValueForKey(String key, String value) {
//noinspection ConstantConditions
if (value == null || value.isEmpty()) {
_generateEmptyMultiValueError(key); // depends on control dependency: [if], data... |
public class class_name {
@Override
public <I> void hear(TypeLiteral<I> type, TypeEncounter<I> encounter) {
for (Field field : type.getRawType().getDeclaredFields()) {
if (field.getType().equals(Logger.class) && field.isAnnotationPresent(InjectLogger.class)) {
encounter.register... | public class class_name {
@Override
public <I> void hear(TypeLiteral<I> type, TypeEncounter<I> encounter) {
for (Field field : type.getRawType().getDeclaredFields()) {
if (field.getType().equals(Logger.class) && field.isAnnotationPresent(InjectLogger.class)) {
encounter.register... |
public class class_name {
public static String[] splitOptions(String quotedOptionString) throws Exception{
Vector<String> optionsVec = new Vector<String>();
String str = new String(quotedOptionString);
int i;
while (true){
//trimLeft
i = 0;
while ((i < str.length()) && (Charac... | public class class_name {
public static String[] splitOptions(String quotedOptionString) throws Exception{
Vector<String> optionsVec = new Vector<String>();
String str = new String(quotedOptionString);
int i;
while (true){
//trimLeft
i = 0;
while ((i < str.length()) && (Charac... |
public class class_name {
public void saveFile(File file, String type)
{
if (file != null)
{
m_treeController.saveFile(file, type);
}
} } | public class class_name {
public void saveFile(File file, String type)
{
if (file != null)
{
m_treeController.saveFile(file, type); // depends on control dependency: [if], data = [(file]
}
} } |
public class class_name {
@Override
protected Status updateObservationAndClassifierWeights(Dataframe validationDataset, AssociativeArray observationWeights) {
//no update on the observationWeights, all observations have equal probability 1/n
//update classifier weights with equal weights
... | public class class_name {
@Override
protected Status updateObservationAndClassifierWeights(Dataframe validationDataset, AssociativeArray observationWeights) {
//no update on the observationWeights, all observations have equal probability 1/n
//update classifier weights with equal weights
... |
public class class_name {
private static Element emitterToElement(Document document,
ConfigurableEmitter emitter) {
Element root = document.createElement("emitter");
root.setAttribute("name", emitter.name);
root.setAttribute("imageName", emitter.imageName == null ? ""
: emitter.imageName);
root
... | public class class_name {
private static Element emitterToElement(Document document,
ConfigurableEmitter emitter) {
Element root = document.createElement("emitter");
root.setAttribute("name", emitter.name);
root.setAttribute("imageName", emitter.imageName == null ? ""
: emitter.imageName);
root
... |
public class class_name {
public List<ConnectionFactoryResourceType<WebAppDescriptor>> getAllConnectionFactory()
{
List<ConnectionFactoryResourceType<WebAppDescriptor>> list = new ArrayList<ConnectionFactoryResourceType<WebAppDescriptor>>();
List<Node> nodeList = model.get("connection-factory");
f... | public class class_name {
public List<ConnectionFactoryResourceType<WebAppDescriptor>> getAllConnectionFactory()
{
List<ConnectionFactoryResourceType<WebAppDescriptor>> list = new ArrayList<ConnectionFactoryResourceType<WebAppDescriptor>>();
List<Node> nodeList = model.get("connection-factory");
f... |
public class class_name {
public static void initialize()
{
if (InfinispanCache.get().exists(MsgPhrase.UUIDCACHE)) {
InfinispanCache.get().<UUID, MsgPhrase>getCache(MsgPhrase.UUIDCACHE).clear();
} else {
InfinispanCache.get().<UUID, MsgPhrase>getCache(MsgPhrase.UUIDCACHE)
... | public class class_name {
public static void initialize()
{
if (InfinispanCache.get().exists(MsgPhrase.UUIDCACHE)) {
InfinispanCache.get().<UUID, MsgPhrase>getCache(MsgPhrase.UUIDCACHE).clear(); // depends on control dependency: [if], data = [none]
} else {
InfinispanCache.g... |
public class class_name {
static OcAgentTraceServiceConfigRpcHandler create(
TraceServiceStub stub, TraceConfig traceConfig) {
OcAgentTraceServiceConfigRpcHandler configRpcHandler =
new OcAgentTraceServiceConfigRpcHandler(traceConfig);
UpdatedLibraryConfigObserver updatedLibraryConfigObserver =
... | public class class_name {
static OcAgentTraceServiceConfigRpcHandler create(
TraceServiceStub stub, TraceConfig traceConfig) {
OcAgentTraceServiceConfigRpcHandler configRpcHandler =
new OcAgentTraceServiceConfigRpcHandler(traceConfig);
UpdatedLibraryConfigObserver updatedLibraryConfigObserver =
... |
public class class_name {
public static String singularize(String target) {
// TODO we should add this as an issue in the RamlBase project and
// provide a pull request
String result = Inflector.singularize(target);
if ((target.endsWith("ss")) && (result.equals(target.substring(0, target.length() - 1)))) {
... | public class class_name {
public static String singularize(String target) {
// TODO we should add this as an issue in the RamlBase project and
// provide a pull request
String result = Inflector.singularize(target);
if ((target.endsWith("ss")) && (result.equals(target.substring(0, target.length() - 1)))) {
... |
public class class_name {
public InputVariable getInputVariable(String name) {
for (InputVariable inputVariable : this.inputVariables) {
if (name.equals(inputVariable.getName())) {
return inputVariable;
}
}
throw new RuntimeException(String.format(
... | public class class_name {
public InputVariable getInputVariable(String name) {
for (InputVariable inputVariable : this.inputVariables) {
if (name.equals(inputVariable.getName())) {
return inputVariable; // depends on control dependency: [if], data = [none]
}
}
... |
public class class_name {
private void update(long delay) {
if (willUpdate) {
return; // Already a pending update scheduled
}
if (!observing) { return; }
willUpdate = true;
query.getDatabase().scheduleOnQueryExecutor(new Runnable() {
@Override
... | public class class_name {
private void update(long delay) {
if (willUpdate) {
return; // Already a pending update scheduled // depends on control dependency: [if], data = [none]
}
if (!observing) { return; } // depends on control dependency: [if], data = [none]
willUpdate ... |
public class class_name {
public void curveTo(float x, float y, float cx1, float cy1, float cx2, float cy2, int segments) {
// special case for zero movement
if ((cx == x) && (cy == y)) {
return;
}
Curve curve = new Curve(new Vector2f(cx,cy),new Vector2f(cx1,cy1),new Vector2f(cx2,cy2),new Vector2f(... | public class class_name {
public void curveTo(float x, float y, float cx1, float cy1, float cx2, float cy2, int segments) {
// special case for zero movement
if ((cx == x) && (cy == y)) {
return;
// depends on control dependency: [if], data = [none]
}
Curve curve = new Curve(new Vector2f(cx,cy),new... |
public class class_name {
public static Map<String, String> createContentProperties(String absolutePath,
String creator) {
Map<String, String> props = new HashMap<String, String>();
if (creator != null && creator.trim().length() > 0) {
... | public class class_name {
public static Map<String, String> createContentProperties(String absolutePath,
String creator) {
Map<String, String> props = new HashMap<String, String>();
if (creator != null && creator.trim().length() > 0) {
... |
public class class_name {
public static void compressDirectory(File rootPath, File dstZipPath) throws IOException
{
ZipOutputStream zip = new ZipOutputStream(new FileOutputStream(dstZipPath));
try
{
if (rootPath.isDirectory())
{
String[] files = rootPath.list()... | public class class_name {
public static void compressDirectory(File rootPath, File dstZipPath) throws IOException
{
ZipOutputStream zip = new ZipOutputStream(new FileOutputStream(dstZipPath));
try
{
if (rootPath.isDirectory())
{
String[] files = rootPath.list()... |
public class class_name {
private void compileDefaults(Map<String, TreeMap<String, Object>> compiledDefaults, UIDefaults d) {
for (Map.Entry<Object, Object> entry : d.entrySet()) {
if (entry.getKey() instanceof String) {
String key = (String) entry.getKey();
String ... | public class class_name {
private void compileDefaults(Map<String, TreeMap<String, Object>> compiledDefaults, UIDefaults d) {
for (Map.Entry<Object, Object> entry : d.entrySet()) {
if (entry.getKey() instanceof String) {
String key = (String) entry.getKey();
String ... |
public class class_name {
@SuppressWarnings("unchecked")
private static ManagedPartitionGroup buildSystemPartitionGroup(AtomixConfig config) {
PartitionGroupConfig<?> partitionGroupConfig = config.getManagementGroup();
if (partitionGroupConfig == null) {
return null;
}
return partitionGroupConf... | public class class_name {
@SuppressWarnings("unchecked")
private static ManagedPartitionGroup buildSystemPartitionGroup(AtomixConfig config) {
PartitionGroupConfig<?> partitionGroupConfig = config.getManagementGroup();
if (partitionGroupConfig == null) {
return null; // depends on control dependency: [... |
public class class_name {
private Siren4JSubEntity getSubEntityAnnotation(Field currentField, List<ReflectedInfo> fieldInfo) {
Siren4JSubEntity result = null;
result = currentField.getAnnotation(Siren4JSubEntity.class);
if (result == null && fieldInfo != null) {
ReflectedInfo in... | public class class_name {
private Siren4JSubEntity getSubEntityAnnotation(Field currentField, List<ReflectedInfo> fieldInfo) {
Siren4JSubEntity result = null;
result = currentField.getAnnotation(Siren4JSubEntity.class);
if (result == null && fieldInfo != null) {
ReflectedInfo in... |
public class class_name {
public Broadcastable openChannel(String ccid, String atmosphereTrackingId) {
throwExceptionIfTrackingIdnotSet(atmosphereTrackingId);
log.debug("GET Channels open long poll channelId: {} trackingId: {}", ccid, atmosphereTrackingId);
// NOTE: as of Atmosphere 0.8.5: ev... | public class class_name {
public Broadcastable openChannel(String ccid, String atmosphereTrackingId) {
throwExceptionIfTrackingIdnotSet(atmosphereTrackingId);
log.debug("GET Channels open long poll channelId: {} trackingId: {}", ccid, atmosphereTrackingId);
// NOTE: as of Atmosphere 0.8.5: ev... |
public class class_name {
public GetMappingResult withMapping(MappingEntry... mapping) {
if (this.mapping == null) {
setMapping(new java.util.ArrayList<MappingEntry>(mapping.length));
}
for (MappingEntry ele : mapping) {
this.mapping.add(ele);
}
return th... | public class class_name {
public GetMappingResult withMapping(MappingEntry... mapping) {
if (this.mapping == null) {
setMapping(new java.util.ArrayList<MappingEntry>(mapping.length)); // depends on control dependency: [if], data = [none]
}
for (MappingEntry ele : mapping) {
... |
public class class_name {
public static List<String> match(List<String> patterns, String name) {
List<String> matches = new ArrayList<String>();
for (String pattern : patterns) {
if (match(pattern, name)) {
matches.add(pattern);
}
}
return matches... | public class class_name {
public static List<String> match(List<String> patterns, String name) {
List<String> matches = new ArrayList<String>();
for (String pattern : patterns) {
if (match(pattern, name)) {
matches.add(pattern); // depends on control dependency: [if], data =... |
public class class_name {
public void restore() throws BackupException
{
try
{
SecurityHelper.doPrivilegedIOExceptionAction(new PrivilegedExceptionAction<Void>()
{
public Void run() throws IOException
{
for (int i = 0; i < zipFiles.size(... | public class class_name {
public void restore() throws BackupException
{
try
{
SecurityHelper.doPrivilegedIOExceptionAction(new PrivilegedExceptionAction<Void>()
{
public Void run() throws IOException
{
for (int i = 0; i < zipFiles.size(... |
public class class_name {
public boolean computeInverseH(List<Homography2D_F64> homography0toI) {
listHInv.reset();
int N = homography0toI.size();
for (int i = 0; i < N; i++) {
Homography2D_F64 H = homography0toI.get(i);
Homography2D_F64 Hinv = listHInv.grow();
// Ensure the determinant is one
doubl... | public class class_name {
public boolean computeInverseH(List<Homography2D_F64> homography0toI) {
listHInv.reset();
int N = homography0toI.size();
for (int i = 0; i < N; i++) {
Homography2D_F64 H = homography0toI.get(i);
Homography2D_F64 Hinv = listHInv.grow();
// Ensure the determinant is one
doubl... |
public class class_name {
public Observable<ServiceResponseWithHeaders<Void, JobUpdateHeaders>> updateWithServiceResponseAsync(String jobId, JobUpdateParameter jobUpdateParameter) {
if (this.client.batchUrl() == null) {
throw new IllegalArgumentException("Parameter this.client.batchUrl() is require... | public class class_name {
public Observable<ServiceResponseWithHeaders<Void, JobUpdateHeaders>> updateWithServiceResponseAsync(String jobId, JobUpdateParameter jobUpdateParameter) {
if (this.client.batchUrl() == null) {
throw new IllegalArgumentException("Parameter this.client.batchUrl() is require... |
public class class_name {
public void marshall(InitiateAuthRequest initiateAuthRequest, ProtocolMarshaller protocolMarshaller) {
if (initiateAuthRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... | public class class_name {
public void marshall(InitiateAuthRequest initiateAuthRequest, ProtocolMarshaller protocolMarshaller) {
if (initiateAuthRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.mars... |
public class class_name {
protected CmsProject getOfflineIndexProject() {
CmsProject result = null;
for (I_CmsSearchIndex index : m_offlineIndexes) {
try {
result = m_adminCms.readProject(index.getProject());
if (!result.isOnlineProject()) {
... | public class class_name {
protected CmsProject getOfflineIndexProject() {
CmsProject result = null;
for (I_CmsSearchIndex index : m_offlineIndexes) {
try {
result = m_adminCms.readProject(index.getProject()); // depends on control dependency: [try], data = [none]
... |
public class class_name {
public static double[] rowMin(double[][] data) {
double[] x = new double[data.length];
for (int i = 0; i < x.length; i++) {
x[i] = min(data[i]);
}
return x;
} } | public class class_name {
public static double[] rowMin(double[][] data) {
double[] x = new double[data.length];
for (int i = 0; i < x.length; i++) {
x[i] = min(data[i]); // depends on control dependency: [for], data = [i]
}
return x;
} } |
public class class_name {
private <T extends ServiceType> Binding getBinding(String nameAttribute, T parent) {
Bindings bindings = parent.getBindings();
if (bindings != null) {
for (Binding binding : bindings.getBinding()) {
if (binding.getName().equals(nameAttribute)) {
return binding;
}
}
... | public class class_name {
private <T extends ServiceType> Binding getBinding(String nameAttribute, T parent) {
Bindings bindings = parent.getBindings();
if (bindings != null) {
for (Binding binding : bindings.getBinding()) {
if (binding.getName().equals(nameAttribute)) {
return binding; // depends o... |
public class class_name {
public static <T, X extends RuntimeException> T ifNonNullThrowOrElse(Supplier<X> exceptionSupplier,
Supplier<T> provider) {
if (Objects.nonNull(exceptionSupplier)) {
throw exceptionSupplier.get();
} else {
return provider.get();
}
... | public class class_name {
public static <T, X extends RuntimeException> T ifNonNullThrowOrElse(Supplier<X> exceptionSupplier,
Supplier<T> provider) {
if (Objects.nonNull(exceptionSupplier)) {
throw exceptionSupplier.get();
} else {
return provider.get(); // depends o... |
public class class_name {
public boolean syncClonedListener(BaseField field, FieldListener listener, boolean bInitCalled)
{
if (!bInitCalled)
{
BaseField fldTarget = this.getSyncedListenersField(m_fldTarget, listener);
((InitOnChangeHandler)listener).init(null, fldTarget);
... | public class class_name {
public boolean syncClonedListener(BaseField field, FieldListener listener, boolean bInitCalled)
{
if (!bInitCalled)
{
BaseField fldTarget = this.getSyncedListenersField(m_fldTarget, listener);
((InitOnChangeHandler)listener).init(null, fldTarget); /... |
public class class_name {
public static String generateMixString(int length) {
StringBuffer sb = new StringBuffer();
Random random = new Random();
for (int i = 0; i < length; i++) {
sb.append(allChar.charAt(random.nextInt(letterChar.length())));
}
return sb.toString();
} } | public class class_name {
public static String generateMixString(int length) {
StringBuffer sb = new StringBuffer();
Random random = new Random();
for (int i = 0; i < length; i++) {
sb.append(allChar.charAt(random.nextInt(letterChar.length()))); // depends on control dependency: [for], data = [none]
}
ret... |
public class class_name {
public LocalDate plusYears(long yearsToAdd) {
if (yearsToAdd == 0) {
return this;
}
int newYear = YEAR.checkValidIntValue(year + yearsToAdd); // safe overflow
return resolvePreviousValid(newYear, month, day);
} } | public class class_name {
public LocalDate plusYears(long yearsToAdd) {
if (yearsToAdd == 0) {
return this; // depends on control dependency: [if], data = [none]
}
int newYear = YEAR.checkValidIntValue(year + yearsToAdd); // safe overflow
return resolvePreviousValid(newYear... |
public class class_name {
@Override
protected void rebuild(final int newCapacity) {
final int numValues = getNumValues();
checkIfEnoughMemory(mem_, newCapacity, numValues);
final int currCapacity = getCurrentCapacity();
final long[] keys = new long[currCapacity];
final double[] values = new doubl... | public class class_name {
@Override
protected void rebuild(final int newCapacity) {
final int numValues = getNumValues();
checkIfEnoughMemory(mem_, newCapacity, numValues);
final int currCapacity = getCurrentCapacity();
final long[] keys = new long[currCapacity];
final double[] values = new doubl... |
public class class_name {
private OnChangeSubscriptionQos setMinIntervalMsInternal(final long minIntervalMs) {
if (minIntervalMs < MIN_MIN_INTERVAL_MS) {
this.minIntervalMs = MIN_MIN_INTERVAL_MS;
logger.warn("minIntervalMs < MIN_MIN_INTERVAL_MS. Using MIN_MIN_INTERVAL_MS: {}", MIN_MIN_I... | public class class_name {
private OnChangeSubscriptionQos setMinIntervalMsInternal(final long minIntervalMs) {
if (minIntervalMs < MIN_MIN_INTERVAL_MS) {
this.minIntervalMs = MIN_MIN_INTERVAL_MS; // depends on control dependency: [if], data = [none]
logger.warn("minIntervalMs < MIN_MIN_... |
public class class_name {
@Override
public String getDescription(final Object table, final Object entry) {
if (table instanceof TableWithNullOption && entry == null) {
return ((TableWithNullOption) table).getNullDescription();
} else if (entry instanceof TableEntry) {
return ((TableEntry) entry).getDesc();
... | public class class_name {
@Override
public String getDescription(final Object table, final Object entry) {
if (table instanceof TableWithNullOption && entry == null) {
return ((TableWithNullOption) table).getNullDescription(); // depends on control dependency: [if], data = [none]
} else if (entry instanceof Ta... |
public class class_name {
protected void printPi (final String piString)
{
System.out.print ("\npi = " + piString.substring (0, 2));
int index = 2;
int line = 0;
int group = 0;
final int length = piString.length ();
// Loop for each group of 5 digits
while (index + 5 < length)
{
... | public class class_name {
protected void printPi (final String piString)
{
System.out.print ("\npi = " + piString.substring (0, 2));
int index = 2;
int line = 0;
int group = 0;
final int length = piString.length ();
// Loop for each group of 5 digits
while (index + 5 < length)
{
... |
public class class_name {
public static double cdf(double val, double loc, double scale, double shape1, double shape2) {
val = (val - loc) / scale;
if(val == Double.NEGATIVE_INFINITY) {
return 0.;
}
if(val == Double.POSITIVE_INFINITY) {
return 1.;
}
if(val != val) {
return Dou... | public class class_name {
public static double cdf(double val, double loc, double scale, double shape1, double shape2) {
val = (val - loc) / scale;
if(val == Double.NEGATIVE_INFINITY) {
return 0.; // depends on control dependency: [if], data = [none]
}
if(val == Double.POSITIVE_INFINITY) {
... |
public class class_name {
public byte nextByte(int radix) {
// Check cached result
if ((typeCache != null) && (typeCache instanceof Byte)
&& this.radix == radix) {
byte val = ((Byte)typeCache).byteValue();
useTypeCache();
return val;
}
set... | public class class_name {
public byte nextByte(int radix) {
// Check cached result
if ((typeCache != null) && (typeCache instanceof Byte)
&& this.radix == radix) {
byte val = ((Byte)typeCache).byteValue();
useTypeCache(); // depends on control dependency: [if], data ... |
public class class_name {
@Override
protected TransactionManager locateTransactionManager() {
try {
return TransactionManagerLocator.INSTANCE.getTransactionManager();
} catch (Exception e) {
throw new HibernateException(e);
}
} } | public class class_name {
@Override
protected TransactionManager locateTransactionManager() {
try {
return TransactionManagerLocator.INSTANCE.getTransactionManager(); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
throw new HibernateException(... |
public class class_name {
private Definition getWsdlDefinition(Resource wsdl) {
try {
Definition definition;
if (wsdl.getURI().toString().startsWith("jar:")) {
// Locate WSDL imports in Jar files
definition = WSDLFactory.newInstance().newWSDLReader().read... | public class class_name {
private Definition getWsdlDefinition(Resource wsdl) {
try {
Definition definition;
if (wsdl.getURI().toString().startsWith("jar:")) {
// Locate WSDL imports in Jar files
definition = WSDLFactory.newInstance().newWSDLReader().read... |
public class class_name {
private CoverageDataTileMatrixResults getResultsZoomOut(
BoundingBox requestProjectedBoundingBox, TileMatrix tileMatrix,
int overlappingPixels) {
CoverageDataTileMatrixResults results = null;
for (long zoomLevel = tileMatrix.getZoomLevel() - 1; zoomLev... | public class class_name {
private CoverageDataTileMatrixResults getResultsZoomOut(
BoundingBox requestProjectedBoundingBox, TileMatrix tileMatrix,
int overlappingPixels) {
CoverageDataTileMatrixResults results = null;
for (long zoomLevel = tileMatrix.getZoomLevel() - 1; zoomLev... |
public class class_name {
public static void setLogLevels(final int aLogLevel, final String[] aLoggerList, final String[] aExcludesList,
final String... aIncludesList) {
final ArrayList<String> loggerList = new ArrayList<>(Arrays.asList(aLoggerList));
final Class<? extends Logger> simpleLog... | public class class_name {
public static void setLogLevels(final int aLogLevel, final String[] aLoggerList, final String[] aExcludesList,
final String... aIncludesList) {
final ArrayList<String> loggerList = new ArrayList<>(Arrays.asList(aLoggerList));
final Class<? extends Logger> simpleLog... |
public class class_name {
@SuppressWarnings("unchecked")
public static <T,S> T[] toArray(Class<T> type, Collection<S> src) {
T[] dest = (T[]) Array.newInstance(type, src.size());
int i = 0;
for(S s : src) {
dest[i++] = (T) s;
}
return dest;
} } | public class class_name {
@SuppressWarnings("unchecked")
public static <T,S> T[] toArray(Class<T> type, Collection<S> src) {
T[] dest = (T[]) Array.newInstance(type, src.size());
int i = 0;
for(S s : src) {
dest[i++] = (T) s; // depends on control dependency: [for], data = [s]
}
return dest;
} } |
public class class_name {
public void writeStartFeed(String requestContextURL, Map<String, Object> meta) throws ODataRenderException {
this.contextURL = checkNotNull(requestContextURL);
try {
startFeed(false);
if (ODataUriUtil.hasCountOption(oDataUri) &&
met... | public class class_name {
public void writeStartFeed(String requestContextURL, Map<String, Object> meta) throws ODataRenderException {
this.contextURL = checkNotNull(requestContextURL);
try {
startFeed(false);
if (ODataUriUtil.hasCountOption(oDataUri) &&
met... |
public class class_name {
private ClassLoader doResolve(MavenCoordinate mavenCoordinate) throws MojoExecutionException, MojoFailureException {
List<URL> urls = new ArrayList<URL>();
log.info("Resolving transformer dependency: " + mavenCoordinate);
try {
DependencyNode root = reposit... | public class class_name {
private ClassLoader doResolve(MavenCoordinate mavenCoordinate) throws MojoExecutionException, MojoFailureException {
List<URL> urls = new ArrayList<URL>();
log.info("Resolving transformer dependency: " + mavenCoordinate);
try {
DependencyNode root = reposit... |
public class class_name {
public CredentialsProvider createFor(String uri, String username, String password,
String passphrase, boolean skipSslValidation) {
CredentialsProvider provider = null;
if (awsAvailable() && AwsCodeCommitCredentialProvider.canHandle(uri)) {
this.logger
.debug("Constructing AwsCo... | public class class_name {
public CredentialsProvider createFor(String uri, String username, String password,
String passphrase, boolean skipSslValidation) {
CredentialsProvider provider = null;
if (awsAvailable() && AwsCodeCommitCredentialProvider.canHandle(uri)) {
this.logger
.debug("Constructing AwsCo... |
public class class_name {
public boolean addMeasureToVerb(String measureType, Number value, Number scaleMin, Number scaleMax, Number sampleSize)
{
Map<String, Object> container = new HashMap<String, Object>();
if (measureType != null)
{
container.put("measureType", meas... | public class class_name {
public boolean addMeasureToVerb(String measureType, Number value, Number scaleMin, Number scaleMax, Number sampleSize)
{
Map<String, Object> container = new HashMap<String, Object>();
if (measureType != null)
{
container.put("measureType", meas... |
public class class_name {
public Rectangular transformRect(Rectangular rect)
{
if (transform != null)
{
Rectangle src = new Rectangle(rect.getX1(), rect.getY1(), rect.getWidth(), rect.getHeight());
Shape dest = transform.createTransformedShape(src);
Rectangle des... | public class class_name {
public Rectangular transformRect(Rectangular rect)
{
if (transform != null)
{
Rectangle src = new Rectangle(rect.getX1(), rect.getY1(), rect.getWidth(), rect.getHeight());
Shape dest = transform.createTransformedShape(src);
Rectangle des... |
public class class_name {
private List<DirectivePair> getAllEligibleRules(HttpServletRequest httpRequest, HttpServletResponse httpResponse) {
String requestMime = httpRequest.getContentType();
String userAgent = httpRequest.getHeader(Constants.HTTP_USER_AGENT_HEADER);
String url = getURL(httpRe... | public class class_name {
private List<DirectivePair> getAllEligibleRules(HttpServletRequest httpRequest, HttpServletResponse httpResponse) {
String requestMime = httpRequest.getContentType();
String userAgent = httpRequest.getHeader(Constants.HTTP_USER_AGENT_HEADER);
String url = getURL(httpRe... |
public class class_name {
@Trivial
private static final void allBeanDebug(BeanManager beanManager, InjectInjectionBinding iBinding) throws InjectionException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
if (beanManager == null) {
Tr.debug(tc, "CDI runtime... | public class class_name {
@Trivial
private static final void allBeanDebug(BeanManager beanManager, InjectInjectionBinding iBinding) throws InjectionException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
if (beanManager == null) {
Tr.debug(tc, "CDI runtime... |
public class class_name {
public <T> boolean write(List<T> list, Class<T> clazz) {
ExcelMeta excelMeta = ExcelBeanHelper.getExcelMeta(clazz);
try {
Sheet sheet = workbook.createSheet(this.sheetName);
sheet.setDefaultColumnWidth(15);
CellStyle titleStyle = workbook.createCellStyle();
titleStyle.set... | public class class_name {
public <T> boolean write(List<T> list, Class<T> clazz) {
ExcelMeta excelMeta = ExcelBeanHelper.getExcelMeta(clazz);
try {
Sheet sheet = workbook.createSheet(this.sheetName);
sheet.setDefaultColumnWidth(15); // depends on control dependency: [try], data = [none]
CellStyle titl... |
public class class_name {
protected void addVerbatimBeforeComponent(
UIComponentClassicTagBase parentTag,
UIComponent verbatim,
UIComponent component) {
UIComponent parent = component.getParent();
if (null == parent) {
return;
}
List<UIC... | public class class_name {
protected void addVerbatimBeforeComponent(
UIComponentClassicTagBase parentTag,
UIComponent verbatim,
UIComponent component) {
UIComponent parent = component.getParent();
if (null == parent) {
return; // depends on control depen... |
public class class_name {
private static ReloadableType getReloadableTypeIfHasBeenReloaded(Class<?> clazz) {
if (TypeRegistry.nothingReloaded) {
return null;
}
ReloadableType rtype = getRType(clazz);
if (rtype != null && rtype.hasBeenReloaded()) {
return rtype;
}
else {
return null;
}
} } | public class class_name {
private static ReloadableType getReloadableTypeIfHasBeenReloaded(Class<?> clazz) {
if (TypeRegistry.nothingReloaded) {
return null; // depends on control dependency: [if], data = [none]
}
ReloadableType rtype = getRType(clazz);
if (rtype != null && rtype.hasBeenReloaded()) {
ret... |
public class class_name {
@Override
protected void fireInsertUpdate( DocumentEvent evt )
{
super.fireInsertUpdate( evt );
try
{
processChangedLines( evt.getOffset(), evt.getLength() );
}
catch( Exception ex )
{
System.out.println( "" + ex );
}
} } | public class class_name {
@Override
protected void fireInsertUpdate( DocumentEvent evt )
{
super.fireInsertUpdate( evt );
try
{
processChangedLines( evt.getOffset(), evt.getLength() ); // depends on control dependency: [try], data = [none]
}
catch( Exception ex )
{
System.out.... |
public class class_name {
public MongoClientOptions getOptions() {
ReadPreference readPreference = proxied.getReadPreference();
if (readPreference != null) {
builder.readPreference(readPreference);
}
ReadConcern readConcern = proxied.getReadConcern();
if (readConcern... | public class class_name {
public MongoClientOptions getOptions() {
ReadPreference readPreference = proxied.getReadPreference();
if (readPreference != null) {
builder.readPreference(readPreference); // depends on control dependency: [if], data = [(readPreference]
}
ReadConcer... |
public class class_name {
@SuppressWarnings("WeakerAccess")
public void removeWeakCallback(@NonNull Callback callback) {
for (int i = mCallbacks.size() - 1; i >= 0; i--) {
Callback currentCallback = mCallbacks.get(i).get();
if (currentCallback == null || currentCallback == callback)... | public class class_name {
@SuppressWarnings("WeakerAccess")
public void removeWeakCallback(@NonNull Callback callback) {
for (int i = mCallbacks.size() - 1; i >= 0; i--) {
Callback currentCallback = mCallbacks.get(i).get();
if (currentCallback == null || currentCallback == callback)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.