content
stringlengths
40
137k
"public void onViewCreated(View view, Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n view.setBackgroundColor(Color.WHITE);\n}\n"
"public int hashCode() {\n int hash = 7;\n hash = 97 * hash + (this.idTable != null ? this.idTable.hashCode() : 0);\n hash = 97 * hash + (this.documentStr != null ? this.documentStr.hashCode() : 0);\n return hash;\n}\n"
"public void testGetAsyncOperationSuccessfulWhenQuorumSizeMet() throws Exception {\n Future<Object> future = map1.getAsync(\"String_Node_Str\");\n future.get();\n}\n"
"void addInputDataSource(DataSource inputDataSource, AudioMixingPushBufferDataSource outputDataSource) {\n if (inputDataSource == null)\n throw new IllegalArgumentException(\"String_Node_Str\");\n synchronized (inputDataSources) {\n for (InputDataSourceDesc inputDataSourceDesc : inputDataSources) if...
"public void initializeRecord(XMLMapping selfRecordMapping) throws SAXException {\n try {\n XMLDescriptor xmlDescriptor = (XMLDescriptor) treeObjectBuilder.getDescriptor();\n if (xmlDescriptor.isSequencedObject()) {\n unmarshalContext = new SequencedUnmarshalContext();\n } else {\n ...
"private void checkDifficultyTransitions(StoredBlock storedPrev, Block nextBlock) throws BlockStoreException, VerificationException {\n Block prev = storedPrev.getHeader();\n if ((storedPrev.getHeight() + 1) % params.interval != 0) {\n if (params.getId().equals(NetworkParameters.ID_TESTNET) && nextBlock.ge...
"public int readInteger() {\n readFully(in, tmpBuf.array(), 0, 4);\n return tmpBuf.getInt(0);\n}\n"
"private void addNameDataToPrefPage(Object selectedPage) {\n if (selectedPage == null) {\n return;\n }\n PreferenceManager prefMan = PlatformUI.getWorkbench().getPreferenceManager();\n Iterator iter = prefMan.getElements(PreferenceManager.PRE_ORDER).iterator();\n while (iter.hasNext()) {\n ...
"public DatabaseMetaData getDatabaseMetaData(IMetadataConnection iMetadataConnection) throws ClassNotFoundException, InstantiationException, IllegalAccessException, SQLException {\n ExtractMetaDataUtils extractMeta = ExtractMetaDataUtils.getInstance();\n extractMeta.getConnection(iMetadataConnection.getDbType(), ...
"private MPIMessage serializeObject(Object object, int source) {\n IntData data1 = new IntData(10);\n MultiObject multiObject = new MultiObject(source, data1);\n IntData data2 = new IntData(100);\n MultiObject multiObject2 = new MultiObject(source, data2);\n List<Object> list = new ArrayList<>();\n li...
"private void cleanupWorkers() {\n for (Thread w : workers) {\n try {\n w.join(Math.max(0, maxMillis - System.currentTimeMillis()));\n } catch (InterruptedException e) {\n LOG.log(Level.SEVERE, \"String_Node_Str\", e);\n }\n }\n for (Thread w : workers) {\n w.i...
"public void onReceive(Context context, Intent intent) {\n Log.d(TAG, \"String_Node_Str\" + intent.getAction());\n String action = intent.getAction();\n if (!isConnected()) {\n Log.d(TAG, \"String_Node_Str\");\n if (mBluetoothHeadsetClient == null)\n Log.d(TAG, \"String_Node_Str\");\n ...
"public final Object getProperty(final String name) throws PropertyException {\n switch(name) {\n case XML.LOCALE:\n return locale;\n case XML.TIMEZONE:\n return timezone;\n case XML.SCHEMAS:\n return schemas;\n case XML.GML_VERSION:\n return gm...
"private int getAction(CompositeStatementObject parentComposite, int i, CompositeStatementObject childComposite) {\n int action = PUSH_NEW_LIST;\n List<AbstractStatement> statements = new ArrayList<AbstractStatement>(parentComposite.getStatements());\n CompositeStatementObject parent = (CompositeStatementObjec...
"public void postConstruct() {\n LOG.info(\"String_Node_Str\");\n List<ActiveDescriptor<?>> descriptor = habitat.getDescriptors(BuilderHelper.createContractFilter(ConfigInjector.class.getName()));\n Class<?> clz = null;\n for (ActiveDescriptor desc : descriptor) {\n if (desc.getName() == null) {\n ...
"private boolean createOrUpdateKey(String newKey, String referenceValue, String localeValue) {\n boolean operationPerformed = false;\n if (Messages.invalidConnection || Messages.noConnection || referenceValue == null || \"String_Node_Str\".equals(referenceValue))\n return operationPerformed;\n String se...
"public DResult process(EndpointResult epr) {\n DResult result = new DResult();\n result.setEndpointResult(epr);\n log.debug(\"String_Node_Str\", _epURI);\n result.setDescriptionFiles((List) new ArrayList<DGETInfo>());\n int failures = 0;\n log.debug(\"String_Node_Str\", \"String_Node_Str\", _epURI);\...
"public long getBufferedSize() {\n return dictionaryTooBig ? plainValuesWriter.getBufferedSize() : encodedValues.size() * 4;\n}\n"
"public String getBorderRightWidth() {\n return style.getBorderRightWidth();\n}\n"
"public List<Account> getRecipients() {\n List<Account> recipients = new ArrayList<>();\n switch(this.type) {\n case Group.GROUP_INVITATION:\n for (String accountId : inviteList) {\n try {\n final Account account = Account.findById(Long.parseLong(accountId));\n ...
"private static int readerIndex(int n, int[] starts, int numSubReaders) {\n int lo = 0;\n int hi = numSubReaders - 1;\n while (hi >= lo) {\n int mid = (lo + hi) >>> 1;\n int midValue = starts[mid];\n if (n < midValue) {\n hi = mid - 1;\n else if (n > midValue)\n ...
"private void loadObjectMetaDatas(String moduleNames, Map<UUID, RootObjectReference> referencedModules) throws RepositoryException {\n if (moduleNames == null)\n return;\n StringTokenizer tk = new StringTokenizer(moduleNames, \"String_Node_Str\");\n int count = tk.countTokens();\n if (count > 0) {\n ...
"public void afterTextChanged(Editable s) {\n if (searchbox.getText() == s) {\n if (adapter != null) {\n adapter.applyFilter(s.toString());\n }\n }\n}\n"
"public static KurentoClient create(String websocketUrl, KurentoConnectionListener listener, Properties properties) {\n log.info(\"String_Node_Str\", websocketUrl);\n JsonRpcClientWebSocket client = new JsonRpcClientWebSocket(websocketUrl, JsonRpcConnectionListenerKurento.create(listener), new SslContextFactory()...
"public boolean onCreateOptionsMenu(Menu menu) {\n super.onCreateOptionsMenu(menu);\n menu.add(0, MENU_ABOUT, 0, R.string.about).setIcon(R.drawable.about001a).setShortcut('0', 'a');\n Intent intent = new Intent(null, getIntent().getData());\n intent.addCategory(Intent.CATEGORY_ALTERNATIVE);\n menu.addInt...
"private void recordFinish() {\n NetworkVertex v = popStack();\n if (getSeenData(v) == VisitColor.WHITE)\n putSeenData(v, VisitColor.BLACK);\n finishVertex(v);\n}\n"
"public void insert(ServiceObject item) throws ExistingResourceException, PersistentStoreFailureException {\n List<String> lstError = new CopyOnWriteArrayList<String>();\n try {\n if (logger.isDebugEnabled()) {\n logger.debug(\"String_Node_Str\" + item.toDBObject());\n }\n DBObject...
"public void run() {\n ApplicationMonitor applicationMonitor = null;\n int retries = 5;\n boolean success = false;\n do {\n try {\n Thread.sleep(5000);\n } catch (InterruptedException e1) {\n }\n try {\n long start = System.currentTimeMillis();\n ...
"private List<Double> getDataBin(int toBinningNum) {\n List<Double> binBorders = new ArrayList<Double>();\n binBorders.add(Double.NEGATIVE_INFINITY);\n if (this.currentHistogramUnitCnt <= toBinningNum) {\n convertHistogramUnitIntoBin(binBorders);\n return binBorders;\n }\n int totalCnt = ge...
"public void registerNetworkEntity(EntityRef entity) {\n if (mode == NetworkMode.NONE) {\n return;\n }\n NetworkComponent netComponent = entity.getComponent(NetworkComponent.class);\n if (mode == NetworkMode.SERVER) {\n netComponent.setNetworkId(nextNetId++);\n entity.saveComponent(netC...
"protected void populateItem(final ListItem item) {\n String mandatoryCondition = schemaTO.getMandatoryCondition();\n boolean required = false;\n if (mandatoryCondition.equalsIgnoreCase(\"String_Node_Str\")) {\n required = true;\n }\n if (schemaTO.getType().getClassName().equals(\"String_Node_Str\...
"public synchronized void pushEvent(String workflowId, Event event) throws IOException {\n eventMap.put(event.getId(), event);\n switch(event.getType()) {\n case WORKFLOW_PROGRESS:\n Event.WorkflowProgressEvent workflowProgressEvent = (Event.WorkflowProgressEvent) event;\n String prog...
"protected CqlResult executeCQLQuery(String cqlQuery) throws InvalidRequestException, UnavailableException, TimedOutException, SchemaDisagreementException, TException {\n Cassandra.Client conn = null;\n Object pooledConnection = null;\n pooledConnection = getConection(persistenceUnit);\n conn = getConnectio...
"private void handleDragging(final GL gl) {\n Point currentPoint = glMouseListener.getPickedPoint();\n float[] fArTargetWorldCoordinates = new float[3];\n fArTargetWorldCoordinates = GLCoordinateUtils.convertWindowCoordinatesToWorldCoordinates(gl, currentPoint.x, currentPoint.y);\n float fWidth = viewFrustu...
"private boolean isComponentNeedRepartion(IConnection con, Node needToPar) {\n String partitioning = needToPar.getComponent().getPartitioning();\n if (partitioning.equals(\"String_Node_Str\")) {\n if (ParallelExecutionUtils.existPreviousPar((Node) con.getSource()) || ParallelExecutionUtils.existPreviousDep...
"private void parseTag(String tagName, Block tagBody, Map beans) {\n Digester digester = new Digester();\n digester.setNamespaceAware(true);\n digester.setRuleNamespaceURI(Configuration.NAMESPACE_URI);\n digester.setValidating(false);\n Set tagKeys = Taglib.getTagMap().keySet();\n for (Iterator iterat...
"private void forceStopUserLocked(int userId, String reason) {\n forceStopPackageLocked(null, -1, false, false, true, false, false, userId, reason);\n Intent intent = new Intent(Intent.ACTION_USER_STOPPED);\n intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY | Intent.FLAG_RECEIVER_FOREGROUND);\n intent.p...
"public void precompute(DrawContext dc) {\n GL2 gl = dc.getGL().getGL2();\n pushState(gl);\n gl.glMatrixMode(GL2.GL_PROJECTION);\n gl.glViewport(0, 0, dc.getDrawableWidth(), dc.getDrawableHeight());\n URL trUrl = Atmosphere.class.getResource(\"String_Node_Str\");\n URL irUrl = Atmosphere.class.getReso...
"private String uniformLogFormat(LogRecord record) {\n try {\n LogEventImpl logEvent = new LogEventImpl();\n SimpleDateFormat dateFormatter = new SimpleDateFormat(getRecordDateFormat() != null ? getRecordDateFormat() : RFC_3339_DATE_FORMAT);\n StringBuilder recordBuffer = new StringBuilder(getRe...
"protected void drawCubic(Canvas c, LineDataSet dataSet, List<Entry> entries) {\n Transformer trans = mChart.getTransformer(dataSet.getAxisDependency());\n Entry entryFrom = dataSet.getEntryForXIndex(mMinX);\n Entry entryTo = dataSet.getEntryForXIndex(mMaxX);\n int minx = dataSet.getEntryPosition(entryFrom)...
"public void reduce(Text key, Iterator<Text> values, OutputCollector<Text, Text> output, Reporter reporter) throws IOException {\n Cluster cluster = new Cluster(key.toString());\n while (values.hasNext()) {\n cluster.addPoint(AbstractVector.decodeVector(values.next().toString()));\n }\n output.collec...
"private void setMeasureDataTypeForCubeQuery(ICubeQueryDefinition query) {\n List measures = query.getMeasures();\n if (this.cubeMetaDataHandleMap != null && this.cubeMetaDataHandleMap.containsKey(query.getName())) {\n CubeHandle cubeHandle = (CubeHandle) this.cubeMetaDataHandleMap.get(query.getName());\n ...
"private void marshalNilAttribute(SDOProperty property, DOMRecord row) {\n NamespaceResolver resolver;\n if (this.resolver == null) {\n resolver = typeHelper.getNamespaceResolver();\n } else {\n resolver = this.resolver;\n }\n String xsiPrefix = resolver.resolveNamespaceURI(XMLConstants.SCH...
"public static boolean doSupportMethod(String hiveDistribution, String hiveVersion, boolean byDisplay, String supportMethodName) {\n IHDistribution distribution = getDistribution(hiveDistribution, byDisplay);\n if (distribution != null) {\n IHDistributionVersion version = distribution.getHDVersion(hiveVers...
"public static BandedSemiLocalResult semiLocalLeft0(final AffineGapAlignmentScoring<NucleotideSequence> scoring, final NucleotideSequence seq1, final NucleotideSequence seq2, int offset1, int length1, int offset2, int length2, final int width, final MutationsBuilder<NucleotideSequence> mutations, final MatrixCache cach...
"public boolean acceptEcmaScript5() {\n switch(options.getLanguageIn()) {\n case ECMASCRIPT5:\n case ECMASCRIPT5_STRICT:\n return true;\n }\n return false;\n}\n"
"public Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) {\n super.getTreeCellRendererComponent(tree, value, selected, expanded, leaf, row, hasFocus);\n DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode) value;\n ...
"public Account getAccount(String address) {\n for (Account e : walletInMem.getAccounts()) {\n if (e.address.equals(address)) {\n return e;\n }\n }\n return null;\n}\n"
"public void onRefresh() {\n connected = Utils.isInternetConnected(mContext);\n if (connected)\n if (mType == 1)\n refreshRec();\n else\n getNews(mSource, mPage = 1);\n else {\n if (mListener != null)\n mListener.showSnackBar(R.string.response_fail);\n ...
"protected void _execute() throws Exception {\n ComponentEntity entity = _modalModel.getEntity(_name);\n MoMLChangeRequest request = new MoMLChangeRequest(this, entity, _moml);\n request.execute();\n}\n"
"private String resolveTableName(TypeInformation<T> typeInformation) {\n String tableName = null;\n Table annotation = findAnnotation(Table.class);\n if (annotation != null) {\n tableName = hasText(annotation.name()) ? replace(annotation.name(), \"String_Node_Str\", \"String_Node_Str\") : fallback;\n ...
"protected ClientConfig createClientConfig() {\n ClientConfig clientConfig = new ClientConfig();\n clientConfig.getNetworkConfig().addAddress(\"String_Node_Str\");\n return clientConfig;\n}\n"
"public void onBlockPlacedBy(net.minecraft.world.World World, int X, int Y, int Z, net.minecraft.entity.EntityLivingBase Entity, net.minecraft.item.ItemStack Item) {\n super.onBlockPlacedBy(World, X, Y, Z, Entity, Item);\n try {\n ((TileEntity) World.getTileEntity(X, Y, Z)).Setup((net.minecraft.entity.play...
"public void execute(RiakAction<OP> action) {\n notNull(action, \"String_Node_Str\");\n ClientBootstrap bootstrap = new ClientBootstrap(this.channelFactory);\n Integer i = this.config.getTimeout();\n if (i != null) {\n bootstrap.setOption(\"String_Node_Str\", i);\n }\n bootstrap.setPipelineFact...
"protected SshTool connectSsh(Map props) {\n if (!truth(user))\n user = System.getProperty(\"String_Node_Str\");\n Map<?, ?> allprops = MutableMap.builder().putAll(config).putAll(leftoverProperties).putAll(props).build();\n Map<String, Object> args = MutableMap.<String, Object>of(\"String_Node_Str\", us...
"public void drawText(ModelImpl objectModel) {\n Renderable renderable = objectModel.getObj();\n TextDataImpl textData = (TextDataImpl) renderable.getTextData();\n if (textData != null) {\n model.colorMode.textColor(this, textData, objectModel);\n model.sizeMode.setSizeFactor(textData, objectMode...
"public Fragment getItem(int position) {\n switch(position) {\n case 0:\n return ScanFragment.newInstance();\n case 1:\n return BeaconDataFragment.newInstance();\n case 2:\n return RegionLogFragment.newInstance();\n case 3:\n return Notification...
"public boolean isSuperTypeOf(IType type) {\n IClass iclass = getTupleClass(this.typeCount);\n if (!iclass.isSubTypeOf(type)) {\n return false;\n }\n for (int i = 0; i < this.typeCount; i++) {\n ITypeVariable typeVar = iclass.getTypeVariable(i);\n IType type1 = type.resolveType(typeVar)...
"public LibraryEntry getLibraryEntryIfAnimeExists(String animeId) {\n Map<String, String> params = new HashMap<String, String>();\n if (prefMan.getAuthToken() != null)\n params.put(\"String_Node_Str\", prefMan.getAuthToken());\n for (LibraryEntry entry : getLibrary(prefMan.getUsername(), params)) {\n ...
"protected void doRun() {\n if (repositoryNode == null) {\n repositoryNode = (RepositoryNode) ((IStructuredSelection) getSelection()).getFirstElement();\n }\n BeanItem beanItem = (BeanItem) repositoryNode.getObject().getProperty().getItem();\n try {\n openBeanEditor(beanItem, false);\n ...
"protected Object decode(ChannelHandlerContext ctx, Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {\n ChannelBuffer buf = (ChannelBuffer) msg;\n buf.skipBytes(2);\n buf.readUnsignedShort();\n int version = buf.readUnsignedByte();\n ChannelBuffer id = buf.readBytes(20);\n i...
"public boolean onActivated(EntityPlayer entityPlayer) {\n if (entityPlayer.inventory.getCurrentItem() != null) {\n if (WrenchUtility.isUsableWrench(entityPlayer, entityPlayer.inventory.getCurrentItem(), this.xCoord, this.yCoord, this.zCoord)) {\n if (!this.worldObj.isRemote) {\n thi...
"public void startMonitors() {\n try {\n int i = 0;\n for (AutoscalingConfiguration c : this.config) {\n StreamMonitor monitor;\n try {\n LOG.info(String.format(\"String_Node_Str\", c.getStreamName()));\n monitor = new StreamMonitor(c, executor);\n ...
"public void showSoftInput(int flags, ResultReceiver resultReceiver) {\n if (DEBUG)\n Log.v(TAG, \"String_Node_Str\");\n boolean wasVis = isInputViewShown();\n mShowInputFlags = 0;\n if (onShowInputRequested(flags, false)) {\n showWindow(true);\n }\n boolean showing = isInputViewShown();...
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n requestWindowFeature(Window.FEATURE_PROGRESS);\n requestWindowFeature(Window.FEATURE_LEFT_ICON);\n setContentView(R.layout.compose_message_activity);\n setProgressBarVisibility(false);\n setTitle(\"String_Nod...
"public void createUser(final String user, final String group) throws GenieException {\n final CommandLine idCheckCommandLine = new CommandLine(\"String_Node_Str\");\n idCheckCommandLine.addArgument(\"String_Node_Str\");\n idCheckCommandLine.addArgument(user);\n try {\n this.executor.execute(idCheckC...
"protected void generateXMLSchema(ITypeModel t) {\n if (t instanceof ReflectionType) {\n Class<?> element = ((ReflectionType) t).getElement();\n generateXSDForClass(element);\n } else if (t.getFullyQualifiedName() != null && classLoader != null) {\n try {\n Class<?> element = class...
"public static VM_CodeArray[] buildTable() {\n String[] names = initNames();\n VM_CodeArray[] functions = new VM_CodeArray[VM_JNIFunctions.FUNCTIONCOUNT];\n VM_Class cls = VM_TypeReference.VM_JNIFunctions.peekResolvedType().asClass();\n if (VM.VerifyAssertions)\n VM._assert(cls.isInstantiated());\n ...
"public static void outputInfoMinimum() {\n level = Level.WARNING;\n}\n"
"public ScenarioDefinition read(String pathToFile) {\n LOGGER.debug(\"String_Node_Str\", pathToFile);\n XScenarioDefinition sd = null;\n try {\n JAXBContext jc = JAXBContext.newInstance(Configuration.getSessionUnrelatedSingleton().getPropertyAsStr(IConfiguration.CONF_SCENARIO_DEFINITION_PACKAGE));\n ...
"public String toString() {\n final StringBuilder s = new StringBuilder(\"String_Node_Str\");\n s.append(\"String_Node_Str\");\n if (observer != null)\n s.append(\"String_Node_Str\").append(observer.getClass().getName()).append(\"String_Node_Str\").append(Integer.toHexString(observer.hashCode())).append...
"private InputParameterAttributes updateInputElementAttrs(InputParameterAttributes inputParamAttrs, ScalarParameterHandle paramDefn, DataSetDesign dataSetDesign) {\n if (inputParamAttrs == null)\n inputParamAttrs = DesignFactory.eINSTANCE.createInputParameterAttributes();\n InputElementAttributes inputAttr...
"private JsonNode flatArrayOfElements(SopremoTestPlan testPlan, int[]... ids) {\n ArrayNode array = new ArrayNode();\n for (int sourceIndex = 0; sourceIndex < ids.length; sourceIndex++) {\n EvaluationExpression resultProjection = this.resultProjections[sourceIndex];\n if (resultProjection == null)\n...
"public Figure createBackgroundFigure() {\n NamedObj container = (NamedObj) getContainer();\n SingletonConfigurableAttribute description = (SingletonConfigurableAttribute) container.getAttribute(\"String_Node_Str\");\n if (_description != description) {\n if (_description != null) {\n _descri...
"public boolean set(TypeProvider target) {\n if (owner == null || !owner.isEditable())\n return false;\n if (target instanceof SharedFacetNode) {\n target = (TypeProvider) target.getParent();\n LOGGER.debug(\"String_Node_Str\");\n }\n TypeProvider oldProvider = owner.getAssignedType();\...
"protected String getFreqRowsStatement() {\n String clause = \"String_Node_Str\";\n TdColumn column = (TdColumn) indicator.getAnalyzedElement();\n int javaType = column.getJavaType();\n if (Java2SqlType.isTextInSQL(javaType)) {\n clause = getInstantiatedClause();\n } else if (Java2SqlType.isDateIn...
"private void calcReferenceVector() {\n referenceVector = getReferenceAxisCylic();\n if (referenceVector == null) {\n logger.warn(\"String_Node_Str\");\n referenceVector = new Vector3d(Y_AXIS);\n }\n referenceVector = orthogonalize(principalRotationVector, referenceVector);\n}\n"
"protected List<IEObjectDescription> computeExportedObjects() {\n Resource resource = getResource();\n if (resource instanceof XtextResource) {\n if (!resource.isLoaded()) {\n try {\n resource.load(null);\n } catch (IOException e) {\n log.error(e.getMessa...
"private void saveToCache(InputStream is, File to) {\n logger.info(\"String_Node_Str\" + to.getAbsolutePath());\n FileOutputStream fs = null;\n int times = 0;\n try {\n if (to.exists()) {\n to.delete();\n }\n fs = new FileOutputStream(to);\n int byteRead = 0;\n ...
"public ValidateResult verifyCoinData(Transaction transaction, List<Transaction> txList) {\n if (transaction == null || transaction.getCoinData() == null || txList == null) {\n return ValidateResult.getFailedResult(CLASS_NAME, LedgerErrorCode.NULL_PARAMETER);\n }\n try {\n CoinData coinData = tra...
"public SAMFileWriter makeWriter(final SAMFileHeader header, final boolean presorted, final File outputFile, final File referenceFasta) {\n if (outputFile.getName().endsWith(SamReader.Type.CRAM_TYPE.fileExtension())) {\n return makeCRAMWriter(header, presorted, outputFile, referenceFasta);\n } else {\n ...
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.records_activity, container, false);\n}\n"
"private boolean isValid() {\n boolean validate = true;\n String newColumnNameOrAlias;\n DataSetViewData[] items = null;\n if (viewer == null || viewer.getViewer() == null) {\n try {\n items = DataSetProvider.getCurrentInstance().getColumns(((DataSetEditor) getContainer()).getHandle(), fal...
"public void createInstanceAndStartDependencyOnScaleup(Group group, String parentInstanceId) throws MonitorNotFoundException {\n Instance parentInstanceContext = getParentInstanceContext(parentInstanceId);\n GroupLevelNetworkPartitionContext groupLevelNetworkPartitionContext = getGroupLevelNetworkPartitionContext...
"public void testAppInit() {\n Assert.assertFalse(PendingCalcs.isUpdatePending(CommCareApplication.instance().getCurrentApp().getAppPreferences()));\n Profile p = CommCareApplication.instance().getCommCarePlatform().getCurrentProfile();\n Assert.assertTrue(p.getVersion() == 8);\n}\n"
"public void run() {\n if (!running.compareAndSet(false, true)) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n sequenceBarrier.clearAlert();\n notifyStart();\n boolean processedSequence = true;\n long nextSequence = sequence.get();\n T event = null;\n while (true) {\n ...
"synchronized void stop() {\n finish = true;\n notifyAll();\n}\n"
"public boolean configure(String name, Map<String, Object> params) throws ConfigurationException {\n boolean success = super.configure(name, params);\n if (!success) {\n return false;\n }\n _storage = new JavaStorageLayer();\n _storage.configure(\"String_Node_Str\", params);\n String domrScript...
"public static int getImageDimensionValue(IContent content, DimensionType d, int dpi, int referenceLength) {\n if (d == null) {\n return -1;\n }\n try {\n return _getDimensionValue(content, d, renderOptionDpi, referenceLength);\n } catch (Exception e) {\n logger.log(Level.WARNING, e.get...
"public void mouseClicked(MouseEvent m) {\n EvaluatedDescription eDescription = null;\n if (view.getSuggestClassPanel().getSuggestList().getSelectedValue() != null) {\n SuggestListItem item = (SuggestListItem) view.getSuggestClassPanel().getSuggestList().getSelectedValue();\n String desc = item.getV...
"private void restoreDeleteObjectsTreeView(IRepositoryViewObject[] theInput) {\n for (IRepositoryViewObject viewObj : RemoveFromRepositoryAction.getViewObjectsRemovedList()) {\n Item item = viewObj.getProperty().getItem();\n MDMServerObject serverObj = ((MDMServerObjectItem) item).getMDMServerObject();...
"public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.filtershow_activity_menu, menu);\n MenuItem showHistory = menu.findItem(R.id.operationsButton);\n if (mShowingHistoryPanel) {\n item.setTitle(R.string.hide_history_panel);\n } else {\n item.setTitle(R.string.sh...
"public AjBuildConfig genBuildConfig(String configFile) {\n init();\n File configFile = new File(configFilePath);\n if (!configFile.exists()) {\n signalError(\"String_Node_Str\" + configFile + \"String_Node_Str\");\n return null;\n }\n String[] args = new String[] { \"String_Node_Str\" + co...
"protected final void processBean(String beanName, Object bean) {\n if (bean == null) {\n return;\n }\n Class<?> clazz = bean.getClass();\n if (!filter.isTarget(beanName, clazz)) {\n return;\n }\n try {\n retransformer.retransform(clazz, modifier);\n if (logger.isInfoEnable...
"public String handleTimeout(long updateMs) {\n if (s_logger.isTraceEnabled()) {\n getDownloadListener().log(\"String_Node_Str\" + updateMs + \"String_Node_Str\" + getName(), Level.TRACE);\n }\n String newState = getName();\n if (updateMs > 5 * DownloadListener.STATUS_POLL_INTERVAL) {\n newSta...
"public final String readUTF() throws IOException {\n boolean isNull = readBoolean();\n if (isNull)\n return null;\n int length = readInt();\n StringBuilder result = new StringBuilder(length);\n int chunkSize = length / FastByteArrayOutputStream.STRING_CHUNK_SIZE + 1;\n while (chunkSize > 0) {\...
"public String getValue(IndexedReport job) {\n String value = null;\n if (job != null && job.getPlugin() != null) {\n PluginInfo pluginInfo = pluginsInfo.get(job.getPlugin());\n String pluginName;\n if (pluginInfo != null) {\n pluginName = pluginInfo.getName();\n } else {\n ...
"private void marshal(Object object, MarshalRecord marshalRecord, AbstractSession session, XMLDescriptor descriptor, boolean isXMLRoot) {\n if (null != schema) {\n marshalRecord = new ValidatingMarshalRecord(marshalRecord, this);\n }\n if (getAttachmentMarshaller() != null) {\n marshalRecord.setX...
"public void cleanup() throws Exception {\n executorService.shutdown();\n stopwatch.reset();\n}\n"
"public void copyResults(Map<InstructionHandle, InstructionHandle> newHandles) {\n for (Map.Entry<InstructionHandle, InstructionHandle> entry : newHandles.entrySet()) {\n InstructionHandle oldHandle = entry.getKey();\n InstructionHandle newHandle = entry.getValue();\n if (newHandle == null)\n ...