content stringlengths 40 137k |
|---|
"public boolean Tmpl_evaluate(Xop_ctx ctx, byte[] src, Xot_invk caller, Bry_bfr bfr) {\n int subs_len = this.Subs_len();\n switch(tag.Id()) {\n case Xop_xnde_tag_.Tid__noinclude:\n break;\n case Xop_xnde_tag_.Tid__includeonly:\n if (!ctx.Only_include_evaluate()) {\n ... |
"protected void getLightLevel(Player p) {\n if (hasPermission((Player) p, \"String_Node_Str\")) {\n ArrayList<Block> target = (ArrayList<Block>) p.getLastTwoTargetBlocks(null, 50);\n if (target.size() >= 2 && !target.get(1).getType().equals(Material.matchMaterial(\"String_Node_Str\"))) {\n S... |
"public void renderIndiviudalLineRelations(GL gl, HeatMapWrapper leftHeatMapWrapper, HeatMapWrapper rightHeatMapWrapper) {\n contentIDToLeftDetailPoints.clear();\n contentIDToRightDetailPoints.clear();\n ArrayList<Vec3f> points = new ArrayList<Vec3f>();\n ContentVirtualArray overview = leftHeatMapWrapper.ge... |
"public final int getval() {\n final int mixvol = 320 * (((enable[0] ? volume[0] : 0) * timers[0].getval() + (enable[1] ? volume[1] : 0) * timers[1].getval()) + (enable[2] ? ((volume[2] & 0xff) >> 3) : 0));\n return mixvol;\n}\n"
|
"private boolean isSupportedDeploymentPair(QName artifactType, QName infrastructureNodeType) {\n if (!PluginUtils.isSupportedUbuntuVMNodeType(infrastructureNodeType)) {\n return false;\n }\n boolean isSupportedArtifactType = false;\n if (this.archiveArtifactType.equals(artifactType)) {\n isSup... |
"private long computeDynamicCombineSize() throws IOException {\n String dataPath = null;\n if (CommonUtils.isTreeModel(super.modelConfig.getAlgorithm())) {\n dataPath = ShifuFileUtils.getFileSystemBySourceType(modelConfig.getDataSet().getSource()).makeQualified(new Path(super.getPathFinder().getCleanedData... |
"public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\n if (actionId == EditorInfo.IME_ACTION_DONE || actionId == EditorInfo.IME_NULL) {\n hideSoftInput();\n final CharSequence input = v.getText();\n if (input != null) {\n final int update = Integer.parseInt(input... |
"private void naiveUnroller(OPT_LSTNode t, OPT_IR ir) {\n OPT_BitVector nloop = t.loop;\n OPT_BasicBlock seqStart = null;\n OPT_BasicBlockEnumeration bs;\n if (t.loop.populationCount() > MAX_BLOCKS_FOR_NAIVE_UNROLLING) {\n report(\"String_Node_Str\");\n return;\n }\n report(\"String_Node... |
"public Object doGetByPathHTML(String serviceName, String subprojectId) throws Exception {\n CoreSession session = SessionFactory.getSession(request);\n DocumentService docService = Framework.getService(DocumentService.class);\n subprojectId = SubprojectServiceImpl.getSubprojectIdOrCreateDefault(session, subpr... |
"public void addCraftingToCrafters(ICrafting c) {\n super.addCraftingToCrafters(c);\n if (Platform.isServer() && c instanceof Player && monitor != null) {\n try {\n PacketMEInventoryUpdate piu = new PacketMEInventoryUpdate();\n IItemList<IAEItemStack> monitorCache = monitor.getStorage... |
"private void getHistory(HttpRequest request, HttpResponder responder, String appId, String id) {\n try {\n String accountId = getAuthenticatedAccountId(request);\n TProtocol protocol = getThriftProtocol(Constants.Service.APP_FABRIC, endpointStrategy);\n AppFabricService.Client client = new AppF... |
"public void shutdown() {\n LOGGER.info(\"String_Node_Str\");\n Future<Terminated> terminate = jobsSystem.terminate();\n terminate.onComplete(new OnComplete<Terminated>() {\n public void onComplete(Throwable failure, Terminated result) {\n if (failure != null) {\n LOGGER.error(... |
"public ScoreObject scoreNsData(MLDataPair inputPair, Map<NSColumn, String> rawNsDataMap) {\n if (inputPair == null && !this.alg.equalsIgnoreCase(NNConstants.NN_ALG_NAME)) {\n inputPair = CommonUtils.assembleNsDataPair(binCategoryMap, noVarSelect, modelConfig, columnConfigList, rawNsDataMap, cutoff, alg);\n ... |
"public void testlistCorruptFileBlocksDFS() throws Exception {\n Configuration conf = new Configuration();\n conf.setLong(\"String_Node_Str\", 1000);\n conf.setInt(\"String_Node_Str\", 1);\n FileSystem fs = null;\n MiniDFSCluster cluster = null;\n try {\n cluster = new MiniDFSCluster.Builder(co... |
"private static void addLandsToDeck(List<ColoredManaSymbol> allowedColors, List<String> setsToUse, List<Card> landCardPool, RateCallback callback) {\n final Map<String, Integer> colorCount = new HashMap<String, Integer>();\n for (final Card card : deck.getCards()) {\n for (String symbol : card.getManaCost(... |
"private void getConnFromNode() {\n DriverShim wapperDriver = null;\n ExtractMetaDataUtils extractMeta = ExtractMetaDataUtils.getInstance();\n try {\n List list = null;\n if (dbType.equals(EDatabaseTypeName.GENERAL_JDBC.getDisplayName())) {\n list = extractMeta.connect(trueDBTypeForJDB... |
"private void downloadApp(String url, String mimetype, AppInfo appInfo) {\n if (null == url || null == mimetype || null == appInfo) {\n throw new NullPointerException();\n }\n if (null == appInfo.mAppCode || null == appInfo.mAppVersion || null == appInfo.mAppName) {\n throw new IllegalArgumentExc... |
"protected String createList(String[] items) {\n return Strings.encodeFileNames(items);\n}\n"
|
"public Object unmarshal(org.xml.sax.XMLReader xmlReader, InputSource inputSource, Class clazz) {\n try {\n Context xmlContext = xmlUnmarshaller.getContext();\n if (xmlContext.hasDocumentPreservation() || (Node.class.isAssignableFrom(clazz) && xmlUnmarshaller.getMediaType().isApplicationXML())) {\n ... |
"public void run(JavaSparkExecutionContext sec) throws Exception {\n String stageName = sec.getSpecification().getProperty(ExternalSparkProgram.STAGE_NAME);\n BatchPhaseSpec batchPhaseSpec = GSON.fromJson(sec.getSpecification().getProperty(Constants.PIPELINEID), BatchPhaseSpec.class);\n PipelinePluginContext p... |
"public String getHadoopConfDirPath(YamlConfig config) {\n StringBuilder responseAppender = new StringBuilder();\n String response = RemotingUtil.executeCommand(config, ECHO_HADOOP_CONF_DIR);\n LOGGER.info(\"String_Node_Str\" + response);\n if (response != null && !response.trim().isEmpty()) {\n retu... |
"public static void sortCrawlLog(File file, File toFile) {\n ArgumentNotValid.checkNotNull(file, \"String_Node_Str\");\n ArgumentNotValid.checkNotNull(toFile, \"String_Node_Str\");\n if (!file.exists()) {\n String errMsg = \"String_Node_Str\" + file.getAbsolutePath() + \"String_Node_Str\";\n log.... |
"protected void loadLanguages() {\n try {\n Set<String> loaded = new HashSet<String>();\n File langDir = getLangDirectory();\n if (langDir.exists() && langDir.isDirectory()) {\n File[] files = langDir.listFiles();\n for (File file : files) {\n if (LANG_FILE_F... |
"void setListeningSocket(DatagramSocket datagramSocket) {\n if (_socket != null)\n _socket.close();\n synchronized (_receiveLock) {\n synchronized (_sendLock) {\n if ((_socket == null) && (datagramSocket != null))\n _socketSetOnce = true;\n _socket = (DatagramSoc... |
"static public void startContent(IContent content, IContentEmitter emitter) {\n String vformat = content.getStyle().getVisibleFormat();\n if (vformat == null) {\n starter.visit(content, emitter);\n }\n}\n"
|
"public void setDirty(boolean value) {\n dirty = value;\n firePropertyChange(PROP_DIRTY);\n if (getHeaderForm() != null) {\n final IMessageManager messageManager = getHeaderForm().getMessageManager();\n if (dirty) {\n messageManager.addMessage(\"String_Node_Str\", \"String_Node_Str\", ... |
"private Language sell(Player player) {\n double price = getSellPrice(sign.getLine(PRICE_LINE));\n if (container == null) {\n return NO_CHEST_DETECTED;\n }\n if (price == PriceUtil.NO_PRICE) {\n return NO_SELLING_HERE;\n }\n if (!hasPermission(player, stock.getType(), false)) {\n ... |
"public void toString(String prefix, StringBuilder buffer) {\n buffer.append('_');\n if (this.lowerBound != null) {\n buffer.append(Formatting.Type.genericLowerBound);\n this.lowerBound.toString(prefix, buffer);\n }\n if (this.upperBound != null) {\n buffer.append(Formatting.Type.generi... |
"public Account getAccount(Study study, String email) {\n checkNotNull(study);\n checkArgument(isNotBlank(email));\n Directory directory = client.getResource(study.getStormpathHref(), Directory.class);\n AccountList accounts = directory.getAccounts(Accounts.where(Accounts.email().eqIgnoreCase(email)).withCu... |
"public static String renderMessage(IMessage message, boolean elide) {\n if (null == message) {\n return \"String_Node_Str\";\n }\n StringBuffer result = new StringBuffer();\n result.append(message.getKind().toString());\n result.append(\"String_Node_Str\");\n String messageString = message.get... |
"public void load(Element element) throws NCLParsingException {\n String att_name, att_var, ch_name;\n NodeList nl;\n try {\n att_name = NCLElementAttributes.ID.toString();\n if (!(att_var = element.getAttribute(att_name)).isEmpty())\n setId(att_var);\n else\n throw n... |
"public static void main(String[] args) throws Exception {\n final NewtGlimpseCanvas canvas = new NewtGlimpseCanvas();\n GlimpseLayout plot = buildPlot(canvas);\n canvas.addLayout(plot);\n canvas.setLookAndFeel(new SwingLookAndFeel());\n final JFrame frame = new JFrame(\"String_Node_Str\");\n frame.ad... |
"private void assertDeterministicBuild(String topLevelModule, int optimizationLevel) throws UnableToCompleteException, IOException {\n final CompilerOptionsImpl options = new CompilerOptionsImpl();\n options.setOptimizationLevel(optimizationLevel);\n File firstCompileWorkDir = Utility.makeTemporaryDirectory(nu... |
"public void showHelp() {\n String href = getFormEnum().getHelpHref();\n ReusableHelpPart lastActiveInstance = ReusableHelpPart.getLastActiveInstance();\n if (lastActiveInstance != null) {\n lastActiveInstance.showURL(href);\n }\n}\n"
|
"private void setOnlineStatus(User friend) {\n if (friend != null) {\n if (friend.isOnline()) {\n onlineImageView.setVisibility(View.VISIBLE);\n } else {\n onlineImageView.setVisibility(View.GONE);\n }\n statusTextView.setText(friend.getStatus());\n onlineStat... |
"public void init() throws Exception {\n FileSystem.deleteDirectory(new File(_node1Log));\n FileSystem.deleteDirectory(new File(_node2Log));\n FileSystem.deleteDirectory(new File(_node3Log));\n _node1 = new ServerDispatcher(new HowlLogger(_node1Log), Listener.NULL_LISTENER);\n _node2 = new ServerDispatch... |
"private void removeMediaStream(String sessionId) {\n if (remoteRenderersLayout != null && remoteRenderersLayout.getChildCount() > 0) {\n RelativeLayout relativeLayout = remoteRenderersLayout.findViewWithTag(sessionId);\n if (relativeLayout != null) {\n SurfaceViewRenderer surfaceViewRendere... |
"public static String getResponse(final String stringUrl) throws SSLHandshakeException {\n try {\n return future.get(XMLRPCClient.DEFAULT_SOCKET_TIMEOUT, TimeUnit.SECONDS);\n } catch (InterruptedException e) {\n AppLog.e(T.API, e);\n } catch (ExecutionException e) {\n if (e.getCause() != n... |
"public Object invoke(Object proxy, final Method method, Object[] args) throws Throwable {\n final JSonSupport json = new JSonSupport();\n final List<Object> parameters = new ArrayList<Object>(args.length - 1);\n for (int i = 0; i < args.length - 1; i++) {\n parameters.add(args[i]);\n }\n AsyncCal... |
"public final void execute() throws MojoExecutionException, MojoFailureException {\n if (skip) {\n getLog().debug(String.format(\"String_Node_Str\", project.getGroupId(), project.getArtifactId()));\n return;\n }\n final PackageType packageType = getPackageType();\n if (checkPackaging() && pack... |
"public Request<Q, R> execute(ServiceConfiguration config) {\n try {\n Logger.getLogger(this.callback.getClass()).trace(\"String_Node_Str\" + config);\n try {\n this.callback.initialize(this.request);\n } catch (Throwable e) {\n Logger.getLogger(this.callback.getClass()).er... |
"private FormView getFormView(ViewBuilder viewBuilder) throws JAXBException {\n FormView formView = null;\n MetaView metaView = viewBuilder.getMetaView();\n ViewBuilder parent = viewBuilder.getParent();\n String viewName = viewBuilder.getName();\n if (metaView != null) {\n ObjectViews objectViews ... |
"protected void runSoot() {\n G.reset();\n String rtJar = System.getProperty(\"String_Node_Str\") + File.separator + \"String_Node_Str\" + File.separator + \"String_Node_Str\";\n String classpath = getClassPathFolder() + File.pathSeparator + rtJar;\n System.out.println(\"String_Node_Str\" + classpath);\n ... |
"private void processReference(NodeTraversal t, NamedInfo info, String name) {\n boolean recursive = false;\n Node rootNode = t.getScope().getRootNode();\n if (rootNode.isFunction()) {\n String scopeFuncName = rootNode.getFirstChild().getString();\n Node scopeFuncParent = rootNode.getParent();\n ... |
"public void onEvent(StatusUpdateEvent event) {\n if (AppContext.DEBUG) {\n Log.d(TAG, \"String_Node_Str\");\n }\n Utils.notify(getActivity(), \"String_Node_Str\");\n doRefresh();\n}\n"
|
"public void put(String prefix, String namespaceURI) {\n prefixesToNamespaces.put(prefix, namespaceURI.intern());\n}\n"
|
"public boolean resume() {\n synchronized (lifecycleLock) {\n if (paused.get()) {\n fireLifecycleEvent(RESUMING);\n } else {\n return false;\n }\n paused.set(false);\n fireLifecycleEvent(new LifecycleEvent(LifecycleEvent.LifecycleState.RESUMED));\n retu... |
"private void processEnvelopeWithBuffer(final TransferEnvelope transferEnvelope, final TransferEnvelopeReceiverList receiverList, final boolean freeSourceBuffer) throws IOException, InterruptedException {\n if (!freeSourceBuffer) {\n final List<ChannelID> localReceivers = receiverList.getLocalReceivers();\n ... |
"public void check() throws Faults.CheckException, IllegalStateException, InterruptedException, ServiceStateException {\n if (this.gateLock.readLock().tryLock(60, TimeUnit.SECONDS)) {\n try {\n final Cluster.State currentState = this.stateMachine.getState();\n final List<Throwable> curre... |
"public Category getCategory() {\n return categoryManager.getCategoryForFilename(getFileName());\n}\n"
|
"public void Terminate() {\n boolean cmdRunnerKilled = false;\n boolean sessionKilled = false;\n boolean intPointKilled = false;\n if (!terminated) {\n try {\n if (null != icr) {\n if (!icr.isFinished()) {\n icr.interrupt();\n }\n ... |
"public void changeInput(String name, int index) {\n stopWorker();\n Reader r = media.openFile(inputRefs.get(index).getPath());\n BufferedReader in = new BufferedReader(r);\n try {\n String path = new File(inputRefs.get(index).getPath()).getParent();\n String lineConfig = path + \"String_Node_... |
"public void cancel(Object signal) {\n if (signal == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n cancelFlag = true;\n long waitingTime = 0;\n do {\n waitingTime += 100;\n try {\n Thread.sleep(100);\n } catch (Exception ex) {\n }\n... |
"public void onPackageRemoved(String packageName, int uid) {\n final int eventUserId = getChangingUserId();\n synchronized (ActivityManagerService.this) {\n for (int i = mRecentTasks.size() - 1; i >= 0; i--) {\n TaskRecord tr = mRecentTasks.get(i);\n if (tr.userId != eventUserId)\n ... |
"public void execute() {\n Model outModel = this.outputJena.getJenaModel();\n for (String runName : this.inputPredicates) {\n JenaConnect results = smushResources(this.inputJena, runName, this.namespace);\n outModel.add(results.getJenaModel());\n }\n if (this.inPlace) {\n JenaConnect ad... |
"protected void setIntrinsicProperty(String propName, Object value) {\n if (EXTENSION_NAME_PROP.equals(propName)) {\n extensionName = (String) value;\n if (extensionName != null)\n provider = new AddOnExtensibilityProvider(this, extensionName);\n else\n provider = null;\n ... |
"public void testReceivedMessageFromQueueWithToLegacyTypeAnnotationForTopic() throws Exception {\n try (TestAmqpPeer testPeer = new TestAmqpPeer(testFixture.getAvailablePort())) {\n Connection connection = testFixture.establishConnecton(testPeer);\n connection.start();\n testPeer.expectBegin(tru... |
"public Void handleTxWork(OseeConnection connection) throws OseeCoreException {\n int sourceTx = branchData.getFromTransaction().getGuid();\n int priorTransactionId = getDatabaseService().runPreparedQueryFetchObject(-1, GET_PRIOR_TRANSACTION, branchData.getUuid(), sourceTx);\n ITransaction priorTx = TokenFacto... |
"public void onClick(View v) {\n Intent botaoSairIntent = new Intent(getApplicationContext(), AdedonhaActivity.class);\n Servidor.instance().encerrarPartida(configuracao.tempo());\n finalizaVariaveisJogo();\n startActivity(botaoSairIntent);\n finish();\n}\n"
|
"public void create(int stepNum) throws Exception {\n switch(stepNum) {\n case 0:\n ServiceConfiguration configuration = Topology.lookup(Compute.class);\n DescribeSecurityGroupsType describeSecurityGroupsType = new DescribeSecurityGroupsType();\n describeSecurityGroupsType.set... |
"public boolean isLiveStreamNow(Context context) {\n if (!isLiveStreamAvailable()) {\n return false;\n }\n if (mStartDate == null || mEndDate == null) {\n return false;\n }\n Calendar now = java.util.Calendar.getInstance();\n now.setTimeInMillis(TimeUtils.getCurrentTime(context));\n r... |
"public static DatabaseConnection fillDbConnectionInformation(DatabaseConnection dbConn) {\n boolean noStructureExists = ConnectionHelper.getAllCatalogs(dbConn).isEmpty() && ConnectionHelper.getAllSchemas(dbConn).isEmpty();\n java.sql.Connection sqlConn = null;\n try {\n if (noStructureExists) {\n ... |
"static QueryTaskFuture<Predicate<SkyKey>> getDTCSkyKeyPredicateFuture(SkyQueryEnvironment env, QueryExpression expression, QueryExpressionContext<Target> context, int processResultsBatchSize, int concurrencyLevel) {\n QueryTaskFuture<ThreadSafeMutableSet<Target>> universeValueFuture = QueryUtil.evalAll(env, context... |
"public Map<String, List<String>> getDerivedAttributeMap() {\n Map<String, List<String>> result = new HashMap<String, List<String>>(derivedAttributes.size());\n for (AttributeTO attributeTO : derivedAttributes) {\n result.put(attributeTO.getSchema(), attributeTO);\n }\n return result;\n}\n"
|
"public String create(BookReport bookReport, BindingResult result, boolean isSubmit, final RedirectAttributes redirectAttributes, HttpServletRequest request) {\n LOG.debug(\"String_Node_Str\", bookReport);\n if (result.hasErrors()) {\n return \"String_Node_Str\";\n }\n String docId = this.docService.... |
"private int receiveEnergyMulti(int maxReceive, boolean simulate) {\n PowerCellNetwork.Network network = getNetwork();\n if (getWorld().isRemote) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n int totEnergy = PowerCellConfiguration.rfPerNormalCell * (network.getBlockCount() - network.getA... |
"public boolean add(int i) {\n if (densePart != null && inDenseRange(i)) {\n if (!densePart.get(i)) {\n densePart.set(i);\n } else {\n sparsePart.add(i);\n fixAfterSparseInsert();\n }\n return true;\n } else {\n return false;\n }\n}\n"
|
"public void testPrimaryKeysSpecifiedProblem() {\n String errorName = ProblemConstants.EIS_DESCRIPTOR_NO_PRIMARY_KEYS_SPECIFIED;\n checkEisDescriptorsForFalseFailures(errorName);\n MWRootEisDescriptor employeeDescriptor = (MWRootEisDescriptor) this.getEmployeeEisDescriptor();\n MWXmlPrimaryKeyPolicy pkPolic... |
"public void clearPositionsHistory() throws SQLException {\n long historyDays = config.getInteger(\"String_Node_Str\");\n if (historyDays != 0) {\n QueryBuilder.create(dataSource, getQuery(\"String_Node_Str\")).setDate(\"String_Node_Str\", new Date(System.currentTimeMillis() - historyDays * 24 * 3600 * 100... |
"private static boolean useTableSwitch(int low, int high, int count) {\n int tableSpace = 4 + high - low + 1;\n int tableTime = 3;\n int lookupSpace = 3 + 2 * count;\n int lookupTime = MathUtils.logBaseTwo(count);\n return count > 0 && tableSpace + 3 * tableTime <= lookupSpace + 3 * lookupTime;\n}\n"
|
"private EnvTypePair analyzeIncDecFwd(Node expr, TypeEnv inEnv, JSType requiredType) {\n mayWarnAboutConst(expr);\n Node ch = expr.getFirstChild();\n if (ch.isGetProp() || (ch.isGetElem() && ch.getLastChild().isString())) {\n Node recv = ch.getFirstChild();\n String pname = ch.getLastChild().getS... |
"private void ensureCapacity() {\n if (head != tail) {\n return;\n }\n int numElements = array.length;\n int newLength = nextArrayLength(numElements);\n if (head != 0) {\n E[] newArray = ArrayHelper.createFrom(array, newLength);\n copyElements(newArray, numElements);\n array =... |
"public boolean isOnline() {\n return connected;\n}\n"
|
"public void flush() throws IOException {\n String logMessage = null;\n synchronized (this) {\n super.flush();\n logMessage = this.toString();\n super.reset();\n }\n logMessage = logMessage.trim();\n if (logMessage.length() == 0 || logMessage.equals(lineSeparator)) {\n return;... |
"private int getHighestWeight(Vertex<IntWritable, KwayPartitioningVertex, NullWritable> vertex, Iterable<IntWritable> messages) {\n int desiredPartition = 0;\n Map<Integer, Integer> countNeighbours = new HashMap<>();\n Map<Integer, Double> partitionWeight = new HashMap<>();\n for (IntWritable message : mess... |
"public static Principal createPrincipal(String username, Owner owner, Verb role) {\n return new UserPrincipal(username, Arrays.asList(new Permission[] { new Permission(owner, role) }));\n}\n"
|
"public ForceVector calculateForce(Spatial node1, Spatial node2, float distance) {\n ForceVector f = new ForceVector(node2.x() - node1.x(), node2.y() - node1.y());\n f.multiply(-relativeStrength * optimalDistance * optimalDistance / (distance * distance));\n if (Float.isNaN(f.x()) || Float.isNaN(f.y())) {\n ... |
"public void testJavaClassCondition() throws IOException, InstantiationException, IllegalAccessException {\n try (GraphContext context = factory.create(getDefaultPath())) {\n final String inputDir = \"String_Node_Str\";\n final Path outputPath = Paths.get(FileUtils.getTempDirectory().toString(), \"Stri... |
"protected void handleReconnectDisconnection(final int statusCode, final String closeReason) {\n if (!clientClose) {\n reconnecting = true;\n createExecServiceIfNecessary();\n execService.execute(new Runnable() {\n public void run() {\n try {\n connec... |
"public static Set<VCFHeaderLine> smartMergeHeaders(Collection<VCFHeader> headers, boolean emitWarnings) throws IllegalStateException {\n HashMap<String, VCFHeaderLine> map = new HashMap<String, VCFHeaderLine>();\n HeaderConflictWarner conflictWarner = new HeaderConflictWarner(emitWarnings);\n for (VCFHeader s... |
"public static EditPart getEditPartToSelect(EditPart ep) {\n SelectionRequest req = new SelectionRequest();\n req.setType(RequestConstants.REQ_SELECTION);\n return ep != null ? ep.getTargetEditPart(req) : null;\n}\n"
|
"static void serialize(XmlSerializer serializer, Object object, boolean convertToGMT) throws IOException {\n if (object instanceof Integer || object instanceof Short || object instanceof Byte) {\n serializer.startTag(null, TYPE_I4).text(object.toString()).endTag(null, TYPE_I4);\n } else if (object instance... |
"public BasicDBObject createSubMongoQuery(EntityMetadata m, Queue filterClauseQueue) {\n BasicDBObject query = new BasicDBObject();\n BasicDBObject compositeColumns = new BasicDBObject();\n MetamodelImpl metaModel = (MetamodelImpl) kunderaMetadata.getApplicationMetadata().getMetamodel(m.getPersistenceUnit());\... |
"public void handle(ParserContext parserContext, String attributeKey, String attributeValue, T view) {\n if (\"String_Node_Str\".equals(attributeValue)) {\n view.setHorizontalScrollBarEnabled(false);\n view.setVerticalScrollBarEnabled(false);\n } else if (\"String_Node_Str\".equals(attributeValue)) ... |
"public boolean checkIntegrity() {\n if (idType == null)\n throw new NullPointerException(\"String_Node_Str\");\n if (selectionCommand == null)\n throw new NullPointerException(\"String_Node_Str\");\n return true;\n}\n"
|
"protected boolean doAction() throws Exception {\n if (Policy.TRACING_ACTIONS) {\n System.out.println(\"String_Node_Str\");\n }\n DataSetHandle dsHandle = (DataSetHandle) getSelection();\n if (!(dsHandle instanceof JointDataSetHandle) && !(dsHandle instanceof DerivedDataSetHandle) && dsHandle.getData... |
"public AmendableWidgetReference getInjectionPoint(final OverlayWidget parent, final OverlayWidget reference, final OverlayWidget child) {\n AmendableWidgetReference injectionPoint;\n final String xPath = findXPathExpressionToOverlayWidget(reference);\n if (child != null) {\n final boolean sibling = par... |
"public String getAccepts() {\n if (serviceContext.supportsAccepts()) {\n Collection<String> accepts = serviceContext.getAccepts();\n return accepts == null ? \"String_Node_Str\" : new JSONArray(accepts).toString();\n } else {\n return null;\n }\n}\n"
|
"public static int getLineMult(int iSize) {\n switch(iSize) {\n case 0:\n case 2:\n return 1;\n case 1:\n case 3:\n return 2;\n default:\n return 1;\n }\n}\n"
|
"protected void setupForm() {\n String userHome = System.getProperty(\"String_Node_Str\");\n String separator = System.getProperty(\"String_Node_Str\");\n String localInstallDir = userHome + separator + \"String_Node_Str\";\n String remoteInstallDir = \"String_Node_Str\";\n ArrayList<String> executables ... |
"public void registerComponent(String name, Object component) {\n synchronized (this) {\n components.add(new ComponentEntry(name, component));\n }\n if (component instanceof ActiveComponent) {\n ((ActiveComponent) component).init(name, this);\n if (running) {\n ((ActiveComponent... |
"public void testMoveFolder() throws PersistenceException, CoreException, LoginException {\n repositoryFactory.logOnProject(sampleProject);\n ProcessItem processItem = createTempProcessItem(repositoryFactory, \"String_Node_Str\");\n String processId = processItem.getProperty().getId();\n List<IRepositoryVie... |
"private void checkDBTypeAS400() {\n if (isDBTypeSelected(EDatabaseConnTemplate.AS400)) {\n standardButton.setVisible(true);\n systemButton.setVisible(true);\n } else {\n standardButton.setVisible(false);\n systemButton.setVisible(false);\n }\n}\n"
|
"public void testCorrectNextExecutionDoWForLeapYear() {\n final Optional<ZonedDateTime> nextExecution = getNextExecutionFor(getUnixCron(\"String_Node_Str\"), ZonedDateTime.parse(\"String_Node_Str\"));\n if (nextExecution.isPresent()) {\n assertEquals(ZonedDateTime.parse(\"String_Node_Str\"), nextExecution.... |
"private ITextField getSearchField() {\n List<Field> fields = getFields(this, ITextField.class);\n switch(fields.size()) {\n case 0:\n throw JDISettings.exception(\"String_Node_Str\", toString());\n case 1:\n return (ITextField) getValueField(fields.get(0), this);\n defa... |
"private boolean startUser(final int userId, boolean foreground) {\n if (checkCallingPermission(android.Manifest.permission.INTERACT_ACROSS_USERS_FULL) != PackageManager.PERMISSION_GRANTED) {\n String msg = \"String_Node_Str\" + Binder.getCallingPid() + \"String_Node_Str\" + Binder.getCallingUid() + \"String_... |
"public void onDateChanged(DatePicker datePicker, int i, int i2, int i3) {\n order.setRequest_date(i + \"String_Node_Str\" + (i2 + 1) + \"String_Node_Str\" + i3);\n}\n"
|
"public void setRenderParameters(Map parameters) {\n if (redirected) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n if (parameters == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n for (Iterator iter = parameters.entrySet().iterator(); iter.hasNext... |
"public void setURI(String uri) throws SemanticException {\n setURL(uri);\n}\n"
|
"public void afterTextChanged(Editable s) {\n super.afterTextChanged(s);\n if (!TextUtils.isEmpty(s.toString())) {\n textInputLayoutPassword.setError(\"String_Node_Str\");\n }\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.