code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public final int getInt (int index) { int bytes = 0; if (order == ByteOrder.BIG_ENDIAN) { for (int i = 0; i < 4; i++) { bytes = bytes << 8; bytes = bytes | (byteArray.get(index + i) & 0xFF); } } else { for (int i = 3; i >= 0; i--) { ...
class class_name[name] begin[{] method[getInt, return_type[type[int]], modifier[final public], parameter[index]] begin[{] local_variable[type[int], bytes] if[binary_operation[member[.order], ==, member[ByteOrder.BIG_ENDIAN]]] begin[{] ForStatement(body=BlockStatement(label=N...
Keyword[public] Keyword[final] Keyword[int] identifier[getInt] operator[SEP] Keyword[int] identifier[index] operator[SEP] { Keyword[int] identifier[bytes] operator[=] Other[0] operator[SEP] Keyword[if] operator[SEP] identifier[order] operator[==] identifier[ByteOrder] operator[SEP] identifier[BIG_ENDIAN] operato...
@SuppressWarnings("unchecked") private void createErrorFile(Watcher watcher, WatchingException e) { mojo.getLog().debug("Creating error file for '" + e.getMessage() + "' happening at " + e.getLine() + ":" + e .getCharacter() + " of " + e.getFile() + ", created by watcher : " + watcher); ...
class class_name[name] begin[{] method[createErrorFile, return_type[void], modifier[private], parameter[watcher, e]] begin[{] call[mojo.getLog, parameter[]] local_variable[type[JSONObject], obj] call[obj.put, parameter[literal["message"], call[e.getMessage, parameter[]]]...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[private] Keyword[void] identifier[createErrorFile] operator[SEP] identifier[Watcher] identifier[watcher] , identifier[WatchingException] identifier[e] operator[SEP] { identifier[mojo] operator[SEP] identifier[getLog] ...
private boolean getActivityImplicity(final ACTIVITY activity) { if (this.activity == ACTIVITY.ALL) { return true; } if ((activity == ACTIVITY.SUBSCRIBE) && (this.activity == ACTIVITY.PUBLISH)) { return false; } else if ((activity == ACTIVITY.PUBLISH) && (this.act...
class class_name[name] begin[{] method[getActivityImplicity, return_type[type[boolean]], modifier[private], parameter[activity]] begin[{] if[binary_operation[THIS[member[None.activity]], ==, member[ACTIVITY.ALL]]] begin[{] return[literal[true]] else begin[{] None end...
Keyword[private] Keyword[boolean] identifier[getActivityImplicity] operator[SEP] Keyword[final] identifier[ACTIVITY] identifier[activity] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[activity] operator[==] identifier[ACTIVITY] operator[SEP] identifier[ALL] operator[SEP] { ...
@Override public void initialize(Subject subject, CallbackHandler callbackHandlerFromLoginContextEntry, Map<String, ?> sharedState, Map<String, ?> options) { CallbackHandler callbackHandlerFromDD = null; CallbackHandler callbackHandler = null; Boolean ignoreCallbackFromDD = false; /...
class class_name[name] begin[{] method[initialize, return_type[void], modifier[public], parameter[subject, callbackHandlerFromLoginContextEntry, sharedState, options]] begin[{] local_variable[type[CallbackHandler], callbackHandlerFromDD] local_variable[type[CallbackHandler], callbackHandler] ...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[initialize] operator[SEP] identifier[Subject] identifier[subject] , identifier[CallbackHandler] identifier[callbackHandlerFromLoginContextEntry] , identifier[Map] operator[<] identifier[String] , operator[?] operator[>] identifier[sharedStat...
private String readSqlFromResource(Resource resource) { try (BufferedReader reader = new BufferedReader(new InputStreamReader( new FileInputStream( resource. getFile()), "UTF-8"));) { StringBuilder sqlBuf = new StringBuilder(); for (String line = reader.readLine(); line != ...
class class_name[name] begin[{] method[readSqlFromResource, return_type[type[String]], modifier[private], parameter[resource]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[], body=None, construct...
Keyword[private] identifier[String] identifier[readSqlFromResource] operator[SEP] identifier[Resource] identifier[resource] operator[SEP] { Keyword[try] operator[SEP] identifier[BufferedReader] identifier[reader] operator[=] Keyword[new] identifier[BufferedReader] operator[SEP] Keyword[new] identifier[InputStrea...
protected void clearText(PageElement pageElement, CharSequence keysToSend, Object... args) throws TechnicalException, FailureException { try { final WebElement element = Context.waitUntil(ExpectedConditions.presenceOfElementLocated(Utilities.getLocator(pageElement, args))); element.cl...
class class_name[name] begin[{] method[clearText, return_type[void], modifier[protected], parameter[pageElement, keysToSend, args]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocati...
Keyword[protected] Keyword[void] identifier[clearText] operator[SEP] identifier[PageElement] identifier[pageElement] , identifier[CharSequence] identifier[keysToSend] , identifier[Object] operator[...] identifier[args] operator[SEP] Keyword[throws] identifier[TechnicalException] , identifier[FailureException] { ...
public MultipartContent setContentParts(Collection<? extends HttpContent> contentParts) { this.parts = new ArrayList<Part>(contentParts.size()); for (HttpContent contentPart : contentParts) { addPart(new Part(contentPart)); } return this; }
class class_name[name] begin[{] method[setContentParts, return_type[type[MultipartContent]], modifier[public], parameter[contentParts]] begin[{] assign[THIS[member[None.parts]], ClassCreator(arguments=[MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualif...
Keyword[public] identifier[MultipartContent] identifier[setContentParts] operator[SEP] identifier[Collection] operator[<] operator[?] Keyword[extends] identifier[HttpContent] operator[>] identifier[contentParts] operator[SEP] { Keyword[this] operator[SEP] identifier[parts] operator[=] Keyword[new] identifier[Arr...
public String tabMaker(int n) { StringBuilder buf = new StringBuilder(""); for (int i = 1; i <= n; i++) { buf.append(" "); } String tab = buf.toString(); return tab; }
class class_name[name] begin[{] method[tabMaker, return_type[type[String]], modifier[public], parameter[n]] begin[{] local_variable[type[StringBuilder], buf] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_opera...
Keyword[public] identifier[String] identifier[tabMaker] operator[SEP] Keyword[int] identifier[n] operator[SEP] { identifier[StringBuilder] identifier[buf] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifie...
public final EObject ruleCharacterRange() throws RecognitionException { EObject current = null; Token otherlv_2=null; EObject this_Keyword_0 = null; EObject lv_right_3_0 = null; enterRule(); try { // InternalXtext.g:3480:2: ( (this_Keyword_0= ruleKeywor...
class class_name[name] begin[{] method[ruleCharacterRange, return_type[type[EObject]], modifier[final public], parameter[]] begin[{] local_variable[type[EObject], current] local_variable[type[Token], otherlv_2] local_variable[type[EObject], this_Keyword_0] local_variable[type[EO...
Keyword[public] Keyword[final] identifier[EObject] identifier[ruleCharacterRange] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[EObject] identifier[current] operator[=] Other[null] operator[SEP] identifier[Token] identifier[otherlv_2] operator[=] Other[null] operator[S...
public static int lineEnd(ByteBuffer buffer, int maxLength) { int primitivePosition = buffer.position(); boolean canEnd = false; int charIndex = primitivePosition; byte b; while (buffer.hasRemaining()) { b = buffer.get(); charIndex++; if (b == StrUtil.C_CR) { canEnd = true; } else if...
class class_name[name] begin[{] method[lineEnd, return_type[type[int]], modifier[public static], parameter[buffer, maxLength]] begin[{] local_variable[type[int], primitivePosition] local_variable[type[boolean], canEnd] local_variable[type[int], charIndex] local_variable[type[byt...
Keyword[public] Keyword[static] Keyword[int] identifier[lineEnd] operator[SEP] identifier[ByteBuffer] identifier[buffer] , Keyword[int] identifier[maxLength] operator[SEP] { Keyword[int] identifier[primitivePosition] operator[=] identifier[buffer] operator[SEP] identifier[position] operator[SEP] operator[SEP] o...
public synchronized void setInitializationMethod(String newMethodName) { Method newMethod = null; if (newMethodName != null) { initializationMethodName = newMethodName; try { // see if we have a publicly accessible method by the nam...
class class_name[name] begin[{] method[setInitializationMethod, return_type[void], modifier[synchronized public], parameter[newMethodName]] begin[{] local_variable[type[Method], newMethod] if[binary_operation[member[.newMethodName], !=, literal[null]]] begin[{] a...
Keyword[public] Keyword[synchronized] Keyword[void] identifier[setInitializationMethod] operator[SEP] identifier[String] identifier[newMethodName] operator[SEP] { identifier[Method] identifier[newMethod] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[newMethodName] operator[!=] Other[...
public XML addGlobal(Class<?> aClass,Global global){ checksGlobalAbsence(aClass); findXmlClass(aClass).global = Converter.toXmlGlobal(global); return this; }
class class_name[name] begin[{] method[addGlobal, return_type[type[XML]], modifier[public], parameter[aClass, global]] begin[{] call[.checksGlobalAbsence, parameter[member[.aClass]]] assign[call[.findXmlClass, parameter[member[.aClass]]], call[Converter.toXmlGlobal, parameter[me...
Keyword[public] identifier[XML] identifier[addGlobal] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[aClass] , identifier[Global] identifier[global] operator[SEP] { identifier[checksGlobalAbsence] operator[SEP] identifier[aClass] operator[SEP] operator[SEP] identifier[findXmlClas...
public Point3i getCellIndices(Tuple3d pt) { Point3d p = new Point3d(pt); this.transfToCrystal(p); int x = (int)Math.floor(p.x); int y = (int)Math.floor(p.y); int z = (int)Math.floor(p.z); return new Point3i(x,y,z); }
class class_name[name] begin[{] method[getCellIndices, return_type[type[Point3i]], modifier[public], parameter[pt]] begin[{] local_variable[type[Point3d], p] THIS[call[None.transfToCrystal, parameter[member[.p]]]] local_variable[type[int], x] local_variable[type[int], y]...
Keyword[public] identifier[Point3i] identifier[getCellIndices] operator[SEP] identifier[Tuple3d] identifier[pt] operator[SEP] { identifier[Point3d] identifier[p] operator[=] Keyword[new] identifier[Point3d] operator[SEP] identifier[pt] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[transfToCr...
private void writeEXT(ZipEntry e) throws IOException { writeInt(EXTSIG); // EXT header signature writeInt(e.crc); // crc-32 if (e.csize >= ZIP64_MAGICVAL || e.size >= ZIP64_MAGICVAL) { writeLong(e.csize); writeLong(e.size); } else { ...
class class_name[name] begin[{] method[writeEXT, return_type[void], modifier[private], parameter[e]] begin[{] call[.writeInt, parameter[member[.EXTSIG]]] call[.writeInt, parameter[member[e.crc]]] if[binary_operation[binary_operation[member[e.csize], >=, member[.Z...
Keyword[private] Keyword[void] identifier[writeEXT] operator[SEP] identifier[ZipEntry] identifier[e] operator[SEP] Keyword[throws] identifier[IOException] { identifier[writeInt] operator[SEP] identifier[EXTSIG] operator[SEP] operator[SEP] identifier[writeInt] operator[SEP] identifier[e] operator[SEP] identifier[...
public static @Type int stringToEdgeType(String s) { s = s.toUpperCase(Locale.ENGLISH); if ("FALL_THROUGH".equals(s)) { return FALL_THROUGH_EDGE; } else if ("IFCMP".equals(s)) { return IFCMP_EDGE; } else if ("SWITCH".equals(s)) { return SWITCH_EDG...
class class_name[name] begin[{] method[stringToEdgeType, return_type[type[int]], modifier[public static], parameter[s]] begin[{] assign[member[.s], call[s.toUpperCase, parameter[member[Locale.ENGLISH]]]] if[literal["FALL_THROUGH"]] begin[{] return[member[.FALL_THROUG...
Keyword[public] Keyword[static] annotation[@] identifier[Type] Keyword[int] identifier[stringToEdgeType] operator[SEP] identifier[String] identifier[s] operator[SEP] { identifier[s] operator[=] identifier[s] operator[SEP] identifier[toUpperCase] operator[SEP] identifier[Locale] operator[SEP] identifier[ENGLISH] ...
public static <R> Stream<R> of(Iterable<R> iterable) { return new Stream<R>(iterable.iterator()); }
class class_name[name] begin[{] method[of, return_type[type[Stream]], modifier[public static], parameter[iterable]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=iterator, postfix_operators=[], prefix_operators=[], qualifier=iterable, selectors=[], type_arguments=None)],...
Keyword[public] Keyword[static] operator[<] identifier[R] operator[>] identifier[Stream] operator[<] identifier[R] operator[>] identifier[of] operator[SEP] identifier[Iterable] operator[<] identifier[R] operator[>] identifier[iterable] operator[SEP] { Keyword[return] Keyword[new] identifier[Stream] operator[<] i...
@Override public void triggeredJobComplete(final OperableTrigger trigger, final JobDetail jobDetail, final Trigger.CompletedExecutionInstruction triggerInstCode) { try { doWithLock(new LockCallbackWithoutResult() { @Override public Void doWithLock(JedisCommands je...
class class_name[name] begin[{] method[triggeredJobComplete, return_type[void], modifier[public], parameter[trigger, jobDetail, triggerInstCode]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annot...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[triggeredJobComplete] operator[SEP] Keyword[final] identifier[OperableTrigger] identifier[trigger] , Keyword[final] identifier[JobDetail] identifier[jobDetail] , Keyword[final] identifier[Trigger] operator[SEP] identifier[CompletedExecutionIn...
public void print(@NonNull PrintStream stream) { String horizontalBar = StringUtils.repeat("─", longestCell); String hline = middleCMBar(horizontalBar, longestRow); longestRow = Math.max(longestRow, header.size()); if (!StringUtils.isNullOrBlank(title)) { stream.println( ...
class class_name[name] begin[{] method[print, return_type[void], modifier[public], parameter[stream]] begin[{] local_variable[type[String], horizontalBar] local_variable[type[String], hline] assign[member[.longestRow], call[Math.max, parameter[member[.longestRow], call[header.si...
Keyword[public] Keyword[void] identifier[print] operator[SEP] annotation[@] identifier[NonNull] identifier[PrintStream] identifier[stream] operator[SEP] { identifier[String] identifier[horizontalBar] operator[=] identifier[StringUtils] operator[SEP] identifier[repeat] operator[SEP] literal[String] , identifier[...
public void marshall(AgeRange ageRange, ProtocolMarshaller protocolMarshaller) { if (ageRange == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(ageRange.getLow(), LOW_BINDING); protocolMa...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[ageRange, protocolMarshaller]] begin[{] if[binary_operation[member[.ageRange], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[],...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[AgeRange] identifier[ageRange] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[ageRange] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new...
private void writeEvaluatorInfoWebOutput( final HttpServletResponse response, final List<String> ids) throws IOException { for (final String id : ids) { final EvaluatorDescriptor evaluatorDescriptor = this.reefStateManager.getEvaluators().get(id); final PrintWriter writer = response.getWriter();...
class class_name[name] begin[{] method[writeEvaluatorInfoWebOutput, return_type[void], modifier[private], parameter[response, ids]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=This(...
Keyword[private] Keyword[void] identifier[writeEvaluatorInfoWebOutput] operator[SEP] Keyword[final] identifier[HttpServletResponse] identifier[response] , Keyword[final] identifier[List] operator[<] identifier[String] operator[>] identifier[ids] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[fo...
protected Features getFeaturesFromRequest(HttpServletRequest request, boolean versionError) throws IOException { final String sourceMethod = "getFeaturesFromRequest"; //$NON-NLS-1$ boolean isTraceLogging = log.isLoggable(Level.FINER); if (isTraceLogging) { log.entering(sourceClass, sourceMethod, new Object...
class class_name[name] begin[{] method[getFeaturesFromRequest, return_type[type[Features]], modifier[protected], parameter[request, versionError]] begin[{] local_variable[type[String], sourceMethod] local_variable[type[boolean], isTraceLogging] if[member[.isTraceLogging]] begin[...
Keyword[protected] identifier[Features] identifier[getFeaturesFromRequest] operator[SEP] identifier[HttpServletRequest] identifier[request] , Keyword[boolean] identifier[versionError] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[final] identifier[String] identifier[sourceMethod] operator[=] l...
private V getForNullKey() { for (Entry<K, V> e = table[0]; e != null; e = e.next) { if (e.key == null) return e.value; } return null; }
class class_name[name] begin[{] method[getForNullKey, return_type[type[V]], modifier[private], parameter[]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=key, postfix_operators=[], prefix_operators=[], qualifier=e...
Keyword[private] identifier[V] identifier[getForNullKey] operator[SEP] operator[SEP] { Keyword[for] operator[SEP] identifier[Entry] operator[<] identifier[K] , identifier[V] operator[>] identifier[e] operator[=] identifier[table] operator[SEP] Other[0] operator[SEP] operator[SEP] identifier[e] operator[!=] Othe...
public JBPMMessages.ProcessInstance writeProcessInstance(MarshallerWriteContext context, ProcessInstance processInstance) throws IOException { WorkflowProcessInstanceImpl workFlow = (WorkflowProcessInstanceImpl) processInstance; JBPMM...
class class_name[name] begin[{] method[writeProcessInstance, return_type[type[JBPMMessages]], modifier[public], parameter[context, processInstance]] begin[{] local_variable[type[WorkflowProcessInstanceImpl], workFlow] local_variable[type[JBPMMessages], _instance] if[binary_opera...
Keyword[public] identifier[JBPMMessages] operator[SEP] identifier[ProcessInstance] identifier[writeProcessInstance] operator[SEP] identifier[MarshallerWriteContext] identifier[context] , identifier[ProcessInstance] identifier[processInstance] operator[SEP] Keyword[throws] identifier[IOException] { identifier[Wo...
public Matrix4f rotateY(float ang, Matrix4f dest) { if ((properties & PROPERTY_IDENTITY) != 0) return dest.rotationY(ang); float cos, sin; sin = (float) Math.sin(ang); cos = (float) Math.cosFromSin(sin, ang); float rm00 = cos; float rm02 = -sin; float ...
class class_name[name] begin[{] method[rotateY, return_type[type[Matrix4f]], modifier[public], parameter[ang, dest]] begin[{] if[binary_operation[binary_operation[member[.properties], &, member[.PROPERTY_IDENTITY]], !=, literal[0]]] begin[{] return[call[dest.rotationY, parameter[member[.ang]]]]...
Keyword[public] identifier[Matrix4f] identifier[rotateY] operator[SEP] Keyword[float] identifier[ang] , identifier[Matrix4f] identifier[dest] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] identifier[properties] operator[&] identifier[PROPERTY_IDENTITY] operator[SEP] operator[!=] Other[0] operator[SEP]...
public static double[] intersection(double[] kb1, double[] kb2) { double[] interp = new double[2]; if (kb1[0] == 1) { interp[0] = kb1[1]; interp[1] = kb2[1] * interp[0] + kb2[2]; } else if (kb2[0] == 1) { interp[0] = kb2[1]; interp[1] = kb1[1] * interp[0] + kb1[2]; } else...
class class_name[name] begin[{] method[intersection, return_type[type[double]], modifier[public static], parameter[kb1, kb2]] begin[{] local_variable[type[double], interp] if[binary_operation[member[.kb1], ==, literal[1]]] begin[{] assign[member[.interp], member[...
Keyword[public] Keyword[static] Keyword[double] operator[SEP] operator[SEP] identifier[intersection] operator[SEP] Keyword[double] operator[SEP] operator[SEP] identifier[kb1] , Keyword[double] operator[SEP] operator[SEP] identifier[kb2] operator[SEP] { Keyword[double] operator[SEP] operator[SEP] identifier[inte...
private Context translateReturn(WyilFile.Stmt.Return stmt, Context context) { // Tuple<WyilFile.Expr> returns = stmt.getReturns(); // if (returns.size() > 0) { // There is at least one return value. Therefore, we need to check // any preconditions for those return expressions and, potentially, // ensur...
class class_name[name] begin[{] method[translateReturn, return_type[type[Context]], modifier[private], parameter[stmt, context]] begin[{] local_variable[type[Tuple], returns] if[binary_operation[call[returns.size, parameter[]], >, literal[0]]] begin[{] local_variable[type[Pa...
Keyword[private] identifier[Context] identifier[translateReturn] operator[SEP] identifier[WyilFile] operator[SEP] identifier[Stmt] operator[SEP] identifier[Return] identifier[stmt] , identifier[Context] identifier[context] operator[SEP] { identifier[Tuple] operator[<] identifier[WyilFile] operator[SEP] identifi...
public OvhOrder dedicated_server_serviceName_bandwidth_duration_GET(String serviceName, String duration, OvhBandwidthOrderEnum bandwidth, OvhBandwidthOrderTypeEnum type) throws IOException { String qPath = "/order/dedicated/server/{serviceName}/bandwidth/{duration}"; StringBuilder sb = path(qPath, serviceName, dura...
class class_name[name] begin[{] method[dedicated_server_serviceName_bandwidth_duration_GET, return_type[type[OvhOrder]], modifier[public], parameter[serviceName, duration, bandwidth, type]] begin[{] local_variable[type[String], qPath] local_variable[type[StringBuilder], sb] call...
Keyword[public] identifier[OvhOrder] identifier[dedicated_server_serviceName_bandwidth_duration_GET] operator[SEP] identifier[String] identifier[serviceName] , identifier[String] identifier[duration] , identifier[OvhBandwidthOrderEnum] identifier[bandwidth] , identifier[OvhBandwidthOrderTypeEnum] identifier[type] op...
public static String soundex(String str) { return new org.apache.commons.codec.language.Soundex().soundex(str); }
class class_name[name] begin[{] method[soundex, return_type[type[String]], modifier[public static], parameter[str]] begin[{] return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[Me...
Keyword[public] Keyword[static] identifier[String] identifier[soundex] operator[SEP] identifier[String] identifier[str] operator[SEP] { Keyword[return] Keyword[new] identifier[org] operator[SEP] identifier[apache] operator[SEP] identifier[commons] operator[SEP] identifier[codec] operator[SEP] identifier[language...
@Override public void removeByG_A_C(long groupId, boolean active, long commerceCountryId) { for (CommerceWarehouse commerceWarehouse : findByG_A_C(groupId, active, commerceCountryId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { remove(commerceWarehouse); } }
class class_name[name] begin[{] method[removeByG_A_C, return_type[void], modifier[public], parameter[groupId, active, commerceCountryId]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=commerceWarehouse...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[removeByG_A_C] operator[SEP] Keyword[long] identifier[groupId] , Keyword[boolean] identifier[active] , Keyword[long] identifier[commerceCountryId] operator[SEP] { Keyword[for] operator[SEP] identifier[CommerceWarehouse] identifier[comm...
@Bean public DaoConfig daoConfig() { DaoConfig retVal = new DaoConfig(); retVal.setAllowMultipleDelete(true); retVal.addSupportedSubscriptionType(Subscription.SubscriptionChannelType.WEBSOCKET); retVal.addSupportedSubscriptionType(Subscription.SubscriptionChannelType.RESTHOOK); retVal.addSupportedSubscriptio...
class class_name[name] begin[{] method[daoConfig, return_type[type[DaoConfig]], modifier[public], parameter[]] begin[{] local_variable[type[DaoConfig], retVal] call[retVal.setAllowMultipleDelete, parameter[literal[true]]] call[retVal.addSupportedSubscriptionType, paramet...
annotation[@] identifier[Bean] Keyword[public] identifier[DaoConfig] identifier[daoConfig] operator[SEP] operator[SEP] { identifier[DaoConfig] identifier[retVal] operator[=] Keyword[new] identifier[DaoConfig] operator[SEP] operator[SEP] operator[SEP] identifier[retVal] operator[SEP] identifier[setAllowMultipleDe...
@NotNull public static File backup(@NotNull final Backupable source, @NotNull final File backupRoot, @Nullable final String backupNamePrefix, final boolean zip) throws Exception { if (!backupRoot.exists() && !backupRoot.mkdirs()) { throw new IOException("Failed to c...
class class_name[name] begin[{] method[backup, return_type[type[File]], modifier[public static], parameter[source, backupRoot, backupNamePrefix, zip]] begin[{] if[binary_operation[call[backupRoot.exists, parameter[]], &&, call[backupRoot.mkdirs, parameter[]]]] begin[{] ThrowStatemen...
annotation[@] identifier[NotNull] Keyword[public] Keyword[static] identifier[File] identifier[backup] operator[SEP] annotation[@] identifier[NotNull] Keyword[final] identifier[Backupable] identifier[source] , annotation[@] identifier[NotNull] Keyword[final] identifier[File] identifier[backupRoot] , annotation[@] iden...
public static void decode(final Map<String, String> map, final String data) { //String[] keyValues = StringUtil.split(data, '&'); StringUtil.split(data, '&', keyValue -> { final int indexOfSeperator = keyValue.indexOf('='); if (indexOfSeperator > -1) { ...
class class_name[name] begin[{] method[decode, return_type[void], modifier[public static], parameter[map, data]] begin[{] call[StringUtil.split, parameter[member[.data], literal['&'], LambdaExpression(body=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], ...
Keyword[public] Keyword[static] Keyword[void] identifier[decode] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[map] , Keyword[final] identifier[String] identifier[data] operator[SEP] { identifier[StringUtil] operator[SEP] identifier[spli...
@SuppressWarnings({ "rawtypes", "unchecked" }) @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static <T> Observable<T> switchOnNext(ObservableSource<? extends ObservableSource<? extends T>> sources, int bufferSize) { ObjectHelper.requireNonNull(sources, "sources is null"); ...
class class_name[name] begin[{] method[switchOnNext, return_type[type[Observable]], modifier[public static], parameter[sources, bufferSize]] begin[{] call[ObjectHelper.requireNonNull, parameter[member[.sources], literal["sources is null"]]] call[ObjectHelper.verifyPositive, para...
annotation[@] identifier[SuppressWarnings] operator[SEP] { literal[String] , literal[String] } operator[SEP] annotation[@] identifier[CheckReturnValue] annotation[@] identifier[SchedulerSupport] operator[SEP] identifier[SchedulerSupport] operator[SEP] identifier[NONE] operator[SEP] Keyword[public] Keyword[st...
public static PolicyConfigurationFactory getPolicyConfigurationFactory() throws ClassNotFoundException, PolicyContextException { // Validate the caller permission SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkPermission(new SecurityPermission("setPolicy...
class class_name[name] begin[{] method[getPolicyConfigurationFactory, return_type[type[PolicyConfigurationFactory]], modifier[public static], parameter[]] begin[{] local_variable[type[SecurityManager], sm] if[binary_operation[member[.sm], !=, literal[null]]] begin[{] call[sm...
Keyword[public] Keyword[static] identifier[PolicyConfigurationFactory] identifier[getPolicyConfigurationFactory] operator[SEP] operator[SEP] Keyword[throws] identifier[ClassNotFoundException] , identifier[PolicyContextException] { identifier[SecurityManager] identifier[sm] operator[=] identifier[System] operato...
public byte[] build(BuilderMode builderMode) { try { final Mac digest = Mac.getInstance(Validator.notNull(algorithm, "algorithm not null")); SecretKeySpec secretKey = new SecretKeySpec(apiSecret, algorithm); digest.init(secretKey); switch (builderMode) { ...
class class_name[name] begin[{] method[build, return_type[type[byte]], modifier[public], parameter[builderMode]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[Membe...
Keyword[public] Keyword[byte] operator[SEP] operator[SEP] identifier[build] operator[SEP] identifier[BuilderMode] identifier[builderMode] operator[SEP] { Keyword[try] { Keyword[final] identifier[Mac] identifier[digest] operator[=] identifier[Mac] operator[SEP] identifier[getInstance] operator[SEP] ide...
private int bytesPerPixel() { long fileSize = data.getFile().length(); long pixelMax = getXPixels() * (long) getYPixels(); // ceil result, because it is a maximum that we use to divide return (int) Math.ceil(fileSize / (double) pixelMax); }
class class_name[name] begin[{] method[bytesPerPixel, return_type[type[int]], modifier[private], parameter[]] begin[{] local_variable[type[long], fileSize] local_variable[type[long], pixelMax] return[Cast(expression=MethodInvocation(arguments=[BinaryOperation(operandl=MemberReference(me...
Keyword[private] Keyword[int] identifier[bytesPerPixel] operator[SEP] operator[SEP] { Keyword[long] identifier[fileSize] operator[=] identifier[data] operator[SEP] identifier[getFile] operator[SEP] operator[SEP] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] Keyword[long] identifier[p...
public void remove() { SyncState oldState = this.syncState; if (this.syncState == SyncState.NEW || this.syncState == SyncState.NEW_REMOVED) this.syncState = SyncState.NEW_REMOVED; else this.syncState = SyncState.REMOVED; if (oldState != this.syncState) fireChanged(oldState, this.syncState); }
class class_name[name] begin[{] method[remove, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[SyncState], oldState] if[binary_operation[binary_operation[THIS[member[None.syncState]], ==, member[SyncState.NEW]], ||, binary_operation[THIS[member[None.syncSt...
Keyword[public] Keyword[void] identifier[remove] operator[SEP] operator[SEP] { identifier[SyncState] identifier[oldState] operator[=] Keyword[this] operator[SEP] identifier[syncState] operator[SEP] Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[syncState] operator[==] identifier[SyncState] oper...
public int getIndexWithinSections(int listPosition) { boolean isSection = false; int numPrecedingSections = 0; for (Integer sectionPosition : mSections.keySet()) { if (listPosition > sectionPosition) numPrecedingSections++; else if (listPosition == section...
class class_name[name] begin[{] method[getIndexWithinSections, return_type[type[int]], modifier[public], parameter[listPosition]] begin[{] local_variable[type[boolean], isSection] local_variable[type[int], numPrecedingSections] ForStatement(body=BlockStatement(label=None, statements=[If...
Keyword[public] Keyword[int] identifier[getIndexWithinSections] operator[SEP] Keyword[int] identifier[listPosition] operator[SEP] { Keyword[boolean] identifier[isSection] operator[=] literal[boolean] operator[SEP] Keyword[int] identifier[numPrecedingSections] operator[=] Other[0] operator[SEP] Keyword[for] opera...
public static boolean equalsIgnoreCaseOrValueIsWildcard(final String value, final String toCheck) { if (value == null && toCheck == null) { return true; } if (value != null && StringUtil.WILDCARD.equals(value)) { return true; } if (value != null && ...
class class_name[name] begin[{] method[equalsIgnoreCaseOrValueIsWildcard, return_type[type[boolean]], modifier[public static], parameter[value, toCheck]] begin[{] if[binary_operation[binary_operation[member[.value], ==, literal[null]], &&, binary_operation[member[.toCheck], ==, literal[null]]]]...
Keyword[public] Keyword[static] Keyword[boolean] identifier[equalsIgnoreCaseOrValueIsWildcard] operator[SEP] Keyword[final] identifier[String] identifier[value] , Keyword[final] identifier[String] identifier[toCheck] operator[SEP] { Keyword[if] operator[SEP] identifier[value] operator[==] Other[null] operator[&...
@Override public SecurityContext loadContext(PortletRequestResponseHolder requestResponseHolder) { final PortletRequest request = requestResponseHolder.getRequest(); final PortletSession portletSession = request.getPortletSession(false); SecurityContext context = readSecurityContextFromSess...
class class_name[name] begin[{] method[loadContext, return_type[type[SecurityContext]], modifier[public], parameter[requestResponseHolder]] begin[{] local_variable[type[PortletRequest], request] local_variable[type[PortletSession], portletSession] local_variable[type[SecurityContext], c...
annotation[@] identifier[Override] Keyword[public] identifier[SecurityContext] identifier[loadContext] operator[SEP] identifier[PortletRequestResponseHolder] identifier[requestResponseHolder] operator[SEP] { Keyword[final] identifier[PortletRequest] identifier[request] operator[=] identifier[requestResponseHolde...
public Tag get(Class handlerClass) throws JspException { PerThreadData ptd=(PerThreadData)perThread.get(); if( ptd!=null && ptd.current >=0 ) { return ptd.handlers[ptd.current--]; } else { try { return (Tag) handlerClass.newInstance(); } catch (Exception e) { throw new ...
class class_name[name] begin[{] method[get, return_type[type[Tag]], modifier[public], parameter[handlerClass]] begin[{] local_variable[type[PerThreadData], ptd] if[binary_operation[binary_operation[member[.ptd], !=, literal[null]], &&, binary_operation[member[ptd.current], >=, literal[0...
Keyword[public] identifier[Tag] identifier[get] operator[SEP] identifier[Class] identifier[handlerClass] operator[SEP] Keyword[throws] identifier[JspException] { identifier[PerThreadData] identifier[ptd] operator[=] operator[SEP] identifier[PerThreadData] operator[SEP] identifier[perThread] operator[SEP] identif...
public ListPresetsResult withPresets(Preset... presets) { if (this.presets == null) { setPresets(new java.util.ArrayList<Preset>(presets.length)); } for (Preset ele : presets) { this.presets.add(ele); } return this; }
class class_name[name] begin[{] method[withPresets, return_type[type[ListPresetsResult]], modifier[public], parameter[presets]] begin[{] if[binary_operation[THIS[member[None.presets]], ==, literal[null]]] begin[{] call[.setPresets, parameter[ClassCreator(arguments=[Membe...
Keyword[public] identifier[ListPresetsResult] identifier[withPresets] operator[SEP] identifier[Preset] operator[...] identifier[presets] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[presets] operator[==] Other[null] operator[SEP] { identifier[setPresets] operator[SE...
public void writeKey(Destination dst, int level, byte[] key) throws KNXTimeoutException, KNXDisconnectException, KNXRemoteException, KNXLinkClosedException { // level 255 is free access if (level < 0 || level > 254 || key.length != 4) throw new KNXIllegalArgumentException( "level out of range or ...
class class_name[name] begin[{] method[writeKey, return_type[void], modifier[public], parameter[dst, level, key]] begin[{] if[binary_operation[binary_operation[binary_operation[member[.level], <, literal[0]], ||, binary_operation[member[.level], >, literal[254]]], ||, binary_operation[member[ke...
Keyword[public] Keyword[void] identifier[writeKey] operator[SEP] identifier[Destination] identifier[dst] , Keyword[int] identifier[level] , Keyword[byte] operator[SEP] operator[SEP] identifier[key] operator[SEP] Keyword[throws] identifier[KNXTimeoutException] , identifier[KNXDisconnectException] , identifier[KNXRem...
@Override public String toCpe23FS() { return String.format("cpe:2.3:%s:%s:%s:%s:%s:%s:%s:%s:%s:%s:%s", Convert.wellFormedToFS(part), Convert.wellFormedToFS(vendor), Convert.wellFormedToFS(product), Convert.wellFormedToFS(version), ...
class class_name[name] begin[{] method[toCpe23FS, return_type[type[String]], modifier[public], parameter[]] begin[{] return[call[String.format, parameter[literal["cpe:2.3:%s:%s:%s:%s:%s:%s:%s:%s:%s:%s:%s"], call[Convert.wellFormedToFS, parameter[member[.part]]], call[Convert.wellFormedToFS, parameter[m...
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[toCpe23FS] operator[SEP] operator[SEP] { Keyword[return] identifier[String] operator[SEP] identifier[format] operator[SEP] literal[String] , identifier[Convert] operator[SEP] identifier[wellFormedToFS] operator[SEP] identifier[part...
private E fetchObject() { try { String previousSkip = "&skip=" + (skipCounter - 1); String currentSkip = "&skip=" + skipCounter; int indexOf = q.indexOf(previousSkip); if (indexOf > 0) { q.replace(indexOf, indexOf + previous...
class class_name[name] begin[{] method[fetchObject, return_type[type[E]], modifier[private], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operat...
Keyword[private] identifier[E] identifier[fetchObject] operator[SEP] operator[SEP] { Keyword[try] { identifier[String] identifier[previousSkip] operator[=] literal[String] operator[+] operator[SEP] identifier[skipCounter] operator[-] Other[1] operator[SEP] operator[SEP] identifier[String] identifier[c...
public Map<RaftGroupId, ICompletableFuture<Object>> shutdown() { lock.writeLock().lock(); try { Map<RaftGroupId, ICompletableFuture<Object>> futures = new HashMap<RaftGroupId, ICompletableFuture<Object>>(); for (Entry<RaftGroupId, SessionState> e : sessions.entrySet()) { ...
class class_name[name] begin[{] method[shutdown, return_type[type[Map]], modifier[public], parameter[]] begin[{] call[lock.writeLock, parameter[]] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(argumen...
Keyword[public] identifier[Map] operator[<] identifier[RaftGroupId] , identifier[ICompletableFuture] operator[<] identifier[Object] operator[>] operator[>] identifier[shutdown] operator[SEP] operator[SEP] { identifier[lock] operator[SEP] identifier[writeLock] operator[SEP] operator[SEP] operator[SEP] identifier...
private Set<MethodIdentifier> findUnhandledProjectMethodIdentifiers(final List<Instruction> instructions, final Set<ProjectMethod> projectMethods) { // find own methods return instructions.stream().filter(i -> i.getType() == Instruction.InstructionType.INVOKE || i.getType() == Instruction.InstructionTyp...
class class_name[name] begin[{] method[findUnhandledProjectMethodIdentifiers, return_type[type[Set]], modifier[private], parameter[instructions, projectMethods]] begin[{] return[call[instructions.stream, parameter[]]] end[}] END[}]
Keyword[private] identifier[Set] operator[<] identifier[MethodIdentifier] operator[>] identifier[findUnhandledProjectMethodIdentifiers] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[Instruction] operator[>] identifier[instructions] , Keyword[final] identifier[Set] operator[<] identifier[ProjectM...
private void dumpCookies(Map<String, Cookie> cookiesMap, String maskKey) { cookiesMap.forEach((key, cookie) -> { if(!config.getRequestFilteredCookies().contains(cookie.getName())) { List<Map<String, String>> cookieInfoList = new ArrayList<>(); //mask cookieValue ...
class class_name[name] begin[{] method[dumpCookies, return_type[void], modifier[private], parameter[cookiesMap, maskKey]] begin[{] call[cookiesMap.forEach, parameter[LambdaExpression(body=[IfStatement(condition=MethodInvocation(arguments=[], member=getRequestFilteredCookies, postfix_operators=[...
Keyword[private] Keyword[void] identifier[dumpCookies] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Cookie] operator[>] identifier[cookiesMap] , identifier[String] identifier[maskKey] operator[SEP] { identifier[cookiesMap] operator[SEP] identifier[forEach] operator[SEP] operator[SE...
public static <B extends ConnectionConfiguration.Builder<B,?>> B setSSLv3AndTLSOnly(B builder) { builder.setEnabledSSLProtocols(new String[] { PROTO_TLSV1_2, PROTO_TLSV1_1, PROTO_TLSV1, PROTO_SSL3 }); return builder; }
class class_name[name] begin[{] method[setSSLv3AndTLSOnly, return_type[type[B]], modifier[public static], parameter[builder]] begin[{] call[builder.setEnabledSSLProtocols, parameter[ArrayCreator(dimensions=[None], initializer=ArrayInitializer(initializers=[MemberReference(member=PROTO_TLSV1_2, ...
Keyword[public] Keyword[static] operator[<] identifier[B] Keyword[extends] identifier[ConnectionConfiguration] operator[SEP] identifier[Builder] operator[<] identifier[B] , operator[?] operator[>] operator[>] identifier[B] identifier[setSSLv3AndTLSOnly] operator[SEP] identifier[B] identifier[builder] operator[SEP] { ...
@Override public double rand() { double out, x, y, r, z; if (boxMuller != null) { out = boxMuller.doubleValue(); boxMuller = null; } else { do { x = Math.random(-1, 1); y = Math.random(-1, 1); r = x * x + y...
class class_name[name] begin[{] method[rand, return_type[type[double]], modifier[public], parameter[]] begin[{] local_variable[type[double], out] if[binary_operation[member[.boxMuller], !=, literal[null]]] begin[{] assign[member[.out], call[boxMuller.doubleValue,...
annotation[@] identifier[Override] Keyword[public] Keyword[double] identifier[rand] operator[SEP] operator[SEP] { Keyword[double] identifier[out] , identifier[x] , identifier[y] , identifier[r] , identifier[z] operator[SEP] Keyword[if] operator[SEP] identifier[boxMuller] operator[!=] Other[null] operator[SEP...
private void maybeEvictFilesInCacheDir() throws IOException { synchronized (mLock) { boolean calculatedRightNow = maybeUpdateFileCacheSize(); // Update the size limit (mCacheSizeLimit) updateFileCacheSizeLimit(); long cacheSize = mCacheStats.getSize(); // If we are going to evict for...
class class_name[name] begin[{] method[maybeEvictFilesInCacheDir, return_type[void], modifier[private], parameter[]] begin[{] SYNCHRONIZED[member[.mLock]] BEGIN[{] local_variable[type[boolean], calculatedRightNow] call[.updateFileCacheSizeLimit, parameter[]] ...
Keyword[private] Keyword[void] identifier[maybeEvictFilesInCacheDir] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[synchronized] operator[SEP] identifier[mLock] operator[SEP] { Keyword[boolean] identifier[calculatedRightNow] operator[=] identifier[maybeUpdateFileCacheSi...
@Override public boolean contains(final String path) throws IllegalArgumentException { Validate.notNull(path, "Path must be specified"); return this.contains(ArchivePaths.create(path)); }
class class_name[name] begin[{] method[contains, return_type[type[boolean]], modifier[public], parameter[path]] begin[{] call[Validate.notNull, parameter[member[.path], literal["Path must be specified"]]] return[THIS[call[None.contains, parameter[call[ArchivePaths.create, parameter[memb...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[contains] operator[SEP] Keyword[final] identifier[String] identifier[path] operator[SEP] Keyword[throws] identifier[IllegalArgumentException] { identifier[Validate] operator[SEP] identifier[notNull] operator[SEP] identifier[path] , l...
@Override public MemoryWorkspace getAndActivateWorkspace(@NonNull WorkspaceConfiguration configuration, @NonNull String id) { return getWorkspaceForCurrentThread(configuration, id).notifyScopeEntered(); }
class class_name[name] begin[{] method[getAndActivateWorkspace, return_type[type[MemoryWorkspace]], modifier[public], parameter[configuration, id]] begin[{] return[call[.getWorkspaceForCurrentThread, parameter[member[.configuration], member[.id]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[MemoryWorkspace] identifier[getAndActivateWorkspace] operator[SEP] annotation[@] identifier[NonNull] identifier[WorkspaceConfiguration] identifier[configuration] , annotation[@] identifier[NonNull] identifier[String] identifier[id] operator[SEP] { Ke...
public List<String> getValueList() { if (tokensList == null) { return null; } if (tokensList.isEmpty()) { return new ArrayList<>(); } else { List<String> list = new ArrayList<>(tokensList.size()); for (Token[] tokens : tokensList) { ...
class class_name[name] begin[{] method[getValueList, return_type[type[List]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.tokensList], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] if[call[tokensL...
Keyword[public] identifier[List] operator[<] identifier[String] operator[>] identifier[getValueList] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[tokensList] operator[==] Other[null] operator[SEP] { Keyword[return] Other[null] operator[SEP] } Keyword[if] operator[SE...
public static double[] normalize(final double[] values) { final double sum = 1.0/DoubleAdder.sum(values); for (int i = values.length; --i >= 0;) { values[i] = values[i]*sum; } return values; }
class class_name[name] begin[{] method[normalize, return_type[type[double]], modifier[public static], parameter[values]] begin[{] local_variable[type[double], sum] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(memb...
Keyword[public] Keyword[static] Keyword[double] operator[SEP] operator[SEP] identifier[normalize] operator[SEP] Keyword[final] Keyword[double] operator[SEP] operator[SEP] identifier[values] operator[SEP] { Keyword[final] Keyword[double] identifier[sum] operator[=] literal[Float] operator[/] identifier[DoubleAdde...
public IndexOutOfBoundsException asJDKException() { IndexOutOfBoundsException e = new IndexOutOfBoundsException(getMessage()) { @Override public synchronized Throwable fillInStackTrace() { return this; } }; e.setStackTrace(getStackTrace()); ...
class class_name[name] begin[{] method[asJDKException, return_type[type[IndexOutOfBoundsException]], modifier[public], parameter[]] begin[{] local_variable[type[IndexOutOfBoundsException], e] call[e.setStackTrace, parameter[call[.getStackTrace, parameter[]]]] return[member[.e]] ...
Keyword[public] identifier[IndexOutOfBoundsException] identifier[asJDKException] operator[SEP] operator[SEP] { identifier[IndexOutOfBoundsException] identifier[e] operator[=] Keyword[new] identifier[IndexOutOfBoundsException] operator[SEP] identifier[getMessage] operator[SEP] operator[SEP] operator[SEP] { ...
public static double copySign(double magnitude, double sign) { return Double.longBitsToDouble((Double.doubleToRawLongBits(sign) & (DoubleConsts.SIGN_BIT_MASK)) | (Double.doubleToRawLongBits(magnitude) & ...
class class_name[name] begin[{] method[copySign, return_type[type[double]], modifier[public static], parameter[magnitude, sign]] begin[{] return[call[Double.longBitsToDouble, parameter[binary_operation[binary_operation[call[Double.doubleToRawLongBits, parameter[member[.sign]]], &, member[DoubleConsts.S...
Keyword[public] Keyword[static] Keyword[double] identifier[copySign] operator[SEP] Keyword[double] identifier[magnitude] , Keyword[double] identifier[sign] operator[SEP] { Keyword[return] identifier[Double] operator[SEP] identifier[longBitsToDouble] operator[SEP] operator[SEP] identifier[Double] operator[SEP] i...
@Override public boolean resetLimit(String key) { IMap<Object, Object> map = hz.getMap(key); if (map == null || map.isEmpty()) { return false; } map.clear(); map.destroy(); return true; }
class class_name[name] begin[{] method[resetLimit, return_type[type[boolean]], modifier[public], parameter[key]] begin[{] local_variable[type[IMap], map] if[binary_operation[binary_operation[member[.map], ==, literal[null]], ||, call[map.isEmpty, parameter[]]]] begin[{] retu...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[resetLimit] operator[SEP] identifier[String] identifier[key] operator[SEP] { identifier[IMap] operator[<] identifier[Object] , identifier[Object] operator[>] identifier[map] operator[=] identifier[hz] operator[SEP] identifier[getMap]...
@Pure <CT extends RoadConnection> CT getEndPoint(Class<CT> connectionClass) { final StandardRoadConnection connection = this.lastConnection; if (connection == null) { return null; } if (connectionClass.isAssignableFrom(StandardRoadConnection.class)) { return connectionClass.cast(connection); } if (co...
class class_name[name] begin[{] method[getEndPoint, return_type[type[CT]], modifier[default], parameter[connectionClass]] begin[{] local_variable[type[StandardRoadConnection], connection] if[binary_operation[member[.connection], ==, literal[null]]] begin[{] return[literal[nu...
annotation[@] identifier[Pure] operator[<] identifier[CT] Keyword[extends] identifier[RoadConnection] operator[>] identifier[CT] identifier[getEndPoint] operator[SEP] identifier[Class] operator[<] identifier[CT] operator[>] identifier[connectionClass] operator[SEP] { Keyword[final] identifier[StandardRoadConnect...
@Override public InitiateDeviceClaimResult initiateDeviceClaim(InitiateDeviceClaimRequest request) { request = beforeClientExecution(request); return executeInitiateDeviceClaim(request); }
class class_name[name] begin[{] method[initiateDeviceClaim, return_type[type[InitiateDeviceClaimResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeInitiateDeviceClaim, parameter...
annotation[@] identifier[Override] Keyword[public] identifier[InitiateDeviceClaimResult] identifier[initiateDeviceClaim] operator[SEP] identifier[InitiateDeviceClaimRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] ope...
protected ActionMapping createActionMapping(ComponentDef actionDef) { final String actionName = buildActionName(actionDef); verifyPackageConvention(actionDef, actionName); final ActionMapping mapping = newActionMapping(actionDef, actionName, comeOnAdjustmentProvider()); setupMethod(mappi...
class class_name[name] begin[{] method[createActionMapping, return_type[type[ActionMapping]], modifier[protected], parameter[actionDef]] begin[{] local_variable[type[String], actionName] call[.verifyPackageConvention, parameter[member[.actionDef], member[.actionName]]] local_var...
Keyword[protected] identifier[ActionMapping] identifier[createActionMapping] operator[SEP] identifier[ComponentDef] identifier[actionDef] operator[SEP] { Keyword[final] identifier[String] identifier[actionName] operator[=] identifier[buildActionName] operator[SEP] identifier[actionDef] operator[SEP] operator[SEP...
final void putAttributes( final SymbolTable symbolTable, final byte[] code, final int codeLength, final int maxStack, final int maxLocals, final ByteVector output) { final ClassWriter classWriter = symbolTable.classWriter; Attribute attribute = this; while (attribute != n...
class class_name[name] begin[{] method[putAttributes, return_type[void], modifier[final], parameter[symbolTable, code, codeLength, maxStack, maxLocals, output]] begin[{] local_variable[type[ClassWriter], classWriter] local_variable[type[Attribute], attribute] while[binary_operat...
Keyword[final] Keyword[void] identifier[putAttributes] operator[SEP] Keyword[final] identifier[SymbolTable] identifier[symbolTable] , Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[code] , Keyword[final] Keyword[int] identifier[codeLength] , Keyword[final] Keyword[int] identifier[maxStack] , Ke...
public final void mLESSER() throws RecognitionException { try { int _type = LESSER; int _channel = DEFAULT_TOKEN_CHANNEL; // src/riemann/Query.g:12:8: ( '<' ) // src/riemann/Query.g:12:10: '<' { match('<'); } stat...
class class_name[name] begin[{] method[mLESSER, return_type[void], modifier[final public], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=LESSER, postfix_operators=[], prefix_operators=...
Keyword[public] Keyword[final] Keyword[void] identifier[mLESSER] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { Keyword[try] { Keyword[int] identifier[_type] operator[=] identifier[LESSER] operator[SEP] Keyword[int] identifier[_channel] operator[=] identifier[DEFAULT_TO...
public void set(T value, int m, int n) { if ( isComplex() ) { throw new IllegalStateException("Cannot use this method for Complex matrices"); } setReal(value, m, n); }
class class_name[name] begin[{] method[set, return_type[void], modifier[public], parameter[value, m, n]] begin[{] if[call[.isComplex, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors...
Keyword[public] Keyword[void] identifier[set] operator[SEP] identifier[T] identifier[value] , Keyword[int] identifier[m] , Keyword[int] identifier[n] operator[SEP] { Keyword[if] operator[SEP] identifier[isComplex] operator[SEP] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] identifier[Ill...
protected void readDirTabs(FontFileReader in) throws IOException { in.skip(4); // TTF_FIXED_SIZE int ntabs = in.readTTFUShort(); in.skip(6); // 3xTTF_USHORT_SIZE dirTabs = new java.util.HashMap(); TTFDirTabEntry[] pd = new TTFDirTabEntry[ntabs]; log.debug("Reading ...
class class_name[name] begin[{] method[readDirTabs, return_type[void], modifier[protected], parameter[in]] begin[{] call[in.skip, parameter[literal[4]]] local_variable[type[int], ntabs] call[in.skip, parameter[literal[6]]] assign[member[.dirTabs], ClassCr...
Keyword[protected] Keyword[void] identifier[readDirTabs] operator[SEP] identifier[FontFileReader] identifier[in] operator[SEP] Keyword[throws] identifier[IOException] { identifier[in] operator[SEP] identifier[skip] operator[SEP] Other[4] operator[SEP] operator[SEP] Keyword[int] identifier[ntabs] operator[=] iden...
public void engage(final String vendor, final String interaction, final String interactionId, final String eventName, final String data, final Map<String, Object> customData, final ExtendedData... extendedData) { dispatchConversationTask(new ConversationDispatchTask() { @Override protected boolean execute(Conve...
class class_name[name] begin[{] method[engage, return_type[void], modifier[public], parameter[vendor, interaction, interactionId, eventName, data, customData, extendedData]] begin[{] call[.dispatchConversationTask, parameter[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annota...
Keyword[public] Keyword[void] identifier[engage] operator[SEP] Keyword[final] identifier[String] identifier[vendor] , Keyword[final] identifier[String] identifier[interaction] , Keyword[final] identifier[String] identifier[interactionId] , Keyword[final] identifier[String] identifier[eventName] , Keyword[final] ide...
public String toTempFile() throws IOException { File file = File.createTempFile(UUID.randomUUID().toString(), ".binary.tmp"); file.deleteOnExit(); toFile(file); return file.getAbsolutePath(); }
class class_name[name] begin[{] method[toTempFile, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[File], file] call[file.deleteOnExit, parameter[]] call[.toFile, parameter[member[.file]]] return[call[file.getAbsolutePath, p...
Keyword[public] identifier[String] identifier[toTempFile] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[File] identifier[file] operator[=] identifier[File] operator[SEP] identifier[createTempFile] operator[SEP] identifier[UUID] operator[SEP] identifier[randomUUID] operator[SEP]...
@Nullable public static Class <?> getImplementationClassOfLocalName (@Nullable final String sLocalName) { final EUBLTRDocumentType eDocType = getDocumentTypeOfLocalName (sLocalName); return eDocType == null ? null : eDocType.getImplementationClass (); }
class class_name[name] begin[{] method[getImplementationClassOfLocalName, return_type[type[Class]], modifier[public static], parameter[sLocalName]] begin[{] local_variable[type[EUBLTRDocumentType], eDocType] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=eDoc...
annotation[@] identifier[Nullable] Keyword[public] Keyword[static] identifier[Class] operator[<] operator[?] operator[>] identifier[getImplementationClassOfLocalName] operator[SEP] annotation[@] identifier[Nullable] Keyword[final] identifier[String] identifier[sLocalName] operator[SEP] { Keyword[final] identifie...
public ReadDocumentResponse readDocument(ReadDocumentRequest request) { checkNotNull(request, "request should not be null."); checkNotNull(request.getDocumentId(), "documentId should not be null."); InternalRequest internalRequest = this.createRequest( HttpMethodName.GET, request...
class class_name[name] begin[{] method[readDocument, return_type[type[ReadDocumentResponse]], modifier[public], parameter[request]] begin[{] call[.checkNotNull, parameter[member[.request], literal["request should not be null."]]] call[.checkNotNull, parameter[call[request.getDoc...
Keyword[public] identifier[ReadDocumentResponse] identifier[readDocument] operator[SEP] identifier[ReadDocumentRequest] identifier[request] operator[SEP] { identifier[checkNotNull] operator[SEP] identifier[request] , literal[String] operator[SEP] operator[SEP] identifier[checkNotNull] operator[SEP] identifier[r...
public static Constraint moreControllerThanParticipant() { return new ConstraintAdapter(1) { PathAccessor partConv = new PathAccessor("PhysicalEntity/participantOf:Conversion"); PathAccessor partCompAss = new PathAccessor("PhysicalEntity/participantOf:ComplexAssembly"); PathAccessor effects = new PathAcce...
class class_name[name] begin[{] method[moreControllerThanParticipant, return_type[type[Constraint]], modifier[public static], parameter[]] begin[{] return[ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], body=[FieldDeclaration(annotatio...
Keyword[public] Keyword[static] identifier[Constraint] identifier[moreControllerThanParticipant] operator[SEP] operator[SEP] { Keyword[return] Keyword[new] identifier[ConstraintAdapter] operator[SEP] Other[1] operator[SEP] { identifier[PathAccessor] identifier[partConv] operator[=] Keyword[new] identi...
public ProcessorConfiguration createConfiguration(final CCTask task, final LinkType linkType, final ProcessorDef baseDef, final TargetDef targetPlatform, final VersionInfo versionInfo) { if (isReference()) { return ((ProcessorDef) getCheckedRef(ProcessorDef.class, "ProcessorDef")).createConfiguration(ta...
class class_name[name] begin[{] method[createConfiguration, return_type[type[ProcessorConfiguration]], modifier[public], parameter[task, linkType, baseDef, targetPlatform, versionInfo]] begin[{] if[call[.isReference, parameter[]]] begin[{] return[Cast(expression=MethodInvocation(arg...
Keyword[public] identifier[ProcessorConfiguration] identifier[createConfiguration] operator[SEP] Keyword[final] identifier[CCTask] identifier[task] , Keyword[final] identifier[LinkType] identifier[linkType] , Keyword[final] identifier[ProcessorDef] identifier[baseDef] , Keyword[final] identifier[TargetDef] identifie...
protected static int createHardLinkMult(File parentDir, String[] fileBaseNames, File linkDir, int maxLength) throws IOException { if (parentDir == null) { throw new IOException( "invalid arguments to createHardLinkMult: parent directory is null"); } if (linkDir == null) { thr...
class class_name[name] begin[{] method[createHardLinkMult, return_type[type[int]], modifier[static protected], parameter[parentDir, fileBaseNames, linkDir, maxLength]] begin[{] if[binary_operation[member[.parentDir], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreato...
Keyword[protected] Keyword[static] Keyword[int] identifier[createHardLinkMult] operator[SEP] identifier[File] identifier[parentDir] , identifier[String] operator[SEP] operator[SEP] identifier[fileBaseNames] , identifier[File] identifier[linkDir] , Keyword[int] identifier[maxLength] operator[SEP] Keyword[throws] iden...
public final ValueWithPos<String> formatUrl(final ValueWithPos<String> pphoneNumber) { return valueWithPosDefaults(this.formatUrlWithPos(this.parsePhoneNumber(pphoneNumber)), pphoneNumber); }
class class_name[name] begin[{] method[formatUrl, return_type[type[ValueWithPos]], modifier[final public], parameter[pphoneNumber]] begin[{] return[call[.valueWithPosDefaults, parameter[THIS[call[None.formatUrlWithPos, parameter[THIS[call[None.parsePhoneNumber, parameter[member[.pphoneNumber]]]]]]], me...
Keyword[public] Keyword[final] identifier[ValueWithPos] operator[<] identifier[String] operator[>] identifier[formatUrl] operator[SEP] Keyword[final] identifier[ValueWithPos] operator[<] identifier[String] operator[>] identifier[pphoneNumber] operator[SEP] { Keyword[return] identifier[valueWithPosDefaults] opera...
public static final void commit(final Connection connection) { if (connection == null) { return; } try { connection.commit(); } catch (Exception e) { if (LOG.isWarnEnabled()) LOG.warn("Error committing Connection: " + connection, e); } }
class class_name[name] begin[{] method[commit, return_type[void], modifier[final public static], parameter[connection]] begin[{] if[binary_operation[member[.connection], ==, literal[null]]] begin[{] return[None] else begin[{] None end[}] TryStatement(block=[S...
Keyword[public] Keyword[static] Keyword[final] Keyword[void] identifier[commit] operator[SEP] Keyword[final] identifier[Connection] identifier[connection] operator[SEP] { Keyword[if] operator[SEP] identifier[connection] operator[==] Other[null] operator[SEP] { Keyword[return] operator[SEP] } ...
private static BigDecimal divideAndRound(long ldividend, long ldivisor, int scale, int roundingMode, int preferredScale) { int qsign; // quotient sign long q = ldividend / ldivisor; // store quotient in long if (roundingMode == ROUND_DOWN && scale ==...
class class_name[name] begin[{] method[divideAndRound, return_type[type[BigDecimal]], modifier[private static], parameter[ldividend, ldivisor, scale, roundingMode, preferredScale]] begin[{] local_variable[type[int], qsign] local_variable[type[long], q] if[binary_operation[binary...
Keyword[private] Keyword[static] identifier[BigDecimal] identifier[divideAndRound] operator[SEP] Keyword[long] identifier[ldividend] , Keyword[long] identifier[ldivisor] , Keyword[int] identifier[scale] , Keyword[int] identifier[roundingMode] , Keyword[int] identifier[preferredScale] operator[SEP] { Keyword[...
public static GetSnapshotListTaskResult deserialize(String taskResult) { JaxbJsonSerializer<GetSnapshotListTaskResult> serializer = new JaxbJsonSerializer<>(GetSnapshotListTaskResult.class); try { return serializer.deserialize(taskResult); } catch (IOException e) { ...
class class_name[name] begin[{] method[deserialize, return_type[type[GetSnapshotListTaskResult]], modifier[public static], parameter[taskResult]] begin[{] local_variable[type[JaxbJsonSerializer], serializer] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberRefere...
Keyword[public] Keyword[static] identifier[GetSnapshotListTaskResult] identifier[deserialize] operator[SEP] identifier[String] identifier[taskResult] operator[SEP] { identifier[JaxbJsonSerializer] operator[<] identifier[GetSnapshotListTaskResult] operator[>] identifier[serializer] operator[=] Keyword[new] identi...
public String getSFieldProperty(String strFieldName) { String strValue = super.getSFieldProperty(strFieldName); if (strValue == null) if (this.getParentScreen() != null) if (DBConstants.SUBMIT.equalsIgnoreCase(this.getParentScreen().getProperty(DBParams.COMMAND))) ...
class class_name[name] begin[{] method[getSFieldProperty, return_type[type[String]], modifier[public], parameter[strFieldName]] begin[{] local_variable[type[String], strValue] if[binary_operation[member[.strValue], ==, literal[null]]] begin[{] if[binary_operation[THIS[call[N...
Keyword[public] identifier[String] identifier[getSFieldProperty] operator[SEP] identifier[String] identifier[strFieldName] operator[SEP] { identifier[String] identifier[strValue] operator[=] Keyword[super] operator[SEP] identifier[getSFieldProperty] operator[SEP] identifier[strFieldName] operator[SEP] operator[S...
public FormInputValidator valueLesserThan (VisValidatableTextField field, String errorMsg, float value, boolean validIfEqualsValue) { ValidatorWrapper wrapper = new ValidatorWrapper(errorMsg, new LesserThanValidator(value, validIfEqualsValue)); field.addValidator(wrapper); add(field); return wrapper; }
class class_name[name] begin[{] method[valueLesserThan, return_type[type[FormInputValidator]], modifier[public], parameter[field, errorMsg, value, validIfEqualsValue]] begin[{] local_variable[type[ValidatorWrapper], wrapper] call[field.addValidator, parameter[member[.wrapper]]] ...
Keyword[public] identifier[FormInputValidator] identifier[valueLesserThan] operator[SEP] identifier[VisValidatableTextField] identifier[field] , identifier[String] identifier[errorMsg] , Keyword[float] identifier[value] , Keyword[boolean] identifier[validIfEqualsValue] operator[SEP] { identifier[ValidatorWrap...
public void setThingGroupsToRemove(java.util.Collection<String> thingGroupsToRemove) { if (thingGroupsToRemove == null) { this.thingGroupsToRemove = null; return; } this.thingGroupsToRemove = new java.util.ArrayList<String>(thingGroupsToRemove); }
class class_name[name] begin[{] method[setThingGroupsToRemove, return_type[void], modifier[public], parameter[thingGroupsToRemove]] begin[{] if[binary_operation[member[.thingGroupsToRemove], ==, literal[null]]] begin[{] assign[THIS[member[None.thingGroupsToRemove]], lite...
Keyword[public] Keyword[void] identifier[setThingGroupsToRemove] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[String] operator[>] identifier[thingGroupsToRemove] operator[SEP] { Keyword[if] operator[SEP] identifier[thingGroupsToRemove] ...
private String getBlankResponseXml() { Map<String, Object> data = new HashMap<String, Object>(); data.put("requestID", UUID.randomUUID().toString()); String ret = null; try { ret = TemplateUtils.get(BLANK_RESPONSE_TEMPLATE, data); } catch (AwsMockException e) { ...
class class_name[name] begin[{] method[getBlankResponseXml, return_type[type[String]], modifier[private], parameter[]] begin[{] local_variable[type[Map], data] call[data.put, parameter[literal["requestID"], call[UUID.randomUUID, parameter[]]]] local_variable[type[String], ret] ...
Keyword[private] identifier[String] identifier[getBlankResponseXml] operator[SEP] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[data] operator[=] Keyword[new] identifier[HashMap] operator[<] identifier[String] , identifier[Object] operator[>] operato...
public void marshall(ListAssociatedFleetsRequest listAssociatedFleetsRequest, ProtocolMarshaller protocolMarshaller) { if (listAssociatedFleetsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[listAssociatedFleetsRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.listAssociatedFleetsRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(ar...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[ListAssociatedFleetsRequest] identifier[listAssociatedFleetsRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[listAssociatedFleetsRequest] operator[==] Other[nu...
public static void monitor(MeterRegistry registry, DataSource dataSource, String dataSourceName, String tableName, Iterable<Tag> tags) { new DatabaseTableMetrics(dataSource, dataSourceName, tableName, tags).bindTo(registry); }
class class_name[name] begin[{] method[monitor, return_type[void], modifier[public static], parameter[registry, dataSource, dataSourceName, tableName, tags]] begin[{] ClassCreator(arguments=[MemberReference(member=dataSource, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]),...
Keyword[public] Keyword[static] Keyword[void] identifier[monitor] operator[SEP] identifier[MeterRegistry] identifier[registry] , identifier[DataSource] identifier[dataSource] , identifier[String] identifier[dataSourceName] , identifier[String] identifier[tableName] , identifier[Iterable] operator[<] identifier[Tag]...
public byte[] getOrCreateId(final String name) throws HBaseException { try { return getIdAsync(name).joinUninterruptibly(); } catch (NoSuchUniqueName e) { if (tsdb != null && tsdb.getUidFilter() != null && tsdb.getUidFilter().fillterUIDAssignments()) { try { if (!tsdb.ge...
class class_name[name] begin[{] method[getOrCreateId, return_type[type[byte]], modifier[public], parameter[name]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=name, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], membe...
Keyword[public] Keyword[byte] operator[SEP] operator[SEP] identifier[getOrCreateId] operator[SEP] Keyword[final] identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[HBaseException] { Keyword[try] { Keyword[return] identifier[getIdAsync] operator[SEP] identifier[name] operator[...
@Override public void login(String username, String password) throws ServletException { this._getHttpServletRequest().login(username,password); }
class class_name[name] begin[{] method[login, return_type[void], modifier[public], parameter[username, password]] begin[{] THIS[call[None._getHttpServletRequest, parameter[]]call[None.login, parameter[member[.username], member[.password]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[login] operator[SEP] identifier[String] identifier[username] , identifier[String] identifier[password] operator[SEP] Keyword[throws] identifier[ServletException] { Keyword[this] operator[SEP] identifier[_getHttpServletRequest] operator[...
public Table create(String tableId, TableDefinition definition, TableOption... options) { TableInfo tableInfo = TableInfo.of(TableId.of(getDatasetId().getDataset(), tableId), definition); return bigquery.create(tableInfo, options); }
class class_name[name] begin[{] method[create, return_type[type[Table]], modifier[public], parameter[tableId, definition, options]] begin[{] local_variable[type[TableInfo], tableInfo] return[call[bigquery.create, parameter[member[.tableInfo], member[.options]]]] end[}] END[}]
Keyword[public] identifier[Table] identifier[create] operator[SEP] identifier[String] identifier[tableId] , identifier[TableDefinition] identifier[definition] , identifier[TableOption] operator[...] identifier[options] operator[SEP] { identifier[TableInfo] identifier[tableInfo] operator[=] identifier[TableInfo...
public static boolean showInstallPrompt(@NonNull Activity activity, int requestCode) { String installReferrerString = ""; if (Branch.getInstance() != null) { JSONObject latestReferringParams = Branch.getInstance().getLatestReferringParams(); String referringLinkKey = "~" + Define...
class class_name[name] begin[{] method[showInstallPrompt, return_type[type[boolean]], modifier[public static], parameter[activity, requestCode]] begin[{] local_variable[type[String], installReferrerString] if[binary_operation[call[Branch.getInstance, parameter[]], !=, literal[null]]] be...
Keyword[public] Keyword[static] Keyword[boolean] identifier[showInstallPrompt] operator[SEP] annotation[@] identifier[NonNull] identifier[Activity] identifier[activity] , Keyword[int] identifier[requestCode] operator[SEP] { identifier[String] identifier[installReferrerString] operator[=] literal[String] operato...
public void clearFieldReference() { RecordReferenceField field = m_field; m_field = null; // This keeps this from being called twice if (field != null) field.setReferenceRecord(null); // Just in case a converter was used (removes converter, leaves field!) }
class class_name[name] begin[{] method[clearFieldReference, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[RecordReferenceField], field] assign[member[.m_field], literal[null]] if[binary_operation[member[.field], !=, literal[null]]] begin[...
Keyword[public] Keyword[void] identifier[clearFieldReference] operator[SEP] operator[SEP] { identifier[RecordReferenceField] identifier[field] operator[=] identifier[m_field] operator[SEP] identifier[m_field] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[field] operator[!=] Other[nul...
@Override public void recordTaskDescriptionChange(String taskId, String description) { if (isHistoryLevelAtLeast(HistoryLevel.AUDIT)) { HistoricTaskInstanceEntity historicTaskInstance = getHistoricTaskInstanceEntityManager().findById(taskId); if (historicTaskInstance != null) { historicTaskIns...
class class_name[name] begin[{] method[recordTaskDescriptionChange, return_type[void], modifier[public], parameter[taskId, description]] begin[{] if[call[.isHistoryLevelAtLeast, parameter[member[HistoryLevel.AUDIT]]]] begin[{] local_variable[type[HistoricTaskInstanceEntity], histori...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[recordTaskDescriptionChange] operator[SEP] identifier[String] identifier[taskId] , identifier[String] identifier[description] operator[SEP] { Keyword[if] operator[SEP] identifier[isHistoryLevelAtLeast] operator[SEP] identifier[HistoryLe...
@NotNull public OptionalDouble average() { long count = 0; double sum = 0d; while (iterator.hasNext()) { sum += iterator.nextDouble(); count++; } if (count == 0) return OptionalDouble.empty(); return OptionalDouble.of(sum / (double) count); ...
class class_name[name] begin[{] method[average, return_type[type[OptionalDouble]], modifier[public], parameter[]] begin[{] local_variable[type[long], count] local_variable[type[double], sum] while[call[iterator.hasNext, parameter[]]] begin[{] assign[membe...
annotation[@] identifier[NotNull] Keyword[public] identifier[OptionalDouble] identifier[average] operator[SEP] operator[SEP] { Keyword[long] identifier[count] operator[=] Other[0] operator[SEP] Keyword[double] identifier[sum] operator[=] literal[Float] operator[SEP] Keyword[while] operator[SEP] identifier[iterat...
@Override public List<NodeData> getChildNodesData(NodeData nodeData) throws RepositoryException { return Collections.unmodifiableList(super.getChildNodesData(nodeData)); }
class class_name[name] begin[{] method[getChildNodesData, return_type[type[List]], modifier[public], parameter[nodeData]] begin[{] return[call[Collections.unmodifiableList, parameter[SuperMethodInvocation(arguments=[MemberReference(member=nodeData, postfix_operators=[], prefix_operators=[], qualifier=,...
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[NodeData] operator[>] identifier[getChildNodesData] operator[SEP] identifier[NodeData] identifier[nodeData] operator[SEP] Keyword[throws] identifier[RepositoryException] { Keyword[return] identifier[Collections] operator[S...
@CheckReturnValue @NonNull @BackpressureSupport(BackpressureKind.FULL) @SchedulerSupport(SchedulerSupport.NONE) public final Flowable<T> sorted(Comparator<? super T> sortFunction) { ObjectHelper.requireNonNull(sortFunction, "sortFunction"); return toList().toFlowable().map(Functions.list...
class class_name[name] begin[{] method[sorted, return_type[type[Flowable]], modifier[final public], parameter[sortFunction]] begin[{] call[ObjectHelper.requireNonNull, parameter[member[.sortFunction], literal["sortFunction"]]] return[call[.toList, parameter[]]] end[}] END[}]
annotation[@] identifier[CheckReturnValue] annotation[@] identifier[NonNull] annotation[@] identifier[BackpressureSupport] operator[SEP] identifier[BackpressureKind] operator[SEP] identifier[FULL] operator[SEP] annotation[@] identifier[SchedulerSupport] operator[SEP] identifier[SchedulerSupport] operator[SEP] identifie...
private void initializeManagedObjectFactoryOrConstructor(BeanMetaData bmd) throws EJBConfigurationException { if (bmd.isManagedBean()) { bmd.ivEnterpriseBeanFactory = getManagedBeanManagedObjectFactory(bmd, bmd.enterpriseBeanClass); // If the managed object factroy and the managed objec...
class class_name[name] begin[{] method[initializeManagedObjectFactoryOrConstructor, return_type[void], modifier[private], parameter[bmd]] begin[{] if[call[bmd.isManagedBean, parameter[]]] begin[{] assign[member[bmd.ivEnterpriseBeanFactory], call[.getManagedBeanManagedObj...
Keyword[private] Keyword[void] identifier[initializeManagedObjectFactoryOrConstructor] operator[SEP] identifier[BeanMetaData] identifier[bmd] operator[SEP] Keyword[throws] identifier[EJBConfigurationException] { Keyword[if] operator[SEP] identifier[bmd] operator[SEP] identifier[isManagedBean] operator[SEP] opera...
private String acceptBuilder(String version) { String acceptValue = "application/json"; if(version == "2.1") acceptValue += ";version=" + version; return acceptValue; }
class class_name[name] begin[{] method[acceptBuilder, return_type[type[String]], modifier[private], parameter[version]] begin[{] local_variable[type[String], acceptValue] if[binary_operation[member[.version], ==, literal["2.1"]]] begin[{] assign[member[.acceptValue], binary_...
Keyword[private] identifier[String] identifier[acceptBuilder] operator[SEP] identifier[String] identifier[version] operator[SEP] { identifier[String] identifier[acceptValue] operator[=] literal[String] operator[SEP] Keyword[if] operator[SEP] identifier[version] operator[==] literal[String] operator[SEP] identifi...
@Override public void set(String key, String value) { if("dn".equals(key)) { this.dn = value; } else if (value != null && !value.isEmpty() && key != null && !key.isEmpty()) { addAttribute(new BasicAttribute(key, value, true)); } ...
class class_name[name] begin[{] method[set, return_type[void], modifier[public], parameter[key, value]] begin[{] if[literal["dn"]] begin[{] assign[THIS[member[None.dn]], member[.value]] else begin[{] if[binary_operation[binary_operation[binary_operati...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[set] operator[SEP] identifier[String] identifier[key] , identifier[String] identifier[value] operator[SEP] { Keyword[if] operator[SEP] literal[String] operator[SEP] identifier[equals] operator[SEP] identifier[key] operator[SEP] operator...
public void marshall(FailedCreateAssociation failedCreateAssociation, ProtocolMarshaller protocolMarshaller) { if (failedCreateAssociation == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(failedCrea...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[failedCreateAssociation, protocolMarshaller]] begin[{] if[binary_operation[member[.failedCreateAssociation], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[FailedCreateAssociation] identifier[failedCreateAssociation] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[failedCreateAssociation] operator[==] Other[null] operator...
public static double colemanLiauIndex(String strText) { strText = cleanText(strText); int intWordCount = wordCount(strText); return PHPMethods.round( ( (5.89 * (letterCount(strText) / (double)intWordCount)) - (0.3 * (sentenceCount(strText) / (double)intWordCount)) - 15.8 ), 1); }
class class_name[name] begin[{] method[colemanLiauIndex, return_type[type[double]], modifier[public static], parameter[strText]] begin[{] assign[member[.strText], call[.cleanText, parameter[member[.strText]]]] local_variable[type[int], intWordCount] return[call[PHPMethods.round,...
Keyword[public] Keyword[static] Keyword[double] identifier[colemanLiauIndex] operator[SEP] identifier[String] identifier[strText] operator[SEP] { identifier[strText] operator[=] identifier[cleanText] operator[SEP] identifier[strText] operator[SEP] operator[SEP] Keyword[int] identifier[intWordCount] operator[=] i...
public Graph links(Link... values) { if (values == null || values.length == 0) { return this; } this.links().addAll(Arrays.asList(values)); return this; }
class class_name[name] begin[{] method[links, return_type[type[Graph]], modifier[public], parameter[values]] begin[{] if[binary_operation[binary_operation[member[.values], ==, literal[null]], ||, binary_operation[member[values.length], ==, literal[0]]]] begin[{] return[THIS[]] ...
Keyword[public] identifier[Graph] identifier[links] operator[SEP] identifier[Link] operator[...] identifier[values] operator[SEP] { Keyword[if] operator[SEP] identifier[values] operator[==] Other[null] operator[||] identifier[values] operator[SEP] identifier[length] operator[==] Other[0] operator[SEP] { ...
private int endCheckLabel() { int rv = END_UNREACHED; rv = next.endCheck(); rv |= getIntProp(CONTROL_BLOCK_PROP, END_UNREACHED); return rv; }
class class_name[name] begin[{] method[endCheckLabel, return_type[type[int]], modifier[private], parameter[]] begin[{] local_variable[type[int], rv] assign[member[.rv], call[next.endCheck, parameter[]]] assign[member[.rv], call[.getIntProp, parameter[member[.CONTROL_BLOC...
Keyword[private] Keyword[int] identifier[endCheckLabel] operator[SEP] operator[SEP] { Keyword[int] identifier[rv] operator[=] identifier[END_UNREACHED] operator[SEP] identifier[rv] operator[=] identifier[next] operator[SEP] identifier[endCheck] operator[SEP] operator[SEP] operator[SEP] identifier[rv] operator[|=...
public XmlConfig declareNamespaces(Map<String, String> namespacesToDeclare) { final boolean shouldBeNamespaceAware = namespacesToDeclare == null ? namespaceAware : !namespacesToDeclare.isEmpty(); return new XmlConfig(features, namespacesToDeclare, properties, validating, shouldBeNamespaceAware, allowDoc...
class class_name[name] begin[{] method[declareNamespaces, return_type[type[XmlConfig]], modifier[public], parameter[namespacesToDeclare]] begin[{] local_variable[type[boolean], shouldBeNamespaceAware] return[ClassCreator(arguments=[MemberReference(member=features, postfix_operators=[], prefix_o...
Keyword[public] identifier[XmlConfig] identifier[declareNamespaces] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[namespacesToDeclare] operator[SEP] { Keyword[final] Keyword[boolean] identifier[shouldBeNamespaceAware] operator[=] identifier[namespacesTo...
public static List<String> topologicalSort(List<String> moduleNames, String rfsAbsPath) throws CmsConfigurationException { List<String> modules = new ArrayList<String>(moduleNames); List<String> retList = new ArrayList<String>(); Map<String, List<String>> moduleDependencies = buildDepsForMo...
class class_name[name] begin[{] method[topologicalSort, return_type[type[List]], modifier[public static], parameter[moduleNames, rfsAbsPath]] begin[{] local_variable[type[List], modules] local_variable[type[List], retList] local_variable[type[Map], moduleDependencies] local_vari...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[String] operator[>] identifier[topologicalSort] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[moduleNames] , identifier[String] identifier[rfsAbsPath] operator[SEP] Keyword[throws] identifier[CmsConfiguration...