code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public Map<String, Map<String, List<String>>> grantResourcePermission(String subjectid, String resourcePath,
EnumSet<App.AllowedMethods> permission, boolean allowGuestAccess) {
if (StringUtils.isBlank(subjectid) || StringUtils.isBlank(resourcePath) || permission == null) {
return Coll... | public class class_name {
public Map<String, Map<String, List<String>>> grantResourcePermission(String subjectid, String resourcePath,
EnumSet<App.AllowedMethods> permission, boolean allowGuestAccess) {
if (StringUtils.isBlank(subjectid) || StringUtils.isBlank(resourcePath) || permission == null) {
return Coll... |
public class class_name {
private void obtainStyledAttributes(@Nullable final AttributeSet attributeSet,
@AttrRes final int defaultStyle,
@StyleRes final int defaultStyleResource) {
TypedArray typedArray = getContext()
... | public class class_name {
private void obtainStyledAttributes(@Nullable final AttributeSet attributeSet,
@AttrRes final int defaultStyle,
@StyleRes final int defaultStyleResource) {
TypedArray typedArray = getContext()
... |
public class class_name {
protected PExp makeAnd(PExp root, PExp e)
{
if (root != null)
{
AAndBooleanBinaryExp a = new AAndBooleanBinaryExp();
a.setLeft(root.clone());
a.setOp(new LexKeywordToken(VDMToken.AND, null));
a.setType(new ABooleanBasicType());
a.setRight(e.clone());
return a;
} else
... | public class class_name {
protected PExp makeAnd(PExp root, PExp e)
{
if (root != null)
{
AAndBooleanBinaryExp a = new AAndBooleanBinaryExp();
a.setLeft(root.clone()); // depends on control dependency: [if], data = [(root]
a.setOp(new LexKeywordToken(VDMToken.AND, null)); // depends on control dependency... |
public class class_name {
protected void initOrdinal(int defaultOrdinal) {
ordinal = defaultOrdinal;
String configuredOrdinalString = getValue(CONFIG_ORDINAL);
try {
if (configuredOrdinalString != null) {
ordinal = Integer.parseInt(configuredOrdinalString.trim());
... | public class class_name {
protected void initOrdinal(int defaultOrdinal) {
ordinal = defaultOrdinal;
String configuredOrdinalString = getValue(CONFIG_ORDINAL);
try {
if (configuredOrdinalString != null) {
ordinal = Integer.parseInt(configuredOrdinalString.trim()); ... |
public class class_name {
public void write(String uri, String contentType, String hostIP,
long fetchBeginTimeStamp, long recordLength, InputStream in,
boolean enforceLength) throws IOException {
preWriteRecordTasks();
try {
write(getMetaLine(uri, contentType, hostIP... | public class class_name {
public void write(String uri, String contentType, String hostIP,
long fetchBeginTimeStamp, long recordLength, InputStream in,
boolean enforceLength) throws IOException {
preWriteRecordTasks();
try {
write(getMetaLine(uri, contentType, hostIP... |
public class class_name {
@Override
public void onLoadFinished(final Loader<SortedList<T>> loader,
final SortedList<T> data) {
isLoading = false;
mCheckedItems.clear();
mCheckedVisibleViewHolders.clear();
mFiles = data;
mAdapter.setList(data);
... | public class class_name {
@Override
public void onLoadFinished(final Loader<SortedList<T>> loader,
final SortedList<T> data) {
isLoading = false;
mCheckedItems.clear();
mCheckedVisibleViewHolders.clear();
mFiles = data;
mAdapter.setList(data);
... |
public class class_name {
@Override
public void export(ExportFormat format, int maxRows, ExportCallback callback) {
if (dataSetHandler == null) {
callback.noData();
} else {
Map<String,String> columnNameMap = new HashMap<>();
displayerSettings.getColumnSettingsLi... | public class class_name {
@Override
public void export(ExportFormat format, int maxRows, ExportCallback callback) {
if (dataSetHandler == null) {
callback.noData(); // depends on control dependency: [if], data = [none]
} else {
Map<String,String> columnNameMap = new HashMap<... |
public class class_name {
@SuppressWarnings({ "unchecked", "rawtypes", "unused" })
private void commitToVoldemort(List<String> storeNamesToCommit) {
if(logger.isDebugEnabled()) {
logger.debug("Trying to commit to Voldemort");
}
boolean hasError = false;
if(nodesToStrea... | public class class_name {
@SuppressWarnings({ "unchecked", "rawtypes", "unused" })
private void commitToVoldemort(List<String> storeNamesToCommit) {
if(logger.isDebugEnabled()) {
logger.debug("Trying to commit to Voldemort"); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public void setNetworkAclIds(java.util.Collection<String> networkAclIds) {
if (networkAclIds == null) {
this.networkAclIds = null;
return;
}
this.networkAclIds = new com.amazonaws.internal.SdkInternalList<String>(networkAclIds);
} } | public class class_name {
public void setNetworkAclIds(java.util.Collection<String> networkAclIds) {
if (networkAclIds == null) {
this.networkAclIds = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public String getAccessToken() {
if (System.currentTimeMillis() > getExpireTime()) {
try {
synchronized (this) {
if (System.currentTimeMillis() > getExpireTime()) {
accessToken = fetchAccessToken();
if (accessToken != null && !accessToken.is... | public class class_name {
public String getAccessToken() {
if (System.currentTimeMillis() > getExpireTime()) {
try {
synchronized (this) { // depends on control dependency: [try], data = [none]
if (System.currentTimeMillis() > getExpireTime()) {
accessToken = fetchAccessToken();... |
public class class_name {
public List<AdministeredObjectType<InterceptorType<T>>> getAllAdministeredObject()
{
List<AdministeredObjectType<InterceptorType<T>>> list = new ArrayList<AdministeredObjectType<InterceptorType<T>>>();
List<Node> nodeList = childNode.get("administered-object");
for(Node n... | public class class_name {
public List<AdministeredObjectType<InterceptorType<T>>> getAllAdministeredObject()
{
List<AdministeredObjectType<InterceptorType<T>>> list = new ArrayList<AdministeredObjectType<InterceptorType<T>>>();
List<Node> nodeList = childNode.get("administered-object");
for(Node n... |
public class class_name {
public static void createFieldDebugInfo(FacesContext facesContext,
final String field, Object oldValue,
Object newValue, String clientId)
{
if ((oldValue == null && newValue == null)
|| (oldValue != null && oldValue.equals(newValue)))
... | public class class_name {
public static void createFieldDebugInfo(FacesContext facesContext,
final String field, Object oldValue,
Object newValue, String clientId)
{
if ((oldValue == null && newValue == null)
|| (oldValue != null && oldValue.equals(newValue)))
... |
public class class_name {
public void marshall(ProjectArtifacts projectArtifacts, ProtocolMarshaller protocolMarshaller) {
if (projectArtifacts == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(proj... | public class class_name {
public void marshall(ProjectArtifacts projectArtifacts, ProtocolMarshaller protocolMarshaller) {
if (projectArtifacts == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(proj... |
public class class_name {
private String getErrorForUnknownService(String id) {
StringBuffer error = new StringBuffer();
error.append("Services path: " + ServiceConfigurationManager.CONFIGURATION_DIR);
error.append("The service with id: " + id + " is not registered");
error.append("\n Available services are: ... | public class class_name {
private String getErrorForUnknownService(String id) {
StringBuffer error = new StringBuffer();
error.append("Services path: " + ServiceConfigurationManager.CONFIGURATION_DIR);
error.append("The service with id: " + id + " is not registered");
error.append("\n Available services are: ... |
public class class_name {
protected final void setCliOption(Option option){
if(option!=null){
this.cliOption = option;
}
if(this.cliOption.getDescription()!=null){
this.descr = this.cliOption.getDescription();
}
else{
this.cliOption.setDescription(this.descr);
}
} } | public class class_name {
protected final void setCliOption(Option option){
if(option!=null){
this.cliOption = option; // depends on control dependency: [if], data = [none]
}
if(this.cliOption.getDescription()!=null){
this.descr = this.cliOption.getDescription(); // depends on control dependency: [if], dat... |
public class class_name {
public List<JAXBElement<Object>> get_GenericApplicationPropertyOfBuilding() {
if (_GenericApplicationPropertyOfBuilding == null) {
_GenericApplicationPropertyOfBuilding = new ArrayList<JAXBElement<Object>>();
}
return this._GenericApplicationPropertyOfBuild... | public class class_name {
public List<JAXBElement<Object>> get_GenericApplicationPropertyOfBuilding() {
if (_GenericApplicationPropertyOfBuilding == null) {
_GenericApplicationPropertyOfBuilding = new ArrayList<JAXBElement<Object>>(); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public void addItem(final InvoiceItem invoiceItem) {
Preconditions.checkState(!isBuilt, "Tree already built, unable to add new invoiceItem=%s", invoiceItem);
switch (invoiceItem.getInvoiceItemType()) {
case RECURRING:
if (invoiceItem.getAmount().co... | public class class_name {
public void addItem(final InvoiceItem invoiceItem) {
Preconditions.checkState(!isBuilt, "Tree already built, unable to add new invoiceItem=%s", invoiceItem);
switch (invoiceItem.getInvoiceItemType()) {
case RECURRING:
if (invoiceItem.getAmount().co... |
public class class_name {
public void marshall(GetCampaignVersionsRequest getCampaignVersionsRequest, ProtocolMarshaller protocolMarshaller) {
if (getCampaignVersionsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
pr... | public class class_name {
public void marshall(GetCampaignVersionsRequest getCampaignVersionsRequest, ProtocolMarshaller protocolMarshaller) {
if (getCampaignVersionsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
pr... |
public class class_name {
public static Document getDocument(File file) {
InputStream inputStream = null;
try {
inputStream = new FileInputStream(file);
} catch (FileNotFoundException ex) {
throw new MjdbcRuntimeException(ex);
}
return XmlRepos... | public class class_name {
public static Document getDocument(File file) {
InputStream inputStream = null;
try {
inputStream = new FileInputStream(file);
// depends on control dependency: [try], data = [none]
} catch (FileNotFoundException ex) {
throw new MjdbcRunt... |
public class class_name {
private boolean hmmBreak(Map<S, Double> message) {
for (double logProbability : message.values()) {
if (logProbability != Double.NEGATIVE_INFINITY) {
return false;
}
}
return true;
} } | public class class_name {
private boolean hmmBreak(Map<S, Double> message) {
for (double logProbability : message.values()) {
if (logProbability != Double.NEGATIVE_INFINITY) {
return false; // depends on control dependency: [if], data = [none]
}
}
return ... |
public class class_name {
static boolean getBooleanValFromVMArg(String vmArgValue, boolean defaultStateWhenNotDefined) {
String sysProperty = System.getProperty(vmArgValue);
boolean flag = defaultStateWhenNotDefined;
if ((sysProperty != null) && (!sysProperty.isEmpty())) {
flag = Bo... | public class class_name {
static boolean getBooleanValFromVMArg(String vmArgValue, boolean defaultStateWhenNotDefined) {
String sysProperty = System.getProperty(vmArgValue);
boolean flag = defaultStateWhenNotDefined;
if ((sysProperty != null) && (!sysProperty.isEmpty())) {
flag = Bo... |
public class class_name {
public void setXYZ(Point3D pt) {
_touch();
boolean bHasZ = hasAttribute(Semantics.Z);
if (!bHasZ && !VertexDescription.isDefaultValue(Semantics.Z, pt.z)) {// add
// Z
// only
// if
// pt.z
... | public class class_name {
public void setXYZ(Point3D pt) {
_touch();
boolean bHasZ = hasAttribute(Semantics.Z);
if (!bHasZ && !VertexDescription.isDefaultValue(Semantics.Z, pt.z)) {// add
// Z
// only
// if
// pt.z
... |
public class class_name {
public AST process(AST t) {
// first visit
List l = new ArrayList();
traverse((GroovySourceAST)t,l,null);
//System.out.println("l:" + l);
// second visit
Iterator itr = l.iterator();
if (itr.hasNext()) { itr.next(); /* discard first */ ... | public class class_name {
public AST process(AST t) {
// first visit
List l = new ArrayList();
traverse((GroovySourceAST)t,l,null);
//System.out.println("l:" + l);
// second visit
Iterator itr = l.iterator();
if (itr.hasNext()) { itr.next(); /* discard first */ ... |
public class class_name {
@Override
public WebPage run(WebPage initialPage) {
if(getUser() == null)
throw new IllegalStateException("the user set is null");
WebPage currentPage = initialPage;
for(WebTask task : this) {
logger.info("BEGIN subtask " + task.getClass().getSimpleName());
// before running t... | public class class_name {
@Override
public WebPage run(WebPage initialPage) {
if(getUser() == null)
throw new IllegalStateException("the user set is null");
WebPage currentPage = initialPage;
for(WebTask task : this) {
logger.info("BEGIN subtask " + task.getClass().getSimpleName()); // depends on control ... |
public class class_name {
public static Set<String> namesOf(AdminsConfig adminsConfig, Map<String, Collection<String>> rolesToUsers) {
List<AdminUser> admins = adminsConfig.getUsers();
Set<String> adminNames = new HashSet<>();
for (AdminUser admin : admins) {
adminNames.add(admin.g... | public class class_name {
public static Set<String> namesOf(AdminsConfig adminsConfig, Map<String, Collection<String>> rolesToUsers) {
List<AdminUser> admins = adminsConfig.getUsers();
Set<String> adminNames = new HashSet<>();
for (AdminUser admin : admins) {
adminNames.add(admin.g... |
public class class_name {
private void extractCharacterFilesFromJar(URL urlCharacters) throws IOException {
JarURLConnection connection = (JarURLConnection)urlCharacters.openConnection();
ZipInputStream in = null;
ZipEntry zipEntry = null;
String basePath = connection.getJarEntry().getName();
byte[]... | public class class_name {
private void extractCharacterFilesFromJar(URL urlCharacters) throws IOException {
JarURLConnection connection = (JarURLConnection)urlCharacters.openConnection();
ZipInputStream in = null;
ZipEntry zipEntry = null;
String basePath = connection.getJarEntry().getName();
byte[]... |
public class class_name {
public static void logV(String localTag, String msg) {
if (getConfig().debugMode) {
Log.v(getConfig().logTag, "[" + localTag + "] " + msg);
}
} } | public class class_name {
public static void logV(String localTag, String msg) {
if (getConfig().debugMode) {
Log.v(getConfig().logTag, "[" + localTag + "] " + msg); // depends on control dependency: [if], data = [none]
}
} } |
public class class_name {
private ImmutableList<Require> getAllRequiresInDeclaration() {
Node rhs =
nameDeclaration.getFirstChild().isDestructuringLhs()
? nameDeclaration.getFirstChild().getSecondChild()
: nameDeclaration.getFirstFirstChild();
String namespace = rhs.getSecondCh... | public class class_name {
private ImmutableList<Require> getAllRequiresInDeclaration() {
Node rhs =
nameDeclaration.getFirstChild().isDestructuringLhs()
? nameDeclaration.getFirstChild().getSecondChild()
: nameDeclaration.getFirstFirstChild();
String namespace = rhs.getSecondCh... |
public class class_name {
public void setDeploymentGroupsInfo(java.util.Collection<DeploymentGroupInfo> deploymentGroupsInfo) {
if (deploymentGroupsInfo == null) {
this.deploymentGroupsInfo = null;
return;
}
this.deploymentGroupsInfo = new com.amazonaws.internal.SdkInte... | public class class_name {
public void setDeploymentGroupsInfo(java.util.Collection<DeploymentGroupInfo> deploymentGroupsInfo) {
if (deploymentGroupsInfo == null) {
this.deploymentGroupsInfo = null; // depends on control dependency: [if], data = [none]
return; // depends on control depen... |
public class class_name {
@Deprecated
public AndroidChannelBuilder transportExecutor(@Nullable Executor transportExecutor) {
try {
OKHTTP_CHANNEL_BUILDER_CLASS
.getMethod("transportExecutor", Executor.class)
.invoke(delegateBuilder, transportExecutor);
return this;
} catch (Ex... | public class class_name {
@Deprecated
public AndroidChannelBuilder transportExecutor(@Nullable Executor transportExecutor) {
try {
OKHTTP_CHANNEL_BUILDER_CLASS
.getMethod("transportExecutor", Executor.class)
.invoke(delegateBuilder, transportExecutor); // depends on control dependency: ... |
public class class_name {
public List<T> createSpec(Map<String, Object> rawSpec) {
List<T> result = new ArrayList<>();
Set<String> actualKeys = new HashSet<>();
for ( String rawLhsStr : rawSpec.keySet() ) {
Object rawRhs = rawSpec.get( rawLhsStr );
String[] keyStrings ... | public class class_name {
public List<T> createSpec(Map<String, Object> rawSpec) {
List<T> result = new ArrayList<>();
Set<String> actualKeys = new HashSet<>();
for ( String rawLhsStr : rawSpec.keySet() ) {
Object rawRhs = rawSpec.get( rawLhsStr );
String[] keyStrings ... |
public class class_name {
public MessageMgr build(){
if(this.messageHandlers.size()==0){
this.buildErrors.addError("no message handlers set");
return null;
}
return new MessageMgr(this.appID, this.messageHandlers, this.doCollectMessages);
} } | public class class_name {
public MessageMgr build(){
if(this.messageHandlers.size()==0){
this.buildErrors.addError("no message handlers set"); // depends on control dependency: [if], data = [none]
return null; // depends on control dependency: [if], data = [none]
}
return new MessageMgr(this.appID, this.me... |
public class class_name {
public static int getThemeAttributeDimensionSize(Context context, int attr) {
TypedArray a = null;
try {
a = context.getTheme().obtainStyledAttributes(new int[]{attr});
return a.getDimensionPixelSize(0, 0);
} finally {
if (a != null)... | public class class_name {
public static int getThemeAttributeDimensionSize(Context context, int attr) {
TypedArray a = null;
try {
a = context.getTheme().obtainStyledAttributes(new int[]{attr}); // depends on control dependency: [try], data = [none]
return a.getDimensionPixelSiz... |
public class class_name {
public static void startProfileActivity(Context context, int uid) {
// Ignore call if context is empty, simple work-around when fragment was disconnected from
// activity
if (context == null) {
return;
}
Bundle b = new Bundle();
... | public class class_name {
public static void startProfileActivity(Context context, int uid) {
// Ignore call if context is empty, simple work-around when fragment was disconnected from
// activity
if (context == null) {
return; // depends on control dependency: [if], data =... |
public class class_name {
public ArrayList getProperties(){
ArrayList properties = new ArrayList();
if (configEntry.properties != null){
Iterator it = configEntry.properties.values().iterator();
while (it.hasNext()){
Property property = new Property((com.ibm.ws.cache.config.Property)it.next());
prope... | public class class_name {
public ArrayList getProperties(){
ArrayList properties = new ArrayList();
if (configEntry.properties != null){
Iterator it = configEntry.properties.values().iterator();
while (it.hasNext()){
Property property = new Property((com.ibm.ws.cache.config.Property)it.next());
prope... |
public class class_name {
protected boolean isNavigationKey(int keyCode) {
for (int i = 0; i < NAVIGATION_CODES.length; i++) {
if (NAVIGATION_CODES[i] == keyCode) {
return true;
}
}
return false;
} } | public class class_name {
protected boolean isNavigationKey(int keyCode) {
for (int i = 0; i < NAVIGATION_CODES.length; i++) {
if (NAVIGATION_CODES[i] == keyCode) {
return true; // depends on control dependency: [if], data = [none]
}
}
return false;
... |
public class class_name {
public static String encodeURIAttribute(final String string, final String characterEncoding)
throws IOException
{
StringBuilder sb = null; //create later on demand
String app;
char c;
boolean endLoop = false;
int length = string.length();... | public class class_name {
public static String encodeURIAttribute(final String string, final String characterEncoding)
throws IOException
{
StringBuilder sb = null; //create later on demand
String app;
char c;
boolean endLoop = false;
int length = string.length();... |
public class class_name {
public void setMinuteTickMarksVisible(final boolean VISIBLE) {
if (null == minuteTickMarksVisible) {
_minuteTickMarksVisible = VISIBLE;
fireUpdateEvent(REDRAW_EVENT);
} else {
minuteTickMarksVisible.set(VISIBLE);
}
} } | public class class_name {
public void setMinuteTickMarksVisible(final boolean VISIBLE) {
if (null == minuteTickMarksVisible) {
_minuteTickMarksVisible = VISIBLE; // depends on control dependency: [if], data = [none]
fireUpdateEvent(REDRAW_EVENT); // depends on control dependency: [if], ... |
public class class_name {
public final boolean add(final Period period) {
if (isUtc()) {
period.setUtc(true);
}
else {
period.setTimeZone(timezone);
}
return periods.add(period);
} } | public class class_name {
public final boolean add(final Period period) {
if (isUtc()) {
period.setUtc(true); // depends on control dependency: [if], data = [none]
}
else {
period.setTimeZone(timezone); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
Map buildFilterParamMap(List filters) {
if(filters == null || filters.size() == 0)
return null;
String encoded = encodeFilters(filters);
if(encoded == null)
return null;
else {
HashMap params = new HashMap();
par... | public class class_name {
Map buildFilterParamMap(List filters) {
if(filters == null || filters.size() == 0)
return null;
String encoded = encodeFilters(filters);
if(encoded == null)
return null;
else {
HashMap params = new HashMap();
par... |
public class class_name {
public static BigDecimal inverse(final BigDecimal value, final int scale, final int rounding) {
if (isNotZero(value)) {
return BigDecimal.ONE.divide(value, scale, rounding);
}
return null;
} } | public class class_name {
public static BigDecimal inverse(final BigDecimal value, final int scale, final int rounding) {
if (isNotZero(value)) {
return BigDecimal.ONE.divide(value, scale, rounding);
// depends on control dependency: [if], data = [none]
}
return null;
} } |
public class class_name {
public void getAllObjects (ArrayList<ObjectInfo> list)
{
for (Iterator<Section> iter = getSections(); iter.hasNext(); ) {
iter.next().getAllObjects(list);
}
} } | public class class_name {
public void getAllObjects (ArrayList<ObjectInfo> list)
{
for (Iterator<Section> iter = getSections(); iter.hasNext(); ) {
iter.next().getAllObjects(list); // depends on control dependency: [for], data = [iter]
}
} } |
public class class_name {
public void marshall(UsageInstruction usageInstruction, ProtocolMarshaller protocolMarshaller) {
if (usageInstruction == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(usag... | public class class_name {
public void marshall(UsageInstruction usageInstruction, ProtocolMarshaller protocolMarshaller) {
if (usageInstruction == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(usag... |
public class class_name {
public void each(Consumer<T> operation) {
for (T component : components) {
operation.accept(component);
}
} } | public class class_name {
public void each(Consumer<T> operation) {
for (T component : components) {
operation.accept(component); // depends on control dependency: [for], data = [component]
}
} } |
public class class_name {
public void marshall(EnvironmentPropertyDescriptions environmentPropertyDescriptions, ProtocolMarshaller protocolMarshaller) {
if (environmentPropertyDescriptions == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {... | public class class_name {
public void marshall(EnvironmentPropertyDescriptions environmentPropertyDescriptions, ProtocolMarshaller protocolMarshaller) {
if (environmentPropertyDescriptions == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {... |
public class class_name {
public static String renameIfExists(String path) {
File file = new File(path);
if (file.exists() && file.isFile()) {
int index = file.getName().lastIndexOf(".");
String name = file.getName().substring(0, index);
String suffix = index == -1 ? "" : file.getName().subst... | public class class_name {
public static String renameIfExists(String path) {
File file = new File(path);
if (file.exists() && file.isFile()) {
int index = file.getName().lastIndexOf(".");
String name = file.getName().substring(0, index);
String suffix = index == -1 ? "" : file.getName().subst... |
public class class_name {
public File getCompiled(AssetInfo asset, File starter) throws IOException, ServiceException {
File file;
synchronized(WebpackCache.class) {
file = webpackAssets.get(asset);
if (file == null || !file.exists() || file.lastModified() < asset.getFile().last... | public class class_name {
public File getCompiled(AssetInfo asset, File starter) throws IOException, ServiceException {
File file;
synchronized(WebpackCache.class) {
file = webpackAssets.get(asset);
if (file == null || !file.exists() || file.lastModified() < asset.getFile().last... |
public class class_name {
final int writeToPreallocated(StorageChannelOutput out, Map<AbstractIndexPage, Integer> map) {
if (!isDirty()) {
return pageId;
}
Integer pageIdpre = map.get(this);
if (pageIdpre == null) {
throw DBLogger.newFatalInternal("Page not preallocated: " + pageId + " / " + this);
}... | public class class_name {
final int writeToPreallocated(StorageChannelOutput out, Map<AbstractIndexPage, Integer> map) {
if (!isDirty()) {
return pageId; // depends on control dependency: [if], data = [none]
}
Integer pageIdpre = map.get(this);
if (pageIdpre == null) {
throw DBLogger.newFatalInternal("... |
public class class_name {
public static void setField(
final Object target,
final String name,
final Object value
) {
final Field field = findField(target.getClass(), name)
.orElseThrow(() -> new IllegalArgumentException(name + " not found."));
try {
field.setAccessible(true);
field.set(target, va... | public class class_name {
public static void setField(
final Object target,
final String name,
final Object value
) {
final Field field = findField(target.getClass(), name)
.orElseThrow(() -> new IllegalArgumentException(name + " not found."));
try {
field.setAccessible(true); // depends on control d... |
public class class_name {
public void stop() {
if (mBackup != null) {
mBackup.cancel(true);
mBackup = null;
}
LOG.info("Daily metadata backup stopped");
mScheduledExecutor.shutdownNow();
String waitForMessage = "waiting for daily metadata backup executor service to shut down";
try ... | public class class_name {
public void stop() {
if (mBackup != null) {
mBackup.cancel(true); // depends on control dependency: [if], data = [none]
mBackup = null; // depends on control dependency: [if], data = [none]
}
LOG.info("Daily metadata backup stopped");
mScheduledExecutor.shutdownNo... |
public class class_name {
public void shuffleFromTo(int from, int to) {
if (size == 0) return;
checkRangeFromTo(from, to, size);
//cern.jet.random.Uniform gen = new cern.jet.random.Uniform(new cern.jet.random.engine.DRand(new java.util.Date()));
java.util.Random gen = new java.util.Random();
Object tmpEl... | public class class_name {
public void shuffleFromTo(int from, int to) {
if (size == 0) return;
checkRangeFromTo(from, to, size);
//cern.jet.random.Uniform gen = new cern.jet.random.Uniform(new cern.jet.random.engine.DRand(new java.util.Date()));
java.util.Random gen = new java.util.Random();
Object tmpEl... |
public class class_name {
@InService(PageServiceSync.class)
public void afterDataFlush(Page newPage, int sequenceFlush)
{
Page page = _pages.get(newPage.getId());
if (page == newPage) {
page.afterDataFlush(this, sequenceFlush);
}
else {
System.out.println("AfterDataFlush mismatch: ... | public class class_name {
@InService(PageServiceSync.class)
public void afterDataFlush(Page newPage, int sequenceFlush)
{
Page page = _pages.get(newPage.getId());
if (page == newPage) {
page.afterDataFlush(this, sequenceFlush); // depends on control dependency: [if], data = [none]
}
else... |
public class class_name {
@SuppressWarnings("unused")
public void setCronExpression(String cronExpression) {
checkFrozen();
try {
// check if the cron expression is valid
new CronExpression(cronExpression);
} catch (Exception e) {
throw new CmsIllegalAr... | public class class_name {
@SuppressWarnings("unused")
public void setCronExpression(String cronExpression) {
checkFrozen();
try {
// check if the cron expression is valid
new CronExpression(cronExpression); // depends on control dependency: [try], data = [none]
} c... |
public class class_name {
public boolean isDeleted(String identifier)
{
ItemState lastState = changesLog.getItemState(identifier);
if (lastState != null && lastState.isDeleted())
{
return true;
}
return false;
} } | public class class_name {
public boolean isDeleted(String identifier)
{
ItemState lastState = changesLog.getItemState(identifier);
if (lastState != null && lastState.isDeleted())
{
return true; // depends on control dependency: [if], data = [none]
}
return false;
} } |
public class class_name {
public UploadResponse upload(File photo, String title, String description, List<String> tags, Boolean isPublic,
Boolean isFriend, Boolean isFamily, JinxConstants.SafetyLevel safetyLevel,
JinxConstants.ContentType contentType, Boole... | public class class_name {
public UploadResponse upload(File photo, String title, String description, List<String> tags, Boolean isPublic,
Boolean isFriend, Boolean isFamily, JinxConstants.SafetyLevel safetyLevel,
JinxConstants.ContentType contentType, Boole... |
public class class_name {
public Pattern getPattern(String name, Pattern defaultValue) {
String valString = get(name);
if (null == valString || valString.isEmpty()) {
return defaultValue;
}
try {
return Pattern.compile(valString);
} catch (PatternSyntaxException pse) {
LOG.warn("Regular expression '... | public class class_name {
public Pattern getPattern(String name, Pattern defaultValue) {
String valString = get(name);
if (null == valString || valString.isEmpty()) {
return defaultValue; // depends on control dependency: [if], data = [none]
}
try {
return Pattern.compile(valString); // depends on contro... |
public class class_name {
private String normalizeText(String text) {
String[] tokens = StringUtils.split(text, "\n");
for (int i = 0; i < tokens.length; i++) {
tokens[i] = tokens[i].trim();
}
return StringUtils.join(tokens, " ").trim();
} } | public class class_name {
private String normalizeText(String text) {
String[] tokens = StringUtils.split(text, "\n");
for (int i = 0; i < tokens.length; i++) {
tokens[i] = tokens[i].trim(); // depends on control dependency: [for], data = [i]
}
return StringUtils.join(token... |
public class class_name {
protected boolean hasKey() {
boolean result = false;
String requestURI = this.request.getUri();
parseKeys(requestURI);
if(this.parsedKeys != null) {
result = true;
} else {
logger.error("Error when validating request. No key spe... | public class class_name {
protected boolean hasKey() {
boolean result = false;
String requestURI = this.request.getUri();
parseKeys(requestURI);
if(this.parsedKeys != null) {
result = true; // depends on control dependency: [if], data = [none]
} else {
l... |
public class class_name {
String partialEncode() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "partialEncode()");
String encoded = null;
// If we have a cached version of the string, use it.
if (cachedPartialEncodedString != null... | public class class_name {
String partialEncode() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "partialEncode()");
String encoded = null;
// If we have a cached version of the string, use it.
if (cachedPartialEncodedString != null... |
public class class_name {
private ImmutableNode mapToNode(final Builder builder, final Map<String, Object> map) {
for (final Map.Entry<String, Object> entry : map.entrySet()) {
final String key = entry.getKey();
final Object value = entry.getValue();
if (value instanceof Lis... | public class class_name {
private ImmutableNode mapToNode(final Builder builder, final Map<String, Object> map) {
for (final Map.Entry<String, Object> entry : map.entrySet()) {
final String key = entry.getKey();
final Object value = entry.getValue();
if (value instanceof Lis... |
public class class_name {
public static DoubleStreamEx iterate(double seed, DoublePredicate predicate, DoubleUnaryOperator f) {
Objects.requireNonNull(f);
Objects.requireNonNull(predicate);
Spliterator.OfDouble spliterator = new Spliterators.AbstractDoubleSpliterator(Long.MAX_VALUE,
... | public class class_name {
public static DoubleStreamEx iterate(double seed, DoublePredicate predicate, DoubleUnaryOperator f) {
Objects.requireNonNull(f);
Objects.requireNonNull(predicate);
Spliterator.OfDouble spliterator = new Spliterators.AbstractDoubleSpliterator(Long.MAX_VALUE,
... |
public class class_name {
private int getTargetPort() {
int port = getVirtualPort();
if (NOTSET == port) {
port = (isIncoming()) ? getServiceContext().getLocalPort() : getServiceContext().getRemotePort();
}
return port;
} } | public class class_name {
private int getTargetPort() {
int port = getVirtualPort();
if (NOTSET == port) {
port = (isIncoming()) ? getServiceContext().getLocalPort() : getServiceContext().getRemotePort(); // depends on control dependency: [if], data = [none]
}
return port;
... |
public class class_name {
public static void fire(final HasSummernoteKeyDownHandlers source, NativeEvent nativeEvent) {
if (TYPE != null) {
SummernoteKeyDownEvent event = new SummernoteKeyDownEvent(nativeEvent);
source.fireEvent(event);
}
} } | public class class_name {
public static void fire(final HasSummernoteKeyDownHandlers source, NativeEvent nativeEvent) {
if (TYPE != null) {
SummernoteKeyDownEvent event = new SummernoteKeyDownEvent(nativeEvent);
source.fireEvent(event); // depends on control dependency: [if], data = [no... |
public class class_name {
private void unpack() throws InstallationFailedException {
System.out.println("Preparing FEDORA_HOME...");
if (!_installDir.exists() && !_installDir.mkdirs()) {
throw new InstallationFailedException(
"Unable to create FEDORA_HOME: "
+ _installDir.getAbsolutePath());
}
... | public class class_name {
private void unpack() throws InstallationFailedException {
System.out.println("Preparing FEDORA_HOME...");
if (!_installDir.exists() && !_installDir.mkdirs()) {
throw new InstallationFailedException(
"Unable to create FEDORA_HOME: "
+ _installDir.getAbsolutePath());
}
... |
public class class_name {
public List<String> listEscapeJava(final List<?> target) {
if (target == null) {
return null;
}
final List<String> result = new ArrayList<String>(target.size() + 2);
for (final Object element : target) {
result.add(escapeJava(element));
... | public class class_name {
public List<String> listEscapeJava(final List<?> target) {
if (target == null) {
return null; // depends on control dependency: [if], data = [none]
}
final List<String> result = new ArrayList<String>(target.size() + 2);
for (final Object element : t... |
public class class_name {
public void removeMap(String mapId) {
IndexInformation info = cache.remove(mapId);
if (info != null) {
totalMemoryUsed.addAndGet(-info.getSize());
if (!queue.remove(mapId)) {
LOG.warn("Map ID" + mapId + " not found in queue!!");
}
} else {
LOG.info(... | public class class_name {
public void removeMap(String mapId) {
IndexInformation info = cache.remove(mapId);
if (info != null) {
totalMemoryUsed.addAndGet(-info.getSize()); // depends on control dependency: [if], data = [none]
if (!queue.remove(mapId)) {
LOG.warn("Map ID" + mapId + " not fo... |
public class class_name {
public static void warn(String msg) {
if (loggedMessages.contains(msg)) {
return;
}
Log.w(TAG, msg);
loggedMessages.add(msg);
} } | public class class_name {
public static void warn(String msg) {
if (loggedMessages.contains(msg)) {
return; // depends on control dependency: [if], data = [none]
}
Log.w(TAG, msg);
loggedMessages.add(msg);
} } |
public class class_name {
@Override
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {
for (TypeElement dataSource : dataSets) {
SQLiteDatabaseSchema currentSchema = createDataSource(dataSource);
// Analyze beans BEFORE daos, because beans are needed for DAO
// def... | public class class_name {
@Override
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {
for (TypeElement dataSource : dataSets) {
SQLiteDatabaseSchema currentSchema = createDataSource(dataSource);
// Analyze beans BEFORE daos, because beans are needed for DAO
// def... |
public class class_name {
public String createRunner(Vector<Object> runnerParams)
{
try
{
Runner runner = XmlRpcDataMarshaller.toRunner(runnerParams);
service.createRunner(runner);
log.debug( "Created Runner: " + runner.getName() );
return SUCCESS;
}... | public class class_name {
public String createRunner(Vector<Object> runnerParams)
{
try
{
Runner runner = XmlRpcDataMarshaller.toRunner(runnerParams);
service.createRunner(runner); // depends on control dependency: [try], data = [none]
log.debug( "Created Runner: " + ru... |
public class class_name {
@RequirePOST
public HttpResponse doStop() {
lock.writeLock().lock(); // need write lock as interrupt will change the field
try {
if (executable != null) {
getParentOf(executable).getOwnerTask().checkAbortPermission();
interrupt()... | public class class_name {
@RequirePOST
public HttpResponse doStop() {
lock.writeLock().lock(); // need write lock as interrupt will change the field
try {
if (executable != null) {
getParentOf(executable).getOwnerTask().checkAbortPermission(); // depends on control depen... |
public class class_name {
public static SecretKeyFactory getSecretKeyFactory(String algorithm) {
final Provider provider = GlobalBouncyCastleProvider.INSTANCE.getProvider();
SecretKeyFactory keyFactory;
try {
keyFactory = (null == provider) //
? SecretKeyFactory.getInstance(getMainAlgorithm(algori... | public class class_name {
public static SecretKeyFactory getSecretKeyFactory(String algorithm) {
final Provider provider = GlobalBouncyCastleProvider.INSTANCE.getProvider();
SecretKeyFactory keyFactory;
try {
keyFactory = (null == provider) //
? SecretKeyFactory.getInstance(getMainAlgorithm(algori... |
public class class_name {
@SuppressWarnings({ "squid:S1166", "squid:S2221" })
boolean isValidDragSource(final VDragEvent drag, final UIDL configuration) {
try {
final String dragSource = drag.getTransferable().getDragSource().getWidget().getElement().getId();
final String dragSource... | public class class_name {
@SuppressWarnings({ "squid:S1166", "squid:S2221" })
boolean isValidDragSource(final VDragEvent drag, final UIDL configuration) {
try {
final String dragSource = drag.getTransferable().getDragSource().getWidget().getElement().getId();
final String dragSource... |
public class class_name {
protected void statusInfoMessage(final String tag) {
if(logger.isInfoEnabled()) {
logger.info(tag + " : [partition: " + currentPartition + ", partitionFetched: "
+ currentPartitionFetched
+ "] for store " + storageEngine.getN... | public class class_name {
protected void statusInfoMessage(final String tag) {
if(logger.isInfoEnabled()) {
logger.info(tag + " : [partition: " + currentPartition + ", partitionFetched: "
+ currentPartitionFetched
+ "] for store " + storageEngine.getN... |
public class class_name {
private int updateProgress(int checkedTiles, int tilesNumber, int oldPercent, Collection<ImageBuffer> tiles)
{
final int percent = getProgressPercent(checkedTiles, tilesNumber);
if (percent != oldPercent)
{
for (final ProgressListener listener : listene... | public class class_name {
private int updateProgress(int checkedTiles, int tilesNumber, int oldPercent, Collection<ImageBuffer> tiles)
{
final int percent = getProgressPercent(checkedTiles, tilesNumber);
if (percent != oldPercent)
{
for (final ProgressListener listener : listene... |
public class class_name {
public static CmsPositionBean getEditablePosition(Element editable) {
CmsPositionBean result = new CmsPositionBean();
int dummy = -999;
// setting minimum height
result.setHeight(20);
result.setWidth(60);
result.setLeft(dummy);
result.s... | public class class_name {
public static CmsPositionBean getEditablePosition(Element editable) {
CmsPositionBean result = new CmsPositionBean();
int dummy = -999;
// setting minimum height
result.setHeight(20);
result.setWidth(60);
result.setLeft(dummy);
result.s... |
public class class_name {
@Override
public boolean accept(Stanza message) {
if (!message.hasStanzaIdSet()) {
return false;
}
if (super.accept(message)) {
ExtensionElement extension = message.getExtension(ChatStateManager.NAMESPACE);
String chatStateEleme... | public class class_name {
@Override
public boolean accept(Stanza message) {
if (!message.hasStanzaIdSet()) {
return false; // depends on control dependency: [if], data = [none]
}
if (super.accept(message)) {
ExtensionElement extension = message.getExtension(ChatStat... |
public class class_name {
private void constructFailureStates()
{
Queue<State> queue = new LinkedBlockingDeque<State>();
// 第一步,将深度为1的节点的failure设为根节点
for (State depthOneState : this.rootState.getStates())
{
depthOneState.setFailure(this.rootState);
queue.add... | public class class_name {
private void constructFailureStates()
{
Queue<State> queue = new LinkedBlockingDeque<State>();
// 第一步,将深度为1的节点的failure设为根节点
for (State depthOneState : this.rootState.getStates())
{
depthOneState.setFailure(this.rootState); // depends on control... |
public class class_name {
private String[] parseLine(String nextLine, boolean multi) {
if (!multi && pending != null) {
pending = null;
}
if (nextLine == null) {
if (pending != null) {
String s = pending;
pending = null;
return new String[] { s };
} else {
... | public class class_name {
private String[] parseLine(String nextLine, boolean multi) {
if (!multi && pending != null) {
pending = null; // depends on control dependency: [if], data = [none]
}
if (nextLine == null) {
if (pending != null) {
String s = pending;
pending = null; //... |
public class class_name {
public void setSupportedPlatforms(java.util.Collection<String> supportedPlatforms) {
if (supportedPlatforms == null) {
this.supportedPlatforms = null;
return;
}
this.supportedPlatforms = new java.util.ArrayList<String>(supportedPlatforms);
... | public class class_name {
public void setSupportedPlatforms(java.util.Collection<String> supportedPlatforms) {
if (supportedPlatforms == null) {
this.supportedPlatforms = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [... |
public class class_name {
@ArgumentsChecked
@Throws({ IllegalNullArgumentException.class, IllegalEmptyArgumentException.class })
public static <T> void notEmpty(final boolean condition, @Nonnull final T reference, final boolean expression,
@Nullable final String name) {
if (condition) {
Check.notEmpty(refere... | public class class_name {
@ArgumentsChecked
@Throws({ IllegalNullArgumentException.class, IllegalEmptyArgumentException.class })
public static <T> void notEmpty(final boolean condition, @Nonnull final T reference, final boolean expression,
@Nullable final String name) {
if (condition) {
Check.notEmpty(refere... |
public class class_name {
public void start(@NonNull Activity activity, @NonNull String connection, @Nullable Map<String, Object> extraAuthParameters, @NonNull AuthCallback callback, int requestCode) {
HashMap<String, Object> parameters;
if (extraAuthParameters == null) {
parameters = optio... | public class class_name {
public void start(@NonNull Activity activity, @NonNull String connection, @Nullable Map<String, Object> extraAuthParameters, @NonNull AuthCallback callback, int requestCode) {
HashMap<String, Object> parameters;
if (extraAuthParameters == null) {
parameters = optio... |
public class class_name {
public void close()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "close");
synchronized(this)
{
if (closed)
{
idToProxyQueueMap.clear();
factory.groupCloseNotification(conversation, this... | public class class_name {
public void close()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "close");
synchronized(this)
{
if (closed)
{
idToProxyQueueMap.clear(); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public static void initUBL22 (@Nonnull final ValidationExecutorSetRegistry aRegistry)
{
ValueEnforcer.notNull (aRegistry, "Registry");
// For better error messages
LocationBeautifierSPI.addMappings (UBL22NamespaceContext.getInstance ());
final boolean bNotDeprecated = fals... | public class class_name {
public static void initUBL22 (@Nonnull final ValidationExecutorSetRegistry aRegistry)
{
ValueEnforcer.notNull (aRegistry, "Registry");
// For better error messages
LocationBeautifierSPI.addMappings (UBL22NamespaceContext.getInstance ());
final boolean bNotDeprecated = fals... |
public class class_name {
protected synchronized void activate(ComponentContext context) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(this, tc, "Activating");
}
bContext = context.getBundleContext();
instance.set(this);
sslConfigs.ac... | public class class_name {
protected synchronized void activate(ComponentContext context) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(this, tc, "Activating"); // depends on control dependency: [if], data = [none]
}
bContext = context.getBundleContext... |
public class class_name {
public void marshall(CompatibleImage compatibleImage, ProtocolMarshaller protocolMarshaller) {
if (compatibleImage == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(compati... | public class class_name {
public void marshall(CompatibleImage compatibleImage, ProtocolMarshaller protocolMarshaller) {
if (compatibleImage == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(compati... |
public class class_name {
public List<Feature> parseJsonFiles(List<String> jsonFiles) {
if (jsonFiles.isEmpty()) {
throw new ValidationException("None report file was added!");
}
List<Feature> featureResults = new ArrayList<>();
for (int i = 0; i < jsonFiles.size(); i++) {
... | public class class_name {
public List<Feature> parseJsonFiles(List<String> jsonFiles) {
if (jsonFiles.isEmpty()) {
throw new ValidationException("None report file was added!");
}
List<Feature> featureResults = new ArrayList<>();
for (int i = 0; i < jsonFiles.size(); i++) {
... |
public class class_name {
private int[][] createStationBasinsMatrix( double[] statValues, int[] activeStationsPerBasin ) {
int[][] stationsBasins = new int[stationCoordinates.size()][basinBaricenterCoordinates.size()];
Set<Integer> bandsIdSet = bin2StationsListMap.keySet();
Integer[] bandsIdArr... | public class class_name {
private int[][] createStationBasinsMatrix( double[] statValues, int[] activeStationsPerBasin ) {
int[][] stationsBasins = new int[stationCoordinates.size()][basinBaricenterCoordinates.size()];
Set<Integer> bandsIdSet = bin2StationsListMap.keySet();
Integer[] bandsIdArr... |
public class class_name {
public void eventUnreferenced(ActivityHandle handle, FireableEventType eventType,
Object event, Address arg3, ReceivableService arg4, int arg5) {
if(tracer.isFineEnabled()) {
tracer.fine("Event Unreferenced. Handle = "+handle+", type = "+eventType.getEventType()+", event = "+event);
... | public class class_name {
public void eventUnreferenced(ActivityHandle handle, FireableEventType eventType,
Object event, Address arg3, ReceivableService arg4, int arg5) {
if(tracer.isFineEnabled()) {
tracer.fine("Event Unreferenced. Handle = "+handle+", type = "+eventType.getEventType()+", event = "+event); ... |
public class class_name {
protected boolean isMatch(IPListConfig config, String remoteAddr) {
if (config.getIpList().contains(remoteAddr)) {
return true;
}
try {
String [] remoteAddrSplit = remoteAddr.split("\\."); //$NON-NLS-1$
for (String ip : config.getIpL... | public class class_name {
protected boolean isMatch(IPListConfig config, String remoteAddr) {
if (config.getIpList().contains(remoteAddr)) {
return true; // depends on control dependency: [if], data = [none]
}
try {
String [] remoteAddrSplit = remoteAddr.split("\\."); //... |
public class class_name {
public synchronized void close() throws IOException {
//
// Kill running tasks. Do this in a 2nd vector, called 'tasksToClose',
// because calling jobHasFinished() may result in an edit to 'tasks'.
//
TreeMap<TaskAttemptID, TaskInProgress> tasksToClose =
new TreeMap... | public class class_name {
public synchronized void close() throws IOException {
//
// Kill running tasks. Do this in a 2nd vector, called 'tasksToClose',
// because calling jobHasFinished() may result in an edit to 'tasks'.
//
TreeMap<TaskAttemptID, TaskInProgress> tasksToClose =
new TreeMap... |
public class class_name {
public static void probeObject(Object o) {
Class c = o.getClass();
Class interfaces[] = c.getInterfaces();
Class parent = c.getSuperclass();
Method m[] = c.getMethods();
System.out.println("********* OBJECT PROBE *********");
System.... | public class class_name {
public static void probeObject(Object o) {
Class c = o.getClass();
Class interfaces[] = c.getInterfaces();
Class parent = c.getSuperclass();
Method m[] = c.getMethods();
System.out.println("********* OBJECT PROBE *********");
System.... |
public class class_name {
public static <T, E extends Exception> IntList mapToInt(final Collection<? extends T> c, final int fromIndex, final int toIndex,
final Try.ToIntFunction<? super T, E> func) throws E {
checkFromToIndex(fromIndex, toIndex, size(c));
N.checkArgNotNull(func);
... | public class class_name {
public static <T, E extends Exception> IntList mapToInt(final Collection<? extends T> c, final int fromIndex, final int toIndex,
final Try.ToIntFunction<? super T, E> func) throws E {
checkFromToIndex(fromIndex, toIndex, size(c));
N.checkArgNotNull(func);
... |
public class class_name {
public void validateUpdateFile(Long configId, String fileName) {
//
// config
//
Config config = valideConfigExist(configId);
//
// value
//
try {
if (!config.getName().equals(fileName)) {
throw new... | public class class_name {
public void validateUpdateFile(Long configId, String fileName) {
//
// config
//
Config config = valideConfigExist(configId);
//
// value
//
try {
if (!config.getName().equals(fileName)) {
throw new... |
public class class_name {
public final Mono<T> reduce(BiFunction<T, T, T> aggregator) {
if (this instanceof Callable){
@SuppressWarnings("unchecked")
Callable<T> thiz = (Callable<T>)this;
return convertToMono(thiz);
}
return Mono.onAssembly(new MonoReduce<>(this, aggregator));
} } | public class class_name {
public final Mono<T> reduce(BiFunction<T, T, T> aggregator) {
if (this instanceof Callable){
@SuppressWarnings("unchecked")
Callable<T> thiz = (Callable<T>)this;
return convertToMono(thiz); // depends on control dependency: [if], data = [none]
}
return Mono.onAssembly(new... |
public class class_name {
public boolean handlePopBox(String deviceBrand) {
pushHandleGps2Device();
CommandLine exeCommand = null;
if (deviceBrand.contains("HTC")) {
exeCommand = adbCommand("shell", "uiautomator", "runtest",
"/data/local/tmp/handlePopBox.jar", "-c", "com.test.device.gps.HT... | public class class_name {
public boolean handlePopBox(String deviceBrand) {
pushHandleGps2Device();
CommandLine exeCommand = null;
if (deviceBrand.contains("HTC")) {
exeCommand = adbCommand("shell", "uiautomator", "runtest",
"/data/local/tmp/handlePopBox.jar", "-c", "com.test.device.gps.HT... |
public class class_name {
public void marshall(DvbNitSettings dvbNitSettings, ProtocolMarshaller protocolMarshaller) {
if (dvbNitSettings == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(dvbNitSett... | public class class_name {
public void marshall(DvbNitSettings dvbNitSettings, ProtocolMarshaller protocolMarshaller) {
if (dvbNitSettings == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(dvbNitSett... |
public class class_name {
private static String readResource(String name) {
try {
return IOUtils.toString(AmazonKinesisFirehoseToRedshiftSample.class.getResourceAsStream(name));
} catch (IOException e) {
throw new RuntimeException("Failed to read document resource: " + name, e);... | public class class_name {
private static String readResource(String name) {
try {
return IOUtils.toString(AmazonKinesisFirehoseToRedshiftSample.class.getResourceAsStream(name)); // depends on control dependency: [try], data = [none]
} catch (IOException e) {
throw new RuntimeExc... |
public class class_name {
public long handleNodeTags(ReaderNode node) {
long flags = 0;
for (AbstractFlagEncoder encoder : edgeEncoders) {
flags |= encoder.handleNodeTags(node);
}
return flags;
} } | public class class_name {
public long handleNodeTags(ReaderNode node) {
long flags = 0;
for (AbstractFlagEncoder encoder : edgeEncoders) {
flags |= encoder.handleNodeTags(node); // depends on control dependency: [for], data = [encoder]
}
return flags;
} } |
public class class_name {
public final String toShortString() {
StringBuffer buffer = new StringBuffer();
buffer.append(defaultAlignment.abbreviation());
buffer.append(":");
buffer.append(size.toString());
buffer.append(':');
if (resizeWeight == NO_GROW) {
b... | public class class_name {
public final String toShortString() {
StringBuffer buffer = new StringBuffer();
buffer.append(defaultAlignment.abbreviation());
buffer.append(":");
buffer.append(size.toString());
buffer.append(':');
if (resizeWeight == NO_GROW) {
b... |
public class class_name {
@Deprecated
public Collection<MaterialRevision> computeRevisionsForReporting(CaseInsensitiveString pipelineName, PipelineTimeline pipelineTimeline) {
Pair<List<RootFanInNode>, List<DependencyFanInNode>> scmAndDepMaterialsChildren = getScmAndDepMaterialsChildren();
List<Roo... | public class class_name {
@Deprecated
public Collection<MaterialRevision> computeRevisionsForReporting(CaseInsensitiveString pipelineName, PipelineTimeline pipelineTimeline) {
Pair<List<RootFanInNode>, List<DependencyFanInNode>> scmAndDepMaterialsChildren = getScmAndDepMaterialsChildren();
List<Roo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.