content
stringlengths
40
137k
"public void apply(World world, Random random, boolean beforeGeneration, int x, int y, int z, Block sourceBlock, int sourceMetadata, IvWorldData worldData) {\n BiomeGenBase biome = world.getBiomeGenForCoords(x, z);\n Block topBlock = biome.topBlock;\n Block fillerBlock = biome.fillerBlock;\n Block mainBlock...
"protected IContributionItem[] getContributionItems() {\n int count = 0;\n for (Iterator it = tasks.iterator(); it.hasNext() && count != 5; ) {\n ITask task = (ITask) it.next();\n actions[count].setTask(task);\n count++;\n }\n IContributionItem[] array = null;\n if (count == 5 && tas...
"public static P4Browser findBrowser(String scmCredential) {\n StaplerRequest req = Stapler.getCurrentRequest();\n Job job = req == null ? null : req.findAncestorObject(Job.class);\n P4BaseCredentials credentials = job == null ? ConnectionHelper.findCredential(scmCredential, Jenkins.getActiveInstance()) : Conn...
"private void doMain(String[] args) throws Exception {\n System.out.println(String.format(\"String_Node_Str\", getClass().getSimpleName(), ProjectInfo.getVersion()));\n System.out.println();\n if (args.length < 1) {\n printHelp();\n return;\n }\n Action action = parseAction(args[0]);\n i...
"public void onReceive(Context context, Intent intent) {\n if (intent.getAction().equals(QBServiceConsts.UPDATE_DIALOG)) {\n updateData();\n }\n}\n"
"public void receive(Event[] inEvents) {\n EventPrinter.print(inEvents);\n for (Event event : inEvents) {\n count.incrementAndGet();\n if (count.get() == 1) {\n try {\n Assert.assertEquals(true, new XMLComparator().compare(AXIOMUtil.stringToOM(\"String_Node_Str\" + \"String...
"public void clearVmAddress() {\n try {\n VmInstance vm = VmInstances.lookupByPrivateIp(super.getRequest().getDestination());\n if (vm.getPublicAddress().equals(super.getRequest().getSource())) {\n vm.updatePublicAddress(vm.getPrivateAddress());\n }\n } catch (NoSuchElementExceptio...
"private static void dropOnCAPorExecTc(INodePO node, INodePO target, int location) throws PMReadException, PMAlreadyLockedException, PMDirtyVersionException, PMException {\n ISpecTestCasePO specTcGUItoDrop = (ISpecTestCasePO) node;\n INodePO parentGUI = target.getParentNode();\n int position = parentGUI.indexO...
"public long computeMachineDuration(OperationOrder operationOrder, BigDecimal qty) {\n ProdProcessLine prodProcessLine = operationOrder.getProdProcessLine();\n WorkCenter workCenter = prodProcessLine.getWorkCenter();\n long duration = 0;\n int workCenterTypeSelect = workCenter.getWorkCenterTypeSelect();\n ...
"public void updateTask() {\n this.gem.getNavigator().tryMoveToXYZ(this.posX, this.posY, this.posZ, this.movementSpeed);\n if (this.gem.getDistanceSq(this.posX, this.posY, this.posZ) < 8) {\n this.placed = this.gem.breakBlock(new BlockPos(this.posX, this.posY, this.posZ));\n }\n}\n"
"protected void decorate() {\n for (int i = WIDTH + 1; i < LENGTH - WIDTH; i++) {\n if (map[i] == Terrain.EMPTY) {\n int n = 0;\n if (map[i + 1] == Terrain.WALL) {\n n++;\n }\n if (map[i - 1] == Terrain.WALL) {\n n++;\n }\n ...
"public void characters(UnmarshalRecord unmarshalRecord) {\n if (null == currentSetting || null == currentSetting.getName()) {\n currentSetting = new Setting(null, TEXT_XPATH);\n ((SequencedObject) unmarshalRecord.getCurrentObject()).getSettings().add(currentSetting);\n } else if (!TEXT_XPATH.equals...
"public View getView(int position, View view, ViewGroup parent) {\n int type = getItemViewType(position);\n Object value = values.get(position);\n ViewHolder viewHolder;\n if (view == null) {\n viewHolder = new ViewHolder();\n if (type == TYPE_DIRECTORY) {\n view = inflater.inflate(...
"public void writeFramesSync(CopyOnWriteArrayList<Frame> frames) {\n if (frames == null) {\n if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {\n Tr.debug(tc, \"String_Node_Str\");\n }\n return;\n }\n if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled(...
"private boolean complete(V v, Throwable t, int finalState) {\n boolean doCompletion = compareAndSetState(RUNNING, COMPLETING);\n if (doCompletion) {\n this.value = v;\n this.exception = ((finalState & (CANCELLED | INTERRUPTED)) != 0) ? new CancellationException(\"String_Node_Str\") : t;\n re...
"protected boolean checkFile(IFile file) {\n return file != null && FactoriesUtil.DEFINITION.equalsIgnoreCase(file.getFileExtension());\n}\n"
"private Action getForMinimap(float relativex, float relativey, boolean selecting) {\n float minimapx = (relativex - constants.MINIMAP_BOTTOMLEFT_X) / constants.MINIMAP_WIDTH;\n float minimapy = ((relativey - constants.UI_CENTERY) / (1 - constants.UI_CENTERY) - constants.MINIMAP_BOTTOM_Y) / constants.MINIMAP_HEIG...
"protected final void renderFittingCurve(IPrimitiveRenderer ipr, Location[] points, CurveFitting curve, boolean bShowAsTape, boolean bDeferred) throws ChartException {\n if (!curve.getLineAttributes().isSetVisible()) {\n throw new ChartException(ChartEnginePlugin.ID, ChartException.RENDERING, \"String_Node_St...
"public String customerInfo() {\n Customer customerEntity = new Customer();\n if (!StringUtils.isBlank(customerCodeParam))\n customerEntity = customerService.findCustomerByCustomerCode(customerCodeParam);\n else\n customerEntity = customerService.findCustomerById(getCustomerSessionId());\n cus...
"private void applyAssignee(TurboIssue issue, IModel model) throws QualifierApplicationException {\n if (!content.isPresent()) {\n throw new QualifierApplicationException(\"String_Node_Str\");\n }\n List<TurboUser> assignees = model.getUsers().stream().filter(c -> c.getLoginName().toLowerCase().contains...
"private String getGroupType(DSpaceObject dso, Group group) {\n if (dso.getType() == Constants.COMMUNITY) {\n Community community = (Community) dso;\n if (community.getAdministrators() != null && community.getAdministrators().equals(group))\n return GROUP_TYPE_ADMIN;\n } else if (dso.getT...
"private void dealWithIntents() {\n Intent intent = getIntent();\n try {\n final String json = intent.getStringExtra(IntentConstants.EXTRAS_KEY_BMARK);\n Bookmark bmark = (new Gson()).fromJson(json, Bookmark.class);\n populateFields(bmark);\n } catch (JsonParseException e) {\n Log.e...
"public void reset() {\n close();\n schedulerHandler = timer.scheduleAtFixedRate(this, period, period, TimeUnit.MINUTES);\n}\n"
"public String viewOrders() {\n String column = getColumnFilter();\n List<Orders> orderEntityList = new ArrayList<Orders>();\n if (StringUtils.isNotBlank(column)) {\n orderEntityList = orderService.findOrdersByCriteria(column, order.getOrderKeyword(), getClientId());\n } else {\n orderEntityLi...
"public void movieOffset() throws IOException {\n FilenameFilter filter = new FilenameFilter() {\n public boolean accept(File dir, String name) {\n return name.endsWith(\"String_Node_Str\");\n }\n };\n String[] moviefiles = new File(moviedir).list(filter);\n String lastmovie = \"Str...
"private CharSequence formatMessage(MessageItem msgItem, String contact, String body, String subject, String timestamp, Pattern highlight, String contentType) {\n CharSequence template = mContext.getResources().getText(R.string.name_colon);\n SpannableStringBuilder buf = new SpannableStringBuilder(TextUtils.repla...
"private EnvTypePair analyzeSpecializedTypeof(Node typeof, Node typeString, int comparisonOp, TypeEnv inEnv, JSType specializedType) {\n EnvTypePair pair;\n Node typeofRand = typeof.getFirstChild();\n JSType comparedType = getTypeFromString(typeString);\n checkInvalidTypename(typeString);\n if (comparedT...
"private void computeLog2N() throws IllegalArgumentException {\n this.log2N = 0;\n for (int k = this.NPoint; k > 1; k >>= 1, this.log2N++) {\n if (((k % 2) != 0) || (this.NPoint < 0)) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n }\n}\n"
"public boolean apply(Game game, Ability source) {\n Permanent permanent = game.getPermanent(source.getSourceId());\n Player controller = game.getPlayer(source.getControllerId());\n if (permanent != null) {\n return controller.moveCardToExileWithInfo(permanent, null, null, source.getSourceId(), game, nu...
"public String get(String keyIdHex, Proxy proxy) throws QueryFailedException {\n String request = \"String_Node_Str\" + keyIdHex;\n Log.d(Constants.TAG, \"String_Node_Str\" + request + \"String_Node_Str\" + proxy);\n String data;\n try {\n data = query(request, proxy);\n } catch (HttpError httpErr...
"public IStyle getStyle() {\n if (style == null) {\n if (inlineStyle == null) {\n inlineStyle = report.createStyle();\n }\n String styleClass = getStyleClass();\n IStyle classStyle = report.findStyle(styleClass);\n style = new CompositeStyle(classStyle, inlineStyle);\n ...
"public Response performUpdate(final Origin origin, final Update update, final String content, final Keyword keyword, final HttpServletRequest request) {\n final UpdateContext updateContext = initContext(origin);\n try {\n final UpdateContext updateContext = new UpdateContext(loggerContext);\n final...
"private static void pipelineTasks(Logger logger, Function f, Block curr, ExecContext cx, boolean maybeInLoop) {\n for (Continuation cont : curr.allComplexStatements()) {\n boolean contInLoop;\n if (cont.isAsync()) {\n contInLoop = false;\n } else if (cont.isLoop()) {\n con...
"public boolean apply(Game game, Ability source) {\n Player player = game.getPlayer(source.getControllerId());\n if (player == null) {\n return false;\n }\n Cards cards = new CardsImpl(Zone.PICK);\n int count = Math.min(player.getLibrary().size(), 5);\n for (int i = 0; i < count; i++) {\n ...
"protected DbMaintainTask createDbMaintainTask() {\n return new UpdateDatabaseTask(getDbMaintainDatabases(), scriptLocations, scriptEncoding, postProcessingScriptDirectoryName, fromScratchEnabled, autoCreateDbMaintainScriptsTable, allowOutOfSequenceExecutionOfPatches, qualifiers, patchQualifiers, includedQualifiers,...
"private void queryLoop() {\n UDPService udpService = UDPService.instance();\n while (_shouldRun) {\n try {\n waitForQueries();\n GUESSEndpoint toQuery = getUnicastHost();\n if (!_queryKeys.containsKey(toQuery)) {\n PingRequest pr = PingRequest.createQueryKey...
"public boolean isMendelianIncompatibility() {\n if (children == null || children.isNoCall())\n return false;\n if (father == null || father.isNoCall()) {\n return this._isMendelianIncompatibility(children, mother);\n }\n if (mother == null || mother.isNoCall()) {\n return this._isMende...
"public void widgetSelected(SelectionEvent e) {\n ExternalizedTextEditorDialog editor = new ExternalizedTextEditorDialog(getShell(), SWT.APPLICATION_MODAL, buildString(), keys, serviceprovider);\n String sTxt = editor.open(sCurrent);\n if (sTxt != null) {\n this.setText(sTxt);\n if (sKey == null ...
"public int getInt(int col) {\n return rec.getInt(col);\n}\n"
"public TypeAbstraction meet(TypeAbstraction rhs) {\n if (rhs == TOP) {\n return this;\n } else {\n if (rhs instanceof PointType) {\n PointType other = (PointType) rhs;\n if (type.equals(other.type)) {\n return this;\n } else if (type.isArrayClass() ||...
"protected void callAsync(IRemoteCall call, IRemoteCallable callable, IRemoteCallListener listener) {\n if (call.getClass().isAssignableFrom(RSARemoteCall.class)) {\n Callable<IRemoteCallCompleteEvent> c = createAsyncCallable((RSARemoteCall) call);\n if (c == null)\n throw new NullPointerExc...
"public MappeableContainer limit(int maxcardinality) {\n if (maxcardinality >= this.cardinality) {\n return clone();\n }\n if (maxcardinality <= MappeableArrayContainer.DEFAULT_MAX_SIZE) {\n MappeableArrayContainer ac = new MappeableArrayContainer(maxcardinality);\n int pos = 0;\n s...
"public static void propagateDataThresholdsInChildren(Indicator indicator) {\n if (IndicatorsPackage.eINSTANCE.getBoxIndicator().equals(indicator.eClass())) {\n BoxIndicator boxIndicator = (BoxIndicator) indicator;\n String[] dataThreshold = IndicatorHelper.getDataThreshold(boxIndicator);\n if (...
"public void run() {\n if (isAdded()) {\n final Uri localUri = Utils.downloadExternalMedia(getActivity(), Uri.parse(src));\n if (getActivity() != null) {\n getActivity().runOnUiThread(new Runnable() {\n\n public void run() {\n thumbnailImage.setImageURI(localUri);\n...
"public int historySize() {\n return _historyList.size();\n}\n"
"private void setMyCoops(UUID playerUUID, List<String> coops) {\n try {\n HashMap<Location, UUID> temp = new HashMap<Location, UUID>();\n for (String coop : coops) {\n String[] split = coop.split(\"String_Node_Str\");\n if (split.length == 2) {\n Island coopIsland =...
"private void close(Closeable closeable) {\n if (closeable == null) {\n return;\n }\n try {\n closeable.close();\n } catch (IOException ignore) {\n }\n}\n"
"public void startContent(IContent content, IContentEmitter emitter, boolean visible) throws BirtException {\n if (context.isFixedLayout() && (Integer) context.getLayoutEngine().getOption(EngineTask.TASK_TYPE) == IEngineTask.TASK_RUN) {\n LeafBufferNode leafNode = new LeafBufferNode(content, emitter, generato...
"public void addConfiguration(Configuration ti) throws BindException {\n ConfigurationImpl t = (ConfigurationImpl) ti;\n if (t.dirtyBit) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n for (Class<?> c : t.namespace.getRegisteredClasses()) {\n register(c);\n }\n for (Cl...
"public void testDelete() throws Exception {\n Task task = new Task();\n task.setId(1);\n task.setTitle(\"String_Node_Str\");\n task.setDetails(\"String_Node_Str\");\n task.setDoc(\"String_Node_Str\");\n task.setStartDate(new SimpleDateFormat(\"String_Node_Str\").parse(\"String_Node_Str\"));\n task...
"public void perform() {\n String message = TextUtil.implode(args, \"String_Node_Str\").replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n if (!FactionsPlus.permission.has(sender, \"String_Node_Str\")) {\n sender.sendMessage(ChatColor.RED + \"String_Node_Str\");\n return;\n }\n FPlayer fp...
"public void run() {\n updateUIExecutor = (ThreadPoolExecutor) Executors.newFixedThreadPool(1);\n RestClientUtils restClientUtils = WordPress.getRestClientUtils();\n final String today = StatUtils.getCurrentDate();\n final String yesterday = StatUtils.getYesterdaysDate();\n AppLog.i(T.STATS, \"String_Nod...
"public void handleMessage(Message msg) {\n synchronized (this) {\n Log.i(TAG, \"String_Node_Str\" + mDockState);\n if (Settings.Secure.getInt(mContext.getContentResolver(), Settings.Secure.DEVICE_PROVISIONED, 0) == 0) {\n Log.i(TAG, \"String_Node_Str\");\n return;\n }\n ...
"public static Credentials obtainToken(YarnConfiguration configuration, Credentials credentials) {\n if (!UserGroupInformation.isSecurityEnabled()) {\n return credentials;\n }\n try {\n YarnClient yarnClient = YarnClient.createYarnClient();\n yarnClient.init(configuration);\n yarnCl...
"protected void populateFieldIndexMap() {\n fieldIndexMap = new HashMap();\n ILevel[] levels = dimension.getHierarchy().getLevels();\n for (int i = 0; i < levels.length; i++) {\n String[] keyNames = levels[i].getKeyNames();\n if (keyNames != null) {\n for (int j = 0; j < keyNames.lengt...
"public void resolveReferences(AbstractSession session) {\n for (int x = 0, referencesSize = references.size(); x < referencesSize; x++) {\n Reference reference = (Reference) references.get(x);\n if (reference.getMapping() instanceof XMLCollectionReferenceMapping) {\n XMLCollectionReferenceM...
"public void serialize() throws IOException {\n ImmutableMap<RuleKey, ImmutableMap<String, HashCode>> entries = ImmutableMap.of(new RuleKey(\"String_Node_Str\"), ImmutableMap.of(\"String_Node_Str\", HashCode.fromInt(20)));\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n Manifest....
"private static String getMethodImplCode(Integer sequence, Class<?> sourceClass, Class<?> targetClass, boolean deepCopy, final Map<String, PropConverter<?, ?>> propCvtMap) throws Exception {\n StringBuilder methodCode = new StringBuilder();\n methodCode.append(\"String_Node_Str\").append(Object.class.getName()).a...
"public void buildWhere(StringBuilder where, List<QueryByFilterItem> items, Map<String, Object> params, String predicate, String alias, Map<String, Class<?>> froms, Map<String, List<QueryByFilterProjection>> projections, Map<String, List<QueryByFilterOrder>> orders) {\n if (items == null)\n return;\n Itera...
"public int rowCount(List<MarshableFilter> sortedFilter) {\n final Iterator<Row> iterator = iterator(sortedFilter, 0);\n int count = 0;\n while (iterator.hasNext()) {\n iterator.next();\n count++;\n }\n return count;\n}\n"
"public String[] getDistinctValuesOrdered(int column, Hierarchy hierarchy) {\n interrupt = false;\n final String[] list = getDistinctValues(column);\n final String attribute = handle.getAttributeName(column);\n final DataType<?> datatype = handle.getDataType(attribute);\n final int level = handle.getGene...
"public Long getBigLong(Integer value) {\n return new Long(value + new Long(Long.MAX_VALUE / 2));\n}\n"
"public void informAboutAttackable(IAttackable other) {\n if (state == ESoldierState.AGGRESSIVE && (!isInTower || getSoldierType() == ESoldierType.BOWMAN)) {\n state = ESoldierState.SEARCH_FOR_ENEMIES;\n }\n}\n"
"public Response execute() {\n ArrayList<AnnotationInformation> annotations = new ArrayList<>();\n DatabaseAccessor db = null;\n Map<String, Integer> a;\n try {\n db = initDB();\n a = db.getAnnotations();\n List<String> list = new ArrayList<String>(a.keySet());\n for (String labe...
"public void setVideoEncoder(final MediaVideoEncoder encoder) {\n mVideoEncoder = encoder;\n}\n"
"public List<InvoiceLine> createInvoiceLines(Invoice invoice, List<PurchaseOrderLine> purchaseOrderLineList) throws AxelorException {\n List<InvoiceLine> invoiceLineList = new ArrayList<InvoiceLine>();\n for (PurchaseOrderLine purchaseOrderLine : purchaseOrderLineList) {\n if (!ProductRepository.PRODUCT_TY...
"public void setPropertyValue(final String id, Object value) {\n IElementParameter parameter = getElementParameter(id);\n if (id.contains(EParameterName.SCHEMA_TYPE.getName()) || id.contains(EParameterName.QUERYSTORE_TYPE.getName()) || id.contains(EParameterName.PROPERTY_TYPE.getName()) || id.contains(EParameterN...
"public boolean exists() {\n throw new InvalidSqlViewOperationException(\"String_Node_Str\" + getClass().getName() + \"String_Node_Str\" + \"String_Node_Str\");\n}\n"
"public Control createPart(Composite parent) {\n if (shell == null) {\n shell = parent.getShell();\n }\n Composite main = new Composite(parent, SWT.NONE);\n GridLayoutFactory.fillDefaults().numColumns(1).applyTo(main);\n GridDataFactory.fillDefaults().grab(true, true).applyTo(main);\n Label com...
"public static boolean isValidJndiSuffix(String suffix) {\n if (suffix != null) {\n for (String validSuffix : JNDI_SUFFIX_VALUES) {\n if (validSuffix.equals(suffix)) {\n return true;\n }\n }\n }\n return false;\n}\n"
"String uploadTemplateToSwiftFromSecondaryStorage(VMTemplateHostVO templateHostRef) {\n Long templateId = templateHostRef.getTemplateId();\n VMTemplateVO template = _tmpltDao.findById(templateId);\n if (template == null) {\n String errMsg = \"String_Node_Str\" + templateId;\n s_logger.warn(errMsg...
"public int getMinimumLevel() {\n return getMinLevel();\n}\n"
"private Response respond(Map<String, String> headers, IHTTPSession session, String uri) {\n uri = uri.trim().replace(File.separatorChar, '/');\n if (uri.indexOf('?') >= 0) {\n uri = uri.substring(0, uri.indexOf('?'));\n }\n if (uri.startsWith(\"String_Node_Str\") || uri.endsWith(\"String_Node_Str\")...
"public void initialize(IEmitterServices service) {\n if (service != null) {\n this.out = EmitterUtil.getOuputStream(service, \"String_Node_Str\" + getOutputFormat());\n this.reportRunnable = service.getReportRunnable();\n this.actionHandler = (IHTMLActionHandler) service.getOption(RenderOption....
"public BlockingQueue<Runnable> getAllWaitingRunnables() {\n MFConfiguration.getStaticMFLogger().logMessage(TAG, \"String_Node_Str\");\n return workQueue;\n}\n"
"private void createNodes() {\n int i = 0;\n for (WB_FrameNode node : frame.getNodes()) {\n node = frame.getNode(i);\n final ArrayList<WB_FrameStrut> struts = node.getStruts();\n final ArrayList<HE_Vertex> hullPoints = new ArrayList<HE_Vertex>();\n if (nodeTypes[i] == NodeType.ENDPOINT...
"private NodeList createCollection(XMLField xmlField, Node element, Object value, XMLField lastUpdated, DocumentPreservationPolicy docPresPolicy) throws XMLMarshalException {\n XMLNodeList createdElements = new XMLNodeList();\n if ((value == null) || (value instanceof Collection && (((Collection) value).size() ==...
"private static final String instanceIp(Request request) {\n return request.instances[rand.nextInt(request.instances.length)];\n}\n"
"public static void install(PurchaseObserver observer, PurchaseManagerConfig config) {\n if (hasManager()) {\n manager.install(observer, config);\n } else {\n observer.handleInstallError(new RuntimeException(\"String_Node_Str\"));\n }\n}\n"
"public void onHeldItemActivated(OnActivatedComponent event, EntityRef character, CharacterHeldItemComponent heldItemComponent, CharacterComponent characterComponents) {\n if (localPlayer.getCharacterEntity().equals(character)) {\n EntityRef newItem = heldItemComponent.selectedItem;\n linkHeldItemLocat...
"public void simpleMode(InventoryClickEvent event) {\n int slot = event.getSlot();\n if (slot < 0) {\n event.setCursor(null);\n return;\n }\n boolean top = event.getView().convertSlot(event.getRawSlot()) == event.getRawSlot();\n if (top) {\n if (isManagementSlot(slot, 1)) {\n ...
"public void testExpression() {\n Random random = new Random();\n Fuzzer fuzzer = spy(new Fuzzer(random));\n int budget = 1;\n fuzzer.generateExpression(budget);\n verify(fuzzer, never()).generateIdentifier(budget, true);\n verify(fuzzer, never()).generateFunctionCall(budget);\n verify(fuzzer, neve...
"private static Parser<InstExpColim<String, String, String, String, String, String, String, String, String, String, String>> colimInstExp() {\n Parser<List<catdata.Pair<String, InstExp<?, ?, ?, ?, ?, ?, ?, ?, ?>>>> nodes = Parsers.tuple(token(\"String_Node_Str\"), env(inst_ref.lazy(), \"String_Node_Str\")).map(x -> ...
"public String createJoinConditionAsString(List<JoinElement> joinElements) {\n if (joinElements.isEmpty()) {\n return \"String_Node_Str\";\n }\n StringBuilder builder = new StringBuilder();\n for (JoinElement joinElement : joinElements) {\n ModelElement colA = joinElement.getColA();\n S...
"public void componentShown(ComponentEvent e) {\n if (cbSortBy.getSelectedItem() instanceof SortBy) {\n this.currentView.drawCards(sortSetting);\n }\n}\n"
"public void testGroovyPropertyAccessors() {\n runConformTest(new String[] { \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" + \...
"public void createMovienameCfgs() throws IOException {\n String[] prefixes = { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"Stri...
"public void testBaseType001cNegative() throws Exception {\n boolean exception = false;\n String src = \"String_Node_Str\";\n String tmpdir = System.getenv(\"String_Node_Str\");\n try {\n Class[] jClasses = new Class[] { BaseType001c.class };\n Generator gen = new Generator(new JavaModelInputI...
"private static boolean isRouterServiceRunning(Context context, boolean pingService) {\n if (context == null) {\n Log.e(TAG, \"String_Node_Str\");\n return false;\n }\n ActivityManager manager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);\n if (runningBluetoothService...
"public void write(AnnotationInstanceEmitter emitter, IndentedAppendable writer) throws IOException {\n Class c = (Class) type.getType();\n writer.appendLine(c.getSimpleName() + \"String_Node_Str\");\n writer.indent();\n if (superTypes != null && superTypes.size() > 0) {\n writer.appendList(\"String_...
"private boolean videoDecodeStep() {\n int mInputIndex = mVideoDecoder.dequeueInputBuffer(TIME_OUT);\n if (mInputIndex >= 0) {\n ByteBuffer buffer = getInputBuffer(mVideoDecoder, mInputIndex);\n buffer.clear();\n synchronized (Extractor_LOCK) {\n mExtractor.selectTrack(mVideoDecode...
"protected String matchForError(String line) {\n return line.toLowerCase(Locale.US).contains(\"String_Node_Str\") ? line : null;\n}\n"
"public void runTest(int experimentTaskId, ExperimentDAO experimentDAO, SameAsRetriever sameAsRetriever, EvaluatorFactory evFactory, ExperimentTaskConfiguration configuration, TaskObserver observer) {\n ExperimentTask task = new ExperimentTask(experimentTaskId, experimentDAO, sameAsRetriever, evFactory, configuratio...
"public int getApplicabilityRating(PresentationType presentationType, Artifact artifact, Object... objects) throws OseeCoreException {\n if (artifact.isOfType(AtsArtifactTypes.WorkDefinition) && !presentationType.matches(GENERALIZED_EDIT, GENERAL_REQUESTED)) {\n return SUBTYPE_TYPE_MATCH;\n }\n return N...
"public AxisAlignedBB[] getBoxes(IBlockAccess access, BlockPos pos, IBlockState state) {\n List<IdentifiableAABB<Part>> bbs = Lists.newArrayList();\n IdentifiableAABB<Part> base = new IdentifiableAABB<>(getPipeBoundingBox(null), Part.Pipe);\n bbs.add(base);\n TileEntity tile = access.getTileEntity(pos);\n ...
"public IValue resolve(MarkerList markers, IContext context) {\n this.type.resolve(markers, context);\n this.arguments.resolve(markers, context);\n if (!this.type.isResolved()) {\n return this;\n }\n if (this.type.isArrayType()) {\n int len = this.arguments.size();\n int dims = this....
"private Map<String, String> shouldBeCheckedAppMap() {\n Map<String, String> codesVersionMap = new HashMap<String, String>();\n String[] columns = { InstalledAppDb.COLUMN_CODE, InstalledAppDb.COLUMN_VERSION, InstalledAppDb.COLUMN_STATE, InstalledAppDb.COLUMN_PKG_NAME };\n try {\n ContentResolver cr = mC...
"private int getPositionInLinearLayout(View requestedChild) {\n int position = 0;\n for (int i = 0; i < getChildCount(); i++) {\n View child = getChildAt(i);\n if (child == requestedChild) {\n return position;\n }\n if (child.getVisibility() != View.GONE) {\n posi...
"public Map<Csar, List<Usage>> deleteArchives(Location location) {\n ILocationConfiguratorPlugin configuratorPlugin = getConfiguratorPlugin(location);\n List<PluginArchive> pluginArchives = configuratorPlugin.pluginArchives();\n if (CollectionUtils.isEmpty(pluginArchives)) {\n return null;\n }\n S...
"public HierarchyBuilder<T> getBuilder() throws Exception {\n if (type == Type.INTERVAL_BASED) {\n return intervalModel.getBuilder(serializable);\n } else if (type == Type.REDACTION_BASED) {\n return redactionModel.getBuilder();\n } else if (type == Type.ORDER_BASED) {\n return orderModel....