content stringlengths 40 137k |
|---|
"private List<UpdateResult> checkNodePropertiesFromRepository(final Node node, boolean onlySimpleShow) {\n if (node == null) {\n return Collections.emptyList();\n }\n List<UpdateResult> propertiesResults = new ArrayList<UpdateResult>();\n String propertyType = (String) node.getPropertyValue(EParamete... |
"public static boolean isHeritable(int id) {\n if ((id >= StyleConstant.BORDER_BOTTOM_COLOR_PROP && id <= StyleConstant.BORDER_RIGHT_WIDTH_PROP) || (id >= StyleConstant.BORDER_DIAGONAL_COLOR_PROP && id <= StyleConstant.BORDER_ANTIDIAGONAL_WIDTH_PROP))\n return false;\n return true;\n}\n"
|
"private void decompressTile(final File outputFile, int jp2TileX, int jp2TileY) throws IOException {\n final int tileIndex = l1cTileLayout.numXTiles * jp2TileY + jp2TileX;\n ProcessBuilder builder = null;\n if (SystemUtils.IS_OS_WINDOWS) {\n String inputFileName = Utils.GetShortPathName(imageFile.getPat... |
"private void renderDendrogram(final GL gl, ClusterNode currentNode) {\n if (currentNode.getSelectionType() == ESelectionType.MOUSE_OVER) {\n gl.glColor4fv(MOUSE_OVER_COLOR, 0);\n gl.glBegin(GL.GL_QUADS);\n gl.glVertex3f(currentNode.getPos().x() - 0.05f, currentNode.getPos().y() - 0.05f, current... |
"private void testing(Context context, AttributeSet attrs) {\n if (!isInEditMode()) {\n this.setBackground(getResources().getDrawable(R.drawable.background));\n if (attrs != null) {\n TypedArray tA = context.obtainStyledAttributes(attrs, R.styleable.wingokuflatui);\n normalStateco... |
"private void testDimensionCreateAndFind7(IDocumentManager documentManager) throws IOException, BirtException {\n ILevelDefn[] levelDefs = new ILevelDefn[4];\n levelDefs[0] = new LevelDefinition(\"String_Node_Str\", new String[] { \"String_Node_Str\" }, null);\n levelDefs[1] = new LevelDefinition(\"String_Node... |
"public synchronized void setProgress(int progress) {\n mySeekBar.setProgress(progress - min);\n}\n"
|
"public void testAliasedAnnotationClassLiteral2() {\n String[] sources = { \"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\" + \"S... |
"final boolean moveTaskToBackLocked(int task, ActivityRecord reason) {\n Slog.i(TAG, \"String_Node_Str\" + task);\n if (mStackSupervisor.isFrontStack(this) && mService.mController != null) {\n ActivityRecord next = topRunningActivityLocked(null, task);\n if (next == null) {\n next = topRu... |
"public View buildRecordView(ViewGroup parent, WalletAccount walletAccount, boolean isSelected, boolean hasFocus, View convertView) {\n View rowView = convertView;\n if (rowView == null) {\n rowView = inflater.inflate(R.layout.record_row, parent, false);\n }\n if (!isSelected) {\n Utils.setAlp... |
"public static Test suite() {\n TestSuite suite = new TestSuite(\"String_Node_Str\");\n suite.addTestSuite(AutoboxTest.class);\n suite.addTestSuite(ClassCastTest.class);\n suite.addTestSuite(ClassObjectTest.class);\n suite.addTestSuite(CompilerTest.class);\n suite.addTestSuite(Coverage.class);\n su... |
"private AlarmStateHistory getAlarmStateHistory(Map<String, Object> row) {\n AlarmStateHistory alarmStateHistory = new AlarmStateHistory();\n Date date;\n try {\n date = parseTimestamp(row.get(\"String_Node_Str\").toString() + \"String_Node_Str\");\n } catch (ParseException e) {\n logger.error... |
"public static String fsToString(FrequenciesState fs, int low, int high) {\n float lastFrequency = (fs.getState().length < high ? fs.getState().length : (float) high);\n int length = (int) lastFrequency / 20;\n int height = 15;\n int maxIndex = FrequenciesHelper.getMaxIndex(fs, low, high);\n long maxMagn... |
"public static Window showWindow(Component widget) {\n Window w = Window.create();\n w.initLayout();\n w.setContent(widget);\n w.show();\n w.setScreen(Window.getActive().getScreen());\n w.centerOnScreen();\n return w;\n}\n"
|
"public Alphabet<Feature> preprocess(List<CoNLL09Sentence> sents) {\n Alphabet<String> obsAlphabet = new Alphabet<String>();\n List<FeatureExtractor> featExts = new ArrayList<FeatureExtractor>();\n for (int i = 0; i < sents.size(); i++) {\n CoNLL09Sentence sent = sents.get(i);\n if (i % 1000 == 0... |
"public void renderAModelAt(TileEntityMissileTable tileEntity, double x, double y, double z, float f) {\n GL11.glPushMatrix();\n this.bindTexture(TEXTURE_FILE);\n GL11.glTranslatef((float) x + 0.5F, (float) y + 1.5F, (float) z + 0.5F);\n GL11.glRotatef(180F, 0.0F, 0.0F, 1.0F);\n if (tileEntity.placedSide... |
"private void checkDependsOn(final Query query, final Exp expression, String expectedDimList, final boolean scalar) {\n final Calc calc = query.compileExpression(expression, scalar, null);\n final Dimension[] dimensions = query.getCube().getDimensions();\n StringBuilder buf = new StringBuilder(\"String_Node_St... |
"protected boolean onLongPress(Context packageContext, Key key, boolean isSticky, boolean requireSlideInto) {\n if (key != null && key instanceof AnyKey) {\n AnyKey anyKey = (AnyKey) key;\n if (anyKey.longPressCode != 0) {\n invokeOnKey(anyKey.longPressCode, anyKey, 0);\n return t... |
"private List<SpanBo> refine(List<SpanBo> list) {\n SpanBo removeSpan = null;\n boolean rescan = true;\n for (int i = 0; i < list.size(); i++) {\n SpanBo span = list.get(i);\n String svcName = span.getServiceName();\n if (removeSpan != null) {\n if (span.getParentSpanId() == rem... |
"public void startForeign(IForeignContent foreign) {\n if (IForeignContent.HTML_TYPE.equalsIgnoreCase(foreign.getRawType())) {\n HTML2Content.html2Content(foreign);\n HyperlinkDef link = parseHyperLink(foreign);\n engine.addContainer(foreign.getComputedStyle(), link);\n contentVisitor.vis... |
"public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {\n JPanel panel = new JPanel(new BorderLayout());\n CommandBarButton button = (CommandBarButton) value;\n panel.add(button);\n panel.setToolTipText(button.getToolTipText());\n re... |
"boolean isSubtypeOf(NominalType other) {\n RawNominalType thisRaw = this.rawType;\n if (thisRaw == other.rawType) {\n return areTypeMapsCompatible(other);\n }\n if (other.isInterface()) {\n for (NominalType i : thisRaw.getInterfaces()) {\n if (i.instantiateGenerics(this.typeMap).is... |
"private synchronized Network configureTunnelNetwork(Connection conn, long networkId, long hostId, String bridgeName) {\n try {\n Network nw = findOrCreateTunnelNetwork(conn, bridgeName);\n String nwName = bridgeName;\n String bridge = nw.getBridge(conn);\n Map<String, String> nwOtherConf... |
"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 void createAnonClassDecl(polyglot.ast.New aNew) {\n SootClass outerClass = ((soot.RefType) Util.getSootType(aNew.anonType().outer())).getSootClass();\n if (InitialResolver.v().getInnerClassInfoMap() == null) {\n InitialResolver.v().setInnerClassInfoMap(new HashMap());\n }\n InitialResolver.v... |
"public void testLocalStatements() throws DaoException, IOException, ClassNotFoundException {\n WpDataSource ds = TestDaoUtil.getWpDataSource(dbDir);\n WikidataDao wd = new WikidataSqlDao(ds, null, null);\n Map<String, List<LocalWikidataStatement>> statements = wd.getLocalStatements(EN, WikidataEntity.Type.ITE... |
"public Object invoke(Command command, Object... inData) throws ChartException {\n Object outData = null;\n switch(command) {\n case EXPRESS_BUTTON_CREATE:\n final Control control = (Control) inData[1];\n IExpressionButton ceb = new IExpressionButton() {\n public void s... |
"private String processBeginingWithPatterns(String gramText, String lemma) {\n gramText = gramText.trim();\n int newBegin = -1;\n for (SimpleRule s : simpleRulesDirect) {\n if (newBegin != -1)\n break;\n newBegin = s.applyDirect(gramText, lemma, paradigm, flags);\n }\n for (Simpl... |
"public static String getReportDocument(HttpServletRequest request, String filePath, boolean isCreated) throws ViewerException {\n if (filePath == null) {\n filePath = DataUtil.trimString(getParameter(request, PARAM_REPORT_DOCUMENT));\n }\n filePath = decodeFilePath(request, filePath);\n if (filePath... |
"public void render(Output output) throws IOException {\n output.setStatus(statusCode, statusText);\n copyHeaders(httpMethod, output, \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n Header header = httpMethod.... |
"private IterationResult<XMLEvent2> startElement2() {\n DomStartElement2 start = new DomStartElement2(current);\n XMLEvent2 event = new InMemoryXMLEvent2(start, null, null);\n return IterationResult.next(event);\n}\n"
|
"private int joinClosestParticle(ExtendedClusterPoint[][] grid, final int nXBins, final int nYBins, final double r2, double minx, double miny, double xBinWidth, double yBinWidth, int[] clusterId) {\n double min = r2;\n ExtendedClusterPoint pair1 = null, pair2 = null;\n for (int yBin = 0; yBin < nYBins; yBin++)... |
"public static boolean importProfileFromFile(File file) {\n String filepath = file.getPath();\n Properties importProperties = new Properties();\n if (loadPropertyFile(importProperties, filepath, false)) {\n userProperties.putAll(importProperties);\n setSaveDirDefaults();\n return true;\n ... |
"public boolean isItemValid(ItemStack stack) {\n if (stack == null) {\n return false;\n }\n if (fuel) {\n return Reactants.isFuel(stack);\n else\n return Reactants.isWaste(stack);\n}\n"
|
"public static void main(String[] args) {\n String bucketName = \"String_Node_Str\";\n String key = \"String_Node_Str\";\n String path = RSDemo.class.getClassLoader().getResource(\"String_Node_Str\").getPath();\n System.out.println(\"String_Node_Str\" + path + key);\n AuthPolicy policy = new AuthPolicy(\... |
"private void setGroupToc(IGroupContent group) {\n if (group != null) {\n InstanceID groupId = group.getInstanceID();\n if (!groupIdList.contains(groupId)) {\n groupIdList.add(groupId);\n Object groupToc = group.getTOC();\n if (groupToc != null && !hasTocOutputed(group)... |
"public boolean visit(JMethod x, Context ctx) {\n Set<JMethod> overrides = program.typeOracle.getAllOverriddenMethods(x);\n if (!overrides.isEmpty() || program.typeOracle.isJsTypeMethod(x) || program.typeOracle.isExportedMethod(x)) {\n for (JMethod m : overrides) {\n rescuedMethods.add(m);\n ... |
"public XMLElement consumeSingleChildElement() throws UnableToCompleteException {\n XMLElement ret = null;\n for (XMLElement child : consumeChildElements()) {\n if (ret != null) {\n writer.die(\"String_Node_Str\" + \"String_Node_Str\", this, ret, child);\n }\n ret = child;\n }\n... |
"private static int paint2BitPixelCodeString(ParsableBitArray data, int[] clutEntries, byte[] clutMapTable, int column, int line, Paint paint, Canvas canvas) {\n boolean endOfPixelCodeString = false;\n do {\n int runLength = 0;\n int clutIndex = 0;\n int peek = data.readBits(2);\n if (... |
"public CiscoNexusVSMDeviceVO doInTransaction(TransactionStatus status) {\n CiscoNexusVSMDeviceVO vsm = null;\n if (_vsmDao.getVSMbyIpaddress(vsmIp) == null) {\n vsm = new CiscoNexusVSMDeviceVO(vsmIp, vsmUser, vsmPassword);\n _vsmDao.persist(vsm);\n }\n vsm = _vsmDao.getVSMbyIpaddress(vsmIp);\... |
"public boolean onOptionsItemSelected(MenuItem item) {\n final String bib = app.getLibrary().getIdent();\n if (item.getItemId() == R.id.action_reservation) {\n reservationStart();\n return true;\n } else if (item.getItemId() == R.id.action_lendebook) {\n bookingStart();\n return tru... |
"public void acquire() {\n int ticket = VM_Synchronization.fetchAndAdd(this, dispenserFieldOffset, 1);\n int retryCountdown = TIMEOUT_CHECK_FREQ;\n long localStart = 0;\n long lastSlowReport = 0;\n while (ticket != serving) {\n if (localStart == 0)\n lastSlowReport = localStart = VM_Tim... |
"protected void updateHandlersForUnassign(final AttributeDefinition handlerAttribute, ModelNode operation, ModelNode model) throws OperationFailedException {\n final String handlerName = getHandlerName(operation);\n final ModelNode parent = getParent(model);\n if (handlerExists(handlerName, handlerAttribute, p... |
"public Accessor getElementPropertyAccessor(String nsUri, String localName) {\n if (wrapperTagName != null) {\n if (wrapperTagName.equals(nsUri, localName))\n return acc;\n } else {\n for (TagAndType tt : typeMap.values()) {\n if (tt.tagName.equals(nsUri, localName))\n ... |
"protected void onAttach() {\n super.onAttach();\n Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() {\n public void execute() {\n init();\n }\n });\n}\n"
|
"public Actor createActor(Skin skin) {\n BehaviorTreeLibraryManager libraryManager = BehaviorTreeLibraryManager.getInstance();\n libraryManager.setLibrary(new BehaviorTreeLibrary(BehaviorTreeParser.DEBUG_HIGH));\n String name = lazy ? \"String_Node_Str\" : \"String_Node_Str\";\n BehaviorTree<Dog> tree = lib... |
"public Set<Entity> withinRange(double radius) {\n double squared = radius * radius;\n Set<Entity> entities = position().world().entities();\n return entities.stream().filter((e) -> e.position().distanceSquared(position()) <= squared).collect(Collectors.toSet());\n}\n"
|
"public void resolveArgument_dauthorizationRequest_object() throws Exception {\n MockHttpServletRequest httpServletRequest = new MockHttpServletRequest();\n httpServletRequest.setParameter(\"String_Node_Str\", DEAUTH_CALLBACK);\n NativeWebRequest request = new ServletWebRequest(httpServletRequest);\n Method... |
"private List<Type> getStepsInModule(Module module) {\n List<Type> steps = new ArrayList<>();\n try {\n GaugeService gaugeService = Gauge.getGaugeService(module, true);\n if (gaugeService == null)\n return steps;\n GaugeConnection gaugeConnection = gaugeService.getGaugeConnection()... |
"protected void cutLongWords(Readable readable) {\n String text = readable.getText();\n List<String> res = new ArrayList<String>();\n for (String word : text.split(\"String_Node_Str\")) {\n boolean isComplex = false;\n while (word.length() - 1 > lengthPreference) {\n isComplex = true;\... |
"public ModelAndView getAllFacts(String locationName) {\n logger.info(\"String_Node_Str\" + locationName + \"String_Node_Str\");\n List<Fact> facts = service.getAllFacts(locationName);\n model.addAttribute(facts);\n return model;\n}\n"
|
"public Type add(final MethodVisitor method, final int programPoint) {\n throw new UnsupportedOperationException(\"String_Node_Str\");\n}\n"
|
"public void process(final ApplicationDeployable input) throws Exception {\n ImmutableList.Builder<Program> programs = ImmutableList.builder();\n final ApplicationSpecification appSpec = input.getSpecification();\n final String applicationName = appSpec.getName();\n final ArchiveBundler bundler = new Archiv... |
"public static int getUsersCountForLocalBlogId(int localTableBlogId) {\n String[] args = new String[] { Integer.toString(localTableBlogId), Integer.toString(0) };\n String sql = \"String_Node_Str\" + PEOPLE_TABLE + \"String_Node_Str\";\n return SqlUtils.intForQuery(getReadableDb(), sql, args);\n}\n"
|
"public void closeConnection(boolean force) {\n try {\n if (conn != null && !conn.isClosed()) {\n if (isReconnect || force) {\n if (conn.getMetaData() != null) {\n String url = conn.getMetaData().getURL();\n boolean isHsql = ConnectionUtils.isHsq... |
"public Object remove(K key, V value) {\n Collection<V> values = _map.get(key);\n if (values == null) {\n return null;\n } else {\n Object object = values.remove(value);\n if (values.size() == 0) {\n _map.remove(key);\n }\n return object;\n }\n}\n"
|
"public boolean containsKey(Data key) {\n checkIfLoaded();\n final long now = getNow();\n Record record = records.get(key);\n if (hasWaitingWriteBehindDeleteOperation(key)) {\n return false;\n }\n record = nullIfExpired(record);\n if (record == null) {\n if (mapContainer.getStore() !=... |
"protected void createOptionsGroupButtons(Composite parent) {\n GridLayout layout = new GridLayout();\n optionsGroupComposite = new Composite(parent, SWT.NONE);\n GridData gridData = new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL);\n gridData.minimumHeight = 200;\n optionsGroupCom... |
"public IBaseResultSet execute(IBaseResultSet parent, IDataQueryDefinition query, boolean useCache) {\n if (query instanceof ISubqueryDefinition) {\n if (parent == null) {\n return null;\n } else if (parent instanceof ICubeResultSet) {\n context.addException(new EngineException(\"... |
"protected boolean checkFieldsValue() {\n boolean editable = jsonFilePath.getEditable();\n StringBuffer msgError = new StringBuffer();\n if (creation && !noFileButton.getSelection() && !useFileButton.getSelection()) {\n msgError.append(\"String_Node_Str\");\n }\n if (creation && editable && jsonFi... |
"protected void listChildren(List<org.hl7.fhir.r4.model.Property> childProps) {\n if (children != null) {\n for (Element c : children) {\n org.hl7.fhir.r4.model.Property p = map.get(c.getName());\n if (p == null) {\n p = new org.hl7.fhir.r4.model.Property(c.getName(), c.fh... |
"public static void deleteDroppedItems(User user) {\n if (user.getDroppedItems() != null) {\n for (Item item : user.getDroppedItems()) item.remove();\n user.resetItems();\n }\n}\n"
|
"private final void realStartServiceLocked(ServiceRecord r, ProcessRecord app, boolean execInFg) throws RemoteException {\n if (app.thread == null) {\n throw new RemoteException();\n }\n if (DEBUG_MU)\n Slog.v(TAG_MU, \"String_Node_Str\" + r.appInfo.uid + \"String_Node_Str\" + app.uid);\n r.ap... |
"public long getCompactionBound(byte[] columnFamily) {\n if (txnlFamilies.contains(columnFamily)) {\n TransactionVisibilityState snapshot = cache.getLatestState();\n return snapshot != null ? snapshot.getVisibilityUpperBound() : 0;\n } else {\n return Long.MAX_VALUE;\n }\n}\n"
|
"public void testConstructorNullFieldsParameter() throws Exception {\n new CronDefinition(null, Sets.newHashSet(), enforceStrictRange, matchDayOfWeekAndDayOfMonth);\n}\n"
|
"public void runModel(String fileName, String modelName, String startTime, String stopTime, int numberOfIntervals, String outputFormat, String processingMode) throws ConnectException, IOException, IllegalActionException {\n String commands = null;\n String loggerInfo = null;\n commands = modelName + \"String_N... |
"public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object objectValue, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) {\n Object fieldValue = directMapping.getFieldValue(objectValue, (AbstractSession) session);... |
"protected int parse(byte[] b, int length) throws IOException {\n int index, resindex;\n for (index = resindex = 0; index < length; index++) {\n switch(state) {\n case 0:\n if ((char) b[index] == '@') {\n cmd[cmdlen++] = b[index];\n state = 1;... |
"public void message() {\n ProductFixtures.withUpdateableProduct(client(), product -> {\n assertThat(product.getMasterData().isPublished()).isFalse();\n final Product publishedProduct = execute(ProductUpdateCommand.of(product, Publish.of()));\n final PagedQueryResult<ProductPublishedMessage> que... |
"public PermissionPolicyConfig getClientPolicyConfig() {\n return staticSecurityConfig.getClientPolicyConfig();\n}\n"
|
"public Result onRollback(RedPunishTransaction tx, Object secondaryData) {\n RedPunishData punishData = tx.getTxData();\n List<byte[]> deletedList = new ArrayList<>();\n byte[] address = punishData.getAddress();\n boolean result = storageService.delete(this.getPoKey(address, PunishType.RED.getCode(), tx.get... |
"protected final boolean sendLocalQueue() {\n if (index > 0) {\n final Object[] copy = fastObjectArraySlice(queueLocal, 0, index);\n boolean ableToSend = sendArray(copy);\n index = 0;\n return ableToSend;\n } else {\n return false;\n }\n}\n"
|
"public void testMain() throws Exception {\n System.out.println(\"String_Node_Str\");\n Authenticator instance = ESAPI.authenticator();\n String accountName = ESAPI.randomizer().getRandomString(8, EncoderConstants.CHAR_ALPHANUMERICS);\n String password = instance.generateStrongPassword();\n String role =... |
"public static void main(String[] args) throws Exception {\n checkArguments(args);\n setupDefaultEnvironment(args, true);\n IBController.load();\n}\n"
|
"private IntData generateData() {\n int s = 128000;\n int[] d = new int[s];\n for (int i = 0; i < s; i++) {\n d[i] = i;\n }\n return new IntData(d);\n}\n"
|
"private void validateSoftwareManager(String name, SoftwareManager softwareManager) {\n logger.info(\"String_Node_Str\");\n try {\n ExecutorService exec = Executors.newFixedThreadPool(1);\n Future<Boolean> futureResult = exec.submit(new Callable<Boolean>() {\n public Boolean call() throws... |
"public void highlight(String text, int caret, int selectionLength, boolean hasFocus, ColorModel model) {\n if (selectionLength > 0 || !hasFocus)\n return;\n if (caret > 0 && text.charAt(caret - 1) == ')') {\n int paired = findParent(text, caret - 1, -1, ')', '(');\n if (paired == -1) {\n ... |
"private List<SiteModel> getBlogsForCurrentView() {\n if (mShowHiddenSites) {\n if (mShowSelfHostedSites) {\n return mSiteStore.getSites();\n } else {\n return mSiteStore.getWPComSites();\n }\n } else {\n if (mShowSelfHostedSites) {\n List<SiteModel> ou... |
"protected Event getUpdateEvent(Comment comment) {\n return new ResolveIssueEvent(getIssue(), getIssue().getProject(), getSession().getUser(), comment);\n}\n"
|
"public byte[] Convert(byte[] src) {\n if (general_trie.Count() == 0)\n return src;\n Bry_bfr dirty_bfr = null;\n int cur = 0;\n int len = src.length;\n while (cur < len) {\n int uniq_bgn = Bry_find_.Find_fwd(src, Bry__uniq__add__bgn, cur);\n if (uniq_bgn == Bry_find_.Not_found)\n ... |
"protected void onResume() {\n super.onResume();\n bus.register(this);\n if (uiController != null) {\n if (lastSync + SYNC_DELAY < System.currentTimeMillis()) {\n syncRunnable.run();\n } else {\n syncHandler.postDelayed(syncRunnable, SYNC_DELAY);\n }\n syncHand... |
"public int getMinorVersion() {\n return 0;\n}\n"
|
"private static Collection<IMaxTerm> collectMaxTerms(IFormula f) {\n switch(f.getKind()) {\n case CONSTANT:\n case QUANTIFIED:\n case RELATION:\n return Collections.singleton((IMaxTerm) f);\n case BINARY:\n AbstractBinaryFormula b = (AbstractBinaryFormula) f;\n ... |
"public static int getExpressionBuilderStyle(int builderCommand) {\n if (builderCommand == IUIServiceProvider.COMMAND_EXPRESSION_DATA_BINDINGS) {\n return ChartExpressionProvider.CATEGORY_WITH_BIRT_VARIABLES | ChartExpressionProvider.CATEGORY_WITH_COLUMN_BINDINGS | ChartExpressionProvider.CATEGORY_WITH_REPORT... |
"public Rsrcc_srcm_stmt_kind_tgtc_tgtm edges() {\n return new Rsrcc_srcm_stmt_kind_tgtc_tgtmBDD(new jedd.internal.RelationContainer(new jedd.Attribute[] { tgtm.v(), stmt.v(), srcm.v(), srcc.v(), tgtc.v(), kind.v() }, new jedd.PhysicalDomain[] { MT.v(), ST.v(), MS.v(), C1.v(), C2.v(), KD.v() }, (\"String_Node_Str\" +... |
"public void migrateAssetHistory(Module jcrModule, String assetUUID) throws SerializationException {\n String currentVersionAssetName = \"String_Node_Str\";\n try {\n Path previousVersionPath = null;\n TableDataResult history = jcrRepositoryAssetService.loadItemHistory(assetUUID);\n TableData... |
"private static void startCoreSystem() {\n if (configuration == null) {\n LOGGER.error(\"String_Node_Str\");\n stopServer(false);\n System.exit(-1);\n }\n if (!configuration.isHttpsListener() && !configuration.isHttpListener() && !configuration.isAjpListener()) {\n LOGGER.error(\"St... |
"private void restartPreview() {\n mSurfaceView.setAspectRatio(VideoPreview.DONT_CARE);\n startPreview();\n calculatePicturesRemaining();\n}\n"
|
"private View findView(Member field, int viewId, Finder finder) {\n View view = null;\n switch(finder) {\n case DIALOG:\n view = Finder.DIALOG.findById(target, viewId);\n break;\n case ACTIVITY:\n if (activity == null) {\n throw new InjectException(\"S... |
"public boolean undoChangesInModel(OperatorInstance operation, ProgramVariant p) {\n CtStatement ctst = (CtStatement) operation.getOriginal();\n CtBlock<?> parentBlock = operation.getParentBlock();\n if (parentBlock != null) {\n if ((parentBlock.getStatements().isEmpty() && operation.getLocationInParent... |
"public void run() {\n classDisplayed = ClassDisplayed.NODE;\n refreshAllOnce();\n}\n"
|
"public void paintComponent(Graphics g) {\n super.paintComponent(g);\n Graphics2D g2d = (Graphics2D) g;\n int w = canvasWidth / data.M();\n int h = canvasHeight / data.N();\n for (int i = 0; i < data.N(); i++) for (int j = 0; j < data.M(); j++) {\n if (data.isMine(i, j))\n AlgoVisHelper... |
"public String toHtmlString(NamedParameterNode<?> n, String pack) {\n final String sep = \"String_Node_Str\";\n String fullName = stripPrefix(n.getFullName(), pack);\n final String type;\n try {\n if (ch.classForName(n.getFullName()).isInterface()) {\n type = \"String_Node_Str\";\n ... |
"private void doSetValue(final String name, final String value, final Listener listener) throws TheRDebuggerException {\n final TheRProcessResponse response = execute(myProcess, name + \"String_Node_Str\" + value, myReceiver);\n switch(response.getType()) {\n case EMPTY:\n if (response.getError(... |
"public void testAddSecond() throws BirtException {\n String[] scripts = new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" };\n Calendar c = Calendar.getInstance();\n c.clear();\n c.set(2005, 10, 22);\n Date d1 = new Date(c.getTimeInMillis());\n c.clear();\n c.set(2006, 1... |
"public void testAliasOrderByLimit() {\n FinalSetOperationCriteriaBuilder<String> cb = cbf.create(em, String.class).from(Document.class, \"String_Node_Str\").select(\"String_Node_Str\", \"String_Node_Str\").where(\"String_Node_Str\").eq(\"String_Node_Str\").union().from(Document.class, \"String_Node_Str\").select(\"... |
"protected boolean namespaceEquals(BaseID o) {\n if (!(o instanceof LongID))\n return false;\n LongID obj = (LongID) o;\n return value.equals(obj.value);\n}\n"
|
"public List<IComponent> filterNeededComponents(Item item, RepositoryNode seletetedNode, ERepositoryObjectType type) {\n List<IComponent> neededComponents = new ArrayList<IComponent>();\n if (!(item instanceof HCatalogConnectionItem)) {\n return neededComponents;\n }\n IComponentsService service = (I... |
"public void abstractMethodMustBeImplemented(SourceTypeBinding type, MethodBinding abstractMethod) {\n if (isPointcutDeclaration(abstractMethod))\n return;\n if (isIntertypeDeclaration(abstractMethod))\n return;\n if (CharOperation.prefixEquals(\"String_Node_Str\".toCharArray(), abstractMethod.se... |
"public static void beforeClass() throws IOException {\n zkServer = InMemoryZKServer.builder().setDataDir(TEMP_FOLDER.newFolder()).build();\n zkServer.startAndWait();\n conf = CConfiguration.create();\n conf.set(Constants.Zookeeper.QUORUM, zkServer.getConnectionStr());\n conf.setInt(Constants.Stream.CONT... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.