content
stringlengths
40
137k
"public void test() {\n ApplicationContext applicationContext = new ClassPathXmlApplicationContext(\"String_Node_Str\");\n DemoDao demoDao = applicationContext.getBean(DemoDao.class);\n Demo demo = new Demo();\n demo.setId(61L);\n demo.setAge(new ArrayList<>());\n demo.setDate(new Date());\n demoDa...
"protected void hide() {\n synchronized (this) {\n Display.getDefault().syncExec(new Runnable() {\n\n public void run() {\n shell.setVisible(false);\n visible = false;\n text = null;\n bounds = null;\n currentX = -1;\n ...
"private File getJarLocation() {\n String path = ModuleLoader.class.getProtectionDomain().getCodeSource().getLocation().getPath();\n try {\n String decodedPath = URLDecoder.decode(path, \"String_Node_Str\");\n return new File(decodedPath).getParentFile();\n } catch (UnsupportedEncodingException u...
"public Field deserialize(JsonElement element, Type type, JsonDeserializationContext gsonContext) throws JsonParseException {\n if (element == null || element.isJsonNull()) {\n return null;\n }\n JsonObject jsonObject = element.getAsJsonObject();\n if (!jsonObject.has(\"String_Node_Str\")) {\n ...
"public void testLogMessageWithExceptionArgument() throws IOException {\n LOGGER.log(Level.SEVERE, ERROR_READING_TEST_CONF_FILE_ID, new Object[] { TEST_CONF_FILE, new Exception(TEST_EXCEPTION_MESSAGE) });\n String[] expectedContents = new String[] { CANNOT_READ_TEST_CONFIGURATION_FILE_MSG + TEST_CONF_FILE, TEST_E...
"public static void logToQueries(PrintWriter pw, File input, Boolean onlyComplexQueries, Map<String, Long> map) {\n FileInputStream fis = null;\n BufferedReader br = null;\n String line;\n try {\n fis = new FileInputStream(input);\n br = new BufferedReader(new InputStreamReader(fis, Charset.fo...
"public static void performBackup(Context context, ParcelFileDescriptor oldSnapshot, ParcelFileDescriptor newSnapshot, BackupDataOutput data, String[] prefGroups) {\n final int N = prefGroups.length;\n String[] files = new String[N];\n for (int i = 0; i < N; i++) {\n files[i] = context.getSharedPrefsFil...
"public void onEntityUpdate() {\n if (!firstUpdateDone) {\n firstUpdate();\n firstUpdateDone = true;\n }\n if (!worldObj.isRemote && needsUpdate) {\n updateDataServer();\n needsUpdate = false;\n }\n if (worldObj.isRemote) {\n updateDataClient();\n energyFX += ene...
"public static void writeKeysToContacts(Context context) {\n ContentResolver resolver = context.getContentResolver();\n Cursor cursor = resolver.query(KeychainContract.KeyRings.buildUnifiedKeyRingsUri(), KEYS_TO_CONTACT_PROJECTION, null, null, null);\n if (cursor != null) {\n while (cursor.moveToNext())...
"public ICategoryProvider getCategoryProvider(Object input) {\n return AttributesUtil.createCategoryProvider(new String[] { null, CATEGORY_KEY_COMMENTS, CATEGORY_KEY_ADVANCEPROPERTY }, new String[] { CATEGORY_KEY_GENERAL }, new String[] { Messages.getString(\"String_Node_Str\") }, new Class[] { CubePage.class });\n}...
"private static void copyDQDroolsToSrc(ProcessItem processItem) {\n if (GlobalServiceRegister.getDefault().isServiceRegistered(ITDQItemService.class)) {\n ITDQItemService tdqItemService = (ITDQItemService) GlobalServiceRegister.getDefault().getService(ITDQItemService.class);\n if (tdqItemService == nul...
"protected Map<String, Object> createSecStorageVmInstance2(long dataCenterId) {\n long startEventId = saveStartedEvent(User.UID_SYSTEM, Account.ACCOUNT_ID_SYSTEM, EventTypes.EVENT_SSVM_CREATE, \"String_Node_Str\" + dataCenterId, 0);\n HostVO secHost = _hostDao.findSecondaryStorageHost(dataCenterId);\n if (secH...
"public void updateAggregateData(long contactId) {\n if (!mEnabled) {\n return;\n }\n final SQLiteDatabase db = mOpenHelper.getWritableDatabase();\n final ContentValues values = new ContentValues();\n computeAggregateData(db, contactId, values);\n db.update(Tables.CONTACTS, values, Contacts._ID...
"public void testRecursion_GR531_2() {\n runNegativeTest(new String[] { \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" }, \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"S...
"public void onUpdate(ItemStack itemStack, World world, Entity entity, int par4, boolean par5) {\n if (!world.isRemote) {\n if (this.getEnergy(itemStack) > energyCost && world.getWorldTime() % 20 == 0) {\n this.discharge(itemStack, 1 * energyCost, true);\n }\n }\n}\n"
"public void prepareTestInstance(TestContext testContext) throws Exception {\n StartModule startModuleAnnotation = testContext.getTestClass().getAnnotation(StartModule.class);\n if (startModuleAnnotation != null) {\n if (!lastClassRun.equals(testContext.getTestClass().getSimpleName())) {\n lastC...
"private void drawImage(IMovable movable, Image image) {\n ShortPoint2D pos = movable.getPos();\n short x = pos.getX();\n short y = pos.getY();\n drawMovableAt(movable, image, x, y);\n}\n"
"public Object clone(Workspace workspace) throws CloneNotSupportedException {\n AFDXESs newObject = (AFDXESs) super.clone(workspace);\n newObject._afdxVLinksQueue = new LinkedHashMap();\n newObject._afdxSchedMuxsQueue = new HashMap();\n newObject._virtualLinkTable = new HashMap();\n newObject._portToVirt...
"public void testCannotGetAnotherConsumersCerts() {\n consumerResource.bind(consumer.getUuid(), pool.getId(), null, null, 1, null, null);\n consumerResource.bind(consumer.getUuid(), pool.getId(), null, null, 1, null, null);\n consumerResource.bind(consumer.getUuid(), pool.getId(), null, null, 1, null, null);\n...
"private void capturePreview() {\n final CameraFile cf;\n try {\n cf = cameraGphoto.capturePreview();\n } catch (CameraException e) {\n LOGGER.error(\"String_Node_Str\", e);\n setStop(true);\n return;\n }\n if (cf == null) {\n LOGGER.error(\"String_Node_Str\");\n ...
"private void configureTls() {\n if (tlsEnabled == false) {\n return;\n try {\n TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n trustManagerFactory.init(keyStore);\n X509TrustManager defaultTrustManager = (X509Trus...
"public void transformFrequencies(final Object spectrum, final float sampleRate, final int offset, final int powOf2NearestLength, final int length, final float soundLevelInDB) {\n final int percent = (int) Math.floor(100.0 * (offset / this.step) / (this.input.getSamplesLength() / this.step));\n if (percent > Math...
"private static int endgameKQKP(Board board, boolean whiteDominant) {\n long ranks12 = whiteDominant ? BitboardUtils.R1 | BitboardUtils.R2 : BitboardUtils.R7 | BitboardUtils.R8;\n long pawn = board.pawns;\n long pawnZone;\n if ((BitboardUtils.A & pawn) != 0) {\n pawnZone = (BitboardUtils.FILES_LEFT[3...
"public void run() {\n try {\n startup();\n if (this.train instanceof ResilientPropagation) {\n ResilientPropagation rprop = (ResilientPropagation) this.train;\n }\n while (!this.cancel) {\n this.iteration++;\n this.lastError = this.train.getError();\n ...
"private Type getReturnType(ErrorContext logger, RFMethod method) {\n logger = logger.setMethod(method);\n final String[] returnType = { objectType.getInternalName() };\n String signature = method.getSignature();\n final int expectedCount;\n if (method.getReturnType().equals(instanceRequestIntf)) {\n ...
"public Domain getUserDomian() {\n if (getBinsData() != null) {\n List<SliceEntity> tableData = (List<SliceEntity>) getBinsData();\n Domain userDomain = DomainHelper.createDomain(\"String_Node_Str\");\n for (SliceEntity entity : tableData) {\n try {\n double min = TextF...
"public JSType negate() {\n if (isTop() || isUnknown()) {\n return this;\n }\n if (isTruthy()) {\n return FALSY;\n } else if (isFalsy()) {\n return TRUTHY;\n } else if (objs == null && typeVar == null) {\n return new JSType(TOP_SCALAR_MASK & ~mask);\n }\n return UNKNOWN....
"private void loadSection0() {\n if (((PreferencesActivity) getActivity()).getRestartActivity()) {\n ((PreferencesActivity) getActivity()).restartActivity(getActivity());\n }\n addPreferencesFromResource(R.xml.color_prefs);\n if (Build.VERSION.SDK_INT >= 21) {\n findPreference(KEY_COLOREDNAV)....
"public void decreasRowSpanInDesign() {\n data.decreasRowSpanInDesign();\n}\n"
"public byte[] serializeData(E data) throws SerializeException {\n checkIfBuildCalled();\n try {\n return gson.toJson(data, Data.class).getBytes();\n } catch (JsonParseException e) {\n throw new SerializeException(e);\n }\n}\n"
"public void testGroovyBug() {\n runConformTest(new String[] { \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" }, \"String_Node_Str\");\n}\n"
"private void validateMessageSize(long messageSize) throws ProtocolDecoderException {\n if (maxMessageSize > 0 && (messageSize < 0 || messageSize > maxMessageSize)) {\n throw new WSMessageTooLongException(String.format(\"String_Node_Str\", messageSize, maxMessageSize));\n }\n}\n"
"private void onRemoveLeadingScoreColumns(RemoveLeadingScoreColumnsEvent event) {\n List<ARankColumnModel> columns = this.table.getColumns();\n boolean hasOne = false;\n Collection<ARankColumnModel> toremove = new ArrayList<>();\n for (ARankColumnModel col : columns) {\n if (col instanceof ScoreRankC...
"protected void onResume() {\n super.onResume();\n IntentFilter filter = new IntentFilter();\n filter.addAction(TalkServerIntent.INTENT_NEW_MESSAGES.toString());\n registerReceiver(receiver, filter);\n setContentView(R.layout.main);\n talkListView.setOnItemClickListener(new AdapterView.OnItemClickList...
"public static IProject getRootProject() {\n IProjectAdapterService projectAdapter = (IProjectAdapterService) GlobalServiceRegister.getDefault().getService(IProjectAdapterService.class);\n IProject rootProject = null;\n try {\n IProjectAdapterService projectAdapter = (IProjectAdapterService) GlobalServi...
"public void registerRecordPerspective(RecordPerspective recordPerspective) {\n if (recordPerspective.getPerspectiveID() == null)\n throw new IllegalStateException(\"String_Node_Str\" + recordPerspective);\n if (!recordPerspective.getIdType().equals(dataDomain.getRecordIDType()))\n throw new Illegal...
"private boolean isBatteryUpdateInteresting(int batteryStatus, int batteryLevel) {\n final boolean isPluggedIn = isPluggedIn(batteryStatus);\n final boolean wasPluggedIn = isPluggedIn(mBatteryStatus);\n final boolean stateChangedWhilePluggedIn = wasPluggedIn == true && isPluggedIn == true && (mBatteryStatus !=...
"public void shouldExecuteRaiseAnExceptionIfTheListOfSolutionsIsNull() {\n exception.expect(JMetalException.class);\n exception.expectMessage(containsString(\"String_Node_Str\"));\n NaryTournamentSelection<IntegerSolution> selection = new NaryTournamentSelection<>();\n List<IntegerSolution> population;\n ...
"public int offset_and_kind() {\n return this.buffer.getInt(this.buffer_offset * 8);\n}\n"
"public void preInitialize(AbstractSession session) throws DescriptorException {\n getAttributeAccessor().setIsWriteOnly(this.isWriteOnly());\n getAttributeAccessor().setIsReadOnly(this.isReadOnly());\n super.preInitialize(session);\n ArrayList<XMLMapping> mappingsList = new ArrayList<XMLMapping>();\n ma...
"void injectMembers(T t, Errors errors, InternalContext context, boolean toolableOnly) {\n for (int i = 0, size = memberInjectors.size(); i < size; i++) {\n SingleMemberInjector injector = memberInjectors.get(i);\n if (!toolableOnly || injector.getInjectionPoint().isToolable()) {\n injector....
"private boolean matches(INode element, int lastSelectorItemInd) {\n if (!(element instanceof IElementNode)) {\n return false;\n }\n if (lastSelectorItemInd < 0) {\n return true;\n }\n boolean isPseudoElement = element instanceof CssPseudoElementNode;\n for (int i = lastSelectorItemInd; ...
"public void onDraw(Canvas canvas, int centerX, int centerY) {\n if (!mVisible) {\n return;\n }\n mArcBounds = new RectF(centerX - mProgressRadius, centerY - mProgressRadius, centerX + mProgressRadius, centerY + mProgressRadius);\n canvas.drawCircle(centerX, centerY, mProgressRadius, mProgressBasePai...
"protected ProjectRepairFacade getProjectConfiguration(String location, String projectIdentifier, String method, List<String> failingTestCases, String dependencies, boolean srcWithMain) throws Exception {\n if (projectIdentifier == null || projectIdentifier.equals(\"String_Node_Str\")) {\n File locFile = new ...
"private File pathToFile(Path path) {\n if (!path.isAbsolute()) {\n curPath = new Path(getWorkingDirectory(), path);\n }\n return new File(path.toUri().getPath());\n}\n"
"public void loadPipe(ItemPipe par1, int id, Class<? extends Pipe> par2) {\n try {\n Pipe pipe = (Pipe) par2.getConstructor(new Class[] { Integer.TYPE }).newInstance(new Object[] { Integer.valueOf(id) });\n MinecraftForgeClient.registerItemRenderer(par1.itemID, ItemRenderSpmodCore.instance);\n i...
"private void set(Property lastProperty, DataObject lastDataObject, int numInLastProperty, Object value, boolean convertValue) {\n if (numInLastProperty == -1) {\n if (lastDataObject != null) {\n if (convertValue) {\n DataHelper dataHelper = ((SDODataObject) lastDataObject).getType()...
"public CodeLocation getLocation() {\n return this.location;\n}\n"
"public UserTO executeWorkflow(final UserTO userTO, final String taskId) throws WorkflowException, NotFoundException, UnauthorizedRoleException, PropagationException {\n LOG.debug(\"String_Node_Str\", taskId, userTO.getId());\n WorkflowResult<Long> updated = wfAdapter.execute(userTO, taskId);\n List<Propagatio...
"public void creationTest() throws RecognitionException, SQLException, IOException {\n RdfViewSystemOld.initSparqlifyFunctions();\n DatatypeSystem datatypeSystem = SparqlifyUtils.createDefaultDatatypeSystem();\n SqlTranslator sqlTranslator = new SqlTranslatorImpl(datatypeSystem);\n DataSource dataSource = S...
"public void removeConflicts(String txId, Iterable<String> paths) {\n Optional<RocksDBReference> dbRefOpt = getDb(txId);\n if (!dbRefOpt.isPresent()) {\n return;\n }\n try (RocksDBReference dbRef = dbRefOpt.get();\n WriteOptions writeOptions = new WriteOptions();\n WriteBatch batch = ne...
"public void testSMGetMissAll() {\n try {\n keyList = new ArrayList<String>();\n for (int i = 0; i < 10; i++) {\n mc.delete(KEY + i).get();\n keyList.add(KEY + i);\n }\n } catch (Exception e) {\n fail(e.getMessage());\n }\n SMGetMode smgetMode = SMGetMode.UN...
"public QName getTypeRef() {\n if (this.relationshipType.getDerivedFrom() != null) {\n return this.relationshipType.getDerivedFrom().getTypeRef();\n }\n return null;\n}\n"
"public void build(Progress p) throws IOException, JobFailedException, JobCancelledException {\n if (p != null) {\n p.starting();\n }\n MapOp mo = _inputs.get(0);\n String inputPath = null;\n if (mo instanceof VectorReaderMapOp) {\n VectorReaderMapOp vmo = (VectorReaderMapOp) mo;\n i...
"public void putAll(Map<? extends K, ? extends V> map, final boolean replaceExistingValues) {\n ensureOpen();\n long start = statisticsEnabled() ? System.nanoTime() : 0;\n long now = System.currentTimeMillis();\n if (map.containsKey(null)) {\n throw new NullPointerException(\"String_Node_Str\");\n ...
"public void modifyText(ModifyEvent e) {\n try {\n if (index == 2) {\n boolean isUniqueName = isUnique(tx.getText(), data);\n if (!isUniqueName)\n updateStatus(getMiscStatus(IStatus.ERROR, Messages.getString(\"String_Node_Str\")));\n else\n update...
"public static void tearDownAfterClass() throws Exception {\n if (checkIfServerRunning()) {\n node.close();\n }\n KunderaMetadata.INSTANCE.setApplicationMetadata(null);\n}\n"
"public TypeInfo createTypeInfoFor(JavaClass javaClass) {\n if (javaClass == null) {\n return null;\n }\n if (typeInfo.containsKey(javaClass.getQualifiedName())) {\n return typeInfo.get(javaClass.getQualifiedName());\n }\n TypeInfo info = null;\n if (javaClass.isEnum()) {\n info =...
"public void testDSASignatureVerification() throws Exception {\n runTestSignatureVerification(mocker.getComponentUnderTest().getInstance(true, privateKey), mocker.getComponentUnderTest().getInstance(false, publicKey));\n}\n"
"public static ObjectStream<NameSample> getNameStream(final String inputData, final String aLang, final String aCorpusFormat) throws IOException {\n ObjectStream<NameSample> samples = null;\n if (aCorpusFormat.equalsIgnoreCase(\"String_Node_Str\")) {\n ObjectStream<String> nameStream = InputOutputUtils.rea...
"private MethodDeclaration makePreMethod(ClassScope scope, ExplicitConstructorCall explicitConstructorCall) {\n EclipseWorld world = EclipseWorld.fromScopeLookupEnvironment(scope);\n TypeX aspectTypeX = EclipseWorld.fromBinding(binding.declaringClass);\n TypeX targetTypeX = EclipseWorld.fromBinding(onTypeBindi...
"public boolean isOwningNode(XPathFragment xPathFragment) {\n if (isMarshalNodeValue()) {\n if (xmlCollectionReferenceMapping.usesSingleNode()) {\n return xPathFragment.nameIsText() || xPathFragment.isAttribute();\n }\n XPathFragment nextFragment = xPathFragment.getNextFragment();\n ...
"public boolean apply(EObject input) {\n boolean ret = false;\n if (input instanceof Diff && !(input instanceof ResourceAttachmentChange)) {\n final Diff diff = (Diff) input;\n final Conflict conflict = diff.getConflict();\n if (conflict == null) {\n final EObject grandParent = dif...
"public String parseSftpPath(String a) {\n if (a.contains(\"String_Node_Str\"))\n return \"String_Node_Str\" + a.substring(a.lastIndexOf(\"String_Node_Str\") + 1, a.length());\n else\n return a;\n}\n"
"public void end(IReportContent report) {\n engine.complete();\n boolean isRTLSheet = false;\n String reportOrientation = report.getDesign().getReportDesign().getBidiOrientation();\n if (\"String_Node_Str\".equalsIgnoreCase(reportOrientation))\n isRTLSheet = true;\n ExcelWriter writer = new ExcelW...
"public void setInstanceWeight(int index, double weight) {\n if (weight == 1.0) {\n if (instWeights == null) {\n return;\n }\n Instance instance = get(index);\n Double value = instWeights.get(instance);\n if (value == null || value.doubleValue() == weight) {\n ...
"public static List<ProtocolProviderService> getTelephonyProviders() {\n return GuiActivator.getRegisteredProviders(OperationSetBasicTelephony.class);\n}\n"
"public String getBasePath() {\n if (basePath == null) {\n basePath = fileSrc.substring(6);\n }\n return basePath;\n}\n"
"public void run() {\n while (running) {\n try {\n reader = new jline.console.ConsoleReader();\n reader.addCompleter(new FileNameCompleter());\n reader.setPrompt(\"String_Node_Str\");\n String line;\n PrintWriter out = new PrintWriter(System.out);\n ...
"protected boolean checkForForbiddenWords(IndexerConfig indexerConfig, Multiset<String> reasonsForRejection, List<String> excludedWords, SearchResultItem item) {\n for (String forbiddenWord : excludedWords) {\n if (forbiddenWord.contains(\"String_Node_Str\") || forbiddenWord.contains(\"String_Node_Str\") || i...
"public void setDAG(DAG dag) {\n if (dag != null)\n throw new IllegalStateException(\"String_Node_Str\");\n Variables variables = new Variables();\n word = variables.newSparseMultionomialVariable(attributes.getAttributeByName(wordDocumentName));\n topicIndicator = variables.newMultinomialVariable(\"S...
"public void testCallCountOneServiceNoOperationAnotherConsumer() throws ServiceException {\n long duration = 60 * 6;\n int aggregationPeriod = 20;\n int expectedSum = 4;\n CriteriaInfo criteriaInfo = new CriteriaInfo();\n criteriaInfo.setMetricName(\"String_Node_Str\");\n criteriaInfo.setServiceName(s...
"public static IntMap buildIntMap(String line, Minecart cart, Direction d) {\n log.info(\"String_Node_Str\" + line + \"String_Node_Str\");\n String temp = \"String_Node_Str\";\n IntMap map = new IntMap();\n boolean isNegate = false;\n for (int b = 0; b < line.length(); b++) {\n char c = line.charA...
"private boolean getIgnoreActionUpEvent() {\n if (this.mBaseEditor == null) {\n return false;\n }\n try {\n return this.mIgnoreActionUpEventField.getBoolean(this.mEditor);\n } catch (Exception e) {\n return false;\n }\n}\n"
"public static void requestPinShortcut(final Context context, final Intent shortcutIntent, final String title, final String urlAsShortcutId, final Bitmap bitmap) {\n final Bitmap icon;\n final Resources resources = context.getResources();\n final char representativeCharacter = FavIconUtils.getRepresentativeCha...
"public boolean applies(UUID objectId, Ability source, UUID affectedControllerId, Game game) {\n Card card = game.getCard(objectId);\n if (card != null && affectedControllerId.equals(card.getOwnerId()) && game.getState().getZone(card.getId()) == Zone.EXILED) {\n UbaMaskExiledCardsWatcher watcher = (UbaMask...
"public IDockerHostConfig getDockerHostConfig() {\n final ImageRunSelectionModel selectionModel = this.imageRunSelectionPage.getModel();\n final ImageRunResourceVolumesVariablesModel resourcesModel = this.imageRunResourceVolumesPage.getModel();\n final DockerHostConfig.Builder hostConfigBuilder = new DockerHos...
"public static void main(String[] args) throws Exception {\n Console console = JCommander.getConsole();\n Log4jUtils.setRootLevel(LogLevel.NONE);\n ResourceBundle cliBundle = PropertyResourceBundle.getBundle(\"String_Node_Str\");\n final CliConfig cliConfig = new CliConfig();\n JCommander jCommander = ne...
"private void sortModList() {\n FMLLog.fine(\"String_Node_Str\");\n try {\n BiMap<String, ArtifactVersion> modVersions = HashBiMap.create();\n for (ModContainer mod : getActiveModList()) {\n modVersions.put(mod.getModId(), mod.getProcessedVersion());\n }\n for (ModContainer ...
"public void update(float delta) {\n currentTime += delta;\n if (isFinish() && cb != null) {\n ActionCallbackQueue.add(cb);\n cb = null;\n cb2.onEvent();\n }\n}\n"
"public PeriodFormatterBuilder appendSeparatorIfFieldsAfter(String text) {\n return appendSeparator(text, text, null, false, true);\n}\n"
"private void validateRange(IntegerRange range, Integer... numbers) {\n Iterator<Integer> iterator = range.iterator();\n for (Integer number : numbers) {\n assertTrue(iterator.hasNext());\n assertEquals(number, iterator.next());\n }\n assertFalse(iterator.hasNext());\n}\n"
"public static List<RevisionInfo> getRevisionList(String category, String version) throws Exception {\n StringBuffer url = new StringBuffer();\n url.append(REVISION_LIST_URL).append(\"String_Node_Str\").append(category).append(\"String_Node_Str\");\n String[] branch = getBranch(version);\n if (branch != nul...
"public int read(byte[] buf, int off, int length) {\n if (remainingBlanks <= 0 && remainingNonBlanks <= 0) {\n return -1;\n }\n int nonBlankLength = (int) Math.min(remainingNonBlanks, (long) length);\n fillBuffer(nonBlankLength);\n int read = 0;\n int bOff = alphabet.nextByteToRead(0);\n if ...
"public void disconnect() {\n ID groupID = getConnectedID();\n fireContainerEvent(new ContainerDisconnectingEvent(this.getID(), groupID));\n synchronized (getConnectLock()) {\n if (isConnected()) {\n try {\n multiuserchat.leave();\n } catch (Exception e) {\n ...
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_landing);\n useDoubleBackPressed = true;\n addActions();\n facebookHelper = new FacebookHelper(this, savedInstanceState, new FacebookSessionStatusCallback());\n initVersionNam...
"public boolean checkPasswordAuth() {\n boolean status = false;\n Connection c = null;\n try {\n c = new Connection(host, port);\n c.connect();\n if (logger.isLoggable(Level.FINER)) {\n logger.finer(\"String_Node_Str\");\n }\n status = c.authenticateWithPassword(us...
"public void run() {\n try {\n q.take();\n } catch (InterruptedException e) {\n fail();\n }\n}\n"
"public String getJobTracker() {\n return getRealValue(this.jobTracker);\n}\n"
"public void execute(HttpServletRequest request, HttpServletResponse response, String uriPrefix) {\n final String origUri = request.getRequestURI();\n String restPart = origUri.substring(uriPrefix.length());\n try {\n restPart = URLDecoder.decode(restPart, \"String_Node_Str\");\n } catch (Unsupported...
"private soot.Local getUnaryLocal(polyglot.ast.Unary unary) {\n polyglot.ast.Expr expr = unary.expr();\n polyglot.ast.Unary.Operator op = unary.operator();\n if (op == polyglot.ast.Unary.POST_INC) {\n soot.Local retLocal = generateLocal(expr.type());\n soot.Value sootExpr = base().createExpr(expr...
"public Err doBackgroundWork(DiagAsyncTask task) {\n DB db = DB.get();\n db.beginTransaction();\n try {\n for (long mid : vids) {\n DB.Err err = db.insertVideoToPlaylist(dstPlid, mid);\n if (DB.Err.NO_ERR != err) {\n if (DB.Err.DUPLICATED != err)\n ...
"public float getHeight() {\n return (float) line.bounds.getHeight() * sizeFactor;\n}\n"
"public void handleEvent(AEvent event) {\n StatisticsPValueReductionEvent pValueReductionEvent = null;\n if (event instanceof StatisticsPValueReductionEvent) {\n pValueReductionEvent = (StatisticsPValueReductionEvent) event;\n handler.oneSidedTTest(pValueReductionEvent.getSets());\n }\n}\n"
"public boolean isUpgradeableNow() {\n if (isBlocked()) {\n log.debug(\"String_Node_Str\" + name + \"String_Node_Str\");\n return false;\n }\n if (currentTile != null) {\n if (currentTile.isUpgradeable()) {\n return true;\n } else {\n log.debug(\"String_Node_St...
"public HttpUriRequest getRedirect(HttpRequest httpRequest, HttpResponse httpResponse, HttpContext httpContext) throws ProtocolException {\n String redirectUrl = httpResponse.getFirstHeader(\"String_Node_Str\").getValue();\n HttpUriRequest uriRequest;\n HttpRequest origin = requestWrapper.getOriginal();\n i...
"private void onBluetoothClick() {\n if (VDBG)\n log(\"String_Node_Str\");\n if (isBluetoothAvailable()) {\n if (isBluetoothAudioConnected()) {\n disconnectBluetoothAudio();\n } else {\n if (PhoneUtils.isSpeakerOn(this)) {\n PhoneUtils.turnOnSpeaker(this, ...
"public void run() {\n try {\n if (dataKey != null) {\n key = toObject(dataKey);\n }\n if (dataValue != null) {\n value = ThreadContext.get().toObject(dataValue);\n }\n ListenerManager.get().callListeners(this);\n } catch (final Exception e) {\n e.pr...
"protected SearchRequestResult parse_search(String html, int page) throws OpacErrorException {\n Document doc = Jsoup.parse(html);\n updateSearchSetValue(doc);\n if (doc.select(\"String_Node_Str\").size() > 0) {\n if (doc.select(\"String_Node_Str\").text().trim().equals(\"String_Node_Str\")) {\n ...
"public void generateFiled(PsiElementFactory mFactory, PsiClass mClass, InnerClassEntity classEntity) {\n if (generate) {\n StringBuilder filedSb = new StringBuilder();\n String filedName = getGenerateFieldName();\n if (!TextUtils.isEmpty(classEntity.getExtra())) {\n filedSb.append(cl...