content
stringlengths
40
137k
"public File selectHRMFile(final STOptions options, final String initialFile) {\n final FileChooser fileChooser = new FileChooser();\n fileChooser.setTitle(context.getResReader().getString(\"String_Node_Str\"));\n addFileExtensionFilters(fileChooser);\n final File fInitialFile = initialFile == null ? null :...
"private void ensureDocumentSize() {\n if (document.getLength() > Constants.CHAT_BUFFER_SIZE && document.getDefaultRootElement().getElementCount() > 2) {\n Element firstElement = this.document.getDefaultRootElement().getElement(0);\n try {\n if (firstElement != null)\n this.do...
"public static void populateUIInputs(CommandLine commandLine, ShellContext context) {\n for (UIInputComponent<?, ?> input : context.getInputs()) {\n if (commandLine.hasOption(input.getName())) {\n String value = commandLine.getOptionValue(input.getName());\n if (value == null) {\n ...
"void start(final BundleContext bundleContext) throws Exception {\n ConfigurationService cfg = ServiceUtils2.getService(bundleContext, ConfigurationService.class);\n this.defaultProcessingOptions = (cfg == null) ? 0 : cfg.getInt(DEFAULT_OPTIONS_PROPERTY_NAME, 0);\n if (logger.isDebugEnabled()) {\n logge...
"public void setPrimaryColor(int primaryColor) {\n if ((primaryColor != 0) && (Color.alpha(primaryColor) != 255)) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n mColorPrimary = primaryColor;\n}\n"
"protected void init() {\n super.init();\n adapter = new RequestToMyGiftsAdapter(context, gifts);\n mRecyclerView.setAdapter(adapter);\n linearLayoutManager = new LinearLayoutManager(context);\n mRecyclerView.setLayoutManager(linearLayoutManager);\n apiRequest.getRequestsToMyGifts(new StartLastIndex(s...
"public void equals_otherObject() {\n Assert.assertNotEquals(this.userPrincipal, \"String_Node_Str\");\n}\n"
"private static void loadIdExtractedInfo(DirectoryImporterDataSource dataSourceDirectoryImporter, DataSource dataSource, DataSourceUI dataSourceUI) {\n if (dataSourceDirectoryImporter.getRecordIdPolicy() instanceof IdExtractedRecordIdPolicy) {\n IdExtractedRecordIdPolicy idExtracted = (IdExtractedRecordIdPoli...
"public Double getDependencyFactor() {\n if (getACount() != null && getDistinctACount() != null) {\n return (getACount() == 0L) ? Double.NaN : getDistinctACount().doubleValue() / getACount().doubleValue();\n }\n return null;\n}\n"
"private static void addElementToNode(ATreeNode node, ATreeNode complexTypesRoot, XSModelGroupImpl group) throws OdaException {\n XSObjectList list = group.getParticles();\n for (int j = 0; j < list.getLength(); j++) {\n if (((XSParticleDecl) list.item(j)).getTerm() instanceof XSModelGroupImpl) {\n ...
"public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {\n if (sender instanceof Player) {\n Player petOwner = (Player) sender;\n if (MyPetList.hasMyPet(petOwner)) {\n MyPet myPet = MyPetList.getMyPet(petOwner);\n if (myPet.getStatus() == Pet...
"private EComponentCategory[] getCategories(Object obj) {\n List<EComponentCategory> category = new ArrayList<EComponentCategory>();\n ISVNProviderService service = null;\n if (PluginChecker.isSVNProviderPluginLoaded()) {\n service = (ISVNProviderService) GlobalServiceRegister.getDefault().getService(IS...
"protected void onResume() {\n Log.d(CALL_INTEGRATION, \"String_Node_Str\" + this);\n super.onResume();\n if (getLocalVideoView() != null) {\n getLocalVideoView().onResume();\n }\n if (getRemoteVideoView() != null) {\n getRemoteVideoView().onResume();\n }\n}\n"
"public String get() {\n Iterable<Message> msgs = console.getMessages(CoreMessageType.CHAT, CoreMessageType.NOTIFICATION);\n StringBuilder messageHistory = new StringBuilder();\n int count = 1;\n int size = Iterables.size(msgs);\n for (Message msg : msgs) {\n if (count > size - MAX_MESSAGES) {\n ...
"private void initTempDir(final File tempDir) {\n final File permDir = getPermanentDirectory();\n try {\n if (tempDir.equals(permDir) || FileUtils.directoryContains(tempDir, permDir)) {\n throw new RuntimeException(String.format(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\", TE...
"public void copyReferenceValue(EReference targetReference, EObject target, EObject value, EObject matchedValue) {\n if (matchedValue != null) {\n put(value, matchedValue);\n ((List<Object>) target.eGet(targetReference)).add(matchedValue);\n } else {\n copyReferenceValue(targetReference, targ...
"private static int maxType(int aType, int bType) {\n return Math.max(Math.max(aType, bType), INT);\n}\n"
"public void loadCards(String name, CardsView pile1, CardsView pile2, BigCard bigCard, CardDimensions dimension, UUID gameId) {\n this.title = name;\n this.pile1.loadCardsNarrow(pile1, bigCard, dimension, gameId, null);\n this.pile2.loadCardsNarrow(pile2, bigCard, dimension, gameId, null);\n if (getParent()...
"private void _arpWindows() {\n if (_ipMap.size() == 0) {\n System.err.println(\"String_Node_Str\" + _pingWindowsCommand + \"String_Node_Str\");\n }\n try {\n Process process = Runtime.getRuntime().exec(_arpCommand);\n BufferedReader stdOut = null;\n try {\n stdOut = new ...
"public org.w3c.dom.Attr createAttribute(String name) throws DOMException {\n AttVal av = new AttVal(null, null, '\"', name, null);\n av.dict = AttributeTable.getDefaultAttributeTable().findAttribute(av);\n return av.getAdapter();\n}\n"
"public void testSaveAndLoad() throws IOException, BirtException {\n IDocArchiveWriter writer = new FileArchiveWriter(tempFile.getAbsolutePath());\n ICubeQueryDefinition toSave = createQueryDefn();\n DataEngineContext context = DataEngineContext.newInstance(DataEngineContext.MODE_GENERATION, null, null, writer...
"public synchronized NodeCompletionResult onCompletedNode(ContainerStatus status) {\n ContainerId containerId = status.getContainerId();\n NodeCompletionResult result = new NodeCompletionResult();\n RoleInstance roleInstance;\n if (containersBeingReleased.containsKey(containerId)) {\n log.info(\"Stri...
"public Tuple exec(Tuple input) throws IOException {\n if (modelRunner == null) {\n List<BasicML> models = CommonUtils.loadBasicModels(modelConfig, this.columnConfigList, evalConfig, evalConfig.getDataSet().getSource(), evalConfig.getGbtConvertToProb());\n modelRunner = new ModelRunner(modelConfig, col...
"private void actionImportData(DataSourceConfiguration config) {\n final WorkerImport worker = new WorkerImport(config);\n main.showProgressDialog(Resources.getMessage(\"String_Node_Str\"), worker);\n if (worker.getError() != null) {\n if (worker.getError() instanceof IllegalArgumentException) {\n ...
"protected void firePresenceListeners(boolean joined, String[] users) {\n for (int j = 0; j < users.length; j++) {\n if (joined) {\n if (isChannelOperator(users[j]))\n setChannelOperator(users[j]);\n ID participantID = createIDFromString(users[j]);\n if (addChan...
"public void runBaseRecalibrator(String input, String table, String ref, String[] knownSites, String region) throws InterruptedException {\n ArrayList<String> command = new ArrayList<>();\n command.addAll(java);\n String[] gatkcmd = { mem, \"String_Node_Str\", gatk, \"String_Node_Str\", \"String_Node_Str\", mu...
"public Vector4 multiply(Vector4 v) {\n float X = v.x;\n float Y = v.y;\n float Z = v.z;\n float W = 1;\n float A = m[0][0], B = m[0][1], C = m[0][2], D = m[0][3];\n float E = m[1][0], F = m[1][1], G = m[1][2], H = m[1][3];\n float I = m[2][0], J = m[2][1], K = m[2][2], L = m[2][3];\n float M = ...
"public void setUp() {\n ModelImplFactory factory = new ModelImplFactory();\n fUstProviderInfo1 = factory.getUstProviderInfo1();\n fUstProviderInfo2 = factory.getUstProviderInfo2();\n fEventInfo1 = factory.getBaseEventInfo1();\n fEventInfo2 = factory.getBaseEventInfo2();\n}\n"
"void focusTask(int taskIndex, boolean scrollToNewPosition, final boolean animateFocusedState) {\n if (taskIndex == mFocusedTaskIndex)\n return;\n if (0 <= taskIndex && taskIndex < mStack.getTaskCount()) {\n mFocusedTaskIndex = taskIndex;\n Task t = mStack.getTasks().get(taskIndex);\n ...
"public void onCreate(Vector3 position) {\n if (this.orientation == 3 || this.orientation == 2) {\n ZhuYaoBase.bJia.makeFakeBlock(this.worldObj, Vector3.add(position, new Vector3(1, 0, 0)), new Vector3(this));\n ZhuYaoBase.bJia.makeFakeBlock(this.worldObj, Vector3.add(position, new Vector3(1, 1, 0)), n...
"public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object value, AbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) {\n if (xmlCompositeDirectCollectionMapping.hasValueConverter()) {\n if (xmlCompositeDirectColl...
"private static void checkForTickets(Status status, TicketChecker checker, EmailAccount email, int checkTime) {\n if (checker.isCheckingAnything()) {\n while (true) {\n status.setLastCheckedText(\"String_Node_Str\");\n long startTime = System.currentTimeMillis();\n if (checker...
"public void syncFluidLevels() {\n int lvl = this.fluidLevel;\n int xPos = this.getXPosition();\n int yPos = this.getYPosition();\n int zPos = this.getZPosition();\n int xSize = this.getXSize();\n int ySize = this.getYSize();\n int zSize = this.getZSize();\n boolean change = timer > 20 || forceU...
"public static void setUpClass() throws Throwable {\n testStackIndex++;\n if (singleNodeMain == null) {\n try {\n CConfiguration cConf = CConfiguration.create();\n cConf.set(Constants.CFG_LOCAL_DATA_DIR, tmpFolder.newFolder().getAbsolutePath());\n singleNodeMain = SingleNod...
"public View getView(int position, View convertView, ViewGroup parent) {\n View v = convertView;\n if (v == null) {\n LayoutInflater vi = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n v = vi.inflate(R.layout.gamerow, null);\n }\n Game o = null;\n if (position < gameL...
"private String getJsPrefix() {\n DefaultTextOutput out = new DefaultTextOutput(obfuscate);\n out.print(\"String_Node_Str\");\n out.newlineOpt();\n out.print(\"String_Node_Str\");\n out.newlineOpt();\n out.print(\"String_Node_Str\");\n out.newlineOpt();\n out.print(\"String_Node_Str\");\n out...
"public String call() throws GitAPIException {\n try {\n checkCallable();\n if (target == null)\n setTarget(Constants.HEAD);\n Collection<Ref> tagList = repo.getRefDatabase().getRefs(R_TAGS).values();\n Map<ObjectId, List<Ref>> tags = tagList.stream().collect(Collectors.groupin...
"private void parseSelectColumns(QueryModel model) throws ParserException {\n CharSequence tok;\n while (true) {\n ExprNode expr = expr();\n tok = tok();\n if (Chars.equals(tok, \"String_Node_Str\")) {\n model.addColumn(queryColumnPool.next().of(null, expr));\n break;\n ...
"public static void runSingleQuerySingleTarget(InputHandler inputHandler, OutputHandler outputHandler, ArgumentHandler argumentHandler) throws IOException, CDKException, CloneNotSupportedException {\n IAtomContainer query = inputHandler.getQuery();\n IAtomContainer target = inputHandler.getTarget();\n boolean ...
"public void submit(CommandContext args, final CommandSender sender, NPC npc) throws CommandException {\n if (!dB.record) {\n Messaging.send(sender, ChatColor.RED + \"String_Node_Str\");\n return;\n }\n dB.record = false;\n Messaging.send(sender, ChatColor.GREEN + \"String_Node_Str\");\n fi...
"protected edu.uoc.pelp.engine.deliver.DeliverFile getDeliverFile(DeliverFile file) throws ExecPelpException {\n if (file == null) {\n return null;\n }\n return newFile;\n}\n"
"public synchronized void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, final IProgressMonitor monitor) throws CoreException {\n try {\n setProcessFinished(false);\n rhodesLogHelper.stopLog();\n m_projectName = configuration.getAttribute(projectNameCfgAttribute, \"Strin...
"private void convertNameProperty(OrienteerWebApplication app, ODatabaseDocument db, String className) {\n boolean wasInTransacton = db.getTransaction().isActive();\n db.commit();\n for (ODocument doc : db.browseClass(className)) {\n Object value = doc.field(\"String_Node_Str\");\n if (value inst...
"public List<Object> executeLuceneQuery(EntityMetadata m, String luceneQuery) {\n log.info(\"String_Node_Str\" + luceneQuery);\n GraphDatabaseService graphDb = getConnection();\n List<Object> entities = new ArrayList<Object>();\n if (!indexer.isNodeAutoIndexingEnabled(graphDb) && m.isIndexable()) {\n ...
"private static LibraryFunction getScriptFromAnnotation(Class<?> javaClass) throws ScriptNotFoundException {\n if (javaClass.isAnnotationPresent(ClientSideScript.class)) {\n ClientSideScript clientSideScript = javaClass.getAnnotation(ClientSideScript.class);\n List<ResourceKey> resources = Lists.newArr...
"public boolean startElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, Attributes atts) {\n try {\n unmarshalRecord.removeNullCapableValue(this);\n Descriptor xmlDescriptor = (Descriptor) xmlCompositeObjectMapping.getReferenceDescriptor();\n if (null == xmlDescriptor) {\n ...
"private void updateVersion(AppManagerRead appManagerRead) {\n String softMgrVersion = \"String_Node_Str\";\n final SoftwareManager softwareManager = this.getSoftwareManager(appManagerRead.getName());\n ExecutorService exec = Executors.newFixedThreadPool(1);\n Future<String> futureResult = exec.submit(new C...
"public static void main(String[] args) throws IOException, StructureException, StructureAlignmentException {\n List<String> names = Arrays.asList(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n AtomCache cache = new AtomCache();\n List<Atom[]> atomArrays = new ArrayList<...
"private <TSettings extends ConfigurationSettingsBase> boolean tryLastChanceHostRedirection(Class<TSettings> cls, String emailAddress, URI redirectionUrl, OutParam<TSettings> settings) throws AutodiscoverLocalException, AutodiscoverRemoteException, Exception {\n List<String> redirectionEmailAddresses = new ArrayList...
"private int[] getDisplayGammaCalibrationArray(int idx) {\n try {\n if (checkService()) {\n return sService.getDisplayGammaCalibration(idx);\n }\n } catch (RemoteException e) {\n }\n return null;\n}\n"
"private void updateTarget() {\n if (!this.hasAttacked && this.targetEntity != null && autoPathToTarget) {\n this.path = this.world.findPath(this, this.targetEntity, pathingRange);\n }\n if (targetEntity != null) {\n if (this.targetEntity.dead) {\n resetTarget();\n }\n if...
"public void onReceive(Context context, Intent intent) {\n String action = intent.getAction();\n int state = intent.getIntExtra(\"String_Node_Str\", 0);\n if (mLibVLC == null) {\n Log.w(TAG, \"String_Node_Str\");\n return;\n }\n if (action.equalsIgnoreCase(VLCAppWidgetProvider.ACTION_WIDGET...
"private void checkAlertShowing(Friend newFriend, Friend oldFriend) {\n String alertMessage = null;\n String friendName = DatabaseManager.getUserById(context, newFriend.getUserId()).getFullName();\n boolean friendRejectedMe = oldFriend.isAskStatus() && !newFriend.isAskStatus() && newFriend.getRelationStatus()....
"public void stop() {\n if (!(this.workerState.changeStateDestroying())) {\n WorkerState state = this.workerState.getCurrentState();\n logger.info(\"String_Node_Str\", this.getClass().getSimpleName(), state.toString());\n return;\n }\n logger.info(\"String_Node_Str\", this.getClass().getSi...
"public void setIgnoredUserIdsList(List<String> users) {\n if (null != mMetadata) {\n mMetadata.mIgnoredUsers = users;\n Log.d(LOG_TAG, \"String_Node_Str\");\n commit();\n }\n}\n"
"public void publish(MetadataChangeRecord changeRecord) {\n byte[] changesToPublish = Bytes.toBytes(GSON.toJson(changeRecord));\n Object partitionKey = changeRecord.getPrevious().getEntityId();\n ByteBuffer message = ByteBuffer.wrap(changesToPublish);\n try {\n producer.get().send(new KeyedMessage<>(...
"public boolean isNull() {\n Operation operation = new IsNullOperation(name);\n return (Boolean) invoke(operation, getNodeEngine());\n}\n"
"public synchronized AuditConfiguration getAuditConfiguration() {\n if (this.auditConfiguration == null) {\n this.auditConfiguration = alienDAO.findById(AuditConfiguration.class, AuditConfiguration.ID);\n }\n return this.auditConfiguration;\n}\n"
"protected void customRun() throws InterruptedException {\n Packet packet = queue.poll(100, TimeUnit.MILLISECONDS);\n if (packet == null) {\n return;\n }\n EntryEvent event = new EntryEvent(packet.getName(), (int) packet.getLongValue(), toObject(packet.getKey()), toObject(packet.getValue()));\n fi...
"public static boolean checkConnectionStatus(String nexusURL, final String username, final String password) {\n if (StringUtils.isEmpty(nexusURL)) {\n return false;\n }\n final boolean[] status = { false };\n try {\n URL url = new URL(nexusURL);\n HttpURLConnection urlConnection = (Http...
"public void boot(AbstractTestSession testSession) {\n logger.entering(testSession.getPlatform());\n if ((testSession.getPlatform() != WebDriverPlatform.IOS) && !(testSession instanceof MobileTestSession)) {\n return;\n }\n if (((MobileTestSession) testSession).getMobileNodeType() != MobileNodeType.I...
"public Word[] getFillerWords() {\n Word[] fillerWordArray = new Word[fillerWords.size()];\n int index = 0;\n for (Iterator i = fillerWords.iterator(); i.hasNext(); ) {\n String spelling = (String) i.next();\n fillerWordArray[index++] = getWord(spelling);\n }\n return fillerWordArray;\n}\n"...
"public void processCommand(ICommandSender commandSender, String[] args) {\n if (args.length < 2)\n throw new WrongUsageException(\"String_Node_Str\");\n if (args[0].equals(\"String_Node_Str\")) {\n Set<BiomeGenBase> biomes = BiomeSelector.gatherAllBiomes();\n boolean didFindBiome = false;\n ...
"public Enumeration<URL> getResources(String packageName) throws IOException {\n String directoryPath = (new File(packageName).isAbsolute() || baseDirectory == null) ? packageName : baseDirectory + File.separator + packageName;\n File[] files = new File(directoryPath).listFiles();\n List<URL> results = new Arr...
"protected Pool setupVirtLimitPool() {\n Product product = new Product(productId, \"String_Node_Str\", owner);\n Pool pool = TestUtil.createPool(owner, product);\n pool.addAttribute(new PoolAttribute(\"String_Node_Str\", \"String_Node_Str\"));\n pool.setId(\"String_Node_Str\" + TestUtil.randomInt());\n w...
"private static int getKeyCodeViaReflection(String string) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException {\n Class<KeyCode> clazz = KeyCode.class;\n Method method = clazz.getMethod(string);\n Object o = method.invoke(keyCode);\n if (o instanceof Integer) {\n return (...
"public void renderItem(ItemRenderType type, ItemStack item, Object... data) {\n power = (byte) 0;\n RenderHelper rh = RenderHelper.instance;\n rh.setRenderCoords(null, 0, 0, 0);\n Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationBlocksTexture);\n Tessellator.instance.startDrawingQuad...
"private static boolean shouldDropReply(int bytesRouted, int ttl) {\n if (ttl > 3 && bytesRouted < 50 * 1024)\n return false;\n if (ttl == 0 && bytesRouted < 50 * 1024)\n return true;\n if (ttl == 1 && bytesRouted < 1000 * 1024)\n return true;\n if (ttl == 2 && bytesRouted < 333 * 1024)...
"public static Object moveObject(Address toAddress, Object fromObj, Object toObj, int numBytes) {\n if (VM.VerifyAssertions)\n VM._assert(toAddress.isZero() || toObj == null);\n int copyBytes = numBytes;\n int objRefOffset = OBJECT_REF_OFFSET;\n Word statusWord = Word.zero();\n Word hashState = HA...
"private void defineClasses(final Map<String, CtClass> ctClasses, final InputStream stream) throws XMLStreamException, ModelXmlCompilingException {\n XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(stream);\n while (reader.hasNext() && reader.next() > 0) {\n if (isTagStarted(re...
"public void destroy() {\n if (indexManager != null) {\n indexManager.close();\n }\n if (schemaManager != null) {\n schemaManager.dropSchema();\n }\n schemaManager = null;\n externalProperties = null;\n}\n"
"Drawable getIconDrawable() {\n if (mIconDrawable != null) {\n return mIconDrawable;\n } else if (mIcon != 0) {\n return getResources().getDrawable(mIcon);\n } else {\n return new ColorDrawable(Color.TRANSPARENT);\n }\n}\n"
"void snapToScreen(int whichScreen) {\n whichScreen = Math.max(0, Math.min(whichScreen, getChildCount() - 1));\n clearVacantCache();\n enableChildrenCache(mCurrentScreen, whichScreen);\n final int screenDelta = Math.abs(whichScreen - mCurrentScreen);\n mNextScreen = whichScreen;\n mPreviousIndicator.s...
"public void create(HttpRequest request, HttpResponder responder) {\n NamespaceMeta metadata;\n try {\n metadata = parseBody(request, NamespaceMeta.class);\n } catch (JsonSyntaxException e) {\n responder.sendString(HttpResponseStatus.BAD_REQUEST, \"String_Node_Str\");\n return;\n } catc...
"public static char valueToAlphanumeric(int value) {\n if (value < 0 || value >= ALPHANUMERIC.length())\n throw new RuntimeException(\"String_Node_Str\");\n return ALPHANUMERIC.charAt(value);\n}\n"
"protected HeaderMappingsDesc loadHeaderMappings(String adminName, OptionList options, boolean inbound) throws ServiceCreationException {\n if (options == null) {\n return HeaderMappingsDesc.EMPTY_MAPPINGS;\n }\n List<NameValue> nameValueList = options.getOption();\n Map<String, String> headerMap = n...
"public void testInjectDaaSource() {\n DataSource pinusGlobal = (DataSource) appCtx.getBean(\"String_Node_Str\");\n Assert.assertNotNull(pinusGlobal);\n DataSource pinusSharding1 = (DataSource) appCtx.getBean(\"String_Node_Str\");\n Assert.assertFalse(pinusSharding1.getConnection().isClosed());\n DataSou...
"public void onRenderLiving(RenderLivingEvent.Post<EntityLivingBase> event) {\n EntityLivingBase entity = event.getEntity();\n EnemyInfo enemyInfo = (EnemyInfo) entity.getCapability(CapabilityEnemyInfo.ENEMY_INFO, null);\n if (entity instanceof IMob && enemyInfo != null) {\n Entity viewingEntity = event...
"synchronized private PrintWriter getLogFileStream() throws Throwable {\n closeFileIfNeeded();\n if (logWriter == null) {\n Date currentTime = new Date();\n String fileName = MiscUtil.replaceTokens(logFileNameFormat, currentTime.getTime());\n String parentFolder = MiscUtil.replaceTokens(logFo...
"public Vector get(IntWritable key) throws TasteException {\n VectorWritable columnVector = new VectorWritable();\n try {\n writable = map.get(key, columnVector);\n } catch (IOException ioe) {\n throw new TasteException(ioe);\n }\n if (writable == null) {\n return null;\n }\n V...
"public void update_person_with_invalid_crowd_token_fails() {\n databaseHelper.addObject(PAULETH_PALTHEN);\n final RpslObject updatedObject = new RpslObjectBuilder(PAULETH_PALTHEN).append(new RpslAttribute(AttributeType.REMARKS, \"String_Node_Str\")).sort().get();\n try {\n RestTest.target(getPort(), \"...
"public String getUuid() {\n return nicUuid;\n}\n"
"public static List<ReturnCode> importToStucture(File importFile, IFolder selectionFolder, ExpressionType type, boolean skip, boolean rename) {\n List<ReturnCode> importEvent = new ArrayList<ReturnCode>();\n Set<String> names = PatternUtilities.getAllPatternNames(selectionFolder);\n String fileExtName = getFil...
"private void deriveClauses() {\n boolean selector = false;\n clauses = new LinkedHashSet<>();\n model = grounding.problem().induce();\n if (dataset.size() > 0) {\n String min = \"String_Node_Str\";\n int cc = 0;\n for (Clause clause : dataset) {\n cc += 1;\n Strin...
"public void setVisible(boolean visible) {\n super.setVisible(visible);\n if (visible) {\n if (this.linker != null) {\n this.linker.removeAllLinks();\n }\n if (concept.getXPathPrefix() == null || \"String_Node_Str\".equals(concept.getXPathPrefix())) {\n prefixCombo.selec...
"private void optimizeMC(int maxIter) throws StructureException {\n lengthHistory = new ArrayList<Integer>();\n rmsdHistory = new ArrayList<Double>();\n scoreHistory = new ArrayList<Double>();\n int conv = 0;\n int stepsToConverge = Math.max(maxIter / 50, 1000);\n int i = 1;\n while (i < maxIter &&...
"public void onAuthFail(SocializeException error) {\n onAfterAuthenticate();\n showError(getContext(), error.getMessage());\n error.printStackTrace();\n}\n"
"private static void findInputs(final FileStatus status, final FileSystem fs, final PathFilter inputFilter, List<FileStatus> result) throws IOException {\n if (status.isDirectory()) {\n for (FileStatus childStat : fs.listStatus(status.getPath(), inputFilter)) {\n if (childStat.isDir()) {\n ...
"private boolean takePearl() {\n for (int i = 0; i < stacks.length; i++) {\n ItemStack stack = stacks[i];\n if (stack != null && Items.ender_pearl.equals(stack.getItem()) && stack.stackSize > 0) {\n decrStackSize(i, 1);\n return true;\n }\n }\n return false;\n}\n"
"public void registerCreatureDeath(CreatureKilledByPlayerEvent event) {\n if (shouldClearDefaultDrops) {\n event.getDrops().clear();\n event.setDroppedExp(0);\n }\n if (event.getKiller().getItemInHand().getType().equals(Material.BOW) && !hasBowRewards) {\n plugin.getMessageManager(event.ge...
"void commitCurrentLogUnit() {\n if (DEBUG) {\n Log.d(TAG, \"String_Node_Str\" + (mCurrentLogUnit.hasWord() ? \"String_Node_Str\" + mCurrentLogUnit.getWord() : \"String_Node_Str\"));\n }\n if (!mCurrentLogUnit.isEmpty()) {\n if (mMainLogBuffer != null) {\n if ((mMainLogBuffer.isSafeToL...
"private void clickMenuItem(IRobot robot, JMenuItem item) {\n if (!item.isEnabled()) {\n throw new StepExecutionException(\"String_Node_Str\", EventFactory.createActionError(TestErrorEvent.MENU_ITEM_NOT_ENABLED));\n }\n if (item.getParent() instanceof JPopupMenu && ((JPopupMenu) item.getParent()).getInv...
"public void testIsContainsViewConnectionCatalogString() {\n String catalogName = \"String_Node_Str\";\n String tablePattern = null;\n boolean containsTable = false;\n Connection dataProvider = null;\n DatabaseMetaData metaData = null;\n java.sql.Connection sqlConn = null;\n Catalog catalog = null;...
"public void endElement(String namespaceURI, String localName, String qName) throws SAXException {\n try {\n isLastEventText = false;\n numberOfTabs--;\n if (isStartElementOpen) {\n writer.write('/');\n writer.write('>');\n isStartElementOpen = false;\n ...
"public FoundsetLinkedTypeSabloValue<YF, YT> fromJSON(Object newJSONValue, FoundsetLinkedTypeSabloValue<YF, YT> previousSabloValue, PropertyDescription pd, IBrowserConverterContext dataConverterContext) {\n if (previousSabloValue != null) {\n previousSabloValue.browserUpdatesReceived(newJSONValue, getConfig(p...
"public void run() {\n NfcAdapter nfcAdapter = NfcAdapter.getDefaultAdapter(getActivity());\n if (nfcAdapter != null && getActivity().isFinishing() == false) {\n nfcAdapter.enableForegroundDispatch(getActivity(), getPendingIntent(), getIntentFilters(), getTechLists());\n if (p2pMessage != null) {\n ...
"private String getExpressionStoreFolderPath() {\n if (rootFolderPath == null) {\n if (path == null) {\n IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();\n RepositoryContext repositoryContext = (RepositoryContext) CoreRuntimePlugin.getInstance().getContext().getProperty(Co...
"private boolean setUpFrame(int verbosity) {\n int compiledMethodId = VM_Magic.getCompiledMethodID(fp);\n if (compiledMethodId == VM_Constants.INVISIBLE_METHOD_ID) {\n if (verbosity >= 1)\n Log.writeln(\"String_Node_Str\");\n return false;\n }\n compiledMethod = VM_CompiledMethods.g...
"public void showsLoadingIndicatorWhileWaitingForConfiguration() throws InvalidArgumentException {\n BraintreeFragment fragment = spy(BraintreeFragment.newInstance(mActivity, TOKENIZATION_KEY));\n when(fragment.getConfiguration()).thenReturn(null);\n fragment.mHttpClient = new BraintreeHttpClient(Authorization...
"private void updateWindow(boolean force) {\n if (!mHaveFrame) {\n return;\n }\n int myWidth = mRequestedWidth;\n if (myWidth <= 0)\n myWidth = getWidth();\n int myHeight = mRequestedHeight;\n if (myHeight <= 0)\n myHeight = getHeight();\n if (mRequestedWidth <= 0) {\n m...