code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public static void adjustArray(int type, Object array, int usedElements, int index, int count) { if (index >= usedElements) { return; } int newCount = usedElements + count; int source; int target; int size; if (cou...
class class_name[name] begin[{] method[adjustArray, return_type[void], modifier[public static], parameter[type, array, usedElements, index, count]] begin[{] if[binary_operation[member[.index], >=, member[.usedElements]]] begin[{] return[None] else begin[{] None end[}...
Keyword[public] Keyword[static] Keyword[void] identifier[adjustArray] operator[SEP] Keyword[int] identifier[type] , identifier[Object] identifier[array] , Keyword[int] identifier[usedElements] , Keyword[int] identifier[index] , Keyword[int] identifier[count] operator[SEP] { Keyword[if] operator[SEP] identifi...
public void marshall(UpdateSecurityProfileRequest updateSecurityProfileRequest, ProtocolMarshaller protocolMarshaller) { if (updateSecurityProfileRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[updateSecurityProfileRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.updateSecurityProfileRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[UpdateSecurityProfileRequest] identifier[updateSecurityProfileRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[updateSecurityProfileRequest] operator[==] Other...
public JBBPDslBuilder Float(final String name) { final Item item = new Item(BinType.FLOAT, name, this.byteOrder); this.addItem(item); return this; }
class class_name[name] begin[{] method[Float, return_type[type[JBBPDslBuilder]], modifier[public], parameter[name]] begin[{] local_variable[type[Item], item] THIS[call[None.addItem, parameter[member[.item]]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[JBBPDslBuilder] identifier[Float] operator[SEP] Keyword[final] identifier[String] identifier[name] operator[SEP] { Keyword[final] identifier[Item] identifier[item] operator[=] Keyword[new] identifier[Item] operator[SEP] identifier[BinType] operator[SEP] identifier[FLOAT] , identifier[...
protected void fireEscapingEvent(String name, String data) throws org.xml.sax.SAXException { if (m_tracer != null) { flushMyWriter(); m_tracer.fireGenerateEvent(SerializerTrace.EVENTTYPE_PI,name, data); } }
class class_name[name] begin[{] method[fireEscapingEvent, return_type[void], modifier[protected], parameter[name, data]] begin[{] if[binary_operation[member[.m_tracer], !=, literal[null]]] begin[{] call[.flushMyWriter, parameter[]] call[m_tracer.f...
Keyword[protected] Keyword[void] identifier[fireEscapingEvent] operator[SEP] identifier[String] identifier[name] , identifier[String] identifier[data] operator[SEP] Keyword[throws] identifier[org] operator[SEP] identifier[xml] operator[SEP] identifier[sax] operator[SEP] identifier[SAXException] { Keyword[if] op...
@Override public boolean shouldUseLockFree() { return CONFIGURATION.getBooleanProperty( NETFLIX_BLITZ4J_LOCKFREE, Boolean.valueOf(this.getPropertyValue(NETFLIX_BLITZ4J_LOCKFREE, "true"))).get(); }
class class_name[name] begin[{] method[shouldUseLockFree, return_type[type[boolean]], modifier[public], parameter[]] begin[{] return[call[CONFIGURATION.getBooleanProperty, parameter[member[.NETFLIX_BLITZ4J_LOCKFREE], call[Boolean.valueOf, parameter[THIS[call[None.getPropertyValue, parameter[member[.NET...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[shouldUseLockFree] operator[SEP] operator[SEP] { Keyword[return] identifier[CONFIGURATION] operator[SEP] identifier[getBooleanProperty] operator[SEP] identifier[NETFLIX_BLITZ4J_LOCKFREE] , identifier[Boolean] operator[SEP] identifier...
public java.util.List<Preset> getPresets() { if (presets == null) { presets = new com.amazonaws.internal.SdkInternalList<Preset>(); } return presets; }
class class_name[name] begin[{] method[getPresets, return_type[type[java]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.presets], ==, literal[null]]] begin[{] assign[member[.presets], ClassCreator(arguments=[], body=None, constructor_type_argument...
Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[Preset] operator[>] identifier[getPresets] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[presets] operator[==] Other[null] operator[SEP] { identifier[presets] oper...
public Description describe() { String defined_in_id = "IR"; if (defined_in instanceof ContainedOperations) defined_in_id = ((ContainedOperations) defined_in).id(); AttributeDescription d = new AttributeDescription(name, id, defined_in_id, version, ...
class class_name[name] begin[{] method[describe, return_type[type[Description]], modifier[public], parameter[]] begin[{] local_variable[type[String], defined_in_id] if[binary_operation[member[.defined_in], instanceof, type[ContainedOperations]]] begin[{] assign[member[.defin...
Keyword[public] identifier[Description] identifier[describe] operator[SEP] operator[SEP] { identifier[String] identifier[defined_in_id] operator[=] literal[String] operator[SEP] Keyword[if] operator[SEP] identifier[defined_in] Keyword[instanceof] identifier[ContainedOperations] operator[SEP] identifier[defined_i...
public SerIterable createIterable(SerIterable iterable) { List<Class<?>> valueTypeTypes = iterable.valueTypeTypes(); if (valueTypeTypes.size() > 0) { Class<?> valueType = iterable.valueType(); if (NavigableSet.class.isAssignableFrom(valueType)) { return navigableS...
class class_name[name] begin[{] method[createIterable, return_type[type[SerIterable]], modifier[public], parameter[iterable]] begin[{] local_variable[type[List], valueTypeTypes] if[binary_operation[call[valueTypeTypes.size, parameter[]], >, literal[0]]] begin[{] local_variab...
Keyword[public] identifier[SerIterable] identifier[createIterable] operator[SEP] identifier[SerIterable] identifier[iterable] operator[SEP] { identifier[List] operator[<] identifier[Class] operator[<] operator[?] operator[>] operator[>] identifier[valueTypeTypes] operator[=] identifier[iterable] operator[SEP] id...
public static String constructHadoopTags(Props props, String[] keys) { String[] keysAndValues = new String[keys.length]; for (int i = 0; i < keys.length; i++) { if (props.containsKey(keys[i])) { keysAndValues[i] = keys[i] + ":" + props.get(keys[i]); } } Joiner joiner = Joiner.on(',')...
class class_name[name] begin[{] method[constructHadoopTags, return_type[type[String]], modifier[public static], parameter[props, keys]] begin[{] local_variable[type[String], keysAndValues] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=...
Keyword[public] Keyword[static] identifier[String] identifier[constructHadoopTags] operator[SEP] identifier[Props] identifier[props] , identifier[String] operator[SEP] operator[SEP] identifier[keys] operator[SEP] { identifier[String] operator[SEP] operator[SEP] identifier[keysAndValues] operator[=] Keyword[new]...
public Tree clear(String path) { Tree child = getChild(path, false); if (child == null) { child = putMap(path); } else { child.clear(); } return child; }
class class_name[name] begin[{] method[clear, return_type[type[Tree]], modifier[public], parameter[path]] begin[{] local_variable[type[Tree], child] if[binary_operation[member[.child], ==, literal[null]]] begin[{] assign[member[.child], call[.putMap, parameter[me...
Keyword[public] identifier[Tree] identifier[clear] operator[SEP] identifier[String] identifier[path] operator[SEP] { identifier[Tree] identifier[child] operator[=] identifier[getChild] operator[SEP] identifier[path] , literal[boolean] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[child] opera...
public HttpSessionActivity getHttpSessionActivity(HttpSession httpSession) throws NullPointerException, IllegalArgumentException, IllegalStateException, ActivityAlreadyExistsException, StartActivityException, SLEEException { if (httpSession == null) { throw new NullPointerException("null http session...
class class_name[name] begin[{] method[getHttpSessionActivity, return_type[type[HttpSessionActivity]], modifier[public], parameter[httpSession]] begin[{] if[binary_operation[member[.httpSession], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(...
Keyword[public] identifier[HttpSessionActivity] identifier[getHttpSessionActivity] operator[SEP] identifier[HttpSession] identifier[httpSession] operator[SEP] Keyword[throws] identifier[NullPointerException] , identifier[IllegalArgumentException] , identifier[IllegalStateException] , identifier[ActivityAlreadyExists...
public <T> T parse(InputStream in, JsonReaderI<T> mapper) throws ParseException, UnsupportedEncodingException { return getPBinStream().parse(in, mapper); }
class class_name[name] begin[{] method[parse, return_type[type[T]], modifier[public], parameter[in, mapper]] begin[{] return[call[.getPBinStream, parameter[]]] end[}] END[}]
Keyword[public] operator[<] identifier[T] operator[>] identifier[T] identifier[parse] operator[SEP] identifier[InputStream] identifier[in] , identifier[JsonReaderI] operator[<] identifier[T] operator[>] identifier[mapper] operator[SEP] Keyword[throws] identifier[ParseException] , identifier[UnsupportedEncodingExcepti...
public static ValidatorFactoryMaker newInstance() { ValidatorFactoryMaker ret = new ValidatorFactoryMaker(); for (ValidatorFactory f : ServiceLoader.load(ValidatorFactory.class)) { f.setCreatedWithSPI(); ret.addFactory(f); } return ret; }
class class_name[name] begin[{] method[newInstance, return_type[type[ValidatorFactoryMaker]], modifier[public static], parameter[]] begin[{] local_variable[type[ValidatorFactoryMaker], ret] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(...
Keyword[public] Keyword[static] identifier[ValidatorFactoryMaker] identifier[newInstance] operator[SEP] operator[SEP] { identifier[ValidatorFactoryMaker] identifier[ret] operator[=] Keyword[new] identifier[ValidatorFactoryMaker] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Vali...
@Override public void write(final Writer writer) throws ConfigurationException, IOException { Preconditions.checkNotNull(writer); @SuppressWarnings("unchecked") final HashMap<String, Object> settings = (HashMap<String, Object>) fromNode(this.getModel().getInMemoryRepresentation()); ...
class class_name[name] begin[{] method[write, return_type[void], modifier[public], parameter[writer]] begin[{] call[Preconditions.checkNotNull, parameter[member[.writer]]] local_variable[type[HashMap], settings] THIS[member[None.mapper]call[None.writerWithDefaultPrettyPr...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[write] operator[SEP] Keyword[final] identifier[Writer] identifier[writer] operator[SEP] Keyword[throws] identifier[ConfigurationException] , identifier[IOException] { identifier[Preconditions] operator[SEP] identifier[checkNotNull] oper...
public final void mEXPONENT() throws RecognitionException { try { // EventFilter.g:243:10: ( ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ ) // EventFilter.g:243:12: ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ { if ( input.LA(1)=='E'||input.LA(1)=='e' ) { ...
class class_name[name] begin[{] method[mEXPONENT, return_type[void], modifier[final public], parameter[]] begin[{] TryStatement(block=[BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation(arguments=[Literal(postfix_operators=[],...
Keyword[public] Keyword[final] Keyword[void] identifier[mEXPONENT] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { Keyword[try] { { Keyword[if] operator[SEP] identifier[input] operator[SEP] identifier[LA] operator[SEP] Other[1] operator[SEP] operator[==] l...
@Override public RegisterEventTopicResult registerEventTopic(RegisterEventTopicRequest request) { request = beforeClientExecution(request); return executeRegisterEventTopic(request); }
class class_name[name] begin[{] method[registerEventTopic, return_type[type[RegisterEventTopicResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeRegisterEventTopic, parameter[me...
annotation[@] identifier[Override] Keyword[public] identifier[RegisterEventTopicResult] identifier[registerEventTopic] operator[SEP] identifier[RegisterEventTopicRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operat...
public <T, R> FlatMapFunction<T, R> flatMapFunction(Class<? extends FlatMapFunction<T, R>> springBeanClass) { return new SpringFlatMapFunction<>(springConfigurationClass, springBeanClass); }
class class_name[name] begin[{] method[flatMapFunction, return_type[type[FlatMapFunction]], modifier[public], parameter[springBeanClass]] begin[{] return[ClassCreator(arguments=[MemberReference(member=springConfigurationClass, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Member...
Keyword[public] operator[<] identifier[T] , identifier[R] operator[>] identifier[FlatMapFunction] operator[<] identifier[T] , identifier[R] operator[>] identifier[flatMapFunction] operator[SEP] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[FlatMapFunction] operator[<] identifier[T] , identifi...
public void unmarshalling(Xdr xdr) { _loaded = true; linkMaximum = xdr.getUnsignedInt(); nameMaximum = xdr.getUnsignedInt(); noTruncation = xdr.getBoolean(); chownRestricted = xdr.getBoolean(); caseInsensitive = xdr.getBoolean(); casePreserving = xdr.getBoolean();...
class class_name[name] begin[{] method[unmarshalling, return_type[void], modifier[public], parameter[xdr]] begin[{] assign[member[._loaded], literal[true]] assign[member[.linkMaximum], call[xdr.getUnsignedInt, parameter[]]] assign[member[.nameMaximum], call[xdr.g...
Keyword[public] Keyword[void] identifier[unmarshalling] operator[SEP] identifier[Xdr] identifier[xdr] operator[SEP] { identifier[_loaded] operator[=] literal[boolean] operator[SEP] identifier[linkMaximum] operator[=] identifier[xdr] operator[SEP] identifier[getUnsignedInt] operator[SEP] operator[SEP] operator[SE...
@Override public void getXliffFromDocumentTranslationRequest(String trId, String srcLanguage, String trgLanguage, OutputStream outputXliff) throws ServiceException, IOException { if (trId == null || trId.isEmpty()) { throw new IllegalArgumentException("Non-empty trId must...
class class_name[name] begin[{] method[getXliffFromDocumentTranslationRequest, return_type[void], modifier[public], parameter[trId, srcLanguage, trgLanguage, outputXliff]] begin[{] if[binary_operation[binary_operation[member[.trId], ==, literal[null]], ||, call[trId.isEmpty, parameter[]]]] begi...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[getXliffFromDocumentTranslationRequest] operator[SEP] identifier[String] identifier[trId] , identifier[String] identifier[srcLanguage] , identifier[String] identifier[trgLanguage] , identifier[OutputStream] identifier[outputXliff] operator[S...
public SqlRepositoryBuilder withSchema(String schemaName) { if (schemaName != null && !schemaName.isEmpty()) { this.schemaName = schemaName; } return this; }
class class_name[name] begin[{] method[withSchema, return_type[type[SqlRepositoryBuilder]], modifier[public], parameter[schemaName]] begin[{] if[binary_operation[binary_operation[member[.schemaName], !=, literal[null]], &&, call[schemaName.isEmpty, parameter[]]]] begin[{] ...
Keyword[public] identifier[SqlRepositoryBuilder] identifier[withSchema] operator[SEP] identifier[String] identifier[schemaName] operator[SEP] { Keyword[if] operator[SEP] identifier[schemaName] operator[!=] Other[null] operator[&&] operator[!] identifier[schemaName] operator[SEP] identifier[isEmpty] operator[SEP]...
public static void cleanAllFolderInSubFolderes(File dir, String name) throws IOException { File[] files = dir.listFiles(); if (files == null) return; for (File d : files) { if (d.isDirectory()) if (d.getName().equalsIgnoreCase(name)) ...
class class_name[name] begin[{] method[cleanAllFolderInSubFolderes, return_type[void], modifier[public static], parameter[dir, name]] begin[{] local_variable[type[File], files] if[binary_operation[member[.files], ==, literal[null]]] begin[{] return[None] else begin[{] None ...
Keyword[public] Keyword[static] Keyword[void] identifier[cleanAllFolderInSubFolderes] operator[SEP] identifier[File] identifier[dir] , identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[IOException] { identifier[File] operator[SEP] operator[SEP] identifier[files] operator[=] identifier...
public static String getPropertyName(String methodName, int parameterCount, String returnType) { if ( methodName == null ) { return null; } String simpleName = methodName.replaceAll( "\\(\\)", ...
class class_name[name] begin[{] method[getPropertyName, return_type[type[String]], modifier[public static], parameter[methodName, parameterCount, returnType]] begin[{] if[binary_operation[member[.methodName], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] N...
Keyword[public] Keyword[static] identifier[String] identifier[getPropertyName] operator[SEP] identifier[String] identifier[methodName] , Keyword[int] identifier[parameterCount] , identifier[String] identifier[returnType] operator[SEP] { Keyword[if] operator[SEP] identifier[methodName] operator[==] Other[null] ...
private void createOrUpdateColumnFamily(TableInfo tableInfo, KsDef ksDef) throws Exception { MetaDataHandler handler = new MetaDataHandler(); if (containsCompositeKey(tableInfo)) { validateCompoundKey(tableInfo); createOrUpdateUsingCQL3(tableInfo, ksDef); ...
class class_name[name] begin[{] method[createOrUpdateColumnFamily, return_type[void], modifier[private], parameter[tableInfo, ksDef]] begin[{] local_variable[type[MetaDataHandler], handler] if[call[.containsCompositeKey, parameter[member[.tableInfo]]]] begin[{] c...
Keyword[private] Keyword[void] identifier[createOrUpdateColumnFamily] operator[SEP] identifier[TableInfo] identifier[tableInfo] , identifier[KsDef] identifier[ksDef] operator[SEP] Keyword[throws] identifier[Exception] { identifier[MetaDataHandler] identifier[handler] operator[=] Keyword[new] identifier[MetaData...
public static SparseDoubleVector subview(SparseDoubleVector vector, int offset, int length) { if (vector == null) throw new NullPointerException("Cannot create view of a " + ...
class class_name[name] begin[{] method[subview, return_type[type[SparseDoubleVector]], modifier[public static], parameter[vector, offset, length]] begin[{] if[binary_operation[member[.vector], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operand...
Keyword[public] Keyword[static] identifier[SparseDoubleVector] identifier[subview] operator[SEP] identifier[SparseDoubleVector] identifier[vector] , Keyword[int] identifier[offset] , Keyword[int] identifier[length] operator[SEP] { Keyword[if] operator[SEP] identifier[vector] operator[==] Other[null] operator[S...
@SuppressWarnings("all") public static List<File> listFiles(final File fileOrDir, final List<Filter<File>> fileFilters, final boolean excludeFilterOperation, final Log log) { // Check sanity...
class class_name[name] begin[{] method[listFiles, return_type[type[List]], modifier[public static], parameter[fileOrDir, fileFilters, excludeFilterOperation, log]] begin[{] call[Validate.notNull, parameter[member[.log], literal["log"]]] call[Validate.notNull, parameter[member[.f...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] identifier[List] operator[<] identifier[File] operator[>] identifier[listFiles] operator[SEP] Keyword[final] identifier[File] identifier[fileOrDir] , Keyword[final] identifier[List] operator[<] identi...
@Override public Object map(Object input) { Number n = (Number) input; return n.doubleValue() - mean; }
class class_name[name] begin[{] method[map, return_type[type[Object]], modifier[public], parameter[input]] begin[{] local_variable[type[Number], n] return[binary_operation[call[n.doubleValue, parameter[]], -, member[.mean]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[map] operator[SEP] identifier[Object] identifier[input] operator[SEP] { identifier[Number] identifier[n] operator[=] operator[SEP] identifier[Number] operator[SEP] identifier[input] operator[SEP] Keyword[return] identifier[n] operat...
private void fillNodesInScope(SiteNode rootNode, List<SiteNode> nodesList) { @SuppressWarnings("unchecked") Enumeration<TreeNode> en = rootNode.children(); while (en.hasMoreElements()) { SiteNode sn = (SiteNode) en.nextElement(); if (isInScope(sn)) nodesList.add(sn); fillNodesInScope(sn, nodes...
class class_name[name] begin[{] method[fillNodesInScope, return_type[void], modifier[private], parameter[rootNode, nodesList]] begin[{] local_variable[type[Enumeration], en] while[call[en.hasMoreElements, parameter[]]] begin[{] local_variable[type[SiteNode], sn] ...
Keyword[private] Keyword[void] identifier[fillNodesInScope] operator[SEP] identifier[SiteNode] identifier[rootNode] , identifier[List] operator[<] identifier[SiteNode] operator[>] identifier[nodesList] operator[SEP] { annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] identif...
@Override public int removeAll(KTypeVTypePredicate<? super KType, ? super VType> predicate) { final int before = size(); final int mask = this.mask; if (hasEmptyKey) { if (predicate.apply(Intrinsics.<KType> empty(), Intrinsics.<VType> cast(values[mask + 1]))) { hasEmptyKey = false; ...
class class_name[name] begin[{] method[removeAll, return_type[type[int]], modifier[public], parameter[predicate]] begin[{] local_variable[type[int], before] local_variable[type[int], mask] if[member[.hasEmptyKey]] begin[{] if[call[predicate.apply, paramet...
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[removeAll] operator[SEP] identifier[KTypeVTypePredicate] operator[<] operator[?] Keyword[super] identifier[KType] , operator[?] Keyword[super] identifier[VType] operator[>] identifier[predicate] operator[SEP] { Keyword[final] Keyword[int...
public void updateMask(AclActions groupActions) { AclActions result = new AclActions(groupActions); for (Map.Entry<String, AclActions> kv : mNamedUserActions.entrySet()) { AclActions userAction = kv.getValue(); result.merge(userAction); for (AclAction action : AclAction.values()) { i...
class class_name[name] begin[{] method[updateMask, return_type[void], modifier[public], parameter[groupActions]] begin[{] local_variable[type[AclActions], result] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(di...
Keyword[public] Keyword[void] identifier[updateMask] operator[SEP] identifier[AclActions] identifier[groupActions] operator[SEP] { identifier[AclActions] identifier[result] operator[=] Keyword[new] identifier[AclActions] operator[SEP] identifier[groupActions] operator[SEP] operator[SEP] Keyword[for] operator[SEP...
public void setScreenImage(byte[] content) { logger.entering(content); this.screenImage = Arrays.copyOf(content, content.length); logger.exiting(); }
class class_name[name] begin[{] method[setScreenImage, return_type[void], modifier[public], parameter[content]] begin[{] call[logger.entering, parameter[member[.content]]] assign[THIS[member[None.screenImage]], call[Arrays.copyOf, parameter[member[.content], member[content.lengt...
Keyword[public] Keyword[void] identifier[setScreenImage] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[content] operator[SEP] { identifier[logger] operator[SEP] identifier[entering] operator[SEP] identifier[content] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[screenIma...
double computeSideError(List<Point2D_I32> contour , int indexA , int indexB ) { assignLine(contour, indexA, indexB, line); // don't sample the end points because the error will be zero by definition int numSamples; double sumOfDistances = 0; int length; if( indexB >= indexA ) { length = indexB-indexA-1;...
class class_name[name] begin[{] method[computeSideError, return_type[type[double]], modifier[default], parameter[contour, indexA, indexB]] begin[{] call[.assignLine, parameter[member[.contour], member[.indexA], member[.indexB], member[.line]]] local_variable[type[int], numSamples] ...
Keyword[double] identifier[computeSideError] operator[SEP] identifier[List] operator[<] identifier[Point2D_I32] operator[>] identifier[contour] , Keyword[int] identifier[indexA] , Keyword[int] identifier[indexB] operator[SEP] { identifier[assignLine] operator[SEP] identifier[contour] , identifier[indexA] , i...
protected void configureParser(LSParser parser) { for (Map.Entry<String, Object> setting : parseSettings.entrySet()) { setParserConfigParameter(parser, setting.getKey(), setting.getValue()); } }
class class_name[name] begin[{] method[configureParser, return_type[void], modifier[protected], parameter[parser]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=parser, postfix_operators=[], prefix_ope...
Keyword[protected] Keyword[void] identifier[configureParser] operator[SEP] identifier[LSParser] identifier[parser] operator[SEP] { Keyword[for] operator[SEP] identifier[Map] operator[SEP] identifier[Entry] operator[<] identifier[String] , identifier[Object] operator[>] identifier[setting] operator[:] identifie...
public Instances kNearestNeighbours(Instance target, int k) throws Exception { checkMissing(target); MyHeap heap = new MyHeap(k); findNearestNeighbours(target, m_Root, k, heap, 0.0); Instances neighbours = new Instances(m_Instances, (heap.size() + heap .noOfKthNearest())); m_DistanceLi...
class class_name[name] begin[{] method[kNearestNeighbours, return_type[type[Instances]], modifier[public], parameter[target, k]] begin[{] call[.checkMissing, parameter[member[.target]]] local_variable[type[MyHeap], heap] call[.findNearestNeighbours, parameter[member[.tar...
Keyword[public] identifier[Instances] identifier[kNearestNeighbours] operator[SEP] identifier[Instance] identifier[target] , Keyword[int] identifier[k] operator[SEP] Keyword[throws] identifier[Exception] { identifier[checkMissing] operator[SEP] identifier[target] operator[SEP] operator[SEP] identifier[MyHeap] i...
static HashMap<String, PatternInfo> qualifyURLPatterns(JBossWebMetaData metaData) { ArrayList<PatternInfo> prefixList = new ArrayList<PatternInfo>(); ArrayList<PatternInfo> extensionList = new ArrayList<PatternInfo>(); ArrayList<PatternInfo> exactList = new ArrayList<PatternInfo>(); Hash...
class class_name[name] begin[{] method[qualifyURLPatterns, return_type[type[HashMap]], modifier[static], parameter[metaData]] begin[{] local_variable[type[ArrayList], prefixList] local_variable[type[ArrayList], extensionList] local_variable[type[ArrayList], exactList] local_vari...
Keyword[static] identifier[HashMap] operator[<] identifier[String] , identifier[PatternInfo] operator[>] identifier[qualifyURLPatterns] operator[SEP] identifier[JBossWebMetaData] identifier[metaData] operator[SEP] { identifier[ArrayList] operator[<] identifier[PatternInfo] operator[>] identifier[prefixList] ope...
static SmushingRulesToApply getRulesToApply(Integer oldLayout, Integer fullLayout){ List<SmushingRule> horizontalSmushingRules = new ArrayList<SmushingRule>(); List<SmushingRule> verticalSmushingRules = new ArrayList<SmushingRule>(); SmushingRule.Layout horizontalLayout = null; SmushingRule.Layout verti...
class class_name[name] begin[{] method[getRulesToApply, return_type[type[SmushingRulesToApply]], modifier[static], parameter[oldLayout, fullLayout]] begin[{] local_variable[type[List], horizontalSmushingRules] local_variable[type[List], verticalSmushingRules] local_variable[type[Smushin...
Keyword[static] identifier[SmushingRulesToApply] identifier[getRulesToApply] operator[SEP] identifier[Integer] identifier[oldLayout] , identifier[Integer] identifier[fullLayout] operator[SEP] { identifier[List] operator[<] identifier[SmushingRule] operator[>] identifier[horizontalSmushingRules] operator[=] Keyw...
private String getApiId(Contract contract) { return getApiId(contract.getApiOrgId(), contract.getApiId(), contract.getApiVersion()); }
class class_name[name] begin[{] method[getApiId, return_type[type[String]], modifier[private], parameter[contract]] begin[{] return[call[.getApiId, parameter[call[contract.getApiOrgId, parameter[]], call[contract.getApiId, parameter[]], call[contract.getApiVersion, parameter[]]]]] end[}] END[}]
Keyword[private] identifier[String] identifier[getApiId] operator[SEP] identifier[Contract] identifier[contract] operator[SEP] { Keyword[return] identifier[getApiId] operator[SEP] identifier[contract] operator[SEP] identifier[getApiOrgId] operator[SEP] operator[SEP] , identifier[contract] operator[SEP] identifi...
public String moveToLostAndFound(CmsDbContext dbc, CmsResource resource, boolean returnNameOnly) throws CmsException, CmsIllegalArgumentException { String resourcename = dbc.removeSiteRoot(resource.getRootPath()); String siteRoot = dbc.getRequestContext().getSiteRoot(); dbc.getRequestConte...
class class_name[name] begin[{] method[moveToLostAndFound, return_type[type[String]], modifier[public], parameter[dbc, resource, returnNameOnly]] begin[{] local_variable[type[String], resourcename] local_variable[type[String], siteRoot] call[dbc.getRequestContext, parameter[]] ...
Keyword[public] identifier[String] identifier[moveToLostAndFound] operator[SEP] identifier[CmsDbContext] identifier[dbc] , identifier[CmsResource] identifier[resource] , Keyword[boolean] identifier[returnNameOnly] operator[SEP] Keyword[throws] identifier[CmsException] , identifier[CmsIllegalArgumentException] { ...
public static String getContent(String stringUrl) { if (stringUrl.equalsIgnoreCase("clipboard")) { try { return getFromClipboard(); } catch (Exception e) { //it's ok. } } return getContent(stringUrl, null); }
class class_name[name] begin[{] method[getContent, return_type[type[String]], modifier[public static], parameter[stringUrl]] begin[{] if[call[stringUrl.equalsIgnoreCase, parameter[literal["clipboard"]]]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(argume...
Keyword[public] Keyword[static] identifier[String] identifier[getContent] operator[SEP] identifier[String] identifier[stringUrl] operator[SEP] { Keyword[if] operator[SEP] identifier[stringUrl] operator[SEP] identifier[equalsIgnoreCase] operator[SEP] literal[String] operator[SEP] operator[SEP] { Keywor...
public ResultHandlerContext<DPO, RI, RO, Collection<RO>> handleWith(ResultHandler<Collection<RO>> resultHandler) { List<ResultHandler<Collection<RO>>> addedResultHandlers = new ArrayList<ResultHandler<Collection<RO>>>(); if (resultHandler != null) { addedResultHandlers.add(resultHandler); ...
class class_name[name] begin[{] method[handleWith, return_type[type[ResultHandlerContext]], modifier[public], parameter[resultHandler]] begin[{] local_variable[type[List], addedResultHandlers] if[binary_operation[member[.resultHandler], !=, literal[null]]] begin[{] ...
Keyword[public] identifier[ResultHandlerContext] operator[<] identifier[DPO] , identifier[RI] , identifier[RO] , identifier[Collection] operator[<] identifier[RO] operator[>] operator[>] identifier[handleWith] operator[SEP] identifier[ResultHandler] operator[<] identifier[Collection] operator[<] identifier[RO] opera...
public synchronized ProbeImpl getProbe(Class<?> probedClass, String key) { Map<String, ProbeImpl> classProbes = probesByKey.get(probedClass); if (classProbes != null) { return classProbes.get(key); } return null; }
class class_name[name] begin[{] method[getProbe, return_type[type[ProbeImpl]], modifier[synchronized public], parameter[probedClass, key]] begin[{] local_variable[type[Map], classProbes] if[binary_operation[member[.classProbes], !=, literal[null]]] begin[{] return[call[class...
Keyword[public] Keyword[synchronized] identifier[ProbeImpl] identifier[getProbe] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[probedClass] , identifier[String] identifier[key] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[ProbeImpl] operator[>] id...
public static void toFile(Document doc, String path, String charset) { if (StrUtil.isBlank(charset)) { charset = doc.getXmlEncoding(); } if (StrUtil.isBlank(charset)) { charset = CharsetUtil.UTF_8; } BufferedWriter writer = null; try { writer = FileUtil.getWriter(path, charset, false); ...
class class_name[name] begin[{] method[toFile, return_type[void], modifier[public static], parameter[doc, path, charset]] begin[{] if[call[StrUtil.isBlank, parameter[member[.charset]]]] begin[{] assign[member[.charset], call[doc.getXmlEncoding, parameter[]]] else...
Keyword[public] Keyword[static] Keyword[void] identifier[toFile] operator[SEP] identifier[Document] identifier[doc] , identifier[String] identifier[path] , identifier[String] identifier[charset] operator[SEP] { Keyword[if] operator[SEP] identifier[StrUtil] operator[SEP] identifier[isBlank] operator[SEP] identi...
public Map<String, Object> getObjectReferenceMap(String field, String schemaName) { List<String> instanceIds = references.get(field); if(instanceIds == null || instanceIds.size() == 0) { return null; } Map<String, Object> objects = new HashMap<>(); for (String instanc...
class class_name[name] begin[{] method[getObjectReferenceMap, return_type[type[Map]], modifier[public], parameter[field, schemaName]] begin[{] local_variable[type[List], instanceIds] if[binary_operation[binary_operation[member[.instanceIds], ==, literal[null]], ||, binary_operation[call...
Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[getObjectReferenceMap] operator[SEP] identifier[String] identifier[field] , identifier[String] identifier[schemaName] operator[SEP] { identifier[List] operator[<] identifier[String] operator[>] identifier...
public String getSpaceContents(String spaceID, String storeID, String prefix, long maxResults, String marker) throws ResourceException { Element spaceElem = new Element("sp...
class class_name[name] begin[{] method[getSpaceContents, return_type[type[String]], modifier[public], parameter[spaceID, storeID, prefix, maxResults, marker]] begin[{] local_variable[type[Element], spaceElem] call[spaceElem.setAttribute, parameter[literal["id"], member[.spaceID]]] ...
Keyword[public] identifier[String] identifier[getSpaceContents] operator[SEP] identifier[String] identifier[spaceID] , identifier[String] identifier[storeID] , identifier[String] identifier[prefix] , Keyword[long] identifier[maxResults] , identifier[String] identifier[marker] operator[SEP] Keyword[throws] identifie...
public static void injectTargetIntoProxy(final Object proxy, final Object target) { Class proxyClass = proxy.getClass(); try { Field field = proxyClass.getField("$___target$0"); field.set(proxy, target); } catch (Exception ex) { throw new ProxettaException(ex); } }
class class_name[name] begin[{] method[injectTargetIntoProxy, return_type[void], modifier[public static], parameter[proxy, target]] begin[{] local_variable[type[Class], proxyClass] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initia...
Keyword[public] Keyword[static] Keyword[void] identifier[injectTargetIntoProxy] operator[SEP] Keyword[final] identifier[Object] identifier[proxy] , Keyword[final] identifier[Object] identifier[target] operator[SEP] { identifier[Class] identifier[proxyClass] operator[=] identifier[proxy] operator[SEP] identifier...
public void logout (HttpServletRequest req, HttpServletResponse rsp) { // nothing to do if they don't already have an auth cookie String authcode = CookieUtil.getCookieValue(req, _userAuthCookie); if (authcode == null) { return; } // set them up the bomb ...
class class_name[name] begin[{] method[logout, return_type[void], modifier[public], parameter[req, rsp]] begin[{] local_variable[type[String], authcode] if[binary_operation[member[.authcode], ==, literal[null]]] begin[{] return[None] else begin[{] None end[}]...
Keyword[public] Keyword[void] identifier[logout] operator[SEP] identifier[HttpServletRequest] identifier[req] , identifier[HttpServletResponse] identifier[rsp] operator[SEP] { identifier[String] identifier[authcode] operator[=] identifier[CookieUtil] operator[SEP] identifier[getCookieValue] operator[SEP] identi...
public static void setValue(JsonNode node, String dPath, Object value) { setValue(node, dPath, value, false); }
class class_name[name] begin[{] method[setValue, return_type[void], modifier[public static], parameter[node, dPath, value]] begin[{] call[.setValue, parameter[member[.node], member[.dPath], member[.value], literal[false]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[setValue] operator[SEP] identifier[JsonNode] identifier[node] , identifier[String] identifier[dPath] , identifier[Object] identifier[value] operator[SEP] { identifier[setValue] operator[SEP] identifier[node] , identifier[dPath] , identifier[value] , l...
@Deprecated public static <K, V> ImmutableMap<K, V> copyWithKeysSortedBy(final Map<K, V> map, final Ordering<? super K> ordering) { return ImmutableSortedMap.copyOf(map, ordering); }
class class_name[name] begin[{] method[copyWithKeysSortedBy, return_type[type[ImmutableMap]], modifier[public static], parameter[map, ordering]] begin[{] return[call[ImmutableSortedMap.copyOf, parameter[member[.map], member[.ordering]]]] end[}] END[}]
annotation[@] identifier[Deprecated] Keyword[public] Keyword[static] operator[<] identifier[K] , identifier[V] operator[>] identifier[ImmutableMap] operator[<] identifier[K] , identifier[V] operator[>] identifier[copyWithKeysSortedBy] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[K] , identifie...
@Override public void addAnnotationTypeDeprecationInfo(Content annotationInfoTree) { Content hr = new HtmlTree(HtmlTag.HR); annotationInfoTree.addContent(hr); List<? extends DocTree> deprs = utils.getBlockTags(annotationType, DocTree.Kind.DEPRECATED); if (utils.isDeprecated(annotatio...
class class_name[name] begin[{] method[addAnnotationTypeDeprecationInfo, return_type[void], modifier[public], parameter[annotationInfoTree]] begin[{] local_variable[type[Content], hr] call[annotationInfoTree.addContent, parameter[member[.hr]]] local_variable[type[List], deprs] ...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[addAnnotationTypeDeprecationInfo] operator[SEP] identifier[Content] identifier[annotationInfoTree] operator[SEP] { identifier[Content] identifier[hr] operator[=] Keyword[new] identifier[HtmlTree] operator[SEP] identifier[HtmlTag] operato...
public void updateInstance( Instance my_instance, final String my_client_project, final String my_instance_id, final String my_display_name) { // [START instance_admin_client_update_instance] Instance instance = my_instance; final String clientProject = my_client_project; final S...
class class_name[name] begin[{] method[updateInstance, return_type[void], modifier[public], parameter[my_instance, my_client_project, my_instance_id, my_display_name]] begin[{] local_variable[type[Instance], instance] local_variable[type[String], clientProject] local_variable[type[Strin...
Keyword[public] Keyword[void] identifier[updateInstance] operator[SEP] identifier[Instance] identifier[my_instance] , Keyword[final] identifier[String] identifier[my_client_project] , Keyword[final] identifier[String] identifier[my_instance_id] , Keyword[final] identifier[String] identifier[my_display_name] operator...
HttpServerExchange startResponse() throws IllegalStateException { int oldVal = state; if (allAreSet(oldVal, FLAG_RESPONSE_SENT)) { throw UndertowMessages.MESSAGES.responseAlreadyStarted(); } this.state = oldVal | FLAG_RESPONSE_SENT; log.tracef("Starting to write resp...
class class_name[name] begin[{] method[startResponse, return_type[type[HttpServerExchange]], modifier[default], parameter[]] begin[{] local_variable[type[int], oldVal] if[call[.allAreSet, parameter[member[.oldVal], member[.FLAG_RESPONSE_SENT]]]] begin[{] ThrowStatement(expre...
identifier[HttpServerExchange] identifier[startResponse] operator[SEP] operator[SEP] Keyword[throws] identifier[IllegalStateException] { Keyword[int] identifier[oldVal] operator[=] identifier[state] operator[SEP] Keyword[if] operator[SEP] identifier[allAreSet] operator[SEP] identifier[oldVal] , identifier[FLAG_...
@Override public void publish(String channel, Tree message) { if (client != null) { try { int pos = channel.indexOf('.'); if (channel.indexOf('.', pos + 1) > -1) { // Send to queue directly if (debug && (debugHeartbeats || !channel.endsWith(heartbeatChannel))) { logger.info("Submitting me...
class class_name[name] begin[{] method[publish, return_type[void], modifier[public], parameter[channel, message]] begin[{] if[binary_operation[member[.client], !=, literal[null]]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(d...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[publish] operator[SEP] identifier[String] identifier[channel] , identifier[Tree] identifier[message] operator[SEP] { Keyword[if] operator[SEP] identifier[client] operator[!=] Other[null] operator[SEP] { Keyword[try] { ...
protected void initEditorChangeHandlers(Element element) { Iterator<Element> i = CmsXmlGenericWrapper.elementIterator(element, APPINFO_EDITOR_CHANGE_HANDLER); while (i.hasNext()) { // iterate all "default" elements in the "defaults" node Element handlerElement = i.next(); ...
class class_name[name] begin[{] method[initEditorChangeHandlers, return_type[void], modifier[protected], parameter[element]] begin[{] local_variable[type[Iterator], i] while[call[i.hasNext, parameter[]]] begin[{] local_variable[type[Element], handlerElement] loca...
Keyword[protected] Keyword[void] identifier[initEditorChangeHandlers] operator[SEP] identifier[Element] identifier[element] operator[SEP] { identifier[Iterator] operator[<] identifier[Element] operator[>] identifier[i] operator[=] identifier[CmsXmlGenericWrapper] operator[SEP] identifier[elementIterator] operato...
private void locateCodebasesRequiredForAnalysis(IClassPath classPath, IClassPathBuilderProgress progress) throws InterruptedException, IOException, ResourceNotFoundException { boolean foundJavaLangObject = false; boolean foundFindBugsAnnotations = false; boolean foundJSR305Annotation...
class class_name[name] begin[{] method[locateCodebasesRequiredForAnalysis, return_type[void], modifier[private], parameter[classPath, progress]] begin[{] local_variable[type[boolean], foundJavaLangObject] local_variable[type[boolean], foundFindBugsAnnotations] local_variable[type[boolea...
Keyword[private] Keyword[void] identifier[locateCodebasesRequiredForAnalysis] operator[SEP] identifier[IClassPath] identifier[classPath] , identifier[IClassPathBuilderProgress] identifier[progress] operator[SEP] Keyword[throws] identifier[InterruptedException] , identifier[IOException] , identifier[ResourceNotFoundE...
public void registerExternalWidgets( List<CmsExternalWidgetConfiguration> externalWidgetConfigurations, final Command callback) { final Set<String> initCalls = new HashSet<String>(); for (CmsExternalWidgetConfiguration widgetConfiguration : externalWidgetConfigurations) { ...
class class_name[name] begin[{] method[registerExternalWidgets, return_type[void], modifier[public], parameter[externalWidgetConfigurations, callback]] begin[{] local_variable[type[Set], initCalls] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(a...
Keyword[public] Keyword[void] identifier[registerExternalWidgets] operator[SEP] identifier[List] operator[<] identifier[CmsExternalWidgetConfiguration] operator[>] identifier[externalWidgetConfigurations] , Keyword[final] identifier[Command] identifier[callback] operator[SEP] { Keyword[final] identifier[Set] op...
@GET @Path("/{id}/_history/{version}") public Response findHistory(@PathParam("id") final String id, @PathParam("version") final String version) throws IOException { final Builder theRequest = getResourceRequest(RequestTypeEnum.GET, RestOperationTypeEnum.VREAD).id(id).version(version); ...
class class_name[name] begin[{] method[findHistory, return_type[type[Response]], modifier[public], parameter[id, version]] begin[{] local_variable[type[Builder], theRequest] return[call[.execute, parameter[member[.theRequest]]]] end[}] END[}]
annotation[@] identifier[GET] annotation[@] identifier[Path] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[Response] identifier[findHistory] operator[SEP] annotation[@] identifier[PathParam] operator[SEP] literal[String] operator[SEP] Keyword[final] identifier[String] identifier[id] , annotati...
public String convertFNCYfrUnitsToString(EDataType eDataType, Object instanceValue) { return instanceValue == null ? null : instanceValue.toString(); }
class class_name[name] begin[{] method[convertFNCYfrUnitsToString, return_type[type[String]], modifier[public], parameter[eDataType, instanceValue]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=instanceValue, postfix_operators=[], prefix_operators=[], qual...
Keyword[public] identifier[String] identifier[convertFNCYfrUnitsToString] operator[SEP] identifier[EDataType] identifier[eDataType] , identifier[Object] identifier[instanceValue] operator[SEP] { Keyword[return] identifier[instanceValue] operator[==] Other[null] operator[?] Other[null] operator[:] identifier[in...
public void removeSpaceToLastLineBreak(IContext ctx) { boolean shouldRemoveSpace = true; List<Token> bl = builders(); for (int i = bl.size() - 1; i >= 0; --i) { TextBuilder tb = bl.get(i); if (tb == Token.EMPTY_TOKEN || tb instanceof IDirective) { continue...
class class_name[name] begin[{] method[removeSpaceToLastLineBreak, return_type[void], modifier[public], parameter[ctx]] begin[{] local_variable[type[boolean], shouldRemoveSpace] local_variable[type[List], bl] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclarat...
Keyword[public] Keyword[void] identifier[removeSpaceToLastLineBreak] operator[SEP] identifier[IContext] identifier[ctx] operator[SEP] { Keyword[boolean] identifier[shouldRemoveSpace] operator[=] literal[boolean] operator[SEP] identifier[List] operator[<] identifier[Token] operator[>] identifier[bl] operator[=] i...
private void updateGhostStyle() { if (CmsStringUtil.isEmpty(m_realValue)) { if (CmsStringUtil.isEmpty(m_ghostValue)) { updateTextArea(m_realValue); return; } if (!m_focus) { setGhostStyleEnabled(true); updateTex...
class class_name[name] begin[{] method[updateGhostStyle, return_type[void], modifier[private], parameter[]] begin[{] if[call[CmsStringUtil.isEmpty, parameter[member[.m_realValue]]]] begin[{] if[call[CmsStringUtil.isEmpty, parameter[member[.m_ghostValue]]]] begin[{] ...
Keyword[private] Keyword[void] identifier[updateGhostStyle] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[CmsStringUtil] operator[SEP] identifier[isEmpty] operator[SEP] identifier[m_realValue] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[CmsStringUtil] operat...
private boolean isInternal(Run r) { boolean result = false; // get upstream cause, if any Cause.UpstreamCause upstreamCause = null; for (Cause cause : (List<Cause>) r.getCauses()) { if (cause instanceof Cause.UpstreamCause) { upstreamCause = (Cause.UpstreamCause) cause; break; // TODO: he...
class class_name[name] begin[{] method[isInternal, return_type[type[boolean]], modifier[private], parameter[r]] begin[{] local_variable[type[boolean], result] local_variable[type[Cause], upstreamCause] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=Binary...
Keyword[private] Keyword[boolean] identifier[isInternal] operator[SEP] identifier[Run] identifier[r] operator[SEP] { Keyword[boolean] identifier[result] operator[=] literal[boolean] operator[SEP] identifier[Cause] operator[SEP] identifier[UpstreamCause] identifier[upstreamCause] operator[=] Other[null] operator[...
@Override public Iterator<String> getSpaceContents(final String spaceId, final String prefix) throws ContentStoreException { final ContentStore store = this; return execute(new Retriable() { @Override public Iterator<String...
class class_name[name] begin[{] method[getSpaceContents, return_type[type[Iterator]], modifier[public], parameter[spaceId, prefix]] begin[{] local_variable[type[ContentStore], store] return[call[.execute, parameter[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(eleme...
annotation[@] identifier[Override] Keyword[public] identifier[Iterator] operator[<] identifier[String] operator[>] identifier[getSpaceContents] operator[SEP] Keyword[final] identifier[String] identifier[spaceId] , Keyword[final] identifier[String] identifier[prefix] operator[SEP] Keyword[throws] identifier[ContentStor...
@Override public boolean hasExpired(SlotInfo<? extends T> info) { long expirationAge = info.getStamp(); if (expirationAge == 0) { long maxDelta = upperBoundMillis - lowerBoundMillis; ThreadLocalRandom prng = ThreadLocalRandom.current(); expirationAge = lowerBoundMillis + Math.abs(prng.nextIn...
class class_name[name] begin[{] method[hasExpired, return_type[type[boolean]], modifier[public], parameter[info]] begin[{] local_variable[type[long], expirationAge] if[binary_operation[member[.expirationAge], ==, literal[0]]] begin[{] local_variable[type[long], maxDelta] ...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[hasExpired] operator[SEP] identifier[SlotInfo] operator[<] operator[?] Keyword[extends] identifier[T] operator[>] identifier[info] operator[SEP] { Keyword[long] identifier[expirationAge] operator[=] identifier[info] operator[SEP] iden...
public static Properties getHeaderAsProperties() { Properties result = new Properties(); if (customProps != null) { result.putAll(customProps); } result.put(ServerInstanceLogRecordList.HEADER_PROCESSID, processId); result.put(ServerInstanceLogRecordList.HEADER_SERVE...
class class_name[name] begin[{] method[getHeaderAsProperties, return_type[type[Properties]], modifier[public static], parameter[]] begin[{] local_variable[type[Properties], result] if[binary_operation[member[.customProps], !=, literal[null]]] begin[{] call[result...
Keyword[public] Keyword[static] identifier[Properties] identifier[getHeaderAsProperties] operator[SEP] operator[SEP] { identifier[Properties] identifier[result] operator[=] Keyword[new] identifier[Properties] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[customProps] operator[!=]...
public void setData(byte[] bytes, byte[] sourceMap) { this.sourceMap = sourceMap; sourceMapSize = sourceMap != null ? sourceMap.length : 0; setBytes(bytes); }
class class_name[name] begin[{] method[setData, return_type[void], modifier[public], parameter[bytes, sourceMap]] begin[{] assign[THIS[member[None.sourceMap]], member[.sourceMap]] assign[member[.sourceMapSize], TernaryExpression(condition=BinaryOperation(operandl=MemberReference...
Keyword[public] Keyword[void] identifier[setData] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[bytes] , Keyword[byte] operator[SEP] operator[SEP] identifier[sourceMap] operator[SEP] { Keyword[this] operator[SEP] identifier[sourceMap] operator[=] identifier[sourceMap] operator[SEP] identifi...
@Override public Validation validate(Context context, String pid, Date asOfDateTime) throws ServerException { try { logger.debug("Entered validate"); m_authz.enforceValidate(context, p...
class class_name[name] begin[{] method[validate, return_type[type[Validation]], modifier[public], parameter[context, pid, asOfDateTime]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[...
annotation[@] identifier[Override] Keyword[public] identifier[Validation] identifier[validate] operator[SEP] identifier[Context] identifier[context] , identifier[String] identifier[pid] , identifier[Date] identifier[asOfDateTime] operator[SEP] Keyword[throws] identifier[ServerException] { Keyword[try] { ...
public void setMaxAscHt(Integer newMaxAscHt) { Integer oldMaxAscHt = maxAscHt; maxAscHt = newMaxAscHt; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.FNPRG__MAX_ASC_HT, oldMaxAscHt, maxAscHt)); }
class class_name[name] begin[{] method[setMaxAscHt, return_type[void], modifier[public], parameter[newMaxAscHt]] begin[{] local_variable[type[Integer], oldMaxAscHt] assign[member[.maxAscHt], member[.newMaxAscHt]] if[call[.eNotificationRequired, parameter[]]] begin[{] ...
Keyword[public] Keyword[void] identifier[setMaxAscHt] operator[SEP] identifier[Integer] identifier[newMaxAscHt] operator[SEP] { identifier[Integer] identifier[oldMaxAscHt] operator[=] identifier[maxAscHt] operator[SEP] identifier[maxAscHt] operator[=] identifier[newMaxAscHt] operator[SEP] Keyword[if] operator[SE...
public static Optional<Principal> withWebIdClaim(final Claims claims) { final String webid = claims.get(WEBID, String.class); if (webid == null) return empty(); LOGGER.debug("Using JWT claim with webid: {}", webid); return of(new OAuthPrincipal(webid)); }
class class_name[name] begin[{] method[withWebIdClaim, return_type[type[Optional]], modifier[public static], parameter[claims]] begin[{] local_variable[type[String], webid] if[binary_operation[member[.webid], ==, literal[null]]] begin[{] return[call[.empty, parameter[]]] else be...
Keyword[public] Keyword[static] identifier[Optional] operator[<] identifier[Principal] operator[>] identifier[withWebIdClaim] operator[SEP] Keyword[final] identifier[Claims] identifier[claims] operator[SEP] { Keyword[final] identifier[String] identifier[webid] operator[=] identifier[claims] operator[SEP] identif...
@Override public String[] getChildNodesValuesText() throws WidgetException { WebElement we = new Element(getByLocator()).getWebElement(); List<WebElement> childNodes = we.findElements(By.xpath("./*")); String[] childText = new String[childNodes.size()]; int i = 0; for (WebElement element : childNodes) { c...
class class_name[name] begin[{] method[getChildNodesValuesText, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[WebElement], we] local_variable[type[List], childNodes] local_variable[type[String], childText] local_variable[type[int], i] ...
annotation[@] identifier[Override] Keyword[public] identifier[String] operator[SEP] operator[SEP] identifier[getChildNodesValuesText] operator[SEP] operator[SEP] Keyword[throws] identifier[WidgetException] { identifier[WebElement] identifier[we] operator[=] Keyword[new] identifier[Element] operator[SEP] identifi...
protected HttpSession getSessionFromTransaction(final HttpServletRequest servletRequest, final String txId) { final Principal userPrincipal = servletRequest.getUserPrincipal(); final String userName = userPrincipal == null ? null : userPrincipal.getName(); final FedoraSession session = batchSe...
class class_name[name] begin[{] method[getSessionFromTransaction, return_type[type[HttpSession]], modifier[protected], parameter[servletRequest, txId]] begin[{] local_variable[type[Principal], userPrincipal] local_variable[type[String], userName] local_variable[type[FedoraSession], sess...
Keyword[protected] identifier[HttpSession] identifier[getSessionFromTransaction] operator[SEP] Keyword[final] identifier[HttpServletRequest] identifier[servletRequest] , Keyword[final] identifier[String] identifier[txId] operator[SEP] { Keyword[final] identifier[Principal] identifier[userPrincipal] operator[=] ...
public List<CmsResource> readAllSubscribedResources(CmsDbContext dbc, String poolName, CmsPrincipal principal) throws CmsException { List<CmsResource> result = getSubscriptionDriver().readAllSubscribedResources(dbc, poolName, principal); result = filterPermissions(dbc, result, CmsResourceFilter.DEF...
class class_name[name] begin[{] method[readAllSubscribedResources, return_type[type[List]], modifier[public], parameter[dbc, poolName, principal]] begin[{] local_variable[type[List], result] assign[member[.result], call[.filterPermissions, parameter[member[.dbc], member[.result], member...
Keyword[public] identifier[List] operator[<] identifier[CmsResource] operator[>] identifier[readAllSubscribedResources] operator[SEP] identifier[CmsDbContext] identifier[dbc] , identifier[String] identifier[poolName] , identifier[CmsPrincipal] identifier[principal] operator[SEP] Keyword[throws] identifier[CmsExceptio...
@Override public Request<DescribeKeyPairsRequest> getDryRunRequest() { Request<DescribeKeyPairsRequest> request = new DescribeKeyPairsRequestMarshaller().marshall(this); request.addParameter("DryRun", Boolean.toString(true)); return request; }
class class_name[name] begin[{] method[getDryRunRequest, return_type[type[Request]], modifier[public], parameter[]] begin[{] local_variable[type[Request], request] call[request.addParameter, parameter[literal["DryRun"], call[Boolean.toString, parameter[literal[true]]]]] return[m...
annotation[@] identifier[Override] Keyword[public] identifier[Request] operator[<] identifier[DescribeKeyPairsRequest] operator[>] identifier[getDryRunRequest] operator[SEP] operator[SEP] { identifier[Request] operator[<] identifier[DescribeKeyPairsRequest] operator[>] identifier[request] operator[=] Keyword[new...
public static void setImageDrawable(EfficientCacheView cacheView, int viewId, Drawable drawable) { View view = cacheView.findViewByIdEfficient(viewId); if (view instanceof ImageView) { ((ImageView) view).setImageDrawable(drawable); } }
class class_name[name] begin[{] method[setImageDrawable, return_type[void], modifier[public static], parameter[cacheView, viewId, drawable]] begin[{] local_variable[type[View], view] if[binary_operation[member[.view], instanceof, type[ImageView]]] begin[{] Cast(e...
Keyword[public] Keyword[static] Keyword[void] identifier[setImageDrawable] operator[SEP] identifier[EfficientCacheView] identifier[cacheView] , Keyword[int] identifier[viewId] , identifier[Drawable] identifier[drawable] operator[SEP] { identifier[View] identifier[view] operator[=] identifier[cacheView] operato...
public JLabel createLabel(String labelKey, ValueModel[] argumentValueHolders) { return new LabelTextRefresher(labelKey, argumentValueHolders).getLabel(); }
class class_name[name] begin[{] method[createLabel, return_type[type[JLabel]], modifier[public], parameter[labelKey, argumentValueHolders]] begin[{] return[ClassCreator(arguments=[MemberReference(member=labelKey, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(memb...
Keyword[public] identifier[JLabel] identifier[createLabel] operator[SEP] identifier[String] identifier[labelKey] , identifier[ValueModel] operator[SEP] operator[SEP] identifier[argumentValueHolders] operator[SEP] { Keyword[return] Keyword[new] identifier[LabelTextRefresher] operator[SEP] identifier[labelKey] , ...
private synchronized void rotate() { Level oldLevel = getLevel(); setLevel(Level.OFF); super.close(); for (int i = count-2; i >= 0; i--) { File f1 = files[i]; File f2 = files[i+1]; if (f1.exists()) { if (f2.exists()) { ...
class class_name[name] begin[{] method[rotate, return_type[void], modifier[synchronized private], parameter[]] begin[{] local_variable[type[Level], oldLevel] call[.setLevel, parameter[member[Level.OFF]]] SuperMethodInvocation(arguments=[], member=close, postfix_operators...
Keyword[private] Keyword[synchronized] Keyword[void] identifier[rotate] operator[SEP] operator[SEP] { identifier[Level] identifier[oldLevel] operator[=] identifier[getLevel] operator[SEP] operator[SEP] operator[SEP] identifier[setLevel] operator[SEP] identifier[Level] operator[SEP] identifier[OFF] operator[SEP] ...
@Indexable(type = IndexableType.REINDEX) @Override public CommerceShippingFixedOption updateCommerceShippingFixedOption( CommerceShippingFixedOption commerceShippingFixedOption) { return commerceShippingFixedOptionPersistence.update(commerceShippingFixedOption); }
class class_name[name] begin[{] method[updateCommerceShippingFixedOption, return_type[type[CommerceShippingFixedOption]], modifier[public], parameter[commerceShippingFixedOption]] begin[{] return[call[commerceShippingFixedOptionPersistence.update, parameter[member[.commerceShippingFixedOption]]]] e...
annotation[@] identifier[Indexable] operator[SEP] identifier[type] operator[=] identifier[IndexableType] operator[SEP] identifier[REINDEX] operator[SEP] annotation[@] identifier[Override] Keyword[public] identifier[CommerceShippingFixedOption] identifier[updateCommerceShippingFixedOption] operator[SEP] identifier[Comme...
private Month readOptionalMonth(JSONObject json, String key) { try { String str = json.getString(key); return Month.valueOf(str); } catch (JSONException | IllegalArgumentException e) { LOG.debug("Reading optional JSON month failed. Default to provided default value."...
class class_name[name] begin[{] method[readOptionalMonth, return_type[type[Month]], modifier[private], parameter[json, key]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(membe...
Keyword[private] identifier[Month] identifier[readOptionalMonth] operator[SEP] identifier[JSONObject] identifier[json] , identifier[String] identifier[key] operator[SEP] { Keyword[try] { identifier[String] identifier[str] operator[=] identifier[json] operator[SEP] identifier[getString] operator[SEP] ...
static DoublesUnionImplR wrapInstance(final Memory mem) { final DirectUpdateDoublesSketchR sketch = DirectUpdateDoublesSketchR.wrapInstance(mem); final int k = sketch.getK(); final DoublesUnionImplR union = new DoublesUnionImplR(k); union.maxK_ = k; union.gadget_ = sketch; return union; }
class class_name[name] begin[{] method[wrapInstance, return_type[type[DoublesUnionImplR]], modifier[static], parameter[mem]] begin[{] local_variable[type[DirectUpdateDoublesSketchR], sketch] local_variable[type[int], k] local_variable[type[DoublesUnionImplR], union] assi...
Keyword[static] identifier[DoublesUnionImplR] identifier[wrapInstance] operator[SEP] Keyword[final] identifier[Memory] identifier[mem] operator[SEP] { Keyword[final] identifier[DirectUpdateDoublesSketchR] identifier[sketch] operator[=] identifier[DirectUpdateDoublesSketchR] operator[SEP] identifier[wrapInstance]...
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_ptr_list_fragment); mPullRefreshListFragment = (PullToRefreshListFragment) getSupportFragmentManager().findFragmentById( R.id.frag_ptr_list); // Get PullToRefreshListView from ...
class class_name[name] begin[{] method[onCreate, return_type[void], modifier[public], parameter[savedInstanceState]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=savedInstanceState, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=onCreate, postf...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[onCreate] operator[SEP] identifier[Bundle] identifier[savedInstanceState] operator[SEP] { Keyword[super] operator[SEP] identifier[onCreate] operator[SEP] identifier[savedInstanceState] operator[SEP] operator[SEP] identifier[setContentVie...
public static JsonArray fromJson(String s) { try { return CouchbaseAsyncBucket.JSON_ARRAY_TRANSCODER.stringToJsonArray(s); } catch (Exception e) { throw new IllegalArgumentException("Cannot convert string to JsonArray", e); } }
class class_name[name] begin[{] method[fromJson, return_type[type[JsonArray]], modifier[public static], parameter[s]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=s, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], memb...
Keyword[public] Keyword[static] identifier[JsonArray] identifier[fromJson] operator[SEP] identifier[String] identifier[s] operator[SEP] { Keyword[try] { Keyword[return] identifier[CouchbaseAsyncBucket] operator[SEP] identifier[JSON_ARRAY_TRANSCODER] operator[SEP] identifier[stringToJsonArray] operator...
@Override public DescribeByoipCidrsResult describeByoipCidrs(DescribeByoipCidrsRequest request) { request = beforeClientExecution(request); return executeDescribeByoipCidrs(request); }
class class_name[name] begin[{] method[describeByoipCidrs, return_type[type[DescribeByoipCidrsResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeDescribeByoipCidrs, parameter[me...
annotation[@] identifier[Override] Keyword[public] identifier[DescribeByoipCidrsResult] identifier[describeByoipCidrs] operator[SEP] identifier[DescribeByoipCidrsRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operat...
private void updateIndexName() { this.logIndexName = this.logIndexPrefix + "_" + SIMPLE_DATE_FORMAT.format(new Date()); try { addIndex(logIndexName); } catch (IOException e) { logger.error("Failed to update log index name: {}", logIndexName, e); } }
class class_name[name] begin[{] method[updateIndexName, return_type[void], modifier[private], parameter[]] begin[{] assign[THIS[member[None.logIndexName]], binary_operation[binary_operation[THIS[member[None.logIndexPrefix]], +, literal["_"]], +, call[SIMPLE_DATE_FORMAT.format, parameter[ClassCr...
Keyword[private] Keyword[void] identifier[updateIndexName] operator[SEP] operator[SEP] { Keyword[this] operator[SEP] identifier[logIndexName] operator[=] Keyword[this] operator[SEP] identifier[logIndexPrefix] operator[+] literal[String] operator[+] identifier[SIMPLE_DATE_FORMAT] operator[SEP] identifier[format] ...
public static DiscoverInfo getDiscoveryInfoByNodeVer(String nodeVer) { DiscoverInfo info = CAPS_CACHE.lookup(nodeVer); // If it was not in CAPS_CACHE, try to retrieve the information from persistentCache if (info == null && persistentCache != null) { info = persistentCache.lookup(no...
class class_name[name] begin[{] method[getDiscoveryInfoByNodeVer, return_type[type[DiscoverInfo]], modifier[public static], parameter[nodeVer]] begin[{] local_variable[type[DiscoverInfo], info] if[binary_operation[binary_operation[member[.info], ==, literal[null]], &&, binary_operation[...
Keyword[public] Keyword[static] identifier[DiscoverInfo] identifier[getDiscoveryInfoByNodeVer] operator[SEP] identifier[String] identifier[nodeVer] operator[SEP] { identifier[DiscoverInfo] identifier[info] operator[=] identifier[CAPS_CACHE] operator[SEP] identifier[lookup] operator[SEP] identifier[nodeVer] opera...
private String getSimpleUsername(String username) { String simpleUsername = username; if (defaultDomain != null) { // sanitize username if (username.startsWith(defaultDomain + "\\")) { // strip default domain from domain\ username simpleUsername = ...
class class_name[name] begin[{] method[getSimpleUsername, return_type[type[String]], modifier[private], parameter[username]] begin[{] local_variable[type[String], simpleUsername] if[binary_operation[member[.defaultDomain], !=, literal[null]]] begin[{] if[call[use...
Keyword[private] identifier[String] identifier[getSimpleUsername] operator[SEP] identifier[String] identifier[username] operator[SEP] { identifier[String] identifier[simpleUsername] operator[=] identifier[username] operator[SEP] Keyword[if] operator[SEP] identifier[defaultDomain] operator[!=] Other[null] operato...
@Override public void open(RuntimeContext runtimeContext) { this.runtimeContext = runtimeContext; localRateBytesPerSecond = globalRateBytesPerSecond / runtimeContext.getNumberOfParallelSubtasks(); this.rateLimiter = RateLimiter.create(localRateBytesPerSecond); }
class class_name[name] begin[{] method[open, return_type[void], modifier[public], parameter[runtimeContext]] begin[{] assign[THIS[member[None.runtimeContext]], member[.runtimeContext]] assign[member[.localRateBytesPerSecond], binary_operation[member[.globalRateBytesPerSecond], /...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[open] operator[SEP] identifier[RuntimeContext] identifier[runtimeContext] operator[SEP] { Keyword[this] operator[SEP] identifier[runtimeContext] operator[=] identifier[runtimeContext] operator[SEP] identifier[localRateBytesPerSecond] ope...
private void reverse(WritableDataStore<HashSetModifiableDBIDs> sampleNewHash, WritableDataStore<HashSetModifiableDBIDs> newReverseNeighbors, WritableDataStore<HashSetModifiableDBIDs> oldReverseNeighbors) { for(DBIDIter iditer = relation.iterDBIDs(); iditer.valid(); iditer.advance()) { KNNHeap heap = store.get...
class class_name[name] begin[{] method[reverse, return_type[void], modifier[private], parameter[sampleNewHash, newReverseNeighbors, oldReverseNeighbors]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions...
Keyword[private] Keyword[void] identifier[reverse] operator[SEP] identifier[WritableDataStore] operator[<] identifier[HashSetModifiableDBIDs] operator[>] identifier[sampleNewHash] , identifier[WritableDataStore] operator[<] identifier[HashSetModifiableDBIDs] operator[>] identifier[newReverseNeighbors] , identifier[Wr...
public static SetAttributeContext mergeFrom(SetAttributePOptions.Builder optionsBuilder) { SetAttributePOptions masterOptions = FileSystemOptions.setAttributeDefaults(ServerConfiguration.global()); SetAttributePOptions.Builder mergedOptionsBuilder = masterOptions.toBuilder().mergeFrom(optionsBui...
class class_name[name] begin[{] method[mergeFrom, return_type[type[SetAttributeContext]], modifier[public static], parameter[optionsBuilder]] begin[{] local_variable[type[SetAttributePOptions], masterOptions] local_variable[type[SetAttributePOptions], mergedOptionsBuilder] return[call[....
Keyword[public] Keyword[static] identifier[SetAttributeContext] identifier[mergeFrom] operator[SEP] identifier[SetAttributePOptions] operator[SEP] identifier[Builder] identifier[optionsBuilder] operator[SEP] { identifier[SetAttributePOptions] identifier[masterOptions] operator[=] identifier[FileSystemOptions] op...
@Override public int read() throws IOException { int r = read(singleByte, 0, 1); while (r == 0) { r = read(singleByte, 0, 1); } if (r > 0) { final byte b = singleByte[0]; return b < 0 ? 256 + b : b; } return EOF; }
class class_name[name] begin[{] method[read, return_type[type[int]], modifier[public], parameter[]] begin[{] local_variable[type[int], r] while[binary_operation[member[.r], ==, literal[0]]] begin[{] assign[member[.r], call[.read, parameter[member[.singleByte], li...
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[read] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[int] identifier[r] operator[=] identifier[read] operator[SEP] identifier[singleByte] , Other[0] , Other[1] operator[SEP] operator[SEP] Keyword[while] op...
public OntopRepository buildRepository() throws RepositoryConfigException { /* * Cache (computed only once) */ if (repository != null) return repository; /* * Common validation. * May throw a RepositoryConfigException */ validateF...
class class_name[name] begin[{] method[buildRepository, return_type[type[OntopRepository]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.repository], !=, literal[null]]] begin[{] return[member[.repository]] else begin[{] None end[}] call[.v...
Keyword[public] identifier[OntopRepository] identifier[buildRepository] operator[SEP] operator[SEP] Keyword[throws] identifier[RepositoryConfigException] { Keyword[if] operator[SEP] identifier[repository] operator[!=] Other[null] operator[SEP] Keyword[return] identifier[repository] operator[SEP] identifier[valid...
public double conditionalLogProbGivenNext(int[] given, int of) { if (given.length != windowSize - 1) { throw new IllegalArgumentException("conditionalLogProbGivenNext requires given one less than clique size (" + windowSize + ") but was " + Arrays.toString(given)); } int[] label = indic...
class class_name[name] begin[{] method[conditionalLogProbGivenNext, return_type[type[double]], modifier[public], parameter[given, of]] begin[{] if[binary_operation[member[given.length], !=, binary_operation[member[.windowSize], -, literal[1]]]] begin[{] ThrowStatement(expression=Cla...
Keyword[public] Keyword[double] identifier[conditionalLogProbGivenNext] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[given] , Keyword[int] identifier[of] operator[SEP] { Keyword[if] operator[SEP] identifier[given] operator[SEP] identifier[length] operator[!=] identifier[windowSize] operator...
public static JBBPParser prepare(final String script, final int flags) { return JBBPParser.prepare(script, JBBPBitOrder.LSB0, flags); }
class class_name[name] begin[{] method[prepare, return_type[type[JBBPParser]], modifier[public static], parameter[script, flags]] begin[{] return[call[JBBPParser.prepare, parameter[member[.script], member[JBBPBitOrder.LSB0], member[.flags]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[JBBPParser] identifier[prepare] operator[SEP] Keyword[final] identifier[String] identifier[script] , Keyword[final] Keyword[int] identifier[flags] operator[SEP] { Keyword[return] identifier[JBBPParser] operator[SEP] identifier[prepare] operator[SEP] identifier[script] ...
public void actionDeleteCascade() throws JspException { // save initialized instance of this class in request attribute for included sub-elements getJsp().getRequest().setAttribute(SESSION_WORKPLACE_CLASS, this); try { // list of all resources containing this propertydefinition ...
class class_name[name] begin[{] method[actionDeleteCascade, return_type[void], modifier[public], parameter[]] begin[{] call[.getJsp, parameter[]] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(argu...
Keyword[public] Keyword[void] identifier[actionDeleteCascade] operator[SEP] operator[SEP] Keyword[throws] identifier[JspException] { identifier[getJsp] operator[SEP] operator[SEP] operator[SEP] identifier[getRequest] operator[SEP] operator[SEP] operator[SEP] identifier[setAttribute] operator[SEP] identifier[SESS...
public static BooleanList calculateStructOffsets( Field field, int[] fieldDefinitionLevels, int[] fieldRepetitionLevels) { int maxDefinitionLevel = field.getDefinitionLevel(); int maxRepetitionLevel = field.getRepetitionLevel(); BooleanList structIsNull = ...
class class_name[name] begin[{] method[calculateStructOffsets, return_type[type[BooleanList]], modifier[public static], parameter[field, fieldDefinitionLevels, fieldRepetitionLevels]] begin[{] local_variable[type[int], maxDefinitionLevel] local_variable[type[int], maxRepetitionLevel] lo...
Keyword[public] Keyword[static] identifier[BooleanList] identifier[calculateStructOffsets] operator[SEP] identifier[Field] identifier[field] , Keyword[int] operator[SEP] operator[SEP] identifier[fieldDefinitionLevels] , Keyword[int] operator[SEP] operator[SEP] identifier[fieldRepetitionLevels] operator[SEP] { ...
private List<Resource> resourcesOf(JsonNode resourceNodes) { List<Resource> resources = new LinkedList<Resource>(); if (resourceNodes.isArray()) { for (JsonNode resource : resourceNodes) { resources.add(new Resource(resource.asText())); } } else { ...
class class_name[name] begin[{] method[resourcesOf, return_type[type[List]], modifier[private], parameter[resourceNodes]] begin[{] local_variable[type[List], resources] if[call[resourceNodes.isArray, parameter[]]] begin[{] ForStatement(body=BlockStatement(label=None, stateme...
Keyword[private] identifier[List] operator[<] identifier[Resource] operator[>] identifier[resourcesOf] operator[SEP] identifier[JsonNode] identifier[resourceNodes] operator[SEP] { identifier[List] operator[<] identifier[Resource] operator[>] identifier[resources] operator[=] Keyword[new] identifier[LinkedList] o...
public ApiSuccessResponse searchStandardResponses(LuceneSearchStandardResponseData luceneSearchStandardResponseData) throws ApiException { ApiResponse<ApiSuccessResponse> resp = searchStandardResponsesWithHttpInfo(luceneSearchStandardResponseData); return resp.getData(); }
class class_name[name] begin[{] method[searchStandardResponses, return_type[type[ApiSuccessResponse]], modifier[public], parameter[luceneSearchStandardResponseData]] begin[{] local_variable[type[ApiResponse], resp] return[call[resp.getData, parameter[]]] end[}] END[}]
Keyword[public] identifier[ApiSuccessResponse] identifier[searchStandardResponses] operator[SEP] identifier[LuceneSearchStandardResponseData] identifier[luceneSearchStandardResponseData] operator[SEP] Keyword[throws] identifier[ApiException] { identifier[ApiResponse] operator[<] identifier[ApiSuccessResponse] op...
@Deprecated public static int count(String string, final com.gs.collections.impl.block.predicate.primitive.CharPredicate predicate) { return StringIterate.countChar(string, new CharPredicate() { public boolean accept(char value) { return predicate.accept(v...
class class_name[name] begin[{] method[count, return_type[type[int]], modifier[public static], parameter[string, predicate]] begin[{] return[call[StringIterate.countChar, parameter[member[.string], ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[], body=[ReturnStatement(expression=Metho...
annotation[@] identifier[Deprecated] Keyword[public] Keyword[static] Keyword[int] identifier[count] operator[SEP] identifier[String] identifier[string] , Keyword[final] identifier[com] operator[SEP] identifier[gs] operator[SEP] identifier[collections] operator[SEP] identifier[impl] operator[SEP] identifier[block] oper...
public void normalizeCifar(File fileName) { DataSet result = new DataSet(); result.load(fileName); if (!meanStdStored && train) { uMean = Math.abs(uMean / numExamples); uStd = Math.sqrt(uStd); vMean = Math.abs(vMean / numExamples); vStd = Math.sqrt...
class class_name[name] begin[{] method[normalizeCifar, return_type[void], modifier[public], parameter[fileName]] begin[{] local_variable[type[DataSet], result] call[result.load, parameter[member[.fileName]]] if[binary_operation[member[.meanStdStored], &&, member[.train]]...
Keyword[public] Keyword[void] identifier[normalizeCifar] operator[SEP] identifier[File] identifier[fileName] operator[SEP] { identifier[DataSet] identifier[result] operator[=] Keyword[new] identifier[DataSet] operator[SEP] operator[SEP] operator[SEP] identifier[result] operator[SEP] identifier[load] operator[SEP...
@MainThread public void change(T obj) { if (!isLockEnabled) { throw new RuntimeException("changing of values only cen be performed in locked state"); } modifiedValue = obj; notifyInMainThread(modifiedValue); }
class class_name[name] begin[{] method[change, return_type[void], modifier[public], parameter[obj]] begin[{] if[member[.isLockEnabled]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="...
annotation[@] identifier[MainThread] Keyword[public] Keyword[void] identifier[change] operator[SEP] identifier[T] identifier[obj] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[isLockEnabled] operator[SEP] { Keyword[throw] Keyword[new] identifier[RuntimeException] operator[SEP] liter...
@Override public synchronized ChainGroupData removeChainGroup(String groupName) throws ChainGroupException { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Removing chain group, " + groupName); } if (null == groupName) { throw new Cha...
class class_name[name] begin[{] method[removeChainGroup, return_type[type[ChainGroupData]], modifier[synchronized public], parameter[groupName]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isDebugEnabled, parameter[]]]] begin[{] ...
annotation[@] identifier[Override] Keyword[public] Keyword[synchronized] identifier[ChainGroupData] identifier[removeChainGroup] operator[SEP] identifier[String] identifier[groupName] operator[SEP] Keyword[throws] identifier[ChainGroupException] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP...
@Override protected void introspectWrapperSpecificInfo(com.ibm.ws.rsadapter.FFDCLogger info) { info.append("Underlying Statement: " + AdapterUtil.toString(stmtImpl), stmtImpl); info.append("Statement properties have changed? " + haveStatementPropertiesChanged); info.append("Poolability ...
class class_name[name] begin[{] method[introspectWrapperSpecificInfo, return_type[void], modifier[protected], parameter[info]] begin[{] call[info.append, parameter[binary_operation[literal["Underlying Statement: "], +, call[AdapterUtil.toString, parameter[member[.stmtImpl]]]], member[.stmtImpl]...
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[introspectWrapperSpecificInfo] operator[SEP] identifier[com] operator[SEP] identifier[ibm] operator[SEP] identifier[ws] operator[SEP] identifier[rsadapter] operator[SEP] identifier[FFDCLogger] identifier[info] operator[SEP] { identifi...
private JsonElement parse(JsonElement element, JsonSchema schema) throws DataConversionException { JsonObject root = new JsonObject(); root.add(DEFAULT_RECORD_COLUMN_NAME, element); JsonObject jsonObject = parse(root, schema); return jsonObject.get(DEFAULT_RECORD_COLUMN_NAME); }
class class_name[name] begin[{] method[parse, return_type[type[JsonElement]], modifier[private], parameter[element, schema]] begin[{] local_variable[type[JsonObject], root] call[root.add, parameter[member[.DEFAULT_RECORD_COLUMN_NAME], member[.element]]] local_variable[type[JsonO...
Keyword[private] identifier[JsonElement] identifier[parse] operator[SEP] identifier[JsonElement] identifier[element] , identifier[JsonSchema] identifier[schema] operator[SEP] Keyword[throws] identifier[DataConversionException] { identifier[JsonObject] identifier[root] operator[=] Keyword[new] identifier[JsonObj...
public final Trace alert(Class<?> c, String message) { return _trace.alert(c, message); }
class class_name[name] begin[{] method[alert, return_type[type[Trace]], modifier[final public], parameter[c, message]] begin[{] return[call[_trace.alert, parameter[member[.c], member[.message]]]] end[}] END[}]
Keyword[public] Keyword[final] identifier[Trace] identifier[alert] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[c] , identifier[String] identifier[message] operator[SEP] { Keyword[return] identifier[_trace] operator[SEP] identifier[alert] operator[SEP] identifier[c] , identifi...