content
stringlengths
40
137k
"private void writeColumnIdsIntoHDFS(Path path, List<Integer> columnIds) {\n PrintWriter pw = null;\n try {\n bw = ShifuFileUtils.getWriter(path, SourceType.HDFS);\n bw.write(String.format(\"String_Node_Str\", Integer.toString(columnIds.size()), columnIds.toString()));\n bw.newLine();\n ...
"public void buildTextStyle(ITextContent text, StringBuffer styleBuffer, int display) {\n IStyle style = text.getStyle();\n handleTextShrink(display, style, text.getHeight(), text.getWidth(), styleBuffer);\n setDisplayProperty(display, HTMLEmitterUtil.DISPLAY_INLINE_BLOCK, styleBuffer);\n AttributeBuilder.b...
"public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {\n monitor.beginTask(\"String_Node_Str\", IProgressMonitor.UNKNOWN);\n if (resultSetTable != null && !resultSetTable.isDisposed()) {\n ClassLoader oldContextLoader = Thread.currentThread().getContextClassLoad...
"public void onChange() {\n if (!output) {\n cachedInv = null;\n int olderSize = oldSize;\n oldSize = getDest().getSizeInventory();\n if (olderSize != oldSize) {\n getHost().PartChanged();\n tile.worldObj.notifyBlocksOfNeighborChange(tile.xCoord, tile.yCoord, tile.zC...
"public Grid iterate() {\n for (int i = 0; i < threadList.length; i++) {\n threadList[i] = new LifeThread(i);\n }\n for (LifeThread t : threadList) {\n t.start();\n }\n for (LifeThread t : threadList) {\n try {\n t.join();\n } catch (InterruptedException e) {\n ...
"protected void verifyConnection4ReturnColumns4DontCreateConnection(Connection conn) throws SQLException {\n verify(conn, times(2)).isClosed();\n}\n"
"public void setNetworkPostfix(int iSetNetworkPrefix) {\n if ((iSetNetworkPrefix < IGeneralManager.iUniqueId_WorkspaceOffset) && (iSetNetworkPrefix >= 0)) {\n iNetworkApplicationIdPostfix = iSetNetworkPrefix;\n }\n throw new RuntimeException(\"String_Node_Str\");\n}\n"
"public void releaseAllPointersOlderThan(PointerTracker tracker, long eventTime) {\n LinkedList<PointerTracker> queue = mQueue;\n int oldestPos = 0;\n for (PointerTracker t = queue.get(oldestPos); t != tracker; t = queue.get(oldestPos)) {\n if (t.isModifier()) {\n oldestPos++;\n } else...
"public boolean resolve(Game game) {\n boolean result;\n Player controller = game.getPlayer(getControllerId());\n if (controller == null) {\n return false;\n }\n if (this.getCardType().contains(CardType.INSTANT) || this.getCardType().contains(CardType.SORCERY)) {\n int index = 0;\n r...
"private void mergeActions() {\n SQLiteDatabase db = dbHelper.getReadableDatabase();\n Cursor c = db.query(CommentActions.TABLE_NAME, PROJECTION, CommentActions.SELECT_BY_PARENT_THING_ID, Array.of(thingId), null, null, CommentActions.SORT_BY_ID);\n try {\n while (c.moveToNext()) {\n int actio...
"public static JobScriptsManager createManagerInstance(Map<ExportChoice, Object> exportChoiceMap, String contextName, String launcher, int statisticPort, int tracePort, JobExportType jobExportType) {\n ECodeLanguage language = LanguageManager.getCurrentLanguage();\n if (language == ECodeLanguage.JAVA) {\n ...
"protected Selectable selectElements(BaseElementSelector elementSelector) {\n if (!elementSelector.hasAttribute()) {\n List<Element> resultElements = new ArrayList<Element>();\n while (elementIterator.hasNext()) {\n Element element = checkElementAndConvert(elementIterator);\n List...
"protected void configure() {\n requestStaticInjection(BlowsUpOnInject.class);\n}\n"
"private void renderPart(int x, int y, int z, int scale, OutfitPart part) {\n Part basePart = part.getPart();\n if (basePart == null)\n return;\n Model model = basePart.getModel();\n GlStateManager.pushMatrix();\n GlStateManager.translate(x, y, z);\n GlStateManager.scale(-scale, scale, 1F);\n ...
"public void createEmptyFields(NamedObj target) {\n try {\n ConfigurableAttribute authorAtt = new ConfigurableAttribute(this, \"String_Node_Str\");\n ConfigurableAttribute versionAtt = new ConfigurableAttribute(this, \"String_Node_Str\");\n ConfigurableAttribute descriptionAtt = new Configurable...
"public void testPublishApiWithDeSelectEnvironment() throws Exception {\n driver.findElement(By.id(\"String_Node_Str\")).clear();\n driver.findElement(By.id(\"String_Node_Str\")).sendKeys(gatewayContextMgt.getContextTenant().getContextUser().getUserName());\n driver.findElement(By.id(\"String_Node_Str\")).clea...
"void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception {\n LOG.info(\"String_Node_Str\" + in);\n in.resetReaderIndex();\n PublishMessage message = new PublishMessage();\n if (!decodeCommonHeader(message, in)) {\n LOG.info(\"String_Node_Str\" + in);\n in.resetRea...
"public static boolean deployKubernetesHost(String kubernetesGroupId, KubernetesHost kubernetesHostBean) throws RestAPIException {\n AutoscalerServiceClient autoscalerServiceClient = getAutoscalerServiceClient();\n if (autoscalerServiceClient != null) {\n org.apache.stratos.common.kubernetes.KubernetesHost...
"public <T> VertexCursor<T> executeVertexQuery(String query, Map<String, Object> bindVars, AqlQueryOptions aqlQueryOptions, Class<T> clazz) throws ArangoException {\n DocumentCursorResult<T, VertexEntity<T>> baseCursor = cursorDriver.executeBaseCursorQuery(getDefaultDatabase(), query, bindVars, getAqlQueryOptions(aq...
"public void limitTransAndScale(Matrix matrix, RectF content) {\n matrix.getValues(matrixBuffer);\n float curTransX = matrixBuffer[Matrix.MTRANS_X];\n float curScaleX = matrixBuffer[Matrix.MSCALE_X];\n float curTransY = matrixBuffer[Matrix.MTRANS_Y];\n float curScaleY = matrixBuffer[Matrix.MSCALE_Y];\n ...
"public void informAboutAttackable(IAttackable other) {\n if (state == ESoldierState.AGGRESSIVE && !isInTower) {\n state = ESoldierState.SEARCH_FOR_ENEMIES;\n }\n}\n"
"public boolean pushMaterial(ISPosition2D position, EMaterialType materialType) {\n if (mapObjectsManager.pushMaterial(position, materialType)) {\n if (offer) {\n partitionsGrid.pushMaterial(position, materialType);\n }\n return true;\n } else\n return false;\n}\n"
"public Object[] craftFireworkRocket(int height, ArrayList<Integer> starIds) {\n if (!bufferRocket.hasFreeSpace()) {\n return new Object[] { false, \"String_Node_Str\" };\n }\n if (!(height >= 1 && height <= 3)) {\n return new Object[] { false, \"String_Node_Str\" };\n }\n if (findQtyOf(PAP...
"public void onExpire() {\n onNoTimeToSchedule(request);\n}\n"
"public static void write(ThemeData theme, OutputStream stream) throws IOException {\n XmlWriter out;\n out = new XmlWriter(stream);\n out.startElement(ELEMENT_ROOT);\n out.println();\n out.startElement(ELEMENT_TABLE);\n out.println();\n if (theme.isColorSet(Theme.FILE_TABLE_BORDER_COLOR))\n ...
"private static void formatCombinatorialDerivation(Set<CombinatorialDerivation> combinatorialDerivations, List<TopLevelDocument<QName>> topLevelDoc) {\n for (CombinatorialDerivation combinatorialDerivation : combinatorialDerivations) {\n List<NamedProperty<QName>> list = new ArrayList<>();\n formatComm...
"public static Integer getMaxNumberOfExperiments(ExplorationStrategy strategyConfig) {\n String value = strategyConfig.getConfiguration().get(MAX_NUMBER_OF_EXPERIMENTS);\n if (value != null && !value.isEmpty()) {\n return Integer.valueOf(value);\n } else {\n return MAX_NUMBER_OF_EXPERIMENTS_DEFAU...
"public void setComposingRegion(final int start, final int end) {\n if (DEBUG_BATCH_NESTING)\n checkBatchEdit();\n if (DEBUG_PREVIOUS_TEXT)\n checkConsistencyForDebug();\n final CharSequence textBeforeCursor = getTextBeforeCursor(Constants.EDITOR_CONTENTS_CACHE_SIZE + (end - start), 0);\n mCom...
"public synchronized Resource createResource(URI uri, String contentType) {\n final URI normalizedURI = getURIConverter().normalize(uri);\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"String_Node_Str\" + Integer.toHexString(hashCode()) + \"String_Node_Str\" + uri);\n }\n if (uriCache.containsKey(...
"private double q(int node, Community community) {\n Float edgesToFloat = structure.nodeConnectionsWeight[node].get(community);\n double edgesTo = 0;\n if (edgesToFloat != null) {\n edgesTo = edgesToFloat.doubleValue();\n }\n double weightSum = community.weightSum;\n double nodeWeight = structu...
"public static void writeObject(DataOutputStream dos, Object fieldValue, Class fieldType) throws IOException, DataException {\n if (fieldValue == null) {\n dos.writeByte(0);\n return;\n } else {\n dos.writeByte(1);\n }\n if (fieldType.equals(Integer.class))\n dos.writeInt(((Integ...
"public boolean supportsDevModeInJunit(LinkerContext context) {\n return !\"String_Node_Str\".equals(getHostedFilename());\n}\n"
"protected void checkFnDeclaresParameters(final FunctionSignature functionSignature, final List<String> fnArgumentNames) throws RestAnnotationException {\n final FunctionArgument[] fnArguments = functionSignature.getArguments();\n for (final String fnArgumentName : fnArgumentNames) {\n boolean found = fals...
"private void initNavigationDrawer() {\n mNavSettingsItemLayout = (FrameLayout) findViewById(R.id.navigation_drawer_items_settings_layout);\n mNavFeedbackItemLayout = (FrameLayout) findViewById(R.id.navigation_drawer_items_feedback_layout);\n mNavScanLayout = (FrameLayout) findViewById(R.id.navigation_drawer_i...
"public Object clone() {\n ListModelArray clone = (ListModelArray) super.clone();\n if (_array != null)\n clone._array = ArraysX.duplicate(_array);\n return clone;\n}\n"
"private void printOption(PrintWriter out, OptionHandler handler, int len, ResourceBundle rb) {\n if (handler.option.usage() == null || handler.option.usage().length() == 0) {\n return;\n }\n int widthMetadata = Math.min(len, (usageWidth - 4) / 2);\n int widthUsage = usageWidth - 4 - widthMetadata;\n...
"private boolean popAggrRefFromScriptExpr(Set aggrReferences, IScriptExpression expr, Map aggrMap) throws DataException {\n try {\n List usedRowReferences = ExpressionUtil.extractColumnExpressions(expr.getText());\n boolean result = this.hasDataSetRowReference(expr);\n for (int i = 0; i < usedRo...
"private boolean containsObsoleteMethods() throws DebugException {\n List<ThreadReference> threads = currentDebugSession.getAllThreads();\n for (ThreadReference thread : threads) {\n if (!thread.isSuspended()) {\n continue;\n }\n List<StackFrame> frames = getStackFrames(thread, tru...
"private void setListeners() {\n mRecyclerView.addOnScrollListener(new EndlessRecyclerViewScrollListener(linearLayoutManager) {\n\n public void onLoadMore(int page, int totalItemsCount) {\n pageNumber++;\n }\n });\n mFilterLayBtn.setOnClickListener(new View.OnClickListener() {\n ...
"public void newProperties(PropertySheet ps) throws PropertyException {\n super.newProperties(ps);\n logger = ps.getLogger();\n loader = (Loader) ps.getComponent(LOADER);\n saver = (Saver) ps.getComponent(SAVER);\n hmmPoolManager = new HMMPoolManager(loader);\n loadTimer = TimerPool.getTimer(TIMER_LOA...
"public void onExecutionFailure(Throwable cause) {\n try {\n sendResponse(new ErrorResponse(cause, getCallId(), isUrgent()));\n } finally {\n getOperationServiceImpl().onCompletionAsyncOperation(this);\n }\n getLogger().severe(cause);\n}\n"
"private void replaceEffectivelyStaticRef(MessageSend call) {\n NameReference receiver = (NameReference) call.receiver;\n receiver.binding = thisJoinPointStaticPartDecLocal;\n receiver.codegenBinding = thisJoinPointStaticPartDecLocal;\n call.binding = call.codegenBinding = getEquivalentStaticBinding(call.bi...
"public long add_new(int type, String title, String data, String cellID) {\n float now = (float) (System.currentTimeMillis() / 1000);\n ContentValues values = new ContentValues();\n values.put(KEY_SOURCE, IMSI_HASH);\n values.put(KEY_TIME, now);\n values.put(KEY_TYPE, type);\n values.put(KEY_TITLE, ti...
"public void testSMGetHitAll() {\n try {\n keyList = new ArrayList<String>();\n for (int i = 0; i < 50; i++) {\n mc.delete(KEY + i).get();\n keyList.add(KEY + i);\n }\n for (int i = 0; i < 50; i++) {\n if (i % 2 == 0)\n mc.asyncBopInsert(KEY...
"public Object getReadControlObject() {\n JAXBElement elem = new JAXBElement(new QName(\"String_Node_Str\"), WithoutXmlRootElementRoot.class, new ArrayList<WithoutXmlRootElementRoot>(getControlObject()));\n return elem;\n}\n"
"private void handleSpecStep(Collection<ConceptStepImpl> conceptSteps, Collection<SpecStep> specSteps, ReferencesSearch.SearchParameters searchParameters, Processor<PsiReference> processor) {\n String text = getStepAnnotationText(((SpecStepImpl) searchParameters.getElementToSearch()));\n for (ConceptStepImpl conc...
"private boolean processCheck() {\n int myPid = android.os.Process.myPid();\n ActivityManager am = (ActivityManager) this.getSystemService(ACTIVITY_SERVICE);\n for (RunningAppProcessInfo processInfo : am.getRunningAppProcesses()) {\n if (processInfo != null && processInfo.pid == myPid) {\n re...
"public String getName() {\n return authcid;\n}\n"
"private boolean handleIntent(Bundle savedInstanceState) {\n Intent intent = getIntent();\n mIntentAction = intent.getAction();\n if (mIntentAction == null) {\n Timber.w(\"String_Node_Str\");\n return false;\n }\n if (savedInstanceState == null) {\n int accountId = intent.getIntExtra...
"private void refreshDataSets() {\n String selectedDataSetName = dataSetChooser.getText();\n String[] oldList = dataSetChooser.getItems();\n String[] newList = ChoiceSetFactory.getDataSets();\n if (oldList.length != newList.length) {\n dataSetChooser.setItems(newList);\n if (StringUtil.isBlank...
"public void activate() throws IOException {\n HttpServletRequest req = ServletActionContext.getRequest();\n HttpServletResponse resp = ServletActionContext.getResponse();\n String pNodeId = req.getParameter(\"String_Node_Str\");\n if (Strings.isNullOrEmpty(pNodeId)) {\n responseJTableData(resp, gene...
"public void shutdown() {\n ignoreAndLog(() -> Uninterruptibles.getUninterruptibly(executor.service.submit(() -> {\n peerGroup.removePeerFilterProvider(manager);\n peerGroup.removeEventListener(manager);\n });\n}\n"
"public ProtocolProviderService signin(final String userName, final String password) throws OperationFailedException {\n final AccountPanel accPanel = (AccountPanel) firstWizardPage.getSimpleForm();\n String accPanelUsername = accPanel.getUsername();\n boolean equals = false;\n final boolean rememberPasswor...
"public static List<IComponent> filterNeededComponents(Item item, RepositoryNode seletetedNode, ERepositoryObjectType type) {\n EDatabaseComponentName name = EDatabaseComponentName.getCorrespondingComponentName(item, type);\n List<IComponent> neededComponents = new ArrayList<IComponent>();\n if (name == null) ...
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.list_view_with_spinner, null);\n mListView = (ListView) v.findViewById(R.id.list);\n mProgressBar = (ProgressBar) v.findViewById(R.id.progress);\n if (mAdapter != null) {...
"public double getGain(Player player) {\n UPlayer uPlayer = UPlayer.get(player);\n Faction faction = BoardColls.get().getFactionAt(PS.valueOf(player.getLocation()));\n Rel rel = RelationUtil.getRelationOfThatToMe(faction, uPlayer);\n return uPlayer != null && getMultipliers().containsKey(rel.toString()) ? g...
"public boolean accept(final Path p) {\n final String filename = p.getName();\n final DataFormat df = DataFormats.EXPRESSION_RESULTS_TXT;\n if (filename.startsWith(df.getType().getPrefix()) && filename.endsWith(df.getDefaultExtention()))\n return true;\n return false;\n}\n"
"public void onShutterButtonClick(ShutterButton button) {\n if (mPausing) {\n return;\n }\n switch(button.getId()) {\n case R.id.camera_button:\n if (mIsImageCaptureIntent && mPostCaptureAlert.getVisibility() == View.VISIBLE) {\n hidePostCaptureAlert();\n ...
"public static boolean updateValidationRuleConnection(ConnectionItem connectionItem, boolean show, boolean onlySimpleShow) {\n IProxyRepositoryFactory factory = CoreRuntimePlugin.getInstance().getProxyRepositoryFactory();\n List<IRepositoryViewObject> updateList = new ArrayList<IRepositoryViewObject>();\n List...
"public int drRoll() {\n return Random.NormalIntRange(0, Dungeon.depth + weapon.defenseFactor(null));\n}\n"
"Object doReadObject(int leadByte, final boolean unshared) throws IOException, ClassNotFoundException {\n depth++;\n try {\n for (; ; ) switch(leadByte) {\n case ID_NULL:\n {\n return null;\n }\n case ID_REPEAT_OBJECT_FAR:\n ...
"private double normalize(double aggregate, int dimension) {\n double min = gWeight * datasetSize / domainSizes[dimension];\n double max = datasetSize;\n double result = (aggregate - min) / (max - min);\n return result >= 0d ? result : 0d;\n}\n"
"public static String getColumnExpression(String columnName) {\n Assert.isNotNull(columnName);\n if (StringUtil.isBlank(columnName)) {\n return null;\n }\n return ExpressionUtil.createJSRowExpression(columnName);\n}\n"
"public static long getAgentId(final byte[] bytes) {\n return NumbersUtil.bytesToLong(bytes, 24);\n}\n"
"List<ExecutionInfoToken> retrieve() {\n Map<Integer, ExecutionTokenQueue> sourceChannelAndQueues = node.getSourceQueues();\n for (ExecutionTokenQueue queue : sourceChannelAndQueues.values()) {\n ExecutionInfoToken rs = queue.peek();\n if (rs == null) {\n return null;\n }\n }\n ...
"private static byte[] writeWorldServerProxy(String name, byte[] bytes, ClassReader cr) {\n ClassNode worldServer = new ClassNode(ASM4);\n {\n try {\n ClassReader reader = new ClassReader(LoadingPlugin.loader.getClassBytes(remapper.unmap(\"String_Node_Str\").replace('/', '.')));\n rea...
"public void pickBlockerOrder(UUID playerId, Game game) {\n if (blockers.isEmpty()) {\n return;\n Player player = game.getPlayer(playerId);\n List<UUID> blockerList = new ArrayList<UUID>(blockers);\n blockerOrder.clear();\n while (true) {\n if (blockerList.size() == 1) {\n blocke...
"boolean executeRunnableJob(JobStatus job) {\n synchronized (mLock) {\n if (!mAvailable) {\n Slog.e(TAG, \"String_Node_Str\");\n return false;\n }\n mRunningJob = job;\n final boolean isDeadlineExpired = job.hasDeadlineConstraint() && (job.getLatestRunTimeElapsed() <...
"public static <T extends JavaPlugin> T getPluginInstance(Class<T> clazz) {\n if (pluginManager == null) {\n pluginManager = Bukkit.getPluginManager();\n }\n if (pluginInstances.containsKey(clazz.getName())) {\n return clazz.cast(pluginInstances.get(clazz.getName()));\n }\n try {\n T...
"private void setAnnotationActions(Object obj, IMenuManager manager) {\n manager.add(setAnnotationLabelAction);\n manager.add(setAnnotationDescriptionsAction);\n manager.add(setAnnotationForeignKeyAction);\n manager.add(setAnnotationFKFilterAction);\n manager.add(setAnnotationForeignKeyInfoAction);\n ...
"public static void createInheritingAssociation(Property generalProperty, Classifier classifierOfnewProperty, Property newProperty) {\n Association generalAssociation = generalProperty.getAssociation();\n Association newAssociation = UMLFactory.eINSTANCE.createAssociation();\n newAssociation.setName(generalAss...
"public void overrideMasterSpreadObjects() throws Exception {\n InDesignDocument doc = (InDesignDocument) getParent();\n Map<TextFrame, TextFrame> masterToOverride = new HashMap<TextFrame, TextFrame>();\n for (InDesignComponent comp : this.masterSpread.getChildren()) {\n if (comp.getBooleanProperty(\"St...
"private void initialiseUtilityLayers() {\n if (cameraPathLayer == null) {\n cameraPathLayer = new CameraPathLayer(wwd, getCurrentAnimation());\n wwd.addSelectListener(cameraPathLayer);\n cameraPathLayer.setEnabled(Settings.get().isCameraPathShown());\n changeOfAnimationListeners.add(came...
"public Vector3f getColorOffsetFor(int type, SIDE side) {\n switch(type) {\n case 0x1:\n if (side == SIDE.TOP) {\n return new Vector3f(204f / 255f, 255f / 255f, 25f / 255f);\n }\n break;\n case 0x6:\n return new Vector3f(159f / 255f, 235f / 255...
"private void updateNotificationTranslucency() {\n float alpha;\n if (mExpandingFromHeadsUp || mHeadsUpManager.hasPinnedHeadsUp()) {\n alpha = 1f;\n } else {\n alpha = (getNotificationsTopY() + mNotificationStackScroller.getItemHeight()) / (mQsMinExpansionHeight + mNotificationStackScroller.getBo...
"protected List<Object> recursivelyPopulateEntities(EntityMetadata m, Client client) {\n List<EnhanceEntity> ls = null;\n ApplicationMetadata appMetadata = KunderaMetadata.INSTANCE.getApplicationMetadata();\n MetamodelImpl metaModel = (MetamodelImpl) KunderaMetadata.INSTANCE.getApplicationMetadata().getMetamod...
"public void setSizeAndLocation() {\n ConfigurationService configService = GuiActivator.getConfigurationService();\n String className = this.getClass().getName();\n String widthString = configService.getString(className + \"String_Node_Str\");\n String heightString = configService.getString(className + \"St...
"private void processReservations(Ec2InstanceReservationPrice.ReservationUtilization utilization) {\n if (config.reservationService.getTagGroups(utilization).size() == 0)\n return;\n ReadWriteData usageData = usageDataByProduct.get(null);\n ReadWriteData costData = costDataByProduct.get(null);\n Map<...
"public static boolean isNumber(Class field) {\n return Number.class.isAssignableFrom(field);\n}\n"
"public boolean pay(Ability ability, Game game, UUID sourceId, UUID controllerId, boolean noMana, Cost costToPay) {\n for (Permanent permanent : game.getBattlefield().getAllActivePermanents(filter, controllerId, game)) {\n if (permanent.sacrifice(sourceId, game)) {\n permanents.add(permanent.copy()...
"public void testNamespace001Positive() throws Exception {\n boolean exception = false;\n String msg = null;\n String src = \"String_Node_Str\";\n String tmpdir = System.getenv(\"String_Node_Str\");\n try {\n Class[] jClasses = new Class[] { NameSpace001.class };\n Generator gen = new Gener...
"protected void applicationConfig() throws LifecycleException {\n String altDDName = null;\n InputStream stream = null;\n ServletContext servletContext = context.getServletContext();\n if (servletContext != null) {\n altDDName = (String) servletContext.getAttribute(Globals.ALT_DD_ATTR);\n if (...
"public int getPickingID(int iViewID, EPickingType ePickingType, int iExternalID) {\n ViewSpecificPickingIDContainer pickingIDContainer = hashViewIDToViewSpecificPickingIDContainer.get(iViewID);\n if (pickingIDContainer == null) {\n pickingIDContainer = new ViewSpecificPickingIDContainer();\n hashVi...
"private AccessPointState getCurrentAp() {\n final WifiInfo wifiInfo = mWifiManager.getConnectionInfo();\n String ssid = wifiInfo.getSSID();\n if (ssid != null) {\n synchronized (this) {\n return findApLocked(wifiInfo.getNetworkId(), wifiInfo.getBSSID(), ssid, null);\n }\n } else {\...
"private void updateCachedIssue(Issue issue) {\n TurboIssue newCached = new TurboIssue(issue);\n int index = getIndexOfIssue(issue.getNumber());\n if (index != -1) {\n updateIssueAtIndex(index, newCached);\n } else {\n issues.add(0, newCached);\n }\n}\n"
"public void scanBeginRevision(Long revision, Integer changeSetSize) {\n Long div = revision * 100 / numberOfRevisions;\n System.out.printf(\"String_Node_Str\", div, numberOfRevisions, revision, changeSetSize);\n}\n"
"public void addEmbeddedInstance(T embeddedInstance, String targetPath) {\n this.instances.put(targetPath, embeddedInstance);\n}\n"
"protected void buildProperties(IContent content, LayoutContext context) {\n IStyle style = content.getComputedStyle();\n localProperties = new LocalProperties();\n int maw = parent.getMaxAvaWidth();\n localProperties.setMarginBottom(getDimensionValue(style.getProperty(IStyle.STYLE_MARGIN_BOTTOM), maw));\n ...
"protected Receiver _wrapReceiver(Receiver receiver, int channel) throws IllegalActionException {\n Receiver result = receiver;\n List qmList = getQuantityManagers();\n if (isInput()) {\n for (int i = qmList.size() - 1; i >= 0; i--) {\n Object object = qmList.get(i);\n if (object i...
"public By buildBy() {\n assertValidAnnotations();\n SelendroidFindBy selendroidBy = mobileField.getAnnotation(SelendroidFindBy.class);\n if (selendroidBy != null && ANDROID.toUpperCase().equals(platform) && \"String_Node_Str\".toUpperCase().equals(automation)) {\n return getMobileBy(selendroidBy, getFi...
"public boolean checkRValuesForTx(Tx tx) {\n HashSet<BigInteger> rs = new HashSet<BigInteger>();\n for (In in : AbstractDb.txProvider.getRelatedIn(this.address)) {\n if (in.getInSignature() != null && !in.isCoinBase()) {\n Script script = new Script(in.getInSignature());\n if (script....
"public void propagateAction(GameAction action) {\n Level currentLevel = game.getCurrentLevel();\n CumulativeTurnManager tm = app.getTurnManager();\n EntityActionManager mainManager = null;\n Move moveAction;\n Combatable c = null;\n List<EntityActionManager> managers = null;\n if (currentLevel != ...
"private void executeFork(final ApplicationSpecification appSpec, WorkflowForkNode fork, final InstantiatorFactory instantiator, final ClassLoader classLoader, final WorkflowToken token) throws Exception {\n ExecutorService executorService = Executors.newFixedThreadPool(fork.getBranches().size(), new ThreadFactoryBu...
"private JsExpression mapOptionalExpression(Node exprNode) throws JsParserException {\n JsNode unknown = map(exprNode);\n if (unknown != null) {\n if (unknown instanceof JsExpression) {\n return (JsExpression) unknown;\n } else {\n throw createParserException(\"String_Node_Str\...
"public final boolean checkFit(IDisplayServer xs, Label la, int iLabelLocation) throws ChartException {\n if (iType == TEXT || bCategoryScale) {\n return true;\n }\n final double dAngleInDegrees = la.getCaption().getFont().getRotation();\n double x = 0, y = 0;\n int iPointToCheck = 0;\n if (iLa...
"public URL getForwardingUrl(String scheme, String serverName, int serverPort, String uri, String jstdid, String referer) throws MalformedURLException {\n if (jstdid != null) {\n return new URL(forwardingMapper.getForwardTo(jstdid));\n }\n String incomingUrl = String.format(\"String_Node_Str\", scheme, ...
"public Tuple exec(Tuple input) throws IOException {\n if (input == null || input.size() == 0) {\n return null;\n }\n final String rawTag = input.get(tagColumnNum).toString();\n if (!super.tagSet.contains(rawTag)) {\n if (isPigEnabled(Constants.SHIFU_GROUP_COUNTER, \"String_Node_Str\")) {\n ...
"public boolean step() {\n RemoteChunkProvider chunkProvider = new RemoteChunkProvider();\n BlockManager blockManager = CoreRegistry.get(BlockManager.class);\n EntityAwareWorldProvider entityWorldProvider = new EntityAwareWorldProvider(new WorldProviderCoreImpl(worldInfo, chunkProvider, blockManager));\n Wo...
"public int getPubsuberPort() {\n if (this.pubsuberPort == 0) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n return pubsuberPort;\n}\n"
"private boolean isInteractable() {\n CreatureControl controller = getInteractiveObjectOnCursor();\n Vector2f v = null;\n if (controller != null) {\n tooltip.setText(controller.getTooltip());\n } else {\n v = handler.getRoundedMousePos();\n TileData tile = getWorldHandler().getMapData()...