content
stringlengths
40
137k
"public void run() {\n if (selectedNode != null) {\n NameSpaceDialog nsDialog = new NameSpaceDialog(null);\n nsDialog.setCurrentNode(selectedNode);\n nsDialog.setParentNode((TreeNode) selectedNode.eContainer());\n int status = nsDialog.open();\n if (status == nsDialog.OK) {\n ...
"public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException {\n long startTime = Clock.accurateTimeMillis();\n long timeoutInMs = unit.toMillis(timeout);\n List<Future<T>> resultList = new ArrayList<Future<T>>(tasks.size());\n {\n ...
"public void doRemoveEdge(final long dataIndex) {\n dataStack.setDataIndex(dataIndex);\n final int ei = dataStack.in.readInt();\n final int fi = dataStack.in.readInt();\n final E ref = graph.edgeRef();\n final E edge = edgeUndoIdBimap.getObject(ei, ref);\n final V vref = graph.vertexRef();\n final ...
"private UnifiedValues findCongruencesContRec(Program prog, Function fn, ExecContext execCx, Continuation cont, int stmtIndex, Congruences state, Map<Block, Congruences> result) {\n logger.trace(\"String_Node_Str\" + cont.getType());\n Congruences contState = state.enterContinuation(cont.inheritsParentVars(), stm...
"public void setUp() throws Exception {\n Caching.getCachingProvider().close();\n cacheManager = getCacheManager();\n}\n"
"private void processClassInitializer(IClass klass) {\n if (Assertions.verifyAssertions) {\n Assertions._assert(klass != null);\n }\n if (getBuilder().clinitVisited.contains(klass)) {\n return;\n }\n getBuilder().clinitVisited.add(klass);\n if (klass.getClassInitializer() != null) {\n ...
"public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException {\n Context context = this.cordova.getActivity().getApplicationContext();\n if (\"String_Node_Str\".equals(action)) {\n String serverUrl = args.getString(0);\n String appKey = args.getString(...
"public void onReceive(Context context, Intent intent) {\n String action = intent.getAction();\n if (!Intent.ACTION_MEDIA_BUTTON.equals(action)) {\n return;\n }\n KeyEvent event = (KeyEvent) intent.getParcelableExtra(Intent.EXTRA_KEY_EVENT);\n if (event != null) {\n synchronized (mRingingLo...
"private static List convertParametersInGroup(Collection scalarParameters, ParameterGroupDefinition group, IGetParameterDefinitionTask task) {\n if (scalarParameters == null)\n return null;\n List ret = new ArrayList();\n for (Iterator it = scalarParameters.iterator(); it.hasNext(); ) {\n IScalar...
"public String getColumnText(final Object obj, final int index) {\n if (obj instanceof DependencyInfo) {\n DependencyInfo dependencyInfo = (DependencyInfo) obj;\n switch(index) {\n case COLUMN_LOCATION:\n if (dependencyInfo.getType() == DependencyType.JRE) {\n ...
"public EntityLivingBase getMinionTarget() {\n if (this.minionTarget != null) {\n return minionTarget;\n }\n if (player.getLastAttackerTime() < player.ticksExisted + 200) {\n return player.getLastAttacker();\n }\n return null;\n}\n"
"public Class<? extends Entity> getEntity(StoragePath storagePath) throws GenericException {\n Path entity = FSUtils.getEntityPath(basePath, storagePath);\n if (Files.exists(entity)) {\n if (Files.isDirectory(entity)) {\n if (storagePath.isFromAContainer()) {\n return DefaultConta...
"public void dispose() {\n if (Widgets.isAccessible(labelWidget)) {\n labelWidget.dispose();\n }\n if (Widgets.isAccessible(parent)) {\n parent.layout();\n }\n}\n"
"public boolean matchExpression(String expression) {\n if (expression == null) {\n return false;\n }\n if (expression.contains(\"String_Node_Str\")) {\n return true;\n }\n return false;\n}\n"
"public static SequenceMinHashes fromByteStream(DataInputStream input, int offset) throws IOException {\n try {\n SequenceId id = new SequenceId(input.readInt() + offset, input.readBoolean());\n MinHash mainHashes = MinHash.fromByteStream(input);\n if (mainHashes == null)\n throw new ...
"public Range execute(Document document) {\n Node targetNode = getTargetNode(document);\n if (Node.TEXT_NODE == targetNode.getNodeType()) {\n Text.as(targetNode).deleteData(getOperation().getPosition(), 1);\n } else if (Node.ELEMENT_NODE == targetNode.getNodeType()) {\n }\n Range caret = document....
"public boolean replace(int column, String original, String replacement) {\n checkRegistry();\n checkColumn(column);\n if (!getDataType(getAttributeName(column)).isValid(replacement)) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n return registry.replace(column, original, repla...
"public void testResolvedOnUiThread() {\n synchronized (this.lock_) {\n Promise.resolve(10).then(onUiThread(resolved(new Promise.ResolveNoReturn<Integer>() {\n public void resolveNoReturn(Integer value) {\n boolean isUiThread = Looper.getMainLooper().getThread().equals(Thread.current...
"private static Double[] stringsToDoubles(String[] s) {\n Double[] d = new Double[s.length];\n for (int i = 0; i < s.length; i++) {\n String t = s[i].trim();\n if (t.length() == 0) {\n d[i] = null;\n } else {\n d[i] = Double.parseDouble(s[i]);\n }\n }\n retu...
"public void setUp() throws Exception {\n Configuration.set(\"String_Node_Str\", \"String_Node_Str\");\n npm = new NodesClient(deploymentManagerHost);\n servicesManager = new ServicesClient(deploymentManagerHost);\n spec.setName(\"String_Node_Str\");\n spec.setPackageUri(JAR_LOCATION);\n spec.setPacka...
"public ValidationEventHandler getEventHandler() {\n JAXBErrorHandler jaxbErrorHandler = (JAXBErrorHandler) xmlBinder.getUnmarshaller().getErrorHandler();\n return jaxbErrorHandler.getValidationEventHandler();\n}\n"
"protected List<CloudService> doRun(CloudFoundryOperations client, SubMonitor progress) throws CoreException {\n SubMonitor serviceProgress = SubMonitor.convert(progress, services.size());\n List<String> boundServices = new ArrayList<String>();\n for (String service : services) {\n serviceProgress.subTa...
"public void testBigStep() throws DimensionMismatchException, NumberIsTooSmallException, MaxCountExceededException, NoBracketingException {\n doTestBigStep(Decimal64Field.getInstance(), 2.7e-5, 1.7e-3, 1.0e-12, \"String_Node_Str\");\n}\n"
"public Object convertToObject(String orig) {\n try {\n return new Integer(orig);\n } catch (NumberFormatException ex) {\n Iterator iter = options.entrySet().iterator();\n while (iter.hasNext()) {\n Map.Entry mapEntry = (Map.Entry) iter.next();\n if (mapEntry.getValue()....
"public void onUnrarEvent(int id, UnrarWrapper wrapper) {\n LinkStatus ls = wrapper.getDownloadLink().getLinkStatus();\n if (wrapper.getDownloadLink().getFilePackage() == FilePackage.getDefaultFilePackage() && wrapper.getDownloadLink().getProperty(\"String_Node_Str\") == null) {\n logger.warning(\"String_N...
"public void updateDBConnectionSetupParameters(SetupParameters params) throws DBConnectionException, IOException {\n if (params == null) {\n throw new DBConnectionException(\"String_Node_Str\" + \"String_Node_Str\");\n }\n String ptdbParams = DBConnectorFactory._PROPERTIES_FILE_PATH;\n Properties pro...
"protected void parse(File reportFile) {\n if (reportFile == null) {\n insertZeroWhenNoReports(context);\n } else {\n LOG.info(\"String_Node_Str\" + reportFile.getAbsolutePath());\n parseFile(context, reportFile, project);\n }\n}\n"
"protected synchronized void destroy() {\n registered = false;\n if (initialAsyncCtx != null) {\n try {\n initialAsyncCtx.complete();\n } catch (IllegalStateException e) {\n log.warn(\"String_Node_Str\", e.getClass().getName());\n }\n initialAsyncCtx = null;\n ...
"public File generateFile() throws JAXBException, IOException, AxelorException, DatatypeConfigurationException {\n DatatypeFactory datatypeFactory = DatatypeFactory.newInstance();\n ObjectFactory factory = new ObjectFactory();\n ServiceLevel8Choice svcLvl = factory.createServiceLevel8Choice();\n svcLvl.setC...
"final V dereferenceValue(Object value) {\n if (value instanceof KeyReference)\n return ((Reference<V>) value).get();\n return (V) value;\n}\n"
"public Resource<?> parse() {\n Resource<?> r = res;\n String tk;\n if (path.startsWith(\"String_Node_Str\")) {\n File homeDir = new File(System.getProperty(\"String_Node_Str\")).getAbsoluteFile();\n if (path.length() == 1) {\n return new DirectoryResource(factory, homeDir);\n }...
"public void setAllExplicitly() {\n isAll = AllKinds.EXPLICITLYTRUE;\n properties.clear();\n Iterator<EdmNavigationProperty> iterator = links.keySet().iterator();\n while (iterator.hasNext()) {\n EdmNavigationProperty navProp = iterator.next();\n if (links.get(navProp) == null) {\n ...
"public void onTextChanged(CharSequence charSequence, int start, int before, int count) {\n super.onTextChanged(charSequence, start, before, count);\n clearErrors();\n}\n"
"public void generateProjectFromPartner(ActionRequest request, ActionResponse response) {\n Partner partner = Beans.get(PartnerRepository.class).find(Long.valueOf(request.getContext().get(\"String_Node_Str\").toString()));\n User user = AuthUtils.getUser();\n Project project = Beans.get(ProjectService.class).g...
"void visitAbstractSelectClause(AbstractSelectClause expression) {\n if (expression.hasDistinct()) {\n CountFunctionVisitor visitor = new CountFunctionVisitor();\n expression.accept(visitor);\n if (!visitor.hasCountFunction) {\n query.useDistinct();\n }\n }\n boolean buil...
"public Object getElementAt(int index) {\n return data.get(index);\n}\n"
"public CallPeerSipImpl processInvite(SipProvider jainSipProvider, ServerTransaction serverTran) {\n Request invite = serverTran.getRequest();\n final CallPeerSipImpl peer = createCallPeerFor(serverTran, jainSipProvider);\n CallInfoHeader infoHeader = (CallInfoHeader) invite.getHeader(CallInfoHeader.NAME);\n ...
"protected void onActivityResult(int requestCode, int resultCode, Intent intent) {\n switch(requestCode) {\n case BARCODE_FETCH:\n if (resultCode == Activity.RESULT_OK) {\n String result = intent.getStringExtra(\"String_Node_Str\");\n this.searchbox.setText(result);\n ...
"private void activityStartedCallback(Activity activity) {\n mInstance.attachActivity(activity);\n if (mNeedCallbackCall) {\n mNeedCallbackCall = false;\n notifyListeners(false);\n }\n loadLiquidPackage(true);\n mQueue.execute(new Runnable() {\n public void run() {\n mHttp...
"private IBaseExpression[] populateAggregationArgument(Context cx, ExpressionCompiler compiler, IBinding binding, List argument, IAggrFunction aggrFunction) throws DataException {\n IBaseExpression[] compiledArgu = new IBaseExpression[argument.size()];\n for (int j = 0; j < argument.size(); j++) {\n IScrip...
"public String getPurchaseUrl() {\n return purchaseUrl.toLowerCase();\n}\n"
"public void execute() {\n Set<Pair<Long, Long>> templateZonePairSet = _mgr.listTemplates(this);\n boolean isAdmin = false;\n Account account = UserContext.current().getCaller();\n if ((account == null) || BaseCmd.isAdmin(account.getType())) {\n isAdmin = true;\n }\n ListResponse<TemplateRespon...
"private void updateList(final Map<String, String> changeTable, final Hashtable<String, String> conflictTable, final AbstractPipelineInput input) {\n final File tempDir = new File(input.getAttribute(ANT_INVOKER_PARAM_TEMPDIR));\n if (!tempDir.isAbsolute()) {\n throw new IllegalArgumentException(\"String_No...
"public void destroy() {\n new DestroyThread(this.mapWorker, this.mapDatabase).start();\n super.destroy();\n}\n"
"private void extractPathFromRequestMeta(final ServiceMethodMeta methodMeta, final MethodAccess methodAccess, final RequestMeta requestMeta, final PathBuilder pathBuilder, final RequestMethod requestMethod) {\n final OperationBuilder operationBuilder = new OperationBuilder();\n operationBuilder.setDescription(met...
"public FunctionType instantiateGenericsFromArgumentTypes(List<JSType> argTypes) {\n if (argTypes.size() < getMinArity() || argTypes.size() > getMaxArity()) {\n return null;\n }\n Multimap<String, JSType> typeMultimap = HashMultimap.create();\n for (int i = 0, size = argTypes.size(); i < size; i++) {...
"public static List<ContactSourceService> getContactSources() {\n if (contactSources != null)\n return contactSources;\n contactSources = new Vector<ContactSourceService>();\n ServiceReference[] serRefs = null;\n try {\n serRefs = bundleContext.getServiceReferences(ContactSourceService.class.g...
"private boolean dfsKill(GameMap gameMap, Color color, Color targetColor, int level, Score score, ComboTye comboTye, Set<Point> nextRange, Set<Point> oldRange, Point lastPoint) {\n if (System.currentTimeMillis() - startTime > limitTime) {\n result.timeOut = true;\n return false;\n }\n Boolean cac...
"private void maybeSwitchToNext() {\n synchronized (receiveLayersSyncRoot) {\n SimulcastLayer next = getNext();\n if (next != null) {\n seenNext++;\n if (seenNext > MAX_NEXT_SEEN) {\n this.sendSimulcastLayersChangedEvent(next);\n this.weakCurrent = we...
"public void nodeSelectionChanged(List<String> selectedNodes) {\n this.metaDataPanel.removeAll();\n if (selectedNodes.size() > 0) {\n final String selectedNode = selectedNodes.get(0);\n SwingWorker<Map<String, String>, Void> worker = new SwingWorker<Map<String, String>, Void>() {\n protec...
"protected Channel.ID mergeChannels(List<Channel.ID> channelIDs, int ioMemorySize) throws IOException, MemoryAllocationException {\n List<Iterator<KeyValuePair<K, V>>> iterators = new ArrayList<Iterator<KeyValuePair<K, V>>>(channelIDs.size());\n final int ioMemoryPerChannel = ioMemorySize / (channelIDs.size() + 2...
"private void processDownload(Long download) throws BimServerClientException, UserException, ServerException, PublicInterfaceNotFoundException {\n WaitingList<Long> waitingList = new WaitingList<Long>();\n try {\n InputStream downloadData = bimServerClient.getDownloadData(download, getIfcSerializerOid());\...
"private void checkforErrors() {\n List<String> dErrors = new ArrayList<String>();\n IPath dirPath = new Path(dirTxt.getText());\n if (!dirPath.toFile().exists()) {\n dErrors.add(Messages.getString(\"String_Node_Str\"));\n }\n if (repositoryTree.getTree().getItems().length == 0) {\n dErrors...
"public void place(PortableContainer container) {\n _textfield = new JTextField();\n _textfield.setText(\"String_Node_Str\");\n if (container != null) {\n container.add(_textfield);\n }\n _textfield.setEditable(false);\n}\n"
"public void onSaveInstanceState(Bundle outState) {\n try {\n outState.putCharSequence(ATTR_TITLE, getTitle());\n outState.putCharSequence(ATTR_CONTENT, getContent());\n } catch (EditorFragmentNotAddedException e) {\n AppLog.e(T.EDITOR, \"String_Node_Str\");\n }\n}\n"
"public void configure(WorkflowConfigurer workflowConfigurer) {\n workflowConfigurer.createLocalDataset(datasetName, FileSet.class, FileSetProperties.builder().setInputFormat(CombineTextInputFormat.class).setInputProperty(FileInputFormat.INPUT_DIR_RECURSIVE, \"String_Node_Str\").setOutputFormat(TextOutputFormat.clas...
"public boolean isPath() {\n switch(this) {\n case PATH_P_C:\n case PATH_P_LCA:\n case PATH_C_LCA:\n case PATH_LCA_ROOT:\n return true;\n }\n}\n"
"public List<HashMap<Long, Slicer>> Slices() {\n IFlowSpaceFirewallService iFSFs = (IFlowSpaceFirewallService) getContext().getAttributes().get(IFlowSpaceFirewallService.class.getCanonicalName());\n List<HashMap<Long, Slicer>> slices = iFSFs.getSlices();\n HashMap<String, List<Slicer>> newSlices = new HashMap<...
"public void openGroup(MetaContactGroup group) {\n this.closedGroups.remove(group);\n contentAdded(this.indexOf(group.getMetaContact(0)), this.indexOf(group.getMetaContact(countSubgroupContacts(group) - 1)));\n}\n"
"static Map<String, TableDescription> getExistingTables() {\n Map<String, TableDescription> existingTables = new HashMap<String, TableDescription>();\n String lastTableName = null;\n ListTablesResult listTablesResult = DYNAMO.listTables();\n do {\n for (String tableName : listTablesResult.getTableNam...
"public void read(InputStream inputstream) throws IOException {\n DataInputStream in = new DataInputStream(new BufferedInputStream(inputstream));\n if (_binary) {\n int c;\n float x = 0, y = 0, pointCount = 0;\n boolean byteSwapped = false;\n boolean connected = false;\n byte[] ...
"private void installAnnotations(BioFabricNetwork.NetworkAlignmentBuildData nabd, SortedMap<Integer, List<NID.WithName>> targetsGroup, List<NID.WithName> targets, NodeGroupMap grouper) {\n Map<Integer, List<NID.WithName>> layerZeroAnnot = new TreeMap<Integer, List<NID.WithName>>();\n for (int i = 0; i < grouper.n...
"public List<Document> buildSplitGpx(int preferredInstrNum) {\n List<Document> gpxList = new ArrayList<Document>();\n List<Waypoint> instructions = gpx.getInstructions();\n int splitFiles = howManyFiles(instructions.size(), preferredInstrNum);\n int currInstr = 0;\n int fileNum = 1;\n while (fileNum <...
"public void replace_3arg_Different() {\n SimpleCacheLoader<Integer> loader = new SimpleCacheLoader<Integer>();\n Cache<Integer, Integer> cache = getCacheManager().configureCache(getTestCacheName(), new MutableConfiguration<Integer, Integer>().setCacheLoaderFactory(Factories.of(loader)));\n Integer key = 1;\n ...
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n Bundle recdData = getIntent().getExtras();\n currList = (List<Product>) recdData.getSerializable(\"String_Node_Str\");\n String breadCrumb = recdData.getString(\"String_Node_Str\");\n setTitle(Html.fromHtml(breadCr...
"private BigDecimal _getTwoRaisedTo(int number) {\n if (number <= _twoRaisedTo.length && number >= 0) {\n return _twoRaisedTo[number];\n } else {\n BigInteger two = _two.toBigInteger();\n return new BigDecimal(two.pow(number));\n }\n}\n"
"public static void globalSetUp() throws Exception {\n doSettings();\n callback = new MyActivityCallback();\n rs = new RouterService(callback);\n assertEquals(\"String_Node_Str\", PORT, ConnectionSettings.PORT.getValue());\n rs.start();\n RouterService.clearHostCatcher();\n RouterService.connect();...
"protected final SoyExpression visitConditionalOpNode(ConditionalOpNode node) {\n final SoyExpression condition = visit(node.getChild(0)).coerceToBoolean();\n SoyExpression trueBranch = visit(node.getChild(1));\n SoyExpression falseBranch = visit(node.getChild(2));\n boolean typesEqual = trueBranch.soyType(...
"public V get(B bean) throws AccessorException {\n V v = core.get(bean);\n if (v == null) {\n Object pack = lister.startPacking(bean, core);\n lister.endPacking(pack, bean, core);\n v = core.get(bean);\n }\n return v;\n}\n"
"public static void addChat(UUID chatId, ChatPanelBasic chatPanel) {\n CHATS.put(chatId, chatPanel);\n}\n"
"private void update(File desFile) throws IOException, CoreException {\n String curProjectLabel = ResourceManager.getRootProjectName();\n if (!StringUtils.equals(projectName, curProjectLabel)) {\n String content = FileUtils.readFileToString(desFile, \"String_Node_Str\");\n content = StringUtils.repl...
"public void testLightestFactFirst() throws Exception {\n String hqlQuery = rewrite(\"String_Node_Str\" + \"String_Node_Str\" + twoDaysRange, getConf());\n String expected = getExpectedQuery(cubeName, \"String_Node_Str\", null, null, getWhereForDailyAndHourly2days(cubeName, \"String_Node_Str\"));\n compareQuer...
"public boolean checkTrigger(GameEvent event, Game game) {\n int attackerCount = 0;\n if (game.getCombat() != null) {\n if (getControllerId().equals(game.getCombat().getAttackingPlayerId())) {\n for (UUID attacker : game.getCombat().getAttackers()) {\n if (filter.match(game.getPer...
"private void check() {\n if (done) {\n throw new HazelcastSerializationException(\"String_Node_Str\" + classId);\n }\n}\n"
"public void run() {\n List<TreeNode> subTrees = trees.subList(0, trees.size() - 1);\n Path out = new Path(context.getProps().getProperty(CommonConstants.GUAGUA_OUTPUT));\n if (!isHalt && currentIteration != totalIteration) {\n writeModelToFileSystem(subTrees, out);\n }\n saveTmpModelToHDFS(subTre...
"public static List<Integer> reference(List<Integer> path, List<Integer> ref) {\n List<Integer> tab = addP(path, 1);\n int i = 1;\n while (ref[i] == tab[i]) {\n tab[i] = 0;\n i++;\n }\n tab.set(i, tab.get(i) - ref.get(i));\n return tab;\n}\n"
"public static void handleOnRender(LabelContent content, ExecutionContext context) {\n try {\n ReportItemDesign labelDesign = (ReportItemDesign) content.getGenerateBy();\n ILabelInstance label = new LabelInstance(content, context);\n if (handleJS(label, labelDesign.getOnRender(), context).didRun...
"public int getCurrentIndex() {\n return rowIndex;\n}\n"
"public void handleFileEvent(FileManagerEvent evt) {\n if (LOG.isDebugEnabled())\n LOG.debug(\"String_Node_Str\" + evt);\n FileManagerEvent newEvt = null;\n if (evt.isAddEvent()) {\n FileDesc fd = evt.getFileDescs()[0];\n newEvt = new FileManagerEvent(FileManager.this, FileManagerEvent.REN...
"public static boolean executeCommand(Player player, HumanNPC npc) {\n if (player.performCommand(((Wizard) npc.getType(\"String_Node_Str\")).getCommand())) {\n return decreaseMana(player, npc, 5);\n }\n return false;\n}\n"
"public Object getCurrentObject(CoreAbstractSession session, Mapping selfRecordMapping) {\n if (session == null && docPresPolicy == null) {\n return null;\n }\n if (docPresPolicy == null) {\n Login login = (Login) session.getDatasourceLogin();\n docPresPolicy = login.getDocumentPreservatio...
"public void showCreateWorkflowModelPanel() {\n if (elementTableDecPanel != null) {\n elementTableDecPanel.removeStyleName(\"String_Node_Str\");\n }\n showBasicSearchPanel();\n int spaceAvailable = inputPanel.getOffsetWidth() - 10;\n inputPanel.clear();\n inputPanel.setWidget(m_wfEditor);\n ...
"public List<int[]> calculateOutputShape() {\n val args = args();\n if (args.length < 2) {\n return Arrays.asList(args[0].getShape());\n }\n val firstArgShape = args[0].getShape();\n val secondArgShape = args[1].getShape();\n if (args[0] == null || args[0].getShape() == null) {\n return ...
"public static int indexOf(String s, char[] chars, int startPos) {\n int pos = -1;\n for (int i = 0; i < chars.length; i++) {\n int newPos = s.indexOf(chars[i], startPos);\n if (newPos != -1 && (pos == -1 || newPos < pos))\n pos = newPos;\n }\n return pos;\n}\n"
"public void dup2_x1(FeatureExpr ctx) {\n Object bAnn = null, cAnn = null;\n int ts, td;\n int t = attrs == null ? -1 : top();\n stack.dup2_x1(ctx);\n ts = t;\n td = t + 2;\n if (attrs != null) {\n attrs[td] = cAnn = attrs[ts];\n }\n ts--;\n td--;\n if (attrs != null) {\n ...
"private void processNormalRequest(UIForm uiForm, WebuiRequestContext context) throws Exception {\n List<UIFormInputBase> inputs = new ArrayList<UIFormInputBase>();\n uiForm.findComponentOfType(inputs, UIFormInputBase.class);\n uiForm.setSubmitAction(context.getRequestParameter(UIForm.ACTION));\n for (UIFor...
"private void getInitialComplexSlaveImagette(final ComplexCoregData compleData, final Band slaveBand1, final Band slaveBand2, final PixelPos sGCPPixelPos) {\n compleData.sII0 = new double[compleData.fWindowHeight][compleData.fWindowWidth];\n compleData.sIQ0 = new double[compleData.fWindowHeight][compleData.fWindo...
"public int[] getAccessibleSlotsFromSide(int var1) {\n ForgeDirection access = ForgeDirection.getOrientation(var1);\n ForgeDirection dir = getFacingDirection();\n if (access == dir) {\n int[] allSlots = new int[allInventories.length];\n for (int i = 0; i < allSlots.length; i++) allSlots[i] = i;\n...
"public static boolean isRightAligned(IContent content, CSSValue align, boolean lastLine) {\n return isRightAligned(content, align != null ? align.getCssText() : null, lastLine);\n}\n"
"public void onClick(View v) {\n int id = v.getId();\n if (id == R.id.event_top_teams_container) {\n ((ViewEventActivity) getActivity()).scrollToTab(ViewEventFragmentPagerAdapter.TAB_RANKINGS);\n return;\n } else if (id == R.id.event_top_oprs_container) {\n ((ViewEventActivity) getActivity...
"public IStatus doAction() {\n try {\n IStructuredSelection selection = (IStructuredSelection) page.getTreeViewer().getSelection();\n XSDXPathDefinition xpath = (XSDXPathDefinition) selection.getFirstElement();\n icd = (XSDIdentityConstraintDefinition) xpath.getContainer();\n List<String>...
"public Number getValueAsNumber() {\n if (this.value instanceof Number) {\n return (Number) this.value;\n } else {\n throw new ClassCastException(\"String_Node_Str\");\n }\n}\n"
"private void handleBackspaceWhileInBatchEdit(final int spaceState, final InputConnection ic) {\n mVoiceProxy.handleBackspace();\n mHandler.postUpdateShiftKeyState();\n if (mEnteredText != null && sameAsTextBeforeCursor(ic, mEnteredText)) {\n ic.deleteSurroundingText(mEnteredText.length(), 0);\n ...
"void notifyGet(long offset, K key, V value) {\n if (eventListener != SharedMapEventListeners.NOP) {\n tmpBytes.storePositionAndSize(bytes, offset, entrySize);\n eventListener.onGetFound(AbstractVanillaSharedHashMap.this, tmpBytes, metaDataBytes, key, value);\n }\n}\n"
"protected Composite getComponent(Composite parent) {\n ChartUIUtil.bindHelp(parent, ChartHelpContextIds.POPUP_TITLE_BLOCK);\n GridLayout glContent = new GridLayout();\n glContent.horizontalSpacing = 5;\n glContent.verticalSpacing = 5;\n glContent.marginHeight = 7;\n glContent.marginWidth = 7;\n cm...
"public void answer(OutputStream output, StartStopListenerDelegate startStopListenerDelegate) throws IOException {\n this.output = output;\n long CLoverride = -2;\n if (lowRange != 0 || highRange != 0) {\n output(output, http10 ? HTTP_206_OK_10 : HTTP_206_OK);\n } else {\n if (soapaction != nu...
"public void onStateChanged(YTPlayer.MPState from, YTPlayer.MPState to) {\n switch(to) {\n case IDLE:\n showLoadingSpinProgress();\n break;\n case STOPPED:\n case ERROR:\n hideLoadingSpinProgress();\n }\n}\n"
"private void jump() {\n for (int i = 0; i < 4; i++) {\n int trapPos;\n do {\n trapPos = Random.Int(Level.LENGTH);\n } while (!Level.fieldOfView[trapPos] || Level.solid[trapPos]);\n if (Dungeon.level.map[trapPos] == Terrain.INACTIVE_TRAP) {\n Dungeon.level.setTrap(ne...
"public static ReaderPost fromJson(JSONObject json) {\n if (json == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n ReaderPost post = new ReaderPost();\n post.postId = json.optLong(\"String_Node_Str\");\n post.blogId = json.optLong(\"String_Node_Str\");\n if (json.has(\...
"public void onClick(ClickEvent event) {\n ElementReceiver.get().queryPage();\n}\n"