content
stringlengths
40
137k
"public List sourcePortList() {\n try {\n _workspace.getReadAccess();\n Nameable container = getContainer();\n Director excDirector = ((Actor) container).getExecutiveDirector();\n int depthOfDirector = excDirector.depthInHierarchy();\n LinkedList result = new LinkedList();\n ...
"protected Row readNext() throws SQLException {\n Row row = new Row(columnNameToIdxMap, columns.size(), isCaseSensitive, this.quirks);\n for (Column column : columns) {\n row.addValue(column.getIndex(), quirks.getRSVal(rs, column.getIndex() + 1));\n }\n return row;\n}\n"
"public void activate() {\n if (Level > 0) {\n if (Behavior == BehaviorState.Normal) {\n Behavior = BehaviorState.Friendly;\n MPet.getPet().setTarget(null);\n } else if (Behavior == BehaviorState.Friendly) {\n Behavior = BehaviorState.Aggressive;\n } else if (Beh...
"public void doCompleting(Throwable thrown, int result) {\n LangUtil.ProcessController.Thrown any = getThrown();\n if (!any.thrown && (null == thrown) && (0 == result)) {\n return;\n }\n String context = props.mainClass + \"String_Node_Str\" + command + \"String_Node_Str\";\n if (null != thrown) {...
"public void setUp() throws Exception {\n entity = Topic.createNewTopic();\n clearDbTable(entity, sessionFactory);\n}\n"
"protected ChannelSftp openConnectedChannel(int channelId) throws JSchException {\n Session session = openSession();\n Map<Integer, ChannelSftp> channels = threadChannels.get();\n if (channels == null) {\n channels = new HashMap<Integer, ChannelSftp>();\n }\n ChannelSftp channel = channels.get(cha...
"private void renderRemoteLevelElement(final GL gl, RemoteLevelElement element, RemoteLevel level) {\n if (element.getContainedElementID() == -1)\n return;\n int iViewID = element.getContainedElementID();\n gl.glPushName(pickingManager.getPickingID(iUniqueID, EPickingType.REMOTE_LEVEL_ELEMENT, element.g...
"public static ReportItemHandle getBindingHolder(DesignElementHandle handle) {\n if (handle instanceof ReportElementHandle) {\n if (handle instanceof ListingHandle) {\n return (ReportItemHandle) handle;\n }\n ReportItemHandle result = getBindingHolder(handle.getContainer());\n ...
"protected Object getInternal(Data key) {\n final MapService mapService = getService();\n final boolean nearCacheEnabled = mapConfig.isNearCacheEnabled();\n if (nearCacheEnabled) {\n Object cached = mapService.getFromNearCache(name, key);\n if (cached != null) {\n if (NearCache.NULL_OB...
"private void _relationsAndLinks() throws IllegalActionException {\n try {\n if (_subAgents.size() == 0) {\n if (_transitions.size() == 0) {\n Integrator integrator = new Integrator(_container, \"String_Node_Str\");\n Expression expression = new Expression(_container, ...
"private void createStatisticalSection(Composite topComp) {\n statisticalSection = this.createSection(form, topComp, DefaultMessagesImpl.getString(\"String_Node_Str\"), false, null);\n Composite sectionClient = toolkit.createComposite(statisticalSection);\n sectionClient.setLayout(new GridLayout());\n catal...
"private void initAction(int fromSlot, ShortcutType shortcutType, InvTweaksContainerSection destSection) throws Exception {\n this.container = new InvTweaksContainerManager(mc);\n this.fromSection = container.getSlotSection(fromSlot);\n this.fromIndex = container.getSlotIndex(fromSlot);\n this.fromStack = c...
"public org.hl7.fhir.dstu2.model.DocumentManifest.DocumentManifestRelatedComponent convertDocumentManifestRelatedComponent(org.hl7.fhir.dstu3.model.DocumentManifest.DocumentManifestRelatedComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Doc...
"public void newPost() {\n WPMobileStatsUtil.trackEventForWPCom(statEventForNewPost());\n if (WordPress.getCurrentBlog() == null) {\n if (!isFinishing())\n Toast.makeText(this, R.string.blog_not_found, Toast.LENGTH_SHORT).show();\n return;\n }\n Post newPost = new Post(WordPress.get...
"public void init(final IEditorSite site, IEditorInput input) throws PartInitException {\n if (input instanceof TmfEditorInput) {\n fFile = ((TmfEditorInput) input).getFile();\n fTrace = ((TmfEditorInput) input).getTrace();\n input = new FileEditorInput(fFile);\n } else if (input instanceof I...
"private static void openWPCOMURL(Context context, String url, String user) {\n if (context == null) {\n AppLog.e(AppLog.T.UTILS, \"String_Node_Str\");\n return;\n }\n if (TextUtils.isEmpty(url)) {\n AppLog.e(AppLog.T.UTILS, \"String_Node_Str\");\n Toast.makeText(context, context.ge...
"public static org.hl7.fhir.dstu2016may.model.ConceptMap.ConceptMapContactComponent convertConceptMapContactComponent(org.hl7.fhir.dstu3.model.ConceptMap.ConceptMapContactComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2016may.model.ConceptMap.Con...
"public void test_append_countCache0_1() throws Exception {\n LongsSuccinctBitVector sbv = new LongsSuccinctBitVector();\n for (int i = 0; i < LongsSuccinctBitVector.BITS_IN_COUNTCACHE0; i++) {\n sbv.append0();\n Assert.assertEquals(i + 1, sbv.getCountCache0()[0]);\n }\n for (int i = 0; i < Lo...
"public void testObjectToXMLStreamWriterRecord() throws Exception {\n if (XML_OUTPUT_FACTORY != null) {\n StringWriter writer = new StringWriter();\n XMLOutputFactory factory = XMLOutputFactory.newInstance();\n factory.setProperty(factory.IS_REPAIRING_NAMESPACES, new Boolean(false));\n XM...
"public void manageSyntheticAccessIfNecessary(BlockScope currentScope) {\n if (binding.alwaysNeedsAccessMethod()) {\n syntheticAccessor = binding.getAccessMethod(isSuperAccess());\n return;\n }\n if (binding.isPrivate()) {\n if (currentScope.enclosingSourceType() != binding.declaringClass)...
"public static Object getObjectContent(HttpResponse response) throws IllegalStateException, IOException {\n JSONParser parser = new JSONParser();\n InputStream stream = response.getEntity().getContent();\n InputStreamReader is = new InputStreamReader(stream);\n ContainerFactory containerFactory = new Contai...
"private void processAttributes(final String qName, final Attributes atts, final AttributesImpl res) {\n final int attsLen = atts.getLength();\n for (int i = 0; i < attsLen; i++) {\n final String attQName = atts.getQName(i);\n String attValue = getAttributeValue(qName, attQName, atts.getValue(i));\n...
"protected void postRead(DexFile dexFile) {\n int index = getValue();\n if (index >= 0) {\n FieldIdItem fieldId = dexFile.getFieldIdItem(index);\n String fieldName = fieldId.getDesc();\n String className = dexFile.getTypeIdItem(fieldId.getClassIdx()).getDesc();\n setDesc(index + \"Stri...
"public boolean shouldOverrideUrlLoadingNoIntercept(WebView view, final String url) {\n if (url == null)\n return false;\n boolean checkLoginSignup = ((LeanWebView) view).checkLoginSignup();\n ((LeanWebView) view).setCheckLoginSignup(true);\n Uri uri = Uri.parse(url);\n final AppConfig appConfig =...
"public FSEntry getLinkTarget(String[] parentDir) {\n String prefix = parentFileSystem.globalPrefix;\n parentFileSystem.globalPrefix += \"String_Node_Str\";\n try {\n System.err.println(prefix + \"String_Node_Str\" + Util.concatenateStrings(parentDir, \"String_Node_Str\") + \"String_Node_Str\");\n ...
"private static void populateNumericResources(ActivityDictionary AD, Conditions conditions) {\n List<NumericResource> numericResources = conditions.getNumericResources();\n List<ENumericResourceDef> numericResourceDefs = AD.getDefinitions(ENumericResourceDef.class);\n for (ENumericResourceDef numericDef : nume...
"public void normal(Vector3 n) {\n normal(n.getX(), n.getY(), n.getZ(), 0);\n}\n"
"public void onDestroy() {\n getLoaderManager().destroyLoader(ID_RATE_LOADER);\n super.onDestroy();\n}\n"
"public void setImplementedInterfaces(List<ObjectType> implementedInterfaces) {\n if (isConstructor()) {\n for (ObjectType type : implementedInterfaces) {\n registry.registerTypeImplementingInterface(this, type);\n }\n this.implementedInterfaces = ImmutableList.copyOf(implementedInter...
"public void testGetColumn2() {\n CwmZExpression<Double> exp = new CwmZExpression<Double>(SqlPredicate.EQUAL);\n String name = \"String_Node_Str\";\n TdColumn column = getColumn(name);\n TdTable table = getTable(tableName);\n column.setOwner(table);\n Double value = new Double(5.0);\n exp.setOperan...
"private boolean createIfDoesNotExist(CPlayer player) {\n if (enderBars.containsKey(player))\n return false;\n Player bukkitPlayer = player.getBukkitPlayer();\n HashSet<CPlayer> cPlayers = new HashSet<>();\n cPlayers.add(player);\n Point of = Point.of(bukkitPlayer.getLocation());\n of.setY(-300...
"public void setup() throws IOException {\n map1 = newSocketShmIntString((byte) 1, 8076, new ClientPort(8077, \"String_Node_Str\"), new ClientPort(8078, \"String_Node_Str\"), new ClientPort(8079, \"String_Node_Str\"));\n map2 = newSocketShmIntString((byte) 2, 8077, new ClientPort(8078, \"String_Node_Str\"), new C...
"public void testHistoricalOneItem() {\n DateTime historyTime = now.minusYears(1);\n ContentKey oneKey = new ContentKey(historyTime);\n lastContentPath.update(oneKey, channelName, HISTORICAL_FIRST_UPDATED);\n lastContentPath.update(oneKey, channelName, HISTORICAL_LAST_UPDATED);\n ChannelConfig channel = ...
"public void onClick(View v) {\n Intent intent = Util.getFundTreatmentIntent((BaseFragmentActivity) getActivity(), patientObj, new BigDecimal(\"String_Node_Str\"), \"String_Node_Str\", \"String_Node_Str\");\n startActivityForResult(intent, 0);\n}\n"
"public void test() throws IOException, InterruptedException {\n map1.put(1, \"String_Node_Str\");\n map1.put(2, \"String_Node_Str\");\n map1.put(3, \"String_Node_Str\");\n map2.put(5, \"String_Node_Str\");\n map2.put(6, \"String_Node_Str\");\n map1.remove(2);\n map2.remove(3);\n map1.remove(3);...
"public Return traverse() {\n LinkedList<PermissionEntity> entities = new LinkedList<>();\n Set<PermissionEntity> visited = new HashSet<>();\n entities.add(start);\n Return ret = null;\n while (!entities.isEmpty()) {\n PermissionEntity current = entities.removeFirst();\n if (visited.contain...
"private void jumpToQuestion(FormIndex questionIndex) {\n boolean newRepeat = false;\n if (questionIndex.isInForm() && !model.isIndexRelevant(questionIndex))\n throw new IllegalStateException();\n updatePins(questionIndex);\n IFormElement last = model.getForm().getChild(questionIndex);\n if (last ...
"public Object execute(ExecutionEvent event) throws ExecutionException {\n assert (fRoot != null);\n IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();\n if (window == null) {\n return false;\n }\n ISystemRegistry registry = RSECorePlugin.getTheSystemRegistry();\n I...
"public ReactionToIncomingMessage processIncomingMessage(Object message) {\n if (isIncomingMessageValid(message, ChargingStatusReqType.class, chargingStatusRes)) {\n chargingStatusRes.setEVSEID(getCommSessionContext().getACEvseController().getEvseID());\n chargingStatusRes.setSAScheduleTupleID(getCommS...
"public static void process() {\n if (current != null) {\n return;\n }\n boolean doNext;\n do {\n now = Float.MAX_VALUE;\n current = null;\n Arrays.fill(chars, null);\n for (Actor actor : all) {\n if (actor.time < now || actor.time == now && (current == null || ...
"public String identify() {\n if (item == null)\n return \"String_Node_Str\";\n if (item.getTypeId() != 0) {\n if (isUnique()) {\n return \"String_Node_Str\" + NotableManager.getSavedId(this);\n } else if (isItemscript()) {\n return \"String_Node_Str\" + getLore(\"String...
"public static void main(String[] args) {\n try {\n Logging.start(Logging.LEVEL_WARN);\n Map<String, CLIParser.CliOption> options = new HashMap();\n options.put(\"String_Node_Str\", new CLIParser.CliOption(CLIParser.CliOption.OPTIONTYPE.FILE, new File(\"String_Node_Str\")));\n options.put...
"public int getMaxIndex(Spectrum fs, int low, int high) {\n double max = 0;\n int maxIndex = 0;\n int reallow = low == 0 ? 1 : low;\n int realhigh = Math.min(high, fs.getState().length);\n for (int i = reallow; i < realhigh; i++) {\n if (max < fs.getState()[i].abs() && fs.getState()[i].abs() > Mat...
"public void testSMGetHitAllDesc() {\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 for (int i = 0; i < 10; i++) {\n if (i % 2 == 0)\n mc.asyncBopInsert...
"public void finish(ItemRecord[] records, IProgressMonitor monitor) throws IOException, CoreException {\n ItemRecord.clear();\n IFile defFile = ResourceManager.getLibrariesFolder().getFile(DEFINITION_FILE_NAME);\n if (definitionFile != null && definitionFile.exists()) {\n File defintionFile = defFile.ge...
"public void onEventMainThread(UploadService.UploadMediaSuccessEvent event) {\n if (event.mediaModelList != null && !event.mediaModelList.isEmpty()) {\n UploadUtils.onMediaUploadedSnackbarHandler(getActivity(), getActivity().findViewById(R.id.coordinator), false, event.mediaModelList, event.successMessage);\n...
"private void importAPI(String importUrl, File fileName, String user, char[] pass) throws IOException {\n URL url = new URL(importUrl);\n HttpsURLConnection connection = (HttpsURLConnection) url.openConnection();\n connection.setHostnameVerifier(new HostnameVerifier() {\n public boolean verify(String s,...
"static void onActivityResult(BraintreeFragment fragment, int resultCode, Intent data) {\n if (resultCode == Activity.RESULT_OK) {\n if (data.hasExtra(WalletConstants.EXTRA_FULL_WALLET)) {\n fragment.sendAnalyticsEvent(\"String_Node_Str\");\n tokenize(fragment, (FullWallet) data.getParce...
"public String checkItemStatus() {\n List<Integer> planning1 = new ArrayList();\n List<Integer> planning2 = new ArrayList();\n List<Integer> planning3 = new ArrayList();\n List<Integer> planning4 = new ArrayList();\n System.out.println(\"String_Node_Str\" + check);\n System.out.println(\"String_Node_S...
"private void stopRecording() {\n recorder.stop();\n toggleRecording.setEnabled(false);\n toggleRecording.setBackgroundResource(R.drawable.record_complete);\n saveRecording.setEnabled(true);\n enableScreenRotation();\n myProgress.setVisibility(View.INVISIBLE);\n instruction.setText(Localization.get...
"public int run(String[] args) throws Exception {\n Options options = new Options();\n try {\n options.addOption(OPTION_JOB_NAME);\n options.addOption(OPTION_II_NAME);\n options.addOption(OPTION_TABLE_NAME);\n options.addOption(OPTION_OUTPUT_PATH);\n parseOptions(options, args);...
"public void testFindAllBeans() {\n WebResource r = resource().path(\"String_Node_Str\");\n String response = r.type(MediaType.APPLICATION_JSON).get(String.class);\n Assert.assertTrue(response.contains(\"String_Node_Str\"));\n}\n"
"public SDVariable var(String name, INDArray arr) {\n if (variableMap.containsKey(name) && variableMap.get(name).getArr() != null)\n return variableMap.get(name);\n if (name == null || name.length() < 1)\n throw new IllegalArgumentException(\"String_Node_Str\");\n if (arr == null)\n throw ...
"List<BusinessMetadataRecord> executeSearchOnColumns(String column, String searchValue, MetadataSearchTargetType type) {\n List<BusinessMetadataRecord> results = new LinkedList<>();\n Scanner scanner;\n String namespacedSearchValue = namespaceId + KEYVALUE_SEPARATOR + searchValue.toLowerCase();\n if (namesp...
"public boolean put(Numberable key, Object value) {\n int pos = findPosition(key);\n if (array[pos] == key) {\n if (values[pos] == value)\n return false;\n values[pos] = value;\n return true;\n }\n size++;\n if (size * 3 > array.length * 2)\n doubleSize();\n pos ...
"public void testQueueNameForStream() {\n QueueName queueName = QueueName.fromStream(\"String_Node_Str\");\n verifyStreamName(queueName, \"String_Node_Str\");\n queueName = QueueName.fromStream(\"String_Node_Str\");\n verifyStreamName(queueName, \"String_Node_Str\");\n queueName = QueueName.fromStream(\"...
"public boolean onItemUse(ItemStack itemStack, EntityPlayer entityPlayer, World world, int x, int y, int z, int sideHit, float hitVecX, float hitVecY, float hitVecZ) {\n if (world.isRemote) {\n transmuteBlock(itemStack, entityPlayer, world, x, y, z, sideHit);\n }\n return true;\n}\n"
"public E next() {\n if (!this.indexValid && !this.hasNext()) {\n throw new NoSuchElementException();\n }\n this.indexValid = false;\n this.lastReturnedIndex = this.index;\n this.index++;\n return (E) unmaskNull(this.traversalTable[this.lastReturnedIndex]);\n}\n"
"private void setupFor(ProjectModel model, boolean editing) {\n this.model = model;\n this.editing = editing;\n addressEdit.setText(model.address.get());\n titleEdit.setText(model.title.get());\n descriptionEdit.setText(model.memo.get());\n Coin goalCoin = Coin.valueOf(model.goalAmount.get());\n if...
"private void pumpItOut(AdminCommandContext context) {\n String fileName = file_name != null && !file_name.isEmpty() ? file_name : getDefaultBundleName();\n File localFile = new File(fileName.replace('\\\\', '/'));\n Properties props = new Properties();\n File parent = localFile.getParentFile();\n if (pa...
"public JCheckBox getGlobalSearchField() {\n if (globalSearchField == null) {\n globalSearchField = new JCheckBox(I18N.getText(\"String_Node_Str\"), false);\n globalSearchField.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ev) {\n updateFil...
"private void initXmlTreeData(List<String> schemaList, List<HL7FileNode> root, List<HL7TreeNode> treeData) {\n Map<String, HL7TreeNode> mapNodes = new HashMap<String, HL7TreeNode>();\n if (hl7ui != null) {\n if (hl7ui.gethl7Manager() instanceof HL7OutputManager) {\n ((HL7OutputManager) hl7ui.get...
"public static String split(String longName) {\n if (longName == null) {\n return \"String_Node_Str\";\n }\n if (longName.length() < 80) {\n return longName;\n }\n StringBuffer results = new StringBuffer();\n StringTokenizer tokenizer = new StringTokenizer(longName, \"String_Node_Str\", ...
"public View getView(int position, View convertView, ViewGroup parent) {\n final Layoutelements rowItem = getItem(position);\n if (main.aBoolean) {\n View view = convertView;\n final int p = position;\n if (convertView == null) {\n LayoutInflater mInflater = (LayoutInflater) contex...
"public List<SDOType> getControlTypes() {\n List<SDOType> types = new ArrayList<SDOType>();\n Type stringType = typeHelper.getType(\"String_Node_Str\", \"String_Node_Str\");\n Type intType = typeHelper.getType(\"String_Node_Str\", \"String_Node_Str\");\n SDOType quantityType = new SDOType(uri, \"String_Node...
"private synchronized AnyKeyboard getSymbolsKeyboard(int keyboardIndex, int mode) {\n ensureKeyboardsAreBuilt();\n AnyKeyboard keyboard = mSymbolsKeyboardsArray[keyboardIndex];\n if (keyboard == null || keyboard.getKeyboardMode() != mode) {\n switch(keyboardIndex) {\n case SYMBOLS_KEYBOARD_RE...
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n MageObject sourceObject = source.getSourceObject(game);\n if (sourceObject != null && controller != null) {\n TargetCardInLibrary target = new TargetCardInLibrary(StaticFilters.FILTER_CAR...
"public Map<Integer, NodeStats> call() throws Exception {\n List<Integer> nodeIndexes = new ArrayList<Integer>(trees.size());\n for (Data data : DTWorker.this.trainingData) {\n nodeIndexes.clear();\n if (DTWorker.this.isRF) {\n for (TreeNode treeNode : trees) {\n if (treeNo...
"private void expandSomeNodes(RepositoryCheckBoxView view) {\n if (view == null) {\n return;\n }\n final RepositoryNode root = view.getRoot();\n if (root instanceof IProjectRepositoryNode) {\n final IProjectRepositoryNode rootNode = (IProjectRepositoryNode) root;\n final TreeViewer view...
"public static void main(String[] args) throws Exception {\n Logging.start(Logging.LEVEL_WARN);\n Map<String, CliOption> options = new HashMap<String, CliOption>();\n List<String> arguments = new ArrayList<String>(1);\n options.put(\"String_Node_Str\", new CliOption(CliOption.OPTIONTYPE.SWITCH));\n optio...
"public void tickClient() {\n if (isCloudlessStorm())\n return;\n if (particleBehaviorFog == null) {\n particleBehaviorFog = new ParticleBehaviorFog(new Vec3(pos.xCoord, pos.yCoord, pos.zCoord));\n } else {\n if (!Minecraft.getMinecraft().isSingleplayer() || !(Minecraft.getMinecraft().curr...
"public void execute() {\n canExecute();\n if (connectionName == null) {\n final INodeConnector mainConnector;\n EConnectionType connecType;\n if (source.isELTComponent()) {\n connecType = EConnectionType.TABLE;\n } else if (ComponentCategory.CATEGORY_4_CAMEL.getName().equal...
"public boolean hasNext() {\n return this.operationType != DELETE_OPERATION && curIndex + 1 <= recordStr.length() - 1;\n}\n"
"private void removeAccount(ProtocolProviderService protocolProvider) {\n Object selector = this.accountSelectors.get(protocolProvider.getAccountID());\n if (menu instanceof Container)\n ((Container) menu).remove((Component) selectorMenu);\n else\n ((MenuContainer) menu).remove((MenuComponent) se...
"public void lock(Object entity, LockModeType lockMode, Map properties) {\n try {\n verifyOpen();\n if (entity == null) {\n throw new IllegalArgumentException(ExceptionLocalization.buildMessage(\"String_Node_Str\", new Object[] { entity }));\n }\n UnitOfWork uow = getActivePers...
"private void _runSelect(Connection conn, DaoStatement st) throws SQLException {\n Object[][] paramMatrix = st.getParamMatrix();\n int startRow = -1;\n int lastRow = -1;\n if (st.getContext().getResultSetType() == ResultSet.TYPE_SCROLL_INSENSITIVE) {\n Pager pager = st.getContext().getPager();\n ...
"public static ICalculator getGroupCalculator(int interval, Object intervalStart, double intervalRange, int dataType) throws DataException {\n validateInterval(interval, dataType);\n validateIntervalRange(intervalRange);\n try {\n switch(interval) {\n case IGroupDefinition.YEAR_INTERVAL:\n ...
"private Class getClass(DBObject dbObj) {\n String className = (String) dbObj.get(Mapper.CLASS_NAME_FIELDNAME);\n Class c = null;\n if (className != null) {\n try {\n c = Class.forName(className, true, getClassLoaderForClass(className, dbObj));\n } catch (ClassNotFoundException e) {\n ...
"public void clicked(int x, int y, Grid2DSpace space) {\n if ((int) x == 0 || (int) y == 0 || (int) x == w - 1 || (int) y == h - 1)\n return;\n if (!doorname.equals(\"String_Node_Str\") && !doorname.contains(\"String_Node_Str\")) {\n doorname = \"String_Node_Str\" + doorname + \"String_Node_Str\";\n...
"public boolean onOptionsItemSelected(MenuItem item) {\n switch(item.getItemId()) {\n case R.id.actionToggleRound:\n {\n if (mChart.isYLegendRounded())\n mChart.setRoundedYLegend(false);\n else\n mChart.setRoundedYLegend(true);\n ...
"public void shouldDeleteMany2ManyDeepSkippingAssociation() {\n deleteAndPopulateTables(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n Registry.cacheManager().flush(new CacheEvent(\"String_Node_Str\", \"String_Node_Str\"));\n Registry.cacheManager().flush(new CacheEvent(...
"public void onProcessFailed(ExecuteException e) {\n log.error(commandText + \"String_Node_Str\", e);\n}\n"
"public ServiceRegistration[] removeServiceRegistration(IRemoteServiceReference reference) {\n if (getContainerAdapter().ungetRemoteService(reference)) {\n List l = (List) serviceRegistrations.remove(reference.getID());\n if (l != null)\n return (ServiceRegistration[]) l.toArray(new ServiceR...
"public void setFilter(Filter filter) {\n FiltersVector filters = new FiltersVector();\n if (filter != null) {\n filters.add(filter);\n filters.activateFilter(filter, true);\n }\n boolean shouldAppend = false;\n logEntryTable.setFilters(filters, shouldAppend);\n client.setTableFilterLbl(...
"public synchronized void append(String str) throws FileClosedException, IOException {\n if (stale) {\n throw new FileClosedException();\n }\n if (maxBytes > 0 && curBytes >= maxBytes) {\n this.setStale();\n throw new FileClosedException();\n }\n this.lastWrite = new Date();\n thi...
"public void afterComponentAttached(Component comp, Page page) {\n if (comp.getDesktop() != null) {\n final Binder selfBinder = (Binder) comp.getAttribute(BinderImpl.BINDER);\n if (selfBinder == null) {\n final Binder binder = (Binder) comp.getAttribute(BinderImpl.BINDER, true);\n ...
"public void timerEvent() {\n switch(state) {\n case NO_ACTION:\n nothingTodoAction();\n if (state == EMovableState.NO_ACTION)\n strategy.noActionEvent();\n break;\n case PUSHED_AND_WAITING:\n case WAITING_FOR_FREE_TILE:\n IHexMovable mo...
"public static void interpolate(float[] out, float[] in1, float[] in2, int in2_idx, float coef, int length) {\n int i;\n float invcoef;\n invcoef = 1.0f - coef;\n for (i = 0; i < length; i++) {\n out[i] = coef * in1[i] + invcoef * in2[i + in2_idx];\n }\n}\n"
"private void checkFields() {\n String projectLabel = projectLabelText.getText();\n checkEnable();\n boolean enableProjectLabel = false;\n if (urlText.getText().trim().length() == 0) {\n setErrorMessage(Messages.getString(\"String_Node_Str\"));\n } else if (!this.enableSandboxProject) {\n s...
"public void afterComponentAttached(Component comp, Page page) {\n if (comp.getDesktop() != null) {\n final Binder selfBinder = (Binder) comp.getAttribute(BinderImpl.BINDER);\n if (selfBinder == null) {\n final Binder binder = (Binder) comp.getAttribute(BinderImpl.BINDER, true);\n ...
"public void cleanResources(ConstructorFunction<Object, Throwable> responseCtor, ClientConnection connection) {\n final Iterator<Map.Entry<Integer, ClientInvocation>> iter = callIdMap.entrySet().iterator();\n while (iter.hasNext()) {\n final Map.Entry<Integer, ClientInvocation> entry = iter.next();\n ...
"protected void doCommand(String name, Object value) throws Exception {\n if (!\"String_Node_Str\".equals(name) || !(value instanceof Integer)) {\n return;\n }\n int instances = (Integer) value;\n LOG.info(\"String_Node_Str\" + flowletContext + \"String_Node_Str\" + instances);\n flowletContext.se...
"public String apply(Pair t) {\n if (t.value.getClass().equals(String.class)) {\n return t.key + \"String_Node_Str\" + \"String_Node_Str\" + t.value.toString() + \"String_Node_Str\";\n }\n if (t.value.getClass().equals(Integer.class)) {\n return t.key + \"String_Node_Str\" + t.value.toString();\n...
"private WSTransformerV2E createTransformer(String jobName, String jobVersion, JobOptionsDialog dialog) {\n String itemstr = \"String_Node_Str\";\n if (dialog.isExchange()) {\n itemstr = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n } else {\n itemstr = \"String_Node_Str\" + ...
"private void installDefaultColorPalettes() {\n Path sourceBasePath = ResourceInstaller.findModuleCodeBasePath(BeamUiActivator.class);\n final Path auxdataDir = getColorPalettesDir();\n final ResourceInstaller resourceInstaller = new ResourceInstaller(sourceBasePath, \"String_Node_Str\", auxdataDir);\n Prog...
"public AvailableStatus requestFileInformation(DownloadLink downloadLink) throws IOException, PluginException {\n setBrowserExclusive();\n br.setDebug(true);\n return requestFileInformationInternal(downloadLink);\n}\n"
"protected <T> void callListener(final RestRequest<T> request, final RestResult<T> result) {\n if (result != null) {\n if (result.hasSession()) {\n SessionListener sessionListener = request.getSessionListener();\n if (sessionListener != null) {\n Session session = result.g...
"void dumpPackagesLPr(PrintWriter pw, String packageName, ArraySet<String> permissionNames, DumpState dumpState, boolean checkin) {\n final SimpleDateFormat sdf = new SimpleDateFormat(\"String_Node_Str\");\n final Date date = new Date();\n boolean printedSomething = false;\n List<UserInfo> users = getAllUse...
"public void beginAccepting() {\n if (this.cloudNode != null) {\n stopAccepting();\n }\n this.cloudNode = new IndicatorServer(this.config.getPort());\n this.cloudNode.start();\n this.cloudNode.addListener((IndicatorConnectionListener) EncogWorkBench.getInstance().getMainWindow().getConnectionsTab(...
"public IResultSet executeQuery() throws OdaException {\n logger.logp(java.util.logging.Level.FINE, Statement.class.getName(), \"String_Node_Str\", \"String_Node_Str\");\n assertNotNull(preStat);\n if (this.cachedResultSet != null) {\n IResultSet ret = this.cachedResultSet;\n this.cachedResultSet...