code stringlengths 130 281k | code_dependency stringlengths 182 306k |
|---|---|
public class class_name {
protected boolean isOneShotQuery(CachedQuery cachedQuery) {
if (cachedQuery == null) {
return true;
}
cachedQuery.increaseExecuteCount();
if ((mPrepareThreshold == 0 || cachedQuery.getExecuteCount() < mPrepareThreshold)
&& !getForceBinaryTransfer()) {
retur... | public class class_name {
protected boolean isOneShotQuery(CachedQuery cachedQuery) {
if (cachedQuery == null) {
return true; // depends on control dependency: [if], data = [none]
}
cachedQuery.increaseExecuteCount();
if ((mPrepareThreshold == 0 || cachedQuery.getExecuteCount() < mPrepareThreshol... |
public class class_name {
public static int parse(String duration) {
if (StringUtil.blank(duration)) return 1800;
int lastChar = duration.length()-1;
char suffix = duration.charAt(lastChar);
try {
int value = Integer.parseInt(duration.substring(0, ... | public class class_name {
public static int parse(String duration) {
if (StringUtil.blank(duration)) return 1800;
int lastChar = duration.length()-1;
char suffix = duration.charAt(lastChar);
try {
int value = Integer.parseInt(duration.substring(0, ... |
public class class_name {
private NumberSelectionResult findByNumber(List<String> numberQueries,
Sid sourceOrganizationSid, Sid destinationOrganizationSid, Set<SearchModifier> modifiers) {
Boolean orgFiltered = false;
NumberSelectionResult matchedNumber = new NumberSelectionResult(null, org... | public class class_name {
private NumberSelectionResult findByNumber(List<String> numberQueries,
Sid sourceOrganizationSid, Sid destinationOrganizationSid, Set<SearchModifier> modifiers) {
Boolean orgFiltered = false;
NumberSelectionResult matchedNumber = new NumberSelectionResult(null, org... |
public class class_name {
public ModelNodeFormBuilder requiresAtLeastOne(String... attributeName) {
if (attributeName != null && attributeName.length != 0) {
this.requiresAtLeastOne.addAll(asList(attributeName));
}
return this;
} } | public class class_name {
public ModelNodeFormBuilder requiresAtLeastOne(String... attributeName) {
if (attributeName != null && attributeName.length != 0) {
this.requiresAtLeastOne.addAll(asList(attributeName)); // depends on control dependency: [if], data = [(attributeName]
}
retu... |
public class class_name {
public double set(long index, double value) {
compact();
int i = findIndexMatching(index);
if(i < 0) {
add(index, value);
compacted = false;
return 0;
} else {
double old = vals[i];
vals[i] = value;
... | public class class_name {
public double set(long index, double value) {
compact();
int i = findIndexMatching(index);
if(i < 0) {
add(index, value); // depends on control dependency: [if], data = [(i]
compacted = false; // depends on control dependency: [if], data = [none... |
public class class_name {
public boolean setAppVar(final String name, final String val,
final HashMap<String, String> appVars) {
if (val == null) {
appVars.remove(name);
return true;
}
if (appVars.size() > maxAppVars) {
return false;
}
appVars.put(name... | public class class_name {
public boolean setAppVar(final String name, final String val,
final HashMap<String, String> appVars) {
if (val == null) {
appVars.remove(name); // depends on control dependency: [if], data = [none]
return true; // depends on control dependency: [if],... |
public class class_name {
protected void processReader(IModule module, ModuleBuildReader reader) throws IOException {
// Add the cache key generator list to the result list
List<ICacheKeyGenerator> keyGenList = reader.getCacheKeyGenerators();
if (keyGenList != null) {
keyGens.addAll(keyGenList);
}
i... | public class class_name {
protected void processReader(IModule module, ModuleBuildReader reader) throws IOException {
// Add the cache key generator list to the result list
List<ICacheKeyGenerator> keyGenList = reader.getCacheKeyGenerators();
if (keyGenList != null) {
keyGens.addAll(keyGenList);
}
i... |
public class class_name {
private void init(Configuration cfg) throws IOException {
Settings settings = HadoopSettingsManager.loadFrom(cfg);
Assert.hasText(settings.getResourceWrite(), String.format("No resource ['%s'] (index/query/location) specified", ES_RESOURCE));
// Need to discover the E... | public class class_name {
private void init(Configuration cfg) throws IOException {
Settings settings = HadoopSettingsManager.loadFrom(cfg);
Assert.hasText(settings.getResourceWrite(), String.format("No resource ['%s'] (index/query/location) specified", ES_RESOURCE));
// Need to discover the E... |
public class class_name {
public EClass getLNC() {
if (lncEClass == null) {
lncEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(285);
}
return lncEClass;
} } | public class class_name {
public EClass getLNC() {
if (lncEClass == null) {
lncEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(285); // depends on control dependency: [if], data = [none]
}
return lncEClass;
} } |
public class class_name {
private List<String> removeSeLionArgumentsAndValues(List<String> args) {
// assume all of the ProcessLauncherConfiguration and LauncherConfiguration arguments should not be forwarded
Set<Field> fields = new HashSet<>();
fields.addAll(Arrays.asList(ProcessLauncherConfig... | public class class_name {
private List<String> removeSeLionArgumentsAndValues(List<String> args) {
// assume all of the ProcessLauncherConfiguration and LauncherConfiguration arguments should not be forwarded
Set<Field> fields = new HashSet<>();
fields.addAll(Arrays.asList(ProcessLauncherConfig... |
public class class_name {
public static void serverSend(NettyHttpResponse response, Throwable throwable) {
try {
SofaRequest sofaRequest = new SofaRequest();
SofaResponse sofaResponse = new SofaResponse();
if (response == null) {
sofaResponse.setErrorMsg("re... | public class class_name {
public static void serverSend(NettyHttpResponse response, Throwable throwable) {
try {
SofaRequest sofaRequest = new SofaRequest();
SofaResponse sofaResponse = new SofaResponse();
if (response == null) {
sofaResponse.setErrorMsg("re... |
public class class_name {
public static <V> Set<V> getIncomingVertices(DirectedGraph<V, DefaultEdge> graph, V target) {
Set<DefaultEdge> edges = graph.incomingEdgesOf(target);
Set<V> sources = new LinkedHashSet<V>();
for (DefaultEdge edge : edges) {
sources.add(graph.getEdgeSource(e... | public class class_name {
public static <V> Set<V> getIncomingVertices(DirectedGraph<V, DefaultEdge> graph, V target) {
Set<DefaultEdge> edges = graph.incomingEdgesOf(target);
Set<V> sources = new LinkedHashSet<V>();
for (DefaultEdge edge : edges) {
sources.add(graph.getEdgeSource(e... |
public class class_name {
public void learnAndSave() {
System.out.println("======== Learning Classifier");
// Either load pre-computed words or compute the words from the training images
AssignCluster<double[]> assignment;
if( new File(CLUSTER_FILE_NAME).exists() ) {
assignment = UtilIO.load(CLUSTER_FILE_N... | public class class_name {
public void learnAndSave() {
System.out.println("======== Learning Classifier");
// Either load pre-computed words or compute the words from the training images
AssignCluster<double[]> assignment;
if( new File(CLUSTER_FILE_NAME).exists() ) {
assignment = UtilIO.load(CLUSTER_FILE_N... |
public class class_name {
private synchronized ReceiveAllowedThread getReceiveAllowedThread(DestinationHandler destinationHandler)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getReceiveAllowedThread", destinationHandler);
if (_receiveAllowedThrea... | public class class_name {
private synchronized ReceiveAllowedThread getReceiveAllowedThread(DestinationHandler destinationHandler)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getReceiveAllowedThread", destinationHandler);
if (_receiveAllowedThrea... |
public class class_name {
private String limitStringLength(String str) {
if (str.length() > MAX_STRING_LENGTH) {
str = str.substring(0, MAX_STRING_LENGTH) + " ...";
}
return str;
} } | public class class_name {
private String limitStringLength(String str) {
if (str.length() > MAX_STRING_LENGTH) {
str = str.substring(0, MAX_STRING_LENGTH) + " ..."; // depends on control dependency: [if], data = [MAX_STRING_LENGTH)]
}
return str;
} } |
public class class_name {
public Properties getLables(JKLocale locale) {
Properties properties = lables.get(locale);
if (properties == null) {
properties = new Properties();
lables.put(locale, properties);
}
return properties;
} } | public class class_name {
public Properties getLables(JKLocale locale) {
Properties properties = lables.get(locale);
if (properties == null) {
properties = new Properties();
// depends on control dependency: [if], data = [none]
lables.put(locale, properties);
// depends on control dependency: [if], data... |
public class class_name {
Env<AttrContext> methodEnv(JCMethodDecl tree, Env<AttrContext> env) {
Env<AttrContext> localEnv =
env.dup(tree, env.info.dup(env.info.scope.dupUnshared(tree.sym)));
localEnv.enclMethod = tree;
if (tree.sym.type != null) {
//when this is called i... | public class class_name {
Env<AttrContext> methodEnv(JCMethodDecl tree, Env<AttrContext> env) {
Env<AttrContext> localEnv =
env.dup(tree, env.info.dup(env.info.scope.dupUnshared(tree.sym)));
localEnv.enclMethod = tree;
if (tree.sym.type != null) {
//when this is called i... |
public class class_name {
public void addListener(UpdateCheckListener newListener) {
if (newListener == null) {
throw new IllegalArgumentException("newListener");
}
GatewayVersion latestGatewayVersion = getLatestGatewayVersion();
if (latestGatewayVersion != null && latestGat... | public class class_name {
public void addListener(UpdateCheckListener newListener) {
if (newListener == null) {
throw new IllegalArgumentException("newListener");
}
GatewayVersion latestGatewayVersion = getLatestGatewayVersion();
if (latestGatewayVersion != null && latestGat... |
public class class_name {
public void cmsEvent(org.opencms.main.CmsEvent event) {
if (!isEnabled()) {
return;
}
switch (event.getType()) {
case I_CmsEventListener.EVENT_PUBLISH_PROJECT:
if (LOG.isDebugEnabled()) {
LOG.debug("FlexCach... | public class class_name {
public void cmsEvent(org.opencms.main.CmsEvent event) {
if (!isEnabled()) {
return; // depends on control dependency: [if], data = [none]
}
switch (event.getType()) {
case I_CmsEventListener.EVENT_PUBLISH_PROJECT:
if (LOG.isDeb... |
public class class_name {
public static double[][] pseudoInverse(double[][] matrix){
if(isSolverUseApacheCommonsMath) {
// Use LU from common math
SingularValueDecomposition svd = new SingularValueDecomposition(new Array2DRowRealMatrix(matrix));
double[][] matrixInverse = svd.getSolver().getInverse().getDat... | public class class_name {
public static double[][] pseudoInverse(double[][] matrix){
if(isSolverUseApacheCommonsMath) {
// Use LU from common math
SingularValueDecomposition svd = new SingularValueDecomposition(new Array2DRowRealMatrix(matrix));
double[][] matrixInverse = svd.getSolver().getInverse().getDat... |
public class class_name {
public boolean isLink()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "isLink");
SibTr.exit(tc, "isLink", new Boolean(_isLink));
}
return _isLink;
} } | public class class_name {
public boolean isLink()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "isLink"); // depends on control dependency: [if], data = [none]
SibTr.exit(tc, "isLink", new Boolean(_isLink)); // depends on control dependency: [if], data = [n... |
public class class_name {
public Result run(Database database, Relation<O> relation, Relation<NumberVector> radrel) {
if(queries != null) {
throw new AbortException("This 'run' method will not use the given query set!");
}
// Get a distance and kNN query instance.
DistanceQuery<O> distQuery = dat... | public class class_name {
public Result run(Database database, Relation<O> relation, Relation<NumberVector> radrel) {
if(queries != null) {
throw new AbortException("This 'run' method will not use the given query set!");
}
// Get a distance and kNN query instance.
DistanceQuery<O> distQuery = dat... |
public class class_name {
public Query<T> build() {
QueryBean<T> queryBean = new QueryBean<T>();
queryBean.setStatement(genStatement());
queryBean.setParams(getParams());
if (null != limit) {
queryBean.setLimit(new PageLimit(limit.getPageIndex(), limit.getPageSize()));
}
queryBean.setCoun... | public class class_name {
public Query<T> build() {
QueryBean<T> queryBean = new QueryBean<T>();
queryBean.setStatement(genStatement());
queryBean.setParams(getParams());
if (null != limit) {
queryBean.setLimit(new PageLimit(limit.getPageIndex(), limit.getPageSize())); // depends on control depen... |
public class class_name {
@Override
public void preloadResources() {
final List<? extends ResourceItem<?, ?, ?>> resourceList = getResourceToPreload();
if (resourceList != null) {
for (final ResourceItem<?, ?, ?> resource : resourceList) {
// Access the font to load it a... | public class class_name {
@Override
public void preloadResources() {
final List<? extends ResourceItem<?, ?, ?>> resourceList = getResourceToPreload();
if (resourceList != null) {
for (final ResourceItem<?, ?, ?> resource : resourceList) {
// Access the font to load it a... |
public class class_name {
public void appendLine(final Line line)
{
if (this.lineTail == null)
{
this.lines = this.lineTail = line;
}
else
{
this.lineTail.nextEmpty = line.isEmpty;
line.prevEmpty = this.lineTail.isEmpty;
line.p... | public class class_name {
public void appendLine(final Line line)
{
if (this.lineTail == null)
{
this.lines = this.lineTail = line; // depends on control dependency: [if], data = [none]
}
else
{
this.lineTail.nextEmpty = line.isEmpty; // depends on co... |
public class class_name {
@Override
public void createControl(Composite parent) {
comp = new Composite(parent, SWT.BORDER);
GridLayout layout = new GridLayout();
layout.numColumns = 2;
layout.marginHeight = 0;
layout.marginWidth = 0;
comp.setLayout(layout);
G... | public class class_name {
@Override
public void createControl(Composite parent) {
comp = new Composite(parent, SWT.BORDER);
GridLayout layout = new GridLayout();
layout.numColumns = 2;
layout.marginHeight = 0;
layout.marginWidth = 0;
comp.setLayout(layout);
G... |
public class class_name {
public static List<TextElement> findAllTextElements(XmlElement xmlElement){
List<TextElement> textElements = new ArrayList<>();
for (Element element : xmlElement.getElements()){
if (element instanceof XmlElement){
textElements.addAll(findAllTextElem... | public class class_name {
public static List<TextElement> findAllTextElements(XmlElement xmlElement){
List<TextElement> textElements = new ArrayList<>();
for (Element element : xmlElement.getElements()){
if (element instanceof XmlElement){
textElements.addAll(findAllTextElem... |
public class class_name {
public static void create(
int dimensions, int numElements,
Collection<? super MutableLongTuple> target)
{
for (int i=0; i<numElements; i++)
{
target.add(LongTuples.create(dimensions));
}
} } | public class class_name {
public static void create(
int dimensions, int numElements,
Collection<? super MutableLongTuple> target)
{
for (int i=0; i<numElements; i++)
{
target.add(LongTuples.create(dimensions));
// depends on control dependency: [for], data = [no... |
public class class_name {
private boolean startsWithDelimiter(String word, String[] delimiters) {
boolean delim = false;
for (int i = 0; i < delimiters.length; i++) {
if (word.startsWith(delimiters[i])) {
delim = true;
break;
}
}
... | public class class_name {
private boolean startsWithDelimiter(String word, String[] delimiters) {
boolean delim = false;
for (int i = 0; i < delimiters.length; i++) {
if (word.startsWith(delimiters[i])) {
delim = true; // depends on control dependency: [if], data = [none]
... |
public class class_name {
void decompileObjectLiteral(ObjectLiteral node) {
decompiler.addToken(Token.LC);
List<ObjectProperty> props = node.getElements();
int size = props.size();
for (int i = 0; i < size; i++) {
ObjectProperty prop = props.get(i);
boolean destr... | public class class_name {
void decompileObjectLiteral(ObjectLiteral node) {
decompiler.addToken(Token.LC);
List<ObjectProperty> props = node.getElements();
int size = props.size();
for (int i = 0; i < size; i++) {
ObjectProperty prop = props.get(i);
boolean destr... |
public class class_name {
public boolean checkedAdd(final int x) {
final short hb = BufferUtil.highbits(x);
final int i = highLowContainer.getIndex(hb);
if (i >= 0) {
MappeableContainer C = highLowContainer.getContainerAtIndex(i);
int oldcard = C.getCardinality();
C = C.add(BufferUtil.low... | public class class_name {
public boolean checkedAdd(final int x) {
final short hb = BufferUtil.highbits(x);
final int i = highLowContainer.getIndex(hb);
if (i >= 0) {
MappeableContainer C = highLowContainer.getContainerAtIndex(i);
int oldcard = C.getCardinality();
C = C.add(BufferUtil.low... |
public class class_name {
@SuppressWarnings({"deprecation", "WeakerAccess"})
protected void removeShutdownHook(ClassLoaderLeakPreventor preventor, Thread shutdownHook) {
final String displayString = "'" + shutdownHook + "' of type " + shutdownHook.getClass().getName();
preventor.error("Removing shutdown hook... | public class class_name {
@SuppressWarnings({"deprecation", "WeakerAccess"})
protected void removeShutdownHook(ClassLoaderLeakPreventor preventor, Thread shutdownHook) {
final String displayString = "'" + shutdownHook + "' of type " + shutdownHook.getClass().getName();
preventor.error("Removing shutdown hook... |
public class class_name {
public boolean isAllAuthorized(final WebContext context, final List<U> profiles) {
for (final U profile : profiles) {
if (!isProfileAuthorized(context, profile)) {
return handleError(context);
}
}
return true;
} } | public class class_name {
public boolean isAllAuthorized(final WebContext context, final List<U> profiles) {
for (final U profile : profiles) {
if (!isProfileAuthorized(context, profile)) {
return handleError(context); // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void setDefaultWorkManager(WorkManager wm)
{
if (trace)
log.tracef("Default WorkManager: %s", wm);
String currentName = null;
if (defaultWorkManager != null)
currentName = defaultWorkManager.getName();
defaultWorkManager = wm;
if (... | public class class_name {
public void setDefaultWorkManager(WorkManager wm)
{
if (trace)
log.tracef("Default WorkManager: %s", wm);
String currentName = null;
if (defaultWorkManager != null)
currentName = defaultWorkManager.getName();
defaultWorkManager = wm;
if (... |
public class class_name {
protected Distribution findBestFit(final List<V> col, Adapter adapter, int d, double[] test) {
if(estimators.size() == 1) {
return estimators.get(0).estimate(col, adapter);
}
Distribution best = null;
double bestq = Double.POSITIVE_INFINITY;
trials: for(DistributionE... | public class class_name {
protected Distribution findBestFit(final List<V> col, Adapter adapter, int d, double[] test) {
if(estimators.size() == 1) {
return estimators.get(0).estimate(col, adapter); // depends on control dependency: [if], data = [none]
}
Distribution best = null;
double bestq = D... |
public class class_name {
public void setTypes(java.util.Collection<String> types) {
if (types == null) {
this.types = null;
return;
}
this.types = new java.util.ArrayList<String>(types);
} } | public class class_name {
public void setTypes(java.util.Collection<String> types) {
if (types == null) {
this.types = null; // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
this.types = new java.util.... |
public class class_name {
public void marshall(CreateConnectorDefinitionRequest createConnectorDefinitionRequest, ProtocolMarshaller protocolMarshaller) {
if (createConnectorDefinitionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
tr... | public class class_name {
public void marshall(CreateConnectorDefinitionRequest createConnectorDefinitionRequest, ProtocolMarshaller protocolMarshaller) {
if (createConnectorDefinitionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
tr... |
public class class_name {
void selectConnections( Vertex target ) {
// There needs to be at least two corners
if( target.perpendicular.size() <= 1 )
return;
// if( target.index == 16 ) {
// System.out.println("ASDSAD");
// }
// System.out.println("======= Connecting "+target.index);
double bestError = ... | public class class_name {
void selectConnections( Vertex target ) {
// There needs to be at least two corners
if( target.perpendicular.size() <= 1 )
return;
// if( target.index == 16 ) {
// System.out.println("ASDSAD");
// }
// System.out.println("======= Connecting "+target.index);
double bestError = ... |
public class class_name {
public void marshall(CloudFormationStackRecord cloudFormationStackRecord, ProtocolMarshaller protocolMarshaller) {
if (cloudFormationStackRecord == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
proto... | public class class_name {
public void marshall(CloudFormationStackRecord cloudFormationStackRecord, ProtocolMarshaller protocolMarshaller) {
if (cloudFormationStackRecord == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
proto... |
public class class_name {
public static Twilight getTwilight(double sunDistanceRadians) {
double altDegrees = 90.0 - Math.toDegrees(sunDistanceRadians);
if (altDegrees >= 0.0) {
return Twilight.DAYLIGHT;
} else if (altDegrees >= -6.0) {
return Twilight.CIVIL;
} else if (altDegrees >= -12.0) {
return ... | public class class_name {
public static Twilight getTwilight(double sunDistanceRadians) {
double altDegrees = 90.0 - Math.toDegrees(sunDistanceRadians);
if (altDegrees >= 0.0) {
return Twilight.DAYLIGHT; // depends on control dependency: [if], data = [none]
} else if (altDegrees >= -6.0) {
return Twilight... |
public class class_name {
@Override
public EClass getIfcGeometricSet() {
if (ifcGeometricSetEClass == null) {
ifcGeometricSetEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(306);
}
return ifcGeometricSetEClass;
} } | public class class_name {
@Override
public EClass getIfcGeometricSet() {
if (ifcGeometricSetEClass == null) {
ifcGeometricSetEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(306);
// depends on control dependency: [if], data = [none]
}
return ifc... |
public class class_name {
protected final void generateSourcePublicMethodDeclaration(SourceWriter sourceWriter, JMethod method) {
StringBuilder arguments = new StringBuilder();
for (JParameter parameter : method.getParameters()) {
if (arguments.length() > 0) {
arguments.append(", ");
}
... | public class class_name {
protected final void generateSourcePublicMethodDeclaration(SourceWriter sourceWriter, JMethod method) {
StringBuilder arguments = new StringBuilder();
for (JParameter parameter : method.getParameters()) {
if (arguments.length() > 0) {
arguments.append(", "); // depends ... |
public class class_name {
public void replaceLast(AbstractDrawer newDrawer, AjaxRequestTarget target) {
if (!drawers.isEmpty()) {
ListItem last = drawers.getFirst();
last.drawer.replaceWith(newDrawer);
last.drawer = newDrawer;
newDrawer.setManager(this);
target.add(newDrawer);
}
} } | public class class_name {
public void replaceLast(AbstractDrawer newDrawer, AjaxRequestTarget target) {
if (!drawers.isEmpty()) {
ListItem last = drawers.getFirst();
last.drawer.replaceWith(newDrawer); // depends on control dependency: [if], data = [none]
last.drawer = newDrawer; // depends on control depen... |
public class class_name {
public static byte[] calculate(final Data[] data) throws IOException {
int bitSize = 0;
for (final Data target : data) {
bitSize += target.numOfBits;
}
int pos = 0;
final FastBitSet bitSet = new FastBitSet(bitSize);
for (final Data t... | public class class_name {
public static byte[] calculate(final Data[] data) throws IOException {
int bitSize = 0;
for (final Data target : data) {
bitSize += target.numOfBits;
}
int pos = 0;
final FastBitSet bitSet = new FastBitSet(bitSize);
for (final Data t... |
public class class_name {
public final EObject ruleXConstructorCall() throws RecognitionException {
EObject current = null;
Token otherlv_2=null;
Token otherlv_4=null;
EObject this_XbaseConstructorCall_0 = null;
EObject lv_members_3_0 = null;
enterRule();
... | public class class_name {
public final EObject ruleXConstructorCall() throws RecognitionException {
EObject current = null;
Token otherlv_2=null;
Token otherlv_4=null;
EObject this_XbaseConstructorCall_0 = null;
EObject lv_members_3_0 = null;
enterRule();
... |
public class class_name {
@Override
public final String getFor(final Class<?> pClass, final String pThingName) {
if ("list".equals(pThingName)) {
return PrcEntitiesPage.class.getSimpleName();
} else if ("about".equals(pThingName)) {
return PrcAbout.class.getSimpleName();
}
return null;
... | public class class_name {
@Override
public final String getFor(final Class<?> pClass, final String pThingName) {
if ("list".equals(pThingName)) {
return PrcEntitiesPage.class.getSimpleName(); // depends on control dependency: [if], data = [none]
} else if ("about".equals(pThingName)) {
return Prc... |
public class class_name {
public synchronized void sendQueuedEvents(KeenProject project, KeenCallback callback) {
if (!isActive) {
handleLibraryInactive(callback);
return;
}
if (project == null && defaultProject == null) {
handleFailure(null, new IllegalSta... | public class class_name {
public synchronized void sendQueuedEvents(KeenProject project, KeenCallback callback) {
if (!isActive) {
handleLibraryInactive(callback); // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
... |
public class class_name {
public void marshall(SearchProfilesRequest searchProfilesRequest, ProtocolMarshaller protocolMarshaller) {
if (searchProfilesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshalle... | public class class_name {
public void marshall(SearchProfilesRequest searchProfilesRequest, ProtocolMarshaller protocolMarshaller) {
if (searchProfilesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshalle... |
public class class_name {
public void setExpiration(String expiration) {
if (expiration == null) {
_properties.remove(AMQP_PROP_EXPIRATION);
return;
}
_properties.put(AMQP_PROP_EXPIRATION, expiration);
} } | public class class_name {
public void setExpiration(String expiration) {
if (expiration == null) {
_properties.remove(AMQP_PROP_EXPIRATION); // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
_pr... |
public class class_name {
public final boolean login()
throws LoginException
{
boolean ret = false;
final Callback[] callbacks = new Callback[3];
callbacks[0] = new ActionCallback();
callbacks[1] = new NameCallback("Username: ");
callbacks[2] = new PasswordCallback(... | public class class_name {
public final boolean login()
throws LoginException
{
boolean ret = false;
final Callback[] callbacks = new Callback[3];
callbacks[0] = new ActionCallback();
callbacks[1] = new NameCallback("Username: ");
callbacks[2] = new PasswordCallback(... |
public class class_name {
private void updateSelection(Object node)
{
State newState = getSelectionState(node);
List<Object> descendants =
JTrees.getAllDescendants(getModel(), node);
for (Object descendant : descendants)
{
setSelectionState(descendant... | public class class_name {
private void updateSelection(Object node)
{
State newState = getSelectionState(node);
List<Object> descendants =
JTrees.getAllDescendants(getModel(), node);
for (Object descendant : descendants)
{
setSelectionState(descendant... |
public class class_name {
public static void setFieldIfPossible(Class type, String name, Object value) {
Optional<Field> declaredField = findDeclaredField(type, name);
if (declaredField.isPresent()) {
Field field = declaredField.get();
Optional<?> converted = ConversionService.S... | public class class_name {
public static void setFieldIfPossible(Class type, String name, Object value) {
Optional<Field> declaredField = findDeclaredField(type, name);
if (declaredField.isPresent()) {
Field field = declaredField.get();
Optional<?> converted = ConversionService.S... |
public class class_name {
@Override
public EClass getIfcUShapeProfileDef() {
if (ifcUShapeProfileDefEClass == null) {
ifcUShapeProfileDefEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(741);
}
return ifcUShapeProfileDefEClass;
} } | public class class_name {
@Override
public EClass getIfcUShapeProfileDef() {
if (ifcUShapeProfileDefEClass == null) {
ifcUShapeProfileDefEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(741);
// depends on control dependency: [if], data = [none]
}
... |
public class class_name {
protected final String findErrorDesc(int errorType, int currEvent)
{
String msg = getErrorDesc(errorType, currEvent);
if (msg != null) {
return msg;
}
switch (errorType) {
case ERR_GETELEMTEXT_NOT_START_ELEM:
return "Current ... | public class class_name {
protected final String findErrorDesc(int errorType, int currEvent)
{
String msg = getErrorDesc(errorType, currEvent);
if (msg != null) {
return msg; // depends on control dependency: [if], data = [none]
}
switch (errorType) {
case ERR_GE... |
public class class_name {
@Override
void throwInternalError(String message, Throwable cause) {
String finalMessage = "INTERNAL COMPILER ERROR.\nPlease report this problem.\n\n" + message;
RuntimeException e = new RuntimeException(finalMessage, cause);
if (cause != null) {
e.setStackTrace(cause.get... | public class class_name {
@Override
void throwInternalError(String message, Throwable cause) {
String finalMessage = "INTERNAL COMPILER ERROR.\nPlease report this problem.\n\n" + message;
RuntimeException e = new RuntimeException(finalMessage, cause);
if (cause != null) {
e.setStackTrace(cause.get... |
public class class_name {
@SuppressWarnings("deprecation")
public InputSplit[] getSplits(JobConf job, int numSplits)
throws IOException {
LocatedFileStatus[] files = listLocatedStatus(job);
long totalSize = 0; // compute total size
for (FileStatus file: files) { ... | public class class_name {
@SuppressWarnings("deprecation")
public InputSplit[] getSplits(JobConf job, int numSplits)
throws IOException {
LocatedFileStatus[] files = listLocatedStatus(job);
long totalSize = 0; // compute total size
for (FileStatus file: files) { ... |
public class class_name {
private void getBatchSize(String persistenceUnit, Map<String, Object> puProperties)
{
String batch_Size = puProperties != null ? (String) puProperties.get(PersistenceProperties.KUNDERA_BATCH_SIZE)
: null;
if (batch_Size != null)
{
setBat... | public class class_name {
private void getBatchSize(String persistenceUnit, Map<String, Object> puProperties)
{
String batch_Size = puProperties != null ? (String) puProperties.get(PersistenceProperties.KUNDERA_BATCH_SIZE)
: null;
if (batch_Size != null)
{
setBat... |
public class class_name {
public List<String> commands(boolean sys, boolean app) {
C.List<String> list = C.newList();
Act.Mode mode = Act.mode();
boolean all = !sys && !app;
for (String s : registry.keySet()) {
boolean isSysCmd = s.startsWith("act.");
if (isSysCm... | public class class_name {
public List<String> commands(boolean sys, boolean app) {
C.List<String> list = C.newList();
Act.Mode mode = Act.mode();
boolean all = !sys && !app;
for (String s : registry.keySet()) {
boolean isSysCmd = s.startsWith("act.");
if (isSysCm... |
public class class_name {
private void setEntityIdValue(final Object entity, final BigDecimal id, final MappingColumn column) {
Class<?> rawType = column.getJavaType().getRawType();
if (int.class.equals(rawType) || Integer.class.equals(rawType)) {
column.setValue(entity, id.intValue());
} else if (long.class.... | public class class_name {
private void setEntityIdValue(final Object entity, final BigDecimal id, final MappingColumn column) {
Class<?> rawType = column.getJavaType().getRawType();
if (int.class.equals(rawType) || Integer.class.equals(rawType)) {
column.setValue(entity, id.intValue()); // depends on control de... |
public class class_name {
public static String read(Reader reader, int length) {
try {
char[] buffer = new char[length];
int offset = 0;
int rest = length;
int len;
while ((len = reader.read(buffer, offset, rest)) != -1) {
rest -= len... | public class class_name {
public static String read(Reader reader, int length) {
try {
char[] buffer = new char[length];
int offset = 0;
int rest = length;
int len;
while ((len = reader.read(buffer, offset, rest)) != -1) {
rest -= len... |
public class class_name {
@Override
public synchronized void removeAssociation() {
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (traceOn && tc.isEntryEnabled())
Tr.entry(tc, "removeAssociation");
_activeAssociations--;
if (_activeAssociations <= 0)... | public class class_name {
@Override
public synchronized void removeAssociation() {
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (traceOn && tc.isEntryEnabled())
Tr.entry(tc, "removeAssociation");
_activeAssociations--;
if (_activeAssociations <= 0)... |
public class class_name {
private Node<K,V> lookup(final Object data, final int index) {
Node<K,V> rval = null;
Node<K,V> node = rootNode[index];
while (node != null) {
int cmp = compare(Node.NO_CHANGE, data, node.getStatus(), node.getData(index), index);
if (... | public class class_name {
private Node<K,V> lookup(final Object data, final int index) {
Node<K,V> rval = null;
Node<K,V> node = rootNode[index];
while (node != null) {
int cmp = compare(Node.NO_CHANGE, data, node.getStatus(), node.getData(index), index);
if (... |
public class class_name {
private static boolean hasPhosphat(MonomerNotationUnitRNA monomerNotationUnitRNA) {
if (monomerNotationUnitRNA.getContents().get(monomerNotationUnitRNA.getContents().size() - 1).getUnit()
.endsWith("P")) {
LOG.info("MonomerNotationUnitRNA " + monomerNotationUnitRNA.getUnit() + " h... | public class class_name {
private static boolean hasPhosphat(MonomerNotationUnitRNA monomerNotationUnitRNA) {
if (monomerNotationUnitRNA.getContents().get(monomerNotationUnitRNA.getContents().size() - 1).getUnit()
.endsWith("P")) {
LOG.info("MonomerNotationUnitRNA " + monomerNotationUnitRNA.getUnit() + " h... |
public class class_name {
public boolean shouldTerminate(PopulationData<?> populationData)
{
if (natural)
{
// If we're using "natural" fitness scores, higher values are better.
return populationData.getBestCandidateFitness() >= targetFitness;
}
else
... | public class class_name {
public boolean shouldTerminate(PopulationData<?> populationData)
{
if (natural)
{
// If we're using "natural" fitness scores, higher values are better.
return populationData.getBestCandidateFitness() >= targetFitness; // depends on control dependenc... |
public class class_name {
private Code parseCode(Element codeElement, Map<String, Scope> scopes) {
// Code name
Code code = new Code(nodeAttribute(codeElement, TAG_CODE_ATTR_NAME, Utils.generateRandomName()));
// Code priority
code.setPriority(nodeAttribute(codeElement, TAG_CODE_ATTR_P... | public class class_name {
private Code parseCode(Element codeElement, Map<String, Scope> scopes) {
// Code name
Code code = new Code(nodeAttribute(codeElement, TAG_CODE_ATTR_NAME, Utils.generateRandomName()));
// Code priority
code.setPriority(nodeAttribute(codeElement, TAG_CODE_ATTR_P... |
public class class_name {
public static Fraction of(int numerator, int denominator, boolean reduce) {
if (denominator == 0) {
throw new ArithmeticException("The denominator must not be zero");
}
if (reduce) {
// allow 2^k/-2^31 as a valid fraction (where k>0)
... | public class class_name {
public static Fraction of(int numerator, int denominator, boolean reduce) {
if (denominator == 0) {
throw new ArithmeticException("The denominator must not be zero");
}
if (reduce) {
// allow 2^k/-2^31 as a valid fraction (where k>0)
... |
public class class_name {
public String getReportUpdate() {
A_CmsReportThread thread = OpenCms.getThreadStore().retrieveThread(m_paramThread);
if (thread != null) {
return thread.getReportUpdate();
} else {
return "";
}
} } | public class class_name {
public String getReportUpdate() {
A_CmsReportThread thread = OpenCms.getThreadStore().retrieveThread(m_paramThread);
if (thread != null) {
return thread.getReportUpdate(); // depends on control dependency: [if], data = [none]
} else {
return ""... |
public class class_name {
private Collection<RequestMapperBean> initializeRequestMappers(final Request request)
{
final Set<RequestMapperBean> mapperBeans = new TreeSet<>(getComparator());
for (final IRequestMapper requestMapper : this.requestMappers)
{
mapperBeans.add(
new RequestMapperBean(reques... | public class class_name {
private Collection<RequestMapperBean> initializeRequestMappers(final Request request)
{
final Set<RequestMapperBean> mapperBeans = new TreeSet<>(getComparator());
for (final IRequestMapper requestMapper : this.requestMappers)
{
mapperBeans.add(
new RequestMapperBean(reques... |
public class class_name {
public Indexer getIndexer(Field field) {
PropertyIndexer indexerAnnotation = field.getAnnotation(PropertyIndexer.class);
if (indexerAnnotation != null) {
Class<? extends Indexer> indexerClass = indexerAnnotation.value();
return getIndexer(indexerClass);
}
return ge... | public class class_name {
public Indexer getIndexer(Field field) {
PropertyIndexer indexerAnnotation = field.getAnnotation(PropertyIndexer.class);
if (indexerAnnotation != null) {
Class<? extends Indexer> indexerClass = indexerAnnotation.value();
return getIndexer(indexerClass); // depends on contr... |
public class class_name {
@Override
public RegistrationManager getRegistrationManager(){
if(registrationManager == null){
synchronized(this){
if(registrationManager == null){
RegistrationManagerImpl registration = new RegistrationManagerImpl(getDirectoryServi... | public class class_name {
@Override
public RegistrationManager getRegistrationManager(){
if(registrationManager == null){
synchronized(this){ // depends on control dependency: [if], data = [none]
if(registrationManager == null){
RegistrationManagerImpl regist... |
public class class_name {
public static void mult( double a[] , int offsetA ,
DMatrixSparseCSC B ,
double c[] , int offsetC )
{
if( a.length-offsetA < B.numRows)
throw new IllegalArgumentException("Length of 'a' isn't long enough");
... | public class class_name {
public static void mult( double a[] , int offsetA ,
DMatrixSparseCSC B ,
double c[] , int offsetC )
{
if( a.length-offsetA < B.numRows)
throw new IllegalArgumentException("Length of 'a' isn't long enough");
... |
public class class_name {
public static CongestionControlSupplier congestionControlSupplier()
{
CongestionControlSupplier supplier = null;
try
{
final String className = getProperty(CONGESTION_CONTROL_STRATEGY_SUPPLIER_PROP_NAME);
if (null == className)
{... | public class class_name {
public static CongestionControlSupplier congestionControlSupplier()
{
CongestionControlSupplier supplier = null;
try
{
final String className = getProperty(CONGESTION_CONTROL_STRATEGY_SUPPLIER_PROP_NAME);
if (null == className)
{... |
public class class_name {
public WindowDeclarationDescr windowDeclaration(DeclareDescrBuilder ddb) throws RecognitionException {
WindowDeclarationDescrBuilder declare = null;
try {
declare = helper.start(ddb,
WindowDeclarationDescrBuilder.class,
null)... | public class class_name {
public WindowDeclarationDescr windowDeclaration(DeclareDescrBuilder ddb) throws RecognitionException {
WindowDeclarationDescrBuilder declare = null;
try {
declare = helper.start(ddb,
WindowDeclarationDescrBuilder.class,
null)... |
public class class_name {
public AT_Row setPadding(int padding){
if(this.hasCells()){
for(AT_Cell cell : this.getCells()){
cell.getContext().setPadding(padding);
}
}
return this;
} } | public class class_name {
public AT_Row setPadding(int padding){
if(this.hasCells()){
for(AT_Cell cell : this.getCells()){
cell.getContext().setPadding(padding);
// depends on control dependency: [for], data = [cell]
}
}
return this;
} } |
public class class_name {
public void marshall(ResolvedTargets resolvedTargets, ProtocolMarshaller protocolMarshaller) {
if (resolvedTargets == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(resolve... | public class class_name {
public void marshall(ResolvedTargets resolvedTargets, ProtocolMarshaller protocolMarshaller) {
if (resolvedTargets == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(resolve... |
public class class_name {
public void setAsText(final String text)
{
if (PropertyEditors.isNull(text))
{
setValue(null);
return;
}
Object newValue = Long.valueOf(text);
setValue(newValue);
} } | public class class_name {
public void setAsText(final String text)
{
if (PropertyEditors.isNull(text))
{
setValue(null); // depends on control dependency: [if], data = [none]
return; // depends on control dependency: [if], data = [none]
}
Object newValue = Long.valueOf(text... |
public class class_name {
public static base_responses add(nitro_service client, nsip resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
nsip addresources[] = new nsip[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = ne... | public class class_name {
public static base_responses add(nitro_service client, nsip resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
nsip addresources[] = new nsip[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = ne... |
public class class_name {
public void setListeners(StatsStorageRouter statsStorage, Collection<? extends TrainingListener> listeners) {
//Check if we have any RoutingIterationListener instances that need a StatsStorage implementation...
if (listeners != null) {
for (TrainingListener l : lis... | public class class_name {
public void setListeners(StatsStorageRouter statsStorage, Collection<? extends TrainingListener> listeners) {
//Check if we have any RoutingIterationListener instances that need a StatsStorage implementation...
if (listeners != null) {
for (TrainingListener l : lis... |
public class class_name {
private static String parameterizedTypeToString(final ParameterizedType p) {
final StringBuilder buf = new StringBuilder();
final Type useOwner = p.getOwnerType();
final Class<?> raw = (Class<?>) p.getRawType();
if (useOwner == null) {
buf.append(... | public class class_name {
private static String parameterizedTypeToString(final ParameterizedType p) {
final StringBuilder buf = new StringBuilder();
final Type useOwner = p.getOwnerType();
final Class<?> raw = (Class<?>) p.getRawType();
if (useOwner == null) {
buf.append(... |
public class class_name {
protected Integer getFontSizeForZoom(double zoom) {
double lower = -1;
for (double upper : this.zoomToFontSizeMap.keySet()) {
if (lower == -1) {
lower = upper;
if (zoom <= lower) return this.zoomToFontSizeMap.get(upper);
... | public class class_name {
protected Integer getFontSizeForZoom(double zoom) {
double lower = -1;
for (double upper : this.zoomToFontSizeMap.keySet()) {
if (lower == -1) {
lower = upper; // depends on control dependency: [if], data = [none]
if (zoom <= lower) ... |
public class class_name {
private void repartitionSplitState(
Map<String, List<Tuple2<StreamStateHandle, OperatorStateHandle.StateMetaInfo>>> nameToDistributeState,
int newParallelism,
List<Map<StreamStateHandle, OperatorStateHandle>> mergeMapList) {
int startParallelOp = 0;
// Iterate all named states a... | public class class_name {
private void repartitionSplitState(
Map<String, List<Tuple2<StreamStateHandle, OperatorStateHandle.StateMetaInfo>>> nameToDistributeState,
int newParallelism,
List<Map<StreamStateHandle, OperatorStateHandle>> mergeMapList) {
int startParallelOp = 0;
// Iterate all named states a... |
public class class_name {
static byte[] toBytes(final String s) {
try {
return (byte[]) toBytes.invoke(null, s);
} catch (Exception e) {
throw new RuntimeException("toBytes=" + toBytes, e);
}
} } | public class class_name {
static byte[] toBytes(final String s) {
try {
return (byte[]) toBytes.invoke(null, s); // depends on control dependency: [try], data = [none]
} catch (Exception e) {
throw new RuntimeException("toBytes=" + toBytes, e);
} // depends on control dependency: [catch], data ... |
public class class_name {
public static Optional<CmsResource> getDetailOnlyPage(
CmsObject cms,
CmsResource detailContent,
String contentLocale) {
try {
CmsObject rootCms = OpenCms.initCmsObject(cms);
rootCms.getRequestContext().setSiteRoot("");
Stri... | public class class_name {
public static Optional<CmsResource> getDetailOnlyPage(
CmsObject cms,
CmsResource detailContent,
String contentLocale) {
try {
CmsObject rootCms = OpenCms.initCmsObject(cms);
rootCms.getRequestContext().setSiteRoot(""); // depends on co... |
public class class_name {
public static PayPalAccountNonce fromJson(String jsonString) throws JSONException {
JSONObject jsonObj = new JSONObject(jsonString);
PayPalAccountNonce payPalAccountNonce = new PayPalAccountNonce();
if(jsonObj.has(PayPalAccountNonce.API_RESOURCE_KEY)) {
pa... | public class class_name {
public static PayPalAccountNonce fromJson(String jsonString) throws JSONException {
JSONObject jsonObj = new JSONObject(jsonString);
PayPalAccountNonce payPalAccountNonce = new PayPalAccountNonce();
if(jsonObj.has(PayPalAccountNonce.API_RESOURCE_KEY)) {
pa... |
public class class_name {
private double[][] determineBasis(double[] alpha) {
final int dim = alpha.length;
// Primary vector:
double[] nn = new double[dim + 1];
for(int i = 0; i < nn.length; i++) {
double alpha_i = i == alpha.length ? 0 : alpha[i];
nn[i] = ParameterizationFunction.sinusPro... | public class class_name {
private double[][] determineBasis(double[] alpha) {
final int dim = alpha.length;
// Primary vector:
double[] nn = new double[dim + 1];
for(int i = 0; i < nn.length; i++) {
double alpha_i = i == alpha.length ? 0 : alpha[i];
nn[i] = ParameterizationFunction.sinusPro... |
public class class_name {
@SuppressWarnings("rawtypes")
private void removeMisleadingType(Slider2 slider) {
try {
Method method = getClass().getMethod("getPassThroughAttributes", (Class[]) null);
if (null != method) {
Object map = method.invoke(this, (Object[]) null);
if (null != map) {
Map attri... | public class class_name {
@SuppressWarnings("rawtypes")
private void removeMisleadingType(Slider2 slider) {
try {
Method method = getClass().getMethod("getPassThroughAttributes", (Class[]) null);
if (null != method) {
Object map = method.invoke(this, (Object[]) null);
if (null != map) {
Map attri... |
public class class_name {
private static String getUUID(int length, UUID uuid) {
int groupLength = 32 / length;
StringBuilder sb = new StringBuilder();
String id = uuid.toString().replace("-", "");
for (int i = 0; i < length; i++) {
String str = id.substring(i * groupLength,... | public class class_name {
private static String getUUID(int length, UUID uuid) {
int groupLength = 32 / length;
StringBuilder sb = new StringBuilder();
String id = uuid.toString().replace("-", "");
for (int i = 0; i < length; i++) {
String str = id.substring(i * groupLength,... |
public class class_name {
private void requestPageAlbums(final Queue<PageAccount> pageAccounts, final List<Object[]> pageAlbums) {
final PageAccount account = pageAccounts.poll();
if (account != null) {
Callback callback = new Callback() {
@Override
public vo... | public class class_name {
private void requestPageAlbums(final Queue<PageAccount> pageAccounts, final List<Object[]> pageAlbums) {
final PageAccount account = pageAccounts.poll();
if (account != null) {
Callback callback = new Callback() {
@Override
public vo... |
public class class_name {
public void marshall(CreateLoggerDefinitionRequest createLoggerDefinitionRequest, ProtocolMarshaller protocolMarshaller) {
if (createLoggerDefinitionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | public class class_name {
public void marshall(CreateLoggerDefinitionRequest createLoggerDefinitionRequest, ProtocolMarshaller protocolMarshaller) {
if (createLoggerDefinitionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... |
public class class_name {
public static Decimal128 parse(final String value) {
String lowerCasedValue = value.toLowerCase();
if (NaN_STRINGS.contains(lowerCasedValue)) {
return NaN;
}
if (NEGATIVE_NaN_STRINGS.contains(lowerCasedValue)) {
return NEGATIVE_NaN;
... | public class class_name {
public static Decimal128 parse(final String value) {
String lowerCasedValue = value.toLowerCase();
if (NaN_STRINGS.contains(lowerCasedValue)) {
return NaN; // depends on control dependency: [if], data = [none]
}
if (NEGATIVE_NaN_STRINGS.contains(lo... |
public class class_name {
public void marshall(CancelMaintenanceWindowExecutionRequest cancelMaintenanceWindowExecutionRequest, ProtocolMarshaller protocolMarshaller) {
if (cancelMaintenanceWindowExecutionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
... | public class class_name {
public void marshall(CancelMaintenanceWindowExecutionRequest cancelMaintenanceWindowExecutionRequest, ProtocolMarshaller protocolMarshaller) {
if (cancelMaintenanceWindowExecutionRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
... |
public class class_name {
public final void unaryExpression() throws RecognitionException {
int unaryExpression_StartIndex = input.index();
try {
if ( state.backtracking>0 && alreadyParsedRule(input, 124) ) { return; }
// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:1196:5: ( '+' una... | public class class_name {
public final void unaryExpression() throws RecognitionException {
int unaryExpression_StartIndex = input.index();
try {
if ( state.backtracking>0 && alreadyParsedRule(input, 124) ) { return; } // depends on control dependency: [if], data = [none]
// src/main/resources/org/drools/c... |
public class class_name {
@SuppressWarnings("unchecked")
private static void handleFlatteningForField(Field classField, JsonNode jsonNode) {
final JsonProperty jsonProperty = classField.getAnnotation(JsonProperty.class);
if (jsonProperty != null) {
final String jsonPropValue = jsonPrope... | public class class_name {
@SuppressWarnings("unchecked")
private static void handleFlatteningForField(Field classField, JsonNode jsonNode) {
final JsonProperty jsonProperty = classField.getAnnotation(JsonProperty.class);
if (jsonProperty != null) {
final String jsonPropValue = jsonPrope... |
public class class_name {
public static String getPage(String url) {
try {
// get the full url, and replace the query string with and empty
// string
url = url.toLowerCase(Locale.ROOT);
String queryStr = new URL(url).getQuery();
return (queryStr != nu... | public class class_name {
public static String getPage(String url) {
try {
// get the full url, and replace the query string with and empty
// string
url = url.toLowerCase(Locale.ROOT); // depends on control dependency: [try], data = [none]
String queryStr = new ... |
public class class_name {
public static synchronized void stopAllUploads() {
if (uploadTasksMap.isEmpty()) {
return;
}
// using iterator instead for each loop, because it's faster on Android
Iterator<String> iterator = uploadTasksMap.keySet().iterator();
while (ite... | public class class_name {
public static synchronized void stopAllUploads() {
if (uploadTasksMap.isEmpty()) {
return; // depends on control dependency: [if], data = [none]
}
// using iterator instead for each loop, because it's faster on Android
Iterator<String> iterator = u... |
public class class_name {
public static void execute(Thread thread, long timeout) {
thread.start();
try {
thread.join(timeout);
} catch (InterruptedException e) {
// Should not be interrupted normally.
}
if (thread.isAlive()) {
thread.interrupt();
}
} } | public class class_name {
public static void execute(Thread thread, long timeout) {
thread.start();
try {
thread.join(timeout); // depends on control dependency: [try], data = [none]
} catch (InterruptedException e) {
// Should not be interrupted normally.
} // depends on control dependency: [catch], da... |
public class class_name {
public void marshall(GetPatchBaselineRequest getPatchBaselineRequest, ProtocolMarshaller protocolMarshaller) {
if (getPatchBaselineRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... | public class class_name {
public void marshall(GetPatchBaselineRequest getPatchBaselineRequest, ProtocolMarshaller protocolMarshaller) {
if (getPatchBaselineRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... |
public class class_name {
protected static final int nextStringLength(byte[] bytes, int startPos, int length, char delimiter) {
if (length <= 0) {
throw new IllegalArgumentException("Invalid input: Empty string");
}
int limitedLength = 0;
final byte delByte = (byte) delimiter;
while (limitedLength < leng... | public class class_name {
protected static final int nextStringLength(byte[] bytes, int startPos, int length, char delimiter) {
if (length <= 0) {
throw new IllegalArgumentException("Invalid input: Empty string");
}
int limitedLength = 0;
final byte delByte = (byte) delimiter;
while (limitedLength < leng... |
public class class_name {
public static double inverseRegularizedIncompleteBetaFunction(double alpha, double beta, double p) {
final double EPS = 1.0E-8;
double pp, t, u, err, x, al, h, w, afac;
double a1 = alpha - 1.;
double b1 = beta - 1.;
if (p <= 0.0) {
return ... | public class class_name {
public static double inverseRegularizedIncompleteBetaFunction(double alpha, double beta, double p) {
final double EPS = 1.0E-8;
double pp, t, u, err, x, al, h, w, afac;
double a1 = alpha - 1.;
double b1 = beta - 1.;
if (p <= 0.0) {
return ... |
public class class_name {
private static String getMacAddress(@NonNull Context context) {
if (isWifiStatePermissionGranted(context)) {
WifiManager wifiManager = (WifiManager) context.getApplicationContext().getSystemService(Context.WIFI_SERVICE);
if (wifiManager != null) {
... | public class class_name {
private static String getMacAddress(@NonNull Context context) {
if (isWifiStatePermissionGranted(context)) {
WifiManager wifiManager = (WifiManager) context.getApplicationContext().getSystemService(Context.WIFI_SERVICE);
if (wifiManager != null) {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.