content
stringlengths
40
137k
"public void onGuildMessageDelete(GuildMessageDeleteEvent event) {\n EmbedBuilder builder = new EmbedBuilder();\n Guild guild = event.getGuild();\n TextChannel tc = ldm.getServerlogChannel(guild);\n Message message = MessagesLogging.getMsg(event.getMessageIdLong());\n String title;\n TextChannel chann...
"public Vec2i getSize() {\n return new Vec2i(100, 30);\n}\n"
"public void setOnline(Player player) {\n playerFactory.addExistingPlayer(player.getName());\n ACPlayer acPlayer = demandACPlayer(player);\n onlinePlayers.put(acPlayer, true);\n DebugLog.INSTANCE.info(player.getName() + \"String_Node_Str\");\n}\n"
"public Representation deleteMedia() {\n setServerHeader();\n Request request = getRequest();\n String auth = getQueryValue(Constants.AUTH_QUERY);\n String userId = null;\n String token = null;\n try {\n userId = getUserId(request, auth);\n token = getTransactionId(request, auth);\n }...
"public static Object getFirstContent(CrosstabCellHandle cell) {\n if (cell != null) {\n List<?> contents = cell.getContents();\n if (contents != null && contents.size() >= 1) {\n return contents.get(0);\n }\n }\n return null;\n}\n"
"public String toString() {\n return \"String_Node_Str\" + file.getFileName() + \"String_Node_Str\" + getMapID();\n}\n"
"public void initTraceParamters() {\n List<Map<String, Object>> values = new ArrayList<Map<String, Object>>();\n IMetadataTable metadataTable = this.getMetadataTable();\n if (metadataTable != null) {\n for (IMetadataColumn metaColumn : metadataTable.getListColumns()) {\n Map<String, Object> l...
"public ArrayList<Property> getFieldPropertiesForClass(JavaClass cls, TypeInfo info, boolean onlyPublic) {\n ArrayList<Property> properties = new ArrayList<Property>();\n if (cls == null) {\n return properties;\n }\n for (Iterator<JavaField> fieldIt = cls.getDeclaredFields().iterator(); fieldIt.hasNe...
"public List<UpdateResult> checkJobItemsForUpdate(IProgressMonitor parentMonitor, final Set<IUpdateItemType> types) {\n if (types == null || types.isEmpty()) {\n return null;\n }\n List<IProcess2> openedProcessList = CoreRuntimePlugin.getInstance().getDesignerCoreService().getOpenedProcess(RepositoryUpd...
"public Report execute(IndexService index, ModelService model, StorageService storage, List<LiteOptionalWithCause> liteList) throws PluginException {\n String firstAIPId = \"String_Node_Str\";\n BufferedWriter fileWriter = null;\n CSVPrinter csvFilePrinter = null;\n try {\n SimpleJobPluginInfo jobPlu...
"public static void loadRecipes() {\n if (miningWellBlock != null) {\n CoreProxy.proxy.addCraftingRecipe(new ItemStack(miningWellBlock, 1), \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", 'p', \"String_Node_Str\", 'i', \"String_Node_Str\", 'g', \"String_Node_Str\", 'P', Items.iron_pickaxe);\n ...
"private void exportNodeProperties(Graph graph) throws IOException {\n stringBuilder.append(\"String_Node_Str\");\n stringBuilder.append(\"String_Node_Str\");\n if (exportCoords) {\n writer.write(\"String_Node_Str\");\n }\n if (exportSize) {\n writer.write(\"String_Node_Str\");\n }\n ...
"public void initialize() throws BirtException {\n createRoot();\n Color backgroundColor = PropertyUtil.getColor(pageContent.getComputedStyle().getProperty(StyleConstants.STYLE_BACKGROUND_COLOR));\n ReportDesignHandle designHandle = pageContent.getReportContent().getDesign().getReportDesign();\n IStyle styl...
"protected void initialize(int timeout) {\n try {\n System.loadLibrary(\"String_Node_Str\");\n } catch (Throwable e) {\n if (!Utils.checkLibraryInPath(LIBFILENAME)) {\n Utils.extractFromJarToTemp(LIBFILENAME);\n System.load(System.getProperty(\"String_Node_Str\") + File.separat...
"public void initializeUI(UIBuilder builder) throws Exception {\n idStrategy.setDefaultValue(GenerationType.AUTO);\n Project project = getSelectedProject(builder.getUIContext());\n if (project == null) {\n UISelection<FileResource<?>> currentSelection = builder.getUIContext().getInitialSelection();\n ...
"private boolean reg_save_equal(regsave_T save) {\n if (reg_match == null) {\n return reglnum == save.pos.lnum && reginput.equals(regline.ref(save.pos.col));\n }\n return reginput == save.ptr;\n}\n"
"public static DefaultHttpClient getNewHttpClient(boolean customssl) {\n DefaultHttpClient hc = null;\n if (customssl) {\n try {\n if (trustStore == null) {\n trustStore = KeyStore.getInstance(\"String_Node_Str\");\n final InputStream in = OpacClient.context.getReso...
"public void testProcessHeadersInDependenciesOfBinaries() throws Exception {\n AnalysisMock.get().ccSupport().setupCrosstool(mockToolsConfig, MockCcSupport.HEADER_PROCESSING_FEATURE_CONFIGURATION);\n useConfiguration(\"String_Node_Str\", \"String_Node_Str\");\n ConfiguredTarget x = scratchConfiguredTarget(\"St...
"public void testSortWithExpr1() throws Exception {\n DataEngineImpl engine = (DataEngineImpl) DataEngine.newDataEngine(DataEngineContext.newInstance(DataEngineContext.DIRECT_PRESENTATION, null, null, null));\n this.createCube(engine);\n ICubeQueryDefinition cqd = new CubeQueryDefinition(cubeName);\n IEdgeD...
"private void updateSchoolMates(Continuation<List<SchoolMate>, Void> continuation) {\n SchoolMatesManager.getInstance().queryAllSchoolMates().continueWith(task -> {\n final List<SchoolMate> result = task.getResult();\n if (result != null) {\n Collections.sort(result, new LetterComparator<>()...
"protected void propertySet(Bean bean, String propertyName, Object newValue, boolean quiet) {\n switch(propertyName.hashCode()) {\n case 467061063:\n ((SimplePerson) bean).setForename((String) newValue);\n return;\n case -1852993317:\n ((SimplePerson) bean).setSurname((...
"protected Control createCustomArea(Composite parent) {\n List list = new List(parent, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);\n list.setItems(this.information);\n GridData data = new GridData();\n data.heightHint = 120;\n data.widthHint = 350;\n data.horizontalAlignment = GridData.FILL;\n data....
"public String sendTicketByEmail(String eventName, String reservationId, String ticketIdentifier, HttpServletRequest request, Locale locale) throws Exception {\n Optional<Triple<Event, TicketReservation, Ticket>> oData = ticketReservationManager.fetchCompleteAndAssigned(eventName, reservationId, ticketIdentifier);\n...
"private Intent createParserServiceIntent(Bundle bundle) {\n if (bundle != null) {\n Intent intent = new Intent(this, TextParserService.class);\n intent.putExtras(bundle);\n return intent;\n}\n"
"private void print(char c) {\n if (enabled()) {\n writer.print(s);\n }\n}\n"
"public static String addQuotesIfNotExist(String text, String quote) {\n if (text == null) {\n return null;\n }\n if (\"String_Node_Str\".equals(text)) {\n text = quote + quote;\n } else {\n if (!text.startsWith(quote)) {\n text = quote + text;\n }\n if (!text.e...
"public static Exception testURLConnection(IConnectionProfile connectionProfile, final String propertyKey) {\n Properties connProperties = connectionProfile.getBaseProperties();\n String xmlFile = connProperties == null ? null : (String) connProperties.get(propertyKey);\n String responseType = IWSProfileConsta...
"public boolean put(UUID nodeId, Set<Service> descriptors) {\n boolean exists = exists(nodeId);\n String value = codec.toJson(ImmutableList.copyOf(descriptors));\n HFactory.createMutator(keyspace, StringSerializer.get()).addInsertion(nodeId.toString(), COLUMN_FAMILY, HFactory.createColumn(currentTime.get().get...
"public static void main(String[] args) throws IOException, JAXBException {\n JCommander jc = new JCommander();\n jc.setProgramName(\"String_Node_Str\");\n AssembleCommand assemble = new AssembleCommand();\n SegmentCommand segment = new SegmentCommand();\n CompareCommand compare = new CompareCommand();\n...
"public static Double getDouble(String key, Double defaultValue) {\n try {\n return config.getDouble(key, defaultValue);\n } catch (ConversionException ce) {\n logger.error(key + \"String_Node_Str\");\n }\n return defaultValue;\n}\n"
"protected boolean doExecute() throws Exception {\n boolean result = true;\n for (String indicatorName : TextStatisticsIndicators) {\n IndicatorDefinition indiDefinition = IndicatorDefinitionFileHelper.getSystemIndicatorByName(indicatorName);\n if (indiDefinition != null && IndicatorDefinitionFileHe...
"public static DeploymentFactoryInstaller getInstaller() {\n if (dfInstaller == null) {\n DeploymentFactoryInstaller tmpInstaller = new DeploymentFactoryInstaller();\n tmpInstaller.initialize();\n dfInstaller = tmpInstaller;\n }\n return dfInstaller;\n}\n"
"public final int computeTicks(IDisplayServer xs, Label la, int iLabelLocation, int iOrientation, double dStart, double dEnd, boolean bConsiderStartLabel, boolean bConsiderEndLabel, AllAxes aax) throws ChartException {\n int nTicks = 0;\n double dLength = 0;\n double dTickGap = 0;\n int iDirection = (iScale...
"protected void drawGuiContainerBackgroundLayer(float f, int x, int y) {\n super.drawGuiContainerBackgroundLayer(f, x, y);\n if (this.container.recipe != null) {\n IUpgrade upgrade = this.container.recipe.getRecipeOutput();\n this.drawStringBounded(upgrade.getName(), 70, this.guiLeft + 100, this.gui...
"public static String[] split(String input, char delim) {\n ArrayList<String> parts = new ArrayList<>();\n for (int index; (index = input.indexOf(delim)) != -1; ) {\n parts.add(input.substring(0, index));\n input = input.substring(index + 1);\n }\n parts.add(input);\n return parts.toArray(n...
"public Object getValue(int index, int selector, Object parameters) {\n if (index == 1) {\n return getLogicalName();\n }\n if (index == 2) {\n return getTime();\n }\n if (index == 3) {\n return getTimeZone();\n }\n if (index == 4) {\n return getStatus().getValue();\n ...
"protected IndexedAttributeList buildAttributeList(Element elem) throws SAXException {\n IndexedAttributeList attributes = new IndexedAttributeList();\n NamedNodeMap attrs = elem.getAttributes();\n int length = attrs.getLength();\n for (int i = 0; i < length; i++) {\n Attr next = (Attr) attrs.item(i)...
"private void inferXsdFromXml(String xmlFile) {\n int infer = 0;\n String xsd = \"String_Node_Str\";\n try {\n String inputType = xmlFile.substring(xmlFile.lastIndexOf(\"String_Node_Str\"));\n if (inputType.equals(\"String_Node_Str\")) {\n xsd = Util.getXML(xmlFile);\n xsdSc...
"public void run() {\n boolean hasReportedNullSocket = false;\n SendBundle currBundle = null;\n while (true) {\n synchronized (PACKETS_TO_SEND) {\n while (PACKETS_TO_SEND.isEmpty()) {\n try {\n PACKETS_TO_SEND.wait();\n } catch (InterruptedExce...
"public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object objectValue, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) {\n objectValue = xmlCompositeObjectMapping.convertObjectValueToDataValue(objectValue, sessi...
"private ASTSlice[] getTable() {\n if (selectedPackage != null)\n astReader = new ASTReader(selectedPackage);\n else\n astReader = new ASTReader(selectedProject);\n SystemObject systemObject = astReader.getSystemObject();\n List<PDGSlice> extractedSlices = new ArrayList<PDGSlice>();\n ListI...
"protected void restoreState(int bookmark, String text, Game game) {\n if (storedBookmark > -1) {\n game.restoreState(bookmark, text);\n if (storedBookmark >= bookmark) {\n resetStoredBookmark(game);\n }\n }\n}\n"
"public void writeStartHarvesterApps(File res, String setfn) {\n File logdir = new File(installDir + \"String_Node_Str\");\n String settingsfn = installDir + \"String_Node_Str\" + setfn;\n writeStart(res, HarvestControllerApplication.class.getName(), settingsfn, logdir, logProperties, getHeritrixUiPortArgs() +...
"private void clearPartition(int partitionId) {\n final Iterator<String> iter = latches.keySet().iterator();\n while (iter.hasNext()) {\n final String name = iter.next();\n if (nodeEngine.getPartitionService().getPartitionId(StringPartitioningStrategy.getPartitionKey(name)) == partitionId) {\n ...
"private boolean decreaseMinExpectableResp() {\n int remainingExpected = minExpectableResp.decrementAndGet();\n int remainingReceivable = maxReceivableResp.decrementAndGet();\n return remainingExpected == -1 || (remainingExpected == 0 && remainingReceivable >= 0);\n}\n"
"public static String generateTAPTestResultDescription(JUnitTestData testMethod) {\n final StringBuilder description = new StringBuilder();\n description.append(\"String_Node_Str\");\n description.append(extractClassName(testMethod.getDescription()));\n description.append(':');\n description.append(extra...
"protected void onPreRun() {\n mDialog = new ProgressDialog(mContext);\n mDialog.setMessage(mContext.getResources().getText(mMsgid));\n mDialog.setProgressStyle(mStyle.getStyle());\n mDialog.setMax(100);\n mDialog.setCancelable(false);\n mDialog.setOnKeyListener(new DialogInterface.OnKeyListener() {\n...
"public boolean hasNext() {\n return this.rowCount < size;\n}\n"
"public ISelectionDelta setDelta(ISelectionDelta selectionDelta) {\n if (externalToInternalMapping != null) {\n ISelectionDelta externalSelectionDelta = selectionDelta;\n selectionDelta = new SelectionDelta(internalIDType);\n for (SelectionItem item : externalSelectionDelta) {\n Integ...
"protected void paintColorScale(GlimpseContext context) {\n Axis1D axis = getAxis1D(context);\n if (colorTexture != null && axis instanceof TaggedAxis1D) {\n TaggedAxis1D taggedAxis = (TaggedAxis1D) axis;\n GlimpseBounds bounds = getBounds(context);\n GL3 gl = context.getGL().getGL3();\n ...
"public void run() {\n HashMap<String, Object> params = new HashMap<String, Object>();\n params.put(RCDevice.ParameterKeys.INTENT_INCOMING_CALL, new Intent(RCDevice.ACTION_INCOMING_CALL, null, InstrumentationRegistry.getTargetContext(), IntegrationTests.class));\n params.put(RCDevice.ParameterKeys.INTENT_INCOM...
"private void startScanningDisplay(long scanStartTime, boolean hasResults) {\n Log.d(TAG, \"String_Node_Str\" + scanStartTime + \"String_Node_Str\" + hasResults);\n long elapsedMillis = new Date().getTime() - scanStartTime;\n if (elapsedMillis < FIRST_SCAN_TIME_MILLIS || (elapsedMillis < SECOND_SCAN_TIME_MILLI...
"private TestResult getTestResult(Process p) {\n TestResult tr = new TestResult();\n boolean success = false;\n String out = \"String_Node_Str\";\n try {\n BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream()));\n String line;\n while ((line = in.readLine()) !...
"private void processDescriptorForRAReferences(com.sun.enterprise.deployment.Application app, String moduleName, Descriptor descriptor) {\n if (descriptor instanceof JndiNameEnvironment) {\n JndiNameEnvironment jndiEnv = (JndiNameEnvironment) descriptor;\n for (Object resourceRef : jndiEnv.getResourceR...
"public void dump(FileDescriptor fd, PrintWriter pw, String[] args) {\n final long now = SystemClock.uptimeMillis();\n boolean isCheckin = false;\n boolean isCompact = false;\n boolean isCsv = false;\n boolean currentOnly = false;\n boolean dumpDetails = false;\n boolean dumpAll = false;\n Strin...
"public boolean populateTree(ATreeNode treeNode, Object selectedEntity, File fileValue) {\n if (fileValue == null || !fileValue.exists() || !fileValue.isFile()) {\n return false;\n }\n if (selectedEntity instanceof JsonTreeNode) {\n SchemaPopulationUtil.fetchTreeNode((JsonTreeNode) selectedEntity...
"public View getView(int position, View convertView, Context c) {\n ViewHolder holder = null;\n if (convertView == null) {\n holder = new ViewHolder();\n convertView = LayoutInflater.from(c).inflate(R.layout.list_item_linechart, null);\n holder.chart = (LineChart) convertView.findViewById(R.i...
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n ImageFilterRS.setRenderScriptContext(this);\n ImageShow.setDefaultBackgroundColor(getResources().getColor(R.color.background_screen));\n ImageSmallFilter.setDefaultBackgroundColor(getResources().getColor(R.color.backg...
"public void receive(long timeStamp, Event[] inEvents, Event[] removeEvents) {\n EventPrinter.print(timeStamp, inEvents, removeEvents);\n eventArrived = true;\n if (inEvents != null) {\n Assert.assertEquals(\"String_Node_Str\", String.valueOf(inEvents[0].getData(8)));\n }\n}\n"
"public IParameterDefn[] getParameterDefn() {\n return new IParameterDefn[] { new ParameterDefn(Constants.EXPRESSION_NAME, Constants.EXPRESSION_DISPLAY_NAME, false, true, SupportedDataTypes.CALCULATABLE, \"String_Node_Str\") };\n}\n"
"public HierarchyWizardResult<T> getResult() {\n try {\n return new HierarchyWizardResult<T>(model.getHierarchy(), model.getBuilder(true));\n } catch (Exception e) {\n return null;\n }\n}\n"
"public void testAddTestsAndExitOnFailureWithLocalServer() throws Exception {\n List<String> tests = tests();\n ActionSequenceBuilder builder = new ActionSequenceBuilder(new ActionFactory(null, Collections.<TestsPreProcessor>emptySet(), SlaveBrowser.TIMEOUT, Collections.<AuthStrategy>emptySet(), false, null, null...
"public Fragment getItem(int pos) {\n Fragment f = null;\n switch(pos) {\n case 0:\n f = SineCosineFragment.newInstance();\n break;\n case 1:\n f = BarChartFrag.newInstance();\n break;\n case 2:\n f = ScatterChartFrag.newInstance();\n ...
"private String sendAndReceiveSPARQL(String sparql) throws IOException {\n StringBuilder answer = new StringBuilder();\n HttpURLConnection connection;\n SpecificSparqlEndpoint se = configuration.getSparqlEndpoint();\n connection = (HttpURLConnection) se.getURL().openConnection();\n connection.setDoOutput...
"public String deleteDriver() {\n Driver driverEntity = vendorService.findDriverByDriverCode(driverCodeParam);\n vendorService.deleteDriver(driverEntity);\n return SUCCESS;\n}\n"
"public static TableInfo createTable(ITableContent table, int width) {\n int tableWidth = getElementWidth(table, width);\n int columnCount = table.getColumnCount();\n if (columnCount == 0) {\n return null;\n }\n int[] columns = new int[columnCount];\n int unassignedCount = 0;\n int totalAssi...
"public String toString() {\n String SEP = System.getProperty(\"String_Node_Str\");\n StringBuilder content = new StringBuilder();\n content.append(\"String_Node_Str\").append(SEP);\n if (dockerServerVersion != null) {\n content.append(\"String_Node_Str\").append(dockerServerVersion).append(SEP);\n ...
"public void readParameters() {\n pattern = getContext().getParameterAsString(\"String_Node_Str\", null);\n name = getContext().getParameterAsString(\"String_Node_Str\", null);\n types = getContext().getParametersAsEnums(\"String_Node_Str\", SimonType.class, null);\n}\n"
"private void placePlants(float numPlants, float numDews, float numPods, float numStars) {\n Iterator<Integer> cells = affectedCells.iterator();\n Level floor = Dungeon.level;\n while (cells.hasNext() && Random.Float() <= numPlants) {\n Plant.Seed seed = (Plant.Seed) Generator.random(Generator.Category....
"public palodatavalue getValue(long[] lDimensionElementIdentifierArray) throws paloexception {\n List qparams = new ArrayList();\n qparams.add(new BasicNameValuePair(\"String_Node_Str\", plConn.getPaloToken()));\n qparams.add(new BasicNameValuePair(\"String_Node_Str\", String.valueOf(lDatabaseId)));\n qpara...
"public void generatePoints(int times) {\n for (int i = 0; i < times; i++) {\n for (int j = 0; j < points.size() - 1; j += 2) {\n Location loc1 = points.get(j);\n Location loc2 = points.get(j + 1);\n double adjac = 0;\n if (loc1.getWorld().equals(loc2.getWorld())) {...
"public static EF_Normal_NormalParents toEFDistribution(Normal_NormalParents dist) {\n EF_Normal_NormalParents ef_normal_normalParents = new EF_Normal_NormalParents(dist.getVariable(), dist.getConditioningVariables());\n CompoundVector naturalParameters = ef_normal_normalParents.createEmtpyCompoundVector();\n ...
"protected void handleDestinationBrowseButtonPressed() {\n FileDialog dialog = new FileDialog(getContainer().getShell(), SWT.SAVE);\n JobExportType jobExportType = getCurrentExportType1();\n switch(jobExportType) {\n case WSWAR:\n dialog.setFilterExtensions(new String[] { \"String_Node_Str\",...
"public static void main(String[] args) {\n try {\n Gpio led = new Gpio(4);\n Aio lightSensor = new Aio(0);\n led.dir(Dir.DIR_OUT);\n int on = 0;\n long lightValue = 0;\n String command = \"String_Node_Str\";\n Socket clientSocket = new Socket(args[0], Integer.parseIn...
"public void testImplementingInterface_MethodWithParameters3_JextendsG() {\n runConformTest(new String[] { \"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\", \"String_Node_S...
"private String internalFilterAssemblySubject() {\n String Filter = \"String_Node_Str\";\n if (!this.sparqlQueryType.isLiterals()) {\n Filter += \"String_Node_Str\";\n if (sparqlQueryType.getPredicatefilterlist().size() > 0)\n Filter += \"String_Node_Str\";\n } else if (sparqlQueryType...
"public static IEditorPart getRepositoryEditor(RepositoryNode node) {\n IEditorPart[] parts = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getDirtyEditors();\n for (IEditorPart part : parts) {\n IEditorInput inputObj = part.getEditorInput();\n if (inputObj instanceof Reposito...
"public ContactHeader getContactHeader(SipURI intendedDestination) {\n ContactHeader registrationContactHeader = null;\n ListeningPoint srcListeningPoint = getListeningPoint(intendedDestination);\n InetSocketAddress targetAddress = getIntendedDestination(intendedDestination);\n try {\n InetAddress lo...
"public static final void main(String[] args) throws RemoteException {\n if (args.length < 2) {\n System.err.println(\"String_Node_Str\" + TicketLocker.class.getName() + \"String_Node_Str\");\n return;\n }\n TicketLocker locker = new TicketLocker(args[0], Integer.parseInt(args[1]), null);\n Li...
"public String[] getWorldInheritance(String world) {\n if (world == null || world.isEmpty()) {\n return new String[0];\n }\n if (!worldInheritanceCache.containsKey(world)) {\n try {\n ResultSet result = this.sql.selectQuery(\"String_Node_Str\", world);\n LinkedList<String> w...
"private Entity copyFieldEntityValue(final Entity performerEntity, final Entity fieldEntity) {\n Entity fieldEntityCopy = null;\n final Entity existingPerformer = performersChain.find(fieldEntity);\n if (existingPerformer != null) {\n fieldEntityCopy = existingPerformer;\n } else if (fieldEntity inst...
"public void run() {\n while (true) {\n String resolvedConnection = getResolvedConnection();\n Iface blurConnection = BlurClient.getClient(resolvedConnection);\n int zookeeperId = getZookeeperId();\n for (Map<String, Object> cluster : this.database.getClusters(zookeeperId)) {\n ...
"public boolean applies(GameEvent event, Ability source, Game game) {\n if (event.getType() == EventType.ZONE_CHANGE && ((ZoneChangeEvent) event).getToZone() == Zone.GRAVEYARD) {\n Card card = game.getCard(event.getTargetId());\n if (card != null && game.getOpponents(source.getControllerId()).contains(...
"public void startTable(ITableContent table) {\n ContainerSizeInfo sizeInfo = engine.getCurrentContainer().getSizeInfo();\n int width = sizeInfo.getWidth();\n ColumnsInfo info = null;\n boolean isAutoTable = true;\n if (isAutoTable) {\n info = LayoutUtil.createTable(table, width);\n } else {\n ...
"public void setApplicationEnabledSetting(String packageName, int newState, int flags) {\n try {\n mPM.setApplicationEnabledSetting(packageName, newState, flags, mContext.getUserId(), mContext.getOpPackageName());\n } catch (RemoteException e) {\n }\n}\n"
"public int execute(StratosCommandContext context, String[] args) throws CommandException {\n if (logger.isDebugEnabled()) {\n logger.debug(\"String_Node_Str\", getName());\n }\n if (args != null && args.length > 0) {\n String resourcePath = null;\n String autoscalingPolicyDeployment = nul...
"public void prepareRun(BatchSinkContext context) {\n LOG.debug(\"String_Node_Str\", dbSinkConfig.tableName, dbSinkConfig.jdbcPluginType, dbSinkConfig.jdbcPluginName, dbSinkConfig.connectionString, dbSinkConfig.columns);\n Job job = context.getHadoopJob();\n Configuration hConf = job.getConfiguration();\n C...
"void draw(SpriteBatch batch, BitmapFont font) {\n if (inventoryVisible) {\n batch.draw(Assets.inventory, 0, 0);\n Player.ableToMove = false;\n font.draw(batch, Tree.amountOfWoodString, 350, 290);\n font.draw(batch, Fishing.amountOfFishString, 350, 225);\n }\n}\n"
"public boolean onOptionsItemSelected(MenuItem item) {\n switch(item.getItemId()) {\n case android.R.id.home:\n if (currentFragment.onOptionsItemSelected(item))\n return true;\n if (selectedItem != START_PREFERENCE && restartActivity) {\n restartActivity(thi...
"private void sdkInit() {\n String port = null;\n try {\n port = NulsContext.MODULES_CONFIG.getCfgValue(RpcConstant.CFG_RPC_SECTION, RpcConstant.CFG_RPC_SERVER_PORT);\n } catch (NulsException e) {\n }\n if (StringUtils.isBlank(port)) {\n SdkManager.init(\"String_Node_Str\" + RpcConstant.DEF...
"public void testAddToRI3() {\n long expected = TEST_TIME_NOW;\n expected = ISOChronology.getInstance().years().add(expected, -2);\n expected = ISOChronology.getInstance().months().add(expected, -4);\n expected = ISOChronology.getInstance().weeks().add(expected, -6);\n expected = ISOChronology.getInstanc...
"public void associationPlayerChanged(Association a, Topic role, Topic newPlayer, Topic oldPlayer) throws TopicMapException {\n if (!topicMapListeners.isEmpty()) {\n LayeredAssociation la = makeLayeredAssociation(a);\n LayeredTopic lrole = makeLayeredTopic(role);\n LayeredTopic lNewPlayer = make...
"public View getView(int position, View convertView, ViewGroup parent) {\n if (position < ZOOMTYPE.getColumns()) {\n Log.i(this.getClass().getSimpleName() + \"String_Node_Str\", \"String_Node_Str\" + ZOOMTYPE.toString());\n TextView textView = new TextView(mContext);\n switch(ZOOMTYPE.getType())...
"public void testModel2Advertisement() throws JAXBException, InvalidModelException {\n final Model model = Omn4GeniTest.parser.getInfModel();\n final String rspec = AdvertisementConverter.getRSpec(model);\n System.out.println(rspec);\n Assert.assertTrue(\"String_Node_Str\", rspec.contains(\"String_Node_Str\...
"public void onEnable() {\n INSTANCE = this;\n getLogger().info(\"String_Node_Str\");\n serverObjectBuilder = new BukkitServerBridge(this, getLogger());\n plotme.registerServerBridge(serverObjectBuilder);\n getAPI().enable();\n doMetric();\n PluginManager pm = getServer().getPluginManager();\n p...
"protected void onResponse(ListGists gists, boolean refreshing) {\n if (gists != null && gists.size() > 0) {\n if (gistsAdapter == null || refreshing) {\n gistsAdapter = new GistsAdapter(getActivity(), gists);\n setListAdapter(gistsAdapter);\n }\n if (gistsAdapter.isLazyLoa...
"public void checkOtherInstall() throws InterruptedException {\n String otherInstallItemUiSelector = \"String_Node_Str\";\n List<AndroidElement> eList = mDriver.findElementsByAndroidUIAutomator(otherInstallItemUiSelector);\n int eListSize;\n if ((eListSize = eList.size()) > 0) {\n AndroidElement rand...
"protected void removeItemBranch(TreeItem item) {\n IndicatorUnit unit = (IndicatorUnit) item.getData(INDICATOR_UNIT_KEY);\n ModelElementIndicator meIndicator = (ModelElementIndicator) item.getData(MODELELEMENT_INDICATOR_KEY);\n deleteColumnItems(meIndicator.getModelElementRepositoryNode());\n deleteModelEl...
"static ConsumerConfig updateGroupForBroadcast(final ConsumerConfig consumerConfig) {\n try {\n consumerConfig.setGroup(consumerConfig.getGroup() + \"String_Node_Str\" + RemotingUtils.getLocalHost().replaceAll(\"String_Node_Str\", \"String_Node_Str\"));\n return consumerConfig;\n } catch (final Exce...
"public static boolean isTypeComplex(DatabaseType dbType) {\n return dbType.isPLSQLType() || dbType.isVArrayType() || dbType.isObjectType() || dbType.isObjectTableType();\n}\n"