content
stringlengths
40
137k
"private static boolean loadSymbolsImages(int size) {\n boolean fileErrors = false;\n HashMap<String, BufferedImage> sizedSymbols = new HashMap<>();\n String resourcePath = Constants.RESOURCE_PATH_MANA_SMALL;\n if (size > 25) {\n resourcePath = Constants.RESOURCE_PATH_MANA_LARGE;\n } else if (size...
"private String getFontFamily(IStyle c_style, Chunk ch) {\n String fontFamily = null;\n if (c_style != null && c_style.getFontFamily() != null) {\n fontFamily = mapGenericFont(c_style.getFontFamily());\n } else {\n FontInfo info = ch.getFontInfo();\n fontFamily = info.getFontName();\n }...
"public synchronized Entry register(Object o) {\n String moniker = generateMoniker();\n final LockBoxEntryImpl entry = new LockBoxEntryImpl(this, moniker);\n map.put(entry, wrap(o));\n return entry;\n}\n"
"public void roundTripPairedEnd() throws IOException {\n final AlignmentChunkCodec1 codec = new AlignmentChunkCodec1();\n codec.setHandler(new AlignmentCollectionHandler());\n Alignments.AlignmentCollection.Builder collection = loadCollection(\"String_Node_Str\", 600, 700);\n assertRoundTripMatchExpected(co...
"public void removeAt(int index) {\n if (index < 0 || index >= this.getCount()) {\n throw new IllegalArgumentException(\"String_Node_Str\" + \"String_Node_Str\");\n }\n this.internalRemoveAt(index);\n}\n"
"public String printLocation() {\n return StringUtils.encodeXML(m_locationOri.toString());\n}\n"
"public boolean hasNext() {\n return index < trainingSet[_class].length;\n}\n"
"private void buildInfoRec(Logger logger, Function f, Block block, ArrayInfo info, HierarchicalSet<Var> candidates) {\n addBlockCandidates(f, block, info, candidates);\n for (Statement stmt : block.getStatements()) {\n switch(stmt.type()) {\n case INSTRUCTION:\n updateInfo(logger,...
"public void stop() {\n final Arena a = this;\n try {\n Bukkit.getScheduler().cancelTask(currenttaskid);\n } catch (Exception e) {\n }\n this.setArenaState(ArenaState.RESTARTING);\n ArrayList<String> temp = new ArrayList<String>(this.getAllPlayers());\n for (String p_ : temp) {\n leav...
"private void prepareRecorders() throws OperationFailedException {\n logger.info(\"String_Node_Str\");\n for (Entry<MediaType, RTPTranslator> e : rtpTranslators.entrySet()) {\n Recorder recorder = mediaService.createRecorder(e.getValue());\n recorders.put(e.getKey(), recorder);\n }\n}\n"
"public void setPassword(String password) {\n this.secureStoreDirty = true;\n this.password = password;\n if (getServerWorkingCopy() != null) {\n getServerWorkingCopy().setAttribute(PROP_PASSWORD_ID, (String) null);\n }\n updateServerId();\n if (getData() != null) {\n getData().setPasswo...
"protected TableContent createTableContent() {\n TableContent content = (TableContent) reportContent.createTableContent();\n content.setCaption(\"String_Node_Str\");\n content.setCaptionKey(\"String_Node_Str\");\n content.setHeaderRepeat(true);\n Column column1 = new Column(reportContent);\n column1.s...
"public List compile(CompilerConfiguration config) throws CompilerException {\n config.setTargetVersion(\"String_Node_Str\");\n config.setSourceVersion(\"String_Node_Str\");\n File destinationDir = new File(config.getOutputLocation());\n if (!destinationDir.exists()) {\n destinationDir.mkdirs();\n ...
"void removeAllWindows() {\n int winNdx;\n while ((winNdx = allAppWindows.size()) > 0) {\n WindowState win = allAppWindows.get(winNdx - 1);\n if (WindowManagerService.DEBUG_WINDOW_MOVEMENT) {\n Slog.w(WindowManagerService.TAG, \"String_Node_Str\" + win);\n win.mService.removeWindow...
"public synchronized boolean setCurrentProxyScriptUrl(ProxyProperties proxy) {\n if (!TextUtils.isEmpty(proxy.getPacFileUrl())) {\n if (proxy.getPacFileUrl().equals(mPacUrl) && (proxy.getPort() > 0)) {\n return false;\n }\n synchronized (mProxyLock) {\n mPacUrl = proxy.getP...
"public void changeExecuteLanguageToSql(boolean enabled) {\n if (this.execCombo == null) {\n return;\n }\n if (!currentModelIsSqlEngine()) {\n int i = 0;\n for (ExecutionLanguage language : ExecutionLanguage.VALUES) {\n if (language.compareTo(ExecutionLanguage.SQL) == 0 && execC...
"public boolean apply(Game game, Ability source) {\n if (game.getBattlefield().contains(filterFirstStrike, source.getControllerId(), 1, game)) {\n game.addEffect(new GainAbilityControlledEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn, filterCreatures), source);\n }\n if (game.getBattlefield...
"public String update(TestStructure testStructure, TranslationService translationService) throws SystemException {\n String resultState = \"String_Node_Str\";\n logger.trace(\"String_Node_Str\" + testStructure.getFullName() + \"String_Node_Str\");\n try {\n TestProject testProject = testStructure.getRoo...
"public boolean onGenericMotionEvent(MotionEvent ev) {\n if ((ev.getSource() & InputDevice.SOURCE_CLASS_POINTER) == InputDevice.SOURCE_CLASS_POINTER) {\n int action = ev.getAction();\n switch(action & MotionEvent.ACTION_MASK) {\n case MotionEvent.ACTION_SCROLL:\n float vScroll...
"public void currentlychousen(int index, int idFilter, boolean greenscreen) {\n this.index = index;\n fId = idFilter;\n titel.setText(\"String_Node_Str\");\n LOGGER.debug(\"String_Node_Str\" + index + \"String_Node_Str\" + currentMode.length);\n try {\n if (index > -1) {\n if (profile =...
"private static Persistor instance(String userName, String pwd, String url, IProgressMonitor monitor) throws JBFatalException, JBException {\n if (instance == null) {\n try {\n instance = new Persistor(userName, pwd, url, monitor);\n DatabaseStateDispatcher.notifyListener(new DatabaseSta...
"private void testFactTableSaveAndLoad1(IDocumentManager documentManager) throws IOException, BirtException {\n Dimension[] dimensions = new Dimension[3];\n ILevelDefn[] levelDefs = new ILevelDefn[1];\n String[] levelNames = new String[1];\n levelNames[0] = \"String_Node_Str\";\n DimensionForTest iterato...
"public static String copyAndGetHadoopConfigurationFilePath(String remoteAbsolutePath, Loader loader) {\n YamlLoader yamlLoader = (YamlLoader) loader;\n String jumbuneHome = yamlLoader.getjHome();\n String dirInJumbuneHome = jumbuneHome + File.separator + Constants.JOB_JARS_LOC + yamlLoader.getJumbuneJobName()...
"private File getInstalledFileFromLocalRepo(String groupId, String artifactId, String version, String packaging) throws IOException {\n String projectMvnUrl = MavenUrlHelper.generateMvnUrl(groupId, artifactId, version, packaging, null);\n String projectLocalMavenUri = projectMvnUrl.replace(\"String_Node_Str\", \"...
"public DomainRouterVO addVirtualMachineToGuestNetwork(UserVmVO vm, String password, long startEventId) throws ConcurrentOperationException {\n try {\n DomainRouterVO router = start(vm.getDomainRouterId(), 0);\n if (router == null) {\n s_logger.error(\"String_Node_Str\" + vm.getName());\n ...
"private void updateBindings() {\n LevelViewHandle level = null;\n if (comboGroupLevel.getSelectionIndex() != -1 && groupLevelList != null && groupLevelList.size() > 0) {\n level = (LevelViewHandle) groupLevelList.get(comboGroupLevel.getSelectionIndex());\n }\n if (level == null) {\n textKey.s...
"public void widgetSelected(SelectionEvent e) {\n XpathSelectDialog dlg = new XpathSelectDialog(parent.getShell(), null, \"String_Node_Str\", ServerView.show().getSite(), false, null);\n dlg.setConceptName(conceptName);\n dlg.setBlockOnOpen(true);\n dlg.open();\n if (dlg.getReturnCode() == Window.OK) {\n...
"private KVMPhysicalDisk templateToPrimaryDownload(String templateUrl, KVMStoragePool primaryPool) {\n int index = templateUrl.lastIndexOf(\"String_Node_Str\");\n String mountpoint = templateUrl.substring(0, index);\n String templateName = null;\n if (index < templateUrl.length() - 1) {\n templateNam...
"void dump(PrintWriter pw, String prefix) {\n final long now = SystemClock.uptimeMillis();\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n pw.print(userId);\n pw.print(\"String_Node_Str\");\n pw.print(info.uid);\n if (uid != info.uid) {\n pw.print(\"String_Node_Str\");\n pw.pri...
"public void onButtonPressedListener(TextView textView) {\n Log.d(\"String_Node_Str\", \"String_Node_Str\");\n mListView.add(generateNewCard());\n Toast.makeText(mContext, \"String_Node_Str\", Toast.LENGTH_SHORT).show();\n}\n"
"protected void setKeyboardSelected(int index, boolean selected, boolean stealFocus) {\n if (!isRowWithinBounds(index)) {\n return;\n }\n Element elem = getRowElement(index);\n if (!selected || isFocused || stealFocus) {\n setStyleName(elem, style.cellListKeyboardSelectedItem(), selected);\n ...
"public void perform(Arguments arguments, PrintStream output) throws Exception {\n Map<String, String> tags = ArgumentParser.parseMap(arguments.getOptional(\"String_Node_Str\", \"String_Node_Str\"), \"String_Node_Str\");\n List<String> results = client.searchMetrics(tags);\n for (String result : results) {\n ...
"public void deploy(List<ModuleNeeded> modules, IProgressMonitor... monitorWrap) {\n String installLocation = getStorageDirectory().getAbsolutePath();\n File indexFile = new File(installLocation + JAR_INDEX);\n if (indexFile.exists()) {\n LibrariesIndexManager.getInstance().loadResource();\n }\n b...
"private void generateInstanceStream(PartUsageLink usageLink, double tx, double ty, double tz, double rx, double ry, double rz, List<Integer> filteredPath, List<Integer> instanceIds) throws JAXBException, IOException {\n PartMaster pm = usageLink.getComponent();\n PartRevision partR = pm.getLastRevision();\n P...
"public void testWrongAttributes() {\n given().param(\"String_Node_Str\", getParameter(\"String_Node_Str\")).param(\"String_Node_Str\", getParameter(\"String_Node_Str\")).param(\"String_Node_Str\", \"String_Node_Str\").param(\"String_Node_Str\", \"String_Node_Str\").param(\"String_Node_Str\", \"String_Node_Str\").wh...
"private String downloadableUrl(String url, int width, int height) {\n if ((width > 0) && (height > 0)) {\n return mContentManager.getDownloadableThumbnailUrl(url, width, height, ContentManager.METHOD_SCALE);\n } else {\n return null;\n }\n}\n"
"public void onWindowClosed() {\n for (Iterator it = rootPanels.values().iterator(); it.hasNext(); ) {\n RootPanel gwt = (RootPanel) it.next();\n if (gwt.isAttached()) {\n gwt.onDetach();\n }\n }\n}\n"
"private Object toJsonCompatible(Object value) {\n if (value instanceof Node) {\n final Node node = (Node) value;\n final Map<String, Object> result = SubGraph.toMap((PropertyContainer) node);\n result.put(\"String_Node_Str\", node.getId());\n final List<String> labelNames = SubGraph.getL...
"protected String trimmedValueOrNullIfBypassed(String value, UIFormInput uiInput, boolean exceptionOnMissingMandatory, boolean trimValue) throws Exception {\n if (value != null) {\n String tmp = value.trim();\n if (trimValue) {\n value = tmp;\n }\n value = tmp.isEmpty() ? null ...
"public void mapCertificate_noCN() throws Exception {\n final X509Certificate cert = mock.mock(X509Certificate.class);\n final X500Principal principal = new X500Principal(\"String_Node_Str\");\n mock.checking(new Expectations() {\n {\n allowing(cert).getSubjectX500Principal();\n wi...
"public static boolean isBlockInWave(Block block) {\n for (LavaSurgeWave lavaWave : getAbilities(LavaSurgeWave.class)) {\n if (block.getWorld().equals(lavaWave.location.getWorld()) && block.getLocation().distance(lavaWave.location) <= 2 * lavaWave.radius) {\n return true;\n }\n }\n ret...
"protected void customPaintBackground(Graphics g) {\n Graphics2D g2 = (Graphics2D) g.create();\n try {\n AntialiasingManager.activateAntialiasing(g2);\n super.customPaintBackground(g2);\n JTextComponent c = this.getComponent();\n int dy = c.getHeight() / 2 - searchIcon.getIconHeight() ...
"private RemoteInputView applyRemoteInput(View view, NotificationData.Entry entry, boolean hasRemoteInput, PendingIntent existingPendingIntent) {\n View actionContainerCandidate = view.findViewById(com.android.internal.R.id.actions_container);\n if (actionContainerCandidate instanceof FrameLayout) {\n Remo...
"public void testNoResult() {\n this.sqlgGraph.addVertex(T.label, \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n this.sqlgGraph.tx().commit();\n Vertex v = this.sqlgGraph.V().<Vertex>has(T.label, \"String_Node_Str\").next();\n Assert.assertEquals(\"String_Node_Str\", v.property(\"String_N...
"public static String uploadFileToAppServer(String URL, JobInfo info, String localFilename, String username, String password) throws XtentisException {\n System.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n System.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n HttpClient client = new HttpC...
"private void unLock() {\n try {\n synchronized (lock) {\n lock.notifyAll();\n }\n } catch (Exception e) {\n setException(e);\n }\n}\n"
"public void initialize(MapReduceTaskContext<byte[], Put> context) throws Exception {\n InputContext inputContext = context.getInputContext();\n Preconditions.checkArgument(PARTITIONED.equals(inputContext.getInputName()));\n Preconditions.checkArgument(inputContext instanceof PartitionedFileSetInputContext);\n...
"protected void onPostExecute(Integer lastPageSelected) {\n if (lastPageSelected != null) {\n NearbyFragment.this.lastPageSelected = lastPageSelected.intValue();\n viewPager.setCurrentItem(NearbyFragment.this.lastPageSelected);\n }\n}\n"
"public void buildACLSearchParameters(Account caller, Long id, String accountName, Long projectId, List<Long> permittedDomains, List<Long> permittedAccounts, List<Long> permittedResources, Ternary<Long, Boolean, ListProjectResourcesCriteria> domainIdRecursiveListProject, boolean listAll, boolean forProjectInvitation, S...
"protected final boolean connect() {\n synchronized (this) {\n if (this.connection != null)\n throw (new IllegalStateException(\"String_Node_Str\"));\n this.shouldReconnect = true;\n final ConnectionFactory connectionFactory = new ConnectionFactory();\n connectionFactory.setHos...
"public static Certificate createCert(PublicKey pubKey, PrivateKey caPrivKey, PublicKey caPubKey) throws Exception {\n Hashtable sAttrs = new Hashtable();\n Vector sOrder = new Vector();\n sAttrs.put(X509Principal.C, \"String_Node_Str\");\n sAttrs.put(X509Principal.O, \"String_Node_Str\");\n sAttrs.put(X...
"public void doExport(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {\n IFileStore source = NewFileServlet.getFileStore(sourcePath);\n try {\n if (source.fetchInfo().isDirectory() && source.childNames(EFS.NONE, null).length == 0) {\n resp.sendError(HttpSe...
"public void handleFailure(Throwable t) {\n result.setFailure(t);\n}\n"
"public void set(String key, Serializable value) {\n try {\n if (writer != null)\n writer.set(key, value);\n } catch (RemoteException swallowed) {\n }\n}\n"
"public void test() throws TimeoutException, InterruptedException, IOException {\n ApplicationManager appManager = deployApplication(PurchaseApp.class);\n FlowManager flowManager = appManager.startFlow(\"String_Node_Str\");\n StreamWriter streamWriter = appManager.getStreamWriter(\"String_Node_Str\");\n str...
"public void validateRemoteServiceAsync(TreeLogger logger, JClassType remoteService) throws UnableToCompleteException {\n TreeLogger branch = logger.branch(TreeLogger.DEBUG, \"String_Node_Str\" + remoteService.getQualifiedSourceName() + \"String_Node_Str\" + remoteService.getQualifiedSourceName() + \"String_Node_Str...
"public void postTaskForm(final KieApiInputFormTask form) throws Throwable {\n if (null == form) {\n throw new ApiException(IApiErrorCodes.API_VALIDATION_ERROR, \"String_Node_Str\", Response.Status.CONFLICT);\n }\n String containerId = null;\n String taskId = null;\n Map<String, String> input = ne...
"public void send(final SentProgress progress, final byte[] msg) {\n final ByteBuf data = channel.config().getAllocator().buffer(msg.length);\n data.writeBytes(msg);\n final ChannelFuture cf = channel.writeAndFlush(data);\n cf.addListener(new GenericFutureListener<Future<? super java.lang.Void>>() {\n ...
"public void processRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {\n FormProcessor fp = new FormProcessor(request);\n SessionManager sm = (SessionManager) request.getSession().getAttribute(\"String_Node_Str\");\n EventCRFBean ecb = (EventCRFBean) request.getAttribute(INPUT...
"public void setupNavigationPane(final WebPage page, final XMLRolesReader xmlRolesReader, final String version) {\n page.add(new Label(\"String_Node_Str\", \"String_Node_Str\" + version + \"String_Node_Str\" + SyncopeSession.get().getCoreVersion()));\n BookmarkablePageLink schemaLink = new BookmarkablePageLink(\"...
"public ResponseEntity queryDomain(String domainName) {\n String decodeDomain = domainName;\n String punyDomainName = decodeDomain;\n try {\n decodeDomain = DomainUtil.decodeAndTrimAndReplaceAsciiToLowercase(domainName);\n punyDomainName = DomainUtil.geneDomainPunyName(decodeDomain);\n } catch...
"public int loop() {\n if (bank.isDepositOpen() || bank.isOpen()) {\n bank.close();\n }\n if (!activateCondition()) {\n return -1;\n }\n if (getMyPlayer().isMoving()) {\n return random(1000, 2000);\n }\n switch(getState()) {\n case EXIT:\n RSObject portal = ob...
"private Response<Object> invokeByAddressWithSimpleBinding(MethodCall<Object> methodCall, Pair<MethodBinding, MethodAccess> binding) {\n MethodAccess methodAccess = binding.getSecond();\n if (methodAccess.returnType() == Void.class) {\n methodAccess.invokeDynamicObject(service, methodCall.body());\n ...
"private boolean replaceOnExist(Job job, JobPo jobPo) {\n JobPo oldJobPo;\n if (job.isSchedule()) {\n oldJobPo = appContext.getCronJobQueue().getJob(job.getTaskTrackerNodeGroup(), job.getTaskId());\n } else {\n oldJobPo = appContext.getExecutableJobQueue().getJob(job.getTaskTrackerNodeGroup(), jo...
"public boolean isEntryBlock() {\n return instructionIndex == ENTRY_INDEX;\n}\n"
"public void onResume() {\n super.onResume();\n Log.d(TAG, \"String_Node_Str\" + items);\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);\n if (!hasIntentData) {\n verse = sp.getString(\"String_Node_Str\", \"String_Node_Str\");\n }\n if (items == null && search == n...
"private void maybeRecordNominalType(Node defSite, Node nameNode, JSDocInfo fnDoc, boolean isRedeclaration) {\n Preconditions.checkState(nameNode == null || nameNode.isQualifiedName());\n if (fnDoc == null) {\n return;\n }\n if (fnDoc.isConstructorOrInterface()) {\n if (nameNode == null) {\n ...
"protected void processConfiguration(IProgressMonitor monitor) throws CoreException {\n IProject project = this.getFacetedProject().getProject();\n SimpleImportOverwriteQuery query = new SimpleImportOverwriteQuery();\n WebArtifactUtil.configureWebApp((WebAppBean) properties.get(EXT_WEBAPP), project, query, mon...
"private Iterator populateParameter(DataSetHandle modelDataSet, BaseDataSetDesign dteDataSet) {\n HashMap paramBindingCandidates = new HashMap();\n Iterator elmtIter = modelDataSet.parametersIterator();\n if (elmtIter != null) {\n while (elmtIter.hasNext()) {\n DataSetParameterHandle modelPar...
"public List getTypesToGenerateFrom() {\n List types = new ArrayList();\n ((SDOTypeHelper) typeHelper).reset();\n SDOType dataObjectType = (SDOType) typeHelper.getType(SDOConstants.SDO_URL, SDOConstants.DATAOBJECT);\n SDOProperty xmlDataTypeProperty = (SDOProperty) typeHelper.getOpenContentProperty(SDOConst...
"private void executeAction(Object result, PropertyBean propertyBean, ExpressionBeanObjectWrapper eow, EventActionBean eventAction, Integer userId) {\n String oid = eventAction.getOc_oid_reference();\n String eventOID = null;\n DateFormat df = new SimpleDateFormat(\"String_Node_Str\");\n int ordinal = 1;\n ...
"public void handleMessage(Message message) {\n logger.fine(\"String_Node_Str\");\n if (message instanceof GetVoiceBridgeResponseMessage) {\n GetVoiceBridgeResponseMessage msg = (GetVoiceBridgeResponseMessage) message;\n logger.warning(\"String_Node_Str\" + msg.getBridgeInfo());\n SoftphoneCo...
"public String getWebURL() {\n try {\n if (HAUtil.isHAEnabled(conf, getNameService())) {\n URL haWebURL = getHAWebURL();\n if (haWebURL != null) {\n return haWebURL.toString();\n }\n } else {\n try (FileSystem fs = FileSystem.get(conf)) {\n ...
"private void generateExporterClass(JavaSourceFacet java) throws FileNotFoundException {\n JavaClass deployementExporterClass = JavaParser.create(JavaClass.class).setPackage(\"String_Node_Str\").setName(\"String_Node_Str\").setPublic();\n deployementExporterClass.addMethod().setName(\"String_Node_Str\").setStatic...
"public void addDisplay(String name, String label, String theValue) {\n JLabel lbl = new JLabel(label + \"String_Node_Str\");\n lbl.setBackground(_background);\n JTextArea displayField = new JTextArea(theValue, 1, 10);\n displayField.setEditable(false);\n displayField.setBackground(_background);\n _ad...
"private void writeMetaData(final String logPartition, final long startTimeMs, final Location location) throws Exception {\n LOG.debug(\"String_Node_Str\", logPartition, startTimeMs, location.toURI());\n execute(new TransactionExecutor.Procedure<Table>() {\n\n public Void apply(DatasetContext<Table> ctx) t...
"public static CompletableFuture<EndpointDescription[]> getEndpoints(String endpointUrl) {\n CompletableFuture<EndpointDescription[]> endpointsFuture = new CompletableFuture<>();\n UaTcpClient client = new UaTcpClientBuilder().build(endpointUrl);\n GetEndpointsRequest request = new GetEndpointsRequest(new Requ...
"public static List<String> getAllPropertyValues(String key) {\n List<ConfigSource> appConfigSources = sortAscending(new ArrayList<ConfigSource>(Arrays.asList(getConfigSources())));\n List<String> result = new ArrayList<String>();\n String value;\n for (ConfigSource configSource : appConfigSources) {\n ...
"public C getChild(String name) {\n for (C child : getChildren()) {\n if (child.getName().equals(name))\n return child;\n }\n return null;\n}\n"
"public void dirtyEntries(long timeStamp) {\n for (final Segment segment : (Segment[]) segments) {\n segment.dirtyEntries(timeStamp, entryModifiableCallback);\n }\n}\n"
"public void translate(Stack<GraphTargetItem> stack, List<GraphTargetItem> output, java.util.HashMap<Integer, String> regNames, HashMap<String, GraphTargetItem> variables, HashMap<String, GraphTargetItem> functions, int staticOperation, String path) {\n GraphTargetItem propertyName = stack.pop();\n GraphTargetIte...
"private void DrawRectangularSelection(GL gl) {\n float length = fRectangleDragEndPoint[0] - fRectangleDragStartPoint[0];\n float hight = fRectangleDragEndPoint[1] - fRectangleDragStartPoint[1];\n float x = fRectangleDragStartPoint[0];\n float y = fRectangleDragStartPoint[1];\n float z = 3.5f;\n gl.gl...
"private void apply() {\n applyOnElement(set.getRoot());\n List<Element> physLocs = set.getChildren(Constants.DEPLOY_PHYSICAL_LOCATION);\n for (Element pl : physLocs) {\n applyOnElement(pl);\n List<Element> machines = pl.elements(Constants.MACHINE_BRANCH);\n for (Element mac : machines) {\...
"public static MDMTransaction newTransaction(String url, String username, String password) throws IOException {\n HttpClient client = new HttpClient();\n client.getState().setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(username, password));\n PutMethod put = new PutMethod(url);\n put.setDoAut...
"protected void drawOffscreen(GLContext glContext) {\n super.drawOffscreen(glContext);\n if (texture == null) {\n init(glContext);\n int width = offscreenCanvas.getTargetBounds().getWidth();\n int height = offscreenCanvas.getTargetBounds().getHeight();\n int texHandle = offscreenCanvas...
"public void renderParticle(Tessellator tessellator, float par2, float par3, float par4, float par5, float par6, float par7) {\n float agescale = 0.0F;\n agescale = this.particleAge / (this.particleMaxAge / 2);\n if (agescale > 1.0F)\n agescale = 2.0F - agescale;\n this.particleScale = (this.antimatt...
"public static List<InviteFriend> getContactsWithEmail(Context context) {\n List<InviteFriend> friendsContactsList = new ArrayList<InviteFriend>();\n Uri uri = null;\n ContentResolver contentResolver = context.getContentResolver();\n String[] PROJECTION = new String[] { ContactsContract.RawContacts._ID, Con...
"private void testFactTableSaveAndLoad1(IDocumentManager documentManager) throws IOException, BirtException {\n Dimension[] dimensions = new Dimension[3];\n ILevelDefn[] levelDefs = new ILevelDefn[1];\n String[] levelNames = new String[1];\n levelNames[0] = \"String_Node_Str\";\n DimensionForTest iterato...
"private void clearLog() {\n final Resources res = getResources();\n final ProgressDialog progress = ProgressDialog.show(this, res.getString(R.string.working), res.getString(R.string.please_wait), true);\n final Handler handler = new Handler() {\n\n public void handleMessage(Message msg) {\n ...
"public static DetailsFragment newInstance(int position) {\n Bundle args = new Bundle();\n args.putInt(ARG_ALBUM_IMAGE_POSITION, position);\n args.putInt(ARG_STARTING_ALBUM_IMAGE_POSITION, startingPosition);\n DetailsFragment fragment = new DetailsFragment();\n fragment.setArguments(args);\n return fr...
"public void seek(int index) throws IOException {\n if (index >= length) {\n return;\n }\n currentPosition = index;\n resultObject = (AggregationResultRow) aggregationResultRow.get(index);\n}\n"
"public static short leb2short(byte[] x, int offset) {\n int x0 = (x[offset]) & 0x000000FF;\n int x1 = (x[offset + 1] << 8);\n return (short) (x1 | x0);\n}\n"
"public void testGetSet() {\n RowDesign row = new RowDesign();\n Expression<DimensionType> height = newConstant(new DimensionType(1.0, DimensionType.UNITS_CM));\n Expression<String> bookmark = newConstant(\"String_Node_Str\");\n row.setHeight(height);\n row.setBookmark(bookmark);\n assertEquals(row.ge...
"public void testGetChampion() throws Exception {\n try {\n handler.getChampion(1, ChampData.ALL);\n } catch (RequestException ex) {\n System.out.println(\"String_Node_Str\");\n ex.printStackTrace();\n }\n}\n"
"public Row apply(Result result) {\n Map<byte[], byte[]> familyMap = result.getFamilyMap(columnFamily);\n return familyMap != null ? familyMap : ImmutableMap.<byte[], byte[]>of();\n}\n"
"private void initialize() {\n ListenableFuture<Subscription> subscriptionInfo = stub.withDeadlineAfter(DEFAULT_TIMEOUT.getMillis(), TimeUnit.MILLISECONDS).getSubscription(GetSubscriptionRequest.newBuilder().setSubscription(subscription).build());\n Futures.addCallback(subscriptionInfo, new FutureCallback<Subscri...
"public void moreSlop() {\n slop(3);\n phrase(0, 1, 2, 4, 5, 2);\n inputs(0, 1, 2, 2, 2, 4, 4, 5, 1);\n result(2, 2, 2, 1, 1, 2, 1, 2, 1);\n slop(4);\n inputs(0, 1, 2, 2, 2, 4, 4, 5, 1);\n result(2, 2, 2, 1, 1, 2, 1, 2, 1);\n slop(2);\n inputs(0, 1, 2, 2, 2, 4, 4, 5, 1);\n result(1, 1, 1, ...
"public void run() {\n if (webcam.isOpen()) {\n System.out.println(\"String_Node_Str\");\n webcam.close();\n }\n}\n"
"public static UUID getUUID(final String name) {\n if (name == null) {\n return null;\n }\n Player player = Bukkit.getPlayer(name);\n if (player != null) {\n UUID uuid = UUIDHandler.uuidWrapper.getUUID(player);\n add(new StringWrapper(name), uuid);\n return uuid;\n }\n Stri...
"public boolean onTouchEvent(MotionEvent nativeMotionEvent) {\n if (mKeyboard == null)\n return false;\n final int action = MotionEventCompat.getActionMasked(nativeMotionEvent);\n final int pointerCount = MotionEventCompat.getPointerCount(nativeMotionEvent);\n if (pointerCount > 1)\n mLastTime...