content
stringlengths
40
137k
"private void listPluginInfoForSender(ICommandSender sender, String[] arguments) {\n if (arguments.length < 3)\n throw new WrongUsageException(\"String_Node_Str\" + getCommandName() + \"String_Node_Str\");\n IPlugin found = null;\n for (IPlugin plugin : PluginManager.plugins) {\n PluginInfo info ...
"private Set filterParticipatingUniqueNamesInRecoveredXids(Set uniqueNames) {\n Set recoveredUniqueNames = new HashSet();\n Iterator it = uniqueNames.iterator();\n while (it.hasNext()) {\n String uniqueName = (String) it.next();\n if (log.isDebugEnabled())\n log.debug(\"String_Node_Str...
"public void apply() throws Exception {\n PartitionOutput partitionOutput = dataset.getPartitionOutput(PARTITION_KEY);\n ImmutableMap<String, String> originalEntries = ImmutableMap.of(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n partitionOutput.setMetadata(originalEntr...
"public void update() {\n FormEditor editor = UIUtil.getActiveReportEditor();\n setEnabled(editor != null);\n if (editor != null && editor.getActivePageInstance() != null && editor.getActivePageInstance().getId() != null) {\n setChecked(editor.getActivePageInstance().getId().equals(pageId));\n }\n}\n...
"public boolean exists() {\n ModelClass model = toModel();\n return model != null && mModelAdapter.exists(model);\n}\n"
"public void onPlayerDeath(PlayerDeathEvent event) {\n if (event.getEntity().getKiller() == null) {\n return;\n }\n if (EarthArmor.instances.containsKey(event.getEntity())) {\n List<ItemStack> drops = event.getDrops();\n List<ItemStack> newdrops = new ArrayList<ItemStack>();\n for (...
"private static boolean isRouterServiceRunning(Context context, boolean pingService) {\n if (context == null) {\n Log.e(TAG, \"String_Node_Str\");\n return false;\n }\n ActivityManager manager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);\n if (runningBluetoothService...
"public void addResponse(String key, AuResponse response, int priority) {\n if (response == null)\n throw new IllegalArgumentException();\n if (_ending) {\n Object dps = response.getDepends();\n if (dps == null && _owner == null)\n return;\n if (dps instanceof Page && _pgRem...
"public void onInit(int status) {\n if (status == TextToSpeech.SUCCESS) {\n Locale ttsLanguage;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) {\n ttsLanguage = tts.getDefaultLanguage();\n } else {\n ttsLanguage = tts.getLanguage();\n }\n i...
"public void loadBasePanel(long squareId) {\n setContent(new BasePanel(this.getContentId(), squareId) {\npublic void onCancel(AjaxRequestTarget target) {\n }\n void onSelect(AjaxRequestTarget target, String selection) {\n setTitle(\"String_Node_Str\");\n MapModalWindow.this.onSele...
"public double predictedLogLikelihood(DataOnMemory<DataInstance> batch) {\n this.getPlateuStructure().getNonReplictedNodes().forEach(node -> node.setActive(false));\n double elbo = 0;\n elbo += this.updateModelOnBatchParallel(batch).getElbo();\n this.getPlateuStructure().getNonReplictedNodes().forEach(node ...
"private String removeExtraParagraphs(String fullWordMl, String toInsert, ApplicabilityBlock applicabilityBlock) {\n int startInsertIndex = applicabilityBlock.getStartInsertIndex();\n if (!applicabilityBlock.isInTable() && (toInsert.isEmpty() || toInsert.startsWith(WordCoreUtil.WHOLE_END_PARAGRAPH))) {\n S...
"public Object getValue(IResultIterator resultIterator) throws BirtException {\n Object value = resultIterator.getString(valueColumnName);\n return EngineTask.convertParameterType(value, valueType);\n}\n"
"private void setSocket(Socket s) throws SocketException {\n socket = s;\n if (s != null)\n addressPort = s.getLocalPort() + \"String_Node_Str\" + getHostNameForAddressWithoutLookup(s.getInetAddress()) + \"String_Node_Str\" + s.getPort();\n else\n addressPort = \"String_Node_Str\";\n}\n"
"public void testSameMemberAdded() throws Exception {\n HazelcastClient client = mock(HazelcastClient.class);\n InetSocketAddress inetSocketAddress = new InetSocketAddress(\"String_Node_Str\", 5701);\n final Connection connection = mock(Connection.class);\n final CountDownLatch latch = new CountDownLatch(2)...
"public String getName() {\n String label = \"String_Node_Str\";\n if (getHead() != null) {\n NamespaceHandler handler = getHead().getNsHandler();\n if (handler != null)\n label = head.getName() + \"String_Node_Str\" + handler.getNSVersion(head.getNamespace());\n }\n return label;\n...
"protected void run() throws Exception {\n if (CookieHandler.getDefault() == null)\n CookieHandler.setDefault(new SimpleCookieManager());\n final URL ipzilla = new URL(url);\n if (username == null) {\n final PasswordAuthentication auth = Authenticator.requestPasswordAuthentication(ipzilla.getHost...
"public Resource createTempProjectResource() {\n URI uri = null;\n try {\n uri = URI.createPlatformResourceURI(Platform.getInstallLocation().getURL().getFile(), true);\n } catch (Exception e) {\n ExceptionHandler.process(e);\n }\n return resourceSet.createResource(uri);\n}\n"
"private static NumberRange parseRange(String dropString) {\n String[] dropParts = dropString.split(\"String_Node_Str\");\n String[] amountRange = dropParts[1].split(\"String_Node_Str\");\n double min = 0;\n double max;\n if (amountRange.length == 2) {\n min = Integer.parseInt(amountRange[0]);\n ...
"public void addTests() {\n if (getSession().getPlatform() instanceof Oracle9Platform) {\n Oracle9Platform platform = (Oracle9Platform) getSession().getPlatform();\n ((AbstractSession) getSession()).getAccessor().incrementCallCount((AbstractSession) getSession());\n String driverVersion = platfo...
"public Set<Annotation> run(Project project, Constraint constraint, Collection<? extends Element> elements) {\n Set<Annotation> result = new HashSet<Annotation>();\n Collection<DiagramPresentationElement> projectDiagrams = project.getDiagrams();\n for (DiagramPresentationElement currDiagram : projectDiagrams) ...
"public void onClick(View v) {\n HitBuilders.EventBuilder eventBuilder = new HitBuilders.EventBuilder().setCategory(GAUtils.Category.FLIGHT_DATA_ACTION_BUTTON);\n switch(v.getId()) {\n case R.id.mc_planningBtn:\n listener.onPlanningSelected();\n eventBuilder.setAction(\"String_Node_St...
"private void findMetadata() throws IOException {\n String string = this.readFourChars();\n if (!\"String_Node_Str\".equals(string)) {\n throw new SoundTransformRuntimeException(new SoundTransformException(AudioInputStreamErrorCode.NO_MAGIC_NUMBER, new IllegalArgumentException()));\n }\n this.readInt...
"private void loadSection(int sectionX, int sectionY, int height, World world, int bigX, int bigY) {\n Sector s = null;\n try {\n String filename = \"String_Node_Str\" + height + \"String_Node_Str\" + sectionX + \"String_Node_Str\" + sectionY;\n ZipEntry e = tileArchive.getEntry(filename);\n ...
"public synchronized TmfContext seekEvent(final double ratio) {\n if (fFile == null) {\n return new CustomTxtTraceContext(NULL_LOCATION, ITmfContext.UNKNOWN_RANK);\n }\n try {\n long pos = Math.round(ratio * fFile.length());\n while (pos > 0) {\n fFile.seek(pos - 1);\n ...
"public Intent build() {\n Intent filePicker = new Intent(mContext, useMaterial ? FilePicker.class : FilePickerActivity.class);\n filePicker.putExtra(FilePicker.SCOPE, mScope);\n filePicker.putExtra(FilePicker.REQUEST, requestCode);\n filePicker.putExtra(FilePicker.INTENT_EXTRA_COLOR_ID, color);\n filePi...
"public void setGhostMode() {\n ghostMode = true;\n ghostTime = 0;\n}\n"
"public void doProcess(BasicServlet servlet, HttpServletRequest req, HttpServletResponse res, PrintWriter outExt) throws ServletException, IOException {\n ScreenModel screen = this.doProcessInput(servlet, req, res);\n this.doProcessOutput(servlet, req, res, outExt, screen, true);\n}\n"
"public void close() {\n if (haveSemaphore) {\n haveSemaphore = false;\n querySemaphore.leave();\n }\n if (resultSet != null) {\n try {\n resultSet.close();\n } catch (SQLException e) {\n throw Util.newError(message + \"String_Node_Str\" + sql + \"String_Node_S...
"public boolean implementsInterface(IClass c, TypeReference T) {\n IClass tClass = lookupClass(T);\n if (Assertions.verifyAssertions) {\n if (tClass == null) {\n Assertions._assert(false, \"String_Node_Str\" + T);\n }\n }\n if (!tClass.isInterface()) {\n return false;\n }\...
"private void startFloatRangeLoop(String loopName, Var loopVar, Arg start, Arg end, Arg increment, int splitDegree, int leafDegree, List<PassedVar> passedVars, List<RefCount> perIterIncrs, ListMultimap<Var, RefCount> constIncrs) {\n assert (start.isImmFloat());\n assert (end.isImmFloat());\n assert (increment....
"public double[][] getScores(DmvProblemNode node) {\n if (scores == null) {\n idm = node.getIdm();\n scores = new double[idm.getNumConds()][];\n deltaSum = new double[idm.getNumConds()][][];\n numObserved = new int[idm.getNumConds()][][];\n for (int c = 0; c < idm.getNumConds(); c+...
"public void actionPerformed(java.awt.event.ActionEvent e) {\n boolean configured = false;\n if (mode == 0)\n configured = ConfigurationDialogs.showSource(view, getDialogMode());\n else if (mode == 1)\n configured = ConfigurationDialogs.showJson(view, getDialogMode());\n boolean makeReqs = tru...
"public Object handleChildResource(OTXMLElement parentElement, String childName, Object childObj, String relativeParentPath, XMLDataObject parent, int xmlType, String comment) throws HandleElementException {\n OTClassProperty otProperty = otClass.getProperty(childName);\n if (otProperty == null) {\n System...
"public GameView getGameView() {\n Player player = game.getPlayer(playerId);\n player.setUserData(this.userData);\n GameView gameView = new GameView(game.getState(), game);\n gameView.setHand(new SimpleCardsView(player.getHand().getCards(game)));\n if (player.getPlayersUnderYourControl().size() > 0) {\n ...
"public void registerEndpoint(IWebsocketEndpoint endpoint) {\n super.registerEndpoint(endpoint);\n endpointForms.put(endpoint, new ConcurrentHashMap<String, Pair<String, Boolean>>());\n}\n"
"protected void event(UserRequest ureq, Component source, Event event) {\n if (source == startLink) {\n doOpenImportWizard(ureq);\n }\n}\n"
"private boolean checkForV6Bridge(InetAddress addressOfBridge, String bridgeID) throws InterruptedException {\n QueuedSend queuedSend;\n try {\n queuedSend = new QueuedSend();\n Semaphore s = new Semaphore(0);\n MilightV6SessionManager session = new MilightV6SessionManager(queuedSend, bridgeI...
"private List<BGTableItem> search(SearchEvent event) {\n Long id = event.getId();\n String name = event.getName();\n String description = event.getDescription();\n String ownerName = event.getOwnerName();\n SearchBusinessGroupParams params = new SearchBusinessGroupParams();\n if (id != null) {\n ...
"public void initialize() {\n super.initialize();\n tabModel = Model.of();\n tabsPanel = new TabsPanel<String>(\"String_Node_Str\", tabModel, new LoadableDetachableModel<List<String>>() {\n\n protected List<String> load() {\n return oClassIntrospector.listTabs(getDocument().getSchemaClass());...
"public void init() {\n super.init();\n getContentPane().setLayout(new BorderLayout(5, 5));\n getContentPane().add(_createRunControls(2), BorderLayout.NORTH);\n constructPtolemyModel();\n _divaPanel = new JPanel(new BorderLayout());\n _divaPanel.setBorder(new TitledBorder(new LineBorder(Color.black), ...
"public void delete(HttpRequest httpRequest, HttpResponder httpResponder, String namespace, String name) throws Exception {\n secureStoreManager.deleteSecureData(namespace, name);\n httpResponder.sendStatus(HttpResponseStatus.OK);\n}\n"
"public synchronized int hashCode() {\n if (__hashCodeCalc) {\n return 0;\n }\n __hashCodeCalc = true;\n int _hashCode = 1;\n if (getBusinessPartnerId() != null) {\n _hashCode += getBusinessPartnerId().hashCode();\n }\n if (getClientId() != null) {\n _hashCode += getClientId()....
"public double[] predictProbabilities(Instance instance) {\n if (w.length == 1) {\n double[] prob = new double[2];\n double pred = regress(intercept[0], w[0], instance);\n prob[0] = MathUtils.sigmoid(pred);\n prob[1] = 1 - prob[0];\n return prob;\n } else {\n double[] pro...
"public void executionError(Manager manager, Throwable throwable) {\n getFrame().report(throwable);\n if (throwable instanceof KernelException) {\n highlightError(((KernelException) throwable).getNameable1());\n highlightError(((KernelException) throwable).getNameable2());\n if (throwable ins...
"private void genAppFunctionBody(Context context, SwiftAST appBody, List<Var> outputs, boolean hasSideEffects, boolean deterministic) throws UserException {\n assert (appBody.getType() == ExMParser.APP_BODY);\n assert (appBody.getChildCount() >= 1);\n SwiftAST cmd = appBody.child(0);\n assert (cmd.getType()...
"private static void schedulerSetup(boolean enablePersistence) throws SchedulerException {\n JobStore js;\n if (enablePersistence) {\n CConfiguration conf = injector.getInstance(CConfiguration.class);\n tableUtil = new ScheduleStoreTableUtil(dsFramework, conf);\n datasetBasedTimeScheduleStore...
"public void fiveDividedByTwoEqualsToTwoPointFive() {\n int dividend = 5;\n int divider = 2;\n float result = divideUsingSubtraction.divideIterative(dividend, divider);\n assertEquals(2.5, result, DELTA);\n}\n"
"private static void printResults(List<List<DirichletCluster<Vector>>> clusters, int significant) {\n int row = 0;\n for (List<DirichletCluster<Vector>> r : clusters) {\n System.out.print(\"String_Node_Str\" + row++ + \"String_Node_Str\");\n for (int k = 0; k < r.size(); k++) {\n Model<Ve...
"protected Set<T> cacheData(Set<T> ids) {\n Map<T, File> filesFound = prepareCombine(ids);\n File resultFile = getCacheFile(ids);\n if (filesFound.size() == ids.size()) {\n combine(filesFound, ids);\n } else {\n FileUtils.remove(resultFile);\n }\n return filesFound.keySet();\n}\n"
"private void resetAction() {\n try {\n String message = \"String_Node_Str\";\n int result = JOptionPane.showConfirmDialog(null, message, \"String_Node_Str\", JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE);\n if (result == JOptionPane.OK_OPTION) {\n Preferences userPrefs =...
"private Map<String, List<URL>> initUrlForRulesFiles(ExportFileResource[] process) throws PersistenceException, CoreException, MalformedURLException {\n Map<String, List<URL>> map = new HashMap<String, List<URL>>();\n List<URL> urlList = new ArrayList<URL>();\n String processLabelAndVersion = null;\n IFile ...
"public List<String> toErrors(HttpServletRequest request, Form form, Exception exception) {\n if (exception instanceof AuthenticationServiceException) {\n if (exception.getMessage() != null && exception.getMessage().contains(UNSUCCESSFUL_LOGIN_STORMPATH_ERROR)) {\n return Collections.singletonList(...
"public void addProbeInfo(ProbeMode mode, IProbeInfo probeInfo, EntityPlayer player, World world, IBlockState blockState, IProbeHitData data) {\n super.addProbeInfo(mode, probeInfo, player, world, blockState, data);\n TileEntity te = world.getTileEntity(data.getPos());\n if (te instanceof BuilderTileEntity) {\...
"public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n } else if (!(obj instanceof LSAPR_POLICY_AUDIT_EVENTS_INFO)) {\n return false;\n }\n LSAPR_POLICY_AUDIT_EVENTS_INFO other = (LSAPR_POLICY_AUDIT_EVENTS_INFO) obj;\n return Objects.equals(isAuditingMode(), other.isAudi...
"protected void onChildRestoreInstanceState() {\n if (searchTask != null && searchTask.isActive())\n onPreSearchRecommendations();\n else if (getLastRecommendations() != null) {\n onRecommendationsAcquired(getLastRecommendations());\n onSearchRecommendationsFinally();\n } else\n onP...
"public void running() {\n if (isActivelyConnected()) {\n log.info(\"String_Node_Str\", type.getName(), lastServerAddress);\n broadcastOnConnection();\n reschedule(connectionCheckTask, CONNECTION_STABILIZATION, TimeUnit.SECONDS);\n }\n}\n"
"private void focusEditTextAndOpenKeyboard() {\n getDialog().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);\n}\n"
"protected ConnectionPolicy processConnectionPolicyProperties() {\n ConnectionPolicy policy = serverSession.getDefaultConnectionPolicy();\n if (properties == null || properties.isEmpty()) {\n return policy;\n }\n ConnectionPolicy policyFromProperties = (ConnectionPolicy) properties.get(EntityManagerP...
"public Map<String, String> getDetails() {\n Map<String, String> customparameterMap = new HashMap<String, String>();\n if (details != null && details.size() != 0) {\n Collection parameterCollection = details.values();\n Iterator iter = parameterCollection.iterator();\n while (iter.hasNext()) ...
"public void reset() {\n clearTable();\n SWTUtil.disable(root);\n}\n"
"static byte[] gunzip(byte[] input) throws IOException {\n GZIPInputStream in = new GZIPInputStream(new ByteArrayInputStream(input));\n try (ByteArrayOutputStream outputStream = new ByteArrayOutputStream(input.length)) {\n while (!inflater.finished()) {\n int count = inflater.inflate(GZIP_BUFFER...
"public void getWorkersByApp(HttpRequest request, HttpResponder responder, String appId) {\n programLifecycleHttpHandler.getWorkersByApp(RESTMigrationUtils.rewriteV2RequestToV3(request), responder, Constants.DEFAULT_NAMESPACE, appId);\n}\n"
"public void testWrite() throws Exception {\n openDesign(\"String_Node_Str\");\n TextItemHandle text = (TextItemHandle) designHandle.findElement(\"String_Node_Str\");\n String contentType = text.getContentType();\n assertEquals(DesignChoiceConstants.TEXT_CONTENT_TYPE_HTML, contentType);\n text.setContent...
"public Object load(Path path) {\n File file = locateFile(path);\n String msg;\n if (file == null) {\n return null;\n } else if (path.isIndex()) {\n Index idx = new Index();\n File[] files = file.listFiles();\n for (int i = 0; i < files.length; i++) {\n String name = f...
"private void addFileToDirectory(WPBFile parentDirectory, WPBFile file, InputStream is) throws WPBException, IOException {\n String dirPath = \"String_Node_Str\";\n String filePath = null;\n if (parentDirectory != null) {\n dirPath = getDirectoryFullPath(parentDirectory.getExternalKey(), adminStorage);\...
"public Stream<? extends Arguments> arguments(ContainerExtensionContext context) throws Exception {\n return ResourcesReader.readJson(RESOURCES_DIRECTORY).map(ObjectArrayArguments::create);\n}\n"
"public void setConfiguration(long flags, EntityPlayerMP changer) {\n unregisterLabel();\n super.setConfiguration(flags, changer);\n flags = flags >> 3;\n Label = (int) (flags & 0xFFFFl);\n if ((flags & (1 << (Buttons.PRIVATE.ordinal()))) != 0) {\n Player = changer.getDisplayName();\n } else {\...
"String replaceListRanges(Formula formula) {\n String codedFormula = formula.getFormula();\n Sheet sheet = formula.getSheet();\n StringBuilder appliedFormulaBuilder = new StringBuilder();\n String delimiter = formulaListRangeToken;\n int index = codedFormula.indexOf(delimiter);\n boolean isExpression ...
"public void onReceive(Context context, Intent intent) {\n if (intent.getAction().equals(BluetoothAdapter.ACTION_STATE_CHANGED)) {\n onBluetoothStateChanged(mLocalManager.getBluetoothState());\n } else if (intent.getAction().equals(BluetoothDevice.ACTION_BOND_STATE_CHANGED) && mScreenType == SCREEN_TYPE_DE...
"public void onEnable() {\n log.info(\"String_Node_Str\" + getDescription().getName() + \"String_Node_Str\" + getDescription().getFullName());\n getServer().getPluginManager().registerEvent(Type.REDSTONE_CHANGE, blockListener, Priority.Highest, this);\n}\n"
"private String getCopyValueOfUniqueField(final DataDefinition dataDefinition, final FieldDefinition fieldDefinition, final String value) {\n if (value == null) {\n return value;\n } else {\n Matcher matcher = Pattern.compile(\"String_Node_Str\").matcher(value);\n String oldValue = value;\n ...
"public static String getLocalFileStorageUrl(String dir, String fileName) {\n if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {\n if (fileName == null) {\n return null;\n }\n if (dir == null || dir.equals(\"String_Node_Str\")) {\n return Environ...
"public FlowValidationDto validateFlow(final String flowId, final String correlationId) {\n Flow flow = pathComputer.getFlow(flowId);\n if (flow == null)\n return null;\n logger.debug(\"String_Node_Str\", flow);\n Set<String> switches = new HashSet<>();\n switches.add(flow.getSourceSwitch());\n ...
"static JavaRDD<Cells> doJoin(JavaRDD<Cells> leftRdd, JavaRDD<Cells> rightRdd, List<Relation> joinRelations) {\n List<ColumnName> leftTables = new ArrayList<>();\n List<ColumnName> rightTables = new ArrayList<>();\n for (Relation relation : joinRelations) {\n ColumnSelector selectorRight = (ColumnSelect...
"private void updateSharedUserPerms(PackageSetting deletedPs) {\n if ((deletedPs == null) || (deletedPs.pkg == null)) {\n Log.i(TAG, \"String_Node_Str\");\n return;\n }\n if (deletedPs.sharedUser == null) {\n return;\n }\n SharedUserSetting sus = deletedPs.sharedUser;\n for (Strin...
"public MatOfDouble getmProjectionCV() {\n if (mProjectionDirtyCV) {\n if (mProjectionCV == null) {\n mProjectionCV = new MatOfDouble();\n mProjectionCV.create(3, 3, CvType.CV_64FC1);\n }\n final float fovAspectRatio = mFOVX / mFOVY;\n double diagonalPx = Math.sqrt((...
"public void stop() {\n newScript(MutableMap.of(\"String_Node_Str\", false), STOPPING).body.append(CommonCommands.sudo(\"String_Node_Str\")).execute();\n}\n"
"private void validateAMXConfig(final AMXProxy proxy, final ProblemList problems) throws InstanceNotFoundException {\n if (!AMXConfigProxy.class.isAssignableFrom(proxy.extra().genericInterface())) {\n return;\n }\n final AMXConfigProxy config = proxy.as(AMXConfigProxy.class);\n if (!config.type().equ...
"public void report(final MeasurementUnit mu) throws ReportingException {\n if (runInfo.isRunning()) {\n rwLock.readLock().lock();\n for (Reporter r : reporters) {\n r.report(mu);\n }\n rwLock.readLock().unlock();\n } else {\n log.debug(\"String_Node_Str\");\n }\n}...
"public synchronized void open() throws ResourceUnavailableException {\n int width = 0;\n int height = 0;\n if (opened)\n return;\n if (inputFormat == null)\n throw new ResourceUnavailableException(\"String_Node_Str\");\n if (outputFormat == null)\n throw new ResourceUnavailableExcep...
"private Object getCellValue(HSSFCell cell, Object obj) {\n Object value = null;\n if (obj instanceof String) {\n value = cell.getStringCellValue() != null ? cell.getStringCellValue().trim() : null;\n } else if (obj instanceof Double) {\n value = new Double(cell.getNumericCellValue());\n } els...
"public static double[] deserializeDouble(List<MPIBuffer> buffers, int byteLength) {\n int noOfDoubles = byteLength / 8;\n double[] returnDoubles = new double[noOfDoubles];\n int bufferIndex = 0;\n for (int i = 0; i < noOfDoubles; i++) {\n ByteBuffer byteBuffer = buffers.get(bufferIndex).getByteBuffe...
"public Object visitDeclaratorNode(DeclaratorNode node, LinkedList args) {\n throw new RuntimeException(\"String_Node_Str\" + \"String_Node_Str\");\n}\n"
"protected Object putIfAbsentInternal(K key, V value, ExpiryPolicy expiryPolicy, boolean withCompletionEvent, boolean async) {\n long start = System.nanoTime();\n ensureOpen();\n validateNotNull(key, value);\n CacheProxyUtil.validateConfiguredTypes(cacheConfig, key, value);\n Data keyData = toData(key);\...
"private void showBottomBar() {\n if (!isBottomBarShowing() && canShowBottomBar()) {\n AniUtils.animateBottomBar(mBottomBar, true);\n }\n}\n"
"public static boolean checkSameOriginPolicy(URL url1, URL url2) {\n logger.debug(\"String_Node_Str\", url1, url2);\n String endpointProtocol = url1.getProtocol();\n String subjectProtocol = url2.getProtocol();\n if (!endpointProtocol.equalsIgnoreCase(subjectProtocol)) {\n logger.error(\"String_Node_...
"public int isInside(int x, int y, int z) {\n blockState = null;\n x -= thisCoord.getX();\n y -= thisCoord.getY();\n z -= thisCoord.getZ();\n int ok = 0;\n for (int i = 0; i < formulas.size(); i++) {\n IFormula formula = formulas.get(i);\n Bounds bounds = this.bounds.get(i);\n Sha...
"public int compareTo(Object o) {\n if (!(o instanceof ContestContestant)) {\n throw new ClassCastException(\"String_Node_Str\");\n }\n ContestContestant occ = (ContestContestant) o;\n if (occ.getScore() == this.score) {\n return this.time < occ.getTime() ? -1 : 1;\n }\n return this.scor...
"public void createHandler() {\n mHandler = new Handler(getLooper()) {\n public void handleMessage(Message msg) {\n if (msg.what == MESSAGE_DOWNLOAD) {\n StockChartView token = (StockChartView) msg.obj;\n handleRequest(token);\n }\n }\n });\n}\n"
"public static void main(String[] args) throws MalformedURLException {\n logger.debug(\"String_Node_Str\");\n System.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n System.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n Options options = new Options();\n Option projectPathOption = new O...
"public void initGui() {\n super.initGui();\n int maxEnergyStored = tileEntity.getMaxEnergyStored();\n energyBar = new EnergyBar(mc, this).setVertical().setMaxValue(maxEnergyStored).setLayoutHint(new PositionalLayout.PositionalHint(10, 7, 8, 54)).setShowText(false);\n energyBar.setValue(GenericEnergyStorage...
"public void enable() {\n settings.getInstance().loadSettings();\n log.log(Level.INFO, \"String_Node_Str\");\n}\n"
"private void reloadConfiguration() {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);\n mVibrateOnKeyPress = sp.getBoolean(\"String_Node_Str\", false);\n mSoundOnKeyPress = sp.getBoolean(\"String_Node_Str\", false);\n mKeyboardChangeNotification = sp.getBoolean(\"String_Node_St...
"public Address growDiscontiguousSpace(int chunks) {\n return headDiscontiguousRegion = Map.allocateContiguousChunks(descriptor, this, chunks, headDiscontiguousRegion);\n}\n"
"public ConstructorReportItem translate() {\n ConstructorReportItem item = new ConstructorReportItem(this.getAlias());\n item.setResultType(this.getJavaType());\n for (Selection selection : this.getCompoundSelectionItems()) {\n if (((SelectionImpl) selection).isCompoundSelection()) {\n item.a...
"private synchronized void createFakeSendStreamIfNecessary() {\n if (CREATE_FAKE_SEND_STREAM_IF_NECESSARY && (fakeSendStream == null) && sendStreams.isEmpty() && (streamRTPManagers.size() > 1)) {\n Format supportedFormat = null;\n for (StreamRTPManagerDesc s : streamRTPManagers) {\n Format[]...
"public void shouldDelete() {\n repo.deleteById(\"String_Node_Str\", \"String_Node_Str\");\n try {\n assertNull(repo.findById(\"String_Node_Str\"));\n fail();\n } catch (EntityNotFoundException expected) {\n }\n}\n"
"public RestfulResponse suspendJobRecovery(JobQueueReq request) {\n if (StringUtils.isEmpty(request.getJobId())) {\n return Builder.build(false, \"String_Node_Str\");\n }\n JobPo jobPo = appContext.getSuspendJobQueue().getJob(request.getJobId());\n if (jobPo == null) {\n return Builder.build(f...
"public void renderReportlet(String docName, String objectId, InputOptions renderOptions, List activeIds, OutputStream out) throws ReportServiceException {\n IReportDocument doc = ReportEngineService.getInstance().openReportDocument(getReportDesignName(renderOptions), docName, getModuleOptions(renderOptions));\n ...