content stringlengths 40 137k |
|---|
"public void withdraw(WithdrawDTO withdrawDTO) {\n checkAccount(withdrawDTO);\n Config config = getConfig(withdrawDTO.getTokenName());\n Assert.notNull(config, CommonConstants.TOKEN_ERR);\n checkCanWithdraw(withdrawDTO, config);\n checkEthBalance(withdrawDTO, config);\n Transaction transaction = new T... |
"public void run() {\n ClusterInstanceContext instanceContext = getAllNetworkPartitionCtxts().get(networkPartitionId).getClusterInstanceContext(instanceId);\n for (ClusterLevelPartitionContext partitionContext : instanceContext.getPartitionCtxts()) {\n log.info(\"String_Node_Str\" + getClusterId() + \"Stri... |
"public Configuration getUserConfiguration() throws ConfigurationException {\n if (userConfiguration == null) {\n String property = System.getProperty(USER_CONFIG_PATH);\n File userConfigurationFile;\n if (property == null || property.isEmpty()) {\n userConfigurationFile = new File(Op... |
"public String getAudioRtpdumpFile() {\n return audioRtpdumpFile;\n}\n"
|
"public PreparedStatement createPreparedStatement(final Connection conn) throws SQLException {\n final PreparedStatement ret = conn.prepareStatement(INSERT[0]);\n boolean paused = spec.isPaused();\n if (isPostJob) {\n paused = false;\n }\n ret.setObject(1, jobId);\n ret.setObject(2, project.get... |
"private Object wrapValue(String key, Object value, Class<? extends IAttribute> dbClass) {\n if (dbClass.equals(EnumExclusiveValue.class)) {\n return new EnumAttribute(key, \"String_Node_Str\", (String) value);\n }\n if (dbClass.equals(EnumMultipleValue.class)) {\n return new MultiEnumAttribute(k... |
"public IValue resolve(MarkerList markers, IContext context) {\n if (this.instance != null) {\n this.instance.resolve(markers, context);\n }\n this.arguments.resolve(markers, context);\n IMethod method = IAccess.resolveMethod(context, this.instance, this.name, this.arguments);\n if (method != null... |
"public void replacePrevPos(SearchState searchState, long newValue) {\n checkValueForPut(newValue);\n long prevPos = searchState.searchPos;\n if (!searchState.putAfterFailedSearch)\n prevPos = stepBack(prevPos);\n if (oldValueInPositions) {\n long oldEntry = bytes.readInt48(prevPos);\n ... |
"public void setSelected(boolean value) {\n if (value && !isSelected) {\n howManySelected++;\n holder.mRowLayout.setSelected(true);\n holder.mRowLayout.setBackgroundColor(ContextCompat.getColor(mContext, R.color.light_teal));\n } else if (!value && isSelected) {\n howManySelected--;\n ... |
"public <R> void batchCallback(List<? extends Row> actions, Object[] results, Batch.Callback<R> callback) throws IOException, InterruptedException {\n LOG.trace(\"String_Node_Str\");\n Preconditions.checkArgument(results.length == actions.size(), \"String_Node_Str\");\n List<ListenableFuture<Object>> resultFut... |
"private void addManCenterInfo(Node hazelcastNode, int clusterSize, PhoneHomeParameterCreator parameterCreator) {\n InputStreamReader reader = null;\n InputStream inputStream = null;\n int responseCode;\n String version;\n String license;\n try {\n ManagementCenterConfig managementCenterConfig ... |
"protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {\n super.initForm(formLayout, listener, ureq);\n minScoreEl = uifactory.addTextElement(\"String_Node_Str\", \"String_Node_Str\", 8, \"String_Node_Str\", formLayout);\n minScoreEl.setEnabled(false);\n ScoreBuilder ... |
"public void setResourceLimits(AccountJoinVO account, boolean accountIsAdmin, ResourceLimitAndCountResponse response) {\n long vmLimit = ApiDBUtils.findCorrectResourceLimit(account.getVmLimit(), account.getId(), ResourceType.user_vm);\n String vmLimitDisplay = (accountIsAdmin || vmLimit == -1) ? \"String_Node_Str... |
"protected Boolean doInBackground(OUser... params) {\n try {\n OUser user = params[0];\n Odoo odoo = Odoo.createInstance(mContext, (user.isOAuthLogin()) ? user.getInstanceURL() : user.getHost());\n odoo.helper.OUser mUser = odoo.authenticate(user.getUsername(), user.getPassword(), (user.isOAuthL... |
"public void applyRelationships(OSchemaHelper helper) {\n super.applyRelationships(helper);\n helper.setupRelationship(OCLASS_NAME, \"String_Node_Str\", DeploymentEntityHandler.OCLASS_NAME);\n helper.setupRelationship(OCLASS_NAME, \"String_Node_Str\", HistoricVariableInstanceEntityHandler.OCLASS_NAME, \"String... |
"public void printFields(PrintStream ps, String prefix) {\n ps.println(prefix + \"String_Node_Str\" + getSbSigAsString() + \"String_Node_Str\");\n ps.println(prefix + \"String_Node_Str\" + getSbBlkSize());\n ps.println(prefix + \"String_Node_Str\" + getSbBlkCount());\n ps.println(prefix + \"String_Node_Str\... |
"public long getAndAdd(long delta) {\n return 0;\n}\n"
|
"public void testCursorWithoutMeasure() throws Exception {\n ICubeQueryDefinition cqd = new CubeQueryDefinition(CubeUtility.cubeName);\n IEdgeDefinition rowEdge = cqd.createEdge(ICubeQueryDefinition.ROW_EDGE);\n IDimensionDefinition rowdim1 = rowEdge.createDimension(\"String_Node_Str\");\n IHierarchyDefinit... |
"public static DBObject toProjection(Query<?, ?> query) {\n BasicDBObject proj = new BasicDBObject();\n if (query.getFields() != null) {\n for (String k : query.getFields()) proj.put(k, true);\n }\n return proj;\n}\n"
|
"private Node tryFoldAdd(Node node, Node left, Node right) {\n Preconditions.checkArgument(node.getType() == Token.ADD);\n if (NodeUtil.isLiteralValue(left, false) && NodeUtil.isLiteralValue(right, false)) {\n return tryFoldAddConstant(node, left, right);\n } else {\n return tryFoldLeftChildAdd(n... |
"public Optional<DataHubKey> findLatestId(String channelName) {\n try {\n DataHubKey lastUpdatedKey = channelsCollection.getLastUpdatedKey(channelName);\n return Optional.fromNullable(lastUpdatedKey);\n } catch (HInvalidRequestException e) {\n throw maybePromoteToNoSuchChannel(e, channelName)... |
"public void buildForeignStyle(IForeignContent foreign, StringBuffer styleBuffer, int display, String url) {\n IStyle style = foreign.getStyle();\n handleShrink(display, style, foreign.getHeight(), foreign.getWidth(), styleBuffer);\n if (url != null) {\n setDisplayProperty(display, HTMLEmitterUtil.DISPL... |
"public int getAndAdd(final int key, int amount) {\n final int[] entries = this.entries;\n final int missingValue = this.missingValue;\n final int mask = entries.length - 1;\n int index = Hashing.evenHash(key, mask);\n int oldValue = missingValue;\n int candidateKey;\n while ((candidateKey = entrie... |
"public void actionPerformed(java.awt.event.ActionEvent e) {\n if (jTextField.getText().trim().equalsIgnoreCase(\"String_Node_Str\"))\n return;\n String component = ComponentBox1.getSelectedItem().toString();\n String property = PropertyBox1.getSelectedItem().toString();\n String group = jTextField.g... |
"private Viewport computeScrollViewport(float x, float y) {\n Viewport maxViewport = getMaximumViewport();\n Viewport currentViewport = getCurrentViewport();\n Viewport scrollViewport = new Viewport(currentViewport);\n if (maxViewport.contains(x, y)) {\n final float width = currentViewport.width();\n... |
"private void processChunk(final Element element, final File outputFile) {\n final String hrefValue = element.getAttribute(ATTRIBUTE_NAME_HREF);\n final String chunkValue = element.getAttribute(ATTRIBUTE_NAME_CHUNK);\n final String copytoValue = element.getAttribute(ATTRIBUTE_NAME_COPY_TO);\n final String s... |
"public static void setConfigSectionRedirect(String name, String redirectTo) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"String_Node_Str\", name, redirectTo);\n }\n if (name != null) {\n if (redirectTo != null) {\n CONFIG_SECTION_REDIRECTS.put(name, redirectTo);\n } else {\n ... |
"public void newEvents(List<Event> scannedEvents) {\n for (Event event : scannedEvents) {\n String value = EventUtils.getEventProperty(menuDefinition.getProperty(), event);\n if (value != null) {\n events.add(event);\n }\n }\n}\n"
|
"public List<ExtraSummaryItem> getSummary(DistanceUnit units, boolean sort) throws Exception {\n List<ExtraSummaryItem> summary = new ArrayList<ExtraSummaryItem>();\n if (_segments.size() > 0) {\n Comparator<ExtraSummaryItem> comp = (ExtraSummaryItem a, ExtraSummaryItem b) -> {\n return Double.c... |
"public String getText() {\n if (plot == null) {\n return \"String_Node_Str\";\n } else {\n String header = \"String_Node_Str\" + \"String_Node_Str\";\n StringWriter writer = new StringWriter();\n PrintWriter print = new PrintWriter(writer);\n print.write(\"String_Node_Str\");\n... |
"public void testIssue1085WriteBehindBackupTransactional() throws InterruptedException {\n final String name = randomMapName();\n final int size = 1000;\n MapStoreWithStoreCount mapStore = new MapStoreWithStoreCount(size, 120);\n Config config = newConfig(name, mapStore, 5);\n TestHazelcastInstanceFactor... |
"public void doTrace_A$String() throws Exception {\n final HttpServer server = new HttpServer(new TraceHandler());\n try {\n Runnable runnable = new Runnable() {\n public void run() {\n deleteServer.start();\n }\n };\n new Thread(runnable).start();\n ... |
"protected void firePropertyChange(IndexStatus oldStatus, IndexStatus newStatus) {\n if (listeners != null) {\n if (oldStatus != null && newStatus != null && oldStatus.equals(newStatus)) {\n return;\n }\n Object[] listenerList = listeners.getListenerList();\n for (int i = 0; i ... |
"public boolean isReadOnly() {\n if (isRecovered()) {\n if (nodeCommands.size() == 0 && propCommands.size() == 0 && relCommands.size() == 0 && relTypeCommands.size() == 0 && propIndexCommands.size() == 0) {\n return true;\n }\n return false;\n }\n if (nodeRecords.size() == 0 && ... |
"private SampleData getConvertedSampleData(SampleData currentSampleData, int iSeriesDefinitionIndex) {\n EList<OrthogonalSampleData> osdList = currentSampleData.getOrthogonalSampleData();\n for (int i = 0; i < osdList.size(); i++) {\n if (i == iSeriesDefinitionIndex) {\n OrthogonalSampleData osd... |
"protected void onPostExecute(ArrayList<DiscoveredCamera> cameraList) {\n if (getScanActivity() != null) {\n getScanActivity().showScanResults(cameraList);\n getScanActivity().onScanningFinished();\n }\n pool.shutdown();\n Float scanningTime = Commons.calculateTimeDifferenceFrom(startTime);\n ... |
"public static void dumpRarityDistribution(float bonus) {\n Map<Integer, Integer> counter = new HashMap<Integer, Integer>();\n WeightedRandomSelector.Distribution<Integer> distribution = randomDimlets.createDistribution(bonus);\n for (Integer id : dimletIds) {\n counter.put(id, 0);\n }\n final int... |
"final int startActivityLocked(IApplicationThread caller, Intent intent, String resolvedType, ActivityInfo aInfo, IVoiceInteractionSession voiceSession, IVoiceInteractor voiceInteractor, IBinder resultTo, String resultWho, int requestCode, int callingPid, int callingUid, String callingPackage, int startFlags, Bundle op... |
"private boolean allParentActive(List<ApplicationChildContext> parentContexts, String instanceId) {\n boolean parentsActive = false;\n for (ApplicationChildContext context1 : parentContexts) {\n if (this.inactiveInstancesMap.containsKey(context1.getId()) && this.inactiveInstancesMap.get(context1.getId()).c... |
"private void doExpand() {\n treeViewer.expandToLevel(2);\n treeViewer.collapseAll();\n}\n"
|
"private void revertBindingReinstall(OperationContext context, String bindingName, ModelNode bindingModel, String attributeName, ModelNode previousValue) {\n context.removeService(SOCKET_BINDING.append(bindingName));\n ModelNode unresolvedConfig = bindingModel.clone();\n unresolvedConfig.get(attributeName).set... |
"static int csCompare(CharSequence text, int position, String search) {\n int matchLen = text.length() - position;\n int searchLen = search.length();\n int compareLen = Math.min(matchLen, searchLen);\n for (int i = 0; i < compareLen; i++) {\n int result = search.charAt(i) - text.charAt(position + i);... |
"public boolean getIsActionFailure() {\n return activityLog.getActionResponse().contains(Const.ACTION_RESULT_FAILURE);\n}\n"
|
"protected final SoyExpression visitMinusOpNode(MinusOpNode node) {\n final SoyExpression left = visit(node.getChild(0));\n final SoyExpression right = visit(node.getChild(1));\n if (left.assignableToNullableInt() && right.assignableToNullableInt()) {\n return applyBinaryIntOperator(Opcodes.LSUB, left, ... |
"protected void onAttach(View view) {\n super.onAttach(view);\n dispose(null);\n userEntity = userUtils.getCurrentUser();\n if (\"String_Node_Str\".equals(appPreferences.getProxyType()) || appPreferences.getProxyType() == null) {\n hideProxySettings();\n } else {\n showProxySettings();\n ... |
"public static JsonTreeNode getSchemaTree(String jsonString, int numberOfElementsAccessiable) {\n JsonTreeNode jsonTreeNode = null;\n try {\n ObjectMapper objMapper = new ObjectMapper();\n JsonNode jsonNode = objMapper.readTree(jsonString);\n jsonTreeNode = new JsonTreeNode();\n jsonTr... |
"public void mergeCanopy(MeanShiftCanopy aCanopy, List<MeanShiftCanopy> canopies) {\n MeanShiftCanopy closestCoveringCanopy = null;\n double closestNorm = Double.MAX_VALUE;\n for (MeanShiftCanopy canopy : canopies) {\n double norm = measure.distance(canopy.getCenter(), aCanopy.getCenter());\n if ... |
"public String toString() {\n String returnstring = \"String_Node_Str\";\n if (leaf && type != Block.EMPTY) {\n returnstring = returnstring + \"String_Node_Str\" + body.getPosition().getX() + \"String_Node_Str\" + body.getPosition().getY() + \"String_Node_Str\" + level + \"String_Node_Str\" + type;\n }\... |
"protected void internalCount(File alignmentFile, DataFile annotationFile, File expressionFile, final DataFile genomeDescFile, Reporter reporter, String counterGroup) throws IOException {\n ExpressionPseudoMapReduce epmr = null;\n String lastAnnotationKey = null;\n final String genomicType = getGenomicType();\... |
"public boolean remove(WorkSource other) {\n int N1 = mNum;\n final int[] uids1 = mUids;\n final int N2 = other.mNum;\n final int[] uids2 = other.mUids;\n boolean changed = false;\n int i1 = 0;\n for (int i2 = 0; i2 < N2 && i1 < N1; i2++) {\n if (uids2[i2] == uids1[i1]) {\n N1--;\... |
"public int glGetShaderi(int shader, int param) {\n if (param == GL_SHADER_TYPE)\n return WebGL10.<Integer>glGetShaderParameter(shader, param);\n else\n return WebGL10.<Boolean>glGetShaderParameter(shader, param) ? Constants.GL_TRUE : Constants.GL_FALSE;\n}\n"
|
"private void refreshImage() {\n String str = DEUtil.removeQuote(uriEditor.getText().trim());\n if (str == null || str.length() == 0) {\n return;\n }\n try {\n if (selectedType == URI_TYPE) {\n ImageManager.getInstance().reloadURIImage(inputImage.getModuleHandle(), str);\n } ... |
"public void onImpact(RayTraceResult result) {\n if (!this.getEntityWorld().isRemote && player != null) {\n Stats stats = (Stats) player.getCapability(CapabilityPlayerStats.STATS, null);\n PlayerInformation playerInfo = (PlayerInformation) player.getCapability(CapabilityPlayerInformation.PLAYER_INFORMA... |
"public void run(final CommandSender cs, String label, String[] args) {\n if (!r.perm(cs, \"String_Node_Str\", false, true)) {\n return;\n }\n if (r.checkArgs(args, 0) == false) {\n r.sendMes(cs, \"String_Node_Str\");\n return;\n }\n OfflinePlayer banp = r.searchOfflinePlayer(args[0]... |
"public int hashCode() {\n return id.hashCode();\n}\n"
|
"IParameterDefinition newParam(DataSetParameterHandle modelParam) {\n ParameterDefinition dteParam = new ParameterDefinition();\n dteParam.setName(modelParam.getName());\n if (modelParam.getPosition() != null)\n dteParam.setPosition(modelParam.getPosition().intValue());\n dteParam.setType(adaptModelP... |
"public void shutdown() {\n shuttingDown = true;\n gossiper.shutdown();\n multicast.shutdown();\n for (Member member : memberHolder.getAllMembers()) {\n ((AbstractMember) member).shutdown();\n }\n memberHolder.clear();\n}\n"
|
"protected void paintFigure(Graphics graphics) {\n if (isOpaque()) {\n if (getBorder() instanceof BaseBorder) {\n graphics.fillRectangle(getBounds().getCopy().crop(((BaseBorder) getBorder()).getBorderInsets()));\n } else {\n graphics.fillRectangle(getBounds());\n }\n }\n... |
"public T getModelObject() {\n return field.getModelObject();\n}\n"
|
"public static Map<String, Object> aclToMap(Iterator<ACLEntry> acl) {\n if (acl == null)\n return null;\n Map<String, Object> aclMap = new HashMap<String, Object>();\n while (acl.hasNext()) {\n ACLEntry next = acl.next();\n aclMap.put(next.getEntity(), policy.translatePermissions(next.getR... |
"private Section createTableSectionPart(Composite parentComp, String title, ColumnSetMultiValueIndicator columnSetMultiIndicator) {\n Section columnSetElementSection = this.createSection(form, parentComp, title, null);\n Composite sectionTableComp = toolkit.createComposite(columnSetElementSection);\n sectionTa... |
"protected void setSpaceSelection(CloudSpace selectedSpace) {\n if (cloudSpaceServerDelegate != null) {\n IStatus status = cloudSpaceServerDelegate.validateSpaceSelection(selectedSpace);\n if (status.isOK()) {\n cloudSpaceServerDelegate.setSelectedSpace(selectedSpace);\n set = tru... |
"private void whoLimited(CommandSender sender, String[] args) {\n World world = null;\n if (args.length > 0) {\n world = getServer().getWorld(args[0]);\n }\n String playerList = \"String_Node_Str\";\n int i = 0;\n int j = 0;\n for (Player player : getServer().getOnlinePlayers()) {\n i... |
"protected void listDocuments(WebScriptResponse res, final String store, String path, String pattern) throws IOException {\n String avmPath = buildAVMPath(store, path);\n AVMNodeDescriptor node = this.avmService.lookup(-1, avmPath);\n if (node == null) {\n res.setStatus(Status.STATUS_NOT_FOUND);\n ... |
"public void testAccept4() throws Exception {\n FilterDefinition[] filterDefn = new FilterDefinition[] { new FilterDefinition(new ConditionalExpression(\"String_Node_Str\", ConditionalExpression.OP_GT, \"String_Node_Str\")) };\n IResultIterator resultIterator = getResultIterator(filterDefn, null, null, false);\n ... |
"public void initPaints() {\n mGridPaint = new Paint();\n mGridPaint.setStrokeWidth(mAxis.getGridThickness());\n mGridPaint.setColor(mAxis.getGridColor());\n mGridPaint.setStyle(Paint.Style.STROKE);\n mLabelTextPaint = new Paint();\n mLabelTextPaint.setAntiAlias(true);\n mLabelTextPaint.setTextSize... |
"protected void createCharacteristicsContent(FormToolkit toolkit, Composite charComposite) {\n try {\n WSStoredProcedure wsStoredProcedure = (WSStoredProcedure) (getXObject().getWsObject());\n Label descriptionLabel = toolkit.createLabel(charComposite, \"String_Node_Str\", SWT.NULL);\n descripti... |
"public void deleteBucket(final ObjectStorageProviderClient backendProvider, Bucket bucketToDelete, final String correlationId, User requestUser) throws S3Exception {\n Bucket deletingBucket;\n try {\n deletingBucket = BucketMetadataManagers.getInstance().transitionBucketToState(bucketToDelete, BucketState... |
"protected CompilerOptions getOptions(CompilerOptions options) {\n options.setWarningLevel(DiagnosticGroups.EXTRA_REQUIRE, CheckLevel.ERROR);\n return super.getOptions(options);\n}\n"
|
"private List<RepositoryNode> getRepositoryNodesByTypes(IProjectRepositoryNode projectRepoNode) {\n List<RepositoryNode> rootNodes = new ArrayList<RepositoryNode>();\n List<ERepositoryObjectType> prcessTypes = getTypes();\n if (prcessTypes != null) {\n for (ERepositoryObjectType type : prcessTypes) {\n ... |
"ClassDefinition registerClassDefinition(ClassDefinition cd) {\n if (cd == null)\n return null;\n final ClassDefinitionImpl cdImpl = (ClassDefinitionImpl) cd;\n if (cdImpl.getVersion() < 0) {\n cdImpl.version = getVersion();\n }\n if (cdImpl.getBinary() == null) {\n final BufferObjec... |
"public void testPatternAnnotationProcessorNull() {\n JavaToJSPatternConverter.convertFromJava(null);\n}\n"
|
"public static ImageInfo createFromManifest(UserFullName creator, String imageNameArg, String imageDescription, String eki, String eri, ImageManifest manifest) throws EucalyptusCloudException {\n PutGetImageInfo ret = null;\n String imageName = (imageNameArg != null) ? imageNameArg : manifest.getName();\n eki ... |
"public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {\n final Set<? extends Element> annotatedElements = roundEnv.getElementsAnnotatedWith(Table.class);\n if (annotatedElements.size() > 0) {\n Iterator<? extends Element> iterator = annotatedElements.iterator();\n ... |
"public void render(Renderable renderable, Graphics g) {\n Point position = renderable.getPosition();\n draw(renderable, g, (float) position.getX(), (float) position.getY());\n}\n"
|
"public Uri decryptFileWithSessionKey(ContentResolver contentResolver, Uri fileUri) throws CryptoHelperException {\n Log.d(TAG, \"String_Node_Str\");\n status = false;\n if (password == null) {\n String msg = \"String_Node_Str\";\n throw new CryptoHelperException(msg);\n }\n String outputPa... |
"public ForkJoinWorkerThreadFactory apply(String prefix) {\n return new CustomForkJoinThreadFactory(prefix);\n}\n"
|
"protected boolean outputErrors(List errors) {\n if (errors != null && !errors.isEmpty()) {\n writer.writeCode(\"String_Node_Str\");\n writer.writeCode(\"String_Node_Str\");\n writer.writeCode(\"String_Node_Str\");\n Locale locale = reportContext.getLocale();\n if (locale == null) ... |
"private ApplicationMap createMap(Range range, Range scanRange, List<List<SpanBo>> filterList) {\n final TimeWindow window = new TimeWindow(range, TimeWindowDownSampler.SAMPLER);\n final LinkDataDuplexMap linkDataDuplexMap = new LinkDataDuplexMap();\n final DotExtractor dotExtractor = new DotExtractor(scanRang... |
"default int getSuperTypeDistance(IType superType) {\n IClass iClass = this.getTheClass();\n return iClass == null ? 0 : iClass.getSuperTypeDistance(superType);\n}\n"
|
"public void waitUntilVisible() {\n int c = 0;\n do {\n c++;\n try {\n Thread.sleep(200);\n } catch (Exception e) {\n }\n ;\n } while (!isVisible() && c < 100);\n}\n"
|
"public int horizontalOr_EWAH32(BenchmarkState benchmarkState) {\n EWAHCompressedBitmap32[] a = new EWAHCompressedBitmap32[benchmarkState.ewah32.size()];\n EWAHCompressedBitmap32 bitmapor = EWAHCompressedBitmap32.or(benchmarkState.ewah32.toArray(a));\n int answer = bitmapor.cardinality();\n if (answer != be... |
"public static Object[][] googleSheetDataProvider(Method m) {\n String testMethodName = getFullMethodName(m);\n return getData(testMethodName);\n}\n"
|
"public void validate(UIFormInput uiInput) throws Exception {\n if (uiInput.getValue() == null || ((String) uiInput.getValue()).length() == 0)\n return;\n UIComponent uiComponent = (UIComponent) uiInput;\n UIForm uiForm = uiComponent.getAncestorOfType(UIForm.class);\n String label;\n try {\n ... |
"public void addDependencies(ModelElement element) {\n Analysis analysis = (Analysis) element;\n List<IndicatorDefinition> udis = AnalysisHelper.getUserDefinedIndicators(analysis);\n try {\n for (IndicatorDefinition udi : udis) {\n if (udi == null) {\n continue;\n }\... |
"public void removeNotification(String key, RankingMap ranking) {\n boolean deferRemoval = false;\n if (mHeadsUpManager.isHeadsUp(key)) {\n boolean ignoreEarliestRemovalTime = mRemoteInputController.isSpinning(key) && !FORCE_REMOTE_INPUT_HISTORY;\n deferRemoval = !mHeadsUpManager.removeNotification(... |
"public void setPrefix(String prefix) {\n this.prefix = prefix;\n if (!prefix.endsWith(\"String_Node_Str\")) {\n this.prefix += \"String_Node_Str\";\n }\n}\n"
|
"public void testSimpleRadioButton() {\n new TestSimpleRadioButton();\n if (!GWT.isScript()) {\n try {\n new BrokenSimpleRadioButton();\n throw new Error(ASSERTION_ERROR);\n } catch (AssertionError e) {\n }\n }\n}\n"
|
"public void run() {\n try {\n TableDescriptor descriptor;\n try {\n descriptor = blurConnection.describe(tableName);\n } catch (Exception e) {\n log.error(\"String_Node_Str\" + tableName + \"String_Node_Str\", e);\n return;\n }\n if (descriptor.isE... |
"public void testIsSameName4DiffId() {\n ItemRecord itemRecord1 = mock(ItemRecord.class);\n Property property1 = mock(Property.class);\n when(itemRecord1.getProperty()).thenReturn(property1);\n when(property1.getLabel()).thenReturn(\"String_Node_Str\");\n when(property1.getId()).thenReturn(\"String_Node_... |
"private void showAndHighlightRecommendationAndJumpToRecommendationLocation(AjaxRequestTarget aTarget) {\n if (currentDifference != null) {\n hasUnseenRecommendation = true;\n currentRecommendation = currentDifference.getRecommendation1();\n try {\n actionShowSelectedDocument(aTarget,... |
"public ImagePlus createProbImgFromTestData(final ImagePlus testImage, final int numThreads) {\n IJ.log(\"String_Node_Str\" + testImage.getTitle() + \"String_Node_Str\" + numThreads + \"String_Node_Str\");\n ArrayList<String> classNames = new ArrayList<String>();\n if (null == loadedClassNames) {\n for ... |
"public Date determineDateFormat(String dateString, Locale loc) {\n ArrayList<String> DATE_FORMAT = formatList();\n for (String regexp : DATE_FORMAT) {\n try {\n return parse(dateString, regexp, loc);\n } catch (ParseException e) {\n continue;\n }\n }\n return null... |
"protected void startContainer(IContainerArea container) {\n if (container instanceof PageArea) {\n scale = container.getScale();\n hTextSpace = (int) (H_TEXT_SPACE * scale);\n vTextSpace = (int) (V_TEXT_SPACE * scale);\n newPage(container);\n containerStack.push(new ContainerPosit... |
"public boolean isOnWCETPath(MethodInfo method, InstructionHandle ih) {\n ControlFlowGraph cfg = method.getCode().getControlFlowGraph(false);\n BasicBlockNode block = cfg.getHandleNode(ih);\n for (ExecutionContext node : wcetTool.getCallGraph().getNodes(method)) {\n Long flow = wcaNodeFlow.get(node).get... |
"protected void fireMessageListeners(ID from, String body) {\n for (Iterator i = messageListeners.iterator(); i.hasNext(); ) {\n IIMMessageListener l = (IIMMessageListener) i.next();\n l.handleMessageEvent(new ChatRoomMessageEvent(from, new ChatRoomMessage(from, roomID, body)));\n }\n}\n"
|
"public void add(ComplexEvent complexEvent) {\n try {\n lock.lock();\n if (complexEvent.getType() == ComplexEvent.Type.CURRENT) {\n String groupByKey = QuerySelector.getThreadLocalGroupByKey();\n groupByKeyEvents.put(groupByKey, complexEvent);\n }\n } finally {\n ... |
"public static void applyClassifier(String dir, String fileName, String showResultsFlag, String storeResultsFlag, String probabilityMapsFlag, String storeDir) {\n final ImageWindow iw = WindowManager.getCurrentImage().getWindow();\n if (iw instanceof CustomWindow) {\n final CustomWindow win = (CustomWindow... |
"public void checkWriteAccess(Csar csar) {\n if (toscaTypeSearchService.hasTypes(csar.getName(), csar.getVersion())) {\n AuthorizationUtil.checkHasOneRoleIn(Role.COMPONENTS_MANAGER);\n }\n if (topologyCatalogService.exists(csar.getId())) {\n AuthorizationUtil.checkHasOneRoleIn(Role.ARCHITECT);\n ... |
"public void parse(String[] args) {\n String currentStr = null;\n Option current = null;\n for (int i = 0; i < args.length; i++) {\n if (args[i].startsWith(\"String_Node_Str\")) {\n if (args[i].startsWith(\"String_Node_Str\", 1)) {\n currentStr = args[i].substring(2);\n ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.