content
stringlengths
40
137k
"public void testUnionAll(FoodMartTestCase test) {\n test.assertAxisReturns(\"String_Node_Str\", \"String_Node_Str\" + nl + \"String_Node_Str\");\n}\n"
"private void initControlValues() {\n String defaultMaxRow = ViewerPlugin.getDefault().getPluginPreferences().getString(PREVIEW_MAXROW);\n if (defaultMaxRow == null || defaultMaxRow.trim().length() <= 0) {\n defaultMaxRow = String.valueOf(MAX_DATASET_ROW_DEFAULT);\n }\n boolean previewAllRows = Strin...
"public boolean onTouchEvent(MotionEvent event) {\n if (isHeaderRefreshing && isHeaderShowing) {\n }\n if (lockScrollWhileRefreshing && (state == State.REFRESHING || getAnimation() != null && !getAnimation().hasEnded())) {\n return true;\n }\n switch(event.getAction()) {\n case MotionEvent....
"private String formatCode(String processCode) {\n if (ProcessorUtilities.isExportConfig() || CommonsPlugin.isHeadless()) {\n return processCode;\n }\n final IDocument document = new Document(processCode);\n JavaTextTools tools = JavaPlugin.getDefault().getJavaTextTools();\n tools.setupJavaDocumen...
"public String fizzBuzz(int i) {\n if (i <= 0) {\n throw new RuntimeException();\n }\n String str = \"String_Node_Str\";\n if (i % 3 == 0) {\n str += \"String_Node_Str\";\n }\n if (i % 5 == 0) {\n str += \"String_Node_Str\";\n }\n if (str == \"String_Node_Str\") {\n s...
"protected static int _getDimensionValue(IContent content, DimensionType d, int dpi, int referenceLength) {\n if (d.getValueType() == DimensionType.TYPE_DIMENSION) {\n String units = d.getUnits();\n if (units.equals(EngineIRConstants.UNITS_PT) || units.equals(EngineIRConstants.UNITS_CM) || units.equals...
"public Fields fields() throws IOException {\n Fields fields = super.fields();\n if (fields == null) {\n return null;\n }\n return new ExitableFields(fields, _exitObject);\n}\n"
"public List<Role> getAllRoles() {\n List<Role> roleList = null;\n String sparql = \"String_Node_Str\" + \"String_Node_Str\" + lSMOauthGraphURL + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n try {\n String service = sparqlEndPoint;\n QueryExecution vqe ...
"public static void main(String[] args) throws Exception {\n String pigSchema = pigSchema(false, false);\n String pigSchemaProjected = pigSchema(true, false);\n String pigSchemaNoString = pigSchema(true, true);\n MessageType schema = new PigSchemaConverter().convert(Utils.getSchemaFromString(pigSchema));\n ...
"private void removeAllJavaFiles(File folder) {\n File[] contents = folder.listFiles();\n for (int index = 0; contents != null && index < contents.length; index++) {\n File file = contents[index];\n if (file.isDirectory()) {\n removeAllJavaFiles(file);\n } else {\n if (f...
"public void handlePresenceUpdate(PresenceUpdateEvent event) {\n LOG.debugf(\"String_Node_Str\", event.getPresence().getJID(), event.getPresence().getType());\n final Presence presence = event.getPresence();\n final User user = event.getUser();\n FriendImpl friend = idToFriendMap.get(user.getId());\n swi...
"public void testCrossReferencesPdbAlignSeqRes() throws IOException, StructureException {\n AtomCache cache = new AtomCache();\n cache.setUseMmCif(false);\n FileParsingParameters params = new FileParsingParameters();\n params.setAlignSeqRes(true);\n cache.setFileParsingParams(params);\n StructureIO.se...
"public static JFrame getDialogParent() {\n if (SwingGui.getInstance() != null)\n return SwingGui.getInstance().getMainFrame();\n if (PARENT == null)\n PARENT = new DummyFrame();\n return PARENT;\n}\n"
"private double illuminationAzimuth(double dx, double dy) {\n final double illuminationAzimuth = Math.toRadians(model.getAzimuth());\n final double maxDeviation = Math.toRadians(30);\n double aspect = Math.atan2(dx, -dy);\n if (aspect < 0) {\n aspect += Math.PI;\n }\n double angleDiff = illumin...
"Pattern buildWordsPattern(Set<String> words) {\n StringBuilder builder = new StringBuilder(ESCAPED_START);\n Iterator<String> iterator = words.iterator();\n if (!iterator.hasNext()) {\n builder.append(ESCAPED_END);\n return Pattern.compile(builder.toString());\n }\n final String next = ite...
"private EComponentCategory[] getCategories(Element elem) {\n if (elem instanceof Connection) {\n EComponentCategory[] categories = EElementType.CONNECTION.getCategories();\n if (PluginChecker.isTeamEdition()) {\n Object propertyValue = elem.getPropertyValue(Connection.LINESTYLE_PROP);\n ...
"public final T get() throws OseeCoreException {\n T object = instanceReference.get();\n if (object == null) {\n FutureTask<T> task;\n synchronized (lock) {\n if (lastLoader != null) {\n task = lastLoader;\n } else {\n task = createLoaderTask();\n ...
"public Module getInMemoryModules() {\n return Modules.combine(new AppFabricServiceModule(), new AbstractModule() {\n\n protected void configure() {\n bind(SchedulerService.class).to(LocalSchedulerService.class).in(Scopes.SINGLETON);\n bind(Scheduler.class).to(SchedulerService.class);\n ...
"public void noteDeviceIdleModeLocked(int mode, String activeReason, int activeUid) {\n final long elapsedRealtime = mClocks.elapsedRealtime();\n final long uptime = mClocks.uptimeMillis();\n boolean nowIdling = mode == DEVICE_IDLE_MODE_DEEP;\n if (mDeviceIdling && !nowIdling && activeReason == null) {\n ...
"public CmisRepositoryInfoType getRepositoryInfo(GetRepositoryInfo parameters) throws PermissionDeniedException, UpdateConflictException, ObjectNotFoundException, OperationNotSupportedException, InvalidArgumentException, RuntimeException, ConstraintViolationException {\n checkRepositoryId(parameters.getRepositoryId(...
"private void hideListFragment() {\n if (getFragmentManager().getBackStackEntryCount() > 0) {\n onBackPressed();\n }\n setTitle(R.string.plugins);\n}\n"
"private Vector filterFilesByDate(Iterator filelist, Date startDate, Date endDate) {\n if (startDate == null && endDate == null) {\n Vector<String> result = new Vector<String>();\n while (filelist.hasNext()) {\n result.add(filelist.next());\n }\n return result;\n }\n Tree...
"static public String buildWhereClauseFromPost(String sql, JsonObject jsonCheckFilters, List<String> sqlParams) {\n HashMap<String, List<String>> checkFilterDBMap = RESTUtil.createAdminFilterMap();\n for (String jsonField : checkFilterDBMap.keySet()) {\n JsonArray fieldArray = null;\n if (!jsonCheck...
"private final void render(IDeviceRenderer idr, Bounds bo, RadarSeries se, SeriesDefinition sd) throws ChartException {\n List<Series> rts = sd.getRunTimeSeries();\n int iThisSeriesIndex = rts.indexOf(se);\n if (iThisSeriesIndex == -1)\n iThisSeriesIndex = getSeriesIndex();\n int totalSeriesCnt = get...
"protected String getRelativeRequestURI(Command command) {\n List<String> argumntList = command.getArgumentList();\n throwExceptionIfArguementIsEmpty(argumntList);\n String argument = argumntList.get(0);\n return \"String_Node_Str\" + urlEncode(argument);\n}\n"
"public static List<Map<String, String>> blockingKeyDataConvert(List<KeyDefinition> blockKeyDefList) {\n List<Map<String, String>> resultListData = new ArrayList<Map<String, String>>();\n for (KeyDefinition keyDef : blockKeyDefList) {\n BlockKeyDefinition blockKeydef = (BlockKeyDefinition) keyDef;\n ...
"public void beforeFindBy(By by, WebElement element, WebDriver driver) {\n ((SearchingEventListener) dispatcher).beforeFindBy(by, element, driver);\n}\n"
"public void testGet2() throws NoIdAnnotationFoundException, NoColumnAnnotationFoundException, IOException, SQLException {\n build();\n JdbcTemplateTool jtt = super.applicationContext.getBean(\"String_Node_Str\", JdbcTemplateTool.class);\n Person e = jtt.get(Person.class, 1);\n assertThat(e.getName(), is(\"...
"public static void main(String[] argv) {\n if (argv.length < 3) {\n System.out.println(\"String_Node_Str\" + \"String_Node_Str\");\n }\n try {\n String testName = argv[0];\n String propertiesFile = argv[1];\n String audioFile = argv[2];\n ProcessorTest fet = new ProcessorTes...
"private void logoHit() {\n if (btnLogos.isSelected()) {\n try {\n if (scrLogos == null || scrLogos.isDisposed()) {\n scrLogos = ScrLogoDetails.run(core);\n bindButtonToWindow(scrLogos, btnLogos);\n }\n scrLogos.setVisible(true);\n } catch ...
"void processCondRegion(Vector region) throws IOException {\n QuotedStringTokenizer pst = new QuotedStringTokenizer(params);\n if (!pst.hasMoreTokens())\n throw new IOException(\"String_Node_Str\");\n String arg = pst.nextToken();\n if (!pst.hasMoreTokens())\n throw new IOException(\"String_No...
"private void computeLinearMinMax(boolean bAlignZero) {\n final double dMinReal, dMaxReal;\n final double dMinValue, dMaxValue;\n double dMargin = 0;\n if (bMargin) {\n dMargin = Math.abs(asDouble(oMaxAuto).doubleValue() - asDouble(oMinAuto).doubleValue()) * iMarginPercent / 100;\n }\n dMinReal...
"public void propertyChange(PropertyChangeEvent changeEvent) {\n String prop = changeEvent.getPropertyName();\n boolean needUpdateSubjob = false;\n if (prop.equals(EParameterName.HINT.getName())) {\n Node node = ((NodeContainer) getModel()).getNode();\n } else if (JobletContainer.UPDATE_JOBLET_CONTEN...
"public List<Policy> getPolicies() {\n return new ArrayList<Policy>();\n}\n"
"private void placeVirtualGroup(IContainer container, ClusterCreate cluster, IPlacementPlanner planner, VirtualGroup vGroup, List<BaseNode> placedNodes, Map<String, List<String>> filteredHosts) {\n String targetRack = null;\n if (vGroup.getGroupRacks() != null && GroupRacksType.SAMERACK.equals(vGroup.getGroupRack...
"private Data createDateData(Object txt, StyleEntry entry, String timeFormat) {\n timeFormat = ExcelUtil.parse(txt, timeFormat, locale);\n timeFormat = DateTimeUtil.formatDateTime(timeFormat, locale);\n entry.setProperty(StyleConstant.DATE_FORMAT_PROP, timeFormat);\n entry.setProperty(StyleConstant.DATA_TYP...
"public void testSpread13() {\n String contents = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n assertExprType(contents, \"String_Node_Str\", \"String_Node_Str\");\n assertExprType(contents, \"String_No...
"public static boolean isPlugged(Context context) {\n Intent intentBat = context.getApplicationContext().registerReceiver(null, new IntentFilter(Intent.ACTION_BATTERY_CHANGED));\n return (intentBat.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1) > 0);\n}\n"
"public void testBasicAccess() throws Exception {\n try {\n byte[] newKey = mSysKeyStore.generateNewKey(128, \"String_Node_Str\", keyName);\n assertNotNull(newKey);\n byte[] recKey = mSysKeyStore.retrieveKey(keyName);\n assertEquals(newKey.length, recKey.length);\n for (int i = 0; ...
"private OArtifact getArtifact(Element element) {\n Element groupElement = (Element) element.getElementsByTagName(MetadataTag.GROUP_ID.get()).item(0);\n Element artifactElement = (Element) element.getElementsByTagName(MetadataTag.ARTIFACT_ID.get()).item(0);\n Element versionElement = (Element) element.getEleme...
"public static String formatVector(Vector v, String[] bindings) {\n StringBuilder buf = new StringBuilder();\n int nzero = 0;\n Iterator<Element> iterateNonZero = v.iterateNonZero();\n while (iterateNonZero.hasNext()) {\n iterateNonZero.next();\n nzero++;\n }\n if ((nzero < v.size()) || ...
"public void handleFree(DownloadLink link) throws Exception {\n this.setBrowserExclusive();\n requestFileInformation(link);\n String freelink = br.getRegex(\"String_Node_Str\").getMatch(0);\n if (freelink == null)\n throw new PluginException(LinkStatus.ERROR_PLUGIN_DEFECT);\n br.getPage(\"String_N...
"public void init(GLAutoDrawable canvas) {\n System.err.println(\"String_Node_Str\");\n this.gl = canvas.getGL();\n gl.glEnable(GL.GL_LINE_SMOOTH);\n gl.glHint(GL.GL_LINE_SMOOTH_HINT, GL.GL_NICEST);\n gl.glHint(GL.GL_PERSPECTIVE_CORRECTION_HINT, GL.GL_NICEST);\n gl.glLineWidth(1.0f);\n float[] fMat...
"protected void removeTarget(MotionTargetComponent source) {\n int idx = mySources.indexOf(source);\n if (idx == -1) {\n return;\n }\n if (source instanceof Point) {\n myTargetVelSize -= POINT_VEL_SIZE;\n myTargetPosSize -= POINT_POS_SIZE;\n removeTargetPoint((Point) myTargets.ge...
"public org.hl7.fhir.dstu2.model.ValueSet.ConceptSetFilterComponent convertConceptSetFilterComponent(org.hl7.fhir.dstu3.model.ValueSet.ConceptSetFilterComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.ValueSet.ConceptSetFilterComponent tgt =...
"private void generateImage() throws Exception {\n String imageName = IMAGE_NAME_PREFIX + +imageIndex++ + \"String_Node_Str\" + this.sExtension.toLowerCase();\n imageFile = new File(getAbsoluteImageFolder() + File.separator + imageName);\n if (!imageFile.getParentFile().exists()) {\n imageFile.getParent...
"public boolean addToInventory(ItemStack item) {\n if (item == null)\n return false;\n if ((SLOT_INVENTORY_START == -1) || (SLOT_INVENTORY_END == -1))\n return false;\n int extraSlot = extraSlotCheck(item);\n if (extraSlot >= 0) {\n item = moveItemToSlot(item, extraSlot);\n }\n fo...
"public void testBackupRemoveWhenOwnerNodeDead() throws InterruptedException {\n final TestHazelcastInstanceFactory nodeFactory = createHazelcastInstanceFactory(2);\n final String name = MAP_NAME;\n final HazelcastInstance hz = nodeFactory.newHazelcastInstance();\n final HazelcastInstance hz2 = nodeFactory....
"public void testCreateReadServiceNode() {\n SfcProviderServiceNodeAPI.putServiceNode(serviceNode);\n serviceNode = SfcProviderServiceNodeAPI.readServiceNodeByName(new SnName(SERVICE_NODE_NAME));\n assertNotNull(\"String_Node_Str\", serviceNode);\n assertEquals(\"String_Node_Str\", serviceNode.getName().get...
"protected void handleMouseDragged(final MouseEvent event) {\n if (!event.getButton().equals(MouseButton.PRIMARY)) {\n return;\n }\n if (!dragActive) {\n container = getContainer(this);\n final Point2D cursorPosition = getCursorPositionInContainer(event);\n storeClickValuesForDrag(c...
"public boolean checkRegistrations(Context context, SocializeSession session) {\n boolean checked = false;\n if (appUtils.isNotificationsAvailable(context)) {\n if (config.getBooleanProperty(SocializeConfig.SOCIALIZE_CHECK_NOTIFICATIONS, true)) {\n if (logger != null && logger.isDebugEnabled()) ...
"public void update(HttpRequest request, final HttpResponder responder, String name) {\n Reader reader = new InputStreamReader(new ChannelBufferInputStream(request.getContent()));\n DatasetInstanceConfiguration creationProperties = GSON.fromJson(reader, DatasetInstanceConfiguration.class);\n LOG.info(\"String_...
"public DataSetViewData[] populateAllOutputColumns(DataSetHandle dataSetHandle) throws BirtException {\n DataSessionContext context = new DataSessionContext(DataSessionContext.MODE_DIRECT_PRESENTATION, dataSetHandle.getModuleHandle());\n DataRequestSession session = DataRequestSession.newSession(context);\n IR...
"public void shouldBuildJSONObject() {\n final String jsonValue = getJsonSample();\n final Object json = JSon.withHandler(new POJOBuilder()).match(JSon.stream(jsonValue));\n TestCase.assertNotNull(json);\n TestCase.assertEquals(HashMap.class, json.getClass());\n}\n"
"public void stop() throws IOException {\n if (started) {\n started = false;\n if (outputStream != null)\n outputStream.stop();\n started = false;\n }\n}\n"
"public void initDialog() {\n cmbType.setItems(dataTypes);\n txtDisplayName.setFocus();\n if (isAggregate()) {\n initFunction();\n initFilter();\n {\n initAggOn();\n }\n }\n if (isTimePeriod()) {\n initTimeDimension();\n initReferenceDate();\n i...
"public synchronized static void addPackage(Plugin plugin, String packageName) {\n PermissionLinker linker = PermissionLinker.getPermissionLinker(plugin.getDescription().getName());\n PermParent parent = new PermParent(\"String_Node_Str\");\n linker.addPermParent(parent);\n linker.setMajorPerm(new PermParen...
"private void updateRankedList() {\n updateScoredTablePerspectives();\n rankColumn.clear();\n rankedElementToElementLayout.clear();\n rankedElements = new ArrayList<RankedElement>();\n for (TablePerspective scoredTablePerspective : tablePerspectives) {\n if (referenceTablePerspective.getRecordSubT...
"public GitLogPair next() {\n final int compare;\n if (newItem == null) {\n compare = -1;\n } else if (oldItem == null) {\n compare = 1;\n } else {\n final GitTreeEntry oldTreeEntry = oldItem.getTreeEntry();\n final GitTreeEntry newTreeEntry = newItem.getTreeEntry();\n if ...
"private void innerClose() throws IOException {\n if (!live) {\n return;\n }\n live = false;\n if (socketChannelWrapper.isOpen()) {\n socketChannelWrapper.close();\n }\n readHandler.shutdown();\n writeHandler.shutdown();\n if (socketChannelWrapper.isBlocking()) {\n return;\n...
"private void initUI(View view, LayoutInflater layoutInflater) {\n friendsListView = (ListView) view.findViewById(R.id.friends_listview);\n friendsListViewTitle = layoutInflater.inflate(R.layout.view_section_title_friends_list, null);\n friendsTitle = (TextView) friendsListViewTitle.findViewById(R.id.listTitle...
"public void testRangeStartEqualsEnd(FoodMartTestCase test) {\n test.assertAxisReturns(\"String_Node_Str\", \"String_Node_Str\");\n }\n public void testRangeStartEqualsEndLarge(FoodMartTestCase test) {\n test.assertAxisReturns(\"String_Node_Str\", \"String_Node_Str\");\n}\n"
"public void postInvoke(EJBRequestData request, SecurityCookieImpl preInvokeResult) throws EJBAccessDeniedException {\n if (preInvokeResult != null) {\n SecurityCookieImpl securityCookie = preInvokeResult;\n Subject invocationSubject = subjectManager.getInvocationSubject();\n Subject callerSubje...
"public User updatePassword(final String username, final String currentPassword, final String recoveryToken, final String newPassword, final String applicationUrl) throws UserExistsException {\n User user = getUserByUsername(username);\n if (isRecoveryTokenValid(user, recoveryToken)) {\n log.debug(\"String...
"public void testChangeSetBatch() throws Exception {\n List<BatchPart> batch = new ArrayList<BatchPart>();\n BatchChangeSet changeSet = BatchChangeSet.newBuilder().build();\n Map<String, String> changeSetHeaders = new HashMap<String, String>();\n changeSetHeaders.put(\"String_Node_Str\", \"String_Node_Str\"...
"protected void createControls(Composite parent, int horizontalSpan, boolean fillText) {\n setNotificationsAllowed(false);\n try {\n if (!verticalLabel && horizontalSpan < 2) {\n horizontalSpan = 2;\n }\n this.parent = parent;\n ModifyListener textListener = new ModifyListen...
"public boolean applyPatches() throws IllegalArgumentException {\n verifyState(DURING_PASS);\n state = EMITTING_CODE;\n if (patchCount == 0) {\n state = BEFORE_END_PASS;\n return false;\n }\n Output w = new Output(nextLabel);\n int[] oldInstructionsToNew = new int[instructions.length];\n...
"public static void set(final Player player, String text, float percent, int time) {\n remove(player);\n FakeDragon dragon = DRAGONBAR_CACHE.containsKey(player) ? DRAGONBAR_CACHE.get(player) : null;\n if (text.length() > 64) {\n text = text.substring(0, 63);\n }\n if (percent > 1.0f) {\n pe...
"public void bindFrom(DiscoveryHelperType discoveryHelperType) {\n List<DeviceType> deviceTypeList = discoveryHelperType.getDevice();\n Vector devicesTableModelData = devicesTableModel.getDataVector();\n devicesTableModelData.removeAllElements();\n for (DeviceType deviceType : deviceTypeList) {\n Vec...
"private String getUniqueReportName() {\n IProject[] pjs = ResourcesPlugin.getWorkspace().getRoot().getProjects();\n if (pjs.length != 0) {\n resetUniqueCount();\n boolean goon = true;\n while (goon) {\n goon = false;\n for (int i = 0; i < pjs.length; i++) {\n ...
"public void fillPermissions(DataLogicSystem dlSystem) {\n m_apermissions = new HashSet<String>();\n m_apermissions.add(\"String_Node_Str\");\n m_apermissions.add(\"String_Node_Str\");\n String sRolePermisions = dlSystem.findRolePermissions(m_sRole);\n if (sRolePermisions != null) {\n try {\n ...
"protected void mergeDropCell(RowArea row) {\n if (unresolvedRow == null) {\n return;\n }\n CellArea[] cells = new CellArea[columnNumber];\n Iterator iter = row.getChildren();\n while (iter.hasNext()) {\n CellArea cell = (CellArea) iter.next();\n int colStart = cell.getColumnID();\n ...
"private Map<CallString, Map<Location, ValueMapping>> handleNative(MethodGen method, Context context, Map<CallString, Map<Location, ValueMapping>> input, Map<CallString, Map<Location, ValueMapping>> result) {\n String methodId = method.getClassName() + \"String_Node_Str\" + method.getName() + method.getSignature();\...
"public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n response.setContentType(\"String_Node_Str\");\n response.setHeader(\"String_Node_Str\", \"String_Node_Str\");\n response.setHeader(\"String_Node_Str\", \"String_Node_Str\");\n response.setDa...
"public void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException {\n name = ExtUtil.nullIfEmpty(ExtUtil.readString(in));\n multiplicity = ExtUtil.readInt(in);\n predicates = ExtUtil.nullIfEmpty((Vector<XPathExpression>) ExtUtil.read(in, new ExtWrapListPoly()));\n}...
"public ModelAndView transactionInfo(String traceIdParam, long focusTimestamp, int viewVersion, HttpServletResponse response) {\n logger.debug(\"String_Node_Str\", traceIdParam);\n final TransactionId traceId = new TransactionId(traceIdParam);\n final SpanResult spanResult = this.spanService.selectSpan(traceId...
"private void propagateFileName(Project project, Property property) throws PersistenceException {\n List<IRepositoryViewObject> allVersionToMove = getAllVersion(project, property.getId(), false);\n for (IRepositoryViewObject object : allVersionToMove) {\n if (originalVersion != null && new Version(object.g...
"private void formatSingleComponent() {\n String strPlatform = this.getGlobalAttribute(\"String_Node_Str\", null);\n ucar.nc2.Variable identVar;\n if (strPlatform != null) {\n identVar = this.getVariableByName(strPlatform);\n } else {\n identVar = this.stationVariable;\n }\n for (Map.Ent...
"private Message createMessage(Message newMessage, Map<String, Serializable> headerSettings, Serializable payload, boolean lastMessage) {\n FlowStep flowStep = componentContext.getFlowStep();\n ComponentStatistics statistics = componentContext.getComponentStatistics();\n String unitOfWork = flowStep.getCompone...
"public void testPE1603() throws Throwable {\n assertTimestampValue(2, null);\n conn.execute(\"String_Node_Str\");\n assertTimestampValue(2, 10l);\n conn.execute(\"String_Node_Str\");\n assertTimestampValue(2, null);\n conn.execute(\"String_Node_Str\");\n assertTimestampValue(2, 300000000l);\n c...
"public Boolean deleteProject(Long poid) throws ServerException, UserException {\n requireAuthenticationAndRunningServer();\n BimDatabaseSession session = bimServer.getDatabase().createSession();\n try {\n BimDatabaseAction<Boolean> action = new DeleteProjectDatabaseAction(session, accessMethod, bimServ...
"private void handleResponse(ImageLoader.ImageContainer response, boolean isLoResResponse) {\n if (response.getBitmap() != null) {\n mImageView.setImageBitmap(response.getBitmap());\n if (isLoResResponse) {\n ReaderAnim.fadeIn(mImageView, ReaderAnim.Duration.MEDIUM);\n getHiResIma...
"public Object setValue(Object newValue) {\n return ((FactoryImpl.MProxy) FactoryImpl.getProxyByName(name)).put(key, newValue);\n}\n"
"public void addMessageToQueue(String number, String message) {\n ContentValues cv = new ContentValues();\n cv.put(KEY_NUMBER_REFERENCE, numberReference);\n cv.put(KEY_MESSAGE, message);\n open();\n db.insert(SQLitehelper.QUEUE_TABLE_NAME, null, cv);\n close();\n}\n"
"public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) {\n if (!canHandleEvent())\n return false;\n setSelectedIndex(INDEX_NONE);\n scrollBy(0, (int) distanceY);\n invalidate();\n return true;\n}\n"
"private void updateProblemIndication(Diagnostic diagnostic) {\n Assert.isNotNull(diagnostic);\n int lastEditorPage = getPageCount() - 1;\n if (lastEditorPage >= 0 && getItemControl(lastEditorPage) instanceof ProblemIndicationComposite) {\n ((ProblemIndicationComposite) getItemControl(lastEditorPage)).s...
"private CharSequence optionTok() {\n while (lexer.hasNext()) {\n CharSequence cs = lexer.next();\n if (!whitespace.contains(cs)) {\n return cs;\n }\n }\n return null;\n}\n"
"public void run() {\n try {\n super.run();\n TreeObject xobject = null;\n if (selObj == null) {\n ISelection selection = this.server.getViewer().getSelection();\n xobject = (TreeObject) ((IStructuredSelection) selection).getFirstElement();\n } else {\n xo...
"private TickRateModulation breakBlock(final boolean modulate) {\n if (this.isAccepting && this.getProxy().isActive()) {\n try {\n final TileEntity te = this.getTile();\n final WorldServer w = (WorldServer) te.getWorld();\n final BlockPos pos = te.getPos().offset(this.getSide(...
"private void restoreDefaultAPN(int subId) {\n SQLiteDatabase db = mOpenHelper.getWritableDatabase();\n try {\n db.delete(CARRIERS_TABLE, where, null);\n } catch (SQLException e) {\n loge(\"String_Node_Str\" + e);\n }\n setPreferredApnId((long) INVALID_APN_ID, subId);\n mOpenHelper.initD...
"public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n outState.putIntegerArrayList(KEY_OLD_SITES_IDS, mOldSitesIDs);\n outState.putString(KEY_REQUESTED_EMAIL, mRequestedEmail);\n outState.putString(KEY_GOOGLE_EMAIL, mGoogleEmail);\n outState.putBoolean(KEY_IS_SOCIAL...
"public void setDroppable(boolean canDrop) {\n if (this.canDrop == canDrop) {\n return;\n }\n if (canDrop) {\n dropIndicator.setResource(MantleImages.images.drop_valid());\n addStyleName(\"String_Node_Str\");\n } else {\n MantleImages.images.drop_invalid().applyTo(dropIndicator);...
"private void createPojoWithCircularDependencies(PodamFactory podamFactory) throws Exception {\n Parent parent = podamInvocationSteps.whenIInvokeTheFactoryForClass(Parent.class, podamFactory);\n int depth = 0;\n while (null != parent) {\n podamValidationSteps.thePojoMustBeOfTheType(parent, Parent.class)...
"private synchronized List getRemoteServiceReferencesConnected(final String clazz, IRemoteFilter filter) {\n List results = new ArrayList();\n if (connectedID == null) {\n try {\n IRemoteServiceReference[] refs = getAllRemoteServiceReferences(clazz, (filter == null) ? null : filter.toString());\...
"public static boolean initialize(Context activityContext) {\n boolean isMasterPasswordSet = false;\n if (!(activityContext instanceof Activity)) {\n Log.e(LOG_TAG, \"String_Node_Str\");\n return;\n }\n AdminActions.initAdmin(activityContext);\n if (SharedPreferencesHelper.getMasterPassword...
"public void parse(InputFile inputFile, Format ext, int type, boolean thumbOnly, boolean resume, RendererConfiguration renderer) {\n int i = 0;\n while (isParsing()) {\n if (i == 5) {\n mediaparsed = true;\n break;\n }\n try {\n Thread.sleep(1000);\n } ...
"public int getTablesCount() {\n return this.getTables().size();\n}\n"
"public void findAllSortedAsync() {\n final DynamicRealm dynamicRealm = initializeDynamicRealm();\n final RealmResults<DynamicRealmObject> allTypes = dynamicRealm.where(AllTypes.CLASS_NAME).between(AllTypes.FIELD_LONG, 0, 4).findAllSortedAsync(AllTypes.FIELD_STRING, Sort.DESCENDING);\n assertFalse(allTypes.isL...
"public Iterator<DownloadJob> iterator() {\n Calendar c = Calendar.getInstance();\n c.setTime(new Date());\n c.add(Calendar.DATE, -14);\n Date compareDate = c.getTime();\n ArrayList<DownloadJob> jobs = new ArrayList<>();\n for (String symbol : symbols) {\n ExpansionSet exp = Sets.findSet(symbol...
"public void setUp() {\n super.setUp();\n rootType = new SDOType(rootTypeUri, rootTypeName);\n rootProperty1 = new SDOProperty(aHelperContext);\n rootProperty1.setName(\"String_Node_Str\");\n SDOType rootProperty1_type = SDOConstants.SDO_STRING;\n rootProperty1_type.setDataType(true);\n rootPropert...