content
stringlengths
40
137k
"public final void addNotificationListener(final ObjectName objectName, final ObjectName objectName1, final NotificationFilter notificationFilter, final Object obj) throws InstanceNotFoundException {\n if (objectName == null)\n throw new InstanceNotFoundException();\n DynamicInterceptor.ReplicationInfo res...
"public void processStep3(final xtreemfs_mkvolRequest rqArgs, final String volumeId, final MRCRequest rq, RPCResponse<Long> rpcResponse) {\n try {\n rpcResponse.get();\n master.getVolumeManager().createVolume(master.getFileAccessManager(), volumeId, rqArgs.getVolume_name(), (short) rqArgs.getAccess_con...
"private void triangulateInitialSeed(CameraView origin, CameraMotion edge) {\n CameraView viewA = edge.viewSrc;\n CameraView viewB = edge.viewDst;\n Vector3D_F64 arrowA = new Vector3D_F64();\n Vector3D_F64 arrowB = new Vector3D_F64();\n Se3_F64 viewAtoB = new Se3_F64();\n viewA.viewToWorld.concat(view...
"private void removeChunks(Set<Integer> chunkIDs) {\n this.chunkIdMap.keySet().removeAll(chunkIDs);\n}\n"
"private TriggerGroupWrapper getOrCreateTriggerGroupWrapper(String groupName) throws JobPersistenceException, ResourceException {\n synchronized (lock) {\n if (!setAccessor()) {\n throw new JobPersistenceException(\"String_Node_Str\");\n }\n Map<String, Object> map;\n map = rea...
"public boolean prefire() throws IllegalActionException {\n if (_random.nextDouble() < ((DoubleToken) (trueProbability.getToken())).doubleValue()) {\n _current = true;\n } else {\n _current = false;\n }\n return super.prefire();\n}\n"
"public IRequestHandler onException(RequestCycle cycle, Exception ex) {\n Throwable th = null;\n if ((th = Exceptions.findCause(ex, OSecurityException.class)) != null || (th = Exceptions.findCause(ex, OValidationException.class)) != null || (th = Exceptions.findCause(ex, OSchemaException.class)) != null || (th = ...
"private boolean multicastFetch(long now) {\n if (nextAllowedMulticastTime < now && !ConnectionSettings.DO_NOT_MULTICAST_BOOTSTRAP.getValue()) {\n LOG.trace(\"String_Node_Str\");\n PingRequest pr = pingRequestFactory.createMulticastPing();\n multicastService.get().send(pr);\n nextAllowedM...
"public final Filter simpleLogicalFilter() throws RecognitionException {\n Filter filter = null;\n Token o = null;\n Filter a = null;\n Filter b = null;\n Filter s = null;\n try {\n int alt105 = 2;\n int LA105_0 = input.LA(1);\n if ((LA105_0 == ID || LA105_0 == NOT)) {\n ...
"public void processingInstruction(final String target, final String data) throws SAXException {\n String d = data;\n if (target.equals(PI_WORKDIR_TARGET)) {\n if (workdir != null) {\n try {\n if (!OS_NAME.toLowerCase().contains(OS_NAME_WINDOWS)) {\n d = workdir...
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n if (controller == null) {\n return false;\n }\n int amount = (new ManacostVariableValue()).calculate(game, source, this);\n if (amount > 0) {\n LinkedList<Permanent> sacrific...
"private ContentInfo processBytes(byte[] bytes, ContentInfo contentInfo) {\n Object val = matcher.extractValueFromBytes(offset, bytes);\n if (val == null) {\n return null;\n }\n if (testValue != null) {\n val = matcher.isMatch(testValue, andValue, unsignedType, val, offset, bytes);\n if...
"private static Color getFromCss() {\n String css = getGtkThemeCss();\n if (css != null) {\n String[] nodes;\n Tray tray = (Tray) SystemTray.get().getMenu();\n if (tray instanceof _GtkStatusIconNativeTray) {\n nodes = new String[] { \"String_Node_Str\", \"String_Node_Str\", \"Strin...
"private static String encodePath(String path) throws UnsupportedEncodingException {\n StringBuilder buf = new StringBuilder();\n if (path.startsWith(\"String_Node_Str\")) {\n buf.append('/');\n }\n boolean first = true;\n for (String pathElement : path.split(\"String_Node_Str\")) {\n if (f...
"WifiConfiguration getConfig() {\n if (mAccessPoint != null && mAccessPoint.networkId != -1 && !edit) {\n return null;\n }\n WifiConfiguration config = new WifiConfiguration();\n if (mAccessPoint == null) {\n config.SSID = AccessPoint.convertToQuotedString(mSsid.getText().toString());\n ...
"public void changedPlatformTarget() throws InterruptedException, IOException {\n assumeTrue(\"String_Node_Str\", NdkCxxPlatforms.isSupportedConfiguration(getNdkRoot(), cxxRuntime));\n assumeThat(\"String_Node_Str\", arch, not(anyOf(equalTo(\"String_Node_Str\"), equalTo(\"String_Node_Str\"))));\n ProjectWorksp...
"public boolean requestNewReceivingAddress(int hdAccountId) {\n int issuedIndex = this.issuedIndex(hdAccountId, AbstractHD.PathType.EXTERNAL_ROOT_PATH);\n final boolean[] result = { false };\n if (issuedIndex > HDAccount.MaxUnusedNewAddressCount) {\n String sql = \"String_Node_Str\" + \"String_Node_Str\...
"protected IStatus run(final IProgressMonitor monitor) {\n Diagnostician diagnostician = new Diagnostician() {\n public String getObjectLabel(EObject eObject) {\n String text = labelProvider != null && eObject.eIsProxy() ? ((InternalEObject) eObject).eProxyURI().toString() : labelProvider.getText(e...
"public V remove(Object key) {\n return _m.remove(key);\n}\n"
"private String execute(final String command, final String[] responseHeaders, final boolean checkAttached, boolean withoutTimeout) throws ConnectorException {\n ConnectorUtils.checkNotNull(\"String_Node_Str\", command);\n ConnectorUtils.checkNotNull(\"String_Node_Str\", responseHeaders);\n if (checkAttached) {...
"private void preOrder(Map<Integer, Double> importances, Node node) {\n if (node == null) {\n return;\n }\n computeImportance(importances, node, rootWgtCnt);\n preOrder(importances, node.getLeft(), rootWgtCnt);\n preOrder(importances, node.getRight(), rootWgtCnt);\n}\n"
"public Integer call() throws Exception {\n TableView table = getRealComponent();\n TableColumn column = null;\n List<String> path = StringParsing.splitToList(colPath, TestDataConstants.PATH_CHAR_DEFAULT, TestDataConstants.ESCAPE_CHAR_DEFAULT, false);\n ObservableList<TableColumn> columns;\n if (colPath....
"public <T extends Serializable> CloseableIterable<OptionalWithCause<T>> list(Class<T> objectClass) throws RequestNotValidException, GenericException, NotFoundException, AuthorizationDeniedException {\n if (Representation.class.equals(objectClass)) {\n return listRepresentations(objectClass);\n } else if (...
"void mapEmbeddedFromDBObject(BasicDBObject dbObject, MappedField mf, Object entity) {\n String name = mf.getName();\n Class fieldType = mf.getType();\n try {\n if (mf.isMap()) {\n Map map = (Map) tryConstructor(HashMap.class, mf.getCTor());\n if (dbObject.containsField(name)) {\n ...
"public static Request parse(final byte[] bytes) throws ClassNotFoundException, UnsupportedVersionException {\n ByteBuffer buff = ByteBuffer.wrap(bytes);\n final byte ver = buff.get();\n final Version version = Version.get(ver);\n if (version.ordinal() != Version.v1.ordinal() && version.ordinal() != Version...
"public void onSuccessfulSearch() {\n app.getSql().addPreviousGallerySearch(mQuery);\n if (mSearchAdapter == null) {\n mSearchAdapter = new SearchAdapter(getActivity(), app.getSql().getPreviousGallerySearches(mQuery), DBContracts.GallerySearchContract.COLUMN_NAME);\n mSearchView.setSuggestionsAdapte...
"private float distanceToCamera(Chunk chunk) {\n Vector3f result = new Vector3f((chunk.getPos().x + 0.5f) * Chunk.SIZE_X, 0, (chunk.getPos().z + 0.5f) * Chunk.SIZE_Z);\n Vector3f cameraPos = CoreRegistry.get(WorldRenderer.class).getActiveCamera().getPosition();\n result.x -= cameraPos.x;\n result.z -= camer...
"private int updateSystemUiVisibilityLw() {\n if (mFocusedWindow == null) {\n return 0;\n }\n if (mFocusedWindow.getAttrs().type == TYPE_KEYGUARD && mHideLockScreen == true) {\n return 0;\n }\n int tmpVisibility = mFocusedWindow.getSystemUiVisibility() & ~mResettingSystemUiFlags & ~mForceCl...
"public static Object get(String key) {\n Object value = storage.get().get(key);\n if (REQUEST_ID.equals(key)) {\n if (value == null) {\n return \"String_Node_Str\";\n }\n }\n return value;\n}\n"
"public void testSelectOverloadNoMatch2() throws TypeMismatchException {\n exception.expect(TypeMismatchException.class);\n FunctionType intFn = makeSimpleFT(Types.F_INT);\n FunctionType stringFn = makeSimpleFT(Types.F_STRING);\n FnID intFnID = new FnID(\"String_Node_Str\", \"String_Node_Str\");\n FnID s...
"public void testLocateWithoutMethods() throws Exception {\n Object h = new Object();\n assertNull(locator.findNavigationCase(h, null, event(\"String_Node_Str\", \"String_Node_Str\")));\n assertNull(locator.findNavigationCase(h, new Method[] {}, event(\"String_Node_Str\", \"String_Node_Str\")));\n}\n"
"public void run() {\n int w = glCanvas.toRawPixel(pathway.getWidth());\n int h = glCanvas.toRawPixel(pathway.getHeight());\n minSizeComposite.setMinSize(w, h);\n}\n"
"private void placeComponents() {\n cmpContainer = new Composite(shell, SWT.NONE);\n {\n GridLayout glDialog = new GridLayout(3, false);\n glDialog.marginWidth = 6;\n glDialog.marginHeight = 6;\n glDialog.horizontalSpacing = 5;\n glDialog.verticalSpacing = 2;\n cmpContain...
"private void editAccessRule() {\n if (getAccessRulesPane().getAccessRulesTable().getSelectedRowCount() < 1) {\n displayWarning(ResourceUtil.getString(\"String_Node_Str\"));\n } else {\n try {\n DefaultMutableTreeNode node = (DefaultMutableTreeNode) getAccessRulesPane().getAccessRulesTree...
"private boolean onPerson(long person) {\n Object[] values = ABRecord_valuesForProperties(person, ABPERSON_PROPERTIES);\n String displayName = getDisplayName(values);\n if ((displayName.length() != 0) && (query.matcher(displayName).find() || matches(values))) {\n List<ContactDetail> contactDetails = get...
"protected void startDiagonalCell(ICellContent cell) {\n String imgUri = diagonalCellImageMap.get(cell.getInstanceID().getComponentID());\n if (imgUri == null) {\n DiagonalLineImage imageCreater = new DiagonalLineImage();\n imageCreater.setDiagonalLine(cell.getDiagonalNumber(), cell.getDiagonalStyle...
"public boolean shouldSideBeRendered(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5) {\n return true;\n}\n"
"public TransformedData applyTransformation(final Transformation transformation, final Dictionary microaggregationDictionary) {\n microaggregationDictionary.definalizeAll();\n int initialSize = (int) (inputGeneralized.getDataLength() * 0.01d);\n Transformer transformer = new Transformer(inputGeneralized.getArr...
"private void callListenerOnRelease(Key key, int primaryCode, boolean withSliding) {\n final boolean ignoreModifierKey = mIgnoreModifierKey && key.isModifier();\n if (DEBUG_LISTENER) {\n Log.d(TAG, \"String_Node_Str\" + KeyDetector.printableCode(primaryCode) + \"String_Node_Str\" + withSliding + \"String_N...
"public void start() {\n if (isStarted) {\n return;\n }\n if (parent != null && !parent.isStarted()) {\n parent.start();\n }\n if (isVisible) {\n ContentEmitterUtil.startContent(content, emitter);\n }\n isStarted = true;\n flushUnStartedChildren();\n}\n"
"public int getMarginStart() {\n if (startMargin != DEFAULT_MARGIN_RELATIVE)\n return startMargin;\n switch(layoutDirection) {\n case View.LAYOUT_DIRECTION_RTL:\n return rightMargin;\n case View.LAYOUT_DIRECTION_LTR:\n default:\n return leftMargin;\n }\n}\n"
"public void run(Context context) throws IOException, InterruptedException {\n MapReduceClassLoader classLoader = MapReduceClassLoader.getFromConfiguration(context.getConfiguration());\n ClassLoader weakReferenceClassLoader = new WeakReferenceDelegatorClassLoader(classLoader);\n BasicMapReduceTaskContext basic...
"public Pair<double[], double[]> getFitness(GameState gs) {\n double[] fitness = new double[] { normalize(task.getHarvestingEfficiency(), maxCycles * task.getResourceGainValue()), normalize(task.getBaseUpTime(), maxCycles), normalize(task.getAverageUnitDifference(), pgs.getHeight() * pgs.getWidth()) };\n Pair<dou...
"public void launchModel(String mode, boolean userPased) {\n if (Activator.isSpecManagerInstantiated()) {\n Spec spec = Activator.getSpecManager().getSpecLoaded();\n if (spec == null || spec.getStatus() != IParseConstants.PARSED) {\n if (mode == TLCModelLaunchDelegate.MODE_MODELCHECK) {\n ...
"public Reader getReader(String templateName) throws LoaderException {\n StringBuilder path = new StringBuilder(\"String_Node_Str\");\n if (getPrefix() != null) {\n path.append(getPrefix());\n if (!getPrefix().endsWith(String.valueOf('/'))) {\n path.append('/');\n }\n }\n Str...
"public DTab createDTab(OLATResourceable ores, OLATResourceable repoOres, String title) {\n if (dtabs.size() >= getMaxTabs()) {\n getWindowControl().setError(translate(\"String_Node_Str\"));\n return null;\n }\n DTabImpl dt = new DTabImpl(ores, repoOres, title, getWindowControl());\n return dt...
"public void mouseDown(MouseEvent e) {\n IndicatorUnit indicatorUnit = (IndicatorUnit) ((Label) e.getSource()).getData();\n IndicatorOptionsWizard wizard = new IndicatorOptionsWizard(indicatorUnit);\n String href = FormEnum.getFirstFormHelpHref(indicatorUnit);\n OpeningHelpWizardDialog optionDialog = new Op...
"public boolean next() {\n iIndex++;\n try {\n if (subEdgeCursor != null) {\n if (hasNext(subEdgeCursor)) {\n return true;\n }\n lstBreaks.add(Integer.valueOf(iIndex));\n subEdgeCursor.first();\n return mainEdgeCursor.next();\n }\...
"public void done(List<AVIMMessage> serverMessages, AVIMException e) {\n if (e != null) {\n if (continuousMessages.size() > 0) {\n callback.internalDone(continuousMessages, null);\n } else {\n callback.internalDone(e);\n }\n } else {\n if (serverMessages == null) ...
"public void testDelete() throws Exception {\n expect(mockConnection.getBlobStore()).andReturn(mockStore);\n expect(mockStore.getId()).andReturn(blobStoreUri);\n expect(mockConnection.getFileSystem()).andReturn(mockFs).times(2);\n expect(mockFs.delete((Path) anyObject(), anyBoolean())).andReturn(true);\n ...
"public static String getSysAttrValue(MRCConfig config, StorageManager sMan, OSDStatusManager osdMan, String path, FileMetadata file, String keyString) throws DatabaseException, UserException, JSONException, UnknownUUIDException {\n if (keyString.startsWith(POLICY_ATTR_PREFIX.toString() + \"String_Node_Str\"))\n ...
"private void loadColumnConfig() throws IOException {\n columnConfigList = CommonUtils.loadColumnConfigList(new Path(CommonUtils.getLocalModelSetPath(otherConfigs), Constants.LOCAL_COLUMN_CONFIG_JSON).toString(), SourceType.LOCAL, false);\n}\n"
"protected void agents() {\n addAgent(new TestPoliticalAgent(20, 2, AgentType.AC, 0.0, 0.5));\n addAgent(new TestPoliticalAgent(20, 2, AgentType.AC, 0.0, 1.0));\n addAgent(new TestPoliticalAgent(20, 2, AgentType.AC, 0.5, 0.0));\n addAgent(new TestPoliticalAgent(20, 2, AgentType.AC, 1.0, 1.0));\n addAgent...
"public void rollbackQueue() {\n if (removed) {\n factory.node.blockingQueueManager.rollbackPoll(name, key);\n }\n}\n"
"public static String getDefaultTmpPath(String propName) throws IOException {\n String blurHomeDir = getBlurHomeDir();\n File tmp;\n if (blurHomeDir == null) {\n tmp = getTmpDir();\n LOG.info(\"String_Node_Str\", tmp);\n } else {\n tmp = new File(blurHomeDir, \"String_Node_Str\");\n ...
"private Entity createEntityFromLdapEntry(Object parentDO, String propName, LdapEntry ldapEntry, List<String> propNames) throws WIMException {\n String outEntityType = ldapEntry.getType();\n Entity outEntity = null;\n if (outEntityType != null) {\n if (outEntityType.equalsIgnoreCase(SchemaConstants.DO_P...
"protected String getMonitoringAgent(Map parameters) {\n String autId = (String) parameters.get(AutConfigConstants.AUT_ID);\n MonitoringDataStore mds = MonitoringDataStore.getInstance();\n boolean duplicate = MonitoringUtil.checkForDuplicateAutID(autId);\n if (!duplicate) {\n mds.putConfigMap(autId, ...
"public org.hl7.fhir.dstu2.model.DeviceMetric.DeviceMetricCalibrationComponent convertDeviceMetricCalibrationComponent(org.hl7.fhir.dstu3.model.DeviceMetric.DeviceMetricCalibrationComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.DeviceMetri...
"private void validate(String currentName) {\n boolean enabled = false;\n String msg = null;\n if (!Pattern.matches(\"String_Node_Str\", currentName)) {\n msg = \"String_Node_Str\";\n } else if (currentName != null && !keyNames.contains(currentName.toUpperCase())) {\n enabled = true;\n ...
"public void update() {\n if (isDead) {\n return;\n }\n if (ghostMode) {\n ghostMode();\n } else if (confused) {\n blink();\n } else {\n snake.reset();\n }\n}\n"
"private void resetActionStatus() {\n refreshExplorerAction.setEnabled(refreshExplorerAction.isEnabled());\n useLibraryAction.setEnabled(useLibraryAction.isEnabled());\n deleteResourceAction.setEnabled(deleteResourceAction.isEnabled());\n addResourceAction.setEnabled(addResourceAction.isEnabled());\n ren...
"static final CheckedListenableFuture<ServiceConfiguration> stopTransitionChain(final ServiceConfiguration config) {\n Component.State currState = config.lookupState();\n if (State.ENABLED.equals(currState)) {\n Callable<CheckedListenableFuture<ServiceConfiguration>> transition = Automata.sequenceTransitio...
"private void checkAdd(Item newVal, Item other, boolean replace) {\n if (!(newVal instanceof Element) && !(newVal instanceof Text) && !(newVal instanceof CData) && !(newVal instanceof Comment) && !(newVal instanceof EntityReference) && !(newVal instanceof Binary) && !(newVal instanceof ProcessingInstruction))\n ...
"private void debug(String clsName, byte[] classData) {\n clsName = clsName.replace('.', '/');\n clsName = clsName.replace('\\\\', '/');\n int index = clsName.lastIndexOf(\"String_Node_Str\");\n if (index >= 0) {\n clsName = clsName.substring(index + 1);\n }\n try {\n String rootPath = S...
"protected PasswordAuthentication getPasswordAuthentication() {\n final String nexusPassStr = getNexusPassStr();\n return new PasswordAuthentication(getNexusUser(), nexusPassStr != null ? nexusPassStr.toCharArray() : new char[0]);\n}\n"
"private void buildTrash() {\n trashItem = new FileTreeItem(new LeafItemWidget(\"String_Node_Str\", \"String_Node_Str\"));\n this.addItem(trashItem);\n DOM.setStyleAttribute(trashItem.getElement(), \"String_Node_Str\", \"String_Node_Str\");\n}\n"
"public void handle(Message inputMessage, ISendMessageCallback callback, boolean unitOfWorkBoundaryReached) {\n MessageHeader header = inputMessage.getHeader();\n log(LogLevel.INFO, String.format(\"String_Node_Str\", inputMessage.getClass().getSimpleName(), header.getSequenceNumber(), header.isUnitOfWorkLastMessa...
"private void showQuickTextKeyPopupList(QuickTextKey key) {\n if (mQuickTextKeyDialog == null) {\n String[] names = key.getPopupListNames();\n final String[] texts = key.getPopupListValues();\n final int N = names.length;\n List<Map<String, ?>> entries = new ArrayList<Map<String, ?>>();\n...
"protected List<XmlAdapter> getAdapters() throws JPARSException {\n if (adapters != null) {\n return adapters;\n }\n adapters = new ArrayList<XmlAdapter>();\n try {\n for (ClassDescriptor desc : this.getServerSession().getDescriptors().values()) {\n if (!desc.isAggregateCollectionDe...
"public static String getSysAttrValue(MRCConfig config, StorageManager sMan, OSDStatusManager osdMan, String path, FileMetadata file, String keyString) throws DatabaseException, UserException, JSONException, UnknownUUIDException {\n if (keyString.startsWith(POLICY_ATTR_PREFIX.toString() + \"String_Node_Str\"))\n ...
"public static void reviewJSON(String token) {\n Person person = context.getPerson();\n notFoundIfNull(token);\n Submission sub = subRepo.findSubmissionByEmailHash(token);\n notFoundIfNull(sub);\n if (person != null)\n Logger.info(\"String_Node_Str\", person.getFormattedName(NameFormat.FIRST_LAST)...
"public static Test suite(boolean defaultOnly) {\n TestSuite suite = new TestSuite(AllBuildsTests.class.getName());\n suite.addTestSuite(BuildModelManagerTest.class);\n suite.addTestSuite(JUnitResultGeneratorTest.class);\n suite.addTestSuite(RefreshOperationTest.class);\n suite.addTestSuite(BuildsUrlHand...
"public boolean readBoolean() throws IOException {\n if (this.position < this.end) {\n return this.memory[this.position++] != 0;\n } else {\n throw new EOFException();\n }\n}\n"
"public void fromBytes(ByteBuf buf) {\n int size = buf.readInt();\n destinationList = new ArrayList<TeleportDestinationClientInfo>(size);\n for (int i = 0; i < size; i++) {\n destinationList.add(new TeleportDestination(buf));\n }\n}\n"
"public static void main(String[] args) {\n DFAAppInfo program = new DFAAppInfo(new DFAClassInfo());\n program.parseOptions(args);\n try {\n program.load();\n } catch (IOException exc) {\n exc.printStackTrace();\n }\n ReceiverTypes rt = new ReceiverTypes();\n program.setReceivers(prog...
"public void fire() throws IllegalActionException {\n try {\n _workspace.getReadAccess();\n for (Object parameterObject : attributeList()) {\n if (parameterObject instanceof PortParameter) {\n ((PortParameter) parameterObject).update();\n }\n } finally {\n ...
"public void onServiceConnected(ComponentName name, IBinder service) {\n binder = (NetworkComBinder) service;\n networkBound = true;\n tv.append(\"String_Node_Str\");\n binder.registerMessenger(eventMessenger);\n binder.ConnectToServer();\n timer.schedule(new TimerTask() {\n public void run() {...
"private <T extends AbstractSchema> T getSchema(final String schemaName, final Class<T> reference) {\n T schema = null;\n if (StringUtils.isNotBlank(schemaName)) {\n schema = schemaDAO.find(schemaName, reference);\n if (schema == null) {\n LOG.debug(\"String_Node_Str\", schemaName);\n ...
"public void run() {\n for (Enumeration<?> e = properties.propertyNames(); e.hasMoreElements(); ) {\n String propertyName = (String) e.nextElement();\n String value = properties.getProperty(propertyName);\n binder.bind(Key.get(String.class, new NamedImpl(propertyName))).toInstance(value);\n }...
"public void setPosition(Vector3 position) {\n this.position.set(position);\n polyhedron.setPosition(position);\n getLocalTransform().reset().rotate(Vector3.AXIS_X, polyhedron.getRotationX()).rotate(Vector3.AXIS_Z, polyhedron.getRotationZ()).rotate(Vector3.AXIS_Y, polyhedron.getRotationY()).translate(getPositi...
"private void restoreState(Bundle savedInstanceState) {\n progressbar_text = savedInstanceState.getString(PROGRESSBAR_TEXT, \"String_Node_Str\");\n provider_name = savedInstanceState.getString(Provider.NAME, \"String_Node_Str\");\n selected_provider = savedInstanceState.getParcelable(Provider.KEY);\n if (fr...
"public static void main(String[] args) {\n InvertBinaryTree test = new InvertBinaryTree();\n TreeNode t = new TreeNode(4);\n Queue<TreeNode> s = new LinkedList<TreeNode>();\n s.offer(t);\n int[] arr = new int[] { 4, 2, 7, 1, 3, 6, 9 };\n TreeNode root = TreeNodeHelper.init(arr);\n test.invertTree(...
"public void onClose(final AjaxRequestTarget target) {\n target.add(container);\n if (modalResult) {\n getSession().info(getString(\"String_Node_Str\"));\n }\n setResponsePage(Roles.class);\n}\n"
"int reserveDocId(SessionExecutor sessionExecutor, int neededIds) {\n int firstFreeId = info.getAndAddLastUsedId(neededIds) + 1;\n Future<?> blocker = reserveMoreIdsIfNeeded(collection, info);\n if (blocker == null) {\n LOGGER.trace(\"String_Node_Str\", neededIds, collection);\n } else {\n Lon...
"private void editDriver() {\n if (driverViewer.getTable().getSelectionIndex() >= 0 && driverViewer.getTable().getSelectionIndex() < driverViewer.getTable().getItemCount()) {\n EditJdbcDriverDialog dlg = new EditJdbcDriverDialog(getShell());\n Object obj = driverViewer.getTable().getItem(driverViewer.g...
"public DataSet evaluate(DataSetDefinition dataSetDefinition, EvaluationContext context) {\n context = ObjectUtil.nvl(context, new EvaluationContext());\n if (context.getBaseCohort() == null) {\n context.setBaseCohort(Context.getPatientSetService().getAllPatients());\n }\n MapDataSet data = new MapDa...
"public void applyPattern(String pattern) {\n fPattern = pattern;\n int dot = pattern.indexOf('.');\n if (dot == -1) {\n dot = pattern.length();\n }\n super.applyPattern(quoteSpecificTags(pattern.substring(0, dot), true));\n fSubSecPattern = quoteSpecificTags(pattern.substring(dot), false);\n}\...
"private void customizeViewContent() {\n String tmp;\n if (mWhichDialog == DIALOG_RECEIVE_ONGOING || mWhichDialog == DIALOG_RECEIVE_COMPLETE_SUCCESS) {\n mLine1View = (TextView) mView.findViewById(R.id.line1_view);\n tmp = getString(R.string.download_line1, mTransInfo.mDeviceName);\n mLine1Vi...
"protected void splitChromosomes(Configuration hConf) throws URISyntaxException, IOException {\n parseDictFile(hConf);\n if (nReduces == 0)\n reduces = (int) (1.75 * nodes * reducerContainersPerNode);\n else\n reduces = nReduces;\n int tmpReduces = reduces + 1;\n Logger.DEBUG(\"String_Node_...
"private void prepareForWrite(List<Annotation> annotations) {\n annotationBag = new HashMap<Class, Annotation>();\n for (Annotation annotation : annotations) {\n if (combinationManager.containsClass(annotation.annotationType())) {\n annotationBag.put(annotation.annotationType(), annotation);\n ...
"public IPAddressVO associateIPToGuestNetwork(long ipId, long networkId, boolean releaseOnFailure) throws ResourceAllocationException, ResourceUnavailableException, InsufficientAddressCapacityException, ConcurrentOperationException {\n Account caller = CallContext.current().getCallingAccount();\n Account owner = ...
"private static void printTargets(final Project project, final Vector<String> names, final Vector<String> descriptions, final Vector<Enumeration<String>> dependencies, final String heading, final int maxlen) {\n final String lSep = System.getProperty(\"String_Node_Str\");\n StringBuilder spaces = new StringBuilde...
"public void removeApplication(final Id.Application appId) throws Exception {\n boolean appRunning = runtimeService.checkAnyRunning(new Predicate<Id.Program>() {\n public boolean apply(Id.Program programId) {\n return programId.getApplication().equals(appId);\n }\n }, ProgramType.values()...
"protected String getParameterDefaultValues(IViewerReportDesignHandle design, String paramName, InputOptions options) throws ReportServiceException {\n if (design == null)\n return null;\n String defalutValue = null;\n Object defaultValueObj = null;\n try {\n defaultValueObj = this.getReportSe...
"private Set<Class<?>> redefineMethods(Class<T> realClass, Type genericMockedType) {\n if (TestRun.mockFixture().isMockedClass(realClass)) {\n throw new IllegalArgumentException(\"String_Node_Str\" + realClass.getName());\n }\n return new MockClassSetup(realClass, classToMock, genericMockedType, this).r...
"char getCharBytes(int page, long pageOffset, long pageSize) {\n char value = 0;\n long pageAddress = getPageAddress(page);\n for (int i = 0; i < 2; i++) {\n if (pageOffset == pageSize) {\n pageAddress = getPageAddress(++page);\n pageOffset = 0;\n }\n char b = (char) ...
"final protected void interceptPostSuperstepEnd() {\n if (debugConfig.shouldCheckMessageIntegrity() && msgIntegrityViolationWrapper.numMsgWrappers() > 0) {\n commonVertexMasterInterceptionUtil.saveScenarioWrapper(msgIntegrityViolationWrapper, DebuggerUtils.getMessageIntegrityAllTraceFullFileName(getSuperstep(...
"public static CollectionExecutor buildCollectionExecutor(CollectionExpression collectionExpression, MatchingMetaStateHolder matchingMetaStateHolder, List<VariableExpressionExecutor> variableExpressionExecutors, Map<String, EventTable> eventTableMap, ExecutionPlanContext executionPlanContext, boolean isFirst) {\n if...
"public void onLoadFinished(Loader<Cursor> loader, Cursor messagesCursor) {\n if (messagesAdapter == null) {\n initListView(messagesCursor);\n } else {\n messagesAdapter.changeCursor(messagesCursor);\n if (totalEntries > 0) {\n messagesListView.setSelection(totalEntries);\n ...
"public void cancelPeek() {\n if (mPeekAnimator != null) {\n mPeekAnimator.cancel();\n }\n removeCallbacks(mPeekRunnable);\n mPeekPending = false;\n if (cancelled) {\n notifyBarPanelExpansionChanged();\n }\n}\n"