code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
private InputStream getResourceAsStream(String resource) { InputStream is = getClass().getResourceAsStream(resource); // switch needed for testability if (is == null) { try { is = new FileInputStream(new File(resource)); } catch (FileNotFoundException e) { // do nothing } ...
class class_name[name] begin[{] method[getResourceAsStream, return_type[type[InputStream]], modifier[private], parameter[resource]] begin[{] local_variable[type[InputStream], is] if[binary_operation[member[.is], ==, literal[null]]] begin[{] TryStatement(block=[StatementExpre...
Keyword[private] identifier[InputStream] identifier[getResourceAsStream] operator[SEP] identifier[String] identifier[resource] operator[SEP] { identifier[InputStream] identifier[is] operator[=] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] identifier[getResourceAsStream] operator[SEP] identifier...
public void setSelfDeafened(long userId, boolean deafened) { if (deafened) { selfDeafened.add(userId); } else { selfDeafened.remove(userId); } }
class class_name[name] begin[{] method[setSelfDeafened, return_type[void], modifier[public], parameter[userId, deafened]] begin[{] if[member[.deafened]] begin[{] call[selfDeafened.add, parameter[member[.userId]]] else begin[{] call[selfDea...
Keyword[public] Keyword[void] identifier[setSelfDeafened] operator[SEP] Keyword[long] identifier[userId] , Keyword[boolean] identifier[deafened] operator[SEP] { Keyword[if] operator[SEP] identifier[deafened] operator[SEP] { identifier[selfDeafened] operator[SEP] identifier[add] operator[SEP] identifi...
public static boolean isConstantOrLiteral(Expression expression) { if (expression instanceof ConstantExpression) return true; if (expression instanceof ListExpression) return true; if (expression instanceof MapExpression) return true; return isPredefinedConstant(expression); }
class class_name[name] begin[{] method[isConstantOrLiteral, return_type[type[boolean]], modifier[public static], parameter[expression]] begin[{] if[binary_operation[member[.expression], instanceof, type[ConstantExpression]]] begin[{] return[literal[true]] else begin[{] None end[...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isConstantOrLiteral] operator[SEP] identifier[Expression] identifier[expression] operator[SEP] { Keyword[if] operator[SEP] identifier[expression] Keyword[instanceof] identifier[ConstantExpression] operator[SEP] Keyword[return] literal[boolean] operator[...
@Override public void doSessionCreated() throws Exception { // establish the user principals. // XXX There's a question about what to do if they are changed on revalidate Set<Class<Principal>> userPrincipalClasses = serviceManagementBean.getUserPrincipalClasses(); if (userPrincipalC...
class class_name[name] begin[{] method[doSessionCreated, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[Set], userPrincipalClasses] if[binary_operation[binary_operation[member[.userPrincipalClasses], !=, literal[null]], &&, call[userPrincipalClasses.isEmp...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[doSessionCreated] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { identifier[Set] operator[<] identifier[Class] operator[<] identifier[Principal] operator[>] operator[>] identifier[userPrincipalClasses] operator[=] id...
private HtmlResponse asListHtml() { return asHtml(path_AdminRole_AdminRoleJsp).renderWith(data -> { RenderDataUtil.register(data, "roleItems", roleService.getRoleList(rolePager)); // page navi }).useForm(SearchForm.class, setup -> { setup.setup(form -> { copyB...
class class_name[name] begin[{] method[asListHtml, return_type[type[HtmlResponse]], modifier[private], parameter[]] begin[{] return[call[.asHtml, parameter[member[.path_AdminRole_AdminRoleJsp]]]] end[}] END[}]
Keyword[private] identifier[HtmlResponse] identifier[asListHtml] operator[SEP] operator[SEP] { Keyword[return] identifier[asHtml] operator[SEP] identifier[path_AdminRole_AdminRoleJsp] operator[SEP] operator[SEP] identifier[renderWith] operator[SEP] identifier[data] operator[->] { identifier[RenderData...
private static void unpackFile(InputStream in, File file) { byte[] buffer = new byte[4096]; try { OutputStream out = new FileOutputStream(file); int read; while ((read = in.read(buffer)) != -1) { out.write(buffer, 0, read); } o...
class class_name[name] begin[{] method[unpackFile, return_type[void], modifier[private static], parameter[in, file]] begin[{] local_variable[type[byte], buffer] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(a...
Keyword[private] Keyword[static] Keyword[void] identifier[unpackFile] operator[SEP] identifier[InputStream] identifier[in] , identifier[File] identifier[file] operator[SEP] { Keyword[byte] operator[SEP] operator[SEP] identifier[buffer] operator[=] Keyword[new] Keyword[byte] operator[SEP] Other[4096] operator[SE...
@SuppressWarnings("unused") @Internal @UsedByGeneratedCode protected static void registerAnnotationDefaults(String annotation, Map<String, Object> defaultValues) { AnnotationMetadataSupport.registerDefaultValues(annotation, defaultValues); }
class class_name[name] begin[{] method[registerAnnotationDefaults, return_type[void], modifier[static protected], parameter[annotation, defaultValues]] begin[{] call[AnnotationMetadataSupport.registerDefaultValues, parameter[member[.annotation], member[.defaultValues]]] end[}] END[}]
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Internal] annotation[@] identifier[UsedByGeneratedCode] Keyword[protected] Keyword[static] Keyword[void] identifier[registerAnnotationDefaults] operator[SEP] identifier[String] identifier[annotation] , ident...
@Override public ManagedObjectContext createContext() { Bean<T> bean = null; EjbDescriptor<T> ejbDescriptor = getEjbDescriptor(); //in the case of an MDB, the bean should be null, in which case the creational context will be non-contextual if (!ejbDescriptor.isMessageDriven()) { ...
class class_name[name] begin[{] method[createContext, return_type[type[ManagedObjectContext]], modifier[public], parameter[]] begin[{] local_variable[type[Bean], bean] local_variable[type[EjbDescriptor], ejbDescriptor] if[call[ejbDescriptor.isMessageDriven, parameter[]]] begin[{...
annotation[@] identifier[Override] Keyword[public] identifier[ManagedObjectContext] identifier[createContext] operator[SEP] operator[SEP] { identifier[Bean] operator[<] identifier[T] operator[>] identifier[bean] operator[=] Other[null] operator[SEP] identifier[EjbDescriptor] operator[<] identifier[T] operator[>]...
public void addGridDetailItems(TableModel model, GridBagLayout gridbag, GridBagConstraints c) { m_vComponentCache = new Vector<ComponentCache>(); for (int iRow = 0; iRow < model.getRowCount(); iRow++) { c.weightx = 0.0; c.gridwidth = 1; c.anchor = GridBag...
class class_name[name] begin[{] method[addGridDetailItems, return_type[void], modifier[public], parameter[model, gridbag, c]] begin[{] assign[member[.m_vComponentCache], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=N...
Keyword[public] Keyword[void] identifier[addGridDetailItems] operator[SEP] identifier[TableModel] identifier[model] , identifier[GridBagLayout] identifier[gridbag] , identifier[GridBagConstraints] identifier[c] operator[SEP] { identifier[m_vComponentCache] operator[=] Keyword[new] identifier[Vector] operator[<...
public static <T> List<String> sortByPinyin(Collection<String> collection) { return sort(collection, new PinyinComparator()); }
class class_name[name] begin[{] method[sortByPinyin, return_type[type[List]], modifier[public static], parameter[collection]] begin[{] return[call[.sort, parameter[member[.collection], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qual...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[List] operator[<] identifier[String] operator[>] identifier[sortByPinyin] operator[SEP] identifier[Collection] operator[<] identifier[String] operator[>] identifier[collection] operator[SEP] { Keyword[return] identifier[sort] operat...
public String performTask(String taskParameters) { GetUrlTaskParameters taskParams = GetUrlTaskParameters.deserialize(taskParameters); String spaceId = taskParams.getSpaceId(); String contentId = taskParams.getContentId(); String resourcePrefix = taskParams.getResourcePrefix...
class class_name[name] begin[{] method[performTask, return_type[type[String]], modifier[public], parameter[taskParameters]] begin[{] local_variable[type[GetUrlTaskParameters], taskParams] local_variable[type[String], spaceId] local_variable[type[String], contentId] local_variabl...
Keyword[public] identifier[String] identifier[performTask] operator[SEP] identifier[String] identifier[taskParameters] operator[SEP] { identifier[GetUrlTaskParameters] identifier[taskParams] operator[=] identifier[GetUrlTaskParameters] operator[SEP] identifier[deserialize] operator[SEP] identifier[taskParameters...
protected void sequence_XForLoopExpression(ISerializationContext context, XForLoopExpression semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, XbasePackage.Literals.XFOR_LOOP_EXPRESSION__DECLARED_PARAM) == ValueTransient.YES) errorAcceptor.accept(diagnosticProv...
class class_name[name] begin[{] method[sequence_XForLoopExpression, return_type[void], modifier[protected], parameter[context, semanticObject]] begin[{] if[binary_operation[member[.errorAcceptor], !=, literal[null]]] begin[{] if[binary_operation[call[transientValues.isVa...
Keyword[protected] Keyword[void] identifier[sequence_XForLoopExpression] operator[SEP] identifier[ISerializationContext] identifier[context] , identifier[XForLoopExpression] identifier[semanticObject] operator[SEP] { Keyword[if] operator[SEP] identifier[errorAcceptor] operator[!=] Other[null] operator[SEP] { ...
@Override public GetAppReplicationConfigurationResult getAppReplicationConfiguration(GetAppReplicationConfigurationRequest request) { request = beforeClientExecution(request); return executeGetAppReplicationConfiguration(request); }
class class_name[name] begin[{] method[getAppReplicationConfiguration, return_type[type[GetAppReplicationConfigurationResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeGetAppRe...
annotation[@] identifier[Override] Keyword[public] identifier[GetAppReplicationConfigurationResult] identifier[getAppReplicationConfiguration] operator[SEP] identifier[GetAppReplicationConfigurationRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] oper...
private LocalThreadObjectPool getThreadLocalObjectPool() { if (threadPoolSize <= 0) { // no local thread pool needed. return null; } LocalThreadObjectPool localPool = null; if (threadLocals != null) { localPool = threadLocals.get(); if (loc...
class class_name[name] begin[{] method[getThreadLocalObjectPool, return_type[type[LocalThreadObjectPool]], modifier[private], parameter[]] begin[{] if[binary_operation[member[.threadPoolSize], <=, literal[0]]] begin[{] return[literal[null]] else begin[{] None end[}] ...
Keyword[private] identifier[LocalThreadObjectPool] identifier[getThreadLocalObjectPool] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[threadPoolSize] operator[<=] Other[0] operator[SEP] { Keyword[return] Other[null] operator[SEP] } identifier[LocalThreadObjectPool] i...
public static void mkdirs(File directory) throws CreateDirectoryException { if (directory.exists()) { // file exists and *is* a directory if (directory.isDirectory()) { return; } // file exists, but is not a directory - delete it if (!directory.delete()) { throw new Cr...
class class_name[name] begin[{] method[mkdirs, return_type[void], modifier[public static], parameter[directory]] begin[{] if[call[directory.exists, parameter[]]] begin[{] if[call[directory.isDirectory, parameter[]]] begin[{] return[None] else ...
Keyword[public] Keyword[static] Keyword[void] identifier[mkdirs] operator[SEP] identifier[File] identifier[directory] operator[SEP] Keyword[throws] identifier[CreateDirectoryException] { Keyword[if] operator[SEP] identifier[directory] operator[SEP] identifier[exists] operator[SEP] operator[SEP] operator[SEP] { ...
public static boolean hasBoolean(final JSONObject json, final String key, final boolean coerce) { if (!coerce) { return hasBoolean(json, key); } // This could be trivially implemented as // `return JSON.toBoolean(json.opt(key)) != null` ...
class class_name[name] begin[{] method[hasBoolean, return_type[type[boolean]], modifier[public static], parameter[json, key, coerce]] begin[{] if[member[.coerce]] begin[{] return[call[.hasBoolean, parameter[member[.json], member[.key]]]] else begin[{] None end[}] ...
Keyword[public] Keyword[static] Keyword[boolean] identifier[hasBoolean] operator[SEP] Keyword[final] identifier[JSONObject] identifier[json] , Keyword[final] identifier[String] identifier[key] , Keyword[final] Keyword[boolean] identifier[coerce] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[...
public void invoke(HttpServletRequest req, HttpServletResponse rsp, Object root, String url) throws IOException, ServletException { RequestImpl sreq = new RequestImpl(this, req, new ArrayList<AncestorImpl>(), new TokenList(url)); RequestImpl oreq = CURRENT_REQUEST.get(); CURRENT_REQUEST.set(sreq...
class class_name[name] begin[{] method[invoke, return_type[void], modifier[public], parameter[req, rsp, root, url]] begin[{] local_variable[type[RequestImpl], sreq] local_variable[type[RequestImpl], oreq] call[CURRENT_REQUEST.set, parameter[member[.sreq]]] local_variable...
Keyword[public] Keyword[void] identifier[invoke] operator[SEP] identifier[HttpServletRequest] identifier[req] , identifier[HttpServletResponse] identifier[rsp] , identifier[Object] identifier[root] , identifier[String] identifier[url] operator[SEP] Keyword[throws] identifier[IOException] , identifier[ServletExcepti...
public void marshall(DescribeRetentionConfigurationsRequest describeRetentionConfigurationsRequest, ProtocolMarshaller protocolMarshaller) { if (describeRetentionConfigurationsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[describeRetentionConfigurationsRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.describeRetentionConfigurationsRequest], ==, literal[null]]] begin[{] ThrowStatement(expr...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[DescribeRetentionConfigurationsRequest] identifier[describeRetentionConfigurationsRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[describeRetentionConfigurati...
private PyObject evalScript(InputStream inStream, String scriptName) { // Execute the script PythonInterpreter python = new PythonInterpreter(); python.execfile(inStream, scriptName); // Get the result and cleanup PyObject scriptClass = python.get(SCRIPT_CLASS_NAME); python.cleanup(); // Instantiate and r...
class class_name[name] begin[{] method[evalScript, return_type[type[PyObject]], modifier[private], parameter[inStream, scriptName]] begin[{] local_variable[type[PythonInterpreter], python] call[python.execfile, parameter[member[.inStream], member[.scriptName]]] local_variable[ty...
Keyword[private] identifier[PyObject] identifier[evalScript] operator[SEP] identifier[InputStream] identifier[inStream] , identifier[String] identifier[scriptName] operator[SEP] { identifier[PythonInterpreter] identifier[python] operator[=] Keyword[new] identifier[PythonInterpreter] operator[SEP] operator[SEP] ...
private void checkContainerState(String methodName, ContainerState minimalState) { if (nonPortableMode) { return; } if (this.container == null) { this.container = Container.instance(manager); } ContainerState state = container.getState(); if (SHUT...
class class_name[name] begin[{] method[checkContainerState, return_type[void], modifier[private], parameter[methodName, minimalState]] begin[{] if[member[.nonPortableMode]] begin[{] return[None] else begin[{] None end[}] if[binary_operation[THIS[membe...
Keyword[private] Keyword[void] identifier[checkContainerState] operator[SEP] identifier[String] identifier[methodName] , identifier[ContainerState] identifier[minimalState] operator[SEP] { Keyword[if] operator[SEP] identifier[nonPortableMode] operator[SEP] { Keyword[return] operator[SEP] } ...
public char[] getPasswordChars() { if (_password != null) { if (_password.length != 0) { char[] result = new char[_password.length]; System.arraycopy(_password,0,result,0,_password.length); return result; } else { return _password; // Can safely re...
class class_name[name] begin[{] method[getPasswordChars, return_type[type[char]], modifier[public], parameter[]] begin[{] if[binary_operation[member[._password], !=, literal[null]]] begin[{] if[binary_operation[member[_password.length], !=, literal[0]]] begin[{] ...
Keyword[public] Keyword[char] operator[SEP] operator[SEP] identifier[getPasswordChars] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[_password] operator[!=] Other[null] operator[SEP] { Keyword[if] operator[SEP] identifier[_password] operator[SEP] identifier[length] operator[!=] Ot...
@SuppressWarnings("unchecked") @BindingAdapter(value = {"itemBinding", "items", "adapter", "itemIds", "viewHolder", "diffConfig"}, requireAll = false) public static <T> void setAdapter(RecyclerView recyclerView, ItemBinding<T> itemBinding, ...
class class_name[name] begin[{] method[setAdapter, return_type[void], modifier[public static], parameter[recyclerView, itemBinding, items, adapter, itemIds, viewHolderFactory, diffConfig]] begin[{] if[binary_operation[member[.itemBinding], ==, literal[null]]] begin[{] ThrowStatement...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[BindingAdapter] operator[SEP] identifier[value] operator[=] { literal[String] , literal[String] , literal[String] , literal[String] , literal[String] , literal[String] } , identifier[requireAl...
public static CloseCallback confirming(String question) { return new CloseCallback() { @Override public boolean mayClose(Component componentInTab) { int option = JOptionPane.showConfirmDialog( componentInTab, question, ...
class class_name[name] begin[{] method[confirming, return_type[type[CloseCallback]], modifier[public static], parameter[question]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[LocalVariableDeclaration(annotations=[], dec...
Keyword[public] Keyword[static] identifier[CloseCallback] identifier[confirming] operator[SEP] identifier[String] identifier[question] operator[SEP] { Keyword[return] Keyword[new] identifier[CloseCallback] operator[SEP] operator[SEP] { annotation[@] identifier[Override] Keyword[public] Keyword[boolean...
@Override public DescribeClusterTracksResult describeClusterTracks(DescribeClusterTracksRequest request) { request = beforeClientExecution(request); return executeDescribeClusterTracks(request); }
class class_name[name] begin[{] method[describeClusterTracks, return_type[type[DescribeClusterTracksResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeDescribeClusterTracks, par...
annotation[@] identifier[Override] Keyword[public] identifier[DescribeClusterTracksResult] identifier[describeClusterTracks] operator[SEP] identifier[DescribeClusterTracksRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[reques...
void robotTeleport(int nx, int ny) { oldX = nx; oldY = ny; x = nx; y = ny; wx = nx; wy = ny; mx = 0; my = 0; moved = false; }
class class_name[name] begin[{] method[robotTeleport, return_type[void], modifier[default], parameter[nx, ny]] begin[{] assign[member[.oldX], member[.nx]] assign[member[.oldY], member[.ny]] assign[member[.x], member[.nx]] assign[member[.y], member...
Keyword[void] identifier[robotTeleport] operator[SEP] Keyword[int] identifier[nx] , Keyword[int] identifier[ny] operator[SEP] { identifier[oldX] operator[=] identifier[nx] operator[SEP] identifier[oldY] operator[=] identifier[ny] operator[SEP] identifier[x] operator[=] identifier[nx] operator[SEP] identifier[y]...
@Override public boolean doBuild(TopologyBuilder bldr, Set<String> stageNames) { setDefaultNameIfNone(StreamletNamePrefix.LOGGER, stageNames); bldr.setBolt(getName(), new LogSink<R>(), getNumPartitions()).shuffleGrouping(parent.getName(), parent.getStreamId()); return true; }
class class_name[name] begin[{] method[doBuild, return_type[type[boolean]], modifier[public], parameter[bldr, stageNames]] begin[{] call[.setDefaultNameIfNone, parameter[member[StreamletNamePrefix.LOGGER], member[.stageNames]]] call[bldr.setBolt, parameter[call[.getName, paramet...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[doBuild] operator[SEP] identifier[TopologyBuilder] identifier[bldr] , identifier[Set] operator[<] identifier[String] operator[>] identifier[stageNames] operator[SEP] { identifier[setDefaultNameIfNone] operator[SEP] identifier[Streaml...
private Xid convertXid(Xid xid) { if (xid instanceof XidWrapper) return xid; else return new XidWrapperImpl(xid, pad, jndiName); }
class class_name[name] begin[{] method[convertXid, return_type[type[Xid]], modifier[private], parameter[xid]] begin[{] if[binary_operation[member[.xid], instanceof, type[XidWrapper]]] begin[{] return[member[.xid]] else begin[{] return[ClassCreator(arguments=[MemberReference(member=xid, ...
Keyword[private] identifier[Xid] identifier[convertXid] operator[SEP] identifier[Xid] identifier[xid] operator[SEP] { Keyword[if] operator[SEP] identifier[xid] Keyword[instanceof] identifier[XidWrapper] operator[SEP] Keyword[return] identifier[xid] operator[SEP] Keyword[else] Keyword[return] Keyword[new] identif...
@Override public boolean eIsSet(int featureID) { switch (featureID) { case AfplibPackage.EIM__IDO_NAME: return IDO_NAME_EDEFAULT == null ? idoName != null : !IDO_NAME_EDEFAULT.equals(idoName); case AfplibPackage.EIM__TRIPLETS: return triplets != null && !triplets.isEmpty(); } return super.eIsSet(fe...
class class_name[name] begin[{] method[eIsSet, return_type[type[boolean]], modifier[public], parameter[featureID]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=EIM__IDO_NAME, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])], statemen...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[eIsSet] operator[SEP] Keyword[int] identifier[featureID] operator[SEP] { Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] { Keyword[case] identifier[AfplibPackage] operator[SEP] identifier[EIM__IDO_NAME] op...
public static ByteBuffer putUInt64(ByteBuffer buf, long value) { buf.put((byte) ((value >>> 56) & 0xff)); buf.put((byte) ((value >>> 48) & 0xff)); buf.put((byte) ((value >>> 40) & 0xff)); buf.put((byte) ((value >>> 32) & 0xff)); buf.put((byte) ((value >>> 24) & 0xff)); ...
class class_name[name] begin[{] method[putUInt64, return_type[type[ByteBuffer]], modifier[public static], parameter[buf, value]] begin[{] call[buf.put, parameter[Cast(expression=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=value, postfix_operators=[], prefix_operator...
Keyword[public] Keyword[static] identifier[ByteBuffer] identifier[putUInt64] operator[SEP] identifier[ByteBuffer] identifier[buf] , Keyword[long] identifier[value] operator[SEP] { identifier[buf] operator[SEP] identifier[put] operator[SEP] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] operator[SEP] id...
@Programmatic public ExcelModuleDemoToDoItem findByDescription(final String description) { return container.firstMatch( new QueryDefault<>(ExcelModuleDemoToDoItem.class, "findByDescription", "description", description, "...
class class_name[name] begin[{] method[findByDescription, return_type[type[ExcelModuleDemoToDoItem]], modifier[public], parameter[description]] begin[{] return[call[container.firstMatch, parameter[ClassCreator(arguments=[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]...
annotation[@] identifier[Programmatic] Keyword[public] identifier[ExcelModuleDemoToDoItem] identifier[findByDescription] operator[SEP] Keyword[final] identifier[String] identifier[description] operator[SEP] { Keyword[return] identifier[container] operator[SEP] identifier[firstMatch] operator[SEP] Keyword[new] id...
public void close() { try { if (conn != null) { conn.close(); } } catch (IOException ignored) { } if (zkClient != null) { zkClient.stopAndWait(); } }
class class_name[name] begin[{] method[close, return_type[void], modifier[public], parameter[]] begin[{] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=conn, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operato...
Keyword[public] Keyword[void] identifier[close] operator[SEP] operator[SEP] { Keyword[try] { Keyword[if] operator[SEP] identifier[conn] operator[!=] Other[null] operator[SEP] { identifier[conn] operator[SEP] identifier[close] operator[SEP] operator[SEP] operator[SEP] } ...
private static @CheckForNull <T extends Descriptor> T findByClassName(Collection<? extends T> list, String className) { for (T d : list) { if(d.getClass().getName().equals(className)) return d; } return null; }
class class_name[name] begin[{] method[findByClassName, return_type[type[T]], modifier[private static], parameter[list, className]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[], member=getClass, postfix_operators=[], prefix_operat...
Keyword[private] Keyword[static] annotation[@] identifier[CheckForNull] operator[<] identifier[T] Keyword[extends] identifier[Descriptor] operator[>] identifier[T] identifier[findByClassName] operator[SEP] identifier[Collection] operator[<] operator[?] Keyword[extends] identifier[T] operator[>] identifier[list] , iden...
public static boolean sendHttpPostRequest(HttpURLConnection connection, String contentType, byte[] data) { try { connection.setRequestMethod("POST"); } catch (ProtocolException e) { LOG.log(Level.SEVERE, "Failed ...
class class_name[name] begin[{] method[sendHttpPostRequest, return_type[type[boolean]], modifier[public static], parameter[connection, contentType, data]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier...
Keyword[public] Keyword[static] Keyword[boolean] identifier[sendHttpPostRequest] operator[SEP] identifier[HttpURLConnection] identifier[connection] , identifier[String] identifier[contentType] , Keyword[byte] operator[SEP] operator[SEP] identifier[data] operator[SEP] { Keyword[try] { identifier[conn...
public static <K, V> Lens.Simple<Map<K, V>, Map<K, V>> asCopy() { return adapt(asCopy(HashMap::new)); }
class class_name[name] begin[{] method[asCopy, return_type[type[Lens]], modifier[public static], parameter[]] begin[{] return[call[.adapt, parameter[call[.asCopy, parameter[MethodReference(expression=MemberReference(member=HashMap, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), m...
Keyword[public] Keyword[static] operator[<] identifier[K] , identifier[V] operator[>] identifier[Lens] operator[SEP] identifier[Simple] operator[<] identifier[Map] operator[<] identifier[K] , identifier[V] operator[>] , identifier[Map] operator[<] identifier[K] , identifier[V] operator[>] operator[>] identifier[asC...
public void setHeader(@NonNull String name, @Nullable String value) { if (value == null) { headers.remove(name); } else { headers.put(name, value); } }
class class_name[name] begin[{] method[setHeader, return_type[void], modifier[public], parameter[name, value]] begin[{] if[binary_operation[member[.value], ==, literal[null]]] begin[{] call[headers.remove, parameter[member[.name]]] else begin[{] ...
Keyword[public] Keyword[void] identifier[setHeader] operator[SEP] annotation[@] identifier[NonNull] identifier[String] identifier[name] , annotation[@] identifier[Nullable] identifier[String] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[value] operator[==] Other[null] operator[SEP] { ...
public <E> E createStub(final SPFPerson target, Class<E> serviceInterface, ClassLoader classLoader) { return InvocationStub.from(serviceInterface, classLoader, new InvocationStub.Target() { @Override public void prepareArguments(Object[] arguments) throws ServiceInvocationException { mExecutionInterface.in...
class class_name[name] begin[{] method[createStub, return_type[type[E]], modifier[public], parameter[target, serviceInterface, classLoader]] begin[{] return[call[InvocationStub.from, parameter[member[.serviceInterface], member[.classLoader], ClassCreator(arguments=[], body=[MethodDeclaration(annotation...
Keyword[public] operator[<] identifier[E] operator[>] identifier[E] identifier[createStub] operator[SEP] Keyword[final] identifier[SPFPerson] identifier[target] , identifier[Class] operator[<] identifier[E] operator[>] identifier[serviceInterface] , identifier[ClassLoader] identifier[classLoader] operator[SEP] { ...
public synchronized boolean remove(Object key) throws IOException, EOFException, FileManagerException, ClassNotFoundException, HashtableOnDiskException { if (filemgr == null) { throw new HashtableOnDi...
class class_name[name] begin[{] method[remove, return_type[type[boolean]], modifier[synchronized public], parameter[key]] begin[{] if[binary_operation[member[.filemgr], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefi...
Keyword[public] Keyword[synchronized] Keyword[boolean] identifier[remove] operator[SEP] identifier[Object] identifier[key] operator[SEP] Keyword[throws] identifier[IOException] , identifier[EOFException] , identifier[FileManagerException] , identifier[ClassNotFoundException] , identifier[HashtableOnDiskException] ...
static void addFeatureToScript(Node scriptNode, Feature feature) { checkState(scriptNode.isScript(), scriptNode); FeatureSet currentFeatures = getFeatureSetOfScript(scriptNode); FeatureSet newFeatures = currentFeatures != null ? currentFeatures.with(feature) : FeatureSet.BARE...
class class_name[name] begin[{] method[addFeatureToScript, return_type[void], modifier[static], parameter[scriptNode, feature]] begin[{] call[.checkState, parameter[call[scriptNode.isScript, parameter[]], member[.scriptNode]]] local_variable[type[FeatureSet], currentFeatures] lo...
Keyword[static] Keyword[void] identifier[addFeatureToScript] operator[SEP] identifier[Node] identifier[scriptNode] , identifier[Feature] identifier[feature] operator[SEP] { identifier[checkState] operator[SEP] identifier[scriptNode] operator[SEP] identifier[isScript] operator[SEP] operator[SEP] , identifier[sc...
private JPanel getPnl_mainPanel() { if (pnl_mainPanel == null) { pnl_mainPanel = new JPanel(); GridBagLayout gbl_pathsPanel = new GridBagLayout(); gbl_pathsPanel.columnWeights = new double[] { 0.0, 1.0, 1.0 }; gbl_pathsPanel.rowWeights = n...
class class_name[name] begin[{] method[getPnl_mainPanel, return_type[type[JPanel]], modifier[private], parameter[]] begin[{] if[binary_operation[member[.pnl_mainPanel], ==, literal[null]]] begin[{] assign[member[.pnl_mainPanel], ClassCreator(arguments=[], body=None, cons...
Keyword[private] identifier[JPanel] identifier[getPnl_mainPanel] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[pnl_mainPanel] operator[==] Other[null] operator[SEP] { identifier[pnl_mainPanel] operator[=] Keyword[new] identifier[JPanel] operator[SEP] operator[SEP] operator[SEP] id...
@SuppressWarnings("unchecked") private <T> T getSOAPStub(Class<T> type) throws ServiceException, IOException { if (type == org.fcrepo.server.access.FedoraAPIAMTOM.class) { org.fcrepo.client.mtom.APIAStubFactory.SOCKET_TIMEOUT_SECONDS = SOCKET_TIMEOUT_SECONDS; URL url = ...
class class_name[name] begin[{] method[getSOAPStub, return_type[type[T]], modifier[private], parameter[type]] begin[{] if[binary_operation[member[.type], ==, ClassReference(postfix_operators=[], prefix_operators=[], qualifier=org.fcrepo.server.access, selectors=[], type=ReferenceType(arguments=...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[private] operator[<] identifier[T] operator[>] identifier[T] identifier[getSOAPStub] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[type] operator[SEP] Keyword[throws] identifier[ServiceExcep...
public static Appendable render(final String input, Appendable target) throws IOException { int i = 0; int j, k; while (true) { j = input.indexOf(BEGIN_TOKEN, i); if (j == -1) { if (i == 0) { target.append(input); ...
class class_name[name] begin[{] method[render, return_type[type[Appendable]], modifier[public static], parameter[input, target]] begin[{] local_variable[type[int], i] local_variable[type[int], j] while[literal[true]] begin[{] assign[member[.j], call[input...
Keyword[public] Keyword[static] identifier[Appendable] identifier[render] operator[SEP] Keyword[final] identifier[String] identifier[input] , identifier[Appendable] identifier[target] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] Keyword[in...
public <T, T1, T2, T3, T4> FutureValue<T> futureCall(Job4<T, T1, T2, T3, T4> jobInstance, Value<? extends T1> v1, Value<? extends T2> v2, Value<? extends T3> v3, Value<? extends T4> v4, JobSetting... settings) { return futureCallUnchecked(settings, jobInstance, v1, v2, v3, v4); }
class class_name[name] begin[{] method[futureCall, return_type[type[FutureValue]], modifier[public], parameter[jobInstance, v1, v2, v3, v4, settings]] begin[{] return[call[.futureCallUnchecked, parameter[member[.settings], member[.jobInstance], member[.v1], member[.v2], member[.v3], member[.v4]]]] ...
Keyword[public] operator[<] identifier[T] , identifier[T1] , identifier[T2] , identifier[T3] , identifier[T4] operator[>] identifier[FutureValue] operator[<] identifier[T] operator[>] identifier[futureCall] operator[SEP] identifier[Job4] operator[<] identifier[T] , identifier[T1] , identifier[T2] , identifier[T3...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final ModuleSpecification moduleSpecification = deploymentUnit.getAttachment(Attachments.MODULE_SPECIFICATION); final Module...
class class_name[name] begin[{] method[deploy, return_type[void], modifier[public], parameter[phaseContext]] begin[{] local_variable[type[DeploymentUnit], deploymentUnit] local_variable[type[ModuleSpecification], moduleSpecification] local_variable[type[ModuleLoader], moduleLoader] ...
Keyword[public] Keyword[void] identifier[deploy] operator[SEP] identifier[DeploymentPhaseContext] identifier[phaseContext] operator[SEP] Keyword[throws] identifier[DeploymentUnitProcessingException] { Keyword[final] identifier[DeploymentUnit] identifier[deploymentUnit] operator[=] identifier[phaseContext] operat...
@SuppressWarnings("unchecked") public void init(ServletConfig config) throws ServletException { super.init(config); // Move init params to my properties Enumeration<String> paramNames = this.getInitParameterNames(); while (paramNames.hasMoreElements()) { Strin...
class class_name[name] begin[{] method[init, return_type[void], modifier[public], parameter[config]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=config, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=init, postfix_operators=[], prefix_operator...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[void] identifier[init] operator[SEP] identifier[ServletConfig] identifier[config] operator[SEP] Keyword[throws] identifier[ServletException] { Keyword[super] operator[SEP] identifier[init] operator[SEP]...
protected SchemaNode resolveSchemaNode(final Map<String, SchemaNode> schemaNodes, final App app, final URI uri) throws FrameworkException { // find schema nodes for the given source and target nodes final Object source = root.resolveURI(uri); if (source != null && source instanceof StructrTypeDefinition) { r...
class class_name[name] begin[{] method[resolveSchemaNode, return_type[type[SchemaNode]], modifier[protected], parameter[schemaNodes, app, uri]] begin[{] local_variable[type[Object], source] if[binary_operation[binary_operation[member[.source], !=, literal[null]], &&, binary_operation[me...
Keyword[protected] identifier[SchemaNode] identifier[resolveSchemaNode] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[SchemaNode] operator[>] identifier[schemaNodes] , Keyword[final] identifier[App] identifier[app] , Keyword[final] identifier[URI] identifier[uri] operator[S...
public static void enableSharedContext() throws SlickException { try { SHARED_DRAWABLE = new Pbuffer(64, 64, new PixelFormat(8, 0, 0), null); } catch (LWJGLException e) { throw new SlickException("Unable to create the pbuffer used for shard context, buffers not supported", e); } }
class class_name[name] begin[{] method[enableSharedContext, return_type[void], modifier[public static], parameter[]] begin[{] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=SHARED_DRAWABLE, postfix_operators=[], prefix_operators=[], qualifier=, selector...
Keyword[public] Keyword[static] Keyword[void] identifier[enableSharedContext] operator[SEP] operator[SEP] Keyword[throws] identifier[SlickException] { Keyword[try] { identifier[SHARED_DRAWABLE] operator[=] Keyword[new] identifier[Pbuffer] operator[SEP] Other[64] , Other[64] , Keyword[new] identifier...
public Cursor<DataPoint> readDataPoints(Filter filter, Interval interval, Aggregation aggregation) { return readDataPoints(filter, interval, DateTimeZone.getDefault(), aggregation, null, null); }
class class_name[name] begin[{] method[readDataPoints, return_type[type[Cursor]], modifier[public], parameter[filter, interval, aggregation]] begin[{] return[call[.readDataPoints, parameter[member[.filter], member[.interval], call[DateTimeZone.getDefault, parameter[]], member[.aggregation], literal[nul...
Keyword[public] identifier[Cursor] operator[<] identifier[DataPoint] operator[>] identifier[readDataPoints] operator[SEP] identifier[Filter] identifier[filter] , identifier[Interval] identifier[interval] , identifier[Aggregation] identifier[aggregation] operator[SEP] { Keyword[return] identifier[readDataPoints...
@Override public void setPermission(Path path, FsPermission permission) throws IOException { LOG.debug("setMode({},{})", path, permission.toString()); AlluxioURI uri = new AlluxioURI(HadoopUtils.getPathWithoutScheme(path)); SetAttributePOptions options = SetAttributePOptions.newBuilder() .setMode(...
class class_name[name] begin[{] method[setPermission, return_type[void], modifier[public], parameter[path, permission]] begin[{] call[LOG.debug, parameter[literal["setMode({},{})"], member[.path], call[permission.toString, parameter[]]]] local_variable[type[AlluxioURI], uri] loc...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setPermission] operator[SEP] identifier[Path] identifier[path] , identifier[FsPermission] identifier[permission] operator[SEP] Keyword[throws] identifier[IOException] { identifier[LOG] operator[SEP] identifier[debug] operator[SEP] liter...
public void setUnprocessedJobs(java.util.Collection<String> unprocessedJobs) { if (unprocessedJobs == null) { this.unprocessedJobs = null; return; } this.unprocessedJobs = new java.util.ArrayList<String>(unprocessedJobs); }
class class_name[name] begin[{] method[setUnprocessedJobs, return_type[void], modifier[public], parameter[unprocessedJobs]] begin[{] if[binary_operation[member[.unprocessedJobs], ==, literal[null]]] begin[{] assign[THIS[member[None.unprocessedJobs]], literal[null]] ...
Keyword[public] Keyword[void] identifier[setUnprocessedJobs] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[String] operator[>] identifier[unprocessedJobs] operator[SEP] { Keyword[if] operator[SEP] identifier[unprocessedJobs] operator[==]...
public static Object invokeStaticMethod(final Class<?> cls, final String methodName, Object... args) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException { args = ArrayUtils.nullToEmpty(args); final Class<?>[] parameterTypes = ClassUtils.toClass(args); ...
class class_name[name] begin[{] method[invokeStaticMethod, return_type[type[Object]], modifier[public static], parameter[cls, methodName, args]] begin[{] assign[member[.args], call[ArrayUtils.nullToEmpty, parameter[member[.args]]]] local_variable[type[Class], parameterTypes] ret...
Keyword[public] Keyword[static] identifier[Object] identifier[invokeStaticMethod] operator[SEP] Keyword[final] identifier[Class] operator[<] operator[?] operator[>] identifier[cls] , Keyword[final] identifier[String] identifier[methodName] , identifier[Object] operator[...] identifier[args] operator[SEP] Keyword[thro...
public void setDeselectAllText(final String deselectAllText) { if (deselectAllText != null) attrMixin.setAttribute(DESELECT_ALL_TEXT, deselectAllText); else attrMixin.removeAttribute(DESELECT_ALL_TEXT); }
class class_name[name] begin[{] method[setDeselectAllText, return_type[void], modifier[public], parameter[deselectAllText]] begin[{] if[binary_operation[member[.deselectAllText], !=, literal[null]]] begin[{] call[attrMixin.setAttribute, parameter[member[.DESELECT_ALL_TEXT], member[....
Keyword[public] Keyword[void] identifier[setDeselectAllText] operator[SEP] Keyword[final] identifier[String] identifier[deselectAllText] operator[SEP] { Keyword[if] operator[SEP] identifier[deselectAllText] operator[!=] Other[null] operator[SEP] identifier[attrMixin] operator[SEP] identifier[setAttribute] operat...
public static int toIntValue(Object o, int defaultValue) { if (o instanceof Number) return ((Number) o).intValue(); else if (o instanceof Boolean) return ((Boolean) o).booleanValue() ? 1 : 0; else if (o instanceof CharSequence) return toIntValue(o.toString().trim(), defaultValue); // else if(o instanceof Clob) ret...
class class_name[name] begin[{] method[toIntValue, return_type[type[int]], modifier[public static], parameter[o, defaultValue]] begin[{] if[binary_operation[member[.o], instanceof, type[Number]]] begin[{] return[Cast(expression=MemberReference(member=o, postfix_operators=[], prefix_operators=[]...
Keyword[public] Keyword[static] Keyword[int] identifier[toIntValue] operator[SEP] identifier[Object] identifier[o] , Keyword[int] identifier[defaultValue] operator[SEP] { Keyword[if] operator[SEP] identifier[o] Keyword[instanceof] identifier[Number] operator[SEP] Keyword[return] operator[SEP] operator[SEP] iden...
public CodeableConcept addReasonNotPerformed() { //3 CodeableConcept t = new CodeableConcept(); if (this.reasonNotPerformed == null) this.reasonNotPerformed = new ArrayList<CodeableConcept>(); this.reasonNotPerformed.add(t); return t; }
class class_name[name] begin[{] method[addReasonNotPerformed, return_type[type[CodeableConcept]], modifier[public], parameter[]] begin[{] local_variable[type[CodeableConcept], t] if[binary_operation[THIS[member[None.reasonNotPerformed]], ==, literal[null]]] begin[{] assign[T...
Keyword[public] identifier[CodeableConcept] identifier[addReasonNotPerformed] operator[SEP] operator[SEP] { identifier[CodeableConcept] identifier[t] operator[=] Keyword[new] identifier[CodeableConcept] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[rea...
public void commit() { log.debug("Performing commit"); for (CompensatingTransactionOperationExecutor operationExecutor : operationExecutors) { try { operationExecutor.commit(); } catch (Exception e) { throw new TransactionSystemException( ...
class class_name[name] begin[{] method[commit, return_type[void], modifier[public], parameter[]] begin[{] call[log.debug, parameter[literal["Performing commit"]]] ForStatement(body=BlockStatement(label=None, statements=[TryStatement(block=[StatementExpression(expression=MethodInvocation...
Keyword[public] Keyword[void] identifier[commit] operator[SEP] operator[SEP] { identifier[log] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[CompensatingTransactionOperationExecutor] identifier[operationExecutor] operator[:] ident...
private LdapUser autoProvision(final AlpineQueryManager qm) throws AlpineAuthenticationException { LOGGER.debug("Provisioning: " + username); LdapUser user = null; final LdapConnectionWrapper ldap = new LdapConnectionWrapper(); DirContext dirContext = null; try { dirC...
class class_name[name] begin[{] method[autoProvision, return_type[type[LdapUser]], modifier[private], parameter[qm]] begin[{] call[LOGGER.debug, parameter[binary_operation[literal["Provisioning: "], +, member[.username]]]] local_variable[type[LdapUser], user] local_variable[type...
Keyword[private] identifier[LdapUser] identifier[autoProvision] operator[SEP] Keyword[final] identifier[AlpineQueryManager] identifier[qm] operator[SEP] Keyword[throws] identifier[AlpineAuthenticationException] { identifier[LOGGER] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[+] identif...
@GET @Path("/loadStatus") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) @ResourceFilters(BasicSecurityResourceFilter.class) public Response getLoadStatus( @Context HttpServletRequest req ) { return handler.getLoadStatus(); }
class class_name[name] begin[{] method[getLoadStatus, return_type[type[Response]], modifier[public], parameter[req]] begin[{] return[call[handler.getLoadStatus, parameter[]]] end[}] END[}]
annotation[@] identifier[GET] annotation[@] identifier[Path] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Produces] operator[SEP] identifier[MediaType] operator[SEP] identifier[APPLICATION_JSON] operator[SEP] annotation[@] identifier[Consumes] operator[SEP] identifier[MediaType] operator[SEP] id...
public static Element createElement(String localPart) { Document doc = getOwnerDocument(); log.trace("createElement {}" + localPart); return doc.createElement(localPart); }
class class_name[name] begin[{] method[createElement, return_type[type[Element]], modifier[public static], parameter[localPart]] begin[{] local_variable[type[Document], doc] call[log.trace, parameter[binary_operation[literal["createElement {}"], +, member[.localPart]]]] return[c...
Keyword[public] Keyword[static] identifier[Element] identifier[createElement] operator[SEP] identifier[String] identifier[localPart] operator[SEP] { identifier[Document] identifier[doc] operator[=] identifier[getOwnerDocument] operator[SEP] operator[SEP] operator[SEP] identifier[log] operator[SEP] identifier[tra...
public VariableMap getAndClearCachedLocalVariableMap() { VariableMap cachedVariablesLocal = associationManager.getCachedLocalVariables(); VariableMap copy = new VariableMapImpl(cachedVariablesLocal); cachedVariablesLocal.clear(); return copy; }
class class_name[name] begin[{] method[getAndClearCachedLocalVariableMap, return_type[type[VariableMap]], modifier[public], parameter[]] begin[{] local_variable[type[VariableMap], cachedVariablesLocal] local_variable[type[VariableMap], copy] call[cachedVariablesLocal.clear, para...
Keyword[public] identifier[VariableMap] identifier[getAndClearCachedLocalVariableMap] operator[SEP] operator[SEP] { identifier[VariableMap] identifier[cachedVariablesLocal] operator[=] identifier[associationManager] operator[SEP] identifier[getCachedLocalVariables] operator[SEP] operator[SEP] operator[SEP] ident...
@Override public void eUnset(int featureID) { switch (featureID) { case AfplibPackage.MCCRG__STARTNUM: setStartnum(STARTNUM_EDEFAULT); return; case AfplibPackage.MCCRG__STOPNUM: setStopnum(STOPNUM_EDEFAULT); return; case AfplibPackage.MCCRG__MM_CID: setMMCid(MM_CID_EDEFAULT); return;...
class class_name[name] begin[{] method[eUnset, return_type[void], modifier[public], parameter[featureID]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=MCCRG__STARTNUM, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])], statements=[Sta...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[eUnset] operator[SEP] Keyword[int] identifier[featureID] operator[SEP] { Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] { Keyword[case] identifier[AfplibPackage] operator[SEP] identifier[MCCRG__STARTNUM] ope...
public static BatchSession newBatchSessionByBatchSize(KnowledgePackage knowledgePackage,int batchSize){ return new BatchSessionImpl(knowledgePackage,BatchSession.DEFAULT_THREAD_SIZE,batchSize); }
class class_name[name] begin[{] method[newBatchSessionByBatchSize, return_type[type[BatchSession]], modifier[public static], parameter[knowledgePackage, batchSize]] begin[{] return[ClassCreator(arguments=[MemberReference(member=knowledgePackage, postfix_operators=[], prefix_operators=[], qualifier=, se...
Keyword[public] Keyword[static] identifier[BatchSession] identifier[newBatchSessionByBatchSize] operator[SEP] identifier[KnowledgePackage] identifier[knowledgePackage] , Keyword[int] identifier[batchSize] operator[SEP] { Keyword[return] Keyword[new] identifier[BatchSessionImpl] operator[SEP] identifier[knowledg...
public final Mono<T> onErrorReturn(Predicate<? super Throwable> predicate, T fallbackValue) { return onErrorResume(predicate, throwable -> just(fallbackValue)); }
class class_name[name] begin[{] method[onErrorReturn, return_type[type[Mono]], modifier[final public], parameter[predicate, fallbackValue]] begin[{] return[call[.onErrorResume, parameter[member[.predicate], LambdaExpression(body=MethodInvocation(arguments=[MemberReference(member=fallbackValue, postfix_...
Keyword[public] Keyword[final] identifier[Mono] operator[<] identifier[T] operator[>] identifier[onErrorReturn] operator[SEP] identifier[Predicate] operator[<] operator[?] Keyword[super] identifier[Throwable] operator[>] identifier[predicate] , identifier[T] identifier[fallbackValue] operator[SEP] { Keyword[ret...
public String getCountryByLocationName(String locationName){ //String country = countryVocabulary.get(locationName.toLowerCase()); //return getCountryByCountryCode(country); Set<Integer> ids = gnObjectMapNameLookup.get(locationName.toLowerCase()); if (ids == null){ return "unknown"; } long maxPopulati...
class class_name[name] begin[{] method[getCountryByLocationName, return_type[type[String]], modifier[public], parameter[locationName]] begin[{] local_variable[type[Set], ids] if[binary_operation[member[.ids], ==, literal[null]]] begin[{] return[literal["unknown"]] el...
Keyword[public] identifier[String] identifier[getCountryByLocationName] operator[SEP] identifier[String] identifier[locationName] operator[SEP] { identifier[Set] operator[<] identifier[Integer] operator[>] identifier[ids] operator[=] identifier[gnObjectMapNameLookup] operator[SEP] identifier[get] operator[SEP] i...
private void setUpActionButtons() { // Buttons Panel WPanel buttonPanel = new WPanel(); actionContainer.add(buttonPanel); // Edit Button final WButton editButton = new WButton("Edit") { @Override public boolean isVisible() { Object key = TableUtil.getCurrentRowKey(); return !isEditRow(key); ...
class class_name[name] begin[{] method[setUpActionButtons, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[WPanel], buttonPanel] call[actionContainer.add, parameter[member[.buttonPanel]]] local_variable[type[WButton], editButton] c...
Keyword[private] Keyword[void] identifier[setUpActionButtons] operator[SEP] operator[SEP] { identifier[WPanel] identifier[buttonPanel] operator[=] Keyword[new] identifier[WPanel] operator[SEP] operator[SEP] operator[SEP] identifier[actionContainer] operator[SEP] identifier[add] operator[SEP] identifier[buttonPan...
private void initComparators() { TupleMRConfigBuilder.initializeComparators(context.getHadoopContext() .getConfiguration(), tupleMRConfig); customComparators = new RawComparator<?>[maxDepth + 1]; for(int i = minDepth; i <= maxDepth; i++) { SortElement element = tupleMRConfig.getCommonCriteria().getElemen...
class class_name[name] begin[{] method[initComparators, return_type[void], modifier[private], parameter[]] begin[{] call[TupleMRConfigBuilder.initializeComparators, parameter[call[context.getHadoopContext, parameter[]], member[.tupleMRConfig]]] assign[member[.customComparators],...
Keyword[private] Keyword[void] identifier[initComparators] operator[SEP] operator[SEP] { identifier[TupleMRConfigBuilder] operator[SEP] identifier[initializeComparators] operator[SEP] identifier[context] operator[SEP] identifier[getHadoopContext] operator[SEP] operator[SEP] operator[SEP] identifier[getConfigurat...
static void readFullyDirectBuffer(InputStream f, ByteBuffer buf, byte[] temp) throws IOException { int nextReadLength = Math.min(buf.remaining(), temp.length); int bytesRead = 0; while (nextReadLength > 0 && (bytesRead = f.read(temp, 0, nextReadLength)) >= 0) { buf.put(temp, 0, bytesRead); next...
class class_name[name] begin[{] method[readFullyDirectBuffer, return_type[void], modifier[static], parameter[f, buf, temp]] begin[{] local_variable[type[int], nextReadLength] local_variable[type[int], bytesRead] while[binary_operation[binary_operation[member[.nextReadLength], >,...
Keyword[static] Keyword[void] identifier[readFullyDirectBuffer] operator[SEP] identifier[InputStream] identifier[f] , identifier[ByteBuffer] identifier[buf] , Keyword[byte] operator[SEP] operator[SEP] identifier[temp] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[int] identifier[nextReadLengt...
public void init(BaseSession parentSessionObject, Record record, Map<String, Object> objectID) { m_topScreen = null; super.init(parentSessionObject, record, objectID); }
class class_name[name] begin[{] method[init, return_type[void], modifier[public], parameter[parentSessionObject, record, objectID]] begin[{] assign[member[.m_topScreen], literal[null]] SuperMethodInvocation(arguments=[MemberReference(member=parentSessionObject, postfix_operators...
Keyword[public] Keyword[void] identifier[init] operator[SEP] identifier[BaseSession] identifier[parentSessionObject] , identifier[Record] identifier[record] , identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[objectID] operator[SEP] { identifier[m_topScreen] operator[=...
public final EObject ruleCapacityMember() throws RecognitionException { EObject current = null; Token otherlv_6=null; Token otherlv_8=null; Token otherlv_10=null; Token otherlv_12=null; Token otherlv_14=null; Token otherlv_16=null; Token otherlv_17=null; ...
class class_name[name] begin[{] method[ruleCapacityMember, return_type[type[EObject]], modifier[final public], parameter[]] begin[{] local_variable[type[EObject], current] local_variable[type[Token], otherlv_6] local_variable[type[Token], otherlv_8] local_variable[type[Token], o...
Keyword[public] Keyword[final] identifier[EObject] identifier[ruleCapacityMember] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[EObject] identifier[current] operator[=] Other[null] operator[SEP] identifier[Token] identifier[otherlv_6] operator[=] Other[null] operator[S...
public static void off(HammerTime hammerTime, EventType eventType, NativeHammmerHandler callback) { off(hammerTime, callback, eventType.getText()); }
class class_name[name] begin[{] method[off, return_type[void], modifier[public static], parameter[hammerTime, eventType, callback]] begin[{] call[.off, parameter[member[.hammerTime], member[.callback], call[eventType.getText, parameter[]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[off] operator[SEP] identifier[HammerTime] identifier[hammerTime] , identifier[EventType] identifier[eventType] , identifier[NativeHammmerHandler] identifier[callback] operator[SEP] { identifier[off] operator[SEP] identifier[hammerTime] , identifier[call...
public void deleteStoreDefinition(String storeName) { // acquire write lock writeLock.lock(); try { // Check if store exists if(!this.storeNames.contains(storeName)) { throw new VoldemortException("Requested store to be deleted does not exist !"); ...
class class_name[name] begin[{] method[deleteStoreDefinition, return_type[void], modifier[public], parameter[storeName]] begin[{] call[writeLock.lock, parameter[]] TryStatement(block=[IfStatement(condition=This(postfix_operators=[], prefix_operators=['!'], qualifier=None, selectors=[Mem...
Keyword[public] Keyword[void] identifier[deleteStoreDefinition] operator[SEP] identifier[String] identifier[storeName] operator[SEP] { identifier[writeLock] operator[SEP] identifier[lock] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { Keyword[if] operator[SEP] operator[!] Keyword[this] opera...
public void run(ExpectState state) throws Exception { int flags = 0; // TCL.NAMESPACE_ONLY // TODO Inject expect object, so that expect wrapper can access it // clear previous expect_out //interp.unsetVar("expect_out", flags); String buffer = state.getBuffer(); logger.t...
class class_name[name] begin[{] method[run, return_type[void], modifier[public], parameter[state]] begin[{] local_variable[type[int], flags] local_variable[type[String], buffer] call[logger.trace, parameter[binary_operation[literal["Setting var expect_out(buffer) to "], +, membe...
Keyword[public] Keyword[void] identifier[run] operator[SEP] identifier[ExpectState] identifier[state] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[int] identifier[flags] operator[=] Other[0] operator[SEP] identifier[String] identifier[buffer] operator[=] identifier[state] operator[SEP] identifie...
public int compare(Class toType_a, Class toType_b) { TypeDesc from = mFrom; TypeDesc a = TypeDesc.forClass(toType_a); TypeDesc b = TypeDesc.forClass(toType_b); if (from == a) { if (from == b) { return 0; } return -1; ...
class class_name[name] begin[{] method[compare, return_type[type[int]], modifier[public], parameter[toType_a, toType_b]] begin[{] local_variable[type[TypeDesc], from] local_variable[type[TypeDesc], a] local_variable[type[TypeDesc], b] if[binary_operation[member[.from], =...
Keyword[public] Keyword[int] identifier[compare] operator[SEP] identifier[Class] identifier[toType_a] , identifier[Class] identifier[toType_b] operator[SEP] { identifier[TypeDesc] identifier[from] operator[=] identifier[mFrom] operator[SEP] identifier[TypeDesc] identifier[a] operator[=] identifier[TypeDesc] ope...
public void writeln(String text) throws IOException { this.writer.write(text); if (text != null && text.length() > 0) { this.writer.write("\n"); //$NON-NLS-1$ } }
class class_name[name] begin[{] method[writeln, return_type[void], modifier[public], parameter[text]] begin[{] THIS[member[None.writer]call[None.write, parameter[member[.text]]]] if[binary_operation[binary_operation[member[.text], !=, literal[null]], &&, binary_operation[call[te...
Keyword[public] Keyword[void] identifier[writeln] operator[SEP] identifier[String] identifier[text] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[this] operator[SEP] identifier[writer] operator[SEP] identifier[write] operator[SEP] identifier[text] operator[SEP] operator[SEP] Keyword[if] operato...
public static String prettyHexDump(ByteBuf buffer, int offset, int length) { return HexUtil.prettyHexDump(buffer, offset, length); }
class class_name[name] begin[{] method[prettyHexDump, return_type[type[String]], modifier[public static], parameter[buffer, offset, length]] begin[{] return[call[HexUtil.prettyHexDump, parameter[member[.buffer], member[.offset], member[.length]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[prettyHexDump] operator[SEP] identifier[ByteBuf] identifier[buffer] , Keyword[int] identifier[offset] , Keyword[int] identifier[length] operator[SEP] { Keyword[return] identifier[HexUtil] operator[SEP] identifier[prettyHexDump] operator[SEP] identif...
@Override protected boolean shouldDoSpnego(final String remoteIp) { val ipCheck = ipPatternCanBeChecked(remoteIp); if (ipCheck && !ipPatternMatches(remoteIp)) { return false; } val hostName = getRemoteHostName(remoteIp); LOGGER.debug("Retrieved host name for the r...
class class_name[name] begin[{] method[shouldDoSpnego, return_type[type[boolean]], modifier[protected], parameter[remoteIp]] begin[{] local_variable[type[val], ipCheck] if[binary_operation[member[.ipCheck], &&, call[.ipPatternMatches, parameter[member[.remoteIp]]]]] begin[{] ...
annotation[@] identifier[Override] Keyword[protected] Keyword[boolean] identifier[shouldDoSpnego] operator[SEP] Keyword[final] identifier[String] identifier[remoteIp] operator[SEP] { identifier[val] identifier[ipCheck] operator[=] identifier[ipPatternCanBeChecked] operator[SEP] identifier[remoteIp] operator[SEP]...
private static double computeApproxBinoUB(final long numSamplesI, final double theta, final int numSDev) { if (theta == 1.0) { return (numSamplesI); } else if (numSamplesI == 0) { final double delta = deltaOfNumSDev[numSDev]; final double rawUB = (Math.log(delta)) / (Math.log(1.0 - ...
class class_name[name] begin[{] method[computeApproxBinoUB, return_type[type[double]], modifier[private static], parameter[numSamplesI, theta, numSDev]] begin[{] if[binary_operation[member[.theta], ==, literal[1.0]]] begin[{] return[member[.numSamplesI]] else begin[{] ...
Keyword[private] Keyword[static] Keyword[double] identifier[computeApproxBinoUB] operator[SEP] Keyword[final] Keyword[long] identifier[numSamplesI] , Keyword[final] Keyword[double] identifier[theta] , Keyword[final] Keyword[int] identifier[numSDev] operator[SEP] { Keyword[if] operator[SEP] identifier[theta] op...
char verticals(int row, int column) { boolean result = (match & LEFT) == LEFT && column == column1; result |= (match & INNER_VERTICAL) == INNER_VERTICAL && column > column1 && column < column2; result |= (match & RIGHT) == RIGHT && column == column2; result &= row >= row1; result &= row < row2; return resu...
class class_name[name] begin[{] method[verticals, return_type[type[char]], modifier[default], parameter[row, column]] begin[{] local_variable[type[boolean], result] assign[member[.result], binary_operation[binary_operation[binary_operation[binary_operation[member[.match], &, member[.INN...
Keyword[char] identifier[verticals] operator[SEP] Keyword[int] identifier[row] , Keyword[int] identifier[column] operator[SEP] { Keyword[boolean] identifier[result] operator[=] operator[SEP] identifier[match] operator[&] identifier[LEFT] operator[SEP] operator[==] identifier[LEFT] operator[&&] identifier[column...
public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case SPOUTS: return is_set_spouts(); case BOLTS: return is_set_bolts(); case STATE_SPOUTS: return is_set_state_spouts(); } throw new IllegalStateEx...
class class_name[name] begin[{] method[isSet, return_type[type[boolean]], modifier[public], parameter[field]] begin[{] if[binary_operation[member[.field], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, po...
Keyword[public] Keyword[boolean] identifier[isSet] operator[SEP] identifier[_Fields] identifier[field] operator[SEP] { Keyword[if] operator[SEP] identifier[field] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] operator[SEP] opera...
@Override public void handleMessage(Message message) { final Crouton crouton = (Crouton) message.obj; if (null == crouton) { return; } switch (message.what) { case Messages.DISPLAY_CROUTON: { displayCrouton(); break; } case Messages.ADD_CROUTON_TO_VIEW: { ...
class class_name[name] begin[{] method[handleMessage, return_type[void], modifier[public], parameter[message]] begin[{] local_variable[type[Crouton], crouton] if[binary_operation[literal[null], ==, member[.crouton]]] begin[{] return[None] else begin[{] None e...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[handleMessage] operator[SEP] identifier[Message] identifier[message] operator[SEP] { Keyword[final] identifier[Crouton] identifier[crouton] operator[=] operator[SEP] identifier[Crouton] operator[SEP] identifier[message] operator[SEP] ide...
public Iterable<DUser> queryByState(java.lang.Integer state) { return queryByField(null, DUserMapper.Field.STATE.getFieldName(), state); }
class class_name[name] begin[{] method[queryByState, return_type[type[Iterable]], modifier[public], parameter[state]] begin[{] return[call[.queryByField, parameter[literal[null], call[DUserMapper.Field.STATE.getFieldName, parameter[]], member[.state]]]] end[}] END[}]
Keyword[public] identifier[Iterable] operator[<] identifier[DUser] operator[>] identifier[queryByState] operator[SEP] identifier[java] operator[SEP] identifier[lang] operator[SEP] identifier[Integer] identifier[state] operator[SEP] { Keyword[return] identifier[queryByField] operator[SEP] Other[null] , identifie...
public void swapType() { if (type.equals(TYPE_AND)) { type = TYPE_OR; } else if (type.equals(TYPE_OR)) { type = TYPE_AND; } else { throw new Error("unknown type"); } swapNot(); List<MtasSpanQuery> queryList = positiveQueryList; positiveQueryList = negativeQueryList; neg...
class class_name[name] begin[{] method[swapType, return_type[void], modifier[public], parameter[]] begin[{] if[call[type.equals, parameter[member[.TYPE_AND]]]] begin[{] assign[member[.type], member[.TYPE_OR]] else begin[{] if[call[type.equals, paramet...
Keyword[public] Keyword[void] identifier[swapType] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[type] operator[SEP] identifier[equals] operator[SEP] identifier[TYPE_AND] operator[SEP] operator[SEP] { identifier[type] operator[=] identifier[TYPE_OR] operator[SEP] } K...
public boolean nextIs(PatternConstant constant) { char[] cs = constant.getCharArray(); int length = cs.length; if (length > textLength - offset) { return false; } if (!constant.isIgnoreCase()) { int i; //noinspection StatementWithEmptyBody ...
class class_name[name] begin[{] method[nextIs, return_type[type[boolean]], modifier[public], parameter[constant]] begin[{] local_variable[type[char], cs] local_variable[type[int], length] if[binary_operation[member[.length], >, binary_operation[member[.textLength], -, member[.of...
Keyword[public] Keyword[boolean] identifier[nextIs] operator[SEP] identifier[PatternConstant] identifier[constant] operator[SEP] { Keyword[char] operator[SEP] operator[SEP] identifier[cs] operator[=] identifier[constant] operator[SEP] identifier[getCharArray] operator[SEP] operator[SEP] operator[SEP] Keyword[int...
@Override public ProvisionProductResult provisionProduct(ProvisionProductRequest request) { request = beforeClientExecution(request); return executeProvisionProduct(request); }
class class_name[name] begin[{] method[provisionProduct, return_type[type[ProvisionProductResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeProvisionProduct, parameter[member[....
annotation[@] identifier[Override] Keyword[public] identifier[ProvisionProductResult] identifier[provisionProduct] operator[SEP] identifier[ProvisionProductRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP...
public void clickOnScreen(float x, float y, View view) { boolean successfull = false; int retry = 0; SecurityException ex = null; while(!successfull && retry < 20) { long downTime = SystemClock.uptimeMillis(); long eventTime = SystemClock.uptimeMillis(); MotionEvent event = MotionEvent.obtain(downTime...
class class_name[name] begin[{] method[clickOnScreen, return_type[void], modifier[public], parameter[x, y, view]] begin[{] local_variable[type[boolean], successfull] local_variable[type[int], retry] local_variable[type[SecurityException], ex] while[binary_operation[membe...
Keyword[public] Keyword[void] identifier[clickOnScreen] operator[SEP] Keyword[float] identifier[x] , Keyword[float] identifier[y] , identifier[View] identifier[view] operator[SEP] { Keyword[boolean] identifier[successfull] operator[=] literal[boolean] operator[SEP] Keyword[int] identifier[retry] operator[=] Ot...
public List subList(List.Entry fromEntry, List.Entry toEntry) throws ObjectManagerException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, "subList", new Object[]...
class class_name[name] begin[{] method[subList, return_type[type[List]], modifier[public], parameter[fromEntry, toEntry]] begin[{] if[binary_operation[call[Tracing.isAnyTracingEnabled, parameter[]], &&, call[trace.isEntryEnabled, parameter[]]]] begin[{] call[trace.entry, parameter[T...
Keyword[public] identifier[List] identifier[subList] operator[SEP] identifier[List] operator[SEP] identifier[Entry] identifier[fromEntry] , identifier[List] operator[SEP] identifier[Entry] identifier[toEntry] operator[SEP] Keyword[throws] identifier[ObjectManagerException] { Keyword[if] operator[SEP] identifier...
public String edit() { Entity<?> entity = getEntity(); put(getShortName(), entity); editSetting(entity); return forward(); }
class class_name[name] begin[{] method[edit, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[Entity], entity] call[.put, parameter[call[.getShortName, parameter[]], member[.entity]]] call[.editSetting, parameter[member[.entity]]] ...
Keyword[public] identifier[String] identifier[edit] operator[SEP] operator[SEP] { identifier[Entity] operator[<] operator[?] operator[>] identifier[entity] operator[=] identifier[getEntity] operator[SEP] operator[SEP] operator[SEP] identifier[put] operator[SEP] identifier[getShortName] operator[SEP] operator[SEP...
private static void getDateTimeSkeleton(String skeleton, StringBuilder dateSkeleton, StringBuilder normalizedDateSkeleton, StringBuilder timeSkeleton, ...
class class_name[name] begin[{] method[getDateTimeSkeleton, return_type[void], modifier[private static], parameter[skeleton, dateSkeleton, normalizedDateSkeleton, timeSkeleton, normalizedTimeSkeleton]] begin[{] local_variable[type[int], i] local_variable[type[int], ECount] local_variabl...
Keyword[private] Keyword[static] Keyword[void] identifier[getDateTimeSkeleton] operator[SEP] identifier[String] identifier[skeleton] , identifier[StringBuilder] identifier[dateSkeleton] , identifier[StringBuilder] identifier[normalizedDateSkeleton] , identifier[StringBuilder] identifier[timeSkeleton] , identifier[S...
private static List<SessionStatus> getEndStates() { List<SessionStatus> endStatesRet = new ArrayList<SessionStatus>(); for (SessionStatus s : SessionStatus.values()) { if (s != SessionStatus.RUNNING) { endStatesRet.add(s); } } return endStatesRet; }
class class_name[name] begin[{] method[getEndStates, return_type[type[List]], modifier[private static], parameter[]] begin[{] local_variable[type[List], endStatesRet] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=s...
Keyword[private] Keyword[static] identifier[List] operator[<] identifier[SessionStatus] operator[>] identifier[getEndStates] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[SessionStatus] operator[>] identifier[endStatesRet] operator[=] Keyword[new] identifier[ArrayList] operator[<] identif...
public DataLakeAnalyticsAccountInner beginUpdate(String resourceGroupName, String accountName, UpdateDataLakeAnalyticsAccountParameters parameters) { return beginUpdateWithServiceResponseAsync(resourceGroupName, accountName, parameters).toBlocking().single().body(); }
class class_name[name] begin[{] method[beginUpdate, return_type[type[DataLakeAnalyticsAccountInner]], modifier[public], parameter[resourceGroupName, accountName, parameters]] begin[{] return[call[.beginUpdateWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.accountName], member[.p...
Keyword[public] identifier[DataLakeAnalyticsAccountInner] identifier[beginUpdate] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[accountName] , identifier[UpdateDataLakeAnalyticsAccountParameters] identifier[parameters] operator[SEP] { Keyword[return] identifier[...
public void setMinMeasuredValue(final double MIN_MEASURED_VALUE) { if (Double.compare(MIN_MEASURED_VALUE, niceMinValue) >= 0 && Double.compare(MIN_MEASURED_VALUE, niceMaxValue) <= 0) { minMeasuredValue = MIN_MEASURED_VALUE; } else { if (MIN_MEASURED_VALUE < niceMinValue) { ...
class class_name[name] begin[{] method[setMinMeasuredValue, return_type[void], modifier[public], parameter[MIN_MEASURED_VALUE]] begin[{] if[binary_operation[binary_operation[call[Double.compare, parameter[member[.MIN_MEASURED_VALUE], member[.niceMinValue]]], >=, literal[0]], &&, binary_operatio...
Keyword[public] Keyword[void] identifier[setMinMeasuredValue] operator[SEP] Keyword[final] Keyword[double] identifier[MIN_MEASURED_VALUE] operator[SEP] { Keyword[if] operator[SEP] identifier[Double] operator[SEP] identifier[compare] operator[SEP] identifier[MIN_MEASURED_VALUE] , identifier[niceMinValue] operato...
public synchronized void setThreadFactory(ThreadFactory factory) { if(factory == null) factory = Executors.defaultThreadFactory(); threadFactory = factory; }
class class_name[name] begin[{] method[setThreadFactory, return_type[void], modifier[synchronized public], parameter[factory]] begin[{] if[binary_operation[member[.factory], ==, literal[null]]] begin[{] assign[member[.factory], call[Executors.defaultThreadFactory, parameter[]]] ...
Keyword[public] Keyword[synchronized] Keyword[void] identifier[setThreadFactory] operator[SEP] identifier[ThreadFactory] identifier[factory] operator[SEP] { Keyword[if] operator[SEP] identifier[factory] operator[==] Other[null] operator[SEP] identifier[factory] operator[=] identifier[Executors] operator[SEP] ide...
private FormLayout initForm() { FormLayout form = new FormLayout(); form.setWidth("100%"); m_targetPath = new CmsPathSelectField(); m_targetPath.setCaption( CmsVaadinUtils.getMessageText(org.opencms.workplace.commons.Messages.GUI_COPY_MOVE_TARGET_0)); m_targetPath.se...
class class_name[name] begin[{] method[initForm, return_type[type[FormLayout]], modifier[private], parameter[]] begin[{] local_variable[type[FormLayout], form] call[form.setWidth, parameter[literal["100%"]]] assign[member[.m_targetPath], ClassCreator(arguments=[], body=N...
Keyword[private] identifier[FormLayout] identifier[initForm] operator[SEP] operator[SEP] { identifier[FormLayout] identifier[form] operator[=] Keyword[new] identifier[FormLayout] operator[SEP] operator[SEP] operator[SEP] identifier[form] operator[SEP] identifier[setWidth] operator[SEP] literal[String] operator[S...
@Override public synchronized void write(DataOutput out) throws IOException { out.writeInt(groups.size()); for (org.apache.hadoop.mapreduce.CounterGroup group: groups.values()) { Text.writeString(out, group.getName()); group.write(out); } }
class class_name[name] begin[{] method[write, return_type[void], modifier[synchronized public], parameter[out]] begin[{] call[out.writeInt, parameter[call[groups.size, parameter[]]]] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation...
annotation[@] identifier[Override] Keyword[public] Keyword[synchronized] Keyword[void] identifier[write] operator[SEP] identifier[DataOutput] identifier[out] operator[SEP] Keyword[throws] identifier[IOException] { identifier[out] operator[SEP] identifier[writeInt] operator[SEP] identifier[groups] operator[SEP] i...
public int getSeqPos(int aligSeq, Point p) { int x = p.x - DEFAULT_X_SPACE - DEFAULT_LEGEND_SIZE; int y = p.y - DEFAULT_Y_SPACE ; y -= (DEFAULT_LINE_SEPARATION * aligSeq) - DEFAULT_CHAR_SIZE; int lineNr = y / DEFAULT_Y_STEP; int linePos = x / DEFAULT_CHAR_SIZE; return lineNr * DEFAULT_LINE_LENGTH + line...
class class_name[name] begin[{] method[getSeqPos, return_type[type[int]], modifier[public], parameter[aligSeq, p]] begin[{] local_variable[type[int], x] local_variable[type[int], y] assign[member[.y], binary_operation[binary_operation[member[.DEFAULT_LINE_SEPARATION], *, member[...
Keyword[public] Keyword[int] identifier[getSeqPos] operator[SEP] Keyword[int] identifier[aligSeq] , identifier[Point] identifier[p] operator[SEP] { Keyword[int] identifier[x] operator[=] identifier[p] operator[SEP] identifier[x] operator[-] identifier[DEFAULT_X_SPACE] operator[-] identifier[DEFAULT_LEGEND_SIZE]...
@Override public void setStatus(int value) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "setStatus(int) : " + value); } // check if the buffer should be converted before setting the status if (value == STATUS_BUFFER) { con...
class class_name[name] begin[{] method[setStatus, return_type[void], modifier[public], parameter[value]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isDebugEnabled, parameter[]]]] begin[{] call[Tr.debug, parameter[membe...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setStatus] operator[SEP] Keyword[int] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[S...
public <T, U> ExecutionChain runOnBackgroundThread(Runnable r) { runOnThread(Context.Type.BACKGROUND, new RunnableTask(r)); return this; }
class class_name[name] begin[{] method[runOnBackgroundThread, return_type[type[ExecutionChain]], modifier[public], parameter[r]] begin[{] call[.runOnThread, parameter[member[Context.Type.BACKGROUND], ClassCreator(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qu...
Keyword[public] operator[<] identifier[T] , identifier[U] operator[>] identifier[ExecutionChain] identifier[runOnBackgroundThread] operator[SEP] identifier[Runnable] identifier[r] operator[SEP] { identifier[runOnThread] operator[SEP] identifier[Context] operator[SEP] identifier[Type] operator[SEP] identifier[BA...
public DscNodeConfigurationInner get(String resourceGroupName, String automationAccountName, String nodeConfigurationName) { return getWithServiceResponseAsync(resourceGroupName, automationAccountName, nodeConfigurationName).toBlocking().single().body(); }
class class_name[name] begin[{] method[get, return_type[type[DscNodeConfigurationInner]], modifier[public], parameter[resourceGroupName, automationAccountName, nodeConfigurationName]] begin[{] return[call[.getWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.automationAccountName]...
Keyword[public] identifier[DscNodeConfigurationInner] identifier[get] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[automationAccountName] , identifier[String] identifier[nodeConfigurationName] operator[SEP] { Keyword[return] identifier[getWithServiceResponseAsy...
static int compareAddresses(byte[] current, byte[] candidate) { if (candidate == null || candidate.length < EUI48_MAC_ADDRESS_LENGTH) { return 1; } // Must not be filled with only 0 and 1. boolean onlyZeroAndOne = true; for (byte b: candidate) { if (b != ...
class class_name[name] begin[{] method[compareAddresses, return_type[type[int]], modifier[static], parameter[current, candidate]] begin[{] if[binary_operation[binary_operation[member[.candidate], ==, literal[null]], ||, binary_operation[member[candidate.length], <, member[.EUI48_MAC_ADDRESS_LEN...
Keyword[static] Keyword[int] identifier[compareAddresses] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[current] , Keyword[byte] operator[SEP] operator[SEP] identifier[candidate] operator[SEP] { Keyword[if] operator[SEP] identifier[candidate] operator[==] Other[null] operator[||] identifier...
public static ManagedObject createExactManagedObject(ServerConnection sc, ManagedObjectReference mor) { if (mor == null) { return null; } String moType = mor.getType(); Class moClass = null; try { moClass = Class.forName(moPackageName + "." + moTy...
class class_name[name] begin[{] method[createExactManagedObject, return_type[type[ManagedObject]], modifier[public static], parameter[sc, mor]] begin[{] if[binary_operation[member[.mor], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] ...
Keyword[public] Keyword[static] identifier[ManagedObject] identifier[createExactManagedObject] operator[SEP] identifier[ServerConnection] identifier[sc] , identifier[ManagedObjectReference] identifier[mor] operator[SEP] { Keyword[if] operator[SEP] identifier[mor] operator[==] Other[null] operator[SEP] { ...
@Override public void eUnset(int featureID) { switch (featureID) { case AfplibPackage.MCARG__RG_LENGTH: setRGLength(RG_LENGTH_EDEFAULT); return; case AfplibPackage.MCARG__TRIPLETS: getTriplets().clear(); return; } super.eUnset(featureID); }
class class_name[name] begin[{] method[eUnset, return_type[void], modifier[public], parameter[featureID]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=MCARG__RG_LENGTH, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])], statements=[St...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[eUnset] operator[SEP] Keyword[int] identifier[featureID] operator[SEP] { Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] { Keyword[case] identifier[AfplibPackage] operator[SEP] identifier[MCARG__RG_LENGTH] op...
@BetaApi public final AggregatedListTargetPoolsPagedResponse aggregatedListTargetPools(String project) { AggregatedListTargetPoolsHttpRequest request = AggregatedListTargetPoolsHttpRequest.newBuilder().setProject(project).build(); return aggregatedListTargetPools(request); }
class class_name[name] begin[{] method[aggregatedListTargetPools, return_type[type[AggregatedListTargetPoolsPagedResponse]], modifier[final public], parameter[project]] begin[{] local_variable[type[AggregatedListTargetPoolsHttpRequest], request] return[call[.aggregatedListTargetPools, parameter...
annotation[@] identifier[BetaApi] Keyword[public] Keyword[final] identifier[AggregatedListTargetPoolsPagedResponse] identifier[aggregatedListTargetPools] operator[SEP] identifier[String] identifier[project] operator[SEP] { identifier[AggregatedListTargetPoolsHttpRequest] identifier[request] operator[=] identifie...