content
stringlengths
40
137k
"protected RedirectResult createSpecificRedirectResult() {\n if (regkey == null) {\n return createRedirectResult(Const.ActionURIs.STUDENT_HOME_PAGE);\n } else {\n throw new EntityDoesNotExistException(\"String_Node_Str\");\n }\n}\n"
"public CSharpXXXAccessorStub createStub(DotNetXXXAccessor accessor, StubElement stubElement) {\n String name = accessor.getName();\n int otherModifiers = CSharpXXXAccessorStub.getOtherModifiers(accessor);\n return new CSharpXXXAccessorStub(stubElement, otherModifiers);\n}\n"
"public long getAutoIncrementingId(ModelClass model) {\n throw new InvalidDBConfiguration(String.format(\"String_Node_Str\" + \"String_Node_Str\", getModelClass()));\n}\n"
"protected boolean getAllGroupInSameState(Map<String, Group> groups, GroupStatus status, String instanceId) {\n boolean groupStat = false;\n for (Group group : groups.values()) {\n GroupInstance context = group.getInstanceContexts(instanceId);\n if (context != null) {\n if (context.getSta...
"private Instance _getInstance() throws IOException {\n try {\n ComputeEngineInstance node = getNode();\n ComputeEngineCloud cloud = getCloud();\n if (node != null) {\n return cloud.client.getInstance(cloud.projectId, node.zone, node.getNodeName());\n } else {\n retu...
"protected void toBNF(GrammarToBNF grammarToBNF, StringBuilder sb, boolean isNested) {\n boolean isUsingMultiplicationTokens = grammarToBNF.isUsingMultiplicationTokens();\n if (maxRepetitionCount == null) {\n if (minRepetitionCount > 0) {\n if (minRepetitionCount == 1 && isUsingMultiplicationTok...
"protected List<PermissionGroup> getParentsInternal(String world) {\n final List<PermissionGroup> ret = new ArrayList<>();\n new HierarchyTraverser<Void>(this, world, false) {\n protected Void fetchLocal(PermissionEntity entity, String world) {\n for (String groupName : entity.getOwnParentIdenti...
"private void updateEnabled(boolean isRemote) {\n Composite parent = getFieldEditorParent();\n remotePortField.setEnabled(isRemote, parent);\n timeoutField.setEnabled(!isRemote, parent);\n testNumberField.setEnabled(!isRemote, parent);\n persistentField.setEnabled(!isRemote, parent);\n debuggerField.s...
"public FuzzyBoolean matches(ResolvedTypeX[] someArgs) {\n int numArgsMatchedByEllipsis = (someArgs.length + ellipsisCount) - typePatterns.length;\n if (numArgsMatchedByEllipsis < 0)\n return FuzzyBoolean.NO;\n if ((numArgsMatchedByEllipsis > 0) && (ellipsisCount == 0)) {\n return FuzzyBoolean.NO...
"public ptolemy.data.Token get(String name) throws IllegalActionException {\n if (_variablesDependentOn == null) {\n _variablesDependentOn = new HashMap();\n } else {\n if (_variablesDependentOnVersion == workspace().getVersion()) {\n Variable result = (Variable) _variablesDependentOn.get...
"public static void main(String[] args) throws FileNotFoundException {\n int numberOfPoints;\n int granularity;\n double distributionIndex;\n String outputFileName;\n if (args.length != 4) {\n JMetalLogger.logger.info(\"String_Node_Str\");\n JMetalLogger.logger.info(\"String_Node_Str\");\n ...
"public void upload() {\n LOGGER.info(\"String_Node_Str\" + s3url.getSource());\n final ObjectMetadata md = new ObjectMetadata();\n if (this.metadata.getContentType() != null)\n md.setContentType(this.metadata.getContentType());\n if (this.metadata.getContentEncoding() != null)\n md.setContent...
"protected void writeHighlight(DataOutputStream out, HighlightDesign highlight) throws IOException {\n int ruleCount = highlight.getRuleCount();\n IOUtil.writeInt(out, ruleCount);\n for (int i = 0; i < ruleCount; i++) {\n HighlightRuleDesign rule = highlight.getRule(i);\n IOUtil.writeString(out, ...
"public void validate() throws Exception {\n if (this.owner.isNew() && this.owner.getService().getRequestedServerVersion().ordinal() >= ExchangeVersion.Exchange2010_SP2.ordinal()) {\n boolean contactPhotoFound = false;\n for (int attachmentIndex = 0; attachmentIndex < this.getAddedItems().size(); attac...
"private static byte[] writeWorld(String name, String transformedName, byte[] bytes, ClassReader cr) {\n String[] names;\n if (LoadingPlugin.runtimeDeobfEnabled) {\n names = new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node...
"public ArrayList<Kit> loadKits() {\n ArrayList<DataAccess> dataList = new ArrayList<DataAccess>();\n ArrayList<Kit> kits = new ArrayList<Kit>();\n try {\n Database.get().loadAll(new KitDataAccess(), dataList, new String[] {}, new Object[] {});\n for (DataAccess da : dataList) {\n KitD...
"public void costOperator(OptimizerNode n) {\n if (n.getIncomingConnections() == null) {\n throw new CompilerException(\"String_Node_Str\");\n }\n PactConnection primConn = null;\n PactConnection secConn = null;\n {\n List<PactConnection> conns = n.getIncomingConnections();\n if (con...
"public void onPlayerChat(PlayerChatEvent event) {\n if (event.isCancelled()) {\n return;\n }\n Language langfrom = playerManager.getLanguage(event.getPlayer());\n if (Config.language_serverforced) {\n Language langto = Language.fromString(Config.language_default.toLowerCase());\n Strin...
"public void testMakeStaticTableCreate() throws CObjectParseException, IOException {\n Subject s = new Subject(0);\n s.testMakeStaticTableCreate();\n}\n"
"public static String validateIdentifier(final StringBuilder aPattern) {\n final int nLength = aPattern.length();\n final char c1 = aPattern.charAt(0);\n final char c2 = nLength <= 1 ? 0 : aPattern.charAt(1);\n if (c1 == '-' || c1 == '$' || c1 == '*') {\n if (nLength > 1 && Character.isDigit(c2))\n ...
"protected MapRuleDesign createMapRule(MapRuleHandle handle, String defaultStr) {\n MapRuleDesign rule = new MapRuleDesign();\n if (isListStyle) {\n rule.setExpression(handle.getOperator(), handle.getValue1List());\n } else {\n rule.setExpression(handle.getOperator(), handle.getValue1(), handle.g...
"private void initIterResults(Properties props) {\n synchronized (LOCK) {\n boolean nonSpill = \"String_Node_Str\".equalsIgnoreCase(props.getProperty(GuaguaConstants.GUAGUA_MASTER_RESULT_NONSPILL, \"String_Node_Str\"));\n if (nonSpill && isWorkerCombinable(props.getProperty(GuaguaConstants.GUAGUA_WORKE...
"public boolean execute(LocalDataArea lda) {\n if (lda.stack.isEmpty()) {\n return false;\n }\n lda.stack.push(IncrementActionItem.getResult(lda.popAsNumber()));\n return true;\n}\n"
"protected void _setInputVariables(TypedIOPort port, int channel) throws IllegalActionException {\n if (port.getContainer() != this) {\n throw new IllegalActionException(this, port, \"String_Node_Str\" + \"String_Node_Str\");\n }\n if (!port.isInput()) {\n throw new IllegalActionException(this, p...
"public void ensureExtraCapacity(int nrExtraBytes) {\n if (byteBuffer.capacity() <= byteBuffer.position() + nrExtraBytes) {\n ByteBuffer oldBuffer = byteBuffer;\n byteBuffer = ByteBuffer.allocate(Math.max(oldBuffer.position() * 2, byteBuffer.position() + nrExtraBytes));\n int oldPos = oldBuffer....
"public Object[][] data_marshalDeferrals() {\n return new Object[][] { { false, null, \"String_Node_Str\", \"String_Node_Str\" }, { true, null, \"String_Node_Str\", \"String_Node_Str\" }, { false, \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" }, { true, \"String_Node_Str\", \"String_Node_Str\", \"Str...
"public List<VolumeVO> searchForVolumes(ListVolumesCmd cmd) {\n Account caller = UserContext.current().getCaller();\n List<Long> permittedAccounts = new ArrayList<Long>();\n Long id = cmd.getId();\n Long vmInstanceId = cmd.getVirtualMachineId();\n String name = cmd.getVolumeName();\n String keyword = ...
"private void unregisterVitotronicThingListener(VitotronicBridgeHandler bridgeHandler) {\n if (bridgeHandler != null) {\n bridgeHandler.unregisterThingListener(this);\n else\n logger.debug(\"String_Node_Str\", this.getThing().getUID());\n}\n"
"public InputStream getResourceAsStream(final ResourceManager caller) throws ResourceLoadingException {\n try {\n IUnifiedRepository unifiedRepository = PentahoSystem.get(IUnifiedRepository.class);\n SimpleRepositoryFileData fileData = unifiedRepository.getDataForRead(key.getIdentifierAsString(), Simpl...
"private Object composeResultObject(ManagementServer managementServer, VMInstanceVO vm) {\n SystemVmOperationResultObject result = new SystemVmOperationResultObject();\n if (vm instanceof SecondaryStorageVmVO) {\n SecondaryStorageVmVO ssVm = (SecondaryStorageVmVO) vm;\n result.setId(ssVm.getId());\n...
"private Control createOverviewControl(Composite parent) {\n this.performanceRoot = parent;\n this.performanceRoot.setLayout(new FillLayout());\n this.performanceSash = new SashForm(this.performanceRoot, SWT.VERTICAL);\n this.performanceTableOverview = SWTUtil.createTableDynamic(this.performanceSash, SWT.BO...
"public Sql delete(Entity<?> entity, EntityField ef) {\n return Sqls.create(format(\"String_Node_Str\", entity.getTableName(), ef.getColumnName(), ef.getName())).setEntity(entity);\n}\n"
"public FutureData<HistoricsQuery> get(String id, boolean withEstimate) {\n if (id == null || id.isEmpty()) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n FutureData<HistoricsQuery> future = new FutureData<>();\n URI uri = newParams().forURL(config.newAPIEndpointURI(GET));\n PO...
"protected double updateSocialBeliefAfterVotes(Proposition proposition, int votes, double overallMovement) {\n double currentSocial = getDataModel().getSocialBelief();\n String groupId = getDataModel().getGroupId();\n if ((groupId != null) && (getConn().getGroupById(groupId).getMemberList().size() > 1)) {\n ...
"protected Void doInBackground(Void... urls) {\n surface.getThread().pauseDrawing();\n String sdPath = Environment.getExternalStorageDirectory().getAbsolutePath();\n String path = sdPath + \"String_Node_Str\";\n String filename = \"String_Node_Str\";\n String extension = \"String_Node_Str\";\n if (!ne...
"public void run() {\n boolean sendHashUpdates = Globals.localCache();\n System.out.println(\"String_Node_Str\");\n ByteCircleBuffer bcb = new ByteCircleBuffer(20);\n boolean eof = false;\n byte[] buffer = new byte[163840];\n while (!eof && !super.killed()) {\n if (sendHashUpdates && !ptc.hashQ...
"private long processNotifications() {\n boolean emptyFetch = false;\n try {\n final MessageFetcher fetcher = messagingContext.getMessageFetcher();\n emptyFetch = Transactions.execute(transactional, new TxCallable<Boolean>() {\n public Boolean call(DatasetContext context) throws Exception...
"public byte[] execute(byte[] value, int seqNo) {\n Logger.getLogger(this.getClass().getCanonicalName()).info(\"String_Node_Str\" + seqNo);\n if (random.nextInt(10) == 0) {\n assert (last != null);\n fireSnapshotMade(seqNo + 1, last, value);\n Logger.getLogger(this.getClass().getCanonicalName...
"private TypeI evalTemplatizedType(Node ttlAst, NameResolver nameResolver) {\n ImmutableList<Node> params = getCallParams(ttlAst);\n TypeI firstParam = evalInternal(params.get(0), nameResolver);\n if (firstParam.isFullyInstantiated()) {\n reportWarning(ttlAst, BASETYPE_INVALID, firstParam.toString());\n...
"public static synchronized String replaceSymbolsWithHTML(String value, Type type) {\n value = value.replace(\"String_Node_Str\", \"String_Node_Str\");\n value = value.replace(\"String_Node_Str\", \"String_Node_Str\");\n String replaced = value;\n if (!manaImages.isEmpty()) {\n if (type.equals(Type.T...
"public void sendToAllAround(IMessage message, NetworkRegistry.TargetPoint point) {\n channels.get(Side.SERVER).attr(FMLOutboundHandler.FML_MESSAGETARGET).set(FMLOutboundHandler.OutboundTarget.ALLAROUNDPOINT);\n channels.get(Side.SERVER).attr(FMLOutboundHandler.FML_MESSAGETARGETARGS).set(point);\n channels.get...
"protected void configure() {\n bind(LogWriter.class).to(LocalLogWriter.class);\n expose(LogWriter.class);\n bind(ServiceAnnouncer.class).to(DiscoveryServiceAnnouncer.class);\n bind(QueueReaderFactory.class).in(Scopes.SINGLETON);\n MapBinder<ProgramRunnerFactory.Type, ProgramRunner> runnerFactoryBinder =...
"public static PropertyDescriptor createValuePropertyDescriptor(AbstractParamValueController paramValController, String displayName, String[] values, boolean valuesAreCombinable) {\n final String paramType = paramValController.getParamDesc().getType();\n if (!values.isEmpty()) {\n return new ParamComboProp...
"public boolean apply(Game game, Ability source) {\n Player player = game.getPlayer(source.getControllerId());\n if (player != null) {\n FilterCard filter = new FilterCard(\"String_Node_Str\");\n filter.add(Predicates.or(new CardTypePredicate(CardType.INSTANT), new CardTypePredicate(CardType.SORCERY...
"public DirectBitSet xor(long index, long value) {\n while (true) {\n long l = bytes.readVolatileLong(longIndex << 3);\n long l2 = l ^ value;\n if (bytes.compareAndSwapLong(index << 3, l, l2))\n return this;\n }\n}\n"
"public void widgetSelected(SelectionEvent event) {\n try {\n IRunnableWithProgress op = new IRunnableWithProgress() {\n public void run(IProgressMonitor monitor) {\n connection.setUseAuthen(true);\n isOK = LDAPConnectionUtils.checkParam(getOriginalValueConnection(), f...
"public static LoadBalancerServoInstance lookupServoInstance(final String instanceId) throws LoadBalancingException {\n final EntityTransaction db = Entities.get(LoadBalancerServoInstance.class);\n try {\n LoadBalancerServoInstance sample = LoadBalancerServoInstance.named(instanceId);\n final LoadBa...
"public boolean checkStorageSpace() {\n ArrayList<Media> mList = this.mProject.getMediaAsList();\n Long totalBytesRequired = 0l;\n for (Media media : mList) {\n try {\n if (media == null || media.getPath() == null) {\n } else if (!new File(media.getPath()).exists()) {\n ...
"private void saveShader() {\n String src = shaderEditor.getText().toString();\n if (!compileOnChange) {\n loadShader(src);\n dataSource.update(shaderSpinner.getSelectedItemId(), src, shaderView.renderer.getThumbnail());\n updateAdapter();\n}\n"
"private boolean checkCache(Permission p, Epoch e) {\n rLock.lock();\n try {\n if (loading) {\n return false;\n } else if (cache != null) {\n return checkLoadedCache(p, e);\n }\n } finally {\n rLock.unlock();\n }\n wLock.lock();\n try {\n if (lo...
"public static void main(String[] args) {\n Cell a = VaspOut.getPOSCAR(\"String_Node_Str\");\n System.out.println(a.toString());\n for (int i = 0; i < a.getNumSites(); i++) {\n System.out.println(a.getSite(i).toString());\n List<Site> sitesList = a.getAtomsInSphereSorted(a.getSite(i).getCoords(),...
"public void traverse() {\n pqueue.clear();\n stack.clear();\n if (!lattice.getBottom().isChecked())\n checker.check(lattice.getBottom(), true);\n final int length = lattice.getLevels().length;\n for (int i = 0; i < length; i++) {\n Node[] level;\n level = this.sort(i);\n for ...
"private void tryDownload(AuthenticatedHttpTransportMessage message) {\n listener.statusUpdate(CommCareOTARestoreListener.RESTORE_DOWNLOAD);\n Logger.log(\"String_Node_Str\", \"String_Node_Str\");\n try {\n if (message.getUrl() == null) {\n listener.onFailure(Localization.get(\"String_Node_St...
"public static void setROI(MavLinkDrone drone, Coord3D coord, ICommandListener listener) {\n if (drone == null)\n return;\n msg_command_long msg = new msg_command_long();\n msg.target_system = drone.getSysid();\n msg.target_component = drone.getCompid();\n msg.command = MAV_CMD.MAV_CMD_DO_SET_ROI;...
"public void changeRegimenShouldEndCurrentRegimenAndCreateANewRegimen() {\n String existingTreatmentAdviceId = \"String_Node_Str\";\n String treatmentAdviceId = \"String_Node_Str\";\n String discontinuationReason = \"String_Node_Str\";\n TreatmentAdvice existingTreatmentAdvice = TreatmentAdviceBuilder.start...
"public void onPageScrollStateChanged(int state) {\n if (state == CarouselViewPager.SCROLL_STATE_IDLE) {\n int scalingPages = CarouselConfig.getInstance().pageLimit;\n if (scalingPages == 0) {\n return;\n }\n if (mConfig.scrollScalingMode == CarouselConfig.SCROLL_MODE_BIG_ALL) ...
"public void testReplaceBranch() throws Exception {\n IvyConfigure settings = new IvyConfigure();\n settings.setProject(project);\n settings.execute();\n IvyAntSettings.getDefaultInstance(settings).getConfiguredIvyInstance(settings).getSettings().setDefaultBranch(\"String_Node_Str\");\n project.setProper...
"private void createData() {\n adminGroup = (JpaAdministrativeGroupImpl) settingRepo.createAdministrativeGroup(\"String_Node_Str\");\n adminGroup.addEmail(\"String_Node_Str\");\n adminGroup.addEmail(\"String_Node_Str\");\n adminGroup.setDisplayOrder(0);\n adminGroup.save();\n Map<String, State> stateB...
"public String toString() {\n return queue.toString();\n}\n"
"private void createDropDownComponent(int iXLoc, int iYLoc) {\n if (!bEnabled) {\n return;\n }\n int iShellHeight = 170;\n int iShellWidth = 190;\n if (bGradientEnabled) {\n iShellHeight += 30;\n }\n if (bImageEnabled) {\n iShellHeight += 30;\n }\n if (bAutoEnabled) {\n ...
"public void run() {\n dispose();\n}\n"
"private void swapSuffix(List<ImmutableSegment> suffix, ImmutableSegment segment, boolean closeSegmentsInSuffix) {\n version++;\n if (closeSegmentsInSuffix) {\n for (Segment itemInSuffix : suffix) {\n itemInSuffix.close();\n }\n }\n pipeline.removeAll(suffix);\n if (segment != nu...
"public String getAttribute(Attribute attribute) {\n if (attribute == null)\n return null;\n if (attribute.startsWith(\"String_Node_Str\") && attribute.hasContext(1) && (attribute.startsWith(\"String_Node_Str\", 2) || attribute.startsWith(\"String_Node_Str\", 2)) && attribute.hasContext(2)) {\n Comp...
"public void createSURF() {\n tracker = FactoryPointSequentialTracker.dda_FH_SURF(200, 3, 200, 2, imageType);\n}\n"
"private boolean deepDecrypt(final ArrayList<DownloadLink> decryptedLinks) {\n if (decryptedLinks.isEmpty())\n return false;\n final ArrayList<DownloadLink> newdecryptedLinks = new ArrayList<DownloadLink>();\n boolean hasDecryptedLinks = false;\n class DThread extends Thread {\n\n Thread threa...
"private void instantiateQuery(Indicator indicator) {\n if (ColumnsetPackage.eINSTANCE.getColumnSetMultiValueIndicator().isSuperTypeOf(indicator.eClass())) {\n ColumnSetMultiValueIndicator colSetMultValIndicator = (ColumnSetMultiValueIndicator) indicator;\n final EList<Column> analyzedColumns = colSetM...
"public boolean commit() {\n try {\n if (writeSet.isEmpty())\n return true;\n try {\n writeSet.forEach(lockProcedure);\n readSet.checkClock(localClock, locksMarker);\n } catch (TransactionException exception) {\n lockProcedure.unlockAll();\n ...
"protected void createCommandArea(Composite parent) {\n JavaTextControl nameControl = new JavaTextControl(ControlTypes.NAME, getOffsetLabelLocation(), name) {\n protected ValueStatus isControlValueValid(Control control) {\n ValueStatus status = super.isControlValueValid(control);\n if (!...
"public Format setInputFormat(Format in) {\n if (!(in instanceof VideoFormat) || null == JNIDecoder.matches(in, inputFormats))\n return null;\n VideoFormat videoIn = (VideoFormat) in;\n Dimension inSize = videoIn.getSize();\n if (inSize == null)\n inSize = new Dimension(DEF_WIDTH, DEF_HEIGHT);...
"public void configure(OETLProcessor iProcessor, final ODocument iConfiguration, OBasicCommandContext iContext) {\n super.configure(iProcessor, iConfiguration, iContext);\n if (iConfiguration.containsField(\"String_Node_Str\"))\n file = iConfiguration.field(\"String_Node_Str\");\n if (iConfiguration.con...
"public Object[] getChildren(Object object) {\n if (object instanceof XWikiEclipsePageSummary) {\n final XWikiEclipsePageSummary pageSummary = (XWikiEclipsePageSummary) object;\n try {\n DataManager dataManager = pageSummary.getDataManager();\n List<XWikiEclipseObjectSummary> obje...
"private void setupDetailsOverviewRow() {\n Log.d(TAG, \"String_Node_Str\" + mSelectedMovie.toString());\n final DetailsOverviewRow row = new DetailsOverviewRow(mSelectedMovie);\n row.setImageDrawable(getResources().getDrawable(R.drawable.default_background));\n int width = Utils.convertDpToPixel(getActivit...
"public Object executeImpl(ExecutionEvent event) {\n Object testSuiteToStartObj = null;\n Object runningAutObj = null;\n ITestSuitePO testSuiteToStart = null;\n AutIdentifier runningAut = null;\n try {\n testSuiteToStartObj = event.getObjectParameterForExecution(TEST_SUITE_TO_START);\n runn...
"public static List<MetadataColumn> guessSchemaFromArray(final CsvArray csvArray, boolean isFirstLineCaption, MetadataEmfTableEditorView tableEditorView, int header) {\n List<MetadataColumn> columns = new ArrayList<MetadataColumn>();\n if (csvArray == null) {\n return columns;\n } else {\n List<S...
"public static Dispatcher lookup(ServiceConfiguration config) {\n try {\n return config.lookupService().getDispatcher();\n } catch (NoSuchServiceException ex) {\n LOG.error(ex, ex);\n throw new NoSuchElementException(\"String_Node_Str\" + config.toString());\n }\n}\n"
"private IFile getPropertyFile(Resource resource) {\n if (resource != null) {\n EList<EObject> modelElements = resource.getContents();\n ModelElement modelElement = (ModelElement) EcoreUtil.getObjectByType(modelElements, CorePackage.eINSTANCE.getModelElement());\n if (modelElement != null) {\n ...
"private void copyHeaders() {\n for (Iterator<Map.Entry<Object, Object>> headersIterator = getHeaders().entrySet().iterator(); headersIterator.hasNext(); ) {\n Map.Entry<Object, Object> entry = headersIterator.next();\n response.setHeader(entry.getKey().toString(), entry.getValue().toString());\n }\...
"private final void cleanUpApplicationRecordLocked(ProcessRecord app, boolean restarting, int index) {\n if (index >= 0) {\n mLRUProcesses.remove(index);\n }\n if (app.crashDialog != null) {\n app.crashDialog.dismiss();\n app.crashDialog = null;\n }\n if (app.anrDialog != null) {\n ...
"public IIndicatorDefaultValueService getIndicatorDVService() {\n DataQualityPlugin defaultDQPlugin = DataQualityPlugin.getDefault();\n if (indicatorDV == null && defaultDQPlugin != null) {\n BundleContext context = defaultDQPlugin.getBundleContext();\n if (context != null) {\n ServiceRef...
"void createCube(DataEngine engine) throws IOException, BirtException, OLAPException {\n IDocumentManager documentManager = DocumentManagerFactory.createFileDocumentManager(documentPath + engine.hashCode(), cubeName);\n Dimension[] dimensions = new Dimension[6];\n String[] levelNames = new String[1];\n leve...
"private void consumeCraftingItems(boolean internal, List<CraftingRecipe.StackWithCount> stackWithCounts, int keep) {\n for (CraftingRecipe.StackWithCount stackWithCount : stackWithCounts) {\n ItemStack stack = stackWithCount.getStack();\n int count = stackWithCount.getCount();\n for (int j = 0;...
"public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {\n try {\n if (Utils.getAsBoolean(System.getProperty(\"String_Node_Str\", \"String_Node_Str\"))) {\n FormElementHelper.INSTANCE.reload();\n }\n...
"public void setIconToggled(boolean toggled) {\n this.toogled = toggled;\n if (this.toogled) {\n advanced.setIcon(toggledIcon);\n learnerPanel.setPreferredSize(new Dimension(575, 400));\n }\n if (!toggled) {\n advanced.setIcon(icon);\n learnerPanel.setPreferredSize(new Dimension(...
"public void run() {\n SelectedResources selectedResources = new SelectedResources();\n IFile[] selectedFiles = selectedResources.getSelectedResourcesArrayForDelForever();\n try {\n String fileString = ResourceManager.getLibrariesFolder().getLocation().toOSString() + \"String_Node_Str\";\n File f...
"public void processTermDissociation(AtlasGlossaryTerm glossaryTerm, Collection<AtlasRelatedObjectId> relatedObjectIds) throws AtlasBaseException {\n if (DEBUG_ENABLED) {\n LOG.debug(\"String_Node_Str\", glossaryTerm.getGuid(), relatedObjectIds, glossaryTerm);\n }\n Objects.requireNonNull(glossaryTerm);...
"private boolean isCommentLine(int index) {\n int start = index;\n while (start >= 0 && script.charAt(start) != '\\n') {\n if (start + 1 < script.length()) {\n if (script.charAt(start) == '/' && script.charAt(start + 1) == '/') {\n return true;\n }\n }\n s...
"private void loadPreferenceForView() {\n SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this);\n analyzerParam.sampleRate = sharedPref.getInt(\"String_Node_Str\", 8000);\n analyzerParam.fftLen = sharedPref.getInt(\"String_Node_Str\", 1024);\n analyzerParam.nFFTAverage = shared...
"public void handshakeIsWorking() throws Exception {\n try (final Connection ignored = new Connection(IRIS_PORT)) {\n } catch (IOException e) {\n Assert.fail(e.getMessage());\n }\n}\n"
"protected void executeImpl(final Action action, final NodeRef actionedUponNodeRef) {\n if (nodeService.exists(actionedUponNodeRef) == true && freezeService.isFrozen(actionedUponNodeRef) == false) {\n if (recordService.isFiled(actionedUponNodeRef) == false) {\n NodeRef recordFolder = (NodeRef) acti...
"private static EarthSmash flyingInSmashCheck(Player player) {\n if (!ALLOW_FLIGHT)\n return null;\n for (EarthSmash smash : instances) {\n if (smash.state == State.LIFTED) {\n if (smash.loc.getWorld().equals(player.getWorld()) && smash.loc.clone().add(0, 2, 0).distanceSquared(player.getL...
"public Class<?> resolveProxyClass(final Unmarshaller unmarshaller, final String[] names) throws IOException, ClassNotFoundException {\n final String name = (String) unmarshaller.readObject();\n final ClassLoader classLoader;\n if (name == null) {\n if (System.getSecurityManager() == null) {\n ...
"protected FilterableCheckboxTreeViewer getCheckboxTreeViewer() {\n return treeViewer.getCheckboxTreeViewer();\n}\n"
"public void encode(RenderedImage im) throws IOException {\n SampleModel sampleModel = im.getSampleModel();\n ColorModel colorModel = im.getColorModel();\n int numBands = colorModel.getNumColorComponents();\n int transType = sampleModel.getTransferType();\n if (((transType != DataBuffer.TYPE_BYTE) && !Co...
"public void onBlockFromTo(BlockFromToEvent event) {\n BukkitBlock block = new BukkitBlock(event.getToBlock());\n if (api.getPlotMeCoreManager().isPlotWorld(block)) {\n String id = PlotMeCoreManager.getPlotId(block.getLocation());\n if (id.isEmpty()) {\n event.setCancelled(true);\n ...
"private Object buildObjectValuesFromDOMRecord(DOMRecord record, AbstractSession session, ObjectBuildingQuery query) {\n DirectMapContainerPolicy cp = (DirectMapContainerPolicy) getContainerPolicy();\n Object container = null;\n if (reuseContainer) {\n Object currentObject = record.getCurrentObject();\n...
"public ResourceCountResponse createResourceCountResponse(ResourceCount resourceCount) {\n ResourceCountResponse resourceCountResponse = new ResourceCountResponse();\n if (resourceCount.getResourceOwnerType() == ResourceOwnerType.Account) {\n Account accountTemp = ApiDBUtils.findAccountById(resourceCount.g...
"public boolean nextFrame() {\n if ((currentFrame < frames - 1) && (currentFrame >= 0)) {\n currentFrame += inc;\n } else {\n if (once) {\n visible = false;\n lockOnce = true;\n setFrame(currentFrame);\n } else {\n currentFrame = 0;\n }\n ...
"public PostStatus getStatusEnum() {\n return PostStatus.fromString(status);\n}\n"
"private void onColumn(Column column, EntityMetadata m, Object entity, EntityType entityType, List<String> relationNames, boolean isWrapReq, Map<String, Object> relations) {\n MetamodelImpl metaModel = (MetamodelImpl) KunderaMetadata.INSTANCE.getApplicationMetadata().getMetamodel(m.getPersistenceUnit());\n String...
"public static void setSubtypes(BiomeDictionary.Type type, List<BiomeDictionary.Type> types) {\n SafeReflector.of(BiomeDictionary.Type.class, field -> field.set(type, types), \"String_Node_Str\");\n}\n"