code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public static int[] asIntegerArray(Collection collection) { int[] result = new int[collection.size()]; int i = 0; for (Object c : collection) { result[i++] = asInteger(c); } return result; }
class class_name[name] begin[{] method[asIntegerArray, return_type[type[int]], modifier[public static], parameter[collection]] begin[{] local_variable[type[int], result] local_variable[type[int], i] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=...
Keyword[public] Keyword[static] Keyword[int] operator[SEP] operator[SEP] identifier[asIntegerArray] operator[SEP] identifier[Collection] identifier[collection] operator[SEP] { Keyword[int] operator[SEP] operator[SEP] identifier[result] operator[=] Keyword[new] Keyword[int] operator[SEP] identifier[collection] op...
public static Distribution guessLambda1(DataSet d) { int N = d.size(); return new LogUniform(1e-7/N, 1e-3/N); }
class class_name[name] begin[{] method[guessLambda1, return_type[type[Distribution]], modifier[public static], parameter[d]] begin[{] local_variable[type[int], N] return[ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors...
Keyword[public] Keyword[static] identifier[Distribution] identifier[guessLambda1] operator[SEP] identifier[DataSet] identifier[d] operator[SEP] { Keyword[int] identifier[N] operator[=] identifier[d] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] Keyword[return] Keyword[new] identifier[L...
private void buildPossibleExpressions(final CronDefinition cronDefinition) { final List<CronParserField> sortedExpression = cronDefinition.getFieldDefinitions().stream() .map(this::toCronParserField) .sorted(CronParserField.createFieldTypeComparator()) .collect(Co...
class class_name[name] begin[{] method[buildPossibleExpressions, return_type[void], modifier[private], parameter[cronDefinition]] begin[{] local_variable[type[List], sortedExpression] local_variable[type[List], tempExpression] while[call[.lastFieldIsOptional, parameter[member[.t...
Keyword[private] Keyword[void] identifier[buildPossibleExpressions] operator[SEP] Keyword[final] identifier[CronDefinition] identifier[cronDefinition] operator[SEP] { Keyword[final] identifier[List] operator[<] identifier[CronParserField] operator[>] identifier[sortedExpression] operator[=] identifier[cronDefini...
private void setupCSS(VisualizerContext context, SVGPlot svgp, XYPlot plot) { StyleLibrary style = context.getStyleLibrary(); for(XYPlot.Curve curve : plot) { CSSClass csscls = new CSSClass(this, SERIESID + curve.getColor()); // csscls.setStatement(SVGConstants.SVG_STROKE_WIDTH_ATTRIBUTE, "0.2%"); ...
class class_name[name] begin[{] method[setupCSS, return_type[void], modifier[private], parameter[context, svgp, plot]] begin[{] local_variable[type[StyleLibrary], style] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclar...
Keyword[private] Keyword[void] identifier[setupCSS] operator[SEP] identifier[VisualizerContext] identifier[context] , identifier[SVGPlot] identifier[svgp] , identifier[XYPlot] identifier[plot] operator[SEP] { identifier[StyleLibrary] identifier[style] operator[=] identifier[context] operator[SEP] identifier[ge...
public static double convertFromFarenheit (TemperatureScale to, double temperature) { switch(to) { case FARENHEIT: return temperature; case CELSIUS: return convertFarenheitToCelsius(temperature); case KELVIN: return convertFar...
class class_name[name] begin[{] method[convertFromFarenheit, return_type[type[double]], modifier[public static], parameter[to, temperature]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=['FARENHEIT'], statements=[ReturnStatement(expression=MemberReference(member=temperature, postfix_operato...
Keyword[public] Keyword[static] Keyword[double] identifier[convertFromFarenheit] operator[SEP] identifier[TemperatureScale] identifier[to] , Keyword[double] identifier[temperature] operator[SEP] { Keyword[switch] operator[SEP] identifier[to] operator[SEP] { Keyword[case] identifier[FARENHEIT] operato...
public static ByteBuf toByteBuf(ChannelHandlerContext ctx, Throwable cause) { if (cause == null || cause.getMessage() == null) { return Unpooled.EMPTY_BUFFER; } return ByteBufUtil.writeUtf8(ctx.alloc(), cause.getMessage()); }
class class_name[name] begin[{] method[toByteBuf, return_type[type[ByteBuf]], modifier[public static], parameter[ctx, cause]] begin[{] if[binary_operation[binary_operation[member[.cause], ==, literal[null]], ||, binary_operation[call[cause.getMessage, parameter[]], ==, literal[null]]]] begin[{]...
Keyword[public] Keyword[static] identifier[ByteBuf] identifier[toByteBuf] operator[SEP] identifier[ChannelHandlerContext] identifier[ctx] , identifier[Throwable] identifier[cause] operator[SEP] { Keyword[if] operator[SEP] identifier[cause] operator[==] Other[null] operator[||] identifier[cause] operator[SEP] id...
@Override protected void afterPaint(final RenderContext renderContext) { super.afterPaint(renderContext); if (this.isPressed() && renderContext instanceof WebXmlRenderContext) { PrintWriter writer = ((WebXmlRenderContext) renderContext).getWriter(); StringBuffer temp = dumpAll(); writer.println("<br/><b...
class class_name[name] begin[{] method[afterPaint, return_type[void], modifier[protected], parameter[renderContext]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=renderContext, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=afterPaint, postfix_...
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[afterPaint] operator[SEP] Keyword[final] identifier[RenderContext] identifier[renderContext] operator[SEP] { Keyword[super] operator[SEP] identifier[afterPaint] operator[SEP] identifier[renderContext] operator[SEP] operator[SEP] Keywo...
public CampaignsResponse withItem(CampaignResponse... item) { if (this.item == null) { setItem(new java.util.ArrayList<CampaignResponse>(item.length)); } for (CampaignResponse ele : item) { this.item.add(ele); } return this; }
class class_name[name] begin[{] method[withItem, return_type[type[CampaignsResponse]], modifier[public], parameter[item]] begin[{] if[binary_operation[THIS[member[None.item]], ==, literal[null]]] begin[{] call[.setItem, parameter[ClassCreator(arguments=[MemberReference(m...
Keyword[public] identifier[CampaignsResponse] identifier[withItem] operator[SEP] identifier[CampaignResponse] operator[...] identifier[item] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[item] operator[==] Other[null] operator[SEP] { identifier[setItem] operator[SEP]...
public DirectionsApiRequest waypoints(LatLng... waypoints) { Waypoint[] objWaypoints = new Waypoint[waypoints.length]; for (int i = 0; i < waypoints.length; i++) { objWaypoints[i] = new Waypoint(waypoints[i]); } return waypoints(objWaypoints); }
class class_name[name] begin[{] method[waypoints, return_type[type[DirectionsApiRequest]], modifier[public], parameter[waypoints]] begin[{] local_variable[type[Waypoint], objWaypoints] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl...
Keyword[public] identifier[DirectionsApiRequest] identifier[waypoints] operator[SEP] identifier[LatLng] operator[...] identifier[waypoints] operator[SEP] { identifier[Waypoint] operator[SEP] operator[SEP] identifier[objWaypoints] operator[=] Keyword[new] identifier[Waypoint] operator[SEP] identifier[waypoints] o...
private String generateSQLStatementForDataInTable( Map<String, Set<Integer>> dataSourceToUse, String tableToWrite) { StringBuffer output = new StringBuffer(); for (Entry<String, Set<Integer>> e : dataSourceToUse.entrySet()) { String curTemplateName = e.getKey(); Set<Integer> curPageIds = e.getValue(); ...
class class_name[name] begin[{] method[generateSQLStatementForDataInTable, return_type[type[String]], modifier[private], parameter[dataSourceToUse, tableToWrite]] begin[{] local_variable[type[StringBuffer], output] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaratio...
Keyword[private] identifier[String] identifier[generateSQLStatementForDataInTable] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Set] operator[<] identifier[Integer] operator[>] operator[>] identifier[dataSourceToUse] , identifier[String] identifier[tableToWrite] operator[SEP] { ide...
public double distance(Coordinate c) { Coordinate nearest = this.nearest(c); LineSegment ls = new LineSegment(c, nearest); return ls.getLength(); }
class class_name[name] begin[{] method[distance, return_type[type[double]], modifier[public], parameter[c]] begin[{] local_variable[type[Coordinate], nearest] local_variable[type[LineSegment], ls] return[call[ls.getLength, parameter[]]] end[}] END[}]
Keyword[public] Keyword[double] identifier[distance] operator[SEP] identifier[Coordinate] identifier[c] operator[SEP] { identifier[Coordinate] identifier[nearest] operator[=] Keyword[this] operator[SEP] identifier[nearest] operator[SEP] identifier[c] operator[SEP] operator[SEP] identifier[LineSegment] identifier...
public void put( Object key, URLConnection conn ) { synchronized( this ) // ensure no ConcurrentModificationException can occur. { Entry entry = new Entry( conn ); m_hardStore.put( key, entry ); if( m_thread == null ) { m_thread = new T...
class class_name[name] begin[{] method[put, return_type[void], modifier[public], parameter[key, conn]] begin[{] SYNCHRONIZED[THIS[]] BEGIN[{] local_variable[type[Entry], entry] call[m_hardStore.put, parameter[member[.key], member[.entry]]] ...
Keyword[public] Keyword[void] identifier[put] operator[SEP] identifier[Object] identifier[key] , identifier[URLConnection] identifier[conn] operator[SEP] { Keyword[synchronized] operator[SEP] Keyword[this] operator[SEP] { identifier[Entry] identifier[entry] operator[=] Keyword[new] identifier[Entry] ...
@SafeVarargs public static <T> Predicate<T> notIn(@Nonnull T first, @Nonnull T... rest) { return Predicates.not(in(first, rest)); }
class class_name[name] begin[{] method[notIn, return_type[type[Predicate]], modifier[public static], parameter[first, rest]] begin[{] return[call[Predicates.not, parameter[call[.in, parameter[member[.first], member[.rest]]]]]] end[}] END[}]
annotation[@] identifier[SafeVarargs] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Predicate] operator[<] identifier[T] operator[>] identifier[notIn] operator[SEP] annotation[@] identifier[Nonnull] identifier[T] identifier[first] , annotation[@] identifier[Nonnull] identifier[T] ope...
public void free() { // Remove all the objects if this is the primary key if (this.getPTable().getPKeyArea(Constants.MAIN_KEY_AREA) == this) { for (int i = m_VectorObjects.size() - 1 ; i >= 0 ;i--) { BaseBuffer buffer = (BaseBuffer)m_VectorObjects.elem...
class class_name[name] begin[{] method[free, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[THIS[call[None.getPTable, parameter[]]call[None.getPKeyArea, parameter[member[Constants.MAIN_KEY_AREA]]]], ==, THIS[]]] begin[{] ForStatement(body=BlockStateme...
Keyword[public] Keyword[void] identifier[free] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[getPTable] operator[SEP] operator[SEP] operator[SEP] identifier[getPKeyArea] operator[SEP] identifier[Constants] operator[SEP] identifier[MAIN_KEY_AREA] operator[SEP] oper...
private void setToRowStart(RowIndexEntry rowEntry, FileDataInput in) throws IOException { if (in == null) { this.file = sstable.getFileDataInput(rowEntry.position); } else { this.file = in; in.seek(rowEntry.position); } ssta...
class class_name[name] begin[{] method[setToRowStart, return_type[void], modifier[private], parameter[rowEntry, in]] begin[{] if[binary_operation[member[.in], ==, literal[null]]] begin[{] assign[THIS[member[None.file]], call[sstable.getFileDataInput, parameter[member[row...
Keyword[private] Keyword[void] identifier[setToRowStart] operator[SEP] identifier[RowIndexEntry] identifier[rowEntry] , identifier[FileDataInput] identifier[in] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[in] operator[==] Other[null] operator[SEP] { Ke...
public static void ensurePath(ZooKeeperClient zkClient, List<ACL> acl, String path) throws ZooKeeperConnectionException, InterruptedException, KeeperException { Objects.requireNonNull(zkClient); Objects.requireNonNull(path); if (!path.startsWith("/")) { throw new IllegalArgumentException(); ...
class class_name[name] begin[{] method[ensurePath, return_type[void], modifier[public static], parameter[zkClient, acl, path]] begin[{] call[Objects.requireNonNull, parameter[member[.zkClient]]] call[Objects.requireNonNull, parameter[member[.path]]] if[call[path....
Keyword[public] Keyword[static] Keyword[void] identifier[ensurePath] operator[SEP] identifier[ZooKeeperClient] identifier[zkClient] , identifier[List] operator[<] identifier[ACL] operator[>] identifier[acl] , identifier[String] identifier[path] operator[SEP] Keyword[throws] identifier[ZooKeeperConnectionException] , ...
public void sendForm(HttpServletRequest req, HttpServletResponse res, String strReceiveMessage, Properties properties) throws ServletException, IOException { res.setContentType("text/html"); PrintWriter out = res.getWriter(); out.write("<html>" + RETURN + "<head>" + RETURN + "<title>" +...
class class_name[name] begin[{] method[sendForm, return_type[void], modifier[public], parameter[req, res, strReceiveMessage, properties]] begin[{] call[res.setContentType, parameter[literal["text/html"]]] local_variable[type[PrintWriter], out] call[out.write, parameter[b...
Keyword[public] Keyword[void] identifier[sendForm] operator[SEP] identifier[HttpServletRequest] identifier[req] , identifier[HttpServletResponse] identifier[res] , identifier[String] identifier[strReceiveMessage] , identifier[Properties] identifier[properties] operator[SEP] Keyword[throws] identifier[ServletExceptio...
public long mint() { SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss"); dateFormat.setTimeZone(TimeZone.getTimeZone("UTC")); String formattedDate = dateFormat.format(new Date()); String versionStr = formattedDate + String.format("%03d", versionCounter.incrementAndGet(...
class class_name[name] begin[{] method[mint, return_type[type[long]], modifier[public], parameter[]] begin[{] local_variable[type[SimpleDateFormat], dateFormat] call[dateFormat.setTimeZone, parameter[call[TimeZone.getTimeZone, parameter[literal["UTC"]]]]] local_variable[type[Str...
Keyword[public] Keyword[long] identifier[mint] operator[SEP] operator[SEP] { identifier[SimpleDateFormat] identifier[dateFormat] operator[=] Keyword[new] identifier[SimpleDateFormat] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[dateFormat] operator[SEP] identifier[setTimeZone] operator[SE...
private Entity innerRetrieveEntityFromRepository(Root root, Entity retEntDO, String uniqueId, boolean isAllowOperationIfReposDown, Set<String> failureRepositoryIds) throws WIMException { String METHODNAME = "retrieveEntityFromRepository"; List<String...
class class_name[name] begin[{] method[innerRetrieveEntityFromRepository, return_type[type[Entity]], modifier[private], parameter[root, retEntDO, uniqueId, isAllowOperationIfReposDown, failureRepositoryIds]] begin[{] local_variable[type[String], METHODNAME] local_variable[type[List], reposIds] ...
Keyword[private] identifier[Entity] identifier[innerRetrieveEntityFromRepository] operator[SEP] identifier[Root] identifier[root] , identifier[Entity] identifier[retEntDO] , identifier[String] identifier[uniqueId] , Keyword[boolean] identifier[isAllowOperationIfReposDown] , identifier[Set] operator[<] identifier[St...
public static ConstructorRef create(TypeInfo type, Method init) { checkArgument( init.getName().equals("<init>") && init.getReturnType().equals(Type.VOID_TYPE), "'%s' is not a valid constructor", init); return new AutoValue_ConstructorRef(type, init, ImmutableList.copyOf(init.getArgument...
class class_name[name] begin[{] method[create, return_type[type[ConstructorRef]], modifier[public static], parameter[type, init]] begin[{] call[.checkArgument, parameter[binary_operation[call[init.getName, parameter[]], &&, call[init.getReturnType, parameter[]]], literal["'%s' is not a valid co...
Keyword[public] Keyword[static] identifier[ConstructorRef] identifier[create] operator[SEP] identifier[TypeInfo] identifier[type] , identifier[Method] identifier[init] operator[SEP] { identifier[checkArgument] operator[SEP] identifier[init] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[...
public FessMessages addConstraintsMinMessage(String property, String value) { assertPropertyNotNull(property); add(property, new UserMessage(CONSTRAINTS_Min_MESSAGE, value)); return this; }
class class_name[name] begin[{] method[addConstraintsMinMessage, return_type[type[FessMessages]], modifier[public], parameter[property, value]] begin[{] call[.assertPropertyNotNull, parameter[member[.property]]] call[.add, parameter[member[.property], ClassCreator(arguments=[Mem...
Keyword[public] identifier[FessMessages] identifier[addConstraintsMinMessage] operator[SEP] identifier[String] identifier[property] , identifier[String] identifier[value] operator[SEP] { identifier[assertPropertyNotNull] operator[SEP] identifier[property] operator[SEP] operator[SEP] identifier[add] operator[SEP...
public FlexMessage decodeFlexMessage(IoBuffer in) { if (log.isDebugEnabled()) { log.debug("decodeFlexMessage"); } // TODO: Unknown byte, probably encoding as with Flex SOs? byte flexByte = in.get(); log.trace("Flex byte: {}", flexByte); // Encoding of m...
class class_name[name] begin[{] method[decodeFlexMessage, return_type[type[FlexMessage]], modifier[public], parameter[in]] begin[{] if[call[log.isDebugEnabled, parameter[]]] begin[{] call[log.debug, parameter[literal["decodeFlexMessage"]]] else begin[{] None ...
Keyword[public] identifier[FlexMessage] identifier[decodeFlexMessage] operator[SEP] identifier[IoBuffer] identifier[in] operator[SEP] { Keyword[if] operator[SEP] identifier[log] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[log] operator[SEP] identifie...
public List<CallbackMetadata> getCallbacks(CallbackType callbackType) { return callbacks == null ? null : callbacks.get(callbackType); }
class class_name[name] begin[{] method[getCallbacks, return_type[type[List]], modifier[public], parameter[callbackType]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=callbacks, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=...
Keyword[public] identifier[List] operator[<] identifier[CallbackMetadata] operator[>] identifier[getCallbacks] operator[SEP] identifier[CallbackType] identifier[callbackType] operator[SEP] { Keyword[return] identifier[callbacks] operator[==] Other[null] operator[?] Other[null] operator[:] identifier[callbacks] ...
public JFreeChartRender setDomainAxis(double lowerBound, double upperBound) { ValueAxis valueAxis = getPlot().getDomainAxis(); valueAxis.setUpperBound(upperBound); valueAxis.setLowerBound(lowerBound); return this; }
class class_name[name] begin[{] method[setDomainAxis, return_type[type[JFreeChartRender]], modifier[public], parameter[lowerBound, upperBound]] begin[{] local_variable[type[ValueAxis], valueAxis] call[valueAxis.setUpperBound, parameter[member[.upperBound]]] call[valueAxi...
Keyword[public] identifier[JFreeChartRender] identifier[setDomainAxis] operator[SEP] Keyword[double] identifier[lowerBound] , Keyword[double] identifier[upperBound] operator[SEP] { identifier[ValueAxis] identifier[valueAxis] operator[=] identifier[getPlot] operator[SEP] operator[SEP] operator[SEP] identifier[ge...
public void setRawQuery(char[] escapedQuery) throws URIException { if (escapedQuery == null || escapedQuery.length == 0) { _query = escapedQuery; setURI(); return; } // remove the fragment identifier escapedQuery = removeFragmentIdentifier(escapedQuery...
class class_name[name] begin[{] method[setRawQuery, return_type[void], modifier[public], parameter[escapedQuery]] begin[{] if[binary_operation[binary_operation[member[.escapedQuery], ==, literal[null]], ||, binary_operation[member[escapedQuery.length], ==, literal[0]]]] begin[{] ...
Keyword[public] Keyword[void] identifier[setRawQuery] operator[SEP] Keyword[char] operator[SEP] operator[SEP] identifier[escapedQuery] operator[SEP] Keyword[throws] identifier[URIException] { Keyword[if] operator[SEP] identifier[escapedQuery] operator[==] Other[null] operator[||] identifier[escapedQuery] operato...
public static GitRepositoryState get() { if (gitRepositoryState == null) { Properties properties = new Properties(); try { properties.load(GitRepositoryState.class.getClassLoader().getResourceAsStream("git.properties")); } catch (IOException e) { ...
class class_name[name] begin[{] method[get, return_type[type[GitRepositoryState]], modifier[public static], parameter[]] begin[{] if[binary_operation[member[.gitRepositoryState], ==, literal[null]]] begin[{] local_variable[type[Properties], properties] TryStatement(block...
Keyword[public] Keyword[static] identifier[GitRepositoryState] identifier[get] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[gitRepositoryState] operator[==] Other[null] operator[SEP] { identifier[Properties] identifier[properties] operator[=] Keyword[new] identifier[Properties] o...
public QueryBuilder call(String method_name, Object ... items) throws Exception { return map(null, method_name, items); }
class class_name[name] begin[{] method[call, return_type[type[QueryBuilder]], modifier[public], parameter[method_name, items]] begin[{] return[call[.map, parameter[literal[null], member[.method_name], member[.items]]]] end[}] END[}]
Keyword[public] identifier[QueryBuilder] identifier[call] operator[SEP] identifier[String] identifier[method_name] , identifier[Object] operator[...] identifier[items] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[return] identifier[map] operator[SEP] Other[null] , identifier[method_name] , id...
public HttpResponse invoke(String uri, String payload, HttpMethod method) { HttpResponse result = null; String url = directoryAddresses + uri; try { if (method == null || method == HttpMethod.GET) { result = HttpUtils.getJson(url); } else if (method == Htt...
class class_name[name] begin[{] method[invoke, return_type[type[HttpResponse]], modifier[public], parameter[uri, payload, method]] begin[{] local_variable[type[HttpResponse], result] local_variable[type[String], url] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=Bin...
Keyword[public] identifier[HttpResponse] identifier[invoke] operator[SEP] identifier[String] identifier[uri] , identifier[String] identifier[payload] , identifier[HttpMethod] identifier[method] operator[SEP] { identifier[HttpResponse] identifier[result] operator[=] Other[null] operator[SEP] identifier[String] ...
public static String getString(String key) { if (RESOURCE_BUNDLE == null) throw new RuntimeException("Localized messages from resource bundle '" + BUNDLE_NAME + "' not loaded during initialization of driver."); try { if (key == null) throw new Illegal...
class class_name[name] begin[{] method[getString, return_type[type[String]], modifier[public static], parameter[key]] begin[{] if[binary_operation[member[.RESOURCE_BUNDLE], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=BinaryOperation(op...
Keyword[public] Keyword[static] identifier[String] identifier[getString] operator[SEP] identifier[String] identifier[key] operator[SEP] { Keyword[if] operator[SEP] identifier[RESOURCE_BUNDLE] operator[==] Other[null] operator[SEP] Keyword[throw] Keyword[new] identifier[RuntimeException] operator[SEP] literal[Str...
private void advance() { try { if (tok == null) tok = source.token(); } catch (LexerException e) { throw new IllegalStateException(e); } catch (IOException e) { throw new IllegalStateException(e); } }
class class_name[name] begin[{] method[advance, return_type[void], modifier[private], parameter[]] begin[{] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=tok, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_opera...
Keyword[private] Keyword[void] identifier[advance] operator[SEP] operator[SEP] { Keyword[try] { Keyword[if] operator[SEP] identifier[tok] operator[==] Other[null] operator[SEP] identifier[tok] operator[=] identifier[source] operator[SEP] identifier[token] operator[SEP] operator[SEP] operator[SEP] ...
private void addChannel(Channel chan) { if (channelList == null) { channelList = new Channel[1]; channelList[0] = chan; } else { Channel[] oldList = channelList; channelList = new Channel[oldList.length + 1]; System.arraycopy(oldList, 0, channe...
class class_name[name] begin[{] method[addChannel, return_type[void], modifier[private], parameter[chan]] begin[{] if[binary_operation[member[.channelList], ==, literal[null]]] begin[{] assign[member[.channelList], ArrayCreator(dimensions=[Literal(postfix_operators=[], p...
Keyword[private] Keyword[void] identifier[addChannel] operator[SEP] identifier[Channel] identifier[chan] operator[SEP] { Keyword[if] operator[SEP] identifier[channelList] operator[==] Other[null] operator[SEP] { identifier[channelList] operator[=] Keyword[new] identifier[Channel] operator[SEP] Other[1...
public int compareTo(DateValue dv) { long dvComparable = (((((long) dv.year()) << 4) + dv.month()) << 5) + dv.day(); long dtbComparable = ((((long) year << 4) + month << 5)) + day; if (dv instanceof TimeValue) { TimeValue tv = (TimeValue) dv; ...
class class_name[name] begin[{] method[compareTo, return_type[type[int]], modifier[public], parameter[dv]] begin[{] local_variable[type[long], dvComparable] local_variable[type[long], dtbComparable] if[binary_operation[member[.dv], instanceof, type[TimeValue]]] begin[{] ...
Keyword[public] Keyword[int] identifier[compareTo] operator[SEP] identifier[DateValue] identifier[dv] operator[SEP] { Keyword[long] identifier[dvComparable] operator[=] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[long] operator[SEP] identifier[dv] operator[SEP] identifier[year] ...
public static int d(BitSet x, BitSet y) { if (x.size() != y.size()) throw new IllegalArgumentException(String.format("BitSets have different length: x[%d], y[%d]", x.size(), y.size())); int dist = 0; for (int i = 0; i < x.size(); i++) { if (x.get(i) != y.get(i)) ...
class class_name[name] begin[{] method[d, return_type[type[int]], modifier[public static], parameter[x, y]] begin[{] if[binary_operation[call[x.size, parameter[]], !=, call[y.size, parameter[]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[Literal(post...
Keyword[public] Keyword[static] Keyword[int] identifier[d] operator[SEP] identifier[BitSet] identifier[x] , identifier[BitSet] identifier[y] operator[SEP] { Keyword[if] operator[SEP] identifier[x] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[!=] identifier[y] operator[SEP] identifier[size...
public final static Function<BigDecimal, BigDecimal> remainder(short divisor, MathContext mathContext) { return remainder(Short.valueOf(divisor), mathContext); }
class class_name[name] begin[{] method[remainder, return_type[type[Function]], modifier[final public static], parameter[divisor, mathContext]] begin[{] return[call[.remainder, parameter[call[Short.valueOf, parameter[member[.divisor]]], member[.mathContext]]]] end[}] END[}]
Keyword[public] Keyword[final] Keyword[static] identifier[Function] operator[<] identifier[BigDecimal] , identifier[BigDecimal] operator[>] identifier[remainder] operator[SEP] Keyword[short] identifier[divisor] , identifier[MathContext] identifier[mathContext] operator[SEP] { Keyword[return] identifier[remaind...
@XmlElementDecl(namespace = "http://www.w3.org/1998/Math/MathML", name = "real") public JAXBElement<ArithType> createReal(ArithType value) { return new JAXBElement<ArithType>(_Real_QNAME, ArithType.class, null, value); }
class class_name[name] begin[{] method[createReal, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_Real_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(postfix_operators=[], p...
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[ArithType] operator[>] identifier[createReal] operator[SEP] identifier[ArithType] identifi...
public static location[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{ location obj = new location(); options option = new options(); option.set_filter(filter); location[] response = (location[]) obj.getfiltered(service, option); return response; }
class class_name[name] begin[{] method[get_filtered, return_type[type[location]], modifier[public static], parameter[service, filter]] begin[{] local_variable[type[location], obj] local_variable[type[options], option] call[option.set_filter, parameter[member[.filter]]] l...
Keyword[public] Keyword[static] identifier[location] operator[SEP] operator[SEP] identifier[get_filtered] operator[SEP] identifier[nitro_service] identifier[service] , identifier[filtervalue] operator[SEP] operator[SEP] identifier[filter] operator[SEP] Keyword[throws] identifier[Exception] { identifier[location...
public static String emptyToNull(String str) { return (str != null && !str.isEmpty()) ? str : null; }
class class_name[name] begin[{] method[emptyToNull, return_type[type[String]], modifier[public static], parameter[str]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=str, postfix_operators=[], prefix_operators=[], qualifier=, select...
Keyword[public] Keyword[static] identifier[String] identifier[emptyToNull] operator[SEP] identifier[String] identifier[str] operator[SEP] { Keyword[return] operator[SEP] identifier[str] operator[!=] Other[null] operator[&&] operator[!] identifier[str] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP]...
void afterRead(Node<K, V> node) { final int bufferIndex = readBufferIndex(); final long writeCount = recordRead(bufferIndex, node); drainOnReadIfNeeded(bufferIndex, writeCount); notifyListener(); }
class class_name[name] begin[{] method[afterRead, return_type[void], modifier[default], parameter[node]] begin[{] local_variable[type[int], bufferIndex] local_variable[type[long], writeCount] call[.drainOnReadIfNeeded, parameter[member[.bufferIndex], member[.writeCount]]] ...
Keyword[void] identifier[afterRead] operator[SEP] identifier[Node] operator[<] identifier[K] , identifier[V] operator[>] identifier[node] operator[SEP] { Keyword[final] Keyword[int] identifier[bufferIndex] operator[=] identifier[readBufferIndex] operator[SEP] operator[SEP] operator[SEP] Keyword[final] Keyword[l...
public com.squareup.okhttp.Call deleteNodeAsync(String path, String name, final ApiCallback<Void> callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; if (callback != null) { ...
class class_name[name] begin[{] method[deleteNodeAsync, return_type[type[com]], modifier[public], parameter[path, name, callback]] begin[{] local_variable[type[ProgressResponseBody], progressListener] local_variable[type[ProgressRequestBody], progressRequestListener] if[binary_o...
Keyword[public] identifier[com] operator[SEP] identifier[squareup] operator[SEP] identifier[okhttp] operator[SEP] identifier[Call] identifier[deleteNodeAsync] operator[SEP] identifier[String] identifier[path] , identifier[String] identifier[name] , Keyword[final] identifier[ApiCallback] operator[<] identifier[Void] o...
private Set<String> cleanUpResult(Set<String> s) { s.remove(null); return s; }
class class_name[name] begin[{] method[cleanUpResult, return_type[type[Set]], modifier[private], parameter[s]] begin[{] call[s.remove, parameter[literal[null]]] return[member[.s]] end[}] END[}]
Keyword[private] identifier[Set] operator[<] identifier[String] operator[>] identifier[cleanUpResult] operator[SEP] identifier[Set] operator[<] identifier[String] operator[>] identifier[s] operator[SEP] { identifier[s] operator[SEP] identifier[remove] operator[SEP] Other[null] operator[SEP] operator[SEP] Keyword...
public OvhOfficeTask serviceName_configureDomain_POST(String serviceName, String domain, OvhSupportedServiceEnum[] supportedServices) throws IOException { String qPath = "/saas/csp2/{serviceName}/configureDomain"; StringBuilder sb = path(qPath, serviceName); HashMap<String, Object>o = new HashMap<String, Object>(...
class class_name[name] begin[{] method[serviceName_configureDomain_POST, return_type[type[OvhOfficeTask]], modifier[public], parameter[serviceName, domain, supportedServices]] begin[{] local_variable[type[String], qPath] local_variable[type[StringBuilder], sb] local_variable[type[HashMa...
Keyword[public] identifier[OvhOfficeTask] identifier[serviceName_configureDomain_POST] operator[SEP] identifier[String] identifier[serviceName] , identifier[String] identifier[domain] , identifier[OvhSupportedServiceEnum] operator[SEP] operator[SEP] identifier[supportedServices] operator[SEP] Keyword[throws] identifi...
public static KDF hkdf(Algorithm<MAC> mac, byte[] info, int dkLen) { return new HKDF(mac, info, dkLen); }
class class_name[name] begin[{] method[hkdf, return_type[type[KDF]], modifier[public static], parameter[mac, info, dkLen]] begin[{] return[ClassCreator(arguments=[MemberReference(member=mac, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=info, postfix_opera...
Keyword[public] Keyword[static] identifier[KDF] identifier[hkdf] operator[SEP] identifier[Algorithm] operator[<] identifier[MAC] operator[>] identifier[mac] , Keyword[byte] operator[SEP] operator[SEP] identifier[info] , Keyword[int] identifier[dkLen] operator[SEP] { Keyword[return] Keyword[new] identifier[HKDF...
@SuppressWarnings({"unused", "WeakerAccess"}) public void pushEvent(String eventName, Map<String, Object> eventActions) { if (eventName == null || eventName.equals("")) return; ValidationResult validationResult = validator.isRestrictedEventName(eventName); // Check for a restri...
class class_name[name] begin[{] method[pushEvent, return_type[void], modifier[public], parameter[eventName, eventActions]] begin[{] if[binary_operation[binary_operation[member[.eventName], ==, literal[null]], ||, call[eventName.equals, parameter[literal[""]]]]] begin[{] return[None] els...
annotation[@] identifier[SuppressWarnings] operator[SEP] { literal[String] , literal[String] } operator[SEP] Keyword[public] Keyword[void] identifier[pushEvent] operator[SEP] identifier[String] identifier[eventName] , identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifie...
private Object handleFailOver(SQLException qe, Method method, Object[] args, Protocol protocol) throws Throwable { HostAddress failHostAddress = null; boolean failIsMaster = true; if (protocol != null) { failHostAddress = protocol.getHostAddress(); failIsMaster = protocol.isMasterConnectio...
class class_name[name] begin[{] method[handleFailOver, return_type[type[Object]], modifier[private], parameter[qe, method, args, protocol]] begin[{] local_variable[type[HostAddress], failHostAddress] local_variable[type[boolean], failIsMaster] if[binary_operation[member[.protoco...
Keyword[private] identifier[Object] identifier[handleFailOver] operator[SEP] identifier[SQLException] identifier[qe] , identifier[Method] identifier[method] , identifier[Object] operator[SEP] operator[SEP] identifier[args] , identifier[Protocol] identifier[protocol] operator[SEP] Keyword[throws] identifier[Throwable...
private void loadZealotConfig(AbstractZealotConfig zealotConfig) { zealotConfig.configNormal(NormalConfig.getInstance()); zealotConfig.configXml(XmlContext.INSTANCE); zealotConfig.configTagHandler(); log.warn("Zealot的配置信息加载完成!"); }
class class_name[name] begin[{] method[loadZealotConfig, return_type[void], modifier[private], parameter[zealotConfig]] begin[{] call[zealotConfig.configNormal, parameter[call[NormalConfig.getInstance, parameter[]]]] call[zealotConfig.configXml, parameter[member[XmlContext.INSTA...
Keyword[private] Keyword[void] identifier[loadZealotConfig] operator[SEP] identifier[AbstractZealotConfig] identifier[zealotConfig] operator[SEP] { identifier[zealotConfig] operator[SEP] identifier[configNormal] operator[SEP] identifier[NormalConfig] operator[SEP] identifier[getInstance] operator[SEP] operator[S...
public GrpcServer start() throws IOException { RetryUtils.retry("Starting gRPC server", () -> mServer.start(), new ExponentialBackoffRetry(100, 500, 5)); mStarted = true; return this; }
class class_name[name] begin[{] method[start, return_type[type[GrpcServer]], modifier[public], parameter[]] begin[{] call[RetryUtils.retry, parameter[literal["Starting gRPC server"], LambdaExpression(body=MethodInvocation(arguments=[], member=start, postfix_operators=[], prefix_operators=[], qu...
Keyword[public] identifier[GrpcServer] identifier[start] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[RetryUtils] operator[SEP] identifier[retry] operator[SEP] literal[String] , operator[SEP] operator[SEP] operator[->] identifier[mServer] operator[SEP] identifier[start] opera...
@XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/", name = "cmisFault") public JAXBElement<CmisFaultType> createCmisFault(CmisFaultType value) { return new JAXBElement<CmisFaultType>(_CmisFault_QNAME, CmisFaultType.class, null, value); }
class class_name[name] begin[{] method[createCmisFault, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_CmisFault_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(postfix_opera...
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[CmisFaultType] operator[>] identifier[createCmisFault] operator[SEP] identifier[CmisFaultT...
@Override public Cipher encrypt() { try { Cipher cipher = Cipher.getInstance(ALGORITHM); cipher.init(Cipher.ENCRYPT_MODE, getKey()); return cipher; } catch (GeneralSecurityException e) { throw new AssertionError(e); } }
class class_name[name] begin[{] method[encrypt, return_type[type[Cipher]], modifier[public], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=ALGORITHM, postfi...
annotation[@] identifier[Override] Keyword[public] identifier[Cipher] identifier[encrypt] operator[SEP] operator[SEP] { Keyword[try] { identifier[Cipher] identifier[cipher] operator[=] identifier[Cipher] operator[SEP] identifier[getInstance] operator[SEP] identifier[ALGORITHM] operator[SEP] operator[S...
@Nonnull public static SimpleURL getURLWithServerAndContext (@Nonnull final IRequestWebScopeWithoutResponse aRequestScope, @Nonnull final String sHRef) { return new SimpleURL (getURIWithServerAndContext (aRequestScope, sHRef)); }
class class_name[name] begin[{] method[getURLWithServerAndContext, return_type[type[SimpleURL]], modifier[public static], parameter[aRequestScope, sHRef]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=aRequestScope, postfix_operators=[], prefix_operators=[],...
annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] identifier[SimpleURL] identifier[getURLWithServerAndContext] operator[SEP] annotation[@] identifier[Nonnull] Keyword[final] identifier[IRequestWebScopeWithoutResponse] identifier[aRequestScope] , annotation[@] identifier[Nonnull] Keyword[final] identifi...
@SuppressWarnings("unchecked") public static <C,I> List<I> convertListToInterfaceList( List<C>internalResult, Class<I> interfaceType ) { List<I> result = new ArrayList<I>(internalResult.size()); for( C element : internalResult ) { result.add((I) element); } return result; ...
class class_name[name] begin[{] method[convertListToInterfaceList, return_type[type[List]], modifier[public static], parameter[internalResult, interfaceType]] begin[{] local_variable[type[List], result] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Meth...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] operator[<] identifier[C] , identifier[I] operator[>] identifier[List] operator[<] identifier[I] operator[>] identifier[convertListToInterfaceList] operator[SEP] identifier[List] operator[<] identifie...
public boolean addWifiStateChangedListener( NetworkStateChangedListener listener) { synchronized (this) { if (listeners.contains(listener)) { return true; } return listeners.add(listener); } }
class class_name[name] begin[{] method[addWifiStateChangedListener, return_type[type[boolean]], modifier[public], parameter[listener]] begin[{] SYNCHRONIZED[THIS[]] BEGIN[{] if[call[listeners.contains, parameter[member[.listener]]]] begin[{] return[litera...
Keyword[public] Keyword[boolean] identifier[addWifiStateChangedListener] operator[SEP] identifier[NetworkStateChangedListener] identifier[listener] operator[SEP] { Keyword[synchronized] operator[SEP] Keyword[this] operator[SEP] { Keyword[if] operator[SEP] identifier[listeners] operator[SEP] identifier...
private void jCheckBoxPaintGradientActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_jCheckBoxPaintGradientActionPerformed {//GEN-HEADEREND:event_jCheckBoxPaintGradientActionPerformed parent.getGraphPanelChart().getChartSettings().setDrawGradient(jCheckBoxPaintGradient.isSelected()); ...
class class_name[name] begin[{] method[jCheckBoxPaintGradientActionPerformed, return_type[void], modifier[private], parameter[evt]] begin[{] call[parent.getGraphPanelChart, parameter[]] call[.refreshGraphPreview, parameter[]] end[}] END[}]
Keyword[private] Keyword[void] identifier[jCheckBoxPaintGradientActionPerformed] operator[SEP] identifier[java] operator[SEP] identifier[awt] operator[SEP] identifier[event] operator[SEP] identifier[ActionEvent] identifier[evt] operator[SEP] { identifier[parent] operator[SEP] identifier[getGraphPanelChart] opera...
public static void cublasZtpsv(char uplo, char trans, char diag, int n, Pointer AP, Pointer x, int incx) { cublasZtpsvNative(uplo, trans, diag, n, AP, x, incx); checkResultBLAS(); }
class class_name[name] begin[{] method[cublasZtpsv, return_type[void], modifier[public static], parameter[uplo, trans, diag, n, AP, x, incx]] begin[{] call[.cublasZtpsvNative, parameter[member[.uplo], member[.trans], member[.diag], member[.n], member[.AP], member[.x], member[.incx]]] ...
Keyword[public] Keyword[static] Keyword[void] identifier[cublasZtpsv] operator[SEP] Keyword[char] identifier[uplo] , Keyword[char] identifier[trans] , Keyword[char] identifier[diag] , Keyword[int] identifier[n] , identifier[Pointer] identifier[AP] , identifier[Pointer] identifier[x] , Keyword[int] identifier[incx...
public List<ServerGroup> tableServerGroups(int profileId) { ArrayList<ServerGroup> serverGroups = new ArrayList<>(); PreparedStatement queryStatement = null; ResultSet results = null; try (Connection sqlConnection = sqlService.getConnection()) { queryStatement = sqlConnectio...
class class_name[name] begin[{] method[tableServerGroups, return_type[type[List]], modifier[public], parameter[profileId]] begin[{] local_variable[type[ArrayList], serverGroups] local_variable[type[PreparedStatement], queryStatement] local_variable[type[ResultSet], results] TryS...
Keyword[public] identifier[List] operator[<] identifier[ServerGroup] operator[>] identifier[tableServerGroups] operator[SEP] Keyword[int] identifier[profileId] operator[SEP] { identifier[ArrayList] operator[<] identifier[ServerGroup] operator[>] identifier[serverGroups] operator[=] Keyword[new] identifier[ArrayL...
@Override protected void onStartObject(String fieldName, JsonParser jp) { log.trace(fieldName); if ("result".equals(fieldName)) { resultStarted = true; } }
class class_name[name] begin[{] method[onStartObject, return_type[void], modifier[protected], parameter[fieldName, jp]] begin[{] call[log.trace, parameter[member[.fieldName]]] if[literal["result"]] begin[{] assign[member[.resultStarted], literal[true]] ...
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[onStartObject] operator[SEP] identifier[String] identifier[fieldName] , identifier[JsonParser] identifier[jp] operator[SEP] { identifier[log] operator[SEP] identifier[trace] operator[SEP] identifier[fieldName] operator[SEP] operator[...
public boolean hasSearchPages() { try { return this.getClass().getMethod("createSearchPage", new Class<?>[] { String.class }).getDeclaringClass() != Application.class; } catch (NoSuchMethodException | SecurityException e) { throw new RuntimeException(e); } }
class class_name[name] begin[{] method[hasSearchPages, return_type[type[boolean]], modifier[public], parameter[]] begin[{] TryStatement(block=[ReturnStatement(expression=BinaryOperation(operandl=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[], me...
Keyword[public] Keyword[boolean] identifier[hasSearchPages] operator[SEP] operator[SEP] { Keyword[try] { Keyword[return] Keyword[this] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] identifier[getMethod] operator[SEP] literal[String] , Keyword[new] identifier[Class] oper...
public void marshall(GetLifecyclePolicyRequest getLifecyclePolicyRequest, ProtocolMarshaller protocolMarshaller) { if (getLifecyclePolicyRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(getL...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[getLifecyclePolicyRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.getLifecyclePolicyRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(argume...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[GetLifecyclePolicyRequest] identifier[getLifecyclePolicyRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[getLifecyclePolicyRequest] operator[==] Other[null] op...
protected void addExamplePair(IncorrectExample incorrectSentence, CorrectExample correctSentence) { String correctExample = correctSentence.getExample(); int markerStart= correctExample.indexOf("<marker>"); int markerEnd = correctExample.indexOf("</marker>"); if (markerStart != -1 && markerEnd != -1) { ...
class class_name[name] begin[{] method[addExamplePair, return_type[void], modifier[protected], parameter[incorrectSentence, correctSentence]] begin[{] local_variable[type[String], correctExample] local_variable[type[int], markerStart] local_variable[type[int], markerEnd] ...
Keyword[protected] Keyword[void] identifier[addExamplePair] operator[SEP] identifier[IncorrectExample] identifier[incorrectSentence] , identifier[CorrectExample] identifier[correctSentence] operator[SEP] { identifier[String] identifier[correctExample] operator[=] identifier[correctSentence] operator[SEP] identi...
public void loadFromResource(String resource, Candidate.CandidateType type) throws IOException { InputStream candidatesConfig = classloader.getResourceAsStream(resource); if(candidatesConfig == null) { throw new IOException("Resource '" + resource + "' not found"); } try { load...
class class_name[name] begin[{] method[loadFromResource, return_type[void], modifier[public], parameter[resource, type]] begin[{] local_variable[type[InputStream], candidatesConfig] if[binary_operation[member[.candidatesConfig], ==, literal[null]]] begin[{] ThrowStatement(ex...
Keyword[public] Keyword[void] identifier[loadFromResource] operator[SEP] identifier[String] identifier[resource] , identifier[Candidate] operator[SEP] identifier[CandidateType] identifier[type] operator[SEP] Keyword[throws] identifier[IOException] { identifier[InputStream] identifier[candidatesConfig] operator[...
private Runnable createRunnableLoggingTask(final Level level, final Object message, final Throwable t) { // While logging, the logger thread temporarily disguises itself as its caller. final String callerThreadName = Thread.currentThread().getName(); final Runnable runnableLoggingTa...
class class_name[name] begin[{] method[createRunnableLoggingTask, return_type[type[Runnable]], modifier[private], parameter[level, message, t]] begin[{] local_variable[type[String], callerThreadName] local_variable[type[Runnable], runnableLoggingTask] return[member[.runnableLoggingTask]...
Keyword[private] identifier[Runnable] identifier[createRunnableLoggingTask] operator[SEP] Keyword[final] identifier[Level] identifier[level] , Keyword[final] identifier[Object] identifier[message] , Keyword[final] identifier[Throwable] identifier[t] operator[SEP] { Keyword[final] identifier[String] identifier[...
@Override public void clearCache() { entityCache.clearCache(CommerceNotificationAttachmentImpl.class); finderCache.clearCache(FINDER_CLASS_NAME_ENTITY); finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); }
class class_name[name] begin[{] method[clearCache, return_type[void], modifier[public], parameter[]] begin[{] call[entityCache.clearCache, parameter[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Comme...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[clearCache] operator[SEP] operator[SEP] { identifier[entityCache] operator[SEP] identifier[clearCache] operator[SEP] identifier[CommerceNotificationAttachmentImpl] operator[SEP] Keyword[class] operator[SEP] operator[SEP] identifier[finde...
public InetAddress getAddress() { try { if (name == null) return InetAddress.getByAddress(toArray(addr)); else return InetAddress.getByAddress(name.toString(), toArray(addr)); } catch (UnknownHostException e) { return null; } }
class class_name[name] begin[{] method[getAddress, return_type[type[InetAddress]], modifier[public], parameter[]] begin[{] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=name, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Liter...
Keyword[public] identifier[InetAddress] identifier[getAddress] operator[SEP] operator[SEP] { Keyword[try] { Keyword[if] operator[SEP] identifier[name] operator[==] Other[null] operator[SEP] Keyword[return] identifier[InetAddress] operator[SEP] identifier[getByAddress] operator[SEP] identifier[toArray]...
public void clearAllCaches() { logger.warn("beginning request to clear all caches"); for (final String cacheName : this.cacheManager.getCacheNames()) { clearCache(cacheName); } logger.warn("completed request to clear all caches"); }
class class_name[name] begin[{] method[clearAllCaches, return_type[void], modifier[public], parameter[]] begin[{] call[logger.warn, parameter[literal["beginning request to clear all caches"]]] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Method...
Keyword[public] Keyword[void] identifier[clearAllCaches] operator[SEP] operator[SEP] { identifier[logger] operator[SEP] identifier[warn] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[final] identifier[String] identifier[cacheName] operator[:] Keyword[this] operator...
public static double getAngleBetweenLinePlane( Coordinate a, Coordinate d, Coordinate b, Coordinate c ) { double[] rAD = {d.x - a.x, d.y - a.y, d.z - a.z}; double[] rDB = {b.x - d.x, b.y - d.y, b.z - d.z}; double[] rDC = {c.x - d.x, c.y - d.y, c.z - d.z}; double[] n = {// ...
class class_name[name] begin[{] method[getAngleBetweenLinePlane, return_type[type[double]], modifier[public static], parameter[a, d, b, c]] begin[{] local_variable[type[double], rAD] local_variable[type[double], rDB] local_variable[type[double], rDC] local_variable[type[double],...
Keyword[public] Keyword[static] Keyword[double] identifier[getAngleBetweenLinePlane] operator[SEP] identifier[Coordinate] identifier[a] , identifier[Coordinate] identifier[d] , identifier[Coordinate] identifier[b] , identifier[Coordinate] identifier[c] operator[SEP] { Keyword[double] operator[SEP] operator[SE...
@PostConstruct public final void init() throws URISyntaxException { final String address = getConfig(ADDRESS, null); if (address != null) { final URI uri = new URI("udp://" + address); final String prefix = getConfig(PREFIX, "mapfish-print").replace("%h", getHostname()); ...
class class_name[name] begin[{] method[init, return_type[void], modifier[final public], parameter[]] begin[{] local_variable[type[String], address] if[binary_operation[member[.address], !=, literal[null]]] begin[{] local_variable[type[URI], uri] local_variable[ty...
annotation[@] identifier[PostConstruct] Keyword[public] Keyword[final] Keyword[void] identifier[init] operator[SEP] operator[SEP] Keyword[throws] identifier[URISyntaxException] { Keyword[final] identifier[String] identifier[address] operator[=] identifier[getConfig] operator[SEP] identifier[ADDRESS] , Other[nul...
protected void mergeImmutableContainerTypesFrom(Configuration otherConfiguration) { Set<Dotted> union = Sets.union(hardcodedImmutableContainerClasses.build(), otherConfiguration.immutableContainerClasses()); hardcodedImmutableContainerClasses = ImmutableSet.<Dotted>builder().addAll(...
class class_name[name] begin[{] method[mergeImmutableContainerTypesFrom, return_type[void], modifier[protected], parameter[otherConfiguration]] begin[{] local_variable[type[Set], union] assign[member[.hardcodedImmutableContainerClasses], call[.ImmutableSet, parameter[]]] end[}] END[...
Keyword[protected] Keyword[void] identifier[mergeImmutableContainerTypesFrom] operator[SEP] identifier[Configuration] identifier[otherConfiguration] operator[SEP] { identifier[Set] operator[<] identifier[Dotted] operator[>] identifier[union] operator[=] identifier[Sets] operator[SEP] identifier[union] operator[S...
public static void logRuntimeException(Logger log, String exceptionMessage, String method, Object... params) { handleException(log, newRunTimeException(exceptionMessage), method, params); }
class class_name[name] begin[{] method[logRuntimeException, return_type[void], modifier[public static], parameter[log, exceptionMessage, method, params]] begin[{] call[.handleException, parameter[member[.log], call[.newRunTimeException, parameter[member[.exceptionMessage]]], member[.method], me...
Keyword[public] Keyword[static] Keyword[void] identifier[logRuntimeException] operator[SEP] identifier[Logger] identifier[log] , identifier[String] identifier[exceptionMessage] , identifier[String] identifier[method] , identifier[Object] operator[...] identifier[params] operator[SEP] { identifier[handleExcept...
public static int lookup(String text, int filter) { int type = UNKNOWN; if (LOOKUP.containsKey(text)) { type = LOOKUP.get(text); if (filter != UNKNOWN && !ofType(type, filter)) { type = UNKNOWN; } } return type; }
class class_name[name] begin[{] method[lookup, return_type[type[int]], modifier[public static], parameter[text, filter]] begin[{] local_variable[type[int], type] if[call[LOOKUP.containsKey, parameter[member[.text]]]] begin[{] assign[member[.type], call[LOOKUP.get...
Keyword[public] Keyword[static] Keyword[int] identifier[lookup] operator[SEP] identifier[String] identifier[text] , Keyword[int] identifier[filter] operator[SEP] { Keyword[int] identifier[type] operator[=] identifier[UNKNOWN] operator[SEP] Keyword[if] operator[SEP] identifier[LOOKUP] operator[SEP] identifier[co...
public Matrix3f scaling(float factor) { MemUtil.INSTANCE.zero(this); m00 = factor; m11 = factor; m22 = factor; return this; }
class class_name[name] begin[{] method[scaling, return_type[type[Matrix3f]], modifier[public], parameter[factor]] begin[{] call[MemUtil.INSTANCE.zero, parameter[THIS[]]] assign[member[.m00], member[.factor]] assign[member[.m11], member[.factor]] a...
Keyword[public] identifier[Matrix3f] identifier[scaling] operator[SEP] Keyword[float] identifier[factor] operator[SEP] { identifier[MemUtil] operator[SEP] identifier[INSTANCE] operator[SEP] identifier[zero] operator[SEP] Keyword[this] operator[SEP] operator[SEP] identifier[m00] operator[=] identifier[factor] ope...
int getNextSentencePosition(int numberOfParagraph, int startOfSentencePosition) { for (CacheEntry anEntry : entries) { if (anEntry.numberOfParagraph == numberOfParagraph && anEntry.startOfSentencePosition == startOfSentencePosition) { return anEntry.nextSentencePosition; } } return -1; ...
class class_name[name] begin[{] method[getNextSentencePosition, return_type[type[int]], modifier[default], parameter[numberOfParagraph, startOfSentencePosition]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=Mem...
Keyword[int] identifier[getNextSentencePosition] operator[SEP] Keyword[int] identifier[numberOfParagraph] , Keyword[int] identifier[startOfSentencePosition] operator[SEP] { Keyword[for] operator[SEP] identifier[CacheEntry] identifier[anEntry] operator[:] identifier[entries] operator[SEP] { Keyword[i...
public Data set(Iterable<Property> props) { return !Iterables.isEmpty(props) ? new Data(props) : this; }
class class_name[name] begin[{] method[set, return_type[type[Data]], modifier[public], parameter[props]] begin[{] return[TernaryExpression(condition=MethodInvocation(arguments=[MemberReference(member=props, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=isEmpty, postfix_o...
Keyword[public] identifier[Data] identifier[set] operator[SEP] identifier[Iterable] operator[<] identifier[Property] operator[>] identifier[props] operator[SEP] { Keyword[return] operator[!] identifier[Iterables] operator[SEP] identifier[isEmpty] operator[SEP] identifier[props] operator[SEP] operator[?] Keyword[...
private double[][] wettedArea( double[] waterLevel, List<RiverPoint> riverPoints ) { /* right and left limits of the main channel */ double dx, sx; double area_b, base_dx, base_sx, altezza; double peri_b; double larghe_b; double gau_b; double alfa_num, alfa_den; ...
class class_name[name] begin[{] method[wettedArea, return_type[type[double]], modifier[private], parameter[waterLevel, riverPoints]] begin[{] local_variable[type[double], dx] local_variable[type[double], area_b] local_variable[type[double], peri_b] local_variable[type[double], l...
Keyword[private] Keyword[double] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[wettedArea] operator[SEP] Keyword[double] operator[SEP] operator[SEP] identifier[waterLevel] , identifier[List] operator[<] identifier[RiverPoint] operator[>] identifier[riverPoints] operator[SEP] { Keyword[doubl...
private String replaceXYZ(String url, int z, long x, long y) { url = url.replaceAll(Z_VARIABLE, String.valueOf(z)); url = url.replaceAll(X_VARIABLE, String.valueOf(x)); url = url.replaceAll(Y_VARIABLE, String.valueOf(y)); return url; }
class class_name[name] begin[{] method[replaceXYZ, return_type[type[String]], modifier[private], parameter[url, z, x, y]] begin[{] assign[member[.url], call[url.replaceAll, parameter[member[.Z_VARIABLE], call[String.valueOf, parameter[member[.z]]]]]] assign[member[.url], call[ur...
Keyword[private] identifier[String] identifier[replaceXYZ] operator[SEP] identifier[String] identifier[url] , Keyword[int] identifier[z] , Keyword[long] identifier[x] , Keyword[long] identifier[y] operator[SEP] { identifier[url] operator[=] identifier[url] operator[SEP] identifier[replaceAll] operator[SEP] id...
public String info() { ProfileHelper helper = new ProfileHelper(entityDao, securityHelper.getProfileService()); Long id = getLong("user.id"); List<Profile> profiles = entityDao.get(User.class, id).getProfiles(); helper.populateInfo(profiles); return forward(); }
class class_name[name] begin[{] method[info, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[ProfileHelper], helper] local_variable[type[Long], id] local_variable[type[List], profiles] call[helper.populateInfo, parameter[member[.pro...
Keyword[public] identifier[String] identifier[info] operator[SEP] operator[SEP] { identifier[ProfileHelper] identifier[helper] operator[=] Keyword[new] identifier[ProfileHelper] operator[SEP] identifier[entityDao] , identifier[securityHelper] operator[SEP] identifier[getProfileService] operator[SEP] operator[SE...
public EClass getObjectContainerPresentationSpaceSize() { if (objectContainerPresentationSpaceSizeEClass == null) { objectContainerPresentationSpaceSizeEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(519); } return objectContainerPresentationSpaceSizeEClass;...
class class_name[name] begin[{] method[getObjectContainerPresentationSpaceSize, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.objectContainerPresentationSpaceSizeEClass], ==, literal[null]]] begin[{] assign[member[.objectC...
Keyword[public] identifier[EClass] identifier[getObjectContainerPresentationSpaceSize] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[objectContainerPresentationSpaceSizeEClass] operator[==] Other[null] operator[SEP] { identifier[objectContainerPresentationSpaceSizeEClass] operator...
public void buildClassSummary(XMLNode node, Content summaryContentTree) { String classTableSummary = configuration.getText("doclet.Member_Table_Summary", configuration.getText("doclet.Class_Summary"), configuration.getText("doclet.classes")); String[] clas...
class class_name[name] begin[{] method[buildClassSummary, return_type[void], modifier[public], parameter[node, summaryContentTree]] begin[{] local_variable[type[String], classTableSummary] local_variable[type[String], classTableHeader] local_variable[type[ClassDoc], classes] ...
Keyword[public] Keyword[void] identifier[buildClassSummary] operator[SEP] identifier[XMLNode] identifier[node] , identifier[Content] identifier[summaryContentTree] operator[SEP] { identifier[String] identifier[classTableSummary] operator[=] identifier[configuration] operator[SEP] identifier[getText] operator[SE...
public void setSourceEncryptionContext(java.util.Map<String, String> sourceEncryptionContext) { this.sourceEncryptionContext = sourceEncryptionContext == null ? null : new com.amazonaws.internal.SdkInternalMap<String, String>( sourceEncryptionContext); }
class class_name[name] begin[{] method[setSourceEncryptionContext, return_type[void], modifier[public], parameter[sourceEncryptionContext]] begin[{] assign[THIS[member[None.sourceEncryptionContext]], TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=sourceEncryptionCon...
Keyword[public] Keyword[void] identifier[setSourceEncryptionContext] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[sourceEncryptionContext] operator[SEP] { Keyword[this] operator[SEP] identif...
private int merge(String[] dst, String[] srcA, int lengthA, Tag[] srcB, int lengthB) { int i = 0; int ai = 0; int bi = 0; while (ai < lengthA && bi < lengthB) { final String ak = srcA[ai]; final String av = srcA[ai + 1]; Tag b = srcB[bi]; int cmp = ak.compareTo(b.key()); i...
class class_name[name] begin[{] method[merge, return_type[type[int]], modifier[private], parameter[dst, srcA, lengthA, srcB, lengthB]] begin[{] local_variable[type[int], i] local_variable[type[int], ai] local_variable[type[int], bi] while[binary_operation[binary_operatio...
Keyword[private] Keyword[int] identifier[merge] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[dst] , identifier[String] operator[SEP] operator[SEP] identifier[srcA] , Keyword[int] identifier[lengthA] , identifier[Tag] operator[SEP] operator[SEP] identifier[srcB] , Keyword[int] identifier[l...
public AbstractDoubleList times(int times) { AbstractDoubleList newList = new DoubleArrayList(times*size()); for (int i=times; --i >= 0; ) { newList.addAllOfFromTo(this,0,size()-1); } return newList; }
class class_name[name] begin[{] method[times, return_type[type[AbstractDoubleList]], modifier[public], parameter[times]] begin[{] local_variable[type[AbstractDoubleList], newList] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=...
Keyword[public] identifier[AbstractDoubleList] identifier[times] operator[SEP] Keyword[int] identifier[times] operator[SEP] { identifier[AbstractDoubleList] identifier[newList] operator[=] Keyword[new] identifier[DoubleArrayList] operator[SEP] identifier[times] operator[*] identifier[size] operator[SEP] operator...
public static boolean isUpperCase(final String txt) { boolean upper = true; for (final char c : txt.toCharArray()) { if (Character.isLowerCase(c)) { upper = false; break; } } return upper; }
class class_name[name] begin[{] method[isUpperCase, return_type[type[boolean]], modifier[public static], parameter[txt]] begin[{] local_variable[type[boolean], upper] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(membe...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isUpperCase] operator[SEP] Keyword[final] identifier[String] identifier[txt] operator[SEP] { Keyword[boolean] identifier[upper] operator[=] literal[boolean] operator[SEP] Keyword[for] operator[SEP] Keyword[final] Keyword[char] identifier[c] operator[:] ...
public RadialMenuItem addMenuItem (String command, String label, Image icon, Predicate predicate) { RadialMenuItem item = new RadialMenuItem(command, label, new ImageIcon(icon), predicate); addMenuItem(item); return item; }
class class_name[name] begin[{] method[addMenuItem, return_type[type[RadialMenuItem]], modifier[public], parameter[command, label, icon, predicate]] begin[{] local_variable[type[RadialMenuItem], item] call[.addMenuItem, parameter[member[.item]]] return[member[.item]] end[}] ...
Keyword[public] identifier[RadialMenuItem] identifier[addMenuItem] operator[SEP] identifier[String] identifier[command] , identifier[String] identifier[label] , identifier[Image] identifier[icon] , identifier[Predicate] identifier[predicate] operator[SEP] { identifier[RadialMenuItem] identifier[item] operator...
@Override public ByteBuffer getByteBuffer() throws IOException { ByteBuf byteBuf = fileUpload.getByteBuf(); try { return byteBuf.nioBuffer(); } finally { byteBuf.release(); } }
class class_name[name] begin[{] method[getByteBuffer, return_type[type[ByteBuffer]], modifier[public], parameter[]] begin[{] local_variable[type[ByteBuf], byteBuf] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[], member=nioBuffer, postfix_operators=[], prefix_operat...
annotation[@] identifier[Override] Keyword[public] identifier[ByteBuffer] identifier[getByteBuffer] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[ByteBuf] identifier[byteBuf] operator[=] identifier[fileUpload] operator[SEP] identifier[getByteBuf] operator[SEP] operator[SEP] ope...
private SelectQuery incrementQueryPagination(SelectQuery query, SelectResultValue prevResult) { Map<String, Integer> pagingIdentifiers = prevResult.getPagingIdentifiers(); Map<String, Integer> newPagingIdentifers = new HashMap<>(); for (String segmentId : pagingIdentifiers.keySet()) { int newOffset...
class class_name[name] begin[{] method[incrementQueryPagination, return_type[type[SelectQuery]], modifier[private], parameter[query, prevResult]] begin[{] local_variable[type[Map], pagingIdentifiers] local_variable[type[Map], newPagingIdentifers] ForStatement(body=BlockStatement(label=N...
Keyword[private] identifier[SelectQuery] identifier[incrementQueryPagination] operator[SEP] identifier[SelectQuery] identifier[query] , identifier[SelectResultValue] identifier[prevResult] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[Integer] operator[>] identifier[pagingIdentifi...
protected void generateIndexFile(Character unicode) throws IOException { String title = configuration.getText("doclet.Window_Split_Index", unicode.toString()); Content body = getBody(true, getWindowTitle(title)); addTop(body); addNavLinks(true, body); HtmlTree div...
class class_name[name] begin[{] method[generateIndexFile, return_type[void], modifier[protected], parameter[unicode]] begin[{] local_variable[type[String], title] local_variable[type[Content], body] call[.addTop, parameter[member[.body]]] call[.addNavLinks, param...
Keyword[protected] Keyword[void] identifier[generateIndexFile] operator[SEP] identifier[Character] identifier[unicode] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identifier[title] operator[=] identifier[configuration] operator[SEP] identifier[getText] operator[SEP] literal[String]...
public static boolean comparePaths(String path1, String path2) { return addLeadingAndTrailingSlash(path1).equals(addLeadingAndTrailingSlash(path2)); }
class class_name[name] begin[{] method[comparePaths, return_type[type[boolean]], modifier[public static], parameter[path1, path2]] begin[{] return[call[.addLeadingAndTrailingSlash, parameter[member[.path1]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[boolean] identifier[comparePaths] operator[SEP] identifier[String] identifier[path1] , identifier[String] identifier[path2] operator[SEP] { Keyword[return] identifier[addLeadingAndTrailingSlash] operator[SEP] identifier[path1] operator[SEP] operator[SEP] identifier[equals...
public RelationalDatabase withPendingMaintenanceActions(PendingMaintenanceAction... pendingMaintenanceActions) { if (this.pendingMaintenanceActions == null) { setPendingMaintenanceActions(new java.util.ArrayList<PendingMaintenanceAction>(pendingMaintenanceActions.length)); } for (Pen...
class class_name[name] begin[{] method[withPendingMaintenanceActions, return_type[type[RelationalDatabase]], modifier[public], parameter[pendingMaintenanceActions]] begin[{] if[binary_operation[THIS[member[None.pendingMaintenanceActions]], ==, literal[null]]] begin[{] ca...
Keyword[public] identifier[RelationalDatabase] identifier[withPendingMaintenanceActions] operator[SEP] identifier[PendingMaintenanceAction] operator[...] identifier[pendingMaintenanceActions] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[pendingMaintenanceActions] operator[==] ...
public BigComplex round(MathContext mathContext) { return valueOf(re.round(mathContext), im.round(mathContext)); }
class class_name[name] begin[{] method[round, return_type[type[BigComplex]], modifier[public], parameter[mathContext]] begin[{] return[call[.valueOf, parameter[call[re.round, parameter[member[.mathContext]]], call[im.round, parameter[member[.mathContext]]]]]] end[}] END[}]
Keyword[public] identifier[BigComplex] identifier[round] operator[SEP] identifier[MathContext] identifier[mathContext] operator[SEP] { Keyword[return] identifier[valueOf] operator[SEP] identifier[re] operator[SEP] identifier[round] operator[SEP] identifier[mathContext] operator[SEP] , identifier[im] operator[SE...
public GraphQLInputObjectField transform(Consumer<Builder> builderConsumer) { Builder builder = newInputObjectField(this); builderConsumer.accept(builder); return builder.build(); }
class class_name[name] begin[{] method[transform, return_type[type[GraphQLInputObjectField]], modifier[public], parameter[builderConsumer]] begin[{] local_variable[type[Builder], builder] call[builderConsumer.accept, parameter[member[.builder]]] return[call[builder.build, parame...
Keyword[public] identifier[GraphQLInputObjectField] identifier[transform] operator[SEP] identifier[Consumer] operator[<] identifier[Builder] operator[>] identifier[builderConsumer] operator[SEP] { identifier[Builder] identifier[builder] operator[=] identifier[newInputObjectField] operator[SEP] Keyword[this] oper...
public int getTotalTriples() throws Exception { int total = 0; for (HashMap<String, Integer> mappingStat : statistics.values()) { for (Integer triplesCount : mappingStat.values()) { int triples = triplesCount.intValue(); if (triples == -1) { throw new Exception("An error was occurred in the counting...
class class_name[name] begin[{] method[getTotalTriples, return_type[type[int]], modifier[public], parameter[]] begin[{] local_variable[type[int], total] ForStatement(body=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(ann...
Keyword[public] Keyword[int] identifier[getTotalTriples] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[int] identifier[total] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] identifier[HashMap] operator[<] identifier[String] , identifier[Integer] operator[>] identifie...
int pcode_radial( ByteBuffer bos, int hoff, int hedsiz, boolean isZ, byte[] data, short[] threshold ) throws IOException { byte[] b2 = new byte[2]; int soff; ArrayList dims = new ArrayList(); int iscale = 1; /* data scale */ ...
class class_name[name] begin[{] method[pcode_radial, return_type[type[int]], modifier[default], parameter[bos, hoff, hedsiz, isZ, data, threshold]] begin[{] local_variable[type[byte], b2] local_variable[type[int], soff] local_variable[type[ArrayList], dims] local_variable[type[i...
Keyword[int] identifier[pcode_radial] operator[SEP] identifier[ByteBuffer] identifier[bos] , Keyword[int] identifier[hoff] , Keyword[int] identifier[hedsiz] , Keyword[boolean] identifier[isZ] , Keyword[byte] operator[SEP] operator[SEP] identifier[data] , Keyword[short] operator[SEP] operator[SEP] identifier[thresh...
protected static Set<String> newHashSet(String... strings) { final Set<String> set = new HashSet<>(strings.length); Collections.addAll(set, strings); return set; }
class class_name[name] begin[{] method[newHashSet, return_type[type[Set]], modifier[static protected], parameter[strings]] begin[{] local_variable[type[Set], set] call[Collections.addAll, parameter[member[.set], member[.strings]]] return[member[.set]] end[}] END[}]
Keyword[protected] Keyword[static] identifier[Set] operator[<] identifier[String] operator[>] identifier[newHashSet] operator[SEP] identifier[String] operator[...] identifier[strings] operator[SEP] { Keyword[final] identifier[Set] operator[<] identifier[String] operator[>] identifier[set] operator[=] Keyword[new...
public void append(byte[] data, int len) { if (data == null || len <= 0 || len > data.length) { throw new IllegalArgumentException("Invalid combination of parameters data and length to append()"); } int oldLimit = buffer.limit(); // grow buffer if necessary grow(len...
class class_name[name] begin[{] method[append, return_type[void], modifier[public], parameter[data, len]] begin[{] if[binary_operation[binary_operation[binary_operation[member[.data], ==, literal[null]], ||, binary_operation[member[.len], <=, literal[0]]], ||, binary_operation[member[.len], >, ...
Keyword[public] Keyword[void] identifier[append] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[data] , Keyword[int] identifier[len] operator[SEP] { Keyword[if] operator[SEP] identifier[data] operator[==] Other[null] operator[||] identifier[len] operator[<=] Other[0] operator[||] identifier[...
public void open(ucar.unidata.io.RandomAccessFile raf, ucar.nc2.NetcdfFile ncfile, ucar.nc2.util.CancelTask cancelTask) throws IOException { super.open(raf, ncfile, cancelTask); mySweep = new DoradeSweep(raf.getRandomAccessFile()); headerParser = new Doradeheader(); headerParser.rea...
class class_name[name] begin[{] method[open, return_type[void], modifier[public], parameter[raf, ncfile, cancelTask]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=raf, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=ncfile, postfi...
Keyword[public] Keyword[void] identifier[open] operator[SEP] identifier[ucar] operator[SEP] identifier[unidata] operator[SEP] identifier[io] operator[SEP] identifier[RandomAccessFile] identifier[raf] , identifier[ucar] operator[SEP] identifier[nc2] operator[SEP] identifier[NetcdfFile] identifier[ncfile] , identifier[...
private void visit_OP_UPDATE_MASTER_KEY() throws IOException { visitTxId(); v.visitVInt( EditsElement.KEY_ID); v.visitVLong( EditsElement.KEY_EXPIRY_DATE); VIntToken blobLengthToken = v.visitVInt(EditsElement.KEY_LENGTH); v.visitBlob(EditsElement.KEY_BLOB, blobLengthToken.value); }
class class_name[name] begin[{] method[visit_OP_UPDATE_MASTER_KEY, return_type[void], modifier[private], parameter[]] begin[{] call[.visitTxId, parameter[]] call[v.visitVInt, parameter[member[EditsElement.KEY_ID]]] call[v.visitVLong, parameter[member[EditsElement...
Keyword[private] Keyword[void] identifier[visit_OP_UPDATE_MASTER_KEY] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[visitTxId] operator[SEP] operator[SEP] operator[SEP] identifier[v] operator[SEP] identifier[visitVInt] operator[SEP] identifier[EditsElement] operator[SEP] identi...
private RawGcsCreationToken put(final GcsRestCreationToken token, ByteBuffer chunk, final boolean isFinalChunk, long timeoutMillis) throws IOException { final int length = chunk.remaining(); HTTPRequest req = createPutRequest(token, chunk, isFinalChunk, timeoutMillis, length); HTTPRequestInfo info = n...
class class_name[name] begin[{] method[put, return_type[type[RawGcsCreationToken]], modifier[private], parameter[token, chunk, isFinalChunk, timeoutMillis]] begin[{] local_variable[type[int], length] local_variable[type[HTTPRequest], req] local_variable[type[HTTPRequestInfo], info] ...
Keyword[private] identifier[RawGcsCreationToken] identifier[put] operator[SEP] Keyword[final] identifier[GcsRestCreationToken] identifier[token] , identifier[ByteBuffer] identifier[chunk] , Keyword[final] Keyword[boolean] identifier[isFinalChunk] , Keyword[long] identifier[timeoutMillis] operator[SEP] Keyword[throws...
public void bootstrap() throws Exception { final HostRunningModeControl runningModeControl = environment.getRunningModeControl(); final ControlledProcessState processState = new ControlledProcessState(true); shutdownHook.setControlledProcessState(processState); ServiceTarget target = ser...
class class_name[name] begin[{] method[bootstrap, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[HostRunningModeControl], runningModeControl] local_variable[type[ControlledProcessState], processState] call[shutdownHook.setControlledProcessState, p...
Keyword[public] Keyword[void] identifier[bootstrap] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[final] identifier[HostRunningModeControl] identifier[runningModeControl] operator[=] identifier[environment] operator[SEP] identifier[getRunningModeControl] operator[SEP] operator[SEP] ...
public String extractToString(final String separator, final String endSeparator) throws DevFailed { logger.debug(LOG_EXTRACTING, this); return attributeImpl.extractToString(separator, endSeparator); }
class class_name[name] begin[{] method[extractToString, return_type[type[String]], modifier[public], parameter[separator, endSeparator]] begin[{] call[logger.debug, parameter[member[.LOG_EXTRACTING], THIS[]]] return[call[attributeImpl.extractToString, parameter[member[.separator], membe...
Keyword[public] identifier[String] identifier[extractToString] operator[SEP] Keyword[final] identifier[String] identifier[separator] , Keyword[final] identifier[String] identifier[endSeparator] operator[SEP] Keyword[throws] identifier[DevFailed] { identifier[logger] operator[SEP] identifier[debug] operator[SEP]...
public static DMatrixRMaj insideSpan(DMatrixRMaj[] span , double min , double max , Random rand ) { DMatrixRMaj A = new DMatrixRMaj(span.length,1); DMatrixRMaj B = new DMatrixRMaj(span[0].getNumElements(),1); for( int i = 0; i < span.length; i++ ) { B.set(span[i]); doub...
class class_name[name] begin[{] method[insideSpan, return_type[type[DMatrixRMaj]], modifier[public static], parameter[span, min, max, rand]] begin[{] local_variable[type[DMatrixRMaj], A] local_variable[type[DMatrixRMaj], B] ForStatement(body=BlockStatement(label=None, statements=[Statem...
Keyword[public] Keyword[static] identifier[DMatrixRMaj] identifier[insideSpan] operator[SEP] identifier[DMatrixRMaj] operator[SEP] operator[SEP] identifier[span] , Keyword[double] identifier[min] , Keyword[double] identifier[max] , identifier[Random] identifier[rand] operator[SEP] { identifier[DMatrixRMaj] id...
public static PointsToPolyline create( @Nonnull ConfigPolyline config ) { if( config instanceof ConfigSplitMergeLineFit ) { return splitMerge((ConfigSplitMergeLineFit)config); } else if( config instanceof ConfigPolylineSplitMerge ) { return splitMerge((ConfigPolylineSplitMerge)config); } else { throw new...
class class_name[name] begin[{] method[create, return_type[type[PointsToPolyline]], modifier[public static], parameter[config]] begin[{] if[binary_operation[member[.config], instanceof, type[ConfigSplitMergeLineFit]]] begin[{] return[call[.splitMerge, parameter[Cast(expression=Membe...
Keyword[public] Keyword[static] identifier[PointsToPolyline] identifier[create] operator[SEP] annotation[@] identifier[Nonnull] identifier[ConfigPolyline] identifier[config] operator[SEP] { Keyword[if] operator[SEP] identifier[config] Keyword[instanceof] identifier[ConfigSplitMergeLineFit] operator[SEP] { ...
DownloadCache createCache(@NonNull BreakpointInfo info) { final MultiPointOutputStream outputStream = OkDownload.with().processFileStrategy() .createProcessStream(task, info, store); return new DownloadCache(outputStream); }
class class_name[name] begin[{] method[createCache, return_type[type[DownloadCache]], modifier[default], parameter[info]] begin[{] local_variable[type[MultiPointOutputStream], outputStream] return[ClassCreator(arguments=[MemberReference(member=outputStream, postfix_operators=[], prefix_operator...
identifier[DownloadCache] identifier[createCache] operator[SEP] annotation[@] identifier[NonNull] identifier[BreakpointInfo] identifier[info] operator[SEP] { Keyword[final] identifier[MultiPointOutputStream] identifier[outputStream] operator[=] identifier[OkDownload] operator[SEP] identifier[with] operator[SEP] ...