content
stringlengths
40
137k
"private Optional<String> printEmitMappedAliasIdForOuterFromClause(int countOuter, Map<String, String> columnNameAliasMap) {\n Optional<String> optional = this.mappedAliasIdForOuterFromClause(columnNameAliasMap);\n if (optional.isPresent()) {\n return Optional.of(\"String_Node_Str\" + countOuter + \"String...
"public boolean apply(Game game, Ability source) {\n RevoltWatcher watcher = (RevoltWatcher) game.getState().getWatchers().get(\"String_Node_Str\");\n return watcher != null && watcher.revoltActive(source.getControllerId());\n}\n"
"public Record set(String name, Object value) {\n map.put(name.toLowerCase(), value);\n return this;\n}\n"
"private static String fillCmdPattern(String pattern, String gatewayHost, String remoteHost, int remotePort, int localPort) {\n boolean H_found = false, G_found = false, R_found = false, L_found = false;\n boolean P_found = false;\n String cmd = extSSHClient.getValue() + \"String_Node_Str\";\n pattern.repla...
"public static InputStream getResourceAsStream(String path, ClassLoader classLoader) {\n return classLoader.getResourceAsStream(removeLeadingSlash(path));\n}\n"
"public static Class<?> hasCustomFieldSerializer(Class<?> instanceType) {\n assert (instanceType != null);\n if (instanceType.isArray()) {\n return null;\n }\n Class<?> result;\n synchronized (classCustomSerializerCache) {\n result = classCustomSerializerCache.get(instanceType);\n if...
"public synchronized void recordUploadedTarget(String target) {\n Preconditions.checkArgument(knownTargets.contains(target));\n Preconditions.checkArgument(!uploadedTargets.contains(target));\n uploadedTargets.add(target);\n uploadedTargetsToSignal.add(target);\n}\n"
"public String toString() {\n return delegate.toString();\n}\n"
"private static void createBendingPlayerAsynchronously(final UUID uuid, final String player) {\n ResultSet rs2 = DBConnection.sql.readQuery(\"String_Node_Str\" + uuid.toString() + \"String_Node_Str\");\n try {\n if (!rs2.next()) {\n new BendingPlayer(uuid, player, new ArrayList<Element>(), new H...
"public FileParsingParameters getFileParsingParameters() {\n return params;\n}\n"
"protected boolean remove(final Object object) {\n eagerlyLoadDataCollection();\n boolean result = false;\n if (dataCollection != null && !(dataCollection instanceof ProxyCollection) && object != null) {\n dataCollection.remove(object);\n result = true;\n }\n return result;\n}\n"
"public <T> void setElements(Collection<T> elements) {\n try {\n this.elements = elements;\n suppressEvents = true;\n prevSelectionPos = -1;\n if (this.getRootChildren() != null) {\n this.getRootChildren().removeAll();\n }\n this.elements = elements;\n for ...
"protected void addRows(ContainerArea container, TableLayout layout) throws BirtException {\n if (container instanceof RowArea) {\n RowArea row = (RowArea) container;\n if (row.needResolveBorder) {\n int size = row.getChildrenCount();\n for (int i = 0; i < size; i++) {\n ...
"public void validate(ValidationHelper helper, Context context, String key, License t) {\n if (t != null) {\n ValidatorUtils.validateRequiredField(t.getName(), context, \"String_Node_Str\").ifPresent(helper::addValidationEvent);\n if (t.getUrl() != null) {\n if (!ValidatorUtils.isValidURI(t....
"public static BlockPosM tmp(long serialized) {\n return temporary.get().set(serialized);\n}\n"
"public static final CacheKey viewKey(Class<?> clazz, String... elements) {\n List<String> list = Lists.newArrayList(elements);\n list.add(clazz.getSimpleName());\n list.add(\"String_Node_Str\");\n return new CacheKey(COLON_JOINER.join(list));\n}\n"
"protected void done() {\n Map<String, String> data = null;\n try {\n data = get();\n } catch (InterruptedException e) {\n data = new HashMap<String, String>();\n LoggerFactory.getLogger().error(\"String_Node_Str\" + selectedNode, e);\n } catch (ExecutionException e) {\n data = n...
"public Schema create(Iterable<EvaluationExpression> keyExpressions) {\n List<ObjectAccess> objectAccesses = new ArrayList<ObjectAccess>();\n List<ArrayAccess> arrayAccesses = new ArrayList<ArrayAccess>();\n List<EvaluationExpression> mappings = new ArrayList<EvaluationExpression>();\n for (EvaluationExpres...
"public void populateSolrInputDocument(SolrInputDocument solrInputDocument) {\n if (timestamp != null)\n solrInputDocument.addField(DATE, timestamp.toDate());\n if (params != null)\n solrInputDocument.addField(PARAMS, params);\n if (qtime != -1)\n solrInputDocument.addField(QTIME, qtime);\...
"public WhereRule findWhereRule(IFile file) {\n if (checkFile(file)) {\n WhereRule whereRule = whereRulesMap.get(file);\n if (whereRule == null) {\n whereRule = retireDQRule(getFileResource(file));\n }\n whereRulesMap.put(file, whereRule);\n }\n return whereRule;\n}\n"
"public boolean visit(IResourceDelta delta) {\n if (delta.getResource().equals(getFile())) {\n if ((delta.getKind() & IResourceDelta.REMOVED) != 0) {\n if (!getShell().isDisposed()) {\n getShell().getDisplay().asyncExec(new Runnable() {\n public void run() {\n ...
"public void onReceive(Context context, Intent intent) {\n synchronized (this) {\n if (intent.getAction().equals(TelephonyIntents.ACTION_ANY_DATA_CONNECTION_STATE_CHANGED)) {\n Phone.DataState state = getMobileDataState(intent);\n String reason = intent.getStringExtra(Phone.STATE_CHANGE_...
"private void fixStructuredPostalComponents(ContentValues augmented, ContentValues update) {\n final boolean touchedUnstruct = update.containsKey(StructuredPostal.FORMATTED_ADDRESS);\n final boolean touchedStruct = areAnySpecified(update, STRUCTURED_FIELDS);\n final PostalSplitter.Postal postal = new PostalSpl...
"public BlockEdit changeBlock(Location location) {\n if (location.getBlock() == Blocks.air)\n return null;\n return new BlockEdit(location).set(Blocks.air, 0, false, true);\n}\n"
"private void initDB(File indexFile, final boolean cleanAll) {\n if (this.db != null) {\n this.db.close();\n }\n File[] files = indexFile.getParentFile().listFiles(new FilenameFilter() {\n public boolean accept(File dir, String name) {\n return name.startsWith(\"String_Node_Str\") && (...
"public static String getBinData(final String dirName, final String fileName) {\n final DITAOTJavaLogger logger = new DITAOTJavaLogger();\n File imgInput = new File(dirName + File.separatorChar + fileName);\n if (checkDirName(dirName))\n imgInput = new File(getImageOutPutPath(fileName));\n FileInputS...
"protected void onPostExecute(Boolean result) {\n if (result) {\n if (mPosts.size() == 0) {\n mPosts.addAll(allPosts);\n notifyDataSetChanged();\n } else {\n ReaderPostList newPosts = new ReaderPostList();\n for (ReaderPost post : allPosts) {\n ...
"private void setEditable(Composite parent, boolean editable) {\n Control[] children = parent.getChildren();\n for (Control element : children) {\n if (element instanceof Composite) {\n if (element instanceof CCombo) {\n setTextEnable(element, editable, editable);\n }\n...
"public String getWeeklyranking() {\n url.append(\"String_Node_Str\");\n String result = YoubuyService.handleGet(YoubuyService.handleArguments(url, vc));\n url = new StringBuffer(url.substring(0, 21));\n return result;\n}\n"
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n handleIntent();\n mReceiver = new ServiceStateReceiver();\n mFilter = new IntentFilter();\n mFilter.addCategory(AppLockService.CATEGORY_STATE_EVENTS);\n mFilter.ad...
"private void computeDependencies() {\n dependencies = new ArrayList<String>();\n preDependencies = new ArrayList<String>();\n postDependencies = new ArrayList<String>();\n if (mod.getPriorities() == null || mod.getPriorities().length() == 0) {\n return;\n }\n StringTokenizer st = new StringTok...
"public int getSectionItemCount(String section) {\n ListItemAdapter adapter = mAdapter.getSection(section);\n if (adapter == null)\n return 0;\n return adapter.getCount();\n}\n"
"public void configure(JobConf jobConf) {\n String dataModelFile = jobConf.get(DATA_MODEL_FILE);\n String recommenderClassName = jobConf.get(RECOMMENDER_CLASS_NAME);\n FileDataModel fileDataModel;\n try {\n Path dataModelPath = new Path(dataModelFile);\n FileSystem fs = FileSystem.get(dataMode...
"public static void main(String[] args) throws Exception {\n Map<String, Object> additionalParams = new HashMap<String, Object>();\n additionalParams.put(\"String_Node_Str\", \"String_Node_Str\");\n String url = \"String_Node_Str\";\n HttpMethod httpMethod = HttpMethod.GET;\n SignatureMethod signatureMet...
"protected void setStyleName(String styleName) {\n if (isEmbeddable) {\n return;\n }\n if (styleName != null && outputtedStyles.contains(styleName)) {\n classBuffer.append(styleName);\n }\n if (hasCsslinks) {\n Object genBy = content.getGenerateBy();\n if (genBy instanceof Sty...
"public void deleteProfileWithValidArgumentThatExistsInPersistenceStore() throws ServiceException {\n Profile profile = new Profile(100, \"String_Node_Str\", null, null, false, false, false, false, \"String_Node_Str\", false);\n profileService.add(profile);\n profile = profileService.get(100);\n assertTrue(...
"public boolean upgrade(final String clusterName, StatusUpdater statusUpdator) {\n logger.info(\"String_Node_Str\" + clusterName + \"String_Node_Str\");\n this.serverVersion = clusterEntityMgr.getServerVersion();\n List<NodeEntity> nodes = getNodes(clusterName);\n List<Callable<Void>> storeNodeProcedures = ...
"public void fire(ArrayList<RenderListener> listeners) {\n for (RenderListener listener : listeners) listener.onRender(partialTicks);\n}\n"
"public static void initVILearners(int batchSize, int memoryPopulationVI, double learningRate) {\n populationVI = new PopulationVI();\n populationVI.setWindowSize(memoryPopulationVI);\n populationVI.setSeed(0);\n populationVI.setLearningFactor(learningRate);\n VMP vmp = svb.getPlateuStructure().getVMP();...
"private boolean sliceMatches(Element element, String path, ElementDefinition slice, ElementDefinition ed, StructureDefinition profile) throws DefinitionException, FHIRException {\n if (!slice.getSlicing().hasDiscriminator())\n return false;\n for (StringType s : slice.getSlicing().getDiscriminator()) {\n ...
"private boolean isBonded(int i, int j) {\n SecStrucState stateOne = getSecStrucState(i);\n double acc1e = stateOne.getAccept1().getEnergy();\n double acc2e = stateOne.getAccept2().getEnergy();\n int partnerAcc1 = stateOne.getAccept1().getPartner();\n int partnerAcc2 = stateOne.getAccept2().getPartner();...
"public static PackageInfo generatePackageInfo(PackageParser.Package p, int[] gids, int flags) {\n PackageInfo pi = new PackageInfo();\n pi.packageName = p.packageName;\n pi.versionCode = p.mVersionCode;\n pi.versionName = p.mVersionName;\n pi.sharedUserId = p.mSharedUserId;\n pi.sharedUserLabel = p.m...
"public boolean addPlugin(ITernPlugin plugin, JsonObject options) {\n boolean exists = hasPlugin(plugin);\n getPlugins().add(plugin.getName(), options != null ? options : EMPTY_OPTIONS);\n return exists;\n}\n"
"public void launch(IBinary bin, String mode) {\n super.initialize();\n this.bin = bin;\n name = \"String_Node_Str\";\n binName = getName(bin);\n partialScriptPath = PluginConstants.getPluginLocation() + \"String_Node_Str\";\n viewID = \"String_Node_Str\";\n if (projectName == null || projectName.l...
"public void run() {\n synchronized (mTaskPoolLock) {\n BaseSoterTask task = sTaskPool.get(key);\n if (task != null) {\n task.onRemovedFromTaskPoolActively();\n }\n }\n}\n"
"public static Bitmap decodeFile(File f, boolean isScalable) {\n try {\n BitmapFactory.Options o = new BitmapFactory.Options();\n o.inJustDecodeBounds = true;\n BitmapFactory.decodeStream(new FileInputStream(f), null, o);\n final int REQUIRED_SIZE = 70;\n int width_tmp = o.outWidth...
"public void onPlayerPortal(PlayerPortalEvent event) {\n UUID playerUUID = event.getPlayer().getUniqueId();\n if (!Settings.createNether || ASkyBlock.getNetherWorld() == null) {\n return;\n }\n Location currentLocation = event.getFrom().clone();\n String currentWorld = currentLocation.getWorld().g...
"public void resolveBorderConflict(CellArea cellArea, boolean isFirst) {\n IContent cellContent = cellArea.getContent();\n int columnID = cellArea.getColumnID();\n int colSpan = cellArea.getColSpan();\n IRowContent row = (IRowContent) cellContent.getParent();\n IStyle cellContentStyle = cellContent.getCo...
"private HTTPDownloader connectWithPush(RemoteFileDesc rfd, File incFile) throws IOException {\n LOG.trace(\"String_Node_Str\");\n HTTPDownloader ret;\n Object threadLock = new Object();\n MiniRemoteFileDesc mrfd = new MiniRemoteFileDesc(rfd.getFileName(), rfd.getIndex(), rfd.getClientGUID());\n miniRFDT...
"public boolean isChainCorrect(String chain) {\n if (isEmptyChain(chain) || !isValidChain(chain))\n return false;\n boolean isCorrect = true;\n for (int i = 0; i < chain.length(); i++) {\n int counterMatches = countMatches(chain, chain.charAt(i) + \"String_Node_Str\");\n if (counterMatches...
"private <T extends Entity> void processHiveEntity(HiveMetaStoreBridge dgiBridge, HiveEventContext event, T entity, Set<String> dataSetsProcessed, SortedMap<T, Referenceable> dataSets, Set<Referenceable> entities) throws AtlasHookException {\n try {\n if (entity.getType() == Type.TABLE || entity.getType() == ...
"public Set<Long> getPCRsForPaths(final Collection<Path<QNm>> expressions) throws PathException {\n assertNotClosed();\n final Set<Long> pcrs = new HashSet<>();\n for (final Path<QNm> path : expressions) {\n final Set<Long> pcrsForPath = getPCRsForPath(path, useCache);\n pcrs.addAll(pcrsForPath);...
"protected void writeKey(XPathFragment xPathFragment) throws IOException {\n super.openStartElement(xPathFragment, namespaceResolver);\n isStartElementOpen = true;\n writer.write('\"');\n if (xPathFragment.isAttribute() && attributePrefix != null) {\n writer.writeAttributePrefix();\n }\n if (is...
"public void testAddCollectionReferences() throws Exception {\n HttpResponse response = httpGET(baseURL + \"String_Node_Str\", 200);\n JsonNode node = getJSONNode(response);\n assertTrue(node.get(\"String_Node_Str\").isArray());\n assertEquals(\"String_Node_Str\", ((ArrayNode) node.get(\"String_Node_Str\"))...
"protected void drawDataSet(Canvas c, CandleDataSet dataSet) {\n Transformer trans = mChart.getTransformer(dataSet.getAxisDependency());\n float phaseX = mAnimator.getPhaseX();\n float phaseY = mAnimator.getPhaseY();\n int dataSetIndex = mChart.getCandleData().getIndexOfDataSet(dataSet);\n List<CandleEnt...
"private static void dumpFile(File file) {\n if (file.getName().endsWith(SingleChronicleQueue.SUFFIX)) {\n try (MappedBytes bytes = MappedBytes.mappedBytes(file, 4 << 20)) {\n bytes.readLimit(bytes.realCapacity());\n out.println(Wires.fromSizePrefixedBlobs(bytes));\n } catch (IOEx...
"private boolean doGet(String url) throws IOException {\n logger.fine(\"String_Node_Str\" + url);\n GetMethod method = new GetMethod(url);\n if (referer != null) {\n method.setRequestHeader(\"String_Node_Str\", referer);\n }\n int statusCode = client.executeMethod(method);\n if (statusCode != H...
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n if (controller != null) {\n for (UUID playerId : controller.getInRange()) {\n Player player = game.getPlayer(playerId);\n if (player != null) {\n int car...
"public void run(ProgressStatus arg0) {\n BranchValidator branchValidator = new BranchValidator(Application.getInstance().getProject());\n branchValidator.validate(arg0, true);\n if (branchValidator.hasErrors()) {\n Application.getInstance().getGUILog().log(\"String_Node_Str\");\n return;\n }\...
"public void addTenant(String admin, String firstName, String lastaName, String password, String domain, String email) throws CommandException {\n DefaultHttpClient httpClient = new DefaultHttpClient();\n try {\n TenantInfoBean tenantInfo = new TenantInfoBean();\n tenantInfo.setAdmin(admin);\n ...
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n if (controller != null) {\n for (Permanent creature : game.getBattlefield().getActivePermanents(new FilterCreaturePermanent(), controller.getId(), source.getSourceId(), game)) {\n ...
"public Set<String> getRequiredParameterNames() {\n final Set<String> result = new LinkedHashSet<String>();\n result.addAll(hintTextPattern.getRequiredParameterNames());\n if (hintTitlePattern != null)\n result.addAll(hintTitlePattern.getRequiredParameterNames());\n return result;\n}\n"
"public void resolve(SootClass sc) {\n if (Options.v().verbose())\n G.v().out.println(\"String_Node_Str\" + className);\n SootResolver.v().getInitSourceResolver().formAst(fullPath.getPath(), SourceLocator.v().sourcePath());\n SootResolver.v().getInitSourceResolver().resolveFromJavaFile(sc);\n}\n"
"public static HazelcastInstance getDefaultInstance() {\n HazelcastInstance defaultInstanceObject = defaultInstance.get();\n if (defaultInstanceObject == null || !defaultInstanceObject.getLifecycleService().isRunning()) {\n synchronized (initLock) {\n defaultInstanceObject = defaultInstance.get(...
"public static Vec3d followCurve(RailInfo info, float delta, RailFunc fn) {\n float radius = info.length;\n float startAngle = 90 - info.quarter / 4f * 90;\n float endAngle = startAngle - info.quarters / 4f * 90;\n if (info.direction == TrackDirection.RIGHT) {\n startAngle = 180 + 90 + info.quarter /...
"public boolean isValidResource() {\n return FileUtil.hasSourceSuffix(name) || name.endsWith(\"String_Node_Str\");\n}\n"
"public Analysis findAnalysis(IFile file) {\n AnalysisEntity analysisEntity = allAnalysisMap.get(file);\n if (analysisEntity != null) {\n return analysisEntity.getAnalysis();\n }\n return readFromFile(file);\n}\n"
"private boolean onCondition(EntityMetadata m, MetamodelImpl metaModel, EmbeddableType compoundKey, String idColumn, StringBuilder builder, boolean isPresent, CQLTranslator translator) {\n String partitionKey = null;\n boolean allowFiltering = false;\n for (Object o : getKunderaQuery().getFilterClauseQueue()) ...
"public static void log(String aPadding, BerTlv aTlv, IBerTlvLogger aLogger) {\n if (aTlv == null) {\n aLogger.debug(\"String_Node_Str\", aPadding);\n return;\n }\n if (aTlv.isConstructed()) {\n aLogger.debug(\"String_Node_Str\", aPadding, HexUtil.toHexString(aTlv.getTag().bytes));\n ...
"public void mouseReleased(MouseEvent evt) {\n latestMousePositionX = evt.getX();\n currentMousePositionX = latestMousePositionX;\n currentState = TimelineState.IDLE;\n this.getParent().repaint();\n}\n"
"public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n setHasOptionsMenu(true);\n setRetainInstance(true);\n db = new DatabaseHelper(getActivity());\n task = new LoadCursorTask(getActivity().getApplicationContext()).execute();\n}\n"
"private ReportService.ReportType getReportType(final HttpServletRequest request) throws ReportException {\n String uri = request.getRequestURI();\n String type = uri.substring(uri.lastIndexOf('.') + 1).toUpperCase(Locale.getDefault());\n try {\n return ReportService.ReportType.valueOf(type);\n } cat...
"public boolean redirect(T o) {\n return addRaw(o);\n}\n"
"public void remove(Object obj, int index) {\n checkExpired();\n if (index <= 0 && obj != null) {\n int x = 0;\n for (String val : value.values) {\n if (val.equalsIgnoreCase(String.valueOf(obj))) {\n value.values.remove(x);\n break;\n }\n ...
"protected boolean add(final Object object) {\n eagerlyLoadDataCollection();\n boolean result = false;\n if (dataCollection == null) {\n createEmptyDataCollection();\n }\n if (dataCollection != null && !(dataCollection instanceof ProxyCollection) && !((Collection) dataCollection).contains(object) ...
"public PreEntHelper pre(Consumer consumer, Pool entitlementPool) {\n PreEntHelper preHelper = runPre(consumer, entitlementPool);\n if (entitlementPool.isExpired(dateSource)) {\n preHelper.getResult().addError(new ValidationError(\"String_Node_Str\" + entitlementPool.getProductId() + \"String_Node_Str\" + ...
"public Map<String, FetchMode> resolveURLs(ControllerContext controllerContext, Map<ResourceId, FetchMode> ids, boolean merge, boolean minified, Locale locale) throws IOException {\n Map<String, FetchMode> urls = new LinkedHashMap<String, FetchMode>();\n StringBuilder buffer = new StringBuilder();\n URIWriter ...
"public void renderReportlet(OutputStream os, HttpServletRequest request, IReportDocument reportDocument, String reportletId, String format, boolean masterPage, boolean svgFlag, List activeIds, Locale locale, boolean rtl, String iServletPath) throws RemoteException {\n if (reportDocument == null) {\n AxisFaul...
"private Sound[] fromAudioInputStream(AudioInputStream ais) throws IOException {\n this.notifyAll(\"String_Node_Str\");\n int channels = ais.getFormat().getChannels();\n int currentChannel = 0;\n Sound[] ret = new Sound[channels];\n for (int channel = 0; channel < channels; channel++) {\n ret[chan...
"public void userSetPermission(Plugin plugin, CommandSender sender, Map<String, String> args) {\n PermissionUser user = PermissionsPlugin.getPermissionManager().getUser(args.get(\"String_Node_Str\"));\n if (user == null) {\n sender.sendMessage(ChatColor.RED + \"String_Node_Str\");\n return;\n }\n...
"public String getMessage(String resourceKey, ULocale locale) {\n if (StringUtil.isBlank(resourceKey))\n return \"String_Node_Str\";\n if (locale == null)\n locale = ThreadResources.getLocale();\n String msg = translations.getMessage(resourceKey, locale);\n if (msg != null)\n return msg...
"public boolean performFinish() {\n if (databaseWizardPage.isPageComplete()) {\n EDatabaseTypeName dbType = EDatabaseTypeName.getTypeFromDbType(connection.getDatabaseType());\n if (dbType != EDatabaseTypeName.GENERAL_JDBC) {\n String driverClass = ExtractMetaDataUtils.getDriverClassByDbType(...
"private String getJoinAlias(ArrayExpression expr) {\n StringBuilder sb = new StringBuilder(expr.getBase().toString());\n Expression indexExpr = expr.getIndex();\n if (indexExpr instanceof ParameterExpression) {\n ParameterExpression indexParamExpr = (ParameterExpression) indexExpr;\n sb.append('...
"public void onPlayerInteract(PlayerInteractEvent event) {\n Player p = event.getPlayer();\n if (ACHelper.getInstance().getConfBoolean(\"String_Node_Str\")) {\n AFKWorker.getInstance().updateTimeStamp(p);\n if (AFKWorker.getInstance().isAfk(p))\n AFKWorker.getInstance().setOnline(p);\n ...
"private static String getNewVariableTypeString(final IMethodName invokedMethod) {\n if (invokedMethod.isInit()) {\n return String.format(\"String_Node_Str\", getTypeIdentifier(invokedMethod.getDeclaringType()));\n }\n final ITypeName returnType = invokedMethod.getReturnType();\n if (returnType.isPri...
"public Object clone(Workspace workspace) throws CloneNotSupportedException {\n RectangleAttribute newObject = (RectangleAttribute) super.clone(workspace);\n newObject._icon.setShape(_newShape());\n return newObject;\n}\n"
"private void maybeRescheduleSync(SyncResult syncResult, SyncOperation operation) {\n final boolean isLoggable = Log.isLoggable(TAG, Log.DEBUG);\n if (isLoggable) {\n Log.d(TAG, \"String_Node_Str\" + syncResult + \"String_Node_Str\" + operation);\n }\n if (operation.extras.getBoolean(ContentResolver....
"public IContainer createInstance(final ContainerTypeDescription description, final Object[] parameters) throws ContainerCreateException {\n try {\n final RemoteOSGiService remoteOSGiService = Activator.getDefault().getRemoteOSGiService();\n String descriptionName = description.getName();\n bool...
"protected boolean initDialog() {\n if (inputGroup.getName() != null) {\n nameEditor.setText(inputGroup.getName());\n }\n refreshColumnList();\n setKeyExpression(inputGroup.getKeyExpr());\n int index = getIntervalTypeIndex(inputGroup.getInterval());\n intervalType.select(index);\n if (index ...
"protected void writeBody(FileWriter fileWriter, Object object, List<Change> ranChanges, List<Change> changesToRun, Migrator migrator) throws IOException {\n if (changesToRun.size() == 0) {\n fileWriter.append(\"String_Node_Str\");\n }\n fileWriter.append(\"String_Node_Str\");\n ChangeSet lastRunChan...
"public void addImage(int texture, float x1, float y1, float x2, float y2, float u1, float v1, float u2, float v2, int activeColor) {\n setZ(getZ() + .00001f);\n getBuffer(texture).addImage(x1, y1, x2, y2, u1, v1, u2, v2, activeColor);\n}\n"
"protected void event(UserRequest ureq, Controller source, Event event) {\n FeedManager feedManager = FeedManager.getInstance();\n Feed feed = feedManager.getFeed(feedResource);\n vcItems.contextPut(\"String_Node_Str\", feed);\n if (source == cmc) {\n if (event.equals(CloseableModalController.CLOSE_M...
"private void publishChannelIfLinked(Channel channel) {\n if (isLinked(channel.getUID().getId()) && getPlanet() != null) {\n try {\n updateState(channelUID, PropertyUtils.getState(channelUID, getPlanet()));\n } catch (Exception ex) {\n logger.error(\"String_Node_Str\" + channel.ge...
"protected TwillPreparer setLogLevels(TwillPreparer twillPreparer, Program program, ProgramOptions options) {\n FlowSpecification spec = program.getApplicationSpecification().getFlows().get(program.getName());\n for (String flowlet : spec.getFlowlets().keySet()) {\n Map<String, Level> logLevels = SystemArg...
"private boolean append(boolean isElementQuoted, String element) {\n if (element == null) {\n if (nullValue == null) {\n return isElementQuoted;\n }\n element = nullValue;\n }\n int start = 0;\n if (this.ignoreLeading) {\n start = skipLeadingWhitespace(whitespaceRangeS...
"public String[] getAvailableTraceTypes() {\n List<String> traceTypes = new ArrayList<String>();\n List<String> customTypes = getCustomTraceTypes();\n for (String key : this.fTraceTypes.keySet()) {\n TraceTypeHelper tt = this.fTraceTypes.get(key);\n traceTypes.add(tt.getCategoryName() + SEPARATOR...
"void read_constituent_string() throws IOException {\n while ((current_char != EOF_AS_CHAR) && isConstituentChar(current_char)) {\n store_and_advance();\n }\n}\n"
"protected boolean isDuplicate(Request request, Task task) {\n Jedis jedis = pool.getResource();\n try {\n boolean isDuplicate = jedis.sismember(getSetKey(task), request.getUrl());\n if (!isDuplicate) {\n jedis.sadd(getSetKey(task), request.getUrl());\n }\n return isDuplicat...
"private boolean isFeatureValuePairValid(String feature, String value) {\n if (viewApplicabilitiesMap.containsKey(feature)) {\n Collection<String> validValues = viewApplicabilitiesMap.get(feature);\n value = value.equalsIgnoreCase(\"String_Node_Str\") ? getDefaultValue(feature) : value.trim();\n ...
"public void markDirty() {\n for (int i = 0; i < drawerCount; i++) {\n if (snapshotItems[i] != null && snapshotItems[i].stackSize != snapshotCounts[i]) {\n int diff = snapshotItems[i].stackSize - snapshotCounts[i];\n if (diff > 0)\n putItemsIntoSlot(i, snapshotItems[i], di...