content
stringlengths
40
137k
"public void onItemTooltip(ItemTooltipEvent event) {\n for (Module module : Module.getModules()) module.onTooltipDisplayed(event.itemStack.copy(), event.entityPlayer, event.toolTip, event.showAdvancedItemTooltips);\n}\n"
"public void onMessage(Message message) {\n boolean matched = false;\n Move moved = null;\n try {\n String gameEvent = message.getStringProperty(\"String_Node_Str\");\n GameEvent event = GameEvent.valueOf(gameEvent);\n ObjectMessage msg = (ObjectMessage) message;\n for (GameEvent po...
"private void showLanguageSelectionDialog() {\n List<KeyboardAddOnAndBuilder> builders = getKeyboardSwitcher().getEnabledKeyboardsBuilders();\n ArrayList<CharSequence> keyboardsIds = new ArrayList<>();\n ArrayList<CharSequence> keyboards = new ArrayList<>();\n for (KeyboardAddOnAndBuilder keyboardBuilder : ...
"public void recalculateElementsTimeInterval(long startTime, long endTime) {\n long tmpInterval = (long) Math.ceil((double) (endTime - startTime) / (double) getNbElement());\n if (tmpInterval <= 0) {\n tmpInterval = 1L;\n }\n this.elementsTimeInterval = tmpInterval;\n}\n"
"private void reloadPartition(int partitionIndex, long rowCount) {\n int symbolMapIndex = 0;\n int columnBase = getColumnBase(partitionIndex);\n for (int i = 0; i < columnCount; i++) {\n growColumn(columns.getQuick(getPrimaryColumnIndex(columnBase, i)), columns.getQuick(getSecondaryColumnIndex(columnBas...
"public void roundtripTest() {\n Map<String, Object> map = new HashMap<>();\n map.put(\"String_Node_Str\", \"String_Node_Str\");\n map.put(\"String_Node_Str\", \"String_Node_Str\");\n map.put(\"String_Node_Str\", Integer.valueOf(12345));\n map.put(\"String_Node_Str\", null);\n map.put(\"String_Node_St...
"private void postProcessDocumentChange(FilterBypass filterBypass, AttributeSet attributeSet, String valueBeforeEdit, int selectionStart, int selectionEnd, boolean allowPartialAutoCompletionTerm) throws BadLocationException {\n if (doNotPostProcessDocumentChanges)\n return;\n final String valueAfterEdit = ...
"public boolean equals(PossibleAction action) {\n if (!(action instanceof BuyTrain))\n return false;\n BuyTrain a = (BuyTrain) action;\n return a.getTrain() == getTrain() && a.from == from && a.fixedCost == fixedCost && a.trainsForExchange == trainsForExchange;\n}\n"
"public void visitInsn(int opcode) throws BytecodeException {\n switch(opcode) {\n case NOP:\n return;\n case ACONST_NULL:\n this.push(NULL);\n return;\n case ICONST_M1:\n case ICONST_0:\n case ICONST_1:\n case ICONST_2:\n case ICONST_...
"public void draw(SpriteBatch batch) {\n if (isVisible()) {\n renderer.draw(batch, pos.x, pos.y, scale);\n }\n}\n"
"public void testCallUserInfoApiWithOpenIdAccessToken() throws Exception {\n Map<String, String> requestHeaders = new HashMap<String, String>();\n requestHeaders.put(\"String_Node_Str\", \"String_Node_Str\" + userAccessToken);\n HttpResponse userInfoResponse = HttpRequestUtil.doGet(gatewayUrlsMgt.getWebAppURLN...
"public Object get(final InjectionPoint injectionPoint) {\n Callable<Object> task = new Callable<Object>() {\n public Object call() throws Exception {\n Bean<R> bean = (Bean<R>) manager.resolve(manager.getBeans(actualType));\n context = manager.createCreationalContext(bean);\n ...
"public int compile(String classpath, Object[] javaFiles) {\n int jv = JavaSEPlatform.CURRENT.getMajor();\n final String javaVersion = \"String_Node_Str\" + ((jv >= 9) ? jv : JavaSEPlatform.CURRENT.toString());\n final String[] args = new String[javaFiles.length + ((jv >= 9) ? 9 : 7)];\n final String javac ...
"public Chunk getChunkLive() {\n return getTransform().getTransformLive().getPosition().getChunk(LoadOption.NO_LOAD);\n}\n"
"public final void setAdqlTable(final ADQLTable table) {\n if (table != null) {\n adqlTable = table;\n query = null;\n }\n}\n"
"public void startTable(ITableContent table) {\n ContainerSizeInfo sizeInfo = engine.getCurrentContainer().getSizeInfo();\n int width = sizeInfo.getWidth();\n int[] columns = LayoutUtil.createTable(table, LayoutUtil.getElementWidth(table, width));\n ColumnsInfo info = new ColumnsInfo(columns);\n String c...
"public static Object max(Evaluator evaluator, List members, Calc exp) {\n SetWrapper sw = evaluateSet(evaluator, members, exp);\n if (sw.errorCount > 0) {\n return Double.NaN;\n } else {\n double max = Double.MIN_VALUE;\n for (int i = 0; i < sw.v.size(); i++) {\n double iValue ...
"private boolean _checkDisconnectedComponents(FastLinkedList<NamedObj>.Entry lhsStart, FastLinkedList<NamedObj>.Entry hostStart) {\n FastLinkedList<NamedObj>.Entry lhsEntry = lhsStart;\n while (lhsEntry != null) {\n NamedObj lhsObject = lhsEntry.getValue();\n if (lhsObject instanceof CompositeEntity...
"private void extractMethod() {\n AST ast = sourceTypeDeclaration.getAST();\n MethodDeclaration newMethodDeclaration = ast.newMethodDeclaration();\n VariableDeclaration returnedVariableDeclaration = slice.getLocalVariableCriterion();\n SimpleName returnedVariableSimpleName = returnedVariableDeclaration.getN...
"public Text load(UltimateUser user) {\n PlayerDataFile config = new PlayerDataFile(user.getIdentifier());\n CommentedConfigurationNode node = config.get();\n Text name = Messages.toText(node.getNode(\"String_Node_Str\").getString());\n if (name == null)\n return null;\n if (!name.toPlain().matche...
"private void showAlert(String title, String msg, boolean button) {\n AlertDialog aDialog = null;\n if (button) {\n aDialog = new AlertDialog.Builder(this).setIcon(R.drawable.icon).setTitle(title).setMessage(msg).setPositiveButton(android.R.string.ok, null).show();\n } else {\n aDialog = new Aler...
"public void setDuty(double duty) {\n if (duty < 0.0 || duty > 1.0) {\n throw new IllegalArgumentException(\"String_Node_Str\" + duty);\n }\n this.duty = duty;\n setPwmImpl(getFrequency(), duty);\n}\n"
"public void testJoinConfirmation() throws Exception {\n ______TS(\"String_Node_Str\");\n String joinActionUrl = TestProperties.inst().TEAMMATES_URL + Const.ActionURIs.INSTRUCTOR_COURSE_JOIN;\n String joinLink = Url.addParamToUrl(joinActionUrl, Const.ParamsNames.REGKEY, invalidEncryptedKey);\n browser.drive...
"public void resetPropertiesValues() {\n stepRatio = (float) 0.9;\n progress = 0;\n converged = false;\n optimalDistance = getAverageEdge(graph);\n System.out.println(\"String_Node_Str\" + optimalDistance);\n step = (float) optimalDistance / 10000;\n relativeStrength = (float) 0.2;\n}\n"
"public synchronized void release() {\n Enumeration<Connection> allConnections = pool.elements();\n while (allConnections.hasMoreElements()) {\n logger.debug(\"String_Node_Str\");\n Connection con = allConnections.nextElement();\n try {\n con.close();\n logger.debug(\"St...
"private void resetAttachmentImage() {\n if (selectedAttachment == null) {\n this.imageView1.setImageResource(R.drawable.hs_add_attachment_img);\n } else {\n try {\n Uri uri = Uri.parse(selectedAttachment.getUrl());\n Bitmap selectedBitmap;\n selectedBitmap = downsca...
"public void testPESSIMISTIC_ExtendedScope() {\n ServerSession session = JUnitTestCase.getServerSession();\n if (isOnServer() || !isSelectForUpateSupported() || !isPessimisticWriteLockSupported()) {\n return;\n }\n ServerSession ss = ((EntityManagerFactoryImpl) getEntityManagerFactory()).getServerSes...
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.busfollower);\n dataFetcher = new OCTranspoDataFetcher(this);\n db = (new DatabaseHelper(this)).getReadableDatabase();\n mapView = (MapView) findViewById(R.id.mapView);\n mapView.setBuilt...
"public boolean loadClassifier(String filename) {\n File selected = new File(filename);\n try {\n InputStream is = new FileInputStream(selected);\n if (selected.getName().endsWith(weka.gui.explorer.ClassifierPanel.PMML_FILE_EXTENSION)) {\n weka.core.pmml.PMMLModel model = weka.core.pmml.P...
"public Iterator<Vertex> vertices(Direction direction, String... edgeLabels) {\n SqlgVertex.this.sqlgGraph.tx().readWrite();\n if (this.sqlgGraph.tx().getBatchManager().isStreaming()) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n return vertices(Collections.emptyList(), direction, e...
"public Vector extractPrimaryKeyFromObject(Object domainObject, AbstractSession session, boolean shouldReturnNullIfNull) {\n boolean isPersistenceEntity = domainObject instanceof PersistenceEntity;\n if (isPersistenceEntity) {\n Vector key = ((PersistenceEntity) domainObject)._persistence_getPKVector();\n ...
"private void release() {\n if (mMediaPlayer != null) {\n mMediaPlayer.reset();\n mMediaPlayer.release();\n mMediaPlayer = null;\n mCurrentState = STATE_IDLE;\n if (cleartargetstate) {\n mTargetState = STATE_IDLE;\n }\n }\n}\n"
"public void load(NBTTagCompound nbt) {\n if (nbt.hasKey(ExplosiveItemUtility.EXPLOSIVE_SAVE))\n ex = ExplosiveItemUtility.getExplosive(nbt);\n if (nbt.hasKey(\"String_Node_Str\"))\n tag = nbt.getCompoundTag(\"String_Node_Str\");\n size = ExplosiveItemUtility.getSize(nbt);\n tag = nbt.getCompo...
"public static AbstractFile getResourceAsFile(String path, ClassLoader classLoader) {\n path = removeLeadingSlash(path);\n URL aClassURL = getResourceAsURL(path, classLoader);\n if (aClassURL == null)\n return null;\n if (\"String_Node_Str\".equals(aClassURL.getProtocol())) {\n try {\n ...
"public void testFisherExact() throws MathException {\n final DifferentialExpressionCalculator deCalc = new DifferentialExpressionCalculator();\n final int numReplicates = 2;\n deCalc.defineElement(\"String_Node_Str\");\n deCalc.defineElement(\"String_Node_Str\");\n deCalc.defineGroup(\"String_Node_Str\"...
"protected int validateLikeExpression(LikeExpression expression) {\n int result = 0;\n if (expression.hasStringExpression()) {\n Expression stringExpression = expression.getStringExpression();\n StateFieldPathExpression pathExpression = getStateFieldPathExpression(stringExpression);\n if (pat...
"private void build(Node node, int nodeIndex) {\n char[] letters = node.getLetters();\n if (letters != null) {\n for (int i = 1; i < letters.length; i++) {\n char c = letters[i];\n int cid = getCharId(c);\n int empty = findFirstEmptyCheck();\n setCheck(empty, nod...
"private void selectTab(int index) {\n if (Utils.hasApi(11)) {\n getActionBar().setSelectedNavigationItem(index);\n } else {\n tabHost.setCurrentTab(index);\n }\n}\n"
"private void validate(FetchedFile file, FetchedResource r) throws Exception {\n List<ValidationMessage> errs = new ArrayList<ValidationMessage>();\n validator.validate(errs, r.getElement());\n for (ValidationMessage vm : errs) {\n file.getErrors().add(vm.setLocation(r.getElement().fhirType() + \"String...
"private void setButtons() throws ServiceException {\n Shooting activeShooting = shootingService.searchIsActive();\n if (activeShooting != null && activeShooting.getActive()) {\n startButton.setVisible(false);\n stopButton.setVisible(true);\n storage.setVisible(false);\n canclebutton.s...
"public void printInfo() {\n if (pdbId != null)\n System.out.println(\"String_Node_Str\" + pdbId + \"String_Node_Str\" + countTested + \"String_Node_Str\");\n}\n"
"private RunStats collectAndWriteRunStats(final File test, final ScriptInstrumenter instrumenter, final NativeObject allCoverageData) throws IOException {\n final RunStats runStats = new RunStats(test);\n for (final ScriptData data : instrumenter.getScriptDataList()) {\n final Scanner in = new Scanner(data...
"public static Boolean evaluateAgainst(Object constraint, Object constrained, List<Object> targets) {\n BasicConstraint c = makeConstraintFromAlternativeContexts(constraint, targets, constrained);\n Boolean result = c.evaluate();\n return result;\n}\n"
"void disconnectDevice(MidiOutputDevice midiOutputDevice) {\n if (!(midiOutputDevice instanceof jp.kshoji.blemidi.central.MidiOutputDevice)) {\n return;\n }\n}\n"
"public void setLinearizedNodes(List<ALinearizableNode> linearizedNodes) {\n float[] color;\n relationShipRenderers = new ArrayList<RelationshipRenderer>(linearizedNodes.size());\n Row baseRow = new Row(\"String_Node_Str\");\n layoutManger.setBaseElementLayout(baseRow);\n Column dataSetColumn = new Colum...
"private void extractClone() {\n this.cloneInfo = new CloneInformation();\n Set<ITypeBinding> requiredImportTypeBindings = new LinkedHashSet<ITypeBinding>();\n ITypeBinding commonSuperTypeOfSourceTypeDeclarations = null;\n if (sourceTypeDeclarations.get(0).resolveBinding().isEqualTo(sourceTypeDeclarations.g...
"private void setInvisibleBlocks(World world, int x, int y, int z, int size) {\n int meta = world.getBlockMetadata(x, y, z);\n if (meta == 2) {\n for (int i = 0; i <= size; i++) {\n for (int j = 0; j <= size; j++) {\n if (i != 0 || j != 0) {\n setInvisibleBlockS...
"public void matchOneRecord(Record oneRecord) {\n execute(oneRecord, mergedRecords, queue, callback);\n}\n"
"public boolean isElementVisible(Viewer viewer, Object element) {\n ITestResultSummaryPO m = (ITestResultSummaryPO) element;\n String metaValue = StringConstants.EMPTY;\n if (m_filterType.equals(TESTRESULT_SUMMARY_DATE)) {\n metaValue = DTF_DEFAULT.format(m.getTestsuiteDate());\n } else if (m_filterT...
"public void processImage(final BufferedImage buffered, final T undistorted) {\n BufferedImage tmp = distortedBuff;\n distortedBuff = ConvertBufferedImage.checkDeclare(undistorted.width, undistorted.height, distortedBuff, BufferedImage.TYPE_INT_RGB);\n if (tmp != distortedBuff) {\n distorted.reshape(und...
"public Workflow getWorkflow(long modelId, long analysisId) throws DatabaseHandlerException {\n Connection connection = null;\n ResultSet result = null;\n PreparedStatement getStatement = null;\n try {\n Workflow mlWorkflow = new Workflow();\n mlWorkflow.setWorkflowID(analysisId);\n con...
"public void init(ProgramController.State state, Throwable cause) {\n long startTimeInSeconds = RunIds.getTime(controller.getRunId(), TimeUnit.SECONDS);\n if (startTimeInSeconds == -1) {\n startTimeInSeconds = TimeUnit.MILLISECONDS.toSeconds(System.currentTimeMillis());\n }\n final long finalStartTim...
"public static void main(String[] args) {\n Database db = new SQLite(\"String_Node_Str\");\n StandardLogger log = new StandardLogger();\n Log.setLogger(log);\n Log.setLevel(LoggingLevel.WARN);\n MappingSession.setAutoPackageRegistration(false);\n MappingSession.registerEntity(BlogPost.class);\n Map...
"public boolean contains(final double rx, final double ry, final double rw, final double rh) {\n for (int i = 0; i != DIMENSION; i++) {\n final double min0, min1, span0, span1;\n if (i == 0) {\n min0 = x;\n span0 = width;\n min1 = rx;\n span1 = rw;\n }...
"public static String rewriteUrl(String servletUrl, String resourcePath, String responseStr) {\n logger.debug(\"String_Node_Str\");\n logger.debug(\"String_Node_Str\", servletUrl);\n try {\n String resourcePath = pathToResource.substring(1, pathToResource.length() - 1).replaceAll(\"String_Node_Str\" + C...
"private void joinConference() {\n ConferenceDescription chatConference = chatConferenceListPanel.getSelectedValue();\n if (chatConference != null)\n CallManager.call(chatPanel.getChatSession().getCurrentChatTransport().getProtocolProvider(), chatConference, chatRoom);\n}\n"
"private void showPlace(int position) {\n draggablePanel.setVisibility(View.VISIBLE);\n draggablePanel.maximize();\n PlaceViewModel placeViewModel = placesAdapter.getItem(position);\n placeFragment.showPlace(placeViewModel);\n mapFragment.getMap().clear();\n LatLng latitudeLongitude = new LatLng(place...
"public static UserDetails getUserDetails(HttpServletRequest httpRequest) {\n log.debug(\"String_Node_Str\");\n ApplicationConfigProvider.performSystemCheck();\n String authHeader = httpRequest.getHeader(\"String_Node_Str\");\n Cookie[] requestCookies = httpRequest.getCookies();\n log.debug(\"String_Node...
"private void removeMetaIndex(Index index, Session session) throws SQLException {\n int key = index.getId() + 1;\n Row row = metaIndex.getRow(session, key);\n if (row.getKey() != key) {\n Message.throwInternalError();\n }\n metaIndex.remove(session, row);\n}\n"
"private void removeAllRows() throws SQLException {\n PageData root = getPage(rootPageId, 0);\n root.freeRecursive();\n root = PageDataLeaf.create(this, rootPageId, PageData.ROOT);\n store.removeRecord(rootPageId);\n store.update(root);\n rowCount = 0;\n lastKey = 0;\n}\n"
"private void setProcessName(String newProcessName) {\n if (newProcessName == null) {\n return;\n }\n if (!newProcessName.equals(this.processName)) {\n processNameLock.lock();\n try {\n this.processName = newProcessName;\n synchronized (loggers) {\n for...
"public boolean apply(Class arg0) {\n try (TransactionResource tr = Entities.transactionFor(DirectStorageInfo.class)) {\n List<DirectStorageInfo> entities = Entities.query(new DirectStorageInfo());\n for (DirectStorageInfo entry : entities) {\n LOG.debug(\"String_Node_Str\" + entry);\n ...
"public void add(Object key, byte[] data, int length) {\n if (status == FSStatus.READING) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n lock.lock();\n try {\n recordsInMemory.add(new KeyValue(convertKeyToArray(key), data, keyComparator));\n bytesLength.add(length);\n ...
"static InstanceManager loadInstanceManager(final String instanceManagerClassName) {\n Class<? extends InstanceManager> instanceManagerClass;\n try {\n instanceManagerClass = (Class<? extends InstanceManager>) Class.forName(instanceManagerClassName);\n } catch (ClassNotFoundException e) {\n LOG.e...
"public void setSelected(boolean selected) {\n int selected_background = mContext.getResources().getColor(R.color.detail_background);\n int default_background = mContext.getResources().getColor(R.color.default_background);\n int color = selected ? selected_background : default_background;\n findViewById(R.i...
"private RhsValue reteload_rhs_value(DataInputStream dis, List<Symbol> symbolMap, List<AlphaMemory> alphaMemories) throws IOException, SoarException {\n RhsValue rv = null;\n SymbolImpl sym;\n int field_num;\n int type;\n int levels_up;\n type = dis.readInt();\n switch(type) {\n case 0:\n ...
"private void initFabToSave(final ArrayList<Uri> uris) {\n floatingActionButton.removeButton(findViewById(R.id.menu_new_folder));\n floatingActionButton.removeButton(findViewById(R.id.menu_new_file));\n floatingActionButton.removeButton(findViewById(R.id.menu_new_cloud));\n floatingActionButton.setMenuButto...
"public void onClick(View v) {\n GroceryListActivity.add_item(getApplicationContext(), tvNewItem.getText().toString());\n tvNewItem.setText(\"String_Node_Str\");\n}\n"
"public FilePerKeyMap getFilePerKeyMap(String name) {\n return fpMaps.computeIfAbsent(name, k -> {\n try {\n return new FilePerKeyMap(k);\n } catch (IOException e) {\n Jvm.rethrow(e);\n return null;\n }\n });\n}\n"
"public void show(FolderPanel folderPanel) {\n this.folderPanel = folderPanel;\n Dimension dim = getPreferredSize();\n int x = Math.max((folderPanel.getWidth() - (int) dim.getWidth()) / 2, 0);\n int y = folderPanel.getLocationTextField().getHeight() + Math.max((folderPanel.getHeight() - (int) dim.getHeight(...
"private boolean isNumericOrBooleanType(QName schemaType) {\n if (schemaType == null) {\n return false;\n } else if (schemaType.equals(XMLConstants.BOOLEAN_QNAME) || schemaType.equals(XMLConstants.INTEGER_QNAME) || schemaType.equals(XMLConstants.INT_QNAME) || schemaType.equals(XMLConstants.BYTE_QNAME) || s...
"public static void decorateBiomeEvent(DecorateBiomeEvent e) {\n if (e.getWorld().getBiome(e.getPos()).isSnowyBiome()) {\n WorldGenArms arms = new WorldGenArms();\n if (e.getRand().nextInt(30) <= 10) {\n arms.generate(e.getWorld(), e.getRand(), e.getPos());\n }\n }\n}\n"
"private void setText() {\n if (amount > 1) {\n staticText = \"String_Node_Str\" + Integer.toString(amount) + \"String_Node_Str\";\n else\n staticText = \"String_Node_Str\";\n}\n"
"private void addLocationsForCreateUpdateParameters(DatabaseAccountCreateUpdateParametersInner createUpdateParametersInner, List<FailoverPolicyInner> failoverPolicies) {\n List<Location> locations = new ArrayList<Location>();\n if (failoverPolicies.size() > 0) {\n for (int i = 0; i < failoverPolicies.size(...
"public void entryRemoved(final String input) {\n LOG.info(\"String_Node_Str\" + input);\n Databases.disable(input);\n}\n"
"protected long mapWritePage(int page) {\n releaseCurrentPage();\n long address = mapPage(page);\n if (address == -1) {\n throw CairoException.instance(Os.errno()).put(\"String_Node_Str\").put(fd).put(\"String_Node_Str\").put(pageOffset(page));\n }\n return pageAddress = address;\n}\n"
"private Map<String, Match> matchForHeaders(Match match, Map<String, String> headers, ArrayList<String> importantHeaders) throws IOException {\n Map<String, Match> matches = new HashMap<String, Match>();\n Match currentMatch = match;\n for (int i = 0; i < importantHeaders.size(); i++) {\n matches.put(im...
"public void setInvocationAddress(final String role, final String name, final List<String> endpoints) {\n super.setInvocationAddress(role, name, endpoints);\n if (targets.size() == 2) {\n secondTargetType = TrackerType.valueOf(role);\n }\n}\n"
"public void close() {\n if (extendedItemManager != null) {\n extendedItemManager.close();\n extendedItemManager = null;\n }\n if (engineExtensionManager != null) {\n engineExtensionManager.close();\n engineExtensionManager = null;\n }\n if (scriptContext != null) {\n s...
"public void widgetSelected(SelectionEvent e) {\n moveElement(masterPage.getTreeViewer(), 1);\n}\n"
"private Iterator<Point> attemptSendChunk(Iterator<Point> i, Iterable<Point> queue, Chunk c) {\n if (c.canSend()) {\n Collection<Chunk> sent = sendChunk(c);\n activeChunks.add(c.getBase());\n i.remove();\n if (sent != null) {\n boolean updated = false;\n for (Chunk s...
"public boolean renameFile(String fromFilePath, String toFilePath, boolean closeSession) {\n ChannelSftp sftp = null;\n try {\n sftp = (closeSession) ? openConnectedChannel() : openConnectedChannel(CHANNEL_1);\n sftp.cd(basePath);\n sftp.rename(fromFilePath, toFilePath);\n return true;...
"protected boolean checkPageBreak() throws BirtException {\n boolean ret = false;\n if (!isInInlineStacking && context.isAutoPageBreak()) {\n int aHeight = getAllocatedHeight();\n while (aHeight + parent.getAbsoluteBP() > context.getMaxBP()) {\n addLineBreakToExtension();\n if ...
"public boolean evaluateFilter(IResultRow resultRow) throws DataException {\n super.setData(resultRow);\n Context cx = Context.enter();\n try {\n if (this.isAxisFilter) {\n for (int i = 0; i < axisLevels.length; i++) {\n DimLevel level = new DimLevel(axisLevels[i]);\n ...
"public GameResult checkGameOver(int turnCount, GameRecord record) {\n if (!boardModel_.isAlive(PlayerSide.CURRENT_PLAYER)) {\n PlayerModel winner = boardModel_.modelForSide(PlayerSide.WAITING_PLAYER);\n return new GameResult(playerGoingFirst.getPlayerId(), winner.getPlayerId(), turnCount + 1, record);...
"public Dhns newDhns(Workspace workspace) {\n Dhns dhns = new Dhns(this);\n workspace.getWorkspaceData().setData(workspaceDataProvider.getWorkspaceDataKey(), dhns);\n dhns.setCentralDynamicGraph(new DynamicGraphImpl(dhns, getHierarchicalDirectedGraph()));\n return dhns;\n}\n"
"public int getObjectVersion() {\n if (hasOption(QueryFlag.SHOW_VERSION)) {\n int version = Integer.parseInt(getOptionValue(QueryFlag.SHOW_VERSION));\n if (version < 1) {\n throw new QueryException(QueryCompletionInfo.PARAMETER_ERROR, QueryMessages.malformedQuery(\"String_Node_Str\"));\n ...
"private void handleConnection(Socket client) {\n BufferedReader in = null;\n PrintWriter out = null;\n try {\n in = new BufferedReader(new InputStreamReader(client.getInputStream()));\n String data = \"String_Node_Str\";\n String line = \"String_Node_Str\";\n System.out.println(\"S...
"public static void main(String[] args) {\n test7();\n}\n"
"private void moveToLastUnlocked() {\n LevelInfo lastUnlocked = levelService.getLastUnlocked();\n int screenToJumpTo = (int) (lastUnlocked.getLevelId() - 0.1) / 12;\n levelChoiceService.moveRight(screenToJumpTo);\n}\n"
"private String getComponentConfigString(Class<? extends Component> component, Class<? extends Component> componentType) {\n String componentDescription = \"String_Node_Str\" + cm.getComponentName(component);\n String str = componentDescription + \"String_Node_Str\";\n String cli = confMapper.getComponentTypeS...
"public void testBytesPassThruContentType() {\n byte[] payload = \"String_Node_Str\".getBytes();\n Message<byte[]> message = MessageBuilder.withPayload(payload).setHeader(MessageHeaders.CONTENT_TYPE, MimeTypeUtils.APPLICATION_OCTET_STREAM_VALUE).build();\n Message<?> converted = messageBus.serializePayloadIfNe...
"public void clear() {\n final int sizeBeforeClear = size();\n super.clear();\n if (entryCountingEnable) {\n cacheContext.decreaseEntryCount(sizeBeforeClear);\n }\n}\n"
"public static L1cMetadata.AnglesGrid[] getAnglesGrid(Level1C_Tile product) {\n A_GEOMETRIC_INFO_TILE.Tile_Angles ang = product.getGeometric_Info().getTile_Angles();\n List<AN_INCIDENCE_ANGLE_GRID> incilist = ang.getViewing_Incidence_Angles_Grids();\n L1cMetadata.AnglesGrid[] darr = new L1cMetadata.AnglesGrid[...
"public T exists() {\n return addCrit(FilterOperator.EXISTS, true);\n}\n"
"public static Integer decode(String s) throws NumberFormatException {\n return new Integer((int) __decodeAndValidateLong(s, MIN_VALUE, MAX_VALUE));\n}\n"
"protected void addToWindow() {\n WindowManager.LayoutParams params = new WindowManager.LayoutParams(iconWidth > 0 ? iconWidth : WindowManager.LayoutParams.WRAP_CONTENT, iconHeight > 0 ? iconHeight : WindowManager.LayoutParams.WRAP_CONTENT, WindowManagerHelper.getOverlayFlag(), WindowManager.LayoutParams.FLAG_NOT_FO...
"public ITOCTree getTOCTree() throws EngineException {\n loadDocument();\n IReportDocument document = executionContext.getReportDocument();\n String format = IRenderOption.OUTPUT_FORMAT_HTML;\n if (renderOptions != null) {\n String renderFormat = renderOptions.getOutputFormat();\n if (renderFo...
"public void reLoad() {\n if (mPresenter != null) {\n mPresenter.getKnowledgeHierarchyData();\n }\n}\n"
"public static String convertColor(String value) {\n value = EmitterUtil.parseColor(ExcelUtil.getValue(value));\n if (value == null) {\n return StyleConstant.NULL;\n }\n value = ExcelUtil.getValue(value);\n Matcher m = colorp.matcher(value);\n if (m.matches()) {\n StringBuffer buffer = n...