code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public Type getType(CollectionLikeType jacksonType) { // try { String signature = JacksonSignature.createSignature(jacksonType); JavaType contentType = jacksonType.getContentType(); String contentSignature = JacksonSignature.createSignature(contentType); Class<?> containerClass =...
class class_name[name] begin[{] method[getType, return_type[type[Type]], modifier[public], parameter[jacksonType]] begin[{] local_variable[type[String], signature] local_variable[type[JavaType], contentType] local_variable[type[String], contentSignature] local_variable[type[Clas...
Keyword[public] identifier[Type] identifier[getType] operator[SEP] identifier[CollectionLikeType] identifier[jacksonType] operator[SEP] { identifier[String] identifier[signature] operator[=] identifier[JacksonSignature] operator[SEP] identifier[createSignature] operator[SEP] identifier[jacksonType] operator[SEP]...
public void addAllOfFromTo(AbstractDoubleList other, int from, int to) { beforeInsertAllOfFromTo(size,other,from,to); }
class class_name[name] begin[{] method[addAllOfFromTo, return_type[void], modifier[public], parameter[other, from, to]] begin[{] call[.beforeInsertAllOfFromTo, parameter[member[.size], member[.other], member[.from], member[.to]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[addAllOfFromTo] operator[SEP] identifier[AbstractDoubleList] identifier[other] , Keyword[int] identifier[from] , Keyword[int] identifier[to] operator[SEP] { identifier[beforeInsertAllOfFromTo] operator[SEP] identifier[size] , identifier[other] , identifier[from] , id...
public static FastByteArrayOutputStream copyToOutputStream(final InputStream input, final int count) throws IOException { try (FastByteArrayOutputStream output = createFastByteArrayOutputStream()) { copy(input, output, count); return output; } }
class class_name[name] begin[{] method[copyToOutputStream, return_type[type[FastByteArrayOutputStream]], modifier[public static], parameter[input, count]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=input, postfix_operators=[], prefix_o...
Keyword[public] Keyword[static] identifier[FastByteArrayOutputStream] identifier[copyToOutputStream] operator[SEP] Keyword[final] identifier[InputStream] identifier[input] , Keyword[final] Keyword[int] identifier[count] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[try] operator[SEP] identifie...
public Checkbox setEnabledValueString(String value) { boolean checked = this.isChecked();//Maintain checked status this.setProperty("value", value); this.setChecked(checked); return this; }
class class_name[name] begin[{] method[setEnabledValueString, return_type[type[Checkbox]], modifier[public], parameter[value]] begin[{] local_variable[type[boolean], checked] THIS[call[None.setProperty, parameter[literal["value"], member[.value]]]] THIS[call[None.setChec...
Keyword[public] identifier[Checkbox] identifier[setEnabledValueString] operator[SEP] identifier[String] identifier[value] operator[SEP] { Keyword[boolean] identifier[checked] operator[=] Keyword[this] operator[SEP] identifier[isChecked] operator[SEP] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identi...
private CmsADESessionCache getSessionCache(CmsObject cms) { return m_editableRequest ? CmsADESessionCache.getCache((HttpServletRequest)(pageContext.getRequest()), cms) : null; }
class class_name[name] begin[{] method[getSessionCache, return_type[type[CmsADESessionCache]], modifier[private], parameter[cms]] begin[{] return[TernaryExpression(condition=MemberReference(member=m_editableRequest, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), if_false=Literal(...
Keyword[private] identifier[CmsADESessionCache] identifier[getSessionCache] operator[SEP] identifier[CmsObject] identifier[cms] operator[SEP] { Keyword[return] identifier[m_editableRequest] operator[?] identifier[CmsADESessionCache] operator[SEP] identifier[getCache] operator[SEP] operator[SEP] identifier[HttpSe...
public Object layout(Map model, String templateName, boolean inheritModel) throws IOException, ClassNotFoundException { Map submodel = inheritModel ? forkModel(model) : model; URL resource = engine.resolveTemplate(templateName); engine.createTypeCheckedModelTemplate(resource, modelTypes).make(su...
class class_name[name] begin[{] method[layout, return_type[type[Object]], modifier[public], parameter[model, templateName, inheritModel]] begin[{] local_variable[type[Map], submodel] local_variable[type[URL], resource] call[engine.createTypeCheckedModelTemplate, parameter[member...
Keyword[public] identifier[Object] identifier[layout] operator[SEP] identifier[Map] identifier[model] , identifier[String] identifier[templateName] , Keyword[boolean] identifier[inheritModel] operator[SEP] Keyword[throws] identifier[IOException] , identifier[ClassNotFoundException] { identifier[Map] identifie...
@SuppressWarnings("rawtypes") private void getMultiRowAppData() { populatedAppData = true; Map<Object, Object> swappable = getSwappableData(); Hashtable props = (Hashtable) ((CacheHashMap) getSessions()).getAllValues(this); if (props != null) { Enumeration kys = props.key...
class class_name[name] begin[{] method[getMultiRowAppData, return_type[void], modifier[private], parameter[]] begin[{] assign[member[.populatedAppData], literal[true]] local_variable[type[Map], swappable] local_variable[type[Hashtable], props] if[binary_operation...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[private] Keyword[void] identifier[getMultiRowAppData] operator[SEP] operator[SEP] { identifier[populatedAppData] operator[=] literal[boolean] operator[SEP] identifier[Map] operator[<] identifier[Object] , identifier[O...
protected byte[] getResource() { byte[] resource = this.myURIBytes; // 355398 - use SC impl HttpOutboundServiceContextImpl sc = (HttpOutboundServiceContextImpl) super.getServiceContext(); if (sc.getLink().getTargetAddress().isForwardProxy()) { resource = getRequestURLAsByteAr...
class class_name[name] begin[{] method[getResource, return_type[type[byte]], modifier[protected], parameter[]] begin[{] local_variable[type[byte], resource] local_variable[type[HttpOutboundServiceContextImpl], sc] if[call[sc.getLink, parameter[]]] begin[{] ...
Keyword[protected] Keyword[byte] operator[SEP] operator[SEP] identifier[getResource] operator[SEP] operator[SEP] { Keyword[byte] operator[SEP] operator[SEP] identifier[resource] operator[=] Keyword[this] operator[SEP] identifier[myURIBytes] operator[SEP] identifier[HttpOutboundServiceContextImpl] identifier[sc] ...
public int getZoomLevel() { Projection projection = getProjection(); if (projection == null) { throw new GeoPackageException( "No projection was set which is required to determine the zoom level"); } int zoomLevel = 0; BoundingBox boundingBox = getBoundingBox(); if (boundingBox != null) { if (pro...
class class_name[name] begin[{] method[getZoomLevel, return_type[type[int]], modifier[public], parameter[]] begin[{] local_variable[type[Projection], projection] if[binary_operation[member[.projection], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(argu...
Keyword[public] Keyword[int] identifier[getZoomLevel] operator[SEP] operator[SEP] { identifier[Projection] identifier[projection] operator[=] identifier[getProjection] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[projection] operator[==] Other[null] operator[SEP] { Ke...
public final Point2D getXY() { if (isEmptyImpl()) throw new GeometryException( "This operation should not be performed on an empty geometry."); Point2D pt = new Point2D(); pt.setCoords(m_attributes[0], m_attributes[1]); return pt; }
class class_name[name] begin[{] method[getXY, return_type[type[Point2D]], modifier[final public], parameter[]] begin[{] if[call[.isEmptyImpl, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[],...
Keyword[public] Keyword[final] identifier[Point2D] identifier[getXY] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[isEmptyImpl] operator[SEP] operator[SEP] operator[SEP] Keyword[throw] Keyword[new] identifier[GeometryException] operator[SEP] literal[String] operator[SEP] operator[SEP] identi...
protected void normalizeItemWidths() { int widestItemWidth = 1 + getWidthOfWidestItem(); // Add 1 because actual width may not be an integer for (CmsContextMenuItemWidget item : m_menuItems) { if (measureWidth(item) <= widestItemWidth) { item.setWidth(widestItemWidth...
class class_name[name] begin[{] method[normalizeItemWidths, return_type[void], modifier[protected], parameter[]] begin[{] local_variable[type[int], widestItemWidth] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments...
Keyword[protected] Keyword[void] identifier[normalizeItemWidths] operator[SEP] operator[SEP] { Keyword[int] identifier[widestItemWidth] operator[=] Other[1] operator[+] identifier[getWidthOfWidestItem] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[CmsContextMenuItemWidget] ident...
@Override public void define(Context context) { List<Object> l = new ArrayList<>(); // plugin elements l.add(CppLanguage.class); l.add(CxxDefaultProfile.class); l.add(CxxRuleRepository.class); // reusable elements l.addAll(getSensorsImpl()); // properties elements l.addAll(gener...
class class_name[name] begin[{] method[define, return_type[void], modifier[public], parameter[context]] begin[{] local_variable[type[List], l] call[l.add, parameter[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dim...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[define] operator[SEP] identifier[Context] identifier[context] operator[SEP] { identifier[List] operator[<] identifier[Object] operator[>] identifier[l] operator[=] Keyword[new] identifier[ArrayList] operator[<] operator[>] operator[SEP] ...
public void disconnect() throws IOException { if (currentSession != null && currentSession.isOpen()) { synchronized (currentSession) { this.currentSession.close(new CloseReason( CloseReason.CloseCodes.NORMAL_CLOSURE, RTMClient.class.get...
class class_name[name] begin[{] method[disconnect, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[binary_operation[member[.currentSession], !=, literal[null]], &&, call[currentSession.isOpen, parameter[]]]] begin[{] SYNCHRONIZED[member[.cu...
Keyword[public] Keyword[void] identifier[disconnect] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[currentSession] operator[!=] Other[null] operator[&&] identifier[currentSession] operator[SEP] identifier[isOpen] operator[SEP] operator[SEP] operator[SE...
public static String getQualifiedMethodName(Method method, Class<?> clazz) { Assert.notNull(method, "Method must not be null"); return (clazz != null ? clazz : method.getDeclaringClass()).getName() + '.' + method.getName(); }
class class_name[name] begin[{] method[getQualifiedMethodName, return_type[type[String]], modifier[public static], parameter[method, clazz]] begin[{] call[Assert.notNull, parameter[member[.method], literal["Method must not be null"]]] return[binary_operation[binary_operation[TernaryExpr...
Keyword[public] Keyword[static] identifier[String] identifier[getQualifiedMethodName] operator[SEP] identifier[Method] identifier[method] , identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] operator[SEP] { identifier[Assert] operator[SEP] identifier[notNull] operator[SEP] identifier[method...
private static void generateSingleReadMethod(PrefsEntity entity) { // read method PrefsTransform transform; Converter<String, String> converter = CaseFormat.LOWER_CAMEL.converterTo(CaseFormat.UPPER_CAMEL); for (PrefsProperty item : entity.getCollection()) { MethodSpec.Builder methodBuilder = MethodSpec.meth...
class class_name[name] begin[{] method[generateSingleReadMethod, return_type[void], modifier[private static], parameter[entity]] begin[{] local_variable[type[PrefsTransform], transform] local_variable[type[Converter], converter] ForStatement(body=BlockStatement(label=None, statements=[L...
Keyword[private] Keyword[static] Keyword[void] identifier[generateSingleReadMethod] operator[SEP] identifier[PrefsEntity] identifier[entity] operator[SEP] { identifier[PrefsTransform] identifier[transform] operator[SEP] identifier[Converter] operator[<] identifier[String] , identifier[String] operator[>] identi...
public void onExecute(WAMResolvingMachineDPI dpi) { internalRegisters.updateRegisters(dpi.getInternalRegisters()); layoutRegisters.updateRegisters(dpi.getMemoryLayout()); }
class class_name[name] begin[{] method[onExecute, return_type[void], modifier[public], parameter[dpi]] begin[{] call[internalRegisters.updateRegisters, parameter[call[dpi.getInternalRegisters, parameter[]]]] call[layoutRegisters.updateRegisters, parameter[call[dpi.getMemoryLayou...
Keyword[public] Keyword[void] identifier[onExecute] operator[SEP] identifier[WAMResolvingMachineDPI] identifier[dpi] operator[SEP] { identifier[internalRegisters] operator[SEP] identifier[updateRegisters] operator[SEP] identifier[dpi] operator[SEP] identifier[getInternalRegisters] operator[SEP] operator[SEP] ope...
public List<String> bottom(int n) { List<String> bottom = new ArrayList<>(); StringColumn copy = this.copy(); copy.sortAscending(); for (int i = 0; i < n; i++) { bottom.add(copy.get(i)); } return bottom; }
class class_name[name] begin[{] method[bottom, return_type[type[List]], modifier[public], parameter[n]] begin[{] local_variable[type[List], bottom] local_variable[type[StringColumn], copy] call[copy.sortAscending, parameter[]] ForStatement(body=BlockStatement(label=None,...
Keyword[public] identifier[List] operator[<] identifier[String] operator[>] identifier[bottom] operator[SEP] Keyword[int] identifier[n] operator[SEP] { identifier[List] operator[<] identifier[String] operator[>] identifier[bottom] operator[=] Keyword[new] identifier[ArrayList] operator[<] operator[>] operator[SE...
@Override public List<SubsetMove> getAllMoves(SubsetSolution solution) { // create empty list to store generated moves List<SubsetMove> moves = new ArrayList<>(); // get set of candidate IDs for removal (fixed IDs are discarded) Set<Integer> delCandidates = getRemoveCandidates(soluti...
class class_name[name] begin[{] method[getAllMoves, return_type[type[List]], modifier[public], parameter[solution]] begin[{] local_variable[type[List], moves] local_variable[type[Set], delCandidates] local_variable[type[int], curNumDel] if[binary_operation[member[.curNum...
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[SubsetMove] operator[>] identifier[getAllMoves] operator[SEP] identifier[SubsetSolution] identifier[solution] operator[SEP] { identifier[List] operator[<] identifier[SubsetMove] operator[>] identifier[moves] operator[=] Ke...
public static Method getMethodFromMap(String name, Class[] parameters, Map<String, Method>... methods) { String key = name + Arrays.toString(parameters); for (Map<String, Method> m : methods) { if (m.containsKey(key)) { return m.get(key); } else { } } return null; }
class class_name[name] begin[{] method[getMethodFromMap, return_type[type[Method]], modifier[public static], parameter[name, parameters, methods]] begin[{] local_variable[type[String], key] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments...
Keyword[public] Keyword[static] identifier[Method] identifier[getMethodFromMap] operator[SEP] identifier[String] identifier[name] , identifier[Class] operator[SEP] operator[SEP] identifier[parameters] , identifier[Map] operator[<] identifier[String] , identifier[Method] operator[>] operator[...] identifier[methods] ...
protected void setupRoadBorders(ZoomableGraphicsContext gc, RoadPolyline element) { final Color color = gc.rgb(getDrawingColor(element)); gc.setStroke(color); final double width; if (element.isWidePolyline()) { width = 2 + gc.doc2fxSize(element.getWidth()); } else { width = 3; } gc.setLineWidthInPix...
class class_name[name] begin[{] method[setupRoadBorders, return_type[void], modifier[protected], parameter[gc, element]] begin[{] local_variable[type[Color], color] call[gc.setStroke, parameter[member[.color]]] local_variable[type[double], width] if[call[element....
Keyword[protected] Keyword[void] identifier[setupRoadBorders] operator[SEP] identifier[ZoomableGraphicsContext] identifier[gc] , identifier[RoadPolyline] identifier[element] operator[SEP] { Keyword[final] identifier[Color] identifier[color] operator[=] identifier[gc] operator[SEP] identifier[rgb] operator[SEP] ...
protected PageFilter getPageFilter(SlingHttpServletRequest request) { // check for predicate filter String predicateName = RequestParam.get(request, RP_PREDICATE); if (StringUtils.isNotEmpty(predicateName)) { PredicateProvider predicateProvider = getPredicateProvider(); if (predicateProvider ==...
class class_name[name] begin[{] method[getPageFilter, return_type[type[PageFilter]], modifier[protected], parameter[request]] begin[{] local_variable[type[String], predicateName] if[call[StringUtils.isNotEmpty, parameter[member[.predicateName]]]] begin[{] local_variable[type...
Keyword[protected] identifier[PageFilter] identifier[getPageFilter] operator[SEP] identifier[SlingHttpServletRequest] identifier[request] operator[SEP] { identifier[String] identifier[predicateName] operator[=] identifier[RequestParam] operator[SEP] identifier[get] operator[SEP] identifier[request] , identifier...
public static <T> ConstraintViolation<T> forReturnValueValidation(final String messageTemplate, final Map<String, Object> messageParameters, final Map<String, Object> expressionVariables, final String interpolatedMessage, final Class<T> rootBeanClass, final T rootBean, final Object leafBeanInstance, f...
class class_name[name] begin[{] method[forReturnValueValidation, return_type[type[ConstraintViolation]], modifier[public static], parameter[messageTemplate, messageParameters, expressionVariables, interpolatedMessage, rootBeanClass, rootBean, leafBeanInstance, value, propertyPath, constraintDescriptor, element...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[ConstraintViolation] operator[<] identifier[T] operator[>] identifier[forReturnValueValidation] operator[SEP] Keyword[final] identifier[String] identifier[messageTemplate] , Keyword[final] identifier[Map] operator[<] identifier[String] , ...
public static long getOldestLastModified (File dir) { long oldest = dir.lastModified(); File[] files = dir.listFiles(); if (files != null) { for (File file : files) { if (file.isDirectory()) { oldest = Math.min(oldest, getOldestLastModified(fil...
class class_name[name] begin[{] method[getOldestLastModified, return_type[type[long]], modifier[public static], parameter[dir]] begin[{] local_variable[type[long], oldest] local_variable[type[File], files] if[binary_operation[member[.files], !=, literal[null]]] begin[{] ...
Keyword[public] Keyword[static] Keyword[long] identifier[getOldestLastModified] operator[SEP] identifier[File] identifier[dir] operator[SEP] { Keyword[long] identifier[oldest] operator[=] identifier[dir] operator[SEP] identifier[lastModified] operator[SEP] operator[SEP] operator[SEP] identifier[File] operator[SE...
public Map<String, List<? extends SipApplicationRouterInfo>> parse(Properties properties) throws ParseException { this.properties = properties; return parse(); }
class class_name[name] begin[{] method[parse, return_type[type[Map]], modifier[public], parameter[properties]] begin[{] assign[THIS[member[None.properties]], member[.properties]] return[call[.parse, parameter[]]] end[}] END[}]
Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[List] operator[<] operator[?] Keyword[extends] identifier[SipApplicationRouterInfo] operator[>] operator[>] identifier[parse] operator[SEP] identifier[Properties] identifier[properties] operator[SEP] Keyword[throws] identifier[ParseException] ...
public void add(E element) { if (element == null) throw new NullPointerException(); if (root == null) { root = new MutableNode<>(element); } else { MutableNode<E> node = root; while (!node.getElement().equals(element)) { int distance = distanc...
class class_name[name] begin[{] method[add, return_type[void], modifier[public], parameter[element]] begin[{] if[binary_operation[member[.element], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[],...
Keyword[public] Keyword[void] identifier[add] operator[SEP] identifier[E] identifier[element] operator[SEP] { Keyword[if] operator[SEP] identifier[element] operator[==] Other[null] operator[SEP] Keyword[throw] Keyword[new] identifier[NullPointerException] operator[SEP] operator[SEP] operator[SEP] Keyword[if] ope...
public static Object convertObjectToDatatype(Object objData, Class<?> classData, Object objDefault, int iScale) throws Exception { if (objData == null) return objDefault; if (objData.getClass() == classData) return objData; objData = objData.toString(); // M...
class class_name[name] begin[{] method[convertObjectToDatatype, return_type[type[Object]], modifier[public static], parameter[objData, classData, objDefault, iScale]] begin[{] if[binary_operation[member[.objData], ==, literal[null]]] begin[{] return[member[.objDefault]] else begin[{] No...
Keyword[public] Keyword[static] identifier[Object] identifier[convertObjectToDatatype] operator[SEP] identifier[Object] identifier[objData] , identifier[Class] operator[<] operator[?] operator[>] identifier[classData] , identifier[Object] identifier[objDefault] , Keyword[int] identifier[iScale] operator[SEP] Keyword...
public void write(DataOutputStream stream, byte sequenceId) throws IOException { this.sequenceId = sequenceId; stream.write(PREAMBLE); stream.write(sequenceId); stream.write(action.getCode()); stream.write(buffer.toArray()); stream.write(Constants.EOD); }
class class_name[name] begin[{] method[write, return_type[void], modifier[public], parameter[stream, sequenceId]] begin[{] assign[THIS[member[None.sequenceId]], member[.sequenceId]] call[stream.write, parameter[member[.PREAMBLE]]] call[stream.write, parameter[mem...
Keyword[public] Keyword[void] identifier[write] operator[SEP] identifier[DataOutputStream] identifier[stream] , Keyword[byte] identifier[sequenceId] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[this] operator[SEP] identifier[sequenceId] operator[=] identifier[sequenceId] operator[SEP] identif...
public final void subscribe(IxConsumer<? super T> onNext, IxConsumer<Throwable> onError) { try { for (T v : this) { onNext.accept(v); } } catch (Throwable ex) { onError.accept(ex); } }
class class_name[name] begin[{] method[subscribe, return_type[void], modifier[final public], parameter[onNext, onError]] begin[{] TryStatement(block=[ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=v, postfix_ope...
Keyword[public] Keyword[final] Keyword[void] identifier[subscribe] operator[SEP] identifier[IxConsumer] operator[<] operator[?] Keyword[super] identifier[T] operator[>] identifier[onNext] , identifier[IxConsumer] operator[<] identifier[Throwable] operator[>] identifier[onError] operator[SEP] { Keyword[try] { ...
public boolean isSharable(Map<String, com.ibm.websphere.channelfw.ChannelData> channelConfiguration) { return false; }
class class_name[name] begin[{] method[isSharable, return_type[type[boolean]], modifier[public], parameter[channelConfiguration]] begin[{] return[literal[false]] end[}] END[}]
Keyword[public] Keyword[boolean] identifier[isSharable] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[com] operator[SEP] identifier[ibm] operator[SEP] identifier[websphere] operator[SEP] identifier[channelfw] operator[SEP] identifier[ChannelData] operator[>] identifier[channelConfiguration]...
public void setMalwareName(java.util.Collection<StringFilter> malwareName) { if (malwareName == null) { this.malwareName = null; return; } this.malwareName = new java.util.ArrayList<StringFilter>(malwareName); }
class class_name[name] begin[{] method[setMalwareName, return_type[void], modifier[public], parameter[malwareName]] begin[{] if[binary_operation[member[.malwareName], ==, literal[null]]] begin[{] assign[THIS[member[None.malwareName]], literal[null]] return[No...
Keyword[public] Keyword[void] identifier[setMalwareName] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[StringFilter] operator[>] identifier[malwareName] operator[SEP] { Keyword[if] operator[SEP] identifier[malwareName] operator[==] Other...
public VirtualWANInner getByResourceGroup(String resourceGroupName, String virtualWANName) { return getByResourceGroupWithServiceResponseAsync(resourceGroupName, virtualWANName).toBlocking().single().body(); }
class class_name[name] begin[{] method[getByResourceGroup, return_type[type[VirtualWANInner]], modifier[public], parameter[resourceGroupName, virtualWANName]] begin[{] return[call[.getByResourceGroupWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.virtualWANName]]]] end[}] EN...
Keyword[public] identifier[VirtualWANInner] identifier[getByResourceGroup] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[virtualWANName] operator[SEP] { Keyword[return] identifier[getByResourceGroupWithServiceResponseAsync] operator[SEP] identifier[resourceGroupN...
@Override public void cacheResult(List<CPDefinitionInventory> cpDefinitionInventories) { for (CPDefinitionInventory cpDefinitionInventory : cpDefinitionInventories) { if (entityCache.getResult( CPDefinitionInventoryModelImpl.ENTITY_CACHE_ENABLED, CPDefinitionInventoryImpl.class, cpDefinitionInve...
class class_name[name] begin[{] method[cacheResult, return_type[void], modifier[public], parameter[cpDefinitionInventories]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=ENTITY_CACHE_E...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[cacheResult] operator[SEP] identifier[List] operator[<] identifier[CPDefinitionInventory] operator[>] identifier[cpDefinitionInventories] operator[SEP] { Keyword[for] operator[SEP] identifier[CPDefinitionInventory] identifier[cpDefinitio...
protected FaxJob2HTTPRequestConverter createFaxJob2HTTPRequestConverter() { //get property part String propertyPart=this.getPropertyPart(); //create converter FaxJob2HTTPRequestConverter converter=(FaxJob2HTTPRequestConverter)ServiceFactory.createService(FaxClientSpiConfigurationCon...
class class_name[name] begin[{] method[createFaxJob2HTTPRequestConverter, return_type[type[FaxJob2HTTPRequestConverter]], modifier[protected], parameter[]] begin[{] local_variable[type[String], propertyPart] local_variable[type[FaxJob2HTTPRequestConverter], converter] return[member[.con...
Keyword[protected] identifier[FaxJob2HTTPRequestConverter] identifier[createFaxJob2HTTPRequestConverter] operator[SEP] operator[SEP] { identifier[String] identifier[propertyPart] operator[=] Keyword[this] operator[SEP] identifier[getPropertyPart] operator[SEP] operator[SEP] operator[SEP] identifier[FaxJob2HTTPRe...
private final int m() { int n = 0; int i = 0; for (; cons(i); ++i) { if (i > j) return n; } i++; while(i <= j) { for (; !cons(i); ++i) { if (i > j) return n; } i++; ...
class class_name[name] begin[{] method[m, return_type[type[int]], modifier[final private], parameter[]] begin[{] local_variable[type[int], n] local_variable[type[int], i] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberRefere...
Keyword[private] Keyword[final] Keyword[int] identifier[m] operator[SEP] operator[SEP] { Keyword[int] identifier[n] operator[=] Other[0] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] operator[SEP] identifier[cons] operator[SEP] identifier[i] operator[SEP] ...
public BootstrapFeedbackPanel uniqueMessages(){ if(filter!=null){ setFilter(new AndComposedFeedbackMessageFilter(new UniqueFeedbackMessageFilter(), new ExcludePopoverMessageFilter(), filter)); } else { setFilter(new AndComposedFeedbackMessageFilter(new UniqueFeedbackMessageFilter(), new ExcludePopoverMessageF...
class class_name[name] begin[{] method[uniqueMessages, return_type[type[BootstrapFeedbackPanel]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.filter], !=, literal[null]]] begin[{] call[.setFilter, parameter[ClassCreator(arguments=[ClassCreator(arg...
Keyword[public] identifier[BootstrapFeedbackPanel] identifier[uniqueMessages] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[filter] operator[!=] Other[null] operator[SEP] { identifier[setFilter] operator[SEP] Keyword[new] identifier[AndComposedFeedbackMessageFilter] operator[SEP] ...
public static BitSet and(BitSet left, BitSet right) { BitSet result = (BitSet) left.clone(); result.and(right); return result; }
class class_name[name] begin[{] method[and, return_type[type[BitSet]], modifier[public static], parameter[left, right]] begin[{] local_variable[type[BitSet], result] call[result.and, parameter[member[.right]]] return[member[.result]] end[}] END[}]
Keyword[public] Keyword[static] identifier[BitSet] identifier[and] operator[SEP] identifier[BitSet] identifier[left] , identifier[BitSet] identifier[right] operator[SEP] { identifier[BitSet] identifier[result] operator[=] operator[SEP] identifier[BitSet] operator[SEP] identifier[left] operator[SEP] identifier[c...
public static String includeDirectEditElement( PageContext context, String jspIncludeFile, String element, String editTarget, String editElement, String editOptions, String editPermissions, String createLink) throws JspException { if (editPermissi...
class class_name[name] begin[{] method[includeDirectEditElement, return_type[type[String]], modifier[public static], parameter[context, jspIncludeFile, element, editTarget, editElement, editOptions, editPermissions, createLink]] begin[{] if[binary_operation[member[.editPermissions], ==, literal...
Keyword[public] Keyword[static] identifier[String] identifier[includeDirectEditElement] operator[SEP] identifier[PageContext] identifier[context] , identifier[String] identifier[jspIncludeFile] , identifier[String] identifier[element] , identifier[String] identifier[editTarget] , identifier[String] identifier[editE...
private static boolean mappedToNothing(final char ch) { return ch == '\u00AD' || ch == '\u034F' || ch == '\u1806' || ch == '\u180B' || ch == '\u180C' || ch == '\u180D' || ch == '\u200B' || ch == '\u20...
class class_name[name] begin[{] method[mappedToNothing, return_type[type[boolean]], modifier[private static], parameter[ch]] begin[{] return[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_op...
Keyword[private] Keyword[static] Keyword[boolean] identifier[mappedToNothing] operator[SEP] Keyword[final] Keyword[char] identifier[ch] operator[SEP] { Keyword[return] identifier[ch] operator[==] literal[String] operator[||] identifier[ch] operator[==] literal[String] operator[||] identifier[ch] operator[==] lit...
public int getInt( String key ) { verifyIsNull(); Object o = get( key ); if( o != null ){ return o instanceof Number ? ((Number) o).intValue() : (int) getDouble( key ); } throw new JSONException( "JSONObject[" + JSONUtils.quote( key ) + "] is not a number." ); }
class class_name[name] begin[{] method[getInt, return_type[type[int]], modifier[public], parameter[key]] begin[{] call[.verifyIsNull, parameter[]] local_variable[type[Object], o] if[binary_operation[member[.o], !=, literal[null]]] begin[{] return[TernaryExpre...
Keyword[public] Keyword[int] identifier[getInt] operator[SEP] identifier[String] identifier[key] operator[SEP] { identifier[verifyIsNull] operator[SEP] operator[SEP] operator[SEP] identifier[Object] identifier[o] operator[=] identifier[get] operator[SEP] identifier[key] operator[SEP] operator[SEP] Keyword[if] op...
public <S, D> TypeMap<S, D> getTypeMap(Class<S> sourceType, Class<D> destinationType) { Assert.notNull(sourceType, "sourceType"); Assert.notNull(destinationType, "destinationType"); return config.typeMapStore.<S, D>get(sourceType, destinationType, null); }
class class_name[name] begin[{] method[getTypeMap, return_type[type[TypeMap]], modifier[public], parameter[sourceType, destinationType]] begin[{] call[Assert.notNull, parameter[member[.sourceType], literal["sourceType"]]] call[Assert.notNull, parameter[member[.destinationType], ...
Keyword[public] operator[<] identifier[S] , identifier[D] operator[>] identifier[TypeMap] operator[<] identifier[S] , identifier[D] operator[>] identifier[getTypeMap] operator[SEP] identifier[Class] operator[<] identifier[S] operator[>] identifier[sourceType] , identifier[Class] operator[<] identifier[D] operator[>]...
public static FacebookCookie decode(String cookie, String appSecret) { // Parsing and verifying signature seems to be poorly documented, but here's what I've found: // Look at parseSignedRequest() in https://github.com/facebook/php-sdk/blob/master/src/base_facebook.php // Python version: https://developers....
class class_name[name] begin[{] method[decode, return_type[type[FacebookCookie]], modifier[public static], parameter[cookie, appSecret]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Literal(p...
Keyword[public] Keyword[static] identifier[FacebookCookie] identifier[decode] operator[SEP] identifier[String] identifier[cookie] , identifier[String] identifier[appSecret] operator[SEP] { Keyword[try] { identifier[String] operator[SEP] operator[SEP] identifier[parts] operator[=] identifier[cookie] o...
public void basic(String host, int port, String user, String pass) { builder.getClient().getCredentialsProvider().setCredentials( new AuthScope(host, port), new UsernamePasswordCredentials(user, pass) ); }
class class_name[name] begin[{] method[basic, return_type[void], modifier[public], parameter[host, port, user, pass]] begin[{] call[builder.getClient, parameter[]] end[}] END[}]
Keyword[public] Keyword[void] identifier[basic] operator[SEP] identifier[String] identifier[host] , Keyword[int] identifier[port] , identifier[String] identifier[user] , identifier[String] identifier[pass] operator[SEP] { identifier[builder] operator[SEP] identifier[getClient] operator[SEP] operator[SEP] oper...
public ServiceFuture<List<UsageInner>> listAsync(final ServiceCallback<List<UsageInner>> serviceCallback) { return ServiceFuture.fromResponse(listWithServiceResponseAsync(), serviceCallback); }
class class_name[name] begin[{] method[listAsync, return_type[type[ServiceFuture]], modifier[public], parameter[serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.listWithServiceResponseAsync, parameter[]], member[.serviceCallback]]]] end[}] END[}]
Keyword[public] identifier[ServiceFuture] operator[<] identifier[List] operator[<] identifier[UsageInner] operator[>] operator[>] identifier[listAsync] operator[SEP] Keyword[final] identifier[ServiceCallback] operator[<] identifier[List] operator[<] identifier[UsageInner] operator[>] operator[>] identifier[serviceCallb...
public float[] t2(float[] z, int k) { float[] result = new float[z.length]; System.arraycopy(z, 0, result, 0, k); for (int i = k; i < z.length; i++) { result[i] = (new Transformations()).bFlat(z[i], (float) 0.8, (float) 0.75, (float) 0.85); } return result; }
class class_name[name] begin[{] method[t2, return_type[type[float]], modifier[public], parameter[z, k]] begin[{] local_variable[type[float], result] call[System.arraycopy, parameter[member[.z], literal[0], member[.result], literal[0], member[.k]]] ForStatement(body=BlockStatemen...
Keyword[public] Keyword[float] operator[SEP] operator[SEP] identifier[t2] operator[SEP] Keyword[float] operator[SEP] operator[SEP] identifier[z] , Keyword[int] identifier[k] operator[SEP] { Keyword[float] operator[SEP] operator[SEP] identifier[result] operator[=] Keyword[new] Keyword[float] operator[SEP] identi...
@Override public boolean isEquivalentTo(TimeZoneRule other) { if (!(other instanceof TimeArrayTimeZoneRule)) { return false; } if (timeType == ((TimeArrayTimeZoneRule)other).timeType && Arrays.equals(startTimes, ((TimeArrayTimeZoneRule)other).startTimes)) { ...
class class_name[name] begin[{] method[isEquivalentTo, return_type[type[boolean]], modifier[public], parameter[other]] begin[{] if[binary_operation[member[.other], instanceof, type[TimeArrayTimeZoneRule]]] begin[{] return[literal[false]] else begin[{] None end[}] ...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[isEquivalentTo] operator[SEP] identifier[TimeZoneRule] identifier[other] operator[SEP] { Keyword[if] operator[SEP] operator[!] operator[SEP] identifier[other] Keyword[instanceof] identifier[TimeArrayTimeZoneRule] operator[SEP] operato...
@Override public List<CPInstance> findByLtD_S(Date displayDate, int status, int start, int end, OrderByComparator<CPInstance> orderByComparator) { return findByLtD_S(displayDate, status, start, end, orderByComparator, true); }
class class_name[name] begin[{] method[findByLtD_S, return_type[type[List]], modifier[public], parameter[displayDate, status, start, end, orderByComparator]] begin[{] return[call[.findByLtD_S, parameter[member[.displayDate], member[.status], member[.start], member[.end], member[.orderByComparator], lit...
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[CPInstance] operator[>] identifier[findByLtD_S] operator[SEP] identifier[Date] identifier[displayDate] , Keyword[int] identifier[status] , Keyword[int] identifier[start] , Keyword[int] identifier[end] , identifier[OrderByComp...
public FessMessages addSuccessCrudUpdateCrudTable(String property) { assertPropertyNotNull(property); add(property, new UserMessage(SUCCESS_crud_update_crud_table)); return this; }
class class_name[name] begin[{] method[addSuccessCrudUpdateCrudTable, return_type[type[FessMessages]], modifier[public], parameter[property]] begin[{] call[.assertPropertyNotNull, parameter[member[.property]]] call[.add, parameter[member[.property], ClassCreator(arguments=[Membe...
Keyword[public] identifier[FessMessages] identifier[addSuccessCrudUpdateCrudTable] operator[SEP] identifier[String] identifier[property] operator[SEP] { identifier[assertPropertyNotNull] operator[SEP] identifier[property] operator[SEP] operator[SEP] identifier[add] operator[SEP] identifier[property] , Keyword[n...
@Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case SimpleExpressionsPackage.COMPARISON__LEFT: return getLeft(); case SimpleExpressionsPackage.COMPARISON__OPERATOR: return getOperator(); case SimpleExpressionsPackage.CO...
class class_name[name] begin[{] method[eGet, return_type[type[Object]], modifier[public], parameter[featureID, resolve, coreType]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=COMPARISON__LEFT, postfix_operators=[], prefix_operators=[], qualifier=SimpleExpressionsPac...
annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[eGet] operator[SEP] Keyword[int] identifier[featureID] , Keyword[boolean] identifier[resolve] , Keyword[boolean] identifier[coreType] operator[SEP] { Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] { K...
public static Object sqlRS(DataSource ds, String sql, Function<ResultSet, Object> fun) { try (Connection conn = ds.getConnection(); Statement stmt = conn.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY)) { stmt.setFetchSize(Integer.MIN_VALUE); try ...
class class_name[name] begin[{] method[sqlRS, return_type[type[Object]], modifier[public static], parameter[ds, sql, fun]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=MIN_VALUE, postfix_operators=[], prefix_operators=[], qualifier=Integ...
Keyword[public] Keyword[static] identifier[Object] identifier[sqlRS] operator[SEP] identifier[DataSource] identifier[ds] , identifier[String] identifier[sql] , identifier[Function] operator[<] identifier[ResultSet] , identifier[Object] operator[>] identifier[fun] operator[SEP] { Keyword[try] operator[SEP] ide...
static FormattingTuple format(String messagePattern, Object arg) { return arrayFormat(messagePattern, new Object[]{arg}); }
class class_name[name] begin[{] method[format, return_type[type[FormattingTuple]], modifier[static], parameter[messagePattern, arg]] begin[{] return[call[.arrayFormat, parameter[member[.messagePattern], ArrayCreator(dimensions=[None], initializer=ArrayInitializer(initializers=[MemberReference(member=ar...
Keyword[static] identifier[FormattingTuple] identifier[format] operator[SEP] identifier[String] identifier[messagePattern] , identifier[Object] identifier[arg] operator[SEP] { Keyword[return] identifier[arrayFormat] operator[SEP] identifier[messagePattern] , Keyword[new] identifier[Object] operator[SEP] operat...
public final void addDefaultMessage(final String key, final String value) { Validate.notNull(key, "Key for default message cannot be null"); Validate.notNull(value, "Value for default message cannot be null"); this.defaultMessages.put(key, value); }
class class_name[name] begin[{] method[addDefaultMessage, return_type[void], modifier[final public], parameter[key, value]] begin[{] call[Validate.notNull, parameter[member[.key], literal["Key for default message cannot be null"]]] call[Validate.notNull, parameter[member[.value]...
Keyword[public] Keyword[final] Keyword[void] identifier[addDefaultMessage] operator[SEP] Keyword[final] identifier[String] identifier[key] , Keyword[final] identifier[String] identifier[value] operator[SEP] { identifier[Validate] operator[SEP] identifier[notNull] operator[SEP] identifier[key] , literal[String]...
protected void addFilterQueryParts(CmsSolrQuery query) { if (!m_state.getCheckedEntries().isEmpty()) { StringBuffer value = new StringBuffer(); value.append("{!tag=").append(m_config.getName()).append('}'); value.append(m_config.getRange()); value.append(":("); ...
class class_name[name] begin[{] method[addFilterQueryParts, return_type[void], modifier[protected], parameter[query]] begin[{] if[call[m_state.getCheckedEntries, parameter[]]] begin[{] local_variable[type[StringBuffer], value] call[value.append, parameter[lit...
Keyword[protected] Keyword[void] identifier[addFilterQueryParts] operator[SEP] identifier[CmsSolrQuery] identifier[query] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[m_state] operator[SEP] identifier[getCheckedEntries] operator[SEP] operator[SEP] operator[SEP] identifier[isEmpty] operator[SE...
public void doFilter(final ServletRequest request, final ServletResponse response, final FilterChain chain) throws IOException, ServletException { final HttpServletRequest req = (HttpServletRequest) request; final HttpServletResponse res = (HttpServletResponse) response; if (req.ge...
class class_name[name] begin[{] method[doFilter, return_type[void], modifier[public], parameter[request, response, chain]] begin[{] local_variable[type[HttpServletRequest], req] local_variable[type[HttpServletResponse], res] if[call[req.getServerName, parameter[]]] begin[{] ...
Keyword[public] Keyword[void] identifier[doFilter] operator[SEP] Keyword[final] identifier[ServletRequest] identifier[request] , Keyword[final] identifier[ServletResponse] identifier[response] , Keyword[final] identifier[FilterChain] identifier[chain] operator[SEP] Keyword[throws] identifier[IOException] , identifie...
public PolicyEventsQueryResultsInner listQueryResultsForSubscription(String subscriptionId, QueryOptions queryOptions) { return listQueryResultsForSubscriptionWithServiceResponseAsync(subscriptionId, queryOptions).toBlocking().single().body(); }
class class_name[name] begin[{] method[listQueryResultsForSubscription, return_type[type[PolicyEventsQueryResultsInner]], modifier[public], parameter[subscriptionId, queryOptions]] begin[{] return[call[.listQueryResultsForSubscriptionWithServiceResponseAsync, parameter[member[.subscriptionId], member[....
Keyword[public] identifier[PolicyEventsQueryResultsInner] identifier[listQueryResultsForSubscription] operator[SEP] identifier[String] identifier[subscriptionId] , identifier[QueryOptions] identifier[queryOptions] operator[SEP] { Keyword[return] identifier[listQueryResultsForSubscriptionWithServiceResponseAsync...
public void assertCookiePresentByName(final String cookieName) { Set<Cookie> cookies = driver.manage().getCookies(); for (Cookie cookie : cookies) { if (cookie.getName().equals(cookieName)) { LOG.info("Cookie: " + cookieName + " was found with value: " + cookie.getValue()); Assert.assertEquals(coo...
class class_name[name] begin[{] method[assertCookiePresentByName, return_type[void], modifier[public], parameter[cookieName]] begin[{] local_variable[type[Set], cookies] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[], member=getName,...
Keyword[public] Keyword[void] identifier[assertCookiePresentByName] operator[SEP] Keyword[final] identifier[String] identifier[cookieName] operator[SEP] { identifier[Set] operator[<] identifier[Cookie] operator[>] identifier[cookies] operator[=] identifier[driver] operator[SEP] identifier[manage] operator[SEP] o...
public List<GUIObjectDetails> getGUIObjectList(List<String> keys) { String DELIMITER = "#"; List<GUIObjectDetails> htmlObjectDetailsList = new ArrayList<>(); for (String key : keys) { String parent = null; // If the key contains a delimiter, then html object has a parent...
class class_name[name] begin[{] method[getGUIObjectList, return_type[type[List]], modifier[public], parameter[keys]] begin[{] local_variable[type[String], DELIMITER] local_variable[type[List], htmlObjectDetailsList] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableD...
Keyword[public] identifier[List] operator[<] identifier[GUIObjectDetails] operator[>] identifier[getGUIObjectList] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[keys] operator[SEP] { identifier[String] identifier[DELIMITER] operator[=] literal[String] operator[SEP] identifi...
public synchronized void stop() { if (isRunning()) { try { setSendingStatus(false); } catch (Throwable t) { logger.error("Problem stopping sending status during shutdown", t); } DeviceFinder.getInstance().removeIgnoredAddress(socket...
class class_name[name] begin[{] method[stop, return_type[void], modifier[synchronized public], parameter[]] begin[{] if[call[.isRunning, parameter[]]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operato...
Keyword[public] Keyword[synchronized] Keyword[void] identifier[stop] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[isRunning] operator[SEP] operator[SEP] operator[SEP] { Keyword[try] { identifier[setSendingStatus] operator[SEP] literal[boolean] operator[SEP] operato...
@Override public Meter meter(String name) { final com.codahale.metrics.Meter meter = registry.meter(name); return new Meter() { @Override public void mark() { meter.mark(); } @Override public void mark(long size) { meter.mark(size); } }; }
class class_name[name] begin[{] method[meter, return_type[type[Meter]], modifier[public], parameter[name]] begin[{] local_variable[type[com], meter] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[StatementExpression(express...
annotation[@] identifier[Override] Keyword[public] identifier[Meter] identifier[meter] operator[SEP] identifier[String] identifier[name] operator[SEP] { Keyword[final] identifier[com] operator[SEP] identifier[codahale] operator[SEP] identifier[metrics] operator[SEP] identifier[Meter] identifier[meter] operator[=...
public void setTags(java.util.Collection<ResourceGroupTag> tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList<ResourceGroupTag>(tags); }
class class_name[name] begin[{] method[setTags, return_type[void], modifier[public], parameter[tags]] begin[{] if[binary_operation[member[.tags], ==, literal[null]]] begin[{] assign[THIS[member[None.tags]], literal[null]] return[None] else begin[{] No...
Keyword[public] Keyword[void] identifier[setTags] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[ResourceGroupTag] operator[>] identifier[tags] operator[SEP] { Keyword[if] operator[SEP] identifier[tags] operator[==] Other[null] operator[S...
public ValueContainer[] getKeyValues(ClassDescriptor cld, Identity oid, boolean convertToSql) throws PersistenceBrokerException { FieldDescriptor[] pkFields = cld.getPkFields(); ValueContainer[] result = new ValueContainer[pkFields.length]; Object[] pkValues = oid.getPrimaryKeyValues(); ...
class class_name[name] begin[{] method[getKeyValues, return_type[type[ValueContainer]], modifier[public], parameter[cld, oid, convertToSql]] begin[{] local_variable[type[FieldDescriptor], pkFields] local_variable[type[ValueContainer], result] local_variable[type[Object], pkValues] ...
Keyword[public] identifier[ValueContainer] operator[SEP] operator[SEP] identifier[getKeyValues] operator[SEP] identifier[ClassDescriptor] identifier[cld] , identifier[Identity] identifier[oid] , Keyword[boolean] identifier[convertToSql] operator[SEP] Keyword[throws] identifier[PersistenceBrokerException] { ide...
public final MngSettings lazyGetMngSettingsGetDbCopy() throws Exception { String beanName = getMngSettingsGetDbCopyName(); MngSettings mngSettingsGetDbCopy = (MngSettings) this.beansMap.get(beanName); if (mngSettingsGetDbCopy == null) { mngSettingsGetDbCopy = new MngSettings(); mngSett...
class class_name[name] begin[{] method[lazyGetMngSettingsGetDbCopy, return_type[type[MngSettings]], modifier[final public], parameter[]] begin[{] local_variable[type[String], beanName] local_variable[type[MngSettings], mngSettingsGetDbCopy] if[binary_operation[member[.mngSetting...
Keyword[public] Keyword[final] identifier[MngSettings] identifier[lazyGetMngSettingsGetDbCopy] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { identifier[String] identifier[beanName] operator[=] identifier[getMngSettingsGetDbCopyName] operator[SEP] operator[SEP] operator[SEP] identifier[MngSe...
public void setCellCharoff(String alignCharOff) { _cellState.registerAttribute(AbstractHtmlState.ATTR_GENERAL, HtmlConstants.CHAROFF, alignCharOff); }
class class_name[name] begin[{] method[setCellCharoff, return_type[void], modifier[public], parameter[alignCharOff]] begin[{] call[_cellState.registerAttribute, parameter[member[AbstractHtmlState.ATTR_GENERAL], member[HtmlConstants.CHAROFF], member[.alignCharOff]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[setCellCharoff] operator[SEP] identifier[String] identifier[alignCharOff] operator[SEP] { identifier[_cellState] operator[SEP] identifier[registerAttribute] operator[SEP] identifier[AbstractHtmlState] operator[SEP] identifier[ATTR_GENERAL] , identifier[HtmlConstants] ope...
private void deleteTemporaryDestination(Destination destination) { log.debug("Delete temporary destination: '{}'", destination); try { if (destination instanceof TemporaryQueue) { ((TemporaryQueue) destination).delete(); } else if (destination instanceof Temporar...
class class_name[name] begin[{] method[deleteTemporaryDestination, return_type[void], modifier[private], parameter[destination]] begin[{] call[log.debug, parameter[literal["Delete temporary destination: '{}'"], member[.destination]]] TryStatement(block=[IfStatement(condition=BinaryOpera...
Keyword[private] Keyword[void] identifier[deleteTemporaryDestination] operator[SEP] identifier[Destination] identifier[destination] operator[SEP] { identifier[log] operator[SEP] identifier[debug] operator[SEP] literal[String] , identifier[destination] operator[SEP] operator[SEP] Keyword[try] { Keywor...
public void startElement (String uri, String localName) throws SAXException { startElement(uri, localName, "", EMPTY_ATTS); }
class class_name[name] begin[{] method[startElement, return_type[void], modifier[public], parameter[uri, localName]] begin[{] call[.startElement, parameter[member[.uri], member[.localName], literal[""], member[.EMPTY_ATTS]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[startElement] operator[SEP] identifier[String] identifier[uri] , identifier[String] identifier[localName] operator[SEP] Keyword[throws] identifier[SAXException] { identifier[startElement] operator[SEP] identifier[uri] , identifier[localName] , literal[String] , identi...
public void touchPost(final long postId, final TimeZone tz) throws SQLException { if(postId < 1L) { throw new SQLException("The post id must be specified for update"); } long modifiedTimestamp = System.currentTimeMillis(); int offset = tz.getOffset(modifiedTimestamp); Connection...
class class_name[name] begin[{] method[touchPost, return_type[void], modifier[public], parameter[postId, tz]] begin[{] if[binary_operation[member[.postId], <, literal[1L]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], ...
Keyword[public] Keyword[void] identifier[touchPost] operator[SEP] Keyword[final] Keyword[long] identifier[postId] , Keyword[final] identifier[TimeZone] identifier[tz] operator[SEP] Keyword[throws] identifier[SQLException] { Keyword[if] operator[SEP] identifier[postId] operator[<] Other[1L] operator[SEP] { ...
@Override public void readExternal(ObjectInput in) throws IOException { m = in.readDouble(); t = in.readDouble(); }
class class_name[name] begin[{] method[readExternal, return_type[void], modifier[public], parameter[in]] begin[{] assign[member[.m], call[in.readDouble, parameter[]]] assign[member[.t], call[in.readDouble, parameter[]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[readExternal] operator[SEP] identifier[ObjectInput] identifier[in] operator[SEP] Keyword[throws] identifier[IOException] { identifier[m] operator[=] identifier[in] operator[SEP] identifier[readDouble] operator[SEP] operator[SEP] operator...
public Object put(String key, Object value, Type type) { stateMap.put(key, type); return super.put(key, value); }
class class_name[name] begin[{] method[put, return_type[type[Object]], modifier[public], parameter[key, value, type]] begin[{] call[stateMap.put, parameter[member[.key], member[.type]]] return[SuperMethodInvocation(arguments=[MemberReference(member=key, postfix_operators=[], prefix_oper...
Keyword[public] identifier[Object] identifier[put] operator[SEP] identifier[String] identifier[key] , identifier[Object] identifier[value] , identifier[Type] identifier[type] operator[SEP] { identifier[stateMap] operator[SEP] identifier[put] operator[SEP] identifier[key] , identifier[type] operator[SEP] opera...
@SuppressWarnings("unchecked") public final V getIfExists() { InternalThreadLocalMap threadLocalMap = InternalThreadLocalMap.getIfSet(); if (threadLocalMap != null) { Object v = threadLocalMap.indexedVariable(index); if (v != InternalThreadLocalMap.UNSET) { re...
class class_name[name] begin[{] method[getIfExists, return_type[type[V]], modifier[final public], parameter[]] begin[{] local_variable[type[InternalThreadLocalMap], threadLocalMap] if[binary_operation[member[.threadLocalMap], !=, literal[null]]] begin[{] local_variable[type[...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[final] identifier[V] identifier[getIfExists] operator[SEP] operator[SEP] { identifier[InternalThreadLocalMap] identifier[threadLocalMap] operator[=] identifier[InternalThreadLocalMap] operator[SEP] iden...
public TaskTerminateHeaders withLastModified(DateTime lastModified) { if (lastModified == null) { this.lastModified = null; } else { this.lastModified = new DateTimeRfc1123(lastModified); } return this; }
class class_name[name] begin[{] method[withLastModified, return_type[type[TaskTerminateHeaders]], modifier[public], parameter[lastModified]] begin[{] if[binary_operation[member[.lastModified], ==, literal[null]]] begin[{] assign[THIS[member[None.lastModified]], literal[n...
Keyword[public] identifier[TaskTerminateHeaders] identifier[withLastModified] operator[SEP] identifier[DateTime] identifier[lastModified] operator[SEP] { Keyword[if] operator[SEP] identifier[lastModified] operator[==] Other[null] operator[SEP] { Keyword[this] operator[SEP] identifier[lastModified] ope...
static void register() { Transliterator.registerFactory(_ID, new Transliterator.Factory() { @Override public Transliterator getInstance(String ID) { return new TitlecaseTransliterator(ULocale.US); } }); registerSpecialInverse("Title", "Lower",...
class class_name[name] begin[{] method[register, return_type[void], modifier[static], parameter[]] begin[{] call[Transliterator.registerFactory, parameter[member[._ID], ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatemen...
Keyword[static] Keyword[void] identifier[register] operator[SEP] operator[SEP] { identifier[Transliterator] operator[SEP] identifier[registerFactory] operator[SEP] identifier[_ID] , Keyword[new] identifier[Transliterator] operator[SEP] identifier[Factory] operator[SEP] operator[SEP] { annotation[@] i...
@SuppressWarnings("unchecked") @Override public <T extends OAuth2AuthorizedClient> T loadAuthorizedClient( String clientRegistrationId, String principalName) { Assert.hasText(clientRegistrationId, "clientRegistrationId cannot be empty"); Assert.hasText(principalName, "principalName cannot be empty"); ...
class class_name[name] begin[{] method[loadAuthorizedClient, return_type[type[T]], modifier[public], parameter[clientRegistrationId, principalName]] begin[{] call[Assert.hasText, parameter[member[.clientRegistrationId], literal["clientRegistrationId cannot be empty"]]] call[Asse...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Override] Keyword[public] operator[<] identifier[T] Keyword[extends] identifier[OAuth2AuthorizedClient] operator[>] identifier[T] identifier[loadAuthorizedClient] operator[SEP] identifier[String] identifier[c...
public Collection<CompletableFuture<TaskManagerLocation>> getPreferredLocationsBasedOnState() { TaskManagerLocation priorLocation; if (currentExecution.getTaskRestore() != null && (priorLocation = getLatestPriorLocation()) != null) { return Collections.singleton(CompletableFuture.completedFuture(priorLocation));...
class class_name[name] begin[{] method[getPreferredLocationsBasedOnState, return_type[type[Collection]], modifier[public], parameter[]] begin[{] local_variable[type[TaskManagerLocation], priorLocation] if[binary_operation[binary_operation[call[currentExecution.getTaskRestore, parameter[...
Keyword[public] identifier[Collection] operator[<] identifier[CompletableFuture] operator[<] identifier[TaskManagerLocation] operator[>] operator[>] identifier[getPreferredLocationsBasedOnState] operator[SEP] operator[SEP] { identifier[TaskManagerLocation] identifier[priorLocation] operator[SEP] Keyword[if] oper...
@NotNull public final HourRanges add(@NotNull final HourRanges other) { Contract.requireArgNotNull("other", other); ensureSingleDayOnly("this", this); ensureSingleDayOnly("other", other); final BitSet thisMinutes = this.toMinutes(); final BitSet otherMinutes = other.toMinute...
class class_name[name] begin[{] method[add, return_type[type[HourRanges]], modifier[final public], parameter[other]] begin[{] call[Contract.requireArgNotNull, parameter[literal["other"], member[.other]]] call[.ensureSingleDayOnly, parameter[literal["this"], THIS[]]] ...
annotation[@] identifier[NotNull] Keyword[public] Keyword[final] identifier[HourRanges] identifier[add] operator[SEP] annotation[@] identifier[NotNull] Keyword[final] identifier[HourRanges] identifier[other] operator[SEP] { identifier[Contract] operator[SEP] identifier[requireArgNotNull] operator[SEP] literal[St...
@Override public Object postProcessAfterInitialization(Object bean, String beanName) { // throws BeansException { if (bean instanceof VLDockingViewDescriptor) { return bean; } else if (bean instanceof ViewDescriptor) { final ViewDescriptor sourceViewDescriptor = (Vi...
class class_name[name] begin[{] method[postProcessAfterInitialization, return_type[type[Object]], modifier[public], parameter[bean, beanName]] begin[{] if[binary_operation[member[.bean], instanceof, type[VLDockingViewDescriptor]]] begin[{] return[member[.bean]] else begin[{]...
annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[postProcessAfterInitialization] operator[SEP] identifier[Object] identifier[bean] , identifier[String] identifier[beanName] operator[SEP] { Keyword[if] operator[SEP] identifier[bean] Keyword[instanceof] identifier[VLDockingViewDesc...
public com.squareup.okhttp.Call getUniverseSystemKillsAsync(String datasource, String ifNoneMatch, final ApiCallback<List<SystemKillsResponse>> callback) throws ApiException { com.squareup.okhttp.Call call = getUniverseSystemKillsValidateBeforeCall(datasource, ifNoneMatch, callback); Type l...
class class_name[name] begin[{] method[getUniverseSystemKillsAsync, return_type[type[com]], modifier[public], parameter[datasource, ifNoneMatch, callback]] begin[{] local_variable[type[com], call] local_variable[type[Type], localVarReturnType] call[apiClient.executeAsync, parame...
Keyword[public] identifier[com] operator[SEP] identifier[squareup] operator[SEP] identifier[okhttp] operator[SEP] identifier[Call] identifier[getUniverseSystemKillsAsync] operator[SEP] identifier[String] identifier[datasource] , identifier[String] identifier[ifNoneMatch] , Keyword[final] identifier[ApiCallback] opera...
public void removeType(StaticScope scope, String name) { scopedNameTable.remove(getRootNodeForScope(getLookupScope(scope, name)), name); }
class class_name[name] begin[{] method[removeType, return_type[void], modifier[public], parameter[scope, name]] begin[{] call[scopedNameTable.remove, parameter[call[.getRootNodeForScope, parameter[call[.getLookupScope, parameter[member[.scope], member[.name]]]]], member[.name]]] end[}] END[...
Keyword[public] Keyword[void] identifier[removeType] operator[SEP] identifier[StaticScope] identifier[scope] , identifier[String] identifier[name] operator[SEP] { identifier[scopedNameTable] operator[SEP] identifier[remove] operator[SEP] identifier[getRootNodeForScope] operator[SEP] identifier[getLookupScope] o...
public void marshall(TargetGroupPairInfo targetGroupPairInfo, ProtocolMarshaller protocolMarshaller) { if (targetGroupPairInfo == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(targetGroupPairInfo.ge...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[targetGroupPairInfo, protocolMarshaller]] begin[{] if[binary_operation[member[.targetGroupPairInfo], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[TargetGroupPairInfo] identifier[targetGroupPairInfo] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[targetGroupPairInfo] operator[==] Other[null] operator[SEP] { ...
public void setLedType(final LedType TYPE) { if (null == ledType) { _ledType = null == TYPE ? LedType.STANDARD : TYPE; fireUpdateEvent(REDRAW_EVENT); } else { ledType.set(TYPE); } }
class class_name[name] begin[{] method[setLedType, return_type[void], modifier[public], parameter[TYPE]] begin[{] if[binary_operation[literal[null], ==, member[.ledType]]] begin[{] assign[member[._ledType], TernaryExpression(condition=BinaryOperation(operandl=Literal(pos...
Keyword[public] Keyword[void] identifier[setLedType] operator[SEP] Keyword[final] identifier[LedType] identifier[TYPE] operator[SEP] { Keyword[if] operator[SEP] Other[null] operator[==] identifier[ledType] operator[SEP] { identifier[_ledType] operator[=] Other[null] operator[==] identifier[TYPE] opera...
@SuppressWarnings("unchecked") public EList<IfcRelVoidsElement> getHasOpenings() { return (EList<IfcRelVoidsElement>) eGet(Ifc2x3tc1Package.Literals.IFC_ELEMENT__HAS_OPENINGS, true); }
class class_name[name] begin[{] method[getHasOpenings, return_type[type[EList]], modifier[public], parameter[]] begin[{] return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=IFC_ELEMENT__HAS_OPENINGS, postfix_operators=[], prefix_operators=[], qualifier=Ifc2x3tc1Package.Literals, s...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[EList] operator[<] identifier[IfcRelVoidsElement] operator[>] identifier[getHasOpenings] operator[SEP] operator[SEP] { Keyword[return] operator[SEP] identifier[EList] operator[<] identifier[IfcRelVoi...
public int spanBack(CharSequence s, SpanCondition spanCondition) { return spanBack(s, s.length(), spanCondition); }
class class_name[name] begin[{] method[spanBack, return_type[type[int]], modifier[public], parameter[s, spanCondition]] begin[{] return[call[.spanBack, parameter[member[.s], call[s.length, parameter[]], member[.spanCondition]]]] end[}] END[}]
Keyword[public] Keyword[int] identifier[spanBack] operator[SEP] identifier[CharSequence] identifier[s] , identifier[SpanCondition] identifier[spanCondition] operator[SEP] { Keyword[return] identifier[spanBack] operator[SEP] identifier[s] , identifier[s] operator[SEP] identifier[length] operator[SEP] operator[S...
protected void printStandard(ResultEntry resultEntry) { PreciseTimestamp start = resultEntry.getStartTimestamp(); PreciseTimestamp stop = resultEntry.getStopTimestamp(); printStream.println(); printStream.printf("=== Algorithm %s used on problem %s ===\n", resultEntry.g...
class class_name[name] begin[{] method[printStandard, return_type[void], modifier[protected], parameter[resultEntry]] begin[{] local_variable[type[PreciseTimestamp], start] local_variable[type[PreciseTimestamp], stop] call[printStream.println, parameter[]] call[p...
Keyword[protected] Keyword[void] identifier[printStandard] operator[SEP] identifier[ResultEntry] identifier[resultEntry] operator[SEP] { identifier[PreciseTimestamp] identifier[start] operator[=] identifier[resultEntry] operator[SEP] identifier[getStartTimestamp] operator[SEP] operator[SEP] operator[SEP] identif...
private Instant plus(long secondsToAdd, long nanosToAdd) { if ((secondsToAdd | nanosToAdd) == 0) { return this; } long epochSec = Jdk8Methods.safeAdd(seconds, secondsToAdd); epochSec = Jdk8Methods.safeAdd(epochSec, nanosToAdd / NANOS_PER_SECOND); nanosToAdd = nanosToA...
class class_name[name] begin[{] method[plus, return_type[type[Instant]], modifier[private], parameter[secondsToAdd, nanosToAdd]] begin[{] if[binary_operation[binary_operation[member[.secondsToAdd], |, member[.nanosToAdd]], ==, literal[0]]] begin[{] return[THIS[]] else begin[...
Keyword[private] identifier[Instant] identifier[plus] operator[SEP] Keyword[long] identifier[secondsToAdd] , Keyword[long] identifier[nanosToAdd] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] identifier[secondsToAdd] operator[|] identifier[nanosToAdd] operator[SEP] operator[==] Other[0] operator[SEP] ...
private void toast(@StringRes int message) { if (mCrouton != null) { mCrouton.cancel(); mCrouton = null; } mCroutonView = new CroutonView(this, getString(message)); mCrouton = Crouton.make(this, mCroutonView, R.id.activity_artist_main_container); mCrouton...
class class_name[name] begin[{] method[toast, return_type[void], modifier[private], parameter[message]] begin[{] if[binary_operation[member[.mCrouton], !=, literal[null]]] begin[{] call[mCrouton.cancel, parameter[]] assign[member[.mCrouton], liter...
Keyword[private] Keyword[void] identifier[toast] operator[SEP] annotation[@] identifier[StringRes] Keyword[int] identifier[message] operator[SEP] { Keyword[if] operator[SEP] identifier[mCrouton] operator[!=] Other[null] operator[SEP] { identifier[mCrouton] operator[SEP] identifier[cancel] operator[SEP...
@Override public void doAction(Bundle bu, ProvUtilities u) { register(bu.getId()); for (Statement s2: bu.getStatement()) { u.doAction(s2, this); } }
class class_name[name] begin[{] method[doAction, return_type[void], modifier[public], parameter[bu, u]] begin[{] call[.register, parameter[call[bu.getId, parameter[]]]] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[Me...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[doAction] operator[SEP] identifier[Bundle] identifier[bu] , identifier[ProvUtilities] identifier[u] operator[SEP] { identifier[register] operator[SEP] identifier[bu] operator[SEP] identifier[getId] operator[SEP] operator[SEP] operator[S...
public String getAlias(String path) { if (m_allPathsAliased && m_attributePath.lastIndexOf(path) != -1) { return m_name; } Object retObj = m_mapping.get(path); if (retObj != null) { return (String) retObj; } return nu...
class class_name[name] begin[{] method[getAlias, return_type[type[String]], modifier[public], parameter[path]] begin[{] if[binary_operation[member[.m_allPathsAliased], &&, binary_operation[call[m_attributePath.lastIndexOf, parameter[member[.path]]], !=, literal[1]]]] begin[{] return...
Keyword[public] identifier[String] identifier[getAlias] operator[SEP] identifier[String] identifier[path] operator[SEP] { Keyword[if] operator[SEP] identifier[m_allPathsAliased] operator[&&] identifier[m_attributePath] operator[SEP] identifier[lastIndexOf] operator[SEP] identifier[path] operator[SEP] operator[!=...
public URL getRevocationURL() throws MalformedURLException { final var revocationURLTemplate = license.get(REVOCATION_URL) == null ? null : license.get(REVOCATION_URL).getString(); final String revocationURL; if (revocationURLTemplate != null) { final var id = Optional.ofNullable(lic...
class class_name[name] begin[{] method[getRevocationURL, return_type[type[URL]], modifier[public], parameter[]] begin[{] local_variable[type[var], revocationURLTemplate] local_variable[type[String], revocationURL] if[binary_operation[member[.revocationURLTemplate], !=, literal[n...
Keyword[public] identifier[URL] identifier[getRevocationURL] operator[SEP] operator[SEP] Keyword[throws] identifier[MalformedURLException] { Keyword[final] identifier[var] identifier[revocationURLTemplate] operator[=] identifier[license] operator[SEP] identifier[get] operator[SEP] identifier[REVOCATION_URL] oper...
public ApiResponse<StargateResponse> getUniverseStargatesStargateIdWithHttpInfo(Integer stargateId, String datasource, String ifNoneMatch) throws ApiException { com.squareup.okhttp.Call call = getUniverseStargatesStargateIdValidateBeforeCall(stargateId, datasource, ifNoneMatch, null)...
class class_name[name] begin[{] method[getUniverseStargatesStargateIdWithHttpInfo, return_type[type[ApiResponse]], modifier[public], parameter[stargateId, datasource, ifNoneMatch]] begin[{] local_variable[type[com], call] local_variable[type[Type], localVarReturnType] return[call[apiCli...
Keyword[public] identifier[ApiResponse] operator[<] identifier[StargateResponse] operator[>] identifier[getUniverseStargatesStargateIdWithHttpInfo] operator[SEP] identifier[Integer] identifier[stargateId] , identifier[String] identifier[datasource] , identifier[String] identifier[ifNoneMatch] operator[SEP] Keyword[th...
public java.util.List<String> getValidUserList() { if (validUserList == null) { validUserList = new com.amazonaws.internal.SdkInternalList<String>(); } return validUserList; }
class class_name[name] begin[{] method[getValidUserList, return_type[type[java]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.validUserList], ==, literal[null]]] begin[{] assign[member[.validUserList], ClassCreator(arguments=[], body=None, constru...
Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[getValidUserList] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[validUserList] operator[==] Other[null] operator[SEP] { identifier[v...
public float getPercentValue(Pin pin){ double value = getValue(pin); if(value > INVALID_VALUE) { return (float) (value / (getMaxSupportedValue() - getMinSupportedValue())) * 100f; } return INVALID_VALUE; }
class class_name[name] begin[{] method[getPercentValue, return_type[type[float]], modifier[public], parameter[pin]] begin[{] local_variable[type[double], value] if[binary_operation[member[.value], >, member[.INVALID_VALUE]]] begin[{] return[binary_operation[Cast(expression=B...
Keyword[public] Keyword[float] identifier[getPercentValue] operator[SEP] identifier[Pin] identifier[pin] operator[SEP] { Keyword[double] identifier[value] operator[=] identifier[getValue] operator[SEP] identifier[pin] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[value] operator[>] identifier[...
private PlainTime getTimeUTC() { int timeOfDay = getTimeOfDay(this); int minutes = timeOfDay / 60; int hour = minutes / 60; int minute = minutes % 60; int second = timeOfDay % 60; int nano = this.getNanosecond(); return PlainTime.of(hour, minute, second, nano); ...
class class_name[name] begin[{] method[getTimeUTC, return_type[type[PlainTime]], modifier[private], parameter[]] begin[{] local_variable[type[int], timeOfDay] local_variable[type[int], minutes] local_variable[type[int], hour] local_variable[type[int], minute] local_varia...
Keyword[private] identifier[PlainTime] identifier[getTimeUTC] operator[SEP] operator[SEP] { Keyword[int] identifier[timeOfDay] operator[=] identifier[getTimeOfDay] operator[SEP] Keyword[this] operator[SEP] operator[SEP] Keyword[int] identifier[minutes] operator[=] identifier[timeOfDay] operator[/] Other[60] oper...
@Override public int countMissing() { int count = 0; for (int i = 0; i < size(); i++) { if (isMissing(i)) { count++; } } return count; }
class class_name[name] begin[{] method[countMissing, return_type[type[int]], modifier[public], parameter[]] begin[{] local_variable[type[int], count] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=i, postfix_oper...
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[countMissing] operator[SEP] operator[SEP] { Keyword[int] identifier[count] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[si...
public Object execute(final Object value, final CsvContext context) { validateInputNotNull(value, context); final String stringValue = value.toString(); for( String forbidden : forbiddenSubStrings ) { if( stringValue.contains(forbidden) ) { throw new SuperCsvConstraintViolationException(String.format...
class class_name[name] begin[{] method[execute, return_type[type[Object]], modifier[public], parameter[value, context]] begin[{] call[.validateInputNotNull, parameter[member[.value], member[.context]]] local_variable[type[String], stringValue] ForStatement(body=BlockStatement(la...
Keyword[public] identifier[Object] identifier[execute] operator[SEP] Keyword[final] identifier[Object] identifier[value] , Keyword[final] identifier[CsvContext] identifier[context] operator[SEP] { identifier[validateInputNotNull] operator[SEP] identifier[value] , identifier[context] operator[SEP] operator[SEP]...
@Override public Object[][] getDataByIndex(String indexes) { validateResourceParams(resource); Preconditions.checkArgument(!StringUtils.isEmpty(indexes), "Indexes cannot be empty"); logger.entering(indexes); Object[][] requestedData = getDataByIndex(DataProviderHelper.parseIndexStrin...
class class_name[name] begin[{] method[getDataByIndex, return_type[type[Object]], modifier[public], parameter[indexes]] begin[{] call[.validateResourceParams, parameter[member[.resource]]] call[Preconditions.checkArgument, parameter[call[StringUtils.isEmpty, parameter[member[.in...
annotation[@] identifier[Override] Keyword[public] identifier[Object] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[getDataByIndex] operator[SEP] identifier[String] identifier[indexes] operator[SEP] { identifier[validateResourceParams] operator[SEP] identifier[resource] operator[SEP] operato...
@Override public NuProcess createProcess(List<String> commands, String[] env, NuProcessHandler processListener, Path cwd) { LinuxProcess process = new LinuxProcess(processListener); synchronized (LinProcessFactory.class) { process.start(commands, env, cwd); } return process; }
class class_name[name] begin[{] method[createProcess, return_type[type[NuProcess]], modifier[public], parameter[commands, env, processListener, cwd]] begin[{] local_variable[type[LinuxProcess], process] SYNCHRONIZED[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, s...
annotation[@] identifier[Override] Keyword[public] identifier[NuProcess] identifier[createProcess] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[commands] , identifier[String] operator[SEP] operator[SEP] identifier[env] , identifier[NuProcessHandler] identifier[processListener] ...
public static void start(final Collection<Class<?>> classes) { LOGGER.log(Level.DEBUG, "Initializing Latke IoC container"); final Configurator configurator = getInstance().getConfigurator(); if (null != classes && !classes.isEmpty()) { configurator.createBeans(classes); } ...
class class_name[name] begin[{] method[start, return_type[void], modifier[public static], parameter[classes]] begin[{] call[LOGGER.log, parameter[member[Level.DEBUG], literal["Initializing Latke IoC container"]]] local_variable[type[Configurator], configurator] if[binary...
Keyword[public] Keyword[static] Keyword[void] identifier[start] operator[SEP] Keyword[final] identifier[Collection] operator[<] identifier[Class] operator[<] operator[?] operator[>] operator[>] identifier[classes] operator[SEP] { identifier[LOGGER] operator[SEP] identifier[log] operator[SEP] identifier[Level] op...
public ServiceFuture<ExpressRouteCrossConnectionPeeringInner> beginCreateOrUpdateAsync(String resourceGroupName, String crossConnectionName, String peeringName, ExpressRouteCrossConnectionPeeringInner peeringParameters, final ServiceCallback<ExpressRouteCrossConnectionPeeringInner> serviceCallback) { return Ser...
class class_name[name] begin[{] method[beginCreateOrUpdateAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, crossConnectionName, peeringName, peeringParameters, serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.beginCreateOrUpdateWi...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[ExpressRouteCrossConnectionPeeringInner] operator[>] identifier[beginCreateOrUpdateAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[crossConnectionName] , identifier[String] identifier[peeringName] , ...
public void close() throws IOException { value = null; token = null; stack.clear(); stack.add(JsonScope.CLOSED); in.close(); }
class class_name[name] begin[{] method[close, return_type[void], modifier[public], parameter[]] begin[{] assign[member[.value], literal[null]] assign[member[.token], literal[null]] call[stack.clear, parameter[]] call[stack.add, parameter[member[Js...
Keyword[public] Keyword[void] identifier[close] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[value] operator[=] Other[null] operator[SEP] identifier[token] operator[=] Other[null] operator[SEP] identifier[stack] operator[SEP] identifier[clear] operator[SEP] operator[SEP] opera...
public Processor setOutputDir(final File output) { if (!output.isAbsolute()) { throw new IllegalArgumentException("Output directory path must be absolute: " + output); } if (output.exists() && !output.isDirectory()) { throw new IllegalArgumentException("Output directory e...
class class_name[name] begin[{] method[setOutputDir, return_type[type[Processor]], modifier[public], parameter[output]] begin[{] if[call[output.isAbsolute, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[],...
Keyword[public] identifier[Processor] identifier[setOutputDir] operator[SEP] Keyword[final] identifier[File] identifier[output] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[output] operator[SEP] identifier[isAbsolute] operator[SEP] operator[SEP] operator[SEP] { Keyword[throw] Keywo...
public void setBundleList(java.util.Collection<BundleDetails> bundleList) { if (bundleList == null) { this.bundleList = null; return; } this.bundleList = new java.util.ArrayList<BundleDetails>(bundleList); }
class class_name[name] begin[{] method[setBundleList, return_type[void], modifier[public], parameter[bundleList]] begin[{] if[binary_operation[member[.bundleList], ==, literal[null]]] begin[{] assign[THIS[member[None.bundleList]], literal[null]] return[None] ...
Keyword[public] Keyword[void] identifier[setBundleList] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[BundleDetails] operator[>] identifier[bundleList] operator[SEP] { Keyword[if] operator[SEP] identifier[bundleList] operator[==] Other[n...
public String getChecksum ( final String fileName, final String algorithm ) { if ( !this.digests.contains ( algorithm ) ) { return null; } final String result = this.checksums.get ( fileName + ":" + algorithm ); if ( result == null ) { throw ...
class class_name[name] begin[{] method[getChecksum, return_type[type[String]], modifier[public], parameter[fileName, algorithm]] begin[{] if[THIS[member[None.digests]call[None.contains, parameter[member[.algorithm]]]]] begin[{] return[literal[null]] else begin[{] None ...
Keyword[public] identifier[String] identifier[getChecksum] operator[SEP] Keyword[final] identifier[String] identifier[fileName] , Keyword[final] identifier[String] identifier[algorithm] operator[SEP] { Keyword[if] operator[SEP] operator[!] Keyword[this] operator[SEP] identifier[digests] operator[SEP] identifier...