content stringlengths 40 137k |
|---|
"boolean trackMotionScroll(int deltaY, int incrementalDeltaY) {\n final int childCount = getChildCount();\n if (childCount == 0) {\n return true;\n }\n final int firstTop = getChildAt(0).getTop();\n final int lastBottom = getChildAt(childCount - 1).getBottom();\n final Rect listPadding = mListP... |
"private void onUpdateEntry(Uri uri, long channelId, long time, SessionState sessionState) {\n String[] projection = { TvContract.WatchedPrograms.COLUMN_WATCH_END_TIME_UTC_MILLIS };\n Cursor cursor = null;\n try {\n cursor = mContentResolver.query(uri, projection, null, null, null);\n if (cursor ... |
"protected void buildProperties(IContent content, LayoutContext context) {\n IStyle style = content.getComputedStyle();\n boxStyle = new BoxStyle();\n Color color = PropertyUtil.getColor(style.getProperty(IStyle.STYLE_BACKGROUND_COLOR));\n if (color != null) {\n boxStyle.setBackgroundColor(color);\n ... |
"public String[] getChoiceSet(Object item, String key) {\n if (key.equals(SortKey.DIRECTION_MEMBER)) {\n choiceSet = ChoiceSetFactory.getStructChoiceSet(SortKey.SORT_STRUCT, key);\n return ChoiceSetFactory.getDisplayNamefromChoiceSet(choiceSet);\n }\n if (!(item instanceof DesignElementHandle)) {... |
"public void match(final PactRecord record1, final PactRecord record2, final Collector out) throws Exception {\n this.context.increaseInputCounter();\n this.collector.configure(out, this.context);\n final IJsonNode input1 = this.inputSchema1.recordToJson(record1, this.cachedInput1);\n final IJsonNode input2... |
"private M2Model readCustomContentModel(NodeRef modelNodeRef) {\n ContentReader reader = this.contentService.getReader(modelNodeRef, ContentModel.TYPE_CONTENT);\n if (!reader.exists()) {\n throw new AlfrescoRuntimeException(I18NUtil.getMessage(MSG_CUSTOM_MODEL_NO_CONTENT, modelNodeRef.toString()));\n }\... |
"public Object get(EntityContext context) throws Throwable {\n Object parent = context.getParent();\n Class<?> relatedClass = getRelatedClass();\n if (relatedClass.isInstance(parent)) {\n return parent;\n } else {\n EntityContext parentCtx = context.getSession().unwrapEntity(parent);\n ... |
"private void tryEnableContextPreservation() {\n try {\n Method m = GLSurfaceView.class.getMethod(\"String_Node_Str\", Boolean.TYPE);\n m.invoke(this, true);\n } catch (Throwable t) {\n Log.d(\"String_Node_Str\", \"String_Node_Str\");\n }\n}\n"
|
"public void removePositionTo(final int x, final int y, final Partition newPartitionObject) {\n if (this == newPartitionObject) {\n System.err.println(\"String_Node_Str\" + x + \"String_Node_Str\" + y + \"String_Node_Str\");\n }\n this.decrement(x, y);\n newPartitionObject.increment(x, y);\n super... |
"public void importDemoProject() {\n ImportDemoProjectAction.getInstance().setShell(getShell());\n ImportDemoProjectAction.getInstance().run();\n fillUIProjectListWithBusyCursor();\n String newProject = ImportDemoProjectAction.getInstance().getProjectName();\n if (newProject != null) {\n resetProj... |
"protected String getLocalizedMessage(String errorCode) {\n String localizedMessage;\n Locale locale = null;\n if (rb == null) {\n localizedMessage = errorCode;\n } else {\n locale = rb.getLocale();\n try {\n localizedMessage = rb.getString(errorCode);\n } catch (Excep... |
"private Node selectSingleAttribute(Node contextNode, XPathFragment xPathFragment, XMLNamespaceResolver xmlNamespaceResolver) {\n if (xPathFragment.hasNamespace()) {\n Element contextElement = (Element) contextNode;\n String attributeNamespaceURI = xmlNamespaceResolver.resolveNamespacePrefix(xPathFragm... |
"public void evaluate() throws Throwable {\n Server server = description.getAnnotation(Server.class);\n if (server != null) {\n Class<?> testClass = description.getTestClass();\n processor = new ServerProcessor(server, testClass);\n processor.initServer();\n try {\n base.eva... |
"public File generateFile(BankOrder bankOrder) throws JAXBException, IOException, AxelorException, DatatypeConfigurationException {\n bankOrder.setFileGenerationDateTime(new LocalDateTime());\n BankOrderFileFormat bankOrderFileFormat = bankOrder.getBankOrderFileFormat();\n File file = null;\n switch(bankOrd... |
"private HeaderPositionHelper myGetColumnPositionHelper(NSheet sheet) {\n HelperContainer<HeaderPositionHelper> helpers = (HelperContainer) getAttribute(COLUMN_SIZE_HELPER_KEY);\n if (helpers == null) {\n setAttribute(COLUMN_SIZE_HELPER_KEY, helpers = new HelperContainer<HeaderPositionHelper>());\n }\n ... |
"public void complexConstructorMapTest() {\n if (isOnServer()) {\n return;\n }\n JpaEntityManager em = (JpaEntityManager) createEntityManager();\n beginTransaction(em);\n BeerConsumer consumer = new BeerConsumer();\n consumer.setName(\"String_Node_Str\");\n em.persist(consumer);\n Blue bl... |
"public void openClientSocket(final ScriptObjectMirror socketClient, final int port, final String host, Map<String, Object> options) {\n if ((Boolean) options.get(\"String_Node_Str\")) {\n if (!MessageHandler.yesNoQuestion(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\"))... |
"public boolean set(Data key, Object value, long ttl) {\n checkIfLoaded();\n final long now = getNow();\n markRecordStoreExpirable(ttl);\n Record record = getRecordOrNull(key, now, false);\n boolean newRecord = false;\n if (record == null) {\n value = mapServiceContext.interceptPut(name, null, ... |
"public void notifyAccountDataChanged() {\n switch(accountManager.size()) {\n case 3:\n this.setThirdAccountPhoto(findAccountNumber(MaterialAccount.THIRD_ACCOUNT).getCircularPhoto());\n case 2:\n this.setSecondAccountPhoto(findAccountNumber(MaterialAccount.SECOND_ACCOUNT).getCircu... |
"private void recieveMessageIdSendCorrelationIdTestImpl(Object idForAmqpMessageClass) throws Exception {\n try (TestAmqpPeer testPeer = new TestAmqpPeer(testFixture.getAvailablePort())) {\n Connection connection = testFixture.establishConnecton(testPeer);\n connection.start();\n testPeer.expectB... |
"public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {\n if (!parse) {\n if (qName.equals(_serverName)) {\n parse = true;\n parent = getAttribute(atts, \"String_Node_Str\");\n String implementationClass = getAttrib... |
"private void showRelativeTo(UIObject target, CalloutPosition position, int offsetWidth, int offsetHeight) {\n Pair<Integer, Integer> positionPair = Pair.of(0, 0);\n if (CalloutPosition.BOTTOM_RIGHT.equals(position)) {\n left = target.getAbsoluteLeft() + target.getOffsetWidth() / 2 - offsetWidth + ARROW_OF... |
"public void test() {\n String accountsNo = \"String_Node_Str\";\n String organizationNo = \"String_Node_Str\";\n String productNo = \"String_Node_Str\";\n String customerNo = \"String_Node_Str\";\n String accountNo2 = \"String_Node_Str\";\n String accountNo3 = \"String_Node_Str\";\n AccountNoSecti... |
"public void getInstances(HttpRequest request, HttpResponder responder) {\n programLifecycleHttpHandler.getInstances(RESTMigrationUtils.rewriteV2RequestToV3(request), responder, Constants.DEFAULT_NAMESPACE);\n}\n"
|
"protected void execute() {\n table = new Table(getClass(), \"String_Node_Str\", \"String_Node_Str\");\n try {\n final PtrStatus3 status = new PTRStatusCallable(service).call();\n addRow(\"String_Node_Str\", status.getDevice());\n addRow(\"String_Node_Str\", status.getMedia());\n addPa... |
"public void onPlayerBucketEmpty(PlayerBucketEmptyEvent event) {\n if (JailZoneManager.isInsideJail(event.getBlockClicked().getLocation()) || JailZoneManager.isInsideJail(event.getBlockClicked().getFace(event.getBlockFace()).getLocation())) {\n if (Settings.BucketPenalty > 0 && Jail.prisoners.containsKey(even... |
"public boolean isStepMethod(Method paramMethod) {\n if (!Modifier.isPublic(paramMethod.getModifiers())) {\n return false;\n return true;\n}\n"
|
"private void addSubstitutionDetails(XSDSchema xsdSchema, ATreeNode parentNode, XSDElementDeclaration elementDeclaration, ATreeNode rootSubsNode) throws OdaException, IllegalAccessException, InvocationTargetException {\n boolean hasSubstitution = false;\n Set<ATreeNode> subsChildren = new HashSet<ATreeNode>();\n ... |
"public void setAttribute(String namespace, String name, String value) {\n if (namespace == null)\n namespace = \"String_Node_Str\";\n for (int i = attributes.size() - 1; i >= 0; i--) {\n TreeElement attribut = attributes.elementAt(i);\n if (attribut.name.equals(name) && (namespace == null ||... |
"public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n Core core = new Core(getActivity());\n BaseFragmentActivity activity = (BaseFragmentActivity) getActivity();\n if (activity != null)\n activity.getSupportActionBar().setSubtitle(null);\n if... |
"public SelectedItems<?> getSelected() {\n SelectedItems<?> selected = null;\n if (itemsSearchResultPanel != null && itemsSearchResultPanel.hasElementsSelected()) {\n selected = itemsSearchResultPanel.getSelected();\n }\n if (representationsSearchResultPanel != null && representationsSearchAdvancedFi... |
"public static int softCompare(double a, double b) {\n final BigDecimal acceptedVariation = BigDecimal.valueOf(1d).divide(BigDecimal.valueOf(10d).pow(PCT_COMPARISON_SCALE - 1));\n BigDecimal first = new BigDecimal(a).setScale(PCT_COMPARISON_SCALE, ROUNDING_MODE);\n BigDecimal second = new BigDecimal(b).setScal... |
"private void initHierarchy() {\n JBPropertyDescriptor propDes = null;\n IComponentIdentifier compId = getNode().getTechnicalName();\n if (compId != null) {\n List<?> hierarchy = compId.getHierarchyNames();\n for (int i = 0; i < hierarchy.size(); i++) {\n if (i == 0) {\n ... |
"public void export(Network network, Properties parameters, DataSource dataSource) {\n if (network == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n XMLExportOptions options = new XMLExportOptions();\n if (parameters != null) {\n options.setIndent(!\"String_Node_Str\"... |
"public RemoteFileDesc toRemoteFileDesc(HostData data) {\n if (cachedRFD != null && cachedRFD.getPort() == data.getPort() && cachedRFD.getHost().equals(data.getIP()))\n return cachedRFD;\n else {\n RemoteFileDesc rfd = new RemoteFileDesc(data.getIP(), data.getPort(), getIndex(), getName(), (int) get... |
"public Optional<RestxHandlerMatch> match(RestxRequest req) {\n Optional<String> origin = req.getHeader(\"String_Node_Str\");\n if (origin.isPresent() && isSimpleCORSRequest(req)) {\n CORS cors = CORS.check(authorizers, req, origin.get(), req.getHttpMethod(), req.getRestxPath());\n if (cors.isAccept... |
"public String getCustomTranslation(final String key, final String locale) {\n if (getTenantCustomTranslationsCache().containsKey(key) && getTenantCustomTranslationsCache().get(key).containsKey(locale)) {\n return getTenantCustomTranslationsCache().get(key).get(locale);\n }\n return null;\n}\n"
|
"public static String center(String text) {\n int w = 0;\n boolean isBold = false;\n for (int i = 0; i < text.length(); ++i) {\n char c = text.charAt(i);\n if (c == ChatColor.COLOR_CHAR)\n isBold = text.charAt(++i) == ChatColor.BOLD.getChar();\n else\n w += 1 + getCha... |
"private QueueProcessor newQueueProcessor(String name) {\n if (name.equals(\"String_Node_Str\")) {\n return new LocalQueueProcessor(localService);\n } else if (name.equals(\"String_Node_Str\")) {\n return new BlockQueueProcessor(localService, settings);\n } else if (name.equals(\"String_Node_Str\... |
"public Map<String, Object> executeImpl(WebScriptRequest req, Status status, Cache cache) {\n boolean importData = false;\n if (req.getParameter(ARG_IMPORT) != null) {\n importData = Boolean.parseBoolean(req.getParameter(ARG_IMPORT));\n }\n String siteName = RmSiteType.DEFAULT_SITE_NAME;\n if (req... |
"void animateBounds(final AnimateBoundsUser target, Rect from, Rect to) {\n boolean moveToFullscreen = false;\n if (to == null) {\n to = new Rect();\n target.getFullScreenBounds(to);\n moveToFullscreen = true;\n }\n final BoundsAnimator existing = mRunningAnimations.get(target);\n fi... |
"protected void internalSaveWidgetValues() {\n IDialogSettings settings = getDialogSettings();\n if (settings != null) {\n if (getCurrentExportType1().equals(JobExportType.PETALSESB)) {\n String[] directoryNames = settings.getArray(PETALS_EXPORT_DESTINATIONS);\n if (directoryNames == ... |
"private void okPressed() {\n String destPath = pathField.getText();\n Object[] ret = FileToolkit.resolvePath(destPath, mainFrame.getActiveTable().getCurrentFolder());\n if (ret == null || (files.size() > 1 && ret[1] != null)) {\n showErrorDialog(Translator.get(\"String_Node_Str\", destPath), errorDialo... |
"public void run() {\n AudioStreamBasicDescription asbd = new AudioStreamBasicDescription(mSampleRate, mFormatID, mFormatFlags, mBytesPerPacket, mFramesPerPacket, mBytesPerFrame, mChannelsPerFrame, mBitsPerChannel, 0);\n AudioQueuePtr mQueuePtr = new AudioQueuePtr();\n Method callbackMethod = null;\n Method... |
"private void startAnimations(final ExpandableView child, StackScrollState.ViewState viewState, StackScrollState finalState, int i) {\n int childVisibility = child.getVisibility();\n boolean wasVisible = childVisibility == View.VISIBLE;\n final float alpha = viewState.alpha;\n if (!wasVisible && alpha != 0 ... |
"public void expandCustomLineItemsDiscount() throws Exception {\n final RelativeCartDiscountValue relativeCartDiscountValue = RelativeCartDiscountValue.of(10000);\n withCartHavingDiscountedCustomLineItem(client(), relativeCartDiscountValue, (cart) -> {\n final CartQuery query = CartQuery.of().withPredicate... |
"public void processFile(String path) {\n try {\n System.out.println(\"String_Node_Str\" + path);\n ResourceProducer producer = ProducerUtils.getProducer(path);\n ResourceFactoryMapper mapper = new ExtractingResourceFactoryMapper();\n ExtractingResourceProducer exProducer = new Extracting... |
"private void reportOnWorkflow(String workflowAccession, Date earlyDate, Date lateDate) throws IOException {\n String title = \"String_Node_Str\" + workflowAccession;\n if (earlyDate != null) {\n title += \"String_Node_Str\" + dateFormat.format(earlyDate);\n }\n if (lateDate != null) {\n title... |
"boolean checkAllowNonWakeupDelayLocked(long nowELAPSED) {\n if (mInteractive) {\n return false;\n }\n if (mLastAlarmDeliveryTime <= 0) {\n return false;\n }\n if (mPendingNonWakeupAlarms.size() > 0 && mNextNonWakeupDeliveryTime < nowELAPSED) {\n return false;\n }\n long timeSi... |
"public INetHandler getClientPlayHandler() {\n return this.currentPlayClient;\n}\n"
|
"String[] getContentsArray() {\n if (parentContents == null) {\n if (canGoUp) {\n return new String[] { getBuilder().goUpLabel };\n }\n return new String[] {};\n }\n String[] results = new String[parentContents.length + (canGoUp ? 1 : 0)];\n if (canGoUp) {\n results[0]... |
"public static void makeOrbsVisible(boolean isVisible) {\n Collection<ArrayList<OrbCell>> attachedOrbs = attachedOrbMap.values();\n Iterator<ArrayList<OrbCell>> it = attachedOrbs.iterator();\n while (it.hasNext()) {\n ArrayList<OrbCell> orbs = it.next();\n for (OrbCell orb : orbs) {\n ... |
"public void writeColumns(EntityManagerImpl em, EnhancedEntity e, EntityMetadata m) throws Exception {\n String dbName = m.getKeyspaceName();\n String documentName = m.getColumnFamilyName();\n String key = e.getId();\n log.debug(\"String_Node_Str\" + dbName + \"String_Node_Str\" + documentName + \"String_No... |
"public StudyBean getStudyIdentifier(StudyBean study, Node studyNode) throws Exception {\n Element studyElement = (Element) studyNode;\n NodeList nlist = studyElement.getElementsByTagNameNS(CONNECTOR_NAMESPACE_V1, \"String_Node_Str\");\n String identifier = \"String_Node_Str\";\n System.out.println(\"String... |
"public IListBoxElement getSelectedElement() {\n if (_selectedIndex == -1 || _selectedIndex >= _elements.size()) {\n return null;\n }\n return _elements.get(_selectedIndex);\n}\n"
|
"public void add(Widget w, int left, int top) {\n w.removeFromParent();\n setWidgetPositionImpl(w, left, top);\n insert(w, beforeIndex);\n}\n"
|
"protected void onPostExecute(final String[] hashes) {\n super.onPostExecute(hashes);\n if (!f.isDirectory() && f.getSize() != 0) {\n md5HashText.setText(hashes[0]);\n sha256Text.setText(hashes[1]);\n mMD5LinearLayout.setOnLongClickListener(new View.OnLongClickListener() {\n public... |
"private JCExpression makeMetafactoryIndyCall(TranslationContext<?> context, int refKind, Symbol refSym, List<JCExpression> indy_args) {\n JCFunctionalExpression tree = context.tree;\n MethodSymbol samSym = (MethodSymbol) types.findDescriptorSymbol(tree.type.tsym);\n List<Object> staticArgs = List.<Object>of(t... |
"private void updateMediaSourceInternal(MediaSourceHolder mediaSourceHolder, Timeline timeline) {\n if (mediaSourceHolder == null) {\n throw new IllegalArgumentException();\n }\n DeferredTimeline deferredTimeline = mediaSourceHolder.timeline;\n if (deferredTimeline.getTimeline() == timeline) {\n ... |
"public void init(GLAutoDrawable drawable) {\n this.drawable = drawable;\n this.gl = drawable.getGL().getGL2();\n if (DEBUG) {\n System.out.println(\"String_Node_Str\" + gl);\n System.out.println(\"String_Node_Str\");\n GLContext context = drawable.getContext();\n String contextHC =... |
"protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {\n FormLayoutContainer leftContainer = FormLayoutContainer.createDefaultFormLayout(\"String_Node_Str\", getTranslator());\n leftContainer.setRootForm(mainForm);\n formLayout.add(leftContainer);\n displayName = uif... |
"public static void tickTestSandstormParticles() {\n Minecraft mc = Minecraft.getMinecraft();\n if (vecWOP == null) {\n particleBehaviorFog = new ParticleBehaviorFogGround(new Vec3(mc.player.posX, mc.player.posY, mc.player.posZ));\n vecWOP = new Vec3d(mc.player.posX, mc.player.posY, mc.player.posZ);... |
"public static void finalizeStaticSpaceMap() {\n Address startAddress = Space.getDiscontigStart();\n int first = hashAddress(startAddress);\n int last = hashAddress(Space.getDiscontigEnd());\n int unavailStart = last + 1;\n int trailingUnavail = Space.MAX_CHUNKS - unavailStart;\n int pages = (1 + last... |
"public void run(IAction action) {\n try {\n IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();\n String projectName = null;\n String testTargetClassname = null;\n String testCaseFilename = null;\n String testCaseCreateFilepath = null;\n String testCase... |
"public boolean isValid() {\n BigInteger maxNumberOfEdges = BigInteger.valueOf(getNumberOfNodes());\n maxNumberOfEdges = maxNumberOfEdges.multiply(maxNumberOfEdges.subtract(BigInteger.ONE));\n maxNumberOfEdges = maxNumberOfEdges.divide(BigInteger.valueOf(2));\n return super.isValid() && numberOfEdges > 0 &&... |
"public void updateEntity() {\n super.updateEntity();\n if (worldObj.isRemote)\n return;\n ItemStack stack = inventory.getStackInSlot(0);\n if (stack != null) {\n Item stackItem = stack.getItem();\n if (stackItem instanceof IFluidContainerItem) {\n IFluidContainerItem iFluidC... |
"public String getInfoLDS() throws IOException {\n HttpSession session = ServletActionContext.getRequest().getSession();\n Integer rdfizerJob = (Integer) session.getAttribute(\"String_Node_Str\");\n setState((int) session.getAttribute(\"String_Node_Str\"));\n logger.debug(\"String_Node_Str\" + state);\n ... |
"private <T> boolean tryAdd(ConcurrentHashMultiset<T> multiset, T value, int max) {\n while (true) {\n int count = multiset.count(value);\n if (count >= max && max != 0)\n return false;\n if (multiset.setCount(value, count, count + 1))\n return true;\n }\n}\n"
|
"protected void performAdd() {\n try {\n if (stepText.getText().trim().length() == 0)\n return;\n TransformerMainPage.this.comitting = true;\n TransformerMainPage.this.stepsList.add(TransformerMainPage.this.stepText.getText());\n WSTransformerV2 wsTransformer = transformer;\n ... |
"public String addResourceLink(String resourceLinkName, String global, String name, String type) throws MalformedObjectNameException {\n NamingResources nresources = getNamingResources();\n if (nresources == null) {\n return null;\n }\n ContextResourceLink resourceLink = nresources.findResourceLink(r... |
"private boolean handleStatements(Logger logger, Program program, Function f, ExecContext execCx, Block block, ListIterator<Statement> stmts, ValueTracker cv, HierarchicalMap<Var, Arg> replaceInputs, HierarchicalMap<Var, Arg> replaceAll) throws InvalidWriteException, InvalidOptionException {\n while (stmts.hasNext()... |
"public HashMap<String, Object> getSliceStatus() {\n IFlowSpaceFirewallService iFSFs = (IFlowSpaceFirewallService) getContext().getAttributes().get(IFlowSpaceFirewallService.class.getCanonicalName());\n String dpidStr = (String) getRequestAttributes().get(\"String_Node_Str\");\n Long dpid = HexString.toLong(dp... |
"public static IReportElementInstance getInstance(IElement element) {\n if (element == null)\n return null;\n if (element instanceof CellContent)\n return new CellInstance((CellContent) element, context);\n if (element instanceof DataContent)\n return new DataItemInstance((DataContent) ele... |
"public List<GraphmlNode> getNonSubnetNeighbours() {\n List<GraphmlNode> neighbourNodes = new ArrayList<>();\n List<DeviceNeighbour> deviceNeighbours = device.getDeviceNeighbours();\n for (DeviceNeighbour deviceNeighbour : deviceNeighbours) {\n String neighbourIpAddress = deviceNeighbour.getIpAddress();... |
"private String performTransmission(String data) throws IOException {\n Writer outputWriter = null;\n try {\n outputStream = connection.getOutputStream();\n outputWriter = new OutputStreamWriter(outputStream, Charset.forName(\"String_Node_Str\"));\n outputWriter.write(data);\n outputWr... |
"public void run() {\n EventBus.getDefault().send(new TaskViewDismissedEvent(mTask, tv, new AnimationProps(TaskStackView.DEFAULT_SYNC_STACK_DURATION, Interpolators.FAST_OUT_SLOW_IN)));\n}\n"
|
"private void addAsArrayElement(Type elementType, Object elementValue) {\n if (elementValue == null) {\n addNullAsArrayElement();\n } else {\n JsonElement childElement = getJsonElementForChild(elementType, elementValue);\n root.getAsJsonArray().add(childElement);\n }\n}\n"
|
"public void timestamp_is_required() {\n givenWithContent(authToken).body(minValidPayload().put(Key.TIMESTAMP, null).asArray()).when().put(UrlSchema.FACILITY_UTILIZATION, f.id).then().spec(assertResponse(HttpStatus.BAD_REQUEST, ValidationException.class)).body(\"String_Node_Str\", is(\"String_Node_Str\" + Key.TIMEST... |
"public void test() {\n try {\n KsDef ksDef = CassandraCli.client.describe_keyspace(keyspaceName);\n Assert.assertNotNull(ksDef);\n Assert.assertEquals(keyspaceName, ksDef.getName());\n Assert.assertEquals(SimpleStrategy.class.getName(), ksDef.getStrategy_class());\n Assert.assertE... |
"private void setupInheritance(SDOType parentType) {\n if ((parentType.getURI() != null) && (!parentType.getURI().equals(SDOConstants.SDO_URL))) {\n XMLField field = (XMLField) getXmlDescriptor().buildField(\"String_Node_Str\");\n XMLDescriptor parentDescriptor = (XMLDescriptor) parentType.getXmlDescri... |
"public void testNoReplaceDynamicRev() throws Exception {\n project.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n IvyResolve res = new IvyResolve();\n res.setProject(project);\n res.execute();\n deliver.setPubrevision(\"String_Node_Str\");\n deliver.setDeliverpattern(\"String_Node_Str\");\n... |
"public ChoiceObjectNode addChoice(LibraryNode ln, String name) {\n if (name.isEmpty())\n name = \"String_Node_Str\";\n TypeProvider string = (TypeProvider) NodeFinders.findNodeByName(\"String_Node_Str\", ModelNode.XSD_NAMESPACE);\n ChoiceObjectNode choice = new ChoiceObjectNode(new TLChoiceObject());\n... |
"public void loadsDateWithUtcTimezone() throws Exception {\n final Long message = new MessageRowMocker(new BoutRowMocker().mock()).mock();\n final Connection conn = Database.connection();\n Date loaded;\n try {\n final PreparedStatement ustmt = conn.prepareStatement(\"String_Node_Str\");\n ust... |
"public void renderReportlet(OutputStream out, HttpServletRequest request, IReportDocument reportDocument, String reportletId, String format, boolean masterPage, boolean svgFlag, List activeIds, Locale locale, boolean rtl, String iServletPath) throws RemoteException {\n if (reportDocument == null) {\n AxisFau... |
"private String getTimeDimsionName() {\n String dimensionName = timeDimension.getText();\n return dimensionName;\n}\n"
|
"private void renderBackground(GL2 gl) {\n int pickingID = glVisBricks.getPickingManager().getPickingID(glVisBricks.getID(), EPickingType.DIMENSION_GROUP_SPACER, ID);\n float avoidDragHandle = 0;\n gl.glPushName(pickingID);\n gl.glColor4f(1, 1, 0, 0f);\n gl.glBegin(GL2.GL_POLYGON);\n gl.glVertex2f(0, ... |
"private void populateSeriesTypesList() {\n if (cbSeriesType == null) {\n return;\n }\n cbSeriesType.removeAll();\n Series series = getSeriesDefinitionForProcessing().getDesignTimeSeries();\n if (getCurrentChartType().canCombine()) {\n populateSeriesTypes(ChartUIExtensionsImpl.instance().ge... |
"public synchronized void transferOwnerGroupSpace(QuotaFileInformation quotaFileInformation, String newOwnerGroupId, long filesize, long blockedSpace, AtomicDBUpdate update) throws UserException {\n Logging.logMessage(Logging.LEVEL_DEBUG, this, \"String_Node_Str\" + volumeId + \"String_Node_Str\");\n QuotaFileInf... |
"private void deleteNode(AbstractNode node) {\n for (DescendantAndSelfIterator itr = new DescendantAndSelfIterator(treeStructure, node, Tautology.instance); itr.hasNext(); ) {\n AbstractNode descendant = itr.next();\n if (descendant.isEnabled()) {\n edgeProcessor.clearMetaEdges(descendant);\... |
"private void setAllConnectionParameters(String typ, IElement element) {\n String type = null;\n if (typ != null && !typ.equals(\"String_Node_Str\")) {\n type = typ;\n } else {\n type = getValueFromRepositoryName(element, \"String_Node_Str\");\n }\n if (type.equals(\"String_Node_Str\") || t... |
"private String getParameterValueString(Class paramType, Object paramValue) throws DataException {\n if (paramValue instanceof String)\n return (String) paramValue;\n try {\n paramValue = DataTypeUtil.convert(paramValue, paramType);\n if (paramValue instanceof Date) {\n SimpleDateF... |
"public DataSource buildDataSource(String driverClass, String userName, String password, String url, Map<String, String> connectParam) throws LoadConfigException {\n BasicDataSource ds = new BasicDataSource();\n ds.setDriverClassName(driverClass);\n ds.setUsername(userName);\n ds.setPassword(password);\n ... |
"public static <T> StructuredArray<T> copyInstance(StructuredArray<T> source, int sourceOffset, int count) throws NoSuchMethodException {\n if (source.getLength() < sourceOffset + count) {\n throw new ArrayIndexOutOfBoundsException(\"String_Node_Str\" + source + \"String_Node_Str\" + source.getLength() + \"St... |
"public IMatchEngine getEngineInstance() {\n if (engine == null) {\n try {\n engine = (IMatchEngine) element.createExecutableExtension(\"String_Node_Str\");\n } catch (final CoreException e) {\n EMFComparePlugin.log(e, false);\n }\n }\n if (engine != null) {\n ... |
"public static void main(String[] args) throws Exception {\n ConfigurationFactory cf = new ConfigurationFactory(new ConfigurationLoader().loadProperties());\n AbstractModule exampleModule = new AbstractModule() {\n public void configure() {\n ConfigurationModule.bindConfig(binder()).to(ExampleCo... |
"public IStyle getContentStyle() {\n if (body == null) {\n if (generateBy instanceof MasterPageDesign) {\n body = report.createCellContent();\n body.setInlineStyle(((MasterPageDesign) generateBy).getContentStyle());\n }\n }\n return null;\n}\n"
|
"public ResourceAction perform(ResourceAction resourceAction) throws Exception {\n AWSCloudFormationWaitConditionHandleResourceAction action = (AWSCloudFormationWaitConditionHandleResourceAction) resourceAction;\n if (!Boolean.TRUE.equals(action.info.getCreatedEnoughToDelete()))\n return action;\n try (... |
"private int getState() {\n boolean fingerprintRunning = KeyguardUpdateMonitor.getInstance(mContext).isFingerprintDetectionRunning();\n if (mUnlockMethodCache.canSkipBouncer()) {\n return STATE_LOCK_OPEN;\n } else if (mTransientFpError) {\n return STATE_FINGERPRINT_ERROR;\n } else if (fingerpr... |
"public <T> CLBuffer<?> createInputBufferFor(CLContext context, PList<T> list) {\n char[] ar = ((CharList) list).getArray();\n byte[] car = encodeCharToBytes(ar);\n ByteBuffer ibuffer = ByteBuffer.wrap(car, 0, list.size());\n return context.createByteBuffer(CLMem.Usage.Input, ibuffer, true);\n}\n"
|
"public void onEnable() {\n Locale.setDefault(Locale.US);\n logger.setName(this.getDescription().getName());\n setupVault();\n setupMetrics();\n setupDeathTpPlus();\n setupMobArenaHandler();\n setupHeroes();\n setupMcMMO();\n setupWorldGuard();\n globalMessageManager = new HashMap<String, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.