code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
public final AbstractExecutor.Get getJadeGetExecutor(Object obj, Object identifier) {
final Class<?> claz = obj.getClass();
final String property = toString(identifier);
AbstractExecutor.Get executor;
// let's see if we are a map...
executor = new MapGetExecutor(this, claz, identifi... | public class class_name {
public final AbstractExecutor.Get getJadeGetExecutor(Object obj, Object identifier) {
final Class<?> claz = obj.getClass();
final String property = toString(identifier);
AbstractExecutor.Get executor;
// let's see if we are a map...
executor = new MapGetExecutor(this, claz, identifi... |
public class class_name {
public static <T> T from(final long pointer) {
if (pointer == 0L) {
return null;
}
return (T) MAPPED_OBJECTS.get(pointer);
} } | public class class_name {
public static <T> T from(final long pointer) {
if (pointer == 0L) {
return null; // depends on control dependency: [if], data = [none]
}
return (T) MAPPED_OBJECTS.get(pointer);
} } |
public class class_name {
private <T> Set<Class<? extends T>> load(Class<T> serviceClass) {
String serviceFile = SERVICES + "/" + serviceClass.getName();
LinkedHashSet<Class<? extends T>> providers = new LinkedHashSet<Class<? extends T>>();
try {
Enumeration<URL> enumeration = cla... | public class class_name {
private <T> Set<Class<? extends T>> load(Class<T> serviceClass) {
String serviceFile = SERVICES + "/" + serviceClass.getName();
LinkedHashSet<Class<? extends T>> providers = new LinkedHashSet<Class<? extends T>>();
try {
Enumeration<URL> enumeration = cla... |
public class class_name {
@Override
public Node delete(ArchivePath path) {
Validate.notNull(path, "No path was specified");
ArchivePath safePath = path;
NodeImpl node = content.get(safePath);
if (node == null) {
if (path.get().endsWith("/")) {
safePath =... | public class class_name {
@Override
public Node delete(ArchivePath path) {
Validate.notNull(path, "No path was specified");
ArchivePath safePath = path;
NodeImpl node = content.get(safePath);
if (node == null) {
if (path.get().endsWith("/")) {
safePath =... |
public class class_name {
protected void initSettings(Element root, CmsXmlContentDefinition contentDefinition) {
Iterator<Element> itProperties = CmsXmlGenericWrapper.elementIterator(root, APPINFO_SETTING);
while (itProperties.hasNext()) {
Element element = itProperties.next();
... | public class class_name {
protected void initSettings(Element root, CmsXmlContentDefinition contentDefinition) {
Iterator<Element> itProperties = CmsXmlGenericWrapper.elementIterator(root, APPINFO_SETTING);
while (itProperties.hasNext()) {
Element element = itProperties.next();
... |
public class class_name {
public void complete(VirtualConnection vc, TCPReadRequestContext rsc) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "complete() called: vc=" + vc);
}
HttpOutboundServiceContextImpl mySC = (HttpOutboundServiceContextImpl)... | public class class_name {
public void complete(VirtualConnection vc, TCPReadRequestContext rsc) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "complete() called: vc=" + vc); // depends on control dependency: [if], data = [none]
}
HttpOutboundServ... |
public class class_name {
private void inflateTitleView() {
titleContainer = rootView.findViewById(R.id.title_container);
titleContainer.removeAllViews();
if (customTitleView != null) {
titleContainer.addView(customTitleView);
} else if (customTitleViewId != -1) {
... | public class class_name {
private void inflateTitleView() {
titleContainer = rootView.findViewById(R.id.title_container);
titleContainer.removeAllViews();
if (customTitleView != null) {
titleContainer.addView(customTitleView); // depends on control dependency: [if], data = [(custom... |
public class class_name {
public static boolean match(final String stringToMatch, final String suffixes[])
{
for (final String suffix : suffixes)
{
final int suffixesLength = suffix.length();
final int stringToMatchLength = stringToMatch.length();
final int result = stringToMatchLength - suffixesLength;
... | public class class_name {
public static boolean match(final String stringToMatch, final String suffixes[])
{
for (final String suffix : suffixes)
{
final int suffixesLength = suffix.length();
final int stringToMatchLength = stringToMatch.length();
final int result = stringToMatchLength - suffixesLength;
... |
public class class_name {
public boolean process(DMatrixRMaj A , int numSingularValues, DMatrixRMaj nullspace ) {
decomposition.decompose(A);
if( A.numRows > A.numCols ) {
Q.reshape(A.numCols,Math.min(A.numRows,A.numCols));
decomposition.getQ(Q, true);
} else {
... | public class class_name {
public boolean process(DMatrixRMaj A , int numSingularValues, DMatrixRMaj nullspace ) {
decomposition.decompose(A);
if( A.numRows > A.numCols ) {
Q.reshape(A.numCols,Math.min(A.numRows,A.numCols)); // depends on control dependency: [if], data = [none]
... |
public class class_name {
protected final PdfContentByte getPreparedCanvas(float opacity) {
needRestore = false;
PdfContentByte canvas = (tableForeground != null) ? tableForeground : (isBg())
? getWriter().getDirectContentUnder()
: getWriter().getDirectContent();
String layerName ... | public class class_name {
protected final PdfContentByte getPreparedCanvas(float opacity) {
needRestore = false;
PdfContentByte canvas = (tableForeground != null) ? tableForeground : (isBg())
? getWriter().getDirectContentUnder()
: getWriter().getDirectContent();
String layerName ... |
public class class_name {
@Override
public List<String> getInboundTrustedRealms(String realmName) throws WSSecurityException {
final String METHOD = "getInboundTrustedRealms";
List<String> trustedRealmList = new ArrayList<String>();
UserRegistry userRegistry = getActiveUserRegistry();
... | public class class_name {
@Override
public List<String> getInboundTrustedRealms(String realmName) throws WSSecurityException {
final String METHOD = "getInboundTrustedRealms";
List<String> trustedRealmList = new ArrayList<String>();
UserRegistry userRegistry = getActiveUserRegistry();
... |
public class class_name {
@Override
public EClass getIfcRelConnectsStructuralActivity() {
if (ifcRelConnectsStructuralActivityEClass == null) {
ifcRelConnectsStructuralActivityEClass = (EClass) EPackage.Registry.INSTANCE
.getEPackage(Ifc4Package.eNS_URI).getEClassifiers().get(538);
}
return ifcRel... | public class class_name {
@Override
public EClass getIfcRelConnectsStructuralActivity() {
if (ifcRelConnectsStructuralActivityEClass == null) {
ifcRelConnectsStructuralActivityEClass = (EClass) EPackage.Registry.INSTANCE
.getEPackage(Ifc4Package.eNS_URI).getEClassifiers().get(538);
// depends on contro... |
public class class_name {
public static void sort( List list, String sortBy, Map<String, FieldAccess> fields, boolean ascending,
boolean nullsFirst) {
try {
/* If this list is null or empty, we have nothing to do so return. */
if ( list == null || list.si... | public class class_name {
public static void sort( List list, String sortBy, Map<String, FieldAccess> fields, boolean ascending,
boolean nullsFirst) {
try {
/* If this list is null or empty, we have nothing to do so return. */
if ( list == null || list.si... |
public class class_name {
public Observable<ServiceResponse<List<DatabasePrincipalInner>>> listPrincipalsWithServiceResponseAsync(String resourceGroupName, String clusterName, String databaseName) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName is ... | public class class_name {
public Observable<ServiceResponse<List<DatabasePrincipalInner>>> listPrincipalsWithServiceResponseAsync(String resourceGroupName, String clusterName, String databaseName) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName is ... |
public class class_name {
private boolean _createDeltas(Serializable key)
{
if (isInitialStateMarked())
{
if (_copyFullInitialState && _initialFullState == null)
{
if (_initialState == null)
{
// Copy it directly
... | public class class_name {
private boolean _createDeltas(Serializable key)
{
if (isInitialStateMarked())
{
if (_copyFullInitialState && _initialFullState == null)
{
if (_initialState == null)
{
// Copy it directly
... |
public class class_name {
public void marshall(AddCommunicationToCaseRequest addCommunicationToCaseRequest, ProtocolMarshaller protocolMarshaller) {
if (addCommunicationToCaseRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(AddCommunicationToCaseRequest addCommunicationToCaseRequest, ProtocolMarshaller protocolMarshaller) {
if (addCommunicationToCaseRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public static String objectToJson(Object item, Map<String, Object> optionalArgs)
{
try
{
ByteArrayOutputStream stream = new ByteArrayOutputStream();
JsonWriter writer = new JsonWriter(stream, optionalArgs);
writer.write(item);
... | public class class_name {
public static String objectToJson(Object item, Map<String, Object> optionalArgs)
{
try
{
ByteArrayOutputStream stream = new ByteArrayOutputStream();
JsonWriter writer = new JsonWriter(stream, optionalArgs);
writer.write(item); // depends... |
public class class_name {
@Override
public final synchronized void handleNewAccountEntry(
final Map<String, Object> pAddParam, final Account pAcc,
final Long pSubaccId, final Date pDateAt) throws Exception {
if (lazyGetBalanceAtAllDirtyCheck(pAddParam).getLeastAccountingEntryDate()
.getTime() > p... | public class class_name {
@Override
public final synchronized void handleNewAccountEntry(
final Map<String, Object> pAddParam, final Account pAcc,
final Long pSubaccId, final Date pDateAt) throws Exception {
if (lazyGetBalanceAtAllDirtyCheck(pAddParam).getLeastAccountingEntryDate()
.getTime() > p... |
public class class_name {
public static <K, V> void putIntoListMap(K key, V value, Map<? super K, List<V>> map) {
List<V> list = map.get(key);
if (list == null) {
list = Lists.newArrayListWithCapacity(2);
map.put(key, list);
}
list.add(value);
} } | public class class_name {
public static <K, V> void putIntoListMap(K key, V value, Map<? super K, List<V>> map) {
List<V> list = map.get(key);
if (list == null) {
list = Lists.newArrayListWithCapacity(2); // depends on control dependency: [if], data = [none]
map.put(key, list); // depends on control dependen... |
public class class_name {
public final DSLMapParser.variable_definition_return variable_definition() throws RecognitionException {
DSLMapParser.variable_definition_return retval = new DSLMapParser.variable_definition_return();
retval.start = input.LT(1);
Object root_0 = null;
Token lc=null;
Token name=null... | public class class_name {
public final DSLMapParser.variable_definition_return variable_definition() throws RecognitionException {
DSLMapParser.variable_definition_return retval = new DSLMapParser.variable_definition_return();
retval.start = input.LT(1);
Object root_0 = null;
Token lc=null;
Token name=null... |
public class class_name {
public void marshall(Job job, ProtocolMarshaller protocolMarshaller) {
if (job == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(job.getId(), ID_BINDING);
proto... | public class class_name {
public void marshall(Job job, ProtocolMarshaller protocolMarshaller) {
if (job == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(job.getId(), ID_BINDING); // depends on con... |
public class class_name {
JsonObject toJsonObject() {
JsonObjectBuilder ob = Json.createObjectBuilder();
ob.add("id", enrollmentID);
ob.add("type", type);
if (this.secret != null) {
ob.add("secret", secret);
}
if (null != maxEnrollments) {
ob.add... | public class class_name {
JsonObject toJsonObject() {
JsonObjectBuilder ob = Json.createObjectBuilder();
ob.add("id", enrollmentID);
ob.add("type", type);
if (this.secret != null) {
ob.add("secret", secret); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
@Deactivate
protected void deactivate(int reason) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "File monitor service deactivated", "reason=" + reason, fileMonitors);
}
for (Map.Entry<ServiceReference<FileMonitor>, M... | public class class_name {
@Deactivate
protected void deactivate(int reason) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "File monitor service deactivated", "reason=" + reason, fileMonitors); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public String getNodeId(final String clusterId, final HttpServletRequest request)
{
if (clusterId == null)
{
return null;
}
if (_workerName != null)
{
return clusterId + '.' + _workerName;
}
return clusterId;
... | public class class_name {
public String getNodeId(final String clusterId, final HttpServletRequest request)
{
if (clusterId == null)
{
return null; // depends on control dependency: [if], data = [none]
}
if (_workerName != null)
{
return clusterId + '... |
public class class_name {
private List createPoints(int numberOfSegments, float radius, float cx, float cy, float start, float end) {
ArrayList tempPoints = new ArrayList();
int step = 360 / numberOfSegments;
for (float a=start;a<=end+step;a+=step) {
float ang = a;
... | public class class_name {
private List createPoints(int numberOfSegments, float radius, float cx, float cy, float start, float end) {
ArrayList tempPoints = new ArrayList();
int step = 360 / numberOfSegments;
for (float a=start;a<=end+step;a+=step) {
float ang = a;
... |
public class class_name {
public TemplateBean getTemplate() {
TemplateBean templateBean = getRequestAttribute(CmsTemplateContextManager.ATTR_TEMPLATE_BEAN);
if (templateBean == null) {
templateBean = new TemplateBean("", "");
}
return templateBean;
} } | public class class_name {
public TemplateBean getTemplate() {
TemplateBean templateBean = getRequestAttribute(CmsTemplateContextManager.ATTR_TEMPLATE_BEAN);
if (templateBean == null) {
templateBean = new TemplateBean("", ""); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
@SuppressWarnings("SimplifiableIfStatement")
private boolean isMatchingType(JsonNode node, Class<?> type) {
if (node.isNull()) {
return true;
}
if (node.isTextual()) {
return String.class.isAssignableFrom(type);
}
if (node.isNumber()) {
return isNumericAssignable(type);
... | public class class_name {
@SuppressWarnings("SimplifiableIfStatement")
private boolean isMatchingType(JsonNode node, Class<?> type) {
if (node.isNull()) {
return true; // depends on control dependency: [if], data = [none]
}
if (node.isTextual()) {
return String.class.isAssignableFrom(type); // depends on ... |
public class class_name {
@Override
public final IProcessor lazyGet(//NOPMD
final Map<String, Object> pAddParam,
final String pBeanName) throws Exception {
IProcessor proc = this.processorsMap.get(pBeanName);
if (proc == null) {
// locking:
synchronized (this.processorsMap) {
//... | public class class_name {
@Override
public final IProcessor lazyGet(//NOPMD
final Map<String, Object> pAddParam,
final String pBeanName) throws Exception {
IProcessor proc = this.processorsMap.get(pBeanName);
if (proc == null) {
// locking:
synchronized (this.processorsMap) {
//... |
public class class_name {
public void analyzeExecuteArg(Method executeMethod, ExecuteArgBox box) {
List<Class<?>> pathParamTypeList = null; // lazy loaded
Parameter formParam = null;
final Parameter[] parameters = executeMethod.getParameters();
if (parameters.length > 0) {
b... | public class class_name {
public void analyzeExecuteArg(Method executeMethod, ExecuteArgBox box) {
List<Class<?>> pathParamTypeList = null; // lazy loaded
Parameter formParam = null;
final Parameter[] parameters = executeMethod.getParameters();
if (parameters.length > 0) {
b... |
public class class_name {
@Override
public boolean logModified(Logger log)
{
if (_dependencyList.logModified(log)) {
return true;
}
else if (isModified()) {
log.info(this + " has modified jar files");
return true;
}
else {
return false;
}
} } | public class class_name {
@Override
public boolean logModified(Logger log)
{
if (_dependencyList.logModified(log)) {
return true; // depends on control dependency: [if], data = [none]
}
else if (isModified()) {
log.info(this + " has modified jar files"); // depends on control dependency: [i... |
public class class_name {
@Override
public Iterable<String> getDependencyNames() throws ProcessingDependenciesException {
Iterable<String> result = null;
try {
getReadLock();
try {
result = depMap.keySet();
} finally {
releaseReadLock();
}
} catch (InterruptedException e) {
if ... | public class class_name {
@Override
public Iterable<String> getDependencyNames() throws ProcessingDependenciesException {
Iterable<String> result = null;
try {
getReadLock();
try {
result = depMap.keySet();
// depends on control dependency: [try], data = [none]
} finally {
releaseReadLock... |
public class class_name {
public void marshall(TransactWriteItem transactWriteItem, ProtocolMarshaller protocolMarshaller) {
if (transactWriteItem == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(t... | public class class_name {
public void marshall(TransactWriteItem transactWriteItem, ProtocolMarshaller protocolMarshaller) {
if (transactWriteItem == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(t... |
public class class_name {
protected void start() {
if (waterMarkEventGenerator != null) {
LOG.debug("Starting waterMarkEventGenerator");
waterMarkEventGenerator.start();
}
LOG.debug("Starting trigger policy");
triggerPolicy.start();
} } | public class class_name {
protected void start() {
if (waterMarkEventGenerator != null) {
LOG.debug("Starting waterMarkEventGenerator"); // depends on control dependency: [if], data = [none]
waterMarkEventGenerator.start(); // depends on control dependency: [if], data = [none]
}... |
public class class_name {
@Nullable
public ExecutableElement concreteConstructorFor(TypeElement classElement, AnnotationUtils annotationUtils) {
List<ExecutableElement> constructors = findNonPrivateConstructors(classElement);
if (constructors.isEmpty()) {
return null;
}
... | public class class_name {
@Nullable
public ExecutableElement concreteConstructorFor(TypeElement classElement, AnnotationUtils annotationUtils) {
List<ExecutableElement> constructors = findNonPrivateConstructors(classElement);
if (constructors.isEmpty()) {
return null; // depends on cont... |
public class class_name {
private void initFieldsValues(TypeElement component, MethodSpec.Builder createdMethodBuilder) {
// Do not init instance fields for abstract components
if (component.getModifiers().contains(Modifier.ABSTRACT)) {
return;
}
createdMethodBuilder.addStatement(
"$T.in... | public class class_name {
private void initFieldsValues(TypeElement component, MethodSpec.Builder createdMethodBuilder) {
// Do not init instance fields for abstract components
if (component.getModifiers().contains(Modifier.ABSTRACT)) {
return; // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public static <T> T fromJson(String json, Class<T> clazz) {
Objects.requireNonNull(json, Required.JSON.toString());
Objects.requireNonNull(clazz, Required.CLASS.toString());
T object = null;
try {
object = mapper.readValue(json, clazz);
... | public class class_name {
public static <T> T fromJson(String json, Class<T> clazz) {
Objects.requireNonNull(json, Required.JSON.toString());
Objects.requireNonNull(clazz, Required.CLASS.toString());
T object = null;
try {
object = mapper.readValue(json, clazz); // ... |
public class class_name {
@Override
public Activity getActivity() {
Context context = getContext();
if(context instanceof Activity) {
return (Activity) context;
}
return null;
} } | public class class_name {
@Override
public Activity getActivity() {
Context context = getContext();
if(context instanceof Activity) {
return (Activity) context; // depends on control dependency: [if], data = [none]
}
return null;
} } |
public class class_name {
private static void modifyAccountBySettingClient() {
try {
AccountUpdateResponse response = Account.updater()
.city("Test city")
.client(client)
.update();
System.out.println(response);
} catch (PlivoRestException | IOException e) {
e.printSta... | public class class_name {
private static void modifyAccountBySettingClient() {
try {
AccountUpdateResponse response = Account.updater()
.city("Test city")
.client(client)
.update();
System.out.println(response); // depends on control dependency: [try], data = [none]
} catch ... |
public class class_name {
public static ClassLoader getClassLoader(TypeToken<?> type) {
Set<ClassLoader> classLoaders = Sets.newIdentityHashSet();
// Breath first traversal into the Type.
Queue<TypeToken<?>> queue = Lists.newLinkedList();
queue.add(type);
while (!queue.isEmpty()) {
type = qu... | public class class_name {
public static ClassLoader getClassLoader(TypeToken<?> type) {
Set<ClassLoader> classLoaders = Sets.newIdentityHashSet();
// Breath first traversal into the Type.
Queue<TypeToken<?>> queue = Lists.newLinkedList();
queue.add(type);
while (!queue.isEmpty()) {
type = qu... |
public class class_name {
public static boolean isAsciiPrintable(String str) {
if (str == null) {
return false;
}
int sz = str.length();
for (int i = 0; i < sz; i++) {
if (CharUtils.isAsciiPrintable(str.charAt(i)) == false) {
return false;
... | public class class_name {
public static boolean isAsciiPrintable(String str) {
if (str == null) {
return false; // depends on control dependency: [if], data = [none]
}
int sz = str.length();
for (int i = 0; i < sz; i++) {
if (CharUtils.isAsciiPrintable(str.charAt... |
public class class_name {
protected void load()
{
Logger bootLogger = LoggerFactory.getBootLogger();
// first we check whether the system property
// org.apache.ojb.broker.util.logging.Logger
// is set (or its alias LoggerClass which is deprecated)
ClassLoader cont... | public class class_name {
protected void load()
{
Logger bootLogger = LoggerFactory.getBootLogger();
// first we check whether the system property
// org.apache.ojb.broker.util.logging.Logger
// is set (or its alias LoggerClass which is deprecated)
ClassLoader cont... |
public class class_name {
@Nullable
public static PaymentMethodNonce parsePaymentMethodNonces(JSONObject json, String type) throws JSONException {
switch (type) {
case CardNonce.TYPE:
if (json.has(CardNonce.API_RESOURCE_KEY) || json.has(CardNonce.DATA_KEY)) {
... | public class class_name {
@Nullable
public static PaymentMethodNonce parsePaymentMethodNonces(JSONObject json, String type) throws JSONException {
switch (type) {
case CardNonce.TYPE:
if (json.has(CardNonce.API_RESOURCE_KEY) || json.has(CardNonce.DATA_KEY)) {
... |
public class class_name {
public com.google.appengine.v1.ApiEndpointHandlerOrBuilder getApiEndpointOrBuilder() {
if (handlerTypeCase_ == 4) {
return (com.google.appengine.v1.ApiEndpointHandler) handlerType_;
}
return com.google.appengine.v1.ApiEndpointHandler.getDefaultInstance();
} } | public class class_name {
public com.google.appengine.v1.ApiEndpointHandlerOrBuilder getApiEndpointOrBuilder() {
if (handlerTypeCase_ == 4) {
return (com.google.appengine.v1.ApiEndpointHandler) handlerType_; // depends on control dependency: [if], data = [none]
}
return com.google.appengine.v1.ApiEn... |
public class class_name {
public void quitOpera() {
// running opera under the launcher
if (runner != null) {
if (runner.isOperaRunning() || runner.hasOperaCrashed()) {
// Cut off the services connection to free the port
getScopeServices().shutdown();
// Quit Opera
runner... | public class class_name {
public void quitOpera() {
// running opera under the launcher
if (runner != null) {
if (runner.isOperaRunning() || runner.hasOperaCrashed()) {
// Cut off the services connection to free the port
getScopeServices().shutdown(); // depends on control dependency: [if... |
public class class_name {
protected Level getDefaultLogLevel() {
String levelStr = getProperty(LOG_LEVEL);
Level level = null;
if (levelStr != null) {
level = Level.parse(levelStr);
}
if (level == null)
level = Level.INFO;
return level;
} } | public class class_name {
protected Level getDefaultLogLevel() {
String levelStr = getProperty(LOG_LEVEL);
Level level = null;
if (levelStr != null) {
level = Level.parse(levelStr); // depends on control dependency: [if], data = [(levelStr]
}
if (level == null)
level = Level.INFO;
return level;
} } |
public class class_name {
public static OrderBook adaptOrderBook(
CoinsuperResponse<CoinsuperOrderbook> coinsuperOrderbook, CurrencyPair currencyPair) {
List<LimitOrder> asks = new ArrayList<LimitOrder>();
List<LimitOrder> bids = new ArrayList<LimitOrder>();
for (Ask coinsuperAsk : coinsuperOrderboo... | public class class_name {
public static OrderBook adaptOrderBook(
CoinsuperResponse<CoinsuperOrderbook> coinsuperOrderbook, CurrencyPair currencyPair) {
List<LimitOrder> asks = new ArrayList<LimitOrder>();
List<LimitOrder> bids = new ArrayList<LimitOrder>();
for (Ask coinsuperAsk : coinsuperOrderboo... |
public class class_name {
public java.util.List<DescribeDBLogFilesDetails> getDescribeDBLogFiles() {
if (describeDBLogFiles == null) {
describeDBLogFiles = new com.amazonaws.internal.SdkInternalList<DescribeDBLogFilesDetails>();
}
return describeDBLogFiles;
} } | public class class_name {
public java.util.List<DescribeDBLogFilesDetails> getDescribeDBLogFiles() {
if (describeDBLogFiles == null) {
describeDBLogFiles = new com.amazonaws.internal.SdkInternalList<DescribeDBLogFilesDetails>(); // depends on control dependency: [if], data = [none]
}
... |
public class class_name {
public void check(String checkId, Status status, String note) {
final URI uri = createURI("/check/" + status.getUri() + "/" + checkId);
final HTTP.Response httpResponse = Str.isEmpty(note) ? HTTP.getResponse(uri.toString()) :
HTTP.getResponse(uri.toString() +... | public class class_name {
public void check(String checkId, Status status, String note) {
final URI uri = createURI("/check/" + status.getUri() + "/" + checkId);
final HTTP.Response httpResponse = Str.isEmpty(note) ? HTTP.getResponse(uri.toString()) :
HTTP.getResponse(uri.toString() +... |
public class class_name {
protected void skipInternalSubset()
throws XMLStreamException
{
while (true) {
int i = getNextAfterWS();
if (i < 0) {
// Error for internal subset
throwUnexpectedEOF(SUFFIX_IN_DTD_INTERNAL);
}
... | public class class_name {
protected void skipInternalSubset()
throws XMLStreamException
{
while (true) {
int i = getNextAfterWS();
if (i < 0) {
// Error for internal subset
throwUnexpectedEOF(SUFFIX_IN_DTD_INTERNAL); // depends on control depe... |
public class class_name {
@Override
public String getExtension() {
// some strings you just can't help
if(this.path == null || this.path.isEmpty()) {
return "";
}
// chop string
String ext = this.path.substring(this.path.lastIndexOf('.')+1);
// return
return ext;
} } | public class class_name {
@Override
public String getExtension() {
// some strings you just can't help
if(this.path == null || this.path.isEmpty()) {
return ""; // depends on control dependency: [if], data = [none]
}
// chop string
String ext = this.path.substring(this.path.lastIndexOf('.')+1);
// retu... |
public class class_name {
@RequestMapping(value = "/userSession", method = RequestMethod.GET)
@ResponseBody
public JsonObject<?> session(HttpServletRequest request) {
JsonObject<?> ret = JsonObject.create();
String cookieValueUsername = CookieUtils.getCookieValue(request,
UserWe... | public class class_name {
@RequestMapping(value = "/userSession", method = RequestMethod.GET)
@ResponseBody
public JsonObject<?> session(HttpServletRequest request) {
JsonObject<?> ret = JsonObject.create();
String cookieValueUsername = CookieUtils.getCookieValue(request,
UserWe... |
public class class_name {
public Observable<ServiceResponse<List<IntentClassifier>>> listCustomPrebuiltIntentsWithServiceResponseAsync(UUID appId, String versionId) {
if (this.client.endpoint() == null) {
throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be... | public class class_name {
public Observable<ServiceResponse<List<IntentClassifier>>> listCustomPrebuiltIntentsWithServiceResponseAsync(UUID appId, String versionId) {
if (this.client.endpoint() == null) {
throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be... |
public class class_name {
private boolean isRetryable(SdkBaseException e) {
if (e.getCause() instanceof IOException) {
return true;
} else if (e instanceof HttpException) {
// Only retry on 500s.
return ((HttpException) e).getStatusCode() / 100 == 5;
} else {... | public class class_name {
private boolean isRetryable(SdkBaseException e) {
if (e.getCause() instanceof IOException) {
return true; // depends on control dependency: [if], data = [none]
} else if (e instanceof HttpException) {
// Only retry on 500s.
return ((HttpExce... |
public class class_name {
public final void loadWorkSheet(final String tabName) {
prepareWorkShee(tabName);
parent.getValidationHandler().validateCurrentPage();
createDynamicColumns(tabName);
// reset datatable current page to 1
setDataTablePage(0);
parent.getCurrent().setCurrentDataContextName(nul... | public class class_name {
public final void loadWorkSheet(final String tabName) {
prepareWorkShee(tabName);
parent.getValidationHandler().validateCurrentPage();
createDynamicColumns(tabName);
// reset datatable current page to 1
setDataTablePage(0);
parent.getCurrent().setCurrentDataContextName(nul... |
public class class_name {
@Override
public CommerceSubscriptionEntry fetchBySubscriptionStatus_Last(
int subscriptionStatus,
OrderByComparator<CommerceSubscriptionEntry> orderByComparator) {
int count = countBySubscriptionStatus(subscriptionStatus);
if (count == 0) {
return null;
}
List<CommerceSubsc... | public class class_name {
@Override
public CommerceSubscriptionEntry fetchBySubscriptionStatus_Last(
int subscriptionStatus,
OrderByComparator<CommerceSubscriptionEntry> orderByComparator) {
int count = countBySubscriptionStatus(subscriptionStatus);
if (count == 0) {
return null; // depends on control dep... |
public class class_name {
private List<ReportRecord> inMemoryPagination(final List<ReportRecord> recordList, QueryParameterEnvelope queryParameterEnvelope) {
final QueryParameterAware pageSize = queryParameterEnvelope.getPageSize();
final QueryParameterAware pageNumber = queryParameterEnvelope.getPageN... | public class class_name {
private List<ReportRecord> inMemoryPagination(final List<ReportRecord> recordList, QueryParameterEnvelope queryParameterEnvelope) {
final QueryParameterAware pageSize = queryParameterEnvelope.getPageSize();
final QueryParameterAware pageNumber = queryParameterEnvelope.getPageN... |
public class class_name {
public List<Map<String, String>> pipelinePossibleStates(NWiseAction action, List<Map<String, String>> possibleStateList) {
String[] coVariables = action.getCoVariables().split(",");
int n = Integer.valueOf(action.getN());
List<Map<String, String>> newPossibleStateL... | public class class_name {
public List<Map<String, String>> pipelinePossibleStates(NWiseAction action, List<Map<String, String>> possibleStateList) {
String[] coVariables = action.getCoVariables().split(",");
int n = Integer.valueOf(action.getN());
List<Map<String, String>> newPossibleStateL... |
public class class_name {
@Deprecated
public static boolean writeObjectIfChanged(Object obj, String filepath) {
try {
return writeObjectIfChangedOrDie(obj, filepath, LOGGER);
} catch (Exception e) {
LOGGER.error(e.getClass() + ": writeObjectIfChanged(" + filepath + ") e... | public class class_name {
@Deprecated
public static boolean writeObjectIfChanged(Object obj, String filepath) {
try {
return writeObjectIfChangedOrDie(obj, filepath, LOGGER);
// depends on control dependency: [try], data = [none]
} catch (Exception e) {
LOGGER.error(e.g... |
public class class_name {
public ProcessDefinitionEntity parseProcess(Element processElement) {
// reset all mappings that are related to one process definition
sequenceFlows = new HashMap<String, TransitionImpl>();
ProcessDefinitionEntity processDefinition = new ProcessDefinitionEntity();
/*
* ... | public class class_name {
public ProcessDefinitionEntity parseProcess(Element processElement) {
// reset all mappings that are related to one process definition
sequenceFlows = new HashMap<String, TransitionImpl>();
ProcessDefinitionEntity processDefinition = new ProcessDefinitionEntity();
/*
* ... |
public class class_name {
public int[] add(int[] p, int[] q) {
int len = Math.max(p.length, q.length);
int[] result = new int[len];
for (int i = 0; i < len; i++) {
if (i < p.length && i < q.length) {
result[i] = add(p[i], q[i]);
} else if (i < p.length) {
result[i] = p[i];
... | public class class_name {
public int[] add(int[] p, int[] q) {
int len = Math.max(p.length, q.length);
int[] result = new int[len];
for (int i = 0; i < len; i++) {
if (i < p.length && i < q.length) {
result[i] = add(p[i], q[i]); // depends on control dependency: [if], data = [none]
} el... |
public class class_name {
private void _buildLimit(
final Limit limit,
final StringBuilder stmt
)
{
if (limit == null) {
return;
}
stmt.append( _LIMIT_ );
stmt.append( limit.getCount() );
stmt.append( _... | public class class_name {
private void _buildLimit(
final Limit limit,
final StringBuilder stmt
)
{
if (limit == null) {
return; // depends on control dependency: [if], data = [none]
}
stmt.append( _LIMIT_ );
s... |
public class class_name {
private void exportSchema(PrintWriter out) {
List<String> indexes = exportIndexes();
if (indexes.isEmpty() && artificialUniques == 0) return;
begin(out);
for (String index : indexes) {
out.println(index);
}
if (artificialUniques > 0)... | public class class_name {
private void exportSchema(PrintWriter out) {
List<String> indexes = exportIndexes();
if (indexes.isEmpty() && artificialUniques == 0) return;
begin(out);
for (String index : indexes) {
out.println(index); // depends on control dependency: [for], dat... |
public class class_name {
public void registerBall(final BallModel ballModel) {
if (!this.ballMap.containsKey(ballModel.getEventModel().target())) {
this.ballMap.put(ballModel.getEventModel().target(), ballModel);
view().getPanel().getChildren().add(ballModel.node());
}
} } | public class class_name {
public void registerBall(final BallModel ballModel) {
if (!this.ballMap.containsKey(ballModel.getEventModel().target())) {
this.ballMap.put(ballModel.getEventModel().target(), ballModel); // depends on control dependency: [if], data = [none]
view().getPanel().g... |
public class class_name {
public void setHostHeader(String newHost, int id) {
PreparedStatement statement = null;
try (Connection sqlConnection = sqlService.getConnection()) {
statement = sqlConnection.prepareStatement(
"UPDATE " + Constants.DB_TABLE_SERVERS +
... | public class class_name {
public void setHostHeader(String newHost, int id) {
PreparedStatement statement = null;
try (Connection sqlConnection = sqlService.getConnection()) {
statement = sqlConnection.prepareStatement(
"UPDATE " + Constants.DB_TABLE_SERVERS +
... |
public class class_name {
public double[][] diff_y(double maty[][]) {
mat3 = new double[width][height];
double mat1, mat2;
for (int i = 0; i < width; i++) {
for (int j = 0; j < height; j++) {
if (i == 0) {
mat1 = maty[i][j];
ma... | public class class_name {
public double[][] diff_y(double maty[][]) {
mat3 = new double[width][height];
double mat1, mat2;
for (int i = 0; i < width; i++) {
for (int j = 0; j < height; j++) {
if (i == 0) {
mat1 = maty[i][j]; // depends on control ... |
public class class_name {
public void drawFrame(int textureId, float[] texMatrix) {
// Use the identity matrix for MVP so our 2x2 FULL_RECTANGLE covers the viewport.
synchronized (mDrawLock) {
if (mCorrectVerticalVideo && !mScaleToFit && (requestedOrientation == SCREEN_ROTATION.VERTICAL || ... | public class class_name {
public void drawFrame(int textureId, float[] texMatrix) {
// Use the identity matrix for MVP so our 2x2 FULL_RECTANGLE covers the viewport.
synchronized (mDrawLock) {
if (mCorrectVerticalVideo && !mScaleToFit && (requestedOrientation == SCREEN_ROTATION.VERTICAL || ... |
public class class_name {
public int getProperty(String name) {
checkNotNull(name);
try {
// tty properties are cached so we don't have to worry too much about getting term widht/height
if (config == null || System.currentTimeMillis() - configLastFetched > 1000 ) {
... | public class class_name {
public int getProperty(String name) {
checkNotNull(name);
try {
// tty properties are cached so we don't have to worry too much about getting term widht/height
if (config == null || System.currentTimeMillis() - configLastFetched > 1000 ) {
... |
public class class_name {
private static int partition(int[] intArray, int start, int end) {
int pivot = intArray[end];
int index = start - 1;
for(int j = start; j < end; j++) {
if(intArray[j] <= pivot) {
index++;
XORSwap.swap(intArray, index... | public class class_name {
private static int partition(int[] intArray, int start, int end) {
int pivot = intArray[end];
int index = start - 1;
for(int j = start; j < end; j++) {
if(intArray[j] <= pivot) {
index++; // depends on control dependency: [if], data... |
public class class_name {
private static void addOrderPossiblyNested(CriteriaQuery query,
From queryRoot,
CriteriaBuilder criteriaBuilder,
PersistentEntity entity,
... | public class class_name {
private static void addOrderPossiblyNested(CriteriaQuery query,
From queryRoot,
CriteriaBuilder criteriaBuilder,
PersistentEntity entity,
... |
public class class_name {
public static StunMessage decode(byte binMessage[], char offset, char arrayLen) throws StunException {
int originalOffset = offset;
arrayLen = (char) Math.min(binMessage.length, arrayLen);
if (binMessage == null || arrayLen - offset < StunMessage.HEADER_LENGTH) {
throw new StunExcep... | public class class_name {
public static StunMessage decode(byte binMessage[], char offset, char arrayLen) throws StunException {
int originalOffset = offset;
arrayLen = (char) Math.min(binMessage.length, arrayLen);
if (binMessage == null || arrayLen - offset < StunMessage.HEADER_LENGTH) {
throw new StunExcep... |
public class class_name {
@Override
public int compareTo(Timestamp other) {
if (unixSec < other.unixSec) {
return -1;
} else if (unixSec == other.unixSec) {
if (nanoSec < other.nanoSec) {
return -1;
} else if (nanoSec == other.nanoSec) {
... | public class class_name {
@Override
public int compareTo(Timestamp other) {
if (unixSec < other.unixSec) {
return -1;
// depends on control dependency: [if], data = [none]
} else if (unixSec == other.unixSec) {
if (nanoSec < other.nanoSec) {
return -1;
// dep... |
public class class_name {
public static RuntimeException wrapOrThrow(Throwable error) {
if (error instanceof Error) {
throw (Error)error;
}
if (error instanceof RuntimeException) {
return (RuntimeException)error;
}
return new RuntimeException(error);
... | public class class_name {
public static RuntimeException wrapOrThrow(Throwable error) {
if (error instanceof Error) {
throw (Error)error;
}
if (error instanceof RuntimeException) {
return (RuntimeException)error; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public Map/*<Signature, Signature>*/resolveAll() {
Map resolved = new HashMap();
for (Iterator entryIter = declToBridge.entrySet().iterator(); entryIter.hasNext(); ) {
Map.Entry entry = (Map.Entry) entryIter.next();
Class owner = (Class) entry.getKey();... | public class class_name {
public Map/*<Signature, Signature>*/resolveAll() {
Map resolved = new HashMap();
for (Iterator entryIter = declToBridge.entrySet().iterator(); entryIter.hasNext(); ) {
Map.Entry entry = (Map.Entry) entryIter.next();
Class owner = (Class) entry.getKey();... |
public class class_name {
public Container lazyOR(Container x) {
if (this instanceof ArrayContainer) {
if (x instanceof ArrayContainer) {
return ((ArrayContainer)this).lazyor((ArrayContainer) x);
} else if (x instanceof BitmapContainer) {
return ((BitmapContainer) x).lazyor((ArrayContai... | public class class_name {
public Container lazyOR(Container x) {
if (this instanceof ArrayContainer) {
if (x instanceof ArrayContainer) {
return ((ArrayContainer)this).lazyor((ArrayContainer) x); // depends on control dependency: [if], data = [none]
} else if (x instanceof BitmapContainer) {
... |
public class class_name {
public static int parseNumber(String value) {
int k = 1;
int n = 0;
for (int i = value.length() - 1; i >= 0; i--) {
char ch = value.charAt(i);
if (Character.isDigit(ch) == false) {
break;
}
n += (ch - '0')... | public class class_name {
public static int parseNumber(String value) {
int k = 1;
int n = 0;
for (int i = value.length() - 1; i >= 0; i--) {
char ch = value.charAt(i);
if (Character.isDigit(ch) == false) {
break;
}
n += (ch - '0')... |
public class class_name {
private boolean isApplicationError(Throwable rootEx, String pkgRoot) {
if (rootEx != null) {
StackTraceElement[] stackTrace = rootEx.getStackTrace();
if (stackTrace != null && stackTrace.length > 0) {
StackTraceElement rootThrower = sta... | public class class_name {
private boolean isApplicationError(Throwable rootEx, String pkgRoot) {
if (rootEx != null) {
StackTraceElement[] stackTrace = rootEx.getStackTrace();
if (stackTrace != null && stackTrace.length > 0) {
StackTraceElement rootThrower = sta... |
public class class_name {
public static double calculateScore(FlatDataList errorList) {
double DWdeltasquare=0;
double DWetsquare=0;
int n = errorList.size();
for(int i=0;i<n;++i) {
Double error = errorList.getDouble(i);
if(i>=1) {
Double errorPr... | public class class_name {
public static double calculateScore(FlatDataList errorList) {
double DWdeltasquare=0;
double DWetsquare=0;
int n = errorList.size();
for(int i=0;i<n;++i) {
Double error = errorList.getDouble(i);
if(i>=1) {
Double errorPr... |
public class class_name {
private void fireProcessAnnotatedType(ProcessAnnotatedTypeImpl<?> event, BeanManagerImpl beanManager) {
final Resolvable resolvable = ProcessAnnotatedTypeEventResolvable.of(event, discovery);
try {
beanManager.getGlobalLenientObserverNotifier().fireEvent(event, res... | public class class_name {
private void fireProcessAnnotatedType(ProcessAnnotatedTypeImpl<?> event, BeanManagerImpl beanManager) {
final Resolvable resolvable = ProcessAnnotatedTypeEventResolvable.of(event, discovery);
try {
beanManager.getGlobalLenientObserverNotifier().fireEvent(event, res... |
public class class_name {
public void read(final long address, final byte[] data) throws Exception {
if (data.length % getBlockSize() != 0) {
throw new IllegalArgumentException(
"Number of bytes is not a multiple of the blocksize!");
}
final long extentSize = d... | public class class_name {
public void read(final long address, final byte[] data) throws Exception {
if (data.length % getBlockSize() != 0) {
throw new IllegalArgumentException(
"Number of bytes is not a multiple of the blocksize!");
}
final long extentSize = d... |
public class class_name {
public static List<Expression> transformArgsToList(String operator, Val<Expression>[] args) {
List<Expression> et = Lists.newArrayListWithCapacity(args.length);
for (Val<Expression> e : args) {
if (e.object() instanceof Expression) {
et.add(e.expr()... | public class class_name {
public static List<Expression> transformArgsToList(String operator, Val<Expression>[] args) {
List<Expression> et = Lists.newArrayListWithCapacity(args.length);
for (Val<Expression> e : args) {
if (e.object() instanceof Expression) {
et.add(e.expr()... |
public class class_name {
static PhynixxXADataRecorder recoverDataRecorder(XADataLogger xaDataLogger, IXADataRecorderLifecycleListener dataRecorderLifycycleListner) {
try {
PhynixxXADataRecorder dataRecorder = new PhynixxXADataRecorder(-1, xaDataLogger, dataRecorderLifycycleListner);
da... | public class class_name {
static PhynixxXADataRecorder recoverDataRecorder(XADataLogger xaDataLogger, IXADataRecorderLifecycleListener dataRecorderLifycycleListner) {
try {
PhynixxXADataRecorder dataRecorder = new PhynixxXADataRecorder(-1, xaDataLogger, dataRecorderLifycycleListner);
da... |
public class class_name {
public String print(ReadableInstant instant) {
StringBuilder buf = new StringBuilder(requirePrinter().estimatePrintedLength());
try {
printTo((Appendable) buf, instant);
} catch (IOException ex) {
// StringBuilder does not throw IOException
... | public class class_name {
public String print(ReadableInstant instant) {
StringBuilder buf = new StringBuilder(requirePrinter().estimatePrintedLength());
try {
printTo((Appendable) buf, instant); // depends on control dependency: [try], data = [none]
} catch (IOException ex) {
... |
public class class_name {
public static GuacamoleConfiguration getConfiguration(String uri)
throws GuacamoleException {
// Parse the provided String into a URI object.
URI qcUri;
try {
qcUri = new URI(uri);
if (!qcUri.isAbsolute())
throw new ... | public class class_name {
public static GuacamoleConfiguration getConfiguration(String uri)
throws GuacamoleException {
// Parse the provided String into a URI object.
URI qcUri;
try {
qcUri = new URI(uri);
if (!qcUri.isAbsolute())
throw new ... |
public class class_name {
private String getCData(final Node n) {
StringBuffer buf = new StringBuffer();
NodeList nl = n.getChildNodes();
for (int x = 0; x < nl.getLength(); x++) {
Node innerNode = nl.item(x);
if (
(innerNode.getNodeType() == Node.TEXT_NODE)
|| (innerNode.ge... | public class class_name {
private String getCData(final Node n) {
StringBuffer buf = new StringBuffer();
NodeList nl = n.getChildNodes();
for (int x = 0; x < nl.getLength(); x++) {
Node innerNode = nl.item(x);
if (
(innerNode.getNodeType() == Node.TEXT_NODE)
|| (innerNode.ge... |
public class class_name {
public Observable<ServiceResponse<JobExecutionInner>> beginCreateWithServiceResponseAsync(String resourceGroupName, String serverName, String jobAgentName, String jobName) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName is... | public class class_name {
public Observable<ServiceResponse<JobExecutionInner>> beginCreateWithServiceResponseAsync(String resourceGroupName, String serverName, String jobAgentName, String jobName) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName is... |
public class class_name {
public void close()
throws SIResourceException, SIConnectionLostException,
SIErrorException, SIConnectionDroppedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "close");
// Have we already been closed... | public class class_name {
public void close()
throws SIResourceException, SIConnectionLostException,
SIErrorException, SIConnectionDroppedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "close");
// Have we already been closed... |
public class class_name {
public Request createGetRequest(String url, String commonKey, String[] values, String apiKey, String accessToken) {
HttpUrl.Builder httpBuilder = HttpUrl.parse(url).newBuilder();
for(int i = 0; i < values.length; i++) {
httpBuilder.addQueryParameter(commonKey, valu... | public class class_name {
public Request createGetRequest(String url, String commonKey, String[] values, String apiKey, String accessToken) {
HttpUrl.Builder httpBuilder = HttpUrl.parse(url).newBuilder();
for(int i = 0; i < values.length; i++) {
httpBuilder.addQueryParameter(commonKey, valu... |
public class class_name {
public static void addEquals(DMatrixD1 a , double beta, DMatrixD1 b )
{
if( a.numCols != b.numCols || a.numRows != b.numRows ) {
throw new MatrixDimensionException("The 'a' and 'b' matrices do not have compatible dimensions");
}
final int length = a.ge... | public class class_name {
public static void addEquals(DMatrixD1 a , double beta, DMatrixD1 b )
{
if( a.numCols != b.numCols || a.numRows != b.numRows ) {
throw new MatrixDimensionException("The 'a' and 'b' matrices do not have compatible dimensions");
}
final int length = a.ge... |
public class class_name {
@Override
public boolean matches(T member) {
String name = member.getName();
if(names.contains(name)) {
return true;
}
names.add(name);
return false;
} } | public class class_name {
@Override
public boolean matches(T member) {
String name = member.getName();
if(names.contains(name)) {
return true; // depends on control dependency: [if], data = [none]
}
names.add(name);
return false;
} } |
public class class_name {
private void read() {
// define the specification format
final int key = 0;
final int description = 1;
final int offset = 2;
final int length = 3;
SpecificationFormat format = new SpecificationFormat(key, description,
offset, len... | public class class_name {
private void read() {
// define the specification format
final int key = 0;
final int description = 1;
final int offset = 2;
final int length = 3;
SpecificationFormat format = new SpecificationFormat(key, description,
offset, len... |
public class class_name {
@Override
protected void onPersist(EntityMetadata entityMetadata, Object entity, Object id, List<RelationHolder> rlHolders)
{
HttpResponse response = null;
try
{
JsonObject object = CouchDBObjectMapper.getJsonOfEntity(entityMetadata, entity, id, rlH... | public class class_name {
@Override
protected void onPersist(EntityMetadata entityMetadata, Object entity, Object id, List<RelationHolder> rlHolders)
{
HttpResponse response = null;
try
{
JsonObject object = CouchDBObjectMapper.getJsonOfEntity(entityMetadata, entity, id, rlH... |
public class class_name {
public static float[] floatArrayWrappedOrCopy(CollectionNumber coll) {
float[] array = wrappedFloatArray(coll);
if (array != null) {
return array;
}
return floatArrayCopyOf(coll);
} } | public class class_name {
public static float[] floatArrayWrappedOrCopy(CollectionNumber coll) {
float[] array = wrappedFloatArray(coll);
if (array != null) {
return array;
// depends on control dependency: [if], data = [none]
}
return floatArrayCopyOf(coll);
} } |
public class class_name {
void stat(char[] fmt, String src) throws IOException {
Path srcPath = new Path(src);
FileSystem srcFs = srcPath.getFileSystem(getConf());
FileStatus glob[] = srcFs.globStatus(srcPath);
if (null == glob)
throw new IOException("cannot stat `" + src + "': No such file or di... | public class class_name {
void stat(char[] fmt, String src) throws IOException {
Path srcPath = new Path(src);
FileSystem srcFs = srcPath.getFileSystem(getConf());
FileStatus glob[] = srcFs.globStatus(srcPath);
if (null == glob)
throw new IOException("cannot stat `" + src + "': No such file or di... |
public class class_name {
public static String underlineToCamel(String param) {
if (isEmpty(param.trim())) {
return "";
}
StringBuilder sb = new StringBuilder(param);
Matcher mc = Pattern.compile(UNDERLINE).matcher(param);
int i = 0;
while (mc.find()) {
... | public class class_name {
public static String underlineToCamel(String param) {
if (isEmpty(param.trim())) {
return ""; // depends on control dependency: [if], data = [none]
}
StringBuilder sb = new StringBuilder(param);
Matcher mc = Pattern.compile(UNDERLINE).matcher(param)... |
public class class_name {
protected boolean isGetClassOnTypeLiteral() {
JvmIdentifiableElement feature = getFeature();
if (isGetClass(feature)) {
XExpression receiver = getSyntacticReceiver();
if (receiver instanceof XAbstractFeatureCall) {
IFeatureLinkingCandidate linkingCandidate = getState().getResolv... | public class class_name {
protected boolean isGetClassOnTypeLiteral() {
JvmIdentifiableElement feature = getFeature();
if (isGetClass(feature)) {
XExpression receiver = getSyntacticReceiver();
if (receiver instanceof XAbstractFeatureCall) {
IFeatureLinkingCandidate linkingCandidate = getState().getResolv... |
public class class_name {
public void marshall(LabelingJobResourceConfig labelingJobResourceConfig, ProtocolMarshaller protocolMarshaller) {
if (labelingJobResourceConfig == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
proto... | public class class_name {
public void marshall(LabelingJobResourceConfig labelingJobResourceConfig, ProtocolMarshaller protocolMarshaller) {
if (labelingJobResourceConfig == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
proto... |
public class class_name {
protected boolean isHideButtonAdvanced() {
I_CmsDialogHandler handler = OpenCms.getWorkplaceManager().getDialogHandler(getDialogHandler());
CmsParameterConfiguration handlerParams = handler.getConfiguration();
if ((handlerParams != null) && handlerParams.containsKey(P... | public class class_name {
protected boolean isHideButtonAdvanced() {
I_CmsDialogHandler handler = OpenCms.getWorkplaceManager().getDialogHandler(getDialogHandler());
CmsParameterConfiguration handlerParams = handler.getConfiguration();
if ((handlerParams != null) && handlerParams.containsKey(P... |
public class class_name {
public ListDomainsResult withDomainNames(String... domainNames) {
if (this.domainNames == null) {
setDomainNames(new com.amazonaws.internal.SdkInternalList<String>(domainNames.length));
}
for (String ele : domainNames) {
this.domainNames.add(ele... | public class class_name {
public ListDomainsResult withDomainNames(String... domainNames) {
if (this.domainNames == null) {
setDomainNames(new com.amazonaws.internal.SdkInternalList<String>(domainNames.length)); // depends on control dependency: [if], data = [none]
}
for (String ele... |
public class class_name {
public String buildView() {
final StringBuilder sb = new StringBuilder();
final ConnectionPool[] pools = ContainerUtil.searchComponentsAll(ConnectionPool.class); // plural if e.g. master/slave
boolean firstDone = false;
for (ConnectionPool pool : pools) {
... | public class class_name {
public String buildView() {
final StringBuilder sb = new StringBuilder();
final ConnectionPool[] pools = ContainerUtil.searchComponentsAll(ConnectionPool.class); // plural if e.g. master/slave
boolean firstDone = false;
for (ConnectionPool pool : pools) {
... |
public class class_name {
@Override
public void registerPropertyMatcher(PropertyMatcher<?> propertyMatcher) {
if (propertyMatcher.getPathProvider() == null) {
propertyMatcher.setPathProvider(this);
}
propertyMatcherList.add(propertyMatcher);
} } | public class class_name {
@Override
public void registerPropertyMatcher(PropertyMatcher<?> propertyMatcher) {
if (propertyMatcher.getPathProvider() == null) {
propertyMatcher.setPathProvider(this); // depends on control dependency: [if], data = [none]
}
propertyMatcherList.add(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.