content
stringlengths
40
137k
"int bindServiceLocked(IApplicationThread caller, IBinder token, Intent service, String resolvedType, IServiceConnection connection, int flags, int userId) {\n if (DEBUG_SERVICE)\n Slog.v(TAG, \"String_Node_Str\" + service + \"String_Node_Str\" + resolvedType + \"String_Node_Str\" + connection.asBinder() + \"...
"public void testProcessAllTerraSARX() throws Exception {\n TestUtils.testProcessAllInPath(spi, TestUtils.rootPathsTerraSarX, productTypeExemptions, exceptionExemptions);\n}\n"
"public static MismatchInfo whyNotSubtypeOf(JSType t1, JSType t2) {\n if (t1.isSingletonObj() && t2.isSingletonObj()) {\n MismatchInfo[] boxedInfo = new MismatchInfo[1];\n ObjectType.whyNotSubtypeOf(found.getObjTypeIfSingletonObj(), expected.getObjTypeIfSingletonObj(), boxedInfo);\n return boxed...
"public void testRemotelyCloseProducerAndAttemptAsyncCompletionSendThrowsAndLeavesMessageReadable() throws Exception {\n try (TestAmqpPeer testPeer = new TestAmqpPeer()) {\n JmsConnection connection = (JmsConnection) testFixture.establishConnecton(testPeer);\n final CountDownLatch producerClosed = new ...
"public void update(float delta) {\n if (relinkHeldItem) {\n linkHeldItemLocationForLocalPlayer(localPlayer.getCharacterEntity(), currentHeldItem, null);\n relinkHeldItem = false;\n }\n for (EntityRef entityRef : entityManager.getEntitiesWith(ItemIsHeldComponent.class)) {\n if (!entityRef....
"public int doSolutionOnline(MainActivity activity) {\n String str1 = SystemProperties.get(\"String_Node_Str\");\n if (TextUtils.isEmpty(str1))\n str1 = \"String_Node_Str\";\n String str2 = Build.MODEL;\n if (TextUtils.isEmpty(str2))\n str2 = \"String_Node_Str\";\n String str3 = \"String_No...
"private void initializeScheduleTable() throws IOException, DatasetManagementException {\n table = tableUtil.getMetaTable();\n Preconditions.checkNotNull(table, \"String_Node_Str\", ScheduleStoreTableUtil.SCHEDULE_STORE_DATASET_NAME);\n if (cacheLoaderInitialized.compareAndSet(false, true)) {\n upgradeC...
"public boolean contains(StateEvent matchingEvent, IndexedEventHolder indexedEventHolder) {\n Set<StreamEvent> compareStreamEvents = findEventSet(matchingEvent, indexedEventHolder);\n if (compareStreamEvents == null) {\n return exhaustiveCollectionExecutor.contains(matchingEvent, indexedEventHolder);\n ...
"public void setRotationMode(RotationMode mode) {\n if (myRotationMode != mode) {\n myRotationMode = mode;\n if (mode == RotationMode.DEFAULT) {\n setEyeToWorld(getEye(), myViewState.myCenter, getUpVector());\n }\n }\n}\n"
"public static List filterAdminObjects(HandlerContext context) {\n List result = new ArrayList();\n FilterTreeEvent event = null;\n try {\n if (context.getEventObject() instanceof FilterTreeEvent) {\n event = FilterTreeEvent.class.cast(context.getEventObject());\n } else {\n ...
"protected void checkForErrors() {\n errors = new ArrayList<String>();\n if (!new File(dirTxt.getText()).exists()) {\n errors.add(Messages.getString(\"String_Node_Str\"));\n }\n ItemRecord[] elements = getElements();\n for (ItemRecord record : elements) {\n Map<File, ModelElement> dependenc...
"public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) {\n super.reshape(drawable, x, y, width, height);\n if (!waitForMinSizeApplication && isRendered) {\n Rectangle2D drawingArea = calculateGraphDrawingArea();\n graphLayout.applyIncrementalLayout(drawingArea);\n }\n}...
"private MediaDesc prerenderVideo(MediaDesc mediaIn, boolean preconvertMP4) throws Exception {\n FfmpegController ffmpegc = new FfmpegController(mContext);\n File outPath = createOutputFile(mediaIn.path, \"String_Node_Str\");\n mMediaManager.applyExportSettings(mediaIn);\n MediaDesc mediaOut = ffmpegc.conve...
"protected void setUp() throws Exception {\n super.setUp();\n action = (DeleteArtifactAction) getActionProxy(\"String_Node_Str\").getAction();\n assertNotNull(action);\n configurationControl = MockControl.createControl(ArchivaConfiguration.class);\n configuration = (ArchivaConfiguration) configurationCon...
"public boolean hasNormalEdge(T src, T dst) {\n return cfg.getNormalSuccessors(src).contains(dst);\n}\n"
"protected Object evaluateTemplate(Component eachComp, final Object eachData, final int index, final int size, final String subType) {\n Object oldEach = null;\n Object oldStatus = null;\n try {\n oldEach = eachComp.setAttribute(EACH_VAR, eachData);\n oldStatus = eachComp.setAttribute(EACH_STATUS...
"public void drawValues(Canvas c) {\n PointF center = mChart.getCenterCircleBox();\n float radius = mChart.getRadius();\n float rotationAngle = mChart.getRotationAngle();\n float[] drawAngles = mChart.getDrawAngles();\n float[] absoluteAngles = mChart.getAbsoluteAngles();\n float phaseX = mAnimator.ge...
"public OngoingFinalSetOperationSubqueryBuilder<Z> endSetWith() {\n subListener.verifySubqueryBuilderEnded();\n listener.onBuilderEnded(this);\n return (OngoingFinalSetOperationSubqueryBuilder<Z>) (OngoingFinalSetOperationSubqueryBuilder) finalSetOperationBuilder;\n}\n"
"protected String getInjectionMethodPropertyName(Method method, AnnotationInfo ainfo) throws AnnotationProcessorException {\n String methodName = method.getName();\n String propertyName = null;\n if ((methodName.length() > 3) && methodName.startsWith(\"String_Node_Str\")) {\n propertyName = methodName.s...
"public IStatus doAction() {\n try {\n conceptList = WorkbenchClipboard.getWorkbenchClipboard().getConcepts();\n XSDFactory factory = XSDFactory.eINSTANCE;\n if (!conceptList.isEmpty()) {\n int index = 0;\n for (Iterator it = conceptList.iterator(); it.hasNext(); ) {\n ...
"public String getReference(String name) throws IllegalActionException {\n boolean isInputPort = false;\n name = processCode(name);\n String[] nameChannelOffset = parseName(name);\n String portName = nameChannelOffset[0];\n String channel = nameChannelOffset[1];\n TypedIOPort port = getPort(portName);...
"private void computeTransientFields() {\n final int capacity = Containers.hashMapCapacity(properties.size());\n byName = new LinkedHashMap<>(capacity);\n indices = new LinkedHashMap<>(capacity);\n assignableTo = new HashSet<>(4);\n assignableTo.add(getName());\n scanPropertiesFrom(this);\n byName ...
"public void update(User user, Object entity, PropertyMap changes) {\n ProjectModel model = null;\n if (projectModel != null) {\n model = em.find(ProjectModel.class, new Integer(projectModel.getId()).longValue());\n }\n if (model != null) {\n if (changes.get(AdminUtil.PROP_PM_NAME) != null)\n ...
"public static void createTemplatesFile() {\n try {\n if (Config.templatesFile.exists()) {\n Config.templatesFile.delete();\n }\n Config.templatesFile.createNewFile();\n Config.templates = YamlConfiguration.loadConfiguration(Config.templatesFile);\n Config.templates.set(...
"default public void save(String title) {\n T webDriver = get();\n if (webDriver instanceof TakesScreenshot) {\n logger.info(\"String_Node_Str\", title);\n File scrFile = null;\n try {\n copyFile(scrFile, new File(\"String_Node_Str\" + new Date().getTime() + \"String_Node_Str\"));\...
"public Answer backupSnapshot(CopyCommand cmd) {\n DataTO srcData = cmd.getSrcTO();\n DataTO destData = cmd.getDestTO();\n SnapshotObjectTO snapshot = (SnapshotObjectTO) srcData;\n PrimaryDataStoreTO primaryStore = (PrimaryDataStoreTO) snapshot.getDataStore();\n SnapshotObjectTO destSnapshot = (SnapshotO...
"public static AnnotatedDocument createAnnotatedDocument(String text, HashSet<Mention> mentions) {\n List<Annotation> annotations = new ArrayList<Annotation>();\n if (mentions != null) {\n for (Mention mention : mentions) {\n annotations.add(translateMention2Annotation(mention));\n }\n ...
"protected void _execute() throws Exception {\n super._execute();\n link.setTail(newLinkTail);\n if (relationNameToAdd != null) {\n ComponentRelation relation = (ComponentRelation) container.getRelation(relationNameToAdd);\n link.setRelation(relation);\n } else {\n link.setRelation(null...
"public Optional<String> toImageBlock(List<File> dropFiles) {\n if (!current.currentPath().isPresent())\n asciiDocController.saveDoc();\n Path currentPath = current.currentPath().map(Path::getParent).get();\n IOHelper.createDirectories(currentPath.resolve(\"String_Node_Str\"));\n List<Path> paths = d...
"private void deployJarToDes(final ResourcesManager manager, Set<String> extRoutines) {\n File file = null;\n if (extRoutines.isEmpty()) {\n return;\n }\n for (Object element : manager.getPaths()) {\n String value = element.toString();\n file = new File(value);\n if (extRoutines....
"public void startDockerImage(BeforeStart event, CubeConfiguration cubeConfiguration, ContainerMapping containerMapping) {\n Map<String, Object> dockerContainersContent = cubeConfiguration.getDockerContainersContent();\n Container container = getContainerByDeployableContainer(event.getDeployableContainer());\n ...
"public static Dataset getDataSetInstance(String datasetName, Transaction tx) throws IOException {\n DatasetManager manager = RuntimeHiveServer.getDatasetManager();\n try {\n Dataset dataset = manager.getDataset(datasetName, null);\n if (dataset instanceof TransactionAware) {\n ((Transact...
"public boolean checkForItems() {\n ItemStack items = new ItemStack(RCConfig.itemID, 2304);\n if (player.getInventory().contains(RCConfig.itemID)) {\n HashMap<Integer, ItemStack> difference = player.getInventory().removeItem(items);\n int exp = 0;\n for (ItemStack s : difference.values()) exp...
"public void testVerify() throws NoSuchAlgorithmException {\n byte[] expected_A = trim(new BigInteger(\"String_Node_Str\", 16).toByteArray());\n byte[] expected_x = new BigInteger(\"String_Node_Str\", 16).toByteArray();\n byte[] expected_M1 = trim(new BigInteger(\"String_Node_Str\", 16).toByteArray());\n by...
"protected void onCreate(Bundle arg0) {\n super.onCreate(arg0);\n setContentView(R.layout.activity_friend_info_layout);\n schoolMate = (SchoolMate) params;\n mLayout.bindSchoolMate(schoolMate);\n mLayout.showButton(false);\n updateLayout();\n}\n"
"protected void progress(double pct, int blocksSoFar, Date date) {\n log.info(String.format(\"String_Node_Str\", (int) pct, blocksSoFar, DateFormat.getDateTimeInstance().format(date)));\n}\n"
"private void testClobWithRandomUnicodeChars() throws Exception {\n deleteDb(\"String_Node_Str\");\n Connection conn = getConnection(\"String_Node_Str\");\n Statement stat = conn.createStatement();\n stat.execute(\"String_Node_Str\");\n PreparedStatement s1 = conn.prepareStatement(\"String_Node_Str\");\n...
"private void fitVideoSurfaceToScreen(boolean statusBarShown) {\n SurfaceHolder holder = mSurfv.getHolder();\n int vw = mMp.getVideoWidth();\n int vh = mMp.getVideoHeight();\n if (0 >= vw || 0 >= vh)\n return;\n int sw = Utils.getVisibleFrameWidth(this);\n int sh = Utils.getVisibleFrameHeight(t...
"public void managerMode(InventoryClickEvent event) {\n boolean top = event.getView().convertSlot(event.getRawSlot()) == event.getRawSlot();\n Player p = (Player) event.getWhoClicked();\n DecimalFormat f = new DecimalFormat(\"String_Node_Str\");\n int clickedSlot = event.getSlot();\n if (clickedSlot < 0)...
"protected Rectangle backwardMapRect(Rectangle destRect, int sourceIndex) {\n if (destRect == null) {\n throw new IllegalArgumentException(JaiI18N.getString(\"String_Node_Str\"));\n } else if (sourceIndex != 0) {\n throw new IllegalArgumentException(JaiI18N.getString(\"String_Node_Str\"));\n }\n ...
"protected IDocument createDocument(Object element) throws CoreException {\n ICFDocument document = null;\n document = new ICFDocument();\n if (setDocumentContent(document, (IEditorInput) element, getEncoding(element))) {\n setupDocument(element, document);\n }\n if (document != null) {\n I...
"private static String getHostName(ILaunchConfiguration config) {\n String projectName = null;\n try {\n projectName = config.getAttribute(ICDTLaunchConfigurationConstants.ATTR_PROJECT_NAME, \"String_Node_Str\");\n } catch (CoreException e) {\n return null;\n }\n if (projectName.equals(\"St...
"public void postEditContract() {\n Validator existentContractStatusValidator = ServiceValidators.getExistentContractStatusValidator();\n if (existentContractStatusValidator.isValid()) {\n try {\n this.servicesManager.updateContractStatus(this.in(\"String_Node_Str\"), ServiceContractStatus.value...
"private void deliverChangeToOther(IModelChangeMessage[] changeMessages) {\n for (int i = 0; i < changeMessages.length; i++) {\n try {\n System.out.println(name + \"String_Node_Str\" + changeMessages[i]);\n otherQueue.enqueue(changeMessages[i].serialize());\n } catch (Serializatio...
"protected void onResume() {\n super.onResume();\n if (debug)\n Log.d(TAG, \"String_Node_Str\");\n if (isSignedIn() == false) {\n Intent frontdoor = new Intent(this, FrontDoor.class);\n startActivity(frontdoor);\n finish();\n }\n showFirstTimeWarningDialog();\n}\n"
"protected void fill() {\n String actor = actorPanel.getText().trim();\n while (e.getAttributes().getLength() > 0) {\n e.removeAttribute(e.getAttributes().item(0).getNodeName());\n }\n if (!actor.isEmpty())\n e.setAttribute(\"String_Node_Str\", actor);\n String id = actionPanel.getText();\n...
"public void upgrade(ISkillInfo upgrade, boolean quiet) {\n if (upgrade instanceof HPInfo) {\n if (upgrade.getProperties().getValue().containsKey(\"String_Node_Str\")) {\n int hp = ((IntTag) upgrade.getProperties().getValue().get(\"String_Node_Str\")).getValue();\n upgrade.getProperties(...
"public ExternalLoadBalancerDeviceVO addExternalLoadBalancer(long physicalNetworkId, String url, String username, String password, String deviceName, ServerResource resource, boolean gslbProvider, String gslbSitePublicIp, String gslbSitePrivateIp) {\n PhysicalNetworkVO pNetwork = null;\n NetworkDevice ntwkDevice ...
"public Pair<P1, P2> MkAtom(Choice<S1, S2> s) throws TimeoutException {\n if (s.isLeft()) {\n InL<S1, S2> cast = (InL<S1, S2>) s;\n return new Pair<P1, P2>(ba1.MkAtom(cast.left), ba2.False());\n } else {\n InR<S1, S2> cast = (InR<S1, S2>) s;\n return new Pair<P1, P2>(ba1.False(), ba2.M...
"public void event(Event event) {\n if (event instanceof InstantMessagingEvent) {\n processInstantMessageEvent((InstantMessagingEvent) event);\n } else if (event instanceof AssessmentEvent) {\n processAssessmentEvent((AssessmentEvent) event);\n } else if (event instanceof OpenInstantMessageEvent)...
"private void parse(XMLStreamReader xmlStreamReader) throws SAXException {\n if (null == getContentHandler()) {\n return;\n }\n switch(xmlStreamReader.getEventType()) {\n case XMLStreamReader.ATTRIBUTE:\n {\n break;\n }\n case XMLStreamReader.CDATA:\n ...
"private void createCoGroupAlternative(List<OptimizerNode> target, OptimizerNode subPlan1, OptimizerNode subPlan2, ShipStrategy ss1, ShipStrategy ss2, CostEstimator estimator) {\n GlobalProperties gp1, gp2;\n LocalProperties lp1, lp2;\n gp1 = PactConnection.getGlobalPropertiesAfterConnection(subPlan1, this, ss...
"public int getBlockId(int x, int y, int z) {\n int index = getIndex(x, y, z);\n int spins = 0;\n boolean interrupted = false;\n try {\n while (true) {\n if (spins++ > SPINS) {\n interrupted |= atomicWait(index);\n }\n checkCompressing();\n i...
"public static CharSelectInfo getLoadout() {\n CharSelectInfo selectInfo = new CharSelectInfo(\"String_Node_Str\", \"String_Node_Str\", START_HP, START_HP, 2, 99, 5, EnumPatch.BLACK_MAGE_CLASS, getStartingRelics(), getStartingDeck(), false);\n return selectInfo;\n}\n"
"public static final long[][] applyBinaryOperation(LongBinaryOperation op, final long[][] matrix1, final long[][] matrix2) {\n int rows = _rows(matrix1);\n int columns = _columns(matrix1);\n _checkSameDimension(\"String_Node_Str\", matrix1, matrix2);\n long[][] returnValue = new long[rows][columns];\n fo...
"public void addTenant(String admin, String firstName, String lastName, String password, String domain, String email) throws CommandException {\n DefaultHttpClient httpClient = new DefaultHttpClient();\n try {\n TenantInfoBean tenantInfo = new TenantInfoBean();\n tenantInfo.setAdmin(admin);\n ...
"public static MatchMetaData isPHITerm(final MatchMetaData data, final String text) {\n if (CommonUtils.isEmptyString(text)) {\n return null;\n }\n if (data.getColumnType().equals(\"String_Node_Str\") && phiList.contains(text.trim().toLowerCase(Locale.ENGLISH))) {\n log.info(\"String_Node_Str\" +...
"private Map<String, DocWeight> computeWeight(QueryContext ctx, QueryPlanner planner) {\n Iterator<List<QueryTerm>> stepsItr = planner.sequences.iterator();\n int stepsT = planner.sequences.size();\n StringBuilder sb = new StringBuilder(100);\n long bucketId = -1;\n int termSize = -1;\n Iterator<Long>...
"public String format(Object aValue) throws ParseException {\n if (numberFormat != null) {\n if (aValue instanceof Number)\n return numberFormat.format((Number) aValue);\n else\n return null;\n } else if (dateFormat != null) {\n if (aValue instanceof Date)\n r...
"public void testHorizonStatistics() {\n HorizonCounter hc = HorizonCounter.instance();\n ManagedConnection mc = new ManagedConnection(\"String_Node_Str\", 1);\n HorizonCounter.HORIZON_UPDATE_TIME = 1 * 200;\n PingReply pr1 = PingReply.create(GUID.makeGuid(), (byte) 3, 6346, new byte[] { (byte) 127, (byte) ...
"private void startListening() {\n LOG.info(\"String_Node_Str\");\n while (on) {\n JSONObject response;\n String responseString = \"String_Node_Str\";\n try {\n responseString = Connection.getRequestResponse(\"String_Node_Str\" + server + \"String_Node_Str\" + key + \"String_Node_S...
"public Sound transform(Sound sound) {\n int threshold = 100;\n int channelNum = sound.getChannelNum();\n Sound builtSound = new Sound(new long[sound.getSamples().length], sound.getNbBytesPerSample(), sound.getFreq(), channelNum);\n double[] freqs = new double[sound.getSamples().length / threshold + 1];\n ...
"public Set<Comment> find(Set<Long> ids, List<QueryConstraint> constraints) throws IOException {\n Set<Comment> foundSet = new HashSet<Comment>();\n if (query.getConstraints() == null || query.getConstraints().isEmpty()) {\n Set<Long> ids = query.getIdSet();\n if (ids != null && !ids.isEmpty()) {\n ...
"public void setObserver(IPrintDocumentAdapterObserver observer) {\n final boolean destroyed;\n synchronized (mLock) {\n mObserver = observer;\n destroyed = isDestroyedLocked();\n }\n if (destroyed && observer != null) {\n try {\n observer.onDestroy();\n } catch (Remot...
"public Closeable mountDeploymentContent(String name, byte[] deploymentHash, VirtualFile mountPoint) throws IOException {\n String sha1 = bytesToHexString(deploymentHash);\n String partA = sha1.substring(0, 2);\n String partB = sha1.substring(2);\n File base = new File(repoRoot, partA);\n File hashDir = ...
"public void showConceptAnnotations() throws IllegalActionException {\n OntologySolver solver = (OntologySolver) getContainer();\n for (Object propertyable : solver.getAllPropertyables()) {\n if (propertyable instanceof NamedObj) {\n Concept concept = solver.getConcept(propertyable);\n ...
"public void updateStatus() {\n StartItem item;\n int i, j;\n for (i = 0; i < ni; i++) {\n setItemNameButton(i, false);\n actionableItems[i] = null;\n }\n dummyButton.setSelected(true);\n for (PossibleAction action : possibleActions.getList()) {\n log.debug(action.getPlayerName() ...
"public List<Map<String, String>> getDisplayInfo() {\n NumberFormat numberFormat = NumberFormat.getInstance(Locale.getDefault());\n List<Map<String, String>> info = new ArrayList<>();\n for (String symbol : this.getSortedSymbols()) {\n StockQuote quote = this.stocksQuotes.get(symbol);\n Portfolio...
"private Property buildTransformationProperty(JavaHasAnnotations javaHasAnnotations, JavaClass cls) {\n Property property = new Property(helper);\n org.eclipse.persistence.oxm.annotations.XmlTransformation transformationAnnotation = (org.eclipse.persistence.oxm.annotations.XmlTransformation) helper.getAnnotation(...
"public void layout(Object composite) {\n KielerLayoutConnector.setLayoutInProgress(true);\n KielerLayoutArcConnector.setLayoutInProgress(true);\n long overallTime = System.currentTimeMillis();\n _report(\"String_Node_Str\");\n long graphOverhead = overallTime;\n _graphModel = getLayoutTarget().getGra...
"public <K extends TBase<?, ?>> ThriftCacheKey<K> getKey(String table, K tkey, Class<K> clazz) {\n User user = UserContext.getUser();\n return new ThriftCacheKey<K>(user, table, shards, tkey, clazz);\n}\n"
"private void handleCursorDraggingLevel1(final GL gl) {\n Point currentPoint = glMouseListener.getPickedPoint();\n float[] fArTargetWorldCoordinates = new float[3];\n int iselElement;\n int iNrSamples;\n fArTargetWorldCoordinates = GLCoordinateUtils.convertWindowCoordinatesToWorldCoordinates(gl, currentP...
"public void iterate(Object object) {\n if (isClassReadOnly(object.getClass(), this.getCurrentDescriptor())) {\n this.setShouldBreak(true);\n return;\n }\n if (isSmartMerge() && isOriginalNewObject(object)) {\n return;\n } else if (!isObjectRegistered(object)) {\n if (shouldPerfo...
"public void varcharTest() {\n Invocation invocation = new Invocation(\"String_Node_Str\");\n invocation.setParameter(\"String_Node_Str\", \"String_Node_Str\");\n Operation op = xrService.getOperation(invocation.getName());\n Object result = op.invoke(xrService, invocation);\n assertNotNull(\"String_Node...
"public void testGetAllUnigrams() {\n extractAllUnigramFeats(0, 3);\n}\n"
"public void setAccountsVisible(boolean visible) {\n if (visible == accountsVisible)\n return;\n accountsVisible = visible;\n if (accountsVisible) {\n accountsList.setVisibility(View.VISIBLE);\n if (Build.VERSION.SDK_INT >= 12) {\n accountsList.setAlpha(0);\n accounts...
"private String sendRequest(String service, String xmlRequest) throws ExecutionException {\n org.apache.commons.httpclient.protocol.Protocol myhttps = null;\n HttpClient client = new HttpClient();\n client.getHostConfiguration().setHost(_ip, 443, myhttps);\n byte[] response = null;\n PostMethod method = ...
"private Alignments.AlignmentEntry andBack(final int index, int originalIndex, final Alignments.AlignmentEntry reduced) {\n final Alignments.AlignmentEntry.Builder result = Alignments.AlignmentEntry.newBuilder(reduced);\n final int multiplicity = multiplicities.get(index);\n final int k = multiplicity - 1;\n ...
"protected void initialize() {\n getConnection().setInputModel(false);\n this.treePopulator = new TreePopulator(availableXmlTree);\n if (getConnection().getXmlFilePath() != null) {\n xmlXsdFilePath.setText(getConnection().getXmlFilePath().replace(\"String_Node_Str\", \"String_Node_Str\"));\n chec...
"protected void doRun() throws EngineException {\n doValidateParameters();\n loadDesign();\n prepareDesign();\n startFactory();\n openReportDocument();\n try {\n ReportRunnable newRunnable = writer.saveDesign(executionContext.getRunnable(), executionContext.getOriginalRunnable());\n exec...
"public boolean performOk() {\n if (isValid()) {\n saveOutputColumns();\n ((DataSetHandle) getContainer().getModel()).removeListener(this);\n if (this.modelChanged) {\n ((DataSetEditor) this.getContainer()).updateDataSetDesign(this);\n this.modelChanged = false;\n }\...
"public static void merge(org.eclipse.microprofile.openapi.annotations.headers.Header header, Map<String, Header> headers, boolean override, Map<String, Schema> currentSchemas) {\n if (isAnnotationNull(header)) {\n return;\n }\n String headerName = header.name();\n if (header.name() == null || header...
"public void update(String key, Object[] plist) throws UpdateApiException, Exception {\n try {\n Server server = ServerManager.getAuthorizedServer(key, JIPDBSXmlRpc3Servlet.getClientIpAddress());\n List<PlayerInfo> list = new ArrayList<PlayerInfo>();\n for (Object o : plist) {\n try {...
"public boolean write(IProgressMonitor monitor) throws CoreException {\n ApplicationDeploymentInfo deploymentInfo = appModule.getDeploymentInfo();\n if (deploymentInfo == null) {\n return false;\n }\n String appName = deploymentInfo.getDeploymentName();\n Map<Object, Object> deploymentInfoYaml = p...
"public boolean performOk() {\n for (int i = 0; i < bindingName.size(); i++) {\n try {\n String value = null;\n Text propertyText = (Text) propertyTextList.get(i);\n if (!propertyText.isDisposed() && propertyText.getText() != null && propertyText.getText().trim().length() > 0)...
"public void buildModObjectList() {\n ImmutableBiMap.Builder<ModContainer, Object> builder = ImmutableBiMap.<ModContainer, Object>builder();\n for (ModContainer mc : activeModList) {\n if (!mc.isImmutable()) {\n builder.put(mc, mc.getMod());\n }\n }\n modObjectList = builder.build()...
"public void handleMessage(Message message) {\n if (message.what == PassphraseDialogFragment.MESSAGE_OKAY) {\n Intent finishIntent = new Intent();\n finishIntent.putExtra(OpenPgpConstants.PI_RESULT_PARAMS, params);\n RemoteServiceActivity.this.setResult(RESULT_OK, finishIntent);\n } else {\n ...
"public int compare(Edge o1, Edge o2) {\n Integer o1Idx = (Integer) o1.getProperty(Properties.collection_index.name());\n Integer o2Idx = (Integer) o2.getProperty(Properties.collection_index.name());\n if (null == o1Idx && null == o2Idx)\n return 0;\n if (null == o1Idx)\n return -1;\n if (n...
"public FinishedBuildingResponse finishedBuilding(FinishedBuildingRequest request) throws TException {\n LOG.info(String.format(\"String_Node_Str\", request.getMinionId()));\n checkBuildId(request.getStampedeId());\n synchronized (lock) {\n Preconditions.checkArgument(request.isSetMinionId());\n ...
"protected boolean equalsAs(PossibleAction pa, boolean asOption) {\n if (pa == this)\n return true;\n if (!super.equalsAs(pa, asOption))\n return false;\n DiscardTrain action = (DiscardTrain) pa;\n boolean options = Objects.equal(this.getOwnedTrainTypes(), action.getOwnedTrainTypes()) && Objec...
"public static int getEmcValue(ItemStack stack) {\n if (stack == null) {\n return 0;\n }\n SimpleStack iStack = new SimpleStack(stack);\n if (!iStack.isValid()) {\n return 0;\n }\n if (!EMCMapper.mapContains(iStack) && ItemHelper.isDamageable(stack)) {\n iStack = iStack.withMeta(0...
"public void getBoundingBoxTest() {\n for (byte zoom = (byte) 0; zoom < 25; zoom++) {\n Tile tile1 = new Tile(0, 0, zoom, TILE_SIZE);\n if (zoom == 0) {\n Assert.assertTrue(tile1.getBoundingBox().equals(new BoundingBox(MercatorProjection.LATITUDE_MIN, -180, MercatorProjection.LATITUDE_MAX, 1...
"public HitEnum buildHitEnum() throws IOException {\n HitEnum e = buildHitEnumForSource();\n e = weigher.wrap(context.fieldName, e);\n FieldOptions options = context.field.fieldOptions();\n if (!options.scoreOrdered()) {\n Boolean topScoring = (Boolean) executionContext.getOption(\"String_Node_Str\")...
"public void watch(GameEvent event, Game game) {\n if (event.getType() == GameEvent.EventType.DECLARE_ATTACKERS_STEP_PRE) {\n Player activePlayer = game.getPlayer(game.getActivePlayerId());\n for (Permanent permanent : game.getBattlefield().getAllActivePermanents(activePlayer.getId())) {\n i...
"public static Location parseLocationFromJsonObj(Map<String, Object> locationMap) {\n String country = Utils.getNullForEmptyString((String) locationMap.get(\"String_Node_Str\"));\n String state = Utils.getNullForEmptyString((String) locationMap.get(\"String_Node_Str\"));\n String county = Utils.getNullForEmpty...
"public void openIndexTable(String tableName) throws BimserverDatabaseException {\n if (tables.containsKey(tableName)) {\n throw new BimserverDatabaseException(\"String_Node_Str\" + tableName + \"String_Node_Str\");\n }\n DatabaseConfig databaseConfig = new DatabaseConfig();\n databaseConfig.setAllow...
"public static Image getRobonoboIconImage() {\n return GuiUtil.getImage(\"String_Node_Str\");\n}\n"
"public void onTextChanged(String s) {\n if (!isFinishing()) {\n mSlideshowEditor.changeText(mPosition, s);\n }\n}\n"
"public ShortPoint2D next() {\n return hasNext() ? waypoints[i++] : null;\n}\n"
"public void onStartMoving(StartMovingEvent startMove) {\n Entity et = startMove.getThisEntity();\n int agentID = et.get(AgentIdentifiers.class).agentID;\n GWVector pos = et.get(Position.class).position;\n GWVector dir = startMove.getDirection();\n et.get(Direction.class).direction = dir.getUnit();\n ...