content stringlengths 40 137k |
|---|
"protected void drawGuiContainerBackgroundLayer(float f, int X, int Y) {\n GlStateManager.color(1, 1, 1, 1);\n ResourceHelperDE.bindTexture(DETextures.GUI_GRINDER);\n drawTexturedModalRect(guiLeft, guiTop, 0, 0, xSize, ySize);\n float power = (float) tile.energySync.value / (float) tile.getMaxEnergyStored(E... |
"public void updateTextSize(ScaledDimensions dimen, int termDepth) {\n strokeWidth = dimen.get(ScaledDimensions.Type.STROKE_WIDTH);\n if (symbolType == SymbolType.SUMMATION || symbolType == SymbolType.PRODUCT || symbolType == SymbolType.INTEGRAL) {\n setTextSize(TypedValue.COMPLEX_UNIT_PX, dimen.getTextSiz... |
"public void initNodePropertiesFromSerialized(INode node, String serialized) {\n if (node != null) {\n node.setComponentProperties(PropertiesImpl.fromSerialized(serialized, ComponentProperties.class, new Properties.PostSerializationSetup<ComponentProperties>() {\n public void setup(ComponentPropert... |
"public void syncForDead(Address deadAddress) {\n if (deadAddress.equals(thisAddress))\n return;\n for (Block block : blocks) {\n if (block != null) {\n if (deadAddress.equals(block.owner)) {\n MemberImpl member = getNextMemberBeforeSync(block.owner, true, 1);\n ... |
"protected InvoiceLine createInvoiceLine() throws AxelorException {\n InvoiceLine invoiceLine = new InvoiceLine();\n invoiceLine.setInvoice(invoice);\n invoiceLine.setProduct(product);\n invoiceLine.setProductName(productName);\n invoiceLine.setDescription(description);\n Partner partner = invoice.get... |
"protected void mouseClicked(int x, int y, int button) {\n if (button != 0) {\n return;\n }\n int left = (width - XSIZE) / 2;\n int top = (height - YSIZE) / 2;\n int startX = left + XSTART;\n int startY = top + YSTART;\n int mouseX = (x - startX);\n int mouseY = (y - startY);\n int dim... |
"protected void createVbd(Connect conn, VirtualMachineTO vmSpec, String vmName, LibvirtVMDef vm) throws InternalErrorException, LibvirtException, URISyntaxException {\n List<DiskTO> disks = Arrays.asList(vmSpec.getDisks());\n Collections.sort(disks, new Comparator<DiskTO>() {\n public int compare(DiskTO ar... |
"public void createTables() {\n if (!plugin.getConfig().getBoolean(\"String_Node_Str\")) {\n return;\n }\n if (!mysql) {\n }\n Connection c = MySQL.open();\n try {\n c.createStatement().execute(\"String_Node_Str\" + plugin.getConfig().getString(\"String_Node_Str\") + \"String_Node_Str\")... |
"public List<ExecutableNodeBase> getStatisticsNode(String oldSchemaName, String oldTableName, String columnMetaTokenKey, String partitionMetaTokenKey) {\n List<ExecutableNodeBase> statisticsNodes = new ArrayList<>();\n PercentilesAndCountNode pc = new PercentilesAndCountNode(oldSchemaName, oldTableName, columnMet... |
"public void scaleRasterNearestFloat() throws IOException {\n int scale;\n MrGeoRaster scaled;\n for (scale = 1; scale < 15; scale++) {\n scaled = numberedFloat.scale(width * scale, height * scale, false, new double[] { Double.NaN });\n compareResult(scale, scaled);\n }\n for (scale = 2; sc... |
"public ITOCReader getTOCReader(ClassLoader loader) throws EngineException {\n loadCoreStreamLazily();\n if (cachedTreeV0 != null) {\n return new TOCReaderV0(cachedTreeV0);\n }\n try {\n return new TOCReader(archive, loader);\n } catch (IOException ex) {\n throw new EngineException(\... |
"public static User find(Storage storage, String id) {\n Object obj = storage.load(new Path(PATH, id));\n return (obj instanceof User) ? (User) obj : null;\n}\n"
|
"public void writeSessions(OutputStream os, boolean doExpire) throws IOException {\n ObjectOutputStream oos = null;\n try {\n if (container != null) {\n oos = ((StandardContext) container).createObjectOutputStream(new BufferedOutputStream(os));\n } else {\n oos = new ObjectOutp... |
"private Rectangle createDraggableRectangle(double x, double y, double width, double height) {\n final double handleRadius = 10;\n Rectangle rect = new Rectangle(x, y, width, height);\n rect.setVisible(true);\n rect.setFill(Color.BLACK);\n rect.setOpacity(0.1);\n Circle resizeHandleNW = new Circle(han... |
"public void run() {\n disableYieldpoints();\n if (verbose >= 1)\n trace(\"String_Node_Str\", \"String_Node_Str\");\n try {\n for (; ; ) {\n sysCall.sysNanosleep(1000L * 1000L * (long) VM.interruptQuantum);\n RVMThread.timerTicks++;\n for (int i = 0; i < RVMThread... |
"public List define(List types) {\n return getTypeHelperDelegate().define(types);\n}\n"
|
"public void run() {\n try {\n MessageTarget target = new MessageTarget();\n while (flowRuntime.isRunning()) {\n Message inputMessage = inQueue.poll(5, TimeUnit.SECONDS);\n if (running) {\n if (inputMessage instanceof ShutdownMessage) {\n Shutdown... |
"public void init(GLAutoDrawable canvas) {\n setInitGLDone();\n this.gl = canvas.getGL();\n gl.glEnable(GL.GL_LINE_SMOOTH);\n gl.glHint(GL.GL_LINE_SMOOTH_HINT, GL.GL_NICEST);\n gl.glHint(GL.GL_PERSPECTIVE_CORRECTION_HINT, GL.GL_NICEST);\n gl.glLineWidth(1.0f);\n float[] fMatSpecular = { 1.0f, 1.0f,... |
"public INDArray getColumn(int c) {\n ensureNotCleanedUp();\n if (shape.length == 2)\n return vectorAlongDimension(c, 0);\n else if (isRowVector()) {\n return createScalarForIndex(c, true);\n } else if (isColumnVector() && c == 0)\n return this;\n else\n throw new IllegalArgum... |
"public void initChart(IntervalChartDefinition definition) {\n initChart();\n if (definition.usePercentYAxis()) {\n setPercentYAxis();\n }\n chart.setTitle(definition.getTitle());\n CategoryPlot plot = (CategoryPlot) chart.getPlot();\n plot.getRangeAxis().setLabel(definition.getYAxisLabel());\n... |
"public void setUp() throws Exception {\n objectMapper = JsonUtil.createObjectMapper();\n}\n"
|
"public void serializeInto(Map<String, Integer> idMapping) {\n for (I thing : (Iterable<I>) this) {\n idMapping.put(discriminator + func_148750_c(thing), getId(thing));\n }\n}\n"
|
"private void setEquivalence(final OtmEventData wd) {\n final Node n = (Node) mc.getCurrentNode_PropertiesView();\n final String text = wd.getText();\n if (n instanceof PropertyNode)\n ((PropertyNode) n).setEquivalent(text);\n}\n"
|
"public List<ComponentSetting> getComponentsFromProject(Project project) {\n List<ComponentSetting> components = project.getEmfProject().getComponentsSettings();\n return components;\n}\n"
|
"public void createPartControl(Composite parent) {\n service = GitContentServiceProviderManager.getGitContentService();\n if (service != null && service.isGIT())\n service.createDropdownCombo(parent);\n super.createPartControl(parent);\n viewer = getCommonViewer();\n if (service != null && service... |
"public synchronized boolean delete(TModel model, DatabaseWrapper wrapper) {\n modelAdapter.deleteForeignKeys(model, wrapper);\n boolean successful = SQLite.delete(modelAdapter.getModelClass()).where(modelAdapter.getPrimaryConditionClause(model)).executeUpdateDelete(wrapper) != 0;\n if (successful) {\n ... |
"private void fireNameChanged(String name) {\n synchronized (listeners) {\n for (int i = 0; i < listeners.size(); i++) {\n ((IContactListener) listeners.get(i)).nameChanged(name1);\n }\n }\n}\n"
|
"public Set<V> getAll() {\n return Collections.unmodifiableSet(this.map.keySet());\n}\n"
|
"public ChannelPipeline getPipeline() throws Exception {\n final ChannelPipeline pipeline = pipeline();\n pipeline.addLast(\"String_Node_Str\", new Lineage2FrameEncoder());\n pipeline.addLast(\"String_Node_Str\", new Lineage2FrameDecoder());\n pipeline.addLast(Lineage2Encrypter.HANDLER_NAME, new Lineage2Enc... |
"protected boolean equals(InstanceID rowId, InstanceID id) {\n if (rowId != null && id != null) {\n return rowId.toUniqueString().equals(id);\n }\n return false;\n}\n"
|
"public long createRow(String mode, long time, String status, Float speed, long timestamp, Float accuracy, String provider, String wifiData, Vector<ArrayList<Double>> samples, Double latitude, Double longitude) {\n ContentValues vals = new ContentValues();\n SharedPreferences settings = mCtx.getSharedPreferences(... |
"public boolean addComponentParts(World world, Random rand, StructureBoundingBox bb) {\n int centerX = sizeX >> 1, centerZ = sizeZ >> 1;\n if (!isSetup) {\n structure = new LargeStructureWorld(this);\n Random consistentRand = new Random(((startX / 9) * 238504L + (startZ / 9) * 10058432215L) ^ world.... |
"private IResultMetaData getRealMetaData(DataSetHandle dataSetHandle) throws BirtException {\n QueryDefinition query = new QueryDefinition();\n query.setDataSetName(dataSetHandle.getQualifiedName());\n query.setMaxRows(1);\n IResultMetaData metaData = MetaDataPopulator.retrieveResultMetaData(dataSetHandle);... |
"protected void evalSchemaIndicLow(final CatalogIndicator catalogIndic, final SchemaIndicator schemaIndic, final Catalog tdCatalog, final Schema tdSchema, ReturnCode ok) throws SQLException {\n boolean hasSchema = tdSchema != null;\n boolean hasCatalog = false;\n String schemaName = hasSchema ? tdSchema.getNam... |
"public ItemStack decrStackSize(int slot, int amount) {\n if (slot == kJournal[0]) {\n clearRecipeMatrix();\n }\n if (this.inventory[slot] != null) {\n ItemStack itemstack;\n if (slot == kOutput[0]) {\n int toRemove = amount;\n while (toRemove > 0) {\n ... |
"public boolean readRecord(PactRecord target, byte[] bytes, int offset, int numBytes) {\n PactString str = this.theString;\n if (this.ascii) {\n str.setValueAscii(bytes, offset, numBytes);\n } else {\n ByteBuffer byteWrapper = this.byteWrapper;\n if (bytes != byteWrapper.array()) {\n ... |
"private String getUniqueValue(final Multimap<String, String> options, final String key) {\n final Collection<String> values = options.get(key);\n if (values == null || values.size() == 0) {\n return null;\n } else {\n Preconditions.checkState(values.size() == 1, \"String_Node_Str\" + key);\n ... |
"public void setName(String name) {\n if (name == null) {\n throw new IllegalArgumentException(JaiI18N.getString(\"String_Node_Str\"));\n }\n this.name = name;\n lowerCaseName = name.toLowerCase(Locale.ENGLISH);\n}\n"
|
"private void initRenderGraph() {\n NodeFactory nodeFactory = new NodeFactory(context);\n RenderGraph renderGraph = new RenderGraph();\n FBOConfig shadowMapConfig = new FBOConfig(ShadowMapNode.SHADOW_MAP, FBO.Type.NO_COLOR).useDepthBuffer();\n BufferClearingNode.RequiredData shadowMapClearingData = new Buff... |
"private void tryToPutNearCache(Data key, Object response) {\n try {\n nearCache.put(key, response);\n } finally {\n resetToUnmarkedState(key);\n }\n}\n"
|
"private void dispatchOnDownloadComplete() {\n for (IMXMediaDownloadListener callback : mDownloadListeners) {\n try {\n callback.onDownloadComplete(mDownloadId);\n } catch (Exception e) {\n Log.e(LOG_TAG, \"String_Node_Str\" + e.getMessage());\n }\n }\n}\n"
|
"public void endDocument() {\n try {\n if (isStartElementOpen) {\n openAndCloseStartElement();\n isStartElementOpen = false;\n }\n xmlEventWriter.add(xmlEventFactory.createEndDocument());\n } catch (Exception e) {\n throw XMLMarshalException.marshalException(e);\n... |
"private int indexOf(final String key) {\n ArgumentChecks.ensureNonNull(\"String_Node_Str\", key);\n final Integer index = types.indices.get(key);\n if (index == null) {\n throw new PropertyNotFoundException(Errors.format(Errors.Keys.PropertyNotFound_2, source.getName(), key));\n }\n return index;... |
"private String applyFont(String fontName, int fontStyle, float fontSize, String text) {\n if (isIntrinsicFont(fontName)) {\n return applyIntrinsicFont(fontName, fontStyle, fontSize, text);\n } else {\n try {\n String fontPath = getFontPath(fontName);\n if (fontPath == null) {\... |
"protected void streamResource(URL resourceUrl, Request request, Response response) {\n try {\n URLConnection urlConnection = resourceUrl.openConnection();\n long lastModified = urlConnection.getLastModified();\n httpCacheToolkit.addEtag(request, response, lastModified);\n if (response.ge... |
"private <T> boolean fillModel(FillModelContext<T> context, FieldMapping fm) {\n int prevClauseRepetitionNumber = context.clauseRepetitionNumber;\n boolean isNullNode = false;\n String nnm;\n if (nodeName != null)\n nnm = nodeName;\n else\n nnm = this.buildNodeOrRelationName(context.path, D... |
"public void logKick(Action action, CommandEvent event, OffsetDateTime time, String reason, User target) {\n if (!(bot.dataEnabled))\n return;\n Guild guild = event.getGuild();\n GuildSettings gs = event.getClient().getSettingsFor(guild);\n TextChannel modlog = guild.getTextChannelById(gs.getModlog()... |
"public void onScrollChanged() {\n invalidateDividersForScrollingView(vg, topAndBottom, bottom);\n}\n"
|
"protected void getData(Sublist sublist, ColumnSortList columnSortList, AsyncCallback<IndexResult<Report>> callback) {\n Filter filter = getFilter();\n Map<Column<Report, ?>, String> columnSortingKeyMap = new HashMap<Column<Report, ?>, String>();\n columnSortingKeyMap.put(objectIdColumn, RodaConstants.JOB_REPO... |
"protected void cacheRawNotificationsFromDB(ProcessingFilterType processingFilterType) throws SQLException, IngestException {\n Connection connection = null;\n List<StoredRawNotification<Long, String>> workList;\n PreparedStatement statement = null;\n ResultSet resultSet = null;\n PreparedStatement updat... |
"public V onInvoke(ObjectInputStream ois, ObjectOutputStream oos) throws IOException, ClassNotFoundException {\n oos.writeObject(key);\n Object o = ois.readObject();\n if (o instanceof RuntimeException) {\n throw (RuntimeException) o;\n } else {\n return map;\n }\n}\n"
|
"public void run() {\n try {\n lock.lock();\n if (lock.isLocked() && lock.tryLock()) {\n count.incrementAndGet();\n lock.unlock();\n }\n awaitLatch.countDown();\n condition.await();\n Thread.sleep(5);\n if (lock.isLocked() && lock.tryLock()) {\n ... |
"public void testSort1() throws Exception {\n DataEngine engine = DataEngine.newDataEngine(DataEngineContext.newInstance(DataEngineContext.DIRECT_PRESENTATION, null, null, null));\n this.createCube(engine);\n ICubeQueryDefinition cqd = new CubeQueryDefinition(cubeName);\n IEdgeDefinition columnEdge = cqd.cr... |
"public Set<T> accumulate(XPathAnalyzable rootExpression) {\n try {\n rootExpression.applyAndPropagateAnalyzer(this);\n Set<T> resultSet = new HashSet<>();\n aggregateResults(resultSet);\n return resultSet;\n } catch (AnalysisInvalidException e) {\n return null;\n }\n}\n"
|
"private void addPageData(JsonObject pages, ImplementationGuidePageComponent page, String source, String title, String label, String breadcrumb) {\n FetchedResource r = resources.get(source);\n if (r == null)\n addPageDataRow(pages, source, title, label, breadcrumb + breadCrumbForPage(page, false), null);\... |
"public String getNamingContextName() {\n if (namingContextName == null) {\n Container parent = getParent();\n if (parent == null) {\n namingContextName = getName();\n } else {\n Stack<String> stk = new Stack<String>();\n StringBuilder buff = new StringBuilder();... |
"public static <T extends Enum> List<T> getAllEnumValues(T enumValue) {\n return asList((T[]) enumValue.getDeclaringClass().getEnumConstants());\n}\n"
|
"public void generateTransferInputsCode(IOPort inputPort, StringBuffer code) throws IllegalActionException {\n code.append(CodeStream.indent(getCodeGenerator().comment(\"String_Node_Str\" + \"String_Node_Str\")));\n int rate = DFUtilities.getTokenConsumptionRate(inputPort);\n CompositeActor container = (Compos... |
"private WriteResult doSave(BuguEntity ent) {\n if (hasCustomListener) {\n notifyUpdated(ent);\n }\n return wr;\n}\n"
|
"public boolean checkTrigger(GameEvent event, Game game) {\n Permanent source = game.getPermanent(event.getSourceId());\n if (source != null && source.getId().equals(this.getSourceId())) {\n UUID defenderId = game.getCombat().getDefenderId(event.getSourceId());\n this.getEffects().get(0).setTargetPo... |
"public PublicCertificateI findCertificate(PublicCompanyI company, boolean president) {\n String companyName = company.getName();\n if (!certPerCompany.containsKey(companyName)) {\n System.out.println(\"String_Node_Str\" + name + \"String_Node_Str\" + company.getName());\n return null;\n Iterator... |
"public List<Alarm> find(String tenantId, String alarmDefId, String metricName, Map<String, String> metricDimensions, AlarmState state, String lifecycleState, String link, DateTime stateUpdatedStart, List<String> sortBy, String offset, int limit, boolean enforceLimit) {\n StringBuilder sbWhere = new StringBuilder(\"... |
"void initComponent() throws JspException {\n if (_roottag == null)\n throw new IllegalStateException(\"String_Node_Str\" + this);\n composeHandle = new ComposerHandler(_attrMap.remove(\"String_Node_Str\"));\n try {\n Page page = this._roottag.getPage();\n _compDef = page.getComponentDefin... |
"public void inventoryDragEvent(InventoryDragEvent event) {\n Map<String, dObject> context = new HashMap<String, dObject>();\n dItem item = new dItem(event.getOldCursor());\n Player player = (Player) event.getWhoClicked();\n String type = event.getInventory().getType().name();\n context.put(\"String_Node... |
"public void init() throws Exception {\n setControlDocument(XML_RESOURCE);\n types = new Type[2];\n types[0] = getTypeToUnmarshalTo();\n Type mapType2 = new ParameterizedType() {\n Type[] typeArgs = { Calendar.class, Float.class };\n public Type[] getActualTypeArguments() {\n return... |
"public void onComplete(Task<AnnotatedData<LeaderboardScore>> task) {\n if (task.isSuccessful()) {\n AnnotatedData<LeaderboardScore> result = task.getResult();\n LeaderboardScore leaderboardScore = result.get();\n GodotLib.calldeferred(instance_id, \"String_Node_Str\", new Object[] { String.valu... |
"public void createTables() {\n String query = \"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\";\n Statement stmt = this.connection.createStatement();\n stmt.execut... |
"private Object readResolve() {\n if ((serverCertificate != null) && !serverCertificate.startsWith(\"String_Node_Str\")) {\n serverCertificate = new String(Base64.decodeBase64(serverCertificate.getBytes(UTF_8)), UTF_8);\n LOGGER.log(Level.INFO, \"String_Node_Str\", serverCertificate.substring(0, 80));\... |
"public void finish() {\n orWindow.finish();\n if (!(gameUIManager.getCurrentRound() instanceof ShareSellingRound)) {\n setORCompanyTurn(-1);\n }\n}\n"
|
"private void goUpGroupHierarchyLdap(Set<String> groupDNs, int groupHierarchyLevels, UserInfo userInfo) throws Throwable {\n LOG.debug(\"String_Node_Str\" + groupDNs);\n if (groupHierarchyLevels <= 0 || groupDNs.isEmpty()) {\n return;\n }\n Set<String> nextLevelGroups = new HashSet<String>();\n Na... |
"public MatchTimeline getMatchTimeline(final Map<String, Object> query, final PipelineContext context) {\n final Platform platform = (Platform) query.get(\"String_Node_Str\");\n final Number id = (Number) query.get(\"String_Node_Str\");\n Utilities.checkNotNull(platform, \"String_Node_Str\", id, \"String_Node_... |
"public void testGetUriWithFilterManyString() {\n System.out.println(\"String_Node_Str\");\n Object[] ids = new Object[] { 1, 20.0f, \"String_Node_Str\" };\n RequestContext context = prepareRequestContext();\n String expResult = \"String_Node_Str\";\n String result;\n try {\n result = URLUtils.... |
"private void initActivityList(View view) {\n LinearLayout lView = (LinearLayout) view;\n LinearLayout.LayoutParams lp1 = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n lp1.setMargins(0, 30, 0, 5);\n LinearLayout.LayoutParams lp2 = new Linear... |
"public boolean WarArenaHook(Player plr) {\n boolean notInArena = true;\n if (plugin.getServer().getPluginManager().getPlugin(\"String_Node_Str\") != null) {\n notInArena = Warzone.getZoneByPlayerName(plr.getName()) == null;\n }\n return notInArena;\n}\n"
|
"public static boolean removeAroundPoint(Player player, String ability, Location loc, double radius) {\n boolean removed = false;\n for (AirCombo combo : getAbilities(AirCombo.class)) {\n if (combo.getPlayer().equals(player)) {\n continue;\n } else if (ability.equalsIgnoreCase(\"String_No... |
"public int getGoal(MachineState state, Role role) throws GoalDefinitionException {\n updateState(state, null);\n Integer goalValue = null;\n for (Proposition p : propNet.getGoalPropositions().get(role)) {\n if (p.getValue()) {\n if (goalValue != null)\n throw new GoalDefinitio... |
"public void resourceChanged(IResourceChangeEvent event) {\n Set<IPath> paths = new HashSet<>();\n IMarkerDelta[] markerDeltas = event.findMarkerDeltas(IMarker.PROBLEM, true);\n for (IMarkerDelta delta : markerDeltas) {\n IResource resource = delta.getResource();\n while (resource.getType() != IR... |
"private void performSVMSearch(ProjectEGFile file, MLDataSet trainingData, MLDataSet validationData) {\n InputSearchSVM dialog = new InputSearchSVM();\n SVM method = (SVM) file.getObject();\n dialog.getBeginningGamma().setValue(SVMSearchTrain.DEFAULT_GAMMA_BEGIN);\n dialog.getEndingGamma().setValue(SVMSearc... |
"public void addNodes(List<Node> nodes) {\n Node newMaster = null;\n for (Node node : nodes) {\n if (newMaster == null) {\n newMaster = node;\n } else {\n if (newMaster.getCreateTime() > node.getCreateTime()) {\n newMaster = node;\n }\n }\n }... |
"private Object getPropertyValueFromRequestCached(JSONArray recordArray, int index, Property<?> dtoProperty) throws JSONException, IllegalAccessException, InvocationTargetException, NoSuchMethodException, InstantiationException {\n Object propertyValue;\n if (!recordObject.isNull(key) && EntityProxy.class.isAssig... |
"public void widgetSelected(SelectionEvent e) {\n Context ctx = CorePlugin.getContext();\n ctx.putProperty(Context.REPOSITORY_CONTEXT_KEY, loginComposite.getRepositoryContext());\n if (!TOSLoginComposite.this.projectListViewer.getSelection().isEmpty()) {\n String selection = TOSLoginComposite.this.proje... |
"public void onThriftServerStarted(String address, int port) throws IOException {\n service.setCoordinator(stampedeId, port, address);\n BuildJob buildJob = service.getCurrentBuildJobState(stampedeId);\n Preconditions.checkArgument(buildJob.isSetBuildModeInfo());\n BuildModeInfo buildModeInfo = buildJob.get... |
"public void validate(Owner owner, Errors errors) {\n if (!StringUtils.hasLength(owner.getFirstName())) {\n errors.rejectValue(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n }\n if (!StringUtils.hasLength(owner.getLastName())) {\n errors.rejectValue(\"String_Node_Str\", \"Strin... |
"protected void processNodeOperation(AddRelationshipOperation operation, NodeTemplate sourceNode) {\n if (operation.getRelationshipName() == null || operation.getRelationshipName().isEmpty()) {\n throw new InvalidNameException(\"String_Node_Str\", operation.getRelationshipName(), \"String_Node_Str\");\n }\... |
"public void run() {\n IRemoteUIConnectionService uiConnService = finalType.getService(IRemoteUIConnectionService.class);\n IRemoteUIConnectionWizard wizard = uiConnService.getConnectionWizard(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());\n if (wizard != null) {\n wizard.setConnectio... |
"public void setFocusedState(boolean isFocused, boolean requestViewFocus) {\n SystemServicesProxy ssp = Recents.getSystemServices();\n if (isFocused) {\n if (requestViewFocus && !isFocused()) {\n requestFocus();\n }\n if (requestViewFocus && !isAccessibilityFocused() && ssp.isTouch... |
"static void v(String message) {\n if (!verbose || message == null || message.isEmpty())\n return;\n Log.d(\"String_Node_Str\", \"String_Node_Str\" + message);\n}\n"
|
"public List<String> getPreDepends() {\n if (dependencies == null) {\n computeDependencies();\n }\n return preDependencies;\n}\n"
|
"public void itemStateChanged(ItemEvent event) {\n if (event.getStateChange() == ItemEvent.SELECTED) {\n NeomediaActivator.getConfigurationService().setProperty(Recorder.FORMAT, event.getItem());\n }\n}\n"
|
"public void handle(IOContext context) throws IOException {\n JsonHandlerContext ctx = localContext.get(context);\n if (ctx == null) {\n localContext.set(context, ctx = new JsonHandlerContext());\n }\n ctx.fd = context.channel.getFd();\n ChunkedResponse r = context.chunkedResponse();\n CharSequ... |
"public void onClick(ClickEvent event) {\n long oldDate1 = selectedDate1;\n long oldDate2 = selectedDate2;\n selectedDate1 = ConsumerPresenter.this.view.getFilter().getDate1().getValue().getTime();\n selectedDate2 = ConsumerPresenter.this.view.getFilter().getDate2().getValue().getTime();\n int hour1 = Co... |
"public void init() {\n Color background = Color.white;\n try {\n String colorspec = getParameter(\"String_Node_Str\");\n if (colorspec != null) {\n background = Color.decode(colorspec);\n }\n } catch (Exception ex) {\n }\n setBackground(background);\n Button _goButton ... |
"public Plan getPlan(String... args) throws IllegalArgumentException {\n int noSubTasks = (args.length > 0 ? Integer.parseInt(args[0]) : -1);\n String dataInput = (args.length > 1 ? args[1] : \"String_Node_Str\");\n String dataOutput = (args.length > 2 ? args[2] : \"String_Node_Str\");\n DataSourceContract<... |
"public boolean hasRequired(final Player player, final String challenge, final String type) {\n double moneyReq = 0D;\n if (Settings.useEconomy) {\n moneyReq = getChallengeConfig().getDouble(\"String_Node_Str\" + challenge + \"String_Node_Str\", 0D);\n if (moneyReq > 0D) {\n if (!VaultHel... |
"public PhotoDetail get(String id) {\n HashMap<String, String> paramMap = new HashMap<String, String>();\n paramMap.put(\"String_Node_Str\", id);\n paramMap.put(\"String_Node_Str\", TYPE_PHOTO);\n HashMap<String, Object> articlePhotoInfo = articleDao.getArticlePhoto(paramMap);\n if (articlePhotoInfo != n... |
"public void render(GL2 gl) {\n pushNames(gl);\n gl.glColor4fv(colorProvider == null ? color : colorProvider.getColor(), 0);\n gl.glBegin(GL2.GL_QUADS);\n gl.glVertex3f(0, 0, 0);\n gl.glVertex3f(x, 0, 0);\n gl.glVertex3f(x, y, 0);\n gl.glVertex3f(0, y, 0);\n gl.glEnd();\n gl.glPushAttrib(GL2.... |
"public void testMoveTo() throws Exception {\n URI toUri = new URI(blobStoreUri.toASCIIString() + \"String_Node_Str\");\n expect(mockConnection.getBlobStore()).andReturn(mockStore).times(1);\n expect(mockConnection.getBlob(anyObject(URI.class), anyObject(Map.class))).andReturn(new HDFSBlob(toUri, mockConnectio... |
"public void setRating(float rating) {\n if (mRating != rating) {\n mRating = rating;\n int ratingInt = (int) Math.ceil(rating * 2);\n if (mRatingInt != ratingInt) {\n mRatingInt = ratingInt;\n invalidate();\n }\n }\n}\n"
|
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n mPhotoView = new ReaderPhotoView(container.getContext());\n mPhotoView.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));\n return mPhotoVie... |
"public void setSimpleValues(List<SimpleValue> simpleValueField) {\n this.simpleValueField = simpleValueField;\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.