content stringlengths 40 137k |
|---|
"public <K, V> Cache<K, V> getCache(String cacheName) {\n if (isClosed()) {\n throw new IllegalStateException();\n }\n synchronized (caches) {\n RICache cache = caches.get(cacheName);\n if (cache == null) {\n return null;\n } else {\n Configuration<?, ?> config... |
"public void create() throws ResourceAllocationException {\n PhysicalNetworkTrafficType result = _networkService.addTrafficTypeToPhysicalNetwork(getPhysicalNetworkId(), getTrafficType(), getIsolationMethod(), getXenLabel(), getKvmLabel(), getVmwareLabel(), getSimulatorLabel(), getVlan(), getHypervLabel());\n if (... |
"private void setAppManagerReadDynamicProperties(AppManagerRead appManagerRead) {\n updateManagedClusters(appManagerRead);\n updateVersion(appManagerRead);\n}\n"
|
"public void onPlayerMove(PlayerMoveEvent event) {\n if (event.isCancelled()) {\n return;\n }\n if (!plugin.isAuthorized(event.getPlayer())) {\n if (!checkGuest(event.getPlayer(), Config.guests_movement)) {\n if (this.plugin.AuthDB_JoinTime.containsKey(event.getPlayer().getName())) {\n... |
"private TableLayoutInfo resolveTableLayoutInfo(TableArea area) {\n assert (parent != null);\n int avaWidth = parent.getMaxAvaWidth() - parent.getCurrentIP();\n int parentMaxWidth = parent.getMaxAvaWidth();\n IStyle style = area.getStyle();\n validateBoxProperty(style);\n int marginWidth = getDimensio... |
"public Field getField(String name) {\n java.lang.reflect.Field field;\n try {\n field = existing.getDeclaredField(name);\n } catch (NoSuchFieldException e) {\n return null;\n } catch (SecurityException e) {\n return null;\n }\n if (field != null) {\n return new Field(Membe... |
"protected FilterResults performFiltering(CharSequence prefix) {\n FilterResults results = new FilterResults();\n String filter = null;\n if (prefix != null && prefix.length() > 0) {\n filter = prefix.toString().toLowerCase(Locale.US);\n }\n synchronized (data) {\n data.clear();\n fo... |
"public DiskOfferingVO updateDiskOffering(UpdateDiskOfferingCmd cmd) throws InvalidParameterValueException {\n Long diskOfferingId = cmd.getId();\n String name = cmd.getDiskOfferingName();\n String displayText = cmd.getDisplayText();\n String tags = cmd.getTags();\n DiskOfferingVO diskOffering = _diskOff... |
"public void execute() {\n IElementParameter dqRuler = node.getElementParameter(\"String_Node_Str\");\n String newQuery = \"String_Node_Str\";\n if (dqRuler != null || !\"String_Node_Str\".equals(dqRuler.getValue())) {\n newQuery = generateNewQueryFromDQRuler(dqRuler);\n if (newQuery == null || \... |
"public void loadApplication() {\n window.setLoaded(false);\n loader = new Loader();\n updater = new Updater();\n Future<?> future = loadExecutor.submit(loader);\n try {\n future.get();\n } catch (ExecutionException e) {\n Throwable cause = e.getCause();\n cause.printStackTrace();... |
"public static ConnectionStatus testConnection(HDFSConnectionBean connection) {\n ConnectionStatus connectionStatus = new ConnectionStatus();\n connectionStatus.setResult(false);\n String errorMsg = \"String_Node_Str\" + connection.getNameNodeURI() + \"String_Node_Str\";\n Object dfs = null;\n try {\n ... |
"public void rollback(CoinData coinData, Transaction tx) {\n UtxoData utxoData = (UtxoData) coinData;\n if (utxoData == null) {\n return;\n }\n Set<String> addressSet = new HashSet<>();\n if (TxStatusEnum.AGREED.equals(tx.getStatus())) {\n for (UtxoInput input : utxoData.getInputs()) {\n ... |
"private static Value asSesameValue(Node aNode) {\n Value value = null;\n if (aNode instanceof Resource || aNode instanceof NamedGraph || aNode instanceof TripleNode) {\n value = asSesameResource((URIElement) aNode, valueFactory);\n } else if (aNode instanceof BlankNode) {\n value = sesameFactory... |
"public void onError(RiakResponse response) throws RiakException {\n response.operationComplete();\n waiter.countDown();\n}\n"
|
"protected void updatePosition(List<List<DoubleSolution>> swarm) {\n for (int i = 0; i < psoIsland.size(); i++) {\n psoIsland.get(i).updatePosition(swarmList.get(i));\n }\n}\n"
|
"private void defineDatas() {\n datas = new Object[issues.size()][columns.length];\n for (int x = 0; x < issues.size(); x++) {\n RemoteJiraIssue issue = issues.get(x);\n datas[x][0] = issue.getKey();\n datas[x][1] = issue.getSummary();\n datas[x][2] = issue.getStatus();\n datas[... |
"public boolean processRequest(RequestEvent requestEvent) {\n ServerTransaction serverTransaction = requestEvent.getServerTransaction();\n SipProvider jainSipProvider = (SipProvider) requestEvent.getSource();\n Request request = requestEvent.getRequest();\n String requestMethod = request.getMethod();\n i... |
"public void setMode(int mode) {\n if (this.mode == mode)\n return;\n int oldMode = this.mode;\n this.mode = mode;\n if (oldMode == AND && mode == OR) {\n if (matcherEditors.isEmpty()) {\n fireMatchNone();\n } else if (matcherEditors.size() > 1) {\n fireRelaxed(reb... |
"private void clearDirtyFlag() {\n IReportProvider provider = getProvider();\n if (provider != null && getErrorLIine(false) == -1) {\n ModuleHandle oldModel = getModel();\n unhookModelEventManager(oldModel);\n getCommandStack(oldModel).removeCommandStackListener(getCommandStackListener());\n ... |
"public boolean equals(Object object) {\n return object instanceof Logo && ((Logo) object).getId() == this.getId() && ((Logo) object).getLabel().equals(this.getLabel()) && ((Logo) object).getPath().equals(this.getPath()) && ((Logo) object).isDeleted() == this.isDeleted();\n}\n"
|
"public boolean checkStatus(GccRemoveReadyPollerObject gccRemoveReadyPollerObject) {\n LOGGER.info(\"String_Node_Str\", gccRemoveReadyPollerObject.getName(), gccRemoveReadyPollerObject.getStack().getId());\n GccTemplate gccTemplate = (GccTemplate) gccRemoveReadyPollerObject.getStack().getTemplate();\n GccCrede... |
"public void updatePlayer(Server server, List<PlayerInfo> list) {\n try {\n Map<String, Entity> entities = new LinkedHashMap<String, Entity>(15);\n int connected = server.getOnlinePlayers();\n for (PlayerInfo playerInfo : list) {\n try {\n Date playerLastUpdate;\n ... |
"public Response submitJob(List<Job> jobs) {\n Response response = superSubmitJob(jobs);\n if (!response.isSuccess()) {\n List<Line> lines = new ArrayList<Line>();\n for (Job job : response.getFailedJobs()) {\n String line = JsonUtils.objectToJsonString(job);\n lines.add(new Li... |
"protected double calculateProgress(JobControl jc, JobClient jobClient) throws IOException {\n double prog = 0.0;\n prog += Math.max(jc.getSuccessfulJobList().size(), successJobs.size());\n List<ControlledJob> runnJobs = jc.getRunningJobList();\n for (ControlledJob cjob : runnJobs) {\n prog += progre... |
"public static void loadConfig() {\n configJson = new JsonObject();\n File[] configFiles = configDir.listFiles();\n if (!(configFiles == null)) {\n for (File configFile : configFiles) {\n if (configFile.isFile()) {\n try {\n InputStream inputStream = new File... |
"public void entryRemoved(EntryEvent event) {\n final ProxyKey proxyKey = (ProxyKey) event.getKey();\n if (proxies.containsKey(proxyKey)) {\n logger.log(Level.FINEST, \"String_Node_Str\" + proxyKey);\n node.clusterService.enqueueAndReturn(new Processable() {\n public void process() {\n ... |
"public static String getFullMethodString(IJstMethod method, final IJstType ownerType, final boolean optional) {\n return JstDisplayUtils.getFullMethodString(method, ownerType, optional);\n}\n"
|
"public void loop(int quantity) {\n if (!running()) {\n this.loops = quantity;\n taskID = Bukkit.getScheduler().scheduleSyncRepeatingTask(MyPetApi.getPlugin(), () -> {\n if (locationHolder.isValid()) {\n for (int i = 0; i < framesPerTick; i++) {\n tick(frame... |
"Class<?> getSelectedClass(String jar, String jf) {\n if (jf.trim().equals(\"String_Node_Str\")) {\n return null;\n }\n String fn = driver.javaFBPJarFile;\n int j = fn.lastIndexOf(\"String_Node_Str\") + 8;\n String seg = \"String_Node_Str\";\n if (0 <= fn.substring(j, j + 1).compareTo(\"String_... |
"public static void deployAutoscalingPolicy(AutoscalePolicy autoscalePolicyBean) throws RestAPIException {\n log.info(String.format(\"String_Node_Str\", autoscalePolicyBean.getId()));\n AutoscalerServiceClient autoscalerServiceClient = getAutoscalerServiceClient();\n if (autoscalerServiceClient != null) {\n ... |
"public ResourceLimitVO updateResourceLimit(Long accountId, Long domainId, Integer typeId, Long max) {\n Account caller = UserContext.current().getCaller();\n if (max == null) {\n max = new Long(Resource.RESOURCE_UNLIMITED);\n } else if (max.longValue() < Resource.RESOURCE_UNLIMITED) {\n throw ne... |
"protected void dealText(TextItem element, Module module) {\n dealReportItem(element, module);\n String content = (String) element.getLocalProperty(module, TextItem.CONTENT_PROP);\n if (StringUtil.isBlank(content))\n return;\n List jsExprs = DataBoundColumnUtil.getExpressions(content, element, module... |
"public E setAndGet(E update) {\n ClientMessage request = AtomicReferenceSetAndGetCodec.encodeRequest(name, toData(update));\n ClientMessage response = invoke(request);\n return toObject(AtomicReferenceSetAndGetCodec.decodeResponse(response).response);\n}\n"
|
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main_activity);\n Toolbar actionBar = (Toolbar) findViewById(R.id.action_bar);\n setSupportActionBar(actionBar);\n syncLogFragment = (SyncLogFragment) getFragmentManager().findFragmentByI... |
"protected Control createDialogArea(Composite parent) {\n endpoints = Arrays.asList(new String[] { Util.default_endpoint_address });\n parent.getShell().setText(this.title);\n Composite composite = (Composite) super.createDialogArea(parent);\n GridLayout layout = (GridLayout) composite.getLayout();\n lay... |
"public EMovableType popWeaponForBearer() {\n List<RequestStack> stacks = super.getStacks();\n for (RequestStack stack : stacks) {\n if (stack.getMaterialType() == EMaterialType.BOW || stack.getMaterialType() == EMaterialType.SWORD || stack.getMaterialType() == EMaterialType.SPEAR) {\n if (stack... |
"private void resetAllInternalStateLocked(final boolean updateOnlyWhenLocaleChanged) {\n if (!mSystemReady) {\n return;\n }\n final Locale newLocale = mRes.getConfiguration().locale;\n if (!updateOnlyWhenLocaleChanged || (newLocale != null && !newLocale.equals(mLastSystemLocale))) {\n if (!upd... |
"private static void generateNodeInfo(JobInfo jobInfo, String selectedContextName, boolean statistics, boolean properties, int option, IProgressMonitor progressMonitor, IProcess currentProcess) throws ProcessorException {\n if (option != GENERATE_MAIN_ONLY) {\n List<? extends INode> graphicalNodes = currentPr... |
"public IStatus doAction() {\n try {\n if (page.isDirty()) {\n boolean save = MessageDialog.openConfirm(page.getSite().getShell(), \"String_Node_Str\", \"String_Node_Str\" + page.getXObject().getDisplayName() + \"String_Node_Str\");\n if (save) {\n IEditorPart part = Platf... |
"public void onMapReady(GoogleMap googleMap) {\n if (recommendation.getPoiSequence().length > 0) {\n for (Poi poi : recommendation.getPoiSequence()) {\n Marker marker = googleMap.addMarker(new MarkerOptions().position(new LatLng(poi.getLocation().getLatitude(), poi.getLocation().getLongitude())).ti... |
"public static String getStatusDescription(Context context, int statusCode) {\n String ret;\n if (statusCode == BluetoothShare.STATUS_PENDING) {\n ret = context.getString(R.string.status_pending);\n } else if (statusCode == BluetoothShare.STATUS_RUNNING) {\n ret = context.getString(R.string.statu... |
"public AuthenticatedUser authenticateUser(Credentials credentials) throws GuacamoleException {\n RadiusPacket radPack;\n try {\n radPack = radiusService.authenticate(credentials.getUsername(), credentials.getPassword());\n } catch (GuacamoleException e) {\n logger.error(\"String_Node_Str\", e.ge... |
"private void loadBasicInfo() throws EngineException {\n try {\n Object lock = archive.lock(CORE_STREAM);\n try {\n synchronized (lock) {\n RAInputStream in = archive.getStream(CORE_STREAM);\n try {\n DataInputStream di = new DataInputStream(i... |
"public Item getInputItem() {\n if (viewObject != null && viewObject.getProperty() != null)\n return viewObject.getProperty().getItem();\n return null;\n}\n"
|
"public synchronized void drawPlot(Graphics graphics, boolean clearfirst) {\n if (_debug > 7)\n System.out.println(\"String_Node_Str\" + graphics + \"String_Node_Str\" + clearfirst);\n if (graphics == null) {\n System.out.println(\"String_Node_Str\" + \"String_Node_Str\");\n return;\n }\n ... |
"private AuthorityInfo parseAuthority(XmlPullParser parser, int version) {\n AuthorityInfo authority = null;\n int id = -1;\n try {\n id = Integer.parseInt(parser.getAttributeValue(null, \"String_Node_Str\"));\n } catch (NumberFormatException e) {\n Log.e(TAG, \"String_Node_Str\", e);\n } c... |
"void toValueClick() {\n valueKeyboard.setInputTextView(toValue);\n valueKeyboard.setVisibility(View.VISIBLE);\n valueKeyboard.setEntry(toValue.getText().toString());\n toLayout.setAlpha(Constants.ACTIVE_ALPHA);\n fromLayout.setAlpha(Constants.INACTIVE_ALPHA);\n valueKeyboard.setSpendableValue(BigDeci... |
"public byte[] getAddress() {\n if (SettingsManager.instance().getForceIPAddress())\n return SettingsManager.instance().getForcedIPAddress();\n synchronized (Acceptor.class) {\n return _address;\n }\n}\n"
|
"protected void collectConParameters() {\n collectConFieldContextParameters(isCurrentHadoopVersionSupportYarn());\n collectAuthFieldContextParameters(kerberosBtn.getSelection());\n collectKeyTabContextParameters(kerberosBtn.getSelection() && keytabBtn.getSelection());\n if (useClouderaNaviBtn != null) {\n ... |
"public static void onPlayerLoggedIn(PlayerEvent.PlayerLoggedInEvent event) {\n PlayerInformation playerInfo = (PlayerInformation) event.player.getCapability(CapabilityPlayerInformation.PLAYER_INFORMATION, null);\n Stats statsCap = (Stats) event.player.getCapability(CapabilityPlayerStats.STATS, null);\n if (pl... |
"public void configure() {\n bindScope(TestSingleton.class, TestScope.SINGLETON);\n CandlepinCache mockedCandlepinCache = mock(CandlepinCache.class);\n when(mockedCandlepinCache.getProductCache()).thenReturn(mock(Cache.class));\n when(mockedCandlepinCache.getStatusCache()).thenReturn(mock(StatusCache.class)... |
"public void selectARandomSwitch(String switchAlias) {\n List<Switch> switches = getUnaliasedSwitches();\n Assume.assumeFalse(\"String_Node_Str\", CollectionUtils.isEmpty(switches));\n Switch theSwitch = switches.get(0);\n log.info(\"String_Node_Str\", theSwitch.getDpId());\n topologyUnderTest.addAlias(s... |
"public void onEvent(final IEvent<?> event) {\n if (event.getPayload() instanceof AjaxWizard.NewItemEvent) {\n final T item = ((AjaxWizard.NewItemEvent<T>) event.getPayload()).getItem();\n final AjaxRequestTarget target = ((AjaxWizard.NewItemEvent<T>) event.getPayload()).getTarget();\n if (event... |
"public static List<Pipeline> createPipelineLatest(Pipeline pipeline, int noOfPipelines) {\n Task firstTask = pipeline.getStages().get(0).getTasks().get(0);\n AbstractProject firstProject = getProject(firstTask);\n List<Pipeline> result = new ArrayList<Pipeline>();\n Iterator it = firstProject.getBuilds().i... |
"public void send(EventList events, int retriesLeft) throws Exception {\n if (_subject != null) {\n publish(_subject, events);\n } else {\n if (retriesLeft == -1) {\n retriesLeft = _node.getMaxRetries();\n }\n _executor.execute(new EPNTask(_network, _nodeName, _node, _source... |
"private void importDataInit(App app) {\n String lang = getLanguage(app);\n if (lang == null) {\n return app;\n }\n importData(app, DIR_INIT);\n app = appRepo.find(app.getId());\n app.setInitDataLoaded(true);\n saveApp(app);\n}\n"
|
"public void onSuccess(Void arg0) {\n clientFactory.getShellView().getFooterView().showStatus(StatusType.NONE, \"String_Node_Str\" + value + \"String_Node_Str\", 60000);\n reloadCurrentRange();\n}\n"
|
"private boolean isQuarriableBlock(int bx, int by, int bz) {\n Block block = worldObj.getBlock(bx, by, bz);\n return BlockUtils.canChangeBlock(block, worldObj, bx, by, bz) && BlockUtils.isAnObstructingBlock(block, worldObj, bx, by, bz);\n}\n"
|
"protected void decode(ChannelHandlerContext ctx, ByteBuf buf, List<Object> list) throws Exception {\n ByteBuf decrypt = buf;\n NetCrypto crypto = this.client.getCryptoModule();\n if (crypto != null) {\n decrypt = ctx.alloc().buffer();\n crypto.decrypt(buf, decrypt);\n }\n int fullLen = rvi... |
"public final boolean zoomIn() {\n if (bStepFixed) {\n return false;\n }\n if (ChartUtil.mathEqual(0, ((Number) oStep).doubleValue())) {\n return false;\n }\n if ((iType & NUMERICAL) == NUMERICAL) {\n if ((iType & LOGARITHMIC) == LOGARITHMIC) {\n final double dStep = asDou... |
"private void applyMacroBlockLimits(int maxHorizontalBlocks, int maxVerticalBlocks, int maxBlocks, long maxBlocksPerSecond, int blockWidth, int blockHeight, int widthAlignment, int heightAlignment) {\n applyAlignment(widthAlignment, heightAlignment);\n applyBlockLimits(blockWidth, blockHeight, Range.create(1, max... |
"public static Request parse(final byte[] bytes) throws ClassNotFoundException, UnsupportedVersionException {\n ByteBuffer buff = ByteBuffer.wrap(bytes);\n final byte ver = buff.get();\n final Version version = Version.get(ver);\n if (version.ordinal() != Version.v1.ordinal() && version.ordinal() != Version... |
"public void updateRunningAccounts() {\n if (Log.isLoggable(TAG, Log.VERBOSE))\n Log.v(TAG, \"String_Node_Str\");\n Message m = mSyncHandler.obtainMessage(SyncHandler.MESSAGE_ACCOUNTS_UPDATED);\n m.arg1 = resyncAllTargets ? 1 : 0;\n m.sendToTarget();\n}\n"
|
"public Collection<BaseComponent> getBodyComponents() {\n Part part = getBodyPart();\n List<BaseComponent> baseComponents = new ArrayList<>();\n if (part == null)\n return baseComponents;\n int startPos = form.getPartStartYPos(part.getID());\n int endPos = part.getHeight();\n Iterator<IPersist>... |
"private void saveResultIterator(IResultIterator odiResult, int groupLevel, int[] subQueryInfo) throws DataException {\n try {\n boolean isSubQuery = streamManager.isSubquery();\n OutputStream streamForResultClass = null;\n if (isSubQuery == false)\n streamForResultClass = streamManag... |
"public Value computeValue(CSSStylableElement elt, CSSEngine engine, int idx, Value value) {\n if (value.getCssValueType() == CSSValue.CSS_PRIMITIVE_VALUE) {\n CSSPrimitiveValue pvalue = (CSSPrimitiveValue) value;\n int primitiveType = pvalue.getPrimitiveType();\n if (primitiveType == CSSPrimiti... |
"public int hashCode() {\n return Objects.hash(categoryGuid, parentCategoryGuid, relationGuid, description);\n}\n"
|
"public static ArrayList<ItemStack> getAllPlantFruits(ItemSeeds seed, World world, int x, int y, int z, int gain, int meta) {\n Block plant = getPlant(seed);\n ArrayList<ItemStack> items = new ArrayList<ItemStack>();\n if (plant instanceof BlockModPlant) {\n items.addAll(((BlockModPlant) plant).getFruit... |
"protected Command getCreateCommand(CreateRequest request) {\n EditPart after;\n if (getLocationFromRequest(request) == null) {\n after = null;\n } else {\n after = getInsertionReference(request);\n }\n Object model = this.getHost().getModel();\n Object newObject = request.getExtendedDat... |
"private String updateVertexLabels(String currentLabel, SchemaTable schemaTable) {\n if (StringUtils.isEmpty(currentLabel) || currentLabel.equals(this.sqlDialect.getBatchNull())) {\n return schemaTable.toString();\n } else if (currentLabel.equals(schemaTable.toString()) || currentLabel.startsWith(schemaTab... |
"public Result createSession(HttpClient client, Command command) throws IOException {\n Capabilities desiredCapabilities = (Capabilities) command.getParameters().get(\"String_Node_Str\");\n Capabilities desired = desiredCapabilities == null ? new ImmutableCapabilities() : desiredCapabilities;\n int threshold =... |
"public void keyPressed(KeyEvent e) {\n switch(e.getKeyCode()) {\n case KeyEvent.VK_UP:\n break;\n case KeyEvent.VK_DOWN:\n break;\n case KeyEvent.VK_ENTER:\n menu.removeKeyListener(this);\n menu.remove(menu);\n EventConnect.dispatch(new Gam... |
"public void complete(CompleteOperation co) {\n List<String> candidates = new ArrayList<>();\n int offset = completer.complete(cmdCtx, co.getBuffer(), co.getCursor(), candidates);\n co.setOffset(offset);\n co.setCompletionCandidates(candidates);\n String buffer = cmdCtx.getArgumentsString() == null ? co.... |
"public String accessToken() {\n synchronized (accessTokenLock) {\n Optional<Validation<AccessToken>> token = waitForTokenAndClearIfExpired();\n if (!token.isPresent()) {\n Log.warn(\"String_Node_Str\");\n beginRefresh();\n token = waitForTokenAndClearIfExpired();\n ... |
"public void config() {\n MockitoAnnotations.initMocks(this);\n requestStarted = new VRaptorRequestStarted(chain, webRequest, webResponse);\n observer = new RequestHandlerObserver(translator, notFoundHandler, methodNotAllowedHandler, controllerFoundEvent, requestSucceededEvent, interceptorStack, invalidInputHa... |
"private Response executeSseCommand(CommandName commandName, Payload.Inbound inbound, ParameterMap params, String modelETag, Cookie jSessionId) throws WebApplicationException {\n if (RestLogging.restLogger.isLoggable(Level.FINEST)) {\n RestLogging.restLogger.log(Level.FINEST, \"String_Node_Str\", commandName)... |
"public void setStackTrace(String stackTrace) {\n this.stackTrace = \"String_Node_Str\" + stackTrace;\n}\n"
|
"private void delete() {\n try {\n String fullname = getQueueFullName(\"String_Node_Str\", queueName);\n ionic.Msmq.Queue.delete(fullname);\n } catch (MessageQueueException ex1) {\n throw new MessageQueueException(\"String_Node_Str\" + ex1, ex1.hresult);\n }\n}\n"
|
"private static RequestEntity buildMultiPartEntity(final IContext context, final IMendixObject source, Map<String, String> params) throws IOException, CoreException {\n List<Part> parts = Lists.newArrayList();\n if (Core.isSubClassOf(FileDocument.entityName, source.getType())) {\n String partName = getFile... |
"public void onErrorResponse(VolleyError error) {\n ArtworkImageView v = reference.get();\n if (v == null) {\n Timber.w(\"String_Node_Str\");\n return;\n }\n if (v.mErrorImageId != 0) {\n v.setImageResource(v.mErrorImageId);\n }\n}\n"
|
"public void processChild(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, Attributes atts, XMLDescriptor xmlDescriptor, DatabaseMapping mapping) throws SAXException {\n if (xmlDescriptor == null) {\n DescriptorNotFoundContentHandler handler = new DescriptorNotFoundContentHandler(unmarshalRecord,... |
"public void preInit(FMLPreInitializationEvent event) {\n super.preInit(event);\n NetworkRegistry.instance().registerGuiHandler(this, ZhuYaoGangShao.proxy);\n MinecraftForge.EVENT_BUS.register(this);\n ZhuYaoBase.CONFIGURATION.load();\n blockTurret = new BlockTurret(BLOCK_ID_PREFIX);\n blockPlatform =... |
"protected Node cloneNode(boolean deep) {\n Node node = new Node(type, textarray, start, end);\n node.parent = parent;\n node.closed = closed;\n node.implicit = implicit;\n node.tag = tag;\n node.element = element;\n if (attributes != null) {\n node.attributes = (AttVal) attributes.clone();\... |
"public void onMessage(Object msg) {\n if (msg != null && msg instanceof JoinInfo) {\n JoinInfo joinInfo = (JoinInfo) msg;\n if (node.address != null && !node.address.equals(joinInfo.address)) {\n boolean validJoinRequest;\n try {\n validJoinRequest = node.validateJ... |
"public WSItemPK putItem(WSPutItem wsPutItem) throws RemoteException {\n try {\n String projection = wsPutItem.getXmlString();\n Element root = Util.parse(projection).getDocumentElement();\n String concept = root.getLocalName();\n DataModelPOJO dataModel = Util.getDataModelCtrlLocal().get... |
"private void addEEOrDeclaredPermissions(ClassLoader cloader, final PermissionCollection pc, final boolean isEEPermission) {\n if (!(cloader instanceof DDPermissionsLoader))\n return;\n final DDPermissionsLoader ddpl = (DDPermissionsLoader) cloader;\n try {\n AccessController.doPrivileged(new Pri... |
"public LinkedList<WOD> getWODsFromTo(String from, String to) {\n LinkedList<WOD> resultList = new LinkedList<WOD>();\n int start, i = 0;\n int end = 0;\n for (i = 0; i < wods.size(); i++) {\n if (wods.get(i).getYear() == Integer.parseInt(from.substring(4, 8))) {\n if (wods.get(i).getMonth... |
"public final void initialize(DerivativeFunction derivativeFunction, Time startTime, Time maximumTime, double absoluteTolerance, double relativeTolerance, int inputVariableOrder) {\n initializeDerivativeFunction(derivativeFunction);\n initializeSimulationTime(startTime);\n setQuantizationEventTimeMaximum(maxim... |
"public static void setupTest() throws Exception {\n GCWatcher.init(0.60);\n JavaHome.checkJavaHome();\n LocalFileSystem localFS = FileSystem.getLocal(new Configuration());\n File testDirectory = new File(TMPDIR, \"String_Node_Str\").getAbsoluteFile();\n testDirectory.mkdirs();\n Path directory = new ... |
"private static Map _getOrPutTokens(Receiver[][] getReceivers, Receiver[][] putReceivers, RendezvousDirector director, Object tokens, int flag) throws IllegalActionException, TerminateProcessException {\n boolean isGet = (flag & GET) == GET;\n boolean isPut = (flag & PUT) == PUT;\n boolean isGetConditional = (... |
"public void testAnotherIntersection() throws DelaunayError {\n ConstrainedMesh mesh = new ConstrainedMesh();\n ArrayList<Edge> edges = new ArrayList<Edge>();\n edges.add(new Edge(3.055669878287226, 73.03246145782423, 0, 43.70557626947108, 35.35995458365234, 0));\n edges.add(new Edge(3.2192640691458885, 98.... |
"public void setUp() throws MojoExecutionException, MojoFailureException {\n builder = new Library();\n if (directory != null) {\n builder.setDirectory(directory);\n }\n super.setUp();\n if (outputFile == null) {\n if (output == null) {\n outputFile = new File(build.getDirectory(... |
"private static void fillListOfCatalogs(Connection connection, List<String> catalogNames) throws SQLException {\n if (catalogNames.isEmpty()) {\n ResultSet catalogSet = null;\n if (!(ConnectionUtils.isOdbcOracle(connection) || ConnectionUtils.isOdbcIngres(connection))) {\n catalogSet = getCo... |
"public void addNewDefinitions(String definitions, String attributeName) {\n if (definitions.trim().length() == 0) {\n return;\n }\n tlaBuffer.append(COMMENT).append(\"String_Node_Str\").append(ATTRIBUTE).append(attributeName).append(CR);\n tlaBuffer.append(definitions).append(CR).append(SEP).append(... |
"private static String findParameterExp(String script, int fromIndex) {\n int iStart = script.indexOf(ExpressionUtil.PARAMETER_INDICATOR + '[', fromIndex);\n if (iStart < fromIndex) {\n return null;\n }\n int iEnd = script.indexOf(']', iStart);\n if (iEnd < iStart + ExpressionUtil.PARAMETER_INDICA... |
"protected Map<String, Object> getDataModel(Set<String> scopes) {\n Map<String, Object> data = new HashMap<String, Object>(getRequest().getAttributes());\n data.put(\"String_Node_Str\", getRequest().getResourceRef().toString());\n Set<String> displayNames = client.getClient().getDisplayName();\n Set<String>... |
"public static ArrayToken map(FunctionToken function, ArrayToken array) throws IllegalActionException {\n int arity = function.getNumberOfArguments();\n Token[] result = new Token[array.length()];\n if (arity == 1) {\n for (int i = 0; i < array.length(); i++) {\n Token args = (Token) array.ge... |
"public void run() {\n if (mOutputSurface == null) {\n AvLog.d(\"String_Node_Str\");\n return;\n }\n if (mPreviewWidth <= 0 || mPreviewHeight <= 0) {\n Log.e(Aavt.debugTag, \"String_Node_Str\");\n return;\n }\n boolean ret = mShowEGLHelper.createGLESWithSurface(new EGLConfigAt... |
"protected void executeImpl() throws WebDAVServerException, Exception {\n FileFolderService fileFolderService = getFileFolderService();\n NodeRef rootNodeRef = getRootNodeRef();\n String path = getPath();\n String servletPath = getServletPath();\n FileInfo nodeInfo = null;\n try {\n nodeInfo = ... |
"private boolean _isUndoableElement(String elementName) {\n if (elementName.equals(\"String_Node_Str\") || elementName.equals(\"String_Node_Str\") || elementName.equals(\"String_Node_Str\") || elementName.equals(\"String_Node_Str\") || elementName.equals(\"String_Node_Str\") || elementName.equals(\"String_Node_Str\"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.