content
stringlengths
40
137k
"private float getRatio(Sound[] subsound) {\n float lengthOfSubsound = 1.0f * subsound[0].getSamples().length / subsound[0].getSampleRate();\n float lengthOfSound = (1.0f * this.attack[0].getSamples().length / this.attack[0].getSampleRate() + 1.0f * this.decay[0].getSamples().length / this.decay[0].getSampleRate(...
"protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {\n if (formLayout instanceof FormLayoutContainer) {\n FormLayoutContainer layoutCont = (FormLayoutContainer) formLayout;\n String name = repoEntry == null ? businessGroup.getName() : repoEntry.getDisplayname(...
"private void drawColumn(Canvas canvas, Rect location, GregorianCalendar date, int column) {\n drawColumnHeader(canvas, location, date);\n location.offset(0, columnWidth);\n for (int j = 0; j < 7; j++) {\n if (!(column == nColumns - 2 && getDataOffset() == 0 && j > todayWeekday)) {\n int chec...
"public void log(LogRecord record) {\n Logger loggerWithLevel = this;\n while (loggerWithLevel.getLevel() == null) {\n loggerWithLevel = loggerWithLevel.getParent();\n }\n int levelValue = loggerWithLevel.getLevel().intValue();\n if (record.getLevel().intValue() < levelValue || levelValue == offVa...
"public boolean isRequestedSessionIdValid() {\n return getHttpServletRequest().isRequestedSessionIdValid();\n}\n"
"private View addViewAbove(View theView, int position) {\n int abovePosition = position - 1;\n View view = obtainView(abovePosition, mIsScrap);\n int edgeOfNewChild = theView.getTop() - mDividerHeight;\n setupChild(view, abovePosition, edgeOfNewChild, false, mListPadding.left, false, false);\n return vie...
"boolean matchArrow(int x, int y, Arrow arrow) {\n int x1 = arrow.fromX;\n int y1 = arrow.fromY;\n int x2, y2;\n if (arrow.bends != null) {\n for (Bend bend : arrow.bends) {\n x2 = bend.x;\n y2 = bend.y;\n if (driver.nearpln(x, y, x1, y1, x2, y2))\n ret...
"private soot.Local handlePrivateFieldSet(polyglot.ast.Assign assign) {\n polyglot.ast.Field fLeft = (polyglot.ast.Field) assign.left();\n soot.Value right;\n if (assign.operator() == polyglot.ast.Assign.ASSIGN) {\n right = getSimpleAssignRightLocal(assign);\n } else if ((assign.operator() == polyglo...
"public FieldVisitor visitField(int access, String name, String desc, String signature, Object value) {\n String deobfName = main.lookupInheritedField(inClassName, name);\n return super.visitField(access, deobfName, main.deobfTypeDescriptor(desc), signature, value);\n}\n"
"private static ReturnStatus execute(Player player, ParsedCommand cmd) {\n if (cmd.isRestricted())\n return ReturnStatus.CMD_RESTRICTED;\n if (!playerCanAfford(player, cmd.getCosts()))\n return ReturnStatus.CANT_AFFORD;\n chargePlayer(player, cmd.getCosts());\n if (cmd.getCommand() == null || ...
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.layout_main);\n LightCache.saveFile(GlobalConfig.getFirstStoragePath() + \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\".getBytes(), false);\n GlobalConfig.setFirstStoragePathS...
"public ItemStack decrStackSize(int i, int j) {\n ItemStack stack = items[i].copy();\n stack.stackSize = j;\n items[i].stackSize -= j;\n if (items[i].stackSize == 0)\n items[i] = null;\n if (APIProxy.isServerSide())\n for (int p = 0; p < 6; ++p) CoreProxy.sendToPlayers(getContentsPacket(p),...
"public void processRequest(ONCRPCRequest rq) {\n final ONCRPCRequestHeader hdr = rq.getRequestHeader();\n if (hdr.getInterfaceVersion() != DIRInterface.getVersion()) {\n rq.sendProtocolException(new ProtocolException(ONCRPCResponseHeader.ACCEPT_STAT_PROG_MISMATCH, 0, \"String_Node_Str\"));\n return...
"protected void onDraw(Canvas canvas) {\n paint.setStrokeWidth(0);\n if (labelTextHeight == null || verLabelTextWidth == null) {\n paint.setTextSize(getGraphViewStyle().getTextSize());\n double testY = ((getMaxY() - getMinY()) * 0.783) + getMinY();\n String testLabel = formatLabel(testY, fals...
"public boolean isSignificant() {\n if (symmOrder < 1)\n return false;\n if (params.getRefineMethod() == RefineMethod.NOT_REFINED) {\n if (selfAlignment.getTMScore() < params.getScoreThreshold())\n return false;\n else\n return true;\n }\n if (refined) {\n i...
"public static boolean exactMatch(final StoreFactoryFamilySpi geowaveStoreFactoryFamily, final Map<String, String> params) {\n final ConfigOption[] requiredOptions = GeoWaveStoreFinder.getRequiredOptions(geowaveStoreFactoryFamily);\n for (final ConfigOption requiredOption : requiredOptions) {\n if (!params...
"public void canCRUDSqlDatabaseWithElasticPool() throws Exception {\n SqlServer sqlServer = createSqlServer();\n Creatable<SqlElasticPool> sqlElasticPoolCreatable = sqlServer.elasticPools().define(SQL_ELASTIC_POOL_NAME).withEdition(ElasticPoolEditions.STANDARD).withTag(\"String_Node_Str\", \"String_Node_Str\");\n...
"public void handleRequest(HttpServerExchange exchange, RequestContext context) throws Exception {\n if (context.getMethod() == METHOD.OPTIONS) {\n exchange.getResponseHeaders().put(HttpString.tryFromString(\"String_Node_Str\"), \"String_Node_Str\");\n exchange.getResponseHeaders().put(HttpString.tryFr...
"protected BaseQueryDefinition createSubQuery(ReportItemDesign item) {\n BaseQueryDefinition query = null;\n IBaseTransform parentQuery = getTransform();\n if (parentQuery == null) {\n query = new QueryDefinition(getParentQuery());\n this.queryIDs.put(query, String.valueOf(item.getID()));\n ...
"private static void loadClassMap(SphinxProperties props) {\n String modelNames = props.getString(PROP_MODELS, \"String_Node_Str\");\n StringTokenizer st = new StringTokenizer(modelNames);\n while (st.hasMoreTokens()) {\n String name = st.nextToken();\n String className = props.getString(name, PR...
"public Plot getPlot(PlotId id) {\n if (id == null) {\n return null;\n }\n if (!plots.containsKey(id)) {\n Plot plot = plugin.getSqlManager().getPlot(id, world);\n if (plot == null) {\n return null;\n }\n plots.put(id, plot);\n }\n return plots.get(id);\n}\n"...
"public int compareTo(Object other) {\n IndexNodePair otherIndexNodePair = (IndexNodePair) other;\n if (comparator != null) {\n Object myObject = source.get(node.getIndex());\n Object otherObject = source.get(otherIndexNodePair.node.getIndex());\n int compareResult = comparator.compare(myObje...
"public InputPorts getInputPorts() {\n final InputPortsBuilder builder = new InputPortsBuilder();\n if (this.inputFormat == DataFormats.READS_FASTQ) {\n builder.addPort(DEFAULT_SINGLE_INPUT_PORT_NAME, DataFormats.READS_FASTQ);\n } else {\n builder.addPort(\"String_Node_Str\", DataFormats.MAPPER_R...
"public Object doWork() {\n initConfig();\n return null;\n}\n"
"public String toString() {\n String beanClassesString = ((getBeanClasses().size() > 0) ? getBeanClasses().toString() : \"String_Node_Str\");\n String initVal = \"String_Node_Str\" + getId() + \"String_Node_Str\" + bdaType + \"String_Node_Str\" + getBeanDeploymentArchives().size() + \"String_Node_Str\" + formatAc...
"public void actionPerformed(ActionEvent e) {\n nodeColorTransformer.getMap().clear();\n setup(partition, nodeColorTransformer, true);\n revalidate();\n repaint();\n}\n"
"public void run() {\n try {\n boolean limit = redisLock.lock(\"String_Node_Str\", \"String_Node_Str\", 100);\n if (limit) {\n logger.info(\"String_Node_Str\");\n boolean unlock = redisLock.unlock(\"String_Node_Str\", \"String_Node_Str\");\n logger.info(\"String_Node_St...
"private void printFlowStatistics(RTPManager rtpManager) {\n try {\n GlobalTransmissionStats s = rtpManager.getGlobalTransmissionStats();\n StringBuilder buff = new StringBuilder(StatisticsEngine.RTP_STAT_PREFIX);\n buff.append(\"String_Node_Str\").append(getFormat() != null ? getFormat().getMed...
"public static String optimizeImage(Context context, String path, int maxImageSize, int quality) {\n if (context == null || TextUtils.isEmpty(path)) {\n return path;\n }\n File file = new File(path);\n if (!file.exists()) {\n return path;\n }\n String mimeType = MediaUtils.getMediaFileMi...
"public Packet getDescriptionPacket() {\n return ICBMCore.PACKET_TILE.getPacket(this, 1, this.energy.getEnergy(), this.frequency, this.mode, this.isInverted, this.minCoord.intX(), this.minCoord.intY(), this.minCoord.intZ(), this.maxCoord.intX(), this.maxCoord.intY(), this.maxCoord.intZ());\n}\n"
"private String hashString(final CalibratedAxis axis) {\n return axis.type().hashCode() + \"String_Node_Str\" + axis.unit() + \"String_Node_Str\" + axis.particularEquation();\n}\n"
"private void updateIRQ(int pos, int change) {\n int ifg = pos == 0 ? ifg1 : ifg2;\n int ie = pos == 0 ? ie1 : ie2;\n pos = pos * 8;\n for (int i = 0; i < 8; i++) {\n if ((change & 1) == 1) {\n if (sfrModule[pos] != null && !irqTriggered[irqVector[pos]]) {\n if (DEBUG)\n ...
"protected IStatus run(final IProgressMonitor monitor) {\n try {\n monitor.beginTask(\"String_Node_Str\", IProgressMonitor.UNKNOWN);\n broadcast(new TmfStartAnalysisSignal(TmfAbstractAnalysisModule.this, TmfAbstractAnalysisModule.this));\n fAnalysisCancelled = !executeAnalysis(monitor);\n } c...
"public void writeExternal(ObjectOutput out) throws IOException {\n out.writeObject(highToBitmap);\n}\n"
"private void updateList(final Map<URI, URI> changeTable, final Map<URI, URI> conflictTable) {\n final URI xmlDitalist = job.tempDir.toURI().resolve(\"String_Node_Str\");\n final Set<URI> hrefTopics = new HashSet<>();\n for (final FileInfo f : job.getFileInfo()) {\n if (f.isNonConrefTarget) {\n ...
"private void updateColorRegistry(int seriesIndex) {\n List<Query> dataDefinitions = null;\n if (seriesIndex > -1) {\n dataDefinitions = seriesDefns.get(seriesIndex).getDesignTimeSeries().getDataDefinition();\n } else {\n List<SeriesDefinition> allSeriesDefns = ChartUIUtil.getAllOrthogonalSeriesD...
"protected void onReceiveMessage(Bundle extras) {\n senderUser = (User) extras.getSerializable(QBServiceConsts.EXTRA_USER);\n String message = extras.getString(QBServiceConsts.EXTRA_CHAT_MESSAGE);\n String dialogId = extras.getString(QBServiceConsts.EXTRA_DIALOG_ID);\n messagesDialog = ChatDatabaseManager.g...
"public Class<?> getValueClass() {\n return this.valueClass;\n}\n"
"private static Type checkFunArgTV(Context context, String func, int arg, Type formalArgT, Type argExprT, MultiMap<String, Type> tvConstraints) throws TypeMismatchException {\n if (Types.isUnion(formalArgT)) {\n throw new STCRuntimeError(\"String_Node_Str\");\n }\n if (Types.isRef(formalArgT)) {\n ...
"public void run() {\n RecognitionListener[] emptyArray = new RecognitionListener[0];\n for (RecognitionListener listener : listeners.toArray(emptyArray)) listener.onVadStateChanged(state);\n}\n"
"public synchronized void putPageInfo(String streamId, PageInfo pi) throws IOException {\n if (getPageInfo(streamId, pi.getPageNumber()) != null)\n return;\n Connection conn = null;\n try {\n conn = getConnection();\n conn.setAutoCommit(false);\n PreparedStatement ps = conn.prepareS...
"public void onClick(DialogInterface dialog, int which) {\n Editor editor = sharedpreferences.edit();\n editor.putInt(\"String_Node_Str\", which);\n editor.commit();\n}\n"
"public void processItem(StringBuilder builder, PsiElement item) {\n CSharpModifier requiredOverrideModifier = OverrideUtil.getRequiredOverrideModifier((DotNetModifierListOwner) item);\n if (requiredOverrideModifier != null) {\n builder.append(requiredOverrideModifier.getPresentableText()).append(\"String_...
"public AbstractRecord buildRow(AbstractRecord record, Object object, org.eclipse.persistence.internal.sessions.AbstractSession session, XMLMarshaller marshaller) {\n if (null == getRootXPathNode().getNonAttributeChildren()) {\n return record;\n }\n XMLDescriptor xmlDescriptor = (XMLDescriptor) this.des...
"protected void onSizeChanged(int w, int h, int oldw, int oldh) {\n mWidth = w;\n mHeight = h;\n mCenterX = mWidth / 2;\n mCenterY = mHeight / 2;\n}\n"
"private void _generateAllVariableTransitions(HashSet<String> variableSet) throws IllegalActionException {\n HashSet<State> stateSet = new HashSet<State>();\n HashMap<String, State> frontier = new HashMap<String, State>();\n _variableTransitionInfo = new HashMap<String, LinkedList<VariableTransitionInfo>>();\n...
"public void registerIcons(IconRegister iconRegister) {\n String[] subItemNames = getSubItemNames();\n if (subItemNames != null) {\n for (int i = 0; i < subItemNames.length; i++) {\n icons[i] = iconRegister.registerIcon(BigReactors.TEXTURE_NAME_PREFIX + subItemNames[i]);\n }\n } else {...
"public void actionPerformed(ActionEvent e) {\n if (e.getSource() instanceof JMenuItem) {\n String menuItemText = ((JMenuItem) e.getSource()).getText();\n LoginManager loginManager = GuiActivator.getUIService().getLoginManager();\n Iterator<PresenceStatus> statusSet = presence.getSupportedStatus...
"public static boolean matchString(String a, String b) {\n if ((a == null) && (b == null))\n return true;\n if (a == null)\n return false;\n if (b == null)\n return false;\n return b.indexOf(a) != -1;\n}\n"
"public long maximum() {\n return rowset.maximum(columnIndex);\n}\n"
"public boolean isPaid() {\n if (paid) {\n return true;\n }\n return this.isColorlessPaid(1);\n}\n"
"private void addBeanMap(TrackerNode node, Object value) {\n if (!value.equals(node.getBean())) {\n removeBeanMap(node);\n if (!BindELContext.isImmutable(value)) {\n LinkedHashSet<TrackerNode> nodes = _beanMap.get(value);\n if (nodes == null) {\n nodes = new HashSet...
"private void saveToDirectory(String dirName) {\n if (dirName.charAt(dirName.length() - 1) != File.separatorChar) {\n dirName += File.separator;\n }\n File tempDirFile = new File(dirName);\n tempDirFile.mkdir();\n AUseCase useCase = (AUseCase) GeneralManager.get().getUseCase();\n LoadDataParame...
"public void popGUI(Player player) {\n if (Config.hasBukkitContrib) {\n ContribPlayer contribPlayer = (ContribPlayer) player;\n if (contribPlayer.isBukkitContribEnabled()) {\n PopupScreen popup = new GenericPopup();\n contribPlayer.getMainScreen().attachPopupScreen(popup);\n ...
"protected void buildPathwayDisplayList() {\n String[] strPathwayPaths = new String[3];\n strPathwayPaths[0] = \"String_Node_Str\";\n strPathwayPaths[1] = \"String_Node_Str\";\n strPathwayPaths[2] = \"String_Node_Str\";\n String[] strPathwayTexturePaths = new String[3];\n strPathwayTexturePaths[0] = \...
"public void dumpControllerStateLocked(PrintWriter pw) {\n pw.println(\"String_Node_Str\");\n pw.println(\"String_Node_Str\" + mChargeTracker.isOnStablePower());\n Iterator<JobStatus> it = mTrackedTasks.iterator();\n if (it.hasNext()) {\n JobStatus jobStatus = it.next();\n if (jobStatus.should...
"public void start(CoprocessorEnvironment env) {\n if (env instanceof RegionCoprocessorEnvironment) {\n HTableDescriptor tableDesc = ((RegionCoprocessorEnvironment) env).getRegion().getTableDesc();\n String hTableName = tableDesc.getNameAsString();\n String prefixBytes = tableDesc.getValue(HBase...
"private String createHTMLfromQTIResultSet(String idPath, String idDir, ZipOutputStream zout, Identity assessedIdentity, QTIResultSet resultSet) throws IOException {\n Document doc = FilePersister.retreiveResultsReporting(assessedIdentity, AssessmentInstance.QMD_ENTRY_TYPE_ASSESS, resultSet.getAssessmentID());\n ...
"public void delSalt(final int i) {\n if (!brewingSalts.isEmpty() && (i > -1) && (i < brewingSalts.size()))\n this.brewingSalts.remove(i);\n}\n"
"private void actionMoveDown() {\n if (null == targetRow) {\n return;\n }\n int index = table.indexOf(targetRow);\n if (index >= (table.getItemCount() - 1)) {\n return;\n }\n base.setRedraw(false);\n TableItem o1 = table.getItems()[index];\n TableItem o2 = table.getItems()[index + ...
"public void setup() throws Exception {\n super.setup();\n regenRules = new SunlightRegenPropagationRules();\n blockManager = new BlockManagerImpl(new NullWorldAtlas(), Lists.<String>newArrayList(), Maps.<String, Short>newHashMap(), true, new DefaultBlockFamilyFactoryRegistry());\n CoreRegistry.put(BlockMan...
"public static Object convertToSkylark(Object object, Environment env) {\n if (object instanceof List && !(object instanceof SkylarkList)) {\n return MutableList.copyOf(env, (List<?>) object);\n }\n if (object instanceof SkylarkValue) {\n return object;\n }\n if (object instanceof Map) {\n ...
"private void validateOnCallbackEvent(DescriptorEvent event, String callbackEventName, Class[] validationGroup) {\n Object source = event.getSource();\n Validator validator = getValidator(event);\n boolean isBeanConstrained = validator.getConstraintsForClass(source.getClass()).isBeanConstrained();\n boolean...
"public static Monitor registerMonitored(OurSim ourSim, Long time, String interested, String monitored, Event callbackAliveEvent, Event callbackDownEvent, boolean isUp) {\n ActiveEntity interestedObj = ourSim.getGrid().getObject(interested);\n ActiveEntity monitoredObj = ourSim.getGrid().getObject(monitored);\n ...
"public void onClick(DialogInterface dialog, int which) {\n if (TextUtils.isEmpty(quickPressShortcutName.getText())) {\n Toast t = Toast.makeText(AddQuickPressShortcutActivity.this, R.string.quickpress_add_error, Toast.LENGTH_LONG);\n t.show();\n } else {\n Intent shortcutIntent = new Intent(...
"public Long configCluster(String clusterName, ClusterCreate createSpec) throws Exception {\n logger.info(\"String_Node_Str\" + clusterName);\n ClusterEntity cluster;\n if ((cluster = clusterEntityMgr.findByName(clusterName)) == null) {\n logger.error(\"String_Node_Str\" + clusterName + \"String_Node_St...
"public void loadCertificate(ActionRequest request, ActionResponse response) throws AxelorException, CertificateEncodingException, IOException {\n EbicsCertificate cert = request.getContext().asType(EbicsCertificate.class);\n cert = certificateRepo.find(cert.getId());\n byte[] certs = cert.getCertificate();\n ...
"private List<String> getFqdnsWithRole(ClusterBlueprint blueprint, String role) {\n List<String> fqdns = new ArrayList<String>();\n for (NodeGroupInfo group : blueprint.getNodeGroups()) {\n if (group.getRoles().contains(role)) {\n for (NodeInfo node : group.getNodes()) {\n fqdns.a...
"protected HE_Mesh createBase() {\n if ((facets < 3) || (WB_Epsilon.isZero(radius))) {\n return null;\n }\n final WB_Point[] ppoints = new WB_Point[facets];\n for (int i = 0; i < facets; i++) {\n final double x = radius * Math.cos(((Math.PI * 2.0) / facets) * i);\n final double y = radi...
"public static void createSubset(Product sourceProduct, Rectangle bounds) {\n if (_MultiSizeIssue.isMultiSize(sourceProduct)) {\n final Product resampledProduct = _MultiSizeIssue.maybeResample(sourceProduct);\n if (resampledProduct != null) {\n sourceProduct = resampledProduct;\n } el...
"public boolean contains(Class arg0, Object arg1) {\n if (isAlive()) {\n return (ehcache.get(arg1) != null);\n }\n return false;\n}\n"
"public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n AdministrationService as = Context.getAdministrationService();\n ConceptService cs = Context.getConceptService();\n Object uri = request.getAttribute(\"String_Node_Str\");\n ...
"public void exportTable(File file, boolean isFullLog, boolean append, boolean header) throws IOException {\n FileWriter out = new FileWriter(file, append);\n if (header) {\n out.write(LogEntry.getCSVHeader(LoggerPlusPlus.getInstance().getLogTable(), isFullLog));\n out.write(\"String_Node_Str\");\n ...
"public String toSerializable(final LogEvent event) {\n final StringBuilder sbuf = new StringBuilder(BUF_SIZE);\n sbuf.append(Constants.LINE_SEP).append(\"String_Node_Str\").append(Constants.LINE_SEP);\n sbuf.append(\"String_Node_Str\");\n sbuf.append(event.getMillis() - jvmStartTime);\n sbuf.append(\"St...
"private void createEvent(VirusCheckResult virusCheckResult, Exception exception, PluginState state, AIP aip, ModelService model, IndexService index, boolean notify) throws PluginException {\n try {\n StringBuilder outcomeDetailExtension = new StringBuilder();\n outcomeDetailExtension.append(virusCheck...
"public void start(BundleContext bc) {\n if (logger.isDebugEnabled())\n logger.debug(\"String_Node_Str\");\n this.bundleContext = bc;\n try {\n storageManager.start(bundleContext, this);\n } catch (Exception ex) {\n logger.error(\"String_Node_Str\", ex);\n return;\n }\n if ...
"public void setUserLocked(boolean userLocked) {\n mUserLocked = userLocked;\n mPrivateLayout.setUserExpanding(userLocked);\n if (mIsSummaryWithChildren) {\n mChildrenContainer.setUserLocked(userLocked);\n if (userLocked || !isGroupExpanded()) {\n updateBackgroundForGroupState();\n ...
"public void renderAll() {\n unshiftModel();\n float par7 = 0.0625F;\n renderer.bindTextureByName(\"String_Node_Str\");\n Pedestal.render(par7);\n Pedestal2.render(par7);\n}\n"
"static ObjectType meet(ObjectType obj1, ObjectType obj2) {\n NominalType nt1 = obj1.nominalType;\n NominalType nt2 = obj2.nominalType;\n Preconditions.checkState(areRelatedNominalTypes(nt1, nt2), \"String_Node_Str\", nt1, nt2);\n if (obj1.isTopObject() || obj2.isBottomObject()) {\n return obj2;\n ...
"protected void _execute() throws Exception {\n super._execute();\n int count = _tabbedPane.getTabCount();\n for (int i = 0; i < count; i++) {\n if (name.equals(_tabbedPane.getTitleAt(i))) {\n _tabbedPane.remove(i);\n break;\n }\n }\n}\n"
"public CommentContentView make(Context context) {\n LinearLayout contentView = new LinearLayout(context);\n LayoutParams contentViewLayoutParams = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT, LinearLayout.LayoutParams.FILL_PARENT);\n contentView.setLayoutParams(contentViewLayoutParams)...
"protected boolean validateAbstractSchemaName(AbstractSchemaName expression) {\n String abstractSchemaName = expression.getText();\n Object managedType = helper.getEntityNamed(abstractSchemaName);\n boolean valid = true;\n if (managedType == null) {\n if (isWithinSubquery(expression)) {\n ...
"public void scheduleScripts() {\n if (plugin.getDenizenNPCRegistry().getDenizens().isEmpty())\n return;\n for (DenizenNPC theDenizen : plugin.getDenizenNPCRegistry().getDenizens().values()) {\n if (!theDenizen.isSpawned())\n continue;\n int denizenTime = Math.round(theDenizen.getW...
"public void initiate(ResourceConfig resourceConfig, ComponentProvider _provider) {\n if (resourceConfig == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n if (initiated) {\n throw new ContainerException(ImplMessages.WEB_APP_ALREADY_INITIATED());\n }\n this.initiate...
"public Resource resolveResource(HttpServletRequest request, String requestPath, List<? extends Resource> locations, ResourceResolverChain chain) {\n log.debug(\"String_Node_Str\");\n ServletWebRequest webRequest = new ServletWebRequest(request);\n Map uriTemplateVars = (Map) webRequest.getAttribute(HandlerMap...
"public static String fieldName(String getsetName) {\n if (!\"String_Node_Str\".equals(getsetName.substring(0, 3)) && !\"String_Node_Str\".equals(getsetName.substring(0, 3)))\n throw new IllegalArgumentException(\"String_Node_Str\" + getsetName);\n return String.format(\"String_Node_Str\", getsetName.subst...
"public void showEvent(Event event) {\n model.resetModel(NavigationEnum.EVENT_PREVIEW, getLoggedUser(), null, null, null, null, event);\n pushEvent(Events.EVENT_DISPLAYED_EVENT);\n}\n"
"public int deflate() {\n try {\n deflater.setInput(uncompressedBuffer.array(), 0, uncompressedBuffer.position());\n deflater.finish();\n final int count = deflater.deflate(compressedBuffer.array());\n return count;\n } finally {\n deflater.reset();\n }\n}\n"
"public void setAssign(CAstNode receiverTemp, CAstNode elementTemp) {\n this.receiverTemp = receiverTemp;\n this.elementTemp = elementTemp;\n}\n"
"public void resolve(MarkerList markers, IContext context) {\n IClassBody body = this.theClass.getBody();\n if (body != null && body.constructorCount() > 0) {\n IConstructor c = body.getConstructor(this.theClass.getParameters(), this.theClass.parameterCount());\n if (c != null) {\n this.c...
"private void initRendererIfAny(Component comp, String attr) {\n final Object installed = comp.getAttribute(BinderImpl.RENDERER_INSTALLED);\n if (installed != null) {\n return;\n }\n final ComponentCtrl compCtrl = (ComponentCtrl) comp;\n final Annotation ann = AnnotationUtil.getSystemAnnotation(co...
"public Row toRow(EntityData data, boolean qualifyWithEntityName) {\n Row row = new Row(data.size()) {\n private static final long serialVersionUID = 1L;\n public String toString() {\n return String.format(\"String_Node_Str\", data.getChangeType(), super.toString());\n }\n };\n ...
"private boolean isConvertible(IType type) {\n IClass theClass = type.getTheClass();\n return theClass.getAnnotation(dyvil.tools.compiler.ast.type.Types.STRING_CONVERTIBLE_CLASS) != null || theClass.getAnnotation(Types.FORMAT_STRING_CONVERTIBLE) != null;\n}\n"
"private void backDeleteObjectsTreeView(IRepositoryViewObject[] theInput) {\n for (IRepositoryViewObject viewObj : RemoveFromRepositoryAction.getViewObjectsRemovedList()) {\n Item item = viewObj.getProperty().getItem();\n MDMServerObject serverObj = ((MDMServerObjectItem) item).getMDMServerObject();\n ...
"void copy(Interaction interaction) throws SBOLValidationException {\n ((Identified) this).copy(interaction);\n for (Participation participation : interaction.getParticipations()) {\n Participation newParticipation = this.createParticipation(participation.getDisplayId(), participation.getParticipant().getD...
"private boolean saveFileAs() {\n JFileChooser chooser = new JFileChooser();\n chooser.setDialogTitle(\"String_Node_Str\");\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n chooser.setFileFilter(filter);\n chooser.setApproveB...
"public String getKey(int which) {\n if (which >= 0 && which < keys.length) {\n return keys[which];\n }\n return null;\n}\n"
"public void setBlockedAndProtected(int x, int y, boolean blocked) {\n final int idx = x + y * width;\n this.blockedGrid.set(idx, blocked);\n this.protectedGrid.set(idx, newProtected);\n if (blockingChangedListener != null) {\n this.blockingChangedListener.blockingChanged(x, y, blocked);\n }\n ...
"private void createSampleTab(TabFolder tabFolder) {\n sampleTab = new TabItem(tabFolder, SWT.NONE);\n sampleTab.setText(\"String_Node_Str\");\n Composite composite = new Composite(tabFolder, SWT.NONE);\n sampleTab.setControl(composite);\n composite.setLayout(new GridLayout(1, false));\n Button sample...
"public void onPlayerRespawn(PlayerRespawnEvent event) {\n Player p = event.getPlayer();\n p.sendMessage(\"String_Node_Str\");\n}\n"