content stringlengths 40 137k |
|---|
"public String getValue(String fieldName) {\n fieldName = fieldName.trim();\n retValue = (String) fieldToValue.get(fieldName);\n if (fieldName.equals(\"String_Node_Str\") && (retValue != null)) {\n try {\n short index = Short.parseShort(retValue);\n retValue = ID3Reader.getGenreStr... |
"public LocalMapStatsImpl getLocalMapStats() {\n ClusterImpl clusterImpl = node.getClusterImpl();\n LocalMapStatsImpl stats = new LocalMapStatsImpl();\n createStats(stats);\n return stats;\n}\n"
|
"public void joinMatch(Player player) {\n PlayerMatchJoinEvent event = new PlayerMatchJoinEvent(player, this);\n AutoReferee.fireEvent(event);\n if (event.isCancelled())\n return;\n if (this.isPlayer(player))\n return;\n AutoRefTeam team = this.expectedTeam(player);\n if (team != null)\n... |
"public int randomize(final String filename, final PrintStream log, long seed) {\n final long startTime = System.currentTimeMillis();\n RandomSource.seed(seed);\n final boolean raceMode = settings.isRaceMode();\n int checkValue = 0;\n if (settings.isLimitPokemon()) {\n romHandler.setPokemonPool(se... |
"public void testDefaultCollation() throws SQLException {\n DataSource ds = JDBCDataSource.getDataSourceLogical(\"String_Node_Str\");\n JDBCDataSource.setBeanProperty(ds, \"String_Node_Str\", \"String_Node_Str\");\n setUpTable(ds);\n checkLangBasedQuery(ds, \"String_Node_Str\", new String[][] { { \"String_N... |
"public void ReadCommonRecord(net.minecraft.nbt.NBTTagCompound TagCompound) {\n super.ReadCommonRecord(TagCompound);\n if (TagCompound.hasKey(\"String_Node_Str\")) {\n net.minecraft.nbt.NBTTagList PatternRecord = TagCompound.getTagList(\"String_Node_Str\", 9);\n Pattern = new BlockRecordList();\n ... |
"public void sendMessageOrThrow(String msgName, GeneratedMessage msg) throws Exception {\n try {\n sendMessage(msgName, msg, true);\n } catch (IOException e) {\n log.error(this + \"String_Node_Str\", e);\n close();\n throw e;\n }\n}\n"
|
"private static Project completeProject(SplashScreen monitor, Loader loader, LogisimFile file, boolean isStartup) {\n if (monitor != null)\n monitor.setProgress(SplashScreen.PROJECT_CREATE);\n Project ret = new Project(file);\n if (monitor != null)\n monitor.setProgress(SplashScreen.FRAME_CREATE)... |
"public void openBAMTest() throws IOException {\n GCSOptions popts = PipelineOptionsFactory.create().as(GCSOptions.class);\n popts.setApiKey(API_KEY);\n final Storage.Objects storageClient = Transport.newStorageClient(popts).build().objects();\n SamReader samReader = BAMIO.openBAM(storageClient, TEST_BAM_FN... |
"private void getMetadata() throws Exception {\n final MetadataElement absRoot = AbstractMetadata.getAbstractedMetadata(sourceProduct);\n srgrFlag = AbstractMetadata.getAttributeBoolean(absRoot, AbstractMetadata.srgr_flag);\n wavelength = SARUtils.getRadarFrequency(absRoot);\n rangeSpacing = AbstractMetadat... |
"private QBUser createUserForUpdating() {\n QBUser newUser = new QBUser();\n newUser.setId(user.getId());\n if (isFieldValueChanged(fullNameCurrent, fullNameOld)) {\n user.setFullName(fullNameCurrent);\n newUser.setFullName(fullNameCurrent);\n }\n if (isFieldValueChanged(phoneCurrent, phone... |
"protected Object getObjectToAdd() {\n PropertiesTableEditorModel tableEditorModel = (PropertiesTableEditorModel) getExtendedTableViewer().getExtendedControlModel();\n if (!tableEditorModel.isButtonEnabled()) {\n MessageDialog.openInformation(tableEditorModel.getTableViewer().getControl().getShell(), \"Str... |
"public void render(TileEntity var1, double x, double y, double z, float var8, int destroyStage, float alpha) {\n TileEntityWeatherForecast tEnt = (TileEntityWeatherForecast) var1;\n String particleCount = ExtendedRenderer.rotEffRenderer.getStatistics();\n StormObject so = tEnt.lastTickStormObject;\n Vec3 p... |
"protected void okPressed() {\n boolean isExist = false;\n SAXReader reader = new SAXReader();\n Element root = null;\n if (new File(f).exists()) {\n try {\n logininfoDocument = reader.read(new File(f));\n } catch (DocumentException e) {\n log.error(e.getMessage(), e);\n ... |
"public void testSubqueryLimit() {\n CriteriaBuilder<Person> cb = cbf.create(em, Person.class, \"String_Node_Str\");\n cb.where(\"String_Node_Str\").in().from(Person.class, \"String_Node_Str\").select(\"String_Node_Str\").orderByAsc(\"String_Node_Str\").setMaxResults(1).end();\n String expected = \"String_Node... |
"public void testEnglishCollation() throws SQLException {\n DataSource ds = JDBCDataSource.getDataSourceLogical(\"String_Node_Str\");\n JDBCDataSource.setBeanProperty(ds, \"String_Node_Str\", \"String_Node_Str\");\n setUpTable(ds);\n checkLangBasedQuery(ds, \"String_Node_Str\", new String[][] { { \"String_N... |
"public void send(EventList events, int retriesLeft) throws Exception {\n javax.jms.ObjectMessage mesg = _session.createObjectMessage(events);\n if (_subject != null) {\n mesg.setStringProperty(JMSEPNManagerImpl.EPN_SUBJECTS, _subject);\n if (LOG.isLoggable(Level.FINEST)) {\n LOG.finest(\... |
"protected void groupPrimitive(PrimitiveRenderEvent pre, boolean drawText) {\n if (_iun == null) {\n logger.log(ILogger.WARNING, Messages.getString(\"String_Node_Str\", getULocale()));\n return;\n }\n if (pre.getSource() instanceof StructureSource) {\n StructureSource sourceObject = (Struc... |
"public String toString() {\n return \"String_Node_Str\" + (getDegreeOfParallelism() == -1 ? \"String_Node_Str\" : getDegreeOfParallelism()) + \"String_Node_Str\" + getNumTaskManager() + \"String_Node_Str\" + getIdString();\n}\n"
|
"public void testGetServiceReferencesWithFilter() throws Exception {\n final IRemoteServiceContainerAdapter[] adapters = getRemoteServiceAdapters();\n final Properties props = new Properties();\n props.put(\"String_Node_Str\", \"String_Node_Str\");\n props.put(\"String_Node_Str\", \"String_Node_Str\");\n ... |
"private boolean closeEnough(double d1, double d2) {\n return Math.abs(d2 - d1) <= 5 * Math.max(Math.ulp(d1), Math.ulp(d2));\n}\n"
|
"public static int getImageWidth(DimensionType value, int parentWidth, int imageInfoWidth, int dpi) {\n if (value == null) {\n return imageInfoWidth;\n } else {\n width = (int) (imageInfoWidth * ExcelUtil.INCH_PT / dpi);\n }\n return width;\n}\n"
|
"public void display() {\n ListTable listTable = new ListTable(customFilteredLanguages, new ProgrammingLanguageTableCell());\n TableComparatorSelector sortSelect = new TableComparatorSelector(listTable, sortedLanguages);\n sortSelect.addComparator(0, \"String_Node_Str\", sortByName);\n sortSelect.addCompara... |
"public static ProteinSequence getProteinSequenceForStructure(Structure struct, Map<Integer, Group> groupIndexPosition) {\n if (groupIndexPosition != null) {\n groupIndexPosition.clear();\n }\n StringBuilder seqStr = new StringBuilder();\n for (Chain chain : struct.getChains()) {\n List<Group>... |
"public void transformClass(SootClass sc, boolean removeAssignments) {\n SootMethod smInit = sc.getMethodByNameUnsafe(\"String_Node_Str\");\n if (smInit == null || !smInit.isConcrete())\n return;\n Set<SootField> nonConstantFields = new HashSet<SootField>();\n Map<SootField, ConstantValueTag> newTags... |
"public void fire() throws IllegalActionException {\n super.fire();\n if (_throwable != null) {\n Throwable throwable = _throwable;\n _throwable = null;\n throw new IllegalActionException(this, throwable, \"String_Node_Str\" + \"String_Node_Str\");\n }\n if (_model instanceof CompositeA... |
"private void exportData(Graph graph, AttributeModel attributeModel) throws Exception {\n Progress.start(progressTicket);\n defaultNodeColumns(graph);\n defaultEdgeColumns(graph);\n attributesNodeColumns(attributeModel);\n attributesEdgeColumns(attributeModel);\n StringBuilder stringBuilder = new Stri... |
"public void receivelist() throws IOException {\n HttpServletRequest req = ServletActionContext.getRequest();\n HttpServletResponse resp = ServletActionContext.getResponse();\n List<Node> nodeList = null;\n String targetIdStr = req.getParameter(\"String_Node_Str\");\n if (Strings.isNullOrEmpty(targetIdSt... |
"public void setAttackGoal(Rider rider, LivingEntity entity) {\n if (MRUtil.isAggressive(rider.getRide())) {\n rider.setGoal(new AttackGoal(plugin, entity));\n messageManager.sendMessage(rider, configManager.attackConfirmedMessage);\n } else {\n messageManager.sendMessage(rider, configManager... |
"public boolean handleResourceChange(ModelElement modelElement) {\n List<ModelElement> clientDependencys = EObjectHelper.getDependencyClients(modelElement);\n if (clientDependencys.size() > 0) {\n final ModelElement[] dependencyElements = clientDependencys.toArray(new ModelElement[clientDependencys.size()]... |
"private void updateRowCount(int offset) throws SQLException {\n if (rowCount != UNKNOWN_ROWCOUNT) {\n rowCount += offset;\n }\n if (rowCountStored != UNKNOWN_ROWCOUNT) {\n rowCountStored = UNKNOWN_ROWCOUNT;\n index.getPageStore().logUndo(this, data);\n if (written) {\n w... |
"public void onRegistrationComplete() {\n welcomeSent = true;\n addFlag(Mode.UMODE_INVISIBLE, null);\n sendStandardFormat(Reply.RPL_WELCOME.format(nickname, getHostmask()));\n sendStandardFormat(Reply.RPL_YOURHOST.format(nickname));\n sendStandardFormat(Reply.RPL_CREATED.format(nickname));\n sendStand... |
"public Monitor findGroupMonitorWithId(String groupId) {\n Monitor monitor;\n return findGroupMonitor(groupId, aliasToActiveMonitorsMap.values());\n}\n"
|
"private void writeBorderProperty(String style, String color, CSSValue width) {\n writer.attribute(\"String_Node_Str\", WordUtil.parseBorderStyle(style));\n writer.attribute(\"String_Node_Str\", WordUtil.parseBorderSize(((FloatValue) width).getFloatValue()));\n writer.attribute(\"String_Node_Str\", validateBor... |
"public int run() throws Exception {\n log.info(\"String_Node_Str\");\n long start = System.currentTimeMillis();\n try {\n setUp(ModelStep.STATS);\n log.debug(\"String_Node_Str\", this.modelConfig.getStats().getCateMaxNumBin());\n syncDataToHdfs(modelConfig.getDataSet().getSource());\n ... |
"public void reportResults(String clientId, String clientDesc, String userAgent, Map<TestInfo, JUnitResult> results) {\n synchronized (clientStatusesLock) {\n if (results == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n userAgents.add(clientInfo.getUserAgent... |
"private int getActualPageBodyHeight(PageArea page) {\n return getActualPageBodySize(page, BODY_HEIGHT);\n}\n"
|
"public void testThatGetBadRequestContentNegotiation() throws Exception {\n Mockito.when(contextImpl.getAcceptContentType()).thenReturn(Result.APPLICATION_JSON);\n Result result = ninjaDefault.getBadRequestResult(contextImpl, new Exception(\"String_Node_Str\"));\n assertThat(result.getContentType(), equalTo(nu... |
"public void setBuildingArea(FreeMapArea area, Building buildingValue) {\n for (ShortPoint2D curr : area) {\n buildingsGrid[curr.x + curr.y * width] = building;\n }\n}\n"
|
"public boolean doWork() {\n try {\n String bucketName = config.getString(BUCKET_NAME_CONFIG_KEY);\n String pageContentRef = parseInput.getAttribute(PageAttribute.PAGE_CONTENT_REF).toString();\n GetObjectRequest getObjectRequest = new GetObjectRequest(bucketName, pageContentRef);\n final ... |
"public boolean skipTo(int target) throws IOException {\n dataPos = Math.max(dataPos, data.findDocIndex(target) - 1);\n return next();\n}\n"
|
"public JSONArray put(String index, JSONArray values) {\n if (values.length() != 2 || index == null) {\n Logy.d(LOGGER_TAG, \"String_Node_Str\");\n return null;\n }\n Logy.d(LOGGER_TAG, \"String_Node_Str\");\n return null;\n}\n"
|
"public void onBindViewHolder(MonthAdapter.ViewHolder holder, int position) {\n if (!isPositionHeader(position)) {\n if (position - 7 - firstDayDayOfWeek >= 0) {\n holder.num.setText(days.get(position - 7 - days.get(0).getDayOfWeek()).getNum());\n holder.num.setVisibility(View.VISIBLE);\... |
"public GroupAccess byName(String name) {\n ServerPool serverPool = groupMgt.byName(name);\n return LocalGroupAccess.from(injector, serverPool);\n}\n"
|
"public void steps_following_failing_steps_are_reported_as_skipped() {\n given().a_failing_test_with_$_steps(3).and().step_$_fails(1);\n when().the_test_is_executed_with_JUnit();\n then().step_$_is_reported_as_failed(1).and().step_$_is_reported_as_skipped(2);\n}\n"
|
"private Atom getAtomFromRecord(String name, String altLoc, String resName, String chainID, String resSeq, String iCode) throws StructureException {\n if (iCode == null || iCode.isEmpty()) {\n iCode = \"String_Node_Str\";\n }\n Map<Integer, Atom> outMap = new HashMap<>();\n ResidueNumber resNum = new... |
"private String errorMessageFromException(Throwable t) {\n String message;\n if (t instanceof TimeoutException) {\n message = \"String_Node_Str\";\n Exception lastRetryError0 = lastRetryError;\n if (lastRetryError0 != null) {\n message += \"String_Node_Str\";\n message +... |
"private void addMDMServerViewDef(MDMServerDef serverDef, ServerView serverView) {\n com.amalto.workbench.utils.MDMServerDef serDef = com.amalto.workbench.utils.MDMServerDef.parse(serverDef.getUrl(), serverDef.getUser(), serverDef.getPasswd(), serverDef.getUniverse(), serverDef.getName());\n MDMServerHelper.getSe... |
"private boolean doDebugLogging() {\n return getPreferences().getBoolean(DEBUG_PREF, false);\n}\n"
|
"public Cells call(Cells cells) throws Exception {\n Cells cellsOut = new Cells(cells.getnameSpace());\n for (ColumnName columnName : columns) {\n Cell cell = cells.getCellByName(columnName.getTableName().getQualifiedName(), columnName.getName());\n cellsOut.add(cell);\n }\n return cellsOut;\n... |
"public void handlePremium(DownloadLink link, Account account) throws Exception {\n String passCode = null;\n requestFileInformation(link);\n login(account);\n br.setCookie(COOKIE_HOST, \"String_Node_Str\", \"String_Node_Str\");\n br.setFollowRedirects(false);\n br.getPage(link.getDownloadURL());\n ... |
"public void showNextTask() {\n SystemServicesProxy ssp = Recents.getSystemServices();\n RecentsTaskLoader loader = Recents.getTaskLoader();\n RecentsTaskLoadPlan plan = loader.createLoadPlan(mContext);\n loader.preloadTasks(plan, -1, false);\n TaskStack focusedStack = plan.getTaskStack();\n if (focus... |
"public void updatedReplicationStateOnAbsentEntry() {\n if (!ru.replicationUpdateInit()) {\n s.innerWriteLock.lock();\n updateReplicationState(mh.m().identifier(), mh.m().timeProvider.currentTime());\n }\n}\n"
|
"protected String computeReplacementString() {\n if (fProposal.getCompletion() == null || fProposal.getCompletion().length == 0) {\n return \"String_Node_Str\";\n }\n char[] proposalName = fProposal.getName();\n boolean hasWhitespace = ProposalUtils.hasWhitespace(proposalName);\n if (fProposal.get... |
"public <T> T findAndDelete(Query<T> query) {\n DBCollection dbColl = ((QueryImpl<T>) query).getCollection();\n if (dbColl == null)\n dbColl = getCollection(((QueryImpl<T>) query).getEntityClass());\n QueryImpl<T> qi = ((QueryImpl<T>) query);\n EntityCache cache = createCache();\n if (log.isTraceE... |
"public void onNext(GenericOverall genericOverall) {\n inCall = true;\n if (!hasChatSupport) {\n ApplicationWideCurrentRoomHolder.getInstance().setCurrentRoomId(roomId);\n ApplicationWideCurrentRoomHolder.getInstance().setInCall(true);\n ApplicationWideCurrentRoomHolder.getInstance().setUserI... |
"public int getRequestedOrientation(IBinder token) {\n synchronized (this) {\n int index = indexOfTokenLocked(token);\n if (index < 0) {\n return ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED;\n }\n HistoryRecord r = (HistoryRecord) mHistory.get(index);\n return mWindowMan... |
"public void deleteSelection() {\n if (this.selectionRecord.numSelected() > 0) {\n commandStack.execute(new DeleteSelectionCommand(selectionRecord.getEdgeIncludedSelection()));\n selectionRecord.clear();\n shapePane.updateView();\n }\n}\n"
|
"public void widgetSelected(SelectionEvent e) {\n updateWidgetEnablements();\n}\n"
|
"public void postInvoke(EJBRequestData request, SecurityCookieImpl preInvokeResult) throws EJBAccessDeniedException {\n if (preInvokeResult != null) {\n SecurityCookieImpl securityCookie = preInvokeResult;\n Subject invocationSubject = subjectManager.getInvocationSubject();\n Subject callerSubje... |
"public void testEvictOnAck_ThreeGroups() throws Exception {\n TTQueue queue = createQueue();\n final boolean singleEntry = true;\n long dirtyVersion = getDirtyWriteVersion();\n ReadPointer dirtyReadPointer = getDirtyPointer();\n QueueConfig config = new QueueConfig(PartitionerType.FIFO, singleEntry);\n ... |
"public void handle() {\n String request = headers.get(null);\n String[] requ = request.split(\"String_Node_Str\");\n String cPath = requ[1];\n String path, querry;\n path = cPath.substring(1);\n String[] params;\n HashMap<String, String> requestParameter = new HashMap<String, String>();\n reque... |
"protected ImmutableMap<String, ImmutableList<Object>> getParameters() {\n ImmutableList.Builder<Object> parameters = ImmutableList.builder();\n ImmutableList<ActionParameter> actionList = parameterBuilder.build();\n actionList.forEach(action -> parameters.add(action.getParameterMap()));\n return ImmutableM... |
"public boolean onTouch(View view, MotionEvent motionEvent) {\n if (mViewWidth < 2) {\n mViewWidth = mListView.getWidth();\n }\n switch(motionEvent.getActionMasked()) {\n case MotionEvent.ACTION_DOWN:\n {\n if (mPaused) {\n return false;\n ... |
"public void run() {\n JScrollBar verticalScrollBar = getVerticalScrollBar();\n if (verticalScrollBar != null) {\n verticalScrollBar.setValue(verticalScrollBar.getMaximum());\n}\n"
|
"protected void start() throws IllegalAccessException, AxelorException {\n super.start();\n if (batch.getHrBatch().getDayNumber() == null || batch.getHrBatch().getDayNumber().compareTo(BigDecimal.ZERO) == 0 || batch.getHrBatch().getLeaveReason() == null) {\n TraceBackService.trace(new AxelorException(Trace... |
"private float getContentHeight(IContent content) {\n return ExcelUtil.convertDimensionType(content.getHeight(), 0) / 1000;\n}\n"
|
"private void startSoftphone(GetVoiceBridgeResponseMessage msg) {\n logger.warning(\"String_Node_Str\" + msg.getBridgeInfo());\n String phoneNumber = System.getProperty(\"String_Node_Str\");\n System.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n if (phoneNumber != null && phoneNumber.length() > 0... |
"public void testTraditionalGetWithInvalidContentUrn() {\n for (int i = 0; i < RouterService.getFileManager().getNumFiles(); i++) {\n FileDesc fd = RouterService.getFileManager().get(i);\n String request = \"String_Node_Str\" + fd.getIndex() + \"String_Node_Str\" + fd.getName() + \"String_Node_Str\" + ... |
"private JPanel createTopPanel() {\n JPanel initTopPanel = new JPanel();\n initTopPanel.setLayout(new GridBagLayout());\n JPanel timePanel = new JPanel();\n timePanel.setLayout(new BoxLayout(timePanel, BoxLayout.Y_AXIS));\n timePanel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));\n JPanel tim... |
"public void widgetSelected(SelectionEvent e) {\n if (detachPopup(e.widget)) {\n return;\n }\n if (isRegistered(e.widget)) {\n attachPopup(((Button) e.widget).getData().toString());\n }\n if (e.widget == btnFixLabelSpan) {\n boolean bLabelThickFixed = btnFixLabelSpan.getSelection();\... |
"public void onTextChanged(String s, boolean isManualInput) {\n if (s == null || listChangeIf == null) {\n lastHiddenInput = null;\n return;\n }\n if (lastHiddenInput != null && lastHiddenInput.equals(s)) {\n return;\n }\n lastHiddenInput = s;\n if (ClipboardManager.isFormulaObjec... |
"public View getChildView(int groupPosition, final int childPosition, boolean isLastChild, View convertView, ViewGroup parent) {\n final SingleItemModel children = (SingleItemModel) getChild(groupPosition, childPosition);\n if (convertView == null) {\n convertView = inflater.inflate(R.layout.stats_list_cel... |
"public static String readExternalRef(String file, RefFormat refFormat, List<AuthorizationValue> auths, Path parentDirectory) {\n if (!RefUtils.isAnExternalRefFormat(refFormat)) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n String result;\n try {\n if (refFormat == RefFormat.URL) ... |
"public CheckedListenableFuture<ServiceConfiguration> startTransition(final ServiceConfiguration configuration) throws IllegalStateException {\n final CheckedListenableFuture<ServiceConfiguration> transitionFuture = Futures.newGenericFuture();\n if (!this.hasLocalService()) {\n try {\n this.serv... |
"public String createFile(String path, String fileName, InputStream inputStream) throws GenericException, RequestNotValidException {\n Path parent = path != null ? basePath.resolve(path) : basePath;\n try {\n try {\n Files.createDirectories(parentPath);\n } catch (FileAlreadyExistsExcepti... |
"public synchronized boolean crawlIsEnded() {\n if (processHasExited()) {\n return true;\n }\n TabularData jobs = (TabularData) executeHeritrixCommand(COMPLETED_JOBS_COMMAND);\n if (jobs != null && jobs.size() > 0) {\n for (CompositeData value : (Collection<CompositeData>) jobs.values()) {\n ... |
"protected void createPageContent(Composite parent) {\n Composite topComposite = new Composite(parent, SWT.NONE);\n topComposite.setLayout(new GridLayout(2, false));\n GridData data = new GridData(GridData.FILL_BOTH);\n topComposite.setLayoutData(data);\n availableXmlTree = new Tree(topComposite, SWT.H_S... |
"public View getChildView(int groupPosition, int childPosition, boolean isLastChild, View convertView, ViewGroup parent) {\n RenderableModel child = mGroups.get(groupPosition).children.get(childPosition);\n if (child instanceof Match) {\n ((Match) child).setSelectedTeam(mTeamKey);\n }\n ListItem rend... |
"public boolean canRemove() {\n if (this.fsm.getCurrentState() == FSM.END_STATE) {\n if (interpreter.countPlansOfType(this.type) <= 1) {\n ConversationMulticastMultiRole temp = spawn(null, null);\n interpreter.addPlan(temp);\n }\n return true;\n }\n return false;\n}\n... |
"private void createProxy0(String type, final StringBuilder cspBuff) {\n cspBuff.setLength(0);\n cspBuff.append(requestContext.fullName());\n cspBuff.append(\"String_Node_Str\");\n cspBuff.append(\"String_Node_Str\").append(type);\n final Class keyType = requestContext.keyType();\n if (keyType != null... |
"public <T> void bindGenericEventClient(Class<T> boundType, List<Class<? extends T>> eventTypes) {\n Preconditions.checkNotNull(boundType, \"String_Node_Str\");\n Preconditions.checkNotNull(eventTypes, \"String_Node_Str\");\n Binder sourcedBinder = binder.withSource(getCaller());\n ImmutableList.Builder<Eve... |
"public void startElement(String nsuri, String localName, String qName, Attributes atts) {\n stack.push(qName);\n if (stack.size() == 3) {\n if (NAME.equals(qName) || TAG_CLASS_LEGACY.equals(qName) || TAG_CLASS.equals(qName) || LISTENER_CLASS.equals(qName) || FUNCTION_CLASS.equals(qName) || FUNCTION_SIGNAT... |
"public IType getType() {\n if (this.method == null) {\n return Type.NONE;\n }\n if (this.type == null) {\n if (this.method.hasTypeVariables()) {\n if (this.typeArguments == null) {\n this.typeArguments = this.method.getTypeMap(this.instance, this.arguments, this.generic... |
"public boolean draw(final GLState glState) {\n if (mVertexBuffer == null) {\n return false;\n }\n drawStart(glState);\n final boolean blendChanged = glState.setBlendFunc(mBlendFunc);\n glState.setColor(getSumColor());\n if (mColorBuffer == null) {\n glState.setColorArrayEnabled(false);\... |
"public boolean isInsideBoundary() {\n if (_insideBoundaryCacheIsOn) {\n return _isInsideBoundaryValue;\n } else {\n IOPort innerPort = (IOPort) _receiver.getContainer();\n if (innerPort == null) {\n _insideBoundaryCacheIsOn = false;\n _isInsideBoundaryValue = false;\n ... |
"public void clicked(InputEvent event, float x, float y) {\n Scene scn = scnWidget.getScene();\n if (scn == null)\n return;\n Vector2 p = new Vector2(Gdx.input.getX(), Gdx.input.getY());\n scnWidget.screenToWorldCoords(p);\n if (deleteObstacle) {\n deleteObstacle = false;\n Ctx.msg.h... |
"public void addBoard(String name, List<PanelInfo> panels) {\n savedBoards.put(name, panels);\n}\n"
|
"public Message receive() throws IOException, BadPacketException {\n InputStream in = sock.getInputStream();\n synchronized (in) {\n Message m = Message.read(in);\n received++;\n if (m != null)\n System.out.println(\"String_Node_Str\" + m.toString() + \"String_Node_Str\" + sock.toS... |
"public double getRecordsThroughput() {\n return elapsed.get() != 0 ? totalProcessedRecordsCount.doubleValue() / ((elapsed.get() / 1000)) : 0;\n}\n"
|
"public void removeValue(Comparable<?> series, Comparable<?> category) {\n List<Comparable<?>> key = new ArrayList<Comparable<?>>(2);\n key.add(series);\n key.add(category);\n if (_valueMap.remove(key) == null)\n return;\n final List<Comparable<?>> cateList = _seriesMap.get(series);\n final int... |
"public void setNull(int parameterId) throws OdaException {\n assertNotNull(callStat);\n try {\n if (this.parameterDefn != null) {\n this.callStat.setNull(parameterId, getParameterType(parameterId));\n } else {\n this.callStat.setNull(parameterId, java.sql.Types.OTHER);\n ... |
"private boolean hasNotMatchedYet(Vertex<LongWritable, VertexValue, NullWritable> vertex) {\n return !vertex.getValue().isMatched();\n}\n"
|
"public boolean equals(IClass iclass) {\n if (!iclass.isSubTypeOf(this.superType)) {\n return false;\n }\n for (IType i : this.interfaces) {\n if (!iclass.isSuperType(i)) {\n return false;\n }\n }\n return true;\n}\n"
|
"protected Map<Expression, Double> createExpressionMap(List<WeightAmplifier> weightExprList) {\n Map<Expression, Double> ewMap = new HashMap<Expression, Double>();\n if (CollectionUtils.isNotEmpty(weightExprList)) {\n JexlEngine jexl = new JexlEngine();\n for (WeightAmplifier we : weightExprList) {\... |
"public void run() throws Exception {\n NodeEngine nodeEngine = getNodeEngine();\n Function f = nodeEngine.toObject(function);\n AtomicReferenceWrapper reference = getReference();\n Object input = nodeEngine.toObject(reference.get());\n Object output = f.apply(input);\n shouldBackup = !isEquals(input,... |
"private void logBuffer() {\n Log.d(\"String_Node_Str\", \"String_Node_Str\" + mLoadedViews.size() + \"String_Node_Str\" + mScroller.getCurrX() + \"String_Node_Str\" + mScroller.getCurrY());\n Log.d(\"String_Node_Str\", \"String_Node_Str\" + mCurrentAdapterIndex + \"String_Node_Str\" + mCurrentBufferIndex);\n}\n"... |
"public void render() throws Exception {\n setupRenderOption();\n IContentEmitter emitter = createContentEmitter();\n String format = executionContext.getOutputFormat();\n IReportExecutor executor = new ReportletExecutor(executionContext, offset);\n executor = createRenderExtensionExecutor(executor);\n ... |
"public void setOrigin(final Project project) {\n super.setOrigin(project);\n}\n"
|
"private void runTest(byte[] payload, Map<String, String> headers) {\n PersistableEvent pe = new PersistableEvent(\"String_Node_Str\", new MockEvent(payload, headers, null));\n Assert.assertArrayEquals(payload, pe.getBody());\n Map<String, String> h = pe.getHeaders();\n if (h == null) {\n Assert.asse... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.