content
stringlengths
40
137k
"public static TextEncodingDetails calculateLength(CharSequence messageBody, boolean use7bitOnly) {\n return BearerData.calcTextEncodingDetails(messageBody, use7bitOnly);\n}\n"
"private IOPort _getConnectedOutputPort(IOPort inputPort) {\n IOPort outputPort = null;\n for (Iterator inputPorts = inputPort.sourcePortList().iterator(); inputPorts.hasNext(); ) {\n IOPort port = (IOPort) inputPorts.next();\n if (port.isOutput()) {\n if (port.getContainer() instanceof S...
"public void run() {\n long currentTime = System.currentTimeMillis();\n double timeStep = ((double) currentTime - m_lastAutoUpdateTime) / 1000.0;\n timeStep = timeStep <= 0.0 ? .00001 : timeStep;\n timeStep = timeStep > 1.0 ? 1.0 : timeStep;\n update(timeStep, currentTime);\n m_lastAutoUpdateTime = cu...
"public void start() throws IOException {\n log = Logger.getLogger(StressTestcase.class.getName());\n LogHandler.initLogFileHandler(log, StressTestcase.class.getSimpleName());\n Map<String, QueryTestcase> threadPool = new HashMap<String, QueryTestcase>();\n log.info(\"String_Node_Str\");\n long timeLimit...
"protected HudsonFixture getDefault() {\n return DEFAULT;\n}\n"
"private static void _incrementBaseDimensionExponent(Map<BaseDimensionRepresentativeConcept, Integer> baseDimensionsMap, BaseDimensionRepresentativeConcept dimension, int exponentValue) throws IllegalActionException {\n Integer currentExponent = baseDimensionsMap.get(dimension);\n if (currentExponent == null) {\n...
"public void run() {\n recordStore.putBackup(dataKey, dataValue, ttl, false);\n if (unlockKey) {\n recordStore.forceUnlock(dataKey);\n }\n}\n"
"protected MessageTuple getMessage(int timeoutMs) throws TimeoutException, InterruptedException {\n while (true) {\n MessageTuple tuple = messageQueue.poll(timeoutMs, TimeUnit.MILLISECONDS);\n if (tuple == null) {\n throw new TimeoutException(\"String_Node_Str\");\n } else if (tuple =...
"protected Map buildExceptionDests(ThrowAnalysis throwAnalysis) {\n class TrapRecord {\n Trap trap;\n RefType caughtType;\n boolean active;\n TrapRecord(Trap trap) {\n this.trap = trap;\n this.caughtType = RefType.v(trap.getException());\n active = false;\...
"public void testDecodeFromBase64() {\n System.out.println(\"String_Node_Str\");\n Encoder instance = ESAPI.encoder();\n for (int i = 0; i < 100; i++) {\n try {\n byte[] r = ESAPI.randomizer().getRandomString(20, EncoderConstants.CHAR_SPECIALS).getBytes(PREFERRED_ENCODING);\n Strin...
"public int getKeyIndexAndNearbyCodes(int x, int y, final int[] allCodes) {\n final List<Key> keys = getKeys();\n final int touchX = getTouchX(x);\n final int touchY = getTouchY(y);\n initializeNearbyKeys();\n int primaryIndex = NOT_A_KEY;\n for (final int index : mKeyboard.getNearestKeys(touchX, touc...
"public void buildDruidQuery(Configuration conf, HiveConf hconf) throws SemanticException, LensException {\n analyzeInternal(conf, hconf);\n if (resolveNativeTables) {\n replaceWithUnderlyingStorage(hconf);\n }\n String limit = getLimitClause(ast);\n ArrayList<String> filters = new ArrayList<>();\...
"private String stringFromTimestamp(Timestamp sourceDate, QName schemaType) {\n if (XMLConstants.DATE_QNAME.equals(schemaType)) {\n GregorianCalendar cal = new GregorianCalendar(getTimeZone());\n cal.setGregorianChange(new Date(Long.MIN_VALUE));\n cal.setTime(sourceDate);\n XMLGregorianCa...
"public void logTAP(final LogLevel level, final Object obj, final String event, final String message, final Throwable error) {\n String jobId = null, msgAppend = null;\n try {\n if (event != null && obj != null) {\n if (event.equals(\"String_Node_Str\"))\n msgAppend = \"String_Nod...
"public ServiceType getServiceType() {\n final ServiceType copy = this.serviceType;\n if (copy != null) {\n return copy;\n }\n DataSourceMonitor dataSourceMonitor = getInstance();\n if (dataSourceMonitor != null) {\n ServiceType serviceType = dataSourceMonitor.getServiceType();\n if ...
"public LoggerLevel getObject() {\n return item.getModelObject().getLevel();\n}\n"
"public int getItemViewType(int position) {\n if (position == 1)\n return VIEW_TYPES.FIRST_VIEW;\n return position == 0 && mHeader != null ? VIEW_TYPES.HEADER : VIEW_TYPES.NORMAL;\n}\n"
"public void modifyText(final ModifyEvent e) {\n getConnection().setEncoding(encodingCombo.getText());\n checkFilePathAndManageIt(false);\n}\n"
"public void setWasDerivedFrom(URI wasDerivedFrom) throws SBOLValidationException {\n if (sbolDocument != null) {\n sbolDocument.checkReadOnly();\n if (!SBOLValidate.checkWasDerivedFromVersion(sbolDocument, this, wasDerivedFrom)) {\n throw new SBOLValidationException(\"String_Node_Str\", thi...
"public void calculateInnerMatrix() {\n synchronized (this) {\n PMatrix3D invMatrix = new PMatrix3D();\n invMatrix.apply(innerMatrix);\n invMatrix.invert();\n float originalCenterX = invMatrix.multX(innerTransformationCenter.x, innerTransformationCenter.y);\n float originalCenterY ...
"protected void updateListWidget() {\n if (listViewer == null || listViewer.getTable().isDisposed()) {\n return;\n }\n}\n"
"private void renderFinalStereoImage(RenderingStage renderingStage) {\n switch(renderingStage) {\n case LEFT_EYE:\n vrProvider.updateState();\n leftEyeFbo.bind();\n glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);\n renderFullscreenQuad();\n break;\n ...
"public void testStatementPeriodMONTHLY() {\n Calendar date = Calendar.getInstance();\n Calendar aCalendar = Calendar.getInstance();\n date = Calendar.getInstance();\n date.set(Calendar.DATE, QuotaStatementImpl.s_LAST_STATEMENT_SENT_DAYS + 1);\n Calendar[] period = quotaStatement.statementTime(date, Quot...
"public WorldInfo loadWorldInfo() {\n File file1 = new File(this.worldDirectory, \"String_Node_Str\");\n File file2 = new File(this.worldDirectory, \"String_Node_Str\");\n File spongeFile = new File(this.worldDirectory, \"String_Node_Str\");\n File spongeOldFile = new File(this.worldDirectory, \"String_Node...
"private void labelSimulationUpdate() {\n Set<ELDescriptionNode> update = new HashSet<ELDescriptionNode>();\n Set<ELDescriptionNode> tmp = tree.getNodesOnLevel(level);\n for (ELDescriptionNode w : tmp) {\n if (w != this) {\n if (!inSC1.contains(w) && tree.checkSC1(this, w)) {\n ...
"public boolean activateContainer(Player p, boolean silentchest, org.bukkit.block.Block b) {\n EntityPlayer player = ((CraftPlayer) p).getHandle();\n if (silentchest && b.getType() == Material.ENDER_CHEST) {\n p.openInventory(p.getEnderChest());\n player.b(StatisticList.X);\n return true;\n ...
"public void testSubQuery3() throws Exception {\n ICubeQueryDefinition cqd = new CubeQueryDefinition(cubeName);\n IEdgeDefinition columnEdge = cqd.createEdge(ICubeQueryDefinition.COLUMN_EDGE);\n IEdgeDefinition rowEdge = cqd.createEdge(ICubeQueryDefinition.ROW_EDGE);\n IDimensionDefinition dim1 = columnEdge...
"private void init(final Locale locale) {\n Class<?> c = null;\n try {\n c = Class.forName(\"String_Node_Str\");\n } catch (final Exception e) {\n c = Collator.class;\n }\n try {\n final Method m = c.getDeclaredMethod(\"String_Node_Str\", new Class[] { Locale.class });\n colla...
"public Response updateCatalogEntry(List<PathSegment> path, CatalogEntryVO entryVo, HttpServletRequest httpRequest, UriInfo uriInfo) {\n if (!isAuthor(httpRequest)) {\n return Response.serverError().status(Status.UNAUTHORIZED).build();\n }\n Long key = getCatalogEntryKeyFromPath(path);\n if (key == n...
"public String getColumnHeading(int iIndex) throws IllegalArgumentException {\n if (fHeadings == null || iIndex >= fHeadings.size()) {\n throw new IllegalArgumentException(Messages.getString(\"String_Node_Str\", String.valueOf(iIndex)));\n }\n return fHeadings.get(iIndex).getName();\n}\n"
"public static void setLocaleName(HttpSession session, String name) {\n session.setAttribute(LOCALE_KEY, name);\n session.removeAttribute(MSG);\n}\n"
"private void start(File destDir, String address, String port, String heapsize, String stacksize, String permsize, String jvmPath, String homedir) {\n try {\n String command = \"String_Node_Str\";\n if (jvmPath.equalsIgnoreCase(\"String_Node_Str\")) {\n command = \"String_Node_Str\";\n ...
"public void formatTxt() {\n if (txt == null) {\n return;\n } else if (datatype.equals(Data.DATE)) {\n txt = ExcelUtil.formatDate(txt);\n } else if (datatype.equals(Data.NUMBER)) {\n Number number = (Number) txt;\n if (ExcelUtil.isBigNumber(number)) {\n txt = ExcelUtil.fo...
"public int Initialize(int BlockId) {\n RenderId = cpw.mods.fml.client.registry.RenderingRegistry.getNextAvailableRenderId();\n cpw.mods.fml.client.registry.RenderingRegistry.registerBlockHandler(this);\n net.minecraftforge.client.MinecraftForgeClient.registerItemRenderer(new ItemBlock(block), this);\n retu...
"public void shouldValidateToFalseWhenRawToProfileandNot8ParametersGRversion() {\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_St...
"public void execute() throws BuildException {\n if (null == jar && null == filesets) {\n throw new BuildException(\"String_Node_Str\");\n }\n if (null != jar) {\n doOneJar(jar, signedjar);\n return;\n } else {\n for (int i = 0; i < filesets.size(); i++) {\n FileSet fs...
"protected void layout() {\n health.visible = !Float.isNaN(healthLvl);\n imIcon.x = x;\n imIcon.y = y;\n tfLabel.x = PixelScene.align(PixelScene.uiCamera, imIcon.x + imIcon.width() + GAP);\n tfLabel.maxWidth = (int) (width - tfLabel.x);\n tfLabel.measure();\n tfLabel.y = PixelScene.align(PixelScene...
"public PropertySetter createPropertySetter(Class c, String propName) {\n String p = S.capFirst(propName);\n String setter = \"String_Node_Str\" + p;\n String isser = \"String_Node_Str\" + p;\n Method[] ma = c.getMethods();\n for (Method m : ma) {\n String mn = m.getName();\n if (S.neq(sett...
"public static Fill[] createDifferenceFillFromPalette(Fill paletteEntry, boolean isColor) {\n Fill fillColorP = null;\n Fill fillColorN = null;\n if (paletteEntry instanceof ColorDefinition) {\n fillColorP = goFactory.copyOf((ColorDefinition) paletteEntry);\n fillColorN = goFactory.copyOf((ColorD...
"public Date getDateOfCreation() {\n return new Date((Long) entity.getProperty(DATE_OF_CREATION_KEY));\n}\n"
"public BerTlvBuilder addAmount(BerTag aObject, BigDecimal aAmount) {\n BigDecimal numeric = aAmount.multiply(HUNDRED);\n StringBuilder sb = new StringBuilder(12);\n sb.append(numeric.longValue());\n while (sb.length() < 12) {\n sb.insert(0, '0');\n }\n return addHex(aObject, sb.toString());\n}...
"public List<RepositoryItem> findRepositoryItemsByAttValue(String attributeName, String value) {\n return createItemsForIds(metadata.findByAttValue(attributeName, value));\n}\n"
"public BeanDefinition parse(Element element, ParserContext parserContext) {\n BeanDefinitionBuilder beanBuilder = BeanDefinitionBuilder.genericBeanDefinition(JdbcConnectionRepository.class);\n String dataSource = element.getAttribute(\"String_Node_Str\");\n beanBuilder.addConstructorArgReference(dataSource);\...
"private List getRepeatedParameter(HttpServletRequest request, String param) {\n List vals = new LinkedList();\n int i = 0;\n boolean foundLast = false;\n while (!foundLast) {\n String s = request.getParameter(param + \"String_Node_Str\" + i);\n if (s != null) {\n vals.add(s.trim())...
"public String getColumnText(Object element, int columnIndex) {\n String value = ((String) element);\n if (columnIndex == 0) {\n return value;\n }\n throw new IllegalStateException();\n}\n"
"public XMLMapping generateCollectionMappingForReferenceProperty(ReferenceProperty property, XMLDescriptor descriptor, NamespaceInfo namespaceInfo) {\n XMLChoiceCollectionMapping mapping = new XMLChoiceCollectionMapping();\n mapping.setAttributeName(property.getPropertyName());\n if (property.isMethodProperty(...
"public void resetHandlers() {\n TestResponseExceptionMapper.reset();\n TestResponseExceptionMapperHandles.reset();\n getWireMockServer().stubFor(get(urlEqualTo(\"String_Node_Str\")).willReturn(aResponse().withBody(\"String_Node_Str\")));\n}\n"
"public static DividerSnapAlgorithm create(Context ctx, Rect insets) {\n DisplayInfo displayInfo = new DisplayInfo();\n ctx.getSystemService(DisplayManager.class).getDisplay(Display.DEFAULT_DISPLAY).getDisplayInfo(displayInfo);\n int dividerWindowWidth = ctx.getResources().getDimensionPixelSize(com.android.int...
"public void generatePom(int option) {\n if (buildChildrenJobs != null) {\n buildChildrenJobs.clear();\n }\n if (ProcessorUtilities.isGeneratePomOnly()) {\n ProcessorUtilities.resetExportConfig();\n } else {\n initJobClasspath();\n }\n try {\n IMavenPomCreator createTemplat...
"public BitarchiveRecord get(String arcFile, long index) {\n final Map<String, Object> metadata = new HashMap<String, Object>();\n for (String header_field : (List<String>) ARCConstants.REQUIRED_VERSION_1_HEADER_FIELDS) {\n metadata.put(header_field, \"String_Node_Str\");\n }\n metadata.put(ARCConsta...
"public static VirtualPath transformToSentinel2VirtualPath(Path path) {\n VirtualPath virtualPath;\n if (VirtualDirEx.isPackedFile(path.toFile())) {\n VirtualDirEx virtualDirEx = VirtualDirEx.create(path.toFile());\n String folderName = PathUtils.getFileNameWithoutExtension(path);\n if (!fold...
"public NavNode getLatestNavNode(ComponentNode node) {\n Node parent = node.getOwningNavNode();\n for (Node nav : getHead().getChildren()) {\n if (parent.getComponentType().equals(nav.getComponentType()))\n return (NavNode) nav;\n }\n return null;\n}\n"
"public static void addDim1Table(String tableName, String specName, String storageSpecName, String storageName) {\n LensDimensionTableCommands command = getCommand();\n String dimList = command.showDimensionTables();\n Assert.assertEquals(\"String_Node_Str\", dimList, \"String_Node_Str\");\n TestLensStorage...
"private void createNavigationProperties(List<EdmAssociation.Builder> associations, List<EdmAssociationSet.Builder> associationSets, Map<String, EdmEntityType.Builder> entityTypesByName, Map<String, EdmEntitySet.Builder> entitySetByName, Map<Class<?>, String> entityNameByClass) {\n for (String entitySetName : eis.ke...
"public void testBasics() throws IOException {\n KylinConfig testConfig = getTestConfig();\n CubeManager cubeManager = CubeManager.getInstance(testConfig);\n if (cubeManager.getCube(CUBE_NAME) != null) {\n cubeManager.dropCube(CUBE_NAME, false);\n }\n CubeDescManager cubeDescManager = CubeDescMana...
"private static boolean readActionListAtPos(List<DisassemblyListener> listeners, List<GraphTargetItem> output, HashMap<Long, List<GraphSourceItemContainer>> containers, long address, long containerSWFOffset, boolean notCompileTime, boolean enableVariables, List<Object> localData, Stack<GraphTargetItem> stack, ConstantP...
"public ItemStack getStackInSlot(ItemStack me, int slot) {\n NBTTagCompound plateNBT = getPlateNBT(me);\n if (plateNBT != null) {\n return new ItemStack(plateNBT.getCompoundTag(\"String_Node_Str\"));\n }\n return ItemStack.EMPTY;\n}\n"
"private Optional<DataHubKey> findFirstDifferentResult(DataHubKey inputKey, QueryResult<OrderedRows<String, String, DataHubCompositeValue>> queryResult, boolean reversed) {\n OrderedRows<String, String, DataHubCompositeValue> rows = queryResult.get();\n List<Row<String, String, DataHubCompositeValue>> sortedRows ...
"private static List<ElementParameter> getParametersFromForm(IElement element, EComponentCategory category, ComponentProperties rootProperty, ComponentProperties compProperties, String parentPropertiesPath, Form form, Widget parentWidget, AtomicInteger lastRowNum) {\n List<ElementParameter> elementParameters = new A...
"public boolean setPhaseOption(String phase, String option) {\n return PhaseOptions.v().processPhaseOptions(phase, option);\n}\n"
"public void doRun() throws Exception {\n p.setVisibility(Playlist.VIS_ALL);\n showSheet(new PostToTwitterSheet(RobonoboFrame.this, p));\n control.updatePlaylist(p);\n}\n"
"public VehicleState computeInitialState() {\n if (this.updater == null)\n return null;\n try {\n try {\n Observation.remove(simulationName);\n initialObs = Observation.createObservation(this.simulationName, this.simParameters.getStartTime(), this.simParameters.getStartCoordina...
"public StatisticsContingencyTable getContingencyTable(int column1, int size1, Hierarchy hierarchy1, int column2, int size2, Hierarchy hierarchy2) {\n if (size1 <= 0 || size2 <= 0)\n throw new IllegalArgumentException(\"String_Node_Str\");\n StatisticsContingencyTable table = getContingencyTable(column1, h...
"public void testRels1() throws Exception {\n initializeStores();\n startTx();\n int relType1 = ds.nextId(RelationshipType.class);\n relTypeStore.addRelationshipType(relType1, \"String_Node_Str\");\n int[] nodeIds = new int[3];\n for (int i = 0; i < 3; i++) {\n nodeIds[i] = ds.nextId(Node.class...
"public CreativeTabs getCreativeTabs(BlockType type) {\n return creativeTab;\n}\n"
"public Response getResponse(HttpServletResponse response) throws IOException {\n if (!OpenApiService.getInstance().isEnabled()) {\n response.sendError(FORBIDDEN.getStatusCode(), \"String_Node_Str\");\n return Response.status(FORBIDDEN).build();\n }\n OpenAPI document = null;\n try {\n ...
"public final int getBlock(int x, int y, int z) {\n int chunkPosX = calcChunkPosX(x) % (int) Configuration.viewingDistanceInChunks.x;\n int chunkPosY = calcChunkPosY(y) % (int) Configuration.viewingDistanceInChunks.y;\n int chunkPosZ = calcChunkPosZ(z) % (int) Configuration.viewingDistanceInChunks.z;\n int ...
"public static void SaveState(android.content.Context ctx, boolean SaveLib) {\n ResetState(ctx);\n java.io.FileOutputStream CurSave;\n try {\n final String StateName = SaveLib ? SavedLibName : SavedStateName;\n ctx.deleteFile(StateName);\n CurSave = ctx.openFileOutput(StateName, ctx.MODE_W...
"public void showConnectivityError() {\n ProgressBar progress = (ProgressBar) view.findViewById(R.id.progress);\n final FrameLayout errorView = (FrameLayout) view.findViewById(R.id.error_view);\n errorView.removeAllViews();\n View connError = getActivity().getLayoutInflater().inflate(R.layout.error_connecti...
"public void run() {\n AutotoolsConfigurationManager.getInstance().syncConfigurations(project);\n ICConfigurationDescription cfgds = CoreModel.getDefault().getProjectDescription(project).getActiveConfiguration();\n if (cfgds != null) {\n IAConfiguration iaConfig = AutotoolsConfigurationManager.getInstan...
"public void setQuick(int index, double value) {\n Vector v = rowToColumn ? matrix.viewColumn(index) : matrix.viewRow(index);\n if (v == null) {\n v = newVector(numCols);\n matrix.assignRow(index, v);\n }\n v.setQuick(transposeOffset, value);\n}\n"
"private List generateLevelFilters(AggregationDefinition[] aggregations, IAggregationResultSet[] resultSet) throws IOException, DataException {\n List levelFilterList = new ArrayList();\n for (Iterator i = aggrFilters.iterator(); i.hasNext(); ) {\n AggrFilter filter = (AggrFilter) i.next();\n for (i...
"public static void main(String[] args) throws Exception {\n config = getUpdatedConfig(config);\n config.junitVersion = JUnitVersion.version4;\n boolean hasFirstArg = (args != null && args.length > 0 && args[0] != null);\n String dirOrFile = hasFirstArg ? args[0] : config.directoryPathOfProductSourceCode;\n...
"private synchronized void informMesh(RemoteFileDesc rfd, boolean good) {\n if (!rfd.isAltLocCapable())\n return;\n AlternateLocation loc = null;\n try {\n loc = AlternateLocation.create(rfd);\n } catch (IOException iox) {\n return;\n }\n for (Iterator iter = dloaders.iterator(); ...
"private List<ExecutionVertex> findRestarts(ExecutionVertex failed) {\n LOG.info(\"String_Node_Str\");\n ArrayList<ExecutionVertex> restart = new ArrayList<ExecutionVertex>();\n Queue<ExecutionVertex> totest = new ArrayDeque<ExecutionVertex>();\n ArrayList<ExecutionVertex> visited = new ArrayList<ExecutionV...
"public void onSuccess() {\n Log.v(TAG, \"String_Node_Str\");\n if (mAttacher != null) {\n Log.v(TAG, \"String_Node_Str\");\n mAttacher.update();\n } else {\n Log.v(TAG, \"String_Node_Str\");\n mAttacher = new PhotoViewAttacher(mImgDisplay);\n mAttacher.setOnViewTapListener(n...
"public GerritSystemInfo getInfo(IProgressMonitor monitor) throws GerritException {\n List<ContributorAgreement> contributorAgreements = null;\n Account account = null;\n if (!isAnonymous()) {\n account = execute(monitor, new GerritOperation<Account>() {\n\n public void execute(IProgressMonitor m...
"public void testSelectOverloadUnion2() throws TypeMismatchException {\n FunctionType intFn = makeSimpleFT(Types.F_INT);\n FunctionType floatFn = makeSimpleFT(Types.F_FLOAT);\n FnID intFnID = new FnID(\"String_Node_Str\", \"String_Node_Str\");\n FnID floatFnID = new FnID(\"String_Node_Str\", \"String_Node_S...
"public InputSource resolveEntity(String name, String publicId, String baseURI, String systemId) throws SAXException, IOException {\n URL url = baseURI != null ? new URL(new URL(baseURI), systemId) : new URL(systemId);\n URLConnection connection = url.openConnection();\n if (!(connection instanceof HttpURLConn...
"public Object getValue(String exprName) throws BirtException {\n checkStarted();\n logger.logp(Level.FINE, ResultIterator.class.getName(), \"String_Node_Str\", \"String_Node_Str\" + LogUtil.toString(exprName));\n if (this.resultService.getBindingExpr(exprName) == null && this.resultService.getAutoBindingExpr(...
"public void toggleGUI(Player p) {\n final SpoutPlayer sp = SpoutManager.getPlayer(p);\n if (!sp.isSpoutCraftEnabled())\n return;\n if (hasActiveGUI(sp)) {\n SpoutViewPopup gui = getActiveGUI(sp);\n if (gui.getView() != this) {\n gui.getView().hideGUI(sp);\n Bukkit.ge...
"private void parse(ParseContext context) {\n char c = context.getCharAtPos();\n if (context.inState(State.INSIDE_COMMENT)) {\n if (c == '\\n') {\n context.addTokenAndResetText();\n context.switchTo(State.CODE);\n return;\n } else {\n context.appendCharToT...
"public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n boolean checked = ((BasicListCard) card).isItemChecked(((BasicListCard) card).getItems().get(position));\n ((BasicListCard) card).setItemChecked(position, !checked);\n}\n"
"protected void initCoords() {\n try {\n if (ca1 == null || ca2 == null) {\n if (structure != null)\n setStructure(structure);\n else {\n return;\n }\n }\n Structure artificial = AlignmentTools.getAlignedStructure(ca1, ca2);\n ...
"public void addInput(TransactionInput input) {\n unCache();\n input.setParent(this);\n inputs.add(input);\n adjustLength(inputs.size(), input.length);\n}\n"
"private void refreshDataPointButtons() {\n btnFormatSpecifier.setEnabled(lstComponents.getSelectionIndex() != -1);\n btnRemoveComponent.setEnabled(lstComponents.getSelectionIndex() != -1);\n boolean formatEnable = (lstComponents.getSelectionIndex() != -1);\n if (formatEnable) {\n DataPointComponentT...
"public JSObjectMetaData getVariableMeta(String variableName) {\n if (objectMetaMap.containsKey(variableName)) {\n return objectMetaMap.get(variableName);\n } else {\n return getEnginJSObject(variableName);\n}\n"
"public TemplateModelIterator iterator() {\n final ArrayList matchingInputParts = this.matchingInputParts;\n if (matchingInputParts == null) {\n final Matcher matcher = pattern.matcher(input);\n return new TemplateModelIterator() {\n\n boolean hasFindInfo = matcher.find();\n public boo...
"private static synchronized void cleanDatabase(Flyway flyway, DataSource dataSource) throws SQLException {\n try {\n flyway.clean();\n Connection connection = null;\n try {\n connection = dataSource.getConnection();\n DatabaseMetaData meta = connection.getMetaData();\n ...
"public void run() {\n getAdapter().markEntryExist(pos, true);\n}\n"
"public void testBasicCrud() {\n String addressToMethodCall = \"String_Node_Str\";\n serviceBundle.addService(employeeService);\n call = factory.createMethodCallByAddress(addressToMethodCall, returnAddress, rick, params);\n doCall();\n response = responseReceiveQueue.pollWait();\n Exceptions.requireNo...
"public boolean handleAttribute(DDParser parser, String nsURI, String localName, int index) throws ParseException {\n if (nsURI == null || XMLConstants.NULL_NS_URI.equals(nsURI)) {\n if (parser.version >= 24 && \"String_Node_Str\".equals(localName)) {\n version = parser.parseTokenAttributeValue(ind...
"final long entrySize(long keySize, long valueSize) {\n long sizeOfEverythingBeforeValue = sizeOfEverythingBeforeValue(keySize, valueSize);\n return innerEntrySize(sizeOfEverythingBeforeValue, valueSize);\n}\n"
"public static String mangle(String url) {\n return url.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n}\n"
"private void CopyTheJarFile() {\n try {\n File sourceFile = null;\n try {\n URL resource = CWMPlugin.getDefault().getBundle().getResource(\"String_Node_Str\" + Path.SEPARATOR + \"String_Node_Str\");\n System.out.println(resource.toString());\n fileURL = FileLocator.toF...
"public String toString(ConstantPool constants) {\n String ret;\n ret = hilight(\"String_Node_Str\") + className.toStringNoQuotes(Helper.toList(constants));\n if (extendsOp != null) {\n ret += hilight(\"String_Node_Str\") + extendsOp.toStringNoQuotes(Helper.toList(constants));\n }\n if (!implement...
"private void updateNamed() {\n EntityManager em = emf.createEntityManager();\n UUID timeLineId = UUID.randomUUID();\n Date currentDate = new Date();\n MongoCompoundKey key = new MongoCompoundKey(\"String_Node_Str\", 1, timeLineId);\n MongoPrimeUser user = new MongoPrimeUser(key);\n user.setTweetBody(...
"public InstanceCollection getInstances(String workspaceId, String ciId, String configSpecType, String path) {\n try {\n ConfigurationItemKey ciKey = new ConfigurationItemKey(workspaceId, ciId);\n ConfigSpec cs = new LatestConfigSpec();\n String[] partUsageIdsString = path.split(\"String_Node_St...
"public void actionPerformed(ActionEvent e) {\n if (tool == currentTool) {\n toolbar.clearSelection();\n unselect();\n } else {\n select(tool);\n propertiesBar.select(toolUI.getPropertiesBar(tool));\n }\n}\n"
"public void getGradient(int[] batch, double[] g) {\n this.gradient.zero();\n if (prm.numThreads == 1) {\n for (int i = 0; i < batch.length; i++) {\n log.trace(\"String_Node_Str\" + batch[i]);\n addGradientForExample(batch[i], gradient);\n }\n } else {\n TaskFactory<O...