content
stringlengths
40
137k
"public void makeSitSpecificPlayer(dNPC npc, Player player) {\n try {\n PacketContainer packet = ProtocolLibrary.getProtocolManager().createPacket(40);\n packet.getSpecificModifier(int.class).write(0, npc.getEntity().getEntityId());\n WrappedDataWatcher watcher = new WrappedDataWatcher();\n ...
"public Object getQ3() {\n return doubleToBytes(q3);\n}\n"
"private static List<Module> createPersistentModules(CConfiguration configuration, Configuration hConf, final String webAppPath) {\n configuration.setIfUnset(Constants.CFG_DATA_LEVELDB_DIR, Constants.DEFAULT_DATA_LEVELDB_DIR);\n String environment = configuration.get(Constants.CFG_APPFABRIC_ENVIRONMENT, Constants...
"public void checkLevel(int level) {\n if (!Scene.v().doneResolving())\n return;\n if (resolvingLevel < level) {\n throw new RuntimeException(\"String_Node_Str\" + levelToString(level) + \"String_Node_Str\" + name + \"String_Node_Str\" + levelToString(resolvingLevel));\n }\n}\n"
"public void onMessageReceived(MessageInfo messageInfo) {\n Log.d(TAG, \"String_Node_Str\" + messageInfo.getId() + \"String_Node_Str\" + messageInfo + \"String_Node_Str\");\n if (MessageManager.getInstance().isNotificationType(messageInfo.type)) {\n invalidateOptionsMenu();\n }\n}\n"
"protected ActiveTransition request(T transitionName) throws ExistingTransitionException {\n TransitionHandler<P, S, T> transition = lookupTransition(transitionName);\n TransitionRule<S, T> rule = transition.getRule();\n if (!this.state.compareAndSet(rule.getFromState(), rule.getFromState(), rule.getFromStateM...
"protected final IRow getRow() {\n return row;\n}\n"
"private void reconnectModified(boolean pending) {\n if (readOnly || lock == null) {\n return;\n }\n try {\n if (pending == reconnectChangePending) {\n long now = System.currentTimeMillis();\n if (now > reconnectCheckNext) {\n if (pending) {\n ...
"public void begin() {\n if (!wal)\n OGlobalConfiguration.USE_WAL.setValue(wal);\n ODatabaseDocumentTx documentDatabase = init();\n if (documentDatabase == null) {\n switch(dbType) {\n case DOCUMENT:\n documentDatabase = new ODatabaseDocumentTx(dbURL);\n d...
"public void setTotal(long total) {\n triggerTotal(total);\n firePropertyChange(Properties.convertedGrossValue.name(), this.convertedGrossValue, this.convertedGrossValue = calculateConvertedGrossValue());\n firePropertyChange(Properties.grossValue.name(), this.grossValue, this.grossValue = Math.round(converted...
"private void resetAllDeployedStatuses() {\n try {\n this.statusLock.writeLock().lock();\n for (Map.Entry<IPath, Set<PreviewVdbStatus>> entry : this.deploymentStatusMap.entrySet()) {\n for (PreviewVdbStatus status : entry.getValue()) {\n status.setDeploy(true);\n }\...
"public String toString() {\n StringBuilder builder = new StringBuilder();\n builder.append(\"String_Node_Str\").append(this.lookupComponentId().name()).append(\"String_Node_Str\");\n try {\n builder.append(this.getFullName().toString()).append(\"String_Node_Str\").append(this.hostName).append(\"String_...
"private String loadMessageId() {\n try {\n return Transactions.execute(transactional, new TxCallable<String>() {\n public String call(DatasetContext context) throws Exception {\n return jobQueue.retrieveSubscriberState(topic);\n }\n });\n}\n"
"public static String jmpWrapper(Statement stat, int indent, boolean semicolon, BytecodeMappingTracer tracer) {\n StringBuilder buf = new StringBuilder(stat.toJava(indent, tracer));\n String new_line_separator = DecompilerContext.getNewLineSeparator();\n List<StatEdge> lstSuccs = stat.getSuccessorEdges(Stateme...
"public boolean apply(Game game, Ability source) {\n Permanent permanent = game.getPermanent(targetPointer.getFirst(game, source));\n Player controller = game.getPlayer(source.getControllerId());\n if (controller != null) {\n if (permanent != null) {\n Zone currentZone = game.getState().getZo...
"public static CheckpointMode getCheckpointMode() {\n if (CHECKPOINT_MODE == null) {\n final String mode = GlobalConfiguration.getString(\"String_Node_Str\", \"String_Node_Str\").toLowerCase();\n if (\"String_Node_Str\".equals(mode)) {\n CHECKPOINT_MODE = CheckpointMode.ALWAYS;\n } el...
"protected Iterable<Entrypoint> makeDefaultEntrypoints(AnalysisScope scope, IClassHierarchy cha) {\n return Util.makeMainEntrypoints(JavaSourceAnalysisScope.SOURCE, cha, mainClassDescriptors);\n}\n"
"public void rcClickFigure(String textPath, String operator, int count, int button) {\n IFigure figure = FigureCanvasUtil.findFigure(findEditPart(textPath, operator));\n if (figure == null) {\n getRobot().click(getViewerControl(), getFigureBoundsChecked(textPath, operator), ClickOptions.create().setScrollT...
"private void importDatabases(boolean failOnError) throws Exception {\n List<String> databases = hiveClient.getAllDatabases();\n for (String databaseName : databases) {\n Referenceable dbReference = registerDatabase(databaseName);\n if (dbReference != null) {\n importTables(dbReference, d...
"public static void createJwtSSOToken(Subject subject) {\n if (jwtSSOTokenProxyRef.getService() != null) {\n try {\n jwtSSOTokenProxyRef.getService().createJwtSSOToken(subject);\n } catch (WSSecurityException e) {\n String msg = Tr.formatMessage(tc, \"String_Node_Str\");\n ...
"protected void preRenderScale(EntityChocobo entitychocobo, float f) {\n float scaleFactor = 0.8F;\n GL11.glScalef(scaleFactor, scaleFactor, scaleFactor);\n if (entitychocobo.riddenByEntity != null) {\n GL11.glTranslated(0.5, 0.0, -0.5);\n }\n}\n"
"protected int getBucket(Object[] row) {\n if (row == null || row.length == 0) {\n return 0;\n } else {\n return Math.abs(row[0].hashCode()) % this.numBuckets;\n }\n}\n"
"public static void addPaintings() {\n PaintingIgnore.ignoreVanillaPaintings();\n for (int y = 0; y <= 1; y++) {\n for (int x = 1; x <= 23; x++) {\n EnumHelper.addArt(\"String_Node_Str\" + i, \"String_Node_Str\" + (x + (y * 23)), 16, 16, 16 * (x - 1), 16 * y);\n i++;\n }\n }...
"public synchronized boolean updateKubernetesHost(KubernetesHost kubernetesHost) throws InvalidKubernetesHostException, NonExistingKubernetesHostException {\n validateKubernetesHost(kubernetesHost);\n if (log.isInfoEnabled()) {\n log.info(\"String_Node_Str\" + kubernetesHost);\n }\n try {\n Ku...
"public void testWriteProperties() throws Exception {\n openDesign(\"String_Node_Str\");\n image = findImageItemByName(\"String_Node_Str\");\n handle = image.handle(design);\n handle.setProportionalScale(false);\n image = findImageItemByName(\"String_Node_Str\");\n handle = image.handle(design);\n ...
"private void checkOverride(MarkerList markers, IContext context) {\n if (this.overrideMethods == null) {\n if ((this.modifiers & Modifiers.OVERRIDE) != 0) {\n markers.add(I18n.createMarker(this.position, \"String_Node_Str\", this.name));\n }\n return;\n }\n if ((this.modifiers ...
"public void buildGraph(GProtocolName fullname, Role role) throws ScribbleException {\n debugPrintPass(\"String_Node_Str\" + EndpointGraphBuilder.class + \"String_Node_Str\" + fullname + \"String_Node_Str\" + role);\n Module proj = this.jcontext.getProjection(fullname, role);\n if (proj == null) {\n thr...
"public Project getTopLinkProject() {\n return getXMLHelperDelegate().getTopLinkProject();\n}\n"
"public void configure() {\n SchemaConfiguration classDescriptor = entity.getSchemaClass().getDescriptor();\n XmlFieldAnnotation parentDescriptor = null;\n if (classDescriptor != null && classDescriptor.getType() != null && classDescriptor.getType().getFields() != null) {\n parentDescriptor = classDescr...
"public boolean hasPrimaryClip() {\n try {\n return getService().hasPrimaryClip(mContext.getOpPackageName());\n } catch (RemoteException e) {\n return false;\n }\n}\n"
"private void createAnalyzedColumnSetsSection(String mainTitle, String description) {\n columnsComparisonSection = masterPage.createSection(form, parentComp, mainTitle, description);\n Composite sectionClient = toolkit.createComposite(columnsComparisonSection);\n sectionClient.setLayout(new GridLayout());\n ...
"public boolean isMetBy(GlobalProperties other) {\n if (this.partitioning != PartitionProperty.NONE) {\n if (this.partitioning == PartitionProperty.ANY) {\n if (other.partitioning == PartitionProperty.NONE) {\n return false;\n }\n } else if (other.partitioning != th...
"public static void setup() throws Exception {\n CConfiguration cConf = CConfiguration.create();\n cConf.set(Constants.CFG_LOCAL_DATA_DIR, TMP_FOLDER.newFolder().getAbsolutePath());\n cConf.setBoolean(Constants.Security.ENABLED, true);\n cConf.setBoolean(Constants.Security.KERBEROS_ENABLED, false);\n cCo...
"protected boolean doValidateParameters() throws ParameterValidationException {\n usingParameterValues();\n if (log.isLoggable(Level.FINE)) {\n loggerParamters();\n }\n ParameterValidationVisitor pv = new ParameterValidationVisitor();\n boolean result = pv.visit(executionContext.getDesign(), null)...
"private JRadioButton getGroupRadioButton() {\n if (groupRadioButton == null) {\n groupRadioButton = new JRadioButton();\n groupRadioButton.addActionListener(this);\n groupRadioButton.setActionCommand(GROUP_ACTION);\n groupRadioButton.setText(ResourceUtil.getString(type + \"String_Node_St...
"public void shouldParse_1() {\n String in = \"String_Node_Str\";\n List<AnalysisResult> results = getAnalyzer(\"String_Node_Str\").analyze(in);\n printAndSort(in, results);\n Assert.assertEquals(1, results.size());\n AnalysisResult first = results.get(0);\n Assert.assertEquals(\"String_Node_Str\", fi...
"public void endList(IListContent list) {\n engine.endTable(list);\n}\n"
"public int available() {\n return count - pos + offsetStart;\n}\n"
"public EbicsCertificate updateCertificate(X509Certificate certificate, EbicsCertificate cert) throws CertificateEncodingException, IOException {\n String sha = DigestUtils.sha256Hex(certificate.getEncoded());\n log.debug(\"String_Node_Str\", sha);\n log.debug(\"String_Node_Str\", new String(certificate.getEnc...
"public void OnMotionEvent_Release(Bubble sender, Bubble.ReleaseEvent e) {\n sender.clearTargetPos();\n if (mDidMove) {\n Canvas.TargetInfo ti = mTouchBubble.getTargetInfo(mCanvas, sender.getXPos(), sender.getYPos());\n if (ti.mAction == Config.BubbleAction.None) {\n float v = (float) Mat...
"private boolean skipLimit(Position position, Position last) {\n if (skipLimit != 0 && last != null) {\n return (position.getServerTime().getTime() - last.getServerTime().getTime()) > skipLimit;\n }\n return false;\n}\n"
"public void testSendMail() throws Exception {\n SimpleMailMessage simpleMailMessage = new SimpleMailMessage();\n simpleMailMessage.setFrom(this.senderAddress);\n simpleMailMessage.setTo(this.recipientAddress);\n simpleMailMessage.setSubject(\"String_Node_Str\");\n simpleMailMessage.setText(\"String_Node...
"public void accept(int hash, int pos) {\n final NativeBytes entry = entry(offsetFromPos(pos));\n long keyLen = entry.readStopBit();\n entry.skip(keyLen);\n final long entryTimestamp = entry.readLong();\n if (entryTimestamp >= timeStamp && entry.readByte() == VanillaSharedReplicatedHashMap.this.getIdenti...
"public boolean onTrackballEvent(MotionEvent ev) {\n L(\"String_Node_Str\", ev);\n switch(ev.getAction()) {\n case MotionEvent.ACTION_DOWN:\n poke();\n return true;\n case MotionEvent.ACTION_UP:\n unpoke();\n return true;\n }\n return false;\n}\n"
"protected void initializeScriptContext(Context cx, Scriptable scope) {\n WrapFactory factory = new WrapFactory() {\n\n protected IJavascriptWrapper coreWrapper = new CoreJavaScriptWrapper();\n public Object wrap(Context cx, Scriptable scope, Object obj, Class staticType) {\n Object object =...
"public RowKey readObject(ObjectInput input) throws IOException, ClassNotFoundException {\n input.readInt();\n String tableName = input.readUTF();\n String[] columnNames = (String[]) input.readObject();\n Object[] values = (Object[]) input.readObject();\n return new RowKey(tableName, columnNames, values,...
"public void onClick(View button) {\n if (!button.isEnabled())\n return;\n switch(button.getId()) {\n case R.id.recordButton:\n mRemainingTimeCalculator.reset();\n if (!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {\n mSampleInterrupte...
"public synchronized void init() {\n connsMap = new HashMap<String, IConnection>();\n shadowConnsMap = new HashMap<String, IConnection[]>();\n jobletNonShadowConnsMap = new HashMap<String, IConnection[]>();\n if (process != null) {\n Set<IConnection> allShadowConnections = new HashSet<IConnection>();...
"public void saveAttributes(HashMap<String, String> attributes) {\n StringBuilder sb = new StringBuilder();\n int size = attributes.size();\n if (attributes.containsKey(\"String_Node_Str\")) {\n --size;\n }\n sb.append(size + \"String_Node_Str\");\n for (Map.Entry<String, String> iter : attribu...
"private void onNativeBondStateChanged_private(int previousState, int newState) {\n if (newState == BluetoothDevice.ERROR) {\n P_TaskQueue queue = m_device.getTaskQueue();\n queue.fail(P_Task_Bond.class, m_device);\n queue.fail(P_Task_Unbond.class, m_device);\n } else if (newState == Bluetoot...
"public void visitMethodInsn(int opcode, String owner, String name, String desc, boolean itf) {\n if (pendingCallToConstructorOfSameClass) {\n if (opcode == INVOKESPECIAL && \"String_Node_Str\".equals(name) && owner.equals(classDesc)) {\n mw.visitMethodInsn(opcode, owner, name, desc, itf);\n ...
"public String toString() {\n if (null != getEscapedCodeStr() && null != getProperty(ASTNodeProperties.NODE_ID))\n return \"String_Node_Str\" + getNodeId() + \"String_Node_Str\" + getEscapedCodeStr() + \"String_Node_Str\";\n if (null != getEscapedCodeStr())\n return \"String_Node_Str\" + getEscapedC...
"public int compare(INode node1, INode node2) {\n Map<INode, Integer> mergeInfo1 = node1.getLinkedMergeInfo();\n Map<INode, Integer> mergeInfo2 = node2.getLinkedMergeInfo();\n for (INode mNode : mergeNodes) {\n if (mergeInfo1.get(mNode) != null && mergeInfo2.get(mNode) != null) {\n if (mergeI...
"public void keyPressed(Canvas canvas, KeyEvent event) {\n processKeyEvent(canvas, event, KeyConfigurationEvent.KEY_PRESSED);\n if (!event.isConsumed() && event.getModifiersEx() == 0) {\n int KeybEvent = event.getKeyCode();\n String Component = getFactory().getDisplayName();\n if (!GateKeyboa...
"public static void ensureLists() {\n if (underlyingSetCodesPerFormat.isEmpty()) {\n buildLists();\n }\n}\n"
"public static void CreateSubTotalLabel(LevelViewHandle levelView, CrosstabCellHandle cellHandle) throws SemanticException {\n LabelHandle dataHandle = DesignElementFactory.getInstance().newLabel(null);\n dataHandle.setText(\"String_Node_Str\" + levelView.getCubeLevel().getName() + \"String_Node_Str\" + DISPALY_N...
"public Response updateSimplePushVariation(String id, String simplePushID, SimplePushVariant updatedSimplePushApplication) {\n SimplePushVariant spVariant = (SimplePushVariant) variantService.findByVariantID(simplePushID);\n if (spVariant != null) {\n try {\n validateModelClass(updatedSimplePush...
"private void visitClass(Node classNode, Node parent) {\n checkClassReassignment(classNode);\n ClassDeclarationMetadata metadata = ClassDeclarationMetadata.create(classNode, parent);\n if (metadata == null || metadata.fullClassName == null) {\n cannotConvert(parent, \"String_Node_Str\" + \"String_Node_S...
"static void addEdgeColumn(SqlgGraph sqlgGraph, String schema, String prefixedTable, Map.Entry<String, PropertyType> column) {\n BatchManager.BatchModeType batchModeType = flushAndSetTxToNone(sqlgGraph);\n try {\n Preconditions.checkArgument(prefixedTable.startsWith(SchemaManager.EDGE_PREFIX), \"String_Nod...
"public void testOfferPoll() throws IOException, InterruptedException {\n for (int i = 0; i < 10; i++) {\n boolean result = q.offer(\"String_Node_Str\");\n if (i < 6) {\n assertTrue(result);\n } else {\n assertFalse(result);\n }\n }\n assertEquals(6, q.size());...
"public View newView(Context context, Cursor cursor, ViewGroup parent) {\n ViewHolder viewHolder;\n View view = layoutInflater.inflate(R.layout.list_item_chat_friend_selectable, null);\n holder = new ViewHolder();\n holder.avatarImageView = (RoundedImageView) view.findViewById(R.id.avatar_imageview);\n h...
"public void cleanup() {\n if (registration != null) {\n registration.unregister();\n }\n System.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n System.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n boolean isDead = HyperSqlDbServer.stopServerWithWait(dbId);\n if (isDead) {\n...
"private static void checkStandardColumns(Keyspace keyspace, String expectedColumnFamilyName, RowModel expectedRowModel) throws Error {\n checkNumberOfColumns(keyspace, expectedColumnFamilyName, expectedRowModel);\n List<ColumnModel> expectedColumns = expectedRowModel.getColumns();\n for (ColumnModel expectedC...
"protected final void fetchInfo() {\n try (SQLConnection conn = backend.getSQL()) {\n ResultSet result = conn.prepAndBind(\"String_Node_Str\", this.getIdentifier(), this.type.ordinal()).executeQuery();\n if (result.next()) {\n this.prefix = emptyToNull(result.getString(\"String_Node_Str\"));...
"public void addDownload(final Download download) {\n Torrent torrent = download.getTorrent();\n boolean is_decentralised = false;\n if (torrent != null) {\n is_decentralised = TorrentUtils.isDecentralised(announce_url);\n }\n if (download.getFlag(Download.FLAG_LOW_NOISE) && !is_decentralised) {\n...
"public boolean equals(Object obj) {\n if (obj instanceof SortedIntLongVector) {\n SortedIntLongVector other = (SortedIntLongVector) obj;\n SortedIntLongVector v1 = SortedIntLongVector.getWithNoZeroValues(this);\n SortedIntLongVector v2 = SortedIntLongVector.getWithNoZeroValues(other);\n ...
"public void onEnable() {\n super.onEnable();\n Config.reload();\n PluginManager pm = this.getServer().getPluginManager();\n pm.registerEvents(this.corelistener, this);\n FactionsPlusJail.server = getServer();\n Bridge.init();\n FactionsVersion = (pm.getPlugin(\"String_Node_Str\").getDescription()....
"private static synchronized BlurConfiguration getBlurConfiguration() throws IOException {\n if (_defaultBlurConfiguration == null) {\n _defaultBlurConfiguration = new BlurConfiguration();\n }\n return _blurConfiguration;\n}\n"
"public void renderTab(Tab item, final Object data, final int index) throws Exception {\n final Tabbox tabbox = item.getTabbox();\n final Tabs tabs = tabbox.getTabs();\n final int size = tabbox.getModel().getSize();\n final String tmn = \"String_Node_Str\";\n final Template tm = resolveTemplate(tabbox, i...
"public static synchronized boolean hasOpenResourceManagers(Path file) {\n final Set<ResourceManager> resourceManagers = RESOURCE_MANAGERS.get(file);\n if (resourceManagers == null || resourceManagers.isEmpty()) {\n return false;\n }\n return false;\n}\n"
"public void init() {\n Validate.notNull(FunkyRegistry.INSTANCE).registerProxy(BlockMultipart.class, FunkyCapabilities.STICKY_BLOCK, (world, pos, side) -> {\n TileEntity tile = world.getTileEntity(pos);\n if (tile instanceof TileMultipart) {\n TileMultipart multipart = (TileMultipart) tile;\...
"public static ISessionBean createSessionBean(ServletRequest req, String solutionname, String username, String password, Object[] solutionOpenMethodArgs) throws Exception {\n return HeadlessClientFactoryInternal.createSessionBean(req, solutionname, username, password, solutionOpenMethodArgs);\n}\n"
"public boolean canChoose(UUID sourceControllerId, Game game) {\n int remainingTargets = this.minNumberOfTargets - targets.size();\n if (remainingTargets == 0) {\n return true;\n }\n int count = 0;\n for (Permanent permanent : game.getBattlefield().getActivePermanents(filter, sourceControllerId, g...
"public Expr tableSamplingRatio() {\n return new ConstantExpr(vc, 1.0);\n}\n"
"public PortletPreference[] getDefaultPreferences() {\n if (defaultPreferences == null) {\n PortletDD portletDD = getPortletDefinition();\n PortletPreferencesDD prefsDD = portletDD.getPortletPreferences();\n if (prefsDD != null) {\n List prefs = new ArrayList();\n for (Iter...
"private void store() {\n try {\n ListenerRegistry.getInstance().fireEvent(new InstanceEvent(this.getInstanceUuid(), this.getDisplayName(), this.vmType.getName(), this.getOwner().getNamespace(), null, this.getOwner().getName(), null, this.clusterName, this.partitionName, this.networkBytes, this.blockBytes));\...
"public void doWiFiInit() {\n WifiManager wifiMan = (WifiManager) this.getSystemService(Context.WIFI_SERVICE);\n if (wifi_included && !wifiMan.isWifiEnabled()) {\n wifiMan.setWifiEnabled(true);\n }\n WifiInfo wifiInf = wifiMan.getConnectionInfo();\n HostNetworkConfig.wifiMACaddr = wifiInf.getMacAd...
"private boolean savePost(boolean autoSave) {\n String title = mTitleEditText.getText().toString();\n String password = mPasswordEditText.getText().toString();\n String pubDate = mPubDateText.getText().toString();\n String content = \"String_Node_Str\";\n if (mLocalDraft || mIsNew && !autoSave) {\n ...
"public void showStats() {\n Long algorithmRunTime = null;\n Long overallReasoningTime = null;\n Long instanceCheckReasoningTime = null;\n Long retrievalReasoningTime = null;\n Long subsumptionReasoningTime = null;\n infoArea.setText(\"String_Node_Str\");\n if (config.getLearningAlgorithm().getCurr...
"private void configureResponseRowForViewType(FeedbackQuestionAttributes question, ViewType statisticsViewType, String giver, String recipient, InstructorResultsResponseRow responseRow) {\n switch(statisticsViewType) {\n case QUESTION:\n responseRow.setGiverProfilePictureDisplayed(question.isGiverA...
"public void testIsContainsViewConnectionSchemaString() {\n String schemaName = \"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 Schema schema = null;\n ...
"public static BooleanGrid difference(BooleanGrid d, BooleanGrid e) {\n BooleanGrid result = difference(d, e, d.att);\n if (result != nothingThere && d.att != e.att)\n Debug.e(\"String_Node_Str\" + d.attribute().getMaterial() + \"String_Node_Str\" + e.attribute().getMaterial());\n return difference(d, e...
"public void onChildItemClicked(String idSubscription, String optional_folder_id) {\n if (!shouldDrawerStayOpen())\n mSlidingLayout.closePane();\n startDetailFHolder = new StartDetailFragmentHolder(idSubscription, false, optional_folder_id);\n}\n"
"public boolean a() {\n if (controlPathfinderGoal.moveTo != null && petEntity.canMove()) {\n if (myPet.getSkillSystem().hasSkill(\"String_Node_Str\")) {\n Behavior behaviorSkill = (Behavior) myPet.getSkillSystem().getSkill(\"String_Node_Str\");\n if (behaviorSkill.getLevel() > 0) {\n ...
"public void checkPlayerOfPosition(Player playerOfPosition) {\n if (playerOfPosition != player && movableType.needsPlayersGround() && strategy.getClass() != FleeStrategy.class) {\n setStrategy(new FleeStrategy(this));\n }\n}\n"
"public void new_mode_delete_original_no_timestamps_input_has_right_timestamps() {\n testDateTimeProvider.setTime(actionTime());\n when(updateContext.getAction(update)).thenReturn(Action.DELETE);\n final RpslObject input = new RpslObjectBuilder(TEMPLATE).addAttributeSorted(new RpslAttribute(AttributeType.CREAT...
"public void testGrandTotal1() throws Exception {\n ICubeQueryDefinition cqd = new CubeQueryDefinition(cubeName);\n IEdgeDefinition columnEdge = cqd.createEdge(ICubeQueryDefinition.COLUMN_EDGE);\n IEdgeDefinition rowEdge = cqd.createEdge(ICubeQueryDefinition.ROW_EDGE);\n IDimensionDefinition dim1 = columnEd...
"private void addJoinColumnToInfo(String joinColumn, TableInfo targetTableInfo, List<TableInfo> targetTableInfos, EntityMetadata m) {\n if (!joinColumn.equals(targetTableInfo.getIdColumnName())) {\n if (!targetTableInfos.isEmpty() && targetTableInfos.contains(targetTableInfo)) {\n int idx = targetT...
"public Object buildAggregateFromRow(AbstractRecord databaseRow, Object targetObject, CacheKey cacheKey, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, boolean buildShallowOriginal, AbstractSession executionSession, boolean targetIsProtected) throws DatabaseException {\n if (databaseRow.hasSopO...
"private void populateExtendedAggrInfo(String name, IAggregation aggrFunc, IConfigurationElement elem, AggrFunctionWrapper aggrWrapper) {\n IConfigurationElement[] uiInfo = elem.getChildren(ELEMENT_UIINFO);\n assert (uiInfo != null && uiInfo.length == 1);\n String paramInfo = uiInfo[0].getAttribute(ATTRIBUTE_P...
"String makeChildMemberSql(RolapMember member, Connection jdbcConnection, MemberChildrenConstraint constraint) {\n SqlQuery sqlQuery = newQuery(jdbcConnection, \"String_Node_Str\" + member);\n AggStar aggStar = chooseAggStar(constraint, member);\n constraint.addMemberConstraint(sqlQuery, aggStar, member);\n ...
"public void partBroughtToTop(IWorkbenchPart part) {\n IProcess2 process = getJobFromActivatedEditor(part);\n if (process != null && currentProcess != process) {\n changedProcess = true;\n currentProcess = process;\n Contexts.setTitle(process.getLabel());\n setContextsView(process, par...
"public void keyPressed(KeyEvent e) {\n if (e.getKeyCode() == MenuKey.getMenuKeyCode()) {\n int sx = (scaleWidthRatio == 1.00) ? lastX : (int) Math.floor(lastX * scaleWidthRatio);\n int sy = (scaleHeightRatio == 1.00) ? lastY : (int) Math.floor(lastY * scaleHeightRatio);\n java.awt.Point ev = ne...
"protected void writeContent(int type, String txt, IContent content) {\n if (inForeign) {\n hasPInside = true;\n }\n context.addContainer(false);\n InlineFlag inlineFlag = InlineFlag.BLOCK;\n IStyle computedStyle = content.getComputedStyle();\n IStyle inlineStyle = null;\n if (\"String_Node_...
"public void testBogusDomain() throws Exception {\n OEmbedSource source = new BaseOEmbedSource(getContext(), \"String_Node_Str\", Uri.parse(\"String_Node_Str\")) {\n };\n try {\n source.getThumbnail();\n } catch (HttpException e) {\n if (e.getErrorCode() != HttpException.ERROR_NETWORK)\n ...
"private Object[] getExpandedEntityElements(DataModelMainPage mainPage) {\n TreeViewer elementsViewer = mainPage.getElementsViewer();\n SchemaTreeContentProvider contentProvider = (SchemaTreeContentProvider) elementsViewer.getContentProvider();\n Object[] xsdDeclarations = getChildren(contentProvider.getXsdSch...
"public Object[] getElements(Object input) {\n if (input instanceof Collection) {\n dependenciesByBundle = new HashMap<IBundle, Set<BundleDependency>>();\n Set<IBundle> bundleset = new HashSet<IBundle>((Collection<IBundle>) input);\n if (!\"String_Node_Str\".equals(searchControl.getSearchText()....
"public SortedSet<ContentKey> query(DirectionQuery query) {\n SortedSet<ContentKey> orderedKeys = new TreeSet<>();\n ContentKey startKey = query.getContentKey();\n DateTime startTime = startKey.getTime();\n Collection<ContentKey> queryByTime = queryByTime(query.getChannelName(), startTime, TimeUtil.Unit.DAY...
"private TrigramBuffer loadTrigramBuffer(int firstWordID, int secondWordID) {\n TrigramBuffer trigramBuffer = null;\n BigramProbability bigram = findBigram(firstWordID, secondWordID);\n if (bigram != null) {\n int numberTrigrams = 0, size = 0;\n long position = 0;\n try {\n int ...
"private static void injectInputIntoOperations(String name, AbstractPropertyValue value, Map<String, Operation> operations) {\n if (MapUtils.isEmpty(operations)) {\n return;\n }\n if (value != null && !(value instanceof ScalarPropertyValue)) {\n return;\n }\n String inputName = name.toUpper...