code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public ServiceCall<Void> deleteExpansions(DeleteExpansionsOptions deleteExpansionsOptions) { Validator.notNull(deleteExpansionsOptions, "deleteExpansionsOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections", "expansions" }; String[] pathParameters = { deleteExpansionsOptions.e...
class class_name[name] begin[{] method[deleteExpansions, return_type[type[ServiceCall]], modifier[public], parameter[deleteExpansionsOptions]] begin[{] call[Validator.notNull, parameter[member[.deleteExpansionsOptions], literal["deleteExpansionsOptions cannot be null"]]] local_variable[...
Keyword[public] identifier[ServiceCall] operator[<] identifier[Void] operator[>] identifier[deleteExpansions] operator[SEP] identifier[DeleteExpansionsOptions] identifier[deleteExpansionsOptions] operator[SEP] { identifier[Validator] operator[SEP] identifier[notNull] operator[SEP] identifier[deleteExpansionsOpti...
private static Constructor<?> getConstructor(final Class<?> genericClass, final Class<?>[] constructorParameterTypes) { Constructor<?> constructor = null; try { constructor = genericClass.getConstructor(constructorParameterTypes); } catch (final NoSuchMethodException e) { ...
class class_name[name] begin[{] method[getConstructor, return_type[type[Constructor]], modifier[private static], parameter[genericClass, constructorParameterTypes]] begin[{] local_variable[type[Constructor], constructor] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=...
Keyword[private] Keyword[static] identifier[Constructor] operator[<] operator[?] operator[>] identifier[getConstructor] operator[SEP] Keyword[final] identifier[Class] operator[<] operator[?] operator[>] identifier[genericClass] , Keyword[final] identifier[Class] operator[<] operator[?] operator[>] operator[SEP] operat...
private static void compute(Kernel kernel, int[] in, int[] out, int width, int height, boolean alpha, int edge) { final float[] matrix = kernel.getMatrix(); final int cols = kernel.getWidth(); final int cols2 = cols / 2; for (int y = 0; y < height; y++) { ...
class class_name[name] begin[{] method[compute, return_type[void], modifier[private static], parameter[kernel, in, out, width, height, alpha, edge]] begin[{] local_variable[type[float], matrix] local_variable[type[int], cols] local_variable[type[int], cols2] ForStatement(body=Bl...
Keyword[private] Keyword[static] Keyword[void] identifier[compute] operator[SEP] identifier[Kernel] identifier[kernel] , Keyword[int] operator[SEP] operator[SEP] identifier[in] , Keyword[int] operator[SEP] operator[SEP] identifier[out] , Keyword[int] identifier[width] , Keyword[int] identifier[height] , Keyword[bo...
private static void setResultType(Configuration configuration, MappedStatement ms, Class<?> entityClass) { List<ResultMap> resultMaps = new ArrayList<ResultMap>(); resultMaps.add(getResultMap(configuration,entityClass)); MetaObject metaObject = SystemMetaObject.forObject(ms); metaObject....
class class_name[name] begin[{] method[setResultType, return_type[void], modifier[private static], parameter[configuration, ms, entityClass]] begin[{] local_variable[type[List], resultMaps] call[resultMaps.add, parameter[call[.getResultMap, parameter[member[.configuration], member[.enti...
Keyword[private] Keyword[static] Keyword[void] identifier[setResultType] operator[SEP] identifier[Configuration] identifier[configuration] , identifier[MappedStatement] identifier[ms] , identifier[Class] operator[<] operator[?] operator[>] identifier[entityClass] operator[SEP] { identifier[List] operator[<] id...
void addFieldValue(Map<TemporalField, Long> fieldValues, ChronoField field, long value) { Long old = fieldValues.get(field); // check first for better error message if (old != null && old.longValue() != value) { throw new DateTimeException("Conflict found: " + field + " " + old + " differs ...
class class_name[name] begin[{] method[addFieldValue, return_type[void], modifier[default], parameter[fieldValues, field, value]] begin[{] local_variable[type[Long], old] if[binary_operation[binary_operation[member[.old], !=, literal[null]], &&, binary_operation[call[old.longValue, para...
Keyword[void] identifier[addFieldValue] operator[SEP] identifier[Map] operator[<] identifier[TemporalField] , identifier[Long] operator[>] identifier[fieldValues] , identifier[ChronoField] identifier[field] , Keyword[long] identifier[value] operator[SEP] { identifier[Long] identifier[old] operator[=] identifi...
public boolean isTimeLocked() { if (getLockTime() == 0) return false; for (TransactionInput input : getInputs()) if (input.hasSequence()) return true; return false; }
class class_name[name] begin[{] method[isTimeLocked, return_type[type[boolean]], modifier[public], parameter[]] begin[{] if[binary_operation[call[.getLockTime, parameter[]], ==, literal[0]]] begin[{] return[literal[false]] else begin[{] None end[}] ForStatement(body=IfSt...
Keyword[public] Keyword[boolean] identifier[isTimeLocked] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[getLockTime] operator[SEP] operator[SEP] operator[==] Other[0] operator[SEP] Keyword[return] literal[boolean] operator[SEP] Keyword[for] operator[SEP] identifier[TransactionInput] identifi...
public static void swap( final byte[] data, final int start, final int end, final byte[] otherData, final int otherStart ) { for (int i = end - start; --i >= 0;) { final boolean temp = get(data, i + start); set(data, i + start, get(otherData, otherStart + i)); set(otherData, otherStart + i, temp); } ...
class class_name[name] begin[{] method[swap, return_type[void], modifier[public static], parameter[data, start, end, otherData, otherStart]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initiali...
Keyword[public] Keyword[static] Keyword[void] identifier[swap] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[data] , Keyword[final] Keyword[int] identifier[start] , Keyword[final] Keyword[int] identifier[end] , Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[ot...
public static boolean hasSuperClass(Class<?> clazz, Class<?> superClazz) { if (clazz == null || superClazz == null || clazz == superClazz) { return false; } if (clazz.isInterface()) { return superClazz.isAssignableFrom(clazz); } Class<?> parent = clazz.g...
class class_name[name] begin[{] method[hasSuperClass, return_type[type[boolean]], modifier[public static], parameter[clazz, superClazz]] begin[{] if[binary_operation[binary_operation[binary_operation[member[.clazz], ==, literal[null]], ||, binary_operation[member[.superClazz], ==, literal[null]...
Keyword[public] Keyword[static] Keyword[boolean] identifier[hasSuperClass] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] , identifier[Class] operator[<] operator[?] operator[>] identifier[superClazz] operator[SEP] { Keyword[if] operator[SEP] identifier[clazz] operator[==]...
public long readU32() throws WireParseException { require(4); int b1 = array[pos++] & 0xFF; int b2 = array[pos++] & 0xFF; int b3 = array[pos++] & 0xFF; int b4 = array[pos++] & 0xFF; return (((long)b1 << 24) + (b2 << 16) + (b3 << 8) + b4); }
class class_name[name] begin[{] method[readU32, return_type[type[long]], modifier[public], parameter[]] begin[{] call[.require, parameter[literal[4]]] local_variable[type[int], b1] local_variable[type[int], b2] local_variable[type[int], b3] local_variable[type[in...
Keyword[public] Keyword[long] identifier[readU32] operator[SEP] operator[SEP] Keyword[throws] identifier[WireParseException] { identifier[require] operator[SEP] Other[4] operator[SEP] operator[SEP] Keyword[int] identifier[b1] operator[=] identifier[array] operator[SEP] identifier[pos] operator[++] operator[SEP] ...
public void init(Configuration configuration) throws Exception { if (configuration.getBootstrapPropertyResolver().getProperty(CONTEXT_TIMEOUT_NAME) != null) { log.debug("Configuring context timeout with value ", configuration.getBootstrapPropertyResolver().getProperty(CONTEXT_TIMEOUT_NAME)); ...
class class_name[name] begin[{] method[init, return_type[void], modifier[public], parameter[configuration]] begin[{] if[binary_operation[call[configuration.getBootstrapPropertyResolver, parameter[]], !=, literal[null]]] begin[{] call[log.debug, parameter[literal["Configu...
Keyword[public] Keyword[void] identifier[init] operator[SEP] identifier[Configuration] identifier[configuration] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[if] operator[SEP] identifier[configuration] operator[SEP] identifier[getBootstrapPropertyResolver] operator[SEP] operator[SEP] operator[SE...
public static void exclusiveBetween(final long start, final long end, final long value, final String message) { // TODO when breaking BC, consider returning value if (value <= start || value >= end) { throw new IllegalArgumentException(message); } }
class class_name[name] begin[{] method[exclusiveBetween, return_type[void], modifier[public static], parameter[start, end, value, message]] begin[{] if[binary_operation[binary_operation[member[.value], <=, member[.start]], ||, binary_operation[member[.value], >=, member[.end]]]] begin[{] ...
Keyword[public] Keyword[static] Keyword[void] identifier[exclusiveBetween] operator[SEP] Keyword[final] Keyword[long] identifier[start] , Keyword[final] Keyword[long] identifier[end] , Keyword[final] Keyword[long] identifier[value] , Keyword[final] identifier[String] identifier[message] operator[SEP] { Keywor...
public static Class<?> resolveClass(Type genericType, Class<?> targetType) { if (genericType instanceof Class) { return (Class<?>) genericType; } else if (genericType instanceof ParameterizedType) { return resolveClass(((ParameterizedType) genericType).getRawType(), targetType); ...
class class_name[name] begin[{] method[resolveClass, return_type[type[Class]], modifier[public static], parameter[genericType, targetType]] begin[{] if[binary_operation[member[.genericType], instanceof, type[Class]]] begin[{] return[Cast(expression=MemberReference(member=genericType...
Keyword[public] Keyword[static] identifier[Class] operator[<] operator[?] operator[>] identifier[resolveClass] operator[SEP] identifier[Type] identifier[genericType] , identifier[Class] operator[<] operator[?] operator[>] identifier[targetType] operator[SEP] { Keyword[if] operator[SEP] identifier[genericType] K...
@Override public void parse(final String... parameters) { // Manage red composite if (parameters.length >= 1) { redProperty().set(readInteger(parameters[0], 0, 255)); } // Manage green composite if (parameters.length >= 2) { greenProperty().set...
class class_name[name] begin[{] method[parse, return_type[void], modifier[public], parameter[parameters]] begin[{] if[binary_operation[member[parameters.length], >=, literal[1]]] begin[{] call[.redProperty, parameter[]] else begin[{] None end[}] ...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[parse] operator[SEP] Keyword[final] identifier[String] operator[...] identifier[parameters] operator[SEP] { Keyword[if] operator[SEP] identifier[parameters] operator[SEP] identifier[length] operator[>=] Other[1] operator[SEP] { ...
private static void maybeEmbedPositionAdjustmentPatterns(Version version, ByteMatrix matrix) { if (version.getVersionNumber() < 2) { // The patterns appear if version >= 2 return; } int index = version.getVersionNumber() - 1; int[] coordinates = POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE[index]...
class class_name[name] begin[{] method[maybeEmbedPositionAdjustmentPatterns, return_type[void], modifier[private static], parameter[version, matrix]] begin[{] if[binary_operation[call[version.getVersionNumber, parameter[]], <, literal[2]]] begin[{] return[None] else begin[{]...
Keyword[private] Keyword[static] Keyword[void] identifier[maybeEmbedPositionAdjustmentPatterns] operator[SEP] identifier[Version] identifier[version] , identifier[ByteMatrix] identifier[matrix] operator[SEP] { Keyword[if] operator[SEP] identifier[version] operator[SEP] identifier[getVersionNumber] operator[SEP]...
public String getMd5ToHexString() { if (md5 == null) { return null; } byte[] decodedMd5 = BaseEncoding.base64().decode(md5); StringBuilder stringBuilder = new StringBuilder(); for (byte b : decodedMd5) { stringBuilder.append(String.format("%02x", b & 0xff)); } return stringBuilde...
class class_name[name] begin[{] method[getMd5ToHexString, return_type[type[String]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.md5], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] local_variable[type[byt...
Keyword[public] identifier[String] identifier[getMd5ToHexString] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[md5] operator[==] Other[null] operator[SEP] { Keyword[return] Other[null] operator[SEP] } Keyword[byte] operator[SEP] operator[SEP] identifier[decodedMd5] o...
static void checkProperties(Map<String, Object> properties, String[] disallowedProperties) { if (properties == null || properties.isEmpty()) { return; } HashSet<String> disallowed = new HashSet<>(properties.keySet()); disallowed.retainAll(Arrays.asList(disallowedProperties))...
class class_name[name] begin[{] method[checkProperties, return_type[void], modifier[static], parameter[properties, disallowedProperties]] begin[{] if[binary_operation[binary_operation[member[.properties], ==, literal[null]], ||, call[properties.isEmpty, parameter[]]]] begin[{] retur...
Keyword[static] Keyword[void] identifier[checkProperties] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[properties] , identifier[String] operator[SEP] operator[SEP] identifier[disallowedProperties] operator[SEP] { Keyword[if] operator[SEP] identifier[p...
public static MySQLCommandPacket newInstance(final MySQLCommandPacketType commandPacketType, final MySQLPacketPayload payload) throws SQLException { switch (commandPacketType) { case COM_QUIT: return new MySQLComQuitPacket(); case COM_INIT_DB: return new M...
class class_name[name] begin[{] method[newInstance, return_type[type[MySQLCommandPacket]], modifier[public static], parameter[commandPacketType, payload]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=['COM_QUIT'], statements=[ReturnStatement(expression=ClassCreator(arguments=[], body=None, ...
Keyword[public] Keyword[static] identifier[MySQLCommandPacket] identifier[newInstance] operator[SEP] Keyword[final] identifier[MySQLCommandPacketType] identifier[commandPacketType] , Keyword[final] identifier[MySQLPacketPayload] identifier[payload] operator[SEP] Keyword[throws] identifier[SQLException] { Keywor...
private URI toURI(String endpoint) throws IllegalArgumentException { if (endpoint.contains("://") == false) { endpoint = Protocol.HTTPS + "://" + endpoint; } try { return new URI(endpoint); } catch (URISyntaxException e) { throw new IllegalArgumentEx...
class class_name[name] begin[{] method[toURI, return_type[type[URI]], modifier[private], parameter[endpoint]] begin[{] if[binary_operation[call[endpoint.contains, parameter[literal["://"]]], ==, literal[false]]] begin[{] assign[member[.endpoint], binary_operation[binary_...
Keyword[private] identifier[URI] identifier[toURI] operator[SEP] identifier[String] identifier[endpoint] operator[SEP] Keyword[throws] identifier[IllegalArgumentException] { Keyword[if] operator[SEP] identifier[endpoint] operator[SEP] identifier[contains] operator[SEP] literal[String] operator[SEP] operator[==] ...
public static Output<ByteBuffer> from(byte[] data, boolean endOfRecord) { return new Output<>(ManagedBuffer.wrap(ByteBuffer.wrap(data)), false, endOfRecord); }
class class_name[name] begin[{] method[from, return_type[type[Output]], modifier[public static], parameter[data, endOfRecord]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=data, postfix_operators=[], prefix_operators=[], qualifie...
Keyword[public] Keyword[static] identifier[Output] operator[<] identifier[ByteBuffer] operator[>] identifier[from] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[data] , Keyword[boolean] identifier[endOfRecord] operator[SEP] { Keyword[return] Keyword[new] identifier[Output] operator[<] opera...
public static <T> ToDoubleFunction<T> toDoubleFunction(CheckedToDoubleFunction<T> function) { return Unchecked.toDoubleFunction(function, Unchecked.RETHROW_ALL); }
class class_name[name] begin[{] method[toDoubleFunction, return_type[type[ToDoubleFunction]], modifier[public static], parameter[function]] begin[{] return[call[Unchecked.toDoubleFunction, parameter[member[.function], member[Unchecked.RETHROW_ALL]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[ToDoubleFunction] operator[<] identifier[T] operator[>] identifier[toDoubleFunction] operator[SEP] identifier[CheckedToDoubleFunction] operator[<] identifier[T] operator[>] identifier[function] operator[SEP] { Keyword[return] identi...
@Nullable @OverrideOnDemand protected IUser getUserOfLoginName (@Nullable final String sLoginName) { return PhotonSecurityManager.getUserMgr ().getUserOfLoginName (sLoginName); }
class class_name[name] begin[{] method[getUserOfLoginName, return_type[type[IUser]], modifier[protected], parameter[sLoginName]] begin[{] return[call[PhotonSecurityManager.getUserMgr, parameter[]]] end[}] END[}]
annotation[@] identifier[Nullable] annotation[@] identifier[OverrideOnDemand] Keyword[protected] identifier[IUser] identifier[getUserOfLoginName] operator[SEP] annotation[@] identifier[Nullable] Keyword[final] identifier[String] identifier[sLoginName] operator[SEP] { Keyword[return] identifier[PhotonSecurityMana...
@Nullable public static float[] optFloatArray(@Nullable Bundle bundle, @Nullable String key, @Nullable float[] fallback) { if (bundle == null) { return fallback; } return bundle.getFloatArray(key); }
class class_name[name] begin[{] method[optFloatArray, return_type[type[float]], modifier[public static], parameter[bundle, key, fallback]] begin[{] if[binary_operation[member[.bundle], ==, literal[null]]] begin[{] return[member[.fallback]] else begin[{] None end[}] ...
annotation[@] identifier[Nullable] Keyword[public] Keyword[static] Keyword[float] operator[SEP] operator[SEP] identifier[optFloatArray] operator[SEP] annotation[@] identifier[Nullable] identifier[Bundle] identifier[bundle] , annotation[@] identifier[Nullable] identifier[String] identifier[key] , annotation[@] identif...
@Override public void restoreState(Map<String, Object> m) { subjectManager.setCallerSubject((Subject) m.get(CALLER_SUBJECT_KEY)); subjectManager.setInvocationSubject((Subject) m.get(INVOCATION_SUBJECT_KEY)); }
class class_name[name] begin[{] method[restoreState, return_type[void], modifier[public], parameter[m]] begin[{] call[subjectManager.setCallerSubject, parameter[Cast(expression=MethodInvocation(arguments=[MemberReference(member=CALLER_SUBJECT_KEY, postfix_operators=[], prefix_operators=[], qual...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[restoreState] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[m] operator[SEP] { identifier[subjectManager] operator[SEP] identifier[setCallerSubject] operator[SEP] operator[SEP] ...
@SuppressWarnings({ "PMD.GuardLogStatement", "PMD.AvoidDuplicateLiterals" }) public void add(Object obj) { synchronized (this) { running += 1; if (generators != null) { generators.put(obj, null); generatorTracking.finest(() -> "Added generator " + obj ...
class class_name[name] begin[{] method[add, return_type[void], modifier[public], parameter[obj]] begin[{] SYNCHRONIZED[THIS[]] BEGIN[{] assign[member[.running], literal[1]] if[binary_operation[member[.generators], !=, literal[null]]] begin[{] ...
annotation[@] identifier[SuppressWarnings] operator[SEP] { literal[String] , literal[String] } operator[SEP] Keyword[public] Keyword[void] identifier[add] operator[SEP] identifier[Object] identifier[obj] operator[SEP] { Keyword[synchronized] operator[SEP] Keyword[this] operator[SEP] { ident...
public ListProvisioningArtifactsForServiceActionResult withProvisioningArtifactViews(ProvisioningArtifactView... provisioningArtifactViews) { if (this.provisioningArtifactViews == null) { setProvisioningArtifactViews(new java.util.ArrayList<ProvisioningArtifactView>(provisioningArtifactViews.length)...
class class_name[name] begin[{] method[withProvisioningArtifactViews, return_type[type[ListProvisioningArtifactsForServiceActionResult]], modifier[public], parameter[provisioningArtifactViews]] begin[{] if[binary_operation[THIS[member[None.provisioningArtifactViews]], ==, literal[null]]] begin[...
Keyword[public] identifier[ListProvisioningArtifactsForServiceActionResult] identifier[withProvisioningArtifactViews] operator[SEP] identifier[ProvisioningArtifactView] operator[...] identifier[provisioningArtifactViews] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[provisionin...
protected void findCoordinateSystems(NetcdfDataset ncDataset) { for (VarProcess vp : varList) { if (vp.coordSys != null) { StringTokenizer stoker = new StringTokenizer(vp.coordSys); while (stoker.hasMoreTokens()) { String vname = stoker.nextToken(); VarProcess ap = fi...
class class_name[name] begin[{] method[findCoordinateSystems, return_type[void], modifier[protected], parameter[ncDataset]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=coordSys, postfix_operators=[], prefix_oper...
Keyword[protected] Keyword[void] identifier[findCoordinateSystems] operator[SEP] identifier[NetcdfDataset] identifier[ncDataset] operator[SEP] { Keyword[for] operator[SEP] identifier[VarProcess] identifier[vp] operator[:] identifier[varList] operator[SEP] { Keyword[if] operator[SEP] identifier[vp] op...
public ObjectPool createConnectionPool(JdbcConnectionDescriptor jcd) { if (log.isDebugEnabled()) log.debug("createPool was called"); PoolableObjectFactory pof = new ConPoolFactory(this, jcd); GenericObjectPool.Config conf = jcd.getConnectionPoolDescriptor().getObjectPoolConfig(); ...
class class_name[name] begin[{] method[createConnectionPool, return_type[type[ObjectPool]], modifier[public], parameter[jcd]] begin[{] if[call[log.isDebugEnabled, parameter[]]] begin[{] call[log.debug, parameter[literal["createPool was called"]]] else begin[{] None e...
Keyword[public] identifier[ObjectPool] identifier[createConnectionPool] operator[SEP] identifier[JdbcConnectionDescriptor] identifier[jcd] operator[SEP] { Keyword[if] operator[SEP] identifier[log] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[log] operator[SEP] ide...
public ActionState createActionStateFromString(EDataType eDataType, String initialValue) { ActionState result = ActionState.get(initialValue); if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); return result...
class class_name[name] begin[{] method[createActionStateFromString, return_type[type[ActionState]], modifier[public], parameter[eDataType, initialValue]] begin[{] local_variable[type[ActionState], result] if[binary_operation[member[.result], ==, literal[null]]] begin[{] ThrowStatement(e...
Keyword[public] identifier[ActionState] identifier[createActionStateFromString] operator[SEP] identifier[EDataType] identifier[eDataType] , identifier[String] identifier[initialValue] operator[SEP] { identifier[ActionState] identifier[result] operator[=] identifier[ActionState] operator[SEP] identifier[get] ope...
@Override public void remove(final TreeNode child) { if (children != null) { children.remove(child); if (child instanceof AbstractTreeNode) { ((AbstractTreeNode) child).parent = null; } } }
class class_name[name] begin[{] method[remove, return_type[void], modifier[public], parameter[child]] begin[{] if[binary_operation[member[.children], !=, literal[null]]] begin[{] call[children.remove, parameter[member[.child]]] if[binary_operation...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[remove] operator[SEP] Keyword[final] identifier[TreeNode] identifier[child] operator[SEP] { Keyword[if] operator[SEP] identifier[children] operator[!=] Other[null] operator[SEP] { identifier[children] operator[SEP] identifier[...
@Override public IssueResponse registIssue(String CorpNum, Taxinvoice taxinvoice, Boolean WriteSpecification) throws PopbillException { return registIssue(CorpNum, taxinvoice, WriteSpecification, null, false, null, null, null); }
class class_name[name] begin[{] method[registIssue, return_type[type[IssueResponse]], modifier[public], parameter[CorpNum, taxinvoice, WriteSpecification]] begin[{] return[call[.registIssue, parameter[member[.CorpNum], member[.taxinvoice], member[.WriteSpecification], literal[null], literal[false], lit...
annotation[@] identifier[Override] Keyword[public] identifier[IssueResponse] identifier[registIssue] operator[SEP] identifier[String] identifier[CorpNum] , identifier[Taxinvoice] identifier[taxinvoice] , identifier[Boolean] identifier[WriteSpecification] operator[SEP] Keyword[throws] identifier[PopbillException] { ...
public JSONObject invalidateRefreshToken(String refreshToken) throws IOException, KiteException, JSONException { Map<String, Object> param = new HashMap<>(); param.put("refresh_token", refreshToken); param.put("api_key", apiKey); String url = routes.get("api.token"); return new K...
class class_name[name] begin[{] method[invalidateRefreshToken, return_type[type[JSONObject]], modifier[public], parameter[refreshToken]] begin[{] local_variable[type[Map], param] call[param.put, parameter[literal["refresh_token"], member[.refreshToken]]] call[param.put, ...
Keyword[public] identifier[JSONObject] identifier[invalidateRefreshToken] operator[SEP] identifier[String] identifier[refreshToken] operator[SEP] Keyword[throws] identifier[IOException] , identifier[KiteException] , identifier[JSONException] { identifier[Map] operator[<] identifier[String] , identifier[Object...
public static HttpMockServer start(ConfigReader configReader, NetworkType networkType) { return HttpMockServer.startMockApiServer(configReader, networkType); }
class class_name[name] begin[{] method[start, return_type[type[HttpMockServer]], modifier[public static], parameter[configReader, networkType]] begin[{] return[call[HttpMockServer.startMockApiServer, parameter[member[.configReader], member[.networkType]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[HttpMockServer] identifier[start] operator[SEP] identifier[ConfigReader] identifier[configReader] , identifier[NetworkType] identifier[networkType] operator[SEP] { Keyword[return] identifier[HttpMockServer] operator[SEP] identifier[startMockApiServer] operator[SEP] ide...
public String getFullName() { StringBuffer buf = new StringBuffer(); if (getParentPrivlige() != null) { buf.append(parentPrivlige.getFullName().concat(" > ")); } buf.append(getPriviligeName()); return buf.toString(); }
class class_name[name] begin[{] method[getFullName, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[StringBuffer], buf] if[binary_operation[call[.getParentPrivlige, parameter[]], !=, literal[null]]] begin[{] call[buf.append,...
Keyword[public] identifier[String] identifier[getFullName] operator[SEP] operator[SEP] { identifier[StringBuffer] identifier[buf] operator[=] Keyword[new] identifier[StringBuffer] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[getParentPrivlige] operator[SEP] operator[SEP] operato...
private int binarySearch(SimpleMDAGNode[] mdagDataArray, char node) { if (transitionSetSize < 1) { return -1; } int high = transitionSetBeginIndex + transitionSetSize - 1; int low = transitionSetBeginIndex; while (low <= high) { int mid...
class class_name[name] begin[{] method[binarySearch, return_type[type[int]], modifier[private], parameter[mdagDataArray, node]] begin[{] if[binary_operation[member[.transitionSetSize], <, literal[1]]] begin[{] return[literal[1]] else begin[{] None end[}] loca...
Keyword[private] Keyword[int] identifier[binarySearch] operator[SEP] identifier[SimpleMDAGNode] operator[SEP] operator[SEP] identifier[mdagDataArray] , Keyword[char] identifier[node] operator[SEP] { Keyword[if] operator[SEP] identifier[transitionSetSize] operator[<] Other[1] operator[SEP] { Keyword[r...
private void showRobotsTxt() throws Exception { CmsObject cms = getCmsObject(); StringBuffer buffer = new StringBuffer(); I_CmsResourceType seoFileType = OpenCms.getResourceManager().getResourceType( CmsXmlSeoConfiguration.SEO_FILE_TYPE); List<CmsResource> seoFiles = c...
class class_name[name] begin[{] method[showRobotsTxt, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[CmsObject], cms] local_variable[type[StringBuffer], buffer] local_variable[type[I_CmsResourceType], seoFileType] local_variable[type[List], seoFi...
Keyword[private] Keyword[void] identifier[showRobotsTxt] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { identifier[CmsObject] identifier[cms] operator[=] identifier[getCmsObject] operator[SEP] operator[SEP] operator[SEP] identifier[StringBuffer] identifier[buffer] operator[=] Keyword[new] id...
public Request createGetRequest(String url, String apiKey, String accessToken) { HttpUrl.Builder httpBuilder = HttpUrl.parse(url).newBuilder(); return new Request.Builder().url(httpBuilder.build()).header("User-Agent", USER_AGENT).header("X-Kite-Version", "3").header("Authorization", "token "+apiKey+":"...
class class_name[name] begin[{] method[createGetRequest, return_type[type[Request]], modifier[public], parameter[url, apiKey, accessToken]] begin[{] local_variable[type[HttpUrl], httpBuilder] return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], pre...
Keyword[public] identifier[Request] identifier[createGetRequest] operator[SEP] identifier[String] identifier[url] , identifier[String] identifier[apiKey] , identifier[String] identifier[accessToken] operator[SEP] { identifier[HttpUrl] operator[SEP] identifier[Builder] identifier[httpBuilder] operator[=] identi...
static String encodeUriComponent(String source, String encoding, Type type) throws UnsupportedEncodingException { if (source == null) { return null; } Assert.hasLength(encoding, "Encoding must not be empty"); byte[] bytes = encodeBytes(source.getBytes(encoding), type); return new String(bytes, "US-ASCII");...
class class_name[name] begin[{] method[encodeUriComponent, return_type[type[String]], modifier[static], parameter[source, encoding, type]] begin[{] if[binary_operation[member[.source], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] ...
Keyword[static] identifier[String] identifier[encodeUriComponent] operator[SEP] identifier[String] identifier[source] , identifier[String] identifier[encoding] , identifier[Type] identifier[type] operator[SEP] Keyword[throws] identifier[UnsupportedEncodingException] { Keyword[if] operator[SEP] identifier[sourc...
public License<ConnectorDescriptor> getOrCreateLicense() { Node node = model.getOrCreate("license"); License<ConnectorDescriptor> license = new LicenseImpl<ConnectorDescriptor>(this, "license", model, node); return license; }
class class_name[name] begin[{] method[getOrCreateLicense, return_type[type[License]], modifier[public], parameter[]] begin[{] local_variable[type[Node], node] local_variable[type[License], license] return[member[.license]] end[}] END[}]
Keyword[public] identifier[License] operator[<] identifier[ConnectorDescriptor] operator[>] identifier[getOrCreateLicense] operator[SEP] operator[SEP] { identifier[Node] identifier[node] operator[=] identifier[model] operator[SEP] identifier[getOrCreate] operator[SEP] literal[String] operator[SEP] operator[SEP] ...
public void incrementRetryCount(String clientId) { Integer retryCount = this.retryCounts.get(clientId); this.retryCounts.put(clientId, retryCount == null ? 1 : retryCount + 1); }
class class_name[name] begin[{] method[incrementRetryCount, return_type[void], modifier[public], parameter[clientId]] begin[{] local_variable[type[Integer], retryCount] THIS[member[None.retryCounts]call[None.put, parameter[member[.clientId], TernaryExpression(condition=BinaryOperation(o...
Keyword[public] Keyword[void] identifier[incrementRetryCount] operator[SEP] identifier[String] identifier[clientId] operator[SEP] { identifier[Integer] identifier[retryCount] operator[=] Keyword[this] operator[SEP] identifier[retryCounts] operator[SEP] identifier[get] operator[SEP] identifier[clientId] operator[...
@Override public void forEach(Consumer<? super P_OUT> action) { evaluate(ForEachOps.makeRef(action, false)); }
class class_name[name] begin[{] method[forEach, return_type[void], modifier[public], parameter[action]] begin[{] call[.evaluate, parameter[call[ForEachOps.makeRef, parameter[member[.action], literal[false]]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[forEach] operator[SEP] identifier[Consumer] operator[<] operator[?] Keyword[super] identifier[P_OUT] operator[>] identifier[action] operator[SEP] { identifier[evaluate] operator[SEP] identifier[ForEachOps] operator[SEP] identifier[makeRe...
public JenkinsServer updateJob(String jobName, String jobXml, boolean crumbFlag) throws IOException { return updateJob(null, jobName, jobXml, crumbFlag); }
class class_name[name] begin[{] method[updateJob, return_type[type[JenkinsServer]], modifier[public], parameter[jobName, jobXml, crumbFlag]] begin[{] return[call[.updateJob, parameter[literal[null], member[.jobName], member[.jobXml], member[.crumbFlag]]]] end[}] END[}]
Keyword[public] identifier[JenkinsServer] identifier[updateJob] operator[SEP] identifier[String] identifier[jobName] , identifier[String] identifier[jobXml] , Keyword[boolean] identifier[crumbFlag] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[return] identifier[updateJob] operator[SEP] Other...
protected void updatePropertiesInternal(Iterable<Property> properties, Iterable<PropertyRemoveMutation> propertyRemoves) { if (propertyRemoves != null) { this.propertyRemoveMutations = new ConcurrentSkipListSet<>(); for (PropertyRemoveMutation propertyRemoveMutation : propertyRemoves) { ...
class class_name[name] begin[{] method[updatePropertiesInternal, return_type[void], modifier[protected], parameter[properties, propertyRemoves]] begin[{] if[binary_operation[member[.propertyRemoves], !=, literal[null]]] begin[{] assign[THIS[member[None.propertyRemoveMuta...
Keyword[protected] Keyword[void] identifier[updatePropertiesInternal] operator[SEP] identifier[Iterable] operator[<] identifier[Property] operator[>] identifier[properties] , identifier[Iterable] operator[<] identifier[PropertyRemoveMutation] operator[>] identifier[propertyRemoves] operator[SEP] { Keyword[if] o...
private void writeObject(final ObjectOutputStream out) throws IOException { out.defaultWriteObject(); out.writeObject(_validAlleles); for (EnumGene<?> gene : _genes) { out.writeInt(gene.getAlleleIndex()); } }
class class_name[name] begin[{] method[writeObject, return_type[void], modifier[private], parameter[out]] begin[{] call[out.defaultWriteObject, parameter[]] call[out.writeObject, parameter[member[._validAlleles]]] ForStatement(body=BlockStatement(label=None, statements=[...
Keyword[private] Keyword[void] identifier[writeObject] operator[SEP] Keyword[final] identifier[ObjectOutputStream] identifier[out] operator[SEP] Keyword[throws] identifier[IOException] { identifier[out] operator[SEP] identifier[defaultWriteObject] operator[SEP] operator[SEP] operator[SEP] identifier[out] operato...
public static void set( Object obj, String method, String value ) throws NoSuchMethodException { for( Setter s : c_setters ) { try { s.set( obj, method, value ); return; } catch(Exception e) {} } ...
class class_name[name] begin[{] method[set, return_type[void], modifier[public static], parameter[obj, method, value]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=obj, postfix_ope...
Keyword[public] Keyword[static] Keyword[void] identifier[set] operator[SEP] identifier[Object] identifier[obj] , identifier[String] identifier[method] , identifier[String] identifier[value] operator[SEP] Keyword[throws] identifier[NoSuchMethodException] { Keyword[for] operator[SEP] identifier[Setter] identifie...
public RawProperty addExperimentalProperty(String name, ICalDataType dataType, String value) { RawProperty raw = new RawProperty(name, dataType, value); addProperty(raw); return raw; }
class class_name[name] begin[{] method[addExperimentalProperty, return_type[type[RawProperty]], modifier[public], parameter[name, dataType, value]] begin[{] local_variable[type[RawProperty], raw] call[.addProperty, parameter[member[.raw]]] return[member[.raw]] end[}] END[}]
Keyword[public] identifier[RawProperty] identifier[addExperimentalProperty] operator[SEP] identifier[String] identifier[name] , identifier[ICalDataType] identifier[dataType] , identifier[String] identifier[value] operator[SEP] { identifier[RawProperty] identifier[raw] operator[=] Keyword[new] identifier[RawPro...
public boolean mkdirs(String src, PermissionStatus permissions ) throws IOException { INode newNode = mkdirsInternal(src, permissions); getEditLog().logSync(false); if (newNode != null && auditLog.isInfoEnabled()) { logAuditEvent(getCurrentUGI(), Server.getRemoteIp(), "mkdirs", src, ...
class class_name[name] begin[{] method[mkdirs, return_type[type[boolean]], modifier[public], parameter[src, permissions]] begin[{] local_variable[type[INode], newNode] call[.getEditLog, parameter[]] if[binary_operation[binary_operation[member[.newNode], !=, literal[null]...
Keyword[public] Keyword[boolean] identifier[mkdirs] operator[SEP] identifier[String] identifier[src] , identifier[PermissionStatus] identifier[permissions] operator[SEP] Keyword[throws] identifier[IOException] { identifier[INode] identifier[newNode] operator[=] identifier[mkdirsInternal] operator[SEP] identifie...
public void addMunged (Class<?> clazz, String... replace) { String name = clazz.getName(); for (int ii = 0; ii < replace.length; ii += 2) { name = name.replace(replace[ii], replace[ii+1]); } _imports.add(name); }
class class_name[name] begin[{] method[addMunged, return_type[void], modifier[public], parameter[clazz, replace]] begin[{] local_variable[type[String], name] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=nam...
Keyword[public] Keyword[void] identifier[addMunged] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] , identifier[String] operator[...] identifier[replace] operator[SEP] { identifier[String] identifier[name] operator[=] identifier[clazz] operator[SEP] identifier[getName] ope...
protected void writeDatabasePropertiesFile(String host, String port, String database, String user, String password, boolean useSSL, String schema) { File file = new File(System.getProperty("annis.home") + "/conf", "database.properties"); try (BufferedWriter writer = new BufferedWriter(new FileWriter...
class class_name[name] begin[{] method[writeDatabasePropertiesFile, return_type[void], modifier[protected], parameter[host, port, database, user, password, useSSL, schema]] begin[{] local_variable[type[File], file] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[L...
Keyword[protected] Keyword[void] identifier[writeDatabasePropertiesFile] operator[SEP] identifier[String] identifier[host] , identifier[String] identifier[port] , identifier[String] identifier[database] , identifier[String] identifier[user] , identifier[String] identifier[password] , Keyword[boolean] identifier[us...
@Override public void onUnstructuredSSResponse(UnstructuredSSResponse unstrResInd) { // This error condition. Client should never receive the // UnstructuredSSResponseIndication logger.error(String.format("onUnstructuredSSResponseIndication for Dialog=%d and invokeId=%d", uns...
class class_name[name] begin[{] method[onUnstructuredSSResponse, return_type[void], modifier[public], parameter[unstrResInd]] begin[{] call[logger.error, parameter[call[String.format, parameter[literal["onUnstructuredSSResponseIndication for Dialog=%d and invokeId=%d"], call[unstrResInd.getMAPD...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[onUnstructuredSSResponse] operator[SEP] identifier[UnstructuredSSResponse] identifier[unstrResInd] operator[SEP] { identifier[logger] operator[SEP] identifier[error] operator[SEP] identifier[String] operator[SEP] identifier[format] opera...
private boolean isSerializableType(Class<?> type) { Boolean serializable = cache.get(type); if (serializable != null) { return serializable; } if (type == Object.class) { return true; } if (primitiveTypes.contains(type)) { cache.put(type, true); return true; } ...
class class_name[name] begin[{] method[isSerializableType, return_type[type[boolean]], modifier[private], parameter[type]] begin[{] local_variable[type[Boolean], serializable] if[binary_operation[member[.serializable], !=, literal[null]]] begin[{] return[member[.serializable...
Keyword[private] Keyword[boolean] identifier[isSerializableType] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[type] operator[SEP] { identifier[Boolean] identifier[serializable] operator[=] identifier[cache] operator[SEP] identifier[get] operator[SEP] identifier[type] operator[SE...
public static void run(String aplicationName, String applicationDisplayName, String applicationVersion, Builder<Pcap, Void> builder) { Validate.notIllegalArgument(builder != null, new IllegalArgumentException("Pcap builder should be not null.")); instance.context = new ApplicationContext...
class class_name[name] begin[{] method[run, return_type[void], modifier[public static], parameter[aplicationName, applicationDisplayName, applicationVersion, builder]] begin[{] call[Validate.notIllegalArgument, parameter[binary_operation[member[.builder], !=, literal[null]], ClassCreator(argume...
Keyword[public] Keyword[static] Keyword[void] identifier[run] operator[SEP] identifier[String] identifier[aplicationName] , identifier[String] identifier[applicationDisplayName] , identifier[String] identifier[applicationVersion] , identifier[Builder] operator[<] identifier[Pcap] , identifier[Void] operator[>] iden...
public static final String isDestinationPrefixValid(String destinationPrefix) { String result = VALID; // Assume the prefix is valid until we know otherwise. boolean isValid = true; // null indicates that no destination prefix is being used. if (null != destinationPrefix) {...
class class_name[name] begin[{] method[isDestinationPrefixValid, return_type[type[String]], modifier[final public static], parameter[destinationPrefix]] begin[{] local_variable[type[String], result] local_variable[type[boolean], isValid] if[binary_operation[literal[null], !=, me...
Keyword[public] Keyword[static] Keyword[final] identifier[String] identifier[isDestinationPrefixValid] operator[SEP] identifier[String] identifier[destinationPrefix] operator[SEP] { identifier[String] identifier[result] operator[=] identifier[VALID] operator[SEP] Keyword[boolean] identifier[isValid] operator[=] ...
private int getPlateStartIndex(int plateNum) { Preconditions.checkArgument(plateNum >= 0 && plateNum < plateNames.size()); int startOffset = fixedVariableMaxInd + 1; for (int i = 0; i < plateNum; i++) { startOffset += plates.get(i).getMaximumPlateSize() * maximumReplications[i]; } return start...
class class_name[name] begin[{] method[getPlateStartIndex, return_type[type[int]], modifier[private], parameter[plateNum]] begin[{] call[Preconditions.checkArgument, parameter[binary_operation[binary_operation[member[.plateNum], >=, literal[0]], &&, binary_operation[member[.plateNum], <, call[p...
Keyword[private] Keyword[int] identifier[getPlateStartIndex] operator[SEP] Keyword[int] identifier[plateNum] operator[SEP] { identifier[Preconditions] operator[SEP] identifier[checkArgument] operator[SEP] identifier[plateNum] operator[>=] Other[0] operator[&&] identifier[plateNum] operator[<] identifier[plateNam...
public static TaggableReadPreference valueOf(final String name, final List<TagSet> tagSetList) { return valueOf(name, tagSetList, null, MILLISECONDS); }
class class_name[name] begin[{] method[valueOf, return_type[type[TaggableReadPreference]], modifier[public static], parameter[name, tagSetList]] begin[{] return[call[.valueOf, parameter[member[.name], member[.tagSetList], literal[null], member[.MILLISECONDS]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[TaggableReadPreference] identifier[valueOf] operator[SEP] Keyword[final] identifier[String] identifier[name] , Keyword[final] identifier[List] operator[<] identifier[TagSet] operator[>] identifier[tagSetList] operator[SEP] { Keyword[return] identifier[valueOf] operator...
public int compareTo (DoubleBuffer otherBuffer) { int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() : otherBuffer.remaining(); int thisPos = position; int otherPos = otherBuffer.position; // BEGIN android-changed double thisDouble, otherDouble...
class class_name[name] begin[{] method[compareTo, return_type[type[int]], modifier[public], parameter[otherBuffer]] begin[{] local_variable[type[int], compareRemaining] local_variable[type[int], thisPos] local_variable[type[int], otherPos] local_variable[type[double], thisDouble...
Keyword[public] Keyword[int] identifier[compareTo] operator[SEP] identifier[DoubleBuffer] identifier[otherBuffer] operator[SEP] { Keyword[int] identifier[compareRemaining] operator[=] operator[SEP] identifier[remaining] operator[SEP] operator[SEP] operator[<] identifier[otherBuffer] operator[SEP] identifier[rema...
public RecoveryPlan createRecoveryPlan(final AeronArchive archive, final int serviceCount) { final ArrayList<Snapshot> snapshots = new ArrayList<>(); final ArrayList<Log> logs = new ArrayList<>(); planRecovery(snapshots, logs, entries, archive, serviceCount); long lastLeadershipTerm...
class class_name[name] begin[{] method[createRecoveryPlan, return_type[type[RecoveryPlan]], modifier[public], parameter[archive, serviceCount]] begin[{] local_variable[type[ArrayList], snapshots] local_variable[type[ArrayList], logs] call[.planRecovery, parameter[member[.snapsho...
Keyword[public] identifier[RecoveryPlan] identifier[createRecoveryPlan] operator[SEP] Keyword[final] identifier[AeronArchive] identifier[archive] , Keyword[final] Keyword[int] identifier[serviceCount] operator[SEP] { Keyword[final] identifier[ArrayList] operator[<] identifier[Snapshot] operator[>] identifier[sn...
@Override public DeleteActivityResult deleteActivity(DeleteActivityRequest request) { request = beforeClientExecution(request); return executeDeleteActivity(request); }
class class_name[name] begin[{] method[deleteActivity, return_type[type[DeleteActivityResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeDeleteActivity, parameter[member[.reques...
annotation[@] identifier[Override] Keyword[public] identifier[DeleteActivityResult] identifier[deleteActivity] operator[SEP] identifier[DeleteActivityRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] oper...
@Deprecated public static <T> void assumeThat(T actual, Matcher<T> matcher) { if (!matcher.matches(actual)) { throw new AssumptionViolatedException(actual, matcher); } }
class class_name[name] begin[{] method[assumeThat, return_type[void], modifier[public static], parameter[actual, matcher]] begin[{] if[call[matcher.matches, parameter[member[.actual]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=actual, postfix...
annotation[@] identifier[Deprecated] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] Keyword[void] identifier[assumeThat] operator[SEP] identifier[T] identifier[actual] , identifier[Matcher] operator[<] identifier[T] operator[>] identifier[matcher] operator[SEP] { Keyword[if] operator[SEP]...
public void setValue(ICalDataType dataType) { replace(VALUE, (dataType == null) ? null : dataType.getName()); }
class class_name[name] begin[{] method[setValue, return_type[void], modifier[public], parameter[dataType]] begin[{] call[.replace, parameter[member[.VALUE], TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=dataType, postfix_operators=[], prefix_operators=[], qualifier...
Keyword[public] Keyword[void] identifier[setValue] operator[SEP] identifier[ICalDataType] identifier[dataType] operator[SEP] { identifier[replace] operator[SEP] identifier[VALUE] , operator[SEP] identifier[dataType] operator[==] Other[null] operator[SEP] operator[?] Other[null] operator[:] identifier[dataType]...
public void dispatch(Event<?> event) { //eventManagement.dispatch(event); for (EventListener listener : KReflection.Holder.INSTANCE.listeners) { try { listener.handleEvent(event); } catch (Exception e) { // ignore // TODO add message kind } } }
class class_name[name] begin[{] method[dispatch, return_type[void], modifier[public], parameter[event]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=event, postfix_operators=[], pr...
Keyword[public] Keyword[void] identifier[dispatch] operator[SEP] identifier[Event] operator[<] operator[?] operator[>] identifier[event] operator[SEP] { Keyword[for] operator[SEP] identifier[EventListener] identifier[listener] operator[:] identifier[KReflection] operator[SEP] identifier[Holder] operator[SEP] id...
public List<EsaResource> queryFeatures(String searchStr) throws InstallException { List<EsaResource> features = new ArrayList<EsaResource>(); RepositoryConnectionList loginInfo = getResolveDirector().getRepositoryConnectionList(null, null, null, this.getClass().getCanonicalName() + ".queryFeatures"); ...
class class_name[name] begin[{] method[queryFeatures, return_type[type[List]], modifier[public], parameter[searchStr]] begin[{] local_variable[type[List], features] local_variable[type[RepositoryConnectionList], loginInfo] TryStatement(block=[ForStatement(body=BlockStatement(label=None,...
Keyword[public] identifier[List] operator[<] identifier[EsaResource] operator[>] identifier[queryFeatures] operator[SEP] identifier[String] identifier[searchStr] operator[SEP] Keyword[throws] identifier[InstallException] { identifier[List] operator[<] identifier[EsaResource] operator[>] identifier[features] oper...
public char getReinputKey() { String value = Optional.fromNullable(getParameter(SignalParameters.REINPUT_KEY.symbol())).or(""); return value.isEmpty() ? ' ' : value.charAt(0); }
class class_name[name] begin[{] method[getReinputKey, return_type[type[char]], modifier[public], parameter[]] begin[{] local_variable[type[String], value] return[TernaryExpression(condition=MethodInvocation(arguments=[], member=isEmpty, postfix_operators=[], prefix_operators=[], qualifier=value...
Keyword[public] Keyword[char] identifier[getReinputKey] operator[SEP] operator[SEP] { identifier[String] identifier[value] operator[=] identifier[Optional] operator[SEP] identifier[fromNullable] operator[SEP] identifier[getParameter] operator[SEP] identifier[SignalParameters] operator[SEP] identifier[REINPUT_KEY...
private Stack<QuickSortSet.Cell> forwardPath(QuickSortSet.Cell lexemeCell , LexemePath option){ //发生冲突的Lexeme栈 Stack<QuickSortSet.Cell> conflictStack = new Stack<QuickSortSet.Cell>(); QuickSortSet.Cell c = lexemeCell; //迭代遍历Lexeme链表 while(c != null && c.getLexeme() != null){ if(!option.addNotCrossLex...
class class_name[name] begin[{] method[forwardPath, return_type[type[Stack]], modifier[private], parameter[lexemeCell, option]] begin[{] local_variable[type[Stack], conflictStack] local_variable[type[QuickSortSet], c] while[binary_operation[binary_operation[member[.c], !=, liter...
Keyword[private] identifier[Stack] operator[<] identifier[QuickSortSet] operator[SEP] identifier[Cell] operator[>] identifier[forwardPath] operator[SEP] identifier[QuickSortSet] operator[SEP] identifier[Cell] identifier[lexemeCell] , identifier[LexemePath] identifier[option] operator[SEP] { identifier[Stack] op...
public synchronized void addAppBinding(ModuleMetaData mmd, String name, EJBBinding bindingObject) { Lock writeLock = javaColonLock.writeLock(); writeLock.lock(); try { JavaColonNamespaceBindings<EJBBinding> bindings = getAppBindingMap(mmd.getApplicationMetaData()); bind...
class class_name[name] begin[{] method[addAppBinding, return_type[void], modifier[synchronized public], parameter[mmd, name, bindingObject]] begin[{] local_variable[type[Lock], writeLock] call[writeLock.lock, parameter[]] TryStatement(block=[LocalVariableDeclaration(annotations=...
Keyword[public] Keyword[synchronized] Keyword[void] identifier[addAppBinding] operator[SEP] identifier[ModuleMetaData] identifier[mmd] , identifier[String] identifier[name] , identifier[EJBBinding] identifier[bindingObject] operator[SEP] { identifier[Lock] identifier[writeLock] operator[=] identifier[javaColon...
public static final Path resolveSecurely(Path rootPath, String path) { Path resolvedPath; if(path == null || path.isEmpty()) { resolvedPath = rootPath.normalize(); } else { String relativePath = removeSuperflousSlashes(path); resolvedPath = rootPath.resolve(re...
class class_name[name] begin[{] method[resolveSecurely, return_type[type[Path]], modifier[final public static], parameter[rootPath, path]] begin[{] local_variable[type[Path], resolvedPath] if[binary_operation[binary_operation[member[.path], ==, literal[null]], ||, call[path.isEmpty, par...
Keyword[public] Keyword[static] Keyword[final] identifier[Path] identifier[resolveSecurely] operator[SEP] identifier[Path] identifier[rootPath] , identifier[String] identifier[path] operator[SEP] { identifier[Path] identifier[resolvedPath] operator[SEP] Keyword[if] operator[SEP] identifier[path] operator[==] Ot...
public static Object newInstance(Class clazz, ArgumentResolver resolver){ Validate.argumentIsNotNull(clazz); for (Constructor constructor : clazz.getDeclaredConstructors()) { if (isPrivate(constructor) || isProtected(constructor)) { continue; } Class ...
class class_name[name] begin[{] method[newInstance, return_type[type[Object]], modifier[public static], parameter[clazz, resolver]] begin[{] call[Validate.argumentIsNotNull, parameter[member[.clazz]]] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryO...
Keyword[public] Keyword[static] identifier[Object] identifier[newInstance] operator[SEP] identifier[Class] identifier[clazz] , identifier[ArgumentResolver] identifier[resolver] operator[SEP] { identifier[Validate] operator[SEP] identifier[argumentIsNotNull] operator[SEP] identifier[clazz] operator[SEP] operator...
public void dispatch_event(final EventData eventData) { final TangoAttConfig tangoAttConfig = this; if (EventUtil.graphicAvailable()) { // Causes doRun.run() to be executed asynchronously // on the AWT event dispatching thread. Runnable do_work_later = new Runn...
class class_name[name] begin[{] method[dispatch_event, return_type[void], modifier[public], parameter[eventData]] begin[{] local_variable[type[TangoAttConfig], tangoAttConfig] if[call[EventUtil.graphicAvailable, parameter[]]] begin[{] local_variable[type[Runnable], do_work_l...
Keyword[public] Keyword[void] identifier[dispatch_event] operator[SEP] Keyword[final] identifier[EventData] identifier[eventData] operator[SEP] { Keyword[final] identifier[TangoAttConfig] identifier[tangoAttConfig] operator[=] Keyword[this] operator[SEP] Keyword[if] operator[SEP] identifier[EventUtil] operator[S...
public void marshall(AuthorizeIpRulesRequest authorizeIpRulesRequest, ProtocolMarshaller protocolMarshaller) { if (authorizeIpRulesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(authorizeI...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[authorizeIpRulesRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.authorizeIpRulesRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[AuthorizeIpRulesRequest] identifier[authorizeIpRulesRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[authorizeIpRulesRequest] operator[==] Other[null] operator...
@Override public Object getValue(final Object _object) throws EFapsException { final StringBuilder bldr = new StringBuilder(); boolean retNull = false; if (_object instanceof Object[]) { final Object[] object = (Object[]) _object; if (object[0] == null || ...
class class_name[name] begin[{] method[getValue, return_type[type[Object]], modifier[public], parameter[_object]] begin[{] local_variable[type[StringBuilder], bldr] local_variable[type[boolean], retNull] if[binary_operation[member[._object], instanceof, type[Object]]] begin[{] ...
annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[getValue] operator[SEP] Keyword[final] identifier[Object] identifier[_object] operator[SEP] Keyword[throws] identifier[EFapsException] { Keyword[final] identifier[StringBuilder] identifier[bldr] operator[=] Keyword[new] identifier[S...
public JRecordExtractor<T, SparseLabeledPoint> extractWithSettingsSparseLabeledPoint(String settings) { return new JRecordExtractor<>(JavaOps.extractWithSettingsSparseLabeledPoint(self, settings)); }
class class_name[name] begin[{] method[extractWithSettingsSparseLabeledPoint, return_type[type[JRecordExtractor]], modifier[public], parameter[settings]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=self, postfix_operators=[], prefix_operators=[], qualifier...
Keyword[public] identifier[JRecordExtractor] operator[<] identifier[T] , identifier[SparseLabeledPoint] operator[>] identifier[extractWithSettingsSparseLabeledPoint] operator[SEP] identifier[String] identifier[settings] operator[SEP] { Keyword[return] Keyword[new] identifier[JRecordExtractor] operator[<] operat...
@Override public ProxyIdpAuthenticationContext apply(AuthenticationContext input) { return input != null ? input.getSubcontext(ProxyIdpAuthenticationContext.class, false) : null; }
class class_name[name] begin[{] method[apply, return_type[type[ProxyIdpAuthenticationContext]], modifier[public], parameter[input]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=input, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), op...
annotation[@] identifier[Override] Keyword[public] identifier[ProxyIdpAuthenticationContext] identifier[apply] operator[SEP] identifier[AuthenticationContext] identifier[input] operator[SEP] { Keyword[return] identifier[input] operator[!=] Other[null] operator[?] identifier[input] operator[SEP] identifier[getSub...
public ServiceCall<Translation> getWord(GetWordOptions getWordOptions) { Validator.notNull(getWordOptions, "getWordOptions cannot be null"); String[] pathSegments = { "v1/customizations", "words" }; String[] pathParameters = { getWordOptions.customizationId(), getWordOptions.word() }; RequestBuilder bui...
class class_name[name] begin[{] method[getWord, return_type[type[ServiceCall]], modifier[public], parameter[getWordOptions]] begin[{] call[Validator.notNull, parameter[member[.getWordOptions], literal["getWordOptions cannot be null"]]] local_variable[type[String], pathSegments] ...
Keyword[public] identifier[ServiceCall] operator[<] identifier[Translation] operator[>] identifier[getWord] operator[SEP] identifier[GetWordOptions] identifier[getWordOptions] operator[SEP] { identifier[Validator] operator[SEP] identifier[notNull] operator[SEP] identifier[getWordOptions] , literal[String] opera...
@Override public void updateDeployments(Iterable<Deployment> deployments) { Deployment oldDeployment = deploymentColumn.getSelectedItem(); Deployment newDeployment = null; if (oldDeployment != null) { for (Deployment d : deployments) { if (d.getName().equals(oldD...
class class_name[name] begin[{] method[updateDeployments, return_type[void], modifier[public], parameter[deployments]] begin[{] local_variable[type[Deployment], oldDeployment] local_variable[type[Deployment], newDeployment] if[binary_operation[member[.oldDeployment], !=, literal...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[updateDeployments] operator[SEP] identifier[Iterable] operator[<] identifier[Deployment] operator[>] identifier[deployments] operator[SEP] { identifier[Deployment] identifier[oldDeployment] operator[=] identifier[deploymentColumn] operat...
public List<ConfigPath> findAllRootPathsFrom(final Class<? extends Configuration> confType) { return paths.stream() .filter(it -> !it.getPath().contains(DOT) && it.getRootDeclarationClass() == confType) .collect(Collectors.toList()); }
class class_name[name] begin[{] method[findAllRootPathsFrom, return_type[type[List]], modifier[public], parameter[confType]] begin[{] return[call[paths.stream, parameter[]]] end[}] END[}]
Keyword[public] identifier[List] operator[<] identifier[ConfigPath] operator[>] identifier[findAllRootPathsFrom] operator[SEP] Keyword[final] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[Configuration] operator[>] identifier[confType] operator[SEP] { Keyword[return] identifier[paths] ope...
@Override protected EmitItem generateEmitItem(List<Object> retItems, KestrelSourceId sourceId) { String groupingInfo = null; String jsonMessage = (String) retItems.get(0); try { // グルーピング情報を取得する groupingInfo = JsonValueExtractor.extractValue(jsonMessage, ...
class class_name[name] begin[{] method[generateEmitItem, return_type[type[EmitItem]], modifier[protected], parameter[retItems, sourceId]] begin[{] local_variable[type[String], groupingInfo] local_variable[type[String], jsonMessage] TryStatement(block=[StatementExpression(expression=Assi...
annotation[@] identifier[Override] Keyword[protected] identifier[EmitItem] identifier[generateEmitItem] operator[SEP] identifier[List] operator[<] identifier[Object] operator[>] identifier[retItems] , identifier[KestrelSourceId] identifier[sourceId] operator[SEP] { identifier[String] identifier[groupingInfo] op...
public synchronized RegistrationPoint getOldestRegistrationPoint() { return registrationPoints.size() == 0 ? null : registrationPoints.values().iterator().next().get(0); }
class class_name[name] begin[{] method[getOldestRegistrationPoint, return_type[type[RegistrationPoint]], modifier[synchronized public], parameter[]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[]...
Keyword[public] Keyword[synchronized] identifier[RegistrationPoint] identifier[getOldestRegistrationPoint] operator[SEP] operator[SEP] { Keyword[return] identifier[registrationPoints] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[==] Other[0] operator[?] Other[null] operator[:] identifier[...
@Override public GetDomainResult getDomain(GetDomainRequest request) { request = beforeClientExecution(request); return executeGetDomain(request); }
class class_name[name] begin[{] method[getDomain, return_type[type[GetDomainResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeGetDomain, parameter[member[.request]]]] end[}...
annotation[@] identifier[Override] Keyword[public] identifier[GetDomainResult] identifier[getDomain] operator[SEP] identifier[GetDomainRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operator[SEP] Keywo...
protected String executeTxtReceiveTxt( HttpMethod httpMethodParam, List<HeaderNameValue> headerNameValuesParam, boolean checkConnectionValidParam, String stringParam, ContentType contentTypeParam, String postfixUrlParam ) { if(stringParam == null || stringParam.isEmpty()) { throw new FluidClient...
class class_name[name] begin[{] method[executeTxtReceiveTxt, return_type[type[String]], modifier[protected], parameter[httpMethodParam, headerNameValuesParam, checkConnectionValidParam, stringParam, contentTypeParam, postfixUrlParam]] begin[{] if[binary_operation[binary_operation[member[.string...
Keyword[protected] identifier[String] identifier[executeTxtReceiveTxt] operator[SEP] identifier[HttpMethod] identifier[httpMethodParam] , identifier[List] operator[<] identifier[HeaderNameValue] operator[>] identifier[headerNameValuesParam] , Keyword[boolean] identifier[checkConnectionValidParam] , identifier[String...
public static PactDslJsonBody arrayMinMaxLike(int minSize, int maxSize, int numberExamples) { if (numberExamples < minSize) { throw new IllegalArgumentException(String.format("Number of example %d is less than the minimum size of %d", numberExamples, minSize)); } else if (numberExamples > maxSize)...
class class_name[name] begin[{] method[arrayMinMaxLike, return_type[type[PactDslJsonBody]], modifier[public static], parameter[minSize, maxSize, numberExamples]] begin[{] if[binary_operation[member[.numberExamples], <, member[.minSize]]] begin[{] ThrowStatement(expression=ClassCreat...
Keyword[public] Keyword[static] identifier[PactDslJsonBody] identifier[arrayMinMaxLike] operator[SEP] Keyword[int] identifier[minSize] , Keyword[int] identifier[maxSize] , Keyword[int] identifier[numberExamples] operator[SEP] { Keyword[if] operator[SEP] identifier[numberExamples] operator[<] identifier[minSize...
public Observable<ClusterInner> getByResourceGroupAsync(String resourceGroupName, String clusterName) { return getByResourceGroupWithServiceResponseAsync(resourceGroupName, clusterName).map(new Func1<ServiceResponse<ClusterInner>, ClusterInner>() { @Override public ClusterInner call(Serv...
class class_name[name] begin[{] method[getByResourceGroupAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, clusterName]] begin[{] return[call[.getByResourceGroupWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.clusterName]]]] end[}] END[}]
Keyword[public] identifier[Observable] operator[<] identifier[ClusterInner] operator[>] identifier[getByResourceGroupAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[clusterName] operator[SEP] { Keyword[return] identifier[getByResourceGroupWithServiceResponse...
private static List<AbstractExpression> getGbyExpressions(MaterializedViewInfo mv) { try { return AbstractExpression.fromJSONArrayString(mv.getGroupbyexpressionsjson(), null); } catch (JSONException e) { return new ArrayList<>(); } }
class class_name[name] begin[{] method[getGbyExpressions, return_type[type[List]], modifier[private static], parameter[mv]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getGroupbyexpressionsjson, postfix_operators=[], prefix_o...
Keyword[private] Keyword[static] identifier[List] operator[<] identifier[AbstractExpression] operator[>] identifier[getGbyExpressions] operator[SEP] identifier[MaterializedViewInfo] identifier[mv] operator[SEP] { Keyword[try] { Keyword[return] identifier[AbstractExpression] operator[SEP] identifier[fr...
public String getFragmentCanonicalClassName(String injectorClassName, FragmentPackageName fragmentPackageName) { return fragmentPackageName + "." + getFragmentClassName(injectorClassName, fragmentPackageName); }
class class_name[name] begin[{] method[getFragmentCanonicalClassName, return_type[type[String]], modifier[public], parameter[injectorClassName, fragmentPackageName]] begin[{] return[binary_operation[binary_operation[member[.fragmentPackageName], +, literal["."]], +, call[.getFragmentClassName, paramete...
Keyword[public] identifier[String] identifier[getFragmentCanonicalClassName] operator[SEP] identifier[String] identifier[injectorClassName] , identifier[FragmentPackageName] identifier[fragmentPackageName] operator[SEP] { Keyword[return] identifier[fragmentPackageName] operator[+] literal[String] operator[+] id...
public void refreshHard() { String action = "Reloading current page while clearing the cache"; String expected = "Cache is cleared, and the page is refreshed"; try { driver.findElement(By.tagName("body")).sendKeys(Keys.chord(Keys.CONTROL, Keys.F5)); driver.findElement(By....
class class_name[name] begin[{] method[refreshHard, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[String], action] local_variable[type[String], expected] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(argu...
Keyword[public] Keyword[void] identifier[refreshHard] operator[SEP] operator[SEP] { identifier[String] identifier[action] operator[=] literal[String] operator[SEP] identifier[String] identifier[expected] operator[=] literal[String] operator[SEP] Keyword[try] { identifier[driver] operator[SEP] identifi...
private static byte[] createChecksum(final String hrp, final byte[] values) { byte[] hrpExpanded = expandHrp(hrp); byte[] enc = new byte[hrpExpanded.length + values.length + 6]; System.arraycopy(hrpExpanded, 0, enc, 0, hrpExpanded.length); System.arraycopy(values, 0, enc, hrpExpanded.le...
class class_name[name] begin[{] method[createChecksum, return_type[type[byte]], modifier[private static], parameter[hrp, values]] begin[{] local_variable[type[byte], hrpExpanded] local_variable[type[byte], enc] call[System.arraycopy, parameter[member[.hrpExpanded], literal[0], m...
Keyword[private] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[createChecksum] operator[SEP] Keyword[final] identifier[String] identifier[hrp] , Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[values] operator[SEP] { Keyword[byte] operator[SEP] operator[SEP] identifier...
public synchronized ThreadFactory setImpl(ThreadFactory f) { ThreadFactory old; old = factory; factory = (f == null) ? this : f; return old; }
class class_name[name] begin[{] method[setImpl, return_type[type[ThreadFactory]], modifier[synchronized public], parameter[f]] begin[{] local_variable[type[ThreadFactory], old] assign[member[.old], member[.factory]] assign[member[.factory], TernaryExpression(condition=Bi...
Keyword[public] Keyword[synchronized] identifier[ThreadFactory] identifier[setImpl] operator[SEP] identifier[ThreadFactory] identifier[f] operator[SEP] { identifier[ThreadFactory] identifier[old] operator[SEP] identifier[old] operator[=] identifier[factory] operator[SEP] identifier[factory] operator[=] operator[...
public static String toHexString(int red, int green, int blue) { String hexColor = String.format("%02X%02X%02X", red, green, blue); if (hexColor.length() < 6) { hexColor = "000000".substring(0, 6 - hexColor.length()) + hexColor; } return hexColor; }
class class_name[name] begin[{] method[toHexString, return_type[type[String]], modifier[public static], parameter[red, green, blue]] begin[{] local_variable[type[String], hexColor] if[binary_operation[call[hexColor.length, parameter[]], <, literal[6]]] begin[{] a...
Keyword[public] Keyword[static] identifier[String] identifier[toHexString] operator[SEP] Keyword[int] identifier[red] , Keyword[int] identifier[green] , Keyword[int] identifier[blue] operator[SEP] { identifier[String] identifier[hexColor] operator[=] identifier[String] operator[SEP] identifier[format] operator...
public ServiceFuture<PublicIPAddressInner> createOrUpdateAsync(String resourceGroupName, String publicIpAddressName, PublicIPAddressInner parameters, final ServiceCallback<PublicIPAddressInner> serviceCallback) { return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, publicI...
class class_name[name] begin[{] method[createOrUpdateAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, publicIpAddressName, parameters, serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.createOrUpdateWithServiceResponseAsync, parame...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[PublicIPAddressInner] operator[>] identifier[createOrUpdateAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[publicIpAddressName] , identifier[PublicIPAddressInner] identifier[parameters] , Keyword[fi...
public static <V> ListenableFuture<V> whenAnyComplete(Iterable<? extends ListenableFuture<? extends V>> futures) { requireNonNull(futures, "futures is null"); checkArgument(!isEmpty(futures), "futures is empty"); ExtendedSettableFuture<V> firstCompletedFuture = ExtendedSettableFuture.create...
class class_name[name] begin[{] method[whenAnyComplete, return_type[type[ListenableFuture]], modifier[public static], parameter[futures]] begin[{] call[.requireNonNull, parameter[member[.futures], literal["futures is null"]]] call[.checkArgument, parameter[call[.isEmpty, paramet...
Keyword[public] Keyword[static] operator[<] identifier[V] operator[>] identifier[ListenableFuture] operator[<] identifier[V] operator[>] identifier[whenAnyComplete] operator[SEP] identifier[Iterable] operator[<] operator[?] Keyword[extends] identifier[ListenableFuture] operator[<] operator[?] Keyword[extends] identifie...
public Observable<ApplicationInsightsComponentBillingFeaturesInner> getAsync(String resourceGroupName, String resourceName) { return getWithServiceResponseAsync(resourceGroupName, resourceName).map(new Func1<ServiceResponse<ApplicationInsightsComponentBillingFeaturesInner>, ApplicationInsightsComponentBillingFe...
class class_name[name] begin[{] method[getAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, resourceName]] begin[{] return[call[.getWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.resourceName]]]] end[}] END[}]
Keyword[public] identifier[Observable] operator[<] identifier[ApplicationInsightsComponentBillingFeaturesInner] operator[>] identifier[getAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[resourceName] operator[SEP] { Keyword[return] identifier[getWithServiceR...
public static MozuUrl deleteLocationTypeUrl(String locationTypeCode) { UrlFormatter formatter = new UrlFormatter("/api/commerce/admin/locationtypes/{locationTypeCode}"); formatter.formatUrl("locationTypeCode", locationTypeCode); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;...
class class_name[name] begin[{] method[deleteLocationTypeUrl, return_type[type[MozuUrl]], modifier[public static], parameter[locationTypeCode]] begin[{] local_variable[type[UrlFormatter], formatter] call[formatter.formatUrl, parameter[literal["locationTypeCode"], member[.locationTypeCod...
Keyword[public] Keyword[static] identifier[MozuUrl] identifier[deleteLocationTypeUrl] operator[SEP] identifier[String] identifier[locationTypeCode] operator[SEP] { identifier[UrlFormatter] identifier[formatter] operator[=] Keyword[new] identifier[UrlFormatter] operator[SEP] literal[String] operator[SEP] operator...
@Override public void changeSize(int newRows, int newCols) { if(newRows <= 0) throw new ArithmeticException("Matrix must have a positive number of rows"); if(newCols <= 0) throw new ArithmeticException("Matrix must have a positive number of columns"); //Increase t...
class class_name[name] begin[{] method[changeSize, return_type[void], modifier[public], parameter[newRows, newCols]] begin[{] if[binary_operation[member[.newRows], <=, literal[0]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qual...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[changeSize] operator[SEP] Keyword[int] identifier[newRows] , Keyword[int] identifier[newCols] operator[SEP] { Keyword[if] operator[SEP] identifier[newRows] operator[<=] Other[0] operator[SEP] Keyword[throw] Keyword[new] identifier[Arith...
protected static int computeOptimalNumberOfHashFunctions(double approximateNumberOfElements, double requiredNumberOfBits) { double numberOfHashFunctions = (requiredNumberOfBits / approximateNumberOfElements) * Math.log(2.0d); return Double.valueOf(Math.ceil(numberOfHashFunctions)).intValue(); }
class class_name[name] begin[{] method[computeOptimalNumberOfHashFunctions, return_type[type[int]], modifier[static protected], parameter[approximateNumberOfElements, requiredNumberOfBits]] begin[{] local_variable[type[double], numberOfHashFunctions] return[call[Double.valueOf, parameter[call[M...
Keyword[protected] Keyword[static] Keyword[int] identifier[computeOptimalNumberOfHashFunctions] operator[SEP] Keyword[double] identifier[approximateNumberOfElements] , Keyword[double] identifier[requiredNumberOfBits] operator[SEP] { Keyword[double] identifier[numberOfHashFunctions] operator[=] operator[SEP] ide...
@GetMapping(path = WSFederationConstants.ENDPOINT_FEDERATION_METADATA) public void doGet(final HttpServletRequest request, final HttpServletResponse response) throws Exception { try { response.setContentType(MediaType.TEXT_HTML_VALUE); val out = response.getWriter(); val ...
class class_name[name] begin[{] method[doGet, return_type[void], modifier[public], parameter[request, response]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=TEXT_HTML_VALUE, postfix_operators=[], prefix_operators=[], qualifier=MediaType...
annotation[@] identifier[GetMapping] operator[SEP] identifier[path] operator[=] identifier[WSFederationConstants] operator[SEP] identifier[ENDPOINT_FEDERATION_METADATA] operator[SEP] Keyword[public] Keyword[void] identifier[doGet] operator[SEP] Keyword[final] identifier[HttpServletRequest] identifier[request] , Keywor...
public String getString(final String key) { Object foo = get(key); if (foo == null) { return null; } return foo.toString(); }
class class_name[name] begin[{] method[getString, return_type[type[String]], modifier[public], parameter[key]] begin[{] local_variable[type[Object], foo] if[binary_operation[member[.foo], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None e...
Keyword[public] identifier[String] identifier[getString] operator[SEP] Keyword[final] identifier[String] identifier[key] operator[SEP] { identifier[Object] identifier[foo] operator[=] identifier[get] operator[SEP] identifier[key] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[foo] operator[==] ...
public void authorize(GSSContext context, String host) throws AuthorizationException { logger.debug("Authorization: HOST/SELF"); try { GSSName expected = this.hostAuthz.getExpectedName(null, host); GSSName target = null; if (context.isInitiator()) { target = con...
class class_name[name] begin[{] method[authorize, return_type[void], modifier[public], parameter[context, host]] begin[{] call[logger.debug, parameter[literal["Authorization: HOST/SELF"]]] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimen...
Keyword[public] Keyword[void] identifier[authorize] operator[SEP] identifier[GSSContext] identifier[context] , identifier[String] identifier[host] operator[SEP] Keyword[throws] identifier[AuthorizationException] { identifier[logger] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[SEP] ope...
public CertificateCancelDeletionHeaders withLastModified(DateTime lastModified) { if (lastModified == null) { this.lastModified = null; } else { this.lastModified = new DateTimeRfc1123(lastModified); } return this; }
class class_name[name] begin[{] method[withLastModified, return_type[type[CertificateCancelDeletionHeaders]], modifier[public], parameter[lastModified]] begin[{] if[binary_operation[member[.lastModified], ==, literal[null]]] begin[{] assign[THIS[member[None.lastModified]...
Keyword[public] identifier[CertificateCancelDeletionHeaders] identifier[withLastModified] operator[SEP] identifier[DateTime] identifier[lastModified] operator[SEP] { Keyword[if] operator[SEP] identifier[lastModified] operator[==] Other[null] operator[SEP] { Keyword[this] operator[SEP] identifier[lastM...
public static Term create(Element element) { if (element instanceof StringProperty) { return create(((StringProperty) element).getValue()); } else if (element instanceof LongProperty) { return create(((LongProperty) element).getValue().longValue()); } else { throw EvaluationException.create(MSG_...
class class_name[name] begin[{] method[create, return_type[type[Term]], modifier[public static], parameter[element]] begin[{] if[binary_operation[member[.element], instanceof, type[StringProperty]]] begin[{] return[call[.create, parameter[Cast(expression=MemberReference(member=eleme...
Keyword[public] Keyword[static] identifier[Term] identifier[create] operator[SEP] identifier[Element] identifier[element] operator[SEP] { Keyword[if] operator[SEP] identifier[element] Keyword[instanceof] identifier[StringProperty] operator[SEP] { Keyword[return] identifier[create] operator[SEP] operat...
public T update(String entityId, Map<String, Object> hash, MnoHttpClient httpClient) throws AuthenticationException, ApiException, InvalidRequestException { String jsonBody = httpClient.put(getInstanceUrl(entityId), GSON.toJson(MnoMapHelper.toUnderscoreHash(hash))); Type parsingType = new MnoAccountResponseParamet...
class class_name[name] begin[{] method[update, return_type[type[T]], modifier[public], parameter[entityId, hash, httpClient]] begin[{] local_variable[type[String], jsonBody] local_variable[type[Type], parsingType] local_variable[type[MnoAccountResponse], resp] call[resp....
Keyword[public] identifier[T] identifier[update] operator[SEP] identifier[String] identifier[entityId] , identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[hash] , identifier[MnoHttpClient] identifier[httpClient] operator[SEP] Keyword[throws] identifier[AuthenticationException...
public static Locale parseLocale(String localeString) { if (localeString == null) { return Locale.US; } String[] groups = localeString.split("[-_]"); switch (groups.length) { case 1: return new Locale(groups[0]); case 2: return new Locale(groups[0], Ascii.toUpperCase(gr...
class class_name[name] begin[{] method[parseLocale, return_type[type[Locale]], modifier[public static], parameter[localeString]] begin[{] if[binary_operation[member[.localeString], ==, literal[null]]] begin[{] return[member[Locale.US]] else begin[{] None end[}] ...
Keyword[public] Keyword[static] identifier[Locale] identifier[parseLocale] operator[SEP] identifier[String] identifier[localeString] operator[SEP] { Keyword[if] operator[SEP] identifier[localeString] operator[==] Other[null] operator[SEP] { Keyword[return] identifier[Locale] operator[SEP] identifier[U...
public final ListDeviceConfigVersionsResponse listDeviceConfigVersions(DeviceName name) { ListDeviceConfigVersionsRequest request = ListDeviceConfigVersionsRequest.newBuilder() .setName(name == null ? null : name.toString()) .build(); return listDeviceConfigVersions(request); ...
class class_name[name] begin[{] method[listDeviceConfigVersions, return_type[type[ListDeviceConfigVersionsResponse]], modifier[final public], parameter[name]] begin[{] local_variable[type[ListDeviceConfigVersionsRequest], request] return[call[.listDeviceConfigVersions, parameter[member[.request...
Keyword[public] Keyword[final] identifier[ListDeviceConfigVersionsResponse] identifier[listDeviceConfigVersions] operator[SEP] identifier[DeviceName] identifier[name] operator[SEP] { identifier[ListDeviceConfigVersionsRequest] identifier[request] operator[=] identifier[ListDeviceConfigVersionsRequest] operator[S...