content
stringlengths
40
137k
"public void projectSaved(Project project, boolean savedInServer) {\n updateSyncStatus();\n}\n"
"public void delete(StateEvent deletingEvent, IndexedEventHolder indexedEventHolder) {\n Set<StreamEvent> compareStreamEvents = findEventSet(deletingEvent, indexedEventHolder);\n if (compareStreamEvents == null) {\n exhaustiveCollectionExecutor.delete(deletingEvent, indexedEventHolder);\n }\n}\n"
"private static boolean stradlesOrigin(SequenceAnnotation sa) {\n Annotation annotation = sa.getAnnotation(new QName(GBCONVNAMESPACE, STRADLESORIGIN, GBCONVPREFIX));\n if (annotation != null) {\n return true;\n }\n return false;\n}\n"
"private void processAnnotatedElements(Set<? extends Element> elements) throws IOException {\n logger.info(\"String_Node_Str\" + elements.size() + \"String_Node_Str\");\n URI uri = filer.getResource(StandardLocation.SOURCE_OUTPUT, \"String_Node_Str\", \"String_Node_Str\").toUri();\n File file = new File(uri);\...
"public void testInterceptContinueFormELDeferred() throws Exception {\n isInterceptedMethod = true;\n hamClass = FORM_CLASS;\n ltci.setMPP(mpp);\n final String elValue = \"String_Node_Str\";\n final String elWrapped = \"String_Node_Str\" + elValue + \"String_Node_Str\";\n Properties props = new Proper...
"private void parse(Tree tree) throws SAXException {\n switch(tree.getType()) {\n case JSONLexer.PAIR:\n {\n Tree valueTree = tree.getChild(1);\n if (valueTree.getType() == JSONLexer.ARRAY) {\n parse(valueTree);\n } else {\n ...
"private WhoisResources performUpdates(final HttpServletRequest request, final UpdateContext updateContext, final Collection<Update> updates) {\n final WhoisResources whoisResources = new WhoisResources();\n whoisResources.setWhoisObjects(Lists.<WhoisObject>newArrayList());\n final List<ErrorMessage> errorMess...
"public ReferenceSequence getSubsequenceAt(String contig, long start, long stop) {\n if (start > stop + 1)\n throw new SAMException(String.format(\"String_Node_Str\", start, stop));\n FastaSequenceIndexEntry indexEntry = index.getIndexEntry(contig);\n if (stop > indexEntry.getSize())\n throw new ...
"public ReturnCode save(ModelElement element, boolean... withProperty) {\n ReturnCode rc = new ReturnCode();\n addDependencies(element);\n addResourceContent(element);\n rc.setOk(util.saveResource(element.eResource()));\n if (withProperty) {\n updateProperty(element);\n }\n if (rc.isOk()) {\...
"public void endElement(String nsuri, String localName, String qName) throws TLDParsingException {\n if (!stack.peek().equals(qName)) {\n throw new TLDParsingException(\"String_Node_Str\" + qName + \"String_Node_Str\", locator);\n }\n if (stack.size() == 3) {\n if (\"String_Node_Str\".equals(qNam...
"public T getValue() {\n if (currentValue != null || allowNull()) {\n return currentValue;\n } else {\n Iterator<? extends T> i = getSelections().keySet().iterator();\n if (i.hasNext()) {\n return i.next();\n } else {\n return null;\n }\n }\n}\n"
"public void treeCollapsed(TreeEvent e) {\n ExpandableComposite theSuitedComposite = getTheSuitedComposite(e);\n ScrolledForm form = masterPage.getForm();\n Composite comp = masterPage.getChartComposite();\n if (theSuitedComposite != null && theSuitedComposite.isExpanded()) {\n getTheSuitedComposite(...
"public void getTaskStackBounds(Rect windowBounds, int topInset, int rightInset, Rect searchBarBounds, Rect taskStackBounds) {\n if (hasTransposedNavBar) {\n int swInset = getInsetToSmallestWidth(windowBounds.right - rightInset - windowBounds.left);\n taskStackBounds.set(windowBounds.left + swInset, wi...
"public static JsonTreeNode getJsonTreeNodeByJsonPath(Object[] treeNodes, String jsonPath) {\n if (treeNodes == null || treeNodes.length <= 0 || jsonPath == null) {\n return null;\n }\n if (jsonPath.isEmpty()) {\n return null;\n }\n for (Object childObj : treeNodes) {\n if (!(childOb...
"public Object toObject(Object data) {\n if (data == null)\n return null;\n if (data instanceof Data) {\n return nodeEngine.toObject(data);\n else\n return data;\n}\n"
"public void incrementFeature(T feature, K category) {\n Dictionary<T, Integer> features = this.featureCountPerCategory.get(category);\n if (features == null) {\n this.featureCountPerCategory.put(category, new Hashtable<T, Integer>(Classifier.INITIAL_FEATURE_DICTIONARY_CAPACITY));\n features = this....
"public void setSelectedActor(BaseActor actor) {\n BaseActor a = null;\n if (scn != null && actor != null) {\n a = actor;\n }\n selectedActor = a;\n setAnimationRenderer(null, null);\n}\n"
"protected void cancelPressed() {\n componentService.cancelFormValues(form.getProperties(), form.getName());\n super.cancelPressed();\n}\n"
"public long getStartOffset() {\n return Util.unsign(getLBAFirstSector()) * sectorSize;\n}\n"
"public void combineJMSDestinationDefinitionDescriptors(JndiNameEnvironment env) {\n for (JMSDestinationDefinitionDescriptor jmsddd : env.getJMSDestinationDefinitionDescriptors()) {\n JMSDestinationDefinitionDescriptor desc = getJMSDestinationDefinitionDescriptor(jmsddd.getName());\n if (desc != null) ...
"protected void updateAPIManagerDatabase(String sqlScriptPath) throws SQLException {\n log.info(\"String_Node_Str\");\n Connection connection = null;\n PreparedStatement preparedStatement = null;\n Statement statement = null;\n ResultSet resultSet = null;\n try {\n connection = APIMgtDBUtil.get...
"public void handle(AsyncResult<DatagramSocket> asyncResult) {\n if (asyncResult.succeeded()) {\n _socket.handler(new Handler<DatagramPacket>() {\n\n public void handle(DatagramPacket packet) {\n _currentObj.callMember(\"String_Node_Str\", packet.data().toString());\n }\n ...
"private void renderCreeperCharging() {\n float tickModifier = (float) (Minecraft.getSystemTime() % 3000L) / 3000.0F * 48.0F;\n float scale = 1.2F;\n GL11.glScalef(scale, scale, scale);\n renderer.bindTextureByName(\"String_Node_Str\");\n GL11.glEnable(GL11.GL_BLEND);\n GL11.glDepthMask(true);\n GL...
"public void checkWidthConstraints() throws IllegalActionException {\n int width = _getOutsideWidth(null);\n for (Parameter parameter : _widthEqualToParameter) {\n IntToken t = (IntToken) parameter.getToken();\n if (t != null) {\n if (width != t.intValue()) {\n throw new Il...
"public Sink createInstance() {\n return new Widgets(images);\n}\n"
"private void renderItem(GL gl, SubMenu subMenu, IContextMenuEntry entry, float xPosition, float yPosition) {\n AContextMenuItem item = (AContextMenuItem) entry;\n Integer itemID = hashContextMenuItemToUniqueID.get(entry);\n if (itemID == mouseOverElement || isSubElementSelected(item))\n renderHighlight...
"public void readFields(final DataInput in) throws IOException {\n try {\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n if (classLoader == null) {\n classLoader = getClass().getClassLoader();\n }\n Class<? extends Split> splitClass = (Class<Split>...
"public static String applyCodeReplacements(Iterable<CodeReplacement> replacements, String code) {\n List<CodeReplacement> sortedReplacements = ORDER_CODE_REPLACEMENTS.sortedCopy(replacements);\n validateNoOverlaps(sortedReplacements);\n StringBuilder sb = new StringBuilder();\n int lastIndex = 0;\n for ...
"public String changeSessionId() {\n Manager manager = context.getManager();\n if (manager == null) {\n throw new IllegalStateException(rb.getString(CHANGE_SESSION_ID_BEEN_CALLED_EXCEPTION));\n }\n Session session = getSessionInternal(false);\n if (session == null) {\n throw new IllegalStat...
"public Action surpressFire(Goals goals, Brain brain, Vector2f position) {\n return new WeightedGoal(brain, \"String_Node_Str\", new SurpressFireEvaluator(goals, brain.getRandomRangeMin(0.3), 0.9, position));\n}\n"
"public static File getElementsRecursively(Project project, Collection<String> elementIds, int depth, ProgressStatus progressStatus) throws ServerException, IOException, URISyntaxException {\n if (elementIds == null || elementIds.isEmpty()) {\n return null;\n }\n URIBuilder requestUri = getServiceProjec...
"public WorkflowActionConfig processOutcome(Context c, EPerson user, Workflow workflow, Step currentStep, WorkflowActionConfig currentActionConfig, ActionResult currentOutcome, XmlWorkflowItem wfi, boolean enteredNewStep) throws IOException, AuthorizeException, SQLException, WorkflowException {\n if (currentOutcome....
"private Version getPackageVersionViaRequestingBundle(String packageName, Bundle requestingBundle) {\n Version result = null;\n BundleRevision requestingBundleRevision = (BundleRevision) requestingBundle.adapt(BundleRevision.class);\n if (requestingBundleRevision != null) {\n List<BundleCapability> requ...
"private static boolean mergeWaits(Logger logger, Function fn, Block block) {\n boolean changed = false;\n boolean fin;\n do {\n fin = true;\n MultiMap<Var, WaitStatement> waitMap = buildWaitMap(block);\n Var winner = mostSharedVar(waitMap);\n if (winner != null) {\n fin ...
"public Void apply(ResultSet resultSet) {\n try {\n final List<String> expectedList = new ArrayList<String>();\n Collections.addAll(expectedList, lines);\n Collections.sort(expectedList);\n final List<String> actualList = new ArrayList<String>();\n OptiqAssert.toStringList(resultSe...
"public void testFunctions9() throws IOException {\n int[] values = new int[] { 2002, 23 };\n String[] levels = new String[] { TimeMember.TIME_LEVEL_TYPE_YEAR, TimeMember.TIME_LEVEL_TYPE_WEEK_OF_YEAR };\n TimeMember member = new TimeMember(values, levels);\n IParallelPeriod parallelPeriod = TimeFunctionFact...
"public boolean isItemValidForSlot(int slot, ItemStack stack) {\n if ((slot == SLOT_PICKAXE) && (ToolHelper.getType(stack.getItem()) == ToolHelper.TYPE_PICKAXE)) {\n if (ToolHelper.getLevel(stack) <= getUpgradeLevel()) {\n return true;\n }\n } else if ((slot == SLOT_SHOVEL) && (ToolHelper...
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(targetPointer.getFirst(game, source));\n MageObject sourceObject = source.getSourceObject(game);\n if (controller != null && sourceObject != null) {\n if (!controller.getHand().isEmpty()) {\n Cards reveale...
"public void run() {\n if (Widgets.isAccessible(worldComposite)) {\n worldComposite.getXViewer().setInput(provider.getMembers());\n }\n}\n"
"private boolean isAfter(ResolvedModuleRevision rmr1, ResolvedModuleRevision rmr2, Date date) {\n ArtifactInfo[] ais = new ArtifactInfo[] { new ResolvedModuleRevisionArtifactInfo(rmr1), new ResolvedModuleRevisionArtifactInfo(rmr2) };\n return getLatestStrategy().findLatest(ais, date) != ais[1];\n}\n"
"public void keyboardPrevPage() {\n if (KeyboardPagingPolicy.CHANGE_PAGE == keyboardPagingPolicy) {\n setKeyboardSelectedRow(-getPageSize(), true, false);\n } else if (KeyboardPagingPolicy.INCREASE_RANGE == keyboardPagingPolicy) {\n setKeyboardSelectedRow(getKeyboardSelectedRow() - PAGE_INCREMENT, t...
"public void testAppending() throws IOException {\n int counter = 0;\n String basePath = System.getProperty(\"String_Node_Str\") + \"String_Node_Str\";\n ChronicleTools.deleteDirOnExit(basePath);\n for (int k = 0; k < 15; k++) {\n RollingChronicle rc = new RollingChronicle(basePath, ChronicleConfig.T...
"public AccountInfo getAccountInformation(Account account) throws Exception {\n AccountInfo ai = new AccountInfo(this, account);\n Browser br = new Browser();\n br.postPage(\"String_Node_Str\" + getHost() + \"String_Node_Str\", \"String_Node_Str\" + account.getUser() + \"String_Node_Str\" + account.getPass() +...
"public void scan(IndexWriter writer) {\n LOGGER.debug(\"String_Node_Str\" + endRevision);\n try {\n LogEntryStart();\n repository.getRepository().log(new String[] { \"String_Node_Str\" }, startRevision, endRevision, true, true, new ISVNLogEntryHandler() {\n public void handleLogEntry(SVN...
"private void checkSchema() {\n boolean canEditSchema = false;\n boolean noSchema = false;\n for (IElementParameter param : this.getElementParameters()) {\n if (param.isShow(getElementParameters()) && param.getFieldType().equals(EParameterFieldType.SCHEMA_TYPE)) {\n canEditSchema = true;\n ...
"public void convertParam() throws Exception {\n String decodeDomain = getQ();\n decodeDomain = StringUtil.foldCase(decodeDomain);\n LOGGER.debug(\"String_Node_Str\", decodeDomain);\n String punyDomainName = DomainUtil.geneDomainPunyName(decodeDomain);\n decodeDomain = DomainUtil.deleteLastPoint(decodeDo...
"public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {\n if (holder instanceof AccountViewHolder) {\n Account account = accountsWithoutCurrent.get(position);\n ((AccountViewHolder) holder).setData(account, expiring.get(account));\n } else if (holder instanceof FooterViewHolder...
"public void performReset() {\n String str = EncogWorkBench.getInstance().displayInput(\"String_Node_Str\");\n try {\n int sz = Integer.parseInt(str);\n if (sz < 10) {\n EncogWorkBench.displayError(\"String_Node_Str\", \"String_Node_Str\");\n return;\n }\n this.po...
"public void testCopyFromTwoUriMixedSchemaAndWildcardUse() throws Exception {\n execute(\"String_Node_Str\");\n execute(\"String_Node_Str\");\n Path tmpDir = newTempDir(LifecycleScope.TEST);\n File file = new File(tmpDir.toFile(), \"String_Node_Str\");\n String r1 = \"String_Node_Str\";\n String r2 = ...
"private void restartSuggestionsOnManuallyPickedTypedWord(final InputConnection ic) {\n mWordComposer.resumeSuggestionOnKeptWord();\n final int restartLength = mWordComposer.size();\n if (DEBUG) {\n final String wordBeforeCursor = ic.getTextBeforeCursor(restartLength + 1, 0).subSequence(0, restartLength...
"public final Program program() throws RecognitionException {\n Program program = null;\n Token j = null;\n Token a = null;\n QueryMeta s1 = null;\n QueryMeta s2 = null;\n program = new Program();\n try {\n {\n {\n pushFollow(FOLLOW_statement_in_program42);\n ...
"public void setFocusedStack(int stackId) {\n if (DEBUG_FOCUS)\n Slog.d(TAG_FOCUS, \"String_Node_Str\" + stackId);\n final long callingId = Binder.clearCallingIdentity();\n try {\n synchronized (this) {\n final ActivityStack stack = mStackSupervisor.getStack(stackId);\n if (...
"private void confirmPackage(int idx, String host) {\n PackageTab tab = tabList.get(idx);\n Vector<DownloadLink> linkList = tab.getLinkList();\n int files = linkList.size();\n if (files == 0)\n return;\n Color c = new Color((int) (Math.random() * 0xffffff));\n c = c.brighter();\n FilePackage...
"private final List<Table<?>> getTables0() {\n return Arrays.<Table<?>>asList(Something.SOMETHING, Somethingcomposite.SOMETHINGCOMPOSITE, Somethingwithoutjson.SOMETHINGWITHOUTJSON);\n}\n"
"public PutServoStatesResponseType putServoStates(PutServoStatesType request) {\n PutServoStatesResponseType reply = request.getReply();\n final String servoId = request.getInstanceId();\n final Instances instances = request.getInstances();\n LoadBalancer lb = null;\n if (servoId != null) {\n try ...
"public static void writeConfig(Path path, JsonObject object) throws IOException {\n String json = GSON.toJson(object);\n try (FileOutputStream stream = new FileOutputStream(path.toFile())) {\n stream.write(json.getBytes());\n stream.close();\n } catch (IOException e) {\n e.printStackTrace...
"public org.hl7.fhir.dstu2.model.ConceptMap.ConceptMapContactComponent convertConceptMapContactComponent(org.hl7.fhir.dstu3.model.ConceptMap.ConceptMapContactComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.ConceptMap.ConceptMapContactCompo...
"protected Message buildCheckMessage(CheckNotification notification) throws Exception {\n Message message = new MimeMessage(this.session) {\n protected void updateMessageID() throws MessagingException {\n }\n };\n message.setFrom(new InternetAddress(this.fromAddress));\n for (ContactMO contact...
"private void possiblySyncAndOrRoll(final long time) throws IOException {\n final TrackedFile trackedFile = currentTrackedFile.get();\n if (time > trackedFile.projectedCloseTime) {\n if (trackedFile.totalRecords > 0) {\n trackedFile.divolteFile.closeAndPublish();\n } else {\n t...
"private void addCommonWebBundleDescriptor(WebBundleDescriptor wbd) {\n super.addBundleDescriptor(wbd);\n WebBundleDescriptorImpl webBundleDescriptor = (WebBundleDescriptorImpl) wbd;\n for (WebComponentDescriptor webComponentDesc : webBundleDescriptor.getWebComponentDescriptors()) {\n WebComponentDescri...
"public void testCommitOrder() throws TransactionException {\n Config config = new Config();\n final TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory(4);\n final HazelcastInstance h1 = factory.newHazelcastInstance(config);\n final HazelcastInstance h2 = factory.newHazelcastInstance(conf...
"public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {\n if (grantResults.length == 0) {\n deny();\n } else {\n deniedPermissions.clear();\n for (int i = 0; i < grantResults.length; i++) {\n if (grantResults[i] != PackageManager.PERMISS...
"public Set<UUID> getPlayableInHand(Game game) {\n Set<UUID> playable = new HashSet<>();\n if (!shouldSkipGettingPlayable(game)) {\n if (game.getPhase() != null && PhaseStep.CLEANUP.equals(game.getPhase().getStep().getType())) {\n for (Card card : hand.getCards(game)) {\n playable...
"public void cpuAction(int type, int adr, int data) {\n int pc = cpu.readRegister(0);\n String adrStr = getSymOrAddr(context, adr);\n String pcStr = getSymOrAddrELF(elf, pc);\n context.out.println(\"String_Node_Str\" + pcStr + \"String_Node_Str\" + adrStr + \"String_Node_Str\" + data);\n}\n"
"public boolean handleDragging(GL gl, GLMouseListener glMouseListener) {\n if (!isArrowDownDragging && !isArrowUpDragging && !isBodyDragging)\n return false;\n Point pickedPoint = glMouseListener.getPickedPoint();\n float[] fArTargetWorldCoordinates = GLCoordinateUtils.convertWindowCoordinatesToWorldCoo...
"public long getLength() {\n return Util.unsign(getPmDataCnt()) * blockSize;\n}\n"
"protected boolean shouldAvoidInstantiation() {\n return (!isInstantiated()) && (_persistence_getPropertyChangeListener() instanceof AttributeChangeListener) && !usesListOrderField() && ((WeavedAttributeValueHolderInterface) getValueHolder()).shouldAllowInstantiationDeferral();\n}\n"
"private void updateDBSSLURL() {\n if (conf != null && conf.get(PROPERTY_PREFIX + DB_SSL_ENABLED) != null) {\n final String db_ssl_enabled = normalize(conf.get(PROPERTY_PREFIX + DB_SSL_ENABLED));\n if (\"String_Node_Str\".equalsIgnoreCase(db_ssl_enabled)) {\n String db_ssl_required = conf.ge...
"private void parseChildren(String path, org.w3c.dom.Element node, Element context) throws Exception {\n reapComments(node, context);\n List<Property> properties = getChildProperties(context.getProperty(), context.getName());\n List<org.w3c.dom.Node> processed = new ArrayList<Node>();\n for (Property proper...
"public IResultSet execute(BirtCubeView view, StopSign stopSign, ICube cube, IBindingValueFetcher fetcher) throws IOException, BirtException {\n CubeQueryExecutor executor = view.getCubeQueryExecutor();\n AggregationDefinition[] aggrDefns = prepareCube(executor.getCubeQueryDefinition(), view.getAggregationRegiste...
"public void widgetSelected(SelectionEvent e) {\n intervalBaseText.setEnabled(intervalBaseButton.getSelection());\n}\n"
"private static double log(final double x, final double[] hiPrec) {\n if (x == 0) {\n return Double.NEGATIVE_INFINITY;\n }\n long bits = Double.doubleToLongBits(x);\n if ((bits & 0x8000000000000000L) != 0 || x != x) {\n if (x != 0.0) {\n if (hiPrec != null) {\n hiPrec...
"private List<InstructorResultsResponseRow> buildResponseRowsForQuestion(FeedbackQuestionAttributes question, List<FeedbackResponseAttributes> responses) {\n List<InstructorResultsResponseRow> responseRows = new ArrayList<InstructorResultsResponseRow>();\n List<String> possibleGiversWithoutResponses = bundle.getP...
"public void testPastDate() {\n Date now = new Date();\n Date past = faker.date().past(100, TimeUnit.SECONDS);\n assertThat(\"String_Node_Str\", past.getTime(), lessThan(now.getTime()));\n}\n"
"private void prepareEmfTree(List<FOXTreeNode> list, TreeNode parent, boolean ignoreMapped) {\n if (list == null || list.isEmpty()) {\n return;\n }\n String xPath = parent.getXpath();\n TreeNode realParentNode = parent;\n if (parent.isSubstitution() || parent.isChoice()) {\n realParentNode ...
"protected int startSensorbergService(String apiKey) {\n if (bootstrapper == null && (!TextUtils.isEmpty(apiKey))) {\n ResolverConfiguration configuration = new ResolverConfiguration();\n configuration.setApiToken(apiKey);\n bootstrapper = createBootstrapper(configuration);\n persistConfi...
"private IDiskArray[] getFilterResult() throws DataException, IOException {\n IDimension[] dimensions = cube.getDimesions();\n IDiskArray[] dimPosition = new IDiskArray[dimensions.length];\n for (int i = 0; i < dimPosition.length; i++) {\n Dimension dimension = (Dimension) dimensions[i];\n List j...
"private void addPermanent(PermanentView permanent, final int count) {\n if (cardDimension == null) {\n cardDimension = new Dimension(Config.dimensions.frameWidth, Config.dimensions.frameHeight);\n }\n final MagePermanent perm = Plugins.getInstance().getMagePermanent(permanent, bigCard, cardDimension, g...
"public void checkTypes(MarkerList markers, IContext context) {\n IClass iclass = this.type.getTheClass();\n if (iclass == null) {\n return;\n }\n int paramCount = iclass.parameterCount();\n if (this.patternCount != paramCount) {\n Marker m = markers.create(this.position, \"String_Node_Str\...
"public void testInvalidTransformerClass() {\n InputStream inputStream = ClassLoader.getSystemResourceAsStream(METADATA_FILE_BAD_CLASS);\n HashMap<String, Source> metadataSourceMap = new HashMap<String, Source>();\n metadataSourceMap.put(\"String_Node_Str\", new StreamSource(inputStream));\n Map<String, Map...
"public void widgetSelected(SelectionEvent e) {\n try {\n IdentityConstraintInputDialog dialog = new IdentityConstraintInputDialog(entityWrapper.getSourceEntity(), getShell(), \"String_Node_Str\", Util.getChildElementNames(\"String_Node_Str\", entityWrapper.getSourceEntity()), entityWrapper.getSourceEntityNam...
"private static void resetStatus(List[] groups, int groupIndex, int deletedNum, int level) {\n List levelList = groups[level];\n GroupInfo deletedGroup = (GroupInfo) levelList.get(groupIndex);\n int index = groupIndex + 1;\n GroupInfo groupInfo;\n while (index < levelList.size()) {\n groupInfo = (...
"public BigDecimal getBalanceDueReminder(Partner partner, Company company) {\n LOG.debug(\"String_Node_Str\", partner.getName(), company.getName());\n Query query = JPA.em().createNativeQuery(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Nod...
"private boolean checkDeleteContent(IResource[] selectedResources) {\n List<ModelElement> modelElementList = new ArrayList<ModelElement>();\n IFile file;\n ModelElement modelElement;\n boolean otherFilesExistFlag = false;\n String otherFileName = null;\n boolean anaMessageFlag = false, repMessageFlag ...
"public static ExchangeRate getExchangeRate(final Cursor cursor) {\n final String currencyCode = cursor.getString(cursor.getColumnIndexOrThrow(ExchangeRatesProvider.KEY_CURRENCY_CODE));\n final BigInteger rate = BigInteger.valueOf(cursor.getLong(cursor.getColumnIndexOrThrow(ExchangeRatesProvider.KEY_RATE)));\n ...
"public Interpreter getInterpreter(String zslang) {\n zslang = (zslang != null ? zslang : _zslang).toLowerCase(java.util.Locale.ENGLISH);\n Interpreter ip = _ips.get(zslang);\n if (ip == null) {\n if (_desktop != null && !_desktop.getWebApp().getConfiguration().isZScriptEnabled())\n throw new...
"private String getPrefixStringProperty(String memberName) {\n if (!JoinCondition.LEFT_DATASET_MEMBER.equalsIgnoreCase(memberName) && !JoinCondition.RIGHT_DATASET_MEMBER.equalsIgnoreCase(memberName))\n return super.getStringProperty(memberName);\n if (!isExtendedJointDataSet())\n return super.getStr...
"public final InputStream getContent(final URL url) {\n final String destURL = map.get(url);\n if (destURL == null) {\n throw new NoSuchEntityException(url);\n }\n final InputStream is = getClass().getClassLoader().getResourceAsStream(destURL);\n if (is == null) {\n throw new NoSuchEntityEx...
"private static ECField convertField(FiniteField field) {\n if (ECAlgorithms.isFpField(field)) {\n return new ECFieldFp(field.getCharacteristic());\n } else {\n Polynomial poly = ((PolynomialExtensionField) field).getMinimalPolynomial();\n int[] exponents = poly.getExponentsPresent();\n ...
"public boolean removeAll(final IntHashSet coll) {\n Objects.requireNonNull(coll);\n boolean acc = false;\n int value;\n for (final IntIterator iter = coll.iterator(); iter.hasNext(); acc |= remove(value)) {\n value = iter.nextValue();\n }\n return acc;\n}\n"
"public void showUsers(java.awt.event.ActionEvent evt) {\n if (presenceInfo == null) {\n return;\n }\n if (userListHUDComponent == null) {\n userListHUDPanel = new UserListHUDPanel(this, session, pm, cell);\n HUD mainHUD = HUDManagerFactory.getHUDManager().getHUD(\"String_Node_Str\");\n ...
"public static boolean chkStringIsNotEmpty(Object value) {\n boolean flag = false;\n if (value != null) {\n Predicate<String> predicates = s -> {\n return value.trim().length() > 0;\n };\n return predicates.test(value);\n }\n return flag;\n}\n"
"private ClassNode configureClass(BinaryTypeBinding type) {\n if (type.id == TypeIds.T_JavaLangObject) {\n return ClassHelper.OBJECT_TYPE;\n } else if (type.id == TypeIds.T_JavaLangString) {\n return ClassHelper.STRING_TYPE;\n } else if (type.id == TypeIds.T_JavaLangClass) {\n return Class...
"public Pair<double[], double[]> oneEval(Genotype<T> individual, int num) {\n TorusPredPreyController[] predAgents = getPredAgents(individual);\n TorusPredPreyController[] preyAgents = getPreyAgents(individual);\n exec = new TorusWorldExec();\n TorusPredPreyGame game;\n if (CommonConstants.watch) {\n ...
"public int save(String xsd) {\n try {\n WSDataModel wsObject = (WSDataModel) (xobject.getWsObject());\n wsObject.setDescription(descriptionText.getText() == null ? \"String_Node_Str\" : descriptionText.getText());\n String schema = xsd;\n if (xsd == null) {\n schema = ((Schema...
"public void omni() throws IOException, GeoIp2Exception {\n HttpTransport transport = new TestTransport();\n WebServiceClient client = new WebServiceClient.Builder(42, \"String_Node_Str\").host(\"String_Node_Str\").testTransport(transport).build();\n OmniResponse omni = client.omni(InetAddress.getByName(\"Stri...
"protected void onPostExecute(APIResponse.CODE code) {\n super.onPostExecute(code);\n View view = fragment.getView();\n if (activity != null && view != null) {\n if (activity.getSupportActionBar() != null && eventShort != null && !eventShort.isEmpty()) {\n activity.setActionBarTitle(String.fo...
"public Response updateServices(JSONArray serviceInfos) throws WebApplicationException, JSONException {\n try {\n JSONArray arr = new JSONArray();\n JSONArray errorArray = new JSONArray();\n for (int i = 0; i < serviceInfos.length(); i++) {\n JSONObject serviceInfo = serviceInfos.getJ...
"public EncryptedPrivateKey encrypt(byte[] plainBytes, KeyParameter aesKey) throws KeyCrypterException {\n checkNotNull(plainBytes);\n checkNotNull(aesKey);\n try {\n byte[] iv = new byte[BLOCK_LENGTH];\n secureRandom.nextBytes(iv);\n ParametersWithIV keyWithIv = new ParametersWithIV(aesKe...
"public void askDisconnect() {\n Context context = mLocalManager.getForegroundActivity();\n if (context == null) {\n disconnect();\n return;\n }\n Resources res = context.getResources();\n String name = getName();\n if (TextUtils.isEmpty(name)) {\n name = res.getString(R.string.bl...