content stringlengths 40 137k |
|---|
"protected void readLine(String line, DeckCardLists deckList) {\n if (line.length() == 0 || line.startsWith(\"String_Node_Str\")) {\n return;\n }\n boolean sideboard = false;\n if (line.startsWith(\"String_Node_Str\")) {\n line = line.substring(3).trim();\n sideboard = true;\n }\n ... |
"public void testValidateValidUrl() throws Exception {\n RestfulHudsonClient client = harness.connect(PrivilegeLevel.ANONYMOUS);\n HudsonServerInfo info = client.validate(null);\n assertEquals(harness.getFixture().getType(), info.getType());\n assertEquals(harness.getFixture().getVersion(), info.getVersion(... |
"public final synchronized Decompressor getDecompressor(final AbstractByteBufferedInputChannel<?> inputChannel) throws CompressionException {\n final InputGate<?> inputGate = inputChannel.getInputGate();\n DecompressorCacheEntry cacheEntry = this.decompressorCache.get(inputGate);\n if (cacheEntry == null) {\n ... |
"private static void checkCompositeSkylarkObjectSafe(Object object) {\n if (object instanceof SkylarkApiProvider) {\n return;\n } else if (object instanceof SkylarkList) {\n SkylarkList list = (SkylarkList) object;\n if (list.isEmpty()) {\n return;\n }\n for (Object l... |
"private void commitTyped(InputConnection inputConnection) {\n if (mPredicting) {\n mPredicting = false;\n if (mWord.size() > 0) {\n if (inputConnection != null) {\n inputConnection.commitText(mWord.getTypedWord(), 1);\n }\n mCommittedLength = mWord.size(... |
"public void parseObjModel(URL fileURL) {\n BufferedReader reader = null;\n InputStream inputStream = null;\n parserFactory = new ObjLineParserFactory(this);\n try {\n inputStream = fileURL.openStream();\n reader = new BufferedReader(new InputStreamReader(inputStream));\n String current... |
"public ApplicationLoadBalancerResponse createLoadBalancerContainerReponse(ApplicationLoadBalancerRule lb, Map<Ip, UserVm> lbInstances) {\n ApplicationLoadBalancerResponse lbResponse = new ApplicationLoadBalancerResponse();\n lbResponse.setId(lb.getUuid());\n lbResponse.setName(lb.getName());\n lbResponse.s... |
"private Select createSelect() {\n ColumnName columnName = new ColumnName(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n ColumnSelector columnSelector = new ColumnSelector(columnName);\n columnSelector.setAlias(\"String_Node_Str\");\n Map<Selector, String> columnsAliases = new HashMap<>()... |
"public void send() {\n wasExecuted = true;\n ResultSet rs;\n String service = sparqlEndpoint.getURL().toString();\n writeToSparqlLog(\"String_Node_Str\");\n SparqlQuery.writeToSparqlLog(\"String_Node_Str\" + sparqlEndpoint.getHTTPRequest());\n writeToSparqlLog(sparqlQueryString);\n logger.trace(\"... |
"public BytesInput getBytes() {\n int size = (packedCount + bytes.size() * packedArraySize) * 4;\n final ByteBuffer buffer = ByteBuffer.allocate(size);\n buffer.order(ByteOrder.BIG_ENDIAN);\n final IntBuffer intBuffer = buffer.asIntBuffer();\n for (int[] array : bytes) {\n intBuffer.put(array);\n ... |
"public static void tearDown() {\n String ddlDrop = System.getProperty(DATABASE_DDL_DROP_KEY, DEFAULT_DATABASE_DDL_DROP);\n if (\"String_Node_Str\".equalsIgnoreCase(ddlDrop)) {\n runDdl(conn, DROP_BOOL_PROC, ddlDebug);\n runDdl(conn, DROP_BINARY_INT_PROC, ddlDebug);\n runDdl(conn, DROP_PLS_IN... |
"protected void calculateOffsets() {\n if (mLegend == null)\n return;\n if (mLegend.getPosition() == LegendPosition.RIGHT_OF_CHART) {\n mLegend.setOffsetRight(mLegend.getMaximumEntryLength(mLegendLabelPaint));\n mLegendLabelPaint.setTextAlign(Align.LEFT);\n } else if (mLegend.getPosition()... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n String userSafetylegalUrl = SystemProperties.get(PROPERTY_LSAFETYLEGAL_URL);\n final Configuration configuration = getResources().getConfiguration();\n final String language = configuration.locale.getLanguage();\n ... |
"protected void createLocationTree() {\n Label treeLabel = new Label(getWidgetContainer(), SWT.NORMAL);\n treeLabel.setText(translationService.translate(\"String_Node_Str\"));\n GridData gdLabel = new GridData();\n gdLabel.verticalAlignment = GridData.BEGINNING;\n treeLabel.setLayoutData(gdLabel);\n t... |
"public int compare(SolrQueryResultItem item1, SolrQueryResultItem item2) {\n double sim1 = 0;\n if (cache.containsKey(item1.getLabel())) {\n sim1 = cache.get(item1.getLabel());\n } else {\n sim1 = Similarity.getSimilarity(s, item1.getLabel());\n cache.put(item1.getLabel(), sim1);\n }\n... |
"private void evalAllCounts(String catalog, String schema, NamedColumnSet t, SchemaIndicator schemaIndic, boolean isTable, ReturnCode ok) throws SQLException {\n String quCatalog = catalog == null ? null : dbms().quote(catalog);\n String quSchema = schema == null ? null : dbms().quote(schema);\n final String t... |
"public void unregister() {\n log.info(\"String_Node_Str\");\n configuration.setCsarAuthorizationFilter(null);\n}\n"
|
"public void setCompoundDrawablesRelative(Drawable start, Drawable top, Drawable end, Drawable bottom) {\n Drawables dr = mDrawables;\n final boolean drawables = start != null || top != null || end != null || bottom != null;\n if (!drawables) {\n if (dr != null) {\n if (dr.mDrawablePadding ==... |
"public void map(LongWritable lineNumber, Text userPrefEntry, OutputCollector<VIntWritable, VIntWritable> output, Reporter reporter) throws IOException {\n String userPrefLine = userPrefEntry.toString();\n String[] prefFields = userPrefLine.split(fieldSeparator);\n if (prefFields.length > 1) {\n try {\n... |
"public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) {\n ItemStack stack = playerIn.getHeldItem(hand);\n if (!ItemStackUtil.isEmpty(stack) && !worldIn.isRemote) {\n if (FluidLib.hasFluid... |
"public ObjectMapper getObjectMapper(String keyspace) {\n ObjectMapper objectMapper = objectMappers.get(keyspace);\n if (objectMapper == null) {\n logger.debug(\"String_Node_Str\", defaultKeyspace.getName());\n Session session = cluster.connect(defaultKeyspace.getName());\n objectMapper = new... |
"public boolean apply(Game game, Ability source) {\n LifeLossOtherFromCombatWatcher watcher = (LifeLossOtherFromCombatWatcher) game.getState().getWatchers().get(LifeLossOtherFromCombatWatcher.class.getName());\n return watcher != null && watcher.opponentLostLifeOtherFromCombat(source.getControllerId(), game);\n}\... |
"public void addChild(XPathFragment anXPathFragment, NodeValue aNodeValue, NamespaceResolver namespaceResolver) {\n if (anXPathFragment != null && namespaceResolver != null && anXPathFragment.getNamespaceURI() == null) {\n if (!anXPathFragment.isAttribute()) {\n anXPathFragment.setNamespaceURI(name... |
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);\n setContentView(R.layout.main);\n _openCvCameraView = (JavaCameraView) findViewById(R.id.aav_activity_surface_view);\n _openCvCameraView.setCvC... |
"private MappedByteBuffer getPage(int pageIndex) throws IOException {\n while (pageIndex >= pages.size()) {\n pages.add(null);\n }\n MappedByteBuffer page = pages.get(pageIndex);\n if (page == null) {\n long pagePosition = pageIndex << PAGE_SHIFT;\n boolean interrupted = false;\n ... |
"public void testQuery6() throws InterruptedException {\n log.info(\"String_Node_Str\");\n SiddhiManager siddhiManager = new SiddhiManager();\n String tables = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n ExecutionPlanRuntime executionPlanRun... |
"public void testRunWindupSourceMode() throws Exception {\n Path userPath = FileUtils.getTempDirectory().toPath().resolve(\"String_Node_Str\").resolve(\"String_Node_Str\" + RandomStringUtils.randomAlphanumeric(6));\n try {\n Files.createDirectories(userPath);\n try (InputStream is = getClass().getRe... |
"public void reset(String key) throws ReadOnlyException {\n if (isReadOnly(key)) {\n throw new ReadOnlyException(EXCEPTIONS.getString(\"String_Node_Str\", \"String_Node_Str\"));\n }\n boolean resetDone = false;\n for (int i = 0; !resetDone && i < defaultPreferences.length; i++) {\n if (key.equ... |
"public synchronized InetAddress getInetAddress() {\n if (serverSocket != null) {\n try {\n return getServerInetAddress();\n } catch (SocketException e) {\n return serverSocket.getInetAddress();\n } catch (UnknownHostException e) {\n return serverSocket.getInetAd... |
"public void onBackPressed() {\n hangup(false);\n}\n"
|
"public SqlSource createSqlSource(Configuration configuration, String script, Class<?> parameterType) {\n if (script.startsWith(\"String_Node_Str\")) {\n XMLScriptBuilder builder = new XMLScriptBuilder(configuration, script);\n return builder.parseScriptNode();\n } else {\n List<SqlNode> cont... |
"public void requestAccessToken(OnRequestAccessTokenCompleteListener onRequestAccessTokenCompleteListener) {\n super.requestAccessToken(onRequestAccessTokenCompleteListener);\n AsyncTask<Void, Void, String> task = new AsyncTask<Void, Void, String>() {\n protected String doInBackground(Void... params) {\n ... |
"public void pullEdge(AbstractEdge edge, AbstractNode source, AbstractNode target, MetaEdgeImpl metaEdge) {\n float edgeWeight = edge.getWeight();\n float metaWeight = metaEdge.getWeight();\n float edgeCount = metaEdge.getCount();\n float div = 1f;\n if (source == metaEdge.getSource() || source == metaEd... |
"public void setWorkerInstances(HttpRequest request, HttpResponder responder, String namespaceId, String appId, String workerId) throws ExecutionException, InterruptedException {\n int instances;\n try {\n try {\n instances = getInstances(request);\n } catch (IllegalArgumentException e) {... |
"public final GeneratedChartState build(IDisplayServer ids, Chart cmDesignTime, Bounds bo, IExternalContext externalContext, RunTimeContext rtc, IStyleProcessor externalProcessor) throws ChartException {\n if (ids == null || cmDesignTime == null || bo == null) {\n throw new ChartException(ChartEnginePlugin.ID... |
"boolean computeIntroduceMethod(TreePathHandle h, CompilationInfo info, TreePath treePath, Tree tree) {\n TreePath block = treePath;\n TreePath method = findMethod(block);\n if (method == null) {\n TreePath parentPath = treePath.getParentPath();\n if (parentPath == null) {\n return fal... |
"public void pluginComponentAdded(PluginComponentEvent event) {\n PluginComponentFactory factory = event.getPluginComponentFactory();\n if (!factory.getContainer().equals(net.java.sip.communicator.service.gui.Container.CONTAINER_CHAT_WRITE_PANEL))\n return;\n PluginComponent component = factory.getPlugi... |
"static String appendRequiredImportListToSourceCode(String sourceCode, ClassMeta targetClassMeta, Configuration config) {\n Assertion.on(\"String_Node_Str\").mustNotBeNull(targetClassMeta);\n String dest = sourceCode;\n String oneline = TrimFilterUtil.doAllFilters(sourceCode);\n StringBuilder importedListBu... |
"private void processAIPPermissions(IndexService index, ModelService model, Job currentJob, AIP aip, Report reportItem) {\n try {\n AIP parentAIP = null;\n String jobCreatorUsername = currentJob.getUsername();\n if (aip.getParentId() != null) {\n try {\n parentAIP = mod... |
"private void processAttribute(List<Element> classes, List<ElementDefinition> diff, List<ElementDefinition> snapshot, Element cclss, String path, Element attr) throws FHIRFormatError {\n String n = attr.getAttribute(\"String_Node_Str\");\n ElementDefinition ed = new ElementDefinition();\n ed.setPath(path + \"S... |
"public void debugContextChanged(DebugContextEvent event) {\n ISelection selection = event.getContext();\n if (selection instanceof IStructuredSelection) {\n IStructuredSelection ss = (IStructuredSelection) selection;\n if (ss.size() == 1) {\n Object element = ss.getFirstElement();\n ... |
"public Object deserialize(Writable writable) throws SerDeException {\n try {\n return deserializer.deserialize(obj);\n } catch (Throwable t) {\n LOG.info(\"String_Node_Str\", t);\n throw new SerDeException(\"String_Node_Str\", t);\n }\n}\n"
|
"public void error(String message) {\n error(message, 1);\n}\n"
|
"protected void onPreExecute() {\n popPostDetail();\n showDialog(ID_DIALOG_DELETING);\n}\n"
|
"public void onClick(View view) {\n if (!rowItem.getSize().equals(\"String_Node_Str\"))\n toggleChecked(p);\n else\n main.goBack();\n}\n"
|
"protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {\n String sentence = (String) msg;\n Parser parser = new Parser(PATTERN, sentence);\n if (!parser.matches()) {\n return null;\n }\n Position position = new Position();\n position.setProtocol(get... |
"public void handleSuccess() {\n updateTrace();\n}\n"
|
"public static RhsValue copy_rhs_value_and_substitute_varnames(Rete rete, RhsValue rv, Condition cond, char first_letter) {\n final ReteLocation rl = rv.asReteLocation();\n if (rl != null) {\n SymbolImpl sym = Rete.var_bound_in_reconstructed_conds(cond, rl.getFieldNum(), rl.getLevelsUp());\n return ... |
"public INDArray get(INDArrayIndex... indexes) {\n if (indexes.length == 1 && indexes[0] instanceof NDArrayIndexAll || (indexes.length == 2 && (isRowVector() && indexes[0] instanceof PointIndex && indexes[0].offset() == 0 && indexes[1] instanceof NDArrayIndexAll || isColumnVector() && indexes[1] instanceof PointInde... |
"public List<IAction> getCaldecottActions(IStructuredSelection selection, final CloudFoundryApplicationsEditorPage editorPage) {\n Collection<String> selectedServices = ModifyServicesForApplicationAction.getServiceNames(selection);\n List<IAction> actions = new ArrayList<IAction>();\n final CaldecottTunnelHand... |
"public void onBlockPlacedBy(World world, int x, int y, int z, EntityLiving player, ItemStack itemStack) {\n replaceGround(world, x, y - 1, z);\n int direction = MathHelper.floor_float(player.rotationYaw);\n if (direction < 0) {\n direction = 360 + direction;\n }\n int metadata = getMetadataBasedO... |
"final InstanceFactory redefineType() {\n Class<?> classToMock = typeMetadata.getClassType();\n if (MockingFilters.isSubclassOfUnmockable(classToMock)) {\n String mockSource = typeMetadata.field == null ? \"String_Node_Str\" : \"String_Node_Str\";\n throw new IllegalArgumentException(classToMock + \... |
"public void update() {\n super.update();\n if (itemInInventory != null) {\n LiquidStack liquid;\n if (Block.ice.blockID == itemInInventory.itemID && heat > COOLANT_THRESHOLD) {\n liquid = LiquidContainerRegistry.getLiquidForFilledItem(new ItemStack(Item.bucketWater));\n } else {\n... |
"public List<Catalog> fillCatalogs(Connection dbConn, DatabaseMetaData dbJDBCMetadata, IMetadataConnection metaConnection, List<String> catalogFilter) {\n List<Catalog> catalogList = new ArrayList<Catalog>();\n if (dbJDBCMetadata == null) {\n return null;\n }\n if (ConnectionUtils.isPostgresql(dbJDBC... |
"public Structure getStructure(String name) throws IOException, StructureException {\n if (name.length() < 4)\n throw new IllegalArgumentException(\"String_Node_Str\");\n Structure n = null;\n boolean useChainNr = false;\n boolean useDomainInfo = false;\n String range = null;\n int chainNr = -1... |
"public Map<Capability, String> getNetworkOfferingServiceCapabilities(NetworkOffering offering, Service service) {\n if (!areServicesSupportedByNetworkOffering(offering.getId(), service)) {\n throw new UnsupportedServiceException(\"String_Node_Str\" + service.getName() + \"String_Node_Str\" + offering);\n ... |
"public void initChannel(SocketChannel ch) throws Exception {\n ch.config().setAllocator(UnpooledByteBufAllocator.DEFAULT);\n ch.pipeline().addLast(\"String_Node_Str\", new ByteArrayEncoder());\n ch.pipeline().addLast(\"String_Node_Str\", new ByteArrayDecoder());\n ch.pipeline().addLast(new GossipExceptionH... |
"protected void createButtonsForButtonBar(Composite parent) {\n createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, false);\n createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, true);\n okButton = getButton(IDialogConstants.OK_ID);\n if (okButton != null) {\n... |
"public static String getGLShaderInfoLog(GL2ES2 gl, int programObject) {\n IntBuffer intValue = IntBuffer.allocate(1);\n gl.glGetShaderiv(shaderObject, GL_INFO_LOG_LENGTH, intValue);\n int lengthWithNull = intValue.get();\n if (lengthWithNull <= 1) {\n lengthWithNull = 1000;\n }\n ByteBuffer in... |
"public void getStatus(final HttpRequest request, final HttpResponder responder, final String appId, final String type, final String id) {\n programLifecycleHttpHandler.getStatus(RESTMigrationUtils.rewriteV2RequestToV3(request), responder, Constants.DEFAULT_NAMESPACE, appId, type, id);\n}\n"
|
"public void run() {\n if (mainFrame == null) {\n if (Configuration.useRibbonInterface.get()) {\n mainFrame = new MainFrameRibbon();\n } else {\n mainFrame = new MainFrameClassic();\n }\n }\n mainFrame.getPanel().load(swf1, first1);\n if (errorState) {\n mai... |
"public void initialize(AbstractSession session) throws DescriptorException {\n if (this.hasInheritance()) {\n ((org.eclipse.persistence.internal.oxm.QNameInheritancePolicy) this.getInheritancePolicy()).setNamespaceResolver(this.getNamespaceResolver());\n }\n if (null != this.defaultRootElementField) {\... |
"public static boolean checkDatabase() {\n ReturnCode checkConnection = ConnectionService.checkConnection(getUrl() + getDbName(), getDriver(), getProps());\n return checkConnection.isOk();\n}\n"
|
"public Timestamp getBeginCompilationTimestamp() {\n return beginCompilationTimestamp == null ? null : (Timestamp) beginCompilationTimestamp.clone();\n}\n"
|
"public void setSchemaModalPage(final PageReference pageRef, final ModalWindow window, AbstractBaseBean schemaTO, final boolean createFlag) {\n final SchemaTO schema;\n if (schemaTO != null && schemaTO instanceof SchemaTO) {\n schema = (SchemaTO) schemaTO;\n } else {\n schema = new SchemaTO();\n ... |
"public void iterateReferenceObjectForMapping(Object referenceObject, DatabaseMapping mapping) {\n super.iterateReferenceObjectForMapping(referenceObject, mapping);\n if (mapping.isCandidateForPrivateOwnedRemoval()) {\n removePrivateOwnedObject(mapping, referenceObject);\n }\n}\n"
|
"private Property findObject(String idOrName, String name) {\n for (Project p : allRoutineItems.keySet()) {\n List<Property> list = allRoutineItems.get(p);\n if (list != null) {\n for (Property property : list) {\n String objIdOrName = property.getId();\n String... |
"public void highlightTouch(Highlight high) {\n if (high == null)\n mIndicesToHightlight = null;\n else {\n mIndicesToHightlight = new Highlight[] { high };\n }\n invalidate();\n if (mSelectionListener != null) {\n if (!valuesToHighlight())\n mSelectionListener.onNothingSe... |
"public final boolean isEmptyType() {\n return isNoType() || isNoObjectType() || isNoResolvedType() || areIdentical(this, registry.getNativeFunctionType(JSTypeNative.LEAST_FUNCTION_TYPE));\n}\n"
|
"private void saveToTable(SearchNode n) {\n if (transpositionTable.size() < TABLE_SIZE && n.depth >= 2) {\n transpositionTable.put(n.gameState, n);\n}\n"
|
"public static int getPageSize() {\n try {\n String defaultPageSize = Platform.getPreferencesService().getString(CorePlugin.PLUGIN_ID, EditorPreferencePage.ANALYZED_ITEMS_PER_PAGE, null, null);\n if (!\"String_Node_Str\".equals(defaultPageSize)) {\n return Integer.parseInt(defaultPageSize);\... |
"private boolean getEntries(List<Entry> entries, int maxBatchSize) throws IOException {\n boolean hasEntry = fetchFromCache(entries, maxBatchSize);\n if (entries.size() < maxBatchSize) {\n populateRowCache(entries.keySet());\n hasEntry = fetchFromCache(entries, maxBatchSize) || hasEntry;\n }\n ... |
"private void compareBlock(int blockNr, AFPChain afpChain, AFPChain newChain, Atom[] ca1, Atom[] ca2) throws StructureException {\n Atom[] ca1Copy = StructureTools.cloneAtomArray(ca1);\n Atom[] ca2Copy = StructureTools.cloneAtomArray(ca2);\n Atom[] ca2Copy2 = StructureTools.cloneAtomArray(ca2);\n int[][][] ... |
"private String extractLinksFromHtml(String html, String limit_to_host, String exclude_host) {\n String result = \"String_Node_Str\";\n String[] links = HTMLParser.getHttpLinks(html, null);\n for (String link : links) {\n try {\n for (final HostPluginWrapper pHost : HostPluginWrapper.getHostW... |
"protected IRemoteServiceReference[] getRemoteServiceReferences(IRemoteServiceContainerAdapter adapter, String clazz, String filter) {\n try {\n return adapter.getRemoteServiceReferences((ID[]) null, clazz, filter);\n } catch (final InvalidSyntaxException e) {\n fail(\"String_Node_Str\");\n }\n ... |
"private void makeSureIdCapacityCannotBeExceeded(IdType type) {\n deleteIdGeneratorFile();\n IdGeneratorImpl.createGenerator(idGeneratorFile());\n long maxValue = type.getMaxValue();\n IdGenerator idGenerator = new IdGeneratorImpl(idGeneratorFile(), 1, maxValue);\n long id = maxValue - 2;\n idGenerato... |
"public static Bitmap loadBitmap(Context context, String path, int width, int height) {\n InputStream in = null;\n try {\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n if (Path.ASSETS.belongsTo(path)) {\n in = context.getAssets... |
"private void runZimpl(String type, int verbosity) {\n String[] cmdArray = new String[] { zimplBinary, \"String_Node_Str\", outputPrefix, \"String_Node_Str\", type, \"String_Node_Str\" + String.valueOf(verbosity), zimplFile.getAbsolutePath() };\n File zimplLog = new File(tempDir, \"String_Node_Str\");\n Comman... |
"public void save() {\n this.backend.permissions.setProperty(baseNode, node);\n this.backend.permissions.save();\n}\n"
|
"private void prepareGroup(IBaseQueryDefinition baseQuery, int groupLevel, Context cx) throws DataException {\n IBaseTransform trans = baseQuery;\n String groupName = IBaseExpression.GROUP_OVERALL;\n if (groupLevel != 0) {\n IGroupDefinition igd = (IGroupDefinition) ((IBaseQueryDefinition) trans).getGro... |
"public void run() {\n AcceptModuleLicensesWizard licensesWizard = new AcceptModuleLicensesWizard(toDownload);\n AcceptModuleLicensesWizardDialog wizardDialog = new AcceptModuleLicensesWizardDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), licensesWizard, toDownload, monitor);\n wizardDi... |
"public boolean finish() {\n File sourceDir = new File(getSourceDirectoryName());\n if (!sourceDir.isDirectory()) {\n setErrorMessage(Messages.ImportTraceWizard_InvalidTraceDirectory);\n return false;\n }\n String sourceDirPath;\n try {\n sourceDirPath = sourceDir.getCanonicalPath();... |
"public void getRequirementsForPlacement(IBuilderContext context, List<ItemStack> requirements) {\n requirements.add(new ItemStack(Blocks.REDSTONE_LAMP, 1, 0));\n}\n"
|
"public void initDDLFields() {\n scale = 0;\n length = 0;\n precision = 0;\n isUnique = false;\n isNullable = true;\n isUpdatable = true;\n isInsertable = true;\n columnDefinition = \"String_Node_Str\";\n}\n"
|
"public static byte[] parseHex(String string) {\n try {\n return Hex.decodeHex(string.toCharArray());\n } catch (DecoderException e) {\n throw new RuntimeException(e);\n }\n}\n"
|
"private List getPages(boolean fitToPage, boolean pagebreakPaginationOnly) throws EngineException {\n String designFile = \"String_Node_Str\";\n IReportRunnable report = openReportDesign(designFile);\n List pageAreas = new ArrayList();\n IEmitterMonitor monitor = new PageMonitor(pageAreas);\n IRunAndRend... |
"boolean startCleanup(boolean forced) {\n final long now = System.currentTimeMillis();\n long dirtyAge = (now - lastCleanup);\n boolean shouldRun = (store != null && dirty && dirtyAge >= writeDelayMillis) || (dirtyAge > cleanupDelayMillis);\n if (shouldRun && cleanupActive.compareAndSet(false, true)) {\n ... |
"protected String _generateVariableDeclaration(ProgramCodeGeneratorAdapter target) throws IllegalActionException {\n StringBuffer code = new StringBuffer();\n ProgramCodeGenerator codeGenerator = getCodeGenerator();\n String name = ProgramCodeGeneratorAdapterStrategy.generateName(getComponent());\n String r... |
"protected IScheduledExecutorService exec(int index, String postfix) {\n return clients.client(index).getScheduledExecutorService(SCHEDULED_EXEC_NAME + quorumType.name() + postfix);\n}\n"
|
"public void convert(TypedCompositeActor actor, int threshold) {\n List<ComponentEntity> entities = actor.entityList();\n for (ComponentEntity entity : entities) {\n if (entity instanceof TypedCompositeActor) {\n convert((TypedCompositeActor) entity, threshold);\n if (count((TypedComp... |
"private static JsonNode dotNotationToStandardJson(JsonNode etcdJson) throws IOException {\n String unflattened = new JsonUnflattener(jsonToString(flattenJson(etcdJson, \"String_Node_Str\"))).withFlattenMode(FlattenMode.MONGODB).withKeyTransformer(new KeyTransformer() {\n public String transform(String s)... |
"private static void setReceiver(Block block, boolean powerOn) {\n Material mBlock = block.getType();\n int iData = (int) block.getData();\n if (mBlock == Material.LEVER) {\n if (!plugin.isApiOudated()) {\n if ((powerOn && (iData & 0x08) != 0x08) || (!powerOn && (iData & 0x08) == 0x08)) {\n ... |
"private boolean audioDecodeStep(ByteBuffer buffer) {\n buffer.clear();\n synchronized (Extractor_LOCK) {\n mExtractor.selectTrack(mAudioDecoderTrack);\n int length = mExtractor.readSampleData(buffer, 0);\n if (length != -1) {\n int flags = mExtractor.getSampleFlags();\n ... |
"protected void computeValidPlanAlternatives(List<? extends OptimizerNode> altSubPlans1, List<? extends OptimizerNode> altSubPlans2, CostEstimator estimator, List<OptimizerNode> outputPlans) {\n for (OptimizerNode subPlan1 : altSubPlans1) {\n for (OptimizerNode subPlan2 : altSubPlans2) {\n if (!are... |
"public boolean isRegistered() {\n return lockBox.map.containsKey(this);\n}\n"
|
"public void handleMessage(Message msg) {\n Bundle bundle = msg.getData();\n final int numOfCards = bundle.getInt(\"String_Node_Str\");\n final String[] listOfWords = bundle.getStringArray(\"String_Node_Str\");\n final String[] listOfForeign = bundle.getStringArray(\"String_Node_Str\");\n final String[] ... |
"public void start() {\n if (mTarget == null) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n if (mState != STATE_PREPARE) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n mState = STATE_DELAYED;\n applyInterpolator();\n if (mNativePtr == null) {\n ... |
"protected void visitInvokeInternal(SSAAbstractInvokeInstruction instruction) {\n if (DEBUG) {\n System.err.println(\"String_Node_Str\" + instruction);\n }\n PointerKey uniqueCatch = null;\n if (hasUniqueCatchBlock(instruction, ir)) {\n uniqueCatch = getBuilder().getUniqueCatchKey(instruction,... |
"public int getDeviceIdleModeCount(int mode, int which) {\n switch(mode) {\n case DEVICE_IDLE_MODE_LIGHT:\n return mDeviceIdleModeLightTimer.getCountLocked(which);\n case DEVICE_IDLE_MODE_DEEP:\n return mDeviceIdleModeFullTimer.getCountLocked(which);\n }\n return 0;\n}\n"
|
"public void testAllWrongAndCorrect() {\n getPage().getAgeInput().click();\n getPage().getAgeInput().sendKeys(\"String_Node_Str\");\n getPage().getEmailInput().click();\n getPage().getEmailInput().sendKeys(\"String_Node_Str\");\n getPage().getNameInput().click();\n getPage().getNameInput().sendKeys(\"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.