content stringlengths 40 137k |
|---|
"protected Map getHyperlinkDetectorTargets(ISourceViewer sourceViewer) {\n Map hyperlinkDetectorTargets = super.getHyperlinkDetectorTargets(sourceViewer);\n if (container != null)\n hyperlinkDetectorTargets.put(container.getClass().getPackage().getName(), view);\n return hyperlinkDetectorTargets;\n}\n"
|
"public void itemsChanged(Inventory inventory) {\n if (inventory.isEmpty() && id >= 0 && child >= 0) {\n player.send(new InterfaceResetItemsMessage(id, child));\n } else {\n Item[] items = inventory.toArray();\n player.send(new InterfaceItemsMessage(id, child, type, items));\n }\n}\n"
|
"private boolean isFlushed(SpeechItem speechItem) {\n synchronized (mFlushedObjects) {\n return mFlushAll > 0 || mFlushedObjects.contains(speechItem.getCallerIdentity());\n }\n}\n"
|
"private static Index createIndex(final File inputFile, final FeatureIterator iterator, final IndexCreator creator) {\n Feature lastFeature = null;\n Feature currentFeature;\n final Map<String, Feature> visitedChromos = new HashMap<String, Feature>(40);\n while (iterator.hasNext()) {\n final long pos... |
"public void marshal(java.io.OutputStream os, Object namespacePrefixMapper) throws JAXBException {\n try {\n Marshaller marshaller = jc.createMarshaller();\n if (Docx4jProperties.getProperty(\"String_Node_Str\", true)) {\n marshaller.setProperty(\"String_Node_Str\", true);\n }\n ... |
"public boolean applyIpAssociations(Network network, boolean continueOnError) throws ResourceUnavailableException {\n List<IPAddressVO> userIps = _ipAddressDao.listByAssociatedNetwork(network.getId(), null);\n List<PublicIp> publicIps = new ArrayList<PublicIp>();\n if (userIps != null && !userIps.isEmpty()) {\... |
"private void updateManifest() {\n String packageBase = fProjectProvider.getProjectName();\n String sep = System.getProperty(\"String_Node_Str\");\n String manifestFile = fProjectProvider.getLocationPath().makeAbsolute().toOSString() + sep + fProjectProvider.getProjectName() + sep + \"String_Node_Str\" + sep +... |
"public List<ValidationMessage> validate(final Path path, final String content) {\n try {\n return genericValidator.validate(path, new ByteArrayInputStream(content.getBytes(Charsets.UTF_8)), FILTER_JAVA, FILTER_DRLS);\n } catch (Exception e) {\n throw ExceptionUtilities.handleException(e);\n }\n}... |
"private IResultMetaData getRealMetaData(DataSetHandle dataSetHandle) throws BirtException {\n QueryDefinition query = new QueryDefinition();\n query.setDataSetName(dataSetHandle.getQualifiedName());\n query.setMaxRows(1);\n IResultMetaData metaData = MetaDataPopulator.retrieveResultMetaData(dataSetHandle);... |
"public void onViewCreated(View view, Bundle state) {\n super.onViewCreated(view, state);\n DisplayViewModelFactory factory = new DisplayViewModelFactory(state);\n displayViewModel = ViewModelProviders.of(this, factory).get(DisplayViewModel.class);\n layoutManager = new LinearLayoutManager(getActivity(), Li... |
"private static void generateNamesForAnonymousBlocks(BlockOutline block, AtomicInteger counter) {\n if (block.getName() == null || block.getName().trim().isEmpty()) {\n StringBuilder name = new StringBuilder().append(\"String_Node_Str\").append(counter.getAndIncrement());\n if (block.getConstructor() !... |
"private static String getProfileIDFromProfile(PointFeature pointFeature) {\n String profileID = null;\n try {\n profileID = (pointFeature.getData().getScalarObject(\"String_Node_Str\").toString());\n } catch (Exception e) {\n System.out.println(\"String_Node_Str\" + e.toString());\n profi... |
"public static List extractColumnExpressions(String oldExpression, boolean mode) throws BirtException {\n if (oldExpression == null || oldExpression.trim().length() == 0)\n return new ArrayList();\n return ExpressionParserUtility.compileColumnExpression(new ExpressionParserUtility(), oldExpression, mode);\... |
"public void testInferTypesPerformance() {\n InputStream in = this.getClass().getClassLoader().getResourceAsStream(\"String_Node_Str\");\n BufferedReader inBuffReader = new BufferedReader(new InputStreamReader(in));\n List<String[]> records = new ArrayList<String[]>();\n String line = null;\n String star... |
"public void setAlarm(Context context, long triggerInMillis) {\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\n String valAthanGap = prefs.getString(\"String_Node_Str\", \"String_Node_Str\");\n long athanGap = TextUtils.isEmpty(valAthanGap) ? 0 : Long.parseLong(valAthanGap)... |
"public boolean handle(Object receive) throws Exception {\n if (receive instanceof HttpResponse) {\n HttpResponse response = (HttpResponse) receive;\n if (NettyUtil.isSuccessful(response.getStatus())) {\n ObjectNode node = to(response.getContent());\n handler.handle(RestRiakOperat... |
"public void doLocalOp() {\n if (isMigrationAware() && isPartitionMigrating()) {\n setRedoResult(REDO_PARTITION_MIGRATING);\n } else {\n request.attachment = TargetAwareOp.this;\n request.local = true;\n ((RequestHandler) getPacketProcessor(request.operation)).handle(request);\n }\n... |
"private void executeCommand(PrintWriter out, BufferedReader in, String cmd) throws IOException {\n String sensorName = in.readLine();\n SensorController sensorCtrl = getSensorCtrlFromName(sensorName);\n SensorModel sensorModel = getSensorModelFromName(sensorName);\n if (cmd.compareTo(\"String_Node_Str\") =... |
"protected void addPathFile(File pathComponent) throws IOException {\n pathComponents.addElement(pathComponent);\n if (pathComponent.isDirectory()) {\n return;\n }\n String absPathPlusTimeAndLength = pathComponent.getAbsolutePath() + pathComponent.lastModified() + \"String_Node_Str\" + pathComponent.... |
"private Status updateStructureHandle() {\n try {\n structureHandle.setName(dataSetParamName.getText());\n structureHandle.setParameterDataType(ParameterPageUtil.getTypeName(dataType.getText()));\n setDirection(direction.getText());\n structureHandle.setExpressionProperty(DataSetParameter... |
"public void handleWorldLoad(WorldEvent.Load event) {\n if (FMLCommonHandler.instance().getEffectiveSide() == Side.SERVER) {\n TilePathMarker.clearAvailableMarkersList(event.getWorld());\n }\n}\n"
|
"public boolean postfire() throws IllegalActionException {\n FSMActor ctrl = getController();\n State curState = ctrl.currentState();\n TypedActor[] currentRefinement = curState.getRefinement();\n if (currentRefinement == null) {\n throw new IllegalActionException(this, \"String_Node_Str\");\n }\n... |
"protected void waitForApplicationToBeRunning(URI applicationRef) throws InterruptedException, TimeoutException {\n int count = 0;\n while (getApplicationStatus(applicationRef) != ApplicationSummary.Status.RUNNING) {\n if (getApplicationStatus(applicationRef) == ApplicationSummary.Status.ERROR)\n ... |
"private void findContour(boolean black) {\n ImageUInt8 binary = new ImageUInt8(image.width, image.height);\n GThresholdImageOps.threshold(image, binary, 40, black);\n contour = BinaryImageOps.contour(binary, ConnectRule.FOUR, null).get(0).external;\n List<PointIndex_I32> corners = ShapeFittingOps.fitPolygo... |
"public void afterFlow() {\n super.afterFlow();\n Execution execution = getExecution();\n execution.setEndTime(new Date());\n ExecutionStatus status = ExecutionStatus.DONE;\n if (steps != null) {\n for (ExecutionStep executionStep : steps.values()) {\n if (ExecutionStatus.ERROR.name().e... |
"public static DeviceConfiguration create(DeviceInformation di) {\n DeviceConfiguration configuration = new DeviceConfiguration();\n configuration.setValues(di.getRFAddress(), di.getDeviceType(), di.getSerialNumber(), di.getRoomId(), di.getName());\n return configuration;\n}\n"
|
"private void syncRingerAndNotificationStreamVolume(int streamType, int index, boolean force) {\n boolean notificationsUseRingVolume = Settings.System.getInt(mContentResolver, Settings.System.NOTIFICATIONS_USE_RING_VOLUME, 1) == 1;\n if (notificationsUseRingVolume) {\n if (streamType == AudioManager.STREAM... |
"private void checkRecoveredData() throws IssuerPublicKeyException {\n checkDataTrailer();\n checkDataHeader();\n checkCertificateFormat();\n byte[] remainder = getIssuerPublicKeyRemainder();\n byte[] exponent = issuerPublicKeyCertificate.getExponent();\n checkHashResult(remainder, exponent);\n che... |
"public Widget createActionsLayout(SelectedItems<IndexedFile> files, AsyncCallback<ActionImpact> callback) {\n FlowPanel layout = createLayout();\n addTitle(layout, messages.sidebarFoldersFilesTitle(), files, FileAction.DOWNLOAD, FileAction.RENAME, FileAction.MOVE, FileAction.UPLOAD_FILES, FileAction.CREATE_FOLDE... |
"public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) {\n if (getItemCount() == 0) {\n detachAndScrapAttachedViews(recycler);\n return;\n }\n if (getChildCount() == 0) {\n View scrap = recycler.getViewForPosition(0);\n addView(scrap);\n measu... |
"public View getView(int r, View convertView, ViewGroup parent) {\n Message message = this.getItem(r);\n SmsBaseViewHolder holder;\n if (convertView == null) {\n holder = new SmsBaseViewHolder();\n convertView = LayoutInflater.from(mContext).inflate(R.layout.message, parent, false);\n hold... |
"private void restoreInvAndExp(Player p) {\n inventoryManager.clearInventory(p);\n try {\n inventoryManager.restoreInv(p);\n } catch (Exception e) {\n e.printStackTrace();\n Messenger.severe(\"String_Node_Str\" + p.getName() + \"String_Node_Str\");\n }\n rewardManager.grantRewards(p)... |
"protected void performFiltering(CharSequence text, int keyCode) {\n if (text == null) {\n updateDropDownForFilter(0, true);\n } else {\n if (mFilter != null) {\n mFilter.filter(text, new Filter.FilterListener() {\n\n public void onFilterComplete(int count) {\n u... |
"public void bundleChanged(BundleEvent event) {\n Bundle bundle = event.getBundle();\n if (bundle != null && bundle.getSymbolicName() != null && bundle.getSymbolicName().equals(bundleName)) {\n if (event.getType() == BundleEvent.STARTED) {\n ResourceServlet.this.bundle = event.getBundle();\n ... |
"public IProgressMonitor deploy(String boxVersion, String profileId, String workspaceId, String environment, int instances, JSONArray variables) throws IOException {\n JSONObject profile = (JSONObject) doGet(MessageFormat.format(\"String_Node_Str\", profileId), false);\n JSONObject deployRequest = new JSONObject(... |
"public int getMaxTrackingDistance() {\n return net.minecraft.server.PlayerManager.a(pm.getPlayerViewRadius());\n}\n"
|
"public DataType getDataType(String expression) {\n return null;\n}\n"
|
"private void setPropertyInternal(String propertyName, Object val) {\n if (propertiesMap.containsKey(propertyName)) {\n if (!StaticContentSpecLoader.PROPERTY_NAME.getPropertyName().equals(propertyName)) {\n checkForChange(propertiesMap.get(propertyName), val);\n } else {\n checkFo... |
"public void setup() {\n Config config = new Config();\n ClientConfig clientConfig = new ClientConfig();\n clientConfig.addQueryCacheConfig(TEST_MAP_NAME, new QueryCacheConfig(QUERY_CACHE_NAME).setPredicateConfig(new PredicateConfig(predicate)).setIncludeValue(includeValues));\n if (useNearCache) {\n ... |
"private void parse(Tree tree) throws SAXException {\n if (tree == null) {\n return;\n }\n switch(tree.getType()) {\n case JSONLexer.PAIR:\n {\n Tree valueTree = tree.getChild(1);\n if (valueTree.getType() == JSONLexer.ARRAY) {\n parse(v... |
"private Node constructNode(final String name, final Node parent, final JsonNode jsonNode) {\n final PluginType<?> type = getPluginManager().getPluginType(name);\n final Node node = new Node(parent, name, type);\n processAttributes(node, jsonNode);\n final Iterator<Map.Entry<String, JsonNode>> iter = jsonNo... |
"public static IMethod findJavaMethodInWorkspace(String klass, String selector) {\n IType type = null;\n try {\n type = findJavaClassInWorkspace(klass);\n } catch (Throwable t) {\n return null;\n }\n if (type == null) {\n return null;\n }\n String name = parseForName(selector, ... |
"public Ranking<S> computeRanking(List<S> population) {\n int size = population.size();\n List<Double> upperBound = new ArrayList<>();\n List<Double> lowerBound = new ArrayList<>();\n for (int i = 0; i < population.get(0).getNumberOfObjectives(); i++) {\n Collections.sort(population, new ObjectiveCom... |
"public static void close(Project project, boolean keepDelayedSync) {\n Map<String, Object> projectInstances = ProjectListenerMapping.getInstance().get(project);\n if (projectInstances == null)\n return;\n AutoSyncCommitListener listener = (AutoSyncCommitListener) projectInstances.get(LISTENER);\n if... |
"public List<DifferentialFunction<ArrayField>> diff(List<DifferentialFunction<ArrayField>> i_v) {\n return Arrays.asList(f().one(getResultShape()));\n}\n"
|
"public void end(String body) {\n movieTrailer.setTitle(body);\n}\n"
|
"public void putStream(Stream s) {\n if (!running)\n return;\n streamUpdateLock.lock();\n try {\n conn = getConnection();\n PreparedStatement ps;\n ps = conn.prepareStatement(CREATE_STREAM);\n ps.setString(1, s.getStreamId());\n ps.setString(2, s.getTitle());\n ... |
"public static long factorial(final int n) {\n if (n < 0) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n if (n > 20) {\n throw new ArithmeticException(\"String_Node_Str\");\n }\n return result;\n}\n"
|
"private static boolean posNotOnBorder(final Partition[] partitionObjects, final short[] partitions, final short width, final ShortPoint2D startPosition, final ShortPoint2D checkPosition, final short partition, MutableInt partitionSize) {\n final short checkPositionX = checkPosition.x;\n final short checkPosition... |
"public void endElement(String namespaceURI, String localName, String qName) throws SAXException {\n XMLField xmlField = null;\n if (isCollection) {\n xmlField = (XMLField) ((XMLBinaryDataCollectionMapping) mapping).getField();\n } else {\n xmlField = (XMLField) ((XMLBinaryDataMapping) mapping).g... |
"public void testOps() {\n String humanId = \"String_Node_Str\";\n Human human = new Human(humanId);\n human.setHumanAlive(true);\n HumansPrivatePhoto photo = new HumansPrivatePhoto(humanId);\n photo.setPhotoName(\"String_Node_Str\");\n human.setHumansPrivatePhoto(photo);\n photo.setHuman(human);\n... |
"public CubeInstance createCube(String cubeName, String projectName, CubeDesc desc, String owner) throws IOException {\n logger.info(\"String_Node_Str\" + projectName + \"String_Node_Str\" + cubeName + \"String_Node_Str\" + desc.getName() + \"String_Node_Str\");\n CubeInstance cube = CubeInstance.create(cubeName,... |
"public static boolean doesStackContain(ItemStack stackA, ItemStack stackB) {\n return (stackB.isEmpty() || !stackA.isEmpty() && (areStacksEqualIgnoreAmount(stackA, stackB) && stackA.getCount() >= stackB.getCount()));\n}\n"
|
"public String toString() {\n return \"String_Node_Str\" + this.changeId + \"String_Node_Str\" + this.author + \"String_Node_Str\" + this.changeLogClass + \"String_Node_Str\" + this.changeSetMethodName + \"String_Node_Str\";\n}\n"
|
"protected Term extractTerm(String line) {\n String spacedLine = \"String_Node_Str\";\n for (char c : line.toCharArray()) {\n if (c == '(' || c == ')' || c == ',') {\n spacedLine += \"String_Node_Str\" + c + \"String_Node_Str\";\n } else if (c == ':') {\n spacedLine += \"String... |
"private void mavenBuildCodeProjectPom(String goals, String module, Map<String, Object> argumentsMap, IProgressMonitor monitor) throws Exception {\n IFile childModulePomFile;\n if (TalendMavenConstants.CURRENT_PATH.equals(module)) {\n childModulePomFile = this.getProject().getFile(TalendMavenConstants.POM_... |
"public org.hl7.fhir.dstu2.model.MessageHeader.MessageHeaderResponseComponent convertMessageHeaderResponseComponent(org.hl7.fhir.dstu3.model.MessageHeader.MessageHeaderResponseComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.MessageHeader.M... |
"private void parseDataModel(AbstractWorkflowDataModel wfdm) {\n boolean metadatawriteback = wfdm.isMetadataWriteBack();\n List<OozieJob> parents = new ArrayList<OozieJob>();\n AbstractJob job0 = new BashJob(\"String_Node_Str\");\n job0.getCommand().addArgument(\"String_Node_Str\");\n if (!wfdm.getDirect... |
"public Map<Integer, List<DelayedEntry>> process(List<DelayedEntry> delayedEntries) {\n Map<Integer, List<DelayedEntry>> failMap;\n sort(delayedEntries);\n if (writeBatchSize > 1) {\n failMap = doStoreUsingBatchSize(delayedEntries);\n } else {\n failMap = processInternal(delayedEntries);\n ... |
"public void jobToBeExecuted(JobExecutionContext context) {\n numJobsFired.incrementAndGet();\n synchronized (executingJobs) {\n executingJobs.put(((OperableTrigger) context.getTrigger()).getFireInstanceId(), context);\n }\n}\n"
|
"private void reSetParKeyValuesForCon(IConnection parConnection) {\n IElementParameter parTableCon = parConnection.getElementParameter(HASH_KEYS);\n if (parTableCon != null) {\n Object[] itemCon = parTableCon.getListItemsValue();\n ElementParameter conElemForList = null;\n String clumnKeyList... |
"public IResultObject[] readData(InputStream bis, int length) throws IOException, DataException {\n ResultObject[] rowDatas = new ResultObject[length];\n int rowLen;\n byte[] rowDataBytes;\n ByteArrayInputStream bais;\n DataInputStream dis;\n for (int i = 0; i < length; i++) {\n if (session.get... |
"public void createPartControl(Composite parent) {\n scrollFrame = new ScrolledComposite(parent, SWT.V_SCROLL);\n scrollFrame.setExpandVertical(true);\n scrollFrame.setExpandHorizontal(true);\n scrollFrame.setAlwaysShowScrollBars(true);\n SashForm sash = new SashForm(scrollFrame, SWT.NONE);\n scrollFr... |
"private List<ConnectionDetails> createNeigbourConnectionDetails(ConnectionDetails connectionDetails, Map<String, String> params, List<DeviceNeighbour> neighbours) {\n List<ConnectionDetails> neighboursConnDetails = new ArrayList<ConnectionDetails>();\n for (DeviceNeighbour neighbour : neighbours) {\n para... |
"public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n View view = getView();\n listView = (ListView) view.findViewById(R.id.list);\n LayoutInflater inflater = LayoutInflater.from(view.getContext());\n final View header = inflater.inflate(R.layout.vie... |
"public void actionPerformed(ActionEvent actor) {\n JComponent source = (JComponent) actor.getSource();\n List<PossibleAction> actions;\n PossibleAction chosenAction = null;\n if (source instanceof ClickField) {\n gbc = gb.getConstraints(source);\n actions = ((ClickField) source).getPossibleAc... |
"public void load(final Object input, final OCommandContext context) {\n progress.incrementAndGet();\n System.out.println(input);\n}\n"
|
"public boolean canReplyTo(Event replyToEvent) {\n return replyToEvent != null && Event.EVENT_TYPE_MESSAGE.equals(replyToEvent.getType());\n}\n"
|
"public void persistJoinTable(String joinTableName, String joinColumnName, String inverseJoinColumnName, EntityMetadata relMetadata, EntitySaveGraph objectGraph) {\n Mutator mutator = Pelops.createMutator(PelopsUtils.generatePoolName(getPersistenceUnit()));\n String parentId = (String) primaryKey;\n List<Colum... |
"public void testTxnBackupDies() throws TransactionException {\n Config config = new Config();\n final TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory(2);\n final HazelcastInstance h1 = factory.newHazelcastInstance(config);\n final HazelcastInstance h2 = factory.newHazelcastInstance(co... |
"public static String script(String str, DataPointHints dph) {\n if (dph != null) {\n str.append(\"String_Node_Str\");\n str.append(addDataValueToScript(dph.getBaseValue()));\n str.append(\"String_Node_Str\");\n str.append(addDataValueToScript(dph.getOrthogonalValue()));\n str.appe... |
"public <T> DocumentEntity<T> replaceDocument(String database, String documentHandle, T value, Long rev, Policy policy, Boolean waitForSync) throws ArangoException {\n validateDocumentHandle(documentHandle);\n HttpResponseEntity res = httpManager.doPut(createDocumentEndpointUrl(database, documentHandle), new MapB... |
"public void endElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord) {\n UnmarshalRecord childRecord = unmarshalRecord.getChildRecord();\n if (null != childRecord) {\n if (!xmlAnyCollectionMapping.usesXMLRoot()) {\n Object objectValue = childRecord.getCurrentObject();\n ... |
"public boolean performFinish() {\n if (minValue.getText().equals(\"String_Node_Str\") || maxValue.getText().equals(\"String_Node_Str\") || numbOfBins.getText().equals(\"String_Node_Str\")) {\n parameters.setBins(null);\n return false;\n }\n}\n"
|
"private void unlinkFromTarget(final E edge, final E tmpEdge, final V tmpVertex) {\n vertexPool.getByInternalPoolIndex(edge.getTargetVertexInternalPoolIndex(), tmpVertex);\n final int targetInIndex = tmpVertex.getFirstInEdgeIndex();\n if (targetInIndex == edge.getInternalPoolIndex()) {\n tmpVertex.setFi... |
"public static BranchCreationRequest createBranchCreateRequest(int index) {\n BranchType branchType = BranchType.values()[Math.abs(index % BranchType.values().length)];\n String branchName = \"String_Node_Str\" + index;\n int parentBranchId = index;\n int associatedArtifactId = index * 3;\n int sourceTra... |
"public void testInvalidScripts_GRE323_2() {\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_Str\" + \"String_Node_Str\" +... |
"public void layout() {\n init();\n if (PropertyUtil.isInlineElement(image)) {\n assert (parent instanceof IInlineStackingLayout);\n IInlineStackingLayout lineParent = (IInlineStackingLayout) parent;\n if (root.getAllocatedWidth() > parent.getCurrentMaxContentWidth()) {\n if (!line... |
"public AbstractRecord extractPrimaryKeyRowFromObject(Object domainObject, AbstractSession session) {\n AbstractRecord databaseRow = createRecord(getPrimaryKeyMappings().size(), session);\n for (int index = 0; index < getPrimaryKeyMappings().size(); index++) {\n getPrimaryKeyMappings().get(index).writeFrom... |
"public List<ProjectVersion> findProjectVersionsByProject(String projectId) {\n Map<String, Object> params = new HashMap<>();\n params.put(\"String_Node_Str\", 0);\n params.put(\"String_Node_Str\", project.getId());\n List<ProjectVersion> versions = persistenceManager.find(ProjectVersion.class, params, null... |
"public Feature getFeature() throws IOException {\n if (outputQueue.size() == 0) {\n if (segmentEnd) {\n segmentEnd = false;\n outputQueue.add(new Feature(Signal.SEGMENT_END, getNextFeatureID()));\n } else {\n if (segmentEnd) {\n segmentEnd = false;\n ... |
"public void setElementValue(XMLElement element, String value) {\n if (EjbTagNames.TIMEOUT_VALUE.equals(element.getQName())) {\n descriptor.setValue(Long.parseLong(value));\n } else if (EjbTagNames.TIMEOUT_UNIT.equals(element.getQName())) {\n descriptor.setUnit(elementToTimeUnit.get(value));\n } ... |
"public boolean onSingleTapUp(MotionEvent e) {\n OnChartGestureListener l = mChart.getOnChartGestureListener();\n if (l != null) {\n l.onChartSingleTapped(e);\n }\n Highlight h = mChart.getHighlightByTouchPoint(e.getX(), e.getY());\n if (h == null || h.equalTo(mLastHighlighted)) {\n mChart.... |
"void runVerticesReadyForExecution() {\n final Set<ExecutionVertex> readyVertices = this.scheduler.getVerticesReadyToBeExecuted();\n synchronized (this.verticesReadyToRun) {\n this.verticesReadyToRun.addAll(readyVertices);\n final Iterator<ExecutionVertex> it = this.verticesReadyToRun.iterator();\n ... |
"private void updateMobileIndicatorUsingCaps(String user) {\n ContactJabberImpl contact = ssclCallback.findContactById(StringUtils.parseBareAddress(user));\n if (contact == null)\n return;\n int currentMostConnectedStatus = 0;\n List<ContactResource> mostAvailableResources = new ArrayList<ContactReso... |
"public View createViewByType(AVIMReservedMessageType type, boolean comeMsg) {\n View baseView;\n if (comeMsg) {\n baseView = View.inflate(context, R.layout.chat_item_base_left, null);\n } else {\n baseView = View.inflate(context, R.layout.chat_item_base_right, null);\n }\n LinearLayout con... |
"public boolean apply(Game game, Ability source) {\n return true;\n}\n"
|
"private void fetchMDocsByTag(String workspaceId, String label) {\n desiredProfile = m_tableProfiles.getProfile(\"String_Node_Str\");\n pageManager.setPageManagerBackend(new MDocTagBackend(m_login, label, workspaceId));\n}\n"
|
"public static void main(String[] args) throws IOException, InterruptedException {\n HttpClient client = new HttpClient();\n String[] urls = new String[] { \"String_Node_Str\", \"String_Node_Str\" };\n ExecutorService pool = Executors.newCachedThreadPool();\n for (String url : urls) {\n final CountDo... |
"public E next() {\n if (currentSample != null) {\n return currentSample;\n } else {\n throw new NoSuchElementException();\n }\n}\n"
|
"public void onKeyDown(KeyDownEvent event) {\n final int keyCode = event.getNativeKeyCode();\n Selection selection = getTextArea().getDocument().getSelection();\n if (selection.getRangeCount() > 0) {\n Range range = selection.getRangeAt(0);\n logRange(range);\n int pos = -1;\n Node ... |
"public boolean inDeepScope(String symbol) {\n if ((_currentBranch || isForStatement) && _trueSymbols.containsKey(symbol)) {\n return true;\n } else if (!(_currentBranch || isForStatement) && _falseSymbols.containsKey(symbol)) {\n return true;\n }\n for (IfTree child : _children) {\n if... |
"public boolean isRemote() {\n return !(\"String_Node_Str\".equals(getHost()));\n}\n"
|
"public void testRateLimitExceeded() throws IOException {\n responseHeaders.setContentType(MediaType.APPLICATION_JSON);\n mockServer.expect(requestTo(\"String_Node_Str\")).andExpect(method(GET)).andRespond(withStatus(UNAUTHORIZED).body(jsonResource(\"String_Node_Str\")).contentType(MediaType.APPLICATION_JSON));\n... |
"public void onClick(MouseEvent event) {\n int x = (int) (event.getX() / this.getTileSize());\n int y = (int) (event.getY() / this.getTileSize());\n if (event.getButton().equals(MouseButton.PRIMARY)) {\n Node node = event.getPickResult().getIntersectedNode();\n if (!(node instanceof PixelatedImag... |
"public OrderBean transformToOrderFormBean(Orders entity) {\n OrderBean formBean = new OrderBean();\n formBean.setOrderNumber(entity.getOrderNumber());\n Contacts shipperContactName = customerService.findContactById(entity.getShipperContactId());\n Customer customerName = customerService.findCustomerById(sh... |
"public static AmbariApiException RESPONSE_EXCEPTION(int errCode, String message) {\n return new AmbariApiException(\"String_Node_Str\", null, message);\n}\n"
|
"public Object getMetadata() {\n try {\n Object[] ports = _state.snapshot().keySet().toArray();\n return PersistentVector.create(ports);\n } catch (IOException ex) {\n throw new RuntimeException(ex);\n }\n}\n"
|
"private void init() throws Exception {\n while (getChild(UIActivityLoader.class) != null) {\n removeChild(UIActivityLoader.class);\n }\n if (activityIdList == null) {\n return;\n }\n ActivityManager activityManager = getApplicationComponent(ActivityManager.class);\n for (String activity... |
"public void onStopTrackingTouch(SeekBar seekBar) {\n if (result.getLastSeekEvent().x == seekBarMax - seekBarMargin) {\n main.addSentenceResult(result);\n if (!showQuestion()) {\n nextSentence();\n }\n }\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.