content
stringlengths
40
137k
"protected void onLayout(boolean changed, int left, int top, int right, int bottom) {\n int width = right - left;\n int x = 0;\n for (View v : new View[] { findViewById(R.id.image1), findViewById(R.id.image2), findViewById(R.id.image3) }) {\n v.layout(x, 0, x + width, bottom);\n x += (width + sPa...
"public void parcelsCorrectly() throws JSONException {\n PaymentMethodToken paymentMethodToken = mock(PaymentMethodToken.class);\n when(paymentMethodToken.getToken()).thenReturn(stringFromFixture(\"String_Node_Str\"));\n UserAddress billingAddress = getAddressObject();\n UserAddress shippingAddress = getAdd...
"public static List<String> getTargetMethods(String source, boolean publicRequired, boolean protectedRequired, boolean packageLocalRequired) {\n source = source.replaceAll(\"String_Node_Str\" + STR.COMMA, STR.COMMA).replaceAll(STR.COMMA + \"String_Node_Str\", STR.COMMA).replaceAll(\"String_Node_Str\", \"String_Node_...
"public RealMatrix getD() {\n if (cachedD == null) {\n cachedD = MatrixUtils.createRealDiagonalMatrix(realEigenvalues);\n for (int i = 0; i < imagEigenvalues.length; i++) {\n if (Precision.compareTo(imagEigenvalues[i], 0.0, EPSILON) > 0) {\n cachedD.setEntry(i, i + 1, imagEige...
"public boolean skipTo(int target) throws IOException {\n if (doc == 0 || target > spans.doc())\n more = spans.skipTo(target);\n return advance();\n}\n"
"public Map<K, V> getAll(Set<? extends K> keys, ExpiryPolicy expiryPolicy) {\n long startNanos = nowInNanosOrDefault();\n ensureOpen();\n checkNotNull(keys, NULL_KEY_IS_NOT_ALLOWED);\n if (keys.isEmpty()) {\n return emptyMap();\n }\n int keysSize = keys.size();\n List<Data> dataKeys = new Li...
"protected IConnectWizard createConnectWizard() {\n final URI uri = getURI();\n String authAndPath = uri.getSchemeSpecificPart();\n while (authAndPath.startsWith(\"String_Node_Str\")) authAndPath = authAndPath.substring(1);\n String fragment = uri.getFragment();\n if (fragment != null) {\n StringB...
"Query createQuery(String jpaQuery, final String persistenceUnit) {\n Client client = getClient(persistenceUnit);\n EntityMetadata metadata = KunderaMetadataManager.getMetamodel(client.getPersistenceUnit()).getEntityMetadataMap().values().iterator().next();\n Query query = new QueryResolver().getQueryImplement...
"public static void startServer() throws Exception {\n orchestrator.resetData();\n createReportsWithAbsolutePath();\n SonarScanner build = SonarScanner.create().setProjectDir(PROJECT_DIR).setProjectKey(\"String_Node_Str\").setProjectName(\"String_Node_Str\").setProjectVersion(\"String_Node_Str\").setSourceDirs...
"public GRCandidateProgram[] crossover(CandidateProgram p1, CandidateProgram p2) {\n GRCandidateProgram program1 = (GRCandidateProgram) p1;\n GRCandidateProgram program2 = (GRCandidateProgram) p2;\n GRCandidateProgram child1 = (GRCandidateProgram) program1.clone();\n GRCandidateProgram child2 = (GRCandidate...
"public void testGetPercentageStr_undefined() {\n Ratio ratio = Ratio.create(1.0f, 0.0f);\n assertEquals(\"String_Node_Str\", ratio.getPercentageStr());\n ratio = Ratio.create(1.0f, -50.0f);\n assertEquals(\"String_Node_Str\", ratio.getPercentageStr());\n}\n"
"public void map(PactRecord record, Collector out) throws Exception {\n Tuple inputTuple = record.getField(1, Tuple.class);\n float price = Float.parseFloat(inputTuple.getStringValueAt(5)) * (1 - Float.parseFloat(inputTuple.getStringValueAt(6)));\n inputTuple.project((0 << 0) | (1 << 1) | (1 << 2) | (0 << 3) |...
"public void addCharacter(List<Tag> tags, char character, String fontName) {\n int fontStyle = getFontStyle();\n FontType font = fonts.get(0);\n SHAPE shp = SHAPERECORD.systemFontCharacterToSHAPE(fontName, fontStyle, 20 * font.nominalSize, character);\n int code = (int) character;\n int pos = -1;\n fo...
"private JPanel constructView() {\n final JTextField filterTextField = new JTextField();\n final MatcherEditor textFilterMatcherEditor = new ThreadedMatcherEditor(new TextComponentMatcherEditor(filterTextField, null));\n StatusMatcherEditor statusMatcherEditor = new StatusMatcherEditor(issuesEventList);\n S...
"public void testStuff() {\n BigEndianString16Type type = new BigEndianString16Type();\n byte[] bytes = new byte[] { 1, 'a', 2, 'b' };\n char[] value = (char[]) type.extractValueFromBytes(0, bytes, true);\n assertEquals(\"String_Node_Str\", new String(value));\n}\n"
"public void visitMethodCallNode(ASTPtMethodCallNode node) throws IllegalActionException {\n Type[] childTypes = _inferAllChildren(node);\n if (childTypes.length == 1 && childTypes[0] instanceof RecordType) {\n RecordType type = (RecordType) childTypes[0];\n if (type.labelSet().contains(node.getMeth...
"protected void handeAmpConfigDirectory(AmpPackagingContext context) throws MojoExecutionException {\n if (!context.getAmpConfigDirectory().exists()) {\n context.getLog().debug(\"String_Node_Str\");\n } else {\n if (!context.getAmpConfigDirectory().getAbsolutePath().equals(context.getAmpDirectory()....
"public Dependencies makeSootClass(SootClass sc, String className) {\n if (Util.isByteCodeClassName(className)) {\n className = Util.dottedClassName(className);\n }\n try {\n for (String dexEntry : dexContainer.getDexEntryNames()) {\n DexFile dexFile = dexContainer.getEntry(dexEntry);\...
"public IStyledString.IComposedStyledString getStyledText(Object object) {\n final UMLDiff umlDiff = (UMLDiff) object;\n Stereotype stereotype = ((StereotypeApplicationChange) umlDiff).getStereotype();\n if (stereotype == null) {\n stereotype = UMLUtil.getStereotype(umlDiff.getDiscriminant());\n }\n ...
"public Writer buildDeletionWriter(AbstractSession session, Writer writer) throws ValidationException {\n if (shouldDropTableDefinition()) {\n return tableDefinition.buildDeletionWriter(session, writer);\n } else {\n try {\n writer.write(\"String_Node_Str\");\n writer.write(get...
"public void trigger(Object... args) {\n int mouseX = (int) args[0];\n int mouseY = (int) args[1];\n int clickedMouseButton = (int) args[2];\n long timeSinceLastClick = (long) args[3];\n try {\n CTJS.getInstance().getModuleManager().invokeFunction(methodName, mouseX, mouseY, clickedMouseButton, ti...
"public void onGuiClosed() {\n super.onGuiClosed();\n this.deactivateRenderViewEntity();\n}\n"
"protected void evaluateTextField() {\n if (readOnly) {\n return;\n }\n if (nameText == null || nameText.isDisposed()) {\n return;\n }\n if (nameText.getText().length() == 0) {\n nameStatus = createStatus(IStatus.ERROR, Messages.getString(\"String_Node_Str\"));\n } else if (!Patte...
"private void checkCurrentTag() {\n if (hasCurrentTag() && !ReaderTagTable.tagExists(getCurrentTag())) {\n mCurrentTag = ReaderTag.TAG_NAME_DEFAULT;\n}\n"
"public GetChecksumMessage getChecksum(ChannelID replyChannel, String filename) throws NotImplementedException, ArgumentNotValid {\n ArgumentNotValid.checkNotNull(replyChannel, \"String_Node_Str\");\n ArgumentNotValid.checkNotNullOrEmpty(filename, \"String_Node_Str\");\n GetChecksumMessage msg = new GetChecksu...
"public boolean hasNextChild() {\n if (currentElement < totalElements) {\n return true;\n }\n if (endOfListing) {\n return false;\n }\n int endGroup = rset.getEndingGroupLevel();\n if (endGroup <= 0) {\n ListingDesign listingDesign = (ListingDesign) getDesign();\n totalElem...
"public ActionResult doExecute(HttpServletRequest req, RenderContext renderContext, Resource resource, JCRSessionWrapper session, Map<String, List<String>> parameters, URLResolver urlResolver) throws Exception {\n JCRSessionWrapper jcrSessionWrapper = resource.getNode().getSession();\n JCRNodeWrapper node = resou...
"public boolean allowsFromQuery() {\n return false;\n}\n"
"public Object getExtraCtrl() {\n return new ExtraCtrl();\n}\n"
"private Product getL1cMosaicProduct(File granuleMetadataFile, boolean isAGranule) throws IOException {\n Objects.requireNonNull(granuleMetadataFile);\n String filterTileId = null;\n File metadataFile = null;\n if (isAGranule) {\n try {\n Objects.requireNonNull(granuleMetadataFile.getParen...
"public org.hl7.fhir.dstu2.model.Distance convertDistance(org.hl7.fhir.dstu3.model.Distance src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Distance tgt = new org.hl7.fhir.dstu2.model.Distance();\n copyElement(src, tgt);\n tgt.setValue(src.get...
"public static CommandLineParser generateParser(UICommand command, ShellContext context) {\n ParserBuilder builder = new ParserBuilder();\n ParameterInt parameter = new ParameterInt(command.getMetadata().getName(), command.getMetadata().getDescription());\n for (InputComponent<?, ?> input : context.getInputs()...
"public OrderedVersionedColumnarTable openTable(byte[] tableName) throws OperationException {\n HyperSQLOVCTable table = new HyperSQLOVCTable(Bytes.toString(tableName), this.connection);\n if (table.openTable()) {\n return table;\n else\n return null;\n}\n"
"public void onViewCreated(View view, Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n Context appContext = getActivity().getApplicationContext();\n mRecyclerView = view.findViewById(R.id.recycler_view);\n mRecyclerView.setHasFixedSize(false);\n mRecyclerView.setLayoutManag...
"protected TdDataProvider findDataProvider() {\n TypedReturnCode<TdDataProvider> returnVlaue = PrvResourceFileHelper.getInstance().findProvider((IFile) selectedObj);\n return returnVlaue.getObject();\n}\n"
"private static void encodeTab(FacesContext context, ResponseWriter writer, UIComponent tab, boolean isActive) throws IOException {\n writer.startElement(LI, tab);\n writer.writeAttribute(ROLE, \"String_Node_Str\", ROLE);\n Map<String, Object> tabAttributes = tab.getAttributes();\n String classes = isActive...
"public void publish(final String channelName, final ContentKey key) {\n final MessageListener<String> listener = messageListenerMap.get(channelName);\n if (listener == null) {\n return;\n }\n threadPoolExecutor.execute(new Runnable() {\n\n public void run() {\n Message<String> mess...
"public void exited() {\n m_isTerminated = true;\n m_isSuspended = false;\n DebugPlugin.getDefault().getBreakpointManager().removeBreakpointListener(this);\n DebugPlugin.getDefault().getExpressionManager().removeExpressionListener(this);\n fireTerminateEvent();\n try {\n m_debugServer.shutdown(...
"public static StoreQueryRuntime parse(StoreQuery storeQuery, SiddhiAppContext siddhiAppContext, Map<String, Table> tableMap, Map<String, Window> windowMap, Map<String, AggregationRuntime> aggregationMap) {\n String queryName = \"String_Node_Str\" + storeQuery.getInputStore().getStoreId();\n InputStore inputStore...
"public void removeMonitorsFor(Animation animation) {\n for (int i = 0; i < animationMonitors.size(); i++) {\n AnimationMonitor animationMonitor = animationMonitors.get(i);\n if (animationMonitor.getAnimation() == animation)\n animationMonitorsToRemove.add(animationMonitor);\n }\n anim...
"public void updateQuery(Control control) {\n if (textCollection.containsKey(control)) {\n Query query = (Query) textCollection.get(control);\n query.setDefinition(ChartUIUtil.getActualExpression(control));\n adjustScaleData(query);\n ColorPalette.getInstance().putColor(getText(control));...
"public void activate() {\n Char ch = Actor.findChar(pos);\n if (ch instanceof Hero) {\n ScrollOfTeleportation.teleportHero((Hero) ch);\n ((Hero) ch).curAction = null;\n } else if (ch instanceof Mob) {\n int count = 10;\n int newPos;\n do {\n newPos = Dungeon.level...
"public static SkyKey key(BuildOptions buildOptions, Class<? extends Fragment> fragmentType, RuleClassProvider ruleClassProvider) {\n BuildOptions optionsKey = buildOptions.trim(BuildConfiguration.getOptionsClasses(ImmutableList.<Class<? extends BuildConfiguration.Fragment>>of(fragmentType), ruleClassProvider));\n ...
"public void testGetTablesConnectionCatalogStringBoolean() {\n java.sql.Connection sqlConn = null;\n DatabaseMetaData metaData = null;\n String catalogName = \"String_Node_Str\";\n List<TdTable> tableList = new ArrayList<TdTable>();\n List<TdTable> retableList = new ArrayList<TdTable>();\n List<TdTabl...
"public void determineAccessRights(String page, State currentState) {\n if (currentState.isSiteAdministrator() == true) {\n currentState.setMode(GwtModesType.ReadWrite);\n } else if (currentState.getUserProjectRole() == ProjectRole.Acquisition_Organization_Engineer) {\n currentState.setMode(GwtModes...
"public void doubleClick(DoubleClickEvent dcEvent) {\n Node node = null;\n if (dcEvent.getSelection() instanceof IStructuredSelection) {\n IStructuredSelection ss = (IStructuredSelection) dcEvent.getSelection();\n if (ss.getFirstElement() instanceof Node)\n node = (Node) ss.getFirstElemen...
"public void cdata(String value) {\n if (isStartElementOpen) {\n outputStreamWrite(CLOSE_ELEMENT);\n isStartElementOpen = false;\n }\n outputStreamWrite(CR);\n outputStreamWriteTab();\n super.cdata(value);\n complexType = false;\n}\n"
"private void connectUntilPong() throws InterruptedException {\n gotGoodPong = false;\n while (!gotGoodPong) {\n String[] hosts = settings.getQuickConnectHosts();\n for (int i = 0; i < hosts.length && !gotGoodPong; i++) {\n Endpoint e;\n try {\n e = new Endpoint(...
"public T greaterThan(Object val) {\n Assert.parametersNotNull(\"String_Node_Str\", val);\n return addCrit(FilterOperator.GREATER_THAN, val);\n}\n"
"public int execute(final String command) throws Exception {\n logger.info(\"String_Node_Str\" + command + \"String_Node_Str\" + host);\n final Session session = getSession();\n session.connect();\n final ChannelExec channel = (ChannelExec) session.openChannel(\"String_Node_Str\");\n channel.setCommand(c...
"public void save() throws IOException {\n final byte[] out;\n final String text = toText();\n if (utf8Bom) {\n final ByteArrayOutputStream bos = new ByteArrayOutputStream();\n bos.write(0xEF);\n bos.write(0xBB);\n bos.write(0xBF);\n bos.write(text.getBytes(RawParseUtils.UTF8...
"private void init() {\n setWidgetLayoutResource(R.layout.colour_preference);\n}\n"
"public static ECPoint doublePoint(EllipticCurve curve, ECPoint ecPoint) {\n if (ecPoint.equals(ECPoint.POINT_INFINITY)) {\n return ecPoint;\n }\n BigInteger p = ((ECFieldFp) curve.getField()).getP();\n BigInteger a = curve.getA();\n BigInteger xp = ecPointP.getAffineX();\n BigInteger yp = ecPo...
"public static void addPropertiesToMessageBundle(String language, Class invokingClass, PropFileOperations propFileOperations, ProjectOperations projectOperations, FileManager fileManager) {\n Properties properties = new Properties();\n LogicalPath webappPath = WebProjectUtils.getWebappPath(projectOperations);\n ...
"public void execute(Connection connection, FtpRequest request, FtpSessionImpl session, FtpReplyOutput out) throws IOException, FtpException {\n session.resetState();\n FtpServerContext serverContext = connection.getServerContext();\n String fileName = request.getArgument();\n if (fileName == null || fileNa...
"private String getCrfVersionStatus(String seSubjectEventStatus, int cvStatusId, int ecStatusId, int validatorId) {\n DataEntryStage stage = DataEntryStage.INVALID;\n Status status = Status.get(ecStatusId);\n if (stage.equals(DataEntryStage.INVALID) || status.equals(Status.INVALID)) {\n stage = DataEntr...
"public void serviceStart() {\n try {\n Configuration conf = getConfig();\n InetSocketAddress addr = new InetSocketAddress(0);\n DAGClientAMProtocolBlockingPBServerImpl service = new DAGClientAMProtocolBlockingPBServerImpl(realInstance);\n BlockingService blockingService = DAGClientAMProt...
"public Collection<? extends PhpNamedElement> getBySignature(String expression, Project project) {\n int endIndex = expression.lastIndexOf(TRIM_KEY);\n if (endIndex == -1) {\n return Collections.emptySet();\n }\n String originalSignature = expression.substring(0, endIndex);\n String parameter = ex...
"public static void removeEmbargoTypeJSON(String embargoTypeId) {\n try {\n Long id = Long.valueOf(embargoTypeId);\n EmbargoType embargo = settingRepo.findEmbargoType(id);\n embargo.delete();\n Logger.info(\"String_Node_Str\", context.getPerson().getFormattedName(NameFormat.FIRST_LAST), c...
"public void onSuccess(Void info) {\n getState().addAlias(alias);\n super.onSuccess(info);\n}\n"
"public void characters(char[] ch, int start, int length) throws SAXException {\n String text = new String(ch, start, length);\n if (text.length() > 0) {\n lastText.append(text);\n }\n}\n"
"public void testRemoveAmendmentControllerWithListener() throws Exception {\n final OverlayWidget overlayWidget = new OverlayWidgetImpl();\n final Boolean[] hits = new Boolean[] { false, false };\n overlayWidget.setListener(new OverlayWidgetListenerMock() {\n public boolean beforeAmendmentControllerRemo...
"public static DatabaseConnection fillDbConnectionInformation(DatabaseConnection dbConn, IMetadataConnection metadataConnection) {\n boolean noStructureExists = ConnectionHelper.getAllCatalogs(dbConn).isEmpty() && ConnectionHelper.getAllSchemas(dbConn).isEmpty();\n java.sql.Connection sqlConn = null;\n try {\n...
"public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, AbstractSession session, NamespaceResolver namespaceResolver, XMLMarshaller marshaller) {\n if (xmlCompositeObjectMapping.isReadOnly()) {\n return false;\n }\n if (xPathFragment.hasLeafElementType()) {\n ...
"public Container xor(ArrayContainer value2) {\n ArrayContainer value1 = this;\n final int desiredcapacity = Math.min(value1.getCardinality() + value2.getCardinality(), 65536);\n ArrayContainer answer = ContainerFactory.getArrayContainer();\n if (answer.content.length < desiredcapacity)\n answer.cont...
"public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException {\n AbstractProject<?, ?> rootProject = build.getProject().getRootProject();\n if (!(rootProject.getScm() instanceof IntegritySCM)) {\n listener.getLogger().println(\"Strin...
"public void initializeFromParent(CachePolicy parentPolicy, ClassDescriptor descriptor, ClassDescriptor descriptorDescriptor, AbstractSession session) throws DescriptorException {\n if (!parentPolicy.isSharedIsolation()) {\n if (!isIsolated() && (getCacheIsolation() != parentPolicy.getCacheIsolation())) {\n ...
"public TaskInstance nextUserTask(ProcessInstanceUUID processInstanceUUID, String currentUserName) throws Exception {\n initContext();\n Set<ActivityInstance> activities = queryRuntimeAPI.getActivityInstances(processInstanceUUID);\n for (ActivityInstance instance : activities) {\n if (instance.getState(...
"public void showDuplicate(ActionRequest request, ActionResponse response) {\n String model = (String) request.getContext().get(\"String_Node_Str\");\n List<String> fields = new ArrayList<String>();\n if (model == null) {\n model = request.getModel();\n String searchFields = (String) request.getC...
"public void onPause() {\n finishActionMode();\n super.onPause();\n}\n"
"public Float getValue(double low, double high, Estimator estimator) {\n if (low > high)\n throw new IllegalArgumentException(\"String_Node_Str\" + \"String_Node_Str\");\n return getValue(new Interval<Float>(low, high, false, false), estimator);\n}\n"
"public String getMessage() {\n return \"String_Node_Str\";\n}\n"
"private void changeState(TabState tabState) {\n if (currentState != tabState) {\n this.currentState = tabState;\n switch(tabState) {\n case SELECTED:\n FontUtils.removeUnderline(mainButton);\n FontUtils.removeUnderline(additionalText);\n mainButt...
"public static org.hl7.fhir.dstu2016may.model.OperationDefinition convertOperationDefinition(org.hl7.fhir.dstu3.model.OperationDefinition src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2016may.model.OperationDefinition tgt = new org.hl7.fhir.dstu2016may.mo...
"public File[] getFiles() {\n List<File> files = new ArrayList<File>();\n for (File archivePath : archivePaths) {\n File archiveDir = new File(archivePath, Constants.FILE_DIRECTORY_NAME);\n if (checkArchiveDir(archiveDir)) {\n File[] filesHere = archiveDir.listFiles();\n for (F...
"public static IPropertySource<?> createFacetPropSource(XSDSimpleTypeDefinition simpleType, String facetPropName, Composite cellEditorParent) {\n SimpleTypeFacetPropSourceBuilder builder = getPropSourceBuilder(facetPropName);\n if (builder == null)\n return null;\n return builder.doCreatePropSource(targ...
"private SerialMessage setValueMessage(String str, int command) {\n logger.debug(\"String_Node_Str\", getNode().getNodeId(), str);\n byte[] nameBuffer = null;\n byte encoding = ENCODING_ASCII;\n CharsetEncoder asciiEncoder = StandardCharsets.US_ASCII.newEncoder();\n if (asciiEncoder.canEncode(str) == tru...
"public String printCardNumber() {\n if (m_sCardNumber.length() > 4) {\n return m_sCardNumber.substring(0, m_sCardNumber.length() - 4).replaceAll(\"String_Node_Str\", \"String_Node_Str\") + m_sCardNumber.substring(m_sCardNumber.length() - 4);\n } else {\n return \"String_Node_Str\";\n }\n}\n"
"protected void runShadowProcess(Boolean flag) {\n XmlFileConnection connection2 = getConnection();\n String tempXmlFilePath = getContextXmlPath(connection2);\n if (tempXmlFilePath == null ? XmlUtil.isXSDFile(connection2.getXmlFilePath()) : XmlUtil.isXSDFile(connection2.getXmlFilePath()) || XmlUtil.isXSDFile(t...
"public void handleIOException(IOException exception) {\n repeatRequestOrShowResults(true);\n}\n"
"public Object getValue(int index, int selector, Object parameters) {\n if (index == 1) {\n return getLogicalName();\n } else if (index == 2) {\n ByteArrayOutputStream data = new ByteArrayOutputStream();\n data.write((byte) DataType.STRUCTURE.getValue());\n data.write(3);\n try ...
"public boolean addNodeGroups(ClusterCreate clusterSpec, NodeGroupCreate[] nodeGroupsAdd, List<BaseNode> vNodes) {\n boolean success = false;\n List<NodeGroupCreate> newNodeGroups = new ArrayList<NodeGroupCreate>();\n if (clusterSpec != null && clusterSpec.getNodeGroups() != null) {\n for (NodeGroupCrea...
"public void register() {\n try {\n memberRegistration.register(newMember);\n facesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, \"String_Node_Str\", \"String_Node_Str\"));\n initNewMember();\n } catch (Exception e) {\n String errorMessage = getRootErrorMessage(...
"public void send() {\n try {\n connection = getConnection();\n int response = connection.getResponseCode();\n if (response == HttpConnection.HTTP_UNAUTHORIZED) {\n String challenge = getChallenge(connection);\n if (this.issueChallenge(connection, challenge)) {\n ...
"protected Data replaceInternal(final Data key, final Data value) {\n ReplaceOperation operation = new ReplaceOperation(name, key, value);\n final Data result = (Data) invokeOperation(key, operation);\n invalidateNearCache(key);\n return result;\n}\n"
"private void _arpWindows() {\n if (_ipMap.size() == 0) {\n System.err.println(\"String_Node_Str\" + _pingWindowsCommand + \"String_Node_Str\");\n }\n try {\n Process process = Runtime.getRuntime().exec(_arpCommand);\n BufferedReader stdOut = null;\n try {\n stdOut = new ...
"public static ChannelID getTheBamon() throws IllegalState {\n ChannelID res = getInstance().THE_BAMON;\n if (res == null) {\n throw new IllegalState(\"String_Node_Str\" + \"String_Node_Str\" + getInstance().useReplica + \"String_Node_Str\");\n }\n return res;\n}\n"
"private static void executeDeleteSubDocuments(DSLContext dsl, Set<SubDocTable> tables, Collection<Integer> dids) {\n ConnectionProvider connectionProvider = dsl.configuration().connectionProvider();\n Connection connection = connectionProvider.acquire();\n try {\n for (SubDocTable table : tables) {\n ...
"protected boolean upgradeTable(HTableDescriptor tableDescriptor) {\n HColumnDescriptor columnDescriptor = tableDescriptor.getFamily(DATA_COLUMN_FAMILY);\n boolean needUpgrade = false;\n if (columnDescriptor.getMaxVersions() < Integer.MAX_VALUE) {\n columnDescriptor.setMaxVersions(Integer.MAX_VALUE);\n ...
"public GenericSQLHandler replaceLimitOffset(String colName, String table, String limitRow, String offset, String limitRowPlusOffset) {\n this.replaceColumnTable(colName, table);\n sqlString = this.sqlString.replace(LIMIT_ROW, limitRow).replace(LIMIT_OFFSET, offset).replace(LIMIT_ROW_PLUS_OFFSET, limitRowPlusOffs...
"public static List<ModuleInfo> getPage(int position) {\n int from = position * ITEMS_PER_PAGE;\n int to = Math.min((position + 1) * ITEMS_PER_PAGE, mModules.size());\n Log.d(TAG, \"String_Node_Str\" + Integer.toString(from) + \"String_Node_Str\" + Integer.toString(to) + \"String_Node_Str\" + Integer.toString(...
"public void invalidNo() {\n verifySemanticException(QualifierType.NO, \"String_Node_Str\");\n}\n"
"public void init(String ownerId, String owningGroupId, int perms, ACLEntry[] acl, Map<String, Object> rootDirDefSp, AtomicDBUpdate update) throws DatabaseException {\n try {\n int time = (int) (TimeSync.getGlobalTime() / 1000);\n createDir(1, 0, volumeName, time, time, time, ownerId, owningGroupId, pe...
"private static void checkTimeValue(int hour, int minute) {\n if (hour < 0 || hour > 23) {\n throw new IllegalArgumentException(\"String_Node_Str\" + hour);\n }\n if (minute < 0 || minute > 60) {\n throw new IllegalArgumentException(\"String_Node_Str\" + minute);\n }\n}\n"
"public ICustomerDataset getCustomerDataset() {\n Map<IndicatorEnum, Double> map = new HashMap<IndicatorEnum, Double>();\n CustomerDefaultCategoryDataset customerdataset = new CustomerDefaultCategoryDataset();\n for (IndicatorUnit unit : units) {\n if (Java2SqlType.isNumbericInSQL(sqltype)) {\n ...
"private boolean getCookieSupport() {\n boolean cookieSupport = false;\n try {\n if (sessionID.getCookieMode() != null) {\n cookieSupport = sessionID.getCookieMode().booleanValue();\n } else if (this.cookieMode != null) {\n cookieSupport = this.cookieMode.booleanValue();\n ...
"protected void mouseClickMove(int x, int y, int c, long d) {\n Slot slot = this.getSlot(x, y);\n ItemStack itemstack = this.mc.thePlayer.inventory.getItemStack();\n if (slot instanceof SlotFake && itemstack != null) {\n drag_click.add(slot);\n if (drag_click.size() > 1) {\n try {\n ...
"private void validateKeepStateOption(DeploymentContext context, DeployCommandParameters params, Application app) {\n if ((params.keepstate != null && params.keepstate) || app.getKeepState()) {\n if (!isDASTarget(context, params)) {\n params.keepstate = false;\n String warningMsg = local...
"public static org.hl7.fhir.dstu2016may.model.Period convertPeriod(org.hl7.fhir.dstu3.model.Period src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2016may.model.Period tgt = new org.hl7.fhir.dstu2016may.model.Period();\n copyElement(src, tgt);\n tgt.s...
"protected void changed(StringProperty property, String newValue) {\n if (currentRule == null)\n return;\n String cleanValue = newValue.trim();\n String existingValue = currentRule.getProperty(property);\n if (StringUtil.areSemanticEquals(existingValue, cleanValue))\n return;\n currentRule....