language
stringclasses
2 values
func_code_string
stringlengths
63
466k
java
public Expression<Long> neq(long value) { String valueString = "'" + value + "'"; return new Expression<Long>(this, Operation.neq, valueString); }
python
def sorted_proposals(proposals, scopepref=None, typepref=None): """Sort a list of proposals Return a sorted list of the given `CodeAssistProposal`\s. `scopepref` can be a list of proposal scopes. Defaults to ``['parameter_keyword', 'local', 'global', 'imported', 'attribute', 'builtin', 'keyword']...
python
def preferred_change(data): ''' Determines preferred existing id based on curie prefix in the ranking list ''' ranking = [ 'CHEBI', 'NCBITaxon', 'COGPO', 'CAO', 'DICOM', 'UBERON', 'NLX', 'NLXANAT', 'NLXCELL', 'NLXFUNC', 'NLX...
java
public ConcurrentMap<String, Object> getAttributesFiltered() { if ( this.manager == null ) { throw new IllegalStateException( "There's no manager set." ); } final Pattern pattern = ((SessionManager)manager).getMemcachedSessionService().getSessionAttributePattern(); final Conc...
java
private synchronized void materializeWorkUnitAndDatasetStates(String datasetUrn) { if (!this.areWorkUnitStatesMaterialized) { try { CombinedWorkUnitAndDatasetState workUnitAndDatasetState = this.workUnitAndDatasetStateFunctional.getCombinedWorkUnitAndDatasetState(datasetUrn); this....
python
def list_slotnames(host=None, admin_username=None, admin_password=None): ''' List the names of all slots in the chassis. host The chassis host. admin_username The username used to access the chassis. admin_password The password used to...
python
def validate_file_handler(self): """ Here we validate that our filehandler is pointing to an existing file. If it doesnt, because file has been deleted, we close the filehander and try to reopen """ if self.fh.closed: try: self.fh = op...
java
public static boolean[] unpack(int[] packed, int length) { boolean[] bools = new boolean[length]; for (int i = 0; i < length; ++i) { bools[i] = (packed[i >> 5] & (1 << (i & 0x1f))) != 0; } return bools; }
java
public synchronized boolean add(AbstractKVStorable toAdd) { if (memorySizeInBytes >= gp.MAX_MEMORY_PER_BUCKET) { return false; } // no memory is available try { if (lastChunkIndex == -1 || position_in_chunk == memory[lastChunkIndex].length) { boole...
java
public static List<String> formatKommaSeperatedFileToList(final File input, final String encoding) throws IOException { // The List where the data from every line from the File to put. final List<String> output = new ArrayList<>(); try (BufferedReader reader = (BufferedReader)StreamExtensions.getReader(input, ...
java
public final Jar setAttribute(String name, String value) { verifyNotSealed(); if (jos != null) throw new IllegalStateException("Manifest cannot be modified after entries are added."); getManifest().getMainAttributes().putValue(name, value); return this; }
java
private static String trySkip(StringTokenizer st, String s1, Calendar cal) { while (true) { TimeZone tz = timeZoneMapping.get(s1); if (tz != null) { cal.setTimeZone(tz); if (!st.hasMoreTokens()) return null; s1 = st.nextToken(); continue; } if (voidData.contains(s1)) { if (s1.equa...
java
private void doUpgradeImage(NamespaceInfo nsInfo) throws IOException { Preconditions.checkState(nsInfo.getNamespaceID() != 0, "can't upgrade with uninitialized namespace info: %s", nsInfo.toColonSeparatedString()); LOG.info("Upgrading image " + this.getJournalId() + " with namespace info...
java
private void convertNullSafeWrapperToPrimitive( LightweightTypeReference wrapper, LightweightTypeReference primitive, XExpression context, ITreeAppendable appendable, Later expression) { // BEGIN Specific final String defaultValue = primitive.isType(boolean.class) ? "false" : "0"; //$NON-NLS-1$ //$NO...
java
@Override public void onTokenRefresh() { EasyGcm.Logger.d("Received token refresh broadcast"); EasyGcm.removeRegistrationId(getApplicationContext()); if (GcmUtils.checkCanAndShouldRegister(getApplicationContext())) { startService(GcmRegistrationService.createGcmRegistrationInte...
python
def chunkVerified(self, who, chunkNumber, chunkData): """A chunk (#chunkNumber) containing the data C{chunkData} was verified, sent to us by the Q2QAddress C{who}. """ if self.mask[chunkNumber]: # already received that chunk. return self.file.seek(chunkNum...
python
def get_next_job_by_location(plugin_name, loc, verify_job=True, conn=None): """ Deprecated - Use get_next_job """ return get_next_job(plugin_name, loc, verify_job=verify_job, conn=conn)
java
private void checkUniqueLocation(final Part part) { isUnique = isUnique == null ? true : isUnique; isUnique = (uniqueLocation == null || uniqueLocation.equals(ignorePropertyCase(part))) ? isUnique : false; if (!geoFields.isEmpty()) { Assert.isTrue(isUnique, "Different location fields are used - Distance is amb...
python
def include_fields(self, *args): r""" Include fields is the fields that you want to be returned when searching. These are in addition to the fields that are always included below. :param args: items passed in will be turned into a list :returns: :clas...
java
@SuppressWarnings("Duplicates") public static UpdateInfo isUpdateAvailable(URL repoBaseURL, String mavenGroupID, String mavenArtifactID, String mavenClassifier, @SuppressWarnings("SameParameterValue") String packaging) { String savedSetting = updatePrefs.getPre...
python
def asset_class(self) -> str: """ Returns the full asset class path for this stock """ result = self.parent.name if self.parent else "" # Iterate to the top asset class and add names. cursor = self.parent while cursor: result = cursor.name + ":" + result c...
java
public static ThaiSolarCalendar ofBuddhist( int yearOfEra, Month month, int dayOfMonth ) { return ThaiSolarCalendar.of(ThaiSolarEra.BUDDHIST, yearOfEra, month.getValue(), dayOfMonth); }
java
@Override public EClass getIfcMonetaryUnit() { if (ifcMonetaryUnitEClass == null) { ifcMonetaryUnitEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(385); } return ifcMonetaryUnitEClass; }
java
private static void definePrepareBridge(ClassFile cf, Class leaf, Class returnClass) { TypeDesc returnType = TypeDesc.forClass(returnClass); if (isPublicMethodFinal(leaf, PREPARE_METHOD_NAME, returnType, null)) { // Cannot override. return; } MethodInfo ...
python
def _initialize(self, **resource_attributes): """ Initialize a resource. Default behavior is just to set all the attributes. You may want to override this. :param resource_attributes: The resource attributes """ self._set_attributes(**resource_attributes) for att...
java
@Override public Tile getTile(int x, int y, int zoom) { return getTile(x, y, zoom, true); }
java
public void unregisterBootstrapContext(CloneableBootstrapContext bc) { if (bc != null) { if (bc.getName() == null || bc.getName().trim().equals("")) throw new IllegalArgumentException("The name of BootstrapContext is invalid: " + bc); if (bootstrapContexts.keySet().contains...
java
public JavaSound createSound(final JavaAssets.Resource rsrc, final boolean music) { final JavaSound sound = new JavaSound(); ((JavaPlatform) platform).invokeAsync(new Runnable() { public void run () { try { AudioInputStream ais = rsrc.openAudioStream(); Clip clip = AudioSystem....
python
def _get_elementwise_name_from_keras_layer(keras_layer): """ Get the keras layer name from the activation name. """ if isinstance(keras_layer, _keras.layers.Add): return 'ADD' elif isinstance(keras_layer, _keras.layers.Multiply): return 'MULTIPLY' elif isinstance(keras_layer, _ke...
java
public void addPoint(Point point, boolean moveClusterCenter) { if (moveClusterCenter) { if (isInverse()) { center.getArray().muli(points.size()).subi(point.getArray()).divi(points.size() + 1); } else { center.getArray().muli(points.size()).addi(point.getAr...
python
def find_shows_by_related(self, show_id, count=20): """doc: http://open.youku.com/docs/doc?id=63 """ url = 'https://openapi.youku.com/v2/shows/by_related.json' params = { 'client_id': self.client_id, 'show_id': show_id, 'c...
python
def _check_type(self, ref, value): """ Checks whether the type of the cut value matches the type of the concept being cut, and raises a QueryException if it doesn't match """ if isinstance(value, list): return [self._check_type(ref, val) for val in value] mod...
java
public boolean tryProbe(BaseRow record) throws IOException { if (!this.probeIterator.hasSource()) { // set the current probe value when probeIterator is null at the begging. this.probeIterator.setInstance(record); } // calculate the hash BinaryRow probeKey = probeSideProjection.apply(record); final int ...
java
public static <G, B> Bad<G, One<B>> ofOne(B value) { return new Bad<>(One.of(value)); }
java
public final void ruleXPrimaryExpression() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalXbase.g:671:2: ( ( ( rule__XPrimaryExpression__Alternatives ) ) ) // InternalXbase.g:672:2: ( ( rule__XPrimaryExpression__Alternatives ) ) ...
python
def _get_total_multipart_upload_size(self, bucket_name, object_name, upload_id): """ Get total multipart upload size. :param bucket_name: Bucket name to list parts for. :param object_name: Object name to list parts for. :param upload_id: ...
java
private Set<ApiResourceMetadata> checkResource(JCodeModel bodyCodeModel, String baseUrl, RamlResource resource, ApiResourceMetadata controller, RamlRoot document) { Set<ApiResourceMetadata> controllers = new LinkedHashSet<>(); // append resource URL to url. String url = baseUrl + resource.getRelativeUri(); i...
python
def is_simple_unit(self, unit): """Return True iff the unit is simple (as above) and matches the given unit. """ if self.unit_denom or len(self.unit_numer) > 1: return False if not self.unit_numer: # Empty string historically means no unit ret...
java
static Class<?> getTypeFromMember(Member member) throws InjectionException { Class<?> memberType = null; if (member instanceof Field) { memberType = ((Field) member).getType(); } else if (member instanceof Method) { Method method = (Method) member; if (method....
python
def keywords2marc(self, key, values): """Populate the ``695`` MARC field. Also populates the ``084`` and ``6531`` MARC fields through side effects. """ result_695 = self.get('695', []) result_084 = self.get('084', []) result_6531 = self.get('6531', []) for value in values: schema =...
java
public static void closeMASCaseManager(File caseManager) { FileWriter caseManagerWriter; try { caseManagerWriter = new FileWriter(caseManager, true); caseManagerWriter.write("}\n"); caseManagerWriter.flush(); caseManagerWriter.close(); } catch (IO...
python
def make_xml_node(graph, name, close=False, attributes=None, text="", complete=False, innerXML=""): """ Create an XML Node :param graph: Graph used to geneates prefixes :param name: Name of the tag :param close: Produce closing tag (close=False -> "<tag>", close=True -> "</tag>") :param attributes:...
java
public boolean validateCSeq(MobicentsSipServletRequest sipServletRequest) { final Request request = (Request) sipServletRequest.getMessage(); final long localCseq = cseq; final long remoteCSeq = ((CSeqHeader) request.getHeader(CSeqHeader.NAME)).getSeqNumber(); final String method = request.getMethod(); final...
python
def get_var(name, factory=None): """Gets a global variable given its name. If factory is not None and the variable is not set, factory is a callable that will set the variable. If not set, returns None. """ if name not in _VARS and factory is not None: _VARS[name] = factory() retur...
python
async def _subscribe(self, channels, is_mask): """Subscribe to given channel.""" news = [] for channel in channels: key = channel, is_mask self._channels.append(key) if key in self._plugin._subscriptions: self._plugin._subscriptions[key].append...
java
public static byte[] encrypt(RSAPublicKey key, byte[] data) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException, IllegalBlockSizeException, BadPaddingException, IOException { return encrypt(key, data, DEFAULT_CIPHER_TRANSFORMATION, DEFAULT_PADDING_SIZE); }
java
@Override public void writeTo(DataOutput out) throws IOException { out.writeByte(type); switch(type) { case DATA: Bits.writeLong(seqno, out); out.writeShort(conn_id); out.writeBoolean(first); break; case ACK: ...
java
public static BufferedWriter newWriter(File file, boolean append) throws IOException { return new BufferedWriter(new FileWriter(file, append)); }
java
public final GenerateIdentityBindingAccessTokenResponse generateIdentityBindingAccessToken( ServiceAccountName name, List<String> scope, String jwt) { GenerateIdentityBindingAccessTokenRequest request = GenerateIdentityBindingAccessTokenRequest.newBuilder() .setName(name == null ? null : ...
python
def _get_outputs(self): """List all the output NDArray. Returns ------- A list of ndarray bound to the heads of executor. """ out_size = mx_uint() handles = ctypes.POINTER(NDArrayHandle)() check_call(_LIB.MXExecutorOutputs(self.handle, ...
python
def query(self, *args, **kwargs): """ Returns a new QuerySet instance with the args ANDed to the existing set. """ clone = self._clone() queries = [] from pyes.query import Query if args: for f in args: if isinstance(f, Query):...
java
public int set(long idx, int value) { checkIndex(idx); int i = SafeCast.safeLongToInt(idx + start); int old = elements[i]; elements[i] = value; return old; }
python
def _http_request(url, method='GET', headers=None, data=None): ''' Make the HTTP request and return the body as python object. ''' req = requests.request(method, url, headers=headers, ...
java
static void declare(String source, String destination, String transcoderClass) { Entry entry = makeEntry(source.getBytes(), destination.getBytes()); entry.transcoderClass = transcoderClass; }
java
void createMethodBody(String classname, ExecutableElement methodElement, List<String> arguments, Writer writer) throws IOException { String methodName = getMethodName(methodElement); boolean ws = isWebsocketDataService(methodElement); String args = stringJoinAndDecorate(arguments, COMMA, new NothingDecorator()...
java
private void transformTextNode(Node node) { // only do some output if we are in writing mode if (m_write) { String helpString = node.getNodeValue(); m_tempString.append(helpString); } }
python
def to_nifti(obj, like=None, header=None, affine=None, extensions=Ellipsis, version=1): ''' to_nifti(obj) yields a Nifti2Image object that is as equivalent as possible to the given object obj. If obj is a Nifti2Image already, then it is returned unmolested; other deduction rules are described below....
java
@Override @PortalTransactional public IMarketplaceRating createOrUpdateRating( IMarketplaceRating marketplaceRatingImplementation) { Validate.notNull(marketplaceRatingImplementation, "MarketplaceRatingImpl must not be null"); final EntityManager entityManager = this.getEntityManager(...
java
public ModelNode translateOperationForProxy(final ModelNode op) { return translateOperationForProxy(op, PathAddress.pathAddress(op.get(OP_ADDR))); }
java
public void addTask (ExecutorTask task) { for (int ii=0, nn=_queue.size(); ii < nn; ii++) { ExecutorTask taskOnQueue = _queue.get(ii); if (taskOnQueue.merge(task)) { return; } } // otherwise, add it on _queue.add(task); //...
java
public Object visit() { Object o = null; try { TargetMetaRequest targetMetaRequest = targetMetaRequestsHolder.getTargetMetaRequest(); StringBuilder sb = new StringBuilder(targetMetaRequest.getTargetMetaDef().getCacheKey()); sb.append(targetMetaRequest.getVisitableName()); Debug.logVerbose("[JdonFr...
java
public Board createBoard(Object projectIdOrPath, String name) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm().withParam("name", name, true); Response response = post(Response.Status.CREATED, formData.asMap(), "projects", getProjectIdOrPath(projectIdOrPath), "boards"); re...
java
public synchronized T slow(Factory<T> p, Object... args) throws Exception { T result = _value; if (isMissing(result)) { _value = result = p.make(args); } return result; }
python
def parse_options(cls, line, ns={}): """ Similar to parse but returns a list of Options objects instead of the dictionary format. """ parsed = cls.parse(line, ns=ns) options_list = [] for spec in sorted(parsed.keys()): options = parsed[spec] ...
java
public Transliterator get(String ID, StringBuffer aliasReturn) { Object[] entry = find(ID); return (entry == null) ? null : instantiateEntry(ID, entry, aliasReturn); }
python
def add_apt_source(source, key=None, update=True): """Adds source url to apt sources.list. Optional to pass the key url.""" # Make a backup of list source_list = u'/etc/apt/sources.list' sudo("cp %s{,.bak}" % source_list) files.append(source_list, source, use_sudo=True) if key: # Fecth ...
python
def export_as_csv(admin_model, request, queryset): """ Generic csv export admin action. based on http://djangosnippets.org/snippets/1697/ """ # everyone has perms to export as csv unless explicitly defined if getattr(settings, 'DJANGO_EXPORTS_REQUIRE_PERM', None): admin_opts = admin_mode...
java
public static void configureBugCollection(IFindBugsEngine findBugs) { BugCollection bugs = findBugs.getBugReporter().getBugCollection(); if (bugs == null) { return; } bugs.setReleaseName(findBugs.getReleaseName()); Project project = findBugs.getProject(); S...
java
@Override public void doRender(final WComponent component, final WebXmlRenderContext renderContext) { WSection section = (WSection) component; XmlStringBuilder xml = renderContext.getWriter(); boolean renderChildren = isRenderContent(section); xml.appendTagOpen("ui:section"); xml.appendAttribute("id", comp...
java
public static List<CommerceWishList> findByGroupId(long groupId, int start, int end) { return getPersistence().findByGroupId(groupId, start, end); }
java
private boolean isCRDTReplica(int configuredReplicaCount) { final Collection<Member> dataMembers = getNodeEngine().getClusterService() .getMembers(MemberSelectors.DATA_MEMBER_SELECTOR); final Iterator<Member> dataMemberIterator = dataMembers....
java
public List<Object> find(Object locator, boolean required) throws ReferenceException { return find(Object.class, locator, required); }
java
public static ContentCodingType parseCodingType(String codingType) { Assert.hasLength(codingType, "'codingType' must not be empty"); String[] parts = StringUtils.tokenizeToStringArray(codingType, ";"); String type = parts[0].trim(); Map<String, String> parameters = null; if (parts.length > 1) { parameters...
java
public BackupLongTermRetentionVaultInner createOrUpdate(String resourceGroupName, String serverName, String recoveryServicesVaultResourceId) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, recoveryServicesVaultResourceId).toBlocking().last().body(); }
java
public <T> T createInstance(Class<T> type, String typeName) { try { return type.cast(getType(typeName).newInstance()); } catch (InstantiationException | IllegalAccessException e) { throw new IllegalArgumentException("Cannot create instance of class " + type.getName(), e); ...
java
public static String addMonoShard(String uriQuery) { Map<String, String> uriParams = Utils.parseURIQuery(uriQuery); Utils.require(!uriParams.containsKey("range"), "'range' parameter not allowed"); Utils.require(!uriParams.containsKey("shards"), "'shards' parameter not allowed"); uriParam...
java
public static double length3D(Geometry geom) { double sum = 0; for (int i = 0; i < geom.getNumGeometries(); i++) { sum += length3D((LineString) geom.getGeometryN(i)); } return sum; }
java
public void setFileShareARNList(java.util.Collection<String> fileShareARNList) { if (fileShareARNList == null) { this.fileShareARNList = null; return; } this.fileShareARNList = new com.amazonaws.internal.SdkInternalList<String>(fileShareARNList); }
java
public void closeRemoteConsumer(String key) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "closeRemoteConsumer", key); AnycastInputHandler aih = _anycastInputHandlers.get(key); if (aih != null) { ConsumerDispatcher rcd = aih.getRCD(); if (rcd !...
python
def unpack(self, token, **kwargs): """ Unpacks a JWT into its parts and base64 decodes the parts individually :param token: The JWT :param kwargs: A possible empty set of claims to verify the header against. """ if isinstance(token, str): ...
python
def map_legend_attributes(self): """Get the map legend attribute from the layer keywords if possible. :returns: None on error, otherwise the attributes (notes and units). :rtype: None, str """ LOGGER.debug('InaSAFE Map getMapLegendAttributes called') legend_attribute_lis...
python
def detect_threshold(data, snr, background=None, error=None, mask=None, mask_value=None, sigclip_sigma=3.0, sigclip_iters=None): """ Calculate a pixel-wise threshold image that can be used to detect sources. Parameters ---------- data : array_like The 2D array of th...
java
@Nonnull public static LDblPredicate dblPredicateFrom(Consumer<LDblPredicateBuilder> buildingFunction) { LDblPredicateBuilder builder = new LDblPredicateBuilder(); buildingFunction.accept(builder); return builder.build(); }
python
def resolve_tag(name, **kwargs): ''' .. versionadded:: 2017.7.2 .. versionchanged:: 2018.3.0 Instead of matching against pulled tags using :py:func:`docker.list_tags <salt.modules.dockermod.list_tags>`, this function now simply inspects the passed image name using :py:func:`d...
python
def gets(self, key): """ Get a key from server, returning the value and its CAS key. This method is for API compatibility with other implementations. :param key: Key's name :type key: six.string_types :return: Returns (key data, value), or (None, None) if the value is n...
java
public static double similarDamerauLevenshtein(String s1, String s2) { if (s1.equals(s2)) { return 1.0; } // Make sure s1 is the longest string if (s1.length() < s2.length()) { String swap = s1; s1 = s2; s2 = swap; } int b...
java
public static String escapeColors (String txt) { if (txt == null) return null; return COLOR_PATTERN.matcher(txt).replaceAll("#''$1"); }
python
def values(self): """ Array values generator for powers from zero to upper power. Useful to cast as list/tuple and for numpy/scipy integration (be careful: numpy use the reversed from the output of this function used as input to a list or a tuple constructor). """ if self._data: for ke...
java
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { try { if (com.google.api.ads.admanager.axis.v201808.WorkflowRequestServiceInterface.class.isAssignableFrom(serviceEndpointInterface)) { com.google.api.ads.admanager.axis.v201808.Wor...
python
def swapColors(self): """ Swaps the current :py:class:`Color` with the secondary :py:class:`Color`. :rtype: Nothing. """ rgba = self.color.get_0_255() self.color = self.secondColor self.secondColor = Color(rgba, '0-255')
java
private LayoutManager createLayout() { SeaGlassContext context = getContext(this); LayoutManager lm = (LayoutManager) style.get(context, "InternalFrameTitlePane.titlePaneLayout"); context.dispose(); return (lm != null) ? lm : new SeaGlassTitlePaneLayout(); }
java
public Shape createCheckMark(final int x, final int y, final int w, final int h) { double xf = w / 12.0; double hf = h / 12.0; path.reset(); path.moveTo(x, y + 7.0 * hf); path.lineTo(x + 2.0 * xf, y + 7.0 * hf); path.lineTo(x + 4.75 * xf, y + 10.0 * hf); path.lin...
java
public TranslationRequest addCode(String theSystem, String theCode) { Validate.notBlank(theSystem, "theSystem must not be null"); Validate.notBlank(theCode, "theCode must not be null"); if (getCodeableConcept() == null) { setCodeableConcept(new CodeableConcept()); } getCodeableConcept().addCoding(new Codin...
java
private void addBonds(Atom atom, List<Atom> atomsInGroup, List<Atom> allAtoms) { if(atom.getBonds()==null){ return; } for(Bond bond : atom.getBonds()) { // Now set the bonding information. Atom other = bond.getOther(atom); // If both atoms are in the group if (atomsInGroup.indexOf(other)!=-1){ ...
python
def onUserJoinedCall( self, mid=None, joined_id=None, is_video_call=None, thread_id=None, thread_type=None, ts=None, metadata=None, msg=None, ): """ Called when the client is listening, and somebody joins a group call :...
java
public boolean isSkipped(Plugin plugin) { PluginStats pluginStats = mapPluginStats.get(plugin.getId()); if (pluginStats != null && pluginStats.isSkipped()) { return true; } if (plugin.getTimeFinished() == null && stopReason != null) { this.pluginSkipped(...
python
def search(self, criterion, table, columns='', fetch=False, radius=1/60., use_converters=False, sql_search=False): """ General search method for tables. For (ra,dec) input in decimal degrees, i.e. (12.3456,-65.4321), returns all sources within 1 arcminute, or the specified radius. For st...
python
def main(argv): """Sets up all the component in their own threads.""" if flags.FLAGS.version: print("GRR server {}".format(config_server.VERSION["packageversion"])) return # We use .startswith so that multiple copies of services can easily be # created using systemd as worker1 worker2 ... worker25 etc...
java
protected static Assignment findAssignmentFromFeatureName(EObject rule, String name) { return IterableExtensions.findFirst(GrammarUtil.containedAssignments(rule), assignment -> name.equals(assignment.getFeature())); }
java
@Override public List<CommerceWishList> findByU_LtC(long userId, Date createDate, int start, int end, OrderByComparator<CommerceWishList> orderByComparator, boolean retrieveFromCache) { boolean pagination = true; FinderPath finderPath = null; Object[] finderArgs = null; finderPath = FINDER_PATH_WITH_PAG...