content stringlengths 40 137k |
|---|
"private URL getResourceManager() throws IOException {\n if (conf.getBoolean(YarnConfiguration.RM_HA_ENABLED, YarnConfiguration.DEFAULT_RM_HA_ENABLED)) {\n return getHAWebURL();\n }\n return getNonHAWebURL();\n}\n"
|
"public void deleteQueues(HttpRequest request, HttpResponder responder) {\n programLifecycleHttpHandler.deleteQueues(RESTMigrationUtils.rewriteV2RequestToV3(request), responder, Constants.DEFAULT_NAMESPACE);\n}\n"
|
"private static InjectorImpl copy(InjectorImpl old, Configuration... configurations) throws BindException {\n final InjectorImpl i;\n try {\n final ConfigurationBuilder cb = old.c.newBuilder();\n for (Configuration c : configurations) {\n cb.addConfiguration(c);\n }\n i = ne... |
"private void updateNotificationTranslucency() {\n float alpha = (getNotificationsTopY() + mNotificationStackScroller.getItemHeight()) / (mQsMinExpansionHeight + mNotificationStackScroller.getItemHeight() / 2);\n alpha = Math.max(0, Math.min(alpha, 1));\n alpha = (float) Math.pow(alpha, 0.75);\n mNotificati... |
"private void advancedModuleFilter() {\n Iterator<ModuleSelectionInfo> iter = sortedModules.iterator();\n while (iter.hasNext()) {\n ModuleSelectionInfo m = iter.next();\n Module module;\n if (m.isPresent()) {\n module = moduleManager.getRegistry().getLatestModuleVersion(m.getMetad... |
"public void onImpact(RayTraceResult result) {\n super.onImpact(result);\n if (!this.getEntityWorld().isRemote) {\n if (result.entityHit != null && result.entityHit instanceof EntityPlayer && result.entityHit != player) {\n Stats statsCap = (Stats) result.entityHit.getCapability(CapabilityPlayer... |
"protected BoundingBox computeBox(IDisplayServer xs, RunTimeContext rtc) throws ChartException {\n Label la = LabelImpl.copyInstance(getLabel());\n final String sPreviousValue = la.getCaption().getValue();\n la.getCaption().setValue(rtc.externalizedMessage(sPreviousValue));\n double dWrapping = 0;\n EObj... |
"public Insets getOpticalInsets() {\n return mInsets;\n}\n"
|
"public synchronized boolean add(WorkerResultWrapper e) {\n this.rawSize += 1;\n if (e.isWorkerCombinable()) {\n if (this.currIndex == this.threshold - 1) {\n while (this.currIndex > 1) {\n e.combine(this.removeLast());\n this.currIndex -= 1;\n }\n ... |
"public IArtifactType[] getArtifactTypeFilter() {\n IOptionConfigurationHandler<?> handler = getConfiguration(SearchOption.Artifact_Types);\n IArtifactType[] types = (IArtifactType[]) handler.getConfigData();\n return isArtifactTypeFilterEnabled() ? types : new IArtifactType[0];\n}\n"
|
"public boolean leave(UUID playerId) {\n MatchPlayer mPlayer = getPlayer(playerId);\n if (mPlayer != null) {\n if (startedGames == 0) {\n return players.remove(mPlayer);\n }\n mPlayer.setQuit(true);\n synchronized (this) {\n this.notifyAll();\n }\n r... |
"protected Composite getComponent(Composite parent) {\n ChartUIUtil.bindHelp(parent, ChartHelpContextIds.POPUP_SERIES_CURVE_FITTING);\n cmpContent = new Composite(parent, SWT.NONE);\n {\n GridLayout glMain = new GridLayout();\n glMain.numColumns = 2;\n cmpContent.setLayout(glMain);\n }\... |
"public void loadFromHDT(String hdtFileName, ProgressListener listener) throws IOException {\n InputStream in;\n if (hdtFileName.endsWith(\"String_Node_Str\")) {\n in = new BufferedInputStream(new GZIPInputStream(new FileInputStream(hdtFileName)));\n } else {\n in = new BufferedInputStream(new Fi... |
"public void channelRead(final ChannelHandlerContext ctx, Object msg) throws Exception {\n switch(connectStatus) {\n case outBoundChnnlReady:\n outboundChannel.writeAndFlush(msg);\n return;\n }\n if (outboundChannel.isActive()) {\n for (Object ojb : buffer) {\n ... |
"public Message execute() {\n log.info(\"String_Node_Str\" + getClass().getName() + \"String_Node_Str\");\n List componentIds = new ArrayList();\n AUTServerConfiguration.getInstance().setProfile(m_message.getProfile());\n for (Iterator it = m_message.getComponents().iterator(); it.hasNext(); ) {\n Co... |
"public EnqueueResult enqueue(byte[] data, long cleanWriteVersion) {\n log(\"String_Node_Str\" + data.length + \"String_Node_Str\" + cleanWriteVersion + \"String_Node_Str\");\n ImmutablePair<ReadPointer, Long> dirty = dirtyPointer();\n long entryId = this.table.increment(makeRow(GLOBAL_ENTRY_HEADER), GLOBAL_EN... |
"public static org.hl7.fhir.dstu2016may.model.TestScript.TestScriptTeardownComponent convertTestScriptTeardownComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptTeardownComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2016may.model.TestScript.... |
"protected void paintComponent(Graphics g) {\n if (eval != null) {\n Graphics2D g2D;\n g2D = (Graphics2D) g;\n AlphaComposite ac = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.5f);\n g2D.setColor(Color.YELLOW);\n g2D.fill(oldConcept);\n g2D.drawString(model.getOldCo... |
"public void addParameter(String name, String expression) throws PtalonRuntimeException {\n String uniqueName = _actor.uniqueName(name);\n try {\n PtalonExpressionParameter parameter = new PtalonExpressionParameter(_actor, uniqueName);\n parameter.setVisibility(Settable.NONE);\n _currentIfTre... |
"public static void main(String[] args) {\n String dbPropsFile = \"String_Node_Str\";\n List<String> sqlFiles = new ArrayList<String>();\n List<String> upgradeClasses = new ArrayList<String>();\n String[] databases = new String[] {};\n String rootPassword = \"String_Node_Str\";\n boolean verbosity = f... |
"public static void prettyPrintArgList(StringBuilder sb, Collection<Arg> args) {\n boolean first = true;\n for (Arg a : args) {\n if (first) {\n first = false;\n } else {\n sb.append(\"String_Node_Str\");\n }\n sb.append(a);\n }\n}\n"
|
"public void execute() throws IOException {\n if (destinationDirectory == null) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n if (configFile == null) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n SwingResourceLoader.setupSwingResourcesByConfigFile(configFile);\n ... |
"protected void updateButtons() {\n int[] indices = getViewer().getTable().getSelectionIndices();\n getUpButton().setEnabled(getUpButton().isVisible() && viewer.getTable().getItemCount() > 1 && indices.length == 1 && indices[0] != 0);\n getDownButton().setEnabled(getDownButton().isVisible() && viewer.getTable(... |
"public void visitNode(AstNode astNode) {\n if (!\"String_Node_Str\".equals(astNode.getTokenOriginalValue().trim()) && !fileHasIssue) {\n getContext().createFileViolation(this, \"String_Node_Str\");\n }\n}\n"
|
"public void attribute(UnmarshalRecord unmarshalRecord, String namespaceURI, String localName, String value) {\n unmarshalRecord.removeNullCapableValue(this);\n XMLField xmlField = (XMLField) xmlDirectMapping.getField();\n Object realValue = unmarshalRecord.getXMLReader().convertValueBasedOnSchemaType(xmlField... |
"public void accept(int hash, int pos) {\n final long offset = offsetFromPos(pos);\n final NativeBytes entry = entry(offset);\n if (isNewer(entry, timeStamp))\n entryModifiableCallback.set(index, pos);\n}\n"
|
"public String toHBaseTableName() {\n return RepoUtil.getHBaseTableName(tenantId, tableName);\n}\n"
|
"public List<SPluginDescriptor> getAllServicePluginDescriptors() throws ServerException, UserException {\n requireRealUserAuthentication();\n DatabaseSession session = getBimServer().getDatabase().createSession();\n try {\n return session.executeAndCommitAction(new GetAllPluginDescriptorsDatabaseAction(... |
"private void writeBackGroudColor(StyleEntry style) {\n Color bgColor = (Color) style.getProperty(StyleConstant.BACKGROUND_COLOR_PROP);\n if (bgColor != null) {\n writer.openTag(\"String_Node_Str\");\n writer.attribute(\"String_Node_Str\", toString(bgColor));\n writer.attribute(\"String_Node_... |
"public Map<Title, T> getByTitles(Language language, Collection<Title> titles, NameSpace ns) throws DaoException {\n Map<Title, T> pageMap = new HashMap<Title, T>();\n for (Title title : titles) {\n LiveAPIQuery.LiveAPIQueryBuilder builder = new LiveAPIQuery.LiveAPIQueryBuilder(\"String_Node_Str\", languag... |
"public void run() {\n String header = null;\n HashMap<String, String> headers = new HashMap<String, String>();\n String url = null;\n String method = null;\n String[] requestLine = readLines(fromClient, 1)[0].split(\"String_Node_Str\");\n method = requestLine[0].trim().toUpperCase();\n url = reque... |
"public void terminateInstance(String instanceId) {\n try {\n if (log.isDebugEnabled()) {\n log.debug(String.format(\"String_Node_Str\", instanceId));\n }\n URI uri = new URIBuilder(endpoint + INSTANCES_CONTEXT + instanceId).build();\n HttpResponse response = restClient.doDelet... |
"public synchronized boolean isSnapshotIncompatible() {\n if (snapshot.isEmpty()) {\n return false;\n }\n if (snapshot.size() > steps.size()) {\n return true;\n }\n for (int i = 0; i < snapshot.size(); ++i) {\n if (!snapshot.elementAt(i).equals(steps.elementAt(i))) {\n ret... |
"public Object get(ServletContext sc, HttpServletRequest req, HttpServletResponse resp, Object refer) {\n return getFile(refer);\n}\n"
|
"public void doDownload() {\n SettingsManager set = SettingsManager.instance();\n _downloadDir = set.getSaveDirectory();\n String fs = System.getProperty(\"String_Node_Str\");\n String pathname = _downloadDir + fs + _filename;\n System.out.println(pathname);\n try {\n _fos = new FileOutputStrea... |
"private UnitValue[] getColWidths(WaitingColgroupsHelper colgroups) {\n UnitValue[] colWidths = new UnitValue[numberOfColumns];\n if (colgroups == null) {\n for (int i = 0; i < numberOfColumns; i++) {\n colWidths[i] = null;\n }\n } else {\n for (int i = 0; i < numberOfColumns; i... |
"protected void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n String valueStr = value.toString();\n if (valueStr == null || valueStr.length() == 0 || valueStr.trim().length() == 0) {\n LOG.warn(\"String_Node_Str\");\n return;\n }\n double[] dVa... |
"public static void beforeClass() {\n predicate = new BlacklistStatementPredicate(GraphConfig.config());\n invalidSubject = fromStringUris(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n invalidObject = fromStringUris(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n validS... |
"public ChannelID getChannelID() {\n return this.channelID;\n}\n"
|
"public static XLoc createReplica(StripingPolicy stripingPolicy, StorageManager sMan, OSDStatusManager osdMan, VolumeInfo volume, long parentDirId, String path, InetAddress clientAddress, VivaldiCoordinates clientCoordinates, XLocList currentXLoc, int replFlags) throws DatabaseException, UserException, MRCException {\n... |
"public Node call() throws Exception {\n long startTime = System.currentTimeMillis();\n while ((System.currentTimeMillis() - startTime) < config.getLaunchTimeoutMillis()) {\n try {\n c = node.toComputer();\n if (c != null) {\n c.connect(false).get();\n }\n ... |
"public ClientResponse handle(ClientRequest cr) {\n ClientResponse resp = getNext().handle(cr);\n String respContentType = resp.getHeaders().getFirst(\"String_Node_Str\");\n if (respContentType != null && respContentType.startsWith(\"String_Node_Str\")) {\n String newContentType = \"String_Node_Str\" + ... |
"public static final float[][] applyUnaryOperation(final FloatUnaryOperation op, final float[][] matrix) {\n int rows = _rows(matrix);\n int columns = _columns(matrix);\n float[][] returnValue = new float[rows][columns];\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < columns; j++) {\n ... |
"private void GenNext() {\n Vector nextS = new Vector();\n StringBuffer sb = new StringBuffer();\n int max, col;\n max = wrapColumn - (\"String_Node_Str\".length());\n for (int i = 0; i < nextStep.size(); i++) {\n String a = (String) nextStep.elementAt(i);\n if (a.length() + \"String_Node_S... |
"public String codeGenType(Type type) {\n String result = type == BaseType.INT ? \"String_Node_Str\" : type == BaseType.LONG ? \"String_Node_Str\" : type == BaseType.STRING ? \"String_Node_Str\" : type == BaseType.DOUBLE ? \"String_Node_Str\" : type == BaseType.BOOLEAN ? \"String_Node_Str\" : type == BaseType.UNSIGN... |
"public IContent execute() {\n TemplateDesign templateDesign = (TemplateDesign) design;\n IForeignContent textContent = report.createForeignContent();\n setContent(textContent);\n restoreResultSet();\n context.registerOnPageBreak(content);\n IStyle style = textContent.getStyle();\n style.setPropert... |
"protected void closeAllChats() {\n List<Long> chatKeys = new ArrayList<Long>(chats.keySet());\n for (Long chatKey : chatKeys) {\n closeChat(chatKey);\n }\n chats.clear();\n}\n"
|
"public void execute(Event event) throws EventException {\n try {\n if (!clazz.isAssignableFrom(event.getClass())) {\n throw new EventException(\"String_Node_Str\");\n }\n method.invoke(listener, event);\n } catch (InvocationTargetException e) {\n if (e.getCause() instanceof... |
"public int insert(String table, String key, HashMap<String, ByteIterator> values) {\n try {\n PelopsUser u = new PelopsUser(key, getString(key, \"String_Node_Str\"), getString(key, \"String_Node_Str\"), getString(key, \"String_Node_Str\"));\n em.persist(u);\n em.clear();\n return Ok;\n ... |
"public Answer executeRequest(Command cmd) {\n Class<? extends Command> clazz = cmd.getClass();\n if (clazz == CreateCommand.class) {\n return execute((CreateCommand) cmd);\n } else if (cmd instanceof SetPortForwardingRulesCommand) {\n return execute((SetPortForwardingRulesCommand) cmd);\n } e... |
"public void shouldGetAllEveningTimeSlots() {\n when(allCallTimeSlots.getAllottedSlots()).thenReturn(new AllottedSlots());\n final List<String> eveningTimeSlots = callTimeSlotService.availableEveningSlots();\n assertEquals(48, eveningTimeSlots.size());\n}\n"
|
"public List<UUID> getMembers() {\n List<UUID> result = new ArrayList<UUID>();\n result.addAll(CoopPlay.getInstance().getCoopPlayers(center.toVector().toLocation(ASkyBlock.getIslandWorld())));\n result.addAll(CoopPlay.getInstance().getCoopPlayers(center.toVector().toLocation(ASkyBlock.getNetherWorld())));\n ... |
"public TmfContext seekEvent(long rank) {\n int index = (int) rank / fIndexPageSize;\n ITmfLocation<?> location;\n synchronized (fCheckpoints) {\n if (fCheckpoints.isEmpty()) {\n location = null;\n } else {\n if (index >= fCheckpoints.size()) {\n index = fChec... |
"public void applyInternal() {\n Set<NodeRef> filePlans = getFilePlans();\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"String_Node_Str\" + filePlans.size() + \"String_Node_Str\");\n }\n for (NodeRef filePlan : filePlans) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"Strin... |
"protected int evaluateOnRequest(final ServerContext context, final ScriptState state) throws ResourceException {\n if (onRequest != null) {\n ScriptEntry scriptEntry = onRequest.getRight();\n if (!scriptEntry.isActive()) {\n throw new ServiceUnavailableException(\"String_Node_Str\" + onRequ... |
"public Payment createPayment(final UUID accountId, final UUID paymentMethodId, final PaymentTransaction paymentTransaction, List<String> controlPluginNames, final Map<String, String> pluginProperties, final RequestOptions options) throws KillBillClientException {\n Preconditions.checkNotNull(accountId, \"String_Nod... |
"private void _initComponents() {\n _listItemTextField = new JTextField();\n _jScrollPane1 = new JScrollPane();\n _itemsJList = new JList();\n _addButton = new JButton();\n _deleteButton = new JButton();\n _editListItemsLabel = new JLabel();\n _saveButton = new JButton();\n addWindowListener(new... |
"protected Layout makeSingleLayout(int wantWidth, BoringLayout.Metrics boring, int ellipsisWidth, Layout.Alignment alignment, boolean shouldEllipsize, TextUtils.TruncateAt effectiveEllipsize, boolean useSaved) {\n CharSequence text = getText() == null ? \"String_Node_Str\" : getText();\n StaticLayout.Builder buil... |
"public static ExecutionResponse waitForStateToFinish(SopremoExecutionProtocol server, ExecutionResponse response, ExecutionState status) {\n for (int waits = 0; response.getState() == status && waits < 1000; waits++) {\n Thread.sleep(100);\n response = server.getState(response.getJobId());\n }\n ... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_material_navigation_drawer);\n Window window = this.getWindow();\n window.setFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS, WindowManager.LayoutParams.FLAG_TRANSLUCENT_ST... |
"private void unschedule() {\n if (dirtyOutputBuffer() || currentPacket != null) {\n registerOp(SelectionKey.OP_WRITE);\n return;\n }\n unregisterOp(SelectionKey.OP_WRITE);\n scheduled.set(false);\n if (writeQueue.isEmpty() && urgentWriteQueue.isEmpty()) {\n return;\n }\n if (!... |
"private boolean isRequestUrlExcluded(final HttpServletRequest request) {\n for (String exclusion : this.exclusions) {\n String pathInfo = request.getPathInfo();\n if (pathInfo != null && exclusion != null && pathInfo.matches(exclusion)) {\n return true;\n }\n }\n return false;\... |
"private boolean parseIntent(Resources res, XmlPullParser parser, AttributeSet attrs, int flags, IntentInfo outInfo, String[] outError, boolean isActivity) throws XmlPullParserException, IOException {\n TypedArray sa = res.obtainAttributes(attrs, com.android.internal.R.styleable.AndroidManifestIntentFilter);\n in... |
"void loadOntology() {\n Stopwatch timer = Stopwatch.createStarted();\n logger.info(\"String_Node_Str\");\n walker.walkStructure(visitor);\n logger.info(format(\"String_Node_Str\", timer.elapsed(TimeUnit.SECONDS)));\n timer.reset();\n timer.start();\n logger.info(\"String_Node_Str\");\n postproc... |
"public Integer doWork() throws Exception {\n return Integer.valueOf(compareImpl(f1, f2));\n}\n"
|
"private List<IntMappingType> getAttributeTypes(final Entity entity) {\n final List<IntMappingType> res = new ArrayList<IntMappingType>();\n if (entity != null) {\n final EnumSet types = IntMappingType.getAttributeTypes(AttributableType.valueOf(entity.toString()));\n for (Object type : types) {\n ... |
"public byte[] getData(int version) {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n OutputStream os = baos;\n SWFOutputStream sos = new SWFOutputStream(os, version);\n try {\n sos.writeUI16(fontID);\n sos.writeUI8(fontName.getBytes(\"String_Node_Str\").length);\n sos.wri... |
"private void waitForReportingTasks() {\n if (runInfo.getDuration().getPeriodType() == PeriodType.TIME) {\n long lastTasks = 0;\n long tasks = getTasksInQueue();\n reportingTasks.shutdown();\n while (tasks > 0 && tasks != lastTasks) {\n lastTasks = tasks;\n try {\n ... |
"public void handleMessage(Message msg) {\n switch(msg.what) {\n case EVENT_VOICEMAIL_CHANGED:\n mVoicemailChangeResult = result;\n if (DBG)\n log(\"String_Node_Str\");\n break;\n case EVENT_TTY_MODE_SET:\n handleSetTTYModeResponse(msg);\n ... |
"public Action getAction(String actionType) {\n return actionsTable.get(actionType);\n}\n"
|
"public void generate() throws IOException, UnsupportedOperationException {\n String qualifiedGeneratedClassName = String.format(\"String_Node_Str\", realmPackageName, className);\n JavaFileObject sourceFile = processingEnvironment.getFiler().createSourceFile(qualifiedGeneratedClassName);\n JavaWriter writer =... |
"public void killQueue() {\n synchronized (queueLock) {\n for (final QueuePriority prio : prios) {\n for (final QueueAction<?, ? extends Throwable> item : queue.get(prio)) {\n item.kill();\n synchronized (item) {\n item.notify();\n }\n... |
"protected <T> T readObject(AMapper<T> mapper) throws ParseException, IOException {\n if (c != '{')\n throw new RuntimeException(\"String_Node_Str\");\n Object current = mapper.createObject();\n boolean needData = false;\n boolean acceptData = true;\n for (; ; ) {\n read();\n switch(... |
"public static NetworkParameters prodNet() {\n NetworkParameters n = new NetworkParameters();\n n.proofOfWorkLimit = Utils.decodeCompactBits(0x1d00ffffL);\n n.port = 8333;\n n.packetMagic = 0xf9beb4d9L;\n n.addressHeader = 0;\n n.acceptableAddressCodes = new int[] { 0 };\n n.dumpedPrivateKeyHeader ... |
"public int compareTo(Ownable other) {\n if (other instanceof PublicCertificate) {\n PublicCertificate otherCert = (PublicCertificate) other;\n return ComparisonChain.start().compare(this.getCompany(), otherCert.getCompany()).compare(this.getId(), otherCert.getId()).result();\n } else {\n ret... |
"public Collection<ParameterEnum<?>> getParameters() {\n final Set<ParameterEnum<?>> params = new HashSet<ParameterEnum<?>>();\n params.addAll(Arrays.asList(new ParameterEnum<?>[] { SampleParameters.Sample.MAX_SAMPLE_SIZE, SampleParameters.Sample.SAMPLE_ITERATIONS, SampleParameters.Sample.MIN_SAMPLE_SIZE, Centroi... |
"protected ValidationResult validate(Artifact artToValidate, IProgressMonitor monitor) throws OseeCoreException {\n Collection<String> errorMessages = new ArrayList<>();\n boolean validationPassed = true;\n if (hasArtifactType(artToValidate.getArtifactType())) {\n List<Artifact> arts = ArtifactQuery.get... |
"public static void setConfigItem(Player player, String key, List<String> list) throws SMSException {\n if (!key.startsWith(\"String_Node_Str\")) {\n key = \"String_Node_Str\" + key;\n }\n if (getConfig().getDefaults().get(key) == null) {\n throw new SMSException(\"String_Node_Str\" + key + \"Str... |
"public static LoadBalancer getLoadbalancer(UserFullName user, String lbName) {\n final EntityTransaction db = Entities.get(LoadBalancer.class);\n try {\n final LoadBalancer lb = Entities.uniqueResult(LoadBalancer.named(user.getAccountName(), lbName));\n db.commit();\n return lb;\n } catch... |
"private void bindAgentInformation(String agentId, String applicationName) {\n bind(String.class).annotatedWith(AgentId.class).toInstance(agentId);\n bind(String.class).annotatedWith(ApplicationName.class).toInstance(applicationName);\n bind(Long.class).annotatedWith(AgentStartTime.class).toProvider(AgentStart... |
"public void onGlobalLayout() {\n Utils.removeOnGlobalLayoutListenerCompat(parent, this);\n setImageBitmap((ImageView) findViewById(R.id.card_photo_1).findViewById(R.id.photo), R.drawable.photo1);\n setImageBitmap((ImageView) findViewById(R.id.card_photo_2).findViewById(R.id.photo), R.drawable.photo2);\n se... |
"public void setPortalInventory(Player player, Region region) {\n PlayerInventory inv = player.getInventory();\n for (int i = 0; i < 40; i++) {\n ItemStack item = inv.getItem(i);\n if (item == null || item.getTypeId() == 0)\n continue;\n boolean keep = false;\n for (Object i... |
"protected boolean processOnMouseOver(ShapedAction sa, HTMLTag tag) {\n Action ac = sa.getActionForCondition(TriggerCondition.ONMOUSEOVER_LITERAL);\n if (checkSupportedAction(ac)) {\n switch(ac.getType().getValue()) {\n case ActionType.URL_REDIRECT:\n return false;\n ca... |
"private int parseMethod(long lo, int len) throws HeadersTooLargeException {\n long p = lo;\n long hi = lo + len;\n while (p < hi) {\n if (_wptr == this.hi) {\n throw HeadersTooLargeException.INSTANCE;\n }\n char b = (char) Unsafe.getUnsafe().getByte(p++);\n if (b == '\\r... |
"public void xPathNode(XPathNode xPathNode, NullCapableValue nullCapableValue) {\n if (!(isNullRepresentedByXsiNil() || marshalNullRepresentation.equals(XMLNullRepresentationType.XSI_NIL))) {\n if (xPathNode.getXPathFragment().isAttribute()) {\n return;\n }\n }\n XPathNode parentNode =... |
"public void singleFileCollabSucceeds() {\n HashMap<String, BoxCollaboration.Info> collabsMap = new HashMap<String, BoxCollaboration.Info>();\n BoxAPIConnection api = new BoxAPIConnection(TestConfig.getAccessToken());\n BoxFolder rootFolder = BoxFolder.getRootFolder(api);\n String fileName = \"String_Node_S... |
"public <Q extends Quantity> Unit<Q> toContextualUnit(final Unit<Q> unit) {\n if (unit != null) {\n final Unit<Q> candidate = (Unit<Q>) units.get(unit.toSI());\n if (candidate != null) {\n return candidate;\n }\n }\n return unit;\n}\n"
|
"private void checkParameters() {\n boolean checkColumnExist = false;\n IMetadataTable metadataTable = null;\n List<IMetadataTable> tables = getMetadataList();\n if (tables != null && tables.size() == 1) {\n metadataTable = tables.get(0);\n checkColumnExist = true;\n }\n boolean checkPre... |
"public void findUnits(FileFinder fileFinder) {\n if (!this.includedFiles.isEmpty()) {\n for (String s : this.includedFiles) {\n File source = new File(sourceDir, s);\n File output = new File(outputDir, s);\n Package pack = packageFromFile(s, source.isDirectory());\n ... |
"private HttpResponseEntity getCursor(String database, String query, Map<String, Object> bindVars, AqlQueryOptions aqlQueryOptions) throws ArangoException {\n Map<String, Object> map = aqlQueryOptions.toMap();\n map.put(\"String_Node_Str\", query);\n map.put(\"String_Node_Str\", bindVars == null ? Collections.... |
"void backupIfNextOrPreviousChanged(boolean add) {\n boolean shouldBackup = false;\n if (add) {\n shouldBackup = node.clusterManager.isNextChanged();\n } else {\n shouldBackup = node.clusterManager.isNextChanged() || node.clusterManager.isPreviousChanged();\n }\n if (shouldBackup) {\n ... |
"public static Map<String, Class> loadSiddhiExtensions() {\n String classPath = System.getProperty(CLASS_PATH);\n if (classPath == null) {\n classPath = \"String_Node_Str\";\n } else {\n classPath += \"String_Node_Str\";\n }\n String[] classPathElements = classPath.split(\"String_Node_Str\"... |
"public Object[][] CRAMNoIndexTestData() {\n final Object[][] testFiles = new Object[][] { { \"String_Node_Str\", \"String_Node_Str\" } };\n return testFiles;\n}\n"
|
"public IGuiItemObject getGuiObject(ItemStack is, World w, int x, int y, int z) {\n return new PortableCellViewer(is, x);\n}\n"
|
"public void replaceView(ProteusView view) {\n if (view instanceof DataProteusView) {\n DataProteusView dataProteusView = (DataProteusView) view;\n this.bindings = dataProteusView.getBindings();\n }\n super.replaceView(proteusView);\n}\n"
|
"public void selectionChanged(SelectionChangedEvent event) {\n TreeSelection selection = (TreeSelection) event.getSelection();\n if (selection.size() != 1) {\n return;\n }\n Object selectedElement = selection.getFirstElement();\n if (selectedElement instanceof TdTable || selectedElement instanceof... |
"public void shouldValidateFalseWithoutExpid() {\n String username = \"String_Node_Str\";\n String expid = \"String_Node_Str\";\n String processtype = \"String_Node_Str\";\n String parameters = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"St... |
"protected double p(String shortUri) {\n int shortUriCount = checkNotNull(occCounts.get(shortUri), \"String_Node_Str\", shortUri);\n double p = (double) shortUriCount / totalEdges;\n if (LOGGER.isTraceEnabled())\n LOGGER.trace(String.format(\"String_Node_Str\", shortUri, shortUriCount, totalEdges, p));\... |
"protected void drawHoveringText(List textLines, int screenX, int screenY, FontRenderer fontRenderer) {\n if (isHoveringToken)\n textLines.add(EnumChatFormatting.GREEN + \"String_Node_Str\");\n super.drawHoveringText(textLines, mouseX, mouseY, fontRenderer);\n}\n"
|
"public void before() {\n try {\n service = createService();\n server.startServer(service);\n } catch (final ODataException e) {\n throw new TestUtilRuntimeException(e);\n }\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.