content stringlengths 40 137k |
|---|
"private int getAllMeasuerSize() {\n int size = 0;\n for (int i = 0; i < factTable.getMeasureInfo().length; i++) {\n if (factTable.getMeasureInfo()[i].getDataType() == DataType.DOUBLE_TYPE)\n size += 9;\n else if (factTable.getMeasureInfo()[i].getDataType() == DataType.INTEGER_TYPE)\n ... |
"public void clearVisor() {\n display.write(new byte[] { 0x10, 0x00 });\n display.write(trans.transString(DeviceTicket.getWhiteString(20)));\n display.write(new byte[] { 0x10, 0x14 });\n display.write(trans.transString(DeviceTicket.getWhiteString(20)));\n display.flush();\n}\n"
|
"public boolean onPlayerRightClick(EntityPlayer player, int side, Pos hit) {\n if (player.getHeldItem() != null && player.getHeldItem().getItem() == Items.stick) {\n if (Engine.runningAsDev) {\n if (isServer()) {\n player.addChatComponentMessage(new ChatComponentText(\"String_Node_St... |
"public void initParams(Properties options) {\n String val = (String) options.get(JAAS_ENABLED_PARAM);\n if (val != null) {\n remoteLoginEnabled = val.trim().equalsIgnoreCase(\"String_Node_Str\");\n if (!remoteLoginEnabled) {\n System.err.println(\"String_Node_Str\" + JAAS_ENABLED_PARAM +... |
"private void createIngestStartedEvent(ModelService model, IndexService index, Map<String, String> sipToAIP, Date startDate) {\n setPreservationEventType(START_TYPE);\n setPreservationSuccessMessage(START_SUCCESS);\n setPreservationFailureMessage(START_FAILURE);\n setPreservationEventDescription(START_DESCR... |
"public String getText(Object obj) {\n if (obj instanceof IRepositoryViewObject) {\n return getText((IRepositoryViewObject) obj);\n }\n if (obj instanceof Property) {\n return getText((Property) obj);\n }\n RepositoryNode node = (RepositoryNode) obj;\n if (node.getType() == ENodeType.REP... |
"private DepTreebank getData(Alphabet<Label> alphabet, DatasetType dataType, File dataFile, String dataName) throws ParseException, IOException {\n DepTreebank goldTreebank;\n DmvModel goldModel = null;\n if (dataType == DatasetType.PTB || dataType == DatasetType.CONLL_X || dataType == DatasetType.CONLL_2009) ... |
"public ClassLoader getInvocationClassLoader() {\n JndiNameEnvironment componentEnv = compEnvMgr.getCurrentJndiNameEnvironment();\n return getClassLoaderForEnvironment(componentEnv);\n}\n"
|
"public List<MetricDefinition> find(String tenantId, String name, Map<String, String> dimensions, String offset, int limit) throws Exception {\n int startIndex = this.influxV9Utils.startIndex(offset);\n String q = String.format(\"String_Node_Str\" + \"String_Node_Str\", this.influxV9Utils.namePart(name, false), t... |
"public void testInvalidMapParameterTypeBadKey() {\n Map<Class, Source> metadataSourceMap = new HashMap<Class, Source>();\n metadataSourceMap.put(JAXBContextFactory.class, new StreamSource());\n Map<String, Map<Class, Source>> properties = new HashMap<String, Map<Class, Source>>();\n properties.put(JAXBCont... |
"private boolean onModifiedTouchEvent(MotionEvent me) {\n int touchX = (int) me.getX() - getPaddingLeft();\n int touchY = (int) me.getY() + mVerticalCorrection - getPaddingTop();\n final int action = me.getAction();\n final long eventTime = me.getEventTime();\n int keyIndex = getKeyIndexAndNearbyCodes(to... |
"public void setName(String name) {\n boolean canModify = true;\n List connections;\n if (target != null) {\n connections = target.getIncomingConnections();\n for (int i = 0; i < connections.size(); i++) {\n if (((Connection) connections.get(i)).getName().equals(name)) {\n ... |
"private void exportNodeData(Graph graph) throws IOException {\n stringBuilder.append(\"String_Node_Str\");\n stringBuilder.append(\"String_Node_Str\");\n for (int i = 0; i < attributeModel.getNodeTable().getColumns().length; i++) {\n if (!attributeModel.getNodeTable().getColumns()[i].getTitle().equalsI... |
"public void execute(Environment env, Map args, TemplateModel[] outArgs, final TemplateDirectiveBody body) throws TemplateException, IOException {\n try {\n SimpleTag tag = (SimpleTag) getTagInstance();\n final FreeMarkerPageContext pageContext = PageContextFactory.getCurrentPageContext();\n pag... |
"private void startAsync(String procName, List<Var> waitVars, List<Var> usedVariables, List<Var> keepOpenVars, Arg priority, boolean recursive, TaskMode mode) {\n assert (priority == null || priority.isImmediateInt());\n mode.checkSpawn(execContextStack.peek());\n ArrayList<Var> toPassIn = new ArrayList<Var>()... |
"public Type add(final MethodVisitor method, final int programPoint) {\n return Type.INT.add(method, programPoint);\n}\n"
|
"public INDArray broadcast(int[] shape) {\n ensureNotCleanedUp();\n if (Shape.shapeEquals(shape, shape()))\n return this;\n boolean compatible = true;\n int count = shape.length - 1;\n int thisCount = this.shape.length - 1;\n for (int i = shape.length - 1; i > 0; i--) {\n if (count < 0 |... |
"private boolean isSupportValidationRuleNode(Node node) {\n boolean hasFlow = false;\n if (node.getComponent() != null && node.getComponent() instanceof AbstractBasicComponent) {\n AbstractBasicComponent component = (AbstractBasicComponent) node.getComponent();\n if (component.useLookup() || compone... |
"private void finishCooking() {\n if (canCook()) {\n IAlchemicalCauldronRecipe recipe = AlchemicalCauldronCraftingManager.getInstance().findRecipe(getStackInSlot(SLOT_LIQUID), getStackInSlot(SLOT_INGREDIENT));\n if (!isStackInSlot(SLOT_RESULT)) {\n setInventorySlotContents(SLOT_RESULT, recip... |
"Node discriminate(Chrest model, ListPattern pattern) {\n ListPattern newInformation = pattern.remove(_contents);\n if (newInformation.isEmpty()) {\n if (newInformation.isFinished()) {\n return addTest(model, newInformation);\n } else {\n return this;\n }\n }\n Nod... |
"private boolean setupRequest() {\n long version = slave.getVersion();\n while (version < masterVersion) {\n if (slave.hasLog(version)) {\n version++;\n } else {\n break;\n }\n }\n if (version == masterVersion) {\n setStatus(Status.GET_MESSAGE);\n ret... |
"public String doPreprocessing(String path) throws IOException {\n File[] files;\n File input = new File(path);\n String outputPath;\n if (input.isDirectory()) {\n files = input.listFiles();\n outputPath = path + System.getProperty(\"String_Node_Str\") + \"String_Node_Str\";\n } else {\n ... |
"private boolean eligibleForAction(NodeRef actionedUponNodeRef) {\n boolean result = false;\n if (nodeService.exists(actionedUponNodeRef) && !freezeService.isFrozen(actionedUponNodeRef) && recordService.isRecord(actionedUponNodeRef) && !recordService.isDeclared(actionedUponNodeRef)) {\n result = true;\n ... |
"private Section createTableSectionPartForMapDB(Composite parentComp, String title, SimpleStatIndicator ssIndicator) {\n Section columnSetElementSection = this.createSection(form, parentComp, title, null);\n Composite sectionTableComp = toolkit.createComposite(columnSetElementSection);\n if (ssIndicator.isStor... |
"private void clampHunToTop(AmbientState ambientState, ExpandableNotificationRow row, StackViewState childState) {\n float newTranslation = Math.max(ambientState.getTopPadding() + ambientState.getStackTranslation(), childState.yTranslation);\n childState.height = (int) Math.max(childState.height - (newTranslation... |
"private void setGenericRepositoryValue(GenericConnection connection, INode node, IElementParameter param) {\n if (connection != null) {\n IComponent component = node.getComponent();\n if (component != null && component instanceof AbstractComponent) {\n ((GenericElementParameter) param).getC... |
"private void trimDirectiveWhitespacesAndComments(ListIterator<AstStatement> it, int block, ParserContext ctx) {\n boolean trimDirectiveWhitespaces = ctx.isTrimDirectiveWhitespaces();\n boolean trimDirectiveComments = ctx.isTrimDirectiveComments();\n String trimDirectiveCommentsPrefix = ctx.getTrimDirectiveCom... |
"public DBObject getFieldsObject() {\n if (fields == null || fields.length == 0)\n return null;\n Map<String, Boolean> fieldsFilter = new HashMap<String, Boolean>();\n for (String field : this.fields) {\n StringBuffer sb = new StringBuffer(field);\n Mapper.validate(clazz, ds.getMapper(), s... |
"public long getEnergyCapacity(ItemStack itemStack) {\n return energyCost * 10;\n}\n"
|
"protected final int getItemCount() {\n return getListAdapter().getCount();\n}\n"
|
"CrosstabCellHandle addGrandTotal(List<MeasureViewHandle> measureList, List<String> functionList, boolean needTransaction) throws SemanticException {\n if (!isValidParameters(functionList, measureList))\n return null;\n verifyTotalMeasureFunctions(crosstabView.getAxisType(), functionList, measureList);\n ... |
"public void setValue(int index, Object value) {\n if (index == 1) {\n super.setValue(index, value);\n } else if (index == 2) {\n m_ObjectList.clear();\n if (value != null) {\n for (Object item : (Object[]) value) {\n ObjectType type = ObjectType.forValue(((Number) A... |
"public int getClassId() {\n return MultiMapPortableHook.TXN_MM_REMOVE;\n}\n"
|
"private void updateOverview(String target) {\n performanceTableSensitivitySpecificity.setRedraw(false);\n for (final TableItem i : performanceTableSensitivitySpecificity.getItems()) {\n i.dispose();\n }\n performancePerClassTable.setRedraw(true);\n if (!originalRocCurves.containsKey(target)) {\n ... |
"private ImageView createImageView(final File imageFile) {\n ImageView imageView;\n try {\n final Image image = new Image(new FileInputStream(imageFile), 150, 150, true, true);\n imageView = new ImageView(image);\n imageView.setFitWidth(150);\n imageView.setFitHeight(150);\n ima... |
"private void updateTestResult(TestResult testResult, BuildListener listener, APISession api, String testSessionID, List<Item> testCaseList) throws APIException {\n for (Item test : testCaseList) {\n Field testCaseIDFld = null;\n Field containsFld = null;\n try {\n testCaseIDFld = tes... |
"public synchronized void deleteQueues(HttpRequest request, HttpResponder responder, String namespaceId) {\n NamespaceId namespace = new NamespaceId(namespaceId);\n try {\n List<ProgramRecord> flows = lifecycleService.list(validateAndGetNamespace(namespaceId), ProgramType.FLOW);\n for (ProgramRecord... |
"public void testUpdateCatalogEntryQuery() throws IOException, URISyntaxException {\n RestConnection conn = new RestConnection();\n assertTrue(conn.login(\"String_Node_Str\", \"String_Node_Str\"));\n URI uri = UriBuilder.fromUri(getContextURI()).path(\"String_Node_Str\").path(entry2.getKey().toString()).build(... |
"public void cancel() throws OdaException {\n try {\n if (this.preStat != null) {\n System.out.println(\"String_Node_Str\");\n this.preStat.cancel();\n }\n } catch (Exception e) {\n }\n try {\n if (this.conn != null) {\n this.conn.close();\n }\n ... |
"public Sound transform(AbstractFrequencySoundTransformation st, Sound sound) {\n Sound output = st.initSound(sound);\n double freqmax = sound.getSampleRate();\n double threshold = st.getLowThreshold(freqmax);\n int maxlength = st.getWindowLength(freqmax);\n long[] data = sound.getSamples();\n long[] ... |
"LocalMapStatsImpl getLocalMapStats() {\n LocalMapStatsImpl localMapStats = new LocalMapStatsImpl();\n long now = System.currentTimeMillis();\n int ownedEntryCount = 0;\n int backupEntryCount = 0;\n int markedAsRemovedEntryCount = 0;\n int ownedEntryMemoryCost = 0;\n int backupEntryMemoryCost = 0;\... |
"private final File locate(String name) {\n String prefix = \"String_Node_Str\";\n File sourceFile = null;\n int idx = 0;\n while (true) {\n if ((idx == 0) && (ToolIO.getUserDir() != null)) {\n sourceFile = new File(ToolIO.getUserDir(), name);\n } else {\n if (isInJar(pre... |
"public double getCommandedSteeringAngle() {\n int closestIndex = getClosestIndex(wayPoints, pose);\n if (closestIndex == -1) {\n return 17433504;\n }\n double delta = 10 / 100000.0;\n int targetIndex = closestIndex + 2;\n if (targetIndex >= wayPoints.size()) {\n return 0;\n }\n Gp... |
"public List<ExpenseLine> getExpenseLineToInvoice(Task task) {\n return (List<ExpenseLine>) ExpenseLine.all().filter(\"String_Node_Str\", task.getId()).fetch();\n}\n"
|
"public void protoContactAdded(ProtoContactEvent evt) {\n final MetaContact metaContact = evt.getNewParent();\n UIContact parentUIContact;\n boolean parentUIContactCreated = false;\n synchronized (metaContact) {\n parentUIContact = MetaContactListSource.getUIContact(metaContact);\n if (parentU... |
"protected static int handleValidateTargetCanContainElementHandle(DesignElementHandle targetHandle, DesignElementHandle childHandle, boolean validateContainer) {\n if (targetHandle instanceof CascadingParameterGroupHandle) {\n return childHandle.getContainer() == targetHandle ? CONTAIN_THIS : CONTAIN_NO;\n ... |
"protected Long decodeLong(IServiceProperties props, String name) {\n String longAsString = props.getPropertyString(name);\n if (longAsString == null)\n return new Long(0);\n return new Long(longAsString);\n}\n"
|
"public ModelAndView showSummary(String id, Model uiModel, HttpServletRequest request) {\n addDateTimeFormat(uiModel);\n List<String> warningMessage = null;\n List<String> adviceMessage = null;\n Patient patient = allPatients.findByIdAndClinicId(id, loggedInClinic(request));\n if (patient == null)\n ... |
"private void createApplyStaticNatRulesCommands(final List<? extends StaticNatRule> rules, final VirtualRouter router, final Commands cmds, final long guestNetworkId) {\n List<StaticNatRuleTO> rulesTO = new ArrayList<StaticNatRuleTO>();\n if (rules != null) {\n rulesTO = new ArrayList<StaticNatRuleTO>();\n... |
"public static Result parse(String body) throws ParseException {\n Matcher m;\n Result result = new Result();\n m = PATTERN_IMAGE_URL.matcher(body);\n if (m.find()) {\n result.imageUrl = StringUtils.unescapeXml(StringUtils.trim(m.group(1)));\n }\n m = PATTERN_SKIP_HATH_KEY.matcher(body);\n i... |
"public void run() {\n Thread me = Thread.currentThread();\n try {\n Thread.sleep(pingStartWait);\n } catch (InterruptedException e) {\n return;\n }\n while (!queue.isStopped()) {\n try {\n if (me.isInterrupted())\n break;\n Thread.sleep(keepAlive... |
"public Object getValueAt(int arg0, int arg1) {\n switch(arg1) {\n case 0:\n return matches[arg0].getName();\n case 1:\n return matches[arg0].getGameType();\n case 2:\n return matches[arg0].getDeckType();\n case 3:\n return matches[arg0].getPlay... |
"public void filter_add(HttpServletRequest req, HttpServletResponse resp, List<Integer> numerics) throws IOException {\n Locale locale = resp.getLocale();\n resp.setContentType(\"String_Node_Str\");\n ServletOutputStream out = resp.getOutputStream();\n Caching.caching_disable_headers(resp);\n TemplateBui... |
"public void node(Node node, NamespaceResolver namespaceResolver) {\n if (node.getNodeType() == Node.ATTRIBUTE_NODE) {\n Attr attr = (Attr) node;\n String resolverPfx = null;\n if (namespaceResolver != null) {\n resolverPfx = namespaceResolver.resolveNamespaceURI(attr.getNamespaceURI(... |
"void clearAttributeStates() {\n if (_attributeStates == null) {\n _attributeStates = new HashMap<String, SessionAttributeState>();\n }\n _attributeStates.clear();\n}\n"
|
"private URI getAutodiscoverEndpointUrl(String host) throws Exception {\n URI autodiscoverUrl = null;\n OutParam<URI> outParam = new OutParam<URI>();\n if (this.tryGetAutodiscoverEndpointUrl(host, outParam)) {\n return autodiscoverUrl;\n } else {\n throw new AutodiscoverLocalException(\"String... |
"public void dataEngineShutdown() {\n if (session.getNamingRelation() == null) {\n return;\n }\n final int mode = session.getEngineContext().getMode();\n if (mode == DataEngineContext.MODE_GENERATION || mode == DataEngineContext.MODE_UPDATE) {\n try {\n saveNamingRelation(session.ge... |
"public void testConstructorType9() {\n testTypes(\"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\" + \"String_Node_Str\", \"St... |
"public void channelRead(ChannelHandlerContext ctx, Object msg) {\n logger.info(\"String_Node_Str\" + ctx.channel().hashCode());\n MetricBuilder.requestMeter.mark();\n ByteBuf b = (ByteBuf) msg;\n byte[] dd = new byte[b.readableBytes()];\n b.readBytes(dd);\n ctx.fireChannelRead(msg);\n final APNSEv... |
"public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {\n if (getCurrentObject() == null) {\n initializeRecord(atts);\n }\n if ((null != xPathNode.getXPathFragment() && xPathNode.getXPathFragment().nameIsText()) || xpathNodeIsMixedContent) {\... |
"private void generateSnapshot(FetchedFile f, FetchedResource r, StructureDefinition sd) throws Exception {\n boolean changed = false;\n dlog(\"String_Node_Str\" + sd.getUrl());\n ProfileUtilities utils = new ProfileUtilities(context, f.getErrors(), igpkp);\n StructureDefinition base = sd.hasBaseDefinition(... |
"public String listRoutes() {\n Set<String> allRoutes = new HashSet<String>();\n for (Map<String, Route> routeEntries : routes.values()) {\n allRoutes.addAll(routeEntries.keySet());\n }\n allRoutes = list(allRoutes);\n Collections.sort(allRoutes);\n StringBuilder sb = new StringBuilder();\n ... |
"public void init(Stage stage) throws ServiceException {\n scrollPane.setHbarPolicy(ScrollPane.ScrollBarPolicy.NEVER);\n scrollPane.setVbarPolicy(ScrollPane.ScrollBarPolicy.AS_NEEDED);\n tile.setPadding(new Insets(20, 20, 20, 20));\n tile.setHgap(20);\n tile.setVgap(20);\n LOGGER.info(\"String_Node_St... |
"public List<TypedNamedEntity> disambiguate(Document document) throws GerbilException {\n String text = document.getText();\n StringBuilder requestBuilder = new StringBuilder();\n requestBuilder.append(\"String_Node_Str\");\n try {\n requestBuilder.append(URLEncoder.encode(document.getText(), \"Strin... |
"private static String getSQLWhereClauseString(PoiCategoryFilter filter) {\n Collection<PoiCategory> superCategories = filter.getAcceptedSuperCategories();\n if (superCategories.isEmpty()) {\n return \"String_Node_Str\";\n }\n StringBuilder sb = new StringBuilder();\n sb.append(\"String_Node_Str\"... |
"public boolean handleDrawEvent(GODrawEvent event) {\n if (!containsPoint(event.getDrawPosition())) {\n return false;\n }\n Action action = getActionForDraw(event);\n if (action != null) {\n MapDrawContext context = minimap.getContext();\n float y = context.getScreen().getHeight() / 2;\... |
"public OpenAPI3RouterFactory addSecurityHandler(String securitySchemaName, Handler handler) {\n securityHandlers.addSecurityRequirement(securitySchemaName, handler);\n return this;\n}\n"
|
"public void addUploadRequest(UploadItem uploadItem) {\n logger.info(\"String_Node_Str\");\n if (uploadItem == null || uploadItem.getFileData() == null || uploadItem.getFileData().getFilePath() == null || uploadItem.getFileData().getFilePath().isEmpty()) {\n logger.info(\"String_Node_Str\");\n retur... |
"private VirtualMachineGuru getVmGuru(VirtualMachine vm) {\n if (vm != null)\n return _vmGurus.get(vm.getType());\n return null;\n}\n"
|
"public String toString() {\n return \"String_Node_Str\" + refinement + \"String_Node_Str\" + local + \"String_Node_Str\" + remote + \"String_Node_Str\";\n}\n"
|
"public boolean containsValue(Object value) {\n return (Boolean) invoke(new ClientReplicatedMapContainsValueRequest(getName(), value));\n}\n"
|
"public Graph transform(Graph g) {\n Node[] nodesOld = g.getNodes();\n boolean[] added = new boolean[nodesOld.length];\n int[] degree = new int[nodesOld.length];\n Random rand = new Random();\n int[] out;\n int maxdeg = nodesOld[this.getMaxDegree(nodesOld, rand)].getDegree();\n if (this.maxDegree <... |
"boolean reclaimSomeSurfaceMemoryLocked(WindowStateAnimator winAnimator, String operation, boolean secure) {\n final WindowSurfaceController surfaceController = winAnimator.mSurfaceController;\n boolean leakedSurface = false;\n boolean killedApps = false;\n EventLog.writeEvent(EventLogTags.WM_NO_SURFACE_MEM... |
"public synchronized void selectTab(IChatMessageSender messageSender, ITypingMessageSender typingSender, ID localID, ID userID) {\n selectTab(messageSender, typingSender, localID, userID, getLocalName(userID));\n}\n"
|
"private Set<Long> addPredicateString(String theParamName, Set<Long> thePids, List<? extends IQueryParameterType> theList) {\n if (theList == null || theList.isEmpty()) {\n return thePids;\n }\n if (Boolean.TRUE.equals(theList.get(0).getMissing())) {\n return addPredicateParamMissing(thePids, \"S... |
"public UndoableEditRef<V, E> createEmptyRef() {\n return new UndoableEditRef<V, E>(pool, graph, graphFeatures, serializer, vertexUndoIdBimap, edgeUndoIdBimap, dataStack, featureStore, nonRefEdits);\n}\n"
|
"public void deleteServiceFunctionPath(RenderedServicePath renderedServicePath) {\n printTraceStart(LOG);\n ClientConfig clientConfig = new DefaultClientConfig();\n Client client = Client.create(clientConfig);\n String sfpURI;\n String restURI;\n List<RenderedServicePathHop> renderedServicePathHopList... |
"private void migrateUserRestrictionsForUser(UserHandle user, ActiveAdmin admin, Set<String> exceptionList) {\n final Bundle origRestrictions = mUserManagerInternal.getBaseUserRestrictions(user.getIdentifier());\n final Bundle newBaseRestrictions = new Bundle();\n final Bundle newOwnerRestrictions = new Bundle... |
"public String toString() {\n return String.format(\"String_Node_Str\", fluid, amount, tag);\n}\n"
|
"public void run() {\n if (conn == null)\n throw new RuntimeException(\"String_Node_Str\");\n running = true;\n try {\n while (true) {\n Message m = conn.readMessage();\n if (m instanceof InventoryMessage) {\n processInv((InventoryMessage) m);\n } e... |
"public void mouseDown(MouseEvent e) {\n DataManager dm = getAnalysis().getContext().getConnection();\n if (dm == null) {\n masterPage.doSave(null);\n }\n if (dm != null && dm instanceof Connection) {\n Connection dp = (Connection) dm;\n if (ConnectionUtils.isMdmConnection(dp)) {\n ... |
"void addProtoContact(Contact contact) {\n synchronized (getParentGroupModLock()) {\n if (parentGroup != null)\n parentGroup.lightRemoveMetaContact(this);\n }\n contactsOnline += contact.getPresenceStatus().isOnline() ? 1 : 0;\n this.protoContacts.add(contact);\n default... |
"private static List<ModuleNeeded> collectModuleNeeded(List<IRepositoryViewObject> routineItems, Set<String> routineIdOrNames, boolean system) {\n List<ModuleNeeded> importNeedsList = new ArrayList<ModuleNeeded>();\n if (org.talend.commons.utils.platform.PluginChecker.isOnlyTopLoaded()) {\n return importNe... |
"public void run() {\n StringBuffer outputBuffer = new StringBuffer();\n try {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n String line = null;\n while ((line = reader.readLine()) != null) {\n outputBuffer.append(line + \"String_Node_Str\");\n ... |
"public Value divide(Value v) {\n ValueDecimal dec = (ValueDecimal) v;\n if (dec.value.signum() == 0) {\n throw DbException.get(ErrorCode.DIVISION_BY_ZERO_1, getSQL());\n }\n BigDecimal bd = value.divide(dec.value, value.scale() + DIVIDE_SCALE_ADD, BigDecimal.ROUND_HALF_DOWN);\n if (bd.signum() ==... |
"public ExcerptTailer toStart() throws IOException {\n final long index = queue.firstIndex();\n if (index == -1)\n return this;\n LOG.info(\"String_Node_Str\" + ChronicleQueue.subIndex(index) + \"String_Node_Str\" + ChronicleQueue.cycle(index));\n if (!moveToIndex(index))\n throw new IllegalSt... |
"private static DefUseEffect instanceOf(Instruction s) {\n Operand ref = InstanceOf.getRef(s);\n if (ref.isNullConstant()) {\n Move.mutate(s, INT_MOVE, InstanceOf.getClearResult(s), IC(0));\n return DefUseEffect.MOVE_FOLDED;\n } else if (ref.isConstant()) {\n s.operator = INSTANCEOF_NOTNUL... |
"protected void drawCubic(Canvas c, LineDataSet dataSet, ArrayList<Entry> entries) {\n Transformer trans = mChart.getTransformer(dataSet.getAxisDependency());\n int minx = mMinX;\n int maxx = mMaxX + 2;\n if (maxx > entries.size())\n maxx = entries.size();\n float phaseX = mAnimator.getPhaseX();\n... |
"private void confirmPackage(int idx, String host) {\n PackageTab tab = tabList.get(idx);\n Vector<DownloadLink> linkList = tab.getLinkList();\n int files = linkList.size();\n if (files == 0) {\n return;\n }\n Color c = new Color((int) (Math.random() * 0xffffff));\n c = c.brighter();\n Fi... |
"protected IStatus run(IProgressMonitor monitor) {\n try {\n final Set<Artifact> arts = new HashSet<Artifact>();\n for (Artifact art : artifacts) {\n if (art.isOfType(AtsArtifactTypes.Action)) {\n arts.addAll(ActionManager.getTeams(art));\n } else if (art instanceof... |
"public EconomyResponse depositPlayer(OfflinePlayer player, String worldName, double amount) {\n return depositPlayer(player.getUniqueId().toString(), amount);\n}\n"
|
"protected String getData() {\n openConnection();\n String result = new String();\n try {\n byte[] buffer = new byte[BUFFER_SIZE];\n int count = 0;\n BufferedInputStream bufStream = new BufferedInputStream(stream, BUFFER_SIZE);\n if (bufStream != null)\n while ((count = b... |
"public View onCreateView2(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.scene_favorites, container, false);\n ContentLayout contentLayout = (ContentLayout) view.findViewById(R.id.content_layout);\n MainActivity activity = getActivity2();\n ... |
"public void storeInBundle(Bundle bundle) {\n super.storeInBundle(bundle);\n bundle.put(BEAM_TARGET, beamTarget);\n bundle.put(BEAM_COOLDOWN, beamCooldown);\n bundle.put(BEAM_CHARGED, beamCharged);\n}\n"
|
"private Error verifyConstraints() {\n ExpectedInvocation lastInvocation = expectationsInReplayOrder.get(replayIndex).invocation;\n Object[] lastArgs = invocationArgumentsInReplayOrder.get(replayIndex);\n return verification.verifyConstraints(lastInvocation, lastArgs, 1, -1);\n}\n"
|
"public boolean remove(short key) {\n int i = binarySearch(0, size, key);\n if (i >= 0) {\n removeAtIndex(i);\n return true;\n }\n return false;\n}\n"
|
"public double[][] learn(double[] x, double[] y) {\n try {\n lambda = Double.parseDouble(lambdaField.getText().trim());\n if (lambda < 0.0) {\n JOptionPane.showMessageDialog(this, \"String_Node_Str\" + lambda, \"String_Node_Str\", JOptionPane.ERROR_MESSAGE);\n return null;\n ... |
"private static String extractPathInfo(final HttpServletRequest servletRequest) {\n String pathInfoString;\n final String requestUri = servletRequest.getRequestURI();\n pathInfoString = requestUri;\n int index = requestUri.indexOf(servletRequest.getContextPath());\n if (index >= 0) {\n pathInfoStr... |
"public boolean onTouchEvent(MotionEvent event) {\n int touchCount = event.getPointerCount();\n switch(event.getAction()) {\n case MotionEvent.ACTION_DOWN:\n case MotionEvent.ACTION_POINTER_1_DOWN:\n case MotionEvent.ACTION_POINTER_2_DOWN:\n if (touchCount >= 2) {\n ... |
"ParsedCommand handleCommandString(Player player, String command, RunMode mode) throws SMSException {\n if (player != null) {\n ItemStack stack = player.getItemInHand();\n command = command.replace(\"String_Node_Str\", \"String_Node_Str\" + player.getLocation().getBlockX());\n command = command.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.